AngelScriptAPI.h 415 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131
  1. // Script API header intended to be 'force included' in IDE for AngelScript content assist / code completion
  2. #define int8 signed char
  3. #define int16 signed short
  4. #define int64 long
  5. #define uint8 unsigned char
  6. #define uint16 unsigned short
  7. #define uint64 unsigned long
  8. #define null 0
  9. #define in
  10. #define out
  11. #define inout
  12. #define is ==
  13. #define interface struct
  14. #define class struct
  15. #define cast reinterpret_cast
  16. #define mixin
  17. #define funcdef
  18. // Classes
  19. class Animatable
  20. {
  21. public:
  22. // Methods:
  23. void ApplyAttributes();
  24. Variant GetAttribute(const String&) const;
  25. ValueAnimation GetAttributeAnimation(const String&) const;
  26. float GetAttributeAnimationSpeed(const String&) const;
  27. float GetAttributeAnimationTime(const String&) const;
  28. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29. Variant GetAttributeDefault(const String&) const;
  30. bool GetInterceptNetworkUpdate(const String&) const;
  31. bool HasSubscribedToEvent(Object, const String&);
  32. bool HasSubscribedToEvent(const String&);
  33. bool Load(File);
  34. bool Load(VectorBuffer&);
  35. bool LoadJSON(const JSONValue&);
  36. bool LoadXML(const XMLElement&);
  37. void MarkNetworkUpdate() const;
  38. void RemoveAttributeAnimation(const String&);
  39. void RemoveInstanceDefault();
  40. void RemoveObjectAnimation();
  41. void ResetToDefault();
  42. bool Save(File) const;
  43. bool Save(VectorBuffer&) const;
  44. bool SaveJSON(JSONValue&) const;
  45. bool SaveXML(XMLElement&) const;
  46. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  47. void SetAnimationTime(float);
  48. bool SetAttribute(const String&, const Variant&);
  49. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  50. void SetAttributeAnimationSpeed(const String&, float);
  51. void SetAttributeAnimationTime(const String&, float);
  52. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  53. void SetInterceptNetworkUpdate(const String&, bool);
  54. // Properties:
  55. bool animationEnabled;
  56. /* readonly */
  57. Array<Variant> attributeDefaults;
  58. /* readonly */
  59. Array<AttributeInfo> attributeInfos;
  60. Array<Variant> attributes;
  61. /* readonly */
  62. String category;
  63. /* readonly */
  64. uint numAttributes;
  65. ObjectAnimation objectAnimation;
  66. /* readonly */
  67. int refs;
  68. bool temporary;
  69. /* readonly */
  70. StringHash type;
  71. /* readonly */
  72. String typeName;
  73. /* readonly */
  74. int weakRefs;
  75. };
  76. class AnimatedModel
  77. {
  78. public:
  79. // Methods:
  80. AnimationState AddAnimationState(Animation);
  81. void ApplyAttributes();
  82. void ApplyMaterialList(const String& = String ( ));
  83. void DrawDebugGeometry(DebugRenderer, bool);
  84. AnimationState GetAnimationState(Animation) const;
  85. AnimationState GetAnimationState(uint) const;
  86. Variant GetAttribute(const String&) const;
  87. ValueAnimation GetAttributeAnimation(const String&) const;
  88. float GetAttributeAnimationSpeed(const String&) const;
  89. float GetAttributeAnimationTime(const String&) const;
  90. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  91. Variant GetAttributeDefault(const String&) const;
  92. bool GetInterceptNetworkUpdate(const String&) const;
  93. float GetMorphWeight(uint) const;
  94. bool HasSubscribedToEvent(Object, const String&);
  95. bool HasSubscribedToEvent(const String&);
  96. bool IsInView(Camera) const;
  97. bool Load(File);
  98. bool Load(VectorBuffer&);
  99. bool LoadJSON(const JSONValue&);
  100. bool LoadXML(const XMLElement&);
  101. void MarkNetworkUpdate() const;
  102. void Remove();
  103. void RemoveAllAnimationStates();
  104. void RemoveAnimationState(Animation);
  105. void RemoveAnimationState(AnimationState);
  106. void RemoveAnimationState(const String&);
  107. void RemoveAnimationState(uint);
  108. void RemoveAttributeAnimation(const String&);
  109. void RemoveInstanceDefault();
  110. void RemoveObjectAnimation();
  111. void ResetMorphWeights();
  112. void ResetToDefault();
  113. bool Save(File) const;
  114. bool Save(VectorBuffer&) const;
  115. bool SaveJSON(JSONValue&) const;
  116. bool SaveXML(XMLElement&) const;
  117. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  118. void SetAnimationTime(float);
  119. bool SetAttribute(const String&, const Variant&);
  120. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  121. void SetAttributeAnimationSpeed(const String&, float);
  122. void SetAttributeAnimationTime(const String&, float);
  123. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  124. void SetInterceptNetworkUpdate(const String&, bool);
  125. void SetMorphWeight(uint, float);
  126. void UpdateBoneBoundingBox();
  127. // Properties:
  128. bool animationEnabled;
  129. float animationLodBias;
  130. /* readonly */
  131. Array<AnimationState> animationStates;
  132. /* readonly */
  133. Array<Variant> attributeDefaults;
  134. /* readonly */
  135. Array<AttributeInfo> attributeInfos;
  136. Array<Variant> attributes;
  137. /* readonly */
  138. BoundingBox boundingBox;
  139. bool castShadows;
  140. /* readonly */
  141. String category;
  142. float drawDistance;
  143. bool enabled;
  144. /* readonly */
  145. bool enabledEffective;
  146. /* readonly */
  147. uint id;
  148. /* readonly */
  149. bool inView;
  150. uint lightMask;
  151. float lodBias;
  152. Material material;
  153. Array<Material> materials;
  154. uint maxLights;
  155. Model model;
  156. /* readonly */
  157. Array<String> morphNames;
  158. Array<float> morphWeights;
  159. /* readonly */
  160. Node node;
  161. /* readonly */
  162. uint numAnimationStates;
  163. /* readonly */
  164. uint numAttributes;
  165. /* readonly */
  166. uint numGeometries;
  167. /* readonly */
  168. uint numMorphs;
  169. ObjectAnimation objectAnimation;
  170. bool occludee;
  171. bool occluder;
  172. /* readonly */
  173. int refs;
  174. /* readonly */
  175. bool replicated;
  176. float shadowDistance;
  177. uint shadowMask;
  178. /* readonly */
  179. Skeleton skeleton;
  180. bool temporary;
  181. /* readonly */
  182. StringHash type;
  183. /* readonly */
  184. String typeName;
  185. bool updateInvisible;
  186. uint viewMask;
  187. /* readonly */
  188. int weakRefs;
  189. /* readonly */
  190. BoundingBox worldBoundingBox;
  191. /* readonly */
  192. Zone zone;
  193. uint zoneMask;
  194. };
  195. class AnimatedSprite2D
  196. {
  197. public:
  198. // Methods:
  199. void ApplyAttributes();
  200. void DrawDebugGeometry(DebugRenderer, bool);
  201. Variant GetAttribute(const String&) const;
  202. ValueAnimation GetAttributeAnimation(const String&) const;
  203. float GetAttributeAnimationSpeed(const String&) const;
  204. float GetAttributeAnimationTime(const String&) const;
  205. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  206. Variant GetAttributeDefault(const String&) const;
  207. bool GetInterceptNetworkUpdate(const String&) const;
  208. bool HasSubscribedToEvent(Object, const String&);
  209. bool HasSubscribedToEvent(const String&);
  210. bool IsInView(Camera) const;
  211. bool Load(File);
  212. bool Load(VectorBuffer&);
  213. bool LoadJSON(const JSONValue&);
  214. bool LoadXML(const XMLElement&);
  215. void MarkNetworkUpdate() const;
  216. void Remove();
  217. void RemoveAttributeAnimation(const String&);
  218. void RemoveInstanceDefault();
  219. void RemoveObjectAnimation();
  220. void ResetToDefault();
  221. bool Save(File) const;
  222. bool Save(VectorBuffer&) const;
  223. bool SaveJSON(JSONValue&) const;
  224. bool SaveXML(XMLElement&) const;
  225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  226. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  227. void SetAnimationTime(float);
  228. bool SetAttribute(const String&, const Variant&);
  229. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  230. void SetAttributeAnimationSpeed(const String&, float);
  231. void SetAttributeAnimationTime(const String&, float);
  232. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  233. void SetFlip(bool, bool);
  234. void SetInterceptNetworkUpdate(const String&, bool);
  235. // Properties:
  236. float alpha;
  237. String animation;
  238. bool animationEnabled;
  239. AnimationSet2D animationSet;
  240. /* readonly */
  241. Array<Variant> attributeDefaults;
  242. /* readonly */
  243. Array<AttributeInfo> attributeInfos;
  244. Array<Variant> attributes;
  245. BlendMode blendMode;
  246. /* readonly */
  247. BoundingBox boundingBox;
  248. bool castShadows;
  249. /* readonly */
  250. String category;
  251. Color color;
  252. Material customMaterial;
  253. float drawDistance;
  254. Rect drawRect;
  255. bool enabled;
  256. /* readonly */
  257. bool enabledEffective;
  258. String entity;
  259. bool flipX;
  260. bool flipY;
  261. Vector2 hotSpot;
  262. /* readonly */
  263. uint id;
  264. /* readonly */
  265. bool inView;
  266. int layer;
  267. uint lightMask;
  268. float lodBias;
  269. LoopMode2D loopMode;
  270. uint maxLights;
  271. /* readonly */
  272. Node node;
  273. /* readonly */
  274. uint numAttributes;
  275. ObjectAnimation objectAnimation;
  276. bool occludee;
  277. bool occluder;
  278. int orderInLayer;
  279. /* readonly */
  280. int refs;
  281. /* readonly */
  282. bool replicated;
  283. float shadowDistance;
  284. uint shadowMask;
  285. float speed;
  286. Sprite2D sprite;
  287. bool temporary;
  288. Rect textureRect;
  289. /* readonly */
  290. StringHash type;
  291. /* readonly */
  292. String typeName;
  293. bool useDrawRect;
  294. bool useHotSpot;
  295. bool useTextureRect;
  296. uint viewMask;
  297. /* readonly */
  298. int weakRefs;
  299. /* readonly */
  300. BoundingBox worldBoundingBox;
  301. uint zoneMask;
  302. };
  303. class Animation
  304. {
  305. public:
  306. Animation();
  307. Animation(const String&in);
  308. // Methods:
  309. void AddMetadata(const String&, const Variant&);
  310. void AddTrigger(const AnimationTriggerPoint&);
  311. void AddTrigger(float, bool, const Variant&);
  312. Animation Clone(const String& = String ( )) const;
  313. AnimationTrack CreateTrack(const String&);
  314. AnimationTrack GetTrack(uint);
  315. bool HasSubscribedToEvent(Object, const String&);
  316. bool HasSubscribedToEvent(const String&);
  317. bool Load(File);
  318. bool Load(VectorBuffer&);
  319. bool Load(const String&);
  320. void RemoveAllMetadata();
  321. bool RemoveAllTracks();
  322. void RemoveAllTriggers();
  323. void RemoveMetadata(const String&);
  324. bool RemoveTrack(const String&);
  325. void RemoveTrigger(uint);
  326. bool Save(File) const;
  327. bool Save(VectorBuffer&) const;
  328. bool Save(const String&) const;
  329. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  330. // Properties:
  331. String animationName;
  332. /* readonly */
  333. String category;
  334. /* readonly */
  335. bool hasMetadata;
  336. float length;
  337. /* readonly */
  338. uint memoryUse;
  339. Array<Variant> metadata;
  340. String name;
  341. /* readonly */
  342. uint numTracks;
  343. uint numTriggers;
  344. /* readonly */
  345. int refs;
  346. /* readonly */
  347. Array<AnimationTrack> tracks;
  348. Array<AnimationTriggerPoint> triggers;
  349. /* readonly */
  350. StringHash type;
  351. /* readonly */
  352. String typeName;
  353. /* readonly */
  354. uint useTimer;
  355. /* readonly */
  356. int weakRefs;
  357. };
  358. class AnimationControl
  359. {
  360. public:
  361. // Properties:
  362. float autoFadeTime;
  363. float fadeTime;
  364. StringHash hash;
  365. String name;
  366. bool removeOnCompletion;
  367. float speed;
  368. float targetWeight;
  369. };
  370. class AnimationController
  371. {
  372. public:
  373. // Methods:
  374. void ApplyAttributes();
  375. void DrawDebugGeometry(DebugRenderer, bool);
  376. bool Fade(const String&, float, float);
  377. bool FadeOthers(const String&, float, float);
  378. AnimationState GetAnimationState(StringHash) const;
  379. AnimationState GetAnimationState(const String&) const;
  380. Variant GetAttribute(const String&) const;
  381. ValueAnimation GetAttributeAnimation(const String&) const;
  382. float GetAttributeAnimationSpeed(const String&) const;
  383. float GetAttributeAnimationTime(const String&) const;
  384. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  385. Variant GetAttributeDefault(const String&) const;
  386. float GetAutoFade(const String&) const;
  387. AnimationBlendMode GetBlendMode(const String&) const;
  388. float GetFadeTarget(const String&) const;
  389. float GetFadeTime(const String&) const;
  390. bool GetInterceptNetworkUpdate(const String&) const;
  391. uint8 GetLayer(const String&) const;
  392. float GetLength(const String&) const;
  393. bool GetLooped(const String&) const;
  394. bool GetRemoveOnCompletion(const String&);
  395. float GetSpeed(const String&) const;
  396. float GetTime(const String&) const;
  397. float GetWeight(const String&) const;
  398. bool HasSubscribedToEvent(Object, const String&);
  399. bool HasSubscribedToEvent(const String&);
  400. bool IsAtEnd(const String&) const;
  401. bool IsFadingIn(const String&) const;
  402. bool IsFadingOut(const String&) const;
  403. bool IsPlaying(const String&) const;
  404. bool IsPlaying(uint8) const;
  405. bool Load(File);
  406. bool Load(VectorBuffer&);
  407. bool LoadJSON(const JSONValue&);
  408. bool LoadXML(const XMLElement&);
  409. void MarkNetworkUpdate() const;
  410. bool Play(const String&, uint8, bool, float = 0.0f);
  411. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  412. void Remove();
  413. void RemoveAttributeAnimation(const String&);
  414. void RemoveInstanceDefault();
  415. void RemoveObjectAnimation();
  416. void ResetToDefault();
  417. bool Save(File) const;
  418. bool Save(VectorBuffer&) const;
  419. bool SaveJSON(JSONValue&) const;
  420. bool SaveXML(XMLElement&) const;
  421. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  422. void SetAnimationTime(float);
  423. bool SetAttribute(const String&, const Variant&);
  424. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  425. void SetAttributeAnimationSpeed(const String&, float);
  426. void SetAttributeAnimationTime(const String&, float);
  427. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  428. bool SetAutoFade(const String&, float);
  429. bool SetBlendMode(const String&, AnimationBlendMode);
  430. void SetInterceptNetworkUpdate(const String&, bool);
  431. bool SetLayer(const String&, uint8);
  432. bool SetLooped(const String&, bool);
  433. bool SetRemoveOnCompletion(const String&, bool);
  434. bool SetSpeed(const String&, float);
  435. bool SetStartBone(const String&, const String&);
  436. bool SetTime(const String&, float);
  437. bool SetWeight(const String&, float);
  438. void Stop(const String&, float = 0.0f);
  439. void StopAll(float = 0.0f);
  440. void StopLayer(uint8, float = 0.0f);
  441. const String& GetStartBone(const String&) const;
  442. // Properties:
  443. bool animationEnabled;
  444. /* readonly */
  445. Array<AnimationControl> animations;
  446. /* readonly */
  447. Array<Variant> attributeDefaults;
  448. /* readonly */
  449. Array<AttributeInfo> attributeInfos;
  450. Array<Variant> attributes;
  451. /* readonly */
  452. String category;
  453. bool enabled;
  454. /* readonly */
  455. bool enabledEffective;
  456. /* readonly */
  457. uint id;
  458. /* readonly */
  459. Node node;
  460. /* readonly */
  461. uint numAnimations;
  462. /* readonly */
  463. uint numAttributes;
  464. ObjectAnimation objectAnimation;
  465. /* readonly */
  466. int refs;
  467. /* readonly */
  468. bool replicated;
  469. bool temporary;
  470. /* readonly */
  471. StringHash type;
  472. /* readonly */
  473. String typeName;
  474. /* readonly */
  475. int weakRefs;
  476. };
  477. class AnimationKeyFrame
  478. {
  479. public:
  480. ~AnimationKeyFrame();
  481. AnimationKeyFrame();
  482. AnimationKeyFrame(const AnimationKeyFrame&in);
  483. // Properties:
  484. Vector3 position;
  485. Quaternion rotation;
  486. Vector3 scale;
  487. float time;
  488. };
  489. class AnimationSet2D
  490. {
  491. public:
  492. AnimationSet2D();
  493. AnimationSet2D(const String&in);
  494. // Methods:
  495. String GetAnimation(uint) const;
  496. bool HasSubscribedToEvent(Object, const String&);
  497. bool HasSubscribedToEvent(const String&);
  498. bool Load(File);
  499. bool Load(VectorBuffer&);
  500. bool Load(const String&);
  501. bool Save(File) const;
  502. bool Save(VectorBuffer&) const;
  503. bool Save(const String&) const;
  504. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  505. // Properties:
  506. /* readonly */
  507. String category;
  508. /* readonly */
  509. uint memoryUse;
  510. String name;
  511. /* readonly */
  512. uint numAnimations;
  513. /* readonly */
  514. int refs;
  515. /* readonly */
  516. StringHash type;
  517. /* readonly */
  518. String typeName;
  519. /* readonly */
  520. uint useTimer;
  521. /* readonly */
  522. int weakRefs;
  523. };
  524. class AnimationState
  525. {
  526. public:
  527. AnimationState(Node&, Animation&);
  528. // Methods:
  529. void AddTime(float);
  530. void AddWeight(float);
  531. void Apply();
  532. float GetBoneWeight(StringHash) const;
  533. float GetBoneWeight(uint) const;
  534. uint GetTrackIndex(StringHash) const;
  535. uint GetTrackIndex(const String&) const;
  536. void SetBoneWeight(StringHash, float, bool = false);
  537. void SetBoneWeight(const String&, float, bool = false);
  538. void SetBoneWeight(uint, float, bool = false);
  539. // Properties:
  540. /* readonly */
  541. Animation animation;
  542. AnimationBlendMode blendMode;
  543. Array<float> boneWeights;
  544. /* readonly */
  545. bool enabled;
  546. uint8 layer;
  547. /* readonly */
  548. float length;
  549. bool looped;
  550. /* readonly */
  551. AnimatedModel model;
  552. /* readonly */
  553. Node node;
  554. /* readonly */
  555. int refs;
  556. Bone startBone;
  557. float time;
  558. /* readonly */
  559. int weakRefs;
  560. float weight;
  561. };
  562. class AnimationTrack
  563. {
  564. public:
  565. // Methods:
  566. void AddKeyFrame(const AnimationKeyFrame&);
  567. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  568. void RemoveAllKeyFrames();
  569. void RemoveKeyFrame(uint);
  570. // Properties:
  571. uint8 channelMask;
  572. Array<AnimationKeyFrame> keyFrames;
  573. String name;
  574. StringHash nameHash;
  575. /* readonly */
  576. uint numKeyFrames;
  577. };
  578. class AnimationTriggerPoint
  579. {
  580. public:
  581. ~AnimationTriggerPoint();
  582. AnimationTriggerPoint();
  583. AnimationTriggerPoint(const AnimationTriggerPoint&in);
  584. // Properties:
  585. Variant data;
  586. float time;
  587. };
  588. template <class T>
  589. class Array
  590. {
  591. public:
  592. Array(int&in);
  593. Array(int&in, uint);
  594. Array(int&in, uint, const T&in);
  595. // Methods:
  596. void Clear();
  597. void Erase(uint);
  598. int Find(const T&) const;
  599. int Find(uint, const T&) const;
  600. int FindByRef(const T&) const;
  601. int FindByRef(uint, const T&) const;
  602. void Insert(uint, const T&);
  603. void Pop();
  604. void Push(const T&);
  605. void Reserve(uint);
  606. void Resize(uint);
  607. void Reverse();
  608. void Sort();
  609. void Sort(uint, uint);
  610. void SortReverse();
  611. void SortReverse(uint, uint);
  612. bool Swap(Array<T>&);
  613. // Properties:
  614. /* readonly */
  615. bool empty;
  616. uint length;
  617. };
  618. class AttributeInfo
  619. {
  620. public:
  621. ~AttributeInfo();
  622. AttributeInfo();
  623. AttributeInfo(const AttributeInfo&in);
  624. // Properties:
  625. Variant defaultValue;
  626. /* readonly */
  627. Array<String> enumNames;
  628. VariantMap metadata;
  629. uint mode;
  630. String name;
  631. VariantType type;
  632. };
  633. class Audio
  634. {
  635. public:
  636. // Methods:
  637. bool HasMasterGain(const String&) const;
  638. bool HasSubscribedToEvent(Object, const String&);
  639. bool HasSubscribedToEvent(const String&);
  640. bool IsSoundTypePaused(const String&);
  641. void PauseSoundType(const String&);
  642. bool Play();
  643. void ResumeAll();
  644. void ResumeSoundType(const String&);
  645. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  646. void SetMode(int, int, bool, bool = true);
  647. void Stop();
  648. // Properties:
  649. /* readonly */
  650. String category;
  651. /* readonly */
  652. bool initialized;
  653. /* readonly */
  654. bool interpolation;
  655. SoundListener listener;
  656. Array<float> masterGain;
  657. /* readonly */
  658. int mixRate;
  659. /* readonly */
  660. bool playing;
  661. /* readonly */
  662. int refs;
  663. /* readonly */
  664. uint sampleSize;
  665. /* readonly */
  666. bool stereo;
  667. /* readonly */
  668. StringHash type;
  669. /* readonly */
  670. String typeName;
  671. /* readonly */
  672. int weakRefs;
  673. };
  674. class BiasParameters
  675. {
  676. public:
  677. BiasParameters();
  678. BiasParameters(const BiasParameters&in);
  679. BiasParameters(float, float, float normalOffset = 0.0f);
  680. // Properties:
  681. float constantBias;
  682. float normalOffset;
  683. float slopeScaledBias;
  684. };
  685. class Billboard
  686. {
  687. public:
  688. // Properties:
  689. Color color;
  690. Vector3 direction;
  691. bool enabled;
  692. Vector3 position;
  693. float rotation;
  694. Vector2 size;
  695. Rect uv;
  696. };
  697. class BillboardSet
  698. {
  699. public:
  700. // Methods:
  701. void ApplyAttributes();
  702. void Commit();
  703. void DrawDebugGeometry(DebugRenderer, bool);
  704. Variant GetAttribute(const String&) const;
  705. ValueAnimation GetAttributeAnimation(const String&) const;
  706. float GetAttributeAnimationSpeed(const String&) const;
  707. float GetAttributeAnimationTime(const String&) const;
  708. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  709. Variant GetAttributeDefault(const String&) const;
  710. bool GetInterceptNetworkUpdate(const String&) const;
  711. bool HasSubscribedToEvent(Object, const String&);
  712. bool HasSubscribedToEvent(const String&);
  713. bool IsInView(Camera) const;
  714. bool Load(File);
  715. bool Load(VectorBuffer&);
  716. bool LoadJSON(const JSONValue&);
  717. bool LoadXML(const XMLElement&);
  718. void MarkNetworkUpdate() const;
  719. void Remove();
  720. void RemoveAttributeAnimation(const String&);
  721. void RemoveInstanceDefault();
  722. void RemoveObjectAnimation();
  723. void ResetToDefault();
  724. bool Save(File) const;
  725. bool Save(VectorBuffer&) const;
  726. bool SaveJSON(JSONValue&) const;
  727. bool SaveXML(XMLElement&) const;
  728. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  729. void SetAnimationTime(float);
  730. bool SetAttribute(const String&, const Variant&);
  731. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  732. void SetAttributeAnimationSpeed(const String&, float);
  733. void SetAttributeAnimationTime(const String&, float);
  734. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  735. void SetInterceptNetworkUpdate(const String&, bool);
  736. // Properties:
  737. bool animationEnabled;
  738. float animationLodBias;
  739. /* readonly */
  740. Array<Variant> attributeDefaults;
  741. /* readonly */
  742. Array<AttributeInfo> attributeInfos;
  743. Array<Variant> attributes;
  744. /* readonly */
  745. Array<Billboard> billboards;
  746. /* readonly */
  747. BoundingBox boundingBox;
  748. bool castShadows;
  749. /* readonly */
  750. String category;
  751. float drawDistance;
  752. bool enabled;
  753. /* readonly */
  754. bool enabledEffective;
  755. FaceCameraMode faceCameraMode;
  756. bool fixedScreenSize;
  757. /* readonly */
  758. uint id;
  759. /* readonly */
  760. bool inView;
  761. uint lightMask;
  762. float lodBias;
  763. Material material;
  764. uint maxLights;
  765. float minAngle;
  766. /* readonly */
  767. Node node;
  768. /* readonly */
  769. uint numAttributes;
  770. uint numBillboards;
  771. ObjectAnimation objectAnimation;
  772. bool occludee;
  773. bool occluder;
  774. /* readonly */
  775. int refs;
  776. bool relative;
  777. /* readonly */
  778. bool replicated;
  779. bool scaled;
  780. float shadowDistance;
  781. uint shadowMask;
  782. bool sorted;
  783. bool temporary;
  784. /* readonly */
  785. StringHash type;
  786. /* readonly */
  787. String typeName;
  788. uint viewMask;
  789. /* readonly */
  790. int weakRefs;
  791. /* readonly */
  792. BoundingBox worldBoundingBox;
  793. /* readonly */
  794. Zone zone;
  795. uint zoneMask;
  796. };
  797. class Bone
  798. {
  799. public:
  800. // Properties:
  801. bool animated;
  802. BoundingBox boundingBox;
  803. Vector3 initialPosition;
  804. Quaternion initialRotation;
  805. Vector3 initialScale;
  806. String name;
  807. Node node;
  808. uint parentIndex;
  809. float radius;
  810. };
  811. class BorderImage
  812. {
  813. public:
  814. BorderImage();
  815. BorderImage(const String&in);
  816. // Methods:
  817. void AddChild(UIElement);
  818. void AddTag(const String&);
  819. void AddTags(const String&, int8 = ';');
  820. void ApplyAttributes();
  821. void BringToFront();
  822. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  823. void DisableLayoutUpdate();
  824. IntVector2 ElementToScreen(const IntVector2&);
  825. void EnableLayoutUpdate();
  826. uint FindChild(UIElement) const;
  827. Variant GetAttribute(const String&) const;
  828. ValueAnimation GetAttributeAnimation(const String&) const;
  829. float GetAttributeAnimationSpeed(const String&) const;
  830. float GetAttributeAnimationTime(const String&) const;
  831. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  832. Variant GetAttributeDefault(const String&) const;
  833. UIElement GetChild(const String&, bool = false) const;
  834. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  835. Array<UIElement> GetChildren(bool = false) const;
  836. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  837. UIElement GetElementEventSender() const;
  838. bool GetInterceptNetworkUpdate(const String&) const;
  839. uint GetNumChildren(bool) const;
  840. bool HasSubscribedToEvent(Object, const String&);
  841. bool HasSubscribedToEvent(const String&);
  842. bool HasTag(const String&) const;
  843. void InsertChild(uint, UIElement);
  844. bool IsChildOf(UIElement) const;
  845. bool IsInside(IntVector2, bool);
  846. bool IsInsideCombined(IntVector2, bool);
  847. bool Load(File);
  848. bool Load(VectorBuffer&);
  849. UIElement LoadChildXML(XMLFile, XMLFile);
  850. UIElement LoadChildXML(const XMLElement&, XMLFile);
  851. bool LoadJSON(const JSONValue&);
  852. bool LoadXML(File);
  853. bool LoadXML(VectorBuffer&);
  854. bool LoadXML(XMLFile, XMLFile);
  855. bool LoadXML(const XMLElement&, XMLFile);
  856. bool LoadXML(const XMLElement&);
  857. void MarkNetworkUpdate() const;
  858. void Remove();
  859. void RemoveAllChildren();
  860. void RemoveAllTags();
  861. void RemoveAttributeAnimation(const String&);
  862. void RemoveChild(UIElement, uint = 0);
  863. void RemoveChild(uint);
  864. void RemoveInstanceDefault();
  865. void RemoveObjectAnimation();
  866. bool RemoveTag(const String&);
  867. void ResetDeepEnabled();
  868. void ResetToDefault();
  869. bool Save(File) const;
  870. bool Save(VectorBuffer&) const;
  871. bool SaveJSON(JSONValue&) const;
  872. bool SaveXML(File, const String& = "\t");
  873. bool SaveXML(VectorBuffer&, const String& = "\t");
  874. bool SaveXML(XMLElement&) const;
  875. IntVector2 ScreenToElement(const IntVector2&);
  876. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  877. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  878. void SetAnimationTime(float);
  879. bool SetAttribute(const String&, const Variant&);
  880. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  881. void SetAttributeAnimationSpeed(const String&, float);
  882. void SetAttributeAnimationTime(const String&, float);
  883. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  884. void SetDeepEnabled(bool);
  885. void SetEnabledRecursive(bool);
  886. void SetFixedHeight(int);
  887. void SetFixedSize(int, int);
  888. void SetFixedWidth(int);
  889. void SetFullImageRect();
  890. void SetHoverOffset(int, int);
  891. void SetInterceptNetworkUpdate(const String&, bool);
  892. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  893. void SetMaxAnchor(float, float);
  894. void SetMaxSize(int, int);
  895. void SetMinAnchor(float, float);
  896. void SetMinSize(int, int);
  897. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  898. void SetPivot(float, float);
  899. void SetPosition(int, int);
  900. void SetSize(int, int);
  901. bool SetStyle(const String&, XMLFile = null);
  902. bool SetStyle(const XMLElement&);
  903. bool SetStyleAuto(XMLFile = null);
  904. void UpdateLayout();
  905. const Variant& GetVar(const StringHash&);
  906. // Properties:
  907. bool animationEnabled;
  908. /* readonly */
  909. Array<Variant> attributeDefaults;
  910. /* readonly */
  911. Array<AttributeInfo> attributeInfos;
  912. Array<Variant> attributes;
  913. BlendMode blendMode;
  914. IntRect border;
  915. bool bringToBack;
  916. bool bringToFront;
  917. /* readonly */
  918. String category;
  919. /* readonly */
  920. IntVector2 childOffset;
  921. /* readonly */
  922. Array<UIElement> children;
  923. IntRect clipBorder;
  924. bool clipChildren;
  925. /* writeonly */
  926. Color color;
  927. /* readonly */
  928. bool colorGradient;
  929. Array<Color> colors;
  930. /* readonly */
  931. IntRect combinedScreenRect;
  932. XMLFile defaultStyle;
  933. /* readonly */
  934. float derivedOpacity;
  935. /* readonly */
  936. uint dragButtonCombo;
  937. /* readonly */
  938. int dragButtonCount;
  939. uint dragDropMode;
  940. bool editable;
  941. bool elementEventSender;
  942. bool enableAnchor;
  943. bool enabled;
  944. /* readonly */
  945. bool enabledSelf;
  946. /* readonly */
  947. bool fixedHeight;
  948. /* readonly */
  949. bool fixedSize;
  950. /* readonly */
  951. bool fixedWidth;
  952. bool focus;
  953. FocusMode focusMode;
  954. int height;
  955. HorizontalAlignment horizontalAlignment;
  956. IntVector2 hoverOffset;
  957. /* readonly */
  958. bool hovering;
  959. IntRect imageBorder;
  960. IntRect imageRect;
  961. int indent;
  962. int indentSpacing;
  963. /* readonly */
  964. int indentWidth;
  965. bool internal;
  966. IntRect layoutBorder;
  967. Vector2 layoutFlexScale;
  968. LayoutMode layoutMode;
  969. int layoutSpacing;
  970. Vector2 maxAnchor;
  971. int maxHeight;
  972. IntVector2 maxOffset;
  973. IntVector2 maxSize;
  974. int maxWidth;
  975. Vector2 minAnchor;
  976. int minHeight;
  977. IntVector2 minOffset;
  978. IntVector2 minSize;
  979. int minWidth;
  980. String name;
  981. /* readonly */
  982. uint numAllChildren;
  983. /* readonly */
  984. uint numAttributes;
  985. /* readonly */
  986. uint numChildren;
  987. ObjectAnimation objectAnimation;
  988. float opacity;
  989. UIElement parent;
  990. Vector2 pivot;
  991. IntVector2 position;
  992. int priority;
  993. /* readonly */
  994. int refs;
  995. /* readonly */
  996. UIElement root;
  997. /* readonly */
  998. IntVector2 screenPosition;
  999. bool selected;
  1000. IntVector2 size;
  1001. bool sortChildren;
  1002. String style;
  1003. /* readonly */
  1004. Array<String> tags;
  1005. bool temporary;
  1006. Texture texture;
  1007. bool tiled;
  1008. TraversalMode traversalMode;
  1009. /* readonly */
  1010. StringHash type;
  1011. /* readonly */
  1012. String typeName;
  1013. bool useDerivedOpacity;
  1014. /* readonly */
  1015. VariantMap vars;
  1016. VerticalAlignment verticalAlignment;
  1017. bool visible;
  1018. /* readonly */
  1019. bool visibleEffective;
  1020. /* readonly */
  1021. int weakRefs;
  1022. int width;
  1023. };
  1024. class BoundingBox
  1025. {
  1026. public:
  1027. BoundingBox();
  1028. BoundingBox(const BoundingBox&in);
  1029. BoundingBox(const Rect&in);
  1030. BoundingBox(const Vector3&in, const Vector3&in);
  1031. BoundingBox(float, float);
  1032. BoundingBox(const Frustum&in);
  1033. BoundingBox(const Polyhedron&in);
  1034. BoundingBox(const Sphere&in);
  1035. // Methods:
  1036. void Clear();
  1037. void Clip(const BoundingBox&);
  1038. void Define(const BoundingBox&);
  1039. void Define(const Frustum&);
  1040. void Define(const Polyhedron&);
  1041. void Define(const Sphere&);
  1042. void Define(const Vector3&);
  1043. void Define(const Vector3&, const Vector3&);
  1044. void Define(float, float);
  1045. bool Defined() const;
  1046. float DistanceToPoint(const Vector3&) const;
  1047. Intersection IsInside(const BoundingBox&) const;
  1048. Intersection IsInside(const Sphere&) const;
  1049. Intersection IsInside(const Vector3&) const;
  1050. Intersection IsInsideFast(const BoundingBox&) const;
  1051. Intersection IsInsideFast(const Sphere&) const;
  1052. void Merge(const BoundingBox&);
  1053. void Merge(const Frustum&);
  1054. void Merge(const Polyhedron&);
  1055. void Merge(const Sphere&);
  1056. void Merge(const Vector3&);
  1057. Rect Projected(const Matrix4&) const;
  1058. String ToString() const;
  1059. void Transform(const Matrix3&);
  1060. void Transform(const Matrix3x4&);
  1061. BoundingBox Transformed(const Matrix3&) const;
  1062. BoundingBox Transformed(const Matrix3x4&) const;
  1063. // Properties:
  1064. /* readonly */
  1065. Vector3 center;
  1066. /* readonly */
  1067. Vector3 halfSize;
  1068. Vector3 max;
  1069. Vector3 min;
  1070. /* readonly */
  1071. Vector3 size;
  1072. };
  1073. class Button
  1074. {
  1075. public:
  1076. Button();
  1077. Button(const String&in);
  1078. // Methods:
  1079. void AddChild(UIElement);
  1080. void AddTag(const String&);
  1081. void AddTags(const String&, int8 = ';');
  1082. void ApplyAttributes();
  1083. void BringToFront();
  1084. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1085. void DisableLayoutUpdate();
  1086. IntVector2 ElementToScreen(const IntVector2&);
  1087. void EnableLayoutUpdate();
  1088. uint FindChild(UIElement) const;
  1089. Variant GetAttribute(const String&) const;
  1090. ValueAnimation GetAttributeAnimation(const String&) const;
  1091. float GetAttributeAnimationSpeed(const String&) const;
  1092. float GetAttributeAnimationTime(const String&) const;
  1093. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1094. Variant GetAttributeDefault(const String&) const;
  1095. UIElement GetChild(const String&, bool = false) const;
  1096. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1097. Array<UIElement> GetChildren(bool = false) const;
  1098. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1099. UIElement GetElementEventSender() const;
  1100. bool GetInterceptNetworkUpdate(const String&) const;
  1101. uint GetNumChildren(bool) const;
  1102. bool HasSubscribedToEvent(Object, const String&);
  1103. bool HasSubscribedToEvent(const String&);
  1104. bool HasTag(const String&) const;
  1105. void InsertChild(uint, UIElement);
  1106. bool IsChildOf(UIElement) const;
  1107. bool IsInside(IntVector2, bool);
  1108. bool IsInsideCombined(IntVector2, bool);
  1109. bool Load(File);
  1110. bool Load(VectorBuffer&);
  1111. UIElement LoadChildXML(XMLFile, XMLFile);
  1112. UIElement LoadChildXML(const XMLElement&, XMLFile);
  1113. bool LoadJSON(const JSONValue&);
  1114. bool LoadXML(File);
  1115. bool LoadXML(VectorBuffer&);
  1116. bool LoadXML(XMLFile, XMLFile);
  1117. bool LoadXML(const XMLElement&, XMLFile);
  1118. bool LoadXML(const XMLElement&);
  1119. void MarkNetworkUpdate() const;
  1120. void Remove();
  1121. void RemoveAllChildren();
  1122. void RemoveAllTags();
  1123. void RemoveAttributeAnimation(const String&);
  1124. void RemoveChild(UIElement, uint = 0);
  1125. void RemoveChild(uint);
  1126. void RemoveInstanceDefault();
  1127. void RemoveObjectAnimation();
  1128. bool RemoveTag(const String&);
  1129. void ResetDeepEnabled();
  1130. void ResetToDefault();
  1131. bool Save(File) const;
  1132. bool Save(VectorBuffer&) const;
  1133. bool SaveJSON(JSONValue&) const;
  1134. bool SaveXML(File, const String& = "\t");
  1135. bool SaveXML(VectorBuffer&, const String& = "\t");
  1136. bool SaveXML(XMLElement&) const;
  1137. IntVector2 ScreenToElement(const IntVector2&);
  1138. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1139. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1140. void SetAnimationTime(float);
  1141. bool SetAttribute(const String&, const Variant&);
  1142. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1143. void SetAttributeAnimationSpeed(const String&, float);
  1144. void SetAttributeAnimationTime(const String&, float);
  1145. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1146. void SetDeepEnabled(bool);
  1147. void SetDisabledOffset(int, int);
  1148. void SetEnabledRecursive(bool);
  1149. void SetFixedHeight(int);
  1150. void SetFixedSize(int, int);
  1151. void SetFixedWidth(int);
  1152. void SetFullImageRect();
  1153. void SetHoverOffset(int, int);
  1154. void SetInterceptNetworkUpdate(const String&, bool);
  1155. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1156. void SetMaxAnchor(float, float);
  1157. void SetMaxSize(int, int);
  1158. void SetMinAnchor(float, float);
  1159. void SetMinSize(int, int);
  1160. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1161. void SetPivot(float, float);
  1162. void SetPosition(int, int);
  1163. void SetPressedChildOffset(int, int);
  1164. void SetPressedOffset(int, int);
  1165. void SetRepeat(float, float);
  1166. void SetSize(int, int);
  1167. bool SetStyle(const String&, XMLFile = null);
  1168. bool SetStyle(const XMLElement&);
  1169. bool SetStyleAuto(XMLFile = null);
  1170. void UpdateLayout();
  1171. const Variant& GetVar(const StringHash&);
  1172. // Properties:
  1173. bool animationEnabled;
  1174. /* readonly */
  1175. Array<Variant> attributeDefaults;
  1176. /* readonly */
  1177. Array<AttributeInfo> attributeInfos;
  1178. Array<Variant> attributes;
  1179. BlendMode blendMode;
  1180. IntRect border;
  1181. bool bringToBack;
  1182. bool bringToFront;
  1183. /* readonly */
  1184. String category;
  1185. /* readonly */
  1186. IntVector2 childOffset;
  1187. /* readonly */
  1188. Array<UIElement> children;
  1189. IntRect clipBorder;
  1190. bool clipChildren;
  1191. /* writeonly */
  1192. Color color;
  1193. /* readonly */
  1194. bool colorGradient;
  1195. Array<Color> colors;
  1196. /* readonly */
  1197. IntRect combinedScreenRect;
  1198. XMLFile defaultStyle;
  1199. /* readonly */
  1200. float derivedOpacity;
  1201. IntVector2 disabledOffset;
  1202. /* readonly */
  1203. uint dragButtonCombo;
  1204. /* readonly */
  1205. int dragButtonCount;
  1206. uint dragDropMode;
  1207. bool editable;
  1208. bool elementEventSender;
  1209. bool enableAnchor;
  1210. bool enabled;
  1211. /* readonly */
  1212. bool enabledSelf;
  1213. /* readonly */
  1214. bool fixedHeight;
  1215. /* readonly */
  1216. bool fixedSize;
  1217. /* readonly */
  1218. bool fixedWidth;
  1219. bool focus;
  1220. FocusMode focusMode;
  1221. int height;
  1222. HorizontalAlignment horizontalAlignment;
  1223. IntVector2 hoverOffset;
  1224. /* readonly */
  1225. bool hovering;
  1226. IntRect imageBorder;
  1227. IntRect imageRect;
  1228. int indent;
  1229. int indentSpacing;
  1230. /* readonly */
  1231. int indentWidth;
  1232. bool internal;
  1233. IntRect layoutBorder;
  1234. Vector2 layoutFlexScale;
  1235. LayoutMode layoutMode;
  1236. int layoutSpacing;
  1237. Vector2 maxAnchor;
  1238. int maxHeight;
  1239. IntVector2 maxOffset;
  1240. IntVector2 maxSize;
  1241. int maxWidth;
  1242. Vector2 minAnchor;
  1243. int minHeight;
  1244. IntVector2 minOffset;
  1245. IntVector2 minSize;
  1246. int minWidth;
  1247. String name;
  1248. /* readonly */
  1249. uint numAllChildren;
  1250. /* readonly */
  1251. uint numAttributes;
  1252. /* readonly */
  1253. uint numChildren;
  1254. ObjectAnimation objectAnimation;
  1255. float opacity;
  1256. UIElement parent;
  1257. Vector2 pivot;
  1258. IntVector2 position;
  1259. /* readonly */
  1260. bool pressed;
  1261. IntVector2 pressedChildOffset;
  1262. IntVector2 pressedOffset;
  1263. int priority;
  1264. /* readonly */
  1265. int refs;
  1266. float repeatDelay;
  1267. float repeatRate;
  1268. /* readonly */
  1269. UIElement root;
  1270. /* readonly */
  1271. IntVector2 screenPosition;
  1272. bool selected;
  1273. IntVector2 size;
  1274. bool sortChildren;
  1275. String style;
  1276. /* readonly */
  1277. Array<String> tags;
  1278. bool temporary;
  1279. Texture texture;
  1280. bool tiled;
  1281. TraversalMode traversalMode;
  1282. /* readonly */
  1283. StringHash type;
  1284. /* readonly */
  1285. String typeName;
  1286. bool useDerivedOpacity;
  1287. /* readonly */
  1288. VariantMap vars;
  1289. VerticalAlignment verticalAlignment;
  1290. bool visible;
  1291. /* readonly */
  1292. bool visibleEffective;
  1293. /* readonly */
  1294. int weakRefs;
  1295. int width;
  1296. };
  1297. class Camera
  1298. {
  1299. public:
  1300. // Methods:
  1301. void ApplyAttributes();
  1302. void DrawDebugGeometry(DebugRenderer, bool);
  1303. Variant GetAttribute(const String&) const;
  1304. ValueAnimation GetAttributeAnimation(const String&) const;
  1305. float GetAttributeAnimationSpeed(const String&) const;
  1306. float GetAttributeAnimationTime(const String&) const;
  1307. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1308. Variant GetAttributeDefault(const String&) const;
  1309. float GetDistance(const Vector3&) const;
  1310. float GetDistanceSquared(const Vector3&) const;
  1311. bool GetInterceptNetworkUpdate(const String&) const;
  1312. Ray GetScreenRay(float, float) const;
  1313. Frustum GetSplitFrustum(float, float) const;
  1314. bool HasSubscribedToEvent(Object, const String&);
  1315. bool HasSubscribedToEvent(const String&);
  1316. bool Load(File);
  1317. bool Load(VectorBuffer&);
  1318. bool LoadJSON(const JSONValue&);
  1319. bool LoadXML(const XMLElement&);
  1320. void MarkNetworkUpdate() const;
  1321. void Remove();
  1322. void RemoveAttributeAnimation(const String&);
  1323. void RemoveInstanceDefault();
  1324. void RemoveObjectAnimation();
  1325. void ResetToDefault();
  1326. bool Save(File) const;
  1327. bool Save(VectorBuffer&) const;
  1328. bool SaveJSON(JSONValue&) const;
  1329. bool SaveXML(XMLElement&) const;
  1330. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1332. void SetAnimationTime(float);
  1333. bool SetAttribute(const String&, const Variant&);
  1334. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1335. void SetAttributeAnimationSpeed(const String&, float);
  1336. void SetAttributeAnimationTime(const String&, float);
  1337. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1338. void SetInterceptNetworkUpdate(const String&, bool);
  1339. void SetOrthoSize(const Vector2&);
  1340. Vector2 WorldToScreenPoint(const Vector3&) const;
  1341. // Properties:
  1342. bool animationEnabled;
  1343. float aspectRatio;
  1344. /* readonly */
  1345. Array<Variant> attributeDefaults;
  1346. /* readonly */
  1347. Array<AttributeInfo> attributeInfos;
  1348. Array<Variant> attributes;
  1349. bool autoAspectRatio;
  1350. /* readonly */
  1351. String category;
  1352. Plane clipPlane;
  1353. /* readonly */
  1354. Matrix3x4 effectiveWorldTransform;
  1355. bool enabled;
  1356. /* readonly */
  1357. bool enabledEffective;
  1358. float farClip;
  1359. FillMode fillMode;
  1360. float fov;
  1361. /* readonly */
  1362. Frustum frustum;
  1363. /* readonly */
  1364. Matrix4 gpuProjection;
  1365. /* readonly */
  1366. float halfViewSize;
  1367. /* readonly */
  1368. uint id;
  1369. float lodBias;
  1370. float nearClip;
  1371. /* readonly */
  1372. Node node;
  1373. /* readonly */
  1374. uint numAttributes;
  1375. ObjectAnimation objectAnimation;
  1376. float orthoSize;
  1377. bool orthographic;
  1378. Matrix4 projection;
  1379. Vector2 projectionOffset;
  1380. Plane reflectionPlane;
  1381. /* readonly */
  1382. int refs;
  1383. /* readonly */
  1384. bool replicated;
  1385. bool temporary;
  1386. /* readonly */
  1387. StringHash type;
  1388. /* readonly */
  1389. String typeName;
  1390. bool useClipping;
  1391. bool useReflection;
  1392. /* readonly */
  1393. Matrix3x4 view;
  1394. uint viewMask;
  1395. uint viewOverrideFlags;
  1396. /* readonly */
  1397. Frustum viewSpaceFrustum;
  1398. /* readonly */
  1399. int weakRefs;
  1400. float zoom;
  1401. };
  1402. class CascadeParameters
  1403. {
  1404. public:
  1405. CascadeParameters();
  1406. CascadeParameters(const CascadeParameters&in);
  1407. CascadeParameters(float, float, float, float, float, float biasAutoAdjust = 1.0);
  1408. // Properties:
  1409. float biasAutoAdjust;
  1410. float fadeStart;
  1411. float split1;
  1412. float split2;
  1413. float split3;
  1414. float split4;
  1415. };
  1416. class CheckBox
  1417. {
  1418. public:
  1419. CheckBox();
  1420. CheckBox(const String&in);
  1421. // Methods:
  1422. void AddChild(UIElement);
  1423. void AddTag(const String&);
  1424. void AddTags(const String&, int8 = ';');
  1425. void ApplyAttributes();
  1426. void BringToFront();
  1427. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1428. void DisableLayoutUpdate();
  1429. IntVector2 ElementToScreen(const IntVector2&);
  1430. void EnableLayoutUpdate();
  1431. uint FindChild(UIElement) const;
  1432. Variant GetAttribute(const String&) const;
  1433. ValueAnimation GetAttributeAnimation(const String&) const;
  1434. float GetAttributeAnimationSpeed(const String&) const;
  1435. float GetAttributeAnimationTime(const String&) const;
  1436. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1437. Variant GetAttributeDefault(const String&) const;
  1438. UIElement GetChild(const String&, bool = false) const;
  1439. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1440. Array<UIElement> GetChildren(bool = false) const;
  1441. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1442. UIElement GetElementEventSender() const;
  1443. bool GetInterceptNetworkUpdate(const String&) const;
  1444. uint GetNumChildren(bool) const;
  1445. bool HasSubscribedToEvent(Object, const String&);
  1446. bool HasSubscribedToEvent(const String&);
  1447. bool HasTag(const String&) const;
  1448. void InsertChild(uint, UIElement);
  1449. bool IsChildOf(UIElement) const;
  1450. bool IsInside(IntVector2, bool);
  1451. bool IsInsideCombined(IntVector2, bool);
  1452. bool Load(File);
  1453. bool Load(VectorBuffer&);
  1454. UIElement LoadChildXML(XMLFile, XMLFile);
  1455. UIElement LoadChildXML(const XMLElement&, XMLFile);
  1456. bool LoadJSON(const JSONValue&);
  1457. bool LoadXML(File);
  1458. bool LoadXML(VectorBuffer&);
  1459. bool LoadXML(XMLFile, XMLFile);
  1460. bool LoadXML(const XMLElement&, XMLFile);
  1461. bool LoadXML(const XMLElement&);
  1462. void MarkNetworkUpdate() const;
  1463. void Remove();
  1464. void RemoveAllChildren();
  1465. void RemoveAllTags();
  1466. void RemoveAttributeAnimation(const String&);
  1467. void RemoveChild(UIElement, uint = 0);
  1468. void RemoveChild(uint);
  1469. void RemoveInstanceDefault();
  1470. void RemoveObjectAnimation();
  1471. bool RemoveTag(const String&);
  1472. void ResetDeepEnabled();
  1473. void ResetToDefault();
  1474. bool Save(File) const;
  1475. bool Save(VectorBuffer&) const;
  1476. bool SaveJSON(JSONValue&) const;
  1477. bool SaveXML(File, const String& = "\t");
  1478. bool SaveXML(VectorBuffer&, const String& = "\t");
  1479. bool SaveXML(XMLElement&) const;
  1480. IntVector2 ScreenToElement(const IntVector2&);
  1481. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1482. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1483. void SetAnimationTime(float);
  1484. bool SetAttribute(const String&, const Variant&);
  1485. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1486. void SetAttributeAnimationSpeed(const String&, float);
  1487. void SetAttributeAnimationTime(const String&, float);
  1488. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1489. void SetCheckedOffset(int, int);
  1490. void SetDeepEnabled(bool);
  1491. void SetEnabledRecursive(bool);
  1492. void SetFixedHeight(int);
  1493. void SetFixedSize(int, int);
  1494. void SetFixedWidth(int);
  1495. void SetFullImageRect();
  1496. void SetHoverOffset(int, int);
  1497. void SetInterceptNetworkUpdate(const String&, bool);
  1498. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1499. void SetMaxAnchor(float, float);
  1500. void SetMaxSize(int, int);
  1501. void SetMinAnchor(float, float);
  1502. void SetMinSize(int, int);
  1503. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1504. void SetPivot(float, float);
  1505. void SetPosition(int, int);
  1506. void SetSize(int, int);
  1507. bool SetStyle(const String&, XMLFile = null);
  1508. bool SetStyle(const XMLElement&);
  1509. bool SetStyleAuto(XMLFile = null);
  1510. void UpdateLayout();
  1511. const Variant& GetVar(const StringHash&);
  1512. // Properties:
  1513. bool animationEnabled;
  1514. /* readonly */
  1515. Array<Variant> attributeDefaults;
  1516. /* readonly */
  1517. Array<AttributeInfo> attributeInfos;
  1518. Array<Variant> attributes;
  1519. BlendMode blendMode;
  1520. IntRect border;
  1521. bool bringToBack;
  1522. bool bringToFront;
  1523. /* readonly */
  1524. String category;
  1525. bool checked;
  1526. IntVector2 checkedOffset;
  1527. /* readonly */
  1528. IntVector2 childOffset;
  1529. /* readonly */
  1530. Array<UIElement> children;
  1531. IntRect clipBorder;
  1532. bool clipChildren;
  1533. /* writeonly */
  1534. Color color;
  1535. /* readonly */
  1536. bool colorGradient;
  1537. Array<Color> colors;
  1538. /* readonly */
  1539. IntRect combinedScreenRect;
  1540. XMLFile defaultStyle;
  1541. /* readonly */
  1542. float derivedOpacity;
  1543. /* readonly */
  1544. uint dragButtonCombo;
  1545. /* readonly */
  1546. int dragButtonCount;
  1547. uint dragDropMode;
  1548. bool editable;
  1549. bool elementEventSender;
  1550. bool enableAnchor;
  1551. bool enabled;
  1552. /* readonly */
  1553. bool enabledSelf;
  1554. /* readonly */
  1555. bool fixedHeight;
  1556. /* readonly */
  1557. bool fixedSize;
  1558. /* readonly */
  1559. bool fixedWidth;
  1560. bool focus;
  1561. FocusMode focusMode;
  1562. int height;
  1563. HorizontalAlignment horizontalAlignment;
  1564. IntVector2 hoverOffset;
  1565. /* readonly */
  1566. bool hovering;
  1567. IntRect imageBorder;
  1568. IntRect imageRect;
  1569. int indent;
  1570. int indentSpacing;
  1571. /* readonly */
  1572. int indentWidth;
  1573. bool internal;
  1574. IntRect layoutBorder;
  1575. Vector2 layoutFlexScale;
  1576. LayoutMode layoutMode;
  1577. int layoutSpacing;
  1578. Vector2 maxAnchor;
  1579. int maxHeight;
  1580. IntVector2 maxOffset;
  1581. IntVector2 maxSize;
  1582. int maxWidth;
  1583. Vector2 minAnchor;
  1584. int minHeight;
  1585. IntVector2 minOffset;
  1586. IntVector2 minSize;
  1587. int minWidth;
  1588. String name;
  1589. /* readonly */
  1590. uint numAllChildren;
  1591. /* readonly */
  1592. uint numAttributes;
  1593. /* readonly */
  1594. uint numChildren;
  1595. ObjectAnimation objectAnimation;
  1596. float opacity;
  1597. UIElement parent;
  1598. Vector2 pivot;
  1599. IntVector2 position;
  1600. int priority;
  1601. /* readonly */
  1602. int refs;
  1603. /* readonly */
  1604. UIElement root;
  1605. /* readonly */
  1606. IntVector2 screenPosition;
  1607. bool selected;
  1608. IntVector2 size;
  1609. bool sortChildren;
  1610. String style;
  1611. /* readonly */
  1612. Array<String> tags;
  1613. bool temporary;
  1614. Texture texture;
  1615. bool tiled;
  1616. TraversalMode traversalMode;
  1617. /* readonly */
  1618. StringHash type;
  1619. /* readonly */
  1620. String typeName;
  1621. bool useDerivedOpacity;
  1622. /* readonly */
  1623. VariantMap vars;
  1624. VerticalAlignment verticalAlignment;
  1625. bool visible;
  1626. /* readonly */
  1627. bool visibleEffective;
  1628. /* readonly */
  1629. int weakRefs;
  1630. int width;
  1631. };
  1632. class CollisionBox2D
  1633. {
  1634. public:
  1635. // Methods:
  1636. void ApplyAttributes();
  1637. void DrawDebugGeometry(DebugRenderer, bool);
  1638. Variant GetAttribute(const String&) const;
  1639. ValueAnimation GetAttributeAnimation(const String&) const;
  1640. float GetAttributeAnimationSpeed(const String&) const;
  1641. float GetAttributeAnimationTime(const String&) const;
  1642. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1643. Variant GetAttributeDefault(const String&) const;
  1644. bool GetInterceptNetworkUpdate(const String&) const;
  1645. bool HasSubscribedToEvent(Object, const String&);
  1646. bool HasSubscribedToEvent(const String&);
  1647. bool Load(File);
  1648. bool Load(VectorBuffer&);
  1649. bool LoadJSON(const JSONValue&);
  1650. bool LoadXML(const XMLElement&);
  1651. void MarkNetworkUpdate() const;
  1652. void Remove();
  1653. void RemoveAttributeAnimation(const String&);
  1654. void RemoveInstanceDefault();
  1655. void RemoveObjectAnimation();
  1656. void ResetToDefault();
  1657. bool Save(File) const;
  1658. bool Save(VectorBuffer&) const;
  1659. bool SaveJSON(JSONValue&) const;
  1660. bool SaveXML(XMLElement&) const;
  1661. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1662. void SetAnimationTime(float);
  1663. bool SetAttribute(const String&, const Variant&);
  1664. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1665. void SetAttributeAnimationSpeed(const String&, float);
  1666. void SetAttributeAnimationTime(const String&, float);
  1667. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1668. void SetCenter(float, float);
  1669. void SetInterceptNetworkUpdate(const String&, bool);
  1670. void SetSize(float, float);
  1671. // Properties:
  1672. float angle;
  1673. bool animationEnabled;
  1674. /* readonly */
  1675. Array<Variant> attributeDefaults;
  1676. /* readonly */
  1677. Array<AttributeInfo> attributeInfos;
  1678. Array<Variant> attributes;
  1679. /* readonly */
  1680. String category;
  1681. int categoryBits;
  1682. Vector2 center;
  1683. float density;
  1684. bool enabled;
  1685. /* readonly */
  1686. bool enabledEffective;
  1687. float friction;
  1688. int groupIndex;
  1689. /* readonly */
  1690. uint id;
  1691. /* readonly */
  1692. float inertia;
  1693. int maskBits;
  1694. /* readonly */
  1695. float mass;
  1696. /* readonly */
  1697. Vector2 massCenter;
  1698. /* readonly */
  1699. Node node;
  1700. /* readonly */
  1701. uint numAttributes;
  1702. ObjectAnimation objectAnimation;
  1703. /* readonly */
  1704. int refs;
  1705. /* readonly */
  1706. bool replicated;
  1707. float restitution;
  1708. Vector2 size;
  1709. bool temporary;
  1710. bool trigger;
  1711. /* readonly */
  1712. StringHash type;
  1713. /* readonly */
  1714. String typeName;
  1715. /* readonly */
  1716. int weakRefs;
  1717. };
  1718. class CollisionChain2D
  1719. {
  1720. public:
  1721. // Methods:
  1722. void ApplyAttributes();
  1723. void DrawDebugGeometry(DebugRenderer, bool);
  1724. Variant GetAttribute(const String&) const;
  1725. ValueAnimation GetAttributeAnimation(const String&) const;
  1726. float GetAttributeAnimationSpeed(const String&) const;
  1727. float GetAttributeAnimationTime(const String&) const;
  1728. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1729. Variant GetAttributeDefault(const String&) const;
  1730. bool GetInterceptNetworkUpdate(const String&) const;
  1731. Array<Vector2> GetVertices() const;
  1732. bool HasSubscribedToEvent(Object, const String&);
  1733. bool HasSubscribedToEvent(const String&);
  1734. bool Load(File);
  1735. bool Load(VectorBuffer&);
  1736. bool LoadJSON(const JSONValue&);
  1737. bool LoadXML(const XMLElement&);
  1738. void MarkNetworkUpdate() const;
  1739. void Remove();
  1740. void RemoveAttributeAnimation(const String&);
  1741. void RemoveInstanceDefault();
  1742. void RemoveObjectAnimation();
  1743. void ResetToDefault();
  1744. bool Save(File) const;
  1745. bool Save(VectorBuffer&) const;
  1746. bool SaveJSON(JSONValue&) const;
  1747. bool SaveXML(XMLElement&) const;
  1748. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1749. void SetAnimationTime(float);
  1750. bool SetAttribute(const String&, const Variant&);
  1751. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1752. void SetAttributeAnimationSpeed(const String&, float);
  1753. void SetAttributeAnimationTime(const String&, float);
  1754. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1755. void SetInterceptNetworkUpdate(const String&, bool);
  1756. void SetVertex(uint, const Vector2&);
  1757. void SetVertices(Array<Vector2>);
  1758. const Vector2& GetVertex(uint) const;
  1759. // Properties:
  1760. bool animationEnabled;
  1761. /* readonly */
  1762. Array<Variant> attributeDefaults;
  1763. /* readonly */
  1764. Array<AttributeInfo> attributeInfos;
  1765. Array<Variant> attributes;
  1766. /* readonly */
  1767. String category;
  1768. int categoryBits;
  1769. float density;
  1770. bool enabled;
  1771. /* readonly */
  1772. bool enabledEffective;
  1773. float friction;
  1774. int groupIndex;
  1775. /* readonly */
  1776. uint id;
  1777. /* readonly */
  1778. float inertia;
  1779. bool loop;
  1780. int maskBits;
  1781. /* readonly */
  1782. float mass;
  1783. /* readonly */
  1784. Vector2 massCenter;
  1785. /* readonly */
  1786. Node node;
  1787. /* readonly */
  1788. uint numAttributes;
  1789. ObjectAnimation objectAnimation;
  1790. /* readonly */
  1791. int refs;
  1792. /* readonly */
  1793. bool replicated;
  1794. float restitution;
  1795. bool temporary;
  1796. bool trigger;
  1797. /* readonly */
  1798. StringHash type;
  1799. /* readonly */
  1800. String typeName;
  1801. uint vertexCount;
  1802. /* readonly */
  1803. int weakRefs;
  1804. };
  1805. class CollisionCircle2D
  1806. {
  1807. public:
  1808. // Methods:
  1809. void ApplyAttributes();
  1810. void DrawDebugGeometry(DebugRenderer, bool);
  1811. Variant GetAttribute(const String&) const;
  1812. ValueAnimation GetAttributeAnimation(const String&) const;
  1813. float GetAttributeAnimationSpeed(const String&) const;
  1814. float GetAttributeAnimationTime(const String&) const;
  1815. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1816. Variant GetAttributeDefault(const String&) const;
  1817. bool GetInterceptNetworkUpdate(const String&) const;
  1818. bool HasSubscribedToEvent(Object, const String&);
  1819. bool HasSubscribedToEvent(const String&);
  1820. bool Load(File);
  1821. bool Load(VectorBuffer&);
  1822. bool LoadJSON(const JSONValue&);
  1823. bool LoadXML(const XMLElement&);
  1824. void MarkNetworkUpdate() const;
  1825. void Remove();
  1826. void RemoveAttributeAnimation(const String&);
  1827. void RemoveInstanceDefault();
  1828. void RemoveObjectAnimation();
  1829. void ResetToDefault();
  1830. bool Save(File) const;
  1831. bool Save(VectorBuffer&) const;
  1832. bool SaveJSON(JSONValue&) const;
  1833. bool SaveXML(XMLElement&) const;
  1834. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1835. void SetAnimationTime(float);
  1836. bool SetAttribute(const String&, const Variant&);
  1837. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1838. void SetAttributeAnimationSpeed(const String&, float);
  1839. void SetAttributeAnimationTime(const String&, float);
  1840. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1841. void SetCenter(float, float);
  1842. void SetInterceptNetworkUpdate(const String&, bool);
  1843. // Properties:
  1844. bool animationEnabled;
  1845. /* readonly */
  1846. Array<Variant> attributeDefaults;
  1847. /* readonly */
  1848. Array<AttributeInfo> attributeInfos;
  1849. Array<Variant> attributes;
  1850. /* readonly */
  1851. String category;
  1852. int categoryBits;
  1853. Vector2 center;
  1854. float density;
  1855. bool enabled;
  1856. /* readonly */
  1857. bool enabledEffective;
  1858. float friction;
  1859. int groupIndex;
  1860. /* readonly */
  1861. uint id;
  1862. /* readonly */
  1863. float inertia;
  1864. int maskBits;
  1865. /* readonly */
  1866. float mass;
  1867. /* readonly */
  1868. Vector2 massCenter;
  1869. /* readonly */
  1870. Node node;
  1871. /* readonly */
  1872. uint numAttributes;
  1873. ObjectAnimation objectAnimation;
  1874. float radius;
  1875. /* readonly */
  1876. int refs;
  1877. /* readonly */
  1878. bool replicated;
  1879. float restitution;
  1880. bool temporary;
  1881. bool trigger;
  1882. /* readonly */
  1883. StringHash type;
  1884. /* readonly */
  1885. String typeName;
  1886. /* readonly */
  1887. int weakRefs;
  1888. };
  1889. class CollisionEdge2D
  1890. {
  1891. public:
  1892. // Methods:
  1893. void ApplyAttributes();
  1894. void DrawDebugGeometry(DebugRenderer, bool);
  1895. Variant GetAttribute(const String&) const;
  1896. ValueAnimation GetAttributeAnimation(const String&) const;
  1897. float GetAttributeAnimationSpeed(const String&) const;
  1898. float GetAttributeAnimationTime(const String&) const;
  1899. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1900. Variant GetAttributeDefault(const String&) const;
  1901. bool GetInterceptNetworkUpdate(const String&) const;
  1902. bool HasSubscribedToEvent(Object, const String&);
  1903. bool HasSubscribedToEvent(const String&);
  1904. bool Load(File);
  1905. bool Load(VectorBuffer&);
  1906. bool LoadJSON(const JSONValue&);
  1907. bool LoadXML(const XMLElement&);
  1908. void MarkNetworkUpdate() const;
  1909. void Remove();
  1910. void RemoveAttributeAnimation(const String&);
  1911. void RemoveInstanceDefault();
  1912. void RemoveObjectAnimation();
  1913. void ResetToDefault();
  1914. bool Save(File) const;
  1915. bool Save(VectorBuffer&) const;
  1916. bool SaveJSON(JSONValue&) const;
  1917. bool SaveXML(XMLElement&) const;
  1918. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1919. void SetAnimationTime(float);
  1920. bool SetAttribute(const String&, const Variant&);
  1921. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1922. void SetAttributeAnimationSpeed(const String&, float);
  1923. void SetAttributeAnimationTime(const String&, float);
  1924. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1925. void SetInterceptNetworkUpdate(const String&, bool);
  1926. void SetVertices(const Vector2&, const Vector2&);
  1927. // Properties:
  1928. bool animationEnabled;
  1929. /* readonly */
  1930. Array<Variant> attributeDefaults;
  1931. /* readonly */
  1932. Array<AttributeInfo> attributeInfos;
  1933. Array<Variant> attributes;
  1934. /* readonly */
  1935. String category;
  1936. int categoryBits;
  1937. float density;
  1938. bool enabled;
  1939. /* readonly */
  1940. bool enabledEffective;
  1941. float friction;
  1942. int groupIndex;
  1943. /* readonly */
  1944. uint id;
  1945. /* readonly */
  1946. float inertia;
  1947. int maskBits;
  1948. /* readonly */
  1949. float mass;
  1950. /* readonly */
  1951. Vector2 massCenter;
  1952. /* readonly */
  1953. Node node;
  1954. /* readonly */
  1955. uint numAttributes;
  1956. ObjectAnimation objectAnimation;
  1957. /* readonly */
  1958. int refs;
  1959. /* readonly */
  1960. bool replicated;
  1961. float restitution;
  1962. bool temporary;
  1963. bool trigger;
  1964. /* readonly */
  1965. StringHash type;
  1966. /* readonly */
  1967. String typeName;
  1968. Vector2 vertex1;
  1969. Vector2 vertex2;
  1970. /* readonly */
  1971. int weakRefs;
  1972. };
  1973. class CollisionPolygon2D
  1974. {
  1975. public:
  1976. // Methods:
  1977. void ApplyAttributes();
  1978. void DrawDebugGeometry(DebugRenderer, bool);
  1979. Variant GetAttribute(const String&) const;
  1980. ValueAnimation GetAttributeAnimation(const String&) const;
  1981. float GetAttributeAnimationSpeed(const String&) const;
  1982. float GetAttributeAnimationTime(const String&) const;
  1983. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1984. Variant GetAttributeDefault(const String&) const;
  1985. bool GetInterceptNetworkUpdate(const String&) const;
  1986. Array<Vector2> GetVertices() const;
  1987. bool HasSubscribedToEvent(Object, const String&);
  1988. bool HasSubscribedToEvent(const String&);
  1989. bool Load(File);
  1990. bool Load(VectorBuffer&);
  1991. bool LoadJSON(const JSONValue&);
  1992. bool LoadXML(const XMLElement&);
  1993. void MarkNetworkUpdate() const;
  1994. void Remove();
  1995. void RemoveAttributeAnimation(const String&);
  1996. void RemoveInstanceDefault();
  1997. void RemoveObjectAnimation();
  1998. void ResetToDefault();
  1999. bool Save(File) const;
  2000. bool Save(VectorBuffer&) const;
  2001. bool SaveJSON(JSONValue&) const;
  2002. bool SaveXML(XMLElement&) const;
  2003. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2004. void SetAnimationTime(float);
  2005. bool SetAttribute(const String&, const Variant&);
  2006. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2007. void SetAttributeAnimationSpeed(const String&, float);
  2008. void SetAttributeAnimationTime(const String&, float);
  2009. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2010. void SetInterceptNetworkUpdate(const String&, bool);
  2011. void SetVertex(uint, const Vector2&);
  2012. void SetVertices(Array<Vector2>);
  2013. const Vector2& GetVertex(uint) const;
  2014. // Properties:
  2015. bool animationEnabled;
  2016. /* readonly */
  2017. Array<Variant> attributeDefaults;
  2018. /* readonly */
  2019. Array<AttributeInfo> attributeInfos;
  2020. Array<Variant> attributes;
  2021. /* readonly */
  2022. String category;
  2023. int categoryBits;
  2024. float density;
  2025. bool enabled;
  2026. /* readonly */
  2027. bool enabledEffective;
  2028. float friction;
  2029. int groupIndex;
  2030. /* readonly */
  2031. uint id;
  2032. /* readonly */
  2033. float inertia;
  2034. int maskBits;
  2035. /* readonly */
  2036. float mass;
  2037. /* readonly */
  2038. Vector2 massCenter;
  2039. /* readonly */
  2040. Node node;
  2041. /* readonly */
  2042. uint numAttributes;
  2043. ObjectAnimation objectAnimation;
  2044. /* readonly */
  2045. int refs;
  2046. /* readonly */
  2047. bool replicated;
  2048. float restitution;
  2049. bool temporary;
  2050. bool trigger;
  2051. /* readonly */
  2052. StringHash type;
  2053. /* readonly */
  2054. String typeName;
  2055. uint vertexCount;
  2056. /* readonly */
  2057. int weakRefs;
  2058. };
  2059. class CollisionShape
  2060. {
  2061. public:
  2062. // Methods:
  2063. void ApplyAttributes();
  2064. void DrawDebugGeometry(DebugRenderer, bool);
  2065. Variant GetAttribute(const String&) const;
  2066. ValueAnimation GetAttributeAnimation(const String&) const;
  2067. float GetAttributeAnimationSpeed(const String&) const;
  2068. float GetAttributeAnimationTime(const String&) const;
  2069. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2070. Variant GetAttributeDefault(const String&) const;
  2071. bool GetInterceptNetworkUpdate(const String&) const;
  2072. bool HasSubscribedToEvent(Object, const String&);
  2073. bool HasSubscribedToEvent(const String&);
  2074. bool Load(File);
  2075. bool Load(VectorBuffer&);
  2076. bool LoadJSON(const JSONValue&);
  2077. bool LoadXML(const XMLElement&);
  2078. void MarkNetworkUpdate() const;
  2079. void Remove();
  2080. void RemoveAttributeAnimation(const String&);
  2081. void RemoveInstanceDefault();
  2082. void RemoveObjectAnimation();
  2083. void ResetToDefault();
  2084. bool Save(File) const;
  2085. bool Save(VectorBuffer&) const;
  2086. bool SaveJSON(JSONValue&) const;
  2087. bool SaveXML(XMLElement&) const;
  2088. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2089. void SetAnimationTime(float);
  2090. bool SetAttribute(const String&, const Variant&);
  2091. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2092. void SetAttributeAnimationSpeed(const String&, float);
  2093. void SetAttributeAnimationTime(const String&, float);
  2094. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2095. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2096. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2097. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2098. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2099. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2100. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2101. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2102. void SetInterceptNetworkUpdate(const String&, bool);
  2103. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2104. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2105. void SetTerrain(uint = 0);
  2106. void SetTransform(const Vector3&, const Quaternion&);
  2107. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2108. // Properties:
  2109. bool animationEnabled;
  2110. /* readonly */
  2111. Array<Variant> attributeDefaults;
  2112. /* readonly */
  2113. Array<AttributeInfo> attributeInfos;
  2114. Array<Variant> attributes;
  2115. /* readonly */
  2116. String category;
  2117. bool enabled;
  2118. /* readonly */
  2119. bool enabledEffective;
  2120. /* readonly */
  2121. uint id;
  2122. uint lodLevel;
  2123. float margin;
  2124. Model model;
  2125. /* readonly */
  2126. Node node;
  2127. /* readonly */
  2128. uint numAttributes;
  2129. ObjectAnimation objectAnimation;
  2130. Vector3 position;
  2131. /* readonly */
  2132. int refs;
  2133. /* readonly */
  2134. bool replicated;
  2135. Quaternion rotation;
  2136. ShapeType shapeType;
  2137. Vector3 size;
  2138. bool temporary;
  2139. /* readonly */
  2140. StringHash type;
  2141. /* readonly */
  2142. String typeName;
  2143. /* readonly */
  2144. int weakRefs;
  2145. /* readonly */
  2146. BoundingBox worldBoundingBox;
  2147. };
  2148. class CollisionShape2D
  2149. {
  2150. public:
  2151. // Methods:
  2152. void ApplyAttributes();
  2153. void DrawDebugGeometry(DebugRenderer, bool);
  2154. Variant GetAttribute(const String&) const;
  2155. ValueAnimation GetAttributeAnimation(const String&) const;
  2156. float GetAttributeAnimationSpeed(const String&) const;
  2157. float GetAttributeAnimationTime(const String&) const;
  2158. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2159. Variant GetAttributeDefault(const String&) const;
  2160. bool GetInterceptNetworkUpdate(const String&) const;
  2161. bool HasSubscribedToEvent(Object, const String&);
  2162. bool HasSubscribedToEvent(const String&);
  2163. bool Load(File);
  2164. bool Load(VectorBuffer&);
  2165. bool LoadJSON(const JSONValue&);
  2166. bool LoadXML(const XMLElement&);
  2167. void MarkNetworkUpdate() const;
  2168. void Remove();
  2169. void RemoveAttributeAnimation(const String&);
  2170. void RemoveInstanceDefault();
  2171. void RemoveObjectAnimation();
  2172. void ResetToDefault();
  2173. bool Save(File) const;
  2174. bool Save(VectorBuffer&) const;
  2175. bool SaveJSON(JSONValue&) const;
  2176. bool SaveXML(XMLElement&) const;
  2177. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2178. void SetAnimationTime(float);
  2179. bool SetAttribute(const String&, const Variant&);
  2180. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2181. void SetAttributeAnimationSpeed(const String&, float);
  2182. void SetAttributeAnimationTime(const String&, float);
  2183. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2184. void SetInterceptNetworkUpdate(const String&, bool);
  2185. // Properties:
  2186. bool animationEnabled;
  2187. /* readonly */
  2188. Array<Variant> attributeDefaults;
  2189. /* readonly */
  2190. Array<AttributeInfo> attributeInfos;
  2191. Array<Variant> attributes;
  2192. /* readonly */
  2193. String category;
  2194. int categoryBits;
  2195. float density;
  2196. bool enabled;
  2197. /* readonly */
  2198. bool enabledEffective;
  2199. float friction;
  2200. int groupIndex;
  2201. /* readonly */
  2202. uint id;
  2203. /* readonly */
  2204. float inertia;
  2205. int maskBits;
  2206. /* readonly */
  2207. float mass;
  2208. /* readonly */
  2209. Vector2 massCenter;
  2210. /* readonly */
  2211. Node node;
  2212. /* readonly */
  2213. uint numAttributes;
  2214. ObjectAnimation objectAnimation;
  2215. /* readonly */
  2216. int refs;
  2217. /* readonly */
  2218. bool replicated;
  2219. float restitution;
  2220. bool temporary;
  2221. bool trigger;
  2222. /* readonly */
  2223. StringHash type;
  2224. /* readonly */
  2225. String typeName;
  2226. /* readonly */
  2227. int weakRefs;
  2228. };
  2229. class Color
  2230. {
  2231. public:
  2232. Color();
  2233. Color(const Color&in);
  2234. Color(float, float, float, float);
  2235. Color(float, float, float);
  2236. Color(float[]&inout);
  2237. // Methods:
  2238. Color Abs() const;
  2239. float Average() const;
  2240. float Chroma() const;
  2241. void Clip(bool);
  2242. bool Equals() const;
  2243. void FromHSL(float, float, float, float);
  2244. void FromHSV(float, float, float, float);
  2245. void FromUInt(uint);
  2246. float Hue() const;
  2247. void Invert(bool);
  2248. Color Lerp(const Color&, float) const;
  2249. float Lightness() const;
  2250. float Luma() const;
  2251. float MaxRGB() const;
  2252. float MinRGB() const;
  2253. float Range() const;
  2254. float SaturationHSL() const;
  2255. float SaturationHSV() const;
  2256. float SumRGB() const;
  2257. Vector3 ToHSL() const;
  2258. Vector3 ToHSV() const;
  2259. String ToString() const;
  2260. uint ToUInt() const;
  2261. float Value() const;
  2262. // Properties:
  2263. float a;
  2264. float b;
  2265. /* readonly */
  2266. Array<float> data;
  2267. float g;
  2268. float r;
  2269. /* readonly */
  2270. Vector3 rgb;
  2271. /* readonly */
  2272. Vector4 rgba;
  2273. };
  2274. class ColorFrame
  2275. {
  2276. public:
  2277. // Properties:
  2278. Color color;
  2279. float time;
  2280. };
  2281. class Component
  2282. {
  2283. public:
  2284. // Methods:
  2285. void ApplyAttributes();
  2286. void DrawDebugGeometry(DebugRenderer, bool);
  2287. Variant GetAttribute(const String&) const;
  2288. ValueAnimation GetAttributeAnimation(const String&) const;
  2289. float GetAttributeAnimationSpeed(const String&) const;
  2290. float GetAttributeAnimationTime(const String&) const;
  2291. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2292. Variant GetAttributeDefault(const String&) const;
  2293. bool GetInterceptNetworkUpdate(const String&) const;
  2294. bool HasSubscribedToEvent(Object, const String&);
  2295. bool HasSubscribedToEvent(const String&);
  2296. bool Load(File);
  2297. bool Load(VectorBuffer&);
  2298. bool LoadJSON(const JSONValue&);
  2299. bool LoadXML(const XMLElement&);
  2300. void MarkNetworkUpdate() const;
  2301. void Remove();
  2302. void RemoveAttributeAnimation(const String&);
  2303. void RemoveInstanceDefault();
  2304. void RemoveObjectAnimation();
  2305. void ResetToDefault();
  2306. bool Save(File) const;
  2307. bool Save(VectorBuffer&) const;
  2308. bool SaveJSON(JSONValue&) const;
  2309. bool SaveXML(XMLElement&) const;
  2310. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2311. void SetAnimationTime(float);
  2312. bool SetAttribute(const String&, const Variant&);
  2313. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2314. void SetAttributeAnimationSpeed(const String&, float);
  2315. void SetAttributeAnimationTime(const String&, float);
  2316. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2317. void SetInterceptNetworkUpdate(const String&, bool);
  2318. // Properties:
  2319. bool animationEnabled;
  2320. /* readonly */
  2321. Array<Variant> attributeDefaults;
  2322. /* readonly */
  2323. Array<AttributeInfo> attributeInfos;
  2324. Array<Variant> attributes;
  2325. /* readonly */
  2326. String category;
  2327. bool enabled;
  2328. /* readonly */
  2329. bool enabledEffective;
  2330. /* readonly */
  2331. uint id;
  2332. /* readonly */
  2333. Node node;
  2334. /* readonly */
  2335. uint numAttributes;
  2336. ObjectAnimation objectAnimation;
  2337. /* readonly */
  2338. int refs;
  2339. /* readonly */
  2340. bool replicated;
  2341. bool temporary;
  2342. /* readonly */
  2343. StringHash type;
  2344. /* readonly */
  2345. String typeName;
  2346. /* readonly */
  2347. int weakRefs;
  2348. };
  2349. class Connection
  2350. {
  2351. public:
  2352. // Methods:
  2353. void Disconnect(int = 0);
  2354. bool HasSubscribedToEvent(Object, const String&);
  2355. bool HasSubscribedToEvent(const String&);
  2356. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2357. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2358. void SendPackageToClient(PackageFile);
  2359. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2360. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2361. String ToString() const;
  2362. // Properties:
  2363. /* readonly */
  2364. String address;
  2365. /* readonly */
  2366. float bytesInPerSec;
  2367. /* readonly */
  2368. float bytesOutPerSec;
  2369. /* readonly */
  2370. String category;
  2371. /* readonly */
  2372. bool client;
  2373. /* readonly */
  2374. bool connectPending;
  2375. /* readonly */
  2376. bool connected;
  2377. Controls controls;
  2378. /* readonly */
  2379. String downloadName;
  2380. /* readonly */
  2381. float downloadProgress;
  2382. VariantMap identity;
  2383. /* readonly */
  2384. float lastHeardTime;
  2385. bool logStatistics;
  2386. /* readonly */
  2387. uint numDownloads;
  2388. /* readonly */
  2389. float packetsInPerSec;
  2390. /* readonly */
  2391. float packetsOutPerSec;
  2392. /* readonly */
  2393. uint16 port;
  2394. Vector3 position;
  2395. /* readonly */
  2396. int refs;
  2397. Quaternion rotation;
  2398. /* readonly */
  2399. float roundTripTime;
  2400. Scene scene;
  2401. /* readonly */
  2402. bool sceneLoaded;
  2403. uint8 timeStamp;
  2404. /* readonly */
  2405. StringHash type;
  2406. /* readonly */
  2407. String typeName;
  2408. /* readonly */
  2409. int weakRefs;
  2410. };
  2411. class Console
  2412. {
  2413. public:
  2414. // Methods:
  2415. void AddAutoComplete(const String&);
  2416. void CopySelectedRows() const;
  2417. bool HasSubscribedToEvent(Object, const String&);
  2418. bool HasSubscribedToEvent(const String&);
  2419. void RemoveAutoComplete(const String&);
  2420. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2421. void Toggle();
  2422. void UpdateElements();
  2423. // Properties:
  2424. bool autoVisibleOnError;
  2425. /* readonly */
  2426. BorderImage background;
  2427. /* readonly */
  2428. String category;
  2429. /* readonly */
  2430. Button closeButton;
  2431. String commandInterpreter;
  2432. XMLFile defaultStyle;
  2433. bool focusOnShow;
  2434. /* readonly */
  2435. uint historyPosition;
  2436. /* readonly */
  2437. Array<String> historyRow;
  2438. /* readonly */
  2439. LineEdit lineEdit;
  2440. uint numBufferedRows;
  2441. uint numHistoryRows;
  2442. uint numRows;
  2443. /* readonly */
  2444. int refs;
  2445. /* readonly */
  2446. StringHash type;
  2447. /* readonly */
  2448. String typeName;
  2449. bool visible;
  2450. /* readonly */
  2451. int weakRefs;
  2452. };
  2453. class Constraint
  2454. {
  2455. public:
  2456. // Methods:
  2457. void ApplyAttributes();
  2458. void DrawDebugGeometry(DebugRenderer, bool);
  2459. Variant GetAttribute(const String&) const;
  2460. ValueAnimation GetAttributeAnimation(const String&) const;
  2461. float GetAttributeAnimationSpeed(const String&) const;
  2462. float GetAttributeAnimationTime(const String&) const;
  2463. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2464. Variant GetAttributeDefault(const String&) const;
  2465. bool GetInterceptNetworkUpdate(const String&) const;
  2466. bool HasSubscribedToEvent(Object, const String&);
  2467. bool HasSubscribedToEvent(const String&);
  2468. bool Load(File);
  2469. bool Load(VectorBuffer&);
  2470. bool LoadJSON(const JSONValue&);
  2471. bool LoadXML(const XMLElement&);
  2472. void MarkNetworkUpdate() const;
  2473. void Remove();
  2474. void RemoveAttributeAnimation(const String&);
  2475. void RemoveInstanceDefault();
  2476. void RemoveObjectAnimation();
  2477. void ResetToDefault();
  2478. bool Save(File) const;
  2479. bool Save(VectorBuffer&) const;
  2480. bool SaveJSON(JSONValue&) const;
  2481. bool SaveXML(XMLElement&) const;
  2482. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2483. void SetAnimationTime(float);
  2484. bool SetAttribute(const String&, const Variant&);
  2485. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2486. void SetAttributeAnimationSpeed(const String&, float);
  2487. void SetAttributeAnimationTime(const String&, float);
  2488. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2489. void SetInterceptNetworkUpdate(const String&, bool);
  2490. // Properties:
  2491. bool animationEnabled;
  2492. /* readonly */
  2493. Array<Variant> attributeDefaults;
  2494. /* readonly */
  2495. Array<AttributeInfo> attributeInfos;
  2496. Array<Variant> attributes;
  2497. /* writeonly */
  2498. Vector3 axis;
  2499. /* readonly */
  2500. String category;
  2501. float cfm;
  2502. ConstraintType constraintType;
  2503. bool disableCollision;
  2504. bool enabled;
  2505. /* readonly */
  2506. bool enabledEffective;
  2507. float erp;
  2508. Vector2 highLimit;
  2509. /* readonly */
  2510. uint id;
  2511. Vector2 lowLimit;
  2512. /* readonly */
  2513. Node node;
  2514. /* readonly */
  2515. uint numAttributes;
  2516. ObjectAnimation objectAnimation;
  2517. /* writeonly */
  2518. Vector3 otherAxis;
  2519. RigidBody otherBody;
  2520. Vector3 otherPosition;
  2521. Quaternion otherRotation;
  2522. /* readonly */
  2523. RigidBody ownBody;
  2524. Vector3 position;
  2525. /* readonly */
  2526. int refs;
  2527. /* readonly */
  2528. bool replicated;
  2529. Quaternion rotation;
  2530. bool temporary;
  2531. /* readonly */
  2532. StringHash type;
  2533. /* readonly */
  2534. String typeName;
  2535. /* readonly */
  2536. int weakRefs;
  2537. Vector3 worldPosition;
  2538. };
  2539. class Constraint2D
  2540. {
  2541. public:
  2542. // Methods:
  2543. void ApplyAttributes();
  2544. void DrawDebugGeometry(DebugRenderer, bool);
  2545. Variant GetAttribute(const String&) const;
  2546. ValueAnimation GetAttributeAnimation(const String&) const;
  2547. float GetAttributeAnimationSpeed(const String&) const;
  2548. float GetAttributeAnimationTime(const String&) const;
  2549. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2550. Variant GetAttributeDefault(const String&) const;
  2551. bool GetInterceptNetworkUpdate(const String&) const;
  2552. bool HasSubscribedToEvent(Object, const String&);
  2553. bool HasSubscribedToEvent(const String&);
  2554. bool Load(File);
  2555. bool Load(VectorBuffer&);
  2556. bool LoadJSON(const JSONValue&);
  2557. bool LoadXML(const XMLElement&);
  2558. void MarkNetworkUpdate() const;
  2559. void Remove();
  2560. void RemoveAttributeAnimation(const String&);
  2561. void RemoveInstanceDefault();
  2562. void RemoveObjectAnimation();
  2563. void ResetToDefault();
  2564. bool Save(File) const;
  2565. bool Save(VectorBuffer&) const;
  2566. bool SaveJSON(JSONValue&) const;
  2567. bool SaveXML(XMLElement&) const;
  2568. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2569. void SetAnimationTime(float);
  2570. bool SetAttribute(const String&, const Variant&);
  2571. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2572. void SetAttributeAnimationSpeed(const String&, float);
  2573. void SetAttributeAnimationTime(const String&, float);
  2574. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2575. void SetInterceptNetworkUpdate(const String&, bool);
  2576. // Properties:
  2577. bool animationEnabled;
  2578. /* readonly */
  2579. Array<Variant> attributeDefaults;
  2580. /* readonly */
  2581. Array<AttributeInfo> attributeInfos;
  2582. Array<Variant> attributes;
  2583. /* readonly */
  2584. String category;
  2585. bool collideConnected;
  2586. bool enabled;
  2587. /* readonly */
  2588. bool enabledEffective;
  2589. /* readonly */
  2590. uint id;
  2591. /* readonly */
  2592. Node node;
  2593. /* readonly */
  2594. uint numAttributes;
  2595. ObjectAnimation objectAnimation;
  2596. RigidBody2D otherBody;
  2597. /* readonly */
  2598. RigidBody2D ownerBody;
  2599. /* readonly */
  2600. int refs;
  2601. /* readonly */
  2602. bool replicated;
  2603. bool temporary;
  2604. /* readonly */
  2605. StringHash type;
  2606. /* readonly */
  2607. String typeName;
  2608. /* readonly */
  2609. int weakRefs;
  2610. };
  2611. class ConstraintDistance2D
  2612. {
  2613. public:
  2614. // Methods:
  2615. void ApplyAttributes();
  2616. void DrawDebugGeometry(DebugRenderer, bool);
  2617. Variant GetAttribute(const String&) const;
  2618. ValueAnimation GetAttributeAnimation(const String&) const;
  2619. float GetAttributeAnimationSpeed(const String&) const;
  2620. float GetAttributeAnimationTime(const String&) const;
  2621. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2622. Variant GetAttributeDefault(const String&) const;
  2623. bool GetInterceptNetworkUpdate(const String&) const;
  2624. bool HasSubscribedToEvent(Object, const String&);
  2625. bool HasSubscribedToEvent(const String&);
  2626. bool Load(File);
  2627. bool Load(VectorBuffer&);
  2628. bool LoadJSON(const JSONValue&);
  2629. bool LoadXML(const XMLElement&);
  2630. void MarkNetworkUpdate() const;
  2631. void Remove();
  2632. void RemoveAttributeAnimation(const String&);
  2633. void RemoveInstanceDefault();
  2634. void RemoveObjectAnimation();
  2635. void ResetToDefault();
  2636. bool Save(File) const;
  2637. bool Save(VectorBuffer&) const;
  2638. bool SaveJSON(JSONValue&) const;
  2639. bool SaveXML(XMLElement&) const;
  2640. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2641. void SetAnimationTime(float);
  2642. bool SetAttribute(const String&, const Variant&);
  2643. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2644. void SetAttributeAnimationSpeed(const String&, float);
  2645. void SetAttributeAnimationTime(const String&, float);
  2646. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2647. void SetInterceptNetworkUpdate(const String&, bool);
  2648. // Properties:
  2649. bool animationEnabled;
  2650. /* readonly */
  2651. Array<Variant> attributeDefaults;
  2652. /* readonly */
  2653. Array<AttributeInfo> attributeInfos;
  2654. Array<Variant> attributes;
  2655. /* readonly */
  2656. String category;
  2657. bool collideConnected;
  2658. float dampingRatio;
  2659. bool enabled;
  2660. /* readonly */
  2661. bool enabledEffective;
  2662. float frequencyHz;
  2663. /* readonly */
  2664. uint id;
  2665. float length;
  2666. /* readonly */
  2667. Node node;
  2668. /* readonly */
  2669. uint numAttributes;
  2670. ObjectAnimation objectAnimation;
  2671. RigidBody2D otherBody;
  2672. Vector2 otherBodyAnchor;
  2673. /* readonly */
  2674. RigidBody2D ownerBody;
  2675. Vector2 ownerBodyAnchor;
  2676. /* readonly */
  2677. int refs;
  2678. /* readonly */
  2679. bool replicated;
  2680. bool temporary;
  2681. /* readonly */
  2682. StringHash type;
  2683. /* readonly */
  2684. String typeName;
  2685. /* readonly */
  2686. int weakRefs;
  2687. };
  2688. class ConstraintFriction2D
  2689. {
  2690. public:
  2691. // Methods:
  2692. void ApplyAttributes();
  2693. void DrawDebugGeometry(DebugRenderer, bool);
  2694. Variant GetAttribute(const String&) const;
  2695. ValueAnimation GetAttributeAnimation(const String&) const;
  2696. float GetAttributeAnimationSpeed(const String&) const;
  2697. float GetAttributeAnimationTime(const String&) const;
  2698. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2699. Variant GetAttributeDefault(const String&) const;
  2700. bool GetInterceptNetworkUpdate(const String&) const;
  2701. bool HasSubscribedToEvent(Object, const String&);
  2702. bool HasSubscribedToEvent(const String&);
  2703. bool Load(File);
  2704. bool Load(VectorBuffer&);
  2705. bool LoadJSON(const JSONValue&);
  2706. bool LoadXML(const XMLElement&);
  2707. void MarkNetworkUpdate() const;
  2708. void Remove();
  2709. void RemoveAttributeAnimation(const String&);
  2710. void RemoveInstanceDefault();
  2711. void RemoveObjectAnimation();
  2712. void ResetToDefault();
  2713. bool Save(File) const;
  2714. bool Save(VectorBuffer&) const;
  2715. bool SaveJSON(JSONValue&) const;
  2716. bool SaveXML(XMLElement&) const;
  2717. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2718. void SetAnimationTime(float);
  2719. bool SetAttribute(const String&, const Variant&);
  2720. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2721. void SetAttributeAnimationSpeed(const String&, float);
  2722. void SetAttributeAnimationTime(const String&, float);
  2723. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2724. void SetInterceptNetworkUpdate(const String&, bool);
  2725. // Properties:
  2726. Vector2 anchor;
  2727. bool animationEnabled;
  2728. /* readonly */
  2729. Array<Variant> attributeDefaults;
  2730. /* readonly */
  2731. Array<AttributeInfo> attributeInfos;
  2732. Array<Variant> attributes;
  2733. /* readonly */
  2734. String category;
  2735. bool collideConnected;
  2736. bool enabled;
  2737. /* readonly */
  2738. bool enabledEffective;
  2739. /* readonly */
  2740. uint id;
  2741. float maxForce;
  2742. float maxTorque;
  2743. /* readonly */
  2744. Node node;
  2745. /* readonly */
  2746. uint numAttributes;
  2747. ObjectAnimation objectAnimation;
  2748. RigidBody2D otherBody;
  2749. /* readonly */
  2750. RigidBody2D ownerBody;
  2751. /* readonly */
  2752. int refs;
  2753. /* readonly */
  2754. bool replicated;
  2755. bool temporary;
  2756. /* readonly */
  2757. StringHash type;
  2758. /* readonly */
  2759. String typeName;
  2760. /* readonly */
  2761. int weakRefs;
  2762. };
  2763. class ConstraintGear2D
  2764. {
  2765. public:
  2766. // Methods:
  2767. void ApplyAttributes();
  2768. void DrawDebugGeometry(DebugRenderer, bool);
  2769. Variant GetAttribute(const String&) const;
  2770. ValueAnimation GetAttributeAnimation(const String&) const;
  2771. float GetAttributeAnimationSpeed(const String&) const;
  2772. float GetAttributeAnimationTime(const String&) const;
  2773. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2774. Variant GetAttributeDefault(const String&) const;
  2775. bool GetInterceptNetworkUpdate(const String&) const;
  2776. bool HasSubscribedToEvent(Object, const String&);
  2777. bool HasSubscribedToEvent(const String&);
  2778. bool Load(File);
  2779. bool Load(VectorBuffer&);
  2780. bool LoadJSON(const JSONValue&);
  2781. bool LoadXML(const XMLElement&);
  2782. void MarkNetworkUpdate() const;
  2783. void Remove();
  2784. void RemoveAttributeAnimation(const String&);
  2785. void RemoveInstanceDefault();
  2786. void RemoveObjectAnimation();
  2787. void ResetToDefault();
  2788. bool Save(File) const;
  2789. bool Save(VectorBuffer&) const;
  2790. bool SaveJSON(JSONValue&) const;
  2791. bool SaveXML(XMLElement&) const;
  2792. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2793. void SetAnimationTime(float);
  2794. bool SetAttribute(const String&, const Variant&);
  2795. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2796. void SetAttributeAnimationSpeed(const String&, float);
  2797. void SetAttributeAnimationTime(const String&, float);
  2798. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2799. void SetInterceptNetworkUpdate(const String&, bool);
  2800. // Properties:
  2801. bool animationEnabled;
  2802. /* readonly */
  2803. Array<Variant> attributeDefaults;
  2804. /* readonly */
  2805. Array<AttributeInfo> attributeInfos;
  2806. Array<Variant> attributes;
  2807. /* readonly */
  2808. String category;
  2809. bool collideConnected;
  2810. bool enabled;
  2811. /* readonly */
  2812. bool enabledEffective;
  2813. /* readonly */
  2814. uint id;
  2815. /* readonly */
  2816. Node node;
  2817. /* readonly */
  2818. uint numAttributes;
  2819. ObjectAnimation objectAnimation;
  2820. RigidBody2D otherBody;
  2821. Constraint2D otherConstraint;
  2822. /* readonly */
  2823. RigidBody2D ownerBody;
  2824. Constraint2D ownerConstraint;
  2825. float ratio;
  2826. /* readonly */
  2827. int refs;
  2828. /* readonly */
  2829. bool replicated;
  2830. bool temporary;
  2831. /* readonly */
  2832. StringHash type;
  2833. /* readonly */
  2834. String typeName;
  2835. /* readonly */
  2836. int weakRefs;
  2837. };
  2838. class ConstraintMotor2D
  2839. {
  2840. public:
  2841. // Methods:
  2842. void ApplyAttributes();
  2843. void DrawDebugGeometry(DebugRenderer, bool);
  2844. Variant GetAttribute(const String&) const;
  2845. ValueAnimation GetAttributeAnimation(const String&) const;
  2846. float GetAttributeAnimationSpeed(const String&) const;
  2847. float GetAttributeAnimationTime(const String&) const;
  2848. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2849. Variant GetAttributeDefault(const String&) const;
  2850. bool GetInterceptNetworkUpdate(const String&) const;
  2851. bool HasSubscribedToEvent(Object, const String&);
  2852. bool HasSubscribedToEvent(const String&);
  2853. bool Load(File);
  2854. bool Load(VectorBuffer&);
  2855. bool LoadJSON(const JSONValue&);
  2856. bool LoadXML(const XMLElement&);
  2857. void MarkNetworkUpdate() const;
  2858. void Remove();
  2859. void RemoveAttributeAnimation(const String&);
  2860. void RemoveInstanceDefault();
  2861. void RemoveObjectAnimation();
  2862. void ResetToDefault();
  2863. bool Save(File) const;
  2864. bool Save(VectorBuffer&) const;
  2865. bool SaveJSON(JSONValue&) const;
  2866. bool SaveXML(XMLElement&) const;
  2867. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2868. void SetAnimationTime(float);
  2869. bool SetAttribute(const String&, const Variant&);
  2870. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2871. void SetAttributeAnimationSpeed(const String&, float);
  2872. void SetAttributeAnimationTime(const String&, float);
  2873. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2874. void SetInterceptNetworkUpdate(const String&, bool);
  2875. // Properties:
  2876. float angularOffset;
  2877. bool animationEnabled;
  2878. /* readonly */
  2879. Array<Variant> attributeDefaults;
  2880. /* readonly */
  2881. Array<AttributeInfo> attributeInfos;
  2882. Array<Variant> attributes;
  2883. /* readonly */
  2884. String category;
  2885. bool collideConnected;
  2886. float correctionFactor;
  2887. bool enabled;
  2888. /* readonly */
  2889. bool enabledEffective;
  2890. /* readonly */
  2891. uint id;
  2892. Vector2 linearOffset;
  2893. float maxForce;
  2894. float maxTorque;
  2895. /* readonly */
  2896. Node node;
  2897. /* readonly */
  2898. uint numAttributes;
  2899. ObjectAnimation objectAnimation;
  2900. RigidBody2D otherBody;
  2901. /* readonly */
  2902. RigidBody2D ownerBody;
  2903. /* readonly */
  2904. int refs;
  2905. /* readonly */
  2906. bool replicated;
  2907. bool temporary;
  2908. /* readonly */
  2909. StringHash type;
  2910. /* readonly */
  2911. String typeName;
  2912. /* readonly */
  2913. int weakRefs;
  2914. };
  2915. class ConstraintMouse2D
  2916. {
  2917. public:
  2918. // Methods:
  2919. void ApplyAttributes();
  2920. void DrawDebugGeometry(DebugRenderer, bool);
  2921. Variant GetAttribute(const String&) const;
  2922. ValueAnimation GetAttributeAnimation(const String&) const;
  2923. float GetAttributeAnimationSpeed(const String&) const;
  2924. float GetAttributeAnimationTime(const String&) const;
  2925. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2926. Variant GetAttributeDefault(const String&) const;
  2927. bool GetInterceptNetworkUpdate(const String&) const;
  2928. bool HasSubscribedToEvent(Object, const String&);
  2929. bool HasSubscribedToEvent(const String&);
  2930. bool Load(File);
  2931. bool Load(VectorBuffer&);
  2932. bool LoadJSON(const JSONValue&);
  2933. bool LoadXML(const XMLElement&);
  2934. void MarkNetworkUpdate() const;
  2935. void Remove();
  2936. void RemoveAttributeAnimation(const String&);
  2937. void RemoveInstanceDefault();
  2938. void RemoveObjectAnimation();
  2939. void ResetToDefault();
  2940. bool Save(File) const;
  2941. bool Save(VectorBuffer&) const;
  2942. bool SaveJSON(JSONValue&) const;
  2943. bool SaveXML(XMLElement&) const;
  2944. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2945. void SetAnimationTime(float);
  2946. bool SetAttribute(const String&, const Variant&);
  2947. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2948. void SetAttributeAnimationSpeed(const String&, float);
  2949. void SetAttributeAnimationTime(const String&, float);
  2950. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2951. void SetInterceptNetworkUpdate(const String&, bool);
  2952. // Properties:
  2953. bool animationEnabled;
  2954. /* readonly */
  2955. Array<Variant> attributeDefaults;
  2956. /* readonly */
  2957. Array<AttributeInfo> attributeInfos;
  2958. Array<Variant> attributes;
  2959. /* readonly */
  2960. String category;
  2961. bool collideConnected;
  2962. float dampingRatio;
  2963. bool enabled;
  2964. /* readonly */
  2965. bool enabledEffective;
  2966. float frequencyHz;
  2967. /* readonly */
  2968. uint id;
  2969. float maxForce;
  2970. /* readonly */
  2971. Node node;
  2972. /* readonly */
  2973. uint numAttributes;
  2974. ObjectAnimation objectAnimation;
  2975. RigidBody2D otherBody;
  2976. /* readonly */
  2977. RigidBody2D ownerBody;
  2978. /* readonly */
  2979. int refs;
  2980. /* readonly */
  2981. bool replicated;
  2982. Vector2 target;
  2983. bool temporary;
  2984. /* readonly */
  2985. StringHash type;
  2986. /* readonly */
  2987. String typeName;
  2988. /* readonly */
  2989. int weakRefs;
  2990. };
  2991. class ConstraintPrismatic2D
  2992. {
  2993. public:
  2994. // Methods:
  2995. void ApplyAttributes();
  2996. void DrawDebugGeometry(DebugRenderer, bool);
  2997. Variant GetAttribute(const String&) const;
  2998. ValueAnimation GetAttributeAnimation(const String&) const;
  2999. float GetAttributeAnimationSpeed(const String&) const;
  3000. float GetAttributeAnimationTime(const String&) const;
  3001. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3002. Variant GetAttributeDefault(const String&) const;
  3003. bool GetInterceptNetworkUpdate(const String&) const;
  3004. bool HasSubscribedToEvent(Object, const String&);
  3005. bool HasSubscribedToEvent(const String&);
  3006. bool Load(File);
  3007. bool Load(VectorBuffer&);
  3008. bool LoadJSON(const JSONValue&);
  3009. bool LoadXML(const XMLElement&);
  3010. void MarkNetworkUpdate() const;
  3011. void Remove();
  3012. void RemoveAttributeAnimation(const String&);
  3013. void RemoveInstanceDefault();
  3014. void RemoveObjectAnimation();
  3015. void ResetToDefault();
  3016. bool Save(File) const;
  3017. bool Save(VectorBuffer&) const;
  3018. bool SaveJSON(JSONValue&) const;
  3019. bool SaveXML(XMLElement&) const;
  3020. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3021. void SetAnimationTime(float);
  3022. bool SetAttribute(const String&, const Variant&);
  3023. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3024. void SetAttributeAnimationSpeed(const String&, float);
  3025. void SetAttributeAnimationTime(const String&, float);
  3026. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3027. void SetInterceptNetworkUpdate(const String&, bool);
  3028. // Properties:
  3029. Vector2 anchor;
  3030. bool animationEnabled;
  3031. /* readonly */
  3032. Array<Variant> attributeDefaults;
  3033. /* readonly */
  3034. Array<AttributeInfo> attributeInfos;
  3035. Array<Variant> attributes;
  3036. Vector2 axis;
  3037. /* readonly */
  3038. String category;
  3039. bool collideConnected;
  3040. bool enableLimit;
  3041. bool enableMotor;
  3042. bool enabled;
  3043. /* readonly */
  3044. bool enabledEffective;
  3045. /* readonly */
  3046. uint id;
  3047. float lowerTranslation;
  3048. float maxMotorForce;
  3049. float motorSpeed;
  3050. /* readonly */
  3051. Node node;
  3052. /* readonly */
  3053. uint numAttributes;
  3054. ObjectAnimation objectAnimation;
  3055. RigidBody2D otherBody;
  3056. /* readonly */
  3057. RigidBody2D ownerBody;
  3058. /* readonly */
  3059. int refs;
  3060. /* readonly */
  3061. bool replicated;
  3062. bool temporary;
  3063. /* readonly */
  3064. StringHash type;
  3065. /* readonly */
  3066. String typeName;
  3067. float upperTranslation;
  3068. /* readonly */
  3069. int weakRefs;
  3070. };
  3071. class ConstraintPulley2D
  3072. {
  3073. public:
  3074. // Methods:
  3075. void ApplyAttributes();
  3076. void DrawDebugGeometry(DebugRenderer, bool);
  3077. Variant GetAttribute(const String&) const;
  3078. ValueAnimation GetAttributeAnimation(const String&) const;
  3079. float GetAttributeAnimationSpeed(const String&) const;
  3080. float GetAttributeAnimationTime(const String&) const;
  3081. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3082. Variant GetAttributeDefault(const String&) const;
  3083. bool GetInterceptNetworkUpdate(const String&) const;
  3084. bool HasSubscribedToEvent(Object, const String&);
  3085. bool HasSubscribedToEvent(const String&);
  3086. bool Load(File);
  3087. bool Load(VectorBuffer&);
  3088. bool LoadJSON(const JSONValue&);
  3089. bool LoadXML(const XMLElement&);
  3090. void MarkNetworkUpdate() const;
  3091. void Remove();
  3092. void RemoveAttributeAnimation(const String&);
  3093. void RemoveInstanceDefault();
  3094. void RemoveObjectAnimation();
  3095. void ResetToDefault();
  3096. bool Save(File) const;
  3097. bool Save(VectorBuffer&) const;
  3098. bool SaveJSON(JSONValue&) const;
  3099. bool SaveXML(XMLElement&) const;
  3100. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3101. void SetAnimationTime(float);
  3102. bool SetAttribute(const String&, const Variant&);
  3103. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3104. void SetAttributeAnimationSpeed(const String&, float);
  3105. void SetAttributeAnimationTime(const String&, float);
  3106. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3107. void SetInterceptNetworkUpdate(const String&, bool);
  3108. // Properties:
  3109. bool animationEnabled;
  3110. /* readonly */
  3111. Array<Variant> attributeDefaults;
  3112. /* readonly */
  3113. Array<AttributeInfo> attributeInfos;
  3114. Array<Variant> attributes;
  3115. /* readonly */
  3116. String category;
  3117. bool collideConnected;
  3118. bool enabled;
  3119. /* readonly */
  3120. bool enabledEffective;
  3121. /* readonly */
  3122. uint id;
  3123. /* readonly */
  3124. Node node;
  3125. /* readonly */
  3126. uint numAttributes;
  3127. ObjectAnimation objectAnimation;
  3128. RigidBody2D otherBody;
  3129. Vector2 otherBodyAnchor;
  3130. Vector2 otherBodyGroundAnchor;
  3131. /* readonly */
  3132. RigidBody2D ownerBody;
  3133. Vector2 ownerBodyAnchor;
  3134. Vector2 ownerBodyGroundAnchor;
  3135. float ratio;
  3136. /* readonly */
  3137. int refs;
  3138. /* readonly */
  3139. bool replicated;
  3140. bool temporary;
  3141. /* readonly */
  3142. StringHash type;
  3143. /* readonly */
  3144. String typeName;
  3145. /* readonly */
  3146. int weakRefs;
  3147. };
  3148. class ConstraintRevolute2D
  3149. {
  3150. public:
  3151. // Methods:
  3152. void ApplyAttributes();
  3153. void DrawDebugGeometry(DebugRenderer, bool);
  3154. Variant GetAttribute(const String&) const;
  3155. ValueAnimation GetAttributeAnimation(const String&) const;
  3156. float GetAttributeAnimationSpeed(const String&) const;
  3157. float GetAttributeAnimationTime(const String&) const;
  3158. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3159. Variant GetAttributeDefault(const String&) const;
  3160. bool GetInterceptNetworkUpdate(const String&) const;
  3161. bool HasSubscribedToEvent(Object, const String&);
  3162. bool HasSubscribedToEvent(const String&);
  3163. bool Load(File);
  3164. bool Load(VectorBuffer&);
  3165. bool LoadJSON(const JSONValue&);
  3166. bool LoadXML(const XMLElement&);
  3167. void MarkNetworkUpdate() const;
  3168. void Remove();
  3169. void RemoveAttributeAnimation(const String&);
  3170. void RemoveInstanceDefault();
  3171. void RemoveObjectAnimation();
  3172. void ResetToDefault();
  3173. bool Save(File) const;
  3174. bool Save(VectorBuffer&) const;
  3175. bool SaveJSON(JSONValue&) const;
  3176. bool SaveXML(XMLElement&) const;
  3177. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3178. void SetAnimationTime(float);
  3179. bool SetAttribute(const String&, const Variant&);
  3180. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3181. void SetAttributeAnimationSpeed(const String&, float);
  3182. void SetAttributeAnimationTime(const String&, float);
  3183. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3184. void SetInterceptNetworkUpdate(const String&, bool);
  3185. // Properties:
  3186. Vector2 anchor;
  3187. bool animationEnabled;
  3188. /* readonly */
  3189. Array<Variant> attributeDefaults;
  3190. /* readonly */
  3191. Array<AttributeInfo> attributeInfos;
  3192. Array<Variant> attributes;
  3193. /* readonly */
  3194. String category;
  3195. bool collideConnected;
  3196. bool enableLimit;
  3197. bool enableMotor;
  3198. bool enabled;
  3199. /* readonly */
  3200. bool enabledEffective;
  3201. /* readonly */
  3202. uint id;
  3203. float lowerAngle;
  3204. float maxMotorTorque;
  3205. float motorSpeed;
  3206. /* readonly */
  3207. Node node;
  3208. /* readonly */
  3209. uint numAttributes;
  3210. ObjectAnimation objectAnimation;
  3211. RigidBody2D otherBody;
  3212. /* readonly */
  3213. RigidBody2D ownerBody;
  3214. /* readonly */
  3215. int refs;
  3216. /* readonly */
  3217. bool replicated;
  3218. bool temporary;
  3219. /* readonly */
  3220. StringHash type;
  3221. /* readonly */
  3222. String typeName;
  3223. float upperAngle;
  3224. /* readonly */
  3225. int weakRefs;
  3226. };
  3227. class ConstraintRope2D
  3228. {
  3229. public:
  3230. // Methods:
  3231. void ApplyAttributes();
  3232. void DrawDebugGeometry(DebugRenderer, bool);
  3233. Variant GetAttribute(const String&) const;
  3234. ValueAnimation GetAttributeAnimation(const String&) const;
  3235. float GetAttributeAnimationSpeed(const String&) const;
  3236. float GetAttributeAnimationTime(const String&) const;
  3237. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3238. Variant GetAttributeDefault(const String&) const;
  3239. bool GetInterceptNetworkUpdate(const String&) const;
  3240. bool HasSubscribedToEvent(Object, const String&);
  3241. bool HasSubscribedToEvent(const String&);
  3242. bool Load(File);
  3243. bool Load(VectorBuffer&);
  3244. bool LoadJSON(const JSONValue&);
  3245. bool LoadXML(const XMLElement&);
  3246. void MarkNetworkUpdate() const;
  3247. void Remove();
  3248. void RemoveAttributeAnimation(const String&);
  3249. void RemoveInstanceDefault();
  3250. void RemoveObjectAnimation();
  3251. void ResetToDefault();
  3252. bool Save(File) const;
  3253. bool Save(VectorBuffer&) const;
  3254. bool SaveJSON(JSONValue&) const;
  3255. bool SaveXML(XMLElement&) const;
  3256. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3257. void SetAnimationTime(float);
  3258. bool SetAttribute(const String&, const Variant&);
  3259. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3260. void SetAttributeAnimationSpeed(const String&, float);
  3261. void SetAttributeAnimationTime(const String&, float);
  3262. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3263. void SetInterceptNetworkUpdate(const String&, bool);
  3264. // Properties:
  3265. bool animationEnabled;
  3266. /* readonly */
  3267. Array<Variant> attributeDefaults;
  3268. /* readonly */
  3269. Array<AttributeInfo> attributeInfos;
  3270. Array<Variant> attributes;
  3271. /* readonly */
  3272. String category;
  3273. bool collideConnected;
  3274. bool enabled;
  3275. /* readonly */
  3276. bool enabledEffective;
  3277. /* readonly */
  3278. uint id;
  3279. float maxLength;
  3280. /* readonly */
  3281. Node node;
  3282. /* readonly */
  3283. uint numAttributes;
  3284. ObjectAnimation objectAnimation;
  3285. RigidBody2D otherBody;
  3286. Vector2 otherBodyAnchor;
  3287. /* readonly */
  3288. RigidBody2D ownerBody;
  3289. Vector2 ownerBodyAnchor;
  3290. /* readonly */
  3291. int refs;
  3292. /* readonly */
  3293. bool replicated;
  3294. bool temporary;
  3295. /* readonly */
  3296. StringHash type;
  3297. /* readonly */
  3298. String typeName;
  3299. /* readonly */
  3300. int weakRefs;
  3301. };
  3302. class ConstraintWeld2D
  3303. {
  3304. public:
  3305. // Methods:
  3306. void ApplyAttributes();
  3307. void DrawDebugGeometry(DebugRenderer, bool);
  3308. Variant GetAttribute(const String&) const;
  3309. ValueAnimation GetAttributeAnimation(const String&) const;
  3310. float GetAttributeAnimationSpeed(const String&) const;
  3311. float GetAttributeAnimationTime(const String&) const;
  3312. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3313. Variant GetAttributeDefault(const String&) const;
  3314. bool GetInterceptNetworkUpdate(const String&) const;
  3315. bool HasSubscribedToEvent(Object, const String&);
  3316. bool HasSubscribedToEvent(const String&);
  3317. bool Load(File);
  3318. bool Load(VectorBuffer&);
  3319. bool LoadJSON(const JSONValue&);
  3320. bool LoadXML(const XMLElement&);
  3321. void MarkNetworkUpdate() const;
  3322. void Remove();
  3323. void RemoveAttributeAnimation(const String&);
  3324. void RemoveInstanceDefault();
  3325. void RemoveObjectAnimation();
  3326. void ResetToDefault();
  3327. bool Save(File) const;
  3328. bool Save(VectorBuffer&) const;
  3329. bool SaveJSON(JSONValue&) const;
  3330. bool SaveXML(XMLElement&) const;
  3331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3332. void SetAnimationTime(float);
  3333. bool SetAttribute(const String&, const Variant&);
  3334. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3335. void SetAttributeAnimationSpeed(const String&, float);
  3336. void SetAttributeAnimationTime(const String&, float);
  3337. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3338. void SetInterceptNetworkUpdate(const String&, bool);
  3339. // Properties:
  3340. Vector2 anchor;
  3341. bool animationEnabled;
  3342. /* readonly */
  3343. Array<Variant> attributeDefaults;
  3344. /* readonly */
  3345. Array<AttributeInfo> attributeInfos;
  3346. Array<Variant> attributes;
  3347. /* readonly */
  3348. String category;
  3349. bool collideConnected;
  3350. float dampingRatio;
  3351. bool enabled;
  3352. /* readonly */
  3353. bool enabledEffective;
  3354. float frequencyHz;
  3355. /* readonly */
  3356. uint id;
  3357. /* readonly */
  3358. Node node;
  3359. /* readonly */
  3360. uint numAttributes;
  3361. ObjectAnimation objectAnimation;
  3362. RigidBody2D otherBody;
  3363. /* readonly */
  3364. RigidBody2D ownerBody;
  3365. /* readonly */
  3366. int refs;
  3367. /* readonly */
  3368. bool replicated;
  3369. bool temporary;
  3370. /* readonly */
  3371. StringHash type;
  3372. /* readonly */
  3373. String typeName;
  3374. /* readonly */
  3375. int weakRefs;
  3376. };
  3377. class ConstraintWheel2D
  3378. {
  3379. public:
  3380. // Methods:
  3381. void ApplyAttributes();
  3382. void DrawDebugGeometry(DebugRenderer, bool);
  3383. Variant GetAttribute(const String&) const;
  3384. ValueAnimation GetAttributeAnimation(const String&) const;
  3385. float GetAttributeAnimationSpeed(const String&) const;
  3386. float GetAttributeAnimationTime(const String&) const;
  3387. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3388. Variant GetAttributeDefault(const String&) const;
  3389. bool GetInterceptNetworkUpdate(const String&) const;
  3390. bool HasSubscribedToEvent(Object, const String&);
  3391. bool HasSubscribedToEvent(const String&);
  3392. bool Load(File);
  3393. bool Load(VectorBuffer&);
  3394. bool LoadJSON(const JSONValue&);
  3395. bool LoadXML(const XMLElement&);
  3396. void MarkNetworkUpdate() const;
  3397. void Remove();
  3398. void RemoveAttributeAnimation(const String&);
  3399. void RemoveInstanceDefault();
  3400. void RemoveObjectAnimation();
  3401. void ResetToDefault();
  3402. bool Save(File) const;
  3403. bool Save(VectorBuffer&) const;
  3404. bool SaveJSON(JSONValue&) const;
  3405. bool SaveXML(XMLElement&) const;
  3406. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3407. void SetAnimationTime(float);
  3408. bool SetAttribute(const String&, const Variant&);
  3409. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3410. void SetAttributeAnimationSpeed(const String&, float);
  3411. void SetAttributeAnimationTime(const String&, float);
  3412. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3413. void SetInterceptNetworkUpdate(const String&, bool);
  3414. // Properties:
  3415. Vector2 anchor;
  3416. bool animationEnabled;
  3417. /* readonly */
  3418. Array<Variant> attributeDefaults;
  3419. /* readonly */
  3420. Array<AttributeInfo> attributeInfos;
  3421. Array<Variant> attributes;
  3422. Vector2 axis;
  3423. /* readonly */
  3424. String category;
  3425. bool collideConnected;
  3426. float dampingRatio;
  3427. bool enableMotor;
  3428. bool enabled;
  3429. /* readonly */
  3430. bool enabledEffective;
  3431. float frequencyHz;
  3432. /* readonly */
  3433. uint id;
  3434. float maxMotorTorque;
  3435. float motorSpeed;
  3436. /* readonly */
  3437. Node node;
  3438. /* readonly */
  3439. uint numAttributes;
  3440. ObjectAnimation objectAnimation;
  3441. RigidBody2D otherBody;
  3442. /* readonly */
  3443. RigidBody2D ownerBody;
  3444. /* readonly */
  3445. int refs;
  3446. /* readonly */
  3447. bool replicated;
  3448. bool temporary;
  3449. /* readonly */
  3450. StringHash type;
  3451. /* readonly */
  3452. String typeName;
  3453. /* readonly */
  3454. int weakRefs;
  3455. };
  3456. class Controls
  3457. {
  3458. public:
  3459. ~Controls();
  3460. Controls();
  3461. Controls(const Controls&in);
  3462. // Methods:
  3463. bool IsDown(uint) const;
  3464. bool IsPressed(uint, const Controls&) const;
  3465. void Reset();
  3466. void Set(uint, bool);
  3467. // Properties:
  3468. uint buttons;
  3469. VariantMap extraData;
  3470. float pitch;
  3471. float yaw;
  3472. };
  3473. class CrowdAgent
  3474. {
  3475. public:
  3476. // Methods:
  3477. void ApplyAttributes();
  3478. void DrawDebugGeometry(DebugRenderer, bool);
  3479. void DrawDebugGeometry(bool);
  3480. Variant GetAttribute(const String&) const;
  3481. ValueAnimation GetAttributeAnimation(const String&) const;
  3482. float GetAttributeAnimationSpeed(const String&) const;
  3483. float GetAttributeAnimationTime(const String&) const;
  3484. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3485. Variant GetAttributeDefault(const String&) const;
  3486. bool GetInterceptNetworkUpdate(const String&) const;
  3487. bool HasSubscribedToEvent(Object, const String&);
  3488. bool HasSubscribedToEvent(const String&);
  3489. bool Load(File);
  3490. bool Load(VectorBuffer&);
  3491. bool LoadJSON(const JSONValue&);
  3492. bool LoadXML(const XMLElement&);
  3493. void MarkNetworkUpdate() const;
  3494. void Remove();
  3495. void RemoveAttributeAnimation(const String&);
  3496. void RemoveInstanceDefault();
  3497. void RemoveObjectAnimation();
  3498. void ResetTarget();
  3499. void ResetToDefault();
  3500. bool Save(File) const;
  3501. bool Save(VectorBuffer&) const;
  3502. bool SaveJSON(JSONValue&) const;
  3503. bool SaveXML(XMLElement&) const;
  3504. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3505. void SetAnimationTime(float);
  3506. bool SetAttribute(const String&, const Variant&);
  3507. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3508. void SetAttributeAnimationSpeed(const String&, float);
  3509. void SetAttributeAnimationTime(const String&, float);
  3510. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3511. void SetInterceptNetworkUpdate(const String&, bool);
  3512. // Properties:
  3513. /* readonly */
  3514. Vector3 actualVelocity;
  3515. /* readonly */
  3516. CrowdAgentState agentState;
  3517. bool animationEnabled;
  3518. /* readonly */
  3519. bool arrived;
  3520. /* readonly */
  3521. Array<Variant> attributeDefaults;
  3522. /* readonly */
  3523. Array<AttributeInfo> attributeInfos;
  3524. Array<Variant> attributes;
  3525. /* readonly */
  3526. String category;
  3527. /* readonly */
  3528. Vector3 desiredVelocity;
  3529. bool enabled;
  3530. /* readonly */
  3531. bool enabledEffective;
  3532. float height;
  3533. /* readonly */
  3534. uint id;
  3535. /* readonly */
  3536. bool inCrowd;
  3537. float maxAccel;
  3538. float maxSpeed;
  3539. NavigationPushiness navigationPushiness;
  3540. NavigationQuality navigationQuality;
  3541. /* readonly */
  3542. Node node;
  3543. /* readonly */
  3544. uint numAttributes;
  3545. ObjectAnimation objectAnimation;
  3546. uint obstacleAvoidanceType;
  3547. /* readonly */
  3548. Vector3 position;
  3549. uint queryFilterType;
  3550. float radius;
  3551. /* readonly */
  3552. int refs;
  3553. /* readonly */
  3554. bool replicated;
  3555. /* readonly */
  3556. bool requestedTarget;
  3557. /* readonly */
  3558. CrowdAgentRequestedTarget requestedTargetType;
  3559. Vector3 targetPosition;
  3560. /* readonly */
  3561. CrowdAgentTargetState targetState;
  3562. Vector3 targetVelocity;
  3563. bool temporary;
  3564. /* readonly */
  3565. StringHash type;
  3566. /* readonly */
  3567. String typeName;
  3568. bool updateNodePosition;
  3569. /* readonly */
  3570. int weakRefs;
  3571. };
  3572. class CrowdManager
  3573. {
  3574. public:
  3575. // Methods:
  3576. void ApplyAttributes();
  3577. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3578. void DrawDebugGeometry(DebugRenderer, bool);
  3579. void DrawDebugGeometry(bool);
  3580. Vector3 FindNearestPoint(const Vector3&, int);
  3581. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3582. float GetAreaCost(uint, uint);
  3583. Variant GetAttribute(const String&) const;
  3584. ValueAnimation GetAttributeAnimation(const String&) const;
  3585. float GetAttributeAnimationSpeed(const String&) const;
  3586. float GetAttributeAnimationTime(const String&) const;
  3587. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3588. Variant GetAttributeDefault(const String&) const;
  3589. float GetDistanceToWall(const Vector3&, float, int);
  3590. uint16 GetExcludeFlags(uint);
  3591. uint16 GetIncludeFlags(uint);
  3592. bool GetInterceptNetworkUpdate(const String&) const;
  3593. Vector3 GetRandomPoint(int);
  3594. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3595. bool HasSubscribedToEvent(Object, const String&);
  3596. bool HasSubscribedToEvent(const String&);
  3597. bool Load(File);
  3598. bool Load(VectorBuffer&);
  3599. bool LoadJSON(const JSONValue&);
  3600. bool LoadXML(const XMLElement&);
  3601. void MarkNetworkUpdate() const;
  3602. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3603. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3604. void Remove();
  3605. void RemoveAttributeAnimation(const String&);
  3606. void RemoveInstanceDefault();
  3607. void RemoveObjectAnimation();
  3608. void ResetCrowdTarget(Node = null);
  3609. void ResetToDefault();
  3610. bool Save(File) const;
  3611. bool Save(VectorBuffer&) const;
  3612. bool SaveJSON(JSONValue&) const;
  3613. bool SaveXML(XMLElement&) const;
  3614. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3615. void SetAnimationTime(float);
  3616. void SetAreaCost(uint, uint, float);
  3617. bool SetAttribute(const String&, const Variant&);
  3618. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3619. void SetAttributeAnimationSpeed(const String&, float);
  3620. void SetAttributeAnimationTime(const String&, float);
  3621. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3622. void SetCrowdTarget(const Vector3&, Node = null);
  3623. void SetCrowdVelocity(const Vector3&, Node = null);
  3624. void SetExcludeFlags(uint, uint16);
  3625. void SetIncludeFlags(uint, uint16);
  3626. void SetInterceptNetworkUpdate(const String&, bool);
  3627. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3628. // Properties:
  3629. bool animationEnabled;
  3630. /* readonly */
  3631. Array<Variant> attributeDefaults;
  3632. /* readonly */
  3633. Array<AttributeInfo> attributeInfos;
  3634. Array<Variant> attributes;
  3635. /* readonly */
  3636. String category;
  3637. bool enabled;
  3638. /* readonly */
  3639. bool enabledEffective;
  3640. /* readonly */
  3641. uint id;
  3642. float maxAgentRadius;
  3643. int maxAgents;
  3644. NavigationMesh navMesh;
  3645. /* readonly */
  3646. Node node;
  3647. /* readonly */
  3648. Array<uint> numAreas;
  3649. /* readonly */
  3650. uint numAttributes;
  3651. /* readonly */
  3652. uint numObstacleAvoidanceTypes;
  3653. /* readonly */
  3654. uint numQueryFilterTypes;
  3655. ObjectAnimation objectAnimation;
  3656. /* readonly */
  3657. int refs;
  3658. /* readonly */
  3659. bool replicated;
  3660. bool temporary;
  3661. /* readonly */
  3662. StringHash type;
  3663. /* readonly */
  3664. String typeName;
  3665. /* readonly */
  3666. int weakRefs;
  3667. };
  3668. class CrowdObstacleAvoidanceParams
  3669. {
  3670. public:
  3671. // Properties:
  3672. uint8 adaptiveDepth;
  3673. uint8 adaptiveDivs;
  3674. uint8 adaptiveRings;
  3675. uint8 gridSize;
  3676. float horizTime;
  3677. float velBias;
  3678. float weightCurVel;
  3679. float weightDesVel;
  3680. float weightSide;
  3681. float weightToi;
  3682. };
  3683. class Cursor
  3684. {
  3685. public:
  3686. Cursor();
  3687. Cursor(const String&in);
  3688. // Methods:
  3689. void AddChild(UIElement);
  3690. void AddTag(const String&);
  3691. void AddTags(const String&, int8 = ';');
  3692. void ApplyAttributes();
  3693. void BringToFront();
  3694. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3695. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3696. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3697. void DisableLayoutUpdate();
  3698. IntVector2 ElementToScreen(const IntVector2&);
  3699. void EnableLayoutUpdate();
  3700. uint FindChild(UIElement) const;
  3701. Variant GetAttribute(const String&) const;
  3702. ValueAnimation GetAttributeAnimation(const String&) const;
  3703. float GetAttributeAnimationSpeed(const String&) const;
  3704. float GetAttributeAnimationTime(const String&) const;
  3705. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3706. Variant GetAttributeDefault(const String&) const;
  3707. UIElement GetChild(const String&, bool = false) const;
  3708. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3709. Array<UIElement> GetChildren(bool = false) const;
  3710. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3711. UIElement GetElementEventSender() const;
  3712. bool GetInterceptNetworkUpdate(const String&) const;
  3713. uint GetNumChildren(bool) const;
  3714. bool HasSubscribedToEvent(Object, const String&);
  3715. bool HasSubscribedToEvent(const String&);
  3716. bool HasTag(const String&) const;
  3717. void InsertChild(uint, UIElement);
  3718. bool IsChildOf(UIElement) const;
  3719. bool IsInside(IntVector2, bool);
  3720. bool IsInsideCombined(IntVector2, bool);
  3721. bool Load(File);
  3722. bool Load(VectorBuffer&);
  3723. UIElement LoadChildXML(XMLFile, XMLFile);
  3724. UIElement LoadChildXML(const XMLElement&, XMLFile);
  3725. bool LoadJSON(const JSONValue&);
  3726. bool LoadXML(File);
  3727. bool LoadXML(VectorBuffer&);
  3728. bool LoadXML(XMLFile, XMLFile);
  3729. bool LoadXML(const XMLElement&, XMLFile);
  3730. bool LoadXML(const XMLElement&);
  3731. void MarkNetworkUpdate() const;
  3732. void Remove();
  3733. void RemoveAllChildren();
  3734. void RemoveAllTags();
  3735. void RemoveAttributeAnimation(const String&);
  3736. void RemoveChild(UIElement, uint = 0);
  3737. void RemoveChild(uint);
  3738. void RemoveInstanceDefault();
  3739. void RemoveObjectAnimation();
  3740. bool RemoveTag(const String&);
  3741. void ResetDeepEnabled();
  3742. void ResetToDefault();
  3743. bool Save(File) const;
  3744. bool Save(VectorBuffer&) const;
  3745. bool SaveJSON(JSONValue&) const;
  3746. bool SaveXML(File, const String& = "\t");
  3747. bool SaveXML(VectorBuffer&, const String& = "\t");
  3748. bool SaveXML(XMLElement&) const;
  3749. IntVector2 ScreenToElement(const IntVector2&);
  3750. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3751. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3752. void SetAnimationTime(float);
  3753. bool SetAttribute(const String&, const Variant&);
  3754. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3755. void SetAttributeAnimationSpeed(const String&, float);
  3756. void SetAttributeAnimationTime(const String&, float);
  3757. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3758. void SetDeepEnabled(bool);
  3759. void SetEnabledRecursive(bool);
  3760. void SetFixedHeight(int);
  3761. void SetFixedSize(int, int);
  3762. void SetFixedWidth(int);
  3763. void SetFullImageRect();
  3764. void SetHoverOffset(int, int);
  3765. void SetInterceptNetworkUpdate(const String&, bool);
  3766. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3767. void SetMaxAnchor(float, float);
  3768. void SetMaxSize(int, int);
  3769. void SetMinAnchor(float, float);
  3770. void SetMinSize(int, int);
  3771. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3772. void SetPivot(float, float);
  3773. void SetPosition(int, int);
  3774. void SetShape(CursorShape);
  3775. void SetShape(const String&);
  3776. void SetSize(int, int);
  3777. bool SetStyle(const String&, XMLFile = null);
  3778. bool SetStyle(const XMLElement&);
  3779. bool SetStyleAuto(XMLFile = null);
  3780. void UpdateLayout();
  3781. const Variant& GetVar(const StringHash&);
  3782. // Properties:
  3783. bool animationEnabled;
  3784. /* readonly */
  3785. Array<Variant> attributeDefaults;
  3786. /* readonly */
  3787. Array<AttributeInfo> attributeInfos;
  3788. Array<Variant> attributes;
  3789. BlendMode blendMode;
  3790. IntRect border;
  3791. bool bringToBack;
  3792. bool bringToFront;
  3793. /* readonly */
  3794. String category;
  3795. /* readonly */
  3796. IntVector2 childOffset;
  3797. /* readonly */
  3798. Array<UIElement> children;
  3799. IntRect clipBorder;
  3800. bool clipChildren;
  3801. /* writeonly */
  3802. Color color;
  3803. /* readonly */
  3804. bool colorGradient;
  3805. Array<Color> colors;
  3806. /* readonly */
  3807. IntRect combinedScreenRect;
  3808. XMLFile defaultStyle;
  3809. /* readonly */
  3810. float derivedOpacity;
  3811. /* readonly */
  3812. uint dragButtonCombo;
  3813. /* readonly */
  3814. int dragButtonCount;
  3815. uint dragDropMode;
  3816. bool editable;
  3817. bool elementEventSender;
  3818. bool enableAnchor;
  3819. bool enabled;
  3820. /* readonly */
  3821. bool enabledSelf;
  3822. /* readonly */
  3823. bool fixedHeight;
  3824. /* readonly */
  3825. bool fixedSize;
  3826. /* readonly */
  3827. bool fixedWidth;
  3828. bool focus;
  3829. FocusMode focusMode;
  3830. int height;
  3831. HorizontalAlignment horizontalAlignment;
  3832. IntVector2 hoverOffset;
  3833. /* readonly */
  3834. bool hovering;
  3835. IntRect imageBorder;
  3836. IntRect imageRect;
  3837. int indent;
  3838. int indentSpacing;
  3839. /* readonly */
  3840. int indentWidth;
  3841. bool internal;
  3842. IntRect layoutBorder;
  3843. Vector2 layoutFlexScale;
  3844. LayoutMode layoutMode;
  3845. int layoutSpacing;
  3846. Vector2 maxAnchor;
  3847. int maxHeight;
  3848. IntVector2 maxOffset;
  3849. IntVector2 maxSize;
  3850. int maxWidth;
  3851. Vector2 minAnchor;
  3852. int minHeight;
  3853. IntVector2 minOffset;
  3854. IntVector2 minSize;
  3855. int minWidth;
  3856. String name;
  3857. /* readonly */
  3858. uint numAllChildren;
  3859. /* readonly */
  3860. uint numAttributes;
  3861. /* readonly */
  3862. uint numChildren;
  3863. ObjectAnimation objectAnimation;
  3864. float opacity;
  3865. UIElement parent;
  3866. Vector2 pivot;
  3867. IntVector2 position;
  3868. int priority;
  3869. /* readonly */
  3870. int refs;
  3871. /* readonly */
  3872. UIElement root;
  3873. /* readonly */
  3874. IntVector2 screenPosition;
  3875. bool selected;
  3876. String shape;
  3877. IntVector2 size;
  3878. bool sortChildren;
  3879. String style;
  3880. /* readonly */
  3881. Array<String> tags;
  3882. bool temporary;
  3883. Texture texture;
  3884. bool tiled;
  3885. TraversalMode traversalMode;
  3886. /* readonly */
  3887. StringHash type;
  3888. /* readonly */
  3889. String typeName;
  3890. bool useDerivedOpacity;
  3891. bool useSystemShapes;
  3892. /* readonly */
  3893. VariantMap vars;
  3894. VerticalAlignment verticalAlignment;
  3895. bool visible;
  3896. /* readonly */
  3897. bool visibleEffective;
  3898. /* readonly */
  3899. int weakRefs;
  3900. int width;
  3901. };
  3902. class CustomGeometry
  3903. {
  3904. public:
  3905. // Methods:
  3906. void ApplyAttributes();
  3907. void BeginGeometry(uint, PrimitiveType);
  3908. void Clear();
  3909. void Commit();
  3910. void DefineColor(const Color&);
  3911. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3912. void DefineNormal(const Vector3&);
  3913. void DefineTangent(const Vector4&);
  3914. void DefineTexCoord(const Vector2&);
  3915. void DefineVertex(const Vector3&);
  3916. void DrawDebugGeometry(DebugRenderer, bool);
  3917. Variant GetAttribute(const String&) const;
  3918. ValueAnimation GetAttributeAnimation(const String&) const;
  3919. float GetAttributeAnimationSpeed(const String&) const;
  3920. float GetAttributeAnimationTime(const String&) const;
  3921. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3922. Variant GetAttributeDefault(const String&) const;
  3923. bool GetInterceptNetworkUpdate(const String&) const;
  3924. CustomGeometryVertex GetVertex(uint, uint);
  3925. bool HasSubscribedToEvent(Object, const String&);
  3926. bool HasSubscribedToEvent(const String&);
  3927. bool IsInView(Camera) const;
  3928. bool Load(File);
  3929. bool Load(VectorBuffer&);
  3930. bool LoadJSON(const JSONValue&);
  3931. bool LoadXML(const XMLElement&);
  3932. void MarkNetworkUpdate() const;
  3933. void Remove();
  3934. void RemoveAttributeAnimation(const String&);
  3935. void RemoveInstanceDefault();
  3936. void RemoveObjectAnimation();
  3937. void ResetToDefault();
  3938. bool Save(File) const;
  3939. bool Save(VectorBuffer&) const;
  3940. bool SaveJSON(JSONValue&) const;
  3941. bool SaveXML(XMLElement&) const;
  3942. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3943. void SetAnimationTime(float);
  3944. bool SetAttribute(const String&, const Variant&);
  3945. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3946. void SetAttributeAnimationSpeed(const String&, float);
  3947. void SetAttributeAnimationTime(const String&, float);
  3948. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3949. void SetInterceptNetworkUpdate(const String&, bool);
  3950. // Properties:
  3951. bool animationEnabled;
  3952. /* readonly */
  3953. Array<Variant> attributeDefaults;
  3954. /* readonly */
  3955. Array<AttributeInfo> attributeInfos;
  3956. Array<Variant> attributes;
  3957. /* readonly */
  3958. BoundingBox boundingBox;
  3959. bool castShadows;
  3960. /* readonly */
  3961. String category;
  3962. float drawDistance;
  3963. bool dynamic;
  3964. bool enabled;
  3965. /* readonly */
  3966. bool enabledEffective;
  3967. /* readonly */
  3968. uint id;
  3969. /* readonly */
  3970. bool inView;
  3971. uint lightMask;
  3972. float lodBias;
  3973. /* writeonly */
  3974. Material material;
  3975. Array<Material> materials;
  3976. uint maxLights;
  3977. /* readonly */
  3978. Node node;
  3979. /* readonly */
  3980. uint numAttributes;
  3981. uint numGeometries;
  3982. /* readonly */
  3983. Array<uint> numVertices;
  3984. ObjectAnimation objectAnimation;
  3985. bool occludee;
  3986. bool occluder;
  3987. /* readonly */
  3988. int refs;
  3989. /* readonly */
  3990. bool replicated;
  3991. float shadowDistance;
  3992. uint shadowMask;
  3993. bool temporary;
  3994. /* readonly */
  3995. StringHash type;
  3996. /* readonly */
  3997. String typeName;
  3998. uint viewMask;
  3999. /* readonly */
  4000. int weakRefs;
  4001. /* readonly */
  4002. BoundingBox worldBoundingBox;
  4003. /* readonly */
  4004. Zone zone;
  4005. uint zoneMask;
  4006. };
  4007. class CustomGeometryVertex
  4008. {
  4009. public:
  4010. // Properties:
  4011. uint color;
  4012. Vector3 normal;
  4013. Vector3 position;
  4014. Vector4 tangent;
  4015. Vector2 texCoord;
  4016. };
  4017. class Database
  4018. {
  4019. public:
  4020. // Methods:
  4021. DbConnection Connect(const String&);
  4022. void Disconnect(DbConnection);
  4023. bool HasSubscribedToEvent(Object, const String&);
  4024. bool HasSubscribedToEvent(const String&);
  4025. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4026. // Properties:
  4027. /* readonly */
  4028. String category;
  4029. uint poolSize;
  4030. /* readonly */
  4031. bool pooling;
  4032. /* readonly */
  4033. int refs;
  4034. /* readonly */
  4035. StringHash type;
  4036. /* readonly */
  4037. String typeName;
  4038. /* readonly */
  4039. int weakRefs;
  4040. };
  4041. class DbConnection
  4042. {
  4043. public:
  4044. // Methods:
  4045. DbResult Execute(const String&, bool = false);
  4046. bool HasSubscribedToEvent(Object, const String&);
  4047. bool HasSubscribedToEvent(const String&);
  4048. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4049. // Properties:
  4050. /* readonly */
  4051. String category;
  4052. /* readonly */
  4053. bool connected;
  4054. /* readonly */
  4055. String connectionString;
  4056. /* readonly */
  4057. int refs;
  4058. /* readonly */
  4059. StringHash type;
  4060. /* readonly */
  4061. String typeName;
  4062. /* readonly */
  4063. int weakRefs;
  4064. };
  4065. class DbResult
  4066. {
  4067. public:
  4068. ~DbResult();
  4069. DbResult();
  4070. DbResult(const DbResult&in);
  4071. // Properties:
  4072. /* readonly */
  4073. Array<String> columns;
  4074. /* readonly */
  4075. int64 numAffectedRows;
  4076. /* readonly */
  4077. uint numColumns;
  4078. /* readonly */
  4079. uint numRows;
  4080. /* readonly */
  4081. Array<Array<Variant>> row;
  4082. };
  4083. class DebugHud
  4084. {
  4085. public:
  4086. // Methods:
  4087. void ClearAppStats();
  4088. bool HasSubscribedToEvent(Object, const String&);
  4089. bool HasSubscribedToEvent(const String&);
  4090. void ResetAppStats(const String&);
  4091. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4092. void SetAppStats(const String&, const String&);
  4093. void SetAppStats(const String&, const Variant&);
  4094. void Toggle(uint);
  4095. void ToggleAll();
  4096. void Update();
  4097. // Properties:
  4098. /* readonly */
  4099. String category;
  4100. XMLFile defaultStyle;
  4101. /* readonly */
  4102. Text memoryText;
  4103. uint mode;
  4104. /* readonly */
  4105. Text modeText;
  4106. float profilerInterval;
  4107. uint profilerMaxDepth;
  4108. /* readonly */
  4109. Text profilerText;
  4110. /* readonly */
  4111. int refs;
  4112. /* readonly */
  4113. Text statsText;
  4114. /* readonly */
  4115. StringHash type;
  4116. /* readonly */
  4117. String typeName;
  4118. bool useRendererStats;
  4119. /* readonly */
  4120. int weakRefs;
  4121. };
  4122. class DebugRenderer
  4123. {
  4124. public:
  4125. // Methods:
  4126. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  4127. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  4128. void AddCross(const Vector3&, float, const Color&, bool = true);
  4129. void AddFrustum(const Frustum&, const Color&, bool = true);
  4130. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  4131. void AddNode(Node, float = 1.0, bool = true);
  4132. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4133. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  4134. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  4135. void AddSkeleton(Skeleton, const Color&, bool = true);
  4136. void AddSphere(const Sphere&, const Color&, bool = true);
  4137. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  4138. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4139. void ApplyAttributes();
  4140. void DrawDebugGeometry(DebugRenderer, bool);
  4141. Variant GetAttribute(const String&) const;
  4142. ValueAnimation GetAttributeAnimation(const String&) const;
  4143. float GetAttributeAnimationSpeed(const String&) const;
  4144. float GetAttributeAnimationTime(const String&) const;
  4145. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4146. Variant GetAttributeDefault(const String&) const;
  4147. bool GetInterceptNetworkUpdate(const String&) const;
  4148. bool HasSubscribedToEvent(Object, const String&);
  4149. bool HasSubscribedToEvent(const String&);
  4150. bool Load(File);
  4151. bool Load(VectorBuffer&);
  4152. bool LoadJSON(const JSONValue&);
  4153. bool LoadXML(const XMLElement&);
  4154. void MarkNetworkUpdate() const;
  4155. void Remove();
  4156. void RemoveAttributeAnimation(const String&);
  4157. void RemoveInstanceDefault();
  4158. void RemoveObjectAnimation();
  4159. void ResetToDefault();
  4160. bool Save(File) const;
  4161. bool Save(VectorBuffer&) const;
  4162. bool SaveJSON(JSONValue&) const;
  4163. bool SaveXML(XMLElement&) const;
  4164. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4165. void SetAnimationTime(float);
  4166. bool SetAttribute(const String&, const Variant&);
  4167. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4168. void SetAttributeAnimationSpeed(const String&, float);
  4169. void SetAttributeAnimationTime(const String&, float);
  4170. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4171. void SetInterceptNetworkUpdate(const String&, bool);
  4172. // Properties:
  4173. bool animationEnabled;
  4174. /* readonly */
  4175. Array<Variant> attributeDefaults;
  4176. /* readonly */
  4177. Array<AttributeInfo> attributeInfos;
  4178. Array<Variant> attributes;
  4179. /* readonly */
  4180. String category;
  4181. bool enabled;
  4182. /* readonly */
  4183. bool enabledEffective;
  4184. /* readonly */
  4185. uint id;
  4186. bool lineAntiAlias;
  4187. /* readonly */
  4188. Node node;
  4189. /* readonly */
  4190. uint numAttributes;
  4191. ObjectAnimation objectAnimation;
  4192. /* readonly */
  4193. int refs;
  4194. /* readonly */
  4195. bool replicated;
  4196. bool temporary;
  4197. /* readonly */
  4198. StringHash type;
  4199. /* readonly */
  4200. String typeName;
  4201. /* readonly */
  4202. int weakRefs;
  4203. };
  4204. class DecalSet
  4205. {
  4206. public:
  4207. // Methods:
  4208. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4209. void ApplyAttributes();
  4210. void DrawDebugGeometry(DebugRenderer, bool);
  4211. Variant GetAttribute(const String&) const;
  4212. ValueAnimation GetAttributeAnimation(const String&) const;
  4213. float GetAttributeAnimationSpeed(const String&) const;
  4214. float GetAttributeAnimationTime(const String&) const;
  4215. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4216. Variant GetAttributeDefault(const String&) const;
  4217. bool GetInterceptNetworkUpdate(const String&) const;
  4218. bool HasSubscribedToEvent(Object, const String&);
  4219. bool HasSubscribedToEvent(const String&);
  4220. bool IsInView(Camera) const;
  4221. bool Load(File);
  4222. bool Load(VectorBuffer&);
  4223. bool LoadJSON(const JSONValue&);
  4224. bool LoadXML(const XMLElement&);
  4225. void MarkNetworkUpdate() const;
  4226. void Remove();
  4227. void RemoveAllDecals();
  4228. void RemoveAttributeAnimation(const String&);
  4229. void RemoveDecals(uint);
  4230. void RemoveInstanceDefault();
  4231. void RemoveObjectAnimation();
  4232. void ResetToDefault();
  4233. bool Save(File) const;
  4234. bool Save(VectorBuffer&) const;
  4235. bool SaveJSON(JSONValue&) const;
  4236. bool SaveXML(XMLElement&) const;
  4237. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4238. void SetAnimationTime(float);
  4239. bool SetAttribute(const String&, const Variant&);
  4240. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4241. void SetAttributeAnimationSpeed(const String&, float);
  4242. void SetAttributeAnimationTime(const String&, float);
  4243. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4244. void SetInterceptNetworkUpdate(const String&, bool);
  4245. // Properties:
  4246. bool animationEnabled;
  4247. /* readonly */
  4248. Array<Variant> attributeDefaults;
  4249. /* readonly */
  4250. Array<AttributeInfo> attributeInfos;
  4251. Array<Variant> attributes;
  4252. /* readonly */
  4253. BoundingBox boundingBox;
  4254. bool castShadows;
  4255. /* readonly */
  4256. String category;
  4257. float drawDistance;
  4258. bool enabled;
  4259. /* readonly */
  4260. bool enabledEffective;
  4261. /* readonly */
  4262. uint id;
  4263. /* readonly */
  4264. bool inView;
  4265. uint lightMask;
  4266. float lodBias;
  4267. Material material;
  4268. uint maxIndices;
  4269. uint maxLights;
  4270. uint maxVertices;
  4271. /* readonly */
  4272. Node node;
  4273. /* readonly */
  4274. uint numAttributes;
  4275. /* readonly */
  4276. uint numDecals;
  4277. /* readonly */
  4278. uint numIndices;
  4279. /* readonly */
  4280. uint numVertices;
  4281. ObjectAnimation objectAnimation;
  4282. bool occludee;
  4283. bool occluder;
  4284. bool optimizeBufferSize;
  4285. /* readonly */
  4286. int refs;
  4287. /* readonly */
  4288. bool replicated;
  4289. float shadowDistance;
  4290. uint shadowMask;
  4291. bool temporary;
  4292. /* readonly */
  4293. StringHash type;
  4294. /* readonly */
  4295. String typeName;
  4296. uint viewMask;
  4297. /* readonly */
  4298. int weakRefs;
  4299. /* readonly */
  4300. BoundingBox worldBoundingBox;
  4301. /* readonly */
  4302. Zone zone;
  4303. uint zoneMask;
  4304. };
  4305. class Deserializer
  4306. {
  4307. public:
  4308. // Methods:
  4309. Array<uint8> Read(uint);
  4310. bool ReadBool();
  4311. BoundingBox ReadBoundingBox();
  4312. int8 ReadByte();
  4313. Color ReadColor();
  4314. double ReadDouble();
  4315. String ReadFileID();
  4316. float ReadFloat();
  4317. int ReadInt();
  4318. int64 ReadInt64();
  4319. IntRect ReadIntRect();
  4320. IntVector2 ReadIntVector2();
  4321. String ReadLine();
  4322. Matrix3 ReadMatrix3();
  4323. Matrix3x4 ReadMatrix3x4();
  4324. Matrix4 ReadMatrix4();
  4325. uint ReadNetID();
  4326. Quaternion ReadPackedQuaternion();
  4327. Vector3 ReadPackedVector3(float);
  4328. Quaternion ReadQuaternion();
  4329. int16 ReadShort();
  4330. String ReadString();
  4331. StringHash ReadStringHash();
  4332. uint8 ReadUByte();
  4333. uint ReadUInt();
  4334. uint64 ReadUInt64();
  4335. uint16 ReadUShort();
  4336. uint ReadVLE();
  4337. Variant ReadVariant();
  4338. VariantMap ReadVariantMap();
  4339. Vector2 ReadVector2();
  4340. Vector3 ReadVector3();
  4341. Vector4 ReadVector4();
  4342. VectorBuffer ReadVectorBuffer(uint);
  4343. uint Seek(uint);
  4344. uint SeekRelative(int);
  4345. uint Tell() const;
  4346. // Properties:
  4347. /* readonly */
  4348. uint checksum;
  4349. /* readonly */
  4350. bool eof;
  4351. /* readonly */
  4352. String name;
  4353. /* readonly */
  4354. uint position;
  4355. /* readonly */
  4356. uint size;
  4357. };
  4358. class Dictionary
  4359. {
  4360. public:
  4361. Dictionary();
  4362. // Methods:
  4363. void Clear();
  4364. void Erase(const String&);
  4365. bool Exists(const String&) const;
  4366. bool Get(const String&, void*) const;
  4367. bool Get(const String&, double&) const;
  4368. bool Get(const String&, int64&) const;
  4369. void Set(const String&, const void*);
  4370. void Set(const String&, const double&);
  4371. void Set(const String&, const int64&);
  4372. // Properties:
  4373. /* readonly */
  4374. bool empty;
  4375. /* readonly */
  4376. Array<String> keys;
  4377. /* readonly */
  4378. uint length;
  4379. };
  4380. class DictionaryValue
  4381. {
  4382. public:
  4383. ~DictionaryValue();
  4384. DictionaryValue();
  4385. };
  4386. class Drawable
  4387. {
  4388. public:
  4389. // Methods:
  4390. void ApplyAttributes();
  4391. void DrawDebugGeometry(DebugRenderer, bool);
  4392. Variant GetAttribute(const String&) const;
  4393. ValueAnimation GetAttributeAnimation(const String&) const;
  4394. float GetAttributeAnimationSpeed(const String&) const;
  4395. float GetAttributeAnimationTime(const String&) const;
  4396. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4397. Variant GetAttributeDefault(const String&) const;
  4398. bool GetInterceptNetworkUpdate(const String&) const;
  4399. bool HasSubscribedToEvent(Object, const String&);
  4400. bool HasSubscribedToEvent(const String&);
  4401. bool IsInView(Camera) const;
  4402. bool Load(File);
  4403. bool Load(VectorBuffer&);
  4404. bool LoadJSON(const JSONValue&);
  4405. bool LoadXML(const XMLElement&);
  4406. void MarkNetworkUpdate() const;
  4407. void Remove();
  4408. void RemoveAttributeAnimation(const String&);
  4409. void RemoveInstanceDefault();
  4410. void RemoveObjectAnimation();
  4411. void ResetToDefault();
  4412. bool Save(File) const;
  4413. bool Save(VectorBuffer&) const;
  4414. bool SaveJSON(JSONValue&) const;
  4415. bool SaveXML(XMLElement&) const;
  4416. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4417. void SetAnimationTime(float);
  4418. bool SetAttribute(const String&, const Variant&);
  4419. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4420. void SetAttributeAnimationSpeed(const String&, float);
  4421. void SetAttributeAnimationTime(const String&, float);
  4422. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4423. void SetInterceptNetworkUpdate(const String&, bool);
  4424. // Properties:
  4425. bool animationEnabled;
  4426. /* readonly */
  4427. Array<Variant> attributeDefaults;
  4428. /* readonly */
  4429. Array<AttributeInfo> attributeInfos;
  4430. Array<Variant> attributes;
  4431. /* readonly */
  4432. BoundingBox boundingBox;
  4433. bool castShadows;
  4434. /* readonly */
  4435. String category;
  4436. float drawDistance;
  4437. bool enabled;
  4438. /* readonly */
  4439. bool enabledEffective;
  4440. /* readonly */
  4441. uint id;
  4442. /* readonly */
  4443. bool inView;
  4444. uint lightMask;
  4445. float lodBias;
  4446. uint maxLights;
  4447. /* readonly */
  4448. Node node;
  4449. /* readonly */
  4450. uint numAttributes;
  4451. ObjectAnimation objectAnimation;
  4452. bool occludee;
  4453. bool occluder;
  4454. /* readonly */
  4455. int refs;
  4456. /* readonly */
  4457. bool replicated;
  4458. float shadowDistance;
  4459. uint shadowMask;
  4460. bool temporary;
  4461. /* readonly */
  4462. StringHash type;
  4463. /* readonly */
  4464. String typeName;
  4465. uint viewMask;
  4466. /* readonly */
  4467. int weakRefs;
  4468. /* readonly */
  4469. BoundingBox worldBoundingBox;
  4470. uint zoneMask;
  4471. };
  4472. class Drawable2D
  4473. {
  4474. public:
  4475. // Methods:
  4476. void ApplyAttributes();
  4477. void DrawDebugGeometry(DebugRenderer, bool);
  4478. Variant GetAttribute(const String&) const;
  4479. ValueAnimation GetAttributeAnimation(const String&) const;
  4480. float GetAttributeAnimationSpeed(const String&) const;
  4481. float GetAttributeAnimationTime(const String&) const;
  4482. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4483. Variant GetAttributeDefault(const String&) const;
  4484. bool GetInterceptNetworkUpdate(const String&) const;
  4485. bool HasSubscribedToEvent(Object, const String&);
  4486. bool HasSubscribedToEvent(const String&);
  4487. bool IsInView(Camera) const;
  4488. bool Load(File);
  4489. bool Load(VectorBuffer&);
  4490. bool LoadJSON(const JSONValue&);
  4491. bool LoadXML(const XMLElement&);
  4492. void MarkNetworkUpdate() const;
  4493. void Remove();
  4494. void RemoveAttributeAnimation(const String&);
  4495. void RemoveInstanceDefault();
  4496. void RemoveObjectAnimation();
  4497. void ResetToDefault();
  4498. bool Save(File) const;
  4499. bool Save(VectorBuffer&) const;
  4500. bool SaveJSON(JSONValue&) const;
  4501. bool SaveXML(XMLElement&) const;
  4502. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4503. void SetAnimationTime(float);
  4504. bool SetAttribute(const String&, const Variant&);
  4505. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4506. void SetAttributeAnimationSpeed(const String&, float);
  4507. void SetAttributeAnimationTime(const String&, float);
  4508. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4509. void SetInterceptNetworkUpdate(const String&, bool);
  4510. // Properties:
  4511. bool animationEnabled;
  4512. /* readonly */
  4513. Array<Variant> attributeDefaults;
  4514. /* readonly */
  4515. Array<AttributeInfo> attributeInfos;
  4516. Array<Variant> attributes;
  4517. /* readonly */
  4518. BoundingBox boundingBox;
  4519. bool castShadows;
  4520. /* readonly */
  4521. String category;
  4522. float drawDistance;
  4523. bool enabled;
  4524. /* readonly */
  4525. bool enabledEffective;
  4526. /* readonly */
  4527. uint id;
  4528. /* readonly */
  4529. bool inView;
  4530. int layer;
  4531. uint lightMask;
  4532. float lodBias;
  4533. uint maxLights;
  4534. /* readonly */
  4535. Node node;
  4536. /* readonly */
  4537. uint numAttributes;
  4538. ObjectAnimation objectAnimation;
  4539. bool occludee;
  4540. bool occluder;
  4541. int orderInLayer;
  4542. /* readonly */
  4543. int refs;
  4544. /* readonly */
  4545. bool replicated;
  4546. float shadowDistance;
  4547. uint shadowMask;
  4548. bool temporary;
  4549. /* readonly */
  4550. StringHash type;
  4551. /* readonly */
  4552. String typeName;
  4553. uint viewMask;
  4554. /* readonly */
  4555. int weakRefs;
  4556. /* readonly */
  4557. BoundingBox worldBoundingBox;
  4558. uint zoneMask;
  4559. };
  4560. class DropDownList
  4561. {
  4562. public:
  4563. DropDownList();
  4564. DropDownList(const String&in);
  4565. // Methods:
  4566. void AddChild(UIElement);
  4567. void AddItem(UIElement);
  4568. void AddTag(const String&);
  4569. void AddTags(const String&, int8 = ';');
  4570. void ApplyAttributes();
  4571. void BringToFront();
  4572. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4573. void DisableLayoutUpdate();
  4574. IntVector2 ElementToScreen(const IntVector2&);
  4575. void EnableLayoutUpdate();
  4576. uint FindChild(UIElement) const;
  4577. Variant GetAttribute(const String&) const;
  4578. ValueAnimation GetAttributeAnimation(const String&) const;
  4579. float GetAttributeAnimationSpeed(const String&) const;
  4580. float GetAttributeAnimationTime(const String&) const;
  4581. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4582. Variant GetAttributeDefault(const String&) const;
  4583. UIElement GetChild(const String&, bool = false) const;
  4584. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4585. Array<UIElement> GetChildren(bool = false) const;
  4586. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4587. UIElement GetElementEventSender() const;
  4588. bool GetInterceptNetworkUpdate(const String&) const;
  4589. Array<UIElement> GetItems() const;
  4590. uint GetNumChildren(bool) const;
  4591. bool HasSubscribedToEvent(Object, const String&);
  4592. bool HasSubscribedToEvent(const String&);
  4593. bool HasTag(const String&) const;
  4594. void InsertChild(uint, UIElement);
  4595. void InsertItem(uint, UIElement);
  4596. bool IsChildOf(UIElement) const;
  4597. bool IsInside(IntVector2, bool);
  4598. bool IsInsideCombined(IntVector2, bool);
  4599. bool Load(File);
  4600. bool Load(VectorBuffer&);
  4601. UIElement LoadChildXML(XMLFile, XMLFile);
  4602. UIElement LoadChildXML(const XMLElement&, XMLFile);
  4603. bool LoadJSON(const JSONValue&);
  4604. bool LoadXML(File);
  4605. bool LoadXML(VectorBuffer&);
  4606. bool LoadXML(XMLFile, XMLFile);
  4607. bool LoadXML(const XMLElement&, XMLFile);
  4608. bool LoadXML(const XMLElement&);
  4609. void MarkNetworkUpdate() const;
  4610. void Remove();
  4611. void RemoveAllChildren();
  4612. void RemoveAllItems();
  4613. void RemoveAllTags();
  4614. void RemoveAttributeAnimation(const String&);
  4615. void RemoveChild(UIElement, uint = 0);
  4616. void RemoveChild(uint);
  4617. void RemoveInstanceDefault();
  4618. void RemoveItem(UIElement);
  4619. void RemoveItem(uint);
  4620. void RemoveObjectAnimation();
  4621. bool RemoveTag(const String&);
  4622. void ResetDeepEnabled();
  4623. void ResetToDefault();
  4624. bool Save(File) const;
  4625. bool Save(VectorBuffer&) const;
  4626. bool SaveJSON(JSONValue&) const;
  4627. bool SaveXML(File, const String& = "\t");
  4628. bool SaveXML(VectorBuffer&, const String& = "\t");
  4629. bool SaveXML(XMLElement&) const;
  4630. IntVector2 ScreenToElement(const IntVector2&);
  4631. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4632. void SetAccelerator(int, int);
  4633. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4634. void SetAnimationTime(float);
  4635. bool SetAttribute(const String&, const Variant&);
  4636. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4637. void SetAttributeAnimationSpeed(const String&, float);
  4638. void SetAttributeAnimationTime(const String&, float);
  4639. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4640. void SetDeepEnabled(bool);
  4641. void SetDisabledOffset(int, int);
  4642. void SetEnabledRecursive(bool);
  4643. void SetFixedHeight(int);
  4644. void SetFixedSize(int, int);
  4645. void SetFixedWidth(int);
  4646. void SetFullImageRect();
  4647. void SetHoverOffset(int, int);
  4648. void SetInterceptNetworkUpdate(const String&, bool);
  4649. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4650. void SetMaxAnchor(float, float);
  4651. void SetMaxSize(int, int);
  4652. void SetMinAnchor(float, float);
  4653. void SetMinSize(int, int);
  4654. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4655. void SetPivot(float, float);
  4656. void SetPosition(int, int);
  4657. void SetPressedChildOffset(int, int);
  4658. void SetPressedOffset(int, int);
  4659. void SetRepeat(float, float);
  4660. void SetSize(int, int);
  4661. bool SetStyle(const String&, XMLFile = null);
  4662. bool SetStyle(const XMLElement&);
  4663. bool SetStyleAuto(XMLFile = null);
  4664. void UpdateLayout();
  4665. const Variant& GetVar(const StringHash&);
  4666. UIElement getPopup() const;
  4667. // Properties:
  4668. /* readonly */
  4669. int acceleratorKey;
  4670. /* readonly */
  4671. int acceleratorQualifiers;
  4672. bool animationEnabled;
  4673. /* readonly */
  4674. Array<Variant> attributeDefaults;
  4675. /* readonly */
  4676. Array<AttributeInfo> attributeInfos;
  4677. Array<Variant> attributes;
  4678. BlendMode blendMode;
  4679. IntRect border;
  4680. bool bringToBack;
  4681. bool bringToFront;
  4682. /* readonly */
  4683. String category;
  4684. /* readonly */
  4685. IntVector2 childOffset;
  4686. /* readonly */
  4687. Array<UIElement> children;
  4688. IntRect clipBorder;
  4689. bool clipChildren;
  4690. /* writeonly */
  4691. Color color;
  4692. /* readonly */
  4693. bool colorGradient;
  4694. Array<Color> colors;
  4695. /* readonly */
  4696. IntRect combinedScreenRect;
  4697. XMLFile defaultStyle;
  4698. /* readonly */
  4699. float derivedOpacity;
  4700. IntVector2 disabledOffset;
  4701. /* readonly */
  4702. uint dragButtonCombo;
  4703. /* readonly */
  4704. int dragButtonCount;
  4705. uint dragDropMode;
  4706. bool editable;
  4707. bool elementEventSender;
  4708. bool enableAnchor;
  4709. bool enabled;
  4710. /* readonly */
  4711. bool enabledSelf;
  4712. /* readonly */
  4713. bool fixedHeight;
  4714. /* readonly */
  4715. bool fixedSize;
  4716. /* readonly */
  4717. bool fixedWidth;
  4718. bool focus;
  4719. FocusMode focusMode;
  4720. int height;
  4721. HorizontalAlignment horizontalAlignment;
  4722. IntVector2 hoverOffset;
  4723. /* readonly */
  4724. bool hovering;
  4725. IntRect imageBorder;
  4726. IntRect imageRect;
  4727. int indent;
  4728. int indentSpacing;
  4729. /* readonly */
  4730. int indentWidth;
  4731. bool internal;
  4732. /* readonly */
  4733. Array<UIElement> items;
  4734. IntRect layoutBorder;
  4735. Vector2 layoutFlexScale;
  4736. LayoutMode layoutMode;
  4737. int layoutSpacing;
  4738. /* readonly */
  4739. ListView listView;
  4740. Vector2 maxAnchor;
  4741. int maxHeight;
  4742. IntVector2 maxOffset;
  4743. IntVector2 maxSize;
  4744. int maxWidth;
  4745. Vector2 minAnchor;
  4746. int minHeight;
  4747. IntVector2 minOffset;
  4748. IntVector2 minSize;
  4749. int minWidth;
  4750. String name;
  4751. /* readonly */
  4752. uint numAllChildren;
  4753. /* readonly */
  4754. uint numAttributes;
  4755. /* readonly */
  4756. uint numChildren;
  4757. /* readonly */
  4758. uint numItems;
  4759. ObjectAnimation objectAnimation;
  4760. float opacity;
  4761. UIElement parent;
  4762. Vector2 pivot;
  4763. /* readonly */
  4764. UIElement placeholder;
  4765. String placeholderText;
  4766. IntVector2 position;
  4767. /* readonly */
  4768. bool pressed;
  4769. IntVector2 pressedChildOffset;
  4770. IntVector2 pressedOffset;
  4771. int priority;
  4772. /* readonly */
  4773. int refs;
  4774. float repeatDelay;
  4775. float repeatRate;
  4776. bool resizePopup;
  4777. /* readonly */
  4778. UIElement root;
  4779. /* readonly */
  4780. IntVector2 screenPosition;
  4781. bool selected;
  4782. /* readonly */
  4783. UIElement selectedItem;
  4784. uint selection;
  4785. bool showPopup;
  4786. IntVector2 size;
  4787. bool sortChildren;
  4788. String style;
  4789. /* readonly */
  4790. Array<String> tags;
  4791. bool temporary;
  4792. Texture texture;
  4793. bool tiled;
  4794. TraversalMode traversalMode;
  4795. /* readonly */
  4796. StringHash type;
  4797. /* readonly */
  4798. String typeName;
  4799. bool useDerivedOpacity;
  4800. /* readonly */
  4801. VariantMap vars;
  4802. VerticalAlignment verticalAlignment;
  4803. bool visible;
  4804. /* readonly */
  4805. bool visibleEffective;
  4806. /* readonly */
  4807. int weakRefs;
  4808. int width;
  4809. };
  4810. class DynamicNavigationMesh
  4811. {
  4812. public:
  4813. // Methods:
  4814. bool AddTile(const VectorBuffer&) const;
  4815. bool Allocate(const BoundingBox&, uint);
  4816. void ApplyAttributes();
  4817. bool Build();
  4818. bool Build(const BoundingBox&);
  4819. bool Build(const IntVector2&, const IntVector2&);
  4820. void DrawDebugGeometry(DebugRenderer, bool);
  4821. void DrawDebugGeometry(bool);
  4822. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4823. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4824. float GetAreaCost(uint) const;
  4825. Variant GetAttribute(const String&) const;
  4826. ValueAnimation GetAttributeAnimation(const String&) const;
  4827. float GetAttributeAnimationSpeed(const String&) const;
  4828. float GetAttributeAnimationTime(const String&) const;
  4829. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4830. Variant GetAttributeDefault(const String&) const;
  4831. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4832. bool GetInterceptNetworkUpdate(const String&) const;
  4833. Vector3 GetRandomPoint();
  4834. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4835. BoundingBox GetTileBoudningBox(const IntVector2&) const;
  4836. VectorBuffer GetTileData(const IntVector2&) const;
  4837. IntVector2 GetTileIndex(const Vector3&) const;
  4838. bool HasSubscribedToEvent(Object, const String&);
  4839. bool HasSubscribedToEvent(const String&);
  4840. bool HasTile(const IntVector2&) const;
  4841. bool Load(File);
  4842. bool Load(VectorBuffer&);
  4843. bool LoadJSON(const JSONValue&);
  4844. bool LoadXML(const XMLElement&);
  4845. void MarkNetworkUpdate() const;
  4846. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4847. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4848. void Remove();
  4849. void RemoveAllTiles();
  4850. void RemoveAttributeAnimation(const String&);
  4851. void RemoveInstanceDefault();
  4852. void RemoveObjectAnimation();
  4853. void RemoveTile(const IntVector2&);
  4854. void ResetToDefault();
  4855. bool Save(File) const;
  4856. bool Save(VectorBuffer&) const;
  4857. bool SaveJSON(JSONValue&) const;
  4858. bool SaveXML(XMLElement&) const;
  4859. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4860. void SetAnimationTime(float);
  4861. void SetAreaCost(uint, float);
  4862. bool SetAttribute(const String&, const Variant&);
  4863. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4864. void SetAttributeAnimationSpeed(const String&, float);
  4865. void SetAttributeAnimationTime(const String&, float);
  4866. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4867. void SetInterceptNetworkUpdate(const String&, bool);
  4868. // Properties:
  4869. float agentHeight;
  4870. float agentMaxClimb;
  4871. float agentMaxSlope;
  4872. float agentRadius;
  4873. bool animationEnabled;
  4874. /* readonly */
  4875. Array<Variant> attributeDefaults;
  4876. /* readonly */
  4877. Array<AttributeInfo> attributeInfos;
  4878. Array<Variant> attributes;
  4879. /* readonly */
  4880. BoundingBox boundingBox;
  4881. /* readonly */
  4882. String category;
  4883. float cellHeight;
  4884. float cellSize;
  4885. float detailSampleDistance;
  4886. float detailSampleMaxError;
  4887. bool drawNavAreas;
  4888. bool drawObstacles;
  4889. bool drawOffMeshConnections;
  4890. float edgeMaxError;
  4891. float edgeMaxLength;
  4892. bool enabled;
  4893. /* readonly */
  4894. bool enabledEffective;
  4895. /* readonly */
  4896. uint id;
  4897. /* readonly */
  4898. bool initialized;
  4899. bool maxLayers;
  4900. uint maxObstacles;
  4901. /* readonly */
  4902. Node node;
  4903. /* readonly */
  4904. uint numAttributes;
  4905. /* readonly */
  4906. IntVector2 numTiles;
  4907. ObjectAnimation objectAnimation;
  4908. Vector3 padding;
  4909. NavmeshPartitionType partitionType;
  4910. /* readonly */
  4911. int refs;
  4912. float regionMergeSize;
  4913. float regionMinSize;
  4914. /* readonly */
  4915. bool replicated;
  4916. bool temporary;
  4917. int tileSize;
  4918. /* readonly */
  4919. StringHash type;
  4920. /* readonly */
  4921. String typeName;
  4922. /* readonly */
  4923. int weakRefs;
  4924. /* readonly */
  4925. BoundingBox worldBoundingBox;
  4926. };
  4927. class Engine
  4928. {
  4929. public:
  4930. // Methods:
  4931. Console CreateConsole();
  4932. DebugHud CreateDebugHud();
  4933. void DumpMemory();
  4934. void DumpProfiler();
  4935. void DumpResources(bool = false);
  4936. void Exit();
  4937. bool HasSubscribedToEvent(Object, const String&);
  4938. bool HasSubscribedToEvent(const String&);
  4939. void RunFrame();
  4940. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4941. // Properties:
  4942. bool autoExit;
  4943. /* readonly */
  4944. String category;
  4945. /* readonly */
  4946. bool exiting;
  4947. /* readonly */
  4948. bool headless;
  4949. /* readonly */
  4950. bool initialized;
  4951. int maxFps;
  4952. int maxInactiveFps;
  4953. int minFps;
  4954. bool pauseMinimized;
  4955. /* readonly */
  4956. int refs;
  4957. int timeStepSmoothing;
  4958. /* readonly */
  4959. StringHash type;
  4960. /* readonly */
  4961. String typeName;
  4962. /* readonly */
  4963. int weakRefs;
  4964. };
  4965. class File
  4966. {
  4967. public:
  4968. File();
  4969. File(const String&in, FileMode mode = FILE_READ);
  4970. // Methods:
  4971. void Close();
  4972. bool HasSubscribedToEvent(Object, const String&);
  4973. bool HasSubscribedToEvent(const String&);
  4974. bool Open(const String&, FileMode = FILE_READ);
  4975. Array<uint8> Read(uint);
  4976. bool ReadBool();
  4977. BoundingBox ReadBoundingBox();
  4978. int8 ReadByte();
  4979. Color ReadColor();
  4980. double ReadDouble();
  4981. String ReadFileID();
  4982. float ReadFloat();
  4983. int ReadInt();
  4984. int64 ReadInt64();
  4985. IntRect ReadIntRect();
  4986. IntVector2 ReadIntVector2();
  4987. String ReadLine();
  4988. Matrix3 ReadMatrix3();
  4989. Matrix3x4 ReadMatrix3x4();
  4990. Matrix4 ReadMatrix4();
  4991. uint ReadNetID();
  4992. Quaternion ReadPackedQuaternion();
  4993. Vector3 ReadPackedVector3(float);
  4994. Quaternion ReadQuaternion();
  4995. int16 ReadShort();
  4996. String ReadString();
  4997. StringHash ReadStringHash();
  4998. uint8 ReadUByte();
  4999. uint ReadUInt();
  5000. uint64 ReadUInt64();
  5001. uint16 ReadUShort();
  5002. uint ReadVLE();
  5003. Variant ReadVariant();
  5004. VariantMap ReadVariantMap();
  5005. Vector2 ReadVector2();
  5006. Vector3 ReadVector3();
  5007. Vector4 ReadVector4();
  5008. VectorBuffer ReadVectorBuffer(uint);
  5009. uint Seek(uint);
  5010. uint SeekRelative(int);
  5011. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5012. uint Tell() const;
  5013. uint Write(Array<uint8>);
  5014. bool WriteBool(bool);
  5015. bool WriteBoundingBox(const BoundingBox&);
  5016. bool WriteByte(int8);
  5017. bool WriteColor(const Color&);
  5018. bool WriteDouble(double);
  5019. bool WriteFileID(const String&);
  5020. bool WriteFloat(float);
  5021. bool WriteInt(int);
  5022. bool WriteInt64(int64);
  5023. bool WriteIntRect(const IntRect&);
  5024. bool WriteIntVector2(const IntVector2&);
  5025. bool WriteLine(const String&);
  5026. bool WriteMatrix3(const Matrix3&);
  5027. bool WriteMatrix3x4(const Matrix3x4&);
  5028. bool WriteMatrix4(const Matrix4&);
  5029. bool WriteNetID(uint);
  5030. bool WritePackedQuaternion(const Quaternion&);
  5031. bool WritePackedVector3(const Vector3&, float);
  5032. bool WriteQuaternion(const Quaternion&);
  5033. bool WriteShort(int16);
  5034. bool WriteString(const String&);
  5035. bool WriteStringHash(const StringHash&);
  5036. bool WriteUByte(uint8);
  5037. bool WriteUInt(uint);
  5038. bool WriteUInt64(uint64);
  5039. bool WriteUShort(uint16);
  5040. bool WriteVLE(uint);
  5041. bool WriteVariant(const Variant&);
  5042. bool WriteVariantMap(const VariantMap&);
  5043. bool WriteVector2(const Vector2&);
  5044. bool WriteVector3(const Vector3&);
  5045. bool WriteVector4(const Vector4&);
  5046. bool WriteVectorBuffer(const VectorBuffer&);
  5047. // Properties:
  5048. /* readonly */
  5049. String category;
  5050. /* readonly */
  5051. uint checksum;
  5052. /* readonly */
  5053. bool eof;
  5054. /* readonly */
  5055. FileMode mode;
  5056. /* readonly */
  5057. String name;
  5058. /* readonly */
  5059. bool open;
  5060. /* readonly */
  5061. bool packaged;
  5062. /* readonly */
  5063. uint position;
  5064. /* readonly */
  5065. int refs;
  5066. /* readonly */
  5067. uint size;
  5068. /* readonly */
  5069. StringHash type;
  5070. /* readonly */
  5071. String typeName;
  5072. /* readonly */
  5073. int weakRefs;
  5074. };
  5075. class FileSelector
  5076. {
  5077. public:
  5078. FileSelector();
  5079. // Methods:
  5080. bool HasSubscribedToEvent(Object, const String&);
  5081. bool HasSubscribedToEvent(const String&);
  5082. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5083. void SetButtonTexts(const String&, const String&);
  5084. void SetFilters(Array<String>, uint);
  5085. void UpdateElements();
  5086. // Properties:
  5087. /* readonly */
  5088. Button cancelButton;
  5089. /* readonly */
  5090. String category;
  5091. XMLFile defaultStyle;
  5092. bool directoryMode;
  5093. /* readonly */
  5094. ListView fileList;
  5095. String fileName;
  5096. /* readonly */
  5097. LineEdit fileNameEdit;
  5098. /* readonly */
  5099. String filter;
  5100. /* readonly */
  5101. uint filterIndex;
  5102. /* readonly */
  5103. DropDownList filterList;
  5104. /* readonly */
  5105. Button okButton;
  5106. String path;
  5107. /* readonly */
  5108. LineEdit pathEdit;
  5109. /* readonly */
  5110. int refs;
  5111. String title;
  5112. /* readonly */
  5113. Text titleText;
  5114. /* readonly */
  5115. StringHash type;
  5116. /* readonly */
  5117. String typeName;
  5118. /* readonly */
  5119. int weakRefs;
  5120. /* readonly */
  5121. Window window;
  5122. };
  5123. class FileSystem
  5124. {
  5125. public:
  5126. // Methods:
  5127. bool Copy(const String&, const String&);
  5128. bool CreateDir(const String&);
  5129. bool Delete(const String&);
  5130. bool DirExists(const String&) const;
  5131. bool FileExists(const String&) const;
  5132. String GetAppPreferencesDir(const String&, const String&) const;
  5133. uint GetLastModifiedTime(const String&) const;
  5134. bool HasSubscribedToEvent(Object, const String&);
  5135. bool HasSubscribedToEvent(const String&);
  5136. bool Rename(const String&, const String&);
  5137. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  5138. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5139. bool SetLastModifiedTime(const String&, uint);
  5140. int SystemCommand(const String&, bool = false);
  5141. uint SystemCommandAsync(const String&);
  5142. bool SystemOpen(const String&, const String&);
  5143. int SystemRun(const String&, Array<String>);
  5144. uint SystemRunAsync(const String&, Array<String>);
  5145. // Properties:
  5146. /* readonly */
  5147. String category;
  5148. String currentDir;
  5149. bool executeConsoleCommands;
  5150. /* readonly */
  5151. String programDir;
  5152. /* readonly */
  5153. int refs;
  5154. /* readonly */
  5155. String temporaryDir;
  5156. /* readonly */
  5157. StringHash type;
  5158. /* readonly */
  5159. String typeName;
  5160. /* readonly */
  5161. String userDocumentsDir;
  5162. /* readonly */
  5163. int weakRefs;
  5164. };
  5165. class FocusParameters
  5166. {
  5167. public:
  5168. FocusParameters();
  5169. FocusParameters(const FocusParameters&in);
  5170. FocusParameters(bool, bool, bool, float, float);
  5171. // Properties:
  5172. bool autoSize;
  5173. bool focus;
  5174. float minView;
  5175. bool nonUniform;
  5176. float quantize;
  5177. };
  5178. class Font
  5179. {
  5180. public:
  5181. Font();
  5182. Font(const String&in);
  5183. // Methods:
  5184. IntVector2 GetTotalGlyphOffset(float) const;
  5185. bool HasSubscribedToEvent(Object, const String&);
  5186. bool HasSubscribedToEvent(const String&);
  5187. bool Load(File);
  5188. bool Load(VectorBuffer&);
  5189. bool Load(const String&);
  5190. bool Save(File) const;
  5191. bool Save(VectorBuffer&) const;
  5192. bool Save(const String&) const;
  5193. bool SaveXML(File, int, bool = false, const String& = "\t");
  5194. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  5195. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  5196. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5197. // Properties:
  5198. IntVector2 absoluteGlyphOffset;
  5199. /* readonly */
  5200. String category;
  5201. /* readonly */
  5202. FontType fontType;
  5203. /* readonly */
  5204. uint memoryUse;
  5205. String name;
  5206. /* readonly */
  5207. int refs;
  5208. Vector2 scaledGlyphOffset;
  5209. /* readonly */
  5210. StringHash type;
  5211. /* readonly */
  5212. String typeName;
  5213. /* readonly */
  5214. uint useTimer;
  5215. /* readonly */
  5216. int weakRefs;
  5217. };
  5218. class Frustum
  5219. {
  5220. public:
  5221. ~Frustum();
  5222. Frustum();
  5223. Frustum(const Frustum&in);
  5224. // Methods:
  5225. void Define(const BoundingBox&, const Matrix3x4&);
  5226. void Define(const Matrix4&);
  5227. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  5228. void Define(float, float, float, float, float, const Matrix3x4&);
  5229. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  5230. void DefineSplit(const Matrix4&, float, float);
  5231. float Distance(const Vector3&) const;
  5232. Intersection IsInside(const BoundingBox&);
  5233. Intersection IsInside(const Sphere&);
  5234. Intersection IsInside(const Vector3&);
  5235. Intersection IsInsideFast(const BoundingBox&) const;
  5236. Intersection IsInsideFast(const Sphere&) const;
  5237. void Transform(const Matrix3&);
  5238. void Transform(const Matrix3x4&);
  5239. Frustum Transformed(const Matrix3&) const;
  5240. Frustum Transformed(const Matrix3x4&) const;
  5241. // Properties:
  5242. /* readonly */
  5243. Array<Vector3> vertices;
  5244. };
  5245. class Geometry
  5246. {
  5247. public:
  5248. Geometry();
  5249. // Methods:
  5250. bool HasSubscribedToEvent(Object, const String&);
  5251. bool HasSubscribedToEvent(const String&);
  5252. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5253. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  5254. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  5255. void SetIndexBuffer(IndexBuffer);
  5256. bool SetVertexBuffer(uint, VertexBuffer);
  5257. // Properties:
  5258. /* readonly */
  5259. String category;
  5260. /* readonly */
  5261. bool empty;
  5262. IndexBuffer indexBuffer;
  5263. /* readonly */
  5264. uint indexCount;
  5265. /* readonly */
  5266. uint indexStart;
  5267. float lodDistance;
  5268. uint numVertexBuffers;
  5269. /* readonly */
  5270. PrimitiveType primitiveType;
  5271. /* readonly */
  5272. int refs;
  5273. /* readonly */
  5274. StringHash type;
  5275. /* readonly */
  5276. String typeName;
  5277. /* readonly */
  5278. Array<VertexBuffer> vertexBuffers;
  5279. /* readonly */
  5280. uint vertexCount;
  5281. /* readonly */
  5282. uint vertexStart;
  5283. /* readonly */
  5284. int weakRefs;
  5285. };
  5286. class Graphics
  5287. {
  5288. public:
  5289. // Methods:
  5290. void BeginDumpShaders(const String&);
  5291. void Close();
  5292. void EndDumpShaders();
  5293. bool HasSubscribedToEvent(Object, const String&);
  5294. bool HasSubscribedToEvent(const String&);
  5295. void Maximize();
  5296. void Minimize();
  5297. void PrecacheShaders(File);
  5298. void PrecacheShaders(VectorBuffer&);
  5299. void Raise();
  5300. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5301. bool SetMode(int, int);
  5302. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  5303. void SetWindowPosition(int, int);
  5304. bool TakeScreenShot(Image);
  5305. bool ToggleFullscreen();
  5306. // Properties:
  5307. /* readonly */
  5308. String apiName;
  5309. /* readonly */
  5310. bool borderless;
  5311. /* readonly */
  5312. String category;
  5313. /* readonly */
  5314. int currentMonitor;
  5315. /* readonly */
  5316. bool deferredSupport;
  5317. /* readonly */
  5318. Array<IntVector2> desktopResolution;
  5319. /* readonly */
  5320. bool deviceLost;
  5321. /* readonly */
  5322. Array<Vector3> displayDPI;
  5323. bool dither;
  5324. bool flushGPU;
  5325. /* readonly */
  5326. bool fullscreen;
  5327. /* readonly */
  5328. bool hardwareShadowSupport;
  5329. /* readonly */
  5330. int height;
  5331. /* readonly */
  5332. bool initialized;
  5333. /* readonly */
  5334. bool instancingSupport;
  5335. /* readonly */
  5336. bool lightPrepassSupport;
  5337. /* readonly */
  5338. bool maximized;
  5339. /* readonly */
  5340. int monitorCount;
  5341. /* readonly */
  5342. int multiSample;
  5343. /* readonly */
  5344. Array<int> multiSampleLevels;
  5345. /* readonly */
  5346. uint numBatches;
  5347. /* readonly */
  5348. uint numPrimitives;
  5349. String orientations;
  5350. /* readonly */
  5351. bool readableDepthSupport;
  5352. /* readonly */
  5353. int refs;
  5354. /* readonly */
  5355. bool resizable;
  5356. /* readonly */
  5357. Array<Array<IntVector3>> resolutions;
  5358. bool sRGB;
  5359. /* readonly */
  5360. bool sRGBSupport;
  5361. /* readonly */
  5362. bool sRGBWriteSupport;
  5363. String shaderCacheDir;
  5364. /* readonly */
  5365. IntVector2 size;
  5366. /* readonly */
  5367. bool tripleBuffer;
  5368. /* readonly */
  5369. StringHash type;
  5370. /* readonly */
  5371. String typeName;
  5372. /* readonly */
  5373. bool vsync;
  5374. /* readonly */
  5375. int weakRefs;
  5376. /* readonly */
  5377. int width;
  5378. /* writeonly */
  5379. Image windowIcon;
  5380. IntVector2 windowPosition;
  5381. String windowTitle;
  5382. };
  5383. class HttpRequest
  5384. {
  5385. public:
  5386. // Methods:
  5387. Array<uint8> Read(uint);
  5388. bool ReadBool();
  5389. BoundingBox ReadBoundingBox();
  5390. int8 ReadByte();
  5391. Color ReadColor();
  5392. double ReadDouble();
  5393. String ReadFileID();
  5394. float ReadFloat();
  5395. int ReadInt();
  5396. int64 ReadInt64();
  5397. IntRect ReadIntRect();
  5398. IntVector2 ReadIntVector2();
  5399. String ReadLine();
  5400. Matrix3 ReadMatrix3();
  5401. Matrix3x4 ReadMatrix3x4();
  5402. Matrix4 ReadMatrix4();
  5403. uint ReadNetID();
  5404. Quaternion ReadPackedQuaternion();
  5405. Vector3 ReadPackedVector3(float);
  5406. Quaternion ReadQuaternion();
  5407. int16 ReadShort();
  5408. String ReadString();
  5409. StringHash ReadStringHash();
  5410. uint8 ReadUByte();
  5411. uint ReadUInt();
  5412. uint64 ReadUInt64();
  5413. uint16 ReadUShort();
  5414. uint ReadVLE();
  5415. Variant ReadVariant();
  5416. VariantMap ReadVariantMap();
  5417. Vector2 ReadVector2();
  5418. Vector3 ReadVector3();
  5419. Vector4 ReadVector4();
  5420. VectorBuffer ReadVectorBuffer(uint);
  5421. uint Seek(uint);
  5422. uint SeekRelative(int);
  5423. uint Tell() const;
  5424. // Properties:
  5425. /* readonly */
  5426. uint availableSize;
  5427. /* readonly */
  5428. uint checksum;
  5429. /* readonly */
  5430. bool eof;
  5431. /* readonly */
  5432. String error;
  5433. /* readonly */
  5434. String name;
  5435. /* readonly */
  5436. bool open;
  5437. /* readonly */
  5438. uint position;
  5439. /* readonly */
  5440. int refs;
  5441. /* readonly */
  5442. uint size;
  5443. /* readonly */
  5444. HttpRequestState state;
  5445. /* readonly */
  5446. String url;
  5447. /* readonly */
  5448. String verb;
  5449. /* readonly */
  5450. int weakRefs;
  5451. };
  5452. class IKEffector
  5453. {
  5454. public:
  5455. // Methods:
  5456. void ApplyAttributes();
  5457. void DrawDebugGeometry(DebugRenderer, bool);
  5458. void DrawDebugGeometry(bool);
  5459. Variant GetAttribute(const String&) const;
  5460. ValueAnimation GetAttributeAnimation(const String&) const;
  5461. float GetAttributeAnimationSpeed(const String&) const;
  5462. float GetAttributeAnimationTime(const String&) const;
  5463. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5464. Variant GetAttributeDefault(const String&) const;
  5465. bool GetInterceptNetworkUpdate(const String&) const;
  5466. bool HasSubscribedToEvent(Object, const String&);
  5467. bool HasSubscribedToEvent(const String&);
  5468. bool Load(File);
  5469. bool Load(VectorBuffer&);
  5470. bool LoadJSON(const JSONValue&);
  5471. bool LoadXML(const XMLElement&);
  5472. void MarkNetworkUpdate() const;
  5473. void Remove();
  5474. void RemoveAttributeAnimation(const String&);
  5475. void RemoveInstanceDefault();
  5476. void RemoveObjectAnimation();
  5477. void ResetToDefault();
  5478. bool Save(File) const;
  5479. bool Save(VectorBuffer&) const;
  5480. bool SaveJSON(JSONValue&) const;
  5481. bool SaveXML(XMLElement&) const;
  5482. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5483. void SetAnimationTime(float);
  5484. bool SetAttribute(const String&, const Variant&);
  5485. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5486. void SetAttributeAnimationSpeed(const String&, float);
  5487. void SetAttributeAnimationTime(const String&, float);
  5488. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5489. void SetInterceptNetworkUpdate(const String&, bool);
  5490. // Properties:
  5491. bool animationEnabled;
  5492. /* readonly */
  5493. Array<Variant> attributeDefaults;
  5494. /* readonly */
  5495. Array<AttributeInfo> attributeInfos;
  5496. Array<Variant> attributes;
  5497. /* readonly */
  5498. String category;
  5499. uint chainLength;
  5500. bool enabled;
  5501. /* readonly */
  5502. bool enabledEffective;
  5503. /* readonly */
  5504. uint id;
  5505. /* readonly */
  5506. Node node;
  5507. /* readonly */
  5508. uint numAttributes;
  5509. ObjectAnimation objectAnimation;
  5510. /* readonly */
  5511. int refs;
  5512. /* readonly */
  5513. bool replicated;
  5514. float rotationDecay;
  5515. float rotationWeight;
  5516. String targetName;
  5517. Node targetNode;
  5518. Vector3 targetPosition;
  5519. Quaternion targetRotation;
  5520. bool temporary;
  5521. /* readonly */
  5522. StringHash type;
  5523. /* readonly */
  5524. String typeName;
  5525. /* readonly */
  5526. int weakRefs;
  5527. float weight;
  5528. };
  5529. class IKSolver
  5530. {
  5531. public:
  5532. // Methods:
  5533. void ApplyActivePoseToScene();
  5534. void ApplyAttributes();
  5535. void ApplyOriginalPoseToActivePose();
  5536. void ApplyOriginalPoseToScene();
  5537. void ApplySceneToActivePose();
  5538. void ApplySceneToInitialPose();
  5539. void CalculateJointRotations();
  5540. void DrawDebugGeometry(DebugRenderer, bool);
  5541. void DrawDebugGeometry(bool);
  5542. Variant GetAttribute(const String&) const;
  5543. ValueAnimation GetAttributeAnimation(const String&) const;
  5544. float GetAttributeAnimationSpeed(const String&) const;
  5545. float GetAttributeAnimationTime(const String&) const;
  5546. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5547. Variant GetAttributeDefault(const String&) const;
  5548. bool GetInterceptNetworkUpdate(const String&) const;
  5549. bool HasSubscribedToEvent(Object, const String&);
  5550. bool HasSubscribedToEvent(const String&);
  5551. bool Load(File);
  5552. bool Load(VectorBuffer&);
  5553. bool LoadJSON(const JSONValue&);
  5554. bool LoadXML(const XMLElement&);
  5555. void MarkNetworkUpdate() const;
  5556. void RebuildChainTrees();
  5557. void RecalculateSegmentLengths();
  5558. void Remove();
  5559. void RemoveAttributeAnimation(const String&);
  5560. void RemoveInstanceDefault();
  5561. void RemoveObjectAnimation();
  5562. void ResetToDefault();
  5563. bool Save(File) const;
  5564. bool Save(VectorBuffer&) const;
  5565. bool SaveJSON(JSONValue&) const;
  5566. bool SaveXML(XMLElement&) const;
  5567. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5568. void SetAnimationTime(float);
  5569. bool SetAttribute(const String&, const Variant&);
  5570. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5571. void SetAttributeAnimationSpeed(const String&, float);
  5572. void SetAttributeAnimationTime(const String&, float);
  5573. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5574. void SetInterceptNetworkUpdate(const String&, bool);
  5575. void Solve();
  5576. // Properties:
  5577. bool AUTO_SOLVE;
  5578. bool CONSTRAINTS;
  5579. bool JOINT_ROTATIONS;
  5580. bool TARGET_ROTATIONS;
  5581. bool UPDATE_ACTIVE_POSE;
  5582. bool UPDATE_ORIGINAL_POSE;
  5583. bool USE_ORIGINAL_POSE;
  5584. IKAlgorithm algorithm;
  5585. bool animationEnabled;
  5586. /* readonly */
  5587. Array<Variant> attributeDefaults;
  5588. /* readonly */
  5589. Array<AttributeInfo> attributeInfos;
  5590. Array<Variant> attributes;
  5591. /* readonly */
  5592. String category;
  5593. bool enabled;
  5594. /* readonly */
  5595. bool enabledEffective;
  5596. /* readonly */
  5597. uint id;
  5598. uint maximumIterations;
  5599. /* readonly */
  5600. Node node;
  5601. /* readonly */
  5602. uint numAttributes;
  5603. ObjectAnimation objectAnimation;
  5604. /* readonly */
  5605. int refs;
  5606. /* readonly */
  5607. bool replicated;
  5608. bool temporary;
  5609. float tolerance;
  5610. /* readonly */
  5611. StringHash type;
  5612. /* readonly */
  5613. String typeName;
  5614. /* readonly */
  5615. int weakRefs;
  5616. };
  5617. class Image
  5618. {
  5619. public:
  5620. Image();
  5621. Image(const String&in);
  5622. // Methods:
  5623. void Clear(const Color&);
  5624. void ClearInt(uint);
  5625. bool FlipHorizontal();
  5626. bool FlipVertical();
  5627. Color GetPixel(int, int) const;
  5628. Color GetPixel(int, int, int) const;
  5629. Color GetPixelBilinear(float, float) const;
  5630. uint GetPixelInt(int, int) const;
  5631. uint GetPixelInt(int, int, int) const;
  5632. Color GetPixelTrilinear(float, float, float) const;
  5633. Image GetSubimage(const IntRect&) const;
  5634. bool HasSubscribedToEvent(Object, const String&);
  5635. bool HasSubscribedToEvent(const String&);
  5636. bool Load(File);
  5637. bool Load(VectorBuffer&);
  5638. bool Load(const String&);
  5639. bool LoadColorLUT(File);
  5640. bool LoadColorLUT(VectorBuffer&);
  5641. bool Resize(int, int);
  5642. bool Save(File) const;
  5643. bool Save(VectorBuffer&) const;
  5644. bool Save(const String&) const;
  5645. bool SaveBMP(const String&) const;
  5646. bool SaveDDS(const String&) const;
  5647. bool SaveJPG(const String&, int) const;
  5648. bool SavePNG(const String&) const;
  5649. bool SaveTGA(const String&) const;
  5650. bool SaveWEBP(const String&, float = 0.0f) const;
  5651. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5652. void SetPixel(int, int, const Color&);
  5653. void SetPixel(int, int, int, const Color&);
  5654. void SetPixelInt(int, int, int, uint);
  5655. void SetPixelInt(int, int, uint);
  5656. bool SetSize(int, int, int, uint);
  5657. bool SetSize(int, int, uint);
  5658. bool SetSubimage(const Image, const IntRect&) const;
  5659. // Properties:
  5660. /* readonly */
  5661. bool array;
  5662. /* readonly */
  5663. String category;
  5664. /* readonly */
  5665. uint components;
  5666. /* readonly */
  5667. bool compressed;
  5668. /* readonly */
  5669. CompressedFormat compressedFormat;
  5670. /* readonly */
  5671. bool cubemap;
  5672. /* readonly */
  5673. int depth;
  5674. /* readonly */
  5675. bool hasAlphaChannel;
  5676. /* readonly */
  5677. int height;
  5678. /* readonly */
  5679. uint memoryUse;
  5680. String name;
  5681. /* readonly */
  5682. uint numCompressedLevels;
  5683. /* readonly */
  5684. int refs;
  5685. /* readonly */
  5686. bool sRGB;
  5687. /* readonly */
  5688. StringHash type;
  5689. /* readonly */
  5690. String typeName;
  5691. /* readonly */
  5692. uint useTimer;
  5693. /* readonly */
  5694. int weakRefs;
  5695. /* readonly */
  5696. int width;
  5697. };
  5698. class IndexBuffer
  5699. {
  5700. public:
  5701. IndexBuffer();
  5702. // Methods:
  5703. VectorBuffer GetData();
  5704. bool HasSubscribedToEvent(Object, const String&);
  5705. bool HasSubscribedToEvent(const String&);
  5706. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5707. bool SetData(VectorBuffer&);
  5708. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5709. void SetSize(uint, bool, bool = false);
  5710. // Properties:
  5711. /* readonly */
  5712. String category;
  5713. /* readonly */
  5714. bool dynamic;
  5715. /* readonly */
  5716. uint indexCount;
  5717. /* readonly */
  5718. uint indexSize;
  5719. /* readonly */
  5720. int refs;
  5721. bool shadowed;
  5722. /* readonly */
  5723. StringHash type;
  5724. /* readonly */
  5725. String typeName;
  5726. /* readonly */
  5727. int weakRefs;
  5728. };
  5729. class Input
  5730. {
  5731. public:
  5732. // Methods:
  5733. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5734. void CenterMousePosition();
  5735. int GetKeyFromName(const String&) const;
  5736. int GetKeyFromScancode(int) const;
  5737. String GetKeyName(int) const;
  5738. int GetScancodeFromKey(int) const;
  5739. int GetScancodeFromName(const String&) const;
  5740. String GetScancodeName(int) const;
  5741. bool HasSubscribedToEvent(Object, const String&);
  5742. bool HasSubscribedToEvent(const String&);
  5743. uint LoadGestures(File);
  5744. uint LoadGestures(VectorBuffer&);
  5745. bool RecordGesture();
  5746. void RemoveAllGestures();
  5747. bool RemoveGesture(uint);
  5748. bool RemoveScreenJoystick(int);
  5749. void ResetMouseGrabbed();
  5750. void ResetMouseMode();
  5751. void ResetMouseVisible();
  5752. bool SaveGesture(File, uint);
  5753. bool SaveGesture(VectorBuffer&, uint);
  5754. bool SaveGestures(File);
  5755. bool SaveGestures(VectorBuffer&);
  5756. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5757. void SetMouseGrabbed(bool, bool = false);
  5758. void SetMouseMode(MouseMode, bool = false);
  5759. void SetMouseVisible(bool, bool = false);
  5760. // Properties:
  5761. /* readonly */
  5762. String category;
  5763. /* readonly */
  5764. bool focus;
  5765. /* readonly */
  5766. Vector2 inputScale;
  5767. /* readonly */
  5768. Array<JoystickState> joysticks;
  5769. /* readonly */
  5770. Array<JoystickState> joysticksByIndex;
  5771. /* readonly */
  5772. Array<JoystickState> joysticksByName;
  5773. /* readonly */
  5774. Array<bool> keyDown;
  5775. /* readonly */
  5776. Array<bool> keyPress;
  5777. /* readonly */
  5778. bool minimized;
  5779. /* readonly */
  5780. Array<bool> mouseButtonDown;
  5781. /* readonly */
  5782. Array<bool> mouseButtonPress;
  5783. bool mouseGrabbed;
  5784. /* readonly */
  5785. bool mouseLocked;
  5786. MouseMode mouseMode;
  5787. /* readonly */
  5788. IntVector2 mouseMove;
  5789. /* readonly */
  5790. int mouseMoveWheel;
  5791. /* readonly */
  5792. int mouseMoveX;
  5793. /* readonly */
  5794. int mouseMoveY;
  5795. IntVector2 mousePosition;
  5796. bool mouseVisible;
  5797. /* readonly */
  5798. uint numJoysticks;
  5799. /* readonly */
  5800. uint numTouches;
  5801. /* readonly */
  5802. Array<bool> qualifierDown;
  5803. /* readonly */
  5804. Array<bool> qualifierPress;
  5805. /* readonly */
  5806. int qualifiers;
  5807. /* readonly */
  5808. int refs;
  5809. /* readonly */
  5810. Array<bool> scancodeDown;
  5811. /* readonly */
  5812. Array<bool> scancodePress;
  5813. Array<bool> screenJoystickVisible;
  5814. /* readonly */
  5815. bool screenKeyboardSupport;
  5816. bool screenKeyboardVisible;
  5817. bool toggleFullscreen;
  5818. bool touchEmulation;
  5819. /* readonly */
  5820. Array<TouchState> touches;
  5821. /* readonly */
  5822. StringHash type;
  5823. /* readonly */
  5824. String typeName;
  5825. /* readonly */
  5826. int weakRefs;
  5827. };
  5828. class IntRect
  5829. {
  5830. public:
  5831. IntRect();
  5832. IntRect(const IntRect&in);
  5833. IntRect(int, int, int, int);
  5834. IntRect(const IntVector2&in, const IntVector2&in);
  5835. IntRect(int[]&inout);
  5836. // Methods:
  5837. int Clip(const IntRect&);
  5838. Intersection IsInside(const IntVector2&) const;
  5839. int Merge(const IntRect&);
  5840. // Properties:
  5841. int bottom;
  5842. /* readonly */
  5843. Array<int> data;
  5844. /* readonly */
  5845. int height;
  5846. int left;
  5847. int right;
  5848. /* readonly */
  5849. IntVector2 size;
  5850. int top;
  5851. /* readonly */
  5852. int width;
  5853. };
  5854. class IntVector2
  5855. {
  5856. public:
  5857. IntVector2();
  5858. IntVector2(const IntVector2&in);
  5859. IntVector2(int, int);
  5860. IntVector2(int[]&inout);
  5861. // Methods:
  5862. float Length() const;
  5863. uint ToHash() const;
  5864. String ToString() const;
  5865. // Properties:
  5866. /* readonly */
  5867. Array<int> data;
  5868. int x;
  5869. int y;
  5870. // Constants:
  5871. static const IntVector2 DOWN;
  5872. static const IntVector2 LEFT;
  5873. static const IntVector2 ONE;
  5874. static const IntVector2 RIGHT;
  5875. static const IntVector2 UP;
  5876. static const IntVector2 ZERO;
  5877. };
  5878. class IntVector3
  5879. {
  5880. public:
  5881. IntVector3();
  5882. IntVector3(const IntVector3&in);
  5883. IntVector3(int, int, int);
  5884. IntVector3(int[]&inout);
  5885. // Methods:
  5886. float Length() const;
  5887. uint ToHash() const;
  5888. String ToString() const;
  5889. // Properties:
  5890. /* readonly */
  5891. Array<int> data;
  5892. int x;
  5893. int y;
  5894. int z;
  5895. // Constants:
  5896. static const IntVector3 BACK;
  5897. static const IntVector3 DOWN;
  5898. static const IntVector3 FORWARD;
  5899. static const IntVector3 LEFT;
  5900. static const IntVector3 ONE;
  5901. static const IntVector3 RIGHT;
  5902. static const IntVector3 UP;
  5903. static const IntVector3 ZERO;
  5904. };
  5905. class JSONFile
  5906. {
  5907. public:
  5908. JSONFile();
  5909. JSONFile(const String&in);
  5910. // Methods:
  5911. bool FromString(const String&);
  5912. JSONValue& GetRoot();
  5913. bool HasSubscribedToEvent(Object, const String&);
  5914. bool HasSubscribedToEvent(const String&);
  5915. bool Load(File);
  5916. bool Load(VectorBuffer&);
  5917. bool Load(const String&);
  5918. bool Save(File) const;
  5919. bool Save(File, const String&) const;
  5920. bool Save(VectorBuffer&) const;
  5921. bool Save(const String&) const;
  5922. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5923. // Properties:
  5924. /* readonly */
  5925. String category;
  5926. /* readonly */
  5927. uint memoryUse;
  5928. String name;
  5929. /* readonly */
  5930. int refs;
  5931. /* readonly */
  5932. JSONValue root;
  5933. /* readonly */
  5934. StringHash type;
  5935. /* readonly */
  5936. String typeName;
  5937. /* readonly */
  5938. uint useTimer;
  5939. /* readonly */
  5940. int weakRefs;
  5941. };
  5942. class JSONValue
  5943. {
  5944. public:
  5945. ~JSONValue();
  5946. JSONValue();
  5947. JSONValue(bool);
  5948. JSONValue(int);
  5949. JSONValue(uint);
  5950. JSONValue(float);
  5951. JSONValue(double);
  5952. JSONValue(const String&in);
  5953. JSONValue(const JSONValue&in);
  5954. // Methods:
  5955. void Clear();
  5956. bool Contains(const String&) const;
  5957. void Erase(const String&);
  5958. void Erase(uint, uint = 1);
  5959. bool GetBool() const;
  5960. double GetDouble() const;
  5961. float GetFloat() const;
  5962. int GetInt() const;
  5963. uint GetUInt() const;
  5964. Variant GetVariant() const;
  5965. VariantMap GetVariantMap() const;
  5966. void Insert(uint, const JSONValue&);
  5967. const JSONValue& Get(const String&) const;
  5968. void Pop();
  5969. void Push(const JSONValue&);
  5970. void Resize(uint);
  5971. void Set(const String&, const JSONValue&);
  5972. void SetVariant(const Variant&);
  5973. void SetVariantMap(const VariantMap&);
  5974. const String& GetString() const;
  5975. // Properties:
  5976. /* readonly */
  5977. bool isArray;
  5978. /* readonly */
  5979. bool isBool;
  5980. /* readonly */
  5981. bool isNull;
  5982. /* readonly */
  5983. bool isNumber;
  5984. /* readonly */
  5985. bool isObject;
  5986. /* readonly */
  5987. bool isString;
  5988. /* readonly */
  5989. Array<String> keys;
  5990. /* readonly */
  5991. JSONNumberType numberType;
  5992. /* readonly */
  5993. String numberTypeName;
  5994. /* readonly */
  5995. uint size;
  5996. /* readonly */
  5997. JSONValueType valueType;
  5998. /* readonly */
  5999. String valueTypeName;
  6000. /* readonly */
  6001. Array<JSONValue> values;
  6002. };
  6003. class JoystickState
  6004. {
  6005. public:
  6006. // Properties:
  6007. /* readonly */
  6008. Array<float> axisPosition;
  6009. /* readonly */
  6010. Array<bool> buttonDown;
  6011. /* readonly */
  6012. Array<bool> buttonPress;
  6013. /* readonly */
  6014. bool controller;
  6015. /* readonly */
  6016. Array<int> hatPosition;
  6017. int joystickID;
  6018. String name;
  6019. /* readonly */
  6020. uint numAxes;
  6021. /* readonly */
  6022. uint numButtons;
  6023. /* readonly */
  6024. uint numHats;
  6025. };
  6026. class Light
  6027. {
  6028. public:
  6029. // Methods:
  6030. void ApplyAttributes();
  6031. void DrawDebugGeometry(DebugRenderer, bool);
  6032. Variant GetAttribute(const String&) const;
  6033. ValueAnimation GetAttributeAnimation(const String&) const;
  6034. float GetAttributeAnimationSpeed(const String&) const;
  6035. float GetAttributeAnimationTime(const String&) const;
  6036. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6037. Variant GetAttributeDefault(const String&) const;
  6038. bool GetInterceptNetworkUpdate(const String&) const;
  6039. bool HasSubscribedToEvent(Object, const String&);
  6040. bool HasSubscribedToEvent(const String&);
  6041. bool IsInView(Camera) const;
  6042. bool Load(File);
  6043. bool Load(VectorBuffer&);
  6044. bool LoadJSON(const JSONValue&);
  6045. bool LoadXML(const XMLElement&);
  6046. void MarkNetworkUpdate() const;
  6047. void Remove();
  6048. void RemoveAttributeAnimation(const String&);
  6049. void RemoveInstanceDefault();
  6050. void RemoveObjectAnimation();
  6051. void ResetToDefault();
  6052. bool Save(File) const;
  6053. bool Save(VectorBuffer&) const;
  6054. bool SaveJSON(JSONValue&) const;
  6055. bool SaveXML(XMLElement&) const;
  6056. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6057. void SetAnimationTime(float);
  6058. bool SetAttribute(const String&, const Variant&);
  6059. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6060. void SetAttributeAnimationSpeed(const String&, float);
  6061. void SetAttributeAnimationTime(const String&, float);
  6062. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6063. void SetInterceptNetworkUpdate(const String&, bool);
  6064. // Properties:
  6065. bool animationEnabled;
  6066. float aspectRatio;
  6067. /* readonly */
  6068. Array<Variant> attributeDefaults;
  6069. /* readonly */
  6070. Array<AttributeInfo> attributeInfos;
  6071. Array<Variant> attributes;
  6072. /* readonly */
  6073. BoundingBox boundingBox;
  6074. float brightness;
  6075. bool castShadows;
  6076. /* readonly */
  6077. String category;
  6078. Color color;
  6079. /* readonly */
  6080. Color colorFromTemperature;
  6081. float drawDistance;
  6082. /* readonly */
  6083. Color effectiveColor;
  6084. /* readonly */
  6085. float effectiveSpecularIntensity;
  6086. bool enabled;
  6087. /* readonly */
  6088. bool enabledEffective;
  6089. float fadeDistance;
  6090. float fov;
  6091. /* readonly */
  6092. Frustum frustum;
  6093. /* readonly */
  6094. uint id;
  6095. /* readonly */
  6096. bool inView;
  6097. float length;
  6098. uint lightMask;
  6099. LightType lightType;
  6100. float lodBias;
  6101. uint maxLights;
  6102. /* readonly */
  6103. bool negative;
  6104. /* readonly */
  6105. Node node;
  6106. /* readonly */
  6107. uint numAttributes;
  6108. /* readonly */
  6109. int numShadowSplits;
  6110. ObjectAnimation objectAnimation;
  6111. bool occludee;
  6112. bool occluder;
  6113. bool perVertex;
  6114. float radius;
  6115. Texture rampTexture;
  6116. float range;
  6117. /* readonly */
  6118. int refs;
  6119. /* readonly */
  6120. bool replicated;
  6121. BiasParameters shadowBias;
  6122. CascadeParameters shadowCascade;
  6123. float shadowDistance;
  6124. float shadowFadeDistance;
  6125. FocusParameters shadowFocus;
  6126. float shadowIntensity;
  6127. uint shadowMask;
  6128. float shadowMaxExtrusion;
  6129. float shadowNearFarRatio;
  6130. float shadowResolution;
  6131. Texture shapeTexture;
  6132. float specularIntensity;
  6133. float temperature;
  6134. bool temporary;
  6135. /* readonly */
  6136. StringHash type;
  6137. /* readonly */
  6138. String typeName;
  6139. bool usePhysicalValues;
  6140. uint viewMask;
  6141. /* readonly */
  6142. int weakRefs;
  6143. /* readonly */
  6144. BoundingBox worldBoundingBox;
  6145. uint zoneMask;
  6146. };
  6147. class LineEdit
  6148. {
  6149. public:
  6150. LineEdit();
  6151. LineEdit(const String&in);
  6152. // Methods:
  6153. void AddChild(UIElement);
  6154. void AddTag(const String&);
  6155. void AddTags(const String&, int8 = ';');
  6156. void ApplyAttributes();
  6157. void BringToFront();
  6158. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6159. void DisableLayoutUpdate();
  6160. IntVector2 ElementToScreen(const IntVector2&);
  6161. void EnableLayoutUpdate();
  6162. uint FindChild(UIElement) const;
  6163. Variant GetAttribute(const String&) const;
  6164. ValueAnimation GetAttributeAnimation(const String&) const;
  6165. float GetAttributeAnimationSpeed(const String&) const;
  6166. float GetAttributeAnimationTime(const String&) const;
  6167. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6168. Variant GetAttributeDefault(const String&) const;
  6169. UIElement GetChild(const String&, bool = false) const;
  6170. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6171. Array<UIElement> GetChildren(bool = false) const;
  6172. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6173. UIElement GetElementEventSender() const;
  6174. bool GetInterceptNetworkUpdate(const String&) const;
  6175. uint GetNumChildren(bool) const;
  6176. bool HasSubscribedToEvent(Object, const String&);
  6177. bool HasSubscribedToEvent(const String&);
  6178. bool HasTag(const String&) const;
  6179. void InsertChild(uint, UIElement);
  6180. bool IsChildOf(UIElement) const;
  6181. bool IsInside(IntVector2, bool);
  6182. bool IsInsideCombined(IntVector2, bool);
  6183. bool Load(File);
  6184. bool Load(VectorBuffer&);
  6185. UIElement LoadChildXML(XMLFile, XMLFile);
  6186. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6187. bool LoadJSON(const JSONValue&);
  6188. bool LoadXML(File);
  6189. bool LoadXML(VectorBuffer&);
  6190. bool LoadXML(XMLFile, XMLFile);
  6191. bool LoadXML(const XMLElement&, XMLFile);
  6192. bool LoadXML(const XMLElement&);
  6193. void MarkNetworkUpdate() const;
  6194. void Remove();
  6195. void RemoveAllChildren();
  6196. void RemoveAllTags();
  6197. void RemoveAttributeAnimation(const String&);
  6198. void RemoveChild(UIElement, uint = 0);
  6199. void RemoveChild(uint);
  6200. void RemoveInstanceDefault();
  6201. void RemoveObjectAnimation();
  6202. bool RemoveTag(const String&);
  6203. void ResetDeepEnabled();
  6204. void ResetToDefault();
  6205. bool Save(File) const;
  6206. bool Save(VectorBuffer&) const;
  6207. bool SaveJSON(JSONValue&) const;
  6208. bool SaveXML(File, const String& = "\t");
  6209. bool SaveXML(VectorBuffer&, const String& = "\t");
  6210. bool SaveXML(XMLElement&) const;
  6211. IntVector2 ScreenToElement(const IntVector2&);
  6212. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6213. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6214. void SetAnimationTime(float);
  6215. bool SetAttribute(const String&, const Variant&);
  6216. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6217. void SetAttributeAnimationSpeed(const String&, float);
  6218. void SetAttributeAnimationTime(const String&, float);
  6219. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6220. void SetDeepEnabled(bool);
  6221. void SetEnabledRecursive(bool);
  6222. void SetFixedHeight(int);
  6223. void SetFixedSize(int, int);
  6224. void SetFixedWidth(int);
  6225. void SetFullImageRect();
  6226. void SetHoverOffset(int, int);
  6227. void SetInterceptNetworkUpdate(const String&, bool);
  6228. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6229. void SetMaxAnchor(float, float);
  6230. void SetMaxSize(int, int);
  6231. void SetMinAnchor(float, float);
  6232. void SetMinSize(int, int);
  6233. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6234. void SetPivot(float, float);
  6235. void SetPosition(int, int);
  6236. void SetSize(int, int);
  6237. bool SetStyle(const String&, XMLFile = null);
  6238. bool SetStyle(const XMLElement&);
  6239. bool SetStyleAuto(XMLFile = null);
  6240. void UpdateLayout();
  6241. const Variant& GetVar(const StringHash&);
  6242. // Properties:
  6243. bool animationEnabled;
  6244. /* readonly */
  6245. Array<Variant> attributeDefaults;
  6246. /* readonly */
  6247. Array<AttributeInfo> attributeInfos;
  6248. Array<Variant> attributes;
  6249. BlendMode blendMode;
  6250. IntRect border;
  6251. bool bringToBack;
  6252. bool bringToFront;
  6253. /* readonly */
  6254. String category;
  6255. /* readonly */
  6256. IntVector2 childOffset;
  6257. /* readonly */
  6258. Array<UIElement> children;
  6259. IntRect clipBorder;
  6260. bool clipChildren;
  6261. /* writeonly */
  6262. Color color;
  6263. /* readonly */
  6264. bool colorGradient;
  6265. Array<Color> colors;
  6266. /* readonly */
  6267. IntRect combinedScreenRect;
  6268. /* readonly */
  6269. BorderImage cursor;
  6270. float cursorBlinkRate;
  6271. bool cursorMovable;
  6272. uint cursorPosition;
  6273. XMLFile defaultStyle;
  6274. /* readonly */
  6275. float derivedOpacity;
  6276. /* readonly */
  6277. uint dragButtonCombo;
  6278. /* readonly */
  6279. int dragButtonCount;
  6280. uint dragDropMode;
  6281. uint echoCharacter;
  6282. bool editable;
  6283. bool elementEventSender;
  6284. bool enableAnchor;
  6285. bool enabled;
  6286. /* readonly */
  6287. bool enabledSelf;
  6288. /* readonly */
  6289. bool fixedHeight;
  6290. /* readonly */
  6291. bool fixedSize;
  6292. /* readonly */
  6293. bool fixedWidth;
  6294. bool focus;
  6295. FocusMode focusMode;
  6296. int height;
  6297. HorizontalAlignment horizontalAlignment;
  6298. IntVector2 hoverOffset;
  6299. /* readonly */
  6300. bool hovering;
  6301. IntRect imageBorder;
  6302. IntRect imageRect;
  6303. int indent;
  6304. int indentSpacing;
  6305. /* readonly */
  6306. int indentWidth;
  6307. bool internal;
  6308. IntRect layoutBorder;
  6309. Vector2 layoutFlexScale;
  6310. LayoutMode layoutMode;
  6311. int layoutSpacing;
  6312. Vector2 maxAnchor;
  6313. int maxHeight;
  6314. uint maxLength;
  6315. IntVector2 maxOffset;
  6316. IntVector2 maxSize;
  6317. int maxWidth;
  6318. Vector2 minAnchor;
  6319. int minHeight;
  6320. IntVector2 minOffset;
  6321. IntVector2 minSize;
  6322. int minWidth;
  6323. String name;
  6324. /* readonly */
  6325. uint numAllChildren;
  6326. /* readonly */
  6327. uint numAttributes;
  6328. /* readonly */
  6329. uint numChildren;
  6330. ObjectAnimation objectAnimation;
  6331. float opacity;
  6332. UIElement parent;
  6333. Vector2 pivot;
  6334. IntVector2 position;
  6335. int priority;
  6336. /* readonly */
  6337. int refs;
  6338. /* readonly */
  6339. UIElement root;
  6340. /* readonly */
  6341. IntVector2 screenPosition;
  6342. bool selected;
  6343. IntVector2 size;
  6344. bool sortChildren;
  6345. String style;
  6346. /* readonly */
  6347. Array<String> tags;
  6348. bool temporary;
  6349. String text;
  6350. bool textCopyable;
  6351. /* readonly */
  6352. Text textElement;
  6353. bool textSelectable;
  6354. Texture texture;
  6355. bool tiled;
  6356. TraversalMode traversalMode;
  6357. /* readonly */
  6358. StringHash type;
  6359. /* readonly */
  6360. String typeName;
  6361. bool useDerivedOpacity;
  6362. /* readonly */
  6363. VariantMap vars;
  6364. VerticalAlignment verticalAlignment;
  6365. bool visible;
  6366. /* readonly */
  6367. bool visibleEffective;
  6368. /* readonly */
  6369. int weakRefs;
  6370. int width;
  6371. };
  6372. class ListView
  6373. {
  6374. public:
  6375. ListView();
  6376. ListView(const String&in);
  6377. // Methods:
  6378. void AddChild(UIElement);
  6379. void AddItem(UIElement);
  6380. void AddSelection(uint);
  6381. void AddTag(const String&);
  6382. void AddTags(const String&, int8 = ';');
  6383. void ApplyAttributes();
  6384. void BringToFront();
  6385. void ChangeSelection(int, bool);
  6386. void ClearSelection();
  6387. void CopySelectedItemsToClipboard();
  6388. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6389. void DisableInternalLayoutUpdate();
  6390. void DisableLayoutUpdate();
  6391. IntVector2 ElementToScreen(const IntVector2&);
  6392. void EnableInternalLayoutUpdate();
  6393. void EnableLayoutUpdate();
  6394. void Expand(uint, bool, bool = false);
  6395. uint FindChild(UIElement) const;
  6396. uint FindItem(UIElement);
  6397. Variant GetAttribute(const String&) const;
  6398. ValueAnimation GetAttributeAnimation(const String&) const;
  6399. float GetAttributeAnimationSpeed(const String&) const;
  6400. float GetAttributeAnimationTime(const String&) const;
  6401. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6402. Variant GetAttributeDefault(const String&) const;
  6403. UIElement GetChild(const String&, bool = false) const;
  6404. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6405. Array<UIElement> GetChildren(bool = false) const;
  6406. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6407. UIElement GetElementEventSender() const;
  6408. bool GetInterceptNetworkUpdate(const String&) const;
  6409. Array<UIElement> GetItems() const;
  6410. uint GetNumChildren(bool) const;
  6411. bool HasSubscribedToEvent(Object, const String&);
  6412. bool HasSubscribedToEvent(const String&);
  6413. bool HasTag(const String&) const;
  6414. void InsertChild(uint, UIElement);
  6415. void InsertItem(uint, UIElement, UIElement = null);
  6416. bool IsChildOf(UIElement) const;
  6417. bool IsExpanded(uint) const;
  6418. bool IsInside(IntVector2, bool);
  6419. bool IsInsideCombined(IntVector2, bool);
  6420. bool IsSelected(uint) const;
  6421. bool Load(File);
  6422. bool Load(VectorBuffer&);
  6423. UIElement LoadChildXML(XMLFile, XMLFile);
  6424. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6425. bool LoadJSON(const JSONValue&);
  6426. bool LoadXML(File);
  6427. bool LoadXML(VectorBuffer&);
  6428. bool LoadXML(XMLFile, XMLFile);
  6429. bool LoadXML(const XMLElement&, XMLFile);
  6430. bool LoadXML(const XMLElement&);
  6431. void MarkNetworkUpdate() const;
  6432. void Remove();
  6433. void RemoveAllChildren();
  6434. void RemoveAllItems();
  6435. void RemoveAllTags();
  6436. void RemoveAttributeAnimation(const String&);
  6437. void RemoveChild(UIElement, uint = 0);
  6438. void RemoveChild(uint);
  6439. void RemoveInstanceDefault();
  6440. void RemoveItem(UIElement, uint = 0);
  6441. void RemoveItem(uint);
  6442. void RemoveObjectAnimation();
  6443. void RemoveSelection(uint);
  6444. bool RemoveTag(const String&);
  6445. void ResetDeepEnabled();
  6446. void ResetToDefault();
  6447. bool Save(File) const;
  6448. bool Save(VectorBuffer&) const;
  6449. bool SaveJSON(JSONValue&) const;
  6450. bool SaveXML(File, const String& = "\t");
  6451. bool SaveXML(VectorBuffer&, const String& = "\t");
  6452. bool SaveXML(XMLElement&) const;
  6453. IntVector2 ScreenToElement(const IntVector2&);
  6454. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6455. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6456. void SetAnimationTime(float);
  6457. bool SetAttribute(const String&, const Variant&);
  6458. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6459. void SetAttributeAnimationSpeed(const String&, float);
  6460. void SetAttributeAnimationTime(const String&, float);
  6461. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6462. void SetDeepEnabled(bool);
  6463. void SetEnabledRecursive(bool);
  6464. void SetFixedHeight(int);
  6465. void SetFixedSize(int, int);
  6466. void SetFixedWidth(int);
  6467. void SetInterceptNetworkUpdate(const String&, bool);
  6468. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6469. void SetMaxAnchor(float, float);
  6470. void SetMaxSize(int, int);
  6471. void SetMinAnchor(float, float);
  6472. void SetMinSize(int, int);
  6473. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6474. void SetPivot(float, float);
  6475. void SetPosition(int, int);
  6476. void SetScrollBarsVisible(bool, bool);
  6477. void SetSelections(Array<uint>);
  6478. void SetSize(int, int);
  6479. bool SetStyle(const String&, XMLFile = null);
  6480. bool SetStyle(const XMLElement&);
  6481. bool SetStyleAuto(XMLFile = null);
  6482. void SetViewPosition(int, int);
  6483. void ToggleExpand(uint, bool = false);
  6484. void ToggleSelection(uint);
  6485. void UpdateInternalLayout();
  6486. void UpdateLayout();
  6487. const Variant& GetVar(const StringHash&);
  6488. // Properties:
  6489. bool animationEnabled;
  6490. /* readonly */
  6491. Array<Variant> attributeDefaults;
  6492. /* readonly */
  6493. Array<AttributeInfo> attributeInfos;
  6494. Array<Variant> attributes;
  6495. bool autoDisableChildren;
  6496. float autoDisableThreshold;
  6497. int baseIndent;
  6498. bool bringToBack;
  6499. bool bringToFront;
  6500. /* readonly */
  6501. String category;
  6502. /* readonly */
  6503. IntVector2 childOffset;
  6504. /* readonly */
  6505. Array<UIElement> children;
  6506. bool clearSelectionOnDefocus;
  6507. IntRect clipBorder;
  6508. bool clipChildren;
  6509. /* writeonly */
  6510. Color color;
  6511. /* readonly */
  6512. bool colorGradient;
  6513. Array<Color> colors;
  6514. /* readonly */
  6515. IntRect combinedScreenRect;
  6516. /* readonly */
  6517. UIElement contentElement;
  6518. XMLFile defaultStyle;
  6519. /* readonly */
  6520. float derivedOpacity;
  6521. /* readonly */
  6522. uint dragButtonCombo;
  6523. /* readonly */
  6524. int dragButtonCount;
  6525. uint dragDropMode;
  6526. bool editable;
  6527. bool elementEventSender;
  6528. bool enableAnchor;
  6529. bool enabled;
  6530. /* readonly */
  6531. bool enabledSelf;
  6532. /* readonly */
  6533. bool fixedHeight;
  6534. /* readonly */
  6535. bool fixedSize;
  6536. /* readonly */
  6537. bool fixedWidth;
  6538. bool focus;
  6539. FocusMode focusMode;
  6540. int height;
  6541. bool hierarchyMode;
  6542. HighlightMode highlightMode;
  6543. HorizontalAlignment horizontalAlignment;
  6544. /* readonly */
  6545. ScrollBar horizontalScrollBar;
  6546. /* readonly */
  6547. bool hovering;
  6548. int indent;
  6549. int indentSpacing;
  6550. /* readonly */
  6551. int indentWidth;
  6552. bool internal;
  6553. /* readonly */
  6554. Array<UIElement> items;
  6555. IntRect layoutBorder;
  6556. Vector2 layoutFlexScale;
  6557. LayoutMode layoutMode;
  6558. int layoutSpacing;
  6559. Vector2 maxAnchor;
  6560. int maxHeight;
  6561. IntVector2 maxOffset;
  6562. IntVector2 maxSize;
  6563. int maxWidth;
  6564. Vector2 minAnchor;
  6565. int minHeight;
  6566. IntVector2 minOffset;
  6567. IntVector2 minSize;
  6568. int minWidth;
  6569. bool multiselect;
  6570. String name;
  6571. /* readonly */
  6572. uint numAllChildren;
  6573. /* readonly */
  6574. uint numAttributes;
  6575. /* readonly */
  6576. uint numChildren;
  6577. /* readonly */
  6578. uint numItems;
  6579. ObjectAnimation objectAnimation;
  6580. float opacity;
  6581. float pageStep;
  6582. UIElement parent;
  6583. Vector2 pivot;
  6584. IntVector2 position;
  6585. int priority;
  6586. /* readonly */
  6587. int refs;
  6588. /* readonly */
  6589. UIElement root;
  6590. /* readonly */
  6591. IntVector2 screenPosition;
  6592. bool scrollBarsAutoVisible;
  6593. float scrollDeceleration;
  6594. /* readonly */
  6595. BorderImage scrollPanel;
  6596. float scrollSnapEpsilon;
  6597. float scrollStep;
  6598. bool selectOnClickEnd;
  6599. bool selected;
  6600. /* readonly */
  6601. UIElement selectedItem;
  6602. /* readonly */
  6603. Array<UIElement> selectedItems;
  6604. uint selection;
  6605. /* readonly */
  6606. Array<uint> selections;
  6607. IntVector2 size;
  6608. bool sortChildren;
  6609. String style;
  6610. /* readonly */
  6611. Array<String> tags;
  6612. bool temporary;
  6613. TraversalMode traversalMode;
  6614. /* readonly */
  6615. StringHash type;
  6616. /* readonly */
  6617. String typeName;
  6618. bool useDerivedOpacity;
  6619. /* readonly */
  6620. VariantMap vars;
  6621. VerticalAlignment verticalAlignment;
  6622. /* readonly */
  6623. ScrollBar verticalScrollBar;
  6624. IntVector2 viewPosition;
  6625. bool visible;
  6626. /* readonly */
  6627. bool visibleEffective;
  6628. /* readonly */
  6629. int weakRefs;
  6630. int width;
  6631. };
  6632. class Localization
  6633. {
  6634. public:
  6635. // Methods:
  6636. String Get(const String&);
  6637. String GetLanguage(int);
  6638. int GetLanguageIndex(const String&);
  6639. bool HasSubscribedToEvent(Object, const String&);
  6640. bool HasSubscribedToEvent(const String&);
  6641. void LoadJSON(const JSONValue&);
  6642. void LoadJSONFile(const String&);
  6643. void Reset();
  6644. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6645. void SetLanguage(const String&);
  6646. void SetLanguage(int);
  6647. // Properties:
  6648. /* readonly */
  6649. String category;
  6650. /* readonly */
  6651. String language;
  6652. /* readonly */
  6653. int languageIndex;
  6654. /* readonly */
  6655. int numLanguages;
  6656. /* readonly */
  6657. int refs;
  6658. /* readonly */
  6659. StringHash type;
  6660. /* readonly */
  6661. String typeName;
  6662. /* readonly */
  6663. int weakRefs;
  6664. };
  6665. class Log
  6666. {
  6667. public:
  6668. // Methods:
  6669. void Close();
  6670. void Debug(const String&);
  6671. void Error(const String&);
  6672. bool HasSubscribedToEvent(Object, const String&);
  6673. bool HasSubscribedToEvent(const String&);
  6674. void Info(const String&);
  6675. void Open(const String&);
  6676. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6677. void Trace(const String&);
  6678. void Warning(const String&);
  6679. void Write(const String&, bool = false);
  6680. // Properties:
  6681. /* readonly */
  6682. String category;
  6683. /* readonly */
  6684. String lastMessage;
  6685. int level;
  6686. bool quiet;
  6687. /* readonly */
  6688. int refs;
  6689. bool timeStamp;
  6690. /* readonly */
  6691. StringHash type;
  6692. /* readonly */
  6693. String typeName;
  6694. /* readonly */
  6695. int weakRefs;
  6696. };
  6697. class Material
  6698. {
  6699. public:
  6700. Material();
  6701. Material(const String&in);
  6702. // Methods:
  6703. Material Clone(const String& = String ( )) const;
  6704. Pass GetPass(uint, const String&);
  6705. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6706. float GetShaderParameterAnimationSpeed(const String&) const;
  6707. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6708. bool HasSubscribedToEvent(Object, const String&);
  6709. bool HasSubscribedToEvent(const String&);
  6710. bool Load(File);
  6711. bool Load(VectorBuffer&);
  6712. bool Load(const JSONValue&);
  6713. bool Load(const String&);
  6714. bool Load(const XMLElement&);
  6715. void RemoveShaderParameter(const String&);
  6716. bool Save(File) const;
  6717. bool Save(JSONValue&) const;
  6718. bool Save(VectorBuffer&) const;
  6719. bool Save(XMLElement&) const;
  6720. bool Save(const String&) const;
  6721. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6722. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6723. void SetShaderParameterAnimationSpeed(const String&, float);
  6724. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6725. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6726. void SetUVTransform(const Vector2&, float, const Vector2&);
  6727. void SetUVTransform(const Vector2&, float, float);
  6728. void SortTechniques();
  6729. // Properties:
  6730. bool alphaToCoverage;
  6731. /* readonly */
  6732. String category;
  6733. CullMode cullMode;
  6734. BiasParameters depthBias;
  6735. FillMode fillMode;
  6736. bool lineAntiAlias;
  6737. /* readonly */
  6738. uint memoryUse;
  6739. String name;
  6740. uint numTechniques;
  6741. bool occlusion;
  6742. String pixelShaderDefines;
  6743. /* readonly */
  6744. int refs;
  6745. uint8 renderOrder;
  6746. Scene scene;
  6747. /* readonly */
  6748. Array<String> shaderParameterNames;
  6749. Array<Variant> shaderParameters;
  6750. CullMode shadowCullMode;
  6751. /* readonly */
  6752. Array<TechniqueEntry> techniqueEntries;
  6753. /* readonly */
  6754. Array<Technique> techniques;
  6755. Array<Texture> textures;
  6756. /* readonly */
  6757. StringHash type;
  6758. /* readonly */
  6759. String typeName;
  6760. /* readonly */
  6761. uint useTimer;
  6762. String vertexShaderDefines;
  6763. /* readonly */
  6764. int weakRefs;
  6765. };
  6766. class Matrix2
  6767. {
  6768. public:
  6769. Matrix2();
  6770. Matrix2(const Matrix2&in);
  6771. Matrix2(float, float, float, float);
  6772. // Methods:
  6773. bool Equals(const Matrix2&) const;
  6774. Matrix2 Inverse() const;
  6775. Vector2 Scale() const;
  6776. Matrix2 Scaled(const Vector2&) const;
  6777. void SetScale(const Vector2&);
  6778. void SetScale(float);
  6779. String ToString() const;
  6780. Matrix2 Transpose() const;
  6781. // Properties:
  6782. float m00;
  6783. float m01;
  6784. float m10;
  6785. float m11;
  6786. };
  6787. class Matrix3
  6788. {
  6789. public:
  6790. Matrix3();
  6791. Matrix3(const Matrix3&in);
  6792. Matrix3(float, float, float, float, float, float, float, float, float);
  6793. // Methods:
  6794. bool Equals(const Matrix3&) const;
  6795. Matrix3 Inverse() const;
  6796. Vector3 Scale() const;
  6797. Matrix3 Scaled(const Vector3&) const;
  6798. void SetScale(const Vector3&);
  6799. void SetScale(float);
  6800. String ToString() const;
  6801. Matrix3 Transpose() const;
  6802. // Properties:
  6803. float m00;
  6804. float m01;
  6805. float m02;
  6806. float m10;
  6807. float m11;
  6808. float m12;
  6809. float m20;
  6810. float m21;
  6811. float m22;
  6812. };
  6813. class Matrix3x4
  6814. {
  6815. public:
  6816. Matrix3x4();
  6817. Matrix3x4(const Matrix3x4&in);
  6818. Matrix3x4(const Matrix3&in);
  6819. Matrix3x4(const Matrix4&in);
  6820. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  6821. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  6822. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  6823. // Methods:
  6824. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6825. bool Equals(const Matrix3x4&) const;
  6826. Matrix3x4 Inverse() const;
  6827. Quaternion Rotation() const;
  6828. Matrix3 RotationMatrix() const;
  6829. Vector3 Scale() const;
  6830. void SetRotation(const Matrix3&);
  6831. void SetScale(const Vector3&);
  6832. void SetScale(float);
  6833. void SetTranslation(const Vector3&);
  6834. Matrix3 ToMatrix3() const;
  6835. Matrix4 ToMatrix4() const;
  6836. String ToString() const;
  6837. Vector3 Translation() const;
  6838. // Properties:
  6839. float m00;
  6840. float m01;
  6841. float m02;
  6842. float m03;
  6843. float m10;
  6844. float m11;
  6845. float m12;
  6846. float m13;
  6847. float m20;
  6848. float m21;
  6849. float m22;
  6850. float m23;
  6851. };
  6852. class Matrix4
  6853. {
  6854. public:
  6855. Matrix4();
  6856. Matrix4(const Matrix4&in);
  6857. Matrix4(const Matrix3&in);
  6858. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  6859. // Methods:
  6860. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6861. bool Equals(const Matrix4&) const;
  6862. Matrix4 Inverse() const;
  6863. Quaternion Rotation() const;
  6864. Matrix3 RotationMatrix() const;
  6865. Vector3 Scale() const;
  6866. void SetRotation(const Matrix3&);
  6867. void SetScale(const Vector3&);
  6868. void SetScale(float);
  6869. void SetTranslation(const Vector3&);
  6870. Matrix3 ToMatrix3() const;
  6871. String ToString() const;
  6872. Vector3 Translation() const;
  6873. Matrix4 Transpose() const;
  6874. // Properties:
  6875. float m00;
  6876. float m01;
  6877. float m02;
  6878. float m03;
  6879. float m10;
  6880. float m11;
  6881. float m12;
  6882. float m13;
  6883. float m20;
  6884. float m21;
  6885. float m22;
  6886. float m23;
  6887. float m30;
  6888. float m31;
  6889. float m32;
  6890. float m33;
  6891. };
  6892. class Menu
  6893. {
  6894. public:
  6895. Menu();
  6896. Menu(const String&in);
  6897. // Methods:
  6898. void AddChild(UIElement);
  6899. void AddTag(const String&);
  6900. void AddTags(const String&, int8 = ';');
  6901. void ApplyAttributes();
  6902. void BringToFront();
  6903. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6904. void DisableLayoutUpdate();
  6905. IntVector2 ElementToScreen(const IntVector2&);
  6906. void EnableLayoutUpdate();
  6907. uint FindChild(UIElement) const;
  6908. Variant GetAttribute(const String&) const;
  6909. ValueAnimation GetAttributeAnimation(const String&) const;
  6910. float GetAttributeAnimationSpeed(const String&) const;
  6911. float GetAttributeAnimationTime(const String&) const;
  6912. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6913. Variant GetAttributeDefault(const String&) const;
  6914. UIElement GetChild(const String&, bool = false) const;
  6915. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6916. Array<UIElement> GetChildren(bool = false) const;
  6917. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6918. UIElement GetElementEventSender() const;
  6919. bool GetInterceptNetworkUpdate(const String&) const;
  6920. uint GetNumChildren(bool) const;
  6921. bool HasSubscribedToEvent(Object, const String&);
  6922. bool HasSubscribedToEvent(const String&);
  6923. bool HasTag(const String&) const;
  6924. void InsertChild(uint, UIElement);
  6925. bool IsChildOf(UIElement) const;
  6926. bool IsInside(IntVector2, bool);
  6927. bool IsInsideCombined(IntVector2, bool);
  6928. bool Load(File);
  6929. bool Load(VectorBuffer&);
  6930. UIElement LoadChildXML(XMLFile, XMLFile);
  6931. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6932. bool LoadJSON(const JSONValue&);
  6933. bool LoadXML(File);
  6934. bool LoadXML(VectorBuffer&);
  6935. bool LoadXML(XMLFile, XMLFile);
  6936. bool LoadXML(const XMLElement&, XMLFile);
  6937. bool LoadXML(const XMLElement&);
  6938. void MarkNetworkUpdate() const;
  6939. void Remove();
  6940. void RemoveAllChildren();
  6941. void RemoveAllTags();
  6942. void RemoveAttributeAnimation(const String&);
  6943. void RemoveChild(UIElement, uint = 0);
  6944. void RemoveChild(uint);
  6945. void RemoveInstanceDefault();
  6946. void RemoveObjectAnimation();
  6947. bool RemoveTag(const String&);
  6948. void ResetDeepEnabled();
  6949. void ResetToDefault();
  6950. bool Save(File) const;
  6951. bool Save(VectorBuffer&) const;
  6952. bool SaveJSON(JSONValue&) const;
  6953. bool SaveXML(File, const String& = "\t");
  6954. bool SaveXML(VectorBuffer&, const String& = "\t");
  6955. bool SaveXML(XMLElement&) const;
  6956. IntVector2 ScreenToElement(const IntVector2&);
  6957. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6958. void SetAccelerator(int, int);
  6959. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6960. void SetAnimationTime(float);
  6961. bool SetAttribute(const String&, const Variant&);
  6962. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6963. void SetAttributeAnimationSpeed(const String&, float);
  6964. void SetAttributeAnimationTime(const String&, float);
  6965. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6966. void SetDeepEnabled(bool);
  6967. void SetDisabledOffset(int, int);
  6968. void SetEnabledRecursive(bool);
  6969. void SetFixedHeight(int);
  6970. void SetFixedSize(int, int);
  6971. void SetFixedWidth(int);
  6972. void SetFullImageRect();
  6973. void SetHoverOffset(int, int);
  6974. void SetInterceptNetworkUpdate(const String&, bool);
  6975. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6976. void SetMaxAnchor(float, float);
  6977. void SetMaxSize(int, int);
  6978. void SetMinAnchor(float, float);
  6979. void SetMinSize(int, int);
  6980. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6981. void SetPivot(float, float);
  6982. void SetPopupOffset(int, int);
  6983. void SetPosition(int, int);
  6984. void SetPressedChildOffset(int, int);
  6985. void SetPressedOffset(int, int);
  6986. void SetRepeat(float, float);
  6987. void SetSize(int, int);
  6988. bool SetStyle(const String&, XMLFile = null);
  6989. bool SetStyle(const XMLElement&);
  6990. bool SetStyleAuto(XMLFile = null);
  6991. void UpdateLayout();
  6992. const Variant& GetVar(const StringHash&);
  6993. // Properties:
  6994. /* readonly */
  6995. int acceleratorKey;
  6996. /* readonly */
  6997. int acceleratorQualifiers;
  6998. bool animationEnabled;
  6999. /* readonly */
  7000. Array<Variant> attributeDefaults;
  7001. /* readonly */
  7002. Array<AttributeInfo> attributeInfos;
  7003. Array<Variant> attributes;
  7004. BlendMode blendMode;
  7005. IntRect border;
  7006. bool bringToBack;
  7007. bool bringToFront;
  7008. /* readonly */
  7009. String category;
  7010. /* readonly */
  7011. IntVector2 childOffset;
  7012. /* readonly */
  7013. Array<UIElement> children;
  7014. IntRect clipBorder;
  7015. bool clipChildren;
  7016. /* writeonly */
  7017. Color color;
  7018. /* readonly */
  7019. bool colorGradient;
  7020. Array<Color> colors;
  7021. /* readonly */
  7022. IntRect combinedScreenRect;
  7023. XMLFile defaultStyle;
  7024. /* readonly */
  7025. float derivedOpacity;
  7026. IntVector2 disabledOffset;
  7027. /* readonly */
  7028. uint dragButtonCombo;
  7029. /* readonly */
  7030. int dragButtonCount;
  7031. uint dragDropMode;
  7032. bool editable;
  7033. bool elementEventSender;
  7034. bool enableAnchor;
  7035. bool enabled;
  7036. /* readonly */
  7037. bool enabledSelf;
  7038. /* readonly */
  7039. bool fixedHeight;
  7040. /* readonly */
  7041. bool fixedSize;
  7042. /* readonly */
  7043. bool fixedWidth;
  7044. bool focus;
  7045. FocusMode focusMode;
  7046. int height;
  7047. HorizontalAlignment horizontalAlignment;
  7048. IntVector2 hoverOffset;
  7049. /* readonly */
  7050. bool hovering;
  7051. IntRect imageBorder;
  7052. IntRect imageRect;
  7053. int indent;
  7054. int indentSpacing;
  7055. /* readonly */
  7056. int indentWidth;
  7057. bool internal;
  7058. IntRect layoutBorder;
  7059. Vector2 layoutFlexScale;
  7060. LayoutMode layoutMode;
  7061. int layoutSpacing;
  7062. Vector2 maxAnchor;
  7063. int maxHeight;
  7064. IntVector2 maxOffset;
  7065. IntVector2 maxSize;
  7066. int maxWidth;
  7067. Vector2 minAnchor;
  7068. int minHeight;
  7069. IntVector2 minOffset;
  7070. IntVector2 minSize;
  7071. int minWidth;
  7072. String name;
  7073. /* readonly */
  7074. uint numAllChildren;
  7075. /* readonly */
  7076. uint numAttributes;
  7077. /* readonly */
  7078. uint numChildren;
  7079. ObjectAnimation objectAnimation;
  7080. float opacity;
  7081. UIElement parent;
  7082. Vector2 pivot;
  7083. UIElement popup;
  7084. IntVector2 popupOffset;
  7085. IntVector2 position;
  7086. /* readonly */
  7087. bool pressed;
  7088. IntVector2 pressedChildOffset;
  7089. IntVector2 pressedOffset;
  7090. int priority;
  7091. /* readonly */
  7092. int refs;
  7093. float repeatDelay;
  7094. float repeatRate;
  7095. /* readonly */
  7096. UIElement root;
  7097. /* readonly */
  7098. IntVector2 screenPosition;
  7099. bool selected;
  7100. bool showPopup;
  7101. IntVector2 size;
  7102. bool sortChildren;
  7103. String style;
  7104. /* readonly */
  7105. Array<String> tags;
  7106. bool temporary;
  7107. Texture texture;
  7108. bool tiled;
  7109. TraversalMode traversalMode;
  7110. /* readonly */
  7111. StringHash type;
  7112. /* readonly */
  7113. String typeName;
  7114. bool useDerivedOpacity;
  7115. /* readonly */
  7116. VariantMap vars;
  7117. VerticalAlignment verticalAlignment;
  7118. bool visible;
  7119. /* readonly */
  7120. bool visibleEffective;
  7121. /* readonly */
  7122. int weakRefs;
  7123. int width;
  7124. };
  7125. class MessageBox
  7126. {
  7127. public:
  7128. MessageBox(const String&in messageString = String ( ), const String&in titleString = String ( ), XMLFile& layoutFile = null, XMLFile& styleFile = null);
  7129. // Methods:
  7130. bool HasSubscribedToEvent(Object, const String&);
  7131. bool HasSubscribedToEvent(const String&);
  7132. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7133. // Properties:
  7134. /* readonly */
  7135. String category;
  7136. String message;
  7137. /* readonly */
  7138. int refs;
  7139. String title;
  7140. /* readonly */
  7141. StringHash type;
  7142. /* readonly */
  7143. String typeName;
  7144. /* readonly */
  7145. int weakRefs;
  7146. /* readonly */
  7147. UIElement window;
  7148. };
  7149. class Model
  7150. {
  7151. public:
  7152. Model();
  7153. Model(const String&in);
  7154. // Methods:
  7155. void AddMetadata(const String&, const Variant&);
  7156. Model Clone(const String& = String ( )) const;
  7157. Geometry GetGeometry(uint, uint) const;
  7158. bool HasSubscribedToEvent(Object, const String&);
  7159. bool HasSubscribedToEvent(const String&);
  7160. bool Load(File);
  7161. bool Load(VectorBuffer&);
  7162. bool Load(const String&);
  7163. void RemoveAllMetadata();
  7164. void RemoveMetadata(const String&);
  7165. bool Save(File) const;
  7166. bool Save(VectorBuffer&) const;
  7167. bool Save(const String&) const;
  7168. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7169. bool SetGeometry(uint, uint, Geometry);
  7170. bool SetIndexBuffers(Array<IndexBuffer>);
  7171. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  7172. // Properties:
  7173. BoundingBox boundingBox;
  7174. /* readonly */
  7175. String category;
  7176. Array<Vector3> geometryCenters;
  7177. /* readonly */
  7178. bool hasMetadata;
  7179. /* readonly */
  7180. uint memoryUse;
  7181. Array<Variant> metadata;
  7182. String name;
  7183. uint numGeometries;
  7184. Array<uint> numGeometryLodLevels;
  7185. /* readonly */
  7186. uint numMorphs;
  7187. /* readonly */
  7188. int refs;
  7189. /* readonly */
  7190. Skeleton skeleton;
  7191. /* readonly */
  7192. StringHash type;
  7193. /* readonly */
  7194. String typeName;
  7195. /* readonly */
  7196. uint useTimer;
  7197. /* readonly */
  7198. int weakRefs;
  7199. };
  7200. class NamedPipe
  7201. {
  7202. public:
  7203. NamedPipe();
  7204. NamedPipe(const String&in, bool);
  7205. // Methods:
  7206. void Close();
  7207. bool HasSubscribedToEvent(Object, const String&);
  7208. bool HasSubscribedToEvent(const String&);
  7209. bool Open(const String&, bool);
  7210. Array<uint8> Read(uint);
  7211. bool ReadBool();
  7212. BoundingBox ReadBoundingBox();
  7213. int8 ReadByte();
  7214. Color ReadColor();
  7215. double ReadDouble();
  7216. String ReadFileID();
  7217. float ReadFloat();
  7218. int ReadInt();
  7219. int64 ReadInt64();
  7220. IntRect ReadIntRect();
  7221. IntVector2 ReadIntVector2();
  7222. String ReadLine();
  7223. Matrix3 ReadMatrix3();
  7224. Matrix3x4 ReadMatrix3x4();
  7225. Matrix4 ReadMatrix4();
  7226. uint ReadNetID();
  7227. Quaternion ReadPackedQuaternion();
  7228. Vector3 ReadPackedVector3(float);
  7229. Quaternion ReadQuaternion();
  7230. int16 ReadShort();
  7231. String ReadString();
  7232. StringHash ReadStringHash();
  7233. uint8 ReadUByte();
  7234. uint ReadUInt();
  7235. uint64 ReadUInt64();
  7236. uint16 ReadUShort();
  7237. uint ReadVLE();
  7238. Variant ReadVariant();
  7239. VariantMap ReadVariantMap();
  7240. Vector2 ReadVector2();
  7241. Vector3 ReadVector3();
  7242. Vector4 ReadVector4();
  7243. VectorBuffer ReadVectorBuffer(uint);
  7244. uint Seek(uint);
  7245. uint SeekRelative(int);
  7246. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7247. uint Tell() const;
  7248. uint Write(Array<uint8>);
  7249. bool WriteBool(bool);
  7250. bool WriteBoundingBox(const BoundingBox&);
  7251. bool WriteByte(int8);
  7252. bool WriteColor(const Color&);
  7253. bool WriteDouble(double);
  7254. bool WriteFileID(const String&);
  7255. bool WriteFloat(float);
  7256. bool WriteInt(int);
  7257. bool WriteInt64(int64);
  7258. bool WriteIntRect(const IntRect&);
  7259. bool WriteIntVector2(const IntVector2&);
  7260. bool WriteLine(const String&);
  7261. bool WriteMatrix3(const Matrix3&);
  7262. bool WriteMatrix3x4(const Matrix3x4&);
  7263. bool WriteMatrix4(const Matrix4&);
  7264. bool WriteNetID(uint);
  7265. bool WritePackedQuaternion(const Quaternion&);
  7266. bool WritePackedVector3(const Vector3&, float);
  7267. bool WriteQuaternion(const Quaternion&);
  7268. bool WriteShort(int16);
  7269. bool WriteString(const String&);
  7270. bool WriteStringHash(const StringHash&);
  7271. bool WriteUByte(uint8);
  7272. bool WriteUInt(uint);
  7273. bool WriteUInt64(uint64);
  7274. bool WriteUShort(uint16);
  7275. bool WriteVLE(uint);
  7276. bool WriteVariant(const Variant&);
  7277. bool WriteVariantMap(const VariantMap&);
  7278. bool WriteVector2(const Vector2&);
  7279. bool WriteVector3(const Vector3&);
  7280. bool WriteVector4(const Vector4&);
  7281. bool WriteVectorBuffer(const VectorBuffer&);
  7282. // Properties:
  7283. /* readonly */
  7284. String category;
  7285. /* readonly */
  7286. uint checksum;
  7287. /* readonly */
  7288. bool eof;
  7289. /* readonly */
  7290. String name;
  7291. /* readonly */
  7292. bool open;
  7293. /* readonly */
  7294. uint position;
  7295. /* readonly */
  7296. int refs;
  7297. /* readonly */
  7298. bool server;
  7299. /* readonly */
  7300. uint size;
  7301. /* readonly */
  7302. StringHash type;
  7303. /* readonly */
  7304. String typeName;
  7305. /* readonly */
  7306. int weakRefs;
  7307. };
  7308. class NavArea
  7309. {
  7310. public:
  7311. // Methods:
  7312. void ApplyAttributes();
  7313. void DrawDebugGeometry(DebugRenderer, bool);
  7314. Variant GetAttribute(const String&) const;
  7315. ValueAnimation GetAttributeAnimation(const String&) const;
  7316. float GetAttributeAnimationSpeed(const String&) const;
  7317. float GetAttributeAnimationTime(const String&) const;
  7318. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7319. Variant GetAttributeDefault(const String&) const;
  7320. bool GetInterceptNetworkUpdate(const String&) const;
  7321. bool HasSubscribedToEvent(Object, const String&);
  7322. bool HasSubscribedToEvent(const String&);
  7323. bool Load(File);
  7324. bool Load(VectorBuffer&);
  7325. bool LoadJSON(const JSONValue&);
  7326. bool LoadXML(const XMLElement&);
  7327. void MarkNetworkUpdate() const;
  7328. void Remove();
  7329. void RemoveAttributeAnimation(const String&);
  7330. void RemoveInstanceDefault();
  7331. void RemoveObjectAnimation();
  7332. void ResetToDefault();
  7333. bool Save(File) const;
  7334. bool Save(VectorBuffer&) const;
  7335. bool SaveJSON(JSONValue&) const;
  7336. bool SaveXML(XMLElement&) const;
  7337. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7338. void SetAnimationTime(float);
  7339. bool SetAttribute(const String&, const Variant&);
  7340. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7341. void SetAttributeAnimationSpeed(const String&, float);
  7342. void SetAttributeAnimationTime(const String&, float);
  7343. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7344. void SetInterceptNetworkUpdate(const String&, bool);
  7345. // Properties:
  7346. bool animationEnabled;
  7347. uint areaID;
  7348. /* readonly */
  7349. Array<Variant> attributeDefaults;
  7350. /* readonly */
  7351. Array<AttributeInfo> attributeInfos;
  7352. Array<Variant> attributes;
  7353. BoundingBox boundingBox;
  7354. /* readonly */
  7355. String category;
  7356. bool enabled;
  7357. /* readonly */
  7358. bool enabledEffective;
  7359. /* readonly */
  7360. uint id;
  7361. /* readonly */
  7362. Node node;
  7363. /* readonly */
  7364. uint numAttributes;
  7365. ObjectAnimation objectAnimation;
  7366. /* readonly */
  7367. int refs;
  7368. /* readonly */
  7369. bool replicated;
  7370. bool temporary;
  7371. /* readonly */
  7372. StringHash type;
  7373. /* readonly */
  7374. String typeName;
  7375. /* readonly */
  7376. int weakRefs;
  7377. /* readonly */
  7378. BoundingBox worldBoundingBox;
  7379. };
  7380. class Navigable
  7381. {
  7382. public:
  7383. // Methods:
  7384. void ApplyAttributes();
  7385. void DrawDebugGeometry(DebugRenderer, bool);
  7386. Variant GetAttribute(const String&) const;
  7387. ValueAnimation GetAttributeAnimation(const String&) const;
  7388. float GetAttributeAnimationSpeed(const String&) const;
  7389. float GetAttributeAnimationTime(const String&) const;
  7390. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7391. Variant GetAttributeDefault(const String&) const;
  7392. bool GetInterceptNetworkUpdate(const String&) const;
  7393. bool HasSubscribedToEvent(Object, const String&);
  7394. bool HasSubscribedToEvent(const String&);
  7395. bool Load(File);
  7396. bool Load(VectorBuffer&);
  7397. bool LoadJSON(const JSONValue&);
  7398. bool LoadXML(const XMLElement&);
  7399. void MarkNetworkUpdate() const;
  7400. void Remove();
  7401. void RemoveAttributeAnimation(const String&);
  7402. void RemoveInstanceDefault();
  7403. void RemoveObjectAnimation();
  7404. void ResetToDefault();
  7405. bool Save(File) const;
  7406. bool Save(VectorBuffer&) const;
  7407. bool SaveJSON(JSONValue&) const;
  7408. bool SaveXML(XMLElement&) const;
  7409. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7410. void SetAnimationTime(float);
  7411. bool SetAttribute(const String&, const Variant&);
  7412. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7413. void SetAttributeAnimationSpeed(const String&, float);
  7414. void SetAttributeAnimationTime(const String&, float);
  7415. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7416. void SetInterceptNetworkUpdate(const String&, bool);
  7417. // Properties:
  7418. bool animationEnabled;
  7419. /* readonly */
  7420. Array<Variant> attributeDefaults;
  7421. /* readonly */
  7422. Array<AttributeInfo> attributeInfos;
  7423. Array<Variant> attributes;
  7424. /* readonly */
  7425. String category;
  7426. bool enabled;
  7427. /* readonly */
  7428. bool enabledEffective;
  7429. /* readonly */
  7430. uint id;
  7431. /* readonly */
  7432. Node node;
  7433. /* readonly */
  7434. uint numAttributes;
  7435. ObjectAnimation objectAnimation;
  7436. bool recursive;
  7437. /* readonly */
  7438. int refs;
  7439. /* readonly */
  7440. bool replicated;
  7441. bool temporary;
  7442. /* readonly */
  7443. StringHash type;
  7444. /* readonly */
  7445. String typeName;
  7446. /* readonly */
  7447. int weakRefs;
  7448. };
  7449. class NavigationMesh
  7450. {
  7451. public:
  7452. // Methods:
  7453. bool AddTile(const VectorBuffer&) const;
  7454. bool Allocate(const BoundingBox&, uint);
  7455. void ApplyAttributes();
  7456. bool Build();
  7457. bool Build(const BoundingBox&);
  7458. bool Build(const IntVector2&, const IntVector2&);
  7459. void DrawDebugGeometry(DebugRenderer, bool);
  7460. void DrawDebugGeometry(bool);
  7461. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7462. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7463. float GetAreaCost(uint) const;
  7464. Variant GetAttribute(const String&) const;
  7465. ValueAnimation GetAttributeAnimation(const String&) const;
  7466. float GetAttributeAnimationSpeed(const String&) const;
  7467. float GetAttributeAnimationTime(const String&) const;
  7468. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7469. Variant GetAttributeDefault(const String&) const;
  7470. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7471. bool GetInterceptNetworkUpdate(const String&) const;
  7472. Vector3 GetRandomPoint();
  7473. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7474. BoundingBox GetTileBoudningBox(const IntVector2&) const;
  7475. VectorBuffer GetTileData(const IntVector2&) const;
  7476. IntVector2 GetTileIndex(const Vector3&) const;
  7477. bool HasSubscribedToEvent(Object, const String&);
  7478. bool HasSubscribedToEvent(const String&);
  7479. bool HasTile(const IntVector2&) const;
  7480. bool Load(File);
  7481. bool Load(VectorBuffer&);
  7482. bool LoadJSON(const JSONValue&);
  7483. bool LoadXML(const XMLElement&);
  7484. void MarkNetworkUpdate() const;
  7485. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  7486. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7487. void Remove();
  7488. void RemoveAllTiles();
  7489. void RemoveAttributeAnimation(const String&);
  7490. void RemoveInstanceDefault();
  7491. void RemoveObjectAnimation();
  7492. void RemoveTile(const IntVector2&);
  7493. void ResetToDefault();
  7494. bool Save(File) const;
  7495. bool Save(VectorBuffer&) const;
  7496. bool SaveJSON(JSONValue&) const;
  7497. bool SaveXML(XMLElement&) const;
  7498. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7499. void SetAnimationTime(float);
  7500. void SetAreaCost(uint, float);
  7501. bool SetAttribute(const String&, const Variant&);
  7502. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7503. void SetAttributeAnimationSpeed(const String&, float);
  7504. void SetAttributeAnimationTime(const String&, float);
  7505. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7506. void SetInterceptNetworkUpdate(const String&, bool);
  7507. // Properties:
  7508. float agentHeight;
  7509. float agentMaxClimb;
  7510. float agentMaxSlope;
  7511. float agentRadius;
  7512. bool animationEnabled;
  7513. /* readonly */
  7514. Array<Variant> attributeDefaults;
  7515. /* readonly */
  7516. Array<AttributeInfo> attributeInfos;
  7517. Array<Variant> attributes;
  7518. /* readonly */
  7519. BoundingBox boundingBox;
  7520. /* readonly */
  7521. String category;
  7522. float cellHeight;
  7523. float cellSize;
  7524. float detailSampleDistance;
  7525. float detailSampleMaxError;
  7526. bool drawNavAreas;
  7527. bool drawOffMeshConnections;
  7528. float edgeMaxError;
  7529. float edgeMaxLength;
  7530. bool enabled;
  7531. /* readonly */
  7532. bool enabledEffective;
  7533. /* readonly */
  7534. uint id;
  7535. /* readonly */
  7536. bool initialized;
  7537. /* readonly */
  7538. Node node;
  7539. /* readonly */
  7540. uint numAttributes;
  7541. /* readonly */
  7542. IntVector2 numTiles;
  7543. ObjectAnimation objectAnimation;
  7544. Vector3 padding;
  7545. NavmeshPartitionType partitionType;
  7546. /* readonly */
  7547. int refs;
  7548. float regionMergeSize;
  7549. float regionMinSize;
  7550. /* readonly */
  7551. bool replicated;
  7552. bool temporary;
  7553. int tileSize;
  7554. /* readonly */
  7555. StringHash type;
  7556. /* readonly */
  7557. String typeName;
  7558. /* readonly */
  7559. int weakRefs;
  7560. /* readonly */
  7561. BoundingBox worldBoundingBox;
  7562. };
  7563. class Network
  7564. {
  7565. public:
  7566. // Methods:
  7567. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  7568. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  7569. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  7570. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  7571. bool CheckRemoteEvent(const String&) const;
  7572. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  7573. void Disconnect(int = 0);
  7574. bool HasSubscribedToEvent(Object, const String&);
  7575. bool HasSubscribedToEvent(const String&);
  7576. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  7577. void RegisterRemoteEvent(const String&) const;
  7578. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7579. void SendPackageToClients(Scene, PackageFile);
  7580. bool StartServer(uint16);
  7581. void StopServer();
  7582. void UnregisterAllRemoteEvents();
  7583. void UnregisterRemoteEvent(const String&) const;
  7584. // Properties:
  7585. /* readonly */
  7586. String category;
  7587. /* readonly */
  7588. Array<Connection> clientConnections;
  7589. String packageCacheDir;
  7590. /* readonly */
  7591. int refs;
  7592. /* readonly */
  7593. Connection serverConnection;
  7594. /* readonly */
  7595. bool serverRunning;
  7596. int simulatedLatency;
  7597. float simulatedPacketLoss;
  7598. /* readonly */
  7599. StringHash type;
  7600. /* readonly */
  7601. String typeName;
  7602. int updateFps;
  7603. /* readonly */
  7604. int weakRefs;
  7605. };
  7606. class NetworkPriority
  7607. {
  7608. public:
  7609. // Methods:
  7610. void ApplyAttributes();
  7611. void DrawDebugGeometry(DebugRenderer, bool);
  7612. Variant GetAttribute(const String&) const;
  7613. ValueAnimation GetAttributeAnimation(const String&) const;
  7614. float GetAttributeAnimationSpeed(const String&) const;
  7615. float GetAttributeAnimationTime(const String&) const;
  7616. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7617. Variant GetAttributeDefault(const String&) const;
  7618. bool GetInterceptNetworkUpdate(const String&) const;
  7619. bool HasSubscribedToEvent(Object, const String&);
  7620. bool HasSubscribedToEvent(const String&);
  7621. bool Load(File);
  7622. bool Load(VectorBuffer&);
  7623. bool LoadJSON(const JSONValue&);
  7624. bool LoadXML(const XMLElement&);
  7625. void MarkNetworkUpdate() const;
  7626. void Remove();
  7627. void RemoveAttributeAnimation(const String&);
  7628. void RemoveInstanceDefault();
  7629. void RemoveObjectAnimation();
  7630. void ResetToDefault();
  7631. bool Save(File) const;
  7632. bool Save(VectorBuffer&) const;
  7633. bool SaveJSON(JSONValue&) const;
  7634. bool SaveXML(XMLElement&) const;
  7635. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7636. void SetAnimationTime(float);
  7637. bool SetAttribute(const String&, const Variant&);
  7638. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7639. void SetAttributeAnimationSpeed(const String&, float);
  7640. void SetAttributeAnimationTime(const String&, float);
  7641. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7642. void SetInterceptNetworkUpdate(const String&, bool);
  7643. // Properties:
  7644. bool alwaysUpdateOwner;
  7645. bool animationEnabled;
  7646. /* readonly */
  7647. Array<Variant> attributeDefaults;
  7648. /* readonly */
  7649. Array<AttributeInfo> attributeInfos;
  7650. Array<Variant> attributes;
  7651. float basePriority;
  7652. /* readonly */
  7653. String category;
  7654. float distanceFactor;
  7655. bool enabled;
  7656. /* readonly */
  7657. bool enabledEffective;
  7658. /* readonly */
  7659. uint id;
  7660. float minPriority;
  7661. /* readonly */
  7662. Node node;
  7663. /* readonly */
  7664. uint numAttributes;
  7665. ObjectAnimation objectAnimation;
  7666. /* readonly */
  7667. int refs;
  7668. /* readonly */
  7669. bool replicated;
  7670. bool temporary;
  7671. /* readonly */
  7672. StringHash type;
  7673. /* readonly */
  7674. String typeName;
  7675. /* readonly */
  7676. int weakRefs;
  7677. };
  7678. class Node
  7679. {
  7680. public:
  7681. Node();
  7682. Node(const String&in);
  7683. // Methods:
  7684. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7685. void AddTag(const String&);
  7686. void AddTags(const String&, int8 = ';');
  7687. void ApplyAttributes();
  7688. Node Clone(CreateMode = REPLICATED);
  7689. Component CloneComponent(Component, CreateMode, uint = 0);
  7690. Component CloneComponent(Component, uint = 0);
  7691. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7692. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7693. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7694. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7695. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7696. Variant GetAttribute(const String&) const;
  7697. ValueAnimation GetAttributeAnimation(const String&) const;
  7698. float GetAttributeAnimationSpeed(const String&) const;
  7699. float GetAttributeAnimationTime(const String&) const;
  7700. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7701. Variant GetAttributeDefault(const String&) const;
  7702. Node GetChild(const String&, bool = false) const;
  7703. Array<Node> GetChildren(bool = false) const;
  7704. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7705. Array<Node> GetChildrenWithScript(bool = false) const;
  7706. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7707. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7708. Component GetComponent(const String&, bool = false) const;
  7709. Array<Component> GetComponents() const;
  7710. Array<Component> GetComponents(const String&, bool = false) const;
  7711. bool GetInterceptNetworkUpdate(const String&) const;
  7712. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7713. Component GetParentComponent(const String&, bool = false) const;
  7714. ScriptObject GetScriptObject() const;
  7715. ScriptObject GetScriptObject(const String&) const;
  7716. bool HasComponent(const String&) const;
  7717. bool HasSubscribedToEvent(Object, const String&);
  7718. bool HasSubscribedToEvent(const String&);
  7719. bool HasTag(const String&);
  7720. bool IsChildOf(Node) const;
  7721. bool Load(File);
  7722. bool Load(VectorBuffer&);
  7723. bool LoadJSON(const JSONValue&);
  7724. bool LoadXML(const XMLElement&);
  7725. Vector3 LocalToWorld(const Vector3&) const;
  7726. Vector3 LocalToWorld(const Vector4&) const;
  7727. Vector2 LocalToWorld2D(const Vector2&) const;
  7728. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7729. void MarkDirty();
  7730. void MarkNetworkUpdate() const;
  7731. void Pitch(float, TransformSpace = TS_LOCAL);
  7732. void Remove();
  7733. void RemoveAllChildren();
  7734. void RemoveAllComponents();
  7735. void RemoveAllTags();
  7736. void RemoveAttributeAnimation(const String&);
  7737. void RemoveChild(Node);
  7738. void RemoveChildren(bool, bool, bool);
  7739. void RemoveComponent(Component);
  7740. void RemoveComponent(const String&);
  7741. void RemoveComponents(bool, bool);
  7742. void RemoveComponents(const String&);
  7743. void RemoveInstanceDefault();
  7744. void RemoveObjectAnimation();
  7745. bool RemoveTag(const String&);
  7746. void ReorderComponent(Component, uint);
  7747. void ResetDeepEnabled();
  7748. void ResetToDefault();
  7749. void Roll(float, TransformSpace = TS_LOCAL);
  7750. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7751. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7752. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7753. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7754. bool Save(File) const;
  7755. bool Save(VectorBuffer&) const;
  7756. bool SaveJSON(File);
  7757. bool SaveJSON(JSONValue&) const;
  7758. bool SaveJSON(VectorBuffer&);
  7759. bool SaveXML(File, const String& = "\t");
  7760. bool SaveXML(VectorBuffer&, const String& = "\t");
  7761. bool SaveXML(XMLElement&) const;
  7762. void Scale(const Vector3&);
  7763. void Scale(float);
  7764. void Scale2D(const Vector2&);
  7765. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7766. void SetAnimationTime(float);
  7767. bool SetAttribute(const String&, const Variant&);
  7768. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7769. void SetAttributeAnimationSpeed(const String&, float);
  7770. void SetAttributeAnimationTime(const String&, float);
  7771. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7772. void SetDeepEnabled(bool);
  7773. void SetEnabledRecursive(bool);
  7774. void SetInterceptNetworkUpdate(const String&, bool);
  7775. void SetPosition2D(float, float);
  7776. void SetScale(float);
  7777. void SetScale2D(float, float);
  7778. void SetTransform(const Matrix3x4&);
  7779. void SetTransform(const Vector3&, const Quaternion&);
  7780. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7781. void SetTransform(const Vector3&, const Quaternion&, float);
  7782. void SetTransform2D(const Vector2&, float);
  7783. void SetTransform2D(const Vector2&, float, const Vector2&);
  7784. void SetTransform2D(const Vector2&, float, float);
  7785. void SetWorldTransform(const Vector3&, const Quaternion&);
  7786. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7787. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7788. void SetWorldTransform2D(const Vector2&, float);
  7789. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7790. void SetWorldTransform2D(const Vector2&, float, float);
  7791. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7792. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7793. Vector3 WorldToLocal(const Vector3&) const;
  7794. Vector3 WorldToLocal(const Vector4&) const;
  7795. Vector2 WorldToLocal2D(const Vector2&) const;
  7796. void Yaw(float, TransformSpace = TS_LOCAL);
  7797. // Properties:
  7798. /* readonly */
  7799. Array<Node> allChildrenByName;
  7800. bool animationEnabled;
  7801. /* readonly */
  7802. Array<Variant> attributeDefaults;
  7803. /* readonly */
  7804. Array<AttributeInfo> attributeInfos;
  7805. Array<Variant> attributes;
  7806. /* readonly */
  7807. String category;
  7808. /* readonly */
  7809. Array<Node> children;
  7810. /* readonly */
  7811. Array<Node> childrenByName;
  7812. /* readonly */
  7813. Array<Component> components;
  7814. Vector3 direction;
  7815. bool enabled;
  7816. /* readonly */
  7817. bool enabledSelf;
  7818. uint id;
  7819. String name;
  7820. /* readonly */
  7821. uint numAllChildren;
  7822. /* readonly */
  7823. uint numAttributes;
  7824. /* readonly */
  7825. uint numChildren;
  7826. /* readonly */
  7827. uint numComponents;
  7828. ObjectAnimation objectAnimation;
  7829. Connection owner;
  7830. Node parent;
  7831. Vector3 position;
  7832. Vector2 position2D;
  7833. /* readonly */
  7834. int refs;
  7835. /* readonly */
  7836. bool replicated;
  7837. /* readonly */
  7838. Vector3 right;
  7839. Quaternion rotation;
  7840. float rotation2D;
  7841. Vector3 scale;
  7842. Vector2 scale2D;
  7843. /* readonly */
  7844. Scene scene;
  7845. /* readonly */
  7846. ScriptObject scriptObject;
  7847. /* readonly */
  7848. Vector3 signedWorldScale;
  7849. /* readonly */
  7850. Array<String> tags;
  7851. bool temporary;
  7852. /* readonly */
  7853. Matrix3x4 transform;
  7854. /* readonly */
  7855. StringHash type;
  7856. /* readonly */
  7857. String typeName;
  7858. /* readonly */
  7859. Vector3 up;
  7860. /* readonly */
  7861. VariantMap vars;
  7862. /* readonly */
  7863. int weakRefs;
  7864. Vector3 worldDirection;
  7865. Vector3 worldPosition;
  7866. Vector2 worldPosition2D;
  7867. /* readonly */
  7868. Vector3 worldRight;
  7869. Quaternion worldRotation;
  7870. float worldRotation2D;
  7871. Vector3 worldScale;
  7872. Vector2 worldScale2D;
  7873. /* readonly */
  7874. Matrix3x4 worldTransform;
  7875. /* readonly */
  7876. Vector3 worldUp;
  7877. };
  7878. class Object
  7879. {
  7880. public:
  7881. // Methods:
  7882. bool HasSubscribedToEvent(Object, const String&);
  7883. bool HasSubscribedToEvent(const String&);
  7884. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7885. // Properties:
  7886. /* readonly */
  7887. String category;
  7888. /* readonly */
  7889. int refs;
  7890. /* readonly */
  7891. StringHash type;
  7892. /* readonly */
  7893. String typeName;
  7894. /* readonly */
  7895. int weakRefs;
  7896. };
  7897. class ObjectAnimation
  7898. {
  7899. public:
  7900. ObjectAnimation();
  7901. ObjectAnimation(const String&in);
  7902. // Methods:
  7903. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7904. ValueAnimation GetAttributeAnimation(const String&) const;
  7905. float GetAttributeAnimationSpeed(const String&) const;
  7906. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7907. bool HasSubscribedToEvent(Object, const String&);
  7908. bool HasSubscribedToEvent(const String&);
  7909. bool Load(File);
  7910. bool Load(VectorBuffer&);
  7911. bool Load(const String&);
  7912. void RemoveAttributeAnimation(ValueAnimation);
  7913. void RemoveAttributeAnimation(const String&);
  7914. bool Save(File) const;
  7915. bool Save(VectorBuffer&) const;
  7916. bool Save(const String&) const;
  7917. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7918. // Properties:
  7919. /* readonly */
  7920. Array<Variant> attributeAnimations;
  7921. /* readonly */
  7922. String category;
  7923. /* readonly */
  7924. uint memoryUse;
  7925. String name;
  7926. /* readonly */
  7927. int refs;
  7928. /* readonly */
  7929. Array<Variant> speeds;
  7930. /* readonly */
  7931. StringHash type;
  7932. /* readonly */
  7933. String typeName;
  7934. /* readonly */
  7935. uint useTimer;
  7936. /* readonly */
  7937. int weakRefs;
  7938. /* readonly */
  7939. Array<Variant> wrapModes;
  7940. };
  7941. class Obstacle
  7942. {
  7943. public:
  7944. // Methods:
  7945. void ApplyAttributes();
  7946. void DrawDebugGeometry(DebugRenderer, bool);
  7947. void DrawDebugGeometry(bool);
  7948. Variant GetAttribute(const String&) const;
  7949. ValueAnimation GetAttributeAnimation(const String&) const;
  7950. float GetAttributeAnimationSpeed(const String&) const;
  7951. float GetAttributeAnimationTime(const String&) const;
  7952. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7953. Variant GetAttributeDefault(const String&) const;
  7954. bool GetInterceptNetworkUpdate(const String&) const;
  7955. bool HasSubscribedToEvent(Object, const String&);
  7956. bool HasSubscribedToEvent(const String&);
  7957. bool Load(File);
  7958. bool Load(VectorBuffer&);
  7959. bool LoadJSON(const JSONValue&);
  7960. bool LoadXML(const XMLElement&);
  7961. void MarkNetworkUpdate() const;
  7962. void Remove();
  7963. void RemoveAttributeAnimation(const String&);
  7964. void RemoveInstanceDefault();
  7965. void RemoveObjectAnimation();
  7966. void ResetToDefault();
  7967. bool Save(File) const;
  7968. bool Save(VectorBuffer&) const;
  7969. bool SaveJSON(JSONValue&) const;
  7970. bool SaveXML(XMLElement&) const;
  7971. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7972. void SetAnimationTime(float);
  7973. bool SetAttribute(const String&, const Variant&);
  7974. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7975. void SetAttributeAnimationSpeed(const String&, float);
  7976. void SetAttributeAnimationTime(const String&, float);
  7977. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7978. void SetInterceptNetworkUpdate(const String&, bool);
  7979. // Properties:
  7980. bool animationEnabled;
  7981. /* readonly */
  7982. Array<Variant> attributeDefaults;
  7983. /* readonly */
  7984. Array<AttributeInfo> attributeInfos;
  7985. Array<Variant> attributes;
  7986. /* readonly */
  7987. String category;
  7988. bool enabled;
  7989. /* readonly */
  7990. bool enabledEffective;
  7991. float height;
  7992. /* readonly */
  7993. uint id;
  7994. /* readonly */
  7995. Node node;
  7996. /* readonly */
  7997. uint numAttributes;
  7998. ObjectAnimation objectAnimation;
  7999. /* readonly */
  8000. uint obstacleId;
  8001. float radius;
  8002. /* readonly */
  8003. int refs;
  8004. /* readonly */
  8005. bool replicated;
  8006. bool temporary;
  8007. /* readonly */
  8008. StringHash type;
  8009. /* readonly */
  8010. String typeName;
  8011. /* readonly */
  8012. int weakRefs;
  8013. };
  8014. class Octree
  8015. {
  8016. public:
  8017. // Methods:
  8018. void AddManualDrawable(Drawable);
  8019. void ApplyAttributes();
  8020. void DrawDebugGeometry(DebugRenderer, bool);
  8021. void DrawDebugGeometry(bool) const;
  8022. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8023. Variant GetAttribute(const String&) const;
  8024. ValueAnimation GetAttributeAnimation(const String&) const;
  8025. float GetAttributeAnimationSpeed(const String&) const;
  8026. float GetAttributeAnimationTime(const String&) const;
  8027. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8028. Variant GetAttributeDefault(const String&) const;
  8029. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8030. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8031. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8032. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8033. bool GetInterceptNetworkUpdate(const String&) const;
  8034. bool HasSubscribedToEvent(Object, const String&);
  8035. bool HasSubscribedToEvent(const String&);
  8036. bool Load(File);
  8037. bool Load(VectorBuffer&);
  8038. bool LoadJSON(const JSONValue&);
  8039. bool LoadXML(const XMLElement&);
  8040. void MarkNetworkUpdate() const;
  8041. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  8042. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  8043. void Remove();
  8044. void RemoveAttributeAnimation(const String&);
  8045. void RemoveInstanceDefault();
  8046. void RemoveManualDrawable(Drawable);
  8047. void RemoveObjectAnimation();
  8048. void ResetToDefault();
  8049. bool Save(File) const;
  8050. bool Save(VectorBuffer&) const;
  8051. bool SaveJSON(JSONValue&) const;
  8052. bool SaveXML(XMLElement&) const;
  8053. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8054. void SetAnimationTime(float);
  8055. bool SetAttribute(const String&, const Variant&);
  8056. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8057. void SetAttributeAnimationSpeed(const String&, float);
  8058. void SetAttributeAnimationTime(const String&, float);
  8059. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8060. void SetInterceptNetworkUpdate(const String&, bool);
  8061. void SetSize(const BoundingBox&, uint);
  8062. // Properties:
  8063. bool animationEnabled;
  8064. /* readonly */
  8065. Array<Variant> attributeDefaults;
  8066. /* readonly */
  8067. Array<AttributeInfo> attributeInfos;
  8068. Array<Variant> attributes;
  8069. /* readonly */
  8070. String category;
  8071. bool enabled;
  8072. /* readonly */
  8073. bool enabledEffective;
  8074. /* readonly */
  8075. uint id;
  8076. /* readonly */
  8077. Node node;
  8078. /* readonly */
  8079. uint numAttributes;
  8080. /* readonly */
  8081. uint numLevels;
  8082. ObjectAnimation objectAnimation;
  8083. /* readonly */
  8084. int refs;
  8085. /* readonly */
  8086. bool replicated;
  8087. bool temporary;
  8088. /* readonly */
  8089. StringHash type;
  8090. /* readonly */
  8091. String typeName;
  8092. /* readonly */
  8093. int weakRefs;
  8094. /* readonly */
  8095. BoundingBox worldBoundingBox;
  8096. };
  8097. class OffMeshConnection
  8098. {
  8099. public:
  8100. // Methods:
  8101. void ApplyAttributes();
  8102. void DrawDebugGeometry(DebugRenderer, bool);
  8103. Variant GetAttribute(const String&) const;
  8104. ValueAnimation GetAttributeAnimation(const String&) const;
  8105. float GetAttributeAnimationSpeed(const String&) const;
  8106. float GetAttributeAnimationTime(const String&) const;
  8107. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8108. Variant GetAttributeDefault(const String&) const;
  8109. bool GetInterceptNetworkUpdate(const String&) const;
  8110. bool HasSubscribedToEvent(Object, const String&);
  8111. bool HasSubscribedToEvent(const String&);
  8112. bool Load(File);
  8113. bool Load(VectorBuffer&);
  8114. bool LoadJSON(const JSONValue&);
  8115. bool LoadXML(const XMLElement&);
  8116. void MarkNetworkUpdate() const;
  8117. void Remove();
  8118. void RemoveAttributeAnimation(const String&);
  8119. void RemoveInstanceDefault();
  8120. void RemoveObjectAnimation();
  8121. void ResetToDefault();
  8122. bool Save(File) const;
  8123. bool Save(VectorBuffer&) const;
  8124. bool SaveJSON(JSONValue&) const;
  8125. bool SaveXML(XMLElement&) const;
  8126. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8127. void SetAnimationTime(float);
  8128. bool SetAttribute(const String&, const Variant&);
  8129. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8130. void SetAttributeAnimationSpeed(const String&, float);
  8131. void SetAttributeAnimationTime(const String&, float);
  8132. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8133. void SetInterceptNetworkUpdate(const String&, bool);
  8134. // Properties:
  8135. bool animationEnabled;
  8136. uint areaID;
  8137. /* readonly */
  8138. Array<Variant> attributeDefaults;
  8139. /* readonly */
  8140. Array<AttributeInfo> attributeInfos;
  8141. Array<Variant> attributes;
  8142. bool bidirectional;
  8143. /* readonly */
  8144. String category;
  8145. bool enabled;
  8146. /* readonly */
  8147. bool enabledEffective;
  8148. Node endPoint;
  8149. /* readonly */
  8150. uint id;
  8151. uint mask;
  8152. /* readonly */
  8153. Node node;
  8154. /* readonly */
  8155. uint numAttributes;
  8156. ObjectAnimation objectAnimation;
  8157. float radius;
  8158. /* readonly */
  8159. int refs;
  8160. /* readonly */
  8161. bool replicated;
  8162. bool temporary;
  8163. /* readonly */
  8164. StringHash type;
  8165. /* readonly */
  8166. String typeName;
  8167. /* readonly */
  8168. int weakRefs;
  8169. };
  8170. class PackageFile
  8171. {
  8172. public:
  8173. PackageFile();
  8174. PackageFile(const String&in, uint startOffset = 0);
  8175. // Methods:
  8176. bool Exists(const String&) const;
  8177. Array<String> GetEntryNames() const;
  8178. bool HasSubscribedToEvent(Object, const String&);
  8179. bool HasSubscribedToEvent(const String&);
  8180. bool Open(const String&, uint = 0) const;
  8181. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8182. bool compressed() const;
  8183. // Properties:
  8184. /* readonly */
  8185. String category;
  8186. /* readonly */
  8187. uint checksum;
  8188. /* readonly */
  8189. String name;
  8190. /* readonly */
  8191. uint numFiles;
  8192. /* readonly */
  8193. int refs;
  8194. /* readonly */
  8195. uint totalDataSize;
  8196. /* readonly */
  8197. uint totalSize;
  8198. /* readonly */
  8199. StringHash type;
  8200. /* readonly */
  8201. String typeName;
  8202. /* readonly */
  8203. int weakRefs;
  8204. };
  8205. class ParticleEffect
  8206. {
  8207. public:
  8208. ParticleEffect();
  8209. ParticleEffect(const String&in);
  8210. // Methods:
  8211. void AddColorFrame(ColorFrame);
  8212. void AddColorTime(const Color&, float);
  8213. void AddTextureFrame(TextureFrame);
  8214. void AddTextureTime(const Rect&, float);
  8215. ParticleEffect Clone(const String& = String ( )) const;
  8216. ColorFrame GetColorFrame(uint) const;
  8217. TextureFrame GetTextureFrame(uint) const;
  8218. bool HasSubscribedToEvent(Object, const String&);
  8219. bool HasSubscribedToEvent(const String&);
  8220. bool Load(File);
  8221. bool Load(VectorBuffer&);
  8222. bool Load(const String&);
  8223. bool Load(const XMLElement&);
  8224. void RemoveColorFrame(uint);
  8225. void RemoveTextureFrame(uint);
  8226. bool Save(File) const;
  8227. bool Save(VectorBuffer&) const;
  8228. bool Save(XMLElement&) const;
  8229. bool Save(const String&) const;
  8230. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8231. void SetColorFrame(uint, ColorFrame);
  8232. void SetTextureFrame(uint, TextureFrame);
  8233. void SortColorFrames();
  8234. void SortTextureFrames();
  8235. // Properties:
  8236. float activeTime;
  8237. float animationLodBias;
  8238. /* readonly */
  8239. String category;
  8240. Vector3 constantForce;
  8241. float dampingForce;
  8242. Vector3 emitterSize;
  8243. EmitterType emitterType;
  8244. FaceCameraMode faceCameraMode;
  8245. bool fixedScreenSize;
  8246. float inactiveTime;
  8247. Material material;
  8248. Vector3 maxDirection;
  8249. float maxEmissionRate;
  8250. Vector2 maxParticleSize;
  8251. float maxRotation;
  8252. float maxRotationSpeed;
  8253. float maxTimeToLive;
  8254. float maxVelocity;
  8255. /* readonly */
  8256. uint memoryUse;
  8257. Vector3 minDirection;
  8258. float minEmissionRate;
  8259. Vector2 minParticleSize;
  8260. float minRotation;
  8261. float minRotationSpeed;
  8262. float minTimeToLive;
  8263. float minVelocity;
  8264. String name;
  8265. uint numColorFrames;
  8266. uint numParticles;
  8267. uint numTextureFrames;
  8268. /* readonly */
  8269. int refs;
  8270. bool relative;
  8271. bool scaled;
  8272. float sizeAdd;
  8273. float sizeMul;
  8274. bool sorted;
  8275. /* readonly */
  8276. StringHash type;
  8277. /* readonly */
  8278. String typeName;
  8279. bool updateInvisible;
  8280. /* readonly */
  8281. uint useTimer;
  8282. /* readonly */
  8283. int weakRefs;
  8284. };
  8285. class ParticleEffect2D
  8286. {
  8287. public:
  8288. ParticleEffect2D();
  8289. ParticleEffect2D(const String&in);
  8290. // Methods:
  8291. ParticleEffect2D Clone(const String& = String ( )) const;
  8292. bool HasSubscribedToEvent(Object, const String&);
  8293. bool HasSubscribedToEvent(const String&);
  8294. bool Load(File);
  8295. bool Load(VectorBuffer&);
  8296. bool Load(const String&);
  8297. bool Save(File) const;
  8298. bool Save(VectorBuffer&) const;
  8299. bool Save(const String&) const;
  8300. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8301. // Properties:
  8302. /* readonly */
  8303. String category;
  8304. /* readonly */
  8305. uint memoryUse;
  8306. String name;
  8307. /* readonly */
  8308. int refs;
  8309. /* readonly */
  8310. StringHash type;
  8311. /* readonly */
  8312. String typeName;
  8313. /* readonly */
  8314. uint useTimer;
  8315. /* readonly */
  8316. int weakRefs;
  8317. };
  8318. class ParticleEmitter
  8319. {
  8320. public:
  8321. // Methods:
  8322. void ApplyAttributes();
  8323. void ApplyEffect();
  8324. void Commit();
  8325. void DrawDebugGeometry(DebugRenderer, bool);
  8326. Variant GetAttribute(const String&) const;
  8327. ValueAnimation GetAttributeAnimation(const String&) const;
  8328. float GetAttributeAnimationSpeed(const String&) const;
  8329. float GetAttributeAnimationTime(const String&) const;
  8330. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8331. Variant GetAttributeDefault(const String&) const;
  8332. bool GetInterceptNetworkUpdate(const String&) const;
  8333. bool HasSubscribedToEvent(Object, const String&);
  8334. bool HasSubscribedToEvent(const String&);
  8335. bool IsInView(Camera) const;
  8336. bool Load(File);
  8337. bool Load(VectorBuffer&);
  8338. bool LoadJSON(const JSONValue&);
  8339. bool LoadXML(const XMLElement&);
  8340. void MarkNetworkUpdate() const;
  8341. void Remove();
  8342. void RemoveAllParticles();
  8343. void RemoveAttributeAnimation(const String&);
  8344. void RemoveInstanceDefault();
  8345. void RemoveObjectAnimation();
  8346. void Reset();
  8347. void ResetEmissionTimer();
  8348. void ResetToDefault();
  8349. bool Save(File) const;
  8350. bool Save(VectorBuffer&) const;
  8351. bool SaveJSON(JSONValue&) const;
  8352. bool SaveXML(XMLElement&) const;
  8353. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8354. void SetAnimationTime(float);
  8355. bool SetAttribute(const String&, const Variant&);
  8356. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8357. void SetAttributeAnimationSpeed(const String&, float);
  8358. void SetAttributeAnimationTime(const String&, float);
  8359. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8360. void SetInterceptNetworkUpdate(const String&, bool);
  8361. // Properties:
  8362. bool animationEnabled;
  8363. float animationLodBias;
  8364. /* readonly */
  8365. Array<Variant> attributeDefaults;
  8366. /* readonly */
  8367. Array<AttributeInfo> attributeInfos;
  8368. Array<Variant> attributes;
  8369. AutoRemoveMode autoRemoveMode;
  8370. /* readonly */
  8371. Array<Billboard> billboards;
  8372. /* readonly */
  8373. BoundingBox boundingBox;
  8374. bool castShadows;
  8375. /* readonly */
  8376. String category;
  8377. float drawDistance;
  8378. ParticleEffect effect;
  8379. bool emitting;
  8380. bool enabled;
  8381. /* readonly */
  8382. bool enabledEffective;
  8383. FaceCameraMode faceCameraMode;
  8384. bool fixedScreenSize;
  8385. /* readonly */
  8386. uint id;
  8387. /* readonly */
  8388. bool inView;
  8389. uint lightMask;
  8390. float lodBias;
  8391. Material material;
  8392. uint maxLights;
  8393. /* readonly */
  8394. Node node;
  8395. /* readonly */
  8396. uint numAttributes;
  8397. uint numBillboards;
  8398. uint numParticles;
  8399. ObjectAnimation objectAnimation;
  8400. bool occludee;
  8401. bool occluder;
  8402. /* readonly */
  8403. int refs;
  8404. bool relative;
  8405. /* readonly */
  8406. bool replicated;
  8407. bool scaled;
  8408. bool serializeParticles;
  8409. float shadowDistance;
  8410. uint shadowMask;
  8411. bool sorted;
  8412. bool temporary;
  8413. /* readonly */
  8414. StringHash type;
  8415. /* readonly */
  8416. String typeName;
  8417. uint viewMask;
  8418. /* readonly */
  8419. int weakRefs;
  8420. /* readonly */
  8421. BoundingBox worldBoundingBox;
  8422. /* readonly */
  8423. Zone zone;
  8424. uint zoneMask;
  8425. };
  8426. class ParticleEmitter2D
  8427. {
  8428. public:
  8429. // Methods:
  8430. void ApplyAttributes();
  8431. void DrawDebugGeometry(DebugRenderer, bool);
  8432. Variant GetAttribute(const String&) const;
  8433. ValueAnimation GetAttributeAnimation(const String&) const;
  8434. float GetAttributeAnimationSpeed(const String&) const;
  8435. float GetAttributeAnimationTime(const String&) const;
  8436. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8437. Variant GetAttributeDefault(const String&) const;
  8438. bool GetInterceptNetworkUpdate(const String&) const;
  8439. bool HasSubscribedToEvent(Object, const String&);
  8440. bool HasSubscribedToEvent(const String&);
  8441. bool IsInView(Camera) const;
  8442. bool Load(File);
  8443. bool Load(VectorBuffer&);
  8444. bool LoadJSON(const JSONValue&);
  8445. bool LoadXML(const XMLElement&);
  8446. void MarkNetworkUpdate() const;
  8447. void Remove();
  8448. void RemoveAttributeAnimation(const String&);
  8449. void RemoveInstanceDefault();
  8450. void RemoveObjectAnimation();
  8451. void ResetToDefault();
  8452. bool Save(File) const;
  8453. bool Save(VectorBuffer&) const;
  8454. bool SaveJSON(JSONValue&) const;
  8455. bool SaveXML(XMLElement&) const;
  8456. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8457. void SetAnimationTime(float);
  8458. bool SetAttribute(const String&, const Variant&);
  8459. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8460. void SetAttributeAnimationSpeed(const String&, float);
  8461. void SetAttributeAnimationTime(const String&, float);
  8462. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8463. void SetInterceptNetworkUpdate(const String&, bool);
  8464. // Properties:
  8465. bool animationEnabled;
  8466. /* readonly */
  8467. Array<Variant> attributeDefaults;
  8468. /* readonly */
  8469. Array<AttributeInfo> attributeInfos;
  8470. Array<Variant> attributes;
  8471. BlendMode blendMode;
  8472. /* readonly */
  8473. BoundingBox boundingBox;
  8474. bool castShadows;
  8475. /* readonly */
  8476. String category;
  8477. float drawDistance;
  8478. ParticleEffect2D effect;
  8479. bool emitting;
  8480. bool enabled;
  8481. /* readonly */
  8482. bool enabledEffective;
  8483. /* readonly */
  8484. uint id;
  8485. /* readonly */
  8486. bool inView;
  8487. int layer;
  8488. uint lightMask;
  8489. float lodBias;
  8490. uint maxLights;
  8491. /* readonly */
  8492. Node node;
  8493. /* readonly */
  8494. uint numAttributes;
  8495. ObjectAnimation objectAnimation;
  8496. bool occludee;
  8497. bool occluder;
  8498. int orderInLayer;
  8499. /* readonly */
  8500. int refs;
  8501. /* readonly */
  8502. bool replicated;
  8503. float shadowDistance;
  8504. uint shadowMask;
  8505. Sprite2D sprite;
  8506. bool temporary;
  8507. /* readonly */
  8508. StringHash type;
  8509. /* readonly */
  8510. String typeName;
  8511. uint viewMask;
  8512. /* readonly */
  8513. int weakRefs;
  8514. /* readonly */
  8515. BoundingBox worldBoundingBox;
  8516. uint zoneMask;
  8517. };
  8518. class Pass
  8519. {
  8520. public:
  8521. // Properties:
  8522. bool alphaToCoverage;
  8523. BlendMode blendMode;
  8524. CullMode cullMode;
  8525. CompareMode depthTestMode;
  8526. bool depthWrite;
  8527. bool desktop;
  8528. PassLightingMode lightingMode;
  8529. String pixelShader;
  8530. String pixelShaderDefineExcludes;
  8531. String pixelShaderDefines;
  8532. /* readonly */
  8533. int refs;
  8534. String vertexShader;
  8535. String vertexShaderDefineExcludes;
  8536. String vertexShaderDefines;
  8537. /* readonly */
  8538. int weakRefs;
  8539. };
  8540. class PhysicsRaycastResult
  8541. {
  8542. public:
  8543. ~PhysicsRaycastResult();
  8544. PhysicsRaycastResult();
  8545. // Properties:
  8546. /* readonly */
  8547. RigidBody body;
  8548. float distance;
  8549. float hitFraction;
  8550. Vector3 normal;
  8551. Vector3 position;
  8552. };
  8553. class PhysicsRaycastResult2D
  8554. {
  8555. public:
  8556. ~PhysicsRaycastResult2D();
  8557. PhysicsRaycastResult2D();
  8558. // Properties:
  8559. /* readonly */
  8560. RigidBody2D body;
  8561. float distance;
  8562. Vector2 normal;
  8563. Vector2 position;
  8564. };
  8565. class PhysicsWorld
  8566. {
  8567. public:
  8568. // Methods:
  8569. void ApplyAttributes();
  8570. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  8571. void DrawDebugGeometry(DebugRenderer, bool);
  8572. void DrawDebugGeometry(bool);
  8573. Variant GetAttribute(const String&) const;
  8574. ValueAnimation GetAttributeAnimation(const String&) const;
  8575. float GetAttributeAnimationSpeed(const String&) const;
  8576. float GetAttributeAnimationTime(const String&) const;
  8577. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8578. Variant GetAttributeDefault(const String&) const;
  8579. Array<RigidBody> GetCollidingBodies(RigidBody);
  8580. bool GetInterceptNetworkUpdate(const String&) const;
  8581. Array<RigidBody> GetRigidBodies(RigidBody);
  8582. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  8583. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  8584. bool HasSubscribedToEvent(Object, const String&);
  8585. bool HasSubscribedToEvent(const String&);
  8586. bool Load(File);
  8587. bool Load(VectorBuffer&);
  8588. bool LoadJSON(const JSONValue&);
  8589. bool LoadXML(const XMLElement&);
  8590. void MarkNetworkUpdate() const;
  8591. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  8592. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  8593. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  8594. void Remove();
  8595. void RemoveAttributeAnimation(const String&);
  8596. void RemoveCachedGeometry(Model);
  8597. void RemoveInstanceDefault();
  8598. void RemoveObjectAnimation();
  8599. void ResetToDefault();
  8600. bool Save(File) const;
  8601. bool Save(VectorBuffer&) const;
  8602. bool SaveJSON(JSONValue&) const;
  8603. bool SaveXML(XMLElement&) const;
  8604. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8605. void SetAnimationTime(float);
  8606. bool SetAttribute(const String&, const Variant&);
  8607. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8608. void SetAttributeAnimationSpeed(const String&, float);
  8609. void SetAttributeAnimationTime(const String&, float);
  8610. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8611. void SetInterceptNetworkUpdate(const String&, bool);
  8612. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  8613. void Update(float);
  8614. void UpdateCollisions();
  8615. // Properties:
  8616. bool animationEnabled;
  8617. /* readonly */
  8618. Array<Variant> attributeDefaults;
  8619. /* readonly */
  8620. Array<AttributeInfo> attributeInfos;
  8621. Array<Variant> attributes;
  8622. /* readonly */
  8623. String category;
  8624. bool enabled;
  8625. /* readonly */
  8626. bool enabledEffective;
  8627. int fps;
  8628. Vector3 gravity;
  8629. /* readonly */
  8630. uint id;
  8631. bool internalEdge;
  8632. bool interpolation;
  8633. int maxSubSteps;
  8634. /* readonly */
  8635. Node node;
  8636. /* readonly */
  8637. uint numAttributes;
  8638. int numIterations;
  8639. ObjectAnimation objectAnimation;
  8640. /* readonly */
  8641. int refs;
  8642. /* readonly */
  8643. bool replicated;
  8644. bool splitImpulse;
  8645. bool temporary;
  8646. /* readonly */
  8647. StringHash type;
  8648. /* readonly */
  8649. String typeName;
  8650. bool updateEnabled;
  8651. /* readonly */
  8652. int weakRefs;
  8653. };
  8654. class PhysicsWorld2D
  8655. {
  8656. public:
  8657. // Methods:
  8658. void ApplyAttributes();
  8659. void DrawDebugGeometry() const;
  8660. void DrawDebugGeometry(DebugRenderer, bool);
  8661. Variant GetAttribute(const String&) const;
  8662. ValueAnimation GetAttributeAnimation(const String&) const;
  8663. float GetAttributeAnimationSpeed(const String&) const;
  8664. float GetAttributeAnimationTime(const String&) const;
  8665. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8666. Variant GetAttributeDefault(const String&) const;
  8667. bool GetInterceptNetworkUpdate(const String&) const;
  8668. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8669. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8670. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8671. bool HasSubscribedToEvent(Object, const String&);
  8672. bool HasSubscribedToEvent(const String&);
  8673. bool Load(File);
  8674. bool Load(VectorBuffer&);
  8675. bool LoadJSON(const JSONValue&);
  8676. bool LoadXML(const XMLElement&);
  8677. void MarkNetworkUpdate() const;
  8678. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8679. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8680. void Remove();
  8681. void RemoveAttributeAnimation(const String&);
  8682. void RemoveInstanceDefault();
  8683. void RemoveObjectAnimation();
  8684. void ResetToDefault();
  8685. bool Save(File) const;
  8686. bool Save(VectorBuffer&) const;
  8687. bool SaveJSON(JSONValue&) const;
  8688. bool SaveXML(XMLElement&) const;
  8689. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8690. void SetAnimationTime(float);
  8691. bool SetAttribute(const String&, const Variant&);
  8692. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8693. void SetAttributeAnimationSpeed(const String&, float);
  8694. void SetAttributeAnimationTime(const String&, float);
  8695. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8696. void SetInterceptNetworkUpdate(const String&, bool);
  8697. // Properties:
  8698. bool allowSleeping;
  8699. bool animationEnabled;
  8700. /* readonly */
  8701. Array<Variant> attributeDefaults;
  8702. /* readonly */
  8703. Array<AttributeInfo> attributeInfos;
  8704. Array<Variant> attributes;
  8705. bool autoClearForces;
  8706. /* readonly */
  8707. String category;
  8708. bool continuousPhysics;
  8709. bool drawAabb;
  8710. bool drawCenterOfMass;
  8711. bool drawJoint;
  8712. bool drawPair;
  8713. bool drawShape;
  8714. bool enabled;
  8715. /* readonly */
  8716. bool enabledEffective;
  8717. Vector2 gravity;
  8718. /* readonly */
  8719. uint id;
  8720. /* readonly */
  8721. Node node;
  8722. /* readonly */
  8723. uint numAttributes;
  8724. ObjectAnimation objectAnimation;
  8725. uint positionIterations;
  8726. /* readonly */
  8727. int refs;
  8728. /* readonly */
  8729. bool replicated;
  8730. bool subStepping;
  8731. bool temporary;
  8732. /* readonly */
  8733. StringHash type;
  8734. /* readonly */
  8735. String typeName;
  8736. bool updateEnabled;
  8737. uint velocityIterations;
  8738. bool warmStarting;
  8739. /* readonly */
  8740. int weakRefs;
  8741. };
  8742. class Plane
  8743. {
  8744. public:
  8745. Plane();
  8746. Plane(const Plane&in);
  8747. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  8748. Plane(const Vector3&in, const Vector3&in);
  8749. Plane(const Vector4&in);
  8750. // Methods:
  8751. void Define(const Vector3&, const Vector3&);
  8752. void Define(const Vector3&, const Vector3&, const Vector3&);
  8753. void Define(const Vector4&);
  8754. float Distance(const Vector3&) const;
  8755. Vector3 Project(const Vector3&) const;
  8756. Vector3 Reflect(const Vector3&) const;
  8757. Vector4 ToVector4() const;
  8758. void Transform(const Matrix3&);
  8759. void Transform(const Matrix3x4&);
  8760. void Transform(const Matrix4&);
  8761. Plane Transformed(const Matrix3&) const;
  8762. Plane Transformed(const Matrix3x4&) const;
  8763. Plane Transformed(const Matrix4&) const;
  8764. // Properties:
  8765. Vector3 absNormal;
  8766. float d;
  8767. Vector3 normal;
  8768. /* readonly */
  8769. Matrix3x4 reflectionMatrix;
  8770. };
  8771. class Polyhedron
  8772. {
  8773. public:
  8774. ~Polyhedron();
  8775. Polyhedron();
  8776. Polyhedron(const Polyhedron&in);
  8777. Polyhedron(const BoundingBox&in);
  8778. Polyhedron(const Frustum&in);
  8779. // Methods:
  8780. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8781. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8782. void AddFace(const Array<Vector3>);
  8783. void Clear();
  8784. void Clip(const BoundingBox&);
  8785. void Clip(const Frustum&);
  8786. void Define(const BoundingBox&);
  8787. void Define(const Frustum&);
  8788. void Transform(const Matrix3&);
  8789. void Transform(const Matrix3x4&);
  8790. Polyhedron Transformed(const Matrix3&) const;
  8791. Polyhedron Transformed(const Matrix3x4&) const;
  8792. // Properties:
  8793. /* readonly */
  8794. Array<Array<Vector3>> face;
  8795. /* readonly */
  8796. uint numFaces;
  8797. };
  8798. class ProgressBar
  8799. {
  8800. public:
  8801. // Methods:
  8802. void ChangeValue(float);
  8803. bool HasSubscribedToEvent(Object, const String&);
  8804. bool HasSubscribedToEvent(const String&);
  8805. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8806. void SetLoadingPercentStyle(const String&);
  8807. // Properties:
  8808. /* readonly */
  8809. String category;
  8810. /* readonly */
  8811. BorderImage knob;
  8812. Orientation orientation;
  8813. float range;
  8814. /* readonly */
  8815. int refs;
  8816. bool showPercentText;
  8817. /* readonly */
  8818. StringHash type;
  8819. /* readonly */
  8820. String typeName;
  8821. float value;
  8822. /* readonly */
  8823. int weakRefs;
  8824. };
  8825. class PropertySet2D
  8826. {
  8827. public:
  8828. // Methods:
  8829. bool HasProperty(const String&) const;
  8830. const String& GetProperty(const String&) const;
  8831. // Properties:
  8832. /* readonly */
  8833. int refs;
  8834. /* readonly */
  8835. int weakRefs;
  8836. };
  8837. class Quaternion
  8838. {
  8839. public:
  8840. Quaternion();
  8841. Quaternion(const Quaternion&in);
  8842. Quaternion(float, float, float, float);
  8843. Quaternion(float, const Vector3&in);
  8844. Quaternion(float);
  8845. Quaternion(float, float, float);
  8846. Quaternion(const Vector3&in);
  8847. Quaternion(const Vector3&in, const Vector3&in);
  8848. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  8849. Quaternion(const Matrix3&in);
  8850. // Methods:
  8851. Quaternion Conjugate() const;
  8852. float DotProduct(const Quaternion&) const;
  8853. bool Equals(const Quaternion&) const;
  8854. void FromAngleAxis(float, const Vector3&);
  8855. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8856. void FromEulerAngles(float, float, float);
  8857. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8858. void FromRotationMatrix(const Matrix3&);
  8859. void FromRotationTo(const Vector3&, const Vector3&);
  8860. Quaternion Inverse() const;
  8861. bool IsNaN() const;
  8862. float LengthSquared() const;
  8863. Quaternion Nlerp(const Quaternion&, float, bool) const;
  8864. void Normalize();
  8865. Quaternion Normalized() const;
  8866. Quaternion Slerp(const Quaternion&, float) const;
  8867. String ToString() const;
  8868. // Properties:
  8869. /* readonly */
  8870. float angle;
  8871. /* readonly */
  8872. Vector3 axis;
  8873. /* readonly */
  8874. Vector3 eulerAngles;
  8875. /* readonly */
  8876. float pitch;
  8877. /* readonly */
  8878. float roll;
  8879. /* readonly */
  8880. Matrix3 rotationMatrix;
  8881. float w;
  8882. float x;
  8883. float y;
  8884. /* readonly */
  8885. float yaw;
  8886. float z;
  8887. };
  8888. class Ray
  8889. {
  8890. public:
  8891. Ray();
  8892. Ray(const Ray&in);
  8893. Ray(const Vector3&in, const Vector3&in);
  8894. // Methods:
  8895. Vector3 ClosestPoint(const Ray&) const;
  8896. void Define(const Vector3&, const Vector3&);
  8897. float Distance(const Vector3&) const;
  8898. float HitDistance(const BoundingBox&) const;
  8899. float HitDistance(const Frustum&, bool = true) const;
  8900. float HitDistance(const Plane&) const;
  8901. float HitDistance(const Sphere&) const;
  8902. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8903. Vector3 Project(const Vector3&) const;
  8904. Ray Transformed(const Matrix3x4&) const;
  8905. // Properties:
  8906. Vector3 direction;
  8907. Vector3 origin;
  8908. };
  8909. class RayQueryResult
  8910. {
  8911. public:
  8912. RayQueryResult();
  8913. // Properties:
  8914. float distance;
  8915. /* readonly */
  8916. Drawable drawable;
  8917. /* readonly */
  8918. Node node;
  8919. Vector3 normal;
  8920. Vector3 position;
  8921. uint subObject;
  8922. Vector2 textureUV;
  8923. };
  8924. class RaycastVehicle
  8925. {
  8926. public:
  8927. // Methods:
  8928. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  8929. void ApplyAttributes();
  8930. void DrawDebugGeometry(DebugRenderer, bool);
  8931. Variant GetAttribute(const String&) const;
  8932. ValueAnimation GetAttributeAnimation(const String&) const;
  8933. float GetAttributeAnimationSpeed(const String&) const;
  8934. float GetAttributeAnimationTime(const String&) const;
  8935. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8936. Variant GetAttributeDefault(const String&) const;
  8937. float GetBrake(int);
  8938. Vector3 GetContactNormal(int);
  8939. Vector3 GetContactPosition(int);
  8940. float GetEngineForce(int);
  8941. bool GetInterceptNetworkUpdate(const String&) const;
  8942. float GetMaxSuspensionTravel(int);
  8943. float GetSteeringValue(int);
  8944. Vector3 GetWheelAxle(int);
  8945. Vector3 GetWheelConnectionPoint(int);
  8946. float GetWheelDampingCompression(int);
  8947. float GetWheelDampingRelaxation(int);
  8948. Vector3 GetWheelDirection(int);
  8949. float GetWheelFrictionSlip(int);
  8950. Node GetWheelNode(int);
  8951. Vector3 GetWheelPosition(int);
  8952. float GetWheelRadius(int);
  8953. float GetWheelRestLength(int);
  8954. float GetWheelRollInfluence(int);
  8955. Vector3 GetWheelRotation(int);
  8956. float GetWheelSideSlipSpeed(int);
  8957. float GetWheelSkidInfo(int);
  8958. float GetWheelSkidInfoCumulative(int);
  8959. float GetWheelSuspensionStiffness(int);
  8960. bool HasSubscribedToEvent(Object, const String&);
  8961. bool HasSubscribedToEvent(const String&);
  8962. void Init();
  8963. bool IsFrontWheel(int);
  8964. bool Load(File);
  8965. bool Load(VectorBuffer&);
  8966. bool LoadJSON(const JSONValue&);
  8967. bool LoadXML(const XMLElement&);
  8968. void MarkNetworkUpdate() const;
  8969. void Remove();
  8970. void RemoveAttributeAnimation(const String&);
  8971. void RemoveInstanceDefault();
  8972. void RemoveObjectAnimation();
  8973. void ResetSuspension();
  8974. void ResetToDefault();
  8975. void ResetWheels();
  8976. bool Save(File) const;
  8977. bool Save(VectorBuffer&) const;
  8978. bool SaveJSON(JSONValue&) const;
  8979. bool SaveXML(XMLElement&) const;
  8980. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8981. void SetAnimationTime(float);
  8982. bool SetAttribute(const String&, const Variant&);
  8983. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8984. void SetAttributeAnimationSpeed(const String&, float);
  8985. void SetAttributeAnimationTime(const String&, float);
  8986. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8987. void SetBrake(int, float);
  8988. void SetEngineForce(int, float);
  8989. void SetInterceptNetworkUpdate(const String&, bool);
  8990. void SetMaxSuspensionTravel(int, float);
  8991. void SetSteeringValue(int, float);
  8992. void SetWheelAxle(int, Vector3);
  8993. void SetWheelDampingCompression(int, float);
  8994. void SetWheelDampingRelaxation(int, float);
  8995. void SetWheelDirection(int, Vector3);
  8996. void SetWheelFrictionSlip(int, float);
  8997. void SetWheelRadius(int, float);
  8998. void SetWheelRestLength(int, float);
  8999. void SetWheelRollInfluence(int, float);
  9000. void SetWheelSkidInfo(int, float);
  9001. void SetWheelSkidInfoCumulative(int, float);
  9002. void SetWheelSuspensionStiffness(int, float);
  9003. void UpdateWheelTransform(int, bool);
  9004. bool WheelIsGrounded(int);
  9005. // Properties:
  9006. bool animationEnabled;
  9007. /* readonly */
  9008. Array<Variant> attributeDefaults;
  9009. /* readonly */
  9010. Array<AttributeInfo> attributeInfos;
  9011. Array<Variant> attributes;
  9012. /* readonly */
  9013. String category;
  9014. bool enabled;
  9015. /* readonly */
  9016. bool enabledEffective;
  9017. /* readonly */
  9018. uint id;
  9019. float inAirRPM;
  9020. float maxSideSlipSpeed;
  9021. /* readonly */
  9022. Node node;
  9023. /* readonly */
  9024. uint numAttributes;
  9025. /* readonly */
  9026. int numWheels;
  9027. ObjectAnimation objectAnimation;
  9028. /* readonly */
  9029. int refs;
  9030. /* readonly */
  9031. bool replicated;
  9032. bool temporary;
  9033. /* readonly */
  9034. StringHash type;
  9035. /* readonly */
  9036. String typeName;
  9037. /* readonly */
  9038. int weakRefs;
  9039. };
  9040. class Rect
  9041. {
  9042. public:
  9043. Rect();
  9044. Rect(const Rect&in);
  9045. Rect(float, float, float, float);
  9046. Rect(const Vector2&in, const Vector2&in);
  9047. Rect(const Vector4&in);
  9048. // Methods:
  9049. void Clear();
  9050. void Clip(const Rect&);
  9051. void Define(const Vector2&);
  9052. void Define(const Vector2&, const Vector2&);
  9053. bool Defined() const;
  9054. bool Equals(const Rect&) const;
  9055. Intersection IsInside(const Rect&) const;
  9056. Intersection IsInside(const Vector2&) const;
  9057. void Merge(const Rect&);
  9058. void Merge(const Vector2&);
  9059. Vector4 ToVector4() const;
  9060. // Properties:
  9061. float bottom;
  9062. /* readonly */
  9063. Vector2 center;
  9064. /* readonly */
  9065. Vector2 halfSize;
  9066. float left;
  9067. Vector2 max;
  9068. Vector2 min;
  9069. float right;
  9070. /* readonly */
  9071. Vector2 size;
  9072. float top;
  9073. };
  9074. class RefCounted
  9075. {
  9076. public:
  9077. // Properties:
  9078. /* readonly */
  9079. int refs;
  9080. /* readonly */
  9081. int weakRefs;
  9082. };
  9083. class RenderPath
  9084. {
  9085. public:
  9086. RenderPath();
  9087. // Methods:
  9088. void AddCommand(const RenderPathCommand&);
  9089. void AddRenderTarget(const RenderTargetInfo&);
  9090. bool Append(XMLFile);
  9091. RenderPath Clone();
  9092. void InsertCommand(uint, const RenderPathCommand&);
  9093. bool Load(XMLFile);
  9094. void RemoveCommand(uint);
  9095. void RemoveCommands(const String&);
  9096. void RemoveRenderTarget(const String&);
  9097. void RemoveRenderTarget(uint);
  9098. void RemoveRenderTargts(const String&);
  9099. void SetEnabled(const String&, bool);
  9100. void ToggleEnabled(const String&);
  9101. // Properties:
  9102. /* readonly */
  9103. Array<bool> added;
  9104. Array<RenderPathCommand> commands;
  9105. /* readonly */
  9106. Array<bool> enabled;
  9107. /* readonly */
  9108. uint numCommands;
  9109. /* readonly */
  9110. uint numRenderTargets;
  9111. /* readonly */
  9112. int refs;
  9113. Array<RenderTargetInfo> renderTargets;
  9114. Array<Variant> shaderParameters;
  9115. /* readonly */
  9116. int weakRefs;
  9117. };
  9118. class RenderPathCommand
  9119. {
  9120. public:
  9121. ~RenderPathCommand();
  9122. RenderPathCommand();
  9123. RenderPathCommand(const RenderPathCommand&in);
  9124. // Methods:
  9125. void RemoveShaderParameter(const String&);
  9126. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  9127. // Properties:
  9128. BlendMode blendMode;
  9129. Color clearColor;
  9130. float clearDepth;
  9131. uint clearFlags;
  9132. uint clearStencil;
  9133. String depthStencilName;
  9134. bool enabled;
  9135. String eventName;
  9136. bool markToStencil;
  9137. String metadata;
  9138. uint numOutputs;
  9139. Array<CubeMapFace> outputFaces;
  9140. Array<String> outputNames;
  9141. String pass;
  9142. String pixelShaderDefines;
  9143. String pixelShaderName;
  9144. Array<Variant> shaderParameters;
  9145. RenderCommandSortMode sortMode;
  9146. String tag;
  9147. Array<String> textureNames;
  9148. RenderCommandType type;
  9149. bool useFogColor;
  9150. bool useLitBase;
  9151. bool vertexLights;
  9152. String vertexShaderDefines;
  9153. String vertexShaderName;
  9154. };
  9155. class RenderSurface
  9156. {
  9157. public:
  9158. // Methods:
  9159. void QueueUpdate();
  9160. // Properties:
  9161. /* readonly */
  9162. int height;
  9163. RenderSurface linkedDepthStencil;
  9164. RenderSurface linkedRenderTarget;
  9165. uint numViewports;
  9166. /* readonly */
  9167. Texture parentTexture;
  9168. /* readonly */
  9169. bool resolveDirty;
  9170. RenderSurfaceUpdateMode updateMode;
  9171. /* readonly */
  9172. TextureUsage usage;
  9173. Array<Viewport> viewports;
  9174. /* readonly */
  9175. int width;
  9176. };
  9177. class RenderTargetInfo
  9178. {
  9179. public:
  9180. ~RenderTargetInfo();
  9181. RenderTargetInfo();
  9182. RenderTargetInfo(const RenderTargetInfo&in);
  9183. // Properties:
  9184. bool autoResolve;
  9185. bool cubemap;
  9186. bool enabled;
  9187. bool filtered;
  9188. uint format;
  9189. int multiSample;
  9190. String name;
  9191. bool persistent;
  9192. bool sRGB;
  9193. Vector2 size;
  9194. RenderTargetSizeMode sizeMode;
  9195. String tag;
  9196. };
  9197. class Renderer
  9198. {
  9199. public:
  9200. // Methods:
  9201. void DrawDebugGeometry(bool) const;
  9202. Viewport GetViewportForScene(Scene, uint);
  9203. bool HasSubscribedToEvent(Object, const String&);
  9204. bool HasSubscribedToEvent(const String&);
  9205. void ReloadShaders() const;
  9206. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9207. void SetDefaultRenderPath(XMLFile);
  9208. void SetVSMShadowParameters(float, float);
  9209. // Properties:
  9210. /* readonly */
  9211. String category;
  9212. /* readonly */
  9213. Material defaultLightRamp;
  9214. /* readonly */
  9215. Material defaultLightSpot;
  9216. /* readonly */
  9217. Material defaultMaterial;
  9218. RenderPath defaultRenderPath;
  9219. Technique defaultTechnique;
  9220. /* readonly */
  9221. Zone defaultZone;
  9222. bool drawShadows;
  9223. bool dynamicInstancing;
  9224. bool hdrRendering;
  9225. int materialQuality;
  9226. int maxOccluderTriangles;
  9227. int maxShadowMaps;
  9228. int maxSortedInstances;
  9229. int minInstances;
  9230. float mobileNormalOffsetMul;
  9231. float mobileShadowBiasAdd;
  9232. float mobileShadowBiasMul;
  9233. /* readonly */
  9234. uint numBatches;
  9235. int numExtraInstancingBufferElements;
  9236. /* readonly */
  9237. Array<uint> numGeometries;
  9238. /* readonly */
  9239. Array<uint> numLights;
  9240. /* readonly */
  9241. Array<uint> numOccluders;
  9242. /* readonly */
  9243. uint numPrimitives;
  9244. /* readonly */
  9245. Array<uint> numShadowMaps;
  9246. uint numViewports;
  9247. /* readonly */
  9248. uint numViews;
  9249. float occluderSizeThreshold;
  9250. int occlusionBufferSize;
  9251. /* readonly */
  9252. int refs;
  9253. bool reuseShadowMaps;
  9254. int shadowMapSize;
  9255. ShadowQuality shadowQuality;
  9256. float shadowSoftness;
  9257. bool specularLighting;
  9258. int textureAnisotropy;
  9259. TextureFilterMode textureFilterMode;
  9260. int textureQuality;
  9261. bool threadedOcclusion;
  9262. /* readonly */
  9263. StringHash type;
  9264. /* readonly */
  9265. String typeName;
  9266. Array<Viewport> viewports;
  9267. int vsmMultiSample;
  9268. Vector2 vsmShadowParameters;
  9269. /* readonly */
  9270. int weakRefs;
  9271. };
  9272. class Resource
  9273. {
  9274. public:
  9275. // Methods:
  9276. bool HasSubscribedToEvent(Object, const String&);
  9277. bool HasSubscribedToEvent(const String&);
  9278. bool Load(File);
  9279. bool Load(VectorBuffer&);
  9280. bool Load(const String&);
  9281. bool Save(File) const;
  9282. bool Save(VectorBuffer&) const;
  9283. bool Save(const String&) const;
  9284. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9285. // Properties:
  9286. /* readonly */
  9287. String category;
  9288. /* readonly */
  9289. uint memoryUse;
  9290. String name;
  9291. /* readonly */
  9292. int refs;
  9293. /* readonly */
  9294. StringHash type;
  9295. /* readonly */
  9296. String typeName;
  9297. /* readonly */
  9298. uint useTimer;
  9299. /* readonly */
  9300. int weakRefs;
  9301. };
  9302. class ResourceCache
  9303. {
  9304. public:
  9305. // Methods:
  9306. bool AddManualResource(Resource);
  9307. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  9308. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  9309. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  9310. bool BackgroundLoadResource(const String&, const String&, bool = true);
  9311. bool Exists(const String&) const;
  9312. Resource GetExistingResource(StringHash, const String&);
  9313. Resource GetExistingResource(const String&, const String&);
  9314. File GetFile(const String&);
  9315. String GetPreferredResourceDir(const String&) const;
  9316. Resource GetResource(StringHash, const String&, bool = true);
  9317. Resource GetResource(const String&, const String&, bool = true);
  9318. String GetResourceFileName(const String&) const;
  9319. Array<Resource> GetResources(StringHash);
  9320. Array<Resource> GetResources(const String&);
  9321. bool HasSubscribedToEvent(Object, const String&);
  9322. bool HasSubscribedToEvent(const String&);
  9323. void ReleaseAllResources(bool = false);
  9324. void ReleaseResource(const String&, const String&, bool = false);
  9325. void ReleaseResources(StringHash, bool = false);
  9326. void ReleaseResources(const String&, bool = false);
  9327. void ReleaseResources(const String&, const String&, bool = false);
  9328. bool ReloadResource(Resource);
  9329. void ReloadResourceWithDependencies(const String&);
  9330. void RemovePackageFile(PackageFile, bool = true, bool = false);
  9331. void RemovePackageFile(const String&, bool = true, bool = false);
  9332. void RemoveResourceDir(const String&);
  9333. String SanitateResourceDirName(const String&) const;
  9334. String SanitateResourceName(const String&) const;
  9335. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9336. // Properties:
  9337. bool autoReloadResources;
  9338. /* readonly */
  9339. String category;
  9340. int finishBackgroundResourcesMs;
  9341. Array<uint64> memoryBudget;
  9342. /* readonly */
  9343. Array<uint64> memoryUse;
  9344. /* readonly */
  9345. uint numBackgroundLoadResources;
  9346. /* readonly */
  9347. Array<PackageFile> packageFiles;
  9348. /* readonly */
  9349. int refs;
  9350. /* readonly */
  9351. Array<String> resourceDirs;
  9352. bool returnFailedResources;
  9353. /* readonly */
  9354. bool seachPackagesFirst;
  9355. /* writeonly */
  9356. bool searchPackagesFirst;
  9357. /* readonly */
  9358. uint64 totalMemoryUse;
  9359. /* readonly */
  9360. StringHash type;
  9361. /* readonly */
  9362. String typeName;
  9363. /* readonly */
  9364. int weakRefs;
  9365. };
  9366. class ResourceRef
  9367. {
  9368. public:
  9369. ~ResourceRef();
  9370. ResourceRef();
  9371. ResourceRef(const ResourceRef&in);
  9372. ResourceRef(const String&in, const String&in);
  9373. // Properties:
  9374. String name;
  9375. StringHash type;
  9376. };
  9377. class ResourceRefList
  9378. {
  9379. public:
  9380. ~ResourceRefList();
  9381. ResourceRefList();
  9382. ResourceRefList(const ResourceRefList&in);
  9383. // Methods:
  9384. void Resize(uint);
  9385. // Properties:
  9386. /* readonly */
  9387. bool empty;
  9388. /* readonly */
  9389. uint length;
  9390. Array<String> names;
  9391. StringHash type;
  9392. };
  9393. class RibbonTrail
  9394. {
  9395. public:
  9396. // Methods:
  9397. void ApplyAttributes();
  9398. void Commit();
  9399. void DrawDebugGeometry(DebugRenderer, bool);
  9400. Variant GetAttribute(const String&) const;
  9401. ValueAnimation GetAttributeAnimation(const String&) const;
  9402. float GetAttributeAnimationSpeed(const String&) const;
  9403. float GetAttributeAnimationTime(const String&) const;
  9404. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9405. Variant GetAttributeDefault(const String&) const;
  9406. bool GetInterceptNetworkUpdate(const String&) const;
  9407. bool HasSubscribedToEvent(Object, const String&);
  9408. bool HasSubscribedToEvent(const String&);
  9409. bool IsInView(Camera) const;
  9410. bool Load(File);
  9411. bool Load(VectorBuffer&);
  9412. bool LoadJSON(const JSONValue&);
  9413. bool LoadXML(const XMLElement&);
  9414. void MarkNetworkUpdate() const;
  9415. void Remove();
  9416. void RemoveAttributeAnimation(const String&);
  9417. void RemoveInstanceDefault();
  9418. void RemoveObjectAnimation();
  9419. void ResetToDefault();
  9420. bool Save(File) const;
  9421. bool Save(VectorBuffer&) const;
  9422. bool SaveJSON(JSONValue&) const;
  9423. bool SaveXML(XMLElement&) const;
  9424. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9425. void SetAnimationTime(float);
  9426. bool SetAttribute(const String&, const Variant&);
  9427. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9428. void SetAttributeAnimationSpeed(const String&, float);
  9429. void SetAttributeAnimationTime(const String&, float);
  9430. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9431. void SetInterceptNetworkUpdate(const String&, bool);
  9432. // Properties:
  9433. bool animationEnabled;
  9434. float animationLodBias;
  9435. /* readonly */
  9436. Array<Variant> attributeDefaults;
  9437. /* readonly */
  9438. Array<AttributeInfo> attributeInfos;
  9439. Array<Variant> attributes;
  9440. /* readonly */
  9441. BoundingBox boundingBox;
  9442. bool castShadows;
  9443. /* readonly */
  9444. String category;
  9445. float drawDistance;
  9446. bool emitting;
  9447. bool enabled;
  9448. /* readonly */
  9449. bool enabledEffective;
  9450. Color endColor;
  9451. float endScale;
  9452. /* readonly */
  9453. uint id;
  9454. /* readonly */
  9455. bool inView;
  9456. float lifetime;
  9457. uint lightMask;
  9458. float lodBias;
  9459. Material material;
  9460. uint maxLights;
  9461. /* readonly */
  9462. Node node;
  9463. /* readonly */
  9464. uint numAttributes;
  9465. ObjectAnimation objectAnimation;
  9466. bool occludee;
  9467. bool occluder;
  9468. /* readonly */
  9469. int refs;
  9470. /* readonly */
  9471. bool replicated;
  9472. float shadowDistance;
  9473. uint shadowMask;
  9474. bool sorted;
  9475. Color startColor;
  9476. float startScale;
  9477. uint tailColumn;
  9478. bool temporary;
  9479. TrailType trailType;
  9480. /* readonly */
  9481. StringHash type;
  9482. /* readonly */
  9483. String typeName;
  9484. bool updateInvisible;
  9485. float vertexDistance;
  9486. uint viewMask;
  9487. /* readonly */
  9488. int weakRefs;
  9489. float width;
  9490. /* readonly */
  9491. BoundingBox worldBoundingBox;
  9492. /* readonly */
  9493. Zone zone;
  9494. uint zoneMask;
  9495. };
  9496. class RigidBody
  9497. {
  9498. public:
  9499. // Methods:
  9500. void Activate();
  9501. void ApplyAttributes();
  9502. void ApplyForce(const Vector3&);
  9503. void ApplyForce(const Vector3&, const Vector3&);
  9504. void ApplyImpulse(const Vector3&);
  9505. void ApplyImpulse(const Vector3&, const Vector3&);
  9506. void ApplyTorque(const Vector3&);
  9507. void ApplyTorqueImpulse(const Vector3&);
  9508. void DisableMassUpdate();
  9509. void DrawDebugGeometry(DebugRenderer, bool);
  9510. void EnableMassUpdate();
  9511. Variant GetAttribute(const String&) const;
  9512. ValueAnimation GetAttributeAnimation(const String&) const;
  9513. float GetAttributeAnimationSpeed(const String&) const;
  9514. float GetAttributeAnimationTime(const String&) const;
  9515. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9516. Variant GetAttributeDefault(const String&) const;
  9517. bool GetInterceptNetworkUpdate(const String&) const;
  9518. Vector3 GetVelocityAtPoint(const Vector3&) const;
  9519. bool HasSubscribedToEvent(Object, const String&);
  9520. bool HasSubscribedToEvent(const String&);
  9521. bool Load(File);
  9522. bool Load(VectorBuffer&);
  9523. bool LoadJSON(const JSONValue&);
  9524. bool LoadXML(const XMLElement&);
  9525. void MarkNetworkUpdate() const;
  9526. void ReAddBodyToWorld();
  9527. void Remove();
  9528. void RemoveAttributeAnimation(const String&);
  9529. void RemoveInstanceDefault();
  9530. void RemoveObjectAnimation();
  9531. void ResetForces();
  9532. void ResetToDefault();
  9533. bool Save(File) const;
  9534. bool Save(VectorBuffer&) const;
  9535. bool SaveJSON(JSONValue&) const;
  9536. bool SaveXML(XMLElement&) const;
  9537. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9538. void SetAnimationTime(float);
  9539. bool SetAttribute(const String&, const Variant&);
  9540. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9541. void SetAttributeAnimationSpeed(const String&, float);
  9542. void SetAttributeAnimationTime(const String&, float);
  9543. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9544. void SetCollisionLayerAndMask(uint, uint);
  9545. void SetInterceptNetworkUpdate(const String&, bool);
  9546. void SetTransform(const Vector3&, const Quaternion&);
  9547. // Properties:
  9548. /* readonly */
  9549. bool active;
  9550. float angularDamping;
  9551. Vector3 angularFactor;
  9552. float angularRestThreshold;
  9553. Vector3 angularVelocity;
  9554. bool animationEnabled;
  9555. Vector3 anisotropicFriction;
  9556. /* readonly */
  9557. Array<Variant> attributeDefaults;
  9558. /* readonly */
  9559. Array<AttributeInfo> attributeInfos;
  9560. Array<Variant> attributes;
  9561. /* readonly */
  9562. String category;
  9563. float ccdMotionThreshold;
  9564. float ccdRadius;
  9565. /* readonly */
  9566. Vector3 centerOfMass;
  9567. /* readonly */
  9568. Array<RigidBody> collidingBodies;
  9569. CollisionEventMode collisionEventMode;
  9570. uint collisionLayer;
  9571. uint collisionMask;
  9572. float contactProcessingThreshold;
  9573. bool enabled;
  9574. /* readonly */
  9575. bool enabledEffective;
  9576. float friction;
  9577. Vector3 gravityOverride;
  9578. /* readonly */
  9579. uint id;
  9580. bool kinematic;
  9581. float linearDamping;
  9582. Vector3 linearFactor;
  9583. float linearRestThreshold;
  9584. Vector3 linearVelocity;
  9585. float mass;
  9586. /* readonly */
  9587. Node node;
  9588. /* readonly */
  9589. uint numAttributes;
  9590. ObjectAnimation objectAnimation;
  9591. Vector3 position;
  9592. /* readonly */
  9593. int refs;
  9594. /* readonly */
  9595. bool replicated;
  9596. float restitution;
  9597. float rollingFriction;
  9598. Quaternion rotation;
  9599. bool temporary;
  9600. bool trigger;
  9601. /* readonly */
  9602. StringHash type;
  9603. /* readonly */
  9604. String typeName;
  9605. bool useGravity;
  9606. /* readonly */
  9607. int weakRefs;
  9608. };
  9609. class RigidBody2D
  9610. {
  9611. public:
  9612. // Methods:
  9613. void ApplyAngularImpulse(float, bool);
  9614. void ApplyAttributes();
  9615. void ApplyForce(const Vector2&, const Vector2&, bool);
  9616. void ApplyForceToCenter(const Vector2&, bool);
  9617. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  9618. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  9619. void ApplyTorque(float, bool);
  9620. void DrawDebugGeometry(DebugRenderer, bool);
  9621. Variant GetAttribute(const String&) const;
  9622. ValueAnimation GetAttributeAnimation(const String&) const;
  9623. float GetAttributeAnimationSpeed(const String&) const;
  9624. float GetAttributeAnimationTime(const String&) const;
  9625. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9626. Variant GetAttributeDefault(const String&) const;
  9627. bool GetInterceptNetworkUpdate(const String&) const;
  9628. bool HasSubscribedToEvent(Object, const String&);
  9629. bool HasSubscribedToEvent(const String&);
  9630. bool Load(File);
  9631. bool Load(VectorBuffer&);
  9632. bool LoadJSON(const JSONValue&);
  9633. bool LoadXML(const XMLElement&);
  9634. void MarkNetworkUpdate() const;
  9635. void Remove();
  9636. void RemoveAttributeAnimation(const String&);
  9637. void RemoveInstanceDefault();
  9638. void RemoveObjectAnimation();
  9639. void ResetToDefault();
  9640. bool Save(File) const;
  9641. bool Save(VectorBuffer&) const;
  9642. bool SaveJSON(JSONValue&) const;
  9643. bool SaveXML(XMLElement&) const;
  9644. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9645. void SetAnimationTime(float);
  9646. bool SetAttribute(const String&, const Variant&);
  9647. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9648. void SetAttributeAnimationSpeed(const String&, float);
  9649. void SetAttributeAnimationTime(const String&, float);
  9650. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9651. void SetInterceptNetworkUpdate(const String&, bool);
  9652. // Properties:
  9653. bool allowSleep;
  9654. float angularDamping;
  9655. bool animationEnabled;
  9656. /* readonly */
  9657. Array<Variant> attributeDefaults;
  9658. /* readonly */
  9659. Array<AttributeInfo> attributeInfos;
  9660. Array<Variant> attributes;
  9661. bool awake;
  9662. BodyType2D bodyType;
  9663. bool bullet;
  9664. /* readonly */
  9665. String category;
  9666. bool enabled;
  9667. /* readonly */
  9668. bool enabledEffective;
  9669. bool fixedRotation;
  9670. float gravityScale;
  9671. /* readonly */
  9672. uint id;
  9673. float inertia;
  9674. float linearDamping;
  9675. Vector2 linearVelocity;
  9676. float mass;
  9677. Vector2 massCenter;
  9678. /* readonly */
  9679. Node node;
  9680. /* readonly */
  9681. uint numAttributes;
  9682. ObjectAnimation objectAnimation;
  9683. /* readonly */
  9684. int refs;
  9685. /* readonly */
  9686. bool replicated;
  9687. bool temporary;
  9688. /* readonly */
  9689. StringHash type;
  9690. /* readonly */
  9691. String typeName;
  9692. bool useFixtureMass;
  9693. /* readonly */
  9694. int weakRefs;
  9695. };
  9696. class Scene
  9697. {
  9698. public:
  9699. Scene();
  9700. Scene(const String&in);
  9701. // Methods:
  9702. void AddChild(Node, uint = M_MAX_UNSIGNED);
  9703. void AddRequiredPackageFile(PackageFile);
  9704. void AddTag(const String&);
  9705. void AddTags(const String&, int8 = ';');
  9706. void ApplyAttributes();
  9707. void Clear(bool = true, bool = true);
  9708. void ClearRequiredPackageFiles();
  9709. Component CloneComponent(Component, CreateMode, uint = 0);
  9710. Component CloneComponent(Component, uint = 0);
  9711. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  9712. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9713. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  9714. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  9715. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  9716. Variant GetAttribute(const String&) const;
  9717. ValueAnimation GetAttributeAnimation(const String&) const;
  9718. float GetAttributeAnimationSpeed(const String&) const;
  9719. float GetAttributeAnimationTime(const String&) const;
  9720. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9721. Variant GetAttributeDefault(const String&) const;
  9722. Node GetChild(const String&, bool = false) const;
  9723. Array<Node> GetChildren(bool = false) const;
  9724. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  9725. Array<Node> GetChildrenWithScript(bool = false) const;
  9726. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  9727. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  9728. Component GetComponent(const String&, bool = false) const;
  9729. Component GetComponent(uint) const;
  9730. Array<Component> GetComponents() const;
  9731. Array<Component> GetComponents(const String&, bool = false) const;
  9732. bool GetInterceptNetworkUpdate(const String&) const;
  9733. Node GetNode(uint) const;
  9734. Array<Node> GetNodesWithTag(const String&) const;
  9735. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9736. Component GetParentComponent(const String&, bool = false) const;
  9737. ScriptObject GetScriptObject() const;
  9738. ScriptObject GetScriptObject(const String&) const;
  9739. bool HasComponent(const String&) const;
  9740. bool HasSubscribedToEvent(Object, const String&);
  9741. bool HasSubscribedToEvent(const String&);
  9742. bool HasTag(const String&);
  9743. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9744. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9745. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9746. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9747. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9748. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9749. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9750. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9751. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9752. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9753. bool IsChildOf(Node) const;
  9754. bool Load(File);
  9755. bool Load(VectorBuffer&);
  9756. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9757. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9758. bool LoadJSON(File);
  9759. bool LoadJSON(VectorBuffer&);
  9760. bool LoadJSON(const JSONValue&);
  9761. bool LoadXML(File);
  9762. bool LoadXML(VectorBuffer&);
  9763. bool LoadXML(const XMLElement&);
  9764. Vector3 LocalToWorld(const Vector3&) const;
  9765. Vector3 LocalToWorld(const Vector4&) const;
  9766. Vector2 LocalToWorld2D(const Vector2&) const;
  9767. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  9768. void MarkNetworkUpdate() const;
  9769. void Pitch(float, TransformSpace = TS_LOCAL);
  9770. void RegisterVar(const String&);
  9771. void Remove();
  9772. void RemoveAllChildren();
  9773. void RemoveAllComponents();
  9774. void RemoveAllTags();
  9775. void RemoveAttributeAnimation(const String&);
  9776. void RemoveChild(Node);
  9777. void RemoveChildren(bool, bool, bool);
  9778. void RemoveComponent(Component);
  9779. void RemoveComponent(const String&);
  9780. void RemoveComponents(bool, bool);
  9781. void RemoveComponents(const String&);
  9782. void RemoveInstanceDefault();
  9783. void RemoveObjectAnimation();
  9784. bool RemoveTag(const String&);
  9785. void ReorderComponent(Component, uint);
  9786. void ResetToDefault();
  9787. void Roll(float, TransformSpace = TS_LOCAL);
  9788. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  9789. void Rotate2D(float, TransformSpace = TS_LOCAL);
  9790. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  9791. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  9792. bool Save(File) const;
  9793. bool Save(VectorBuffer&) const;
  9794. bool SaveJSON(File, const String& = "\t");
  9795. bool SaveJSON(JSONValue&) const;
  9796. bool SaveJSON(VectorBuffer&, const String& = "\t");
  9797. bool SaveXML(File, const String& = "\t");
  9798. bool SaveXML(VectorBuffer&, const String& = "\t");
  9799. bool SaveXML(XMLElement&) const;
  9800. void Scale(const Vector3&);
  9801. void Scale(float);
  9802. void Scale2D(const Vector2&);
  9803. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9804. void SetAnimationTime(float);
  9805. bool SetAttribute(const String&, const Variant&);
  9806. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9807. void SetAttributeAnimationSpeed(const String&, float);
  9808. void SetAttributeAnimationTime(const String&, float);
  9809. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9810. void SetInterceptNetworkUpdate(const String&, bool);
  9811. void SetPosition2D(float, float);
  9812. void SetScale(float);
  9813. void SetScale2D(float, float);
  9814. void SetTransform(const Matrix3x4&);
  9815. void SetTransform(const Vector3&, const Quaternion&);
  9816. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  9817. void SetTransform(const Vector3&, const Quaternion&, float);
  9818. void SetTransform2D(const Vector2&, float);
  9819. void SetTransform2D(const Vector2&, float, const Vector2&);
  9820. void SetTransform2D(const Vector2&, float, float);
  9821. void SetWorldTransform(const Vector3&, const Quaternion&);
  9822. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  9823. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  9824. void SetWorldTransform2D(const Vector2&, float);
  9825. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  9826. void SetWorldTransform2D(const Vector2&, float, float);
  9827. void StopAsyncLoading();
  9828. const String& GetVarName(StringHash) const;
  9829. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  9830. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  9831. void UnregisterAllVars(const String&);
  9832. void UnregisterVar(const String&);
  9833. void Update(float);
  9834. Vector3 WorldToLocal(const Vector3&) const;
  9835. Vector3 WorldToLocal(const Vector4&) const;
  9836. Vector2 WorldToLocal2D(const Vector2&) const;
  9837. void Yaw(float, TransformSpace = TS_LOCAL);
  9838. // Properties:
  9839. /* readonly */
  9840. Array<Node> allChildrenByName;
  9841. bool animationEnabled;
  9842. /* readonly */
  9843. LoadMode asyncLoadMode;
  9844. /* readonly */
  9845. bool asyncLoading;
  9846. int asyncLoadingMs;
  9847. /* readonly */
  9848. float asyncProgress;
  9849. /* readonly */
  9850. Array<Variant> attributeDefaults;
  9851. /* readonly */
  9852. Array<AttributeInfo> attributeInfos;
  9853. Array<Variant> attributes;
  9854. /* readonly */
  9855. String category;
  9856. /* readonly */
  9857. uint checksum;
  9858. /* readonly */
  9859. Array<Node> children;
  9860. /* readonly */
  9861. Array<Node> childrenByName;
  9862. /* readonly */
  9863. Array<Component> components;
  9864. /* readonly */
  9865. DebugRenderer debugRenderer;
  9866. Vector3 direction;
  9867. float elapsedTime;
  9868. /* readonly */
  9869. String fileName;
  9870. uint id;
  9871. String name;
  9872. /* readonly */
  9873. uint numAllChildren;
  9874. /* readonly */
  9875. uint numAttributes;
  9876. /* readonly */
  9877. uint numChildren;
  9878. /* readonly */
  9879. uint numComponents;
  9880. ObjectAnimation objectAnimation;
  9881. /* readonly */
  9882. Octree octree;
  9883. Node parent;
  9884. /* readonly */
  9885. PhysicsWorld physicsWorld;
  9886. /* readonly */
  9887. PhysicsWorld2D physicsWorld2D;
  9888. Vector3 position;
  9889. Vector2 position2D;
  9890. /* readonly */
  9891. int refs;
  9892. /* readonly */
  9893. bool replicated;
  9894. /* readonly */
  9895. Array<PackageFile> requiredPackageFiles;
  9896. /* readonly */
  9897. Vector3 right;
  9898. Quaternion rotation;
  9899. float rotation2D;
  9900. Vector3 scale;
  9901. Vector2 scale2D;
  9902. /* readonly */
  9903. ScriptObject scriptObject;
  9904. /* readonly */
  9905. Vector3 signedWorldScale;
  9906. float smoothingConstant;
  9907. float snapThreshold;
  9908. /* readonly */
  9909. Array<String> tags;
  9910. bool temporary;
  9911. float timeScale;
  9912. /* readonly */
  9913. Matrix3x4 transform;
  9914. /* readonly */
  9915. StringHash type;
  9916. /* readonly */
  9917. String typeName;
  9918. /* readonly */
  9919. Vector3 up;
  9920. bool updateEnabled;
  9921. /* readonly */
  9922. VariantMap vars;
  9923. /* readonly */
  9924. int weakRefs;
  9925. Vector3 worldDirection;
  9926. Vector3 worldPosition;
  9927. Vector2 worldPosition2D;
  9928. /* readonly */
  9929. Vector3 worldRight;
  9930. Quaternion worldRotation;
  9931. float worldRotation2D;
  9932. Vector3 worldScale;
  9933. Vector2 worldScale2D;
  9934. /* readonly */
  9935. Matrix3x4 worldTransform;
  9936. /* readonly */
  9937. Vector3 worldUp;
  9938. };
  9939. class Script
  9940. {
  9941. public:
  9942. // Methods:
  9943. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9944. bool Execute(const String&);
  9945. bool HasSubscribedToEvent(Object, const String&);
  9946. bool HasSubscribedToEvent(const String&);
  9947. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9948. // Properties:
  9949. /* readonly */
  9950. String category;
  9951. Scene defaultScene;
  9952. ScriptFile defaultScriptFile;
  9953. bool executeConsoleCommands;
  9954. /* readonly */
  9955. int refs;
  9956. /* readonly */
  9957. StringHash type;
  9958. /* readonly */
  9959. String typeName;
  9960. /* readonly */
  9961. int weakRefs;
  9962. };
  9963. class ScriptFile
  9964. {
  9965. public:
  9966. ScriptFile();
  9967. ScriptFile(const String&in);
  9968. // Methods:
  9969. void ClearDelayedExecute(const String& = String ( ));
  9970. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9971. bool Execute(const String&, const Array<Variant> = null);
  9972. bool HasSubscribedToEvent(Object, const String&);
  9973. bool HasSubscribedToEvent(const String&);
  9974. bool Load(File);
  9975. bool Load(VectorBuffer&);
  9976. bool Load(const String&);
  9977. bool Save(File) const;
  9978. bool Save(VectorBuffer&) const;
  9979. bool Save(const String&) const;
  9980. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9981. // Properties:
  9982. /* readonly */
  9983. String category;
  9984. /* readonly */
  9985. bool compiled;
  9986. /* readonly */
  9987. uint memoryUse;
  9988. String name;
  9989. /* readonly */
  9990. int refs;
  9991. /* readonly */
  9992. StringHash type;
  9993. /* readonly */
  9994. String typeName;
  9995. /* readonly */
  9996. uint useTimer;
  9997. /* readonly */
  9998. int weakRefs;
  9999. };
  10000. class ScriptInstance
  10001. {
  10002. public:
  10003. // Methods:
  10004. void ApplyAttributes();
  10005. void ClearDelayedExecute(const String& = String ( ));
  10006. bool CreateObject(ScriptFile, const String&);
  10007. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  10008. void DrawDebugGeometry(DebugRenderer, bool);
  10009. bool Execute(const String&, const Array<Variant> = null);
  10010. Variant GetAttribute(const String&) const;
  10011. ValueAnimation GetAttributeAnimation(const String&) const;
  10012. float GetAttributeAnimationSpeed(const String&) const;
  10013. float GetAttributeAnimationTime(const String&) const;
  10014. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10015. Variant GetAttributeDefault(const String&) const;
  10016. bool GetInterceptNetworkUpdate(const String&) const;
  10017. bool HasMethod(const String&) const;
  10018. bool HasSubscribedToEvent(Object, const String&);
  10019. bool HasSubscribedToEvent(const String&);
  10020. bool IsA(const String&) const;
  10021. bool Load(File);
  10022. bool Load(VectorBuffer&);
  10023. bool LoadJSON(const JSONValue&);
  10024. bool LoadXML(const XMLElement&);
  10025. void MarkNetworkUpdate() const;
  10026. void Remove();
  10027. void RemoveAttributeAnimation(const String&);
  10028. void RemoveInstanceDefault();
  10029. void RemoveObjectAnimation();
  10030. void ResetToDefault();
  10031. bool Save(File) const;
  10032. bool Save(VectorBuffer&) const;
  10033. bool SaveJSON(JSONValue&) const;
  10034. bool SaveXML(XMLElement&) const;
  10035. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10036. void SetAnimationTime(float);
  10037. bool SetAttribute(const String&, const Variant&);
  10038. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10039. void SetAttributeAnimationSpeed(const String&, float);
  10040. void SetAttributeAnimationTime(const String&, float);
  10041. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10042. void SetInterceptNetworkUpdate(const String&, bool);
  10043. // Properties:
  10044. bool animationEnabled;
  10045. /* readonly */
  10046. Array<Variant> attributeDefaults;
  10047. /* readonly */
  10048. Array<AttributeInfo> attributeInfos;
  10049. Array<Variant> attributes;
  10050. /* readonly */
  10051. String category;
  10052. String className;
  10053. bool enabled;
  10054. /* readonly */
  10055. bool enabledEffective;
  10056. /* readonly */
  10057. uint id;
  10058. /* readonly */
  10059. Node node;
  10060. /* readonly */
  10061. uint numAttributes;
  10062. ObjectAnimation objectAnimation;
  10063. /* readonly */
  10064. int refs;
  10065. /* readonly */
  10066. bool replicated;
  10067. ScriptFile scriptFile;
  10068. /* readonly */
  10069. ScriptObject scriptObject;
  10070. bool temporary;
  10071. /* readonly */
  10072. StringHash type;
  10073. /* readonly */
  10074. String typeName;
  10075. /* readonly */
  10076. int weakRefs;
  10077. };
  10078. class ScriptObject
  10079. {
  10080. public:
  10081. };
  10082. class ScrollBar
  10083. {
  10084. public:
  10085. ScrollBar();
  10086. ScrollBar(const String&in);
  10087. // Methods:
  10088. void AddChild(UIElement);
  10089. void AddTag(const String&);
  10090. void AddTags(const String&, int8 = ';');
  10091. void ApplyAttributes();
  10092. void BringToFront();
  10093. void ChangeValue(float);
  10094. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10095. void DisableLayoutUpdate();
  10096. IntVector2 ElementToScreen(const IntVector2&);
  10097. void EnableLayoutUpdate();
  10098. uint FindChild(UIElement) const;
  10099. Variant GetAttribute(const String&) const;
  10100. ValueAnimation GetAttributeAnimation(const String&) const;
  10101. float GetAttributeAnimationSpeed(const String&) const;
  10102. float GetAttributeAnimationTime(const String&) const;
  10103. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10104. Variant GetAttributeDefault(const String&) const;
  10105. UIElement GetChild(const String&, bool = false) const;
  10106. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10107. Array<UIElement> GetChildren(bool = false) const;
  10108. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10109. UIElement GetElementEventSender() const;
  10110. bool GetInterceptNetworkUpdate(const String&) const;
  10111. uint GetNumChildren(bool) const;
  10112. bool HasSubscribedToEvent(Object, const String&);
  10113. bool HasSubscribedToEvent(const String&);
  10114. bool HasTag(const String&) const;
  10115. void InsertChild(uint, UIElement);
  10116. bool IsChildOf(UIElement) const;
  10117. bool IsInside(IntVector2, bool);
  10118. bool IsInsideCombined(IntVector2, bool);
  10119. bool Load(File);
  10120. bool Load(VectorBuffer&);
  10121. UIElement LoadChildXML(XMLFile, XMLFile);
  10122. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10123. bool LoadJSON(const JSONValue&);
  10124. bool LoadXML(File);
  10125. bool LoadXML(VectorBuffer&);
  10126. bool LoadXML(XMLFile, XMLFile);
  10127. bool LoadXML(const XMLElement&, XMLFile);
  10128. bool LoadXML(const XMLElement&);
  10129. void MarkNetworkUpdate() const;
  10130. void Remove();
  10131. void RemoveAllChildren();
  10132. void RemoveAllTags();
  10133. void RemoveAttributeAnimation(const String&);
  10134. void RemoveChild(UIElement, uint = 0);
  10135. void RemoveChild(uint);
  10136. void RemoveInstanceDefault();
  10137. void RemoveObjectAnimation();
  10138. bool RemoveTag(const String&);
  10139. void ResetDeepEnabled();
  10140. void ResetToDefault();
  10141. bool Save(File) const;
  10142. bool Save(VectorBuffer&) const;
  10143. bool SaveJSON(JSONValue&) const;
  10144. bool SaveXML(File, const String& = "\t");
  10145. bool SaveXML(VectorBuffer&, const String& = "\t");
  10146. bool SaveXML(XMLElement&) const;
  10147. IntVector2 ScreenToElement(const IntVector2&);
  10148. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10149. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10150. void SetAnimationTime(float);
  10151. bool SetAttribute(const String&, const Variant&);
  10152. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10153. void SetAttributeAnimationSpeed(const String&, float);
  10154. void SetAttributeAnimationTime(const String&, float);
  10155. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10156. void SetDeepEnabled(bool);
  10157. void SetEnabledRecursive(bool);
  10158. void SetFixedHeight(int);
  10159. void SetFixedSize(int, int);
  10160. void SetFixedWidth(int);
  10161. void SetInterceptNetworkUpdate(const String&, bool);
  10162. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10163. void SetMaxAnchor(float, float);
  10164. void SetMaxSize(int, int);
  10165. void SetMinAnchor(float, float);
  10166. void SetMinSize(int, int);
  10167. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10168. void SetPivot(float, float);
  10169. void SetPosition(int, int);
  10170. void SetSize(int, int);
  10171. bool SetStyle(const String&, XMLFile = null);
  10172. bool SetStyle(const XMLElement&);
  10173. bool SetStyleAuto(XMLFile = null);
  10174. void StepBack();
  10175. void StepForward();
  10176. void UpdateLayout();
  10177. const Variant& GetVar(const StringHash&);
  10178. // Properties:
  10179. bool animationEnabled;
  10180. /* readonly */
  10181. Array<Variant> attributeDefaults;
  10182. /* readonly */
  10183. Array<AttributeInfo> attributeInfos;
  10184. Array<Variant> attributes;
  10185. /* readonly */
  10186. Button backButton;
  10187. bool bringToBack;
  10188. bool bringToFront;
  10189. /* readonly */
  10190. String category;
  10191. /* readonly */
  10192. IntVector2 childOffset;
  10193. /* readonly */
  10194. Array<UIElement> children;
  10195. IntRect clipBorder;
  10196. bool clipChildren;
  10197. /* writeonly */
  10198. Color color;
  10199. /* readonly */
  10200. bool colorGradient;
  10201. Array<Color> colors;
  10202. /* readonly */
  10203. IntRect combinedScreenRect;
  10204. XMLFile defaultStyle;
  10205. /* readonly */
  10206. float derivedOpacity;
  10207. /* readonly */
  10208. uint dragButtonCombo;
  10209. /* readonly */
  10210. int dragButtonCount;
  10211. uint dragDropMode;
  10212. bool editable;
  10213. /* readonly */
  10214. float effectiveScrollStep;
  10215. bool elementEventSender;
  10216. bool enableAnchor;
  10217. bool enabled;
  10218. /* readonly */
  10219. bool enabledSelf;
  10220. /* readonly */
  10221. bool fixedHeight;
  10222. /* readonly */
  10223. bool fixedSize;
  10224. /* readonly */
  10225. bool fixedWidth;
  10226. bool focus;
  10227. FocusMode focusMode;
  10228. /* readonly */
  10229. Button forwardButton;
  10230. int height;
  10231. HorizontalAlignment horizontalAlignment;
  10232. /* readonly */
  10233. bool hovering;
  10234. int indent;
  10235. int indentSpacing;
  10236. /* readonly */
  10237. int indentWidth;
  10238. bool internal;
  10239. IntRect layoutBorder;
  10240. Vector2 layoutFlexScale;
  10241. LayoutMode layoutMode;
  10242. int layoutSpacing;
  10243. Vector2 maxAnchor;
  10244. int maxHeight;
  10245. IntVector2 maxOffset;
  10246. IntVector2 maxSize;
  10247. int maxWidth;
  10248. Vector2 minAnchor;
  10249. int minHeight;
  10250. IntVector2 minOffset;
  10251. IntVector2 minSize;
  10252. int minWidth;
  10253. String name;
  10254. /* readonly */
  10255. uint numAllChildren;
  10256. /* readonly */
  10257. uint numAttributes;
  10258. /* readonly */
  10259. uint numChildren;
  10260. ObjectAnimation objectAnimation;
  10261. float opacity;
  10262. Orientation orientation;
  10263. UIElement parent;
  10264. Vector2 pivot;
  10265. IntVector2 position;
  10266. int priority;
  10267. float range;
  10268. /* readonly */
  10269. int refs;
  10270. /* readonly */
  10271. UIElement root;
  10272. /* readonly */
  10273. IntVector2 screenPosition;
  10274. float scrollStep;
  10275. bool selected;
  10276. IntVector2 size;
  10277. /* readonly */
  10278. Slider slider;
  10279. bool sortChildren;
  10280. float stepFactor;
  10281. String style;
  10282. /* readonly */
  10283. Array<String> tags;
  10284. bool temporary;
  10285. TraversalMode traversalMode;
  10286. /* readonly */
  10287. StringHash type;
  10288. /* readonly */
  10289. String typeName;
  10290. bool useDerivedOpacity;
  10291. float value;
  10292. /* readonly */
  10293. VariantMap vars;
  10294. VerticalAlignment verticalAlignment;
  10295. bool visible;
  10296. /* readonly */
  10297. bool visibleEffective;
  10298. /* readonly */
  10299. int weakRefs;
  10300. int width;
  10301. };
  10302. class ScrollView
  10303. {
  10304. public:
  10305. ScrollView();
  10306. ScrollView(const String&in);
  10307. // Methods:
  10308. void AddChild(UIElement);
  10309. void AddTag(const String&);
  10310. void AddTags(const String&, int8 = ';');
  10311. void ApplyAttributes();
  10312. void BringToFront();
  10313. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10314. void DisableLayoutUpdate();
  10315. IntVector2 ElementToScreen(const IntVector2&);
  10316. void EnableLayoutUpdate();
  10317. uint FindChild(UIElement) const;
  10318. Variant GetAttribute(const String&) const;
  10319. ValueAnimation GetAttributeAnimation(const String&) const;
  10320. float GetAttributeAnimationSpeed(const String&) const;
  10321. float GetAttributeAnimationTime(const String&) const;
  10322. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10323. Variant GetAttributeDefault(const String&) const;
  10324. UIElement GetChild(const String&, bool = false) const;
  10325. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10326. Array<UIElement> GetChildren(bool = false) const;
  10327. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10328. UIElement GetElementEventSender() const;
  10329. bool GetInterceptNetworkUpdate(const String&) const;
  10330. uint GetNumChildren(bool) const;
  10331. bool HasSubscribedToEvent(Object, const String&);
  10332. bool HasSubscribedToEvent(const String&);
  10333. bool HasTag(const String&) const;
  10334. void InsertChild(uint, UIElement);
  10335. bool IsChildOf(UIElement) const;
  10336. bool IsInside(IntVector2, bool);
  10337. bool IsInsideCombined(IntVector2, bool);
  10338. bool Load(File);
  10339. bool Load(VectorBuffer&);
  10340. UIElement LoadChildXML(XMLFile, XMLFile);
  10341. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10342. bool LoadJSON(const JSONValue&);
  10343. bool LoadXML(File);
  10344. bool LoadXML(VectorBuffer&);
  10345. bool LoadXML(XMLFile, XMLFile);
  10346. bool LoadXML(const XMLElement&, XMLFile);
  10347. bool LoadXML(const XMLElement&);
  10348. void MarkNetworkUpdate() const;
  10349. void Remove();
  10350. void RemoveAllChildren();
  10351. void RemoveAllTags();
  10352. void RemoveAttributeAnimation(const String&);
  10353. void RemoveChild(UIElement, uint = 0);
  10354. void RemoveChild(uint);
  10355. void RemoveInstanceDefault();
  10356. void RemoveObjectAnimation();
  10357. bool RemoveTag(const String&);
  10358. void ResetDeepEnabled();
  10359. void ResetToDefault();
  10360. bool Save(File) const;
  10361. bool Save(VectorBuffer&) const;
  10362. bool SaveJSON(JSONValue&) const;
  10363. bool SaveXML(File, const String& = "\t");
  10364. bool SaveXML(VectorBuffer&, const String& = "\t");
  10365. bool SaveXML(XMLElement&) const;
  10366. IntVector2 ScreenToElement(const IntVector2&);
  10367. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10368. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10369. void SetAnimationTime(float);
  10370. bool SetAttribute(const String&, const Variant&);
  10371. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10372. void SetAttributeAnimationSpeed(const String&, float);
  10373. void SetAttributeAnimationTime(const String&, float);
  10374. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10375. void SetDeepEnabled(bool);
  10376. void SetEnabledRecursive(bool);
  10377. void SetFixedHeight(int);
  10378. void SetFixedSize(int, int);
  10379. void SetFixedWidth(int);
  10380. void SetInterceptNetworkUpdate(const String&, bool);
  10381. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10382. void SetMaxAnchor(float, float);
  10383. void SetMaxSize(int, int);
  10384. void SetMinAnchor(float, float);
  10385. void SetMinSize(int, int);
  10386. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10387. void SetPivot(float, float);
  10388. void SetPosition(int, int);
  10389. void SetScrollBarsVisible(bool, bool);
  10390. void SetSize(int, int);
  10391. bool SetStyle(const String&, XMLFile = null);
  10392. bool SetStyle(const XMLElement&);
  10393. bool SetStyleAuto(XMLFile = null);
  10394. void SetViewPosition(int, int);
  10395. void UpdateLayout();
  10396. const Variant& GetVar(const StringHash&);
  10397. // Properties:
  10398. bool animationEnabled;
  10399. /* readonly */
  10400. Array<Variant> attributeDefaults;
  10401. /* readonly */
  10402. Array<AttributeInfo> attributeInfos;
  10403. Array<Variant> attributes;
  10404. bool autoDisableChildren;
  10405. float autoDisableThreshold;
  10406. bool bringToBack;
  10407. bool bringToFront;
  10408. /* readonly */
  10409. String category;
  10410. /* readonly */
  10411. IntVector2 childOffset;
  10412. /* readonly */
  10413. Array<UIElement> children;
  10414. IntRect clipBorder;
  10415. bool clipChildren;
  10416. /* writeonly */
  10417. Color color;
  10418. /* readonly */
  10419. bool colorGradient;
  10420. Array<Color> colors;
  10421. /* readonly */
  10422. IntRect combinedScreenRect;
  10423. UIElement contentElement;
  10424. XMLFile defaultStyle;
  10425. /* readonly */
  10426. float derivedOpacity;
  10427. /* readonly */
  10428. uint dragButtonCombo;
  10429. /* readonly */
  10430. int dragButtonCount;
  10431. uint dragDropMode;
  10432. bool editable;
  10433. bool elementEventSender;
  10434. bool enableAnchor;
  10435. bool enabled;
  10436. /* readonly */
  10437. bool enabledSelf;
  10438. /* readonly */
  10439. bool fixedHeight;
  10440. /* readonly */
  10441. bool fixedSize;
  10442. /* readonly */
  10443. bool fixedWidth;
  10444. bool focus;
  10445. FocusMode focusMode;
  10446. int height;
  10447. HorizontalAlignment horizontalAlignment;
  10448. /* readonly */
  10449. ScrollBar horizontalScrollBar;
  10450. bool horizontalScrollBarVisible;
  10451. /* readonly */
  10452. bool hovering;
  10453. int indent;
  10454. int indentSpacing;
  10455. /* readonly */
  10456. int indentWidth;
  10457. bool internal;
  10458. IntRect layoutBorder;
  10459. Vector2 layoutFlexScale;
  10460. LayoutMode layoutMode;
  10461. int layoutSpacing;
  10462. Vector2 maxAnchor;
  10463. int maxHeight;
  10464. IntVector2 maxOffset;
  10465. IntVector2 maxSize;
  10466. int maxWidth;
  10467. Vector2 minAnchor;
  10468. int minHeight;
  10469. IntVector2 minOffset;
  10470. IntVector2 minSize;
  10471. int minWidth;
  10472. String name;
  10473. /* readonly */
  10474. uint numAllChildren;
  10475. /* readonly */
  10476. uint numAttributes;
  10477. /* readonly */
  10478. uint numChildren;
  10479. ObjectAnimation objectAnimation;
  10480. float opacity;
  10481. float pageStep;
  10482. UIElement parent;
  10483. Vector2 pivot;
  10484. IntVector2 position;
  10485. int priority;
  10486. /* readonly */
  10487. int refs;
  10488. /* readonly */
  10489. UIElement root;
  10490. /* readonly */
  10491. IntVector2 screenPosition;
  10492. bool scrollBarsAutoVisible;
  10493. float scrollDeceleration;
  10494. /* readonly */
  10495. BorderImage scrollPanel;
  10496. float scrollSnapEpsilon;
  10497. float scrollStep;
  10498. bool selected;
  10499. IntVector2 size;
  10500. bool sortChildren;
  10501. String style;
  10502. /* readonly */
  10503. Array<String> tags;
  10504. bool temporary;
  10505. TraversalMode traversalMode;
  10506. /* readonly */
  10507. StringHash type;
  10508. /* readonly */
  10509. String typeName;
  10510. bool useDerivedOpacity;
  10511. /* readonly */
  10512. VariantMap vars;
  10513. VerticalAlignment verticalAlignment;
  10514. /* readonly */
  10515. ScrollBar verticalScrollBar;
  10516. bool verticalScrollBarVisible;
  10517. IntVector2 viewPosition;
  10518. bool visible;
  10519. /* readonly */
  10520. bool visibleEffective;
  10521. /* readonly */
  10522. int weakRefs;
  10523. int width;
  10524. };
  10525. class Serializable
  10526. {
  10527. public:
  10528. // Methods:
  10529. void ApplyAttributes();
  10530. Variant GetAttribute(const String&) const;
  10531. Variant GetAttributeDefault(const String&) const;
  10532. bool GetInterceptNetworkUpdate(const String&) const;
  10533. bool HasSubscribedToEvent(Object, const String&);
  10534. bool HasSubscribedToEvent(const String&);
  10535. bool Load(File);
  10536. bool Load(VectorBuffer&);
  10537. bool LoadJSON(const JSONValue&);
  10538. bool LoadXML(const XMLElement&);
  10539. void MarkNetworkUpdate() const;
  10540. void RemoveInstanceDefault();
  10541. void ResetToDefault();
  10542. bool Save(File) const;
  10543. bool Save(VectorBuffer&) const;
  10544. bool SaveJSON(JSONValue&) const;
  10545. bool SaveXML(XMLElement&) const;
  10546. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10547. bool SetAttribute(const String&, const Variant&);
  10548. void SetInterceptNetworkUpdate(const String&, bool);
  10549. // Properties:
  10550. /* readonly */
  10551. Array<Variant> attributeDefaults;
  10552. /* readonly */
  10553. Array<AttributeInfo> attributeInfos;
  10554. Array<Variant> attributes;
  10555. /* readonly */
  10556. String category;
  10557. /* readonly */
  10558. uint numAttributes;
  10559. /* readonly */
  10560. int refs;
  10561. bool temporary;
  10562. /* readonly */
  10563. StringHash type;
  10564. /* readonly */
  10565. String typeName;
  10566. /* readonly */
  10567. int weakRefs;
  10568. };
  10569. class Serializer
  10570. {
  10571. public:
  10572. // Methods:
  10573. uint Write(Array<uint8>);
  10574. bool WriteBool(bool);
  10575. bool WriteBoundingBox(const BoundingBox&);
  10576. bool WriteByte(int8);
  10577. bool WriteColor(const Color&);
  10578. bool WriteDouble(double);
  10579. bool WriteFileID(const String&);
  10580. bool WriteFloat(float);
  10581. bool WriteInt(int);
  10582. bool WriteInt64(int64);
  10583. bool WriteIntRect(const IntRect&);
  10584. bool WriteIntVector2(const IntVector2&);
  10585. bool WriteLine(const String&);
  10586. bool WriteMatrix3(const Matrix3&);
  10587. bool WriteMatrix3x4(const Matrix3x4&);
  10588. bool WriteMatrix4(const Matrix4&);
  10589. bool WriteNetID(uint);
  10590. bool WritePackedQuaternion(const Quaternion&);
  10591. bool WritePackedVector3(const Vector3&, float);
  10592. bool WriteQuaternion(const Quaternion&);
  10593. bool WriteShort(int16);
  10594. bool WriteString(const String&);
  10595. bool WriteStringHash(const StringHash&);
  10596. bool WriteUByte(uint8);
  10597. bool WriteUInt(uint);
  10598. bool WriteUInt64(uint64);
  10599. bool WriteUShort(uint16);
  10600. bool WriteVLE(uint);
  10601. bool WriteVariant(const Variant&);
  10602. bool WriteVariantMap(const VariantMap&);
  10603. bool WriteVector2(const Vector2&);
  10604. bool WriteVector3(const Vector3&);
  10605. bool WriteVector4(const Vector4&);
  10606. bool WriteVectorBuffer(const VectorBuffer&);
  10607. };
  10608. class Skeleton
  10609. {
  10610. public:
  10611. // Methods:
  10612. Bone GetBone(const String&) const;
  10613. uint GetBoneIndex(const String&) const;
  10614. Bone GetBoneParent(Bone) const;
  10615. void Reset();
  10616. // Properties:
  10617. /* readonly */
  10618. Array<Bone> bones;
  10619. /* readonly */
  10620. uint numBones;
  10621. /* readonly */
  10622. Bone rootBone;
  10623. };
  10624. class Skybox
  10625. {
  10626. public:
  10627. // Methods:
  10628. void ApplyAttributes();
  10629. void ApplyMaterialList(const String& = String ( ));
  10630. void DrawDebugGeometry(DebugRenderer, bool);
  10631. Variant GetAttribute(const String&) const;
  10632. ValueAnimation GetAttributeAnimation(const String&) const;
  10633. float GetAttributeAnimationSpeed(const String&) const;
  10634. float GetAttributeAnimationTime(const String&) const;
  10635. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10636. Variant GetAttributeDefault(const String&) const;
  10637. bool GetInterceptNetworkUpdate(const String&) const;
  10638. bool HasSubscribedToEvent(Object, const String&);
  10639. bool HasSubscribedToEvent(const String&);
  10640. bool IsInView(Camera) const;
  10641. bool Load(File);
  10642. bool Load(VectorBuffer&);
  10643. bool LoadJSON(const JSONValue&);
  10644. bool LoadXML(const XMLElement&);
  10645. void MarkNetworkUpdate() const;
  10646. void Remove();
  10647. void RemoveAttributeAnimation(const String&);
  10648. void RemoveInstanceDefault();
  10649. void RemoveObjectAnimation();
  10650. void ResetToDefault();
  10651. bool Save(File) const;
  10652. bool Save(VectorBuffer&) const;
  10653. bool SaveJSON(JSONValue&) const;
  10654. bool SaveXML(XMLElement&) const;
  10655. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10656. void SetAnimationTime(float);
  10657. bool SetAttribute(const String&, const Variant&);
  10658. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10659. void SetAttributeAnimationSpeed(const String&, float);
  10660. void SetAttributeAnimationTime(const String&, float);
  10661. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10662. void SetInterceptNetworkUpdate(const String&, bool);
  10663. // Properties:
  10664. bool animationEnabled;
  10665. /* readonly */
  10666. Array<Variant> attributeDefaults;
  10667. /* readonly */
  10668. Array<AttributeInfo> attributeInfos;
  10669. Array<Variant> attributes;
  10670. /* readonly */
  10671. BoundingBox boundingBox;
  10672. bool castShadows;
  10673. /* readonly */
  10674. String category;
  10675. float drawDistance;
  10676. bool enabled;
  10677. /* readonly */
  10678. bool enabledEffective;
  10679. /* readonly */
  10680. uint id;
  10681. /* readonly */
  10682. bool inView;
  10683. uint lightMask;
  10684. float lodBias;
  10685. Material material;
  10686. Array<Material> materials;
  10687. uint maxLights;
  10688. Model model;
  10689. /* readonly */
  10690. Node node;
  10691. /* readonly */
  10692. uint numAttributes;
  10693. /* readonly */
  10694. uint numGeometries;
  10695. ObjectAnimation objectAnimation;
  10696. bool occludee;
  10697. bool occluder;
  10698. /* readonly */
  10699. int refs;
  10700. /* readonly */
  10701. bool replicated;
  10702. float shadowDistance;
  10703. uint shadowMask;
  10704. bool temporary;
  10705. /* readonly */
  10706. StringHash type;
  10707. /* readonly */
  10708. String typeName;
  10709. uint viewMask;
  10710. /* readonly */
  10711. int weakRefs;
  10712. /* readonly */
  10713. BoundingBox worldBoundingBox;
  10714. /* readonly */
  10715. Zone zone;
  10716. uint zoneMask;
  10717. };
  10718. class Slider
  10719. {
  10720. public:
  10721. Slider();
  10722. Slider(const String&in);
  10723. // Methods:
  10724. void AddChild(UIElement);
  10725. void AddTag(const String&);
  10726. void AddTags(const String&, int8 = ';');
  10727. void ApplyAttributes();
  10728. void BringToFront();
  10729. void ChangeValue(float);
  10730. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10731. void DisableLayoutUpdate();
  10732. IntVector2 ElementToScreen(const IntVector2&);
  10733. void EnableLayoutUpdate();
  10734. uint FindChild(UIElement) const;
  10735. Variant GetAttribute(const String&) const;
  10736. ValueAnimation GetAttributeAnimation(const String&) const;
  10737. float GetAttributeAnimationSpeed(const String&) const;
  10738. float GetAttributeAnimationTime(const String&) const;
  10739. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10740. Variant GetAttributeDefault(const String&) const;
  10741. UIElement GetChild(const String&, bool = false) const;
  10742. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10743. Array<UIElement> GetChildren(bool = false) const;
  10744. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10745. UIElement GetElementEventSender() const;
  10746. bool GetInterceptNetworkUpdate(const String&) const;
  10747. uint GetNumChildren(bool) const;
  10748. bool HasSubscribedToEvent(Object, const String&);
  10749. bool HasSubscribedToEvent(const String&);
  10750. bool HasTag(const String&) const;
  10751. void InsertChild(uint, UIElement);
  10752. bool IsChildOf(UIElement) const;
  10753. bool IsInside(IntVector2, bool);
  10754. bool IsInsideCombined(IntVector2, bool);
  10755. bool Load(File);
  10756. bool Load(VectorBuffer&);
  10757. UIElement LoadChildXML(XMLFile, XMLFile);
  10758. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10759. bool LoadJSON(const JSONValue&);
  10760. bool LoadXML(File);
  10761. bool LoadXML(VectorBuffer&);
  10762. bool LoadXML(XMLFile, XMLFile);
  10763. bool LoadXML(const XMLElement&, XMLFile);
  10764. bool LoadXML(const XMLElement&);
  10765. void MarkNetworkUpdate() const;
  10766. void Remove();
  10767. void RemoveAllChildren();
  10768. void RemoveAllTags();
  10769. void RemoveAttributeAnimation(const String&);
  10770. void RemoveChild(UIElement, uint = 0);
  10771. void RemoveChild(uint);
  10772. void RemoveInstanceDefault();
  10773. void RemoveObjectAnimation();
  10774. bool RemoveTag(const String&);
  10775. void ResetDeepEnabled();
  10776. void ResetToDefault();
  10777. bool Save(File) const;
  10778. bool Save(VectorBuffer&) const;
  10779. bool SaveJSON(JSONValue&) const;
  10780. bool SaveXML(File, const String& = "\t");
  10781. bool SaveXML(VectorBuffer&, const String& = "\t");
  10782. bool SaveXML(XMLElement&) const;
  10783. IntVector2 ScreenToElement(const IntVector2&);
  10784. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10785. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10786. void SetAnimationTime(float);
  10787. bool SetAttribute(const String&, const Variant&);
  10788. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10789. void SetAttributeAnimationSpeed(const String&, float);
  10790. void SetAttributeAnimationTime(const String&, float);
  10791. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10792. void SetDeepEnabled(bool);
  10793. void SetEnabledRecursive(bool);
  10794. void SetFixedHeight(int);
  10795. void SetFixedSize(int, int);
  10796. void SetFixedWidth(int);
  10797. void SetFullImageRect();
  10798. void SetHoverOffset(int, int);
  10799. void SetInterceptNetworkUpdate(const String&, bool);
  10800. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10801. void SetMaxAnchor(float, float);
  10802. void SetMaxSize(int, int);
  10803. void SetMinAnchor(float, float);
  10804. void SetMinSize(int, int);
  10805. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10806. void SetPivot(float, float);
  10807. void SetPosition(int, int);
  10808. void SetSize(int, int);
  10809. bool SetStyle(const String&, XMLFile = null);
  10810. bool SetStyle(const XMLElement&);
  10811. bool SetStyleAuto(XMLFile = null);
  10812. void UpdateLayout();
  10813. const Variant& GetVar(const StringHash&);
  10814. // Properties:
  10815. bool animationEnabled;
  10816. /* readonly */
  10817. Array<Variant> attributeDefaults;
  10818. /* readonly */
  10819. Array<AttributeInfo> attributeInfos;
  10820. Array<Variant> attributes;
  10821. BlendMode blendMode;
  10822. IntRect border;
  10823. bool bringToBack;
  10824. bool bringToFront;
  10825. /* readonly */
  10826. String category;
  10827. /* readonly */
  10828. IntVector2 childOffset;
  10829. /* readonly */
  10830. Array<UIElement> children;
  10831. IntRect clipBorder;
  10832. bool clipChildren;
  10833. /* writeonly */
  10834. Color color;
  10835. /* readonly */
  10836. bool colorGradient;
  10837. Array<Color> colors;
  10838. /* readonly */
  10839. IntRect combinedScreenRect;
  10840. XMLFile defaultStyle;
  10841. /* readonly */
  10842. float derivedOpacity;
  10843. /* readonly */
  10844. uint dragButtonCombo;
  10845. /* readonly */
  10846. int dragButtonCount;
  10847. uint dragDropMode;
  10848. bool editable;
  10849. bool elementEventSender;
  10850. bool enableAnchor;
  10851. bool enabled;
  10852. /* readonly */
  10853. bool enabledSelf;
  10854. /* readonly */
  10855. bool fixedHeight;
  10856. /* readonly */
  10857. bool fixedSize;
  10858. /* readonly */
  10859. bool fixedWidth;
  10860. bool focus;
  10861. FocusMode focusMode;
  10862. int height;
  10863. HorizontalAlignment horizontalAlignment;
  10864. IntVector2 hoverOffset;
  10865. /* readonly */
  10866. bool hovering;
  10867. IntRect imageBorder;
  10868. IntRect imageRect;
  10869. int indent;
  10870. int indentSpacing;
  10871. /* readonly */
  10872. int indentWidth;
  10873. bool internal;
  10874. /* readonly */
  10875. BorderImage knob;
  10876. IntRect layoutBorder;
  10877. Vector2 layoutFlexScale;
  10878. LayoutMode layoutMode;
  10879. int layoutSpacing;
  10880. Vector2 maxAnchor;
  10881. int maxHeight;
  10882. IntVector2 maxOffset;
  10883. IntVector2 maxSize;
  10884. int maxWidth;
  10885. Vector2 minAnchor;
  10886. int minHeight;
  10887. IntVector2 minOffset;
  10888. IntVector2 minSize;
  10889. int minWidth;
  10890. String name;
  10891. /* readonly */
  10892. uint numAllChildren;
  10893. /* readonly */
  10894. uint numAttributes;
  10895. /* readonly */
  10896. uint numChildren;
  10897. ObjectAnimation objectAnimation;
  10898. float opacity;
  10899. Orientation orientation;
  10900. UIElement parent;
  10901. Vector2 pivot;
  10902. IntVector2 position;
  10903. int priority;
  10904. float range;
  10905. /* readonly */
  10906. int refs;
  10907. float repeatRate;
  10908. /* readonly */
  10909. UIElement root;
  10910. /* readonly */
  10911. IntVector2 screenPosition;
  10912. bool selected;
  10913. IntVector2 size;
  10914. bool sortChildren;
  10915. String style;
  10916. /* readonly */
  10917. Array<String> tags;
  10918. bool temporary;
  10919. Texture texture;
  10920. bool tiled;
  10921. TraversalMode traversalMode;
  10922. /* readonly */
  10923. StringHash type;
  10924. /* readonly */
  10925. String typeName;
  10926. bool useDerivedOpacity;
  10927. float value;
  10928. /* readonly */
  10929. VariantMap vars;
  10930. VerticalAlignment verticalAlignment;
  10931. bool visible;
  10932. /* readonly */
  10933. bool visibleEffective;
  10934. /* readonly */
  10935. int weakRefs;
  10936. int width;
  10937. };
  10938. class SmoothedTransform
  10939. {
  10940. public:
  10941. // Methods:
  10942. void ApplyAttributes();
  10943. void DrawDebugGeometry(DebugRenderer, bool);
  10944. Variant GetAttribute(const String&) const;
  10945. ValueAnimation GetAttributeAnimation(const String&) const;
  10946. float GetAttributeAnimationSpeed(const String&) const;
  10947. float GetAttributeAnimationTime(const String&) const;
  10948. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10949. Variant GetAttributeDefault(const String&) const;
  10950. bool GetInterceptNetworkUpdate(const String&) const;
  10951. bool HasSubscribedToEvent(Object, const String&);
  10952. bool HasSubscribedToEvent(const String&);
  10953. bool Load(File);
  10954. bool Load(VectorBuffer&);
  10955. bool LoadJSON(const JSONValue&);
  10956. bool LoadXML(const XMLElement&);
  10957. void MarkNetworkUpdate() const;
  10958. void Remove();
  10959. void RemoveAttributeAnimation(const String&);
  10960. void RemoveInstanceDefault();
  10961. void RemoveObjectAnimation();
  10962. void ResetToDefault();
  10963. bool Save(File) const;
  10964. bool Save(VectorBuffer&) const;
  10965. bool SaveJSON(JSONValue&) const;
  10966. bool SaveXML(XMLElement&) const;
  10967. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10968. void SetAnimationTime(float);
  10969. bool SetAttribute(const String&, const Variant&);
  10970. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10971. void SetAttributeAnimationSpeed(const String&, float);
  10972. void SetAttributeAnimationTime(const String&, float);
  10973. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10974. void SetInterceptNetworkUpdate(const String&, bool);
  10975. void Update(float, float);
  10976. // Properties:
  10977. bool animationEnabled;
  10978. /* readonly */
  10979. Array<Variant> attributeDefaults;
  10980. /* readonly */
  10981. Array<AttributeInfo> attributeInfos;
  10982. Array<Variant> attributes;
  10983. /* readonly */
  10984. String category;
  10985. bool enabled;
  10986. /* readonly */
  10987. bool enabledEffective;
  10988. /* readonly */
  10989. uint id;
  10990. /* readonly */
  10991. bool inProgress;
  10992. /* readonly */
  10993. Node node;
  10994. /* readonly */
  10995. uint numAttributes;
  10996. ObjectAnimation objectAnimation;
  10997. /* readonly */
  10998. int refs;
  10999. /* readonly */
  11000. bool replicated;
  11001. Vector3 targetPosition;
  11002. Quaternion targetRotation;
  11003. Vector3 targetWorldPosition;
  11004. Quaternion targetWorldRotation;
  11005. bool temporary;
  11006. /* readonly */
  11007. StringHash type;
  11008. /* readonly */
  11009. String typeName;
  11010. /* readonly */
  11011. int weakRefs;
  11012. };
  11013. class Sound
  11014. {
  11015. public:
  11016. Sound();
  11017. Sound(const String&in);
  11018. // Methods:
  11019. void AddMetadata(const String&, const Variant&);
  11020. bool HasSubscribedToEvent(Object, const String&);
  11021. bool HasSubscribedToEvent(const String&);
  11022. bool Load(File);
  11023. bool Load(VectorBuffer&);
  11024. bool Load(const String&);
  11025. void RemoveAllMetadata();
  11026. void RemoveMetadata(const String&);
  11027. bool Save(File) const;
  11028. bool Save(VectorBuffer&) const;
  11029. bool Save(const String&) const;
  11030. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11031. // Properties:
  11032. /* readonly */
  11033. String category;
  11034. /* readonly */
  11035. bool compressed;
  11036. /* readonly */
  11037. float frequency;
  11038. /* readonly */
  11039. bool hasMetadata;
  11040. /* readonly */
  11041. float length;
  11042. bool looped;
  11043. /* readonly */
  11044. uint memoryUse;
  11045. Array<Variant> metadata;
  11046. String name;
  11047. /* readonly */
  11048. int refs;
  11049. /* readonly */
  11050. uint sampleSize;
  11051. /* readonly */
  11052. bool sixteenBit;
  11053. /* readonly */
  11054. bool stereo;
  11055. /* readonly */
  11056. StringHash type;
  11057. /* readonly */
  11058. String typeName;
  11059. /* readonly */
  11060. uint useTimer;
  11061. /* readonly */
  11062. int weakRefs;
  11063. };
  11064. class SoundListener
  11065. {
  11066. public:
  11067. // Methods:
  11068. void ApplyAttributes();
  11069. void DrawDebugGeometry(DebugRenderer, bool);
  11070. Variant GetAttribute(const String&) const;
  11071. ValueAnimation GetAttributeAnimation(const String&) const;
  11072. float GetAttributeAnimationSpeed(const String&) const;
  11073. float GetAttributeAnimationTime(const String&) const;
  11074. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11075. Variant GetAttributeDefault(const String&) const;
  11076. bool GetInterceptNetworkUpdate(const String&) const;
  11077. bool HasSubscribedToEvent(Object, const String&);
  11078. bool HasSubscribedToEvent(const String&);
  11079. bool Load(File);
  11080. bool Load(VectorBuffer&);
  11081. bool LoadJSON(const JSONValue&);
  11082. bool LoadXML(const XMLElement&);
  11083. void MarkNetworkUpdate() const;
  11084. void Remove();
  11085. void RemoveAttributeAnimation(const String&);
  11086. void RemoveInstanceDefault();
  11087. void RemoveObjectAnimation();
  11088. void ResetToDefault();
  11089. bool Save(File) const;
  11090. bool Save(VectorBuffer&) const;
  11091. bool SaveJSON(JSONValue&) const;
  11092. bool SaveXML(XMLElement&) const;
  11093. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11094. void SetAnimationTime(float);
  11095. bool SetAttribute(const String&, const Variant&);
  11096. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11097. void SetAttributeAnimationSpeed(const String&, float);
  11098. void SetAttributeAnimationTime(const String&, float);
  11099. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11100. void SetInterceptNetworkUpdate(const String&, bool);
  11101. // Properties:
  11102. bool animationEnabled;
  11103. /* readonly */
  11104. Array<Variant> attributeDefaults;
  11105. /* readonly */
  11106. Array<AttributeInfo> attributeInfos;
  11107. Array<Variant> attributes;
  11108. /* readonly */
  11109. String category;
  11110. bool enabled;
  11111. /* readonly */
  11112. bool enabledEffective;
  11113. /* readonly */
  11114. uint id;
  11115. /* readonly */
  11116. Node node;
  11117. /* readonly */
  11118. uint numAttributes;
  11119. ObjectAnimation objectAnimation;
  11120. /* readonly */
  11121. int refs;
  11122. /* readonly */
  11123. bool replicated;
  11124. bool temporary;
  11125. /* readonly */
  11126. StringHash type;
  11127. /* readonly */
  11128. String typeName;
  11129. /* readonly */
  11130. int weakRefs;
  11131. };
  11132. class SoundSource
  11133. {
  11134. public:
  11135. SoundSource();
  11136. // Methods:
  11137. void ApplyAttributes();
  11138. void DrawDebugGeometry(DebugRenderer, bool);
  11139. Variant GetAttribute(const String&) const;
  11140. ValueAnimation GetAttributeAnimation(const String&) const;
  11141. float GetAttributeAnimationSpeed(const String&) const;
  11142. float GetAttributeAnimationTime(const String&) const;
  11143. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11144. Variant GetAttributeDefault(const String&) const;
  11145. bool GetInterceptNetworkUpdate(const String&) const;
  11146. bool HasSubscribedToEvent(Object, const String&);
  11147. bool HasSubscribedToEvent(const String&);
  11148. bool Load(File);
  11149. bool Load(VectorBuffer&);
  11150. bool LoadJSON(const JSONValue&);
  11151. bool LoadXML(const XMLElement&);
  11152. void MarkNetworkUpdate() const;
  11153. void Play(Sound);
  11154. void Play(Sound, float);
  11155. void Play(Sound, float, float);
  11156. void Play(Sound, float, float, float);
  11157. void Remove();
  11158. void RemoveAttributeAnimation(const String&);
  11159. void RemoveInstanceDefault();
  11160. void RemoveObjectAnimation();
  11161. void ResetToDefault();
  11162. bool Save(File) const;
  11163. bool Save(VectorBuffer&) const;
  11164. bool SaveJSON(JSONValue&) const;
  11165. bool SaveXML(XMLElement&) const;
  11166. void Seek(float);
  11167. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11168. void SetAnimationTime(float);
  11169. bool SetAttribute(const String&, const Variant&);
  11170. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11171. void SetAttributeAnimationSpeed(const String&, float);
  11172. void SetAttributeAnimationTime(const String&, float);
  11173. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11174. void SetInterceptNetworkUpdate(const String&, bool);
  11175. void Stop();
  11176. // Properties:
  11177. bool animationEnabled;
  11178. /* readonly */
  11179. float attenuation;
  11180. /* readonly */
  11181. Array<Variant> attributeDefaults;
  11182. /* readonly */
  11183. Array<AttributeInfo> attributeInfos;
  11184. Array<Variant> attributes;
  11185. AutoRemoveMode autoRemoveMode;
  11186. /* readonly */
  11187. String category;
  11188. bool enabled;
  11189. /* readonly */
  11190. bool enabledEffective;
  11191. float frequency;
  11192. float gain;
  11193. /* readonly */
  11194. uint id;
  11195. /* readonly */
  11196. Node node;
  11197. /* readonly */
  11198. uint numAttributes;
  11199. ObjectAnimation objectAnimation;
  11200. float panning;
  11201. /* readonly */
  11202. bool playing;
  11203. /* readonly */
  11204. int refs;
  11205. /* readonly */
  11206. bool replicated;
  11207. /* readonly */
  11208. Sound sound;
  11209. String soundType;
  11210. bool temporary;
  11211. /* readonly */
  11212. float timePosition;
  11213. /* readonly */
  11214. StringHash type;
  11215. /* readonly */
  11216. String typeName;
  11217. /* readonly */
  11218. int weakRefs;
  11219. };
  11220. class SoundSource3D
  11221. {
  11222. public:
  11223. // Methods:
  11224. void ApplyAttributes();
  11225. void DrawDebugGeometry(DebugRenderer, bool);
  11226. Variant GetAttribute(const String&) const;
  11227. ValueAnimation GetAttributeAnimation(const String&) const;
  11228. float GetAttributeAnimationSpeed(const String&) const;
  11229. float GetAttributeAnimationTime(const String&) const;
  11230. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11231. Variant GetAttributeDefault(const String&) const;
  11232. bool GetInterceptNetworkUpdate(const String&) const;
  11233. bool HasSubscribedToEvent(Object, const String&);
  11234. bool HasSubscribedToEvent(const String&);
  11235. bool Load(File);
  11236. bool Load(VectorBuffer&);
  11237. bool LoadJSON(const JSONValue&);
  11238. bool LoadXML(const XMLElement&);
  11239. void MarkNetworkUpdate() const;
  11240. void Play(Sound);
  11241. void Play(Sound, float);
  11242. void Play(Sound, float, float);
  11243. void Play(Sound, float, float, float);
  11244. void Remove();
  11245. void RemoveAttributeAnimation(const String&);
  11246. void RemoveInstanceDefault();
  11247. void RemoveObjectAnimation();
  11248. void ResetToDefault();
  11249. bool Save(File) const;
  11250. bool Save(VectorBuffer&) const;
  11251. bool SaveJSON(JSONValue&) const;
  11252. bool SaveXML(XMLElement&) const;
  11253. void Seek(float);
  11254. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11255. void SetAngleAttenuation(float, float);
  11256. void SetAnimationTime(float);
  11257. bool SetAttribute(const String&, const Variant&);
  11258. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11259. void SetAttributeAnimationSpeed(const String&, float);
  11260. void SetAttributeAnimationTime(const String&, float);
  11261. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11262. void SetDistanceAttenuation(float, float, float);
  11263. void SetInterceptNetworkUpdate(const String&, bool);
  11264. void Stop();
  11265. // Properties:
  11266. bool animationEnabled;
  11267. /* readonly */
  11268. float attenuation;
  11269. /* readonly */
  11270. Array<Variant> attributeDefaults;
  11271. /* readonly */
  11272. Array<AttributeInfo> attributeInfos;
  11273. Array<Variant> attributes;
  11274. AutoRemoveMode autoRemoveMode;
  11275. /* readonly */
  11276. String category;
  11277. bool enabled;
  11278. /* readonly */
  11279. bool enabledEffective;
  11280. float farDistance;
  11281. float frequency;
  11282. float gain;
  11283. /* readonly */
  11284. uint id;
  11285. float innerAngle;
  11286. float nearDistance;
  11287. /* readonly */
  11288. Node node;
  11289. /* readonly */
  11290. uint numAttributes;
  11291. ObjectAnimation objectAnimation;
  11292. float outerAngle;
  11293. float panning;
  11294. /* readonly */
  11295. bool playing;
  11296. /* readonly */
  11297. int refs;
  11298. /* readonly */
  11299. bool replicated;
  11300. float rolloffFactor;
  11301. /* readonly */
  11302. Sound sound;
  11303. String soundType;
  11304. bool temporary;
  11305. /* readonly */
  11306. float timePosition;
  11307. /* readonly */
  11308. StringHash type;
  11309. /* readonly */
  11310. String typeName;
  11311. /* readonly */
  11312. int weakRefs;
  11313. };
  11314. class Sphere
  11315. {
  11316. public:
  11317. Sphere();
  11318. Sphere(const Sphere&in);
  11319. Sphere(const Vector3&in, float);
  11320. Sphere(const BoundingBox&in);
  11321. Sphere(const Frustum&in);
  11322. Sphere(const Polyhedron&in);
  11323. // Methods:
  11324. void Clear();
  11325. void Define(const BoundingBox&);
  11326. void Define(const Frustum&);
  11327. void Define(const Polyhedron&);
  11328. void Define(const Sphere&);
  11329. void Define(const Vector3&, float);
  11330. bool Defined() const;
  11331. float Distance(const Vector3&) const;
  11332. Vector3 GetLocalPoint(float, float) const;
  11333. Vector3 GetPoint(float, float) const;
  11334. Intersection IsInside(const BoundingBox&) const;
  11335. Intersection IsInside(const Sphere&) const;
  11336. Intersection IsInside(const Vector3&) const;
  11337. Intersection IsInsideFast(const BoundingBox&) const;
  11338. Intersection IsInsideFast(const Sphere&) const;
  11339. void Merge(const BoundingBox&);
  11340. void Merge(const Frustum&);
  11341. void Merge(const Sphere&);
  11342. void Merge(const Vector3&);
  11343. // Properties:
  11344. Vector3 center;
  11345. float radius;
  11346. };
  11347. class Spline
  11348. {
  11349. public:
  11350. Spline();
  11351. Spline(InterpolationMode);
  11352. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  11353. Spline(const Spline&in);
  11354. // Methods:
  11355. void AddKnot(const Variant&);
  11356. void AddKnot(const Variant&, uint);
  11357. void Clear();
  11358. Variant GetPoint(float);
  11359. void RemoveKnot();
  11360. void RemoveKnot(uint);
  11361. // Properties:
  11362. InterpolationMode interpolationMode;
  11363. Array<Variant> knot;
  11364. Array<Variant> knots;
  11365. };
  11366. class SplinePath
  11367. {
  11368. public:
  11369. // Methods:
  11370. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  11371. void ApplyAttributes();
  11372. void ClearControlPoints();
  11373. void DrawDebugGeometry(DebugRenderer, bool);
  11374. Variant GetAttribute(const String&) const;
  11375. ValueAnimation GetAttributeAnimation(const String&) const;
  11376. float GetAttributeAnimationSpeed(const String&) const;
  11377. float GetAttributeAnimationTime(const String&) const;
  11378. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11379. Variant GetAttributeDefault(const String&) const;
  11380. bool GetInterceptNetworkUpdate(const String&) const;
  11381. Vector3 GetPoint(float) const;
  11382. Vector3 GetPosition() const;
  11383. bool HasSubscribedToEvent(Object, const String&);
  11384. bool HasSubscribedToEvent(const String&);
  11385. bool Load(File);
  11386. bool Load(VectorBuffer&);
  11387. bool LoadJSON(const JSONValue&);
  11388. bool LoadXML(const XMLElement&);
  11389. void MarkNetworkUpdate() const;
  11390. void Move(float);
  11391. void Remove();
  11392. void RemoveAttributeAnimation(const String&);
  11393. void RemoveControlPoint(Node);
  11394. void RemoveInstanceDefault();
  11395. void RemoveObjectAnimation();
  11396. void Reset();
  11397. void ResetToDefault();
  11398. bool Save(File) const;
  11399. bool Save(VectorBuffer&) const;
  11400. bool SaveJSON(JSONValue&) const;
  11401. bool SaveXML(XMLElement&) const;
  11402. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11403. void SetAnimationTime(float);
  11404. bool SetAttribute(const String&, const Variant&);
  11405. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11406. void SetAttributeAnimationSpeed(const String&, float);
  11407. void SetAttributeAnimationTime(const String&, float);
  11408. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11409. void SetInterceptNetworkUpdate(const String&, bool);
  11410. void SetPosition(float);
  11411. // Properties:
  11412. bool animationEnabled;
  11413. /* readonly */
  11414. Array<Variant> attributeDefaults;
  11415. /* readonly */
  11416. Array<AttributeInfo> attributeInfos;
  11417. Array<Variant> attributes;
  11418. /* readonly */
  11419. String category;
  11420. Node controlledNode;
  11421. bool enabled;
  11422. /* readonly */
  11423. bool enabledEffective;
  11424. /* readonly */
  11425. uint id;
  11426. InterpolationMode interpolationMode;
  11427. /* readonly */
  11428. bool isFinished;
  11429. /* readonly */
  11430. float length;
  11431. /* readonly */
  11432. Node node;
  11433. /* readonly */
  11434. uint numAttributes;
  11435. ObjectAnimation objectAnimation;
  11436. /* readonly */
  11437. int refs;
  11438. /* readonly */
  11439. bool replicated;
  11440. float speed;
  11441. bool temporary;
  11442. /* readonly */
  11443. StringHash type;
  11444. /* readonly */
  11445. String typeName;
  11446. /* readonly */
  11447. int weakRefs;
  11448. };
  11449. class Sprite
  11450. {
  11451. public:
  11452. Sprite();
  11453. Sprite(const String&in);
  11454. // Methods:
  11455. void AddChild(UIElement);
  11456. void AddTag(const String&);
  11457. void AddTags(const String&, int8 = ';');
  11458. void ApplyAttributes();
  11459. void BringToFront();
  11460. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11461. void DisableLayoutUpdate();
  11462. IntVector2 ElementToScreen(const IntVector2&);
  11463. void EnableLayoutUpdate();
  11464. uint FindChild(UIElement) const;
  11465. Variant GetAttribute(const String&) const;
  11466. ValueAnimation GetAttributeAnimation(const String&) const;
  11467. float GetAttributeAnimationSpeed(const String&) const;
  11468. float GetAttributeAnimationTime(const String&) const;
  11469. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11470. Variant GetAttributeDefault(const String&) const;
  11471. UIElement GetChild(const String&, bool = false) const;
  11472. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11473. Array<UIElement> GetChildren(bool = false) const;
  11474. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11475. UIElement GetElementEventSender() const;
  11476. bool GetInterceptNetworkUpdate(const String&) const;
  11477. uint GetNumChildren(bool) const;
  11478. bool HasSubscribedToEvent(Object, const String&);
  11479. bool HasSubscribedToEvent(const String&);
  11480. bool HasTag(const String&) const;
  11481. void InsertChild(uint, UIElement);
  11482. bool IsChildOf(UIElement) const;
  11483. bool IsInside(IntVector2, bool);
  11484. bool IsInsideCombined(IntVector2, bool);
  11485. bool Load(File);
  11486. bool Load(VectorBuffer&);
  11487. UIElement LoadChildXML(XMLFile, XMLFile);
  11488. UIElement LoadChildXML(const XMLElement&, XMLFile);
  11489. bool LoadJSON(const JSONValue&);
  11490. bool LoadXML(File);
  11491. bool LoadXML(VectorBuffer&);
  11492. bool LoadXML(XMLFile, XMLFile);
  11493. bool LoadXML(const XMLElement&, XMLFile);
  11494. bool LoadXML(const XMLElement&);
  11495. void MarkNetworkUpdate() const;
  11496. void Remove();
  11497. void RemoveAllChildren();
  11498. void RemoveAllTags();
  11499. void RemoveAttributeAnimation(const String&);
  11500. void RemoveChild(UIElement, uint = 0);
  11501. void RemoveChild(uint);
  11502. void RemoveInstanceDefault();
  11503. void RemoveObjectAnimation();
  11504. bool RemoveTag(const String&);
  11505. void ResetDeepEnabled();
  11506. void ResetToDefault();
  11507. bool Save(File) const;
  11508. bool Save(VectorBuffer&) const;
  11509. bool SaveJSON(JSONValue&) const;
  11510. bool SaveXML(File, const String& = "\t");
  11511. bool SaveXML(VectorBuffer&, const String& = "\t");
  11512. bool SaveXML(XMLElement&) const;
  11513. IntVector2 ScreenToElement(const IntVector2&);
  11514. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11515. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11516. void SetAnimationTime(float);
  11517. bool SetAttribute(const String&, const Variant&);
  11518. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11519. void SetAttributeAnimationSpeed(const String&, float);
  11520. void SetAttributeAnimationTime(const String&, float);
  11521. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11522. void SetDeepEnabled(bool);
  11523. void SetEnabledRecursive(bool);
  11524. void SetFixedHeight(int);
  11525. void SetFixedSize(int, int);
  11526. void SetFixedWidth(int);
  11527. void SetFullImageRect();
  11528. void SetHotSpot(int, int);
  11529. void SetInterceptNetworkUpdate(const String&, bool);
  11530. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11531. void SetMaxAnchor(float, float);
  11532. void SetMaxSize(int, int);
  11533. void SetMinAnchor(float, float);
  11534. void SetMinSize(int, int);
  11535. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11536. void SetPivot(float, float);
  11537. void SetPosition(float, float);
  11538. void SetScale(float);
  11539. void SetScale(float, float);
  11540. void SetSize(int, int);
  11541. bool SetStyle(const String&, XMLFile = null);
  11542. bool SetStyle(const XMLElement&);
  11543. bool SetStyleAuto(XMLFile = null);
  11544. void UpdateLayout();
  11545. const Variant& GetVar(const StringHash&);
  11546. // Properties:
  11547. bool animationEnabled;
  11548. /* readonly */
  11549. Array<Variant> attributeDefaults;
  11550. /* readonly */
  11551. Array<AttributeInfo> attributeInfos;
  11552. Array<Variant> attributes;
  11553. BlendMode blendMode;
  11554. bool bringToBack;
  11555. bool bringToFront;
  11556. /* readonly */
  11557. String category;
  11558. /* readonly */
  11559. IntVector2 childOffset;
  11560. /* readonly */
  11561. Array<UIElement> children;
  11562. IntRect clipBorder;
  11563. bool clipChildren;
  11564. /* writeonly */
  11565. Color color;
  11566. /* readonly */
  11567. bool colorGradient;
  11568. Array<Color> colors;
  11569. /* readonly */
  11570. IntRect combinedScreenRect;
  11571. XMLFile defaultStyle;
  11572. /* readonly */
  11573. float derivedOpacity;
  11574. /* readonly */
  11575. uint dragButtonCombo;
  11576. /* readonly */
  11577. int dragButtonCount;
  11578. uint dragDropMode;
  11579. bool editable;
  11580. bool elementEventSender;
  11581. bool enableAnchor;
  11582. bool enabled;
  11583. /* readonly */
  11584. bool enabledSelf;
  11585. /* readonly */
  11586. bool fixedHeight;
  11587. /* readonly */
  11588. bool fixedSize;
  11589. /* readonly */
  11590. bool fixedWidth;
  11591. bool focus;
  11592. FocusMode focusMode;
  11593. int height;
  11594. HorizontalAlignment horizontalAlignment;
  11595. IntVector2 hotSpot;
  11596. /* readonly */
  11597. bool hovering;
  11598. IntRect imageRect;
  11599. int indent;
  11600. int indentSpacing;
  11601. /* readonly */
  11602. int indentWidth;
  11603. bool internal;
  11604. IntRect layoutBorder;
  11605. Vector2 layoutFlexScale;
  11606. LayoutMode layoutMode;
  11607. int layoutSpacing;
  11608. Vector2 maxAnchor;
  11609. int maxHeight;
  11610. IntVector2 maxOffset;
  11611. IntVector2 maxSize;
  11612. int maxWidth;
  11613. Vector2 minAnchor;
  11614. int minHeight;
  11615. IntVector2 minOffset;
  11616. IntVector2 minSize;
  11617. int minWidth;
  11618. String name;
  11619. /* readonly */
  11620. uint numAllChildren;
  11621. /* readonly */
  11622. uint numAttributes;
  11623. /* readonly */
  11624. uint numChildren;
  11625. ObjectAnimation objectAnimation;
  11626. float opacity;
  11627. UIElement parent;
  11628. Vector2 pivot;
  11629. Vector2 position;
  11630. int priority;
  11631. /* readonly */
  11632. int refs;
  11633. /* readonly */
  11634. UIElement root;
  11635. float rotation;
  11636. Vector2 scale;
  11637. /* readonly */
  11638. IntVector2 screenPosition;
  11639. bool selected;
  11640. IntVector2 size;
  11641. bool sortChildren;
  11642. String style;
  11643. /* readonly */
  11644. Array<String> tags;
  11645. bool temporary;
  11646. Texture texture;
  11647. TraversalMode traversalMode;
  11648. /* readonly */
  11649. StringHash type;
  11650. /* readonly */
  11651. String typeName;
  11652. bool useDerivedOpacity;
  11653. /* readonly */
  11654. VariantMap vars;
  11655. VerticalAlignment verticalAlignment;
  11656. bool visible;
  11657. /* readonly */
  11658. bool visibleEffective;
  11659. /* readonly */
  11660. int weakRefs;
  11661. int width;
  11662. };
  11663. class Sprite2D
  11664. {
  11665. public:
  11666. Sprite2D();
  11667. Sprite2D(const String&in);
  11668. // Methods:
  11669. bool HasSubscribedToEvent(Object, const String&);
  11670. bool HasSubscribedToEvent(const String&);
  11671. bool Load(File);
  11672. bool Load(VectorBuffer&);
  11673. bool Load(const String&);
  11674. bool Save(File) const;
  11675. bool Save(VectorBuffer&) const;
  11676. bool Save(const String&) const;
  11677. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11678. // Properties:
  11679. /* readonly */
  11680. String category;
  11681. Vector2 hotSpot;
  11682. /* readonly */
  11683. uint memoryUse;
  11684. String name;
  11685. IntVector2 offset;
  11686. IntRect rectangle;
  11687. /* readonly */
  11688. int refs;
  11689. Texture2D texture;
  11690. float textureEdgeOffset;
  11691. /* readonly */
  11692. StringHash type;
  11693. /* readonly */
  11694. String typeName;
  11695. /* readonly */
  11696. uint useTimer;
  11697. /* readonly */
  11698. int weakRefs;
  11699. };
  11700. class SpriteSheet2D
  11701. {
  11702. public:
  11703. SpriteSheet2D();
  11704. SpriteSheet2D(const String&in);
  11705. // Methods:
  11706. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  11707. Sprite2D GetSprite(const String&);
  11708. bool HasSubscribedToEvent(Object, const String&);
  11709. bool HasSubscribedToEvent(const String&);
  11710. bool Load(File);
  11711. bool Load(VectorBuffer&);
  11712. bool Load(const String&);
  11713. bool Save(File) const;
  11714. bool Save(VectorBuffer&) const;
  11715. bool Save(const String&) const;
  11716. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11717. // Properties:
  11718. /* readonly */
  11719. String category;
  11720. /* readonly */
  11721. uint memoryUse;
  11722. String name;
  11723. /* readonly */
  11724. int refs;
  11725. Texture2D texture;
  11726. /* readonly */
  11727. StringHash type;
  11728. /* readonly */
  11729. String typeName;
  11730. /* readonly */
  11731. uint useTimer;
  11732. /* readonly */
  11733. int weakRefs;
  11734. };
  11735. class StaticModel
  11736. {
  11737. public:
  11738. // Methods:
  11739. void ApplyAttributes();
  11740. void ApplyMaterialList(const String& = String ( ));
  11741. void DrawDebugGeometry(DebugRenderer, bool);
  11742. Variant GetAttribute(const String&) const;
  11743. ValueAnimation GetAttributeAnimation(const String&) const;
  11744. float GetAttributeAnimationSpeed(const String&) const;
  11745. float GetAttributeAnimationTime(const String&) const;
  11746. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11747. Variant GetAttributeDefault(const String&) const;
  11748. bool GetInterceptNetworkUpdate(const String&) const;
  11749. bool HasSubscribedToEvent(Object, const String&);
  11750. bool HasSubscribedToEvent(const String&);
  11751. bool IsInView(Camera) const;
  11752. bool IsInside(const Vector3&) const;
  11753. bool IsInsideLocal(const Vector3&) const;
  11754. bool Load(File);
  11755. bool Load(VectorBuffer&);
  11756. bool LoadJSON(const JSONValue&);
  11757. bool LoadXML(const XMLElement&);
  11758. void MarkNetworkUpdate() const;
  11759. void Remove();
  11760. void RemoveAttributeAnimation(const String&);
  11761. void RemoveInstanceDefault();
  11762. void RemoveObjectAnimation();
  11763. void ResetToDefault();
  11764. bool Save(File) const;
  11765. bool Save(VectorBuffer&) const;
  11766. bool SaveJSON(JSONValue&) const;
  11767. bool SaveXML(XMLElement&) const;
  11768. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11769. void SetAnimationTime(float);
  11770. bool SetAttribute(const String&, const Variant&);
  11771. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11772. void SetAttributeAnimationSpeed(const String&, float);
  11773. void SetAttributeAnimationTime(const String&, float);
  11774. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11775. void SetInterceptNetworkUpdate(const String&, bool);
  11776. // Properties:
  11777. bool animationEnabled;
  11778. /* readonly */
  11779. Array<Variant> attributeDefaults;
  11780. /* readonly */
  11781. Array<AttributeInfo> attributeInfos;
  11782. Array<Variant> attributes;
  11783. /* readonly */
  11784. BoundingBox boundingBox;
  11785. bool castShadows;
  11786. /* readonly */
  11787. String category;
  11788. float drawDistance;
  11789. bool enabled;
  11790. /* readonly */
  11791. bool enabledEffective;
  11792. /* readonly */
  11793. uint id;
  11794. /* readonly */
  11795. bool inView;
  11796. uint lightMask;
  11797. float lodBias;
  11798. Material material;
  11799. Array<Material> materials;
  11800. uint maxLights;
  11801. Model model;
  11802. /* readonly */
  11803. Node node;
  11804. /* readonly */
  11805. uint numAttributes;
  11806. /* readonly */
  11807. uint numGeometries;
  11808. ObjectAnimation objectAnimation;
  11809. bool occludee;
  11810. bool occluder;
  11811. uint occlusionLodLevel;
  11812. /* readonly */
  11813. int refs;
  11814. /* readonly */
  11815. bool replicated;
  11816. float shadowDistance;
  11817. uint shadowMask;
  11818. bool temporary;
  11819. /* readonly */
  11820. StringHash type;
  11821. /* readonly */
  11822. String typeName;
  11823. uint viewMask;
  11824. /* readonly */
  11825. int weakRefs;
  11826. /* readonly */
  11827. BoundingBox worldBoundingBox;
  11828. uint zoneMask;
  11829. };
  11830. class StaticModelGroup
  11831. {
  11832. public:
  11833. // Methods:
  11834. void AddInstanceNode(Node);
  11835. void ApplyAttributes();
  11836. void ApplyMaterialList(const String& = String ( ));
  11837. void DrawDebugGeometry(DebugRenderer, bool);
  11838. Variant GetAttribute(const String&) const;
  11839. ValueAnimation GetAttributeAnimation(const String&) const;
  11840. float GetAttributeAnimationSpeed(const String&) const;
  11841. float GetAttributeAnimationTime(const String&) const;
  11842. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11843. Variant GetAttributeDefault(const String&) const;
  11844. bool GetInterceptNetworkUpdate(const String&) const;
  11845. bool HasSubscribedToEvent(Object, const String&);
  11846. bool HasSubscribedToEvent(const String&);
  11847. bool IsInView(Camera) const;
  11848. bool Load(File);
  11849. bool Load(VectorBuffer&);
  11850. bool LoadJSON(const JSONValue&);
  11851. bool LoadXML(const XMLElement&);
  11852. void MarkNetworkUpdate() const;
  11853. void Remove();
  11854. void RemoveAllInstanceNodes();
  11855. void RemoveAttributeAnimation(const String&);
  11856. void RemoveInstanceDefault();
  11857. void RemoveInstanceNode(Node);
  11858. void RemoveObjectAnimation();
  11859. void ResetToDefault();
  11860. bool Save(File) const;
  11861. bool Save(VectorBuffer&) const;
  11862. bool SaveJSON(JSONValue&) const;
  11863. bool SaveXML(XMLElement&) const;
  11864. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11865. void SetAnimationTime(float);
  11866. bool SetAttribute(const String&, const Variant&);
  11867. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11868. void SetAttributeAnimationSpeed(const String&, float);
  11869. void SetAttributeAnimationTime(const String&, float);
  11870. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11871. void SetInterceptNetworkUpdate(const String&, bool);
  11872. // Properties:
  11873. bool animationEnabled;
  11874. /* readonly */
  11875. Array<Variant> attributeDefaults;
  11876. /* readonly */
  11877. Array<AttributeInfo> attributeInfos;
  11878. Array<Variant> attributes;
  11879. /* readonly */
  11880. BoundingBox boundingBox;
  11881. bool castShadows;
  11882. /* readonly */
  11883. String category;
  11884. float drawDistance;
  11885. bool enabled;
  11886. /* readonly */
  11887. bool enabledEffective;
  11888. /* readonly */
  11889. uint id;
  11890. /* readonly */
  11891. bool inView;
  11892. /* readonly */
  11893. Array<Node> instanceNodes;
  11894. uint lightMask;
  11895. float lodBias;
  11896. Material material;
  11897. Array<Material> materials;
  11898. uint maxLights;
  11899. Model model;
  11900. /* readonly */
  11901. Node node;
  11902. /* readonly */
  11903. uint numAttributes;
  11904. /* readonly */
  11905. uint numGeometries;
  11906. /* readonly */
  11907. uint numInstanceNodes;
  11908. ObjectAnimation objectAnimation;
  11909. bool occludee;
  11910. bool occluder;
  11911. uint occlusionLodLevel;
  11912. /* readonly */
  11913. int refs;
  11914. /* readonly */
  11915. bool replicated;
  11916. float shadowDistance;
  11917. uint shadowMask;
  11918. bool temporary;
  11919. /* readonly */
  11920. StringHash type;
  11921. /* readonly */
  11922. String typeName;
  11923. uint viewMask;
  11924. /* readonly */
  11925. int weakRefs;
  11926. /* readonly */
  11927. BoundingBox worldBoundingBox;
  11928. /* readonly */
  11929. Zone zone;
  11930. uint zoneMask;
  11931. };
  11932. class StaticSprite2D
  11933. {
  11934. public:
  11935. // Methods:
  11936. void ApplyAttributes();
  11937. void DrawDebugGeometry(DebugRenderer, bool);
  11938. Variant GetAttribute(const String&) const;
  11939. ValueAnimation GetAttributeAnimation(const String&) const;
  11940. float GetAttributeAnimationSpeed(const String&) const;
  11941. float GetAttributeAnimationTime(const String&) const;
  11942. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11943. Variant GetAttributeDefault(const String&) const;
  11944. bool GetInterceptNetworkUpdate(const String&) const;
  11945. bool HasSubscribedToEvent(Object, const String&);
  11946. bool HasSubscribedToEvent(const String&);
  11947. bool IsInView(Camera) const;
  11948. bool Load(File);
  11949. bool Load(VectorBuffer&);
  11950. bool LoadJSON(const JSONValue&);
  11951. bool LoadXML(const XMLElement&);
  11952. void MarkNetworkUpdate() const;
  11953. void Remove();
  11954. void RemoveAttributeAnimation(const String&);
  11955. void RemoveInstanceDefault();
  11956. void RemoveObjectAnimation();
  11957. void ResetToDefault();
  11958. bool Save(File) const;
  11959. bool Save(VectorBuffer&) const;
  11960. bool SaveJSON(JSONValue&) const;
  11961. bool SaveXML(XMLElement&) const;
  11962. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11963. void SetAnimationTime(float);
  11964. bool SetAttribute(const String&, const Variant&);
  11965. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11966. void SetAttributeAnimationSpeed(const String&, float);
  11967. void SetAttributeAnimationTime(const String&, float);
  11968. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11969. void SetFlip(bool, bool);
  11970. void SetInterceptNetworkUpdate(const String&, bool);
  11971. // Properties:
  11972. float alpha;
  11973. bool animationEnabled;
  11974. /* readonly */
  11975. Array<Variant> attributeDefaults;
  11976. /* readonly */
  11977. Array<AttributeInfo> attributeInfos;
  11978. Array<Variant> attributes;
  11979. BlendMode blendMode;
  11980. /* readonly */
  11981. BoundingBox boundingBox;
  11982. bool castShadows;
  11983. /* readonly */
  11984. String category;
  11985. Color color;
  11986. Material customMaterial;
  11987. float drawDistance;
  11988. Rect drawRect;
  11989. bool enabled;
  11990. /* readonly */
  11991. bool enabledEffective;
  11992. bool flipX;
  11993. bool flipY;
  11994. Vector2 hotSpot;
  11995. /* readonly */
  11996. uint id;
  11997. /* readonly */
  11998. bool inView;
  11999. int layer;
  12000. uint lightMask;
  12001. float lodBias;
  12002. uint maxLights;
  12003. /* readonly */
  12004. Node node;
  12005. /* readonly */
  12006. uint numAttributes;
  12007. ObjectAnimation objectAnimation;
  12008. bool occludee;
  12009. bool occluder;
  12010. int orderInLayer;
  12011. /* readonly */
  12012. int refs;
  12013. /* readonly */
  12014. bool replicated;
  12015. float shadowDistance;
  12016. uint shadowMask;
  12017. Sprite2D sprite;
  12018. bool temporary;
  12019. Rect textureRect;
  12020. /* readonly */
  12021. StringHash type;
  12022. /* readonly */
  12023. String typeName;
  12024. bool useDrawRect;
  12025. bool useHotSpot;
  12026. bool useTextureRect;
  12027. uint viewMask;
  12028. /* readonly */
  12029. int weakRefs;
  12030. /* readonly */
  12031. BoundingBox worldBoundingBox;
  12032. uint zoneMask;
  12033. };
  12034. class StretchableSprite2D
  12035. {
  12036. public:
  12037. // Methods:
  12038. void ApplyAttributes();
  12039. void DrawDebugGeometry(DebugRenderer, bool);
  12040. Variant GetAttribute(const String&) const;
  12041. ValueAnimation GetAttributeAnimation(const String&) const;
  12042. float GetAttributeAnimationSpeed(const String&) const;
  12043. float GetAttributeAnimationTime(const String&) const;
  12044. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12045. Variant GetAttributeDefault(const String&) const;
  12046. bool GetInterceptNetworkUpdate(const String&) const;
  12047. bool HasSubscribedToEvent(Object, const String&);
  12048. bool HasSubscribedToEvent(const String&);
  12049. bool IsInView(Camera) const;
  12050. bool Load(File);
  12051. bool Load(VectorBuffer&);
  12052. bool LoadJSON(const JSONValue&);
  12053. bool LoadXML(const XMLElement&);
  12054. void MarkNetworkUpdate() const;
  12055. void Remove();
  12056. void RemoveAttributeAnimation(const String&);
  12057. void RemoveInstanceDefault();
  12058. void RemoveObjectAnimation();
  12059. void ResetToDefault();
  12060. bool Save(File) const;
  12061. bool Save(VectorBuffer&) const;
  12062. bool SaveJSON(JSONValue&) const;
  12063. bool SaveXML(XMLElement&) const;
  12064. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12065. void SetAnimationTime(float);
  12066. bool SetAttribute(const String&, const Variant&);
  12067. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12068. void SetAttributeAnimationSpeed(const String&, float);
  12069. void SetAttributeAnimationTime(const String&, float);
  12070. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12071. void SetFlip(bool, bool);
  12072. void SetInterceptNetworkUpdate(const String&, bool);
  12073. // Properties:
  12074. float alpha;
  12075. bool animationEnabled;
  12076. /* readonly */
  12077. Array<Variant> attributeDefaults;
  12078. /* readonly */
  12079. Array<AttributeInfo> attributeInfos;
  12080. Array<Variant> attributes;
  12081. BlendMode blendMode;
  12082. IntRect border;
  12083. /* readonly */
  12084. BoundingBox boundingBox;
  12085. bool castShadows;
  12086. /* readonly */
  12087. String category;
  12088. Color color;
  12089. Material customMaterial;
  12090. float drawDistance;
  12091. Rect drawRect;
  12092. bool enabled;
  12093. /* readonly */
  12094. bool enabledEffective;
  12095. bool flipX;
  12096. bool flipY;
  12097. Vector2 hotSpot;
  12098. /* readonly */
  12099. uint id;
  12100. /* readonly */
  12101. bool inView;
  12102. int layer;
  12103. uint lightMask;
  12104. float lodBias;
  12105. uint maxLights;
  12106. /* readonly */
  12107. Node node;
  12108. /* readonly */
  12109. uint numAttributes;
  12110. ObjectAnimation objectAnimation;
  12111. bool occludee;
  12112. bool occluder;
  12113. int orderInLayer;
  12114. /* readonly */
  12115. int refs;
  12116. /* readonly */
  12117. bool replicated;
  12118. float shadowDistance;
  12119. uint shadowMask;
  12120. Sprite2D sprite;
  12121. bool temporary;
  12122. Rect textureRect;
  12123. /* readonly */
  12124. StringHash type;
  12125. /* readonly */
  12126. String typeName;
  12127. bool useDrawRect;
  12128. bool useHotSpot;
  12129. bool useTextureRect;
  12130. uint viewMask;
  12131. /* readonly */
  12132. int weakRefs;
  12133. /* readonly */
  12134. BoundingBox worldBoundingBox;
  12135. uint zoneMask;
  12136. };
  12137. class String
  12138. {
  12139. public:
  12140. ~String();
  12141. String();
  12142. String(const String&in);
  12143. String(int);
  12144. String(uint);
  12145. String(float);
  12146. String(double);
  12147. String(bool);
  12148. String(const char*);
  12149. // Methods:
  12150. void AppendUTF8(uint);
  12151. uint AtUTF8(uint) const;
  12152. uint ByteOffsetUTF8(uint) const;
  12153. void Clear();
  12154. int Compare(const String&, bool = true) const;
  12155. bool Contains(const String&, bool = true) const;
  12156. bool Contains(uint8, bool = true) const;
  12157. bool EndsWith(const String&, bool = true) const;
  12158. uint Find(const String&, uint = 0, bool = true) const;
  12159. uint Find(uint8, uint = 0, bool = true) const;
  12160. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  12161. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  12162. void Join(Array<String>&, const String&);
  12163. uint NextUTF8Char(uint&) const;
  12164. void Replace(const String&, const String&, bool = true);
  12165. void Replace(uint8, uint8, bool = true);
  12166. void ReplaceUTF8(uint, uint);
  12167. String Replaced(const String&, const String&, bool = true) const;
  12168. String Replaced(uint8, uint8, bool = true) const;
  12169. void Resize(uint);
  12170. void SetUTF8FromLatin1(const String&);
  12171. Array<String> Split(uint8, bool = false) const;
  12172. bool StartsWith(const String&, bool = true) const;
  12173. String Substring(uint) const;
  12174. String Substring(uint, uint) const;
  12175. String SubstringUTF8(uint) const;
  12176. String SubstringUTF8(uint, uint) const;
  12177. bool ToBool() const;
  12178. Color ToColor() const;
  12179. double ToDouble() const;
  12180. float ToFloat() const;
  12181. int ToInt(int = 10) const;
  12182. int64 ToInt64(int = 10) const;
  12183. IntRect ToIntRect() const;
  12184. IntVector2 ToIntVector2() const;
  12185. IntVector3 ToIntVector3() const;
  12186. String ToLower() const;
  12187. Matrix3 ToMatrix3() const;
  12188. Matrix3x4 ToMatrix3x4() const;
  12189. Matrix4 ToMatrix4() const;
  12190. Quaternion ToQuaternion() const;
  12191. uint ToUInt(int = 10) const;
  12192. uint64 ToUInt64(int = 10) const;
  12193. String ToUpper() const;
  12194. Vector2 ToVector2() const;
  12195. Vector3 ToVector3() const;
  12196. Vector4 ToVector4(bool = false) const;
  12197. Variant ToVectorVariant() const;
  12198. String Trimmed() const;
  12199. // Properties:
  12200. /* readonly */
  12201. bool empty;
  12202. /* readonly */
  12203. uint length;
  12204. /* readonly */
  12205. uint utf8Length;
  12206. };
  12207. class StringHash
  12208. {
  12209. public:
  12210. StringHash();
  12211. StringHash(const StringHash&in);
  12212. StringHash(const String&in);
  12213. StringHash(uint);
  12214. // Methods:
  12215. String ToString() const;
  12216. // Properties:
  12217. /* readonly */
  12218. uint value;
  12219. };
  12220. class Technique
  12221. {
  12222. public:
  12223. Technique();
  12224. Technique(const String&in);
  12225. // Methods:
  12226. Technique Clone(const String& = String ( )) const;
  12227. Pass CreatePass(const String&);
  12228. Pass GetPass(const String&);
  12229. Pass GetSupportedPass(const String&);
  12230. bool HasPass(const String&) const;
  12231. bool HasSubscribedToEvent(Object, const String&);
  12232. bool HasSubscribedToEvent(const String&);
  12233. bool Load(File);
  12234. bool Load(VectorBuffer&);
  12235. bool Load(const String&);
  12236. void RemovePass(const String&);
  12237. bool Save(File) const;
  12238. bool Save(VectorBuffer&) const;
  12239. bool Save(const String&) const;
  12240. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12241. // Properties:
  12242. /* readonly */
  12243. String category;
  12244. bool desktop;
  12245. /* readonly */
  12246. uint memoryUse;
  12247. String name;
  12248. /* readonly */
  12249. uint numPasses;
  12250. /* readonly */
  12251. Array<String> passNames;
  12252. /* readonly */
  12253. Array<Pass> passes;
  12254. /* readonly */
  12255. int refs;
  12256. /* readonly */
  12257. bool supported;
  12258. /* readonly */
  12259. StringHash type;
  12260. /* readonly */
  12261. String typeName;
  12262. /* readonly */
  12263. uint useTimer;
  12264. /* readonly */
  12265. int weakRefs;
  12266. };
  12267. class TechniqueEntry
  12268. {
  12269. public:
  12270. ~TechniqueEntry();
  12271. TechniqueEntry();
  12272. TechniqueEntry(const TechniqueEntry&in);
  12273. // Properties:
  12274. float lodDistance;
  12275. int qualityLevel;
  12276. Technique technique;
  12277. };
  12278. class Terrain
  12279. {
  12280. public:
  12281. // Methods:
  12282. void ApplyAttributes();
  12283. void ApplyHeightMap();
  12284. void DrawDebugGeometry(DebugRenderer, bool);
  12285. Variant GetAttribute(const String&) const;
  12286. ValueAnimation GetAttributeAnimation(const String&) const;
  12287. float GetAttributeAnimationSpeed(const String&) const;
  12288. float GetAttributeAnimationTime(const String&) const;
  12289. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12290. Variant GetAttributeDefault(const String&) const;
  12291. float GetHeight(const Vector3&) const;
  12292. bool GetInterceptNetworkUpdate(const String&) const;
  12293. TerrainPatch GetNeighborPatch(int, int) const;
  12294. Vector3 GetNormal(const Vector3&) const;
  12295. TerrainPatch GetPatch(int, int) const;
  12296. bool HasSubscribedToEvent(Object, const String&);
  12297. bool HasSubscribedToEvent(const String&);
  12298. Vector3 HeightMapToWorld(const IntVector2&) const;
  12299. bool Load(File);
  12300. bool Load(VectorBuffer&);
  12301. bool LoadJSON(const JSONValue&);
  12302. bool LoadXML(const XMLElement&);
  12303. void MarkNetworkUpdate() const;
  12304. void Remove();
  12305. void RemoveAttributeAnimation(const String&);
  12306. void RemoveInstanceDefault();
  12307. void RemoveObjectAnimation();
  12308. void ResetToDefault();
  12309. bool Save(File) const;
  12310. bool Save(VectorBuffer&) const;
  12311. bool SaveJSON(JSONValue&) const;
  12312. bool SaveXML(XMLElement&) const;
  12313. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12314. void SetAnimationTime(float);
  12315. bool SetAttribute(const String&, const Variant&);
  12316. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12317. void SetAttributeAnimationSpeed(const String&, float);
  12318. void SetAttributeAnimationTime(const String&, float);
  12319. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12320. void SetInterceptNetworkUpdate(const String&, bool);
  12321. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  12322. IntVector2 WorldToHeightMap(const Vector3&) const;
  12323. // Properties:
  12324. bool animationEnabled;
  12325. /* readonly */
  12326. Array<Variant> attributeDefaults;
  12327. /* readonly */
  12328. Array<AttributeInfo> attributeInfos;
  12329. Array<Variant> attributes;
  12330. bool castShadows;
  12331. /* readonly */
  12332. String category;
  12333. float drawDistance;
  12334. Terrain eastNeighbor;
  12335. bool enabled;
  12336. /* readonly */
  12337. bool enabledEffective;
  12338. Image heightMap;
  12339. /* readonly */
  12340. uint id;
  12341. uint lightMask;
  12342. float lodBias;
  12343. Material material;
  12344. uint maxLights;
  12345. uint maxLodLevels;
  12346. /* readonly */
  12347. Node node;
  12348. Terrain northNeighbor;
  12349. /* readonly */
  12350. uint numAttributes;
  12351. /* readonly */
  12352. IntVector2 numPatches;
  12353. /* readonly */
  12354. IntVector2 numVertices;
  12355. ObjectAnimation objectAnimation;
  12356. bool occludee;
  12357. bool occluder;
  12358. uint occlusionLodLevel;
  12359. int patchSize;
  12360. /* readonly */
  12361. Array<TerrainPatch> patches;
  12362. /* readonly */
  12363. int refs;
  12364. /* readonly */
  12365. bool replicated;
  12366. float shadowDistance;
  12367. uint shadowMask;
  12368. bool smoothing;
  12369. Terrain southNeighbor;
  12370. Vector3 spacing;
  12371. bool temporary;
  12372. /* readonly */
  12373. StringHash type;
  12374. /* readonly */
  12375. String typeName;
  12376. uint viewMask;
  12377. /* readonly */
  12378. int weakRefs;
  12379. Terrain westNeighbor;
  12380. uint zoneMask;
  12381. };
  12382. class TerrainPatch
  12383. {
  12384. public:
  12385. // Methods:
  12386. void ApplyAttributes();
  12387. void DrawDebugGeometry(DebugRenderer, bool);
  12388. Variant GetAttribute(const String&) const;
  12389. ValueAnimation GetAttributeAnimation(const String&) const;
  12390. float GetAttributeAnimationSpeed(const String&) const;
  12391. float GetAttributeAnimationTime(const String&) const;
  12392. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12393. Variant GetAttributeDefault(const String&) const;
  12394. bool GetInterceptNetworkUpdate(const String&) const;
  12395. bool HasSubscribedToEvent(Object, const String&);
  12396. bool HasSubscribedToEvent(const String&);
  12397. bool IsInView(Camera) const;
  12398. bool Load(File);
  12399. bool Load(VectorBuffer&);
  12400. bool LoadJSON(const JSONValue&);
  12401. bool LoadXML(const XMLElement&);
  12402. void MarkNetworkUpdate() const;
  12403. void Remove();
  12404. void RemoveAttributeAnimation(const String&);
  12405. void RemoveInstanceDefault();
  12406. void RemoveObjectAnimation();
  12407. void ResetToDefault();
  12408. bool Save(File) const;
  12409. bool Save(VectorBuffer&) const;
  12410. bool SaveJSON(JSONValue&) const;
  12411. bool SaveXML(XMLElement&) const;
  12412. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12413. void SetAnimationTime(float);
  12414. bool SetAttribute(const String&, const Variant&);
  12415. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12416. void SetAttributeAnimationSpeed(const String&, float);
  12417. void SetAttributeAnimationTime(const String&, float);
  12418. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12419. void SetInterceptNetworkUpdate(const String&, bool);
  12420. // Properties:
  12421. bool animationEnabled;
  12422. /* readonly */
  12423. Array<Variant> attributeDefaults;
  12424. /* readonly */
  12425. Array<AttributeInfo> attributeInfos;
  12426. Array<Variant> attributes;
  12427. /* readonly */
  12428. BoundingBox boundingBox;
  12429. bool castShadows;
  12430. /* readonly */
  12431. String category;
  12432. float drawDistance;
  12433. bool enabled;
  12434. /* readonly */
  12435. bool enabledEffective;
  12436. /* readonly */
  12437. uint id;
  12438. /* readonly */
  12439. bool inView;
  12440. uint lightMask;
  12441. float lodBias;
  12442. uint maxLights;
  12443. /* readonly */
  12444. Node node;
  12445. /* readonly */
  12446. uint numAttributes;
  12447. ObjectAnimation objectAnimation;
  12448. bool occludee;
  12449. bool occluder;
  12450. /* readonly */
  12451. int refs;
  12452. /* readonly */
  12453. bool replicated;
  12454. float shadowDistance;
  12455. uint shadowMask;
  12456. bool temporary;
  12457. /* readonly */
  12458. StringHash type;
  12459. /* readonly */
  12460. String typeName;
  12461. uint viewMask;
  12462. /* readonly */
  12463. int weakRefs;
  12464. /* readonly */
  12465. BoundingBox worldBoundingBox;
  12466. uint zoneMask;
  12467. };
  12468. class Text
  12469. {
  12470. public:
  12471. Text();
  12472. Text(const String&in);
  12473. // Methods:
  12474. void AddChild(UIElement);
  12475. void AddTag(const String&);
  12476. void AddTags(const String&, int8 = ';');
  12477. void ApplyAttributes();
  12478. void BringToFront();
  12479. void ClearSelection();
  12480. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12481. void DisableLayoutUpdate();
  12482. IntVector2 ElementToScreen(const IntVector2&);
  12483. void EnableLayoutUpdate();
  12484. uint FindChild(UIElement) const;
  12485. Variant GetAttribute(const String&) const;
  12486. ValueAnimation GetAttributeAnimation(const String&) const;
  12487. float GetAttributeAnimationSpeed(const String&) const;
  12488. float GetAttributeAnimationTime(const String&) const;
  12489. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12490. Variant GetAttributeDefault(const String&) const;
  12491. UIElement GetChild(const String&, bool = false) const;
  12492. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12493. Array<UIElement> GetChildren(bool = false) const;
  12494. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12495. UIElement GetElementEventSender() const;
  12496. bool GetInterceptNetworkUpdate(const String&) const;
  12497. uint GetNumChildren(bool) const;
  12498. bool HasSubscribedToEvent(Object, const String&);
  12499. bool HasSubscribedToEvent(const String&);
  12500. bool HasTag(const String&) const;
  12501. void InsertChild(uint, UIElement);
  12502. bool IsChildOf(UIElement) const;
  12503. bool IsInside(IntVector2, bool);
  12504. bool IsInsideCombined(IntVector2, bool);
  12505. bool Load(File);
  12506. bool Load(VectorBuffer&);
  12507. UIElement LoadChildXML(XMLFile, XMLFile);
  12508. UIElement LoadChildXML(const XMLElement&, XMLFile);
  12509. bool LoadJSON(const JSONValue&);
  12510. bool LoadXML(File);
  12511. bool LoadXML(VectorBuffer&);
  12512. bool LoadXML(XMLFile, XMLFile);
  12513. bool LoadXML(const XMLElement&, XMLFile);
  12514. bool LoadXML(const XMLElement&);
  12515. void MarkNetworkUpdate() const;
  12516. void Remove();
  12517. void RemoveAllChildren();
  12518. void RemoveAllTags();
  12519. void RemoveAttributeAnimation(const String&);
  12520. void RemoveChild(UIElement, uint = 0);
  12521. void RemoveChild(uint);
  12522. void RemoveInstanceDefault();
  12523. void RemoveObjectAnimation();
  12524. bool RemoveTag(const String&);
  12525. void ResetDeepEnabled();
  12526. void ResetToDefault();
  12527. bool Save(File) const;
  12528. bool Save(VectorBuffer&) const;
  12529. bool SaveJSON(JSONValue&) const;
  12530. bool SaveXML(File, const String& = "\t");
  12531. bool SaveXML(VectorBuffer&, const String& = "\t");
  12532. bool SaveXML(XMLElement&) const;
  12533. IntVector2 ScreenToElement(const IntVector2&);
  12534. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12535. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12536. void SetAnimationTime(float);
  12537. bool SetAttribute(const String&, const Variant&);
  12538. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12539. void SetAttributeAnimationSpeed(const String&, float);
  12540. void SetAttributeAnimationTime(const String&, float);
  12541. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12542. void SetDeepEnabled(bool);
  12543. void SetEnabledRecursive(bool);
  12544. void SetFixedHeight(int);
  12545. void SetFixedSize(int, int);
  12546. void SetFixedWidth(int);
  12547. bool SetFont(Font, float);
  12548. bool SetFont(const String&, float);
  12549. void SetInterceptNetworkUpdate(const String&, bool);
  12550. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12551. void SetMaxAnchor(float, float);
  12552. void SetMaxSize(int, int);
  12553. void SetMinAnchor(float, float);
  12554. void SetMinSize(int, int);
  12555. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12556. void SetPivot(float, float);
  12557. void SetPosition(int, int);
  12558. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  12559. void SetSize(int, int);
  12560. bool SetStyle(const String&, XMLFile = null);
  12561. bool SetStyle(const XMLElement&);
  12562. bool SetStyleAuto(XMLFile = null);
  12563. void UpdateLayout();
  12564. const Variant& GetVar(const StringHash&);
  12565. // Properties:
  12566. bool animationEnabled;
  12567. /* readonly */
  12568. Array<Variant> attributeDefaults;
  12569. /* readonly */
  12570. Array<AttributeInfo> attributeInfos;
  12571. Array<Variant> attributes;
  12572. bool autoLocalizable;
  12573. bool bringToBack;
  12574. bool bringToFront;
  12575. /* readonly */
  12576. String category;
  12577. /* readonly */
  12578. Array<Vector2> charPositions;
  12579. /* readonly */
  12580. Array<Vector2> charSizes;
  12581. /* readonly */
  12582. IntVector2 childOffset;
  12583. /* readonly */
  12584. Array<UIElement> children;
  12585. IntRect clipBorder;
  12586. bool clipChildren;
  12587. /* writeonly */
  12588. Color color;
  12589. /* readonly */
  12590. bool colorGradient;
  12591. Array<Color> colors;
  12592. /* readonly */
  12593. IntRect combinedScreenRect;
  12594. XMLFile defaultStyle;
  12595. /* readonly */
  12596. float derivedOpacity;
  12597. /* readonly */
  12598. uint dragButtonCombo;
  12599. /* readonly */
  12600. int dragButtonCount;
  12601. uint dragDropMode;
  12602. bool editable;
  12603. Color effectColor;
  12604. bool effectRoundStroke;
  12605. IntVector2 effectShadowOffset;
  12606. int effectStrokeThickness;
  12607. bool elementEventSender;
  12608. bool enableAnchor;
  12609. bool enabled;
  12610. /* readonly */
  12611. bool enabledSelf;
  12612. /* readonly */
  12613. bool fixedHeight;
  12614. /* readonly */
  12615. bool fixedSize;
  12616. /* readonly */
  12617. bool fixedWidth;
  12618. bool focus;
  12619. FocusMode focusMode;
  12620. /* readonly */
  12621. Font font;
  12622. float fontSize;
  12623. int height;
  12624. HorizontalAlignment horizontalAlignment;
  12625. Color hoverColor;
  12626. /* readonly */
  12627. bool hovering;
  12628. int indent;
  12629. int indentSpacing;
  12630. /* readonly */
  12631. int indentWidth;
  12632. bool internal;
  12633. IntRect layoutBorder;
  12634. Vector2 layoutFlexScale;
  12635. LayoutMode layoutMode;
  12636. int layoutSpacing;
  12637. Vector2 maxAnchor;
  12638. int maxHeight;
  12639. IntVector2 maxOffset;
  12640. IntVector2 maxSize;
  12641. int maxWidth;
  12642. Vector2 minAnchor;
  12643. int minHeight;
  12644. IntVector2 minOffset;
  12645. IntVector2 minSize;
  12646. int minWidth;
  12647. String name;
  12648. /* readonly */
  12649. uint numAllChildren;
  12650. /* readonly */
  12651. uint numAttributes;
  12652. /* readonly */
  12653. uint numChars;
  12654. /* readonly */
  12655. uint numChildren;
  12656. /* readonly */
  12657. uint numRows;
  12658. ObjectAnimation objectAnimation;
  12659. float opacity;
  12660. UIElement parent;
  12661. Vector2 pivot;
  12662. IntVector2 position;
  12663. int priority;
  12664. /* readonly */
  12665. int refs;
  12666. /* readonly */
  12667. UIElement root;
  12668. /* readonly */
  12669. float rowHeight;
  12670. float rowSpacing;
  12671. /* readonly */
  12672. Array<float> rowWidths;
  12673. /* readonly */
  12674. IntVector2 screenPosition;
  12675. bool selected;
  12676. Color selectionColor;
  12677. /* readonly */
  12678. uint selectionLength;
  12679. /* readonly */
  12680. uint selectionStart;
  12681. IntVector2 size;
  12682. bool sortChildren;
  12683. String style;
  12684. /* readonly */
  12685. Array<String> tags;
  12686. bool temporary;
  12687. String text;
  12688. HorizontalAlignment textAlignment;
  12689. TextEffect textEffect;
  12690. TraversalMode traversalMode;
  12691. /* readonly */
  12692. StringHash type;
  12693. /* readonly */
  12694. String typeName;
  12695. bool useDerivedOpacity;
  12696. /* readonly */
  12697. VariantMap vars;
  12698. VerticalAlignment verticalAlignment;
  12699. bool visible;
  12700. /* readonly */
  12701. bool visibleEffective;
  12702. /* readonly */
  12703. int weakRefs;
  12704. int width;
  12705. bool wordwrap;
  12706. };
  12707. class Text3D
  12708. {
  12709. public:
  12710. // Methods:
  12711. void ApplyAttributes();
  12712. void DrawDebugGeometry(DebugRenderer, bool);
  12713. Variant GetAttribute(const String&) const;
  12714. ValueAnimation GetAttributeAnimation(const String&) const;
  12715. float GetAttributeAnimationSpeed(const String&) const;
  12716. float GetAttributeAnimationTime(const String&) const;
  12717. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12718. Variant GetAttributeDefault(const String&) const;
  12719. bool GetInterceptNetworkUpdate(const String&) const;
  12720. bool HasSubscribedToEvent(Object, const String&);
  12721. bool HasSubscribedToEvent(const String&);
  12722. bool IsInView(Camera) const;
  12723. bool Load(File);
  12724. bool Load(VectorBuffer&);
  12725. bool LoadJSON(const JSONValue&);
  12726. bool LoadXML(const XMLElement&);
  12727. void MarkNetworkUpdate() const;
  12728. void Remove();
  12729. void RemoveAttributeAnimation(const String&);
  12730. void RemoveInstanceDefault();
  12731. void RemoveObjectAnimation();
  12732. void ResetToDefault();
  12733. bool Save(File) const;
  12734. bool Save(VectorBuffer&) const;
  12735. bool SaveJSON(JSONValue&) const;
  12736. bool SaveXML(XMLElement&) const;
  12737. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12738. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12739. void SetAnimationTime(float);
  12740. bool SetAttribute(const String&, const Variant&);
  12741. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12742. void SetAttributeAnimationSpeed(const String&, float);
  12743. void SetAttributeAnimationTime(const String&, float);
  12744. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12745. bool SetFont(Font, float);
  12746. bool SetFont(const String&, float);
  12747. void SetInterceptNetworkUpdate(const String&, bool);
  12748. // Properties:
  12749. bool animationEnabled;
  12750. /* readonly */
  12751. Array<Variant> attributeDefaults;
  12752. /* readonly */
  12753. Array<AttributeInfo> attributeInfos;
  12754. Array<Variant> attributes;
  12755. /* readonly */
  12756. BoundingBox boundingBox;
  12757. bool castShadows;
  12758. /* readonly */
  12759. String category;
  12760. /* readonly */
  12761. Array<Vector2> charPositions;
  12762. /* readonly */
  12763. Array<Vector2> charSizes;
  12764. /* writeonly */
  12765. Color color;
  12766. Array<Color> colors;
  12767. float drawDistance;
  12768. Color effectColor;
  12769. float effectDepthBias;
  12770. bool effectRoundStroke;
  12771. IntVector2 effectShadowOffset;
  12772. int effectStrokeThickness;
  12773. bool enabled;
  12774. /* readonly */
  12775. bool enabledEffective;
  12776. FaceCameraMode faceCameraMode;
  12777. bool fixedScreenSize;
  12778. /* readonly */
  12779. Font font;
  12780. float fontSize;
  12781. /* readonly */
  12782. int height;
  12783. HorizontalAlignment horizontalAlignment;
  12784. /* readonly */
  12785. uint id;
  12786. /* readonly */
  12787. bool inView;
  12788. uint lightMask;
  12789. float lodBias;
  12790. Material material;
  12791. uint maxLights;
  12792. /* readonly */
  12793. Node node;
  12794. /* readonly */
  12795. uint numAttributes;
  12796. /* readonly */
  12797. uint numChars;
  12798. /* readonly */
  12799. uint numRows;
  12800. ObjectAnimation objectAnimation;
  12801. bool occludee;
  12802. bool occluder;
  12803. float opacity;
  12804. /* readonly */
  12805. int refs;
  12806. /* readonly */
  12807. bool replicated;
  12808. /* readonly */
  12809. float rowHeight;
  12810. float rowSpacing;
  12811. /* readonly */
  12812. Array<float> rowWidths;
  12813. float shadowDistance;
  12814. uint shadowMask;
  12815. bool temporary;
  12816. String text;
  12817. HorizontalAlignment textAlignment;
  12818. TextEffect textEffect;
  12819. /* readonly */
  12820. StringHash type;
  12821. /* readonly */
  12822. String typeName;
  12823. VerticalAlignment verticalAlignment;
  12824. uint viewMask;
  12825. /* readonly */
  12826. int weakRefs;
  12827. int width;
  12828. bool wordwrap;
  12829. /* readonly */
  12830. BoundingBox worldBoundingBox;
  12831. uint zoneMask;
  12832. };
  12833. class Texture
  12834. {
  12835. public:
  12836. Texture();
  12837. Texture(const String&in);
  12838. // Methods:
  12839. void AddMetadata(const String&, const Variant&);
  12840. void ClearDataLost();
  12841. bool HasSubscribedToEvent(Object, const String&);
  12842. bool HasSubscribedToEvent(const String&);
  12843. bool Load(File);
  12844. bool Load(VectorBuffer&);
  12845. bool Load(const String&);
  12846. void RemoveAllMetadata();
  12847. void RemoveMetadata(const String&);
  12848. bool Save(File) const;
  12849. bool Save(VectorBuffer&) const;
  12850. bool Save(const String&) const;
  12851. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12852. void SetNumLevels(uint);
  12853. // Properties:
  12854. Array<TextureAddressMode> addressMode;
  12855. uint anisotropy;
  12856. /* readonly */
  12857. bool autoResolve;
  12858. Texture backupTexture;
  12859. Color borderColor;
  12860. /* readonly */
  12861. String category;
  12862. /* readonly */
  12863. uint components;
  12864. /* readonly */
  12865. bool compressed;
  12866. /* readonly */
  12867. bool dataLost;
  12868. TextureFilterMode filterMode;
  12869. /* readonly */
  12870. uint format;
  12871. /* readonly */
  12872. bool hasMetadata;
  12873. /* readonly */
  12874. int height;
  12875. /* readonly */
  12876. Array<int> levelHeight;
  12877. /* readonly */
  12878. Array<int> levelWidth;
  12879. /* readonly */
  12880. uint levels;
  12881. /* readonly */
  12882. bool levelsDirty;
  12883. /* readonly */
  12884. uint memoryUse;
  12885. Array<Variant> metadata;
  12886. Array<int> mipsToSkip;
  12887. /* readonly */
  12888. int multiSample;
  12889. String name;
  12890. /* readonly */
  12891. int refs;
  12892. /* readonly */
  12893. bool resolveDirty;
  12894. bool sRGB;
  12895. /* readonly */
  12896. StringHash type;
  12897. /* readonly */
  12898. String typeName;
  12899. /* readonly */
  12900. TextureUsage usage;
  12901. /* readonly */
  12902. uint useTimer;
  12903. /* readonly */
  12904. int weakRefs;
  12905. /* readonly */
  12906. int width;
  12907. };
  12908. class Texture2D
  12909. {
  12910. public:
  12911. Texture2D();
  12912. Texture2D(const String&in);
  12913. // Methods:
  12914. void AddMetadata(const String&, const Variant&);
  12915. void ClearDataLost();
  12916. Image GetImage() const;
  12917. bool HasSubscribedToEvent(Object, const String&);
  12918. bool HasSubscribedToEvent(const String&);
  12919. bool Load(File);
  12920. bool Load(VectorBuffer&);
  12921. bool Load(const String&);
  12922. void RemoveAllMetadata();
  12923. void RemoveMetadata(const String&);
  12924. bool Save(File) const;
  12925. bool Save(VectorBuffer&) const;
  12926. bool Save(const String&) const;
  12927. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12928. bool SetData(Image, bool = false);
  12929. void SetNumLevels(uint);
  12930. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  12931. // Properties:
  12932. Array<TextureAddressMode> addressMode;
  12933. uint anisotropy;
  12934. /* readonly */
  12935. bool autoResolve;
  12936. Texture backupTexture;
  12937. Color borderColor;
  12938. /* readonly */
  12939. String category;
  12940. /* readonly */
  12941. uint components;
  12942. /* readonly */
  12943. bool compressed;
  12944. /* readonly */
  12945. bool dataLost;
  12946. TextureFilterMode filterMode;
  12947. /* readonly */
  12948. uint format;
  12949. /* readonly */
  12950. bool hasMetadata;
  12951. /* readonly */
  12952. int height;
  12953. /* readonly */
  12954. Array<int> levelHeight;
  12955. /* readonly */
  12956. Array<int> levelWidth;
  12957. /* readonly */
  12958. uint levels;
  12959. /* readonly */
  12960. bool levelsDirty;
  12961. /* readonly */
  12962. uint memoryUse;
  12963. Array<Variant> metadata;
  12964. Array<int> mipsToSkip;
  12965. /* readonly */
  12966. int multiSample;
  12967. String name;
  12968. /* readonly */
  12969. int refs;
  12970. /* readonly */
  12971. RenderSurface renderSurface;
  12972. /* readonly */
  12973. bool resolveDirty;
  12974. bool sRGB;
  12975. /* readonly */
  12976. StringHash type;
  12977. /* readonly */
  12978. String typeName;
  12979. /* readonly */
  12980. TextureUsage usage;
  12981. /* readonly */
  12982. uint useTimer;
  12983. /* readonly */
  12984. int weakRefs;
  12985. /* readonly */
  12986. int width;
  12987. };
  12988. class Texture2DArray
  12989. {
  12990. public:
  12991. Texture2DArray();
  12992. Texture2DArray(const String&in);
  12993. // Methods:
  12994. void AddMetadata(const String&, const Variant&);
  12995. void ClearDataLost();
  12996. bool HasSubscribedToEvent(Object, const String&);
  12997. bool HasSubscribedToEvent(const String&);
  12998. bool Load(File);
  12999. bool Load(VectorBuffer&);
  13000. bool Load(const String&);
  13001. void RemoveAllMetadata();
  13002. void RemoveMetadata(const String&);
  13003. bool Save(File) const;
  13004. bool Save(VectorBuffer&) const;
  13005. bool Save(const String&) const;
  13006. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13007. bool SetData(uint, Image, bool = false);
  13008. void SetNumLevels(uint);
  13009. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  13010. // Properties:
  13011. Array<TextureAddressMode> addressMode;
  13012. uint anisotropy;
  13013. /* readonly */
  13014. bool autoResolve;
  13015. Texture backupTexture;
  13016. Color borderColor;
  13017. /* readonly */
  13018. String category;
  13019. /* readonly */
  13020. uint components;
  13021. /* readonly */
  13022. bool compressed;
  13023. /* readonly */
  13024. bool dataLost;
  13025. TextureFilterMode filterMode;
  13026. /* readonly */
  13027. uint format;
  13028. /* readonly */
  13029. bool hasMetadata;
  13030. /* readonly */
  13031. int height;
  13032. uint layers;
  13033. /* readonly */
  13034. Array<int> levelHeight;
  13035. /* readonly */
  13036. Array<int> levelWidth;
  13037. /* readonly */
  13038. uint levels;
  13039. /* readonly */
  13040. bool levelsDirty;
  13041. /* readonly */
  13042. uint memoryUse;
  13043. Array<Variant> metadata;
  13044. Array<int> mipsToSkip;
  13045. /* readonly */
  13046. int multiSample;
  13047. String name;
  13048. /* readonly */
  13049. int refs;
  13050. /* readonly */
  13051. RenderSurface renderSurface;
  13052. /* readonly */
  13053. bool resolveDirty;
  13054. bool sRGB;
  13055. /* readonly */
  13056. StringHash type;
  13057. /* readonly */
  13058. String typeName;
  13059. /* readonly */
  13060. TextureUsage usage;
  13061. /* readonly */
  13062. uint useTimer;
  13063. /* readonly */
  13064. int weakRefs;
  13065. /* readonly */
  13066. int width;
  13067. };
  13068. class Texture3D
  13069. {
  13070. public:
  13071. Texture3D();
  13072. Texture3D(const String&in);
  13073. // Methods:
  13074. void AddMetadata(const String&, const Variant&);
  13075. void ClearDataLost();
  13076. bool HasSubscribedToEvent(Object, const String&);
  13077. bool HasSubscribedToEvent(const String&);
  13078. bool Load(File);
  13079. bool Load(VectorBuffer&);
  13080. bool Load(const String&);
  13081. void RemoveAllMetadata();
  13082. void RemoveMetadata(const String&);
  13083. bool Save(File) const;
  13084. bool Save(VectorBuffer&) const;
  13085. bool Save(const String&) const;
  13086. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13087. bool SetData(Image, bool = false);
  13088. void SetNumLevels(uint);
  13089. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  13090. // Properties:
  13091. Array<TextureAddressMode> addressMode;
  13092. uint anisotropy;
  13093. /* readonly */
  13094. bool autoResolve;
  13095. Texture backupTexture;
  13096. Color borderColor;
  13097. /* readonly */
  13098. String category;
  13099. /* readonly */
  13100. uint components;
  13101. /* readonly */
  13102. bool compressed;
  13103. /* readonly */
  13104. bool dataLost;
  13105. TextureFilterMode filterMode;
  13106. /* readonly */
  13107. uint format;
  13108. /* readonly */
  13109. bool hasMetadata;
  13110. /* readonly */
  13111. int height;
  13112. /* readonly */
  13113. Array<int> levelHeight;
  13114. /* readonly */
  13115. Array<int> levelWidth;
  13116. /* readonly */
  13117. uint levels;
  13118. /* readonly */
  13119. bool levelsDirty;
  13120. /* readonly */
  13121. uint memoryUse;
  13122. Array<Variant> metadata;
  13123. Array<int> mipsToSkip;
  13124. /* readonly */
  13125. int multiSample;
  13126. String name;
  13127. /* readonly */
  13128. int refs;
  13129. /* readonly */
  13130. bool resolveDirty;
  13131. bool sRGB;
  13132. /* readonly */
  13133. StringHash type;
  13134. /* readonly */
  13135. String typeName;
  13136. /* readonly */
  13137. TextureUsage usage;
  13138. /* readonly */
  13139. uint useTimer;
  13140. /* readonly */
  13141. int weakRefs;
  13142. /* readonly */
  13143. int width;
  13144. };
  13145. class TextureCube
  13146. {
  13147. public:
  13148. TextureCube();
  13149. TextureCube(const String&in);
  13150. // Methods:
  13151. void AddMetadata(const String&, const Variant&);
  13152. void ClearDataLost();
  13153. Image GetImage(CubeMapFace) const;
  13154. bool HasSubscribedToEvent(Object, const String&);
  13155. bool HasSubscribedToEvent(const String&);
  13156. bool Load(File);
  13157. bool Load(VectorBuffer&);
  13158. bool Load(const String&);
  13159. void RemoveAllMetadata();
  13160. void RemoveMetadata(const String&);
  13161. bool Save(File) const;
  13162. bool Save(VectorBuffer&) const;
  13163. bool Save(const String&) const;
  13164. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13165. bool SetData(CubeMapFace, Image, bool = false);
  13166. void SetNumLevels(uint);
  13167. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  13168. // Properties:
  13169. Array<TextureAddressMode> addressMode;
  13170. uint anisotropy;
  13171. /* readonly */
  13172. bool autoResolve;
  13173. Texture backupTexture;
  13174. Color borderColor;
  13175. /* readonly */
  13176. String category;
  13177. /* readonly */
  13178. uint components;
  13179. /* readonly */
  13180. bool compressed;
  13181. /* readonly */
  13182. bool dataLost;
  13183. TextureFilterMode filterMode;
  13184. /* readonly */
  13185. uint format;
  13186. /* readonly */
  13187. bool hasMetadata;
  13188. /* readonly */
  13189. int height;
  13190. /* readonly */
  13191. Array<int> levelHeight;
  13192. /* readonly */
  13193. Array<int> levelWidth;
  13194. /* readonly */
  13195. uint levels;
  13196. /* readonly */
  13197. bool levelsDirty;
  13198. /* readonly */
  13199. uint memoryUse;
  13200. Array<Variant> metadata;
  13201. Array<int> mipsToSkip;
  13202. /* readonly */
  13203. int multiSample;
  13204. String name;
  13205. /* readonly */
  13206. int refs;
  13207. /* readonly */
  13208. Array<RenderSurface> renderSurfaces;
  13209. /* readonly */
  13210. bool resolveDirty;
  13211. bool sRGB;
  13212. /* readonly */
  13213. StringHash type;
  13214. /* readonly */
  13215. String typeName;
  13216. /* readonly */
  13217. TextureUsage usage;
  13218. /* readonly */
  13219. uint useTimer;
  13220. /* readonly */
  13221. int weakRefs;
  13222. /* readonly */
  13223. int width;
  13224. };
  13225. class TextureFrame
  13226. {
  13227. public:
  13228. // Properties:
  13229. float time;
  13230. Rect uv;
  13231. };
  13232. class Tile2D
  13233. {
  13234. public:
  13235. // Methods:
  13236. bool HasProperty(const String&) const;
  13237. const String& GetProperty(const String&) const;
  13238. // Properties:
  13239. /* readonly */
  13240. int gid;
  13241. /* readonly */
  13242. int refs;
  13243. /* readonly */
  13244. Sprite2D sprite;
  13245. /* readonly */
  13246. int weakRefs;
  13247. };
  13248. class TileMap2D
  13249. {
  13250. public:
  13251. // Methods:
  13252. void ApplyAttributes();
  13253. void DrawDebugGeometry(DebugRenderer, bool);
  13254. Variant GetAttribute(const String&) const;
  13255. ValueAnimation GetAttributeAnimation(const String&) const;
  13256. float GetAttributeAnimationSpeed(const String&) const;
  13257. float GetAttributeAnimationTime(const String&) const;
  13258. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13259. Variant GetAttributeDefault(const String&) const;
  13260. bool GetInterceptNetworkUpdate(const String&) const;
  13261. TileMapLayer2D GetLayer(uint) const;
  13262. Array<TileMapObject2D> GetTileCollisionShapes(int) const;
  13263. bool HasSubscribedToEvent(Object, const String&);
  13264. bool HasSubscribedToEvent(const String&);
  13265. bool Load(File);
  13266. bool Load(VectorBuffer&);
  13267. bool LoadJSON(const JSONValue&);
  13268. bool LoadXML(const XMLElement&);
  13269. void MarkNetworkUpdate() const;
  13270. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  13271. void Remove();
  13272. void RemoveAttributeAnimation(const String&);
  13273. void RemoveInstanceDefault();
  13274. void RemoveObjectAnimation();
  13275. void ResetToDefault();
  13276. bool Save(File) const;
  13277. bool Save(VectorBuffer&) const;
  13278. bool SaveJSON(JSONValue&) const;
  13279. bool SaveXML(XMLElement&) const;
  13280. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13281. void SetAnimationTime(float);
  13282. bool SetAttribute(const String&, const Variant&);
  13283. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13284. void SetAttributeAnimationSpeed(const String&, float);
  13285. void SetAttributeAnimationTime(const String&, float);
  13286. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13287. void SetInterceptNetworkUpdate(const String&, bool);
  13288. Vector2 TileIndexToPosition(int, int) const;
  13289. // Properties:
  13290. bool animationEnabled;
  13291. /* readonly */
  13292. Array<Variant> attributeDefaults;
  13293. /* readonly */
  13294. Array<AttributeInfo> attributeInfos;
  13295. Array<Variant> attributes;
  13296. /* readonly */
  13297. String category;
  13298. bool enabled;
  13299. /* readonly */
  13300. bool enabledEffective;
  13301. /* readonly */
  13302. uint id;
  13303. /* readonly */
  13304. TileMapInfo2D info;
  13305. /* readonly */
  13306. Node node;
  13307. /* readonly */
  13308. uint numAttributes;
  13309. /* readonly */
  13310. uint numLayers;
  13311. ObjectAnimation objectAnimation;
  13312. /* readonly */
  13313. int refs;
  13314. /* readonly */
  13315. bool replicated;
  13316. bool temporary;
  13317. TmxFile2D tmxFile;
  13318. /* readonly */
  13319. StringHash type;
  13320. /* readonly */
  13321. String typeName;
  13322. /* readonly */
  13323. int weakRefs;
  13324. };
  13325. class TileMapInfo2D
  13326. {
  13327. public:
  13328. // Properties:
  13329. int height;
  13330. /* readonly */
  13331. float mapHeight;
  13332. /* readonly */
  13333. float mapWidth;
  13334. Orientation2D orientation;
  13335. float tileHeight;
  13336. float tileWidth;
  13337. int width;
  13338. };
  13339. class TileMapLayer2D
  13340. {
  13341. public:
  13342. // Methods:
  13343. void ApplyAttributes();
  13344. void DrawDebugGeometry(DebugRenderer, bool);
  13345. Variant GetAttribute(const String&) const;
  13346. ValueAnimation GetAttributeAnimation(const String&) const;
  13347. float GetAttributeAnimationSpeed(const String&) const;
  13348. float GetAttributeAnimationTime(const String&) const;
  13349. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13350. Variant GetAttributeDefault(const String&) const;
  13351. bool GetInterceptNetworkUpdate(const String&) const;
  13352. TileMapObject2D GetObject(uint) const;
  13353. Node GetObjectNode(uint) const;
  13354. Tile2D GetTile(int, int) const;
  13355. Node GetTileNode(int, int) const;
  13356. bool HasProperty(const String&) const;
  13357. bool HasSubscribedToEvent(Object, const String&);
  13358. bool HasSubscribedToEvent(const String&);
  13359. bool Load(File);
  13360. bool Load(VectorBuffer&);
  13361. bool LoadJSON(const JSONValue&);
  13362. bool LoadXML(const XMLElement&);
  13363. void MarkNetworkUpdate() const;
  13364. void Remove();
  13365. void RemoveAttributeAnimation(const String&);
  13366. void RemoveInstanceDefault();
  13367. void RemoveObjectAnimation();
  13368. void ResetToDefault();
  13369. bool Save(File) const;
  13370. bool Save(VectorBuffer&) const;
  13371. bool SaveJSON(JSONValue&) const;
  13372. bool SaveXML(XMLElement&) const;
  13373. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13374. void SetAnimationTime(float);
  13375. bool SetAttribute(const String&, const Variant&);
  13376. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13377. void SetAttributeAnimationSpeed(const String&, float);
  13378. void SetAttributeAnimationTime(const String&, float);
  13379. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13380. void SetInterceptNetworkUpdate(const String&, bool);
  13381. const String& GetProperty(const String&) const;
  13382. // Properties:
  13383. bool animationEnabled;
  13384. /* readonly */
  13385. Array<Variant> attributeDefaults;
  13386. /* readonly */
  13387. Array<AttributeInfo> attributeInfos;
  13388. Array<Variant> attributes;
  13389. /* readonly */
  13390. String category;
  13391. int drawOrder;
  13392. bool enabled;
  13393. /* readonly */
  13394. bool enabledEffective;
  13395. /* readonly */
  13396. int height;
  13397. /* readonly */
  13398. uint id;
  13399. /* readonly */
  13400. Node imageNode;
  13401. /* readonly */
  13402. TileMapLayerType2D layerType;
  13403. /* readonly */
  13404. Node node;
  13405. /* readonly */
  13406. uint numAttributes;
  13407. /* readonly */
  13408. uint numObjects;
  13409. ObjectAnimation objectAnimation;
  13410. /* readonly */
  13411. int refs;
  13412. /* readonly */
  13413. bool replicated;
  13414. bool temporary;
  13415. /* readonly */
  13416. StringHash type;
  13417. /* readonly */
  13418. String typeName;
  13419. bool visible;
  13420. /* readonly */
  13421. int weakRefs;
  13422. /* readonly */
  13423. int width;
  13424. };
  13425. class TileMapObject2D
  13426. {
  13427. public:
  13428. // Methods:
  13429. bool HasProperty(const String&) const;
  13430. const String& GetProperty(const String&) const;
  13431. const Vector2& GetPoint(uint) const;
  13432. // Properties:
  13433. /* readonly */
  13434. String name;
  13435. /* readonly */
  13436. uint numPoints;
  13437. /* readonly */
  13438. TileObjectType2D objectType;
  13439. /* readonly */
  13440. Vector2 position;
  13441. /* readonly */
  13442. int refs;
  13443. /* readonly */
  13444. Vector2 size;
  13445. /* readonly */
  13446. int tileGid;
  13447. /* readonly */
  13448. Sprite2D tileSprite;
  13449. /* readonly */
  13450. String type;
  13451. /* readonly */
  13452. int weakRefs;
  13453. };
  13454. class Time
  13455. {
  13456. public:
  13457. // Methods:
  13458. bool HasSubscribedToEvent(Object, const String&);
  13459. bool HasSubscribedToEvent(const String&);
  13460. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13461. // Properties:
  13462. /* readonly */
  13463. String category;
  13464. /* readonly */
  13465. float elapsedTime;
  13466. /* readonly */
  13467. uint frameNumber;
  13468. /* readonly */
  13469. float framesPerSecond;
  13470. /* readonly */
  13471. int refs;
  13472. /* readonly */
  13473. uint systemTime;
  13474. /* readonly */
  13475. uint timeSinceEpoch;
  13476. /* readonly */
  13477. String timeStamp;
  13478. /* readonly */
  13479. float timeStep;
  13480. /* readonly */
  13481. StringHash type;
  13482. /* readonly */
  13483. String typeName;
  13484. /* readonly */
  13485. int weakRefs;
  13486. };
  13487. class Timer
  13488. {
  13489. public:
  13490. Timer();
  13491. // Methods:
  13492. uint GetMSec(bool);
  13493. void Reset();
  13494. };
  13495. class TmxFile2D
  13496. {
  13497. public:
  13498. TmxFile2D();
  13499. TmxFile2D(const String&in);
  13500. // Methods:
  13501. bool HasSubscribedToEvent(Object, const String&);
  13502. bool HasSubscribedToEvent(const String&);
  13503. bool Load(File);
  13504. bool Load(VectorBuffer&);
  13505. bool Load(const String&);
  13506. bool Save(File) const;
  13507. bool Save(VectorBuffer&) const;
  13508. bool Save(const String&) const;
  13509. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13510. // Properties:
  13511. /* readonly */
  13512. String category;
  13513. /* readonly */
  13514. uint memoryUse;
  13515. String name;
  13516. /* readonly */
  13517. int refs;
  13518. /* readonly */
  13519. StringHash type;
  13520. /* readonly */
  13521. String typeName;
  13522. /* readonly */
  13523. uint useTimer;
  13524. /* readonly */
  13525. int weakRefs;
  13526. };
  13527. class ToolTip
  13528. {
  13529. public:
  13530. ToolTip();
  13531. ToolTip(const String&in);
  13532. // Methods:
  13533. void AddChild(UIElement);
  13534. void AddTag(const String&);
  13535. void AddTags(const String&, int8 = ';');
  13536. void ApplyAttributes();
  13537. void BringToFront();
  13538. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13539. void DisableLayoutUpdate();
  13540. IntVector2 ElementToScreen(const IntVector2&);
  13541. void EnableLayoutUpdate();
  13542. uint FindChild(UIElement) const;
  13543. Variant GetAttribute(const String&) const;
  13544. ValueAnimation GetAttributeAnimation(const String&) const;
  13545. float GetAttributeAnimationSpeed(const String&) const;
  13546. float GetAttributeAnimationTime(const String&) const;
  13547. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13548. Variant GetAttributeDefault(const String&) const;
  13549. UIElement GetChild(const String&, bool = false) const;
  13550. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13551. Array<UIElement> GetChildren(bool = false) const;
  13552. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13553. UIElement GetElementEventSender() const;
  13554. bool GetInterceptNetworkUpdate(const String&) const;
  13555. uint GetNumChildren(bool) const;
  13556. bool HasSubscribedToEvent(Object, const String&);
  13557. bool HasSubscribedToEvent(const String&);
  13558. bool HasTag(const String&) const;
  13559. void InsertChild(uint, UIElement);
  13560. bool IsChildOf(UIElement) const;
  13561. bool IsInside(IntVector2, bool);
  13562. bool IsInsideCombined(IntVector2, bool);
  13563. bool Load(File);
  13564. bool Load(VectorBuffer&);
  13565. UIElement LoadChildXML(XMLFile, XMLFile);
  13566. UIElement LoadChildXML(const XMLElement&, XMLFile);
  13567. bool LoadJSON(const JSONValue&);
  13568. bool LoadXML(File);
  13569. bool LoadXML(VectorBuffer&);
  13570. bool LoadXML(XMLFile, XMLFile);
  13571. bool LoadXML(const XMLElement&, XMLFile);
  13572. bool LoadXML(const XMLElement&);
  13573. void MarkNetworkUpdate() const;
  13574. void Remove();
  13575. void RemoveAllChildren();
  13576. void RemoveAllTags();
  13577. void RemoveAttributeAnimation(const String&);
  13578. void RemoveChild(UIElement, uint = 0);
  13579. void RemoveChild(uint);
  13580. void RemoveInstanceDefault();
  13581. void RemoveObjectAnimation();
  13582. bool RemoveTag(const String&);
  13583. void ResetDeepEnabled();
  13584. void ResetToDefault();
  13585. bool Save(File) const;
  13586. bool Save(VectorBuffer&) const;
  13587. bool SaveJSON(JSONValue&) const;
  13588. bool SaveXML(File, const String& = "\t");
  13589. bool SaveXML(VectorBuffer&, const String& = "\t");
  13590. bool SaveXML(XMLElement&) const;
  13591. IntVector2 ScreenToElement(const IntVector2&);
  13592. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13593. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13594. void SetAnimationTime(float);
  13595. bool SetAttribute(const String&, const Variant&);
  13596. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13597. void SetAttributeAnimationSpeed(const String&, float);
  13598. void SetAttributeAnimationTime(const String&, float);
  13599. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13600. void SetDeepEnabled(bool);
  13601. void SetEnabledRecursive(bool);
  13602. void SetFixedHeight(int);
  13603. void SetFixedSize(int, int);
  13604. void SetFixedWidth(int);
  13605. void SetInterceptNetworkUpdate(const String&, bool);
  13606. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13607. void SetMaxAnchor(float, float);
  13608. void SetMaxSize(int, int);
  13609. void SetMinAnchor(float, float);
  13610. void SetMinSize(int, int);
  13611. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13612. void SetPivot(float, float);
  13613. void SetPosition(int, int);
  13614. void SetSize(int, int);
  13615. bool SetStyle(const String&, XMLFile = null);
  13616. bool SetStyle(const XMLElement&);
  13617. bool SetStyleAuto(XMLFile = null);
  13618. void UpdateLayout();
  13619. const Variant& GetVar(const StringHash&);
  13620. // Properties:
  13621. bool animationEnabled;
  13622. /* readonly */
  13623. Array<Variant> attributeDefaults;
  13624. /* readonly */
  13625. Array<AttributeInfo> attributeInfos;
  13626. Array<Variant> attributes;
  13627. bool bringToBack;
  13628. bool bringToFront;
  13629. /* readonly */
  13630. String category;
  13631. /* readonly */
  13632. IntVector2 childOffset;
  13633. /* readonly */
  13634. Array<UIElement> children;
  13635. IntRect clipBorder;
  13636. bool clipChildren;
  13637. /* writeonly */
  13638. Color color;
  13639. /* readonly */
  13640. bool colorGradient;
  13641. Array<Color> colors;
  13642. /* readonly */
  13643. IntRect combinedScreenRect;
  13644. XMLFile defaultStyle;
  13645. float delay;
  13646. /* readonly */
  13647. float derivedOpacity;
  13648. /* readonly */
  13649. uint dragButtonCombo;
  13650. /* readonly */
  13651. int dragButtonCount;
  13652. uint dragDropMode;
  13653. bool editable;
  13654. bool elementEventSender;
  13655. bool enableAnchor;
  13656. bool enabled;
  13657. /* readonly */
  13658. bool enabledSelf;
  13659. /* readonly */
  13660. bool fixedHeight;
  13661. /* readonly */
  13662. bool fixedSize;
  13663. /* readonly */
  13664. bool fixedWidth;
  13665. bool focus;
  13666. FocusMode focusMode;
  13667. int height;
  13668. HorizontalAlignment horizontalAlignment;
  13669. /* readonly */
  13670. bool hovering;
  13671. int indent;
  13672. int indentSpacing;
  13673. /* readonly */
  13674. int indentWidth;
  13675. bool internal;
  13676. IntRect layoutBorder;
  13677. Vector2 layoutFlexScale;
  13678. LayoutMode layoutMode;
  13679. int layoutSpacing;
  13680. Vector2 maxAnchor;
  13681. int maxHeight;
  13682. IntVector2 maxOffset;
  13683. IntVector2 maxSize;
  13684. int maxWidth;
  13685. Vector2 minAnchor;
  13686. int minHeight;
  13687. IntVector2 minOffset;
  13688. IntVector2 minSize;
  13689. int minWidth;
  13690. String name;
  13691. /* readonly */
  13692. uint numAllChildren;
  13693. /* readonly */
  13694. uint numAttributes;
  13695. /* readonly */
  13696. uint numChildren;
  13697. ObjectAnimation objectAnimation;
  13698. float opacity;
  13699. UIElement parent;
  13700. Vector2 pivot;
  13701. IntVector2 position;
  13702. int priority;
  13703. /* readonly */
  13704. int refs;
  13705. /* readonly */
  13706. UIElement root;
  13707. /* readonly */
  13708. IntVector2 screenPosition;
  13709. bool selected;
  13710. IntVector2 size;
  13711. bool sortChildren;
  13712. String style;
  13713. /* readonly */
  13714. Array<String> tags;
  13715. bool temporary;
  13716. TraversalMode traversalMode;
  13717. /* readonly */
  13718. StringHash type;
  13719. /* readonly */
  13720. String typeName;
  13721. bool useDerivedOpacity;
  13722. /* readonly */
  13723. VariantMap vars;
  13724. VerticalAlignment verticalAlignment;
  13725. bool visible;
  13726. /* readonly */
  13727. bool visibleEffective;
  13728. /* readonly */
  13729. int weakRefs;
  13730. int width;
  13731. };
  13732. class TouchState
  13733. {
  13734. public:
  13735. // Properties:
  13736. IntVector2 delta;
  13737. IntVector2 lastPosition;
  13738. IntVector2 position;
  13739. float pressure;
  13740. int touchID;
  13741. /* readonly */
  13742. UIElement touchedElement;
  13743. };
  13744. class UI
  13745. {
  13746. public:
  13747. // Methods:
  13748. void Clear();
  13749. void DebugDraw(UIElement);
  13750. UIElement GetElementAt(const IntVector2&, bool = true);
  13751. UIElement GetElementAt(int, int, bool = true);
  13752. bool HasModalElement() const;
  13753. bool HasSubscribedToEvent(Object, const String&);
  13754. bool HasSubscribedToEvent(const String&);
  13755. bool IsDragging() const;
  13756. UIElement LoadLayout(File);
  13757. UIElement LoadLayout(File, XMLFile);
  13758. UIElement LoadLayout(VectorBuffer&);
  13759. UIElement LoadLayout(VectorBuffer&, XMLFile);
  13760. UIElement LoadLayout(XMLFile);
  13761. UIElement LoadLayout(XMLFile, XMLFile);
  13762. bool SaveLayout(File, UIElement);
  13763. bool SaveLayout(VectorBuffer&, UIElement);
  13764. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13765. void SetCustomSize(int, int);
  13766. void SetFocusElement(UIElement, bool = false);
  13767. void SetHeight(float);
  13768. void SetWidth(float);
  13769. const Array<UIElement> GetDragElements();
  13770. // Properties:
  13771. /* readonly */
  13772. String category;
  13773. String clipBoardText;
  13774. Cursor cursor;
  13775. /* readonly */
  13776. IntVector2 cursorPosition;
  13777. IntVector2 customSize;
  13778. float defaultToolTipDelay;
  13779. float doubleClickInterval;
  13780. int dragBeginDistance;
  13781. float dragBeginInterval;
  13782. UIElement focusElement;
  13783. FontHintLevel fontHintLevel;
  13784. int fontOversampling;
  13785. float fontSubpixelThreshold;
  13786. bool forceAutoHint;
  13787. /* readonly */
  13788. UIElement frontElement;
  13789. float maxDoubleClickDistance;
  13790. int maxFontTextureSize;
  13791. /* readonly */
  13792. UIElement modalRoot;
  13793. bool nonFocusedMouseWheel;
  13794. /* readonly */
  13795. int refs;
  13796. /* readonly */
  13797. UIElement root;
  13798. float scale;
  13799. /* readonly */
  13800. StringHash type;
  13801. /* readonly */
  13802. String typeName;
  13803. bool useMutableGlyphs;
  13804. bool useScreenKeyboard;
  13805. bool useSystemClipboard;
  13806. /* readonly */
  13807. int weakRefs;
  13808. };
  13809. class UIComponent
  13810. {
  13811. public:
  13812. // Methods:
  13813. void ApplyAttributes();
  13814. Variant GetAttribute(const String&) const;
  13815. ValueAnimation GetAttributeAnimation(const String&) const;
  13816. float GetAttributeAnimationSpeed(const String&) const;
  13817. float GetAttributeAnimationTime(const String&) const;
  13818. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13819. Variant GetAttributeDefault(const String&) const;
  13820. bool GetInterceptNetworkUpdate(const String&) const;
  13821. bool HasSubscribedToEvent(Object, const String&);
  13822. bool HasSubscribedToEvent(const String&);
  13823. bool Load(File);
  13824. bool Load(VectorBuffer&);
  13825. bool LoadJSON(const JSONValue&);
  13826. bool LoadXML(const XMLElement&);
  13827. void MarkNetworkUpdate() const;
  13828. void Remove();
  13829. void RemoveAttributeAnimation(const String&);
  13830. void RemoveInstanceDefault();
  13831. void RemoveObjectAnimation();
  13832. void ResetToDefault();
  13833. bool Save(File) const;
  13834. bool Save(VectorBuffer&) const;
  13835. bool SaveJSON(JSONValue&) const;
  13836. bool SaveXML(XMLElement&) const;
  13837. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13838. void SetAnimationTime(float);
  13839. bool SetAttribute(const String&, const Variant&);
  13840. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13841. void SetAttributeAnimationSpeed(const String&, float);
  13842. void SetAttributeAnimationTime(const String&, float);
  13843. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13844. void SetInterceptNetworkUpdate(const String&, bool);
  13845. // Properties:
  13846. bool animationEnabled;
  13847. /* readonly */
  13848. Array<Variant> attributeDefaults;
  13849. /* readonly */
  13850. Array<AttributeInfo> attributeInfos;
  13851. Array<Variant> attributes;
  13852. /* readonly */
  13853. String category;
  13854. bool enabled;
  13855. /* readonly */
  13856. bool enabledEffective;
  13857. /* readonly */
  13858. uint id;
  13859. /* readonly */
  13860. Material material;
  13861. /* readonly */
  13862. Node node;
  13863. /* readonly */
  13864. uint numAttributes;
  13865. ObjectAnimation objectAnimation;
  13866. /* readonly */
  13867. int refs;
  13868. /* readonly */
  13869. bool replicated;
  13870. /* readonly */
  13871. UIElement root;
  13872. bool temporary;
  13873. /* readonly */
  13874. Texture2D texture;
  13875. /* readonly */
  13876. StringHash type;
  13877. /* readonly */
  13878. String typeName;
  13879. /* readonly */
  13880. int weakRefs;
  13881. };
  13882. class UIElement
  13883. {
  13884. public:
  13885. UIElement();
  13886. UIElement(const String&in);
  13887. // Methods:
  13888. void AddChild(UIElement);
  13889. void AddTag(const String&);
  13890. void AddTags(const String&, int8 = ';');
  13891. void ApplyAttributes();
  13892. void BringToFront();
  13893. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13894. void DisableLayoutUpdate();
  13895. IntVector2 ElementToScreen(const IntVector2&);
  13896. void EnableLayoutUpdate();
  13897. uint FindChild(UIElement) const;
  13898. Variant GetAttribute(const String&) const;
  13899. ValueAnimation GetAttributeAnimation(const String&) const;
  13900. float GetAttributeAnimationSpeed(const String&) const;
  13901. float GetAttributeAnimationTime(const String&) const;
  13902. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13903. Variant GetAttributeDefault(const String&) const;
  13904. UIElement GetChild(const String&, bool = false) const;
  13905. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13906. Array<UIElement> GetChildren(bool = false) const;
  13907. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13908. UIElement GetElementEventSender() const;
  13909. bool GetInterceptNetworkUpdate(const String&) const;
  13910. uint GetNumChildren(bool) const;
  13911. bool HasSubscribedToEvent(Object, const String&);
  13912. bool HasSubscribedToEvent(const String&);
  13913. bool HasTag(const String&) const;
  13914. void InsertChild(uint, UIElement);
  13915. bool IsChildOf(UIElement) const;
  13916. bool IsInside(IntVector2, bool);
  13917. bool IsInsideCombined(IntVector2, bool);
  13918. bool Load(File);
  13919. bool Load(VectorBuffer&);
  13920. UIElement LoadChildXML(XMLFile, XMLFile);
  13921. UIElement LoadChildXML(const XMLElement&, XMLFile);
  13922. bool LoadJSON(const JSONValue&);
  13923. bool LoadXML(File);
  13924. bool LoadXML(VectorBuffer&);
  13925. bool LoadXML(XMLFile, XMLFile);
  13926. bool LoadXML(const XMLElement&, XMLFile);
  13927. bool LoadXML(const XMLElement&);
  13928. void MarkNetworkUpdate() const;
  13929. void Remove();
  13930. void RemoveAllChildren();
  13931. void RemoveAllTags();
  13932. void RemoveAttributeAnimation(const String&);
  13933. void RemoveChild(UIElement, uint = 0);
  13934. void RemoveChild(uint);
  13935. void RemoveInstanceDefault();
  13936. void RemoveObjectAnimation();
  13937. bool RemoveTag(const String&);
  13938. void ResetDeepEnabled();
  13939. void ResetToDefault();
  13940. bool Save(File) const;
  13941. bool Save(VectorBuffer&) const;
  13942. bool SaveJSON(JSONValue&) const;
  13943. bool SaveXML(File, const String& = "\t");
  13944. bool SaveXML(VectorBuffer&, const String& = "\t");
  13945. bool SaveXML(XMLElement&) const;
  13946. IntVector2 ScreenToElement(const IntVector2&);
  13947. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13948. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13949. void SetAnimationTime(float);
  13950. bool SetAttribute(const String&, const Variant&);
  13951. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13952. void SetAttributeAnimationSpeed(const String&, float);
  13953. void SetAttributeAnimationTime(const String&, float);
  13954. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13955. void SetDeepEnabled(bool);
  13956. void SetEnabledRecursive(bool);
  13957. void SetFixedHeight(int);
  13958. void SetFixedSize(int, int);
  13959. void SetFixedWidth(int);
  13960. void SetInterceptNetworkUpdate(const String&, bool);
  13961. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13962. void SetMaxAnchor(float, float);
  13963. void SetMaxSize(int, int);
  13964. void SetMinAnchor(float, float);
  13965. void SetMinSize(int, int);
  13966. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13967. void SetPivot(float, float);
  13968. void SetPosition(int, int);
  13969. void SetSize(int, int);
  13970. bool SetStyle(const String&, XMLFile = null);
  13971. bool SetStyle(const XMLElement&);
  13972. bool SetStyleAuto(XMLFile = null);
  13973. void UpdateLayout();
  13974. const Variant& GetVar(const StringHash&);
  13975. // Properties:
  13976. bool animationEnabled;
  13977. /* readonly */
  13978. Array<Variant> attributeDefaults;
  13979. /* readonly */
  13980. Array<AttributeInfo> attributeInfos;
  13981. Array<Variant> attributes;
  13982. bool bringToBack;
  13983. bool bringToFront;
  13984. /* readonly */
  13985. String category;
  13986. /* readonly */
  13987. IntVector2 childOffset;
  13988. /* readonly */
  13989. Array<UIElement> children;
  13990. IntRect clipBorder;
  13991. bool clipChildren;
  13992. /* writeonly */
  13993. Color color;
  13994. /* readonly */
  13995. bool colorGradient;
  13996. Array<Color> colors;
  13997. /* readonly */
  13998. IntRect combinedScreenRect;
  13999. XMLFile defaultStyle;
  14000. /* readonly */
  14001. float derivedOpacity;
  14002. /* readonly */
  14003. uint dragButtonCombo;
  14004. /* readonly */
  14005. int dragButtonCount;
  14006. uint dragDropMode;
  14007. bool editable;
  14008. bool elementEventSender;
  14009. bool enableAnchor;
  14010. bool enabled;
  14011. /* readonly */
  14012. bool enabledSelf;
  14013. /* readonly */
  14014. bool fixedHeight;
  14015. /* readonly */
  14016. bool fixedSize;
  14017. /* readonly */
  14018. bool fixedWidth;
  14019. bool focus;
  14020. FocusMode focusMode;
  14021. int height;
  14022. HorizontalAlignment horizontalAlignment;
  14023. /* readonly */
  14024. bool hovering;
  14025. int indent;
  14026. int indentSpacing;
  14027. /* readonly */
  14028. int indentWidth;
  14029. bool internal;
  14030. IntRect layoutBorder;
  14031. Vector2 layoutFlexScale;
  14032. LayoutMode layoutMode;
  14033. int layoutSpacing;
  14034. Vector2 maxAnchor;
  14035. int maxHeight;
  14036. IntVector2 maxOffset;
  14037. IntVector2 maxSize;
  14038. int maxWidth;
  14039. Vector2 minAnchor;
  14040. int minHeight;
  14041. IntVector2 minOffset;
  14042. IntVector2 minSize;
  14043. int minWidth;
  14044. String name;
  14045. /* readonly */
  14046. uint numAllChildren;
  14047. /* readonly */
  14048. uint numAttributes;
  14049. /* readonly */
  14050. uint numChildren;
  14051. ObjectAnimation objectAnimation;
  14052. float opacity;
  14053. UIElement parent;
  14054. Vector2 pivot;
  14055. IntVector2 position;
  14056. int priority;
  14057. /* readonly */
  14058. int refs;
  14059. /* readonly */
  14060. UIElement root;
  14061. /* readonly */
  14062. IntVector2 screenPosition;
  14063. bool selected;
  14064. IntVector2 size;
  14065. bool sortChildren;
  14066. String style;
  14067. /* readonly */
  14068. Array<String> tags;
  14069. bool temporary;
  14070. TraversalMode traversalMode;
  14071. /* readonly */
  14072. StringHash type;
  14073. /* readonly */
  14074. String typeName;
  14075. bool useDerivedOpacity;
  14076. /* readonly */
  14077. VariantMap vars;
  14078. VerticalAlignment verticalAlignment;
  14079. bool visible;
  14080. /* readonly */
  14081. bool visibleEffective;
  14082. /* readonly */
  14083. int weakRefs;
  14084. int width;
  14085. };
  14086. class ValueAnimation
  14087. {
  14088. public:
  14089. ValueAnimation();
  14090. ValueAnimation(const String&in);
  14091. // Methods:
  14092. bool HasSubscribedToEvent(Object, const String&);
  14093. bool HasSubscribedToEvent(const String&);
  14094. bool Load(File);
  14095. bool Load(VectorBuffer&);
  14096. bool Load(const String&);
  14097. bool Save(File) const;
  14098. bool Save(VectorBuffer&) const;
  14099. bool Save(const String&) const;
  14100. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14101. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  14102. void SetKeyFrame(float, const Variant&);
  14103. // Properties:
  14104. /* readonly */
  14105. String category;
  14106. InterpMethod interpolationMethod;
  14107. /* readonly */
  14108. uint memoryUse;
  14109. String name;
  14110. /* readonly */
  14111. int refs;
  14112. float splineTension;
  14113. /* readonly */
  14114. StringHash type;
  14115. /* readonly */
  14116. String typeName;
  14117. /* readonly */
  14118. uint useTimer;
  14119. VariantType valueType;
  14120. /* readonly */
  14121. int weakRefs;
  14122. };
  14123. class Variant
  14124. {
  14125. public:
  14126. ~Variant();
  14127. Variant();
  14128. Variant(const Variant&in);
  14129. Variant(int);
  14130. Variant(uint);
  14131. Variant(int64);
  14132. Variant(uint64);
  14133. Variant(const StringHash&in);
  14134. Variant(bool);
  14135. Variant(float);
  14136. Variant(double);
  14137. Variant(const Vector2&in);
  14138. Variant(const Vector3&in);
  14139. Variant(const Vector4&in);
  14140. Variant(const Quaternion&in);
  14141. Variant(const Color&in);
  14142. Variant(const String&in);
  14143. Variant(const ResourceRef&in);
  14144. Variant(const ResourceRefList&in);
  14145. Variant(const Variant[]@);
  14146. Variant(const String[]@);
  14147. Variant(const VariantMap&in);
  14148. Variant(const Rect&in);
  14149. Variant(const IntRect&in);
  14150. Variant(const IntVector2&in);
  14151. Variant(const IntVector3&in);
  14152. Variant(RefCounted@);
  14153. Variant(ScriptObject@);
  14154. Variant(const Matrix3&in);
  14155. Variant(const Matrix3x4&in);
  14156. Variant(const Matrix4&in);
  14157. Variant(const String&in, const String&in);
  14158. Variant(VariantType, const String&in);
  14159. Variant(const VectorBuffer&in);
  14160. // Methods:
  14161. void Clear();
  14162. const Color& GetColor() const;
  14163. void FromString(VariantType, const String&);
  14164. void FromString(const String&, const String&);
  14165. bool GetBool() const;
  14166. VectorBuffer GetBuffer() const;
  14167. double GetDouble() const;
  14168. float GetFloat() const;
  14169. int GetInt() const;
  14170. int GetInt64() const;
  14171. RefCounted GetPtr() const;
  14172. ScriptObject GetScriptObject() const;
  14173. StringHash GetStringHash() const;
  14174. Array<String> GetStringVector() const;
  14175. uint GetUInt() const;
  14176. uint64 GetUInt64() const;
  14177. Array<Variant> GetVariantVector() const;
  14178. const IntRect& GetIntRect() const;
  14179. const IntVector2& GetIntVector2() const;
  14180. const IntVector3& GetIntVector3() const;
  14181. const Matrix3& GetMatrix3() const;
  14182. const Matrix3x4& GetMatrix3x4() const;
  14183. const Matrix4& GetMatrix4() const;
  14184. const Quaternion& GetQuaternion() const;
  14185. const Rect& GetRect() const;
  14186. const ResourceRef& GetResourceRef() const;
  14187. const ResourceRefList& GetResourceRefList() const;
  14188. const String& GetString() const;
  14189. String ToString() const;
  14190. const VariantMap& GetVariantMap() const;
  14191. const Vector2& GetVector2() const;
  14192. const Vector3& GetVector3() const;
  14193. const Vector4& GetVector4() const;
  14194. // Properties:
  14195. /* readonly */
  14196. bool empty;
  14197. /* readonly */
  14198. VariantType type;
  14199. /* readonly */
  14200. String typeName;
  14201. /* readonly */
  14202. bool zero;
  14203. };
  14204. class VariantMap
  14205. {
  14206. public:
  14207. ~VariantMap();
  14208. VariantMap();
  14209. VariantMap(const VariantMap&in);
  14210. // Methods:
  14211. void Clear();
  14212. bool Contains(StringHash) const;
  14213. bool Contains(const String&) const;
  14214. bool Erase(StringHash);
  14215. bool Erase(const String&);
  14216. // Properties:
  14217. /* readonly */
  14218. Array<StringHash> keys;
  14219. /* readonly */
  14220. uint length;
  14221. /* readonly */
  14222. Array<Variant> values;
  14223. };
  14224. class Vector2
  14225. {
  14226. public:
  14227. Vector2();
  14228. Vector2(const Vector2&in);
  14229. Vector2(const IntVector2&in);
  14230. Vector2(float, float);
  14231. Vector2(float[]&inout);
  14232. // Methods:
  14233. Vector2 Abs() const;
  14234. float AbsDotProduct(const Vector2&) const;
  14235. float Angle(const Vector2&) const;
  14236. float DotProduct(const Vector2&) const;
  14237. bool Equals(const Vector2&) const;
  14238. bool IsNaN() const;
  14239. Vector2 Lerp(const Vector2&, float) const;
  14240. void Normalize();
  14241. Vector2 Normalized() const;
  14242. float ProjectOntoAxis(const Vector2&) const;
  14243. String ToString() const;
  14244. // Properties:
  14245. /* readonly */
  14246. Array<float> data;
  14247. /* readonly */
  14248. float length;
  14249. /* readonly */
  14250. float lengthSquared;
  14251. float x;
  14252. float y;
  14253. // Constants:
  14254. static const Vector2 DOWN;
  14255. static const Vector2 LEFT;
  14256. static const Vector2 ONE;
  14257. static const Vector2 RIGHT;
  14258. static const Vector2 UP;
  14259. static const Vector2 ZERO;
  14260. };
  14261. class Vector3
  14262. {
  14263. public:
  14264. Vector3();
  14265. Vector3(const Vector3&in);
  14266. Vector3(const Vector2&in, float);
  14267. Vector3(const Vector2&in);
  14268. Vector3(const IntVector3&in);
  14269. Vector3(float, float, float);
  14270. Vector3(float, float);
  14271. Vector3(float[]&inout);
  14272. // Methods:
  14273. Vector3 Abs() const;
  14274. float AbsDotProduct(const Vector3&) const;
  14275. float Angle(const Vector3&) const;
  14276. Vector3 CrossProduct(const Vector3&) const;
  14277. float DistanceToPlane(const Vector3&, const Vector3&) const;
  14278. float DistanceToPoint(const Vector3&) const;
  14279. float DotProduct(const Vector3&) const;
  14280. bool Equals(const Vector3&) const;
  14281. bool IsNaN() const;
  14282. Vector3 Lerp(const Vector3&, float) const;
  14283. void Normalize();
  14284. Vector3 Normalized() const;
  14285. Vector3 Orthogonalize(const Vector3&) const;
  14286. float ProjectOntoAxis(const Vector3&) const;
  14287. Vector3 ProjectOntoLine(const Vector3&, const Vector3&, bool = false) const;
  14288. Vector3 ProjectOntoPlane(const Vector3&, const Vector3&) const;
  14289. String ToString() const;
  14290. // Properties:
  14291. /* readonly */
  14292. Array<float> data;
  14293. /* readonly */
  14294. float length;
  14295. /* readonly */
  14296. float lengthSquared;
  14297. float x;
  14298. float y;
  14299. float z;
  14300. // Constants:
  14301. static const Vector3 BACK;
  14302. static const Vector3 DOWN;
  14303. static const Vector3 FORWARD;
  14304. static const Vector3 LEFT;
  14305. static const Vector3 ONE;
  14306. static const Vector3 RIGHT;
  14307. static const Vector3 UP;
  14308. static const Vector3 ZERO;
  14309. };
  14310. class Vector4
  14311. {
  14312. public:
  14313. Vector4();
  14314. Vector4(const Vector4&in);
  14315. Vector4(float, float, float, float);
  14316. Vector4(const Vector3&in, float);
  14317. Vector4(float[]&inout);
  14318. // Methods:
  14319. Vector4 Abs() const;
  14320. float AbsDotProduct(const Vector4&) const;
  14321. float DotProduct(const Vector4&) const;
  14322. bool Equals(const Vector4&) const;
  14323. bool IsNaN() const;
  14324. Vector4 Lerp(const Vector4&, float) const;
  14325. float ProjectOntoAxis(const Vector3&) const;
  14326. String ToString() const;
  14327. // Properties:
  14328. /* readonly */
  14329. Array<float> data;
  14330. float w;
  14331. float x;
  14332. float y;
  14333. float z;
  14334. };
  14335. class VectorBuffer
  14336. {
  14337. public:
  14338. ~VectorBuffer();
  14339. VectorBuffer();
  14340. VectorBuffer(const VectorBuffer&in);
  14341. VectorBuffer(Deserializer@, uint);
  14342. // Methods:
  14343. void Clear();
  14344. Array<uint8> Read(uint);
  14345. bool ReadBool();
  14346. BoundingBox ReadBoundingBox();
  14347. int8 ReadByte();
  14348. Color ReadColor();
  14349. double ReadDouble();
  14350. String ReadFileID();
  14351. float ReadFloat();
  14352. int ReadInt();
  14353. int64 ReadInt64();
  14354. IntRect ReadIntRect();
  14355. IntVector2 ReadIntVector2();
  14356. String ReadLine();
  14357. Matrix3 ReadMatrix3();
  14358. Matrix3x4 ReadMatrix3x4();
  14359. Matrix4 ReadMatrix4();
  14360. uint ReadNetID();
  14361. Quaternion ReadPackedQuaternion();
  14362. Vector3 ReadPackedVector3(float);
  14363. Quaternion ReadQuaternion();
  14364. int16 ReadShort();
  14365. String ReadString();
  14366. StringHash ReadStringHash();
  14367. uint8 ReadUByte();
  14368. uint ReadUInt();
  14369. uint64 ReadUInt64();
  14370. uint16 ReadUShort();
  14371. uint ReadVLE();
  14372. Variant ReadVariant();
  14373. VariantMap ReadVariantMap();
  14374. Vector2 ReadVector2();
  14375. Vector3 ReadVector3();
  14376. Vector4 ReadVector4();
  14377. VectorBuffer ReadVectorBuffer(uint);
  14378. void Resize(uint);
  14379. uint Seek(uint);
  14380. uint SeekRelative(int);
  14381. void SetData(Deserializer, uint);
  14382. uint Tell() const;
  14383. uint Write(Array<uint8>);
  14384. bool WriteBool(bool);
  14385. bool WriteBoundingBox(const BoundingBox&);
  14386. bool WriteByte(int8);
  14387. bool WriteColor(const Color&);
  14388. bool WriteDouble(double);
  14389. bool WriteFileID(const String&);
  14390. bool WriteFloat(float);
  14391. bool WriteInt(int);
  14392. bool WriteInt64(int64);
  14393. bool WriteIntRect(const IntRect&);
  14394. bool WriteIntVector2(const IntVector2&);
  14395. bool WriteLine(const String&);
  14396. bool WriteMatrix3(const Matrix3&);
  14397. bool WriteMatrix3x4(const Matrix3x4&);
  14398. bool WriteMatrix4(const Matrix4&);
  14399. bool WriteNetID(uint);
  14400. bool WritePackedQuaternion(const Quaternion&);
  14401. bool WritePackedVector3(const Vector3&, float);
  14402. bool WriteQuaternion(const Quaternion&);
  14403. bool WriteShort(int16);
  14404. bool WriteString(const String&);
  14405. bool WriteStringHash(const StringHash&);
  14406. bool WriteUByte(uint8);
  14407. bool WriteUInt(uint);
  14408. bool WriteUInt64(uint64);
  14409. bool WriteUShort(uint16);
  14410. bool WriteVLE(uint);
  14411. bool WriteVariant(const Variant&);
  14412. bool WriteVariantMap(const VariantMap&);
  14413. bool WriteVector2(const Vector2&);
  14414. bool WriteVector3(const Vector3&);
  14415. bool WriteVector4(const Vector4&);
  14416. bool WriteVectorBuffer(const VectorBuffer&);
  14417. // Properties:
  14418. /* readonly */
  14419. uint checksum;
  14420. /* readonly */
  14421. bool eof;
  14422. /* readonly */
  14423. String name;
  14424. /* readonly */
  14425. uint position;
  14426. /* readonly */
  14427. uint size;
  14428. };
  14429. class VertexBuffer
  14430. {
  14431. public:
  14432. VertexBuffer();
  14433. // Methods:
  14434. VectorBuffer GetData() const;
  14435. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  14436. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14437. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  14438. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14439. bool HasSubscribedToEvent(Object, const String&);
  14440. bool HasSubscribedToEvent(const String&);
  14441. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14442. bool SetData(VectorBuffer&);
  14443. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  14444. void SetSize(uint, Array<VertexElement>, bool = false);
  14445. void SetSize(uint, uint, bool = false);
  14446. // Properties:
  14447. /* readonly */
  14448. String category;
  14449. /* readonly */
  14450. bool dynamic;
  14451. /* readonly */
  14452. uint elementMask;
  14453. /* readonly */
  14454. Array<VertexElement> elements;
  14455. /* readonly */
  14456. int refs;
  14457. bool shadowed;
  14458. /* readonly */
  14459. StringHash type;
  14460. /* readonly */
  14461. String typeName;
  14462. /* readonly */
  14463. uint vertexCount;
  14464. /* readonly */
  14465. uint vertexSize;
  14466. /* readonly */
  14467. int weakRefs;
  14468. };
  14469. class VertexElement
  14470. {
  14471. public:
  14472. ~VertexElement();
  14473. VertexElement();
  14474. VertexElement(const VertexElement&in);
  14475. VertexElement(VertexElementType, VertexElementSemantic, uint8 index = 0, bool perInstance = false);
  14476. // Properties:
  14477. uint8 index;
  14478. uint offset;
  14479. bool perInstance;
  14480. VertexElementSemantic semantic;
  14481. VertexElementType type;
  14482. };
  14483. class View3D
  14484. {
  14485. public:
  14486. View3D();
  14487. View3D(const String&in);
  14488. // Methods:
  14489. void AddChild(UIElement);
  14490. void AddTag(const String&);
  14491. void AddTags(const String&, int8 = ';');
  14492. void ApplyAttributes();
  14493. void BringToFront();
  14494. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14495. void DisableLayoutUpdate();
  14496. IntVector2 ElementToScreen(const IntVector2&);
  14497. void EnableLayoutUpdate();
  14498. uint FindChild(UIElement) const;
  14499. Variant GetAttribute(const String&) const;
  14500. ValueAnimation GetAttributeAnimation(const String&) const;
  14501. float GetAttributeAnimationSpeed(const String&) const;
  14502. float GetAttributeAnimationTime(const String&) const;
  14503. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14504. Variant GetAttributeDefault(const String&) const;
  14505. UIElement GetChild(const String&, bool = false) const;
  14506. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14507. Array<UIElement> GetChildren(bool = false) const;
  14508. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14509. UIElement GetElementEventSender() const;
  14510. bool GetInterceptNetworkUpdate(const String&) const;
  14511. uint GetNumChildren(bool) const;
  14512. bool HasSubscribedToEvent(Object, const String&);
  14513. bool HasSubscribedToEvent(const String&);
  14514. bool HasTag(const String&) const;
  14515. void InsertChild(uint, UIElement);
  14516. bool IsChildOf(UIElement) const;
  14517. bool IsInside(IntVector2, bool);
  14518. bool IsInsideCombined(IntVector2, bool);
  14519. bool Load(File);
  14520. bool Load(VectorBuffer&);
  14521. UIElement LoadChildXML(XMLFile, XMLFile);
  14522. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14523. bool LoadJSON(const JSONValue&);
  14524. bool LoadXML(File);
  14525. bool LoadXML(VectorBuffer&);
  14526. bool LoadXML(XMLFile, XMLFile);
  14527. bool LoadXML(const XMLElement&, XMLFile);
  14528. bool LoadXML(const XMLElement&);
  14529. void MarkNetworkUpdate() const;
  14530. void QueueUpdate();
  14531. void Remove();
  14532. void RemoveAllChildren();
  14533. void RemoveAllTags();
  14534. void RemoveAttributeAnimation(const String&);
  14535. void RemoveChild(UIElement, uint = 0);
  14536. void RemoveChild(uint);
  14537. void RemoveInstanceDefault();
  14538. void RemoveObjectAnimation();
  14539. bool RemoveTag(const String&);
  14540. void ResetDeepEnabled();
  14541. void ResetToDefault();
  14542. bool Save(File) const;
  14543. bool Save(VectorBuffer&) const;
  14544. bool SaveJSON(JSONValue&) const;
  14545. bool SaveXML(File, const String& = "\t");
  14546. bool SaveXML(VectorBuffer&, const String& = "\t");
  14547. bool SaveXML(XMLElement&) const;
  14548. IntVector2 ScreenToElement(const IntVector2&);
  14549. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14550. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14551. void SetAnimationTime(float);
  14552. bool SetAttribute(const String&, const Variant&);
  14553. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14554. void SetAttributeAnimationSpeed(const String&, float);
  14555. void SetAttributeAnimationTime(const String&, float);
  14556. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14557. void SetDeepEnabled(bool);
  14558. void SetEnabledRecursive(bool);
  14559. void SetFixedHeight(int);
  14560. void SetFixedSize(int, int);
  14561. void SetFixedWidth(int);
  14562. void SetFullImageRect();
  14563. void SetHoverOffset(int, int);
  14564. void SetInterceptNetworkUpdate(const String&, bool);
  14565. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14566. void SetMaxAnchor(float, float);
  14567. void SetMaxSize(int, int);
  14568. void SetMinAnchor(float, float);
  14569. void SetMinSize(int, int);
  14570. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14571. void SetPivot(float, float);
  14572. void SetPosition(int, int);
  14573. void SetSize(int, int);
  14574. bool SetStyle(const String&, XMLFile = null);
  14575. bool SetStyle(const XMLElement&);
  14576. bool SetStyleAuto(XMLFile = null);
  14577. void SetView(Scene, Camera, bool = true);
  14578. void UpdateLayout();
  14579. const Variant& GetVar(const StringHash&);
  14580. // Properties:
  14581. bool animationEnabled;
  14582. /* readonly */
  14583. Array<Variant> attributeDefaults;
  14584. /* readonly */
  14585. Array<AttributeInfo> attributeInfos;
  14586. Array<Variant> attributes;
  14587. bool autoUpdate;
  14588. BlendMode blendMode;
  14589. IntRect border;
  14590. bool bringToBack;
  14591. bool bringToFront;
  14592. /* readonly */
  14593. Node cameraNode;
  14594. /* readonly */
  14595. String category;
  14596. /* readonly */
  14597. IntVector2 childOffset;
  14598. /* readonly */
  14599. Array<UIElement> children;
  14600. IntRect clipBorder;
  14601. bool clipChildren;
  14602. /* writeonly */
  14603. Color color;
  14604. /* readonly */
  14605. bool colorGradient;
  14606. Array<Color> colors;
  14607. /* readonly */
  14608. IntRect combinedScreenRect;
  14609. XMLFile defaultStyle;
  14610. /* readonly */
  14611. Texture2D depthTexture;
  14612. /* readonly */
  14613. float derivedOpacity;
  14614. /* readonly */
  14615. uint dragButtonCombo;
  14616. /* readonly */
  14617. int dragButtonCount;
  14618. uint dragDropMode;
  14619. bool editable;
  14620. bool elementEventSender;
  14621. bool enableAnchor;
  14622. bool enabled;
  14623. /* readonly */
  14624. bool enabledSelf;
  14625. /* readonly */
  14626. bool fixedHeight;
  14627. bool fixedHeightResizing;
  14628. /* readonly */
  14629. bool fixedSize;
  14630. /* readonly */
  14631. bool fixedWidth;
  14632. bool fixedWidthResizing;
  14633. bool focus;
  14634. FocusMode focusMode;
  14635. uint format;
  14636. int height;
  14637. HorizontalAlignment horizontalAlignment;
  14638. IntVector2 hoverOffset;
  14639. /* readonly */
  14640. bool hovering;
  14641. IntRect imageBorder;
  14642. IntRect imageRect;
  14643. int indent;
  14644. int indentSpacing;
  14645. /* readonly */
  14646. int indentWidth;
  14647. bool internal;
  14648. IntRect layoutBorder;
  14649. Vector2 layoutFlexScale;
  14650. LayoutMode layoutMode;
  14651. int layoutSpacing;
  14652. Vector2 maxAnchor;
  14653. int maxHeight;
  14654. IntVector2 maxOffset;
  14655. IntVector2 maxSize;
  14656. int maxWidth;
  14657. Vector2 minAnchor;
  14658. int minHeight;
  14659. IntVector2 minOffset;
  14660. IntVector2 minSize;
  14661. int minWidth;
  14662. bool modal;
  14663. bool modalAutoDismiss;
  14664. Color modalFrameColor;
  14665. IntVector2 modalFrameSize;
  14666. Color modalShadeColor;
  14667. bool movable;
  14668. String name;
  14669. /* readonly */
  14670. uint numAllChildren;
  14671. /* readonly */
  14672. uint numAttributes;
  14673. /* readonly */
  14674. uint numChildren;
  14675. ObjectAnimation objectAnimation;
  14676. float opacity;
  14677. UIElement parent;
  14678. Vector2 pivot;
  14679. IntVector2 position;
  14680. int priority;
  14681. /* readonly */
  14682. int refs;
  14683. /* readonly */
  14684. Texture2D renderTexture;
  14685. bool resizable;
  14686. IntRect resizeBorder;
  14687. /* readonly */
  14688. UIElement root;
  14689. /* readonly */
  14690. Scene scene;
  14691. /* readonly */
  14692. IntVector2 screenPosition;
  14693. bool selected;
  14694. IntVector2 size;
  14695. bool sortChildren;
  14696. String style;
  14697. /* readonly */
  14698. Array<String> tags;
  14699. bool temporary;
  14700. Texture texture;
  14701. bool tiled;
  14702. TraversalMode traversalMode;
  14703. /* readonly */
  14704. StringHash type;
  14705. /* readonly */
  14706. String typeName;
  14707. bool useDerivedOpacity;
  14708. /* readonly */
  14709. VariantMap vars;
  14710. VerticalAlignment verticalAlignment;
  14711. /* readonly */
  14712. Viewport viewport;
  14713. bool visible;
  14714. /* readonly */
  14715. bool visibleEffective;
  14716. /* readonly */
  14717. int weakRefs;
  14718. int width;
  14719. };
  14720. class Viewport
  14721. {
  14722. public:
  14723. Viewport();
  14724. Viewport(Scene&, Camera&, RenderPath& renderPath = null);
  14725. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& renderPath = null);
  14726. // Methods:
  14727. Ray GetScreenRay(int, int) const;
  14728. bool HasSubscribedToEvent(Object, const String&);
  14729. bool HasSubscribedToEvent(const String&);
  14730. Vector3 ScreenToWorldPoint(int, int, float) const;
  14731. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14732. void SetRenderPath(XMLFile);
  14733. IntVector2 WorldToScreenPoint(const Vector3&) const;
  14734. // Properties:
  14735. Camera camera;
  14736. /* readonly */
  14737. String category;
  14738. Camera cullCamera;
  14739. bool drawDebug;
  14740. IntRect rect;
  14741. /* readonly */
  14742. int refs;
  14743. RenderPath renderPath;
  14744. Scene scene;
  14745. /* readonly */
  14746. StringHash type;
  14747. /* readonly */
  14748. String typeName;
  14749. /* readonly */
  14750. int weakRefs;
  14751. };
  14752. class WeakHandle
  14753. {
  14754. public:
  14755. ~WeakHandle();
  14756. WeakHandle();
  14757. WeakHandle(const WeakHandle&in);
  14758. WeakHandle(RefCounted@);
  14759. // Methods:
  14760. RefCounted Get() const;
  14761. // Properties:
  14762. /* readonly */
  14763. bool expired;
  14764. /* readonly */
  14765. int refs;
  14766. /* readonly */
  14767. int weakRefs;
  14768. };
  14769. class Window
  14770. {
  14771. public:
  14772. Window();
  14773. Window(const String&in);
  14774. // Methods:
  14775. void AddChild(UIElement);
  14776. void AddTag(const String&);
  14777. void AddTags(const String&, int8 = ';');
  14778. void ApplyAttributes();
  14779. void BringToFront();
  14780. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14781. void DisableLayoutUpdate();
  14782. IntVector2 ElementToScreen(const IntVector2&);
  14783. void EnableLayoutUpdate();
  14784. uint FindChild(UIElement) const;
  14785. Variant GetAttribute(const String&) const;
  14786. ValueAnimation GetAttributeAnimation(const String&) const;
  14787. float GetAttributeAnimationSpeed(const String&) const;
  14788. float GetAttributeAnimationTime(const String&) const;
  14789. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14790. Variant GetAttributeDefault(const String&) const;
  14791. UIElement GetChild(const String&, bool = false) const;
  14792. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14793. Array<UIElement> GetChildren(bool = false) const;
  14794. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14795. UIElement GetElementEventSender() const;
  14796. bool GetInterceptNetworkUpdate(const String&) const;
  14797. uint GetNumChildren(bool) const;
  14798. bool HasSubscribedToEvent(Object, const String&);
  14799. bool HasSubscribedToEvent(const String&);
  14800. bool HasTag(const String&) const;
  14801. void InsertChild(uint, UIElement);
  14802. bool IsChildOf(UIElement) const;
  14803. bool IsInside(IntVector2, bool);
  14804. bool IsInsideCombined(IntVector2, bool);
  14805. bool Load(File);
  14806. bool Load(VectorBuffer&);
  14807. UIElement LoadChildXML(XMLFile, XMLFile);
  14808. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14809. bool LoadJSON(const JSONValue&);
  14810. bool LoadXML(File);
  14811. bool LoadXML(VectorBuffer&);
  14812. bool LoadXML(XMLFile, XMLFile);
  14813. bool LoadXML(const XMLElement&, XMLFile);
  14814. bool LoadXML(const XMLElement&);
  14815. void MarkNetworkUpdate() const;
  14816. void Remove();
  14817. void RemoveAllChildren();
  14818. void RemoveAllTags();
  14819. void RemoveAttributeAnimation(const String&);
  14820. void RemoveChild(UIElement, uint = 0);
  14821. void RemoveChild(uint);
  14822. void RemoveInstanceDefault();
  14823. void RemoveObjectAnimation();
  14824. bool RemoveTag(const String&);
  14825. void ResetDeepEnabled();
  14826. void ResetToDefault();
  14827. bool Save(File) const;
  14828. bool Save(VectorBuffer&) const;
  14829. bool SaveJSON(JSONValue&) const;
  14830. bool SaveXML(File, const String& = "\t");
  14831. bool SaveXML(VectorBuffer&, const String& = "\t");
  14832. bool SaveXML(XMLElement&) const;
  14833. IntVector2 ScreenToElement(const IntVector2&);
  14834. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14835. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14836. void SetAnimationTime(float);
  14837. bool SetAttribute(const String&, const Variant&);
  14838. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14839. void SetAttributeAnimationSpeed(const String&, float);
  14840. void SetAttributeAnimationTime(const String&, float);
  14841. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14842. void SetDeepEnabled(bool);
  14843. void SetEnabledRecursive(bool);
  14844. void SetFixedHeight(int);
  14845. void SetFixedSize(int, int);
  14846. void SetFixedWidth(int);
  14847. void SetFullImageRect();
  14848. void SetHoverOffset(int, int);
  14849. void SetInterceptNetworkUpdate(const String&, bool);
  14850. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14851. void SetMaxAnchor(float, float);
  14852. void SetMaxSize(int, int);
  14853. void SetMinAnchor(float, float);
  14854. void SetMinSize(int, int);
  14855. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14856. void SetPivot(float, float);
  14857. void SetPosition(int, int);
  14858. void SetSize(int, int);
  14859. bool SetStyle(const String&, XMLFile = null);
  14860. bool SetStyle(const XMLElement&);
  14861. bool SetStyleAuto(XMLFile = null);
  14862. void UpdateLayout();
  14863. const Variant& GetVar(const StringHash&);
  14864. // Properties:
  14865. bool animationEnabled;
  14866. /* readonly */
  14867. Array<Variant> attributeDefaults;
  14868. /* readonly */
  14869. Array<AttributeInfo> attributeInfos;
  14870. Array<Variant> attributes;
  14871. BlendMode blendMode;
  14872. IntRect border;
  14873. bool bringToBack;
  14874. bool bringToFront;
  14875. /* readonly */
  14876. String category;
  14877. /* readonly */
  14878. IntVector2 childOffset;
  14879. /* readonly */
  14880. Array<UIElement> children;
  14881. IntRect clipBorder;
  14882. bool clipChildren;
  14883. /* writeonly */
  14884. Color color;
  14885. /* readonly */
  14886. bool colorGradient;
  14887. Array<Color> colors;
  14888. /* readonly */
  14889. IntRect combinedScreenRect;
  14890. XMLFile defaultStyle;
  14891. /* readonly */
  14892. float derivedOpacity;
  14893. /* readonly */
  14894. uint dragButtonCombo;
  14895. /* readonly */
  14896. int dragButtonCount;
  14897. uint dragDropMode;
  14898. bool editable;
  14899. bool elementEventSender;
  14900. bool enableAnchor;
  14901. bool enabled;
  14902. /* readonly */
  14903. bool enabledSelf;
  14904. /* readonly */
  14905. bool fixedHeight;
  14906. bool fixedHeightResizing;
  14907. /* readonly */
  14908. bool fixedSize;
  14909. /* readonly */
  14910. bool fixedWidth;
  14911. bool fixedWidthResizing;
  14912. bool focus;
  14913. FocusMode focusMode;
  14914. int height;
  14915. HorizontalAlignment horizontalAlignment;
  14916. IntVector2 hoverOffset;
  14917. /* readonly */
  14918. bool hovering;
  14919. IntRect imageBorder;
  14920. IntRect imageRect;
  14921. int indent;
  14922. int indentSpacing;
  14923. /* readonly */
  14924. int indentWidth;
  14925. bool internal;
  14926. IntRect layoutBorder;
  14927. Vector2 layoutFlexScale;
  14928. LayoutMode layoutMode;
  14929. int layoutSpacing;
  14930. Vector2 maxAnchor;
  14931. int maxHeight;
  14932. IntVector2 maxOffset;
  14933. IntVector2 maxSize;
  14934. int maxWidth;
  14935. Vector2 minAnchor;
  14936. int minHeight;
  14937. IntVector2 minOffset;
  14938. IntVector2 minSize;
  14939. int minWidth;
  14940. bool modal;
  14941. bool modalAutoDismiss;
  14942. Color modalFrameColor;
  14943. IntVector2 modalFrameSize;
  14944. Color modalShadeColor;
  14945. bool movable;
  14946. String name;
  14947. /* readonly */
  14948. uint numAllChildren;
  14949. /* readonly */
  14950. uint numAttributes;
  14951. /* readonly */
  14952. uint numChildren;
  14953. ObjectAnimation objectAnimation;
  14954. float opacity;
  14955. UIElement parent;
  14956. Vector2 pivot;
  14957. IntVector2 position;
  14958. int priority;
  14959. /* readonly */
  14960. int refs;
  14961. bool resizable;
  14962. IntRect resizeBorder;
  14963. /* readonly */
  14964. UIElement root;
  14965. /* readonly */
  14966. IntVector2 screenPosition;
  14967. bool selected;
  14968. IntVector2 size;
  14969. bool sortChildren;
  14970. String style;
  14971. /* readonly */
  14972. Array<String> tags;
  14973. bool temporary;
  14974. Texture texture;
  14975. bool tiled;
  14976. TraversalMode traversalMode;
  14977. /* readonly */
  14978. StringHash type;
  14979. /* readonly */
  14980. String typeName;
  14981. bool useDerivedOpacity;
  14982. /* readonly */
  14983. VariantMap vars;
  14984. VerticalAlignment verticalAlignment;
  14985. bool visible;
  14986. /* readonly */
  14987. bool visibleEffective;
  14988. /* readonly */
  14989. int weakRefs;
  14990. int width;
  14991. };
  14992. class XMLElement
  14993. {
  14994. public:
  14995. ~XMLElement();
  14996. XMLElement();
  14997. XMLElement(const XMLElement&in);
  14998. // Methods:
  14999. bool AppendChild(XMLElement, bool);
  15000. XMLElement CreateChild(const String&);
  15001. String GetAttribute(const String& = String ( )) const;
  15002. String GetAttributeLower(const String&) const;
  15003. Array<String> GetAttributeNames() const;
  15004. String GetAttributeUpper(const String&) const;
  15005. bool GetBool(const String&) const;
  15006. BoundingBox GetBoundingBox() const;
  15007. XMLElement GetChild(const String& = String ( )) const;
  15008. Color GetColor(const String&) const;
  15009. double GetDouble(const String&) const;
  15010. float GetFloat(const String&) const;
  15011. int GetInt(const String&) const;
  15012. int64 GetInt64(const String&) const;
  15013. IntRect GetIntRect(const String&) const;
  15014. IntVector2 GetIntVector2(const String&) const;
  15015. IntVector3 GetIntVector3(const String&) const;
  15016. Matrix3 GetMatrix3(const String&) const;
  15017. Matrix3x4 GetMatrix3x4(const String&) const;
  15018. Matrix4 GetMatrix4(const String&) const;
  15019. XMLElement GetNext(const String& = String ( )) const;
  15020. XMLElement GetOrCreateChild(const String&);
  15021. Quaternion GetQuaternion(const String&) const;
  15022. ResourceRef GetResourceRef() const;
  15023. ResourceRefList GetResourceRefList() const;
  15024. uint GetUInt(const String&) const;
  15025. uint64 GetUInt64(const String&) const;
  15026. String GetValue() const;
  15027. Variant GetVariant() const;
  15028. VariantMap GetVariantMap() const;
  15029. Array<Variant> GetVariantVector() const;
  15030. Vector2 GetVector2(const String&) const;
  15031. Vector3 GetVector3(const String&) const;
  15032. Vector4 GetVector4(const String&) const;
  15033. Variant GetVectorVariant(const String&) const;
  15034. bool HasAttribute(const String&) const;
  15035. bool HasChild(const String&) const;
  15036. bool Remove();
  15037. bool RemoveAttribute(const String& = String ( ));
  15038. bool RemoveChild(const String&);
  15039. bool RemoveChild(const XMLElement&);
  15040. bool RemoveChildren(const String& = String ( ));
  15041. XPathResultSet Select(const String&);
  15042. XPathResultSet SelectPrepared(const XPathQuery&);
  15043. XMLElement SelectSingle(const String&);
  15044. XMLElement SelectSinglePrepared(const XPathQuery&);
  15045. bool SetAttribute(const String&);
  15046. bool SetAttribute(const String&, const String&);
  15047. bool SetBool(const String&, bool);
  15048. bool SetBoundingBox(const BoundingBox&);
  15049. bool SetColor(const String&, const Color&);
  15050. bool SetDouble(const String&, double);
  15051. bool SetFloat(const String&, float);
  15052. bool SetInt(const String&, int);
  15053. bool SetInt64(const String&, int64);
  15054. bool SetIntRect(const String&, const IntRect&);
  15055. bool SetIntVector2(const String&, const IntVector2&);
  15056. bool SetIntVector3(const String&, const IntVector3&);
  15057. bool SetMatrix3(const String&, const Matrix3&);
  15058. bool SetMatrix3x4(const String&, const Matrix3x4&);
  15059. bool SetMatrix4(const String&, const Matrix4&);
  15060. bool SetQuaternion(const String&, const Quaternion&);
  15061. bool SetResourceRef(const String&, const ResourceRef&);
  15062. bool SetResourceRefList(const String&, const ResourceRefList&);
  15063. bool SetUInt(const String&, uint);
  15064. bool SetUInt64(const String&, uint64);
  15065. bool SetValue(const String&);
  15066. bool SetVariant(const Variant&);
  15067. bool SetVariantMap(const VariantMap&);
  15068. bool SetVariantVector(Array<Variant>);
  15069. bool SetVector2(const String&, const Vector2&);
  15070. bool SetVector3(const String&, const Vector3&);
  15071. bool SetVector4(const String&, const Vector4&);
  15072. bool SetVectorVariant(const String&, const Variant&);
  15073. // Properties:
  15074. /* readonly */
  15075. XMLFile file;
  15076. /* readonly */
  15077. bool isNull;
  15078. /* readonly */
  15079. String name;
  15080. /* readonly */
  15081. XMLElement nextResult;
  15082. /* readonly */
  15083. bool notNull;
  15084. /* readonly */
  15085. uint numAttributes;
  15086. /* readonly */
  15087. XMLElement parent;
  15088. String value;
  15089. };
  15090. class XMLFile
  15091. {
  15092. public:
  15093. XMLFile();
  15094. XMLFile(const String&in);
  15095. // Methods:
  15096. XMLElement CreateRoot(const String&);
  15097. bool FromString(const String&);
  15098. XMLElement GetOrCreateRoot(const String&);
  15099. XMLElement GetRoot(const String& = String ( ));
  15100. bool HasSubscribedToEvent(Object, const String&);
  15101. bool HasSubscribedToEvent(const String&);
  15102. bool Load(File);
  15103. bool Load(VectorBuffer&);
  15104. bool Load(const String&);
  15105. void Patch(XMLFile);
  15106. void Patch(const XMLElement&);
  15107. bool Save(File) const;
  15108. bool Save(File, const String&) const;
  15109. bool Save(VectorBuffer&) const;
  15110. bool Save(const String&) const;
  15111. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15112. String ToString(const String& = String ( "\t" )) const;
  15113. // Properties:
  15114. /* readonly */
  15115. String category;
  15116. /* readonly */
  15117. uint memoryUse;
  15118. String name;
  15119. /* readonly */
  15120. int refs;
  15121. /* readonly */
  15122. XMLElement root;
  15123. /* readonly */
  15124. StringHash type;
  15125. /* readonly */
  15126. String typeName;
  15127. /* readonly */
  15128. uint useTimer;
  15129. /* readonly */
  15130. int weakRefs;
  15131. };
  15132. class XPathQuery
  15133. {
  15134. public:
  15135. ~XPathQuery();
  15136. XPathQuery();
  15137. XPathQuery(const String&in, const String&inout arg1 = String ( ));
  15138. // Methods:
  15139. void Bind();
  15140. void Clear();
  15141. XPathResultSet Evaluate(const XMLElement&);
  15142. bool EvaluateToBool(const XMLElement&);
  15143. float EvaluateToFloat(const XMLElement&);
  15144. String EvaluateToString(const XMLElement&);
  15145. bool SetQuery(const String&, const String& = String ( ), bool = true);
  15146. bool SetVariable(const String&, bool);
  15147. bool SetVariable(const String&, const String&);
  15148. bool SetVariable(const String&, const XPathResultSet&);
  15149. bool SetVariable(const String&, float);
  15150. // Properties:
  15151. String query;
  15152. };
  15153. class XPathResultSet
  15154. {
  15155. public:
  15156. ~XPathResultSet();
  15157. XPathResultSet();
  15158. XPathResultSet(const XPathResultSet&in);
  15159. // Properties:
  15160. /* readonly */
  15161. bool empty;
  15162. /* readonly */
  15163. XMLElement firstResult;
  15164. /* readonly */
  15165. uint size;
  15166. };
  15167. class Zone
  15168. {
  15169. public:
  15170. // Methods:
  15171. void ApplyAttributes();
  15172. void DrawDebugGeometry(DebugRenderer, bool);
  15173. Variant GetAttribute(const String&) const;
  15174. ValueAnimation GetAttributeAnimation(const String&) const;
  15175. float GetAttributeAnimationSpeed(const String&) const;
  15176. float GetAttributeAnimationTime(const String&) const;
  15177. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15178. Variant GetAttributeDefault(const String&) const;
  15179. bool GetInterceptNetworkUpdate(const String&) const;
  15180. bool HasSubscribedToEvent(Object, const String&);
  15181. bool HasSubscribedToEvent(const String&);
  15182. bool IsInView(Camera) const;
  15183. bool Load(File);
  15184. bool Load(VectorBuffer&);
  15185. bool LoadJSON(const JSONValue&);
  15186. bool LoadXML(const XMLElement&);
  15187. void MarkNetworkUpdate() const;
  15188. void Remove();
  15189. void RemoveAttributeAnimation(const String&);
  15190. void RemoveInstanceDefault();
  15191. void RemoveObjectAnimation();
  15192. void ResetToDefault();
  15193. bool Save(File) const;
  15194. bool Save(VectorBuffer&) const;
  15195. bool SaveJSON(JSONValue&) const;
  15196. bool SaveXML(XMLElement&) const;
  15197. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15198. void SetAnimationTime(float);
  15199. bool SetAttribute(const String&, const Variant&);
  15200. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15201. void SetAttributeAnimationSpeed(const String&, float);
  15202. void SetAttributeAnimationTime(const String&, float);
  15203. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15204. void SetInterceptNetworkUpdate(const String&, bool);
  15205. // Properties:
  15206. Color ambientColor;
  15207. /* readonly */
  15208. Color ambientEndColor;
  15209. bool ambientGradient;
  15210. /* readonly */
  15211. Color ambientStartColor;
  15212. bool animationEnabled;
  15213. /* readonly */
  15214. Array<Variant> attributeDefaults;
  15215. /* readonly */
  15216. Array<AttributeInfo> attributeInfos;
  15217. Array<Variant> attributes;
  15218. BoundingBox boundingBox;
  15219. bool castShadows;
  15220. /* readonly */
  15221. String category;
  15222. float drawDistance;
  15223. bool enabled;
  15224. /* readonly */
  15225. bool enabledEffective;
  15226. Color fogColor;
  15227. float fogEnd;
  15228. float fogHeight;
  15229. float fogHeightScale;
  15230. float fogStart;
  15231. bool heightFog;
  15232. /* readonly */
  15233. uint id;
  15234. /* readonly */
  15235. bool inView;
  15236. /* readonly */
  15237. Matrix3x4 inverseWorldTransform;
  15238. uint lightMask;
  15239. float lodBias;
  15240. uint maxLights;
  15241. /* readonly */
  15242. Node node;
  15243. /* readonly */
  15244. uint numAttributes;
  15245. ObjectAnimation objectAnimation;
  15246. bool occludee;
  15247. bool occluder;
  15248. bool override;
  15249. int priority;
  15250. /* readonly */
  15251. int refs;
  15252. /* readonly */
  15253. bool replicated;
  15254. float shadowDistance;
  15255. uint shadowMask;
  15256. bool temporary;
  15257. /* readonly */
  15258. StringHash type;
  15259. /* readonly */
  15260. String typeName;
  15261. uint viewMask;
  15262. /* readonly */
  15263. int weakRefs;
  15264. /* readonly */
  15265. BoundingBox worldBoundingBox;
  15266. uint zoneMask;
  15267. Texture zoneTexture;
  15268. };
  15269. // Enumerations
  15270. enum AnimationBlendMode
  15271. {
  15272. ABM_LERP,
  15273. ABM_ADDITIVE,
  15274. };
  15275. enum AutoRemoveMode
  15276. {
  15277. REMOVE_DISABLED,
  15278. REMOVE_COMPONENT,
  15279. REMOVE_NODE,
  15280. };
  15281. enum BlendMode
  15282. {
  15283. BLEND_REPLACE,
  15284. BLEND_ADD,
  15285. BLEND_MULTIPLY,
  15286. BLEND_ALPHA,
  15287. BLEND_ADDALPHA,
  15288. BLEND_PREMULALPHA,
  15289. BLEND_INVDESTALPHA,
  15290. BLEND_SUBTRACT,
  15291. BLEND_SUBTRACTALPHA,
  15292. };
  15293. enum BodyType2D
  15294. {
  15295. BT_STATIC,
  15296. BT_KINEMATIC,
  15297. BT_DYNAMIC,
  15298. };
  15299. enum CollisionEventMode
  15300. {
  15301. COLLISION_NEVER,
  15302. COLLISION_ACTIVE,
  15303. COLLISION_ALWAYS,
  15304. };
  15305. enum CompareMode
  15306. {
  15307. CMP_ALWAYS,
  15308. CMP_EQUAL,
  15309. CMP_NOTEQUAL,
  15310. CMP_LESS,
  15311. CMP_LESSEQUAL,
  15312. CMP_GREATER,
  15313. CMP_GREATEREQUAL,
  15314. };
  15315. enum CompressedFormat
  15316. {
  15317. CF_NONE,
  15318. CF_RGBA,
  15319. CF_DXT1,
  15320. CF_DXT3,
  15321. CF_DXT5,
  15322. CF_ETC1,
  15323. CF_PVRTC_RGB_2BPP,
  15324. CF_PVRTC_RGBA_2BPP,
  15325. CF_PVRTC_RGB_4BPP,
  15326. CF_PVRTC_RGBA_4BPP,
  15327. };
  15328. enum ConstraintType
  15329. {
  15330. CONSTRAINT_POINT,
  15331. CONSTRAINT_HINGE,
  15332. CONSTRAINT_SLIDER,
  15333. CONSTRAINT_CONETWIST,
  15334. };
  15335. enum Corner
  15336. {
  15337. C_TOPLEFT,
  15338. C_TOPRIGHT,
  15339. C_BOTTOMLEFT,
  15340. C_BOTTOMRIGHT,
  15341. };
  15342. enum CreateMode
  15343. {
  15344. REPLICATED,
  15345. LOCAL,
  15346. };
  15347. enum CrowdAgentRequestedTarget
  15348. {
  15349. CA_REQUESTEDTARGET_NONE,
  15350. CA_REQUESTEDTARGET_POSITION,
  15351. CA_REQUESTEDTARGET_VELOCITY,
  15352. };
  15353. enum CrowdAgentState
  15354. {
  15355. CA_STATE_INVALID,
  15356. CA_STATE_WALKING,
  15357. CA_STATE_OFFMESH,
  15358. };
  15359. enum CrowdAgentTargetState
  15360. {
  15361. CA_TARGET_NONE,
  15362. CA_TARGET_FAILED,
  15363. CA_TARGET_VALID,
  15364. CA_TARGET_REQUESTING,
  15365. CA_TARGET_WAITINGFORQUEUE,
  15366. CA_TARGET_WAITINGFORPATH,
  15367. CA_TARGET_VELOCITY,
  15368. };
  15369. enum CubeMapFace
  15370. {
  15371. FACE_POSITIVE_X,
  15372. FACE_NEGATIVE_X,
  15373. FACE_POSITIVE_Y,
  15374. FACE_NEGATIVE_Y,
  15375. FACE_POSITIVE_Z,
  15376. FACE_NEGATIVE_Z,
  15377. };
  15378. enum CullMode
  15379. {
  15380. CULL_NONE,
  15381. CULL_CCW,
  15382. CULL_CW,
  15383. };
  15384. enum CursorShape
  15385. {
  15386. CS_NORMAL,
  15387. CS_IBEAM,
  15388. CS_CROSS,
  15389. CS_RESIZEVERTICAL,
  15390. CS_RESIZEDIAGONAL_TOPRIGHT,
  15391. CS_RESIZEHORIZONTAL,
  15392. CS_RESIZEDIAGONAL_TOPLEFT,
  15393. CS_RESIZE_ALL,
  15394. CS_ACCEPTDROP,
  15395. CS_REJECTDROP,
  15396. CS_BUSY,
  15397. CS_BUSY_ARROW,
  15398. };
  15399. enum DBAPI
  15400. {
  15401. DBAPI_SQLITE,
  15402. DBAPI_ODBC,
  15403. };
  15404. enum DumpMode
  15405. {
  15406. DOXYGEN,
  15407. C_HEADER,
  15408. };
  15409. enum EmitterType
  15410. {
  15411. EMITTER_SPHERE,
  15412. EMITTER_BOX,
  15413. };
  15414. enum EmitterType2D
  15415. {
  15416. EMITTER_TYPE_GRAVITY,
  15417. EMITTER_TYPE_RADIAL,
  15418. };
  15419. enum FaceCameraMode
  15420. {
  15421. FC_NONE,
  15422. FC_ROTATE_XYZ,
  15423. FC_ROTATE_Y,
  15424. FC_LOOKAT_XYZ,
  15425. FC_LOOKAT_Y,
  15426. FC_LOOKAT_MIXED,
  15427. FC_DIRECTION,
  15428. };
  15429. enum FileMode
  15430. {
  15431. FILE_READ,
  15432. FILE_WRITE,
  15433. FILE_READWRITE,
  15434. };
  15435. enum FillMode
  15436. {
  15437. FILL_SOLID,
  15438. FILL_WIREFRAME,
  15439. FILL_POINT,
  15440. };
  15441. enum FocusMode
  15442. {
  15443. FM_NOTFOCUSABLE,
  15444. FM_RESETFOCUS,
  15445. FM_FOCUSABLE,
  15446. FM_FOCUSABLE_DEFOCUSABLE,
  15447. };
  15448. enum FontHintLevel
  15449. {
  15450. FONT_HINT_LEVEL_NONE,
  15451. FONT_HINT_LEVEL_LIGHT,
  15452. FONT_HINT_LEVEL_NORMAL,
  15453. };
  15454. enum FontType
  15455. {
  15456. FONT_NONE,
  15457. FONT_FREETYPE,
  15458. FONT_BITMAP,
  15459. };
  15460. enum HighlightMode
  15461. {
  15462. HM_NEVER,
  15463. HM_FOCUS,
  15464. HM_ALWAYS,
  15465. };
  15466. enum HorizontalAlignment
  15467. {
  15468. HA_LEFT,
  15469. HA_CENTER,
  15470. HA_RIGHT,
  15471. HA_CUSTOM,
  15472. };
  15473. enum HttpRequestState
  15474. {
  15475. HTTP_INITIALIZING,
  15476. HTTP_ERROR,
  15477. HTTP_OPEN,
  15478. HTTP_CLOSED,
  15479. };
  15480. enum IKAlgorithm
  15481. {
  15482. ONE_BONE,
  15483. TWO_BONE,
  15484. FABRIK,
  15485. };
  15486. enum InterpMethod
  15487. {
  15488. IM_NONE,
  15489. IM_LINEAR,
  15490. IM_SPLINE,
  15491. };
  15492. enum InterpolationMode
  15493. {
  15494. BEZIER_CURVE,
  15495. CATMULL_ROM_CURVE,
  15496. LINEAR_CURVE,
  15497. CATMULL_ROM_FULL_CURVE,
  15498. };
  15499. enum Intersection
  15500. {
  15501. OUTSIDE,
  15502. INTERSECTS,
  15503. INSIDE,
  15504. };
  15505. enum JSONNumberType
  15506. {
  15507. JSONNT_NAN,
  15508. JSONNT_INT,
  15509. JSONNT_UINT,
  15510. JSONNT_FLOAT_DOUBLE,
  15511. };
  15512. enum JSONValueType
  15513. {
  15514. JSON_NULL,
  15515. JSON_BOOL,
  15516. JSON_NUMBER,
  15517. JSON_STRING,
  15518. JSON_ARRAY,
  15519. JSON_OBJECT,
  15520. };
  15521. enum LayoutMode
  15522. {
  15523. LM_FREE,
  15524. LM_HORIZONTAL,
  15525. LM_VERTICAL,
  15526. };
  15527. enum LightType
  15528. {
  15529. LIGHT_DIRECTIONAL,
  15530. LIGHT_SPOT,
  15531. LIGHT_POINT,
  15532. };
  15533. enum LoadMode
  15534. {
  15535. LOAD_RESOURCES_ONLY,
  15536. LOAD_SCENE,
  15537. LOAD_SCENE_AND_RESOURCES,
  15538. };
  15539. enum LoopMode2D
  15540. {
  15541. LM_DEFAULT,
  15542. LM_FORCE_LOOPED,
  15543. LM_FORCE_CLAMPED,
  15544. };
  15545. enum MouseMode
  15546. {
  15547. MM_ABSOLUTE,
  15548. MM_RELATIVE,
  15549. MM_WRAP,
  15550. MM_FREE,
  15551. };
  15552. enum NavigationPushiness
  15553. {
  15554. NAVIGATIONPUSHINESS_LOW,
  15555. NAVIGATIONPUSHINESS_MEDIUM,
  15556. NAVIGATIONPUSHINESS_HIGH,
  15557. NAVIGATIONPUSHINESS_NONE,
  15558. };
  15559. enum NavigationQuality
  15560. {
  15561. NAVIGATIONQUALITY_LOW,
  15562. NAVIGATIONQUALITY_MEDIUM,
  15563. NAVIGATIONQUALITY_HIGH,
  15564. };
  15565. enum NavmeshPartitionType
  15566. {
  15567. NAVMESH_PARTITION_WATERSHED,
  15568. NAVMESH_PARTITION_MONOTONE,
  15569. };
  15570. enum Orientation
  15571. {
  15572. O_HORIZONTAL,
  15573. O_VERTICAL,
  15574. };
  15575. enum Orientation2D
  15576. {
  15577. O_ORTHOGONAL,
  15578. O_ISOMETRIC,
  15579. O_STAGGERED,
  15580. O_HEXAGONAL,
  15581. };
  15582. enum PassLightingMode
  15583. {
  15584. LIGHTING_UNLIT,
  15585. LIGHTING_PERVERTEX,
  15586. LIGHTING_PERPIXEL,
  15587. };
  15588. enum PrimitiveType
  15589. {
  15590. TRIANGLE_LIST,
  15591. LINE_LIST,
  15592. POINT_LIST,
  15593. TRIANGLE_STRIP,
  15594. LINE_STRIP,
  15595. TRIANGLE_FAN,
  15596. };
  15597. enum RayQueryLevel
  15598. {
  15599. RAY_AABB,
  15600. RAY_OBB,
  15601. RAY_TRIANGLE,
  15602. RAY_TRIANGLE_UV,
  15603. };
  15604. enum RenderCommandSortMode
  15605. {
  15606. SORT_FRONTTOBACK,
  15607. SORT_BACKTOFRONT,
  15608. };
  15609. enum RenderCommandType
  15610. {
  15611. CMD_NONE,
  15612. CMD_CLEAR,
  15613. CMD_SCENEPASS,
  15614. CMD_QUAD,
  15615. CMD_FORWARDLIGHTS,
  15616. CMD_LIGHTVOLUMES,
  15617. CMD_RENDERUI,
  15618. CMD_SENDEVENT,
  15619. };
  15620. enum RenderSurfaceUpdateMode
  15621. {
  15622. SURFACE_MANUALUPDATE,
  15623. SURFACE_UPDATEVISIBLE,
  15624. SURFACE_UPDATEALWAYS,
  15625. };
  15626. enum RenderTargetSizeMode
  15627. {
  15628. SIZE_ABSOLUTE,
  15629. SIZE_VIEWPORTDIVISOR,
  15630. SIZE_VIEWPORTMULTIPLIER,
  15631. };
  15632. enum ShadowQuality
  15633. {
  15634. SHADOWQUALITY_SIMPLE_16BIT,
  15635. SHADOWQUALITY_SIMPLE_24BIT,
  15636. SHADOWQUALITY_PCF_16BIT,
  15637. SHADOWQUALITY_PCF_24BIT,
  15638. SHADOWQUALITY_VSM,
  15639. SHADOWQUALITY_BLUR_VSM,
  15640. };
  15641. enum ShapeType
  15642. {
  15643. SHAPE_BOX,
  15644. SHAPE_SPHERE,
  15645. SHAPE_STATICPLANE,
  15646. SHAPE_CYLINDER,
  15647. SHAPE_CAPSULE,
  15648. SHAPE_CONE,
  15649. SHAPE_TRIANGLEMESH,
  15650. SHAPE_CONVEXHULL,
  15651. SHAPE_TERRAIN,
  15652. };
  15653. enum TextEffect
  15654. {
  15655. TE_NONE,
  15656. TE_SHADOW,
  15657. TE_STROKE,
  15658. };
  15659. enum TextureAddressMode
  15660. {
  15661. ADDRESS_WRAP,
  15662. ADDRESS_MIRROR,
  15663. ADDRESS_CLAMP,
  15664. ADDRESS_BORDER,
  15665. };
  15666. enum TextureCoordinate
  15667. {
  15668. COORD_U,
  15669. COORD_V,
  15670. COORD_W,
  15671. };
  15672. enum TextureFilterMode
  15673. {
  15674. FILTER_NEAREST,
  15675. FILTER_BILINEAR,
  15676. FILTER_TRILINEAR,
  15677. FILTER_ANISOTROPIC,
  15678. FILTER_NEAREST_ANISOTROPIC,
  15679. FILTER_DEFAULT,
  15680. };
  15681. enum TextureUnit
  15682. {
  15683. TU_DIFFUSE,
  15684. TU_ALBEDOBUFFER,
  15685. TU_NORMAL,
  15686. TU_NORMALBUFFER,
  15687. TU_SPECULAR,
  15688. TU_EMISSIVE,
  15689. TU_ENVIRONMENT,
  15690. TU_LIGHTRAMP,
  15691. TU_LIGHTSHAPE,
  15692. TU_SHADOWMAP,
  15693. TU_CUSTOM1,
  15694. TU_CUSTOM2,
  15695. TU_VOLUMEMAP,
  15696. TU_FACESELECT,
  15697. TU_INDIRECTION,
  15698. TU_DEPTHBUFFER,
  15699. TU_LIGHTBUFFER,
  15700. TU_ZONE,
  15701. MAX_MATERIAL_TEXTURE_UNITS,
  15702. MAX_TEXTURE_UNITS,
  15703. };
  15704. enum TextureUsage
  15705. {
  15706. TEXTURE_STATIC,
  15707. TEXTURE_DYNAMIC,
  15708. TEXTURE_RENDERTARGET,
  15709. TEXTURE_DEPTHSTENCIL,
  15710. };
  15711. enum TileMapLayerType2D
  15712. {
  15713. LT_TILE_LAYER,
  15714. LT_OBJECT_GROUP,
  15715. LT_IMAGE_LAYER,
  15716. LT_INVALID,
  15717. };
  15718. enum TileObjectType2D
  15719. {
  15720. OT_RECTANGLE,
  15721. OT_ELLIPSE,
  15722. OT_POLYGON,
  15723. OT_POLYLINE,
  15724. OT_TILE,
  15725. OT_INVALID,
  15726. };
  15727. enum TrailType
  15728. {
  15729. TT_FACE_CAMERA,
  15730. TT_BONE,
  15731. };
  15732. enum TransformSpace
  15733. {
  15734. TS_LOCAL,
  15735. TS_PARENT,
  15736. TS_WORLD,
  15737. };
  15738. enum TraversalMode
  15739. {
  15740. TM_BREADTH_FIRST,
  15741. TM_DEPTH_FIRST,
  15742. };
  15743. enum VariantType
  15744. {
  15745. VAR_NONE,
  15746. VAR_INT,
  15747. VAR_BOOL,
  15748. VAR_FLOAT,
  15749. VAR_VECTOR2,
  15750. VAR_VECTOR3,
  15751. VAR_VECTOR4,
  15752. VAR_QUATERNION,
  15753. VAR_COLOR,
  15754. VAR_STRING,
  15755. VAR_BUFFER,
  15756. VAR_VOIDPTR,
  15757. VAR_RESOURCEREF,
  15758. VAR_RESOURCEREFLIST,
  15759. VAR_VARIANTVECTOR,
  15760. VAR_VARIANTMAP,
  15761. VAR_INTRECT,
  15762. VAR_INTVECTOR2,
  15763. VAR_INTVECTOR3,
  15764. VAR_PTR,
  15765. VAR_MATRIX3,
  15766. VAR_MATRIX3X4,
  15767. VAR_MATRIX4,
  15768. VAR_DOUBLE,
  15769. VAR_STRINGVECTOR,
  15770. VAR_RECT,
  15771. };
  15772. enum VertexElementSemantic
  15773. {
  15774. SEM_POSITION,
  15775. SEM_NORMAL,
  15776. SEM_BINORMAL,
  15777. SEM_TANGENT,
  15778. SEM_TEXCOORD,
  15779. SEM_COLOR,
  15780. SEM_BLENDWEIGHTS,
  15781. SEM_BLENDINDICES,
  15782. SEM_OBJECTINDEX,
  15783. MAX_VERTEX_ELEMENT_SEMANTICS,
  15784. };
  15785. enum VertexElementType
  15786. {
  15787. TYPE_INT,
  15788. TYPE_FLOAT,
  15789. TYPE_VECTOR2,
  15790. TYPE_VECTOR3,
  15791. TYPE_VECTOR4,
  15792. TYPE_UBYTE4,
  15793. TYPE_UBYTE4_NORM,
  15794. MAX_VERTEX_ELEMENT_TYPES,
  15795. };
  15796. enum VerticalAlignment
  15797. {
  15798. VA_TOP,
  15799. VA_CENTER,
  15800. VA_BOTTOM,
  15801. VA_CUSTOM,
  15802. };
  15803. enum WrapMode
  15804. {
  15805. WM_LOOP,
  15806. WM_ONCE,
  15807. WM_CLAMP,
  15808. };
  15809. // Global functions
  15810. float Abs(float);
  15811. float Acos(float);
  15812. String AddTrailingSlash(const String&);
  15813. float Asin(float);
  15814. float Atan(float);
  15815. float Atan2(float, float);
  15816. float Ceil(float);
  15817. int CeilToInt(float);
  15818. float Clamp(float, float, float);
  15819. int Clamp(int, int, int);
  15820. void ClearDelayedExecute(const String& = String ( ));
  15821. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  15822. float Cos(float);
  15823. uint CountSetBits(uint);
  15824. Object CreateObject(const String&);
  15825. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  15826. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  15827. bool Equals(float, float);
  15828. void ErrorDialog(const String&, const String&);
  15829. float Floor(float);
  15830. int FloorToInt(float);
  15831. float Fract(float);
  15832. uint GetAlphaFormat();
  15833. Array<String> GetArguments();
  15834. String GetConsoleInput();
  15835. uint GetDepthStencilFormat();
  15836. Object GetEventSender();
  15837. String GetExtension(const String&, bool = true);
  15838. String GetFileName(const String&);
  15839. String GetFileNameAndExtension(const String&, bool = false);
  15840. String GetFileSizeString(uint64);
  15841. uint GetFloat16Format();
  15842. uint GetFloat32Format();
  15843. uint GetFormat(const String&);
  15844. Variant GetGlobalVar(const String&);
  15845. String GetHostName();
  15846. String GetInternalPath(const String&);
  15847. uint GetLinearDepthFormat();
  15848. String GetLoginName();
  15849. uint GetLuminanceAlphaFormat();
  15850. uint GetLuminanceFormat();
  15851. uint GetMaxBones();
  15852. String GetMiniDumpDir();
  15853. uint GetNumLogicalCPUs();
  15854. uint GetNumPhysicalCPUs();
  15855. String GetOSVersion();
  15856. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  15857. Array<String> GetObjectCategories();
  15858. Array<String> GetObjectsByCategory(const String&);
  15859. String GetParentPath(const String&);
  15860. String GetPath(const String&);
  15861. String GetPlatform();
  15862. uint GetRG16Format();
  15863. uint GetRGBA16Format();
  15864. uint GetRGBAFloat16Format();
  15865. uint GetRGBAFloat32Format();
  15866. uint GetRGBAFormat();
  15867. uint GetRGBFormat();
  15868. uint GetRGFloat16Format();
  15869. uint GetRGFloat32Format();
  15870. uint GetRandomSeed();
  15871. uint GetReadableDepthFormat();
  15872. String GetTextureUnitName(TextureUnit);
  15873. uint64 GetTotalMemory();
  15874. VariantType GetVariantTypeFromName(const String&);
  15875. String GetVariantTypeName(VariantType);
  15876. bool HasSubscribedToEvent(Object, const String&);
  15877. bool HasSubscribedToEvent(const String&);
  15878. float InverseLerp(float, float, float);
  15879. bool IsAbsolutePath(const String&);
  15880. bool IsAlpha(uint);
  15881. bool IsDigit(uint);
  15882. bool IsNaN(float);
  15883. bool IsPowerOfTwo(uint);
  15884. bool IsReplicatedID(uint);
  15885. String Join(Array<String>&, const String&);
  15886. float Lerp(float, float, float);
  15887. float Ln(float);
  15888. uint LogBaseTwo(uint);
  15889. void MarkNetworkUpdate();
  15890. float Max(float, float);
  15891. int Max(int, int);
  15892. float Min(float, float);
  15893. int Min(int, int);
  15894. float Mod(float, float);
  15895. uint NextPowerOfTwo(uint);
  15896. void OpenConsoleWindow();
  15897. float Pow(float, float);
  15898. void Print(bool, bool = false);
  15899. void Print(const String&, bool = false);
  15900. void Print(const Variant&, bool = false);
  15901. void Print(float, bool = false);
  15902. void Print(int, bool = false);
  15903. void Print(int64, bool = false);
  15904. void Print(uint, bool = false);
  15905. void Print(uint64, bool = false);
  15906. void PrintCallStack(bool = false);
  15907. float Random();
  15908. float Random(float);
  15909. float Random(float, float);
  15910. int RandomInt();
  15911. int RandomInt(int);
  15912. int RandomInt(int, int);
  15913. float RandomNormal(float, float);
  15914. void RegisterEventName(const String&);
  15915. void Remove();
  15916. String RemoveTrailingSlash(const String&);
  15917. String ReplaceExtension(const String&, const String&);
  15918. float Round(float);
  15919. int RoundToInt(float);
  15920. uint SDBMHash(uint, uint8);
  15921. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15922. void SetGlobalVar(const String&, Variant&);
  15923. void SetMiniDumpDir(const String&);
  15924. void SetRandomSeed(uint);
  15925. float Sign(float);
  15926. float Sin(float);
  15927. float SmoothStep(float, float, float);
  15928. float Sqrt(float);
  15929. float StableRandom(const Vector2&);
  15930. float StableRandom(const Vector3&);
  15931. float StableRandom(float);
  15932. const String& GetTypeName(StringHash);
  15933. void SubscribeToEvent(Object, const String&, const String&);
  15934. void SubscribeToEvent(const String&, const String&);
  15935. float Tan(float);
  15936. uint ToLower(uint);
  15937. String ToStringHex(int);
  15938. uint ToUpper(uint);
  15939. void UnsubscribeFromAllEvents();
  15940. void UnsubscribeFromAllEventsExcept(Array<String>);
  15941. void UnsubscribeFromEvent(Object, const String&);
  15942. void UnsubscribeFromEvent(const String&);
  15943. void UnsubscribeFromEvents(Object);
  15944. Vector2 VectorCeil(const Vector2&);
  15945. Vector3 VectorCeil(const Vector3&);
  15946. Vector4 VectorCeil(const Vector4&);
  15947. IntVector2 VectorCeilToInt(const Vector2&);
  15948. IntVector3 VectorCeilToInt(const Vector3&);
  15949. Vector2 VectorFloor(const Vector2&);
  15950. Vector3 VectorFloor(const Vector3&);
  15951. Vector4 VectorFloor(const Vector4&);
  15952. IntVector2 VectorFloorToInt(const Vector2&);
  15953. IntVector3 VectorFloorToInt(const Vector3&);
  15954. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  15955. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  15956. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  15957. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  15958. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  15959. Vector2 VectorMax(const Vector2&, const Vector2&);
  15960. Vector3 VectorMax(const Vector3&, const Vector3&);
  15961. Vector4 VectorMax(const Vector4&, const Vector4&);
  15962. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  15963. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  15964. Vector2 VectorMin(const Vector2&, const Vector2&);
  15965. Vector3 VectorMin(const Vector3&, const Vector3&);
  15966. Vector4 VectorMin(const Vector4&, const Vector4&);
  15967. Vector2 VectorRound(const Vector2&);
  15968. Vector3 VectorRound(const Vector3&);
  15969. Vector4 VectorRound(const Vector4&);
  15970. IntVector2 VectorRoundToInt(const Vector2&);
  15971. IntVector3 VectorRoundToInt(const Vector3&);
  15972. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  15973. // Global properties
  15974. DBAPI DBAPI;
  15975. Audio audio;
  15976. ResourceCache cache;
  15977. Console console;
  15978. Database database;
  15979. DebugHud debugHud;
  15980. DebugRenderer debugRenderer;
  15981. Engine engine;
  15982. FileSystem fileSystem;
  15983. VariantMap globalVars;
  15984. Graphics graphics;
  15985. Input input;
  15986. Localization localization;
  15987. Log log;
  15988. Network network;
  15989. Node node;
  15990. Octree octree;
  15991. PhysicsWorld physicsWorld;
  15992. PhysicsWorld2D physicsWorld2D;
  15993. Renderer renderer;
  15994. ResourceCache resourceCache;
  15995. Scene scene;
  15996. Script script;
  15997. ScriptFile scriptFile;
  15998. ScriptInstance self;
  15999. Time time;
  16000. UI ui;
  16001. // Global constants
  16002. uint AM_COMPONENTID;
  16003. uint AM_DEFAULT;
  16004. uint AM_FILE;
  16005. uint AM_FILEREADONLY;
  16006. uint AM_LATESTDATA;
  16007. uint AM_NET;
  16008. uint AM_NODEID;
  16009. uint AM_NODEIDVECTOR;
  16010. uint AM_NOEDIT;
  16011. Color BLACK;
  16012. Color BLUE;
  16013. uint8 CHANNEL_POSITION;
  16014. uint8 CHANNEL_ROTATION;
  16015. uint8 CHANNEL_SCALE;
  16016. uint CLEAR_COLOR;
  16017. uint CLEAR_DEPTH;
  16018. uint CLEAR_STENCIL;
  16019. int CONTROLLER_AXIS_LEFTX;
  16020. int CONTROLLER_AXIS_LEFTY;
  16021. int CONTROLLER_AXIS_RIGHTX;
  16022. int CONTROLLER_AXIS_RIGHTY;
  16023. int CONTROLLER_AXIS_TRIGGERLEFT;
  16024. int CONTROLLER_AXIS_TRIGGERRIGHT;
  16025. int CONTROLLER_BUTTON_A;
  16026. int CONTROLLER_BUTTON_B;
  16027. int CONTROLLER_BUTTON_BACK;
  16028. int CONTROLLER_BUTTON_DPAD_DOWN;
  16029. int CONTROLLER_BUTTON_DPAD_LEFT;
  16030. int CONTROLLER_BUTTON_DPAD_RIGHT;
  16031. int CONTROLLER_BUTTON_DPAD_UP;
  16032. int CONTROLLER_BUTTON_GUIDE;
  16033. int CONTROLLER_BUTTON_LEFTSHOULDER;
  16034. int CONTROLLER_BUTTON_LEFTSTICK;
  16035. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  16036. int CONTROLLER_BUTTON_RIGHTSTICK;
  16037. int CONTROLLER_BUTTON_START;
  16038. int CONTROLLER_BUTTON_X;
  16039. int CONTROLLER_BUTTON_Y;
  16040. Color CYAN;
  16041. uint DD_DISABLED;
  16042. uint DD_SOURCE;
  16043. uint DD_SOURCE_AND_TARGET;
  16044. uint DD_TARGET;
  16045. uint DEBUGHUD_SHOW_ALL;
  16046. uint DEBUGHUD_SHOW_EVENTPROFILER;
  16047. uint DEBUGHUD_SHOW_MEMORY;
  16048. uint DEBUGHUD_SHOW_MODE;
  16049. uint DEBUGHUD_SHOW_NONE;
  16050. uint DEBUGHUD_SHOW_PROFILER;
  16051. uint DEBUGHUD_SHOW_STATS;
  16052. uint DEFAULT_LIGHTMASK;
  16053. uint DEFAULT_VIEWMASK;
  16054. uint DRAWABLE_ANY;
  16055. uint DRAWABLE_GEOMETRY;
  16056. uint DRAWABLE_GEOMETRY2D;
  16057. uint DRAWABLE_LIGHT;
  16058. uint DRAWABLE_ZONE;
  16059. uint FIRST_LOCAL_ID;
  16060. uint FIRST_REPLICATED_ID;
  16061. Color GRAY;
  16062. Color GREEN;
  16063. int HAT_CENTER;
  16064. int HAT_DOWN;
  16065. int HAT_LEFT;
  16066. int HAT_RIGHT;
  16067. int HAT_UP;
  16068. int KEY_0;
  16069. int KEY_1;
  16070. int KEY_2;
  16071. int KEY_3;
  16072. int KEY_4;
  16073. int KEY_5;
  16074. int KEY_6;
  16075. int KEY_7;
  16076. int KEY_8;
  16077. int KEY_9;
  16078. int KEY_A;
  16079. int KEY_AC_BACK;
  16080. int KEY_AC_BOOKMARKS;
  16081. int KEY_AC_FORWARD;
  16082. int KEY_AC_HOME;
  16083. int KEY_AC_REFRESH;
  16084. int KEY_AC_SEARCH;
  16085. int KEY_AC_STOP;
  16086. int KEY_AGAIN;
  16087. int KEY_ALT;
  16088. int KEY_ALTERASE;
  16089. int KEY_AMPERSAND;
  16090. int KEY_APPLICATION;
  16091. int KEY_ASTERISK;
  16092. int KEY_AT;
  16093. int KEY_AUDIOMUTE;
  16094. int KEY_AUDIONEXT;
  16095. int KEY_AUDIOPLAY;
  16096. int KEY_AUDIOPREV;
  16097. int KEY_AUDIOSTOP;
  16098. int KEY_B;
  16099. int KEY_BACKQUOTE;
  16100. int KEY_BACKSLASH;
  16101. int KEY_BACKSPACE;
  16102. int KEY_BRIGHTNESSDOWN;
  16103. int KEY_BRIGHTNESSUP;
  16104. int KEY_C;
  16105. int KEY_CALCULATOR;
  16106. int KEY_CANCEL;
  16107. int KEY_CAPSLOCK;
  16108. int KEY_CARET;
  16109. int KEY_CLEAR;
  16110. int KEY_CLEARAGAIN;
  16111. int KEY_COLON;
  16112. int KEY_COMMA;
  16113. int KEY_COMPUTER;
  16114. int KEY_COPY;
  16115. int KEY_CRSEL;
  16116. int KEY_CTRL;
  16117. int KEY_CURRENCYSUBUNIT;
  16118. int KEY_CURRENCYUNIT;
  16119. int KEY_CUT;
  16120. int KEY_D;
  16121. int KEY_DECIMALSEPARATOR;
  16122. int KEY_DELETE;
  16123. int KEY_DISPLAYSWITCH;
  16124. int KEY_DOLLAR;
  16125. int KEY_DOWN;
  16126. int KEY_E;
  16127. int KEY_EJECT;
  16128. int KEY_END;
  16129. int KEY_EQUALS;
  16130. int KEY_ESCAPE;
  16131. int KEY_EXCLAIM;
  16132. int KEY_EXSEL;
  16133. int KEY_F;
  16134. int KEY_F1;
  16135. int KEY_F10;
  16136. int KEY_F11;
  16137. int KEY_F12;
  16138. int KEY_F13;
  16139. int KEY_F14;
  16140. int KEY_F15;
  16141. int KEY_F16;
  16142. int KEY_F17;
  16143. int KEY_F18;
  16144. int KEY_F19;
  16145. int KEY_F2;
  16146. int KEY_F20;
  16147. int KEY_F21;
  16148. int KEY_F22;
  16149. int KEY_F23;
  16150. int KEY_F24;
  16151. int KEY_F3;
  16152. int KEY_F4;
  16153. int KEY_F5;
  16154. int KEY_F6;
  16155. int KEY_F7;
  16156. int KEY_F8;
  16157. int KEY_F9;
  16158. int KEY_FIND;
  16159. int KEY_G;
  16160. int KEY_GREATER;
  16161. int KEY_GUI;
  16162. int KEY_H;
  16163. int KEY_HASH;
  16164. int KEY_HELP;
  16165. int KEY_HOME;
  16166. int KEY_I;
  16167. int KEY_INSERT;
  16168. int KEY_J;
  16169. int KEY_K;
  16170. int KEY_KBDILLUMDOWN;
  16171. int KEY_KBDILLUMTOGGLE;
  16172. int KEY_KBDILLUMUP;
  16173. int KEY_KP_0;
  16174. int KEY_KP_00;
  16175. int KEY_KP_000;
  16176. int KEY_KP_1;
  16177. int KEY_KP_2;
  16178. int KEY_KP_3;
  16179. int KEY_KP_4;
  16180. int KEY_KP_5;
  16181. int KEY_KP_6;
  16182. int KEY_KP_7;
  16183. int KEY_KP_8;
  16184. int KEY_KP_9;
  16185. int KEY_KP_A;
  16186. int KEY_KP_AMPERSAND;
  16187. int KEY_KP_AT;
  16188. int KEY_KP_B;
  16189. int KEY_KP_BACKSPACE;
  16190. int KEY_KP_BINARY;
  16191. int KEY_KP_C;
  16192. int KEY_KP_CLEAR;
  16193. int KEY_KP_CLEARENTRY;
  16194. int KEY_KP_COLON;
  16195. int KEY_KP_COMMA;
  16196. int KEY_KP_D;
  16197. int KEY_KP_DBLAMPERSAND;
  16198. int KEY_KP_DBLVERTICALBAR;
  16199. int KEY_KP_DECIMAL;
  16200. int KEY_KP_DIVIDE;
  16201. int KEY_KP_E;
  16202. int KEY_KP_ENTER;
  16203. int KEY_KP_EQUALS;
  16204. int KEY_KP_EQUALSAS400;
  16205. int KEY_KP_EXCLAM;
  16206. int KEY_KP_F;
  16207. int KEY_KP_GREATER;
  16208. int KEY_KP_HASH;
  16209. int KEY_KP_HEXADECIMAL;
  16210. int KEY_KP_LEFTBRACE;
  16211. int KEY_KP_LEFTPAREN;
  16212. int KEY_KP_LESS;
  16213. int KEY_KP_MEMADD;
  16214. int KEY_KP_MEMCLEAR;
  16215. int KEY_KP_MEMDIVIDE;
  16216. int KEY_KP_MEMMULTIPLY;
  16217. int KEY_KP_MEMRECALL;
  16218. int KEY_KP_MEMSTORE;
  16219. int KEY_KP_MEMSUBTRACT;
  16220. int KEY_KP_MINUS;
  16221. int KEY_KP_MULTIPLY;
  16222. int KEY_KP_OCTAL;
  16223. int KEY_KP_PERCENT;
  16224. int KEY_KP_PERIOD;
  16225. int KEY_KP_PLUS;
  16226. int KEY_KP_PLUSMINUS;
  16227. int KEY_KP_POWER;
  16228. int KEY_KP_RIGHTBRACE;
  16229. int KEY_KP_RIGHTPAREN;
  16230. int KEY_KP_SPACE;
  16231. int KEY_KP_TAB;
  16232. int KEY_KP_VERTICALBAR;
  16233. int KEY_KP_XOR;
  16234. int KEY_L;
  16235. int KEY_LALT;
  16236. int KEY_LCTRL;
  16237. int KEY_LEFT;
  16238. int KEY_LEFTBRACKET;
  16239. int KEY_LEFTPAREN;
  16240. int KEY_LESS;
  16241. int KEY_LGUI;
  16242. int KEY_LSHIFT;
  16243. int KEY_M;
  16244. int KEY_MAIL;
  16245. int KEY_MEDIASELECT;
  16246. int KEY_MENU;
  16247. int KEY_MINUS;
  16248. int KEY_MODE;
  16249. int KEY_MUTE;
  16250. int KEY_N;
  16251. int KEY_NUMLOCKCLEAR;
  16252. int KEY_O;
  16253. int KEY_OPER;
  16254. int KEY_OUT;
  16255. int KEY_P;
  16256. int KEY_PAGEDOWN;
  16257. int KEY_PAGEUP;
  16258. int KEY_PASTE;
  16259. int KEY_PAUSE;
  16260. int KEY_PERCENT;
  16261. int KEY_PERIOD;
  16262. int KEY_PLUS;
  16263. int KEY_POWER;
  16264. int KEY_PRINTSCREEN;
  16265. int KEY_PRIOR;
  16266. int KEY_Q;
  16267. int KEY_QUESTION;
  16268. int KEY_QUOTE;
  16269. int KEY_QUOTEDBL;
  16270. int KEY_R;
  16271. int KEY_RALT;
  16272. int KEY_RCTRL;
  16273. int KEY_RETURN;
  16274. int KEY_RETURN2;
  16275. int KEY_RGUI;
  16276. int KEY_RIGHT;
  16277. int KEY_RIGHTBRACKET;
  16278. int KEY_RIGHTPAREN;
  16279. int KEY_RSHIFT;
  16280. int KEY_S;
  16281. int KEY_SCROLLLOCK;
  16282. int KEY_SELECT;
  16283. int KEY_SEMICOLON;
  16284. int KEY_SEPARATOR;
  16285. int KEY_SHIFT;
  16286. int KEY_SLASH;
  16287. int KEY_SLEEP;
  16288. int KEY_SPACE;
  16289. int KEY_STOP;
  16290. int KEY_SYSREQ;
  16291. int KEY_T;
  16292. int KEY_TAB;
  16293. int KEY_THOUSANDSSEPARATOR;
  16294. int KEY_U;
  16295. int KEY_UNDERSCORE;
  16296. int KEY_UNDO;
  16297. int KEY_UNKNOWN;
  16298. int KEY_UP;
  16299. int KEY_V;
  16300. int KEY_VOLUMEDOWN;
  16301. int KEY_VOLUMEUP;
  16302. int KEY_W;
  16303. int KEY_WWW;
  16304. int KEY_X;
  16305. int KEY_Y;
  16306. int KEY_Z;
  16307. uint LAST_LOCAL_ID;
  16308. uint LAST_REPLICATED_ID;
  16309. int LOG_DEBUG;
  16310. int LOG_ERROR;
  16311. int LOG_INFO;
  16312. int LOG_NONE;
  16313. int LOG_TRACE;
  16314. int LOG_WARNING;
  16315. Color MAGENTA;
  16316. uint MASK_BLENDINDICES;
  16317. uint MASK_BLENDWEIGHTS;
  16318. uint MASK_COLOR;
  16319. uint MASK_CUBETEXCOORD1;
  16320. uint MASK_CUBETEXCOORD2;
  16321. uint MASK_INSTANCEMATRIX1;
  16322. uint MASK_INSTANCEMATRIX2;
  16323. uint MASK_INSTANCEMATRIX3;
  16324. uint MASK_NONE;
  16325. uint MASK_NORMAL;
  16326. uint MASK_OBJECTINDEX;
  16327. uint MASK_POSITION;
  16328. uint MASK_TANGENT;
  16329. uint MASK_TEXCOORD1;
  16330. uint MASK_TEXCOORD2;
  16331. int MOUSEB_LEFT;
  16332. int MOUSEB_MIDDLE;
  16333. int MOUSEB_RIGHT;
  16334. float M_DEGTORAD;
  16335. float M_DEGTORAD_2;
  16336. float M_EPSILON;
  16337. float M_HALF_PI;
  16338. float M_INFINITY;
  16339. float M_LARGE_EPSILON;
  16340. float M_LARGE_VALUE;
  16341. int M_MAX_INT;
  16342. uint M_MAX_UNSIGNED;
  16343. int M_MIN_INT;
  16344. uint M_MIN_UNSIGNED;
  16345. float M_PI;
  16346. float M_RADTODEG;
  16347. uint NPOS;
  16348. float PIXEL_SIZE;
  16349. int QUALITY_HIGH;
  16350. int QUALITY_LOW;
  16351. int QUALITY_MAX;
  16352. int QUALITY_MEDIUM;
  16353. int QUAL_ALT;
  16354. int QUAL_ANY;
  16355. int QUAL_CTRL;
  16356. int QUAL_SHIFT;
  16357. Color RED;
  16358. int SCANCODE_0;
  16359. int SCANCODE_1;
  16360. int SCANCODE_2;
  16361. int SCANCODE_3;
  16362. int SCANCODE_4;
  16363. int SCANCODE_5;
  16364. int SCANCODE_6;
  16365. int SCANCODE_7;
  16366. int SCANCODE_8;
  16367. int SCANCODE_9;
  16368. int SCANCODE_A;
  16369. int SCANCODE_AC_BACK;
  16370. int SCANCODE_AC_BOOKMARKS;
  16371. int SCANCODE_AC_FORWARD;
  16372. int SCANCODE_AC_HOME;
  16373. int SCANCODE_AC_REFRESH;
  16374. int SCANCODE_AC_SEARCH;
  16375. int SCANCODE_AC_STOP;
  16376. int SCANCODE_AGAIN;
  16377. int SCANCODE_ALT;
  16378. int SCANCODE_ALTERASE;
  16379. int SCANCODE_APOSTROPHE;
  16380. int SCANCODE_APP1;
  16381. int SCANCODE_APP2;
  16382. int SCANCODE_APPLICATION;
  16383. int SCANCODE_AUDIOMUTE;
  16384. int SCANCODE_AUDIONEXT;
  16385. int SCANCODE_AUDIOPLAY;
  16386. int SCANCODE_AUDIOPREV;
  16387. int SCANCODE_AUDIOSTOP;
  16388. int SCANCODE_B;
  16389. int SCANCODE_BACKSLASH;
  16390. int SCANCODE_BACKSPACE;
  16391. int SCANCODE_BRIGHTNESSDOWN;
  16392. int SCANCODE_BRIGHTNESSUP;
  16393. int SCANCODE_C;
  16394. int SCANCODE_CALCULATOR;
  16395. int SCANCODE_CANCEL;
  16396. int SCANCODE_CAPSLOCK;
  16397. int SCANCODE_CLEAR;
  16398. int SCANCODE_CLEARAGAIN;
  16399. int SCANCODE_COMMA;
  16400. int SCANCODE_COMPUTER;
  16401. int SCANCODE_COPY;
  16402. int SCANCODE_CRSEL;
  16403. int SCANCODE_CTRL;
  16404. int SCANCODE_CURRENCYSUBUNIT;
  16405. int SCANCODE_CURRENCYUNIT;
  16406. int SCANCODE_CUT;
  16407. int SCANCODE_D;
  16408. int SCANCODE_DECIMALSEPARATOR;
  16409. int SCANCODE_DELETE;
  16410. int SCANCODE_DISPLAYSWITCH;
  16411. int SCANCODE_DOWN;
  16412. int SCANCODE_E;
  16413. int SCANCODE_EJECT;
  16414. int SCANCODE_END;
  16415. int SCANCODE_EQUALS;
  16416. int SCANCODE_ESCAPE;
  16417. int SCANCODE_EXECUTE;
  16418. int SCANCODE_EXSEL;
  16419. int SCANCODE_F;
  16420. int SCANCODE_F1;
  16421. int SCANCODE_F10;
  16422. int SCANCODE_F11;
  16423. int SCANCODE_F12;
  16424. int SCANCODE_F13;
  16425. int SCANCODE_F14;
  16426. int SCANCODE_F15;
  16427. int SCANCODE_F16;
  16428. int SCANCODE_F17;
  16429. int SCANCODE_F18;
  16430. int SCANCODE_F19;
  16431. int SCANCODE_F2;
  16432. int SCANCODE_F20;
  16433. int SCANCODE_F21;
  16434. int SCANCODE_F22;
  16435. int SCANCODE_F23;
  16436. int SCANCODE_F24;
  16437. int SCANCODE_F3;
  16438. int SCANCODE_F4;
  16439. int SCANCODE_F5;
  16440. int SCANCODE_F6;
  16441. int SCANCODE_F7;
  16442. int SCANCODE_F8;
  16443. int SCANCODE_F9;
  16444. int SCANCODE_FIND;
  16445. int SCANCODE_G;
  16446. int SCANCODE_GRAVE;
  16447. int SCANCODE_GUI;
  16448. int SCANCODE_H;
  16449. int SCANCODE_HELP;
  16450. int SCANCODE_HOME;
  16451. int SCANCODE_I;
  16452. int SCANCODE_INSERT;
  16453. int SCANCODE_INTERNATIONAL1;
  16454. int SCANCODE_INTERNATIONAL2;
  16455. int SCANCODE_INTERNATIONAL3;
  16456. int SCANCODE_INTERNATIONAL4;
  16457. int SCANCODE_INTERNATIONAL5;
  16458. int SCANCODE_INTERNATIONAL6;
  16459. int SCANCODE_INTERNATIONAL7;
  16460. int SCANCODE_INTERNATIONAL8;
  16461. int SCANCODE_INTERNATIONAL9;
  16462. int SCANCODE_J;
  16463. int SCANCODE_K;
  16464. int SCANCODE_KBDILLUMDOWN;
  16465. int SCANCODE_KBDILLUMTOGGLE;
  16466. int SCANCODE_KBDILLUMUP;
  16467. int SCANCODE_KP_0;
  16468. int SCANCODE_KP_00;
  16469. int SCANCODE_KP_000;
  16470. int SCANCODE_KP_1;
  16471. int SCANCODE_KP_2;
  16472. int SCANCODE_KP_3;
  16473. int SCANCODE_KP_4;
  16474. int SCANCODE_KP_5;
  16475. int SCANCODE_KP_6;
  16476. int SCANCODE_KP_7;
  16477. int SCANCODE_KP_8;
  16478. int SCANCODE_KP_9;
  16479. int SCANCODE_KP_A;
  16480. int SCANCODE_KP_AMPERSAND;
  16481. int SCANCODE_KP_AT;
  16482. int SCANCODE_KP_B;
  16483. int SCANCODE_KP_BACKSPACE;
  16484. int SCANCODE_KP_BINARY;
  16485. int SCANCODE_KP_C;
  16486. int SCANCODE_KP_CLEAR;
  16487. int SCANCODE_KP_CLEARENTRY;
  16488. int SCANCODE_KP_COLON;
  16489. int SCANCODE_KP_COMMA;
  16490. int SCANCODE_KP_D;
  16491. int SCANCODE_KP_DBLAMPERSAND;
  16492. int SCANCODE_KP_DBLVERTICALBAR;
  16493. int SCANCODE_KP_DECIMAL;
  16494. int SCANCODE_KP_DIVIDE;
  16495. int SCANCODE_KP_E;
  16496. int SCANCODE_KP_ENTER;
  16497. int SCANCODE_KP_EQUALS;
  16498. int SCANCODE_KP_EQUALSAS400;
  16499. int SCANCODE_KP_EXCLAM;
  16500. int SCANCODE_KP_F;
  16501. int SCANCODE_KP_GREATER;
  16502. int SCANCODE_KP_HASH;
  16503. int SCANCODE_KP_HEXADECIMAL;
  16504. int SCANCODE_KP_LEFTBRACE;
  16505. int SCANCODE_KP_LEFTPAREN;
  16506. int SCANCODE_KP_LESS;
  16507. int SCANCODE_KP_MEMADD;
  16508. int SCANCODE_KP_MEMCLEAR;
  16509. int SCANCODE_KP_MEMDIVIDE;
  16510. int SCANCODE_KP_MEMMULTIPLY;
  16511. int SCANCODE_KP_MEMRECALL;
  16512. int SCANCODE_KP_MEMSTORE;
  16513. int SCANCODE_KP_MEMSUBTRACT;
  16514. int SCANCODE_KP_MINUS;
  16515. int SCANCODE_KP_MULTIPLY;
  16516. int SCANCODE_KP_OCTAL;
  16517. int SCANCODE_KP_PERCENT;
  16518. int SCANCODE_KP_PERIOD;
  16519. int SCANCODE_KP_PLUS;
  16520. int SCANCODE_KP_PLUSMINUS;
  16521. int SCANCODE_KP_POWER;
  16522. int SCANCODE_KP_RIGHTBRACE;
  16523. int SCANCODE_KP_RIGHTPAREN;
  16524. int SCANCODE_KP_SPACE;
  16525. int SCANCODE_KP_TAB;
  16526. int SCANCODE_KP_VERTICALBAR;
  16527. int SCANCODE_KP_XOR;
  16528. int SCANCODE_L;
  16529. int SCANCODE_LALT;
  16530. int SCANCODE_LANG1;
  16531. int SCANCODE_LANG2;
  16532. int SCANCODE_LANG3;
  16533. int SCANCODE_LANG4;
  16534. int SCANCODE_LANG5;
  16535. int SCANCODE_LANG6;
  16536. int SCANCODE_LANG7;
  16537. int SCANCODE_LANG8;
  16538. int SCANCODE_LANG9;
  16539. int SCANCODE_LCTRL;
  16540. int SCANCODE_LEFT;
  16541. int SCANCODE_LEFTBRACKET;
  16542. int SCANCODE_LGUI;
  16543. int SCANCODE_LSHIFT;
  16544. int SCANCODE_M;
  16545. int SCANCODE_MAIL;
  16546. int SCANCODE_MEDIASELECT;
  16547. int SCANCODE_MENU;
  16548. int SCANCODE_MINUS;
  16549. int SCANCODE_MODE;
  16550. int SCANCODE_MUTE;
  16551. int SCANCODE_N;
  16552. int SCANCODE_NONUSBACKSLASH;
  16553. int SCANCODE_NONUSHASH;
  16554. int SCANCODE_NUMLOCKCLEAR;
  16555. int SCANCODE_O;
  16556. int SCANCODE_OPER;
  16557. int SCANCODE_OUT;
  16558. int SCANCODE_P;
  16559. int SCANCODE_PAGEDOWN;
  16560. int SCANCODE_PAGEUP;
  16561. int SCANCODE_PASTE;
  16562. int SCANCODE_PAUSE;
  16563. int SCANCODE_PERIOD;
  16564. int SCANCODE_POWER;
  16565. int SCANCODE_PRINTSCREEN;
  16566. int SCANCODE_PRIOR;
  16567. int SCANCODE_Q;
  16568. int SCANCODE_R;
  16569. int SCANCODE_RALT;
  16570. int SCANCODE_RCTRL;
  16571. int SCANCODE_RETURN;
  16572. int SCANCODE_RETURN2;
  16573. int SCANCODE_RGUI;
  16574. int SCANCODE_RIGHT;
  16575. int SCANCODE_RIGHTBRACKET;
  16576. int SCANCODE_RSHIFT;
  16577. int SCANCODE_S;
  16578. int SCANCODE_SCROLLLOCK;
  16579. int SCANCODE_SELECT;
  16580. int SCANCODE_SEMICOLON;
  16581. int SCANCODE_SEPARATOR;
  16582. int SCANCODE_SHIFT;
  16583. int SCANCODE_SLASH;
  16584. int SCANCODE_SLEEP;
  16585. int SCANCODE_SPACE;
  16586. int SCANCODE_STOP;
  16587. int SCANCODE_SYSREQ;
  16588. int SCANCODE_T;
  16589. int SCANCODE_TAB;
  16590. int SCANCODE_THOUSANDSSEPARATOR;
  16591. int SCANCODE_U;
  16592. int SCANCODE_UNDO;
  16593. int SCANCODE_UNKNOWN;
  16594. int SCANCODE_UP;
  16595. int SCANCODE_V;
  16596. int SCANCODE_VOLUMEDOWN;
  16597. int SCANCODE_VOLUMEUP;
  16598. int SCANCODE_W;
  16599. int SCANCODE_WWW;
  16600. int SCANCODE_X;
  16601. int SCANCODE_Y;
  16602. int SCANCODE_Z;
  16603. uint SCAN_DIRS;
  16604. uint SCAN_FILES;
  16605. uint SCAN_HIDDEN;
  16606. String SOUND_AMBIENT;
  16607. String SOUND_EFFECT;
  16608. String SOUND_MASTER;
  16609. String SOUND_MUSIC;
  16610. String SOUND_VOICE;
  16611. Color TRANSPARENT;
  16612. uint VO_DISABLE_OCCLUSION;
  16613. uint VO_DISABLE_SHADOWS;
  16614. uint VO_LOW_MATERIAL_QUALITY;
  16615. uint VO_NONE;
  16616. Color WHITE;
  16617. Color YELLOW;