AngelScriptAPI.h 415 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130
  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);
  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 temporary;
  288. Rect textureRect;
  289. /* readonly */
  290. StringHash type;
  291. /* readonly */
  292. String typeName;
  293. bool useDrawRect;
  294. bool useHotSpot;
  295. bool useTextureRect;
  296. uint viewMask;
  297. /* readonly */
  298. int weakRefs;
  299. /* readonly */
  300. BoundingBox worldBoundingBox;
  301. uint zoneMask;
  302. };
  303. class Animation
  304. {
  305. public:
  306. Animation();
  307. Animation(const String&in);
  308. // Methods:
  309. void AddMetadata(const String&, const Variant&);
  310. void AddTrigger(const AnimationTriggerPoint&);
  311. void AddTrigger(float, bool, const Variant&);
  312. Animation Clone(const String& = String ( )) const;
  313. AnimationTrack CreateTrack(const String&);
  314. AnimationTrack GetTrack(uint);
  315. bool HasSubscribedToEvent(Object, const String&);
  316. bool HasSubscribedToEvent(const String&);
  317. bool Load(File);
  318. bool Load(VectorBuffer&);
  319. bool Load(const String&);
  320. void RemoveAllMetadata();
  321. bool RemoveAllTracks();
  322. void RemoveAllTriggers();
  323. void RemoveMetadata(const String&);
  324. bool RemoveTrack(const String&);
  325. void RemoveTrigger(uint);
  326. bool Save(File) const;
  327. bool Save(VectorBuffer&) const;
  328. bool Save(const String&) const;
  329. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  330. // Properties:
  331. String animationName;
  332. /* readonly */
  333. String category;
  334. /* readonly */
  335. bool hasMetadata;
  336. float length;
  337. /* readonly */
  338. uint memoryUse;
  339. Array<Variant> metadata;
  340. String name;
  341. /* readonly */
  342. uint numTracks;
  343. uint numTriggers;
  344. /* readonly */
  345. int refs;
  346. /* readonly */
  347. Array<AnimationTrack> tracks;
  348. Array<AnimationTriggerPoint> triggers;
  349. /* readonly */
  350. StringHash type;
  351. /* readonly */
  352. String typeName;
  353. /* readonly */
  354. uint useTimer;
  355. /* readonly */
  356. int weakRefs;
  357. };
  358. class AnimationControl
  359. {
  360. public:
  361. // Properties:
  362. float autoFadeTime;
  363. float fadeTime;
  364. StringHash hash;
  365. String name;
  366. bool removeOnCompletion;
  367. float speed;
  368. float targetWeight;
  369. };
  370. class AnimationController
  371. {
  372. public:
  373. // Methods:
  374. void ApplyAttributes();
  375. void DrawDebugGeometry(DebugRenderer, bool);
  376. bool Fade(const String&, float, float);
  377. bool FadeOthers(const String&, float, float);
  378. AnimationState GetAnimationState(StringHash) const;
  379. AnimationState GetAnimationState(const String&) const;
  380. Variant GetAttribute(const String&) const;
  381. ValueAnimation GetAttributeAnimation(const String&) const;
  382. float GetAttributeAnimationSpeed(const String&) const;
  383. float GetAttributeAnimationTime(const String&) const;
  384. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  385. Variant GetAttributeDefault(const String&) const;
  386. float GetAutoFade(const String&) const;
  387. AnimationBlendMode GetBlendMode(const String&) const;
  388. float GetFadeTarget(const String&) const;
  389. float GetFadeTime(const String&) const;
  390. bool GetInterceptNetworkUpdate(const String&) const;
  391. uint8 GetLayer(const String&) const;
  392. float GetLength(const String&) const;
  393. bool GetLooped(const String&) const;
  394. bool GetRemoveOnCompletion(const String&);
  395. float GetSpeed(const String&) const;
  396. float GetTime(const String&) const;
  397. float GetWeight(const String&) const;
  398. bool HasSubscribedToEvent(Object, const String&);
  399. bool HasSubscribedToEvent(const String&);
  400. bool IsAtEnd(const String&) const;
  401. bool IsFadingIn(const String&) const;
  402. bool IsFadingOut(const String&) const;
  403. bool IsPlaying(const String&) const;
  404. bool IsPlaying(uint8) const;
  405. bool Load(File);
  406. bool Load(VectorBuffer&);
  407. bool LoadJSON(const JSONValue&);
  408. bool LoadXML(const XMLElement&);
  409. void MarkNetworkUpdate() const;
  410. bool Play(const String&, uint8, bool, float = 0.0f);
  411. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  412. void Remove();
  413. void RemoveAttributeAnimation(const String&);
  414. void RemoveInstanceDefault();
  415. void RemoveObjectAnimation();
  416. void ResetToDefault();
  417. bool Save(File) const;
  418. bool Save(VectorBuffer&) const;
  419. bool SaveJSON(JSONValue&) const;
  420. bool SaveXML(XMLElement&) const;
  421. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  422. void SetAnimationTime(float);
  423. bool SetAttribute(const String&, const Variant&);
  424. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  425. void SetAttributeAnimationSpeed(const String&, float);
  426. void SetAttributeAnimationTime(const String&, float);
  427. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  428. bool SetAutoFade(const String&, float);
  429. bool SetBlendMode(const String&, AnimationBlendMode);
  430. void SetInterceptNetworkUpdate(const String&, bool);
  431. bool SetLayer(const String&, uint8);
  432. bool SetLooped(const String&, bool);
  433. bool SetRemoveOnCompletion(const String&, bool);
  434. bool SetSpeed(const String&, float);
  435. bool SetStartBone(const String&, const String&);
  436. bool SetTime(const String&, float);
  437. bool SetWeight(const String&, float);
  438. void Stop(const String&, float = 0.0f);
  439. void StopAll(float = 0.0f);
  440. void StopLayer(uint8, float = 0.0f);
  441. const String& GetStartBone(const String&) const;
  442. // Properties:
  443. bool animationEnabled;
  444. /* readonly */
  445. Array<AnimationControl> animations;
  446. /* readonly */
  447. Array<Variant> attributeDefaults;
  448. /* readonly */
  449. Array<AttributeInfo> attributeInfos;
  450. Array<Variant> attributes;
  451. /* readonly */
  452. String category;
  453. bool enabled;
  454. /* readonly */
  455. bool enabledEffective;
  456. /* readonly */
  457. uint id;
  458. /* readonly */
  459. Node node;
  460. /* readonly */
  461. uint numAnimations;
  462. /* readonly */
  463. uint numAttributes;
  464. ObjectAnimation objectAnimation;
  465. /* readonly */
  466. int refs;
  467. /* readonly */
  468. bool replicated;
  469. bool temporary;
  470. /* readonly */
  471. StringHash type;
  472. /* readonly */
  473. String typeName;
  474. /* readonly */
  475. int weakRefs;
  476. };
  477. class AnimationKeyFrame
  478. {
  479. public:
  480. ~AnimationKeyFrame();
  481. AnimationKeyFrame();
  482. AnimationKeyFrame(const AnimationKeyFrame&in);
  483. // Properties:
  484. Vector3 position;
  485. Quaternion rotation;
  486. Vector3 scale;
  487. float time;
  488. };
  489. class AnimationSet2D
  490. {
  491. public:
  492. AnimationSet2D();
  493. AnimationSet2D(const String&in);
  494. // Methods:
  495. String GetAnimation(uint) const;
  496. bool HasSubscribedToEvent(Object, const String&);
  497. bool HasSubscribedToEvent(const String&);
  498. bool Load(File);
  499. bool Load(VectorBuffer&);
  500. bool Load(const String&);
  501. bool Save(File) const;
  502. bool Save(VectorBuffer&) const;
  503. bool Save(const String&) const;
  504. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  505. // Properties:
  506. /* readonly */
  507. String category;
  508. /* readonly */
  509. uint memoryUse;
  510. String name;
  511. /* readonly */
  512. uint numAnimations;
  513. /* readonly */
  514. int refs;
  515. /* readonly */
  516. StringHash type;
  517. /* readonly */
  518. String typeName;
  519. /* readonly */
  520. uint useTimer;
  521. /* readonly */
  522. int weakRefs;
  523. };
  524. class AnimationState
  525. {
  526. public:
  527. AnimationState(Node&, Animation&);
  528. // Methods:
  529. void AddTime(float);
  530. void AddWeight(float);
  531. void Apply();
  532. float GetBoneWeight(StringHash) const;
  533. float GetBoneWeight(uint) const;
  534. uint GetTrackIndex(StringHash) const;
  535. uint GetTrackIndex(const String&) const;
  536. void SetBoneWeight(StringHash, float, bool = false);
  537. void SetBoneWeight(const String&, float, bool = false);
  538. void SetBoneWeight(uint, float, bool = false);
  539. // Properties:
  540. /* readonly */
  541. Animation animation;
  542. AnimationBlendMode blendMode;
  543. Array<float> boneWeights;
  544. /* readonly */
  545. bool enabled;
  546. uint8 layer;
  547. /* readonly */
  548. float length;
  549. bool looped;
  550. /* readonly */
  551. AnimatedModel model;
  552. /* readonly */
  553. Node node;
  554. /* readonly */
  555. int refs;
  556. Bone startBone;
  557. float time;
  558. /* readonly */
  559. int weakRefs;
  560. float weight;
  561. };
  562. class AnimationTrack
  563. {
  564. public:
  565. // Methods:
  566. void AddKeyFrame(const AnimationKeyFrame&);
  567. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  568. void RemoveAllKeyFrames();
  569. void RemoveKeyFrame(uint);
  570. // Properties:
  571. uint8 channelMask;
  572. Array<AnimationKeyFrame> keyFrames;
  573. String name;
  574. StringHash nameHash;
  575. /* readonly */
  576. uint numKeyFrames;
  577. };
  578. class AnimationTriggerPoint
  579. {
  580. public:
  581. ~AnimationTriggerPoint();
  582. AnimationTriggerPoint();
  583. AnimationTriggerPoint(const AnimationTriggerPoint&in);
  584. // Properties:
  585. Variant data;
  586. float time;
  587. };
  588. template <class T>
  589. class Array
  590. {
  591. public:
  592. Array(int&in);
  593. Array(int&in, uint);
  594. Array(int&in, uint, const T&in);
  595. // Methods:
  596. void Clear();
  597. void Erase(uint);
  598. int Find(const T&) const;
  599. int Find(uint, const T&) const;
  600. int FindByRef(const T&) const;
  601. int FindByRef(uint, const T&) const;
  602. void Insert(uint, const T&);
  603. void Pop();
  604. void Push(const T&);
  605. void Reserve(uint);
  606. void Resize(uint);
  607. void Reverse();
  608. void Sort();
  609. void Sort(uint, uint);
  610. void SortReverse();
  611. void SortReverse(uint, uint);
  612. bool Swap(Array<T>&);
  613. // Properties:
  614. /* readonly */
  615. bool empty;
  616. uint length;
  617. };
  618. class AttributeInfo
  619. {
  620. public:
  621. ~AttributeInfo();
  622. AttributeInfo();
  623. AttributeInfo(const AttributeInfo&in);
  624. // Properties:
  625. Variant defaultValue;
  626. /* readonly */
  627. Array<String> enumNames;
  628. VariantMap metadata;
  629. uint mode;
  630. String name;
  631. VariantType type;
  632. };
  633. class Audio
  634. {
  635. public:
  636. // Methods:
  637. bool HasMasterGain(const String&) const;
  638. bool HasSubscribedToEvent(Object, const String&);
  639. bool HasSubscribedToEvent(const String&);
  640. bool IsSoundTypePaused(const String&);
  641. void PauseSoundType(const String&);
  642. bool Play();
  643. void ResumeAll();
  644. void ResumeSoundType(const String&);
  645. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  646. void SetMode(int, int, bool, bool = true);
  647. void Stop();
  648. // Properties:
  649. /* readonly */
  650. String category;
  651. /* readonly */
  652. bool initialized;
  653. /* readonly */
  654. bool interpolation;
  655. SoundListener listener;
  656. Array<float> masterGain;
  657. /* readonly */
  658. int mixRate;
  659. /* readonly */
  660. bool playing;
  661. /* readonly */
  662. int refs;
  663. /* readonly */
  664. uint sampleSize;
  665. /* readonly */
  666. bool stereo;
  667. /* readonly */
  668. StringHash type;
  669. /* readonly */
  670. String typeName;
  671. /* readonly */
  672. int weakRefs;
  673. };
  674. class BiasParameters
  675. {
  676. public:
  677. BiasParameters();
  678. BiasParameters(const BiasParameters&in);
  679. BiasParameters(float, float, float normalOffset = 0.0f);
  680. // Properties:
  681. float constantBias;
  682. float normalOffset;
  683. float slopeScaledBias;
  684. };
  685. class Billboard
  686. {
  687. public:
  688. // Properties:
  689. Color color;
  690. Vector3 direction;
  691. bool enabled;
  692. Vector3 position;
  693. float rotation;
  694. Vector2 size;
  695. Rect uv;
  696. };
  697. class BillboardSet
  698. {
  699. public:
  700. // Methods:
  701. void ApplyAttributes();
  702. void Commit();
  703. void DrawDebugGeometry(DebugRenderer, bool);
  704. Variant GetAttribute(const String&) const;
  705. ValueAnimation GetAttributeAnimation(const String&) const;
  706. float GetAttributeAnimationSpeed(const String&) const;
  707. float GetAttributeAnimationTime(const String&) const;
  708. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  709. Variant GetAttributeDefault(const String&) const;
  710. bool GetInterceptNetworkUpdate(const String&) const;
  711. bool HasSubscribedToEvent(Object, const String&);
  712. bool HasSubscribedToEvent(const String&);
  713. bool IsInView(Camera) const;
  714. bool Load(File);
  715. bool Load(VectorBuffer&);
  716. bool LoadJSON(const JSONValue&);
  717. bool LoadXML(const XMLElement&);
  718. void MarkNetworkUpdate() const;
  719. void Remove();
  720. void RemoveAttributeAnimation(const String&);
  721. void RemoveInstanceDefault();
  722. void RemoveObjectAnimation();
  723. void ResetToDefault();
  724. bool Save(File) const;
  725. bool Save(VectorBuffer&) const;
  726. bool SaveJSON(JSONValue&) const;
  727. bool SaveXML(XMLElement&) const;
  728. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  729. void SetAnimationTime(float);
  730. bool SetAttribute(const String&, const Variant&);
  731. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  732. void SetAttributeAnimationSpeed(const String&, float);
  733. void SetAttributeAnimationTime(const String&, float);
  734. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  735. void SetInterceptNetworkUpdate(const String&, bool);
  736. // Properties:
  737. bool animationEnabled;
  738. float animationLodBias;
  739. /* readonly */
  740. Array<Variant> attributeDefaults;
  741. /* readonly */
  742. Array<AttributeInfo> attributeInfos;
  743. Array<Variant> attributes;
  744. /* readonly */
  745. Array<Billboard> billboards;
  746. /* readonly */
  747. BoundingBox boundingBox;
  748. bool castShadows;
  749. /* readonly */
  750. String category;
  751. float drawDistance;
  752. bool enabled;
  753. /* readonly */
  754. bool enabledEffective;
  755. FaceCameraMode faceCameraMode;
  756. bool fixedScreenSize;
  757. /* readonly */
  758. uint id;
  759. /* readonly */
  760. bool inView;
  761. uint lightMask;
  762. float lodBias;
  763. Material material;
  764. uint maxLights;
  765. float minAngle;
  766. /* readonly */
  767. Node node;
  768. /* readonly */
  769. uint numAttributes;
  770. uint numBillboards;
  771. ObjectAnimation objectAnimation;
  772. bool occludee;
  773. bool occluder;
  774. /* readonly */
  775. int refs;
  776. bool relative;
  777. /* readonly */
  778. bool replicated;
  779. bool scaled;
  780. float shadowDistance;
  781. uint shadowMask;
  782. bool sorted;
  783. bool temporary;
  784. /* readonly */
  785. StringHash type;
  786. /* readonly */
  787. String typeName;
  788. uint viewMask;
  789. /* readonly */
  790. int weakRefs;
  791. /* readonly */
  792. BoundingBox worldBoundingBox;
  793. /* readonly */
  794. Zone zone;
  795. uint zoneMask;
  796. };
  797. class Bone
  798. {
  799. public:
  800. // Properties:
  801. bool animated;
  802. BoundingBox boundingBox;
  803. Vector3 initialPosition;
  804. Quaternion initialRotation;
  805. Vector3 initialScale;
  806. String name;
  807. Node node;
  808. uint parentIndex;
  809. float radius;
  810. };
  811. class BorderImage
  812. {
  813. public:
  814. BorderImage();
  815. BorderImage(const String&in);
  816. // Methods:
  817. void AddChild(UIElement);
  818. void AddTag(const String&);
  819. void AddTags(const String&, int8 = ';');
  820. void ApplyAttributes();
  821. void BringToFront();
  822. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  823. void DisableLayoutUpdate();
  824. IntVector2 ElementToScreen(const IntVector2&);
  825. void EnableLayoutUpdate();
  826. uint FindChild(UIElement) const;
  827. Variant GetAttribute(const String&) const;
  828. ValueAnimation GetAttributeAnimation(const String&) const;
  829. float GetAttributeAnimationSpeed(const String&) const;
  830. float GetAttributeAnimationTime(const String&) const;
  831. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  832. Variant GetAttributeDefault(const String&) const;
  833. UIElement GetChild(const String&, bool = false) const;
  834. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  835. Array<UIElement> GetChildren(bool = false) const;
  836. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  837. UIElement GetElementEventSender() const;
  838. bool GetInterceptNetworkUpdate(const String&) const;
  839. uint GetNumChildren(bool) const;
  840. bool HasSubscribedToEvent(Object, const String&);
  841. bool HasSubscribedToEvent(const String&);
  842. bool HasTag(const String&) const;
  843. void InsertChild(uint, UIElement);
  844. bool IsChildOf(UIElement) const;
  845. bool IsInside(IntVector2, bool);
  846. bool IsInsideCombined(IntVector2, bool);
  847. bool Load(File);
  848. bool Load(VectorBuffer&);
  849. UIElement LoadChildXML(XMLFile, XMLFile);
  850. UIElement LoadChildXML(const XMLElement&, XMLFile);
  851. bool LoadJSON(const JSONValue&);
  852. bool LoadXML(File);
  853. bool LoadXML(VectorBuffer&);
  854. bool LoadXML(XMLFile, XMLFile);
  855. bool LoadXML(const XMLElement&, XMLFile);
  856. bool LoadXML(const XMLElement&);
  857. void MarkNetworkUpdate() const;
  858. void Remove();
  859. void RemoveAllChildren();
  860. void RemoveAllTags();
  861. void RemoveAttributeAnimation(const String&);
  862. void RemoveChild(UIElement, uint = 0);
  863. void RemoveChild(uint);
  864. void RemoveInstanceDefault();
  865. void RemoveObjectAnimation();
  866. bool RemoveTag(const String&);
  867. void ResetDeepEnabled();
  868. void ResetToDefault();
  869. bool Save(File) const;
  870. bool Save(VectorBuffer&) const;
  871. bool SaveJSON(JSONValue&) const;
  872. bool SaveXML(File, const String& = "\t");
  873. bool SaveXML(VectorBuffer&, const String& = "\t");
  874. bool SaveXML(XMLElement&) const;
  875. IntVector2 ScreenToElement(const IntVector2&);
  876. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  877. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  878. void SetAnimationTime(float);
  879. bool SetAttribute(const String&, const Variant&);
  880. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  881. void SetAttributeAnimationSpeed(const String&, float);
  882. void SetAttributeAnimationTime(const String&, float);
  883. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  884. void SetDeepEnabled(bool);
  885. void SetEnabledRecursive(bool);
  886. void SetFixedHeight(int);
  887. void SetFixedSize(int, int);
  888. void SetFixedWidth(int);
  889. void SetFullImageRect();
  890. void SetHoverOffset(int, int);
  891. void SetInterceptNetworkUpdate(const String&, bool);
  892. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  893. void SetMaxAnchor(float, float);
  894. void SetMaxSize(int, int);
  895. void SetMinAnchor(float, float);
  896. void SetMinSize(int, int);
  897. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  898. void SetPivot(float, float);
  899. void SetPosition(int, int);
  900. void SetSize(int, int);
  901. bool SetStyle(const String&, XMLFile = null);
  902. bool SetStyle(const XMLElement&);
  903. bool SetStyleAuto(XMLFile = null);
  904. void UpdateLayout();
  905. const Variant& GetVar(const StringHash&);
  906. // Properties:
  907. bool animationEnabled;
  908. /* readonly */
  909. Array<Variant> attributeDefaults;
  910. /* readonly */
  911. Array<AttributeInfo> attributeInfos;
  912. Array<Variant> attributes;
  913. BlendMode blendMode;
  914. IntRect border;
  915. bool bringToBack;
  916. bool bringToFront;
  917. /* readonly */
  918. String category;
  919. /* readonly */
  920. IntVector2 childOffset;
  921. /* readonly */
  922. Array<UIElement> children;
  923. IntRect clipBorder;
  924. bool clipChildren;
  925. /* writeonly */
  926. Color color;
  927. /* readonly */
  928. bool colorGradient;
  929. Array<Color> colors;
  930. /* readonly */
  931. IntRect combinedScreenRect;
  932. XMLFile defaultStyle;
  933. /* readonly */
  934. float derivedOpacity;
  935. /* readonly */
  936. uint dragButtonCombo;
  937. /* readonly */
  938. int dragButtonCount;
  939. uint dragDropMode;
  940. bool editable;
  941. bool elementEventSender;
  942. bool enableAnchor;
  943. bool enabled;
  944. /* readonly */
  945. bool enabledSelf;
  946. /* readonly */
  947. bool fixedHeight;
  948. /* readonly */
  949. bool fixedSize;
  950. /* readonly */
  951. bool fixedWidth;
  952. bool focus;
  953. FocusMode focusMode;
  954. int height;
  955. HorizontalAlignment horizontalAlignment;
  956. IntVector2 hoverOffset;
  957. /* readonly */
  958. bool hovering;
  959. IntRect imageBorder;
  960. IntRect imageRect;
  961. int indent;
  962. int indentSpacing;
  963. /* readonly */
  964. int indentWidth;
  965. bool internal;
  966. IntRect layoutBorder;
  967. Vector2 layoutFlexScale;
  968. LayoutMode layoutMode;
  969. int layoutSpacing;
  970. Vector2 maxAnchor;
  971. int maxHeight;
  972. IntVector2 maxOffset;
  973. IntVector2 maxSize;
  974. int maxWidth;
  975. Vector2 minAnchor;
  976. int minHeight;
  977. IntVector2 minOffset;
  978. IntVector2 minSize;
  979. int minWidth;
  980. String name;
  981. /* readonly */
  982. uint numAllChildren;
  983. /* readonly */
  984. uint numAttributes;
  985. /* readonly */
  986. uint numChildren;
  987. ObjectAnimation objectAnimation;
  988. float opacity;
  989. UIElement parent;
  990. Vector2 pivot;
  991. IntVector2 position;
  992. int priority;
  993. /* readonly */
  994. int refs;
  995. /* readonly */
  996. UIElement root;
  997. /* readonly */
  998. IntVector2 screenPosition;
  999. bool selected;
  1000. IntVector2 size;
  1001. bool sortChildren;
  1002. String style;
  1003. /* readonly */
  1004. Array<String> tags;
  1005. bool temporary;
  1006. Texture texture;
  1007. bool tiled;
  1008. TraversalMode traversalMode;
  1009. /* readonly */
  1010. StringHash type;
  1011. /* readonly */
  1012. String typeName;
  1013. bool useDerivedOpacity;
  1014. /* readonly */
  1015. VariantMap vars;
  1016. VerticalAlignment verticalAlignment;
  1017. bool visible;
  1018. /* readonly */
  1019. bool visibleEffective;
  1020. /* readonly */
  1021. int weakRefs;
  1022. int width;
  1023. };
  1024. class BoundingBox
  1025. {
  1026. public:
  1027. BoundingBox();
  1028. BoundingBox(const BoundingBox&in);
  1029. BoundingBox(const Rect&in);
  1030. BoundingBox(const Vector3&in, const Vector3&in);
  1031. BoundingBox(float, float);
  1032. BoundingBox(const Frustum&in);
  1033. BoundingBox(const Polyhedron&in);
  1034. BoundingBox(const Sphere&in);
  1035. // Methods:
  1036. void Clear();
  1037. void Clip(const BoundingBox&);
  1038. void Define(const BoundingBox&);
  1039. void Define(const Frustum&);
  1040. void Define(const Polyhedron&);
  1041. void Define(const Sphere&);
  1042. void Define(const Vector3&);
  1043. void Define(const Vector3&, const Vector3&);
  1044. void Define(float, float);
  1045. bool Defined() const;
  1046. float DistanceToPoint(const Vector3&) const;
  1047. Intersection IsInside(const BoundingBox&) const;
  1048. Intersection IsInside(const Sphere&) const;
  1049. Intersection IsInside(const Vector3&) const;
  1050. Intersection IsInsideFast(const BoundingBox&) const;
  1051. Intersection IsInsideFast(const Sphere&) const;
  1052. void Merge(const BoundingBox&);
  1053. void Merge(const Frustum&);
  1054. void Merge(const Polyhedron&);
  1055. void Merge(const Sphere&);
  1056. void Merge(const Vector3&);
  1057. Rect Projected(const Matrix4&) const;
  1058. String ToString() const;
  1059. void Transform(const Matrix3&);
  1060. void Transform(const Matrix3x4&);
  1061. BoundingBox Transformed(const Matrix3&) const;
  1062. BoundingBox Transformed(const Matrix3x4&) const;
  1063. // Properties:
  1064. /* readonly */
  1065. Vector3 center;
  1066. /* readonly */
  1067. Vector3 halfSize;
  1068. Vector3 max;
  1069. Vector3 min;
  1070. /* readonly */
  1071. Vector3 size;
  1072. };
  1073. class Button
  1074. {
  1075. public:
  1076. Button();
  1077. Button(const String&in);
  1078. // Methods:
  1079. void AddChild(UIElement);
  1080. void AddTag(const String&);
  1081. void AddTags(const String&, int8 = ';');
  1082. void ApplyAttributes();
  1083. void BringToFront();
  1084. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1085. void DisableLayoutUpdate();
  1086. IntVector2 ElementToScreen(const IntVector2&);
  1087. void EnableLayoutUpdate();
  1088. uint FindChild(UIElement) const;
  1089. Variant GetAttribute(const String&) const;
  1090. ValueAnimation GetAttributeAnimation(const String&) const;
  1091. float GetAttributeAnimationSpeed(const String&) const;
  1092. float GetAttributeAnimationTime(const String&) const;
  1093. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1094. Variant GetAttributeDefault(const String&) const;
  1095. UIElement GetChild(const String&, bool = false) const;
  1096. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1097. Array<UIElement> GetChildren(bool = false) const;
  1098. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1099. UIElement GetElementEventSender() const;
  1100. bool GetInterceptNetworkUpdate(const String&) const;
  1101. uint GetNumChildren(bool) const;
  1102. bool HasSubscribedToEvent(Object, const String&);
  1103. bool HasSubscribedToEvent(const String&);
  1104. bool HasTag(const String&) const;
  1105. void InsertChild(uint, UIElement);
  1106. bool IsChildOf(UIElement) const;
  1107. bool IsInside(IntVector2, bool);
  1108. bool IsInsideCombined(IntVector2, bool);
  1109. bool Load(File);
  1110. bool Load(VectorBuffer&);
  1111. UIElement LoadChildXML(XMLFile, XMLFile);
  1112. UIElement LoadChildXML(const XMLElement&, XMLFile);
  1113. bool LoadJSON(const JSONValue&);
  1114. bool LoadXML(File);
  1115. bool LoadXML(VectorBuffer&);
  1116. bool LoadXML(XMLFile, XMLFile);
  1117. bool LoadXML(const XMLElement&, XMLFile);
  1118. bool LoadXML(const XMLElement&);
  1119. void MarkNetworkUpdate() const;
  1120. void Remove();
  1121. void RemoveAllChildren();
  1122. void RemoveAllTags();
  1123. void RemoveAttributeAnimation(const String&);
  1124. void RemoveChild(UIElement, uint = 0);
  1125. void RemoveChild(uint);
  1126. void RemoveInstanceDefault();
  1127. void RemoveObjectAnimation();
  1128. bool RemoveTag(const String&);
  1129. void ResetDeepEnabled();
  1130. void ResetToDefault();
  1131. bool Save(File) const;
  1132. bool Save(VectorBuffer&) const;
  1133. bool SaveJSON(JSONValue&) const;
  1134. bool SaveXML(File, const String& = "\t");
  1135. bool SaveXML(VectorBuffer&, const String& = "\t");
  1136. bool SaveXML(XMLElement&) const;
  1137. IntVector2 ScreenToElement(const IntVector2&);
  1138. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1139. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1140. void SetAnimationTime(float);
  1141. bool SetAttribute(const String&, const Variant&);
  1142. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1143. void SetAttributeAnimationSpeed(const String&, float);
  1144. void SetAttributeAnimationTime(const String&, float);
  1145. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1146. void SetDeepEnabled(bool);
  1147. void SetDisabledOffset(int, int);
  1148. void SetEnabledRecursive(bool);
  1149. void SetFixedHeight(int);
  1150. void SetFixedSize(int, int);
  1151. void SetFixedWidth(int);
  1152. void SetFullImageRect();
  1153. void SetHoverOffset(int, int);
  1154. void SetInterceptNetworkUpdate(const String&, bool);
  1155. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1156. void SetMaxAnchor(float, float);
  1157. void SetMaxSize(int, int);
  1158. void SetMinAnchor(float, float);
  1159. void SetMinSize(int, int);
  1160. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1161. void SetPivot(float, float);
  1162. void SetPosition(int, int);
  1163. void SetPressedChildOffset(int, int);
  1164. void SetPressedOffset(int, int);
  1165. void SetRepeat(float, float);
  1166. void SetSize(int, int);
  1167. bool SetStyle(const String&, XMLFile = null);
  1168. bool SetStyle(const XMLElement&);
  1169. bool SetStyleAuto(XMLFile = null);
  1170. void UpdateLayout();
  1171. const Variant& GetVar(const StringHash&);
  1172. // Properties:
  1173. bool animationEnabled;
  1174. /* readonly */
  1175. Array<Variant> attributeDefaults;
  1176. /* readonly */
  1177. Array<AttributeInfo> attributeInfos;
  1178. Array<Variant> attributes;
  1179. BlendMode blendMode;
  1180. IntRect border;
  1181. bool bringToBack;
  1182. bool bringToFront;
  1183. /* readonly */
  1184. String category;
  1185. /* readonly */
  1186. IntVector2 childOffset;
  1187. /* readonly */
  1188. Array<UIElement> children;
  1189. IntRect clipBorder;
  1190. bool clipChildren;
  1191. /* writeonly */
  1192. Color color;
  1193. /* readonly */
  1194. bool colorGradient;
  1195. Array<Color> colors;
  1196. /* readonly */
  1197. IntRect combinedScreenRect;
  1198. XMLFile defaultStyle;
  1199. /* readonly */
  1200. float derivedOpacity;
  1201. IntVector2 disabledOffset;
  1202. /* readonly */
  1203. uint dragButtonCombo;
  1204. /* readonly */
  1205. int dragButtonCount;
  1206. uint dragDropMode;
  1207. bool editable;
  1208. bool elementEventSender;
  1209. bool enableAnchor;
  1210. bool enabled;
  1211. /* readonly */
  1212. bool enabledSelf;
  1213. /* readonly */
  1214. bool fixedHeight;
  1215. /* readonly */
  1216. bool fixedSize;
  1217. /* readonly */
  1218. bool fixedWidth;
  1219. bool focus;
  1220. FocusMode focusMode;
  1221. int height;
  1222. HorizontalAlignment horizontalAlignment;
  1223. IntVector2 hoverOffset;
  1224. /* readonly */
  1225. bool hovering;
  1226. IntRect imageBorder;
  1227. IntRect imageRect;
  1228. int indent;
  1229. int indentSpacing;
  1230. /* readonly */
  1231. int indentWidth;
  1232. bool internal;
  1233. IntRect layoutBorder;
  1234. Vector2 layoutFlexScale;
  1235. LayoutMode layoutMode;
  1236. int layoutSpacing;
  1237. Vector2 maxAnchor;
  1238. int maxHeight;
  1239. IntVector2 maxOffset;
  1240. IntVector2 maxSize;
  1241. int maxWidth;
  1242. Vector2 minAnchor;
  1243. int minHeight;
  1244. IntVector2 minOffset;
  1245. IntVector2 minSize;
  1246. int minWidth;
  1247. String name;
  1248. /* readonly */
  1249. uint numAllChildren;
  1250. /* readonly */
  1251. uint numAttributes;
  1252. /* readonly */
  1253. uint numChildren;
  1254. ObjectAnimation objectAnimation;
  1255. float opacity;
  1256. UIElement parent;
  1257. Vector2 pivot;
  1258. IntVector2 position;
  1259. /* readonly */
  1260. bool pressed;
  1261. IntVector2 pressedChildOffset;
  1262. IntVector2 pressedOffset;
  1263. int priority;
  1264. /* readonly */
  1265. int refs;
  1266. float repeatDelay;
  1267. float repeatRate;
  1268. /* readonly */
  1269. UIElement root;
  1270. /* readonly */
  1271. IntVector2 screenPosition;
  1272. bool selected;
  1273. IntVector2 size;
  1274. bool sortChildren;
  1275. String style;
  1276. /* readonly */
  1277. Array<String> tags;
  1278. bool temporary;
  1279. Texture texture;
  1280. bool tiled;
  1281. TraversalMode traversalMode;
  1282. /* readonly */
  1283. StringHash type;
  1284. /* readonly */
  1285. String typeName;
  1286. bool useDerivedOpacity;
  1287. /* readonly */
  1288. VariantMap vars;
  1289. VerticalAlignment verticalAlignment;
  1290. bool visible;
  1291. /* readonly */
  1292. bool visibleEffective;
  1293. /* readonly */
  1294. int weakRefs;
  1295. int width;
  1296. };
  1297. class Camera
  1298. {
  1299. public:
  1300. // Methods:
  1301. void ApplyAttributes();
  1302. void DrawDebugGeometry(DebugRenderer, bool);
  1303. Variant GetAttribute(const String&) const;
  1304. ValueAnimation GetAttributeAnimation(const String&) const;
  1305. float GetAttributeAnimationSpeed(const String&) const;
  1306. float GetAttributeAnimationTime(const String&) const;
  1307. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1308. Variant GetAttributeDefault(const String&) const;
  1309. float GetDistance(const Vector3&) const;
  1310. float GetDistanceSquared(const Vector3&) const;
  1311. bool GetInterceptNetworkUpdate(const String&) const;
  1312. Ray GetScreenRay(float, float) const;
  1313. Frustum GetSplitFrustum(float, float) const;
  1314. bool HasSubscribedToEvent(Object, const String&);
  1315. bool HasSubscribedToEvent(const String&);
  1316. bool Load(File);
  1317. bool Load(VectorBuffer&);
  1318. bool LoadJSON(const JSONValue&);
  1319. bool LoadXML(const XMLElement&);
  1320. void MarkNetworkUpdate() const;
  1321. void Remove();
  1322. void RemoveAttributeAnimation(const String&);
  1323. void RemoveInstanceDefault();
  1324. void RemoveObjectAnimation();
  1325. void ResetToDefault();
  1326. bool Save(File) const;
  1327. bool Save(VectorBuffer&) const;
  1328. bool SaveJSON(JSONValue&) const;
  1329. bool SaveXML(XMLElement&) const;
  1330. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1332. void SetAnimationTime(float);
  1333. bool SetAttribute(const String&, const Variant&);
  1334. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1335. void SetAttributeAnimationSpeed(const String&, float);
  1336. void SetAttributeAnimationTime(const String&, float);
  1337. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1338. void SetInterceptNetworkUpdate(const String&, bool);
  1339. void SetOrthoSize(const Vector2&);
  1340. Vector2 WorldToScreenPoint(const Vector3&) const;
  1341. // Properties:
  1342. bool animationEnabled;
  1343. float aspectRatio;
  1344. /* readonly */
  1345. Array<Variant> attributeDefaults;
  1346. /* readonly */
  1347. Array<AttributeInfo> attributeInfos;
  1348. Array<Variant> attributes;
  1349. bool autoAspectRatio;
  1350. /* readonly */
  1351. String category;
  1352. Plane clipPlane;
  1353. /* readonly */
  1354. Matrix3x4 effectiveWorldTransform;
  1355. bool enabled;
  1356. /* readonly */
  1357. bool enabledEffective;
  1358. float farClip;
  1359. FillMode fillMode;
  1360. float fov;
  1361. /* readonly */
  1362. Frustum frustum;
  1363. /* readonly */
  1364. Matrix4 gpuProjection;
  1365. /* readonly */
  1366. float halfViewSize;
  1367. /* readonly */
  1368. uint id;
  1369. float lodBias;
  1370. float nearClip;
  1371. /* readonly */
  1372. Node node;
  1373. /* readonly */
  1374. uint numAttributes;
  1375. ObjectAnimation objectAnimation;
  1376. float orthoSize;
  1377. bool orthographic;
  1378. Matrix4 projection;
  1379. Vector2 projectionOffset;
  1380. Plane reflectionPlane;
  1381. /* readonly */
  1382. int refs;
  1383. /* readonly */
  1384. bool replicated;
  1385. bool temporary;
  1386. /* readonly */
  1387. StringHash type;
  1388. /* readonly */
  1389. String typeName;
  1390. bool useClipping;
  1391. bool useReflection;
  1392. /* readonly */
  1393. Matrix3x4 view;
  1394. uint viewMask;
  1395. uint viewOverrideFlags;
  1396. /* readonly */
  1397. Frustum viewSpaceFrustum;
  1398. /* readonly */
  1399. int weakRefs;
  1400. float zoom;
  1401. };
  1402. class CascadeParameters
  1403. {
  1404. public:
  1405. CascadeParameters();
  1406. CascadeParameters(const CascadeParameters&in);
  1407. CascadeParameters(float, float, float, float, float, float biasAutoAdjust = 1.0);
  1408. // Properties:
  1409. float biasAutoAdjust;
  1410. float fadeStart;
  1411. float split1;
  1412. float split2;
  1413. float split3;
  1414. float split4;
  1415. };
  1416. class CheckBox
  1417. {
  1418. public:
  1419. CheckBox();
  1420. CheckBox(const String&in);
  1421. // Methods:
  1422. void AddChild(UIElement);
  1423. void AddTag(const String&);
  1424. void AddTags(const String&, int8 = ';');
  1425. void ApplyAttributes();
  1426. void BringToFront();
  1427. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1428. void DisableLayoutUpdate();
  1429. IntVector2 ElementToScreen(const IntVector2&);
  1430. void EnableLayoutUpdate();
  1431. uint FindChild(UIElement) const;
  1432. Variant GetAttribute(const String&) const;
  1433. ValueAnimation GetAttributeAnimation(const String&) const;
  1434. float GetAttributeAnimationSpeed(const String&) const;
  1435. float GetAttributeAnimationTime(const String&) const;
  1436. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1437. Variant GetAttributeDefault(const String&) const;
  1438. UIElement GetChild(const String&, bool = false) const;
  1439. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1440. Array<UIElement> GetChildren(bool = false) const;
  1441. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1442. UIElement GetElementEventSender() const;
  1443. bool GetInterceptNetworkUpdate(const String&) const;
  1444. uint GetNumChildren(bool) const;
  1445. bool HasSubscribedToEvent(Object, const String&);
  1446. bool HasSubscribedToEvent(const String&);
  1447. bool HasTag(const String&) const;
  1448. void InsertChild(uint, UIElement);
  1449. bool IsChildOf(UIElement) const;
  1450. bool IsInside(IntVector2, bool);
  1451. bool IsInsideCombined(IntVector2, bool);
  1452. bool Load(File);
  1453. bool Load(VectorBuffer&);
  1454. UIElement LoadChildXML(XMLFile, XMLFile);
  1455. UIElement LoadChildXML(const XMLElement&, XMLFile);
  1456. bool LoadJSON(const JSONValue&);
  1457. bool LoadXML(File);
  1458. bool LoadXML(VectorBuffer&);
  1459. bool LoadXML(XMLFile, XMLFile);
  1460. bool LoadXML(const XMLElement&, XMLFile);
  1461. bool LoadXML(const XMLElement&);
  1462. void MarkNetworkUpdate() const;
  1463. void Remove();
  1464. void RemoveAllChildren();
  1465. void RemoveAllTags();
  1466. void RemoveAttributeAnimation(const String&);
  1467. void RemoveChild(UIElement, uint = 0);
  1468. void RemoveChild(uint);
  1469. void RemoveInstanceDefault();
  1470. void RemoveObjectAnimation();
  1471. bool RemoveTag(const String&);
  1472. void ResetDeepEnabled();
  1473. void ResetToDefault();
  1474. bool Save(File) const;
  1475. bool Save(VectorBuffer&) const;
  1476. bool SaveJSON(JSONValue&) const;
  1477. bool SaveXML(File, const String& = "\t");
  1478. bool SaveXML(VectorBuffer&, const String& = "\t");
  1479. bool SaveXML(XMLElement&) const;
  1480. IntVector2 ScreenToElement(const IntVector2&);
  1481. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1482. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1483. void SetAnimationTime(float);
  1484. bool SetAttribute(const String&, const Variant&);
  1485. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1486. void SetAttributeAnimationSpeed(const String&, float);
  1487. void SetAttributeAnimationTime(const String&, float);
  1488. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1489. void SetCheckedOffset(int, int);
  1490. void SetDeepEnabled(bool);
  1491. void SetEnabledRecursive(bool);
  1492. void SetFixedHeight(int);
  1493. void SetFixedSize(int, int);
  1494. void SetFixedWidth(int);
  1495. void SetFullImageRect();
  1496. void SetHoverOffset(int, int);
  1497. void SetInterceptNetworkUpdate(const String&, bool);
  1498. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1499. void SetMaxAnchor(float, float);
  1500. void SetMaxSize(int, int);
  1501. void SetMinAnchor(float, float);
  1502. void SetMinSize(int, int);
  1503. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1504. void SetPivot(float, float);
  1505. void SetPosition(int, int);
  1506. void SetSize(int, int);
  1507. bool SetStyle(const String&, XMLFile = null);
  1508. bool SetStyle(const XMLElement&);
  1509. bool SetStyleAuto(XMLFile = null);
  1510. void UpdateLayout();
  1511. const Variant& GetVar(const StringHash&);
  1512. // Properties:
  1513. bool animationEnabled;
  1514. /* readonly */
  1515. Array<Variant> attributeDefaults;
  1516. /* readonly */
  1517. Array<AttributeInfo> attributeInfos;
  1518. Array<Variant> attributes;
  1519. BlendMode blendMode;
  1520. IntRect border;
  1521. bool bringToBack;
  1522. bool bringToFront;
  1523. /* readonly */
  1524. String category;
  1525. bool checked;
  1526. IntVector2 checkedOffset;
  1527. /* readonly */
  1528. IntVector2 childOffset;
  1529. /* readonly */
  1530. Array<UIElement> children;
  1531. IntRect clipBorder;
  1532. bool clipChildren;
  1533. /* writeonly */
  1534. Color color;
  1535. /* readonly */
  1536. bool colorGradient;
  1537. Array<Color> colors;
  1538. /* readonly */
  1539. IntRect combinedScreenRect;
  1540. XMLFile defaultStyle;
  1541. /* readonly */
  1542. float derivedOpacity;
  1543. /* readonly */
  1544. uint dragButtonCombo;
  1545. /* readonly */
  1546. int dragButtonCount;
  1547. uint dragDropMode;
  1548. bool editable;
  1549. bool elementEventSender;
  1550. bool enableAnchor;
  1551. bool enabled;
  1552. /* readonly */
  1553. bool enabledSelf;
  1554. /* readonly */
  1555. bool fixedHeight;
  1556. /* readonly */
  1557. bool fixedSize;
  1558. /* readonly */
  1559. bool fixedWidth;
  1560. bool focus;
  1561. FocusMode focusMode;
  1562. int height;
  1563. HorizontalAlignment horizontalAlignment;
  1564. IntVector2 hoverOffset;
  1565. /* readonly */
  1566. bool hovering;
  1567. IntRect imageBorder;
  1568. IntRect imageRect;
  1569. int indent;
  1570. int indentSpacing;
  1571. /* readonly */
  1572. int indentWidth;
  1573. bool internal;
  1574. IntRect layoutBorder;
  1575. Vector2 layoutFlexScale;
  1576. LayoutMode layoutMode;
  1577. int layoutSpacing;
  1578. Vector2 maxAnchor;
  1579. int maxHeight;
  1580. IntVector2 maxOffset;
  1581. IntVector2 maxSize;
  1582. int maxWidth;
  1583. Vector2 minAnchor;
  1584. int minHeight;
  1585. IntVector2 minOffset;
  1586. IntVector2 minSize;
  1587. int minWidth;
  1588. String name;
  1589. /* readonly */
  1590. uint numAllChildren;
  1591. /* readonly */
  1592. uint numAttributes;
  1593. /* readonly */
  1594. uint numChildren;
  1595. ObjectAnimation objectAnimation;
  1596. float opacity;
  1597. UIElement parent;
  1598. Vector2 pivot;
  1599. IntVector2 position;
  1600. int priority;
  1601. /* readonly */
  1602. int refs;
  1603. /* readonly */
  1604. UIElement root;
  1605. /* readonly */
  1606. IntVector2 screenPosition;
  1607. bool selected;
  1608. IntVector2 size;
  1609. bool sortChildren;
  1610. String style;
  1611. /* readonly */
  1612. Array<String> tags;
  1613. bool temporary;
  1614. Texture texture;
  1615. bool tiled;
  1616. TraversalMode traversalMode;
  1617. /* readonly */
  1618. StringHash type;
  1619. /* readonly */
  1620. String typeName;
  1621. bool useDerivedOpacity;
  1622. /* readonly */
  1623. VariantMap vars;
  1624. VerticalAlignment verticalAlignment;
  1625. bool visible;
  1626. /* readonly */
  1627. bool visibleEffective;
  1628. /* readonly */
  1629. int weakRefs;
  1630. int width;
  1631. };
  1632. class CollisionBox2D
  1633. {
  1634. public:
  1635. // Methods:
  1636. void ApplyAttributes();
  1637. void DrawDebugGeometry(DebugRenderer, bool);
  1638. Variant GetAttribute(const String&) const;
  1639. ValueAnimation GetAttributeAnimation(const String&) const;
  1640. float GetAttributeAnimationSpeed(const String&) const;
  1641. float GetAttributeAnimationTime(const String&) const;
  1642. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1643. Variant GetAttributeDefault(const String&) const;
  1644. bool GetInterceptNetworkUpdate(const String&) const;
  1645. bool HasSubscribedToEvent(Object, const String&);
  1646. bool HasSubscribedToEvent(const String&);
  1647. bool Load(File);
  1648. bool Load(VectorBuffer&);
  1649. bool LoadJSON(const JSONValue&);
  1650. bool LoadXML(const XMLElement&);
  1651. void MarkNetworkUpdate() const;
  1652. void Remove();
  1653. void RemoveAttributeAnimation(const String&);
  1654. void RemoveInstanceDefault();
  1655. void RemoveObjectAnimation();
  1656. void ResetToDefault();
  1657. bool Save(File) const;
  1658. bool Save(VectorBuffer&) const;
  1659. bool SaveJSON(JSONValue&) const;
  1660. bool SaveXML(XMLElement&) const;
  1661. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1662. void SetAnimationTime(float);
  1663. bool SetAttribute(const String&, const Variant&);
  1664. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1665. void SetAttributeAnimationSpeed(const String&, float);
  1666. void SetAttributeAnimationTime(const String&, float);
  1667. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1668. void SetCenter(float, float);
  1669. void SetInterceptNetworkUpdate(const String&, bool);
  1670. void SetSize(float, float);
  1671. // Properties:
  1672. float angle;
  1673. bool animationEnabled;
  1674. /* readonly */
  1675. Array<Variant> attributeDefaults;
  1676. /* readonly */
  1677. Array<AttributeInfo> attributeInfos;
  1678. Array<Variant> attributes;
  1679. /* readonly */
  1680. String category;
  1681. int categoryBits;
  1682. Vector2 center;
  1683. float density;
  1684. bool enabled;
  1685. /* readonly */
  1686. bool enabledEffective;
  1687. float friction;
  1688. int groupIndex;
  1689. /* readonly */
  1690. uint id;
  1691. /* readonly */
  1692. float inertia;
  1693. int maskBits;
  1694. /* readonly */
  1695. float mass;
  1696. /* readonly */
  1697. Vector2 massCenter;
  1698. /* readonly */
  1699. Node node;
  1700. /* readonly */
  1701. uint numAttributes;
  1702. ObjectAnimation objectAnimation;
  1703. /* readonly */
  1704. int refs;
  1705. /* readonly */
  1706. bool replicated;
  1707. float restitution;
  1708. Vector2 size;
  1709. bool temporary;
  1710. bool trigger;
  1711. /* readonly */
  1712. StringHash type;
  1713. /* readonly */
  1714. String typeName;
  1715. /* readonly */
  1716. int weakRefs;
  1717. };
  1718. class CollisionChain2D
  1719. {
  1720. public:
  1721. // Methods:
  1722. void ApplyAttributes();
  1723. void DrawDebugGeometry(DebugRenderer, bool);
  1724. Variant GetAttribute(const String&) const;
  1725. ValueAnimation GetAttributeAnimation(const String&) const;
  1726. float GetAttributeAnimationSpeed(const String&) const;
  1727. float GetAttributeAnimationTime(const String&) const;
  1728. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1729. Variant GetAttributeDefault(const String&) const;
  1730. bool GetInterceptNetworkUpdate(const String&) const;
  1731. Array<Vector2> GetVertices() const;
  1732. bool HasSubscribedToEvent(Object, const String&);
  1733. bool HasSubscribedToEvent(const String&);
  1734. bool Load(File);
  1735. bool Load(VectorBuffer&);
  1736. bool LoadJSON(const JSONValue&);
  1737. bool LoadXML(const XMLElement&);
  1738. void MarkNetworkUpdate() const;
  1739. void Remove();
  1740. void RemoveAttributeAnimation(const String&);
  1741. void RemoveInstanceDefault();
  1742. void RemoveObjectAnimation();
  1743. void ResetToDefault();
  1744. bool Save(File) const;
  1745. bool Save(VectorBuffer&) const;
  1746. bool SaveJSON(JSONValue&) const;
  1747. bool SaveXML(XMLElement&) const;
  1748. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1749. void SetAnimationTime(float);
  1750. bool SetAttribute(const String&, const Variant&);
  1751. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1752. void SetAttributeAnimationSpeed(const String&, float);
  1753. void SetAttributeAnimationTime(const String&, float);
  1754. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1755. void SetInterceptNetworkUpdate(const String&, bool);
  1756. void SetVertex(uint, const Vector2&);
  1757. void SetVertices(Array<Vector2>);
  1758. const Vector2& GetVertex(uint) const;
  1759. // Properties:
  1760. bool animationEnabled;
  1761. /* readonly */
  1762. Array<Variant> attributeDefaults;
  1763. /* readonly */
  1764. Array<AttributeInfo> attributeInfos;
  1765. Array<Variant> attributes;
  1766. /* readonly */
  1767. String category;
  1768. int categoryBits;
  1769. float density;
  1770. bool enabled;
  1771. /* readonly */
  1772. bool enabledEffective;
  1773. float friction;
  1774. int groupIndex;
  1775. /* readonly */
  1776. uint id;
  1777. /* readonly */
  1778. float inertia;
  1779. bool loop;
  1780. int maskBits;
  1781. /* readonly */
  1782. float mass;
  1783. /* readonly */
  1784. Vector2 massCenter;
  1785. /* readonly */
  1786. Node node;
  1787. /* readonly */
  1788. uint numAttributes;
  1789. ObjectAnimation objectAnimation;
  1790. /* readonly */
  1791. int refs;
  1792. /* readonly */
  1793. bool replicated;
  1794. float restitution;
  1795. bool temporary;
  1796. bool trigger;
  1797. /* readonly */
  1798. StringHash type;
  1799. /* readonly */
  1800. String typeName;
  1801. uint vertexCount;
  1802. /* readonly */
  1803. int weakRefs;
  1804. };
  1805. class CollisionCircle2D
  1806. {
  1807. public:
  1808. // Methods:
  1809. void ApplyAttributes();
  1810. void DrawDebugGeometry(DebugRenderer, bool);
  1811. Variant GetAttribute(const String&) const;
  1812. ValueAnimation GetAttributeAnimation(const String&) const;
  1813. float GetAttributeAnimationSpeed(const String&) const;
  1814. float GetAttributeAnimationTime(const String&) const;
  1815. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1816. Variant GetAttributeDefault(const String&) const;
  1817. bool GetInterceptNetworkUpdate(const String&) const;
  1818. bool HasSubscribedToEvent(Object, const String&);
  1819. bool HasSubscribedToEvent(const String&);
  1820. bool Load(File);
  1821. bool Load(VectorBuffer&);
  1822. bool LoadJSON(const JSONValue&);
  1823. bool LoadXML(const XMLElement&);
  1824. void MarkNetworkUpdate() const;
  1825. void Remove();
  1826. void RemoveAttributeAnimation(const String&);
  1827. void RemoveInstanceDefault();
  1828. void RemoveObjectAnimation();
  1829. void ResetToDefault();
  1830. bool Save(File) const;
  1831. bool Save(VectorBuffer&) const;
  1832. bool SaveJSON(JSONValue&) const;
  1833. bool SaveXML(XMLElement&) const;
  1834. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1835. void SetAnimationTime(float);
  1836. bool SetAttribute(const String&, const Variant&);
  1837. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1838. void SetAttributeAnimationSpeed(const String&, float);
  1839. void SetAttributeAnimationTime(const String&, float);
  1840. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1841. void SetCenter(float, float);
  1842. void SetInterceptNetworkUpdate(const String&, bool);
  1843. // Properties:
  1844. bool animationEnabled;
  1845. /* readonly */
  1846. Array<Variant> attributeDefaults;
  1847. /* readonly */
  1848. Array<AttributeInfo> attributeInfos;
  1849. Array<Variant> attributes;
  1850. /* readonly */
  1851. String category;
  1852. int categoryBits;
  1853. Vector2 center;
  1854. float density;
  1855. bool enabled;
  1856. /* readonly */
  1857. bool enabledEffective;
  1858. float friction;
  1859. int groupIndex;
  1860. /* readonly */
  1861. uint id;
  1862. /* readonly */
  1863. float inertia;
  1864. int maskBits;
  1865. /* readonly */
  1866. float mass;
  1867. /* readonly */
  1868. Vector2 massCenter;
  1869. /* readonly */
  1870. Node node;
  1871. /* readonly */
  1872. uint numAttributes;
  1873. ObjectAnimation objectAnimation;
  1874. float radius;
  1875. /* readonly */
  1876. int refs;
  1877. /* readonly */
  1878. bool replicated;
  1879. float restitution;
  1880. bool temporary;
  1881. bool trigger;
  1882. /* readonly */
  1883. StringHash type;
  1884. /* readonly */
  1885. String typeName;
  1886. /* readonly */
  1887. int weakRefs;
  1888. };
  1889. class CollisionEdge2D
  1890. {
  1891. public:
  1892. // Methods:
  1893. void ApplyAttributes();
  1894. void DrawDebugGeometry(DebugRenderer, bool);
  1895. Variant GetAttribute(const String&) const;
  1896. ValueAnimation GetAttributeAnimation(const String&) const;
  1897. float GetAttributeAnimationSpeed(const String&) const;
  1898. float GetAttributeAnimationTime(const String&) const;
  1899. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1900. Variant GetAttributeDefault(const String&) const;
  1901. bool GetInterceptNetworkUpdate(const String&) const;
  1902. bool HasSubscribedToEvent(Object, const String&);
  1903. bool HasSubscribedToEvent(const String&);
  1904. bool Load(File);
  1905. bool Load(VectorBuffer&);
  1906. bool LoadJSON(const JSONValue&);
  1907. bool LoadXML(const XMLElement&);
  1908. void MarkNetworkUpdate() const;
  1909. void Remove();
  1910. void RemoveAttributeAnimation(const String&);
  1911. void RemoveInstanceDefault();
  1912. void RemoveObjectAnimation();
  1913. void ResetToDefault();
  1914. bool Save(File) const;
  1915. bool Save(VectorBuffer&) const;
  1916. bool SaveJSON(JSONValue&) const;
  1917. bool SaveXML(XMLElement&) const;
  1918. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1919. void SetAnimationTime(float);
  1920. bool SetAttribute(const String&, const Variant&);
  1921. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1922. void SetAttributeAnimationSpeed(const String&, float);
  1923. void SetAttributeAnimationTime(const String&, float);
  1924. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1925. void SetInterceptNetworkUpdate(const String&, bool);
  1926. void SetVertices(const Vector2&, const Vector2&);
  1927. // Properties:
  1928. bool animationEnabled;
  1929. /* readonly */
  1930. Array<Variant> attributeDefaults;
  1931. /* readonly */
  1932. Array<AttributeInfo> attributeInfos;
  1933. Array<Variant> attributes;
  1934. /* readonly */
  1935. String category;
  1936. int categoryBits;
  1937. float density;
  1938. bool enabled;
  1939. /* readonly */
  1940. bool enabledEffective;
  1941. float friction;
  1942. int groupIndex;
  1943. /* readonly */
  1944. uint id;
  1945. /* readonly */
  1946. float inertia;
  1947. int maskBits;
  1948. /* readonly */
  1949. float mass;
  1950. /* readonly */
  1951. Vector2 massCenter;
  1952. /* readonly */
  1953. Node node;
  1954. /* readonly */
  1955. uint numAttributes;
  1956. ObjectAnimation objectAnimation;
  1957. /* readonly */
  1958. int refs;
  1959. /* readonly */
  1960. bool replicated;
  1961. float restitution;
  1962. bool temporary;
  1963. bool trigger;
  1964. /* readonly */
  1965. StringHash type;
  1966. /* readonly */
  1967. String typeName;
  1968. Vector2 vertex1;
  1969. Vector2 vertex2;
  1970. /* readonly */
  1971. int weakRefs;
  1972. };
  1973. class CollisionPolygon2D
  1974. {
  1975. public:
  1976. // Methods:
  1977. void ApplyAttributes();
  1978. void DrawDebugGeometry(DebugRenderer, bool);
  1979. Variant GetAttribute(const String&) const;
  1980. ValueAnimation GetAttributeAnimation(const String&) const;
  1981. float GetAttributeAnimationSpeed(const String&) const;
  1982. float GetAttributeAnimationTime(const String&) const;
  1983. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1984. Variant GetAttributeDefault(const String&) const;
  1985. bool GetInterceptNetworkUpdate(const String&) const;
  1986. Array<Vector2> GetVertices() const;
  1987. bool HasSubscribedToEvent(Object, const String&);
  1988. bool HasSubscribedToEvent(const String&);
  1989. bool Load(File);
  1990. bool Load(VectorBuffer&);
  1991. bool LoadJSON(const JSONValue&);
  1992. bool LoadXML(const XMLElement&);
  1993. void MarkNetworkUpdate() const;
  1994. void Remove();
  1995. void RemoveAttributeAnimation(const String&);
  1996. void RemoveInstanceDefault();
  1997. void RemoveObjectAnimation();
  1998. void ResetToDefault();
  1999. bool Save(File) const;
  2000. bool Save(VectorBuffer&) const;
  2001. bool SaveJSON(JSONValue&) const;
  2002. bool SaveXML(XMLElement&) const;
  2003. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2004. void SetAnimationTime(float);
  2005. bool SetAttribute(const String&, const Variant&);
  2006. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2007. void SetAttributeAnimationSpeed(const String&, float);
  2008. void SetAttributeAnimationTime(const String&, float);
  2009. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2010. void SetInterceptNetworkUpdate(const String&, bool);
  2011. void SetVertex(uint, const Vector2&);
  2012. void SetVertices(Array<Vector2>);
  2013. const Vector2& GetVertex(uint) const;
  2014. // Properties:
  2015. bool animationEnabled;
  2016. /* readonly */
  2017. Array<Variant> attributeDefaults;
  2018. /* readonly */
  2019. Array<AttributeInfo> attributeInfos;
  2020. Array<Variant> attributes;
  2021. /* readonly */
  2022. String category;
  2023. int categoryBits;
  2024. float density;
  2025. bool enabled;
  2026. /* readonly */
  2027. bool enabledEffective;
  2028. float friction;
  2029. int groupIndex;
  2030. /* readonly */
  2031. uint id;
  2032. /* readonly */
  2033. float inertia;
  2034. int maskBits;
  2035. /* readonly */
  2036. float mass;
  2037. /* readonly */
  2038. Vector2 massCenter;
  2039. /* readonly */
  2040. Node node;
  2041. /* readonly */
  2042. uint numAttributes;
  2043. ObjectAnimation objectAnimation;
  2044. /* readonly */
  2045. int refs;
  2046. /* readonly */
  2047. bool replicated;
  2048. float restitution;
  2049. bool temporary;
  2050. bool trigger;
  2051. /* readonly */
  2052. StringHash type;
  2053. /* readonly */
  2054. String typeName;
  2055. uint vertexCount;
  2056. /* readonly */
  2057. int weakRefs;
  2058. };
  2059. class CollisionShape
  2060. {
  2061. public:
  2062. // Methods:
  2063. void ApplyAttributes();
  2064. void DrawDebugGeometry(DebugRenderer, bool);
  2065. Variant GetAttribute(const String&) const;
  2066. ValueAnimation GetAttributeAnimation(const String&) const;
  2067. float GetAttributeAnimationSpeed(const String&) const;
  2068. float GetAttributeAnimationTime(const String&) const;
  2069. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2070. Variant GetAttributeDefault(const String&) const;
  2071. bool GetInterceptNetworkUpdate(const String&) const;
  2072. bool HasSubscribedToEvent(Object, const String&);
  2073. bool HasSubscribedToEvent(const String&);
  2074. bool Load(File);
  2075. bool Load(VectorBuffer&);
  2076. bool LoadJSON(const JSONValue&);
  2077. bool LoadXML(const XMLElement&);
  2078. void MarkNetworkUpdate() const;
  2079. void Remove();
  2080. void RemoveAttributeAnimation(const String&);
  2081. void RemoveInstanceDefault();
  2082. void RemoveObjectAnimation();
  2083. void ResetToDefault();
  2084. bool Save(File) const;
  2085. bool Save(VectorBuffer&) const;
  2086. bool SaveJSON(JSONValue&) const;
  2087. bool SaveXML(XMLElement&) const;
  2088. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2089. void SetAnimationTime(float);
  2090. bool SetAttribute(const String&, const Variant&);
  2091. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2092. void SetAttributeAnimationSpeed(const String&, float);
  2093. void SetAttributeAnimationTime(const String&, float);
  2094. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2095. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2096. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2097. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2098. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2099. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2100. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2101. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2102. void SetInterceptNetworkUpdate(const String&, bool);
  2103. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2104. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2105. void SetTerrain(uint = 0);
  2106. void SetTransform(const Vector3&, const Quaternion&);
  2107. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2108. // Properties:
  2109. bool animationEnabled;
  2110. /* readonly */
  2111. Array<Variant> attributeDefaults;
  2112. /* readonly */
  2113. Array<AttributeInfo> attributeInfos;
  2114. Array<Variant> attributes;
  2115. /* readonly */
  2116. String category;
  2117. bool enabled;
  2118. /* readonly */
  2119. bool enabledEffective;
  2120. /* readonly */
  2121. uint id;
  2122. uint lodLevel;
  2123. float margin;
  2124. Model model;
  2125. /* readonly */
  2126. Node node;
  2127. /* readonly */
  2128. uint numAttributes;
  2129. ObjectAnimation objectAnimation;
  2130. Vector3 position;
  2131. /* readonly */
  2132. int refs;
  2133. /* readonly */
  2134. bool replicated;
  2135. Quaternion rotation;
  2136. ShapeType shapeType;
  2137. Vector3 size;
  2138. bool temporary;
  2139. /* readonly */
  2140. StringHash type;
  2141. /* readonly */
  2142. String typeName;
  2143. /* readonly */
  2144. int weakRefs;
  2145. /* readonly */
  2146. BoundingBox worldBoundingBox;
  2147. };
  2148. class CollisionShape2D
  2149. {
  2150. public:
  2151. // Methods:
  2152. void ApplyAttributes();
  2153. void DrawDebugGeometry(DebugRenderer, bool);
  2154. Variant GetAttribute(const String&) const;
  2155. ValueAnimation GetAttributeAnimation(const String&) const;
  2156. float GetAttributeAnimationSpeed(const String&) const;
  2157. float GetAttributeAnimationTime(const String&) const;
  2158. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2159. Variant GetAttributeDefault(const String&) const;
  2160. bool GetInterceptNetworkUpdate(const String&) const;
  2161. bool HasSubscribedToEvent(Object, const String&);
  2162. bool HasSubscribedToEvent(const String&);
  2163. bool Load(File);
  2164. bool Load(VectorBuffer&);
  2165. bool LoadJSON(const JSONValue&);
  2166. bool LoadXML(const XMLElement&);
  2167. void MarkNetworkUpdate() const;
  2168. void Remove();
  2169. void RemoveAttributeAnimation(const String&);
  2170. void RemoveInstanceDefault();
  2171. void RemoveObjectAnimation();
  2172. void ResetToDefault();
  2173. bool Save(File) const;
  2174. bool Save(VectorBuffer&) const;
  2175. bool SaveJSON(JSONValue&) const;
  2176. bool SaveXML(XMLElement&) const;
  2177. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2178. void SetAnimationTime(float);
  2179. bool SetAttribute(const String&, const Variant&);
  2180. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2181. void SetAttributeAnimationSpeed(const String&, float);
  2182. void SetAttributeAnimationTime(const String&, float);
  2183. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2184. void SetInterceptNetworkUpdate(const String&, bool);
  2185. // Properties:
  2186. bool animationEnabled;
  2187. /* readonly */
  2188. Array<Variant> attributeDefaults;
  2189. /* readonly */
  2190. Array<AttributeInfo> attributeInfos;
  2191. Array<Variant> attributes;
  2192. /* readonly */
  2193. String category;
  2194. int categoryBits;
  2195. float density;
  2196. bool enabled;
  2197. /* readonly */
  2198. bool enabledEffective;
  2199. float friction;
  2200. int groupIndex;
  2201. /* readonly */
  2202. uint id;
  2203. /* readonly */
  2204. float inertia;
  2205. int maskBits;
  2206. /* readonly */
  2207. float mass;
  2208. /* readonly */
  2209. Vector2 massCenter;
  2210. /* readonly */
  2211. Node node;
  2212. /* readonly */
  2213. uint numAttributes;
  2214. ObjectAnimation objectAnimation;
  2215. /* readonly */
  2216. int refs;
  2217. /* readonly */
  2218. bool replicated;
  2219. float restitution;
  2220. bool temporary;
  2221. bool trigger;
  2222. /* readonly */
  2223. StringHash type;
  2224. /* readonly */
  2225. String typeName;
  2226. /* readonly */
  2227. int weakRefs;
  2228. };
  2229. class Color
  2230. {
  2231. public:
  2232. Color();
  2233. Color(const Color&in);
  2234. Color(float, float, float, float);
  2235. Color(float, float, float);
  2236. Color(float[]&inout);
  2237. // Methods:
  2238. Color Abs() const;
  2239. float Average() const;
  2240. float Chroma() const;
  2241. void Clip(bool);
  2242. bool Equals() const;
  2243. void FromHSL(float, float, float, float);
  2244. void FromHSV(float, float, float, float);
  2245. void FromUInt(uint);
  2246. float Hue() const;
  2247. void Invert(bool);
  2248. Color Lerp(const Color&, float) const;
  2249. float Lightness() const;
  2250. float Luma() const;
  2251. float MaxRGB() const;
  2252. float MinRGB() const;
  2253. float Range() const;
  2254. float SaturationHSL() const;
  2255. float SaturationHSV() const;
  2256. float SumRGB() const;
  2257. Vector3 ToHSL() const;
  2258. Vector3 ToHSV() const;
  2259. String ToString() const;
  2260. uint ToUInt() const;
  2261. float Value() const;
  2262. // Properties:
  2263. float a;
  2264. float b;
  2265. /* readonly */
  2266. Array<float> data;
  2267. float g;
  2268. float r;
  2269. /* readonly */
  2270. Vector3 rgb;
  2271. /* readonly */
  2272. Vector4 rgba;
  2273. };
  2274. class ColorFrame
  2275. {
  2276. public:
  2277. // Properties:
  2278. Color color;
  2279. float time;
  2280. };
  2281. class Component
  2282. {
  2283. public:
  2284. // Methods:
  2285. void ApplyAttributes();
  2286. void DrawDebugGeometry(DebugRenderer, bool);
  2287. Variant GetAttribute(const String&) const;
  2288. ValueAnimation GetAttributeAnimation(const String&) const;
  2289. float GetAttributeAnimationSpeed(const String&) const;
  2290. float GetAttributeAnimationTime(const String&) const;
  2291. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2292. Variant GetAttributeDefault(const String&) const;
  2293. bool GetInterceptNetworkUpdate(const String&) const;
  2294. bool HasSubscribedToEvent(Object, const String&);
  2295. bool HasSubscribedToEvent(const String&);
  2296. bool Load(File);
  2297. bool Load(VectorBuffer&);
  2298. bool LoadJSON(const JSONValue&);
  2299. bool LoadXML(const XMLElement&);
  2300. void MarkNetworkUpdate() const;
  2301. void Remove();
  2302. void RemoveAttributeAnimation(const String&);
  2303. void RemoveInstanceDefault();
  2304. void RemoveObjectAnimation();
  2305. void ResetToDefault();
  2306. bool Save(File) const;
  2307. bool Save(VectorBuffer&) const;
  2308. bool SaveJSON(JSONValue&) const;
  2309. bool SaveXML(XMLElement&) const;
  2310. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2311. void SetAnimationTime(float);
  2312. bool SetAttribute(const String&, const Variant&);
  2313. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2314. void SetAttributeAnimationSpeed(const String&, float);
  2315. void SetAttributeAnimationTime(const String&, float);
  2316. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2317. void SetInterceptNetworkUpdate(const String&, bool);
  2318. // Properties:
  2319. bool animationEnabled;
  2320. /* readonly */
  2321. Array<Variant> attributeDefaults;
  2322. /* readonly */
  2323. Array<AttributeInfo> attributeInfos;
  2324. Array<Variant> attributes;
  2325. /* readonly */
  2326. String category;
  2327. bool enabled;
  2328. /* readonly */
  2329. bool enabledEffective;
  2330. /* readonly */
  2331. uint id;
  2332. /* readonly */
  2333. Node node;
  2334. /* readonly */
  2335. uint numAttributes;
  2336. ObjectAnimation objectAnimation;
  2337. /* readonly */
  2338. int refs;
  2339. /* readonly */
  2340. bool replicated;
  2341. bool temporary;
  2342. /* readonly */
  2343. StringHash type;
  2344. /* readonly */
  2345. String typeName;
  2346. /* readonly */
  2347. int weakRefs;
  2348. };
  2349. class Connection
  2350. {
  2351. public:
  2352. // Methods:
  2353. void Disconnect(int = 0);
  2354. bool HasSubscribedToEvent(Object, const String&);
  2355. bool HasSubscribedToEvent(const String&);
  2356. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2357. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2358. void SendPackageToClient(PackageFile);
  2359. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2360. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2361. String ToString() const;
  2362. // Properties:
  2363. /* readonly */
  2364. String address;
  2365. /* readonly */
  2366. float bytesInPerSec;
  2367. /* readonly */
  2368. float bytesOutPerSec;
  2369. /* readonly */
  2370. String category;
  2371. /* readonly */
  2372. bool client;
  2373. /* readonly */
  2374. bool connectPending;
  2375. /* readonly */
  2376. bool connected;
  2377. Controls controls;
  2378. /* readonly */
  2379. String downloadName;
  2380. /* readonly */
  2381. float downloadProgress;
  2382. VariantMap identity;
  2383. /* readonly */
  2384. float lastHeardTime;
  2385. bool logStatistics;
  2386. /* readonly */
  2387. uint numDownloads;
  2388. /* readonly */
  2389. float packetsInPerSec;
  2390. /* readonly */
  2391. float packetsOutPerSec;
  2392. /* readonly */
  2393. uint16 port;
  2394. Vector3 position;
  2395. /* readonly */
  2396. int refs;
  2397. Quaternion rotation;
  2398. /* readonly */
  2399. float roundTripTime;
  2400. Scene scene;
  2401. /* readonly */
  2402. bool sceneLoaded;
  2403. uint8 timeStamp;
  2404. /* readonly */
  2405. StringHash type;
  2406. /* readonly */
  2407. String typeName;
  2408. /* readonly */
  2409. int weakRefs;
  2410. };
  2411. class Console
  2412. {
  2413. public:
  2414. // Methods:
  2415. void AddAutoComplete(const String&);
  2416. void CopySelectedRows() const;
  2417. bool HasSubscribedToEvent(Object, const String&);
  2418. bool HasSubscribedToEvent(const String&);
  2419. void RemoveAutoComplete(const String&);
  2420. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2421. void Toggle();
  2422. void UpdateElements();
  2423. // Properties:
  2424. bool autoVisibleOnError;
  2425. /* readonly */
  2426. BorderImage background;
  2427. /* readonly */
  2428. String category;
  2429. /* readonly */
  2430. Button closeButton;
  2431. String commandInterpreter;
  2432. XMLFile defaultStyle;
  2433. bool focusOnShow;
  2434. /* readonly */
  2435. uint historyPosition;
  2436. /* readonly */
  2437. Array<String> historyRow;
  2438. /* readonly */
  2439. LineEdit lineEdit;
  2440. uint numBufferedRows;
  2441. uint numHistoryRows;
  2442. uint numRows;
  2443. /* readonly */
  2444. int refs;
  2445. /* readonly */
  2446. StringHash type;
  2447. /* readonly */
  2448. String typeName;
  2449. bool visible;
  2450. /* readonly */
  2451. int weakRefs;
  2452. };
  2453. class Constraint
  2454. {
  2455. public:
  2456. // Methods:
  2457. void ApplyAttributes();
  2458. void DrawDebugGeometry(DebugRenderer, bool);
  2459. Variant GetAttribute(const String&) const;
  2460. ValueAnimation GetAttributeAnimation(const String&) const;
  2461. float GetAttributeAnimationSpeed(const String&) const;
  2462. float GetAttributeAnimationTime(const String&) const;
  2463. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2464. Variant GetAttributeDefault(const String&) const;
  2465. bool GetInterceptNetworkUpdate(const String&) const;
  2466. bool HasSubscribedToEvent(Object, const String&);
  2467. bool HasSubscribedToEvent(const String&);
  2468. bool Load(File);
  2469. bool Load(VectorBuffer&);
  2470. bool LoadJSON(const JSONValue&);
  2471. bool LoadXML(const XMLElement&);
  2472. void MarkNetworkUpdate() const;
  2473. void Remove();
  2474. void RemoveAttributeAnimation(const String&);
  2475. void RemoveInstanceDefault();
  2476. void RemoveObjectAnimation();
  2477. void ResetToDefault();
  2478. bool Save(File) const;
  2479. bool Save(VectorBuffer&) const;
  2480. bool SaveJSON(JSONValue&) const;
  2481. bool SaveXML(XMLElement&) const;
  2482. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2483. void SetAnimationTime(float);
  2484. bool SetAttribute(const String&, const Variant&);
  2485. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2486. void SetAttributeAnimationSpeed(const String&, float);
  2487. void SetAttributeAnimationTime(const String&, float);
  2488. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2489. void SetInterceptNetworkUpdate(const String&, bool);
  2490. // Properties:
  2491. bool animationEnabled;
  2492. /* readonly */
  2493. Array<Variant> attributeDefaults;
  2494. /* readonly */
  2495. Array<AttributeInfo> attributeInfos;
  2496. Array<Variant> attributes;
  2497. /* writeonly */
  2498. Vector3 axis;
  2499. /* readonly */
  2500. String category;
  2501. float cfm;
  2502. ConstraintType constraintType;
  2503. bool disableCollision;
  2504. bool enabled;
  2505. /* readonly */
  2506. bool enabledEffective;
  2507. float erp;
  2508. Vector2 highLimit;
  2509. /* readonly */
  2510. uint id;
  2511. Vector2 lowLimit;
  2512. /* readonly */
  2513. Node node;
  2514. /* readonly */
  2515. uint numAttributes;
  2516. ObjectAnimation objectAnimation;
  2517. /* writeonly */
  2518. Vector3 otherAxis;
  2519. RigidBody otherBody;
  2520. Vector3 otherPosition;
  2521. Quaternion otherRotation;
  2522. /* readonly */
  2523. RigidBody ownBody;
  2524. Vector3 position;
  2525. /* readonly */
  2526. int refs;
  2527. /* readonly */
  2528. bool replicated;
  2529. Quaternion rotation;
  2530. bool temporary;
  2531. /* readonly */
  2532. StringHash type;
  2533. /* readonly */
  2534. String typeName;
  2535. /* readonly */
  2536. int weakRefs;
  2537. Vector3 worldPosition;
  2538. };
  2539. class Constraint2D
  2540. {
  2541. public:
  2542. // Methods:
  2543. void ApplyAttributes();
  2544. void DrawDebugGeometry(DebugRenderer, bool);
  2545. Variant GetAttribute(const String&) const;
  2546. ValueAnimation GetAttributeAnimation(const String&) const;
  2547. float GetAttributeAnimationSpeed(const String&) const;
  2548. float GetAttributeAnimationTime(const String&) const;
  2549. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2550. Variant GetAttributeDefault(const String&) const;
  2551. bool GetInterceptNetworkUpdate(const String&) const;
  2552. bool HasSubscribedToEvent(Object, const String&);
  2553. bool HasSubscribedToEvent(const String&);
  2554. bool Load(File);
  2555. bool Load(VectorBuffer&);
  2556. bool LoadJSON(const JSONValue&);
  2557. bool LoadXML(const XMLElement&);
  2558. void MarkNetworkUpdate() const;
  2559. void Remove();
  2560. void RemoveAttributeAnimation(const String&);
  2561. void RemoveInstanceDefault();
  2562. void RemoveObjectAnimation();
  2563. void ResetToDefault();
  2564. bool Save(File) const;
  2565. bool Save(VectorBuffer&) const;
  2566. bool SaveJSON(JSONValue&) const;
  2567. bool SaveXML(XMLElement&) const;
  2568. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2569. void SetAnimationTime(float);
  2570. bool SetAttribute(const String&, const Variant&);
  2571. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2572. void SetAttributeAnimationSpeed(const String&, float);
  2573. void SetAttributeAnimationTime(const String&, float);
  2574. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2575. void SetInterceptNetworkUpdate(const String&, bool);
  2576. // Properties:
  2577. bool animationEnabled;
  2578. /* readonly */
  2579. Array<Variant> attributeDefaults;
  2580. /* readonly */
  2581. Array<AttributeInfo> attributeInfos;
  2582. Array<Variant> attributes;
  2583. /* readonly */
  2584. String category;
  2585. bool collideConnected;
  2586. bool enabled;
  2587. /* readonly */
  2588. bool enabledEffective;
  2589. /* readonly */
  2590. uint id;
  2591. /* readonly */
  2592. Node node;
  2593. /* readonly */
  2594. uint numAttributes;
  2595. ObjectAnimation objectAnimation;
  2596. RigidBody2D otherBody;
  2597. /* readonly */
  2598. RigidBody2D ownerBody;
  2599. /* readonly */
  2600. int refs;
  2601. /* readonly */
  2602. bool replicated;
  2603. bool temporary;
  2604. /* readonly */
  2605. StringHash type;
  2606. /* readonly */
  2607. String typeName;
  2608. /* readonly */
  2609. int weakRefs;
  2610. };
  2611. class ConstraintDistance2D
  2612. {
  2613. public:
  2614. // Methods:
  2615. void ApplyAttributes();
  2616. void DrawDebugGeometry(DebugRenderer, bool);
  2617. Variant GetAttribute(const String&) const;
  2618. ValueAnimation GetAttributeAnimation(const String&) const;
  2619. float GetAttributeAnimationSpeed(const String&) const;
  2620. float GetAttributeAnimationTime(const String&) const;
  2621. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2622. Variant GetAttributeDefault(const String&) const;
  2623. bool GetInterceptNetworkUpdate(const String&) const;
  2624. bool HasSubscribedToEvent(Object, const String&);
  2625. bool HasSubscribedToEvent(const String&);
  2626. bool Load(File);
  2627. bool Load(VectorBuffer&);
  2628. bool LoadJSON(const JSONValue&);
  2629. bool LoadXML(const XMLElement&);
  2630. void MarkNetworkUpdate() const;
  2631. void Remove();
  2632. void RemoveAttributeAnimation(const String&);
  2633. void RemoveInstanceDefault();
  2634. void RemoveObjectAnimation();
  2635. void ResetToDefault();
  2636. bool Save(File) const;
  2637. bool Save(VectorBuffer&) const;
  2638. bool SaveJSON(JSONValue&) const;
  2639. bool SaveXML(XMLElement&) const;
  2640. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2641. void SetAnimationTime(float);
  2642. bool SetAttribute(const String&, const Variant&);
  2643. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2644. void SetAttributeAnimationSpeed(const String&, float);
  2645. void SetAttributeAnimationTime(const String&, float);
  2646. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2647. void SetInterceptNetworkUpdate(const String&, bool);
  2648. // Properties:
  2649. bool animationEnabled;
  2650. /* readonly */
  2651. Array<Variant> attributeDefaults;
  2652. /* readonly */
  2653. Array<AttributeInfo> attributeInfos;
  2654. Array<Variant> attributes;
  2655. /* readonly */
  2656. String category;
  2657. bool collideConnected;
  2658. float dampingRatio;
  2659. bool enabled;
  2660. /* readonly */
  2661. bool enabledEffective;
  2662. float frequencyHz;
  2663. /* readonly */
  2664. uint id;
  2665. float length;
  2666. /* readonly */
  2667. Node node;
  2668. /* readonly */
  2669. uint numAttributes;
  2670. ObjectAnimation objectAnimation;
  2671. RigidBody2D otherBody;
  2672. Vector2 otherBodyAnchor;
  2673. /* readonly */
  2674. RigidBody2D ownerBody;
  2675. Vector2 ownerBodyAnchor;
  2676. /* readonly */
  2677. int refs;
  2678. /* readonly */
  2679. bool replicated;
  2680. bool temporary;
  2681. /* readonly */
  2682. StringHash type;
  2683. /* readonly */
  2684. String typeName;
  2685. /* readonly */
  2686. int weakRefs;
  2687. };
  2688. class ConstraintFriction2D
  2689. {
  2690. public:
  2691. // Methods:
  2692. void ApplyAttributes();
  2693. void DrawDebugGeometry(DebugRenderer, bool);
  2694. Variant GetAttribute(const String&) const;
  2695. ValueAnimation GetAttributeAnimation(const String&) const;
  2696. float GetAttributeAnimationSpeed(const String&) const;
  2697. float GetAttributeAnimationTime(const String&) const;
  2698. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2699. Variant GetAttributeDefault(const String&) const;
  2700. bool GetInterceptNetworkUpdate(const String&) const;
  2701. bool HasSubscribedToEvent(Object, const String&);
  2702. bool HasSubscribedToEvent(const String&);
  2703. bool Load(File);
  2704. bool Load(VectorBuffer&);
  2705. bool LoadJSON(const JSONValue&);
  2706. bool LoadXML(const XMLElement&);
  2707. void MarkNetworkUpdate() const;
  2708. void Remove();
  2709. void RemoveAttributeAnimation(const String&);
  2710. void RemoveInstanceDefault();
  2711. void RemoveObjectAnimation();
  2712. void ResetToDefault();
  2713. bool Save(File) const;
  2714. bool Save(VectorBuffer&) const;
  2715. bool SaveJSON(JSONValue&) const;
  2716. bool SaveXML(XMLElement&) const;
  2717. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2718. void SetAnimationTime(float);
  2719. bool SetAttribute(const String&, const Variant&);
  2720. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2721. void SetAttributeAnimationSpeed(const String&, float);
  2722. void SetAttributeAnimationTime(const String&, float);
  2723. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2724. void SetInterceptNetworkUpdate(const String&, bool);
  2725. // Properties:
  2726. Vector2 anchor;
  2727. bool animationEnabled;
  2728. /* readonly */
  2729. Array<Variant> attributeDefaults;
  2730. /* readonly */
  2731. Array<AttributeInfo> attributeInfos;
  2732. Array<Variant> attributes;
  2733. /* readonly */
  2734. String category;
  2735. bool collideConnected;
  2736. bool enabled;
  2737. /* readonly */
  2738. bool enabledEffective;
  2739. /* readonly */
  2740. uint id;
  2741. float maxForce;
  2742. float maxTorque;
  2743. /* readonly */
  2744. Node node;
  2745. /* readonly */
  2746. uint numAttributes;
  2747. ObjectAnimation objectAnimation;
  2748. RigidBody2D otherBody;
  2749. /* readonly */
  2750. RigidBody2D ownerBody;
  2751. /* readonly */
  2752. int refs;
  2753. /* readonly */
  2754. bool replicated;
  2755. bool temporary;
  2756. /* readonly */
  2757. StringHash type;
  2758. /* readonly */
  2759. String typeName;
  2760. /* readonly */
  2761. int weakRefs;
  2762. };
  2763. class ConstraintGear2D
  2764. {
  2765. public:
  2766. // Methods:
  2767. void ApplyAttributes();
  2768. void DrawDebugGeometry(DebugRenderer, bool);
  2769. Variant GetAttribute(const String&) const;
  2770. ValueAnimation GetAttributeAnimation(const String&) const;
  2771. float GetAttributeAnimationSpeed(const String&) const;
  2772. float GetAttributeAnimationTime(const String&) const;
  2773. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2774. Variant GetAttributeDefault(const String&) const;
  2775. bool GetInterceptNetworkUpdate(const String&) const;
  2776. bool HasSubscribedToEvent(Object, const String&);
  2777. bool HasSubscribedToEvent(const String&);
  2778. bool Load(File);
  2779. bool Load(VectorBuffer&);
  2780. bool LoadJSON(const JSONValue&);
  2781. bool LoadXML(const XMLElement&);
  2782. void MarkNetworkUpdate() const;
  2783. void Remove();
  2784. void RemoveAttributeAnimation(const String&);
  2785. void RemoveInstanceDefault();
  2786. void RemoveObjectAnimation();
  2787. void ResetToDefault();
  2788. bool Save(File) const;
  2789. bool Save(VectorBuffer&) const;
  2790. bool SaveJSON(JSONValue&) const;
  2791. bool SaveXML(XMLElement&) const;
  2792. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2793. void SetAnimationTime(float);
  2794. bool SetAttribute(const String&, const Variant&);
  2795. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2796. void SetAttributeAnimationSpeed(const String&, float);
  2797. void SetAttributeAnimationTime(const String&, float);
  2798. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2799. void SetInterceptNetworkUpdate(const String&, bool);
  2800. // Properties:
  2801. bool animationEnabled;
  2802. /* readonly */
  2803. Array<Variant> attributeDefaults;
  2804. /* readonly */
  2805. Array<AttributeInfo> attributeInfos;
  2806. Array<Variant> attributes;
  2807. /* readonly */
  2808. String category;
  2809. bool collideConnected;
  2810. bool enabled;
  2811. /* readonly */
  2812. bool enabledEffective;
  2813. /* readonly */
  2814. uint id;
  2815. /* readonly */
  2816. Node node;
  2817. /* readonly */
  2818. uint numAttributes;
  2819. ObjectAnimation objectAnimation;
  2820. RigidBody2D otherBody;
  2821. Constraint2D otherConstraint;
  2822. /* readonly */
  2823. RigidBody2D ownerBody;
  2824. Constraint2D ownerConstraint;
  2825. float ratio;
  2826. /* readonly */
  2827. int refs;
  2828. /* readonly */
  2829. bool replicated;
  2830. bool temporary;
  2831. /* readonly */
  2832. StringHash type;
  2833. /* readonly */
  2834. String typeName;
  2835. /* readonly */
  2836. int weakRefs;
  2837. };
  2838. class ConstraintMotor2D
  2839. {
  2840. public:
  2841. // Methods:
  2842. void ApplyAttributes();
  2843. void DrawDebugGeometry(DebugRenderer, bool);
  2844. Variant GetAttribute(const String&) const;
  2845. ValueAnimation GetAttributeAnimation(const String&) const;
  2846. float GetAttributeAnimationSpeed(const String&) const;
  2847. float GetAttributeAnimationTime(const String&) const;
  2848. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2849. Variant GetAttributeDefault(const String&) const;
  2850. bool GetInterceptNetworkUpdate(const String&) const;
  2851. bool HasSubscribedToEvent(Object, const String&);
  2852. bool HasSubscribedToEvent(const String&);
  2853. bool Load(File);
  2854. bool Load(VectorBuffer&);
  2855. bool LoadJSON(const JSONValue&);
  2856. bool LoadXML(const XMLElement&);
  2857. void MarkNetworkUpdate() const;
  2858. void Remove();
  2859. void RemoveAttributeAnimation(const String&);
  2860. void RemoveInstanceDefault();
  2861. void RemoveObjectAnimation();
  2862. void ResetToDefault();
  2863. bool Save(File) const;
  2864. bool Save(VectorBuffer&) const;
  2865. bool SaveJSON(JSONValue&) const;
  2866. bool SaveXML(XMLElement&) const;
  2867. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2868. void SetAnimationTime(float);
  2869. bool SetAttribute(const String&, const Variant&);
  2870. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2871. void SetAttributeAnimationSpeed(const String&, float);
  2872. void SetAttributeAnimationTime(const String&, float);
  2873. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2874. void SetInterceptNetworkUpdate(const String&, bool);
  2875. // Properties:
  2876. float angularOffset;
  2877. bool animationEnabled;
  2878. /* readonly */
  2879. Array<Variant> attributeDefaults;
  2880. /* readonly */
  2881. Array<AttributeInfo> attributeInfos;
  2882. Array<Variant> attributes;
  2883. /* readonly */
  2884. String category;
  2885. bool collideConnected;
  2886. float correctionFactor;
  2887. bool enabled;
  2888. /* readonly */
  2889. bool enabledEffective;
  2890. /* readonly */
  2891. uint id;
  2892. Vector2 linearOffset;
  2893. float maxForce;
  2894. float maxTorque;
  2895. /* readonly */
  2896. Node node;
  2897. /* readonly */
  2898. uint numAttributes;
  2899. ObjectAnimation objectAnimation;
  2900. RigidBody2D otherBody;
  2901. /* readonly */
  2902. RigidBody2D ownerBody;
  2903. /* readonly */
  2904. int refs;
  2905. /* readonly */
  2906. bool replicated;
  2907. bool temporary;
  2908. /* readonly */
  2909. StringHash type;
  2910. /* readonly */
  2911. String typeName;
  2912. /* readonly */
  2913. int weakRefs;
  2914. };
  2915. class ConstraintMouse2D
  2916. {
  2917. public:
  2918. // Methods:
  2919. void ApplyAttributes();
  2920. void DrawDebugGeometry(DebugRenderer, bool);
  2921. Variant GetAttribute(const String&) const;
  2922. ValueAnimation GetAttributeAnimation(const String&) const;
  2923. float GetAttributeAnimationSpeed(const String&) const;
  2924. float GetAttributeAnimationTime(const String&) const;
  2925. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2926. Variant GetAttributeDefault(const String&) const;
  2927. bool GetInterceptNetworkUpdate(const String&) const;
  2928. bool HasSubscribedToEvent(Object, const String&);
  2929. bool HasSubscribedToEvent(const String&);
  2930. bool Load(File);
  2931. bool Load(VectorBuffer&);
  2932. bool LoadJSON(const JSONValue&);
  2933. bool LoadXML(const XMLElement&);
  2934. void MarkNetworkUpdate() const;
  2935. void Remove();
  2936. void RemoveAttributeAnimation(const String&);
  2937. void RemoveInstanceDefault();
  2938. void RemoveObjectAnimation();
  2939. void ResetToDefault();
  2940. bool Save(File) const;
  2941. bool Save(VectorBuffer&) const;
  2942. bool SaveJSON(JSONValue&) const;
  2943. bool SaveXML(XMLElement&) const;
  2944. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2945. void SetAnimationTime(float);
  2946. bool SetAttribute(const String&, const Variant&);
  2947. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2948. void SetAttributeAnimationSpeed(const String&, float);
  2949. void SetAttributeAnimationTime(const String&, float);
  2950. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2951. void SetInterceptNetworkUpdate(const String&, bool);
  2952. // Properties:
  2953. bool animationEnabled;
  2954. /* readonly */
  2955. Array<Variant> attributeDefaults;
  2956. /* readonly */
  2957. Array<AttributeInfo> attributeInfos;
  2958. Array<Variant> attributes;
  2959. /* readonly */
  2960. String category;
  2961. bool collideConnected;
  2962. float dampingRatio;
  2963. bool enabled;
  2964. /* readonly */
  2965. bool enabledEffective;
  2966. float frequencyHz;
  2967. /* readonly */
  2968. uint id;
  2969. float maxForce;
  2970. /* readonly */
  2971. Node node;
  2972. /* readonly */
  2973. uint numAttributes;
  2974. ObjectAnimation objectAnimation;
  2975. RigidBody2D otherBody;
  2976. /* readonly */
  2977. RigidBody2D ownerBody;
  2978. /* readonly */
  2979. int refs;
  2980. /* readonly */
  2981. bool replicated;
  2982. Vector2 target;
  2983. bool temporary;
  2984. /* readonly */
  2985. StringHash type;
  2986. /* readonly */
  2987. String typeName;
  2988. /* readonly */
  2989. int weakRefs;
  2990. };
  2991. class ConstraintPrismatic2D
  2992. {
  2993. public:
  2994. // Methods:
  2995. void ApplyAttributes();
  2996. void DrawDebugGeometry(DebugRenderer, bool);
  2997. Variant GetAttribute(const String&) const;
  2998. ValueAnimation GetAttributeAnimation(const String&) const;
  2999. float GetAttributeAnimationSpeed(const String&) const;
  3000. float GetAttributeAnimationTime(const String&) const;
  3001. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3002. Variant GetAttributeDefault(const String&) const;
  3003. bool GetInterceptNetworkUpdate(const String&) const;
  3004. bool HasSubscribedToEvent(Object, const String&);
  3005. bool HasSubscribedToEvent(const String&);
  3006. bool Load(File);
  3007. bool Load(VectorBuffer&);
  3008. bool LoadJSON(const JSONValue&);
  3009. bool LoadXML(const XMLElement&);
  3010. void MarkNetworkUpdate() const;
  3011. void Remove();
  3012. void RemoveAttributeAnimation(const String&);
  3013. void RemoveInstanceDefault();
  3014. void RemoveObjectAnimation();
  3015. void ResetToDefault();
  3016. bool Save(File) const;
  3017. bool Save(VectorBuffer&) const;
  3018. bool SaveJSON(JSONValue&) const;
  3019. bool SaveXML(XMLElement&) const;
  3020. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3021. void SetAnimationTime(float);
  3022. bool SetAttribute(const String&, const Variant&);
  3023. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3024. void SetAttributeAnimationSpeed(const String&, float);
  3025. void SetAttributeAnimationTime(const String&, float);
  3026. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3027. void SetInterceptNetworkUpdate(const String&, bool);
  3028. // Properties:
  3029. Vector2 anchor;
  3030. bool animationEnabled;
  3031. /* readonly */
  3032. Array<Variant> attributeDefaults;
  3033. /* readonly */
  3034. Array<AttributeInfo> attributeInfos;
  3035. Array<Variant> attributes;
  3036. Vector2 axis;
  3037. /* readonly */
  3038. String category;
  3039. bool collideConnected;
  3040. bool enableLimit;
  3041. bool enableMotor;
  3042. bool enabled;
  3043. /* readonly */
  3044. bool enabledEffective;
  3045. /* readonly */
  3046. uint id;
  3047. float lowerTranslation;
  3048. float maxMotorForce;
  3049. float motorSpeed;
  3050. /* readonly */
  3051. Node node;
  3052. /* readonly */
  3053. uint numAttributes;
  3054. ObjectAnimation objectAnimation;
  3055. RigidBody2D otherBody;
  3056. /* readonly */
  3057. RigidBody2D ownerBody;
  3058. /* readonly */
  3059. int refs;
  3060. /* readonly */
  3061. bool replicated;
  3062. bool temporary;
  3063. /* readonly */
  3064. StringHash type;
  3065. /* readonly */
  3066. String typeName;
  3067. float upperTranslation;
  3068. /* readonly */
  3069. int weakRefs;
  3070. };
  3071. class ConstraintPulley2D
  3072. {
  3073. public:
  3074. // Methods:
  3075. void ApplyAttributes();
  3076. void DrawDebugGeometry(DebugRenderer, bool);
  3077. Variant GetAttribute(const String&) const;
  3078. ValueAnimation GetAttributeAnimation(const String&) const;
  3079. float GetAttributeAnimationSpeed(const String&) const;
  3080. float GetAttributeAnimationTime(const String&) const;
  3081. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3082. Variant GetAttributeDefault(const String&) const;
  3083. bool GetInterceptNetworkUpdate(const String&) const;
  3084. bool HasSubscribedToEvent(Object, const String&);
  3085. bool HasSubscribedToEvent(const String&);
  3086. bool Load(File);
  3087. bool Load(VectorBuffer&);
  3088. bool LoadJSON(const JSONValue&);
  3089. bool LoadXML(const XMLElement&);
  3090. void MarkNetworkUpdate() const;
  3091. void Remove();
  3092. void RemoveAttributeAnimation(const String&);
  3093. void RemoveInstanceDefault();
  3094. void RemoveObjectAnimation();
  3095. void ResetToDefault();
  3096. bool Save(File) const;
  3097. bool Save(VectorBuffer&) const;
  3098. bool SaveJSON(JSONValue&) const;
  3099. bool SaveXML(XMLElement&) const;
  3100. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3101. void SetAnimationTime(float);
  3102. bool SetAttribute(const String&, const Variant&);
  3103. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3104. void SetAttributeAnimationSpeed(const String&, float);
  3105. void SetAttributeAnimationTime(const String&, float);
  3106. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3107. void SetInterceptNetworkUpdate(const String&, bool);
  3108. // Properties:
  3109. bool animationEnabled;
  3110. /* readonly */
  3111. Array<Variant> attributeDefaults;
  3112. /* readonly */
  3113. Array<AttributeInfo> attributeInfos;
  3114. Array<Variant> attributes;
  3115. /* readonly */
  3116. String category;
  3117. bool collideConnected;
  3118. bool enabled;
  3119. /* readonly */
  3120. bool enabledEffective;
  3121. /* readonly */
  3122. uint id;
  3123. /* readonly */
  3124. Node node;
  3125. /* readonly */
  3126. uint numAttributes;
  3127. ObjectAnimation objectAnimation;
  3128. RigidBody2D otherBody;
  3129. Vector2 otherBodyAnchor;
  3130. Vector2 otherBodyGroundAnchor;
  3131. /* readonly */
  3132. RigidBody2D ownerBody;
  3133. Vector2 ownerBodyAnchor;
  3134. Vector2 ownerBodyGroundAnchor;
  3135. float ratio;
  3136. /* readonly */
  3137. int refs;
  3138. /* readonly */
  3139. bool replicated;
  3140. bool temporary;
  3141. /* readonly */
  3142. StringHash type;
  3143. /* readonly */
  3144. String typeName;
  3145. /* readonly */
  3146. int weakRefs;
  3147. };
  3148. class ConstraintRevolute2D
  3149. {
  3150. public:
  3151. // Methods:
  3152. void ApplyAttributes();
  3153. void DrawDebugGeometry(DebugRenderer, bool);
  3154. Variant GetAttribute(const String&) const;
  3155. ValueAnimation GetAttributeAnimation(const String&) const;
  3156. float GetAttributeAnimationSpeed(const String&) const;
  3157. float GetAttributeAnimationTime(const String&) const;
  3158. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3159. Variant GetAttributeDefault(const String&) const;
  3160. bool GetInterceptNetworkUpdate(const String&) const;
  3161. bool HasSubscribedToEvent(Object, const String&);
  3162. bool HasSubscribedToEvent(const String&);
  3163. bool Load(File);
  3164. bool Load(VectorBuffer&);
  3165. bool LoadJSON(const JSONValue&);
  3166. bool LoadXML(const XMLElement&);
  3167. void MarkNetworkUpdate() const;
  3168. void Remove();
  3169. void RemoveAttributeAnimation(const String&);
  3170. void RemoveInstanceDefault();
  3171. void RemoveObjectAnimation();
  3172. void ResetToDefault();
  3173. bool Save(File) const;
  3174. bool Save(VectorBuffer&) const;
  3175. bool SaveJSON(JSONValue&) const;
  3176. bool SaveXML(XMLElement&) const;
  3177. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3178. void SetAnimationTime(float);
  3179. bool SetAttribute(const String&, const Variant&);
  3180. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3181. void SetAttributeAnimationSpeed(const String&, float);
  3182. void SetAttributeAnimationTime(const String&, float);
  3183. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3184. void SetInterceptNetworkUpdate(const String&, bool);
  3185. // Properties:
  3186. Vector2 anchor;
  3187. bool animationEnabled;
  3188. /* readonly */
  3189. Array<Variant> attributeDefaults;
  3190. /* readonly */
  3191. Array<AttributeInfo> attributeInfos;
  3192. Array<Variant> attributes;
  3193. /* readonly */
  3194. String category;
  3195. bool collideConnected;
  3196. bool enableLimit;
  3197. bool enableMotor;
  3198. bool enabled;
  3199. /* readonly */
  3200. bool enabledEffective;
  3201. /* readonly */
  3202. uint id;
  3203. float lowerAngle;
  3204. float maxMotorTorque;
  3205. float motorSpeed;
  3206. /* readonly */
  3207. Node node;
  3208. /* readonly */
  3209. uint numAttributes;
  3210. ObjectAnimation objectAnimation;
  3211. RigidBody2D otherBody;
  3212. /* readonly */
  3213. RigidBody2D ownerBody;
  3214. /* readonly */
  3215. int refs;
  3216. /* readonly */
  3217. bool replicated;
  3218. bool temporary;
  3219. /* readonly */
  3220. StringHash type;
  3221. /* readonly */
  3222. String typeName;
  3223. float upperAngle;
  3224. /* readonly */
  3225. int weakRefs;
  3226. };
  3227. class ConstraintRope2D
  3228. {
  3229. public:
  3230. // Methods:
  3231. void ApplyAttributes();
  3232. void DrawDebugGeometry(DebugRenderer, bool);
  3233. Variant GetAttribute(const String&) const;
  3234. ValueAnimation GetAttributeAnimation(const String&) const;
  3235. float GetAttributeAnimationSpeed(const String&) const;
  3236. float GetAttributeAnimationTime(const String&) const;
  3237. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3238. Variant GetAttributeDefault(const String&) const;
  3239. bool GetInterceptNetworkUpdate(const String&) const;
  3240. bool HasSubscribedToEvent(Object, const String&);
  3241. bool HasSubscribedToEvent(const String&);
  3242. bool Load(File);
  3243. bool Load(VectorBuffer&);
  3244. bool LoadJSON(const JSONValue&);
  3245. bool LoadXML(const XMLElement&);
  3246. void MarkNetworkUpdate() const;
  3247. void Remove();
  3248. void RemoveAttributeAnimation(const String&);
  3249. void RemoveInstanceDefault();
  3250. void RemoveObjectAnimation();
  3251. void ResetToDefault();
  3252. bool Save(File) const;
  3253. bool Save(VectorBuffer&) const;
  3254. bool SaveJSON(JSONValue&) const;
  3255. bool SaveXML(XMLElement&) const;
  3256. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3257. void SetAnimationTime(float);
  3258. bool SetAttribute(const String&, const Variant&);
  3259. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3260. void SetAttributeAnimationSpeed(const String&, float);
  3261. void SetAttributeAnimationTime(const String&, float);
  3262. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3263. void SetInterceptNetworkUpdate(const String&, bool);
  3264. // Properties:
  3265. bool animationEnabled;
  3266. /* readonly */
  3267. Array<Variant> attributeDefaults;
  3268. /* readonly */
  3269. Array<AttributeInfo> attributeInfos;
  3270. Array<Variant> attributes;
  3271. /* readonly */
  3272. String category;
  3273. bool collideConnected;
  3274. bool enabled;
  3275. /* readonly */
  3276. bool enabledEffective;
  3277. /* readonly */
  3278. uint id;
  3279. float maxLength;
  3280. /* readonly */
  3281. Node node;
  3282. /* readonly */
  3283. uint numAttributes;
  3284. ObjectAnimation objectAnimation;
  3285. RigidBody2D otherBody;
  3286. Vector2 otherBodyAnchor;
  3287. /* readonly */
  3288. RigidBody2D ownerBody;
  3289. Vector2 ownerBodyAnchor;
  3290. /* readonly */
  3291. int refs;
  3292. /* readonly */
  3293. bool replicated;
  3294. bool temporary;
  3295. /* readonly */
  3296. StringHash type;
  3297. /* readonly */
  3298. String typeName;
  3299. /* readonly */
  3300. int weakRefs;
  3301. };
  3302. class ConstraintWeld2D
  3303. {
  3304. public:
  3305. // Methods:
  3306. void ApplyAttributes();
  3307. void DrawDebugGeometry(DebugRenderer, bool);
  3308. Variant GetAttribute(const String&) const;
  3309. ValueAnimation GetAttributeAnimation(const String&) const;
  3310. float GetAttributeAnimationSpeed(const String&) const;
  3311. float GetAttributeAnimationTime(const String&) const;
  3312. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3313. Variant GetAttributeDefault(const String&) const;
  3314. bool GetInterceptNetworkUpdate(const String&) const;
  3315. bool HasSubscribedToEvent(Object, const String&);
  3316. bool HasSubscribedToEvent(const String&);
  3317. bool Load(File);
  3318. bool Load(VectorBuffer&);
  3319. bool LoadJSON(const JSONValue&);
  3320. bool LoadXML(const XMLElement&);
  3321. void MarkNetworkUpdate() const;
  3322. void Remove();
  3323. void RemoveAttributeAnimation(const String&);
  3324. void RemoveInstanceDefault();
  3325. void RemoveObjectAnimation();
  3326. void ResetToDefault();
  3327. bool Save(File) const;
  3328. bool Save(VectorBuffer&) const;
  3329. bool SaveJSON(JSONValue&) const;
  3330. bool SaveXML(XMLElement&) const;
  3331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3332. void SetAnimationTime(float);
  3333. bool SetAttribute(const String&, const Variant&);
  3334. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3335. void SetAttributeAnimationSpeed(const String&, float);
  3336. void SetAttributeAnimationTime(const String&, float);
  3337. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3338. void SetInterceptNetworkUpdate(const String&, bool);
  3339. // Properties:
  3340. Vector2 anchor;
  3341. bool animationEnabled;
  3342. /* readonly */
  3343. Array<Variant> attributeDefaults;
  3344. /* readonly */
  3345. Array<AttributeInfo> attributeInfos;
  3346. Array<Variant> attributes;
  3347. /* readonly */
  3348. String category;
  3349. bool collideConnected;
  3350. float dampingRatio;
  3351. bool enabled;
  3352. /* readonly */
  3353. bool enabledEffective;
  3354. float frequencyHz;
  3355. /* readonly */
  3356. uint id;
  3357. /* readonly */
  3358. Node node;
  3359. /* readonly */
  3360. uint numAttributes;
  3361. ObjectAnimation objectAnimation;
  3362. RigidBody2D otherBody;
  3363. /* readonly */
  3364. RigidBody2D ownerBody;
  3365. /* readonly */
  3366. int refs;
  3367. /* readonly */
  3368. bool replicated;
  3369. bool temporary;
  3370. /* readonly */
  3371. StringHash type;
  3372. /* readonly */
  3373. String typeName;
  3374. /* readonly */
  3375. int weakRefs;
  3376. };
  3377. class ConstraintWheel2D
  3378. {
  3379. public:
  3380. // Methods:
  3381. void ApplyAttributes();
  3382. void DrawDebugGeometry(DebugRenderer, bool);
  3383. Variant GetAttribute(const String&) const;
  3384. ValueAnimation GetAttributeAnimation(const String&) const;
  3385. float GetAttributeAnimationSpeed(const String&) const;
  3386. float GetAttributeAnimationTime(const String&) const;
  3387. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3388. Variant GetAttributeDefault(const String&) const;
  3389. bool GetInterceptNetworkUpdate(const String&) const;
  3390. bool HasSubscribedToEvent(Object, const String&);
  3391. bool HasSubscribedToEvent(const String&);
  3392. bool Load(File);
  3393. bool Load(VectorBuffer&);
  3394. bool LoadJSON(const JSONValue&);
  3395. bool LoadXML(const XMLElement&);
  3396. void MarkNetworkUpdate() const;
  3397. void Remove();
  3398. void RemoveAttributeAnimation(const String&);
  3399. void RemoveInstanceDefault();
  3400. void RemoveObjectAnimation();
  3401. void ResetToDefault();
  3402. bool Save(File) const;
  3403. bool Save(VectorBuffer&) const;
  3404. bool SaveJSON(JSONValue&) const;
  3405. bool SaveXML(XMLElement&) const;
  3406. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3407. void SetAnimationTime(float);
  3408. bool SetAttribute(const String&, const Variant&);
  3409. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3410. void SetAttributeAnimationSpeed(const String&, float);
  3411. void SetAttributeAnimationTime(const String&, float);
  3412. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3413. void SetInterceptNetworkUpdate(const String&, bool);
  3414. // Properties:
  3415. Vector2 anchor;
  3416. bool animationEnabled;
  3417. /* readonly */
  3418. Array<Variant> attributeDefaults;
  3419. /* readonly */
  3420. Array<AttributeInfo> attributeInfos;
  3421. Array<Variant> attributes;
  3422. Vector2 axis;
  3423. /* readonly */
  3424. String category;
  3425. bool collideConnected;
  3426. float dampingRatio;
  3427. bool enableMotor;
  3428. bool enabled;
  3429. /* readonly */
  3430. bool enabledEffective;
  3431. float frequencyHz;
  3432. /* readonly */
  3433. uint id;
  3434. float maxMotorTorque;
  3435. float motorSpeed;
  3436. /* readonly */
  3437. Node node;
  3438. /* readonly */
  3439. uint numAttributes;
  3440. ObjectAnimation objectAnimation;
  3441. RigidBody2D otherBody;
  3442. /* readonly */
  3443. RigidBody2D ownerBody;
  3444. /* readonly */
  3445. int refs;
  3446. /* readonly */
  3447. bool replicated;
  3448. bool temporary;
  3449. /* readonly */
  3450. StringHash type;
  3451. /* readonly */
  3452. String typeName;
  3453. /* readonly */
  3454. int weakRefs;
  3455. };
  3456. class Controls
  3457. {
  3458. public:
  3459. ~Controls();
  3460. Controls();
  3461. Controls(const Controls&in);
  3462. // Methods:
  3463. bool IsDown(uint) const;
  3464. bool IsPressed(uint, const Controls&) const;
  3465. void Reset();
  3466. void Set(uint, bool);
  3467. // Properties:
  3468. uint buttons;
  3469. VariantMap extraData;
  3470. float pitch;
  3471. float yaw;
  3472. };
  3473. class CrowdAgent
  3474. {
  3475. public:
  3476. // Methods:
  3477. void ApplyAttributes();
  3478. void DrawDebugGeometry(DebugRenderer, bool);
  3479. void DrawDebugGeometry(bool);
  3480. Variant GetAttribute(const String&) const;
  3481. ValueAnimation GetAttributeAnimation(const String&) const;
  3482. float GetAttributeAnimationSpeed(const String&) const;
  3483. float GetAttributeAnimationTime(const String&) const;
  3484. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3485. Variant GetAttributeDefault(const String&) const;
  3486. bool GetInterceptNetworkUpdate(const String&) const;
  3487. bool HasSubscribedToEvent(Object, const String&);
  3488. bool HasSubscribedToEvent(const String&);
  3489. bool Load(File);
  3490. bool Load(VectorBuffer&);
  3491. bool LoadJSON(const JSONValue&);
  3492. bool LoadXML(const XMLElement&);
  3493. void MarkNetworkUpdate() const;
  3494. void Remove();
  3495. void RemoveAttributeAnimation(const String&);
  3496. void RemoveInstanceDefault();
  3497. void RemoveObjectAnimation();
  3498. void ResetTarget();
  3499. void ResetToDefault();
  3500. bool Save(File) const;
  3501. bool Save(VectorBuffer&) const;
  3502. bool SaveJSON(JSONValue&) const;
  3503. bool SaveXML(XMLElement&) const;
  3504. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3505. void SetAnimationTime(float);
  3506. bool SetAttribute(const String&, const Variant&);
  3507. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3508. void SetAttributeAnimationSpeed(const String&, float);
  3509. void SetAttributeAnimationTime(const String&, float);
  3510. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3511. void SetInterceptNetworkUpdate(const String&, bool);
  3512. // Properties:
  3513. /* readonly */
  3514. Vector3 actualVelocity;
  3515. /* readonly */
  3516. CrowdAgentState agentState;
  3517. bool animationEnabled;
  3518. /* readonly */
  3519. bool arrived;
  3520. /* readonly */
  3521. Array<Variant> attributeDefaults;
  3522. /* readonly */
  3523. Array<AttributeInfo> attributeInfos;
  3524. Array<Variant> attributes;
  3525. /* readonly */
  3526. String category;
  3527. /* readonly */
  3528. Vector3 desiredVelocity;
  3529. bool enabled;
  3530. /* readonly */
  3531. bool enabledEffective;
  3532. float height;
  3533. /* readonly */
  3534. uint id;
  3535. /* readonly */
  3536. bool inCrowd;
  3537. float maxAccel;
  3538. float maxSpeed;
  3539. NavigationPushiness navigationPushiness;
  3540. NavigationQuality navigationQuality;
  3541. /* readonly */
  3542. Node node;
  3543. /* readonly */
  3544. uint numAttributes;
  3545. ObjectAnimation objectAnimation;
  3546. uint obstacleAvoidanceType;
  3547. /* readonly */
  3548. Vector3 position;
  3549. uint queryFilterType;
  3550. float radius;
  3551. /* readonly */
  3552. int refs;
  3553. /* readonly */
  3554. bool replicated;
  3555. /* readonly */
  3556. bool requestedTarget;
  3557. /* readonly */
  3558. CrowdAgentRequestedTarget requestedTargetType;
  3559. Vector3 targetPosition;
  3560. /* readonly */
  3561. CrowdAgentTargetState targetState;
  3562. Vector3 targetVelocity;
  3563. bool temporary;
  3564. /* readonly */
  3565. StringHash type;
  3566. /* readonly */
  3567. String typeName;
  3568. bool updateNodePosition;
  3569. /* readonly */
  3570. int weakRefs;
  3571. };
  3572. class CrowdManager
  3573. {
  3574. public:
  3575. // Methods:
  3576. void ApplyAttributes();
  3577. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3578. void DrawDebugGeometry(DebugRenderer, bool);
  3579. void DrawDebugGeometry(bool);
  3580. Vector3 FindNearestPoint(const Vector3&, int);
  3581. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3582. float GetAreaCost(uint, uint);
  3583. Variant GetAttribute(const String&) const;
  3584. ValueAnimation GetAttributeAnimation(const String&) const;
  3585. float GetAttributeAnimationSpeed(const String&) const;
  3586. float GetAttributeAnimationTime(const String&) const;
  3587. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3588. Variant GetAttributeDefault(const String&) const;
  3589. float GetDistanceToWall(const Vector3&, float, int);
  3590. uint16 GetExcludeFlags(uint);
  3591. uint16 GetIncludeFlags(uint);
  3592. bool GetInterceptNetworkUpdate(const String&) const;
  3593. Vector3 GetRandomPoint(int);
  3594. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3595. bool HasSubscribedToEvent(Object, const String&);
  3596. bool HasSubscribedToEvent(const String&);
  3597. bool Load(File);
  3598. bool Load(VectorBuffer&);
  3599. bool LoadJSON(const JSONValue&);
  3600. bool LoadXML(const XMLElement&);
  3601. void MarkNetworkUpdate() const;
  3602. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3603. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3604. void Remove();
  3605. void RemoveAttributeAnimation(const String&);
  3606. void RemoveInstanceDefault();
  3607. void RemoveObjectAnimation();
  3608. void ResetCrowdTarget(Node = null);
  3609. void ResetToDefault();
  3610. bool Save(File) const;
  3611. bool Save(VectorBuffer&) const;
  3612. bool SaveJSON(JSONValue&) const;
  3613. bool SaveXML(XMLElement&) const;
  3614. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3615. void SetAnimationTime(float);
  3616. void SetAreaCost(uint, uint, float);
  3617. bool SetAttribute(const String&, const Variant&);
  3618. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3619. void SetAttributeAnimationSpeed(const String&, float);
  3620. void SetAttributeAnimationTime(const String&, float);
  3621. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3622. void SetCrowdTarget(const Vector3&, Node = null);
  3623. void SetCrowdVelocity(const Vector3&, Node = null);
  3624. void SetExcludeFlags(uint, uint16);
  3625. void SetIncludeFlags(uint, uint16);
  3626. void SetInterceptNetworkUpdate(const String&, bool);
  3627. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3628. // Properties:
  3629. bool animationEnabled;
  3630. /* readonly */
  3631. Array<Variant> attributeDefaults;
  3632. /* readonly */
  3633. Array<AttributeInfo> attributeInfos;
  3634. Array<Variant> attributes;
  3635. /* readonly */
  3636. String category;
  3637. bool enabled;
  3638. /* readonly */
  3639. bool enabledEffective;
  3640. /* readonly */
  3641. uint id;
  3642. float maxAgentRadius;
  3643. int maxAgents;
  3644. NavigationMesh navMesh;
  3645. /* readonly */
  3646. Node node;
  3647. /* readonly */
  3648. Array<uint> numAreas;
  3649. /* readonly */
  3650. uint numAttributes;
  3651. /* readonly */
  3652. uint numObstacleAvoidanceTypes;
  3653. /* readonly */
  3654. uint numQueryFilterTypes;
  3655. ObjectAnimation objectAnimation;
  3656. /* readonly */
  3657. int refs;
  3658. /* readonly */
  3659. bool replicated;
  3660. bool temporary;
  3661. /* readonly */
  3662. StringHash type;
  3663. /* readonly */
  3664. String typeName;
  3665. /* readonly */
  3666. int weakRefs;
  3667. };
  3668. class CrowdObstacleAvoidanceParams
  3669. {
  3670. public:
  3671. // Properties:
  3672. uint8 adaptiveDepth;
  3673. uint8 adaptiveDivs;
  3674. uint8 adaptiveRings;
  3675. uint8 gridSize;
  3676. float horizTime;
  3677. float velBias;
  3678. float weightCurVel;
  3679. float weightDesVel;
  3680. float weightSide;
  3681. float weightToi;
  3682. };
  3683. class Cursor
  3684. {
  3685. public:
  3686. Cursor();
  3687. Cursor(const String&in);
  3688. // Methods:
  3689. void AddChild(UIElement);
  3690. void AddTag(const String&);
  3691. void AddTags(const String&, int8 = ';');
  3692. void ApplyAttributes();
  3693. void BringToFront();
  3694. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3695. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3696. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3697. void DisableLayoutUpdate();
  3698. IntVector2 ElementToScreen(const IntVector2&);
  3699. void EnableLayoutUpdate();
  3700. uint FindChild(UIElement) const;
  3701. Variant GetAttribute(const String&) const;
  3702. ValueAnimation GetAttributeAnimation(const String&) const;
  3703. float GetAttributeAnimationSpeed(const String&) const;
  3704. float GetAttributeAnimationTime(const String&) const;
  3705. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3706. Variant GetAttributeDefault(const String&) const;
  3707. UIElement GetChild(const String&, bool = false) const;
  3708. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3709. Array<UIElement> GetChildren(bool = false) const;
  3710. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3711. UIElement GetElementEventSender() const;
  3712. bool GetInterceptNetworkUpdate(const String&) const;
  3713. uint GetNumChildren(bool) const;
  3714. bool HasSubscribedToEvent(Object, const String&);
  3715. bool HasSubscribedToEvent(const String&);
  3716. bool HasTag(const String&) const;
  3717. void InsertChild(uint, UIElement);
  3718. bool IsChildOf(UIElement) const;
  3719. bool IsInside(IntVector2, bool);
  3720. bool IsInsideCombined(IntVector2, bool);
  3721. bool Load(File);
  3722. bool Load(VectorBuffer&);
  3723. UIElement LoadChildXML(XMLFile, XMLFile);
  3724. UIElement LoadChildXML(const XMLElement&, XMLFile);
  3725. bool LoadJSON(const JSONValue&);
  3726. bool LoadXML(File);
  3727. bool LoadXML(VectorBuffer&);
  3728. bool LoadXML(XMLFile, XMLFile);
  3729. bool LoadXML(const XMLElement&, XMLFile);
  3730. bool LoadXML(const XMLElement&);
  3731. void MarkNetworkUpdate() const;
  3732. void Remove();
  3733. void RemoveAllChildren();
  3734. void RemoveAllTags();
  3735. void RemoveAttributeAnimation(const String&);
  3736. void RemoveChild(UIElement, uint = 0);
  3737. void RemoveChild(uint);
  3738. void RemoveInstanceDefault();
  3739. void RemoveObjectAnimation();
  3740. bool RemoveTag(const String&);
  3741. void ResetDeepEnabled();
  3742. void ResetToDefault();
  3743. bool Save(File) const;
  3744. bool Save(VectorBuffer&) const;
  3745. bool SaveJSON(JSONValue&) const;
  3746. bool SaveXML(File, const String& = "\t");
  3747. bool SaveXML(VectorBuffer&, const String& = "\t");
  3748. bool SaveXML(XMLElement&) const;
  3749. IntVector2 ScreenToElement(const IntVector2&);
  3750. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3751. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3752. void SetAnimationTime(float);
  3753. bool SetAttribute(const String&, const Variant&);
  3754. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3755. void SetAttributeAnimationSpeed(const String&, float);
  3756. void SetAttributeAnimationTime(const String&, float);
  3757. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3758. void SetDeepEnabled(bool);
  3759. void SetEnabledRecursive(bool);
  3760. void SetFixedHeight(int);
  3761. void SetFixedSize(int, int);
  3762. void SetFixedWidth(int);
  3763. void SetFullImageRect();
  3764. void SetHoverOffset(int, int);
  3765. void SetInterceptNetworkUpdate(const String&, bool);
  3766. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3767. void SetMaxAnchor(float, float);
  3768. void SetMaxSize(int, int);
  3769. void SetMinAnchor(float, float);
  3770. void SetMinSize(int, int);
  3771. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3772. void SetPivot(float, float);
  3773. void SetPosition(int, int);
  3774. void SetShape(CursorShape);
  3775. void SetShape(const String&);
  3776. void SetSize(int, int);
  3777. bool SetStyle(const String&, XMLFile = null);
  3778. bool SetStyle(const XMLElement&);
  3779. bool SetStyleAuto(XMLFile = null);
  3780. void UpdateLayout();
  3781. const Variant& GetVar(const StringHash&);
  3782. // Properties:
  3783. bool animationEnabled;
  3784. /* readonly */
  3785. Array<Variant> attributeDefaults;
  3786. /* readonly */
  3787. Array<AttributeInfo> attributeInfos;
  3788. Array<Variant> attributes;
  3789. BlendMode blendMode;
  3790. IntRect border;
  3791. bool bringToBack;
  3792. bool bringToFront;
  3793. /* readonly */
  3794. String category;
  3795. /* readonly */
  3796. IntVector2 childOffset;
  3797. /* readonly */
  3798. Array<UIElement> children;
  3799. IntRect clipBorder;
  3800. bool clipChildren;
  3801. /* writeonly */
  3802. Color color;
  3803. /* readonly */
  3804. bool colorGradient;
  3805. Array<Color> colors;
  3806. /* readonly */
  3807. IntRect combinedScreenRect;
  3808. XMLFile defaultStyle;
  3809. /* readonly */
  3810. float derivedOpacity;
  3811. /* readonly */
  3812. uint dragButtonCombo;
  3813. /* readonly */
  3814. int dragButtonCount;
  3815. uint dragDropMode;
  3816. bool editable;
  3817. bool elementEventSender;
  3818. bool enableAnchor;
  3819. bool enabled;
  3820. /* readonly */
  3821. bool enabledSelf;
  3822. /* readonly */
  3823. bool fixedHeight;
  3824. /* readonly */
  3825. bool fixedSize;
  3826. /* readonly */
  3827. bool fixedWidth;
  3828. bool focus;
  3829. FocusMode focusMode;
  3830. int height;
  3831. HorizontalAlignment horizontalAlignment;
  3832. IntVector2 hoverOffset;
  3833. /* readonly */
  3834. bool hovering;
  3835. IntRect imageBorder;
  3836. IntRect imageRect;
  3837. int indent;
  3838. int indentSpacing;
  3839. /* readonly */
  3840. int indentWidth;
  3841. bool internal;
  3842. IntRect layoutBorder;
  3843. Vector2 layoutFlexScale;
  3844. LayoutMode layoutMode;
  3845. int layoutSpacing;
  3846. Vector2 maxAnchor;
  3847. int maxHeight;
  3848. IntVector2 maxOffset;
  3849. IntVector2 maxSize;
  3850. int maxWidth;
  3851. Vector2 minAnchor;
  3852. int minHeight;
  3853. IntVector2 minOffset;
  3854. IntVector2 minSize;
  3855. int minWidth;
  3856. String name;
  3857. /* readonly */
  3858. uint numAllChildren;
  3859. /* readonly */
  3860. uint numAttributes;
  3861. /* readonly */
  3862. uint numChildren;
  3863. ObjectAnimation objectAnimation;
  3864. float opacity;
  3865. UIElement parent;
  3866. Vector2 pivot;
  3867. IntVector2 position;
  3868. int priority;
  3869. /* readonly */
  3870. int refs;
  3871. /* readonly */
  3872. UIElement root;
  3873. /* readonly */
  3874. IntVector2 screenPosition;
  3875. bool selected;
  3876. String shape;
  3877. IntVector2 size;
  3878. bool sortChildren;
  3879. String style;
  3880. /* readonly */
  3881. Array<String> tags;
  3882. bool temporary;
  3883. Texture texture;
  3884. bool tiled;
  3885. TraversalMode traversalMode;
  3886. /* readonly */
  3887. StringHash type;
  3888. /* readonly */
  3889. String typeName;
  3890. bool useDerivedOpacity;
  3891. bool useSystemShapes;
  3892. /* readonly */
  3893. VariantMap vars;
  3894. VerticalAlignment verticalAlignment;
  3895. bool visible;
  3896. /* readonly */
  3897. bool visibleEffective;
  3898. /* readonly */
  3899. int weakRefs;
  3900. int width;
  3901. };
  3902. class CustomGeometry
  3903. {
  3904. public:
  3905. // Methods:
  3906. void ApplyAttributes();
  3907. void BeginGeometry(uint, PrimitiveType);
  3908. void Clear();
  3909. void Commit();
  3910. void DefineColor(const Color&);
  3911. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3912. void DefineNormal(const Vector3&);
  3913. void DefineTangent(const Vector4&);
  3914. void DefineTexCoord(const Vector2&);
  3915. void DefineVertex(const Vector3&);
  3916. void DrawDebugGeometry(DebugRenderer, bool);
  3917. Variant GetAttribute(const String&) const;
  3918. ValueAnimation GetAttributeAnimation(const String&) const;
  3919. float GetAttributeAnimationSpeed(const String&) const;
  3920. float GetAttributeAnimationTime(const String&) const;
  3921. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3922. Variant GetAttributeDefault(const String&) const;
  3923. bool GetInterceptNetworkUpdate(const String&) const;
  3924. CustomGeometryVertex GetVertex(uint, uint);
  3925. bool HasSubscribedToEvent(Object, const String&);
  3926. bool HasSubscribedToEvent(const String&);
  3927. bool IsInView(Camera) const;
  3928. bool Load(File);
  3929. bool Load(VectorBuffer&);
  3930. bool LoadJSON(const JSONValue&);
  3931. bool LoadXML(const XMLElement&);
  3932. void MarkNetworkUpdate() const;
  3933. void Remove();
  3934. void RemoveAttributeAnimation(const String&);
  3935. void RemoveInstanceDefault();
  3936. void RemoveObjectAnimation();
  3937. void ResetToDefault();
  3938. bool Save(File) const;
  3939. bool Save(VectorBuffer&) const;
  3940. bool SaveJSON(JSONValue&) const;
  3941. bool SaveXML(XMLElement&) const;
  3942. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3943. void SetAnimationTime(float);
  3944. bool SetAttribute(const String&, const Variant&);
  3945. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3946. void SetAttributeAnimationSpeed(const String&, float);
  3947. void SetAttributeAnimationTime(const String&, float);
  3948. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3949. void SetInterceptNetworkUpdate(const String&, bool);
  3950. // Properties:
  3951. bool animationEnabled;
  3952. /* readonly */
  3953. Array<Variant> attributeDefaults;
  3954. /* readonly */
  3955. Array<AttributeInfo> attributeInfos;
  3956. Array<Variant> attributes;
  3957. /* readonly */
  3958. BoundingBox boundingBox;
  3959. bool castShadows;
  3960. /* readonly */
  3961. String category;
  3962. float drawDistance;
  3963. bool dynamic;
  3964. bool enabled;
  3965. /* readonly */
  3966. bool enabledEffective;
  3967. /* readonly */
  3968. uint id;
  3969. /* readonly */
  3970. bool inView;
  3971. uint lightMask;
  3972. float lodBias;
  3973. /* writeonly */
  3974. Material material;
  3975. Array<Material> materials;
  3976. uint maxLights;
  3977. /* readonly */
  3978. Node node;
  3979. /* readonly */
  3980. uint numAttributes;
  3981. uint numGeometries;
  3982. /* readonly */
  3983. Array<uint> numVertices;
  3984. ObjectAnimation objectAnimation;
  3985. bool occludee;
  3986. bool occluder;
  3987. /* readonly */
  3988. int refs;
  3989. /* readonly */
  3990. bool replicated;
  3991. float shadowDistance;
  3992. uint shadowMask;
  3993. bool temporary;
  3994. /* readonly */
  3995. StringHash type;
  3996. /* readonly */
  3997. String typeName;
  3998. uint viewMask;
  3999. /* readonly */
  4000. int weakRefs;
  4001. /* readonly */
  4002. BoundingBox worldBoundingBox;
  4003. /* readonly */
  4004. Zone zone;
  4005. uint zoneMask;
  4006. };
  4007. class CustomGeometryVertex
  4008. {
  4009. public:
  4010. // Properties:
  4011. uint color;
  4012. Vector3 normal;
  4013. Vector3 position;
  4014. Vector4 tangent;
  4015. Vector2 texCoord;
  4016. };
  4017. class Database
  4018. {
  4019. public:
  4020. // Methods:
  4021. DbConnection Connect(const String&);
  4022. void Disconnect(DbConnection);
  4023. bool HasSubscribedToEvent(Object, const String&);
  4024. bool HasSubscribedToEvent(const String&);
  4025. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4026. // Properties:
  4027. /* readonly */
  4028. String category;
  4029. uint poolSize;
  4030. /* readonly */
  4031. bool pooling;
  4032. /* readonly */
  4033. int refs;
  4034. /* readonly */
  4035. StringHash type;
  4036. /* readonly */
  4037. String typeName;
  4038. /* readonly */
  4039. int weakRefs;
  4040. };
  4041. class DbConnection
  4042. {
  4043. public:
  4044. // Methods:
  4045. DbResult Execute(const String&, bool = false);
  4046. bool HasSubscribedToEvent(Object, const String&);
  4047. bool HasSubscribedToEvent(const String&);
  4048. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4049. // Properties:
  4050. /* readonly */
  4051. String category;
  4052. /* readonly */
  4053. bool connected;
  4054. /* readonly */
  4055. String connectionString;
  4056. /* readonly */
  4057. int refs;
  4058. /* readonly */
  4059. StringHash type;
  4060. /* readonly */
  4061. String typeName;
  4062. /* readonly */
  4063. int weakRefs;
  4064. };
  4065. class DbResult
  4066. {
  4067. public:
  4068. ~DbResult();
  4069. DbResult();
  4070. DbResult(const DbResult&in);
  4071. // Properties:
  4072. /* readonly */
  4073. Array<String> columns;
  4074. /* readonly */
  4075. int64 numAffectedRows;
  4076. /* readonly */
  4077. uint numColumns;
  4078. /* readonly */
  4079. uint numRows;
  4080. /* readonly */
  4081. Array<Array<Variant>> row;
  4082. };
  4083. class DebugHud
  4084. {
  4085. public:
  4086. // Methods:
  4087. void ClearAppStats();
  4088. bool HasSubscribedToEvent(Object, const String&);
  4089. bool HasSubscribedToEvent(const String&);
  4090. void ResetAppStats(const String&);
  4091. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4092. void SetAppStats(const String&, const String&);
  4093. void SetAppStats(const String&, const Variant&);
  4094. void Toggle(uint);
  4095. void ToggleAll();
  4096. void Update();
  4097. // Properties:
  4098. /* readonly */
  4099. String category;
  4100. XMLFile defaultStyle;
  4101. /* readonly */
  4102. Text memoryText;
  4103. uint mode;
  4104. /* readonly */
  4105. Text modeText;
  4106. float profilerInterval;
  4107. uint profilerMaxDepth;
  4108. /* readonly */
  4109. Text profilerText;
  4110. /* readonly */
  4111. int refs;
  4112. /* readonly */
  4113. Text statsText;
  4114. /* readonly */
  4115. StringHash type;
  4116. /* readonly */
  4117. String typeName;
  4118. bool useRendererStats;
  4119. /* readonly */
  4120. int weakRefs;
  4121. };
  4122. class DebugRenderer
  4123. {
  4124. public:
  4125. // Methods:
  4126. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  4127. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  4128. void AddCross(const Vector3&, float, const Color&, bool = true);
  4129. void AddFrustum(const Frustum&, const Color&, bool = true);
  4130. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  4131. void AddNode(Node, float = 1.0, bool = true);
  4132. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4133. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  4134. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  4135. void AddSkeleton(Skeleton, const Color&, bool = true);
  4136. void AddSphere(const Sphere&, const Color&, bool = true);
  4137. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  4138. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4139. void ApplyAttributes();
  4140. void DrawDebugGeometry(DebugRenderer, bool);
  4141. Variant GetAttribute(const String&) const;
  4142. ValueAnimation GetAttributeAnimation(const String&) const;
  4143. float GetAttributeAnimationSpeed(const String&) const;
  4144. float GetAttributeAnimationTime(const String&) const;
  4145. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4146. Variant GetAttributeDefault(const String&) const;
  4147. bool GetInterceptNetworkUpdate(const String&) const;
  4148. bool HasSubscribedToEvent(Object, const String&);
  4149. bool HasSubscribedToEvent(const String&);
  4150. bool Load(File);
  4151. bool Load(VectorBuffer&);
  4152. bool LoadJSON(const JSONValue&);
  4153. bool LoadXML(const XMLElement&);
  4154. void MarkNetworkUpdate() const;
  4155. void Remove();
  4156. void RemoveAttributeAnimation(const String&);
  4157. void RemoveInstanceDefault();
  4158. void RemoveObjectAnimation();
  4159. void ResetToDefault();
  4160. bool Save(File) const;
  4161. bool Save(VectorBuffer&) const;
  4162. bool SaveJSON(JSONValue&) const;
  4163. bool SaveXML(XMLElement&) const;
  4164. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4165. void SetAnimationTime(float);
  4166. bool SetAttribute(const String&, const Variant&);
  4167. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4168. void SetAttributeAnimationSpeed(const String&, float);
  4169. void SetAttributeAnimationTime(const String&, float);
  4170. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4171. void SetInterceptNetworkUpdate(const String&, bool);
  4172. // Properties:
  4173. bool animationEnabled;
  4174. /* readonly */
  4175. Array<Variant> attributeDefaults;
  4176. /* readonly */
  4177. Array<AttributeInfo> attributeInfos;
  4178. Array<Variant> attributes;
  4179. /* readonly */
  4180. String category;
  4181. bool enabled;
  4182. /* readonly */
  4183. bool enabledEffective;
  4184. /* readonly */
  4185. uint id;
  4186. bool lineAntiAlias;
  4187. /* readonly */
  4188. Node node;
  4189. /* readonly */
  4190. uint numAttributes;
  4191. ObjectAnimation objectAnimation;
  4192. /* readonly */
  4193. int refs;
  4194. /* readonly */
  4195. bool replicated;
  4196. bool temporary;
  4197. /* readonly */
  4198. StringHash type;
  4199. /* readonly */
  4200. String typeName;
  4201. /* readonly */
  4202. int weakRefs;
  4203. };
  4204. class DecalSet
  4205. {
  4206. public:
  4207. // Methods:
  4208. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4209. void ApplyAttributes();
  4210. void DrawDebugGeometry(DebugRenderer, bool);
  4211. Variant GetAttribute(const String&) const;
  4212. ValueAnimation GetAttributeAnimation(const String&) const;
  4213. float GetAttributeAnimationSpeed(const String&) const;
  4214. float GetAttributeAnimationTime(const String&) const;
  4215. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4216. Variant GetAttributeDefault(const String&) const;
  4217. bool GetInterceptNetworkUpdate(const String&) const;
  4218. bool HasSubscribedToEvent(Object, const String&);
  4219. bool HasSubscribedToEvent(const String&);
  4220. bool IsInView(Camera) const;
  4221. bool Load(File);
  4222. bool Load(VectorBuffer&);
  4223. bool LoadJSON(const JSONValue&);
  4224. bool LoadXML(const XMLElement&);
  4225. void MarkNetworkUpdate() const;
  4226. void Remove();
  4227. void RemoveAllDecals();
  4228. void RemoveAttributeAnimation(const String&);
  4229. void RemoveDecals(uint);
  4230. void RemoveInstanceDefault();
  4231. void RemoveObjectAnimation();
  4232. void ResetToDefault();
  4233. bool Save(File) const;
  4234. bool Save(VectorBuffer&) const;
  4235. bool SaveJSON(JSONValue&) const;
  4236. bool SaveXML(XMLElement&) const;
  4237. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4238. void SetAnimationTime(float);
  4239. bool SetAttribute(const String&, const Variant&);
  4240. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4241. void SetAttributeAnimationSpeed(const String&, float);
  4242. void SetAttributeAnimationTime(const String&, float);
  4243. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4244. void SetInterceptNetworkUpdate(const String&, bool);
  4245. // Properties:
  4246. bool animationEnabled;
  4247. /* readonly */
  4248. Array<Variant> attributeDefaults;
  4249. /* readonly */
  4250. Array<AttributeInfo> attributeInfos;
  4251. Array<Variant> attributes;
  4252. /* readonly */
  4253. BoundingBox boundingBox;
  4254. bool castShadows;
  4255. /* readonly */
  4256. String category;
  4257. float drawDistance;
  4258. bool enabled;
  4259. /* readonly */
  4260. bool enabledEffective;
  4261. /* readonly */
  4262. uint id;
  4263. /* readonly */
  4264. bool inView;
  4265. uint lightMask;
  4266. float lodBias;
  4267. Material material;
  4268. uint maxIndices;
  4269. uint maxLights;
  4270. uint maxVertices;
  4271. /* readonly */
  4272. Node node;
  4273. /* readonly */
  4274. uint numAttributes;
  4275. /* readonly */
  4276. uint numDecals;
  4277. /* readonly */
  4278. uint numIndices;
  4279. /* readonly */
  4280. uint numVertices;
  4281. ObjectAnimation objectAnimation;
  4282. bool occludee;
  4283. bool occluder;
  4284. bool optimizeBufferSize;
  4285. /* readonly */
  4286. int refs;
  4287. /* readonly */
  4288. bool replicated;
  4289. float shadowDistance;
  4290. uint shadowMask;
  4291. bool temporary;
  4292. /* readonly */
  4293. StringHash type;
  4294. /* readonly */
  4295. String typeName;
  4296. uint viewMask;
  4297. /* readonly */
  4298. int weakRefs;
  4299. /* readonly */
  4300. BoundingBox worldBoundingBox;
  4301. /* readonly */
  4302. Zone zone;
  4303. uint zoneMask;
  4304. };
  4305. class Deserializer
  4306. {
  4307. public:
  4308. // Methods:
  4309. Array<uint8> Read(uint);
  4310. bool ReadBool();
  4311. BoundingBox ReadBoundingBox();
  4312. int8 ReadByte();
  4313. Color ReadColor();
  4314. double ReadDouble();
  4315. String ReadFileID();
  4316. float ReadFloat();
  4317. int ReadInt();
  4318. int64 ReadInt64();
  4319. IntRect ReadIntRect();
  4320. IntVector2 ReadIntVector2();
  4321. String ReadLine();
  4322. Matrix3 ReadMatrix3();
  4323. Matrix3x4 ReadMatrix3x4();
  4324. Matrix4 ReadMatrix4();
  4325. uint ReadNetID();
  4326. Quaternion ReadPackedQuaternion();
  4327. Vector3 ReadPackedVector3(float);
  4328. Quaternion ReadQuaternion();
  4329. int16 ReadShort();
  4330. String ReadString();
  4331. StringHash ReadStringHash();
  4332. uint8 ReadUByte();
  4333. uint ReadUInt();
  4334. uint64 ReadUInt64();
  4335. uint16 ReadUShort();
  4336. uint ReadVLE();
  4337. Variant ReadVariant();
  4338. VariantMap ReadVariantMap();
  4339. Vector2 ReadVector2();
  4340. Vector3 ReadVector3();
  4341. Vector4 ReadVector4();
  4342. VectorBuffer ReadVectorBuffer(uint);
  4343. uint Seek(uint);
  4344. uint SeekRelative(int);
  4345. uint Tell() const;
  4346. // Properties:
  4347. /* readonly */
  4348. uint checksum;
  4349. /* readonly */
  4350. bool eof;
  4351. /* readonly */
  4352. String name;
  4353. /* readonly */
  4354. uint position;
  4355. /* readonly */
  4356. uint size;
  4357. };
  4358. class Dictionary
  4359. {
  4360. public:
  4361. Dictionary();
  4362. // Methods:
  4363. void Clear();
  4364. void Erase(const String&);
  4365. bool Exists(const String&) const;
  4366. bool Get(const String&, void*) const;
  4367. bool Get(const String&, double&) const;
  4368. bool Get(const String&, int64&) const;
  4369. void Set(const String&, const void*);
  4370. void Set(const String&, const double&);
  4371. void Set(const String&, const int64&);
  4372. // Properties:
  4373. /* readonly */
  4374. bool empty;
  4375. /* readonly */
  4376. Array<String> keys;
  4377. /* readonly */
  4378. uint length;
  4379. };
  4380. class DictionaryValue
  4381. {
  4382. public:
  4383. ~DictionaryValue();
  4384. DictionaryValue();
  4385. };
  4386. class Drawable
  4387. {
  4388. public:
  4389. // Methods:
  4390. void ApplyAttributes();
  4391. void DrawDebugGeometry(DebugRenderer, bool);
  4392. Variant GetAttribute(const String&) const;
  4393. ValueAnimation GetAttributeAnimation(const String&) const;
  4394. float GetAttributeAnimationSpeed(const String&) const;
  4395. float GetAttributeAnimationTime(const String&) const;
  4396. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4397. Variant GetAttributeDefault(const String&) const;
  4398. bool GetInterceptNetworkUpdate(const String&) const;
  4399. bool HasSubscribedToEvent(Object, const String&);
  4400. bool HasSubscribedToEvent(const String&);
  4401. bool IsInView(Camera) const;
  4402. bool Load(File);
  4403. bool Load(VectorBuffer&);
  4404. bool LoadJSON(const JSONValue&);
  4405. bool LoadXML(const XMLElement&);
  4406. void MarkNetworkUpdate() const;
  4407. void Remove();
  4408. void RemoveAttributeAnimation(const String&);
  4409. void RemoveInstanceDefault();
  4410. void RemoveObjectAnimation();
  4411. void ResetToDefault();
  4412. bool Save(File) const;
  4413. bool Save(VectorBuffer&) const;
  4414. bool SaveJSON(JSONValue&) const;
  4415. bool SaveXML(XMLElement&) const;
  4416. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4417. void SetAnimationTime(float);
  4418. bool SetAttribute(const String&, const Variant&);
  4419. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4420. void SetAttributeAnimationSpeed(const String&, float);
  4421. void SetAttributeAnimationTime(const String&, float);
  4422. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4423. void SetInterceptNetworkUpdate(const String&, bool);
  4424. // Properties:
  4425. bool animationEnabled;
  4426. /* readonly */
  4427. Array<Variant> attributeDefaults;
  4428. /* readonly */
  4429. Array<AttributeInfo> attributeInfos;
  4430. Array<Variant> attributes;
  4431. /* readonly */
  4432. BoundingBox boundingBox;
  4433. bool castShadows;
  4434. /* readonly */
  4435. String category;
  4436. float drawDistance;
  4437. bool enabled;
  4438. /* readonly */
  4439. bool enabledEffective;
  4440. /* readonly */
  4441. uint id;
  4442. /* readonly */
  4443. bool inView;
  4444. uint lightMask;
  4445. float lodBias;
  4446. uint maxLights;
  4447. /* readonly */
  4448. Node node;
  4449. /* readonly */
  4450. uint numAttributes;
  4451. ObjectAnimation objectAnimation;
  4452. bool occludee;
  4453. bool occluder;
  4454. /* readonly */
  4455. int refs;
  4456. /* readonly */
  4457. bool replicated;
  4458. float shadowDistance;
  4459. uint shadowMask;
  4460. bool temporary;
  4461. /* readonly */
  4462. StringHash type;
  4463. /* readonly */
  4464. String typeName;
  4465. uint viewMask;
  4466. /* readonly */
  4467. int weakRefs;
  4468. /* readonly */
  4469. BoundingBox worldBoundingBox;
  4470. uint zoneMask;
  4471. };
  4472. class Drawable2D
  4473. {
  4474. public:
  4475. // Methods:
  4476. void ApplyAttributes();
  4477. void DrawDebugGeometry(DebugRenderer, bool);
  4478. Variant GetAttribute(const String&) const;
  4479. ValueAnimation GetAttributeAnimation(const String&) const;
  4480. float GetAttributeAnimationSpeed(const String&) const;
  4481. float GetAttributeAnimationTime(const String&) const;
  4482. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4483. Variant GetAttributeDefault(const String&) const;
  4484. bool GetInterceptNetworkUpdate(const String&) const;
  4485. bool HasSubscribedToEvent(Object, const String&);
  4486. bool HasSubscribedToEvent(const String&);
  4487. bool IsInView(Camera) const;
  4488. bool Load(File);
  4489. bool Load(VectorBuffer&);
  4490. bool LoadJSON(const JSONValue&);
  4491. bool LoadXML(const XMLElement&);
  4492. void MarkNetworkUpdate() const;
  4493. void Remove();
  4494. void RemoveAttributeAnimation(const String&);
  4495. void RemoveInstanceDefault();
  4496. void RemoveObjectAnimation();
  4497. void ResetToDefault();
  4498. bool Save(File) const;
  4499. bool Save(VectorBuffer&) const;
  4500. bool SaveJSON(JSONValue&) const;
  4501. bool SaveXML(XMLElement&) const;
  4502. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4503. void SetAnimationTime(float);
  4504. bool SetAttribute(const String&, const Variant&);
  4505. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4506. void SetAttributeAnimationSpeed(const String&, float);
  4507. void SetAttributeAnimationTime(const String&, float);
  4508. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4509. void SetInterceptNetworkUpdate(const String&, bool);
  4510. // Properties:
  4511. bool animationEnabled;
  4512. /* readonly */
  4513. Array<Variant> attributeDefaults;
  4514. /* readonly */
  4515. Array<AttributeInfo> attributeInfos;
  4516. Array<Variant> attributes;
  4517. /* readonly */
  4518. BoundingBox boundingBox;
  4519. bool castShadows;
  4520. /* readonly */
  4521. String category;
  4522. float drawDistance;
  4523. bool enabled;
  4524. /* readonly */
  4525. bool enabledEffective;
  4526. /* readonly */
  4527. uint id;
  4528. /* readonly */
  4529. bool inView;
  4530. int layer;
  4531. uint lightMask;
  4532. float lodBias;
  4533. uint maxLights;
  4534. /* readonly */
  4535. Node node;
  4536. /* readonly */
  4537. uint numAttributes;
  4538. ObjectAnimation objectAnimation;
  4539. bool occludee;
  4540. bool occluder;
  4541. int orderInLayer;
  4542. /* readonly */
  4543. int refs;
  4544. /* readonly */
  4545. bool replicated;
  4546. float shadowDistance;
  4547. uint shadowMask;
  4548. bool temporary;
  4549. /* readonly */
  4550. StringHash type;
  4551. /* readonly */
  4552. String typeName;
  4553. uint viewMask;
  4554. /* readonly */
  4555. int weakRefs;
  4556. /* readonly */
  4557. BoundingBox worldBoundingBox;
  4558. uint zoneMask;
  4559. };
  4560. class DropDownList
  4561. {
  4562. public:
  4563. DropDownList();
  4564. DropDownList(const String&in);
  4565. // Methods:
  4566. void AddChild(UIElement);
  4567. void AddItem(UIElement);
  4568. void AddTag(const String&);
  4569. void AddTags(const String&, int8 = ';');
  4570. void ApplyAttributes();
  4571. void BringToFront();
  4572. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4573. void DisableLayoutUpdate();
  4574. IntVector2 ElementToScreen(const IntVector2&);
  4575. void EnableLayoutUpdate();
  4576. uint FindChild(UIElement) const;
  4577. Variant GetAttribute(const String&) const;
  4578. ValueAnimation GetAttributeAnimation(const String&) const;
  4579. float GetAttributeAnimationSpeed(const String&) const;
  4580. float GetAttributeAnimationTime(const String&) const;
  4581. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4582. Variant GetAttributeDefault(const String&) const;
  4583. UIElement GetChild(const String&, bool = false) const;
  4584. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4585. Array<UIElement> GetChildren(bool = false) const;
  4586. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4587. UIElement GetElementEventSender() const;
  4588. bool GetInterceptNetworkUpdate(const String&) const;
  4589. Array<UIElement> GetItems() const;
  4590. uint GetNumChildren(bool) const;
  4591. bool HasSubscribedToEvent(Object, const String&);
  4592. bool HasSubscribedToEvent(const String&);
  4593. bool HasTag(const String&) const;
  4594. void InsertChild(uint, UIElement);
  4595. void InsertItem(uint, UIElement);
  4596. bool IsChildOf(UIElement) const;
  4597. bool IsInside(IntVector2, bool);
  4598. bool IsInsideCombined(IntVector2, bool);
  4599. bool Load(File);
  4600. bool Load(VectorBuffer&);
  4601. UIElement LoadChildXML(XMLFile, XMLFile);
  4602. UIElement LoadChildXML(const XMLElement&, XMLFile);
  4603. bool LoadJSON(const JSONValue&);
  4604. bool LoadXML(File);
  4605. bool LoadXML(VectorBuffer&);
  4606. bool LoadXML(XMLFile, XMLFile);
  4607. bool LoadXML(const XMLElement&, XMLFile);
  4608. bool LoadXML(const XMLElement&);
  4609. void MarkNetworkUpdate() const;
  4610. void Remove();
  4611. void RemoveAllChildren();
  4612. void RemoveAllItems();
  4613. void RemoveAllTags();
  4614. void RemoveAttributeAnimation(const String&);
  4615. void RemoveChild(UIElement, uint = 0);
  4616. void RemoveChild(uint);
  4617. void RemoveInstanceDefault();
  4618. void RemoveItem(UIElement);
  4619. void RemoveItem(uint);
  4620. void RemoveObjectAnimation();
  4621. bool RemoveTag(const String&);
  4622. void ResetDeepEnabled();
  4623. void ResetToDefault();
  4624. bool Save(File) const;
  4625. bool Save(VectorBuffer&) const;
  4626. bool SaveJSON(JSONValue&) const;
  4627. bool SaveXML(File, const String& = "\t");
  4628. bool SaveXML(VectorBuffer&, const String& = "\t");
  4629. bool SaveXML(XMLElement&) const;
  4630. IntVector2 ScreenToElement(const IntVector2&);
  4631. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4632. void SetAccelerator(int, int);
  4633. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4634. void SetAnimationTime(float);
  4635. bool SetAttribute(const String&, const Variant&);
  4636. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4637. void SetAttributeAnimationSpeed(const String&, float);
  4638. void SetAttributeAnimationTime(const String&, float);
  4639. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4640. void SetDeepEnabled(bool);
  4641. void SetDisabledOffset(int, int);
  4642. void SetEnabledRecursive(bool);
  4643. void SetFixedHeight(int);
  4644. void SetFixedSize(int, int);
  4645. void SetFixedWidth(int);
  4646. void SetFullImageRect();
  4647. void SetHoverOffset(int, int);
  4648. void SetInterceptNetworkUpdate(const String&, bool);
  4649. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4650. void SetMaxAnchor(float, float);
  4651. void SetMaxSize(int, int);
  4652. void SetMinAnchor(float, float);
  4653. void SetMinSize(int, int);
  4654. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4655. void SetPivot(float, float);
  4656. void SetPosition(int, int);
  4657. void SetPressedChildOffset(int, int);
  4658. void SetPressedOffset(int, int);
  4659. void SetRepeat(float, float);
  4660. void SetSize(int, int);
  4661. bool SetStyle(const String&, XMLFile = null);
  4662. bool SetStyle(const XMLElement&);
  4663. bool SetStyleAuto(XMLFile = null);
  4664. void UpdateLayout();
  4665. const Variant& GetVar(const StringHash&);
  4666. UIElement getPopup() const;
  4667. // Properties:
  4668. /* readonly */
  4669. int acceleratorKey;
  4670. /* readonly */
  4671. int acceleratorQualifiers;
  4672. bool animationEnabled;
  4673. /* readonly */
  4674. Array<Variant> attributeDefaults;
  4675. /* readonly */
  4676. Array<AttributeInfo> attributeInfos;
  4677. Array<Variant> attributes;
  4678. BlendMode blendMode;
  4679. IntRect border;
  4680. bool bringToBack;
  4681. bool bringToFront;
  4682. /* readonly */
  4683. String category;
  4684. /* readonly */
  4685. IntVector2 childOffset;
  4686. /* readonly */
  4687. Array<UIElement> children;
  4688. IntRect clipBorder;
  4689. bool clipChildren;
  4690. /* writeonly */
  4691. Color color;
  4692. /* readonly */
  4693. bool colorGradient;
  4694. Array<Color> colors;
  4695. /* readonly */
  4696. IntRect combinedScreenRect;
  4697. XMLFile defaultStyle;
  4698. /* readonly */
  4699. float derivedOpacity;
  4700. IntVector2 disabledOffset;
  4701. /* readonly */
  4702. uint dragButtonCombo;
  4703. /* readonly */
  4704. int dragButtonCount;
  4705. uint dragDropMode;
  4706. bool editable;
  4707. bool elementEventSender;
  4708. bool enableAnchor;
  4709. bool enabled;
  4710. /* readonly */
  4711. bool enabledSelf;
  4712. /* readonly */
  4713. bool fixedHeight;
  4714. /* readonly */
  4715. bool fixedSize;
  4716. /* readonly */
  4717. bool fixedWidth;
  4718. bool focus;
  4719. FocusMode focusMode;
  4720. int height;
  4721. HorizontalAlignment horizontalAlignment;
  4722. IntVector2 hoverOffset;
  4723. /* readonly */
  4724. bool hovering;
  4725. IntRect imageBorder;
  4726. IntRect imageRect;
  4727. int indent;
  4728. int indentSpacing;
  4729. /* readonly */
  4730. int indentWidth;
  4731. bool internal;
  4732. /* readonly */
  4733. Array<UIElement> items;
  4734. IntRect layoutBorder;
  4735. Vector2 layoutFlexScale;
  4736. LayoutMode layoutMode;
  4737. int layoutSpacing;
  4738. /* readonly */
  4739. ListView listView;
  4740. Vector2 maxAnchor;
  4741. int maxHeight;
  4742. IntVector2 maxOffset;
  4743. IntVector2 maxSize;
  4744. int maxWidth;
  4745. Vector2 minAnchor;
  4746. int minHeight;
  4747. IntVector2 minOffset;
  4748. IntVector2 minSize;
  4749. int minWidth;
  4750. String name;
  4751. /* readonly */
  4752. uint numAllChildren;
  4753. /* readonly */
  4754. uint numAttributes;
  4755. /* readonly */
  4756. uint numChildren;
  4757. /* readonly */
  4758. uint numItems;
  4759. ObjectAnimation objectAnimation;
  4760. float opacity;
  4761. UIElement parent;
  4762. Vector2 pivot;
  4763. /* readonly */
  4764. UIElement placeholder;
  4765. String placeholderText;
  4766. IntVector2 position;
  4767. /* readonly */
  4768. bool pressed;
  4769. IntVector2 pressedChildOffset;
  4770. IntVector2 pressedOffset;
  4771. int priority;
  4772. /* readonly */
  4773. int refs;
  4774. float repeatDelay;
  4775. float repeatRate;
  4776. bool resizePopup;
  4777. /* readonly */
  4778. UIElement root;
  4779. /* readonly */
  4780. IntVector2 screenPosition;
  4781. bool selected;
  4782. /* readonly */
  4783. UIElement selectedItem;
  4784. uint selection;
  4785. bool showPopup;
  4786. IntVector2 size;
  4787. bool sortChildren;
  4788. String style;
  4789. /* readonly */
  4790. Array<String> tags;
  4791. bool temporary;
  4792. Texture texture;
  4793. bool tiled;
  4794. TraversalMode traversalMode;
  4795. /* readonly */
  4796. StringHash type;
  4797. /* readonly */
  4798. String typeName;
  4799. bool useDerivedOpacity;
  4800. /* readonly */
  4801. VariantMap vars;
  4802. VerticalAlignment verticalAlignment;
  4803. bool visible;
  4804. /* readonly */
  4805. bool visibleEffective;
  4806. /* readonly */
  4807. int weakRefs;
  4808. int width;
  4809. };
  4810. class DynamicNavigationMesh
  4811. {
  4812. public:
  4813. // Methods:
  4814. bool AddTile(const VectorBuffer&) const;
  4815. bool Allocate(const BoundingBox&, uint);
  4816. void ApplyAttributes();
  4817. bool Build();
  4818. bool Build(const BoundingBox&);
  4819. bool Build(const IntVector2&, const IntVector2&);
  4820. void DrawDebugGeometry(DebugRenderer, bool);
  4821. void DrawDebugGeometry(bool);
  4822. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4823. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4824. float GetAreaCost(uint) const;
  4825. Variant GetAttribute(const String&) const;
  4826. ValueAnimation GetAttributeAnimation(const String&) const;
  4827. float GetAttributeAnimationSpeed(const String&) const;
  4828. float GetAttributeAnimationTime(const String&) const;
  4829. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4830. Variant GetAttributeDefault(const String&) const;
  4831. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4832. bool GetInterceptNetworkUpdate(const String&) const;
  4833. Vector3 GetRandomPoint();
  4834. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4835. BoundingBox GetTileBoudningBox(const IntVector2&) const;
  4836. VectorBuffer GetTileData(const IntVector2&) const;
  4837. IntVector2 GetTileIndex(const Vector3&) const;
  4838. bool HasSubscribedToEvent(Object, const String&);
  4839. bool HasSubscribedToEvent(const String&);
  4840. bool HasTile(const IntVector2&) const;
  4841. bool Load(File);
  4842. bool Load(VectorBuffer&);
  4843. bool LoadJSON(const JSONValue&);
  4844. bool LoadXML(const XMLElement&);
  4845. void MarkNetworkUpdate() const;
  4846. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4847. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4848. void Remove();
  4849. void RemoveAllTiles();
  4850. void RemoveAttributeAnimation(const String&);
  4851. void RemoveInstanceDefault();
  4852. void RemoveObjectAnimation();
  4853. void RemoveTile(const IntVector2&);
  4854. void ResetToDefault();
  4855. bool Save(File) const;
  4856. bool Save(VectorBuffer&) const;
  4857. bool SaveJSON(JSONValue&) const;
  4858. bool SaveXML(XMLElement&) const;
  4859. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4860. void SetAnimationTime(float);
  4861. void SetAreaCost(uint, float);
  4862. bool SetAttribute(const String&, const Variant&);
  4863. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4864. void SetAttributeAnimationSpeed(const String&, float);
  4865. void SetAttributeAnimationTime(const String&, float);
  4866. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4867. void SetInterceptNetworkUpdate(const String&, bool);
  4868. // Properties:
  4869. float agentHeight;
  4870. float agentMaxClimb;
  4871. float agentMaxSlope;
  4872. float agentRadius;
  4873. bool animationEnabled;
  4874. /* readonly */
  4875. Array<Variant> attributeDefaults;
  4876. /* readonly */
  4877. Array<AttributeInfo> attributeInfos;
  4878. Array<Variant> attributes;
  4879. /* readonly */
  4880. BoundingBox boundingBox;
  4881. /* readonly */
  4882. String category;
  4883. float cellHeight;
  4884. float cellSize;
  4885. float detailSampleDistance;
  4886. float detailSampleMaxError;
  4887. bool drawNavAreas;
  4888. bool drawObstacles;
  4889. bool drawOffMeshConnections;
  4890. float edgeMaxError;
  4891. float edgeMaxLength;
  4892. bool enabled;
  4893. /* readonly */
  4894. bool enabledEffective;
  4895. /* readonly */
  4896. uint id;
  4897. /* readonly */
  4898. bool initialized;
  4899. bool maxLayers;
  4900. uint maxObstacles;
  4901. /* readonly */
  4902. Node node;
  4903. /* readonly */
  4904. uint numAttributes;
  4905. /* readonly */
  4906. IntVector2 numTiles;
  4907. ObjectAnimation objectAnimation;
  4908. Vector3 padding;
  4909. NavmeshPartitionType partitionType;
  4910. /* readonly */
  4911. int refs;
  4912. float regionMergeSize;
  4913. float regionMinSize;
  4914. /* readonly */
  4915. bool replicated;
  4916. bool temporary;
  4917. int tileSize;
  4918. /* readonly */
  4919. StringHash type;
  4920. /* readonly */
  4921. String typeName;
  4922. /* readonly */
  4923. int weakRefs;
  4924. /* readonly */
  4925. BoundingBox worldBoundingBox;
  4926. };
  4927. class Engine
  4928. {
  4929. public:
  4930. // Methods:
  4931. Console CreateConsole();
  4932. DebugHud CreateDebugHud();
  4933. void DumpMemory();
  4934. void DumpProfiler();
  4935. void DumpResources(bool = false);
  4936. void Exit();
  4937. bool HasSubscribedToEvent(Object, const String&);
  4938. bool HasSubscribedToEvent(const String&);
  4939. void RunFrame();
  4940. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4941. // Properties:
  4942. bool autoExit;
  4943. /* readonly */
  4944. String category;
  4945. /* readonly */
  4946. bool exiting;
  4947. /* readonly */
  4948. bool headless;
  4949. /* readonly */
  4950. bool initialized;
  4951. int maxFps;
  4952. int maxInactiveFps;
  4953. int minFps;
  4954. bool pauseMinimized;
  4955. /* readonly */
  4956. int refs;
  4957. int timeStepSmoothing;
  4958. /* readonly */
  4959. StringHash type;
  4960. /* readonly */
  4961. String typeName;
  4962. /* readonly */
  4963. int weakRefs;
  4964. };
  4965. class File
  4966. {
  4967. public:
  4968. File();
  4969. File(const String&in, FileMode mode = FILE_READ);
  4970. // Methods:
  4971. void Close();
  4972. bool HasSubscribedToEvent(Object, const String&);
  4973. bool HasSubscribedToEvent(const String&);
  4974. bool Open(const String&, FileMode = FILE_READ);
  4975. Array<uint8> Read(uint);
  4976. bool ReadBool();
  4977. BoundingBox ReadBoundingBox();
  4978. int8 ReadByte();
  4979. Color ReadColor();
  4980. double ReadDouble();
  4981. String ReadFileID();
  4982. float ReadFloat();
  4983. int ReadInt();
  4984. int64 ReadInt64();
  4985. IntRect ReadIntRect();
  4986. IntVector2 ReadIntVector2();
  4987. String ReadLine();
  4988. Matrix3 ReadMatrix3();
  4989. Matrix3x4 ReadMatrix3x4();
  4990. Matrix4 ReadMatrix4();
  4991. uint ReadNetID();
  4992. Quaternion ReadPackedQuaternion();
  4993. Vector3 ReadPackedVector3(float);
  4994. Quaternion ReadQuaternion();
  4995. int16 ReadShort();
  4996. String ReadString();
  4997. StringHash ReadStringHash();
  4998. uint8 ReadUByte();
  4999. uint ReadUInt();
  5000. uint64 ReadUInt64();
  5001. uint16 ReadUShort();
  5002. uint ReadVLE();
  5003. Variant ReadVariant();
  5004. VariantMap ReadVariantMap();
  5005. Vector2 ReadVector2();
  5006. Vector3 ReadVector3();
  5007. Vector4 ReadVector4();
  5008. VectorBuffer ReadVectorBuffer(uint);
  5009. uint Seek(uint);
  5010. uint SeekRelative(int);
  5011. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5012. uint Tell() const;
  5013. uint Write(Array<uint8>);
  5014. bool WriteBool(bool);
  5015. bool WriteBoundingBox(const BoundingBox&);
  5016. bool WriteByte(int8);
  5017. bool WriteColor(const Color&);
  5018. bool WriteDouble(double);
  5019. bool WriteFileID(const String&);
  5020. bool WriteFloat(float);
  5021. bool WriteInt(int);
  5022. bool WriteInt64(int64);
  5023. bool WriteIntRect(const IntRect&);
  5024. bool WriteIntVector2(const IntVector2&);
  5025. bool WriteLine(const String&);
  5026. bool WriteMatrix3(const Matrix3&);
  5027. bool WriteMatrix3x4(const Matrix3x4&);
  5028. bool WriteMatrix4(const Matrix4&);
  5029. bool WriteNetID(uint);
  5030. bool WritePackedQuaternion(const Quaternion&);
  5031. bool WritePackedVector3(const Vector3&, float);
  5032. bool WriteQuaternion(const Quaternion&);
  5033. bool WriteShort(int16);
  5034. bool WriteString(const String&);
  5035. bool WriteStringHash(const StringHash&);
  5036. bool WriteUByte(uint8);
  5037. bool WriteUInt(uint);
  5038. bool WriteUInt64(uint64);
  5039. bool WriteUShort(uint16);
  5040. bool WriteVLE(uint);
  5041. bool WriteVariant(const Variant&);
  5042. bool WriteVariantMap(const VariantMap&);
  5043. bool WriteVector2(const Vector2&);
  5044. bool WriteVector3(const Vector3&);
  5045. bool WriteVector4(const Vector4&);
  5046. bool WriteVectorBuffer(const VectorBuffer&);
  5047. // Properties:
  5048. /* readonly */
  5049. String category;
  5050. /* readonly */
  5051. uint checksum;
  5052. /* readonly */
  5053. bool eof;
  5054. /* readonly */
  5055. FileMode mode;
  5056. /* readonly */
  5057. String name;
  5058. /* readonly */
  5059. bool open;
  5060. /* readonly */
  5061. bool packaged;
  5062. /* readonly */
  5063. uint position;
  5064. /* readonly */
  5065. int refs;
  5066. /* readonly */
  5067. uint size;
  5068. /* readonly */
  5069. StringHash type;
  5070. /* readonly */
  5071. String typeName;
  5072. /* readonly */
  5073. int weakRefs;
  5074. };
  5075. class FileSelector
  5076. {
  5077. public:
  5078. FileSelector();
  5079. // Methods:
  5080. bool HasSubscribedToEvent(Object, const String&);
  5081. bool HasSubscribedToEvent(const String&);
  5082. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5083. void SetButtonTexts(const String&, const String&);
  5084. void SetFilters(Array<String>, uint);
  5085. void UpdateElements();
  5086. // Properties:
  5087. /* readonly */
  5088. Button cancelButton;
  5089. /* readonly */
  5090. String category;
  5091. XMLFile defaultStyle;
  5092. bool directoryMode;
  5093. /* readonly */
  5094. ListView fileList;
  5095. String fileName;
  5096. /* readonly */
  5097. LineEdit fileNameEdit;
  5098. /* readonly */
  5099. String filter;
  5100. /* readonly */
  5101. uint filterIndex;
  5102. /* readonly */
  5103. DropDownList filterList;
  5104. /* readonly */
  5105. Button okButton;
  5106. String path;
  5107. /* readonly */
  5108. LineEdit pathEdit;
  5109. /* readonly */
  5110. int refs;
  5111. String title;
  5112. /* readonly */
  5113. Text titleText;
  5114. /* readonly */
  5115. StringHash type;
  5116. /* readonly */
  5117. String typeName;
  5118. /* readonly */
  5119. int weakRefs;
  5120. /* readonly */
  5121. Window window;
  5122. };
  5123. class FileSystem
  5124. {
  5125. public:
  5126. // Methods:
  5127. bool Copy(const String&, const String&);
  5128. bool CreateDir(const String&);
  5129. bool Delete(const String&);
  5130. bool DirExists(const String&) const;
  5131. bool FileExists(const String&) const;
  5132. String GetAppPreferencesDir(const String&, const String&) const;
  5133. uint GetLastModifiedTime(const String&) const;
  5134. bool HasSubscribedToEvent(Object, const String&);
  5135. bool HasSubscribedToEvent(const String&);
  5136. bool Rename(const String&, const String&);
  5137. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  5138. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5139. bool SetLastModifiedTime(const String&, uint);
  5140. int SystemCommand(const String&, bool = false);
  5141. uint SystemCommandAsync(const String&);
  5142. bool SystemOpen(const String&, const String&);
  5143. int SystemRun(const String&, Array<String>);
  5144. uint SystemRunAsync(const String&, Array<String>);
  5145. // Properties:
  5146. /* readonly */
  5147. String category;
  5148. String currentDir;
  5149. bool executeConsoleCommands;
  5150. /* readonly */
  5151. String programDir;
  5152. /* readonly */
  5153. int refs;
  5154. /* readonly */
  5155. String temporaryDir;
  5156. /* readonly */
  5157. StringHash type;
  5158. /* readonly */
  5159. String typeName;
  5160. /* readonly */
  5161. String userDocumentsDir;
  5162. /* readonly */
  5163. int weakRefs;
  5164. };
  5165. class FocusParameters
  5166. {
  5167. public:
  5168. FocusParameters();
  5169. FocusParameters(const FocusParameters&in);
  5170. FocusParameters(bool, bool, bool, float, float);
  5171. // Properties:
  5172. bool autoSize;
  5173. bool focus;
  5174. float minView;
  5175. bool nonUniform;
  5176. float quantize;
  5177. };
  5178. class Font
  5179. {
  5180. public:
  5181. Font();
  5182. Font(const String&in);
  5183. // Methods:
  5184. IntVector2 GetTotalGlyphOffset(float) const;
  5185. bool HasSubscribedToEvent(Object, const String&);
  5186. bool HasSubscribedToEvent(const String&);
  5187. bool Load(File);
  5188. bool Load(VectorBuffer&);
  5189. bool Load(const String&);
  5190. bool Save(File) const;
  5191. bool Save(VectorBuffer&) const;
  5192. bool Save(const String&) const;
  5193. bool SaveXML(File, int, bool = false, const String& = "\t");
  5194. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  5195. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  5196. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5197. // Properties:
  5198. IntVector2 absoluteGlyphOffset;
  5199. /* readonly */
  5200. String category;
  5201. /* readonly */
  5202. FontType fontType;
  5203. /* readonly */
  5204. uint memoryUse;
  5205. String name;
  5206. /* readonly */
  5207. int refs;
  5208. Vector2 scaledGlyphOffset;
  5209. /* readonly */
  5210. StringHash type;
  5211. /* readonly */
  5212. String typeName;
  5213. /* readonly */
  5214. uint useTimer;
  5215. /* readonly */
  5216. int weakRefs;
  5217. };
  5218. class Frustum
  5219. {
  5220. public:
  5221. ~Frustum();
  5222. Frustum();
  5223. Frustum(const Frustum&in);
  5224. // Methods:
  5225. void Define(const BoundingBox&, const Matrix3x4&);
  5226. void Define(const Matrix4&);
  5227. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  5228. void Define(float, float, float, float, float, const Matrix3x4&);
  5229. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  5230. void DefineSplit(const Matrix4&, float, float);
  5231. float Distance(const Vector3&) const;
  5232. Intersection IsInside(const BoundingBox&);
  5233. Intersection IsInside(const Sphere&);
  5234. Intersection IsInside(const Vector3&);
  5235. Intersection IsInsideFast(const BoundingBox&) const;
  5236. Intersection IsInsideFast(const Sphere&) const;
  5237. void Transform(const Matrix3&);
  5238. void Transform(const Matrix3x4&);
  5239. Frustum Transformed(const Matrix3&) const;
  5240. Frustum Transformed(const Matrix3x4&) const;
  5241. // Properties:
  5242. /* readonly */
  5243. Array<Vector3> vertices;
  5244. };
  5245. class Geometry
  5246. {
  5247. public:
  5248. Geometry();
  5249. // Methods:
  5250. bool HasSubscribedToEvent(Object, const String&);
  5251. bool HasSubscribedToEvent(const String&);
  5252. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5253. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  5254. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  5255. void SetIndexBuffer(IndexBuffer);
  5256. bool SetVertexBuffer(uint, VertexBuffer);
  5257. // Properties:
  5258. /* readonly */
  5259. String category;
  5260. /* readonly */
  5261. bool empty;
  5262. IndexBuffer indexBuffer;
  5263. /* readonly */
  5264. uint indexCount;
  5265. /* readonly */
  5266. uint indexStart;
  5267. float lodDistance;
  5268. uint numVertexBuffers;
  5269. /* readonly */
  5270. PrimitiveType primitiveType;
  5271. /* readonly */
  5272. int refs;
  5273. /* readonly */
  5274. StringHash type;
  5275. /* readonly */
  5276. String typeName;
  5277. /* readonly */
  5278. Array<VertexBuffer> vertexBuffers;
  5279. /* readonly */
  5280. uint vertexCount;
  5281. /* readonly */
  5282. uint vertexStart;
  5283. /* readonly */
  5284. int weakRefs;
  5285. };
  5286. class Graphics
  5287. {
  5288. public:
  5289. // Methods:
  5290. void BeginDumpShaders(const String&);
  5291. void Close();
  5292. void EndDumpShaders();
  5293. bool HasSubscribedToEvent(Object, const String&);
  5294. bool HasSubscribedToEvent(const String&);
  5295. void Maximize();
  5296. void Minimize();
  5297. void PrecacheShaders(File);
  5298. void PrecacheShaders(VectorBuffer&);
  5299. void Raise();
  5300. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5301. bool SetMode(int, int);
  5302. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  5303. void SetWindowPosition(int, int);
  5304. bool TakeScreenShot(Image);
  5305. bool ToggleFullscreen();
  5306. // Properties:
  5307. /* readonly */
  5308. String apiName;
  5309. /* readonly */
  5310. bool borderless;
  5311. /* readonly */
  5312. String category;
  5313. /* readonly */
  5314. int currentMonitor;
  5315. /* readonly */
  5316. bool deferredSupport;
  5317. /* readonly */
  5318. Array<IntVector2> desktopResolution;
  5319. /* readonly */
  5320. bool deviceLost;
  5321. /* readonly */
  5322. Array<Vector3> displayDPI;
  5323. bool dither;
  5324. bool flushGPU;
  5325. /* readonly */
  5326. bool fullscreen;
  5327. /* readonly */
  5328. bool hardwareShadowSupport;
  5329. /* readonly */
  5330. int height;
  5331. /* readonly */
  5332. bool initialized;
  5333. /* readonly */
  5334. bool instancingSupport;
  5335. /* readonly */
  5336. bool lightPrepassSupport;
  5337. /* readonly */
  5338. bool maximized;
  5339. /* readonly */
  5340. int monitorCount;
  5341. /* readonly */
  5342. int multiSample;
  5343. /* readonly */
  5344. Array<int> multiSampleLevels;
  5345. /* readonly */
  5346. uint numBatches;
  5347. /* readonly */
  5348. uint numPrimitives;
  5349. String orientations;
  5350. /* readonly */
  5351. bool readableDepthSupport;
  5352. /* readonly */
  5353. int refs;
  5354. /* readonly */
  5355. bool resizable;
  5356. /* readonly */
  5357. Array<Array<IntVector3>> resolutions;
  5358. bool sRGB;
  5359. /* readonly */
  5360. bool sRGBSupport;
  5361. /* readonly */
  5362. bool sRGBWriteSupport;
  5363. String shaderCacheDir;
  5364. /* readonly */
  5365. IntVector2 size;
  5366. /* readonly */
  5367. bool tripleBuffer;
  5368. /* readonly */
  5369. StringHash type;
  5370. /* readonly */
  5371. String typeName;
  5372. /* readonly */
  5373. bool vsync;
  5374. /* readonly */
  5375. int weakRefs;
  5376. /* readonly */
  5377. int width;
  5378. /* writeonly */
  5379. Image windowIcon;
  5380. IntVector2 windowPosition;
  5381. String windowTitle;
  5382. };
  5383. class HttpRequest
  5384. {
  5385. public:
  5386. // Methods:
  5387. Array<uint8> Read(uint);
  5388. bool ReadBool();
  5389. BoundingBox ReadBoundingBox();
  5390. int8 ReadByte();
  5391. Color ReadColor();
  5392. double ReadDouble();
  5393. String ReadFileID();
  5394. float ReadFloat();
  5395. int ReadInt();
  5396. int64 ReadInt64();
  5397. IntRect ReadIntRect();
  5398. IntVector2 ReadIntVector2();
  5399. String ReadLine();
  5400. Matrix3 ReadMatrix3();
  5401. Matrix3x4 ReadMatrix3x4();
  5402. Matrix4 ReadMatrix4();
  5403. uint ReadNetID();
  5404. Quaternion ReadPackedQuaternion();
  5405. Vector3 ReadPackedVector3(float);
  5406. Quaternion ReadQuaternion();
  5407. int16 ReadShort();
  5408. String ReadString();
  5409. StringHash ReadStringHash();
  5410. uint8 ReadUByte();
  5411. uint ReadUInt();
  5412. uint64 ReadUInt64();
  5413. uint16 ReadUShort();
  5414. uint ReadVLE();
  5415. Variant ReadVariant();
  5416. VariantMap ReadVariantMap();
  5417. Vector2 ReadVector2();
  5418. Vector3 ReadVector3();
  5419. Vector4 ReadVector4();
  5420. VectorBuffer ReadVectorBuffer(uint);
  5421. uint Seek(uint);
  5422. uint SeekRelative(int);
  5423. uint Tell() const;
  5424. // Properties:
  5425. /* readonly */
  5426. uint availableSize;
  5427. /* readonly */
  5428. uint checksum;
  5429. /* readonly */
  5430. bool eof;
  5431. /* readonly */
  5432. String error;
  5433. /* readonly */
  5434. String name;
  5435. /* readonly */
  5436. bool open;
  5437. /* readonly */
  5438. uint position;
  5439. /* readonly */
  5440. int refs;
  5441. /* readonly */
  5442. uint size;
  5443. /* readonly */
  5444. HttpRequestState state;
  5445. /* readonly */
  5446. String url;
  5447. /* readonly */
  5448. String verb;
  5449. /* readonly */
  5450. int weakRefs;
  5451. };
  5452. class IKEffector
  5453. {
  5454. public:
  5455. // Methods:
  5456. void ApplyAttributes();
  5457. void DrawDebugGeometry(DebugRenderer, bool);
  5458. void DrawDebugGeometry(bool);
  5459. Variant GetAttribute(const String&) const;
  5460. ValueAnimation GetAttributeAnimation(const String&) const;
  5461. float GetAttributeAnimationSpeed(const String&) const;
  5462. float GetAttributeAnimationTime(const String&) const;
  5463. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5464. Variant GetAttributeDefault(const String&) const;
  5465. bool GetInterceptNetworkUpdate(const String&) const;
  5466. bool HasSubscribedToEvent(Object, const String&);
  5467. bool HasSubscribedToEvent(const String&);
  5468. bool Load(File);
  5469. bool Load(VectorBuffer&);
  5470. bool LoadJSON(const JSONValue&);
  5471. bool LoadXML(const XMLElement&);
  5472. void MarkNetworkUpdate() const;
  5473. void Remove();
  5474. void RemoveAttributeAnimation(const String&);
  5475. void RemoveInstanceDefault();
  5476. void RemoveObjectAnimation();
  5477. void ResetToDefault();
  5478. bool Save(File) const;
  5479. bool Save(VectorBuffer&) const;
  5480. bool SaveJSON(JSONValue&) const;
  5481. bool SaveXML(XMLElement&) const;
  5482. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5483. void SetAnimationTime(float);
  5484. bool SetAttribute(const String&, const Variant&);
  5485. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5486. void SetAttributeAnimationSpeed(const String&, float);
  5487. void SetAttributeAnimationTime(const String&, float);
  5488. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5489. void SetInterceptNetworkUpdate(const String&, bool);
  5490. // Properties:
  5491. bool animationEnabled;
  5492. /* readonly */
  5493. Array<Variant> attributeDefaults;
  5494. /* readonly */
  5495. Array<AttributeInfo> attributeInfos;
  5496. Array<Variant> attributes;
  5497. /* readonly */
  5498. String category;
  5499. uint chainLength;
  5500. bool enabled;
  5501. /* readonly */
  5502. bool enabledEffective;
  5503. /* readonly */
  5504. uint id;
  5505. /* readonly */
  5506. Node node;
  5507. /* readonly */
  5508. uint numAttributes;
  5509. ObjectAnimation objectAnimation;
  5510. /* readonly */
  5511. int refs;
  5512. /* readonly */
  5513. bool replicated;
  5514. float rotationDecay;
  5515. float rotationWeight;
  5516. String targetName;
  5517. Node targetNode;
  5518. Vector3 targetPosition;
  5519. Quaternion targetRotation;
  5520. bool temporary;
  5521. /* readonly */
  5522. StringHash type;
  5523. /* readonly */
  5524. String typeName;
  5525. /* readonly */
  5526. int weakRefs;
  5527. float weight;
  5528. };
  5529. class IKSolver
  5530. {
  5531. public:
  5532. // Methods:
  5533. void ApplyActivePoseToScene();
  5534. void ApplyAttributes();
  5535. void ApplyOriginalPoseToActivePose();
  5536. void ApplyOriginalPoseToScene();
  5537. void ApplySceneToActivePose();
  5538. void ApplySceneToInitialPose();
  5539. void CalculateJointRotations();
  5540. void DrawDebugGeometry(DebugRenderer, bool);
  5541. void DrawDebugGeometry(bool);
  5542. Variant GetAttribute(const String&) const;
  5543. ValueAnimation GetAttributeAnimation(const String&) const;
  5544. float GetAttributeAnimationSpeed(const String&) const;
  5545. float GetAttributeAnimationTime(const String&) const;
  5546. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5547. Variant GetAttributeDefault(const String&) const;
  5548. bool GetInterceptNetworkUpdate(const String&) const;
  5549. bool HasSubscribedToEvent(Object, const String&);
  5550. bool HasSubscribedToEvent(const String&);
  5551. bool Load(File);
  5552. bool Load(VectorBuffer&);
  5553. bool LoadJSON(const JSONValue&);
  5554. bool LoadXML(const XMLElement&);
  5555. void MarkNetworkUpdate() const;
  5556. void RebuildChainTrees();
  5557. void RecalculateSegmentLengths();
  5558. void Remove();
  5559. void RemoveAttributeAnimation(const String&);
  5560. void RemoveInstanceDefault();
  5561. void RemoveObjectAnimation();
  5562. void ResetToDefault();
  5563. bool Save(File) const;
  5564. bool Save(VectorBuffer&) const;
  5565. bool SaveJSON(JSONValue&) const;
  5566. bool SaveXML(XMLElement&) const;
  5567. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5568. void SetAnimationTime(float);
  5569. bool SetAttribute(const String&, const Variant&);
  5570. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5571. void SetAttributeAnimationSpeed(const String&, float);
  5572. void SetAttributeAnimationTime(const String&, float);
  5573. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5574. void SetInterceptNetworkUpdate(const String&, bool);
  5575. void Solve();
  5576. // Properties:
  5577. bool AUTO_SOLVE;
  5578. bool CONSTRAINTS;
  5579. bool JOINT_ROTATIONS;
  5580. bool TARGET_ROTATIONS;
  5581. bool UPDATE_ACTIVE_POSE;
  5582. bool UPDATE_ORIGINAL_POSE;
  5583. bool USE_ORIGINAL_POSE;
  5584. IKAlgorithm algorithm;
  5585. bool animationEnabled;
  5586. /* readonly */
  5587. Array<Variant> attributeDefaults;
  5588. /* readonly */
  5589. Array<AttributeInfo> attributeInfos;
  5590. Array<Variant> attributes;
  5591. /* readonly */
  5592. String category;
  5593. bool enabled;
  5594. /* readonly */
  5595. bool enabledEffective;
  5596. /* readonly */
  5597. uint id;
  5598. uint maximumIterations;
  5599. /* readonly */
  5600. Node node;
  5601. /* readonly */
  5602. uint numAttributes;
  5603. ObjectAnimation objectAnimation;
  5604. /* readonly */
  5605. int refs;
  5606. /* readonly */
  5607. bool replicated;
  5608. bool temporary;
  5609. float tolerance;
  5610. /* readonly */
  5611. StringHash type;
  5612. /* readonly */
  5613. String typeName;
  5614. /* readonly */
  5615. int weakRefs;
  5616. };
  5617. class Image
  5618. {
  5619. public:
  5620. Image();
  5621. Image(const String&in);
  5622. // Methods:
  5623. void Clear(const Color&);
  5624. void ClearInt(uint);
  5625. bool FlipHorizontal();
  5626. bool FlipVertical();
  5627. Color GetPixel(int, int) const;
  5628. Color GetPixel(int, int, int) const;
  5629. Color GetPixelBilinear(float, float) const;
  5630. uint GetPixelInt(int, int) const;
  5631. uint GetPixelInt(int, int, int) const;
  5632. Color GetPixelTrilinear(float, float, float) const;
  5633. Image GetSubimage(const IntRect&) const;
  5634. bool HasSubscribedToEvent(Object, const String&);
  5635. bool HasSubscribedToEvent(const String&);
  5636. bool Load(File);
  5637. bool Load(VectorBuffer&);
  5638. bool Load(const String&);
  5639. bool LoadColorLUT(File);
  5640. bool LoadColorLUT(VectorBuffer&);
  5641. bool Resize(int, int);
  5642. bool Save(File) const;
  5643. bool Save(VectorBuffer&) const;
  5644. bool Save(const String&) const;
  5645. bool SaveBMP(const String&) const;
  5646. bool SaveDDS(const String&) const;
  5647. bool SaveJPG(const String&, int) const;
  5648. bool SavePNG(const String&) const;
  5649. bool SaveTGA(const String&) const;
  5650. bool SaveWEBP(const String&, float = 0.0f) const;
  5651. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5652. void SetPixel(int, int, const Color&);
  5653. void SetPixel(int, int, int, const Color&);
  5654. void SetPixelInt(int, int, int, uint);
  5655. void SetPixelInt(int, int, uint);
  5656. bool SetSize(int, int, int, uint);
  5657. bool SetSize(int, int, uint);
  5658. bool SetSubimage(const Image, const IntRect&) const;
  5659. // Properties:
  5660. /* readonly */
  5661. bool array;
  5662. /* readonly */
  5663. String category;
  5664. /* readonly */
  5665. uint components;
  5666. /* readonly */
  5667. bool compressed;
  5668. /* readonly */
  5669. CompressedFormat compressedFormat;
  5670. /* readonly */
  5671. bool cubemap;
  5672. /* readonly */
  5673. int depth;
  5674. /* readonly */
  5675. bool hasAlphaChannel;
  5676. /* readonly */
  5677. int height;
  5678. /* readonly */
  5679. uint memoryUse;
  5680. String name;
  5681. /* readonly */
  5682. uint numCompressedLevels;
  5683. /* readonly */
  5684. int refs;
  5685. /* readonly */
  5686. bool sRGB;
  5687. /* readonly */
  5688. StringHash type;
  5689. /* readonly */
  5690. String typeName;
  5691. /* readonly */
  5692. uint useTimer;
  5693. /* readonly */
  5694. int weakRefs;
  5695. /* readonly */
  5696. int width;
  5697. };
  5698. class IndexBuffer
  5699. {
  5700. public:
  5701. IndexBuffer();
  5702. // Methods:
  5703. VectorBuffer GetData();
  5704. bool HasSubscribedToEvent(Object, const String&);
  5705. bool HasSubscribedToEvent(const String&);
  5706. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5707. bool SetData(VectorBuffer&);
  5708. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5709. void SetSize(uint, bool, bool = false);
  5710. // Properties:
  5711. /* readonly */
  5712. String category;
  5713. /* readonly */
  5714. bool dynamic;
  5715. /* readonly */
  5716. uint indexCount;
  5717. /* readonly */
  5718. uint indexSize;
  5719. /* readonly */
  5720. int refs;
  5721. bool shadowed;
  5722. /* readonly */
  5723. StringHash type;
  5724. /* readonly */
  5725. String typeName;
  5726. /* readonly */
  5727. int weakRefs;
  5728. };
  5729. class Input
  5730. {
  5731. public:
  5732. // Methods:
  5733. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5734. void CenterMousePosition();
  5735. int GetKeyFromName(const String&) const;
  5736. int GetKeyFromScancode(int) const;
  5737. String GetKeyName(int) const;
  5738. int GetScancodeFromKey(int) const;
  5739. int GetScancodeFromName(const String&) const;
  5740. String GetScancodeName(int) const;
  5741. bool HasSubscribedToEvent(Object, const String&);
  5742. bool HasSubscribedToEvent(const String&);
  5743. uint LoadGestures(File);
  5744. uint LoadGestures(VectorBuffer&);
  5745. bool RecordGesture();
  5746. void RemoveAllGestures();
  5747. bool RemoveGesture(uint);
  5748. bool RemoveScreenJoystick(int);
  5749. void ResetMouseGrabbed();
  5750. void ResetMouseMode();
  5751. void ResetMouseVisible();
  5752. bool SaveGesture(File, uint);
  5753. bool SaveGesture(VectorBuffer&, uint);
  5754. bool SaveGestures(File);
  5755. bool SaveGestures(VectorBuffer&);
  5756. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5757. void SetMouseGrabbed(bool, bool = false);
  5758. void SetMouseMode(MouseMode, bool = false);
  5759. void SetMouseVisible(bool, bool = false);
  5760. // Properties:
  5761. /* readonly */
  5762. String category;
  5763. /* readonly */
  5764. bool focus;
  5765. /* readonly */
  5766. Vector2 inputScale;
  5767. /* readonly */
  5768. Array<JoystickState> joysticks;
  5769. /* readonly */
  5770. Array<JoystickState> joysticksByIndex;
  5771. /* readonly */
  5772. Array<JoystickState> joysticksByName;
  5773. /* readonly */
  5774. Array<bool> keyDown;
  5775. /* readonly */
  5776. Array<bool> keyPress;
  5777. /* readonly */
  5778. bool minimized;
  5779. /* readonly */
  5780. Array<bool> mouseButtonDown;
  5781. /* readonly */
  5782. Array<bool> mouseButtonPress;
  5783. bool mouseGrabbed;
  5784. /* readonly */
  5785. bool mouseLocked;
  5786. MouseMode mouseMode;
  5787. /* readonly */
  5788. IntVector2 mouseMove;
  5789. /* readonly */
  5790. int mouseMoveWheel;
  5791. /* readonly */
  5792. int mouseMoveX;
  5793. /* readonly */
  5794. int mouseMoveY;
  5795. IntVector2 mousePosition;
  5796. bool mouseVisible;
  5797. /* readonly */
  5798. uint numJoysticks;
  5799. /* readonly */
  5800. uint numTouches;
  5801. /* readonly */
  5802. Array<bool> qualifierDown;
  5803. /* readonly */
  5804. Array<bool> qualifierPress;
  5805. /* readonly */
  5806. int qualifiers;
  5807. /* readonly */
  5808. int refs;
  5809. /* readonly */
  5810. Array<bool> scancodeDown;
  5811. /* readonly */
  5812. Array<bool> scancodePress;
  5813. Array<bool> screenJoystickVisible;
  5814. /* readonly */
  5815. bool screenKeyboardSupport;
  5816. bool screenKeyboardVisible;
  5817. bool toggleFullscreen;
  5818. bool touchEmulation;
  5819. /* readonly */
  5820. Array<TouchState> touches;
  5821. /* readonly */
  5822. StringHash type;
  5823. /* readonly */
  5824. String typeName;
  5825. /* readonly */
  5826. int weakRefs;
  5827. };
  5828. class IntRect
  5829. {
  5830. public:
  5831. IntRect();
  5832. IntRect(const IntRect&in);
  5833. IntRect(int, int, int, int);
  5834. IntRect(const IntVector2&in, const IntVector2&in);
  5835. IntRect(int[]&inout);
  5836. // Methods:
  5837. int Clip(const IntRect&);
  5838. Intersection IsInside(const IntVector2&) const;
  5839. int Merge(const IntRect&);
  5840. // Properties:
  5841. int bottom;
  5842. /* readonly */
  5843. Array<int> data;
  5844. /* readonly */
  5845. int height;
  5846. int left;
  5847. int right;
  5848. /* readonly */
  5849. IntVector2 size;
  5850. int top;
  5851. /* readonly */
  5852. int width;
  5853. };
  5854. class IntVector2
  5855. {
  5856. public:
  5857. IntVector2();
  5858. IntVector2(const IntVector2&in);
  5859. IntVector2(int, int);
  5860. IntVector2(int[]&inout);
  5861. // Methods:
  5862. float Length() const;
  5863. uint ToHash() const;
  5864. String ToString() const;
  5865. // Properties:
  5866. /* readonly */
  5867. Array<int> data;
  5868. int x;
  5869. int y;
  5870. // Constants:
  5871. static const IntVector2 DOWN;
  5872. static const IntVector2 LEFT;
  5873. static const IntVector2 ONE;
  5874. static const IntVector2 RIGHT;
  5875. static const IntVector2 UP;
  5876. static const IntVector2 ZERO;
  5877. };
  5878. class IntVector3
  5879. {
  5880. public:
  5881. IntVector3();
  5882. IntVector3(const IntVector3&in);
  5883. IntVector3(int, int, int);
  5884. IntVector3(int[]&inout);
  5885. // Methods:
  5886. float Length() const;
  5887. uint ToHash() const;
  5888. String ToString() const;
  5889. // Properties:
  5890. /* readonly */
  5891. Array<int> data;
  5892. int x;
  5893. int y;
  5894. int z;
  5895. // Constants:
  5896. static const IntVector3 BACK;
  5897. static const IntVector3 DOWN;
  5898. static const IntVector3 FORWARD;
  5899. static const IntVector3 LEFT;
  5900. static const IntVector3 ONE;
  5901. static const IntVector3 RIGHT;
  5902. static const IntVector3 UP;
  5903. static const IntVector3 ZERO;
  5904. };
  5905. class JSONFile
  5906. {
  5907. public:
  5908. JSONFile();
  5909. JSONFile(const String&in);
  5910. // Methods:
  5911. bool FromString(const String&);
  5912. JSONValue& GetRoot();
  5913. bool HasSubscribedToEvent(Object, const String&);
  5914. bool HasSubscribedToEvent(const String&);
  5915. bool Load(File);
  5916. bool Load(VectorBuffer&);
  5917. bool Load(const String&);
  5918. bool Save(File) const;
  5919. bool Save(File, const String&) const;
  5920. bool Save(VectorBuffer&) const;
  5921. bool Save(const String&) const;
  5922. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5923. // Properties:
  5924. /* readonly */
  5925. String category;
  5926. /* readonly */
  5927. uint memoryUse;
  5928. String name;
  5929. /* readonly */
  5930. int refs;
  5931. /* readonly */
  5932. JSONValue root;
  5933. /* readonly */
  5934. StringHash type;
  5935. /* readonly */
  5936. String typeName;
  5937. /* readonly */
  5938. uint useTimer;
  5939. /* readonly */
  5940. int weakRefs;
  5941. };
  5942. class JSONValue
  5943. {
  5944. public:
  5945. ~JSONValue();
  5946. JSONValue();
  5947. JSONValue(bool);
  5948. JSONValue(int);
  5949. JSONValue(uint);
  5950. JSONValue(float);
  5951. JSONValue(double);
  5952. JSONValue(const String&in);
  5953. JSONValue(const JSONValue&in);
  5954. // Methods:
  5955. void Clear();
  5956. bool Contains(const String&) const;
  5957. void Erase(const String&);
  5958. void Erase(uint, uint = 1);
  5959. bool GetBool() const;
  5960. double GetDouble() const;
  5961. float GetFloat() const;
  5962. int GetInt() const;
  5963. uint GetUInt() const;
  5964. Variant GetVariant() const;
  5965. VariantMap GetVariantMap() const;
  5966. void Insert(uint, const JSONValue&);
  5967. const JSONValue& Get(const String&) const;
  5968. void Pop();
  5969. void Push(const JSONValue&);
  5970. void Resize(uint);
  5971. void Set(const String&, const JSONValue&);
  5972. void SetVariant(const Variant&);
  5973. void SetVariantMap(const VariantMap&);
  5974. const String& GetString() const;
  5975. // Properties:
  5976. /* readonly */
  5977. bool isArray;
  5978. /* readonly */
  5979. bool isBool;
  5980. /* readonly */
  5981. bool isNull;
  5982. /* readonly */
  5983. bool isNumber;
  5984. /* readonly */
  5985. bool isObject;
  5986. /* readonly */
  5987. bool isString;
  5988. /* readonly */
  5989. Array<String> keys;
  5990. /* readonly */
  5991. JSONNumberType numberType;
  5992. /* readonly */
  5993. String numberTypeName;
  5994. /* readonly */
  5995. uint size;
  5996. /* readonly */
  5997. JSONValueType valueType;
  5998. /* readonly */
  5999. String valueTypeName;
  6000. /* readonly */
  6001. Array<JSONValue> values;
  6002. };
  6003. class JoystickState
  6004. {
  6005. public:
  6006. // Properties:
  6007. /* readonly */
  6008. Array<float> axisPosition;
  6009. /* readonly */
  6010. Array<bool> buttonDown;
  6011. /* readonly */
  6012. Array<bool> buttonPress;
  6013. /* readonly */
  6014. bool controller;
  6015. /* readonly */
  6016. Array<int> hatPosition;
  6017. int joystickID;
  6018. String name;
  6019. /* readonly */
  6020. uint numAxes;
  6021. /* readonly */
  6022. uint numButtons;
  6023. /* readonly */
  6024. uint numHats;
  6025. };
  6026. class Light
  6027. {
  6028. public:
  6029. // Methods:
  6030. void ApplyAttributes();
  6031. void DrawDebugGeometry(DebugRenderer, bool);
  6032. Variant GetAttribute(const String&) const;
  6033. ValueAnimation GetAttributeAnimation(const String&) const;
  6034. float GetAttributeAnimationSpeed(const String&) const;
  6035. float GetAttributeAnimationTime(const String&) const;
  6036. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6037. Variant GetAttributeDefault(const String&) const;
  6038. bool GetInterceptNetworkUpdate(const String&) const;
  6039. bool HasSubscribedToEvent(Object, const String&);
  6040. bool HasSubscribedToEvent(const String&);
  6041. bool IsInView(Camera) const;
  6042. bool Load(File);
  6043. bool Load(VectorBuffer&);
  6044. bool LoadJSON(const JSONValue&);
  6045. bool LoadXML(const XMLElement&);
  6046. void MarkNetworkUpdate() const;
  6047. void Remove();
  6048. void RemoveAttributeAnimation(const String&);
  6049. void RemoveInstanceDefault();
  6050. void RemoveObjectAnimation();
  6051. void ResetToDefault();
  6052. bool Save(File) const;
  6053. bool Save(VectorBuffer&) const;
  6054. bool SaveJSON(JSONValue&) const;
  6055. bool SaveXML(XMLElement&) const;
  6056. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6057. void SetAnimationTime(float);
  6058. bool SetAttribute(const String&, const Variant&);
  6059. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6060. void SetAttributeAnimationSpeed(const String&, float);
  6061. void SetAttributeAnimationTime(const String&, float);
  6062. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6063. void SetInterceptNetworkUpdate(const String&, bool);
  6064. // Properties:
  6065. bool animationEnabled;
  6066. float aspectRatio;
  6067. /* readonly */
  6068. Array<Variant> attributeDefaults;
  6069. /* readonly */
  6070. Array<AttributeInfo> attributeInfos;
  6071. Array<Variant> attributes;
  6072. /* readonly */
  6073. BoundingBox boundingBox;
  6074. float brightness;
  6075. bool castShadows;
  6076. /* readonly */
  6077. String category;
  6078. Color color;
  6079. /* readonly */
  6080. Color colorFromTemperature;
  6081. float drawDistance;
  6082. /* readonly */
  6083. Color effectiveColor;
  6084. /* readonly */
  6085. float effectiveSpecularIntensity;
  6086. bool enabled;
  6087. /* readonly */
  6088. bool enabledEffective;
  6089. float fadeDistance;
  6090. float fov;
  6091. /* readonly */
  6092. Frustum frustum;
  6093. /* readonly */
  6094. uint id;
  6095. /* readonly */
  6096. bool inView;
  6097. float length;
  6098. uint lightMask;
  6099. LightType lightType;
  6100. float lodBias;
  6101. uint maxLights;
  6102. /* readonly */
  6103. bool negative;
  6104. /* readonly */
  6105. Node node;
  6106. /* readonly */
  6107. uint numAttributes;
  6108. /* readonly */
  6109. int numShadowSplits;
  6110. ObjectAnimation objectAnimation;
  6111. bool occludee;
  6112. bool occluder;
  6113. bool perVertex;
  6114. float radius;
  6115. Texture rampTexture;
  6116. float range;
  6117. /* readonly */
  6118. int refs;
  6119. /* readonly */
  6120. bool replicated;
  6121. BiasParameters shadowBias;
  6122. CascadeParameters shadowCascade;
  6123. float shadowDistance;
  6124. float shadowFadeDistance;
  6125. FocusParameters shadowFocus;
  6126. float shadowIntensity;
  6127. uint shadowMask;
  6128. float shadowMaxExtrusion;
  6129. float shadowNearFarRatio;
  6130. float shadowResolution;
  6131. Texture shapeTexture;
  6132. float specularIntensity;
  6133. float temperature;
  6134. bool temporary;
  6135. /* readonly */
  6136. StringHash type;
  6137. /* readonly */
  6138. String typeName;
  6139. bool usePhysicalValues;
  6140. uint viewMask;
  6141. /* readonly */
  6142. int weakRefs;
  6143. /* readonly */
  6144. BoundingBox worldBoundingBox;
  6145. uint zoneMask;
  6146. };
  6147. class LineEdit
  6148. {
  6149. public:
  6150. LineEdit();
  6151. LineEdit(const String&in);
  6152. // Methods:
  6153. void AddChild(UIElement);
  6154. void AddTag(const String&);
  6155. void AddTags(const String&, int8 = ';');
  6156. void ApplyAttributes();
  6157. void BringToFront();
  6158. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6159. void DisableLayoutUpdate();
  6160. IntVector2 ElementToScreen(const IntVector2&);
  6161. void EnableLayoutUpdate();
  6162. uint FindChild(UIElement) const;
  6163. Variant GetAttribute(const String&) const;
  6164. ValueAnimation GetAttributeAnimation(const String&) const;
  6165. float GetAttributeAnimationSpeed(const String&) const;
  6166. float GetAttributeAnimationTime(const String&) const;
  6167. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6168. Variant GetAttributeDefault(const String&) const;
  6169. UIElement GetChild(const String&, bool = false) const;
  6170. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6171. Array<UIElement> GetChildren(bool = false) const;
  6172. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6173. UIElement GetElementEventSender() const;
  6174. bool GetInterceptNetworkUpdate(const String&) const;
  6175. uint GetNumChildren(bool) const;
  6176. bool HasSubscribedToEvent(Object, const String&);
  6177. bool HasSubscribedToEvent(const String&);
  6178. bool HasTag(const String&) const;
  6179. void InsertChild(uint, UIElement);
  6180. bool IsChildOf(UIElement) const;
  6181. bool IsInside(IntVector2, bool);
  6182. bool IsInsideCombined(IntVector2, bool);
  6183. bool Load(File);
  6184. bool Load(VectorBuffer&);
  6185. UIElement LoadChildXML(XMLFile, XMLFile);
  6186. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6187. bool LoadJSON(const JSONValue&);
  6188. bool LoadXML(File);
  6189. bool LoadXML(VectorBuffer&);
  6190. bool LoadXML(XMLFile, XMLFile);
  6191. bool LoadXML(const XMLElement&, XMLFile);
  6192. bool LoadXML(const XMLElement&);
  6193. void MarkNetworkUpdate() const;
  6194. void Remove();
  6195. void RemoveAllChildren();
  6196. void RemoveAllTags();
  6197. void RemoveAttributeAnimation(const String&);
  6198. void RemoveChild(UIElement, uint = 0);
  6199. void RemoveChild(uint);
  6200. void RemoveInstanceDefault();
  6201. void RemoveObjectAnimation();
  6202. bool RemoveTag(const String&);
  6203. void ResetDeepEnabled();
  6204. void ResetToDefault();
  6205. bool Save(File) const;
  6206. bool Save(VectorBuffer&) const;
  6207. bool SaveJSON(JSONValue&) const;
  6208. bool SaveXML(File, const String& = "\t");
  6209. bool SaveXML(VectorBuffer&, const String& = "\t");
  6210. bool SaveXML(XMLElement&) const;
  6211. IntVector2 ScreenToElement(const IntVector2&);
  6212. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6213. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6214. void SetAnimationTime(float);
  6215. bool SetAttribute(const String&, const Variant&);
  6216. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6217. void SetAttributeAnimationSpeed(const String&, float);
  6218. void SetAttributeAnimationTime(const String&, float);
  6219. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6220. void SetDeepEnabled(bool);
  6221. void SetEnabledRecursive(bool);
  6222. void SetFixedHeight(int);
  6223. void SetFixedSize(int, int);
  6224. void SetFixedWidth(int);
  6225. void SetFullImageRect();
  6226. void SetHoverOffset(int, int);
  6227. void SetInterceptNetworkUpdate(const String&, bool);
  6228. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6229. void SetMaxAnchor(float, float);
  6230. void SetMaxSize(int, int);
  6231. void SetMinAnchor(float, float);
  6232. void SetMinSize(int, int);
  6233. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6234. void SetPivot(float, float);
  6235. void SetPosition(int, int);
  6236. void SetSize(int, int);
  6237. bool SetStyle(const String&, XMLFile = null);
  6238. bool SetStyle(const XMLElement&);
  6239. bool SetStyleAuto(XMLFile = null);
  6240. void UpdateLayout();
  6241. const Variant& GetVar(const StringHash&);
  6242. // Properties:
  6243. bool animationEnabled;
  6244. /* readonly */
  6245. Array<Variant> attributeDefaults;
  6246. /* readonly */
  6247. Array<AttributeInfo> attributeInfos;
  6248. Array<Variant> attributes;
  6249. BlendMode blendMode;
  6250. IntRect border;
  6251. bool bringToBack;
  6252. bool bringToFront;
  6253. /* readonly */
  6254. String category;
  6255. /* readonly */
  6256. IntVector2 childOffset;
  6257. /* readonly */
  6258. Array<UIElement> children;
  6259. IntRect clipBorder;
  6260. bool clipChildren;
  6261. /* writeonly */
  6262. Color color;
  6263. /* readonly */
  6264. bool colorGradient;
  6265. Array<Color> colors;
  6266. /* readonly */
  6267. IntRect combinedScreenRect;
  6268. /* readonly */
  6269. BorderImage cursor;
  6270. float cursorBlinkRate;
  6271. bool cursorMovable;
  6272. uint cursorPosition;
  6273. XMLFile defaultStyle;
  6274. /* readonly */
  6275. float derivedOpacity;
  6276. /* readonly */
  6277. uint dragButtonCombo;
  6278. /* readonly */
  6279. int dragButtonCount;
  6280. uint dragDropMode;
  6281. uint echoCharacter;
  6282. bool editable;
  6283. bool elementEventSender;
  6284. bool enableAnchor;
  6285. bool enabled;
  6286. /* readonly */
  6287. bool enabledSelf;
  6288. /* readonly */
  6289. bool fixedHeight;
  6290. /* readonly */
  6291. bool fixedSize;
  6292. /* readonly */
  6293. bool fixedWidth;
  6294. bool focus;
  6295. FocusMode focusMode;
  6296. int height;
  6297. HorizontalAlignment horizontalAlignment;
  6298. IntVector2 hoverOffset;
  6299. /* readonly */
  6300. bool hovering;
  6301. IntRect imageBorder;
  6302. IntRect imageRect;
  6303. int indent;
  6304. int indentSpacing;
  6305. /* readonly */
  6306. int indentWidth;
  6307. bool internal;
  6308. IntRect layoutBorder;
  6309. Vector2 layoutFlexScale;
  6310. LayoutMode layoutMode;
  6311. int layoutSpacing;
  6312. Vector2 maxAnchor;
  6313. int maxHeight;
  6314. uint maxLength;
  6315. IntVector2 maxOffset;
  6316. IntVector2 maxSize;
  6317. int maxWidth;
  6318. Vector2 minAnchor;
  6319. int minHeight;
  6320. IntVector2 minOffset;
  6321. IntVector2 minSize;
  6322. int minWidth;
  6323. String name;
  6324. /* readonly */
  6325. uint numAllChildren;
  6326. /* readonly */
  6327. uint numAttributes;
  6328. /* readonly */
  6329. uint numChildren;
  6330. ObjectAnimation objectAnimation;
  6331. float opacity;
  6332. UIElement parent;
  6333. Vector2 pivot;
  6334. IntVector2 position;
  6335. int priority;
  6336. /* readonly */
  6337. int refs;
  6338. /* readonly */
  6339. UIElement root;
  6340. /* readonly */
  6341. IntVector2 screenPosition;
  6342. bool selected;
  6343. IntVector2 size;
  6344. bool sortChildren;
  6345. String style;
  6346. /* readonly */
  6347. Array<String> tags;
  6348. bool temporary;
  6349. String text;
  6350. bool textCopyable;
  6351. /* readonly */
  6352. Text textElement;
  6353. bool textSelectable;
  6354. Texture texture;
  6355. bool tiled;
  6356. TraversalMode traversalMode;
  6357. /* readonly */
  6358. StringHash type;
  6359. /* readonly */
  6360. String typeName;
  6361. bool useDerivedOpacity;
  6362. /* readonly */
  6363. VariantMap vars;
  6364. VerticalAlignment verticalAlignment;
  6365. bool visible;
  6366. /* readonly */
  6367. bool visibleEffective;
  6368. /* readonly */
  6369. int weakRefs;
  6370. int width;
  6371. };
  6372. class ListView
  6373. {
  6374. public:
  6375. ListView();
  6376. ListView(const String&in);
  6377. // Methods:
  6378. void AddChild(UIElement);
  6379. void AddItem(UIElement);
  6380. void AddSelection(uint);
  6381. void AddTag(const String&);
  6382. void AddTags(const String&, int8 = ';');
  6383. void ApplyAttributes();
  6384. void BringToFront();
  6385. void ChangeSelection(int, bool);
  6386. void ClearSelection();
  6387. void CopySelectedItemsToClipboard();
  6388. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6389. void DisableInternalLayoutUpdate();
  6390. void DisableLayoutUpdate();
  6391. IntVector2 ElementToScreen(const IntVector2&);
  6392. void EnableInternalLayoutUpdate();
  6393. void EnableLayoutUpdate();
  6394. void Expand(uint, bool, bool = false);
  6395. uint FindChild(UIElement) const;
  6396. uint FindItem(UIElement);
  6397. Variant GetAttribute(const String&) const;
  6398. ValueAnimation GetAttributeAnimation(const String&) const;
  6399. float GetAttributeAnimationSpeed(const String&) const;
  6400. float GetAttributeAnimationTime(const String&) const;
  6401. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6402. Variant GetAttributeDefault(const String&) const;
  6403. UIElement GetChild(const String&, bool = false) const;
  6404. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6405. Array<UIElement> GetChildren(bool = false) const;
  6406. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6407. UIElement GetElementEventSender() const;
  6408. bool GetInterceptNetworkUpdate(const String&) const;
  6409. Array<UIElement> GetItems() const;
  6410. uint GetNumChildren(bool) const;
  6411. bool HasSubscribedToEvent(Object, const String&);
  6412. bool HasSubscribedToEvent(const String&);
  6413. bool HasTag(const String&) const;
  6414. void InsertChild(uint, UIElement);
  6415. void InsertItem(uint, UIElement, UIElement = null);
  6416. bool IsChildOf(UIElement) const;
  6417. bool IsExpanded(uint) const;
  6418. bool IsInside(IntVector2, bool);
  6419. bool IsInsideCombined(IntVector2, bool);
  6420. bool IsSelected(uint) const;
  6421. bool Load(File);
  6422. bool Load(VectorBuffer&);
  6423. UIElement LoadChildXML(XMLFile, XMLFile);
  6424. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6425. bool LoadJSON(const JSONValue&);
  6426. bool LoadXML(File);
  6427. bool LoadXML(VectorBuffer&);
  6428. bool LoadXML(XMLFile, XMLFile);
  6429. bool LoadXML(const XMLElement&, XMLFile);
  6430. bool LoadXML(const XMLElement&);
  6431. void MarkNetworkUpdate() const;
  6432. void Remove();
  6433. void RemoveAllChildren();
  6434. void RemoveAllItems();
  6435. void RemoveAllTags();
  6436. void RemoveAttributeAnimation(const String&);
  6437. void RemoveChild(UIElement, uint = 0);
  6438. void RemoveChild(uint);
  6439. void RemoveInstanceDefault();
  6440. void RemoveItem(UIElement, uint = 0);
  6441. void RemoveItem(uint);
  6442. void RemoveObjectAnimation();
  6443. void RemoveSelection(uint);
  6444. bool RemoveTag(const String&);
  6445. void ResetDeepEnabled();
  6446. void ResetToDefault();
  6447. bool Save(File) const;
  6448. bool Save(VectorBuffer&) const;
  6449. bool SaveJSON(JSONValue&) const;
  6450. bool SaveXML(File, const String& = "\t");
  6451. bool SaveXML(VectorBuffer&, const String& = "\t");
  6452. bool SaveXML(XMLElement&) const;
  6453. IntVector2 ScreenToElement(const IntVector2&);
  6454. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6455. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6456. void SetAnimationTime(float);
  6457. bool SetAttribute(const String&, const Variant&);
  6458. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6459. void SetAttributeAnimationSpeed(const String&, float);
  6460. void SetAttributeAnimationTime(const String&, float);
  6461. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6462. void SetDeepEnabled(bool);
  6463. void SetEnabledRecursive(bool);
  6464. void SetFixedHeight(int);
  6465. void SetFixedSize(int, int);
  6466. void SetFixedWidth(int);
  6467. void SetInterceptNetworkUpdate(const String&, bool);
  6468. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6469. void SetMaxAnchor(float, float);
  6470. void SetMaxSize(int, int);
  6471. void SetMinAnchor(float, float);
  6472. void SetMinSize(int, int);
  6473. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6474. void SetPivot(float, float);
  6475. void SetPosition(int, int);
  6476. void SetScrollBarsVisible(bool, bool);
  6477. void SetSelections(Array<uint>);
  6478. void SetSize(int, int);
  6479. bool SetStyle(const String&, XMLFile = null);
  6480. bool SetStyle(const XMLElement&);
  6481. bool SetStyleAuto(XMLFile = null);
  6482. void SetViewPosition(int, int);
  6483. void ToggleExpand(uint, bool = false);
  6484. void ToggleSelection(uint);
  6485. void UpdateInternalLayout();
  6486. void UpdateLayout();
  6487. const Variant& GetVar(const StringHash&);
  6488. // Properties:
  6489. bool animationEnabled;
  6490. /* readonly */
  6491. Array<Variant> attributeDefaults;
  6492. /* readonly */
  6493. Array<AttributeInfo> attributeInfos;
  6494. Array<Variant> attributes;
  6495. bool autoDisableChildren;
  6496. float autoDisableThreshold;
  6497. int baseIndent;
  6498. bool bringToBack;
  6499. bool bringToFront;
  6500. /* readonly */
  6501. String category;
  6502. /* readonly */
  6503. IntVector2 childOffset;
  6504. /* readonly */
  6505. Array<UIElement> children;
  6506. bool clearSelectionOnDefocus;
  6507. IntRect clipBorder;
  6508. bool clipChildren;
  6509. /* writeonly */
  6510. Color color;
  6511. /* readonly */
  6512. bool colorGradient;
  6513. Array<Color> colors;
  6514. /* readonly */
  6515. IntRect combinedScreenRect;
  6516. /* readonly */
  6517. UIElement contentElement;
  6518. XMLFile defaultStyle;
  6519. /* readonly */
  6520. float derivedOpacity;
  6521. /* readonly */
  6522. uint dragButtonCombo;
  6523. /* readonly */
  6524. int dragButtonCount;
  6525. uint dragDropMode;
  6526. bool editable;
  6527. bool elementEventSender;
  6528. bool enableAnchor;
  6529. bool enabled;
  6530. /* readonly */
  6531. bool enabledSelf;
  6532. /* readonly */
  6533. bool fixedHeight;
  6534. /* readonly */
  6535. bool fixedSize;
  6536. /* readonly */
  6537. bool fixedWidth;
  6538. bool focus;
  6539. FocusMode focusMode;
  6540. int height;
  6541. bool hierarchyMode;
  6542. HighlightMode highlightMode;
  6543. HorizontalAlignment horizontalAlignment;
  6544. /* readonly */
  6545. ScrollBar horizontalScrollBar;
  6546. /* readonly */
  6547. bool hovering;
  6548. int indent;
  6549. int indentSpacing;
  6550. /* readonly */
  6551. int indentWidth;
  6552. bool internal;
  6553. /* readonly */
  6554. Array<UIElement> items;
  6555. IntRect layoutBorder;
  6556. Vector2 layoutFlexScale;
  6557. LayoutMode layoutMode;
  6558. int layoutSpacing;
  6559. Vector2 maxAnchor;
  6560. int maxHeight;
  6561. IntVector2 maxOffset;
  6562. IntVector2 maxSize;
  6563. int maxWidth;
  6564. Vector2 minAnchor;
  6565. int minHeight;
  6566. IntVector2 minOffset;
  6567. IntVector2 minSize;
  6568. int minWidth;
  6569. bool multiselect;
  6570. String name;
  6571. /* readonly */
  6572. uint numAllChildren;
  6573. /* readonly */
  6574. uint numAttributes;
  6575. /* readonly */
  6576. uint numChildren;
  6577. /* readonly */
  6578. uint numItems;
  6579. ObjectAnimation objectAnimation;
  6580. float opacity;
  6581. float pageStep;
  6582. UIElement parent;
  6583. Vector2 pivot;
  6584. IntVector2 position;
  6585. int priority;
  6586. /* readonly */
  6587. int refs;
  6588. /* readonly */
  6589. UIElement root;
  6590. /* readonly */
  6591. IntVector2 screenPosition;
  6592. bool scrollBarsAutoVisible;
  6593. float scrollDeceleration;
  6594. /* readonly */
  6595. BorderImage scrollPanel;
  6596. float scrollSnapEpsilon;
  6597. float scrollStep;
  6598. bool selectOnClickEnd;
  6599. bool selected;
  6600. /* readonly */
  6601. UIElement selectedItem;
  6602. /* readonly */
  6603. Array<UIElement> selectedItems;
  6604. uint selection;
  6605. /* readonly */
  6606. Array<uint> selections;
  6607. IntVector2 size;
  6608. bool sortChildren;
  6609. String style;
  6610. /* readonly */
  6611. Array<String> tags;
  6612. bool temporary;
  6613. TraversalMode traversalMode;
  6614. /* readonly */
  6615. StringHash type;
  6616. /* readonly */
  6617. String typeName;
  6618. bool useDerivedOpacity;
  6619. /* readonly */
  6620. VariantMap vars;
  6621. VerticalAlignment verticalAlignment;
  6622. /* readonly */
  6623. ScrollBar verticalScrollBar;
  6624. IntVector2 viewPosition;
  6625. bool visible;
  6626. /* readonly */
  6627. bool visibleEffective;
  6628. /* readonly */
  6629. int weakRefs;
  6630. int width;
  6631. };
  6632. class Localization
  6633. {
  6634. public:
  6635. // Methods:
  6636. String Get(const String&);
  6637. String GetLanguage(int);
  6638. int GetLanguageIndex(const String&);
  6639. bool HasSubscribedToEvent(Object, const String&);
  6640. bool HasSubscribedToEvent(const String&);
  6641. void LoadJSON(const JSONValue&);
  6642. void LoadJSONFile(const String&);
  6643. void Reset();
  6644. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6645. void SetLanguage(const String&);
  6646. void SetLanguage(int);
  6647. // Properties:
  6648. /* readonly */
  6649. String category;
  6650. /* readonly */
  6651. String language;
  6652. /* readonly */
  6653. int languageIndex;
  6654. /* readonly */
  6655. int numLanguages;
  6656. /* readonly */
  6657. int refs;
  6658. /* readonly */
  6659. StringHash type;
  6660. /* readonly */
  6661. String typeName;
  6662. /* readonly */
  6663. int weakRefs;
  6664. };
  6665. class Log
  6666. {
  6667. public:
  6668. // Methods:
  6669. void Close();
  6670. void Debug(const String&);
  6671. void Error(const String&);
  6672. bool HasSubscribedToEvent(Object, const String&);
  6673. bool HasSubscribedToEvent(const String&);
  6674. void Info(const String&);
  6675. void Open(const String&);
  6676. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6677. void Trace(const String&);
  6678. void Warning(const String&);
  6679. void Write(const String&, bool = false);
  6680. // Properties:
  6681. /* readonly */
  6682. String category;
  6683. /* readonly */
  6684. String lastMessage;
  6685. int level;
  6686. bool quiet;
  6687. /* readonly */
  6688. int refs;
  6689. bool timeStamp;
  6690. /* readonly */
  6691. StringHash type;
  6692. /* readonly */
  6693. String typeName;
  6694. /* readonly */
  6695. int weakRefs;
  6696. };
  6697. class Material
  6698. {
  6699. public:
  6700. Material();
  6701. Material(const String&in);
  6702. // Methods:
  6703. Material Clone(const String& = String ( )) const;
  6704. Pass GetPass(uint, const String&);
  6705. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6706. float GetShaderParameterAnimationSpeed(const String&) const;
  6707. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6708. bool HasSubscribedToEvent(Object, const String&);
  6709. bool HasSubscribedToEvent(const String&);
  6710. bool Load(File);
  6711. bool Load(VectorBuffer&);
  6712. bool Load(const JSONValue&);
  6713. bool Load(const String&);
  6714. bool Load(const XMLElement&);
  6715. void RemoveShaderParameter(const String&);
  6716. bool Save(File) const;
  6717. bool Save(JSONValue&) const;
  6718. bool Save(VectorBuffer&) const;
  6719. bool Save(XMLElement&) const;
  6720. bool Save(const String&) const;
  6721. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6722. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6723. void SetShaderParameterAnimationSpeed(const String&, float);
  6724. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6725. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6726. void SetUVTransform(const Vector2&, float, const Vector2&);
  6727. void SetUVTransform(const Vector2&, float, float);
  6728. void SortTechniques();
  6729. // Properties:
  6730. bool alphaToCoverage;
  6731. /* readonly */
  6732. String category;
  6733. CullMode cullMode;
  6734. BiasParameters depthBias;
  6735. FillMode fillMode;
  6736. bool lineAntiAlias;
  6737. /* readonly */
  6738. uint memoryUse;
  6739. String name;
  6740. uint numTechniques;
  6741. bool occlusion;
  6742. String pixelShaderDefines;
  6743. /* readonly */
  6744. int refs;
  6745. uint8 renderOrder;
  6746. Scene scene;
  6747. /* readonly */
  6748. Array<String> shaderParameterNames;
  6749. Array<Variant> shaderParameters;
  6750. CullMode shadowCullMode;
  6751. /* readonly */
  6752. Array<TechniqueEntry> techniqueEntries;
  6753. /* readonly */
  6754. Array<Technique> techniques;
  6755. Array<Texture> textures;
  6756. /* readonly */
  6757. StringHash type;
  6758. /* readonly */
  6759. String typeName;
  6760. /* readonly */
  6761. uint useTimer;
  6762. String vertexShaderDefines;
  6763. /* readonly */
  6764. int weakRefs;
  6765. };
  6766. class Matrix2
  6767. {
  6768. public:
  6769. Matrix2();
  6770. Matrix2(const Matrix2&in);
  6771. Matrix2(float, float, float, float);
  6772. // Methods:
  6773. bool Equals(const Matrix2&) const;
  6774. Matrix2 Inverse() const;
  6775. Vector2 Scale() const;
  6776. Matrix2 Scaled(const Vector2&) const;
  6777. void SetScale(const Vector2&);
  6778. void SetScale(float);
  6779. String ToString() const;
  6780. Matrix2 Transpose() const;
  6781. // Properties:
  6782. float m00;
  6783. float m01;
  6784. float m10;
  6785. float m11;
  6786. };
  6787. class Matrix3
  6788. {
  6789. public:
  6790. Matrix3();
  6791. Matrix3(const Matrix3&in);
  6792. Matrix3(float, float, float, float, float, float, float, float, float);
  6793. // Methods:
  6794. bool Equals(const Matrix3&) const;
  6795. Matrix3 Inverse() const;
  6796. Vector3 Scale() const;
  6797. Matrix3 Scaled(const Vector3&) const;
  6798. void SetScale(const Vector3&);
  6799. void SetScale(float);
  6800. String ToString() const;
  6801. Matrix3 Transpose() const;
  6802. // Properties:
  6803. float m00;
  6804. float m01;
  6805. float m02;
  6806. float m10;
  6807. float m11;
  6808. float m12;
  6809. float m20;
  6810. float m21;
  6811. float m22;
  6812. };
  6813. class Matrix3x4
  6814. {
  6815. public:
  6816. Matrix3x4();
  6817. Matrix3x4(const Matrix3x4&in);
  6818. Matrix3x4(const Matrix3&in);
  6819. Matrix3x4(const Matrix4&in);
  6820. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  6821. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  6822. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  6823. // Methods:
  6824. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6825. bool Equals(const Matrix3x4&) const;
  6826. Matrix3x4 Inverse() const;
  6827. Quaternion Rotation() const;
  6828. Matrix3 RotationMatrix() const;
  6829. Vector3 Scale() const;
  6830. void SetRotation(const Matrix3&);
  6831. void SetScale(const Vector3&);
  6832. void SetScale(float);
  6833. void SetTranslation(const Vector3&);
  6834. Matrix3 ToMatrix3() const;
  6835. Matrix4 ToMatrix4() const;
  6836. String ToString() const;
  6837. Vector3 Translation() const;
  6838. // Properties:
  6839. float m00;
  6840. float m01;
  6841. float m02;
  6842. float m03;
  6843. float m10;
  6844. float m11;
  6845. float m12;
  6846. float m13;
  6847. float m20;
  6848. float m21;
  6849. float m22;
  6850. float m23;
  6851. };
  6852. class Matrix4
  6853. {
  6854. public:
  6855. Matrix4();
  6856. Matrix4(const Matrix4&in);
  6857. Matrix4(const Matrix3&in);
  6858. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  6859. // Methods:
  6860. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6861. bool Equals(const Matrix4&) const;
  6862. Matrix4 Inverse() const;
  6863. Quaternion Rotation() const;
  6864. Matrix3 RotationMatrix() const;
  6865. Vector3 Scale() const;
  6866. void SetRotation(const Matrix3&);
  6867. void SetScale(const Vector3&);
  6868. void SetScale(float);
  6869. void SetTranslation(const Vector3&);
  6870. Matrix3 ToMatrix3() const;
  6871. String ToString() const;
  6872. Vector3 Translation() const;
  6873. Matrix4 Transpose() const;
  6874. // Properties:
  6875. float m00;
  6876. float m01;
  6877. float m02;
  6878. float m03;
  6879. float m10;
  6880. float m11;
  6881. float m12;
  6882. float m13;
  6883. float m20;
  6884. float m21;
  6885. float m22;
  6886. float m23;
  6887. float m30;
  6888. float m31;
  6889. float m32;
  6890. float m33;
  6891. };
  6892. class Menu
  6893. {
  6894. public:
  6895. Menu();
  6896. Menu(const String&in);
  6897. // Methods:
  6898. void AddChild(UIElement);
  6899. void AddTag(const String&);
  6900. void AddTags(const String&, int8 = ';');
  6901. void ApplyAttributes();
  6902. void BringToFront();
  6903. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6904. void DisableLayoutUpdate();
  6905. IntVector2 ElementToScreen(const IntVector2&);
  6906. void EnableLayoutUpdate();
  6907. uint FindChild(UIElement) const;
  6908. Variant GetAttribute(const String&) const;
  6909. ValueAnimation GetAttributeAnimation(const String&) const;
  6910. float GetAttributeAnimationSpeed(const String&) const;
  6911. float GetAttributeAnimationTime(const String&) const;
  6912. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6913. Variant GetAttributeDefault(const String&) const;
  6914. UIElement GetChild(const String&, bool = false) const;
  6915. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6916. Array<UIElement> GetChildren(bool = false) const;
  6917. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6918. UIElement GetElementEventSender() const;
  6919. bool GetInterceptNetworkUpdate(const String&) const;
  6920. uint GetNumChildren(bool) const;
  6921. bool HasSubscribedToEvent(Object, const String&);
  6922. bool HasSubscribedToEvent(const String&);
  6923. bool HasTag(const String&) const;
  6924. void InsertChild(uint, UIElement);
  6925. bool IsChildOf(UIElement) const;
  6926. bool IsInside(IntVector2, bool);
  6927. bool IsInsideCombined(IntVector2, bool);
  6928. bool Load(File);
  6929. bool Load(VectorBuffer&);
  6930. UIElement LoadChildXML(XMLFile, XMLFile);
  6931. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6932. bool LoadJSON(const JSONValue&);
  6933. bool LoadXML(File);
  6934. bool LoadXML(VectorBuffer&);
  6935. bool LoadXML(XMLFile, XMLFile);
  6936. bool LoadXML(const XMLElement&, XMLFile);
  6937. bool LoadXML(const XMLElement&);
  6938. void MarkNetworkUpdate() const;
  6939. void Remove();
  6940. void RemoveAllChildren();
  6941. void RemoveAllTags();
  6942. void RemoveAttributeAnimation(const String&);
  6943. void RemoveChild(UIElement, uint = 0);
  6944. void RemoveChild(uint);
  6945. void RemoveInstanceDefault();
  6946. void RemoveObjectAnimation();
  6947. bool RemoveTag(const String&);
  6948. void ResetDeepEnabled();
  6949. void ResetToDefault();
  6950. bool Save(File) const;
  6951. bool Save(VectorBuffer&) const;
  6952. bool SaveJSON(JSONValue&) const;
  6953. bool SaveXML(File, const String& = "\t");
  6954. bool SaveXML(VectorBuffer&, const String& = "\t");
  6955. bool SaveXML(XMLElement&) const;
  6956. IntVector2 ScreenToElement(const IntVector2&);
  6957. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6958. void SetAccelerator(int, int);
  6959. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6960. void SetAnimationTime(float);
  6961. bool SetAttribute(const String&, const Variant&);
  6962. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6963. void SetAttributeAnimationSpeed(const String&, float);
  6964. void SetAttributeAnimationTime(const String&, float);
  6965. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6966. void SetDeepEnabled(bool);
  6967. void SetDisabledOffset(int, int);
  6968. void SetEnabledRecursive(bool);
  6969. void SetFixedHeight(int);
  6970. void SetFixedSize(int, int);
  6971. void SetFixedWidth(int);
  6972. void SetFullImageRect();
  6973. void SetHoverOffset(int, int);
  6974. void SetInterceptNetworkUpdate(const String&, bool);
  6975. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6976. void SetMaxAnchor(float, float);
  6977. void SetMaxSize(int, int);
  6978. void SetMinAnchor(float, float);
  6979. void SetMinSize(int, int);
  6980. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6981. void SetPivot(float, float);
  6982. void SetPopupOffset(int, int);
  6983. void SetPosition(int, int);
  6984. void SetPressedChildOffset(int, int);
  6985. void SetPressedOffset(int, int);
  6986. void SetRepeat(float, float);
  6987. void SetSize(int, int);
  6988. bool SetStyle(const String&, XMLFile = null);
  6989. bool SetStyle(const XMLElement&);
  6990. bool SetStyleAuto(XMLFile = null);
  6991. void UpdateLayout();
  6992. const Variant& GetVar(const StringHash&);
  6993. // Properties:
  6994. /* readonly */
  6995. int acceleratorKey;
  6996. /* readonly */
  6997. int acceleratorQualifiers;
  6998. bool animationEnabled;
  6999. /* readonly */
  7000. Array<Variant> attributeDefaults;
  7001. /* readonly */
  7002. Array<AttributeInfo> attributeInfos;
  7003. Array<Variant> attributes;
  7004. BlendMode blendMode;
  7005. IntRect border;
  7006. bool bringToBack;
  7007. bool bringToFront;
  7008. /* readonly */
  7009. String category;
  7010. /* readonly */
  7011. IntVector2 childOffset;
  7012. /* readonly */
  7013. Array<UIElement> children;
  7014. IntRect clipBorder;
  7015. bool clipChildren;
  7016. /* writeonly */
  7017. Color color;
  7018. /* readonly */
  7019. bool colorGradient;
  7020. Array<Color> colors;
  7021. /* readonly */
  7022. IntRect combinedScreenRect;
  7023. XMLFile defaultStyle;
  7024. /* readonly */
  7025. float derivedOpacity;
  7026. IntVector2 disabledOffset;
  7027. /* readonly */
  7028. uint dragButtonCombo;
  7029. /* readonly */
  7030. int dragButtonCount;
  7031. uint dragDropMode;
  7032. bool editable;
  7033. bool elementEventSender;
  7034. bool enableAnchor;
  7035. bool enabled;
  7036. /* readonly */
  7037. bool enabledSelf;
  7038. /* readonly */
  7039. bool fixedHeight;
  7040. /* readonly */
  7041. bool fixedSize;
  7042. /* readonly */
  7043. bool fixedWidth;
  7044. bool focus;
  7045. FocusMode focusMode;
  7046. int height;
  7047. HorizontalAlignment horizontalAlignment;
  7048. IntVector2 hoverOffset;
  7049. /* readonly */
  7050. bool hovering;
  7051. IntRect imageBorder;
  7052. IntRect imageRect;
  7053. int indent;
  7054. int indentSpacing;
  7055. /* readonly */
  7056. int indentWidth;
  7057. bool internal;
  7058. IntRect layoutBorder;
  7059. Vector2 layoutFlexScale;
  7060. LayoutMode layoutMode;
  7061. int layoutSpacing;
  7062. Vector2 maxAnchor;
  7063. int maxHeight;
  7064. IntVector2 maxOffset;
  7065. IntVector2 maxSize;
  7066. int maxWidth;
  7067. Vector2 minAnchor;
  7068. int minHeight;
  7069. IntVector2 minOffset;
  7070. IntVector2 minSize;
  7071. int minWidth;
  7072. String name;
  7073. /* readonly */
  7074. uint numAllChildren;
  7075. /* readonly */
  7076. uint numAttributes;
  7077. /* readonly */
  7078. uint numChildren;
  7079. ObjectAnimation objectAnimation;
  7080. float opacity;
  7081. UIElement parent;
  7082. Vector2 pivot;
  7083. UIElement popup;
  7084. IntVector2 popupOffset;
  7085. IntVector2 position;
  7086. /* readonly */
  7087. bool pressed;
  7088. IntVector2 pressedChildOffset;
  7089. IntVector2 pressedOffset;
  7090. int priority;
  7091. /* readonly */
  7092. int refs;
  7093. float repeatDelay;
  7094. float repeatRate;
  7095. /* readonly */
  7096. UIElement root;
  7097. /* readonly */
  7098. IntVector2 screenPosition;
  7099. bool selected;
  7100. bool showPopup;
  7101. IntVector2 size;
  7102. bool sortChildren;
  7103. String style;
  7104. /* readonly */
  7105. Array<String> tags;
  7106. bool temporary;
  7107. Texture texture;
  7108. bool tiled;
  7109. TraversalMode traversalMode;
  7110. /* readonly */
  7111. StringHash type;
  7112. /* readonly */
  7113. String typeName;
  7114. bool useDerivedOpacity;
  7115. /* readonly */
  7116. VariantMap vars;
  7117. VerticalAlignment verticalAlignment;
  7118. bool visible;
  7119. /* readonly */
  7120. bool visibleEffective;
  7121. /* readonly */
  7122. int weakRefs;
  7123. int width;
  7124. };
  7125. class MessageBox
  7126. {
  7127. public:
  7128. MessageBox(const String&in messageString = String ( ), const String&in titleString = String ( ), XMLFile& layoutFile = null, XMLFile& styleFile = null);
  7129. // Methods:
  7130. bool HasSubscribedToEvent(Object, const String&);
  7131. bool HasSubscribedToEvent(const String&);
  7132. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7133. // Properties:
  7134. /* readonly */
  7135. String category;
  7136. String message;
  7137. /* readonly */
  7138. int refs;
  7139. String title;
  7140. /* readonly */
  7141. StringHash type;
  7142. /* readonly */
  7143. String typeName;
  7144. /* readonly */
  7145. int weakRefs;
  7146. /* readonly */
  7147. UIElement window;
  7148. };
  7149. class Model
  7150. {
  7151. public:
  7152. Model();
  7153. Model(const String&in);
  7154. // Methods:
  7155. void AddMetadata(const String&, const Variant&);
  7156. Model Clone(const String& = String ( )) const;
  7157. Geometry GetGeometry(uint, uint) const;
  7158. bool HasSubscribedToEvent(Object, const String&);
  7159. bool HasSubscribedToEvent(const String&);
  7160. bool Load(File);
  7161. bool Load(VectorBuffer&);
  7162. bool Load(const String&);
  7163. void RemoveAllMetadata();
  7164. void RemoveMetadata(const String&);
  7165. bool Save(File) const;
  7166. bool Save(VectorBuffer&) const;
  7167. bool Save(const String&) const;
  7168. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7169. bool SetGeometry(uint, uint, Geometry);
  7170. bool SetIndexBuffers(Array<IndexBuffer>);
  7171. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  7172. // Properties:
  7173. BoundingBox boundingBox;
  7174. /* readonly */
  7175. String category;
  7176. Array<Vector3> geometryCenters;
  7177. /* readonly */
  7178. bool hasMetadata;
  7179. /* readonly */
  7180. uint memoryUse;
  7181. Array<Variant> metadata;
  7182. String name;
  7183. uint numGeometries;
  7184. Array<uint> numGeometryLodLevels;
  7185. /* readonly */
  7186. uint numMorphs;
  7187. /* readonly */
  7188. int refs;
  7189. /* readonly */
  7190. Skeleton skeleton;
  7191. /* readonly */
  7192. StringHash type;
  7193. /* readonly */
  7194. String typeName;
  7195. /* readonly */
  7196. uint useTimer;
  7197. /* readonly */
  7198. int weakRefs;
  7199. };
  7200. class NamedPipe
  7201. {
  7202. public:
  7203. NamedPipe();
  7204. NamedPipe(const String&in, bool);
  7205. // Methods:
  7206. void Close();
  7207. bool HasSubscribedToEvent(Object, const String&);
  7208. bool HasSubscribedToEvent(const String&);
  7209. bool Open(const String&, bool);
  7210. Array<uint8> Read(uint);
  7211. bool ReadBool();
  7212. BoundingBox ReadBoundingBox();
  7213. int8 ReadByte();
  7214. Color ReadColor();
  7215. double ReadDouble();
  7216. String ReadFileID();
  7217. float ReadFloat();
  7218. int ReadInt();
  7219. int64 ReadInt64();
  7220. IntRect ReadIntRect();
  7221. IntVector2 ReadIntVector2();
  7222. String ReadLine();
  7223. Matrix3 ReadMatrix3();
  7224. Matrix3x4 ReadMatrix3x4();
  7225. Matrix4 ReadMatrix4();
  7226. uint ReadNetID();
  7227. Quaternion ReadPackedQuaternion();
  7228. Vector3 ReadPackedVector3(float);
  7229. Quaternion ReadQuaternion();
  7230. int16 ReadShort();
  7231. String ReadString();
  7232. StringHash ReadStringHash();
  7233. uint8 ReadUByte();
  7234. uint ReadUInt();
  7235. uint64 ReadUInt64();
  7236. uint16 ReadUShort();
  7237. uint ReadVLE();
  7238. Variant ReadVariant();
  7239. VariantMap ReadVariantMap();
  7240. Vector2 ReadVector2();
  7241. Vector3 ReadVector3();
  7242. Vector4 ReadVector4();
  7243. VectorBuffer ReadVectorBuffer(uint);
  7244. uint Seek(uint);
  7245. uint SeekRelative(int);
  7246. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7247. uint Tell() const;
  7248. uint Write(Array<uint8>);
  7249. bool WriteBool(bool);
  7250. bool WriteBoundingBox(const BoundingBox&);
  7251. bool WriteByte(int8);
  7252. bool WriteColor(const Color&);
  7253. bool WriteDouble(double);
  7254. bool WriteFileID(const String&);
  7255. bool WriteFloat(float);
  7256. bool WriteInt(int);
  7257. bool WriteInt64(int64);
  7258. bool WriteIntRect(const IntRect&);
  7259. bool WriteIntVector2(const IntVector2&);
  7260. bool WriteLine(const String&);
  7261. bool WriteMatrix3(const Matrix3&);
  7262. bool WriteMatrix3x4(const Matrix3x4&);
  7263. bool WriteMatrix4(const Matrix4&);
  7264. bool WriteNetID(uint);
  7265. bool WritePackedQuaternion(const Quaternion&);
  7266. bool WritePackedVector3(const Vector3&, float);
  7267. bool WriteQuaternion(const Quaternion&);
  7268. bool WriteShort(int16);
  7269. bool WriteString(const String&);
  7270. bool WriteStringHash(const StringHash&);
  7271. bool WriteUByte(uint8);
  7272. bool WriteUInt(uint);
  7273. bool WriteUInt64(uint64);
  7274. bool WriteUShort(uint16);
  7275. bool WriteVLE(uint);
  7276. bool WriteVariant(const Variant&);
  7277. bool WriteVariantMap(const VariantMap&);
  7278. bool WriteVector2(const Vector2&);
  7279. bool WriteVector3(const Vector3&);
  7280. bool WriteVector4(const Vector4&);
  7281. bool WriteVectorBuffer(const VectorBuffer&);
  7282. // Properties:
  7283. /* readonly */
  7284. String category;
  7285. /* readonly */
  7286. uint checksum;
  7287. /* readonly */
  7288. bool eof;
  7289. /* readonly */
  7290. String name;
  7291. /* readonly */
  7292. bool open;
  7293. /* readonly */
  7294. uint position;
  7295. /* readonly */
  7296. int refs;
  7297. /* readonly */
  7298. bool server;
  7299. /* readonly */
  7300. uint size;
  7301. /* readonly */
  7302. StringHash type;
  7303. /* readonly */
  7304. String typeName;
  7305. /* readonly */
  7306. int weakRefs;
  7307. };
  7308. class NavArea
  7309. {
  7310. public:
  7311. // Methods:
  7312. void ApplyAttributes();
  7313. void DrawDebugGeometry(DebugRenderer, bool);
  7314. Variant GetAttribute(const String&) const;
  7315. ValueAnimation GetAttributeAnimation(const String&) const;
  7316. float GetAttributeAnimationSpeed(const String&) const;
  7317. float GetAttributeAnimationTime(const String&) const;
  7318. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7319. Variant GetAttributeDefault(const String&) const;
  7320. bool GetInterceptNetworkUpdate(const String&) const;
  7321. bool HasSubscribedToEvent(Object, const String&);
  7322. bool HasSubscribedToEvent(const String&);
  7323. bool Load(File);
  7324. bool Load(VectorBuffer&);
  7325. bool LoadJSON(const JSONValue&);
  7326. bool LoadXML(const XMLElement&);
  7327. void MarkNetworkUpdate() const;
  7328. void Remove();
  7329. void RemoveAttributeAnimation(const String&);
  7330. void RemoveInstanceDefault();
  7331. void RemoveObjectAnimation();
  7332. void ResetToDefault();
  7333. bool Save(File) const;
  7334. bool Save(VectorBuffer&) const;
  7335. bool SaveJSON(JSONValue&) const;
  7336. bool SaveXML(XMLElement&) const;
  7337. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7338. void SetAnimationTime(float);
  7339. bool SetAttribute(const String&, const Variant&);
  7340. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7341. void SetAttributeAnimationSpeed(const String&, float);
  7342. void SetAttributeAnimationTime(const String&, float);
  7343. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7344. void SetInterceptNetworkUpdate(const String&, bool);
  7345. // Properties:
  7346. bool animationEnabled;
  7347. uint areaID;
  7348. /* readonly */
  7349. Array<Variant> attributeDefaults;
  7350. /* readonly */
  7351. Array<AttributeInfo> attributeInfos;
  7352. Array<Variant> attributes;
  7353. BoundingBox boundingBox;
  7354. /* readonly */
  7355. String category;
  7356. bool enabled;
  7357. /* readonly */
  7358. bool enabledEffective;
  7359. /* readonly */
  7360. uint id;
  7361. /* readonly */
  7362. Node node;
  7363. /* readonly */
  7364. uint numAttributes;
  7365. ObjectAnimation objectAnimation;
  7366. /* readonly */
  7367. int refs;
  7368. /* readonly */
  7369. bool replicated;
  7370. bool temporary;
  7371. /* readonly */
  7372. StringHash type;
  7373. /* readonly */
  7374. String typeName;
  7375. /* readonly */
  7376. int weakRefs;
  7377. /* readonly */
  7378. BoundingBox worldBoundingBox;
  7379. };
  7380. class Navigable
  7381. {
  7382. public:
  7383. // Methods:
  7384. void ApplyAttributes();
  7385. void DrawDebugGeometry(DebugRenderer, bool);
  7386. Variant GetAttribute(const String&) const;
  7387. ValueAnimation GetAttributeAnimation(const String&) const;
  7388. float GetAttributeAnimationSpeed(const String&) const;
  7389. float GetAttributeAnimationTime(const String&) const;
  7390. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7391. Variant GetAttributeDefault(const String&) const;
  7392. bool GetInterceptNetworkUpdate(const String&) const;
  7393. bool HasSubscribedToEvent(Object, const String&);
  7394. bool HasSubscribedToEvent(const String&);
  7395. bool Load(File);
  7396. bool Load(VectorBuffer&);
  7397. bool LoadJSON(const JSONValue&);
  7398. bool LoadXML(const XMLElement&);
  7399. void MarkNetworkUpdate() const;
  7400. void Remove();
  7401. void RemoveAttributeAnimation(const String&);
  7402. void RemoveInstanceDefault();
  7403. void RemoveObjectAnimation();
  7404. void ResetToDefault();
  7405. bool Save(File) const;
  7406. bool Save(VectorBuffer&) const;
  7407. bool SaveJSON(JSONValue&) const;
  7408. bool SaveXML(XMLElement&) const;
  7409. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7410. void SetAnimationTime(float);
  7411. bool SetAttribute(const String&, const Variant&);
  7412. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7413. void SetAttributeAnimationSpeed(const String&, float);
  7414. void SetAttributeAnimationTime(const String&, float);
  7415. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7416. void SetInterceptNetworkUpdate(const String&, bool);
  7417. // Properties:
  7418. bool animationEnabled;
  7419. /* readonly */
  7420. Array<Variant> attributeDefaults;
  7421. /* readonly */
  7422. Array<AttributeInfo> attributeInfos;
  7423. Array<Variant> attributes;
  7424. /* readonly */
  7425. String category;
  7426. bool enabled;
  7427. /* readonly */
  7428. bool enabledEffective;
  7429. /* readonly */
  7430. uint id;
  7431. /* readonly */
  7432. Node node;
  7433. /* readonly */
  7434. uint numAttributes;
  7435. ObjectAnimation objectAnimation;
  7436. bool recursive;
  7437. /* readonly */
  7438. int refs;
  7439. /* readonly */
  7440. bool replicated;
  7441. bool temporary;
  7442. /* readonly */
  7443. StringHash type;
  7444. /* readonly */
  7445. String typeName;
  7446. /* readonly */
  7447. int weakRefs;
  7448. };
  7449. class NavigationMesh
  7450. {
  7451. public:
  7452. // Methods:
  7453. bool AddTile(const VectorBuffer&) const;
  7454. bool Allocate(const BoundingBox&, uint);
  7455. void ApplyAttributes();
  7456. bool Build();
  7457. bool Build(const BoundingBox&);
  7458. bool Build(const IntVector2&, const IntVector2&);
  7459. void DrawDebugGeometry(DebugRenderer, bool);
  7460. void DrawDebugGeometry(bool);
  7461. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7462. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7463. float GetAreaCost(uint) const;
  7464. Variant GetAttribute(const String&) const;
  7465. ValueAnimation GetAttributeAnimation(const String&) const;
  7466. float GetAttributeAnimationSpeed(const String&) const;
  7467. float GetAttributeAnimationTime(const String&) const;
  7468. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7469. Variant GetAttributeDefault(const String&) const;
  7470. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7471. bool GetInterceptNetworkUpdate(const String&) const;
  7472. Vector3 GetRandomPoint();
  7473. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7474. BoundingBox GetTileBoudningBox(const IntVector2&) const;
  7475. VectorBuffer GetTileData(const IntVector2&) const;
  7476. IntVector2 GetTileIndex(const Vector3&) const;
  7477. bool HasSubscribedToEvent(Object, const String&);
  7478. bool HasSubscribedToEvent(const String&);
  7479. bool HasTile(const IntVector2&) const;
  7480. bool Load(File);
  7481. bool Load(VectorBuffer&);
  7482. bool LoadJSON(const JSONValue&);
  7483. bool LoadXML(const XMLElement&);
  7484. void MarkNetworkUpdate() const;
  7485. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  7486. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7487. void Remove();
  7488. void RemoveAllTiles();
  7489. void RemoveAttributeAnimation(const String&);
  7490. void RemoveInstanceDefault();
  7491. void RemoveObjectAnimation();
  7492. void RemoveTile(const IntVector2&);
  7493. void ResetToDefault();
  7494. bool Save(File) const;
  7495. bool Save(VectorBuffer&) const;
  7496. bool SaveJSON(JSONValue&) const;
  7497. bool SaveXML(XMLElement&) const;
  7498. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7499. void SetAnimationTime(float);
  7500. void SetAreaCost(uint, float);
  7501. bool SetAttribute(const String&, const Variant&);
  7502. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7503. void SetAttributeAnimationSpeed(const String&, float);
  7504. void SetAttributeAnimationTime(const String&, float);
  7505. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7506. void SetInterceptNetworkUpdate(const String&, bool);
  7507. // Properties:
  7508. float agentHeight;
  7509. float agentMaxClimb;
  7510. float agentMaxSlope;
  7511. float agentRadius;
  7512. bool animationEnabled;
  7513. /* readonly */
  7514. Array<Variant> attributeDefaults;
  7515. /* readonly */
  7516. Array<AttributeInfo> attributeInfos;
  7517. Array<Variant> attributes;
  7518. /* readonly */
  7519. BoundingBox boundingBox;
  7520. /* readonly */
  7521. String category;
  7522. float cellHeight;
  7523. float cellSize;
  7524. float detailSampleDistance;
  7525. float detailSampleMaxError;
  7526. bool drawNavAreas;
  7527. bool drawOffMeshConnections;
  7528. float edgeMaxError;
  7529. float edgeMaxLength;
  7530. bool enabled;
  7531. /* readonly */
  7532. bool enabledEffective;
  7533. /* readonly */
  7534. uint id;
  7535. /* readonly */
  7536. bool initialized;
  7537. /* readonly */
  7538. Node node;
  7539. /* readonly */
  7540. uint numAttributes;
  7541. /* readonly */
  7542. IntVector2 numTiles;
  7543. ObjectAnimation objectAnimation;
  7544. Vector3 padding;
  7545. NavmeshPartitionType partitionType;
  7546. /* readonly */
  7547. int refs;
  7548. float regionMergeSize;
  7549. float regionMinSize;
  7550. /* readonly */
  7551. bool replicated;
  7552. bool temporary;
  7553. int tileSize;
  7554. /* readonly */
  7555. StringHash type;
  7556. /* readonly */
  7557. String typeName;
  7558. /* readonly */
  7559. int weakRefs;
  7560. /* readonly */
  7561. BoundingBox worldBoundingBox;
  7562. };
  7563. class Network
  7564. {
  7565. public:
  7566. // Methods:
  7567. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  7568. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  7569. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  7570. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  7571. bool CheckRemoteEvent(const String&) const;
  7572. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  7573. void Disconnect(int = 0);
  7574. bool HasSubscribedToEvent(Object, const String&);
  7575. bool HasSubscribedToEvent(const String&);
  7576. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  7577. void RegisterRemoteEvent(const String&) const;
  7578. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7579. void SendPackageToClients(Scene, PackageFile);
  7580. bool StartServer(uint16);
  7581. void StopServer();
  7582. void UnregisterAllRemoteEvents();
  7583. void UnregisterRemoteEvent(const String&) const;
  7584. // Properties:
  7585. /* readonly */
  7586. String category;
  7587. /* readonly */
  7588. Array<Connection> clientConnections;
  7589. String packageCacheDir;
  7590. /* readonly */
  7591. int refs;
  7592. /* readonly */
  7593. Connection serverConnection;
  7594. /* readonly */
  7595. bool serverRunning;
  7596. int simulatedLatency;
  7597. float simulatedPacketLoss;
  7598. /* readonly */
  7599. StringHash type;
  7600. /* readonly */
  7601. String typeName;
  7602. int updateFps;
  7603. /* readonly */
  7604. int weakRefs;
  7605. };
  7606. class NetworkPriority
  7607. {
  7608. public:
  7609. // Methods:
  7610. void ApplyAttributes();
  7611. void DrawDebugGeometry(DebugRenderer, bool);
  7612. Variant GetAttribute(const String&) const;
  7613. ValueAnimation GetAttributeAnimation(const String&) const;
  7614. float GetAttributeAnimationSpeed(const String&) const;
  7615. float GetAttributeAnimationTime(const String&) const;
  7616. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7617. Variant GetAttributeDefault(const String&) const;
  7618. bool GetInterceptNetworkUpdate(const String&) const;
  7619. bool HasSubscribedToEvent(Object, const String&);
  7620. bool HasSubscribedToEvent(const String&);
  7621. bool Load(File);
  7622. bool Load(VectorBuffer&);
  7623. bool LoadJSON(const JSONValue&);
  7624. bool LoadXML(const XMLElement&);
  7625. void MarkNetworkUpdate() const;
  7626. void Remove();
  7627. void RemoveAttributeAnimation(const String&);
  7628. void RemoveInstanceDefault();
  7629. void RemoveObjectAnimation();
  7630. void ResetToDefault();
  7631. bool Save(File) const;
  7632. bool Save(VectorBuffer&) const;
  7633. bool SaveJSON(JSONValue&) const;
  7634. bool SaveXML(XMLElement&) const;
  7635. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7636. void SetAnimationTime(float);
  7637. bool SetAttribute(const String&, const Variant&);
  7638. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7639. void SetAttributeAnimationSpeed(const String&, float);
  7640. void SetAttributeAnimationTime(const String&, float);
  7641. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7642. void SetInterceptNetworkUpdate(const String&, bool);
  7643. // Properties:
  7644. bool alwaysUpdateOwner;
  7645. bool animationEnabled;
  7646. /* readonly */
  7647. Array<Variant> attributeDefaults;
  7648. /* readonly */
  7649. Array<AttributeInfo> attributeInfos;
  7650. Array<Variant> attributes;
  7651. float basePriority;
  7652. /* readonly */
  7653. String category;
  7654. float distanceFactor;
  7655. bool enabled;
  7656. /* readonly */
  7657. bool enabledEffective;
  7658. /* readonly */
  7659. uint id;
  7660. float minPriority;
  7661. /* readonly */
  7662. Node node;
  7663. /* readonly */
  7664. uint numAttributes;
  7665. ObjectAnimation objectAnimation;
  7666. /* readonly */
  7667. int refs;
  7668. /* readonly */
  7669. bool replicated;
  7670. bool temporary;
  7671. /* readonly */
  7672. StringHash type;
  7673. /* readonly */
  7674. String typeName;
  7675. /* readonly */
  7676. int weakRefs;
  7677. };
  7678. class Node
  7679. {
  7680. public:
  7681. Node();
  7682. Node(const String&in);
  7683. // Methods:
  7684. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7685. void AddTag(const String&);
  7686. void AddTags(const String&, int8 = ';');
  7687. void ApplyAttributes();
  7688. Node Clone(CreateMode = REPLICATED);
  7689. Component CloneComponent(Component, CreateMode, uint = 0);
  7690. Component CloneComponent(Component, uint = 0);
  7691. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7692. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7693. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7694. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7695. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7696. Variant GetAttribute(const String&) const;
  7697. ValueAnimation GetAttributeAnimation(const String&) const;
  7698. float GetAttributeAnimationSpeed(const String&) const;
  7699. float GetAttributeAnimationTime(const String&) const;
  7700. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7701. Variant GetAttributeDefault(const String&) const;
  7702. Node GetChild(const String&, bool = false) const;
  7703. Array<Node> GetChildren(bool = false) const;
  7704. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7705. Array<Node> GetChildrenWithScript(bool = false) const;
  7706. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7707. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7708. Component GetComponent(const String&, bool = false) const;
  7709. Array<Component> GetComponents() const;
  7710. Array<Component> GetComponents(const String&, bool = false) const;
  7711. bool GetInterceptNetworkUpdate(const String&) const;
  7712. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7713. Component GetParentComponent(const String&, bool = false) const;
  7714. ScriptObject GetScriptObject() const;
  7715. ScriptObject GetScriptObject(const String&) const;
  7716. bool HasComponent(const String&) const;
  7717. bool HasSubscribedToEvent(Object, const String&);
  7718. bool HasSubscribedToEvent(const String&);
  7719. bool HasTag(const String&);
  7720. bool IsChildOf(Node) const;
  7721. bool Load(File);
  7722. bool Load(VectorBuffer&);
  7723. bool LoadJSON(const JSONValue&);
  7724. bool LoadXML(const XMLElement&);
  7725. Vector3 LocalToWorld(const Vector3&) const;
  7726. Vector3 LocalToWorld(const Vector4&) const;
  7727. Vector2 LocalToWorld2D(const Vector2&) const;
  7728. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7729. void MarkDirty();
  7730. void MarkNetworkUpdate() const;
  7731. void Pitch(float, TransformSpace = TS_LOCAL);
  7732. void Remove();
  7733. void RemoveAllChildren();
  7734. void RemoveAllComponents();
  7735. void RemoveAllTags();
  7736. void RemoveAttributeAnimation(const String&);
  7737. void RemoveChild(Node);
  7738. void RemoveChildren(bool, bool, bool);
  7739. void RemoveComponent(Component);
  7740. void RemoveComponent(const String&);
  7741. void RemoveComponents(bool, bool);
  7742. void RemoveComponents(const String&);
  7743. void RemoveInstanceDefault();
  7744. void RemoveObjectAnimation();
  7745. bool RemoveTag(const String&);
  7746. void ReorderComponent(Component, uint);
  7747. void ResetDeepEnabled();
  7748. void ResetToDefault();
  7749. void Roll(float, TransformSpace = TS_LOCAL);
  7750. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7751. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7752. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7753. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7754. bool Save(File) const;
  7755. bool Save(VectorBuffer&) const;
  7756. bool SaveJSON(File);
  7757. bool SaveJSON(JSONValue&) const;
  7758. bool SaveJSON(VectorBuffer&);
  7759. bool SaveXML(File, const String& = "\t");
  7760. bool SaveXML(VectorBuffer&, const String& = "\t");
  7761. bool SaveXML(XMLElement&) const;
  7762. void Scale(const Vector3&);
  7763. void Scale(float);
  7764. void Scale2D(const Vector2&);
  7765. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7766. void SetAnimationTime(float);
  7767. bool SetAttribute(const String&, const Variant&);
  7768. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7769. void SetAttributeAnimationSpeed(const String&, float);
  7770. void SetAttributeAnimationTime(const String&, float);
  7771. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7772. void SetDeepEnabled(bool);
  7773. void SetEnabledRecursive(bool);
  7774. void SetInterceptNetworkUpdate(const String&, bool);
  7775. void SetPosition2D(float, float);
  7776. void SetScale(float);
  7777. void SetScale2D(float, float);
  7778. void SetTransform(const Matrix3x4&);
  7779. void SetTransform(const Vector3&, const Quaternion&);
  7780. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7781. void SetTransform(const Vector3&, const Quaternion&, float);
  7782. void SetTransform2D(const Vector2&, float);
  7783. void SetTransform2D(const Vector2&, float, const Vector2&);
  7784. void SetTransform2D(const Vector2&, float, float);
  7785. void SetWorldTransform(const Vector3&, const Quaternion&);
  7786. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7787. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7788. void SetWorldTransform2D(const Vector2&, float);
  7789. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7790. void SetWorldTransform2D(const Vector2&, float, float);
  7791. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7792. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7793. Vector3 WorldToLocal(const Vector3&) const;
  7794. Vector3 WorldToLocal(const Vector4&) const;
  7795. Vector2 WorldToLocal2D(const Vector2&) const;
  7796. void Yaw(float, TransformSpace = TS_LOCAL);
  7797. // Properties:
  7798. /* readonly */
  7799. Array<Node> allChildrenByName;
  7800. bool animationEnabled;
  7801. /* readonly */
  7802. Array<Variant> attributeDefaults;
  7803. /* readonly */
  7804. Array<AttributeInfo> attributeInfos;
  7805. Array<Variant> attributes;
  7806. /* readonly */
  7807. String category;
  7808. /* readonly */
  7809. Array<Node> children;
  7810. /* readonly */
  7811. Array<Node> childrenByName;
  7812. /* readonly */
  7813. Array<Component> components;
  7814. Vector3 direction;
  7815. bool enabled;
  7816. /* readonly */
  7817. bool enabledSelf;
  7818. uint id;
  7819. String name;
  7820. /* readonly */
  7821. uint numAllChildren;
  7822. /* readonly */
  7823. uint numAttributes;
  7824. /* readonly */
  7825. uint numChildren;
  7826. /* readonly */
  7827. uint numComponents;
  7828. ObjectAnimation objectAnimation;
  7829. Connection owner;
  7830. Node parent;
  7831. Vector3 position;
  7832. Vector2 position2D;
  7833. /* readonly */
  7834. int refs;
  7835. /* readonly */
  7836. bool replicated;
  7837. /* readonly */
  7838. Vector3 right;
  7839. Quaternion rotation;
  7840. float rotation2D;
  7841. Vector3 scale;
  7842. Vector2 scale2D;
  7843. /* readonly */
  7844. Scene scene;
  7845. /* readonly */
  7846. ScriptObject scriptObject;
  7847. /* readonly */
  7848. Vector3 signedWorldScale;
  7849. /* readonly */
  7850. Array<String> tags;
  7851. bool temporary;
  7852. /* readonly */
  7853. Matrix3x4 transform;
  7854. /* readonly */
  7855. StringHash type;
  7856. /* readonly */
  7857. String typeName;
  7858. /* readonly */
  7859. Vector3 up;
  7860. /* readonly */
  7861. VariantMap vars;
  7862. /* readonly */
  7863. int weakRefs;
  7864. Vector3 worldDirection;
  7865. Vector3 worldPosition;
  7866. Vector2 worldPosition2D;
  7867. /* readonly */
  7868. Vector3 worldRight;
  7869. Quaternion worldRotation;
  7870. float worldRotation2D;
  7871. Vector3 worldScale;
  7872. Vector2 worldScale2D;
  7873. /* readonly */
  7874. Matrix3x4 worldTransform;
  7875. /* readonly */
  7876. Vector3 worldUp;
  7877. };
  7878. class Object
  7879. {
  7880. public:
  7881. // Methods:
  7882. bool HasSubscribedToEvent(Object, const String&);
  7883. bool HasSubscribedToEvent(const String&);
  7884. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7885. // Properties:
  7886. /* readonly */
  7887. String category;
  7888. /* readonly */
  7889. int refs;
  7890. /* readonly */
  7891. StringHash type;
  7892. /* readonly */
  7893. String typeName;
  7894. /* readonly */
  7895. int weakRefs;
  7896. };
  7897. class ObjectAnimation
  7898. {
  7899. public:
  7900. ObjectAnimation();
  7901. ObjectAnimation(const String&in);
  7902. // Methods:
  7903. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7904. ValueAnimation GetAttributeAnimation(const String&) const;
  7905. float GetAttributeAnimationSpeed(const String&) const;
  7906. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7907. bool HasSubscribedToEvent(Object, const String&);
  7908. bool HasSubscribedToEvent(const String&);
  7909. bool Load(File);
  7910. bool Load(VectorBuffer&);
  7911. bool Load(const String&);
  7912. void RemoveAttributeAnimation(ValueAnimation);
  7913. void RemoveAttributeAnimation(const String&);
  7914. bool Save(File) const;
  7915. bool Save(VectorBuffer&) const;
  7916. bool Save(const String&) const;
  7917. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7918. // Properties:
  7919. /* readonly */
  7920. Array<Variant> attributeAnimations;
  7921. /* readonly */
  7922. String category;
  7923. /* readonly */
  7924. uint memoryUse;
  7925. String name;
  7926. /* readonly */
  7927. int refs;
  7928. /* readonly */
  7929. Array<Variant> speeds;
  7930. /* readonly */
  7931. StringHash type;
  7932. /* readonly */
  7933. String typeName;
  7934. /* readonly */
  7935. uint useTimer;
  7936. /* readonly */
  7937. int weakRefs;
  7938. /* readonly */
  7939. Array<Variant> wrapModes;
  7940. };
  7941. class Obstacle
  7942. {
  7943. public:
  7944. // Methods:
  7945. void ApplyAttributes();
  7946. void DrawDebugGeometry(DebugRenderer, bool);
  7947. void DrawDebugGeometry(bool);
  7948. Variant GetAttribute(const String&) const;
  7949. ValueAnimation GetAttributeAnimation(const String&) const;
  7950. float GetAttributeAnimationSpeed(const String&) const;
  7951. float GetAttributeAnimationTime(const String&) const;
  7952. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7953. Variant GetAttributeDefault(const String&) const;
  7954. bool GetInterceptNetworkUpdate(const String&) const;
  7955. bool HasSubscribedToEvent(Object, const String&);
  7956. bool HasSubscribedToEvent(const String&);
  7957. bool Load(File);
  7958. bool Load(VectorBuffer&);
  7959. bool LoadJSON(const JSONValue&);
  7960. bool LoadXML(const XMLElement&);
  7961. void MarkNetworkUpdate() const;
  7962. void Remove();
  7963. void RemoveAttributeAnimation(const String&);
  7964. void RemoveInstanceDefault();
  7965. void RemoveObjectAnimation();
  7966. void ResetToDefault();
  7967. bool Save(File) const;
  7968. bool Save(VectorBuffer&) const;
  7969. bool SaveJSON(JSONValue&) const;
  7970. bool SaveXML(XMLElement&) const;
  7971. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7972. void SetAnimationTime(float);
  7973. bool SetAttribute(const String&, const Variant&);
  7974. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7975. void SetAttributeAnimationSpeed(const String&, float);
  7976. void SetAttributeAnimationTime(const String&, float);
  7977. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7978. void SetInterceptNetworkUpdate(const String&, bool);
  7979. // Properties:
  7980. bool animationEnabled;
  7981. /* readonly */
  7982. Array<Variant> attributeDefaults;
  7983. /* readonly */
  7984. Array<AttributeInfo> attributeInfos;
  7985. Array<Variant> attributes;
  7986. /* readonly */
  7987. String category;
  7988. bool enabled;
  7989. /* readonly */
  7990. bool enabledEffective;
  7991. float height;
  7992. /* readonly */
  7993. uint id;
  7994. /* readonly */
  7995. Node node;
  7996. /* readonly */
  7997. uint numAttributes;
  7998. ObjectAnimation objectAnimation;
  7999. /* readonly */
  8000. uint obstacleId;
  8001. float radius;
  8002. /* readonly */
  8003. int refs;
  8004. /* readonly */
  8005. bool replicated;
  8006. bool temporary;
  8007. /* readonly */
  8008. StringHash type;
  8009. /* readonly */
  8010. String typeName;
  8011. /* readonly */
  8012. int weakRefs;
  8013. };
  8014. class Octree
  8015. {
  8016. public:
  8017. // Methods:
  8018. void AddManualDrawable(Drawable);
  8019. void ApplyAttributes();
  8020. void DrawDebugGeometry(DebugRenderer, bool);
  8021. void DrawDebugGeometry(bool) const;
  8022. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8023. Variant GetAttribute(const String&) const;
  8024. ValueAnimation GetAttributeAnimation(const String&) const;
  8025. float GetAttributeAnimationSpeed(const String&) const;
  8026. float GetAttributeAnimationTime(const String&) const;
  8027. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8028. Variant GetAttributeDefault(const String&) const;
  8029. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8030. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8031. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8032. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8033. bool GetInterceptNetworkUpdate(const String&) const;
  8034. bool HasSubscribedToEvent(Object, const String&);
  8035. bool HasSubscribedToEvent(const String&);
  8036. bool Load(File);
  8037. bool Load(VectorBuffer&);
  8038. bool LoadJSON(const JSONValue&);
  8039. bool LoadXML(const XMLElement&);
  8040. void MarkNetworkUpdate() const;
  8041. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  8042. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  8043. void Remove();
  8044. void RemoveAttributeAnimation(const String&);
  8045. void RemoveInstanceDefault();
  8046. void RemoveManualDrawable(Drawable);
  8047. void RemoveObjectAnimation();
  8048. void ResetToDefault();
  8049. bool Save(File) const;
  8050. bool Save(VectorBuffer&) const;
  8051. bool SaveJSON(JSONValue&) const;
  8052. bool SaveXML(XMLElement&) const;
  8053. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8054. void SetAnimationTime(float);
  8055. bool SetAttribute(const String&, const Variant&);
  8056. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8057. void SetAttributeAnimationSpeed(const String&, float);
  8058. void SetAttributeAnimationTime(const String&, float);
  8059. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8060. void SetInterceptNetworkUpdate(const String&, bool);
  8061. void SetSize(const BoundingBox&, uint);
  8062. // Properties:
  8063. bool animationEnabled;
  8064. /* readonly */
  8065. Array<Variant> attributeDefaults;
  8066. /* readonly */
  8067. Array<AttributeInfo> attributeInfos;
  8068. Array<Variant> attributes;
  8069. /* readonly */
  8070. String category;
  8071. bool enabled;
  8072. /* readonly */
  8073. bool enabledEffective;
  8074. /* readonly */
  8075. uint id;
  8076. /* readonly */
  8077. Node node;
  8078. /* readonly */
  8079. uint numAttributes;
  8080. /* readonly */
  8081. uint numLevels;
  8082. ObjectAnimation objectAnimation;
  8083. /* readonly */
  8084. int refs;
  8085. /* readonly */
  8086. bool replicated;
  8087. bool temporary;
  8088. /* readonly */
  8089. StringHash type;
  8090. /* readonly */
  8091. String typeName;
  8092. /* readonly */
  8093. int weakRefs;
  8094. /* readonly */
  8095. BoundingBox worldBoundingBox;
  8096. };
  8097. class OffMeshConnection
  8098. {
  8099. public:
  8100. // Methods:
  8101. void ApplyAttributes();
  8102. void DrawDebugGeometry(DebugRenderer, bool);
  8103. Variant GetAttribute(const String&) const;
  8104. ValueAnimation GetAttributeAnimation(const String&) const;
  8105. float GetAttributeAnimationSpeed(const String&) const;
  8106. float GetAttributeAnimationTime(const String&) const;
  8107. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8108. Variant GetAttributeDefault(const String&) const;
  8109. bool GetInterceptNetworkUpdate(const String&) const;
  8110. bool HasSubscribedToEvent(Object, const String&);
  8111. bool HasSubscribedToEvent(const String&);
  8112. bool Load(File);
  8113. bool Load(VectorBuffer&);
  8114. bool LoadJSON(const JSONValue&);
  8115. bool LoadXML(const XMLElement&);
  8116. void MarkNetworkUpdate() const;
  8117. void Remove();
  8118. void RemoveAttributeAnimation(const String&);
  8119. void RemoveInstanceDefault();
  8120. void RemoveObjectAnimation();
  8121. void ResetToDefault();
  8122. bool Save(File) const;
  8123. bool Save(VectorBuffer&) const;
  8124. bool SaveJSON(JSONValue&) const;
  8125. bool SaveXML(XMLElement&) const;
  8126. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8127. void SetAnimationTime(float);
  8128. bool SetAttribute(const String&, const Variant&);
  8129. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8130. void SetAttributeAnimationSpeed(const String&, float);
  8131. void SetAttributeAnimationTime(const String&, float);
  8132. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8133. void SetInterceptNetworkUpdate(const String&, bool);
  8134. // Properties:
  8135. bool animationEnabled;
  8136. uint areaID;
  8137. /* readonly */
  8138. Array<Variant> attributeDefaults;
  8139. /* readonly */
  8140. Array<AttributeInfo> attributeInfos;
  8141. Array<Variant> attributes;
  8142. bool bidirectional;
  8143. /* readonly */
  8144. String category;
  8145. bool enabled;
  8146. /* readonly */
  8147. bool enabledEffective;
  8148. Node endPoint;
  8149. /* readonly */
  8150. uint id;
  8151. uint mask;
  8152. /* readonly */
  8153. Node node;
  8154. /* readonly */
  8155. uint numAttributes;
  8156. ObjectAnimation objectAnimation;
  8157. float radius;
  8158. /* readonly */
  8159. int refs;
  8160. /* readonly */
  8161. bool replicated;
  8162. bool temporary;
  8163. /* readonly */
  8164. StringHash type;
  8165. /* readonly */
  8166. String typeName;
  8167. /* readonly */
  8168. int weakRefs;
  8169. };
  8170. class PackageFile
  8171. {
  8172. public:
  8173. PackageFile();
  8174. PackageFile(const String&in, uint startOffset = 0);
  8175. // Methods:
  8176. bool Exists(const String&) const;
  8177. Array<String> GetEntryNames() const;
  8178. bool HasSubscribedToEvent(Object, const String&);
  8179. bool HasSubscribedToEvent(const String&);
  8180. bool Open(const String&, uint = 0) const;
  8181. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8182. bool compressed() const;
  8183. // Properties:
  8184. /* readonly */
  8185. String category;
  8186. /* readonly */
  8187. uint checksum;
  8188. /* readonly */
  8189. String name;
  8190. /* readonly */
  8191. uint numFiles;
  8192. /* readonly */
  8193. int refs;
  8194. /* readonly */
  8195. uint totalDataSize;
  8196. /* readonly */
  8197. uint totalSize;
  8198. /* readonly */
  8199. StringHash type;
  8200. /* readonly */
  8201. String typeName;
  8202. /* readonly */
  8203. int weakRefs;
  8204. };
  8205. class ParticleEffect
  8206. {
  8207. public:
  8208. ParticleEffect();
  8209. ParticleEffect(const String&in);
  8210. // Methods:
  8211. void AddColorFrame(ColorFrame);
  8212. void AddColorTime(const Color&, float);
  8213. void AddTextureFrame(TextureFrame);
  8214. void AddTextureTime(const Rect&, float);
  8215. ParticleEffect Clone(const String& = String ( )) const;
  8216. ColorFrame GetColorFrame(uint) const;
  8217. TextureFrame GetTextureFrame(uint) const;
  8218. bool HasSubscribedToEvent(Object, const String&);
  8219. bool HasSubscribedToEvent(const String&);
  8220. bool Load(File);
  8221. bool Load(VectorBuffer&);
  8222. bool Load(const String&);
  8223. bool Load(const XMLElement&);
  8224. void RemoveColorFrame(uint);
  8225. void RemoveTextureFrame(uint);
  8226. bool Save(File) const;
  8227. bool Save(VectorBuffer&) const;
  8228. bool Save(XMLElement&) const;
  8229. bool Save(const String&) const;
  8230. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8231. void SetColorFrame(uint, ColorFrame);
  8232. void SetTextureFrame(uint, TextureFrame);
  8233. void SortColorFrames();
  8234. void SortTextureFrames();
  8235. // Properties:
  8236. float activeTime;
  8237. float animationLodBias;
  8238. /* readonly */
  8239. String category;
  8240. Vector3 constantForce;
  8241. float dampingForce;
  8242. Vector3 emitterSize;
  8243. EmitterType emitterType;
  8244. FaceCameraMode faceCameraMode;
  8245. bool fixedScreenSize;
  8246. float inactiveTime;
  8247. Material material;
  8248. Vector3 maxDirection;
  8249. float maxEmissionRate;
  8250. Vector2 maxParticleSize;
  8251. float maxRotation;
  8252. float maxRotationSpeed;
  8253. float maxTimeToLive;
  8254. float maxVelocity;
  8255. /* readonly */
  8256. uint memoryUse;
  8257. Vector3 minDirection;
  8258. float minEmissionRate;
  8259. Vector2 minParticleSize;
  8260. float minRotation;
  8261. float minRotationSpeed;
  8262. float minTimeToLive;
  8263. float minVelocity;
  8264. String name;
  8265. uint numColorFrames;
  8266. uint numParticles;
  8267. uint numTextureFrames;
  8268. /* readonly */
  8269. int refs;
  8270. bool relative;
  8271. bool scaled;
  8272. float sizeAdd;
  8273. float sizeMul;
  8274. bool sorted;
  8275. /* readonly */
  8276. StringHash type;
  8277. /* readonly */
  8278. String typeName;
  8279. bool updateInvisible;
  8280. /* readonly */
  8281. uint useTimer;
  8282. /* readonly */
  8283. int weakRefs;
  8284. };
  8285. class ParticleEffect2D
  8286. {
  8287. public:
  8288. ParticleEffect2D();
  8289. ParticleEffect2D(const String&in);
  8290. // Methods:
  8291. ParticleEffect2D Clone(const String& = String ( )) const;
  8292. bool HasSubscribedToEvent(Object, const String&);
  8293. bool HasSubscribedToEvent(const String&);
  8294. bool Load(File);
  8295. bool Load(VectorBuffer&);
  8296. bool Load(const String&);
  8297. bool Save(File) const;
  8298. bool Save(VectorBuffer&) const;
  8299. bool Save(const String&) const;
  8300. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8301. // Properties:
  8302. /* readonly */
  8303. String category;
  8304. /* readonly */
  8305. uint memoryUse;
  8306. String name;
  8307. /* readonly */
  8308. int refs;
  8309. /* readonly */
  8310. StringHash type;
  8311. /* readonly */
  8312. String typeName;
  8313. /* readonly */
  8314. uint useTimer;
  8315. /* readonly */
  8316. int weakRefs;
  8317. };
  8318. class ParticleEmitter
  8319. {
  8320. public:
  8321. // Methods:
  8322. void ApplyAttributes();
  8323. void ApplyEffect();
  8324. void Commit();
  8325. void DrawDebugGeometry(DebugRenderer, bool);
  8326. Variant GetAttribute(const String&) const;
  8327. ValueAnimation GetAttributeAnimation(const String&) const;
  8328. float GetAttributeAnimationSpeed(const String&) const;
  8329. float GetAttributeAnimationTime(const String&) const;
  8330. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8331. Variant GetAttributeDefault(const String&) const;
  8332. bool GetInterceptNetworkUpdate(const String&) const;
  8333. bool HasSubscribedToEvent(Object, const String&);
  8334. bool HasSubscribedToEvent(const String&);
  8335. bool IsInView(Camera) const;
  8336. bool Load(File);
  8337. bool Load(VectorBuffer&);
  8338. bool LoadJSON(const JSONValue&);
  8339. bool LoadXML(const XMLElement&);
  8340. void MarkNetworkUpdate() const;
  8341. void Remove();
  8342. void RemoveAllParticles();
  8343. void RemoveAttributeAnimation(const String&);
  8344. void RemoveInstanceDefault();
  8345. void RemoveObjectAnimation();
  8346. void Reset();
  8347. void ResetEmissionTimer();
  8348. void ResetToDefault();
  8349. bool Save(File) const;
  8350. bool Save(VectorBuffer&) const;
  8351. bool SaveJSON(JSONValue&) const;
  8352. bool SaveXML(XMLElement&) const;
  8353. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8354. void SetAnimationTime(float);
  8355. bool SetAttribute(const String&, const Variant&);
  8356. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8357. void SetAttributeAnimationSpeed(const String&, float);
  8358. void SetAttributeAnimationTime(const String&, float);
  8359. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8360. void SetInterceptNetworkUpdate(const String&, bool);
  8361. // Properties:
  8362. bool animationEnabled;
  8363. float animationLodBias;
  8364. /* readonly */
  8365. Array<Variant> attributeDefaults;
  8366. /* readonly */
  8367. Array<AttributeInfo> attributeInfos;
  8368. Array<Variant> attributes;
  8369. AutoRemoveMode autoRemoveMode;
  8370. /* readonly */
  8371. Array<Billboard> billboards;
  8372. /* readonly */
  8373. BoundingBox boundingBox;
  8374. bool castShadows;
  8375. /* readonly */
  8376. String category;
  8377. float drawDistance;
  8378. ParticleEffect effect;
  8379. bool emitting;
  8380. bool enabled;
  8381. /* readonly */
  8382. bool enabledEffective;
  8383. FaceCameraMode faceCameraMode;
  8384. bool fixedScreenSize;
  8385. /* readonly */
  8386. uint id;
  8387. /* readonly */
  8388. bool inView;
  8389. uint lightMask;
  8390. float lodBias;
  8391. Material material;
  8392. uint maxLights;
  8393. /* readonly */
  8394. Node node;
  8395. /* readonly */
  8396. uint numAttributes;
  8397. uint numBillboards;
  8398. uint numParticles;
  8399. ObjectAnimation objectAnimation;
  8400. bool occludee;
  8401. bool occluder;
  8402. /* readonly */
  8403. int refs;
  8404. bool relative;
  8405. /* readonly */
  8406. bool replicated;
  8407. bool scaled;
  8408. bool serializeParticles;
  8409. float shadowDistance;
  8410. uint shadowMask;
  8411. bool sorted;
  8412. bool temporary;
  8413. /* readonly */
  8414. StringHash type;
  8415. /* readonly */
  8416. String typeName;
  8417. uint viewMask;
  8418. /* readonly */
  8419. int weakRefs;
  8420. /* readonly */
  8421. BoundingBox worldBoundingBox;
  8422. /* readonly */
  8423. Zone zone;
  8424. uint zoneMask;
  8425. };
  8426. class ParticleEmitter2D
  8427. {
  8428. public:
  8429. // Methods:
  8430. void ApplyAttributes();
  8431. void DrawDebugGeometry(DebugRenderer, bool);
  8432. Variant GetAttribute(const String&) const;
  8433. ValueAnimation GetAttributeAnimation(const String&) const;
  8434. float GetAttributeAnimationSpeed(const String&) const;
  8435. float GetAttributeAnimationTime(const String&) const;
  8436. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8437. Variant GetAttributeDefault(const String&) const;
  8438. bool GetInterceptNetworkUpdate(const String&) const;
  8439. bool HasSubscribedToEvent(Object, const String&);
  8440. bool HasSubscribedToEvent(const String&);
  8441. bool IsInView(Camera) const;
  8442. bool Load(File);
  8443. bool Load(VectorBuffer&);
  8444. bool LoadJSON(const JSONValue&);
  8445. bool LoadXML(const XMLElement&);
  8446. void MarkNetworkUpdate() const;
  8447. void Remove();
  8448. void RemoveAttributeAnimation(const String&);
  8449. void RemoveInstanceDefault();
  8450. void RemoveObjectAnimation();
  8451. void ResetToDefault();
  8452. bool Save(File) const;
  8453. bool Save(VectorBuffer&) const;
  8454. bool SaveJSON(JSONValue&) const;
  8455. bool SaveXML(XMLElement&) const;
  8456. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8457. void SetAnimationTime(float);
  8458. bool SetAttribute(const String&, const Variant&);
  8459. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8460. void SetAttributeAnimationSpeed(const String&, float);
  8461. void SetAttributeAnimationTime(const String&, float);
  8462. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8463. void SetInterceptNetworkUpdate(const String&, bool);
  8464. // Properties:
  8465. bool animationEnabled;
  8466. /* readonly */
  8467. Array<Variant> attributeDefaults;
  8468. /* readonly */
  8469. Array<AttributeInfo> attributeInfos;
  8470. Array<Variant> attributes;
  8471. BlendMode blendMode;
  8472. /* readonly */
  8473. BoundingBox boundingBox;
  8474. bool castShadows;
  8475. /* readonly */
  8476. String category;
  8477. float drawDistance;
  8478. ParticleEffect2D effect;
  8479. bool emitting;
  8480. bool enabled;
  8481. /* readonly */
  8482. bool enabledEffective;
  8483. /* readonly */
  8484. uint id;
  8485. /* readonly */
  8486. bool inView;
  8487. int layer;
  8488. uint lightMask;
  8489. float lodBias;
  8490. uint maxLights;
  8491. /* readonly */
  8492. Node node;
  8493. /* readonly */
  8494. uint numAttributes;
  8495. ObjectAnimation objectAnimation;
  8496. bool occludee;
  8497. bool occluder;
  8498. int orderInLayer;
  8499. /* readonly */
  8500. int refs;
  8501. /* readonly */
  8502. bool replicated;
  8503. float shadowDistance;
  8504. uint shadowMask;
  8505. Sprite2D sprite;
  8506. bool temporary;
  8507. /* readonly */
  8508. StringHash type;
  8509. /* readonly */
  8510. String typeName;
  8511. uint viewMask;
  8512. /* readonly */
  8513. int weakRefs;
  8514. /* readonly */
  8515. BoundingBox worldBoundingBox;
  8516. uint zoneMask;
  8517. };
  8518. class Pass
  8519. {
  8520. public:
  8521. // Properties:
  8522. bool alphaToCoverage;
  8523. BlendMode blendMode;
  8524. CullMode cullMode;
  8525. CompareMode depthTestMode;
  8526. bool depthWrite;
  8527. bool desktop;
  8528. PassLightingMode lightingMode;
  8529. String pixelShader;
  8530. String pixelShaderDefineExcludes;
  8531. String pixelShaderDefines;
  8532. /* readonly */
  8533. int refs;
  8534. String vertexShader;
  8535. String vertexShaderDefineExcludes;
  8536. String vertexShaderDefines;
  8537. /* readonly */
  8538. int weakRefs;
  8539. };
  8540. class PhysicsRaycastResult
  8541. {
  8542. public:
  8543. ~PhysicsRaycastResult();
  8544. PhysicsRaycastResult();
  8545. // Properties:
  8546. /* readonly */
  8547. RigidBody body;
  8548. float distance;
  8549. float hitFraction;
  8550. Vector3 normal;
  8551. Vector3 position;
  8552. };
  8553. class PhysicsRaycastResult2D
  8554. {
  8555. public:
  8556. ~PhysicsRaycastResult2D();
  8557. PhysicsRaycastResult2D();
  8558. // Properties:
  8559. /* readonly */
  8560. RigidBody2D body;
  8561. float distance;
  8562. Vector2 normal;
  8563. Vector2 position;
  8564. };
  8565. class PhysicsWorld
  8566. {
  8567. public:
  8568. // Methods:
  8569. void ApplyAttributes();
  8570. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  8571. void DrawDebugGeometry(DebugRenderer, bool);
  8572. void DrawDebugGeometry(bool);
  8573. Variant GetAttribute(const String&) const;
  8574. ValueAnimation GetAttributeAnimation(const String&) const;
  8575. float GetAttributeAnimationSpeed(const String&) const;
  8576. float GetAttributeAnimationTime(const String&) const;
  8577. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8578. Variant GetAttributeDefault(const String&) const;
  8579. Array<RigidBody> GetCollidingBodies(RigidBody);
  8580. bool GetInterceptNetworkUpdate(const String&) const;
  8581. Array<RigidBody> GetRigidBodies(RigidBody);
  8582. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  8583. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  8584. bool HasSubscribedToEvent(Object, const String&);
  8585. bool HasSubscribedToEvent(const String&);
  8586. bool Load(File);
  8587. bool Load(VectorBuffer&);
  8588. bool LoadJSON(const JSONValue&);
  8589. bool LoadXML(const XMLElement&);
  8590. void MarkNetworkUpdate() const;
  8591. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  8592. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  8593. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  8594. void Remove();
  8595. void RemoveAttributeAnimation(const String&);
  8596. void RemoveCachedGeometry(Model);
  8597. void RemoveInstanceDefault();
  8598. void RemoveObjectAnimation();
  8599. void ResetToDefault();
  8600. bool Save(File) const;
  8601. bool Save(VectorBuffer&) const;
  8602. bool SaveJSON(JSONValue&) const;
  8603. bool SaveXML(XMLElement&) const;
  8604. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8605. void SetAnimationTime(float);
  8606. bool SetAttribute(const String&, const Variant&);
  8607. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8608. void SetAttributeAnimationSpeed(const String&, float);
  8609. void SetAttributeAnimationTime(const String&, float);
  8610. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8611. void SetInterceptNetworkUpdate(const String&, bool);
  8612. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  8613. void Update(float);
  8614. void UpdateCollisions();
  8615. // Properties:
  8616. bool animationEnabled;
  8617. /* readonly */
  8618. Array<Variant> attributeDefaults;
  8619. /* readonly */
  8620. Array<AttributeInfo> attributeInfos;
  8621. Array<Variant> attributes;
  8622. /* readonly */
  8623. String category;
  8624. bool enabled;
  8625. /* readonly */
  8626. bool enabledEffective;
  8627. int fps;
  8628. Vector3 gravity;
  8629. /* readonly */
  8630. uint id;
  8631. bool internalEdge;
  8632. bool interpolation;
  8633. int maxSubSteps;
  8634. /* readonly */
  8635. Node node;
  8636. /* readonly */
  8637. uint numAttributes;
  8638. int numIterations;
  8639. ObjectAnimation objectAnimation;
  8640. /* readonly */
  8641. int refs;
  8642. /* readonly */
  8643. bool replicated;
  8644. bool splitImpulse;
  8645. bool temporary;
  8646. /* readonly */
  8647. StringHash type;
  8648. /* readonly */
  8649. String typeName;
  8650. bool updateEnabled;
  8651. /* readonly */
  8652. int weakRefs;
  8653. };
  8654. class PhysicsWorld2D
  8655. {
  8656. public:
  8657. // Methods:
  8658. void ApplyAttributes();
  8659. void DrawDebugGeometry() const;
  8660. void DrawDebugGeometry(DebugRenderer, bool);
  8661. Variant GetAttribute(const String&) const;
  8662. ValueAnimation GetAttributeAnimation(const String&) const;
  8663. float GetAttributeAnimationSpeed(const String&) const;
  8664. float GetAttributeAnimationTime(const String&) const;
  8665. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8666. Variant GetAttributeDefault(const String&) const;
  8667. bool GetInterceptNetworkUpdate(const String&) const;
  8668. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8669. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8670. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8671. bool HasSubscribedToEvent(Object, const String&);
  8672. bool HasSubscribedToEvent(const String&);
  8673. bool Load(File);
  8674. bool Load(VectorBuffer&);
  8675. bool LoadJSON(const JSONValue&);
  8676. bool LoadXML(const XMLElement&);
  8677. void MarkNetworkUpdate() const;
  8678. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8679. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8680. void Remove();
  8681. void RemoveAttributeAnimation(const String&);
  8682. void RemoveInstanceDefault();
  8683. void RemoveObjectAnimation();
  8684. void ResetToDefault();
  8685. bool Save(File) const;
  8686. bool Save(VectorBuffer&) const;
  8687. bool SaveJSON(JSONValue&) const;
  8688. bool SaveXML(XMLElement&) const;
  8689. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8690. void SetAnimationTime(float);
  8691. bool SetAttribute(const String&, const Variant&);
  8692. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8693. void SetAttributeAnimationSpeed(const String&, float);
  8694. void SetAttributeAnimationTime(const String&, float);
  8695. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8696. void SetInterceptNetworkUpdate(const String&, bool);
  8697. // Properties:
  8698. bool allowSleeping;
  8699. bool animationEnabled;
  8700. /* readonly */
  8701. Array<Variant> attributeDefaults;
  8702. /* readonly */
  8703. Array<AttributeInfo> attributeInfos;
  8704. Array<Variant> attributes;
  8705. bool autoClearForces;
  8706. /* readonly */
  8707. String category;
  8708. bool continuousPhysics;
  8709. bool drawAabb;
  8710. bool drawCenterOfMass;
  8711. bool drawJoint;
  8712. bool drawPair;
  8713. bool drawShape;
  8714. bool enabled;
  8715. /* readonly */
  8716. bool enabledEffective;
  8717. Vector2 gravity;
  8718. /* readonly */
  8719. uint id;
  8720. /* readonly */
  8721. Node node;
  8722. /* readonly */
  8723. uint numAttributes;
  8724. ObjectAnimation objectAnimation;
  8725. uint positionIterations;
  8726. /* readonly */
  8727. int refs;
  8728. /* readonly */
  8729. bool replicated;
  8730. bool subStepping;
  8731. bool temporary;
  8732. /* readonly */
  8733. StringHash type;
  8734. /* readonly */
  8735. String typeName;
  8736. bool updateEnabled;
  8737. uint velocityIterations;
  8738. bool warmStarting;
  8739. /* readonly */
  8740. int weakRefs;
  8741. };
  8742. class Plane
  8743. {
  8744. public:
  8745. Plane();
  8746. Plane(const Plane&in);
  8747. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  8748. Plane(const Vector3&in, const Vector3&in);
  8749. Plane(const Vector4&in);
  8750. // Methods:
  8751. void Define(const Vector3&, const Vector3&);
  8752. void Define(const Vector3&, const Vector3&, const Vector3&);
  8753. void Define(const Vector4&);
  8754. float Distance(const Vector3&) const;
  8755. Vector3 Project(const Vector3&) const;
  8756. Vector3 Reflect(const Vector3&) const;
  8757. Vector4 ToVector4() const;
  8758. void Transform(const Matrix3&);
  8759. void Transform(const Matrix3x4&);
  8760. void Transform(const Matrix4&);
  8761. Plane Transformed(const Matrix3&) const;
  8762. Plane Transformed(const Matrix3x4&) const;
  8763. Plane Transformed(const Matrix4&) const;
  8764. // Properties:
  8765. Vector3 absNormal;
  8766. float d;
  8767. Vector3 normal;
  8768. /* readonly */
  8769. Matrix3x4 reflectionMatrix;
  8770. };
  8771. class Polyhedron
  8772. {
  8773. public:
  8774. ~Polyhedron();
  8775. Polyhedron();
  8776. Polyhedron(const Polyhedron&in);
  8777. Polyhedron(const BoundingBox&in);
  8778. Polyhedron(const Frustum&in);
  8779. // Methods:
  8780. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8781. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8782. void AddFace(const Array<Vector3>);
  8783. void Clear();
  8784. void Clip(const BoundingBox&);
  8785. void Clip(const Frustum&);
  8786. void Define(const BoundingBox&);
  8787. void Define(const Frustum&);
  8788. void Transform(const Matrix3&);
  8789. void Transform(const Matrix3x4&);
  8790. Polyhedron Transformed(const Matrix3&) const;
  8791. Polyhedron Transformed(const Matrix3x4&) const;
  8792. // Properties:
  8793. /* readonly */
  8794. Array<Array<Vector3>> face;
  8795. /* readonly */
  8796. uint numFaces;
  8797. };
  8798. class ProgressBar
  8799. {
  8800. public:
  8801. // Methods:
  8802. void ChangeValue(float);
  8803. bool HasSubscribedToEvent(Object, const String&);
  8804. bool HasSubscribedToEvent(const String&);
  8805. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8806. void SetLoadingPercentStyle(const String&);
  8807. // Properties:
  8808. /* readonly */
  8809. String category;
  8810. /* readonly */
  8811. BorderImage knob;
  8812. Orientation orientation;
  8813. float range;
  8814. /* readonly */
  8815. int refs;
  8816. bool showPercentText;
  8817. /* readonly */
  8818. StringHash type;
  8819. /* readonly */
  8820. String typeName;
  8821. float value;
  8822. /* readonly */
  8823. int weakRefs;
  8824. };
  8825. class PropertySet2D
  8826. {
  8827. public:
  8828. // Methods:
  8829. bool HasProperty(const String&) const;
  8830. const String& GetProperty(const String&) const;
  8831. // Properties:
  8832. /* readonly */
  8833. int refs;
  8834. /* readonly */
  8835. int weakRefs;
  8836. };
  8837. class Quaternion
  8838. {
  8839. public:
  8840. Quaternion();
  8841. Quaternion(const Quaternion&in);
  8842. Quaternion(float, float, float, float);
  8843. Quaternion(float, const Vector3&in);
  8844. Quaternion(float);
  8845. Quaternion(float, float, float);
  8846. Quaternion(const Vector3&in);
  8847. Quaternion(const Vector3&in, const Vector3&in);
  8848. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  8849. Quaternion(const Matrix3&in);
  8850. // Methods:
  8851. Quaternion Conjugate() const;
  8852. float DotProduct(const Quaternion&) const;
  8853. bool Equals(const Quaternion&) const;
  8854. void FromAngleAxis(float, const Vector3&);
  8855. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8856. void FromEulerAngles(float, float, float);
  8857. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8858. void FromRotationMatrix(const Matrix3&);
  8859. void FromRotationTo(const Vector3&, const Vector3&);
  8860. Quaternion Inverse() const;
  8861. bool IsNaN() const;
  8862. float LengthSquared() const;
  8863. Quaternion Nlerp(const Quaternion&, float, bool) const;
  8864. void Normalize();
  8865. Quaternion Normalized() const;
  8866. Quaternion Slerp(const Quaternion&, float) const;
  8867. String ToString() const;
  8868. // Properties:
  8869. /* readonly */
  8870. float angle;
  8871. /* readonly */
  8872. Vector3 axis;
  8873. /* readonly */
  8874. Vector3 eulerAngles;
  8875. /* readonly */
  8876. float pitch;
  8877. /* readonly */
  8878. float roll;
  8879. /* readonly */
  8880. Matrix3 rotationMatrix;
  8881. float w;
  8882. float x;
  8883. float y;
  8884. /* readonly */
  8885. float yaw;
  8886. float z;
  8887. };
  8888. class Ray
  8889. {
  8890. public:
  8891. Ray();
  8892. Ray(const Ray&in);
  8893. Ray(const Vector3&in, const Vector3&in);
  8894. // Methods:
  8895. Vector3 ClosestPoint(const Ray&) const;
  8896. void Define(const Vector3&, const Vector3&);
  8897. float Distance(const Vector3&) const;
  8898. float HitDistance(const BoundingBox&) const;
  8899. float HitDistance(const Frustum&, bool = true) const;
  8900. float HitDistance(const Plane&) const;
  8901. float HitDistance(const Sphere&) const;
  8902. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8903. Vector3 Project(const Vector3&) const;
  8904. Ray Transformed(const Matrix3x4&) const;
  8905. // Properties:
  8906. Vector3 direction;
  8907. Vector3 origin;
  8908. };
  8909. class RayQueryResult
  8910. {
  8911. public:
  8912. RayQueryResult();
  8913. // Properties:
  8914. float distance;
  8915. /* readonly */
  8916. Drawable drawable;
  8917. /* readonly */
  8918. Node node;
  8919. Vector3 normal;
  8920. Vector3 position;
  8921. uint subObject;
  8922. Vector2 textureUV;
  8923. };
  8924. class RaycastVehicle
  8925. {
  8926. public:
  8927. // Methods:
  8928. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  8929. void ApplyAttributes();
  8930. void DrawDebugGeometry(DebugRenderer, bool);
  8931. Variant GetAttribute(const String&) const;
  8932. ValueAnimation GetAttributeAnimation(const String&) const;
  8933. float GetAttributeAnimationSpeed(const String&) const;
  8934. float GetAttributeAnimationTime(const String&) const;
  8935. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8936. Variant GetAttributeDefault(const String&) const;
  8937. float GetBrake(int);
  8938. Vector3 GetContactNormal(int);
  8939. Vector3 GetContactPosition(int);
  8940. float GetEngineForce(int);
  8941. bool GetInterceptNetworkUpdate(const String&) const;
  8942. float GetMaxSuspensionTravel(int);
  8943. float GetSteeringValue(int);
  8944. Vector3 GetWheelAxle(int);
  8945. Vector3 GetWheelConnectionPoint(int);
  8946. float GetWheelDampingCompression(int);
  8947. float GetWheelDampingRelaxation(int);
  8948. Vector3 GetWheelDirection(int);
  8949. float GetWheelFrictionSlip(int);
  8950. Node GetWheelNode(int);
  8951. Vector3 GetWheelPosition(int);
  8952. float GetWheelRadius(int);
  8953. float GetWheelRestLength(int);
  8954. float GetWheelRollInfluence(int);
  8955. Vector3 GetWheelRotation(int);
  8956. float GetWheelSideSlipSpeed(int);
  8957. float GetWheelSkidInfo(int);
  8958. float GetWheelSkidInfoCumulative(int);
  8959. float GetWheelSuspensionStiffness(int);
  8960. bool HasSubscribedToEvent(Object, const String&);
  8961. bool HasSubscribedToEvent(const String&);
  8962. void Init();
  8963. bool IsFrontWheel(int);
  8964. bool Load(File);
  8965. bool Load(VectorBuffer&);
  8966. bool LoadJSON(const JSONValue&);
  8967. bool LoadXML(const XMLElement&);
  8968. void MarkNetworkUpdate() const;
  8969. void Remove();
  8970. void RemoveAttributeAnimation(const String&);
  8971. void RemoveInstanceDefault();
  8972. void RemoveObjectAnimation();
  8973. void ResetSuspension();
  8974. void ResetToDefault();
  8975. void ResetWheels();
  8976. bool Save(File) const;
  8977. bool Save(VectorBuffer&) const;
  8978. bool SaveJSON(JSONValue&) const;
  8979. bool SaveXML(XMLElement&) const;
  8980. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8981. void SetAnimationTime(float);
  8982. bool SetAttribute(const String&, const Variant&);
  8983. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8984. void SetAttributeAnimationSpeed(const String&, float);
  8985. void SetAttributeAnimationTime(const String&, float);
  8986. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8987. void SetBrake(int, float);
  8988. void SetEngineForce(int, float);
  8989. void SetInterceptNetworkUpdate(const String&, bool);
  8990. void SetMaxSuspensionTravel(int, float);
  8991. void SetSteeringValue(int, float);
  8992. void SetWheelAxle(int, Vector3);
  8993. void SetWheelDampingCompression(int, float);
  8994. void SetWheelDampingRelaxation(int, float);
  8995. void SetWheelDirection(int, Vector3);
  8996. void SetWheelFrictionSlip(int, float);
  8997. void SetWheelRadius(int, float);
  8998. void SetWheelRestLength(int, float);
  8999. void SetWheelRollInfluence(int, float);
  9000. void SetWheelSkidInfo(int, float);
  9001. void SetWheelSkidInfoCumulative(int, float);
  9002. void SetWheelSuspensionStiffness(int, float);
  9003. void UpdateWheelTransform(int, bool);
  9004. bool WheelIsGrounded(int);
  9005. // Properties:
  9006. bool animationEnabled;
  9007. /* readonly */
  9008. Array<Variant> attributeDefaults;
  9009. /* readonly */
  9010. Array<AttributeInfo> attributeInfos;
  9011. Array<Variant> attributes;
  9012. /* readonly */
  9013. String category;
  9014. bool enabled;
  9015. /* readonly */
  9016. bool enabledEffective;
  9017. /* readonly */
  9018. uint id;
  9019. float inAirRPM;
  9020. float maxSideSlipSpeed;
  9021. /* readonly */
  9022. Node node;
  9023. /* readonly */
  9024. uint numAttributes;
  9025. /* readonly */
  9026. int numWheels;
  9027. ObjectAnimation objectAnimation;
  9028. /* readonly */
  9029. int refs;
  9030. /* readonly */
  9031. bool replicated;
  9032. bool temporary;
  9033. /* readonly */
  9034. StringHash type;
  9035. /* readonly */
  9036. String typeName;
  9037. /* readonly */
  9038. int weakRefs;
  9039. };
  9040. class Rect
  9041. {
  9042. public:
  9043. Rect();
  9044. Rect(const Rect&in);
  9045. Rect(float, float, float, float);
  9046. Rect(const Vector2&in, const Vector2&in);
  9047. Rect(const Vector4&in);
  9048. // Methods:
  9049. void Clear();
  9050. void Clip(const Rect&);
  9051. void Define(const Vector2&);
  9052. void Define(const Vector2&, const Vector2&);
  9053. bool Defined() const;
  9054. bool Equals(const Rect&) const;
  9055. Intersection IsInside(const Rect&) const;
  9056. Intersection IsInside(const Vector2&) const;
  9057. void Merge(const Rect&);
  9058. void Merge(const Vector2&);
  9059. Vector4 ToVector4() const;
  9060. // Properties:
  9061. float bottom;
  9062. /* readonly */
  9063. Vector2 center;
  9064. /* readonly */
  9065. Vector2 halfSize;
  9066. float left;
  9067. Vector2 max;
  9068. Vector2 min;
  9069. float right;
  9070. /* readonly */
  9071. Vector2 size;
  9072. float top;
  9073. };
  9074. class RefCounted
  9075. {
  9076. public:
  9077. // Properties:
  9078. /* readonly */
  9079. int refs;
  9080. /* readonly */
  9081. int weakRefs;
  9082. };
  9083. class RenderPath
  9084. {
  9085. public:
  9086. RenderPath();
  9087. // Methods:
  9088. void AddCommand(const RenderPathCommand&);
  9089. void AddRenderTarget(const RenderTargetInfo&);
  9090. bool Append(XMLFile);
  9091. RenderPath Clone();
  9092. void InsertCommand(uint, const RenderPathCommand&);
  9093. bool Load(XMLFile);
  9094. void RemoveCommand(uint);
  9095. void RemoveCommands(const String&);
  9096. void RemoveRenderTarget(const String&);
  9097. void RemoveRenderTarget(uint);
  9098. void RemoveRenderTargts(const String&);
  9099. void SetEnabled(const String&, bool);
  9100. void ToggleEnabled(const String&);
  9101. // Properties:
  9102. /* readonly */
  9103. Array<bool> added;
  9104. Array<RenderPathCommand> commands;
  9105. /* readonly */
  9106. Array<bool> enabled;
  9107. /* readonly */
  9108. uint numCommands;
  9109. /* readonly */
  9110. uint numRenderTargets;
  9111. /* readonly */
  9112. int refs;
  9113. Array<RenderTargetInfo> renderTargets;
  9114. Array<Variant> shaderParameters;
  9115. /* readonly */
  9116. int weakRefs;
  9117. };
  9118. class RenderPathCommand
  9119. {
  9120. public:
  9121. ~RenderPathCommand();
  9122. RenderPathCommand();
  9123. RenderPathCommand(const RenderPathCommand&in);
  9124. // Methods:
  9125. void RemoveShaderParameter(const String&);
  9126. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  9127. // Properties:
  9128. BlendMode blendMode;
  9129. Color clearColor;
  9130. float clearDepth;
  9131. uint clearFlags;
  9132. uint clearStencil;
  9133. String depthStencilName;
  9134. bool enabled;
  9135. String eventName;
  9136. bool markToStencil;
  9137. String metadata;
  9138. uint numOutputs;
  9139. Array<CubeMapFace> outputFaces;
  9140. Array<String> outputNames;
  9141. String pass;
  9142. String pixelShaderDefines;
  9143. String pixelShaderName;
  9144. Array<Variant> shaderParameters;
  9145. RenderCommandSortMode sortMode;
  9146. String tag;
  9147. Array<String> textureNames;
  9148. RenderCommandType type;
  9149. bool useFogColor;
  9150. bool useLitBase;
  9151. bool vertexLights;
  9152. String vertexShaderDefines;
  9153. String vertexShaderName;
  9154. };
  9155. class RenderSurface
  9156. {
  9157. public:
  9158. // Methods:
  9159. void QueueUpdate();
  9160. // Properties:
  9161. /* readonly */
  9162. int height;
  9163. RenderSurface linkedDepthStencil;
  9164. RenderSurface linkedRenderTarget;
  9165. uint numViewports;
  9166. /* readonly */
  9167. Texture parentTexture;
  9168. /* readonly */
  9169. bool resolveDirty;
  9170. RenderSurfaceUpdateMode updateMode;
  9171. /* readonly */
  9172. TextureUsage usage;
  9173. Array<Viewport> viewports;
  9174. /* readonly */
  9175. int width;
  9176. };
  9177. class RenderTargetInfo
  9178. {
  9179. public:
  9180. ~RenderTargetInfo();
  9181. RenderTargetInfo();
  9182. RenderTargetInfo(const RenderTargetInfo&in);
  9183. // Properties:
  9184. bool autoResolve;
  9185. bool cubemap;
  9186. bool enabled;
  9187. bool filtered;
  9188. uint format;
  9189. int multiSample;
  9190. String name;
  9191. bool persistent;
  9192. bool sRGB;
  9193. Vector2 size;
  9194. RenderTargetSizeMode sizeMode;
  9195. String tag;
  9196. };
  9197. class Renderer
  9198. {
  9199. public:
  9200. // Methods:
  9201. void DrawDebugGeometry(bool) const;
  9202. Viewport GetViewportForScene(Scene, uint);
  9203. bool HasSubscribedToEvent(Object, const String&);
  9204. bool HasSubscribedToEvent(const String&);
  9205. void ReloadShaders() const;
  9206. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9207. void SetDefaultRenderPath(XMLFile);
  9208. void SetVSMShadowParameters(float, float);
  9209. // Properties:
  9210. /* readonly */
  9211. String category;
  9212. /* readonly */
  9213. Material defaultLightRamp;
  9214. /* readonly */
  9215. Material defaultLightSpot;
  9216. /* readonly */
  9217. Material defaultMaterial;
  9218. RenderPath defaultRenderPath;
  9219. Technique defaultTechnique;
  9220. /* readonly */
  9221. Zone defaultZone;
  9222. bool drawShadows;
  9223. bool dynamicInstancing;
  9224. bool hdrRendering;
  9225. int materialQuality;
  9226. int maxOccluderTriangles;
  9227. int maxShadowMaps;
  9228. int maxSortedInstances;
  9229. int minInstances;
  9230. float mobileNormalOffsetMul;
  9231. float mobileShadowBiasAdd;
  9232. float mobileShadowBiasMul;
  9233. /* readonly */
  9234. uint numBatches;
  9235. int numExtraInstancingBufferElements;
  9236. /* readonly */
  9237. Array<uint> numGeometries;
  9238. /* readonly */
  9239. Array<uint> numLights;
  9240. /* readonly */
  9241. Array<uint> numOccluders;
  9242. /* readonly */
  9243. uint numPrimitives;
  9244. /* readonly */
  9245. Array<uint> numShadowMaps;
  9246. uint numViewports;
  9247. /* readonly */
  9248. uint numViews;
  9249. float occluderSizeThreshold;
  9250. int occlusionBufferSize;
  9251. /* readonly */
  9252. int refs;
  9253. bool reuseShadowMaps;
  9254. int shadowMapSize;
  9255. ShadowQuality shadowQuality;
  9256. float shadowSoftness;
  9257. bool specularLighting;
  9258. int textureAnisotropy;
  9259. TextureFilterMode textureFilterMode;
  9260. int textureQuality;
  9261. bool threadedOcclusion;
  9262. /* readonly */
  9263. StringHash type;
  9264. /* readonly */
  9265. String typeName;
  9266. Array<Viewport> viewports;
  9267. int vsmMultiSample;
  9268. Vector2 vsmShadowParameters;
  9269. /* readonly */
  9270. int weakRefs;
  9271. };
  9272. class Resource
  9273. {
  9274. public:
  9275. // Methods:
  9276. bool HasSubscribedToEvent(Object, const String&);
  9277. bool HasSubscribedToEvent(const String&);
  9278. bool Load(File);
  9279. bool Load(VectorBuffer&);
  9280. bool Load(const String&);
  9281. bool Save(File) const;
  9282. bool Save(VectorBuffer&) const;
  9283. bool Save(const String&) const;
  9284. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9285. // Properties:
  9286. /* readonly */
  9287. String category;
  9288. /* readonly */
  9289. uint memoryUse;
  9290. String name;
  9291. /* readonly */
  9292. int refs;
  9293. /* readonly */
  9294. StringHash type;
  9295. /* readonly */
  9296. String typeName;
  9297. /* readonly */
  9298. uint useTimer;
  9299. /* readonly */
  9300. int weakRefs;
  9301. };
  9302. class ResourceCache
  9303. {
  9304. public:
  9305. // Methods:
  9306. bool AddManualResource(Resource);
  9307. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  9308. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  9309. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  9310. bool BackgroundLoadResource(const String&, const String&, bool = true);
  9311. bool Exists(const String&) const;
  9312. Resource GetExistingResource(StringHash, const String&);
  9313. Resource GetExistingResource(const String&, const String&);
  9314. File GetFile(const String&);
  9315. String GetPreferredResourceDir(const String&) const;
  9316. Resource GetResource(StringHash, const String&, bool = true);
  9317. Resource GetResource(const String&, const String&, bool = true);
  9318. String GetResourceFileName(const String&) const;
  9319. Array<Resource> GetResources(StringHash);
  9320. Array<Resource> GetResources(const String&);
  9321. bool HasSubscribedToEvent(Object, const String&);
  9322. bool HasSubscribedToEvent(const String&);
  9323. void ReleaseAllResources(bool = false);
  9324. void ReleaseResource(const String&, const String&, bool = false);
  9325. void ReleaseResources(StringHash, bool = false);
  9326. void ReleaseResources(const String&, bool = false);
  9327. void ReleaseResources(const String&, const String&, bool = false);
  9328. bool ReloadResource(Resource);
  9329. void ReloadResourceWithDependencies(const String&);
  9330. void RemovePackageFile(PackageFile, bool = true, bool = false);
  9331. void RemovePackageFile(const String&, bool = true, bool = false);
  9332. void RemoveResourceDir(const String&);
  9333. String SanitateResourceDirName(const String&) const;
  9334. String SanitateResourceName(const String&) const;
  9335. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9336. // Properties:
  9337. bool autoReloadResources;
  9338. /* readonly */
  9339. String category;
  9340. int finishBackgroundResourcesMs;
  9341. Array<uint64> memoryBudget;
  9342. /* readonly */
  9343. Array<uint64> memoryUse;
  9344. /* readonly */
  9345. uint numBackgroundLoadResources;
  9346. /* readonly */
  9347. Array<PackageFile> packageFiles;
  9348. /* readonly */
  9349. int refs;
  9350. /* readonly */
  9351. Array<String> resourceDirs;
  9352. bool returnFailedResources;
  9353. /* readonly */
  9354. bool seachPackagesFirst;
  9355. /* writeonly */
  9356. bool searchPackagesFirst;
  9357. /* readonly */
  9358. uint64 totalMemoryUse;
  9359. /* readonly */
  9360. StringHash type;
  9361. /* readonly */
  9362. String typeName;
  9363. /* readonly */
  9364. int weakRefs;
  9365. };
  9366. class ResourceRef
  9367. {
  9368. public:
  9369. ~ResourceRef();
  9370. ResourceRef();
  9371. ResourceRef(const ResourceRef&in);
  9372. ResourceRef(const String&in, const String&in);
  9373. // Properties:
  9374. String name;
  9375. StringHash type;
  9376. };
  9377. class ResourceRefList
  9378. {
  9379. public:
  9380. ~ResourceRefList();
  9381. ResourceRefList();
  9382. ResourceRefList(const ResourceRefList&in);
  9383. // Methods:
  9384. void Resize(uint);
  9385. // Properties:
  9386. /* readonly */
  9387. bool empty;
  9388. /* readonly */
  9389. uint length;
  9390. Array<String> names;
  9391. StringHash type;
  9392. };
  9393. class RibbonTrail
  9394. {
  9395. public:
  9396. // Methods:
  9397. void ApplyAttributes();
  9398. void Commit();
  9399. void DrawDebugGeometry(DebugRenderer, bool);
  9400. Variant GetAttribute(const String&) const;
  9401. ValueAnimation GetAttributeAnimation(const String&) const;
  9402. float GetAttributeAnimationSpeed(const String&) const;
  9403. float GetAttributeAnimationTime(const String&) const;
  9404. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9405. Variant GetAttributeDefault(const String&) const;
  9406. bool GetInterceptNetworkUpdate(const String&) const;
  9407. bool HasSubscribedToEvent(Object, const String&);
  9408. bool HasSubscribedToEvent(const String&);
  9409. bool IsInView(Camera) const;
  9410. bool Load(File);
  9411. bool Load(VectorBuffer&);
  9412. bool LoadJSON(const JSONValue&);
  9413. bool LoadXML(const XMLElement&);
  9414. void MarkNetworkUpdate() const;
  9415. void Remove();
  9416. void RemoveAttributeAnimation(const String&);
  9417. void RemoveInstanceDefault();
  9418. void RemoveObjectAnimation();
  9419. void ResetToDefault();
  9420. bool Save(File) const;
  9421. bool Save(VectorBuffer&) const;
  9422. bool SaveJSON(JSONValue&) const;
  9423. bool SaveXML(XMLElement&) const;
  9424. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9425. void SetAnimationTime(float);
  9426. bool SetAttribute(const String&, const Variant&);
  9427. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9428. void SetAttributeAnimationSpeed(const String&, float);
  9429. void SetAttributeAnimationTime(const String&, float);
  9430. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9431. void SetInterceptNetworkUpdate(const String&, bool);
  9432. // Properties:
  9433. bool animationEnabled;
  9434. float animationLodBias;
  9435. /* readonly */
  9436. Array<Variant> attributeDefaults;
  9437. /* readonly */
  9438. Array<AttributeInfo> attributeInfos;
  9439. Array<Variant> attributes;
  9440. /* readonly */
  9441. BoundingBox boundingBox;
  9442. bool castShadows;
  9443. /* readonly */
  9444. String category;
  9445. float drawDistance;
  9446. bool emitting;
  9447. bool enabled;
  9448. /* readonly */
  9449. bool enabledEffective;
  9450. Color endColor;
  9451. float endScale;
  9452. /* readonly */
  9453. uint id;
  9454. /* readonly */
  9455. bool inView;
  9456. float lifetime;
  9457. uint lightMask;
  9458. float lodBias;
  9459. Material material;
  9460. uint maxLights;
  9461. /* readonly */
  9462. Node node;
  9463. /* readonly */
  9464. uint numAttributes;
  9465. ObjectAnimation objectAnimation;
  9466. bool occludee;
  9467. bool occluder;
  9468. /* readonly */
  9469. int refs;
  9470. /* readonly */
  9471. bool replicated;
  9472. float shadowDistance;
  9473. uint shadowMask;
  9474. bool sorted;
  9475. Color startColor;
  9476. float startScale;
  9477. uint tailColumn;
  9478. bool temporary;
  9479. TrailType trailType;
  9480. /* readonly */
  9481. StringHash type;
  9482. /* readonly */
  9483. String typeName;
  9484. bool updateInvisible;
  9485. float vertexDistance;
  9486. uint viewMask;
  9487. /* readonly */
  9488. int weakRefs;
  9489. float width;
  9490. /* readonly */
  9491. BoundingBox worldBoundingBox;
  9492. /* readonly */
  9493. Zone zone;
  9494. uint zoneMask;
  9495. };
  9496. class RigidBody
  9497. {
  9498. public:
  9499. // Methods:
  9500. void Activate();
  9501. void ApplyAttributes();
  9502. void ApplyForce(const Vector3&);
  9503. void ApplyForce(const Vector3&, const Vector3&);
  9504. void ApplyImpulse(const Vector3&);
  9505. void ApplyImpulse(const Vector3&, const Vector3&);
  9506. void ApplyTorque(const Vector3&);
  9507. void ApplyTorqueImpulse(const Vector3&);
  9508. void DisableMassUpdate();
  9509. void DrawDebugGeometry(DebugRenderer, bool);
  9510. void EnableMassUpdate();
  9511. Variant GetAttribute(const String&) const;
  9512. ValueAnimation GetAttributeAnimation(const String&) const;
  9513. float GetAttributeAnimationSpeed(const String&) const;
  9514. float GetAttributeAnimationTime(const String&) const;
  9515. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9516. Variant GetAttributeDefault(const String&) const;
  9517. bool GetInterceptNetworkUpdate(const String&) const;
  9518. Vector3 GetVelocityAtPoint(const Vector3&) const;
  9519. bool HasSubscribedToEvent(Object, const String&);
  9520. bool HasSubscribedToEvent(const String&);
  9521. bool Load(File);
  9522. bool Load(VectorBuffer&);
  9523. bool LoadJSON(const JSONValue&);
  9524. bool LoadXML(const XMLElement&);
  9525. void MarkNetworkUpdate() const;
  9526. void ReAddBodyToWorld();
  9527. void Remove();
  9528. void RemoveAttributeAnimation(const String&);
  9529. void RemoveInstanceDefault();
  9530. void RemoveObjectAnimation();
  9531. void ResetForces();
  9532. void ResetToDefault();
  9533. bool Save(File) const;
  9534. bool Save(VectorBuffer&) const;
  9535. bool SaveJSON(JSONValue&) const;
  9536. bool SaveXML(XMLElement&) const;
  9537. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9538. void SetAnimationTime(float);
  9539. bool SetAttribute(const String&, const Variant&);
  9540. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9541. void SetAttributeAnimationSpeed(const String&, float);
  9542. void SetAttributeAnimationTime(const String&, float);
  9543. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9544. void SetCollisionLayerAndMask(uint, uint);
  9545. void SetInterceptNetworkUpdate(const String&, bool);
  9546. void SetTransform(const Vector3&, const Quaternion&);
  9547. // Properties:
  9548. /* readonly */
  9549. bool active;
  9550. float angularDamping;
  9551. Vector3 angularFactor;
  9552. float angularRestThreshold;
  9553. Vector3 angularVelocity;
  9554. bool animationEnabled;
  9555. Vector3 anisotropicFriction;
  9556. /* readonly */
  9557. Array<Variant> attributeDefaults;
  9558. /* readonly */
  9559. Array<AttributeInfo> attributeInfos;
  9560. Array<Variant> attributes;
  9561. /* readonly */
  9562. String category;
  9563. float ccdMotionThreshold;
  9564. float ccdRadius;
  9565. /* readonly */
  9566. Vector3 centerOfMass;
  9567. /* readonly */
  9568. Array<RigidBody> collidingBodies;
  9569. CollisionEventMode collisionEventMode;
  9570. uint collisionLayer;
  9571. uint collisionMask;
  9572. float contactProcessingThreshold;
  9573. bool enabled;
  9574. /* readonly */
  9575. bool enabledEffective;
  9576. float friction;
  9577. Vector3 gravityOverride;
  9578. /* readonly */
  9579. uint id;
  9580. bool kinematic;
  9581. float linearDamping;
  9582. Vector3 linearFactor;
  9583. float linearRestThreshold;
  9584. Vector3 linearVelocity;
  9585. float mass;
  9586. /* readonly */
  9587. Node node;
  9588. /* readonly */
  9589. uint numAttributes;
  9590. ObjectAnimation objectAnimation;
  9591. Vector3 position;
  9592. /* readonly */
  9593. int refs;
  9594. /* readonly */
  9595. bool replicated;
  9596. float restitution;
  9597. float rollingFriction;
  9598. Quaternion rotation;
  9599. bool temporary;
  9600. bool trigger;
  9601. /* readonly */
  9602. StringHash type;
  9603. /* readonly */
  9604. String typeName;
  9605. bool useGravity;
  9606. /* readonly */
  9607. int weakRefs;
  9608. };
  9609. class RigidBody2D
  9610. {
  9611. public:
  9612. // Methods:
  9613. void ApplyAngularImpulse(float, bool);
  9614. void ApplyAttributes();
  9615. void ApplyForce(const Vector2&, const Vector2&, bool);
  9616. void ApplyForceToCenter(const Vector2&, bool);
  9617. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  9618. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  9619. void ApplyTorque(float, bool);
  9620. void DrawDebugGeometry(DebugRenderer, bool);
  9621. Variant GetAttribute(const String&) const;
  9622. ValueAnimation GetAttributeAnimation(const String&) const;
  9623. float GetAttributeAnimationSpeed(const String&) const;
  9624. float GetAttributeAnimationTime(const String&) const;
  9625. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9626. Variant GetAttributeDefault(const String&) const;
  9627. bool GetInterceptNetworkUpdate(const String&) const;
  9628. bool HasSubscribedToEvent(Object, const String&);
  9629. bool HasSubscribedToEvent(const String&);
  9630. bool Load(File);
  9631. bool Load(VectorBuffer&);
  9632. bool LoadJSON(const JSONValue&);
  9633. bool LoadXML(const XMLElement&);
  9634. void MarkNetworkUpdate() const;
  9635. void Remove();
  9636. void RemoveAttributeAnimation(const String&);
  9637. void RemoveInstanceDefault();
  9638. void RemoveObjectAnimation();
  9639. void ResetToDefault();
  9640. bool Save(File) const;
  9641. bool Save(VectorBuffer&) const;
  9642. bool SaveJSON(JSONValue&) const;
  9643. bool SaveXML(XMLElement&) const;
  9644. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9645. void SetAnimationTime(float);
  9646. bool SetAttribute(const String&, const Variant&);
  9647. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9648. void SetAttributeAnimationSpeed(const String&, float);
  9649. void SetAttributeAnimationTime(const String&, float);
  9650. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9651. void SetInterceptNetworkUpdate(const String&, bool);
  9652. // Properties:
  9653. bool allowSleep;
  9654. float angularDamping;
  9655. bool animationEnabled;
  9656. /* readonly */
  9657. Array<Variant> attributeDefaults;
  9658. /* readonly */
  9659. Array<AttributeInfo> attributeInfos;
  9660. Array<Variant> attributes;
  9661. bool awake;
  9662. BodyType2D bodyType;
  9663. bool bullet;
  9664. /* readonly */
  9665. String category;
  9666. bool enabled;
  9667. /* readonly */
  9668. bool enabledEffective;
  9669. bool fixedRotation;
  9670. float gravityScale;
  9671. /* readonly */
  9672. uint id;
  9673. float inertia;
  9674. float linearDamping;
  9675. Vector2 linearVelocity;
  9676. float mass;
  9677. Vector2 massCenter;
  9678. /* readonly */
  9679. Node node;
  9680. /* readonly */
  9681. uint numAttributes;
  9682. ObjectAnimation objectAnimation;
  9683. /* readonly */
  9684. int refs;
  9685. /* readonly */
  9686. bool replicated;
  9687. bool temporary;
  9688. /* readonly */
  9689. StringHash type;
  9690. /* readonly */
  9691. String typeName;
  9692. bool useFixtureMass;
  9693. /* readonly */
  9694. int weakRefs;
  9695. };
  9696. class Scene
  9697. {
  9698. public:
  9699. Scene();
  9700. Scene(const String&in);
  9701. // Methods:
  9702. void AddChild(Node, uint = M_MAX_UNSIGNED);
  9703. void AddRequiredPackageFile(PackageFile);
  9704. void AddTag(const String&);
  9705. void AddTags(const String&, int8 = ';');
  9706. void ApplyAttributes();
  9707. void Clear(bool = true, bool = true);
  9708. void ClearRequiredPackageFiles();
  9709. Component CloneComponent(Component, CreateMode, uint = 0);
  9710. Component CloneComponent(Component, uint = 0);
  9711. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  9712. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9713. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  9714. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  9715. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  9716. Variant GetAttribute(const String&) const;
  9717. ValueAnimation GetAttributeAnimation(const String&) const;
  9718. float GetAttributeAnimationSpeed(const String&) const;
  9719. float GetAttributeAnimationTime(const String&) const;
  9720. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9721. Variant GetAttributeDefault(const String&) const;
  9722. Node GetChild(const String&, bool = false) const;
  9723. Array<Node> GetChildren(bool = false) const;
  9724. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  9725. Array<Node> GetChildrenWithScript(bool = false) const;
  9726. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  9727. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  9728. Component GetComponent(const String&, bool = false) const;
  9729. Component GetComponent(uint) const;
  9730. Array<Component> GetComponents() const;
  9731. Array<Component> GetComponents(const String&, bool = false) const;
  9732. bool GetInterceptNetworkUpdate(const String&) const;
  9733. Node GetNode(uint) const;
  9734. Array<Node> GetNodesWithTag(const String&) const;
  9735. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9736. Component GetParentComponent(const String&, bool = false) const;
  9737. ScriptObject GetScriptObject() const;
  9738. ScriptObject GetScriptObject(const String&) const;
  9739. bool HasComponent(const String&) const;
  9740. bool HasSubscribedToEvent(Object, const String&);
  9741. bool HasSubscribedToEvent(const String&);
  9742. bool HasTag(const String&);
  9743. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9744. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9745. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9746. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9747. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9748. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9749. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9750. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9751. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9752. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9753. bool IsChildOf(Node) const;
  9754. bool Load(File);
  9755. bool Load(VectorBuffer&);
  9756. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9757. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9758. bool LoadJSON(File);
  9759. bool LoadJSON(VectorBuffer&);
  9760. bool LoadJSON(const JSONValue&);
  9761. bool LoadXML(File);
  9762. bool LoadXML(VectorBuffer&);
  9763. bool LoadXML(const XMLElement&);
  9764. Vector3 LocalToWorld(const Vector3&) const;
  9765. Vector3 LocalToWorld(const Vector4&) const;
  9766. Vector2 LocalToWorld2D(const Vector2&) const;
  9767. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  9768. void MarkNetworkUpdate() const;
  9769. void Pitch(float, TransformSpace = TS_LOCAL);
  9770. void RegisterVar(const String&);
  9771. void Remove();
  9772. void RemoveAllChildren();
  9773. void RemoveAllComponents();
  9774. void RemoveAllTags();
  9775. void RemoveAttributeAnimation(const String&);
  9776. void RemoveChild(Node);
  9777. void RemoveChildren(bool, bool, bool);
  9778. void RemoveComponent(Component);
  9779. void RemoveComponent(const String&);
  9780. void RemoveComponents(bool, bool);
  9781. void RemoveComponents(const String&);
  9782. void RemoveInstanceDefault();
  9783. void RemoveObjectAnimation();
  9784. bool RemoveTag(const String&);
  9785. void ReorderComponent(Component, uint);
  9786. void ResetToDefault();
  9787. void Roll(float, TransformSpace = TS_LOCAL);
  9788. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  9789. void Rotate2D(float, TransformSpace = TS_LOCAL);
  9790. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  9791. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  9792. bool Save(File) const;
  9793. bool Save(VectorBuffer&) const;
  9794. bool SaveJSON(File, const String& = "\t");
  9795. bool SaveJSON(JSONValue&) const;
  9796. bool SaveJSON(VectorBuffer&, const String& = "\t");
  9797. bool SaveXML(File, const String& = "\t");
  9798. bool SaveXML(VectorBuffer&, const String& = "\t");
  9799. bool SaveXML(XMLElement&) const;
  9800. void Scale(const Vector3&);
  9801. void Scale(float);
  9802. void Scale2D(const Vector2&);
  9803. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9804. void SetAnimationTime(float);
  9805. bool SetAttribute(const String&, const Variant&);
  9806. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9807. void SetAttributeAnimationSpeed(const String&, float);
  9808. void SetAttributeAnimationTime(const String&, float);
  9809. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9810. void SetInterceptNetworkUpdate(const String&, bool);
  9811. void SetPosition2D(float, float);
  9812. void SetScale(float);
  9813. void SetScale2D(float, float);
  9814. void SetTransform(const Matrix3x4&);
  9815. void SetTransform(const Vector3&, const Quaternion&);
  9816. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  9817. void SetTransform(const Vector3&, const Quaternion&, float);
  9818. void SetTransform2D(const Vector2&, float);
  9819. void SetTransform2D(const Vector2&, float, const Vector2&);
  9820. void SetTransform2D(const Vector2&, float, float);
  9821. void SetWorldTransform(const Vector3&, const Quaternion&);
  9822. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  9823. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  9824. void SetWorldTransform2D(const Vector2&, float);
  9825. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  9826. void SetWorldTransform2D(const Vector2&, float, float);
  9827. void StopAsyncLoading();
  9828. const String& GetVarName(StringHash) const;
  9829. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  9830. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  9831. void UnregisterAllVars(const String&);
  9832. void UnregisterVar(const String&);
  9833. void Update(float);
  9834. Vector3 WorldToLocal(const Vector3&) const;
  9835. Vector3 WorldToLocal(const Vector4&) const;
  9836. Vector2 WorldToLocal2D(const Vector2&) const;
  9837. void Yaw(float, TransformSpace = TS_LOCAL);
  9838. // Properties:
  9839. /* readonly */
  9840. Array<Node> allChildrenByName;
  9841. bool animationEnabled;
  9842. /* readonly */
  9843. LoadMode asyncLoadMode;
  9844. /* readonly */
  9845. bool asyncLoading;
  9846. int asyncLoadingMs;
  9847. /* readonly */
  9848. float asyncProgress;
  9849. /* readonly */
  9850. Array<Variant> attributeDefaults;
  9851. /* readonly */
  9852. Array<AttributeInfo> attributeInfos;
  9853. Array<Variant> attributes;
  9854. /* readonly */
  9855. String category;
  9856. /* readonly */
  9857. uint checksum;
  9858. /* readonly */
  9859. Array<Node> children;
  9860. /* readonly */
  9861. Array<Node> childrenByName;
  9862. /* readonly */
  9863. Array<Component> components;
  9864. /* readonly */
  9865. DebugRenderer debugRenderer;
  9866. Vector3 direction;
  9867. float elapsedTime;
  9868. /* readonly */
  9869. String fileName;
  9870. uint id;
  9871. String name;
  9872. /* readonly */
  9873. uint numAllChildren;
  9874. /* readonly */
  9875. uint numAttributes;
  9876. /* readonly */
  9877. uint numChildren;
  9878. /* readonly */
  9879. uint numComponents;
  9880. ObjectAnimation objectAnimation;
  9881. /* readonly */
  9882. Octree octree;
  9883. Node parent;
  9884. /* readonly */
  9885. PhysicsWorld physicsWorld;
  9886. /* readonly */
  9887. PhysicsWorld2D physicsWorld2D;
  9888. Vector3 position;
  9889. Vector2 position2D;
  9890. /* readonly */
  9891. int refs;
  9892. /* readonly */
  9893. bool replicated;
  9894. /* readonly */
  9895. Array<PackageFile> requiredPackageFiles;
  9896. /* readonly */
  9897. Vector3 right;
  9898. Quaternion rotation;
  9899. float rotation2D;
  9900. Vector3 scale;
  9901. Vector2 scale2D;
  9902. /* readonly */
  9903. ScriptObject scriptObject;
  9904. /* readonly */
  9905. Vector3 signedWorldScale;
  9906. float smoothingConstant;
  9907. float snapThreshold;
  9908. /* readonly */
  9909. Array<String> tags;
  9910. bool temporary;
  9911. float timeScale;
  9912. /* readonly */
  9913. Matrix3x4 transform;
  9914. /* readonly */
  9915. StringHash type;
  9916. /* readonly */
  9917. String typeName;
  9918. /* readonly */
  9919. Vector3 up;
  9920. bool updateEnabled;
  9921. /* readonly */
  9922. VariantMap vars;
  9923. /* readonly */
  9924. int weakRefs;
  9925. Vector3 worldDirection;
  9926. Vector3 worldPosition;
  9927. Vector2 worldPosition2D;
  9928. /* readonly */
  9929. Vector3 worldRight;
  9930. Quaternion worldRotation;
  9931. float worldRotation2D;
  9932. Vector3 worldScale;
  9933. Vector2 worldScale2D;
  9934. /* readonly */
  9935. Matrix3x4 worldTransform;
  9936. /* readonly */
  9937. Vector3 worldUp;
  9938. };
  9939. class Script
  9940. {
  9941. public:
  9942. // Methods:
  9943. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9944. bool Execute(const String&);
  9945. bool HasSubscribedToEvent(Object, const String&);
  9946. bool HasSubscribedToEvent(const String&);
  9947. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9948. // Properties:
  9949. /* readonly */
  9950. String category;
  9951. Scene defaultScene;
  9952. ScriptFile defaultScriptFile;
  9953. bool executeConsoleCommands;
  9954. /* readonly */
  9955. int refs;
  9956. /* readonly */
  9957. StringHash type;
  9958. /* readonly */
  9959. String typeName;
  9960. /* readonly */
  9961. int weakRefs;
  9962. };
  9963. class ScriptFile
  9964. {
  9965. public:
  9966. ScriptFile();
  9967. ScriptFile(const String&in);
  9968. // Methods:
  9969. void ClearDelayedExecute(const String& = String ( ));
  9970. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9971. bool Execute(const String&, const Array<Variant> = null);
  9972. bool HasSubscribedToEvent(Object, const String&);
  9973. bool HasSubscribedToEvent(const String&);
  9974. bool Load(File);
  9975. bool Load(VectorBuffer&);
  9976. bool Load(const String&);
  9977. bool Save(File) const;
  9978. bool Save(VectorBuffer&) const;
  9979. bool Save(const String&) const;
  9980. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9981. // Properties:
  9982. /* readonly */
  9983. String category;
  9984. /* readonly */
  9985. bool compiled;
  9986. /* readonly */
  9987. uint memoryUse;
  9988. String name;
  9989. /* readonly */
  9990. int refs;
  9991. /* readonly */
  9992. StringHash type;
  9993. /* readonly */
  9994. String typeName;
  9995. /* readonly */
  9996. uint useTimer;
  9997. /* readonly */
  9998. int weakRefs;
  9999. };
  10000. class ScriptInstance
  10001. {
  10002. public:
  10003. // Methods:
  10004. void ApplyAttributes();
  10005. void ClearDelayedExecute(const String& = String ( ));
  10006. bool CreateObject(ScriptFile, const String&);
  10007. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  10008. void DrawDebugGeometry(DebugRenderer, bool);
  10009. bool Execute(const String&, const Array<Variant> = null);
  10010. Variant GetAttribute(const String&) const;
  10011. ValueAnimation GetAttributeAnimation(const String&) const;
  10012. float GetAttributeAnimationSpeed(const String&) const;
  10013. float GetAttributeAnimationTime(const String&) const;
  10014. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10015. Variant GetAttributeDefault(const String&) const;
  10016. bool GetInterceptNetworkUpdate(const String&) const;
  10017. bool HasMethod(const String&) const;
  10018. bool HasSubscribedToEvent(Object, const String&);
  10019. bool HasSubscribedToEvent(const String&);
  10020. bool IsA(const String&) const;
  10021. bool Load(File);
  10022. bool Load(VectorBuffer&);
  10023. bool LoadJSON(const JSONValue&);
  10024. bool LoadXML(const XMLElement&);
  10025. void MarkNetworkUpdate() const;
  10026. void Remove();
  10027. void RemoveAttributeAnimation(const String&);
  10028. void RemoveInstanceDefault();
  10029. void RemoveObjectAnimation();
  10030. void ResetToDefault();
  10031. bool Save(File) const;
  10032. bool Save(VectorBuffer&) const;
  10033. bool SaveJSON(JSONValue&) const;
  10034. bool SaveXML(XMLElement&) const;
  10035. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10036. void SetAnimationTime(float);
  10037. bool SetAttribute(const String&, const Variant&);
  10038. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10039. void SetAttributeAnimationSpeed(const String&, float);
  10040. void SetAttributeAnimationTime(const String&, float);
  10041. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10042. void SetInterceptNetworkUpdate(const String&, bool);
  10043. // Properties:
  10044. bool animationEnabled;
  10045. /* readonly */
  10046. Array<Variant> attributeDefaults;
  10047. /* readonly */
  10048. Array<AttributeInfo> attributeInfos;
  10049. Array<Variant> attributes;
  10050. /* readonly */
  10051. String category;
  10052. String className;
  10053. bool enabled;
  10054. /* readonly */
  10055. bool enabledEffective;
  10056. /* readonly */
  10057. uint id;
  10058. /* readonly */
  10059. Node node;
  10060. /* readonly */
  10061. uint numAttributes;
  10062. ObjectAnimation objectAnimation;
  10063. /* readonly */
  10064. int refs;
  10065. /* readonly */
  10066. bool replicated;
  10067. ScriptFile scriptFile;
  10068. /* readonly */
  10069. ScriptObject scriptObject;
  10070. bool temporary;
  10071. /* readonly */
  10072. StringHash type;
  10073. /* readonly */
  10074. String typeName;
  10075. /* readonly */
  10076. int weakRefs;
  10077. };
  10078. class ScriptObject
  10079. {
  10080. public:
  10081. };
  10082. class ScrollBar
  10083. {
  10084. public:
  10085. ScrollBar();
  10086. ScrollBar(const String&in);
  10087. // Methods:
  10088. void AddChild(UIElement);
  10089. void AddTag(const String&);
  10090. void AddTags(const String&, int8 = ';');
  10091. void ApplyAttributes();
  10092. void BringToFront();
  10093. void ChangeValue(float);
  10094. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10095. void DisableLayoutUpdate();
  10096. IntVector2 ElementToScreen(const IntVector2&);
  10097. void EnableLayoutUpdate();
  10098. uint FindChild(UIElement) const;
  10099. Variant GetAttribute(const String&) const;
  10100. ValueAnimation GetAttributeAnimation(const String&) const;
  10101. float GetAttributeAnimationSpeed(const String&) const;
  10102. float GetAttributeAnimationTime(const String&) const;
  10103. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10104. Variant GetAttributeDefault(const String&) const;
  10105. UIElement GetChild(const String&, bool = false) const;
  10106. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10107. Array<UIElement> GetChildren(bool = false) const;
  10108. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10109. UIElement GetElementEventSender() const;
  10110. bool GetInterceptNetworkUpdate(const String&) const;
  10111. uint GetNumChildren(bool) const;
  10112. bool HasSubscribedToEvent(Object, const String&);
  10113. bool HasSubscribedToEvent(const String&);
  10114. bool HasTag(const String&) const;
  10115. void InsertChild(uint, UIElement);
  10116. bool IsChildOf(UIElement) const;
  10117. bool IsInside(IntVector2, bool);
  10118. bool IsInsideCombined(IntVector2, bool);
  10119. bool Load(File);
  10120. bool Load(VectorBuffer&);
  10121. UIElement LoadChildXML(XMLFile, XMLFile);
  10122. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10123. bool LoadJSON(const JSONValue&);
  10124. bool LoadXML(File);
  10125. bool LoadXML(VectorBuffer&);
  10126. bool LoadXML(XMLFile, XMLFile);
  10127. bool LoadXML(const XMLElement&, XMLFile);
  10128. bool LoadXML(const XMLElement&);
  10129. void MarkNetworkUpdate() const;
  10130. void Remove();
  10131. void RemoveAllChildren();
  10132. void RemoveAllTags();
  10133. void RemoveAttributeAnimation(const String&);
  10134. void RemoveChild(UIElement, uint = 0);
  10135. void RemoveChild(uint);
  10136. void RemoveInstanceDefault();
  10137. void RemoveObjectAnimation();
  10138. bool RemoveTag(const String&);
  10139. void ResetDeepEnabled();
  10140. void ResetToDefault();
  10141. bool Save(File) const;
  10142. bool Save(VectorBuffer&) const;
  10143. bool SaveJSON(JSONValue&) const;
  10144. bool SaveXML(File, const String& = "\t");
  10145. bool SaveXML(VectorBuffer&, const String& = "\t");
  10146. bool SaveXML(XMLElement&) const;
  10147. IntVector2 ScreenToElement(const IntVector2&);
  10148. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10149. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10150. void SetAnimationTime(float);
  10151. bool SetAttribute(const String&, const Variant&);
  10152. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10153. void SetAttributeAnimationSpeed(const String&, float);
  10154. void SetAttributeAnimationTime(const String&, float);
  10155. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10156. void SetDeepEnabled(bool);
  10157. void SetEnabledRecursive(bool);
  10158. void SetFixedHeight(int);
  10159. void SetFixedSize(int, int);
  10160. void SetFixedWidth(int);
  10161. void SetInterceptNetworkUpdate(const String&, bool);
  10162. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10163. void SetMaxAnchor(float, float);
  10164. void SetMaxSize(int, int);
  10165. void SetMinAnchor(float, float);
  10166. void SetMinSize(int, int);
  10167. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10168. void SetPivot(float, float);
  10169. void SetPosition(int, int);
  10170. void SetSize(int, int);
  10171. bool SetStyle(const String&, XMLFile = null);
  10172. bool SetStyle(const XMLElement&);
  10173. bool SetStyleAuto(XMLFile = null);
  10174. void StepBack();
  10175. void StepForward();
  10176. void UpdateLayout();
  10177. const Variant& GetVar(const StringHash&);
  10178. // Properties:
  10179. bool animationEnabled;
  10180. /* readonly */
  10181. Array<Variant> attributeDefaults;
  10182. /* readonly */
  10183. Array<AttributeInfo> attributeInfos;
  10184. Array<Variant> attributes;
  10185. /* readonly */
  10186. Button backButton;
  10187. bool bringToBack;
  10188. bool bringToFront;
  10189. /* readonly */
  10190. String category;
  10191. /* readonly */
  10192. IntVector2 childOffset;
  10193. /* readonly */
  10194. Array<UIElement> children;
  10195. IntRect clipBorder;
  10196. bool clipChildren;
  10197. /* writeonly */
  10198. Color color;
  10199. /* readonly */
  10200. bool colorGradient;
  10201. Array<Color> colors;
  10202. /* readonly */
  10203. IntRect combinedScreenRect;
  10204. XMLFile defaultStyle;
  10205. /* readonly */
  10206. float derivedOpacity;
  10207. /* readonly */
  10208. uint dragButtonCombo;
  10209. /* readonly */
  10210. int dragButtonCount;
  10211. uint dragDropMode;
  10212. bool editable;
  10213. /* readonly */
  10214. float effectiveScrollStep;
  10215. bool elementEventSender;
  10216. bool enableAnchor;
  10217. bool enabled;
  10218. /* readonly */
  10219. bool enabledSelf;
  10220. /* readonly */
  10221. bool fixedHeight;
  10222. /* readonly */
  10223. bool fixedSize;
  10224. /* readonly */
  10225. bool fixedWidth;
  10226. bool focus;
  10227. FocusMode focusMode;
  10228. /* readonly */
  10229. Button forwardButton;
  10230. int height;
  10231. HorizontalAlignment horizontalAlignment;
  10232. /* readonly */
  10233. bool hovering;
  10234. int indent;
  10235. int indentSpacing;
  10236. /* readonly */
  10237. int indentWidth;
  10238. bool internal;
  10239. IntRect layoutBorder;
  10240. Vector2 layoutFlexScale;
  10241. LayoutMode layoutMode;
  10242. int layoutSpacing;
  10243. Vector2 maxAnchor;
  10244. int maxHeight;
  10245. IntVector2 maxOffset;
  10246. IntVector2 maxSize;
  10247. int maxWidth;
  10248. Vector2 minAnchor;
  10249. int minHeight;
  10250. IntVector2 minOffset;
  10251. IntVector2 minSize;
  10252. int minWidth;
  10253. String name;
  10254. /* readonly */
  10255. uint numAllChildren;
  10256. /* readonly */
  10257. uint numAttributes;
  10258. /* readonly */
  10259. uint numChildren;
  10260. ObjectAnimation objectAnimation;
  10261. float opacity;
  10262. Orientation orientation;
  10263. UIElement parent;
  10264. Vector2 pivot;
  10265. IntVector2 position;
  10266. int priority;
  10267. float range;
  10268. /* readonly */
  10269. int refs;
  10270. /* readonly */
  10271. UIElement root;
  10272. /* readonly */
  10273. IntVector2 screenPosition;
  10274. float scrollStep;
  10275. bool selected;
  10276. IntVector2 size;
  10277. /* readonly */
  10278. Slider slider;
  10279. bool sortChildren;
  10280. float stepFactor;
  10281. String style;
  10282. /* readonly */
  10283. Array<String> tags;
  10284. bool temporary;
  10285. TraversalMode traversalMode;
  10286. /* readonly */
  10287. StringHash type;
  10288. /* readonly */
  10289. String typeName;
  10290. bool useDerivedOpacity;
  10291. float value;
  10292. /* readonly */
  10293. VariantMap vars;
  10294. VerticalAlignment verticalAlignment;
  10295. bool visible;
  10296. /* readonly */
  10297. bool visibleEffective;
  10298. /* readonly */
  10299. int weakRefs;
  10300. int width;
  10301. };
  10302. class ScrollView
  10303. {
  10304. public:
  10305. ScrollView();
  10306. ScrollView(const String&in);
  10307. // Methods:
  10308. void AddChild(UIElement);
  10309. void AddTag(const String&);
  10310. void AddTags(const String&, int8 = ';');
  10311. void ApplyAttributes();
  10312. void BringToFront();
  10313. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10314. void DisableLayoutUpdate();
  10315. IntVector2 ElementToScreen(const IntVector2&);
  10316. void EnableLayoutUpdate();
  10317. uint FindChild(UIElement) const;
  10318. Variant GetAttribute(const String&) const;
  10319. ValueAnimation GetAttributeAnimation(const String&) const;
  10320. float GetAttributeAnimationSpeed(const String&) const;
  10321. float GetAttributeAnimationTime(const String&) const;
  10322. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10323. Variant GetAttributeDefault(const String&) const;
  10324. UIElement GetChild(const String&, bool = false) const;
  10325. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10326. Array<UIElement> GetChildren(bool = false) const;
  10327. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10328. UIElement GetElementEventSender() const;
  10329. bool GetInterceptNetworkUpdate(const String&) const;
  10330. uint GetNumChildren(bool) const;
  10331. bool HasSubscribedToEvent(Object, const String&);
  10332. bool HasSubscribedToEvent(const String&);
  10333. bool HasTag(const String&) const;
  10334. void InsertChild(uint, UIElement);
  10335. bool IsChildOf(UIElement) const;
  10336. bool IsInside(IntVector2, bool);
  10337. bool IsInsideCombined(IntVector2, bool);
  10338. bool Load(File);
  10339. bool Load(VectorBuffer&);
  10340. UIElement LoadChildXML(XMLFile, XMLFile);
  10341. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10342. bool LoadJSON(const JSONValue&);
  10343. bool LoadXML(File);
  10344. bool LoadXML(VectorBuffer&);
  10345. bool LoadXML(XMLFile, XMLFile);
  10346. bool LoadXML(const XMLElement&, XMLFile);
  10347. bool LoadXML(const XMLElement&);
  10348. void MarkNetworkUpdate() const;
  10349. void Remove();
  10350. void RemoveAllChildren();
  10351. void RemoveAllTags();
  10352. void RemoveAttributeAnimation(const String&);
  10353. void RemoveChild(UIElement, uint = 0);
  10354. void RemoveChild(uint);
  10355. void RemoveInstanceDefault();
  10356. void RemoveObjectAnimation();
  10357. bool RemoveTag(const String&);
  10358. void ResetDeepEnabled();
  10359. void ResetToDefault();
  10360. bool Save(File) const;
  10361. bool Save(VectorBuffer&) const;
  10362. bool SaveJSON(JSONValue&) const;
  10363. bool SaveXML(File, const String& = "\t");
  10364. bool SaveXML(VectorBuffer&, const String& = "\t");
  10365. bool SaveXML(XMLElement&) const;
  10366. IntVector2 ScreenToElement(const IntVector2&);
  10367. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10368. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10369. void SetAnimationTime(float);
  10370. bool SetAttribute(const String&, const Variant&);
  10371. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10372. void SetAttributeAnimationSpeed(const String&, float);
  10373. void SetAttributeAnimationTime(const String&, float);
  10374. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10375. void SetDeepEnabled(bool);
  10376. void SetEnabledRecursive(bool);
  10377. void SetFixedHeight(int);
  10378. void SetFixedSize(int, int);
  10379. void SetFixedWidth(int);
  10380. void SetInterceptNetworkUpdate(const String&, bool);
  10381. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10382. void SetMaxAnchor(float, float);
  10383. void SetMaxSize(int, int);
  10384. void SetMinAnchor(float, float);
  10385. void SetMinSize(int, int);
  10386. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10387. void SetPivot(float, float);
  10388. void SetPosition(int, int);
  10389. void SetScrollBarsVisible(bool, bool);
  10390. void SetSize(int, int);
  10391. bool SetStyle(const String&, XMLFile = null);
  10392. bool SetStyle(const XMLElement&);
  10393. bool SetStyleAuto(XMLFile = null);
  10394. void SetViewPosition(int, int);
  10395. void UpdateLayout();
  10396. const Variant& GetVar(const StringHash&);
  10397. // Properties:
  10398. bool animationEnabled;
  10399. /* readonly */
  10400. Array<Variant> attributeDefaults;
  10401. /* readonly */
  10402. Array<AttributeInfo> attributeInfos;
  10403. Array<Variant> attributes;
  10404. bool autoDisableChildren;
  10405. float autoDisableThreshold;
  10406. bool bringToBack;
  10407. bool bringToFront;
  10408. /* readonly */
  10409. String category;
  10410. /* readonly */
  10411. IntVector2 childOffset;
  10412. /* readonly */
  10413. Array<UIElement> children;
  10414. IntRect clipBorder;
  10415. bool clipChildren;
  10416. /* writeonly */
  10417. Color color;
  10418. /* readonly */
  10419. bool colorGradient;
  10420. Array<Color> colors;
  10421. /* readonly */
  10422. IntRect combinedScreenRect;
  10423. UIElement contentElement;
  10424. XMLFile defaultStyle;
  10425. /* readonly */
  10426. float derivedOpacity;
  10427. /* readonly */
  10428. uint dragButtonCombo;
  10429. /* readonly */
  10430. int dragButtonCount;
  10431. uint dragDropMode;
  10432. bool editable;
  10433. bool elementEventSender;
  10434. bool enableAnchor;
  10435. bool enabled;
  10436. /* readonly */
  10437. bool enabledSelf;
  10438. /* readonly */
  10439. bool fixedHeight;
  10440. /* readonly */
  10441. bool fixedSize;
  10442. /* readonly */
  10443. bool fixedWidth;
  10444. bool focus;
  10445. FocusMode focusMode;
  10446. int height;
  10447. HorizontalAlignment horizontalAlignment;
  10448. /* readonly */
  10449. ScrollBar horizontalScrollBar;
  10450. bool horizontalScrollBarVisible;
  10451. /* readonly */
  10452. bool hovering;
  10453. int indent;
  10454. int indentSpacing;
  10455. /* readonly */
  10456. int indentWidth;
  10457. bool internal;
  10458. IntRect layoutBorder;
  10459. Vector2 layoutFlexScale;
  10460. LayoutMode layoutMode;
  10461. int layoutSpacing;
  10462. Vector2 maxAnchor;
  10463. int maxHeight;
  10464. IntVector2 maxOffset;
  10465. IntVector2 maxSize;
  10466. int maxWidth;
  10467. Vector2 minAnchor;
  10468. int minHeight;
  10469. IntVector2 minOffset;
  10470. IntVector2 minSize;
  10471. int minWidth;
  10472. String name;
  10473. /* readonly */
  10474. uint numAllChildren;
  10475. /* readonly */
  10476. uint numAttributes;
  10477. /* readonly */
  10478. uint numChildren;
  10479. ObjectAnimation objectAnimation;
  10480. float opacity;
  10481. float pageStep;
  10482. UIElement parent;
  10483. Vector2 pivot;
  10484. IntVector2 position;
  10485. int priority;
  10486. /* readonly */
  10487. int refs;
  10488. /* readonly */
  10489. UIElement root;
  10490. /* readonly */
  10491. IntVector2 screenPosition;
  10492. bool scrollBarsAutoVisible;
  10493. float scrollDeceleration;
  10494. /* readonly */
  10495. BorderImage scrollPanel;
  10496. float scrollSnapEpsilon;
  10497. float scrollStep;
  10498. bool selected;
  10499. IntVector2 size;
  10500. bool sortChildren;
  10501. String style;
  10502. /* readonly */
  10503. Array<String> tags;
  10504. bool temporary;
  10505. TraversalMode traversalMode;
  10506. /* readonly */
  10507. StringHash type;
  10508. /* readonly */
  10509. String typeName;
  10510. bool useDerivedOpacity;
  10511. /* readonly */
  10512. VariantMap vars;
  10513. VerticalAlignment verticalAlignment;
  10514. /* readonly */
  10515. ScrollBar verticalScrollBar;
  10516. bool verticalScrollBarVisible;
  10517. IntVector2 viewPosition;
  10518. bool visible;
  10519. /* readonly */
  10520. bool visibleEffective;
  10521. /* readonly */
  10522. int weakRefs;
  10523. int width;
  10524. };
  10525. class Serializable
  10526. {
  10527. public:
  10528. // Methods:
  10529. void ApplyAttributes();
  10530. Variant GetAttribute(const String&) const;
  10531. Variant GetAttributeDefault(const String&) const;
  10532. bool GetInterceptNetworkUpdate(const String&) const;
  10533. bool HasSubscribedToEvent(Object, const String&);
  10534. bool HasSubscribedToEvent(const String&);
  10535. bool Load(File);
  10536. bool Load(VectorBuffer&);
  10537. bool LoadJSON(const JSONValue&);
  10538. bool LoadXML(const XMLElement&);
  10539. void MarkNetworkUpdate() const;
  10540. void RemoveInstanceDefault();
  10541. void ResetToDefault();
  10542. bool Save(File) const;
  10543. bool Save(VectorBuffer&) const;
  10544. bool SaveJSON(JSONValue&) const;
  10545. bool SaveXML(XMLElement&) const;
  10546. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10547. bool SetAttribute(const String&, const Variant&);
  10548. void SetInterceptNetworkUpdate(const String&, bool);
  10549. // Properties:
  10550. /* readonly */
  10551. Array<Variant> attributeDefaults;
  10552. /* readonly */
  10553. Array<AttributeInfo> attributeInfos;
  10554. Array<Variant> attributes;
  10555. /* readonly */
  10556. String category;
  10557. /* readonly */
  10558. uint numAttributes;
  10559. /* readonly */
  10560. int refs;
  10561. bool temporary;
  10562. /* readonly */
  10563. StringHash type;
  10564. /* readonly */
  10565. String typeName;
  10566. /* readonly */
  10567. int weakRefs;
  10568. };
  10569. class Serializer
  10570. {
  10571. public:
  10572. // Methods:
  10573. uint Write(Array<uint8>);
  10574. bool WriteBool(bool);
  10575. bool WriteBoundingBox(const BoundingBox&);
  10576. bool WriteByte(int8);
  10577. bool WriteColor(const Color&);
  10578. bool WriteDouble(double);
  10579. bool WriteFileID(const String&);
  10580. bool WriteFloat(float);
  10581. bool WriteInt(int);
  10582. bool WriteInt64(int64);
  10583. bool WriteIntRect(const IntRect&);
  10584. bool WriteIntVector2(const IntVector2&);
  10585. bool WriteLine(const String&);
  10586. bool WriteMatrix3(const Matrix3&);
  10587. bool WriteMatrix3x4(const Matrix3x4&);
  10588. bool WriteMatrix4(const Matrix4&);
  10589. bool WriteNetID(uint);
  10590. bool WritePackedQuaternion(const Quaternion&);
  10591. bool WritePackedVector3(const Vector3&, float);
  10592. bool WriteQuaternion(const Quaternion&);
  10593. bool WriteShort(int16);
  10594. bool WriteString(const String&);
  10595. bool WriteStringHash(const StringHash&);
  10596. bool WriteUByte(uint8);
  10597. bool WriteUInt(uint);
  10598. bool WriteUInt64(uint64);
  10599. bool WriteUShort(uint16);
  10600. bool WriteVLE(uint);
  10601. bool WriteVariant(const Variant&);
  10602. bool WriteVariantMap(const VariantMap&);
  10603. bool WriteVector2(const Vector2&);
  10604. bool WriteVector3(const Vector3&);
  10605. bool WriteVector4(const Vector4&);
  10606. bool WriteVectorBuffer(const VectorBuffer&);
  10607. };
  10608. class Skeleton
  10609. {
  10610. public:
  10611. // Methods:
  10612. Bone GetBone(const String&) const;
  10613. uint GetBoneIndex(const String&) const;
  10614. Bone GetBoneParent(Bone) const;
  10615. void Reset();
  10616. // Properties:
  10617. /* readonly */
  10618. Array<Bone> bones;
  10619. /* readonly */
  10620. uint numBones;
  10621. /* readonly */
  10622. Bone rootBone;
  10623. };
  10624. class Skybox
  10625. {
  10626. public:
  10627. // Methods:
  10628. void ApplyAttributes();
  10629. void ApplyMaterialList(const String& = String ( ));
  10630. void DrawDebugGeometry(DebugRenderer, bool);
  10631. Variant GetAttribute(const String&) const;
  10632. ValueAnimation GetAttributeAnimation(const String&) const;
  10633. float GetAttributeAnimationSpeed(const String&) const;
  10634. float GetAttributeAnimationTime(const String&) const;
  10635. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10636. Variant GetAttributeDefault(const String&) const;
  10637. bool GetInterceptNetworkUpdate(const String&) const;
  10638. bool HasSubscribedToEvent(Object, const String&);
  10639. bool HasSubscribedToEvent(const String&);
  10640. bool IsInView(Camera) const;
  10641. bool Load(File);
  10642. bool Load(VectorBuffer&);
  10643. bool LoadJSON(const JSONValue&);
  10644. bool LoadXML(const XMLElement&);
  10645. void MarkNetworkUpdate() const;
  10646. void Remove();
  10647. void RemoveAttributeAnimation(const String&);
  10648. void RemoveInstanceDefault();
  10649. void RemoveObjectAnimation();
  10650. void ResetToDefault();
  10651. bool Save(File) const;
  10652. bool Save(VectorBuffer&) const;
  10653. bool SaveJSON(JSONValue&) const;
  10654. bool SaveXML(XMLElement&) const;
  10655. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10656. void SetAnimationTime(float);
  10657. bool SetAttribute(const String&, const Variant&);
  10658. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10659. void SetAttributeAnimationSpeed(const String&, float);
  10660. void SetAttributeAnimationTime(const String&, float);
  10661. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10662. void SetInterceptNetworkUpdate(const String&, bool);
  10663. // Properties:
  10664. bool animationEnabled;
  10665. /* readonly */
  10666. Array<Variant> attributeDefaults;
  10667. /* readonly */
  10668. Array<AttributeInfo> attributeInfos;
  10669. Array<Variant> attributes;
  10670. /* readonly */
  10671. BoundingBox boundingBox;
  10672. bool castShadows;
  10673. /* readonly */
  10674. String category;
  10675. float drawDistance;
  10676. bool enabled;
  10677. /* readonly */
  10678. bool enabledEffective;
  10679. /* readonly */
  10680. uint id;
  10681. /* readonly */
  10682. bool inView;
  10683. uint lightMask;
  10684. float lodBias;
  10685. Material material;
  10686. Array<Material> materials;
  10687. uint maxLights;
  10688. Model model;
  10689. /* readonly */
  10690. Node node;
  10691. /* readonly */
  10692. uint numAttributes;
  10693. /* readonly */
  10694. uint numGeometries;
  10695. ObjectAnimation objectAnimation;
  10696. bool occludee;
  10697. bool occluder;
  10698. /* readonly */
  10699. int refs;
  10700. /* readonly */
  10701. bool replicated;
  10702. float shadowDistance;
  10703. uint shadowMask;
  10704. bool temporary;
  10705. /* readonly */
  10706. StringHash type;
  10707. /* readonly */
  10708. String typeName;
  10709. uint viewMask;
  10710. /* readonly */
  10711. int weakRefs;
  10712. /* readonly */
  10713. BoundingBox worldBoundingBox;
  10714. /* readonly */
  10715. Zone zone;
  10716. uint zoneMask;
  10717. };
  10718. class Slider
  10719. {
  10720. public:
  10721. Slider();
  10722. Slider(const String&in);
  10723. // Methods:
  10724. void AddChild(UIElement);
  10725. void AddTag(const String&);
  10726. void AddTags(const String&, int8 = ';');
  10727. void ApplyAttributes();
  10728. void BringToFront();
  10729. void ChangeValue(float);
  10730. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10731. void DisableLayoutUpdate();
  10732. IntVector2 ElementToScreen(const IntVector2&);
  10733. void EnableLayoutUpdate();
  10734. uint FindChild(UIElement) const;
  10735. Variant GetAttribute(const String&) const;
  10736. ValueAnimation GetAttributeAnimation(const String&) const;
  10737. float GetAttributeAnimationSpeed(const String&) const;
  10738. float GetAttributeAnimationTime(const String&) const;
  10739. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10740. Variant GetAttributeDefault(const String&) const;
  10741. UIElement GetChild(const String&, bool = false) const;
  10742. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10743. Array<UIElement> GetChildren(bool = false) const;
  10744. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10745. UIElement GetElementEventSender() const;
  10746. bool GetInterceptNetworkUpdate(const String&) const;
  10747. uint GetNumChildren(bool) const;
  10748. bool HasSubscribedToEvent(Object, const String&);
  10749. bool HasSubscribedToEvent(const String&);
  10750. bool HasTag(const String&) const;
  10751. void InsertChild(uint, UIElement);
  10752. bool IsChildOf(UIElement) const;
  10753. bool IsInside(IntVector2, bool);
  10754. bool IsInsideCombined(IntVector2, bool);
  10755. bool Load(File);
  10756. bool Load(VectorBuffer&);
  10757. UIElement LoadChildXML(XMLFile, XMLFile);
  10758. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10759. bool LoadJSON(const JSONValue&);
  10760. bool LoadXML(File);
  10761. bool LoadXML(VectorBuffer&);
  10762. bool LoadXML(XMLFile, XMLFile);
  10763. bool LoadXML(const XMLElement&, XMLFile);
  10764. bool LoadXML(const XMLElement&);
  10765. void MarkNetworkUpdate() const;
  10766. void Remove();
  10767. void RemoveAllChildren();
  10768. void RemoveAllTags();
  10769. void RemoveAttributeAnimation(const String&);
  10770. void RemoveChild(UIElement, uint = 0);
  10771. void RemoveChild(uint);
  10772. void RemoveInstanceDefault();
  10773. void RemoveObjectAnimation();
  10774. bool RemoveTag(const String&);
  10775. void ResetDeepEnabled();
  10776. void ResetToDefault();
  10777. bool Save(File) const;
  10778. bool Save(VectorBuffer&) const;
  10779. bool SaveJSON(JSONValue&) const;
  10780. bool SaveXML(File, const String& = "\t");
  10781. bool SaveXML(VectorBuffer&, const String& = "\t");
  10782. bool SaveXML(XMLElement&) const;
  10783. IntVector2 ScreenToElement(const IntVector2&);
  10784. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10785. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10786. void SetAnimationTime(float);
  10787. bool SetAttribute(const String&, const Variant&);
  10788. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10789. void SetAttributeAnimationSpeed(const String&, float);
  10790. void SetAttributeAnimationTime(const String&, float);
  10791. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10792. void SetDeepEnabled(bool);
  10793. void SetEnabledRecursive(bool);
  10794. void SetFixedHeight(int);
  10795. void SetFixedSize(int, int);
  10796. void SetFixedWidth(int);
  10797. void SetFullImageRect();
  10798. void SetHoverOffset(int, int);
  10799. void SetInterceptNetworkUpdate(const String&, bool);
  10800. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10801. void SetMaxAnchor(float, float);
  10802. void SetMaxSize(int, int);
  10803. void SetMinAnchor(float, float);
  10804. void SetMinSize(int, int);
  10805. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10806. void SetPivot(float, float);
  10807. void SetPosition(int, int);
  10808. void SetSize(int, int);
  10809. bool SetStyle(const String&, XMLFile = null);
  10810. bool SetStyle(const XMLElement&);
  10811. bool SetStyleAuto(XMLFile = null);
  10812. void UpdateLayout();
  10813. const Variant& GetVar(const StringHash&);
  10814. // Properties:
  10815. bool animationEnabled;
  10816. /* readonly */
  10817. Array<Variant> attributeDefaults;
  10818. /* readonly */
  10819. Array<AttributeInfo> attributeInfos;
  10820. Array<Variant> attributes;
  10821. BlendMode blendMode;
  10822. IntRect border;
  10823. bool bringToBack;
  10824. bool bringToFront;
  10825. /* readonly */
  10826. String category;
  10827. /* readonly */
  10828. IntVector2 childOffset;
  10829. /* readonly */
  10830. Array<UIElement> children;
  10831. IntRect clipBorder;
  10832. bool clipChildren;
  10833. /* writeonly */
  10834. Color color;
  10835. /* readonly */
  10836. bool colorGradient;
  10837. Array<Color> colors;
  10838. /* readonly */
  10839. IntRect combinedScreenRect;
  10840. XMLFile defaultStyle;
  10841. /* readonly */
  10842. float derivedOpacity;
  10843. /* readonly */
  10844. uint dragButtonCombo;
  10845. /* readonly */
  10846. int dragButtonCount;
  10847. uint dragDropMode;
  10848. bool editable;
  10849. bool elementEventSender;
  10850. bool enableAnchor;
  10851. bool enabled;
  10852. /* readonly */
  10853. bool enabledSelf;
  10854. /* readonly */
  10855. bool fixedHeight;
  10856. /* readonly */
  10857. bool fixedSize;
  10858. /* readonly */
  10859. bool fixedWidth;
  10860. bool focus;
  10861. FocusMode focusMode;
  10862. int height;
  10863. HorizontalAlignment horizontalAlignment;
  10864. IntVector2 hoverOffset;
  10865. /* readonly */
  10866. bool hovering;
  10867. IntRect imageBorder;
  10868. IntRect imageRect;
  10869. int indent;
  10870. int indentSpacing;
  10871. /* readonly */
  10872. int indentWidth;
  10873. bool internal;
  10874. /* readonly */
  10875. BorderImage knob;
  10876. IntRect layoutBorder;
  10877. Vector2 layoutFlexScale;
  10878. LayoutMode layoutMode;
  10879. int layoutSpacing;
  10880. Vector2 maxAnchor;
  10881. int maxHeight;
  10882. IntVector2 maxOffset;
  10883. IntVector2 maxSize;
  10884. int maxWidth;
  10885. Vector2 minAnchor;
  10886. int minHeight;
  10887. IntVector2 minOffset;
  10888. IntVector2 minSize;
  10889. int minWidth;
  10890. String name;
  10891. /* readonly */
  10892. uint numAllChildren;
  10893. /* readonly */
  10894. uint numAttributes;
  10895. /* readonly */
  10896. uint numChildren;
  10897. ObjectAnimation objectAnimation;
  10898. float opacity;
  10899. Orientation orientation;
  10900. UIElement parent;
  10901. Vector2 pivot;
  10902. IntVector2 position;
  10903. int priority;
  10904. float range;
  10905. /* readonly */
  10906. int refs;
  10907. float repeatRate;
  10908. /* readonly */
  10909. UIElement root;
  10910. /* readonly */
  10911. IntVector2 screenPosition;
  10912. bool selected;
  10913. IntVector2 size;
  10914. bool sortChildren;
  10915. String style;
  10916. /* readonly */
  10917. Array<String> tags;
  10918. bool temporary;
  10919. Texture texture;
  10920. bool tiled;
  10921. TraversalMode traversalMode;
  10922. /* readonly */
  10923. StringHash type;
  10924. /* readonly */
  10925. String typeName;
  10926. bool useDerivedOpacity;
  10927. float value;
  10928. /* readonly */
  10929. VariantMap vars;
  10930. VerticalAlignment verticalAlignment;
  10931. bool visible;
  10932. /* readonly */
  10933. bool visibleEffective;
  10934. /* readonly */
  10935. int weakRefs;
  10936. int width;
  10937. };
  10938. class SmoothedTransform
  10939. {
  10940. public:
  10941. // Methods:
  10942. void ApplyAttributes();
  10943. void DrawDebugGeometry(DebugRenderer, bool);
  10944. Variant GetAttribute(const String&) const;
  10945. ValueAnimation GetAttributeAnimation(const String&) const;
  10946. float GetAttributeAnimationSpeed(const String&) const;
  10947. float GetAttributeAnimationTime(const String&) const;
  10948. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10949. Variant GetAttributeDefault(const String&) const;
  10950. bool GetInterceptNetworkUpdate(const String&) const;
  10951. bool HasSubscribedToEvent(Object, const String&);
  10952. bool HasSubscribedToEvent(const String&);
  10953. bool Load(File);
  10954. bool Load(VectorBuffer&);
  10955. bool LoadJSON(const JSONValue&);
  10956. bool LoadXML(const XMLElement&);
  10957. void MarkNetworkUpdate() const;
  10958. void Remove();
  10959. void RemoveAttributeAnimation(const String&);
  10960. void RemoveInstanceDefault();
  10961. void RemoveObjectAnimation();
  10962. void ResetToDefault();
  10963. bool Save(File) const;
  10964. bool Save(VectorBuffer&) const;
  10965. bool SaveJSON(JSONValue&) const;
  10966. bool SaveXML(XMLElement&) const;
  10967. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10968. void SetAnimationTime(float);
  10969. bool SetAttribute(const String&, const Variant&);
  10970. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10971. void SetAttributeAnimationSpeed(const String&, float);
  10972. void SetAttributeAnimationTime(const String&, float);
  10973. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10974. void SetInterceptNetworkUpdate(const String&, bool);
  10975. void Update(float, float);
  10976. // Properties:
  10977. bool animationEnabled;
  10978. /* readonly */
  10979. Array<Variant> attributeDefaults;
  10980. /* readonly */
  10981. Array<AttributeInfo> attributeInfos;
  10982. Array<Variant> attributes;
  10983. /* readonly */
  10984. String category;
  10985. bool enabled;
  10986. /* readonly */
  10987. bool enabledEffective;
  10988. /* readonly */
  10989. uint id;
  10990. /* readonly */
  10991. bool inProgress;
  10992. /* readonly */
  10993. Node node;
  10994. /* readonly */
  10995. uint numAttributes;
  10996. ObjectAnimation objectAnimation;
  10997. /* readonly */
  10998. int refs;
  10999. /* readonly */
  11000. bool replicated;
  11001. Vector3 targetPosition;
  11002. Quaternion targetRotation;
  11003. Vector3 targetWorldPosition;
  11004. Quaternion targetWorldRotation;
  11005. bool temporary;
  11006. /* readonly */
  11007. StringHash type;
  11008. /* readonly */
  11009. String typeName;
  11010. /* readonly */
  11011. int weakRefs;
  11012. };
  11013. class Sound
  11014. {
  11015. public:
  11016. Sound();
  11017. Sound(const String&in);
  11018. // Methods:
  11019. void AddMetadata(const String&, const Variant&);
  11020. bool HasSubscribedToEvent(Object, const String&);
  11021. bool HasSubscribedToEvent(const String&);
  11022. bool Load(File);
  11023. bool Load(VectorBuffer&);
  11024. bool Load(const String&);
  11025. void RemoveAllMetadata();
  11026. void RemoveMetadata(const String&);
  11027. bool Save(File) const;
  11028. bool Save(VectorBuffer&) const;
  11029. bool Save(const String&) const;
  11030. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11031. // Properties:
  11032. /* readonly */
  11033. String category;
  11034. /* readonly */
  11035. bool compressed;
  11036. /* readonly */
  11037. float frequency;
  11038. /* readonly */
  11039. bool hasMetadata;
  11040. /* readonly */
  11041. float length;
  11042. bool looped;
  11043. /* readonly */
  11044. uint memoryUse;
  11045. Array<Variant> metadata;
  11046. String name;
  11047. /* readonly */
  11048. int refs;
  11049. /* readonly */
  11050. uint sampleSize;
  11051. /* readonly */
  11052. bool sixteenBit;
  11053. /* readonly */
  11054. bool stereo;
  11055. /* readonly */
  11056. StringHash type;
  11057. /* readonly */
  11058. String typeName;
  11059. /* readonly */
  11060. uint useTimer;
  11061. /* readonly */
  11062. int weakRefs;
  11063. };
  11064. class SoundListener
  11065. {
  11066. public:
  11067. // Methods:
  11068. void ApplyAttributes();
  11069. void DrawDebugGeometry(DebugRenderer, bool);
  11070. Variant GetAttribute(const String&) const;
  11071. ValueAnimation GetAttributeAnimation(const String&) const;
  11072. float GetAttributeAnimationSpeed(const String&) const;
  11073. float GetAttributeAnimationTime(const String&) const;
  11074. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11075. Variant GetAttributeDefault(const String&) const;
  11076. bool GetInterceptNetworkUpdate(const String&) const;
  11077. bool HasSubscribedToEvent(Object, const String&);
  11078. bool HasSubscribedToEvent(const String&);
  11079. bool Load(File);
  11080. bool Load(VectorBuffer&);
  11081. bool LoadJSON(const JSONValue&);
  11082. bool LoadXML(const XMLElement&);
  11083. void MarkNetworkUpdate() const;
  11084. void Remove();
  11085. void RemoveAttributeAnimation(const String&);
  11086. void RemoveInstanceDefault();
  11087. void RemoveObjectAnimation();
  11088. void ResetToDefault();
  11089. bool Save(File) const;
  11090. bool Save(VectorBuffer&) const;
  11091. bool SaveJSON(JSONValue&) const;
  11092. bool SaveXML(XMLElement&) const;
  11093. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11094. void SetAnimationTime(float);
  11095. bool SetAttribute(const String&, const Variant&);
  11096. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11097. void SetAttributeAnimationSpeed(const String&, float);
  11098. void SetAttributeAnimationTime(const String&, float);
  11099. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11100. void SetInterceptNetworkUpdate(const String&, bool);
  11101. // Properties:
  11102. bool animationEnabled;
  11103. /* readonly */
  11104. Array<Variant> attributeDefaults;
  11105. /* readonly */
  11106. Array<AttributeInfo> attributeInfos;
  11107. Array<Variant> attributes;
  11108. /* readonly */
  11109. String category;
  11110. bool enabled;
  11111. /* readonly */
  11112. bool enabledEffective;
  11113. /* readonly */
  11114. uint id;
  11115. /* readonly */
  11116. Node node;
  11117. /* readonly */
  11118. uint numAttributes;
  11119. ObjectAnimation objectAnimation;
  11120. /* readonly */
  11121. int refs;
  11122. /* readonly */
  11123. bool replicated;
  11124. bool temporary;
  11125. /* readonly */
  11126. StringHash type;
  11127. /* readonly */
  11128. String typeName;
  11129. /* readonly */
  11130. int weakRefs;
  11131. };
  11132. class SoundSource
  11133. {
  11134. public:
  11135. SoundSource();
  11136. // Methods:
  11137. void ApplyAttributes();
  11138. void DrawDebugGeometry(DebugRenderer, bool);
  11139. Variant GetAttribute(const String&) const;
  11140. ValueAnimation GetAttributeAnimation(const String&) const;
  11141. float GetAttributeAnimationSpeed(const String&) const;
  11142. float GetAttributeAnimationTime(const String&) const;
  11143. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11144. Variant GetAttributeDefault(const String&) const;
  11145. bool GetInterceptNetworkUpdate(const String&) const;
  11146. bool HasSubscribedToEvent(Object, const String&);
  11147. bool HasSubscribedToEvent(const String&);
  11148. bool Load(File);
  11149. bool Load(VectorBuffer&);
  11150. bool LoadJSON(const JSONValue&);
  11151. bool LoadXML(const XMLElement&);
  11152. void MarkNetworkUpdate() const;
  11153. void Play(Sound);
  11154. void Play(Sound, float);
  11155. void Play(Sound, float, float);
  11156. void Play(Sound, float, float, float);
  11157. void Remove();
  11158. void RemoveAttributeAnimation(const String&);
  11159. void RemoveInstanceDefault();
  11160. void RemoveObjectAnimation();
  11161. void ResetToDefault();
  11162. bool Save(File) const;
  11163. bool Save(VectorBuffer&) const;
  11164. bool SaveJSON(JSONValue&) const;
  11165. bool SaveXML(XMLElement&) const;
  11166. void Seek(float);
  11167. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11168. void SetAnimationTime(float);
  11169. bool SetAttribute(const String&, const Variant&);
  11170. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11171. void SetAttributeAnimationSpeed(const String&, float);
  11172. void SetAttributeAnimationTime(const String&, float);
  11173. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11174. void SetInterceptNetworkUpdate(const String&, bool);
  11175. void Stop();
  11176. // Properties:
  11177. bool animationEnabled;
  11178. /* readonly */
  11179. float attenuation;
  11180. /* readonly */
  11181. Array<Variant> attributeDefaults;
  11182. /* readonly */
  11183. Array<AttributeInfo> attributeInfos;
  11184. Array<Variant> attributes;
  11185. AutoRemoveMode autoRemoveMode;
  11186. /* readonly */
  11187. String category;
  11188. bool enabled;
  11189. /* readonly */
  11190. bool enabledEffective;
  11191. float frequency;
  11192. float gain;
  11193. /* readonly */
  11194. uint id;
  11195. /* readonly */
  11196. Node node;
  11197. /* readonly */
  11198. uint numAttributes;
  11199. ObjectAnimation objectAnimation;
  11200. float panning;
  11201. /* readonly */
  11202. bool playing;
  11203. /* readonly */
  11204. int refs;
  11205. /* readonly */
  11206. bool replicated;
  11207. /* readonly */
  11208. Sound sound;
  11209. String soundType;
  11210. bool temporary;
  11211. /* readonly */
  11212. float timePosition;
  11213. /* readonly */
  11214. StringHash type;
  11215. /* readonly */
  11216. String typeName;
  11217. /* readonly */
  11218. int weakRefs;
  11219. };
  11220. class SoundSource3D
  11221. {
  11222. public:
  11223. // Methods:
  11224. void ApplyAttributes();
  11225. void DrawDebugGeometry(DebugRenderer, bool);
  11226. Variant GetAttribute(const String&) const;
  11227. ValueAnimation GetAttributeAnimation(const String&) const;
  11228. float GetAttributeAnimationSpeed(const String&) const;
  11229. float GetAttributeAnimationTime(const String&) const;
  11230. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11231. Variant GetAttributeDefault(const String&) const;
  11232. bool GetInterceptNetworkUpdate(const String&) const;
  11233. bool HasSubscribedToEvent(Object, const String&);
  11234. bool HasSubscribedToEvent(const String&);
  11235. bool Load(File);
  11236. bool Load(VectorBuffer&);
  11237. bool LoadJSON(const JSONValue&);
  11238. bool LoadXML(const XMLElement&);
  11239. void MarkNetworkUpdate() const;
  11240. void Play(Sound);
  11241. void Play(Sound, float);
  11242. void Play(Sound, float, float);
  11243. void Play(Sound, float, float, float);
  11244. void Remove();
  11245. void RemoveAttributeAnimation(const String&);
  11246. void RemoveInstanceDefault();
  11247. void RemoveObjectAnimation();
  11248. void ResetToDefault();
  11249. bool Save(File) const;
  11250. bool Save(VectorBuffer&) const;
  11251. bool SaveJSON(JSONValue&) const;
  11252. bool SaveXML(XMLElement&) const;
  11253. void Seek(float);
  11254. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11255. void SetAngleAttenuation(float, float);
  11256. void SetAnimationTime(float);
  11257. bool SetAttribute(const String&, const Variant&);
  11258. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11259. void SetAttributeAnimationSpeed(const String&, float);
  11260. void SetAttributeAnimationTime(const String&, float);
  11261. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11262. void SetDistanceAttenuation(float, float, float);
  11263. void SetInterceptNetworkUpdate(const String&, bool);
  11264. void Stop();
  11265. // Properties:
  11266. bool animationEnabled;
  11267. /* readonly */
  11268. float attenuation;
  11269. /* readonly */
  11270. Array<Variant> attributeDefaults;
  11271. /* readonly */
  11272. Array<AttributeInfo> attributeInfos;
  11273. Array<Variant> attributes;
  11274. AutoRemoveMode autoRemoveMode;
  11275. /* readonly */
  11276. String category;
  11277. bool enabled;
  11278. /* readonly */
  11279. bool enabledEffective;
  11280. float farDistance;
  11281. float frequency;
  11282. float gain;
  11283. /* readonly */
  11284. uint id;
  11285. float innerAngle;
  11286. float nearDistance;
  11287. /* readonly */
  11288. Node node;
  11289. /* readonly */
  11290. uint numAttributes;
  11291. ObjectAnimation objectAnimation;
  11292. float outerAngle;
  11293. float panning;
  11294. /* readonly */
  11295. bool playing;
  11296. /* readonly */
  11297. int refs;
  11298. /* readonly */
  11299. bool replicated;
  11300. float rolloffFactor;
  11301. /* readonly */
  11302. Sound sound;
  11303. String soundType;
  11304. bool temporary;
  11305. /* readonly */
  11306. float timePosition;
  11307. /* readonly */
  11308. StringHash type;
  11309. /* readonly */
  11310. String typeName;
  11311. /* readonly */
  11312. int weakRefs;
  11313. };
  11314. class Sphere
  11315. {
  11316. public:
  11317. Sphere();
  11318. Sphere(const Sphere&in);
  11319. Sphere(const Vector3&in, float);
  11320. Sphere(const BoundingBox&in);
  11321. Sphere(const Frustum&in);
  11322. Sphere(const Polyhedron&in);
  11323. // Methods:
  11324. void Clear();
  11325. void Define(const BoundingBox&);
  11326. void Define(const Frustum&);
  11327. void Define(const Polyhedron&);
  11328. void Define(const Sphere&);
  11329. void Define(const Vector3&, float);
  11330. bool Defined() const;
  11331. float Distance(const Vector3&) const;
  11332. Vector3 GetLocalPoint(float, float) const;
  11333. Vector3 GetPoint(float, float) const;
  11334. Intersection IsInside(const BoundingBox&) const;
  11335. Intersection IsInside(const Sphere&) const;
  11336. Intersection IsInside(const Vector3&) const;
  11337. Intersection IsInsideFast(const BoundingBox&) const;
  11338. Intersection IsInsideFast(const Sphere&) const;
  11339. void Merge(const BoundingBox&);
  11340. void Merge(const Frustum&);
  11341. void Merge(const Sphere&);
  11342. void Merge(const Vector3&);
  11343. // Properties:
  11344. Vector3 center;
  11345. float radius;
  11346. };
  11347. class Spline
  11348. {
  11349. public:
  11350. Spline();
  11351. Spline(InterpolationMode);
  11352. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  11353. Spline(const Spline&in);
  11354. // Methods:
  11355. void AddKnot(const Variant&);
  11356. void AddKnot(const Variant&, uint);
  11357. void Clear();
  11358. Variant GetPoint(float);
  11359. void RemoveKnot();
  11360. void RemoveKnot(uint);
  11361. // Properties:
  11362. InterpolationMode interpolationMode;
  11363. Array<Variant> knot;
  11364. Array<Variant> knots;
  11365. };
  11366. class SplinePath
  11367. {
  11368. public:
  11369. // Methods:
  11370. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  11371. void ApplyAttributes();
  11372. void ClearControlPoints();
  11373. void DrawDebugGeometry(DebugRenderer, bool);
  11374. Variant GetAttribute(const String&) const;
  11375. ValueAnimation GetAttributeAnimation(const String&) const;
  11376. float GetAttributeAnimationSpeed(const String&) const;
  11377. float GetAttributeAnimationTime(const String&) const;
  11378. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11379. Variant GetAttributeDefault(const String&) const;
  11380. bool GetInterceptNetworkUpdate(const String&) const;
  11381. Vector3 GetPoint(float) const;
  11382. Vector3 GetPosition() const;
  11383. bool HasSubscribedToEvent(Object, const String&);
  11384. bool HasSubscribedToEvent(const String&);
  11385. bool Load(File);
  11386. bool Load(VectorBuffer&);
  11387. bool LoadJSON(const JSONValue&);
  11388. bool LoadXML(const XMLElement&);
  11389. void MarkNetworkUpdate() const;
  11390. void Move(float);
  11391. void Remove();
  11392. void RemoveAttributeAnimation(const String&);
  11393. void RemoveControlPoint(Node);
  11394. void RemoveInstanceDefault();
  11395. void RemoveObjectAnimation();
  11396. void Reset();
  11397. void ResetToDefault();
  11398. bool Save(File) const;
  11399. bool Save(VectorBuffer&) const;
  11400. bool SaveJSON(JSONValue&) const;
  11401. bool SaveXML(XMLElement&) const;
  11402. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11403. void SetAnimationTime(float);
  11404. bool SetAttribute(const String&, const Variant&);
  11405. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11406. void SetAttributeAnimationSpeed(const String&, float);
  11407. void SetAttributeAnimationTime(const String&, float);
  11408. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11409. void SetInterceptNetworkUpdate(const String&, bool);
  11410. void SetPosition(float);
  11411. // Properties:
  11412. bool animationEnabled;
  11413. /* readonly */
  11414. Array<Variant> attributeDefaults;
  11415. /* readonly */
  11416. Array<AttributeInfo> attributeInfos;
  11417. Array<Variant> attributes;
  11418. /* readonly */
  11419. String category;
  11420. Node controlledNode;
  11421. bool enabled;
  11422. /* readonly */
  11423. bool enabledEffective;
  11424. /* readonly */
  11425. uint id;
  11426. InterpolationMode interpolationMode;
  11427. /* readonly */
  11428. bool isFinished;
  11429. /* readonly */
  11430. float length;
  11431. /* readonly */
  11432. Node node;
  11433. /* readonly */
  11434. uint numAttributes;
  11435. ObjectAnimation objectAnimation;
  11436. /* readonly */
  11437. int refs;
  11438. /* readonly */
  11439. bool replicated;
  11440. float speed;
  11441. bool temporary;
  11442. /* readonly */
  11443. StringHash type;
  11444. /* readonly */
  11445. String typeName;
  11446. /* readonly */
  11447. int weakRefs;
  11448. };
  11449. class Sprite
  11450. {
  11451. public:
  11452. Sprite();
  11453. Sprite(const String&in);
  11454. // Methods:
  11455. void AddChild(UIElement);
  11456. void AddTag(const String&);
  11457. void AddTags(const String&, int8 = ';');
  11458. void ApplyAttributes();
  11459. void BringToFront();
  11460. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11461. void DisableLayoutUpdate();
  11462. IntVector2 ElementToScreen(const IntVector2&);
  11463. void EnableLayoutUpdate();
  11464. uint FindChild(UIElement) const;
  11465. Variant GetAttribute(const String&) const;
  11466. ValueAnimation GetAttributeAnimation(const String&) const;
  11467. float GetAttributeAnimationSpeed(const String&) const;
  11468. float GetAttributeAnimationTime(const String&) const;
  11469. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11470. Variant GetAttributeDefault(const String&) const;
  11471. UIElement GetChild(const String&, bool = false) const;
  11472. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11473. Array<UIElement> GetChildren(bool = false) const;
  11474. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11475. UIElement GetElementEventSender() const;
  11476. bool GetInterceptNetworkUpdate(const String&) const;
  11477. uint GetNumChildren(bool) const;
  11478. bool HasSubscribedToEvent(Object, const String&);
  11479. bool HasSubscribedToEvent(const String&);
  11480. bool HasTag(const String&) const;
  11481. void InsertChild(uint, UIElement);
  11482. bool IsChildOf(UIElement) const;
  11483. bool IsInside(IntVector2, bool);
  11484. bool IsInsideCombined(IntVector2, bool);
  11485. bool Load(File);
  11486. bool Load(VectorBuffer&);
  11487. UIElement LoadChildXML(XMLFile, XMLFile);
  11488. UIElement LoadChildXML(const XMLElement&, XMLFile);
  11489. bool LoadJSON(const JSONValue&);
  11490. bool LoadXML(File);
  11491. bool LoadXML(VectorBuffer&);
  11492. bool LoadXML(XMLFile, XMLFile);
  11493. bool LoadXML(const XMLElement&, XMLFile);
  11494. bool LoadXML(const XMLElement&);
  11495. void MarkNetworkUpdate() const;
  11496. void Remove();
  11497. void RemoveAllChildren();
  11498. void RemoveAllTags();
  11499. void RemoveAttributeAnimation(const String&);
  11500. void RemoveChild(UIElement, uint = 0);
  11501. void RemoveChild(uint);
  11502. void RemoveInstanceDefault();
  11503. void RemoveObjectAnimation();
  11504. bool RemoveTag(const String&);
  11505. void ResetDeepEnabled();
  11506. void ResetToDefault();
  11507. bool Save(File) const;
  11508. bool Save(VectorBuffer&) const;
  11509. bool SaveJSON(JSONValue&) const;
  11510. bool SaveXML(File, const String& = "\t");
  11511. bool SaveXML(VectorBuffer&, const String& = "\t");
  11512. bool SaveXML(XMLElement&) const;
  11513. IntVector2 ScreenToElement(const IntVector2&);
  11514. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11515. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11516. void SetAnimationTime(float);
  11517. bool SetAttribute(const String&, const Variant&);
  11518. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11519. void SetAttributeAnimationSpeed(const String&, float);
  11520. void SetAttributeAnimationTime(const String&, float);
  11521. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11522. void SetDeepEnabled(bool);
  11523. void SetEnabledRecursive(bool);
  11524. void SetFixedHeight(int);
  11525. void SetFixedSize(int, int);
  11526. void SetFixedWidth(int);
  11527. void SetFullImageRect();
  11528. void SetHotSpot(int, int);
  11529. void SetInterceptNetworkUpdate(const String&, bool);
  11530. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11531. void SetMaxAnchor(float, float);
  11532. void SetMaxSize(int, int);
  11533. void SetMinAnchor(float, float);
  11534. void SetMinSize(int, int);
  11535. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11536. void SetPivot(float, float);
  11537. void SetPosition(float, float);
  11538. void SetScale(float);
  11539. void SetScale(float, float);
  11540. void SetSize(int, int);
  11541. bool SetStyle(const String&, XMLFile = null);
  11542. bool SetStyle(const XMLElement&);
  11543. bool SetStyleAuto(XMLFile = null);
  11544. void UpdateLayout();
  11545. const Variant& GetVar(const StringHash&);
  11546. // Properties:
  11547. bool animationEnabled;
  11548. /* readonly */
  11549. Array<Variant> attributeDefaults;
  11550. /* readonly */
  11551. Array<AttributeInfo> attributeInfos;
  11552. Array<Variant> attributes;
  11553. BlendMode blendMode;
  11554. bool bringToBack;
  11555. bool bringToFront;
  11556. /* readonly */
  11557. String category;
  11558. /* readonly */
  11559. IntVector2 childOffset;
  11560. /* readonly */
  11561. Array<UIElement> children;
  11562. IntRect clipBorder;
  11563. bool clipChildren;
  11564. /* writeonly */
  11565. Color color;
  11566. /* readonly */
  11567. bool colorGradient;
  11568. Array<Color> colors;
  11569. /* readonly */
  11570. IntRect combinedScreenRect;
  11571. XMLFile defaultStyle;
  11572. /* readonly */
  11573. float derivedOpacity;
  11574. /* readonly */
  11575. uint dragButtonCombo;
  11576. /* readonly */
  11577. int dragButtonCount;
  11578. uint dragDropMode;
  11579. bool editable;
  11580. bool elementEventSender;
  11581. bool enableAnchor;
  11582. bool enabled;
  11583. /* readonly */
  11584. bool enabledSelf;
  11585. /* readonly */
  11586. bool fixedHeight;
  11587. /* readonly */
  11588. bool fixedSize;
  11589. /* readonly */
  11590. bool fixedWidth;
  11591. bool focus;
  11592. FocusMode focusMode;
  11593. int height;
  11594. HorizontalAlignment horizontalAlignment;
  11595. IntVector2 hotSpot;
  11596. /* readonly */
  11597. bool hovering;
  11598. IntRect imageRect;
  11599. int indent;
  11600. int indentSpacing;
  11601. /* readonly */
  11602. int indentWidth;
  11603. bool internal;
  11604. IntRect layoutBorder;
  11605. Vector2 layoutFlexScale;
  11606. LayoutMode layoutMode;
  11607. int layoutSpacing;
  11608. Vector2 maxAnchor;
  11609. int maxHeight;
  11610. IntVector2 maxOffset;
  11611. IntVector2 maxSize;
  11612. int maxWidth;
  11613. Vector2 minAnchor;
  11614. int minHeight;
  11615. IntVector2 minOffset;
  11616. IntVector2 minSize;
  11617. int minWidth;
  11618. String name;
  11619. /* readonly */
  11620. uint numAllChildren;
  11621. /* readonly */
  11622. uint numAttributes;
  11623. /* readonly */
  11624. uint numChildren;
  11625. ObjectAnimation objectAnimation;
  11626. float opacity;
  11627. UIElement parent;
  11628. Vector2 pivot;
  11629. Vector2 position;
  11630. int priority;
  11631. /* readonly */
  11632. int refs;
  11633. /* readonly */
  11634. UIElement root;
  11635. float rotation;
  11636. Vector2 scale;
  11637. /* readonly */
  11638. IntVector2 screenPosition;
  11639. bool selected;
  11640. IntVector2 size;
  11641. bool sortChildren;
  11642. String style;
  11643. /* readonly */
  11644. Array<String> tags;
  11645. bool temporary;
  11646. Texture texture;
  11647. TraversalMode traversalMode;
  11648. /* readonly */
  11649. StringHash type;
  11650. /* readonly */
  11651. String typeName;
  11652. bool useDerivedOpacity;
  11653. /* readonly */
  11654. VariantMap vars;
  11655. VerticalAlignment verticalAlignment;
  11656. bool visible;
  11657. /* readonly */
  11658. bool visibleEffective;
  11659. /* readonly */
  11660. int weakRefs;
  11661. int width;
  11662. };
  11663. class Sprite2D
  11664. {
  11665. public:
  11666. Sprite2D();
  11667. Sprite2D(const String&in);
  11668. // Methods:
  11669. bool HasSubscribedToEvent(Object, const String&);
  11670. bool HasSubscribedToEvent(const String&);
  11671. bool Load(File);
  11672. bool Load(VectorBuffer&);
  11673. bool Load(const String&);
  11674. bool Save(File) const;
  11675. bool Save(VectorBuffer&) const;
  11676. bool Save(const String&) const;
  11677. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11678. // Properties:
  11679. /* readonly */
  11680. String category;
  11681. Vector2 hotSpot;
  11682. /* readonly */
  11683. uint memoryUse;
  11684. String name;
  11685. IntVector2 offset;
  11686. IntRect rectangle;
  11687. /* readonly */
  11688. int refs;
  11689. Texture2D texture;
  11690. float textureEdgeOffset;
  11691. /* readonly */
  11692. StringHash type;
  11693. /* readonly */
  11694. String typeName;
  11695. /* readonly */
  11696. uint useTimer;
  11697. /* readonly */
  11698. int weakRefs;
  11699. };
  11700. class SpriteSheet2D
  11701. {
  11702. public:
  11703. SpriteSheet2D();
  11704. SpriteSheet2D(const String&in);
  11705. // Methods:
  11706. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  11707. Sprite2D GetSprite(const String&);
  11708. bool HasSubscribedToEvent(Object, const String&);
  11709. bool HasSubscribedToEvent(const String&);
  11710. bool Load(File);
  11711. bool Load(VectorBuffer&);
  11712. bool Load(const String&);
  11713. bool Save(File) const;
  11714. bool Save(VectorBuffer&) const;
  11715. bool Save(const String&) const;
  11716. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11717. // Properties:
  11718. /* readonly */
  11719. String category;
  11720. /* readonly */
  11721. uint memoryUse;
  11722. String name;
  11723. /* readonly */
  11724. int refs;
  11725. Texture2D texture;
  11726. /* readonly */
  11727. StringHash type;
  11728. /* readonly */
  11729. String typeName;
  11730. /* readonly */
  11731. uint useTimer;
  11732. /* readonly */
  11733. int weakRefs;
  11734. };
  11735. class StaticModel
  11736. {
  11737. public:
  11738. // Methods:
  11739. void ApplyAttributes();
  11740. void ApplyMaterialList(const String& = String ( ));
  11741. void DrawDebugGeometry(DebugRenderer, bool);
  11742. Variant GetAttribute(const String&) const;
  11743. ValueAnimation GetAttributeAnimation(const String&) const;
  11744. float GetAttributeAnimationSpeed(const String&) const;
  11745. float GetAttributeAnimationTime(const String&) const;
  11746. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11747. Variant GetAttributeDefault(const String&) const;
  11748. bool GetInterceptNetworkUpdate(const String&) const;
  11749. bool HasSubscribedToEvent(Object, const String&);
  11750. bool HasSubscribedToEvent(const String&);
  11751. bool IsInView(Camera) const;
  11752. bool IsInside(const Vector3&) const;
  11753. bool IsInsideLocal(const Vector3&) const;
  11754. bool Load(File);
  11755. bool Load(VectorBuffer&);
  11756. bool LoadJSON(const JSONValue&);
  11757. bool LoadXML(const XMLElement&);
  11758. void MarkNetworkUpdate() const;
  11759. void Remove();
  11760. void RemoveAttributeAnimation(const String&);
  11761. void RemoveInstanceDefault();
  11762. void RemoveObjectAnimation();
  11763. void ResetToDefault();
  11764. bool Save(File) const;
  11765. bool Save(VectorBuffer&) const;
  11766. bool SaveJSON(JSONValue&) const;
  11767. bool SaveXML(XMLElement&) const;
  11768. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11769. void SetAnimationTime(float);
  11770. bool SetAttribute(const String&, const Variant&);
  11771. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11772. void SetAttributeAnimationSpeed(const String&, float);
  11773. void SetAttributeAnimationTime(const String&, float);
  11774. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11775. void SetInterceptNetworkUpdate(const String&, bool);
  11776. // Properties:
  11777. bool animationEnabled;
  11778. /* readonly */
  11779. Array<Variant> attributeDefaults;
  11780. /* readonly */
  11781. Array<AttributeInfo> attributeInfos;
  11782. Array<Variant> attributes;
  11783. /* readonly */
  11784. BoundingBox boundingBox;
  11785. bool castShadows;
  11786. /* readonly */
  11787. String category;
  11788. float drawDistance;
  11789. bool enabled;
  11790. /* readonly */
  11791. bool enabledEffective;
  11792. /* readonly */
  11793. uint id;
  11794. /* readonly */
  11795. bool inView;
  11796. uint lightMask;
  11797. float lodBias;
  11798. Material material;
  11799. Array<Material> materials;
  11800. uint maxLights;
  11801. Model model;
  11802. /* readonly */
  11803. Node node;
  11804. /* readonly */
  11805. uint numAttributes;
  11806. /* readonly */
  11807. uint numGeometries;
  11808. ObjectAnimation objectAnimation;
  11809. bool occludee;
  11810. bool occluder;
  11811. uint occlusionLodLevel;
  11812. /* readonly */
  11813. int refs;
  11814. /* readonly */
  11815. bool replicated;
  11816. float shadowDistance;
  11817. uint shadowMask;
  11818. bool temporary;
  11819. /* readonly */
  11820. StringHash type;
  11821. /* readonly */
  11822. String typeName;
  11823. uint viewMask;
  11824. /* readonly */
  11825. int weakRefs;
  11826. /* readonly */
  11827. BoundingBox worldBoundingBox;
  11828. uint zoneMask;
  11829. };
  11830. class StaticModelGroup
  11831. {
  11832. public:
  11833. // Methods:
  11834. void AddInstanceNode(Node);
  11835. void ApplyAttributes();
  11836. void ApplyMaterialList(const String& = String ( ));
  11837. void DrawDebugGeometry(DebugRenderer, bool);
  11838. Variant GetAttribute(const String&) const;
  11839. ValueAnimation GetAttributeAnimation(const String&) const;
  11840. float GetAttributeAnimationSpeed(const String&) const;
  11841. float GetAttributeAnimationTime(const String&) const;
  11842. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11843. Variant GetAttributeDefault(const String&) const;
  11844. bool GetInterceptNetworkUpdate(const String&) const;
  11845. bool HasSubscribedToEvent(Object, const String&);
  11846. bool HasSubscribedToEvent(const String&);
  11847. bool IsInView(Camera) const;
  11848. bool Load(File);
  11849. bool Load(VectorBuffer&);
  11850. bool LoadJSON(const JSONValue&);
  11851. bool LoadXML(const XMLElement&);
  11852. void MarkNetworkUpdate() const;
  11853. void Remove();
  11854. void RemoveAllInstanceNodes();
  11855. void RemoveAttributeAnimation(const String&);
  11856. void RemoveInstanceDefault();
  11857. void RemoveInstanceNode(Node);
  11858. void RemoveObjectAnimation();
  11859. void ResetToDefault();
  11860. bool Save(File) const;
  11861. bool Save(VectorBuffer&) const;
  11862. bool SaveJSON(JSONValue&) const;
  11863. bool SaveXML(XMLElement&) const;
  11864. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11865. void SetAnimationTime(float);
  11866. bool SetAttribute(const String&, const Variant&);
  11867. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11868. void SetAttributeAnimationSpeed(const String&, float);
  11869. void SetAttributeAnimationTime(const String&, float);
  11870. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11871. void SetInterceptNetworkUpdate(const String&, bool);
  11872. // Properties:
  11873. bool animationEnabled;
  11874. /* readonly */
  11875. Array<Variant> attributeDefaults;
  11876. /* readonly */
  11877. Array<AttributeInfo> attributeInfos;
  11878. Array<Variant> attributes;
  11879. /* readonly */
  11880. BoundingBox boundingBox;
  11881. bool castShadows;
  11882. /* readonly */
  11883. String category;
  11884. float drawDistance;
  11885. bool enabled;
  11886. /* readonly */
  11887. bool enabledEffective;
  11888. /* readonly */
  11889. uint id;
  11890. /* readonly */
  11891. bool inView;
  11892. /* readonly */
  11893. Array<Node> instanceNodes;
  11894. uint lightMask;
  11895. float lodBias;
  11896. Material material;
  11897. Array<Material> materials;
  11898. uint maxLights;
  11899. Model model;
  11900. /* readonly */
  11901. Node node;
  11902. /* readonly */
  11903. uint numAttributes;
  11904. /* readonly */
  11905. uint numGeometries;
  11906. /* readonly */
  11907. uint numInstanceNodes;
  11908. ObjectAnimation objectAnimation;
  11909. bool occludee;
  11910. bool occluder;
  11911. uint occlusionLodLevel;
  11912. /* readonly */
  11913. int refs;
  11914. /* readonly */
  11915. bool replicated;
  11916. float shadowDistance;
  11917. uint shadowMask;
  11918. bool temporary;
  11919. /* readonly */
  11920. StringHash type;
  11921. /* readonly */
  11922. String typeName;
  11923. uint viewMask;
  11924. /* readonly */
  11925. int weakRefs;
  11926. /* readonly */
  11927. BoundingBox worldBoundingBox;
  11928. /* readonly */
  11929. Zone zone;
  11930. uint zoneMask;
  11931. };
  11932. class StaticSprite2D
  11933. {
  11934. public:
  11935. // Methods:
  11936. void ApplyAttributes();
  11937. void DrawDebugGeometry(DebugRenderer, bool);
  11938. Variant GetAttribute(const String&) const;
  11939. ValueAnimation GetAttributeAnimation(const String&) const;
  11940. float GetAttributeAnimationSpeed(const String&) const;
  11941. float GetAttributeAnimationTime(const String&) const;
  11942. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11943. Variant GetAttributeDefault(const String&) const;
  11944. bool GetInterceptNetworkUpdate(const String&) const;
  11945. bool HasSubscribedToEvent(Object, const String&);
  11946. bool HasSubscribedToEvent(const String&);
  11947. bool IsInView(Camera) const;
  11948. bool Load(File);
  11949. bool Load(VectorBuffer&);
  11950. bool LoadJSON(const JSONValue&);
  11951. bool LoadXML(const XMLElement&);
  11952. void MarkNetworkUpdate() const;
  11953. void Remove();
  11954. void RemoveAttributeAnimation(const String&);
  11955. void RemoveInstanceDefault();
  11956. void RemoveObjectAnimation();
  11957. void ResetToDefault();
  11958. bool Save(File) const;
  11959. bool Save(VectorBuffer&) const;
  11960. bool SaveJSON(JSONValue&) const;
  11961. bool SaveXML(XMLElement&) const;
  11962. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11963. void SetAnimationTime(float);
  11964. bool SetAttribute(const String&, const Variant&);
  11965. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11966. void SetAttributeAnimationSpeed(const String&, float);
  11967. void SetAttributeAnimationTime(const String&, float);
  11968. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11969. void SetFlip(bool, bool);
  11970. void SetInterceptNetworkUpdate(const String&, bool);
  11971. // Properties:
  11972. float alpha;
  11973. bool animationEnabled;
  11974. /* readonly */
  11975. Array<Variant> attributeDefaults;
  11976. /* readonly */
  11977. Array<AttributeInfo> attributeInfos;
  11978. Array<Variant> attributes;
  11979. BlendMode blendMode;
  11980. /* readonly */
  11981. BoundingBox boundingBox;
  11982. bool castShadows;
  11983. /* readonly */
  11984. String category;
  11985. Color color;
  11986. Material customMaterial;
  11987. float drawDistance;
  11988. Rect drawRect;
  11989. bool enabled;
  11990. /* readonly */
  11991. bool enabledEffective;
  11992. bool flipX;
  11993. bool flipY;
  11994. Vector2 hotSpot;
  11995. /* readonly */
  11996. uint id;
  11997. /* readonly */
  11998. bool inView;
  11999. int layer;
  12000. uint lightMask;
  12001. float lodBias;
  12002. uint maxLights;
  12003. /* readonly */
  12004. Node node;
  12005. /* readonly */
  12006. uint numAttributes;
  12007. ObjectAnimation objectAnimation;
  12008. bool occludee;
  12009. bool occluder;
  12010. int orderInLayer;
  12011. /* readonly */
  12012. int refs;
  12013. /* readonly */
  12014. bool replicated;
  12015. float shadowDistance;
  12016. uint shadowMask;
  12017. Sprite2D sprite;
  12018. bool temporary;
  12019. Rect textureRect;
  12020. /* readonly */
  12021. StringHash type;
  12022. /* readonly */
  12023. String typeName;
  12024. bool useDrawRect;
  12025. bool useHotSpot;
  12026. bool useTextureRect;
  12027. uint viewMask;
  12028. /* readonly */
  12029. int weakRefs;
  12030. /* readonly */
  12031. BoundingBox worldBoundingBox;
  12032. uint zoneMask;
  12033. };
  12034. class StretchableSprite2D
  12035. {
  12036. public:
  12037. // Methods:
  12038. void ApplyAttributes();
  12039. void DrawDebugGeometry(DebugRenderer, bool);
  12040. Variant GetAttribute(const String&) const;
  12041. ValueAnimation GetAttributeAnimation(const String&) const;
  12042. float GetAttributeAnimationSpeed(const String&) const;
  12043. float GetAttributeAnimationTime(const String&) const;
  12044. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12045. Variant GetAttributeDefault(const String&) const;
  12046. bool GetInterceptNetworkUpdate(const String&) const;
  12047. bool HasSubscribedToEvent(Object, const String&);
  12048. bool HasSubscribedToEvent(const String&);
  12049. bool IsInView(Camera) const;
  12050. bool Load(File);
  12051. bool Load(VectorBuffer&);
  12052. bool LoadJSON(const JSONValue&);
  12053. bool LoadXML(const XMLElement&);
  12054. void MarkNetworkUpdate() const;
  12055. void Remove();
  12056. void RemoveAttributeAnimation(const String&);
  12057. void RemoveInstanceDefault();
  12058. void RemoveObjectAnimation();
  12059. void ResetToDefault();
  12060. bool Save(File) const;
  12061. bool Save(VectorBuffer&) const;
  12062. bool SaveJSON(JSONValue&) const;
  12063. bool SaveXML(XMLElement&) const;
  12064. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12065. void SetAnimationTime(float);
  12066. bool SetAttribute(const String&, const Variant&);
  12067. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12068. void SetAttributeAnimationSpeed(const String&, float);
  12069. void SetAttributeAnimationTime(const String&, float);
  12070. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12071. void SetFlip(bool, bool);
  12072. void SetInterceptNetworkUpdate(const String&, bool);
  12073. // Properties:
  12074. float alpha;
  12075. bool animationEnabled;
  12076. /* readonly */
  12077. Array<Variant> attributeDefaults;
  12078. /* readonly */
  12079. Array<AttributeInfo> attributeInfos;
  12080. Array<Variant> attributes;
  12081. BlendMode blendMode;
  12082. IntRect border;
  12083. /* readonly */
  12084. BoundingBox boundingBox;
  12085. bool castShadows;
  12086. /* readonly */
  12087. String category;
  12088. Color color;
  12089. Material customMaterial;
  12090. float drawDistance;
  12091. Rect drawRect;
  12092. bool enabled;
  12093. /* readonly */
  12094. bool enabledEffective;
  12095. bool flipX;
  12096. bool flipY;
  12097. Vector2 hotSpot;
  12098. /* readonly */
  12099. uint id;
  12100. /* readonly */
  12101. bool inView;
  12102. int layer;
  12103. uint lightMask;
  12104. float lodBias;
  12105. uint maxLights;
  12106. /* readonly */
  12107. Node node;
  12108. /* readonly */
  12109. uint numAttributes;
  12110. ObjectAnimation objectAnimation;
  12111. bool occludee;
  12112. bool occluder;
  12113. int orderInLayer;
  12114. /* readonly */
  12115. int refs;
  12116. /* readonly */
  12117. bool replicated;
  12118. float shadowDistance;
  12119. uint shadowMask;
  12120. Sprite2D sprite;
  12121. bool temporary;
  12122. Rect textureRect;
  12123. /* readonly */
  12124. StringHash type;
  12125. /* readonly */
  12126. String typeName;
  12127. bool useDrawRect;
  12128. bool useHotSpot;
  12129. bool useTextureRect;
  12130. uint viewMask;
  12131. /* readonly */
  12132. int weakRefs;
  12133. /* readonly */
  12134. BoundingBox worldBoundingBox;
  12135. uint zoneMask;
  12136. };
  12137. class String
  12138. {
  12139. public:
  12140. ~String();
  12141. String();
  12142. String(const String&in);
  12143. String(int);
  12144. String(uint);
  12145. String(float);
  12146. String(double);
  12147. String(bool);
  12148. String(const char*);
  12149. // Methods:
  12150. void AppendUTF8(uint);
  12151. uint AtUTF8(uint) const;
  12152. uint ByteOffsetUTF8(uint) const;
  12153. void Clear();
  12154. int Compare(const String&, bool = true) const;
  12155. bool Contains(const String&, bool = true) const;
  12156. bool Contains(uint8, bool = true) const;
  12157. bool EndsWith(const String&, bool = true) const;
  12158. uint Find(const String&, uint = 0, bool = true) const;
  12159. uint Find(uint8, uint = 0, bool = true) const;
  12160. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  12161. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  12162. void Join(Array<String>&, const String&);
  12163. uint NextUTF8Char(uint&) const;
  12164. void Replace(const String&, const String&, bool = true);
  12165. void Replace(uint8, uint8, bool = true);
  12166. void ReplaceUTF8(uint, uint);
  12167. String Replaced(const String&, const String&, bool = true) const;
  12168. String Replaced(uint8, uint8, bool = true) const;
  12169. void Resize(uint);
  12170. void SetUTF8FromLatin1(const String&);
  12171. Array<String> Split(uint8, bool = false) const;
  12172. bool StartsWith(const String&, bool = true) const;
  12173. String Substring(uint) const;
  12174. String Substring(uint, uint) const;
  12175. String SubstringUTF8(uint) const;
  12176. String SubstringUTF8(uint, uint) const;
  12177. bool ToBool() const;
  12178. Color ToColor() const;
  12179. double ToDouble() const;
  12180. float ToFloat() const;
  12181. int ToInt(int = 10) const;
  12182. int64 ToInt64(int = 10) const;
  12183. IntRect ToIntRect() const;
  12184. IntVector2 ToIntVector2() const;
  12185. IntVector3 ToIntVector3() const;
  12186. String ToLower() const;
  12187. Matrix3 ToMatrix3() const;
  12188. Matrix3x4 ToMatrix3x4() const;
  12189. Matrix4 ToMatrix4() const;
  12190. Quaternion ToQuaternion() const;
  12191. uint ToUInt(int = 10) const;
  12192. uint64 ToUInt64(int = 10) const;
  12193. String ToUpper() const;
  12194. Vector2 ToVector2() const;
  12195. Vector3 ToVector3() const;
  12196. Vector4 ToVector4(bool = false) const;
  12197. Variant ToVectorVariant() const;
  12198. String Trimmed() const;
  12199. // Properties:
  12200. /* readonly */
  12201. bool empty;
  12202. /* readonly */
  12203. uint length;
  12204. /* readonly */
  12205. uint utf8Length;
  12206. };
  12207. class StringHash
  12208. {
  12209. public:
  12210. StringHash();
  12211. StringHash(const StringHash&in);
  12212. StringHash(const String&in);
  12213. StringHash(uint);
  12214. // Methods:
  12215. String ToString() const;
  12216. // Properties:
  12217. /* readonly */
  12218. uint value;
  12219. };
  12220. class Technique
  12221. {
  12222. public:
  12223. Technique();
  12224. Technique(const String&in);
  12225. // Methods:
  12226. Technique Clone(const String& = String ( )) const;
  12227. Pass CreatePass(const String&);
  12228. Pass GetPass(const String&);
  12229. Pass GetSupportedPass(const String&);
  12230. bool HasPass(const String&) const;
  12231. bool HasSubscribedToEvent(Object, const String&);
  12232. bool HasSubscribedToEvent(const String&);
  12233. bool Load(File);
  12234. bool Load(VectorBuffer&);
  12235. bool Load(const String&);
  12236. void RemovePass(const String&);
  12237. bool Save(File) const;
  12238. bool Save(VectorBuffer&) const;
  12239. bool Save(const String&) const;
  12240. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12241. // Properties:
  12242. /* readonly */
  12243. String category;
  12244. bool desktop;
  12245. /* readonly */
  12246. uint memoryUse;
  12247. String name;
  12248. /* readonly */
  12249. uint numPasses;
  12250. /* readonly */
  12251. Array<String> passNames;
  12252. /* readonly */
  12253. Array<Pass> passes;
  12254. /* readonly */
  12255. int refs;
  12256. /* readonly */
  12257. bool supported;
  12258. /* readonly */
  12259. StringHash type;
  12260. /* readonly */
  12261. String typeName;
  12262. /* readonly */
  12263. uint useTimer;
  12264. /* readonly */
  12265. int weakRefs;
  12266. };
  12267. class TechniqueEntry
  12268. {
  12269. public:
  12270. ~TechniqueEntry();
  12271. TechniqueEntry();
  12272. TechniqueEntry(const TechniqueEntry&in);
  12273. // Properties:
  12274. float lodDistance;
  12275. int qualityLevel;
  12276. Technique technique;
  12277. };
  12278. class Terrain
  12279. {
  12280. public:
  12281. // Methods:
  12282. void ApplyAttributes();
  12283. void ApplyHeightMap();
  12284. void DrawDebugGeometry(DebugRenderer, bool);
  12285. Variant GetAttribute(const String&) const;
  12286. ValueAnimation GetAttributeAnimation(const String&) const;
  12287. float GetAttributeAnimationSpeed(const String&) const;
  12288. float GetAttributeAnimationTime(const String&) const;
  12289. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12290. Variant GetAttributeDefault(const String&) const;
  12291. float GetHeight(const Vector3&) const;
  12292. bool GetInterceptNetworkUpdate(const String&) const;
  12293. TerrainPatch GetNeighborPatch(int, int) const;
  12294. Vector3 GetNormal(const Vector3&) const;
  12295. TerrainPatch GetPatch(int, int) const;
  12296. bool HasSubscribedToEvent(Object, const String&);
  12297. bool HasSubscribedToEvent(const String&);
  12298. Vector3 HeightMapToWorld(const IntVector2&) const;
  12299. bool Load(File);
  12300. bool Load(VectorBuffer&);
  12301. bool LoadJSON(const JSONValue&);
  12302. bool LoadXML(const XMLElement&);
  12303. void MarkNetworkUpdate() const;
  12304. void Remove();
  12305. void RemoveAttributeAnimation(const String&);
  12306. void RemoveInstanceDefault();
  12307. void RemoveObjectAnimation();
  12308. void ResetToDefault();
  12309. bool Save(File) const;
  12310. bool Save(VectorBuffer&) const;
  12311. bool SaveJSON(JSONValue&) const;
  12312. bool SaveXML(XMLElement&) const;
  12313. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12314. void SetAnimationTime(float);
  12315. bool SetAttribute(const String&, const Variant&);
  12316. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12317. void SetAttributeAnimationSpeed(const String&, float);
  12318. void SetAttributeAnimationTime(const String&, float);
  12319. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12320. void SetInterceptNetworkUpdate(const String&, bool);
  12321. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  12322. IntVector2 WorldToHeightMap(const Vector3&) const;
  12323. // Properties:
  12324. bool animationEnabled;
  12325. /* readonly */
  12326. Array<Variant> attributeDefaults;
  12327. /* readonly */
  12328. Array<AttributeInfo> attributeInfos;
  12329. Array<Variant> attributes;
  12330. bool castShadows;
  12331. /* readonly */
  12332. String category;
  12333. float drawDistance;
  12334. Terrain eastNeighbor;
  12335. bool enabled;
  12336. /* readonly */
  12337. bool enabledEffective;
  12338. Image heightMap;
  12339. /* readonly */
  12340. uint id;
  12341. uint lightMask;
  12342. float lodBias;
  12343. Material material;
  12344. uint maxLights;
  12345. uint maxLodLevels;
  12346. /* readonly */
  12347. Node node;
  12348. Terrain northNeighbor;
  12349. /* readonly */
  12350. uint numAttributes;
  12351. /* readonly */
  12352. IntVector2 numPatches;
  12353. /* readonly */
  12354. IntVector2 numVertices;
  12355. ObjectAnimation objectAnimation;
  12356. bool occludee;
  12357. bool occluder;
  12358. uint occlusionLodLevel;
  12359. int patchSize;
  12360. /* readonly */
  12361. Array<TerrainPatch> patches;
  12362. /* readonly */
  12363. int refs;
  12364. /* readonly */
  12365. bool replicated;
  12366. float shadowDistance;
  12367. uint shadowMask;
  12368. bool smoothing;
  12369. Terrain southNeighbor;
  12370. Vector3 spacing;
  12371. bool temporary;
  12372. /* readonly */
  12373. StringHash type;
  12374. /* readonly */
  12375. String typeName;
  12376. uint viewMask;
  12377. /* readonly */
  12378. int weakRefs;
  12379. Terrain westNeighbor;
  12380. uint zoneMask;
  12381. };
  12382. class TerrainPatch
  12383. {
  12384. public:
  12385. // Methods:
  12386. void ApplyAttributes();
  12387. void DrawDebugGeometry(DebugRenderer, bool);
  12388. Variant GetAttribute(const String&) const;
  12389. ValueAnimation GetAttributeAnimation(const String&) const;
  12390. float GetAttributeAnimationSpeed(const String&) const;
  12391. float GetAttributeAnimationTime(const String&) const;
  12392. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12393. Variant GetAttributeDefault(const String&) const;
  12394. bool GetInterceptNetworkUpdate(const String&) const;
  12395. bool HasSubscribedToEvent(Object, const String&);
  12396. bool HasSubscribedToEvent(const String&);
  12397. bool IsInView(Camera) const;
  12398. bool Load(File);
  12399. bool Load(VectorBuffer&);
  12400. bool LoadJSON(const JSONValue&);
  12401. bool LoadXML(const XMLElement&);
  12402. void MarkNetworkUpdate() const;
  12403. void Remove();
  12404. void RemoveAttributeAnimation(const String&);
  12405. void RemoveInstanceDefault();
  12406. void RemoveObjectAnimation();
  12407. void ResetToDefault();
  12408. bool Save(File) const;
  12409. bool Save(VectorBuffer&) const;
  12410. bool SaveJSON(JSONValue&) const;
  12411. bool SaveXML(XMLElement&) const;
  12412. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12413. void SetAnimationTime(float);
  12414. bool SetAttribute(const String&, const Variant&);
  12415. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12416. void SetAttributeAnimationSpeed(const String&, float);
  12417. void SetAttributeAnimationTime(const String&, float);
  12418. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12419. void SetInterceptNetworkUpdate(const String&, bool);
  12420. // Properties:
  12421. bool animationEnabled;
  12422. /* readonly */
  12423. Array<Variant> attributeDefaults;
  12424. /* readonly */
  12425. Array<AttributeInfo> attributeInfos;
  12426. Array<Variant> attributes;
  12427. /* readonly */
  12428. BoundingBox boundingBox;
  12429. bool castShadows;
  12430. /* readonly */
  12431. String category;
  12432. float drawDistance;
  12433. bool enabled;
  12434. /* readonly */
  12435. bool enabledEffective;
  12436. /* readonly */
  12437. uint id;
  12438. /* readonly */
  12439. bool inView;
  12440. uint lightMask;
  12441. float lodBias;
  12442. uint maxLights;
  12443. /* readonly */
  12444. Node node;
  12445. /* readonly */
  12446. uint numAttributes;
  12447. ObjectAnimation objectAnimation;
  12448. bool occludee;
  12449. bool occluder;
  12450. /* readonly */
  12451. int refs;
  12452. /* readonly */
  12453. bool replicated;
  12454. float shadowDistance;
  12455. uint shadowMask;
  12456. bool temporary;
  12457. /* readonly */
  12458. StringHash type;
  12459. /* readonly */
  12460. String typeName;
  12461. uint viewMask;
  12462. /* readonly */
  12463. int weakRefs;
  12464. /* readonly */
  12465. BoundingBox worldBoundingBox;
  12466. uint zoneMask;
  12467. };
  12468. class Text
  12469. {
  12470. public:
  12471. Text();
  12472. Text(const String&in);
  12473. // Methods:
  12474. void AddChild(UIElement);
  12475. void AddTag(const String&);
  12476. void AddTags(const String&, int8 = ';');
  12477. void ApplyAttributes();
  12478. void BringToFront();
  12479. void ClearSelection();
  12480. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12481. void DisableLayoutUpdate();
  12482. IntVector2 ElementToScreen(const IntVector2&);
  12483. void EnableLayoutUpdate();
  12484. uint FindChild(UIElement) const;
  12485. Variant GetAttribute(const String&) const;
  12486. ValueAnimation GetAttributeAnimation(const String&) const;
  12487. float GetAttributeAnimationSpeed(const String&) const;
  12488. float GetAttributeAnimationTime(const String&) const;
  12489. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12490. Variant GetAttributeDefault(const String&) const;
  12491. UIElement GetChild(const String&, bool = false) const;
  12492. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12493. Array<UIElement> GetChildren(bool = false) const;
  12494. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12495. UIElement GetElementEventSender() const;
  12496. bool GetInterceptNetworkUpdate(const String&) const;
  12497. uint GetNumChildren(bool) const;
  12498. bool HasSubscribedToEvent(Object, const String&);
  12499. bool HasSubscribedToEvent(const String&);
  12500. bool HasTag(const String&) const;
  12501. void InsertChild(uint, UIElement);
  12502. bool IsChildOf(UIElement) const;
  12503. bool IsInside(IntVector2, bool);
  12504. bool IsInsideCombined(IntVector2, bool);
  12505. bool Load(File);
  12506. bool Load(VectorBuffer&);
  12507. UIElement LoadChildXML(XMLFile, XMLFile);
  12508. UIElement LoadChildXML(const XMLElement&, XMLFile);
  12509. bool LoadJSON(const JSONValue&);
  12510. bool LoadXML(File);
  12511. bool LoadXML(VectorBuffer&);
  12512. bool LoadXML(XMLFile, XMLFile);
  12513. bool LoadXML(const XMLElement&, XMLFile);
  12514. bool LoadXML(const XMLElement&);
  12515. void MarkNetworkUpdate() const;
  12516. void Remove();
  12517. void RemoveAllChildren();
  12518. void RemoveAllTags();
  12519. void RemoveAttributeAnimation(const String&);
  12520. void RemoveChild(UIElement, uint = 0);
  12521. void RemoveChild(uint);
  12522. void RemoveInstanceDefault();
  12523. void RemoveObjectAnimation();
  12524. bool RemoveTag(const String&);
  12525. void ResetDeepEnabled();
  12526. void ResetToDefault();
  12527. bool Save(File) const;
  12528. bool Save(VectorBuffer&) const;
  12529. bool SaveJSON(JSONValue&) const;
  12530. bool SaveXML(File, const String& = "\t");
  12531. bool SaveXML(VectorBuffer&, const String& = "\t");
  12532. bool SaveXML(XMLElement&) const;
  12533. IntVector2 ScreenToElement(const IntVector2&);
  12534. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12535. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12536. void SetAnimationTime(float);
  12537. bool SetAttribute(const String&, const Variant&);
  12538. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12539. void SetAttributeAnimationSpeed(const String&, float);
  12540. void SetAttributeAnimationTime(const String&, float);
  12541. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12542. void SetDeepEnabled(bool);
  12543. void SetEnabledRecursive(bool);
  12544. void SetFixedHeight(int);
  12545. void SetFixedSize(int, int);
  12546. void SetFixedWidth(int);
  12547. bool SetFont(Font, float);
  12548. bool SetFont(const String&, float);
  12549. void SetInterceptNetworkUpdate(const String&, bool);
  12550. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12551. void SetMaxAnchor(float, float);
  12552. void SetMaxSize(int, int);
  12553. void SetMinAnchor(float, float);
  12554. void SetMinSize(int, int);
  12555. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12556. void SetPivot(float, float);
  12557. void SetPosition(int, int);
  12558. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  12559. void SetSize(int, int);
  12560. bool SetStyle(const String&, XMLFile = null);
  12561. bool SetStyle(const XMLElement&);
  12562. bool SetStyleAuto(XMLFile = null);
  12563. void UpdateLayout();
  12564. const Variant& GetVar(const StringHash&);
  12565. // Properties:
  12566. bool animationEnabled;
  12567. /* readonly */
  12568. Array<Variant> attributeDefaults;
  12569. /* readonly */
  12570. Array<AttributeInfo> attributeInfos;
  12571. Array<Variant> attributes;
  12572. bool autoLocalizable;
  12573. bool bringToBack;
  12574. bool bringToFront;
  12575. /* readonly */
  12576. String category;
  12577. /* readonly */
  12578. Array<Vector2> charPositions;
  12579. /* readonly */
  12580. Array<Vector2> charSizes;
  12581. /* readonly */
  12582. IntVector2 childOffset;
  12583. /* readonly */
  12584. Array<UIElement> children;
  12585. IntRect clipBorder;
  12586. bool clipChildren;
  12587. /* writeonly */
  12588. Color color;
  12589. /* readonly */
  12590. bool colorGradient;
  12591. Array<Color> colors;
  12592. /* readonly */
  12593. IntRect combinedScreenRect;
  12594. XMLFile defaultStyle;
  12595. /* readonly */
  12596. float derivedOpacity;
  12597. /* readonly */
  12598. uint dragButtonCombo;
  12599. /* readonly */
  12600. int dragButtonCount;
  12601. uint dragDropMode;
  12602. bool editable;
  12603. Color effectColor;
  12604. bool effectRoundStroke;
  12605. IntVector2 effectShadowOffset;
  12606. int effectStrokeThickness;
  12607. bool elementEventSender;
  12608. bool enableAnchor;
  12609. bool enabled;
  12610. /* readonly */
  12611. bool enabledSelf;
  12612. /* readonly */
  12613. bool fixedHeight;
  12614. /* readonly */
  12615. bool fixedSize;
  12616. /* readonly */
  12617. bool fixedWidth;
  12618. bool focus;
  12619. FocusMode focusMode;
  12620. /* readonly */
  12621. Font font;
  12622. float fontSize;
  12623. int height;
  12624. HorizontalAlignment horizontalAlignment;
  12625. Color hoverColor;
  12626. /* readonly */
  12627. bool hovering;
  12628. int indent;
  12629. int indentSpacing;
  12630. /* readonly */
  12631. int indentWidth;
  12632. bool internal;
  12633. IntRect layoutBorder;
  12634. Vector2 layoutFlexScale;
  12635. LayoutMode layoutMode;
  12636. int layoutSpacing;
  12637. Vector2 maxAnchor;
  12638. int maxHeight;
  12639. IntVector2 maxOffset;
  12640. IntVector2 maxSize;
  12641. int maxWidth;
  12642. Vector2 minAnchor;
  12643. int minHeight;
  12644. IntVector2 minOffset;
  12645. IntVector2 minSize;
  12646. int minWidth;
  12647. String name;
  12648. /* readonly */
  12649. uint numAllChildren;
  12650. /* readonly */
  12651. uint numAttributes;
  12652. /* readonly */
  12653. uint numChars;
  12654. /* readonly */
  12655. uint numChildren;
  12656. /* readonly */
  12657. uint numRows;
  12658. ObjectAnimation objectAnimation;
  12659. float opacity;
  12660. UIElement parent;
  12661. Vector2 pivot;
  12662. IntVector2 position;
  12663. int priority;
  12664. /* readonly */
  12665. int refs;
  12666. /* readonly */
  12667. UIElement root;
  12668. /* readonly */
  12669. float rowHeight;
  12670. float rowSpacing;
  12671. /* readonly */
  12672. Array<float> rowWidths;
  12673. /* readonly */
  12674. IntVector2 screenPosition;
  12675. bool selected;
  12676. Color selectionColor;
  12677. /* readonly */
  12678. uint selectionLength;
  12679. /* readonly */
  12680. uint selectionStart;
  12681. IntVector2 size;
  12682. bool sortChildren;
  12683. String style;
  12684. /* readonly */
  12685. Array<String> tags;
  12686. bool temporary;
  12687. String text;
  12688. HorizontalAlignment textAlignment;
  12689. TextEffect textEffect;
  12690. TraversalMode traversalMode;
  12691. /* readonly */
  12692. StringHash type;
  12693. /* readonly */
  12694. String typeName;
  12695. bool useDerivedOpacity;
  12696. /* readonly */
  12697. VariantMap vars;
  12698. VerticalAlignment verticalAlignment;
  12699. bool visible;
  12700. /* readonly */
  12701. bool visibleEffective;
  12702. /* readonly */
  12703. int weakRefs;
  12704. int width;
  12705. bool wordwrap;
  12706. };
  12707. class Text3D
  12708. {
  12709. public:
  12710. // Methods:
  12711. void ApplyAttributes();
  12712. void DrawDebugGeometry(DebugRenderer, bool);
  12713. Variant GetAttribute(const String&) const;
  12714. ValueAnimation GetAttributeAnimation(const String&) const;
  12715. float GetAttributeAnimationSpeed(const String&) const;
  12716. float GetAttributeAnimationTime(const String&) const;
  12717. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12718. Variant GetAttributeDefault(const String&) const;
  12719. bool GetInterceptNetworkUpdate(const String&) const;
  12720. bool HasSubscribedToEvent(Object, const String&);
  12721. bool HasSubscribedToEvent(const String&);
  12722. bool IsInView(Camera) const;
  12723. bool Load(File);
  12724. bool Load(VectorBuffer&);
  12725. bool LoadJSON(const JSONValue&);
  12726. bool LoadXML(const XMLElement&);
  12727. void MarkNetworkUpdate() const;
  12728. void Remove();
  12729. void RemoveAttributeAnimation(const String&);
  12730. void RemoveInstanceDefault();
  12731. void RemoveObjectAnimation();
  12732. void ResetToDefault();
  12733. bool Save(File) const;
  12734. bool Save(VectorBuffer&) const;
  12735. bool SaveJSON(JSONValue&) const;
  12736. bool SaveXML(XMLElement&) const;
  12737. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12738. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12739. void SetAnimationTime(float);
  12740. bool SetAttribute(const String&, const Variant&);
  12741. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12742. void SetAttributeAnimationSpeed(const String&, float);
  12743. void SetAttributeAnimationTime(const String&, float);
  12744. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12745. bool SetFont(Font, float);
  12746. bool SetFont(const String&, float);
  12747. void SetInterceptNetworkUpdate(const String&, bool);
  12748. // Properties:
  12749. bool animationEnabled;
  12750. /* readonly */
  12751. Array<Variant> attributeDefaults;
  12752. /* readonly */
  12753. Array<AttributeInfo> attributeInfos;
  12754. Array<Variant> attributes;
  12755. /* readonly */
  12756. BoundingBox boundingBox;
  12757. bool castShadows;
  12758. /* readonly */
  12759. String category;
  12760. /* readonly */
  12761. Array<Vector2> charPositions;
  12762. /* readonly */
  12763. Array<Vector2> charSizes;
  12764. /* writeonly */
  12765. Color color;
  12766. Array<Color> colors;
  12767. float drawDistance;
  12768. Color effectColor;
  12769. float effectDepthBias;
  12770. bool effectRoundStroke;
  12771. IntVector2 effectShadowOffset;
  12772. int effectStrokeThickness;
  12773. bool enabled;
  12774. /* readonly */
  12775. bool enabledEffective;
  12776. FaceCameraMode faceCameraMode;
  12777. bool fixedScreenSize;
  12778. /* readonly */
  12779. Font font;
  12780. float fontSize;
  12781. /* readonly */
  12782. int height;
  12783. HorizontalAlignment horizontalAlignment;
  12784. /* readonly */
  12785. uint id;
  12786. /* readonly */
  12787. bool inView;
  12788. uint lightMask;
  12789. float lodBias;
  12790. Material material;
  12791. uint maxLights;
  12792. /* readonly */
  12793. Node node;
  12794. /* readonly */
  12795. uint numAttributes;
  12796. /* readonly */
  12797. uint numChars;
  12798. /* readonly */
  12799. uint numRows;
  12800. ObjectAnimation objectAnimation;
  12801. bool occludee;
  12802. bool occluder;
  12803. float opacity;
  12804. /* readonly */
  12805. int refs;
  12806. /* readonly */
  12807. bool replicated;
  12808. /* readonly */
  12809. float rowHeight;
  12810. float rowSpacing;
  12811. /* readonly */
  12812. Array<float> rowWidths;
  12813. float shadowDistance;
  12814. uint shadowMask;
  12815. bool temporary;
  12816. String text;
  12817. HorizontalAlignment textAlignment;
  12818. TextEffect textEffect;
  12819. /* readonly */
  12820. StringHash type;
  12821. /* readonly */
  12822. String typeName;
  12823. VerticalAlignment verticalAlignment;
  12824. uint viewMask;
  12825. /* readonly */
  12826. int weakRefs;
  12827. int width;
  12828. bool wordwrap;
  12829. /* readonly */
  12830. BoundingBox worldBoundingBox;
  12831. uint zoneMask;
  12832. };
  12833. class Texture
  12834. {
  12835. public:
  12836. Texture();
  12837. Texture(const String&in);
  12838. // Methods:
  12839. void AddMetadata(const String&, const Variant&);
  12840. void ClearDataLost();
  12841. bool HasSubscribedToEvent(Object, const String&);
  12842. bool HasSubscribedToEvent(const String&);
  12843. bool Load(File);
  12844. bool Load(VectorBuffer&);
  12845. bool Load(const String&);
  12846. void RemoveAllMetadata();
  12847. void RemoveMetadata(const String&);
  12848. bool Save(File) const;
  12849. bool Save(VectorBuffer&) const;
  12850. bool Save(const String&) const;
  12851. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12852. void SetNumLevels(uint);
  12853. // Properties:
  12854. Array<TextureAddressMode> addressMode;
  12855. uint anisotropy;
  12856. /* readonly */
  12857. bool autoResolve;
  12858. Texture backupTexture;
  12859. Color borderColor;
  12860. /* readonly */
  12861. String category;
  12862. /* readonly */
  12863. uint components;
  12864. /* readonly */
  12865. bool compressed;
  12866. /* readonly */
  12867. bool dataLost;
  12868. TextureFilterMode filterMode;
  12869. /* readonly */
  12870. uint format;
  12871. /* readonly */
  12872. bool hasMetadata;
  12873. /* readonly */
  12874. int height;
  12875. /* readonly */
  12876. Array<int> levelHeight;
  12877. /* readonly */
  12878. Array<int> levelWidth;
  12879. /* readonly */
  12880. uint levels;
  12881. /* readonly */
  12882. bool levelsDirty;
  12883. /* readonly */
  12884. uint memoryUse;
  12885. Array<Variant> metadata;
  12886. Array<int> mipsToSkip;
  12887. /* readonly */
  12888. int multiSample;
  12889. String name;
  12890. /* readonly */
  12891. int refs;
  12892. /* readonly */
  12893. bool resolveDirty;
  12894. bool sRGB;
  12895. /* readonly */
  12896. StringHash type;
  12897. /* readonly */
  12898. String typeName;
  12899. /* readonly */
  12900. TextureUsage usage;
  12901. /* readonly */
  12902. uint useTimer;
  12903. /* readonly */
  12904. int weakRefs;
  12905. /* readonly */
  12906. int width;
  12907. };
  12908. class Texture2D
  12909. {
  12910. public:
  12911. Texture2D();
  12912. Texture2D(const String&in);
  12913. // Methods:
  12914. void AddMetadata(const String&, const Variant&);
  12915. void ClearDataLost();
  12916. Image GetImage() const;
  12917. bool HasSubscribedToEvent(Object, const String&);
  12918. bool HasSubscribedToEvent(const String&);
  12919. bool Load(File);
  12920. bool Load(VectorBuffer&);
  12921. bool Load(const String&);
  12922. void RemoveAllMetadata();
  12923. void RemoveMetadata(const String&);
  12924. bool Save(File) const;
  12925. bool Save(VectorBuffer&) const;
  12926. bool Save(const String&) const;
  12927. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12928. bool SetData(Image, bool = false);
  12929. void SetNumLevels(uint);
  12930. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  12931. // Properties:
  12932. Array<TextureAddressMode> addressMode;
  12933. uint anisotropy;
  12934. /* readonly */
  12935. bool autoResolve;
  12936. Texture backupTexture;
  12937. Color borderColor;
  12938. /* readonly */
  12939. String category;
  12940. /* readonly */
  12941. uint components;
  12942. /* readonly */
  12943. bool compressed;
  12944. /* readonly */
  12945. bool dataLost;
  12946. TextureFilterMode filterMode;
  12947. /* readonly */
  12948. uint format;
  12949. /* readonly */
  12950. bool hasMetadata;
  12951. /* readonly */
  12952. int height;
  12953. /* readonly */
  12954. Array<int> levelHeight;
  12955. /* readonly */
  12956. Array<int> levelWidth;
  12957. /* readonly */
  12958. uint levels;
  12959. /* readonly */
  12960. bool levelsDirty;
  12961. /* readonly */
  12962. uint memoryUse;
  12963. Array<Variant> metadata;
  12964. Array<int> mipsToSkip;
  12965. /* readonly */
  12966. int multiSample;
  12967. String name;
  12968. /* readonly */
  12969. int refs;
  12970. /* readonly */
  12971. RenderSurface renderSurface;
  12972. /* readonly */
  12973. bool resolveDirty;
  12974. bool sRGB;
  12975. /* readonly */
  12976. StringHash type;
  12977. /* readonly */
  12978. String typeName;
  12979. /* readonly */
  12980. TextureUsage usage;
  12981. /* readonly */
  12982. uint useTimer;
  12983. /* readonly */
  12984. int weakRefs;
  12985. /* readonly */
  12986. int width;
  12987. };
  12988. class Texture2DArray
  12989. {
  12990. public:
  12991. Texture2DArray();
  12992. Texture2DArray(const String&in);
  12993. // Methods:
  12994. void AddMetadata(const String&, const Variant&);
  12995. void ClearDataLost();
  12996. bool HasSubscribedToEvent(Object, const String&);
  12997. bool HasSubscribedToEvent(const String&);
  12998. bool Load(File);
  12999. bool Load(VectorBuffer&);
  13000. bool Load(const String&);
  13001. void RemoveAllMetadata();
  13002. void RemoveMetadata(const String&);
  13003. bool Save(File) const;
  13004. bool Save(VectorBuffer&) const;
  13005. bool Save(const String&) const;
  13006. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13007. bool SetData(uint, Image, bool = false);
  13008. void SetNumLevels(uint);
  13009. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  13010. // Properties:
  13011. Array<TextureAddressMode> addressMode;
  13012. uint anisotropy;
  13013. /* readonly */
  13014. bool autoResolve;
  13015. Texture backupTexture;
  13016. Color borderColor;
  13017. /* readonly */
  13018. String category;
  13019. /* readonly */
  13020. uint components;
  13021. /* readonly */
  13022. bool compressed;
  13023. /* readonly */
  13024. bool dataLost;
  13025. TextureFilterMode filterMode;
  13026. /* readonly */
  13027. uint format;
  13028. /* readonly */
  13029. bool hasMetadata;
  13030. /* readonly */
  13031. int height;
  13032. uint layers;
  13033. /* readonly */
  13034. Array<int> levelHeight;
  13035. /* readonly */
  13036. Array<int> levelWidth;
  13037. /* readonly */
  13038. uint levels;
  13039. /* readonly */
  13040. bool levelsDirty;
  13041. /* readonly */
  13042. uint memoryUse;
  13043. Array<Variant> metadata;
  13044. Array<int> mipsToSkip;
  13045. /* readonly */
  13046. int multiSample;
  13047. String name;
  13048. /* readonly */
  13049. int refs;
  13050. /* readonly */
  13051. RenderSurface renderSurface;
  13052. /* readonly */
  13053. bool resolveDirty;
  13054. bool sRGB;
  13055. /* readonly */
  13056. StringHash type;
  13057. /* readonly */
  13058. String typeName;
  13059. /* readonly */
  13060. TextureUsage usage;
  13061. /* readonly */
  13062. uint useTimer;
  13063. /* readonly */
  13064. int weakRefs;
  13065. /* readonly */
  13066. int width;
  13067. };
  13068. class Texture3D
  13069. {
  13070. public:
  13071. Texture3D();
  13072. Texture3D(const String&in);
  13073. // Methods:
  13074. void AddMetadata(const String&, const Variant&);
  13075. void ClearDataLost();
  13076. bool HasSubscribedToEvent(Object, const String&);
  13077. bool HasSubscribedToEvent(const String&);
  13078. bool Load(File);
  13079. bool Load(VectorBuffer&);
  13080. bool Load(const String&);
  13081. void RemoveAllMetadata();
  13082. void RemoveMetadata(const String&);
  13083. bool Save(File) const;
  13084. bool Save(VectorBuffer&) const;
  13085. bool Save(const String&) const;
  13086. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13087. bool SetData(Image, bool = false);
  13088. void SetNumLevels(uint);
  13089. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  13090. // Properties:
  13091. Array<TextureAddressMode> addressMode;
  13092. uint anisotropy;
  13093. /* readonly */
  13094. bool autoResolve;
  13095. Texture backupTexture;
  13096. Color borderColor;
  13097. /* readonly */
  13098. String category;
  13099. /* readonly */
  13100. uint components;
  13101. /* readonly */
  13102. bool compressed;
  13103. /* readonly */
  13104. bool dataLost;
  13105. TextureFilterMode filterMode;
  13106. /* readonly */
  13107. uint format;
  13108. /* readonly */
  13109. bool hasMetadata;
  13110. /* readonly */
  13111. int height;
  13112. /* readonly */
  13113. Array<int> levelHeight;
  13114. /* readonly */
  13115. Array<int> levelWidth;
  13116. /* readonly */
  13117. uint levels;
  13118. /* readonly */
  13119. bool levelsDirty;
  13120. /* readonly */
  13121. uint memoryUse;
  13122. Array<Variant> metadata;
  13123. Array<int> mipsToSkip;
  13124. /* readonly */
  13125. int multiSample;
  13126. String name;
  13127. /* readonly */
  13128. int refs;
  13129. /* readonly */
  13130. bool resolveDirty;
  13131. bool sRGB;
  13132. /* readonly */
  13133. StringHash type;
  13134. /* readonly */
  13135. String typeName;
  13136. /* readonly */
  13137. TextureUsage usage;
  13138. /* readonly */
  13139. uint useTimer;
  13140. /* readonly */
  13141. int weakRefs;
  13142. /* readonly */
  13143. int width;
  13144. };
  13145. class TextureCube
  13146. {
  13147. public:
  13148. TextureCube();
  13149. TextureCube(const String&in);
  13150. // Methods:
  13151. void AddMetadata(const String&, const Variant&);
  13152. void ClearDataLost();
  13153. Image GetImage(CubeMapFace) const;
  13154. bool HasSubscribedToEvent(Object, const String&);
  13155. bool HasSubscribedToEvent(const String&);
  13156. bool Load(File);
  13157. bool Load(VectorBuffer&);
  13158. bool Load(const String&);
  13159. void RemoveAllMetadata();
  13160. void RemoveMetadata(const String&);
  13161. bool Save(File) const;
  13162. bool Save(VectorBuffer&) const;
  13163. bool Save(const String&) const;
  13164. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13165. bool SetData(CubeMapFace, Image, bool = false);
  13166. void SetNumLevels(uint);
  13167. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  13168. // Properties:
  13169. Array<TextureAddressMode> addressMode;
  13170. uint anisotropy;
  13171. /* readonly */
  13172. bool autoResolve;
  13173. Texture backupTexture;
  13174. Color borderColor;
  13175. /* readonly */
  13176. String category;
  13177. /* readonly */
  13178. uint components;
  13179. /* readonly */
  13180. bool compressed;
  13181. /* readonly */
  13182. bool dataLost;
  13183. TextureFilterMode filterMode;
  13184. /* readonly */
  13185. uint format;
  13186. /* readonly */
  13187. bool hasMetadata;
  13188. /* readonly */
  13189. int height;
  13190. /* readonly */
  13191. Array<int> levelHeight;
  13192. /* readonly */
  13193. Array<int> levelWidth;
  13194. /* readonly */
  13195. uint levels;
  13196. /* readonly */
  13197. bool levelsDirty;
  13198. /* readonly */
  13199. uint memoryUse;
  13200. Array<Variant> metadata;
  13201. Array<int> mipsToSkip;
  13202. /* readonly */
  13203. int multiSample;
  13204. String name;
  13205. /* readonly */
  13206. int refs;
  13207. /* readonly */
  13208. Array<RenderSurface> renderSurfaces;
  13209. /* readonly */
  13210. bool resolveDirty;
  13211. bool sRGB;
  13212. /* readonly */
  13213. StringHash type;
  13214. /* readonly */
  13215. String typeName;
  13216. /* readonly */
  13217. TextureUsage usage;
  13218. /* readonly */
  13219. uint useTimer;
  13220. /* readonly */
  13221. int weakRefs;
  13222. /* readonly */
  13223. int width;
  13224. };
  13225. class TextureFrame
  13226. {
  13227. public:
  13228. // Properties:
  13229. float time;
  13230. Rect uv;
  13231. };
  13232. class Tile2D
  13233. {
  13234. public:
  13235. // Methods:
  13236. bool HasProperty(const String&) const;
  13237. const String& GetProperty(const String&) const;
  13238. // Properties:
  13239. /* readonly */
  13240. int gid;
  13241. /* readonly */
  13242. int refs;
  13243. /* readonly */
  13244. Sprite2D sprite;
  13245. /* readonly */
  13246. int weakRefs;
  13247. };
  13248. class TileMap2D
  13249. {
  13250. public:
  13251. // Methods:
  13252. void ApplyAttributes();
  13253. void DrawDebugGeometry(DebugRenderer, bool);
  13254. Variant GetAttribute(const String&) const;
  13255. ValueAnimation GetAttributeAnimation(const String&) const;
  13256. float GetAttributeAnimationSpeed(const String&) const;
  13257. float GetAttributeAnimationTime(const String&) const;
  13258. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13259. Variant GetAttributeDefault(const String&) const;
  13260. bool GetInterceptNetworkUpdate(const String&) const;
  13261. TileMapLayer2D GetLayer(uint) const;
  13262. Array<TileMapObject2D> GetTileCollisionShapes(int) const;
  13263. bool HasSubscribedToEvent(Object, const String&);
  13264. bool HasSubscribedToEvent(const String&);
  13265. bool Load(File);
  13266. bool Load(VectorBuffer&);
  13267. bool LoadJSON(const JSONValue&);
  13268. bool LoadXML(const XMLElement&);
  13269. void MarkNetworkUpdate() const;
  13270. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  13271. void Remove();
  13272. void RemoveAttributeAnimation(const String&);
  13273. void RemoveInstanceDefault();
  13274. void RemoveObjectAnimation();
  13275. void ResetToDefault();
  13276. bool Save(File) const;
  13277. bool Save(VectorBuffer&) const;
  13278. bool SaveJSON(JSONValue&) const;
  13279. bool SaveXML(XMLElement&) const;
  13280. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13281. void SetAnimationTime(float);
  13282. bool SetAttribute(const String&, const Variant&);
  13283. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13284. void SetAttributeAnimationSpeed(const String&, float);
  13285. void SetAttributeAnimationTime(const String&, float);
  13286. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13287. void SetInterceptNetworkUpdate(const String&, bool);
  13288. Vector2 TileIndexToPosition(int, int) const;
  13289. // Properties:
  13290. bool animationEnabled;
  13291. /* readonly */
  13292. Array<Variant> attributeDefaults;
  13293. /* readonly */
  13294. Array<AttributeInfo> attributeInfos;
  13295. Array<Variant> attributes;
  13296. /* readonly */
  13297. String category;
  13298. bool enabled;
  13299. /* readonly */
  13300. bool enabledEffective;
  13301. /* readonly */
  13302. uint id;
  13303. /* readonly */
  13304. TileMapInfo2D info;
  13305. /* readonly */
  13306. Node node;
  13307. /* readonly */
  13308. uint numAttributes;
  13309. /* readonly */
  13310. uint numLayers;
  13311. ObjectAnimation objectAnimation;
  13312. /* readonly */
  13313. int refs;
  13314. /* readonly */
  13315. bool replicated;
  13316. bool temporary;
  13317. TmxFile2D tmxFile;
  13318. /* readonly */
  13319. StringHash type;
  13320. /* readonly */
  13321. String typeName;
  13322. /* readonly */
  13323. int weakRefs;
  13324. };
  13325. class TileMapInfo2D
  13326. {
  13327. public:
  13328. // Properties:
  13329. int height;
  13330. /* readonly */
  13331. float mapHeight;
  13332. /* readonly */
  13333. float mapWidth;
  13334. Orientation2D orientation;
  13335. float tileHeight;
  13336. float tileWidth;
  13337. int width;
  13338. };
  13339. class TileMapLayer2D
  13340. {
  13341. public:
  13342. // Methods:
  13343. void ApplyAttributes();
  13344. void DrawDebugGeometry(DebugRenderer, bool);
  13345. Variant GetAttribute(const String&) const;
  13346. ValueAnimation GetAttributeAnimation(const String&) const;
  13347. float GetAttributeAnimationSpeed(const String&) const;
  13348. float GetAttributeAnimationTime(const String&) const;
  13349. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13350. Variant GetAttributeDefault(const String&) const;
  13351. bool GetInterceptNetworkUpdate(const String&) const;
  13352. TileMapObject2D GetObject(uint) const;
  13353. Node GetObjectNode(uint) const;
  13354. Tile2D GetTile(int, int) const;
  13355. Node GetTileNode(int, int) const;
  13356. bool HasProperty(const String&) const;
  13357. bool HasSubscribedToEvent(Object, const String&);
  13358. bool HasSubscribedToEvent(const String&);
  13359. bool Load(File);
  13360. bool Load(VectorBuffer&);
  13361. bool LoadJSON(const JSONValue&);
  13362. bool LoadXML(const XMLElement&);
  13363. void MarkNetworkUpdate() const;
  13364. void Remove();
  13365. void RemoveAttributeAnimation(const String&);
  13366. void RemoveInstanceDefault();
  13367. void RemoveObjectAnimation();
  13368. void ResetToDefault();
  13369. bool Save(File) const;
  13370. bool Save(VectorBuffer&) const;
  13371. bool SaveJSON(JSONValue&) const;
  13372. bool SaveXML(XMLElement&) const;
  13373. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13374. void SetAnimationTime(float);
  13375. bool SetAttribute(const String&, const Variant&);
  13376. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13377. void SetAttributeAnimationSpeed(const String&, float);
  13378. void SetAttributeAnimationTime(const String&, float);
  13379. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13380. void SetInterceptNetworkUpdate(const String&, bool);
  13381. const String& GetProperty(const String&) const;
  13382. // Properties:
  13383. bool animationEnabled;
  13384. /* readonly */
  13385. Array<Variant> attributeDefaults;
  13386. /* readonly */
  13387. Array<AttributeInfo> attributeInfos;
  13388. Array<Variant> attributes;
  13389. /* readonly */
  13390. String category;
  13391. int drawOrder;
  13392. bool enabled;
  13393. /* readonly */
  13394. bool enabledEffective;
  13395. /* readonly */
  13396. int height;
  13397. /* readonly */
  13398. uint id;
  13399. /* readonly */
  13400. Node imageNode;
  13401. /* readonly */
  13402. TileMapLayerType2D layerType;
  13403. /* readonly */
  13404. Node node;
  13405. /* readonly */
  13406. uint numAttributes;
  13407. /* readonly */
  13408. uint numObjects;
  13409. ObjectAnimation objectAnimation;
  13410. /* readonly */
  13411. int refs;
  13412. /* readonly */
  13413. bool replicated;
  13414. bool temporary;
  13415. /* readonly */
  13416. StringHash type;
  13417. /* readonly */
  13418. String typeName;
  13419. bool visible;
  13420. /* readonly */
  13421. int weakRefs;
  13422. /* readonly */
  13423. int width;
  13424. };
  13425. class TileMapObject2D
  13426. {
  13427. public:
  13428. // Methods:
  13429. bool HasProperty(const String&) const;
  13430. const String& GetProperty(const String&) const;
  13431. const Vector2& GetPoint(uint) const;
  13432. // Properties:
  13433. /* readonly */
  13434. String name;
  13435. /* readonly */
  13436. uint numPoints;
  13437. /* readonly */
  13438. TileObjectType2D objectType;
  13439. /* readonly */
  13440. Vector2 position;
  13441. /* readonly */
  13442. int refs;
  13443. /* readonly */
  13444. Vector2 size;
  13445. /* readonly */
  13446. int tileGid;
  13447. /* readonly */
  13448. Sprite2D tileSprite;
  13449. /* readonly */
  13450. String type;
  13451. /* readonly */
  13452. int weakRefs;
  13453. };
  13454. class Time
  13455. {
  13456. public:
  13457. // Methods:
  13458. bool HasSubscribedToEvent(Object, const String&);
  13459. bool HasSubscribedToEvent(const String&);
  13460. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13461. // Properties:
  13462. /* readonly */
  13463. String category;
  13464. /* readonly */
  13465. float elapsedTime;
  13466. /* readonly */
  13467. uint frameNumber;
  13468. /* readonly */
  13469. float framesPerSecond;
  13470. /* readonly */
  13471. int refs;
  13472. /* readonly */
  13473. uint systemTime;
  13474. /* readonly */
  13475. uint timeSinceEpoch;
  13476. /* readonly */
  13477. String timeStamp;
  13478. /* readonly */
  13479. float timeStep;
  13480. /* readonly */
  13481. StringHash type;
  13482. /* readonly */
  13483. String typeName;
  13484. /* readonly */
  13485. int weakRefs;
  13486. };
  13487. class Timer
  13488. {
  13489. public:
  13490. Timer();
  13491. // Methods:
  13492. uint GetMSec(bool);
  13493. void Reset();
  13494. };
  13495. class TmxFile2D
  13496. {
  13497. public:
  13498. TmxFile2D();
  13499. TmxFile2D(const String&in);
  13500. // Methods:
  13501. bool HasSubscribedToEvent(Object, const String&);
  13502. bool HasSubscribedToEvent(const String&);
  13503. bool Load(File);
  13504. bool Load(VectorBuffer&);
  13505. bool Load(const String&);
  13506. bool Save(File) const;
  13507. bool Save(VectorBuffer&) const;
  13508. bool Save(const String&) const;
  13509. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13510. // Properties:
  13511. /* readonly */
  13512. String category;
  13513. /* readonly */
  13514. uint memoryUse;
  13515. String name;
  13516. /* readonly */
  13517. int refs;
  13518. /* readonly */
  13519. StringHash type;
  13520. /* readonly */
  13521. String typeName;
  13522. /* readonly */
  13523. uint useTimer;
  13524. /* readonly */
  13525. int weakRefs;
  13526. };
  13527. class ToolTip
  13528. {
  13529. public:
  13530. ToolTip();
  13531. ToolTip(const String&in);
  13532. // Methods:
  13533. void AddChild(UIElement);
  13534. void AddTag(const String&);
  13535. void AddTags(const String&, int8 = ';');
  13536. void ApplyAttributes();
  13537. void BringToFront();
  13538. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13539. void DisableLayoutUpdate();
  13540. IntVector2 ElementToScreen(const IntVector2&);
  13541. void EnableLayoutUpdate();
  13542. uint FindChild(UIElement) const;
  13543. Variant GetAttribute(const String&) const;
  13544. ValueAnimation GetAttributeAnimation(const String&) const;
  13545. float GetAttributeAnimationSpeed(const String&) const;
  13546. float GetAttributeAnimationTime(const String&) const;
  13547. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13548. Variant GetAttributeDefault(const String&) const;
  13549. UIElement GetChild(const String&, bool = false) const;
  13550. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13551. Array<UIElement> GetChildren(bool = false) const;
  13552. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13553. UIElement GetElementEventSender() const;
  13554. bool GetInterceptNetworkUpdate(const String&) const;
  13555. uint GetNumChildren(bool) const;
  13556. bool HasSubscribedToEvent(Object, const String&);
  13557. bool HasSubscribedToEvent(const String&);
  13558. bool HasTag(const String&) const;
  13559. void InsertChild(uint, UIElement);
  13560. bool IsChildOf(UIElement) const;
  13561. bool IsInside(IntVector2, bool);
  13562. bool IsInsideCombined(IntVector2, bool);
  13563. bool Load(File);
  13564. bool Load(VectorBuffer&);
  13565. UIElement LoadChildXML(XMLFile, XMLFile);
  13566. UIElement LoadChildXML(const XMLElement&, XMLFile);
  13567. bool LoadJSON(const JSONValue&);
  13568. bool LoadXML(File);
  13569. bool LoadXML(VectorBuffer&);
  13570. bool LoadXML(XMLFile, XMLFile);
  13571. bool LoadXML(const XMLElement&, XMLFile);
  13572. bool LoadXML(const XMLElement&);
  13573. void MarkNetworkUpdate() const;
  13574. void Remove();
  13575. void RemoveAllChildren();
  13576. void RemoveAllTags();
  13577. void RemoveAttributeAnimation(const String&);
  13578. void RemoveChild(UIElement, uint = 0);
  13579. void RemoveChild(uint);
  13580. void RemoveInstanceDefault();
  13581. void RemoveObjectAnimation();
  13582. bool RemoveTag(const String&);
  13583. void ResetDeepEnabled();
  13584. void ResetToDefault();
  13585. bool Save(File) const;
  13586. bool Save(VectorBuffer&) const;
  13587. bool SaveJSON(JSONValue&) const;
  13588. bool SaveXML(File, const String& = "\t");
  13589. bool SaveXML(VectorBuffer&, const String& = "\t");
  13590. bool SaveXML(XMLElement&) const;
  13591. IntVector2 ScreenToElement(const IntVector2&);
  13592. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13593. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13594. void SetAnimationTime(float);
  13595. bool SetAttribute(const String&, const Variant&);
  13596. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13597. void SetAttributeAnimationSpeed(const String&, float);
  13598. void SetAttributeAnimationTime(const String&, float);
  13599. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13600. void SetDeepEnabled(bool);
  13601. void SetEnabledRecursive(bool);
  13602. void SetFixedHeight(int);
  13603. void SetFixedSize(int, int);
  13604. void SetFixedWidth(int);
  13605. void SetInterceptNetworkUpdate(const String&, bool);
  13606. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13607. void SetMaxAnchor(float, float);
  13608. void SetMaxSize(int, int);
  13609. void SetMinAnchor(float, float);
  13610. void SetMinSize(int, int);
  13611. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13612. void SetPivot(float, float);
  13613. void SetPosition(int, int);
  13614. void SetSize(int, int);
  13615. bool SetStyle(const String&, XMLFile = null);
  13616. bool SetStyle(const XMLElement&);
  13617. bool SetStyleAuto(XMLFile = null);
  13618. void UpdateLayout();
  13619. const Variant& GetVar(const StringHash&);
  13620. // Properties:
  13621. bool animationEnabled;
  13622. /* readonly */
  13623. Array<Variant> attributeDefaults;
  13624. /* readonly */
  13625. Array<AttributeInfo> attributeInfos;
  13626. Array<Variant> attributes;
  13627. bool bringToBack;
  13628. bool bringToFront;
  13629. /* readonly */
  13630. String category;
  13631. /* readonly */
  13632. IntVector2 childOffset;
  13633. /* readonly */
  13634. Array<UIElement> children;
  13635. IntRect clipBorder;
  13636. bool clipChildren;
  13637. /* writeonly */
  13638. Color color;
  13639. /* readonly */
  13640. bool colorGradient;
  13641. Array<Color> colors;
  13642. /* readonly */
  13643. IntRect combinedScreenRect;
  13644. XMLFile defaultStyle;
  13645. float delay;
  13646. /* readonly */
  13647. float derivedOpacity;
  13648. /* readonly */
  13649. uint dragButtonCombo;
  13650. /* readonly */
  13651. int dragButtonCount;
  13652. uint dragDropMode;
  13653. bool editable;
  13654. bool elementEventSender;
  13655. bool enableAnchor;
  13656. bool enabled;
  13657. /* readonly */
  13658. bool enabledSelf;
  13659. /* readonly */
  13660. bool fixedHeight;
  13661. /* readonly */
  13662. bool fixedSize;
  13663. /* readonly */
  13664. bool fixedWidth;
  13665. bool focus;
  13666. FocusMode focusMode;
  13667. int height;
  13668. HorizontalAlignment horizontalAlignment;
  13669. /* readonly */
  13670. bool hovering;
  13671. int indent;
  13672. int indentSpacing;
  13673. /* readonly */
  13674. int indentWidth;
  13675. bool internal;
  13676. IntRect layoutBorder;
  13677. Vector2 layoutFlexScale;
  13678. LayoutMode layoutMode;
  13679. int layoutSpacing;
  13680. Vector2 maxAnchor;
  13681. int maxHeight;
  13682. IntVector2 maxOffset;
  13683. IntVector2 maxSize;
  13684. int maxWidth;
  13685. Vector2 minAnchor;
  13686. int minHeight;
  13687. IntVector2 minOffset;
  13688. IntVector2 minSize;
  13689. int minWidth;
  13690. String name;
  13691. /* readonly */
  13692. uint numAllChildren;
  13693. /* readonly */
  13694. uint numAttributes;
  13695. /* readonly */
  13696. uint numChildren;
  13697. ObjectAnimation objectAnimation;
  13698. float opacity;
  13699. UIElement parent;
  13700. Vector2 pivot;
  13701. IntVector2 position;
  13702. int priority;
  13703. /* readonly */
  13704. int refs;
  13705. /* readonly */
  13706. UIElement root;
  13707. /* readonly */
  13708. IntVector2 screenPosition;
  13709. bool selected;
  13710. IntVector2 size;
  13711. bool sortChildren;
  13712. String style;
  13713. /* readonly */
  13714. Array<String> tags;
  13715. bool temporary;
  13716. TraversalMode traversalMode;
  13717. /* readonly */
  13718. StringHash type;
  13719. /* readonly */
  13720. String typeName;
  13721. bool useDerivedOpacity;
  13722. /* readonly */
  13723. VariantMap vars;
  13724. VerticalAlignment verticalAlignment;
  13725. bool visible;
  13726. /* readonly */
  13727. bool visibleEffective;
  13728. /* readonly */
  13729. int weakRefs;
  13730. int width;
  13731. };
  13732. class TouchState
  13733. {
  13734. public:
  13735. // Properties:
  13736. IntVector2 delta;
  13737. IntVector2 lastPosition;
  13738. IntVector2 position;
  13739. float pressure;
  13740. int touchID;
  13741. /* readonly */
  13742. UIElement touchedElement;
  13743. };
  13744. class UI
  13745. {
  13746. public:
  13747. // Methods:
  13748. void Clear();
  13749. void DebugDraw(UIElement);
  13750. UIElement GetElementAt(const IntVector2&, bool = true);
  13751. UIElement GetElementAt(int, int, bool = true);
  13752. bool HasModalElement() const;
  13753. bool HasSubscribedToEvent(Object, const String&);
  13754. bool HasSubscribedToEvent(const String&);
  13755. bool IsDragging() const;
  13756. UIElement LoadLayout(File);
  13757. UIElement LoadLayout(File, XMLFile);
  13758. UIElement LoadLayout(VectorBuffer&);
  13759. UIElement LoadLayout(VectorBuffer&, XMLFile);
  13760. UIElement LoadLayout(XMLFile);
  13761. UIElement LoadLayout(XMLFile, XMLFile);
  13762. bool SaveLayout(File, UIElement);
  13763. bool SaveLayout(VectorBuffer&, UIElement);
  13764. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13765. void SetCustomSize(int, int);
  13766. void SetFocusElement(UIElement, bool = false);
  13767. void SetHeight(float);
  13768. void SetWidth(float);
  13769. const Array<UIElement> GetDragElements();
  13770. // Properties:
  13771. /* readonly */
  13772. String category;
  13773. String clipBoardText;
  13774. Cursor cursor;
  13775. /* readonly */
  13776. IntVector2 cursorPosition;
  13777. IntVector2 customSize;
  13778. float defaultToolTipDelay;
  13779. float doubleClickInterval;
  13780. int dragBeginDistance;
  13781. float dragBeginInterval;
  13782. UIElement focusElement;
  13783. FontHintLevel fontHintLevel;
  13784. int fontOversampling;
  13785. float fontSubpixelThreshold;
  13786. bool forceAutoHint;
  13787. /* readonly */
  13788. UIElement frontElement;
  13789. float maxDoubleClickDistance;
  13790. int maxFontTextureSize;
  13791. /* readonly */
  13792. UIElement modalRoot;
  13793. bool nonFocusedMouseWheel;
  13794. /* readonly */
  13795. int refs;
  13796. /* readonly */
  13797. UIElement root;
  13798. float scale;
  13799. /* readonly */
  13800. StringHash type;
  13801. /* readonly */
  13802. String typeName;
  13803. bool useMutableGlyphs;
  13804. bool useScreenKeyboard;
  13805. bool useSystemClipboard;
  13806. /* readonly */
  13807. int weakRefs;
  13808. };
  13809. class UIComponent
  13810. {
  13811. public:
  13812. // Methods:
  13813. void ApplyAttributes();
  13814. Variant GetAttribute(const String&) const;
  13815. ValueAnimation GetAttributeAnimation(const String&) const;
  13816. float GetAttributeAnimationSpeed(const String&) const;
  13817. float GetAttributeAnimationTime(const String&) const;
  13818. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13819. Variant GetAttributeDefault(const String&) const;
  13820. bool GetInterceptNetworkUpdate(const String&) const;
  13821. bool HasSubscribedToEvent(Object, const String&);
  13822. bool HasSubscribedToEvent(const String&);
  13823. bool Load(File);
  13824. bool Load(VectorBuffer&);
  13825. bool LoadJSON(const JSONValue&);
  13826. bool LoadXML(const XMLElement&);
  13827. void MarkNetworkUpdate() const;
  13828. void Remove();
  13829. void RemoveAttributeAnimation(const String&);
  13830. void RemoveInstanceDefault();
  13831. void RemoveObjectAnimation();
  13832. void ResetToDefault();
  13833. bool Save(File) const;
  13834. bool Save(VectorBuffer&) const;
  13835. bool SaveJSON(JSONValue&) const;
  13836. bool SaveXML(XMLElement&) const;
  13837. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13838. void SetAnimationTime(float);
  13839. bool SetAttribute(const String&, const Variant&);
  13840. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13841. void SetAttributeAnimationSpeed(const String&, float);
  13842. void SetAttributeAnimationTime(const String&, float);
  13843. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13844. void SetInterceptNetworkUpdate(const String&, bool);
  13845. // Properties:
  13846. bool animationEnabled;
  13847. /* readonly */
  13848. Array<Variant> attributeDefaults;
  13849. /* readonly */
  13850. Array<AttributeInfo> attributeInfos;
  13851. Array<Variant> attributes;
  13852. /* readonly */
  13853. String category;
  13854. bool enabled;
  13855. /* readonly */
  13856. bool enabledEffective;
  13857. /* readonly */
  13858. uint id;
  13859. /* readonly */
  13860. Material material;
  13861. /* readonly */
  13862. Node node;
  13863. /* readonly */
  13864. uint numAttributes;
  13865. ObjectAnimation objectAnimation;
  13866. /* readonly */
  13867. int refs;
  13868. /* readonly */
  13869. bool replicated;
  13870. /* readonly */
  13871. UIElement root;
  13872. bool temporary;
  13873. /* readonly */
  13874. Texture2D texture;
  13875. /* readonly */
  13876. StringHash type;
  13877. /* readonly */
  13878. String typeName;
  13879. /* readonly */
  13880. int weakRefs;
  13881. };
  13882. class UIElement
  13883. {
  13884. public:
  13885. UIElement();
  13886. UIElement(const String&in);
  13887. // Methods:
  13888. void AddChild(UIElement);
  13889. void AddTag(const String&);
  13890. void AddTags(const String&, int8 = ';');
  13891. void ApplyAttributes();
  13892. void BringToFront();
  13893. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13894. void DisableLayoutUpdate();
  13895. IntVector2 ElementToScreen(const IntVector2&);
  13896. void EnableLayoutUpdate();
  13897. uint FindChild(UIElement) const;
  13898. Variant GetAttribute(const String&) const;
  13899. ValueAnimation GetAttributeAnimation(const String&) const;
  13900. float GetAttributeAnimationSpeed(const String&) const;
  13901. float GetAttributeAnimationTime(const String&) const;
  13902. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13903. Variant GetAttributeDefault(const String&) const;
  13904. UIElement GetChild(const String&, bool = false) const;
  13905. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13906. Array<UIElement> GetChildren(bool = false) const;
  13907. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13908. UIElement GetElementEventSender() const;
  13909. bool GetInterceptNetworkUpdate(const String&) const;
  13910. uint GetNumChildren(bool) const;
  13911. bool HasSubscribedToEvent(Object, const String&);
  13912. bool HasSubscribedToEvent(const String&);
  13913. bool HasTag(const String&) const;
  13914. void InsertChild(uint, UIElement);
  13915. bool IsChildOf(UIElement) const;
  13916. bool IsInside(IntVector2, bool);
  13917. bool IsInsideCombined(IntVector2, bool);
  13918. bool Load(File);
  13919. bool Load(VectorBuffer&);
  13920. UIElement LoadChildXML(XMLFile, XMLFile);
  13921. UIElement LoadChildXML(const XMLElement&, XMLFile);
  13922. bool LoadJSON(const JSONValue&);
  13923. bool LoadXML(File);
  13924. bool LoadXML(VectorBuffer&);
  13925. bool LoadXML(XMLFile, XMLFile);
  13926. bool LoadXML(const XMLElement&, XMLFile);
  13927. bool LoadXML(const XMLElement&);
  13928. void MarkNetworkUpdate() const;
  13929. void Remove();
  13930. void RemoveAllChildren();
  13931. void RemoveAllTags();
  13932. void RemoveAttributeAnimation(const String&);
  13933. void RemoveChild(UIElement, uint = 0);
  13934. void RemoveChild(uint);
  13935. void RemoveInstanceDefault();
  13936. void RemoveObjectAnimation();
  13937. bool RemoveTag(const String&);
  13938. void ResetDeepEnabled();
  13939. void ResetToDefault();
  13940. bool Save(File) const;
  13941. bool Save(VectorBuffer&) const;
  13942. bool SaveJSON(JSONValue&) const;
  13943. bool SaveXML(File, const String& = "\t");
  13944. bool SaveXML(VectorBuffer&, const String& = "\t");
  13945. bool SaveXML(XMLElement&) const;
  13946. IntVector2 ScreenToElement(const IntVector2&);
  13947. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13948. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13949. void SetAnimationTime(float);
  13950. bool SetAttribute(const String&, const Variant&);
  13951. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13952. void SetAttributeAnimationSpeed(const String&, float);
  13953. void SetAttributeAnimationTime(const String&, float);
  13954. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13955. void SetDeepEnabled(bool);
  13956. void SetEnabledRecursive(bool);
  13957. void SetFixedHeight(int);
  13958. void SetFixedSize(int, int);
  13959. void SetFixedWidth(int);
  13960. void SetInterceptNetworkUpdate(const String&, bool);
  13961. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13962. void SetMaxAnchor(float, float);
  13963. void SetMaxSize(int, int);
  13964. void SetMinAnchor(float, float);
  13965. void SetMinSize(int, int);
  13966. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13967. void SetPivot(float, float);
  13968. void SetPosition(int, int);
  13969. void SetSize(int, int);
  13970. bool SetStyle(const String&, XMLFile = null);
  13971. bool SetStyle(const XMLElement&);
  13972. bool SetStyleAuto(XMLFile = null);
  13973. void UpdateLayout();
  13974. const Variant& GetVar(const StringHash&);
  13975. // Properties:
  13976. bool animationEnabled;
  13977. /* readonly */
  13978. Array<Variant> attributeDefaults;
  13979. /* readonly */
  13980. Array<AttributeInfo> attributeInfos;
  13981. Array<Variant> attributes;
  13982. bool bringToBack;
  13983. bool bringToFront;
  13984. /* readonly */
  13985. String category;
  13986. /* readonly */
  13987. IntVector2 childOffset;
  13988. /* readonly */
  13989. Array<UIElement> children;
  13990. IntRect clipBorder;
  13991. bool clipChildren;
  13992. /* writeonly */
  13993. Color color;
  13994. /* readonly */
  13995. bool colorGradient;
  13996. Array<Color> colors;
  13997. /* readonly */
  13998. IntRect combinedScreenRect;
  13999. XMLFile defaultStyle;
  14000. /* readonly */
  14001. float derivedOpacity;
  14002. /* readonly */
  14003. uint dragButtonCombo;
  14004. /* readonly */
  14005. int dragButtonCount;
  14006. uint dragDropMode;
  14007. bool editable;
  14008. bool elementEventSender;
  14009. bool enableAnchor;
  14010. bool enabled;
  14011. /* readonly */
  14012. bool enabledSelf;
  14013. /* readonly */
  14014. bool fixedHeight;
  14015. /* readonly */
  14016. bool fixedSize;
  14017. /* readonly */
  14018. bool fixedWidth;
  14019. bool focus;
  14020. FocusMode focusMode;
  14021. int height;
  14022. HorizontalAlignment horizontalAlignment;
  14023. /* readonly */
  14024. bool hovering;
  14025. int indent;
  14026. int indentSpacing;
  14027. /* readonly */
  14028. int indentWidth;
  14029. bool internal;
  14030. IntRect layoutBorder;
  14031. Vector2 layoutFlexScale;
  14032. LayoutMode layoutMode;
  14033. int layoutSpacing;
  14034. Vector2 maxAnchor;
  14035. int maxHeight;
  14036. IntVector2 maxOffset;
  14037. IntVector2 maxSize;
  14038. int maxWidth;
  14039. Vector2 minAnchor;
  14040. int minHeight;
  14041. IntVector2 minOffset;
  14042. IntVector2 minSize;
  14043. int minWidth;
  14044. String name;
  14045. /* readonly */
  14046. uint numAllChildren;
  14047. /* readonly */
  14048. uint numAttributes;
  14049. /* readonly */
  14050. uint numChildren;
  14051. ObjectAnimation objectAnimation;
  14052. float opacity;
  14053. UIElement parent;
  14054. Vector2 pivot;
  14055. IntVector2 position;
  14056. int priority;
  14057. /* readonly */
  14058. int refs;
  14059. /* readonly */
  14060. UIElement root;
  14061. /* readonly */
  14062. IntVector2 screenPosition;
  14063. bool selected;
  14064. IntVector2 size;
  14065. bool sortChildren;
  14066. String style;
  14067. /* readonly */
  14068. Array<String> tags;
  14069. bool temporary;
  14070. TraversalMode traversalMode;
  14071. /* readonly */
  14072. StringHash type;
  14073. /* readonly */
  14074. String typeName;
  14075. bool useDerivedOpacity;
  14076. /* readonly */
  14077. VariantMap vars;
  14078. VerticalAlignment verticalAlignment;
  14079. bool visible;
  14080. /* readonly */
  14081. bool visibleEffective;
  14082. /* readonly */
  14083. int weakRefs;
  14084. int width;
  14085. };
  14086. class ValueAnimation
  14087. {
  14088. public:
  14089. ValueAnimation();
  14090. ValueAnimation(const String&in);
  14091. // Methods:
  14092. bool HasSubscribedToEvent(Object, const String&);
  14093. bool HasSubscribedToEvent(const String&);
  14094. bool Load(File);
  14095. bool Load(VectorBuffer&);
  14096. bool Load(const String&);
  14097. bool Save(File) const;
  14098. bool Save(VectorBuffer&) const;
  14099. bool Save(const String&) const;
  14100. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14101. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  14102. void SetKeyFrame(float, const Variant&);
  14103. // Properties:
  14104. /* readonly */
  14105. String category;
  14106. InterpMethod interpolationMethod;
  14107. /* readonly */
  14108. uint memoryUse;
  14109. String name;
  14110. /* readonly */
  14111. int refs;
  14112. float splineTension;
  14113. /* readonly */
  14114. StringHash type;
  14115. /* readonly */
  14116. String typeName;
  14117. /* readonly */
  14118. uint useTimer;
  14119. VariantType valueType;
  14120. /* readonly */
  14121. int weakRefs;
  14122. };
  14123. class Variant
  14124. {
  14125. public:
  14126. ~Variant();
  14127. Variant();
  14128. Variant(const Variant&in);
  14129. Variant(int);
  14130. Variant(uint);
  14131. Variant(int64);
  14132. Variant(uint64);
  14133. Variant(const StringHash&in);
  14134. Variant(bool);
  14135. Variant(float);
  14136. Variant(double);
  14137. Variant(const Vector2&in);
  14138. Variant(const Vector3&in);
  14139. Variant(const Vector4&in);
  14140. Variant(const Quaternion&in);
  14141. Variant(const Color&in);
  14142. Variant(const String&in);
  14143. Variant(const ResourceRef&in);
  14144. Variant(const ResourceRefList&in);
  14145. Variant(const Variant[]@);
  14146. Variant(const String[]@);
  14147. Variant(const VariantMap&in);
  14148. Variant(const Rect&in);
  14149. Variant(const IntRect&in);
  14150. Variant(const IntVector2&in);
  14151. Variant(const IntVector3&in);
  14152. Variant(RefCounted@);
  14153. Variant(ScriptObject@);
  14154. Variant(const Matrix3&in);
  14155. Variant(const Matrix3x4&in);
  14156. Variant(const Matrix4&in);
  14157. Variant(const String&in, const String&in);
  14158. Variant(VariantType, const String&in);
  14159. Variant(const VectorBuffer&in);
  14160. // Methods:
  14161. void Clear();
  14162. const Color& GetColor() const;
  14163. void FromString(VariantType, const String&);
  14164. void FromString(const String&, const String&);
  14165. bool GetBool() const;
  14166. VectorBuffer GetBuffer() const;
  14167. double GetDouble() const;
  14168. float GetFloat() const;
  14169. int GetInt() const;
  14170. int GetInt64() const;
  14171. RefCounted GetPtr() const;
  14172. ScriptObject GetScriptObject() const;
  14173. StringHash GetStringHash() const;
  14174. Array<String> GetStringVector() const;
  14175. uint GetUInt() const;
  14176. uint64 GetUInt64() const;
  14177. Array<Variant> GetVariantVector() const;
  14178. const IntRect& GetIntRect() const;
  14179. const IntVector2& GetIntVector2() const;
  14180. const IntVector3& GetIntVector3() const;
  14181. const Matrix3& GetMatrix3() const;
  14182. const Matrix3x4& GetMatrix3x4() const;
  14183. const Matrix4& GetMatrix4() const;
  14184. const Quaternion& GetQuaternion() const;
  14185. const Rect& GetRect() const;
  14186. const ResourceRef& GetResourceRef() const;
  14187. const ResourceRefList& GetResourceRefList() const;
  14188. const String& GetString() const;
  14189. String ToString() const;
  14190. const VariantMap& GetVariantMap() const;
  14191. const Vector2& GetVector2() const;
  14192. const Vector3& GetVector3() const;
  14193. const Vector4& GetVector4() const;
  14194. // Properties:
  14195. /* readonly */
  14196. bool empty;
  14197. /* readonly */
  14198. VariantType type;
  14199. /* readonly */
  14200. String typeName;
  14201. /* readonly */
  14202. bool zero;
  14203. };
  14204. class VariantMap
  14205. {
  14206. public:
  14207. ~VariantMap();
  14208. VariantMap();
  14209. VariantMap(const VariantMap&in);
  14210. // Methods:
  14211. void Clear();
  14212. bool Contains(StringHash) const;
  14213. bool Contains(const String&) const;
  14214. bool Erase(StringHash);
  14215. bool Erase(const String&);
  14216. // Properties:
  14217. /* readonly */
  14218. Array<StringHash> keys;
  14219. /* readonly */
  14220. uint length;
  14221. /* readonly */
  14222. Array<Variant> values;
  14223. };
  14224. class Vector2
  14225. {
  14226. public:
  14227. Vector2();
  14228. Vector2(const Vector2&in);
  14229. Vector2(const IntVector2&in);
  14230. Vector2(float, float);
  14231. Vector2(float[]&inout);
  14232. // Methods:
  14233. Vector2 Abs() const;
  14234. float AbsDotProduct(const Vector2&) const;
  14235. float Angle(const Vector2&) const;
  14236. float DotProduct(const Vector2&) const;
  14237. bool Equals(const Vector2&) const;
  14238. bool IsNaN() const;
  14239. Vector2 Lerp(const Vector2&, float) const;
  14240. void Normalize();
  14241. Vector2 Normalized() const;
  14242. float ProjectOntoAxis(const Vector2&) const;
  14243. String ToString() const;
  14244. // Properties:
  14245. /* readonly */
  14246. Array<float> data;
  14247. /* readonly */
  14248. float length;
  14249. /* readonly */
  14250. float lengthSquared;
  14251. float x;
  14252. float y;
  14253. // Constants:
  14254. static const Vector2 DOWN;
  14255. static const Vector2 LEFT;
  14256. static const Vector2 ONE;
  14257. static const Vector2 RIGHT;
  14258. static const Vector2 UP;
  14259. static const Vector2 ZERO;
  14260. };
  14261. class Vector3
  14262. {
  14263. public:
  14264. Vector3();
  14265. Vector3(const Vector3&in);
  14266. Vector3(const Vector2&in, float);
  14267. Vector3(const Vector2&in);
  14268. Vector3(const IntVector3&in);
  14269. Vector3(float, float, float);
  14270. Vector3(float, float);
  14271. Vector3(float[]&inout);
  14272. // Methods:
  14273. Vector3 Abs() const;
  14274. float AbsDotProduct(const Vector3&) const;
  14275. float Angle(const Vector3&) const;
  14276. Vector3 CrossProduct(const Vector3&) const;
  14277. float DistanceToPlane(const Vector3&, const Vector3&) const;
  14278. float DistanceToPoint(const Vector3&) const;
  14279. float DotProduct(const Vector3&) const;
  14280. bool Equals(const Vector3&) const;
  14281. bool IsNaN() const;
  14282. Vector3 Lerp(const Vector3&, float) const;
  14283. void Normalize();
  14284. Vector3 Normalized() const;
  14285. Vector3 Orthogonalize(const Vector3&) const;
  14286. float ProjectOntoAxis(const Vector3&) const;
  14287. Vector3 ProjectOntoLine(const Vector3&, const Vector3&, bool = false) const;
  14288. Vector3 ProjectOntoPlane(const Vector3&, const Vector3&) const;
  14289. String ToString() const;
  14290. // Properties:
  14291. /* readonly */
  14292. Array<float> data;
  14293. /* readonly */
  14294. float length;
  14295. /* readonly */
  14296. float lengthSquared;
  14297. float x;
  14298. float y;
  14299. float z;
  14300. // Constants:
  14301. static const Vector3 BACK;
  14302. static const Vector3 DOWN;
  14303. static const Vector3 FORWARD;
  14304. static const Vector3 LEFT;
  14305. static const Vector3 ONE;
  14306. static const Vector3 RIGHT;
  14307. static const Vector3 UP;
  14308. static const Vector3 ZERO;
  14309. };
  14310. class Vector4
  14311. {
  14312. public:
  14313. Vector4();
  14314. Vector4(const Vector4&in);
  14315. Vector4(float, float, float, float);
  14316. Vector4(const Vector3&in, float);
  14317. Vector4(float[]&inout);
  14318. // Methods:
  14319. Vector4 Abs() const;
  14320. float AbsDotProduct(const Vector4&) const;
  14321. float DotProduct(const Vector4&) const;
  14322. bool Equals(const Vector4&) const;
  14323. bool IsNaN() const;
  14324. Vector4 Lerp(const Vector4&, float) const;
  14325. float ProjectOntoAxis(const Vector3&) const;
  14326. String ToString() const;
  14327. // Properties:
  14328. /* readonly */
  14329. Array<float> data;
  14330. float w;
  14331. float x;
  14332. float y;
  14333. float z;
  14334. };
  14335. class VectorBuffer
  14336. {
  14337. public:
  14338. ~VectorBuffer();
  14339. VectorBuffer();
  14340. VectorBuffer(const VectorBuffer&in);
  14341. VectorBuffer(Deserializer@, uint);
  14342. // Methods:
  14343. void Clear();
  14344. Array<uint8> Read(uint);
  14345. bool ReadBool();
  14346. BoundingBox ReadBoundingBox();
  14347. int8 ReadByte();
  14348. Color ReadColor();
  14349. double ReadDouble();
  14350. String ReadFileID();
  14351. float ReadFloat();
  14352. int ReadInt();
  14353. int64 ReadInt64();
  14354. IntRect ReadIntRect();
  14355. IntVector2 ReadIntVector2();
  14356. String ReadLine();
  14357. Matrix3 ReadMatrix3();
  14358. Matrix3x4 ReadMatrix3x4();
  14359. Matrix4 ReadMatrix4();
  14360. uint ReadNetID();
  14361. Quaternion ReadPackedQuaternion();
  14362. Vector3 ReadPackedVector3(float);
  14363. Quaternion ReadQuaternion();
  14364. int16 ReadShort();
  14365. String ReadString();
  14366. StringHash ReadStringHash();
  14367. uint8 ReadUByte();
  14368. uint ReadUInt();
  14369. uint64 ReadUInt64();
  14370. uint16 ReadUShort();
  14371. uint ReadVLE();
  14372. Variant ReadVariant();
  14373. VariantMap ReadVariantMap();
  14374. Vector2 ReadVector2();
  14375. Vector3 ReadVector3();
  14376. Vector4 ReadVector4();
  14377. VectorBuffer ReadVectorBuffer(uint);
  14378. void Resize(uint);
  14379. uint Seek(uint);
  14380. uint SeekRelative(int);
  14381. void SetData(Deserializer, uint);
  14382. uint Tell() const;
  14383. uint Write(Array<uint8>);
  14384. bool WriteBool(bool);
  14385. bool WriteBoundingBox(const BoundingBox&);
  14386. bool WriteByte(int8);
  14387. bool WriteColor(const Color&);
  14388. bool WriteDouble(double);
  14389. bool WriteFileID(const String&);
  14390. bool WriteFloat(float);
  14391. bool WriteInt(int);
  14392. bool WriteInt64(int64);
  14393. bool WriteIntRect(const IntRect&);
  14394. bool WriteIntVector2(const IntVector2&);
  14395. bool WriteLine(const String&);
  14396. bool WriteMatrix3(const Matrix3&);
  14397. bool WriteMatrix3x4(const Matrix3x4&);
  14398. bool WriteMatrix4(const Matrix4&);
  14399. bool WriteNetID(uint);
  14400. bool WritePackedQuaternion(const Quaternion&);
  14401. bool WritePackedVector3(const Vector3&, float);
  14402. bool WriteQuaternion(const Quaternion&);
  14403. bool WriteShort(int16);
  14404. bool WriteString(const String&);
  14405. bool WriteStringHash(const StringHash&);
  14406. bool WriteUByte(uint8);
  14407. bool WriteUInt(uint);
  14408. bool WriteUInt64(uint64);
  14409. bool WriteUShort(uint16);
  14410. bool WriteVLE(uint);
  14411. bool WriteVariant(const Variant&);
  14412. bool WriteVariantMap(const VariantMap&);
  14413. bool WriteVector2(const Vector2&);
  14414. bool WriteVector3(const Vector3&);
  14415. bool WriteVector4(const Vector4&);
  14416. bool WriteVectorBuffer(const VectorBuffer&);
  14417. // Properties:
  14418. /* readonly */
  14419. uint checksum;
  14420. /* readonly */
  14421. bool eof;
  14422. /* readonly */
  14423. String name;
  14424. /* readonly */
  14425. uint position;
  14426. /* readonly */
  14427. uint size;
  14428. };
  14429. class VertexBuffer
  14430. {
  14431. public:
  14432. VertexBuffer();
  14433. // Methods:
  14434. VectorBuffer GetData() const;
  14435. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  14436. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14437. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  14438. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14439. bool HasSubscribedToEvent(Object, const String&);
  14440. bool HasSubscribedToEvent(const String&);
  14441. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14442. bool SetData(VectorBuffer&);
  14443. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  14444. void SetSize(uint, Array<VertexElement>, bool = false);
  14445. void SetSize(uint, uint, bool = false);
  14446. // Properties:
  14447. /* readonly */
  14448. String category;
  14449. /* readonly */
  14450. bool dynamic;
  14451. /* readonly */
  14452. uint elementMask;
  14453. /* readonly */
  14454. Array<VertexElement> elements;
  14455. /* readonly */
  14456. int refs;
  14457. bool shadowed;
  14458. /* readonly */
  14459. StringHash type;
  14460. /* readonly */
  14461. String typeName;
  14462. /* readonly */
  14463. uint vertexCount;
  14464. /* readonly */
  14465. uint vertexSize;
  14466. /* readonly */
  14467. int weakRefs;
  14468. };
  14469. class VertexElement
  14470. {
  14471. public:
  14472. ~VertexElement();
  14473. VertexElement();
  14474. VertexElement(const VertexElement&in);
  14475. VertexElement(VertexElementType, VertexElementSemantic, uint8 index = 0, bool perInstance = false);
  14476. // Properties:
  14477. uint8 index;
  14478. uint offset;
  14479. bool perInstance;
  14480. VertexElementSemantic semantic;
  14481. VertexElementType type;
  14482. };
  14483. class View3D
  14484. {
  14485. public:
  14486. View3D();
  14487. View3D(const String&in);
  14488. // Methods:
  14489. void AddChild(UIElement);
  14490. void AddTag(const String&);
  14491. void AddTags(const String&, int8 = ';');
  14492. void ApplyAttributes();
  14493. void BringToFront();
  14494. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14495. void DisableLayoutUpdate();
  14496. IntVector2 ElementToScreen(const IntVector2&);
  14497. void EnableLayoutUpdate();
  14498. uint FindChild(UIElement) const;
  14499. Variant GetAttribute(const String&) const;
  14500. ValueAnimation GetAttributeAnimation(const String&) const;
  14501. float GetAttributeAnimationSpeed(const String&) const;
  14502. float GetAttributeAnimationTime(const String&) const;
  14503. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14504. Variant GetAttributeDefault(const String&) const;
  14505. UIElement GetChild(const String&, bool = false) const;
  14506. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14507. Array<UIElement> GetChildren(bool = false) const;
  14508. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14509. UIElement GetElementEventSender() const;
  14510. bool GetInterceptNetworkUpdate(const String&) const;
  14511. uint GetNumChildren(bool) const;
  14512. bool HasSubscribedToEvent(Object, const String&);
  14513. bool HasSubscribedToEvent(const String&);
  14514. bool HasTag(const String&) const;
  14515. void InsertChild(uint, UIElement);
  14516. bool IsChildOf(UIElement) const;
  14517. bool IsInside(IntVector2, bool);
  14518. bool IsInsideCombined(IntVector2, bool);
  14519. bool Load(File);
  14520. bool Load(VectorBuffer&);
  14521. UIElement LoadChildXML(XMLFile, XMLFile);
  14522. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14523. bool LoadJSON(const JSONValue&);
  14524. bool LoadXML(File);
  14525. bool LoadXML(VectorBuffer&);
  14526. bool LoadXML(XMLFile, XMLFile);
  14527. bool LoadXML(const XMLElement&, XMLFile);
  14528. bool LoadXML(const XMLElement&);
  14529. void MarkNetworkUpdate() const;
  14530. void QueueUpdate();
  14531. void Remove();
  14532. void RemoveAllChildren();
  14533. void RemoveAllTags();
  14534. void RemoveAttributeAnimation(const String&);
  14535. void RemoveChild(UIElement, uint = 0);
  14536. void RemoveChild(uint);
  14537. void RemoveInstanceDefault();
  14538. void RemoveObjectAnimation();
  14539. bool RemoveTag(const String&);
  14540. void ResetDeepEnabled();
  14541. void ResetToDefault();
  14542. bool Save(File) const;
  14543. bool Save(VectorBuffer&) const;
  14544. bool SaveJSON(JSONValue&) const;
  14545. bool SaveXML(File, const String& = "\t");
  14546. bool SaveXML(VectorBuffer&, const String& = "\t");
  14547. bool SaveXML(XMLElement&) const;
  14548. IntVector2 ScreenToElement(const IntVector2&);
  14549. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14550. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14551. void SetAnimationTime(float);
  14552. bool SetAttribute(const String&, const Variant&);
  14553. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14554. void SetAttributeAnimationSpeed(const String&, float);
  14555. void SetAttributeAnimationTime(const String&, float);
  14556. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14557. void SetDeepEnabled(bool);
  14558. void SetEnabledRecursive(bool);
  14559. void SetFixedHeight(int);
  14560. void SetFixedSize(int, int);
  14561. void SetFixedWidth(int);
  14562. void SetFullImageRect();
  14563. void SetHoverOffset(int, int);
  14564. void SetInterceptNetworkUpdate(const String&, bool);
  14565. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14566. void SetMaxAnchor(float, float);
  14567. void SetMaxSize(int, int);
  14568. void SetMinAnchor(float, float);
  14569. void SetMinSize(int, int);
  14570. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14571. void SetPivot(float, float);
  14572. void SetPosition(int, int);
  14573. void SetSize(int, int);
  14574. bool SetStyle(const String&, XMLFile = null);
  14575. bool SetStyle(const XMLElement&);
  14576. bool SetStyleAuto(XMLFile = null);
  14577. void SetView(Scene, Camera, bool = true);
  14578. void UpdateLayout();
  14579. const Variant& GetVar(const StringHash&);
  14580. // Properties:
  14581. bool animationEnabled;
  14582. /* readonly */
  14583. Array<Variant> attributeDefaults;
  14584. /* readonly */
  14585. Array<AttributeInfo> attributeInfos;
  14586. Array<Variant> attributes;
  14587. bool autoUpdate;
  14588. BlendMode blendMode;
  14589. IntRect border;
  14590. bool bringToBack;
  14591. bool bringToFront;
  14592. /* readonly */
  14593. Node cameraNode;
  14594. /* readonly */
  14595. String category;
  14596. /* readonly */
  14597. IntVector2 childOffset;
  14598. /* readonly */
  14599. Array<UIElement> children;
  14600. IntRect clipBorder;
  14601. bool clipChildren;
  14602. /* writeonly */
  14603. Color color;
  14604. /* readonly */
  14605. bool colorGradient;
  14606. Array<Color> colors;
  14607. /* readonly */
  14608. IntRect combinedScreenRect;
  14609. XMLFile defaultStyle;
  14610. /* readonly */
  14611. Texture2D depthTexture;
  14612. /* readonly */
  14613. float derivedOpacity;
  14614. /* readonly */
  14615. uint dragButtonCombo;
  14616. /* readonly */
  14617. int dragButtonCount;
  14618. uint dragDropMode;
  14619. bool editable;
  14620. bool elementEventSender;
  14621. bool enableAnchor;
  14622. bool enabled;
  14623. /* readonly */
  14624. bool enabledSelf;
  14625. /* readonly */
  14626. bool fixedHeight;
  14627. bool fixedHeightResizing;
  14628. /* readonly */
  14629. bool fixedSize;
  14630. /* readonly */
  14631. bool fixedWidth;
  14632. bool fixedWidthResizing;
  14633. bool focus;
  14634. FocusMode focusMode;
  14635. uint format;
  14636. int height;
  14637. HorizontalAlignment horizontalAlignment;
  14638. IntVector2 hoverOffset;
  14639. /* readonly */
  14640. bool hovering;
  14641. IntRect imageBorder;
  14642. IntRect imageRect;
  14643. int indent;
  14644. int indentSpacing;
  14645. /* readonly */
  14646. int indentWidth;
  14647. bool internal;
  14648. IntRect layoutBorder;
  14649. Vector2 layoutFlexScale;
  14650. LayoutMode layoutMode;
  14651. int layoutSpacing;
  14652. Vector2 maxAnchor;
  14653. int maxHeight;
  14654. IntVector2 maxOffset;
  14655. IntVector2 maxSize;
  14656. int maxWidth;
  14657. Vector2 minAnchor;
  14658. int minHeight;
  14659. IntVector2 minOffset;
  14660. IntVector2 minSize;
  14661. int minWidth;
  14662. bool modal;
  14663. bool modalAutoDismiss;
  14664. Color modalFrameColor;
  14665. IntVector2 modalFrameSize;
  14666. Color modalShadeColor;
  14667. bool movable;
  14668. String name;
  14669. /* readonly */
  14670. uint numAllChildren;
  14671. /* readonly */
  14672. uint numAttributes;
  14673. /* readonly */
  14674. uint numChildren;
  14675. ObjectAnimation objectAnimation;
  14676. float opacity;
  14677. UIElement parent;
  14678. Vector2 pivot;
  14679. IntVector2 position;
  14680. int priority;
  14681. /* readonly */
  14682. int refs;
  14683. /* readonly */
  14684. Texture2D renderTexture;
  14685. bool resizable;
  14686. IntRect resizeBorder;
  14687. /* readonly */
  14688. UIElement root;
  14689. /* readonly */
  14690. Scene scene;
  14691. /* readonly */
  14692. IntVector2 screenPosition;
  14693. bool selected;
  14694. IntVector2 size;
  14695. bool sortChildren;
  14696. String style;
  14697. /* readonly */
  14698. Array<String> tags;
  14699. bool temporary;
  14700. Texture texture;
  14701. bool tiled;
  14702. TraversalMode traversalMode;
  14703. /* readonly */
  14704. StringHash type;
  14705. /* readonly */
  14706. String typeName;
  14707. bool useDerivedOpacity;
  14708. /* readonly */
  14709. VariantMap vars;
  14710. VerticalAlignment verticalAlignment;
  14711. /* readonly */
  14712. Viewport viewport;
  14713. bool visible;
  14714. /* readonly */
  14715. bool visibleEffective;
  14716. /* readonly */
  14717. int weakRefs;
  14718. int width;
  14719. };
  14720. class Viewport
  14721. {
  14722. public:
  14723. Viewport();
  14724. Viewport(Scene&, Camera&, RenderPath& renderPath = null);
  14725. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& renderPath = null);
  14726. // Methods:
  14727. Ray GetScreenRay(int, int) const;
  14728. bool HasSubscribedToEvent(Object, const String&);
  14729. bool HasSubscribedToEvent(const String&);
  14730. Vector3 ScreenToWorldPoint(int, int, float) const;
  14731. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14732. void SetRenderPath(XMLFile);
  14733. IntVector2 WorldToScreenPoint(const Vector3&) const;
  14734. // Properties:
  14735. Camera camera;
  14736. /* readonly */
  14737. String category;
  14738. Camera cullCamera;
  14739. bool drawDebug;
  14740. IntRect rect;
  14741. /* readonly */
  14742. int refs;
  14743. RenderPath renderPath;
  14744. Scene scene;
  14745. /* readonly */
  14746. StringHash type;
  14747. /* readonly */
  14748. String typeName;
  14749. /* readonly */
  14750. int weakRefs;
  14751. };
  14752. class WeakHandle
  14753. {
  14754. public:
  14755. ~WeakHandle();
  14756. WeakHandle();
  14757. WeakHandle(const WeakHandle&in);
  14758. WeakHandle(RefCounted@);
  14759. // Methods:
  14760. RefCounted Get() const;
  14761. // Properties:
  14762. /* readonly */
  14763. bool expired;
  14764. /* readonly */
  14765. int refs;
  14766. /* readonly */
  14767. int weakRefs;
  14768. };
  14769. class Window
  14770. {
  14771. public:
  14772. Window();
  14773. Window(const String&in);
  14774. // Methods:
  14775. void AddChild(UIElement);
  14776. void AddTag(const String&);
  14777. void AddTags(const String&, int8 = ';');
  14778. void ApplyAttributes();
  14779. void BringToFront();
  14780. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14781. void DisableLayoutUpdate();
  14782. IntVector2 ElementToScreen(const IntVector2&);
  14783. void EnableLayoutUpdate();
  14784. uint FindChild(UIElement) const;
  14785. Variant GetAttribute(const String&) const;
  14786. ValueAnimation GetAttributeAnimation(const String&) const;
  14787. float GetAttributeAnimationSpeed(const String&) const;
  14788. float GetAttributeAnimationTime(const String&) const;
  14789. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14790. Variant GetAttributeDefault(const String&) const;
  14791. UIElement GetChild(const String&, bool = false) const;
  14792. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14793. Array<UIElement> GetChildren(bool = false) const;
  14794. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14795. UIElement GetElementEventSender() const;
  14796. bool GetInterceptNetworkUpdate(const String&) const;
  14797. uint GetNumChildren(bool) const;
  14798. bool HasSubscribedToEvent(Object, const String&);
  14799. bool HasSubscribedToEvent(const String&);
  14800. bool HasTag(const String&) const;
  14801. void InsertChild(uint, UIElement);
  14802. bool IsChildOf(UIElement) const;
  14803. bool IsInside(IntVector2, bool);
  14804. bool IsInsideCombined(IntVector2, bool);
  14805. bool Load(File);
  14806. bool Load(VectorBuffer&);
  14807. UIElement LoadChildXML(XMLFile, XMLFile);
  14808. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14809. bool LoadJSON(const JSONValue&);
  14810. bool LoadXML(File);
  14811. bool LoadXML(VectorBuffer&);
  14812. bool LoadXML(XMLFile, XMLFile);
  14813. bool LoadXML(const XMLElement&, XMLFile);
  14814. bool LoadXML(const XMLElement&);
  14815. void MarkNetworkUpdate() const;
  14816. void Remove();
  14817. void RemoveAllChildren();
  14818. void RemoveAllTags();
  14819. void RemoveAttributeAnimation(const String&);
  14820. void RemoveChild(UIElement, uint = 0);
  14821. void RemoveChild(uint);
  14822. void RemoveInstanceDefault();
  14823. void RemoveObjectAnimation();
  14824. bool RemoveTag(const String&);
  14825. void ResetDeepEnabled();
  14826. void ResetToDefault();
  14827. bool Save(File) const;
  14828. bool Save(VectorBuffer&) const;
  14829. bool SaveJSON(JSONValue&) const;
  14830. bool SaveXML(File, const String& = "\t");
  14831. bool SaveXML(VectorBuffer&, const String& = "\t");
  14832. bool SaveXML(XMLElement&) const;
  14833. IntVector2 ScreenToElement(const IntVector2&);
  14834. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14835. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14836. void SetAnimationTime(float);
  14837. bool SetAttribute(const String&, const Variant&);
  14838. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14839. void SetAttributeAnimationSpeed(const String&, float);
  14840. void SetAttributeAnimationTime(const String&, float);
  14841. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14842. void SetDeepEnabled(bool);
  14843. void SetEnabledRecursive(bool);
  14844. void SetFixedHeight(int);
  14845. void SetFixedSize(int, int);
  14846. void SetFixedWidth(int);
  14847. void SetFullImageRect();
  14848. void SetHoverOffset(int, int);
  14849. void SetInterceptNetworkUpdate(const String&, bool);
  14850. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14851. void SetMaxAnchor(float, float);
  14852. void SetMaxSize(int, int);
  14853. void SetMinAnchor(float, float);
  14854. void SetMinSize(int, int);
  14855. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14856. void SetPivot(float, float);
  14857. void SetPosition(int, int);
  14858. void SetSize(int, int);
  14859. bool SetStyle(const String&, XMLFile = null);
  14860. bool SetStyle(const XMLElement&);
  14861. bool SetStyleAuto(XMLFile = null);
  14862. void UpdateLayout();
  14863. const Variant& GetVar(const StringHash&);
  14864. // Properties:
  14865. bool animationEnabled;
  14866. /* readonly */
  14867. Array<Variant> attributeDefaults;
  14868. /* readonly */
  14869. Array<AttributeInfo> attributeInfos;
  14870. Array<Variant> attributes;
  14871. BlendMode blendMode;
  14872. IntRect border;
  14873. bool bringToBack;
  14874. bool bringToFront;
  14875. /* readonly */
  14876. String category;
  14877. /* readonly */
  14878. IntVector2 childOffset;
  14879. /* readonly */
  14880. Array<UIElement> children;
  14881. IntRect clipBorder;
  14882. bool clipChildren;
  14883. /* writeonly */
  14884. Color color;
  14885. /* readonly */
  14886. bool colorGradient;
  14887. Array<Color> colors;
  14888. /* readonly */
  14889. IntRect combinedScreenRect;
  14890. XMLFile defaultStyle;
  14891. /* readonly */
  14892. float derivedOpacity;
  14893. /* readonly */
  14894. uint dragButtonCombo;
  14895. /* readonly */
  14896. int dragButtonCount;
  14897. uint dragDropMode;
  14898. bool editable;
  14899. bool elementEventSender;
  14900. bool enableAnchor;
  14901. bool enabled;
  14902. /* readonly */
  14903. bool enabledSelf;
  14904. /* readonly */
  14905. bool fixedHeight;
  14906. bool fixedHeightResizing;
  14907. /* readonly */
  14908. bool fixedSize;
  14909. /* readonly */
  14910. bool fixedWidth;
  14911. bool fixedWidthResizing;
  14912. bool focus;
  14913. FocusMode focusMode;
  14914. int height;
  14915. HorizontalAlignment horizontalAlignment;
  14916. IntVector2 hoverOffset;
  14917. /* readonly */
  14918. bool hovering;
  14919. IntRect imageBorder;
  14920. IntRect imageRect;
  14921. int indent;
  14922. int indentSpacing;
  14923. /* readonly */
  14924. int indentWidth;
  14925. bool internal;
  14926. IntRect layoutBorder;
  14927. Vector2 layoutFlexScale;
  14928. LayoutMode layoutMode;
  14929. int layoutSpacing;
  14930. Vector2 maxAnchor;
  14931. int maxHeight;
  14932. IntVector2 maxOffset;
  14933. IntVector2 maxSize;
  14934. int maxWidth;
  14935. Vector2 minAnchor;
  14936. int minHeight;
  14937. IntVector2 minOffset;
  14938. IntVector2 minSize;
  14939. int minWidth;
  14940. bool modal;
  14941. bool modalAutoDismiss;
  14942. Color modalFrameColor;
  14943. IntVector2 modalFrameSize;
  14944. Color modalShadeColor;
  14945. bool movable;
  14946. String name;
  14947. /* readonly */
  14948. uint numAllChildren;
  14949. /* readonly */
  14950. uint numAttributes;
  14951. /* readonly */
  14952. uint numChildren;
  14953. ObjectAnimation objectAnimation;
  14954. float opacity;
  14955. UIElement parent;
  14956. Vector2 pivot;
  14957. IntVector2 position;
  14958. int priority;
  14959. /* readonly */
  14960. int refs;
  14961. bool resizable;
  14962. IntRect resizeBorder;
  14963. /* readonly */
  14964. UIElement root;
  14965. /* readonly */
  14966. IntVector2 screenPosition;
  14967. bool selected;
  14968. IntVector2 size;
  14969. bool sortChildren;
  14970. String style;
  14971. /* readonly */
  14972. Array<String> tags;
  14973. bool temporary;
  14974. Texture texture;
  14975. bool tiled;
  14976. TraversalMode traversalMode;
  14977. /* readonly */
  14978. StringHash type;
  14979. /* readonly */
  14980. String typeName;
  14981. bool useDerivedOpacity;
  14982. /* readonly */
  14983. VariantMap vars;
  14984. VerticalAlignment verticalAlignment;
  14985. bool visible;
  14986. /* readonly */
  14987. bool visibleEffective;
  14988. /* readonly */
  14989. int weakRefs;
  14990. int width;
  14991. };
  14992. class XMLElement
  14993. {
  14994. public:
  14995. ~XMLElement();
  14996. XMLElement();
  14997. XMLElement(const XMLElement&in);
  14998. // Methods:
  14999. bool AppendChild(XMLElement, bool);
  15000. XMLElement CreateChild(const String&);
  15001. String GetAttribute(const String& = String ( )) const;
  15002. String GetAttributeLower(const String&) const;
  15003. Array<String> GetAttributeNames() const;
  15004. String GetAttributeUpper(const String&) const;
  15005. bool GetBool(const String&) const;
  15006. BoundingBox GetBoundingBox() const;
  15007. XMLElement GetChild(const String& = String ( )) const;
  15008. Color GetColor(const String&) const;
  15009. double GetDouble(const String&) const;
  15010. float GetFloat(const String&) const;
  15011. int GetInt(const String&) const;
  15012. int64 GetInt64(const String&) const;
  15013. IntRect GetIntRect(const String&) const;
  15014. IntVector2 GetIntVector2(const String&) const;
  15015. IntVector3 GetIntVector3(const String&) const;
  15016. Matrix3 GetMatrix3(const String&) const;
  15017. Matrix3x4 GetMatrix3x4(const String&) const;
  15018. Matrix4 GetMatrix4(const String&) const;
  15019. XMLElement GetNext(const String& = String ( )) const;
  15020. XMLElement GetOrCreateChild(const String&);
  15021. Quaternion GetQuaternion(const String&) const;
  15022. ResourceRef GetResourceRef() const;
  15023. ResourceRefList GetResourceRefList() const;
  15024. uint GetUInt(const String&) const;
  15025. uint64 GetUInt64(const String&) const;
  15026. String GetValue() const;
  15027. Variant GetVariant() const;
  15028. VariantMap GetVariantMap() const;
  15029. Array<Variant> GetVariantVector() const;
  15030. Vector2 GetVector2(const String&) const;
  15031. Vector3 GetVector3(const String&) const;
  15032. Vector4 GetVector4(const String&) const;
  15033. Variant GetVectorVariant(const String&) const;
  15034. bool HasAttribute(const String&) const;
  15035. bool HasChild(const String&) const;
  15036. bool Remove();
  15037. bool RemoveAttribute(const String& = String ( ));
  15038. bool RemoveChild(const String&);
  15039. bool RemoveChild(const XMLElement&);
  15040. bool RemoveChildren(const String& = String ( ));
  15041. XPathResultSet Select(const String&);
  15042. XPathResultSet SelectPrepared(const XPathQuery&);
  15043. XMLElement SelectSingle(const String&);
  15044. XMLElement SelectSinglePrepared(const XPathQuery&);
  15045. bool SetAttribute(const String&);
  15046. bool SetAttribute(const String&, const String&);
  15047. bool SetBool(const String&, bool);
  15048. bool SetBoundingBox(const BoundingBox&);
  15049. bool SetColor(const String&, const Color&);
  15050. bool SetDouble(const String&, double);
  15051. bool SetFloat(const String&, float);
  15052. bool SetInt(const String&, int);
  15053. bool SetInt64(const String&, int64);
  15054. bool SetIntRect(const String&, const IntRect&);
  15055. bool SetIntVector2(const String&, const IntVector2&);
  15056. bool SetIntVector3(const String&, const IntVector3&);
  15057. bool SetMatrix3(const String&, const Matrix3&);
  15058. bool SetMatrix3x4(const String&, const Matrix3x4&);
  15059. bool SetMatrix4(const String&, const Matrix4&);
  15060. bool SetQuaternion(const String&, const Quaternion&);
  15061. bool SetResourceRef(const String&, const ResourceRef&);
  15062. bool SetResourceRefList(const String&, const ResourceRefList&);
  15063. bool SetUInt(const String&, uint);
  15064. bool SetUInt64(const String&, uint64);
  15065. bool SetValue(const String&);
  15066. bool SetVariant(const Variant&);
  15067. bool SetVariantMap(const VariantMap&);
  15068. bool SetVariantVector(Array<Variant>);
  15069. bool SetVector2(const String&, const Vector2&);
  15070. bool SetVector3(const String&, const Vector3&);
  15071. bool SetVector4(const String&, const Vector4&);
  15072. bool SetVectorVariant(const String&, const Variant&);
  15073. // Properties:
  15074. /* readonly */
  15075. XMLFile file;
  15076. /* readonly */
  15077. bool isNull;
  15078. /* readonly */
  15079. String name;
  15080. /* readonly */
  15081. XMLElement nextResult;
  15082. /* readonly */
  15083. bool notNull;
  15084. /* readonly */
  15085. uint numAttributes;
  15086. /* readonly */
  15087. XMLElement parent;
  15088. String value;
  15089. };
  15090. class XMLFile
  15091. {
  15092. public:
  15093. XMLFile();
  15094. XMLFile(const String&in);
  15095. // Methods:
  15096. XMLElement CreateRoot(const String&);
  15097. bool FromString(const String&);
  15098. XMLElement GetOrCreateRoot(const String&);
  15099. XMLElement GetRoot(const String& = String ( ));
  15100. bool HasSubscribedToEvent(Object, const String&);
  15101. bool HasSubscribedToEvent(const String&);
  15102. bool Load(File);
  15103. bool Load(VectorBuffer&);
  15104. bool Load(const String&);
  15105. void Patch(XMLFile);
  15106. void Patch(const XMLElement&);
  15107. bool Save(File) const;
  15108. bool Save(File, const String&) const;
  15109. bool Save(VectorBuffer&) const;
  15110. bool Save(const String&) const;
  15111. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15112. String ToString(const String& = String ( "\t" )) const;
  15113. // Properties:
  15114. /* readonly */
  15115. String category;
  15116. /* readonly */
  15117. uint memoryUse;
  15118. String name;
  15119. /* readonly */
  15120. int refs;
  15121. /* readonly */
  15122. XMLElement root;
  15123. /* readonly */
  15124. StringHash type;
  15125. /* readonly */
  15126. String typeName;
  15127. /* readonly */
  15128. uint useTimer;
  15129. /* readonly */
  15130. int weakRefs;
  15131. };
  15132. class XPathQuery
  15133. {
  15134. public:
  15135. ~XPathQuery();
  15136. XPathQuery();
  15137. XPathQuery(const String&in, const String&inout arg1 = String ( ));
  15138. // Methods:
  15139. void Bind();
  15140. void Clear();
  15141. XPathResultSet Evaluate(const XMLElement&);
  15142. bool EvaluateToBool(const XMLElement&);
  15143. float EvaluateToFloat(const XMLElement&);
  15144. String EvaluateToString(const XMLElement&);
  15145. bool SetQuery(const String&, const String& = String ( ), bool = true);
  15146. bool SetVariable(const String&, bool);
  15147. bool SetVariable(const String&, const String&);
  15148. bool SetVariable(const String&, const XPathResultSet&);
  15149. bool SetVariable(const String&, float);
  15150. // Properties:
  15151. String query;
  15152. };
  15153. class XPathResultSet
  15154. {
  15155. public:
  15156. ~XPathResultSet();
  15157. XPathResultSet();
  15158. XPathResultSet(const XPathResultSet&in);
  15159. // Properties:
  15160. /* readonly */
  15161. bool empty;
  15162. /* readonly */
  15163. XMLElement firstResult;
  15164. /* readonly */
  15165. uint size;
  15166. };
  15167. class Zone
  15168. {
  15169. public:
  15170. // Methods:
  15171. void ApplyAttributes();
  15172. void DrawDebugGeometry(DebugRenderer, bool);
  15173. Variant GetAttribute(const String&) const;
  15174. ValueAnimation GetAttributeAnimation(const String&) const;
  15175. float GetAttributeAnimationSpeed(const String&) const;
  15176. float GetAttributeAnimationTime(const String&) const;
  15177. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15178. Variant GetAttributeDefault(const String&) const;
  15179. bool GetInterceptNetworkUpdate(const String&) const;
  15180. bool HasSubscribedToEvent(Object, const String&);
  15181. bool HasSubscribedToEvent(const String&);
  15182. bool IsInView(Camera) const;
  15183. bool Load(File);
  15184. bool Load(VectorBuffer&);
  15185. bool LoadJSON(const JSONValue&);
  15186. bool LoadXML(const XMLElement&);
  15187. void MarkNetworkUpdate() const;
  15188. void Remove();
  15189. void RemoveAttributeAnimation(const String&);
  15190. void RemoveInstanceDefault();
  15191. void RemoveObjectAnimation();
  15192. void ResetToDefault();
  15193. bool Save(File) const;
  15194. bool Save(VectorBuffer&) const;
  15195. bool SaveJSON(JSONValue&) const;
  15196. bool SaveXML(XMLElement&) const;
  15197. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15198. void SetAnimationTime(float);
  15199. bool SetAttribute(const String&, const Variant&);
  15200. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15201. void SetAttributeAnimationSpeed(const String&, float);
  15202. void SetAttributeAnimationTime(const String&, float);
  15203. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15204. void SetInterceptNetworkUpdate(const String&, bool);
  15205. // Properties:
  15206. Color ambientColor;
  15207. /* readonly */
  15208. Color ambientEndColor;
  15209. bool ambientGradient;
  15210. /* readonly */
  15211. Color ambientStartColor;
  15212. bool animationEnabled;
  15213. /* readonly */
  15214. Array<Variant> attributeDefaults;
  15215. /* readonly */
  15216. Array<AttributeInfo> attributeInfos;
  15217. Array<Variant> attributes;
  15218. BoundingBox boundingBox;
  15219. bool castShadows;
  15220. /* readonly */
  15221. String category;
  15222. float drawDistance;
  15223. bool enabled;
  15224. /* readonly */
  15225. bool enabledEffective;
  15226. Color fogColor;
  15227. float fogEnd;
  15228. float fogHeight;
  15229. float fogHeightScale;
  15230. float fogStart;
  15231. bool heightFog;
  15232. /* readonly */
  15233. uint id;
  15234. /* readonly */
  15235. bool inView;
  15236. /* readonly */
  15237. Matrix3x4 inverseWorldTransform;
  15238. uint lightMask;
  15239. float lodBias;
  15240. uint maxLights;
  15241. /* readonly */
  15242. Node node;
  15243. /* readonly */
  15244. uint numAttributes;
  15245. ObjectAnimation objectAnimation;
  15246. bool occludee;
  15247. bool occluder;
  15248. bool override;
  15249. int priority;
  15250. /* readonly */
  15251. int refs;
  15252. /* readonly */
  15253. bool replicated;
  15254. float shadowDistance;
  15255. uint shadowMask;
  15256. bool temporary;
  15257. /* readonly */
  15258. StringHash type;
  15259. /* readonly */
  15260. String typeName;
  15261. uint viewMask;
  15262. /* readonly */
  15263. int weakRefs;
  15264. /* readonly */
  15265. BoundingBox worldBoundingBox;
  15266. uint zoneMask;
  15267. Texture zoneTexture;
  15268. };
  15269. // Enumerations
  15270. enum AnimationBlendMode
  15271. {
  15272. ABM_LERP,
  15273. ABM_ADDITIVE,
  15274. };
  15275. enum AutoRemoveMode
  15276. {
  15277. REMOVE_DISABLED,
  15278. REMOVE_COMPONENT,
  15279. REMOVE_NODE,
  15280. };
  15281. enum BlendMode
  15282. {
  15283. BLEND_REPLACE,
  15284. BLEND_ADD,
  15285. BLEND_MULTIPLY,
  15286. BLEND_ALPHA,
  15287. BLEND_ADDALPHA,
  15288. BLEND_PREMULALPHA,
  15289. BLEND_INVDESTALPHA,
  15290. BLEND_SUBTRACT,
  15291. BLEND_SUBTRACTALPHA,
  15292. };
  15293. enum BodyType2D
  15294. {
  15295. BT_STATIC,
  15296. BT_KINEMATIC,
  15297. BT_DYNAMIC,
  15298. };
  15299. enum CollisionEventMode
  15300. {
  15301. COLLISION_NEVER,
  15302. COLLISION_ACTIVE,
  15303. COLLISION_ALWAYS,
  15304. };
  15305. enum CompareMode
  15306. {
  15307. CMP_ALWAYS,
  15308. CMP_EQUAL,
  15309. CMP_NOTEQUAL,
  15310. CMP_LESS,
  15311. CMP_LESSEQUAL,
  15312. CMP_GREATER,
  15313. CMP_GREATEREQUAL,
  15314. };
  15315. enum CompressedFormat
  15316. {
  15317. CF_NONE,
  15318. CF_RGBA,
  15319. CF_DXT1,
  15320. CF_DXT3,
  15321. CF_DXT5,
  15322. CF_ETC1,
  15323. CF_PVRTC_RGB_2BPP,
  15324. CF_PVRTC_RGBA_2BPP,
  15325. CF_PVRTC_RGB_4BPP,
  15326. CF_PVRTC_RGBA_4BPP,
  15327. };
  15328. enum ConstraintType
  15329. {
  15330. CONSTRAINT_POINT,
  15331. CONSTRAINT_HINGE,
  15332. CONSTRAINT_SLIDER,
  15333. CONSTRAINT_CONETWIST,
  15334. };
  15335. enum Corner
  15336. {
  15337. C_TOPLEFT,
  15338. C_TOPRIGHT,
  15339. C_BOTTOMLEFT,
  15340. C_BOTTOMRIGHT,
  15341. };
  15342. enum CreateMode
  15343. {
  15344. REPLICATED,
  15345. LOCAL,
  15346. };
  15347. enum CrowdAgentRequestedTarget
  15348. {
  15349. CA_REQUESTEDTARGET_NONE,
  15350. CA_REQUESTEDTARGET_POSITION,
  15351. CA_REQUESTEDTARGET_VELOCITY,
  15352. };
  15353. enum CrowdAgentState
  15354. {
  15355. CA_STATE_INVALID,
  15356. CA_STATE_WALKING,
  15357. CA_STATE_OFFMESH,
  15358. };
  15359. enum CrowdAgentTargetState
  15360. {
  15361. CA_TARGET_NONE,
  15362. CA_TARGET_FAILED,
  15363. CA_TARGET_VALID,
  15364. CA_TARGET_REQUESTING,
  15365. CA_TARGET_WAITINGFORQUEUE,
  15366. CA_TARGET_WAITINGFORPATH,
  15367. CA_TARGET_VELOCITY,
  15368. };
  15369. enum CubeMapFace
  15370. {
  15371. FACE_POSITIVE_X,
  15372. FACE_NEGATIVE_X,
  15373. FACE_POSITIVE_Y,
  15374. FACE_NEGATIVE_Y,
  15375. FACE_POSITIVE_Z,
  15376. FACE_NEGATIVE_Z,
  15377. };
  15378. enum CullMode
  15379. {
  15380. CULL_NONE,
  15381. CULL_CCW,
  15382. CULL_CW,
  15383. };
  15384. enum CursorShape
  15385. {
  15386. CS_NORMAL,
  15387. CS_IBEAM,
  15388. CS_CROSS,
  15389. CS_RESIZEVERTICAL,
  15390. CS_RESIZEDIAGONAL_TOPRIGHT,
  15391. CS_RESIZEHORIZONTAL,
  15392. CS_RESIZEDIAGONAL_TOPLEFT,
  15393. CS_RESIZE_ALL,
  15394. CS_ACCEPTDROP,
  15395. CS_REJECTDROP,
  15396. CS_BUSY,
  15397. CS_BUSY_ARROW,
  15398. };
  15399. enum DBAPI
  15400. {
  15401. DBAPI_SQLITE,
  15402. DBAPI_ODBC,
  15403. };
  15404. enum DumpMode
  15405. {
  15406. DOXYGEN,
  15407. C_HEADER,
  15408. };
  15409. enum EmitterType
  15410. {
  15411. EMITTER_SPHERE,
  15412. EMITTER_BOX,
  15413. };
  15414. enum EmitterType2D
  15415. {
  15416. EMITTER_TYPE_GRAVITY,
  15417. EMITTER_TYPE_RADIAL,
  15418. };
  15419. enum FaceCameraMode
  15420. {
  15421. FC_NONE,
  15422. FC_ROTATE_XYZ,
  15423. FC_ROTATE_Y,
  15424. FC_LOOKAT_XYZ,
  15425. FC_LOOKAT_Y,
  15426. FC_LOOKAT_MIXED,
  15427. FC_DIRECTION,
  15428. };
  15429. enum FileMode
  15430. {
  15431. FILE_READ,
  15432. FILE_WRITE,
  15433. FILE_READWRITE,
  15434. };
  15435. enum FillMode
  15436. {
  15437. FILL_SOLID,
  15438. FILL_WIREFRAME,
  15439. FILL_POINT,
  15440. };
  15441. enum FocusMode
  15442. {
  15443. FM_NOTFOCUSABLE,
  15444. FM_RESETFOCUS,
  15445. FM_FOCUSABLE,
  15446. FM_FOCUSABLE_DEFOCUSABLE,
  15447. };
  15448. enum FontHintLevel
  15449. {
  15450. FONT_HINT_LEVEL_NONE,
  15451. FONT_HINT_LEVEL_LIGHT,
  15452. FONT_HINT_LEVEL_NORMAL,
  15453. };
  15454. enum FontType
  15455. {
  15456. FONT_NONE,
  15457. FONT_FREETYPE,
  15458. FONT_BITMAP,
  15459. };
  15460. enum HighlightMode
  15461. {
  15462. HM_NEVER,
  15463. HM_FOCUS,
  15464. HM_ALWAYS,
  15465. };
  15466. enum HorizontalAlignment
  15467. {
  15468. HA_LEFT,
  15469. HA_CENTER,
  15470. HA_RIGHT,
  15471. HA_CUSTOM,
  15472. };
  15473. enum HttpRequestState
  15474. {
  15475. HTTP_INITIALIZING,
  15476. HTTP_ERROR,
  15477. HTTP_OPEN,
  15478. HTTP_CLOSED,
  15479. };
  15480. enum IKAlgorithm
  15481. {
  15482. ONE_BONE,
  15483. TWO_BONE,
  15484. FABRIK,
  15485. };
  15486. enum InterpMethod
  15487. {
  15488. IM_NONE,
  15489. IM_LINEAR,
  15490. IM_SPLINE,
  15491. };
  15492. enum InterpolationMode
  15493. {
  15494. BEZIER_CURVE,
  15495. CATMULL_ROM_CURVE,
  15496. LINEAR_CURVE,
  15497. CATMULL_ROM_FULL_CURVE,
  15498. };
  15499. enum Intersection
  15500. {
  15501. OUTSIDE,
  15502. INTERSECTS,
  15503. INSIDE,
  15504. };
  15505. enum JSONNumberType
  15506. {
  15507. JSONNT_NAN,
  15508. JSONNT_INT,
  15509. JSONNT_UINT,
  15510. JSONNT_FLOAT_DOUBLE,
  15511. };
  15512. enum JSONValueType
  15513. {
  15514. JSON_NULL,
  15515. JSON_BOOL,
  15516. JSON_NUMBER,
  15517. JSON_STRING,
  15518. JSON_ARRAY,
  15519. JSON_OBJECT,
  15520. };
  15521. enum LayoutMode
  15522. {
  15523. LM_FREE,
  15524. LM_HORIZONTAL,
  15525. LM_VERTICAL,
  15526. };
  15527. enum LightType
  15528. {
  15529. LIGHT_DIRECTIONAL,
  15530. LIGHT_SPOT,
  15531. LIGHT_POINT,
  15532. };
  15533. enum LoadMode
  15534. {
  15535. LOAD_RESOURCES_ONLY,
  15536. LOAD_SCENE,
  15537. LOAD_SCENE_AND_RESOURCES,
  15538. };
  15539. enum LoopMode2D
  15540. {
  15541. LM_DEFAULT,
  15542. LM_FORCE_LOOPED,
  15543. LM_FORCE_CLAMPED,
  15544. };
  15545. enum MouseMode
  15546. {
  15547. MM_ABSOLUTE,
  15548. MM_RELATIVE,
  15549. MM_WRAP,
  15550. MM_FREE,
  15551. };
  15552. enum NavigationPushiness
  15553. {
  15554. NAVIGATIONPUSHINESS_LOW,
  15555. NAVIGATIONPUSHINESS_MEDIUM,
  15556. NAVIGATIONPUSHINESS_HIGH,
  15557. NAVIGATIONPUSHINESS_NONE,
  15558. };
  15559. enum NavigationQuality
  15560. {
  15561. NAVIGATIONQUALITY_LOW,
  15562. NAVIGATIONQUALITY_MEDIUM,
  15563. NAVIGATIONQUALITY_HIGH,
  15564. };
  15565. enum NavmeshPartitionType
  15566. {
  15567. NAVMESH_PARTITION_WATERSHED,
  15568. NAVMESH_PARTITION_MONOTONE,
  15569. };
  15570. enum Orientation
  15571. {
  15572. O_HORIZONTAL,
  15573. O_VERTICAL,
  15574. };
  15575. enum Orientation2D
  15576. {
  15577. O_ORTHOGONAL,
  15578. O_ISOMETRIC,
  15579. O_STAGGERED,
  15580. O_HEXAGONAL,
  15581. };
  15582. enum PassLightingMode
  15583. {
  15584. LIGHTING_UNLIT,
  15585. LIGHTING_PERVERTEX,
  15586. LIGHTING_PERPIXEL,
  15587. };
  15588. enum PrimitiveType
  15589. {
  15590. TRIANGLE_LIST,
  15591. LINE_LIST,
  15592. POINT_LIST,
  15593. TRIANGLE_STRIP,
  15594. LINE_STRIP,
  15595. TRIANGLE_FAN,
  15596. };
  15597. enum RayQueryLevel
  15598. {
  15599. RAY_AABB,
  15600. RAY_OBB,
  15601. RAY_TRIANGLE,
  15602. RAY_TRIANGLE_UV,
  15603. };
  15604. enum RenderCommandSortMode
  15605. {
  15606. SORT_FRONTTOBACK,
  15607. SORT_BACKTOFRONT,
  15608. };
  15609. enum RenderCommandType
  15610. {
  15611. CMD_NONE,
  15612. CMD_CLEAR,
  15613. CMD_SCENEPASS,
  15614. CMD_QUAD,
  15615. CMD_FORWARDLIGHTS,
  15616. CMD_LIGHTVOLUMES,
  15617. CMD_RENDERUI,
  15618. CMD_SENDEVENT,
  15619. };
  15620. enum RenderSurfaceUpdateMode
  15621. {
  15622. SURFACE_MANUALUPDATE,
  15623. SURFACE_UPDATEVISIBLE,
  15624. SURFACE_UPDATEALWAYS,
  15625. };
  15626. enum RenderTargetSizeMode
  15627. {
  15628. SIZE_ABSOLUTE,
  15629. SIZE_VIEWPORTDIVISOR,
  15630. SIZE_VIEWPORTMULTIPLIER,
  15631. };
  15632. enum ShadowQuality
  15633. {
  15634. SHADOWQUALITY_SIMPLE_16BIT,
  15635. SHADOWQUALITY_SIMPLE_24BIT,
  15636. SHADOWQUALITY_PCF_16BIT,
  15637. SHADOWQUALITY_PCF_24BIT,
  15638. SHADOWQUALITY_VSM,
  15639. SHADOWQUALITY_BLUR_VSM,
  15640. };
  15641. enum ShapeType
  15642. {
  15643. SHAPE_BOX,
  15644. SHAPE_SPHERE,
  15645. SHAPE_STATICPLANE,
  15646. SHAPE_CYLINDER,
  15647. SHAPE_CAPSULE,
  15648. SHAPE_CONE,
  15649. SHAPE_TRIANGLEMESH,
  15650. SHAPE_CONVEXHULL,
  15651. SHAPE_TERRAIN,
  15652. };
  15653. enum TextEffect
  15654. {
  15655. TE_NONE,
  15656. TE_SHADOW,
  15657. TE_STROKE,
  15658. };
  15659. enum TextureAddressMode
  15660. {
  15661. ADDRESS_WRAP,
  15662. ADDRESS_MIRROR,
  15663. ADDRESS_CLAMP,
  15664. ADDRESS_BORDER,
  15665. };
  15666. enum TextureCoordinate
  15667. {
  15668. COORD_U,
  15669. COORD_V,
  15670. COORD_W,
  15671. };
  15672. enum TextureFilterMode
  15673. {
  15674. FILTER_NEAREST,
  15675. FILTER_BILINEAR,
  15676. FILTER_TRILINEAR,
  15677. FILTER_ANISOTROPIC,
  15678. FILTER_NEAREST_ANISOTROPIC,
  15679. FILTER_DEFAULT,
  15680. };
  15681. enum TextureUnit
  15682. {
  15683. TU_DIFFUSE,
  15684. TU_ALBEDOBUFFER,
  15685. TU_NORMAL,
  15686. TU_NORMALBUFFER,
  15687. TU_SPECULAR,
  15688. TU_EMISSIVE,
  15689. TU_ENVIRONMENT,
  15690. TU_LIGHTRAMP,
  15691. TU_LIGHTSHAPE,
  15692. TU_SHADOWMAP,
  15693. TU_CUSTOM1,
  15694. TU_CUSTOM2,
  15695. TU_VOLUMEMAP,
  15696. TU_FACESELECT,
  15697. TU_INDIRECTION,
  15698. TU_DEPTHBUFFER,
  15699. TU_LIGHTBUFFER,
  15700. TU_ZONE,
  15701. MAX_MATERIAL_TEXTURE_UNITS,
  15702. MAX_TEXTURE_UNITS,
  15703. };
  15704. enum TextureUsage
  15705. {
  15706. TEXTURE_STATIC,
  15707. TEXTURE_DYNAMIC,
  15708. TEXTURE_RENDERTARGET,
  15709. TEXTURE_DEPTHSTENCIL,
  15710. };
  15711. enum TileMapLayerType2D
  15712. {
  15713. LT_TILE_LAYER,
  15714. LT_OBJECT_GROUP,
  15715. LT_IMAGE_LAYER,
  15716. LT_INVALID,
  15717. };
  15718. enum TileObjectType2D
  15719. {
  15720. OT_RECTANGLE,
  15721. OT_ELLIPSE,
  15722. OT_POLYGON,
  15723. OT_POLYLINE,
  15724. OT_TILE,
  15725. OT_INVALID,
  15726. };
  15727. enum TrailType
  15728. {
  15729. TT_FACE_CAMERA,
  15730. TT_BONE,
  15731. };
  15732. enum TransformSpace
  15733. {
  15734. TS_LOCAL,
  15735. TS_PARENT,
  15736. TS_WORLD,
  15737. };
  15738. enum TraversalMode
  15739. {
  15740. TM_BREADTH_FIRST,
  15741. TM_DEPTH_FIRST,
  15742. };
  15743. enum VariantType
  15744. {
  15745. VAR_NONE,
  15746. VAR_INT,
  15747. VAR_BOOL,
  15748. VAR_FLOAT,
  15749. VAR_VECTOR2,
  15750. VAR_VECTOR3,
  15751. VAR_VECTOR4,
  15752. VAR_QUATERNION,
  15753. VAR_COLOR,
  15754. VAR_STRING,
  15755. VAR_BUFFER,
  15756. VAR_VOIDPTR,
  15757. VAR_RESOURCEREF,
  15758. VAR_RESOURCEREFLIST,
  15759. VAR_VARIANTVECTOR,
  15760. VAR_VARIANTMAP,
  15761. VAR_INTRECT,
  15762. VAR_INTVECTOR2,
  15763. VAR_INTVECTOR3,
  15764. VAR_PTR,
  15765. VAR_MATRIX3,
  15766. VAR_MATRIX3X4,
  15767. VAR_MATRIX4,
  15768. VAR_DOUBLE,
  15769. VAR_STRINGVECTOR,
  15770. VAR_RECT,
  15771. };
  15772. enum VertexElementSemantic
  15773. {
  15774. SEM_POSITION,
  15775. SEM_NORMAL,
  15776. SEM_BINORMAL,
  15777. SEM_TANGENT,
  15778. SEM_TEXCOORD,
  15779. SEM_COLOR,
  15780. SEM_BLENDWEIGHTS,
  15781. SEM_BLENDINDICES,
  15782. SEM_OBJECTINDEX,
  15783. MAX_VERTEX_ELEMENT_SEMANTICS,
  15784. };
  15785. enum VertexElementType
  15786. {
  15787. TYPE_INT,
  15788. TYPE_FLOAT,
  15789. TYPE_VECTOR2,
  15790. TYPE_VECTOR3,
  15791. TYPE_VECTOR4,
  15792. TYPE_UBYTE4,
  15793. TYPE_UBYTE4_NORM,
  15794. MAX_VERTEX_ELEMENT_TYPES,
  15795. };
  15796. enum VerticalAlignment
  15797. {
  15798. VA_TOP,
  15799. VA_CENTER,
  15800. VA_BOTTOM,
  15801. VA_CUSTOM,
  15802. };
  15803. enum WrapMode
  15804. {
  15805. WM_LOOP,
  15806. WM_ONCE,
  15807. WM_CLAMP,
  15808. };
  15809. // Global functions
  15810. float Abs(float);
  15811. float Acos(float);
  15812. String AddTrailingSlash(const String&);
  15813. float Asin(float);
  15814. float Atan(float);
  15815. float Atan2(float, float);
  15816. float Ceil(float);
  15817. int CeilToInt(float);
  15818. float Clamp(float, float, float);
  15819. int Clamp(int, int, int);
  15820. void ClearDelayedExecute(const String& = String ( ));
  15821. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  15822. float Cos(float);
  15823. uint CountSetBits(uint);
  15824. Object CreateObject(const String&);
  15825. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  15826. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  15827. bool Equals(float, float);
  15828. void ErrorDialog(const String&, const String&);
  15829. float Floor(float);
  15830. int FloorToInt(float);
  15831. float Fract(float);
  15832. uint GetAlphaFormat();
  15833. Array<String> GetArguments();
  15834. String GetConsoleInput();
  15835. uint GetDepthStencilFormat();
  15836. Object GetEventSender();
  15837. String GetExtension(const String&, bool = true);
  15838. String GetFileName(const String&);
  15839. String GetFileNameAndExtension(const String&, bool = false);
  15840. String GetFileSizeString(uint64);
  15841. uint GetFloat16Format();
  15842. uint GetFloat32Format();
  15843. uint GetFormat(const String&);
  15844. Variant GetGlobalVar(const String&);
  15845. String GetHostName();
  15846. String GetInternalPath(const String&);
  15847. uint GetLinearDepthFormat();
  15848. String GetLoginName();
  15849. uint GetLuminanceAlphaFormat();
  15850. uint GetLuminanceFormat();
  15851. uint GetMaxBones();
  15852. String GetMiniDumpDir();
  15853. uint GetNumLogicalCPUs();
  15854. uint GetNumPhysicalCPUs();
  15855. String GetOSVersion();
  15856. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  15857. Array<String> GetObjectCategories();
  15858. Array<String> GetObjectsByCategory(const String&);
  15859. String GetParentPath(const String&);
  15860. String GetPath(const String&);
  15861. String GetPlatform();
  15862. uint GetRG16Format();
  15863. uint GetRGBA16Format();
  15864. uint GetRGBAFloat16Format();
  15865. uint GetRGBAFloat32Format();
  15866. uint GetRGBAFormat();
  15867. uint GetRGBFormat();
  15868. uint GetRGFloat16Format();
  15869. uint GetRGFloat32Format();
  15870. uint GetRandomSeed();
  15871. uint GetReadableDepthFormat();
  15872. String GetTextureUnitName(TextureUnit);
  15873. uint64 GetTotalMemory();
  15874. VariantType GetVariantTypeFromName(const String&);
  15875. String GetVariantTypeName(VariantType);
  15876. bool HasSubscribedToEvent(Object, const String&);
  15877. bool HasSubscribedToEvent(const String&);
  15878. float InverseLerp(float, float, float);
  15879. bool IsAbsolutePath(const String&);
  15880. bool IsAlpha(uint);
  15881. bool IsDigit(uint);
  15882. bool IsNaN(float);
  15883. bool IsPowerOfTwo(uint);
  15884. String Join(Array<String>&, const String&);
  15885. float Lerp(float, float, float);
  15886. float Ln(float);
  15887. uint LogBaseTwo(uint);
  15888. void MarkNetworkUpdate();
  15889. float Max(float, float);
  15890. int Max(int, int);
  15891. float Min(float, float);
  15892. int Min(int, int);
  15893. float Mod(float, float);
  15894. uint NextPowerOfTwo(uint);
  15895. void OpenConsoleWindow();
  15896. float Pow(float, float);
  15897. void Print(bool, bool = false);
  15898. void Print(const String&, bool = false);
  15899. void Print(const Variant&, bool = false);
  15900. void Print(float, bool = false);
  15901. void Print(int, bool = false);
  15902. void Print(int64, bool = false);
  15903. void Print(uint, bool = false);
  15904. void Print(uint64, bool = false);
  15905. void PrintCallStack(bool = false);
  15906. float Random();
  15907. float Random(float);
  15908. float Random(float, float);
  15909. int RandomInt();
  15910. int RandomInt(int);
  15911. int RandomInt(int, int);
  15912. float RandomNormal(float, float);
  15913. void RegisterEventName(const String&);
  15914. void Remove();
  15915. String RemoveTrailingSlash(const String&);
  15916. String ReplaceExtension(const String&, const String&);
  15917. float Round(float);
  15918. int RoundToInt(float);
  15919. uint SDBMHash(uint, uint8);
  15920. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15921. void SetGlobalVar(const String&, Variant&);
  15922. void SetMiniDumpDir(const String&);
  15923. void SetRandomSeed(uint);
  15924. float Sign(float);
  15925. float Sin(float);
  15926. float SmoothStep(float, float, float);
  15927. float Sqrt(float);
  15928. float StableRandom(const Vector2&);
  15929. float StableRandom(const Vector3&);
  15930. float StableRandom(float);
  15931. const String& GetTypeName(StringHash);
  15932. void SubscribeToEvent(Object, const String&, const String&);
  15933. void SubscribeToEvent(const String&, const String&);
  15934. float Tan(float);
  15935. uint ToLower(uint);
  15936. String ToStringHex(int);
  15937. uint ToUpper(uint);
  15938. void UnsubscribeFromAllEvents();
  15939. void UnsubscribeFromAllEventsExcept(Array<String>);
  15940. void UnsubscribeFromEvent(Object, const String&);
  15941. void UnsubscribeFromEvent(const String&);
  15942. void UnsubscribeFromEvents(Object);
  15943. Vector2 VectorCeil(const Vector2&);
  15944. Vector3 VectorCeil(const Vector3&);
  15945. Vector4 VectorCeil(const Vector4&);
  15946. IntVector2 VectorCeilToInt(const Vector2&);
  15947. IntVector3 VectorCeilToInt(const Vector3&);
  15948. Vector2 VectorFloor(const Vector2&);
  15949. Vector3 VectorFloor(const Vector3&);
  15950. Vector4 VectorFloor(const Vector4&);
  15951. IntVector2 VectorFloorToInt(const Vector2&);
  15952. IntVector3 VectorFloorToInt(const Vector3&);
  15953. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  15954. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  15955. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  15956. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  15957. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  15958. Vector2 VectorMax(const Vector2&, const Vector2&);
  15959. Vector3 VectorMax(const Vector3&, const Vector3&);
  15960. Vector4 VectorMax(const Vector4&, const Vector4&);
  15961. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  15962. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  15963. Vector2 VectorMin(const Vector2&, const Vector2&);
  15964. Vector3 VectorMin(const Vector3&, const Vector3&);
  15965. Vector4 VectorMin(const Vector4&, const Vector4&);
  15966. Vector2 VectorRound(const Vector2&);
  15967. Vector3 VectorRound(const Vector3&);
  15968. Vector4 VectorRound(const Vector4&);
  15969. IntVector2 VectorRoundToInt(const Vector2&);
  15970. IntVector3 VectorRoundToInt(const Vector3&);
  15971. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  15972. // Global properties
  15973. DBAPI DBAPI;
  15974. Audio audio;
  15975. ResourceCache cache;
  15976. Console console;
  15977. Database database;
  15978. DebugHud debugHud;
  15979. DebugRenderer debugRenderer;
  15980. Engine engine;
  15981. FileSystem fileSystem;
  15982. VariantMap globalVars;
  15983. Graphics graphics;
  15984. Input input;
  15985. Localization localization;
  15986. Log log;
  15987. Network network;
  15988. Node node;
  15989. Octree octree;
  15990. PhysicsWorld physicsWorld;
  15991. PhysicsWorld2D physicsWorld2D;
  15992. Renderer renderer;
  15993. ResourceCache resourceCache;
  15994. Scene scene;
  15995. Script script;
  15996. ScriptFile scriptFile;
  15997. ScriptInstance self;
  15998. Time time;
  15999. UI ui;
  16000. // Global constants
  16001. uint AM_COMPONENTID;
  16002. uint AM_DEFAULT;
  16003. uint AM_FILE;
  16004. uint AM_FILEREADONLY;
  16005. uint AM_LATESTDATA;
  16006. uint AM_NET;
  16007. uint AM_NODEID;
  16008. uint AM_NODEIDVECTOR;
  16009. uint AM_NOEDIT;
  16010. Color BLACK;
  16011. Color BLUE;
  16012. uint8 CHANNEL_POSITION;
  16013. uint8 CHANNEL_ROTATION;
  16014. uint8 CHANNEL_SCALE;
  16015. uint CLEAR_COLOR;
  16016. uint CLEAR_DEPTH;
  16017. uint CLEAR_STENCIL;
  16018. int CONTROLLER_AXIS_LEFTX;
  16019. int CONTROLLER_AXIS_LEFTY;
  16020. int CONTROLLER_AXIS_RIGHTX;
  16021. int CONTROLLER_AXIS_RIGHTY;
  16022. int CONTROLLER_AXIS_TRIGGERLEFT;
  16023. int CONTROLLER_AXIS_TRIGGERRIGHT;
  16024. int CONTROLLER_BUTTON_A;
  16025. int CONTROLLER_BUTTON_B;
  16026. int CONTROLLER_BUTTON_BACK;
  16027. int CONTROLLER_BUTTON_DPAD_DOWN;
  16028. int CONTROLLER_BUTTON_DPAD_LEFT;
  16029. int CONTROLLER_BUTTON_DPAD_RIGHT;
  16030. int CONTROLLER_BUTTON_DPAD_UP;
  16031. int CONTROLLER_BUTTON_GUIDE;
  16032. int CONTROLLER_BUTTON_LEFTSHOULDER;
  16033. int CONTROLLER_BUTTON_LEFTSTICK;
  16034. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  16035. int CONTROLLER_BUTTON_RIGHTSTICK;
  16036. int CONTROLLER_BUTTON_START;
  16037. int CONTROLLER_BUTTON_X;
  16038. int CONTROLLER_BUTTON_Y;
  16039. Color CYAN;
  16040. uint DD_DISABLED;
  16041. uint DD_SOURCE;
  16042. uint DD_SOURCE_AND_TARGET;
  16043. uint DD_TARGET;
  16044. uint DEBUGHUD_SHOW_ALL;
  16045. uint DEBUGHUD_SHOW_EVENTPROFILER;
  16046. uint DEBUGHUD_SHOW_MEMORY;
  16047. uint DEBUGHUD_SHOW_MODE;
  16048. uint DEBUGHUD_SHOW_NONE;
  16049. uint DEBUGHUD_SHOW_PROFILER;
  16050. uint DEBUGHUD_SHOW_STATS;
  16051. uint DEFAULT_LIGHTMASK;
  16052. uint DEFAULT_VIEWMASK;
  16053. uint DRAWABLE_ANY;
  16054. uint DRAWABLE_GEOMETRY;
  16055. uint DRAWABLE_GEOMETRY2D;
  16056. uint DRAWABLE_LIGHT;
  16057. uint DRAWABLE_ZONE;
  16058. uint FIRST_LOCAL_ID;
  16059. uint FIRST_REPLICATED_ID;
  16060. Color GRAY;
  16061. Color GREEN;
  16062. int HAT_CENTER;
  16063. int HAT_DOWN;
  16064. int HAT_LEFT;
  16065. int HAT_RIGHT;
  16066. int HAT_UP;
  16067. int KEY_0;
  16068. int KEY_1;
  16069. int KEY_2;
  16070. int KEY_3;
  16071. int KEY_4;
  16072. int KEY_5;
  16073. int KEY_6;
  16074. int KEY_7;
  16075. int KEY_8;
  16076. int KEY_9;
  16077. int KEY_A;
  16078. int KEY_AC_BACK;
  16079. int KEY_AC_BOOKMARKS;
  16080. int KEY_AC_FORWARD;
  16081. int KEY_AC_HOME;
  16082. int KEY_AC_REFRESH;
  16083. int KEY_AC_SEARCH;
  16084. int KEY_AC_STOP;
  16085. int KEY_AGAIN;
  16086. int KEY_ALT;
  16087. int KEY_ALTERASE;
  16088. int KEY_AMPERSAND;
  16089. int KEY_APPLICATION;
  16090. int KEY_ASTERISK;
  16091. int KEY_AT;
  16092. int KEY_AUDIOMUTE;
  16093. int KEY_AUDIONEXT;
  16094. int KEY_AUDIOPLAY;
  16095. int KEY_AUDIOPREV;
  16096. int KEY_AUDIOSTOP;
  16097. int KEY_B;
  16098. int KEY_BACKQUOTE;
  16099. int KEY_BACKSLASH;
  16100. int KEY_BACKSPACE;
  16101. int KEY_BRIGHTNESSDOWN;
  16102. int KEY_BRIGHTNESSUP;
  16103. int KEY_C;
  16104. int KEY_CALCULATOR;
  16105. int KEY_CANCEL;
  16106. int KEY_CAPSLOCK;
  16107. int KEY_CARET;
  16108. int KEY_CLEAR;
  16109. int KEY_CLEARAGAIN;
  16110. int KEY_COLON;
  16111. int KEY_COMMA;
  16112. int KEY_COMPUTER;
  16113. int KEY_COPY;
  16114. int KEY_CRSEL;
  16115. int KEY_CTRL;
  16116. int KEY_CURRENCYSUBUNIT;
  16117. int KEY_CURRENCYUNIT;
  16118. int KEY_CUT;
  16119. int KEY_D;
  16120. int KEY_DECIMALSEPARATOR;
  16121. int KEY_DELETE;
  16122. int KEY_DISPLAYSWITCH;
  16123. int KEY_DOLLAR;
  16124. int KEY_DOWN;
  16125. int KEY_E;
  16126. int KEY_EJECT;
  16127. int KEY_END;
  16128. int KEY_EQUALS;
  16129. int KEY_ESCAPE;
  16130. int KEY_EXCLAIM;
  16131. int KEY_EXSEL;
  16132. int KEY_F;
  16133. int KEY_F1;
  16134. int KEY_F10;
  16135. int KEY_F11;
  16136. int KEY_F12;
  16137. int KEY_F13;
  16138. int KEY_F14;
  16139. int KEY_F15;
  16140. int KEY_F16;
  16141. int KEY_F17;
  16142. int KEY_F18;
  16143. int KEY_F19;
  16144. int KEY_F2;
  16145. int KEY_F20;
  16146. int KEY_F21;
  16147. int KEY_F22;
  16148. int KEY_F23;
  16149. int KEY_F24;
  16150. int KEY_F3;
  16151. int KEY_F4;
  16152. int KEY_F5;
  16153. int KEY_F6;
  16154. int KEY_F7;
  16155. int KEY_F8;
  16156. int KEY_F9;
  16157. int KEY_FIND;
  16158. int KEY_G;
  16159. int KEY_GREATER;
  16160. int KEY_GUI;
  16161. int KEY_H;
  16162. int KEY_HASH;
  16163. int KEY_HELP;
  16164. int KEY_HOME;
  16165. int KEY_I;
  16166. int KEY_INSERT;
  16167. int KEY_J;
  16168. int KEY_K;
  16169. int KEY_KBDILLUMDOWN;
  16170. int KEY_KBDILLUMTOGGLE;
  16171. int KEY_KBDILLUMUP;
  16172. int KEY_KP_0;
  16173. int KEY_KP_00;
  16174. int KEY_KP_000;
  16175. int KEY_KP_1;
  16176. int KEY_KP_2;
  16177. int KEY_KP_3;
  16178. int KEY_KP_4;
  16179. int KEY_KP_5;
  16180. int KEY_KP_6;
  16181. int KEY_KP_7;
  16182. int KEY_KP_8;
  16183. int KEY_KP_9;
  16184. int KEY_KP_A;
  16185. int KEY_KP_AMPERSAND;
  16186. int KEY_KP_AT;
  16187. int KEY_KP_B;
  16188. int KEY_KP_BACKSPACE;
  16189. int KEY_KP_BINARY;
  16190. int KEY_KP_C;
  16191. int KEY_KP_CLEAR;
  16192. int KEY_KP_CLEARENTRY;
  16193. int KEY_KP_COLON;
  16194. int KEY_KP_COMMA;
  16195. int KEY_KP_D;
  16196. int KEY_KP_DBLAMPERSAND;
  16197. int KEY_KP_DBLVERTICALBAR;
  16198. int KEY_KP_DECIMAL;
  16199. int KEY_KP_DIVIDE;
  16200. int KEY_KP_E;
  16201. int KEY_KP_ENTER;
  16202. int KEY_KP_EQUALS;
  16203. int KEY_KP_EQUALSAS400;
  16204. int KEY_KP_EXCLAM;
  16205. int KEY_KP_F;
  16206. int KEY_KP_GREATER;
  16207. int KEY_KP_HASH;
  16208. int KEY_KP_HEXADECIMAL;
  16209. int KEY_KP_LEFTBRACE;
  16210. int KEY_KP_LEFTPAREN;
  16211. int KEY_KP_LESS;
  16212. int KEY_KP_MEMADD;
  16213. int KEY_KP_MEMCLEAR;
  16214. int KEY_KP_MEMDIVIDE;
  16215. int KEY_KP_MEMMULTIPLY;
  16216. int KEY_KP_MEMRECALL;
  16217. int KEY_KP_MEMSTORE;
  16218. int KEY_KP_MEMSUBTRACT;
  16219. int KEY_KP_MINUS;
  16220. int KEY_KP_MULTIPLY;
  16221. int KEY_KP_OCTAL;
  16222. int KEY_KP_PERCENT;
  16223. int KEY_KP_PERIOD;
  16224. int KEY_KP_PLUS;
  16225. int KEY_KP_PLUSMINUS;
  16226. int KEY_KP_POWER;
  16227. int KEY_KP_RIGHTBRACE;
  16228. int KEY_KP_RIGHTPAREN;
  16229. int KEY_KP_SPACE;
  16230. int KEY_KP_TAB;
  16231. int KEY_KP_VERTICALBAR;
  16232. int KEY_KP_XOR;
  16233. int KEY_L;
  16234. int KEY_LALT;
  16235. int KEY_LCTRL;
  16236. int KEY_LEFT;
  16237. int KEY_LEFTBRACKET;
  16238. int KEY_LEFTPAREN;
  16239. int KEY_LESS;
  16240. int KEY_LGUI;
  16241. int KEY_LSHIFT;
  16242. int KEY_M;
  16243. int KEY_MAIL;
  16244. int KEY_MEDIASELECT;
  16245. int KEY_MENU;
  16246. int KEY_MINUS;
  16247. int KEY_MODE;
  16248. int KEY_MUTE;
  16249. int KEY_N;
  16250. int KEY_NUMLOCKCLEAR;
  16251. int KEY_O;
  16252. int KEY_OPER;
  16253. int KEY_OUT;
  16254. int KEY_P;
  16255. int KEY_PAGEDOWN;
  16256. int KEY_PAGEUP;
  16257. int KEY_PASTE;
  16258. int KEY_PAUSE;
  16259. int KEY_PERCENT;
  16260. int KEY_PERIOD;
  16261. int KEY_PLUS;
  16262. int KEY_POWER;
  16263. int KEY_PRINTSCREEN;
  16264. int KEY_PRIOR;
  16265. int KEY_Q;
  16266. int KEY_QUESTION;
  16267. int KEY_QUOTE;
  16268. int KEY_QUOTEDBL;
  16269. int KEY_R;
  16270. int KEY_RALT;
  16271. int KEY_RCTRL;
  16272. int KEY_RETURN;
  16273. int KEY_RETURN2;
  16274. int KEY_RGUI;
  16275. int KEY_RIGHT;
  16276. int KEY_RIGHTBRACKET;
  16277. int KEY_RIGHTPAREN;
  16278. int KEY_RSHIFT;
  16279. int KEY_S;
  16280. int KEY_SCROLLLOCK;
  16281. int KEY_SELECT;
  16282. int KEY_SEMICOLON;
  16283. int KEY_SEPARATOR;
  16284. int KEY_SHIFT;
  16285. int KEY_SLASH;
  16286. int KEY_SLEEP;
  16287. int KEY_SPACE;
  16288. int KEY_STOP;
  16289. int KEY_SYSREQ;
  16290. int KEY_T;
  16291. int KEY_TAB;
  16292. int KEY_THOUSANDSSEPARATOR;
  16293. int KEY_U;
  16294. int KEY_UNDERSCORE;
  16295. int KEY_UNDO;
  16296. int KEY_UNKNOWN;
  16297. int KEY_UP;
  16298. int KEY_V;
  16299. int KEY_VOLUMEDOWN;
  16300. int KEY_VOLUMEUP;
  16301. int KEY_W;
  16302. int KEY_WWW;
  16303. int KEY_X;
  16304. int KEY_Y;
  16305. int KEY_Z;
  16306. uint LAST_LOCAL_ID;
  16307. uint LAST_REPLICATED_ID;
  16308. int LOG_DEBUG;
  16309. int LOG_ERROR;
  16310. int LOG_INFO;
  16311. int LOG_NONE;
  16312. int LOG_TRACE;
  16313. int LOG_WARNING;
  16314. Color MAGENTA;
  16315. uint MASK_BLENDINDICES;
  16316. uint MASK_BLENDWEIGHTS;
  16317. uint MASK_COLOR;
  16318. uint MASK_CUBETEXCOORD1;
  16319. uint MASK_CUBETEXCOORD2;
  16320. uint MASK_INSTANCEMATRIX1;
  16321. uint MASK_INSTANCEMATRIX2;
  16322. uint MASK_INSTANCEMATRIX3;
  16323. uint MASK_NONE;
  16324. uint MASK_NORMAL;
  16325. uint MASK_OBJECTINDEX;
  16326. uint MASK_POSITION;
  16327. uint MASK_TANGENT;
  16328. uint MASK_TEXCOORD1;
  16329. uint MASK_TEXCOORD2;
  16330. int MOUSEB_LEFT;
  16331. int MOUSEB_MIDDLE;
  16332. int MOUSEB_RIGHT;
  16333. float M_DEGTORAD;
  16334. float M_DEGTORAD_2;
  16335. float M_EPSILON;
  16336. float M_HALF_PI;
  16337. float M_INFINITY;
  16338. float M_LARGE_EPSILON;
  16339. float M_LARGE_VALUE;
  16340. int M_MAX_INT;
  16341. uint M_MAX_UNSIGNED;
  16342. int M_MIN_INT;
  16343. uint M_MIN_UNSIGNED;
  16344. float M_PI;
  16345. float M_RADTODEG;
  16346. uint NPOS;
  16347. float PIXEL_SIZE;
  16348. int QUALITY_HIGH;
  16349. int QUALITY_LOW;
  16350. int QUALITY_MAX;
  16351. int QUALITY_MEDIUM;
  16352. int QUAL_ALT;
  16353. int QUAL_ANY;
  16354. int QUAL_CTRL;
  16355. int QUAL_SHIFT;
  16356. Color RED;
  16357. int SCANCODE_0;
  16358. int SCANCODE_1;
  16359. int SCANCODE_2;
  16360. int SCANCODE_3;
  16361. int SCANCODE_4;
  16362. int SCANCODE_5;
  16363. int SCANCODE_6;
  16364. int SCANCODE_7;
  16365. int SCANCODE_8;
  16366. int SCANCODE_9;
  16367. int SCANCODE_A;
  16368. int SCANCODE_AC_BACK;
  16369. int SCANCODE_AC_BOOKMARKS;
  16370. int SCANCODE_AC_FORWARD;
  16371. int SCANCODE_AC_HOME;
  16372. int SCANCODE_AC_REFRESH;
  16373. int SCANCODE_AC_SEARCH;
  16374. int SCANCODE_AC_STOP;
  16375. int SCANCODE_AGAIN;
  16376. int SCANCODE_ALT;
  16377. int SCANCODE_ALTERASE;
  16378. int SCANCODE_APOSTROPHE;
  16379. int SCANCODE_APP1;
  16380. int SCANCODE_APP2;
  16381. int SCANCODE_APPLICATION;
  16382. int SCANCODE_AUDIOMUTE;
  16383. int SCANCODE_AUDIONEXT;
  16384. int SCANCODE_AUDIOPLAY;
  16385. int SCANCODE_AUDIOPREV;
  16386. int SCANCODE_AUDIOSTOP;
  16387. int SCANCODE_B;
  16388. int SCANCODE_BACKSLASH;
  16389. int SCANCODE_BACKSPACE;
  16390. int SCANCODE_BRIGHTNESSDOWN;
  16391. int SCANCODE_BRIGHTNESSUP;
  16392. int SCANCODE_C;
  16393. int SCANCODE_CALCULATOR;
  16394. int SCANCODE_CANCEL;
  16395. int SCANCODE_CAPSLOCK;
  16396. int SCANCODE_CLEAR;
  16397. int SCANCODE_CLEARAGAIN;
  16398. int SCANCODE_COMMA;
  16399. int SCANCODE_COMPUTER;
  16400. int SCANCODE_COPY;
  16401. int SCANCODE_CRSEL;
  16402. int SCANCODE_CTRL;
  16403. int SCANCODE_CURRENCYSUBUNIT;
  16404. int SCANCODE_CURRENCYUNIT;
  16405. int SCANCODE_CUT;
  16406. int SCANCODE_D;
  16407. int SCANCODE_DECIMALSEPARATOR;
  16408. int SCANCODE_DELETE;
  16409. int SCANCODE_DISPLAYSWITCH;
  16410. int SCANCODE_DOWN;
  16411. int SCANCODE_E;
  16412. int SCANCODE_EJECT;
  16413. int SCANCODE_END;
  16414. int SCANCODE_EQUALS;
  16415. int SCANCODE_ESCAPE;
  16416. int SCANCODE_EXECUTE;
  16417. int SCANCODE_EXSEL;
  16418. int SCANCODE_F;
  16419. int SCANCODE_F1;
  16420. int SCANCODE_F10;
  16421. int SCANCODE_F11;
  16422. int SCANCODE_F12;
  16423. int SCANCODE_F13;
  16424. int SCANCODE_F14;
  16425. int SCANCODE_F15;
  16426. int SCANCODE_F16;
  16427. int SCANCODE_F17;
  16428. int SCANCODE_F18;
  16429. int SCANCODE_F19;
  16430. int SCANCODE_F2;
  16431. int SCANCODE_F20;
  16432. int SCANCODE_F21;
  16433. int SCANCODE_F22;
  16434. int SCANCODE_F23;
  16435. int SCANCODE_F24;
  16436. int SCANCODE_F3;
  16437. int SCANCODE_F4;
  16438. int SCANCODE_F5;
  16439. int SCANCODE_F6;
  16440. int SCANCODE_F7;
  16441. int SCANCODE_F8;
  16442. int SCANCODE_F9;
  16443. int SCANCODE_FIND;
  16444. int SCANCODE_G;
  16445. int SCANCODE_GRAVE;
  16446. int SCANCODE_GUI;
  16447. int SCANCODE_H;
  16448. int SCANCODE_HELP;
  16449. int SCANCODE_HOME;
  16450. int SCANCODE_I;
  16451. int SCANCODE_INSERT;
  16452. int SCANCODE_INTERNATIONAL1;
  16453. int SCANCODE_INTERNATIONAL2;
  16454. int SCANCODE_INTERNATIONAL3;
  16455. int SCANCODE_INTERNATIONAL4;
  16456. int SCANCODE_INTERNATIONAL5;
  16457. int SCANCODE_INTERNATIONAL6;
  16458. int SCANCODE_INTERNATIONAL7;
  16459. int SCANCODE_INTERNATIONAL8;
  16460. int SCANCODE_INTERNATIONAL9;
  16461. int SCANCODE_J;
  16462. int SCANCODE_K;
  16463. int SCANCODE_KBDILLUMDOWN;
  16464. int SCANCODE_KBDILLUMTOGGLE;
  16465. int SCANCODE_KBDILLUMUP;
  16466. int SCANCODE_KP_0;
  16467. int SCANCODE_KP_00;
  16468. int SCANCODE_KP_000;
  16469. int SCANCODE_KP_1;
  16470. int SCANCODE_KP_2;
  16471. int SCANCODE_KP_3;
  16472. int SCANCODE_KP_4;
  16473. int SCANCODE_KP_5;
  16474. int SCANCODE_KP_6;
  16475. int SCANCODE_KP_7;
  16476. int SCANCODE_KP_8;
  16477. int SCANCODE_KP_9;
  16478. int SCANCODE_KP_A;
  16479. int SCANCODE_KP_AMPERSAND;
  16480. int SCANCODE_KP_AT;
  16481. int SCANCODE_KP_B;
  16482. int SCANCODE_KP_BACKSPACE;
  16483. int SCANCODE_KP_BINARY;
  16484. int SCANCODE_KP_C;
  16485. int SCANCODE_KP_CLEAR;
  16486. int SCANCODE_KP_CLEARENTRY;
  16487. int SCANCODE_KP_COLON;
  16488. int SCANCODE_KP_COMMA;
  16489. int SCANCODE_KP_D;
  16490. int SCANCODE_KP_DBLAMPERSAND;
  16491. int SCANCODE_KP_DBLVERTICALBAR;
  16492. int SCANCODE_KP_DECIMAL;
  16493. int SCANCODE_KP_DIVIDE;
  16494. int SCANCODE_KP_E;
  16495. int SCANCODE_KP_ENTER;
  16496. int SCANCODE_KP_EQUALS;
  16497. int SCANCODE_KP_EQUALSAS400;
  16498. int SCANCODE_KP_EXCLAM;
  16499. int SCANCODE_KP_F;
  16500. int SCANCODE_KP_GREATER;
  16501. int SCANCODE_KP_HASH;
  16502. int SCANCODE_KP_HEXADECIMAL;
  16503. int SCANCODE_KP_LEFTBRACE;
  16504. int SCANCODE_KP_LEFTPAREN;
  16505. int SCANCODE_KP_LESS;
  16506. int SCANCODE_KP_MEMADD;
  16507. int SCANCODE_KP_MEMCLEAR;
  16508. int SCANCODE_KP_MEMDIVIDE;
  16509. int SCANCODE_KP_MEMMULTIPLY;
  16510. int SCANCODE_KP_MEMRECALL;
  16511. int SCANCODE_KP_MEMSTORE;
  16512. int SCANCODE_KP_MEMSUBTRACT;
  16513. int SCANCODE_KP_MINUS;
  16514. int SCANCODE_KP_MULTIPLY;
  16515. int SCANCODE_KP_OCTAL;
  16516. int SCANCODE_KP_PERCENT;
  16517. int SCANCODE_KP_PERIOD;
  16518. int SCANCODE_KP_PLUS;
  16519. int SCANCODE_KP_PLUSMINUS;
  16520. int SCANCODE_KP_POWER;
  16521. int SCANCODE_KP_RIGHTBRACE;
  16522. int SCANCODE_KP_RIGHTPAREN;
  16523. int SCANCODE_KP_SPACE;
  16524. int SCANCODE_KP_TAB;
  16525. int SCANCODE_KP_VERTICALBAR;
  16526. int SCANCODE_KP_XOR;
  16527. int SCANCODE_L;
  16528. int SCANCODE_LALT;
  16529. int SCANCODE_LANG1;
  16530. int SCANCODE_LANG2;
  16531. int SCANCODE_LANG3;
  16532. int SCANCODE_LANG4;
  16533. int SCANCODE_LANG5;
  16534. int SCANCODE_LANG6;
  16535. int SCANCODE_LANG7;
  16536. int SCANCODE_LANG8;
  16537. int SCANCODE_LANG9;
  16538. int SCANCODE_LCTRL;
  16539. int SCANCODE_LEFT;
  16540. int SCANCODE_LEFTBRACKET;
  16541. int SCANCODE_LGUI;
  16542. int SCANCODE_LSHIFT;
  16543. int SCANCODE_M;
  16544. int SCANCODE_MAIL;
  16545. int SCANCODE_MEDIASELECT;
  16546. int SCANCODE_MENU;
  16547. int SCANCODE_MINUS;
  16548. int SCANCODE_MODE;
  16549. int SCANCODE_MUTE;
  16550. int SCANCODE_N;
  16551. int SCANCODE_NONUSBACKSLASH;
  16552. int SCANCODE_NONUSHASH;
  16553. int SCANCODE_NUMLOCKCLEAR;
  16554. int SCANCODE_O;
  16555. int SCANCODE_OPER;
  16556. int SCANCODE_OUT;
  16557. int SCANCODE_P;
  16558. int SCANCODE_PAGEDOWN;
  16559. int SCANCODE_PAGEUP;
  16560. int SCANCODE_PASTE;
  16561. int SCANCODE_PAUSE;
  16562. int SCANCODE_PERIOD;
  16563. int SCANCODE_POWER;
  16564. int SCANCODE_PRINTSCREEN;
  16565. int SCANCODE_PRIOR;
  16566. int SCANCODE_Q;
  16567. int SCANCODE_R;
  16568. int SCANCODE_RALT;
  16569. int SCANCODE_RCTRL;
  16570. int SCANCODE_RETURN;
  16571. int SCANCODE_RETURN2;
  16572. int SCANCODE_RGUI;
  16573. int SCANCODE_RIGHT;
  16574. int SCANCODE_RIGHTBRACKET;
  16575. int SCANCODE_RSHIFT;
  16576. int SCANCODE_S;
  16577. int SCANCODE_SCROLLLOCK;
  16578. int SCANCODE_SELECT;
  16579. int SCANCODE_SEMICOLON;
  16580. int SCANCODE_SEPARATOR;
  16581. int SCANCODE_SHIFT;
  16582. int SCANCODE_SLASH;
  16583. int SCANCODE_SLEEP;
  16584. int SCANCODE_SPACE;
  16585. int SCANCODE_STOP;
  16586. int SCANCODE_SYSREQ;
  16587. int SCANCODE_T;
  16588. int SCANCODE_TAB;
  16589. int SCANCODE_THOUSANDSSEPARATOR;
  16590. int SCANCODE_U;
  16591. int SCANCODE_UNDO;
  16592. int SCANCODE_UNKNOWN;
  16593. int SCANCODE_UP;
  16594. int SCANCODE_V;
  16595. int SCANCODE_VOLUMEDOWN;
  16596. int SCANCODE_VOLUMEUP;
  16597. int SCANCODE_W;
  16598. int SCANCODE_WWW;
  16599. int SCANCODE_X;
  16600. int SCANCODE_Y;
  16601. int SCANCODE_Z;
  16602. uint SCAN_DIRS;
  16603. uint SCAN_FILES;
  16604. uint SCAN_HIDDEN;
  16605. String SOUND_AMBIENT;
  16606. String SOUND_EFFECT;
  16607. String SOUND_MASTER;
  16608. String SOUND_MUSIC;
  16609. String SOUND_VOICE;
  16610. Color TRANSPARENT;
  16611. uint VO_DISABLE_OCCLUSION;
  16612. uint VO_DISABLE_SHADOWS;
  16613. uint VO_LOW_MATERIAL_QUALITY;
  16614. uint VO_NONE;
  16615. Color WHITE;
  16616. Color YELLOW;