AngelScriptAPI.h 421 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471
  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 IntRect&) const;
  5851. Intersection IsInside(const IntVector2&) const;
  5852. int Merge(const IntRect&);
  5853. // Properties:
  5854. int bottom;
  5855. /* readonly */
  5856. Array<int> data;
  5857. /* readonly */
  5858. int height;
  5859. int left;
  5860. int right;
  5861. /* readonly */
  5862. IntVector2 size;
  5863. int top;
  5864. /* readonly */
  5865. int width;
  5866. };
  5867. class IntVector2
  5868. {
  5869. public:
  5870. IntVector2();
  5871. IntVector2(const IntVector2&in);
  5872. IntVector2(int, int);
  5873. IntVector2(int[]&inout);
  5874. // Methods:
  5875. float Length() const;
  5876. uint ToHash() const;
  5877. String ToString() const;
  5878. // Properties:
  5879. /* readonly */
  5880. Array<int> data;
  5881. int x;
  5882. int y;
  5883. // Constants:
  5884. static const IntVector2 DOWN;
  5885. static const IntVector2 LEFT;
  5886. static const IntVector2 ONE;
  5887. static const IntVector2 RIGHT;
  5888. static const IntVector2 UP;
  5889. static const IntVector2 ZERO;
  5890. };
  5891. class IntVector3
  5892. {
  5893. public:
  5894. IntVector3();
  5895. IntVector3(const IntVector3&in);
  5896. IntVector3(int, int, int);
  5897. IntVector3(int[]&inout);
  5898. // Methods:
  5899. float Length() const;
  5900. uint ToHash() const;
  5901. String ToString() const;
  5902. // Properties:
  5903. /* readonly */
  5904. Array<int> data;
  5905. int x;
  5906. int y;
  5907. int z;
  5908. // Constants:
  5909. static const IntVector3 BACK;
  5910. static const IntVector3 DOWN;
  5911. static const IntVector3 FORWARD;
  5912. static const IntVector3 LEFT;
  5913. static const IntVector3 ONE;
  5914. static const IntVector3 RIGHT;
  5915. static const IntVector3 UP;
  5916. static const IntVector3 ZERO;
  5917. };
  5918. class JSONFile
  5919. {
  5920. public:
  5921. JSONFile();
  5922. JSONFile(const String&in);
  5923. // Methods:
  5924. bool FromString(const String&);
  5925. JSONValue& GetRoot();
  5926. bool HasSubscribedToEvent(Object, const String&);
  5927. bool HasSubscribedToEvent(const String&);
  5928. bool Load(File);
  5929. bool Load(VectorBuffer&);
  5930. bool Load(const String&);
  5931. bool Save(File) const;
  5932. bool Save(File, const String&) const;
  5933. bool Save(VectorBuffer&) const;
  5934. bool Save(const String&) const;
  5935. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5936. String ToString(const String& = String ( "\t" )) const;
  5937. // Properties:
  5938. /* readonly */
  5939. String category;
  5940. /* readonly */
  5941. uint memoryUse;
  5942. String name;
  5943. /* readonly */
  5944. int refs;
  5945. /* readonly */
  5946. JSONValue root;
  5947. /* readonly */
  5948. StringHash type;
  5949. /* readonly */
  5950. String typeName;
  5951. /* readonly */
  5952. uint useTimer;
  5953. /* readonly */
  5954. int weakRefs;
  5955. };
  5956. class JSONValue
  5957. {
  5958. public:
  5959. ~JSONValue();
  5960. JSONValue();
  5961. JSONValue(bool);
  5962. JSONValue(int);
  5963. JSONValue(uint);
  5964. JSONValue(float);
  5965. JSONValue(double);
  5966. JSONValue(const String&in);
  5967. JSONValue(const JSONValue&in);
  5968. // Methods:
  5969. void Clear();
  5970. bool Contains(const String&) const;
  5971. void Erase(const String&);
  5972. void Erase(uint, uint = 1);
  5973. bool GetBool(bool = false) const;
  5974. double GetDouble(double = 0) const;
  5975. float GetFloat(float = 0) const;
  5976. int GetInt(int = 0) const;
  5977. uint GetUInt(uint = 0) const;
  5978. Variant GetVariant(Variant = Variant ( )) const;
  5979. VariantMap GetVariantMap(VariantMap = VariantMap ( )) const;
  5980. void Insert(uint, const JSONValue&);
  5981. const JSONValue& Get(const String&) const;
  5982. void Pop();
  5983. void Push(const JSONValue&);
  5984. void Resize(uint);
  5985. void Set(const String&, const JSONValue&);
  5986. void SetVariant(const Variant&);
  5987. void SetVariantMap(const VariantMap&);
  5988. const String& GetString(const String& = String ( )) const;
  5989. // Properties:
  5990. /* readonly */
  5991. bool isArray;
  5992. /* readonly */
  5993. bool isBool;
  5994. /* readonly */
  5995. bool isNull;
  5996. /* readonly */
  5997. bool isNumber;
  5998. /* readonly */
  5999. bool isObject;
  6000. /* readonly */
  6001. bool isString;
  6002. /* readonly */
  6003. Array<String> keys;
  6004. /* readonly */
  6005. JSONNumberType numberType;
  6006. /* readonly */
  6007. String numberTypeName;
  6008. /* readonly */
  6009. uint size;
  6010. /* readonly */
  6011. JSONValueType valueType;
  6012. /* readonly */
  6013. String valueTypeName;
  6014. /* readonly */
  6015. Array<JSONValue> values;
  6016. };
  6017. class JoystickState
  6018. {
  6019. public:
  6020. // Properties:
  6021. /* readonly */
  6022. Array<float> axisPosition;
  6023. /* readonly */
  6024. Array<bool> buttonDown;
  6025. /* readonly */
  6026. Array<bool> buttonPress;
  6027. /* readonly */
  6028. bool controller;
  6029. /* readonly */
  6030. Array<int> hatPosition;
  6031. int joystickID;
  6032. String name;
  6033. /* readonly */
  6034. uint numAxes;
  6035. /* readonly */
  6036. uint numButtons;
  6037. /* readonly */
  6038. uint numHats;
  6039. };
  6040. class Light
  6041. {
  6042. public:
  6043. // Methods:
  6044. void ApplyAttributes();
  6045. void DrawDebugGeometry(DebugRenderer, bool);
  6046. Variant GetAttribute(const String&) const;
  6047. ValueAnimation GetAttributeAnimation(const String&) const;
  6048. float GetAttributeAnimationSpeed(const String&) const;
  6049. float GetAttributeAnimationTime(const String&) const;
  6050. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6051. Variant GetAttributeDefault(const String&) const;
  6052. bool GetInterceptNetworkUpdate(const String&) const;
  6053. bool HasSubscribedToEvent(Object, const String&);
  6054. bool HasSubscribedToEvent(const String&);
  6055. bool IsInView(Camera) const;
  6056. bool Load(File);
  6057. bool Load(VectorBuffer&);
  6058. bool LoadJSON(const JSONValue&);
  6059. bool LoadXML(const XMLElement&);
  6060. void MarkNetworkUpdate() const;
  6061. void Remove();
  6062. void RemoveAttributeAnimation(const String&);
  6063. void RemoveInstanceDefault();
  6064. void RemoveObjectAnimation();
  6065. void ResetToDefault();
  6066. bool Save(File) const;
  6067. bool Save(VectorBuffer&) const;
  6068. bool SaveJSON(JSONValue&) const;
  6069. bool SaveXML(XMLElement&) const;
  6070. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6071. void SetAnimationTime(float);
  6072. bool SetAttribute(const String&, const Variant&);
  6073. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6074. void SetAttributeAnimationSpeed(const String&, float);
  6075. void SetAttributeAnimationTime(const String&, float);
  6076. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6077. void SetInterceptNetworkUpdate(const String&, bool);
  6078. // Properties:
  6079. bool animationEnabled;
  6080. float aspectRatio;
  6081. /* readonly */
  6082. Array<Variant> attributeDefaults;
  6083. /* readonly */
  6084. Array<AttributeInfo> attributeInfos;
  6085. Array<Variant> attributes;
  6086. /* readonly */
  6087. BoundingBox boundingBox;
  6088. float brightness;
  6089. bool castShadows;
  6090. /* readonly */
  6091. String category;
  6092. Color color;
  6093. /* readonly */
  6094. Color colorFromTemperature;
  6095. float drawDistance;
  6096. /* readonly */
  6097. Color effectiveColor;
  6098. /* readonly */
  6099. float effectiveSpecularIntensity;
  6100. bool enabled;
  6101. /* readonly */
  6102. bool enabledEffective;
  6103. float fadeDistance;
  6104. float fov;
  6105. /* readonly */
  6106. Frustum frustum;
  6107. /* readonly */
  6108. uint id;
  6109. /* readonly */
  6110. bool inView;
  6111. float length;
  6112. uint lightMask;
  6113. LightType lightType;
  6114. float lodBias;
  6115. uint maxLights;
  6116. /* readonly */
  6117. bool negative;
  6118. /* readonly */
  6119. Node node;
  6120. /* readonly */
  6121. uint numAttributes;
  6122. /* readonly */
  6123. int numShadowSplits;
  6124. ObjectAnimation objectAnimation;
  6125. bool occludee;
  6126. bool occluder;
  6127. bool perVertex;
  6128. float radius;
  6129. Texture rampTexture;
  6130. float range;
  6131. /* readonly */
  6132. int refs;
  6133. /* readonly */
  6134. bool replicated;
  6135. BiasParameters shadowBias;
  6136. CascadeParameters shadowCascade;
  6137. float shadowDistance;
  6138. float shadowFadeDistance;
  6139. FocusParameters shadowFocus;
  6140. float shadowIntensity;
  6141. uint shadowMask;
  6142. float shadowMaxExtrusion;
  6143. float shadowNearFarRatio;
  6144. float shadowResolution;
  6145. Texture shapeTexture;
  6146. float specularIntensity;
  6147. float temperature;
  6148. bool temporary;
  6149. /* readonly */
  6150. StringHash type;
  6151. /* readonly */
  6152. String typeName;
  6153. bool usePhysicalValues;
  6154. uint viewMask;
  6155. /* readonly */
  6156. int weakRefs;
  6157. /* readonly */
  6158. BoundingBox worldBoundingBox;
  6159. uint zoneMask;
  6160. };
  6161. class LineEdit
  6162. {
  6163. public:
  6164. LineEdit();
  6165. LineEdit(const String&in);
  6166. // Methods:
  6167. void AddChild(UIElement);
  6168. void AddTag(const String&);
  6169. void AddTags(const String&, int8 = ';');
  6170. void ApplyAttributes();
  6171. void BringToFront();
  6172. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6173. void DisableLayoutUpdate();
  6174. IntVector2 ElementToScreen(const IntVector2&);
  6175. void EnableLayoutUpdate();
  6176. uint FindChild(UIElement) const;
  6177. Variant GetAttribute(const String&) const;
  6178. ValueAnimation GetAttributeAnimation(const String&) const;
  6179. float GetAttributeAnimationSpeed(const String&) const;
  6180. float GetAttributeAnimationTime(const String&) const;
  6181. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6182. Variant GetAttributeDefault(const String&) const;
  6183. UIElement GetChild(const String&, bool = false) const;
  6184. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6185. Array<UIElement> GetChildren(bool = false) const;
  6186. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6187. UIElement GetElementEventSender() const;
  6188. bool GetInterceptNetworkUpdate(const String&) const;
  6189. uint GetNumChildren(bool) const;
  6190. bool HasSubscribedToEvent(Object, const String&);
  6191. bool HasSubscribedToEvent(const String&);
  6192. bool HasTag(const String&) const;
  6193. void InsertChild(uint, UIElement);
  6194. bool IsChildOf(UIElement) const;
  6195. bool IsInside(IntVector2, bool);
  6196. bool IsInsideCombined(IntVector2, bool);
  6197. bool Load(File);
  6198. bool Load(VectorBuffer&);
  6199. UIElement LoadChildXML(XMLFile, XMLFile);
  6200. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6201. bool LoadJSON(const JSONValue&);
  6202. bool LoadXML(File);
  6203. bool LoadXML(VectorBuffer&);
  6204. bool LoadXML(XMLFile, XMLFile);
  6205. bool LoadXML(const XMLElement&, XMLFile);
  6206. bool LoadXML(const XMLElement&);
  6207. void MarkNetworkUpdate() const;
  6208. void Remove();
  6209. void RemoveAllChildren();
  6210. void RemoveAllTags();
  6211. void RemoveAttributeAnimation(const String&);
  6212. void RemoveChild(UIElement, uint = 0);
  6213. void RemoveChild(uint);
  6214. void RemoveInstanceDefault();
  6215. void RemoveObjectAnimation();
  6216. bool RemoveTag(const String&);
  6217. void ResetDeepEnabled();
  6218. void ResetToDefault();
  6219. bool Save(File) const;
  6220. bool Save(VectorBuffer&) const;
  6221. bool SaveJSON(JSONValue&) const;
  6222. bool SaveXML(File, const String& = "\t");
  6223. bool SaveXML(VectorBuffer&, const String& = "\t");
  6224. bool SaveXML(XMLElement&) const;
  6225. IntVector2 ScreenToElement(const IntVector2&);
  6226. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6227. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6228. void SetAnimationTime(float);
  6229. bool SetAttribute(const String&, const Variant&);
  6230. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6231. void SetAttributeAnimationSpeed(const String&, float);
  6232. void SetAttributeAnimationTime(const String&, float);
  6233. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6234. void SetDeepEnabled(bool);
  6235. void SetDisabledOffset(int, int);
  6236. void SetEnabledRecursive(bool);
  6237. void SetFixedHeight(int);
  6238. void SetFixedSize(int, int);
  6239. void SetFixedWidth(int);
  6240. void SetFullImageRect();
  6241. void SetHoverOffset(int, int);
  6242. void SetInterceptNetworkUpdate(const String&, bool);
  6243. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6244. void SetMaxAnchor(float, float);
  6245. void SetMaxSize(int, int);
  6246. void SetMinAnchor(float, float);
  6247. void SetMinSize(int, int);
  6248. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6249. void SetPivot(float, float);
  6250. void SetPosition(int, int);
  6251. void SetSize(int, int);
  6252. bool SetStyle(const String&, XMLFile = null);
  6253. bool SetStyle(const XMLElement&);
  6254. bool SetStyleAuto(XMLFile = null);
  6255. void UpdateLayout();
  6256. const Variant& GetVar(const StringHash&);
  6257. // Properties:
  6258. bool animationEnabled;
  6259. /* readonly */
  6260. Array<Variant> attributeDefaults;
  6261. /* readonly */
  6262. Array<AttributeInfo> attributeInfos;
  6263. Array<Variant> attributes;
  6264. BlendMode blendMode;
  6265. IntRect border;
  6266. bool bringToBack;
  6267. bool bringToFront;
  6268. /* readonly */
  6269. String category;
  6270. /* readonly */
  6271. IntVector2 childOffset;
  6272. /* readonly */
  6273. Array<UIElement> children;
  6274. IntRect clipBorder;
  6275. bool clipChildren;
  6276. /* writeonly */
  6277. Color color;
  6278. /* readonly */
  6279. bool colorGradient;
  6280. Array<Color> colors;
  6281. /* readonly */
  6282. IntRect combinedScreenRect;
  6283. /* readonly */
  6284. BorderImage cursor;
  6285. float cursorBlinkRate;
  6286. bool cursorMovable;
  6287. uint cursorPosition;
  6288. XMLFile defaultStyle;
  6289. /* readonly */
  6290. float derivedOpacity;
  6291. IntVector2 disabledOffset;
  6292. /* readonly */
  6293. uint dragButtonCombo;
  6294. /* readonly */
  6295. int dragButtonCount;
  6296. uint dragDropMode;
  6297. uint echoCharacter;
  6298. bool editable;
  6299. bool elementEventSender;
  6300. bool enableAnchor;
  6301. bool enabled;
  6302. /* readonly */
  6303. bool enabledSelf;
  6304. /* readonly */
  6305. bool fixedHeight;
  6306. /* readonly */
  6307. bool fixedSize;
  6308. /* readonly */
  6309. bool fixedWidth;
  6310. bool focus;
  6311. FocusMode focusMode;
  6312. int height;
  6313. HorizontalAlignment horizontalAlignment;
  6314. IntVector2 hoverOffset;
  6315. /* readonly */
  6316. bool hovering;
  6317. IntRect imageBorder;
  6318. IntRect imageRect;
  6319. int indent;
  6320. int indentSpacing;
  6321. /* readonly */
  6322. int indentWidth;
  6323. bool internal;
  6324. IntRect layoutBorder;
  6325. Vector2 layoutFlexScale;
  6326. LayoutMode layoutMode;
  6327. int layoutSpacing;
  6328. Material material;
  6329. Vector2 maxAnchor;
  6330. int maxHeight;
  6331. uint maxLength;
  6332. IntVector2 maxOffset;
  6333. IntVector2 maxSize;
  6334. int maxWidth;
  6335. Vector2 minAnchor;
  6336. int minHeight;
  6337. IntVector2 minOffset;
  6338. IntVector2 minSize;
  6339. int minWidth;
  6340. String name;
  6341. /* readonly */
  6342. uint numAllChildren;
  6343. /* readonly */
  6344. uint numAttributes;
  6345. /* readonly */
  6346. uint numChildren;
  6347. ObjectAnimation objectAnimation;
  6348. float opacity;
  6349. UIElement parent;
  6350. Vector2 pivot;
  6351. IntVector2 position;
  6352. int priority;
  6353. /* readonly */
  6354. int refs;
  6355. /* readonly */
  6356. UIElement root;
  6357. /* readonly */
  6358. IntVector2 screenPosition;
  6359. bool selected;
  6360. IntVector2 size;
  6361. bool sortChildren;
  6362. String style;
  6363. /* readonly */
  6364. Array<String> tags;
  6365. bool temporary;
  6366. String text;
  6367. bool textCopyable;
  6368. /* readonly */
  6369. Text textElement;
  6370. bool textSelectable;
  6371. Texture texture;
  6372. bool tiled;
  6373. TraversalMode traversalMode;
  6374. /* readonly */
  6375. StringHash type;
  6376. /* readonly */
  6377. String typeName;
  6378. bool useDerivedOpacity;
  6379. /* readonly */
  6380. VariantMap vars;
  6381. VerticalAlignment verticalAlignment;
  6382. bool visible;
  6383. /* readonly */
  6384. bool visibleEffective;
  6385. /* readonly */
  6386. int weakRefs;
  6387. int width;
  6388. };
  6389. class ListView
  6390. {
  6391. public:
  6392. ListView();
  6393. ListView(const String&in);
  6394. // Methods:
  6395. void AddChild(UIElement);
  6396. void AddItem(UIElement);
  6397. void AddSelection(uint);
  6398. void AddTag(const String&);
  6399. void AddTags(const String&, int8 = ';');
  6400. void ApplyAttributes();
  6401. void BringToFront();
  6402. void ChangeSelection(int, bool);
  6403. void ClearSelection();
  6404. void CopySelectedItemsToClipboard();
  6405. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6406. void DisableInternalLayoutUpdate();
  6407. void DisableLayoutUpdate();
  6408. IntVector2 ElementToScreen(const IntVector2&);
  6409. void EnableInternalLayoutUpdate();
  6410. void EnableLayoutUpdate();
  6411. void Expand(uint, bool, bool = false);
  6412. uint FindChild(UIElement) const;
  6413. uint FindItem(UIElement);
  6414. Variant GetAttribute(const String&) const;
  6415. ValueAnimation GetAttributeAnimation(const String&) const;
  6416. float GetAttributeAnimationSpeed(const String&) const;
  6417. float GetAttributeAnimationTime(const String&) const;
  6418. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6419. Variant GetAttributeDefault(const String&) const;
  6420. UIElement GetChild(const String&, bool = false) const;
  6421. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6422. Array<UIElement> GetChildren(bool = false) const;
  6423. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6424. UIElement GetElementEventSender() const;
  6425. bool GetInterceptNetworkUpdate(const String&) const;
  6426. Array<UIElement> GetItems() const;
  6427. uint GetNumChildren(bool) const;
  6428. bool HasSubscribedToEvent(Object, const String&);
  6429. bool HasSubscribedToEvent(const String&);
  6430. bool HasTag(const String&) const;
  6431. void InsertChild(uint, UIElement);
  6432. void InsertItem(uint, UIElement, UIElement = null);
  6433. bool IsChildOf(UIElement) const;
  6434. bool IsExpanded(uint) const;
  6435. bool IsInside(IntVector2, bool);
  6436. bool IsInsideCombined(IntVector2, bool);
  6437. bool IsSelected(uint) const;
  6438. bool Load(File);
  6439. bool Load(VectorBuffer&);
  6440. UIElement LoadChildXML(XMLFile, XMLFile);
  6441. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6442. bool LoadJSON(const JSONValue&);
  6443. bool LoadXML(File);
  6444. bool LoadXML(VectorBuffer&);
  6445. bool LoadXML(XMLFile, XMLFile);
  6446. bool LoadXML(const XMLElement&, XMLFile);
  6447. bool LoadXML(const XMLElement&);
  6448. void MarkNetworkUpdate() const;
  6449. void Remove();
  6450. void RemoveAllChildren();
  6451. void RemoveAllItems();
  6452. void RemoveAllTags();
  6453. void RemoveAttributeAnimation(const String&);
  6454. void RemoveChild(UIElement, uint = 0);
  6455. void RemoveChild(uint);
  6456. void RemoveInstanceDefault();
  6457. void RemoveItem(UIElement, uint = 0);
  6458. void RemoveItem(uint);
  6459. void RemoveObjectAnimation();
  6460. void RemoveSelection(uint);
  6461. bool RemoveTag(const String&);
  6462. void ResetDeepEnabled();
  6463. void ResetToDefault();
  6464. bool Save(File) const;
  6465. bool Save(VectorBuffer&) const;
  6466. bool SaveJSON(JSONValue&) const;
  6467. bool SaveXML(File, const String& = "\t");
  6468. bool SaveXML(VectorBuffer&, const String& = "\t");
  6469. bool SaveXML(XMLElement&) const;
  6470. IntVector2 ScreenToElement(const IntVector2&);
  6471. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6472. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6473. void SetAnimationTime(float);
  6474. bool SetAttribute(const String&, const Variant&);
  6475. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6476. void SetAttributeAnimationSpeed(const String&, float);
  6477. void SetAttributeAnimationTime(const String&, float);
  6478. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6479. void SetDeepEnabled(bool);
  6480. void SetEnabledRecursive(bool);
  6481. void SetFixedHeight(int);
  6482. void SetFixedSize(int, int);
  6483. void SetFixedWidth(int);
  6484. void SetInterceptNetworkUpdate(const String&, bool);
  6485. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6486. void SetMaxAnchor(float, float);
  6487. void SetMaxSize(int, int);
  6488. void SetMinAnchor(float, float);
  6489. void SetMinSize(int, int);
  6490. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6491. void SetPivot(float, float);
  6492. void SetPosition(int, int);
  6493. void SetScrollBarsVisible(bool, bool);
  6494. void SetSelections(Array<uint>);
  6495. void SetSize(int, int);
  6496. bool SetStyle(const String&, XMLFile = null);
  6497. bool SetStyle(const XMLElement&);
  6498. bool SetStyleAuto(XMLFile = null);
  6499. void SetViewPosition(int, int);
  6500. void ToggleExpand(uint, bool = false);
  6501. void ToggleSelection(uint);
  6502. void UpdateInternalLayout();
  6503. void UpdateLayout();
  6504. const Variant& GetVar(const StringHash&);
  6505. // Properties:
  6506. bool animationEnabled;
  6507. /* readonly */
  6508. Array<Variant> attributeDefaults;
  6509. /* readonly */
  6510. Array<AttributeInfo> attributeInfos;
  6511. Array<Variant> attributes;
  6512. bool autoDisableChildren;
  6513. float autoDisableThreshold;
  6514. int baseIndent;
  6515. bool bringToBack;
  6516. bool bringToFront;
  6517. /* readonly */
  6518. String category;
  6519. /* readonly */
  6520. IntVector2 childOffset;
  6521. /* readonly */
  6522. Array<UIElement> children;
  6523. bool clearSelectionOnDefocus;
  6524. IntRect clipBorder;
  6525. bool clipChildren;
  6526. /* writeonly */
  6527. Color color;
  6528. /* readonly */
  6529. bool colorGradient;
  6530. Array<Color> colors;
  6531. /* readonly */
  6532. IntRect combinedScreenRect;
  6533. /* readonly */
  6534. UIElement contentElement;
  6535. XMLFile defaultStyle;
  6536. /* readonly */
  6537. float derivedOpacity;
  6538. /* readonly */
  6539. uint dragButtonCombo;
  6540. /* readonly */
  6541. int dragButtonCount;
  6542. uint dragDropMode;
  6543. bool editable;
  6544. bool elementEventSender;
  6545. bool enableAnchor;
  6546. bool enabled;
  6547. /* readonly */
  6548. bool enabledSelf;
  6549. /* readonly */
  6550. bool fixedHeight;
  6551. /* readonly */
  6552. bool fixedSize;
  6553. /* readonly */
  6554. bool fixedWidth;
  6555. bool focus;
  6556. FocusMode focusMode;
  6557. int height;
  6558. bool hierarchyMode;
  6559. HighlightMode highlightMode;
  6560. HorizontalAlignment horizontalAlignment;
  6561. /* readonly */
  6562. ScrollBar horizontalScrollBar;
  6563. /* readonly */
  6564. bool hovering;
  6565. int indent;
  6566. int indentSpacing;
  6567. /* readonly */
  6568. int indentWidth;
  6569. bool internal;
  6570. /* readonly */
  6571. Array<UIElement> items;
  6572. IntRect layoutBorder;
  6573. Vector2 layoutFlexScale;
  6574. LayoutMode layoutMode;
  6575. int layoutSpacing;
  6576. Vector2 maxAnchor;
  6577. int maxHeight;
  6578. IntVector2 maxOffset;
  6579. IntVector2 maxSize;
  6580. int maxWidth;
  6581. Vector2 minAnchor;
  6582. int minHeight;
  6583. IntVector2 minOffset;
  6584. IntVector2 minSize;
  6585. int minWidth;
  6586. bool multiselect;
  6587. String name;
  6588. /* readonly */
  6589. uint numAllChildren;
  6590. /* readonly */
  6591. uint numAttributes;
  6592. /* readonly */
  6593. uint numChildren;
  6594. /* readonly */
  6595. uint numItems;
  6596. ObjectAnimation objectAnimation;
  6597. float opacity;
  6598. float pageStep;
  6599. UIElement parent;
  6600. Vector2 pivot;
  6601. IntVector2 position;
  6602. int priority;
  6603. /* readonly */
  6604. int refs;
  6605. /* readonly */
  6606. UIElement root;
  6607. /* readonly */
  6608. IntVector2 screenPosition;
  6609. bool scrollBarsAutoVisible;
  6610. float scrollDeceleration;
  6611. /* readonly */
  6612. BorderImage scrollPanel;
  6613. float scrollSnapEpsilon;
  6614. float scrollStep;
  6615. bool selectOnClickEnd;
  6616. bool selected;
  6617. /* readonly */
  6618. UIElement selectedItem;
  6619. /* readonly */
  6620. Array<UIElement> selectedItems;
  6621. uint selection;
  6622. /* readonly */
  6623. Array<uint> selections;
  6624. IntVector2 size;
  6625. bool sortChildren;
  6626. String style;
  6627. /* readonly */
  6628. Array<String> tags;
  6629. bool temporary;
  6630. TraversalMode traversalMode;
  6631. /* readonly */
  6632. StringHash type;
  6633. /* readonly */
  6634. String typeName;
  6635. bool useDerivedOpacity;
  6636. /* readonly */
  6637. VariantMap vars;
  6638. VerticalAlignment verticalAlignment;
  6639. /* readonly */
  6640. ScrollBar verticalScrollBar;
  6641. IntVector2 viewPosition;
  6642. bool visible;
  6643. /* readonly */
  6644. bool visibleEffective;
  6645. /* readonly */
  6646. int weakRefs;
  6647. int width;
  6648. };
  6649. class Localization
  6650. {
  6651. public:
  6652. // Methods:
  6653. String Get(const String&);
  6654. String GetLanguage(int);
  6655. int GetLanguageIndex(const String&);
  6656. bool HasSubscribedToEvent(Object, const String&);
  6657. bool HasSubscribedToEvent(const String&);
  6658. void LoadJSONFile(const String&, const String& = String ( "" ) const);
  6659. void LoadMultipleLanguageJSON(const JSONValue&);
  6660. void LoadSingleLanguageJSON(const JSONValue&, const String& = String ( "" ) const);
  6661. void Reset();
  6662. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6663. void SetLanguage(const String&);
  6664. void SetLanguage(int);
  6665. // Properties:
  6666. /* readonly */
  6667. String category;
  6668. /* readonly */
  6669. String language;
  6670. /* readonly */
  6671. int languageIndex;
  6672. /* readonly */
  6673. int numLanguages;
  6674. /* readonly */
  6675. int refs;
  6676. /* readonly */
  6677. StringHash type;
  6678. /* readonly */
  6679. String typeName;
  6680. /* readonly */
  6681. int weakRefs;
  6682. };
  6683. class Log
  6684. {
  6685. public:
  6686. // Methods:
  6687. void Close();
  6688. void Debug(const String&);
  6689. void Error(const String&);
  6690. bool HasSubscribedToEvent(Object, const String&);
  6691. bool HasSubscribedToEvent(const String&);
  6692. void Info(const String&);
  6693. void Open(const String&);
  6694. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6695. void Trace(const String&);
  6696. void Warning(const String&);
  6697. void Write(const String&, bool = false);
  6698. // Properties:
  6699. /* readonly */
  6700. String category;
  6701. /* readonly */
  6702. String lastMessage;
  6703. int level;
  6704. bool quiet;
  6705. /* readonly */
  6706. int refs;
  6707. bool timeStamp;
  6708. /* readonly */
  6709. StringHash type;
  6710. /* readonly */
  6711. String typeName;
  6712. /* readonly */
  6713. int weakRefs;
  6714. };
  6715. class Material
  6716. {
  6717. public:
  6718. Material();
  6719. Material(const String&in);
  6720. // Methods:
  6721. Material Clone(const String& = String ( )) const;
  6722. Pass GetPass(uint, const String&);
  6723. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6724. float GetShaderParameterAnimationSpeed(const String&) const;
  6725. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6726. bool HasSubscribedToEvent(Object, const String&);
  6727. bool HasSubscribedToEvent(const String&);
  6728. bool Load(File);
  6729. bool Load(VectorBuffer&);
  6730. bool Load(const JSONValue&);
  6731. bool Load(const String&);
  6732. bool Load(const XMLElement&);
  6733. void RemoveShaderParameter(const String&);
  6734. bool Save(File) const;
  6735. bool Save(JSONValue&) const;
  6736. bool Save(VectorBuffer&) const;
  6737. bool Save(XMLElement&) const;
  6738. bool Save(const String&) const;
  6739. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6740. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6741. void SetShaderParameterAnimationSpeed(const String&, float);
  6742. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6743. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6744. void SetUVTransform(const Vector2&, float, const Vector2&);
  6745. void SetUVTransform(const Vector2&, float, float);
  6746. void SortTechniques();
  6747. // Properties:
  6748. bool alphaToCoverage;
  6749. /* readonly */
  6750. String category;
  6751. CullMode cullMode;
  6752. BiasParameters depthBias;
  6753. FillMode fillMode;
  6754. bool lineAntiAlias;
  6755. /* readonly */
  6756. uint memoryUse;
  6757. String name;
  6758. uint numTechniques;
  6759. bool occlusion;
  6760. String pixelShaderDefines;
  6761. /* readonly */
  6762. int refs;
  6763. uint8 renderOrder;
  6764. Scene scene;
  6765. /* readonly */
  6766. Array<String> shaderParameterNames;
  6767. Array<Variant> shaderParameters;
  6768. CullMode shadowCullMode;
  6769. /* readonly */
  6770. Array<TechniqueEntry> techniqueEntries;
  6771. /* readonly */
  6772. Array<Technique> techniques;
  6773. Array<Texture> textures;
  6774. /* readonly */
  6775. StringHash type;
  6776. /* readonly */
  6777. String typeName;
  6778. /* readonly */
  6779. uint useTimer;
  6780. String vertexShaderDefines;
  6781. /* readonly */
  6782. int weakRefs;
  6783. };
  6784. class Matrix2
  6785. {
  6786. public:
  6787. Matrix2();
  6788. Matrix2(const Matrix2&in);
  6789. Matrix2(float, float, float, float);
  6790. // Methods:
  6791. bool Equals(const Matrix2&) const;
  6792. Matrix2 Inverse() const;
  6793. Vector2 Scale() const;
  6794. Matrix2 Scaled(const Vector2&) const;
  6795. void SetScale(const Vector2&);
  6796. void SetScale(float);
  6797. String ToString() const;
  6798. Matrix2 Transpose() const;
  6799. // Properties:
  6800. float m00;
  6801. float m01;
  6802. float m10;
  6803. float m11;
  6804. };
  6805. class Matrix3
  6806. {
  6807. public:
  6808. Matrix3();
  6809. Matrix3(const Matrix3&in);
  6810. Matrix3(float, float, float, float, float, float, float, float, float);
  6811. // Methods:
  6812. bool Equals(const Matrix3&) const;
  6813. Matrix3 Inverse() const;
  6814. Vector3 Scale() const;
  6815. Matrix3 Scaled(const Vector3&) const;
  6816. void SetScale(const Vector3&);
  6817. void SetScale(float);
  6818. String ToString() const;
  6819. Matrix3 Transpose() const;
  6820. // Properties:
  6821. float m00;
  6822. float m01;
  6823. float m02;
  6824. float m10;
  6825. float m11;
  6826. float m12;
  6827. float m20;
  6828. float m21;
  6829. float m22;
  6830. };
  6831. class Matrix3x4
  6832. {
  6833. public:
  6834. Matrix3x4();
  6835. Matrix3x4(const Matrix3x4&in);
  6836. Matrix3x4(const Matrix3&in);
  6837. Matrix3x4(const Matrix4&in);
  6838. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  6839. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  6840. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  6841. // Methods:
  6842. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6843. bool Equals(const Matrix3x4&) const;
  6844. Matrix3x4 Inverse() const;
  6845. Quaternion Rotation() const;
  6846. Matrix3 RotationMatrix() const;
  6847. Vector3 Scale() const;
  6848. void SetRotation(const Matrix3&);
  6849. void SetScale(const Vector3&);
  6850. void SetScale(float);
  6851. void SetTranslation(const Vector3&);
  6852. Matrix3 ToMatrix3() const;
  6853. Matrix4 ToMatrix4() const;
  6854. String ToString() const;
  6855. Vector3 Translation() const;
  6856. // Properties:
  6857. float m00;
  6858. float m01;
  6859. float m02;
  6860. float m03;
  6861. float m10;
  6862. float m11;
  6863. float m12;
  6864. float m13;
  6865. float m20;
  6866. float m21;
  6867. float m22;
  6868. float m23;
  6869. };
  6870. class Matrix4
  6871. {
  6872. public:
  6873. Matrix4();
  6874. Matrix4(const Matrix4&in);
  6875. Matrix4(const Matrix3&in);
  6876. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  6877. // Methods:
  6878. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6879. bool Equals(const Matrix4&) const;
  6880. Matrix4 Inverse() const;
  6881. Quaternion Rotation() const;
  6882. Matrix3 RotationMatrix() const;
  6883. Vector3 Scale() const;
  6884. void SetRotation(const Matrix3&);
  6885. void SetScale(const Vector3&);
  6886. void SetScale(float);
  6887. void SetTranslation(const Vector3&);
  6888. Matrix3 ToMatrix3() const;
  6889. String ToString() const;
  6890. Vector3 Translation() const;
  6891. Matrix4 Transpose() const;
  6892. // Properties:
  6893. float m00;
  6894. float m01;
  6895. float m02;
  6896. float m03;
  6897. float m10;
  6898. float m11;
  6899. float m12;
  6900. float m13;
  6901. float m20;
  6902. float m21;
  6903. float m22;
  6904. float m23;
  6905. float m30;
  6906. float m31;
  6907. float m32;
  6908. float m33;
  6909. };
  6910. class Menu
  6911. {
  6912. public:
  6913. Menu();
  6914. Menu(const String&in);
  6915. // Methods:
  6916. void AddChild(UIElement);
  6917. void AddTag(const String&);
  6918. void AddTags(const String&, int8 = ';');
  6919. void ApplyAttributes();
  6920. void BringToFront();
  6921. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6922. void DisableLayoutUpdate();
  6923. IntVector2 ElementToScreen(const IntVector2&);
  6924. void EnableLayoutUpdate();
  6925. uint FindChild(UIElement) const;
  6926. Variant GetAttribute(const String&) const;
  6927. ValueAnimation GetAttributeAnimation(const String&) const;
  6928. float GetAttributeAnimationSpeed(const String&) const;
  6929. float GetAttributeAnimationTime(const String&) const;
  6930. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6931. Variant GetAttributeDefault(const String&) const;
  6932. UIElement GetChild(const String&, bool = false) const;
  6933. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6934. Array<UIElement> GetChildren(bool = false) const;
  6935. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6936. UIElement GetElementEventSender() const;
  6937. bool GetInterceptNetworkUpdate(const String&) const;
  6938. uint GetNumChildren(bool) const;
  6939. bool HasSubscribedToEvent(Object, const String&);
  6940. bool HasSubscribedToEvent(const String&);
  6941. bool HasTag(const String&) const;
  6942. void InsertChild(uint, UIElement);
  6943. bool IsChildOf(UIElement) const;
  6944. bool IsInside(IntVector2, bool);
  6945. bool IsInsideCombined(IntVector2, bool);
  6946. bool Load(File);
  6947. bool Load(VectorBuffer&);
  6948. UIElement LoadChildXML(XMLFile, XMLFile);
  6949. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6950. bool LoadJSON(const JSONValue&);
  6951. bool LoadXML(File);
  6952. bool LoadXML(VectorBuffer&);
  6953. bool LoadXML(XMLFile, XMLFile);
  6954. bool LoadXML(const XMLElement&, XMLFile);
  6955. bool LoadXML(const XMLElement&);
  6956. void MarkNetworkUpdate() const;
  6957. void Remove();
  6958. void RemoveAllChildren();
  6959. void RemoveAllTags();
  6960. void RemoveAttributeAnimation(const String&);
  6961. void RemoveChild(UIElement, uint = 0);
  6962. void RemoveChild(uint);
  6963. void RemoveInstanceDefault();
  6964. void RemoveObjectAnimation();
  6965. bool RemoveTag(const String&);
  6966. void ResetDeepEnabled();
  6967. void ResetToDefault();
  6968. bool Save(File) const;
  6969. bool Save(VectorBuffer&) const;
  6970. bool SaveJSON(JSONValue&) const;
  6971. bool SaveXML(File, const String& = "\t");
  6972. bool SaveXML(VectorBuffer&, const String& = "\t");
  6973. bool SaveXML(XMLElement&) const;
  6974. IntVector2 ScreenToElement(const IntVector2&);
  6975. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6976. void SetAccelerator(int, int);
  6977. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6978. void SetAnimationTime(float);
  6979. bool SetAttribute(const String&, const Variant&);
  6980. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6981. void SetAttributeAnimationSpeed(const String&, float);
  6982. void SetAttributeAnimationTime(const String&, float);
  6983. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6984. void SetDeepEnabled(bool);
  6985. void SetDisabledOffset(int, int);
  6986. void SetEnabledRecursive(bool);
  6987. void SetFixedHeight(int);
  6988. void SetFixedSize(int, int);
  6989. void SetFixedWidth(int);
  6990. void SetFullImageRect();
  6991. void SetHoverOffset(int, int);
  6992. void SetInterceptNetworkUpdate(const String&, bool);
  6993. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6994. void SetMaxAnchor(float, float);
  6995. void SetMaxSize(int, int);
  6996. void SetMinAnchor(float, float);
  6997. void SetMinSize(int, int);
  6998. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6999. void SetPivot(float, float);
  7000. void SetPopupOffset(int, int);
  7001. void SetPosition(int, int);
  7002. void SetPressedChildOffset(int, int);
  7003. void SetPressedOffset(int, int);
  7004. void SetRepeat(float, float);
  7005. void SetSize(int, int);
  7006. bool SetStyle(const String&, XMLFile = null);
  7007. bool SetStyle(const XMLElement&);
  7008. bool SetStyleAuto(XMLFile = null);
  7009. void UpdateLayout();
  7010. const Variant& GetVar(const StringHash&);
  7011. // Properties:
  7012. /* readonly */
  7013. int acceleratorKey;
  7014. /* readonly */
  7015. int acceleratorQualifiers;
  7016. bool animationEnabled;
  7017. /* readonly */
  7018. Array<Variant> attributeDefaults;
  7019. /* readonly */
  7020. Array<AttributeInfo> attributeInfos;
  7021. Array<Variant> attributes;
  7022. BlendMode blendMode;
  7023. IntRect border;
  7024. bool bringToBack;
  7025. bool bringToFront;
  7026. /* readonly */
  7027. String category;
  7028. /* readonly */
  7029. IntVector2 childOffset;
  7030. /* readonly */
  7031. Array<UIElement> children;
  7032. IntRect clipBorder;
  7033. bool clipChildren;
  7034. /* writeonly */
  7035. Color color;
  7036. /* readonly */
  7037. bool colorGradient;
  7038. Array<Color> colors;
  7039. /* readonly */
  7040. IntRect combinedScreenRect;
  7041. XMLFile defaultStyle;
  7042. /* readonly */
  7043. float derivedOpacity;
  7044. IntVector2 disabledOffset;
  7045. /* readonly */
  7046. uint dragButtonCombo;
  7047. /* readonly */
  7048. int dragButtonCount;
  7049. uint dragDropMode;
  7050. bool editable;
  7051. bool elementEventSender;
  7052. bool enableAnchor;
  7053. bool enabled;
  7054. /* readonly */
  7055. bool enabledSelf;
  7056. /* readonly */
  7057. bool fixedHeight;
  7058. /* readonly */
  7059. bool fixedSize;
  7060. /* readonly */
  7061. bool fixedWidth;
  7062. bool focus;
  7063. FocusMode focusMode;
  7064. int height;
  7065. HorizontalAlignment horizontalAlignment;
  7066. IntVector2 hoverOffset;
  7067. /* readonly */
  7068. bool hovering;
  7069. IntRect imageBorder;
  7070. IntRect imageRect;
  7071. int indent;
  7072. int indentSpacing;
  7073. /* readonly */
  7074. int indentWidth;
  7075. bool internal;
  7076. IntRect layoutBorder;
  7077. Vector2 layoutFlexScale;
  7078. LayoutMode layoutMode;
  7079. int layoutSpacing;
  7080. Material material;
  7081. Vector2 maxAnchor;
  7082. int maxHeight;
  7083. IntVector2 maxOffset;
  7084. IntVector2 maxSize;
  7085. int maxWidth;
  7086. Vector2 minAnchor;
  7087. int minHeight;
  7088. IntVector2 minOffset;
  7089. IntVector2 minSize;
  7090. int minWidth;
  7091. String name;
  7092. /* readonly */
  7093. uint numAllChildren;
  7094. /* readonly */
  7095. uint numAttributes;
  7096. /* readonly */
  7097. uint numChildren;
  7098. ObjectAnimation objectAnimation;
  7099. float opacity;
  7100. UIElement parent;
  7101. Vector2 pivot;
  7102. UIElement popup;
  7103. IntVector2 popupOffset;
  7104. IntVector2 position;
  7105. /* readonly */
  7106. bool pressed;
  7107. IntVector2 pressedChildOffset;
  7108. IntVector2 pressedOffset;
  7109. int priority;
  7110. /* readonly */
  7111. int refs;
  7112. float repeatDelay;
  7113. float repeatRate;
  7114. /* readonly */
  7115. UIElement root;
  7116. /* readonly */
  7117. IntVector2 screenPosition;
  7118. bool selected;
  7119. bool showPopup;
  7120. IntVector2 size;
  7121. bool sortChildren;
  7122. String style;
  7123. /* readonly */
  7124. Array<String> tags;
  7125. bool temporary;
  7126. Texture texture;
  7127. bool tiled;
  7128. TraversalMode traversalMode;
  7129. /* readonly */
  7130. StringHash type;
  7131. /* readonly */
  7132. String typeName;
  7133. bool useDerivedOpacity;
  7134. /* readonly */
  7135. VariantMap vars;
  7136. VerticalAlignment verticalAlignment;
  7137. bool visible;
  7138. /* readonly */
  7139. bool visibleEffective;
  7140. /* readonly */
  7141. int weakRefs;
  7142. int width;
  7143. };
  7144. class MessageBox
  7145. {
  7146. public:
  7147. MessageBox(const String&in messageString = String ( ), const String&in titleString = String ( ), XMLFile& layoutFile = null, XMLFile& styleFile = null);
  7148. // Methods:
  7149. bool HasSubscribedToEvent(Object, const String&);
  7150. bool HasSubscribedToEvent(const String&);
  7151. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7152. // Properties:
  7153. /* readonly */
  7154. String category;
  7155. String message;
  7156. /* readonly */
  7157. int refs;
  7158. String title;
  7159. /* readonly */
  7160. StringHash type;
  7161. /* readonly */
  7162. String typeName;
  7163. /* readonly */
  7164. int weakRefs;
  7165. /* readonly */
  7166. UIElement window;
  7167. };
  7168. class Model
  7169. {
  7170. public:
  7171. Model();
  7172. Model(const String&in);
  7173. // Methods:
  7174. void AddMetadata(const String&, const Variant&);
  7175. Model Clone(const String& = String ( )) const;
  7176. Geometry GetGeometry(uint, uint) const;
  7177. bool HasSubscribedToEvent(Object, const String&);
  7178. bool HasSubscribedToEvent(const String&);
  7179. bool Load(File);
  7180. bool Load(VectorBuffer&);
  7181. bool Load(const String&);
  7182. void RemoveAllMetadata();
  7183. void RemoveMetadata(const String&);
  7184. bool Save(File) const;
  7185. bool Save(VectorBuffer&) const;
  7186. bool Save(const String&) const;
  7187. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7188. bool SetGeometry(uint, uint, Geometry);
  7189. bool SetIndexBuffers(Array<IndexBuffer>);
  7190. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  7191. // Properties:
  7192. BoundingBox boundingBox;
  7193. /* readonly */
  7194. String category;
  7195. Array<Vector3> geometryCenters;
  7196. /* readonly */
  7197. bool hasMetadata;
  7198. /* readonly */
  7199. uint memoryUse;
  7200. Array<Variant> metadata;
  7201. String name;
  7202. uint numGeometries;
  7203. Array<uint> numGeometryLodLevels;
  7204. /* readonly */
  7205. uint numMorphs;
  7206. /* readonly */
  7207. int refs;
  7208. /* readonly */
  7209. Skeleton skeleton;
  7210. /* readonly */
  7211. StringHash type;
  7212. /* readonly */
  7213. String typeName;
  7214. /* readonly */
  7215. uint useTimer;
  7216. /* readonly */
  7217. int weakRefs;
  7218. };
  7219. class NamedPipe
  7220. {
  7221. public:
  7222. NamedPipe();
  7223. NamedPipe(const String&in, bool);
  7224. // Methods:
  7225. void Close();
  7226. bool HasSubscribedToEvent(Object, const String&);
  7227. bool HasSubscribedToEvent(const String&);
  7228. bool Open(const String&, bool);
  7229. Array<uint8> Read(uint);
  7230. bool ReadBool();
  7231. BoundingBox ReadBoundingBox();
  7232. int8 ReadByte();
  7233. Color ReadColor();
  7234. double ReadDouble();
  7235. String ReadFileID();
  7236. float ReadFloat();
  7237. int ReadInt();
  7238. int64 ReadInt64();
  7239. IntRect ReadIntRect();
  7240. IntVector2 ReadIntVector2();
  7241. String ReadLine();
  7242. Matrix3 ReadMatrix3();
  7243. Matrix3x4 ReadMatrix3x4();
  7244. Matrix4 ReadMatrix4();
  7245. uint ReadNetID();
  7246. Quaternion ReadPackedQuaternion();
  7247. Vector3 ReadPackedVector3(float);
  7248. Quaternion ReadQuaternion();
  7249. int16 ReadShort();
  7250. String ReadString();
  7251. StringHash ReadStringHash();
  7252. uint8 ReadUByte();
  7253. uint ReadUInt();
  7254. uint64 ReadUInt64();
  7255. uint16 ReadUShort();
  7256. uint ReadVLE();
  7257. Variant ReadVariant();
  7258. VariantMap ReadVariantMap();
  7259. Vector2 ReadVector2();
  7260. Vector3 ReadVector3();
  7261. Vector4 ReadVector4();
  7262. VectorBuffer ReadVectorBuffer(uint);
  7263. uint Seek(uint);
  7264. uint SeekRelative(int);
  7265. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7266. uint Tell() const;
  7267. uint Write(Array<uint8>);
  7268. bool WriteBool(bool);
  7269. bool WriteBoundingBox(const BoundingBox&);
  7270. bool WriteByte(int8);
  7271. bool WriteColor(const Color&);
  7272. bool WriteDouble(double);
  7273. bool WriteFileID(const String&);
  7274. bool WriteFloat(float);
  7275. bool WriteInt(int);
  7276. bool WriteInt64(int64);
  7277. bool WriteIntRect(const IntRect&);
  7278. bool WriteIntVector2(const IntVector2&);
  7279. bool WriteLine(const String&);
  7280. bool WriteMatrix3(const Matrix3&);
  7281. bool WriteMatrix3x4(const Matrix3x4&);
  7282. bool WriteMatrix4(const Matrix4&);
  7283. bool WriteNetID(uint);
  7284. bool WritePackedQuaternion(const Quaternion&);
  7285. bool WritePackedVector3(const Vector3&, float);
  7286. bool WriteQuaternion(const Quaternion&);
  7287. bool WriteShort(int16);
  7288. bool WriteString(const String&);
  7289. bool WriteStringHash(const StringHash&);
  7290. bool WriteUByte(uint8);
  7291. bool WriteUInt(uint);
  7292. bool WriteUInt64(uint64);
  7293. bool WriteUShort(uint16);
  7294. bool WriteVLE(uint);
  7295. bool WriteVariant(const Variant&);
  7296. bool WriteVariantMap(const VariantMap&);
  7297. bool WriteVector2(const Vector2&);
  7298. bool WriteVector3(const Vector3&);
  7299. bool WriteVector4(const Vector4&);
  7300. bool WriteVectorBuffer(const VectorBuffer&);
  7301. // Properties:
  7302. /* readonly */
  7303. String category;
  7304. /* readonly */
  7305. uint checksum;
  7306. /* readonly */
  7307. bool eof;
  7308. /* readonly */
  7309. String name;
  7310. /* readonly */
  7311. bool open;
  7312. /* readonly */
  7313. uint position;
  7314. /* readonly */
  7315. int refs;
  7316. /* readonly */
  7317. bool server;
  7318. /* readonly */
  7319. uint size;
  7320. /* readonly */
  7321. StringHash type;
  7322. /* readonly */
  7323. String typeName;
  7324. /* readonly */
  7325. int weakRefs;
  7326. };
  7327. class NavArea
  7328. {
  7329. public:
  7330. // Methods:
  7331. void ApplyAttributes();
  7332. void DrawDebugGeometry(DebugRenderer, bool);
  7333. Variant GetAttribute(const String&) const;
  7334. ValueAnimation GetAttributeAnimation(const String&) const;
  7335. float GetAttributeAnimationSpeed(const String&) const;
  7336. float GetAttributeAnimationTime(const String&) const;
  7337. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7338. Variant GetAttributeDefault(const String&) const;
  7339. bool GetInterceptNetworkUpdate(const String&) const;
  7340. bool HasSubscribedToEvent(Object, const String&);
  7341. bool HasSubscribedToEvent(const String&);
  7342. bool Load(File);
  7343. bool Load(VectorBuffer&);
  7344. bool LoadJSON(const JSONValue&);
  7345. bool LoadXML(const XMLElement&);
  7346. void MarkNetworkUpdate() const;
  7347. void Remove();
  7348. void RemoveAttributeAnimation(const String&);
  7349. void RemoveInstanceDefault();
  7350. void RemoveObjectAnimation();
  7351. void ResetToDefault();
  7352. bool Save(File) const;
  7353. bool Save(VectorBuffer&) const;
  7354. bool SaveJSON(JSONValue&) const;
  7355. bool SaveXML(XMLElement&) const;
  7356. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7357. void SetAnimationTime(float);
  7358. bool SetAttribute(const String&, const Variant&);
  7359. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7360. void SetAttributeAnimationSpeed(const String&, float);
  7361. void SetAttributeAnimationTime(const String&, float);
  7362. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7363. void SetInterceptNetworkUpdate(const String&, bool);
  7364. // Properties:
  7365. bool animationEnabled;
  7366. uint areaID;
  7367. /* readonly */
  7368. Array<Variant> attributeDefaults;
  7369. /* readonly */
  7370. Array<AttributeInfo> attributeInfos;
  7371. Array<Variant> attributes;
  7372. BoundingBox boundingBox;
  7373. /* readonly */
  7374. String category;
  7375. bool enabled;
  7376. /* readonly */
  7377. bool enabledEffective;
  7378. /* readonly */
  7379. uint id;
  7380. /* readonly */
  7381. Node node;
  7382. /* readonly */
  7383. uint numAttributes;
  7384. ObjectAnimation objectAnimation;
  7385. /* readonly */
  7386. int refs;
  7387. /* readonly */
  7388. bool replicated;
  7389. bool temporary;
  7390. /* readonly */
  7391. StringHash type;
  7392. /* readonly */
  7393. String typeName;
  7394. /* readonly */
  7395. int weakRefs;
  7396. /* readonly */
  7397. BoundingBox worldBoundingBox;
  7398. };
  7399. class Navigable
  7400. {
  7401. public:
  7402. // Methods:
  7403. void ApplyAttributes();
  7404. void DrawDebugGeometry(DebugRenderer, bool);
  7405. Variant GetAttribute(const String&) const;
  7406. ValueAnimation GetAttributeAnimation(const String&) const;
  7407. float GetAttributeAnimationSpeed(const String&) const;
  7408. float GetAttributeAnimationTime(const String&) const;
  7409. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7410. Variant GetAttributeDefault(const String&) const;
  7411. bool GetInterceptNetworkUpdate(const String&) const;
  7412. bool HasSubscribedToEvent(Object, const String&);
  7413. bool HasSubscribedToEvent(const String&);
  7414. bool Load(File);
  7415. bool Load(VectorBuffer&);
  7416. bool LoadJSON(const JSONValue&);
  7417. bool LoadXML(const XMLElement&);
  7418. void MarkNetworkUpdate() const;
  7419. void Remove();
  7420. void RemoveAttributeAnimation(const String&);
  7421. void RemoveInstanceDefault();
  7422. void RemoveObjectAnimation();
  7423. void ResetToDefault();
  7424. bool Save(File) const;
  7425. bool Save(VectorBuffer&) const;
  7426. bool SaveJSON(JSONValue&) const;
  7427. bool SaveXML(XMLElement&) const;
  7428. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7429. void SetAnimationTime(float);
  7430. bool SetAttribute(const String&, const Variant&);
  7431. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7432. void SetAttributeAnimationSpeed(const String&, float);
  7433. void SetAttributeAnimationTime(const String&, float);
  7434. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7435. void SetInterceptNetworkUpdate(const String&, bool);
  7436. // Properties:
  7437. bool animationEnabled;
  7438. /* readonly */
  7439. Array<Variant> attributeDefaults;
  7440. /* readonly */
  7441. Array<AttributeInfo> attributeInfos;
  7442. Array<Variant> attributes;
  7443. /* readonly */
  7444. String category;
  7445. bool enabled;
  7446. /* readonly */
  7447. bool enabledEffective;
  7448. /* readonly */
  7449. uint id;
  7450. /* readonly */
  7451. Node node;
  7452. /* readonly */
  7453. uint numAttributes;
  7454. ObjectAnimation objectAnimation;
  7455. bool recursive;
  7456. /* readonly */
  7457. int refs;
  7458. /* readonly */
  7459. bool replicated;
  7460. bool temporary;
  7461. /* readonly */
  7462. StringHash type;
  7463. /* readonly */
  7464. String typeName;
  7465. /* readonly */
  7466. int weakRefs;
  7467. };
  7468. class NavigationMesh
  7469. {
  7470. public:
  7471. // Methods:
  7472. bool AddTile(const VectorBuffer&) const;
  7473. bool Allocate(const BoundingBox&, uint);
  7474. void ApplyAttributes();
  7475. bool Build();
  7476. bool Build(const BoundingBox&);
  7477. bool Build(const IntVector2&, const IntVector2&);
  7478. void DrawDebugGeometry(DebugRenderer, bool);
  7479. void DrawDebugGeometry(bool);
  7480. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7481. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7482. float GetAreaCost(uint) const;
  7483. Variant GetAttribute(const String&) const;
  7484. ValueAnimation GetAttributeAnimation(const String&) const;
  7485. float GetAttributeAnimationSpeed(const String&) const;
  7486. float GetAttributeAnimationTime(const String&) const;
  7487. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7488. Variant GetAttributeDefault(const String&) const;
  7489. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7490. bool GetInterceptNetworkUpdate(const String&) const;
  7491. Vector3 GetRandomPoint();
  7492. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7493. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  7494. VectorBuffer GetTileData(const IntVector2&) const;
  7495. IntVector2 GetTileIndex(const Vector3&) const;
  7496. bool HasSubscribedToEvent(Object, const String&);
  7497. bool HasSubscribedToEvent(const String&);
  7498. bool HasTile(const IntVector2&) const;
  7499. bool Load(File);
  7500. bool Load(VectorBuffer&);
  7501. bool LoadJSON(const JSONValue&);
  7502. bool LoadXML(const XMLElement&);
  7503. void MarkNetworkUpdate() const;
  7504. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  7505. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7506. void Remove();
  7507. void RemoveAllTiles();
  7508. void RemoveAttributeAnimation(const String&);
  7509. void RemoveInstanceDefault();
  7510. void RemoveObjectAnimation();
  7511. void RemoveTile(const IntVector2&);
  7512. void ResetToDefault();
  7513. bool Save(File) const;
  7514. bool Save(VectorBuffer&) const;
  7515. bool SaveJSON(JSONValue&) const;
  7516. bool SaveXML(XMLElement&) const;
  7517. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7518. void SetAnimationTime(float);
  7519. void SetAreaCost(uint, float);
  7520. bool SetAttribute(const String&, const Variant&);
  7521. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7522. void SetAttributeAnimationSpeed(const String&, float);
  7523. void SetAttributeAnimationTime(const String&, float);
  7524. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7525. void SetInterceptNetworkUpdate(const String&, bool);
  7526. // Properties:
  7527. float agentHeight;
  7528. float agentMaxClimb;
  7529. float agentMaxSlope;
  7530. float agentRadius;
  7531. bool animationEnabled;
  7532. /* readonly */
  7533. Array<Variant> attributeDefaults;
  7534. /* readonly */
  7535. Array<AttributeInfo> attributeInfos;
  7536. Array<Variant> attributes;
  7537. /* readonly */
  7538. BoundingBox boundingBox;
  7539. /* readonly */
  7540. String category;
  7541. float cellHeight;
  7542. float cellSize;
  7543. float detailSampleDistance;
  7544. float detailSampleMaxError;
  7545. bool drawNavAreas;
  7546. bool drawOffMeshConnections;
  7547. float edgeMaxError;
  7548. float edgeMaxLength;
  7549. bool enabled;
  7550. /* readonly */
  7551. bool enabledEffective;
  7552. /* readonly */
  7553. uint id;
  7554. /* readonly */
  7555. bool initialized;
  7556. /* readonly */
  7557. Node node;
  7558. /* readonly */
  7559. uint numAttributes;
  7560. /* readonly */
  7561. IntVector2 numTiles;
  7562. ObjectAnimation objectAnimation;
  7563. Vector3 padding;
  7564. NavmeshPartitionType partitionType;
  7565. /* readonly */
  7566. int refs;
  7567. float regionMergeSize;
  7568. float regionMinSize;
  7569. /* readonly */
  7570. bool replicated;
  7571. bool temporary;
  7572. int tileSize;
  7573. /* readonly */
  7574. StringHash type;
  7575. /* readonly */
  7576. String typeName;
  7577. /* readonly */
  7578. int weakRefs;
  7579. /* readonly */
  7580. BoundingBox worldBoundingBox;
  7581. };
  7582. class Network
  7583. {
  7584. public:
  7585. // Methods:
  7586. bool AttemptNATPunchtrough(const String&, Scene, const VariantMap& = VariantMap ( ));
  7587. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  7588. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  7589. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  7590. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  7591. bool CheckRemoteEvent(const String&) const;
  7592. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  7593. void Disconnect(int = 0);
  7594. bool DiscoverHosts(uint16);
  7595. bool HasSubscribedToEvent(Object, const String&);
  7596. bool HasSubscribedToEvent(const String&);
  7597. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  7598. void RegisterRemoteEvent(const String&) const;
  7599. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7600. void SendPackageToClients(Scene, PackageFile);
  7601. bool SetDiscoveryBeacon(const VariantMap& = VariantMap ( ));
  7602. void SetNATServerInfo(const String&, uint16);
  7603. bool SetPassword(const String&);
  7604. void StartNATClient() const;
  7605. bool StartServer(uint16, uint = 128);
  7606. void StopServer();
  7607. void UnregisterAllRemoteEvents();
  7608. void UnregisterRemoteEvent(const String&) const;
  7609. // Properties:
  7610. /* readonly */
  7611. String category;
  7612. /* readonly */
  7613. Array<Connection> clientConnections;
  7614. /* readonly */
  7615. String guid;
  7616. String packageCacheDir;
  7617. /* readonly */
  7618. int refs;
  7619. /* readonly */
  7620. Connection serverConnection;
  7621. /* readonly */
  7622. bool serverRunning;
  7623. int simulatedLatency;
  7624. float simulatedPacketLoss;
  7625. /* readonly */
  7626. String startNATClient;
  7627. /* readonly */
  7628. StringHash type;
  7629. /* readonly */
  7630. String typeName;
  7631. int updateFps;
  7632. /* readonly */
  7633. int weakRefs;
  7634. };
  7635. class NetworkPriority
  7636. {
  7637. public:
  7638. // Methods:
  7639. void ApplyAttributes();
  7640. void DrawDebugGeometry(DebugRenderer, bool);
  7641. Variant GetAttribute(const String&) const;
  7642. ValueAnimation GetAttributeAnimation(const String&) const;
  7643. float GetAttributeAnimationSpeed(const String&) const;
  7644. float GetAttributeAnimationTime(const String&) const;
  7645. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7646. Variant GetAttributeDefault(const String&) const;
  7647. bool GetInterceptNetworkUpdate(const String&) const;
  7648. bool HasSubscribedToEvent(Object, const String&);
  7649. bool HasSubscribedToEvent(const String&);
  7650. bool Load(File);
  7651. bool Load(VectorBuffer&);
  7652. bool LoadJSON(const JSONValue&);
  7653. bool LoadXML(const XMLElement&);
  7654. void MarkNetworkUpdate() const;
  7655. void Remove();
  7656. void RemoveAttributeAnimation(const String&);
  7657. void RemoveInstanceDefault();
  7658. void RemoveObjectAnimation();
  7659. void ResetToDefault();
  7660. bool Save(File) const;
  7661. bool Save(VectorBuffer&) const;
  7662. bool SaveJSON(JSONValue&) const;
  7663. bool SaveXML(XMLElement&) const;
  7664. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7665. void SetAnimationTime(float);
  7666. bool SetAttribute(const String&, const Variant&);
  7667. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7668. void SetAttributeAnimationSpeed(const String&, float);
  7669. void SetAttributeAnimationTime(const String&, float);
  7670. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7671. void SetInterceptNetworkUpdate(const String&, bool);
  7672. // Properties:
  7673. bool alwaysUpdateOwner;
  7674. bool animationEnabled;
  7675. /* readonly */
  7676. Array<Variant> attributeDefaults;
  7677. /* readonly */
  7678. Array<AttributeInfo> attributeInfos;
  7679. Array<Variant> attributes;
  7680. float basePriority;
  7681. /* readonly */
  7682. String category;
  7683. float distanceFactor;
  7684. bool enabled;
  7685. /* readonly */
  7686. bool enabledEffective;
  7687. /* readonly */
  7688. uint id;
  7689. float minPriority;
  7690. /* readonly */
  7691. Node node;
  7692. /* readonly */
  7693. uint numAttributes;
  7694. ObjectAnimation objectAnimation;
  7695. /* readonly */
  7696. int refs;
  7697. /* readonly */
  7698. bool replicated;
  7699. bool temporary;
  7700. /* readonly */
  7701. StringHash type;
  7702. /* readonly */
  7703. String typeName;
  7704. /* readonly */
  7705. int weakRefs;
  7706. };
  7707. class Node
  7708. {
  7709. public:
  7710. Node();
  7711. Node(const String&in);
  7712. // Methods:
  7713. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7714. void AddTag(const String&);
  7715. void AddTags(const String&, int8 = ';');
  7716. void ApplyAttributes();
  7717. Node Clone(CreateMode = REPLICATED);
  7718. Component CloneComponent(Component, CreateMode, uint = 0);
  7719. Component CloneComponent(Component, uint = 0);
  7720. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7721. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7722. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7723. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7724. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7725. Variant GetAttribute(const String&) const;
  7726. ValueAnimation GetAttributeAnimation(const String&) const;
  7727. float GetAttributeAnimationSpeed(const String&) const;
  7728. float GetAttributeAnimationTime(const String&) const;
  7729. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7730. Variant GetAttributeDefault(const String&) const;
  7731. Node GetChild(const String&, bool = false) const;
  7732. Array<Node> GetChildren(bool = false) const;
  7733. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7734. Array<Node> GetChildrenWithScript(bool = false) const;
  7735. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7736. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7737. Component GetComponent(const String&, bool = false) const;
  7738. Array<Component> GetComponents() const;
  7739. Array<Component> GetComponents(const String&, bool = false) const;
  7740. bool GetInterceptNetworkUpdate(const String&) const;
  7741. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7742. Component GetParentComponent(const String&, bool = false) const;
  7743. ScriptObject GetScriptObject() const;
  7744. ScriptObject GetScriptObject(const String&) const;
  7745. bool HasComponent(const String&) const;
  7746. bool HasSubscribedToEvent(Object, const String&);
  7747. bool HasSubscribedToEvent(const String&);
  7748. bool HasTag(const String&);
  7749. bool IsChildOf(Node) const;
  7750. bool Load(File);
  7751. bool Load(VectorBuffer&);
  7752. bool LoadJSON(const JSONValue&);
  7753. bool LoadXML(const XMLElement&);
  7754. Vector3 LocalToWorld(const Vector3&) const;
  7755. Vector3 LocalToWorld(const Vector4&) const;
  7756. Vector2 LocalToWorld2D(const Vector2&) const;
  7757. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7758. void MarkDirty();
  7759. void MarkNetworkUpdate() const;
  7760. void Pitch(float, TransformSpace = TS_LOCAL);
  7761. void Remove();
  7762. void RemoveAllChildren();
  7763. void RemoveAllComponents();
  7764. void RemoveAllTags();
  7765. void RemoveAttributeAnimation(const String&);
  7766. void RemoveChild(Node);
  7767. void RemoveChildren(bool, bool, bool);
  7768. void RemoveComponent(Component);
  7769. void RemoveComponent(const String&);
  7770. void RemoveComponents(bool, bool);
  7771. void RemoveComponents(const String&);
  7772. void RemoveInstanceDefault();
  7773. void RemoveObjectAnimation();
  7774. bool RemoveTag(const String&);
  7775. void ReorderComponent(Component, uint);
  7776. void ResetDeepEnabled();
  7777. void ResetToDefault();
  7778. void Roll(float, TransformSpace = TS_LOCAL);
  7779. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7780. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7781. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7782. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7783. bool Save(File) const;
  7784. bool Save(VectorBuffer&) const;
  7785. bool SaveJSON(File);
  7786. bool SaveJSON(JSONValue&) const;
  7787. bool SaveJSON(VectorBuffer&);
  7788. bool SaveXML(File, const String& = "\t");
  7789. bool SaveXML(VectorBuffer&, const String& = "\t");
  7790. bool SaveXML(XMLElement&) const;
  7791. void Scale(const Vector3&);
  7792. void Scale(float);
  7793. void Scale2D(const Vector2&);
  7794. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7795. void SetAnimationTime(float);
  7796. bool SetAttribute(const String&, const Variant&);
  7797. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7798. void SetAttributeAnimationSpeed(const String&, float);
  7799. void SetAttributeAnimationTime(const String&, float);
  7800. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7801. void SetDeepEnabled(bool);
  7802. void SetEnabledRecursive(bool);
  7803. void SetInterceptNetworkUpdate(const String&, bool);
  7804. void SetPosition2D(float, float);
  7805. void SetScale(float);
  7806. void SetScale2D(float, float);
  7807. void SetTransform(const Matrix3x4&);
  7808. void SetTransform(const Vector3&, const Quaternion&);
  7809. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7810. void SetTransform(const Vector3&, const Quaternion&, float);
  7811. void SetTransform2D(const Vector2&, float);
  7812. void SetTransform2D(const Vector2&, float, const Vector2&);
  7813. void SetTransform2D(const Vector2&, float, float);
  7814. void SetWorldTransform(const Vector3&, const Quaternion&);
  7815. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7816. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7817. void SetWorldTransform2D(const Vector2&, float);
  7818. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7819. void SetWorldTransform2D(const Vector2&, float, float);
  7820. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7821. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7822. Vector3 WorldToLocal(const Vector3&) const;
  7823. Vector3 WorldToLocal(const Vector4&) const;
  7824. Vector2 WorldToLocal2D(const Vector2&) const;
  7825. void Yaw(float, TransformSpace = TS_LOCAL);
  7826. // Properties:
  7827. /* readonly */
  7828. Array<Node> allChildrenByName;
  7829. bool animationEnabled;
  7830. /* readonly */
  7831. Array<Variant> attributeDefaults;
  7832. /* readonly */
  7833. Array<AttributeInfo> attributeInfos;
  7834. Array<Variant> attributes;
  7835. /* readonly */
  7836. String category;
  7837. /* readonly */
  7838. Array<Node> children;
  7839. /* readonly */
  7840. Array<Node> childrenByName;
  7841. /* readonly */
  7842. Array<Component> components;
  7843. Vector3 direction;
  7844. bool enabled;
  7845. /* readonly */
  7846. bool enabledSelf;
  7847. uint id;
  7848. String name;
  7849. /* readonly */
  7850. uint numAllChildren;
  7851. /* readonly */
  7852. uint numAttributes;
  7853. /* readonly */
  7854. uint numChildren;
  7855. /* readonly */
  7856. uint numComponents;
  7857. ObjectAnimation objectAnimation;
  7858. Connection owner;
  7859. Node parent;
  7860. Vector3 position;
  7861. Vector2 position2D;
  7862. /* readonly */
  7863. int refs;
  7864. /* readonly */
  7865. bool replicated;
  7866. /* readonly */
  7867. Vector3 right;
  7868. Quaternion rotation;
  7869. float rotation2D;
  7870. Vector3 scale;
  7871. Vector2 scale2D;
  7872. /* readonly */
  7873. Scene scene;
  7874. /* readonly */
  7875. ScriptObject scriptObject;
  7876. /* readonly */
  7877. Vector3 signedWorldScale;
  7878. /* readonly */
  7879. Array<String> tags;
  7880. bool temporary;
  7881. /* readonly */
  7882. Matrix3x4 transform;
  7883. /* readonly */
  7884. StringHash type;
  7885. /* readonly */
  7886. String typeName;
  7887. /* readonly */
  7888. Vector3 up;
  7889. /* readonly */
  7890. VariantMap vars;
  7891. /* readonly */
  7892. int weakRefs;
  7893. Vector3 worldDirection;
  7894. Vector3 worldPosition;
  7895. Vector2 worldPosition2D;
  7896. /* readonly */
  7897. Vector3 worldRight;
  7898. Quaternion worldRotation;
  7899. float worldRotation2D;
  7900. Vector3 worldScale;
  7901. Vector2 worldScale2D;
  7902. /* readonly */
  7903. Matrix3x4 worldTransform;
  7904. /* readonly */
  7905. Vector3 worldUp;
  7906. };
  7907. class Object
  7908. {
  7909. public:
  7910. // Methods:
  7911. bool HasSubscribedToEvent(Object, const String&);
  7912. bool HasSubscribedToEvent(const String&);
  7913. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7914. // Properties:
  7915. /* readonly */
  7916. String category;
  7917. /* readonly */
  7918. int refs;
  7919. /* readonly */
  7920. StringHash type;
  7921. /* readonly */
  7922. String typeName;
  7923. /* readonly */
  7924. int weakRefs;
  7925. };
  7926. class ObjectAnimation
  7927. {
  7928. public:
  7929. ObjectAnimation();
  7930. ObjectAnimation(const String&in);
  7931. // Methods:
  7932. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7933. ValueAnimation GetAttributeAnimation(const String&) const;
  7934. float GetAttributeAnimationSpeed(const String&) const;
  7935. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7936. bool HasSubscribedToEvent(Object, const String&);
  7937. bool HasSubscribedToEvent(const String&);
  7938. bool Load(File);
  7939. bool Load(VectorBuffer&);
  7940. bool Load(const String&);
  7941. void RemoveAttributeAnimation(ValueAnimation);
  7942. void RemoveAttributeAnimation(const String&);
  7943. bool Save(File) const;
  7944. bool Save(VectorBuffer&) const;
  7945. bool Save(const String&) const;
  7946. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7947. // Properties:
  7948. /* readonly */
  7949. Array<Variant> attributeAnimations;
  7950. /* readonly */
  7951. String category;
  7952. /* readonly */
  7953. uint memoryUse;
  7954. String name;
  7955. /* readonly */
  7956. int refs;
  7957. /* readonly */
  7958. Array<Variant> speeds;
  7959. /* readonly */
  7960. StringHash type;
  7961. /* readonly */
  7962. String typeName;
  7963. /* readonly */
  7964. uint useTimer;
  7965. /* readonly */
  7966. int weakRefs;
  7967. /* readonly */
  7968. Array<Variant> wrapModes;
  7969. };
  7970. class Obstacle
  7971. {
  7972. public:
  7973. // Methods:
  7974. void ApplyAttributes();
  7975. void DrawDebugGeometry(DebugRenderer, bool);
  7976. void DrawDebugGeometry(bool);
  7977. Variant GetAttribute(const String&) const;
  7978. ValueAnimation GetAttributeAnimation(const String&) const;
  7979. float GetAttributeAnimationSpeed(const String&) const;
  7980. float GetAttributeAnimationTime(const String&) const;
  7981. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7982. Variant GetAttributeDefault(const String&) const;
  7983. bool GetInterceptNetworkUpdate(const String&) const;
  7984. bool HasSubscribedToEvent(Object, const String&);
  7985. bool HasSubscribedToEvent(const String&);
  7986. bool Load(File);
  7987. bool Load(VectorBuffer&);
  7988. bool LoadJSON(const JSONValue&);
  7989. bool LoadXML(const XMLElement&);
  7990. void MarkNetworkUpdate() const;
  7991. void Remove();
  7992. void RemoveAttributeAnimation(const String&);
  7993. void RemoveInstanceDefault();
  7994. void RemoveObjectAnimation();
  7995. void ResetToDefault();
  7996. bool Save(File) const;
  7997. bool Save(VectorBuffer&) const;
  7998. bool SaveJSON(JSONValue&) const;
  7999. bool SaveXML(XMLElement&) const;
  8000. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8001. void SetAnimationTime(float);
  8002. bool SetAttribute(const String&, const Variant&);
  8003. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8004. void SetAttributeAnimationSpeed(const String&, float);
  8005. void SetAttributeAnimationTime(const String&, float);
  8006. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8007. void SetInterceptNetworkUpdate(const String&, bool);
  8008. // Properties:
  8009. bool animationEnabled;
  8010. /* readonly */
  8011. Array<Variant> attributeDefaults;
  8012. /* readonly */
  8013. Array<AttributeInfo> attributeInfos;
  8014. Array<Variant> attributes;
  8015. /* readonly */
  8016. String category;
  8017. bool enabled;
  8018. /* readonly */
  8019. bool enabledEffective;
  8020. float height;
  8021. /* readonly */
  8022. uint id;
  8023. /* readonly */
  8024. Node node;
  8025. /* readonly */
  8026. uint numAttributes;
  8027. ObjectAnimation objectAnimation;
  8028. /* readonly */
  8029. uint obstacleId;
  8030. float radius;
  8031. /* readonly */
  8032. int refs;
  8033. /* readonly */
  8034. bool replicated;
  8035. bool temporary;
  8036. /* readonly */
  8037. StringHash type;
  8038. /* readonly */
  8039. String typeName;
  8040. /* readonly */
  8041. int weakRefs;
  8042. };
  8043. class Octree
  8044. {
  8045. public:
  8046. // Methods:
  8047. void AddManualDrawable(Drawable);
  8048. void ApplyAttributes();
  8049. void DrawDebugGeometry(DebugRenderer, bool);
  8050. void DrawDebugGeometry(bool) const;
  8051. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8052. Variant GetAttribute(const String&) const;
  8053. ValueAnimation GetAttributeAnimation(const String&) const;
  8054. float GetAttributeAnimationSpeed(const String&) const;
  8055. float GetAttributeAnimationTime(const String&) const;
  8056. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8057. Variant GetAttributeDefault(const String&) const;
  8058. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8059. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8060. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8061. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8062. bool GetInterceptNetworkUpdate(const String&) const;
  8063. bool HasSubscribedToEvent(Object, const String&);
  8064. bool HasSubscribedToEvent(const String&);
  8065. bool Load(File);
  8066. bool Load(VectorBuffer&);
  8067. bool LoadJSON(const JSONValue&);
  8068. bool LoadXML(const XMLElement&);
  8069. void MarkNetworkUpdate() const;
  8070. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  8071. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  8072. void Remove();
  8073. void RemoveAttributeAnimation(const String&);
  8074. void RemoveInstanceDefault();
  8075. void RemoveManualDrawable(Drawable);
  8076. void RemoveObjectAnimation();
  8077. void ResetToDefault();
  8078. bool Save(File) const;
  8079. bool Save(VectorBuffer&) const;
  8080. bool SaveJSON(JSONValue&) const;
  8081. bool SaveXML(XMLElement&) const;
  8082. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8083. void SetAnimationTime(float);
  8084. bool SetAttribute(const String&, const Variant&);
  8085. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8086. void SetAttributeAnimationSpeed(const String&, float);
  8087. void SetAttributeAnimationTime(const String&, float);
  8088. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8089. void SetInterceptNetworkUpdate(const String&, bool);
  8090. void SetSize(const BoundingBox&, uint);
  8091. // Properties:
  8092. bool animationEnabled;
  8093. /* readonly */
  8094. Array<Variant> attributeDefaults;
  8095. /* readonly */
  8096. Array<AttributeInfo> attributeInfos;
  8097. Array<Variant> attributes;
  8098. /* readonly */
  8099. String category;
  8100. bool enabled;
  8101. /* readonly */
  8102. bool enabledEffective;
  8103. /* readonly */
  8104. uint id;
  8105. /* readonly */
  8106. Node node;
  8107. /* readonly */
  8108. uint numAttributes;
  8109. /* readonly */
  8110. uint numLevels;
  8111. ObjectAnimation objectAnimation;
  8112. /* readonly */
  8113. int refs;
  8114. /* readonly */
  8115. bool replicated;
  8116. bool temporary;
  8117. /* readonly */
  8118. StringHash type;
  8119. /* readonly */
  8120. String typeName;
  8121. /* readonly */
  8122. int weakRefs;
  8123. /* readonly */
  8124. BoundingBox worldBoundingBox;
  8125. };
  8126. class OffMeshConnection
  8127. {
  8128. public:
  8129. // Methods:
  8130. void ApplyAttributes();
  8131. void DrawDebugGeometry(DebugRenderer, bool);
  8132. Variant GetAttribute(const String&) const;
  8133. ValueAnimation GetAttributeAnimation(const String&) const;
  8134. float GetAttributeAnimationSpeed(const String&) const;
  8135. float GetAttributeAnimationTime(const String&) const;
  8136. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8137. Variant GetAttributeDefault(const String&) const;
  8138. bool GetInterceptNetworkUpdate(const String&) const;
  8139. bool HasSubscribedToEvent(Object, const String&);
  8140. bool HasSubscribedToEvent(const String&);
  8141. bool Load(File);
  8142. bool Load(VectorBuffer&);
  8143. bool LoadJSON(const JSONValue&);
  8144. bool LoadXML(const XMLElement&);
  8145. void MarkNetworkUpdate() const;
  8146. void Remove();
  8147. void RemoveAttributeAnimation(const String&);
  8148. void RemoveInstanceDefault();
  8149. void RemoveObjectAnimation();
  8150. void ResetToDefault();
  8151. bool Save(File) const;
  8152. bool Save(VectorBuffer&) const;
  8153. bool SaveJSON(JSONValue&) const;
  8154. bool SaveXML(XMLElement&) const;
  8155. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8156. void SetAnimationTime(float);
  8157. bool SetAttribute(const String&, const Variant&);
  8158. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8159. void SetAttributeAnimationSpeed(const String&, float);
  8160. void SetAttributeAnimationTime(const String&, float);
  8161. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8162. void SetInterceptNetworkUpdate(const String&, bool);
  8163. // Properties:
  8164. bool animationEnabled;
  8165. uint areaID;
  8166. /* readonly */
  8167. Array<Variant> attributeDefaults;
  8168. /* readonly */
  8169. Array<AttributeInfo> attributeInfos;
  8170. Array<Variant> attributes;
  8171. bool bidirectional;
  8172. /* readonly */
  8173. String category;
  8174. bool enabled;
  8175. /* readonly */
  8176. bool enabledEffective;
  8177. Node endPoint;
  8178. /* readonly */
  8179. uint id;
  8180. uint mask;
  8181. /* readonly */
  8182. Node node;
  8183. /* readonly */
  8184. uint numAttributes;
  8185. ObjectAnimation objectAnimation;
  8186. float radius;
  8187. /* readonly */
  8188. int refs;
  8189. /* readonly */
  8190. bool replicated;
  8191. bool temporary;
  8192. /* readonly */
  8193. StringHash type;
  8194. /* readonly */
  8195. String typeName;
  8196. /* readonly */
  8197. int weakRefs;
  8198. };
  8199. class PackageFile
  8200. {
  8201. public:
  8202. PackageFile();
  8203. PackageFile(const String&in, uint startOffset = 0);
  8204. // Methods:
  8205. bool Exists(const String&) const;
  8206. Array<String> GetEntryNames() const;
  8207. bool HasSubscribedToEvent(Object, const String&);
  8208. bool HasSubscribedToEvent(const String&);
  8209. bool Open(const String&, uint = 0) const;
  8210. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8211. bool compressed() const;
  8212. // Properties:
  8213. /* readonly */
  8214. String category;
  8215. /* readonly */
  8216. uint checksum;
  8217. /* readonly */
  8218. String name;
  8219. /* readonly */
  8220. uint numFiles;
  8221. /* readonly */
  8222. int refs;
  8223. /* readonly */
  8224. uint totalDataSize;
  8225. /* readonly */
  8226. uint totalSize;
  8227. /* readonly */
  8228. StringHash type;
  8229. /* readonly */
  8230. String typeName;
  8231. /* readonly */
  8232. int weakRefs;
  8233. };
  8234. class ParticleEffect
  8235. {
  8236. public:
  8237. ParticleEffect();
  8238. ParticleEffect(const String&in);
  8239. // Methods:
  8240. void AddColorFrame(ColorFrame);
  8241. void AddColorTime(const Color&, float);
  8242. void AddTextureFrame(TextureFrame);
  8243. void AddTextureTime(const Rect&, float);
  8244. ParticleEffect Clone(const String& = String ( )) const;
  8245. ColorFrame GetColorFrame(uint) const;
  8246. TextureFrame GetTextureFrame(uint) const;
  8247. bool HasSubscribedToEvent(Object, const String&);
  8248. bool HasSubscribedToEvent(const String&);
  8249. bool Load(File);
  8250. bool Load(VectorBuffer&);
  8251. bool Load(const String&);
  8252. bool Load(const XMLElement&);
  8253. void RemoveColorFrame(uint);
  8254. void RemoveTextureFrame(uint);
  8255. bool Save(File) const;
  8256. bool Save(VectorBuffer&) const;
  8257. bool Save(XMLElement&) const;
  8258. bool Save(const String&) const;
  8259. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8260. void SetColorFrame(uint, ColorFrame);
  8261. void SetTextureFrame(uint, TextureFrame);
  8262. void SortColorFrames();
  8263. void SortTextureFrames();
  8264. // Properties:
  8265. float activeTime;
  8266. float animationLodBias;
  8267. /* readonly */
  8268. String category;
  8269. Vector3 constantForce;
  8270. float dampingForce;
  8271. Vector3 emitterSize;
  8272. EmitterType emitterType;
  8273. FaceCameraMode faceCameraMode;
  8274. bool fixedScreenSize;
  8275. float inactiveTime;
  8276. Material material;
  8277. Vector3 maxDirection;
  8278. float maxEmissionRate;
  8279. Vector2 maxParticleSize;
  8280. float maxRotation;
  8281. float maxRotationSpeed;
  8282. float maxTimeToLive;
  8283. float maxVelocity;
  8284. /* readonly */
  8285. uint memoryUse;
  8286. Vector3 minDirection;
  8287. float minEmissionRate;
  8288. Vector2 minParticleSize;
  8289. float minRotation;
  8290. float minRotationSpeed;
  8291. float minTimeToLive;
  8292. float minVelocity;
  8293. String name;
  8294. uint numColorFrames;
  8295. uint numParticles;
  8296. uint numTextureFrames;
  8297. /* readonly */
  8298. int refs;
  8299. bool relative;
  8300. bool scaled;
  8301. float sizeAdd;
  8302. float sizeMul;
  8303. bool sorted;
  8304. /* readonly */
  8305. StringHash type;
  8306. /* readonly */
  8307. String typeName;
  8308. bool updateInvisible;
  8309. /* readonly */
  8310. uint useTimer;
  8311. /* readonly */
  8312. int weakRefs;
  8313. };
  8314. class ParticleEffect2D
  8315. {
  8316. public:
  8317. ParticleEffect2D();
  8318. ParticleEffect2D(const String&in);
  8319. // Methods:
  8320. ParticleEffect2D Clone(const String& = String ( )) const;
  8321. bool HasSubscribedToEvent(Object, const String&);
  8322. bool HasSubscribedToEvent(const String&);
  8323. bool Load(File);
  8324. bool Load(VectorBuffer&);
  8325. bool Load(const String&);
  8326. bool Save(File) const;
  8327. bool Save(VectorBuffer&) const;
  8328. bool Save(const String&) const;
  8329. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8330. // Properties:
  8331. /* readonly */
  8332. String category;
  8333. /* readonly */
  8334. uint memoryUse;
  8335. String name;
  8336. /* readonly */
  8337. int refs;
  8338. /* readonly */
  8339. StringHash type;
  8340. /* readonly */
  8341. String typeName;
  8342. /* readonly */
  8343. uint useTimer;
  8344. /* readonly */
  8345. int weakRefs;
  8346. };
  8347. class ParticleEmitter
  8348. {
  8349. public:
  8350. // Methods:
  8351. void ApplyAttributes();
  8352. void ApplyEffect();
  8353. void Commit();
  8354. void DrawDebugGeometry(DebugRenderer, bool);
  8355. Variant GetAttribute(const String&) const;
  8356. ValueAnimation GetAttributeAnimation(const String&) const;
  8357. float GetAttributeAnimationSpeed(const String&) const;
  8358. float GetAttributeAnimationTime(const String&) const;
  8359. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8360. Variant GetAttributeDefault(const String&) const;
  8361. bool GetInterceptNetworkUpdate(const String&) const;
  8362. bool HasSubscribedToEvent(Object, const String&);
  8363. bool HasSubscribedToEvent(const String&);
  8364. bool IsInView(Camera) const;
  8365. bool Load(File);
  8366. bool Load(VectorBuffer&);
  8367. bool LoadJSON(const JSONValue&);
  8368. bool LoadXML(const XMLElement&);
  8369. void MarkNetworkUpdate() const;
  8370. void Remove();
  8371. void RemoveAllParticles();
  8372. void RemoveAttributeAnimation(const String&);
  8373. void RemoveInstanceDefault();
  8374. void RemoveObjectAnimation();
  8375. void Reset();
  8376. void ResetEmissionTimer();
  8377. void ResetToDefault();
  8378. bool Save(File) const;
  8379. bool Save(VectorBuffer&) const;
  8380. bool SaveJSON(JSONValue&) const;
  8381. bool SaveXML(XMLElement&) const;
  8382. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8383. void SetAnimationTime(float);
  8384. bool SetAttribute(const String&, const Variant&);
  8385. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8386. void SetAttributeAnimationSpeed(const String&, float);
  8387. void SetAttributeAnimationTime(const String&, float);
  8388. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8389. void SetInterceptNetworkUpdate(const String&, bool);
  8390. // Properties:
  8391. bool animationEnabled;
  8392. float animationLodBias;
  8393. /* readonly */
  8394. Array<Variant> attributeDefaults;
  8395. /* readonly */
  8396. Array<AttributeInfo> attributeInfos;
  8397. Array<Variant> attributes;
  8398. AutoRemoveMode autoRemoveMode;
  8399. /* readonly */
  8400. Array<Billboard> billboards;
  8401. /* readonly */
  8402. BoundingBox boundingBox;
  8403. bool castShadows;
  8404. /* readonly */
  8405. String category;
  8406. float drawDistance;
  8407. ParticleEffect effect;
  8408. bool emitting;
  8409. bool enabled;
  8410. /* readonly */
  8411. bool enabledEffective;
  8412. FaceCameraMode faceCameraMode;
  8413. bool fixedScreenSize;
  8414. /* readonly */
  8415. uint id;
  8416. /* readonly */
  8417. bool inView;
  8418. uint lightMask;
  8419. float lodBias;
  8420. Material material;
  8421. uint maxLights;
  8422. /* readonly */
  8423. Node node;
  8424. /* readonly */
  8425. uint numAttributes;
  8426. uint numBillboards;
  8427. uint numParticles;
  8428. ObjectAnimation objectAnimation;
  8429. bool occludee;
  8430. bool occluder;
  8431. /* readonly */
  8432. int refs;
  8433. bool relative;
  8434. /* readonly */
  8435. bool replicated;
  8436. bool scaled;
  8437. bool serializeParticles;
  8438. float shadowDistance;
  8439. uint shadowMask;
  8440. bool sorted;
  8441. bool temporary;
  8442. /* readonly */
  8443. StringHash type;
  8444. /* readonly */
  8445. String typeName;
  8446. uint viewMask;
  8447. /* readonly */
  8448. int weakRefs;
  8449. /* readonly */
  8450. BoundingBox worldBoundingBox;
  8451. /* readonly */
  8452. Zone zone;
  8453. uint zoneMask;
  8454. };
  8455. class ParticleEmitter2D
  8456. {
  8457. public:
  8458. // Methods:
  8459. void ApplyAttributes();
  8460. void DrawDebugGeometry(DebugRenderer, bool);
  8461. Variant GetAttribute(const String&) const;
  8462. ValueAnimation GetAttributeAnimation(const String&) const;
  8463. float GetAttributeAnimationSpeed(const String&) const;
  8464. float GetAttributeAnimationTime(const String&) const;
  8465. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8466. Variant GetAttributeDefault(const String&) const;
  8467. bool GetInterceptNetworkUpdate(const String&) const;
  8468. bool HasSubscribedToEvent(Object, const String&);
  8469. bool HasSubscribedToEvent(const String&);
  8470. bool IsInView(Camera) const;
  8471. bool Load(File);
  8472. bool Load(VectorBuffer&);
  8473. bool LoadJSON(const JSONValue&);
  8474. bool LoadXML(const XMLElement&);
  8475. void MarkNetworkUpdate() const;
  8476. void Remove();
  8477. void RemoveAttributeAnimation(const String&);
  8478. void RemoveInstanceDefault();
  8479. void RemoveObjectAnimation();
  8480. void ResetToDefault();
  8481. bool Save(File) const;
  8482. bool Save(VectorBuffer&) const;
  8483. bool SaveJSON(JSONValue&) const;
  8484. bool SaveXML(XMLElement&) const;
  8485. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8486. void SetAnimationTime(float);
  8487. bool SetAttribute(const String&, const Variant&);
  8488. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8489. void SetAttributeAnimationSpeed(const String&, float);
  8490. void SetAttributeAnimationTime(const String&, float);
  8491. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8492. void SetInterceptNetworkUpdate(const String&, bool);
  8493. // Properties:
  8494. bool animationEnabled;
  8495. /* readonly */
  8496. Array<Variant> attributeDefaults;
  8497. /* readonly */
  8498. Array<AttributeInfo> attributeInfos;
  8499. Array<Variant> attributes;
  8500. BlendMode blendMode;
  8501. /* readonly */
  8502. BoundingBox boundingBox;
  8503. bool castShadows;
  8504. /* readonly */
  8505. String category;
  8506. float drawDistance;
  8507. ParticleEffect2D effect;
  8508. bool emitting;
  8509. bool enabled;
  8510. /* readonly */
  8511. bool enabledEffective;
  8512. /* readonly */
  8513. uint id;
  8514. /* readonly */
  8515. bool inView;
  8516. int layer;
  8517. uint lightMask;
  8518. float lodBias;
  8519. uint maxLights;
  8520. /* readonly */
  8521. Node node;
  8522. /* readonly */
  8523. uint numAttributes;
  8524. ObjectAnimation objectAnimation;
  8525. bool occludee;
  8526. bool occluder;
  8527. int orderInLayer;
  8528. /* readonly */
  8529. int refs;
  8530. /* readonly */
  8531. bool replicated;
  8532. float shadowDistance;
  8533. uint shadowMask;
  8534. Sprite2D sprite;
  8535. bool temporary;
  8536. /* readonly */
  8537. StringHash type;
  8538. /* readonly */
  8539. String typeName;
  8540. uint viewMask;
  8541. /* readonly */
  8542. int weakRefs;
  8543. /* readonly */
  8544. BoundingBox worldBoundingBox;
  8545. uint zoneMask;
  8546. };
  8547. class Pass
  8548. {
  8549. public:
  8550. // Properties:
  8551. bool alphaToCoverage;
  8552. BlendMode blendMode;
  8553. CullMode cullMode;
  8554. CompareMode depthTestMode;
  8555. bool depthWrite;
  8556. bool desktop;
  8557. PassLightingMode lightingMode;
  8558. String pixelShader;
  8559. String pixelShaderDefineExcludes;
  8560. String pixelShaderDefines;
  8561. /* readonly */
  8562. int refs;
  8563. String vertexShader;
  8564. String vertexShaderDefineExcludes;
  8565. String vertexShaderDefines;
  8566. /* readonly */
  8567. int weakRefs;
  8568. };
  8569. class PhysicsRaycastResult
  8570. {
  8571. public:
  8572. ~PhysicsRaycastResult();
  8573. PhysicsRaycastResult();
  8574. // Properties:
  8575. /* readonly */
  8576. RigidBody body;
  8577. float distance;
  8578. float hitFraction;
  8579. Vector3 normal;
  8580. Vector3 position;
  8581. };
  8582. class PhysicsRaycastResult2D
  8583. {
  8584. public:
  8585. ~PhysicsRaycastResult2D();
  8586. PhysicsRaycastResult2D();
  8587. // Properties:
  8588. /* readonly */
  8589. RigidBody2D body;
  8590. float distance;
  8591. Vector2 normal;
  8592. Vector2 position;
  8593. };
  8594. class PhysicsWorld
  8595. {
  8596. public:
  8597. // Methods:
  8598. void ApplyAttributes();
  8599. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  8600. void DrawDebugGeometry(DebugRenderer, bool);
  8601. void DrawDebugGeometry(bool);
  8602. Variant GetAttribute(const String&) const;
  8603. ValueAnimation GetAttributeAnimation(const String&) const;
  8604. float GetAttributeAnimationSpeed(const String&) const;
  8605. float GetAttributeAnimationTime(const String&) const;
  8606. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8607. Variant GetAttributeDefault(const String&) const;
  8608. Array<RigidBody> GetCollidingBodies(RigidBody);
  8609. bool GetInterceptNetworkUpdate(const String&) const;
  8610. Array<RigidBody> GetRigidBodies(RigidBody);
  8611. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  8612. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  8613. bool HasSubscribedToEvent(Object, const String&);
  8614. bool HasSubscribedToEvent(const String&);
  8615. bool Load(File);
  8616. bool Load(VectorBuffer&);
  8617. bool LoadJSON(const JSONValue&);
  8618. bool LoadXML(const XMLElement&);
  8619. void MarkNetworkUpdate() const;
  8620. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  8621. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  8622. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff, float = 0.1f);
  8623. void Remove();
  8624. void RemoveAttributeAnimation(const String&);
  8625. void RemoveCachedGeometry(Model);
  8626. void RemoveInstanceDefault();
  8627. void RemoveObjectAnimation();
  8628. void ResetToDefault();
  8629. bool Save(File) const;
  8630. bool Save(VectorBuffer&) const;
  8631. bool SaveJSON(JSONValue&) const;
  8632. bool SaveXML(XMLElement&) const;
  8633. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8634. void SetAnimationTime(float);
  8635. bool SetAttribute(const String&, const Variant&);
  8636. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8637. void SetAttributeAnimationSpeed(const String&, float);
  8638. void SetAttributeAnimationTime(const String&, float);
  8639. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8640. void SetInterceptNetworkUpdate(const String&, bool);
  8641. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  8642. void Update(float);
  8643. void UpdateCollisions();
  8644. // Properties:
  8645. bool animationEnabled;
  8646. /* readonly */
  8647. Array<Variant> attributeDefaults;
  8648. /* readonly */
  8649. Array<AttributeInfo> attributeInfos;
  8650. Array<Variant> attributes;
  8651. /* readonly */
  8652. String category;
  8653. bool enabled;
  8654. /* readonly */
  8655. bool enabledEffective;
  8656. int fps;
  8657. Vector3 gravity;
  8658. /* readonly */
  8659. uint id;
  8660. bool internalEdge;
  8661. bool interpolation;
  8662. int maxSubSteps;
  8663. /* readonly */
  8664. Node node;
  8665. /* readonly */
  8666. uint numAttributes;
  8667. int numIterations;
  8668. ObjectAnimation objectAnimation;
  8669. /* readonly */
  8670. int refs;
  8671. /* readonly */
  8672. bool replicated;
  8673. bool splitImpulse;
  8674. bool temporary;
  8675. /* readonly */
  8676. StringHash type;
  8677. /* readonly */
  8678. String typeName;
  8679. bool updateEnabled;
  8680. /* readonly */
  8681. int weakRefs;
  8682. };
  8683. class PhysicsWorld2D
  8684. {
  8685. public:
  8686. // Methods:
  8687. void ApplyAttributes();
  8688. void DrawDebugGeometry() const;
  8689. void DrawDebugGeometry(DebugRenderer, bool);
  8690. Variant GetAttribute(const String&) const;
  8691. ValueAnimation GetAttributeAnimation(const String&) const;
  8692. float GetAttributeAnimationSpeed(const String&) const;
  8693. float GetAttributeAnimationTime(const String&) const;
  8694. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8695. Variant GetAttributeDefault(const String&) const;
  8696. bool GetInterceptNetworkUpdate(const String&) const;
  8697. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8698. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8699. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8700. bool HasSubscribedToEvent(Object, const String&);
  8701. bool HasSubscribedToEvent(const String&);
  8702. bool Load(File);
  8703. bool Load(VectorBuffer&);
  8704. bool LoadJSON(const JSONValue&);
  8705. bool LoadXML(const XMLElement&);
  8706. void MarkNetworkUpdate() const;
  8707. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8708. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8709. void Remove();
  8710. void RemoveAttributeAnimation(const String&);
  8711. void RemoveInstanceDefault();
  8712. void RemoveObjectAnimation();
  8713. void ResetToDefault();
  8714. bool Save(File) const;
  8715. bool Save(VectorBuffer&) const;
  8716. bool SaveJSON(JSONValue&) const;
  8717. bool SaveXML(XMLElement&) const;
  8718. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8719. void SetAnimationTime(float);
  8720. bool SetAttribute(const String&, const Variant&);
  8721. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8722. void SetAttributeAnimationSpeed(const String&, float);
  8723. void SetAttributeAnimationTime(const String&, float);
  8724. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8725. void SetInterceptNetworkUpdate(const String&, bool);
  8726. // Properties:
  8727. bool allowSleeping;
  8728. bool animationEnabled;
  8729. /* readonly */
  8730. Array<Variant> attributeDefaults;
  8731. /* readonly */
  8732. Array<AttributeInfo> attributeInfos;
  8733. Array<Variant> attributes;
  8734. bool autoClearForces;
  8735. /* readonly */
  8736. String category;
  8737. bool continuousPhysics;
  8738. bool drawAabb;
  8739. bool drawCenterOfMass;
  8740. bool drawJoint;
  8741. bool drawPair;
  8742. bool drawShape;
  8743. bool enabled;
  8744. /* readonly */
  8745. bool enabledEffective;
  8746. Vector2 gravity;
  8747. /* readonly */
  8748. uint id;
  8749. /* readonly */
  8750. Node node;
  8751. /* readonly */
  8752. uint numAttributes;
  8753. ObjectAnimation objectAnimation;
  8754. uint positionIterations;
  8755. /* readonly */
  8756. int refs;
  8757. /* readonly */
  8758. bool replicated;
  8759. bool subStepping;
  8760. bool temporary;
  8761. /* readonly */
  8762. StringHash type;
  8763. /* readonly */
  8764. String typeName;
  8765. bool updateEnabled;
  8766. uint velocityIterations;
  8767. bool warmStarting;
  8768. /* readonly */
  8769. int weakRefs;
  8770. };
  8771. class Plane
  8772. {
  8773. public:
  8774. Plane();
  8775. Plane(const Plane&in);
  8776. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  8777. Plane(const Vector3&in, const Vector3&in);
  8778. Plane(const Vector4&in);
  8779. // Methods:
  8780. void Define(const Vector3&, const Vector3&);
  8781. void Define(const Vector3&, const Vector3&, const Vector3&);
  8782. void Define(const Vector4&);
  8783. float Distance(const Vector3&) const;
  8784. Vector3 Project(const Vector3&) const;
  8785. Vector3 Reflect(const Vector3&) const;
  8786. Vector4 ToVector4() const;
  8787. void Transform(const Matrix3&);
  8788. void Transform(const Matrix3x4&);
  8789. void Transform(const Matrix4&);
  8790. Plane Transformed(const Matrix3&) const;
  8791. Plane Transformed(const Matrix3x4&) const;
  8792. Plane Transformed(const Matrix4&) const;
  8793. // Properties:
  8794. Vector3 absNormal;
  8795. float d;
  8796. Vector3 normal;
  8797. /* readonly */
  8798. Matrix3x4 reflectionMatrix;
  8799. };
  8800. class Polyhedron
  8801. {
  8802. public:
  8803. ~Polyhedron();
  8804. Polyhedron();
  8805. Polyhedron(const Polyhedron&in);
  8806. Polyhedron(const BoundingBox&in);
  8807. Polyhedron(const Frustum&in);
  8808. // Methods:
  8809. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8810. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8811. void AddFace(const Array<Vector3>);
  8812. void Clear();
  8813. void Clip(const BoundingBox&);
  8814. void Clip(const Frustum&);
  8815. void Define(const BoundingBox&);
  8816. void Define(const Frustum&);
  8817. void Transform(const Matrix3&);
  8818. void Transform(const Matrix3x4&);
  8819. Polyhedron Transformed(const Matrix3&) const;
  8820. Polyhedron Transformed(const Matrix3x4&) const;
  8821. // Properties:
  8822. /* readonly */
  8823. Array<Array<Vector3>> face;
  8824. /* readonly */
  8825. uint numFaces;
  8826. };
  8827. class ProgressBar
  8828. {
  8829. public:
  8830. // Methods:
  8831. void ChangeValue(float);
  8832. bool HasSubscribedToEvent(Object, const String&);
  8833. bool HasSubscribedToEvent(const String&);
  8834. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8835. void SetLoadingPercentStyle(const String&);
  8836. // Properties:
  8837. /* readonly */
  8838. String category;
  8839. /* readonly */
  8840. BorderImage knob;
  8841. Orientation orientation;
  8842. float range;
  8843. /* readonly */
  8844. int refs;
  8845. bool showPercentText;
  8846. /* readonly */
  8847. StringHash type;
  8848. /* readonly */
  8849. String typeName;
  8850. float value;
  8851. /* readonly */
  8852. int weakRefs;
  8853. };
  8854. class PropertySet2D
  8855. {
  8856. public:
  8857. // Methods:
  8858. bool HasProperty(const String&) const;
  8859. const String& GetProperty(const String&) const;
  8860. // Properties:
  8861. /* readonly */
  8862. int refs;
  8863. /* readonly */
  8864. int weakRefs;
  8865. };
  8866. class Quaternion
  8867. {
  8868. public:
  8869. Quaternion();
  8870. Quaternion(const Quaternion&in);
  8871. Quaternion(float, float, float, float);
  8872. Quaternion(float, const Vector3&in);
  8873. Quaternion(float);
  8874. Quaternion(float, float, float);
  8875. Quaternion(const Vector3&in);
  8876. Quaternion(const Vector3&in, const Vector3&in);
  8877. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  8878. Quaternion(const Matrix3&in);
  8879. // Methods:
  8880. Quaternion Conjugate() const;
  8881. float DotProduct(const Quaternion&) const;
  8882. bool Equals(const Quaternion&) const;
  8883. void FromAngleAxis(float, const Vector3&);
  8884. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8885. void FromEulerAngles(float, float, float);
  8886. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8887. void FromRotationMatrix(const Matrix3&);
  8888. void FromRotationTo(const Vector3&, const Vector3&);
  8889. Quaternion Inverse() const;
  8890. bool IsNaN() const;
  8891. float LengthSquared() const;
  8892. Quaternion Nlerp(const Quaternion&, float, bool) const;
  8893. void Normalize();
  8894. Quaternion Normalized() const;
  8895. Quaternion Slerp(const Quaternion&, float) const;
  8896. String ToString() const;
  8897. // Properties:
  8898. /* readonly */
  8899. float angle;
  8900. /* readonly */
  8901. Vector3 axis;
  8902. /* readonly */
  8903. Vector3 eulerAngles;
  8904. /* readonly */
  8905. float pitch;
  8906. /* readonly */
  8907. float roll;
  8908. /* readonly */
  8909. Matrix3 rotationMatrix;
  8910. float w;
  8911. float x;
  8912. float y;
  8913. /* readonly */
  8914. float yaw;
  8915. float z;
  8916. };
  8917. class Ray
  8918. {
  8919. public:
  8920. Ray();
  8921. Ray(const Ray&in);
  8922. Ray(const Vector3&in, const Vector3&in);
  8923. // Methods:
  8924. Vector3 ClosestPoint(const Ray&) const;
  8925. void Define(const Vector3&, const Vector3&);
  8926. float Distance(const Vector3&) const;
  8927. float HitDistance(const BoundingBox&) const;
  8928. float HitDistance(const Frustum&, bool = true) const;
  8929. float HitDistance(const Plane&) const;
  8930. float HitDistance(const Sphere&) const;
  8931. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8932. Vector3 Project(const Vector3&) const;
  8933. Ray Transformed(const Matrix3x4&) const;
  8934. // Properties:
  8935. Vector3 direction;
  8936. Vector3 origin;
  8937. };
  8938. class RayQueryResult
  8939. {
  8940. public:
  8941. RayQueryResult();
  8942. // Properties:
  8943. float distance;
  8944. /* readonly */
  8945. Drawable drawable;
  8946. /* readonly */
  8947. Node node;
  8948. Vector3 normal;
  8949. Vector3 position;
  8950. uint subObject;
  8951. Vector2 textureUV;
  8952. };
  8953. class RaycastVehicle
  8954. {
  8955. public:
  8956. // Methods:
  8957. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  8958. void ApplyAttributes();
  8959. void DrawDebugGeometry(DebugRenderer, bool);
  8960. Variant GetAttribute(const String&) const;
  8961. ValueAnimation GetAttributeAnimation(const String&) const;
  8962. float GetAttributeAnimationSpeed(const String&) const;
  8963. float GetAttributeAnimationTime(const String&) const;
  8964. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8965. Variant GetAttributeDefault(const String&) const;
  8966. float GetBrake(int);
  8967. Vector3 GetContactNormal(int);
  8968. Vector3 GetContactPosition(int);
  8969. float GetEngineForce(int);
  8970. bool GetInterceptNetworkUpdate(const String&) const;
  8971. float GetMaxSuspensionTravel(int);
  8972. float GetSteeringValue(int);
  8973. Vector3 GetWheelAxle(int);
  8974. Vector3 GetWheelConnectionPoint(int);
  8975. float GetWheelDampingCompression(int);
  8976. float GetWheelDampingRelaxation(int);
  8977. Vector3 GetWheelDirection(int);
  8978. float GetWheelFrictionSlip(int);
  8979. float GetWheelMaxSuspensionForce(int);
  8980. Node GetWheelNode(int);
  8981. Vector3 GetWheelPosition(int);
  8982. float GetWheelRadius(int);
  8983. float GetWheelRestLength(int);
  8984. float GetWheelRollInfluence(int);
  8985. Vector3 GetWheelRotation(int);
  8986. float GetWheelSideSlipSpeed(int);
  8987. float GetWheelSkidInfo(int);
  8988. float GetWheelSkidInfoCumulative(int);
  8989. float GetWheelSuspensionStiffness(int);
  8990. bool HasSubscribedToEvent(Object, const String&);
  8991. bool HasSubscribedToEvent(const String&);
  8992. void Init();
  8993. bool IsFrontWheel(int);
  8994. bool Load(File);
  8995. bool Load(VectorBuffer&);
  8996. bool LoadJSON(const JSONValue&);
  8997. bool LoadXML(const XMLElement&);
  8998. void MarkNetworkUpdate() const;
  8999. void Remove();
  9000. void RemoveAttributeAnimation(const String&);
  9001. void RemoveInstanceDefault();
  9002. void RemoveObjectAnimation();
  9003. void ResetSuspension();
  9004. void ResetToDefault();
  9005. void ResetWheels();
  9006. bool Save(File) const;
  9007. bool Save(VectorBuffer&) const;
  9008. bool SaveJSON(JSONValue&) const;
  9009. bool SaveXML(XMLElement&) const;
  9010. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9011. void SetAnimationTime(float);
  9012. bool SetAttribute(const String&, const Variant&);
  9013. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9014. void SetAttributeAnimationSpeed(const String&, float);
  9015. void SetAttributeAnimationTime(const String&, float);
  9016. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9017. void SetBrake(int, float);
  9018. void SetEngineForce(int, float);
  9019. void SetInterceptNetworkUpdate(const String&, bool);
  9020. void SetMaxSuspensionTravel(int, float);
  9021. void SetSteeringValue(int, float);
  9022. void SetWheelAxle(int, Vector3);
  9023. void SetWheelDampingCompression(int, float);
  9024. void SetWheelDampingRelaxation(int, float);
  9025. void SetWheelDirection(int, Vector3);
  9026. void SetWheelFrictionSlip(int, float);
  9027. void SetWheelMaxSuspensionForce(int, float);
  9028. void SetWheelRadius(int, float);
  9029. void SetWheelRestLength(int, float);
  9030. void SetWheelRollInfluence(int, float);
  9031. void SetWheelSkidInfo(int, float);
  9032. void SetWheelSkidInfoCumulative(int, float);
  9033. void SetWheelSuspensionStiffness(int, float);
  9034. void UpdateWheelTransform(int, bool);
  9035. bool WheelIsGrounded(int);
  9036. // Properties:
  9037. bool animationEnabled;
  9038. /* readonly */
  9039. Array<Variant> attributeDefaults;
  9040. /* readonly */
  9041. Array<AttributeInfo> attributeInfos;
  9042. Array<Variant> attributes;
  9043. /* readonly */
  9044. String category;
  9045. IntVector3 coordinateSystem;
  9046. bool enabled;
  9047. /* readonly */
  9048. bool enabledEffective;
  9049. /* readonly */
  9050. uint id;
  9051. float inAirRPM;
  9052. float maxSideSlipSpeed;
  9053. /* readonly */
  9054. Node node;
  9055. /* readonly */
  9056. uint numAttributes;
  9057. /* readonly */
  9058. int numWheels;
  9059. ObjectAnimation objectAnimation;
  9060. /* readonly */
  9061. int refs;
  9062. /* readonly */
  9063. bool replicated;
  9064. bool temporary;
  9065. /* readonly */
  9066. StringHash type;
  9067. /* readonly */
  9068. String typeName;
  9069. /* readonly */
  9070. int weakRefs;
  9071. // Constants:
  9072. static const IntVector3 FORWARD_RIGHT_UP;
  9073. static const IntVector3 FORWARD_UP_RIGHT;
  9074. static const IntVector3 RIGHT_FORWARD_UP;
  9075. static const IntVector3 RIGHT_UP_FORWARD;
  9076. static const IntVector3 UP_FORWARD_RIGHT;
  9077. static const IntVector3 UP_RIGHT_FORWARD;
  9078. };
  9079. class Rect
  9080. {
  9081. public:
  9082. Rect();
  9083. Rect(const Rect&in);
  9084. Rect(float, float, float, float);
  9085. Rect(const Vector2&in, const Vector2&in);
  9086. Rect(const Vector4&in);
  9087. // Methods:
  9088. void Clear();
  9089. void Clip(const Rect&);
  9090. void Define(const Vector2&);
  9091. void Define(const Vector2&, const Vector2&);
  9092. bool Defined() const;
  9093. bool Equals(const Rect&) const;
  9094. Intersection IsInside(const Rect&) const;
  9095. Intersection IsInside(const Vector2&) const;
  9096. void Merge(const Rect&);
  9097. void Merge(const Vector2&);
  9098. Vector4 ToVector4() const;
  9099. // Properties:
  9100. float bottom;
  9101. /* readonly */
  9102. Vector2 center;
  9103. /* readonly */
  9104. Vector2 halfSize;
  9105. float left;
  9106. Vector2 max;
  9107. Vector2 min;
  9108. float right;
  9109. /* readonly */
  9110. Vector2 size;
  9111. float top;
  9112. };
  9113. class RefCounted
  9114. {
  9115. public:
  9116. // Properties:
  9117. /* readonly */
  9118. int refs;
  9119. /* readonly */
  9120. int weakRefs;
  9121. };
  9122. class RenderPath
  9123. {
  9124. public:
  9125. RenderPath();
  9126. // Methods:
  9127. void AddCommand(const RenderPathCommand&);
  9128. void AddRenderTarget(const RenderTargetInfo&);
  9129. bool Append(XMLFile);
  9130. RenderPath Clone();
  9131. void InsertCommand(uint, const RenderPathCommand&);
  9132. bool Load(XMLFile);
  9133. void RemoveCommand(uint);
  9134. void RemoveCommands(const String&);
  9135. void RemoveRenderTarget(const String&);
  9136. void RemoveRenderTarget(uint);
  9137. void RemoveRenderTargts(const String&);
  9138. void SetEnabled(const String&, bool);
  9139. void ToggleEnabled(const String&);
  9140. // Properties:
  9141. /* readonly */
  9142. Array<bool> added;
  9143. Array<RenderPathCommand> commands;
  9144. /* readonly */
  9145. Array<bool> enabled;
  9146. /* readonly */
  9147. uint numCommands;
  9148. /* readonly */
  9149. uint numRenderTargets;
  9150. /* readonly */
  9151. int refs;
  9152. Array<RenderTargetInfo> renderTargets;
  9153. Array<Variant> shaderParameters;
  9154. /* readonly */
  9155. int weakRefs;
  9156. };
  9157. class RenderPathCommand
  9158. {
  9159. public:
  9160. ~RenderPathCommand();
  9161. RenderPathCommand();
  9162. RenderPathCommand(const RenderPathCommand&in);
  9163. // Methods:
  9164. void RemoveShaderParameter(const String&);
  9165. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  9166. // Properties:
  9167. BlendMode blendMode;
  9168. Color clearColor;
  9169. float clearDepth;
  9170. uint clearFlags;
  9171. uint clearStencil;
  9172. String depthStencilName;
  9173. bool enabled;
  9174. String eventName;
  9175. bool markToStencil;
  9176. String metadata;
  9177. uint numOutputs;
  9178. Array<CubeMapFace> outputFaces;
  9179. Array<String> outputNames;
  9180. String pass;
  9181. String pixelShaderDefines;
  9182. String pixelShaderName;
  9183. Array<Variant> shaderParameters;
  9184. RenderCommandSortMode sortMode;
  9185. String tag;
  9186. Array<String> textureNames;
  9187. RenderCommandType type;
  9188. bool useFogColor;
  9189. bool useLitBase;
  9190. bool vertexLights;
  9191. String vertexShaderDefines;
  9192. String vertexShaderName;
  9193. };
  9194. class RenderSurface
  9195. {
  9196. public:
  9197. // Methods:
  9198. void QueueUpdate();
  9199. // Properties:
  9200. /* readonly */
  9201. int height;
  9202. RenderSurface linkedDepthStencil;
  9203. RenderSurface linkedRenderTarget;
  9204. uint numViewports;
  9205. /* readonly */
  9206. Texture parentTexture;
  9207. /* readonly */
  9208. bool resolveDirty;
  9209. RenderSurfaceUpdateMode updateMode;
  9210. /* readonly */
  9211. TextureUsage usage;
  9212. Array<Viewport> viewports;
  9213. /* readonly */
  9214. int width;
  9215. };
  9216. class RenderTargetInfo
  9217. {
  9218. public:
  9219. ~RenderTargetInfo();
  9220. RenderTargetInfo();
  9221. RenderTargetInfo(const RenderTargetInfo&in);
  9222. // Properties:
  9223. bool autoResolve;
  9224. bool cubemap;
  9225. bool enabled;
  9226. bool filtered;
  9227. uint format;
  9228. int multiSample;
  9229. String name;
  9230. bool persistent;
  9231. bool sRGB;
  9232. Vector2 size;
  9233. RenderTargetSizeMode sizeMode;
  9234. String tag;
  9235. };
  9236. class Renderer
  9237. {
  9238. public:
  9239. // Methods:
  9240. void DrawDebugGeometry(bool) const;
  9241. Viewport GetViewportForScene(Scene, uint);
  9242. bool HasSubscribedToEvent(Object, const String&);
  9243. bool HasSubscribedToEvent(const String&);
  9244. void ReloadShaders() const;
  9245. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9246. void SetDefaultRenderPath(XMLFile);
  9247. void SetVSMShadowParameters(float, float);
  9248. // Properties:
  9249. /* readonly */
  9250. String category;
  9251. /* readonly */
  9252. Material defaultLightRamp;
  9253. /* readonly */
  9254. Material defaultLightSpot;
  9255. /* readonly */
  9256. Material defaultMaterial;
  9257. RenderPath defaultRenderPath;
  9258. Technique defaultTechnique;
  9259. /* readonly */
  9260. Zone defaultZone;
  9261. bool drawShadows;
  9262. bool dynamicInstancing;
  9263. bool hdrRendering;
  9264. int materialQuality;
  9265. int maxOccluderTriangles;
  9266. int maxShadowMaps;
  9267. int maxSortedInstances;
  9268. int minInstances;
  9269. float mobileNormalOffsetMul;
  9270. float mobileShadowBiasAdd;
  9271. float mobileShadowBiasMul;
  9272. /* readonly */
  9273. uint numBatches;
  9274. int numExtraInstancingBufferElements;
  9275. /* readonly */
  9276. Array<uint> numGeometries;
  9277. /* readonly */
  9278. Array<uint> numLights;
  9279. /* readonly */
  9280. Array<uint> numOccluders;
  9281. /* readonly */
  9282. uint numPrimitives;
  9283. /* readonly */
  9284. Array<uint> numShadowMaps;
  9285. uint numViewports;
  9286. /* readonly */
  9287. uint numViews;
  9288. float occluderSizeThreshold;
  9289. int occlusionBufferSize;
  9290. /* readonly */
  9291. int refs;
  9292. bool reuseShadowMaps;
  9293. int shadowMapSize;
  9294. ShadowQuality shadowQuality;
  9295. float shadowSoftness;
  9296. bool specularLighting;
  9297. int textureAnisotropy;
  9298. TextureFilterMode textureFilterMode;
  9299. int textureQuality;
  9300. bool threadedOcclusion;
  9301. /* readonly */
  9302. StringHash type;
  9303. /* readonly */
  9304. String typeName;
  9305. Array<Viewport> viewports;
  9306. int vsmMultiSample;
  9307. Vector2 vsmShadowParameters;
  9308. /* readonly */
  9309. int weakRefs;
  9310. };
  9311. class Resource
  9312. {
  9313. public:
  9314. // Methods:
  9315. bool HasSubscribedToEvent(Object, const String&);
  9316. bool HasSubscribedToEvent(const String&);
  9317. bool Load(File);
  9318. bool Load(VectorBuffer&);
  9319. bool Load(const String&);
  9320. bool Save(File) const;
  9321. bool Save(VectorBuffer&) const;
  9322. bool Save(const String&) const;
  9323. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9324. // Properties:
  9325. /* readonly */
  9326. String category;
  9327. /* readonly */
  9328. uint memoryUse;
  9329. String name;
  9330. /* readonly */
  9331. int refs;
  9332. /* readonly */
  9333. StringHash type;
  9334. /* readonly */
  9335. String typeName;
  9336. /* readonly */
  9337. uint useTimer;
  9338. /* readonly */
  9339. int weakRefs;
  9340. };
  9341. class ResourceCache
  9342. {
  9343. public:
  9344. // Methods:
  9345. bool AddManualResource(Resource);
  9346. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  9347. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  9348. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  9349. bool BackgroundLoadResource(const String&, const String&, bool = true);
  9350. bool Exists(const String&) const;
  9351. Resource GetExistingResource(StringHash, const String&);
  9352. Resource GetExistingResource(const String&, const String&);
  9353. File GetFile(const String&);
  9354. String GetPreferredResourceDir(const String&) const;
  9355. Resource GetResource(StringHash, const String&, bool = true);
  9356. Resource GetResource(const String&, const String&, bool = true);
  9357. String GetResourceFileName(const String&) const;
  9358. Array<Resource> GetResources(StringHash);
  9359. Array<Resource> GetResources(const String&);
  9360. bool HasSubscribedToEvent(Object, const String&);
  9361. bool HasSubscribedToEvent(const String&);
  9362. void ReleaseAllResources(bool = false);
  9363. void ReleaseResource(const String&, const String&, bool = false);
  9364. void ReleaseResources(StringHash, bool = false);
  9365. void ReleaseResources(const String&, bool = false);
  9366. void ReleaseResources(const String&, const String&, bool = false);
  9367. bool ReloadResource(Resource);
  9368. void ReloadResourceWithDependencies(const String&);
  9369. void RemovePackageFile(PackageFile, bool = true, bool = false);
  9370. void RemovePackageFile(const String&, bool = true, bool = false);
  9371. void RemoveResourceDir(const String&);
  9372. String SanitateResourceDirName(const String&) const;
  9373. String SanitateResourceName(const String&) const;
  9374. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9375. // Properties:
  9376. bool autoReloadResources;
  9377. /* readonly */
  9378. String category;
  9379. int finishBackgroundResourcesMs;
  9380. Array<uint64> memoryBudget;
  9381. /* readonly */
  9382. Array<uint64> memoryUse;
  9383. /* readonly */
  9384. uint numBackgroundLoadResources;
  9385. /* readonly */
  9386. Array<PackageFile> packageFiles;
  9387. /* readonly */
  9388. int refs;
  9389. /* readonly */
  9390. Array<String> resourceDirs;
  9391. bool returnFailedResources;
  9392. /* readonly */
  9393. bool seachPackagesFirst;
  9394. /* writeonly */
  9395. bool searchPackagesFirst;
  9396. /* readonly */
  9397. uint64 totalMemoryUse;
  9398. /* readonly */
  9399. StringHash type;
  9400. /* readonly */
  9401. String typeName;
  9402. /* readonly */
  9403. int weakRefs;
  9404. };
  9405. class ResourceRef
  9406. {
  9407. public:
  9408. ~ResourceRef();
  9409. ResourceRef();
  9410. ResourceRef(const ResourceRef&in);
  9411. ResourceRef(const String&in, const String&in);
  9412. // Properties:
  9413. String name;
  9414. StringHash type;
  9415. };
  9416. class ResourceRefList
  9417. {
  9418. public:
  9419. ~ResourceRefList();
  9420. ResourceRefList();
  9421. ResourceRefList(const ResourceRefList&in);
  9422. // Methods:
  9423. void Resize(uint);
  9424. // Properties:
  9425. /* readonly */
  9426. bool empty;
  9427. /* readonly */
  9428. uint length;
  9429. Array<String> names;
  9430. StringHash type;
  9431. };
  9432. class RibbonTrail
  9433. {
  9434. public:
  9435. // Methods:
  9436. void ApplyAttributes();
  9437. void Commit();
  9438. void DrawDebugGeometry(DebugRenderer, bool);
  9439. Variant GetAttribute(const String&) const;
  9440. ValueAnimation GetAttributeAnimation(const String&) const;
  9441. float GetAttributeAnimationSpeed(const String&) const;
  9442. float GetAttributeAnimationTime(const String&) const;
  9443. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9444. Variant GetAttributeDefault(const String&) const;
  9445. bool GetInterceptNetworkUpdate(const String&) const;
  9446. bool HasSubscribedToEvent(Object, const String&);
  9447. bool HasSubscribedToEvent(const String&);
  9448. bool IsInView(Camera) const;
  9449. bool Load(File);
  9450. bool Load(VectorBuffer&);
  9451. bool LoadJSON(const JSONValue&);
  9452. bool LoadXML(const XMLElement&);
  9453. void MarkNetworkUpdate() const;
  9454. void Remove();
  9455. void RemoveAttributeAnimation(const String&);
  9456. void RemoveInstanceDefault();
  9457. void RemoveObjectAnimation();
  9458. void ResetToDefault();
  9459. bool Save(File) const;
  9460. bool Save(VectorBuffer&) const;
  9461. bool SaveJSON(JSONValue&) const;
  9462. bool SaveXML(XMLElement&) const;
  9463. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9464. void SetAnimationTime(float);
  9465. bool SetAttribute(const String&, const Variant&);
  9466. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9467. void SetAttributeAnimationSpeed(const String&, float);
  9468. void SetAttributeAnimationTime(const String&, float);
  9469. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9470. void SetInterceptNetworkUpdate(const String&, bool);
  9471. // Properties:
  9472. bool animationEnabled;
  9473. float animationLodBias;
  9474. /* readonly */
  9475. Array<Variant> attributeDefaults;
  9476. /* readonly */
  9477. Array<AttributeInfo> attributeInfos;
  9478. Array<Variant> attributes;
  9479. Vector3 baseVelocity;
  9480. /* readonly */
  9481. BoundingBox boundingBox;
  9482. bool castShadows;
  9483. /* readonly */
  9484. String category;
  9485. float drawDistance;
  9486. bool emitting;
  9487. bool enabled;
  9488. /* readonly */
  9489. bool enabledEffective;
  9490. Color endColor;
  9491. float endScale;
  9492. /* readonly */
  9493. uint id;
  9494. /* readonly */
  9495. bool inView;
  9496. float lifetime;
  9497. uint lightMask;
  9498. float lodBias;
  9499. Material material;
  9500. uint maxLights;
  9501. /* readonly */
  9502. Node node;
  9503. /* readonly */
  9504. uint numAttributes;
  9505. ObjectAnimation objectAnimation;
  9506. bool occludee;
  9507. bool occluder;
  9508. /* readonly */
  9509. int refs;
  9510. /* readonly */
  9511. bool replicated;
  9512. float shadowDistance;
  9513. uint shadowMask;
  9514. bool sorted;
  9515. Color startColor;
  9516. float startScale;
  9517. uint tailColumn;
  9518. bool temporary;
  9519. TrailType trailType;
  9520. /* readonly */
  9521. StringHash type;
  9522. /* readonly */
  9523. String typeName;
  9524. bool updateInvisible;
  9525. float vertexDistance;
  9526. uint viewMask;
  9527. /* readonly */
  9528. int weakRefs;
  9529. float width;
  9530. /* readonly */
  9531. BoundingBox worldBoundingBox;
  9532. /* readonly */
  9533. Zone zone;
  9534. uint zoneMask;
  9535. };
  9536. class RigidBody
  9537. {
  9538. public:
  9539. // Methods:
  9540. void Activate();
  9541. void ApplyAttributes();
  9542. void ApplyForce(const Vector3&);
  9543. void ApplyForce(const Vector3&, const Vector3&);
  9544. void ApplyImpulse(const Vector3&);
  9545. void ApplyImpulse(const Vector3&, const Vector3&);
  9546. void ApplyTorque(const Vector3&);
  9547. void ApplyTorqueImpulse(const Vector3&);
  9548. void DisableMassUpdate();
  9549. void DrawDebugGeometry(DebugRenderer, bool);
  9550. void EnableMassUpdate();
  9551. Variant GetAttribute(const String&) const;
  9552. ValueAnimation GetAttributeAnimation(const String&) const;
  9553. float GetAttributeAnimationSpeed(const String&) const;
  9554. float GetAttributeAnimationTime(const String&) const;
  9555. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9556. Variant GetAttributeDefault(const String&) const;
  9557. bool GetInterceptNetworkUpdate(const String&) const;
  9558. Vector3 GetVelocityAtPoint(const Vector3&) const;
  9559. bool HasSubscribedToEvent(Object, const String&);
  9560. bool HasSubscribedToEvent(const String&);
  9561. bool Load(File);
  9562. bool Load(VectorBuffer&);
  9563. bool LoadJSON(const JSONValue&);
  9564. bool LoadXML(const XMLElement&);
  9565. void MarkNetworkUpdate() const;
  9566. void ReAddBodyToWorld();
  9567. void Remove();
  9568. void RemoveAttributeAnimation(const String&);
  9569. void RemoveInstanceDefault();
  9570. void RemoveObjectAnimation();
  9571. void ResetForces();
  9572. void ResetToDefault();
  9573. bool Save(File) const;
  9574. bool Save(VectorBuffer&) const;
  9575. bool SaveJSON(JSONValue&) const;
  9576. bool SaveXML(XMLElement&) const;
  9577. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9578. void SetAnimationTime(float);
  9579. bool SetAttribute(const String&, const Variant&);
  9580. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9581. void SetAttributeAnimationSpeed(const String&, float);
  9582. void SetAttributeAnimationTime(const String&, float);
  9583. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9584. void SetCollisionLayerAndMask(uint, uint);
  9585. void SetInterceptNetworkUpdate(const String&, bool);
  9586. void SetTransform(const Vector3&, const Quaternion&);
  9587. // Properties:
  9588. /* readonly */
  9589. bool active;
  9590. float angularDamping;
  9591. Vector3 angularFactor;
  9592. float angularRestThreshold;
  9593. Vector3 angularVelocity;
  9594. bool animationEnabled;
  9595. Vector3 anisotropicFriction;
  9596. /* readonly */
  9597. Array<Variant> attributeDefaults;
  9598. /* readonly */
  9599. Array<AttributeInfo> attributeInfos;
  9600. Array<Variant> attributes;
  9601. /* readonly */
  9602. String category;
  9603. float ccdMotionThreshold;
  9604. float ccdRadius;
  9605. /* readonly */
  9606. Vector3 centerOfMass;
  9607. /* readonly */
  9608. Array<RigidBody> collidingBodies;
  9609. CollisionEventMode collisionEventMode;
  9610. uint collisionLayer;
  9611. uint collisionMask;
  9612. float contactProcessingThreshold;
  9613. bool enabled;
  9614. /* readonly */
  9615. bool enabledEffective;
  9616. float friction;
  9617. Vector3 gravityOverride;
  9618. /* readonly */
  9619. uint id;
  9620. bool kinematic;
  9621. float linearDamping;
  9622. Vector3 linearFactor;
  9623. float linearRestThreshold;
  9624. Vector3 linearVelocity;
  9625. float mass;
  9626. /* readonly */
  9627. Node node;
  9628. /* readonly */
  9629. uint numAttributes;
  9630. ObjectAnimation objectAnimation;
  9631. Vector3 position;
  9632. /* readonly */
  9633. int refs;
  9634. /* readonly */
  9635. bool replicated;
  9636. float restitution;
  9637. float rollingFriction;
  9638. Quaternion rotation;
  9639. bool temporary;
  9640. bool trigger;
  9641. /* readonly */
  9642. StringHash type;
  9643. /* readonly */
  9644. String typeName;
  9645. bool useGravity;
  9646. /* readonly */
  9647. int weakRefs;
  9648. };
  9649. class RigidBody2D
  9650. {
  9651. public:
  9652. // Methods:
  9653. void ApplyAngularImpulse(float, bool);
  9654. void ApplyAttributes();
  9655. void ApplyForce(const Vector2&, const Vector2&, bool);
  9656. void ApplyForceToCenter(const Vector2&, bool);
  9657. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  9658. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  9659. void ApplyTorque(float, bool);
  9660. void DrawDebugGeometry(DebugRenderer, bool);
  9661. Variant GetAttribute(const String&) const;
  9662. ValueAnimation GetAttributeAnimation(const String&) const;
  9663. float GetAttributeAnimationSpeed(const String&) const;
  9664. float GetAttributeAnimationTime(const String&) const;
  9665. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9666. Variant GetAttributeDefault(const String&) const;
  9667. bool GetInterceptNetworkUpdate(const String&) const;
  9668. bool HasSubscribedToEvent(Object, const String&);
  9669. bool HasSubscribedToEvent(const String&);
  9670. bool Load(File);
  9671. bool Load(VectorBuffer&);
  9672. bool LoadJSON(const JSONValue&);
  9673. bool LoadXML(const XMLElement&);
  9674. void MarkNetworkUpdate() const;
  9675. void Remove();
  9676. void RemoveAttributeAnimation(const String&);
  9677. void RemoveInstanceDefault();
  9678. void RemoveObjectAnimation();
  9679. void ResetToDefault();
  9680. bool Save(File) const;
  9681. bool Save(VectorBuffer&) const;
  9682. bool SaveJSON(JSONValue&) const;
  9683. bool SaveXML(XMLElement&) const;
  9684. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9685. void SetAnimationTime(float);
  9686. bool SetAttribute(const String&, const Variant&);
  9687. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9688. void SetAttributeAnimationSpeed(const String&, float);
  9689. void SetAttributeAnimationTime(const String&, float);
  9690. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9691. void SetInterceptNetworkUpdate(const String&, bool);
  9692. // Properties:
  9693. bool allowSleep;
  9694. float angularDamping;
  9695. bool animationEnabled;
  9696. /* readonly */
  9697. Array<Variant> attributeDefaults;
  9698. /* readonly */
  9699. Array<AttributeInfo> attributeInfos;
  9700. Array<Variant> attributes;
  9701. bool awake;
  9702. BodyType2D bodyType;
  9703. bool bullet;
  9704. /* readonly */
  9705. String category;
  9706. bool enabled;
  9707. /* readonly */
  9708. bool enabledEffective;
  9709. bool fixedRotation;
  9710. float gravityScale;
  9711. /* readonly */
  9712. uint id;
  9713. float inertia;
  9714. float linearDamping;
  9715. Vector2 linearVelocity;
  9716. float mass;
  9717. Vector2 massCenter;
  9718. /* readonly */
  9719. Node node;
  9720. /* readonly */
  9721. uint numAttributes;
  9722. ObjectAnimation objectAnimation;
  9723. /* readonly */
  9724. int refs;
  9725. /* readonly */
  9726. bool replicated;
  9727. bool temporary;
  9728. /* readonly */
  9729. StringHash type;
  9730. /* readonly */
  9731. String typeName;
  9732. bool useFixtureMass;
  9733. /* readonly */
  9734. int weakRefs;
  9735. };
  9736. class Scene
  9737. {
  9738. public:
  9739. Scene();
  9740. Scene(const String&in);
  9741. // Methods:
  9742. void AddChild(Node, uint = M_MAX_UNSIGNED);
  9743. void AddRequiredPackageFile(PackageFile);
  9744. void AddTag(const String&);
  9745. void AddTags(const String&, int8 = ';');
  9746. void ApplyAttributes();
  9747. void Clear(bool = true, bool = true);
  9748. void ClearRequiredPackageFiles();
  9749. Component CloneComponent(Component, CreateMode, uint = 0);
  9750. Component CloneComponent(Component, uint = 0);
  9751. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  9752. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9753. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  9754. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  9755. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  9756. Variant GetAttribute(const String&) const;
  9757. ValueAnimation GetAttributeAnimation(const String&) const;
  9758. float GetAttributeAnimationSpeed(const String&) const;
  9759. float GetAttributeAnimationTime(const String&) const;
  9760. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9761. Variant GetAttributeDefault(const String&) const;
  9762. Node GetChild(const String&, bool = false) const;
  9763. Array<Node> GetChildren(bool = false) const;
  9764. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  9765. Array<Node> GetChildrenWithScript(bool = false) const;
  9766. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  9767. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  9768. Component GetComponent(const String&, bool = false) const;
  9769. Component GetComponent(uint) const;
  9770. Array<Component> GetComponents() const;
  9771. Array<Component> GetComponents(const String&, bool = false) const;
  9772. bool GetInterceptNetworkUpdate(const String&) const;
  9773. Node GetNode(uint) const;
  9774. Array<Node> GetNodesWithTag(const String&) const;
  9775. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9776. Component GetParentComponent(const String&, bool = false) const;
  9777. ScriptObject GetScriptObject() const;
  9778. ScriptObject GetScriptObject(const String&) const;
  9779. bool HasComponent(const String&) const;
  9780. bool HasSubscribedToEvent(Object, const String&);
  9781. bool HasSubscribedToEvent(const String&);
  9782. bool HasTag(const String&);
  9783. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9784. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9785. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9786. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9787. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9788. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9789. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9790. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9791. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9792. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9793. bool IsChildOf(Node) const;
  9794. bool Load(File);
  9795. bool Load(VectorBuffer&);
  9796. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9797. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9798. bool LoadJSON(File);
  9799. bool LoadJSON(VectorBuffer&);
  9800. bool LoadJSON(const JSONValue&);
  9801. bool LoadXML(File);
  9802. bool LoadXML(VectorBuffer&);
  9803. bool LoadXML(const XMLElement&);
  9804. Vector3 LocalToWorld(const Vector3&) const;
  9805. Vector3 LocalToWorld(const Vector4&) const;
  9806. Vector2 LocalToWorld2D(const Vector2&) const;
  9807. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  9808. void MarkNetworkUpdate() const;
  9809. void Pitch(float, TransformSpace = TS_LOCAL);
  9810. void RegisterVar(const String&);
  9811. void Remove();
  9812. void RemoveAllChildren();
  9813. void RemoveAllComponents();
  9814. void RemoveAllTags();
  9815. void RemoveAttributeAnimation(const String&);
  9816. void RemoveChild(Node);
  9817. void RemoveChildren(bool, bool, bool);
  9818. void RemoveComponent(Component);
  9819. void RemoveComponent(const String&);
  9820. void RemoveComponents(bool, bool);
  9821. void RemoveComponents(const String&);
  9822. void RemoveInstanceDefault();
  9823. void RemoveObjectAnimation();
  9824. bool RemoveTag(const String&);
  9825. void ReorderComponent(Component, uint);
  9826. void ResetToDefault();
  9827. void Roll(float, TransformSpace = TS_LOCAL);
  9828. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  9829. void Rotate2D(float, TransformSpace = TS_LOCAL);
  9830. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  9831. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  9832. bool Save(File) const;
  9833. bool Save(VectorBuffer&) const;
  9834. bool SaveJSON(File, const String& = "\t");
  9835. bool SaveJSON(JSONValue&) const;
  9836. bool SaveJSON(VectorBuffer&, const String& = "\t");
  9837. bool SaveXML(File, const String& = "\t");
  9838. bool SaveXML(VectorBuffer&, const String& = "\t");
  9839. bool SaveXML(XMLElement&) const;
  9840. void Scale(const Vector3&);
  9841. void Scale(float);
  9842. void Scale2D(const Vector2&);
  9843. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9844. void SetAnimationTime(float);
  9845. bool SetAttribute(const String&, const Variant&);
  9846. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9847. void SetAttributeAnimationSpeed(const String&, float);
  9848. void SetAttributeAnimationTime(const String&, float);
  9849. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9850. void SetInterceptNetworkUpdate(const String&, bool);
  9851. void SetPosition2D(float, float);
  9852. void SetScale(float);
  9853. void SetScale2D(float, float);
  9854. void SetTransform(const Matrix3x4&);
  9855. void SetTransform(const Vector3&, const Quaternion&);
  9856. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  9857. void SetTransform(const Vector3&, const Quaternion&, float);
  9858. void SetTransform2D(const Vector2&, float);
  9859. void SetTransform2D(const Vector2&, float, const Vector2&);
  9860. void SetTransform2D(const Vector2&, float, float);
  9861. void SetWorldTransform(const Vector3&, const Quaternion&);
  9862. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  9863. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  9864. void SetWorldTransform2D(const Vector2&, float);
  9865. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  9866. void SetWorldTransform2D(const Vector2&, float, float);
  9867. void StopAsyncLoading();
  9868. const String& GetVarName(StringHash) const;
  9869. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  9870. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  9871. void UnregisterAllVars(const String&);
  9872. void UnregisterVar(const String&);
  9873. void Update(float);
  9874. Vector3 WorldToLocal(const Vector3&) const;
  9875. Vector3 WorldToLocal(const Vector4&) const;
  9876. Vector2 WorldToLocal2D(const Vector2&) const;
  9877. void Yaw(float, TransformSpace = TS_LOCAL);
  9878. // Properties:
  9879. /* readonly */
  9880. Array<Node> allChildrenByName;
  9881. bool animationEnabled;
  9882. /* readonly */
  9883. LoadMode asyncLoadMode;
  9884. /* readonly */
  9885. bool asyncLoading;
  9886. int asyncLoadingMs;
  9887. /* readonly */
  9888. float asyncProgress;
  9889. /* readonly */
  9890. Array<Variant> attributeDefaults;
  9891. /* readonly */
  9892. Array<AttributeInfo> attributeInfos;
  9893. Array<Variant> attributes;
  9894. /* readonly */
  9895. String category;
  9896. /* readonly */
  9897. uint checksum;
  9898. /* readonly */
  9899. Array<Node> children;
  9900. /* readonly */
  9901. Array<Node> childrenByName;
  9902. /* readonly */
  9903. Array<Component> components;
  9904. /* readonly */
  9905. DebugRenderer debugRenderer;
  9906. Vector3 direction;
  9907. float elapsedTime;
  9908. /* readonly */
  9909. String fileName;
  9910. uint id;
  9911. String name;
  9912. /* readonly */
  9913. uint numAllChildren;
  9914. /* readonly */
  9915. uint numAttributes;
  9916. /* readonly */
  9917. uint numChildren;
  9918. /* readonly */
  9919. uint numComponents;
  9920. ObjectAnimation objectAnimation;
  9921. /* readonly */
  9922. Octree octree;
  9923. Node parent;
  9924. /* readonly */
  9925. PhysicsWorld physicsWorld;
  9926. /* readonly */
  9927. PhysicsWorld2D physicsWorld2D;
  9928. Vector3 position;
  9929. Vector2 position2D;
  9930. /* readonly */
  9931. int refs;
  9932. /* readonly */
  9933. bool replicated;
  9934. /* readonly */
  9935. Array<PackageFile> requiredPackageFiles;
  9936. /* readonly */
  9937. Vector3 right;
  9938. Quaternion rotation;
  9939. float rotation2D;
  9940. Vector3 scale;
  9941. Vector2 scale2D;
  9942. /* readonly */
  9943. ScriptObject scriptObject;
  9944. /* readonly */
  9945. Vector3 signedWorldScale;
  9946. float smoothingConstant;
  9947. float snapThreshold;
  9948. /* readonly */
  9949. Array<String> tags;
  9950. bool temporary;
  9951. float timeScale;
  9952. /* readonly */
  9953. Matrix3x4 transform;
  9954. /* readonly */
  9955. StringHash type;
  9956. /* readonly */
  9957. String typeName;
  9958. /* readonly */
  9959. Vector3 up;
  9960. bool updateEnabled;
  9961. /* readonly */
  9962. VariantMap vars;
  9963. /* readonly */
  9964. int weakRefs;
  9965. Vector3 worldDirection;
  9966. Vector3 worldPosition;
  9967. Vector2 worldPosition2D;
  9968. /* readonly */
  9969. Vector3 worldRight;
  9970. Quaternion worldRotation;
  9971. float worldRotation2D;
  9972. Vector3 worldScale;
  9973. Vector2 worldScale2D;
  9974. /* readonly */
  9975. Matrix3x4 worldTransform;
  9976. /* readonly */
  9977. Vector3 worldUp;
  9978. };
  9979. class Script
  9980. {
  9981. public:
  9982. // Methods:
  9983. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9984. bool Execute(const String&);
  9985. bool HasSubscribedToEvent(Object, const String&);
  9986. bool HasSubscribedToEvent(const String&);
  9987. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9988. // Properties:
  9989. /* readonly */
  9990. String category;
  9991. Scene defaultScene;
  9992. ScriptFile defaultScriptFile;
  9993. bool executeConsoleCommands;
  9994. /* readonly */
  9995. int refs;
  9996. /* readonly */
  9997. StringHash type;
  9998. /* readonly */
  9999. String typeName;
  10000. /* readonly */
  10001. int weakRefs;
  10002. };
  10003. class ScriptFile
  10004. {
  10005. public:
  10006. ScriptFile();
  10007. ScriptFile(const String&in);
  10008. // Methods:
  10009. void ClearDelayedExecute(const String& = String ( ));
  10010. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  10011. bool Execute(const String&, const Array<Variant> = null);
  10012. bool HasSubscribedToEvent(Object, const String&);
  10013. bool HasSubscribedToEvent(const String&);
  10014. bool Load(File);
  10015. bool Load(VectorBuffer&);
  10016. bool Load(const String&);
  10017. bool Save(File) const;
  10018. bool Save(VectorBuffer&) const;
  10019. bool Save(const String&) const;
  10020. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10021. // Properties:
  10022. /* readonly */
  10023. String category;
  10024. /* readonly */
  10025. bool compiled;
  10026. /* readonly */
  10027. uint memoryUse;
  10028. String name;
  10029. /* readonly */
  10030. int refs;
  10031. /* readonly */
  10032. StringHash type;
  10033. /* readonly */
  10034. String typeName;
  10035. /* readonly */
  10036. uint useTimer;
  10037. /* readonly */
  10038. int weakRefs;
  10039. };
  10040. class ScriptInstance
  10041. {
  10042. public:
  10043. // Methods:
  10044. void ApplyAttributes();
  10045. void ClearDelayedExecute(const String& = String ( ));
  10046. bool CreateObject(ScriptFile, const String&);
  10047. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  10048. void DrawDebugGeometry(DebugRenderer, bool);
  10049. bool Execute(const String&, const Array<Variant> = null);
  10050. Variant GetAttribute(const String&) const;
  10051. ValueAnimation GetAttributeAnimation(const String&) const;
  10052. float GetAttributeAnimationSpeed(const String&) const;
  10053. float GetAttributeAnimationTime(const String&) const;
  10054. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10055. Variant GetAttributeDefault(const String&) const;
  10056. bool GetInterceptNetworkUpdate(const String&) const;
  10057. bool HasMethod(const String&) const;
  10058. bool HasSubscribedToEvent(Object, const String&);
  10059. bool HasSubscribedToEvent(const String&);
  10060. bool IsA(const String&) const;
  10061. bool Load(File);
  10062. bool Load(VectorBuffer&);
  10063. bool LoadJSON(const JSONValue&);
  10064. bool LoadXML(const XMLElement&);
  10065. void MarkNetworkUpdate() const;
  10066. void Remove();
  10067. void RemoveAttributeAnimation(const String&);
  10068. void RemoveInstanceDefault();
  10069. void RemoveObjectAnimation();
  10070. void ResetToDefault();
  10071. bool Save(File) const;
  10072. bool Save(VectorBuffer&) const;
  10073. bool SaveJSON(JSONValue&) const;
  10074. bool SaveXML(XMLElement&) const;
  10075. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10076. void SetAnimationTime(float);
  10077. bool SetAttribute(const String&, const Variant&);
  10078. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10079. void SetAttributeAnimationSpeed(const String&, float);
  10080. void SetAttributeAnimationTime(const String&, float);
  10081. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10082. void SetInterceptNetworkUpdate(const String&, bool);
  10083. // Properties:
  10084. bool animationEnabled;
  10085. /* readonly */
  10086. Array<Variant> attributeDefaults;
  10087. /* readonly */
  10088. Array<AttributeInfo> attributeInfos;
  10089. Array<Variant> attributes;
  10090. /* readonly */
  10091. String category;
  10092. String className;
  10093. bool enabled;
  10094. /* readonly */
  10095. bool enabledEffective;
  10096. /* readonly */
  10097. uint id;
  10098. /* readonly */
  10099. Node node;
  10100. /* readonly */
  10101. uint numAttributes;
  10102. ObjectAnimation objectAnimation;
  10103. /* readonly */
  10104. int refs;
  10105. /* readonly */
  10106. bool replicated;
  10107. ScriptFile scriptFile;
  10108. /* readonly */
  10109. ScriptObject scriptObject;
  10110. bool temporary;
  10111. /* readonly */
  10112. StringHash type;
  10113. /* readonly */
  10114. String typeName;
  10115. /* readonly */
  10116. int weakRefs;
  10117. };
  10118. class ScriptObject
  10119. {
  10120. public:
  10121. };
  10122. class ScrollBar
  10123. {
  10124. public:
  10125. ScrollBar();
  10126. ScrollBar(const String&in);
  10127. // Methods:
  10128. void AddChild(UIElement);
  10129. void AddTag(const String&);
  10130. void AddTags(const String&, int8 = ';');
  10131. void ApplyAttributes();
  10132. void BringToFront();
  10133. void ChangeValue(float);
  10134. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10135. void DisableLayoutUpdate();
  10136. IntVector2 ElementToScreen(const IntVector2&);
  10137. void EnableLayoutUpdate();
  10138. uint FindChild(UIElement) const;
  10139. Variant GetAttribute(const String&) const;
  10140. ValueAnimation GetAttributeAnimation(const String&) const;
  10141. float GetAttributeAnimationSpeed(const String&) const;
  10142. float GetAttributeAnimationTime(const String&) const;
  10143. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10144. Variant GetAttributeDefault(const String&) const;
  10145. UIElement GetChild(const String&, bool = false) const;
  10146. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10147. Array<UIElement> GetChildren(bool = false) const;
  10148. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10149. UIElement GetElementEventSender() const;
  10150. bool GetInterceptNetworkUpdate(const String&) const;
  10151. uint GetNumChildren(bool) const;
  10152. bool HasSubscribedToEvent(Object, const String&);
  10153. bool HasSubscribedToEvent(const String&);
  10154. bool HasTag(const String&) const;
  10155. void InsertChild(uint, UIElement);
  10156. bool IsChildOf(UIElement) const;
  10157. bool IsInside(IntVector2, bool);
  10158. bool IsInsideCombined(IntVector2, bool);
  10159. bool Load(File);
  10160. bool Load(VectorBuffer&);
  10161. UIElement LoadChildXML(XMLFile, XMLFile);
  10162. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10163. bool LoadJSON(const JSONValue&);
  10164. bool LoadXML(File);
  10165. bool LoadXML(VectorBuffer&);
  10166. bool LoadXML(XMLFile, XMLFile);
  10167. bool LoadXML(const XMLElement&, XMLFile);
  10168. bool LoadXML(const XMLElement&);
  10169. void MarkNetworkUpdate() const;
  10170. void Remove();
  10171. void RemoveAllChildren();
  10172. void RemoveAllTags();
  10173. void RemoveAttributeAnimation(const String&);
  10174. void RemoveChild(UIElement, uint = 0);
  10175. void RemoveChild(uint);
  10176. void RemoveInstanceDefault();
  10177. void RemoveObjectAnimation();
  10178. bool RemoveTag(const String&);
  10179. void ResetDeepEnabled();
  10180. void ResetToDefault();
  10181. bool Save(File) const;
  10182. bool Save(VectorBuffer&) const;
  10183. bool SaveJSON(JSONValue&) const;
  10184. bool SaveXML(File, const String& = "\t");
  10185. bool SaveXML(VectorBuffer&, const String& = "\t");
  10186. bool SaveXML(XMLElement&) const;
  10187. IntVector2 ScreenToElement(const IntVector2&);
  10188. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10189. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10190. void SetAnimationTime(float);
  10191. bool SetAttribute(const String&, const Variant&);
  10192. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10193. void SetAttributeAnimationSpeed(const String&, float);
  10194. void SetAttributeAnimationTime(const String&, float);
  10195. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10196. void SetDeepEnabled(bool);
  10197. void SetEnabledRecursive(bool);
  10198. void SetFixedHeight(int);
  10199. void SetFixedSize(int, int);
  10200. void SetFixedWidth(int);
  10201. void SetInterceptNetworkUpdate(const String&, bool);
  10202. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10203. void SetMaxAnchor(float, float);
  10204. void SetMaxSize(int, int);
  10205. void SetMinAnchor(float, float);
  10206. void SetMinSize(int, int);
  10207. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10208. void SetPivot(float, float);
  10209. void SetPosition(int, int);
  10210. void SetSize(int, int);
  10211. bool SetStyle(const String&, XMLFile = null);
  10212. bool SetStyle(const XMLElement&);
  10213. bool SetStyleAuto(XMLFile = null);
  10214. void StepBack();
  10215. void StepForward();
  10216. void UpdateLayout();
  10217. const Variant& GetVar(const StringHash&);
  10218. // Properties:
  10219. bool animationEnabled;
  10220. /* readonly */
  10221. Array<Variant> attributeDefaults;
  10222. /* readonly */
  10223. Array<AttributeInfo> attributeInfos;
  10224. Array<Variant> attributes;
  10225. /* readonly */
  10226. Button backButton;
  10227. bool bringToBack;
  10228. bool bringToFront;
  10229. /* readonly */
  10230. String category;
  10231. /* readonly */
  10232. IntVector2 childOffset;
  10233. /* readonly */
  10234. Array<UIElement> children;
  10235. IntRect clipBorder;
  10236. bool clipChildren;
  10237. /* writeonly */
  10238. Color color;
  10239. /* readonly */
  10240. bool colorGradient;
  10241. Array<Color> colors;
  10242. /* readonly */
  10243. IntRect combinedScreenRect;
  10244. XMLFile defaultStyle;
  10245. /* readonly */
  10246. float derivedOpacity;
  10247. /* readonly */
  10248. uint dragButtonCombo;
  10249. /* readonly */
  10250. int dragButtonCount;
  10251. uint dragDropMode;
  10252. bool editable;
  10253. /* readonly */
  10254. float effectiveScrollStep;
  10255. bool elementEventSender;
  10256. bool enableAnchor;
  10257. bool enabled;
  10258. /* readonly */
  10259. bool enabledSelf;
  10260. /* readonly */
  10261. bool fixedHeight;
  10262. /* readonly */
  10263. bool fixedSize;
  10264. /* readonly */
  10265. bool fixedWidth;
  10266. bool focus;
  10267. FocusMode focusMode;
  10268. /* readonly */
  10269. Button forwardButton;
  10270. int height;
  10271. HorizontalAlignment horizontalAlignment;
  10272. /* readonly */
  10273. bool hovering;
  10274. int indent;
  10275. int indentSpacing;
  10276. /* readonly */
  10277. int indentWidth;
  10278. bool internal;
  10279. IntRect layoutBorder;
  10280. Vector2 layoutFlexScale;
  10281. LayoutMode layoutMode;
  10282. int layoutSpacing;
  10283. Vector2 maxAnchor;
  10284. int maxHeight;
  10285. IntVector2 maxOffset;
  10286. IntVector2 maxSize;
  10287. int maxWidth;
  10288. Vector2 minAnchor;
  10289. int minHeight;
  10290. IntVector2 minOffset;
  10291. IntVector2 minSize;
  10292. int minWidth;
  10293. String name;
  10294. /* readonly */
  10295. uint numAllChildren;
  10296. /* readonly */
  10297. uint numAttributes;
  10298. /* readonly */
  10299. uint numChildren;
  10300. ObjectAnimation objectAnimation;
  10301. float opacity;
  10302. Orientation orientation;
  10303. UIElement parent;
  10304. Vector2 pivot;
  10305. IntVector2 position;
  10306. int priority;
  10307. float range;
  10308. /* readonly */
  10309. int refs;
  10310. /* readonly */
  10311. UIElement root;
  10312. /* readonly */
  10313. IntVector2 screenPosition;
  10314. float scrollStep;
  10315. bool selected;
  10316. IntVector2 size;
  10317. /* readonly */
  10318. Slider slider;
  10319. bool sortChildren;
  10320. float stepFactor;
  10321. String style;
  10322. /* readonly */
  10323. Array<String> tags;
  10324. bool temporary;
  10325. TraversalMode traversalMode;
  10326. /* readonly */
  10327. StringHash type;
  10328. /* readonly */
  10329. String typeName;
  10330. bool useDerivedOpacity;
  10331. float value;
  10332. /* readonly */
  10333. VariantMap vars;
  10334. VerticalAlignment verticalAlignment;
  10335. bool visible;
  10336. /* readonly */
  10337. bool visibleEffective;
  10338. /* readonly */
  10339. int weakRefs;
  10340. int width;
  10341. };
  10342. class ScrollView
  10343. {
  10344. public:
  10345. ScrollView();
  10346. ScrollView(const String&in);
  10347. // Methods:
  10348. void AddChild(UIElement);
  10349. void AddTag(const String&);
  10350. void AddTags(const String&, int8 = ';');
  10351. void ApplyAttributes();
  10352. void BringToFront();
  10353. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10354. void DisableLayoutUpdate();
  10355. IntVector2 ElementToScreen(const IntVector2&);
  10356. void EnableLayoutUpdate();
  10357. uint FindChild(UIElement) const;
  10358. Variant GetAttribute(const String&) const;
  10359. ValueAnimation GetAttributeAnimation(const String&) const;
  10360. float GetAttributeAnimationSpeed(const String&) const;
  10361. float GetAttributeAnimationTime(const String&) const;
  10362. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10363. Variant GetAttributeDefault(const String&) const;
  10364. UIElement GetChild(const String&, bool = false) const;
  10365. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10366. Array<UIElement> GetChildren(bool = false) const;
  10367. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10368. UIElement GetElementEventSender() const;
  10369. bool GetInterceptNetworkUpdate(const String&) const;
  10370. uint GetNumChildren(bool) const;
  10371. bool HasSubscribedToEvent(Object, const String&);
  10372. bool HasSubscribedToEvent(const String&);
  10373. bool HasTag(const String&) const;
  10374. void InsertChild(uint, UIElement);
  10375. bool IsChildOf(UIElement) const;
  10376. bool IsInside(IntVector2, bool);
  10377. bool IsInsideCombined(IntVector2, bool);
  10378. bool Load(File);
  10379. bool Load(VectorBuffer&);
  10380. UIElement LoadChildXML(XMLFile, XMLFile);
  10381. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10382. bool LoadJSON(const JSONValue&);
  10383. bool LoadXML(File);
  10384. bool LoadXML(VectorBuffer&);
  10385. bool LoadXML(XMLFile, XMLFile);
  10386. bool LoadXML(const XMLElement&, XMLFile);
  10387. bool LoadXML(const XMLElement&);
  10388. void MarkNetworkUpdate() const;
  10389. void Remove();
  10390. void RemoveAllChildren();
  10391. void RemoveAllTags();
  10392. void RemoveAttributeAnimation(const String&);
  10393. void RemoveChild(UIElement, uint = 0);
  10394. void RemoveChild(uint);
  10395. void RemoveInstanceDefault();
  10396. void RemoveObjectAnimation();
  10397. bool RemoveTag(const String&);
  10398. void ResetDeepEnabled();
  10399. void ResetToDefault();
  10400. bool Save(File) const;
  10401. bool Save(VectorBuffer&) const;
  10402. bool SaveJSON(JSONValue&) const;
  10403. bool SaveXML(File, const String& = "\t");
  10404. bool SaveXML(VectorBuffer&, const String& = "\t");
  10405. bool SaveXML(XMLElement&) const;
  10406. IntVector2 ScreenToElement(const IntVector2&);
  10407. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10408. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10409. void SetAnimationTime(float);
  10410. bool SetAttribute(const String&, const Variant&);
  10411. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10412. void SetAttributeAnimationSpeed(const String&, float);
  10413. void SetAttributeAnimationTime(const String&, float);
  10414. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10415. void SetDeepEnabled(bool);
  10416. void SetEnabledRecursive(bool);
  10417. void SetFixedHeight(int);
  10418. void SetFixedSize(int, int);
  10419. void SetFixedWidth(int);
  10420. void SetInterceptNetworkUpdate(const String&, bool);
  10421. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10422. void SetMaxAnchor(float, float);
  10423. void SetMaxSize(int, int);
  10424. void SetMinAnchor(float, float);
  10425. void SetMinSize(int, int);
  10426. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10427. void SetPivot(float, float);
  10428. void SetPosition(int, int);
  10429. void SetScrollBarsVisible(bool, bool);
  10430. void SetSize(int, int);
  10431. bool SetStyle(const String&, XMLFile = null);
  10432. bool SetStyle(const XMLElement&);
  10433. bool SetStyleAuto(XMLFile = null);
  10434. void SetViewPosition(int, int);
  10435. void UpdateLayout();
  10436. const Variant& GetVar(const StringHash&);
  10437. // Properties:
  10438. bool animationEnabled;
  10439. /* readonly */
  10440. Array<Variant> attributeDefaults;
  10441. /* readonly */
  10442. Array<AttributeInfo> attributeInfos;
  10443. Array<Variant> attributes;
  10444. bool autoDisableChildren;
  10445. float autoDisableThreshold;
  10446. bool bringToBack;
  10447. bool bringToFront;
  10448. /* readonly */
  10449. String category;
  10450. /* readonly */
  10451. IntVector2 childOffset;
  10452. /* readonly */
  10453. Array<UIElement> children;
  10454. IntRect clipBorder;
  10455. bool clipChildren;
  10456. /* writeonly */
  10457. Color color;
  10458. /* readonly */
  10459. bool colorGradient;
  10460. Array<Color> colors;
  10461. /* readonly */
  10462. IntRect combinedScreenRect;
  10463. UIElement contentElement;
  10464. XMLFile defaultStyle;
  10465. /* readonly */
  10466. float derivedOpacity;
  10467. /* readonly */
  10468. uint dragButtonCombo;
  10469. /* readonly */
  10470. int dragButtonCount;
  10471. uint dragDropMode;
  10472. bool editable;
  10473. bool elementEventSender;
  10474. bool enableAnchor;
  10475. bool enabled;
  10476. /* readonly */
  10477. bool enabledSelf;
  10478. /* readonly */
  10479. bool fixedHeight;
  10480. /* readonly */
  10481. bool fixedSize;
  10482. /* readonly */
  10483. bool fixedWidth;
  10484. bool focus;
  10485. FocusMode focusMode;
  10486. int height;
  10487. HorizontalAlignment horizontalAlignment;
  10488. /* readonly */
  10489. ScrollBar horizontalScrollBar;
  10490. bool horizontalScrollBarVisible;
  10491. /* readonly */
  10492. bool hovering;
  10493. int indent;
  10494. int indentSpacing;
  10495. /* readonly */
  10496. int indentWidth;
  10497. bool internal;
  10498. IntRect layoutBorder;
  10499. Vector2 layoutFlexScale;
  10500. LayoutMode layoutMode;
  10501. int layoutSpacing;
  10502. Vector2 maxAnchor;
  10503. int maxHeight;
  10504. IntVector2 maxOffset;
  10505. IntVector2 maxSize;
  10506. int maxWidth;
  10507. Vector2 minAnchor;
  10508. int minHeight;
  10509. IntVector2 minOffset;
  10510. IntVector2 minSize;
  10511. int minWidth;
  10512. String name;
  10513. /* readonly */
  10514. uint numAllChildren;
  10515. /* readonly */
  10516. uint numAttributes;
  10517. /* readonly */
  10518. uint numChildren;
  10519. ObjectAnimation objectAnimation;
  10520. float opacity;
  10521. float pageStep;
  10522. UIElement parent;
  10523. Vector2 pivot;
  10524. IntVector2 position;
  10525. int priority;
  10526. /* readonly */
  10527. int refs;
  10528. /* readonly */
  10529. UIElement root;
  10530. /* readonly */
  10531. IntVector2 screenPosition;
  10532. bool scrollBarsAutoVisible;
  10533. float scrollDeceleration;
  10534. /* readonly */
  10535. BorderImage scrollPanel;
  10536. float scrollSnapEpsilon;
  10537. float scrollStep;
  10538. bool selected;
  10539. IntVector2 size;
  10540. bool sortChildren;
  10541. String style;
  10542. /* readonly */
  10543. Array<String> tags;
  10544. bool temporary;
  10545. TraversalMode traversalMode;
  10546. /* readonly */
  10547. StringHash type;
  10548. /* readonly */
  10549. String typeName;
  10550. bool useDerivedOpacity;
  10551. /* readonly */
  10552. VariantMap vars;
  10553. VerticalAlignment verticalAlignment;
  10554. /* readonly */
  10555. ScrollBar verticalScrollBar;
  10556. bool verticalScrollBarVisible;
  10557. IntVector2 viewPosition;
  10558. bool visible;
  10559. /* readonly */
  10560. bool visibleEffective;
  10561. /* readonly */
  10562. int weakRefs;
  10563. int width;
  10564. };
  10565. class Serializable
  10566. {
  10567. public:
  10568. // Methods:
  10569. void ApplyAttributes();
  10570. Variant GetAttribute(const String&) const;
  10571. Variant GetAttributeDefault(const String&) const;
  10572. bool GetInterceptNetworkUpdate(const String&) const;
  10573. bool HasSubscribedToEvent(Object, const String&);
  10574. bool HasSubscribedToEvent(const String&);
  10575. bool Load(File);
  10576. bool Load(VectorBuffer&);
  10577. bool LoadJSON(const JSONValue&);
  10578. bool LoadXML(const XMLElement&);
  10579. void MarkNetworkUpdate() const;
  10580. void RemoveInstanceDefault();
  10581. void ResetToDefault();
  10582. bool Save(File) const;
  10583. bool Save(VectorBuffer&) const;
  10584. bool SaveJSON(JSONValue&) const;
  10585. bool SaveXML(XMLElement&) const;
  10586. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10587. bool SetAttribute(const String&, const Variant&);
  10588. void SetInterceptNetworkUpdate(const String&, bool);
  10589. // Properties:
  10590. /* readonly */
  10591. Array<Variant> attributeDefaults;
  10592. /* readonly */
  10593. Array<AttributeInfo> attributeInfos;
  10594. Array<Variant> attributes;
  10595. /* readonly */
  10596. String category;
  10597. /* readonly */
  10598. uint numAttributes;
  10599. /* readonly */
  10600. int refs;
  10601. bool temporary;
  10602. /* readonly */
  10603. StringHash type;
  10604. /* readonly */
  10605. String typeName;
  10606. /* readonly */
  10607. int weakRefs;
  10608. };
  10609. class Serializer
  10610. {
  10611. public:
  10612. // Methods:
  10613. uint Write(Array<uint8>);
  10614. bool WriteBool(bool);
  10615. bool WriteBoundingBox(const BoundingBox&);
  10616. bool WriteByte(int8);
  10617. bool WriteColor(const Color&);
  10618. bool WriteDouble(double);
  10619. bool WriteFileID(const String&);
  10620. bool WriteFloat(float);
  10621. bool WriteInt(int);
  10622. bool WriteInt64(int64);
  10623. bool WriteIntRect(const IntRect&);
  10624. bool WriteIntVector2(const IntVector2&);
  10625. bool WriteLine(const String&);
  10626. bool WriteMatrix3(const Matrix3&);
  10627. bool WriteMatrix3x4(const Matrix3x4&);
  10628. bool WriteMatrix4(const Matrix4&);
  10629. bool WriteNetID(uint);
  10630. bool WritePackedQuaternion(const Quaternion&);
  10631. bool WritePackedVector3(const Vector3&, float);
  10632. bool WriteQuaternion(const Quaternion&);
  10633. bool WriteShort(int16);
  10634. bool WriteString(const String&);
  10635. bool WriteStringHash(const StringHash&);
  10636. bool WriteUByte(uint8);
  10637. bool WriteUInt(uint);
  10638. bool WriteUInt64(uint64);
  10639. bool WriteUShort(uint16);
  10640. bool WriteVLE(uint);
  10641. bool WriteVariant(const Variant&);
  10642. bool WriteVariantMap(const VariantMap&);
  10643. bool WriteVector2(const Vector2&);
  10644. bool WriteVector3(const Vector3&);
  10645. bool WriteVector4(const Vector4&);
  10646. bool WriteVectorBuffer(const VectorBuffer&);
  10647. };
  10648. class Skeleton
  10649. {
  10650. public:
  10651. // Methods:
  10652. Bone GetBone(const String&) const;
  10653. uint GetBoneIndex(const String&) const;
  10654. Bone GetBoneParent(Bone) const;
  10655. void Reset();
  10656. // Properties:
  10657. /* readonly */
  10658. Array<Bone> bones;
  10659. /* readonly */
  10660. uint numBones;
  10661. /* readonly */
  10662. Bone rootBone;
  10663. };
  10664. class Skybox
  10665. {
  10666. public:
  10667. // Methods:
  10668. void ApplyAttributes();
  10669. void ApplyMaterialList(const String& = String ( ));
  10670. void DrawDebugGeometry(DebugRenderer, bool);
  10671. Variant GetAttribute(const String&) const;
  10672. ValueAnimation GetAttributeAnimation(const String&) const;
  10673. float GetAttributeAnimationSpeed(const String&) const;
  10674. float GetAttributeAnimationTime(const String&) const;
  10675. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10676. Variant GetAttributeDefault(const String&) const;
  10677. bool GetInterceptNetworkUpdate(const String&) const;
  10678. bool HasSubscribedToEvent(Object, const String&);
  10679. bool HasSubscribedToEvent(const String&);
  10680. bool IsInView(Camera) const;
  10681. bool Load(File);
  10682. bool Load(VectorBuffer&);
  10683. bool LoadJSON(const JSONValue&);
  10684. bool LoadXML(const XMLElement&);
  10685. void MarkNetworkUpdate() const;
  10686. void Remove();
  10687. void RemoveAttributeAnimation(const String&);
  10688. void RemoveInstanceDefault();
  10689. void RemoveObjectAnimation();
  10690. void ResetToDefault();
  10691. bool Save(File) const;
  10692. bool Save(VectorBuffer&) const;
  10693. bool SaveJSON(JSONValue&) const;
  10694. bool SaveXML(XMLElement&) const;
  10695. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10696. void SetAnimationTime(float);
  10697. bool SetAttribute(const String&, const Variant&);
  10698. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10699. void SetAttributeAnimationSpeed(const String&, float);
  10700. void SetAttributeAnimationTime(const String&, float);
  10701. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10702. void SetInterceptNetworkUpdate(const String&, bool);
  10703. // Properties:
  10704. bool animationEnabled;
  10705. /* readonly */
  10706. Array<Variant> attributeDefaults;
  10707. /* readonly */
  10708. Array<AttributeInfo> attributeInfos;
  10709. Array<Variant> attributes;
  10710. /* readonly */
  10711. BoundingBox boundingBox;
  10712. bool castShadows;
  10713. /* readonly */
  10714. String category;
  10715. float drawDistance;
  10716. bool enabled;
  10717. /* readonly */
  10718. bool enabledEffective;
  10719. /* readonly */
  10720. uint id;
  10721. /* readonly */
  10722. bool inView;
  10723. uint lightMask;
  10724. float lodBias;
  10725. Material material;
  10726. Array<Material> materials;
  10727. uint maxLights;
  10728. Model model;
  10729. /* readonly */
  10730. Node node;
  10731. /* readonly */
  10732. uint numAttributes;
  10733. /* readonly */
  10734. uint numGeometries;
  10735. ObjectAnimation objectAnimation;
  10736. bool occludee;
  10737. bool occluder;
  10738. /* readonly */
  10739. int refs;
  10740. /* readonly */
  10741. bool replicated;
  10742. float shadowDistance;
  10743. uint shadowMask;
  10744. bool temporary;
  10745. /* readonly */
  10746. StringHash type;
  10747. /* readonly */
  10748. String typeName;
  10749. uint viewMask;
  10750. /* readonly */
  10751. int weakRefs;
  10752. /* readonly */
  10753. BoundingBox worldBoundingBox;
  10754. /* readonly */
  10755. Zone zone;
  10756. uint zoneMask;
  10757. };
  10758. class Slider
  10759. {
  10760. public:
  10761. Slider();
  10762. Slider(const String&in);
  10763. // Methods:
  10764. void AddChild(UIElement);
  10765. void AddTag(const String&);
  10766. void AddTags(const String&, int8 = ';');
  10767. void ApplyAttributes();
  10768. void BringToFront();
  10769. void ChangeValue(float);
  10770. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10771. void DisableLayoutUpdate();
  10772. IntVector2 ElementToScreen(const IntVector2&);
  10773. void EnableLayoutUpdate();
  10774. uint FindChild(UIElement) const;
  10775. Variant GetAttribute(const String&) const;
  10776. ValueAnimation GetAttributeAnimation(const String&) const;
  10777. float GetAttributeAnimationSpeed(const String&) const;
  10778. float GetAttributeAnimationTime(const String&) const;
  10779. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10780. Variant GetAttributeDefault(const String&) const;
  10781. UIElement GetChild(const String&, bool = false) const;
  10782. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10783. Array<UIElement> GetChildren(bool = false) const;
  10784. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10785. UIElement GetElementEventSender() const;
  10786. bool GetInterceptNetworkUpdate(const String&) const;
  10787. uint GetNumChildren(bool) const;
  10788. bool HasSubscribedToEvent(Object, const String&);
  10789. bool HasSubscribedToEvent(const String&);
  10790. bool HasTag(const String&) const;
  10791. void InsertChild(uint, UIElement);
  10792. bool IsChildOf(UIElement) const;
  10793. bool IsInside(IntVector2, bool);
  10794. bool IsInsideCombined(IntVector2, bool);
  10795. bool Load(File);
  10796. bool Load(VectorBuffer&);
  10797. UIElement LoadChildXML(XMLFile, XMLFile);
  10798. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10799. bool LoadJSON(const JSONValue&);
  10800. bool LoadXML(File);
  10801. bool LoadXML(VectorBuffer&);
  10802. bool LoadXML(XMLFile, XMLFile);
  10803. bool LoadXML(const XMLElement&, XMLFile);
  10804. bool LoadXML(const XMLElement&);
  10805. void MarkNetworkUpdate() const;
  10806. void Remove();
  10807. void RemoveAllChildren();
  10808. void RemoveAllTags();
  10809. void RemoveAttributeAnimation(const String&);
  10810. void RemoveChild(UIElement, uint = 0);
  10811. void RemoveChild(uint);
  10812. void RemoveInstanceDefault();
  10813. void RemoveObjectAnimation();
  10814. bool RemoveTag(const String&);
  10815. void ResetDeepEnabled();
  10816. void ResetToDefault();
  10817. bool Save(File) const;
  10818. bool Save(VectorBuffer&) const;
  10819. bool SaveJSON(JSONValue&) const;
  10820. bool SaveXML(File, const String& = "\t");
  10821. bool SaveXML(VectorBuffer&, const String& = "\t");
  10822. bool SaveXML(XMLElement&) const;
  10823. IntVector2 ScreenToElement(const IntVector2&);
  10824. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10825. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10826. void SetAnimationTime(float);
  10827. bool SetAttribute(const String&, const Variant&);
  10828. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10829. void SetAttributeAnimationSpeed(const String&, float);
  10830. void SetAttributeAnimationTime(const String&, float);
  10831. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10832. void SetDeepEnabled(bool);
  10833. void SetDisabledOffset(int, int);
  10834. void SetEnabledRecursive(bool);
  10835. void SetFixedHeight(int);
  10836. void SetFixedSize(int, int);
  10837. void SetFixedWidth(int);
  10838. void SetFullImageRect();
  10839. void SetHoverOffset(int, int);
  10840. void SetInterceptNetworkUpdate(const String&, bool);
  10841. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10842. void SetMaxAnchor(float, float);
  10843. void SetMaxSize(int, int);
  10844. void SetMinAnchor(float, float);
  10845. void SetMinSize(int, int);
  10846. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10847. void SetPivot(float, float);
  10848. void SetPosition(int, int);
  10849. void SetSize(int, int);
  10850. bool SetStyle(const String&, XMLFile = null);
  10851. bool SetStyle(const XMLElement&);
  10852. bool SetStyleAuto(XMLFile = null);
  10853. void UpdateLayout();
  10854. const Variant& GetVar(const StringHash&);
  10855. // Properties:
  10856. bool animationEnabled;
  10857. /* readonly */
  10858. Array<Variant> attributeDefaults;
  10859. /* readonly */
  10860. Array<AttributeInfo> attributeInfos;
  10861. Array<Variant> attributes;
  10862. BlendMode blendMode;
  10863. IntRect border;
  10864. bool bringToBack;
  10865. bool bringToFront;
  10866. /* readonly */
  10867. String category;
  10868. /* readonly */
  10869. IntVector2 childOffset;
  10870. /* readonly */
  10871. Array<UIElement> children;
  10872. IntRect clipBorder;
  10873. bool clipChildren;
  10874. /* writeonly */
  10875. Color color;
  10876. /* readonly */
  10877. bool colorGradient;
  10878. Array<Color> colors;
  10879. /* readonly */
  10880. IntRect combinedScreenRect;
  10881. XMLFile defaultStyle;
  10882. /* readonly */
  10883. float derivedOpacity;
  10884. IntVector2 disabledOffset;
  10885. /* readonly */
  10886. uint dragButtonCombo;
  10887. /* readonly */
  10888. int dragButtonCount;
  10889. uint dragDropMode;
  10890. bool editable;
  10891. bool elementEventSender;
  10892. bool enableAnchor;
  10893. bool enabled;
  10894. /* readonly */
  10895. bool enabledSelf;
  10896. /* readonly */
  10897. bool fixedHeight;
  10898. /* readonly */
  10899. bool fixedSize;
  10900. /* readonly */
  10901. bool fixedWidth;
  10902. bool focus;
  10903. FocusMode focusMode;
  10904. int height;
  10905. HorizontalAlignment horizontalAlignment;
  10906. IntVector2 hoverOffset;
  10907. /* readonly */
  10908. bool hovering;
  10909. IntRect imageBorder;
  10910. IntRect imageRect;
  10911. int indent;
  10912. int indentSpacing;
  10913. /* readonly */
  10914. int indentWidth;
  10915. bool internal;
  10916. /* readonly */
  10917. BorderImage knob;
  10918. IntRect layoutBorder;
  10919. Vector2 layoutFlexScale;
  10920. LayoutMode layoutMode;
  10921. int layoutSpacing;
  10922. Material material;
  10923. Vector2 maxAnchor;
  10924. int maxHeight;
  10925. IntVector2 maxOffset;
  10926. IntVector2 maxSize;
  10927. int maxWidth;
  10928. Vector2 minAnchor;
  10929. int minHeight;
  10930. IntVector2 minOffset;
  10931. IntVector2 minSize;
  10932. int minWidth;
  10933. String name;
  10934. /* readonly */
  10935. uint numAllChildren;
  10936. /* readonly */
  10937. uint numAttributes;
  10938. /* readonly */
  10939. uint numChildren;
  10940. ObjectAnimation objectAnimation;
  10941. float opacity;
  10942. Orientation orientation;
  10943. UIElement parent;
  10944. Vector2 pivot;
  10945. IntVector2 position;
  10946. int priority;
  10947. float range;
  10948. /* readonly */
  10949. int refs;
  10950. float repeatRate;
  10951. /* readonly */
  10952. UIElement root;
  10953. /* readonly */
  10954. IntVector2 screenPosition;
  10955. bool selected;
  10956. IntVector2 size;
  10957. bool sortChildren;
  10958. String style;
  10959. /* readonly */
  10960. Array<String> tags;
  10961. bool temporary;
  10962. Texture texture;
  10963. bool tiled;
  10964. TraversalMode traversalMode;
  10965. /* readonly */
  10966. StringHash type;
  10967. /* readonly */
  10968. String typeName;
  10969. bool useDerivedOpacity;
  10970. float value;
  10971. /* readonly */
  10972. VariantMap vars;
  10973. VerticalAlignment verticalAlignment;
  10974. bool visible;
  10975. /* readonly */
  10976. bool visibleEffective;
  10977. /* readonly */
  10978. int weakRefs;
  10979. int width;
  10980. };
  10981. class SmoothedTransform
  10982. {
  10983. public:
  10984. // Methods:
  10985. void ApplyAttributes();
  10986. void DrawDebugGeometry(DebugRenderer, bool);
  10987. Variant GetAttribute(const String&) const;
  10988. ValueAnimation GetAttributeAnimation(const String&) const;
  10989. float GetAttributeAnimationSpeed(const String&) const;
  10990. float GetAttributeAnimationTime(const String&) const;
  10991. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10992. Variant GetAttributeDefault(const String&) const;
  10993. bool GetInterceptNetworkUpdate(const String&) const;
  10994. bool HasSubscribedToEvent(Object, const String&);
  10995. bool HasSubscribedToEvent(const String&);
  10996. bool Load(File);
  10997. bool Load(VectorBuffer&);
  10998. bool LoadJSON(const JSONValue&);
  10999. bool LoadXML(const XMLElement&);
  11000. void MarkNetworkUpdate() const;
  11001. void Remove();
  11002. void RemoveAttributeAnimation(const String&);
  11003. void RemoveInstanceDefault();
  11004. void RemoveObjectAnimation();
  11005. void ResetToDefault();
  11006. bool Save(File) const;
  11007. bool Save(VectorBuffer&) const;
  11008. bool SaveJSON(JSONValue&) const;
  11009. bool SaveXML(XMLElement&) const;
  11010. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11011. void SetAnimationTime(float);
  11012. bool SetAttribute(const String&, const Variant&);
  11013. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11014. void SetAttributeAnimationSpeed(const String&, float);
  11015. void SetAttributeAnimationTime(const String&, float);
  11016. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11017. void SetInterceptNetworkUpdate(const String&, bool);
  11018. void Update(float, float);
  11019. // Properties:
  11020. bool animationEnabled;
  11021. /* readonly */
  11022. Array<Variant> attributeDefaults;
  11023. /* readonly */
  11024. Array<AttributeInfo> attributeInfos;
  11025. Array<Variant> attributes;
  11026. /* readonly */
  11027. String category;
  11028. bool enabled;
  11029. /* readonly */
  11030. bool enabledEffective;
  11031. /* readonly */
  11032. uint id;
  11033. /* readonly */
  11034. bool inProgress;
  11035. /* readonly */
  11036. Node node;
  11037. /* readonly */
  11038. uint numAttributes;
  11039. ObjectAnimation objectAnimation;
  11040. /* readonly */
  11041. int refs;
  11042. /* readonly */
  11043. bool replicated;
  11044. Vector3 targetPosition;
  11045. Quaternion targetRotation;
  11046. Vector3 targetWorldPosition;
  11047. Quaternion targetWorldRotation;
  11048. bool temporary;
  11049. /* readonly */
  11050. StringHash type;
  11051. /* readonly */
  11052. String typeName;
  11053. /* readonly */
  11054. int weakRefs;
  11055. };
  11056. class Sound
  11057. {
  11058. public:
  11059. Sound();
  11060. Sound(const String&in);
  11061. // Methods:
  11062. void AddMetadata(const String&, const Variant&);
  11063. bool HasSubscribedToEvent(Object, const String&);
  11064. bool HasSubscribedToEvent(const String&);
  11065. bool Load(File);
  11066. bool Load(VectorBuffer&);
  11067. bool Load(const String&);
  11068. void RemoveAllMetadata();
  11069. void RemoveMetadata(const String&);
  11070. bool Save(File) const;
  11071. bool Save(VectorBuffer&) const;
  11072. bool Save(const String&) const;
  11073. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11074. // Properties:
  11075. /* readonly */
  11076. String category;
  11077. /* readonly */
  11078. bool compressed;
  11079. /* readonly */
  11080. float frequency;
  11081. /* readonly */
  11082. bool hasMetadata;
  11083. /* readonly */
  11084. float length;
  11085. bool looped;
  11086. /* readonly */
  11087. uint memoryUse;
  11088. Array<Variant> metadata;
  11089. String name;
  11090. /* readonly */
  11091. int refs;
  11092. /* readonly */
  11093. uint sampleSize;
  11094. /* readonly */
  11095. bool sixteenBit;
  11096. /* readonly */
  11097. bool stereo;
  11098. /* readonly */
  11099. StringHash type;
  11100. /* readonly */
  11101. String typeName;
  11102. /* readonly */
  11103. uint useTimer;
  11104. /* readonly */
  11105. int weakRefs;
  11106. };
  11107. class SoundListener
  11108. {
  11109. public:
  11110. // Methods:
  11111. void ApplyAttributes();
  11112. void DrawDebugGeometry(DebugRenderer, bool);
  11113. Variant GetAttribute(const String&) const;
  11114. ValueAnimation GetAttributeAnimation(const String&) const;
  11115. float GetAttributeAnimationSpeed(const String&) const;
  11116. float GetAttributeAnimationTime(const String&) const;
  11117. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11118. Variant GetAttributeDefault(const String&) const;
  11119. bool GetInterceptNetworkUpdate(const String&) const;
  11120. bool HasSubscribedToEvent(Object, const String&);
  11121. bool HasSubscribedToEvent(const String&);
  11122. bool Load(File);
  11123. bool Load(VectorBuffer&);
  11124. bool LoadJSON(const JSONValue&);
  11125. bool LoadXML(const XMLElement&);
  11126. void MarkNetworkUpdate() const;
  11127. void Remove();
  11128. void RemoveAttributeAnimation(const String&);
  11129. void RemoveInstanceDefault();
  11130. void RemoveObjectAnimation();
  11131. void ResetToDefault();
  11132. bool Save(File) const;
  11133. bool Save(VectorBuffer&) const;
  11134. bool SaveJSON(JSONValue&) const;
  11135. bool SaveXML(XMLElement&) const;
  11136. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11137. void SetAnimationTime(float);
  11138. bool SetAttribute(const String&, const Variant&);
  11139. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11140. void SetAttributeAnimationSpeed(const String&, float);
  11141. void SetAttributeAnimationTime(const String&, float);
  11142. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11143. void SetInterceptNetworkUpdate(const String&, bool);
  11144. // Properties:
  11145. bool animationEnabled;
  11146. /* readonly */
  11147. Array<Variant> attributeDefaults;
  11148. /* readonly */
  11149. Array<AttributeInfo> attributeInfos;
  11150. Array<Variant> attributes;
  11151. /* readonly */
  11152. String category;
  11153. bool enabled;
  11154. /* readonly */
  11155. bool enabledEffective;
  11156. /* readonly */
  11157. uint id;
  11158. /* readonly */
  11159. Node node;
  11160. /* readonly */
  11161. uint numAttributes;
  11162. ObjectAnimation objectAnimation;
  11163. /* readonly */
  11164. int refs;
  11165. /* readonly */
  11166. bool replicated;
  11167. bool temporary;
  11168. /* readonly */
  11169. StringHash type;
  11170. /* readonly */
  11171. String typeName;
  11172. /* readonly */
  11173. int weakRefs;
  11174. };
  11175. class SoundSource
  11176. {
  11177. public:
  11178. SoundSource();
  11179. // Methods:
  11180. void ApplyAttributes();
  11181. void DrawDebugGeometry(DebugRenderer, bool);
  11182. Variant GetAttribute(const String&) const;
  11183. ValueAnimation GetAttributeAnimation(const String&) const;
  11184. float GetAttributeAnimationSpeed(const String&) const;
  11185. float GetAttributeAnimationTime(const String&) const;
  11186. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11187. Variant GetAttributeDefault(const String&) const;
  11188. bool GetInterceptNetworkUpdate(const String&) const;
  11189. bool HasSubscribedToEvent(Object, const String&);
  11190. bool HasSubscribedToEvent(const String&);
  11191. bool Load(File);
  11192. bool Load(VectorBuffer&);
  11193. bool LoadJSON(const JSONValue&);
  11194. bool LoadXML(const XMLElement&);
  11195. void MarkNetworkUpdate() const;
  11196. void Play(Sound);
  11197. void Play(Sound, float);
  11198. void Play(Sound, float, float);
  11199. void Play(Sound, float, float, float);
  11200. void Remove();
  11201. void RemoveAttributeAnimation(const String&);
  11202. void RemoveInstanceDefault();
  11203. void RemoveObjectAnimation();
  11204. void ResetToDefault();
  11205. bool Save(File) const;
  11206. bool Save(VectorBuffer&) const;
  11207. bool SaveJSON(JSONValue&) const;
  11208. bool SaveXML(XMLElement&) const;
  11209. void Seek(float);
  11210. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11211. void SetAnimationTime(float);
  11212. bool SetAttribute(const String&, const Variant&);
  11213. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11214. void SetAttributeAnimationSpeed(const String&, float);
  11215. void SetAttributeAnimationTime(const String&, float);
  11216. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11217. void SetInterceptNetworkUpdate(const String&, bool);
  11218. void Stop();
  11219. // Properties:
  11220. bool animationEnabled;
  11221. /* readonly */
  11222. float attenuation;
  11223. /* readonly */
  11224. Array<Variant> attributeDefaults;
  11225. /* readonly */
  11226. Array<AttributeInfo> attributeInfos;
  11227. Array<Variant> attributes;
  11228. AutoRemoveMode autoRemoveMode;
  11229. /* readonly */
  11230. String category;
  11231. bool enabled;
  11232. /* readonly */
  11233. bool enabledEffective;
  11234. float frequency;
  11235. float gain;
  11236. /* readonly */
  11237. uint id;
  11238. /* readonly */
  11239. Node node;
  11240. /* readonly */
  11241. uint numAttributes;
  11242. ObjectAnimation objectAnimation;
  11243. float panning;
  11244. /* readonly */
  11245. bool playing;
  11246. /* readonly */
  11247. int refs;
  11248. /* readonly */
  11249. bool replicated;
  11250. /* readonly */
  11251. Sound sound;
  11252. String soundType;
  11253. bool temporary;
  11254. /* readonly */
  11255. float timePosition;
  11256. /* readonly */
  11257. StringHash type;
  11258. /* readonly */
  11259. String typeName;
  11260. /* readonly */
  11261. int weakRefs;
  11262. };
  11263. class SoundSource3D
  11264. {
  11265. public:
  11266. // Methods:
  11267. void ApplyAttributes();
  11268. void DrawDebugGeometry(DebugRenderer, bool);
  11269. Variant GetAttribute(const String&) const;
  11270. ValueAnimation GetAttributeAnimation(const String&) const;
  11271. float GetAttributeAnimationSpeed(const String&) const;
  11272. float GetAttributeAnimationTime(const String&) const;
  11273. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11274. Variant GetAttributeDefault(const String&) const;
  11275. bool GetInterceptNetworkUpdate(const String&) const;
  11276. bool HasSubscribedToEvent(Object, const String&);
  11277. bool HasSubscribedToEvent(const String&);
  11278. bool Load(File);
  11279. bool Load(VectorBuffer&);
  11280. bool LoadJSON(const JSONValue&);
  11281. bool LoadXML(const XMLElement&);
  11282. void MarkNetworkUpdate() const;
  11283. void Play(Sound);
  11284. void Play(Sound, float);
  11285. void Play(Sound, float, float);
  11286. void Play(Sound, float, float, float);
  11287. void Remove();
  11288. void RemoveAttributeAnimation(const String&);
  11289. void RemoveInstanceDefault();
  11290. void RemoveObjectAnimation();
  11291. void ResetToDefault();
  11292. bool Save(File) const;
  11293. bool Save(VectorBuffer&) const;
  11294. bool SaveJSON(JSONValue&) const;
  11295. bool SaveXML(XMLElement&) const;
  11296. void Seek(float);
  11297. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11298. void SetAngleAttenuation(float, float);
  11299. void SetAnimationTime(float);
  11300. bool SetAttribute(const String&, const Variant&);
  11301. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11302. void SetAttributeAnimationSpeed(const String&, float);
  11303. void SetAttributeAnimationTime(const String&, float);
  11304. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11305. void SetDistanceAttenuation(float, float, float);
  11306. void SetInterceptNetworkUpdate(const String&, bool);
  11307. void Stop();
  11308. // Properties:
  11309. bool animationEnabled;
  11310. /* readonly */
  11311. float attenuation;
  11312. /* readonly */
  11313. Array<Variant> attributeDefaults;
  11314. /* readonly */
  11315. Array<AttributeInfo> attributeInfos;
  11316. Array<Variant> attributes;
  11317. AutoRemoveMode autoRemoveMode;
  11318. /* readonly */
  11319. String category;
  11320. bool enabled;
  11321. /* readonly */
  11322. bool enabledEffective;
  11323. float farDistance;
  11324. float frequency;
  11325. float gain;
  11326. /* readonly */
  11327. uint id;
  11328. float innerAngle;
  11329. float nearDistance;
  11330. /* readonly */
  11331. Node node;
  11332. /* readonly */
  11333. uint numAttributes;
  11334. ObjectAnimation objectAnimation;
  11335. float outerAngle;
  11336. float panning;
  11337. /* readonly */
  11338. bool playing;
  11339. /* readonly */
  11340. int refs;
  11341. /* readonly */
  11342. bool replicated;
  11343. float rolloffFactor;
  11344. /* readonly */
  11345. Sound sound;
  11346. String soundType;
  11347. bool temporary;
  11348. /* readonly */
  11349. float timePosition;
  11350. /* readonly */
  11351. StringHash type;
  11352. /* readonly */
  11353. String typeName;
  11354. /* readonly */
  11355. int weakRefs;
  11356. };
  11357. class Sphere
  11358. {
  11359. public:
  11360. Sphere();
  11361. Sphere(const Sphere&in);
  11362. Sphere(const Vector3&in, float);
  11363. Sphere(const BoundingBox&in);
  11364. Sphere(const Frustum&in);
  11365. Sphere(const Polyhedron&in);
  11366. // Methods:
  11367. void Clear();
  11368. void Define(const BoundingBox&);
  11369. void Define(const Frustum&);
  11370. void Define(const Polyhedron&);
  11371. void Define(const Sphere&);
  11372. void Define(const Vector3&, float);
  11373. bool Defined() const;
  11374. float Distance(const Vector3&) const;
  11375. Vector3 GetLocalPoint(float, float) const;
  11376. Vector3 GetPoint(float, float) const;
  11377. Intersection IsInside(const BoundingBox&) const;
  11378. Intersection IsInside(const Sphere&) const;
  11379. Intersection IsInside(const Vector3&) const;
  11380. Intersection IsInsideFast(const BoundingBox&) const;
  11381. Intersection IsInsideFast(const Sphere&) const;
  11382. void Merge(const BoundingBox&);
  11383. void Merge(const Frustum&);
  11384. void Merge(const Sphere&);
  11385. void Merge(const Vector3&);
  11386. // Properties:
  11387. Vector3 center;
  11388. float radius;
  11389. };
  11390. class Spline
  11391. {
  11392. public:
  11393. Spline();
  11394. Spline(InterpolationMode);
  11395. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  11396. Spline(const Spline&in);
  11397. // Methods:
  11398. void AddKnot(const Variant&);
  11399. void AddKnot(const Variant&, uint);
  11400. void Clear();
  11401. Variant GetPoint(float);
  11402. void RemoveKnot();
  11403. void RemoveKnot(uint);
  11404. // Properties:
  11405. InterpolationMode interpolationMode;
  11406. Array<Variant> knot;
  11407. Array<Variant> knots;
  11408. };
  11409. class SplinePath
  11410. {
  11411. public:
  11412. // Methods:
  11413. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  11414. void ApplyAttributes();
  11415. void ClearControlPoints();
  11416. void DrawDebugGeometry(DebugRenderer, bool);
  11417. Variant GetAttribute(const String&) const;
  11418. ValueAnimation GetAttributeAnimation(const String&) const;
  11419. float GetAttributeAnimationSpeed(const String&) const;
  11420. float GetAttributeAnimationTime(const String&) const;
  11421. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11422. Variant GetAttributeDefault(const String&) const;
  11423. bool GetInterceptNetworkUpdate(const String&) const;
  11424. Vector3 GetPoint(float) const;
  11425. Vector3 GetPosition() const;
  11426. bool HasSubscribedToEvent(Object, const String&);
  11427. bool HasSubscribedToEvent(const String&);
  11428. bool Load(File);
  11429. bool Load(VectorBuffer&);
  11430. bool LoadJSON(const JSONValue&);
  11431. bool LoadXML(const XMLElement&);
  11432. void MarkNetworkUpdate() const;
  11433. void Move(float);
  11434. void Remove();
  11435. void RemoveAttributeAnimation(const String&);
  11436. void RemoveControlPoint(Node);
  11437. void RemoveInstanceDefault();
  11438. void RemoveObjectAnimation();
  11439. void Reset();
  11440. void ResetToDefault();
  11441. bool Save(File) const;
  11442. bool Save(VectorBuffer&) const;
  11443. bool SaveJSON(JSONValue&) const;
  11444. bool SaveXML(XMLElement&) const;
  11445. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11446. void SetAnimationTime(float);
  11447. bool SetAttribute(const String&, const Variant&);
  11448. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11449. void SetAttributeAnimationSpeed(const String&, float);
  11450. void SetAttributeAnimationTime(const String&, float);
  11451. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11452. void SetInterceptNetworkUpdate(const String&, bool);
  11453. void SetPosition(float);
  11454. // Properties:
  11455. bool animationEnabled;
  11456. /* readonly */
  11457. Array<Variant> attributeDefaults;
  11458. /* readonly */
  11459. Array<AttributeInfo> attributeInfos;
  11460. Array<Variant> attributes;
  11461. /* readonly */
  11462. String category;
  11463. Node controlledNode;
  11464. bool enabled;
  11465. /* readonly */
  11466. bool enabledEffective;
  11467. /* readonly */
  11468. uint id;
  11469. InterpolationMode interpolationMode;
  11470. /* readonly */
  11471. bool isFinished;
  11472. /* readonly */
  11473. float length;
  11474. /* readonly */
  11475. Node node;
  11476. /* readonly */
  11477. uint numAttributes;
  11478. ObjectAnimation objectAnimation;
  11479. /* readonly */
  11480. int refs;
  11481. /* readonly */
  11482. bool replicated;
  11483. float speed;
  11484. bool temporary;
  11485. /* readonly */
  11486. StringHash type;
  11487. /* readonly */
  11488. String typeName;
  11489. /* readonly */
  11490. int weakRefs;
  11491. };
  11492. class Sprite
  11493. {
  11494. public:
  11495. Sprite();
  11496. Sprite(const String&in);
  11497. // Methods:
  11498. void AddChild(UIElement);
  11499. void AddTag(const String&);
  11500. void AddTags(const String&, int8 = ';');
  11501. void ApplyAttributes();
  11502. void BringToFront();
  11503. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11504. void DisableLayoutUpdate();
  11505. IntVector2 ElementToScreen(const IntVector2&);
  11506. void EnableLayoutUpdate();
  11507. uint FindChild(UIElement) const;
  11508. Variant GetAttribute(const String&) const;
  11509. ValueAnimation GetAttributeAnimation(const String&) const;
  11510. float GetAttributeAnimationSpeed(const String&) const;
  11511. float GetAttributeAnimationTime(const String&) const;
  11512. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11513. Variant GetAttributeDefault(const String&) const;
  11514. UIElement GetChild(const String&, bool = false) const;
  11515. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11516. Array<UIElement> GetChildren(bool = false) const;
  11517. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11518. UIElement GetElementEventSender() const;
  11519. bool GetInterceptNetworkUpdate(const String&) const;
  11520. uint GetNumChildren(bool) const;
  11521. bool HasSubscribedToEvent(Object, const String&);
  11522. bool HasSubscribedToEvent(const String&);
  11523. bool HasTag(const String&) const;
  11524. void InsertChild(uint, UIElement);
  11525. bool IsChildOf(UIElement) const;
  11526. bool IsInside(IntVector2, bool);
  11527. bool IsInsideCombined(IntVector2, bool);
  11528. bool Load(File);
  11529. bool Load(VectorBuffer&);
  11530. UIElement LoadChildXML(XMLFile, XMLFile);
  11531. UIElement LoadChildXML(const XMLElement&, XMLFile);
  11532. bool LoadJSON(const JSONValue&);
  11533. bool LoadXML(File);
  11534. bool LoadXML(VectorBuffer&);
  11535. bool LoadXML(XMLFile, XMLFile);
  11536. bool LoadXML(const XMLElement&, XMLFile);
  11537. bool LoadXML(const XMLElement&);
  11538. void MarkNetworkUpdate() const;
  11539. void Remove();
  11540. void RemoveAllChildren();
  11541. void RemoveAllTags();
  11542. void RemoveAttributeAnimation(const String&);
  11543. void RemoveChild(UIElement, uint = 0);
  11544. void RemoveChild(uint);
  11545. void RemoveInstanceDefault();
  11546. void RemoveObjectAnimation();
  11547. bool RemoveTag(const String&);
  11548. void ResetDeepEnabled();
  11549. void ResetToDefault();
  11550. bool Save(File) const;
  11551. bool Save(VectorBuffer&) const;
  11552. bool SaveJSON(JSONValue&) const;
  11553. bool SaveXML(File, const String& = "\t");
  11554. bool SaveXML(VectorBuffer&, const String& = "\t");
  11555. bool SaveXML(XMLElement&) const;
  11556. IntVector2 ScreenToElement(const IntVector2&);
  11557. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11558. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11559. void SetAnimationTime(float);
  11560. bool SetAttribute(const String&, const Variant&);
  11561. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11562. void SetAttributeAnimationSpeed(const String&, float);
  11563. void SetAttributeAnimationTime(const String&, float);
  11564. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11565. void SetDeepEnabled(bool);
  11566. void SetEnabledRecursive(bool);
  11567. void SetFixedHeight(int);
  11568. void SetFixedSize(int, int);
  11569. void SetFixedWidth(int);
  11570. void SetFullImageRect();
  11571. void SetHotSpot(int, int);
  11572. void SetInterceptNetworkUpdate(const String&, bool);
  11573. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11574. void SetMaxAnchor(float, float);
  11575. void SetMaxSize(int, int);
  11576. void SetMinAnchor(float, float);
  11577. void SetMinSize(int, int);
  11578. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11579. void SetPivot(float, float);
  11580. void SetPosition(float, float);
  11581. void SetScale(float);
  11582. void SetScale(float, float);
  11583. void SetSize(int, int);
  11584. bool SetStyle(const String&, XMLFile = null);
  11585. bool SetStyle(const XMLElement&);
  11586. bool SetStyleAuto(XMLFile = null);
  11587. void UpdateLayout();
  11588. const Variant& GetVar(const StringHash&);
  11589. // Properties:
  11590. bool animationEnabled;
  11591. /* readonly */
  11592. Array<Variant> attributeDefaults;
  11593. /* readonly */
  11594. Array<AttributeInfo> attributeInfos;
  11595. Array<Variant> attributes;
  11596. BlendMode blendMode;
  11597. bool bringToBack;
  11598. bool bringToFront;
  11599. /* readonly */
  11600. String category;
  11601. /* readonly */
  11602. IntVector2 childOffset;
  11603. /* readonly */
  11604. Array<UIElement> children;
  11605. IntRect clipBorder;
  11606. bool clipChildren;
  11607. /* writeonly */
  11608. Color color;
  11609. /* readonly */
  11610. bool colorGradient;
  11611. Array<Color> colors;
  11612. /* readonly */
  11613. IntRect combinedScreenRect;
  11614. XMLFile defaultStyle;
  11615. /* readonly */
  11616. float derivedOpacity;
  11617. /* readonly */
  11618. uint dragButtonCombo;
  11619. /* readonly */
  11620. int dragButtonCount;
  11621. uint dragDropMode;
  11622. bool editable;
  11623. bool elementEventSender;
  11624. bool enableAnchor;
  11625. bool enabled;
  11626. /* readonly */
  11627. bool enabledSelf;
  11628. /* readonly */
  11629. bool fixedHeight;
  11630. /* readonly */
  11631. bool fixedSize;
  11632. /* readonly */
  11633. bool fixedWidth;
  11634. bool focus;
  11635. FocusMode focusMode;
  11636. int height;
  11637. HorizontalAlignment horizontalAlignment;
  11638. IntVector2 hotSpot;
  11639. /* readonly */
  11640. bool hovering;
  11641. IntRect imageRect;
  11642. int indent;
  11643. int indentSpacing;
  11644. /* readonly */
  11645. int indentWidth;
  11646. bool internal;
  11647. IntRect layoutBorder;
  11648. Vector2 layoutFlexScale;
  11649. LayoutMode layoutMode;
  11650. int layoutSpacing;
  11651. Vector2 maxAnchor;
  11652. int maxHeight;
  11653. IntVector2 maxOffset;
  11654. IntVector2 maxSize;
  11655. int maxWidth;
  11656. Vector2 minAnchor;
  11657. int minHeight;
  11658. IntVector2 minOffset;
  11659. IntVector2 minSize;
  11660. int minWidth;
  11661. String name;
  11662. /* readonly */
  11663. uint numAllChildren;
  11664. /* readonly */
  11665. uint numAttributes;
  11666. /* readonly */
  11667. uint numChildren;
  11668. ObjectAnimation objectAnimation;
  11669. float opacity;
  11670. UIElement parent;
  11671. Vector2 pivot;
  11672. Vector2 position;
  11673. int priority;
  11674. /* readonly */
  11675. int refs;
  11676. /* readonly */
  11677. UIElement root;
  11678. float rotation;
  11679. Vector2 scale;
  11680. /* readonly */
  11681. IntVector2 screenPosition;
  11682. bool selected;
  11683. IntVector2 size;
  11684. bool sortChildren;
  11685. String style;
  11686. /* readonly */
  11687. Array<String> tags;
  11688. bool temporary;
  11689. Texture texture;
  11690. TraversalMode traversalMode;
  11691. /* readonly */
  11692. StringHash type;
  11693. /* readonly */
  11694. String typeName;
  11695. bool useDerivedOpacity;
  11696. /* readonly */
  11697. VariantMap vars;
  11698. VerticalAlignment verticalAlignment;
  11699. bool visible;
  11700. /* readonly */
  11701. bool visibleEffective;
  11702. /* readonly */
  11703. int weakRefs;
  11704. int width;
  11705. };
  11706. class Sprite2D
  11707. {
  11708. public:
  11709. Sprite2D();
  11710. Sprite2D(const String&in);
  11711. // Methods:
  11712. bool HasSubscribedToEvent(Object, const String&);
  11713. bool HasSubscribedToEvent(const String&);
  11714. bool Load(File);
  11715. bool Load(VectorBuffer&);
  11716. bool Load(const String&);
  11717. bool Save(File) const;
  11718. bool Save(VectorBuffer&) const;
  11719. bool Save(const String&) const;
  11720. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11721. // Properties:
  11722. /* readonly */
  11723. String category;
  11724. Vector2 hotSpot;
  11725. /* readonly */
  11726. uint memoryUse;
  11727. String name;
  11728. IntVector2 offset;
  11729. IntRect rectangle;
  11730. /* readonly */
  11731. int refs;
  11732. Texture2D texture;
  11733. float textureEdgeOffset;
  11734. /* readonly */
  11735. StringHash type;
  11736. /* readonly */
  11737. String typeName;
  11738. /* readonly */
  11739. uint useTimer;
  11740. /* readonly */
  11741. int weakRefs;
  11742. };
  11743. class SpriteSheet2D
  11744. {
  11745. public:
  11746. SpriteSheet2D();
  11747. SpriteSheet2D(const String&in);
  11748. // Methods:
  11749. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  11750. Sprite2D GetSprite(const String&);
  11751. bool HasSubscribedToEvent(Object, const String&);
  11752. bool HasSubscribedToEvent(const String&);
  11753. bool Load(File);
  11754. bool Load(VectorBuffer&);
  11755. bool Load(const String&);
  11756. bool Save(File) const;
  11757. bool Save(VectorBuffer&) const;
  11758. bool Save(const String&) const;
  11759. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11760. // Properties:
  11761. /* readonly */
  11762. String category;
  11763. /* readonly */
  11764. uint memoryUse;
  11765. String name;
  11766. /* readonly */
  11767. int refs;
  11768. Texture2D texture;
  11769. /* readonly */
  11770. StringHash type;
  11771. /* readonly */
  11772. String typeName;
  11773. /* readonly */
  11774. uint useTimer;
  11775. /* readonly */
  11776. int weakRefs;
  11777. };
  11778. class StaticModel
  11779. {
  11780. public:
  11781. // Methods:
  11782. void ApplyAttributes();
  11783. void ApplyMaterialList(const String& = String ( ));
  11784. void DrawDebugGeometry(DebugRenderer, bool);
  11785. Variant GetAttribute(const String&) const;
  11786. ValueAnimation GetAttributeAnimation(const String&) const;
  11787. float GetAttributeAnimationSpeed(const String&) const;
  11788. float GetAttributeAnimationTime(const String&) const;
  11789. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11790. Variant GetAttributeDefault(const String&) const;
  11791. bool GetInterceptNetworkUpdate(const String&) const;
  11792. bool HasSubscribedToEvent(Object, const String&);
  11793. bool HasSubscribedToEvent(const String&);
  11794. bool IsInView(Camera) const;
  11795. bool IsInside(const Vector3&) const;
  11796. bool IsInsideLocal(const Vector3&) const;
  11797. bool Load(File);
  11798. bool Load(VectorBuffer&);
  11799. bool LoadJSON(const JSONValue&);
  11800. bool LoadXML(const XMLElement&);
  11801. void MarkNetworkUpdate() const;
  11802. void Remove();
  11803. void RemoveAttributeAnimation(const String&);
  11804. void RemoveInstanceDefault();
  11805. void RemoveObjectAnimation();
  11806. void ResetToDefault();
  11807. bool Save(File) const;
  11808. bool Save(VectorBuffer&) const;
  11809. bool SaveJSON(JSONValue&) const;
  11810. bool SaveXML(XMLElement&) const;
  11811. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11812. void SetAnimationTime(float);
  11813. bool SetAttribute(const String&, const Variant&);
  11814. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11815. void SetAttributeAnimationSpeed(const String&, float);
  11816. void SetAttributeAnimationTime(const String&, float);
  11817. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11818. void SetInterceptNetworkUpdate(const String&, bool);
  11819. // Properties:
  11820. bool animationEnabled;
  11821. /* readonly */
  11822. Array<Variant> attributeDefaults;
  11823. /* readonly */
  11824. Array<AttributeInfo> attributeInfos;
  11825. Array<Variant> attributes;
  11826. /* readonly */
  11827. BoundingBox boundingBox;
  11828. bool castShadows;
  11829. /* readonly */
  11830. String category;
  11831. float drawDistance;
  11832. bool enabled;
  11833. /* readonly */
  11834. bool enabledEffective;
  11835. /* readonly */
  11836. uint id;
  11837. /* readonly */
  11838. bool inView;
  11839. uint lightMask;
  11840. float lodBias;
  11841. Material material;
  11842. Array<Material> materials;
  11843. uint maxLights;
  11844. Model model;
  11845. /* readonly */
  11846. Node node;
  11847. /* readonly */
  11848. uint numAttributes;
  11849. /* readonly */
  11850. uint numGeometries;
  11851. ObjectAnimation objectAnimation;
  11852. bool occludee;
  11853. bool occluder;
  11854. uint occlusionLodLevel;
  11855. /* readonly */
  11856. int refs;
  11857. /* readonly */
  11858. bool replicated;
  11859. float shadowDistance;
  11860. uint shadowMask;
  11861. bool temporary;
  11862. /* readonly */
  11863. StringHash type;
  11864. /* readonly */
  11865. String typeName;
  11866. uint viewMask;
  11867. /* readonly */
  11868. int weakRefs;
  11869. /* readonly */
  11870. BoundingBox worldBoundingBox;
  11871. uint zoneMask;
  11872. };
  11873. class StaticModelGroup
  11874. {
  11875. public:
  11876. // Methods:
  11877. void AddInstanceNode(Node);
  11878. void ApplyAttributes();
  11879. void ApplyMaterialList(const String& = String ( ));
  11880. void DrawDebugGeometry(DebugRenderer, bool);
  11881. Variant GetAttribute(const String&) const;
  11882. ValueAnimation GetAttributeAnimation(const String&) const;
  11883. float GetAttributeAnimationSpeed(const String&) const;
  11884. float GetAttributeAnimationTime(const String&) const;
  11885. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11886. Variant GetAttributeDefault(const String&) const;
  11887. bool GetInterceptNetworkUpdate(const String&) const;
  11888. bool HasSubscribedToEvent(Object, const String&);
  11889. bool HasSubscribedToEvent(const String&);
  11890. bool IsInView(Camera) const;
  11891. bool Load(File);
  11892. bool Load(VectorBuffer&);
  11893. bool LoadJSON(const JSONValue&);
  11894. bool LoadXML(const XMLElement&);
  11895. void MarkNetworkUpdate() const;
  11896. void Remove();
  11897. void RemoveAllInstanceNodes();
  11898. void RemoveAttributeAnimation(const String&);
  11899. void RemoveInstanceDefault();
  11900. void RemoveInstanceNode(Node);
  11901. void RemoveObjectAnimation();
  11902. void ResetToDefault();
  11903. bool Save(File) const;
  11904. bool Save(VectorBuffer&) const;
  11905. bool SaveJSON(JSONValue&) const;
  11906. bool SaveXML(XMLElement&) const;
  11907. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11908. void SetAnimationTime(float);
  11909. bool SetAttribute(const String&, const Variant&);
  11910. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11911. void SetAttributeAnimationSpeed(const String&, float);
  11912. void SetAttributeAnimationTime(const String&, float);
  11913. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11914. void SetInterceptNetworkUpdate(const String&, bool);
  11915. // Properties:
  11916. bool animationEnabled;
  11917. /* readonly */
  11918. Array<Variant> attributeDefaults;
  11919. /* readonly */
  11920. Array<AttributeInfo> attributeInfos;
  11921. Array<Variant> attributes;
  11922. /* readonly */
  11923. BoundingBox boundingBox;
  11924. bool castShadows;
  11925. /* readonly */
  11926. String category;
  11927. float drawDistance;
  11928. bool enabled;
  11929. /* readonly */
  11930. bool enabledEffective;
  11931. /* readonly */
  11932. uint id;
  11933. /* readonly */
  11934. bool inView;
  11935. /* readonly */
  11936. Array<Node> instanceNodes;
  11937. uint lightMask;
  11938. float lodBias;
  11939. Material material;
  11940. Array<Material> materials;
  11941. uint maxLights;
  11942. Model model;
  11943. /* readonly */
  11944. Node node;
  11945. /* readonly */
  11946. uint numAttributes;
  11947. /* readonly */
  11948. uint numGeometries;
  11949. /* readonly */
  11950. uint numInstanceNodes;
  11951. ObjectAnimation objectAnimation;
  11952. bool occludee;
  11953. bool occluder;
  11954. uint occlusionLodLevel;
  11955. /* readonly */
  11956. int refs;
  11957. /* readonly */
  11958. bool replicated;
  11959. float shadowDistance;
  11960. uint shadowMask;
  11961. bool temporary;
  11962. /* readonly */
  11963. StringHash type;
  11964. /* readonly */
  11965. String typeName;
  11966. uint viewMask;
  11967. /* readonly */
  11968. int weakRefs;
  11969. /* readonly */
  11970. BoundingBox worldBoundingBox;
  11971. /* readonly */
  11972. Zone zone;
  11973. uint zoneMask;
  11974. };
  11975. class StaticSprite2D
  11976. {
  11977. public:
  11978. // Methods:
  11979. void ApplyAttributes();
  11980. void DrawDebugGeometry(DebugRenderer, bool);
  11981. Variant GetAttribute(const String&) const;
  11982. ValueAnimation GetAttributeAnimation(const String&) const;
  11983. float GetAttributeAnimationSpeed(const String&) const;
  11984. float GetAttributeAnimationTime(const String&) const;
  11985. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11986. Variant GetAttributeDefault(const String&) const;
  11987. bool GetInterceptNetworkUpdate(const String&) const;
  11988. bool HasSubscribedToEvent(Object, const String&);
  11989. bool HasSubscribedToEvent(const String&);
  11990. bool IsInView(Camera) const;
  11991. bool Load(File);
  11992. bool Load(VectorBuffer&);
  11993. bool LoadJSON(const JSONValue&);
  11994. bool LoadXML(const XMLElement&);
  11995. void MarkNetworkUpdate() const;
  11996. void Remove();
  11997. void RemoveAttributeAnimation(const String&);
  11998. void RemoveInstanceDefault();
  11999. void RemoveObjectAnimation();
  12000. void ResetToDefault();
  12001. bool Save(File) const;
  12002. bool Save(VectorBuffer&) const;
  12003. bool SaveJSON(JSONValue&) const;
  12004. bool SaveXML(XMLElement&) const;
  12005. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12006. void SetAnimationTime(float);
  12007. bool SetAttribute(const String&, const Variant&);
  12008. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12009. void SetAttributeAnimationSpeed(const String&, float);
  12010. void SetAttributeAnimationTime(const String&, float);
  12011. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12012. void SetFlip(bool, bool, bool = false);
  12013. void SetInterceptNetworkUpdate(const String&, bool);
  12014. // Properties:
  12015. float alpha;
  12016. bool animationEnabled;
  12017. /* readonly */
  12018. Array<Variant> attributeDefaults;
  12019. /* readonly */
  12020. Array<AttributeInfo> attributeInfos;
  12021. Array<Variant> attributes;
  12022. BlendMode blendMode;
  12023. /* readonly */
  12024. BoundingBox boundingBox;
  12025. bool castShadows;
  12026. /* readonly */
  12027. String category;
  12028. Color color;
  12029. Material customMaterial;
  12030. float drawDistance;
  12031. Rect drawRect;
  12032. bool enabled;
  12033. /* readonly */
  12034. bool enabledEffective;
  12035. bool flipX;
  12036. bool flipY;
  12037. Vector2 hotSpot;
  12038. /* readonly */
  12039. uint id;
  12040. /* readonly */
  12041. bool inView;
  12042. int layer;
  12043. uint lightMask;
  12044. float lodBias;
  12045. uint maxLights;
  12046. /* readonly */
  12047. Node node;
  12048. /* readonly */
  12049. uint numAttributes;
  12050. ObjectAnimation objectAnimation;
  12051. bool occludee;
  12052. bool occluder;
  12053. int orderInLayer;
  12054. /* readonly */
  12055. int refs;
  12056. /* readonly */
  12057. bool replicated;
  12058. float shadowDistance;
  12059. uint shadowMask;
  12060. Sprite2D sprite;
  12061. bool swapXY;
  12062. bool temporary;
  12063. Rect textureRect;
  12064. /* readonly */
  12065. StringHash type;
  12066. /* readonly */
  12067. String typeName;
  12068. bool useDrawRect;
  12069. bool useHotSpot;
  12070. bool useTextureRect;
  12071. uint viewMask;
  12072. /* readonly */
  12073. int weakRefs;
  12074. /* readonly */
  12075. BoundingBox worldBoundingBox;
  12076. uint zoneMask;
  12077. };
  12078. class StretchableSprite2D
  12079. {
  12080. public:
  12081. // Methods:
  12082. void ApplyAttributes();
  12083. void DrawDebugGeometry(DebugRenderer, bool);
  12084. Variant GetAttribute(const String&) const;
  12085. ValueAnimation GetAttributeAnimation(const String&) const;
  12086. float GetAttributeAnimationSpeed(const String&) const;
  12087. float GetAttributeAnimationTime(const String&) const;
  12088. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12089. Variant GetAttributeDefault(const String&) const;
  12090. bool GetInterceptNetworkUpdate(const String&) const;
  12091. bool HasSubscribedToEvent(Object, const String&);
  12092. bool HasSubscribedToEvent(const String&);
  12093. bool IsInView(Camera) const;
  12094. bool Load(File);
  12095. bool Load(VectorBuffer&);
  12096. bool LoadJSON(const JSONValue&);
  12097. bool LoadXML(const XMLElement&);
  12098. void MarkNetworkUpdate() const;
  12099. void Remove();
  12100. void RemoveAttributeAnimation(const String&);
  12101. void RemoveInstanceDefault();
  12102. void RemoveObjectAnimation();
  12103. void ResetToDefault();
  12104. bool Save(File) const;
  12105. bool Save(VectorBuffer&) const;
  12106. bool SaveJSON(JSONValue&) const;
  12107. bool SaveXML(XMLElement&) const;
  12108. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12109. void SetAnimationTime(float);
  12110. bool SetAttribute(const String&, const Variant&);
  12111. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12112. void SetAttributeAnimationSpeed(const String&, float);
  12113. void SetAttributeAnimationTime(const String&, float);
  12114. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12115. void SetFlip(bool, bool, bool = false);
  12116. void SetInterceptNetworkUpdate(const String&, bool);
  12117. // Properties:
  12118. float alpha;
  12119. bool animationEnabled;
  12120. /* readonly */
  12121. Array<Variant> attributeDefaults;
  12122. /* readonly */
  12123. Array<AttributeInfo> attributeInfos;
  12124. Array<Variant> attributes;
  12125. BlendMode blendMode;
  12126. IntRect border;
  12127. /* readonly */
  12128. BoundingBox boundingBox;
  12129. bool castShadows;
  12130. /* readonly */
  12131. String category;
  12132. Color color;
  12133. Material customMaterial;
  12134. float drawDistance;
  12135. Rect drawRect;
  12136. bool enabled;
  12137. /* readonly */
  12138. bool enabledEffective;
  12139. bool flipX;
  12140. bool flipY;
  12141. Vector2 hotSpot;
  12142. /* readonly */
  12143. uint id;
  12144. /* readonly */
  12145. bool inView;
  12146. int layer;
  12147. uint lightMask;
  12148. float lodBias;
  12149. uint maxLights;
  12150. /* readonly */
  12151. Node node;
  12152. /* readonly */
  12153. uint numAttributes;
  12154. ObjectAnimation objectAnimation;
  12155. bool occludee;
  12156. bool occluder;
  12157. int orderInLayer;
  12158. /* readonly */
  12159. int refs;
  12160. /* readonly */
  12161. bool replicated;
  12162. float shadowDistance;
  12163. uint shadowMask;
  12164. Sprite2D sprite;
  12165. bool swapXY;
  12166. bool temporary;
  12167. Rect textureRect;
  12168. /* readonly */
  12169. StringHash type;
  12170. /* readonly */
  12171. String typeName;
  12172. bool useDrawRect;
  12173. bool useHotSpot;
  12174. bool useTextureRect;
  12175. uint viewMask;
  12176. /* readonly */
  12177. int weakRefs;
  12178. /* readonly */
  12179. BoundingBox worldBoundingBox;
  12180. uint zoneMask;
  12181. };
  12182. class String
  12183. {
  12184. public:
  12185. ~String();
  12186. String();
  12187. String(const String&in);
  12188. String(int);
  12189. String(uint);
  12190. String(float);
  12191. String(double);
  12192. String(bool);
  12193. String(const char*);
  12194. // Methods:
  12195. void AppendUTF8(uint);
  12196. uint AtUTF8(uint) const;
  12197. uint ByteOffsetUTF8(uint) const;
  12198. void Clear();
  12199. int Compare(const String&, bool = true) const;
  12200. bool Contains(const String&, bool = true) const;
  12201. bool Contains(uint8, bool = true) const;
  12202. bool EndsWith(const String&, bool = true) const;
  12203. uint Find(const String&, uint = 0, bool = true) const;
  12204. uint Find(uint8, uint = 0, bool = true) const;
  12205. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  12206. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  12207. void Join(Array<String>&, const String&);
  12208. uint NextUTF8Char(uint&) const;
  12209. void Replace(const String&, const String&, bool = true);
  12210. void Replace(uint8, uint8, bool = true);
  12211. void ReplaceUTF8(uint, uint);
  12212. String Replaced(const String&, const String&, bool = true) const;
  12213. String Replaced(uint8, uint8, bool = true) const;
  12214. void Resize(uint);
  12215. void SetUTF8FromLatin1(const String&);
  12216. Array<String> Split(uint8, bool = false) const;
  12217. bool StartsWith(const String&, bool = true) const;
  12218. String Substring(uint) const;
  12219. String Substring(uint, uint) const;
  12220. String SubstringUTF8(uint) const;
  12221. String SubstringUTF8(uint, uint) const;
  12222. bool ToBool() const;
  12223. Color ToColor() const;
  12224. double ToDouble() const;
  12225. float ToFloat() const;
  12226. int ToInt(int = 10) const;
  12227. int64 ToInt64(int = 10) const;
  12228. IntRect ToIntRect() const;
  12229. IntVector2 ToIntVector2() const;
  12230. IntVector3 ToIntVector3() const;
  12231. String ToLower() const;
  12232. Matrix3 ToMatrix3() const;
  12233. Matrix3x4 ToMatrix3x4() const;
  12234. Matrix4 ToMatrix4() const;
  12235. Quaternion ToQuaternion() const;
  12236. uint ToUInt(int = 10) const;
  12237. uint64 ToUInt64(int = 10) const;
  12238. String ToUpper() const;
  12239. Vector2 ToVector2() const;
  12240. Vector3 ToVector3() const;
  12241. Vector4 ToVector4(bool = false) const;
  12242. Variant ToVectorVariant() const;
  12243. String Trimmed() const;
  12244. // Properties:
  12245. /* readonly */
  12246. bool empty;
  12247. /* readonly */
  12248. uint length;
  12249. /* readonly */
  12250. uint utf8Length;
  12251. };
  12252. class StringHash
  12253. {
  12254. public:
  12255. StringHash();
  12256. StringHash(const StringHash&in);
  12257. StringHash(const String&in);
  12258. StringHash(uint);
  12259. // Methods:
  12260. String ToString() const;
  12261. // Properties:
  12262. /* readonly */
  12263. uint value;
  12264. };
  12265. class Technique
  12266. {
  12267. public:
  12268. Technique();
  12269. Technique(const String&in);
  12270. // Methods:
  12271. Technique Clone(const String& = String ( )) const;
  12272. Pass CreatePass(const String&);
  12273. Pass GetPass(const String&);
  12274. Pass GetSupportedPass(const String&);
  12275. bool HasPass(const String&) const;
  12276. bool HasSubscribedToEvent(Object, const String&);
  12277. bool HasSubscribedToEvent(const String&);
  12278. bool Load(File);
  12279. bool Load(VectorBuffer&);
  12280. bool Load(const String&);
  12281. void RemovePass(const String&);
  12282. bool Save(File) const;
  12283. bool Save(VectorBuffer&) const;
  12284. bool Save(const String&) const;
  12285. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12286. // Properties:
  12287. /* readonly */
  12288. String category;
  12289. bool desktop;
  12290. /* readonly */
  12291. uint memoryUse;
  12292. String name;
  12293. /* readonly */
  12294. uint numPasses;
  12295. /* readonly */
  12296. Array<String> passNames;
  12297. /* readonly */
  12298. Array<Pass> passes;
  12299. /* readonly */
  12300. int refs;
  12301. /* readonly */
  12302. bool supported;
  12303. /* readonly */
  12304. StringHash type;
  12305. /* readonly */
  12306. String typeName;
  12307. /* readonly */
  12308. uint useTimer;
  12309. /* readonly */
  12310. int weakRefs;
  12311. };
  12312. class TechniqueEntry
  12313. {
  12314. public:
  12315. ~TechniqueEntry();
  12316. TechniqueEntry();
  12317. TechniqueEntry(const TechniqueEntry&in);
  12318. // Properties:
  12319. float lodDistance;
  12320. int qualityLevel;
  12321. Technique technique;
  12322. };
  12323. class Terrain
  12324. {
  12325. public:
  12326. // Methods:
  12327. void ApplyAttributes();
  12328. void ApplyHeightMap();
  12329. void DrawDebugGeometry(DebugRenderer, bool);
  12330. Variant GetAttribute(const String&) const;
  12331. ValueAnimation GetAttributeAnimation(const String&) const;
  12332. float GetAttributeAnimationSpeed(const String&) const;
  12333. float GetAttributeAnimationTime(const String&) const;
  12334. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12335. Variant GetAttributeDefault(const String&) const;
  12336. float GetHeight(const Vector3&) const;
  12337. bool GetInterceptNetworkUpdate(const String&) const;
  12338. TerrainPatch GetNeighborPatch(int, int) const;
  12339. Vector3 GetNormal(const Vector3&) const;
  12340. TerrainPatch GetPatch(int, int) const;
  12341. bool HasSubscribedToEvent(Object, const String&);
  12342. bool HasSubscribedToEvent(const String&);
  12343. Vector3 HeightMapToWorld(const IntVector2&) const;
  12344. bool Load(File);
  12345. bool Load(VectorBuffer&);
  12346. bool LoadJSON(const JSONValue&);
  12347. bool LoadXML(const XMLElement&);
  12348. void MarkNetworkUpdate() const;
  12349. void Remove();
  12350. void RemoveAttributeAnimation(const String&);
  12351. void RemoveInstanceDefault();
  12352. void RemoveObjectAnimation();
  12353. void ResetToDefault();
  12354. bool Save(File) const;
  12355. bool Save(VectorBuffer&) const;
  12356. bool SaveJSON(JSONValue&) const;
  12357. bool SaveXML(XMLElement&) const;
  12358. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12359. void SetAnimationTime(float);
  12360. bool SetAttribute(const String&, const Variant&);
  12361. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12362. void SetAttributeAnimationSpeed(const String&, float);
  12363. void SetAttributeAnimationTime(const String&, float);
  12364. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12365. void SetInterceptNetworkUpdate(const String&, bool);
  12366. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  12367. IntVector2 WorldToHeightMap(const Vector3&) const;
  12368. // Properties:
  12369. bool animationEnabled;
  12370. /* readonly */
  12371. Array<Variant> attributeDefaults;
  12372. /* readonly */
  12373. Array<AttributeInfo> attributeInfos;
  12374. Array<Variant> attributes;
  12375. bool castShadows;
  12376. /* readonly */
  12377. String category;
  12378. float drawDistance;
  12379. Terrain eastNeighbor;
  12380. bool enabled;
  12381. /* readonly */
  12382. bool enabledEffective;
  12383. Image heightMap;
  12384. /* readonly */
  12385. uint id;
  12386. uint lightMask;
  12387. float lodBias;
  12388. Material material;
  12389. uint maxLights;
  12390. uint maxLodLevels;
  12391. /* readonly */
  12392. Node node;
  12393. Terrain northNeighbor;
  12394. /* readonly */
  12395. uint numAttributes;
  12396. /* readonly */
  12397. IntVector2 numPatches;
  12398. /* readonly */
  12399. IntVector2 numVertices;
  12400. ObjectAnimation objectAnimation;
  12401. bool occludee;
  12402. bool occluder;
  12403. uint occlusionLodLevel;
  12404. int patchSize;
  12405. /* readonly */
  12406. Array<TerrainPatch> patches;
  12407. /* readonly */
  12408. int refs;
  12409. /* readonly */
  12410. bool replicated;
  12411. float shadowDistance;
  12412. uint shadowMask;
  12413. bool smoothing;
  12414. Terrain southNeighbor;
  12415. Vector3 spacing;
  12416. bool temporary;
  12417. /* readonly */
  12418. StringHash type;
  12419. /* readonly */
  12420. String typeName;
  12421. uint viewMask;
  12422. /* readonly */
  12423. int weakRefs;
  12424. Terrain westNeighbor;
  12425. uint zoneMask;
  12426. };
  12427. class TerrainPatch
  12428. {
  12429. public:
  12430. // Methods:
  12431. void ApplyAttributes();
  12432. void DrawDebugGeometry(DebugRenderer, bool);
  12433. Variant GetAttribute(const String&) const;
  12434. ValueAnimation GetAttributeAnimation(const String&) const;
  12435. float GetAttributeAnimationSpeed(const String&) const;
  12436. float GetAttributeAnimationTime(const String&) const;
  12437. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12438. Variant GetAttributeDefault(const String&) const;
  12439. bool GetInterceptNetworkUpdate(const String&) const;
  12440. bool HasSubscribedToEvent(Object, const String&);
  12441. bool HasSubscribedToEvent(const String&);
  12442. bool IsInView(Camera) const;
  12443. bool Load(File);
  12444. bool Load(VectorBuffer&);
  12445. bool LoadJSON(const JSONValue&);
  12446. bool LoadXML(const XMLElement&);
  12447. void MarkNetworkUpdate() const;
  12448. void Remove();
  12449. void RemoveAttributeAnimation(const String&);
  12450. void RemoveInstanceDefault();
  12451. void RemoveObjectAnimation();
  12452. void ResetToDefault();
  12453. bool Save(File) const;
  12454. bool Save(VectorBuffer&) const;
  12455. bool SaveJSON(JSONValue&) const;
  12456. bool SaveXML(XMLElement&) const;
  12457. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12458. void SetAnimationTime(float);
  12459. bool SetAttribute(const String&, const Variant&);
  12460. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12461. void SetAttributeAnimationSpeed(const String&, float);
  12462. void SetAttributeAnimationTime(const String&, float);
  12463. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12464. void SetInterceptNetworkUpdate(const String&, bool);
  12465. // Properties:
  12466. bool animationEnabled;
  12467. /* readonly */
  12468. Array<Variant> attributeDefaults;
  12469. /* readonly */
  12470. Array<AttributeInfo> attributeInfos;
  12471. Array<Variant> attributes;
  12472. /* readonly */
  12473. BoundingBox boundingBox;
  12474. bool castShadows;
  12475. /* readonly */
  12476. String category;
  12477. float drawDistance;
  12478. bool enabled;
  12479. /* readonly */
  12480. bool enabledEffective;
  12481. /* readonly */
  12482. uint id;
  12483. /* readonly */
  12484. bool inView;
  12485. uint lightMask;
  12486. float lodBias;
  12487. uint maxLights;
  12488. /* readonly */
  12489. Node node;
  12490. /* readonly */
  12491. uint numAttributes;
  12492. ObjectAnimation objectAnimation;
  12493. bool occludee;
  12494. bool occluder;
  12495. /* readonly */
  12496. int refs;
  12497. /* readonly */
  12498. bool replicated;
  12499. float shadowDistance;
  12500. uint shadowMask;
  12501. bool temporary;
  12502. /* readonly */
  12503. StringHash type;
  12504. /* readonly */
  12505. String typeName;
  12506. uint viewMask;
  12507. /* readonly */
  12508. int weakRefs;
  12509. /* readonly */
  12510. BoundingBox worldBoundingBox;
  12511. uint zoneMask;
  12512. };
  12513. class Text
  12514. {
  12515. public:
  12516. Text();
  12517. Text(const String&in);
  12518. // Methods:
  12519. void AddChild(UIElement);
  12520. void AddTag(const String&);
  12521. void AddTags(const String&, int8 = ';');
  12522. void ApplyAttributes();
  12523. void BringToFront();
  12524. void ClearSelection();
  12525. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12526. void DisableLayoutUpdate();
  12527. IntVector2 ElementToScreen(const IntVector2&);
  12528. void EnableLayoutUpdate();
  12529. uint FindChild(UIElement) const;
  12530. Variant GetAttribute(const String&) const;
  12531. ValueAnimation GetAttributeAnimation(const String&) const;
  12532. float GetAttributeAnimationSpeed(const String&) const;
  12533. float GetAttributeAnimationTime(const String&) const;
  12534. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12535. Variant GetAttributeDefault(const String&) const;
  12536. UIElement GetChild(const String&, bool = false) const;
  12537. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12538. Array<UIElement> GetChildren(bool = false) const;
  12539. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12540. UIElement GetElementEventSender() const;
  12541. bool GetInterceptNetworkUpdate(const String&) const;
  12542. uint GetNumChildren(bool) const;
  12543. bool HasSubscribedToEvent(Object, const String&);
  12544. bool HasSubscribedToEvent(const String&);
  12545. bool HasTag(const String&) const;
  12546. void InsertChild(uint, UIElement);
  12547. bool IsChildOf(UIElement) const;
  12548. bool IsInside(IntVector2, bool);
  12549. bool IsInsideCombined(IntVector2, bool);
  12550. bool Load(File);
  12551. bool Load(VectorBuffer&);
  12552. UIElement LoadChildXML(XMLFile, XMLFile);
  12553. UIElement LoadChildXML(const XMLElement&, XMLFile);
  12554. bool LoadJSON(const JSONValue&);
  12555. bool LoadXML(File);
  12556. bool LoadXML(VectorBuffer&);
  12557. bool LoadXML(XMLFile, XMLFile);
  12558. bool LoadXML(const XMLElement&, XMLFile);
  12559. bool LoadXML(const XMLElement&);
  12560. void MarkNetworkUpdate() const;
  12561. void Remove();
  12562. void RemoveAllChildren();
  12563. void RemoveAllTags();
  12564. void RemoveAttributeAnimation(const String&);
  12565. void RemoveChild(UIElement, uint = 0);
  12566. void RemoveChild(uint);
  12567. void RemoveInstanceDefault();
  12568. void RemoveObjectAnimation();
  12569. bool RemoveTag(const String&);
  12570. void ResetDeepEnabled();
  12571. void ResetToDefault();
  12572. bool Save(File) const;
  12573. bool Save(VectorBuffer&) const;
  12574. bool SaveJSON(JSONValue&) const;
  12575. bool SaveXML(File, const String& = "\t");
  12576. bool SaveXML(VectorBuffer&, const String& = "\t");
  12577. bool SaveXML(XMLElement&) const;
  12578. IntVector2 ScreenToElement(const IntVector2&);
  12579. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12580. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12581. void SetAnimationTime(float);
  12582. bool SetAttribute(const String&, const Variant&);
  12583. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12584. void SetAttributeAnimationSpeed(const String&, float);
  12585. void SetAttributeAnimationTime(const String&, float);
  12586. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12587. void SetDeepEnabled(bool);
  12588. void SetEnabledRecursive(bool);
  12589. void SetFixedHeight(int);
  12590. void SetFixedSize(int, int);
  12591. void SetFixedWidth(int);
  12592. bool SetFont(Font, float);
  12593. bool SetFont(const String&, float);
  12594. void SetInterceptNetworkUpdate(const String&, bool);
  12595. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12596. void SetMaxAnchor(float, float);
  12597. void SetMaxSize(int, int);
  12598. void SetMinAnchor(float, float);
  12599. void SetMinSize(int, int);
  12600. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12601. void SetPivot(float, float);
  12602. void SetPosition(int, int);
  12603. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  12604. void SetSize(int, int);
  12605. bool SetStyle(const String&, XMLFile = null);
  12606. bool SetStyle(const XMLElement&);
  12607. bool SetStyleAuto(XMLFile = null);
  12608. void UpdateLayout();
  12609. const Variant& GetVar(const StringHash&);
  12610. // Properties:
  12611. bool animationEnabled;
  12612. /* readonly */
  12613. Array<Variant> attributeDefaults;
  12614. /* readonly */
  12615. Array<AttributeInfo> attributeInfos;
  12616. Array<Variant> attributes;
  12617. bool autoLocalizable;
  12618. bool bringToBack;
  12619. bool bringToFront;
  12620. /* readonly */
  12621. String category;
  12622. /* readonly */
  12623. Array<Vector2> charPositions;
  12624. /* readonly */
  12625. Array<Vector2> charSizes;
  12626. /* readonly */
  12627. IntVector2 childOffset;
  12628. /* readonly */
  12629. Array<UIElement> children;
  12630. IntRect clipBorder;
  12631. bool clipChildren;
  12632. /* writeonly */
  12633. Color color;
  12634. /* readonly */
  12635. bool colorGradient;
  12636. Array<Color> colors;
  12637. /* readonly */
  12638. IntRect combinedScreenRect;
  12639. XMLFile defaultStyle;
  12640. /* readonly */
  12641. float derivedOpacity;
  12642. /* readonly */
  12643. uint dragButtonCombo;
  12644. /* readonly */
  12645. int dragButtonCount;
  12646. uint dragDropMode;
  12647. bool editable;
  12648. Color effectColor;
  12649. bool effectRoundStroke;
  12650. IntVector2 effectShadowOffset;
  12651. int effectStrokeThickness;
  12652. bool elementEventSender;
  12653. bool enableAnchor;
  12654. bool enabled;
  12655. /* readonly */
  12656. bool enabledSelf;
  12657. /* readonly */
  12658. bool fixedHeight;
  12659. /* readonly */
  12660. bool fixedSize;
  12661. /* readonly */
  12662. bool fixedWidth;
  12663. bool focus;
  12664. FocusMode focusMode;
  12665. /* readonly */
  12666. Font font;
  12667. float fontSize;
  12668. int height;
  12669. HorizontalAlignment horizontalAlignment;
  12670. Color hoverColor;
  12671. /* readonly */
  12672. bool hovering;
  12673. int indent;
  12674. int indentSpacing;
  12675. /* readonly */
  12676. int indentWidth;
  12677. bool internal;
  12678. IntRect layoutBorder;
  12679. Vector2 layoutFlexScale;
  12680. LayoutMode layoutMode;
  12681. int layoutSpacing;
  12682. Vector2 maxAnchor;
  12683. int maxHeight;
  12684. IntVector2 maxOffset;
  12685. IntVector2 maxSize;
  12686. int maxWidth;
  12687. Vector2 minAnchor;
  12688. int minHeight;
  12689. IntVector2 minOffset;
  12690. IntVector2 minSize;
  12691. int minWidth;
  12692. String name;
  12693. /* readonly */
  12694. uint numAllChildren;
  12695. /* readonly */
  12696. uint numAttributes;
  12697. /* readonly */
  12698. uint numChars;
  12699. /* readonly */
  12700. uint numChildren;
  12701. /* readonly */
  12702. uint numRows;
  12703. ObjectAnimation objectAnimation;
  12704. float opacity;
  12705. UIElement parent;
  12706. Vector2 pivot;
  12707. IntVector2 position;
  12708. int priority;
  12709. /* readonly */
  12710. int refs;
  12711. /* readonly */
  12712. UIElement root;
  12713. /* readonly */
  12714. float rowHeight;
  12715. float rowSpacing;
  12716. /* readonly */
  12717. Array<float> rowWidths;
  12718. /* readonly */
  12719. IntVector2 screenPosition;
  12720. bool selected;
  12721. Color selectionColor;
  12722. /* readonly */
  12723. uint selectionLength;
  12724. /* readonly */
  12725. uint selectionStart;
  12726. IntVector2 size;
  12727. bool sortChildren;
  12728. String style;
  12729. /* readonly */
  12730. Array<String> tags;
  12731. bool temporary;
  12732. String text;
  12733. HorizontalAlignment textAlignment;
  12734. TextEffect textEffect;
  12735. TraversalMode traversalMode;
  12736. /* readonly */
  12737. StringHash type;
  12738. /* readonly */
  12739. String typeName;
  12740. bool useDerivedOpacity;
  12741. /* readonly */
  12742. VariantMap vars;
  12743. VerticalAlignment verticalAlignment;
  12744. bool visible;
  12745. /* readonly */
  12746. bool visibleEffective;
  12747. /* readonly */
  12748. int weakRefs;
  12749. int width;
  12750. bool wordwrap;
  12751. };
  12752. class Text3D
  12753. {
  12754. public:
  12755. // Methods:
  12756. void ApplyAttributes();
  12757. void DrawDebugGeometry(DebugRenderer, bool);
  12758. Variant GetAttribute(const String&) const;
  12759. ValueAnimation GetAttributeAnimation(const String&) const;
  12760. float GetAttributeAnimationSpeed(const String&) const;
  12761. float GetAttributeAnimationTime(const String&) const;
  12762. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12763. Variant GetAttributeDefault(const String&) const;
  12764. bool GetInterceptNetworkUpdate(const String&) const;
  12765. bool HasSubscribedToEvent(Object, const String&);
  12766. bool HasSubscribedToEvent(const String&);
  12767. bool IsInView(Camera) const;
  12768. bool Load(File);
  12769. bool Load(VectorBuffer&);
  12770. bool LoadJSON(const JSONValue&);
  12771. bool LoadXML(const XMLElement&);
  12772. void MarkNetworkUpdate() const;
  12773. void Remove();
  12774. void RemoveAttributeAnimation(const String&);
  12775. void RemoveInstanceDefault();
  12776. void RemoveObjectAnimation();
  12777. void ResetToDefault();
  12778. bool Save(File) const;
  12779. bool Save(VectorBuffer&) const;
  12780. bool SaveJSON(JSONValue&) const;
  12781. bool SaveXML(XMLElement&) const;
  12782. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12783. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12784. void SetAnimationTime(float);
  12785. bool SetAttribute(const String&, const Variant&);
  12786. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12787. void SetAttributeAnimationSpeed(const String&, float);
  12788. void SetAttributeAnimationTime(const String&, float);
  12789. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12790. bool SetFont(Font, float);
  12791. bool SetFont(const String&, float);
  12792. void SetInterceptNetworkUpdate(const String&, bool);
  12793. // Properties:
  12794. bool animationEnabled;
  12795. /* readonly */
  12796. Array<Variant> attributeDefaults;
  12797. /* readonly */
  12798. Array<AttributeInfo> attributeInfos;
  12799. Array<Variant> attributes;
  12800. /* readonly */
  12801. BoundingBox boundingBox;
  12802. bool castShadows;
  12803. /* readonly */
  12804. String category;
  12805. /* readonly */
  12806. Array<Vector2> charPositions;
  12807. /* readonly */
  12808. Array<Vector2> charSizes;
  12809. /* writeonly */
  12810. Color color;
  12811. Array<Color> colors;
  12812. float drawDistance;
  12813. Color effectColor;
  12814. float effectDepthBias;
  12815. bool effectRoundStroke;
  12816. IntVector2 effectShadowOffset;
  12817. int effectStrokeThickness;
  12818. bool enabled;
  12819. /* readonly */
  12820. bool enabledEffective;
  12821. FaceCameraMode faceCameraMode;
  12822. bool fixedScreenSize;
  12823. /* readonly */
  12824. Font font;
  12825. float fontSize;
  12826. /* readonly */
  12827. int height;
  12828. HorizontalAlignment horizontalAlignment;
  12829. /* readonly */
  12830. uint id;
  12831. /* readonly */
  12832. bool inView;
  12833. uint lightMask;
  12834. float lodBias;
  12835. Material material;
  12836. uint maxLights;
  12837. /* readonly */
  12838. Node node;
  12839. /* readonly */
  12840. uint numAttributes;
  12841. /* readonly */
  12842. uint numChars;
  12843. /* readonly */
  12844. uint numRows;
  12845. ObjectAnimation objectAnimation;
  12846. bool occludee;
  12847. bool occluder;
  12848. float opacity;
  12849. /* readonly */
  12850. int refs;
  12851. /* readonly */
  12852. bool replicated;
  12853. /* readonly */
  12854. float rowHeight;
  12855. float rowSpacing;
  12856. /* readonly */
  12857. Array<float> rowWidths;
  12858. float shadowDistance;
  12859. uint shadowMask;
  12860. bool temporary;
  12861. String text;
  12862. HorizontalAlignment textAlignment;
  12863. TextEffect textEffect;
  12864. /* readonly */
  12865. StringHash type;
  12866. /* readonly */
  12867. String typeName;
  12868. VerticalAlignment verticalAlignment;
  12869. uint viewMask;
  12870. /* readonly */
  12871. int weakRefs;
  12872. int width;
  12873. bool wordwrap;
  12874. /* readonly */
  12875. BoundingBox worldBoundingBox;
  12876. uint zoneMask;
  12877. };
  12878. class Texture
  12879. {
  12880. public:
  12881. Texture();
  12882. Texture(const String&in);
  12883. // Methods:
  12884. void AddMetadata(const String&, const Variant&);
  12885. void ClearDataLost();
  12886. bool HasSubscribedToEvent(Object, const String&);
  12887. bool HasSubscribedToEvent(const String&);
  12888. bool Load(File);
  12889. bool Load(VectorBuffer&);
  12890. bool Load(const String&);
  12891. void RemoveAllMetadata();
  12892. void RemoveMetadata(const String&);
  12893. bool Save(File) const;
  12894. bool Save(VectorBuffer&) const;
  12895. bool Save(const String&) const;
  12896. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12897. void SetNumLevels(uint);
  12898. // Properties:
  12899. Array<TextureAddressMode> addressMode;
  12900. uint anisotropy;
  12901. /* readonly */
  12902. bool autoResolve;
  12903. Texture backupTexture;
  12904. Color borderColor;
  12905. /* readonly */
  12906. String category;
  12907. /* readonly */
  12908. uint components;
  12909. /* readonly */
  12910. bool compressed;
  12911. /* readonly */
  12912. bool dataLost;
  12913. TextureFilterMode filterMode;
  12914. /* readonly */
  12915. uint format;
  12916. /* readonly */
  12917. bool hasMetadata;
  12918. /* readonly */
  12919. int height;
  12920. /* readonly */
  12921. Array<int> levelHeight;
  12922. /* readonly */
  12923. Array<int> levelWidth;
  12924. /* readonly */
  12925. uint levels;
  12926. /* readonly */
  12927. bool levelsDirty;
  12928. /* readonly */
  12929. uint memoryUse;
  12930. Array<Variant> metadata;
  12931. Array<int> mipsToSkip;
  12932. /* readonly */
  12933. int multiSample;
  12934. String name;
  12935. /* readonly */
  12936. int refs;
  12937. /* readonly */
  12938. bool resolveDirty;
  12939. bool sRGB;
  12940. /* readonly */
  12941. StringHash type;
  12942. /* readonly */
  12943. String typeName;
  12944. /* readonly */
  12945. TextureUsage usage;
  12946. /* readonly */
  12947. uint useTimer;
  12948. /* readonly */
  12949. int weakRefs;
  12950. /* readonly */
  12951. int width;
  12952. };
  12953. class Texture2D
  12954. {
  12955. public:
  12956. Texture2D();
  12957. Texture2D(const String&in);
  12958. // Methods:
  12959. void AddMetadata(const String&, const Variant&);
  12960. void ClearDataLost();
  12961. Image GetImage() const;
  12962. bool HasSubscribedToEvent(Object, const String&);
  12963. bool HasSubscribedToEvent(const String&);
  12964. bool Load(File);
  12965. bool Load(VectorBuffer&);
  12966. bool Load(const String&);
  12967. void RemoveAllMetadata();
  12968. void RemoveMetadata(const String&);
  12969. bool Save(File) const;
  12970. bool Save(VectorBuffer&) const;
  12971. bool Save(const String&) const;
  12972. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12973. bool SetData(Image, bool = false);
  12974. void SetNumLevels(uint);
  12975. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  12976. // Properties:
  12977. Array<TextureAddressMode> addressMode;
  12978. uint anisotropy;
  12979. /* readonly */
  12980. bool autoResolve;
  12981. Texture backupTexture;
  12982. Color borderColor;
  12983. /* readonly */
  12984. String category;
  12985. /* readonly */
  12986. uint components;
  12987. /* readonly */
  12988. bool compressed;
  12989. /* readonly */
  12990. bool dataLost;
  12991. TextureFilterMode filterMode;
  12992. /* readonly */
  12993. uint format;
  12994. /* readonly */
  12995. bool hasMetadata;
  12996. /* readonly */
  12997. int height;
  12998. /* readonly */
  12999. Array<int> levelHeight;
  13000. /* readonly */
  13001. Array<int> levelWidth;
  13002. /* readonly */
  13003. uint levels;
  13004. /* readonly */
  13005. bool levelsDirty;
  13006. /* readonly */
  13007. uint memoryUse;
  13008. Array<Variant> metadata;
  13009. Array<int> mipsToSkip;
  13010. /* readonly */
  13011. int multiSample;
  13012. String name;
  13013. /* readonly */
  13014. int refs;
  13015. /* readonly */
  13016. RenderSurface renderSurface;
  13017. /* readonly */
  13018. bool resolveDirty;
  13019. bool sRGB;
  13020. /* readonly */
  13021. StringHash type;
  13022. /* readonly */
  13023. String typeName;
  13024. /* readonly */
  13025. TextureUsage usage;
  13026. /* readonly */
  13027. uint useTimer;
  13028. /* readonly */
  13029. int weakRefs;
  13030. /* readonly */
  13031. int width;
  13032. };
  13033. class Texture2DArray
  13034. {
  13035. public:
  13036. Texture2DArray();
  13037. Texture2DArray(const String&in);
  13038. // Methods:
  13039. void AddMetadata(const String&, const Variant&);
  13040. void ClearDataLost();
  13041. bool HasSubscribedToEvent(Object, const String&);
  13042. bool HasSubscribedToEvent(const String&);
  13043. bool Load(File);
  13044. bool Load(VectorBuffer&);
  13045. bool Load(const String&);
  13046. void RemoveAllMetadata();
  13047. void RemoveMetadata(const String&);
  13048. bool Save(File) const;
  13049. bool Save(VectorBuffer&) const;
  13050. bool Save(const String&) const;
  13051. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13052. bool SetData(uint, Image, bool = false);
  13053. void SetNumLevels(uint);
  13054. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  13055. // Properties:
  13056. Array<TextureAddressMode> addressMode;
  13057. uint anisotropy;
  13058. /* readonly */
  13059. bool autoResolve;
  13060. Texture backupTexture;
  13061. Color borderColor;
  13062. /* readonly */
  13063. String category;
  13064. /* readonly */
  13065. uint components;
  13066. /* readonly */
  13067. bool compressed;
  13068. /* readonly */
  13069. bool dataLost;
  13070. TextureFilterMode filterMode;
  13071. /* readonly */
  13072. uint format;
  13073. /* readonly */
  13074. bool hasMetadata;
  13075. /* readonly */
  13076. int height;
  13077. uint layers;
  13078. /* readonly */
  13079. Array<int> levelHeight;
  13080. /* readonly */
  13081. Array<int> levelWidth;
  13082. /* readonly */
  13083. uint levels;
  13084. /* readonly */
  13085. bool levelsDirty;
  13086. /* readonly */
  13087. uint memoryUse;
  13088. Array<Variant> metadata;
  13089. Array<int> mipsToSkip;
  13090. /* readonly */
  13091. int multiSample;
  13092. String name;
  13093. /* readonly */
  13094. int refs;
  13095. /* readonly */
  13096. RenderSurface renderSurface;
  13097. /* readonly */
  13098. bool resolveDirty;
  13099. bool sRGB;
  13100. /* readonly */
  13101. StringHash type;
  13102. /* readonly */
  13103. String typeName;
  13104. /* readonly */
  13105. TextureUsage usage;
  13106. /* readonly */
  13107. uint useTimer;
  13108. /* readonly */
  13109. int weakRefs;
  13110. /* readonly */
  13111. int width;
  13112. };
  13113. class Texture3D
  13114. {
  13115. public:
  13116. Texture3D();
  13117. Texture3D(const String&in);
  13118. // Methods:
  13119. void AddMetadata(const String&, const Variant&);
  13120. void ClearDataLost();
  13121. bool HasSubscribedToEvent(Object, const String&);
  13122. bool HasSubscribedToEvent(const String&);
  13123. bool Load(File);
  13124. bool Load(VectorBuffer&);
  13125. bool Load(const String&);
  13126. void RemoveAllMetadata();
  13127. void RemoveMetadata(const String&);
  13128. bool Save(File) const;
  13129. bool Save(VectorBuffer&) const;
  13130. bool Save(const String&) const;
  13131. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13132. bool SetData(Image, bool = false);
  13133. void SetNumLevels(uint);
  13134. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  13135. // Properties:
  13136. Array<TextureAddressMode> addressMode;
  13137. uint anisotropy;
  13138. /* readonly */
  13139. bool autoResolve;
  13140. Texture backupTexture;
  13141. Color borderColor;
  13142. /* readonly */
  13143. String category;
  13144. /* readonly */
  13145. uint components;
  13146. /* readonly */
  13147. bool compressed;
  13148. /* readonly */
  13149. bool dataLost;
  13150. TextureFilterMode filterMode;
  13151. /* readonly */
  13152. uint format;
  13153. /* readonly */
  13154. bool hasMetadata;
  13155. /* readonly */
  13156. int height;
  13157. /* readonly */
  13158. Array<int> levelHeight;
  13159. /* readonly */
  13160. Array<int> levelWidth;
  13161. /* readonly */
  13162. uint levels;
  13163. /* readonly */
  13164. bool levelsDirty;
  13165. /* readonly */
  13166. uint memoryUse;
  13167. Array<Variant> metadata;
  13168. Array<int> mipsToSkip;
  13169. /* readonly */
  13170. int multiSample;
  13171. String name;
  13172. /* readonly */
  13173. int refs;
  13174. /* readonly */
  13175. bool resolveDirty;
  13176. bool sRGB;
  13177. /* readonly */
  13178. StringHash type;
  13179. /* readonly */
  13180. String typeName;
  13181. /* readonly */
  13182. TextureUsage usage;
  13183. /* readonly */
  13184. uint useTimer;
  13185. /* readonly */
  13186. int weakRefs;
  13187. /* readonly */
  13188. int width;
  13189. };
  13190. class TextureCube
  13191. {
  13192. public:
  13193. TextureCube();
  13194. TextureCube(const String&in);
  13195. // Methods:
  13196. void AddMetadata(const String&, const Variant&);
  13197. void ClearDataLost();
  13198. Image GetImage(CubeMapFace) const;
  13199. bool HasSubscribedToEvent(Object, const String&);
  13200. bool HasSubscribedToEvent(const String&);
  13201. bool Load(File);
  13202. bool Load(VectorBuffer&);
  13203. bool Load(const String&);
  13204. void RemoveAllMetadata();
  13205. void RemoveMetadata(const String&);
  13206. bool Save(File) const;
  13207. bool Save(VectorBuffer&) const;
  13208. bool Save(const String&) const;
  13209. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13210. bool SetData(CubeMapFace, Image, bool = false);
  13211. void SetNumLevels(uint);
  13212. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  13213. // Properties:
  13214. Array<TextureAddressMode> addressMode;
  13215. uint anisotropy;
  13216. /* readonly */
  13217. bool autoResolve;
  13218. Texture backupTexture;
  13219. Color borderColor;
  13220. /* readonly */
  13221. String category;
  13222. /* readonly */
  13223. uint components;
  13224. /* readonly */
  13225. bool compressed;
  13226. /* readonly */
  13227. bool dataLost;
  13228. TextureFilterMode filterMode;
  13229. /* readonly */
  13230. uint format;
  13231. /* readonly */
  13232. bool hasMetadata;
  13233. /* readonly */
  13234. int height;
  13235. /* readonly */
  13236. Array<int> levelHeight;
  13237. /* readonly */
  13238. Array<int> levelWidth;
  13239. /* readonly */
  13240. uint levels;
  13241. /* readonly */
  13242. bool levelsDirty;
  13243. /* readonly */
  13244. uint memoryUse;
  13245. Array<Variant> metadata;
  13246. Array<int> mipsToSkip;
  13247. /* readonly */
  13248. int multiSample;
  13249. String name;
  13250. /* readonly */
  13251. int refs;
  13252. /* readonly */
  13253. Array<RenderSurface> renderSurfaces;
  13254. /* readonly */
  13255. bool resolveDirty;
  13256. bool sRGB;
  13257. /* readonly */
  13258. StringHash type;
  13259. /* readonly */
  13260. String typeName;
  13261. /* readonly */
  13262. TextureUsage usage;
  13263. /* readonly */
  13264. uint useTimer;
  13265. /* readonly */
  13266. int weakRefs;
  13267. /* readonly */
  13268. int width;
  13269. };
  13270. class TextureFrame
  13271. {
  13272. public:
  13273. // Properties:
  13274. float time;
  13275. Rect uv;
  13276. };
  13277. class Tile2D
  13278. {
  13279. public:
  13280. // Methods:
  13281. bool HasProperty(const String&) const;
  13282. const String& GetProperty(const String&) const;
  13283. // Properties:
  13284. /* readonly */
  13285. bool flipX;
  13286. /* readonly */
  13287. bool flipY;
  13288. /* readonly */
  13289. uint gid;
  13290. /* readonly */
  13291. int refs;
  13292. /* readonly */
  13293. Sprite2D sprite;
  13294. /* readonly */
  13295. bool swapXY;
  13296. /* readonly */
  13297. int weakRefs;
  13298. };
  13299. class TileMap2D
  13300. {
  13301. public:
  13302. // Methods:
  13303. void ApplyAttributes();
  13304. void DrawDebugGeometry(DebugRenderer, bool);
  13305. Variant GetAttribute(const String&) const;
  13306. ValueAnimation GetAttributeAnimation(const String&) const;
  13307. float GetAttributeAnimationSpeed(const String&) const;
  13308. float GetAttributeAnimationTime(const String&) const;
  13309. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13310. Variant GetAttributeDefault(const String&) const;
  13311. bool GetInterceptNetworkUpdate(const String&) const;
  13312. TileMapLayer2D GetLayer(uint) const;
  13313. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  13314. bool HasSubscribedToEvent(Object, const String&);
  13315. bool HasSubscribedToEvent(const String&);
  13316. bool Load(File);
  13317. bool Load(VectorBuffer&);
  13318. bool LoadJSON(const JSONValue&);
  13319. bool LoadXML(const XMLElement&);
  13320. void MarkNetworkUpdate() const;
  13321. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  13322. void Remove();
  13323. void RemoveAttributeAnimation(const String&);
  13324. void RemoveInstanceDefault();
  13325. void RemoveObjectAnimation();
  13326. void ResetToDefault();
  13327. bool Save(File) const;
  13328. bool Save(VectorBuffer&) const;
  13329. bool SaveJSON(JSONValue&) const;
  13330. bool SaveXML(XMLElement&) const;
  13331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13332. void SetAnimationTime(float);
  13333. bool SetAttribute(const String&, const Variant&);
  13334. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13335. void SetAttributeAnimationSpeed(const String&, float);
  13336. void SetAttributeAnimationTime(const String&, float);
  13337. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13338. void SetInterceptNetworkUpdate(const String&, bool);
  13339. Vector2 TileIndexToPosition(int, int) const;
  13340. // Properties:
  13341. bool animationEnabled;
  13342. /* readonly */
  13343. Array<Variant> attributeDefaults;
  13344. /* readonly */
  13345. Array<AttributeInfo> attributeInfos;
  13346. Array<Variant> attributes;
  13347. /* readonly */
  13348. String category;
  13349. bool enabled;
  13350. /* readonly */
  13351. bool enabledEffective;
  13352. /* readonly */
  13353. uint id;
  13354. /* readonly */
  13355. TileMapInfo2D info;
  13356. /* readonly */
  13357. Node node;
  13358. /* readonly */
  13359. uint numAttributes;
  13360. /* readonly */
  13361. uint numLayers;
  13362. ObjectAnimation objectAnimation;
  13363. /* readonly */
  13364. int refs;
  13365. /* readonly */
  13366. bool replicated;
  13367. bool temporary;
  13368. TmxFile2D tmxFile;
  13369. /* readonly */
  13370. StringHash type;
  13371. /* readonly */
  13372. String typeName;
  13373. /* readonly */
  13374. int weakRefs;
  13375. };
  13376. class TileMapInfo2D
  13377. {
  13378. public:
  13379. // Properties:
  13380. int height;
  13381. /* readonly */
  13382. float mapHeight;
  13383. /* readonly */
  13384. float mapWidth;
  13385. Orientation2D orientation;
  13386. float tileHeight;
  13387. float tileWidth;
  13388. int width;
  13389. };
  13390. class TileMapLayer2D
  13391. {
  13392. public:
  13393. // Methods:
  13394. void ApplyAttributes();
  13395. void DrawDebugGeometry(DebugRenderer, bool);
  13396. Variant GetAttribute(const String&) const;
  13397. ValueAnimation GetAttributeAnimation(const String&) const;
  13398. float GetAttributeAnimationSpeed(const String&) const;
  13399. float GetAttributeAnimationTime(const String&) const;
  13400. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13401. Variant GetAttributeDefault(const String&) const;
  13402. bool GetInterceptNetworkUpdate(const String&) const;
  13403. TileMapObject2D GetObject(uint) const;
  13404. Node GetObjectNode(uint) const;
  13405. Tile2D GetTile(int, int) const;
  13406. Node GetTileNode(int, int) const;
  13407. bool HasProperty(const String&) const;
  13408. bool HasSubscribedToEvent(Object, const String&);
  13409. bool HasSubscribedToEvent(const String&);
  13410. bool Load(File);
  13411. bool Load(VectorBuffer&);
  13412. bool LoadJSON(const JSONValue&);
  13413. bool LoadXML(const XMLElement&);
  13414. void MarkNetworkUpdate() const;
  13415. void Remove();
  13416. void RemoveAttributeAnimation(const String&);
  13417. void RemoveInstanceDefault();
  13418. void RemoveObjectAnimation();
  13419. void ResetToDefault();
  13420. bool Save(File) const;
  13421. bool Save(VectorBuffer&) const;
  13422. bool SaveJSON(JSONValue&) const;
  13423. bool SaveXML(XMLElement&) const;
  13424. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13425. void SetAnimationTime(float);
  13426. bool SetAttribute(const String&, const Variant&);
  13427. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13428. void SetAttributeAnimationSpeed(const String&, float);
  13429. void SetAttributeAnimationTime(const String&, float);
  13430. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13431. void SetInterceptNetworkUpdate(const String&, bool);
  13432. const String& GetProperty(const String&) const;
  13433. // Properties:
  13434. bool animationEnabled;
  13435. /* readonly */
  13436. Array<Variant> attributeDefaults;
  13437. /* readonly */
  13438. Array<AttributeInfo> attributeInfos;
  13439. Array<Variant> attributes;
  13440. /* readonly */
  13441. String category;
  13442. int drawOrder;
  13443. bool enabled;
  13444. /* readonly */
  13445. bool enabledEffective;
  13446. /* readonly */
  13447. int height;
  13448. /* readonly */
  13449. uint id;
  13450. /* readonly */
  13451. Node imageNode;
  13452. /* readonly */
  13453. TileMapLayerType2D layerType;
  13454. /* readonly */
  13455. Node node;
  13456. /* readonly */
  13457. uint numAttributes;
  13458. /* readonly */
  13459. uint numObjects;
  13460. ObjectAnimation objectAnimation;
  13461. /* readonly */
  13462. int refs;
  13463. /* readonly */
  13464. bool replicated;
  13465. bool temporary;
  13466. /* readonly */
  13467. StringHash type;
  13468. /* readonly */
  13469. String typeName;
  13470. bool visible;
  13471. /* readonly */
  13472. int weakRefs;
  13473. /* readonly */
  13474. int width;
  13475. };
  13476. class TileMapObject2D
  13477. {
  13478. public:
  13479. // Methods:
  13480. bool HasProperty(const String&) const;
  13481. const String& GetProperty(const String&) const;
  13482. const Vector2& GetPoint(uint) const;
  13483. // Properties:
  13484. /* readonly */
  13485. String name;
  13486. /* readonly */
  13487. uint numPoints;
  13488. /* readonly */
  13489. TileObjectType2D objectType;
  13490. /* readonly */
  13491. Vector2 position;
  13492. /* readonly */
  13493. int refs;
  13494. /* readonly */
  13495. Vector2 size;
  13496. /* readonly */
  13497. bool tileFlipX;
  13498. /* readonly */
  13499. bool tileFlipY;
  13500. /* readonly */
  13501. uint tileGid;
  13502. /* readonly */
  13503. Sprite2D tileSprite;
  13504. /* readonly */
  13505. bool tileSwapXY;
  13506. /* readonly */
  13507. String type;
  13508. /* readonly */
  13509. int weakRefs;
  13510. };
  13511. class Time
  13512. {
  13513. public:
  13514. // Methods:
  13515. bool HasSubscribedToEvent(Object, const String&);
  13516. bool HasSubscribedToEvent(const String&);
  13517. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13518. // Properties:
  13519. /* readonly */
  13520. String category;
  13521. /* readonly */
  13522. float elapsedTime;
  13523. /* readonly */
  13524. uint frameNumber;
  13525. /* readonly */
  13526. float framesPerSecond;
  13527. /* readonly */
  13528. int refs;
  13529. /* readonly */
  13530. uint systemTime;
  13531. /* readonly */
  13532. uint timeSinceEpoch;
  13533. /* readonly */
  13534. String timeStamp;
  13535. /* readonly */
  13536. float timeStep;
  13537. /* readonly */
  13538. StringHash type;
  13539. /* readonly */
  13540. String typeName;
  13541. /* readonly */
  13542. int weakRefs;
  13543. };
  13544. class Timer
  13545. {
  13546. public:
  13547. Timer();
  13548. // Methods:
  13549. uint GetMSec(bool);
  13550. void Reset();
  13551. };
  13552. class TmxFile2D
  13553. {
  13554. public:
  13555. TmxFile2D();
  13556. TmxFile2D(const String&in);
  13557. // Methods:
  13558. bool HasSubscribedToEvent(Object, const String&);
  13559. bool HasSubscribedToEvent(const String&);
  13560. bool Load(File);
  13561. bool Load(VectorBuffer&);
  13562. bool Load(const String&);
  13563. bool Save(File) const;
  13564. bool Save(VectorBuffer&) const;
  13565. bool Save(const String&) const;
  13566. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13567. // Properties:
  13568. /* readonly */
  13569. String category;
  13570. float edgeOffset;
  13571. /* readonly */
  13572. uint memoryUse;
  13573. String name;
  13574. /* readonly */
  13575. int refs;
  13576. /* readonly */
  13577. StringHash type;
  13578. /* readonly */
  13579. String typeName;
  13580. /* readonly */
  13581. uint useTimer;
  13582. /* readonly */
  13583. int weakRefs;
  13584. };
  13585. class ToolTip
  13586. {
  13587. public:
  13588. ToolTip();
  13589. ToolTip(const String&in);
  13590. // Methods:
  13591. void AddChild(UIElement);
  13592. void AddTag(const String&);
  13593. void AddTags(const String&, int8 = ';');
  13594. void ApplyAttributes();
  13595. void BringToFront();
  13596. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13597. void DisableLayoutUpdate();
  13598. IntVector2 ElementToScreen(const IntVector2&);
  13599. void EnableLayoutUpdate();
  13600. uint FindChild(UIElement) const;
  13601. Variant GetAttribute(const String&) const;
  13602. ValueAnimation GetAttributeAnimation(const String&) const;
  13603. float GetAttributeAnimationSpeed(const String&) const;
  13604. float GetAttributeAnimationTime(const String&) const;
  13605. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13606. Variant GetAttributeDefault(const String&) const;
  13607. UIElement GetChild(const String&, bool = false) const;
  13608. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13609. Array<UIElement> GetChildren(bool = false) const;
  13610. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13611. UIElement GetElementEventSender() const;
  13612. bool GetInterceptNetworkUpdate(const String&) const;
  13613. uint GetNumChildren(bool) const;
  13614. bool HasSubscribedToEvent(Object, const String&);
  13615. bool HasSubscribedToEvent(const String&);
  13616. bool HasTag(const String&) const;
  13617. void InsertChild(uint, UIElement);
  13618. bool IsChildOf(UIElement) const;
  13619. bool IsInside(IntVector2, bool);
  13620. bool IsInsideCombined(IntVector2, bool);
  13621. bool Load(File);
  13622. bool Load(VectorBuffer&);
  13623. UIElement LoadChildXML(XMLFile, XMLFile);
  13624. UIElement LoadChildXML(const XMLElement&, XMLFile);
  13625. bool LoadJSON(const JSONValue&);
  13626. bool LoadXML(File);
  13627. bool LoadXML(VectorBuffer&);
  13628. bool LoadXML(XMLFile, XMLFile);
  13629. bool LoadXML(const XMLElement&, XMLFile);
  13630. bool LoadXML(const XMLElement&);
  13631. void MarkNetworkUpdate() const;
  13632. void Remove();
  13633. void RemoveAllChildren();
  13634. void RemoveAllTags();
  13635. void RemoveAttributeAnimation(const String&);
  13636. void RemoveChild(UIElement, uint = 0);
  13637. void RemoveChild(uint);
  13638. void RemoveInstanceDefault();
  13639. void RemoveObjectAnimation();
  13640. bool RemoveTag(const String&);
  13641. void Reset();
  13642. void ResetDeepEnabled();
  13643. void ResetToDefault();
  13644. bool Save(File) const;
  13645. bool Save(VectorBuffer&) const;
  13646. bool SaveJSON(JSONValue&) const;
  13647. bool SaveXML(File, const String& = "\t");
  13648. bool SaveXML(VectorBuffer&, const String& = "\t");
  13649. bool SaveXML(XMLElement&) const;
  13650. IntVector2 ScreenToElement(const IntVector2&);
  13651. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13652. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13653. void SetAnimationTime(float);
  13654. bool SetAttribute(const String&, const Variant&);
  13655. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13656. void SetAttributeAnimationSpeed(const String&, float);
  13657. void SetAttributeAnimationTime(const String&, float);
  13658. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13659. void SetDeepEnabled(bool);
  13660. void SetEnabledRecursive(bool);
  13661. void SetFixedHeight(int);
  13662. void SetFixedSize(int, int);
  13663. void SetFixedWidth(int);
  13664. void SetInterceptNetworkUpdate(const String&, bool);
  13665. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13666. void SetMaxAnchor(float, float);
  13667. void SetMaxSize(int, int);
  13668. void SetMinAnchor(float, float);
  13669. void SetMinSize(int, int);
  13670. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13671. void SetPivot(float, float);
  13672. void SetPosition(int, int);
  13673. void SetSize(int, int);
  13674. bool SetStyle(const String&, XMLFile = null);
  13675. bool SetStyle(const XMLElement&);
  13676. bool SetStyleAuto(XMLFile = null);
  13677. void UpdateLayout();
  13678. const Variant& GetVar(const StringHash&);
  13679. void add_altTarget(UIElement);
  13680. // Properties:
  13681. bool animationEnabled;
  13682. /* readonly */
  13683. Array<Variant> attributeDefaults;
  13684. /* readonly */
  13685. Array<AttributeInfo> attributeInfos;
  13686. Array<Variant> attributes;
  13687. bool bringToBack;
  13688. bool bringToFront;
  13689. /* readonly */
  13690. String category;
  13691. /* readonly */
  13692. IntVector2 childOffset;
  13693. /* readonly */
  13694. Array<UIElement> children;
  13695. IntRect clipBorder;
  13696. bool clipChildren;
  13697. /* writeonly */
  13698. Color color;
  13699. /* readonly */
  13700. bool colorGradient;
  13701. Array<Color> colors;
  13702. /* readonly */
  13703. IntRect combinedScreenRect;
  13704. XMLFile defaultStyle;
  13705. float delay;
  13706. /* readonly */
  13707. float derivedOpacity;
  13708. /* readonly */
  13709. uint dragButtonCombo;
  13710. /* readonly */
  13711. int dragButtonCount;
  13712. uint dragDropMode;
  13713. bool editable;
  13714. bool elementEventSender;
  13715. bool enableAnchor;
  13716. bool enabled;
  13717. /* readonly */
  13718. bool enabledSelf;
  13719. /* readonly */
  13720. bool fixedHeight;
  13721. /* readonly */
  13722. bool fixedSize;
  13723. /* readonly */
  13724. bool fixedWidth;
  13725. bool focus;
  13726. FocusMode focusMode;
  13727. int height;
  13728. HorizontalAlignment horizontalAlignment;
  13729. /* readonly */
  13730. bool hovering;
  13731. int indent;
  13732. int indentSpacing;
  13733. /* readonly */
  13734. int indentWidth;
  13735. bool internal;
  13736. IntRect layoutBorder;
  13737. Vector2 layoutFlexScale;
  13738. LayoutMode layoutMode;
  13739. int layoutSpacing;
  13740. Vector2 maxAnchor;
  13741. int maxHeight;
  13742. IntVector2 maxOffset;
  13743. IntVector2 maxSize;
  13744. int maxWidth;
  13745. Vector2 minAnchor;
  13746. int minHeight;
  13747. IntVector2 minOffset;
  13748. IntVector2 minSize;
  13749. int minWidth;
  13750. String name;
  13751. /* readonly */
  13752. uint numAllChildren;
  13753. /* readonly */
  13754. uint numAttributes;
  13755. /* readonly */
  13756. uint numChildren;
  13757. ObjectAnimation objectAnimation;
  13758. float opacity;
  13759. UIElement parent;
  13760. Vector2 pivot;
  13761. IntVector2 position;
  13762. int priority;
  13763. /* readonly */
  13764. int refs;
  13765. /* readonly */
  13766. UIElement root;
  13767. /* readonly */
  13768. IntVector2 screenPosition;
  13769. bool selected;
  13770. IntVector2 size;
  13771. bool sortChildren;
  13772. String style;
  13773. /* readonly */
  13774. Array<String> tags;
  13775. bool temporary;
  13776. TraversalMode traversalMode;
  13777. /* readonly */
  13778. StringHash type;
  13779. /* readonly */
  13780. String typeName;
  13781. bool useDerivedOpacity;
  13782. /* readonly */
  13783. VariantMap vars;
  13784. VerticalAlignment verticalAlignment;
  13785. bool visible;
  13786. /* readonly */
  13787. bool visibleEffective;
  13788. /* readonly */
  13789. int weakRefs;
  13790. int width;
  13791. };
  13792. class TouchState
  13793. {
  13794. public:
  13795. // Properties:
  13796. IntVector2 delta;
  13797. IntVector2 lastPosition;
  13798. IntVector2 position;
  13799. float pressure;
  13800. int touchID;
  13801. /* readonly */
  13802. UIElement touchedElement;
  13803. };
  13804. class UI
  13805. {
  13806. public:
  13807. // Methods:
  13808. void Clear();
  13809. void DebugDraw(UIElement);
  13810. UIElement GetElementAt(const IntVector2&, bool = true);
  13811. UIElement GetElementAt(int, int, bool = true);
  13812. bool HasModalElement() const;
  13813. bool HasSubscribedToEvent(Object, const String&);
  13814. bool HasSubscribedToEvent(const String&);
  13815. bool IsDragging() const;
  13816. UIElement LoadLayout(File);
  13817. UIElement LoadLayout(File, XMLFile);
  13818. UIElement LoadLayout(VectorBuffer&);
  13819. UIElement LoadLayout(VectorBuffer&, XMLFile);
  13820. UIElement LoadLayout(XMLFile);
  13821. UIElement LoadLayout(XMLFile, XMLFile);
  13822. bool SaveLayout(File, UIElement);
  13823. bool SaveLayout(VectorBuffer&, UIElement);
  13824. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13825. void SetCustomSize(int, int);
  13826. void SetFocusElement(UIElement, bool = false);
  13827. void SetHeight(float);
  13828. void SetWidth(float);
  13829. const Array<UIElement> GetDragElements();
  13830. // Properties:
  13831. /* readonly */
  13832. String category;
  13833. String clipBoardText;
  13834. Cursor cursor;
  13835. /* readonly */
  13836. IntVector2 cursorPosition;
  13837. IntVector2 customSize;
  13838. float defaultToolTipDelay;
  13839. float doubleClickInterval;
  13840. int dragBeginDistance;
  13841. float dragBeginInterval;
  13842. UIElement focusElement;
  13843. FontHintLevel fontHintLevel;
  13844. int fontOversampling;
  13845. float fontSubpixelThreshold;
  13846. bool forceAutoHint;
  13847. /* readonly */
  13848. UIElement frontElement;
  13849. float maxDoubleClickDistance;
  13850. int maxFontTextureSize;
  13851. /* readonly */
  13852. UIElement modalRoot;
  13853. bool nonFocusedMouseWheel;
  13854. /* readonly */
  13855. int refs;
  13856. /* readonly */
  13857. UIElement root;
  13858. float scale;
  13859. /* readonly */
  13860. StringHash type;
  13861. /* readonly */
  13862. String typeName;
  13863. bool useMutableGlyphs;
  13864. bool useScreenKeyboard;
  13865. bool useSystemClipboard;
  13866. /* readonly */
  13867. int weakRefs;
  13868. };
  13869. class UIComponent
  13870. {
  13871. public:
  13872. // Methods:
  13873. void ApplyAttributes();
  13874. Variant GetAttribute(const String&) const;
  13875. ValueAnimation GetAttributeAnimation(const String&) const;
  13876. float GetAttributeAnimationSpeed(const String&) const;
  13877. float GetAttributeAnimationTime(const String&) const;
  13878. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13879. Variant GetAttributeDefault(const String&) const;
  13880. bool GetInterceptNetworkUpdate(const String&) const;
  13881. bool HasSubscribedToEvent(Object, const String&);
  13882. bool HasSubscribedToEvent(const String&);
  13883. bool Load(File);
  13884. bool Load(VectorBuffer&);
  13885. bool LoadJSON(const JSONValue&);
  13886. bool LoadXML(const XMLElement&);
  13887. void MarkNetworkUpdate() const;
  13888. void Remove();
  13889. void RemoveAttributeAnimation(const String&);
  13890. void RemoveInstanceDefault();
  13891. void RemoveObjectAnimation();
  13892. void ResetToDefault();
  13893. bool Save(File) const;
  13894. bool Save(VectorBuffer&) const;
  13895. bool SaveJSON(JSONValue&) const;
  13896. bool SaveXML(XMLElement&) const;
  13897. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13898. void SetAnimationTime(float);
  13899. bool SetAttribute(const String&, const Variant&);
  13900. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13901. void SetAttributeAnimationSpeed(const String&, float);
  13902. void SetAttributeAnimationTime(const String&, float);
  13903. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13904. void SetInterceptNetworkUpdate(const String&, bool);
  13905. // Properties:
  13906. bool animationEnabled;
  13907. /* readonly */
  13908. Array<Variant> attributeDefaults;
  13909. /* readonly */
  13910. Array<AttributeInfo> attributeInfos;
  13911. Array<Variant> attributes;
  13912. /* readonly */
  13913. String category;
  13914. bool enabled;
  13915. /* readonly */
  13916. bool enabledEffective;
  13917. /* readonly */
  13918. uint id;
  13919. /* readonly */
  13920. Material material;
  13921. /* readonly */
  13922. Node node;
  13923. /* readonly */
  13924. uint numAttributes;
  13925. ObjectAnimation objectAnimation;
  13926. /* readonly */
  13927. int refs;
  13928. /* readonly */
  13929. bool replicated;
  13930. /* readonly */
  13931. UIElement root;
  13932. bool temporary;
  13933. /* readonly */
  13934. Texture2D texture;
  13935. /* readonly */
  13936. StringHash type;
  13937. /* readonly */
  13938. String typeName;
  13939. /* readonly */
  13940. int weakRefs;
  13941. };
  13942. class UIElement
  13943. {
  13944. public:
  13945. UIElement();
  13946. UIElement(const String&in);
  13947. // Methods:
  13948. void AddChild(UIElement);
  13949. void AddTag(const String&);
  13950. void AddTags(const String&, int8 = ';');
  13951. void ApplyAttributes();
  13952. void BringToFront();
  13953. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13954. void DisableLayoutUpdate();
  13955. IntVector2 ElementToScreen(const IntVector2&);
  13956. void EnableLayoutUpdate();
  13957. uint FindChild(UIElement) const;
  13958. Variant GetAttribute(const String&) const;
  13959. ValueAnimation GetAttributeAnimation(const String&) const;
  13960. float GetAttributeAnimationSpeed(const String&) const;
  13961. float GetAttributeAnimationTime(const String&) const;
  13962. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13963. Variant GetAttributeDefault(const String&) const;
  13964. UIElement GetChild(const String&, bool = false) const;
  13965. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13966. Array<UIElement> GetChildren(bool = false) const;
  13967. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13968. UIElement GetElementEventSender() const;
  13969. bool GetInterceptNetworkUpdate(const String&) const;
  13970. uint GetNumChildren(bool) const;
  13971. bool HasSubscribedToEvent(Object, const String&);
  13972. bool HasSubscribedToEvent(const String&);
  13973. bool HasTag(const String&) const;
  13974. void InsertChild(uint, UIElement);
  13975. bool IsChildOf(UIElement) const;
  13976. bool IsInside(IntVector2, bool);
  13977. bool IsInsideCombined(IntVector2, bool);
  13978. bool Load(File);
  13979. bool Load(VectorBuffer&);
  13980. UIElement LoadChildXML(XMLFile, XMLFile);
  13981. UIElement LoadChildXML(const XMLElement&, XMLFile);
  13982. bool LoadJSON(const JSONValue&);
  13983. bool LoadXML(File);
  13984. bool LoadXML(VectorBuffer&);
  13985. bool LoadXML(XMLFile, XMLFile);
  13986. bool LoadXML(const XMLElement&, XMLFile);
  13987. bool LoadXML(const XMLElement&);
  13988. void MarkNetworkUpdate() const;
  13989. void Remove();
  13990. void RemoveAllChildren();
  13991. void RemoveAllTags();
  13992. void RemoveAttributeAnimation(const String&);
  13993. void RemoveChild(UIElement, uint = 0);
  13994. void RemoveChild(uint);
  13995. void RemoveInstanceDefault();
  13996. void RemoveObjectAnimation();
  13997. bool RemoveTag(const String&);
  13998. void ResetDeepEnabled();
  13999. void ResetToDefault();
  14000. bool Save(File) const;
  14001. bool Save(VectorBuffer&) const;
  14002. bool SaveJSON(JSONValue&) const;
  14003. bool SaveXML(File, const String& = "\t");
  14004. bool SaveXML(VectorBuffer&, const String& = "\t");
  14005. bool SaveXML(XMLElement&) const;
  14006. IntVector2 ScreenToElement(const IntVector2&);
  14007. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14008. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14009. void SetAnimationTime(float);
  14010. bool SetAttribute(const String&, const Variant&);
  14011. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14012. void SetAttributeAnimationSpeed(const String&, float);
  14013. void SetAttributeAnimationTime(const String&, float);
  14014. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14015. void SetDeepEnabled(bool);
  14016. void SetEnabledRecursive(bool);
  14017. void SetFixedHeight(int);
  14018. void SetFixedSize(int, int);
  14019. void SetFixedWidth(int);
  14020. void SetInterceptNetworkUpdate(const String&, bool);
  14021. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14022. void SetMaxAnchor(float, float);
  14023. void SetMaxSize(int, int);
  14024. void SetMinAnchor(float, float);
  14025. void SetMinSize(int, int);
  14026. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14027. void SetPivot(float, float);
  14028. void SetPosition(int, int);
  14029. void SetSize(int, int);
  14030. bool SetStyle(const String&, XMLFile = null);
  14031. bool SetStyle(const XMLElement&);
  14032. bool SetStyleAuto(XMLFile = null);
  14033. void UpdateLayout();
  14034. const Variant& GetVar(const StringHash&);
  14035. // Properties:
  14036. bool animationEnabled;
  14037. /* readonly */
  14038. Array<Variant> attributeDefaults;
  14039. /* readonly */
  14040. Array<AttributeInfo> attributeInfos;
  14041. Array<Variant> attributes;
  14042. bool bringToBack;
  14043. bool bringToFront;
  14044. /* readonly */
  14045. String category;
  14046. /* readonly */
  14047. IntVector2 childOffset;
  14048. /* readonly */
  14049. Array<UIElement> children;
  14050. IntRect clipBorder;
  14051. bool clipChildren;
  14052. /* writeonly */
  14053. Color color;
  14054. /* readonly */
  14055. bool colorGradient;
  14056. Array<Color> colors;
  14057. /* readonly */
  14058. IntRect combinedScreenRect;
  14059. XMLFile defaultStyle;
  14060. /* readonly */
  14061. float derivedOpacity;
  14062. /* readonly */
  14063. uint dragButtonCombo;
  14064. /* readonly */
  14065. int dragButtonCount;
  14066. uint dragDropMode;
  14067. bool editable;
  14068. bool elementEventSender;
  14069. bool enableAnchor;
  14070. bool enabled;
  14071. /* readonly */
  14072. bool enabledSelf;
  14073. /* readonly */
  14074. bool fixedHeight;
  14075. /* readonly */
  14076. bool fixedSize;
  14077. /* readonly */
  14078. bool fixedWidth;
  14079. bool focus;
  14080. FocusMode focusMode;
  14081. int height;
  14082. HorizontalAlignment horizontalAlignment;
  14083. /* readonly */
  14084. bool hovering;
  14085. int indent;
  14086. int indentSpacing;
  14087. /* readonly */
  14088. int indentWidth;
  14089. bool internal;
  14090. IntRect layoutBorder;
  14091. Vector2 layoutFlexScale;
  14092. LayoutMode layoutMode;
  14093. int layoutSpacing;
  14094. Vector2 maxAnchor;
  14095. int maxHeight;
  14096. IntVector2 maxOffset;
  14097. IntVector2 maxSize;
  14098. int maxWidth;
  14099. Vector2 minAnchor;
  14100. int minHeight;
  14101. IntVector2 minOffset;
  14102. IntVector2 minSize;
  14103. int minWidth;
  14104. String name;
  14105. /* readonly */
  14106. uint numAllChildren;
  14107. /* readonly */
  14108. uint numAttributes;
  14109. /* readonly */
  14110. uint numChildren;
  14111. ObjectAnimation objectAnimation;
  14112. float opacity;
  14113. UIElement parent;
  14114. Vector2 pivot;
  14115. IntVector2 position;
  14116. int priority;
  14117. /* readonly */
  14118. int refs;
  14119. /* readonly */
  14120. UIElement root;
  14121. /* readonly */
  14122. IntVector2 screenPosition;
  14123. bool selected;
  14124. IntVector2 size;
  14125. bool sortChildren;
  14126. String style;
  14127. /* readonly */
  14128. Array<String> tags;
  14129. bool temporary;
  14130. TraversalMode traversalMode;
  14131. /* readonly */
  14132. StringHash type;
  14133. /* readonly */
  14134. String typeName;
  14135. bool useDerivedOpacity;
  14136. /* readonly */
  14137. VariantMap vars;
  14138. VerticalAlignment verticalAlignment;
  14139. bool visible;
  14140. /* readonly */
  14141. bool visibleEffective;
  14142. /* readonly */
  14143. int weakRefs;
  14144. int width;
  14145. };
  14146. class UISelectable
  14147. {
  14148. public:
  14149. UISelectable();
  14150. UISelectable(const String&in);
  14151. // Methods:
  14152. void AddChild(UIElement);
  14153. void AddTag(const String&);
  14154. void AddTags(const String&, int8 = ';');
  14155. void ApplyAttributes();
  14156. void BringToFront();
  14157. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14158. void DisableLayoutUpdate();
  14159. IntVector2 ElementToScreen(const IntVector2&);
  14160. void EnableLayoutUpdate();
  14161. uint FindChild(UIElement) const;
  14162. Variant GetAttribute(const String&) const;
  14163. ValueAnimation GetAttributeAnimation(const String&) const;
  14164. float GetAttributeAnimationSpeed(const String&) const;
  14165. float GetAttributeAnimationTime(const String&) const;
  14166. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14167. Variant GetAttributeDefault(const String&) const;
  14168. UIElement GetChild(const String&, bool = false) const;
  14169. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14170. Array<UIElement> GetChildren(bool = false) const;
  14171. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14172. UIElement GetElementEventSender() const;
  14173. bool GetInterceptNetworkUpdate(const String&) const;
  14174. uint GetNumChildren(bool) const;
  14175. bool HasSubscribedToEvent(Object, const String&);
  14176. bool HasSubscribedToEvent(const String&);
  14177. bool HasTag(const String&) const;
  14178. void InsertChild(uint, UIElement);
  14179. bool IsChildOf(UIElement) const;
  14180. bool IsInside(IntVector2, bool);
  14181. bool IsInsideCombined(IntVector2, bool);
  14182. bool Load(File);
  14183. bool Load(VectorBuffer&);
  14184. UIElement LoadChildXML(XMLFile, XMLFile);
  14185. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14186. bool LoadJSON(const JSONValue&);
  14187. bool LoadXML(File);
  14188. bool LoadXML(VectorBuffer&);
  14189. bool LoadXML(XMLFile, XMLFile);
  14190. bool LoadXML(const XMLElement&, XMLFile);
  14191. bool LoadXML(const XMLElement&);
  14192. void MarkNetworkUpdate() const;
  14193. void Remove();
  14194. void RemoveAllChildren();
  14195. void RemoveAllTags();
  14196. void RemoveAttributeAnimation(const String&);
  14197. void RemoveChild(UIElement, uint = 0);
  14198. void RemoveChild(uint);
  14199. void RemoveInstanceDefault();
  14200. void RemoveObjectAnimation();
  14201. bool RemoveTag(const String&);
  14202. void ResetDeepEnabled();
  14203. void ResetToDefault();
  14204. bool Save(File) const;
  14205. bool Save(VectorBuffer&) const;
  14206. bool SaveJSON(JSONValue&) const;
  14207. bool SaveXML(File, const String& = "\t");
  14208. bool SaveXML(VectorBuffer&, const String& = "\t");
  14209. bool SaveXML(XMLElement&) const;
  14210. IntVector2 ScreenToElement(const IntVector2&);
  14211. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14212. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14213. void SetAnimationTime(float);
  14214. bool SetAttribute(const String&, const Variant&);
  14215. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14216. void SetAttributeAnimationSpeed(const String&, float);
  14217. void SetAttributeAnimationTime(const String&, float);
  14218. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14219. void SetDeepEnabled(bool);
  14220. void SetEnabledRecursive(bool);
  14221. void SetFixedHeight(int);
  14222. void SetFixedSize(int, int);
  14223. void SetFixedWidth(int);
  14224. void SetInterceptNetworkUpdate(const String&, bool);
  14225. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14226. void SetMaxAnchor(float, float);
  14227. void SetMaxSize(int, int);
  14228. void SetMinAnchor(float, float);
  14229. void SetMinSize(int, int);
  14230. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14231. void SetPivot(float, float);
  14232. void SetPosition(int, int);
  14233. void SetSize(int, int);
  14234. bool SetStyle(const String&, XMLFile = null);
  14235. bool SetStyle(const XMLElement&);
  14236. bool SetStyleAuto(XMLFile = null);
  14237. void UpdateLayout();
  14238. const Variant& GetVar(const StringHash&);
  14239. // Properties:
  14240. bool animationEnabled;
  14241. /* readonly */
  14242. Array<Variant> attributeDefaults;
  14243. /* readonly */
  14244. Array<AttributeInfo> attributeInfos;
  14245. Array<Variant> attributes;
  14246. bool bringToBack;
  14247. bool bringToFront;
  14248. /* readonly */
  14249. String category;
  14250. /* readonly */
  14251. IntVector2 childOffset;
  14252. /* readonly */
  14253. Array<UIElement> children;
  14254. IntRect clipBorder;
  14255. bool clipChildren;
  14256. /* writeonly */
  14257. Color color;
  14258. /* readonly */
  14259. bool colorGradient;
  14260. Array<Color> colors;
  14261. /* readonly */
  14262. IntRect combinedScreenRect;
  14263. XMLFile defaultStyle;
  14264. /* readonly */
  14265. float derivedOpacity;
  14266. /* readonly */
  14267. uint dragButtonCombo;
  14268. /* readonly */
  14269. int dragButtonCount;
  14270. uint dragDropMode;
  14271. bool editable;
  14272. bool elementEventSender;
  14273. bool enableAnchor;
  14274. bool enabled;
  14275. /* readonly */
  14276. bool enabledSelf;
  14277. /* readonly */
  14278. bool fixedHeight;
  14279. /* readonly */
  14280. bool fixedSize;
  14281. /* readonly */
  14282. bool fixedWidth;
  14283. bool focus;
  14284. FocusMode focusMode;
  14285. int height;
  14286. HorizontalAlignment horizontalAlignment;
  14287. Color hoverColor;
  14288. /* readonly */
  14289. bool hovering;
  14290. int indent;
  14291. int indentSpacing;
  14292. /* readonly */
  14293. int indentWidth;
  14294. bool internal;
  14295. IntRect layoutBorder;
  14296. Vector2 layoutFlexScale;
  14297. LayoutMode layoutMode;
  14298. int layoutSpacing;
  14299. Vector2 maxAnchor;
  14300. int maxHeight;
  14301. IntVector2 maxOffset;
  14302. IntVector2 maxSize;
  14303. int maxWidth;
  14304. Vector2 minAnchor;
  14305. int minHeight;
  14306. IntVector2 minOffset;
  14307. IntVector2 minSize;
  14308. int minWidth;
  14309. String name;
  14310. /* readonly */
  14311. uint numAllChildren;
  14312. /* readonly */
  14313. uint numAttributes;
  14314. /* readonly */
  14315. uint numChildren;
  14316. ObjectAnimation objectAnimation;
  14317. float opacity;
  14318. UIElement parent;
  14319. Vector2 pivot;
  14320. IntVector2 position;
  14321. int priority;
  14322. /* readonly */
  14323. int refs;
  14324. /* readonly */
  14325. UIElement root;
  14326. /* readonly */
  14327. IntVector2 screenPosition;
  14328. bool selected;
  14329. Color selectionColor;
  14330. IntVector2 size;
  14331. bool sortChildren;
  14332. String style;
  14333. /* readonly */
  14334. Array<String> tags;
  14335. bool temporary;
  14336. TraversalMode traversalMode;
  14337. /* readonly */
  14338. StringHash type;
  14339. /* readonly */
  14340. String typeName;
  14341. bool useDerivedOpacity;
  14342. /* readonly */
  14343. VariantMap vars;
  14344. VerticalAlignment verticalAlignment;
  14345. bool visible;
  14346. /* readonly */
  14347. bool visibleEffective;
  14348. /* readonly */
  14349. int weakRefs;
  14350. int width;
  14351. };
  14352. class ValueAnimation
  14353. {
  14354. public:
  14355. ValueAnimation();
  14356. ValueAnimation(const String&in);
  14357. // Methods:
  14358. bool HasSubscribedToEvent(Object, const String&);
  14359. bool HasSubscribedToEvent(const String&);
  14360. bool Load(File);
  14361. bool Load(VectorBuffer&);
  14362. bool Load(const String&);
  14363. bool Save(File) const;
  14364. bool Save(VectorBuffer&) const;
  14365. bool Save(const String&) const;
  14366. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14367. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  14368. void SetKeyFrame(float, const Variant&);
  14369. // Properties:
  14370. /* readonly */
  14371. String category;
  14372. InterpMethod interpolationMethod;
  14373. /* readonly */
  14374. uint memoryUse;
  14375. String name;
  14376. /* readonly */
  14377. int refs;
  14378. float splineTension;
  14379. /* readonly */
  14380. StringHash type;
  14381. /* readonly */
  14382. String typeName;
  14383. /* readonly */
  14384. uint useTimer;
  14385. VariantType valueType;
  14386. /* readonly */
  14387. int weakRefs;
  14388. };
  14389. class Variant
  14390. {
  14391. public:
  14392. ~Variant();
  14393. Variant();
  14394. Variant(const Variant&in);
  14395. Variant(int);
  14396. Variant(uint);
  14397. Variant(int64);
  14398. Variant(uint64);
  14399. Variant(const StringHash&in);
  14400. Variant(bool);
  14401. Variant(float);
  14402. Variant(double);
  14403. Variant(const Vector2&in);
  14404. Variant(const Vector3&in);
  14405. Variant(const Vector4&in);
  14406. Variant(const Quaternion&in);
  14407. Variant(const Color&in);
  14408. Variant(const String&in);
  14409. Variant(const ResourceRef&in);
  14410. Variant(const ResourceRefList&in);
  14411. Variant(const Variant[]@);
  14412. Variant(const String[]@);
  14413. Variant(const VariantMap&in);
  14414. Variant(const Rect&in);
  14415. Variant(const IntRect&in);
  14416. Variant(const IntVector2&in);
  14417. Variant(const IntVector3&in);
  14418. Variant(RefCounted@);
  14419. Variant(ScriptObject@);
  14420. Variant(const Matrix3&in);
  14421. Variant(const Matrix3x4&in);
  14422. Variant(const Matrix4&in);
  14423. Variant(const String&in, const String&in);
  14424. Variant(VariantType, const String&in);
  14425. Variant(const VectorBuffer&in);
  14426. // Methods:
  14427. void Clear();
  14428. const Color& GetColor() const;
  14429. void FromString(VariantType, const String&);
  14430. void FromString(const String&, const String&);
  14431. bool GetBool() const;
  14432. VectorBuffer GetBuffer() const;
  14433. double GetDouble() const;
  14434. float GetFloat() const;
  14435. int GetInt() const;
  14436. int GetInt64() const;
  14437. RefCounted GetPtr() const;
  14438. ScriptObject GetScriptObject() const;
  14439. StringHash GetStringHash() const;
  14440. Array<String> GetStringVector() const;
  14441. uint GetUInt() const;
  14442. uint64 GetUInt64() const;
  14443. Array<Variant> GetVariantVector() const;
  14444. const IntRect& GetIntRect() const;
  14445. const IntVector2& GetIntVector2() const;
  14446. const IntVector3& GetIntVector3() const;
  14447. const Matrix3& GetMatrix3() const;
  14448. const Matrix3x4& GetMatrix3x4() const;
  14449. const Matrix4& GetMatrix4() const;
  14450. const Quaternion& GetQuaternion() const;
  14451. const Rect& GetRect() const;
  14452. const ResourceRef& GetResourceRef() const;
  14453. const ResourceRefList& GetResourceRefList() const;
  14454. const String& GetString() const;
  14455. String ToString() const;
  14456. const VariantMap& GetVariantMap() const;
  14457. const Vector2& GetVector2() const;
  14458. const Vector3& GetVector3() const;
  14459. const Vector4& GetVector4() const;
  14460. // Properties:
  14461. /* readonly */
  14462. bool empty;
  14463. /* readonly */
  14464. VariantType type;
  14465. /* readonly */
  14466. String typeName;
  14467. /* readonly */
  14468. bool zero;
  14469. };
  14470. class VariantMap
  14471. {
  14472. public:
  14473. ~VariantMap();
  14474. VariantMap();
  14475. VariantMap(const VariantMap&in);
  14476. // Methods:
  14477. void Clear();
  14478. bool Contains(StringHash) const;
  14479. bool Contains(const String&) const;
  14480. bool Erase(StringHash);
  14481. bool Erase(const String&);
  14482. // Properties:
  14483. /* readonly */
  14484. Array<StringHash> keys;
  14485. /* readonly */
  14486. uint length;
  14487. /* readonly */
  14488. Array<Variant> values;
  14489. };
  14490. class Vector2
  14491. {
  14492. public:
  14493. Vector2();
  14494. Vector2(const Vector2&in);
  14495. Vector2(const IntVector2&in);
  14496. Vector2(float, float);
  14497. Vector2(float[]&inout);
  14498. // Methods:
  14499. Vector2 Abs() const;
  14500. float AbsDotProduct(const Vector2&) const;
  14501. float Angle(const Vector2&) const;
  14502. float DotProduct(const Vector2&) const;
  14503. bool Equals(const Vector2&) const;
  14504. bool IsNaN() const;
  14505. Vector2 Lerp(const Vector2&, float) const;
  14506. void Normalize();
  14507. Vector2 Normalized() const;
  14508. float ProjectOntoAxis(const Vector2&) const;
  14509. String ToString() const;
  14510. // Properties:
  14511. /* readonly */
  14512. Array<float> data;
  14513. /* readonly */
  14514. float length;
  14515. /* readonly */
  14516. float lengthSquared;
  14517. float x;
  14518. float y;
  14519. // Constants:
  14520. static const Vector2 DOWN;
  14521. static const Vector2 LEFT;
  14522. static const Vector2 ONE;
  14523. static const Vector2 RIGHT;
  14524. static const Vector2 UP;
  14525. static const Vector2 ZERO;
  14526. };
  14527. class Vector3
  14528. {
  14529. public:
  14530. Vector3();
  14531. Vector3(const Vector3&in);
  14532. Vector3(const Vector2&in, float);
  14533. Vector3(const Vector2&in);
  14534. Vector3(const IntVector3&in);
  14535. Vector3(float, float, float);
  14536. Vector3(float, float);
  14537. Vector3(float[]&inout);
  14538. // Methods:
  14539. Vector3 Abs() const;
  14540. float AbsDotProduct(const Vector3&) const;
  14541. float Angle(const Vector3&) const;
  14542. Vector3 CrossProduct(const Vector3&) const;
  14543. float DistanceToPlane(const Vector3&, const Vector3&) const;
  14544. float DistanceToPoint(const Vector3&) const;
  14545. float DotProduct(const Vector3&) const;
  14546. bool Equals(const Vector3&) const;
  14547. bool IsNaN() const;
  14548. Vector3 Lerp(const Vector3&, float) const;
  14549. void Normalize();
  14550. Vector3 Normalized() const;
  14551. Vector3 Orthogonalize(const Vector3&) const;
  14552. float ProjectOntoAxis(const Vector3&) const;
  14553. Vector3 ProjectOntoLine(const Vector3&, const Vector3&, bool = false) const;
  14554. Vector3 ProjectOntoPlane(const Vector3&, const Vector3&) const;
  14555. String ToString() const;
  14556. // Properties:
  14557. /* readonly */
  14558. Array<float> data;
  14559. /* readonly */
  14560. float length;
  14561. /* readonly */
  14562. float lengthSquared;
  14563. float x;
  14564. float y;
  14565. float z;
  14566. // Constants:
  14567. static const Vector3 BACK;
  14568. static const Vector3 DOWN;
  14569. static const Vector3 FORWARD;
  14570. static const Vector3 LEFT;
  14571. static const Vector3 ONE;
  14572. static const Vector3 RIGHT;
  14573. static const Vector3 UP;
  14574. static const Vector3 ZERO;
  14575. };
  14576. class Vector4
  14577. {
  14578. public:
  14579. Vector4();
  14580. Vector4(const Vector4&in);
  14581. Vector4(float, float, float, float);
  14582. Vector4(const Vector3&in, float);
  14583. Vector4(float[]&inout);
  14584. // Methods:
  14585. Vector4 Abs() const;
  14586. float AbsDotProduct(const Vector4&) const;
  14587. float DotProduct(const Vector4&) const;
  14588. bool Equals(const Vector4&) const;
  14589. bool IsNaN() const;
  14590. Vector4 Lerp(const Vector4&, float) const;
  14591. float ProjectOntoAxis(const Vector3&) const;
  14592. String ToString() const;
  14593. // Properties:
  14594. /* readonly */
  14595. Array<float> data;
  14596. float w;
  14597. float x;
  14598. float y;
  14599. float z;
  14600. };
  14601. class VectorBuffer
  14602. {
  14603. public:
  14604. ~VectorBuffer();
  14605. VectorBuffer();
  14606. VectorBuffer(const VectorBuffer&in);
  14607. VectorBuffer(Deserializer@, uint);
  14608. // Methods:
  14609. void Clear();
  14610. Array<uint8> Read(uint);
  14611. bool ReadBool();
  14612. BoundingBox ReadBoundingBox();
  14613. int8 ReadByte();
  14614. Color ReadColor();
  14615. double ReadDouble();
  14616. String ReadFileID();
  14617. float ReadFloat();
  14618. int ReadInt();
  14619. int64 ReadInt64();
  14620. IntRect ReadIntRect();
  14621. IntVector2 ReadIntVector2();
  14622. String ReadLine();
  14623. Matrix3 ReadMatrix3();
  14624. Matrix3x4 ReadMatrix3x4();
  14625. Matrix4 ReadMatrix4();
  14626. uint ReadNetID();
  14627. Quaternion ReadPackedQuaternion();
  14628. Vector3 ReadPackedVector3(float);
  14629. Quaternion ReadQuaternion();
  14630. int16 ReadShort();
  14631. String ReadString();
  14632. StringHash ReadStringHash();
  14633. uint8 ReadUByte();
  14634. uint ReadUInt();
  14635. uint64 ReadUInt64();
  14636. uint16 ReadUShort();
  14637. uint ReadVLE();
  14638. Variant ReadVariant();
  14639. VariantMap ReadVariantMap();
  14640. Vector2 ReadVector2();
  14641. Vector3 ReadVector3();
  14642. Vector4 ReadVector4();
  14643. VectorBuffer ReadVectorBuffer(uint);
  14644. void Resize(uint);
  14645. uint Seek(uint);
  14646. uint SeekRelative(int);
  14647. void SetData(Deserializer, uint);
  14648. uint Tell() const;
  14649. uint Write(Array<uint8>);
  14650. bool WriteBool(bool);
  14651. bool WriteBoundingBox(const BoundingBox&);
  14652. bool WriteByte(int8);
  14653. bool WriteColor(const Color&);
  14654. bool WriteDouble(double);
  14655. bool WriteFileID(const String&);
  14656. bool WriteFloat(float);
  14657. bool WriteInt(int);
  14658. bool WriteInt64(int64);
  14659. bool WriteIntRect(const IntRect&);
  14660. bool WriteIntVector2(const IntVector2&);
  14661. bool WriteLine(const String&);
  14662. bool WriteMatrix3(const Matrix3&);
  14663. bool WriteMatrix3x4(const Matrix3x4&);
  14664. bool WriteMatrix4(const Matrix4&);
  14665. bool WriteNetID(uint);
  14666. bool WritePackedQuaternion(const Quaternion&);
  14667. bool WritePackedVector3(const Vector3&, float);
  14668. bool WriteQuaternion(const Quaternion&);
  14669. bool WriteShort(int16);
  14670. bool WriteString(const String&);
  14671. bool WriteStringHash(const StringHash&);
  14672. bool WriteUByte(uint8);
  14673. bool WriteUInt(uint);
  14674. bool WriteUInt64(uint64);
  14675. bool WriteUShort(uint16);
  14676. bool WriteVLE(uint);
  14677. bool WriteVariant(const Variant&);
  14678. bool WriteVariantMap(const VariantMap&);
  14679. bool WriteVector2(const Vector2&);
  14680. bool WriteVector3(const Vector3&);
  14681. bool WriteVector4(const Vector4&);
  14682. bool WriteVectorBuffer(const VectorBuffer&);
  14683. // Properties:
  14684. /* readonly */
  14685. uint checksum;
  14686. /* readonly */
  14687. bool eof;
  14688. /* readonly */
  14689. String name;
  14690. /* readonly */
  14691. uint position;
  14692. /* readonly */
  14693. uint size;
  14694. };
  14695. class VertexBuffer
  14696. {
  14697. public:
  14698. VertexBuffer();
  14699. // Methods:
  14700. VectorBuffer GetData() const;
  14701. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  14702. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14703. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  14704. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14705. bool HasSubscribedToEvent(Object, const String&);
  14706. bool HasSubscribedToEvent(const String&);
  14707. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14708. bool SetData(VectorBuffer&);
  14709. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  14710. void SetSize(uint, Array<VertexElement>, bool = false);
  14711. void SetSize(uint, uint, bool = false);
  14712. // Properties:
  14713. /* readonly */
  14714. String category;
  14715. /* readonly */
  14716. bool dynamic;
  14717. /* readonly */
  14718. uint elementMask;
  14719. /* readonly */
  14720. Array<VertexElement> elements;
  14721. /* readonly */
  14722. int refs;
  14723. bool shadowed;
  14724. /* readonly */
  14725. StringHash type;
  14726. /* readonly */
  14727. String typeName;
  14728. /* readonly */
  14729. uint vertexCount;
  14730. /* readonly */
  14731. uint vertexSize;
  14732. /* readonly */
  14733. int weakRefs;
  14734. };
  14735. class VertexElement
  14736. {
  14737. public:
  14738. ~VertexElement();
  14739. VertexElement();
  14740. VertexElement(const VertexElement&in);
  14741. VertexElement(VertexElementType, VertexElementSemantic, uint8 index = 0, bool perInstance = false);
  14742. // Properties:
  14743. uint8 index;
  14744. uint offset;
  14745. bool perInstance;
  14746. VertexElementSemantic semantic;
  14747. VertexElementType type;
  14748. };
  14749. class View3D
  14750. {
  14751. public:
  14752. View3D();
  14753. View3D(const String&in);
  14754. // Methods:
  14755. void AddChild(UIElement);
  14756. void AddTag(const String&);
  14757. void AddTags(const String&, int8 = ';');
  14758. void ApplyAttributes();
  14759. void BringToFront();
  14760. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14761. void DisableLayoutUpdate();
  14762. IntVector2 ElementToScreen(const IntVector2&);
  14763. void EnableLayoutUpdate();
  14764. uint FindChild(UIElement) const;
  14765. Variant GetAttribute(const String&) const;
  14766. ValueAnimation GetAttributeAnimation(const String&) const;
  14767. float GetAttributeAnimationSpeed(const String&) const;
  14768. float GetAttributeAnimationTime(const String&) const;
  14769. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14770. Variant GetAttributeDefault(const String&) const;
  14771. UIElement GetChild(const String&, bool = false) const;
  14772. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14773. Array<UIElement> GetChildren(bool = false) const;
  14774. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14775. UIElement GetElementEventSender() const;
  14776. bool GetInterceptNetworkUpdate(const String&) const;
  14777. uint GetNumChildren(bool) const;
  14778. bool HasSubscribedToEvent(Object, const String&);
  14779. bool HasSubscribedToEvent(const String&);
  14780. bool HasTag(const String&) const;
  14781. void InsertChild(uint, UIElement);
  14782. bool IsChildOf(UIElement) const;
  14783. bool IsInside(IntVector2, bool);
  14784. bool IsInsideCombined(IntVector2, bool);
  14785. bool Load(File);
  14786. bool Load(VectorBuffer&);
  14787. UIElement LoadChildXML(XMLFile, XMLFile);
  14788. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14789. bool LoadJSON(const JSONValue&);
  14790. bool LoadXML(File);
  14791. bool LoadXML(VectorBuffer&);
  14792. bool LoadXML(XMLFile, XMLFile);
  14793. bool LoadXML(const XMLElement&, XMLFile);
  14794. bool LoadXML(const XMLElement&);
  14795. void MarkNetworkUpdate() const;
  14796. void QueueUpdate();
  14797. void Remove();
  14798. void RemoveAllChildren();
  14799. void RemoveAllTags();
  14800. void RemoveAttributeAnimation(const String&);
  14801. void RemoveChild(UIElement, uint = 0);
  14802. void RemoveChild(uint);
  14803. void RemoveInstanceDefault();
  14804. void RemoveObjectAnimation();
  14805. bool RemoveTag(const String&);
  14806. void ResetDeepEnabled();
  14807. void ResetToDefault();
  14808. bool Save(File) const;
  14809. bool Save(VectorBuffer&) const;
  14810. bool SaveJSON(JSONValue&) const;
  14811. bool SaveXML(File, const String& = "\t");
  14812. bool SaveXML(VectorBuffer&, const String& = "\t");
  14813. bool SaveXML(XMLElement&) const;
  14814. IntVector2 ScreenToElement(const IntVector2&);
  14815. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14816. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14817. void SetAnimationTime(float);
  14818. bool SetAttribute(const String&, const Variant&);
  14819. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14820. void SetAttributeAnimationSpeed(const String&, float);
  14821. void SetAttributeAnimationTime(const String&, float);
  14822. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14823. void SetDeepEnabled(bool);
  14824. void SetDisabledOffset(int, int);
  14825. void SetEnabledRecursive(bool);
  14826. void SetFixedHeight(int);
  14827. void SetFixedSize(int, int);
  14828. void SetFixedWidth(int);
  14829. void SetFullImageRect();
  14830. void SetHoverOffset(int, int);
  14831. void SetInterceptNetworkUpdate(const String&, bool);
  14832. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14833. void SetMaxAnchor(float, float);
  14834. void SetMaxSize(int, int);
  14835. void SetMinAnchor(float, float);
  14836. void SetMinSize(int, int);
  14837. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14838. void SetPivot(float, float);
  14839. void SetPosition(int, int);
  14840. void SetSize(int, int);
  14841. bool SetStyle(const String&, XMLFile = null);
  14842. bool SetStyle(const XMLElement&);
  14843. bool SetStyleAuto(XMLFile = null);
  14844. void SetView(Scene, Camera, bool = true);
  14845. void UpdateLayout();
  14846. const Variant& GetVar(const StringHash&);
  14847. // Properties:
  14848. bool animationEnabled;
  14849. /* readonly */
  14850. Array<Variant> attributeDefaults;
  14851. /* readonly */
  14852. Array<AttributeInfo> attributeInfos;
  14853. Array<Variant> attributes;
  14854. bool autoUpdate;
  14855. BlendMode blendMode;
  14856. IntRect border;
  14857. bool bringToBack;
  14858. bool bringToFront;
  14859. /* readonly */
  14860. Node cameraNode;
  14861. /* readonly */
  14862. String category;
  14863. /* readonly */
  14864. IntVector2 childOffset;
  14865. /* readonly */
  14866. Array<UIElement> children;
  14867. IntRect clipBorder;
  14868. bool clipChildren;
  14869. /* writeonly */
  14870. Color color;
  14871. /* readonly */
  14872. bool colorGradient;
  14873. Array<Color> colors;
  14874. /* readonly */
  14875. IntRect combinedScreenRect;
  14876. XMLFile defaultStyle;
  14877. /* readonly */
  14878. Texture2D depthTexture;
  14879. /* readonly */
  14880. float derivedOpacity;
  14881. IntVector2 disabledOffset;
  14882. /* readonly */
  14883. uint dragButtonCombo;
  14884. /* readonly */
  14885. int dragButtonCount;
  14886. uint dragDropMode;
  14887. bool editable;
  14888. bool elementEventSender;
  14889. bool enableAnchor;
  14890. bool enabled;
  14891. /* readonly */
  14892. bool enabledSelf;
  14893. /* readonly */
  14894. bool fixedHeight;
  14895. bool fixedHeightResizing;
  14896. /* readonly */
  14897. bool fixedSize;
  14898. /* readonly */
  14899. bool fixedWidth;
  14900. bool fixedWidthResizing;
  14901. bool focus;
  14902. FocusMode focusMode;
  14903. uint format;
  14904. int height;
  14905. HorizontalAlignment horizontalAlignment;
  14906. IntVector2 hoverOffset;
  14907. /* readonly */
  14908. bool hovering;
  14909. IntRect imageBorder;
  14910. IntRect imageRect;
  14911. int indent;
  14912. int indentSpacing;
  14913. /* readonly */
  14914. int indentWidth;
  14915. bool internal;
  14916. IntRect layoutBorder;
  14917. Vector2 layoutFlexScale;
  14918. LayoutMode layoutMode;
  14919. int layoutSpacing;
  14920. Material material;
  14921. Vector2 maxAnchor;
  14922. int maxHeight;
  14923. IntVector2 maxOffset;
  14924. IntVector2 maxSize;
  14925. int maxWidth;
  14926. Vector2 minAnchor;
  14927. int minHeight;
  14928. IntVector2 minOffset;
  14929. IntVector2 minSize;
  14930. int minWidth;
  14931. bool modal;
  14932. bool modalAutoDismiss;
  14933. Color modalFrameColor;
  14934. IntVector2 modalFrameSize;
  14935. Color modalShadeColor;
  14936. bool movable;
  14937. String name;
  14938. /* readonly */
  14939. uint numAllChildren;
  14940. /* readonly */
  14941. uint numAttributes;
  14942. /* readonly */
  14943. uint numChildren;
  14944. ObjectAnimation objectAnimation;
  14945. float opacity;
  14946. UIElement parent;
  14947. Vector2 pivot;
  14948. IntVector2 position;
  14949. int priority;
  14950. /* readonly */
  14951. int refs;
  14952. /* readonly */
  14953. Texture2D renderTexture;
  14954. bool resizable;
  14955. IntRect resizeBorder;
  14956. /* readonly */
  14957. UIElement root;
  14958. /* readonly */
  14959. Scene scene;
  14960. /* readonly */
  14961. IntVector2 screenPosition;
  14962. bool selected;
  14963. IntVector2 size;
  14964. bool sortChildren;
  14965. String style;
  14966. /* readonly */
  14967. Array<String> tags;
  14968. bool temporary;
  14969. Texture texture;
  14970. bool tiled;
  14971. TraversalMode traversalMode;
  14972. /* readonly */
  14973. StringHash type;
  14974. /* readonly */
  14975. String typeName;
  14976. bool useDerivedOpacity;
  14977. /* readonly */
  14978. VariantMap vars;
  14979. VerticalAlignment verticalAlignment;
  14980. /* readonly */
  14981. Viewport viewport;
  14982. bool visible;
  14983. /* readonly */
  14984. bool visibleEffective;
  14985. /* readonly */
  14986. int weakRefs;
  14987. int width;
  14988. };
  14989. class Viewport
  14990. {
  14991. public:
  14992. Viewport();
  14993. Viewport(Scene&, Camera&, RenderPath& renderPath = null);
  14994. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& renderPath = null);
  14995. // Methods:
  14996. Ray GetScreenRay(int, int) const;
  14997. bool HasSubscribedToEvent(Object, const String&);
  14998. bool HasSubscribedToEvent(const String&);
  14999. Vector3 ScreenToWorldPoint(int, int, float) const;
  15000. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15001. bool SetRenderPath(XMLFile);
  15002. IntVector2 WorldToScreenPoint(const Vector3&) const;
  15003. // Properties:
  15004. Camera camera;
  15005. /* readonly */
  15006. String category;
  15007. Camera cullCamera;
  15008. bool drawDebug;
  15009. IntRect rect;
  15010. /* readonly */
  15011. int refs;
  15012. RenderPath renderPath;
  15013. Scene scene;
  15014. /* readonly */
  15015. StringHash type;
  15016. /* readonly */
  15017. String typeName;
  15018. /* readonly */
  15019. int weakRefs;
  15020. };
  15021. class WeakHandle
  15022. {
  15023. public:
  15024. ~WeakHandle();
  15025. WeakHandle();
  15026. WeakHandle(const WeakHandle&in);
  15027. WeakHandle(RefCounted@);
  15028. // Methods:
  15029. RefCounted Get() const;
  15030. // Properties:
  15031. /* readonly */
  15032. bool expired;
  15033. /* readonly */
  15034. int refs;
  15035. /* readonly */
  15036. int weakRefs;
  15037. };
  15038. class Window
  15039. {
  15040. public:
  15041. Window();
  15042. Window(const String&in);
  15043. // Methods:
  15044. void AddChild(UIElement);
  15045. void AddTag(const String&);
  15046. void AddTags(const String&, int8 = ';');
  15047. void ApplyAttributes();
  15048. void BringToFront();
  15049. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  15050. void DisableLayoutUpdate();
  15051. IntVector2 ElementToScreen(const IntVector2&);
  15052. void EnableLayoutUpdate();
  15053. uint FindChild(UIElement) const;
  15054. Variant GetAttribute(const String&) const;
  15055. ValueAnimation GetAttributeAnimation(const String&) const;
  15056. float GetAttributeAnimationSpeed(const String&) const;
  15057. float GetAttributeAnimationTime(const String&) const;
  15058. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15059. Variant GetAttributeDefault(const String&) const;
  15060. UIElement GetChild(const String&, bool = false) const;
  15061. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  15062. Array<UIElement> GetChildren(bool = false) const;
  15063. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  15064. UIElement GetElementEventSender() const;
  15065. bool GetInterceptNetworkUpdate(const String&) const;
  15066. uint GetNumChildren(bool) const;
  15067. bool HasSubscribedToEvent(Object, const String&);
  15068. bool HasSubscribedToEvent(const String&);
  15069. bool HasTag(const String&) const;
  15070. void InsertChild(uint, UIElement);
  15071. bool IsChildOf(UIElement) const;
  15072. bool IsInside(IntVector2, bool);
  15073. bool IsInsideCombined(IntVector2, bool);
  15074. bool Load(File);
  15075. bool Load(VectorBuffer&);
  15076. UIElement LoadChildXML(XMLFile, XMLFile);
  15077. UIElement LoadChildXML(const XMLElement&, XMLFile);
  15078. bool LoadJSON(const JSONValue&);
  15079. bool LoadXML(File);
  15080. bool LoadXML(VectorBuffer&);
  15081. bool LoadXML(XMLFile, XMLFile);
  15082. bool LoadXML(const XMLElement&, XMLFile);
  15083. bool LoadXML(const XMLElement&);
  15084. void MarkNetworkUpdate() const;
  15085. void Remove();
  15086. void RemoveAllChildren();
  15087. void RemoveAllTags();
  15088. void RemoveAttributeAnimation(const String&);
  15089. void RemoveChild(UIElement, uint = 0);
  15090. void RemoveChild(uint);
  15091. void RemoveInstanceDefault();
  15092. void RemoveObjectAnimation();
  15093. bool RemoveTag(const String&);
  15094. void ResetDeepEnabled();
  15095. void ResetToDefault();
  15096. bool Save(File) const;
  15097. bool Save(VectorBuffer&) const;
  15098. bool SaveJSON(JSONValue&) const;
  15099. bool SaveXML(File, const String& = "\t");
  15100. bool SaveXML(VectorBuffer&, const String& = "\t");
  15101. bool SaveXML(XMLElement&) const;
  15102. IntVector2 ScreenToElement(const IntVector2&);
  15103. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15104. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  15105. void SetAnimationTime(float);
  15106. bool SetAttribute(const String&, const Variant&);
  15107. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15108. void SetAttributeAnimationSpeed(const String&, float);
  15109. void SetAttributeAnimationTime(const String&, float);
  15110. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15111. void SetDeepEnabled(bool);
  15112. void SetDisabledOffset(int, int);
  15113. void SetEnabledRecursive(bool);
  15114. void SetFixedHeight(int);
  15115. void SetFixedSize(int, int);
  15116. void SetFixedWidth(int);
  15117. void SetFullImageRect();
  15118. void SetHoverOffset(int, int);
  15119. void SetInterceptNetworkUpdate(const String&, bool);
  15120. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  15121. void SetMaxAnchor(float, float);
  15122. void SetMaxSize(int, int);
  15123. void SetMinAnchor(float, float);
  15124. void SetMinSize(int, int);
  15125. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  15126. void SetPivot(float, float);
  15127. void SetPosition(int, int);
  15128. void SetSize(int, int);
  15129. bool SetStyle(const String&, XMLFile = null);
  15130. bool SetStyle(const XMLElement&);
  15131. bool SetStyleAuto(XMLFile = null);
  15132. void UpdateLayout();
  15133. const Variant& GetVar(const StringHash&);
  15134. // Properties:
  15135. bool animationEnabled;
  15136. /* readonly */
  15137. Array<Variant> attributeDefaults;
  15138. /* readonly */
  15139. Array<AttributeInfo> attributeInfos;
  15140. Array<Variant> attributes;
  15141. BlendMode blendMode;
  15142. IntRect border;
  15143. bool bringToBack;
  15144. bool bringToFront;
  15145. /* readonly */
  15146. String category;
  15147. /* readonly */
  15148. IntVector2 childOffset;
  15149. /* readonly */
  15150. Array<UIElement> children;
  15151. IntRect clipBorder;
  15152. bool clipChildren;
  15153. /* writeonly */
  15154. Color color;
  15155. /* readonly */
  15156. bool colorGradient;
  15157. Array<Color> colors;
  15158. /* readonly */
  15159. IntRect combinedScreenRect;
  15160. XMLFile defaultStyle;
  15161. /* readonly */
  15162. float derivedOpacity;
  15163. IntVector2 disabledOffset;
  15164. /* readonly */
  15165. uint dragButtonCombo;
  15166. /* readonly */
  15167. int dragButtonCount;
  15168. uint dragDropMode;
  15169. bool editable;
  15170. bool elementEventSender;
  15171. bool enableAnchor;
  15172. bool enabled;
  15173. /* readonly */
  15174. bool enabledSelf;
  15175. /* readonly */
  15176. bool fixedHeight;
  15177. bool fixedHeightResizing;
  15178. /* readonly */
  15179. bool fixedSize;
  15180. /* readonly */
  15181. bool fixedWidth;
  15182. bool fixedWidthResizing;
  15183. bool focus;
  15184. FocusMode focusMode;
  15185. int height;
  15186. HorizontalAlignment horizontalAlignment;
  15187. IntVector2 hoverOffset;
  15188. /* readonly */
  15189. bool hovering;
  15190. IntRect imageBorder;
  15191. IntRect imageRect;
  15192. int indent;
  15193. int indentSpacing;
  15194. /* readonly */
  15195. int indentWidth;
  15196. bool internal;
  15197. IntRect layoutBorder;
  15198. Vector2 layoutFlexScale;
  15199. LayoutMode layoutMode;
  15200. int layoutSpacing;
  15201. Material material;
  15202. Vector2 maxAnchor;
  15203. int maxHeight;
  15204. IntVector2 maxOffset;
  15205. IntVector2 maxSize;
  15206. int maxWidth;
  15207. Vector2 minAnchor;
  15208. int minHeight;
  15209. IntVector2 minOffset;
  15210. IntVector2 minSize;
  15211. int minWidth;
  15212. bool modal;
  15213. bool modalAutoDismiss;
  15214. Color modalFrameColor;
  15215. IntVector2 modalFrameSize;
  15216. Color modalShadeColor;
  15217. bool movable;
  15218. String name;
  15219. /* readonly */
  15220. uint numAllChildren;
  15221. /* readonly */
  15222. uint numAttributes;
  15223. /* readonly */
  15224. uint numChildren;
  15225. ObjectAnimation objectAnimation;
  15226. float opacity;
  15227. UIElement parent;
  15228. Vector2 pivot;
  15229. IntVector2 position;
  15230. int priority;
  15231. /* readonly */
  15232. int refs;
  15233. bool resizable;
  15234. IntRect resizeBorder;
  15235. /* readonly */
  15236. UIElement root;
  15237. /* readonly */
  15238. IntVector2 screenPosition;
  15239. bool selected;
  15240. IntVector2 size;
  15241. bool sortChildren;
  15242. String style;
  15243. /* readonly */
  15244. Array<String> tags;
  15245. bool temporary;
  15246. Texture texture;
  15247. bool tiled;
  15248. TraversalMode traversalMode;
  15249. /* readonly */
  15250. StringHash type;
  15251. /* readonly */
  15252. String typeName;
  15253. bool useDerivedOpacity;
  15254. /* readonly */
  15255. VariantMap vars;
  15256. VerticalAlignment verticalAlignment;
  15257. bool visible;
  15258. /* readonly */
  15259. bool visibleEffective;
  15260. /* readonly */
  15261. int weakRefs;
  15262. int width;
  15263. };
  15264. class XMLElement
  15265. {
  15266. public:
  15267. ~XMLElement();
  15268. XMLElement();
  15269. XMLElement(const XMLElement&in);
  15270. // Methods:
  15271. bool AppendChild(XMLElement, bool);
  15272. XMLElement CreateChild(const String&);
  15273. String GetAttribute(const String& = String ( )) const;
  15274. String GetAttributeLower(const String&) const;
  15275. Array<String> GetAttributeNames() const;
  15276. String GetAttributeUpper(const String&) const;
  15277. bool GetBool(const String&) const;
  15278. BoundingBox GetBoundingBox() const;
  15279. XMLElement GetChild(const String& = String ( )) const;
  15280. Color GetColor(const String&) const;
  15281. double GetDouble(const String&) const;
  15282. float GetFloat(const String&) const;
  15283. int GetInt(const String&) const;
  15284. int64 GetInt64(const String&) const;
  15285. IntRect GetIntRect(const String&) const;
  15286. IntVector2 GetIntVector2(const String&) const;
  15287. IntVector3 GetIntVector3(const String&) const;
  15288. Matrix3 GetMatrix3(const String&) const;
  15289. Matrix3x4 GetMatrix3x4(const String&) const;
  15290. Matrix4 GetMatrix4(const String&) const;
  15291. XMLElement GetNext(const String& = String ( )) const;
  15292. XMLElement GetOrCreateChild(const String&);
  15293. Quaternion GetQuaternion(const String&) const;
  15294. ResourceRef GetResourceRef() const;
  15295. ResourceRefList GetResourceRefList() const;
  15296. uint GetUInt(const String&) const;
  15297. uint64 GetUInt64(const String&) const;
  15298. String GetValue() const;
  15299. Variant GetVariant() const;
  15300. VariantMap GetVariantMap() const;
  15301. Array<Variant> GetVariantVector() const;
  15302. Vector2 GetVector2(const String&) const;
  15303. Vector3 GetVector3(const String&) const;
  15304. Vector4 GetVector4(const String&) const;
  15305. Variant GetVectorVariant(const String&) const;
  15306. bool HasAttribute(const String&) const;
  15307. bool HasChild(const String&) const;
  15308. bool Remove();
  15309. bool RemoveAttribute(const String& = String ( ));
  15310. bool RemoveChild(const String&);
  15311. bool RemoveChild(const XMLElement&);
  15312. bool RemoveChildren(const String& = String ( ));
  15313. XPathResultSet Select(const String&);
  15314. XPathResultSet SelectPrepared(const XPathQuery&);
  15315. XMLElement SelectSingle(const String&);
  15316. XMLElement SelectSinglePrepared(const XPathQuery&);
  15317. bool SetAttribute(const String&);
  15318. bool SetAttribute(const String&, const String&);
  15319. bool SetBool(const String&, bool);
  15320. bool SetBoundingBox(const BoundingBox&);
  15321. bool SetColor(const String&, const Color&);
  15322. bool SetDouble(const String&, double);
  15323. bool SetFloat(const String&, float);
  15324. bool SetInt(const String&, int);
  15325. bool SetInt64(const String&, int64);
  15326. bool SetIntRect(const String&, const IntRect&);
  15327. bool SetIntVector2(const String&, const IntVector2&);
  15328. bool SetIntVector3(const String&, const IntVector3&);
  15329. bool SetMatrix3(const String&, const Matrix3&);
  15330. bool SetMatrix3x4(const String&, const Matrix3x4&);
  15331. bool SetMatrix4(const String&, const Matrix4&);
  15332. bool SetQuaternion(const String&, const Quaternion&);
  15333. bool SetResourceRef(const String&, const ResourceRef&);
  15334. bool SetResourceRefList(const String&, const ResourceRefList&);
  15335. bool SetUInt(const String&, uint);
  15336. bool SetUInt64(const String&, uint64);
  15337. bool SetValue(const String&);
  15338. bool SetVariant(const Variant&);
  15339. bool SetVariantMap(const VariantMap&);
  15340. bool SetVariantVector(Array<Variant>);
  15341. bool SetVector2(const String&, const Vector2&);
  15342. bool SetVector3(const String&, const Vector3&);
  15343. bool SetVector4(const String&, const Vector4&);
  15344. bool SetVectorVariant(const String&, const Variant&);
  15345. // Properties:
  15346. /* readonly */
  15347. XMLFile file;
  15348. /* readonly */
  15349. bool isNull;
  15350. /* readonly */
  15351. String name;
  15352. /* readonly */
  15353. XMLElement nextResult;
  15354. /* readonly */
  15355. bool notNull;
  15356. /* readonly */
  15357. uint numAttributes;
  15358. /* readonly */
  15359. XMLElement parent;
  15360. String value;
  15361. };
  15362. class XMLFile
  15363. {
  15364. public:
  15365. XMLFile();
  15366. XMLFile(const String&in);
  15367. // Methods:
  15368. XMLElement CreateRoot(const String&);
  15369. bool FromString(const String&);
  15370. XMLElement GetOrCreateRoot(const String&);
  15371. XMLElement GetRoot(const String& = String ( ));
  15372. bool HasSubscribedToEvent(Object, const String&);
  15373. bool HasSubscribedToEvent(const String&);
  15374. bool Load(File);
  15375. bool Load(VectorBuffer&);
  15376. bool Load(const String&);
  15377. void Patch(XMLFile);
  15378. void Patch(const XMLElement&);
  15379. bool Save(File) const;
  15380. bool Save(File, const String&) const;
  15381. bool Save(VectorBuffer&) const;
  15382. bool Save(const String&) const;
  15383. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15384. String ToString(const String& = String ( "\t" )) const;
  15385. // Properties:
  15386. /* readonly */
  15387. String category;
  15388. /* readonly */
  15389. uint memoryUse;
  15390. String name;
  15391. /* readonly */
  15392. int refs;
  15393. /* readonly */
  15394. XMLElement root;
  15395. /* readonly */
  15396. StringHash type;
  15397. /* readonly */
  15398. String typeName;
  15399. /* readonly */
  15400. uint useTimer;
  15401. /* readonly */
  15402. int weakRefs;
  15403. };
  15404. class XPathQuery
  15405. {
  15406. public:
  15407. ~XPathQuery();
  15408. XPathQuery();
  15409. XPathQuery(const String&in, const String&inout arg1 = String ( ));
  15410. // Methods:
  15411. void Bind();
  15412. void Clear();
  15413. XPathResultSet Evaluate(const XMLElement&);
  15414. bool EvaluateToBool(const XMLElement&);
  15415. float EvaluateToFloat(const XMLElement&);
  15416. String EvaluateToString(const XMLElement&);
  15417. bool SetQuery(const String&, const String& = String ( ), bool = true);
  15418. bool SetVariable(const String&, bool);
  15419. bool SetVariable(const String&, const String&);
  15420. bool SetVariable(const String&, const XPathResultSet&);
  15421. bool SetVariable(const String&, float);
  15422. // Properties:
  15423. String query;
  15424. };
  15425. class XPathResultSet
  15426. {
  15427. public:
  15428. ~XPathResultSet();
  15429. XPathResultSet();
  15430. XPathResultSet(const XPathResultSet&in);
  15431. // Properties:
  15432. /* readonly */
  15433. bool empty;
  15434. /* readonly */
  15435. XMLElement firstResult;
  15436. /* readonly */
  15437. uint size;
  15438. };
  15439. class Zone
  15440. {
  15441. public:
  15442. // Methods:
  15443. void ApplyAttributes();
  15444. void DrawDebugGeometry(DebugRenderer, bool);
  15445. Variant GetAttribute(const String&) const;
  15446. ValueAnimation GetAttributeAnimation(const String&) const;
  15447. float GetAttributeAnimationSpeed(const String&) const;
  15448. float GetAttributeAnimationTime(const String&) const;
  15449. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15450. Variant GetAttributeDefault(const String&) const;
  15451. bool GetInterceptNetworkUpdate(const String&) const;
  15452. bool HasSubscribedToEvent(Object, const String&);
  15453. bool HasSubscribedToEvent(const String&);
  15454. bool IsInView(Camera) const;
  15455. bool Load(File);
  15456. bool Load(VectorBuffer&);
  15457. bool LoadJSON(const JSONValue&);
  15458. bool LoadXML(const XMLElement&);
  15459. void MarkNetworkUpdate() const;
  15460. void Remove();
  15461. void RemoveAttributeAnimation(const String&);
  15462. void RemoveInstanceDefault();
  15463. void RemoveObjectAnimation();
  15464. void ResetToDefault();
  15465. bool Save(File) const;
  15466. bool Save(VectorBuffer&) const;
  15467. bool SaveJSON(JSONValue&) const;
  15468. bool SaveXML(XMLElement&) const;
  15469. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15470. void SetAnimationTime(float);
  15471. bool SetAttribute(const String&, const Variant&);
  15472. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15473. void SetAttributeAnimationSpeed(const String&, float);
  15474. void SetAttributeAnimationTime(const String&, float);
  15475. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15476. void SetInterceptNetworkUpdate(const String&, bool);
  15477. // Properties:
  15478. Color ambientColor;
  15479. /* readonly */
  15480. Color ambientEndColor;
  15481. bool ambientGradient;
  15482. /* readonly */
  15483. Color ambientStartColor;
  15484. bool animationEnabled;
  15485. /* readonly */
  15486. Array<Variant> attributeDefaults;
  15487. /* readonly */
  15488. Array<AttributeInfo> attributeInfos;
  15489. Array<Variant> attributes;
  15490. BoundingBox boundingBox;
  15491. bool castShadows;
  15492. /* readonly */
  15493. String category;
  15494. float drawDistance;
  15495. bool enabled;
  15496. /* readonly */
  15497. bool enabledEffective;
  15498. Color fogColor;
  15499. float fogEnd;
  15500. float fogHeight;
  15501. float fogHeightScale;
  15502. float fogStart;
  15503. bool heightFog;
  15504. /* readonly */
  15505. uint id;
  15506. /* readonly */
  15507. bool inView;
  15508. /* readonly */
  15509. Matrix3x4 inverseWorldTransform;
  15510. uint lightMask;
  15511. float lodBias;
  15512. uint maxLights;
  15513. /* readonly */
  15514. Node node;
  15515. /* readonly */
  15516. uint numAttributes;
  15517. ObjectAnimation objectAnimation;
  15518. bool occludee;
  15519. bool occluder;
  15520. bool override;
  15521. int priority;
  15522. /* readonly */
  15523. int refs;
  15524. /* readonly */
  15525. bool replicated;
  15526. float shadowDistance;
  15527. uint shadowMask;
  15528. bool temporary;
  15529. /* readonly */
  15530. StringHash type;
  15531. /* readonly */
  15532. String typeName;
  15533. uint viewMask;
  15534. /* readonly */
  15535. int weakRefs;
  15536. /* readonly */
  15537. BoundingBox worldBoundingBox;
  15538. uint zoneMask;
  15539. Texture zoneTexture;
  15540. };
  15541. // Enumerations
  15542. enum AnimationBlendMode
  15543. {
  15544. ABM_LERP,
  15545. ABM_ADDITIVE,
  15546. };
  15547. enum AnimationChannel
  15548. {
  15549. CHANNEL_POSITION,
  15550. CHANNEL_ROTATION,
  15551. CHANNEL_SCALE,
  15552. };
  15553. enum AttributeMode
  15554. {
  15555. AM_FILE,
  15556. AM_NET,
  15557. AM_DEFAULT,
  15558. AM_LATESTDATA,
  15559. AM_NOEDIT,
  15560. AM_NODEID,
  15561. AM_COMPONENTID,
  15562. AM_NODEIDVECTOR,
  15563. AM_FILEREADONLY,
  15564. };
  15565. enum AutoRemoveMode
  15566. {
  15567. REMOVE_DISABLED,
  15568. REMOVE_COMPONENT,
  15569. REMOVE_NODE,
  15570. };
  15571. enum BlendMode
  15572. {
  15573. BLEND_REPLACE,
  15574. BLEND_ADD,
  15575. BLEND_MULTIPLY,
  15576. BLEND_ALPHA,
  15577. BLEND_ADDALPHA,
  15578. BLEND_PREMULALPHA,
  15579. BLEND_INVDESTALPHA,
  15580. BLEND_SUBTRACT,
  15581. BLEND_SUBTRACTALPHA,
  15582. };
  15583. enum BodyType2D
  15584. {
  15585. BT_STATIC,
  15586. BT_KINEMATIC,
  15587. BT_DYNAMIC,
  15588. };
  15589. enum ClearTarget
  15590. {
  15591. CLEAR_COLOR,
  15592. CLEAR_DEPTH,
  15593. CLEAR_STENCIL,
  15594. };
  15595. enum CollisionEventMode
  15596. {
  15597. COLLISION_NEVER,
  15598. COLLISION_ACTIVE,
  15599. COLLISION_ALWAYS,
  15600. };
  15601. enum CompareMode
  15602. {
  15603. CMP_ALWAYS,
  15604. CMP_EQUAL,
  15605. CMP_NOTEQUAL,
  15606. CMP_LESS,
  15607. CMP_LESSEQUAL,
  15608. CMP_GREATER,
  15609. CMP_GREATEREQUAL,
  15610. };
  15611. enum CompressedFormat
  15612. {
  15613. CF_NONE,
  15614. CF_RGBA,
  15615. CF_DXT1,
  15616. CF_DXT3,
  15617. CF_DXT5,
  15618. CF_ETC1,
  15619. CF_PVRTC_RGB_2BPP,
  15620. CF_PVRTC_RGBA_2BPP,
  15621. CF_PVRTC_RGB_4BPP,
  15622. CF_PVRTC_RGBA_4BPP,
  15623. };
  15624. enum ConstraintType
  15625. {
  15626. CONSTRAINT_POINT,
  15627. CONSTRAINT_HINGE,
  15628. CONSTRAINT_SLIDER,
  15629. CONSTRAINT_CONETWIST,
  15630. };
  15631. enum ControllerAxis
  15632. {
  15633. CONTROLLER_AXIS_LEFTX,
  15634. CONTROLLER_AXIS_LEFTY,
  15635. CONTROLLER_AXIS_RIGHTX,
  15636. CONTROLLER_AXIS_RIGHTY,
  15637. CONTROLLER_AXIS_TRIGGERLEFT,
  15638. CONTROLLER_AXIS_TRIGGERRIGHT,
  15639. };
  15640. enum ControllerButton
  15641. {
  15642. CONTROLLER_BUTTON_A,
  15643. CONTROLLER_BUTTON_B,
  15644. CONTROLLER_BUTTON_X,
  15645. CONTROLLER_BUTTON_Y,
  15646. CONTROLLER_BUTTON_BACK,
  15647. CONTROLLER_BUTTON_GUIDE,
  15648. CONTROLLER_BUTTON_START,
  15649. CONTROLLER_BUTTON_LEFTSTICK,
  15650. CONTROLLER_BUTTON_RIGHTSTICK,
  15651. CONTROLLER_BUTTON_LEFTSHOULDER,
  15652. CONTROLLER_BUTTON_RIGHTSHOULDER,
  15653. CONTROLLER_BUTTON_DPAD_UP,
  15654. CONTROLLER_BUTTON_DPAD_DOWN,
  15655. CONTROLLER_BUTTON_DPAD_LEFT,
  15656. CONTROLLER_BUTTON_DPAD_RIGHT,
  15657. };
  15658. enum Corner
  15659. {
  15660. C_TOPLEFT,
  15661. C_TOPRIGHT,
  15662. C_BOTTOMLEFT,
  15663. C_BOTTOMRIGHT,
  15664. };
  15665. enum CreateMode
  15666. {
  15667. REPLICATED,
  15668. LOCAL,
  15669. };
  15670. enum CrowdAgentRequestedTarget
  15671. {
  15672. CA_REQUESTEDTARGET_NONE,
  15673. CA_REQUESTEDTARGET_POSITION,
  15674. CA_REQUESTEDTARGET_VELOCITY,
  15675. };
  15676. enum CrowdAgentState
  15677. {
  15678. CA_STATE_INVALID,
  15679. CA_STATE_WALKING,
  15680. CA_STATE_OFFMESH,
  15681. };
  15682. enum CrowdAgentTargetState
  15683. {
  15684. CA_TARGET_NONE,
  15685. CA_TARGET_FAILED,
  15686. CA_TARGET_VALID,
  15687. CA_TARGET_REQUESTING,
  15688. CA_TARGET_WAITINGFORQUEUE,
  15689. CA_TARGET_WAITINGFORPATH,
  15690. CA_TARGET_VELOCITY,
  15691. };
  15692. enum CubeMapFace
  15693. {
  15694. FACE_POSITIVE_X,
  15695. FACE_NEGATIVE_X,
  15696. FACE_POSITIVE_Y,
  15697. FACE_NEGATIVE_Y,
  15698. FACE_POSITIVE_Z,
  15699. FACE_NEGATIVE_Z,
  15700. };
  15701. enum CullMode
  15702. {
  15703. CULL_NONE,
  15704. CULL_CCW,
  15705. CULL_CW,
  15706. };
  15707. enum CursorShape
  15708. {
  15709. CS_NORMAL,
  15710. CS_IBEAM,
  15711. CS_CROSS,
  15712. CS_RESIZEVERTICAL,
  15713. CS_RESIZEDIAGONAL_TOPRIGHT,
  15714. CS_RESIZEHORIZONTAL,
  15715. CS_RESIZEDIAGONAL_TOPLEFT,
  15716. CS_RESIZE_ALL,
  15717. CS_ACCEPTDROP,
  15718. CS_REJECTDROP,
  15719. CS_BUSY,
  15720. CS_BUSY_ARROW,
  15721. };
  15722. enum DBAPI
  15723. {
  15724. DBAPI_SQLITE,
  15725. DBAPI_ODBC,
  15726. };
  15727. enum DragAndDropMode
  15728. {
  15729. DD_DISABLED,
  15730. DD_SOURCE,
  15731. DD_TARGET,
  15732. DD_SOURCE_AND_TARGET,
  15733. };
  15734. enum DumpMode
  15735. {
  15736. DOXYGEN,
  15737. C_HEADER,
  15738. };
  15739. enum EmitterType
  15740. {
  15741. EMITTER_SPHERE,
  15742. EMITTER_BOX,
  15743. EMITTER_SPHEREVOLUME,
  15744. EMITTER_CYLINDER,
  15745. EMITTER_RING,
  15746. };
  15747. enum EmitterType2D
  15748. {
  15749. EMITTER_TYPE_GRAVITY,
  15750. EMITTER_TYPE_RADIAL,
  15751. };
  15752. enum FaceCameraMode
  15753. {
  15754. FC_NONE,
  15755. FC_ROTATE_XYZ,
  15756. FC_ROTATE_Y,
  15757. FC_LOOKAT_XYZ,
  15758. FC_LOOKAT_Y,
  15759. FC_LOOKAT_MIXED,
  15760. FC_DIRECTION,
  15761. };
  15762. enum FileMode
  15763. {
  15764. FILE_READ,
  15765. FILE_WRITE,
  15766. FILE_READWRITE,
  15767. };
  15768. enum FillMode
  15769. {
  15770. FILL_SOLID,
  15771. FILL_WIREFRAME,
  15772. FILL_POINT,
  15773. };
  15774. enum FocusMode
  15775. {
  15776. FM_NOTFOCUSABLE,
  15777. FM_RESETFOCUS,
  15778. FM_FOCUSABLE,
  15779. FM_FOCUSABLE_DEFOCUSABLE,
  15780. };
  15781. enum FontHintLevel
  15782. {
  15783. FONT_HINT_LEVEL_NONE,
  15784. FONT_HINT_LEVEL_LIGHT,
  15785. FONT_HINT_LEVEL_NORMAL,
  15786. };
  15787. enum FontType
  15788. {
  15789. FONT_NONE,
  15790. FONT_FREETYPE,
  15791. FONT_BITMAP,
  15792. };
  15793. enum HatPosition
  15794. {
  15795. HAT_CENTER,
  15796. HAT_UP,
  15797. HAT_RIGHT,
  15798. HAT_DOWN,
  15799. HAT_LEFT,
  15800. };
  15801. enum HighlightMode
  15802. {
  15803. HM_NEVER,
  15804. HM_FOCUS,
  15805. HM_ALWAYS,
  15806. };
  15807. enum HorizontalAlignment
  15808. {
  15809. HA_LEFT,
  15810. HA_CENTER,
  15811. HA_RIGHT,
  15812. HA_CUSTOM,
  15813. };
  15814. enum HttpRequestState
  15815. {
  15816. HTTP_INITIALIZING,
  15817. HTTP_ERROR,
  15818. HTTP_OPEN,
  15819. HTTP_CLOSED,
  15820. };
  15821. enum IKAlgorithm
  15822. {
  15823. ONE_BONE,
  15824. TWO_BONE,
  15825. FABRIK,
  15826. };
  15827. enum InterpMethod
  15828. {
  15829. IM_NONE,
  15830. IM_LINEAR,
  15831. IM_SPLINE,
  15832. };
  15833. enum InterpolationMode
  15834. {
  15835. BEZIER_CURVE,
  15836. CATMULL_ROM_CURVE,
  15837. LINEAR_CURVE,
  15838. CATMULL_ROM_FULL_CURVE,
  15839. };
  15840. enum Intersection
  15841. {
  15842. OUTSIDE,
  15843. INTERSECTS,
  15844. INSIDE,
  15845. };
  15846. enum JSONNumberType
  15847. {
  15848. JSONNT_NAN,
  15849. JSONNT_INT,
  15850. JSONNT_UINT,
  15851. JSONNT_FLOAT_DOUBLE,
  15852. };
  15853. enum JSONValueType
  15854. {
  15855. JSON_NULL,
  15856. JSON_BOOL,
  15857. JSON_NUMBER,
  15858. JSON_STRING,
  15859. JSON_ARRAY,
  15860. JSON_OBJECT,
  15861. };
  15862. enum Key
  15863. {
  15864. KEY_UNKNOWN,
  15865. KEY_A,
  15866. KEY_B,
  15867. KEY_C,
  15868. KEY_D,
  15869. KEY_E,
  15870. KEY_F,
  15871. KEY_G,
  15872. KEY_H,
  15873. KEY_I,
  15874. KEY_J,
  15875. KEY_K,
  15876. KEY_L,
  15877. KEY_M,
  15878. KEY_N,
  15879. KEY_O,
  15880. KEY_P,
  15881. KEY_Q,
  15882. KEY_R,
  15883. KEY_S,
  15884. KEY_T,
  15885. KEY_U,
  15886. KEY_V,
  15887. KEY_W,
  15888. KEY_X,
  15889. KEY_Y,
  15890. KEY_Z,
  15891. KEY_0,
  15892. KEY_1,
  15893. KEY_2,
  15894. KEY_3,
  15895. KEY_4,
  15896. KEY_5,
  15897. KEY_6,
  15898. KEY_7,
  15899. KEY_8,
  15900. KEY_9,
  15901. KEY_BACKSPACE,
  15902. KEY_TAB,
  15903. KEY_RETURN,
  15904. KEY_RETURN2,
  15905. KEY_KP_ENTER,
  15906. KEY_SHIFT,
  15907. KEY_CTRL,
  15908. KEY_ALT,
  15909. KEY_GUI,
  15910. KEY_PAUSE,
  15911. KEY_CAPSLOCK,
  15912. KEY_ESCAPE,
  15913. KEY_SPACE,
  15914. KEY_PAGEUP,
  15915. KEY_PAGEDOWN,
  15916. KEY_END,
  15917. KEY_HOME,
  15918. KEY_LEFT,
  15919. KEY_UP,
  15920. KEY_RIGHT,
  15921. KEY_DOWN,
  15922. KEY_SELECT,
  15923. KEY_PRINTSCREEN,
  15924. KEY_INSERT,
  15925. KEY_DELETE,
  15926. KEY_LGUI,
  15927. KEY_RGUI,
  15928. KEY_APPLICATION,
  15929. KEY_KP_0,
  15930. KEY_KP_1,
  15931. KEY_KP_2,
  15932. KEY_KP_3,
  15933. KEY_KP_4,
  15934. KEY_KP_5,
  15935. KEY_KP_6,
  15936. KEY_KP_7,
  15937. KEY_KP_8,
  15938. KEY_KP_9,
  15939. KEY_KP_MULTIPLY,
  15940. KEY_KP_PLUS,
  15941. KEY_KP_MINUS,
  15942. KEY_KP_PERIOD,
  15943. KEY_KP_DIVIDE,
  15944. KEY_F1,
  15945. KEY_F2,
  15946. KEY_F3,
  15947. KEY_F4,
  15948. KEY_F5,
  15949. KEY_F6,
  15950. KEY_F7,
  15951. KEY_F8,
  15952. KEY_F9,
  15953. KEY_F10,
  15954. KEY_F11,
  15955. KEY_F12,
  15956. KEY_F13,
  15957. KEY_F14,
  15958. KEY_F15,
  15959. KEY_F16,
  15960. KEY_F17,
  15961. KEY_F18,
  15962. KEY_F19,
  15963. KEY_F20,
  15964. KEY_F21,
  15965. KEY_F22,
  15966. KEY_F23,
  15967. KEY_F24,
  15968. KEY_NUMLOCKCLEAR,
  15969. KEY_SCROLLLOCK,
  15970. KEY_LSHIFT,
  15971. KEY_RSHIFT,
  15972. KEY_LCTRL,
  15973. KEY_RCTRL,
  15974. KEY_LALT,
  15975. KEY_RALT,
  15976. KEY_AC_BACK,
  15977. KEY_AC_BOOKMARKS,
  15978. KEY_AC_FORWARD,
  15979. KEY_AC_HOME,
  15980. KEY_AC_REFRESH,
  15981. KEY_AC_SEARCH,
  15982. KEY_AC_STOP,
  15983. KEY_AGAIN,
  15984. KEY_ALTERASE,
  15985. KEY_AMPERSAND,
  15986. KEY_ASTERISK,
  15987. KEY_AT,
  15988. KEY_AUDIOMUTE,
  15989. KEY_AUDIONEXT,
  15990. KEY_AUDIOPLAY,
  15991. KEY_AUDIOPREV,
  15992. KEY_AUDIOSTOP,
  15993. KEY_BACKQUOTE,
  15994. KEY_BACKSLASH,
  15995. KEY_BRIGHTNESSDOWN,
  15996. KEY_BRIGHTNESSUP,
  15997. KEY_CALCULATOR,
  15998. KEY_CANCEL,
  15999. KEY_CARET,
  16000. KEY_CLEAR,
  16001. KEY_CLEARAGAIN,
  16002. KEY_COLON,
  16003. KEY_COMMA,
  16004. KEY_COMPUTER,
  16005. KEY_COPY,
  16006. KEY_CRSEL,
  16007. KEY_CURRENCYSUBUNIT,
  16008. KEY_CURRENCYUNIT,
  16009. KEY_CUT,
  16010. KEY_DECIMALSEPARATOR,
  16011. KEY_DISPLAYSWITCH,
  16012. KEY_DOLLAR,
  16013. KEY_EJECT,
  16014. KEY_EQUALS,
  16015. KEY_EXCLAIM,
  16016. KEY_EXSEL,
  16017. KEY_FIND,
  16018. KEY_GREATER,
  16019. KEY_HASH,
  16020. KEY_HELP,
  16021. KEY_KBDILLUMDOWN,
  16022. KEY_KBDILLUMTOGGLE,
  16023. KEY_KBDILLUMUP,
  16024. KEY_KP_00,
  16025. KEY_KP_000,
  16026. KEY_KP_A,
  16027. KEY_KP_AMPERSAND,
  16028. KEY_KP_AT,
  16029. KEY_KP_B,
  16030. KEY_KP_BACKSPACE,
  16031. KEY_KP_BINARY,
  16032. KEY_KP_C,
  16033. KEY_KP_CLEAR,
  16034. KEY_KP_CLEARENTRY,
  16035. KEY_KP_COLON,
  16036. KEY_KP_COMMA,
  16037. KEY_KP_D,
  16038. KEY_KP_DBLAMPERSAND,
  16039. KEY_KP_DBLVERTICALBAR,
  16040. KEY_KP_DECIMAL,
  16041. KEY_KP_E,
  16042. KEY_KP_EQUALS,
  16043. KEY_KP_EQUALSAS400,
  16044. KEY_KP_EXCLAM,
  16045. KEY_KP_F,
  16046. KEY_KP_GREATER,
  16047. KEY_KP_HASH,
  16048. KEY_KP_HEXADECIMAL,
  16049. KEY_KP_LEFTBRACE,
  16050. KEY_KP_LEFTPAREN,
  16051. KEY_KP_LESS,
  16052. KEY_KP_MEMADD,
  16053. KEY_KP_MEMCLEAR,
  16054. KEY_KP_MEMDIVIDE,
  16055. KEY_KP_MEMMULTIPLY,
  16056. KEY_KP_MEMRECALL,
  16057. KEY_KP_MEMSTORE,
  16058. KEY_KP_MEMSUBTRACT,
  16059. KEY_KP_OCTAL,
  16060. KEY_KP_PERCENT,
  16061. KEY_KP_PLUSMINUS,
  16062. KEY_KP_POWER,
  16063. KEY_KP_RIGHTBRACE,
  16064. KEY_KP_RIGHTPAREN,
  16065. KEY_KP_SPACE,
  16066. KEY_KP_TAB,
  16067. KEY_KP_VERTICALBAR,
  16068. KEY_KP_XOR,
  16069. KEY_LEFTBRACKET,
  16070. KEY_LEFTPAREN,
  16071. KEY_LESS,
  16072. KEY_MAIL,
  16073. KEY_MEDIASELECT,
  16074. KEY_MENU,
  16075. KEY_MINUS,
  16076. KEY_MODE,
  16077. KEY_MUTE,
  16078. KEY_OPER,
  16079. KEY_OUT,
  16080. KEY_PASTE,
  16081. KEY_PERCENT,
  16082. KEY_PERIOD,
  16083. KEY_PLUS,
  16084. KEY_POWER,
  16085. KEY_PRIOR,
  16086. KEY_QUESTION,
  16087. KEY_QUOTE,
  16088. KEY_QUOTEDBL,
  16089. KEY_RIGHTBRACKET,
  16090. KEY_RIGHTPAREN,
  16091. KEY_SEMICOLON,
  16092. KEY_SEPARATOR,
  16093. KEY_SLASH,
  16094. KEY_SLEEP,
  16095. KEY_STOP,
  16096. KEY_SYSREQ,
  16097. KEY_THOUSANDSSEPARATOR,
  16098. KEY_UNDERSCORE,
  16099. KEY_UNDO,
  16100. KEY_VOLUMEDOWN,
  16101. KEY_VOLUMEUP,
  16102. KEY_WWW,
  16103. };
  16104. enum LayoutMode
  16105. {
  16106. LM_FREE,
  16107. LM_HORIZONTAL,
  16108. LM_VERTICAL,
  16109. };
  16110. enum LightType
  16111. {
  16112. LIGHT_DIRECTIONAL,
  16113. LIGHT_SPOT,
  16114. LIGHT_POINT,
  16115. };
  16116. enum LoadMode
  16117. {
  16118. LOAD_RESOURCES_ONLY,
  16119. LOAD_SCENE,
  16120. LOAD_SCENE_AND_RESOURCES,
  16121. };
  16122. enum LoopMode2D
  16123. {
  16124. LM_DEFAULT,
  16125. LM_FORCE_LOOPED,
  16126. LM_FORCE_CLAMPED,
  16127. };
  16128. enum MaterialQuality
  16129. {
  16130. QUALITY_LOW,
  16131. QUALITY_MEDIUM,
  16132. QUALITY_HIGH,
  16133. QUALITY_MAX,
  16134. };
  16135. enum MouseButton
  16136. {
  16137. MOUSEB_LEFT,
  16138. MOUSEB_MIDDLE,
  16139. MOUSEB_RIGHT,
  16140. };
  16141. enum MouseMode
  16142. {
  16143. MM_ABSOLUTE,
  16144. MM_RELATIVE,
  16145. MM_WRAP,
  16146. MM_FREE,
  16147. };
  16148. enum NavigationPushiness
  16149. {
  16150. NAVIGATIONPUSHINESS_LOW,
  16151. NAVIGATIONPUSHINESS_MEDIUM,
  16152. NAVIGATIONPUSHINESS_HIGH,
  16153. NAVIGATIONPUSHINESS_NONE,
  16154. };
  16155. enum NavigationQuality
  16156. {
  16157. NAVIGATIONQUALITY_LOW,
  16158. NAVIGATIONQUALITY_MEDIUM,
  16159. NAVIGATIONQUALITY_HIGH,
  16160. };
  16161. enum NavmeshPartitionType
  16162. {
  16163. NAVMESH_PARTITION_WATERSHED,
  16164. NAVMESH_PARTITION_MONOTONE,
  16165. };
  16166. enum Orientation
  16167. {
  16168. O_HORIZONTAL,
  16169. O_VERTICAL,
  16170. };
  16171. enum Orientation2D
  16172. {
  16173. O_ORTHOGONAL,
  16174. O_ISOMETRIC,
  16175. O_STAGGERED,
  16176. O_HEXAGONAL,
  16177. };
  16178. enum PassLightingMode
  16179. {
  16180. LIGHTING_UNLIT,
  16181. LIGHTING_PERVERTEX,
  16182. LIGHTING_PERPIXEL,
  16183. };
  16184. enum PrimitiveType
  16185. {
  16186. TRIANGLE_LIST,
  16187. LINE_LIST,
  16188. POINT_LIST,
  16189. TRIANGLE_STRIP,
  16190. LINE_STRIP,
  16191. TRIANGLE_FAN,
  16192. };
  16193. enum Qualifier
  16194. {
  16195. QUAL_SHIFT,
  16196. QUAL_CTRL,
  16197. QUAL_ALT,
  16198. QUAL_ANY,
  16199. };
  16200. enum RayQueryLevel
  16201. {
  16202. RAY_AABB,
  16203. RAY_OBB,
  16204. RAY_TRIANGLE,
  16205. RAY_TRIANGLE_UV,
  16206. };
  16207. enum RenderCommandSortMode
  16208. {
  16209. SORT_FRONTTOBACK,
  16210. SORT_BACKTOFRONT,
  16211. };
  16212. enum RenderCommandType
  16213. {
  16214. CMD_NONE,
  16215. CMD_CLEAR,
  16216. CMD_SCENEPASS,
  16217. CMD_QUAD,
  16218. CMD_FORWARDLIGHTS,
  16219. CMD_LIGHTVOLUMES,
  16220. CMD_RENDERUI,
  16221. CMD_SENDEVENT,
  16222. };
  16223. enum RenderSurfaceUpdateMode
  16224. {
  16225. SURFACE_MANUALUPDATE,
  16226. SURFACE_UPDATEVISIBLE,
  16227. SURFACE_UPDATEALWAYS,
  16228. };
  16229. enum RenderTargetSizeMode
  16230. {
  16231. SIZE_ABSOLUTE,
  16232. SIZE_VIEWPORTDIVISOR,
  16233. SIZE_VIEWPORTMULTIPLIER,
  16234. };
  16235. enum Scancode
  16236. {
  16237. SCANCODE_UNKNOWN,
  16238. SCANCODE_CTRL,
  16239. SCANCODE_SHIFT,
  16240. SCANCODE_ALT,
  16241. SCANCODE_GUI,
  16242. SCANCODE_A,
  16243. SCANCODE_B,
  16244. SCANCODE_C,
  16245. SCANCODE_D,
  16246. SCANCODE_E,
  16247. SCANCODE_F,
  16248. SCANCODE_G,
  16249. SCANCODE_H,
  16250. SCANCODE_I,
  16251. SCANCODE_J,
  16252. SCANCODE_K,
  16253. SCANCODE_L,
  16254. SCANCODE_M,
  16255. SCANCODE_N,
  16256. SCANCODE_O,
  16257. SCANCODE_P,
  16258. SCANCODE_Q,
  16259. SCANCODE_R,
  16260. SCANCODE_S,
  16261. SCANCODE_T,
  16262. SCANCODE_U,
  16263. SCANCODE_V,
  16264. SCANCODE_W,
  16265. SCANCODE_X,
  16266. SCANCODE_Y,
  16267. SCANCODE_Z,
  16268. SCANCODE_1,
  16269. SCANCODE_2,
  16270. SCANCODE_3,
  16271. SCANCODE_4,
  16272. SCANCODE_5,
  16273. SCANCODE_6,
  16274. SCANCODE_7,
  16275. SCANCODE_8,
  16276. SCANCODE_9,
  16277. SCANCODE_0,
  16278. SCANCODE_RETURN,
  16279. SCANCODE_ESCAPE,
  16280. SCANCODE_BACKSPACE,
  16281. SCANCODE_TAB,
  16282. SCANCODE_SPACE,
  16283. SCANCODE_MINUS,
  16284. SCANCODE_EQUALS,
  16285. SCANCODE_LEFTBRACKET,
  16286. SCANCODE_RIGHTBRACKET,
  16287. SCANCODE_BACKSLASH,
  16288. SCANCODE_NONUSHASH,
  16289. SCANCODE_SEMICOLON,
  16290. SCANCODE_APOSTROPHE,
  16291. SCANCODE_GRAVE,
  16292. SCANCODE_COMMA,
  16293. SCANCODE_PERIOD,
  16294. SCANCODE_SLASH,
  16295. SCANCODE_CAPSLOCK,
  16296. SCANCODE_F1,
  16297. SCANCODE_F2,
  16298. SCANCODE_F3,
  16299. SCANCODE_F4,
  16300. SCANCODE_F5,
  16301. SCANCODE_F6,
  16302. SCANCODE_F7,
  16303. SCANCODE_F8,
  16304. SCANCODE_F9,
  16305. SCANCODE_F10,
  16306. SCANCODE_F11,
  16307. SCANCODE_F12,
  16308. SCANCODE_PRINTSCREEN,
  16309. SCANCODE_SCROLLLOCK,
  16310. SCANCODE_PAUSE,
  16311. SCANCODE_INSERT,
  16312. SCANCODE_HOME,
  16313. SCANCODE_PAGEUP,
  16314. SCANCODE_DELETE,
  16315. SCANCODE_END,
  16316. SCANCODE_PAGEDOWN,
  16317. SCANCODE_RIGHT,
  16318. SCANCODE_LEFT,
  16319. SCANCODE_DOWN,
  16320. SCANCODE_UP,
  16321. SCANCODE_NUMLOCKCLEAR,
  16322. SCANCODE_KP_DIVIDE,
  16323. SCANCODE_KP_MULTIPLY,
  16324. SCANCODE_KP_MINUS,
  16325. SCANCODE_KP_PLUS,
  16326. SCANCODE_KP_ENTER,
  16327. SCANCODE_KP_1,
  16328. SCANCODE_KP_2,
  16329. SCANCODE_KP_3,
  16330. SCANCODE_KP_4,
  16331. SCANCODE_KP_5,
  16332. SCANCODE_KP_6,
  16333. SCANCODE_KP_7,
  16334. SCANCODE_KP_8,
  16335. SCANCODE_KP_9,
  16336. SCANCODE_KP_0,
  16337. SCANCODE_KP_PERIOD,
  16338. SCANCODE_NONUSBACKSLASH,
  16339. SCANCODE_APPLICATION,
  16340. SCANCODE_POWER,
  16341. SCANCODE_KP_EQUALS,
  16342. SCANCODE_F13,
  16343. SCANCODE_F14,
  16344. SCANCODE_F15,
  16345. SCANCODE_F16,
  16346. SCANCODE_F17,
  16347. SCANCODE_F18,
  16348. SCANCODE_F19,
  16349. SCANCODE_F20,
  16350. SCANCODE_F21,
  16351. SCANCODE_F22,
  16352. SCANCODE_F23,
  16353. SCANCODE_F24,
  16354. SCANCODE_EXECUTE,
  16355. SCANCODE_HELP,
  16356. SCANCODE_MENU,
  16357. SCANCODE_SELECT,
  16358. SCANCODE_STOP,
  16359. SCANCODE_AGAIN,
  16360. SCANCODE_UNDO,
  16361. SCANCODE_CUT,
  16362. SCANCODE_COPY,
  16363. SCANCODE_PASTE,
  16364. SCANCODE_FIND,
  16365. SCANCODE_MUTE,
  16366. SCANCODE_VOLUMEUP,
  16367. SCANCODE_VOLUMEDOWN,
  16368. SCANCODE_KP_COMMA,
  16369. SCANCODE_KP_EQUALSAS400,
  16370. SCANCODE_INTERNATIONAL1,
  16371. SCANCODE_INTERNATIONAL2,
  16372. SCANCODE_INTERNATIONAL3,
  16373. SCANCODE_INTERNATIONAL4,
  16374. SCANCODE_INTERNATIONAL5,
  16375. SCANCODE_INTERNATIONAL6,
  16376. SCANCODE_INTERNATIONAL7,
  16377. SCANCODE_INTERNATIONAL8,
  16378. SCANCODE_INTERNATIONAL9,
  16379. SCANCODE_LANG1,
  16380. SCANCODE_LANG2,
  16381. SCANCODE_LANG3,
  16382. SCANCODE_LANG4,
  16383. SCANCODE_LANG5,
  16384. SCANCODE_LANG6,
  16385. SCANCODE_LANG7,
  16386. SCANCODE_LANG8,
  16387. SCANCODE_LANG9,
  16388. SCANCODE_ALTERASE,
  16389. SCANCODE_SYSREQ,
  16390. SCANCODE_CANCEL,
  16391. SCANCODE_CLEAR,
  16392. SCANCODE_PRIOR,
  16393. SCANCODE_RETURN2,
  16394. SCANCODE_SEPARATOR,
  16395. SCANCODE_OUT,
  16396. SCANCODE_OPER,
  16397. SCANCODE_CLEARAGAIN,
  16398. SCANCODE_CRSEL,
  16399. SCANCODE_EXSEL,
  16400. SCANCODE_KP_00,
  16401. SCANCODE_KP_000,
  16402. SCANCODE_THOUSANDSSEPARATOR,
  16403. SCANCODE_DECIMALSEPARATOR,
  16404. SCANCODE_CURRENCYUNIT,
  16405. SCANCODE_CURRENCYSUBUNIT,
  16406. SCANCODE_KP_LEFTPAREN,
  16407. SCANCODE_KP_RIGHTPAREN,
  16408. SCANCODE_KP_LEFTBRACE,
  16409. SCANCODE_KP_RIGHTBRACE,
  16410. SCANCODE_KP_TAB,
  16411. SCANCODE_KP_BACKSPACE,
  16412. SCANCODE_KP_A,
  16413. SCANCODE_KP_B,
  16414. SCANCODE_KP_C,
  16415. SCANCODE_KP_D,
  16416. SCANCODE_KP_E,
  16417. SCANCODE_KP_F,
  16418. SCANCODE_KP_XOR,
  16419. SCANCODE_KP_POWER,
  16420. SCANCODE_KP_PERCENT,
  16421. SCANCODE_KP_LESS,
  16422. SCANCODE_KP_GREATER,
  16423. SCANCODE_KP_AMPERSAND,
  16424. SCANCODE_KP_DBLAMPERSAND,
  16425. SCANCODE_KP_VERTICALBAR,
  16426. SCANCODE_KP_DBLVERTICALBAR,
  16427. SCANCODE_KP_COLON,
  16428. SCANCODE_KP_HASH,
  16429. SCANCODE_KP_SPACE,
  16430. SCANCODE_KP_AT,
  16431. SCANCODE_KP_EXCLAM,
  16432. SCANCODE_KP_MEMSTORE,
  16433. SCANCODE_KP_MEMRECALL,
  16434. SCANCODE_KP_MEMCLEAR,
  16435. SCANCODE_KP_MEMADD,
  16436. SCANCODE_KP_MEMSUBTRACT,
  16437. SCANCODE_KP_MEMMULTIPLY,
  16438. SCANCODE_KP_MEMDIVIDE,
  16439. SCANCODE_KP_PLUSMINUS,
  16440. SCANCODE_KP_CLEAR,
  16441. SCANCODE_KP_CLEARENTRY,
  16442. SCANCODE_KP_BINARY,
  16443. SCANCODE_KP_OCTAL,
  16444. SCANCODE_KP_DECIMAL,
  16445. SCANCODE_KP_HEXADECIMAL,
  16446. SCANCODE_LCTRL,
  16447. SCANCODE_LSHIFT,
  16448. SCANCODE_LALT,
  16449. SCANCODE_LGUI,
  16450. SCANCODE_RCTRL,
  16451. SCANCODE_RSHIFT,
  16452. SCANCODE_RALT,
  16453. SCANCODE_RGUI,
  16454. SCANCODE_MODE,
  16455. SCANCODE_AUDIONEXT,
  16456. SCANCODE_AUDIOPREV,
  16457. SCANCODE_AUDIOSTOP,
  16458. SCANCODE_AUDIOPLAY,
  16459. SCANCODE_AUDIOMUTE,
  16460. SCANCODE_MEDIASELECT,
  16461. SCANCODE_WWW,
  16462. SCANCODE_MAIL,
  16463. SCANCODE_CALCULATOR,
  16464. SCANCODE_COMPUTER,
  16465. SCANCODE_AC_SEARCH,
  16466. SCANCODE_AC_HOME,
  16467. SCANCODE_AC_BACK,
  16468. SCANCODE_AC_FORWARD,
  16469. SCANCODE_AC_STOP,
  16470. SCANCODE_AC_REFRESH,
  16471. SCANCODE_AC_BOOKMARKS,
  16472. SCANCODE_BRIGHTNESSDOWN,
  16473. SCANCODE_BRIGHTNESSUP,
  16474. SCANCODE_DISPLAYSWITCH,
  16475. SCANCODE_KBDILLUMTOGGLE,
  16476. SCANCODE_KBDILLUMDOWN,
  16477. SCANCODE_KBDILLUMUP,
  16478. SCANCODE_EJECT,
  16479. SCANCODE_SLEEP,
  16480. SCANCODE_APP1,
  16481. SCANCODE_APP2,
  16482. };
  16483. enum ShadowQuality
  16484. {
  16485. SHADOWQUALITY_SIMPLE_16BIT,
  16486. SHADOWQUALITY_SIMPLE_24BIT,
  16487. SHADOWQUALITY_PCF_16BIT,
  16488. SHADOWQUALITY_PCF_24BIT,
  16489. SHADOWQUALITY_VSM,
  16490. SHADOWQUALITY_BLUR_VSM,
  16491. };
  16492. enum ShapeType
  16493. {
  16494. SHAPE_BOX,
  16495. SHAPE_SPHERE,
  16496. SHAPE_STATICPLANE,
  16497. SHAPE_CYLINDER,
  16498. SHAPE_CAPSULE,
  16499. SHAPE_CONE,
  16500. SHAPE_TRIANGLEMESH,
  16501. SHAPE_CONVEXHULL,
  16502. SHAPE_TERRAIN,
  16503. };
  16504. enum TextEffect
  16505. {
  16506. TE_NONE,
  16507. TE_SHADOW,
  16508. TE_STROKE,
  16509. };
  16510. enum TextureAddressMode
  16511. {
  16512. ADDRESS_WRAP,
  16513. ADDRESS_MIRROR,
  16514. ADDRESS_CLAMP,
  16515. ADDRESS_BORDER,
  16516. };
  16517. enum TextureCoordinate
  16518. {
  16519. COORD_U,
  16520. COORD_V,
  16521. COORD_W,
  16522. };
  16523. enum TextureFilterMode
  16524. {
  16525. FILTER_NEAREST,
  16526. FILTER_BILINEAR,
  16527. FILTER_TRILINEAR,
  16528. FILTER_ANISOTROPIC,
  16529. FILTER_NEAREST_ANISOTROPIC,
  16530. FILTER_DEFAULT,
  16531. };
  16532. enum TextureUnit
  16533. {
  16534. TU_DIFFUSE,
  16535. TU_ALBEDOBUFFER,
  16536. TU_NORMAL,
  16537. TU_NORMALBUFFER,
  16538. TU_SPECULAR,
  16539. TU_EMISSIVE,
  16540. TU_ENVIRONMENT,
  16541. TU_LIGHTRAMP,
  16542. TU_LIGHTSHAPE,
  16543. TU_SHADOWMAP,
  16544. TU_CUSTOM1,
  16545. TU_CUSTOM2,
  16546. TU_VOLUMEMAP,
  16547. TU_FACESELECT,
  16548. TU_INDIRECTION,
  16549. TU_DEPTHBUFFER,
  16550. TU_LIGHTBUFFER,
  16551. TU_ZONE,
  16552. MAX_MATERIAL_TEXTURE_UNITS,
  16553. MAX_TEXTURE_UNITS,
  16554. };
  16555. enum TextureUsage
  16556. {
  16557. TEXTURE_STATIC,
  16558. TEXTURE_DYNAMIC,
  16559. TEXTURE_RENDERTARGET,
  16560. TEXTURE_DEPTHSTENCIL,
  16561. };
  16562. enum TileMapLayerType2D
  16563. {
  16564. LT_TILE_LAYER,
  16565. LT_OBJECT_GROUP,
  16566. LT_IMAGE_LAYER,
  16567. LT_INVALID,
  16568. };
  16569. enum TileObjectType2D
  16570. {
  16571. OT_RECTANGLE,
  16572. OT_ELLIPSE,
  16573. OT_POLYGON,
  16574. OT_POLYLINE,
  16575. OT_TILE,
  16576. OT_INVALID,
  16577. };
  16578. enum TrailType
  16579. {
  16580. TT_FACE_CAMERA,
  16581. TT_BONE,
  16582. };
  16583. enum TransformSpace
  16584. {
  16585. TS_LOCAL,
  16586. TS_PARENT,
  16587. TS_WORLD,
  16588. };
  16589. enum TraversalMode
  16590. {
  16591. TM_BREADTH_FIRST,
  16592. TM_DEPTH_FIRST,
  16593. };
  16594. enum VariantType
  16595. {
  16596. VAR_NONE,
  16597. VAR_INT,
  16598. VAR_BOOL,
  16599. VAR_FLOAT,
  16600. VAR_VECTOR2,
  16601. VAR_VECTOR3,
  16602. VAR_VECTOR4,
  16603. VAR_QUATERNION,
  16604. VAR_COLOR,
  16605. VAR_STRING,
  16606. VAR_BUFFER,
  16607. VAR_VOIDPTR,
  16608. VAR_RESOURCEREF,
  16609. VAR_RESOURCEREFLIST,
  16610. VAR_VARIANTVECTOR,
  16611. VAR_VARIANTMAP,
  16612. VAR_INTRECT,
  16613. VAR_INTVECTOR2,
  16614. VAR_INTVECTOR3,
  16615. VAR_PTR,
  16616. VAR_MATRIX3,
  16617. VAR_MATRIX3X4,
  16618. VAR_MATRIX4,
  16619. VAR_DOUBLE,
  16620. VAR_STRINGVECTOR,
  16621. VAR_RECT,
  16622. };
  16623. enum VertexElementSemantic
  16624. {
  16625. SEM_POSITION,
  16626. SEM_NORMAL,
  16627. SEM_BINORMAL,
  16628. SEM_TANGENT,
  16629. SEM_TEXCOORD,
  16630. SEM_COLOR,
  16631. SEM_BLENDWEIGHTS,
  16632. SEM_BLENDINDICES,
  16633. SEM_OBJECTINDEX,
  16634. MAX_VERTEX_ELEMENT_SEMANTICS,
  16635. };
  16636. enum VertexElementType
  16637. {
  16638. TYPE_INT,
  16639. TYPE_FLOAT,
  16640. TYPE_VECTOR2,
  16641. TYPE_VECTOR3,
  16642. TYPE_VECTOR4,
  16643. TYPE_UBYTE4,
  16644. TYPE_UBYTE4_NORM,
  16645. MAX_VERTEX_ELEMENT_TYPES,
  16646. };
  16647. enum VertexMask
  16648. {
  16649. MASK_NONE,
  16650. MASK_POSITION,
  16651. MASK_NORMAL,
  16652. MASK_COLOR,
  16653. MASK_TEXCOORD1,
  16654. MASK_TEXCOORD2,
  16655. MASK_CUBETEXCOORD1,
  16656. MASK_CUBETEXCOORD2,
  16657. MASK_TANGENT,
  16658. MASK_BLENDWEIGHTS,
  16659. MASK_BLENDINDICES,
  16660. MASK_INSTANCEMATRIX1,
  16661. MASK_INSTANCEMATRIX2,
  16662. MASK_INSTANCEMATRIX3,
  16663. MASK_OBJECTINDEX,
  16664. };
  16665. enum VerticalAlignment
  16666. {
  16667. VA_TOP,
  16668. VA_CENTER,
  16669. VA_BOTTOM,
  16670. VA_CUSTOM,
  16671. };
  16672. enum ViewOverride
  16673. {
  16674. VO_NONE,
  16675. VO_LOW_MATERIAL_QUALITY,
  16676. VO_DISABLE_SHADOWS,
  16677. VO_DISABLE_OCCLUSION,
  16678. };
  16679. enum WrapMode
  16680. {
  16681. WM_LOOP,
  16682. WM_ONCE,
  16683. WM_CLAMP,
  16684. };
  16685. // Global functions
  16686. float Abs(float);
  16687. float Acos(float);
  16688. String AddTrailingSlash(const String&);
  16689. float Asin(float);
  16690. float Atan(float);
  16691. float Atan2(float, float);
  16692. float Ceil(float);
  16693. int CeilToInt(float);
  16694. float Clamp(float, float, float);
  16695. int Clamp(int, int, int);
  16696. void ClearDelayedExecute(const String& = String ( ));
  16697. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  16698. float Cos(float);
  16699. uint CountSetBits(uint);
  16700. Object CreateObject(const String&);
  16701. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  16702. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  16703. bool Equals(float, float);
  16704. void ErrorDialog(const String&, const String&);
  16705. float Floor(float);
  16706. int FloorToInt(float);
  16707. float Fract(float);
  16708. uint GetAlphaFormat();
  16709. Array<String> GetArguments();
  16710. String GetConsoleInput();
  16711. uint GetDepthStencilFormat();
  16712. Object GetEventSender();
  16713. String GetExtension(const String&, bool = true);
  16714. String GetFileName(const String&);
  16715. String GetFileNameAndExtension(const String&, bool = false);
  16716. String GetFileSizeString(uint64);
  16717. uint GetFloat16Format();
  16718. uint GetFloat32Format();
  16719. uint GetFormat(const String&);
  16720. Variant GetGlobalVar(const String&);
  16721. String GetHostName();
  16722. String GetInternalPath(const String&);
  16723. uint GetLinearDepthFormat();
  16724. String GetLoginName();
  16725. uint GetLuminanceAlphaFormat();
  16726. uint GetLuminanceFormat();
  16727. uint GetMaxBones();
  16728. String GetMiniDumpDir();
  16729. uint GetNumLogicalCPUs();
  16730. uint GetNumPhysicalCPUs();
  16731. String GetOSVersion();
  16732. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  16733. Array<String> GetObjectCategories();
  16734. Array<String> GetObjectsByCategory(const String&);
  16735. String GetParentPath(const String&);
  16736. String GetPath(const String&);
  16737. String GetPlatform();
  16738. uint GetRG16Format();
  16739. uint GetRGBA16Format();
  16740. uint GetRGBAFloat16Format();
  16741. uint GetRGBAFloat32Format();
  16742. uint GetRGBAFormat();
  16743. uint GetRGBFormat();
  16744. uint GetRGFloat16Format();
  16745. uint GetRGFloat32Format();
  16746. uint GetRandomSeed();
  16747. uint GetReadableDepthFormat();
  16748. String GetTextureUnitName(TextureUnit);
  16749. uint64 GetTotalMemory();
  16750. VariantType GetVariantTypeFromName(const String&);
  16751. String GetVariantTypeName(VariantType);
  16752. bool HasSubscribedToEvent(Object, const String&);
  16753. bool HasSubscribedToEvent(const String&);
  16754. float InverseLerp(float, float, float);
  16755. bool IsAbsolutePath(const String&);
  16756. bool IsAlpha(uint);
  16757. bool IsDigit(uint);
  16758. bool IsNaN(double);
  16759. bool IsNaN(float);
  16760. bool IsPowerOfTwo(uint);
  16761. bool IsReplicatedID(uint);
  16762. String Join(Array<String>&, const String&);
  16763. float Lerp(float, float, float);
  16764. float Ln(float);
  16765. uint LogBaseTwo(uint);
  16766. void MarkNetworkUpdate();
  16767. float Max(float, float);
  16768. int Max(int, int);
  16769. float Min(float, float);
  16770. int Min(int, int);
  16771. float Mod(float, float);
  16772. uint NextPowerOfTwo(uint);
  16773. void OpenConsoleWindow();
  16774. float Pow(float, float);
  16775. void Print(bool, bool = false);
  16776. void Print(const String&, bool = false);
  16777. void Print(const Variant&, bool = false);
  16778. void Print(float, bool = false);
  16779. void Print(int, bool = false);
  16780. void Print(int64, bool = false);
  16781. void Print(uint, bool = false);
  16782. void Print(uint64, bool = false);
  16783. void PrintCallStack(bool = false);
  16784. float Random();
  16785. float Random(float);
  16786. float Random(float, float);
  16787. int RandomInt();
  16788. int RandomInt(int);
  16789. int RandomInt(int, int);
  16790. float RandomNormal(float, float);
  16791. void RegisterEventName(const String&);
  16792. void Remove();
  16793. String RemoveTrailingSlash(const String&);
  16794. String ReplaceExtension(const String&, const String&);
  16795. float Round(float);
  16796. int RoundToInt(float);
  16797. uint SDBMHash(uint, uint8);
  16798. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  16799. void SetGlobalVar(const String&, Variant&);
  16800. void SetMiniDumpDir(const String&);
  16801. void SetRandomSeed(uint);
  16802. float Sign(float);
  16803. float Sin(float);
  16804. float SmoothStep(float, float, float);
  16805. float Sqrt(float);
  16806. float StableRandom(const Vector2&);
  16807. float StableRandom(const Vector3&);
  16808. float StableRandom(float);
  16809. const String& GetTypeName(StringHash);
  16810. void SubscribeToEvent(Object, const String&, const String&);
  16811. void SubscribeToEvent(const String&, const String&);
  16812. float Tan(float);
  16813. uint ToLower(uint);
  16814. String ToStringHex(int);
  16815. uint ToUpper(uint);
  16816. void UnsubscribeFromAllEvents();
  16817. void UnsubscribeFromAllEventsExcept(Array<String>);
  16818. void UnsubscribeFromEvent(Object, const String&);
  16819. void UnsubscribeFromEvent(const String&);
  16820. void UnsubscribeFromEvents(Object);
  16821. Vector2 VectorCeil(const Vector2&);
  16822. Vector3 VectorCeil(const Vector3&);
  16823. Vector4 VectorCeil(const Vector4&);
  16824. IntVector2 VectorCeilToInt(const Vector2&);
  16825. IntVector3 VectorCeilToInt(const Vector3&);
  16826. Vector2 VectorFloor(const Vector2&);
  16827. Vector3 VectorFloor(const Vector3&);
  16828. Vector4 VectorFloor(const Vector4&);
  16829. IntVector2 VectorFloorToInt(const Vector2&);
  16830. IntVector3 VectorFloorToInt(const Vector3&);
  16831. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  16832. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  16833. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  16834. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  16835. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  16836. Vector2 VectorMax(const Vector2&, const Vector2&);
  16837. Vector3 VectorMax(const Vector3&, const Vector3&);
  16838. Vector4 VectorMax(const Vector4&, const Vector4&);
  16839. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  16840. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  16841. Vector2 VectorMin(const Vector2&, const Vector2&);
  16842. Vector3 VectorMin(const Vector3&, const Vector3&);
  16843. Vector4 VectorMin(const Vector4&, const Vector4&);
  16844. Vector2 VectorRound(const Vector2&);
  16845. Vector3 VectorRound(const Vector3&);
  16846. Vector4 VectorRound(const Vector4&);
  16847. IntVector2 VectorRoundToInt(const Vector2&);
  16848. IntVector3 VectorRoundToInt(const Vector3&);
  16849. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  16850. // Global properties
  16851. DBAPI DBAPI;
  16852. Audio audio;
  16853. ResourceCache cache;
  16854. Console console;
  16855. Database database;
  16856. DebugHud debugHud;
  16857. DebugRenderer debugRenderer;
  16858. Engine engine;
  16859. FileSystem fileSystem;
  16860. VariantMap globalVars;
  16861. Graphics graphics;
  16862. Input input;
  16863. Localization localization;
  16864. Log log;
  16865. Network network;
  16866. Node node;
  16867. Octree octree;
  16868. PhysicsWorld physicsWorld;
  16869. PhysicsWorld2D physicsWorld2D;
  16870. Renderer renderer;
  16871. ResourceCache resourceCache;
  16872. Scene scene;
  16873. Script script;
  16874. ScriptFile scriptFile;
  16875. ScriptInstance self;
  16876. Time time;
  16877. UI ui;
  16878. // Global constants
  16879. Color BLACK;
  16880. Color BLUE;
  16881. Color CYAN;
  16882. uint DEBUGHUD_SHOW_ALL;
  16883. uint DEBUGHUD_SHOW_EVENTPROFILER;
  16884. uint DEBUGHUD_SHOW_MEMORY;
  16885. uint DEBUGHUD_SHOW_MODE;
  16886. uint DEBUGHUD_SHOW_NONE;
  16887. uint DEBUGHUD_SHOW_PROFILER;
  16888. uint DEBUGHUD_SHOW_STATS;
  16889. uint DEFAULT_LIGHTMASK;
  16890. uint DEFAULT_VIEWMASK;
  16891. uint DRAWABLE_ANY;
  16892. uint DRAWABLE_GEOMETRY;
  16893. uint DRAWABLE_GEOMETRY2D;
  16894. uint DRAWABLE_LIGHT;
  16895. uint DRAWABLE_ZONE;
  16896. uint FIRST_LOCAL_ID;
  16897. uint FIRST_REPLICATED_ID;
  16898. uint FLIP_ALL;
  16899. uint FLIP_DIAGONAL;
  16900. uint FLIP_HORIZONTAL;
  16901. uint FLIP_RESERVED;
  16902. uint FLIP_VERTICAL;
  16903. Color GRAY;
  16904. Color GREEN;
  16905. uint LAST_LOCAL_ID;
  16906. uint LAST_REPLICATED_ID;
  16907. int LOG_DEBUG;
  16908. int LOG_ERROR;
  16909. int LOG_INFO;
  16910. int LOG_NONE;
  16911. int LOG_TRACE;
  16912. int LOG_WARNING;
  16913. Color MAGENTA;
  16914. float M_DEGTORAD;
  16915. float M_DEGTORAD_2;
  16916. float M_EPSILON;
  16917. float M_HALF_PI;
  16918. float M_INFINITY;
  16919. float M_LARGE_EPSILON;
  16920. float M_LARGE_VALUE;
  16921. int M_MAX_INT;
  16922. uint M_MAX_UNSIGNED;
  16923. int M_MIN_INT;
  16924. uint M_MIN_UNSIGNED;
  16925. float M_PI;
  16926. float M_RADTODEG;
  16927. uint NPOS;
  16928. float PIXEL_SIZE;
  16929. Color RED;
  16930. uint SCAN_DIRS;
  16931. uint SCAN_FILES;
  16932. uint SCAN_HIDDEN;
  16933. String SOUND_AMBIENT;
  16934. String SOUND_EFFECT;
  16935. String SOUND_MASTER;
  16936. String SOUND_MUSIC;
  16937. String SOUND_VOICE;
  16938. Color TRANSPARENT_BLACK;
  16939. Color WHITE;
  16940. Color YELLOW;