AngelScriptAPI.h 419 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427
  1. // Script API header intended to be 'force included' in IDE for AngelScript content assist / code completion
  2. #define int8 signed char
  3. #define int16 signed short
  4. #define int64 long
  5. #define uint8 unsigned char
  6. #define uint16 unsigned short
  7. #define uint64 unsigned long
  8. #define null 0
  9. #define in
  10. #define out
  11. #define inout
  12. #define is ==
  13. #define interface struct
  14. #define class struct
  15. #define cast reinterpret_cast
  16. #define mixin
  17. #define funcdef
  18. // Classes
  19. class Animatable
  20. {
  21. public:
  22. // Methods:
  23. void ApplyAttributes();
  24. Variant GetAttribute(const String&) const;
  25. ValueAnimation GetAttributeAnimation(const String&) const;
  26. float GetAttributeAnimationSpeed(const String&) const;
  27. float GetAttributeAnimationTime(const String&) const;
  28. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29. Variant GetAttributeDefault(const String&) const;
  30. bool GetInterceptNetworkUpdate(const String&) const;
  31. bool HasSubscribedToEvent(Object, const String&);
  32. bool HasSubscribedToEvent(const String&);
  33. bool Load(File);
  34. bool Load(VectorBuffer&);
  35. bool LoadJSON(const JSONValue&);
  36. bool LoadXML(const XMLElement&);
  37. void MarkNetworkUpdate() const;
  38. void RemoveAttributeAnimation(const String&);
  39. void RemoveInstanceDefault();
  40. void RemoveObjectAnimation();
  41. void ResetToDefault();
  42. bool Save(File) const;
  43. bool Save(VectorBuffer&) const;
  44. bool SaveJSON(JSONValue&) const;
  45. bool SaveXML(XMLElement&) const;
  46. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  47. void SetAnimationTime(float);
  48. bool SetAttribute(const String&, const Variant&);
  49. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  50. void SetAttributeAnimationSpeed(const String&, float);
  51. void SetAttributeAnimationTime(const String&, float);
  52. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  53. void SetInterceptNetworkUpdate(const String&, bool);
  54. // Properties:
  55. bool animationEnabled;
  56. /* readonly */
  57. Array<Variant> attributeDefaults;
  58. /* readonly */
  59. Array<AttributeInfo> attributeInfos;
  60. Array<Variant> attributes;
  61. /* readonly */
  62. String category;
  63. /* readonly */
  64. uint numAttributes;
  65. ObjectAnimation objectAnimation;
  66. /* readonly */
  67. int refs;
  68. bool temporary;
  69. /* readonly */
  70. StringHash type;
  71. /* readonly */
  72. String typeName;
  73. /* readonly */
  74. int weakRefs;
  75. };
  76. class AnimatedModel
  77. {
  78. public:
  79. // Methods:
  80. AnimationState AddAnimationState(Animation);
  81. void ApplyAttributes();
  82. void ApplyMaterialList(const String& = String ( ));
  83. void DrawDebugGeometry(DebugRenderer, bool);
  84. AnimationState GetAnimationState(Animation) const;
  85. AnimationState GetAnimationState(uint) const;
  86. Variant GetAttribute(const String&) const;
  87. ValueAnimation GetAttributeAnimation(const String&) const;
  88. float GetAttributeAnimationSpeed(const String&) const;
  89. float GetAttributeAnimationTime(const String&) const;
  90. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  91. Variant GetAttributeDefault(const String&) const;
  92. bool GetInterceptNetworkUpdate(const String&) const;
  93. float GetMorphWeight(uint) const;
  94. bool HasSubscribedToEvent(Object, const String&);
  95. bool HasSubscribedToEvent(const String&);
  96. bool IsInView(Camera) const;
  97. bool Load(File);
  98. bool Load(VectorBuffer&);
  99. bool LoadJSON(const JSONValue&);
  100. bool LoadXML(const XMLElement&);
  101. void MarkNetworkUpdate() const;
  102. void Remove();
  103. void RemoveAllAnimationStates();
  104. void RemoveAnimationState(Animation);
  105. void RemoveAnimationState(AnimationState);
  106. void RemoveAnimationState(const String&);
  107. void RemoveAnimationState(uint);
  108. void RemoveAttributeAnimation(const String&);
  109. void RemoveInstanceDefault();
  110. void RemoveObjectAnimation();
  111. void ResetMorphWeights();
  112. void ResetToDefault();
  113. bool Save(File) const;
  114. bool Save(VectorBuffer&) const;
  115. bool SaveJSON(JSONValue&) const;
  116. bool SaveXML(XMLElement&) const;
  117. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  118. void SetAnimationTime(float);
  119. bool SetAttribute(const String&, const Variant&);
  120. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  121. void SetAttributeAnimationSpeed(const String&, float);
  122. void SetAttributeAnimationTime(const String&, float);
  123. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  124. void SetInterceptNetworkUpdate(const String&, bool);
  125. void SetMorphWeight(uint, float);
  126. void UpdateBoneBoundingBox();
  127. // Properties:
  128. bool animationEnabled;
  129. float animationLodBias;
  130. /* readonly */
  131. Array<AnimationState> animationStates;
  132. /* readonly */
  133. Array<Variant> attributeDefaults;
  134. /* readonly */
  135. Array<AttributeInfo> attributeInfos;
  136. Array<Variant> attributes;
  137. /* readonly */
  138. BoundingBox boundingBox;
  139. bool castShadows;
  140. /* readonly */
  141. String category;
  142. float drawDistance;
  143. bool enabled;
  144. /* readonly */
  145. bool enabledEffective;
  146. /* readonly */
  147. uint id;
  148. /* readonly */
  149. bool inView;
  150. uint lightMask;
  151. float lodBias;
  152. Material material;
  153. Array<Material> materials;
  154. uint maxLights;
  155. Model model;
  156. /* readonly */
  157. Array<String> morphNames;
  158. Array<float> morphWeights;
  159. /* readonly */
  160. Node node;
  161. /* readonly */
  162. uint numAnimationStates;
  163. /* readonly */
  164. uint numAttributes;
  165. /* readonly */
  166. uint numGeometries;
  167. /* readonly */
  168. uint numMorphs;
  169. ObjectAnimation objectAnimation;
  170. bool occludee;
  171. bool occluder;
  172. /* readonly */
  173. int refs;
  174. /* readonly */
  175. bool replicated;
  176. float shadowDistance;
  177. uint shadowMask;
  178. /* readonly */
  179. Skeleton skeleton;
  180. bool temporary;
  181. /* readonly */
  182. StringHash type;
  183. /* readonly */
  184. String typeName;
  185. bool updateInvisible;
  186. uint viewMask;
  187. /* readonly */
  188. int weakRefs;
  189. /* readonly */
  190. BoundingBox worldBoundingBox;
  191. /* readonly */
  192. Zone zone;
  193. uint zoneMask;
  194. };
  195. class AnimatedSprite2D
  196. {
  197. public:
  198. // Methods:
  199. void ApplyAttributes();
  200. void DrawDebugGeometry(DebugRenderer, bool);
  201. Variant GetAttribute(const String&) const;
  202. ValueAnimation GetAttributeAnimation(const String&) const;
  203. float GetAttributeAnimationSpeed(const String&) const;
  204. float GetAttributeAnimationTime(const String&) const;
  205. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  206. Variant GetAttributeDefault(const String&) const;
  207. bool GetInterceptNetworkUpdate(const String&) const;
  208. bool HasSubscribedToEvent(Object, const String&);
  209. bool HasSubscribedToEvent(const String&);
  210. bool IsInView(Camera) const;
  211. bool Load(File);
  212. bool Load(VectorBuffer&);
  213. bool LoadJSON(const JSONValue&);
  214. bool LoadXML(const XMLElement&);
  215. void MarkNetworkUpdate() const;
  216. void Remove();
  217. void RemoveAttributeAnimation(const String&);
  218. void RemoveInstanceDefault();
  219. void RemoveObjectAnimation();
  220. void ResetToDefault();
  221. bool Save(File) const;
  222. bool Save(VectorBuffer&) const;
  223. bool SaveJSON(JSONValue&) const;
  224. bool SaveXML(XMLElement&) const;
  225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  226. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  227. void SetAnimationTime(float);
  228. bool SetAttribute(const String&, const Variant&);
  229. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  230. void SetAttributeAnimationSpeed(const String&, float);
  231. void SetAttributeAnimationTime(const String&, float);
  232. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  233. void SetFlip(bool, bool, bool = false);
  234. void SetInterceptNetworkUpdate(const String&, bool);
  235. // Properties:
  236. float alpha;
  237. String animation;
  238. bool animationEnabled;
  239. AnimationSet2D animationSet;
  240. /* readonly */
  241. Array<Variant> attributeDefaults;
  242. /* readonly */
  243. Array<AttributeInfo> attributeInfos;
  244. Array<Variant> attributes;
  245. BlendMode blendMode;
  246. /* readonly */
  247. BoundingBox boundingBox;
  248. bool castShadows;
  249. /* readonly */
  250. String category;
  251. Color color;
  252. Material customMaterial;
  253. float drawDistance;
  254. Rect drawRect;
  255. bool enabled;
  256. /* readonly */
  257. bool enabledEffective;
  258. String entity;
  259. bool flipX;
  260. bool flipY;
  261. Vector2 hotSpot;
  262. /* readonly */
  263. uint id;
  264. /* readonly */
  265. bool inView;
  266. int layer;
  267. uint lightMask;
  268. float lodBias;
  269. LoopMode2D loopMode;
  270. uint maxLights;
  271. /* readonly */
  272. Node node;
  273. /* readonly */
  274. uint numAttributes;
  275. ObjectAnimation objectAnimation;
  276. bool occludee;
  277. bool occluder;
  278. int orderInLayer;
  279. /* readonly */
  280. int refs;
  281. /* readonly */
  282. bool replicated;
  283. float shadowDistance;
  284. uint shadowMask;
  285. float speed;
  286. Sprite2D sprite;
  287. bool swapXY;
  288. bool temporary;
  289. Rect textureRect;
  290. /* readonly */
  291. StringHash type;
  292. /* readonly */
  293. String typeName;
  294. bool useDrawRect;
  295. bool useHotSpot;
  296. bool useTextureRect;
  297. uint viewMask;
  298. /* readonly */
  299. int weakRefs;
  300. /* readonly */
  301. BoundingBox worldBoundingBox;
  302. uint zoneMask;
  303. };
  304. class Animation
  305. {
  306. public:
  307. Animation();
  308. Animation(const String&in);
  309. // Methods:
  310. void AddMetadata(const String&, const Variant&);
  311. void AddTrigger(const AnimationTriggerPoint&);
  312. void AddTrigger(float, bool, const Variant&);
  313. Animation Clone(const String& = String ( )) const;
  314. AnimationTrack CreateTrack(const String&);
  315. AnimationTrack GetTrack(uint);
  316. bool HasSubscribedToEvent(Object, const String&);
  317. bool HasSubscribedToEvent(const String&);
  318. bool Load(File);
  319. bool Load(VectorBuffer&);
  320. bool Load(const String&);
  321. void RemoveAllMetadata();
  322. bool RemoveAllTracks();
  323. void RemoveAllTriggers();
  324. void RemoveMetadata(const String&);
  325. bool RemoveTrack(const String&);
  326. void RemoveTrigger(uint);
  327. bool Save(File) const;
  328. bool Save(VectorBuffer&) const;
  329. bool Save(const String&) const;
  330. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  331. // Properties:
  332. String animationName;
  333. /* readonly */
  334. String category;
  335. /* readonly */
  336. bool hasMetadata;
  337. float length;
  338. /* readonly */
  339. uint memoryUse;
  340. Array<Variant> metadata;
  341. String name;
  342. /* readonly */
  343. uint numTracks;
  344. uint numTriggers;
  345. /* readonly */
  346. int refs;
  347. /* readonly */
  348. Array<AnimationTrack> tracks;
  349. Array<AnimationTriggerPoint> triggers;
  350. /* readonly */
  351. StringHash type;
  352. /* readonly */
  353. String typeName;
  354. /* readonly */
  355. uint useTimer;
  356. /* readonly */
  357. int weakRefs;
  358. };
  359. class AnimationControl
  360. {
  361. public:
  362. // Properties:
  363. float autoFadeTime;
  364. float fadeTime;
  365. StringHash hash;
  366. String name;
  367. bool removeOnCompletion;
  368. float speed;
  369. float targetWeight;
  370. };
  371. class AnimationController
  372. {
  373. public:
  374. // Methods:
  375. void ApplyAttributes();
  376. void DrawDebugGeometry(DebugRenderer, bool);
  377. bool Fade(const String&, float, float);
  378. bool FadeOthers(const String&, float, float);
  379. AnimationState GetAnimationState(StringHash) const;
  380. AnimationState GetAnimationState(const String&) const;
  381. Variant GetAttribute(const String&) const;
  382. ValueAnimation GetAttributeAnimation(const String&) const;
  383. float GetAttributeAnimationSpeed(const String&) const;
  384. float GetAttributeAnimationTime(const String&) const;
  385. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  386. Variant GetAttributeDefault(const String&) const;
  387. float GetAutoFade(const String&) const;
  388. AnimationBlendMode GetBlendMode(const String&) const;
  389. float GetFadeTarget(const String&) const;
  390. float GetFadeTime(const String&) const;
  391. bool GetInterceptNetworkUpdate(const String&) const;
  392. uint8 GetLayer(const String&) const;
  393. float GetLength(const String&) const;
  394. bool GetLooped(const String&) const;
  395. bool GetRemoveOnCompletion(const String&);
  396. float GetSpeed(const String&) const;
  397. float GetTime(const String&) const;
  398. float GetWeight(const String&) const;
  399. bool HasSubscribedToEvent(Object, const String&);
  400. bool HasSubscribedToEvent(const String&);
  401. bool IsAtEnd(const String&) const;
  402. bool IsFadingIn(const String&) const;
  403. bool IsFadingOut(const String&) const;
  404. bool IsPlaying(const String&) const;
  405. bool IsPlaying(uint8) const;
  406. bool Load(File);
  407. bool Load(VectorBuffer&);
  408. bool LoadJSON(const JSONValue&);
  409. bool LoadXML(const XMLElement&);
  410. void MarkNetworkUpdate() const;
  411. bool Play(const String&, uint8, bool, float = 0.0f);
  412. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  413. void Remove();
  414. void RemoveAttributeAnimation(const String&);
  415. void RemoveInstanceDefault();
  416. void RemoveObjectAnimation();
  417. void ResetToDefault();
  418. bool Save(File) const;
  419. bool Save(VectorBuffer&) const;
  420. bool SaveJSON(JSONValue&) const;
  421. bool SaveXML(XMLElement&) const;
  422. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  423. void SetAnimationTime(float);
  424. bool SetAttribute(const String&, const Variant&);
  425. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  426. void SetAttributeAnimationSpeed(const String&, float);
  427. void SetAttributeAnimationTime(const String&, float);
  428. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  429. bool SetAutoFade(const String&, float);
  430. bool SetBlendMode(const String&, AnimationBlendMode);
  431. void SetInterceptNetworkUpdate(const String&, bool);
  432. bool SetLayer(const String&, uint8);
  433. bool SetLooped(const String&, bool);
  434. bool SetRemoveOnCompletion(const String&, bool);
  435. bool SetSpeed(const String&, float);
  436. bool SetStartBone(const String&, const String&);
  437. bool SetTime(const String&, float);
  438. bool SetWeight(const String&, float);
  439. void Stop(const String&, float = 0.0f);
  440. void StopAll(float = 0.0f);
  441. void StopLayer(uint8, float = 0.0f);
  442. const String& GetStartBone(const String&) const;
  443. // Properties:
  444. bool animationEnabled;
  445. /* readonly */
  446. Array<AnimationControl> animations;
  447. /* readonly */
  448. Array<Variant> attributeDefaults;
  449. /* readonly */
  450. Array<AttributeInfo> attributeInfos;
  451. Array<Variant> attributes;
  452. /* readonly */
  453. String category;
  454. bool enabled;
  455. /* readonly */
  456. bool enabledEffective;
  457. /* readonly */
  458. uint id;
  459. /* readonly */
  460. Node node;
  461. /* readonly */
  462. uint numAnimations;
  463. /* readonly */
  464. uint numAttributes;
  465. ObjectAnimation objectAnimation;
  466. /* readonly */
  467. int refs;
  468. /* readonly */
  469. bool replicated;
  470. bool temporary;
  471. /* readonly */
  472. StringHash type;
  473. /* readonly */
  474. String typeName;
  475. /* readonly */
  476. int weakRefs;
  477. };
  478. class AnimationKeyFrame
  479. {
  480. public:
  481. ~AnimationKeyFrame();
  482. AnimationKeyFrame();
  483. AnimationKeyFrame(const AnimationKeyFrame&in);
  484. // Properties:
  485. Vector3 position;
  486. Quaternion rotation;
  487. Vector3 scale;
  488. float time;
  489. };
  490. class AnimationSet2D
  491. {
  492. public:
  493. AnimationSet2D();
  494. AnimationSet2D(const String&in);
  495. // Methods:
  496. String GetAnimation(uint) const;
  497. bool HasSubscribedToEvent(Object, const String&);
  498. bool HasSubscribedToEvent(const String&);
  499. bool Load(File);
  500. bool Load(VectorBuffer&);
  501. bool Load(const String&);
  502. bool Save(File) const;
  503. bool Save(VectorBuffer&) const;
  504. bool Save(const String&) const;
  505. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  506. // Properties:
  507. /* readonly */
  508. String category;
  509. /* readonly */
  510. uint memoryUse;
  511. String name;
  512. /* readonly */
  513. uint numAnimations;
  514. /* readonly */
  515. int refs;
  516. /* readonly */
  517. StringHash type;
  518. /* readonly */
  519. String typeName;
  520. /* readonly */
  521. uint useTimer;
  522. /* readonly */
  523. int weakRefs;
  524. };
  525. class AnimationState
  526. {
  527. public:
  528. AnimationState(Node&, Animation&);
  529. // Methods:
  530. void AddTime(float);
  531. void AddWeight(float);
  532. void Apply();
  533. float GetBoneWeight(StringHash) const;
  534. float GetBoneWeight(uint) const;
  535. uint GetTrackIndex(StringHash) const;
  536. uint GetTrackIndex(const String&) const;
  537. void SetBoneWeight(StringHash, float, bool = false);
  538. void SetBoneWeight(const String&, float, bool = false);
  539. void SetBoneWeight(uint, float, bool = false);
  540. // Properties:
  541. /* readonly */
  542. Animation animation;
  543. AnimationBlendMode blendMode;
  544. Array<float> boneWeights;
  545. /* readonly */
  546. bool enabled;
  547. uint8 layer;
  548. /* readonly */
  549. float length;
  550. bool looped;
  551. /* readonly */
  552. AnimatedModel model;
  553. /* readonly */
  554. Node node;
  555. /* readonly */
  556. int refs;
  557. Bone startBone;
  558. float time;
  559. /* readonly */
  560. int weakRefs;
  561. float weight;
  562. };
  563. class AnimationTrack
  564. {
  565. public:
  566. // Methods:
  567. void AddKeyFrame(const AnimationKeyFrame&);
  568. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  569. void RemoveAllKeyFrames();
  570. void RemoveKeyFrame(uint);
  571. // Properties:
  572. uint8 channelMask;
  573. Array<AnimationKeyFrame> keyFrames;
  574. String name;
  575. StringHash nameHash;
  576. /* readonly */
  577. uint numKeyFrames;
  578. };
  579. class AnimationTriggerPoint
  580. {
  581. public:
  582. ~AnimationTriggerPoint();
  583. AnimationTriggerPoint();
  584. AnimationTriggerPoint(const AnimationTriggerPoint&in);
  585. // Properties:
  586. Variant data;
  587. float time;
  588. };
  589. template <class T>
  590. class Array
  591. {
  592. public:
  593. Array(int&in);
  594. Array(int&in, uint);
  595. Array(int&in, uint, const T&in);
  596. // Methods:
  597. void Clear();
  598. void Erase(uint);
  599. int Find(const T&) const;
  600. int Find(uint, const T&) const;
  601. int FindByRef(const T&) const;
  602. int FindByRef(uint, const T&) const;
  603. void Insert(uint, const T&);
  604. void Pop();
  605. void Push(const T&);
  606. void Reserve(uint);
  607. void Resize(uint);
  608. void Reverse();
  609. void Sort();
  610. void Sort(uint, uint);
  611. void SortReverse();
  612. void SortReverse(uint, uint);
  613. bool Swap(Array<T>&);
  614. // Properties:
  615. /* readonly */
  616. bool empty;
  617. uint length;
  618. };
  619. class AttributeInfo
  620. {
  621. public:
  622. ~AttributeInfo();
  623. AttributeInfo();
  624. AttributeInfo(const AttributeInfo&in);
  625. // Properties:
  626. Variant defaultValue;
  627. /* readonly */
  628. Array<String> enumNames;
  629. VariantMap metadata;
  630. uint mode;
  631. String name;
  632. VariantType type;
  633. };
  634. class Audio
  635. {
  636. public:
  637. // Methods:
  638. bool HasMasterGain(const String&) const;
  639. bool HasSubscribedToEvent(Object, const String&);
  640. bool HasSubscribedToEvent(const String&);
  641. bool IsSoundTypePaused(const String&);
  642. void PauseSoundType(const String&);
  643. bool Play();
  644. void ResumeAll();
  645. void ResumeSoundType(const String&);
  646. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  647. void SetMode(int, int, bool, bool = true);
  648. void Stop();
  649. // Properties:
  650. /* readonly */
  651. String category;
  652. /* readonly */
  653. bool initialized;
  654. /* readonly */
  655. bool interpolation;
  656. SoundListener listener;
  657. Array<float> masterGain;
  658. /* readonly */
  659. int mixRate;
  660. /* readonly */
  661. bool playing;
  662. /* readonly */
  663. int refs;
  664. /* readonly */
  665. uint sampleSize;
  666. /* readonly */
  667. bool stereo;
  668. /* readonly */
  669. StringHash type;
  670. /* readonly */
  671. String typeName;
  672. /* readonly */
  673. int weakRefs;
  674. };
  675. class BiasParameters
  676. {
  677. public:
  678. BiasParameters();
  679. BiasParameters(const BiasParameters&in);
  680. BiasParameters(float, float, float normalOffset = 0.0f);
  681. // Properties:
  682. float constantBias;
  683. float normalOffset;
  684. float slopeScaledBias;
  685. };
  686. class Billboard
  687. {
  688. public:
  689. // Properties:
  690. Color color;
  691. Vector3 direction;
  692. bool enabled;
  693. Vector3 position;
  694. float rotation;
  695. Vector2 size;
  696. Rect uv;
  697. };
  698. class BillboardSet
  699. {
  700. public:
  701. // Methods:
  702. void ApplyAttributes();
  703. void Commit();
  704. void DrawDebugGeometry(DebugRenderer, bool);
  705. Variant GetAttribute(const String&) const;
  706. ValueAnimation GetAttributeAnimation(const String&) const;
  707. float GetAttributeAnimationSpeed(const String&) const;
  708. float GetAttributeAnimationTime(const String&) const;
  709. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  710. Variant GetAttributeDefault(const String&) const;
  711. bool GetInterceptNetworkUpdate(const String&) const;
  712. bool HasSubscribedToEvent(Object, const String&);
  713. bool HasSubscribedToEvent(const String&);
  714. bool IsInView(Camera) const;
  715. bool Load(File);
  716. bool Load(VectorBuffer&);
  717. bool LoadJSON(const JSONValue&);
  718. bool LoadXML(const XMLElement&);
  719. void MarkNetworkUpdate() const;
  720. void Remove();
  721. void RemoveAttributeAnimation(const String&);
  722. void RemoveInstanceDefault();
  723. void RemoveObjectAnimation();
  724. void ResetToDefault();
  725. bool Save(File) const;
  726. bool Save(VectorBuffer&) const;
  727. bool SaveJSON(JSONValue&) const;
  728. bool SaveXML(XMLElement&) const;
  729. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  730. void SetAnimationTime(float);
  731. bool SetAttribute(const String&, const Variant&);
  732. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  733. void SetAttributeAnimationSpeed(const String&, float);
  734. void SetAttributeAnimationTime(const String&, float);
  735. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  736. void SetInterceptNetworkUpdate(const String&, bool);
  737. // Properties:
  738. bool animationEnabled;
  739. float animationLodBias;
  740. /* readonly */
  741. Array<Variant> attributeDefaults;
  742. /* readonly */
  743. Array<AttributeInfo> attributeInfos;
  744. Array<Variant> attributes;
  745. /* readonly */
  746. Array<Billboard> billboards;
  747. /* readonly */
  748. BoundingBox boundingBox;
  749. bool castShadows;
  750. /* readonly */
  751. String category;
  752. float drawDistance;
  753. bool enabled;
  754. /* readonly */
  755. bool enabledEffective;
  756. FaceCameraMode faceCameraMode;
  757. bool fixedScreenSize;
  758. /* readonly */
  759. uint id;
  760. /* readonly */
  761. bool inView;
  762. uint lightMask;
  763. float lodBias;
  764. Material material;
  765. uint maxLights;
  766. float minAngle;
  767. /* readonly */
  768. Node node;
  769. /* readonly */
  770. uint numAttributes;
  771. uint numBillboards;
  772. ObjectAnimation objectAnimation;
  773. bool occludee;
  774. bool occluder;
  775. /* readonly */
  776. int refs;
  777. bool relative;
  778. /* readonly */
  779. bool replicated;
  780. bool scaled;
  781. float shadowDistance;
  782. uint shadowMask;
  783. bool sorted;
  784. bool temporary;
  785. /* readonly */
  786. StringHash type;
  787. /* readonly */
  788. String typeName;
  789. uint viewMask;
  790. /* readonly */
  791. int weakRefs;
  792. /* readonly */
  793. BoundingBox worldBoundingBox;
  794. /* readonly */
  795. Zone zone;
  796. uint zoneMask;
  797. };
  798. class Bone
  799. {
  800. public:
  801. // Properties:
  802. bool animated;
  803. BoundingBox boundingBox;
  804. Vector3 initialPosition;
  805. Quaternion initialRotation;
  806. Vector3 initialScale;
  807. String name;
  808. Node node;
  809. uint parentIndex;
  810. float radius;
  811. };
  812. class BorderImage
  813. {
  814. public:
  815. BorderImage();
  816. BorderImage(const String&in);
  817. // Methods:
  818. void AddChild(UIElement);
  819. void AddTag(const String&);
  820. void AddTags(const String&, int8 = ';');
  821. void ApplyAttributes();
  822. void BringToFront();
  823. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  824. void DisableLayoutUpdate();
  825. IntVector2 ElementToScreen(const IntVector2&);
  826. void EnableLayoutUpdate();
  827. uint FindChild(UIElement) const;
  828. Variant GetAttribute(const String&) const;
  829. ValueAnimation GetAttributeAnimation(const String&) const;
  830. float GetAttributeAnimationSpeed(const String&) const;
  831. float GetAttributeAnimationTime(const String&) const;
  832. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  833. Variant GetAttributeDefault(const String&) const;
  834. UIElement GetChild(const String&, bool = false) const;
  835. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  836. Array<UIElement> GetChildren(bool = false) const;
  837. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  838. UIElement GetElementEventSender() const;
  839. bool GetInterceptNetworkUpdate(const String&) const;
  840. uint GetNumChildren(bool) const;
  841. bool HasSubscribedToEvent(Object, const String&);
  842. bool HasSubscribedToEvent(const String&);
  843. bool HasTag(const String&) const;
  844. void InsertChild(uint, UIElement);
  845. bool IsChildOf(UIElement) const;
  846. bool IsInside(IntVector2, bool);
  847. bool IsInsideCombined(IntVector2, bool);
  848. bool Load(File);
  849. bool Load(VectorBuffer&);
  850. UIElement LoadChildXML(XMLFile, XMLFile);
  851. UIElement LoadChildXML(const XMLElement&, XMLFile);
  852. bool LoadJSON(const JSONValue&);
  853. bool LoadXML(File);
  854. bool LoadXML(VectorBuffer&);
  855. bool LoadXML(XMLFile, XMLFile);
  856. bool LoadXML(const XMLElement&, XMLFile);
  857. bool LoadXML(const XMLElement&);
  858. void MarkNetworkUpdate() const;
  859. void Remove();
  860. void RemoveAllChildren();
  861. void RemoveAllTags();
  862. void RemoveAttributeAnimation(const String&);
  863. void RemoveChild(UIElement, uint = 0);
  864. void RemoveChild(uint);
  865. void RemoveInstanceDefault();
  866. void RemoveObjectAnimation();
  867. bool RemoveTag(const String&);
  868. void ResetDeepEnabled();
  869. void ResetToDefault();
  870. bool Save(File) const;
  871. bool Save(VectorBuffer&) const;
  872. bool SaveJSON(JSONValue&) const;
  873. bool SaveXML(File, const String& = "\t");
  874. bool SaveXML(VectorBuffer&, const String& = "\t");
  875. bool SaveXML(XMLElement&) const;
  876. IntVector2 ScreenToElement(const IntVector2&);
  877. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  878. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  879. void SetAnimationTime(float);
  880. bool SetAttribute(const String&, const Variant&);
  881. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  882. void SetAttributeAnimationSpeed(const String&, float);
  883. void SetAttributeAnimationTime(const String&, float);
  884. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  885. void SetDeepEnabled(bool);
  886. void SetEnabledRecursive(bool);
  887. void SetFixedHeight(int);
  888. void SetFixedSize(int, int);
  889. void SetFixedWidth(int);
  890. void SetFullImageRect();
  891. void SetHoverOffset(int, int);
  892. void SetInterceptNetworkUpdate(const String&, bool);
  893. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  894. void SetMaxAnchor(float, float);
  895. void SetMaxSize(int, int);
  896. void SetMinAnchor(float, float);
  897. void SetMinSize(int, int);
  898. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  899. void SetPivot(float, float);
  900. void SetPosition(int, int);
  901. void SetSize(int, int);
  902. bool SetStyle(const String&, XMLFile = null);
  903. bool SetStyle(const XMLElement&);
  904. bool SetStyleAuto(XMLFile = null);
  905. void UpdateLayout();
  906. const Variant& GetVar(const StringHash&);
  907. // Properties:
  908. bool animationEnabled;
  909. /* readonly */
  910. Array<Variant> attributeDefaults;
  911. /* readonly */
  912. Array<AttributeInfo> attributeInfos;
  913. Array<Variant> attributes;
  914. BlendMode blendMode;
  915. IntRect border;
  916. bool bringToBack;
  917. bool bringToFront;
  918. /* readonly */
  919. String category;
  920. /* readonly */
  921. IntVector2 childOffset;
  922. /* readonly */
  923. Array<UIElement> children;
  924. IntRect clipBorder;
  925. bool clipChildren;
  926. /* writeonly */
  927. Color color;
  928. /* readonly */
  929. bool colorGradient;
  930. Array<Color> colors;
  931. /* readonly */
  932. IntRect combinedScreenRect;
  933. XMLFile defaultStyle;
  934. /* readonly */
  935. float derivedOpacity;
  936. /* readonly */
  937. uint dragButtonCombo;
  938. /* readonly */
  939. int dragButtonCount;
  940. uint dragDropMode;
  941. bool editable;
  942. bool elementEventSender;
  943. bool enableAnchor;
  944. bool enabled;
  945. /* readonly */
  946. bool enabledSelf;
  947. /* readonly */
  948. bool fixedHeight;
  949. /* readonly */
  950. bool fixedSize;
  951. /* readonly */
  952. bool fixedWidth;
  953. bool focus;
  954. FocusMode focusMode;
  955. int height;
  956. HorizontalAlignment horizontalAlignment;
  957. IntVector2 hoverOffset;
  958. /* readonly */
  959. bool hovering;
  960. IntRect imageBorder;
  961. IntRect imageRect;
  962. int indent;
  963. int indentSpacing;
  964. /* readonly */
  965. int indentWidth;
  966. bool internal;
  967. IntRect layoutBorder;
  968. Vector2 layoutFlexScale;
  969. LayoutMode layoutMode;
  970. int layoutSpacing;
  971. Vector2 maxAnchor;
  972. int maxHeight;
  973. IntVector2 maxOffset;
  974. IntVector2 maxSize;
  975. int maxWidth;
  976. Vector2 minAnchor;
  977. int minHeight;
  978. IntVector2 minOffset;
  979. IntVector2 minSize;
  980. int minWidth;
  981. String name;
  982. /* readonly */
  983. uint numAllChildren;
  984. /* readonly */
  985. uint numAttributes;
  986. /* readonly */
  987. uint numChildren;
  988. ObjectAnimation objectAnimation;
  989. float opacity;
  990. UIElement parent;
  991. Vector2 pivot;
  992. IntVector2 position;
  993. int priority;
  994. /* readonly */
  995. int refs;
  996. /* readonly */
  997. UIElement root;
  998. /* readonly */
  999. IntVector2 screenPosition;
  1000. bool selected;
  1001. IntVector2 size;
  1002. bool sortChildren;
  1003. String style;
  1004. /* readonly */
  1005. Array<String> tags;
  1006. bool temporary;
  1007. Texture texture;
  1008. bool tiled;
  1009. TraversalMode traversalMode;
  1010. /* readonly */
  1011. StringHash type;
  1012. /* readonly */
  1013. String typeName;
  1014. bool useDerivedOpacity;
  1015. /* readonly */
  1016. VariantMap vars;
  1017. VerticalAlignment verticalAlignment;
  1018. bool visible;
  1019. /* readonly */
  1020. bool visibleEffective;
  1021. /* readonly */
  1022. int weakRefs;
  1023. int width;
  1024. };
  1025. class BoundingBox
  1026. {
  1027. public:
  1028. BoundingBox();
  1029. BoundingBox(const BoundingBox&in);
  1030. BoundingBox(const Rect&in);
  1031. BoundingBox(const Vector3&in, const Vector3&in);
  1032. BoundingBox(float, float);
  1033. BoundingBox(const Frustum&in);
  1034. BoundingBox(const Polyhedron&in);
  1035. BoundingBox(const Sphere&in);
  1036. // Methods:
  1037. void Clear();
  1038. void Clip(const BoundingBox&);
  1039. void Define(const BoundingBox&);
  1040. void Define(const Frustum&);
  1041. void Define(const Polyhedron&);
  1042. void Define(const Sphere&);
  1043. void Define(const Vector3&);
  1044. void Define(const Vector3&, const Vector3&);
  1045. void Define(float, float);
  1046. bool Defined() const;
  1047. float DistanceToPoint(const Vector3&) const;
  1048. Intersection IsInside(const BoundingBox&) const;
  1049. Intersection IsInside(const Sphere&) const;
  1050. Intersection IsInside(const Vector3&) const;
  1051. Intersection IsInsideFast(const BoundingBox&) const;
  1052. Intersection IsInsideFast(const Sphere&) const;
  1053. void Merge(const BoundingBox&);
  1054. void Merge(const Frustum&);
  1055. void Merge(const Polyhedron&);
  1056. void Merge(const Sphere&);
  1057. void Merge(const Vector3&);
  1058. Rect Projected(const Matrix4&) const;
  1059. String ToString() const;
  1060. void Transform(const Matrix3&);
  1061. void Transform(const Matrix3x4&);
  1062. BoundingBox Transformed(const Matrix3&) const;
  1063. BoundingBox Transformed(const Matrix3x4&) const;
  1064. // Properties:
  1065. /* readonly */
  1066. Vector3 center;
  1067. /* readonly */
  1068. Vector3 halfSize;
  1069. Vector3 max;
  1070. Vector3 min;
  1071. /* readonly */
  1072. Vector3 size;
  1073. };
  1074. class Button
  1075. {
  1076. public:
  1077. Button();
  1078. Button(const String&in);
  1079. // Methods:
  1080. void AddChild(UIElement);
  1081. void AddTag(const String&);
  1082. void AddTags(const String&, int8 = ';');
  1083. void ApplyAttributes();
  1084. void BringToFront();
  1085. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1086. void DisableLayoutUpdate();
  1087. IntVector2 ElementToScreen(const IntVector2&);
  1088. void EnableLayoutUpdate();
  1089. uint FindChild(UIElement) const;
  1090. Variant GetAttribute(const String&) const;
  1091. ValueAnimation GetAttributeAnimation(const String&) const;
  1092. float GetAttributeAnimationSpeed(const String&) const;
  1093. float GetAttributeAnimationTime(const String&) const;
  1094. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1095. Variant GetAttributeDefault(const String&) const;
  1096. UIElement GetChild(const String&, bool = false) const;
  1097. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1098. Array<UIElement> GetChildren(bool = false) const;
  1099. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1100. UIElement GetElementEventSender() const;
  1101. bool GetInterceptNetworkUpdate(const String&) const;
  1102. uint GetNumChildren(bool) const;
  1103. bool HasSubscribedToEvent(Object, const String&);
  1104. bool HasSubscribedToEvent(const String&);
  1105. bool HasTag(const String&) const;
  1106. void InsertChild(uint, UIElement);
  1107. bool IsChildOf(UIElement) const;
  1108. bool IsInside(IntVector2, bool);
  1109. bool IsInsideCombined(IntVector2, bool);
  1110. bool Load(File);
  1111. bool Load(VectorBuffer&);
  1112. UIElement LoadChildXML(XMLFile, XMLFile);
  1113. UIElement LoadChildXML(const XMLElement&, XMLFile);
  1114. bool LoadJSON(const JSONValue&);
  1115. bool LoadXML(File);
  1116. bool LoadXML(VectorBuffer&);
  1117. bool LoadXML(XMLFile, XMLFile);
  1118. bool LoadXML(const XMLElement&, XMLFile);
  1119. bool LoadXML(const XMLElement&);
  1120. void MarkNetworkUpdate() const;
  1121. void Remove();
  1122. void RemoveAllChildren();
  1123. void RemoveAllTags();
  1124. void RemoveAttributeAnimation(const String&);
  1125. void RemoveChild(UIElement, uint = 0);
  1126. void RemoveChild(uint);
  1127. void RemoveInstanceDefault();
  1128. void RemoveObjectAnimation();
  1129. bool RemoveTag(const String&);
  1130. void ResetDeepEnabled();
  1131. void ResetToDefault();
  1132. bool Save(File) const;
  1133. bool Save(VectorBuffer&) const;
  1134. bool SaveJSON(JSONValue&) const;
  1135. bool SaveXML(File, const String& = "\t");
  1136. bool SaveXML(VectorBuffer&, const String& = "\t");
  1137. bool SaveXML(XMLElement&) const;
  1138. IntVector2 ScreenToElement(const IntVector2&);
  1139. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1140. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1141. void SetAnimationTime(float);
  1142. bool SetAttribute(const String&, const Variant&);
  1143. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1144. void SetAttributeAnimationSpeed(const String&, float);
  1145. void SetAttributeAnimationTime(const String&, float);
  1146. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1147. void SetDeepEnabled(bool);
  1148. void SetDisabledOffset(int, int);
  1149. void SetEnabledRecursive(bool);
  1150. void SetFixedHeight(int);
  1151. void SetFixedSize(int, int);
  1152. void SetFixedWidth(int);
  1153. void SetFullImageRect();
  1154. void SetHoverOffset(int, int);
  1155. void SetInterceptNetworkUpdate(const String&, bool);
  1156. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1157. void SetMaxAnchor(float, float);
  1158. void SetMaxSize(int, int);
  1159. void SetMinAnchor(float, float);
  1160. void SetMinSize(int, int);
  1161. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1162. void SetPivot(float, float);
  1163. void SetPosition(int, int);
  1164. void SetPressedChildOffset(int, int);
  1165. void SetPressedOffset(int, int);
  1166. void SetRepeat(float, float);
  1167. void SetSize(int, int);
  1168. bool SetStyle(const String&, XMLFile = null);
  1169. bool SetStyle(const XMLElement&);
  1170. bool SetStyleAuto(XMLFile = null);
  1171. void UpdateLayout();
  1172. const Variant& GetVar(const StringHash&);
  1173. // Properties:
  1174. bool animationEnabled;
  1175. /* readonly */
  1176. Array<Variant> attributeDefaults;
  1177. /* readonly */
  1178. Array<AttributeInfo> attributeInfos;
  1179. Array<Variant> attributes;
  1180. BlendMode blendMode;
  1181. IntRect border;
  1182. bool bringToBack;
  1183. bool bringToFront;
  1184. /* readonly */
  1185. String category;
  1186. /* readonly */
  1187. IntVector2 childOffset;
  1188. /* readonly */
  1189. Array<UIElement> children;
  1190. IntRect clipBorder;
  1191. bool clipChildren;
  1192. /* writeonly */
  1193. Color color;
  1194. /* readonly */
  1195. bool colorGradient;
  1196. Array<Color> colors;
  1197. /* readonly */
  1198. IntRect combinedScreenRect;
  1199. XMLFile defaultStyle;
  1200. /* readonly */
  1201. float derivedOpacity;
  1202. IntVector2 disabledOffset;
  1203. /* readonly */
  1204. uint dragButtonCombo;
  1205. /* readonly */
  1206. int dragButtonCount;
  1207. uint dragDropMode;
  1208. bool editable;
  1209. bool elementEventSender;
  1210. bool enableAnchor;
  1211. bool enabled;
  1212. /* readonly */
  1213. bool enabledSelf;
  1214. /* readonly */
  1215. bool fixedHeight;
  1216. /* readonly */
  1217. bool fixedSize;
  1218. /* readonly */
  1219. bool fixedWidth;
  1220. bool focus;
  1221. FocusMode focusMode;
  1222. int height;
  1223. HorizontalAlignment horizontalAlignment;
  1224. IntVector2 hoverOffset;
  1225. /* readonly */
  1226. bool hovering;
  1227. IntRect imageBorder;
  1228. IntRect imageRect;
  1229. int indent;
  1230. int indentSpacing;
  1231. /* readonly */
  1232. int indentWidth;
  1233. bool internal;
  1234. IntRect layoutBorder;
  1235. Vector2 layoutFlexScale;
  1236. LayoutMode layoutMode;
  1237. int layoutSpacing;
  1238. Vector2 maxAnchor;
  1239. int maxHeight;
  1240. IntVector2 maxOffset;
  1241. IntVector2 maxSize;
  1242. int maxWidth;
  1243. Vector2 minAnchor;
  1244. int minHeight;
  1245. IntVector2 minOffset;
  1246. IntVector2 minSize;
  1247. int minWidth;
  1248. String name;
  1249. /* readonly */
  1250. uint numAllChildren;
  1251. /* readonly */
  1252. uint numAttributes;
  1253. /* readonly */
  1254. uint numChildren;
  1255. ObjectAnimation objectAnimation;
  1256. float opacity;
  1257. UIElement parent;
  1258. Vector2 pivot;
  1259. IntVector2 position;
  1260. /* readonly */
  1261. bool pressed;
  1262. IntVector2 pressedChildOffset;
  1263. IntVector2 pressedOffset;
  1264. int priority;
  1265. /* readonly */
  1266. int refs;
  1267. float repeatDelay;
  1268. float repeatRate;
  1269. /* readonly */
  1270. UIElement root;
  1271. /* readonly */
  1272. IntVector2 screenPosition;
  1273. bool selected;
  1274. IntVector2 size;
  1275. bool sortChildren;
  1276. String style;
  1277. /* readonly */
  1278. Array<String> tags;
  1279. bool temporary;
  1280. Texture texture;
  1281. bool tiled;
  1282. TraversalMode traversalMode;
  1283. /* readonly */
  1284. StringHash type;
  1285. /* readonly */
  1286. String typeName;
  1287. bool useDerivedOpacity;
  1288. /* readonly */
  1289. VariantMap vars;
  1290. VerticalAlignment verticalAlignment;
  1291. bool visible;
  1292. /* readonly */
  1293. bool visibleEffective;
  1294. /* readonly */
  1295. int weakRefs;
  1296. int width;
  1297. };
  1298. class Camera
  1299. {
  1300. public:
  1301. // Methods:
  1302. void ApplyAttributes();
  1303. void DrawDebugGeometry(DebugRenderer, bool);
  1304. Variant GetAttribute(const String&) const;
  1305. ValueAnimation GetAttributeAnimation(const String&) const;
  1306. float GetAttributeAnimationSpeed(const String&) const;
  1307. float GetAttributeAnimationTime(const String&) const;
  1308. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1309. Variant GetAttributeDefault(const String&) const;
  1310. float GetDistance(const Vector3&) const;
  1311. float GetDistanceSquared(const Vector3&) const;
  1312. bool GetInterceptNetworkUpdate(const String&) const;
  1313. Ray GetScreenRay(float, float) const;
  1314. Frustum GetSplitFrustum(float, float) const;
  1315. bool HasSubscribedToEvent(Object, const String&);
  1316. bool HasSubscribedToEvent(const String&);
  1317. bool Load(File);
  1318. bool Load(VectorBuffer&);
  1319. bool LoadJSON(const JSONValue&);
  1320. bool LoadXML(const XMLElement&);
  1321. void MarkNetworkUpdate() const;
  1322. void Remove();
  1323. void RemoveAttributeAnimation(const String&);
  1324. void RemoveInstanceDefault();
  1325. void RemoveObjectAnimation();
  1326. void ResetToDefault();
  1327. bool Save(File) const;
  1328. bool Save(VectorBuffer&) const;
  1329. bool SaveJSON(JSONValue&) const;
  1330. bool SaveXML(XMLElement&) const;
  1331. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1332. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1333. void SetAnimationTime(float);
  1334. bool SetAttribute(const String&, const Variant&);
  1335. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1336. void SetAttributeAnimationSpeed(const String&, float);
  1337. void SetAttributeAnimationTime(const String&, float);
  1338. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1339. void SetInterceptNetworkUpdate(const String&, bool);
  1340. void SetOrthoSize(const Vector2&);
  1341. Vector2 WorldToScreenPoint(const Vector3&) const;
  1342. // Properties:
  1343. bool animationEnabled;
  1344. float aspectRatio;
  1345. /* readonly */
  1346. Array<Variant> attributeDefaults;
  1347. /* readonly */
  1348. Array<AttributeInfo> attributeInfos;
  1349. Array<Variant> attributes;
  1350. bool autoAspectRatio;
  1351. /* readonly */
  1352. String category;
  1353. Plane clipPlane;
  1354. /* readonly */
  1355. Matrix3x4 effectiveWorldTransform;
  1356. bool enabled;
  1357. /* readonly */
  1358. bool enabledEffective;
  1359. float farClip;
  1360. FillMode fillMode;
  1361. float fov;
  1362. /* readonly */
  1363. Frustum frustum;
  1364. /* readonly */
  1365. Matrix4 gpuProjection;
  1366. /* readonly */
  1367. float halfViewSize;
  1368. /* readonly */
  1369. uint id;
  1370. float lodBias;
  1371. float nearClip;
  1372. /* readonly */
  1373. Node node;
  1374. /* readonly */
  1375. uint numAttributes;
  1376. ObjectAnimation objectAnimation;
  1377. float orthoSize;
  1378. bool orthographic;
  1379. Matrix4 projection;
  1380. Vector2 projectionOffset;
  1381. Plane reflectionPlane;
  1382. /* readonly */
  1383. int refs;
  1384. /* readonly */
  1385. bool replicated;
  1386. bool temporary;
  1387. /* readonly */
  1388. StringHash type;
  1389. /* readonly */
  1390. String typeName;
  1391. bool useClipping;
  1392. bool useReflection;
  1393. /* readonly */
  1394. Matrix3x4 view;
  1395. uint viewMask;
  1396. uint viewOverrideFlags;
  1397. /* readonly */
  1398. Frustum viewSpaceFrustum;
  1399. /* readonly */
  1400. int weakRefs;
  1401. float zoom;
  1402. };
  1403. class CascadeParameters
  1404. {
  1405. public:
  1406. CascadeParameters();
  1407. CascadeParameters(const CascadeParameters&in);
  1408. CascadeParameters(float, float, float, float, float, float biasAutoAdjust = 1.0);
  1409. // Properties:
  1410. float biasAutoAdjust;
  1411. float fadeStart;
  1412. float split1;
  1413. float split2;
  1414. float split3;
  1415. float split4;
  1416. };
  1417. class CheckBox
  1418. {
  1419. public:
  1420. CheckBox();
  1421. CheckBox(const String&in);
  1422. // Methods:
  1423. void AddChild(UIElement);
  1424. void AddTag(const String&);
  1425. void AddTags(const String&, int8 = ';');
  1426. void ApplyAttributes();
  1427. void BringToFront();
  1428. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1429. void DisableLayoutUpdate();
  1430. IntVector2 ElementToScreen(const IntVector2&);
  1431. void EnableLayoutUpdate();
  1432. uint FindChild(UIElement) const;
  1433. Variant GetAttribute(const String&) const;
  1434. ValueAnimation GetAttributeAnimation(const String&) const;
  1435. float GetAttributeAnimationSpeed(const String&) const;
  1436. float GetAttributeAnimationTime(const String&) const;
  1437. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1438. Variant GetAttributeDefault(const String&) const;
  1439. UIElement GetChild(const String&, bool = false) const;
  1440. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1441. Array<UIElement> GetChildren(bool = false) const;
  1442. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1443. UIElement GetElementEventSender() const;
  1444. bool GetInterceptNetworkUpdate(const String&) const;
  1445. uint GetNumChildren(bool) const;
  1446. bool HasSubscribedToEvent(Object, const String&);
  1447. bool HasSubscribedToEvent(const String&);
  1448. bool HasTag(const String&) const;
  1449. void InsertChild(uint, UIElement);
  1450. bool IsChildOf(UIElement) const;
  1451. bool IsInside(IntVector2, bool);
  1452. bool IsInsideCombined(IntVector2, bool);
  1453. bool Load(File);
  1454. bool Load(VectorBuffer&);
  1455. UIElement LoadChildXML(XMLFile, XMLFile);
  1456. UIElement LoadChildXML(const XMLElement&, XMLFile);
  1457. bool LoadJSON(const JSONValue&);
  1458. bool LoadXML(File);
  1459. bool LoadXML(VectorBuffer&);
  1460. bool LoadXML(XMLFile, XMLFile);
  1461. bool LoadXML(const XMLElement&, XMLFile);
  1462. bool LoadXML(const XMLElement&);
  1463. void MarkNetworkUpdate() const;
  1464. void Remove();
  1465. void RemoveAllChildren();
  1466. void RemoveAllTags();
  1467. void RemoveAttributeAnimation(const String&);
  1468. void RemoveChild(UIElement, uint = 0);
  1469. void RemoveChild(uint);
  1470. void RemoveInstanceDefault();
  1471. void RemoveObjectAnimation();
  1472. bool RemoveTag(const String&);
  1473. void ResetDeepEnabled();
  1474. void ResetToDefault();
  1475. bool Save(File) const;
  1476. bool Save(VectorBuffer&) const;
  1477. bool SaveJSON(JSONValue&) const;
  1478. bool SaveXML(File, const String& = "\t");
  1479. bool SaveXML(VectorBuffer&, const String& = "\t");
  1480. bool SaveXML(XMLElement&) const;
  1481. IntVector2 ScreenToElement(const IntVector2&);
  1482. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1483. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1484. void SetAnimationTime(float);
  1485. bool SetAttribute(const String&, const Variant&);
  1486. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1487. void SetAttributeAnimationSpeed(const String&, float);
  1488. void SetAttributeAnimationTime(const String&, float);
  1489. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1490. void SetCheckedOffset(int, int);
  1491. void SetDeepEnabled(bool);
  1492. void SetEnabledRecursive(bool);
  1493. void SetFixedHeight(int);
  1494. void SetFixedSize(int, int);
  1495. void SetFixedWidth(int);
  1496. void SetFullImageRect();
  1497. void SetHoverOffset(int, int);
  1498. void SetInterceptNetworkUpdate(const String&, bool);
  1499. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1500. void SetMaxAnchor(float, float);
  1501. void SetMaxSize(int, int);
  1502. void SetMinAnchor(float, float);
  1503. void SetMinSize(int, int);
  1504. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1505. void SetPivot(float, float);
  1506. void SetPosition(int, int);
  1507. void SetSize(int, int);
  1508. bool SetStyle(const String&, XMLFile = null);
  1509. bool SetStyle(const XMLElement&);
  1510. bool SetStyleAuto(XMLFile = null);
  1511. void UpdateLayout();
  1512. const Variant& GetVar(const StringHash&);
  1513. // Properties:
  1514. bool animationEnabled;
  1515. /* readonly */
  1516. Array<Variant> attributeDefaults;
  1517. /* readonly */
  1518. Array<AttributeInfo> attributeInfos;
  1519. Array<Variant> attributes;
  1520. BlendMode blendMode;
  1521. IntRect border;
  1522. bool bringToBack;
  1523. bool bringToFront;
  1524. /* readonly */
  1525. String category;
  1526. bool checked;
  1527. IntVector2 checkedOffset;
  1528. /* readonly */
  1529. IntVector2 childOffset;
  1530. /* readonly */
  1531. Array<UIElement> children;
  1532. IntRect clipBorder;
  1533. bool clipChildren;
  1534. /* writeonly */
  1535. Color color;
  1536. /* readonly */
  1537. bool colorGradient;
  1538. Array<Color> colors;
  1539. /* readonly */
  1540. IntRect combinedScreenRect;
  1541. XMLFile defaultStyle;
  1542. /* readonly */
  1543. float derivedOpacity;
  1544. /* readonly */
  1545. uint dragButtonCombo;
  1546. /* readonly */
  1547. int dragButtonCount;
  1548. uint dragDropMode;
  1549. bool editable;
  1550. bool elementEventSender;
  1551. bool enableAnchor;
  1552. bool enabled;
  1553. /* readonly */
  1554. bool enabledSelf;
  1555. /* readonly */
  1556. bool fixedHeight;
  1557. /* readonly */
  1558. bool fixedSize;
  1559. /* readonly */
  1560. bool fixedWidth;
  1561. bool focus;
  1562. FocusMode focusMode;
  1563. int height;
  1564. HorizontalAlignment horizontalAlignment;
  1565. IntVector2 hoverOffset;
  1566. /* readonly */
  1567. bool hovering;
  1568. IntRect imageBorder;
  1569. IntRect imageRect;
  1570. int indent;
  1571. int indentSpacing;
  1572. /* readonly */
  1573. int indentWidth;
  1574. bool internal;
  1575. IntRect layoutBorder;
  1576. Vector2 layoutFlexScale;
  1577. LayoutMode layoutMode;
  1578. int layoutSpacing;
  1579. Vector2 maxAnchor;
  1580. int maxHeight;
  1581. IntVector2 maxOffset;
  1582. IntVector2 maxSize;
  1583. int maxWidth;
  1584. Vector2 minAnchor;
  1585. int minHeight;
  1586. IntVector2 minOffset;
  1587. IntVector2 minSize;
  1588. int minWidth;
  1589. String name;
  1590. /* readonly */
  1591. uint numAllChildren;
  1592. /* readonly */
  1593. uint numAttributes;
  1594. /* readonly */
  1595. uint numChildren;
  1596. ObjectAnimation objectAnimation;
  1597. float opacity;
  1598. UIElement parent;
  1599. Vector2 pivot;
  1600. IntVector2 position;
  1601. int priority;
  1602. /* readonly */
  1603. int refs;
  1604. /* readonly */
  1605. UIElement root;
  1606. /* readonly */
  1607. IntVector2 screenPosition;
  1608. bool selected;
  1609. IntVector2 size;
  1610. bool sortChildren;
  1611. String style;
  1612. /* readonly */
  1613. Array<String> tags;
  1614. bool temporary;
  1615. Texture texture;
  1616. bool tiled;
  1617. TraversalMode traversalMode;
  1618. /* readonly */
  1619. StringHash type;
  1620. /* readonly */
  1621. String typeName;
  1622. bool useDerivedOpacity;
  1623. /* readonly */
  1624. VariantMap vars;
  1625. VerticalAlignment verticalAlignment;
  1626. bool visible;
  1627. /* readonly */
  1628. bool visibleEffective;
  1629. /* readonly */
  1630. int weakRefs;
  1631. int width;
  1632. };
  1633. class CollisionBox2D
  1634. {
  1635. public:
  1636. // Methods:
  1637. void ApplyAttributes();
  1638. void DrawDebugGeometry(DebugRenderer, bool);
  1639. Variant GetAttribute(const String&) const;
  1640. ValueAnimation GetAttributeAnimation(const String&) const;
  1641. float GetAttributeAnimationSpeed(const String&) const;
  1642. float GetAttributeAnimationTime(const String&) const;
  1643. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1644. Variant GetAttributeDefault(const String&) const;
  1645. bool GetInterceptNetworkUpdate(const String&) const;
  1646. bool HasSubscribedToEvent(Object, const String&);
  1647. bool HasSubscribedToEvent(const String&);
  1648. bool Load(File);
  1649. bool Load(VectorBuffer&);
  1650. bool LoadJSON(const JSONValue&);
  1651. bool LoadXML(const XMLElement&);
  1652. void MarkNetworkUpdate() const;
  1653. void Remove();
  1654. void RemoveAttributeAnimation(const String&);
  1655. void RemoveInstanceDefault();
  1656. void RemoveObjectAnimation();
  1657. void ResetToDefault();
  1658. bool Save(File) const;
  1659. bool Save(VectorBuffer&) const;
  1660. bool SaveJSON(JSONValue&) const;
  1661. bool SaveXML(XMLElement&) const;
  1662. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1663. void SetAnimationTime(float);
  1664. bool SetAttribute(const String&, const Variant&);
  1665. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1666. void SetAttributeAnimationSpeed(const String&, float);
  1667. void SetAttributeAnimationTime(const String&, float);
  1668. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1669. void SetCenter(float, float);
  1670. void SetInterceptNetworkUpdate(const String&, bool);
  1671. void SetSize(float, float);
  1672. // Properties:
  1673. float angle;
  1674. bool animationEnabled;
  1675. /* readonly */
  1676. Array<Variant> attributeDefaults;
  1677. /* readonly */
  1678. Array<AttributeInfo> attributeInfos;
  1679. Array<Variant> attributes;
  1680. /* readonly */
  1681. String category;
  1682. int categoryBits;
  1683. Vector2 center;
  1684. float density;
  1685. bool enabled;
  1686. /* readonly */
  1687. bool enabledEffective;
  1688. float friction;
  1689. int groupIndex;
  1690. /* readonly */
  1691. uint id;
  1692. /* readonly */
  1693. float inertia;
  1694. int maskBits;
  1695. /* readonly */
  1696. float mass;
  1697. /* readonly */
  1698. Vector2 massCenter;
  1699. /* readonly */
  1700. Node node;
  1701. /* readonly */
  1702. uint numAttributes;
  1703. ObjectAnimation objectAnimation;
  1704. /* readonly */
  1705. int refs;
  1706. /* readonly */
  1707. bool replicated;
  1708. float restitution;
  1709. Vector2 size;
  1710. bool temporary;
  1711. bool trigger;
  1712. /* readonly */
  1713. StringHash type;
  1714. /* readonly */
  1715. String typeName;
  1716. /* readonly */
  1717. int weakRefs;
  1718. };
  1719. class CollisionChain2D
  1720. {
  1721. public:
  1722. // Methods:
  1723. void ApplyAttributes();
  1724. void DrawDebugGeometry(DebugRenderer, bool);
  1725. Variant GetAttribute(const String&) const;
  1726. ValueAnimation GetAttributeAnimation(const String&) const;
  1727. float GetAttributeAnimationSpeed(const String&) const;
  1728. float GetAttributeAnimationTime(const String&) const;
  1729. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1730. Variant GetAttributeDefault(const String&) const;
  1731. bool GetInterceptNetworkUpdate(const String&) const;
  1732. Array<Vector2> GetVertices() const;
  1733. bool HasSubscribedToEvent(Object, const String&);
  1734. bool HasSubscribedToEvent(const String&);
  1735. bool Load(File);
  1736. bool Load(VectorBuffer&);
  1737. bool LoadJSON(const JSONValue&);
  1738. bool LoadXML(const XMLElement&);
  1739. void MarkNetworkUpdate() const;
  1740. void Remove();
  1741. void RemoveAttributeAnimation(const String&);
  1742. void RemoveInstanceDefault();
  1743. void RemoveObjectAnimation();
  1744. void ResetToDefault();
  1745. bool Save(File) const;
  1746. bool Save(VectorBuffer&) const;
  1747. bool SaveJSON(JSONValue&) const;
  1748. bool SaveXML(XMLElement&) const;
  1749. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1750. void SetAnimationTime(float);
  1751. bool SetAttribute(const String&, const Variant&);
  1752. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1753. void SetAttributeAnimationSpeed(const String&, float);
  1754. void SetAttributeAnimationTime(const String&, float);
  1755. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1756. void SetInterceptNetworkUpdate(const String&, bool);
  1757. void SetVertex(uint, const Vector2&);
  1758. void SetVertices(Array<Vector2>);
  1759. const Vector2& GetVertex(uint) const;
  1760. // Properties:
  1761. bool animationEnabled;
  1762. /* readonly */
  1763. Array<Variant> attributeDefaults;
  1764. /* readonly */
  1765. Array<AttributeInfo> attributeInfos;
  1766. Array<Variant> attributes;
  1767. /* readonly */
  1768. String category;
  1769. int categoryBits;
  1770. float density;
  1771. bool enabled;
  1772. /* readonly */
  1773. bool enabledEffective;
  1774. float friction;
  1775. int groupIndex;
  1776. /* readonly */
  1777. uint id;
  1778. /* readonly */
  1779. float inertia;
  1780. bool loop;
  1781. int maskBits;
  1782. /* readonly */
  1783. float mass;
  1784. /* readonly */
  1785. Vector2 massCenter;
  1786. /* readonly */
  1787. Node node;
  1788. /* readonly */
  1789. uint numAttributes;
  1790. ObjectAnimation objectAnimation;
  1791. /* readonly */
  1792. int refs;
  1793. /* readonly */
  1794. bool replicated;
  1795. float restitution;
  1796. bool temporary;
  1797. bool trigger;
  1798. /* readonly */
  1799. StringHash type;
  1800. /* readonly */
  1801. String typeName;
  1802. uint vertexCount;
  1803. /* readonly */
  1804. int weakRefs;
  1805. };
  1806. class CollisionCircle2D
  1807. {
  1808. public:
  1809. // Methods:
  1810. void ApplyAttributes();
  1811. void DrawDebugGeometry(DebugRenderer, bool);
  1812. Variant GetAttribute(const String&) const;
  1813. ValueAnimation GetAttributeAnimation(const String&) const;
  1814. float GetAttributeAnimationSpeed(const String&) const;
  1815. float GetAttributeAnimationTime(const String&) const;
  1816. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1817. Variant GetAttributeDefault(const String&) const;
  1818. bool GetInterceptNetworkUpdate(const String&) const;
  1819. bool HasSubscribedToEvent(Object, const String&);
  1820. bool HasSubscribedToEvent(const String&);
  1821. bool Load(File);
  1822. bool Load(VectorBuffer&);
  1823. bool LoadJSON(const JSONValue&);
  1824. bool LoadXML(const XMLElement&);
  1825. void MarkNetworkUpdate() const;
  1826. void Remove();
  1827. void RemoveAttributeAnimation(const String&);
  1828. void RemoveInstanceDefault();
  1829. void RemoveObjectAnimation();
  1830. void ResetToDefault();
  1831. bool Save(File) const;
  1832. bool Save(VectorBuffer&) const;
  1833. bool SaveJSON(JSONValue&) const;
  1834. bool SaveXML(XMLElement&) const;
  1835. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1836. void SetAnimationTime(float);
  1837. bool SetAttribute(const String&, const Variant&);
  1838. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1839. void SetAttributeAnimationSpeed(const String&, float);
  1840. void SetAttributeAnimationTime(const String&, float);
  1841. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1842. void SetCenter(float, float);
  1843. void SetInterceptNetworkUpdate(const String&, bool);
  1844. // Properties:
  1845. bool animationEnabled;
  1846. /* readonly */
  1847. Array<Variant> attributeDefaults;
  1848. /* readonly */
  1849. Array<AttributeInfo> attributeInfos;
  1850. Array<Variant> attributes;
  1851. /* readonly */
  1852. String category;
  1853. int categoryBits;
  1854. Vector2 center;
  1855. float density;
  1856. bool enabled;
  1857. /* readonly */
  1858. bool enabledEffective;
  1859. float friction;
  1860. int groupIndex;
  1861. /* readonly */
  1862. uint id;
  1863. /* readonly */
  1864. float inertia;
  1865. int maskBits;
  1866. /* readonly */
  1867. float mass;
  1868. /* readonly */
  1869. Vector2 massCenter;
  1870. /* readonly */
  1871. Node node;
  1872. /* readonly */
  1873. uint numAttributes;
  1874. ObjectAnimation objectAnimation;
  1875. float radius;
  1876. /* readonly */
  1877. int refs;
  1878. /* readonly */
  1879. bool replicated;
  1880. float restitution;
  1881. bool temporary;
  1882. bool trigger;
  1883. /* readonly */
  1884. StringHash type;
  1885. /* readonly */
  1886. String typeName;
  1887. /* readonly */
  1888. int weakRefs;
  1889. };
  1890. class CollisionEdge2D
  1891. {
  1892. public:
  1893. // Methods:
  1894. void ApplyAttributes();
  1895. void DrawDebugGeometry(DebugRenderer, bool);
  1896. Variant GetAttribute(const String&) const;
  1897. ValueAnimation GetAttributeAnimation(const String&) const;
  1898. float GetAttributeAnimationSpeed(const String&) const;
  1899. float GetAttributeAnimationTime(const String&) const;
  1900. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1901. Variant GetAttributeDefault(const String&) const;
  1902. bool GetInterceptNetworkUpdate(const String&) const;
  1903. bool HasSubscribedToEvent(Object, const String&);
  1904. bool HasSubscribedToEvent(const String&);
  1905. bool Load(File);
  1906. bool Load(VectorBuffer&);
  1907. bool LoadJSON(const JSONValue&);
  1908. bool LoadXML(const XMLElement&);
  1909. void MarkNetworkUpdate() const;
  1910. void Remove();
  1911. void RemoveAttributeAnimation(const String&);
  1912. void RemoveInstanceDefault();
  1913. void RemoveObjectAnimation();
  1914. void ResetToDefault();
  1915. bool Save(File) const;
  1916. bool Save(VectorBuffer&) const;
  1917. bool SaveJSON(JSONValue&) const;
  1918. bool SaveXML(XMLElement&) const;
  1919. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1920. void SetAnimationTime(float);
  1921. bool SetAttribute(const String&, const Variant&);
  1922. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1923. void SetAttributeAnimationSpeed(const String&, float);
  1924. void SetAttributeAnimationTime(const String&, float);
  1925. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1926. void SetInterceptNetworkUpdate(const String&, bool);
  1927. void SetVertices(const Vector2&, const Vector2&);
  1928. // Properties:
  1929. bool animationEnabled;
  1930. /* readonly */
  1931. Array<Variant> attributeDefaults;
  1932. /* readonly */
  1933. Array<AttributeInfo> attributeInfos;
  1934. Array<Variant> attributes;
  1935. /* readonly */
  1936. String category;
  1937. int categoryBits;
  1938. float density;
  1939. bool enabled;
  1940. /* readonly */
  1941. bool enabledEffective;
  1942. float friction;
  1943. int groupIndex;
  1944. /* readonly */
  1945. uint id;
  1946. /* readonly */
  1947. float inertia;
  1948. int maskBits;
  1949. /* readonly */
  1950. float mass;
  1951. /* readonly */
  1952. Vector2 massCenter;
  1953. /* readonly */
  1954. Node node;
  1955. /* readonly */
  1956. uint numAttributes;
  1957. ObjectAnimation objectAnimation;
  1958. /* readonly */
  1959. int refs;
  1960. /* readonly */
  1961. bool replicated;
  1962. float restitution;
  1963. bool temporary;
  1964. bool trigger;
  1965. /* readonly */
  1966. StringHash type;
  1967. /* readonly */
  1968. String typeName;
  1969. Vector2 vertex1;
  1970. Vector2 vertex2;
  1971. /* readonly */
  1972. int weakRefs;
  1973. };
  1974. class CollisionPolygon2D
  1975. {
  1976. public:
  1977. // Methods:
  1978. void ApplyAttributes();
  1979. void DrawDebugGeometry(DebugRenderer, bool);
  1980. Variant GetAttribute(const String&) const;
  1981. ValueAnimation GetAttributeAnimation(const String&) const;
  1982. float GetAttributeAnimationSpeed(const String&) const;
  1983. float GetAttributeAnimationTime(const String&) const;
  1984. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1985. Variant GetAttributeDefault(const String&) const;
  1986. bool GetInterceptNetworkUpdate(const String&) const;
  1987. Array<Vector2> GetVertices() const;
  1988. bool HasSubscribedToEvent(Object, const String&);
  1989. bool HasSubscribedToEvent(const String&);
  1990. bool Load(File);
  1991. bool Load(VectorBuffer&);
  1992. bool LoadJSON(const JSONValue&);
  1993. bool LoadXML(const XMLElement&);
  1994. void MarkNetworkUpdate() const;
  1995. void Remove();
  1996. void RemoveAttributeAnimation(const String&);
  1997. void RemoveInstanceDefault();
  1998. void RemoveObjectAnimation();
  1999. void ResetToDefault();
  2000. bool Save(File) const;
  2001. bool Save(VectorBuffer&) const;
  2002. bool SaveJSON(JSONValue&) const;
  2003. bool SaveXML(XMLElement&) const;
  2004. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2005. void SetAnimationTime(float);
  2006. bool SetAttribute(const String&, const Variant&);
  2007. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2008. void SetAttributeAnimationSpeed(const String&, float);
  2009. void SetAttributeAnimationTime(const String&, float);
  2010. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2011. void SetInterceptNetworkUpdate(const String&, bool);
  2012. void SetVertex(uint, const Vector2&);
  2013. void SetVertices(Array<Vector2>);
  2014. const Vector2& GetVertex(uint) const;
  2015. // Properties:
  2016. bool animationEnabled;
  2017. /* readonly */
  2018. Array<Variant> attributeDefaults;
  2019. /* readonly */
  2020. Array<AttributeInfo> attributeInfos;
  2021. Array<Variant> attributes;
  2022. /* readonly */
  2023. String category;
  2024. int categoryBits;
  2025. float density;
  2026. bool enabled;
  2027. /* readonly */
  2028. bool enabledEffective;
  2029. float friction;
  2030. int groupIndex;
  2031. /* readonly */
  2032. uint id;
  2033. /* readonly */
  2034. float inertia;
  2035. int maskBits;
  2036. /* readonly */
  2037. float mass;
  2038. /* readonly */
  2039. Vector2 massCenter;
  2040. /* readonly */
  2041. Node node;
  2042. /* readonly */
  2043. uint numAttributes;
  2044. ObjectAnimation objectAnimation;
  2045. /* readonly */
  2046. int refs;
  2047. /* readonly */
  2048. bool replicated;
  2049. float restitution;
  2050. bool temporary;
  2051. bool trigger;
  2052. /* readonly */
  2053. StringHash type;
  2054. /* readonly */
  2055. String typeName;
  2056. uint vertexCount;
  2057. /* readonly */
  2058. int weakRefs;
  2059. };
  2060. class CollisionShape
  2061. {
  2062. public:
  2063. // Methods:
  2064. void ApplyAttributes();
  2065. void DrawDebugGeometry(DebugRenderer, bool);
  2066. Variant GetAttribute(const String&) const;
  2067. ValueAnimation GetAttributeAnimation(const String&) const;
  2068. float GetAttributeAnimationSpeed(const String&) const;
  2069. float GetAttributeAnimationTime(const String&) const;
  2070. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2071. Variant GetAttributeDefault(const String&) const;
  2072. bool GetInterceptNetworkUpdate(const String&) const;
  2073. bool HasSubscribedToEvent(Object, const String&);
  2074. bool HasSubscribedToEvent(const String&);
  2075. bool Load(File);
  2076. bool Load(VectorBuffer&);
  2077. bool LoadJSON(const JSONValue&);
  2078. bool LoadXML(const XMLElement&);
  2079. void MarkNetworkUpdate() const;
  2080. void Remove();
  2081. void RemoveAttributeAnimation(const String&);
  2082. void RemoveInstanceDefault();
  2083. void RemoveObjectAnimation();
  2084. void ResetToDefault();
  2085. bool Save(File) const;
  2086. bool Save(VectorBuffer&) const;
  2087. bool SaveJSON(JSONValue&) const;
  2088. bool SaveXML(XMLElement&) const;
  2089. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2090. void SetAnimationTime(float);
  2091. bool SetAttribute(const String&, const Variant&);
  2092. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2093. void SetAttributeAnimationSpeed(const String&, float);
  2094. void SetAttributeAnimationTime(const String&, float);
  2095. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2096. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2097. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2098. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2099. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2100. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2101. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2102. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2103. void SetInterceptNetworkUpdate(const String&, bool);
  2104. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2105. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2106. void SetTerrain(uint = 0);
  2107. void SetTransform(const Vector3&, const Quaternion&);
  2108. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2109. // Properties:
  2110. bool animationEnabled;
  2111. /* readonly */
  2112. Array<Variant> attributeDefaults;
  2113. /* readonly */
  2114. Array<AttributeInfo> attributeInfos;
  2115. Array<Variant> attributes;
  2116. /* readonly */
  2117. String category;
  2118. bool enabled;
  2119. /* readonly */
  2120. bool enabledEffective;
  2121. /* readonly */
  2122. uint id;
  2123. uint lodLevel;
  2124. float margin;
  2125. Model model;
  2126. /* readonly */
  2127. Node node;
  2128. /* readonly */
  2129. uint numAttributes;
  2130. ObjectAnimation objectAnimation;
  2131. Vector3 position;
  2132. /* readonly */
  2133. int refs;
  2134. /* readonly */
  2135. bool replicated;
  2136. Quaternion rotation;
  2137. ShapeType shapeType;
  2138. Vector3 size;
  2139. bool temporary;
  2140. /* readonly */
  2141. StringHash type;
  2142. /* readonly */
  2143. String typeName;
  2144. /* readonly */
  2145. int weakRefs;
  2146. /* readonly */
  2147. BoundingBox worldBoundingBox;
  2148. };
  2149. class CollisionShape2D
  2150. {
  2151. public:
  2152. // Methods:
  2153. void ApplyAttributes();
  2154. void DrawDebugGeometry(DebugRenderer, bool);
  2155. Variant GetAttribute(const String&) const;
  2156. ValueAnimation GetAttributeAnimation(const String&) const;
  2157. float GetAttributeAnimationSpeed(const String&) const;
  2158. float GetAttributeAnimationTime(const String&) const;
  2159. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2160. Variant GetAttributeDefault(const String&) const;
  2161. bool GetInterceptNetworkUpdate(const String&) const;
  2162. bool HasSubscribedToEvent(Object, const String&);
  2163. bool HasSubscribedToEvent(const String&);
  2164. bool Load(File);
  2165. bool Load(VectorBuffer&);
  2166. bool LoadJSON(const JSONValue&);
  2167. bool LoadXML(const XMLElement&);
  2168. void MarkNetworkUpdate() const;
  2169. void Remove();
  2170. void RemoveAttributeAnimation(const String&);
  2171. void RemoveInstanceDefault();
  2172. void RemoveObjectAnimation();
  2173. void ResetToDefault();
  2174. bool Save(File) const;
  2175. bool Save(VectorBuffer&) const;
  2176. bool SaveJSON(JSONValue&) const;
  2177. bool SaveXML(XMLElement&) const;
  2178. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2179. void SetAnimationTime(float);
  2180. bool SetAttribute(const String&, const Variant&);
  2181. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2182. void SetAttributeAnimationSpeed(const String&, float);
  2183. void SetAttributeAnimationTime(const String&, float);
  2184. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2185. void SetInterceptNetworkUpdate(const String&, bool);
  2186. // Properties:
  2187. bool animationEnabled;
  2188. /* readonly */
  2189. Array<Variant> attributeDefaults;
  2190. /* readonly */
  2191. Array<AttributeInfo> attributeInfos;
  2192. Array<Variant> attributes;
  2193. /* readonly */
  2194. String category;
  2195. int categoryBits;
  2196. float density;
  2197. bool enabled;
  2198. /* readonly */
  2199. bool enabledEffective;
  2200. float friction;
  2201. int groupIndex;
  2202. /* readonly */
  2203. uint id;
  2204. /* readonly */
  2205. float inertia;
  2206. int maskBits;
  2207. /* readonly */
  2208. float mass;
  2209. /* readonly */
  2210. Vector2 massCenter;
  2211. /* readonly */
  2212. Node node;
  2213. /* readonly */
  2214. uint numAttributes;
  2215. ObjectAnimation objectAnimation;
  2216. /* readonly */
  2217. int refs;
  2218. /* readonly */
  2219. bool replicated;
  2220. float restitution;
  2221. bool temporary;
  2222. bool trigger;
  2223. /* readonly */
  2224. StringHash type;
  2225. /* readonly */
  2226. String typeName;
  2227. /* readonly */
  2228. int weakRefs;
  2229. };
  2230. class Color
  2231. {
  2232. public:
  2233. Color();
  2234. Color(const Color&in);
  2235. Color(float, float, float, float);
  2236. Color(float, float, float);
  2237. Color(float[]&inout);
  2238. // Methods:
  2239. Color Abs() const;
  2240. float Average() const;
  2241. float Chroma() const;
  2242. void Clip(bool);
  2243. bool Equals() const;
  2244. void FromHSL(float, float, float, float);
  2245. void FromHSV(float, float, float, float);
  2246. void FromUInt(uint);
  2247. float Hue() const;
  2248. void Invert(bool);
  2249. Color Lerp(const Color&, float) const;
  2250. float Lightness() const;
  2251. float Luma() const;
  2252. float MaxRGB() const;
  2253. float MinRGB() const;
  2254. float Range() const;
  2255. float SaturationHSL() const;
  2256. float SaturationHSV() const;
  2257. float SumRGB() const;
  2258. Vector3 ToHSL() const;
  2259. Vector3 ToHSV() const;
  2260. String ToString() const;
  2261. uint ToUInt() const;
  2262. float Value() const;
  2263. // Properties:
  2264. float a;
  2265. float b;
  2266. /* readonly */
  2267. Array<float> data;
  2268. float g;
  2269. float r;
  2270. /* readonly */
  2271. Vector3 rgb;
  2272. /* readonly */
  2273. Vector4 rgba;
  2274. };
  2275. class ColorFrame
  2276. {
  2277. public:
  2278. // Properties:
  2279. Color color;
  2280. float time;
  2281. };
  2282. class Component
  2283. {
  2284. public:
  2285. // Methods:
  2286. void ApplyAttributes();
  2287. void DrawDebugGeometry(DebugRenderer, bool);
  2288. Variant GetAttribute(const String&) const;
  2289. ValueAnimation GetAttributeAnimation(const String&) const;
  2290. float GetAttributeAnimationSpeed(const String&) const;
  2291. float GetAttributeAnimationTime(const String&) const;
  2292. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2293. Variant GetAttributeDefault(const String&) const;
  2294. bool GetInterceptNetworkUpdate(const String&) const;
  2295. bool HasSubscribedToEvent(Object, const String&);
  2296. bool HasSubscribedToEvent(const String&);
  2297. bool Load(File);
  2298. bool Load(VectorBuffer&);
  2299. bool LoadJSON(const JSONValue&);
  2300. bool LoadXML(const XMLElement&);
  2301. void MarkNetworkUpdate() const;
  2302. void Remove();
  2303. void RemoveAttributeAnimation(const String&);
  2304. void RemoveInstanceDefault();
  2305. void RemoveObjectAnimation();
  2306. void ResetToDefault();
  2307. bool Save(File) const;
  2308. bool Save(VectorBuffer&) const;
  2309. bool SaveJSON(JSONValue&) const;
  2310. bool SaveXML(XMLElement&) const;
  2311. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2312. void SetAnimationTime(float);
  2313. bool SetAttribute(const String&, const Variant&);
  2314. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2315. void SetAttributeAnimationSpeed(const String&, float);
  2316. void SetAttributeAnimationTime(const String&, float);
  2317. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2318. void SetInterceptNetworkUpdate(const String&, bool);
  2319. // Properties:
  2320. bool animationEnabled;
  2321. /* readonly */
  2322. Array<Variant> attributeDefaults;
  2323. /* readonly */
  2324. Array<AttributeInfo> attributeInfos;
  2325. Array<Variant> attributes;
  2326. /* readonly */
  2327. String category;
  2328. bool enabled;
  2329. /* readonly */
  2330. bool enabledEffective;
  2331. /* readonly */
  2332. uint id;
  2333. /* readonly */
  2334. Node node;
  2335. /* readonly */
  2336. uint numAttributes;
  2337. ObjectAnimation objectAnimation;
  2338. /* readonly */
  2339. int refs;
  2340. /* readonly */
  2341. bool replicated;
  2342. bool temporary;
  2343. /* readonly */
  2344. StringHash type;
  2345. /* readonly */
  2346. String typeName;
  2347. /* readonly */
  2348. int weakRefs;
  2349. };
  2350. class Connection
  2351. {
  2352. public:
  2353. // Methods:
  2354. void Disconnect(int = 0);
  2355. bool HasSubscribedToEvent(Object, const String&);
  2356. bool HasSubscribedToEvent(const String&);
  2357. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2358. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2359. void SendPackageToClient(PackageFile);
  2360. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2361. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2362. String ToString() const;
  2363. // Properties:
  2364. /* readonly */
  2365. String address;
  2366. /* readonly */
  2367. float bytesInPerSec;
  2368. /* readonly */
  2369. float bytesOutPerSec;
  2370. /* readonly */
  2371. String category;
  2372. /* readonly */
  2373. bool client;
  2374. /* readonly */
  2375. bool connectPending;
  2376. /* readonly */
  2377. bool connected;
  2378. Controls controls;
  2379. /* readonly */
  2380. String downloadName;
  2381. /* readonly */
  2382. float downloadProgress;
  2383. VariantMap identity;
  2384. /* readonly */
  2385. float lastHeardTime;
  2386. bool logStatistics;
  2387. /* readonly */
  2388. uint numDownloads;
  2389. /* readonly */
  2390. float packetsInPerSec;
  2391. /* readonly */
  2392. float packetsOutPerSec;
  2393. /* readonly */
  2394. uint16 port;
  2395. Vector3 position;
  2396. /* readonly */
  2397. int refs;
  2398. Quaternion rotation;
  2399. /* readonly */
  2400. float roundTripTime;
  2401. Scene scene;
  2402. /* readonly */
  2403. bool sceneLoaded;
  2404. uint8 timeStamp;
  2405. /* readonly */
  2406. StringHash type;
  2407. /* readonly */
  2408. String typeName;
  2409. /* readonly */
  2410. int weakRefs;
  2411. };
  2412. class Console
  2413. {
  2414. public:
  2415. // Methods:
  2416. void AddAutoComplete(const String&);
  2417. void CopySelectedRows() const;
  2418. bool HasSubscribedToEvent(Object, const String&);
  2419. bool HasSubscribedToEvent(const String&);
  2420. void RemoveAutoComplete(const String&);
  2421. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2422. void Toggle();
  2423. void UpdateElements();
  2424. // Properties:
  2425. bool autoVisibleOnError;
  2426. /* readonly */
  2427. BorderImage background;
  2428. /* readonly */
  2429. String category;
  2430. /* readonly */
  2431. Button closeButton;
  2432. String commandInterpreter;
  2433. XMLFile defaultStyle;
  2434. bool focusOnShow;
  2435. /* readonly */
  2436. uint historyPosition;
  2437. /* readonly */
  2438. Array<String> historyRow;
  2439. /* readonly */
  2440. LineEdit lineEdit;
  2441. uint numBufferedRows;
  2442. uint numHistoryRows;
  2443. uint numRows;
  2444. /* readonly */
  2445. int refs;
  2446. /* readonly */
  2447. StringHash type;
  2448. /* readonly */
  2449. String typeName;
  2450. bool visible;
  2451. /* readonly */
  2452. int weakRefs;
  2453. };
  2454. class Constraint
  2455. {
  2456. public:
  2457. // Methods:
  2458. void ApplyAttributes();
  2459. void DrawDebugGeometry(DebugRenderer, bool);
  2460. Variant GetAttribute(const String&) const;
  2461. ValueAnimation GetAttributeAnimation(const String&) const;
  2462. float GetAttributeAnimationSpeed(const String&) const;
  2463. float GetAttributeAnimationTime(const String&) const;
  2464. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2465. Variant GetAttributeDefault(const String&) const;
  2466. bool GetInterceptNetworkUpdate(const String&) const;
  2467. bool HasSubscribedToEvent(Object, const String&);
  2468. bool HasSubscribedToEvent(const String&);
  2469. bool Load(File);
  2470. bool Load(VectorBuffer&);
  2471. bool LoadJSON(const JSONValue&);
  2472. bool LoadXML(const XMLElement&);
  2473. void MarkNetworkUpdate() const;
  2474. void Remove();
  2475. void RemoveAttributeAnimation(const String&);
  2476. void RemoveInstanceDefault();
  2477. void RemoveObjectAnimation();
  2478. void ResetToDefault();
  2479. bool Save(File) const;
  2480. bool Save(VectorBuffer&) const;
  2481. bool SaveJSON(JSONValue&) const;
  2482. bool SaveXML(XMLElement&) const;
  2483. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2484. void SetAnimationTime(float);
  2485. bool SetAttribute(const String&, const Variant&);
  2486. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2487. void SetAttributeAnimationSpeed(const String&, float);
  2488. void SetAttributeAnimationTime(const String&, float);
  2489. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2490. void SetInterceptNetworkUpdate(const String&, bool);
  2491. // Properties:
  2492. bool animationEnabled;
  2493. /* readonly */
  2494. Array<Variant> attributeDefaults;
  2495. /* readonly */
  2496. Array<AttributeInfo> attributeInfos;
  2497. Array<Variant> attributes;
  2498. /* writeonly */
  2499. Vector3 axis;
  2500. /* readonly */
  2501. String category;
  2502. float cfm;
  2503. ConstraintType constraintType;
  2504. bool disableCollision;
  2505. bool enabled;
  2506. /* readonly */
  2507. bool enabledEffective;
  2508. float erp;
  2509. Vector2 highLimit;
  2510. /* readonly */
  2511. uint id;
  2512. Vector2 lowLimit;
  2513. /* readonly */
  2514. Node node;
  2515. /* readonly */
  2516. uint numAttributes;
  2517. ObjectAnimation objectAnimation;
  2518. /* writeonly */
  2519. Vector3 otherAxis;
  2520. RigidBody otherBody;
  2521. Vector3 otherPosition;
  2522. Quaternion otherRotation;
  2523. /* readonly */
  2524. RigidBody ownBody;
  2525. Vector3 position;
  2526. /* readonly */
  2527. int refs;
  2528. /* readonly */
  2529. bool replicated;
  2530. Quaternion rotation;
  2531. bool temporary;
  2532. /* readonly */
  2533. StringHash type;
  2534. /* readonly */
  2535. String typeName;
  2536. /* readonly */
  2537. int weakRefs;
  2538. Vector3 worldPosition;
  2539. };
  2540. class Constraint2D
  2541. {
  2542. public:
  2543. // Methods:
  2544. void ApplyAttributes();
  2545. void DrawDebugGeometry(DebugRenderer, bool);
  2546. Variant GetAttribute(const String&) const;
  2547. ValueAnimation GetAttributeAnimation(const String&) const;
  2548. float GetAttributeAnimationSpeed(const String&) const;
  2549. float GetAttributeAnimationTime(const String&) const;
  2550. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2551. Variant GetAttributeDefault(const String&) const;
  2552. bool GetInterceptNetworkUpdate(const String&) const;
  2553. bool HasSubscribedToEvent(Object, const String&);
  2554. bool HasSubscribedToEvent(const String&);
  2555. bool Load(File);
  2556. bool Load(VectorBuffer&);
  2557. bool LoadJSON(const JSONValue&);
  2558. bool LoadXML(const XMLElement&);
  2559. void MarkNetworkUpdate() const;
  2560. void Remove();
  2561. void RemoveAttributeAnimation(const String&);
  2562. void RemoveInstanceDefault();
  2563. void RemoveObjectAnimation();
  2564. void ResetToDefault();
  2565. bool Save(File) const;
  2566. bool Save(VectorBuffer&) const;
  2567. bool SaveJSON(JSONValue&) const;
  2568. bool SaveXML(XMLElement&) const;
  2569. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2570. void SetAnimationTime(float);
  2571. bool SetAttribute(const String&, const Variant&);
  2572. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2573. void SetAttributeAnimationSpeed(const String&, float);
  2574. void SetAttributeAnimationTime(const String&, float);
  2575. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2576. void SetInterceptNetworkUpdate(const String&, bool);
  2577. // Properties:
  2578. bool animationEnabled;
  2579. /* readonly */
  2580. Array<Variant> attributeDefaults;
  2581. /* readonly */
  2582. Array<AttributeInfo> attributeInfos;
  2583. Array<Variant> attributes;
  2584. /* readonly */
  2585. String category;
  2586. bool collideConnected;
  2587. bool enabled;
  2588. /* readonly */
  2589. bool enabledEffective;
  2590. /* readonly */
  2591. uint id;
  2592. /* readonly */
  2593. Node node;
  2594. /* readonly */
  2595. uint numAttributes;
  2596. ObjectAnimation objectAnimation;
  2597. RigidBody2D otherBody;
  2598. /* readonly */
  2599. RigidBody2D ownerBody;
  2600. /* readonly */
  2601. int refs;
  2602. /* readonly */
  2603. bool replicated;
  2604. bool temporary;
  2605. /* readonly */
  2606. StringHash type;
  2607. /* readonly */
  2608. String typeName;
  2609. /* readonly */
  2610. int weakRefs;
  2611. };
  2612. class ConstraintDistance2D
  2613. {
  2614. public:
  2615. // Methods:
  2616. void ApplyAttributes();
  2617. void DrawDebugGeometry(DebugRenderer, bool);
  2618. Variant GetAttribute(const String&) const;
  2619. ValueAnimation GetAttributeAnimation(const String&) const;
  2620. float GetAttributeAnimationSpeed(const String&) const;
  2621. float GetAttributeAnimationTime(const String&) const;
  2622. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2623. Variant GetAttributeDefault(const String&) const;
  2624. bool GetInterceptNetworkUpdate(const String&) const;
  2625. bool HasSubscribedToEvent(Object, const String&);
  2626. bool HasSubscribedToEvent(const String&);
  2627. bool Load(File);
  2628. bool Load(VectorBuffer&);
  2629. bool LoadJSON(const JSONValue&);
  2630. bool LoadXML(const XMLElement&);
  2631. void MarkNetworkUpdate() const;
  2632. void Remove();
  2633. void RemoveAttributeAnimation(const String&);
  2634. void RemoveInstanceDefault();
  2635. void RemoveObjectAnimation();
  2636. void ResetToDefault();
  2637. bool Save(File) const;
  2638. bool Save(VectorBuffer&) const;
  2639. bool SaveJSON(JSONValue&) const;
  2640. bool SaveXML(XMLElement&) const;
  2641. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2642. void SetAnimationTime(float);
  2643. bool SetAttribute(const String&, const Variant&);
  2644. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2645. void SetAttributeAnimationSpeed(const String&, float);
  2646. void SetAttributeAnimationTime(const String&, float);
  2647. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2648. void SetInterceptNetworkUpdate(const String&, bool);
  2649. // Properties:
  2650. bool animationEnabled;
  2651. /* readonly */
  2652. Array<Variant> attributeDefaults;
  2653. /* readonly */
  2654. Array<AttributeInfo> attributeInfos;
  2655. Array<Variant> attributes;
  2656. /* readonly */
  2657. String category;
  2658. bool collideConnected;
  2659. float dampingRatio;
  2660. bool enabled;
  2661. /* readonly */
  2662. bool enabledEffective;
  2663. float frequencyHz;
  2664. /* readonly */
  2665. uint id;
  2666. float length;
  2667. /* readonly */
  2668. Node node;
  2669. /* readonly */
  2670. uint numAttributes;
  2671. ObjectAnimation objectAnimation;
  2672. RigidBody2D otherBody;
  2673. Vector2 otherBodyAnchor;
  2674. /* readonly */
  2675. RigidBody2D ownerBody;
  2676. Vector2 ownerBodyAnchor;
  2677. /* readonly */
  2678. int refs;
  2679. /* readonly */
  2680. bool replicated;
  2681. bool temporary;
  2682. /* readonly */
  2683. StringHash type;
  2684. /* readonly */
  2685. String typeName;
  2686. /* readonly */
  2687. int weakRefs;
  2688. };
  2689. class ConstraintFriction2D
  2690. {
  2691. public:
  2692. // Methods:
  2693. void ApplyAttributes();
  2694. void DrawDebugGeometry(DebugRenderer, bool);
  2695. Variant GetAttribute(const String&) const;
  2696. ValueAnimation GetAttributeAnimation(const String&) const;
  2697. float GetAttributeAnimationSpeed(const String&) const;
  2698. float GetAttributeAnimationTime(const String&) const;
  2699. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2700. Variant GetAttributeDefault(const String&) const;
  2701. bool GetInterceptNetworkUpdate(const String&) const;
  2702. bool HasSubscribedToEvent(Object, const String&);
  2703. bool HasSubscribedToEvent(const String&);
  2704. bool Load(File);
  2705. bool Load(VectorBuffer&);
  2706. bool LoadJSON(const JSONValue&);
  2707. bool LoadXML(const XMLElement&);
  2708. void MarkNetworkUpdate() const;
  2709. void Remove();
  2710. void RemoveAttributeAnimation(const String&);
  2711. void RemoveInstanceDefault();
  2712. void RemoveObjectAnimation();
  2713. void ResetToDefault();
  2714. bool Save(File) const;
  2715. bool Save(VectorBuffer&) const;
  2716. bool SaveJSON(JSONValue&) const;
  2717. bool SaveXML(XMLElement&) const;
  2718. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2719. void SetAnimationTime(float);
  2720. bool SetAttribute(const String&, const Variant&);
  2721. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2722. void SetAttributeAnimationSpeed(const String&, float);
  2723. void SetAttributeAnimationTime(const String&, float);
  2724. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2725. void SetInterceptNetworkUpdate(const String&, bool);
  2726. // Properties:
  2727. Vector2 anchor;
  2728. bool animationEnabled;
  2729. /* readonly */
  2730. Array<Variant> attributeDefaults;
  2731. /* readonly */
  2732. Array<AttributeInfo> attributeInfos;
  2733. Array<Variant> attributes;
  2734. /* readonly */
  2735. String category;
  2736. bool collideConnected;
  2737. bool enabled;
  2738. /* readonly */
  2739. bool enabledEffective;
  2740. /* readonly */
  2741. uint id;
  2742. float maxForce;
  2743. float maxTorque;
  2744. /* readonly */
  2745. Node node;
  2746. /* readonly */
  2747. uint numAttributes;
  2748. ObjectAnimation objectAnimation;
  2749. RigidBody2D otherBody;
  2750. /* readonly */
  2751. RigidBody2D ownerBody;
  2752. /* readonly */
  2753. int refs;
  2754. /* readonly */
  2755. bool replicated;
  2756. bool temporary;
  2757. /* readonly */
  2758. StringHash type;
  2759. /* readonly */
  2760. String typeName;
  2761. /* readonly */
  2762. int weakRefs;
  2763. };
  2764. class ConstraintGear2D
  2765. {
  2766. public:
  2767. // Methods:
  2768. void ApplyAttributes();
  2769. void DrawDebugGeometry(DebugRenderer, bool);
  2770. Variant GetAttribute(const String&) const;
  2771. ValueAnimation GetAttributeAnimation(const String&) const;
  2772. float GetAttributeAnimationSpeed(const String&) const;
  2773. float GetAttributeAnimationTime(const String&) const;
  2774. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2775. Variant GetAttributeDefault(const String&) const;
  2776. bool GetInterceptNetworkUpdate(const String&) const;
  2777. bool HasSubscribedToEvent(Object, const String&);
  2778. bool HasSubscribedToEvent(const String&);
  2779. bool Load(File);
  2780. bool Load(VectorBuffer&);
  2781. bool LoadJSON(const JSONValue&);
  2782. bool LoadXML(const XMLElement&);
  2783. void MarkNetworkUpdate() const;
  2784. void Remove();
  2785. void RemoveAttributeAnimation(const String&);
  2786. void RemoveInstanceDefault();
  2787. void RemoveObjectAnimation();
  2788. void ResetToDefault();
  2789. bool Save(File) const;
  2790. bool Save(VectorBuffer&) const;
  2791. bool SaveJSON(JSONValue&) const;
  2792. bool SaveXML(XMLElement&) const;
  2793. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2794. void SetAnimationTime(float);
  2795. bool SetAttribute(const String&, const Variant&);
  2796. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2797. void SetAttributeAnimationSpeed(const String&, float);
  2798. void SetAttributeAnimationTime(const String&, float);
  2799. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2800. void SetInterceptNetworkUpdate(const String&, bool);
  2801. // Properties:
  2802. bool animationEnabled;
  2803. /* readonly */
  2804. Array<Variant> attributeDefaults;
  2805. /* readonly */
  2806. Array<AttributeInfo> attributeInfos;
  2807. Array<Variant> attributes;
  2808. /* readonly */
  2809. String category;
  2810. bool collideConnected;
  2811. bool enabled;
  2812. /* readonly */
  2813. bool enabledEffective;
  2814. /* readonly */
  2815. uint id;
  2816. /* readonly */
  2817. Node node;
  2818. /* readonly */
  2819. uint numAttributes;
  2820. ObjectAnimation objectAnimation;
  2821. RigidBody2D otherBody;
  2822. Constraint2D otherConstraint;
  2823. /* readonly */
  2824. RigidBody2D ownerBody;
  2825. Constraint2D ownerConstraint;
  2826. float ratio;
  2827. /* readonly */
  2828. int refs;
  2829. /* readonly */
  2830. bool replicated;
  2831. bool temporary;
  2832. /* readonly */
  2833. StringHash type;
  2834. /* readonly */
  2835. String typeName;
  2836. /* readonly */
  2837. int weakRefs;
  2838. };
  2839. class ConstraintMotor2D
  2840. {
  2841. public:
  2842. // Methods:
  2843. void ApplyAttributes();
  2844. void DrawDebugGeometry(DebugRenderer, bool);
  2845. Variant GetAttribute(const String&) const;
  2846. ValueAnimation GetAttributeAnimation(const String&) const;
  2847. float GetAttributeAnimationSpeed(const String&) const;
  2848. float GetAttributeAnimationTime(const String&) const;
  2849. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2850. Variant GetAttributeDefault(const String&) const;
  2851. bool GetInterceptNetworkUpdate(const String&) const;
  2852. bool HasSubscribedToEvent(Object, const String&);
  2853. bool HasSubscribedToEvent(const String&);
  2854. bool Load(File);
  2855. bool Load(VectorBuffer&);
  2856. bool LoadJSON(const JSONValue&);
  2857. bool LoadXML(const XMLElement&);
  2858. void MarkNetworkUpdate() const;
  2859. void Remove();
  2860. void RemoveAttributeAnimation(const String&);
  2861. void RemoveInstanceDefault();
  2862. void RemoveObjectAnimation();
  2863. void ResetToDefault();
  2864. bool Save(File) const;
  2865. bool Save(VectorBuffer&) const;
  2866. bool SaveJSON(JSONValue&) const;
  2867. bool SaveXML(XMLElement&) const;
  2868. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2869. void SetAnimationTime(float);
  2870. bool SetAttribute(const String&, const Variant&);
  2871. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2872. void SetAttributeAnimationSpeed(const String&, float);
  2873. void SetAttributeAnimationTime(const String&, float);
  2874. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2875. void SetInterceptNetworkUpdate(const String&, bool);
  2876. // Properties:
  2877. float angularOffset;
  2878. bool animationEnabled;
  2879. /* readonly */
  2880. Array<Variant> attributeDefaults;
  2881. /* readonly */
  2882. Array<AttributeInfo> attributeInfos;
  2883. Array<Variant> attributes;
  2884. /* readonly */
  2885. String category;
  2886. bool collideConnected;
  2887. float correctionFactor;
  2888. bool enabled;
  2889. /* readonly */
  2890. bool enabledEffective;
  2891. /* readonly */
  2892. uint id;
  2893. Vector2 linearOffset;
  2894. float maxForce;
  2895. float maxTorque;
  2896. /* readonly */
  2897. Node node;
  2898. /* readonly */
  2899. uint numAttributes;
  2900. ObjectAnimation objectAnimation;
  2901. RigidBody2D otherBody;
  2902. /* readonly */
  2903. RigidBody2D ownerBody;
  2904. /* readonly */
  2905. int refs;
  2906. /* readonly */
  2907. bool replicated;
  2908. bool temporary;
  2909. /* readonly */
  2910. StringHash type;
  2911. /* readonly */
  2912. String typeName;
  2913. /* readonly */
  2914. int weakRefs;
  2915. };
  2916. class ConstraintMouse2D
  2917. {
  2918. public:
  2919. // Methods:
  2920. void ApplyAttributes();
  2921. void DrawDebugGeometry(DebugRenderer, bool);
  2922. Variant GetAttribute(const String&) const;
  2923. ValueAnimation GetAttributeAnimation(const String&) const;
  2924. float GetAttributeAnimationSpeed(const String&) const;
  2925. float GetAttributeAnimationTime(const String&) const;
  2926. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2927. Variant GetAttributeDefault(const String&) const;
  2928. bool GetInterceptNetworkUpdate(const String&) const;
  2929. bool HasSubscribedToEvent(Object, const String&);
  2930. bool HasSubscribedToEvent(const String&);
  2931. bool Load(File);
  2932. bool Load(VectorBuffer&);
  2933. bool LoadJSON(const JSONValue&);
  2934. bool LoadXML(const XMLElement&);
  2935. void MarkNetworkUpdate() const;
  2936. void Remove();
  2937. void RemoveAttributeAnimation(const String&);
  2938. void RemoveInstanceDefault();
  2939. void RemoveObjectAnimation();
  2940. void ResetToDefault();
  2941. bool Save(File) const;
  2942. bool Save(VectorBuffer&) const;
  2943. bool SaveJSON(JSONValue&) const;
  2944. bool SaveXML(XMLElement&) const;
  2945. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2946. void SetAnimationTime(float);
  2947. bool SetAttribute(const String&, const Variant&);
  2948. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2949. void SetAttributeAnimationSpeed(const String&, float);
  2950. void SetAttributeAnimationTime(const String&, float);
  2951. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2952. void SetInterceptNetworkUpdate(const String&, bool);
  2953. // Properties:
  2954. bool animationEnabled;
  2955. /* readonly */
  2956. Array<Variant> attributeDefaults;
  2957. /* readonly */
  2958. Array<AttributeInfo> attributeInfos;
  2959. Array<Variant> attributes;
  2960. /* readonly */
  2961. String category;
  2962. bool collideConnected;
  2963. float dampingRatio;
  2964. bool enabled;
  2965. /* readonly */
  2966. bool enabledEffective;
  2967. float frequencyHz;
  2968. /* readonly */
  2969. uint id;
  2970. float maxForce;
  2971. /* readonly */
  2972. Node node;
  2973. /* readonly */
  2974. uint numAttributes;
  2975. ObjectAnimation objectAnimation;
  2976. RigidBody2D otherBody;
  2977. /* readonly */
  2978. RigidBody2D ownerBody;
  2979. /* readonly */
  2980. int refs;
  2981. /* readonly */
  2982. bool replicated;
  2983. Vector2 target;
  2984. bool temporary;
  2985. /* readonly */
  2986. StringHash type;
  2987. /* readonly */
  2988. String typeName;
  2989. /* readonly */
  2990. int weakRefs;
  2991. };
  2992. class ConstraintPrismatic2D
  2993. {
  2994. public:
  2995. // Methods:
  2996. void ApplyAttributes();
  2997. void DrawDebugGeometry(DebugRenderer, bool);
  2998. Variant GetAttribute(const String&) const;
  2999. ValueAnimation GetAttributeAnimation(const String&) const;
  3000. float GetAttributeAnimationSpeed(const String&) const;
  3001. float GetAttributeAnimationTime(const String&) const;
  3002. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3003. Variant GetAttributeDefault(const String&) const;
  3004. bool GetInterceptNetworkUpdate(const String&) const;
  3005. bool HasSubscribedToEvent(Object, const String&);
  3006. bool HasSubscribedToEvent(const String&);
  3007. bool Load(File);
  3008. bool Load(VectorBuffer&);
  3009. bool LoadJSON(const JSONValue&);
  3010. bool LoadXML(const XMLElement&);
  3011. void MarkNetworkUpdate() const;
  3012. void Remove();
  3013. void RemoveAttributeAnimation(const String&);
  3014. void RemoveInstanceDefault();
  3015. void RemoveObjectAnimation();
  3016. void ResetToDefault();
  3017. bool Save(File) const;
  3018. bool Save(VectorBuffer&) const;
  3019. bool SaveJSON(JSONValue&) const;
  3020. bool SaveXML(XMLElement&) const;
  3021. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3022. void SetAnimationTime(float);
  3023. bool SetAttribute(const String&, const Variant&);
  3024. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3025. void SetAttributeAnimationSpeed(const String&, float);
  3026. void SetAttributeAnimationTime(const String&, float);
  3027. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3028. void SetInterceptNetworkUpdate(const String&, bool);
  3029. // Properties:
  3030. Vector2 anchor;
  3031. bool animationEnabled;
  3032. /* readonly */
  3033. Array<Variant> attributeDefaults;
  3034. /* readonly */
  3035. Array<AttributeInfo> attributeInfos;
  3036. Array<Variant> attributes;
  3037. Vector2 axis;
  3038. /* readonly */
  3039. String category;
  3040. bool collideConnected;
  3041. bool enableLimit;
  3042. bool enableMotor;
  3043. bool enabled;
  3044. /* readonly */
  3045. bool enabledEffective;
  3046. /* readonly */
  3047. uint id;
  3048. float lowerTranslation;
  3049. float maxMotorForce;
  3050. float motorSpeed;
  3051. /* readonly */
  3052. Node node;
  3053. /* readonly */
  3054. uint numAttributes;
  3055. ObjectAnimation objectAnimation;
  3056. RigidBody2D otherBody;
  3057. /* readonly */
  3058. RigidBody2D ownerBody;
  3059. /* readonly */
  3060. int refs;
  3061. /* readonly */
  3062. bool replicated;
  3063. bool temporary;
  3064. /* readonly */
  3065. StringHash type;
  3066. /* readonly */
  3067. String typeName;
  3068. float upperTranslation;
  3069. /* readonly */
  3070. int weakRefs;
  3071. };
  3072. class ConstraintPulley2D
  3073. {
  3074. public:
  3075. // Methods:
  3076. void ApplyAttributes();
  3077. void DrawDebugGeometry(DebugRenderer, bool);
  3078. Variant GetAttribute(const String&) const;
  3079. ValueAnimation GetAttributeAnimation(const String&) const;
  3080. float GetAttributeAnimationSpeed(const String&) const;
  3081. float GetAttributeAnimationTime(const String&) const;
  3082. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3083. Variant GetAttributeDefault(const String&) const;
  3084. bool GetInterceptNetworkUpdate(const String&) const;
  3085. bool HasSubscribedToEvent(Object, const String&);
  3086. bool HasSubscribedToEvent(const String&);
  3087. bool Load(File);
  3088. bool Load(VectorBuffer&);
  3089. bool LoadJSON(const JSONValue&);
  3090. bool LoadXML(const XMLElement&);
  3091. void MarkNetworkUpdate() const;
  3092. void Remove();
  3093. void RemoveAttributeAnimation(const String&);
  3094. void RemoveInstanceDefault();
  3095. void RemoveObjectAnimation();
  3096. void ResetToDefault();
  3097. bool Save(File) const;
  3098. bool Save(VectorBuffer&) const;
  3099. bool SaveJSON(JSONValue&) const;
  3100. bool SaveXML(XMLElement&) const;
  3101. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3102. void SetAnimationTime(float);
  3103. bool SetAttribute(const String&, const Variant&);
  3104. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3105. void SetAttributeAnimationSpeed(const String&, float);
  3106. void SetAttributeAnimationTime(const String&, float);
  3107. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3108. void SetInterceptNetworkUpdate(const String&, bool);
  3109. // Properties:
  3110. bool animationEnabled;
  3111. /* readonly */
  3112. Array<Variant> attributeDefaults;
  3113. /* readonly */
  3114. Array<AttributeInfo> attributeInfos;
  3115. Array<Variant> attributes;
  3116. /* readonly */
  3117. String category;
  3118. bool collideConnected;
  3119. bool enabled;
  3120. /* readonly */
  3121. bool enabledEffective;
  3122. /* readonly */
  3123. uint id;
  3124. /* readonly */
  3125. Node node;
  3126. /* readonly */
  3127. uint numAttributes;
  3128. ObjectAnimation objectAnimation;
  3129. RigidBody2D otherBody;
  3130. Vector2 otherBodyAnchor;
  3131. Vector2 otherBodyGroundAnchor;
  3132. /* readonly */
  3133. RigidBody2D ownerBody;
  3134. Vector2 ownerBodyAnchor;
  3135. Vector2 ownerBodyGroundAnchor;
  3136. float ratio;
  3137. /* readonly */
  3138. int refs;
  3139. /* readonly */
  3140. bool replicated;
  3141. bool temporary;
  3142. /* readonly */
  3143. StringHash type;
  3144. /* readonly */
  3145. String typeName;
  3146. /* readonly */
  3147. int weakRefs;
  3148. };
  3149. class ConstraintRevolute2D
  3150. {
  3151. public:
  3152. // Methods:
  3153. void ApplyAttributes();
  3154. void DrawDebugGeometry(DebugRenderer, bool);
  3155. Variant GetAttribute(const String&) const;
  3156. ValueAnimation GetAttributeAnimation(const String&) const;
  3157. float GetAttributeAnimationSpeed(const String&) const;
  3158. float GetAttributeAnimationTime(const String&) const;
  3159. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3160. Variant GetAttributeDefault(const String&) const;
  3161. bool GetInterceptNetworkUpdate(const String&) const;
  3162. bool HasSubscribedToEvent(Object, const String&);
  3163. bool HasSubscribedToEvent(const String&);
  3164. bool Load(File);
  3165. bool Load(VectorBuffer&);
  3166. bool LoadJSON(const JSONValue&);
  3167. bool LoadXML(const XMLElement&);
  3168. void MarkNetworkUpdate() const;
  3169. void Remove();
  3170. void RemoveAttributeAnimation(const String&);
  3171. void RemoveInstanceDefault();
  3172. void RemoveObjectAnimation();
  3173. void ResetToDefault();
  3174. bool Save(File) const;
  3175. bool Save(VectorBuffer&) const;
  3176. bool SaveJSON(JSONValue&) const;
  3177. bool SaveXML(XMLElement&) const;
  3178. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3179. void SetAnimationTime(float);
  3180. bool SetAttribute(const String&, const Variant&);
  3181. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3182. void SetAttributeAnimationSpeed(const String&, float);
  3183. void SetAttributeAnimationTime(const String&, float);
  3184. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3185. void SetInterceptNetworkUpdate(const String&, bool);
  3186. // Properties:
  3187. Vector2 anchor;
  3188. bool animationEnabled;
  3189. /* readonly */
  3190. Array<Variant> attributeDefaults;
  3191. /* readonly */
  3192. Array<AttributeInfo> attributeInfos;
  3193. Array<Variant> attributes;
  3194. /* readonly */
  3195. String category;
  3196. bool collideConnected;
  3197. bool enableLimit;
  3198. bool enableMotor;
  3199. bool enabled;
  3200. /* readonly */
  3201. bool enabledEffective;
  3202. /* readonly */
  3203. uint id;
  3204. float lowerAngle;
  3205. float maxMotorTorque;
  3206. float motorSpeed;
  3207. /* readonly */
  3208. Node node;
  3209. /* readonly */
  3210. uint numAttributes;
  3211. ObjectAnimation objectAnimation;
  3212. RigidBody2D otherBody;
  3213. /* readonly */
  3214. RigidBody2D ownerBody;
  3215. /* readonly */
  3216. int refs;
  3217. /* readonly */
  3218. bool replicated;
  3219. bool temporary;
  3220. /* readonly */
  3221. StringHash type;
  3222. /* readonly */
  3223. String typeName;
  3224. float upperAngle;
  3225. /* readonly */
  3226. int weakRefs;
  3227. };
  3228. class ConstraintRope2D
  3229. {
  3230. public:
  3231. // Methods:
  3232. void ApplyAttributes();
  3233. void DrawDebugGeometry(DebugRenderer, bool);
  3234. Variant GetAttribute(const String&) const;
  3235. ValueAnimation GetAttributeAnimation(const String&) const;
  3236. float GetAttributeAnimationSpeed(const String&) const;
  3237. float GetAttributeAnimationTime(const String&) const;
  3238. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3239. Variant GetAttributeDefault(const String&) const;
  3240. bool GetInterceptNetworkUpdate(const String&) const;
  3241. bool HasSubscribedToEvent(Object, const String&);
  3242. bool HasSubscribedToEvent(const String&);
  3243. bool Load(File);
  3244. bool Load(VectorBuffer&);
  3245. bool LoadJSON(const JSONValue&);
  3246. bool LoadXML(const XMLElement&);
  3247. void MarkNetworkUpdate() const;
  3248. void Remove();
  3249. void RemoveAttributeAnimation(const String&);
  3250. void RemoveInstanceDefault();
  3251. void RemoveObjectAnimation();
  3252. void ResetToDefault();
  3253. bool Save(File) const;
  3254. bool Save(VectorBuffer&) const;
  3255. bool SaveJSON(JSONValue&) const;
  3256. bool SaveXML(XMLElement&) const;
  3257. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3258. void SetAnimationTime(float);
  3259. bool SetAttribute(const String&, const Variant&);
  3260. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3261. void SetAttributeAnimationSpeed(const String&, float);
  3262. void SetAttributeAnimationTime(const String&, float);
  3263. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3264. void SetInterceptNetworkUpdate(const String&, bool);
  3265. // Properties:
  3266. bool animationEnabled;
  3267. /* readonly */
  3268. Array<Variant> attributeDefaults;
  3269. /* readonly */
  3270. Array<AttributeInfo> attributeInfos;
  3271. Array<Variant> attributes;
  3272. /* readonly */
  3273. String category;
  3274. bool collideConnected;
  3275. bool enabled;
  3276. /* readonly */
  3277. bool enabledEffective;
  3278. /* readonly */
  3279. uint id;
  3280. float maxLength;
  3281. /* readonly */
  3282. Node node;
  3283. /* readonly */
  3284. uint numAttributes;
  3285. ObjectAnimation objectAnimation;
  3286. RigidBody2D otherBody;
  3287. Vector2 otherBodyAnchor;
  3288. /* readonly */
  3289. RigidBody2D ownerBody;
  3290. Vector2 ownerBodyAnchor;
  3291. /* readonly */
  3292. int refs;
  3293. /* readonly */
  3294. bool replicated;
  3295. bool temporary;
  3296. /* readonly */
  3297. StringHash type;
  3298. /* readonly */
  3299. String typeName;
  3300. /* readonly */
  3301. int weakRefs;
  3302. };
  3303. class ConstraintWeld2D
  3304. {
  3305. public:
  3306. // Methods:
  3307. void ApplyAttributes();
  3308. void DrawDebugGeometry(DebugRenderer, bool);
  3309. Variant GetAttribute(const String&) const;
  3310. ValueAnimation GetAttributeAnimation(const String&) const;
  3311. float GetAttributeAnimationSpeed(const String&) const;
  3312. float GetAttributeAnimationTime(const String&) const;
  3313. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3314. Variant GetAttributeDefault(const String&) const;
  3315. bool GetInterceptNetworkUpdate(const String&) const;
  3316. bool HasSubscribedToEvent(Object, const String&);
  3317. bool HasSubscribedToEvent(const String&);
  3318. bool Load(File);
  3319. bool Load(VectorBuffer&);
  3320. bool LoadJSON(const JSONValue&);
  3321. bool LoadXML(const XMLElement&);
  3322. void MarkNetworkUpdate() const;
  3323. void Remove();
  3324. void RemoveAttributeAnimation(const String&);
  3325. void RemoveInstanceDefault();
  3326. void RemoveObjectAnimation();
  3327. void ResetToDefault();
  3328. bool Save(File) const;
  3329. bool Save(VectorBuffer&) const;
  3330. bool SaveJSON(JSONValue&) const;
  3331. bool SaveXML(XMLElement&) const;
  3332. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3333. void SetAnimationTime(float);
  3334. bool SetAttribute(const String&, const Variant&);
  3335. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3336. void SetAttributeAnimationSpeed(const String&, float);
  3337. void SetAttributeAnimationTime(const String&, float);
  3338. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3339. void SetInterceptNetworkUpdate(const String&, bool);
  3340. // Properties:
  3341. Vector2 anchor;
  3342. bool animationEnabled;
  3343. /* readonly */
  3344. Array<Variant> attributeDefaults;
  3345. /* readonly */
  3346. Array<AttributeInfo> attributeInfos;
  3347. Array<Variant> attributes;
  3348. /* readonly */
  3349. String category;
  3350. bool collideConnected;
  3351. float dampingRatio;
  3352. bool enabled;
  3353. /* readonly */
  3354. bool enabledEffective;
  3355. float frequencyHz;
  3356. /* readonly */
  3357. uint id;
  3358. /* readonly */
  3359. Node node;
  3360. /* readonly */
  3361. uint numAttributes;
  3362. ObjectAnimation objectAnimation;
  3363. RigidBody2D otherBody;
  3364. /* readonly */
  3365. RigidBody2D ownerBody;
  3366. /* readonly */
  3367. int refs;
  3368. /* readonly */
  3369. bool replicated;
  3370. bool temporary;
  3371. /* readonly */
  3372. StringHash type;
  3373. /* readonly */
  3374. String typeName;
  3375. /* readonly */
  3376. int weakRefs;
  3377. };
  3378. class ConstraintWheel2D
  3379. {
  3380. public:
  3381. // Methods:
  3382. void ApplyAttributes();
  3383. void DrawDebugGeometry(DebugRenderer, bool);
  3384. Variant GetAttribute(const String&) const;
  3385. ValueAnimation GetAttributeAnimation(const String&) const;
  3386. float GetAttributeAnimationSpeed(const String&) const;
  3387. float GetAttributeAnimationTime(const String&) const;
  3388. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3389. Variant GetAttributeDefault(const String&) const;
  3390. bool GetInterceptNetworkUpdate(const String&) const;
  3391. bool HasSubscribedToEvent(Object, const String&);
  3392. bool HasSubscribedToEvent(const String&);
  3393. bool Load(File);
  3394. bool Load(VectorBuffer&);
  3395. bool LoadJSON(const JSONValue&);
  3396. bool LoadXML(const XMLElement&);
  3397. void MarkNetworkUpdate() const;
  3398. void Remove();
  3399. void RemoveAttributeAnimation(const String&);
  3400. void RemoveInstanceDefault();
  3401. void RemoveObjectAnimation();
  3402. void ResetToDefault();
  3403. bool Save(File) const;
  3404. bool Save(VectorBuffer&) const;
  3405. bool SaveJSON(JSONValue&) const;
  3406. bool SaveXML(XMLElement&) const;
  3407. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3408. void SetAnimationTime(float);
  3409. bool SetAttribute(const String&, const Variant&);
  3410. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3411. void SetAttributeAnimationSpeed(const String&, float);
  3412. void SetAttributeAnimationTime(const String&, float);
  3413. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3414. void SetInterceptNetworkUpdate(const String&, bool);
  3415. // Properties:
  3416. Vector2 anchor;
  3417. bool animationEnabled;
  3418. /* readonly */
  3419. Array<Variant> attributeDefaults;
  3420. /* readonly */
  3421. Array<AttributeInfo> attributeInfos;
  3422. Array<Variant> attributes;
  3423. Vector2 axis;
  3424. /* readonly */
  3425. String category;
  3426. bool collideConnected;
  3427. float dampingRatio;
  3428. bool enableMotor;
  3429. bool enabled;
  3430. /* readonly */
  3431. bool enabledEffective;
  3432. float frequencyHz;
  3433. /* readonly */
  3434. uint id;
  3435. float maxMotorTorque;
  3436. float motorSpeed;
  3437. /* readonly */
  3438. Node node;
  3439. /* readonly */
  3440. uint numAttributes;
  3441. ObjectAnimation objectAnimation;
  3442. RigidBody2D otherBody;
  3443. /* readonly */
  3444. RigidBody2D ownerBody;
  3445. /* readonly */
  3446. int refs;
  3447. /* readonly */
  3448. bool replicated;
  3449. bool temporary;
  3450. /* readonly */
  3451. StringHash type;
  3452. /* readonly */
  3453. String typeName;
  3454. /* readonly */
  3455. int weakRefs;
  3456. };
  3457. class Controls
  3458. {
  3459. public:
  3460. ~Controls();
  3461. Controls();
  3462. Controls(const Controls&in);
  3463. // Methods:
  3464. bool IsDown(uint) const;
  3465. bool IsPressed(uint, const Controls&) const;
  3466. void Reset();
  3467. void Set(uint, bool);
  3468. // Properties:
  3469. uint buttons;
  3470. VariantMap extraData;
  3471. float pitch;
  3472. float yaw;
  3473. };
  3474. class CrowdAgent
  3475. {
  3476. public:
  3477. // Methods:
  3478. void ApplyAttributes();
  3479. void DrawDebugGeometry(DebugRenderer, bool);
  3480. void DrawDebugGeometry(bool);
  3481. Variant GetAttribute(const String&) const;
  3482. ValueAnimation GetAttributeAnimation(const String&) const;
  3483. float GetAttributeAnimationSpeed(const String&) const;
  3484. float GetAttributeAnimationTime(const String&) const;
  3485. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3486. Variant GetAttributeDefault(const String&) const;
  3487. bool GetInterceptNetworkUpdate(const String&) const;
  3488. bool HasSubscribedToEvent(Object, const String&);
  3489. bool HasSubscribedToEvent(const String&);
  3490. bool Load(File);
  3491. bool Load(VectorBuffer&);
  3492. bool LoadJSON(const JSONValue&);
  3493. bool LoadXML(const XMLElement&);
  3494. void MarkNetworkUpdate() const;
  3495. void Remove();
  3496. void RemoveAttributeAnimation(const String&);
  3497. void RemoveInstanceDefault();
  3498. void RemoveObjectAnimation();
  3499. void ResetTarget();
  3500. void ResetToDefault();
  3501. bool Save(File) const;
  3502. bool Save(VectorBuffer&) const;
  3503. bool SaveJSON(JSONValue&) const;
  3504. bool SaveXML(XMLElement&) const;
  3505. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3506. void SetAnimationTime(float);
  3507. bool SetAttribute(const String&, const Variant&);
  3508. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3509. void SetAttributeAnimationSpeed(const String&, float);
  3510. void SetAttributeAnimationTime(const String&, float);
  3511. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3512. void SetInterceptNetworkUpdate(const String&, bool);
  3513. // Properties:
  3514. /* readonly */
  3515. Vector3 actualVelocity;
  3516. /* readonly */
  3517. CrowdAgentState agentState;
  3518. bool animationEnabled;
  3519. /* readonly */
  3520. bool arrived;
  3521. /* readonly */
  3522. Array<Variant> attributeDefaults;
  3523. /* readonly */
  3524. Array<AttributeInfo> attributeInfos;
  3525. Array<Variant> attributes;
  3526. /* readonly */
  3527. String category;
  3528. /* readonly */
  3529. Vector3 desiredVelocity;
  3530. bool enabled;
  3531. /* readonly */
  3532. bool enabledEffective;
  3533. float height;
  3534. /* readonly */
  3535. uint id;
  3536. /* readonly */
  3537. bool inCrowd;
  3538. float maxAccel;
  3539. float maxSpeed;
  3540. NavigationPushiness navigationPushiness;
  3541. NavigationQuality navigationQuality;
  3542. /* readonly */
  3543. Node node;
  3544. /* readonly */
  3545. uint numAttributes;
  3546. ObjectAnimation objectAnimation;
  3547. uint obstacleAvoidanceType;
  3548. /* readonly */
  3549. Vector3 position;
  3550. uint queryFilterType;
  3551. float radius;
  3552. /* readonly */
  3553. int refs;
  3554. /* readonly */
  3555. bool replicated;
  3556. /* readonly */
  3557. bool requestedTarget;
  3558. /* readonly */
  3559. CrowdAgentRequestedTarget requestedTargetType;
  3560. Vector3 targetPosition;
  3561. /* readonly */
  3562. CrowdAgentTargetState targetState;
  3563. Vector3 targetVelocity;
  3564. bool temporary;
  3565. /* readonly */
  3566. StringHash type;
  3567. /* readonly */
  3568. String typeName;
  3569. bool updateNodePosition;
  3570. /* readonly */
  3571. int weakRefs;
  3572. };
  3573. class CrowdManager
  3574. {
  3575. public:
  3576. // Methods:
  3577. void ApplyAttributes();
  3578. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3579. void DrawDebugGeometry(DebugRenderer, bool);
  3580. void DrawDebugGeometry(bool);
  3581. Vector3 FindNearestPoint(const Vector3&, int);
  3582. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3583. float GetAreaCost(uint, uint);
  3584. Variant GetAttribute(const String&) const;
  3585. ValueAnimation GetAttributeAnimation(const String&) const;
  3586. float GetAttributeAnimationSpeed(const String&) const;
  3587. float GetAttributeAnimationTime(const String&) const;
  3588. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3589. Variant GetAttributeDefault(const String&) const;
  3590. float GetDistanceToWall(const Vector3&, float, int);
  3591. uint16 GetExcludeFlags(uint);
  3592. uint16 GetIncludeFlags(uint);
  3593. bool GetInterceptNetworkUpdate(const String&) const;
  3594. Vector3 GetRandomPoint(int);
  3595. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3596. bool HasSubscribedToEvent(Object, const String&);
  3597. bool HasSubscribedToEvent(const String&);
  3598. bool Load(File);
  3599. bool Load(VectorBuffer&);
  3600. bool LoadJSON(const JSONValue&);
  3601. bool LoadXML(const XMLElement&);
  3602. void MarkNetworkUpdate() const;
  3603. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3604. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3605. void Remove();
  3606. void RemoveAttributeAnimation(const String&);
  3607. void RemoveInstanceDefault();
  3608. void RemoveObjectAnimation();
  3609. void ResetCrowdTarget(Node = null);
  3610. void ResetToDefault();
  3611. bool Save(File) const;
  3612. bool Save(VectorBuffer&) const;
  3613. bool SaveJSON(JSONValue&) const;
  3614. bool SaveXML(XMLElement&) const;
  3615. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3616. void SetAnimationTime(float);
  3617. void SetAreaCost(uint, uint, float);
  3618. bool SetAttribute(const String&, const Variant&);
  3619. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3620. void SetAttributeAnimationSpeed(const String&, float);
  3621. void SetAttributeAnimationTime(const String&, float);
  3622. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3623. void SetCrowdTarget(const Vector3&, Node = null);
  3624. void SetCrowdVelocity(const Vector3&, Node = null);
  3625. void SetExcludeFlags(uint, uint16);
  3626. void SetIncludeFlags(uint, uint16);
  3627. void SetInterceptNetworkUpdate(const String&, bool);
  3628. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3629. // Properties:
  3630. bool animationEnabled;
  3631. /* readonly */
  3632. Array<Variant> attributeDefaults;
  3633. /* readonly */
  3634. Array<AttributeInfo> attributeInfos;
  3635. Array<Variant> attributes;
  3636. /* readonly */
  3637. String category;
  3638. bool enabled;
  3639. /* readonly */
  3640. bool enabledEffective;
  3641. /* readonly */
  3642. uint id;
  3643. float maxAgentRadius;
  3644. int maxAgents;
  3645. NavigationMesh navMesh;
  3646. /* readonly */
  3647. Node node;
  3648. /* readonly */
  3649. Array<uint> numAreas;
  3650. /* readonly */
  3651. uint numAttributes;
  3652. /* readonly */
  3653. uint numObstacleAvoidanceTypes;
  3654. /* readonly */
  3655. uint numQueryFilterTypes;
  3656. ObjectAnimation objectAnimation;
  3657. /* readonly */
  3658. int refs;
  3659. /* readonly */
  3660. bool replicated;
  3661. bool temporary;
  3662. /* readonly */
  3663. StringHash type;
  3664. /* readonly */
  3665. String typeName;
  3666. /* readonly */
  3667. int weakRefs;
  3668. };
  3669. class CrowdObstacleAvoidanceParams
  3670. {
  3671. public:
  3672. // Properties:
  3673. uint8 adaptiveDepth;
  3674. uint8 adaptiveDivs;
  3675. uint8 adaptiveRings;
  3676. uint8 gridSize;
  3677. float horizTime;
  3678. float velBias;
  3679. float weightCurVel;
  3680. float weightDesVel;
  3681. float weightSide;
  3682. float weightToi;
  3683. };
  3684. class Cursor
  3685. {
  3686. public:
  3687. Cursor();
  3688. Cursor(const String&in);
  3689. // Methods:
  3690. void AddChild(UIElement);
  3691. void AddTag(const String&);
  3692. void AddTags(const String&, int8 = ';');
  3693. void ApplyAttributes();
  3694. void BringToFront();
  3695. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3696. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3697. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3698. void DisableLayoutUpdate();
  3699. IntVector2 ElementToScreen(const IntVector2&);
  3700. void EnableLayoutUpdate();
  3701. uint FindChild(UIElement) const;
  3702. Variant GetAttribute(const String&) const;
  3703. ValueAnimation GetAttributeAnimation(const String&) const;
  3704. float GetAttributeAnimationSpeed(const String&) const;
  3705. float GetAttributeAnimationTime(const String&) const;
  3706. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3707. Variant GetAttributeDefault(const String&) const;
  3708. UIElement GetChild(const String&, bool = false) const;
  3709. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3710. Array<UIElement> GetChildren(bool = false) const;
  3711. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3712. UIElement GetElementEventSender() const;
  3713. bool GetInterceptNetworkUpdate(const String&) const;
  3714. uint GetNumChildren(bool) const;
  3715. bool HasSubscribedToEvent(Object, const String&);
  3716. bool HasSubscribedToEvent(const String&);
  3717. bool HasTag(const String&) const;
  3718. void InsertChild(uint, UIElement);
  3719. bool IsChildOf(UIElement) const;
  3720. bool IsInside(IntVector2, bool);
  3721. bool IsInsideCombined(IntVector2, bool);
  3722. bool Load(File);
  3723. bool Load(VectorBuffer&);
  3724. UIElement LoadChildXML(XMLFile, XMLFile);
  3725. UIElement LoadChildXML(const XMLElement&, XMLFile);
  3726. bool LoadJSON(const JSONValue&);
  3727. bool LoadXML(File);
  3728. bool LoadXML(VectorBuffer&);
  3729. bool LoadXML(XMLFile, XMLFile);
  3730. bool LoadXML(const XMLElement&, XMLFile);
  3731. bool LoadXML(const XMLElement&);
  3732. void MarkNetworkUpdate() const;
  3733. void Remove();
  3734. void RemoveAllChildren();
  3735. void RemoveAllTags();
  3736. void RemoveAttributeAnimation(const String&);
  3737. void RemoveChild(UIElement, uint = 0);
  3738. void RemoveChild(uint);
  3739. void RemoveInstanceDefault();
  3740. void RemoveObjectAnimation();
  3741. bool RemoveTag(const String&);
  3742. void ResetDeepEnabled();
  3743. void ResetToDefault();
  3744. bool Save(File) const;
  3745. bool Save(VectorBuffer&) const;
  3746. bool SaveJSON(JSONValue&) const;
  3747. bool SaveXML(File, const String& = "\t");
  3748. bool SaveXML(VectorBuffer&, const String& = "\t");
  3749. bool SaveXML(XMLElement&) const;
  3750. IntVector2 ScreenToElement(const IntVector2&);
  3751. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3752. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3753. void SetAnimationTime(float);
  3754. bool SetAttribute(const String&, const Variant&);
  3755. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3756. void SetAttributeAnimationSpeed(const String&, float);
  3757. void SetAttributeAnimationTime(const String&, float);
  3758. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3759. void SetDeepEnabled(bool);
  3760. void SetEnabledRecursive(bool);
  3761. void SetFixedHeight(int);
  3762. void SetFixedSize(int, int);
  3763. void SetFixedWidth(int);
  3764. void SetFullImageRect();
  3765. void SetHoverOffset(int, int);
  3766. void SetInterceptNetworkUpdate(const String&, bool);
  3767. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3768. void SetMaxAnchor(float, float);
  3769. void SetMaxSize(int, int);
  3770. void SetMinAnchor(float, float);
  3771. void SetMinSize(int, int);
  3772. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3773. void SetPivot(float, float);
  3774. void SetPosition(int, int);
  3775. void SetShape(CursorShape);
  3776. void SetShape(const String&);
  3777. void SetSize(int, int);
  3778. bool SetStyle(const String&, XMLFile = null);
  3779. bool SetStyle(const XMLElement&);
  3780. bool SetStyleAuto(XMLFile = null);
  3781. void UpdateLayout();
  3782. const Variant& GetVar(const StringHash&);
  3783. // Properties:
  3784. bool animationEnabled;
  3785. /* readonly */
  3786. Array<Variant> attributeDefaults;
  3787. /* readonly */
  3788. Array<AttributeInfo> attributeInfos;
  3789. Array<Variant> attributes;
  3790. BlendMode blendMode;
  3791. IntRect border;
  3792. bool bringToBack;
  3793. bool bringToFront;
  3794. /* readonly */
  3795. String category;
  3796. /* readonly */
  3797. IntVector2 childOffset;
  3798. /* readonly */
  3799. Array<UIElement> children;
  3800. IntRect clipBorder;
  3801. bool clipChildren;
  3802. /* writeonly */
  3803. Color color;
  3804. /* readonly */
  3805. bool colorGradient;
  3806. Array<Color> colors;
  3807. /* readonly */
  3808. IntRect combinedScreenRect;
  3809. XMLFile defaultStyle;
  3810. /* readonly */
  3811. float derivedOpacity;
  3812. /* readonly */
  3813. uint dragButtonCombo;
  3814. /* readonly */
  3815. int dragButtonCount;
  3816. uint dragDropMode;
  3817. bool editable;
  3818. bool elementEventSender;
  3819. bool enableAnchor;
  3820. bool enabled;
  3821. /* readonly */
  3822. bool enabledSelf;
  3823. /* readonly */
  3824. bool fixedHeight;
  3825. /* readonly */
  3826. bool fixedSize;
  3827. /* readonly */
  3828. bool fixedWidth;
  3829. bool focus;
  3830. FocusMode focusMode;
  3831. int height;
  3832. HorizontalAlignment horizontalAlignment;
  3833. IntVector2 hoverOffset;
  3834. /* readonly */
  3835. bool hovering;
  3836. IntRect imageBorder;
  3837. IntRect imageRect;
  3838. int indent;
  3839. int indentSpacing;
  3840. /* readonly */
  3841. int indentWidth;
  3842. bool internal;
  3843. IntRect layoutBorder;
  3844. Vector2 layoutFlexScale;
  3845. LayoutMode layoutMode;
  3846. int layoutSpacing;
  3847. Vector2 maxAnchor;
  3848. int maxHeight;
  3849. IntVector2 maxOffset;
  3850. IntVector2 maxSize;
  3851. int maxWidth;
  3852. Vector2 minAnchor;
  3853. int minHeight;
  3854. IntVector2 minOffset;
  3855. IntVector2 minSize;
  3856. int minWidth;
  3857. String name;
  3858. /* readonly */
  3859. uint numAllChildren;
  3860. /* readonly */
  3861. uint numAttributes;
  3862. /* readonly */
  3863. uint numChildren;
  3864. ObjectAnimation objectAnimation;
  3865. float opacity;
  3866. UIElement parent;
  3867. Vector2 pivot;
  3868. IntVector2 position;
  3869. int priority;
  3870. /* readonly */
  3871. int refs;
  3872. /* readonly */
  3873. UIElement root;
  3874. /* readonly */
  3875. IntVector2 screenPosition;
  3876. bool selected;
  3877. String shape;
  3878. IntVector2 size;
  3879. bool sortChildren;
  3880. String style;
  3881. /* readonly */
  3882. Array<String> tags;
  3883. bool temporary;
  3884. Texture texture;
  3885. bool tiled;
  3886. TraversalMode traversalMode;
  3887. /* readonly */
  3888. StringHash type;
  3889. /* readonly */
  3890. String typeName;
  3891. bool useDerivedOpacity;
  3892. bool useSystemShapes;
  3893. /* readonly */
  3894. VariantMap vars;
  3895. VerticalAlignment verticalAlignment;
  3896. bool visible;
  3897. /* readonly */
  3898. bool visibleEffective;
  3899. /* readonly */
  3900. int weakRefs;
  3901. int width;
  3902. };
  3903. class CustomGeometry
  3904. {
  3905. public:
  3906. // Methods:
  3907. void ApplyAttributes();
  3908. void BeginGeometry(uint, PrimitiveType);
  3909. void Clear();
  3910. void Commit();
  3911. void DefineColor(const Color&);
  3912. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3913. void DefineNormal(const Vector3&);
  3914. void DefineTangent(const Vector4&);
  3915. void DefineTexCoord(const Vector2&);
  3916. void DefineVertex(const Vector3&);
  3917. void DrawDebugGeometry(DebugRenderer, bool);
  3918. Variant GetAttribute(const String&) const;
  3919. ValueAnimation GetAttributeAnimation(const String&) const;
  3920. float GetAttributeAnimationSpeed(const String&) const;
  3921. float GetAttributeAnimationTime(const String&) const;
  3922. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3923. Variant GetAttributeDefault(const String&) const;
  3924. bool GetInterceptNetworkUpdate(const String&) const;
  3925. CustomGeometryVertex GetVertex(uint, uint);
  3926. bool HasSubscribedToEvent(Object, const String&);
  3927. bool HasSubscribedToEvent(const String&);
  3928. bool IsInView(Camera) const;
  3929. bool Load(File);
  3930. bool Load(VectorBuffer&);
  3931. bool LoadJSON(const JSONValue&);
  3932. bool LoadXML(const XMLElement&);
  3933. void MarkNetworkUpdate() const;
  3934. void Remove();
  3935. void RemoveAttributeAnimation(const String&);
  3936. void RemoveInstanceDefault();
  3937. void RemoveObjectAnimation();
  3938. void ResetToDefault();
  3939. bool Save(File) const;
  3940. bool Save(VectorBuffer&) const;
  3941. bool SaveJSON(JSONValue&) const;
  3942. bool SaveXML(XMLElement&) const;
  3943. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3944. void SetAnimationTime(float);
  3945. bool SetAttribute(const String&, const Variant&);
  3946. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3947. void SetAttributeAnimationSpeed(const String&, float);
  3948. void SetAttributeAnimationTime(const String&, float);
  3949. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3950. void SetInterceptNetworkUpdate(const String&, bool);
  3951. // Properties:
  3952. bool animationEnabled;
  3953. /* readonly */
  3954. Array<Variant> attributeDefaults;
  3955. /* readonly */
  3956. Array<AttributeInfo> attributeInfos;
  3957. Array<Variant> attributes;
  3958. /* readonly */
  3959. BoundingBox boundingBox;
  3960. bool castShadows;
  3961. /* readonly */
  3962. String category;
  3963. float drawDistance;
  3964. bool dynamic;
  3965. bool enabled;
  3966. /* readonly */
  3967. bool enabledEffective;
  3968. /* readonly */
  3969. uint id;
  3970. /* readonly */
  3971. bool inView;
  3972. uint lightMask;
  3973. float lodBias;
  3974. /* writeonly */
  3975. Material material;
  3976. Array<Material> materials;
  3977. uint maxLights;
  3978. /* readonly */
  3979. Node node;
  3980. /* readonly */
  3981. uint numAttributes;
  3982. uint numGeometries;
  3983. /* readonly */
  3984. Array<uint> numVertices;
  3985. ObjectAnimation objectAnimation;
  3986. bool occludee;
  3987. bool occluder;
  3988. /* readonly */
  3989. int refs;
  3990. /* readonly */
  3991. bool replicated;
  3992. float shadowDistance;
  3993. uint shadowMask;
  3994. bool temporary;
  3995. /* readonly */
  3996. StringHash type;
  3997. /* readonly */
  3998. String typeName;
  3999. uint viewMask;
  4000. /* readonly */
  4001. int weakRefs;
  4002. /* readonly */
  4003. BoundingBox worldBoundingBox;
  4004. /* readonly */
  4005. Zone zone;
  4006. uint zoneMask;
  4007. };
  4008. class CustomGeometryVertex
  4009. {
  4010. public:
  4011. // Properties:
  4012. uint color;
  4013. Vector3 normal;
  4014. Vector3 position;
  4015. Vector4 tangent;
  4016. Vector2 texCoord;
  4017. };
  4018. class Database
  4019. {
  4020. public:
  4021. // Methods:
  4022. DbConnection Connect(const String&);
  4023. void Disconnect(DbConnection);
  4024. bool HasSubscribedToEvent(Object, const String&);
  4025. bool HasSubscribedToEvent(const String&);
  4026. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4027. // Properties:
  4028. /* readonly */
  4029. String category;
  4030. uint poolSize;
  4031. /* readonly */
  4032. bool pooling;
  4033. /* readonly */
  4034. int refs;
  4035. /* readonly */
  4036. StringHash type;
  4037. /* readonly */
  4038. String typeName;
  4039. /* readonly */
  4040. int weakRefs;
  4041. };
  4042. class DbConnection
  4043. {
  4044. public:
  4045. // Methods:
  4046. DbResult Execute(const String&, bool = false);
  4047. bool HasSubscribedToEvent(Object, const String&);
  4048. bool HasSubscribedToEvent(const String&);
  4049. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4050. // Properties:
  4051. /* readonly */
  4052. String category;
  4053. /* readonly */
  4054. bool connected;
  4055. /* readonly */
  4056. String connectionString;
  4057. /* readonly */
  4058. int refs;
  4059. /* readonly */
  4060. StringHash type;
  4061. /* readonly */
  4062. String typeName;
  4063. /* readonly */
  4064. int weakRefs;
  4065. };
  4066. class DbResult
  4067. {
  4068. public:
  4069. ~DbResult();
  4070. DbResult();
  4071. DbResult(const DbResult&in);
  4072. // Properties:
  4073. /* readonly */
  4074. Array<String> columns;
  4075. /* readonly */
  4076. int64 numAffectedRows;
  4077. /* readonly */
  4078. uint numColumns;
  4079. /* readonly */
  4080. uint numRows;
  4081. /* readonly */
  4082. Array<Array<Variant>> row;
  4083. };
  4084. class DebugHud
  4085. {
  4086. public:
  4087. // Methods:
  4088. void ClearAppStats();
  4089. bool HasSubscribedToEvent(Object, const String&);
  4090. bool HasSubscribedToEvent(const String&);
  4091. void ResetAppStats(const String&);
  4092. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4093. void SetAppStats(const String&, const String&);
  4094. void SetAppStats(const String&, const Variant&);
  4095. void Toggle(uint);
  4096. void ToggleAll();
  4097. void Update();
  4098. // Properties:
  4099. /* readonly */
  4100. String category;
  4101. XMLFile defaultStyle;
  4102. /* readonly */
  4103. Text memoryText;
  4104. uint mode;
  4105. /* readonly */
  4106. Text modeText;
  4107. float profilerInterval;
  4108. uint profilerMaxDepth;
  4109. /* readonly */
  4110. Text profilerText;
  4111. /* readonly */
  4112. int refs;
  4113. /* readonly */
  4114. Text statsText;
  4115. /* readonly */
  4116. StringHash type;
  4117. /* readonly */
  4118. String typeName;
  4119. bool useRendererStats;
  4120. /* readonly */
  4121. int weakRefs;
  4122. };
  4123. class DebugRenderer
  4124. {
  4125. public:
  4126. // Methods:
  4127. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  4128. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  4129. void AddCross(const Vector3&, float, const Color&, bool = true);
  4130. void AddFrustum(const Frustum&, const Color&, bool = true);
  4131. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  4132. void AddNode(Node, float = 1.0, bool = true);
  4133. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4134. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  4135. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  4136. void AddSkeleton(Skeleton, const Color&, bool = true);
  4137. void AddSphere(const Sphere&, const Color&, bool = true);
  4138. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  4139. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4140. void ApplyAttributes();
  4141. void DrawDebugGeometry(DebugRenderer, bool);
  4142. Variant GetAttribute(const String&) const;
  4143. ValueAnimation GetAttributeAnimation(const String&) const;
  4144. float GetAttributeAnimationSpeed(const String&) const;
  4145. float GetAttributeAnimationTime(const String&) const;
  4146. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4147. Variant GetAttributeDefault(const String&) const;
  4148. bool GetInterceptNetworkUpdate(const String&) const;
  4149. bool HasSubscribedToEvent(Object, const String&);
  4150. bool HasSubscribedToEvent(const String&);
  4151. bool Load(File);
  4152. bool Load(VectorBuffer&);
  4153. bool LoadJSON(const JSONValue&);
  4154. bool LoadXML(const XMLElement&);
  4155. void MarkNetworkUpdate() const;
  4156. void Remove();
  4157. void RemoveAttributeAnimation(const String&);
  4158. void RemoveInstanceDefault();
  4159. void RemoveObjectAnimation();
  4160. void ResetToDefault();
  4161. bool Save(File) const;
  4162. bool Save(VectorBuffer&) const;
  4163. bool SaveJSON(JSONValue&) const;
  4164. bool SaveXML(XMLElement&) const;
  4165. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4166. void SetAnimationTime(float);
  4167. bool SetAttribute(const String&, const Variant&);
  4168. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4169. void SetAttributeAnimationSpeed(const String&, float);
  4170. void SetAttributeAnimationTime(const String&, float);
  4171. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4172. void SetInterceptNetworkUpdate(const String&, bool);
  4173. // Properties:
  4174. bool animationEnabled;
  4175. /* readonly */
  4176. Array<Variant> attributeDefaults;
  4177. /* readonly */
  4178. Array<AttributeInfo> attributeInfos;
  4179. Array<Variant> attributes;
  4180. /* readonly */
  4181. String category;
  4182. bool enabled;
  4183. /* readonly */
  4184. bool enabledEffective;
  4185. /* readonly */
  4186. uint id;
  4187. bool lineAntiAlias;
  4188. /* readonly */
  4189. Node node;
  4190. /* readonly */
  4191. uint numAttributes;
  4192. ObjectAnimation objectAnimation;
  4193. /* readonly */
  4194. int refs;
  4195. /* readonly */
  4196. bool replicated;
  4197. bool temporary;
  4198. /* readonly */
  4199. StringHash type;
  4200. /* readonly */
  4201. String typeName;
  4202. /* readonly */
  4203. int weakRefs;
  4204. };
  4205. class DecalSet
  4206. {
  4207. public:
  4208. // Methods:
  4209. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4210. void ApplyAttributes();
  4211. void DrawDebugGeometry(DebugRenderer, bool);
  4212. Variant GetAttribute(const String&) const;
  4213. ValueAnimation GetAttributeAnimation(const String&) const;
  4214. float GetAttributeAnimationSpeed(const String&) const;
  4215. float GetAttributeAnimationTime(const String&) const;
  4216. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4217. Variant GetAttributeDefault(const String&) const;
  4218. bool GetInterceptNetworkUpdate(const String&) const;
  4219. bool HasSubscribedToEvent(Object, const String&);
  4220. bool HasSubscribedToEvent(const String&);
  4221. bool IsInView(Camera) const;
  4222. bool Load(File);
  4223. bool Load(VectorBuffer&);
  4224. bool LoadJSON(const JSONValue&);
  4225. bool LoadXML(const XMLElement&);
  4226. void MarkNetworkUpdate() const;
  4227. void Remove();
  4228. void RemoveAllDecals();
  4229. void RemoveAttributeAnimation(const String&);
  4230. void RemoveDecals(uint);
  4231. void RemoveInstanceDefault();
  4232. void RemoveObjectAnimation();
  4233. void ResetToDefault();
  4234. bool Save(File) const;
  4235. bool Save(VectorBuffer&) const;
  4236. bool SaveJSON(JSONValue&) const;
  4237. bool SaveXML(XMLElement&) const;
  4238. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4239. void SetAnimationTime(float);
  4240. bool SetAttribute(const String&, const Variant&);
  4241. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4242. void SetAttributeAnimationSpeed(const String&, float);
  4243. void SetAttributeAnimationTime(const String&, float);
  4244. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4245. void SetInterceptNetworkUpdate(const String&, bool);
  4246. // Properties:
  4247. bool animationEnabled;
  4248. /* readonly */
  4249. Array<Variant> attributeDefaults;
  4250. /* readonly */
  4251. Array<AttributeInfo> attributeInfos;
  4252. Array<Variant> attributes;
  4253. /* readonly */
  4254. BoundingBox boundingBox;
  4255. bool castShadows;
  4256. /* readonly */
  4257. String category;
  4258. float drawDistance;
  4259. bool enabled;
  4260. /* readonly */
  4261. bool enabledEffective;
  4262. /* readonly */
  4263. uint id;
  4264. /* readonly */
  4265. bool inView;
  4266. uint lightMask;
  4267. float lodBias;
  4268. Material material;
  4269. uint maxIndices;
  4270. uint maxLights;
  4271. uint maxVertices;
  4272. /* readonly */
  4273. Node node;
  4274. /* readonly */
  4275. uint numAttributes;
  4276. /* readonly */
  4277. uint numDecals;
  4278. /* readonly */
  4279. uint numIndices;
  4280. /* readonly */
  4281. uint numVertices;
  4282. ObjectAnimation objectAnimation;
  4283. bool occludee;
  4284. bool occluder;
  4285. bool optimizeBufferSize;
  4286. /* readonly */
  4287. int refs;
  4288. /* readonly */
  4289. bool replicated;
  4290. float shadowDistance;
  4291. uint shadowMask;
  4292. bool temporary;
  4293. /* readonly */
  4294. StringHash type;
  4295. /* readonly */
  4296. String typeName;
  4297. uint viewMask;
  4298. /* readonly */
  4299. int weakRefs;
  4300. /* readonly */
  4301. BoundingBox worldBoundingBox;
  4302. /* readonly */
  4303. Zone zone;
  4304. uint zoneMask;
  4305. };
  4306. class Deserializer
  4307. {
  4308. public:
  4309. // Methods:
  4310. Array<uint8> Read(uint);
  4311. bool ReadBool();
  4312. BoundingBox ReadBoundingBox();
  4313. int8 ReadByte();
  4314. Color ReadColor();
  4315. double ReadDouble();
  4316. String ReadFileID();
  4317. float ReadFloat();
  4318. int ReadInt();
  4319. int64 ReadInt64();
  4320. IntRect ReadIntRect();
  4321. IntVector2 ReadIntVector2();
  4322. String ReadLine();
  4323. Matrix3 ReadMatrix3();
  4324. Matrix3x4 ReadMatrix3x4();
  4325. Matrix4 ReadMatrix4();
  4326. uint ReadNetID();
  4327. Quaternion ReadPackedQuaternion();
  4328. Vector3 ReadPackedVector3(float);
  4329. Quaternion ReadQuaternion();
  4330. int16 ReadShort();
  4331. String ReadString();
  4332. StringHash ReadStringHash();
  4333. uint8 ReadUByte();
  4334. uint ReadUInt();
  4335. uint64 ReadUInt64();
  4336. uint16 ReadUShort();
  4337. uint ReadVLE();
  4338. Variant ReadVariant();
  4339. VariantMap ReadVariantMap();
  4340. Vector2 ReadVector2();
  4341. Vector3 ReadVector3();
  4342. Vector4 ReadVector4();
  4343. VectorBuffer ReadVectorBuffer(uint);
  4344. uint Seek(uint);
  4345. uint SeekRelative(int);
  4346. uint Tell() const;
  4347. // Properties:
  4348. /* readonly */
  4349. uint checksum;
  4350. /* readonly */
  4351. bool eof;
  4352. /* readonly */
  4353. String name;
  4354. /* readonly */
  4355. uint position;
  4356. /* readonly */
  4357. uint size;
  4358. };
  4359. class Dictionary
  4360. {
  4361. public:
  4362. Dictionary();
  4363. // Methods:
  4364. void Clear();
  4365. void Erase(const String&);
  4366. bool Exists(const String&) const;
  4367. bool Get(const String&, void*) const;
  4368. bool Get(const String&, double&) const;
  4369. bool Get(const String&, int64&) const;
  4370. void Set(const String&, const void*);
  4371. void Set(const String&, const double&);
  4372. void Set(const String&, const int64&);
  4373. // Properties:
  4374. /* readonly */
  4375. bool empty;
  4376. /* readonly */
  4377. Array<String> keys;
  4378. /* readonly */
  4379. uint length;
  4380. };
  4381. class DictionaryValue
  4382. {
  4383. public:
  4384. ~DictionaryValue();
  4385. DictionaryValue();
  4386. };
  4387. class Drawable
  4388. {
  4389. public:
  4390. // Methods:
  4391. void ApplyAttributes();
  4392. void DrawDebugGeometry(DebugRenderer, bool);
  4393. Variant GetAttribute(const String&) const;
  4394. ValueAnimation GetAttributeAnimation(const String&) const;
  4395. float GetAttributeAnimationSpeed(const String&) const;
  4396. float GetAttributeAnimationTime(const String&) const;
  4397. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4398. Variant GetAttributeDefault(const String&) const;
  4399. bool GetInterceptNetworkUpdate(const String&) const;
  4400. bool HasSubscribedToEvent(Object, const String&);
  4401. bool HasSubscribedToEvent(const String&);
  4402. bool IsInView(Camera) const;
  4403. bool Load(File);
  4404. bool Load(VectorBuffer&);
  4405. bool LoadJSON(const JSONValue&);
  4406. bool LoadXML(const XMLElement&);
  4407. void MarkNetworkUpdate() const;
  4408. void Remove();
  4409. void RemoveAttributeAnimation(const String&);
  4410. void RemoveInstanceDefault();
  4411. void RemoveObjectAnimation();
  4412. void ResetToDefault();
  4413. bool Save(File) const;
  4414. bool Save(VectorBuffer&) const;
  4415. bool SaveJSON(JSONValue&) const;
  4416. bool SaveXML(XMLElement&) const;
  4417. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4418. void SetAnimationTime(float);
  4419. bool SetAttribute(const String&, const Variant&);
  4420. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4421. void SetAttributeAnimationSpeed(const String&, float);
  4422. void SetAttributeAnimationTime(const String&, float);
  4423. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4424. void SetInterceptNetworkUpdate(const String&, bool);
  4425. // Properties:
  4426. bool animationEnabled;
  4427. /* readonly */
  4428. Array<Variant> attributeDefaults;
  4429. /* readonly */
  4430. Array<AttributeInfo> attributeInfos;
  4431. Array<Variant> attributes;
  4432. /* readonly */
  4433. BoundingBox boundingBox;
  4434. bool castShadows;
  4435. /* readonly */
  4436. String category;
  4437. float drawDistance;
  4438. bool enabled;
  4439. /* readonly */
  4440. bool enabledEffective;
  4441. /* readonly */
  4442. uint id;
  4443. /* readonly */
  4444. bool inView;
  4445. uint lightMask;
  4446. float lodBias;
  4447. uint maxLights;
  4448. /* readonly */
  4449. Node node;
  4450. /* readonly */
  4451. uint numAttributes;
  4452. ObjectAnimation objectAnimation;
  4453. bool occludee;
  4454. bool occluder;
  4455. /* readonly */
  4456. int refs;
  4457. /* readonly */
  4458. bool replicated;
  4459. float shadowDistance;
  4460. uint shadowMask;
  4461. bool temporary;
  4462. /* readonly */
  4463. StringHash type;
  4464. /* readonly */
  4465. String typeName;
  4466. uint viewMask;
  4467. /* readonly */
  4468. int weakRefs;
  4469. /* readonly */
  4470. BoundingBox worldBoundingBox;
  4471. uint zoneMask;
  4472. };
  4473. class Drawable2D
  4474. {
  4475. public:
  4476. // Methods:
  4477. void ApplyAttributes();
  4478. void DrawDebugGeometry(DebugRenderer, bool);
  4479. Variant GetAttribute(const String&) const;
  4480. ValueAnimation GetAttributeAnimation(const String&) const;
  4481. float GetAttributeAnimationSpeed(const String&) const;
  4482. float GetAttributeAnimationTime(const String&) const;
  4483. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4484. Variant GetAttributeDefault(const String&) const;
  4485. bool GetInterceptNetworkUpdate(const String&) const;
  4486. bool HasSubscribedToEvent(Object, const String&);
  4487. bool HasSubscribedToEvent(const String&);
  4488. bool IsInView(Camera) const;
  4489. bool Load(File);
  4490. bool Load(VectorBuffer&);
  4491. bool LoadJSON(const JSONValue&);
  4492. bool LoadXML(const XMLElement&);
  4493. void MarkNetworkUpdate() const;
  4494. void Remove();
  4495. void RemoveAttributeAnimation(const String&);
  4496. void RemoveInstanceDefault();
  4497. void RemoveObjectAnimation();
  4498. void ResetToDefault();
  4499. bool Save(File) const;
  4500. bool Save(VectorBuffer&) const;
  4501. bool SaveJSON(JSONValue&) const;
  4502. bool SaveXML(XMLElement&) const;
  4503. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4504. void SetAnimationTime(float);
  4505. bool SetAttribute(const String&, const Variant&);
  4506. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4507. void SetAttributeAnimationSpeed(const String&, float);
  4508. void SetAttributeAnimationTime(const String&, float);
  4509. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4510. void SetInterceptNetworkUpdate(const String&, bool);
  4511. // Properties:
  4512. bool animationEnabled;
  4513. /* readonly */
  4514. Array<Variant> attributeDefaults;
  4515. /* readonly */
  4516. Array<AttributeInfo> attributeInfos;
  4517. Array<Variant> attributes;
  4518. /* readonly */
  4519. BoundingBox boundingBox;
  4520. bool castShadows;
  4521. /* readonly */
  4522. String category;
  4523. float drawDistance;
  4524. bool enabled;
  4525. /* readonly */
  4526. bool enabledEffective;
  4527. /* readonly */
  4528. uint id;
  4529. /* readonly */
  4530. bool inView;
  4531. int layer;
  4532. uint lightMask;
  4533. float lodBias;
  4534. uint maxLights;
  4535. /* readonly */
  4536. Node node;
  4537. /* readonly */
  4538. uint numAttributes;
  4539. ObjectAnimation objectAnimation;
  4540. bool occludee;
  4541. bool occluder;
  4542. int orderInLayer;
  4543. /* readonly */
  4544. int refs;
  4545. /* readonly */
  4546. bool replicated;
  4547. float shadowDistance;
  4548. uint shadowMask;
  4549. bool temporary;
  4550. /* readonly */
  4551. StringHash type;
  4552. /* readonly */
  4553. String typeName;
  4554. uint viewMask;
  4555. /* readonly */
  4556. int weakRefs;
  4557. /* readonly */
  4558. BoundingBox worldBoundingBox;
  4559. uint zoneMask;
  4560. };
  4561. class DropDownList
  4562. {
  4563. public:
  4564. DropDownList();
  4565. DropDownList(const String&in);
  4566. // Methods:
  4567. void AddChild(UIElement);
  4568. void AddItem(UIElement);
  4569. void AddTag(const String&);
  4570. void AddTags(const String&, int8 = ';');
  4571. void ApplyAttributes();
  4572. void BringToFront();
  4573. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4574. void DisableLayoutUpdate();
  4575. IntVector2 ElementToScreen(const IntVector2&);
  4576. void EnableLayoutUpdate();
  4577. uint FindChild(UIElement) const;
  4578. Variant GetAttribute(const String&) const;
  4579. ValueAnimation GetAttributeAnimation(const String&) const;
  4580. float GetAttributeAnimationSpeed(const String&) const;
  4581. float GetAttributeAnimationTime(const String&) const;
  4582. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4583. Variant GetAttributeDefault(const String&) const;
  4584. UIElement GetChild(const String&, bool = false) const;
  4585. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4586. Array<UIElement> GetChildren(bool = false) const;
  4587. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4588. UIElement GetElementEventSender() const;
  4589. bool GetInterceptNetworkUpdate(const String&) const;
  4590. Array<UIElement> GetItems() const;
  4591. uint GetNumChildren(bool) const;
  4592. bool HasSubscribedToEvent(Object, const String&);
  4593. bool HasSubscribedToEvent(const String&);
  4594. bool HasTag(const String&) const;
  4595. void InsertChild(uint, UIElement);
  4596. void InsertItem(uint, UIElement);
  4597. bool IsChildOf(UIElement) const;
  4598. bool IsInside(IntVector2, bool);
  4599. bool IsInsideCombined(IntVector2, bool);
  4600. bool Load(File);
  4601. bool Load(VectorBuffer&);
  4602. UIElement LoadChildXML(XMLFile, XMLFile);
  4603. UIElement LoadChildXML(const XMLElement&, XMLFile);
  4604. bool LoadJSON(const JSONValue&);
  4605. bool LoadXML(File);
  4606. bool LoadXML(VectorBuffer&);
  4607. bool LoadXML(XMLFile, XMLFile);
  4608. bool LoadXML(const XMLElement&, XMLFile);
  4609. bool LoadXML(const XMLElement&);
  4610. void MarkNetworkUpdate() const;
  4611. void Remove();
  4612. void RemoveAllChildren();
  4613. void RemoveAllItems();
  4614. void RemoveAllTags();
  4615. void RemoveAttributeAnimation(const String&);
  4616. void RemoveChild(UIElement, uint = 0);
  4617. void RemoveChild(uint);
  4618. void RemoveInstanceDefault();
  4619. void RemoveItem(UIElement);
  4620. void RemoveItem(uint);
  4621. void RemoveObjectAnimation();
  4622. bool RemoveTag(const String&);
  4623. void ResetDeepEnabled();
  4624. void ResetToDefault();
  4625. bool Save(File) const;
  4626. bool Save(VectorBuffer&) const;
  4627. bool SaveJSON(JSONValue&) const;
  4628. bool SaveXML(File, const String& = "\t");
  4629. bool SaveXML(VectorBuffer&, const String& = "\t");
  4630. bool SaveXML(XMLElement&) const;
  4631. IntVector2 ScreenToElement(const IntVector2&);
  4632. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4633. void SetAccelerator(int, int);
  4634. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4635. void SetAnimationTime(float);
  4636. bool SetAttribute(const String&, const Variant&);
  4637. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4638. void SetAttributeAnimationSpeed(const String&, float);
  4639. void SetAttributeAnimationTime(const String&, float);
  4640. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4641. void SetDeepEnabled(bool);
  4642. void SetDisabledOffset(int, int);
  4643. void SetEnabledRecursive(bool);
  4644. void SetFixedHeight(int);
  4645. void SetFixedSize(int, int);
  4646. void SetFixedWidth(int);
  4647. void SetFullImageRect();
  4648. void SetHoverOffset(int, int);
  4649. void SetInterceptNetworkUpdate(const String&, bool);
  4650. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4651. void SetMaxAnchor(float, float);
  4652. void SetMaxSize(int, int);
  4653. void SetMinAnchor(float, float);
  4654. void SetMinSize(int, int);
  4655. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4656. void SetPivot(float, float);
  4657. void SetPosition(int, int);
  4658. void SetPressedChildOffset(int, int);
  4659. void SetPressedOffset(int, int);
  4660. void SetRepeat(float, float);
  4661. void SetSize(int, int);
  4662. bool SetStyle(const String&, XMLFile = null);
  4663. bool SetStyle(const XMLElement&);
  4664. bool SetStyleAuto(XMLFile = null);
  4665. void UpdateLayout();
  4666. const Variant& GetVar(const StringHash&);
  4667. UIElement getPopup() const;
  4668. // Properties:
  4669. /* readonly */
  4670. int acceleratorKey;
  4671. /* readonly */
  4672. int acceleratorQualifiers;
  4673. bool animationEnabled;
  4674. /* readonly */
  4675. Array<Variant> attributeDefaults;
  4676. /* readonly */
  4677. Array<AttributeInfo> attributeInfos;
  4678. Array<Variant> attributes;
  4679. BlendMode blendMode;
  4680. IntRect border;
  4681. bool bringToBack;
  4682. bool bringToFront;
  4683. /* readonly */
  4684. String category;
  4685. /* readonly */
  4686. IntVector2 childOffset;
  4687. /* readonly */
  4688. Array<UIElement> children;
  4689. IntRect clipBorder;
  4690. bool clipChildren;
  4691. /* writeonly */
  4692. Color color;
  4693. /* readonly */
  4694. bool colorGradient;
  4695. Array<Color> colors;
  4696. /* readonly */
  4697. IntRect combinedScreenRect;
  4698. XMLFile defaultStyle;
  4699. /* readonly */
  4700. float derivedOpacity;
  4701. IntVector2 disabledOffset;
  4702. /* readonly */
  4703. uint dragButtonCombo;
  4704. /* readonly */
  4705. int dragButtonCount;
  4706. uint dragDropMode;
  4707. bool editable;
  4708. bool elementEventSender;
  4709. bool enableAnchor;
  4710. bool enabled;
  4711. /* readonly */
  4712. bool enabledSelf;
  4713. /* readonly */
  4714. bool fixedHeight;
  4715. /* readonly */
  4716. bool fixedSize;
  4717. /* readonly */
  4718. bool fixedWidth;
  4719. bool focus;
  4720. FocusMode focusMode;
  4721. int height;
  4722. HorizontalAlignment horizontalAlignment;
  4723. IntVector2 hoverOffset;
  4724. /* readonly */
  4725. bool hovering;
  4726. IntRect imageBorder;
  4727. IntRect imageRect;
  4728. int indent;
  4729. int indentSpacing;
  4730. /* readonly */
  4731. int indentWidth;
  4732. bool internal;
  4733. /* readonly */
  4734. Array<UIElement> items;
  4735. IntRect layoutBorder;
  4736. Vector2 layoutFlexScale;
  4737. LayoutMode layoutMode;
  4738. int layoutSpacing;
  4739. /* readonly */
  4740. ListView listView;
  4741. Vector2 maxAnchor;
  4742. int maxHeight;
  4743. IntVector2 maxOffset;
  4744. IntVector2 maxSize;
  4745. int maxWidth;
  4746. Vector2 minAnchor;
  4747. int minHeight;
  4748. IntVector2 minOffset;
  4749. IntVector2 minSize;
  4750. int minWidth;
  4751. String name;
  4752. /* readonly */
  4753. uint numAllChildren;
  4754. /* readonly */
  4755. uint numAttributes;
  4756. /* readonly */
  4757. uint numChildren;
  4758. /* readonly */
  4759. uint numItems;
  4760. ObjectAnimation objectAnimation;
  4761. float opacity;
  4762. UIElement parent;
  4763. Vector2 pivot;
  4764. /* readonly */
  4765. UIElement placeholder;
  4766. String placeholderText;
  4767. IntVector2 position;
  4768. /* readonly */
  4769. bool pressed;
  4770. IntVector2 pressedChildOffset;
  4771. IntVector2 pressedOffset;
  4772. int priority;
  4773. /* readonly */
  4774. int refs;
  4775. float repeatDelay;
  4776. float repeatRate;
  4777. bool resizePopup;
  4778. /* readonly */
  4779. UIElement root;
  4780. /* readonly */
  4781. IntVector2 screenPosition;
  4782. bool selected;
  4783. /* readonly */
  4784. UIElement selectedItem;
  4785. uint selection;
  4786. bool showPopup;
  4787. IntVector2 size;
  4788. bool sortChildren;
  4789. String style;
  4790. /* readonly */
  4791. Array<String> tags;
  4792. bool temporary;
  4793. Texture texture;
  4794. bool tiled;
  4795. TraversalMode traversalMode;
  4796. /* readonly */
  4797. StringHash type;
  4798. /* readonly */
  4799. String typeName;
  4800. bool useDerivedOpacity;
  4801. /* readonly */
  4802. VariantMap vars;
  4803. VerticalAlignment verticalAlignment;
  4804. bool visible;
  4805. /* readonly */
  4806. bool visibleEffective;
  4807. /* readonly */
  4808. int weakRefs;
  4809. int width;
  4810. };
  4811. class DynamicNavigationMesh
  4812. {
  4813. public:
  4814. // Methods:
  4815. bool AddTile(const VectorBuffer&) const;
  4816. bool Allocate(const BoundingBox&, uint);
  4817. void ApplyAttributes();
  4818. bool Build();
  4819. bool Build(const BoundingBox&);
  4820. bool Build(const IntVector2&, const IntVector2&);
  4821. void DrawDebugGeometry(DebugRenderer, bool);
  4822. void DrawDebugGeometry(bool);
  4823. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4824. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4825. float GetAreaCost(uint) const;
  4826. Variant GetAttribute(const String&) const;
  4827. ValueAnimation GetAttributeAnimation(const String&) const;
  4828. float GetAttributeAnimationSpeed(const String&) const;
  4829. float GetAttributeAnimationTime(const String&) const;
  4830. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4831. Variant GetAttributeDefault(const String&) const;
  4832. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4833. bool GetInterceptNetworkUpdate(const String&) const;
  4834. Vector3 GetRandomPoint();
  4835. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4836. BoundingBox GetTileBoudningBox(const IntVector2&) const;
  4837. VectorBuffer GetTileData(const IntVector2&) const;
  4838. IntVector2 GetTileIndex(const Vector3&) const;
  4839. bool HasSubscribedToEvent(Object, const String&);
  4840. bool HasSubscribedToEvent(const String&);
  4841. bool HasTile(const IntVector2&) const;
  4842. bool Load(File);
  4843. bool Load(VectorBuffer&);
  4844. bool LoadJSON(const JSONValue&);
  4845. bool LoadXML(const XMLElement&);
  4846. void MarkNetworkUpdate() const;
  4847. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4848. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4849. void Remove();
  4850. void RemoveAllTiles();
  4851. void RemoveAttributeAnimation(const String&);
  4852. void RemoveInstanceDefault();
  4853. void RemoveObjectAnimation();
  4854. void RemoveTile(const IntVector2&);
  4855. void ResetToDefault();
  4856. bool Save(File) const;
  4857. bool Save(VectorBuffer&) const;
  4858. bool SaveJSON(JSONValue&) const;
  4859. bool SaveXML(XMLElement&) const;
  4860. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4861. void SetAnimationTime(float);
  4862. void SetAreaCost(uint, float);
  4863. bool SetAttribute(const String&, const Variant&);
  4864. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4865. void SetAttributeAnimationSpeed(const String&, float);
  4866. void SetAttributeAnimationTime(const String&, float);
  4867. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4868. void SetInterceptNetworkUpdate(const String&, bool);
  4869. // Properties:
  4870. float agentHeight;
  4871. float agentMaxClimb;
  4872. float agentMaxSlope;
  4873. float agentRadius;
  4874. bool animationEnabled;
  4875. /* readonly */
  4876. Array<Variant> attributeDefaults;
  4877. /* readonly */
  4878. Array<AttributeInfo> attributeInfos;
  4879. Array<Variant> attributes;
  4880. /* readonly */
  4881. BoundingBox boundingBox;
  4882. /* readonly */
  4883. String category;
  4884. float cellHeight;
  4885. float cellSize;
  4886. float detailSampleDistance;
  4887. float detailSampleMaxError;
  4888. bool drawNavAreas;
  4889. bool drawObstacles;
  4890. bool drawOffMeshConnections;
  4891. float edgeMaxError;
  4892. float edgeMaxLength;
  4893. bool enabled;
  4894. /* readonly */
  4895. bool enabledEffective;
  4896. /* readonly */
  4897. uint id;
  4898. /* readonly */
  4899. bool initialized;
  4900. bool maxLayers;
  4901. uint maxObstacles;
  4902. /* readonly */
  4903. Node node;
  4904. /* readonly */
  4905. uint numAttributes;
  4906. /* readonly */
  4907. IntVector2 numTiles;
  4908. ObjectAnimation objectAnimation;
  4909. Vector3 padding;
  4910. NavmeshPartitionType partitionType;
  4911. /* readonly */
  4912. int refs;
  4913. float regionMergeSize;
  4914. float regionMinSize;
  4915. /* readonly */
  4916. bool replicated;
  4917. bool temporary;
  4918. int tileSize;
  4919. /* readonly */
  4920. StringHash type;
  4921. /* readonly */
  4922. String typeName;
  4923. /* readonly */
  4924. int weakRefs;
  4925. /* readonly */
  4926. BoundingBox worldBoundingBox;
  4927. };
  4928. class Engine
  4929. {
  4930. public:
  4931. // Methods:
  4932. Console CreateConsole();
  4933. DebugHud CreateDebugHud();
  4934. void DumpMemory();
  4935. void DumpProfiler();
  4936. void DumpResources(bool = false);
  4937. void Exit();
  4938. bool HasSubscribedToEvent(Object, const String&);
  4939. bool HasSubscribedToEvent(const String&);
  4940. void RunFrame();
  4941. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4942. // Properties:
  4943. bool autoExit;
  4944. /* readonly */
  4945. String category;
  4946. /* readonly */
  4947. bool exiting;
  4948. /* readonly */
  4949. bool headless;
  4950. /* readonly */
  4951. bool initialized;
  4952. int maxFps;
  4953. int maxInactiveFps;
  4954. int minFps;
  4955. bool pauseMinimized;
  4956. /* readonly */
  4957. int refs;
  4958. int timeStepSmoothing;
  4959. /* readonly */
  4960. StringHash type;
  4961. /* readonly */
  4962. String typeName;
  4963. /* readonly */
  4964. int weakRefs;
  4965. };
  4966. class File
  4967. {
  4968. public:
  4969. File();
  4970. File(const String&in, FileMode mode = FILE_READ);
  4971. // Methods:
  4972. void Close();
  4973. bool HasSubscribedToEvent(Object, const String&);
  4974. bool HasSubscribedToEvent(const String&);
  4975. bool Open(const String&, FileMode = FILE_READ);
  4976. Array<uint8> Read(uint);
  4977. bool ReadBool();
  4978. BoundingBox ReadBoundingBox();
  4979. int8 ReadByte();
  4980. Color ReadColor();
  4981. double ReadDouble();
  4982. String ReadFileID();
  4983. float ReadFloat();
  4984. int ReadInt();
  4985. int64 ReadInt64();
  4986. IntRect ReadIntRect();
  4987. IntVector2 ReadIntVector2();
  4988. String ReadLine();
  4989. Matrix3 ReadMatrix3();
  4990. Matrix3x4 ReadMatrix3x4();
  4991. Matrix4 ReadMatrix4();
  4992. uint ReadNetID();
  4993. Quaternion ReadPackedQuaternion();
  4994. Vector3 ReadPackedVector3(float);
  4995. Quaternion ReadQuaternion();
  4996. int16 ReadShort();
  4997. String ReadString();
  4998. StringHash ReadStringHash();
  4999. uint8 ReadUByte();
  5000. uint ReadUInt();
  5001. uint64 ReadUInt64();
  5002. uint16 ReadUShort();
  5003. uint ReadVLE();
  5004. Variant ReadVariant();
  5005. VariantMap ReadVariantMap();
  5006. Vector2 ReadVector2();
  5007. Vector3 ReadVector3();
  5008. Vector4 ReadVector4();
  5009. VectorBuffer ReadVectorBuffer(uint);
  5010. uint Seek(uint);
  5011. uint SeekRelative(int);
  5012. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5013. uint Tell() const;
  5014. uint Write(Array<uint8>);
  5015. bool WriteBool(bool);
  5016. bool WriteBoundingBox(const BoundingBox&);
  5017. bool WriteByte(int8);
  5018. bool WriteColor(const Color&);
  5019. bool WriteDouble(double);
  5020. bool WriteFileID(const String&);
  5021. bool WriteFloat(float);
  5022. bool WriteInt(int);
  5023. bool WriteInt64(int64);
  5024. bool WriteIntRect(const IntRect&);
  5025. bool WriteIntVector2(const IntVector2&);
  5026. bool WriteLine(const String&);
  5027. bool WriteMatrix3(const Matrix3&);
  5028. bool WriteMatrix3x4(const Matrix3x4&);
  5029. bool WriteMatrix4(const Matrix4&);
  5030. bool WriteNetID(uint);
  5031. bool WritePackedQuaternion(const Quaternion&);
  5032. bool WritePackedVector3(const Vector3&, float);
  5033. bool WriteQuaternion(const Quaternion&);
  5034. bool WriteShort(int16);
  5035. bool WriteString(const String&);
  5036. bool WriteStringHash(const StringHash&);
  5037. bool WriteUByte(uint8);
  5038. bool WriteUInt(uint);
  5039. bool WriteUInt64(uint64);
  5040. bool WriteUShort(uint16);
  5041. bool WriteVLE(uint);
  5042. bool WriteVariant(const Variant&);
  5043. bool WriteVariantMap(const VariantMap&);
  5044. bool WriteVector2(const Vector2&);
  5045. bool WriteVector3(const Vector3&);
  5046. bool WriteVector4(const Vector4&);
  5047. bool WriteVectorBuffer(const VectorBuffer&);
  5048. // Properties:
  5049. /* readonly */
  5050. String category;
  5051. /* readonly */
  5052. uint checksum;
  5053. /* readonly */
  5054. bool eof;
  5055. /* readonly */
  5056. FileMode mode;
  5057. /* readonly */
  5058. String name;
  5059. /* readonly */
  5060. bool open;
  5061. /* readonly */
  5062. bool packaged;
  5063. /* readonly */
  5064. uint position;
  5065. /* readonly */
  5066. int refs;
  5067. /* readonly */
  5068. uint size;
  5069. /* readonly */
  5070. StringHash type;
  5071. /* readonly */
  5072. String typeName;
  5073. /* readonly */
  5074. int weakRefs;
  5075. };
  5076. class FileSelector
  5077. {
  5078. public:
  5079. FileSelector();
  5080. // Methods:
  5081. bool HasSubscribedToEvent(Object, const String&);
  5082. bool HasSubscribedToEvent(const String&);
  5083. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5084. void SetButtonTexts(const String&, const String&);
  5085. void SetFilters(Array<String>, uint);
  5086. void UpdateElements();
  5087. // Properties:
  5088. /* readonly */
  5089. Button cancelButton;
  5090. /* readonly */
  5091. String category;
  5092. XMLFile defaultStyle;
  5093. bool directoryMode;
  5094. /* readonly */
  5095. ListView fileList;
  5096. String fileName;
  5097. /* readonly */
  5098. LineEdit fileNameEdit;
  5099. /* readonly */
  5100. String filter;
  5101. /* readonly */
  5102. uint filterIndex;
  5103. /* readonly */
  5104. DropDownList filterList;
  5105. /* readonly */
  5106. Button okButton;
  5107. String path;
  5108. /* readonly */
  5109. LineEdit pathEdit;
  5110. /* readonly */
  5111. int refs;
  5112. String title;
  5113. /* readonly */
  5114. Text titleText;
  5115. /* readonly */
  5116. StringHash type;
  5117. /* readonly */
  5118. String typeName;
  5119. /* readonly */
  5120. int weakRefs;
  5121. /* readonly */
  5122. Window window;
  5123. };
  5124. class FileSystem
  5125. {
  5126. public:
  5127. // Methods:
  5128. bool Copy(const String&, const String&);
  5129. bool CreateDir(const String&);
  5130. bool Delete(const String&);
  5131. bool DirExists(const String&) const;
  5132. bool FileExists(const String&) const;
  5133. String GetAppPreferencesDir(const String&, const String&) const;
  5134. uint GetLastModifiedTime(const String&) const;
  5135. bool HasSubscribedToEvent(Object, const String&);
  5136. bool HasSubscribedToEvent(const String&);
  5137. bool Rename(const String&, const String&);
  5138. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  5139. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5140. bool SetLastModifiedTime(const String&, uint);
  5141. int SystemCommand(const String&, bool = false);
  5142. uint SystemCommandAsync(const String&);
  5143. bool SystemOpen(const String&, const String&);
  5144. int SystemRun(const String&, Array<String>);
  5145. uint SystemRunAsync(const String&, Array<String>);
  5146. // Properties:
  5147. /* readonly */
  5148. String category;
  5149. String currentDir;
  5150. bool executeConsoleCommands;
  5151. /* readonly */
  5152. String programDir;
  5153. /* readonly */
  5154. int refs;
  5155. /* readonly */
  5156. String temporaryDir;
  5157. /* readonly */
  5158. StringHash type;
  5159. /* readonly */
  5160. String typeName;
  5161. /* readonly */
  5162. String userDocumentsDir;
  5163. /* readonly */
  5164. int weakRefs;
  5165. };
  5166. class FocusParameters
  5167. {
  5168. public:
  5169. FocusParameters();
  5170. FocusParameters(const FocusParameters&in);
  5171. FocusParameters(bool, bool, bool, float, float);
  5172. // Properties:
  5173. bool autoSize;
  5174. bool focus;
  5175. float minView;
  5176. bool nonUniform;
  5177. float quantize;
  5178. };
  5179. class Font
  5180. {
  5181. public:
  5182. Font();
  5183. Font(const String&in);
  5184. // Methods:
  5185. IntVector2 GetTotalGlyphOffset(float) const;
  5186. bool HasSubscribedToEvent(Object, const String&);
  5187. bool HasSubscribedToEvent(const String&);
  5188. bool Load(File);
  5189. bool Load(VectorBuffer&);
  5190. bool Load(const String&);
  5191. bool Save(File) const;
  5192. bool Save(VectorBuffer&) const;
  5193. bool Save(const String&) const;
  5194. bool SaveXML(File, int, bool = false, const String& = "\t");
  5195. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  5196. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  5197. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5198. // Properties:
  5199. IntVector2 absoluteGlyphOffset;
  5200. /* readonly */
  5201. String category;
  5202. /* readonly */
  5203. FontType fontType;
  5204. /* readonly */
  5205. uint memoryUse;
  5206. String name;
  5207. /* readonly */
  5208. int refs;
  5209. Vector2 scaledGlyphOffset;
  5210. /* readonly */
  5211. StringHash type;
  5212. /* readonly */
  5213. String typeName;
  5214. /* readonly */
  5215. uint useTimer;
  5216. /* readonly */
  5217. int weakRefs;
  5218. };
  5219. class Frustum
  5220. {
  5221. public:
  5222. ~Frustum();
  5223. Frustum();
  5224. Frustum(const Frustum&in);
  5225. // Methods:
  5226. void Define(const BoundingBox&, const Matrix3x4&);
  5227. void Define(const Matrix4&);
  5228. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  5229. void Define(float, float, float, float, float, const Matrix3x4&);
  5230. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  5231. void DefineSplit(const Matrix4&, float, float);
  5232. float Distance(const Vector3&) const;
  5233. Intersection IsInside(const BoundingBox&);
  5234. Intersection IsInside(const Sphere&);
  5235. Intersection IsInside(const Vector3&);
  5236. Intersection IsInsideFast(const BoundingBox&) const;
  5237. Intersection IsInsideFast(const Sphere&) const;
  5238. void Transform(const Matrix3&);
  5239. void Transform(const Matrix3x4&);
  5240. Frustum Transformed(const Matrix3&) const;
  5241. Frustum Transformed(const Matrix3x4&) const;
  5242. // Properties:
  5243. /* readonly */
  5244. Array<Vector3> vertices;
  5245. };
  5246. class Geometry
  5247. {
  5248. public:
  5249. Geometry();
  5250. // Methods:
  5251. bool HasSubscribedToEvent(Object, const String&);
  5252. bool HasSubscribedToEvent(const String&);
  5253. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5254. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  5255. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  5256. void SetIndexBuffer(IndexBuffer);
  5257. bool SetVertexBuffer(uint, VertexBuffer);
  5258. // Properties:
  5259. /* readonly */
  5260. String category;
  5261. /* readonly */
  5262. bool empty;
  5263. IndexBuffer indexBuffer;
  5264. /* readonly */
  5265. uint indexCount;
  5266. /* readonly */
  5267. uint indexStart;
  5268. float lodDistance;
  5269. uint numVertexBuffers;
  5270. /* readonly */
  5271. PrimitiveType primitiveType;
  5272. /* readonly */
  5273. int refs;
  5274. /* readonly */
  5275. StringHash type;
  5276. /* readonly */
  5277. String typeName;
  5278. /* readonly */
  5279. Array<VertexBuffer> vertexBuffers;
  5280. /* readonly */
  5281. uint vertexCount;
  5282. /* readonly */
  5283. uint vertexStart;
  5284. /* readonly */
  5285. int weakRefs;
  5286. };
  5287. class Graphics
  5288. {
  5289. public:
  5290. // Methods:
  5291. void BeginDumpShaders(const String&);
  5292. void Close();
  5293. void EndDumpShaders();
  5294. bool HasSubscribedToEvent(Object, const String&);
  5295. bool HasSubscribedToEvent(const String&);
  5296. void Maximize();
  5297. void Minimize();
  5298. void PrecacheShaders(File);
  5299. void PrecacheShaders(VectorBuffer&);
  5300. void Raise();
  5301. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5302. bool SetMode(int, int);
  5303. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  5304. void SetWindowPosition(int, int);
  5305. bool TakeScreenShot(Image);
  5306. bool ToggleFullscreen();
  5307. // Properties:
  5308. /* readonly */
  5309. String apiName;
  5310. /* readonly */
  5311. bool borderless;
  5312. /* readonly */
  5313. String category;
  5314. /* readonly */
  5315. int currentMonitor;
  5316. /* readonly */
  5317. bool deferredSupport;
  5318. /* readonly */
  5319. Array<IntVector2> desktopResolution;
  5320. /* readonly */
  5321. bool deviceLost;
  5322. /* readonly */
  5323. Array<Vector3> displayDPI;
  5324. bool dither;
  5325. bool flushGPU;
  5326. /* readonly */
  5327. bool fullscreen;
  5328. /* readonly */
  5329. bool hardwareShadowSupport;
  5330. /* readonly */
  5331. int height;
  5332. /* readonly */
  5333. bool initialized;
  5334. /* readonly */
  5335. bool instancingSupport;
  5336. /* readonly */
  5337. bool lightPrepassSupport;
  5338. /* readonly */
  5339. bool maximized;
  5340. /* readonly */
  5341. int monitorCount;
  5342. /* readonly */
  5343. int multiSample;
  5344. /* readonly */
  5345. Array<int> multiSampleLevels;
  5346. /* readonly */
  5347. uint numBatches;
  5348. /* readonly */
  5349. uint numPrimitives;
  5350. String orientations;
  5351. /* readonly */
  5352. bool readableDepthSupport;
  5353. /* readonly */
  5354. int refs;
  5355. /* readonly */
  5356. bool resizable;
  5357. /* readonly */
  5358. Array<Array<IntVector3>> resolutions;
  5359. bool sRGB;
  5360. /* readonly */
  5361. bool sRGBSupport;
  5362. /* readonly */
  5363. bool sRGBWriteSupport;
  5364. String shaderCacheDir;
  5365. /* readonly */
  5366. IntVector2 size;
  5367. /* readonly */
  5368. bool tripleBuffer;
  5369. /* readonly */
  5370. StringHash type;
  5371. /* readonly */
  5372. String typeName;
  5373. /* readonly */
  5374. bool vsync;
  5375. /* readonly */
  5376. int weakRefs;
  5377. /* readonly */
  5378. int width;
  5379. /* writeonly */
  5380. Image windowIcon;
  5381. IntVector2 windowPosition;
  5382. String windowTitle;
  5383. };
  5384. class HttpRequest
  5385. {
  5386. public:
  5387. // Methods:
  5388. Array<uint8> Read(uint);
  5389. bool ReadBool();
  5390. BoundingBox ReadBoundingBox();
  5391. int8 ReadByte();
  5392. Color ReadColor();
  5393. double ReadDouble();
  5394. String ReadFileID();
  5395. float ReadFloat();
  5396. int ReadInt();
  5397. int64 ReadInt64();
  5398. IntRect ReadIntRect();
  5399. IntVector2 ReadIntVector2();
  5400. String ReadLine();
  5401. Matrix3 ReadMatrix3();
  5402. Matrix3x4 ReadMatrix3x4();
  5403. Matrix4 ReadMatrix4();
  5404. uint ReadNetID();
  5405. Quaternion ReadPackedQuaternion();
  5406. Vector3 ReadPackedVector3(float);
  5407. Quaternion ReadQuaternion();
  5408. int16 ReadShort();
  5409. String ReadString();
  5410. StringHash ReadStringHash();
  5411. uint8 ReadUByte();
  5412. uint ReadUInt();
  5413. uint64 ReadUInt64();
  5414. uint16 ReadUShort();
  5415. uint ReadVLE();
  5416. Variant ReadVariant();
  5417. VariantMap ReadVariantMap();
  5418. Vector2 ReadVector2();
  5419. Vector3 ReadVector3();
  5420. Vector4 ReadVector4();
  5421. VectorBuffer ReadVectorBuffer(uint);
  5422. uint Seek(uint);
  5423. uint SeekRelative(int);
  5424. uint Tell() const;
  5425. // Properties:
  5426. /* readonly */
  5427. uint availableSize;
  5428. /* readonly */
  5429. uint checksum;
  5430. /* readonly */
  5431. bool eof;
  5432. /* readonly */
  5433. String error;
  5434. /* readonly */
  5435. String name;
  5436. /* readonly */
  5437. bool open;
  5438. /* readonly */
  5439. uint position;
  5440. /* readonly */
  5441. int refs;
  5442. /* readonly */
  5443. uint size;
  5444. /* readonly */
  5445. HttpRequestState state;
  5446. /* readonly */
  5447. String url;
  5448. /* readonly */
  5449. String verb;
  5450. /* readonly */
  5451. int weakRefs;
  5452. };
  5453. class IKEffector
  5454. {
  5455. public:
  5456. // Methods:
  5457. void ApplyAttributes();
  5458. void DrawDebugGeometry(DebugRenderer, bool);
  5459. void DrawDebugGeometry(bool);
  5460. Variant GetAttribute(const String&) const;
  5461. ValueAnimation GetAttributeAnimation(const String&) const;
  5462. float GetAttributeAnimationSpeed(const String&) const;
  5463. float GetAttributeAnimationTime(const String&) const;
  5464. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5465. Variant GetAttributeDefault(const String&) const;
  5466. bool GetInterceptNetworkUpdate(const String&) const;
  5467. bool HasSubscribedToEvent(Object, const String&);
  5468. bool HasSubscribedToEvent(const String&);
  5469. bool Load(File);
  5470. bool Load(VectorBuffer&);
  5471. bool LoadJSON(const JSONValue&);
  5472. bool LoadXML(const XMLElement&);
  5473. void MarkNetworkUpdate() const;
  5474. void Remove();
  5475. void RemoveAttributeAnimation(const String&);
  5476. void RemoveInstanceDefault();
  5477. void RemoveObjectAnimation();
  5478. void ResetToDefault();
  5479. bool Save(File) const;
  5480. bool Save(VectorBuffer&) const;
  5481. bool SaveJSON(JSONValue&) const;
  5482. bool SaveXML(XMLElement&) const;
  5483. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5484. void SetAnimationTime(float);
  5485. bool SetAttribute(const String&, const Variant&);
  5486. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5487. void SetAttributeAnimationSpeed(const String&, float);
  5488. void SetAttributeAnimationTime(const String&, float);
  5489. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5490. void SetInterceptNetworkUpdate(const String&, bool);
  5491. // Properties:
  5492. bool animationEnabled;
  5493. /* readonly */
  5494. Array<Variant> attributeDefaults;
  5495. /* readonly */
  5496. Array<AttributeInfo> attributeInfos;
  5497. Array<Variant> attributes;
  5498. /* readonly */
  5499. String category;
  5500. uint chainLength;
  5501. bool enabled;
  5502. /* readonly */
  5503. bool enabledEffective;
  5504. /* readonly */
  5505. uint id;
  5506. /* readonly */
  5507. Node node;
  5508. /* readonly */
  5509. uint numAttributes;
  5510. ObjectAnimation objectAnimation;
  5511. /* readonly */
  5512. int refs;
  5513. /* readonly */
  5514. bool replicated;
  5515. float rotationDecay;
  5516. float rotationWeight;
  5517. String targetName;
  5518. Node targetNode;
  5519. Vector3 targetPosition;
  5520. Quaternion targetRotation;
  5521. bool temporary;
  5522. /* readonly */
  5523. StringHash type;
  5524. /* readonly */
  5525. String typeName;
  5526. /* readonly */
  5527. int weakRefs;
  5528. float weight;
  5529. };
  5530. class IKSolver
  5531. {
  5532. public:
  5533. // Methods:
  5534. void ApplyActivePoseToScene();
  5535. void ApplyAttributes();
  5536. void ApplyOriginalPoseToActivePose();
  5537. void ApplyOriginalPoseToScene();
  5538. void ApplySceneToActivePose();
  5539. void ApplySceneToInitialPose();
  5540. void CalculateJointRotations();
  5541. void DrawDebugGeometry(DebugRenderer, bool);
  5542. void DrawDebugGeometry(bool);
  5543. Variant GetAttribute(const String&) const;
  5544. ValueAnimation GetAttributeAnimation(const String&) const;
  5545. float GetAttributeAnimationSpeed(const String&) const;
  5546. float GetAttributeAnimationTime(const String&) const;
  5547. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5548. Variant GetAttributeDefault(const String&) const;
  5549. bool GetInterceptNetworkUpdate(const String&) const;
  5550. bool HasSubscribedToEvent(Object, const String&);
  5551. bool HasSubscribedToEvent(const String&);
  5552. bool Load(File);
  5553. bool Load(VectorBuffer&);
  5554. bool LoadJSON(const JSONValue&);
  5555. bool LoadXML(const XMLElement&);
  5556. void MarkNetworkUpdate() const;
  5557. void RebuildChainTrees();
  5558. void RecalculateSegmentLengths();
  5559. void Remove();
  5560. void RemoveAttributeAnimation(const String&);
  5561. void RemoveInstanceDefault();
  5562. void RemoveObjectAnimation();
  5563. void ResetToDefault();
  5564. bool Save(File) const;
  5565. bool Save(VectorBuffer&) const;
  5566. bool SaveJSON(JSONValue&) const;
  5567. bool SaveXML(XMLElement&) const;
  5568. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5569. void SetAnimationTime(float);
  5570. bool SetAttribute(const String&, const Variant&);
  5571. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5572. void SetAttributeAnimationSpeed(const String&, float);
  5573. void SetAttributeAnimationTime(const String&, float);
  5574. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5575. void SetInterceptNetworkUpdate(const String&, bool);
  5576. void Solve();
  5577. // Properties:
  5578. bool AUTO_SOLVE;
  5579. bool CONSTRAINTS;
  5580. bool JOINT_ROTATIONS;
  5581. bool TARGET_ROTATIONS;
  5582. bool UPDATE_ACTIVE_POSE;
  5583. bool UPDATE_ORIGINAL_POSE;
  5584. bool USE_ORIGINAL_POSE;
  5585. IKAlgorithm algorithm;
  5586. bool animationEnabled;
  5587. /* readonly */
  5588. Array<Variant> attributeDefaults;
  5589. /* readonly */
  5590. Array<AttributeInfo> attributeInfos;
  5591. Array<Variant> attributes;
  5592. /* readonly */
  5593. String category;
  5594. bool enabled;
  5595. /* readonly */
  5596. bool enabledEffective;
  5597. /* readonly */
  5598. uint id;
  5599. uint maximumIterations;
  5600. /* readonly */
  5601. Node node;
  5602. /* readonly */
  5603. uint numAttributes;
  5604. ObjectAnimation objectAnimation;
  5605. /* readonly */
  5606. int refs;
  5607. /* readonly */
  5608. bool replicated;
  5609. bool temporary;
  5610. float tolerance;
  5611. /* readonly */
  5612. StringHash type;
  5613. /* readonly */
  5614. String typeName;
  5615. /* readonly */
  5616. int weakRefs;
  5617. };
  5618. class Image
  5619. {
  5620. public:
  5621. Image();
  5622. Image(const String&in);
  5623. // Methods:
  5624. void Clear(const Color&);
  5625. void ClearInt(uint);
  5626. bool FlipHorizontal();
  5627. bool FlipVertical();
  5628. Color GetPixel(int, int) const;
  5629. Color GetPixel(int, int, int) const;
  5630. Color GetPixelBilinear(float, float) const;
  5631. uint GetPixelInt(int, int) const;
  5632. uint GetPixelInt(int, int, int) const;
  5633. Color GetPixelTrilinear(float, float, float) const;
  5634. Image GetSubimage(const IntRect&) const;
  5635. bool HasSubscribedToEvent(Object, const String&);
  5636. bool HasSubscribedToEvent(const String&);
  5637. bool Load(File);
  5638. bool Load(VectorBuffer&);
  5639. bool Load(const String&);
  5640. bool LoadColorLUT(File);
  5641. bool LoadColorLUT(VectorBuffer&);
  5642. bool Resize(int, int);
  5643. bool Save(File) const;
  5644. bool Save(VectorBuffer&) const;
  5645. bool Save(const String&) const;
  5646. bool SaveBMP(const String&) const;
  5647. bool SaveDDS(const String&) const;
  5648. bool SaveJPG(const String&, int) const;
  5649. bool SavePNG(const String&) const;
  5650. bool SaveTGA(const String&) const;
  5651. bool SaveWEBP(const String&, float = 0.0f) const;
  5652. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5653. void SetPixel(int, int, const Color&);
  5654. void SetPixel(int, int, int, const Color&);
  5655. void SetPixelInt(int, int, int, uint);
  5656. void SetPixelInt(int, int, uint);
  5657. bool SetSize(int, int, int, uint);
  5658. bool SetSize(int, int, uint);
  5659. bool SetSubimage(const Image, const IntRect&) const;
  5660. // Properties:
  5661. /* readonly */
  5662. bool array;
  5663. /* readonly */
  5664. String category;
  5665. /* readonly */
  5666. uint components;
  5667. /* readonly */
  5668. bool compressed;
  5669. /* readonly */
  5670. CompressedFormat compressedFormat;
  5671. /* readonly */
  5672. bool cubemap;
  5673. /* readonly */
  5674. int depth;
  5675. /* readonly */
  5676. bool hasAlphaChannel;
  5677. /* readonly */
  5678. int height;
  5679. /* readonly */
  5680. uint memoryUse;
  5681. String name;
  5682. /* readonly */
  5683. uint numCompressedLevels;
  5684. /* readonly */
  5685. int refs;
  5686. /* readonly */
  5687. bool sRGB;
  5688. /* readonly */
  5689. StringHash type;
  5690. /* readonly */
  5691. String typeName;
  5692. /* readonly */
  5693. uint useTimer;
  5694. /* readonly */
  5695. int weakRefs;
  5696. /* readonly */
  5697. int width;
  5698. };
  5699. class IndexBuffer
  5700. {
  5701. public:
  5702. IndexBuffer();
  5703. // Methods:
  5704. VectorBuffer GetData();
  5705. bool HasSubscribedToEvent(Object, const String&);
  5706. bool HasSubscribedToEvent(const String&);
  5707. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5708. bool SetData(VectorBuffer&);
  5709. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5710. void SetSize(uint, bool, bool = false);
  5711. // Properties:
  5712. /* readonly */
  5713. String category;
  5714. /* readonly */
  5715. bool dynamic;
  5716. /* readonly */
  5717. uint indexCount;
  5718. /* readonly */
  5719. uint indexSize;
  5720. /* readonly */
  5721. int refs;
  5722. bool shadowed;
  5723. /* readonly */
  5724. StringHash type;
  5725. /* readonly */
  5726. String typeName;
  5727. /* readonly */
  5728. int weakRefs;
  5729. };
  5730. class Input
  5731. {
  5732. public:
  5733. // Methods:
  5734. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5735. void CenterMousePosition();
  5736. int GetKeyFromName(const String&) const;
  5737. int GetKeyFromScancode(int) const;
  5738. String GetKeyName(int) const;
  5739. int GetScancodeFromKey(int) const;
  5740. int GetScancodeFromName(const String&) const;
  5741. String GetScancodeName(int) const;
  5742. bool HasSubscribedToEvent(Object, const String&);
  5743. bool HasSubscribedToEvent(const String&);
  5744. uint LoadGestures(File);
  5745. uint LoadGestures(VectorBuffer&);
  5746. bool RecordGesture();
  5747. void RemoveAllGestures();
  5748. bool RemoveGesture(uint);
  5749. bool RemoveScreenJoystick(int);
  5750. void ResetMouseGrabbed();
  5751. void ResetMouseMode();
  5752. void ResetMouseVisible();
  5753. bool SaveGesture(File, uint);
  5754. bool SaveGesture(VectorBuffer&, uint);
  5755. bool SaveGestures(File);
  5756. bool SaveGestures(VectorBuffer&);
  5757. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5758. void SetMouseGrabbed(bool, bool = false);
  5759. void SetMouseMode(MouseMode, bool = false);
  5760. void SetMouseVisible(bool, bool = false);
  5761. // Properties:
  5762. /* readonly */
  5763. String category;
  5764. /* readonly */
  5765. bool focus;
  5766. /* readonly */
  5767. Vector2 inputScale;
  5768. /* readonly */
  5769. Array<JoystickState> joysticks;
  5770. /* readonly */
  5771. Array<JoystickState> joysticksByIndex;
  5772. /* readonly */
  5773. Array<JoystickState> joysticksByName;
  5774. /* readonly */
  5775. Array<bool> keyDown;
  5776. /* readonly */
  5777. Array<bool> keyPress;
  5778. /* readonly */
  5779. bool minimized;
  5780. /* readonly */
  5781. Array<bool> mouseButtonDown;
  5782. /* readonly */
  5783. Array<bool> mouseButtonPress;
  5784. bool mouseGrabbed;
  5785. /* readonly */
  5786. bool mouseLocked;
  5787. MouseMode mouseMode;
  5788. /* readonly */
  5789. IntVector2 mouseMove;
  5790. /* readonly */
  5791. int mouseMoveWheel;
  5792. /* readonly */
  5793. int mouseMoveX;
  5794. /* readonly */
  5795. int mouseMoveY;
  5796. IntVector2 mousePosition;
  5797. bool mouseVisible;
  5798. /* readonly */
  5799. uint numJoysticks;
  5800. /* readonly */
  5801. uint numTouches;
  5802. /* readonly */
  5803. Array<bool> qualifierDown;
  5804. /* readonly */
  5805. Array<bool> qualifierPress;
  5806. /* readonly */
  5807. int qualifiers;
  5808. /* readonly */
  5809. int refs;
  5810. /* readonly */
  5811. Array<bool> scancodeDown;
  5812. /* readonly */
  5813. Array<bool> scancodePress;
  5814. Array<bool> screenJoystickVisible;
  5815. /* readonly */
  5816. bool screenKeyboardSupport;
  5817. bool screenKeyboardVisible;
  5818. bool toggleFullscreen;
  5819. bool touchEmulation;
  5820. /* readonly */
  5821. Array<TouchState> touches;
  5822. /* readonly */
  5823. StringHash type;
  5824. /* readonly */
  5825. String typeName;
  5826. /* readonly */
  5827. int weakRefs;
  5828. };
  5829. class IntRect
  5830. {
  5831. public:
  5832. IntRect();
  5833. IntRect(const IntRect&in);
  5834. IntRect(int, int, int, int);
  5835. IntRect(const IntVector2&in, const IntVector2&in);
  5836. IntRect(int[]&inout);
  5837. // Methods:
  5838. int Clip(const IntRect&);
  5839. Intersection IsInside(const IntVector2&) const;
  5840. int Merge(const IntRect&);
  5841. // Properties:
  5842. int bottom;
  5843. /* readonly */
  5844. Array<int> data;
  5845. /* readonly */
  5846. int height;
  5847. int left;
  5848. int right;
  5849. /* readonly */
  5850. IntVector2 size;
  5851. int top;
  5852. /* readonly */
  5853. int width;
  5854. };
  5855. class IntVector2
  5856. {
  5857. public:
  5858. IntVector2();
  5859. IntVector2(const IntVector2&in);
  5860. IntVector2(int, int);
  5861. IntVector2(int[]&inout);
  5862. // Methods:
  5863. float Length() const;
  5864. uint ToHash() const;
  5865. String ToString() const;
  5866. // Properties:
  5867. /* readonly */
  5868. Array<int> data;
  5869. int x;
  5870. int y;
  5871. // Constants:
  5872. static const IntVector2 DOWN;
  5873. static const IntVector2 LEFT;
  5874. static const IntVector2 ONE;
  5875. static const IntVector2 RIGHT;
  5876. static const IntVector2 UP;
  5877. static const IntVector2 ZERO;
  5878. };
  5879. class IntVector3
  5880. {
  5881. public:
  5882. IntVector3();
  5883. IntVector3(const IntVector3&in);
  5884. IntVector3(int, int, int);
  5885. IntVector3(int[]&inout);
  5886. // Methods:
  5887. float Length() const;
  5888. uint ToHash() const;
  5889. String ToString() const;
  5890. // Properties:
  5891. /* readonly */
  5892. Array<int> data;
  5893. int x;
  5894. int y;
  5895. int z;
  5896. // Constants:
  5897. static const IntVector3 BACK;
  5898. static const IntVector3 DOWN;
  5899. static const IntVector3 FORWARD;
  5900. static const IntVector3 LEFT;
  5901. static const IntVector3 ONE;
  5902. static const IntVector3 RIGHT;
  5903. static const IntVector3 UP;
  5904. static const IntVector3 ZERO;
  5905. };
  5906. class JSONFile
  5907. {
  5908. public:
  5909. JSONFile();
  5910. JSONFile(const String&in);
  5911. // Methods:
  5912. bool FromString(const String&);
  5913. JSONValue& GetRoot();
  5914. bool HasSubscribedToEvent(Object, const String&);
  5915. bool HasSubscribedToEvent(const String&);
  5916. bool Load(File);
  5917. bool Load(VectorBuffer&);
  5918. bool Load(const String&);
  5919. bool Save(File) const;
  5920. bool Save(File, const String&) const;
  5921. bool Save(VectorBuffer&) const;
  5922. bool Save(const String&) const;
  5923. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5924. // Properties:
  5925. /* readonly */
  5926. String category;
  5927. /* readonly */
  5928. uint memoryUse;
  5929. String name;
  5930. /* readonly */
  5931. int refs;
  5932. /* readonly */
  5933. JSONValue root;
  5934. /* readonly */
  5935. StringHash type;
  5936. /* readonly */
  5937. String typeName;
  5938. /* readonly */
  5939. uint useTimer;
  5940. /* readonly */
  5941. int weakRefs;
  5942. };
  5943. class JSONValue
  5944. {
  5945. public:
  5946. ~JSONValue();
  5947. JSONValue();
  5948. JSONValue(bool);
  5949. JSONValue(int);
  5950. JSONValue(uint);
  5951. JSONValue(float);
  5952. JSONValue(double);
  5953. JSONValue(const String&in);
  5954. JSONValue(const JSONValue&in);
  5955. // Methods:
  5956. void Clear();
  5957. bool Contains(const String&) const;
  5958. void Erase(const String&);
  5959. void Erase(uint, uint = 1);
  5960. bool GetBool() const;
  5961. double GetDouble() const;
  5962. float GetFloat() const;
  5963. int GetInt() const;
  5964. uint GetUInt() const;
  5965. Variant GetVariant() const;
  5966. VariantMap GetVariantMap() const;
  5967. void Insert(uint, const JSONValue&);
  5968. const JSONValue& Get(const String&) const;
  5969. void Pop();
  5970. void Push(const JSONValue&);
  5971. void Resize(uint);
  5972. void Set(const String&, const JSONValue&);
  5973. void SetVariant(const Variant&);
  5974. void SetVariantMap(const VariantMap&);
  5975. const String& GetString() const;
  5976. // Properties:
  5977. /* readonly */
  5978. bool isArray;
  5979. /* readonly */
  5980. bool isBool;
  5981. /* readonly */
  5982. bool isNull;
  5983. /* readonly */
  5984. bool isNumber;
  5985. /* readonly */
  5986. bool isObject;
  5987. /* readonly */
  5988. bool isString;
  5989. /* readonly */
  5990. Array<String> keys;
  5991. /* readonly */
  5992. JSONNumberType numberType;
  5993. /* readonly */
  5994. String numberTypeName;
  5995. /* readonly */
  5996. uint size;
  5997. /* readonly */
  5998. JSONValueType valueType;
  5999. /* readonly */
  6000. String valueTypeName;
  6001. /* readonly */
  6002. Array<JSONValue> values;
  6003. };
  6004. class JoystickState
  6005. {
  6006. public:
  6007. // Properties:
  6008. /* readonly */
  6009. Array<float> axisPosition;
  6010. /* readonly */
  6011. Array<bool> buttonDown;
  6012. /* readonly */
  6013. Array<bool> buttonPress;
  6014. /* readonly */
  6015. bool controller;
  6016. /* readonly */
  6017. Array<int> hatPosition;
  6018. int joystickID;
  6019. String name;
  6020. /* readonly */
  6021. uint numAxes;
  6022. /* readonly */
  6023. uint numButtons;
  6024. /* readonly */
  6025. uint numHats;
  6026. };
  6027. class Light
  6028. {
  6029. public:
  6030. // Methods:
  6031. void ApplyAttributes();
  6032. void DrawDebugGeometry(DebugRenderer, bool);
  6033. Variant GetAttribute(const String&) const;
  6034. ValueAnimation GetAttributeAnimation(const String&) const;
  6035. float GetAttributeAnimationSpeed(const String&) const;
  6036. float GetAttributeAnimationTime(const String&) const;
  6037. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6038. Variant GetAttributeDefault(const String&) const;
  6039. bool GetInterceptNetworkUpdate(const String&) const;
  6040. bool HasSubscribedToEvent(Object, const String&);
  6041. bool HasSubscribedToEvent(const String&);
  6042. bool IsInView(Camera) const;
  6043. bool Load(File);
  6044. bool Load(VectorBuffer&);
  6045. bool LoadJSON(const JSONValue&);
  6046. bool LoadXML(const XMLElement&);
  6047. void MarkNetworkUpdate() const;
  6048. void Remove();
  6049. void RemoveAttributeAnimation(const String&);
  6050. void RemoveInstanceDefault();
  6051. void RemoveObjectAnimation();
  6052. void ResetToDefault();
  6053. bool Save(File) const;
  6054. bool Save(VectorBuffer&) const;
  6055. bool SaveJSON(JSONValue&) const;
  6056. bool SaveXML(XMLElement&) const;
  6057. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6058. void SetAnimationTime(float);
  6059. bool SetAttribute(const String&, const Variant&);
  6060. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6061. void SetAttributeAnimationSpeed(const String&, float);
  6062. void SetAttributeAnimationTime(const String&, float);
  6063. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6064. void SetInterceptNetworkUpdate(const String&, bool);
  6065. // Properties:
  6066. bool animationEnabled;
  6067. float aspectRatio;
  6068. /* readonly */
  6069. Array<Variant> attributeDefaults;
  6070. /* readonly */
  6071. Array<AttributeInfo> attributeInfos;
  6072. Array<Variant> attributes;
  6073. /* readonly */
  6074. BoundingBox boundingBox;
  6075. float brightness;
  6076. bool castShadows;
  6077. /* readonly */
  6078. String category;
  6079. Color color;
  6080. /* readonly */
  6081. Color colorFromTemperature;
  6082. float drawDistance;
  6083. /* readonly */
  6084. Color effectiveColor;
  6085. /* readonly */
  6086. float effectiveSpecularIntensity;
  6087. bool enabled;
  6088. /* readonly */
  6089. bool enabledEffective;
  6090. float fadeDistance;
  6091. float fov;
  6092. /* readonly */
  6093. Frustum frustum;
  6094. /* readonly */
  6095. uint id;
  6096. /* readonly */
  6097. bool inView;
  6098. float length;
  6099. uint lightMask;
  6100. LightType lightType;
  6101. float lodBias;
  6102. uint maxLights;
  6103. /* readonly */
  6104. bool negative;
  6105. /* readonly */
  6106. Node node;
  6107. /* readonly */
  6108. uint numAttributes;
  6109. /* readonly */
  6110. int numShadowSplits;
  6111. ObjectAnimation objectAnimation;
  6112. bool occludee;
  6113. bool occluder;
  6114. bool perVertex;
  6115. float radius;
  6116. Texture rampTexture;
  6117. float range;
  6118. /* readonly */
  6119. int refs;
  6120. /* readonly */
  6121. bool replicated;
  6122. BiasParameters shadowBias;
  6123. CascadeParameters shadowCascade;
  6124. float shadowDistance;
  6125. float shadowFadeDistance;
  6126. FocusParameters shadowFocus;
  6127. float shadowIntensity;
  6128. uint shadowMask;
  6129. float shadowMaxExtrusion;
  6130. float shadowNearFarRatio;
  6131. float shadowResolution;
  6132. Texture shapeTexture;
  6133. float specularIntensity;
  6134. float temperature;
  6135. bool temporary;
  6136. /* readonly */
  6137. StringHash type;
  6138. /* readonly */
  6139. String typeName;
  6140. bool usePhysicalValues;
  6141. uint viewMask;
  6142. /* readonly */
  6143. int weakRefs;
  6144. /* readonly */
  6145. BoundingBox worldBoundingBox;
  6146. uint zoneMask;
  6147. };
  6148. class LineEdit
  6149. {
  6150. public:
  6151. LineEdit();
  6152. LineEdit(const String&in);
  6153. // Methods:
  6154. void AddChild(UIElement);
  6155. void AddTag(const String&);
  6156. void AddTags(const String&, int8 = ';');
  6157. void ApplyAttributes();
  6158. void BringToFront();
  6159. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6160. void DisableLayoutUpdate();
  6161. IntVector2 ElementToScreen(const IntVector2&);
  6162. void EnableLayoutUpdate();
  6163. uint FindChild(UIElement) const;
  6164. Variant GetAttribute(const String&) const;
  6165. ValueAnimation GetAttributeAnimation(const String&) const;
  6166. float GetAttributeAnimationSpeed(const String&) const;
  6167. float GetAttributeAnimationTime(const String&) const;
  6168. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6169. Variant GetAttributeDefault(const String&) const;
  6170. UIElement GetChild(const String&, bool = false) const;
  6171. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6172. Array<UIElement> GetChildren(bool = false) const;
  6173. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6174. UIElement GetElementEventSender() const;
  6175. bool GetInterceptNetworkUpdate(const String&) const;
  6176. uint GetNumChildren(bool) const;
  6177. bool HasSubscribedToEvent(Object, const String&);
  6178. bool HasSubscribedToEvent(const String&);
  6179. bool HasTag(const String&) const;
  6180. void InsertChild(uint, UIElement);
  6181. bool IsChildOf(UIElement) const;
  6182. bool IsInside(IntVector2, bool);
  6183. bool IsInsideCombined(IntVector2, bool);
  6184. bool Load(File);
  6185. bool Load(VectorBuffer&);
  6186. UIElement LoadChildXML(XMLFile, XMLFile);
  6187. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6188. bool LoadJSON(const JSONValue&);
  6189. bool LoadXML(File);
  6190. bool LoadXML(VectorBuffer&);
  6191. bool LoadXML(XMLFile, XMLFile);
  6192. bool LoadXML(const XMLElement&, XMLFile);
  6193. bool LoadXML(const XMLElement&);
  6194. void MarkNetworkUpdate() const;
  6195. void Remove();
  6196. void RemoveAllChildren();
  6197. void RemoveAllTags();
  6198. void RemoveAttributeAnimation(const String&);
  6199. void RemoveChild(UIElement, uint = 0);
  6200. void RemoveChild(uint);
  6201. void RemoveInstanceDefault();
  6202. void RemoveObjectAnimation();
  6203. bool RemoveTag(const String&);
  6204. void ResetDeepEnabled();
  6205. void ResetToDefault();
  6206. bool Save(File) const;
  6207. bool Save(VectorBuffer&) const;
  6208. bool SaveJSON(JSONValue&) const;
  6209. bool SaveXML(File, const String& = "\t");
  6210. bool SaveXML(VectorBuffer&, const String& = "\t");
  6211. bool SaveXML(XMLElement&) const;
  6212. IntVector2 ScreenToElement(const IntVector2&);
  6213. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6214. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6215. void SetAnimationTime(float);
  6216. bool SetAttribute(const String&, const Variant&);
  6217. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6218. void SetAttributeAnimationSpeed(const String&, float);
  6219. void SetAttributeAnimationTime(const String&, float);
  6220. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6221. void SetDeepEnabled(bool);
  6222. void SetEnabledRecursive(bool);
  6223. void SetFixedHeight(int);
  6224. void SetFixedSize(int, int);
  6225. void SetFixedWidth(int);
  6226. void SetFullImageRect();
  6227. void SetHoverOffset(int, int);
  6228. void SetInterceptNetworkUpdate(const String&, bool);
  6229. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6230. void SetMaxAnchor(float, float);
  6231. void SetMaxSize(int, int);
  6232. void SetMinAnchor(float, float);
  6233. void SetMinSize(int, int);
  6234. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6235. void SetPivot(float, float);
  6236. void SetPosition(int, int);
  6237. void SetSize(int, int);
  6238. bool SetStyle(const String&, XMLFile = null);
  6239. bool SetStyle(const XMLElement&);
  6240. bool SetStyleAuto(XMLFile = null);
  6241. void UpdateLayout();
  6242. const Variant& GetVar(const StringHash&);
  6243. // Properties:
  6244. bool animationEnabled;
  6245. /* readonly */
  6246. Array<Variant> attributeDefaults;
  6247. /* readonly */
  6248. Array<AttributeInfo> attributeInfos;
  6249. Array<Variant> attributes;
  6250. BlendMode blendMode;
  6251. IntRect border;
  6252. bool bringToBack;
  6253. bool bringToFront;
  6254. /* readonly */
  6255. String category;
  6256. /* readonly */
  6257. IntVector2 childOffset;
  6258. /* readonly */
  6259. Array<UIElement> children;
  6260. IntRect clipBorder;
  6261. bool clipChildren;
  6262. /* writeonly */
  6263. Color color;
  6264. /* readonly */
  6265. bool colorGradient;
  6266. Array<Color> colors;
  6267. /* readonly */
  6268. IntRect combinedScreenRect;
  6269. /* readonly */
  6270. BorderImage cursor;
  6271. float cursorBlinkRate;
  6272. bool cursorMovable;
  6273. uint cursorPosition;
  6274. XMLFile defaultStyle;
  6275. /* readonly */
  6276. float derivedOpacity;
  6277. /* readonly */
  6278. uint dragButtonCombo;
  6279. /* readonly */
  6280. int dragButtonCount;
  6281. uint dragDropMode;
  6282. uint echoCharacter;
  6283. bool editable;
  6284. bool elementEventSender;
  6285. bool enableAnchor;
  6286. bool enabled;
  6287. /* readonly */
  6288. bool enabledSelf;
  6289. /* readonly */
  6290. bool fixedHeight;
  6291. /* readonly */
  6292. bool fixedSize;
  6293. /* readonly */
  6294. bool fixedWidth;
  6295. bool focus;
  6296. FocusMode focusMode;
  6297. int height;
  6298. HorizontalAlignment horizontalAlignment;
  6299. IntVector2 hoverOffset;
  6300. /* readonly */
  6301. bool hovering;
  6302. IntRect imageBorder;
  6303. IntRect imageRect;
  6304. int indent;
  6305. int indentSpacing;
  6306. /* readonly */
  6307. int indentWidth;
  6308. bool internal;
  6309. IntRect layoutBorder;
  6310. Vector2 layoutFlexScale;
  6311. LayoutMode layoutMode;
  6312. int layoutSpacing;
  6313. Vector2 maxAnchor;
  6314. int maxHeight;
  6315. uint maxLength;
  6316. IntVector2 maxOffset;
  6317. IntVector2 maxSize;
  6318. int maxWidth;
  6319. Vector2 minAnchor;
  6320. int minHeight;
  6321. IntVector2 minOffset;
  6322. IntVector2 minSize;
  6323. int minWidth;
  6324. String name;
  6325. /* readonly */
  6326. uint numAllChildren;
  6327. /* readonly */
  6328. uint numAttributes;
  6329. /* readonly */
  6330. uint numChildren;
  6331. ObjectAnimation objectAnimation;
  6332. float opacity;
  6333. UIElement parent;
  6334. Vector2 pivot;
  6335. IntVector2 position;
  6336. int priority;
  6337. /* readonly */
  6338. int refs;
  6339. /* readonly */
  6340. UIElement root;
  6341. /* readonly */
  6342. IntVector2 screenPosition;
  6343. bool selected;
  6344. IntVector2 size;
  6345. bool sortChildren;
  6346. String style;
  6347. /* readonly */
  6348. Array<String> tags;
  6349. bool temporary;
  6350. String text;
  6351. bool textCopyable;
  6352. /* readonly */
  6353. Text textElement;
  6354. bool textSelectable;
  6355. Texture texture;
  6356. bool tiled;
  6357. TraversalMode traversalMode;
  6358. /* readonly */
  6359. StringHash type;
  6360. /* readonly */
  6361. String typeName;
  6362. bool useDerivedOpacity;
  6363. /* readonly */
  6364. VariantMap vars;
  6365. VerticalAlignment verticalAlignment;
  6366. bool visible;
  6367. /* readonly */
  6368. bool visibleEffective;
  6369. /* readonly */
  6370. int weakRefs;
  6371. int width;
  6372. };
  6373. class ListView
  6374. {
  6375. public:
  6376. ListView();
  6377. ListView(const String&in);
  6378. // Methods:
  6379. void AddChild(UIElement);
  6380. void AddItem(UIElement);
  6381. void AddSelection(uint);
  6382. void AddTag(const String&);
  6383. void AddTags(const String&, int8 = ';');
  6384. void ApplyAttributes();
  6385. void BringToFront();
  6386. void ChangeSelection(int, bool);
  6387. void ClearSelection();
  6388. void CopySelectedItemsToClipboard();
  6389. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6390. void DisableInternalLayoutUpdate();
  6391. void DisableLayoutUpdate();
  6392. IntVector2 ElementToScreen(const IntVector2&);
  6393. void EnableInternalLayoutUpdate();
  6394. void EnableLayoutUpdate();
  6395. void Expand(uint, bool, bool = false);
  6396. uint FindChild(UIElement) const;
  6397. uint FindItem(UIElement);
  6398. Variant GetAttribute(const String&) const;
  6399. ValueAnimation GetAttributeAnimation(const String&) const;
  6400. float GetAttributeAnimationSpeed(const String&) const;
  6401. float GetAttributeAnimationTime(const String&) const;
  6402. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6403. Variant GetAttributeDefault(const String&) const;
  6404. UIElement GetChild(const String&, bool = false) const;
  6405. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6406. Array<UIElement> GetChildren(bool = false) const;
  6407. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6408. UIElement GetElementEventSender() const;
  6409. bool GetInterceptNetworkUpdate(const String&) const;
  6410. Array<UIElement> GetItems() const;
  6411. uint GetNumChildren(bool) const;
  6412. bool HasSubscribedToEvent(Object, const String&);
  6413. bool HasSubscribedToEvent(const String&);
  6414. bool HasTag(const String&) const;
  6415. void InsertChild(uint, UIElement);
  6416. void InsertItem(uint, UIElement, UIElement = null);
  6417. bool IsChildOf(UIElement) const;
  6418. bool IsExpanded(uint) const;
  6419. bool IsInside(IntVector2, bool);
  6420. bool IsInsideCombined(IntVector2, bool);
  6421. bool IsSelected(uint) const;
  6422. bool Load(File);
  6423. bool Load(VectorBuffer&);
  6424. UIElement LoadChildXML(XMLFile, XMLFile);
  6425. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6426. bool LoadJSON(const JSONValue&);
  6427. bool LoadXML(File);
  6428. bool LoadXML(VectorBuffer&);
  6429. bool LoadXML(XMLFile, XMLFile);
  6430. bool LoadXML(const XMLElement&, XMLFile);
  6431. bool LoadXML(const XMLElement&);
  6432. void MarkNetworkUpdate() const;
  6433. void Remove();
  6434. void RemoveAllChildren();
  6435. void RemoveAllItems();
  6436. void RemoveAllTags();
  6437. void RemoveAttributeAnimation(const String&);
  6438. void RemoveChild(UIElement, uint = 0);
  6439. void RemoveChild(uint);
  6440. void RemoveInstanceDefault();
  6441. void RemoveItem(UIElement, uint = 0);
  6442. void RemoveItem(uint);
  6443. void RemoveObjectAnimation();
  6444. void RemoveSelection(uint);
  6445. bool RemoveTag(const String&);
  6446. void ResetDeepEnabled();
  6447. void ResetToDefault();
  6448. bool Save(File) const;
  6449. bool Save(VectorBuffer&) const;
  6450. bool SaveJSON(JSONValue&) const;
  6451. bool SaveXML(File, const String& = "\t");
  6452. bool SaveXML(VectorBuffer&, const String& = "\t");
  6453. bool SaveXML(XMLElement&) const;
  6454. IntVector2 ScreenToElement(const IntVector2&);
  6455. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6456. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6457. void SetAnimationTime(float);
  6458. bool SetAttribute(const String&, const Variant&);
  6459. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6460. void SetAttributeAnimationSpeed(const String&, float);
  6461. void SetAttributeAnimationTime(const String&, float);
  6462. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6463. void SetDeepEnabled(bool);
  6464. void SetEnabledRecursive(bool);
  6465. void SetFixedHeight(int);
  6466. void SetFixedSize(int, int);
  6467. void SetFixedWidth(int);
  6468. void SetInterceptNetworkUpdate(const String&, bool);
  6469. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6470. void SetMaxAnchor(float, float);
  6471. void SetMaxSize(int, int);
  6472. void SetMinAnchor(float, float);
  6473. void SetMinSize(int, int);
  6474. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6475. void SetPivot(float, float);
  6476. void SetPosition(int, int);
  6477. void SetScrollBarsVisible(bool, bool);
  6478. void SetSelections(Array<uint>);
  6479. void SetSize(int, int);
  6480. bool SetStyle(const String&, XMLFile = null);
  6481. bool SetStyle(const XMLElement&);
  6482. bool SetStyleAuto(XMLFile = null);
  6483. void SetViewPosition(int, int);
  6484. void ToggleExpand(uint, bool = false);
  6485. void ToggleSelection(uint);
  6486. void UpdateInternalLayout();
  6487. void UpdateLayout();
  6488. const Variant& GetVar(const StringHash&);
  6489. // Properties:
  6490. bool animationEnabled;
  6491. /* readonly */
  6492. Array<Variant> attributeDefaults;
  6493. /* readonly */
  6494. Array<AttributeInfo> attributeInfos;
  6495. Array<Variant> attributes;
  6496. bool autoDisableChildren;
  6497. float autoDisableThreshold;
  6498. int baseIndent;
  6499. bool bringToBack;
  6500. bool bringToFront;
  6501. /* readonly */
  6502. String category;
  6503. /* readonly */
  6504. IntVector2 childOffset;
  6505. /* readonly */
  6506. Array<UIElement> children;
  6507. bool clearSelectionOnDefocus;
  6508. IntRect clipBorder;
  6509. bool clipChildren;
  6510. /* writeonly */
  6511. Color color;
  6512. /* readonly */
  6513. bool colorGradient;
  6514. Array<Color> colors;
  6515. /* readonly */
  6516. IntRect combinedScreenRect;
  6517. /* readonly */
  6518. UIElement contentElement;
  6519. XMLFile defaultStyle;
  6520. /* readonly */
  6521. float derivedOpacity;
  6522. /* readonly */
  6523. uint dragButtonCombo;
  6524. /* readonly */
  6525. int dragButtonCount;
  6526. uint dragDropMode;
  6527. bool editable;
  6528. bool elementEventSender;
  6529. bool enableAnchor;
  6530. bool enabled;
  6531. /* readonly */
  6532. bool enabledSelf;
  6533. /* readonly */
  6534. bool fixedHeight;
  6535. /* readonly */
  6536. bool fixedSize;
  6537. /* readonly */
  6538. bool fixedWidth;
  6539. bool focus;
  6540. FocusMode focusMode;
  6541. int height;
  6542. bool hierarchyMode;
  6543. HighlightMode highlightMode;
  6544. HorizontalAlignment horizontalAlignment;
  6545. /* readonly */
  6546. ScrollBar horizontalScrollBar;
  6547. /* readonly */
  6548. bool hovering;
  6549. int indent;
  6550. int indentSpacing;
  6551. /* readonly */
  6552. int indentWidth;
  6553. bool internal;
  6554. /* readonly */
  6555. Array<UIElement> items;
  6556. IntRect layoutBorder;
  6557. Vector2 layoutFlexScale;
  6558. LayoutMode layoutMode;
  6559. int layoutSpacing;
  6560. Vector2 maxAnchor;
  6561. int maxHeight;
  6562. IntVector2 maxOffset;
  6563. IntVector2 maxSize;
  6564. int maxWidth;
  6565. Vector2 minAnchor;
  6566. int minHeight;
  6567. IntVector2 minOffset;
  6568. IntVector2 minSize;
  6569. int minWidth;
  6570. bool multiselect;
  6571. String name;
  6572. /* readonly */
  6573. uint numAllChildren;
  6574. /* readonly */
  6575. uint numAttributes;
  6576. /* readonly */
  6577. uint numChildren;
  6578. /* readonly */
  6579. uint numItems;
  6580. ObjectAnimation objectAnimation;
  6581. float opacity;
  6582. float pageStep;
  6583. UIElement parent;
  6584. Vector2 pivot;
  6585. IntVector2 position;
  6586. int priority;
  6587. /* readonly */
  6588. int refs;
  6589. /* readonly */
  6590. UIElement root;
  6591. /* readonly */
  6592. IntVector2 screenPosition;
  6593. bool scrollBarsAutoVisible;
  6594. float scrollDeceleration;
  6595. /* readonly */
  6596. BorderImage scrollPanel;
  6597. float scrollSnapEpsilon;
  6598. float scrollStep;
  6599. bool selectOnClickEnd;
  6600. bool selected;
  6601. /* readonly */
  6602. UIElement selectedItem;
  6603. /* readonly */
  6604. Array<UIElement> selectedItems;
  6605. uint selection;
  6606. /* readonly */
  6607. Array<uint> selections;
  6608. IntVector2 size;
  6609. bool sortChildren;
  6610. String style;
  6611. /* readonly */
  6612. Array<String> tags;
  6613. bool temporary;
  6614. TraversalMode traversalMode;
  6615. /* readonly */
  6616. StringHash type;
  6617. /* readonly */
  6618. String typeName;
  6619. bool useDerivedOpacity;
  6620. /* readonly */
  6621. VariantMap vars;
  6622. VerticalAlignment verticalAlignment;
  6623. /* readonly */
  6624. ScrollBar verticalScrollBar;
  6625. IntVector2 viewPosition;
  6626. bool visible;
  6627. /* readonly */
  6628. bool visibleEffective;
  6629. /* readonly */
  6630. int weakRefs;
  6631. int width;
  6632. };
  6633. class Localization
  6634. {
  6635. public:
  6636. // Methods:
  6637. String Get(const String&);
  6638. String GetLanguage(int);
  6639. int GetLanguageIndex(const String&);
  6640. bool HasSubscribedToEvent(Object, const String&);
  6641. bool HasSubscribedToEvent(const String&);
  6642. void LoadJSON(const JSONValue&);
  6643. void LoadJSONFile(const String&);
  6644. void Reset();
  6645. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6646. void SetLanguage(const String&);
  6647. void SetLanguage(int);
  6648. // Properties:
  6649. /* readonly */
  6650. String category;
  6651. /* readonly */
  6652. String language;
  6653. /* readonly */
  6654. int languageIndex;
  6655. /* readonly */
  6656. int numLanguages;
  6657. /* readonly */
  6658. int refs;
  6659. /* readonly */
  6660. StringHash type;
  6661. /* readonly */
  6662. String typeName;
  6663. /* readonly */
  6664. int weakRefs;
  6665. };
  6666. class Log
  6667. {
  6668. public:
  6669. // Methods:
  6670. void Close();
  6671. void Debug(const String&);
  6672. void Error(const String&);
  6673. bool HasSubscribedToEvent(Object, const String&);
  6674. bool HasSubscribedToEvent(const String&);
  6675. void Info(const String&);
  6676. void Open(const String&);
  6677. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6678. void Trace(const String&);
  6679. void Warning(const String&);
  6680. void Write(const String&, bool = false);
  6681. // Properties:
  6682. /* readonly */
  6683. String category;
  6684. /* readonly */
  6685. String lastMessage;
  6686. int level;
  6687. bool quiet;
  6688. /* readonly */
  6689. int refs;
  6690. bool timeStamp;
  6691. /* readonly */
  6692. StringHash type;
  6693. /* readonly */
  6694. String typeName;
  6695. /* readonly */
  6696. int weakRefs;
  6697. };
  6698. class Material
  6699. {
  6700. public:
  6701. Material();
  6702. Material(const String&in);
  6703. // Methods:
  6704. Material Clone(const String& = String ( )) const;
  6705. Pass GetPass(uint, const String&);
  6706. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6707. float GetShaderParameterAnimationSpeed(const String&) const;
  6708. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6709. bool HasSubscribedToEvent(Object, const String&);
  6710. bool HasSubscribedToEvent(const String&);
  6711. bool Load(File);
  6712. bool Load(VectorBuffer&);
  6713. bool Load(const JSONValue&);
  6714. bool Load(const String&);
  6715. bool Load(const XMLElement&);
  6716. void RemoveShaderParameter(const String&);
  6717. bool Save(File) const;
  6718. bool Save(JSONValue&) const;
  6719. bool Save(VectorBuffer&) const;
  6720. bool Save(XMLElement&) const;
  6721. bool Save(const String&) const;
  6722. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6723. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6724. void SetShaderParameterAnimationSpeed(const String&, float);
  6725. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6726. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6727. void SetUVTransform(const Vector2&, float, const Vector2&);
  6728. void SetUVTransform(const Vector2&, float, float);
  6729. void SortTechniques();
  6730. // Properties:
  6731. bool alphaToCoverage;
  6732. /* readonly */
  6733. String category;
  6734. CullMode cullMode;
  6735. BiasParameters depthBias;
  6736. FillMode fillMode;
  6737. bool lineAntiAlias;
  6738. /* readonly */
  6739. uint memoryUse;
  6740. String name;
  6741. uint numTechniques;
  6742. bool occlusion;
  6743. String pixelShaderDefines;
  6744. /* readonly */
  6745. int refs;
  6746. uint8 renderOrder;
  6747. Scene scene;
  6748. /* readonly */
  6749. Array<String> shaderParameterNames;
  6750. Array<Variant> shaderParameters;
  6751. CullMode shadowCullMode;
  6752. /* readonly */
  6753. Array<TechniqueEntry> techniqueEntries;
  6754. /* readonly */
  6755. Array<Technique> techniques;
  6756. Array<Texture> textures;
  6757. /* readonly */
  6758. StringHash type;
  6759. /* readonly */
  6760. String typeName;
  6761. /* readonly */
  6762. uint useTimer;
  6763. String vertexShaderDefines;
  6764. /* readonly */
  6765. int weakRefs;
  6766. };
  6767. class Matrix2
  6768. {
  6769. public:
  6770. Matrix2();
  6771. Matrix2(const Matrix2&in);
  6772. Matrix2(float, float, float, float);
  6773. // Methods:
  6774. bool Equals(const Matrix2&) const;
  6775. Matrix2 Inverse() const;
  6776. Vector2 Scale() const;
  6777. Matrix2 Scaled(const Vector2&) const;
  6778. void SetScale(const Vector2&);
  6779. void SetScale(float);
  6780. String ToString() const;
  6781. Matrix2 Transpose() const;
  6782. // Properties:
  6783. float m00;
  6784. float m01;
  6785. float m10;
  6786. float m11;
  6787. };
  6788. class Matrix3
  6789. {
  6790. public:
  6791. Matrix3();
  6792. Matrix3(const Matrix3&in);
  6793. Matrix3(float, float, float, float, float, float, float, float, float);
  6794. // Methods:
  6795. bool Equals(const Matrix3&) const;
  6796. Matrix3 Inverse() const;
  6797. Vector3 Scale() const;
  6798. Matrix3 Scaled(const Vector3&) const;
  6799. void SetScale(const Vector3&);
  6800. void SetScale(float);
  6801. String ToString() const;
  6802. Matrix3 Transpose() const;
  6803. // Properties:
  6804. float m00;
  6805. float m01;
  6806. float m02;
  6807. float m10;
  6808. float m11;
  6809. float m12;
  6810. float m20;
  6811. float m21;
  6812. float m22;
  6813. };
  6814. class Matrix3x4
  6815. {
  6816. public:
  6817. Matrix3x4();
  6818. Matrix3x4(const Matrix3x4&in);
  6819. Matrix3x4(const Matrix3&in);
  6820. Matrix3x4(const Matrix4&in);
  6821. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  6822. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  6823. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  6824. // Methods:
  6825. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6826. bool Equals(const Matrix3x4&) const;
  6827. Matrix3x4 Inverse() const;
  6828. Quaternion Rotation() const;
  6829. Matrix3 RotationMatrix() const;
  6830. Vector3 Scale() const;
  6831. void SetRotation(const Matrix3&);
  6832. void SetScale(const Vector3&);
  6833. void SetScale(float);
  6834. void SetTranslation(const Vector3&);
  6835. Matrix3 ToMatrix3() const;
  6836. Matrix4 ToMatrix4() const;
  6837. String ToString() const;
  6838. Vector3 Translation() const;
  6839. // Properties:
  6840. float m00;
  6841. float m01;
  6842. float m02;
  6843. float m03;
  6844. float m10;
  6845. float m11;
  6846. float m12;
  6847. float m13;
  6848. float m20;
  6849. float m21;
  6850. float m22;
  6851. float m23;
  6852. };
  6853. class Matrix4
  6854. {
  6855. public:
  6856. Matrix4();
  6857. Matrix4(const Matrix4&in);
  6858. Matrix4(const Matrix3&in);
  6859. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  6860. // Methods:
  6861. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6862. bool Equals(const Matrix4&) const;
  6863. Matrix4 Inverse() const;
  6864. Quaternion Rotation() const;
  6865. Matrix3 RotationMatrix() const;
  6866. Vector3 Scale() const;
  6867. void SetRotation(const Matrix3&);
  6868. void SetScale(const Vector3&);
  6869. void SetScale(float);
  6870. void SetTranslation(const Vector3&);
  6871. Matrix3 ToMatrix3() const;
  6872. String ToString() const;
  6873. Vector3 Translation() const;
  6874. Matrix4 Transpose() const;
  6875. // Properties:
  6876. float m00;
  6877. float m01;
  6878. float m02;
  6879. float m03;
  6880. float m10;
  6881. float m11;
  6882. float m12;
  6883. float m13;
  6884. float m20;
  6885. float m21;
  6886. float m22;
  6887. float m23;
  6888. float m30;
  6889. float m31;
  6890. float m32;
  6891. float m33;
  6892. };
  6893. class Menu
  6894. {
  6895. public:
  6896. Menu();
  6897. Menu(const String&in);
  6898. // Methods:
  6899. void AddChild(UIElement);
  6900. void AddTag(const String&);
  6901. void AddTags(const String&, int8 = ';');
  6902. void ApplyAttributes();
  6903. void BringToFront();
  6904. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6905. void DisableLayoutUpdate();
  6906. IntVector2 ElementToScreen(const IntVector2&);
  6907. void EnableLayoutUpdate();
  6908. uint FindChild(UIElement) const;
  6909. Variant GetAttribute(const String&) const;
  6910. ValueAnimation GetAttributeAnimation(const String&) const;
  6911. float GetAttributeAnimationSpeed(const String&) const;
  6912. float GetAttributeAnimationTime(const String&) const;
  6913. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6914. Variant GetAttributeDefault(const String&) const;
  6915. UIElement GetChild(const String&, bool = false) const;
  6916. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6917. Array<UIElement> GetChildren(bool = false) const;
  6918. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6919. UIElement GetElementEventSender() const;
  6920. bool GetInterceptNetworkUpdate(const String&) const;
  6921. uint GetNumChildren(bool) const;
  6922. bool HasSubscribedToEvent(Object, const String&);
  6923. bool HasSubscribedToEvent(const String&);
  6924. bool HasTag(const String&) const;
  6925. void InsertChild(uint, UIElement);
  6926. bool IsChildOf(UIElement) const;
  6927. bool IsInside(IntVector2, bool);
  6928. bool IsInsideCombined(IntVector2, bool);
  6929. bool Load(File);
  6930. bool Load(VectorBuffer&);
  6931. UIElement LoadChildXML(XMLFile, XMLFile);
  6932. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6933. bool LoadJSON(const JSONValue&);
  6934. bool LoadXML(File);
  6935. bool LoadXML(VectorBuffer&);
  6936. bool LoadXML(XMLFile, XMLFile);
  6937. bool LoadXML(const XMLElement&, XMLFile);
  6938. bool LoadXML(const XMLElement&);
  6939. void MarkNetworkUpdate() const;
  6940. void Remove();
  6941. void RemoveAllChildren();
  6942. void RemoveAllTags();
  6943. void RemoveAttributeAnimation(const String&);
  6944. void RemoveChild(UIElement, uint = 0);
  6945. void RemoveChild(uint);
  6946. void RemoveInstanceDefault();
  6947. void RemoveObjectAnimation();
  6948. bool RemoveTag(const String&);
  6949. void ResetDeepEnabled();
  6950. void ResetToDefault();
  6951. bool Save(File) const;
  6952. bool Save(VectorBuffer&) const;
  6953. bool SaveJSON(JSONValue&) const;
  6954. bool SaveXML(File, const String& = "\t");
  6955. bool SaveXML(VectorBuffer&, const String& = "\t");
  6956. bool SaveXML(XMLElement&) const;
  6957. IntVector2 ScreenToElement(const IntVector2&);
  6958. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6959. void SetAccelerator(int, int);
  6960. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6961. void SetAnimationTime(float);
  6962. bool SetAttribute(const String&, const Variant&);
  6963. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6964. void SetAttributeAnimationSpeed(const String&, float);
  6965. void SetAttributeAnimationTime(const String&, float);
  6966. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6967. void SetDeepEnabled(bool);
  6968. void SetDisabledOffset(int, int);
  6969. void SetEnabledRecursive(bool);
  6970. void SetFixedHeight(int);
  6971. void SetFixedSize(int, int);
  6972. void SetFixedWidth(int);
  6973. void SetFullImageRect();
  6974. void SetHoverOffset(int, int);
  6975. void SetInterceptNetworkUpdate(const String&, bool);
  6976. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6977. void SetMaxAnchor(float, float);
  6978. void SetMaxSize(int, int);
  6979. void SetMinAnchor(float, float);
  6980. void SetMinSize(int, int);
  6981. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6982. void SetPivot(float, float);
  6983. void SetPopupOffset(int, int);
  6984. void SetPosition(int, int);
  6985. void SetPressedChildOffset(int, int);
  6986. void SetPressedOffset(int, int);
  6987. void SetRepeat(float, float);
  6988. void SetSize(int, int);
  6989. bool SetStyle(const String&, XMLFile = null);
  6990. bool SetStyle(const XMLElement&);
  6991. bool SetStyleAuto(XMLFile = null);
  6992. void UpdateLayout();
  6993. const Variant& GetVar(const StringHash&);
  6994. // Properties:
  6995. /* readonly */
  6996. int acceleratorKey;
  6997. /* readonly */
  6998. int acceleratorQualifiers;
  6999. bool animationEnabled;
  7000. /* readonly */
  7001. Array<Variant> attributeDefaults;
  7002. /* readonly */
  7003. Array<AttributeInfo> attributeInfos;
  7004. Array<Variant> attributes;
  7005. BlendMode blendMode;
  7006. IntRect border;
  7007. bool bringToBack;
  7008. bool bringToFront;
  7009. /* readonly */
  7010. String category;
  7011. /* readonly */
  7012. IntVector2 childOffset;
  7013. /* readonly */
  7014. Array<UIElement> children;
  7015. IntRect clipBorder;
  7016. bool clipChildren;
  7017. /* writeonly */
  7018. Color color;
  7019. /* readonly */
  7020. bool colorGradient;
  7021. Array<Color> colors;
  7022. /* readonly */
  7023. IntRect combinedScreenRect;
  7024. XMLFile defaultStyle;
  7025. /* readonly */
  7026. float derivedOpacity;
  7027. IntVector2 disabledOffset;
  7028. /* readonly */
  7029. uint dragButtonCombo;
  7030. /* readonly */
  7031. int dragButtonCount;
  7032. uint dragDropMode;
  7033. bool editable;
  7034. bool elementEventSender;
  7035. bool enableAnchor;
  7036. bool enabled;
  7037. /* readonly */
  7038. bool enabledSelf;
  7039. /* readonly */
  7040. bool fixedHeight;
  7041. /* readonly */
  7042. bool fixedSize;
  7043. /* readonly */
  7044. bool fixedWidth;
  7045. bool focus;
  7046. FocusMode focusMode;
  7047. int height;
  7048. HorizontalAlignment horizontalAlignment;
  7049. IntVector2 hoverOffset;
  7050. /* readonly */
  7051. bool hovering;
  7052. IntRect imageBorder;
  7053. IntRect imageRect;
  7054. int indent;
  7055. int indentSpacing;
  7056. /* readonly */
  7057. int indentWidth;
  7058. bool internal;
  7059. IntRect layoutBorder;
  7060. Vector2 layoutFlexScale;
  7061. LayoutMode layoutMode;
  7062. int layoutSpacing;
  7063. Vector2 maxAnchor;
  7064. int maxHeight;
  7065. IntVector2 maxOffset;
  7066. IntVector2 maxSize;
  7067. int maxWidth;
  7068. Vector2 minAnchor;
  7069. int minHeight;
  7070. IntVector2 minOffset;
  7071. IntVector2 minSize;
  7072. int minWidth;
  7073. String name;
  7074. /* readonly */
  7075. uint numAllChildren;
  7076. /* readonly */
  7077. uint numAttributes;
  7078. /* readonly */
  7079. uint numChildren;
  7080. ObjectAnimation objectAnimation;
  7081. float opacity;
  7082. UIElement parent;
  7083. Vector2 pivot;
  7084. UIElement popup;
  7085. IntVector2 popupOffset;
  7086. IntVector2 position;
  7087. /* readonly */
  7088. bool pressed;
  7089. IntVector2 pressedChildOffset;
  7090. IntVector2 pressedOffset;
  7091. int priority;
  7092. /* readonly */
  7093. int refs;
  7094. float repeatDelay;
  7095. float repeatRate;
  7096. /* readonly */
  7097. UIElement root;
  7098. /* readonly */
  7099. IntVector2 screenPosition;
  7100. bool selected;
  7101. bool showPopup;
  7102. IntVector2 size;
  7103. bool sortChildren;
  7104. String style;
  7105. /* readonly */
  7106. Array<String> tags;
  7107. bool temporary;
  7108. Texture texture;
  7109. bool tiled;
  7110. TraversalMode traversalMode;
  7111. /* readonly */
  7112. StringHash type;
  7113. /* readonly */
  7114. String typeName;
  7115. bool useDerivedOpacity;
  7116. /* readonly */
  7117. VariantMap vars;
  7118. VerticalAlignment verticalAlignment;
  7119. bool visible;
  7120. /* readonly */
  7121. bool visibleEffective;
  7122. /* readonly */
  7123. int weakRefs;
  7124. int width;
  7125. };
  7126. class MessageBox
  7127. {
  7128. public:
  7129. MessageBox(const String&in messageString = String ( ), const String&in titleString = String ( ), XMLFile& layoutFile = null, XMLFile& styleFile = null);
  7130. // Methods:
  7131. bool HasSubscribedToEvent(Object, const String&);
  7132. bool HasSubscribedToEvent(const String&);
  7133. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7134. // Properties:
  7135. /* readonly */
  7136. String category;
  7137. String message;
  7138. /* readonly */
  7139. int refs;
  7140. String title;
  7141. /* readonly */
  7142. StringHash type;
  7143. /* readonly */
  7144. String typeName;
  7145. /* readonly */
  7146. int weakRefs;
  7147. /* readonly */
  7148. UIElement window;
  7149. };
  7150. class Model
  7151. {
  7152. public:
  7153. Model();
  7154. Model(const String&in);
  7155. // Methods:
  7156. void AddMetadata(const String&, const Variant&);
  7157. Model Clone(const String& = String ( )) const;
  7158. Geometry GetGeometry(uint, uint) const;
  7159. bool HasSubscribedToEvent(Object, const String&);
  7160. bool HasSubscribedToEvent(const String&);
  7161. bool Load(File);
  7162. bool Load(VectorBuffer&);
  7163. bool Load(const String&);
  7164. void RemoveAllMetadata();
  7165. void RemoveMetadata(const String&);
  7166. bool Save(File) const;
  7167. bool Save(VectorBuffer&) const;
  7168. bool Save(const String&) const;
  7169. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7170. bool SetGeometry(uint, uint, Geometry);
  7171. bool SetIndexBuffers(Array<IndexBuffer>);
  7172. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  7173. // Properties:
  7174. BoundingBox boundingBox;
  7175. /* readonly */
  7176. String category;
  7177. Array<Vector3> geometryCenters;
  7178. /* readonly */
  7179. bool hasMetadata;
  7180. /* readonly */
  7181. uint memoryUse;
  7182. Array<Variant> metadata;
  7183. String name;
  7184. uint numGeometries;
  7185. Array<uint> numGeometryLodLevels;
  7186. /* readonly */
  7187. uint numMorphs;
  7188. /* readonly */
  7189. int refs;
  7190. /* readonly */
  7191. Skeleton skeleton;
  7192. /* readonly */
  7193. StringHash type;
  7194. /* readonly */
  7195. String typeName;
  7196. /* readonly */
  7197. uint useTimer;
  7198. /* readonly */
  7199. int weakRefs;
  7200. };
  7201. class NamedPipe
  7202. {
  7203. public:
  7204. NamedPipe();
  7205. NamedPipe(const String&in, bool);
  7206. // Methods:
  7207. void Close();
  7208. bool HasSubscribedToEvent(Object, const String&);
  7209. bool HasSubscribedToEvent(const String&);
  7210. bool Open(const String&, bool);
  7211. Array<uint8> Read(uint);
  7212. bool ReadBool();
  7213. BoundingBox ReadBoundingBox();
  7214. int8 ReadByte();
  7215. Color ReadColor();
  7216. double ReadDouble();
  7217. String ReadFileID();
  7218. float ReadFloat();
  7219. int ReadInt();
  7220. int64 ReadInt64();
  7221. IntRect ReadIntRect();
  7222. IntVector2 ReadIntVector2();
  7223. String ReadLine();
  7224. Matrix3 ReadMatrix3();
  7225. Matrix3x4 ReadMatrix3x4();
  7226. Matrix4 ReadMatrix4();
  7227. uint ReadNetID();
  7228. Quaternion ReadPackedQuaternion();
  7229. Vector3 ReadPackedVector3(float);
  7230. Quaternion ReadQuaternion();
  7231. int16 ReadShort();
  7232. String ReadString();
  7233. StringHash ReadStringHash();
  7234. uint8 ReadUByte();
  7235. uint ReadUInt();
  7236. uint64 ReadUInt64();
  7237. uint16 ReadUShort();
  7238. uint ReadVLE();
  7239. Variant ReadVariant();
  7240. VariantMap ReadVariantMap();
  7241. Vector2 ReadVector2();
  7242. Vector3 ReadVector3();
  7243. Vector4 ReadVector4();
  7244. VectorBuffer ReadVectorBuffer(uint);
  7245. uint Seek(uint);
  7246. uint SeekRelative(int);
  7247. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7248. uint Tell() const;
  7249. uint Write(Array<uint8>);
  7250. bool WriteBool(bool);
  7251. bool WriteBoundingBox(const BoundingBox&);
  7252. bool WriteByte(int8);
  7253. bool WriteColor(const Color&);
  7254. bool WriteDouble(double);
  7255. bool WriteFileID(const String&);
  7256. bool WriteFloat(float);
  7257. bool WriteInt(int);
  7258. bool WriteInt64(int64);
  7259. bool WriteIntRect(const IntRect&);
  7260. bool WriteIntVector2(const IntVector2&);
  7261. bool WriteLine(const String&);
  7262. bool WriteMatrix3(const Matrix3&);
  7263. bool WriteMatrix3x4(const Matrix3x4&);
  7264. bool WriteMatrix4(const Matrix4&);
  7265. bool WriteNetID(uint);
  7266. bool WritePackedQuaternion(const Quaternion&);
  7267. bool WritePackedVector3(const Vector3&, float);
  7268. bool WriteQuaternion(const Quaternion&);
  7269. bool WriteShort(int16);
  7270. bool WriteString(const String&);
  7271. bool WriteStringHash(const StringHash&);
  7272. bool WriteUByte(uint8);
  7273. bool WriteUInt(uint);
  7274. bool WriteUInt64(uint64);
  7275. bool WriteUShort(uint16);
  7276. bool WriteVLE(uint);
  7277. bool WriteVariant(const Variant&);
  7278. bool WriteVariantMap(const VariantMap&);
  7279. bool WriteVector2(const Vector2&);
  7280. bool WriteVector3(const Vector3&);
  7281. bool WriteVector4(const Vector4&);
  7282. bool WriteVectorBuffer(const VectorBuffer&);
  7283. // Properties:
  7284. /* readonly */
  7285. String category;
  7286. /* readonly */
  7287. uint checksum;
  7288. /* readonly */
  7289. bool eof;
  7290. /* readonly */
  7291. String name;
  7292. /* readonly */
  7293. bool open;
  7294. /* readonly */
  7295. uint position;
  7296. /* readonly */
  7297. int refs;
  7298. /* readonly */
  7299. bool server;
  7300. /* readonly */
  7301. uint size;
  7302. /* readonly */
  7303. StringHash type;
  7304. /* readonly */
  7305. String typeName;
  7306. /* readonly */
  7307. int weakRefs;
  7308. };
  7309. class NavArea
  7310. {
  7311. public:
  7312. // Methods:
  7313. void ApplyAttributes();
  7314. void DrawDebugGeometry(DebugRenderer, bool);
  7315. Variant GetAttribute(const String&) const;
  7316. ValueAnimation GetAttributeAnimation(const String&) const;
  7317. float GetAttributeAnimationSpeed(const String&) const;
  7318. float GetAttributeAnimationTime(const String&) const;
  7319. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7320. Variant GetAttributeDefault(const String&) const;
  7321. bool GetInterceptNetworkUpdate(const String&) const;
  7322. bool HasSubscribedToEvent(Object, const String&);
  7323. bool HasSubscribedToEvent(const String&);
  7324. bool Load(File);
  7325. bool Load(VectorBuffer&);
  7326. bool LoadJSON(const JSONValue&);
  7327. bool LoadXML(const XMLElement&);
  7328. void MarkNetworkUpdate() const;
  7329. void Remove();
  7330. void RemoveAttributeAnimation(const String&);
  7331. void RemoveInstanceDefault();
  7332. void RemoveObjectAnimation();
  7333. void ResetToDefault();
  7334. bool Save(File) const;
  7335. bool Save(VectorBuffer&) const;
  7336. bool SaveJSON(JSONValue&) const;
  7337. bool SaveXML(XMLElement&) const;
  7338. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7339. void SetAnimationTime(float);
  7340. bool SetAttribute(const String&, const Variant&);
  7341. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7342. void SetAttributeAnimationSpeed(const String&, float);
  7343. void SetAttributeAnimationTime(const String&, float);
  7344. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7345. void SetInterceptNetworkUpdate(const String&, bool);
  7346. // Properties:
  7347. bool animationEnabled;
  7348. uint areaID;
  7349. /* readonly */
  7350. Array<Variant> attributeDefaults;
  7351. /* readonly */
  7352. Array<AttributeInfo> attributeInfos;
  7353. Array<Variant> attributes;
  7354. BoundingBox boundingBox;
  7355. /* readonly */
  7356. String category;
  7357. bool enabled;
  7358. /* readonly */
  7359. bool enabledEffective;
  7360. /* readonly */
  7361. uint id;
  7362. /* readonly */
  7363. Node node;
  7364. /* readonly */
  7365. uint numAttributes;
  7366. ObjectAnimation objectAnimation;
  7367. /* readonly */
  7368. int refs;
  7369. /* readonly */
  7370. bool replicated;
  7371. bool temporary;
  7372. /* readonly */
  7373. StringHash type;
  7374. /* readonly */
  7375. String typeName;
  7376. /* readonly */
  7377. int weakRefs;
  7378. /* readonly */
  7379. BoundingBox worldBoundingBox;
  7380. };
  7381. class Navigable
  7382. {
  7383. public:
  7384. // Methods:
  7385. void ApplyAttributes();
  7386. void DrawDebugGeometry(DebugRenderer, bool);
  7387. Variant GetAttribute(const String&) const;
  7388. ValueAnimation GetAttributeAnimation(const String&) const;
  7389. float GetAttributeAnimationSpeed(const String&) const;
  7390. float GetAttributeAnimationTime(const String&) const;
  7391. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7392. Variant GetAttributeDefault(const String&) const;
  7393. bool GetInterceptNetworkUpdate(const String&) const;
  7394. bool HasSubscribedToEvent(Object, const String&);
  7395. bool HasSubscribedToEvent(const String&);
  7396. bool Load(File);
  7397. bool Load(VectorBuffer&);
  7398. bool LoadJSON(const JSONValue&);
  7399. bool LoadXML(const XMLElement&);
  7400. void MarkNetworkUpdate() const;
  7401. void Remove();
  7402. void RemoveAttributeAnimation(const String&);
  7403. void RemoveInstanceDefault();
  7404. void RemoveObjectAnimation();
  7405. void ResetToDefault();
  7406. bool Save(File) const;
  7407. bool Save(VectorBuffer&) const;
  7408. bool SaveJSON(JSONValue&) const;
  7409. bool SaveXML(XMLElement&) const;
  7410. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7411. void SetAnimationTime(float);
  7412. bool SetAttribute(const String&, const Variant&);
  7413. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7414. void SetAttributeAnimationSpeed(const String&, float);
  7415. void SetAttributeAnimationTime(const String&, float);
  7416. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7417. void SetInterceptNetworkUpdate(const String&, bool);
  7418. // Properties:
  7419. bool animationEnabled;
  7420. /* readonly */
  7421. Array<Variant> attributeDefaults;
  7422. /* readonly */
  7423. Array<AttributeInfo> attributeInfos;
  7424. Array<Variant> attributes;
  7425. /* readonly */
  7426. String category;
  7427. bool enabled;
  7428. /* readonly */
  7429. bool enabledEffective;
  7430. /* readonly */
  7431. uint id;
  7432. /* readonly */
  7433. Node node;
  7434. /* readonly */
  7435. uint numAttributes;
  7436. ObjectAnimation objectAnimation;
  7437. bool recursive;
  7438. /* readonly */
  7439. int refs;
  7440. /* readonly */
  7441. bool replicated;
  7442. bool temporary;
  7443. /* readonly */
  7444. StringHash type;
  7445. /* readonly */
  7446. String typeName;
  7447. /* readonly */
  7448. int weakRefs;
  7449. };
  7450. class NavigationMesh
  7451. {
  7452. public:
  7453. // Methods:
  7454. bool AddTile(const VectorBuffer&) const;
  7455. bool Allocate(const BoundingBox&, uint);
  7456. void ApplyAttributes();
  7457. bool Build();
  7458. bool Build(const BoundingBox&);
  7459. bool Build(const IntVector2&, const IntVector2&);
  7460. void DrawDebugGeometry(DebugRenderer, bool);
  7461. void DrawDebugGeometry(bool);
  7462. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7463. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7464. float GetAreaCost(uint) const;
  7465. Variant GetAttribute(const String&) const;
  7466. ValueAnimation GetAttributeAnimation(const String&) const;
  7467. float GetAttributeAnimationSpeed(const String&) const;
  7468. float GetAttributeAnimationTime(const String&) const;
  7469. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7470. Variant GetAttributeDefault(const String&) const;
  7471. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7472. bool GetInterceptNetworkUpdate(const String&) const;
  7473. Vector3 GetRandomPoint();
  7474. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7475. BoundingBox GetTileBoudningBox(const IntVector2&) const;
  7476. VectorBuffer GetTileData(const IntVector2&) const;
  7477. IntVector2 GetTileIndex(const Vector3&) const;
  7478. bool HasSubscribedToEvent(Object, const String&);
  7479. bool HasSubscribedToEvent(const String&);
  7480. bool HasTile(const IntVector2&) const;
  7481. bool Load(File);
  7482. bool Load(VectorBuffer&);
  7483. bool LoadJSON(const JSONValue&);
  7484. bool LoadXML(const XMLElement&);
  7485. void MarkNetworkUpdate() const;
  7486. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  7487. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7488. void Remove();
  7489. void RemoveAllTiles();
  7490. void RemoveAttributeAnimation(const String&);
  7491. void RemoveInstanceDefault();
  7492. void RemoveObjectAnimation();
  7493. void RemoveTile(const IntVector2&);
  7494. void ResetToDefault();
  7495. bool Save(File) const;
  7496. bool Save(VectorBuffer&) const;
  7497. bool SaveJSON(JSONValue&) const;
  7498. bool SaveXML(XMLElement&) const;
  7499. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7500. void SetAnimationTime(float);
  7501. void SetAreaCost(uint, float);
  7502. bool SetAttribute(const String&, const Variant&);
  7503. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7504. void SetAttributeAnimationSpeed(const String&, float);
  7505. void SetAttributeAnimationTime(const String&, float);
  7506. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7507. void SetInterceptNetworkUpdate(const String&, bool);
  7508. // Properties:
  7509. float agentHeight;
  7510. float agentMaxClimb;
  7511. float agentMaxSlope;
  7512. float agentRadius;
  7513. bool animationEnabled;
  7514. /* readonly */
  7515. Array<Variant> attributeDefaults;
  7516. /* readonly */
  7517. Array<AttributeInfo> attributeInfos;
  7518. Array<Variant> attributes;
  7519. /* readonly */
  7520. BoundingBox boundingBox;
  7521. /* readonly */
  7522. String category;
  7523. float cellHeight;
  7524. float cellSize;
  7525. float detailSampleDistance;
  7526. float detailSampleMaxError;
  7527. bool drawNavAreas;
  7528. bool drawOffMeshConnections;
  7529. float edgeMaxError;
  7530. float edgeMaxLength;
  7531. bool enabled;
  7532. /* readonly */
  7533. bool enabledEffective;
  7534. /* readonly */
  7535. uint id;
  7536. /* readonly */
  7537. bool initialized;
  7538. /* readonly */
  7539. Node node;
  7540. /* readonly */
  7541. uint numAttributes;
  7542. /* readonly */
  7543. IntVector2 numTiles;
  7544. ObjectAnimation objectAnimation;
  7545. Vector3 padding;
  7546. NavmeshPartitionType partitionType;
  7547. /* readonly */
  7548. int refs;
  7549. float regionMergeSize;
  7550. float regionMinSize;
  7551. /* readonly */
  7552. bool replicated;
  7553. bool temporary;
  7554. int tileSize;
  7555. /* readonly */
  7556. StringHash type;
  7557. /* readonly */
  7558. String typeName;
  7559. /* readonly */
  7560. int weakRefs;
  7561. /* readonly */
  7562. BoundingBox worldBoundingBox;
  7563. };
  7564. class Network
  7565. {
  7566. public:
  7567. // Methods:
  7568. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  7569. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  7570. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  7571. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  7572. bool CheckRemoteEvent(const String&) const;
  7573. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  7574. void Disconnect(int = 0);
  7575. bool HasSubscribedToEvent(Object, const String&);
  7576. bool HasSubscribedToEvent(const String&);
  7577. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  7578. void RegisterRemoteEvent(const String&) const;
  7579. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7580. void SendPackageToClients(Scene, PackageFile);
  7581. bool StartServer(uint16);
  7582. void StopServer();
  7583. void UnregisterAllRemoteEvents();
  7584. void UnregisterRemoteEvent(const String&) const;
  7585. // Properties:
  7586. /* readonly */
  7587. String category;
  7588. /* readonly */
  7589. Array<Connection> clientConnections;
  7590. String packageCacheDir;
  7591. /* readonly */
  7592. int refs;
  7593. /* readonly */
  7594. Connection serverConnection;
  7595. /* readonly */
  7596. bool serverRunning;
  7597. int simulatedLatency;
  7598. float simulatedPacketLoss;
  7599. /* readonly */
  7600. StringHash type;
  7601. /* readonly */
  7602. String typeName;
  7603. int updateFps;
  7604. /* readonly */
  7605. int weakRefs;
  7606. };
  7607. class NetworkPriority
  7608. {
  7609. public:
  7610. // Methods:
  7611. void ApplyAttributes();
  7612. void DrawDebugGeometry(DebugRenderer, bool);
  7613. Variant GetAttribute(const String&) const;
  7614. ValueAnimation GetAttributeAnimation(const String&) const;
  7615. float GetAttributeAnimationSpeed(const String&) const;
  7616. float GetAttributeAnimationTime(const String&) const;
  7617. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7618. Variant GetAttributeDefault(const String&) const;
  7619. bool GetInterceptNetworkUpdate(const String&) const;
  7620. bool HasSubscribedToEvent(Object, const String&);
  7621. bool HasSubscribedToEvent(const String&);
  7622. bool Load(File);
  7623. bool Load(VectorBuffer&);
  7624. bool LoadJSON(const JSONValue&);
  7625. bool LoadXML(const XMLElement&);
  7626. void MarkNetworkUpdate() const;
  7627. void Remove();
  7628. void RemoveAttributeAnimation(const String&);
  7629. void RemoveInstanceDefault();
  7630. void RemoveObjectAnimation();
  7631. void ResetToDefault();
  7632. bool Save(File) const;
  7633. bool Save(VectorBuffer&) const;
  7634. bool SaveJSON(JSONValue&) const;
  7635. bool SaveXML(XMLElement&) const;
  7636. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7637. void SetAnimationTime(float);
  7638. bool SetAttribute(const String&, const Variant&);
  7639. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7640. void SetAttributeAnimationSpeed(const String&, float);
  7641. void SetAttributeAnimationTime(const String&, float);
  7642. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7643. void SetInterceptNetworkUpdate(const String&, bool);
  7644. // Properties:
  7645. bool alwaysUpdateOwner;
  7646. bool animationEnabled;
  7647. /* readonly */
  7648. Array<Variant> attributeDefaults;
  7649. /* readonly */
  7650. Array<AttributeInfo> attributeInfos;
  7651. Array<Variant> attributes;
  7652. float basePriority;
  7653. /* readonly */
  7654. String category;
  7655. float distanceFactor;
  7656. bool enabled;
  7657. /* readonly */
  7658. bool enabledEffective;
  7659. /* readonly */
  7660. uint id;
  7661. float minPriority;
  7662. /* readonly */
  7663. Node node;
  7664. /* readonly */
  7665. uint numAttributes;
  7666. ObjectAnimation objectAnimation;
  7667. /* readonly */
  7668. int refs;
  7669. /* readonly */
  7670. bool replicated;
  7671. bool temporary;
  7672. /* readonly */
  7673. StringHash type;
  7674. /* readonly */
  7675. String typeName;
  7676. /* readonly */
  7677. int weakRefs;
  7678. };
  7679. class Node
  7680. {
  7681. public:
  7682. Node();
  7683. Node(const String&in);
  7684. // Methods:
  7685. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7686. void AddTag(const String&);
  7687. void AddTags(const String&, int8 = ';');
  7688. void ApplyAttributes();
  7689. Node Clone(CreateMode = REPLICATED);
  7690. Component CloneComponent(Component, CreateMode, uint = 0);
  7691. Component CloneComponent(Component, uint = 0);
  7692. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7693. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7694. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7695. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7696. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7697. Variant GetAttribute(const String&) const;
  7698. ValueAnimation GetAttributeAnimation(const String&) const;
  7699. float GetAttributeAnimationSpeed(const String&) const;
  7700. float GetAttributeAnimationTime(const String&) const;
  7701. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7702. Variant GetAttributeDefault(const String&) const;
  7703. Node GetChild(const String&, bool = false) const;
  7704. Array<Node> GetChildren(bool = false) const;
  7705. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7706. Array<Node> GetChildrenWithScript(bool = false) const;
  7707. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7708. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7709. Component GetComponent(const String&, bool = false) const;
  7710. Array<Component> GetComponents() const;
  7711. Array<Component> GetComponents(const String&, bool = false) const;
  7712. bool GetInterceptNetworkUpdate(const String&) const;
  7713. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7714. Component GetParentComponent(const String&, bool = false) const;
  7715. ScriptObject GetScriptObject() const;
  7716. ScriptObject GetScriptObject(const String&) const;
  7717. bool HasComponent(const String&) const;
  7718. bool HasSubscribedToEvent(Object, const String&);
  7719. bool HasSubscribedToEvent(const String&);
  7720. bool HasTag(const String&);
  7721. bool IsChildOf(Node) const;
  7722. bool Load(File);
  7723. bool Load(VectorBuffer&);
  7724. bool LoadJSON(const JSONValue&);
  7725. bool LoadXML(const XMLElement&);
  7726. Vector3 LocalToWorld(const Vector3&) const;
  7727. Vector3 LocalToWorld(const Vector4&) const;
  7728. Vector2 LocalToWorld2D(const Vector2&) const;
  7729. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7730. void MarkDirty();
  7731. void MarkNetworkUpdate() const;
  7732. void Pitch(float, TransformSpace = TS_LOCAL);
  7733. void Remove();
  7734. void RemoveAllChildren();
  7735. void RemoveAllComponents();
  7736. void RemoveAllTags();
  7737. void RemoveAttributeAnimation(const String&);
  7738. void RemoveChild(Node);
  7739. void RemoveChildren(bool, bool, bool);
  7740. void RemoveComponent(Component);
  7741. void RemoveComponent(const String&);
  7742. void RemoveComponents(bool, bool);
  7743. void RemoveComponents(const String&);
  7744. void RemoveInstanceDefault();
  7745. void RemoveObjectAnimation();
  7746. bool RemoveTag(const String&);
  7747. void ReorderComponent(Component, uint);
  7748. void ResetDeepEnabled();
  7749. void ResetToDefault();
  7750. void Roll(float, TransformSpace = TS_LOCAL);
  7751. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7752. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7753. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7754. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7755. bool Save(File) const;
  7756. bool Save(VectorBuffer&) const;
  7757. bool SaveJSON(File);
  7758. bool SaveJSON(JSONValue&) const;
  7759. bool SaveJSON(VectorBuffer&);
  7760. bool SaveXML(File, const String& = "\t");
  7761. bool SaveXML(VectorBuffer&, const String& = "\t");
  7762. bool SaveXML(XMLElement&) const;
  7763. void Scale(const Vector3&);
  7764. void Scale(float);
  7765. void Scale2D(const Vector2&);
  7766. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7767. void SetAnimationTime(float);
  7768. bool SetAttribute(const String&, const Variant&);
  7769. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7770. void SetAttributeAnimationSpeed(const String&, float);
  7771. void SetAttributeAnimationTime(const String&, float);
  7772. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7773. void SetDeepEnabled(bool);
  7774. void SetEnabledRecursive(bool);
  7775. void SetInterceptNetworkUpdate(const String&, bool);
  7776. void SetPosition2D(float, float);
  7777. void SetScale(float);
  7778. void SetScale2D(float, float);
  7779. void SetTransform(const Matrix3x4&);
  7780. void SetTransform(const Vector3&, const Quaternion&);
  7781. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7782. void SetTransform(const Vector3&, const Quaternion&, float);
  7783. void SetTransform2D(const Vector2&, float);
  7784. void SetTransform2D(const Vector2&, float, const Vector2&);
  7785. void SetTransform2D(const Vector2&, float, float);
  7786. void SetWorldTransform(const Vector3&, const Quaternion&);
  7787. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7788. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7789. void SetWorldTransform2D(const Vector2&, float);
  7790. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7791. void SetWorldTransform2D(const Vector2&, float, float);
  7792. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7793. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7794. Vector3 WorldToLocal(const Vector3&) const;
  7795. Vector3 WorldToLocal(const Vector4&) const;
  7796. Vector2 WorldToLocal2D(const Vector2&) const;
  7797. void Yaw(float, TransformSpace = TS_LOCAL);
  7798. // Properties:
  7799. /* readonly */
  7800. Array<Node> allChildrenByName;
  7801. bool animationEnabled;
  7802. /* readonly */
  7803. Array<Variant> attributeDefaults;
  7804. /* readonly */
  7805. Array<AttributeInfo> attributeInfos;
  7806. Array<Variant> attributes;
  7807. /* readonly */
  7808. String category;
  7809. /* readonly */
  7810. Array<Node> children;
  7811. /* readonly */
  7812. Array<Node> childrenByName;
  7813. /* readonly */
  7814. Array<Component> components;
  7815. Vector3 direction;
  7816. bool enabled;
  7817. /* readonly */
  7818. bool enabledSelf;
  7819. uint id;
  7820. String name;
  7821. /* readonly */
  7822. uint numAllChildren;
  7823. /* readonly */
  7824. uint numAttributes;
  7825. /* readonly */
  7826. uint numChildren;
  7827. /* readonly */
  7828. uint numComponents;
  7829. ObjectAnimation objectAnimation;
  7830. Connection owner;
  7831. Node parent;
  7832. Vector3 position;
  7833. Vector2 position2D;
  7834. /* readonly */
  7835. int refs;
  7836. /* readonly */
  7837. bool replicated;
  7838. /* readonly */
  7839. Vector3 right;
  7840. Quaternion rotation;
  7841. float rotation2D;
  7842. Vector3 scale;
  7843. Vector2 scale2D;
  7844. /* readonly */
  7845. Scene scene;
  7846. /* readonly */
  7847. ScriptObject scriptObject;
  7848. /* readonly */
  7849. Vector3 signedWorldScale;
  7850. /* readonly */
  7851. Array<String> tags;
  7852. bool temporary;
  7853. /* readonly */
  7854. Matrix3x4 transform;
  7855. /* readonly */
  7856. StringHash type;
  7857. /* readonly */
  7858. String typeName;
  7859. /* readonly */
  7860. Vector3 up;
  7861. /* readonly */
  7862. VariantMap vars;
  7863. /* readonly */
  7864. int weakRefs;
  7865. Vector3 worldDirection;
  7866. Vector3 worldPosition;
  7867. Vector2 worldPosition2D;
  7868. /* readonly */
  7869. Vector3 worldRight;
  7870. Quaternion worldRotation;
  7871. float worldRotation2D;
  7872. Vector3 worldScale;
  7873. Vector2 worldScale2D;
  7874. /* readonly */
  7875. Matrix3x4 worldTransform;
  7876. /* readonly */
  7877. Vector3 worldUp;
  7878. };
  7879. class Object
  7880. {
  7881. public:
  7882. // Methods:
  7883. bool HasSubscribedToEvent(Object, const String&);
  7884. bool HasSubscribedToEvent(const String&);
  7885. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7886. // Properties:
  7887. /* readonly */
  7888. String category;
  7889. /* readonly */
  7890. int refs;
  7891. /* readonly */
  7892. StringHash type;
  7893. /* readonly */
  7894. String typeName;
  7895. /* readonly */
  7896. int weakRefs;
  7897. };
  7898. class ObjectAnimation
  7899. {
  7900. public:
  7901. ObjectAnimation();
  7902. ObjectAnimation(const String&in);
  7903. // Methods:
  7904. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7905. ValueAnimation GetAttributeAnimation(const String&) const;
  7906. float GetAttributeAnimationSpeed(const String&) const;
  7907. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7908. bool HasSubscribedToEvent(Object, const String&);
  7909. bool HasSubscribedToEvent(const String&);
  7910. bool Load(File);
  7911. bool Load(VectorBuffer&);
  7912. bool Load(const String&);
  7913. void RemoveAttributeAnimation(ValueAnimation);
  7914. void RemoveAttributeAnimation(const String&);
  7915. bool Save(File) const;
  7916. bool Save(VectorBuffer&) const;
  7917. bool Save(const String&) const;
  7918. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7919. // Properties:
  7920. /* readonly */
  7921. Array<Variant> attributeAnimations;
  7922. /* readonly */
  7923. String category;
  7924. /* readonly */
  7925. uint memoryUse;
  7926. String name;
  7927. /* readonly */
  7928. int refs;
  7929. /* readonly */
  7930. Array<Variant> speeds;
  7931. /* readonly */
  7932. StringHash type;
  7933. /* readonly */
  7934. String typeName;
  7935. /* readonly */
  7936. uint useTimer;
  7937. /* readonly */
  7938. int weakRefs;
  7939. /* readonly */
  7940. Array<Variant> wrapModes;
  7941. };
  7942. class Obstacle
  7943. {
  7944. public:
  7945. // Methods:
  7946. void ApplyAttributes();
  7947. void DrawDebugGeometry(DebugRenderer, bool);
  7948. void DrawDebugGeometry(bool);
  7949. Variant GetAttribute(const String&) const;
  7950. ValueAnimation GetAttributeAnimation(const String&) const;
  7951. float GetAttributeAnimationSpeed(const String&) const;
  7952. float GetAttributeAnimationTime(const String&) const;
  7953. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7954. Variant GetAttributeDefault(const String&) const;
  7955. bool GetInterceptNetworkUpdate(const String&) const;
  7956. bool HasSubscribedToEvent(Object, const String&);
  7957. bool HasSubscribedToEvent(const String&);
  7958. bool Load(File);
  7959. bool Load(VectorBuffer&);
  7960. bool LoadJSON(const JSONValue&);
  7961. bool LoadXML(const XMLElement&);
  7962. void MarkNetworkUpdate() const;
  7963. void Remove();
  7964. void RemoveAttributeAnimation(const String&);
  7965. void RemoveInstanceDefault();
  7966. void RemoveObjectAnimation();
  7967. void ResetToDefault();
  7968. bool Save(File) const;
  7969. bool Save(VectorBuffer&) const;
  7970. bool SaveJSON(JSONValue&) const;
  7971. bool SaveXML(XMLElement&) const;
  7972. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7973. void SetAnimationTime(float);
  7974. bool SetAttribute(const String&, const Variant&);
  7975. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7976. void SetAttributeAnimationSpeed(const String&, float);
  7977. void SetAttributeAnimationTime(const String&, float);
  7978. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7979. void SetInterceptNetworkUpdate(const String&, bool);
  7980. // Properties:
  7981. bool animationEnabled;
  7982. /* readonly */
  7983. Array<Variant> attributeDefaults;
  7984. /* readonly */
  7985. Array<AttributeInfo> attributeInfos;
  7986. Array<Variant> attributes;
  7987. /* readonly */
  7988. String category;
  7989. bool enabled;
  7990. /* readonly */
  7991. bool enabledEffective;
  7992. float height;
  7993. /* readonly */
  7994. uint id;
  7995. /* readonly */
  7996. Node node;
  7997. /* readonly */
  7998. uint numAttributes;
  7999. ObjectAnimation objectAnimation;
  8000. /* readonly */
  8001. uint obstacleId;
  8002. float radius;
  8003. /* readonly */
  8004. int refs;
  8005. /* readonly */
  8006. bool replicated;
  8007. bool temporary;
  8008. /* readonly */
  8009. StringHash type;
  8010. /* readonly */
  8011. String typeName;
  8012. /* readonly */
  8013. int weakRefs;
  8014. };
  8015. class Octree
  8016. {
  8017. public:
  8018. // Methods:
  8019. void AddManualDrawable(Drawable);
  8020. void ApplyAttributes();
  8021. void DrawDebugGeometry(DebugRenderer, bool);
  8022. void DrawDebugGeometry(bool) const;
  8023. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8024. Variant GetAttribute(const String&) const;
  8025. ValueAnimation GetAttributeAnimation(const String&) const;
  8026. float GetAttributeAnimationSpeed(const String&) const;
  8027. float GetAttributeAnimationTime(const String&) const;
  8028. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8029. Variant GetAttributeDefault(const String&) const;
  8030. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8031. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8032. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8033. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8034. bool GetInterceptNetworkUpdate(const String&) const;
  8035. bool HasSubscribedToEvent(Object, const String&);
  8036. bool HasSubscribedToEvent(const String&);
  8037. bool Load(File);
  8038. bool Load(VectorBuffer&);
  8039. bool LoadJSON(const JSONValue&);
  8040. bool LoadXML(const XMLElement&);
  8041. void MarkNetworkUpdate() const;
  8042. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  8043. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  8044. void Remove();
  8045. void RemoveAttributeAnimation(const String&);
  8046. void RemoveInstanceDefault();
  8047. void RemoveManualDrawable(Drawable);
  8048. void RemoveObjectAnimation();
  8049. void ResetToDefault();
  8050. bool Save(File) const;
  8051. bool Save(VectorBuffer&) const;
  8052. bool SaveJSON(JSONValue&) const;
  8053. bool SaveXML(XMLElement&) const;
  8054. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8055. void SetAnimationTime(float);
  8056. bool SetAttribute(const String&, const Variant&);
  8057. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8058. void SetAttributeAnimationSpeed(const String&, float);
  8059. void SetAttributeAnimationTime(const String&, float);
  8060. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8061. void SetInterceptNetworkUpdate(const String&, bool);
  8062. void SetSize(const BoundingBox&, uint);
  8063. // Properties:
  8064. bool animationEnabled;
  8065. /* readonly */
  8066. Array<Variant> attributeDefaults;
  8067. /* readonly */
  8068. Array<AttributeInfo> attributeInfos;
  8069. Array<Variant> attributes;
  8070. /* readonly */
  8071. String category;
  8072. bool enabled;
  8073. /* readonly */
  8074. bool enabledEffective;
  8075. /* readonly */
  8076. uint id;
  8077. /* readonly */
  8078. Node node;
  8079. /* readonly */
  8080. uint numAttributes;
  8081. /* readonly */
  8082. uint numLevels;
  8083. ObjectAnimation objectAnimation;
  8084. /* readonly */
  8085. int refs;
  8086. /* readonly */
  8087. bool replicated;
  8088. bool temporary;
  8089. /* readonly */
  8090. StringHash type;
  8091. /* readonly */
  8092. String typeName;
  8093. /* readonly */
  8094. int weakRefs;
  8095. /* readonly */
  8096. BoundingBox worldBoundingBox;
  8097. };
  8098. class OffMeshConnection
  8099. {
  8100. public:
  8101. // Methods:
  8102. void ApplyAttributes();
  8103. void DrawDebugGeometry(DebugRenderer, bool);
  8104. Variant GetAttribute(const String&) const;
  8105. ValueAnimation GetAttributeAnimation(const String&) const;
  8106. float GetAttributeAnimationSpeed(const String&) const;
  8107. float GetAttributeAnimationTime(const String&) const;
  8108. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8109. Variant GetAttributeDefault(const String&) const;
  8110. bool GetInterceptNetworkUpdate(const String&) const;
  8111. bool HasSubscribedToEvent(Object, const String&);
  8112. bool HasSubscribedToEvent(const String&);
  8113. bool Load(File);
  8114. bool Load(VectorBuffer&);
  8115. bool LoadJSON(const JSONValue&);
  8116. bool LoadXML(const XMLElement&);
  8117. void MarkNetworkUpdate() const;
  8118. void Remove();
  8119. void RemoveAttributeAnimation(const String&);
  8120. void RemoveInstanceDefault();
  8121. void RemoveObjectAnimation();
  8122. void ResetToDefault();
  8123. bool Save(File) const;
  8124. bool Save(VectorBuffer&) const;
  8125. bool SaveJSON(JSONValue&) const;
  8126. bool SaveXML(XMLElement&) const;
  8127. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8128. void SetAnimationTime(float);
  8129. bool SetAttribute(const String&, const Variant&);
  8130. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8131. void SetAttributeAnimationSpeed(const String&, float);
  8132. void SetAttributeAnimationTime(const String&, float);
  8133. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8134. void SetInterceptNetworkUpdate(const String&, bool);
  8135. // Properties:
  8136. bool animationEnabled;
  8137. uint areaID;
  8138. /* readonly */
  8139. Array<Variant> attributeDefaults;
  8140. /* readonly */
  8141. Array<AttributeInfo> attributeInfos;
  8142. Array<Variant> attributes;
  8143. bool bidirectional;
  8144. /* readonly */
  8145. String category;
  8146. bool enabled;
  8147. /* readonly */
  8148. bool enabledEffective;
  8149. Node endPoint;
  8150. /* readonly */
  8151. uint id;
  8152. uint mask;
  8153. /* readonly */
  8154. Node node;
  8155. /* readonly */
  8156. uint numAttributes;
  8157. ObjectAnimation objectAnimation;
  8158. float radius;
  8159. /* readonly */
  8160. int refs;
  8161. /* readonly */
  8162. bool replicated;
  8163. bool temporary;
  8164. /* readonly */
  8165. StringHash type;
  8166. /* readonly */
  8167. String typeName;
  8168. /* readonly */
  8169. int weakRefs;
  8170. };
  8171. class PackageFile
  8172. {
  8173. public:
  8174. PackageFile();
  8175. PackageFile(const String&in, uint startOffset = 0);
  8176. // Methods:
  8177. bool Exists(const String&) const;
  8178. Array<String> GetEntryNames() const;
  8179. bool HasSubscribedToEvent(Object, const String&);
  8180. bool HasSubscribedToEvent(const String&);
  8181. bool Open(const String&, uint = 0) const;
  8182. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8183. bool compressed() const;
  8184. // Properties:
  8185. /* readonly */
  8186. String category;
  8187. /* readonly */
  8188. uint checksum;
  8189. /* readonly */
  8190. String name;
  8191. /* readonly */
  8192. uint numFiles;
  8193. /* readonly */
  8194. int refs;
  8195. /* readonly */
  8196. uint totalDataSize;
  8197. /* readonly */
  8198. uint totalSize;
  8199. /* readonly */
  8200. StringHash type;
  8201. /* readonly */
  8202. String typeName;
  8203. /* readonly */
  8204. int weakRefs;
  8205. };
  8206. class ParticleEffect
  8207. {
  8208. public:
  8209. ParticleEffect();
  8210. ParticleEffect(const String&in);
  8211. // Methods:
  8212. void AddColorFrame(ColorFrame);
  8213. void AddColorTime(const Color&, float);
  8214. void AddTextureFrame(TextureFrame);
  8215. void AddTextureTime(const Rect&, float);
  8216. ParticleEffect Clone(const String& = String ( )) const;
  8217. ColorFrame GetColorFrame(uint) const;
  8218. TextureFrame GetTextureFrame(uint) const;
  8219. bool HasSubscribedToEvent(Object, const String&);
  8220. bool HasSubscribedToEvent(const String&);
  8221. bool Load(File);
  8222. bool Load(VectorBuffer&);
  8223. bool Load(const String&);
  8224. bool Load(const XMLElement&);
  8225. void RemoveColorFrame(uint);
  8226. void RemoveTextureFrame(uint);
  8227. bool Save(File) const;
  8228. bool Save(VectorBuffer&) const;
  8229. bool Save(XMLElement&) const;
  8230. bool Save(const String&) const;
  8231. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8232. void SetColorFrame(uint, ColorFrame);
  8233. void SetTextureFrame(uint, TextureFrame);
  8234. void SortColorFrames();
  8235. void SortTextureFrames();
  8236. // Properties:
  8237. float activeTime;
  8238. float animationLodBias;
  8239. /* readonly */
  8240. String category;
  8241. Vector3 constantForce;
  8242. float dampingForce;
  8243. Vector3 emitterSize;
  8244. EmitterType emitterType;
  8245. FaceCameraMode faceCameraMode;
  8246. bool fixedScreenSize;
  8247. float inactiveTime;
  8248. Material material;
  8249. Vector3 maxDirection;
  8250. float maxEmissionRate;
  8251. Vector2 maxParticleSize;
  8252. float maxRotation;
  8253. float maxRotationSpeed;
  8254. float maxTimeToLive;
  8255. float maxVelocity;
  8256. /* readonly */
  8257. uint memoryUse;
  8258. Vector3 minDirection;
  8259. float minEmissionRate;
  8260. Vector2 minParticleSize;
  8261. float minRotation;
  8262. float minRotationSpeed;
  8263. float minTimeToLive;
  8264. float minVelocity;
  8265. String name;
  8266. uint numColorFrames;
  8267. uint numParticles;
  8268. uint numTextureFrames;
  8269. /* readonly */
  8270. int refs;
  8271. bool relative;
  8272. bool scaled;
  8273. float sizeAdd;
  8274. float sizeMul;
  8275. bool sorted;
  8276. /* readonly */
  8277. StringHash type;
  8278. /* readonly */
  8279. String typeName;
  8280. bool updateInvisible;
  8281. /* readonly */
  8282. uint useTimer;
  8283. /* readonly */
  8284. int weakRefs;
  8285. };
  8286. class ParticleEffect2D
  8287. {
  8288. public:
  8289. ParticleEffect2D();
  8290. ParticleEffect2D(const String&in);
  8291. // Methods:
  8292. ParticleEffect2D Clone(const String& = String ( )) const;
  8293. bool HasSubscribedToEvent(Object, const String&);
  8294. bool HasSubscribedToEvent(const String&);
  8295. bool Load(File);
  8296. bool Load(VectorBuffer&);
  8297. bool Load(const String&);
  8298. bool Save(File) const;
  8299. bool Save(VectorBuffer&) const;
  8300. bool Save(const String&) const;
  8301. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8302. // Properties:
  8303. /* readonly */
  8304. String category;
  8305. /* readonly */
  8306. uint memoryUse;
  8307. String name;
  8308. /* readonly */
  8309. int refs;
  8310. /* readonly */
  8311. StringHash type;
  8312. /* readonly */
  8313. String typeName;
  8314. /* readonly */
  8315. uint useTimer;
  8316. /* readonly */
  8317. int weakRefs;
  8318. };
  8319. class ParticleEmitter
  8320. {
  8321. public:
  8322. // Methods:
  8323. void ApplyAttributes();
  8324. void ApplyEffect();
  8325. void Commit();
  8326. void DrawDebugGeometry(DebugRenderer, bool);
  8327. Variant GetAttribute(const String&) const;
  8328. ValueAnimation GetAttributeAnimation(const String&) const;
  8329. float GetAttributeAnimationSpeed(const String&) const;
  8330. float GetAttributeAnimationTime(const String&) const;
  8331. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8332. Variant GetAttributeDefault(const String&) const;
  8333. bool GetInterceptNetworkUpdate(const String&) const;
  8334. bool HasSubscribedToEvent(Object, const String&);
  8335. bool HasSubscribedToEvent(const String&);
  8336. bool IsInView(Camera) const;
  8337. bool Load(File);
  8338. bool Load(VectorBuffer&);
  8339. bool LoadJSON(const JSONValue&);
  8340. bool LoadXML(const XMLElement&);
  8341. void MarkNetworkUpdate() const;
  8342. void Remove();
  8343. void RemoveAllParticles();
  8344. void RemoveAttributeAnimation(const String&);
  8345. void RemoveInstanceDefault();
  8346. void RemoveObjectAnimation();
  8347. void Reset();
  8348. void ResetEmissionTimer();
  8349. void ResetToDefault();
  8350. bool Save(File) const;
  8351. bool Save(VectorBuffer&) const;
  8352. bool SaveJSON(JSONValue&) const;
  8353. bool SaveXML(XMLElement&) const;
  8354. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8355. void SetAnimationTime(float);
  8356. bool SetAttribute(const String&, const Variant&);
  8357. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8358. void SetAttributeAnimationSpeed(const String&, float);
  8359. void SetAttributeAnimationTime(const String&, float);
  8360. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8361. void SetInterceptNetworkUpdate(const String&, bool);
  8362. // Properties:
  8363. bool animationEnabled;
  8364. float animationLodBias;
  8365. /* readonly */
  8366. Array<Variant> attributeDefaults;
  8367. /* readonly */
  8368. Array<AttributeInfo> attributeInfos;
  8369. Array<Variant> attributes;
  8370. AutoRemoveMode autoRemoveMode;
  8371. /* readonly */
  8372. Array<Billboard> billboards;
  8373. /* readonly */
  8374. BoundingBox boundingBox;
  8375. bool castShadows;
  8376. /* readonly */
  8377. String category;
  8378. float drawDistance;
  8379. ParticleEffect effect;
  8380. bool emitting;
  8381. bool enabled;
  8382. /* readonly */
  8383. bool enabledEffective;
  8384. FaceCameraMode faceCameraMode;
  8385. bool fixedScreenSize;
  8386. /* readonly */
  8387. uint id;
  8388. /* readonly */
  8389. bool inView;
  8390. uint lightMask;
  8391. float lodBias;
  8392. Material material;
  8393. uint maxLights;
  8394. /* readonly */
  8395. Node node;
  8396. /* readonly */
  8397. uint numAttributes;
  8398. uint numBillboards;
  8399. uint numParticles;
  8400. ObjectAnimation objectAnimation;
  8401. bool occludee;
  8402. bool occluder;
  8403. /* readonly */
  8404. int refs;
  8405. bool relative;
  8406. /* readonly */
  8407. bool replicated;
  8408. bool scaled;
  8409. bool serializeParticles;
  8410. float shadowDistance;
  8411. uint shadowMask;
  8412. bool sorted;
  8413. bool temporary;
  8414. /* readonly */
  8415. StringHash type;
  8416. /* readonly */
  8417. String typeName;
  8418. uint viewMask;
  8419. /* readonly */
  8420. int weakRefs;
  8421. /* readonly */
  8422. BoundingBox worldBoundingBox;
  8423. /* readonly */
  8424. Zone zone;
  8425. uint zoneMask;
  8426. };
  8427. class ParticleEmitter2D
  8428. {
  8429. public:
  8430. // Methods:
  8431. void ApplyAttributes();
  8432. void DrawDebugGeometry(DebugRenderer, bool);
  8433. Variant GetAttribute(const String&) const;
  8434. ValueAnimation GetAttributeAnimation(const String&) const;
  8435. float GetAttributeAnimationSpeed(const String&) const;
  8436. float GetAttributeAnimationTime(const String&) const;
  8437. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8438. Variant GetAttributeDefault(const String&) const;
  8439. bool GetInterceptNetworkUpdate(const String&) const;
  8440. bool HasSubscribedToEvent(Object, const String&);
  8441. bool HasSubscribedToEvent(const String&);
  8442. bool IsInView(Camera) const;
  8443. bool Load(File);
  8444. bool Load(VectorBuffer&);
  8445. bool LoadJSON(const JSONValue&);
  8446. bool LoadXML(const XMLElement&);
  8447. void MarkNetworkUpdate() const;
  8448. void Remove();
  8449. void RemoveAttributeAnimation(const String&);
  8450. void RemoveInstanceDefault();
  8451. void RemoveObjectAnimation();
  8452. void ResetToDefault();
  8453. bool Save(File) const;
  8454. bool Save(VectorBuffer&) const;
  8455. bool SaveJSON(JSONValue&) const;
  8456. bool SaveXML(XMLElement&) const;
  8457. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8458. void SetAnimationTime(float);
  8459. bool SetAttribute(const String&, const Variant&);
  8460. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8461. void SetAttributeAnimationSpeed(const String&, float);
  8462. void SetAttributeAnimationTime(const String&, float);
  8463. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8464. void SetInterceptNetworkUpdate(const String&, bool);
  8465. // Properties:
  8466. bool animationEnabled;
  8467. /* readonly */
  8468. Array<Variant> attributeDefaults;
  8469. /* readonly */
  8470. Array<AttributeInfo> attributeInfos;
  8471. Array<Variant> attributes;
  8472. BlendMode blendMode;
  8473. /* readonly */
  8474. BoundingBox boundingBox;
  8475. bool castShadows;
  8476. /* readonly */
  8477. String category;
  8478. float drawDistance;
  8479. ParticleEffect2D effect;
  8480. bool emitting;
  8481. bool enabled;
  8482. /* readonly */
  8483. bool enabledEffective;
  8484. /* readonly */
  8485. uint id;
  8486. /* readonly */
  8487. bool inView;
  8488. int layer;
  8489. uint lightMask;
  8490. float lodBias;
  8491. uint maxLights;
  8492. /* readonly */
  8493. Node node;
  8494. /* readonly */
  8495. uint numAttributes;
  8496. ObjectAnimation objectAnimation;
  8497. bool occludee;
  8498. bool occluder;
  8499. int orderInLayer;
  8500. /* readonly */
  8501. int refs;
  8502. /* readonly */
  8503. bool replicated;
  8504. float shadowDistance;
  8505. uint shadowMask;
  8506. Sprite2D sprite;
  8507. bool temporary;
  8508. /* readonly */
  8509. StringHash type;
  8510. /* readonly */
  8511. String typeName;
  8512. uint viewMask;
  8513. /* readonly */
  8514. int weakRefs;
  8515. /* readonly */
  8516. BoundingBox worldBoundingBox;
  8517. uint zoneMask;
  8518. };
  8519. class Pass
  8520. {
  8521. public:
  8522. // Properties:
  8523. bool alphaToCoverage;
  8524. BlendMode blendMode;
  8525. CullMode cullMode;
  8526. CompareMode depthTestMode;
  8527. bool depthWrite;
  8528. bool desktop;
  8529. PassLightingMode lightingMode;
  8530. String pixelShader;
  8531. String pixelShaderDefineExcludes;
  8532. String pixelShaderDefines;
  8533. /* readonly */
  8534. int refs;
  8535. String vertexShader;
  8536. String vertexShaderDefineExcludes;
  8537. String vertexShaderDefines;
  8538. /* readonly */
  8539. int weakRefs;
  8540. };
  8541. class PhysicsRaycastResult
  8542. {
  8543. public:
  8544. ~PhysicsRaycastResult();
  8545. PhysicsRaycastResult();
  8546. // Properties:
  8547. /* readonly */
  8548. RigidBody body;
  8549. float distance;
  8550. float hitFraction;
  8551. Vector3 normal;
  8552. Vector3 position;
  8553. };
  8554. class PhysicsRaycastResult2D
  8555. {
  8556. public:
  8557. ~PhysicsRaycastResult2D();
  8558. PhysicsRaycastResult2D();
  8559. // Properties:
  8560. /* readonly */
  8561. RigidBody2D body;
  8562. float distance;
  8563. Vector2 normal;
  8564. Vector2 position;
  8565. };
  8566. class PhysicsWorld
  8567. {
  8568. public:
  8569. // Methods:
  8570. void ApplyAttributes();
  8571. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  8572. void DrawDebugGeometry(DebugRenderer, bool);
  8573. void DrawDebugGeometry(bool);
  8574. Variant GetAttribute(const String&) const;
  8575. ValueAnimation GetAttributeAnimation(const String&) const;
  8576. float GetAttributeAnimationSpeed(const String&) const;
  8577. float GetAttributeAnimationTime(const String&) const;
  8578. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8579. Variant GetAttributeDefault(const String&) const;
  8580. Array<RigidBody> GetCollidingBodies(RigidBody);
  8581. bool GetInterceptNetworkUpdate(const String&) const;
  8582. Array<RigidBody> GetRigidBodies(RigidBody);
  8583. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  8584. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  8585. bool HasSubscribedToEvent(Object, const String&);
  8586. bool HasSubscribedToEvent(const String&);
  8587. bool Load(File);
  8588. bool Load(VectorBuffer&);
  8589. bool LoadJSON(const JSONValue&);
  8590. bool LoadXML(const XMLElement&);
  8591. void MarkNetworkUpdate() const;
  8592. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  8593. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  8594. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff, float = 0.1f);
  8595. void Remove();
  8596. void RemoveAttributeAnimation(const String&);
  8597. void RemoveCachedGeometry(Model);
  8598. void RemoveInstanceDefault();
  8599. void RemoveObjectAnimation();
  8600. void ResetToDefault();
  8601. bool Save(File) const;
  8602. bool Save(VectorBuffer&) const;
  8603. bool SaveJSON(JSONValue&) const;
  8604. bool SaveXML(XMLElement&) const;
  8605. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8606. void SetAnimationTime(float);
  8607. bool SetAttribute(const String&, const Variant&);
  8608. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8609. void SetAttributeAnimationSpeed(const String&, float);
  8610. void SetAttributeAnimationTime(const String&, float);
  8611. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8612. void SetInterceptNetworkUpdate(const String&, bool);
  8613. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  8614. void Update(float);
  8615. void UpdateCollisions();
  8616. // Properties:
  8617. bool animationEnabled;
  8618. /* readonly */
  8619. Array<Variant> attributeDefaults;
  8620. /* readonly */
  8621. Array<AttributeInfo> attributeInfos;
  8622. Array<Variant> attributes;
  8623. /* readonly */
  8624. String category;
  8625. bool enabled;
  8626. /* readonly */
  8627. bool enabledEffective;
  8628. int fps;
  8629. Vector3 gravity;
  8630. /* readonly */
  8631. uint id;
  8632. bool internalEdge;
  8633. bool interpolation;
  8634. int maxSubSteps;
  8635. /* readonly */
  8636. Node node;
  8637. /* readonly */
  8638. uint numAttributes;
  8639. int numIterations;
  8640. ObjectAnimation objectAnimation;
  8641. /* readonly */
  8642. int refs;
  8643. /* readonly */
  8644. bool replicated;
  8645. bool splitImpulse;
  8646. bool temporary;
  8647. /* readonly */
  8648. StringHash type;
  8649. /* readonly */
  8650. String typeName;
  8651. bool updateEnabled;
  8652. /* readonly */
  8653. int weakRefs;
  8654. };
  8655. class PhysicsWorld2D
  8656. {
  8657. public:
  8658. // Methods:
  8659. void ApplyAttributes();
  8660. void DrawDebugGeometry() const;
  8661. void DrawDebugGeometry(DebugRenderer, bool);
  8662. Variant GetAttribute(const String&) const;
  8663. ValueAnimation GetAttributeAnimation(const String&) const;
  8664. float GetAttributeAnimationSpeed(const String&) const;
  8665. float GetAttributeAnimationTime(const String&) const;
  8666. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8667. Variant GetAttributeDefault(const String&) const;
  8668. bool GetInterceptNetworkUpdate(const String&) const;
  8669. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8670. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8671. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8672. bool HasSubscribedToEvent(Object, const String&);
  8673. bool HasSubscribedToEvent(const String&);
  8674. bool Load(File);
  8675. bool Load(VectorBuffer&);
  8676. bool LoadJSON(const JSONValue&);
  8677. bool LoadXML(const XMLElement&);
  8678. void MarkNetworkUpdate() const;
  8679. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8680. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8681. void Remove();
  8682. void RemoveAttributeAnimation(const String&);
  8683. void RemoveInstanceDefault();
  8684. void RemoveObjectAnimation();
  8685. void ResetToDefault();
  8686. bool Save(File) const;
  8687. bool Save(VectorBuffer&) const;
  8688. bool SaveJSON(JSONValue&) const;
  8689. bool SaveXML(XMLElement&) const;
  8690. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8691. void SetAnimationTime(float);
  8692. bool SetAttribute(const String&, const Variant&);
  8693. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8694. void SetAttributeAnimationSpeed(const String&, float);
  8695. void SetAttributeAnimationTime(const String&, float);
  8696. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8697. void SetInterceptNetworkUpdate(const String&, bool);
  8698. // Properties:
  8699. bool allowSleeping;
  8700. bool animationEnabled;
  8701. /* readonly */
  8702. Array<Variant> attributeDefaults;
  8703. /* readonly */
  8704. Array<AttributeInfo> attributeInfos;
  8705. Array<Variant> attributes;
  8706. bool autoClearForces;
  8707. /* readonly */
  8708. String category;
  8709. bool continuousPhysics;
  8710. bool drawAabb;
  8711. bool drawCenterOfMass;
  8712. bool drawJoint;
  8713. bool drawPair;
  8714. bool drawShape;
  8715. bool enabled;
  8716. /* readonly */
  8717. bool enabledEffective;
  8718. Vector2 gravity;
  8719. /* readonly */
  8720. uint id;
  8721. /* readonly */
  8722. Node node;
  8723. /* readonly */
  8724. uint numAttributes;
  8725. ObjectAnimation objectAnimation;
  8726. uint positionIterations;
  8727. /* readonly */
  8728. int refs;
  8729. /* readonly */
  8730. bool replicated;
  8731. bool subStepping;
  8732. bool temporary;
  8733. /* readonly */
  8734. StringHash type;
  8735. /* readonly */
  8736. String typeName;
  8737. bool updateEnabled;
  8738. uint velocityIterations;
  8739. bool warmStarting;
  8740. /* readonly */
  8741. int weakRefs;
  8742. };
  8743. class Plane
  8744. {
  8745. public:
  8746. Plane();
  8747. Plane(const Plane&in);
  8748. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  8749. Plane(const Vector3&in, const Vector3&in);
  8750. Plane(const Vector4&in);
  8751. // Methods:
  8752. void Define(const Vector3&, const Vector3&);
  8753. void Define(const Vector3&, const Vector3&, const Vector3&);
  8754. void Define(const Vector4&);
  8755. float Distance(const Vector3&) const;
  8756. Vector3 Project(const Vector3&) const;
  8757. Vector3 Reflect(const Vector3&) const;
  8758. Vector4 ToVector4() const;
  8759. void Transform(const Matrix3&);
  8760. void Transform(const Matrix3x4&);
  8761. void Transform(const Matrix4&);
  8762. Plane Transformed(const Matrix3&) const;
  8763. Plane Transformed(const Matrix3x4&) const;
  8764. Plane Transformed(const Matrix4&) const;
  8765. // Properties:
  8766. Vector3 absNormal;
  8767. float d;
  8768. Vector3 normal;
  8769. /* readonly */
  8770. Matrix3x4 reflectionMatrix;
  8771. };
  8772. class Polyhedron
  8773. {
  8774. public:
  8775. ~Polyhedron();
  8776. Polyhedron();
  8777. Polyhedron(const Polyhedron&in);
  8778. Polyhedron(const BoundingBox&in);
  8779. Polyhedron(const Frustum&in);
  8780. // Methods:
  8781. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8782. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8783. void AddFace(const Array<Vector3>);
  8784. void Clear();
  8785. void Clip(const BoundingBox&);
  8786. void Clip(const Frustum&);
  8787. void Define(const BoundingBox&);
  8788. void Define(const Frustum&);
  8789. void Transform(const Matrix3&);
  8790. void Transform(const Matrix3x4&);
  8791. Polyhedron Transformed(const Matrix3&) const;
  8792. Polyhedron Transformed(const Matrix3x4&) const;
  8793. // Properties:
  8794. /* readonly */
  8795. Array<Array<Vector3>> face;
  8796. /* readonly */
  8797. uint numFaces;
  8798. };
  8799. class ProgressBar
  8800. {
  8801. public:
  8802. // Methods:
  8803. void ChangeValue(float);
  8804. bool HasSubscribedToEvent(Object, const String&);
  8805. bool HasSubscribedToEvent(const String&);
  8806. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8807. void SetLoadingPercentStyle(const String&);
  8808. // Properties:
  8809. /* readonly */
  8810. String category;
  8811. /* readonly */
  8812. BorderImage knob;
  8813. Orientation orientation;
  8814. float range;
  8815. /* readonly */
  8816. int refs;
  8817. bool showPercentText;
  8818. /* readonly */
  8819. StringHash type;
  8820. /* readonly */
  8821. String typeName;
  8822. float value;
  8823. /* readonly */
  8824. int weakRefs;
  8825. };
  8826. class PropertySet2D
  8827. {
  8828. public:
  8829. // Methods:
  8830. bool HasProperty(const String&) const;
  8831. const String& GetProperty(const String&) const;
  8832. // Properties:
  8833. /* readonly */
  8834. int refs;
  8835. /* readonly */
  8836. int weakRefs;
  8837. };
  8838. class Quaternion
  8839. {
  8840. public:
  8841. Quaternion();
  8842. Quaternion(const Quaternion&in);
  8843. Quaternion(float, float, float, float);
  8844. Quaternion(float, const Vector3&in);
  8845. Quaternion(float);
  8846. Quaternion(float, float, float);
  8847. Quaternion(const Vector3&in);
  8848. Quaternion(const Vector3&in, const Vector3&in);
  8849. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  8850. Quaternion(const Matrix3&in);
  8851. // Methods:
  8852. Quaternion Conjugate() const;
  8853. float DotProduct(const Quaternion&) const;
  8854. bool Equals(const Quaternion&) const;
  8855. void FromAngleAxis(float, const Vector3&);
  8856. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8857. void FromEulerAngles(float, float, float);
  8858. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8859. void FromRotationMatrix(const Matrix3&);
  8860. void FromRotationTo(const Vector3&, const Vector3&);
  8861. Quaternion Inverse() const;
  8862. bool IsNaN() const;
  8863. float LengthSquared() const;
  8864. Quaternion Nlerp(const Quaternion&, float, bool) const;
  8865. void Normalize();
  8866. Quaternion Normalized() const;
  8867. Quaternion Slerp(const Quaternion&, float) const;
  8868. String ToString() const;
  8869. // Properties:
  8870. /* readonly */
  8871. float angle;
  8872. /* readonly */
  8873. Vector3 axis;
  8874. /* readonly */
  8875. Vector3 eulerAngles;
  8876. /* readonly */
  8877. float pitch;
  8878. /* readonly */
  8879. float roll;
  8880. /* readonly */
  8881. Matrix3 rotationMatrix;
  8882. float w;
  8883. float x;
  8884. float y;
  8885. /* readonly */
  8886. float yaw;
  8887. float z;
  8888. };
  8889. class Ray
  8890. {
  8891. public:
  8892. Ray();
  8893. Ray(const Ray&in);
  8894. Ray(const Vector3&in, const Vector3&in);
  8895. // Methods:
  8896. Vector3 ClosestPoint(const Ray&) const;
  8897. void Define(const Vector3&, const Vector3&);
  8898. float Distance(const Vector3&) const;
  8899. float HitDistance(const BoundingBox&) const;
  8900. float HitDistance(const Frustum&, bool = true) const;
  8901. float HitDistance(const Plane&) const;
  8902. float HitDistance(const Sphere&) const;
  8903. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8904. Vector3 Project(const Vector3&) const;
  8905. Ray Transformed(const Matrix3x4&) const;
  8906. // Properties:
  8907. Vector3 direction;
  8908. Vector3 origin;
  8909. };
  8910. class RayQueryResult
  8911. {
  8912. public:
  8913. RayQueryResult();
  8914. // Properties:
  8915. float distance;
  8916. /* readonly */
  8917. Drawable drawable;
  8918. /* readonly */
  8919. Node node;
  8920. Vector3 normal;
  8921. Vector3 position;
  8922. uint subObject;
  8923. Vector2 textureUV;
  8924. };
  8925. class RaycastVehicle
  8926. {
  8927. public:
  8928. // Methods:
  8929. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  8930. void ApplyAttributes();
  8931. void DrawDebugGeometry(DebugRenderer, bool);
  8932. Variant GetAttribute(const String&) const;
  8933. ValueAnimation GetAttributeAnimation(const String&) const;
  8934. float GetAttributeAnimationSpeed(const String&) const;
  8935. float GetAttributeAnimationTime(const String&) const;
  8936. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8937. Variant GetAttributeDefault(const String&) const;
  8938. float GetBrake(int);
  8939. Vector3 GetContactNormal(int);
  8940. Vector3 GetContactPosition(int);
  8941. float GetEngineForce(int);
  8942. bool GetInterceptNetworkUpdate(const String&) const;
  8943. float GetMaxSuspensionTravel(int);
  8944. float GetSteeringValue(int);
  8945. Vector3 GetWheelAxle(int);
  8946. Vector3 GetWheelConnectionPoint(int);
  8947. float GetWheelDampingCompression(int);
  8948. float GetWheelDampingRelaxation(int);
  8949. Vector3 GetWheelDirection(int);
  8950. float GetWheelFrictionSlip(int);
  8951. Node GetWheelNode(int);
  8952. Vector3 GetWheelPosition(int);
  8953. float GetWheelRadius(int);
  8954. float GetWheelRestLength(int);
  8955. float GetWheelRollInfluence(int);
  8956. Vector3 GetWheelRotation(int);
  8957. float GetWheelSideSlipSpeed(int);
  8958. float GetWheelSkidInfo(int);
  8959. float GetWheelSkidInfoCumulative(int);
  8960. float GetWheelSuspensionStiffness(int);
  8961. bool HasSubscribedToEvent(Object, const String&);
  8962. bool HasSubscribedToEvent(const String&);
  8963. void Init();
  8964. bool IsFrontWheel(int);
  8965. bool Load(File);
  8966. bool Load(VectorBuffer&);
  8967. bool LoadJSON(const JSONValue&);
  8968. bool LoadXML(const XMLElement&);
  8969. void MarkNetworkUpdate() const;
  8970. void Remove();
  8971. void RemoveAttributeAnimation(const String&);
  8972. void RemoveInstanceDefault();
  8973. void RemoveObjectAnimation();
  8974. void ResetSuspension();
  8975. void ResetToDefault();
  8976. void ResetWheels();
  8977. bool Save(File) const;
  8978. bool Save(VectorBuffer&) const;
  8979. bool SaveJSON(JSONValue&) const;
  8980. bool SaveXML(XMLElement&) const;
  8981. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8982. void SetAnimationTime(float);
  8983. bool SetAttribute(const String&, const Variant&);
  8984. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8985. void SetAttributeAnimationSpeed(const String&, float);
  8986. void SetAttributeAnimationTime(const String&, float);
  8987. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8988. void SetBrake(int, float);
  8989. void SetEngineForce(int, float);
  8990. void SetInterceptNetworkUpdate(const String&, bool);
  8991. void SetMaxSuspensionTravel(int, float);
  8992. void SetSteeringValue(int, float);
  8993. void SetWheelAxle(int, Vector3);
  8994. void SetWheelDampingCompression(int, float);
  8995. void SetWheelDampingRelaxation(int, float);
  8996. void SetWheelDirection(int, Vector3);
  8997. void SetWheelFrictionSlip(int, float);
  8998. void SetWheelRadius(int, float);
  8999. void SetWheelRestLength(int, float);
  9000. void SetWheelRollInfluence(int, float);
  9001. void SetWheelSkidInfo(int, float);
  9002. void SetWheelSkidInfoCumulative(int, float);
  9003. void SetWheelSuspensionStiffness(int, float);
  9004. void UpdateWheelTransform(int, bool);
  9005. bool WheelIsGrounded(int);
  9006. // Properties:
  9007. bool animationEnabled;
  9008. /* readonly */
  9009. Array<Variant> attributeDefaults;
  9010. /* readonly */
  9011. Array<AttributeInfo> attributeInfos;
  9012. Array<Variant> attributes;
  9013. /* readonly */
  9014. String category;
  9015. IntVector3 coordinateSystem;
  9016. bool enabled;
  9017. /* readonly */
  9018. bool enabledEffective;
  9019. /* readonly */
  9020. uint id;
  9021. float inAirRPM;
  9022. float maxSideSlipSpeed;
  9023. /* readonly */
  9024. Node node;
  9025. /* readonly */
  9026. uint numAttributes;
  9027. /* readonly */
  9028. int numWheels;
  9029. ObjectAnimation objectAnimation;
  9030. /* readonly */
  9031. int refs;
  9032. /* readonly */
  9033. bool replicated;
  9034. bool temporary;
  9035. /* readonly */
  9036. StringHash type;
  9037. /* readonly */
  9038. String typeName;
  9039. /* readonly */
  9040. int weakRefs;
  9041. // Constants:
  9042. static const IntVector3 FORWARD_RIGHT_UP;
  9043. static const IntVector3 FORWARD_UP_RIGHT;
  9044. static const IntVector3 RIGHT_FORWARD_UP;
  9045. static const IntVector3 RIGHT_UP_FORWARD;
  9046. static const IntVector3 UP_FORWARD_RIGHT;
  9047. static const IntVector3 UP_RIGHT_FORWARD;
  9048. };
  9049. class Rect
  9050. {
  9051. public:
  9052. Rect();
  9053. Rect(const Rect&in);
  9054. Rect(float, float, float, float);
  9055. Rect(const Vector2&in, const Vector2&in);
  9056. Rect(const Vector4&in);
  9057. // Methods:
  9058. void Clear();
  9059. void Clip(const Rect&);
  9060. void Define(const Vector2&);
  9061. void Define(const Vector2&, const Vector2&);
  9062. bool Defined() const;
  9063. bool Equals(const Rect&) const;
  9064. Intersection IsInside(const Rect&) const;
  9065. Intersection IsInside(const Vector2&) const;
  9066. void Merge(const Rect&);
  9067. void Merge(const Vector2&);
  9068. Vector4 ToVector4() const;
  9069. // Properties:
  9070. float bottom;
  9071. /* readonly */
  9072. Vector2 center;
  9073. /* readonly */
  9074. Vector2 halfSize;
  9075. float left;
  9076. Vector2 max;
  9077. Vector2 min;
  9078. float right;
  9079. /* readonly */
  9080. Vector2 size;
  9081. float top;
  9082. };
  9083. class RefCounted
  9084. {
  9085. public:
  9086. // Properties:
  9087. /* readonly */
  9088. int refs;
  9089. /* readonly */
  9090. int weakRefs;
  9091. };
  9092. class RenderPath
  9093. {
  9094. public:
  9095. RenderPath();
  9096. // Methods:
  9097. void AddCommand(const RenderPathCommand&);
  9098. void AddRenderTarget(const RenderTargetInfo&);
  9099. bool Append(XMLFile);
  9100. RenderPath Clone();
  9101. void InsertCommand(uint, const RenderPathCommand&);
  9102. bool Load(XMLFile);
  9103. void RemoveCommand(uint);
  9104. void RemoveCommands(const String&);
  9105. void RemoveRenderTarget(const String&);
  9106. void RemoveRenderTarget(uint);
  9107. void RemoveRenderTargts(const String&);
  9108. void SetEnabled(const String&, bool);
  9109. void ToggleEnabled(const String&);
  9110. // Properties:
  9111. /* readonly */
  9112. Array<bool> added;
  9113. Array<RenderPathCommand> commands;
  9114. /* readonly */
  9115. Array<bool> enabled;
  9116. /* readonly */
  9117. uint numCommands;
  9118. /* readonly */
  9119. uint numRenderTargets;
  9120. /* readonly */
  9121. int refs;
  9122. Array<RenderTargetInfo> renderTargets;
  9123. Array<Variant> shaderParameters;
  9124. /* readonly */
  9125. int weakRefs;
  9126. };
  9127. class RenderPathCommand
  9128. {
  9129. public:
  9130. ~RenderPathCommand();
  9131. RenderPathCommand();
  9132. RenderPathCommand(const RenderPathCommand&in);
  9133. // Methods:
  9134. void RemoveShaderParameter(const String&);
  9135. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  9136. // Properties:
  9137. BlendMode blendMode;
  9138. Color clearColor;
  9139. float clearDepth;
  9140. uint clearFlags;
  9141. uint clearStencil;
  9142. String depthStencilName;
  9143. bool enabled;
  9144. String eventName;
  9145. bool markToStencil;
  9146. String metadata;
  9147. uint numOutputs;
  9148. Array<CubeMapFace> outputFaces;
  9149. Array<String> outputNames;
  9150. String pass;
  9151. String pixelShaderDefines;
  9152. String pixelShaderName;
  9153. Array<Variant> shaderParameters;
  9154. RenderCommandSortMode sortMode;
  9155. String tag;
  9156. Array<String> textureNames;
  9157. RenderCommandType type;
  9158. bool useFogColor;
  9159. bool useLitBase;
  9160. bool vertexLights;
  9161. String vertexShaderDefines;
  9162. String vertexShaderName;
  9163. };
  9164. class RenderSurface
  9165. {
  9166. public:
  9167. // Methods:
  9168. void QueueUpdate();
  9169. // Properties:
  9170. /* readonly */
  9171. int height;
  9172. RenderSurface linkedDepthStencil;
  9173. RenderSurface linkedRenderTarget;
  9174. uint numViewports;
  9175. /* readonly */
  9176. Texture parentTexture;
  9177. /* readonly */
  9178. bool resolveDirty;
  9179. RenderSurfaceUpdateMode updateMode;
  9180. /* readonly */
  9181. TextureUsage usage;
  9182. Array<Viewport> viewports;
  9183. /* readonly */
  9184. int width;
  9185. };
  9186. class RenderTargetInfo
  9187. {
  9188. public:
  9189. ~RenderTargetInfo();
  9190. RenderTargetInfo();
  9191. RenderTargetInfo(const RenderTargetInfo&in);
  9192. // Properties:
  9193. bool autoResolve;
  9194. bool cubemap;
  9195. bool enabled;
  9196. bool filtered;
  9197. uint format;
  9198. int multiSample;
  9199. String name;
  9200. bool persistent;
  9201. bool sRGB;
  9202. Vector2 size;
  9203. RenderTargetSizeMode sizeMode;
  9204. String tag;
  9205. };
  9206. class Renderer
  9207. {
  9208. public:
  9209. // Methods:
  9210. void DrawDebugGeometry(bool) const;
  9211. Viewport GetViewportForScene(Scene, uint);
  9212. bool HasSubscribedToEvent(Object, const String&);
  9213. bool HasSubscribedToEvent(const String&);
  9214. void ReloadShaders() const;
  9215. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9216. void SetDefaultRenderPath(XMLFile);
  9217. void SetVSMShadowParameters(float, float);
  9218. // Properties:
  9219. /* readonly */
  9220. String category;
  9221. /* readonly */
  9222. Material defaultLightRamp;
  9223. /* readonly */
  9224. Material defaultLightSpot;
  9225. /* readonly */
  9226. Material defaultMaterial;
  9227. RenderPath defaultRenderPath;
  9228. Technique defaultTechnique;
  9229. /* readonly */
  9230. Zone defaultZone;
  9231. bool drawShadows;
  9232. bool dynamicInstancing;
  9233. bool hdrRendering;
  9234. int materialQuality;
  9235. int maxOccluderTriangles;
  9236. int maxShadowMaps;
  9237. int maxSortedInstances;
  9238. int minInstances;
  9239. float mobileNormalOffsetMul;
  9240. float mobileShadowBiasAdd;
  9241. float mobileShadowBiasMul;
  9242. /* readonly */
  9243. uint numBatches;
  9244. int numExtraInstancingBufferElements;
  9245. /* readonly */
  9246. Array<uint> numGeometries;
  9247. /* readonly */
  9248. Array<uint> numLights;
  9249. /* readonly */
  9250. Array<uint> numOccluders;
  9251. /* readonly */
  9252. uint numPrimitives;
  9253. /* readonly */
  9254. Array<uint> numShadowMaps;
  9255. uint numViewports;
  9256. /* readonly */
  9257. uint numViews;
  9258. float occluderSizeThreshold;
  9259. int occlusionBufferSize;
  9260. /* readonly */
  9261. int refs;
  9262. bool reuseShadowMaps;
  9263. int shadowMapSize;
  9264. ShadowQuality shadowQuality;
  9265. float shadowSoftness;
  9266. bool specularLighting;
  9267. int textureAnisotropy;
  9268. TextureFilterMode textureFilterMode;
  9269. int textureQuality;
  9270. bool threadedOcclusion;
  9271. /* readonly */
  9272. StringHash type;
  9273. /* readonly */
  9274. String typeName;
  9275. Array<Viewport> viewports;
  9276. int vsmMultiSample;
  9277. Vector2 vsmShadowParameters;
  9278. /* readonly */
  9279. int weakRefs;
  9280. };
  9281. class Resource
  9282. {
  9283. public:
  9284. // Methods:
  9285. bool HasSubscribedToEvent(Object, const String&);
  9286. bool HasSubscribedToEvent(const String&);
  9287. bool Load(File);
  9288. bool Load(VectorBuffer&);
  9289. bool Load(const String&);
  9290. bool Save(File) const;
  9291. bool Save(VectorBuffer&) const;
  9292. bool Save(const String&) const;
  9293. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9294. // Properties:
  9295. /* readonly */
  9296. String category;
  9297. /* readonly */
  9298. uint memoryUse;
  9299. String name;
  9300. /* readonly */
  9301. int refs;
  9302. /* readonly */
  9303. StringHash type;
  9304. /* readonly */
  9305. String typeName;
  9306. /* readonly */
  9307. uint useTimer;
  9308. /* readonly */
  9309. int weakRefs;
  9310. };
  9311. class ResourceCache
  9312. {
  9313. public:
  9314. // Methods:
  9315. bool AddManualResource(Resource);
  9316. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  9317. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  9318. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  9319. bool BackgroundLoadResource(const String&, const String&, bool = true);
  9320. bool Exists(const String&) const;
  9321. Resource GetExistingResource(StringHash, const String&);
  9322. Resource GetExistingResource(const String&, const String&);
  9323. File GetFile(const String&);
  9324. String GetPreferredResourceDir(const String&) const;
  9325. Resource GetResource(StringHash, const String&, bool = true);
  9326. Resource GetResource(const String&, const String&, bool = true);
  9327. String GetResourceFileName(const String&) const;
  9328. Array<Resource> GetResources(StringHash);
  9329. Array<Resource> GetResources(const String&);
  9330. bool HasSubscribedToEvent(Object, const String&);
  9331. bool HasSubscribedToEvent(const String&);
  9332. void ReleaseAllResources(bool = false);
  9333. void ReleaseResource(const String&, const String&, bool = false);
  9334. void ReleaseResources(StringHash, bool = false);
  9335. void ReleaseResources(const String&, bool = false);
  9336. void ReleaseResources(const String&, const String&, bool = false);
  9337. bool ReloadResource(Resource);
  9338. void ReloadResourceWithDependencies(const String&);
  9339. void RemovePackageFile(PackageFile, bool = true, bool = false);
  9340. void RemovePackageFile(const String&, bool = true, bool = false);
  9341. void RemoveResourceDir(const String&);
  9342. String SanitateResourceDirName(const String&) const;
  9343. String SanitateResourceName(const String&) const;
  9344. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9345. // Properties:
  9346. bool autoReloadResources;
  9347. /* readonly */
  9348. String category;
  9349. int finishBackgroundResourcesMs;
  9350. Array<uint64> memoryBudget;
  9351. /* readonly */
  9352. Array<uint64> memoryUse;
  9353. /* readonly */
  9354. uint numBackgroundLoadResources;
  9355. /* readonly */
  9356. Array<PackageFile> packageFiles;
  9357. /* readonly */
  9358. int refs;
  9359. /* readonly */
  9360. Array<String> resourceDirs;
  9361. bool returnFailedResources;
  9362. /* readonly */
  9363. bool seachPackagesFirst;
  9364. /* writeonly */
  9365. bool searchPackagesFirst;
  9366. /* readonly */
  9367. uint64 totalMemoryUse;
  9368. /* readonly */
  9369. StringHash type;
  9370. /* readonly */
  9371. String typeName;
  9372. /* readonly */
  9373. int weakRefs;
  9374. };
  9375. class ResourceRef
  9376. {
  9377. public:
  9378. ~ResourceRef();
  9379. ResourceRef();
  9380. ResourceRef(const ResourceRef&in);
  9381. ResourceRef(const String&in, const String&in);
  9382. // Properties:
  9383. String name;
  9384. StringHash type;
  9385. };
  9386. class ResourceRefList
  9387. {
  9388. public:
  9389. ~ResourceRefList();
  9390. ResourceRefList();
  9391. ResourceRefList(const ResourceRefList&in);
  9392. // Methods:
  9393. void Resize(uint);
  9394. // Properties:
  9395. /* readonly */
  9396. bool empty;
  9397. /* readonly */
  9398. uint length;
  9399. Array<String> names;
  9400. StringHash type;
  9401. };
  9402. class RibbonTrail
  9403. {
  9404. public:
  9405. // Methods:
  9406. void ApplyAttributes();
  9407. void Commit();
  9408. void DrawDebugGeometry(DebugRenderer, bool);
  9409. Variant GetAttribute(const String&) const;
  9410. ValueAnimation GetAttributeAnimation(const String&) const;
  9411. float GetAttributeAnimationSpeed(const String&) const;
  9412. float GetAttributeAnimationTime(const String&) const;
  9413. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9414. Variant GetAttributeDefault(const String&) const;
  9415. bool GetInterceptNetworkUpdate(const String&) const;
  9416. bool HasSubscribedToEvent(Object, const String&);
  9417. bool HasSubscribedToEvent(const String&);
  9418. bool IsInView(Camera) const;
  9419. bool Load(File);
  9420. bool Load(VectorBuffer&);
  9421. bool LoadJSON(const JSONValue&);
  9422. bool LoadXML(const XMLElement&);
  9423. void MarkNetworkUpdate() const;
  9424. void Remove();
  9425. void RemoveAttributeAnimation(const String&);
  9426. void RemoveInstanceDefault();
  9427. void RemoveObjectAnimation();
  9428. void ResetToDefault();
  9429. bool Save(File) const;
  9430. bool Save(VectorBuffer&) const;
  9431. bool SaveJSON(JSONValue&) const;
  9432. bool SaveXML(XMLElement&) const;
  9433. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9434. void SetAnimationTime(float);
  9435. bool SetAttribute(const String&, const Variant&);
  9436. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9437. void SetAttributeAnimationSpeed(const String&, float);
  9438. void SetAttributeAnimationTime(const String&, float);
  9439. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9440. void SetInterceptNetworkUpdate(const String&, bool);
  9441. // Properties:
  9442. bool animationEnabled;
  9443. float animationLodBias;
  9444. /* readonly */
  9445. Array<Variant> attributeDefaults;
  9446. /* readonly */
  9447. Array<AttributeInfo> attributeInfos;
  9448. Array<Variant> attributes;
  9449. Vector3 baseVelocity;
  9450. /* readonly */
  9451. BoundingBox boundingBox;
  9452. bool castShadows;
  9453. /* readonly */
  9454. String category;
  9455. float drawDistance;
  9456. bool emitting;
  9457. bool enabled;
  9458. /* readonly */
  9459. bool enabledEffective;
  9460. Color endColor;
  9461. float endScale;
  9462. /* readonly */
  9463. uint id;
  9464. /* readonly */
  9465. bool inView;
  9466. float lifetime;
  9467. uint lightMask;
  9468. float lodBias;
  9469. Material material;
  9470. uint maxLights;
  9471. /* readonly */
  9472. Node node;
  9473. /* readonly */
  9474. uint numAttributes;
  9475. ObjectAnimation objectAnimation;
  9476. bool occludee;
  9477. bool occluder;
  9478. /* readonly */
  9479. int refs;
  9480. /* readonly */
  9481. bool replicated;
  9482. float shadowDistance;
  9483. uint shadowMask;
  9484. bool sorted;
  9485. Color startColor;
  9486. float startScale;
  9487. uint tailColumn;
  9488. bool temporary;
  9489. TrailType trailType;
  9490. /* readonly */
  9491. StringHash type;
  9492. /* readonly */
  9493. String typeName;
  9494. bool updateInvisible;
  9495. float vertexDistance;
  9496. uint viewMask;
  9497. /* readonly */
  9498. int weakRefs;
  9499. float width;
  9500. /* readonly */
  9501. BoundingBox worldBoundingBox;
  9502. /* readonly */
  9503. Zone zone;
  9504. uint zoneMask;
  9505. };
  9506. class RigidBody
  9507. {
  9508. public:
  9509. // Methods:
  9510. void Activate();
  9511. void ApplyAttributes();
  9512. void ApplyForce(const Vector3&);
  9513. void ApplyForce(const Vector3&, const Vector3&);
  9514. void ApplyImpulse(const Vector3&);
  9515. void ApplyImpulse(const Vector3&, const Vector3&);
  9516. void ApplyTorque(const Vector3&);
  9517. void ApplyTorqueImpulse(const Vector3&);
  9518. void DisableMassUpdate();
  9519. void DrawDebugGeometry(DebugRenderer, bool);
  9520. void EnableMassUpdate();
  9521. Variant GetAttribute(const String&) const;
  9522. ValueAnimation GetAttributeAnimation(const String&) const;
  9523. float GetAttributeAnimationSpeed(const String&) const;
  9524. float GetAttributeAnimationTime(const String&) const;
  9525. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9526. Variant GetAttributeDefault(const String&) const;
  9527. bool GetInterceptNetworkUpdate(const String&) const;
  9528. Vector3 GetVelocityAtPoint(const Vector3&) const;
  9529. bool HasSubscribedToEvent(Object, const String&);
  9530. bool HasSubscribedToEvent(const String&);
  9531. bool Load(File);
  9532. bool Load(VectorBuffer&);
  9533. bool LoadJSON(const JSONValue&);
  9534. bool LoadXML(const XMLElement&);
  9535. void MarkNetworkUpdate() const;
  9536. void ReAddBodyToWorld();
  9537. void Remove();
  9538. void RemoveAttributeAnimation(const String&);
  9539. void RemoveInstanceDefault();
  9540. void RemoveObjectAnimation();
  9541. void ResetForces();
  9542. void ResetToDefault();
  9543. bool Save(File) const;
  9544. bool Save(VectorBuffer&) const;
  9545. bool SaveJSON(JSONValue&) const;
  9546. bool SaveXML(XMLElement&) const;
  9547. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9548. void SetAnimationTime(float);
  9549. bool SetAttribute(const String&, const Variant&);
  9550. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9551. void SetAttributeAnimationSpeed(const String&, float);
  9552. void SetAttributeAnimationTime(const String&, float);
  9553. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9554. void SetCollisionLayerAndMask(uint, uint);
  9555. void SetInterceptNetworkUpdate(const String&, bool);
  9556. void SetTransform(const Vector3&, const Quaternion&);
  9557. // Properties:
  9558. /* readonly */
  9559. bool active;
  9560. float angularDamping;
  9561. Vector3 angularFactor;
  9562. float angularRestThreshold;
  9563. Vector3 angularVelocity;
  9564. bool animationEnabled;
  9565. Vector3 anisotropicFriction;
  9566. /* readonly */
  9567. Array<Variant> attributeDefaults;
  9568. /* readonly */
  9569. Array<AttributeInfo> attributeInfos;
  9570. Array<Variant> attributes;
  9571. /* readonly */
  9572. String category;
  9573. float ccdMotionThreshold;
  9574. float ccdRadius;
  9575. /* readonly */
  9576. Vector3 centerOfMass;
  9577. /* readonly */
  9578. Array<RigidBody> collidingBodies;
  9579. CollisionEventMode collisionEventMode;
  9580. uint collisionLayer;
  9581. uint collisionMask;
  9582. float contactProcessingThreshold;
  9583. bool enabled;
  9584. /* readonly */
  9585. bool enabledEffective;
  9586. float friction;
  9587. Vector3 gravityOverride;
  9588. /* readonly */
  9589. uint id;
  9590. bool kinematic;
  9591. float linearDamping;
  9592. Vector3 linearFactor;
  9593. float linearRestThreshold;
  9594. Vector3 linearVelocity;
  9595. float mass;
  9596. /* readonly */
  9597. Node node;
  9598. /* readonly */
  9599. uint numAttributes;
  9600. ObjectAnimation objectAnimation;
  9601. Vector3 position;
  9602. /* readonly */
  9603. int refs;
  9604. /* readonly */
  9605. bool replicated;
  9606. float restitution;
  9607. float rollingFriction;
  9608. Quaternion rotation;
  9609. bool temporary;
  9610. bool trigger;
  9611. /* readonly */
  9612. StringHash type;
  9613. /* readonly */
  9614. String typeName;
  9615. bool useGravity;
  9616. /* readonly */
  9617. int weakRefs;
  9618. };
  9619. class RigidBody2D
  9620. {
  9621. public:
  9622. // Methods:
  9623. void ApplyAngularImpulse(float, bool);
  9624. void ApplyAttributes();
  9625. void ApplyForce(const Vector2&, const Vector2&, bool);
  9626. void ApplyForceToCenter(const Vector2&, bool);
  9627. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  9628. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  9629. void ApplyTorque(float, bool);
  9630. void DrawDebugGeometry(DebugRenderer, bool);
  9631. Variant GetAttribute(const String&) const;
  9632. ValueAnimation GetAttributeAnimation(const String&) const;
  9633. float GetAttributeAnimationSpeed(const String&) const;
  9634. float GetAttributeAnimationTime(const String&) const;
  9635. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9636. Variant GetAttributeDefault(const String&) const;
  9637. bool GetInterceptNetworkUpdate(const String&) const;
  9638. bool HasSubscribedToEvent(Object, const String&);
  9639. bool HasSubscribedToEvent(const String&);
  9640. bool Load(File);
  9641. bool Load(VectorBuffer&);
  9642. bool LoadJSON(const JSONValue&);
  9643. bool LoadXML(const XMLElement&);
  9644. void MarkNetworkUpdate() const;
  9645. void Remove();
  9646. void RemoveAttributeAnimation(const String&);
  9647. void RemoveInstanceDefault();
  9648. void RemoveObjectAnimation();
  9649. void ResetToDefault();
  9650. bool Save(File) const;
  9651. bool Save(VectorBuffer&) const;
  9652. bool SaveJSON(JSONValue&) const;
  9653. bool SaveXML(XMLElement&) const;
  9654. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9655. void SetAnimationTime(float);
  9656. bool SetAttribute(const String&, const Variant&);
  9657. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9658. void SetAttributeAnimationSpeed(const String&, float);
  9659. void SetAttributeAnimationTime(const String&, float);
  9660. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9661. void SetInterceptNetworkUpdate(const String&, bool);
  9662. // Properties:
  9663. bool allowSleep;
  9664. float angularDamping;
  9665. bool animationEnabled;
  9666. /* readonly */
  9667. Array<Variant> attributeDefaults;
  9668. /* readonly */
  9669. Array<AttributeInfo> attributeInfos;
  9670. Array<Variant> attributes;
  9671. bool awake;
  9672. BodyType2D bodyType;
  9673. bool bullet;
  9674. /* readonly */
  9675. String category;
  9676. bool enabled;
  9677. /* readonly */
  9678. bool enabledEffective;
  9679. bool fixedRotation;
  9680. float gravityScale;
  9681. /* readonly */
  9682. uint id;
  9683. float inertia;
  9684. float linearDamping;
  9685. Vector2 linearVelocity;
  9686. float mass;
  9687. Vector2 massCenter;
  9688. /* readonly */
  9689. Node node;
  9690. /* readonly */
  9691. uint numAttributes;
  9692. ObjectAnimation objectAnimation;
  9693. /* readonly */
  9694. int refs;
  9695. /* readonly */
  9696. bool replicated;
  9697. bool temporary;
  9698. /* readonly */
  9699. StringHash type;
  9700. /* readonly */
  9701. String typeName;
  9702. bool useFixtureMass;
  9703. /* readonly */
  9704. int weakRefs;
  9705. };
  9706. class Scene
  9707. {
  9708. public:
  9709. Scene();
  9710. Scene(const String&in);
  9711. // Methods:
  9712. void AddChild(Node, uint = M_MAX_UNSIGNED);
  9713. void AddRequiredPackageFile(PackageFile);
  9714. void AddTag(const String&);
  9715. void AddTags(const String&, int8 = ';');
  9716. void ApplyAttributes();
  9717. void Clear(bool = true, bool = true);
  9718. void ClearRequiredPackageFiles();
  9719. Component CloneComponent(Component, CreateMode, uint = 0);
  9720. Component CloneComponent(Component, uint = 0);
  9721. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  9722. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9723. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  9724. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  9725. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  9726. Variant GetAttribute(const String&) const;
  9727. ValueAnimation GetAttributeAnimation(const String&) const;
  9728. float GetAttributeAnimationSpeed(const String&) const;
  9729. float GetAttributeAnimationTime(const String&) const;
  9730. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9731. Variant GetAttributeDefault(const String&) const;
  9732. Node GetChild(const String&, bool = false) const;
  9733. Array<Node> GetChildren(bool = false) const;
  9734. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  9735. Array<Node> GetChildrenWithScript(bool = false) const;
  9736. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  9737. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  9738. Component GetComponent(const String&, bool = false) const;
  9739. Component GetComponent(uint) const;
  9740. Array<Component> GetComponents() const;
  9741. Array<Component> GetComponents(const String&, bool = false) const;
  9742. bool GetInterceptNetworkUpdate(const String&) const;
  9743. Node GetNode(uint) const;
  9744. Array<Node> GetNodesWithTag(const String&) const;
  9745. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9746. Component GetParentComponent(const String&, bool = false) const;
  9747. ScriptObject GetScriptObject() const;
  9748. ScriptObject GetScriptObject(const String&) const;
  9749. bool HasComponent(const String&) const;
  9750. bool HasSubscribedToEvent(Object, const String&);
  9751. bool HasSubscribedToEvent(const String&);
  9752. bool HasTag(const String&);
  9753. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9754. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9755. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9756. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9757. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9758. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9759. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9760. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9761. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9762. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9763. bool IsChildOf(Node) const;
  9764. bool Load(File);
  9765. bool Load(VectorBuffer&);
  9766. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9767. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9768. bool LoadJSON(File);
  9769. bool LoadJSON(VectorBuffer&);
  9770. bool LoadJSON(const JSONValue&);
  9771. bool LoadXML(File);
  9772. bool LoadXML(VectorBuffer&);
  9773. bool LoadXML(const XMLElement&);
  9774. Vector3 LocalToWorld(const Vector3&) const;
  9775. Vector3 LocalToWorld(const Vector4&) const;
  9776. Vector2 LocalToWorld2D(const Vector2&) const;
  9777. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  9778. void MarkNetworkUpdate() const;
  9779. void Pitch(float, TransformSpace = TS_LOCAL);
  9780. void RegisterVar(const String&);
  9781. void Remove();
  9782. void RemoveAllChildren();
  9783. void RemoveAllComponents();
  9784. void RemoveAllTags();
  9785. void RemoveAttributeAnimation(const String&);
  9786. void RemoveChild(Node);
  9787. void RemoveChildren(bool, bool, bool);
  9788. void RemoveComponent(Component);
  9789. void RemoveComponent(const String&);
  9790. void RemoveComponents(bool, bool);
  9791. void RemoveComponents(const String&);
  9792. void RemoveInstanceDefault();
  9793. void RemoveObjectAnimation();
  9794. bool RemoveTag(const String&);
  9795. void ReorderComponent(Component, uint);
  9796. void ResetToDefault();
  9797. void Roll(float, TransformSpace = TS_LOCAL);
  9798. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  9799. void Rotate2D(float, TransformSpace = TS_LOCAL);
  9800. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  9801. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  9802. bool Save(File) const;
  9803. bool Save(VectorBuffer&) const;
  9804. bool SaveJSON(File, const String& = "\t");
  9805. bool SaveJSON(JSONValue&) const;
  9806. bool SaveJSON(VectorBuffer&, const String& = "\t");
  9807. bool SaveXML(File, const String& = "\t");
  9808. bool SaveXML(VectorBuffer&, const String& = "\t");
  9809. bool SaveXML(XMLElement&) const;
  9810. void Scale(const Vector3&);
  9811. void Scale(float);
  9812. void Scale2D(const Vector2&);
  9813. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9814. void SetAnimationTime(float);
  9815. bool SetAttribute(const String&, const Variant&);
  9816. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9817. void SetAttributeAnimationSpeed(const String&, float);
  9818. void SetAttributeAnimationTime(const String&, float);
  9819. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9820. void SetInterceptNetworkUpdate(const String&, bool);
  9821. void SetPosition2D(float, float);
  9822. void SetScale(float);
  9823. void SetScale2D(float, float);
  9824. void SetTransform(const Matrix3x4&);
  9825. void SetTransform(const Vector3&, const Quaternion&);
  9826. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  9827. void SetTransform(const Vector3&, const Quaternion&, float);
  9828. void SetTransform2D(const Vector2&, float);
  9829. void SetTransform2D(const Vector2&, float, const Vector2&);
  9830. void SetTransform2D(const Vector2&, float, float);
  9831. void SetWorldTransform(const Vector3&, const Quaternion&);
  9832. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  9833. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  9834. void SetWorldTransform2D(const Vector2&, float);
  9835. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  9836. void SetWorldTransform2D(const Vector2&, float, float);
  9837. void StopAsyncLoading();
  9838. const String& GetVarName(StringHash) const;
  9839. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  9840. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  9841. void UnregisterAllVars(const String&);
  9842. void UnregisterVar(const String&);
  9843. void Update(float);
  9844. Vector3 WorldToLocal(const Vector3&) const;
  9845. Vector3 WorldToLocal(const Vector4&) const;
  9846. Vector2 WorldToLocal2D(const Vector2&) const;
  9847. void Yaw(float, TransformSpace = TS_LOCAL);
  9848. // Properties:
  9849. /* readonly */
  9850. Array<Node> allChildrenByName;
  9851. bool animationEnabled;
  9852. /* readonly */
  9853. LoadMode asyncLoadMode;
  9854. /* readonly */
  9855. bool asyncLoading;
  9856. int asyncLoadingMs;
  9857. /* readonly */
  9858. float asyncProgress;
  9859. /* readonly */
  9860. Array<Variant> attributeDefaults;
  9861. /* readonly */
  9862. Array<AttributeInfo> attributeInfos;
  9863. Array<Variant> attributes;
  9864. /* readonly */
  9865. String category;
  9866. /* readonly */
  9867. uint checksum;
  9868. /* readonly */
  9869. Array<Node> children;
  9870. /* readonly */
  9871. Array<Node> childrenByName;
  9872. /* readonly */
  9873. Array<Component> components;
  9874. /* readonly */
  9875. DebugRenderer debugRenderer;
  9876. Vector3 direction;
  9877. float elapsedTime;
  9878. /* readonly */
  9879. String fileName;
  9880. uint id;
  9881. String name;
  9882. /* readonly */
  9883. uint numAllChildren;
  9884. /* readonly */
  9885. uint numAttributes;
  9886. /* readonly */
  9887. uint numChildren;
  9888. /* readonly */
  9889. uint numComponents;
  9890. ObjectAnimation objectAnimation;
  9891. /* readonly */
  9892. Octree octree;
  9893. Node parent;
  9894. /* readonly */
  9895. PhysicsWorld physicsWorld;
  9896. /* readonly */
  9897. PhysicsWorld2D physicsWorld2D;
  9898. Vector3 position;
  9899. Vector2 position2D;
  9900. /* readonly */
  9901. int refs;
  9902. /* readonly */
  9903. bool replicated;
  9904. /* readonly */
  9905. Array<PackageFile> requiredPackageFiles;
  9906. /* readonly */
  9907. Vector3 right;
  9908. Quaternion rotation;
  9909. float rotation2D;
  9910. Vector3 scale;
  9911. Vector2 scale2D;
  9912. /* readonly */
  9913. ScriptObject scriptObject;
  9914. /* readonly */
  9915. Vector3 signedWorldScale;
  9916. float smoothingConstant;
  9917. float snapThreshold;
  9918. /* readonly */
  9919. Array<String> tags;
  9920. bool temporary;
  9921. float timeScale;
  9922. /* readonly */
  9923. Matrix3x4 transform;
  9924. /* readonly */
  9925. StringHash type;
  9926. /* readonly */
  9927. String typeName;
  9928. /* readonly */
  9929. Vector3 up;
  9930. bool updateEnabled;
  9931. /* readonly */
  9932. VariantMap vars;
  9933. /* readonly */
  9934. int weakRefs;
  9935. Vector3 worldDirection;
  9936. Vector3 worldPosition;
  9937. Vector2 worldPosition2D;
  9938. /* readonly */
  9939. Vector3 worldRight;
  9940. Quaternion worldRotation;
  9941. float worldRotation2D;
  9942. Vector3 worldScale;
  9943. Vector2 worldScale2D;
  9944. /* readonly */
  9945. Matrix3x4 worldTransform;
  9946. /* readonly */
  9947. Vector3 worldUp;
  9948. };
  9949. class Script
  9950. {
  9951. public:
  9952. // Methods:
  9953. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9954. bool Execute(const String&);
  9955. bool HasSubscribedToEvent(Object, const String&);
  9956. bool HasSubscribedToEvent(const String&);
  9957. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9958. // Properties:
  9959. /* readonly */
  9960. String category;
  9961. Scene defaultScene;
  9962. ScriptFile defaultScriptFile;
  9963. bool executeConsoleCommands;
  9964. /* readonly */
  9965. int refs;
  9966. /* readonly */
  9967. StringHash type;
  9968. /* readonly */
  9969. String typeName;
  9970. /* readonly */
  9971. int weakRefs;
  9972. };
  9973. class ScriptFile
  9974. {
  9975. public:
  9976. ScriptFile();
  9977. ScriptFile(const String&in);
  9978. // Methods:
  9979. void ClearDelayedExecute(const String& = String ( ));
  9980. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9981. bool Execute(const String&, const Array<Variant> = null);
  9982. bool HasSubscribedToEvent(Object, const String&);
  9983. bool HasSubscribedToEvent(const String&);
  9984. bool Load(File);
  9985. bool Load(VectorBuffer&);
  9986. bool Load(const String&);
  9987. bool Save(File) const;
  9988. bool Save(VectorBuffer&) const;
  9989. bool Save(const String&) const;
  9990. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9991. // Properties:
  9992. /* readonly */
  9993. String category;
  9994. /* readonly */
  9995. bool compiled;
  9996. /* readonly */
  9997. uint memoryUse;
  9998. String name;
  9999. /* readonly */
  10000. int refs;
  10001. /* readonly */
  10002. StringHash type;
  10003. /* readonly */
  10004. String typeName;
  10005. /* readonly */
  10006. uint useTimer;
  10007. /* readonly */
  10008. int weakRefs;
  10009. };
  10010. class ScriptInstance
  10011. {
  10012. public:
  10013. // Methods:
  10014. void ApplyAttributes();
  10015. void ClearDelayedExecute(const String& = String ( ));
  10016. bool CreateObject(ScriptFile, const String&);
  10017. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  10018. void DrawDebugGeometry(DebugRenderer, bool);
  10019. bool Execute(const String&, const Array<Variant> = null);
  10020. Variant GetAttribute(const String&) const;
  10021. ValueAnimation GetAttributeAnimation(const String&) const;
  10022. float GetAttributeAnimationSpeed(const String&) const;
  10023. float GetAttributeAnimationTime(const String&) const;
  10024. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10025. Variant GetAttributeDefault(const String&) const;
  10026. bool GetInterceptNetworkUpdate(const String&) const;
  10027. bool HasMethod(const String&) const;
  10028. bool HasSubscribedToEvent(Object, const String&);
  10029. bool HasSubscribedToEvent(const String&);
  10030. bool IsA(const String&) const;
  10031. bool Load(File);
  10032. bool Load(VectorBuffer&);
  10033. bool LoadJSON(const JSONValue&);
  10034. bool LoadXML(const XMLElement&);
  10035. void MarkNetworkUpdate() const;
  10036. void Remove();
  10037. void RemoveAttributeAnimation(const String&);
  10038. void RemoveInstanceDefault();
  10039. void RemoveObjectAnimation();
  10040. void ResetToDefault();
  10041. bool Save(File) const;
  10042. bool Save(VectorBuffer&) const;
  10043. bool SaveJSON(JSONValue&) const;
  10044. bool SaveXML(XMLElement&) const;
  10045. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10046. void SetAnimationTime(float);
  10047. bool SetAttribute(const String&, const Variant&);
  10048. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10049. void SetAttributeAnimationSpeed(const String&, float);
  10050. void SetAttributeAnimationTime(const String&, float);
  10051. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10052. void SetInterceptNetworkUpdate(const String&, bool);
  10053. // Properties:
  10054. bool animationEnabled;
  10055. /* readonly */
  10056. Array<Variant> attributeDefaults;
  10057. /* readonly */
  10058. Array<AttributeInfo> attributeInfos;
  10059. Array<Variant> attributes;
  10060. /* readonly */
  10061. String category;
  10062. String className;
  10063. bool enabled;
  10064. /* readonly */
  10065. bool enabledEffective;
  10066. /* readonly */
  10067. uint id;
  10068. /* readonly */
  10069. Node node;
  10070. /* readonly */
  10071. uint numAttributes;
  10072. ObjectAnimation objectAnimation;
  10073. /* readonly */
  10074. int refs;
  10075. /* readonly */
  10076. bool replicated;
  10077. ScriptFile scriptFile;
  10078. /* readonly */
  10079. ScriptObject scriptObject;
  10080. bool temporary;
  10081. /* readonly */
  10082. StringHash type;
  10083. /* readonly */
  10084. String typeName;
  10085. /* readonly */
  10086. int weakRefs;
  10087. };
  10088. class ScriptObject
  10089. {
  10090. public:
  10091. };
  10092. class ScrollBar
  10093. {
  10094. public:
  10095. ScrollBar();
  10096. ScrollBar(const String&in);
  10097. // Methods:
  10098. void AddChild(UIElement);
  10099. void AddTag(const String&);
  10100. void AddTags(const String&, int8 = ';');
  10101. void ApplyAttributes();
  10102. void BringToFront();
  10103. void ChangeValue(float);
  10104. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10105. void DisableLayoutUpdate();
  10106. IntVector2 ElementToScreen(const IntVector2&);
  10107. void EnableLayoutUpdate();
  10108. uint FindChild(UIElement) const;
  10109. Variant GetAttribute(const String&) const;
  10110. ValueAnimation GetAttributeAnimation(const String&) const;
  10111. float GetAttributeAnimationSpeed(const String&) const;
  10112. float GetAttributeAnimationTime(const String&) const;
  10113. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10114. Variant GetAttributeDefault(const String&) const;
  10115. UIElement GetChild(const String&, bool = false) const;
  10116. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10117. Array<UIElement> GetChildren(bool = false) const;
  10118. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10119. UIElement GetElementEventSender() const;
  10120. bool GetInterceptNetworkUpdate(const String&) const;
  10121. uint GetNumChildren(bool) const;
  10122. bool HasSubscribedToEvent(Object, const String&);
  10123. bool HasSubscribedToEvent(const String&);
  10124. bool HasTag(const String&) const;
  10125. void InsertChild(uint, UIElement);
  10126. bool IsChildOf(UIElement) const;
  10127. bool IsInside(IntVector2, bool);
  10128. bool IsInsideCombined(IntVector2, bool);
  10129. bool Load(File);
  10130. bool Load(VectorBuffer&);
  10131. UIElement LoadChildXML(XMLFile, XMLFile);
  10132. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10133. bool LoadJSON(const JSONValue&);
  10134. bool LoadXML(File);
  10135. bool LoadXML(VectorBuffer&);
  10136. bool LoadXML(XMLFile, XMLFile);
  10137. bool LoadXML(const XMLElement&, XMLFile);
  10138. bool LoadXML(const XMLElement&);
  10139. void MarkNetworkUpdate() const;
  10140. void Remove();
  10141. void RemoveAllChildren();
  10142. void RemoveAllTags();
  10143. void RemoveAttributeAnimation(const String&);
  10144. void RemoveChild(UIElement, uint = 0);
  10145. void RemoveChild(uint);
  10146. void RemoveInstanceDefault();
  10147. void RemoveObjectAnimation();
  10148. bool RemoveTag(const String&);
  10149. void ResetDeepEnabled();
  10150. void ResetToDefault();
  10151. bool Save(File) const;
  10152. bool Save(VectorBuffer&) const;
  10153. bool SaveJSON(JSONValue&) const;
  10154. bool SaveXML(File, const String& = "\t");
  10155. bool SaveXML(VectorBuffer&, const String& = "\t");
  10156. bool SaveXML(XMLElement&) const;
  10157. IntVector2 ScreenToElement(const IntVector2&);
  10158. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10159. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10160. void SetAnimationTime(float);
  10161. bool SetAttribute(const String&, const Variant&);
  10162. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10163. void SetAttributeAnimationSpeed(const String&, float);
  10164. void SetAttributeAnimationTime(const String&, float);
  10165. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10166. void SetDeepEnabled(bool);
  10167. void SetEnabledRecursive(bool);
  10168. void SetFixedHeight(int);
  10169. void SetFixedSize(int, int);
  10170. void SetFixedWidth(int);
  10171. void SetInterceptNetworkUpdate(const String&, bool);
  10172. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10173. void SetMaxAnchor(float, float);
  10174. void SetMaxSize(int, int);
  10175. void SetMinAnchor(float, float);
  10176. void SetMinSize(int, int);
  10177. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10178. void SetPivot(float, float);
  10179. void SetPosition(int, int);
  10180. void SetSize(int, int);
  10181. bool SetStyle(const String&, XMLFile = null);
  10182. bool SetStyle(const XMLElement&);
  10183. bool SetStyleAuto(XMLFile = null);
  10184. void StepBack();
  10185. void StepForward();
  10186. void UpdateLayout();
  10187. const Variant& GetVar(const StringHash&);
  10188. // Properties:
  10189. bool animationEnabled;
  10190. /* readonly */
  10191. Array<Variant> attributeDefaults;
  10192. /* readonly */
  10193. Array<AttributeInfo> attributeInfos;
  10194. Array<Variant> attributes;
  10195. /* readonly */
  10196. Button backButton;
  10197. bool bringToBack;
  10198. bool bringToFront;
  10199. /* readonly */
  10200. String category;
  10201. /* readonly */
  10202. IntVector2 childOffset;
  10203. /* readonly */
  10204. Array<UIElement> children;
  10205. IntRect clipBorder;
  10206. bool clipChildren;
  10207. /* writeonly */
  10208. Color color;
  10209. /* readonly */
  10210. bool colorGradient;
  10211. Array<Color> colors;
  10212. /* readonly */
  10213. IntRect combinedScreenRect;
  10214. XMLFile defaultStyle;
  10215. /* readonly */
  10216. float derivedOpacity;
  10217. /* readonly */
  10218. uint dragButtonCombo;
  10219. /* readonly */
  10220. int dragButtonCount;
  10221. uint dragDropMode;
  10222. bool editable;
  10223. /* readonly */
  10224. float effectiveScrollStep;
  10225. bool elementEventSender;
  10226. bool enableAnchor;
  10227. bool enabled;
  10228. /* readonly */
  10229. bool enabledSelf;
  10230. /* readonly */
  10231. bool fixedHeight;
  10232. /* readonly */
  10233. bool fixedSize;
  10234. /* readonly */
  10235. bool fixedWidth;
  10236. bool focus;
  10237. FocusMode focusMode;
  10238. /* readonly */
  10239. Button forwardButton;
  10240. int height;
  10241. HorizontalAlignment horizontalAlignment;
  10242. /* readonly */
  10243. bool hovering;
  10244. int indent;
  10245. int indentSpacing;
  10246. /* readonly */
  10247. int indentWidth;
  10248. bool internal;
  10249. IntRect layoutBorder;
  10250. Vector2 layoutFlexScale;
  10251. LayoutMode layoutMode;
  10252. int layoutSpacing;
  10253. Vector2 maxAnchor;
  10254. int maxHeight;
  10255. IntVector2 maxOffset;
  10256. IntVector2 maxSize;
  10257. int maxWidth;
  10258. Vector2 minAnchor;
  10259. int minHeight;
  10260. IntVector2 minOffset;
  10261. IntVector2 minSize;
  10262. int minWidth;
  10263. String name;
  10264. /* readonly */
  10265. uint numAllChildren;
  10266. /* readonly */
  10267. uint numAttributes;
  10268. /* readonly */
  10269. uint numChildren;
  10270. ObjectAnimation objectAnimation;
  10271. float opacity;
  10272. Orientation orientation;
  10273. UIElement parent;
  10274. Vector2 pivot;
  10275. IntVector2 position;
  10276. int priority;
  10277. float range;
  10278. /* readonly */
  10279. int refs;
  10280. /* readonly */
  10281. UIElement root;
  10282. /* readonly */
  10283. IntVector2 screenPosition;
  10284. float scrollStep;
  10285. bool selected;
  10286. IntVector2 size;
  10287. /* readonly */
  10288. Slider slider;
  10289. bool sortChildren;
  10290. float stepFactor;
  10291. String style;
  10292. /* readonly */
  10293. Array<String> tags;
  10294. bool temporary;
  10295. TraversalMode traversalMode;
  10296. /* readonly */
  10297. StringHash type;
  10298. /* readonly */
  10299. String typeName;
  10300. bool useDerivedOpacity;
  10301. float value;
  10302. /* readonly */
  10303. VariantMap vars;
  10304. VerticalAlignment verticalAlignment;
  10305. bool visible;
  10306. /* readonly */
  10307. bool visibleEffective;
  10308. /* readonly */
  10309. int weakRefs;
  10310. int width;
  10311. };
  10312. class ScrollView
  10313. {
  10314. public:
  10315. ScrollView();
  10316. ScrollView(const String&in);
  10317. // Methods:
  10318. void AddChild(UIElement);
  10319. void AddTag(const String&);
  10320. void AddTags(const String&, int8 = ';');
  10321. void ApplyAttributes();
  10322. void BringToFront();
  10323. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10324. void DisableLayoutUpdate();
  10325. IntVector2 ElementToScreen(const IntVector2&);
  10326. void EnableLayoutUpdate();
  10327. uint FindChild(UIElement) const;
  10328. Variant GetAttribute(const String&) const;
  10329. ValueAnimation GetAttributeAnimation(const String&) const;
  10330. float GetAttributeAnimationSpeed(const String&) const;
  10331. float GetAttributeAnimationTime(const String&) const;
  10332. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10333. Variant GetAttributeDefault(const String&) const;
  10334. UIElement GetChild(const String&, bool = false) const;
  10335. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10336. Array<UIElement> GetChildren(bool = false) const;
  10337. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10338. UIElement GetElementEventSender() const;
  10339. bool GetInterceptNetworkUpdate(const String&) const;
  10340. uint GetNumChildren(bool) const;
  10341. bool HasSubscribedToEvent(Object, const String&);
  10342. bool HasSubscribedToEvent(const String&);
  10343. bool HasTag(const String&) const;
  10344. void InsertChild(uint, UIElement);
  10345. bool IsChildOf(UIElement) const;
  10346. bool IsInside(IntVector2, bool);
  10347. bool IsInsideCombined(IntVector2, bool);
  10348. bool Load(File);
  10349. bool Load(VectorBuffer&);
  10350. UIElement LoadChildXML(XMLFile, XMLFile);
  10351. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10352. bool LoadJSON(const JSONValue&);
  10353. bool LoadXML(File);
  10354. bool LoadXML(VectorBuffer&);
  10355. bool LoadXML(XMLFile, XMLFile);
  10356. bool LoadXML(const XMLElement&, XMLFile);
  10357. bool LoadXML(const XMLElement&);
  10358. void MarkNetworkUpdate() const;
  10359. void Remove();
  10360. void RemoveAllChildren();
  10361. void RemoveAllTags();
  10362. void RemoveAttributeAnimation(const String&);
  10363. void RemoveChild(UIElement, uint = 0);
  10364. void RemoveChild(uint);
  10365. void RemoveInstanceDefault();
  10366. void RemoveObjectAnimation();
  10367. bool RemoveTag(const String&);
  10368. void ResetDeepEnabled();
  10369. void ResetToDefault();
  10370. bool Save(File) const;
  10371. bool Save(VectorBuffer&) const;
  10372. bool SaveJSON(JSONValue&) const;
  10373. bool SaveXML(File, const String& = "\t");
  10374. bool SaveXML(VectorBuffer&, const String& = "\t");
  10375. bool SaveXML(XMLElement&) const;
  10376. IntVector2 ScreenToElement(const IntVector2&);
  10377. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10378. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10379. void SetAnimationTime(float);
  10380. bool SetAttribute(const String&, const Variant&);
  10381. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10382. void SetAttributeAnimationSpeed(const String&, float);
  10383. void SetAttributeAnimationTime(const String&, float);
  10384. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10385. void SetDeepEnabled(bool);
  10386. void SetEnabledRecursive(bool);
  10387. void SetFixedHeight(int);
  10388. void SetFixedSize(int, int);
  10389. void SetFixedWidth(int);
  10390. void SetInterceptNetworkUpdate(const String&, bool);
  10391. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10392. void SetMaxAnchor(float, float);
  10393. void SetMaxSize(int, int);
  10394. void SetMinAnchor(float, float);
  10395. void SetMinSize(int, int);
  10396. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10397. void SetPivot(float, float);
  10398. void SetPosition(int, int);
  10399. void SetScrollBarsVisible(bool, bool);
  10400. void SetSize(int, int);
  10401. bool SetStyle(const String&, XMLFile = null);
  10402. bool SetStyle(const XMLElement&);
  10403. bool SetStyleAuto(XMLFile = null);
  10404. void SetViewPosition(int, int);
  10405. void UpdateLayout();
  10406. const Variant& GetVar(const StringHash&);
  10407. // Properties:
  10408. bool animationEnabled;
  10409. /* readonly */
  10410. Array<Variant> attributeDefaults;
  10411. /* readonly */
  10412. Array<AttributeInfo> attributeInfos;
  10413. Array<Variant> attributes;
  10414. bool autoDisableChildren;
  10415. float autoDisableThreshold;
  10416. bool bringToBack;
  10417. bool bringToFront;
  10418. /* readonly */
  10419. String category;
  10420. /* readonly */
  10421. IntVector2 childOffset;
  10422. /* readonly */
  10423. Array<UIElement> children;
  10424. IntRect clipBorder;
  10425. bool clipChildren;
  10426. /* writeonly */
  10427. Color color;
  10428. /* readonly */
  10429. bool colorGradient;
  10430. Array<Color> colors;
  10431. /* readonly */
  10432. IntRect combinedScreenRect;
  10433. UIElement contentElement;
  10434. XMLFile defaultStyle;
  10435. /* readonly */
  10436. float derivedOpacity;
  10437. /* readonly */
  10438. uint dragButtonCombo;
  10439. /* readonly */
  10440. int dragButtonCount;
  10441. uint dragDropMode;
  10442. bool editable;
  10443. bool elementEventSender;
  10444. bool enableAnchor;
  10445. bool enabled;
  10446. /* readonly */
  10447. bool enabledSelf;
  10448. /* readonly */
  10449. bool fixedHeight;
  10450. /* readonly */
  10451. bool fixedSize;
  10452. /* readonly */
  10453. bool fixedWidth;
  10454. bool focus;
  10455. FocusMode focusMode;
  10456. int height;
  10457. HorizontalAlignment horizontalAlignment;
  10458. /* readonly */
  10459. ScrollBar horizontalScrollBar;
  10460. bool horizontalScrollBarVisible;
  10461. /* readonly */
  10462. bool hovering;
  10463. int indent;
  10464. int indentSpacing;
  10465. /* readonly */
  10466. int indentWidth;
  10467. bool internal;
  10468. IntRect layoutBorder;
  10469. Vector2 layoutFlexScale;
  10470. LayoutMode layoutMode;
  10471. int layoutSpacing;
  10472. Vector2 maxAnchor;
  10473. int maxHeight;
  10474. IntVector2 maxOffset;
  10475. IntVector2 maxSize;
  10476. int maxWidth;
  10477. Vector2 minAnchor;
  10478. int minHeight;
  10479. IntVector2 minOffset;
  10480. IntVector2 minSize;
  10481. int minWidth;
  10482. String name;
  10483. /* readonly */
  10484. uint numAllChildren;
  10485. /* readonly */
  10486. uint numAttributes;
  10487. /* readonly */
  10488. uint numChildren;
  10489. ObjectAnimation objectAnimation;
  10490. float opacity;
  10491. float pageStep;
  10492. UIElement parent;
  10493. Vector2 pivot;
  10494. IntVector2 position;
  10495. int priority;
  10496. /* readonly */
  10497. int refs;
  10498. /* readonly */
  10499. UIElement root;
  10500. /* readonly */
  10501. IntVector2 screenPosition;
  10502. bool scrollBarsAutoVisible;
  10503. float scrollDeceleration;
  10504. /* readonly */
  10505. BorderImage scrollPanel;
  10506. float scrollSnapEpsilon;
  10507. float scrollStep;
  10508. bool selected;
  10509. IntVector2 size;
  10510. bool sortChildren;
  10511. String style;
  10512. /* readonly */
  10513. Array<String> tags;
  10514. bool temporary;
  10515. TraversalMode traversalMode;
  10516. /* readonly */
  10517. StringHash type;
  10518. /* readonly */
  10519. String typeName;
  10520. bool useDerivedOpacity;
  10521. /* readonly */
  10522. VariantMap vars;
  10523. VerticalAlignment verticalAlignment;
  10524. /* readonly */
  10525. ScrollBar verticalScrollBar;
  10526. bool verticalScrollBarVisible;
  10527. IntVector2 viewPosition;
  10528. bool visible;
  10529. /* readonly */
  10530. bool visibleEffective;
  10531. /* readonly */
  10532. int weakRefs;
  10533. int width;
  10534. };
  10535. class Serializable
  10536. {
  10537. public:
  10538. // Methods:
  10539. void ApplyAttributes();
  10540. Variant GetAttribute(const String&) const;
  10541. Variant GetAttributeDefault(const String&) const;
  10542. bool GetInterceptNetworkUpdate(const String&) const;
  10543. bool HasSubscribedToEvent(Object, const String&);
  10544. bool HasSubscribedToEvent(const String&);
  10545. bool Load(File);
  10546. bool Load(VectorBuffer&);
  10547. bool LoadJSON(const JSONValue&);
  10548. bool LoadXML(const XMLElement&);
  10549. void MarkNetworkUpdate() const;
  10550. void RemoveInstanceDefault();
  10551. void ResetToDefault();
  10552. bool Save(File) const;
  10553. bool Save(VectorBuffer&) const;
  10554. bool SaveJSON(JSONValue&) const;
  10555. bool SaveXML(XMLElement&) const;
  10556. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10557. bool SetAttribute(const String&, const Variant&);
  10558. void SetInterceptNetworkUpdate(const String&, bool);
  10559. // Properties:
  10560. /* readonly */
  10561. Array<Variant> attributeDefaults;
  10562. /* readonly */
  10563. Array<AttributeInfo> attributeInfos;
  10564. Array<Variant> attributes;
  10565. /* readonly */
  10566. String category;
  10567. /* readonly */
  10568. uint numAttributes;
  10569. /* readonly */
  10570. int refs;
  10571. bool temporary;
  10572. /* readonly */
  10573. StringHash type;
  10574. /* readonly */
  10575. String typeName;
  10576. /* readonly */
  10577. int weakRefs;
  10578. };
  10579. class Serializer
  10580. {
  10581. public:
  10582. // Methods:
  10583. uint Write(Array<uint8>);
  10584. bool WriteBool(bool);
  10585. bool WriteBoundingBox(const BoundingBox&);
  10586. bool WriteByte(int8);
  10587. bool WriteColor(const Color&);
  10588. bool WriteDouble(double);
  10589. bool WriteFileID(const String&);
  10590. bool WriteFloat(float);
  10591. bool WriteInt(int);
  10592. bool WriteInt64(int64);
  10593. bool WriteIntRect(const IntRect&);
  10594. bool WriteIntVector2(const IntVector2&);
  10595. bool WriteLine(const String&);
  10596. bool WriteMatrix3(const Matrix3&);
  10597. bool WriteMatrix3x4(const Matrix3x4&);
  10598. bool WriteMatrix4(const Matrix4&);
  10599. bool WriteNetID(uint);
  10600. bool WritePackedQuaternion(const Quaternion&);
  10601. bool WritePackedVector3(const Vector3&, float);
  10602. bool WriteQuaternion(const Quaternion&);
  10603. bool WriteShort(int16);
  10604. bool WriteString(const String&);
  10605. bool WriteStringHash(const StringHash&);
  10606. bool WriteUByte(uint8);
  10607. bool WriteUInt(uint);
  10608. bool WriteUInt64(uint64);
  10609. bool WriteUShort(uint16);
  10610. bool WriteVLE(uint);
  10611. bool WriteVariant(const Variant&);
  10612. bool WriteVariantMap(const VariantMap&);
  10613. bool WriteVector2(const Vector2&);
  10614. bool WriteVector3(const Vector3&);
  10615. bool WriteVector4(const Vector4&);
  10616. bool WriteVectorBuffer(const VectorBuffer&);
  10617. };
  10618. class Skeleton
  10619. {
  10620. public:
  10621. // Methods:
  10622. Bone GetBone(const String&) const;
  10623. uint GetBoneIndex(const String&) const;
  10624. Bone GetBoneParent(Bone) const;
  10625. void Reset();
  10626. // Properties:
  10627. /* readonly */
  10628. Array<Bone> bones;
  10629. /* readonly */
  10630. uint numBones;
  10631. /* readonly */
  10632. Bone rootBone;
  10633. };
  10634. class Skybox
  10635. {
  10636. public:
  10637. // Methods:
  10638. void ApplyAttributes();
  10639. void ApplyMaterialList(const String& = String ( ));
  10640. void DrawDebugGeometry(DebugRenderer, bool);
  10641. Variant GetAttribute(const String&) const;
  10642. ValueAnimation GetAttributeAnimation(const String&) const;
  10643. float GetAttributeAnimationSpeed(const String&) const;
  10644. float GetAttributeAnimationTime(const String&) const;
  10645. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10646. Variant GetAttributeDefault(const String&) const;
  10647. bool GetInterceptNetworkUpdate(const String&) const;
  10648. bool HasSubscribedToEvent(Object, const String&);
  10649. bool HasSubscribedToEvent(const String&);
  10650. bool IsInView(Camera) const;
  10651. bool Load(File);
  10652. bool Load(VectorBuffer&);
  10653. bool LoadJSON(const JSONValue&);
  10654. bool LoadXML(const XMLElement&);
  10655. void MarkNetworkUpdate() const;
  10656. void Remove();
  10657. void RemoveAttributeAnimation(const String&);
  10658. void RemoveInstanceDefault();
  10659. void RemoveObjectAnimation();
  10660. void ResetToDefault();
  10661. bool Save(File) const;
  10662. bool Save(VectorBuffer&) const;
  10663. bool SaveJSON(JSONValue&) const;
  10664. bool SaveXML(XMLElement&) const;
  10665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10666. void SetAnimationTime(float);
  10667. bool SetAttribute(const String&, const Variant&);
  10668. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10669. void SetAttributeAnimationSpeed(const String&, float);
  10670. void SetAttributeAnimationTime(const String&, float);
  10671. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10672. void SetInterceptNetworkUpdate(const String&, bool);
  10673. // Properties:
  10674. bool animationEnabled;
  10675. /* readonly */
  10676. Array<Variant> attributeDefaults;
  10677. /* readonly */
  10678. Array<AttributeInfo> attributeInfos;
  10679. Array<Variant> attributes;
  10680. /* readonly */
  10681. BoundingBox boundingBox;
  10682. bool castShadows;
  10683. /* readonly */
  10684. String category;
  10685. float drawDistance;
  10686. bool enabled;
  10687. /* readonly */
  10688. bool enabledEffective;
  10689. /* readonly */
  10690. uint id;
  10691. /* readonly */
  10692. bool inView;
  10693. uint lightMask;
  10694. float lodBias;
  10695. Material material;
  10696. Array<Material> materials;
  10697. uint maxLights;
  10698. Model model;
  10699. /* readonly */
  10700. Node node;
  10701. /* readonly */
  10702. uint numAttributes;
  10703. /* readonly */
  10704. uint numGeometries;
  10705. ObjectAnimation objectAnimation;
  10706. bool occludee;
  10707. bool occluder;
  10708. /* readonly */
  10709. int refs;
  10710. /* readonly */
  10711. bool replicated;
  10712. float shadowDistance;
  10713. uint shadowMask;
  10714. bool temporary;
  10715. /* readonly */
  10716. StringHash type;
  10717. /* readonly */
  10718. String typeName;
  10719. uint viewMask;
  10720. /* readonly */
  10721. int weakRefs;
  10722. /* readonly */
  10723. BoundingBox worldBoundingBox;
  10724. /* readonly */
  10725. Zone zone;
  10726. uint zoneMask;
  10727. };
  10728. class Slider
  10729. {
  10730. public:
  10731. Slider();
  10732. Slider(const String&in);
  10733. // Methods:
  10734. void AddChild(UIElement);
  10735. void AddTag(const String&);
  10736. void AddTags(const String&, int8 = ';');
  10737. void ApplyAttributes();
  10738. void BringToFront();
  10739. void ChangeValue(float);
  10740. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10741. void DisableLayoutUpdate();
  10742. IntVector2 ElementToScreen(const IntVector2&);
  10743. void EnableLayoutUpdate();
  10744. uint FindChild(UIElement) const;
  10745. Variant GetAttribute(const String&) const;
  10746. ValueAnimation GetAttributeAnimation(const String&) const;
  10747. float GetAttributeAnimationSpeed(const String&) const;
  10748. float GetAttributeAnimationTime(const String&) const;
  10749. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10750. Variant GetAttributeDefault(const String&) const;
  10751. UIElement GetChild(const String&, bool = false) const;
  10752. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10753. Array<UIElement> GetChildren(bool = false) const;
  10754. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10755. UIElement GetElementEventSender() const;
  10756. bool GetInterceptNetworkUpdate(const String&) const;
  10757. uint GetNumChildren(bool) const;
  10758. bool HasSubscribedToEvent(Object, const String&);
  10759. bool HasSubscribedToEvent(const String&);
  10760. bool HasTag(const String&) const;
  10761. void InsertChild(uint, UIElement);
  10762. bool IsChildOf(UIElement) const;
  10763. bool IsInside(IntVector2, bool);
  10764. bool IsInsideCombined(IntVector2, bool);
  10765. bool Load(File);
  10766. bool Load(VectorBuffer&);
  10767. UIElement LoadChildXML(XMLFile, XMLFile);
  10768. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10769. bool LoadJSON(const JSONValue&);
  10770. bool LoadXML(File);
  10771. bool LoadXML(VectorBuffer&);
  10772. bool LoadXML(XMLFile, XMLFile);
  10773. bool LoadXML(const XMLElement&, XMLFile);
  10774. bool LoadXML(const XMLElement&);
  10775. void MarkNetworkUpdate() const;
  10776. void Remove();
  10777. void RemoveAllChildren();
  10778. void RemoveAllTags();
  10779. void RemoveAttributeAnimation(const String&);
  10780. void RemoveChild(UIElement, uint = 0);
  10781. void RemoveChild(uint);
  10782. void RemoveInstanceDefault();
  10783. void RemoveObjectAnimation();
  10784. bool RemoveTag(const String&);
  10785. void ResetDeepEnabled();
  10786. void ResetToDefault();
  10787. bool Save(File) const;
  10788. bool Save(VectorBuffer&) const;
  10789. bool SaveJSON(JSONValue&) const;
  10790. bool SaveXML(File, const String& = "\t");
  10791. bool SaveXML(VectorBuffer&, const String& = "\t");
  10792. bool SaveXML(XMLElement&) const;
  10793. IntVector2 ScreenToElement(const IntVector2&);
  10794. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10795. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10796. void SetAnimationTime(float);
  10797. bool SetAttribute(const String&, const Variant&);
  10798. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10799. void SetAttributeAnimationSpeed(const String&, float);
  10800. void SetAttributeAnimationTime(const String&, float);
  10801. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10802. void SetDeepEnabled(bool);
  10803. void SetEnabledRecursive(bool);
  10804. void SetFixedHeight(int);
  10805. void SetFixedSize(int, int);
  10806. void SetFixedWidth(int);
  10807. void SetFullImageRect();
  10808. void SetHoverOffset(int, int);
  10809. void SetInterceptNetworkUpdate(const String&, bool);
  10810. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10811. void SetMaxAnchor(float, float);
  10812. void SetMaxSize(int, int);
  10813. void SetMinAnchor(float, float);
  10814. void SetMinSize(int, int);
  10815. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10816. void SetPivot(float, float);
  10817. void SetPosition(int, int);
  10818. void SetSize(int, int);
  10819. bool SetStyle(const String&, XMLFile = null);
  10820. bool SetStyle(const XMLElement&);
  10821. bool SetStyleAuto(XMLFile = null);
  10822. void UpdateLayout();
  10823. const Variant& GetVar(const StringHash&);
  10824. // Properties:
  10825. bool animationEnabled;
  10826. /* readonly */
  10827. Array<Variant> attributeDefaults;
  10828. /* readonly */
  10829. Array<AttributeInfo> attributeInfos;
  10830. Array<Variant> attributes;
  10831. BlendMode blendMode;
  10832. IntRect border;
  10833. bool bringToBack;
  10834. bool bringToFront;
  10835. /* readonly */
  10836. String category;
  10837. /* readonly */
  10838. IntVector2 childOffset;
  10839. /* readonly */
  10840. Array<UIElement> children;
  10841. IntRect clipBorder;
  10842. bool clipChildren;
  10843. /* writeonly */
  10844. Color color;
  10845. /* readonly */
  10846. bool colorGradient;
  10847. Array<Color> colors;
  10848. /* readonly */
  10849. IntRect combinedScreenRect;
  10850. XMLFile defaultStyle;
  10851. /* readonly */
  10852. float derivedOpacity;
  10853. /* readonly */
  10854. uint dragButtonCombo;
  10855. /* readonly */
  10856. int dragButtonCount;
  10857. uint dragDropMode;
  10858. bool editable;
  10859. bool elementEventSender;
  10860. bool enableAnchor;
  10861. bool enabled;
  10862. /* readonly */
  10863. bool enabledSelf;
  10864. /* readonly */
  10865. bool fixedHeight;
  10866. /* readonly */
  10867. bool fixedSize;
  10868. /* readonly */
  10869. bool fixedWidth;
  10870. bool focus;
  10871. FocusMode focusMode;
  10872. int height;
  10873. HorizontalAlignment horizontalAlignment;
  10874. IntVector2 hoverOffset;
  10875. /* readonly */
  10876. bool hovering;
  10877. IntRect imageBorder;
  10878. IntRect imageRect;
  10879. int indent;
  10880. int indentSpacing;
  10881. /* readonly */
  10882. int indentWidth;
  10883. bool internal;
  10884. /* readonly */
  10885. BorderImage knob;
  10886. IntRect layoutBorder;
  10887. Vector2 layoutFlexScale;
  10888. LayoutMode layoutMode;
  10889. int layoutSpacing;
  10890. Vector2 maxAnchor;
  10891. int maxHeight;
  10892. IntVector2 maxOffset;
  10893. IntVector2 maxSize;
  10894. int maxWidth;
  10895. Vector2 minAnchor;
  10896. int minHeight;
  10897. IntVector2 minOffset;
  10898. IntVector2 minSize;
  10899. int minWidth;
  10900. String name;
  10901. /* readonly */
  10902. uint numAllChildren;
  10903. /* readonly */
  10904. uint numAttributes;
  10905. /* readonly */
  10906. uint numChildren;
  10907. ObjectAnimation objectAnimation;
  10908. float opacity;
  10909. Orientation orientation;
  10910. UIElement parent;
  10911. Vector2 pivot;
  10912. IntVector2 position;
  10913. int priority;
  10914. float range;
  10915. /* readonly */
  10916. int refs;
  10917. float repeatRate;
  10918. /* readonly */
  10919. UIElement root;
  10920. /* readonly */
  10921. IntVector2 screenPosition;
  10922. bool selected;
  10923. IntVector2 size;
  10924. bool sortChildren;
  10925. String style;
  10926. /* readonly */
  10927. Array<String> tags;
  10928. bool temporary;
  10929. Texture texture;
  10930. bool tiled;
  10931. TraversalMode traversalMode;
  10932. /* readonly */
  10933. StringHash type;
  10934. /* readonly */
  10935. String typeName;
  10936. bool useDerivedOpacity;
  10937. float value;
  10938. /* readonly */
  10939. VariantMap vars;
  10940. VerticalAlignment verticalAlignment;
  10941. bool visible;
  10942. /* readonly */
  10943. bool visibleEffective;
  10944. /* readonly */
  10945. int weakRefs;
  10946. int width;
  10947. };
  10948. class SmoothedTransform
  10949. {
  10950. public:
  10951. // Methods:
  10952. void ApplyAttributes();
  10953. void DrawDebugGeometry(DebugRenderer, bool);
  10954. Variant GetAttribute(const String&) const;
  10955. ValueAnimation GetAttributeAnimation(const String&) const;
  10956. float GetAttributeAnimationSpeed(const String&) const;
  10957. float GetAttributeAnimationTime(const String&) const;
  10958. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10959. Variant GetAttributeDefault(const String&) const;
  10960. bool GetInterceptNetworkUpdate(const String&) const;
  10961. bool HasSubscribedToEvent(Object, const String&);
  10962. bool HasSubscribedToEvent(const String&);
  10963. bool Load(File);
  10964. bool Load(VectorBuffer&);
  10965. bool LoadJSON(const JSONValue&);
  10966. bool LoadXML(const XMLElement&);
  10967. void MarkNetworkUpdate() const;
  10968. void Remove();
  10969. void RemoveAttributeAnimation(const String&);
  10970. void RemoveInstanceDefault();
  10971. void RemoveObjectAnimation();
  10972. void ResetToDefault();
  10973. bool Save(File) const;
  10974. bool Save(VectorBuffer&) const;
  10975. bool SaveJSON(JSONValue&) const;
  10976. bool SaveXML(XMLElement&) const;
  10977. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10978. void SetAnimationTime(float);
  10979. bool SetAttribute(const String&, const Variant&);
  10980. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10981. void SetAttributeAnimationSpeed(const String&, float);
  10982. void SetAttributeAnimationTime(const String&, float);
  10983. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10984. void SetInterceptNetworkUpdate(const String&, bool);
  10985. void Update(float, float);
  10986. // Properties:
  10987. bool animationEnabled;
  10988. /* readonly */
  10989. Array<Variant> attributeDefaults;
  10990. /* readonly */
  10991. Array<AttributeInfo> attributeInfos;
  10992. Array<Variant> attributes;
  10993. /* readonly */
  10994. String category;
  10995. bool enabled;
  10996. /* readonly */
  10997. bool enabledEffective;
  10998. /* readonly */
  10999. uint id;
  11000. /* readonly */
  11001. bool inProgress;
  11002. /* readonly */
  11003. Node node;
  11004. /* readonly */
  11005. uint numAttributes;
  11006. ObjectAnimation objectAnimation;
  11007. /* readonly */
  11008. int refs;
  11009. /* readonly */
  11010. bool replicated;
  11011. Vector3 targetPosition;
  11012. Quaternion targetRotation;
  11013. Vector3 targetWorldPosition;
  11014. Quaternion targetWorldRotation;
  11015. bool temporary;
  11016. /* readonly */
  11017. StringHash type;
  11018. /* readonly */
  11019. String typeName;
  11020. /* readonly */
  11021. int weakRefs;
  11022. };
  11023. class Sound
  11024. {
  11025. public:
  11026. Sound();
  11027. Sound(const String&in);
  11028. // Methods:
  11029. void AddMetadata(const String&, const Variant&);
  11030. bool HasSubscribedToEvent(Object, const String&);
  11031. bool HasSubscribedToEvent(const String&);
  11032. bool Load(File);
  11033. bool Load(VectorBuffer&);
  11034. bool Load(const String&);
  11035. void RemoveAllMetadata();
  11036. void RemoveMetadata(const String&);
  11037. bool Save(File) const;
  11038. bool Save(VectorBuffer&) const;
  11039. bool Save(const String&) const;
  11040. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11041. // Properties:
  11042. /* readonly */
  11043. String category;
  11044. /* readonly */
  11045. bool compressed;
  11046. /* readonly */
  11047. float frequency;
  11048. /* readonly */
  11049. bool hasMetadata;
  11050. /* readonly */
  11051. float length;
  11052. bool looped;
  11053. /* readonly */
  11054. uint memoryUse;
  11055. Array<Variant> metadata;
  11056. String name;
  11057. /* readonly */
  11058. int refs;
  11059. /* readonly */
  11060. uint sampleSize;
  11061. /* readonly */
  11062. bool sixteenBit;
  11063. /* readonly */
  11064. bool stereo;
  11065. /* readonly */
  11066. StringHash type;
  11067. /* readonly */
  11068. String typeName;
  11069. /* readonly */
  11070. uint useTimer;
  11071. /* readonly */
  11072. int weakRefs;
  11073. };
  11074. class SoundListener
  11075. {
  11076. public:
  11077. // Methods:
  11078. void ApplyAttributes();
  11079. void DrawDebugGeometry(DebugRenderer, bool);
  11080. Variant GetAttribute(const String&) const;
  11081. ValueAnimation GetAttributeAnimation(const String&) const;
  11082. float GetAttributeAnimationSpeed(const String&) const;
  11083. float GetAttributeAnimationTime(const String&) const;
  11084. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11085. Variant GetAttributeDefault(const String&) const;
  11086. bool GetInterceptNetworkUpdate(const String&) const;
  11087. bool HasSubscribedToEvent(Object, const String&);
  11088. bool HasSubscribedToEvent(const String&);
  11089. bool Load(File);
  11090. bool Load(VectorBuffer&);
  11091. bool LoadJSON(const JSONValue&);
  11092. bool LoadXML(const XMLElement&);
  11093. void MarkNetworkUpdate() const;
  11094. void Remove();
  11095. void RemoveAttributeAnimation(const String&);
  11096. void RemoveInstanceDefault();
  11097. void RemoveObjectAnimation();
  11098. void ResetToDefault();
  11099. bool Save(File) const;
  11100. bool Save(VectorBuffer&) const;
  11101. bool SaveJSON(JSONValue&) const;
  11102. bool SaveXML(XMLElement&) const;
  11103. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11104. void SetAnimationTime(float);
  11105. bool SetAttribute(const String&, const Variant&);
  11106. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11107. void SetAttributeAnimationSpeed(const String&, float);
  11108. void SetAttributeAnimationTime(const String&, float);
  11109. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11110. void SetInterceptNetworkUpdate(const String&, bool);
  11111. // Properties:
  11112. bool animationEnabled;
  11113. /* readonly */
  11114. Array<Variant> attributeDefaults;
  11115. /* readonly */
  11116. Array<AttributeInfo> attributeInfos;
  11117. Array<Variant> attributes;
  11118. /* readonly */
  11119. String category;
  11120. bool enabled;
  11121. /* readonly */
  11122. bool enabledEffective;
  11123. /* readonly */
  11124. uint id;
  11125. /* readonly */
  11126. Node node;
  11127. /* readonly */
  11128. uint numAttributes;
  11129. ObjectAnimation objectAnimation;
  11130. /* readonly */
  11131. int refs;
  11132. /* readonly */
  11133. bool replicated;
  11134. bool temporary;
  11135. /* readonly */
  11136. StringHash type;
  11137. /* readonly */
  11138. String typeName;
  11139. /* readonly */
  11140. int weakRefs;
  11141. };
  11142. class SoundSource
  11143. {
  11144. public:
  11145. SoundSource();
  11146. // Methods:
  11147. void ApplyAttributes();
  11148. void DrawDebugGeometry(DebugRenderer, bool);
  11149. Variant GetAttribute(const String&) const;
  11150. ValueAnimation GetAttributeAnimation(const String&) const;
  11151. float GetAttributeAnimationSpeed(const String&) const;
  11152. float GetAttributeAnimationTime(const String&) const;
  11153. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11154. Variant GetAttributeDefault(const String&) const;
  11155. bool GetInterceptNetworkUpdate(const String&) const;
  11156. bool HasSubscribedToEvent(Object, const String&);
  11157. bool HasSubscribedToEvent(const String&);
  11158. bool Load(File);
  11159. bool Load(VectorBuffer&);
  11160. bool LoadJSON(const JSONValue&);
  11161. bool LoadXML(const XMLElement&);
  11162. void MarkNetworkUpdate() const;
  11163. void Play(Sound);
  11164. void Play(Sound, float);
  11165. void Play(Sound, float, float);
  11166. void Play(Sound, float, float, float);
  11167. void Remove();
  11168. void RemoveAttributeAnimation(const String&);
  11169. void RemoveInstanceDefault();
  11170. void RemoveObjectAnimation();
  11171. void ResetToDefault();
  11172. bool Save(File) const;
  11173. bool Save(VectorBuffer&) const;
  11174. bool SaveJSON(JSONValue&) const;
  11175. bool SaveXML(XMLElement&) const;
  11176. void Seek(float);
  11177. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11178. void SetAnimationTime(float);
  11179. bool SetAttribute(const String&, const Variant&);
  11180. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11181. void SetAttributeAnimationSpeed(const String&, float);
  11182. void SetAttributeAnimationTime(const String&, float);
  11183. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11184. void SetInterceptNetworkUpdate(const String&, bool);
  11185. void Stop();
  11186. // Properties:
  11187. bool animationEnabled;
  11188. /* readonly */
  11189. float attenuation;
  11190. /* readonly */
  11191. Array<Variant> attributeDefaults;
  11192. /* readonly */
  11193. Array<AttributeInfo> attributeInfos;
  11194. Array<Variant> attributes;
  11195. AutoRemoveMode autoRemoveMode;
  11196. /* readonly */
  11197. String category;
  11198. bool enabled;
  11199. /* readonly */
  11200. bool enabledEffective;
  11201. float frequency;
  11202. float gain;
  11203. /* readonly */
  11204. uint id;
  11205. /* readonly */
  11206. Node node;
  11207. /* readonly */
  11208. uint numAttributes;
  11209. ObjectAnimation objectAnimation;
  11210. float panning;
  11211. /* readonly */
  11212. bool playing;
  11213. /* readonly */
  11214. int refs;
  11215. /* readonly */
  11216. bool replicated;
  11217. /* readonly */
  11218. Sound sound;
  11219. String soundType;
  11220. bool temporary;
  11221. /* readonly */
  11222. float timePosition;
  11223. /* readonly */
  11224. StringHash type;
  11225. /* readonly */
  11226. String typeName;
  11227. /* readonly */
  11228. int weakRefs;
  11229. };
  11230. class SoundSource3D
  11231. {
  11232. public:
  11233. // Methods:
  11234. void ApplyAttributes();
  11235. void DrawDebugGeometry(DebugRenderer, bool);
  11236. Variant GetAttribute(const String&) const;
  11237. ValueAnimation GetAttributeAnimation(const String&) const;
  11238. float GetAttributeAnimationSpeed(const String&) const;
  11239. float GetAttributeAnimationTime(const String&) const;
  11240. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11241. Variant GetAttributeDefault(const String&) const;
  11242. bool GetInterceptNetworkUpdate(const String&) const;
  11243. bool HasSubscribedToEvent(Object, const String&);
  11244. bool HasSubscribedToEvent(const String&);
  11245. bool Load(File);
  11246. bool Load(VectorBuffer&);
  11247. bool LoadJSON(const JSONValue&);
  11248. bool LoadXML(const XMLElement&);
  11249. void MarkNetworkUpdate() const;
  11250. void Play(Sound);
  11251. void Play(Sound, float);
  11252. void Play(Sound, float, float);
  11253. void Play(Sound, float, float, float);
  11254. void Remove();
  11255. void RemoveAttributeAnimation(const String&);
  11256. void RemoveInstanceDefault();
  11257. void RemoveObjectAnimation();
  11258. void ResetToDefault();
  11259. bool Save(File) const;
  11260. bool Save(VectorBuffer&) const;
  11261. bool SaveJSON(JSONValue&) const;
  11262. bool SaveXML(XMLElement&) const;
  11263. void Seek(float);
  11264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11265. void SetAngleAttenuation(float, float);
  11266. void SetAnimationTime(float);
  11267. bool SetAttribute(const String&, const Variant&);
  11268. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11269. void SetAttributeAnimationSpeed(const String&, float);
  11270. void SetAttributeAnimationTime(const String&, float);
  11271. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11272. void SetDistanceAttenuation(float, float, float);
  11273. void SetInterceptNetworkUpdate(const String&, bool);
  11274. void Stop();
  11275. // Properties:
  11276. bool animationEnabled;
  11277. /* readonly */
  11278. float attenuation;
  11279. /* readonly */
  11280. Array<Variant> attributeDefaults;
  11281. /* readonly */
  11282. Array<AttributeInfo> attributeInfos;
  11283. Array<Variant> attributes;
  11284. AutoRemoveMode autoRemoveMode;
  11285. /* readonly */
  11286. String category;
  11287. bool enabled;
  11288. /* readonly */
  11289. bool enabledEffective;
  11290. float farDistance;
  11291. float frequency;
  11292. float gain;
  11293. /* readonly */
  11294. uint id;
  11295. float innerAngle;
  11296. float nearDistance;
  11297. /* readonly */
  11298. Node node;
  11299. /* readonly */
  11300. uint numAttributes;
  11301. ObjectAnimation objectAnimation;
  11302. float outerAngle;
  11303. float panning;
  11304. /* readonly */
  11305. bool playing;
  11306. /* readonly */
  11307. int refs;
  11308. /* readonly */
  11309. bool replicated;
  11310. float rolloffFactor;
  11311. /* readonly */
  11312. Sound sound;
  11313. String soundType;
  11314. bool temporary;
  11315. /* readonly */
  11316. float timePosition;
  11317. /* readonly */
  11318. StringHash type;
  11319. /* readonly */
  11320. String typeName;
  11321. /* readonly */
  11322. int weakRefs;
  11323. };
  11324. class Sphere
  11325. {
  11326. public:
  11327. Sphere();
  11328. Sphere(const Sphere&in);
  11329. Sphere(const Vector3&in, float);
  11330. Sphere(const BoundingBox&in);
  11331. Sphere(const Frustum&in);
  11332. Sphere(const Polyhedron&in);
  11333. // Methods:
  11334. void Clear();
  11335. void Define(const BoundingBox&);
  11336. void Define(const Frustum&);
  11337. void Define(const Polyhedron&);
  11338. void Define(const Sphere&);
  11339. void Define(const Vector3&, float);
  11340. bool Defined() const;
  11341. float Distance(const Vector3&) const;
  11342. Vector3 GetLocalPoint(float, float) const;
  11343. Vector3 GetPoint(float, float) const;
  11344. Intersection IsInside(const BoundingBox&) const;
  11345. Intersection IsInside(const Sphere&) const;
  11346. Intersection IsInside(const Vector3&) const;
  11347. Intersection IsInsideFast(const BoundingBox&) const;
  11348. Intersection IsInsideFast(const Sphere&) const;
  11349. void Merge(const BoundingBox&);
  11350. void Merge(const Frustum&);
  11351. void Merge(const Sphere&);
  11352. void Merge(const Vector3&);
  11353. // Properties:
  11354. Vector3 center;
  11355. float radius;
  11356. };
  11357. class Spline
  11358. {
  11359. public:
  11360. Spline();
  11361. Spline(InterpolationMode);
  11362. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  11363. Spline(const Spline&in);
  11364. // Methods:
  11365. void AddKnot(const Variant&);
  11366. void AddKnot(const Variant&, uint);
  11367. void Clear();
  11368. Variant GetPoint(float);
  11369. void RemoveKnot();
  11370. void RemoveKnot(uint);
  11371. // Properties:
  11372. InterpolationMode interpolationMode;
  11373. Array<Variant> knot;
  11374. Array<Variant> knots;
  11375. };
  11376. class SplinePath
  11377. {
  11378. public:
  11379. // Methods:
  11380. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  11381. void ApplyAttributes();
  11382. void ClearControlPoints();
  11383. void DrawDebugGeometry(DebugRenderer, bool);
  11384. Variant GetAttribute(const String&) const;
  11385. ValueAnimation GetAttributeAnimation(const String&) const;
  11386. float GetAttributeAnimationSpeed(const String&) const;
  11387. float GetAttributeAnimationTime(const String&) const;
  11388. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11389. Variant GetAttributeDefault(const String&) const;
  11390. bool GetInterceptNetworkUpdate(const String&) const;
  11391. Vector3 GetPoint(float) const;
  11392. Vector3 GetPosition() const;
  11393. bool HasSubscribedToEvent(Object, const String&);
  11394. bool HasSubscribedToEvent(const String&);
  11395. bool Load(File);
  11396. bool Load(VectorBuffer&);
  11397. bool LoadJSON(const JSONValue&);
  11398. bool LoadXML(const XMLElement&);
  11399. void MarkNetworkUpdate() const;
  11400. void Move(float);
  11401. void Remove();
  11402. void RemoveAttributeAnimation(const String&);
  11403. void RemoveControlPoint(Node);
  11404. void RemoveInstanceDefault();
  11405. void RemoveObjectAnimation();
  11406. void Reset();
  11407. void ResetToDefault();
  11408. bool Save(File) const;
  11409. bool Save(VectorBuffer&) const;
  11410. bool SaveJSON(JSONValue&) const;
  11411. bool SaveXML(XMLElement&) const;
  11412. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11413. void SetAnimationTime(float);
  11414. bool SetAttribute(const String&, const Variant&);
  11415. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11416. void SetAttributeAnimationSpeed(const String&, float);
  11417. void SetAttributeAnimationTime(const String&, float);
  11418. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11419. void SetInterceptNetworkUpdate(const String&, bool);
  11420. void SetPosition(float);
  11421. // Properties:
  11422. bool animationEnabled;
  11423. /* readonly */
  11424. Array<Variant> attributeDefaults;
  11425. /* readonly */
  11426. Array<AttributeInfo> attributeInfos;
  11427. Array<Variant> attributes;
  11428. /* readonly */
  11429. String category;
  11430. Node controlledNode;
  11431. bool enabled;
  11432. /* readonly */
  11433. bool enabledEffective;
  11434. /* readonly */
  11435. uint id;
  11436. InterpolationMode interpolationMode;
  11437. /* readonly */
  11438. bool isFinished;
  11439. /* readonly */
  11440. float length;
  11441. /* readonly */
  11442. Node node;
  11443. /* readonly */
  11444. uint numAttributes;
  11445. ObjectAnimation objectAnimation;
  11446. /* readonly */
  11447. int refs;
  11448. /* readonly */
  11449. bool replicated;
  11450. float speed;
  11451. bool temporary;
  11452. /* readonly */
  11453. StringHash type;
  11454. /* readonly */
  11455. String typeName;
  11456. /* readonly */
  11457. int weakRefs;
  11458. };
  11459. class Sprite
  11460. {
  11461. public:
  11462. Sprite();
  11463. Sprite(const String&in);
  11464. // Methods:
  11465. void AddChild(UIElement);
  11466. void AddTag(const String&);
  11467. void AddTags(const String&, int8 = ';');
  11468. void ApplyAttributes();
  11469. void BringToFront();
  11470. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11471. void DisableLayoutUpdate();
  11472. IntVector2 ElementToScreen(const IntVector2&);
  11473. void EnableLayoutUpdate();
  11474. uint FindChild(UIElement) const;
  11475. Variant GetAttribute(const String&) const;
  11476. ValueAnimation GetAttributeAnimation(const String&) const;
  11477. float GetAttributeAnimationSpeed(const String&) const;
  11478. float GetAttributeAnimationTime(const String&) const;
  11479. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11480. Variant GetAttributeDefault(const String&) const;
  11481. UIElement GetChild(const String&, bool = false) const;
  11482. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11483. Array<UIElement> GetChildren(bool = false) const;
  11484. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11485. UIElement GetElementEventSender() const;
  11486. bool GetInterceptNetworkUpdate(const String&) const;
  11487. uint GetNumChildren(bool) const;
  11488. bool HasSubscribedToEvent(Object, const String&);
  11489. bool HasSubscribedToEvent(const String&);
  11490. bool HasTag(const String&) const;
  11491. void InsertChild(uint, UIElement);
  11492. bool IsChildOf(UIElement) const;
  11493. bool IsInside(IntVector2, bool);
  11494. bool IsInsideCombined(IntVector2, bool);
  11495. bool Load(File);
  11496. bool Load(VectorBuffer&);
  11497. UIElement LoadChildXML(XMLFile, XMLFile);
  11498. UIElement LoadChildXML(const XMLElement&, XMLFile);
  11499. bool LoadJSON(const JSONValue&);
  11500. bool LoadXML(File);
  11501. bool LoadXML(VectorBuffer&);
  11502. bool LoadXML(XMLFile, XMLFile);
  11503. bool LoadXML(const XMLElement&, XMLFile);
  11504. bool LoadXML(const XMLElement&);
  11505. void MarkNetworkUpdate() const;
  11506. void Remove();
  11507. void RemoveAllChildren();
  11508. void RemoveAllTags();
  11509. void RemoveAttributeAnimation(const String&);
  11510. void RemoveChild(UIElement, uint = 0);
  11511. void RemoveChild(uint);
  11512. void RemoveInstanceDefault();
  11513. void RemoveObjectAnimation();
  11514. bool RemoveTag(const String&);
  11515. void ResetDeepEnabled();
  11516. void ResetToDefault();
  11517. bool Save(File) const;
  11518. bool Save(VectorBuffer&) const;
  11519. bool SaveJSON(JSONValue&) const;
  11520. bool SaveXML(File, const String& = "\t");
  11521. bool SaveXML(VectorBuffer&, const String& = "\t");
  11522. bool SaveXML(XMLElement&) const;
  11523. IntVector2 ScreenToElement(const IntVector2&);
  11524. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11525. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11526. void SetAnimationTime(float);
  11527. bool SetAttribute(const String&, const Variant&);
  11528. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11529. void SetAttributeAnimationSpeed(const String&, float);
  11530. void SetAttributeAnimationTime(const String&, float);
  11531. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11532. void SetDeepEnabled(bool);
  11533. void SetEnabledRecursive(bool);
  11534. void SetFixedHeight(int);
  11535. void SetFixedSize(int, int);
  11536. void SetFixedWidth(int);
  11537. void SetFullImageRect();
  11538. void SetHotSpot(int, int);
  11539. void SetInterceptNetworkUpdate(const String&, bool);
  11540. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11541. void SetMaxAnchor(float, float);
  11542. void SetMaxSize(int, int);
  11543. void SetMinAnchor(float, float);
  11544. void SetMinSize(int, int);
  11545. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11546. void SetPivot(float, float);
  11547. void SetPosition(float, float);
  11548. void SetScale(float);
  11549. void SetScale(float, float);
  11550. void SetSize(int, int);
  11551. bool SetStyle(const String&, XMLFile = null);
  11552. bool SetStyle(const XMLElement&);
  11553. bool SetStyleAuto(XMLFile = null);
  11554. void UpdateLayout();
  11555. const Variant& GetVar(const StringHash&);
  11556. // Properties:
  11557. bool animationEnabled;
  11558. /* readonly */
  11559. Array<Variant> attributeDefaults;
  11560. /* readonly */
  11561. Array<AttributeInfo> attributeInfos;
  11562. Array<Variant> attributes;
  11563. BlendMode blendMode;
  11564. bool bringToBack;
  11565. bool bringToFront;
  11566. /* readonly */
  11567. String category;
  11568. /* readonly */
  11569. IntVector2 childOffset;
  11570. /* readonly */
  11571. Array<UIElement> children;
  11572. IntRect clipBorder;
  11573. bool clipChildren;
  11574. /* writeonly */
  11575. Color color;
  11576. /* readonly */
  11577. bool colorGradient;
  11578. Array<Color> colors;
  11579. /* readonly */
  11580. IntRect combinedScreenRect;
  11581. XMLFile defaultStyle;
  11582. /* readonly */
  11583. float derivedOpacity;
  11584. /* readonly */
  11585. uint dragButtonCombo;
  11586. /* readonly */
  11587. int dragButtonCount;
  11588. uint dragDropMode;
  11589. bool editable;
  11590. bool elementEventSender;
  11591. bool enableAnchor;
  11592. bool enabled;
  11593. /* readonly */
  11594. bool enabledSelf;
  11595. /* readonly */
  11596. bool fixedHeight;
  11597. /* readonly */
  11598. bool fixedSize;
  11599. /* readonly */
  11600. bool fixedWidth;
  11601. bool focus;
  11602. FocusMode focusMode;
  11603. int height;
  11604. HorizontalAlignment horizontalAlignment;
  11605. IntVector2 hotSpot;
  11606. /* readonly */
  11607. bool hovering;
  11608. IntRect imageRect;
  11609. int indent;
  11610. int indentSpacing;
  11611. /* readonly */
  11612. int indentWidth;
  11613. bool internal;
  11614. IntRect layoutBorder;
  11615. Vector2 layoutFlexScale;
  11616. LayoutMode layoutMode;
  11617. int layoutSpacing;
  11618. Vector2 maxAnchor;
  11619. int maxHeight;
  11620. IntVector2 maxOffset;
  11621. IntVector2 maxSize;
  11622. int maxWidth;
  11623. Vector2 minAnchor;
  11624. int minHeight;
  11625. IntVector2 minOffset;
  11626. IntVector2 minSize;
  11627. int minWidth;
  11628. String name;
  11629. /* readonly */
  11630. uint numAllChildren;
  11631. /* readonly */
  11632. uint numAttributes;
  11633. /* readonly */
  11634. uint numChildren;
  11635. ObjectAnimation objectAnimation;
  11636. float opacity;
  11637. UIElement parent;
  11638. Vector2 pivot;
  11639. Vector2 position;
  11640. int priority;
  11641. /* readonly */
  11642. int refs;
  11643. /* readonly */
  11644. UIElement root;
  11645. float rotation;
  11646. Vector2 scale;
  11647. /* readonly */
  11648. IntVector2 screenPosition;
  11649. bool selected;
  11650. IntVector2 size;
  11651. bool sortChildren;
  11652. String style;
  11653. /* readonly */
  11654. Array<String> tags;
  11655. bool temporary;
  11656. Texture texture;
  11657. TraversalMode traversalMode;
  11658. /* readonly */
  11659. StringHash type;
  11660. /* readonly */
  11661. String typeName;
  11662. bool useDerivedOpacity;
  11663. /* readonly */
  11664. VariantMap vars;
  11665. VerticalAlignment verticalAlignment;
  11666. bool visible;
  11667. /* readonly */
  11668. bool visibleEffective;
  11669. /* readonly */
  11670. int weakRefs;
  11671. int width;
  11672. };
  11673. class Sprite2D
  11674. {
  11675. public:
  11676. Sprite2D();
  11677. Sprite2D(const String&in);
  11678. // Methods:
  11679. bool HasSubscribedToEvent(Object, const String&);
  11680. bool HasSubscribedToEvent(const String&);
  11681. bool Load(File);
  11682. bool Load(VectorBuffer&);
  11683. bool Load(const String&);
  11684. bool Save(File) const;
  11685. bool Save(VectorBuffer&) const;
  11686. bool Save(const String&) const;
  11687. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11688. // Properties:
  11689. /* readonly */
  11690. String category;
  11691. Vector2 hotSpot;
  11692. /* readonly */
  11693. uint memoryUse;
  11694. String name;
  11695. IntVector2 offset;
  11696. IntRect rectangle;
  11697. /* readonly */
  11698. int refs;
  11699. Texture2D texture;
  11700. float textureEdgeOffset;
  11701. /* readonly */
  11702. StringHash type;
  11703. /* readonly */
  11704. String typeName;
  11705. /* readonly */
  11706. uint useTimer;
  11707. /* readonly */
  11708. int weakRefs;
  11709. };
  11710. class SpriteSheet2D
  11711. {
  11712. public:
  11713. SpriteSheet2D();
  11714. SpriteSheet2D(const String&in);
  11715. // Methods:
  11716. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  11717. Sprite2D GetSprite(const String&);
  11718. bool HasSubscribedToEvent(Object, const String&);
  11719. bool HasSubscribedToEvent(const String&);
  11720. bool Load(File);
  11721. bool Load(VectorBuffer&);
  11722. bool Load(const String&);
  11723. bool Save(File) const;
  11724. bool Save(VectorBuffer&) const;
  11725. bool Save(const String&) const;
  11726. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11727. // Properties:
  11728. /* readonly */
  11729. String category;
  11730. /* readonly */
  11731. uint memoryUse;
  11732. String name;
  11733. /* readonly */
  11734. int refs;
  11735. Texture2D texture;
  11736. /* readonly */
  11737. StringHash type;
  11738. /* readonly */
  11739. String typeName;
  11740. /* readonly */
  11741. uint useTimer;
  11742. /* readonly */
  11743. int weakRefs;
  11744. };
  11745. class StaticModel
  11746. {
  11747. public:
  11748. // Methods:
  11749. void ApplyAttributes();
  11750. void ApplyMaterialList(const String& = String ( ));
  11751. void DrawDebugGeometry(DebugRenderer, bool);
  11752. Variant GetAttribute(const String&) const;
  11753. ValueAnimation GetAttributeAnimation(const String&) const;
  11754. float GetAttributeAnimationSpeed(const String&) const;
  11755. float GetAttributeAnimationTime(const String&) const;
  11756. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11757. Variant GetAttributeDefault(const String&) const;
  11758. bool GetInterceptNetworkUpdate(const String&) const;
  11759. bool HasSubscribedToEvent(Object, const String&);
  11760. bool HasSubscribedToEvent(const String&);
  11761. bool IsInView(Camera) const;
  11762. bool IsInside(const Vector3&) const;
  11763. bool IsInsideLocal(const Vector3&) const;
  11764. bool Load(File);
  11765. bool Load(VectorBuffer&);
  11766. bool LoadJSON(const JSONValue&);
  11767. bool LoadXML(const XMLElement&);
  11768. void MarkNetworkUpdate() const;
  11769. void Remove();
  11770. void RemoveAttributeAnimation(const String&);
  11771. void RemoveInstanceDefault();
  11772. void RemoveObjectAnimation();
  11773. void ResetToDefault();
  11774. bool Save(File) const;
  11775. bool Save(VectorBuffer&) const;
  11776. bool SaveJSON(JSONValue&) const;
  11777. bool SaveXML(XMLElement&) const;
  11778. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11779. void SetAnimationTime(float);
  11780. bool SetAttribute(const String&, const Variant&);
  11781. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11782. void SetAttributeAnimationSpeed(const String&, float);
  11783. void SetAttributeAnimationTime(const String&, float);
  11784. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11785. void SetInterceptNetworkUpdate(const String&, bool);
  11786. // Properties:
  11787. bool animationEnabled;
  11788. /* readonly */
  11789. Array<Variant> attributeDefaults;
  11790. /* readonly */
  11791. Array<AttributeInfo> attributeInfos;
  11792. Array<Variant> attributes;
  11793. /* readonly */
  11794. BoundingBox boundingBox;
  11795. bool castShadows;
  11796. /* readonly */
  11797. String category;
  11798. float drawDistance;
  11799. bool enabled;
  11800. /* readonly */
  11801. bool enabledEffective;
  11802. /* readonly */
  11803. uint id;
  11804. /* readonly */
  11805. bool inView;
  11806. uint lightMask;
  11807. float lodBias;
  11808. Material material;
  11809. Array<Material> materials;
  11810. uint maxLights;
  11811. Model model;
  11812. /* readonly */
  11813. Node node;
  11814. /* readonly */
  11815. uint numAttributes;
  11816. /* readonly */
  11817. uint numGeometries;
  11818. ObjectAnimation objectAnimation;
  11819. bool occludee;
  11820. bool occluder;
  11821. uint occlusionLodLevel;
  11822. /* readonly */
  11823. int refs;
  11824. /* readonly */
  11825. bool replicated;
  11826. float shadowDistance;
  11827. uint shadowMask;
  11828. bool temporary;
  11829. /* readonly */
  11830. StringHash type;
  11831. /* readonly */
  11832. String typeName;
  11833. uint viewMask;
  11834. /* readonly */
  11835. int weakRefs;
  11836. /* readonly */
  11837. BoundingBox worldBoundingBox;
  11838. uint zoneMask;
  11839. };
  11840. class StaticModelGroup
  11841. {
  11842. public:
  11843. // Methods:
  11844. void AddInstanceNode(Node);
  11845. void ApplyAttributes();
  11846. void ApplyMaterialList(const String& = String ( ));
  11847. void DrawDebugGeometry(DebugRenderer, bool);
  11848. Variant GetAttribute(const String&) const;
  11849. ValueAnimation GetAttributeAnimation(const String&) const;
  11850. float GetAttributeAnimationSpeed(const String&) const;
  11851. float GetAttributeAnimationTime(const String&) const;
  11852. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11853. Variant GetAttributeDefault(const String&) const;
  11854. bool GetInterceptNetworkUpdate(const String&) const;
  11855. bool HasSubscribedToEvent(Object, const String&);
  11856. bool HasSubscribedToEvent(const String&);
  11857. bool IsInView(Camera) const;
  11858. bool Load(File);
  11859. bool Load(VectorBuffer&);
  11860. bool LoadJSON(const JSONValue&);
  11861. bool LoadXML(const XMLElement&);
  11862. void MarkNetworkUpdate() const;
  11863. void Remove();
  11864. void RemoveAllInstanceNodes();
  11865. void RemoveAttributeAnimation(const String&);
  11866. void RemoveInstanceDefault();
  11867. void RemoveInstanceNode(Node);
  11868. void RemoveObjectAnimation();
  11869. void ResetToDefault();
  11870. bool Save(File) const;
  11871. bool Save(VectorBuffer&) const;
  11872. bool SaveJSON(JSONValue&) const;
  11873. bool SaveXML(XMLElement&) const;
  11874. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11875. void SetAnimationTime(float);
  11876. bool SetAttribute(const String&, const Variant&);
  11877. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11878. void SetAttributeAnimationSpeed(const String&, float);
  11879. void SetAttributeAnimationTime(const String&, float);
  11880. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11881. void SetInterceptNetworkUpdate(const String&, bool);
  11882. // Properties:
  11883. bool animationEnabled;
  11884. /* readonly */
  11885. Array<Variant> attributeDefaults;
  11886. /* readonly */
  11887. Array<AttributeInfo> attributeInfos;
  11888. Array<Variant> attributes;
  11889. /* readonly */
  11890. BoundingBox boundingBox;
  11891. bool castShadows;
  11892. /* readonly */
  11893. String category;
  11894. float drawDistance;
  11895. bool enabled;
  11896. /* readonly */
  11897. bool enabledEffective;
  11898. /* readonly */
  11899. uint id;
  11900. /* readonly */
  11901. bool inView;
  11902. /* readonly */
  11903. Array<Node> instanceNodes;
  11904. uint lightMask;
  11905. float lodBias;
  11906. Material material;
  11907. Array<Material> materials;
  11908. uint maxLights;
  11909. Model model;
  11910. /* readonly */
  11911. Node node;
  11912. /* readonly */
  11913. uint numAttributes;
  11914. /* readonly */
  11915. uint numGeometries;
  11916. /* readonly */
  11917. uint numInstanceNodes;
  11918. ObjectAnimation objectAnimation;
  11919. bool occludee;
  11920. bool occluder;
  11921. uint occlusionLodLevel;
  11922. /* readonly */
  11923. int refs;
  11924. /* readonly */
  11925. bool replicated;
  11926. float shadowDistance;
  11927. uint shadowMask;
  11928. bool temporary;
  11929. /* readonly */
  11930. StringHash type;
  11931. /* readonly */
  11932. String typeName;
  11933. uint viewMask;
  11934. /* readonly */
  11935. int weakRefs;
  11936. /* readonly */
  11937. BoundingBox worldBoundingBox;
  11938. /* readonly */
  11939. Zone zone;
  11940. uint zoneMask;
  11941. };
  11942. class StaticSprite2D
  11943. {
  11944. public:
  11945. // Methods:
  11946. void ApplyAttributes();
  11947. void DrawDebugGeometry(DebugRenderer, bool);
  11948. Variant GetAttribute(const String&) const;
  11949. ValueAnimation GetAttributeAnimation(const String&) const;
  11950. float GetAttributeAnimationSpeed(const String&) const;
  11951. float GetAttributeAnimationTime(const String&) const;
  11952. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11953. Variant GetAttributeDefault(const String&) const;
  11954. bool GetInterceptNetworkUpdate(const String&) const;
  11955. bool HasSubscribedToEvent(Object, const String&);
  11956. bool HasSubscribedToEvent(const String&);
  11957. bool IsInView(Camera) const;
  11958. bool Load(File);
  11959. bool Load(VectorBuffer&);
  11960. bool LoadJSON(const JSONValue&);
  11961. bool LoadXML(const XMLElement&);
  11962. void MarkNetworkUpdate() const;
  11963. void Remove();
  11964. void RemoveAttributeAnimation(const String&);
  11965. void RemoveInstanceDefault();
  11966. void RemoveObjectAnimation();
  11967. void ResetToDefault();
  11968. bool Save(File) const;
  11969. bool Save(VectorBuffer&) const;
  11970. bool SaveJSON(JSONValue&) const;
  11971. bool SaveXML(XMLElement&) const;
  11972. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11973. void SetAnimationTime(float);
  11974. bool SetAttribute(const String&, const Variant&);
  11975. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11976. void SetAttributeAnimationSpeed(const String&, float);
  11977. void SetAttributeAnimationTime(const String&, float);
  11978. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11979. void SetFlip(bool, bool, bool = false);
  11980. void SetInterceptNetworkUpdate(const String&, bool);
  11981. // Properties:
  11982. float alpha;
  11983. bool animationEnabled;
  11984. /* readonly */
  11985. Array<Variant> attributeDefaults;
  11986. /* readonly */
  11987. Array<AttributeInfo> attributeInfos;
  11988. Array<Variant> attributes;
  11989. BlendMode blendMode;
  11990. /* readonly */
  11991. BoundingBox boundingBox;
  11992. bool castShadows;
  11993. /* readonly */
  11994. String category;
  11995. Color color;
  11996. Material customMaterial;
  11997. float drawDistance;
  11998. Rect drawRect;
  11999. bool enabled;
  12000. /* readonly */
  12001. bool enabledEffective;
  12002. bool flipX;
  12003. bool flipY;
  12004. Vector2 hotSpot;
  12005. /* readonly */
  12006. uint id;
  12007. /* readonly */
  12008. bool inView;
  12009. int layer;
  12010. uint lightMask;
  12011. float lodBias;
  12012. uint maxLights;
  12013. /* readonly */
  12014. Node node;
  12015. /* readonly */
  12016. uint numAttributes;
  12017. ObjectAnimation objectAnimation;
  12018. bool occludee;
  12019. bool occluder;
  12020. int orderInLayer;
  12021. /* readonly */
  12022. int refs;
  12023. /* readonly */
  12024. bool replicated;
  12025. float shadowDistance;
  12026. uint shadowMask;
  12027. Sprite2D sprite;
  12028. bool swapXY;
  12029. bool temporary;
  12030. Rect textureRect;
  12031. /* readonly */
  12032. StringHash type;
  12033. /* readonly */
  12034. String typeName;
  12035. bool useDrawRect;
  12036. bool useHotSpot;
  12037. bool useTextureRect;
  12038. uint viewMask;
  12039. /* readonly */
  12040. int weakRefs;
  12041. /* readonly */
  12042. BoundingBox worldBoundingBox;
  12043. uint zoneMask;
  12044. };
  12045. class StretchableSprite2D
  12046. {
  12047. public:
  12048. // Methods:
  12049. void ApplyAttributes();
  12050. void DrawDebugGeometry(DebugRenderer, bool);
  12051. Variant GetAttribute(const String&) const;
  12052. ValueAnimation GetAttributeAnimation(const String&) const;
  12053. float GetAttributeAnimationSpeed(const String&) const;
  12054. float GetAttributeAnimationTime(const String&) const;
  12055. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12056. Variant GetAttributeDefault(const String&) const;
  12057. bool GetInterceptNetworkUpdate(const String&) const;
  12058. bool HasSubscribedToEvent(Object, const String&);
  12059. bool HasSubscribedToEvent(const String&);
  12060. bool IsInView(Camera) const;
  12061. bool Load(File);
  12062. bool Load(VectorBuffer&);
  12063. bool LoadJSON(const JSONValue&);
  12064. bool LoadXML(const XMLElement&);
  12065. void MarkNetworkUpdate() const;
  12066. void Remove();
  12067. void RemoveAttributeAnimation(const String&);
  12068. void RemoveInstanceDefault();
  12069. void RemoveObjectAnimation();
  12070. void ResetToDefault();
  12071. bool Save(File) const;
  12072. bool Save(VectorBuffer&) const;
  12073. bool SaveJSON(JSONValue&) const;
  12074. bool SaveXML(XMLElement&) const;
  12075. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12076. void SetAnimationTime(float);
  12077. bool SetAttribute(const String&, const Variant&);
  12078. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12079. void SetAttributeAnimationSpeed(const String&, float);
  12080. void SetAttributeAnimationTime(const String&, float);
  12081. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12082. void SetFlip(bool, bool, bool = false);
  12083. void SetInterceptNetworkUpdate(const String&, bool);
  12084. // Properties:
  12085. float alpha;
  12086. bool animationEnabled;
  12087. /* readonly */
  12088. Array<Variant> attributeDefaults;
  12089. /* readonly */
  12090. Array<AttributeInfo> attributeInfos;
  12091. Array<Variant> attributes;
  12092. BlendMode blendMode;
  12093. IntRect border;
  12094. /* readonly */
  12095. BoundingBox boundingBox;
  12096. bool castShadows;
  12097. /* readonly */
  12098. String category;
  12099. Color color;
  12100. Material customMaterial;
  12101. float drawDistance;
  12102. Rect drawRect;
  12103. bool enabled;
  12104. /* readonly */
  12105. bool enabledEffective;
  12106. bool flipX;
  12107. bool flipY;
  12108. Vector2 hotSpot;
  12109. /* readonly */
  12110. uint id;
  12111. /* readonly */
  12112. bool inView;
  12113. int layer;
  12114. uint lightMask;
  12115. float lodBias;
  12116. uint maxLights;
  12117. /* readonly */
  12118. Node node;
  12119. /* readonly */
  12120. uint numAttributes;
  12121. ObjectAnimation objectAnimation;
  12122. bool occludee;
  12123. bool occluder;
  12124. int orderInLayer;
  12125. /* readonly */
  12126. int refs;
  12127. /* readonly */
  12128. bool replicated;
  12129. float shadowDistance;
  12130. uint shadowMask;
  12131. Sprite2D sprite;
  12132. bool swapXY;
  12133. bool temporary;
  12134. Rect textureRect;
  12135. /* readonly */
  12136. StringHash type;
  12137. /* readonly */
  12138. String typeName;
  12139. bool useDrawRect;
  12140. bool useHotSpot;
  12141. bool useTextureRect;
  12142. uint viewMask;
  12143. /* readonly */
  12144. int weakRefs;
  12145. /* readonly */
  12146. BoundingBox worldBoundingBox;
  12147. uint zoneMask;
  12148. };
  12149. class String
  12150. {
  12151. public:
  12152. ~String();
  12153. String();
  12154. String(const String&in);
  12155. String(int);
  12156. String(uint);
  12157. String(float);
  12158. String(double);
  12159. String(bool);
  12160. String(const char*);
  12161. // Methods:
  12162. void AppendUTF8(uint);
  12163. uint AtUTF8(uint) const;
  12164. uint ByteOffsetUTF8(uint) const;
  12165. void Clear();
  12166. int Compare(const String&, bool = true) const;
  12167. bool Contains(const String&, bool = true) const;
  12168. bool Contains(uint8, bool = true) const;
  12169. bool EndsWith(const String&, bool = true) const;
  12170. uint Find(const String&, uint = 0, bool = true) const;
  12171. uint Find(uint8, uint = 0, bool = true) const;
  12172. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  12173. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  12174. void Join(Array<String>&, const String&);
  12175. uint NextUTF8Char(uint&) const;
  12176. void Replace(const String&, const String&, bool = true);
  12177. void Replace(uint8, uint8, bool = true);
  12178. void ReplaceUTF8(uint, uint);
  12179. String Replaced(const String&, const String&, bool = true) const;
  12180. String Replaced(uint8, uint8, bool = true) const;
  12181. void Resize(uint);
  12182. void SetUTF8FromLatin1(const String&);
  12183. Array<String> Split(uint8, bool = false) const;
  12184. bool StartsWith(const String&, bool = true) const;
  12185. String Substring(uint) const;
  12186. String Substring(uint, uint) const;
  12187. String SubstringUTF8(uint) const;
  12188. String SubstringUTF8(uint, uint) const;
  12189. bool ToBool() const;
  12190. Color ToColor() const;
  12191. double ToDouble() const;
  12192. float ToFloat() const;
  12193. int ToInt(int = 10) const;
  12194. int64 ToInt64(int = 10) const;
  12195. IntRect ToIntRect() const;
  12196. IntVector2 ToIntVector2() const;
  12197. IntVector3 ToIntVector3() const;
  12198. String ToLower() const;
  12199. Matrix3 ToMatrix3() const;
  12200. Matrix3x4 ToMatrix3x4() const;
  12201. Matrix4 ToMatrix4() const;
  12202. Quaternion ToQuaternion() const;
  12203. uint ToUInt(int = 10) const;
  12204. uint64 ToUInt64(int = 10) const;
  12205. String ToUpper() const;
  12206. Vector2 ToVector2() const;
  12207. Vector3 ToVector3() const;
  12208. Vector4 ToVector4(bool = false) const;
  12209. Variant ToVectorVariant() const;
  12210. String Trimmed() const;
  12211. // Properties:
  12212. /* readonly */
  12213. bool empty;
  12214. /* readonly */
  12215. uint length;
  12216. /* readonly */
  12217. uint utf8Length;
  12218. };
  12219. class StringHash
  12220. {
  12221. public:
  12222. StringHash();
  12223. StringHash(const StringHash&in);
  12224. StringHash(const String&in);
  12225. StringHash(uint);
  12226. // Methods:
  12227. String ToString() const;
  12228. // Properties:
  12229. /* readonly */
  12230. uint value;
  12231. };
  12232. class Technique
  12233. {
  12234. public:
  12235. Technique();
  12236. Technique(const String&in);
  12237. // Methods:
  12238. Technique Clone(const String& = String ( )) const;
  12239. Pass CreatePass(const String&);
  12240. Pass GetPass(const String&);
  12241. Pass GetSupportedPass(const String&);
  12242. bool HasPass(const String&) const;
  12243. bool HasSubscribedToEvent(Object, const String&);
  12244. bool HasSubscribedToEvent(const String&);
  12245. bool Load(File);
  12246. bool Load(VectorBuffer&);
  12247. bool Load(const String&);
  12248. void RemovePass(const String&);
  12249. bool Save(File) const;
  12250. bool Save(VectorBuffer&) const;
  12251. bool Save(const String&) const;
  12252. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12253. // Properties:
  12254. /* readonly */
  12255. String category;
  12256. bool desktop;
  12257. /* readonly */
  12258. uint memoryUse;
  12259. String name;
  12260. /* readonly */
  12261. uint numPasses;
  12262. /* readonly */
  12263. Array<String> passNames;
  12264. /* readonly */
  12265. Array<Pass> passes;
  12266. /* readonly */
  12267. int refs;
  12268. /* readonly */
  12269. bool supported;
  12270. /* readonly */
  12271. StringHash type;
  12272. /* readonly */
  12273. String typeName;
  12274. /* readonly */
  12275. uint useTimer;
  12276. /* readonly */
  12277. int weakRefs;
  12278. };
  12279. class TechniqueEntry
  12280. {
  12281. public:
  12282. ~TechniqueEntry();
  12283. TechniqueEntry();
  12284. TechniqueEntry(const TechniqueEntry&in);
  12285. // Properties:
  12286. float lodDistance;
  12287. int qualityLevel;
  12288. Technique technique;
  12289. };
  12290. class Terrain
  12291. {
  12292. public:
  12293. // Methods:
  12294. void ApplyAttributes();
  12295. void ApplyHeightMap();
  12296. void DrawDebugGeometry(DebugRenderer, bool);
  12297. Variant GetAttribute(const String&) const;
  12298. ValueAnimation GetAttributeAnimation(const String&) const;
  12299. float GetAttributeAnimationSpeed(const String&) const;
  12300. float GetAttributeAnimationTime(const String&) const;
  12301. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12302. Variant GetAttributeDefault(const String&) const;
  12303. float GetHeight(const Vector3&) const;
  12304. bool GetInterceptNetworkUpdate(const String&) const;
  12305. TerrainPatch GetNeighborPatch(int, int) const;
  12306. Vector3 GetNormal(const Vector3&) const;
  12307. TerrainPatch GetPatch(int, int) const;
  12308. bool HasSubscribedToEvent(Object, const String&);
  12309. bool HasSubscribedToEvent(const String&);
  12310. Vector3 HeightMapToWorld(const IntVector2&) const;
  12311. bool Load(File);
  12312. bool Load(VectorBuffer&);
  12313. bool LoadJSON(const JSONValue&);
  12314. bool LoadXML(const XMLElement&);
  12315. void MarkNetworkUpdate() const;
  12316. void Remove();
  12317. void RemoveAttributeAnimation(const String&);
  12318. void RemoveInstanceDefault();
  12319. void RemoveObjectAnimation();
  12320. void ResetToDefault();
  12321. bool Save(File) const;
  12322. bool Save(VectorBuffer&) const;
  12323. bool SaveJSON(JSONValue&) const;
  12324. bool SaveXML(XMLElement&) const;
  12325. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12326. void SetAnimationTime(float);
  12327. bool SetAttribute(const String&, const Variant&);
  12328. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12329. void SetAttributeAnimationSpeed(const String&, float);
  12330. void SetAttributeAnimationTime(const String&, float);
  12331. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12332. void SetInterceptNetworkUpdate(const String&, bool);
  12333. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  12334. IntVector2 WorldToHeightMap(const Vector3&) const;
  12335. // Properties:
  12336. bool animationEnabled;
  12337. /* readonly */
  12338. Array<Variant> attributeDefaults;
  12339. /* readonly */
  12340. Array<AttributeInfo> attributeInfos;
  12341. Array<Variant> attributes;
  12342. bool castShadows;
  12343. /* readonly */
  12344. String category;
  12345. float drawDistance;
  12346. Terrain eastNeighbor;
  12347. bool enabled;
  12348. /* readonly */
  12349. bool enabledEffective;
  12350. Image heightMap;
  12351. /* readonly */
  12352. uint id;
  12353. uint lightMask;
  12354. float lodBias;
  12355. Material material;
  12356. uint maxLights;
  12357. uint maxLodLevels;
  12358. /* readonly */
  12359. Node node;
  12360. Terrain northNeighbor;
  12361. /* readonly */
  12362. uint numAttributes;
  12363. /* readonly */
  12364. IntVector2 numPatches;
  12365. /* readonly */
  12366. IntVector2 numVertices;
  12367. ObjectAnimation objectAnimation;
  12368. bool occludee;
  12369. bool occluder;
  12370. uint occlusionLodLevel;
  12371. int patchSize;
  12372. /* readonly */
  12373. Array<TerrainPatch> patches;
  12374. /* readonly */
  12375. int refs;
  12376. /* readonly */
  12377. bool replicated;
  12378. float shadowDistance;
  12379. uint shadowMask;
  12380. bool smoothing;
  12381. Terrain southNeighbor;
  12382. Vector3 spacing;
  12383. bool temporary;
  12384. /* readonly */
  12385. StringHash type;
  12386. /* readonly */
  12387. String typeName;
  12388. uint viewMask;
  12389. /* readonly */
  12390. int weakRefs;
  12391. Terrain westNeighbor;
  12392. uint zoneMask;
  12393. };
  12394. class TerrainPatch
  12395. {
  12396. public:
  12397. // Methods:
  12398. void ApplyAttributes();
  12399. void DrawDebugGeometry(DebugRenderer, bool);
  12400. Variant GetAttribute(const String&) const;
  12401. ValueAnimation GetAttributeAnimation(const String&) const;
  12402. float GetAttributeAnimationSpeed(const String&) const;
  12403. float GetAttributeAnimationTime(const String&) const;
  12404. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12405. Variant GetAttributeDefault(const String&) const;
  12406. bool GetInterceptNetworkUpdate(const String&) const;
  12407. bool HasSubscribedToEvent(Object, const String&);
  12408. bool HasSubscribedToEvent(const String&);
  12409. bool IsInView(Camera) const;
  12410. bool Load(File);
  12411. bool Load(VectorBuffer&);
  12412. bool LoadJSON(const JSONValue&);
  12413. bool LoadXML(const XMLElement&);
  12414. void MarkNetworkUpdate() const;
  12415. void Remove();
  12416. void RemoveAttributeAnimation(const String&);
  12417. void RemoveInstanceDefault();
  12418. void RemoveObjectAnimation();
  12419. void ResetToDefault();
  12420. bool Save(File) const;
  12421. bool Save(VectorBuffer&) const;
  12422. bool SaveJSON(JSONValue&) const;
  12423. bool SaveXML(XMLElement&) const;
  12424. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12425. void SetAnimationTime(float);
  12426. bool SetAttribute(const String&, const Variant&);
  12427. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12428. void SetAttributeAnimationSpeed(const String&, float);
  12429. void SetAttributeAnimationTime(const String&, float);
  12430. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12431. void SetInterceptNetworkUpdate(const String&, bool);
  12432. // Properties:
  12433. bool animationEnabled;
  12434. /* readonly */
  12435. Array<Variant> attributeDefaults;
  12436. /* readonly */
  12437. Array<AttributeInfo> attributeInfos;
  12438. Array<Variant> attributes;
  12439. /* readonly */
  12440. BoundingBox boundingBox;
  12441. bool castShadows;
  12442. /* readonly */
  12443. String category;
  12444. float drawDistance;
  12445. bool enabled;
  12446. /* readonly */
  12447. bool enabledEffective;
  12448. /* readonly */
  12449. uint id;
  12450. /* readonly */
  12451. bool inView;
  12452. uint lightMask;
  12453. float lodBias;
  12454. uint maxLights;
  12455. /* readonly */
  12456. Node node;
  12457. /* readonly */
  12458. uint numAttributes;
  12459. ObjectAnimation objectAnimation;
  12460. bool occludee;
  12461. bool occluder;
  12462. /* readonly */
  12463. int refs;
  12464. /* readonly */
  12465. bool replicated;
  12466. float shadowDistance;
  12467. uint shadowMask;
  12468. bool temporary;
  12469. /* readonly */
  12470. StringHash type;
  12471. /* readonly */
  12472. String typeName;
  12473. uint viewMask;
  12474. /* readonly */
  12475. int weakRefs;
  12476. /* readonly */
  12477. BoundingBox worldBoundingBox;
  12478. uint zoneMask;
  12479. };
  12480. class Text
  12481. {
  12482. public:
  12483. Text();
  12484. Text(const String&in);
  12485. // Methods:
  12486. void AddChild(UIElement);
  12487. void AddTag(const String&);
  12488. void AddTags(const String&, int8 = ';');
  12489. void ApplyAttributes();
  12490. void BringToFront();
  12491. void ClearSelection();
  12492. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12493. void DisableLayoutUpdate();
  12494. IntVector2 ElementToScreen(const IntVector2&);
  12495. void EnableLayoutUpdate();
  12496. uint FindChild(UIElement) const;
  12497. Variant GetAttribute(const String&) const;
  12498. ValueAnimation GetAttributeAnimation(const String&) const;
  12499. float GetAttributeAnimationSpeed(const String&) const;
  12500. float GetAttributeAnimationTime(const String&) const;
  12501. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12502. Variant GetAttributeDefault(const String&) const;
  12503. UIElement GetChild(const String&, bool = false) const;
  12504. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12505. Array<UIElement> GetChildren(bool = false) const;
  12506. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12507. UIElement GetElementEventSender() const;
  12508. bool GetInterceptNetworkUpdate(const String&) const;
  12509. uint GetNumChildren(bool) const;
  12510. bool HasSubscribedToEvent(Object, const String&);
  12511. bool HasSubscribedToEvent(const String&);
  12512. bool HasTag(const String&) const;
  12513. void InsertChild(uint, UIElement);
  12514. bool IsChildOf(UIElement) const;
  12515. bool IsInside(IntVector2, bool);
  12516. bool IsInsideCombined(IntVector2, bool);
  12517. bool Load(File);
  12518. bool Load(VectorBuffer&);
  12519. UIElement LoadChildXML(XMLFile, XMLFile);
  12520. UIElement LoadChildXML(const XMLElement&, XMLFile);
  12521. bool LoadJSON(const JSONValue&);
  12522. bool LoadXML(File);
  12523. bool LoadXML(VectorBuffer&);
  12524. bool LoadXML(XMLFile, XMLFile);
  12525. bool LoadXML(const XMLElement&, XMLFile);
  12526. bool LoadXML(const XMLElement&);
  12527. void MarkNetworkUpdate() const;
  12528. void Remove();
  12529. void RemoveAllChildren();
  12530. void RemoveAllTags();
  12531. void RemoveAttributeAnimation(const String&);
  12532. void RemoveChild(UIElement, uint = 0);
  12533. void RemoveChild(uint);
  12534. void RemoveInstanceDefault();
  12535. void RemoveObjectAnimation();
  12536. bool RemoveTag(const String&);
  12537. void ResetDeepEnabled();
  12538. void ResetToDefault();
  12539. bool Save(File) const;
  12540. bool Save(VectorBuffer&) const;
  12541. bool SaveJSON(JSONValue&) const;
  12542. bool SaveXML(File, const String& = "\t");
  12543. bool SaveXML(VectorBuffer&, const String& = "\t");
  12544. bool SaveXML(XMLElement&) const;
  12545. IntVector2 ScreenToElement(const IntVector2&);
  12546. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12547. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12548. void SetAnimationTime(float);
  12549. bool SetAttribute(const String&, const Variant&);
  12550. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12551. void SetAttributeAnimationSpeed(const String&, float);
  12552. void SetAttributeAnimationTime(const String&, float);
  12553. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12554. void SetDeepEnabled(bool);
  12555. void SetEnabledRecursive(bool);
  12556. void SetFixedHeight(int);
  12557. void SetFixedSize(int, int);
  12558. void SetFixedWidth(int);
  12559. bool SetFont(Font, float);
  12560. bool SetFont(const String&, float);
  12561. void SetInterceptNetworkUpdate(const String&, bool);
  12562. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12563. void SetMaxAnchor(float, float);
  12564. void SetMaxSize(int, int);
  12565. void SetMinAnchor(float, float);
  12566. void SetMinSize(int, int);
  12567. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12568. void SetPivot(float, float);
  12569. void SetPosition(int, int);
  12570. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  12571. void SetSize(int, int);
  12572. bool SetStyle(const String&, XMLFile = null);
  12573. bool SetStyle(const XMLElement&);
  12574. bool SetStyleAuto(XMLFile = null);
  12575. void UpdateLayout();
  12576. const Variant& GetVar(const StringHash&);
  12577. // Properties:
  12578. bool animationEnabled;
  12579. /* readonly */
  12580. Array<Variant> attributeDefaults;
  12581. /* readonly */
  12582. Array<AttributeInfo> attributeInfos;
  12583. Array<Variant> attributes;
  12584. bool autoLocalizable;
  12585. bool bringToBack;
  12586. bool bringToFront;
  12587. /* readonly */
  12588. String category;
  12589. /* readonly */
  12590. Array<Vector2> charPositions;
  12591. /* readonly */
  12592. Array<Vector2> charSizes;
  12593. /* readonly */
  12594. IntVector2 childOffset;
  12595. /* readonly */
  12596. Array<UIElement> children;
  12597. IntRect clipBorder;
  12598. bool clipChildren;
  12599. /* writeonly */
  12600. Color color;
  12601. /* readonly */
  12602. bool colorGradient;
  12603. Array<Color> colors;
  12604. /* readonly */
  12605. IntRect combinedScreenRect;
  12606. XMLFile defaultStyle;
  12607. /* readonly */
  12608. float derivedOpacity;
  12609. /* readonly */
  12610. uint dragButtonCombo;
  12611. /* readonly */
  12612. int dragButtonCount;
  12613. uint dragDropMode;
  12614. bool editable;
  12615. Color effectColor;
  12616. bool effectRoundStroke;
  12617. IntVector2 effectShadowOffset;
  12618. int effectStrokeThickness;
  12619. bool elementEventSender;
  12620. bool enableAnchor;
  12621. bool enabled;
  12622. /* readonly */
  12623. bool enabledSelf;
  12624. /* readonly */
  12625. bool fixedHeight;
  12626. /* readonly */
  12627. bool fixedSize;
  12628. /* readonly */
  12629. bool fixedWidth;
  12630. bool focus;
  12631. FocusMode focusMode;
  12632. /* readonly */
  12633. Font font;
  12634. float fontSize;
  12635. int height;
  12636. HorizontalAlignment horizontalAlignment;
  12637. Color hoverColor;
  12638. /* readonly */
  12639. bool hovering;
  12640. int indent;
  12641. int indentSpacing;
  12642. /* readonly */
  12643. int indentWidth;
  12644. bool internal;
  12645. IntRect layoutBorder;
  12646. Vector2 layoutFlexScale;
  12647. LayoutMode layoutMode;
  12648. int layoutSpacing;
  12649. Vector2 maxAnchor;
  12650. int maxHeight;
  12651. IntVector2 maxOffset;
  12652. IntVector2 maxSize;
  12653. int maxWidth;
  12654. Vector2 minAnchor;
  12655. int minHeight;
  12656. IntVector2 minOffset;
  12657. IntVector2 minSize;
  12658. int minWidth;
  12659. String name;
  12660. /* readonly */
  12661. uint numAllChildren;
  12662. /* readonly */
  12663. uint numAttributes;
  12664. /* readonly */
  12665. uint numChars;
  12666. /* readonly */
  12667. uint numChildren;
  12668. /* readonly */
  12669. uint numRows;
  12670. ObjectAnimation objectAnimation;
  12671. float opacity;
  12672. UIElement parent;
  12673. Vector2 pivot;
  12674. IntVector2 position;
  12675. int priority;
  12676. /* readonly */
  12677. int refs;
  12678. /* readonly */
  12679. UIElement root;
  12680. /* readonly */
  12681. float rowHeight;
  12682. float rowSpacing;
  12683. /* readonly */
  12684. Array<float> rowWidths;
  12685. /* readonly */
  12686. IntVector2 screenPosition;
  12687. bool selected;
  12688. Color selectionColor;
  12689. /* readonly */
  12690. uint selectionLength;
  12691. /* readonly */
  12692. uint selectionStart;
  12693. IntVector2 size;
  12694. bool sortChildren;
  12695. String style;
  12696. /* readonly */
  12697. Array<String> tags;
  12698. bool temporary;
  12699. String text;
  12700. HorizontalAlignment textAlignment;
  12701. TextEffect textEffect;
  12702. TraversalMode traversalMode;
  12703. /* readonly */
  12704. StringHash type;
  12705. /* readonly */
  12706. String typeName;
  12707. bool useDerivedOpacity;
  12708. /* readonly */
  12709. VariantMap vars;
  12710. VerticalAlignment verticalAlignment;
  12711. bool visible;
  12712. /* readonly */
  12713. bool visibleEffective;
  12714. /* readonly */
  12715. int weakRefs;
  12716. int width;
  12717. bool wordwrap;
  12718. };
  12719. class Text3D
  12720. {
  12721. public:
  12722. // Methods:
  12723. void ApplyAttributes();
  12724. void DrawDebugGeometry(DebugRenderer, bool);
  12725. Variant GetAttribute(const String&) const;
  12726. ValueAnimation GetAttributeAnimation(const String&) const;
  12727. float GetAttributeAnimationSpeed(const String&) const;
  12728. float GetAttributeAnimationTime(const String&) const;
  12729. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12730. Variant GetAttributeDefault(const String&) const;
  12731. bool GetInterceptNetworkUpdate(const String&) const;
  12732. bool HasSubscribedToEvent(Object, const String&);
  12733. bool HasSubscribedToEvent(const String&);
  12734. bool IsInView(Camera) const;
  12735. bool Load(File);
  12736. bool Load(VectorBuffer&);
  12737. bool LoadJSON(const JSONValue&);
  12738. bool LoadXML(const XMLElement&);
  12739. void MarkNetworkUpdate() const;
  12740. void Remove();
  12741. void RemoveAttributeAnimation(const String&);
  12742. void RemoveInstanceDefault();
  12743. void RemoveObjectAnimation();
  12744. void ResetToDefault();
  12745. bool Save(File) const;
  12746. bool Save(VectorBuffer&) const;
  12747. bool SaveJSON(JSONValue&) const;
  12748. bool SaveXML(XMLElement&) const;
  12749. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12750. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12751. void SetAnimationTime(float);
  12752. bool SetAttribute(const String&, const Variant&);
  12753. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12754. void SetAttributeAnimationSpeed(const String&, float);
  12755. void SetAttributeAnimationTime(const String&, float);
  12756. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12757. bool SetFont(Font, float);
  12758. bool SetFont(const String&, float);
  12759. void SetInterceptNetworkUpdate(const String&, bool);
  12760. // Properties:
  12761. bool animationEnabled;
  12762. /* readonly */
  12763. Array<Variant> attributeDefaults;
  12764. /* readonly */
  12765. Array<AttributeInfo> attributeInfos;
  12766. Array<Variant> attributes;
  12767. /* readonly */
  12768. BoundingBox boundingBox;
  12769. bool castShadows;
  12770. /* readonly */
  12771. String category;
  12772. /* readonly */
  12773. Array<Vector2> charPositions;
  12774. /* readonly */
  12775. Array<Vector2> charSizes;
  12776. /* writeonly */
  12777. Color color;
  12778. Array<Color> colors;
  12779. float drawDistance;
  12780. Color effectColor;
  12781. float effectDepthBias;
  12782. bool effectRoundStroke;
  12783. IntVector2 effectShadowOffset;
  12784. int effectStrokeThickness;
  12785. bool enabled;
  12786. /* readonly */
  12787. bool enabledEffective;
  12788. FaceCameraMode faceCameraMode;
  12789. bool fixedScreenSize;
  12790. /* readonly */
  12791. Font font;
  12792. float fontSize;
  12793. /* readonly */
  12794. int height;
  12795. HorizontalAlignment horizontalAlignment;
  12796. /* readonly */
  12797. uint id;
  12798. /* readonly */
  12799. bool inView;
  12800. uint lightMask;
  12801. float lodBias;
  12802. Material material;
  12803. uint maxLights;
  12804. /* readonly */
  12805. Node node;
  12806. /* readonly */
  12807. uint numAttributes;
  12808. /* readonly */
  12809. uint numChars;
  12810. /* readonly */
  12811. uint numRows;
  12812. ObjectAnimation objectAnimation;
  12813. bool occludee;
  12814. bool occluder;
  12815. float opacity;
  12816. /* readonly */
  12817. int refs;
  12818. /* readonly */
  12819. bool replicated;
  12820. /* readonly */
  12821. float rowHeight;
  12822. float rowSpacing;
  12823. /* readonly */
  12824. Array<float> rowWidths;
  12825. float shadowDistance;
  12826. uint shadowMask;
  12827. bool temporary;
  12828. String text;
  12829. HorizontalAlignment textAlignment;
  12830. TextEffect textEffect;
  12831. /* readonly */
  12832. StringHash type;
  12833. /* readonly */
  12834. String typeName;
  12835. VerticalAlignment verticalAlignment;
  12836. uint viewMask;
  12837. /* readonly */
  12838. int weakRefs;
  12839. int width;
  12840. bool wordwrap;
  12841. /* readonly */
  12842. BoundingBox worldBoundingBox;
  12843. uint zoneMask;
  12844. };
  12845. class Texture
  12846. {
  12847. public:
  12848. Texture();
  12849. Texture(const String&in);
  12850. // Methods:
  12851. void AddMetadata(const String&, const Variant&);
  12852. void ClearDataLost();
  12853. bool HasSubscribedToEvent(Object, const String&);
  12854. bool HasSubscribedToEvent(const String&);
  12855. bool Load(File);
  12856. bool Load(VectorBuffer&);
  12857. bool Load(const String&);
  12858. void RemoveAllMetadata();
  12859. void RemoveMetadata(const String&);
  12860. bool Save(File) const;
  12861. bool Save(VectorBuffer&) const;
  12862. bool Save(const String&) const;
  12863. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12864. void SetNumLevels(uint);
  12865. // Properties:
  12866. Array<TextureAddressMode> addressMode;
  12867. uint anisotropy;
  12868. /* readonly */
  12869. bool autoResolve;
  12870. Texture backupTexture;
  12871. Color borderColor;
  12872. /* readonly */
  12873. String category;
  12874. /* readonly */
  12875. uint components;
  12876. /* readonly */
  12877. bool compressed;
  12878. /* readonly */
  12879. bool dataLost;
  12880. TextureFilterMode filterMode;
  12881. /* readonly */
  12882. uint format;
  12883. /* readonly */
  12884. bool hasMetadata;
  12885. /* readonly */
  12886. int height;
  12887. /* readonly */
  12888. Array<int> levelHeight;
  12889. /* readonly */
  12890. Array<int> levelWidth;
  12891. /* readonly */
  12892. uint levels;
  12893. /* readonly */
  12894. bool levelsDirty;
  12895. /* readonly */
  12896. uint memoryUse;
  12897. Array<Variant> metadata;
  12898. Array<int> mipsToSkip;
  12899. /* readonly */
  12900. int multiSample;
  12901. String name;
  12902. /* readonly */
  12903. int refs;
  12904. /* readonly */
  12905. bool resolveDirty;
  12906. bool sRGB;
  12907. /* readonly */
  12908. StringHash type;
  12909. /* readonly */
  12910. String typeName;
  12911. /* readonly */
  12912. TextureUsage usage;
  12913. /* readonly */
  12914. uint useTimer;
  12915. /* readonly */
  12916. int weakRefs;
  12917. /* readonly */
  12918. int width;
  12919. };
  12920. class Texture2D
  12921. {
  12922. public:
  12923. Texture2D();
  12924. Texture2D(const String&in);
  12925. // Methods:
  12926. void AddMetadata(const String&, const Variant&);
  12927. void ClearDataLost();
  12928. Image GetImage() const;
  12929. bool HasSubscribedToEvent(Object, const String&);
  12930. bool HasSubscribedToEvent(const String&);
  12931. bool Load(File);
  12932. bool Load(VectorBuffer&);
  12933. bool Load(const String&);
  12934. void RemoveAllMetadata();
  12935. void RemoveMetadata(const String&);
  12936. bool Save(File) const;
  12937. bool Save(VectorBuffer&) const;
  12938. bool Save(const String&) const;
  12939. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12940. bool SetData(Image, bool = false);
  12941. void SetNumLevels(uint);
  12942. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  12943. // Properties:
  12944. Array<TextureAddressMode> addressMode;
  12945. uint anisotropy;
  12946. /* readonly */
  12947. bool autoResolve;
  12948. Texture backupTexture;
  12949. Color borderColor;
  12950. /* readonly */
  12951. String category;
  12952. /* readonly */
  12953. uint components;
  12954. /* readonly */
  12955. bool compressed;
  12956. /* readonly */
  12957. bool dataLost;
  12958. TextureFilterMode filterMode;
  12959. /* readonly */
  12960. uint format;
  12961. /* readonly */
  12962. bool hasMetadata;
  12963. /* readonly */
  12964. int height;
  12965. /* readonly */
  12966. Array<int> levelHeight;
  12967. /* readonly */
  12968. Array<int> levelWidth;
  12969. /* readonly */
  12970. uint levels;
  12971. /* readonly */
  12972. bool levelsDirty;
  12973. /* readonly */
  12974. uint memoryUse;
  12975. Array<Variant> metadata;
  12976. Array<int> mipsToSkip;
  12977. /* readonly */
  12978. int multiSample;
  12979. String name;
  12980. /* readonly */
  12981. int refs;
  12982. /* readonly */
  12983. RenderSurface renderSurface;
  12984. /* readonly */
  12985. bool resolveDirty;
  12986. bool sRGB;
  12987. /* readonly */
  12988. StringHash type;
  12989. /* readonly */
  12990. String typeName;
  12991. /* readonly */
  12992. TextureUsage usage;
  12993. /* readonly */
  12994. uint useTimer;
  12995. /* readonly */
  12996. int weakRefs;
  12997. /* readonly */
  12998. int width;
  12999. };
  13000. class Texture2DArray
  13001. {
  13002. public:
  13003. Texture2DArray();
  13004. Texture2DArray(const String&in);
  13005. // Methods:
  13006. void AddMetadata(const String&, const Variant&);
  13007. void ClearDataLost();
  13008. bool HasSubscribedToEvent(Object, const String&);
  13009. bool HasSubscribedToEvent(const String&);
  13010. bool Load(File);
  13011. bool Load(VectorBuffer&);
  13012. bool Load(const String&);
  13013. void RemoveAllMetadata();
  13014. void RemoveMetadata(const String&);
  13015. bool Save(File) const;
  13016. bool Save(VectorBuffer&) const;
  13017. bool Save(const String&) const;
  13018. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13019. bool SetData(uint, Image, bool = false);
  13020. void SetNumLevels(uint);
  13021. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  13022. // Properties:
  13023. Array<TextureAddressMode> addressMode;
  13024. uint anisotropy;
  13025. /* readonly */
  13026. bool autoResolve;
  13027. Texture backupTexture;
  13028. Color borderColor;
  13029. /* readonly */
  13030. String category;
  13031. /* readonly */
  13032. uint components;
  13033. /* readonly */
  13034. bool compressed;
  13035. /* readonly */
  13036. bool dataLost;
  13037. TextureFilterMode filterMode;
  13038. /* readonly */
  13039. uint format;
  13040. /* readonly */
  13041. bool hasMetadata;
  13042. /* readonly */
  13043. int height;
  13044. uint layers;
  13045. /* readonly */
  13046. Array<int> levelHeight;
  13047. /* readonly */
  13048. Array<int> levelWidth;
  13049. /* readonly */
  13050. uint levels;
  13051. /* readonly */
  13052. bool levelsDirty;
  13053. /* readonly */
  13054. uint memoryUse;
  13055. Array<Variant> metadata;
  13056. Array<int> mipsToSkip;
  13057. /* readonly */
  13058. int multiSample;
  13059. String name;
  13060. /* readonly */
  13061. int refs;
  13062. /* readonly */
  13063. RenderSurface renderSurface;
  13064. /* readonly */
  13065. bool resolveDirty;
  13066. bool sRGB;
  13067. /* readonly */
  13068. StringHash type;
  13069. /* readonly */
  13070. String typeName;
  13071. /* readonly */
  13072. TextureUsage usage;
  13073. /* readonly */
  13074. uint useTimer;
  13075. /* readonly */
  13076. int weakRefs;
  13077. /* readonly */
  13078. int width;
  13079. };
  13080. class Texture3D
  13081. {
  13082. public:
  13083. Texture3D();
  13084. Texture3D(const String&in);
  13085. // Methods:
  13086. void AddMetadata(const String&, const Variant&);
  13087. void ClearDataLost();
  13088. bool HasSubscribedToEvent(Object, const String&);
  13089. bool HasSubscribedToEvent(const String&);
  13090. bool Load(File);
  13091. bool Load(VectorBuffer&);
  13092. bool Load(const String&);
  13093. void RemoveAllMetadata();
  13094. void RemoveMetadata(const String&);
  13095. bool Save(File) const;
  13096. bool Save(VectorBuffer&) const;
  13097. bool Save(const String&) const;
  13098. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13099. bool SetData(Image, bool = false);
  13100. void SetNumLevels(uint);
  13101. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  13102. // Properties:
  13103. Array<TextureAddressMode> addressMode;
  13104. uint anisotropy;
  13105. /* readonly */
  13106. bool autoResolve;
  13107. Texture backupTexture;
  13108. Color borderColor;
  13109. /* readonly */
  13110. String category;
  13111. /* readonly */
  13112. uint components;
  13113. /* readonly */
  13114. bool compressed;
  13115. /* readonly */
  13116. bool dataLost;
  13117. TextureFilterMode filterMode;
  13118. /* readonly */
  13119. uint format;
  13120. /* readonly */
  13121. bool hasMetadata;
  13122. /* readonly */
  13123. int height;
  13124. /* readonly */
  13125. Array<int> levelHeight;
  13126. /* readonly */
  13127. Array<int> levelWidth;
  13128. /* readonly */
  13129. uint levels;
  13130. /* readonly */
  13131. bool levelsDirty;
  13132. /* readonly */
  13133. uint memoryUse;
  13134. Array<Variant> metadata;
  13135. Array<int> mipsToSkip;
  13136. /* readonly */
  13137. int multiSample;
  13138. String name;
  13139. /* readonly */
  13140. int refs;
  13141. /* readonly */
  13142. bool resolveDirty;
  13143. bool sRGB;
  13144. /* readonly */
  13145. StringHash type;
  13146. /* readonly */
  13147. String typeName;
  13148. /* readonly */
  13149. TextureUsage usage;
  13150. /* readonly */
  13151. uint useTimer;
  13152. /* readonly */
  13153. int weakRefs;
  13154. /* readonly */
  13155. int width;
  13156. };
  13157. class TextureCube
  13158. {
  13159. public:
  13160. TextureCube();
  13161. TextureCube(const String&in);
  13162. // Methods:
  13163. void AddMetadata(const String&, const Variant&);
  13164. void ClearDataLost();
  13165. Image GetImage(CubeMapFace) const;
  13166. bool HasSubscribedToEvent(Object, const String&);
  13167. bool HasSubscribedToEvent(const String&);
  13168. bool Load(File);
  13169. bool Load(VectorBuffer&);
  13170. bool Load(const String&);
  13171. void RemoveAllMetadata();
  13172. void RemoveMetadata(const String&);
  13173. bool Save(File) const;
  13174. bool Save(VectorBuffer&) const;
  13175. bool Save(const String&) const;
  13176. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13177. bool SetData(CubeMapFace, Image, bool = false);
  13178. void SetNumLevels(uint);
  13179. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  13180. // Properties:
  13181. Array<TextureAddressMode> addressMode;
  13182. uint anisotropy;
  13183. /* readonly */
  13184. bool autoResolve;
  13185. Texture backupTexture;
  13186. Color borderColor;
  13187. /* readonly */
  13188. String category;
  13189. /* readonly */
  13190. uint components;
  13191. /* readonly */
  13192. bool compressed;
  13193. /* readonly */
  13194. bool dataLost;
  13195. TextureFilterMode filterMode;
  13196. /* readonly */
  13197. uint format;
  13198. /* readonly */
  13199. bool hasMetadata;
  13200. /* readonly */
  13201. int height;
  13202. /* readonly */
  13203. Array<int> levelHeight;
  13204. /* readonly */
  13205. Array<int> levelWidth;
  13206. /* readonly */
  13207. uint levels;
  13208. /* readonly */
  13209. bool levelsDirty;
  13210. /* readonly */
  13211. uint memoryUse;
  13212. Array<Variant> metadata;
  13213. Array<int> mipsToSkip;
  13214. /* readonly */
  13215. int multiSample;
  13216. String name;
  13217. /* readonly */
  13218. int refs;
  13219. /* readonly */
  13220. Array<RenderSurface> renderSurfaces;
  13221. /* readonly */
  13222. bool resolveDirty;
  13223. bool sRGB;
  13224. /* readonly */
  13225. StringHash type;
  13226. /* readonly */
  13227. String typeName;
  13228. /* readonly */
  13229. TextureUsage usage;
  13230. /* readonly */
  13231. uint useTimer;
  13232. /* readonly */
  13233. int weakRefs;
  13234. /* readonly */
  13235. int width;
  13236. };
  13237. class TextureFrame
  13238. {
  13239. public:
  13240. // Properties:
  13241. float time;
  13242. Rect uv;
  13243. };
  13244. class Tile2D
  13245. {
  13246. public:
  13247. // Methods:
  13248. bool HasProperty(const String&) const;
  13249. const String& GetProperty(const String&) const;
  13250. // Properties:
  13251. /* readonly */
  13252. bool flipX;
  13253. /* readonly */
  13254. bool flipY;
  13255. /* readonly */
  13256. uint gid;
  13257. /* readonly */
  13258. int refs;
  13259. /* readonly */
  13260. Sprite2D sprite;
  13261. /* readonly */
  13262. bool swapXY;
  13263. /* readonly */
  13264. int weakRefs;
  13265. };
  13266. class TileMap2D
  13267. {
  13268. public:
  13269. // Methods:
  13270. void ApplyAttributes();
  13271. void DrawDebugGeometry(DebugRenderer, bool);
  13272. Variant GetAttribute(const String&) const;
  13273. ValueAnimation GetAttributeAnimation(const String&) const;
  13274. float GetAttributeAnimationSpeed(const String&) const;
  13275. float GetAttributeAnimationTime(const String&) const;
  13276. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13277. Variant GetAttributeDefault(const String&) const;
  13278. bool GetInterceptNetworkUpdate(const String&) const;
  13279. TileMapLayer2D GetLayer(uint) const;
  13280. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  13281. bool HasSubscribedToEvent(Object, const String&);
  13282. bool HasSubscribedToEvent(const String&);
  13283. bool Load(File);
  13284. bool Load(VectorBuffer&);
  13285. bool LoadJSON(const JSONValue&);
  13286. bool LoadXML(const XMLElement&);
  13287. void MarkNetworkUpdate() const;
  13288. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  13289. void Remove();
  13290. void RemoveAttributeAnimation(const String&);
  13291. void RemoveInstanceDefault();
  13292. void RemoveObjectAnimation();
  13293. void ResetToDefault();
  13294. bool Save(File) const;
  13295. bool Save(VectorBuffer&) const;
  13296. bool SaveJSON(JSONValue&) const;
  13297. bool SaveXML(XMLElement&) const;
  13298. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13299. void SetAnimationTime(float);
  13300. bool SetAttribute(const String&, const Variant&);
  13301. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13302. void SetAttributeAnimationSpeed(const String&, float);
  13303. void SetAttributeAnimationTime(const String&, float);
  13304. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13305. void SetInterceptNetworkUpdate(const String&, bool);
  13306. Vector2 TileIndexToPosition(int, int) const;
  13307. // Properties:
  13308. bool animationEnabled;
  13309. /* readonly */
  13310. Array<Variant> attributeDefaults;
  13311. /* readonly */
  13312. Array<AttributeInfo> attributeInfos;
  13313. Array<Variant> attributes;
  13314. /* readonly */
  13315. String category;
  13316. bool enabled;
  13317. /* readonly */
  13318. bool enabledEffective;
  13319. /* readonly */
  13320. uint id;
  13321. /* readonly */
  13322. TileMapInfo2D info;
  13323. /* readonly */
  13324. Node node;
  13325. /* readonly */
  13326. uint numAttributes;
  13327. /* readonly */
  13328. uint numLayers;
  13329. ObjectAnimation objectAnimation;
  13330. /* readonly */
  13331. int refs;
  13332. /* readonly */
  13333. bool replicated;
  13334. bool temporary;
  13335. TmxFile2D tmxFile;
  13336. /* readonly */
  13337. StringHash type;
  13338. /* readonly */
  13339. String typeName;
  13340. /* readonly */
  13341. int weakRefs;
  13342. };
  13343. class TileMapInfo2D
  13344. {
  13345. public:
  13346. // Properties:
  13347. int height;
  13348. /* readonly */
  13349. float mapHeight;
  13350. /* readonly */
  13351. float mapWidth;
  13352. Orientation2D orientation;
  13353. float tileHeight;
  13354. float tileWidth;
  13355. int width;
  13356. };
  13357. class TileMapLayer2D
  13358. {
  13359. public:
  13360. // Methods:
  13361. void ApplyAttributes();
  13362. void DrawDebugGeometry(DebugRenderer, bool);
  13363. Variant GetAttribute(const String&) const;
  13364. ValueAnimation GetAttributeAnimation(const String&) const;
  13365. float GetAttributeAnimationSpeed(const String&) const;
  13366. float GetAttributeAnimationTime(const String&) const;
  13367. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13368. Variant GetAttributeDefault(const String&) const;
  13369. bool GetInterceptNetworkUpdate(const String&) const;
  13370. TileMapObject2D GetObject(uint) const;
  13371. Node GetObjectNode(uint) const;
  13372. Tile2D GetTile(int, int) const;
  13373. Node GetTileNode(int, int) const;
  13374. bool HasProperty(const String&) const;
  13375. bool HasSubscribedToEvent(Object, const String&);
  13376. bool HasSubscribedToEvent(const String&);
  13377. bool Load(File);
  13378. bool Load(VectorBuffer&);
  13379. bool LoadJSON(const JSONValue&);
  13380. bool LoadXML(const XMLElement&);
  13381. void MarkNetworkUpdate() const;
  13382. void Remove();
  13383. void RemoveAttributeAnimation(const String&);
  13384. void RemoveInstanceDefault();
  13385. void RemoveObjectAnimation();
  13386. void ResetToDefault();
  13387. bool Save(File) const;
  13388. bool Save(VectorBuffer&) const;
  13389. bool SaveJSON(JSONValue&) const;
  13390. bool SaveXML(XMLElement&) const;
  13391. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13392. void SetAnimationTime(float);
  13393. bool SetAttribute(const String&, const Variant&);
  13394. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13395. void SetAttributeAnimationSpeed(const String&, float);
  13396. void SetAttributeAnimationTime(const String&, float);
  13397. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13398. void SetInterceptNetworkUpdate(const String&, bool);
  13399. const String& GetProperty(const String&) const;
  13400. // Properties:
  13401. bool animationEnabled;
  13402. /* readonly */
  13403. Array<Variant> attributeDefaults;
  13404. /* readonly */
  13405. Array<AttributeInfo> attributeInfos;
  13406. Array<Variant> attributes;
  13407. /* readonly */
  13408. String category;
  13409. int drawOrder;
  13410. bool enabled;
  13411. /* readonly */
  13412. bool enabledEffective;
  13413. /* readonly */
  13414. int height;
  13415. /* readonly */
  13416. uint id;
  13417. /* readonly */
  13418. Node imageNode;
  13419. /* readonly */
  13420. TileMapLayerType2D layerType;
  13421. /* readonly */
  13422. Node node;
  13423. /* readonly */
  13424. uint numAttributes;
  13425. /* readonly */
  13426. uint numObjects;
  13427. ObjectAnimation objectAnimation;
  13428. /* readonly */
  13429. int refs;
  13430. /* readonly */
  13431. bool replicated;
  13432. bool temporary;
  13433. /* readonly */
  13434. StringHash type;
  13435. /* readonly */
  13436. String typeName;
  13437. bool visible;
  13438. /* readonly */
  13439. int weakRefs;
  13440. /* readonly */
  13441. int width;
  13442. };
  13443. class TileMapObject2D
  13444. {
  13445. public:
  13446. // Methods:
  13447. bool HasProperty(const String&) const;
  13448. const String& GetProperty(const String&) const;
  13449. const Vector2& GetPoint(uint) const;
  13450. // Properties:
  13451. /* readonly */
  13452. String name;
  13453. /* readonly */
  13454. uint numPoints;
  13455. /* readonly */
  13456. TileObjectType2D objectType;
  13457. /* readonly */
  13458. Vector2 position;
  13459. /* readonly */
  13460. int refs;
  13461. /* readonly */
  13462. Vector2 size;
  13463. /* readonly */
  13464. bool tileFlipX;
  13465. /* readonly */
  13466. bool tileFlipY;
  13467. /* readonly */
  13468. uint tileGid;
  13469. /* readonly */
  13470. Sprite2D tileSprite;
  13471. /* readonly */
  13472. bool tileSwapXY;
  13473. /* readonly */
  13474. String type;
  13475. /* readonly */
  13476. int weakRefs;
  13477. };
  13478. class Time
  13479. {
  13480. public:
  13481. // Methods:
  13482. bool HasSubscribedToEvent(Object, const String&);
  13483. bool HasSubscribedToEvent(const String&);
  13484. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13485. // Properties:
  13486. /* readonly */
  13487. String category;
  13488. /* readonly */
  13489. float elapsedTime;
  13490. /* readonly */
  13491. uint frameNumber;
  13492. /* readonly */
  13493. float framesPerSecond;
  13494. /* readonly */
  13495. int refs;
  13496. /* readonly */
  13497. uint systemTime;
  13498. /* readonly */
  13499. uint timeSinceEpoch;
  13500. /* readonly */
  13501. String timeStamp;
  13502. /* readonly */
  13503. float timeStep;
  13504. /* readonly */
  13505. StringHash type;
  13506. /* readonly */
  13507. String typeName;
  13508. /* readonly */
  13509. int weakRefs;
  13510. };
  13511. class Timer
  13512. {
  13513. public:
  13514. Timer();
  13515. // Methods:
  13516. uint GetMSec(bool);
  13517. void Reset();
  13518. };
  13519. class TmxFile2D
  13520. {
  13521. public:
  13522. TmxFile2D();
  13523. TmxFile2D(const String&in);
  13524. // Methods:
  13525. bool HasSubscribedToEvent(Object, const String&);
  13526. bool HasSubscribedToEvent(const String&);
  13527. bool Load(File);
  13528. bool Load(VectorBuffer&);
  13529. bool Load(const String&);
  13530. bool Save(File) const;
  13531. bool Save(VectorBuffer&) const;
  13532. bool Save(const String&) const;
  13533. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13534. // Properties:
  13535. /* readonly */
  13536. String category;
  13537. float edgeOffset;
  13538. /* readonly */
  13539. uint memoryUse;
  13540. String name;
  13541. /* readonly */
  13542. int refs;
  13543. /* readonly */
  13544. StringHash type;
  13545. /* readonly */
  13546. String typeName;
  13547. /* readonly */
  13548. uint useTimer;
  13549. /* readonly */
  13550. int weakRefs;
  13551. };
  13552. class ToolTip
  13553. {
  13554. public:
  13555. ToolTip();
  13556. ToolTip(const String&in);
  13557. // Methods:
  13558. void AddChild(UIElement);
  13559. void AddTag(const String&);
  13560. void AddTags(const String&, int8 = ';');
  13561. void ApplyAttributes();
  13562. void BringToFront();
  13563. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13564. void DisableLayoutUpdate();
  13565. IntVector2 ElementToScreen(const IntVector2&);
  13566. void EnableLayoutUpdate();
  13567. uint FindChild(UIElement) const;
  13568. Variant GetAttribute(const String&) const;
  13569. ValueAnimation GetAttributeAnimation(const String&) const;
  13570. float GetAttributeAnimationSpeed(const String&) const;
  13571. float GetAttributeAnimationTime(const String&) const;
  13572. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13573. Variant GetAttributeDefault(const String&) const;
  13574. UIElement GetChild(const String&, bool = false) const;
  13575. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13576. Array<UIElement> GetChildren(bool = false) const;
  13577. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13578. UIElement GetElementEventSender() const;
  13579. bool GetInterceptNetworkUpdate(const String&) const;
  13580. uint GetNumChildren(bool) const;
  13581. bool HasSubscribedToEvent(Object, const String&);
  13582. bool HasSubscribedToEvent(const String&);
  13583. bool HasTag(const String&) const;
  13584. void InsertChild(uint, UIElement);
  13585. bool IsChildOf(UIElement) const;
  13586. bool IsInside(IntVector2, bool);
  13587. bool IsInsideCombined(IntVector2, bool);
  13588. bool Load(File);
  13589. bool Load(VectorBuffer&);
  13590. UIElement LoadChildXML(XMLFile, XMLFile);
  13591. UIElement LoadChildXML(const XMLElement&, XMLFile);
  13592. bool LoadJSON(const JSONValue&);
  13593. bool LoadXML(File);
  13594. bool LoadXML(VectorBuffer&);
  13595. bool LoadXML(XMLFile, XMLFile);
  13596. bool LoadXML(const XMLElement&, XMLFile);
  13597. bool LoadXML(const XMLElement&);
  13598. void MarkNetworkUpdate() const;
  13599. void Remove();
  13600. void RemoveAllChildren();
  13601. void RemoveAllTags();
  13602. void RemoveAttributeAnimation(const String&);
  13603. void RemoveChild(UIElement, uint = 0);
  13604. void RemoveChild(uint);
  13605. void RemoveInstanceDefault();
  13606. void RemoveObjectAnimation();
  13607. bool RemoveTag(const String&);
  13608. void ResetDeepEnabled();
  13609. void ResetToDefault();
  13610. bool Save(File) const;
  13611. bool Save(VectorBuffer&) const;
  13612. bool SaveJSON(JSONValue&) const;
  13613. bool SaveXML(File, const String& = "\t");
  13614. bool SaveXML(VectorBuffer&, const String& = "\t");
  13615. bool SaveXML(XMLElement&) const;
  13616. IntVector2 ScreenToElement(const IntVector2&);
  13617. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13618. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13619. void SetAnimationTime(float);
  13620. bool SetAttribute(const String&, const Variant&);
  13621. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13622. void SetAttributeAnimationSpeed(const String&, float);
  13623. void SetAttributeAnimationTime(const String&, float);
  13624. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13625. void SetDeepEnabled(bool);
  13626. void SetEnabledRecursive(bool);
  13627. void SetFixedHeight(int);
  13628. void SetFixedSize(int, int);
  13629. void SetFixedWidth(int);
  13630. void SetInterceptNetworkUpdate(const String&, bool);
  13631. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13632. void SetMaxAnchor(float, float);
  13633. void SetMaxSize(int, int);
  13634. void SetMinAnchor(float, float);
  13635. void SetMinSize(int, int);
  13636. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13637. void SetPivot(float, float);
  13638. void SetPosition(int, int);
  13639. void SetSize(int, int);
  13640. bool SetStyle(const String&, XMLFile = null);
  13641. bool SetStyle(const XMLElement&);
  13642. bool SetStyleAuto(XMLFile = null);
  13643. void UpdateLayout();
  13644. const Variant& GetVar(const StringHash&);
  13645. // Properties:
  13646. bool animationEnabled;
  13647. /* readonly */
  13648. Array<Variant> attributeDefaults;
  13649. /* readonly */
  13650. Array<AttributeInfo> attributeInfos;
  13651. Array<Variant> attributes;
  13652. bool bringToBack;
  13653. bool bringToFront;
  13654. /* readonly */
  13655. String category;
  13656. /* readonly */
  13657. IntVector2 childOffset;
  13658. /* readonly */
  13659. Array<UIElement> children;
  13660. IntRect clipBorder;
  13661. bool clipChildren;
  13662. /* writeonly */
  13663. Color color;
  13664. /* readonly */
  13665. bool colorGradient;
  13666. Array<Color> colors;
  13667. /* readonly */
  13668. IntRect combinedScreenRect;
  13669. XMLFile defaultStyle;
  13670. float delay;
  13671. /* readonly */
  13672. float derivedOpacity;
  13673. /* readonly */
  13674. uint dragButtonCombo;
  13675. /* readonly */
  13676. int dragButtonCount;
  13677. uint dragDropMode;
  13678. bool editable;
  13679. bool elementEventSender;
  13680. bool enableAnchor;
  13681. bool enabled;
  13682. /* readonly */
  13683. bool enabledSelf;
  13684. /* readonly */
  13685. bool fixedHeight;
  13686. /* readonly */
  13687. bool fixedSize;
  13688. /* readonly */
  13689. bool fixedWidth;
  13690. bool focus;
  13691. FocusMode focusMode;
  13692. int height;
  13693. HorizontalAlignment horizontalAlignment;
  13694. /* readonly */
  13695. bool hovering;
  13696. int indent;
  13697. int indentSpacing;
  13698. /* readonly */
  13699. int indentWidth;
  13700. bool internal;
  13701. IntRect layoutBorder;
  13702. Vector2 layoutFlexScale;
  13703. LayoutMode layoutMode;
  13704. int layoutSpacing;
  13705. Vector2 maxAnchor;
  13706. int maxHeight;
  13707. IntVector2 maxOffset;
  13708. IntVector2 maxSize;
  13709. int maxWidth;
  13710. Vector2 minAnchor;
  13711. int minHeight;
  13712. IntVector2 minOffset;
  13713. IntVector2 minSize;
  13714. int minWidth;
  13715. String name;
  13716. /* readonly */
  13717. uint numAllChildren;
  13718. /* readonly */
  13719. uint numAttributes;
  13720. /* readonly */
  13721. uint numChildren;
  13722. ObjectAnimation objectAnimation;
  13723. float opacity;
  13724. UIElement parent;
  13725. Vector2 pivot;
  13726. IntVector2 position;
  13727. int priority;
  13728. /* readonly */
  13729. int refs;
  13730. /* readonly */
  13731. UIElement root;
  13732. /* readonly */
  13733. IntVector2 screenPosition;
  13734. bool selected;
  13735. IntVector2 size;
  13736. bool sortChildren;
  13737. String style;
  13738. /* readonly */
  13739. Array<String> tags;
  13740. bool temporary;
  13741. TraversalMode traversalMode;
  13742. /* readonly */
  13743. StringHash type;
  13744. /* readonly */
  13745. String typeName;
  13746. bool useDerivedOpacity;
  13747. /* readonly */
  13748. VariantMap vars;
  13749. VerticalAlignment verticalAlignment;
  13750. bool visible;
  13751. /* readonly */
  13752. bool visibleEffective;
  13753. /* readonly */
  13754. int weakRefs;
  13755. int width;
  13756. };
  13757. class TouchState
  13758. {
  13759. public:
  13760. // Properties:
  13761. IntVector2 delta;
  13762. IntVector2 lastPosition;
  13763. IntVector2 position;
  13764. float pressure;
  13765. int touchID;
  13766. /* readonly */
  13767. UIElement touchedElement;
  13768. };
  13769. class UI
  13770. {
  13771. public:
  13772. // Methods:
  13773. void Clear();
  13774. void DebugDraw(UIElement);
  13775. UIElement GetElementAt(const IntVector2&, bool = true);
  13776. UIElement GetElementAt(int, int, bool = true);
  13777. bool HasModalElement() const;
  13778. bool HasSubscribedToEvent(Object, const String&);
  13779. bool HasSubscribedToEvent(const String&);
  13780. bool IsDragging() const;
  13781. UIElement LoadLayout(File);
  13782. UIElement LoadLayout(File, XMLFile);
  13783. UIElement LoadLayout(VectorBuffer&);
  13784. UIElement LoadLayout(VectorBuffer&, XMLFile);
  13785. UIElement LoadLayout(XMLFile);
  13786. UIElement LoadLayout(XMLFile, XMLFile);
  13787. bool SaveLayout(File, UIElement);
  13788. bool SaveLayout(VectorBuffer&, UIElement);
  13789. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13790. void SetCustomSize(int, int);
  13791. void SetFocusElement(UIElement, bool = false);
  13792. void SetHeight(float);
  13793. void SetWidth(float);
  13794. const Array<UIElement> GetDragElements();
  13795. // Properties:
  13796. /* readonly */
  13797. String category;
  13798. String clipBoardText;
  13799. Cursor cursor;
  13800. /* readonly */
  13801. IntVector2 cursorPosition;
  13802. IntVector2 customSize;
  13803. float defaultToolTipDelay;
  13804. float doubleClickInterval;
  13805. int dragBeginDistance;
  13806. float dragBeginInterval;
  13807. UIElement focusElement;
  13808. FontHintLevel fontHintLevel;
  13809. int fontOversampling;
  13810. float fontSubpixelThreshold;
  13811. bool forceAutoHint;
  13812. /* readonly */
  13813. UIElement frontElement;
  13814. float maxDoubleClickDistance;
  13815. int maxFontTextureSize;
  13816. /* readonly */
  13817. UIElement modalRoot;
  13818. bool nonFocusedMouseWheel;
  13819. /* readonly */
  13820. int refs;
  13821. /* readonly */
  13822. UIElement root;
  13823. float scale;
  13824. /* readonly */
  13825. StringHash type;
  13826. /* readonly */
  13827. String typeName;
  13828. bool useMutableGlyphs;
  13829. bool useScreenKeyboard;
  13830. bool useSystemClipboard;
  13831. /* readonly */
  13832. int weakRefs;
  13833. };
  13834. class UIComponent
  13835. {
  13836. public:
  13837. // Methods:
  13838. void ApplyAttributes();
  13839. Variant GetAttribute(const String&) const;
  13840. ValueAnimation GetAttributeAnimation(const String&) const;
  13841. float GetAttributeAnimationSpeed(const String&) const;
  13842. float GetAttributeAnimationTime(const String&) const;
  13843. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13844. Variant GetAttributeDefault(const String&) const;
  13845. bool GetInterceptNetworkUpdate(const String&) const;
  13846. bool HasSubscribedToEvent(Object, const String&);
  13847. bool HasSubscribedToEvent(const String&);
  13848. bool Load(File);
  13849. bool Load(VectorBuffer&);
  13850. bool LoadJSON(const JSONValue&);
  13851. bool LoadXML(const XMLElement&);
  13852. void MarkNetworkUpdate() const;
  13853. void Remove();
  13854. void RemoveAttributeAnimation(const String&);
  13855. void RemoveInstanceDefault();
  13856. void RemoveObjectAnimation();
  13857. void ResetToDefault();
  13858. bool Save(File) const;
  13859. bool Save(VectorBuffer&) const;
  13860. bool SaveJSON(JSONValue&) const;
  13861. bool SaveXML(XMLElement&) const;
  13862. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13863. void SetAnimationTime(float);
  13864. bool SetAttribute(const String&, const Variant&);
  13865. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13866. void SetAttributeAnimationSpeed(const String&, float);
  13867. void SetAttributeAnimationTime(const String&, float);
  13868. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13869. void SetInterceptNetworkUpdate(const String&, bool);
  13870. // Properties:
  13871. bool animationEnabled;
  13872. /* readonly */
  13873. Array<Variant> attributeDefaults;
  13874. /* readonly */
  13875. Array<AttributeInfo> attributeInfos;
  13876. Array<Variant> attributes;
  13877. /* readonly */
  13878. String category;
  13879. bool enabled;
  13880. /* readonly */
  13881. bool enabledEffective;
  13882. /* readonly */
  13883. uint id;
  13884. /* readonly */
  13885. Material material;
  13886. /* readonly */
  13887. Node node;
  13888. /* readonly */
  13889. uint numAttributes;
  13890. ObjectAnimation objectAnimation;
  13891. /* readonly */
  13892. int refs;
  13893. /* readonly */
  13894. bool replicated;
  13895. /* readonly */
  13896. UIElement root;
  13897. bool temporary;
  13898. /* readonly */
  13899. Texture2D texture;
  13900. /* readonly */
  13901. StringHash type;
  13902. /* readonly */
  13903. String typeName;
  13904. /* readonly */
  13905. int weakRefs;
  13906. };
  13907. class UIElement
  13908. {
  13909. public:
  13910. UIElement();
  13911. UIElement(const String&in);
  13912. // Methods:
  13913. void AddChild(UIElement);
  13914. void AddTag(const String&);
  13915. void AddTags(const String&, int8 = ';');
  13916. void ApplyAttributes();
  13917. void BringToFront();
  13918. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13919. void DisableLayoutUpdate();
  13920. IntVector2 ElementToScreen(const IntVector2&);
  13921. void EnableLayoutUpdate();
  13922. uint FindChild(UIElement) const;
  13923. Variant GetAttribute(const String&) const;
  13924. ValueAnimation GetAttributeAnimation(const String&) const;
  13925. float GetAttributeAnimationSpeed(const String&) const;
  13926. float GetAttributeAnimationTime(const String&) const;
  13927. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13928. Variant GetAttributeDefault(const String&) const;
  13929. UIElement GetChild(const String&, bool = false) const;
  13930. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13931. Array<UIElement> GetChildren(bool = false) const;
  13932. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13933. UIElement GetElementEventSender() const;
  13934. bool GetInterceptNetworkUpdate(const String&) const;
  13935. uint GetNumChildren(bool) const;
  13936. bool HasSubscribedToEvent(Object, const String&);
  13937. bool HasSubscribedToEvent(const String&);
  13938. bool HasTag(const String&) const;
  13939. void InsertChild(uint, UIElement);
  13940. bool IsChildOf(UIElement) const;
  13941. bool IsInside(IntVector2, bool);
  13942. bool IsInsideCombined(IntVector2, bool);
  13943. bool Load(File);
  13944. bool Load(VectorBuffer&);
  13945. UIElement LoadChildXML(XMLFile, XMLFile);
  13946. UIElement LoadChildXML(const XMLElement&, XMLFile);
  13947. bool LoadJSON(const JSONValue&);
  13948. bool LoadXML(File);
  13949. bool LoadXML(VectorBuffer&);
  13950. bool LoadXML(XMLFile, XMLFile);
  13951. bool LoadXML(const XMLElement&, XMLFile);
  13952. bool LoadXML(const XMLElement&);
  13953. void MarkNetworkUpdate() const;
  13954. void Remove();
  13955. void RemoveAllChildren();
  13956. void RemoveAllTags();
  13957. void RemoveAttributeAnimation(const String&);
  13958. void RemoveChild(UIElement, uint = 0);
  13959. void RemoveChild(uint);
  13960. void RemoveInstanceDefault();
  13961. void RemoveObjectAnimation();
  13962. bool RemoveTag(const String&);
  13963. void ResetDeepEnabled();
  13964. void ResetToDefault();
  13965. bool Save(File) const;
  13966. bool Save(VectorBuffer&) const;
  13967. bool SaveJSON(JSONValue&) const;
  13968. bool SaveXML(File, const String& = "\t");
  13969. bool SaveXML(VectorBuffer&, const String& = "\t");
  13970. bool SaveXML(XMLElement&) const;
  13971. IntVector2 ScreenToElement(const IntVector2&);
  13972. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13973. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13974. void SetAnimationTime(float);
  13975. bool SetAttribute(const String&, const Variant&);
  13976. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13977. void SetAttributeAnimationSpeed(const String&, float);
  13978. void SetAttributeAnimationTime(const String&, float);
  13979. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13980. void SetDeepEnabled(bool);
  13981. void SetEnabledRecursive(bool);
  13982. void SetFixedHeight(int);
  13983. void SetFixedSize(int, int);
  13984. void SetFixedWidth(int);
  13985. void SetInterceptNetworkUpdate(const String&, bool);
  13986. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13987. void SetMaxAnchor(float, float);
  13988. void SetMaxSize(int, int);
  13989. void SetMinAnchor(float, float);
  13990. void SetMinSize(int, int);
  13991. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13992. void SetPivot(float, float);
  13993. void SetPosition(int, int);
  13994. void SetSize(int, int);
  13995. bool SetStyle(const String&, XMLFile = null);
  13996. bool SetStyle(const XMLElement&);
  13997. bool SetStyleAuto(XMLFile = null);
  13998. void UpdateLayout();
  13999. const Variant& GetVar(const StringHash&);
  14000. // Properties:
  14001. bool animationEnabled;
  14002. /* readonly */
  14003. Array<Variant> attributeDefaults;
  14004. /* readonly */
  14005. Array<AttributeInfo> attributeInfos;
  14006. Array<Variant> attributes;
  14007. bool bringToBack;
  14008. bool bringToFront;
  14009. /* readonly */
  14010. String category;
  14011. /* readonly */
  14012. IntVector2 childOffset;
  14013. /* readonly */
  14014. Array<UIElement> children;
  14015. IntRect clipBorder;
  14016. bool clipChildren;
  14017. /* writeonly */
  14018. Color color;
  14019. /* readonly */
  14020. bool colorGradient;
  14021. Array<Color> colors;
  14022. /* readonly */
  14023. IntRect combinedScreenRect;
  14024. XMLFile defaultStyle;
  14025. /* readonly */
  14026. float derivedOpacity;
  14027. /* readonly */
  14028. uint dragButtonCombo;
  14029. /* readonly */
  14030. int dragButtonCount;
  14031. uint dragDropMode;
  14032. bool editable;
  14033. bool elementEventSender;
  14034. bool enableAnchor;
  14035. bool enabled;
  14036. /* readonly */
  14037. bool enabledSelf;
  14038. /* readonly */
  14039. bool fixedHeight;
  14040. /* readonly */
  14041. bool fixedSize;
  14042. /* readonly */
  14043. bool fixedWidth;
  14044. bool focus;
  14045. FocusMode focusMode;
  14046. int height;
  14047. HorizontalAlignment horizontalAlignment;
  14048. /* readonly */
  14049. bool hovering;
  14050. int indent;
  14051. int indentSpacing;
  14052. /* readonly */
  14053. int indentWidth;
  14054. bool internal;
  14055. IntRect layoutBorder;
  14056. Vector2 layoutFlexScale;
  14057. LayoutMode layoutMode;
  14058. int layoutSpacing;
  14059. Vector2 maxAnchor;
  14060. int maxHeight;
  14061. IntVector2 maxOffset;
  14062. IntVector2 maxSize;
  14063. int maxWidth;
  14064. Vector2 minAnchor;
  14065. int minHeight;
  14066. IntVector2 minOffset;
  14067. IntVector2 minSize;
  14068. int minWidth;
  14069. String name;
  14070. /* readonly */
  14071. uint numAllChildren;
  14072. /* readonly */
  14073. uint numAttributes;
  14074. /* readonly */
  14075. uint numChildren;
  14076. ObjectAnimation objectAnimation;
  14077. float opacity;
  14078. UIElement parent;
  14079. Vector2 pivot;
  14080. IntVector2 position;
  14081. int priority;
  14082. /* readonly */
  14083. int refs;
  14084. /* readonly */
  14085. UIElement root;
  14086. /* readonly */
  14087. IntVector2 screenPosition;
  14088. bool selected;
  14089. IntVector2 size;
  14090. bool sortChildren;
  14091. String style;
  14092. /* readonly */
  14093. Array<String> tags;
  14094. bool temporary;
  14095. TraversalMode traversalMode;
  14096. /* readonly */
  14097. StringHash type;
  14098. /* readonly */
  14099. String typeName;
  14100. bool useDerivedOpacity;
  14101. /* readonly */
  14102. VariantMap vars;
  14103. VerticalAlignment verticalAlignment;
  14104. bool visible;
  14105. /* readonly */
  14106. bool visibleEffective;
  14107. /* readonly */
  14108. int weakRefs;
  14109. int width;
  14110. };
  14111. class UISelectable
  14112. {
  14113. public:
  14114. UISelectable();
  14115. UISelectable(const String&in);
  14116. // Methods:
  14117. void AddChild(UIElement);
  14118. void AddTag(const String&);
  14119. void AddTags(const String&, int8 = ';');
  14120. void ApplyAttributes();
  14121. void BringToFront();
  14122. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14123. void DisableLayoutUpdate();
  14124. IntVector2 ElementToScreen(const IntVector2&);
  14125. void EnableLayoutUpdate();
  14126. uint FindChild(UIElement) const;
  14127. Variant GetAttribute(const String&) const;
  14128. ValueAnimation GetAttributeAnimation(const String&) const;
  14129. float GetAttributeAnimationSpeed(const String&) const;
  14130. float GetAttributeAnimationTime(const String&) const;
  14131. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14132. Variant GetAttributeDefault(const String&) const;
  14133. UIElement GetChild(const String&, bool = false) const;
  14134. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14135. Array<UIElement> GetChildren(bool = false) const;
  14136. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14137. UIElement GetElementEventSender() const;
  14138. bool GetInterceptNetworkUpdate(const String&) const;
  14139. uint GetNumChildren(bool) const;
  14140. bool HasSubscribedToEvent(Object, const String&);
  14141. bool HasSubscribedToEvent(const String&);
  14142. bool HasTag(const String&) const;
  14143. void InsertChild(uint, UIElement);
  14144. bool IsChildOf(UIElement) const;
  14145. bool IsInside(IntVector2, bool);
  14146. bool IsInsideCombined(IntVector2, bool);
  14147. bool Load(File);
  14148. bool Load(VectorBuffer&);
  14149. UIElement LoadChildXML(XMLFile, XMLFile);
  14150. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14151. bool LoadJSON(const JSONValue&);
  14152. bool LoadXML(File);
  14153. bool LoadXML(VectorBuffer&);
  14154. bool LoadXML(XMLFile, XMLFile);
  14155. bool LoadXML(const XMLElement&, XMLFile);
  14156. bool LoadXML(const XMLElement&);
  14157. void MarkNetworkUpdate() const;
  14158. void Remove();
  14159. void RemoveAllChildren();
  14160. void RemoveAllTags();
  14161. void RemoveAttributeAnimation(const String&);
  14162. void RemoveChild(UIElement, uint = 0);
  14163. void RemoveChild(uint);
  14164. void RemoveInstanceDefault();
  14165. void RemoveObjectAnimation();
  14166. bool RemoveTag(const String&);
  14167. void ResetDeepEnabled();
  14168. void ResetToDefault();
  14169. bool Save(File) const;
  14170. bool Save(VectorBuffer&) const;
  14171. bool SaveJSON(JSONValue&) const;
  14172. bool SaveXML(File, const String& = "\t");
  14173. bool SaveXML(VectorBuffer&, const String& = "\t");
  14174. bool SaveXML(XMLElement&) const;
  14175. IntVector2 ScreenToElement(const IntVector2&);
  14176. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14177. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14178. void SetAnimationTime(float);
  14179. bool SetAttribute(const String&, const Variant&);
  14180. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14181. void SetAttributeAnimationSpeed(const String&, float);
  14182. void SetAttributeAnimationTime(const String&, float);
  14183. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14184. void SetDeepEnabled(bool);
  14185. void SetEnabledRecursive(bool);
  14186. void SetFixedHeight(int);
  14187. void SetFixedSize(int, int);
  14188. void SetFixedWidth(int);
  14189. void SetInterceptNetworkUpdate(const String&, bool);
  14190. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14191. void SetMaxAnchor(float, float);
  14192. void SetMaxSize(int, int);
  14193. void SetMinAnchor(float, float);
  14194. void SetMinSize(int, int);
  14195. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14196. void SetPivot(float, float);
  14197. void SetPosition(int, int);
  14198. void SetSize(int, int);
  14199. bool SetStyle(const String&, XMLFile = null);
  14200. bool SetStyle(const XMLElement&);
  14201. bool SetStyleAuto(XMLFile = null);
  14202. void UpdateLayout();
  14203. const Variant& GetVar(const StringHash&);
  14204. // Properties:
  14205. bool animationEnabled;
  14206. /* readonly */
  14207. Array<Variant> attributeDefaults;
  14208. /* readonly */
  14209. Array<AttributeInfo> attributeInfos;
  14210. Array<Variant> attributes;
  14211. bool bringToBack;
  14212. bool bringToFront;
  14213. /* readonly */
  14214. String category;
  14215. /* readonly */
  14216. IntVector2 childOffset;
  14217. /* readonly */
  14218. Array<UIElement> children;
  14219. IntRect clipBorder;
  14220. bool clipChildren;
  14221. /* writeonly */
  14222. Color color;
  14223. /* readonly */
  14224. bool colorGradient;
  14225. Array<Color> colors;
  14226. /* readonly */
  14227. IntRect combinedScreenRect;
  14228. XMLFile defaultStyle;
  14229. /* readonly */
  14230. float derivedOpacity;
  14231. /* readonly */
  14232. uint dragButtonCombo;
  14233. /* readonly */
  14234. int dragButtonCount;
  14235. uint dragDropMode;
  14236. bool editable;
  14237. bool elementEventSender;
  14238. bool enableAnchor;
  14239. bool enabled;
  14240. /* readonly */
  14241. bool enabledSelf;
  14242. /* readonly */
  14243. bool fixedHeight;
  14244. /* readonly */
  14245. bool fixedSize;
  14246. /* readonly */
  14247. bool fixedWidth;
  14248. bool focus;
  14249. FocusMode focusMode;
  14250. int height;
  14251. HorizontalAlignment horizontalAlignment;
  14252. Color hoverColor;
  14253. /* readonly */
  14254. bool hovering;
  14255. int indent;
  14256. int indentSpacing;
  14257. /* readonly */
  14258. int indentWidth;
  14259. bool internal;
  14260. IntRect layoutBorder;
  14261. Vector2 layoutFlexScale;
  14262. LayoutMode layoutMode;
  14263. int layoutSpacing;
  14264. Vector2 maxAnchor;
  14265. int maxHeight;
  14266. IntVector2 maxOffset;
  14267. IntVector2 maxSize;
  14268. int maxWidth;
  14269. Vector2 minAnchor;
  14270. int minHeight;
  14271. IntVector2 minOffset;
  14272. IntVector2 minSize;
  14273. int minWidth;
  14274. String name;
  14275. /* readonly */
  14276. uint numAllChildren;
  14277. /* readonly */
  14278. uint numAttributes;
  14279. /* readonly */
  14280. uint numChildren;
  14281. ObjectAnimation objectAnimation;
  14282. float opacity;
  14283. UIElement parent;
  14284. Vector2 pivot;
  14285. IntVector2 position;
  14286. int priority;
  14287. /* readonly */
  14288. int refs;
  14289. /* readonly */
  14290. UIElement root;
  14291. /* readonly */
  14292. IntVector2 screenPosition;
  14293. bool selected;
  14294. Color selectionColor;
  14295. IntVector2 size;
  14296. bool sortChildren;
  14297. String style;
  14298. /* readonly */
  14299. Array<String> tags;
  14300. bool temporary;
  14301. TraversalMode traversalMode;
  14302. /* readonly */
  14303. StringHash type;
  14304. /* readonly */
  14305. String typeName;
  14306. bool useDerivedOpacity;
  14307. /* readonly */
  14308. VariantMap vars;
  14309. VerticalAlignment verticalAlignment;
  14310. bool visible;
  14311. /* readonly */
  14312. bool visibleEffective;
  14313. /* readonly */
  14314. int weakRefs;
  14315. int width;
  14316. };
  14317. class ValueAnimation
  14318. {
  14319. public:
  14320. ValueAnimation();
  14321. ValueAnimation(const String&in);
  14322. // Methods:
  14323. bool HasSubscribedToEvent(Object, const String&);
  14324. bool HasSubscribedToEvent(const String&);
  14325. bool Load(File);
  14326. bool Load(VectorBuffer&);
  14327. bool Load(const String&);
  14328. bool Save(File) const;
  14329. bool Save(VectorBuffer&) const;
  14330. bool Save(const String&) const;
  14331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14332. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  14333. void SetKeyFrame(float, const Variant&);
  14334. // Properties:
  14335. /* readonly */
  14336. String category;
  14337. InterpMethod interpolationMethod;
  14338. /* readonly */
  14339. uint memoryUse;
  14340. String name;
  14341. /* readonly */
  14342. int refs;
  14343. float splineTension;
  14344. /* readonly */
  14345. StringHash type;
  14346. /* readonly */
  14347. String typeName;
  14348. /* readonly */
  14349. uint useTimer;
  14350. VariantType valueType;
  14351. /* readonly */
  14352. int weakRefs;
  14353. };
  14354. class Variant
  14355. {
  14356. public:
  14357. ~Variant();
  14358. Variant();
  14359. Variant(const Variant&in);
  14360. Variant(int);
  14361. Variant(uint);
  14362. Variant(int64);
  14363. Variant(uint64);
  14364. Variant(const StringHash&in);
  14365. Variant(bool);
  14366. Variant(float);
  14367. Variant(double);
  14368. Variant(const Vector2&in);
  14369. Variant(const Vector3&in);
  14370. Variant(const Vector4&in);
  14371. Variant(const Quaternion&in);
  14372. Variant(const Color&in);
  14373. Variant(const String&in);
  14374. Variant(const ResourceRef&in);
  14375. Variant(const ResourceRefList&in);
  14376. Variant(const Variant[]@);
  14377. Variant(const String[]@);
  14378. Variant(const VariantMap&in);
  14379. Variant(const Rect&in);
  14380. Variant(const IntRect&in);
  14381. Variant(const IntVector2&in);
  14382. Variant(const IntVector3&in);
  14383. Variant(RefCounted@);
  14384. Variant(ScriptObject@);
  14385. Variant(const Matrix3&in);
  14386. Variant(const Matrix3x4&in);
  14387. Variant(const Matrix4&in);
  14388. Variant(const String&in, const String&in);
  14389. Variant(VariantType, const String&in);
  14390. Variant(const VectorBuffer&in);
  14391. // Methods:
  14392. void Clear();
  14393. const Color& GetColor() const;
  14394. void FromString(VariantType, const String&);
  14395. void FromString(const String&, const String&);
  14396. bool GetBool() const;
  14397. VectorBuffer GetBuffer() const;
  14398. double GetDouble() const;
  14399. float GetFloat() const;
  14400. int GetInt() const;
  14401. int GetInt64() const;
  14402. RefCounted GetPtr() const;
  14403. ScriptObject GetScriptObject() const;
  14404. StringHash GetStringHash() const;
  14405. Array<String> GetStringVector() const;
  14406. uint GetUInt() const;
  14407. uint64 GetUInt64() const;
  14408. Array<Variant> GetVariantVector() const;
  14409. const IntRect& GetIntRect() const;
  14410. const IntVector2& GetIntVector2() const;
  14411. const IntVector3& GetIntVector3() const;
  14412. const Matrix3& GetMatrix3() const;
  14413. const Matrix3x4& GetMatrix3x4() const;
  14414. const Matrix4& GetMatrix4() const;
  14415. const Quaternion& GetQuaternion() const;
  14416. const Rect& GetRect() const;
  14417. const ResourceRef& GetResourceRef() const;
  14418. const ResourceRefList& GetResourceRefList() const;
  14419. const String& GetString() const;
  14420. String ToString() const;
  14421. const VariantMap& GetVariantMap() const;
  14422. const Vector2& GetVector2() const;
  14423. const Vector3& GetVector3() const;
  14424. const Vector4& GetVector4() const;
  14425. // Properties:
  14426. /* readonly */
  14427. bool empty;
  14428. /* readonly */
  14429. VariantType type;
  14430. /* readonly */
  14431. String typeName;
  14432. /* readonly */
  14433. bool zero;
  14434. };
  14435. class VariantMap
  14436. {
  14437. public:
  14438. ~VariantMap();
  14439. VariantMap();
  14440. VariantMap(const VariantMap&in);
  14441. // Methods:
  14442. void Clear();
  14443. bool Contains(StringHash) const;
  14444. bool Contains(const String&) const;
  14445. bool Erase(StringHash);
  14446. bool Erase(const String&);
  14447. // Properties:
  14448. /* readonly */
  14449. Array<StringHash> keys;
  14450. /* readonly */
  14451. uint length;
  14452. /* readonly */
  14453. Array<Variant> values;
  14454. };
  14455. class Vector2
  14456. {
  14457. public:
  14458. Vector2();
  14459. Vector2(const Vector2&in);
  14460. Vector2(const IntVector2&in);
  14461. Vector2(float, float);
  14462. Vector2(float[]&inout);
  14463. // Methods:
  14464. Vector2 Abs() const;
  14465. float AbsDotProduct(const Vector2&) const;
  14466. float Angle(const Vector2&) const;
  14467. float DotProduct(const Vector2&) const;
  14468. bool Equals(const Vector2&) const;
  14469. bool IsNaN() const;
  14470. Vector2 Lerp(const Vector2&, float) const;
  14471. void Normalize();
  14472. Vector2 Normalized() const;
  14473. float ProjectOntoAxis(const Vector2&) const;
  14474. String ToString() const;
  14475. // Properties:
  14476. /* readonly */
  14477. Array<float> data;
  14478. /* readonly */
  14479. float length;
  14480. /* readonly */
  14481. float lengthSquared;
  14482. float x;
  14483. float y;
  14484. // Constants:
  14485. static const Vector2 DOWN;
  14486. static const Vector2 LEFT;
  14487. static const Vector2 ONE;
  14488. static const Vector2 RIGHT;
  14489. static const Vector2 UP;
  14490. static const Vector2 ZERO;
  14491. };
  14492. class Vector3
  14493. {
  14494. public:
  14495. Vector3();
  14496. Vector3(const Vector3&in);
  14497. Vector3(const Vector2&in, float);
  14498. Vector3(const Vector2&in);
  14499. Vector3(const IntVector3&in);
  14500. Vector3(float, float, float);
  14501. Vector3(float, float);
  14502. Vector3(float[]&inout);
  14503. // Methods:
  14504. Vector3 Abs() const;
  14505. float AbsDotProduct(const Vector3&) const;
  14506. float Angle(const Vector3&) const;
  14507. Vector3 CrossProduct(const Vector3&) const;
  14508. float DistanceToPlane(const Vector3&, const Vector3&) const;
  14509. float DistanceToPoint(const Vector3&) const;
  14510. float DotProduct(const Vector3&) const;
  14511. bool Equals(const Vector3&) const;
  14512. bool IsNaN() const;
  14513. Vector3 Lerp(const Vector3&, float) const;
  14514. void Normalize();
  14515. Vector3 Normalized() const;
  14516. Vector3 Orthogonalize(const Vector3&) const;
  14517. float ProjectOntoAxis(const Vector3&) const;
  14518. Vector3 ProjectOntoLine(const Vector3&, const Vector3&, bool = false) const;
  14519. Vector3 ProjectOntoPlane(const Vector3&, const Vector3&) const;
  14520. String ToString() const;
  14521. // Properties:
  14522. /* readonly */
  14523. Array<float> data;
  14524. /* readonly */
  14525. float length;
  14526. /* readonly */
  14527. float lengthSquared;
  14528. float x;
  14529. float y;
  14530. float z;
  14531. // Constants:
  14532. static const Vector3 BACK;
  14533. static const Vector3 DOWN;
  14534. static const Vector3 FORWARD;
  14535. static const Vector3 LEFT;
  14536. static const Vector3 ONE;
  14537. static const Vector3 RIGHT;
  14538. static const Vector3 UP;
  14539. static const Vector3 ZERO;
  14540. };
  14541. class Vector4
  14542. {
  14543. public:
  14544. Vector4();
  14545. Vector4(const Vector4&in);
  14546. Vector4(float, float, float, float);
  14547. Vector4(const Vector3&in, float);
  14548. Vector4(float[]&inout);
  14549. // Methods:
  14550. Vector4 Abs() const;
  14551. float AbsDotProduct(const Vector4&) const;
  14552. float DotProduct(const Vector4&) const;
  14553. bool Equals(const Vector4&) const;
  14554. bool IsNaN() const;
  14555. Vector4 Lerp(const Vector4&, float) const;
  14556. float ProjectOntoAxis(const Vector3&) const;
  14557. String ToString() const;
  14558. // Properties:
  14559. /* readonly */
  14560. Array<float> data;
  14561. float w;
  14562. float x;
  14563. float y;
  14564. float z;
  14565. };
  14566. class VectorBuffer
  14567. {
  14568. public:
  14569. ~VectorBuffer();
  14570. VectorBuffer();
  14571. VectorBuffer(const VectorBuffer&in);
  14572. VectorBuffer(Deserializer@, uint);
  14573. // Methods:
  14574. void Clear();
  14575. Array<uint8> Read(uint);
  14576. bool ReadBool();
  14577. BoundingBox ReadBoundingBox();
  14578. int8 ReadByte();
  14579. Color ReadColor();
  14580. double ReadDouble();
  14581. String ReadFileID();
  14582. float ReadFloat();
  14583. int ReadInt();
  14584. int64 ReadInt64();
  14585. IntRect ReadIntRect();
  14586. IntVector2 ReadIntVector2();
  14587. String ReadLine();
  14588. Matrix3 ReadMatrix3();
  14589. Matrix3x4 ReadMatrix3x4();
  14590. Matrix4 ReadMatrix4();
  14591. uint ReadNetID();
  14592. Quaternion ReadPackedQuaternion();
  14593. Vector3 ReadPackedVector3(float);
  14594. Quaternion ReadQuaternion();
  14595. int16 ReadShort();
  14596. String ReadString();
  14597. StringHash ReadStringHash();
  14598. uint8 ReadUByte();
  14599. uint ReadUInt();
  14600. uint64 ReadUInt64();
  14601. uint16 ReadUShort();
  14602. uint ReadVLE();
  14603. Variant ReadVariant();
  14604. VariantMap ReadVariantMap();
  14605. Vector2 ReadVector2();
  14606. Vector3 ReadVector3();
  14607. Vector4 ReadVector4();
  14608. VectorBuffer ReadVectorBuffer(uint);
  14609. void Resize(uint);
  14610. uint Seek(uint);
  14611. uint SeekRelative(int);
  14612. void SetData(Deserializer, uint);
  14613. uint Tell() const;
  14614. uint Write(Array<uint8>);
  14615. bool WriteBool(bool);
  14616. bool WriteBoundingBox(const BoundingBox&);
  14617. bool WriteByte(int8);
  14618. bool WriteColor(const Color&);
  14619. bool WriteDouble(double);
  14620. bool WriteFileID(const String&);
  14621. bool WriteFloat(float);
  14622. bool WriteInt(int);
  14623. bool WriteInt64(int64);
  14624. bool WriteIntRect(const IntRect&);
  14625. bool WriteIntVector2(const IntVector2&);
  14626. bool WriteLine(const String&);
  14627. bool WriteMatrix3(const Matrix3&);
  14628. bool WriteMatrix3x4(const Matrix3x4&);
  14629. bool WriteMatrix4(const Matrix4&);
  14630. bool WriteNetID(uint);
  14631. bool WritePackedQuaternion(const Quaternion&);
  14632. bool WritePackedVector3(const Vector3&, float);
  14633. bool WriteQuaternion(const Quaternion&);
  14634. bool WriteShort(int16);
  14635. bool WriteString(const String&);
  14636. bool WriteStringHash(const StringHash&);
  14637. bool WriteUByte(uint8);
  14638. bool WriteUInt(uint);
  14639. bool WriteUInt64(uint64);
  14640. bool WriteUShort(uint16);
  14641. bool WriteVLE(uint);
  14642. bool WriteVariant(const Variant&);
  14643. bool WriteVariantMap(const VariantMap&);
  14644. bool WriteVector2(const Vector2&);
  14645. bool WriteVector3(const Vector3&);
  14646. bool WriteVector4(const Vector4&);
  14647. bool WriteVectorBuffer(const VectorBuffer&);
  14648. // Properties:
  14649. /* readonly */
  14650. uint checksum;
  14651. /* readonly */
  14652. bool eof;
  14653. /* readonly */
  14654. String name;
  14655. /* readonly */
  14656. uint position;
  14657. /* readonly */
  14658. uint size;
  14659. };
  14660. class VertexBuffer
  14661. {
  14662. public:
  14663. VertexBuffer();
  14664. // Methods:
  14665. VectorBuffer GetData() const;
  14666. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  14667. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14668. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  14669. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14670. bool HasSubscribedToEvent(Object, const String&);
  14671. bool HasSubscribedToEvent(const String&);
  14672. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14673. bool SetData(VectorBuffer&);
  14674. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  14675. void SetSize(uint, Array<VertexElement>, bool = false);
  14676. void SetSize(uint, uint, bool = false);
  14677. // Properties:
  14678. /* readonly */
  14679. String category;
  14680. /* readonly */
  14681. bool dynamic;
  14682. /* readonly */
  14683. uint elementMask;
  14684. /* readonly */
  14685. Array<VertexElement> elements;
  14686. /* readonly */
  14687. int refs;
  14688. bool shadowed;
  14689. /* readonly */
  14690. StringHash type;
  14691. /* readonly */
  14692. String typeName;
  14693. /* readonly */
  14694. uint vertexCount;
  14695. /* readonly */
  14696. uint vertexSize;
  14697. /* readonly */
  14698. int weakRefs;
  14699. };
  14700. class VertexElement
  14701. {
  14702. public:
  14703. ~VertexElement();
  14704. VertexElement();
  14705. VertexElement(const VertexElement&in);
  14706. VertexElement(VertexElementType, VertexElementSemantic, uint8 index = 0, bool perInstance = false);
  14707. // Properties:
  14708. uint8 index;
  14709. uint offset;
  14710. bool perInstance;
  14711. VertexElementSemantic semantic;
  14712. VertexElementType type;
  14713. };
  14714. class View3D
  14715. {
  14716. public:
  14717. View3D();
  14718. View3D(const String&in);
  14719. // Methods:
  14720. void AddChild(UIElement);
  14721. void AddTag(const String&);
  14722. void AddTags(const String&, int8 = ';');
  14723. void ApplyAttributes();
  14724. void BringToFront();
  14725. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14726. void DisableLayoutUpdate();
  14727. IntVector2 ElementToScreen(const IntVector2&);
  14728. void EnableLayoutUpdate();
  14729. uint FindChild(UIElement) const;
  14730. Variant GetAttribute(const String&) const;
  14731. ValueAnimation GetAttributeAnimation(const String&) const;
  14732. float GetAttributeAnimationSpeed(const String&) const;
  14733. float GetAttributeAnimationTime(const String&) const;
  14734. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14735. Variant GetAttributeDefault(const String&) const;
  14736. UIElement GetChild(const String&, bool = false) const;
  14737. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14738. Array<UIElement> GetChildren(bool = false) const;
  14739. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14740. UIElement GetElementEventSender() const;
  14741. bool GetInterceptNetworkUpdate(const String&) const;
  14742. uint GetNumChildren(bool) const;
  14743. bool HasSubscribedToEvent(Object, const String&);
  14744. bool HasSubscribedToEvent(const String&);
  14745. bool HasTag(const String&) const;
  14746. void InsertChild(uint, UIElement);
  14747. bool IsChildOf(UIElement) const;
  14748. bool IsInside(IntVector2, bool);
  14749. bool IsInsideCombined(IntVector2, bool);
  14750. bool Load(File);
  14751. bool Load(VectorBuffer&);
  14752. UIElement LoadChildXML(XMLFile, XMLFile);
  14753. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14754. bool LoadJSON(const JSONValue&);
  14755. bool LoadXML(File);
  14756. bool LoadXML(VectorBuffer&);
  14757. bool LoadXML(XMLFile, XMLFile);
  14758. bool LoadXML(const XMLElement&, XMLFile);
  14759. bool LoadXML(const XMLElement&);
  14760. void MarkNetworkUpdate() const;
  14761. void QueueUpdate();
  14762. void Remove();
  14763. void RemoveAllChildren();
  14764. void RemoveAllTags();
  14765. void RemoveAttributeAnimation(const String&);
  14766. void RemoveChild(UIElement, uint = 0);
  14767. void RemoveChild(uint);
  14768. void RemoveInstanceDefault();
  14769. void RemoveObjectAnimation();
  14770. bool RemoveTag(const String&);
  14771. void ResetDeepEnabled();
  14772. void ResetToDefault();
  14773. bool Save(File) const;
  14774. bool Save(VectorBuffer&) const;
  14775. bool SaveJSON(JSONValue&) const;
  14776. bool SaveXML(File, const String& = "\t");
  14777. bool SaveXML(VectorBuffer&, const String& = "\t");
  14778. bool SaveXML(XMLElement&) const;
  14779. IntVector2 ScreenToElement(const IntVector2&);
  14780. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14781. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14782. void SetAnimationTime(float);
  14783. bool SetAttribute(const String&, const Variant&);
  14784. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14785. void SetAttributeAnimationSpeed(const String&, float);
  14786. void SetAttributeAnimationTime(const String&, float);
  14787. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14788. void SetDeepEnabled(bool);
  14789. void SetEnabledRecursive(bool);
  14790. void SetFixedHeight(int);
  14791. void SetFixedSize(int, int);
  14792. void SetFixedWidth(int);
  14793. void SetFullImageRect();
  14794. void SetHoverOffset(int, int);
  14795. void SetInterceptNetworkUpdate(const String&, bool);
  14796. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14797. void SetMaxAnchor(float, float);
  14798. void SetMaxSize(int, int);
  14799. void SetMinAnchor(float, float);
  14800. void SetMinSize(int, int);
  14801. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14802. void SetPivot(float, float);
  14803. void SetPosition(int, int);
  14804. void SetSize(int, int);
  14805. bool SetStyle(const String&, XMLFile = null);
  14806. bool SetStyle(const XMLElement&);
  14807. bool SetStyleAuto(XMLFile = null);
  14808. void SetView(Scene, Camera, bool = true);
  14809. void UpdateLayout();
  14810. const Variant& GetVar(const StringHash&);
  14811. // Properties:
  14812. bool animationEnabled;
  14813. /* readonly */
  14814. Array<Variant> attributeDefaults;
  14815. /* readonly */
  14816. Array<AttributeInfo> attributeInfos;
  14817. Array<Variant> attributes;
  14818. bool autoUpdate;
  14819. BlendMode blendMode;
  14820. IntRect border;
  14821. bool bringToBack;
  14822. bool bringToFront;
  14823. /* readonly */
  14824. Node cameraNode;
  14825. /* readonly */
  14826. String category;
  14827. /* readonly */
  14828. IntVector2 childOffset;
  14829. /* readonly */
  14830. Array<UIElement> children;
  14831. IntRect clipBorder;
  14832. bool clipChildren;
  14833. /* writeonly */
  14834. Color color;
  14835. /* readonly */
  14836. bool colorGradient;
  14837. Array<Color> colors;
  14838. /* readonly */
  14839. IntRect combinedScreenRect;
  14840. XMLFile defaultStyle;
  14841. /* readonly */
  14842. Texture2D depthTexture;
  14843. /* readonly */
  14844. float derivedOpacity;
  14845. /* readonly */
  14846. uint dragButtonCombo;
  14847. /* readonly */
  14848. int dragButtonCount;
  14849. uint dragDropMode;
  14850. bool editable;
  14851. bool elementEventSender;
  14852. bool enableAnchor;
  14853. bool enabled;
  14854. /* readonly */
  14855. bool enabledSelf;
  14856. /* readonly */
  14857. bool fixedHeight;
  14858. bool fixedHeightResizing;
  14859. /* readonly */
  14860. bool fixedSize;
  14861. /* readonly */
  14862. bool fixedWidth;
  14863. bool fixedWidthResizing;
  14864. bool focus;
  14865. FocusMode focusMode;
  14866. uint format;
  14867. int height;
  14868. HorizontalAlignment horizontalAlignment;
  14869. IntVector2 hoverOffset;
  14870. /* readonly */
  14871. bool hovering;
  14872. IntRect imageBorder;
  14873. IntRect imageRect;
  14874. int indent;
  14875. int indentSpacing;
  14876. /* readonly */
  14877. int indentWidth;
  14878. bool internal;
  14879. IntRect layoutBorder;
  14880. Vector2 layoutFlexScale;
  14881. LayoutMode layoutMode;
  14882. int layoutSpacing;
  14883. Vector2 maxAnchor;
  14884. int maxHeight;
  14885. IntVector2 maxOffset;
  14886. IntVector2 maxSize;
  14887. int maxWidth;
  14888. Vector2 minAnchor;
  14889. int minHeight;
  14890. IntVector2 minOffset;
  14891. IntVector2 minSize;
  14892. int minWidth;
  14893. bool modal;
  14894. bool modalAutoDismiss;
  14895. Color modalFrameColor;
  14896. IntVector2 modalFrameSize;
  14897. Color modalShadeColor;
  14898. bool movable;
  14899. String name;
  14900. /* readonly */
  14901. uint numAllChildren;
  14902. /* readonly */
  14903. uint numAttributes;
  14904. /* readonly */
  14905. uint numChildren;
  14906. ObjectAnimation objectAnimation;
  14907. float opacity;
  14908. UIElement parent;
  14909. Vector2 pivot;
  14910. IntVector2 position;
  14911. int priority;
  14912. /* readonly */
  14913. int refs;
  14914. /* readonly */
  14915. Texture2D renderTexture;
  14916. bool resizable;
  14917. IntRect resizeBorder;
  14918. /* readonly */
  14919. UIElement root;
  14920. /* readonly */
  14921. Scene scene;
  14922. /* readonly */
  14923. IntVector2 screenPosition;
  14924. bool selected;
  14925. IntVector2 size;
  14926. bool sortChildren;
  14927. String style;
  14928. /* readonly */
  14929. Array<String> tags;
  14930. bool temporary;
  14931. Texture texture;
  14932. bool tiled;
  14933. TraversalMode traversalMode;
  14934. /* readonly */
  14935. StringHash type;
  14936. /* readonly */
  14937. String typeName;
  14938. bool useDerivedOpacity;
  14939. /* readonly */
  14940. VariantMap vars;
  14941. VerticalAlignment verticalAlignment;
  14942. /* readonly */
  14943. Viewport viewport;
  14944. bool visible;
  14945. /* readonly */
  14946. bool visibleEffective;
  14947. /* readonly */
  14948. int weakRefs;
  14949. int width;
  14950. };
  14951. class Viewport
  14952. {
  14953. public:
  14954. Viewport();
  14955. Viewport(Scene&, Camera&, RenderPath& renderPath = null);
  14956. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& renderPath = null);
  14957. // Methods:
  14958. Ray GetScreenRay(int, int) const;
  14959. bool HasSubscribedToEvent(Object, const String&);
  14960. bool HasSubscribedToEvent(const String&);
  14961. Vector3 ScreenToWorldPoint(int, int, float) const;
  14962. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14963. void SetRenderPath(XMLFile);
  14964. IntVector2 WorldToScreenPoint(const Vector3&) const;
  14965. // Properties:
  14966. Camera camera;
  14967. /* readonly */
  14968. String category;
  14969. Camera cullCamera;
  14970. bool drawDebug;
  14971. IntRect rect;
  14972. /* readonly */
  14973. int refs;
  14974. RenderPath renderPath;
  14975. Scene scene;
  14976. /* readonly */
  14977. StringHash type;
  14978. /* readonly */
  14979. String typeName;
  14980. /* readonly */
  14981. int weakRefs;
  14982. };
  14983. class WeakHandle
  14984. {
  14985. public:
  14986. ~WeakHandle();
  14987. WeakHandle();
  14988. WeakHandle(const WeakHandle&in);
  14989. WeakHandle(RefCounted@);
  14990. // Methods:
  14991. RefCounted Get() const;
  14992. // Properties:
  14993. /* readonly */
  14994. bool expired;
  14995. /* readonly */
  14996. int refs;
  14997. /* readonly */
  14998. int weakRefs;
  14999. };
  15000. class Window
  15001. {
  15002. public:
  15003. Window();
  15004. Window(const String&in);
  15005. // Methods:
  15006. void AddChild(UIElement);
  15007. void AddTag(const String&);
  15008. void AddTags(const String&, int8 = ';');
  15009. void ApplyAttributes();
  15010. void BringToFront();
  15011. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  15012. void DisableLayoutUpdate();
  15013. IntVector2 ElementToScreen(const IntVector2&);
  15014. void EnableLayoutUpdate();
  15015. uint FindChild(UIElement) const;
  15016. Variant GetAttribute(const String&) const;
  15017. ValueAnimation GetAttributeAnimation(const String&) const;
  15018. float GetAttributeAnimationSpeed(const String&) const;
  15019. float GetAttributeAnimationTime(const String&) const;
  15020. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15021. Variant GetAttributeDefault(const String&) const;
  15022. UIElement GetChild(const String&, bool = false) const;
  15023. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  15024. Array<UIElement> GetChildren(bool = false) const;
  15025. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  15026. UIElement GetElementEventSender() const;
  15027. bool GetInterceptNetworkUpdate(const String&) const;
  15028. uint GetNumChildren(bool) const;
  15029. bool HasSubscribedToEvent(Object, const String&);
  15030. bool HasSubscribedToEvent(const String&);
  15031. bool HasTag(const String&) const;
  15032. void InsertChild(uint, UIElement);
  15033. bool IsChildOf(UIElement) const;
  15034. bool IsInside(IntVector2, bool);
  15035. bool IsInsideCombined(IntVector2, bool);
  15036. bool Load(File);
  15037. bool Load(VectorBuffer&);
  15038. UIElement LoadChildXML(XMLFile, XMLFile);
  15039. UIElement LoadChildXML(const XMLElement&, XMLFile);
  15040. bool LoadJSON(const JSONValue&);
  15041. bool LoadXML(File);
  15042. bool LoadXML(VectorBuffer&);
  15043. bool LoadXML(XMLFile, XMLFile);
  15044. bool LoadXML(const XMLElement&, XMLFile);
  15045. bool LoadXML(const XMLElement&);
  15046. void MarkNetworkUpdate() const;
  15047. void Remove();
  15048. void RemoveAllChildren();
  15049. void RemoveAllTags();
  15050. void RemoveAttributeAnimation(const String&);
  15051. void RemoveChild(UIElement, uint = 0);
  15052. void RemoveChild(uint);
  15053. void RemoveInstanceDefault();
  15054. void RemoveObjectAnimation();
  15055. bool RemoveTag(const String&);
  15056. void ResetDeepEnabled();
  15057. void ResetToDefault();
  15058. bool Save(File) const;
  15059. bool Save(VectorBuffer&) const;
  15060. bool SaveJSON(JSONValue&) const;
  15061. bool SaveXML(File, const String& = "\t");
  15062. bool SaveXML(VectorBuffer&, const String& = "\t");
  15063. bool SaveXML(XMLElement&) const;
  15064. IntVector2 ScreenToElement(const IntVector2&);
  15065. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15066. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  15067. void SetAnimationTime(float);
  15068. bool SetAttribute(const String&, const Variant&);
  15069. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15070. void SetAttributeAnimationSpeed(const String&, float);
  15071. void SetAttributeAnimationTime(const String&, float);
  15072. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15073. void SetDeepEnabled(bool);
  15074. void SetEnabledRecursive(bool);
  15075. void SetFixedHeight(int);
  15076. void SetFixedSize(int, int);
  15077. void SetFixedWidth(int);
  15078. void SetFullImageRect();
  15079. void SetHoverOffset(int, int);
  15080. void SetInterceptNetworkUpdate(const String&, bool);
  15081. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  15082. void SetMaxAnchor(float, float);
  15083. void SetMaxSize(int, int);
  15084. void SetMinAnchor(float, float);
  15085. void SetMinSize(int, int);
  15086. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  15087. void SetPivot(float, float);
  15088. void SetPosition(int, int);
  15089. void SetSize(int, int);
  15090. bool SetStyle(const String&, XMLFile = null);
  15091. bool SetStyle(const XMLElement&);
  15092. bool SetStyleAuto(XMLFile = null);
  15093. void UpdateLayout();
  15094. const Variant& GetVar(const StringHash&);
  15095. // Properties:
  15096. bool animationEnabled;
  15097. /* readonly */
  15098. Array<Variant> attributeDefaults;
  15099. /* readonly */
  15100. Array<AttributeInfo> attributeInfos;
  15101. Array<Variant> attributes;
  15102. BlendMode blendMode;
  15103. IntRect border;
  15104. bool bringToBack;
  15105. bool bringToFront;
  15106. /* readonly */
  15107. String category;
  15108. /* readonly */
  15109. IntVector2 childOffset;
  15110. /* readonly */
  15111. Array<UIElement> children;
  15112. IntRect clipBorder;
  15113. bool clipChildren;
  15114. /* writeonly */
  15115. Color color;
  15116. /* readonly */
  15117. bool colorGradient;
  15118. Array<Color> colors;
  15119. /* readonly */
  15120. IntRect combinedScreenRect;
  15121. XMLFile defaultStyle;
  15122. /* readonly */
  15123. float derivedOpacity;
  15124. /* readonly */
  15125. uint dragButtonCombo;
  15126. /* readonly */
  15127. int dragButtonCount;
  15128. uint dragDropMode;
  15129. bool editable;
  15130. bool elementEventSender;
  15131. bool enableAnchor;
  15132. bool enabled;
  15133. /* readonly */
  15134. bool enabledSelf;
  15135. /* readonly */
  15136. bool fixedHeight;
  15137. bool fixedHeightResizing;
  15138. /* readonly */
  15139. bool fixedSize;
  15140. /* readonly */
  15141. bool fixedWidth;
  15142. bool fixedWidthResizing;
  15143. bool focus;
  15144. FocusMode focusMode;
  15145. int height;
  15146. HorizontalAlignment horizontalAlignment;
  15147. IntVector2 hoverOffset;
  15148. /* readonly */
  15149. bool hovering;
  15150. IntRect imageBorder;
  15151. IntRect imageRect;
  15152. int indent;
  15153. int indentSpacing;
  15154. /* readonly */
  15155. int indentWidth;
  15156. bool internal;
  15157. IntRect layoutBorder;
  15158. Vector2 layoutFlexScale;
  15159. LayoutMode layoutMode;
  15160. int layoutSpacing;
  15161. Vector2 maxAnchor;
  15162. int maxHeight;
  15163. IntVector2 maxOffset;
  15164. IntVector2 maxSize;
  15165. int maxWidth;
  15166. Vector2 minAnchor;
  15167. int minHeight;
  15168. IntVector2 minOffset;
  15169. IntVector2 minSize;
  15170. int minWidth;
  15171. bool modal;
  15172. bool modalAutoDismiss;
  15173. Color modalFrameColor;
  15174. IntVector2 modalFrameSize;
  15175. Color modalShadeColor;
  15176. bool movable;
  15177. String name;
  15178. /* readonly */
  15179. uint numAllChildren;
  15180. /* readonly */
  15181. uint numAttributes;
  15182. /* readonly */
  15183. uint numChildren;
  15184. ObjectAnimation objectAnimation;
  15185. float opacity;
  15186. UIElement parent;
  15187. Vector2 pivot;
  15188. IntVector2 position;
  15189. int priority;
  15190. /* readonly */
  15191. int refs;
  15192. bool resizable;
  15193. IntRect resizeBorder;
  15194. /* readonly */
  15195. UIElement root;
  15196. /* readonly */
  15197. IntVector2 screenPosition;
  15198. bool selected;
  15199. IntVector2 size;
  15200. bool sortChildren;
  15201. String style;
  15202. /* readonly */
  15203. Array<String> tags;
  15204. bool temporary;
  15205. Texture texture;
  15206. bool tiled;
  15207. TraversalMode traversalMode;
  15208. /* readonly */
  15209. StringHash type;
  15210. /* readonly */
  15211. String typeName;
  15212. bool useDerivedOpacity;
  15213. /* readonly */
  15214. VariantMap vars;
  15215. VerticalAlignment verticalAlignment;
  15216. bool visible;
  15217. /* readonly */
  15218. bool visibleEffective;
  15219. /* readonly */
  15220. int weakRefs;
  15221. int width;
  15222. };
  15223. class XMLElement
  15224. {
  15225. public:
  15226. ~XMLElement();
  15227. XMLElement();
  15228. XMLElement(const XMLElement&in);
  15229. // Methods:
  15230. bool AppendChild(XMLElement, bool);
  15231. XMLElement CreateChild(const String&);
  15232. String GetAttribute(const String& = String ( )) const;
  15233. String GetAttributeLower(const String&) const;
  15234. Array<String> GetAttributeNames() const;
  15235. String GetAttributeUpper(const String&) const;
  15236. bool GetBool(const String&) const;
  15237. BoundingBox GetBoundingBox() const;
  15238. XMLElement GetChild(const String& = String ( )) const;
  15239. Color GetColor(const String&) const;
  15240. double GetDouble(const String&) const;
  15241. float GetFloat(const String&) const;
  15242. int GetInt(const String&) const;
  15243. int64 GetInt64(const String&) const;
  15244. IntRect GetIntRect(const String&) const;
  15245. IntVector2 GetIntVector2(const String&) const;
  15246. IntVector3 GetIntVector3(const String&) const;
  15247. Matrix3 GetMatrix3(const String&) const;
  15248. Matrix3x4 GetMatrix3x4(const String&) const;
  15249. Matrix4 GetMatrix4(const String&) const;
  15250. XMLElement GetNext(const String& = String ( )) const;
  15251. XMLElement GetOrCreateChild(const String&);
  15252. Quaternion GetQuaternion(const String&) const;
  15253. ResourceRef GetResourceRef() const;
  15254. ResourceRefList GetResourceRefList() const;
  15255. uint GetUInt(const String&) const;
  15256. uint64 GetUInt64(const String&) const;
  15257. String GetValue() const;
  15258. Variant GetVariant() const;
  15259. VariantMap GetVariantMap() const;
  15260. Array<Variant> GetVariantVector() const;
  15261. Vector2 GetVector2(const String&) const;
  15262. Vector3 GetVector3(const String&) const;
  15263. Vector4 GetVector4(const String&) const;
  15264. Variant GetVectorVariant(const String&) const;
  15265. bool HasAttribute(const String&) const;
  15266. bool HasChild(const String&) const;
  15267. bool Remove();
  15268. bool RemoveAttribute(const String& = String ( ));
  15269. bool RemoveChild(const String&);
  15270. bool RemoveChild(const XMLElement&);
  15271. bool RemoveChildren(const String& = String ( ));
  15272. XPathResultSet Select(const String&);
  15273. XPathResultSet SelectPrepared(const XPathQuery&);
  15274. XMLElement SelectSingle(const String&);
  15275. XMLElement SelectSinglePrepared(const XPathQuery&);
  15276. bool SetAttribute(const String&);
  15277. bool SetAttribute(const String&, const String&);
  15278. bool SetBool(const String&, bool);
  15279. bool SetBoundingBox(const BoundingBox&);
  15280. bool SetColor(const String&, const Color&);
  15281. bool SetDouble(const String&, double);
  15282. bool SetFloat(const String&, float);
  15283. bool SetInt(const String&, int);
  15284. bool SetInt64(const String&, int64);
  15285. bool SetIntRect(const String&, const IntRect&);
  15286. bool SetIntVector2(const String&, const IntVector2&);
  15287. bool SetIntVector3(const String&, const IntVector3&);
  15288. bool SetMatrix3(const String&, const Matrix3&);
  15289. bool SetMatrix3x4(const String&, const Matrix3x4&);
  15290. bool SetMatrix4(const String&, const Matrix4&);
  15291. bool SetQuaternion(const String&, const Quaternion&);
  15292. bool SetResourceRef(const String&, const ResourceRef&);
  15293. bool SetResourceRefList(const String&, const ResourceRefList&);
  15294. bool SetUInt(const String&, uint);
  15295. bool SetUInt64(const String&, uint64);
  15296. bool SetValue(const String&);
  15297. bool SetVariant(const Variant&);
  15298. bool SetVariantMap(const VariantMap&);
  15299. bool SetVariantVector(Array<Variant>);
  15300. bool SetVector2(const String&, const Vector2&);
  15301. bool SetVector3(const String&, const Vector3&);
  15302. bool SetVector4(const String&, const Vector4&);
  15303. bool SetVectorVariant(const String&, const Variant&);
  15304. // Properties:
  15305. /* readonly */
  15306. XMLFile file;
  15307. /* readonly */
  15308. bool isNull;
  15309. /* readonly */
  15310. String name;
  15311. /* readonly */
  15312. XMLElement nextResult;
  15313. /* readonly */
  15314. bool notNull;
  15315. /* readonly */
  15316. uint numAttributes;
  15317. /* readonly */
  15318. XMLElement parent;
  15319. String value;
  15320. };
  15321. class XMLFile
  15322. {
  15323. public:
  15324. XMLFile();
  15325. XMLFile(const String&in);
  15326. // Methods:
  15327. XMLElement CreateRoot(const String&);
  15328. bool FromString(const String&);
  15329. XMLElement GetOrCreateRoot(const String&);
  15330. XMLElement GetRoot(const String& = String ( ));
  15331. bool HasSubscribedToEvent(Object, const String&);
  15332. bool HasSubscribedToEvent(const String&);
  15333. bool Load(File);
  15334. bool Load(VectorBuffer&);
  15335. bool Load(const String&);
  15336. void Patch(XMLFile);
  15337. void Patch(const XMLElement&);
  15338. bool Save(File) const;
  15339. bool Save(File, const String&) const;
  15340. bool Save(VectorBuffer&) const;
  15341. bool Save(const String&) const;
  15342. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15343. String ToString(const String& = String ( "\t" )) const;
  15344. // Properties:
  15345. /* readonly */
  15346. String category;
  15347. /* readonly */
  15348. uint memoryUse;
  15349. String name;
  15350. /* readonly */
  15351. int refs;
  15352. /* readonly */
  15353. XMLElement root;
  15354. /* readonly */
  15355. StringHash type;
  15356. /* readonly */
  15357. String typeName;
  15358. /* readonly */
  15359. uint useTimer;
  15360. /* readonly */
  15361. int weakRefs;
  15362. };
  15363. class XPathQuery
  15364. {
  15365. public:
  15366. ~XPathQuery();
  15367. XPathQuery();
  15368. XPathQuery(const String&in, const String&inout arg1 = String ( ));
  15369. // Methods:
  15370. void Bind();
  15371. void Clear();
  15372. XPathResultSet Evaluate(const XMLElement&);
  15373. bool EvaluateToBool(const XMLElement&);
  15374. float EvaluateToFloat(const XMLElement&);
  15375. String EvaluateToString(const XMLElement&);
  15376. bool SetQuery(const String&, const String& = String ( ), bool = true);
  15377. bool SetVariable(const String&, bool);
  15378. bool SetVariable(const String&, const String&);
  15379. bool SetVariable(const String&, const XPathResultSet&);
  15380. bool SetVariable(const String&, float);
  15381. // Properties:
  15382. String query;
  15383. };
  15384. class XPathResultSet
  15385. {
  15386. public:
  15387. ~XPathResultSet();
  15388. XPathResultSet();
  15389. XPathResultSet(const XPathResultSet&in);
  15390. // Properties:
  15391. /* readonly */
  15392. bool empty;
  15393. /* readonly */
  15394. XMLElement firstResult;
  15395. /* readonly */
  15396. uint size;
  15397. };
  15398. class Zone
  15399. {
  15400. public:
  15401. // Methods:
  15402. void ApplyAttributes();
  15403. void DrawDebugGeometry(DebugRenderer, bool);
  15404. Variant GetAttribute(const String&) const;
  15405. ValueAnimation GetAttributeAnimation(const String&) const;
  15406. float GetAttributeAnimationSpeed(const String&) const;
  15407. float GetAttributeAnimationTime(const String&) const;
  15408. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15409. Variant GetAttributeDefault(const String&) const;
  15410. bool GetInterceptNetworkUpdate(const String&) const;
  15411. bool HasSubscribedToEvent(Object, const String&);
  15412. bool HasSubscribedToEvent(const String&);
  15413. bool IsInView(Camera) const;
  15414. bool Load(File);
  15415. bool Load(VectorBuffer&);
  15416. bool LoadJSON(const JSONValue&);
  15417. bool LoadXML(const XMLElement&);
  15418. void MarkNetworkUpdate() const;
  15419. void Remove();
  15420. void RemoveAttributeAnimation(const String&);
  15421. void RemoveInstanceDefault();
  15422. void RemoveObjectAnimation();
  15423. void ResetToDefault();
  15424. bool Save(File) const;
  15425. bool Save(VectorBuffer&) const;
  15426. bool SaveJSON(JSONValue&) const;
  15427. bool SaveXML(XMLElement&) const;
  15428. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15429. void SetAnimationTime(float);
  15430. bool SetAttribute(const String&, const Variant&);
  15431. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15432. void SetAttributeAnimationSpeed(const String&, float);
  15433. void SetAttributeAnimationTime(const String&, float);
  15434. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15435. void SetInterceptNetworkUpdate(const String&, bool);
  15436. // Properties:
  15437. Color ambientColor;
  15438. /* readonly */
  15439. Color ambientEndColor;
  15440. bool ambientGradient;
  15441. /* readonly */
  15442. Color ambientStartColor;
  15443. bool animationEnabled;
  15444. /* readonly */
  15445. Array<Variant> attributeDefaults;
  15446. /* readonly */
  15447. Array<AttributeInfo> attributeInfos;
  15448. Array<Variant> attributes;
  15449. BoundingBox boundingBox;
  15450. bool castShadows;
  15451. /* readonly */
  15452. String category;
  15453. float drawDistance;
  15454. bool enabled;
  15455. /* readonly */
  15456. bool enabledEffective;
  15457. Color fogColor;
  15458. float fogEnd;
  15459. float fogHeight;
  15460. float fogHeightScale;
  15461. float fogStart;
  15462. bool heightFog;
  15463. /* readonly */
  15464. uint id;
  15465. /* readonly */
  15466. bool inView;
  15467. /* readonly */
  15468. Matrix3x4 inverseWorldTransform;
  15469. uint lightMask;
  15470. float lodBias;
  15471. uint maxLights;
  15472. /* readonly */
  15473. Node node;
  15474. /* readonly */
  15475. uint numAttributes;
  15476. ObjectAnimation objectAnimation;
  15477. bool occludee;
  15478. bool occluder;
  15479. bool override;
  15480. int priority;
  15481. /* readonly */
  15482. int refs;
  15483. /* readonly */
  15484. bool replicated;
  15485. float shadowDistance;
  15486. uint shadowMask;
  15487. bool temporary;
  15488. /* readonly */
  15489. StringHash type;
  15490. /* readonly */
  15491. String typeName;
  15492. uint viewMask;
  15493. /* readonly */
  15494. int weakRefs;
  15495. /* readonly */
  15496. BoundingBox worldBoundingBox;
  15497. uint zoneMask;
  15498. Texture zoneTexture;
  15499. };
  15500. // Enumerations
  15501. enum AnimationBlendMode
  15502. {
  15503. ABM_LERP,
  15504. ABM_ADDITIVE,
  15505. };
  15506. enum AnimationChannel
  15507. {
  15508. CHANNEL_POSITION,
  15509. CHANNEL_ROTATION,
  15510. CHANNEL_SCALE,
  15511. };
  15512. enum AttributeMode
  15513. {
  15514. AM_FILE,
  15515. AM_NET,
  15516. AM_DEFAULT,
  15517. AM_LATESTDATA,
  15518. AM_NOEDIT,
  15519. AM_NODEID,
  15520. AM_COMPONENTID,
  15521. AM_NODEIDVECTOR,
  15522. AM_FILEREADONLY,
  15523. };
  15524. enum AutoRemoveMode
  15525. {
  15526. REMOVE_DISABLED,
  15527. REMOVE_COMPONENT,
  15528. REMOVE_NODE,
  15529. };
  15530. enum BlendMode
  15531. {
  15532. BLEND_REPLACE,
  15533. BLEND_ADD,
  15534. BLEND_MULTIPLY,
  15535. BLEND_ALPHA,
  15536. BLEND_ADDALPHA,
  15537. BLEND_PREMULALPHA,
  15538. BLEND_INVDESTALPHA,
  15539. BLEND_SUBTRACT,
  15540. BLEND_SUBTRACTALPHA,
  15541. };
  15542. enum BodyType2D
  15543. {
  15544. BT_STATIC,
  15545. BT_KINEMATIC,
  15546. BT_DYNAMIC,
  15547. };
  15548. enum ClearTarget
  15549. {
  15550. CLEAR_COLOR,
  15551. CLEAR_DEPTH,
  15552. CLEAR_STENCIL,
  15553. };
  15554. enum CollisionEventMode
  15555. {
  15556. COLLISION_NEVER,
  15557. COLLISION_ACTIVE,
  15558. COLLISION_ALWAYS,
  15559. };
  15560. enum CompareMode
  15561. {
  15562. CMP_ALWAYS,
  15563. CMP_EQUAL,
  15564. CMP_NOTEQUAL,
  15565. CMP_LESS,
  15566. CMP_LESSEQUAL,
  15567. CMP_GREATER,
  15568. CMP_GREATEREQUAL,
  15569. };
  15570. enum CompressedFormat
  15571. {
  15572. CF_NONE,
  15573. CF_RGBA,
  15574. CF_DXT1,
  15575. CF_DXT3,
  15576. CF_DXT5,
  15577. CF_ETC1,
  15578. CF_PVRTC_RGB_2BPP,
  15579. CF_PVRTC_RGBA_2BPP,
  15580. CF_PVRTC_RGB_4BPP,
  15581. CF_PVRTC_RGBA_4BPP,
  15582. };
  15583. enum ConstraintType
  15584. {
  15585. CONSTRAINT_POINT,
  15586. CONSTRAINT_HINGE,
  15587. CONSTRAINT_SLIDER,
  15588. CONSTRAINT_CONETWIST,
  15589. };
  15590. enum ControllerAxis
  15591. {
  15592. CONTROLLER_AXIS_LEFTX,
  15593. CONTROLLER_AXIS_LEFTY,
  15594. CONTROLLER_AXIS_RIGHTX,
  15595. CONTROLLER_AXIS_RIGHTY,
  15596. CONTROLLER_AXIS_TRIGGERLEFT,
  15597. CONTROLLER_AXIS_TRIGGERRIGHT,
  15598. };
  15599. enum ControllerButton
  15600. {
  15601. CONTROLLER_BUTTON_A,
  15602. CONTROLLER_BUTTON_B,
  15603. CONTROLLER_BUTTON_X,
  15604. CONTROLLER_BUTTON_Y,
  15605. CONTROLLER_BUTTON_BACK,
  15606. CONTROLLER_BUTTON_GUIDE,
  15607. CONTROLLER_BUTTON_START,
  15608. CONTROLLER_BUTTON_LEFTSTICK,
  15609. CONTROLLER_BUTTON_RIGHTSTICK,
  15610. CONTROLLER_BUTTON_LEFTSHOULDER,
  15611. CONTROLLER_BUTTON_RIGHTSHOULDER,
  15612. CONTROLLER_BUTTON_DPAD_UP,
  15613. CONTROLLER_BUTTON_DPAD_DOWN,
  15614. CONTROLLER_BUTTON_DPAD_LEFT,
  15615. CONTROLLER_BUTTON_DPAD_RIGHT,
  15616. };
  15617. enum Corner
  15618. {
  15619. C_TOPLEFT,
  15620. C_TOPRIGHT,
  15621. C_BOTTOMLEFT,
  15622. C_BOTTOMRIGHT,
  15623. };
  15624. enum CreateMode
  15625. {
  15626. REPLICATED,
  15627. LOCAL,
  15628. };
  15629. enum CrowdAgentRequestedTarget
  15630. {
  15631. CA_REQUESTEDTARGET_NONE,
  15632. CA_REQUESTEDTARGET_POSITION,
  15633. CA_REQUESTEDTARGET_VELOCITY,
  15634. };
  15635. enum CrowdAgentState
  15636. {
  15637. CA_STATE_INVALID,
  15638. CA_STATE_WALKING,
  15639. CA_STATE_OFFMESH,
  15640. };
  15641. enum CrowdAgentTargetState
  15642. {
  15643. CA_TARGET_NONE,
  15644. CA_TARGET_FAILED,
  15645. CA_TARGET_VALID,
  15646. CA_TARGET_REQUESTING,
  15647. CA_TARGET_WAITINGFORQUEUE,
  15648. CA_TARGET_WAITINGFORPATH,
  15649. CA_TARGET_VELOCITY,
  15650. };
  15651. enum CubeMapFace
  15652. {
  15653. FACE_POSITIVE_X,
  15654. FACE_NEGATIVE_X,
  15655. FACE_POSITIVE_Y,
  15656. FACE_NEGATIVE_Y,
  15657. FACE_POSITIVE_Z,
  15658. FACE_NEGATIVE_Z,
  15659. };
  15660. enum CullMode
  15661. {
  15662. CULL_NONE,
  15663. CULL_CCW,
  15664. CULL_CW,
  15665. };
  15666. enum CursorShape
  15667. {
  15668. CS_NORMAL,
  15669. CS_IBEAM,
  15670. CS_CROSS,
  15671. CS_RESIZEVERTICAL,
  15672. CS_RESIZEDIAGONAL_TOPRIGHT,
  15673. CS_RESIZEHORIZONTAL,
  15674. CS_RESIZEDIAGONAL_TOPLEFT,
  15675. CS_RESIZE_ALL,
  15676. CS_ACCEPTDROP,
  15677. CS_REJECTDROP,
  15678. CS_BUSY,
  15679. CS_BUSY_ARROW,
  15680. };
  15681. enum DBAPI
  15682. {
  15683. DBAPI_SQLITE,
  15684. DBAPI_ODBC,
  15685. };
  15686. enum DragAndDropMode
  15687. {
  15688. DD_DISABLED,
  15689. DD_SOURCE,
  15690. DD_TARGET,
  15691. DD_SOURCE_AND_TARGET,
  15692. };
  15693. enum DumpMode
  15694. {
  15695. DOXYGEN,
  15696. C_HEADER,
  15697. };
  15698. enum EmitterType
  15699. {
  15700. EMITTER_SPHERE,
  15701. EMITTER_BOX,
  15702. };
  15703. enum EmitterType2D
  15704. {
  15705. EMITTER_TYPE_GRAVITY,
  15706. EMITTER_TYPE_RADIAL,
  15707. };
  15708. enum FaceCameraMode
  15709. {
  15710. FC_NONE,
  15711. FC_ROTATE_XYZ,
  15712. FC_ROTATE_Y,
  15713. FC_LOOKAT_XYZ,
  15714. FC_LOOKAT_Y,
  15715. FC_LOOKAT_MIXED,
  15716. FC_DIRECTION,
  15717. };
  15718. enum FileMode
  15719. {
  15720. FILE_READ,
  15721. FILE_WRITE,
  15722. FILE_READWRITE,
  15723. };
  15724. enum FillMode
  15725. {
  15726. FILL_SOLID,
  15727. FILL_WIREFRAME,
  15728. FILL_POINT,
  15729. };
  15730. enum FocusMode
  15731. {
  15732. FM_NOTFOCUSABLE,
  15733. FM_RESETFOCUS,
  15734. FM_FOCUSABLE,
  15735. FM_FOCUSABLE_DEFOCUSABLE,
  15736. };
  15737. enum FontHintLevel
  15738. {
  15739. FONT_HINT_LEVEL_NONE,
  15740. FONT_HINT_LEVEL_LIGHT,
  15741. FONT_HINT_LEVEL_NORMAL,
  15742. };
  15743. enum FontType
  15744. {
  15745. FONT_NONE,
  15746. FONT_FREETYPE,
  15747. FONT_BITMAP,
  15748. };
  15749. enum HatPosition
  15750. {
  15751. HAT_CENTER,
  15752. HAT_UP,
  15753. HAT_RIGHT,
  15754. HAT_DOWN,
  15755. HAT_LEFT,
  15756. };
  15757. enum HighlightMode
  15758. {
  15759. HM_NEVER,
  15760. HM_FOCUS,
  15761. HM_ALWAYS,
  15762. };
  15763. enum HorizontalAlignment
  15764. {
  15765. HA_LEFT,
  15766. HA_CENTER,
  15767. HA_RIGHT,
  15768. HA_CUSTOM,
  15769. };
  15770. enum HttpRequestState
  15771. {
  15772. HTTP_INITIALIZING,
  15773. HTTP_ERROR,
  15774. HTTP_OPEN,
  15775. HTTP_CLOSED,
  15776. };
  15777. enum IKAlgorithm
  15778. {
  15779. ONE_BONE,
  15780. TWO_BONE,
  15781. FABRIK,
  15782. };
  15783. enum InterpMethod
  15784. {
  15785. IM_NONE,
  15786. IM_LINEAR,
  15787. IM_SPLINE,
  15788. };
  15789. enum InterpolationMode
  15790. {
  15791. BEZIER_CURVE,
  15792. CATMULL_ROM_CURVE,
  15793. LINEAR_CURVE,
  15794. CATMULL_ROM_FULL_CURVE,
  15795. };
  15796. enum Intersection
  15797. {
  15798. OUTSIDE,
  15799. INTERSECTS,
  15800. INSIDE,
  15801. };
  15802. enum JSONNumberType
  15803. {
  15804. JSONNT_NAN,
  15805. JSONNT_INT,
  15806. JSONNT_UINT,
  15807. JSONNT_FLOAT_DOUBLE,
  15808. };
  15809. enum JSONValueType
  15810. {
  15811. JSON_NULL,
  15812. JSON_BOOL,
  15813. JSON_NUMBER,
  15814. JSON_STRING,
  15815. JSON_ARRAY,
  15816. JSON_OBJECT,
  15817. };
  15818. enum Key
  15819. {
  15820. KEY_UNKNOWN,
  15821. KEY_A,
  15822. KEY_B,
  15823. KEY_C,
  15824. KEY_D,
  15825. KEY_E,
  15826. KEY_F,
  15827. KEY_G,
  15828. KEY_H,
  15829. KEY_I,
  15830. KEY_J,
  15831. KEY_K,
  15832. KEY_L,
  15833. KEY_M,
  15834. KEY_N,
  15835. KEY_O,
  15836. KEY_P,
  15837. KEY_Q,
  15838. KEY_R,
  15839. KEY_S,
  15840. KEY_T,
  15841. KEY_U,
  15842. KEY_V,
  15843. KEY_W,
  15844. KEY_X,
  15845. KEY_Y,
  15846. KEY_Z,
  15847. KEY_0,
  15848. KEY_1,
  15849. KEY_2,
  15850. KEY_3,
  15851. KEY_4,
  15852. KEY_5,
  15853. KEY_6,
  15854. KEY_7,
  15855. KEY_8,
  15856. KEY_9,
  15857. KEY_BACKSPACE,
  15858. KEY_TAB,
  15859. KEY_RETURN,
  15860. KEY_RETURN2,
  15861. KEY_KP_ENTER,
  15862. KEY_SHIFT,
  15863. KEY_CTRL,
  15864. KEY_ALT,
  15865. KEY_GUI,
  15866. KEY_PAUSE,
  15867. KEY_CAPSLOCK,
  15868. KEY_ESCAPE,
  15869. KEY_SPACE,
  15870. KEY_PAGEUP,
  15871. KEY_PAGEDOWN,
  15872. KEY_END,
  15873. KEY_HOME,
  15874. KEY_LEFT,
  15875. KEY_UP,
  15876. KEY_RIGHT,
  15877. KEY_DOWN,
  15878. KEY_SELECT,
  15879. KEY_PRINTSCREEN,
  15880. KEY_INSERT,
  15881. KEY_DELETE,
  15882. KEY_LGUI,
  15883. KEY_RGUI,
  15884. KEY_APPLICATION,
  15885. KEY_KP_0,
  15886. KEY_KP_1,
  15887. KEY_KP_2,
  15888. KEY_KP_3,
  15889. KEY_KP_4,
  15890. KEY_KP_5,
  15891. KEY_KP_6,
  15892. KEY_KP_7,
  15893. KEY_KP_8,
  15894. KEY_KP_9,
  15895. KEY_KP_MULTIPLY,
  15896. KEY_KP_PLUS,
  15897. KEY_KP_MINUS,
  15898. KEY_KP_PERIOD,
  15899. KEY_KP_DIVIDE,
  15900. KEY_F1,
  15901. KEY_F2,
  15902. KEY_F3,
  15903. KEY_F4,
  15904. KEY_F5,
  15905. KEY_F6,
  15906. KEY_F7,
  15907. KEY_F8,
  15908. KEY_F9,
  15909. KEY_F10,
  15910. KEY_F11,
  15911. KEY_F12,
  15912. KEY_F13,
  15913. KEY_F14,
  15914. KEY_F15,
  15915. KEY_F16,
  15916. KEY_F17,
  15917. KEY_F18,
  15918. KEY_F19,
  15919. KEY_F20,
  15920. KEY_F21,
  15921. KEY_F22,
  15922. KEY_F23,
  15923. KEY_F24,
  15924. KEY_NUMLOCKCLEAR,
  15925. KEY_SCROLLLOCK,
  15926. KEY_LSHIFT,
  15927. KEY_RSHIFT,
  15928. KEY_LCTRL,
  15929. KEY_RCTRL,
  15930. KEY_LALT,
  15931. KEY_RALT,
  15932. KEY_AC_BACK,
  15933. KEY_AC_BOOKMARKS,
  15934. KEY_AC_FORWARD,
  15935. KEY_AC_HOME,
  15936. KEY_AC_REFRESH,
  15937. KEY_AC_SEARCH,
  15938. KEY_AC_STOP,
  15939. KEY_AGAIN,
  15940. KEY_ALTERASE,
  15941. KEY_AMPERSAND,
  15942. KEY_ASTERISK,
  15943. KEY_AT,
  15944. KEY_AUDIOMUTE,
  15945. KEY_AUDIONEXT,
  15946. KEY_AUDIOPLAY,
  15947. KEY_AUDIOPREV,
  15948. KEY_AUDIOSTOP,
  15949. KEY_BACKQUOTE,
  15950. KEY_BACKSLASH,
  15951. KEY_BRIGHTNESSDOWN,
  15952. KEY_BRIGHTNESSUP,
  15953. KEY_CALCULATOR,
  15954. KEY_CANCEL,
  15955. KEY_CARET,
  15956. KEY_CLEAR,
  15957. KEY_CLEARAGAIN,
  15958. KEY_COLON,
  15959. KEY_COMMA,
  15960. KEY_COMPUTER,
  15961. KEY_COPY,
  15962. KEY_CRSEL,
  15963. KEY_CURRENCYSUBUNIT,
  15964. KEY_CURRENCYUNIT,
  15965. KEY_CUT,
  15966. KEY_DECIMALSEPARATOR,
  15967. KEY_DISPLAYSWITCH,
  15968. KEY_DOLLAR,
  15969. KEY_EJECT,
  15970. KEY_EQUALS,
  15971. KEY_EXCLAIM,
  15972. KEY_EXSEL,
  15973. KEY_FIND,
  15974. KEY_GREATER,
  15975. KEY_HASH,
  15976. KEY_HELP,
  15977. KEY_KBDILLUMDOWN,
  15978. KEY_KBDILLUMTOGGLE,
  15979. KEY_KBDILLUMUP,
  15980. KEY_KP_00,
  15981. KEY_KP_000,
  15982. KEY_KP_A,
  15983. KEY_KP_AMPERSAND,
  15984. KEY_KP_AT,
  15985. KEY_KP_B,
  15986. KEY_KP_BACKSPACE,
  15987. KEY_KP_BINARY,
  15988. KEY_KP_C,
  15989. KEY_KP_CLEAR,
  15990. KEY_KP_CLEARENTRY,
  15991. KEY_KP_COLON,
  15992. KEY_KP_COMMA,
  15993. KEY_KP_D,
  15994. KEY_KP_DBLAMPERSAND,
  15995. KEY_KP_DBLVERTICALBAR,
  15996. KEY_KP_DECIMAL,
  15997. KEY_KP_E,
  15998. KEY_KP_EQUALS,
  15999. KEY_KP_EQUALSAS400,
  16000. KEY_KP_EXCLAM,
  16001. KEY_KP_F,
  16002. KEY_KP_GREATER,
  16003. KEY_KP_HASH,
  16004. KEY_KP_HEXADECIMAL,
  16005. KEY_KP_LEFTBRACE,
  16006. KEY_KP_LEFTPAREN,
  16007. KEY_KP_LESS,
  16008. KEY_KP_MEMADD,
  16009. KEY_KP_MEMCLEAR,
  16010. KEY_KP_MEMDIVIDE,
  16011. KEY_KP_MEMMULTIPLY,
  16012. KEY_KP_MEMRECALL,
  16013. KEY_KP_MEMSTORE,
  16014. KEY_KP_MEMSUBTRACT,
  16015. KEY_KP_OCTAL,
  16016. KEY_KP_PERCENT,
  16017. KEY_KP_PLUSMINUS,
  16018. KEY_KP_POWER,
  16019. KEY_KP_RIGHTBRACE,
  16020. KEY_KP_RIGHTPAREN,
  16021. KEY_KP_SPACE,
  16022. KEY_KP_TAB,
  16023. KEY_KP_VERTICALBAR,
  16024. KEY_KP_XOR,
  16025. KEY_LEFTBRACKET,
  16026. KEY_LEFTPAREN,
  16027. KEY_LESS,
  16028. KEY_MAIL,
  16029. KEY_MEDIASELECT,
  16030. KEY_MENU,
  16031. KEY_MINUS,
  16032. KEY_MODE,
  16033. KEY_MUTE,
  16034. KEY_OPER,
  16035. KEY_OUT,
  16036. KEY_PASTE,
  16037. KEY_PERCENT,
  16038. KEY_PERIOD,
  16039. KEY_PLUS,
  16040. KEY_POWER,
  16041. KEY_PRIOR,
  16042. KEY_QUESTION,
  16043. KEY_QUOTE,
  16044. KEY_QUOTEDBL,
  16045. KEY_RIGHTBRACKET,
  16046. KEY_RIGHTPAREN,
  16047. KEY_SEMICOLON,
  16048. KEY_SEPARATOR,
  16049. KEY_SLASH,
  16050. KEY_SLEEP,
  16051. KEY_STOP,
  16052. KEY_SYSREQ,
  16053. KEY_THOUSANDSSEPARATOR,
  16054. KEY_UNDERSCORE,
  16055. KEY_UNDO,
  16056. KEY_VOLUMEDOWN,
  16057. KEY_VOLUMEUP,
  16058. KEY_WWW,
  16059. };
  16060. enum LayoutMode
  16061. {
  16062. LM_FREE,
  16063. LM_HORIZONTAL,
  16064. LM_VERTICAL,
  16065. };
  16066. enum LightType
  16067. {
  16068. LIGHT_DIRECTIONAL,
  16069. LIGHT_SPOT,
  16070. LIGHT_POINT,
  16071. };
  16072. enum LoadMode
  16073. {
  16074. LOAD_RESOURCES_ONLY,
  16075. LOAD_SCENE,
  16076. LOAD_SCENE_AND_RESOURCES,
  16077. };
  16078. enum LoopMode2D
  16079. {
  16080. LM_DEFAULT,
  16081. LM_FORCE_LOOPED,
  16082. LM_FORCE_CLAMPED,
  16083. };
  16084. enum MaterialQuality
  16085. {
  16086. QUALITY_LOW,
  16087. QUALITY_MEDIUM,
  16088. QUALITY_HIGH,
  16089. QUALITY_MAX,
  16090. };
  16091. enum MouseButton
  16092. {
  16093. MOUSEB_LEFT,
  16094. MOUSEB_MIDDLE,
  16095. MOUSEB_RIGHT,
  16096. };
  16097. enum MouseMode
  16098. {
  16099. MM_ABSOLUTE,
  16100. MM_RELATIVE,
  16101. MM_WRAP,
  16102. MM_FREE,
  16103. };
  16104. enum NavigationPushiness
  16105. {
  16106. NAVIGATIONPUSHINESS_LOW,
  16107. NAVIGATIONPUSHINESS_MEDIUM,
  16108. NAVIGATIONPUSHINESS_HIGH,
  16109. NAVIGATIONPUSHINESS_NONE,
  16110. };
  16111. enum NavigationQuality
  16112. {
  16113. NAVIGATIONQUALITY_LOW,
  16114. NAVIGATIONQUALITY_MEDIUM,
  16115. NAVIGATIONQUALITY_HIGH,
  16116. };
  16117. enum NavmeshPartitionType
  16118. {
  16119. NAVMESH_PARTITION_WATERSHED,
  16120. NAVMESH_PARTITION_MONOTONE,
  16121. };
  16122. enum Orientation
  16123. {
  16124. O_HORIZONTAL,
  16125. O_VERTICAL,
  16126. };
  16127. enum Orientation2D
  16128. {
  16129. O_ORTHOGONAL,
  16130. O_ISOMETRIC,
  16131. O_STAGGERED,
  16132. O_HEXAGONAL,
  16133. };
  16134. enum PassLightingMode
  16135. {
  16136. LIGHTING_UNLIT,
  16137. LIGHTING_PERVERTEX,
  16138. LIGHTING_PERPIXEL,
  16139. };
  16140. enum PrimitiveType
  16141. {
  16142. TRIANGLE_LIST,
  16143. LINE_LIST,
  16144. POINT_LIST,
  16145. TRIANGLE_STRIP,
  16146. LINE_STRIP,
  16147. TRIANGLE_FAN,
  16148. };
  16149. enum Qualifier
  16150. {
  16151. QUAL_SHIFT,
  16152. QUAL_CTRL,
  16153. QUAL_ALT,
  16154. QUAL_ANY,
  16155. };
  16156. enum RayQueryLevel
  16157. {
  16158. RAY_AABB,
  16159. RAY_OBB,
  16160. RAY_TRIANGLE,
  16161. RAY_TRIANGLE_UV,
  16162. };
  16163. enum RenderCommandSortMode
  16164. {
  16165. SORT_FRONTTOBACK,
  16166. SORT_BACKTOFRONT,
  16167. };
  16168. enum RenderCommandType
  16169. {
  16170. CMD_NONE,
  16171. CMD_CLEAR,
  16172. CMD_SCENEPASS,
  16173. CMD_QUAD,
  16174. CMD_FORWARDLIGHTS,
  16175. CMD_LIGHTVOLUMES,
  16176. CMD_RENDERUI,
  16177. CMD_SENDEVENT,
  16178. };
  16179. enum RenderSurfaceUpdateMode
  16180. {
  16181. SURFACE_MANUALUPDATE,
  16182. SURFACE_UPDATEVISIBLE,
  16183. SURFACE_UPDATEALWAYS,
  16184. };
  16185. enum RenderTargetSizeMode
  16186. {
  16187. SIZE_ABSOLUTE,
  16188. SIZE_VIEWPORTDIVISOR,
  16189. SIZE_VIEWPORTMULTIPLIER,
  16190. };
  16191. enum Scancode
  16192. {
  16193. SCANCODE_UNKNOWN,
  16194. SCANCODE_CTRL,
  16195. SCANCODE_SHIFT,
  16196. SCANCODE_ALT,
  16197. SCANCODE_GUI,
  16198. SCANCODE_A,
  16199. SCANCODE_B,
  16200. SCANCODE_C,
  16201. SCANCODE_D,
  16202. SCANCODE_E,
  16203. SCANCODE_F,
  16204. SCANCODE_G,
  16205. SCANCODE_H,
  16206. SCANCODE_I,
  16207. SCANCODE_J,
  16208. SCANCODE_K,
  16209. SCANCODE_L,
  16210. SCANCODE_M,
  16211. SCANCODE_N,
  16212. SCANCODE_O,
  16213. SCANCODE_P,
  16214. SCANCODE_Q,
  16215. SCANCODE_R,
  16216. SCANCODE_S,
  16217. SCANCODE_T,
  16218. SCANCODE_U,
  16219. SCANCODE_V,
  16220. SCANCODE_W,
  16221. SCANCODE_X,
  16222. SCANCODE_Y,
  16223. SCANCODE_Z,
  16224. SCANCODE_1,
  16225. SCANCODE_2,
  16226. SCANCODE_3,
  16227. SCANCODE_4,
  16228. SCANCODE_5,
  16229. SCANCODE_6,
  16230. SCANCODE_7,
  16231. SCANCODE_8,
  16232. SCANCODE_9,
  16233. SCANCODE_0,
  16234. SCANCODE_RETURN,
  16235. SCANCODE_ESCAPE,
  16236. SCANCODE_BACKSPACE,
  16237. SCANCODE_TAB,
  16238. SCANCODE_SPACE,
  16239. SCANCODE_MINUS,
  16240. SCANCODE_EQUALS,
  16241. SCANCODE_LEFTBRACKET,
  16242. SCANCODE_RIGHTBRACKET,
  16243. SCANCODE_BACKSLASH,
  16244. SCANCODE_NONUSHASH,
  16245. SCANCODE_SEMICOLON,
  16246. SCANCODE_APOSTROPHE,
  16247. SCANCODE_GRAVE,
  16248. SCANCODE_COMMA,
  16249. SCANCODE_PERIOD,
  16250. SCANCODE_SLASH,
  16251. SCANCODE_CAPSLOCK,
  16252. SCANCODE_F1,
  16253. SCANCODE_F2,
  16254. SCANCODE_F3,
  16255. SCANCODE_F4,
  16256. SCANCODE_F5,
  16257. SCANCODE_F6,
  16258. SCANCODE_F7,
  16259. SCANCODE_F8,
  16260. SCANCODE_F9,
  16261. SCANCODE_F10,
  16262. SCANCODE_F11,
  16263. SCANCODE_F12,
  16264. SCANCODE_PRINTSCREEN,
  16265. SCANCODE_SCROLLLOCK,
  16266. SCANCODE_PAUSE,
  16267. SCANCODE_INSERT,
  16268. SCANCODE_HOME,
  16269. SCANCODE_PAGEUP,
  16270. SCANCODE_DELETE,
  16271. SCANCODE_END,
  16272. SCANCODE_PAGEDOWN,
  16273. SCANCODE_RIGHT,
  16274. SCANCODE_LEFT,
  16275. SCANCODE_DOWN,
  16276. SCANCODE_UP,
  16277. SCANCODE_NUMLOCKCLEAR,
  16278. SCANCODE_KP_DIVIDE,
  16279. SCANCODE_KP_MULTIPLY,
  16280. SCANCODE_KP_MINUS,
  16281. SCANCODE_KP_PLUS,
  16282. SCANCODE_KP_ENTER,
  16283. SCANCODE_KP_1,
  16284. SCANCODE_KP_2,
  16285. SCANCODE_KP_3,
  16286. SCANCODE_KP_4,
  16287. SCANCODE_KP_5,
  16288. SCANCODE_KP_6,
  16289. SCANCODE_KP_7,
  16290. SCANCODE_KP_8,
  16291. SCANCODE_KP_9,
  16292. SCANCODE_KP_0,
  16293. SCANCODE_KP_PERIOD,
  16294. SCANCODE_NONUSBACKSLASH,
  16295. SCANCODE_APPLICATION,
  16296. SCANCODE_POWER,
  16297. SCANCODE_KP_EQUALS,
  16298. SCANCODE_F13,
  16299. SCANCODE_F14,
  16300. SCANCODE_F15,
  16301. SCANCODE_F16,
  16302. SCANCODE_F17,
  16303. SCANCODE_F18,
  16304. SCANCODE_F19,
  16305. SCANCODE_F20,
  16306. SCANCODE_F21,
  16307. SCANCODE_F22,
  16308. SCANCODE_F23,
  16309. SCANCODE_F24,
  16310. SCANCODE_EXECUTE,
  16311. SCANCODE_HELP,
  16312. SCANCODE_MENU,
  16313. SCANCODE_SELECT,
  16314. SCANCODE_STOP,
  16315. SCANCODE_AGAIN,
  16316. SCANCODE_UNDO,
  16317. SCANCODE_CUT,
  16318. SCANCODE_COPY,
  16319. SCANCODE_PASTE,
  16320. SCANCODE_FIND,
  16321. SCANCODE_MUTE,
  16322. SCANCODE_VOLUMEUP,
  16323. SCANCODE_VOLUMEDOWN,
  16324. SCANCODE_KP_COMMA,
  16325. SCANCODE_KP_EQUALSAS400,
  16326. SCANCODE_INTERNATIONAL1,
  16327. SCANCODE_INTERNATIONAL2,
  16328. SCANCODE_INTERNATIONAL3,
  16329. SCANCODE_INTERNATIONAL4,
  16330. SCANCODE_INTERNATIONAL5,
  16331. SCANCODE_INTERNATIONAL6,
  16332. SCANCODE_INTERNATIONAL7,
  16333. SCANCODE_INTERNATIONAL8,
  16334. SCANCODE_INTERNATIONAL9,
  16335. SCANCODE_LANG1,
  16336. SCANCODE_LANG2,
  16337. SCANCODE_LANG3,
  16338. SCANCODE_LANG4,
  16339. SCANCODE_LANG5,
  16340. SCANCODE_LANG6,
  16341. SCANCODE_LANG7,
  16342. SCANCODE_LANG8,
  16343. SCANCODE_LANG9,
  16344. SCANCODE_ALTERASE,
  16345. SCANCODE_SYSREQ,
  16346. SCANCODE_CANCEL,
  16347. SCANCODE_CLEAR,
  16348. SCANCODE_PRIOR,
  16349. SCANCODE_RETURN2,
  16350. SCANCODE_SEPARATOR,
  16351. SCANCODE_OUT,
  16352. SCANCODE_OPER,
  16353. SCANCODE_CLEARAGAIN,
  16354. SCANCODE_CRSEL,
  16355. SCANCODE_EXSEL,
  16356. SCANCODE_KP_00,
  16357. SCANCODE_KP_000,
  16358. SCANCODE_THOUSANDSSEPARATOR,
  16359. SCANCODE_DECIMALSEPARATOR,
  16360. SCANCODE_CURRENCYUNIT,
  16361. SCANCODE_CURRENCYSUBUNIT,
  16362. SCANCODE_KP_LEFTPAREN,
  16363. SCANCODE_KP_RIGHTPAREN,
  16364. SCANCODE_KP_LEFTBRACE,
  16365. SCANCODE_KP_RIGHTBRACE,
  16366. SCANCODE_KP_TAB,
  16367. SCANCODE_KP_BACKSPACE,
  16368. SCANCODE_KP_A,
  16369. SCANCODE_KP_B,
  16370. SCANCODE_KP_C,
  16371. SCANCODE_KP_D,
  16372. SCANCODE_KP_E,
  16373. SCANCODE_KP_F,
  16374. SCANCODE_KP_XOR,
  16375. SCANCODE_KP_POWER,
  16376. SCANCODE_KP_PERCENT,
  16377. SCANCODE_KP_LESS,
  16378. SCANCODE_KP_GREATER,
  16379. SCANCODE_KP_AMPERSAND,
  16380. SCANCODE_KP_DBLAMPERSAND,
  16381. SCANCODE_KP_VERTICALBAR,
  16382. SCANCODE_KP_DBLVERTICALBAR,
  16383. SCANCODE_KP_COLON,
  16384. SCANCODE_KP_HASH,
  16385. SCANCODE_KP_SPACE,
  16386. SCANCODE_KP_AT,
  16387. SCANCODE_KP_EXCLAM,
  16388. SCANCODE_KP_MEMSTORE,
  16389. SCANCODE_KP_MEMRECALL,
  16390. SCANCODE_KP_MEMCLEAR,
  16391. SCANCODE_KP_MEMADD,
  16392. SCANCODE_KP_MEMSUBTRACT,
  16393. SCANCODE_KP_MEMMULTIPLY,
  16394. SCANCODE_KP_MEMDIVIDE,
  16395. SCANCODE_KP_PLUSMINUS,
  16396. SCANCODE_KP_CLEAR,
  16397. SCANCODE_KP_CLEARENTRY,
  16398. SCANCODE_KP_BINARY,
  16399. SCANCODE_KP_OCTAL,
  16400. SCANCODE_KP_DECIMAL,
  16401. SCANCODE_KP_HEXADECIMAL,
  16402. SCANCODE_LCTRL,
  16403. SCANCODE_LSHIFT,
  16404. SCANCODE_LALT,
  16405. SCANCODE_LGUI,
  16406. SCANCODE_RCTRL,
  16407. SCANCODE_RSHIFT,
  16408. SCANCODE_RALT,
  16409. SCANCODE_RGUI,
  16410. SCANCODE_MODE,
  16411. SCANCODE_AUDIONEXT,
  16412. SCANCODE_AUDIOPREV,
  16413. SCANCODE_AUDIOSTOP,
  16414. SCANCODE_AUDIOPLAY,
  16415. SCANCODE_AUDIOMUTE,
  16416. SCANCODE_MEDIASELECT,
  16417. SCANCODE_WWW,
  16418. SCANCODE_MAIL,
  16419. SCANCODE_CALCULATOR,
  16420. SCANCODE_COMPUTER,
  16421. SCANCODE_AC_SEARCH,
  16422. SCANCODE_AC_HOME,
  16423. SCANCODE_AC_BACK,
  16424. SCANCODE_AC_FORWARD,
  16425. SCANCODE_AC_STOP,
  16426. SCANCODE_AC_REFRESH,
  16427. SCANCODE_AC_BOOKMARKS,
  16428. SCANCODE_BRIGHTNESSDOWN,
  16429. SCANCODE_BRIGHTNESSUP,
  16430. SCANCODE_DISPLAYSWITCH,
  16431. SCANCODE_KBDILLUMTOGGLE,
  16432. SCANCODE_KBDILLUMDOWN,
  16433. SCANCODE_KBDILLUMUP,
  16434. SCANCODE_EJECT,
  16435. SCANCODE_SLEEP,
  16436. SCANCODE_APP1,
  16437. SCANCODE_APP2,
  16438. };
  16439. enum ShadowQuality
  16440. {
  16441. SHADOWQUALITY_SIMPLE_16BIT,
  16442. SHADOWQUALITY_SIMPLE_24BIT,
  16443. SHADOWQUALITY_PCF_16BIT,
  16444. SHADOWQUALITY_PCF_24BIT,
  16445. SHADOWQUALITY_VSM,
  16446. SHADOWQUALITY_BLUR_VSM,
  16447. };
  16448. enum ShapeType
  16449. {
  16450. SHAPE_BOX,
  16451. SHAPE_SPHERE,
  16452. SHAPE_STATICPLANE,
  16453. SHAPE_CYLINDER,
  16454. SHAPE_CAPSULE,
  16455. SHAPE_CONE,
  16456. SHAPE_TRIANGLEMESH,
  16457. SHAPE_CONVEXHULL,
  16458. SHAPE_TERRAIN,
  16459. };
  16460. enum TextEffect
  16461. {
  16462. TE_NONE,
  16463. TE_SHADOW,
  16464. TE_STROKE,
  16465. };
  16466. enum TextureAddressMode
  16467. {
  16468. ADDRESS_WRAP,
  16469. ADDRESS_MIRROR,
  16470. ADDRESS_CLAMP,
  16471. ADDRESS_BORDER,
  16472. };
  16473. enum TextureCoordinate
  16474. {
  16475. COORD_U,
  16476. COORD_V,
  16477. COORD_W,
  16478. };
  16479. enum TextureFilterMode
  16480. {
  16481. FILTER_NEAREST,
  16482. FILTER_BILINEAR,
  16483. FILTER_TRILINEAR,
  16484. FILTER_ANISOTROPIC,
  16485. FILTER_NEAREST_ANISOTROPIC,
  16486. FILTER_DEFAULT,
  16487. };
  16488. enum TextureUnit
  16489. {
  16490. TU_DIFFUSE,
  16491. TU_ALBEDOBUFFER,
  16492. TU_NORMAL,
  16493. TU_NORMALBUFFER,
  16494. TU_SPECULAR,
  16495. TU_EMISSIVE,
  16496. TU_ENVIRONMENT,
  16497. TU_LIGHTRAMP,
  16498. TU_LIGHTSHAPE,
  16499. TU_SHADOWMAP,
  16500. TU_CUSTOM1,
  16501. TU_CUSTOM2,
  16502. TU_VOLUMEMAP,
  16503. TU_FACESELECT,
  16504. TU_INDIRECTION,
  16505. TU_DEPTHBUFFER,
  16506. TU_LIGHTBUFFER,
  16507. TU_ZONE,
  16508. MAX_MATERIAL_TEXTURE_UNITS,
  16509. MAX_TEXTURE_UNITS,
  16510. };
  16511. enum TextureUsage
  16512. {
  16513. TEXTURE_STATIC,
  16514. TEXTURE_DYNAMIC,
  16515. TEXTURE_RENDERTARGET,
  16516. TEXTURE_DEPTHSTENCIL,
  16517. };
  16518. enum TileMapLayerType2D
  16519. {
  16520. LT_TILE_LAYER,
  16521. LT_OBJECT_GROUP,
  16522. LT_IMAGE_LAYER,
  16523. LT_INVALID,
  16524. };
  16525. enum TileObjectType2D
  16526. {
  16527. OT_RECTANGLE,
  16528. OT_ELLIPSE,
  16529. OT_POLYGON,
  16530. OT_POLYLINE,
  16531. OT_TILE,
  16532. OT_INVALID,
  16533. };
  16534. enum TrailType
  16535. {
  16536. TT_FACE_CAMERA,
  16537. TT_BONE,
  16538. };
  16539. enum TransformSpace
  16540. {
  16541. TS_LOCAL,
  16542. TS_PARENT,
  16543. TS_WORLD,
  16544. };
  16545. enum TraversalMode
  16546. {
  16547. TM_BREADTH_FIRST,
  16548. TM_DEPTH_FIRST,
  16549. };
  16550. enum VariantType
  16551. {
  16552. VAR_NONE,
  16553. VAR_INT,
  16554. VAR_BOOL,
  16555. VAR_FLOAT,
  16556. VAR_VECTOR2,
  16557. VAR_VECTOR3,
  16558. VAR_VECTOR4,
  16559. VAR_QUATERNION,
  16560. VAR_COLOR,
  16561. VAR_STRING,
  16562. VAR_BUFFER,
  16563. VAR_VOIDPTR,
  16564. VAR_RESOURCEREF,
  16565. VAR_RESOURCEREFLIST,
  16566. VAR_VARIANTVECTOR,
  16567. VAR_VARIANTMAP,
  16568. VAR_INTRECT,
  16569. VAR_INTVECTOR2,
  16570. VAR_INTVECTOR3,
  16571. VAR_PTR,
  16572. VAR_MATRIX3,
  16573. VAR_MATRIX3X4,
  16574. VAR_MATRIX4,
  16575. VAR_DOUBLE,
  16576. VAR_STRINGVECTOR,
  16577. VAR_RECT,
  16578. };
  16579. enum VertexElementSemantic
  16580. {
  16581. SEM_POSITION,
  16582. SEM_NORMAL,
  16583. SEM_BINORMAL,
  16584. SEM_TANGENT,
  16585. SEM_TEXCOORD,
  16586. SEM_COLOR,
  16587. SEM_BLENDWEIGHTS,
  16588. SEM_BLENDINDICES,
  16589. SEM_OBJECTINDEX,
  16590. MAX_VERTEX_ELEMENT_SEMANTICS,
  16591. };
  16592. enum VertexElementType
  16593. {
  16594. TYPE_INT,
  16595. TYPE_FLOAT,
  16596. TYPE_VECTOR2,
  16597. TYPE_VECTOR3,
  16598. TYPE_VECTOR4,
  16599. TYPE_UBYTE4,
  16600. TYPE_UBYTE4_NORM,
  16601. MAX_VERTEX_ELEMENT_TYPES,
  16602. };
  16603. enum VertexMask
  16604. {
  16605. MASK_NONE,
  16606. MASK_POSITION,
  16607. MASK_NORMAL,
  16608. MASK_COLOR,
  16609. MASK_TEXCOORD1,
  16610. MASK_TEXCOORD2,
  16611. MASK_CUBETEXCOORD1,
  16612. MASK_CUBETEXCOORD2,
  16613. MASK_TANGENT,
  16614. MASK_BLENDWEIGHTS,
  16615. MASK_BLENDINDICES,
  16616. MASK_INSTANCEMATRIX1,
  16617. MASK_INSTANCEMATRIX2,
  16618. MASK_INSTANCEMATRIX3,
  16619. MASK_OBJECTINDEX,
  16620. };
  16621. enum VerticalAlignment
  16622. {
  16623. VA_TOP,
  16624. VA_CENTER,
  16625. VA_BOTTOM,
  16626. VA_CUSTOM,
  16627. };
  16628. enum ViewOverride
  16629. {
  16630. VO_NONE,
  16631. VO_LOW_MATERIAL_QUALITY,
  16632. VO_DISABLE_SHADOWS,
  16633. VO_DISABLE_OCCLUSION,
  16634. };
  16635. enum WrapMode
  16636. {
  16637. WM_LOOP,
  16638. WM_ONCE,
  16639. WM_CLAMP,
  16640. };
  16641. // Global functions
  16642. float Abs(float);
  16643. float Acos(float);
  16644. String AddTrailingSlash(const String&);
  16645. float Asin(float);
  16646. float Atan(float);
  16647. float Atan2(float, float);
  16648. float Ceil(float);
  16649. int CeilToInt(float);
  16650. float Clamp(float, float, float);
  16651. int Clamp(int, int, int);
  16652. void ClearDelayedExecute(const String& = String ( ));
  16653. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  16654. float Cos(float);
  16655. uint CountSetBits(uint);
  16656. Object CreateObject(const String&);
  16657. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  16658. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  16659. bool Equals(float, float);
  16660. void ErrorDialog(const String&, const String&);
  16661. float Floor(float);
  16662. int FloorToInt(float);
  16663. float Fract(float);
  16664. uint GetAlphaFormat();
  16665. Array<String> GetArguments();
  16666. String GetConsoleInput();
  16667. uint GetDepthStencilFormat();
  16668. Object GetEventSender();
  16669. String GetExtension(const String&, bool = true);
  16670. String GetFileName(const String&);
  16671. String GetFileNameAndExtension(const String&, bool = false);
  16672. String GetFileSizeString(uint64);
  16673. uint GetFloat16Format();
  16674. uint GetFloat32Format();
  16675. uint GetFormat(const String&);
  16676. Variant GetGlobalVar(const String&);
  16677. String GetHostName();
  16678. String GetInternalPath(const String&);
  16679. uint GetLinearDepthFormat();
  16680. String GetLoginName();
  16681. uint GetLuminanceAlphaFormat();
  16682. uint GetLuminanceFormat();
  16683. uint GetMaxBones();
  16684. String GetMiniDumpDir();
  16685. uint GetNumLogicalCPUs();
  16686. uint GetNumPhysicalCPUs();
  16687. String GetOSVersion();
  16688. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  16689. Array<String> GetObjectCategories();
  16690. Array<String> GetObjectsByCategory(const String&);
  16691. String GetParentPath(const String&);
  16692. String GetPath(const String&);
  16693. String GetPlatform();
  16694. uint GetRG16Format();
  16695. uint GetRGBA16Format();
  16696. uint GetRGBAFloat16Format();
  16697. uint GetRGBAFloat32Format();
  16698. uint GetRGBAFormat();
  16699. uint GetRGBFormat();
  16700. uint GetRGFloat16Format();
  16701. uint GetRGFloat32Format();
  16702. uint GetRandomSeed();
  16703. uint GetReadableDepthFormat();
  16704. String GetTextureUnitName(TextureUnit);
  16705. uint64 GetTotalMemory();
  16706. VariantType GetVariantTypeFromName(const String&);
  16707. String GetVariantTypeName(VariantType);
  16708. bool HasSubscribedToEvent(Object, const String&);
  16709. bool HasSubscribedToEvent(const String&);
  16710. float InverseLerp(float, float, float);
  16711. bool IsAbsolutePath(const String&);
  16712. bool IsAlpha(uint);
  16713. bool IsDigit(uint);
  16714. bool IsNaN(double);
  16715. bool IsNaN(float);
  16716. bool IsPowerOfTwo(uint);
  16717. bool IsReplicatedID(uint);
  16718. String Join(Array<String>&, const String&);
  16719. float Lerp(float, float, float);
  16720. float Ln(float);
  16721. uint LogBaseTwo(uint);
  16722. void MarkNetworkUpdate();
  16723. float Max(float, float);
  16724. int Max(int, int);
  16725. float Min(float, float);
  16726. int Min(int, int);
  16727. float Mod(float, float);
  16728. uint NextPowerOfTwo(uint);
  16729. void OpenConsoleWindow();
  16730. float Pow(float, float);
  16731. void Print(bool, bool = false);
  16732. void Print(const String&, bool = false);
  16733. void Print(const Variant&, bool = false);
  16734. void Print(float, bool = false);
  16735. void Print(int, bool = false);
  16736. void Print(int64, bool = false);
  16737. void Print(uint, bool = false);
  16738. void Print(uint64, bool = false);
  16739. void PrintCallStack(bool = false);
  16740. float Random();
  16741. float Random(float);
  16742. float Random(float, float);
  16743. int RandomInt();
  16744. int RandomInt(int);
  16745. int RandomInt(int, int);
  16746. float RandomNormal(float, float);
  16747. void RegisterEventName(const String&);
  16748. void Remove();
  16749. String RemoveTrailingSlash(const String&);
  16750. String ReplaceExtension(const String&, const String&);
  16751. float Round(float);
  16752. int RoundToInt(float);
  16753. uint SDBMHash(uint, uint8);
  16754. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  16755. void SetGlobalVar(const String&, Variant&);
  16756. void SetMiniDumpDir(const String&);
  16757. void SetRandomSeed(uint);
  16758. float Sign(float);
  16759. float Sin(float);
  16760. float SmoothStep(float, float, float);
  16761. float Sqrt(float);
  16762. float StableRandom(const Vector2&);
  16763. float StableRandom(const Vector3&);
  16764. float StableRandom(float);
  16765. const String& GetTypeName(StringHash);
  16766. void SubscribeToEvent(Object, const String&, const String&);
  16767. void SubscribeToEvent(const String&, const String&);
  16768. float Tan(float);
  16769. uint ToLower(uint);
  16770. String ToStringHex(int);
  16771. uint ToUpper(uint);
  16772. void UnsubscribeFromAllEvents();
  16773. void UnsubscribeFromAllEventsExcept(Array<String>);
  16774. void UnsubscribeFromEvent(Object, const String&);
  16775. void UnsubscribeFromEvent(const String&);
  16776. void UnsubscribeFromEvents(Object);
  16777. Vector2 VectorCeil(const Vector2&);
  16778. Vector3 VectorCeil(const Vector3&);
  16779. Vector4 VectorCeil(const Vector4&);
  16780. IntVector2 VectorCeilToInt(const Vector2&);
  16781. IntVector3 VectorCeilToInt(const Vector3&);
  16782. Vector2 VectorFloor(const Vector2&);
  16783. Vector3 VectorFloor(const Vector3&);
  16784. Vector4 VectorFloor(const Vector4&);
  16785. IntVector2 VectorFloorToInt(const Vector2&);
  16786. IntVector3 VectorFloorToInt(const Vector3&);
  16787. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  16788. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  16789. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  16790. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  16791. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  16792. Vector2 VectorMax(const Vector2&, const Vector2&);
  16793. Vector3 VectorMax(const Vector3&, const Vector3&);
  16794. Vector4 VectorMax(const Vector4&, const Vector4&);
  16795. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  16796. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  16797. Vector2 VectorMin(const Vector2&, const Vector2&);
  16798. Vector3 VectorMin(const Vector3&, const Vector3&);
  16799. Vector4 VectorMin(const Vector4&, const Vector4&);
  16800. Vector2 VectorRound(const Vector2&);
  16801. Vector3 VectorRound(const Vector3&);
  16802. Vector4 VectorRound(const Vector4&);
  16803. IntVector2 VectorRoundToInt(const Vector2&);
  16804. IntVector3 VectorRoundToInt(const Vector3&);
  16805. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  16806. // Global properties
  16807. DBAPI DBAPI;
  16808. Audio audio;
  16809. ResourceCache cache;
  16810. Console console;
  16811. Database database;
  16812. DebugHud debugHud;
  16813. DebugRenderer debugRenderer;
  16814. Engine engine;
  16815. FileSystem fileSystem;
  16816. VariantMap globalVars;
  16817. Graphics graphics;
  16818. Input input;
  16819. Localization localization;
  16820. Log log;
  16821. Network network;
  16822. Node node;
  16823. Octree octree;
  16824. PhysicsWorld physicsWorld;
  16825. PhysicsWorld2D physicsWorld2D;
  16826. Renderer renderer;
  16827. ResourceCache resourceCache;
  16828. Scene scene;
  16829. Script script;
  16830. ScriptFile scriptFile;
  16831. ScriptInstance self;
  16832. Time time;
  16833. UI ui;
  16834. // Global constants
  16835. Color BLACK;
  16836. Color BLUE;
  16837. Color CYAN;
  16838. uint DEBUGHUD_SHOW_ALL;
  16839. uint DEBUGHUD_SHOW_EVENTPROFILER;
  16840. uint DEBUGHUD_SHOW_MEMORY;
  16841. uint DEBUGHUD_SHOW_MODE;
  16842. uint DEBUGHUD_SHOW_NONE;
  16843. uint DEBUGHUD_SHOW_PROFILER;
  16844. uint DEBUGHUD_SHOW_STATS;
  16845. uint DEFAULT_LIGHTMASK;
  16846. uint DEFAULT_VIEWMASK;
  16847. uint DRAWABLE_ANY;
  16848. uint DRAWABLE_GEOMETRY;
  16849. uint DRAWABLE_GEOMETRY2D;
  16850. uint DRAWABLE_LIGHT;
  16851. uint DRAWABLE_ZONE;
  16852. uint FIRST_LOCAL_ID;
  16853. uint FIRST_REPLICATED_ID;
  16854. uint FLIP_ALL;
  16855. uint FLIP_DIAGONAL;
  16856. uint FLIP_HORIZONTAL;
  16857. uint FLIP_RESERVED;
  16858. uint FLIP_VERTICAL;
  16859. Color GRAY;
  16860. Color GREEN;
  16861. uint LAST_LOCAL_ID;
  16862. uint LAST_REPLICATED_ID;
  16863. int LOG_DEBUG;
  16864. int LOG_ERROR;
  16865. int LOG_INFO;
  16866. int LOG_NONE;
  16867. int LOG_TRACE;
  16868. int LOG_WARNING;
  16869. Color MAGENTA;
  16870. float M_DEGTORAD;
  16871. float M_DEGTORAD_2;
  16872. float M_EPSILON;
  16873. float M_HALF_PI;
  16874. float M_INFINITY;
  16875. float M_LARGE_EPSILON;
  16876. float M_LARGE_VALUE;
  16877. int M_MAX_INT;
  16878. uint M_MAX_UNSIGNED;
  16879. int M_MIN_INT;
  16880. uint M_MIN_UNSIGNED;
  16881. float M_PI;
  16882. float M_RADTODEG;
  16883. uint NPOS;
  16884. float PIXEL_SIZE;
  16885. Color RED;
  16886. uint SCAN_DIRS;
  16887. uint SCAN_FILES;
  16888. uint SCAN_HIDDEN;
  16889. String SOUND_AMBIENT;
  16890. String SOUND_EFFECT;
  16891. String SOUND_MASTER;
  16892. String SOUND_MUSIC;
  16893. String SOUND_VOICE;
  16894. Color TRANSPARENT_BLACK;
  16895. Color WHITE;
  16896. Color YELLOW;