AngelScriptAPI.h 412 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701
  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, bool = false);
  34. bool Load(VectorBuffer&, bool = false);
  35. bool LoadJSON(const JSONValue&, bool = false);
  36. bool LoadXML(const XMLElement&, bool = false);
  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, bool = false);
  98. bool Load(VectorBuffer&, bool = false);
  99. bool LoadJSON(const JSONValue&, bool = false);
  100. bool LoadXML(const XMLElement&, bool = false);
  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. /* writeonly */
  153. Material material;
  154. Array<Material> materials;
  155. uint maxLights;
  156. Model model;
  157. /* readonly */
  158. Array<String> morphNames;
  159. Array<float> morphWeights;
  160. /* readonly */
  161. Node node;
  162. /* readonly */
  163. uint numAnimationStates;
  164. /* readonly */
  165. uint numAttributes;
  166. /* readonly */
  167. uint numGeometries;
  168. /* readonly */
  169. uint numMorphs;
  170. ObjectAnimation objectAnimation;
  171. bool occludee;
  172. bool occluder;
  173. /* readonly */
  174. int refs;
  175. float shadowDistance;
  176. uint shadowMask;
  177. /* readonly */
  178. Skeleton skeleton;
  179. bool temporary;
  180. /* readonly */
  181. StringHash type;
  182. /* readonly */
  183. String typeName;
  184. bool updateInvisible;
  185. uint viewMask;
  186. /* readonly */
  187. int weakRefs;
  188. /* readonly */
  189. BoundingBox worldBoundingBox;
  190. /* readonly */
  191. Zone zone;
  192. uint zoneMask;
  193. };
  194. class AnimatedSprite2D
  195. {
  196. public:
  197. // Methods:
  198. void ApplyAttributes();
  199. void DrawDebugGeometry(DebugRenderer, bool);
  200. Variant GetAttribute(const String&) const;
  201. ValueAnimation GetAttributeAnimation(const String&) const;
  202. float GetAttributeAnimationSpeed(const String&) const;
  203. float GetAttributeAnimationTime(const String&) const;
  204. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  205. Variant GetAttributeDefault(const String&) const;
  206. bool GetInterceptNetworkUpdate(const String&) const;
  207. bool HasSubscribedToEvent(Object, const String&);
  208. bool HasSubscribedToEvent(const String&);
  209. bool IsInView(Camera) const;
  210. bool Load(File, bool = false);
  211. bool Load(VectorBuffer&, bool = false);
  212. bool LoadJSON(const JSONValue&, bool = false);
  213. bool LoadXML(const XMLElement&, bool = false);
  214. void MarkNetworkUpdate() const;
  215. void Remove();
  216. void RemoveAttributeAnimation(const String&);
  217. void RemoveInstanceDefault();
  218. void RemoveObjectAnimation();
  219. void ResetToDefault();
  220. bool Save(File) const;
  221. bool Save(VectorBuffer&) const;
  222. bool SaveJSON(JSONValue&) const;
  223. bool SaveXML(XMLElement&) const;
  224. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  225. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  226. void SetAnimationTime(float);
  227. bool SetAttribute(const String&, const Variant&);
  228. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  229. void SetAttributeAnimationSpeed(const String&, float);
  230. void SetAttributeAnimationTime(const String&, float);
  231. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  232. void SetFlip(bool, bool);
  233. void SetInterceptNetworkUpdate(const String&, bool);
  234. // Properties:
  235. float alpha;
  236. String animation;
  237. bool animationEnabled;
  238. AnimationSet2D animationSet;
  239. /* readonly */
  240. Array<Variant> attributeDefaults;
  241. /* readonly */
  242. Array<AttributeInfo> attributeInfos;
  243. Array<Variant> attributes;
  244. BlendMode blendMode;
  245. /* readonly */
  246. BoundingBox boundingBox;
  247. bool castShadows;
  248. /* readonly */
  249. String category;
  250. Color color;
  251. Material customMaterial;
  252. float drawDistance;
  253. Rect drawRect;
  254. bool enabled;
  255. /* readonly */
  256. bool enabledEffective;
  257. String entity;
  258. bool flipX;
  259. bool flipY;
  260. Vector2 hotSpot;
  261. /* readonly */
  262. uint id;
  263. /* readonly */
  264. bool inView;
  265. int layer;
  266. uint lightMask;
  267. float lodBias;
  268. LoopMode2D loopMode;
  269. uint maxLights;
  270. /* readonly */
  271. Node node;
  272. /* readonly */
  273. uint numAttributes;
  274. ObjectAnimation objectAnimation;
  275. bool occludee;
  276. bool occluder;
  277. int orderInLayer;
  278. /* readonly */
  279. int refs;
  280. float shadowDistance;
  281. uint shadowMask;
  282. float speed;
  283. Sprite2D sprite;
  284. bool temporary;
  285. Rect textureRect;
  286. /* readonly */
  287. StringHash type;
  288. /* readonly */
  289. String typeName;
  290. bool useDrawRect;
  291. bool useHotSpot;
  292. bool useTextureRect;
  293. uint viewMask;
  294. /* readonly */
  295. int weakRefs;
  296. /* readonly */
  297. BoundingBox worldBoundingBox;
  298. uint zoneMask;
  299. };
  300. class Animation
  301. {
  302. public:
  303. Animation();
  304. Animation(const String&in);
  305. // Methods:
  306. void AddMetadata(const String&, const Variant&);
  307. void AddTrigger(const AnimationTriggerPoint&);
  308. void AddTrigger(float, bool, const Variant&);
  309. Animation Clone(const String& = String ( )) const;
  310. AnimationTrack CreateTrack(const String&);
  311. AnimationTrack GetTrack(uint);
  312. bool HasSubscribedToEvent(Object, const String&);
  313. bool HasSubscribedToEvent(const String&);
  314. bool Load(File);
  315. bool Load(VectorBuffer&);
  316. bool Load(const String&);
  317. void RemoveAllMetadata();
  318. bool RemoveAllTracks();
  319. void RemoveAllTriggers();
  320. void RemoveMetadata(const String&);
  321. bool RemoveTrack(const String&);
  322. void RemoveTrigger(uint);
  323. bool Save(File) const;
  324. bool Save(VectorBuffer&) const;
  325. bool Save(const String&) const;
  326. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  327. // Properties:
  328. String animationName;
  329. /* readonly */
  330. String category;
  331. /* readonly */
  332. bool hasMetadata;
  333. float length;
  334. /* readonly */
  335. uint memoryUse;
  336. Array<Variant> metadata;
  337. String name;
  338. /* readonly */
  339. uint numTracks;
  340. uint numTriggers;
  341. /* readonly */
  342. int refs;
  343. /* readonly */
  344. Array<AnimationTrack> tracks;
  345. Array<AnimationTriggerPoint> triggers;
  346. /* readonly */
  347. StringHash type;
  348. /* readonly */
  349. String typeName;
  350. /* readonly */
  351. uint useTimer;
  352. /* readonly */
  353. int weakRefs;
  354. };
  355. class AnimationControl
  356. {
  357. public:
  358. // Properties:
  359. float autoFadeTime;
  360. float fadeTime;
  361. StringHash hash;
  362. String name;
  363. bool removeOnCompletion;
  364. float speed;
  365. float targetWeight;
  366. };
  367. class AnimationController
  368. {
  369. public:
  370. // Methods:
  371. void ApplyAttributes();
  372. void DrawDebugGeometry(DebugRenderer, bool);
  373. bool Fade(const String&, float, float);
  374. bool FadeOthers(const String&, float, float);
  375. AnimationState GetAnimationState(StringHash) const;
  376. AnimationState GetAnimationState(const String&) const;
  377. Variant GetAttribute(const String&) const;
  378. ValueAnimation GetAttributeAnimation(const String&) const;
  379. float GetAttributeAnimationSpeed(const String&) const;
  380. float GetAttributeAnimationTime(const String&) const;
  381. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  382. Variant GetAttributeDefault(const String&) const;
  383. float GetAutoFade(const String&) const;
  384. AnimationBlendMode GetBlendMode(const String&) const;
  385. float GetFadeTarget(const String&) const;
  386. float GetFadeTime(const String&) const;
  387. bool GetInterceptNetworkUpdate(const String&) const;
  388. uint8 GetLayer(const String&) const;
  389. float GetLength(const String&) const;
  390. bool GetLooped(const String&) const;
  391. bool GetRemoveOnCompletion(const String&);
  392. float GetSpeed(const String&) const;
  393. float GetTime(const String&) const;
  394. float GetWeight(const String&) const;
  395. bool HasSubscribedToEvent(Object, const String&);
  396. bool HasSubscribedToEvent(const String&);
  397. bool IsAtEnd(const String&) const;
  398. bool IsFadingIn(const String&) const;
  399. bool IsFadingOut(const String&) const;
  400. bool IsPlaying(const String&) const;
  401. bool IsPlaying(uint8) const;
  402. bool Load(File, bool = false);
  403. bool Load(VectorBuffer&, bool = false);
  404. bool LoadJSON(const JSONValue&, bool = false);
  405. bool LoadXML(const XMLElement&, bool = false);
  406. void MarkNetworkUpdate() const;
  407. bool Play(const String&, uint8, bool, float = 0.0f);
  408. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  409. void Remove();
  410. void RemoveAttributeAnimation(const String&);
  411. void RemoveInstanceDefault();
  412. void RemoveObjectAnimation();
  413. void ResetToDefault();
  414. bool Save(File) const;
  415. bool Save(VectorBuffer&) const;
  416. bool SaveJSON(JSONValue&) const;
  417. bool SaveXML(XMLElement&) const;
  418. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  419. void SetAnimationTime(float);
  420. bool SetAttribute(const String&, const Variant&);
  421. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  422. void SetAttributeAnimationSpeed(const String&, float);
  423. void SetAttributeAnimationTime(const String&, float);
  424. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  425. bool SetAutoFade(const String&, float);
  426. bool SetBlendMode(const String&, AnimationBlendMode);
  427. void SetInterceptNetworkUpdate(const String&, bool);
  428. bool SetLayer(const String&, uint8);
  429. bool SetLooped(const String&, bool);
  430. bool SetRemoveOnCompletion(const String&, bool);
  431. bool SetSpeed(const String&, float);
  432. bool SetStartBone(const String&, const String&);
  433. bool SetTime(const String&, float);
  434. bool SetWeight(const String&, float);
  435. void Stop(const String&, float = 0.0f);
  436. void StopAll(float = 0.0f);
  437. void StopLayer(uint8, float = 0.0f);
  438. const String& GetStartBone(const String&) const;
  439. // Properties:
  440. bool animationEnabled;
  441. /* readonly */
  442. Array<AnimationControl> animations;
  443. /* readonly */
  444. Array<Variant> attributeDefaults;
  445. /* readonly */
  446. Array<AttributeInfo> attributeInfos;
  447. Array<Variant> attributes;
  448. /* readonly */
  449. String category;
  450. bool enabled;
  451. /* readonly */
  452. bool enabledEffective;
  453. /* readonly */
  454. uint id;
  455. /* readonly */
  456. Node node;
  457. /* readonly */
  458. uint numAnimations;
  459. /* readonly */
  460. uint numAttributes;
  461. ObjectAnimation objectAnimation;
  462. /* readonly */
  463. int refs;
  464. bool temporary;
  465. /* readonly */
  466. StringHash type;
  467. /* readonly */
  468. String typeName;
  469. /* readonly */
  470. int weakRefs;
  471. };
  472. class AnimationKeyFrame
  473. {
  474. public:
  475. ~AnimationKeyFrame();
  476. AnimationKeyFrame();
  477. AnimationKeyFrame(const AnimationKeyFrame&in);
  478. // Properties:
  479. Vector3 position;
  480. Quaternion rotation;
  481. Vector3 scale;
  482. float time;
  483. };
  484. class AnimationSet2D
  485. {
  486. public:
  487. AnimationSet2D();
  488. AnimationSet2D(const String&in);
  489. // Methods:
  490. String GetAnimation(uint) const;
  491. bool HasSubscribedToEvent(Object, const String&);
  492. bool HasSubscribedToEvent(const String&);
  493. bool Load(File);
  494. bool Load(VectorBuffer&);
  495. bool Load(const String&);
  496. bool Save(File) const;
  497. bool Save(VectorBuffer&) const;
  498. bool Save(const String&) const;
  499. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  500. // Properties:
  501. /* readonly */
  502. String category;
  503. /* readonly */
  504. uint memoryUse;
  505. String name;
  506. /* readonly */
  507. uint numAnimations;
  508. /* readonly */
  509. int refs;
  510. /* readonly */
  511. StringHash type;
  512. /* readonly */
  513. String typeName;
  514. /* readonly */
  515. uint useTimer;
  516. /* readonly */
  517. int weakRefs;
  518. };
  519. class AnimationState
  520. {
  521. public:
  522. AnimationState(Node&, Animation&);
  523. // Methods:
  524. void AddTime(float);
  525. void AddWeight(float);
  526. void Apply();
  527. float GetBoneWeight(StringHash) const;
  528. float GetBoneWeight(uint) const;
  529. uint GetTrackIndex(StringHash) const;
  530. uint GetTrackIndex(const String&) const;
  531. void SetBoneWeight(StringHash, float, bool = false);
  532. void SetBoneWeight(const String&, float, bool = false);
  533. void SetBoneWeight(uint, float, bool = false);
  534. // Properties:
  535. /* readonly */
  536. Animation animation;
  537. AnimationBlendMode blendMode;
  538. Array<float> boneWeights;
  539. /* readonly */
  540. bool enabled;
  541. uint8 layer;
  542. /* readonly */
  543. float length;
  544. bool looped;
  545. /* readonly */
  546. AnimatedModel model;
  547. /* readonly */
  548. Node node;
  549. /* readonly */
  550. int refs;
  551. Bone startBone;
  552. float time;
  553. /* readonly */
  554. int weakRefs;
  555. float weight;
  556. };
  557. class AnimationTrack
  558. {
  559. public:
  560. // Methods:
  561. void AddKeyFrame(const AnimationKeyFrame&);
  562. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  563. void RemoveAllKeyFrames();
  564. void RemoveKeyFrame(uint);
  565. // Properties:
  566. uint8 channelMask;
  567. Array<AnimationKeyFrame> keyFrames;
  568. String name;
  569. StringHash nameHash;
  570. /* readonly */
  571. uint numKeyFrames;
  572. };
  573. class AnimationTriggerPoint
  574. {
  575. public:
  576. ~AnimationTriggerPoint();
  577. AnimationTriggerPoint();
  578. AnimationTriggerPoint(const AnimationTriggerPoint&in);
  579. // Properties:
  580. Variant data;
  581. float time;
  582. };
  583. template <class T>
  584. class Array
  585. {
  586. public:
  587. Array(int&in);
  588. Array(int&in, uint);
  589. Array(int&in, uint, const T&in);
  590. // Methods:
  591. void Clear();
  592. void Erase(uint);
  593. int Find(const T&) const;
  594. int Find(uint, const T&) const;
  595. int FindByRef(const T&) const;
  596. int FindByRef(uint, const T&) const;
  597. void Insert(uint, const T&);
  598. void Pop();
  599. void Push(const T&);
  600. void Reserve(uint);
  601. void Resize(uint);
  602. void Reverse();
  603. void Sort();
  604. void Sort(uint, uint);
  605. void SortReverse();
  606. void SortReverse(uint, uint);
  607. // Properties:
  608. /* readonly */
  609. bool empty;
  610. uint length;
  611. };
  612. class AttributeInfo
  613. {
  614. public:
  615. ~AttributeInfo();
  616. AttributeInfo();
  617. AttributeInfo(const AttributeInfo&in);
  618. // Properties:
  619. Variant defaultValue;
  620. /* readonly */
  621. Array<String> enumNames;
  622. uint mode;
  623. String name;
  624. VariantType type;
  625. /* readonly */
  626. Array<String> variantStructureElementNames;
  627. };
  628. class Audio
  629. {
  630. public:
  631. // Methods:
  632. bool HasMasterGain(const String&) const;
  633. bool HasSubscribedToEvent(Object, const String&);
  634. bool HasSubscribedToEvent(const String&);
  635. bool IsSoundTypePaused(const String&);
  636. void PauseSoundType(const String&);
  637. bool Play();
  638. void ResumeAll();
  639. void ResumeSoundType(const String&);
  640. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  641. void SetMode(int, int, bool, bool = true);
  642. void Stop();
  643. // Properties:
  644. /* readonly */
  645. String category;
  646. /* readonly */
  647. bool initialized;
  648. /* readonly */
  649. bool interpolation;
  650. SoundListener listener;
  651. Array<float> masterGain;
  652. /* readonly */
  653. int mixRate;
  654. /* readonly */
  655. bool playing;
  656. /* readonly */
  657. int refs;
  658. /* readonly */
  659. uint sampleSize;
  660. /* readonly */
  661. bool stereo;
  662. /* readonly */
  663. StringHash type;
  664. /* readonly */
  665. String typeName;
  666. /* readonly */
  667. int weakRefs;
  668. };
  669. class BiasParameters
  670. {
  671. public:
  672. BiasParameters();
  673. BiasParameters(const BiasParameters&in);
  674. BiasParameters(float, float, float normalOffset = 0.0f);
  675. // Properties:
  676. float constantBias;
  677. float normalOffset;
  678. float slopeScaledBias;
  679. };
  680. class Billboard
  681. {
  682. public:
  683. // Properties:
  684. Color color;
  685. Vector3 direction;
  686. bool enabled;
  687. Vector3 position;
  688. float rotation;
  689. Vector2 size;
  690. Rect uv;
  691. };
  692. class BillboardSet
  693. {
  694. public:
  695. // Methods:
  696. void ApplyAttributes();
  697. void Commit();
  698. void DrawDebugGeometry(DebugRenderer, bool);
  699. Variant GetAttribute(const String&) const;
  700. ValueAnimation GetAttributeAnimation(const String&) const;
  701. float GetAttributeAnimationSpeed(const String&) const;
  702. float GetAttributeAnimationTime(const String&) const;
  703. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  704. Variant GetAttributeDefault(const String&) const;
  705. bool GetInterceptNetworkUpdate(const String&) const;
  706. bool HasSubscribedToEvent(Object, const String&);
  707. bool HasSubscribedToEvent(const String&);
  708. bool IsInView(Camera) const;
  709. bool Load(File, bool = false);
  710. bool Load(VectorBuffer&, bool = false);
  711. bool LoadJSON(const JSONValue&, bool = false);
  712. bool LoadXML(const XMLElement&, bool = false);
  713. void MarkNetworkUpdate() const;
  714. void Remove();
  715. void RemoveAttributeAnimation(const String&);
  716. void RemoveInstanceDefault();
  717. void RemoveObjectAnimation();
  718. void ResetToDefault();
  719. bool Save(File) const;
  720. bool Save(VectorBuffer&) const;
  721. bool SaveJSON(JSONValue&) const;
  722. bool SaveXML(XMLElement&) const;
  723. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  724. void SetAnimationTime(float);
  725. bool SetAttribute(const String&, const Variant&);
  726. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  727. void SetAttributeAnimationSpeed(const String&, float);
  728. void SetAttributeAnimationTime(const String&, float);
  729. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  730. void SetInterceptNetworkUpdate(const String&, bool);
  731. // Properties:
  732. bool animationEnabled;
  733. float animationLodBias;
  734. /* readonly */
  735. Array<Variant> attributeDefaults;
  736. /* readonly */
  737. Array<AttributeInfo> attributeInfos;
  738. Array<Variant> attributes;
  739. /* readonly */
  740. Array<Billboard> billboards;
  741. /* readonly */
  742. BoundingBox boundingBox;
  743. bool castShadows;
  744. /* readonly */
  745. String category;
  746. float drawDistance;
  747. bool enabled;
  748. /* readonly */
  749. bool enabledEffective;
  750. FaceCameraMode faceCameraMode;
  751. bool fixedScreenSize;
  752. /* readonly */
  753. uint id;
  754. /* readonly */
  755. bool inView;
  756. uint lightMask;
  757. float lodBias;
  758. Material material;
  759. uint maxLights;
  760. float minAngle;
  761. /* readonly */
  762. Node node;
  763. /* readonly */
  764. uint numAttributes;
  765. uint numBillboards;
  766. ObjectAnimation objectAnimation;
  767. bool occludee;
  768. bool occluder;
  769. /* readonly */
  770. int refs;
  771. bool relative;
  772. bool scaled;
  773. float shadowDistance;
  774. uint shadowMask;
  775. bool sorted;
  776. bool temporary;
  777. /* readonly */
  778. StringHash type;
  779. /* readonly */
  780. String typeName;
  781. uint viewMask;
  782. /* readonly */
  783. int weakRefs;
  784. /* readonly */
  785. BoundingBox worldBoundingBox;
  786. /* readonly */
  787. Zone zone;
  788. uint zoneMask;
  789. };
  790. class Bone
  791. {
  792. public:
  793. // Properties:
  794. bool animated;
  795. BoundingBox boundingBox;
  796. Vector3 initialPosition;
  797. Quaternion initialRotation;
  798. Vector3 initialScale;
  799. String name;
  800. Node node;
  801. float radius;
  802. };
  803. class BorderImage
  804. {
  805. public:
  806. BorderImage();
  807. BorderImage(const String&in);
  808. // Methods:
  809. void AddChild(UIElement);
  810. void AddTag(const String&);
  811. void AddTags(const String&, int8 = ';');
  812. void ApplyAttributes();
  813. void BringToFront();
  814. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  815. void DisableLayoutUpdate();
  816. IntVector2 ElementToScreen(const IntVector2&);
  817. void EnableLayoutUpdate();
  818. uint FindChild(UIElement) const;
  819. Variant GetAttribute(const String&) const;
  820. ValueAnimation GetAttributeAnimation(const String&) const;
  821. float GetAttributeAnimationSpeed(const String&) const;
  822. float GetAttributeAnimationTime(const String&) const;
  823. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  824. Variant GetAttributeDefault(const String&) const;
  825. UIElement GetChild(const String&, bool = false) const;
  826. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  827. Array<UIElement> GetChildren(bool = false) const;
  828. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  829. UIElement GetElementEventSender() const;
  830. bool GetInterceptNetworkUpdate(const String&) const;
  831. uint GetNumChildren(bool) const;
  832. bool HasSubscribedToEvent(Object, const String&);
  833. bool HasSubscribedToEvent(const String&);
  834. bool HasTag(const String&) const;
  835. void InsertChild(uint, UIElement);
  836. bool IsInside(IntVector2, bool);
  837. bool IsInsideCombined(IntVector2, bool);
  838. bool Load(File, bool = false);
  839. bool Load(VectorBuffer&, bool = false);
  840. UIElement LoadChildXML(XMLFile, XMLFile = null);
  841. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  842. bool LoadJSON(const JSONValue&, bool = false);
  843. bool LoadXML(File);
  844. bool LoadXML(VectorBuffer&);
  845. bool LoadXML(XMLFile, XMLFile);
  846. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  847. bool LoadXML(const XMLElement&, bool = false);
  848. void MarkNetworkUpdate() const;
  849. void Remove();
  850. void RemoveAllChildren();
  851. void RemoveAllTags();
  852. void RemoveAttributeAnimation(const String&);
  853. void RemoveChild(UIElement, uint = 0);
  854. void RemoveChild(uint);
  855. void RemoveInstanceDefault();
  856. void RemoveObjectAnimation();
  857. bool RemoveTag(const String&);
  858. void ResetDeepEnabled();
  859. void ResetToDefault();
  860. bool Save(File) const;
  861. bool Save(VectorBuffer&) const;
  862. bool SaveJSON(JSONValue&) const;
  863. bool SaveXML(File, const String& = "\t");
  864. bool SaveXML(VectorBuffer&, const String& = "\t");
  865. bool SaveXML(XMLElement&) const;
  866. IntVector2 ScreenToElement(const IntVector2&);
  867. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  868. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  869. void SetAnimationTime(float);
  870. bool SetAttribute(const String&, const Variant&);
  871. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  872. void SetAttributeAnimationSpeed(const String&, float);
  873. void SetAttributeAnimationTime(const String&, float);
  874. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  875. void SetDeepEnabled(bool);
  876. void SetEnabledRecursive(bool);
  877. void SetFixedHeight(int);
  878. void SetFixedSize(int, int);
  879. void SetFixedWidth(int);
  880. void SetFullImageRect();
  881. void SetHoverOffset(int, int);
  882. void SetInterceptNetworkUpdate(const String&, bool);
  883. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  884. void SetMaxAnchor(float, float);
  885. void SetMaxSize(int, int);
  886. void SetMinAnchor(float, float);
  887. void SetMinSize(int, int);
  888. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  889. void SetPivot(float, float);
  890. void SetPosition(int, int);
  891. void SetSize(int, int);
  892. bool SetStyle(const String&, XMLFile = null);
  893. bool SetStyle(const XMLElement&);
  894. bool SetStyleAuto(XMLFile = null);
  895. void UpdateLayout();
  896. const Variant& GetVar(const StringHash&);
  897. // Properties:
  898. bool animationEnabled;
  899. /* readonly */
  900. Array<Variant> attributeDefaults;
  901. /* readonly */
  902. Array<AttributeInfo> attributeInfos;
  903. Array<Variant> attributes;
  904. BlendMode blendMode;
  905. IntRect border;
  906. bool bringToBack;
  907. bool bringToFront;
  908. /* readonly */
  909. String category;
  910. /* readonly */
  911. IntVector2 childOffset;
  912. /* readonly */
  913. Array<UIElement> children;
  914. IntRect clipBorder;
  915. bool clipChildren;
  916. /* writeonly */
  917. Color color;
  918. /* readonly */
  919. bool colorGradient;
  920. Array<Color> colors;
  921. /* readonly */
  922. IntRect combinedScreenRect;
  923. XMLFile defaultStyle;
  924. /* readonly */
  925. float derivedOpacity;
  926. /* readonly */
  927. uint dragButtonCombo;
  928. /* readonly */
  929. int dragButtonCount;
  930. uint dragDropMode;
  931. bool editable;
  932. bool elementEventSender;
  933. bool enableAnchor;
  934. bool enabled;
  935. /* readonly */
  936. bool enabledSelf;
  937. /* readonly */
  938. bool fixedHeight;
  939. /* readonly */
  940. bool fixedSize;
  941. /* readonly */
  942. bool fixedWidth;
  943. bool focus;
  944. FocusMode focusMode;
  945. int height;
  946. HorizontalAlignment horizontalAlignment;
  947. IntVector2 hoverOffset;
  948. /* readonly */
  949. bool hovering;
  950. IntRect imageBorder;
  951. IntRect imageRect;
  952. int indent;
  953. int indentSpacing;
  954. /* readonly */
  955. int indentWidth;
  956. bool internal;
  957. IntRect layoutBorder;
  958. Vector2 layoutFlexScale;
  959. LayoutMode layoutMode;
  960. int layoutSpacing;
  961. Vector2 maxAnchor;
  962. int maxHeight;
  963. IntVector2 maxOffset;
  964. IntVector2 maxSize;
  965. int maxWidth;
  966. Vector2 minAnchor;
  967. int minHeight;
  968. IntVector2 minOffset;
  969. IntVector2 minSize;
  970. int minWidth;
  971. String name;
  972. /* readonly */
  973. uint numAllChildren;
  974. /* readonly */
  975. uint numAttributes;
  976. /* readonly */
  977. uint numChildren;
  978. ObjectAnimation objectAnimation;
  979. float opacity;
  980. UIElement parent;
  981. Vector2 pivot;
  982. IntVector2 position;
  983. int priority;
  984. /* readonly */
  985. int refs;
  986. /* readonly */
  987. UIElement root;
  988. /* readonly */
  989. IntVector2 screenPosition;
  990. bool selected;
  991. IntVector2 size;
  992. bool sortChildren;
  993. String style;
  994. /* readonly */
  995. Array<String> tags;
  996. bool temporary;
  997. Texture texture;
  998. bool tiled;
  999. TraversalMode traversalMode;
  1000. /* readonly */
  1001. StringHash type;
  1002. /* readonly */
  1003. String typeName;
  1004. bool useDerivedOpacity;
  1005. /* readonly */
  1006. VariantMap vars;
  1007. VerticalAlignment verticalAlignment;
  1008. bool visible;
  1009. /* readonly */
  1010. bool visibleEffective;
  1011. /* readonly */
  1012. int weakRefs;
  1013. int width;
  1014. };
  1015. class BoundingBox
  1016. {
  1017. public:
  1018. BoundingBox();
  1019. BoundingBox(const BoundingBox&in);
  1020. BoundingBox(const Rect&in);
  1021. BoundingBox(const Vector3&in, const Vector3&in);
  1022. BoundingBox(float, float);
  1023. BoundingBox(const Frustum&in);
  1024. BoundingBox(const Polyhedron&in);
  1025. BoundingBox(const Sphere&in);
  1026. // Methods:
  1027. void Clear();
  1028. void Clip(const BoundingBox&);
  1029. void Define(const BoundingBox&);
  1030. void Define(const Frustum&);
  1031. void Define(const Polyhedron&);
  1032. void Define(const Sphere&);
  1033. void Define(const Vector3&);
  1034. void Define(const Vector3&, const Vector3&);
  1035. void Define(float, float);
  1036. bool Defined() const;
  1037. float DistanceToPoint(const Vector3&) const;
  1038. Intersection IsInside(const BoundingBox&) const;
  1039. Intersection IsInside(const Sphere&) const;
  1040. Intersection IsInside(const Vector3&) const;
  1041. Intersection IsInsideFast(const BoundingBox&) const;
  1042. Intersection IsInsideFast(const Sphere&) const;
  1043. void Merge(const BoundingBox&);
  1044. void Merge(const Frustum&);
  1045. void Merge(const Polyhedron&);
  1046. void Merge(const Sphere&);
  1047. void Merge(const Vector3&);
  1048. Rect Projected(const Matrix4&) const;
  1049. String ToString() const;
  1050. void Transform(const Matrix3&);
  1051. void Transform(const Matrix3x4&);
  1052. BoundingBox Transformed(const Matrix3&) const;
  1053. BoundingBox Transformed(const Matrix3x4&) const;
  1054. // Properties:
  1055. /* readonly */
  1056. Vector3 center;
  1057. /* readonly */
  1058. Vector3 halfSize;
  1059. Vector3 max;
  1060. Vector3 min;
  1061. /* readonly */
  1062. Vector3 size;
  1063. };
  1064. class Button
  1065. {
  1066. public:
  1067. Button();
  1068. Button(const String&in);
  1069. // Methods:
  1070. void AddChild(UIElement);
  1071. void AddTag(const String&);
  1072. void AddTags(const String&, int8 = ';');
  1073. void ApplyAttributes();
  1074. void BringToFront();
  1075. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1076. void DisableLayoutUpdate();
  1077. IntVector2 ElementToScreen(const IntVector2&);
  1078. void EnableLayoutUpdate();
  1079. uint FindChild(UIElement) const;
  1080. Variant GetAttribute(const String&) const;
  1081. ValueAnimation GetAttributeAnimation(const String&) const;
  1082. float GetAttributeAnimationSpeed(const String&) const;
  1083. float GetAttributeAnimationTime(const String&) const;
  1084. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1085. Variant GetAttributeDefault(const String&) const;
  1086. UIElement GetChild(const String&, bool = false) const;
  1087. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1088. Array<UIElement> GetChildren(bool = false) const;
  1089. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1090. UIElement GetElementEventSender() const;
  1091. bool GetInterceptNetworkUpdate(const String&) const;
  1092. uint GetNumChildren(bool) const;
  1093. bool HasSubscribedToEvent(Object, const String&);
  1094. bool HasSubscribedToEvent(const String&);
  1095. bool HasTag(const String&) const;
  1096. void InsertChild(uint, UIElement);
  1097. bool IsInside(IntVector2, bool);
  1098. bool IsInsideCombined(IntVector2, bool);
  1099. bool Load(File, bool = false);
  1100. bool Load(VectorBuffer&, bool = false);
  1101. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1102. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1103. bool LoadJSON(const JSONValue&, bool = false);
  1104. bool LoadXML(File);
  1105. bool LoadXML(VectorBuffer&);
  1106. bool LoadXML(XMLFile, XMLFile);
  1107. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1108. bool LoadXML(const XMLElement&, bool = false);
  1109. void MarkNetworkUpdate() const;
  1110. void Remove();
  1111. void RemoveAllChildren();
  1112. void RemoveAllTags();
  1113. void RemoveAttributeAnimation(const String&);
  1114. void RemoveChild(UIElement, uint = 0);
  1115. void RemoveChild(uint);
  1116. void RemoveInstanceDefault();
  1117. void RemoveObjectAnimation();
  1118. bool RemoveTag(const String&);
  1119. void ResetDeepEnabled();
  1120. void ResetToDefault();
  1121. bool Save(File) const;
  1122. bool Save(VectorBuffer&) const;
  1123. bool SaveJSON(JSONValue&) const;
  1124. bool SaveXML(File, const String& = "\t");
  1125. bool SaveXML(VectorBuffer&, const String& = "\t");
  1126. bool SaveXML(XMLElement&) const;
  1127. IntVector2 ScreenToElement(const IntVector2&);
  1128. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1129. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1130. void SetAnimationTime(float);
  1131. bool SetAttribute(const String&, const Variant&);
  1132. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1133. void SetAttributeAnimationSpeed(const String&, float);
  1134. void SetAttributeAnimationTime(const String&, float);
  1135. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1136. void SetDeepEnabled(bool);
  1137. void SetEnabledRecursive(bool);
  1138. void SetFixedHeight(int);
  1139. void SetFixedSize(int, int);
  1140. void SetFixedWidth(int);
  1141. void SetFullImageRect();
  1142. void SetHoverOffset(int, int);
  1143. void SetInterceptNetworkUpdate(const String&, bool);
  1144. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1145. void SetMaxAnchor(float, float);
  1146. void SetMaxSize(int, int);
  1147. void SetMinAnchor(float, float);
  1148. void SetMinSize(int, int);
  1149. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1150. void SetPivot(float, float);
  1151. void SetPosition(int, int);
  1152. void SetPressedChildOffset(int, int);
  1153. void SetPressedOffset(int, int);
  1154. void SetRepeat(float, float);
  1155. void SetSize(int, int);
  1156. bool SetStyle(const String&, XMLFile = null);
  1157. bool SetStyle(const XMLElement&);
  1158. bool SetStyleAuto(XMLFile = null);
  1159. void UpdateLayout();
  1160. const Variant& GetVar(const StringHash&);
  1161. // Properties:
  1162. bool animationEnabled;
  1163. /* readonly */
  1164. Array<Variant> attributeDefaults;
  1165. /* readonly */
  1166. Array<AttributeInfo> attributeInfos;
  1167. Array<Variant> attributes;
  1168. BlendMode blendMode;
  1169. IntRect border;
  1170. bool bringToBack;
  1171. bool bringToFront;
  1172. /* readonly */
  1173. String category;
  1174. /* readonly */
  1175. IntVector2 childOffset;
  1176. /* readonly */
  1177. Array<UIElement> children;
  1178. IntRect clipBorder;
  1179. bool clipChildren;
  1180. /* writeonly */
  1181. Color color;
  1182. /* readonly */
  1183. bool colorGradient;
  1184. Array<Color> colors;
  1185. /* readonly */
  1186. IntRect combinedScreenRect;
  1187. XMLFile defaultStyle;
  1188. /* readonly */
  1189. float derivedOpacity;
  1190. /* readonly */
  1191. uint dragButtonCombo;
  1192. /* readonly */
  1193. int dragButtonCount;
  1194. uint dragDropMode;
  1195. bool editable;
  1196. bool elementEventSender;
  1197. bool enableAnchor;
  1198. bool enabled;
  1199. /* readonly */
  1200. bool enabledSelf;
  1201. /* readonly */
  1202. bool fixedHeight;
  1203. /* readonly */
  1204. bool fixedSize;
  1205. /* readonly */
  1206. bool fixedWidth;
  1207. bool focus;
  1208. FocusMode focusMode;
  1209. int height;
  1210. HorizontalAlignment horizontalAlignment;
  1211. IntVector2 hoverOffset;
  1212. /* readonly */
  1213. bool hovering;
  1214. IntRect imageBorder;
  1215. IntRect imageRect;
  1216. int indent;
  1217. int indentSpacing;
  1218. /* readonly */
  1219. int indentWidth;
  1220. bool internal;
  1221. IntRect layoutBorder;
  1222. Vector2 layoutFlexScale;
  1223. LayoutMode layoutMode;
  1224. int layoutSpacing;
  1225. Vector2 maxAnchor;
  1226. int maxHeight;
  1227. IntVector2 maxOffset;
  1228. IntVector2 maxSize;
  1229. int maxWidth;
  1230. Vector2 minAnchor;
  1231. int minHeight;
  1232. IntVector2 minOffset;
  1233. IntVector2 minSize;
  1234. int minWidth;
  1235. String name;
  1236. /* readonly */
  1237. uint numAllChildren;
  1238. /* readonly */
  1239. uint numAttributes;
  1240. /* readonly */
  1241. uint numChildren;
  1242. ObjectAnimation objectAnimation;
  1243. float opacity;
  1244. UIElement parent;
  1245. Vector2 pivot;
  1246. IntVector2 position;
  1247. /* readonly */
  1248. bool pressed;
  1249. IntVector2 pressedChildOffset;
  1250. IntVector2 pressedOffset;
  1251. int priority;
  1252. /* readonly */
  1253. int refs;
  1254. float repeatDelay;
  1255. float repeatRate;
  1256. /* readonly */
  1257. UIElement root;
  1258. /* readonly */
  1259. IntVector2 screenPosition;
  1260. bool selected;
  1261. IntVector2 size;
  1262. bool sortChildren;
  1263. String style;
  1264. /* readonly */
  1265. Array<String> tags;
  1266. bool temporary;
  1267. Texture texture;
  1268. bool tiled;
  1269. TraversalMode traversalMode;
  1270. /* readonly */
  1271. StringHash type;
  1272. /* readonly */
  1273. String typeName;
  1274. bool useDerivedOpacity;
  1275. /* readonly */
  1276. VariantMap vars;
  1277. VerticalAlignment verticalAlignment;
  1278. bool visible;
  1279. /* readonly */
  1280. bool visibleEffective;
  1281. /* readonly */
  1282. int weakRefs;
  1283. int width;
  1284. };
  1285. class Camera
  1286. {
  1287. public:
  1288. // Methods:
  1289. void ApplyAttributes();
  1290. void DrawDebugGeometry(DebugRenderer, bool);
  1291. Variant GetAttribute(const String&) const;
  1292. ValueAnimation GetAttributeAnimation(const String&) const;
  1293. float GetAttributeAnimationSpeed(const String&) const;
  1294. float GetAttributeAnimationTime(const String&) const;
  1295. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1296. Variant GetAttributeDefault(const String&) const;
  1297. float GetDistance(const Vector3&) const;
  1298. float GetDistanceSquared(const Vector3&) const;
  1299. bool GetInterceptNetworkUpdate(const String&) const;
  1300. Ray GetScreenRay(float, float) const;
  1301. Frustum GetSplitFrustum(float, float) const;
  1302. bool HasSubscribedToEvent(Object, const String&);
  1303. bool HasSubscribedToEvent(const String&);
  1304. bool Load(File, bool = false);
  1305. bool Load(VectorBuffer&, bool = false);
  1306. bool LoadJSON(const JSONValue&, bool = false);
  1307. bool LoadXML(const XMLElement&, bool = false);
  1308. void MarkNetworkUpdate() const;
  1309. void Remove();
  1310. void RemoveAttributeAnimation(const String&);
  1311. void RemoveInstanceDefault();
  1312. void RemoveObjectAnimation();
  1313. void ResetToDefault();
  1314. bool Save(File) const;
  1315. bool Save(VectorBuffer&) const;
  1316. bool SaveJSON(JSONValue&) const;
  1317. bool SaveXML(XMLElement&) const;
  1318. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1319. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1320. void SetAnimationTime(float);
  1321. bool SetAttribute(const String&, const Variant&);
  1322. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1323. void SetAttributeAnimationSpeed(const String&, float);
  1324. void SetAttributeAnimationTime(const String&, float);
  1325. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1326. void SetInterceptNetworkUpdate(const String&, bool);
  1327. void SetOrthoSize(const Vector2&);
  1328. Vector2 WorldToScreenPoint(const Vector3&) const;
  1329. // Properties:
  1330. bool animationEnabled;
  1331. float aspectRatio;
  1332. /* readonly */
  1333. Array<Variant> attributeDefaults;
  1334. /* readonly */
  1335. Array<AttributeInfo> attributeInfos;
  1336. Array<Variant> attributes;
  1337. bool autoAspectRatio;
  1338. /* readonly */
  1339. String category;
  1340. Plane clipPlane;
  1341. /* readonly */
  1342. Matrix3x4 effectiveWorldTransform;
  1343. bool enabled;
  1344. /* readonly */
  1345. bool enabledEffective;
  1346. float farClip;
  1347. FillMode fillMode;
  1348. float fov;
  1349. /* readonly */
  1350. Frustum frustum;
  1351. /* readonly */
  1352. Matrix4 gpuProjection;
  1353. /* readonly */
  1354. float halfViewSize;
  1355. /* readonly */
  1356. uint id;
  1357. float lodBias;
  1358. float nearClip;
  1359. /* readonly */
  1360. Node node;
  1361. /* readonly */
  1362. uint numAttributes;
  1363. ObjectAnimation objectAnimation;
  1364. float orthoSize;
  1365. bool orthographic;
  1366. Matrix4 projection;
  1367. Vector2 projectionOffset;
  1368. Plane reflectionPlane;
  1369. /* readonly */
  1370. int refs;
  1371. bool temporary;
  1372. /* readonly */
  1373. StringHash type;
  1374. /* readonly */
  1375. String typeName;
  1376. bool useClipping;
  1377. bool useReflection;
  1378. /* readonly */
  1379. Matrix3x4 view;
  1380. uint viewMask;
  1381. uint viewOverrideFlags;
  1382. /* readonly */
  1383. Frustum viewSpaceFrustum;
  1384. /* readonly */
  1385. int weakRefs;
  1386. float zoom;
  1387. };
  1388. class CascadeParameters
  1389. {
  1390. public:
  1391. CascadeParameters();
  1392. CascadeParameters(const CascadeParameters&in);
  1393. CascadeParameters(float, float, float, float, float, float biasAutoAdjust = 1.0);
  1394. // Properties:
  1395. float biasAutoAdjust;
  1396. float fadeStart;
  1397. float split1;
  1398. float split2;
  1399. float split3;
  1400. float split4;
  1401. };
  1402. class CheckBox
  1403. {
  1404. public:
  1405. CheckBox();
  1406. CheckBox(const String&in);
  1407. // Methods:
  1408. void AddChild(UIElement);
  1409. void AddTag(const String&);
  1410. void AddTags(const String&, int8 = ';');
  1411. void ApplyAttributes();
  1412. void BringToFront();
  1413. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1414. void DisableLayoutUpdate();
  1415. IntVector2 ElementToScreen(const IntVector2&);
  1416. void EnableLayoutUpdate();
  1417. uint FindChild(UIElement) const;
  1418. Variant GetAttribute(const String&) const;
  1419. ValueAnimation GetAttributeAnimation(const String&) const;
  1420. float GetAttributeAnimationSpeed(const String&) const;
  1421. float GetAttributeAnimationTime(const String&) const;
  1422. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1423. Variant GetAttributeDefault(const String&) const;
  1424. UIElement GetChild(const String&, bool = false) const;
  1425. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1426. Array<UIElement> GetChildren(bool = false) const;
  1427. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1428. UIElement GetElementEventSender() const;
  1429. bool GetInterceptNetworkUpdate(const String&) const;
  1430. uint GetNumChildren(bool) const;
  1431. bool HasSubscribedToEvent(Object, const String&);
  1432. bool HasSubscribedToEvent(const String&);
  1433. bool HasTag(const String&) const;
  1434. void InsertChild(uint, UIElement);
  1435. bool IsInside(IntVector2, bool);
  1436. bool IsInsideCombined(IntVector2, bool);
  1437. bool Load(File, bool = false);
  1438. bool Load(VectorBuffer&, bool = false);
  1439. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1440. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1441. bool LoadJSON(const JSONValue&, bool = false);
  1442. bool LoadXML(File);
  1443. bool LoadXML(VectorBuffer&);
  1444. bool LoadXML(XMLFile, XMLFile);
  1445. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1446. bool LoadXML(const XMLElement&, bool = false);
  1447. void MarkNetworkUpdate() const;
  1448. void Remove();
  1449. void RemoveAllChildren();
  1450. void RemoveAllTags();
  1451. void RemoveAttributeAnimation(const String&);
  1452. void RemoveChild(UIElement, uint = 0);
  1453. void RemoveChild(uint);
  1454. void RemoveInstanceDefault();
  1455. void RemoveObjectAnimation();
  1456. bool RemoveTag(const String&);
  1457. void ResetDeepEnabled();
  1458. void ResetToDefault();
  1459. bool Save(File) const;
  1460. bool Save(VectorBuffer&) const;
  1461. bool SaveJSON(JSONValue&) const;
  1462. bool SaveXML(File, const String& = "\t");
  1463. bool SaveXML(VectorBuffer&, const String& = "\t");
  1464. bool SaveXML(XMLElement&) const;
  1465. IntVector2 ScreenToElement(const IntVector2&);
  1466. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1467. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1468. void SetAnimationTime(float);
  1469. bool SetAttribute(const String&, const Variant&);
  1470. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1471. void SetAttributeAnimationSpeed(const String&, float);
  1472. void SetAttributeAnimationTime(const String&, float);
  1473. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1474. void SetCheckedOffset(int, int);
  1475. void SetDeepEnabled(bool);
  1476. void SetEnabledRecursive(bool);
  1477. void SetFixedHeight(int);
  1478. void SetFixedSize(int, int);
  1479. void SetFixedWidth(int);
  1480. void SetFullImageRect();
  1481. void SetHoverOffset(int, int);
  1482. void SetInterceptNetworkUpdate(const String&, bool);
  1483. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1484. void SetMaxAnchor(float, float);
  1485. void SetMaxSize(int, int);
  1486. void SetMinAnchor(float, float);
  1487. void SetMinSize(int, int);
  1488. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1489. void SetPivot(float, float);
  1490. void SetPosition(int, int);
  1491. void SetSize(int, int);
  1492. bool SetStyle(const String&, XMLFile = null);
  1493. bool SetStyle(const XMLElement&);
  1494. bool SetStyleAuto(XMLFile = null);
  1495. void UpdateLayout();
  1496. const Variant& GetVar(const StringHash&);
  1497. // Properties:
  1498. bool animationEnabled;
  1499. /* readonly */
  1500. Array<Variant> attributeDefaults;
  1501. /* readonly */
  1502. Array<AttributeInfo> attributeInfos;
  1503. Array<Variant> attributes;
  1504. BlendMode blendMode;
  1505. IntRect border;
  1506. bool bringToBack;
  1507. bool bringToFront;
  1508. /* readonly */
  1509. String category;
  1510. bool checked;
  1511. IntVector2 checkedOffset;
  1512. /* readonly */
  1513. IntVector2 childOffset;
  1514. /* readonly */
  1515. Array<UIElement> children;
  1516. IntRect clipBorder;
  1517. bool clipChildren;
  1518. /* writeonly */
  1519. Color color;
  1520. /* readonly */
  1521. bool colorGradient;
  1522. Array<Color> colors;
  1523. /* readonly */
  1524. IntRect combinedScreenRect;
  1525. XMLFile defaultStyle;
  1526. /* readonly */
  1527. float derivedOpacity;
  1528. /* readonly */
  1529. uint dragButtonCombo;
  1530. /* readonly */
  1531. int dragButtonCount;
  1532. uint dragDropMode;
  1533. bool editable;
  1534. bool elementEventSender;
  1535. bool enableAnchor;
  1536. bool enabled;
  1537. /* readonly */
  1538. bool enabledSelf;
  1539. /* readonly */
  1540. bool fixedHeight;
  1541. /* readonly */
  1542. bool fixedSize;
  1543. /* readonly */
  1544. bool fixedWidth;
  1545. bool focus;
  1546. FocusMode focusMode;
  1547. int height;
  1548. HorizontalAlignment horizontalAlignment;
  1549. IntVector2 hoverOffset;
  1550. /* readonly */
  1551. bool hovering;
  1552. IntRect imageBorder;
  1553. IntRect imageRect;
  1554. int indent;
  1555. int indentSpacing;
  1556. /* readonly */
  1557. int indentWidth;
  1558. bool internal;
  1559. IntRect layoutBorder;
  1560. Vector2 layoutFlexScale;
  1561. LayoutMode layoutMode;
  1562. int layoutSpacing;
  1563. Vector2 maxAnchor;
  1564. int maxHeight;
  1565. IntVector2 maxOffset;
  1566. IntVector2 maxSize;
  1567. int maxWidth;
  1568. Vector2 minAnchor;
  1569. int minHeight;
  1570. IntVector2 minOffset;
  1571. IntVector2 minSize;
  1572. int minWidth;
  1573. String name;
  1574. /* readonly */
  1575. uint numAllChildren;
  1576. /* readonly */
  1577. uint numAttributes;
  1578. /* readonly */
  1579. uint numChildren;
  1580. ObjectAnimation objectAnimation;
  1581. float opacity;
  1582. UIElement parent;
  1583. Vector2 pivot;
  1584. IntVector2 position;
  1585. int priority;
  1586. /* readonly */
  1587. int refs;
  1588. /* readonly */
  1589. UIElement root;
  1590. /* readonly */
  1591. IntVector2 screenPosition;
  1592. bool selected;
  1593. IntVector2 size;
  1594. bool sortChildren;
  1595. String style;
  1596. /* readonly */
  1597. Array<String> tags;
  1598. bool temporary;
  1599. Texture texture;
  1600. bool tiled;
  1601. TraversalMode traversalMode;
  1602. /* readonly */
  1603. StringHash type;
  1604. /* readonly */
  1605. String typeName;
  1606. bool useDerivedOpacity;
  1607. /* readonly */
  1608. VariantMap vars;
  1609. VerticalAlignment verticalAlignment;
  1610. bool visible;
  1611. /* readonly */
  1612. bool visibleEffective;
  1613. /* readonly */
  1614. int weakRefs;
  1615. int width;
  1616. };
  1617. class CollisionBox2D
  1618. {
  1619. public:
  1620. // Methods:
  1621. void ApplyAttributes();
  1622. void DrawDebugGeometry(DebugRenderer, bool);
  1623. Variant GetAttribute(const String&) const;
  1624. ValueAnimation GetAttributeAnimation(const String&) const;
  1625. float GetAttributeAnimationSpeed(const String&) const;
  1626. float GetAttributeAnimationTime(const String&) const;
  1627. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1628. Variant GetAttributeDefault(const String&) const;
  1629. bool GetInterceptNetworkUpdate(const String&) const;
  1630. bool HasSubscribedToEvent(Object, const String&);
  1631. bool HasSubscribedToEvent(const String&);
  1632. bool Load(File, bool = false);
  1633. bool Load(VectorBuffer&, bool = false);
  1634. bool LoadJSON(const JSONValue&, bool = false);
  1635. bool LoadXML(const XMLElement&, bool = false);
  1636. void MarkNetworkUpdate() const;
  1637. void Remove();
  1638. void RemoveAttributeAnimation(const String&);
  1639. void RemoveInstanceDefault();
  1640. void RemoveObjectAnimation();
  1641. void ResetToDefault();
  1642. bool Save(File) const;
  1643. bool Save(VectorBuffer&) const;
  1644. bool SaveJSON(JSONValue&) const;
  1645. bool SaveXML(XMLElement&) const;
  1646. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1647. void SetAnimationTime(float);
  1648. bool SetAttribute(const String&, const Variant&);
  1649. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1650. void SetAttributeAnimationSpeed(const String&, float);
  1651. void SetAttributeAnimationTime(const String&, float);
  1652. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1653. void SetCenter(float, float);
  1654. void SetInterceptNetworkUpdate(const String&, bool);
  1655. void SetSize(float, float);
  1656. // Properties:
  1657. float angle;
  1658. bool animationEnabled;
  1659. /* readonly */
  1660. Array<Variant> attributeDefaults;
  1661. /* readonly */
  1662. Array<AttributeInfo> attributeInfos;
  1663. Array<Variant> attributes;
  1664. /* readonly */
  1665. String category;
  1666. int categoryBits;
  1667. Vector2 center;
  1668. float density;
  1669. bool enabled;
  1670. /* readonly */
  1671. bool enabledEffective;
  1672. float friction;
  1673. int groupIndex;
  1674. /* readonly */
  1675. uint id;
  1676. /* readonly */
  1677. float inertia;
  1678. int maskBits;
  1679. /* readonly */
  1680. float mass;
  1681. /* readonly */
  1682. Vector2 massCenter;
  1683. /* readonly */
  1684. Node node;
  1685. /* readonly */
  1686. uint numAttributes;
  1687. ObjectAnimation objectAnimation;
  1688. /* readonly */
  1689. int refs;
  1690. float restitution;
  1691. Vector2 size;
  1692. bool temporary;
  1693. bool trigger;
  1694. /* readonly */
  1695. StringHash type;
  1696. /* readonly */
  1697. String typeName;
  1698. /* readonly */
  1699. int weakRefs;
  1700. };
  1701. class CollisionChain2D
  1702. {
  1703. public:
  1704. // Methods:
  1705. void ApplyAttributes();
  1706. void DrawDebugGeometry(DebugRenderer, bool);
  1707. Variant GetAttribute(const String&) const;
  1708. ValueAnimation GetAttributeAnimation(const String&) const;
  1709. float GetAttributeAnimationSpeed(const String&) const;
  1710. float GetAttributeAnimationTime(const String&) const;
  1711. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1712. Variant GetAttributeDefault(const String&) const;
  1713. bool GetInterceptNetworkUpdate(const String&) const;
  1714. Array<Vector2> GetVertices() const;
  1715. bool HasSubscribedToEvent(Object, const String&);
  1716. bool HasSubscribedToEvent(const String&);
  1717. bool Load(File, bool = false);
  1718. bool Load(VectorBuffer&, bool = false);
  1719. bool LoadJSON(const JSONValue&, bool = false);
  1720. bool LoadXML(const XMLElement&, bool = false);
  1721. void MarkNetworkUpdate() const;
  1722. void Remove();
  1723. void RemoveAttributeAnimation(const String&);
  1724. void RemoveInstanceDefault();
  1725. void RemoveObjectAnimation();
  1726. void ResetToDefault();
  1727. bool Save(File) const;
  1728. bool Save(VectorBuffer&) const;
  1729. bool SaveJSON(JSONValue&) const;
  1730. bool SaveXML(XMLElement&) const;
  1731. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1732. void SetAnimationTime(float);
  1733. bool SetAttribute(const String&, const Variant&);
  1734. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1735. void SetAttributeAnimationSpeed(const String&, float);
  1736. void SetAttributeAnimationTime(const String&, float);
  1737. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1738. void SetInterceptNetworkUpdate(const String&, bool);
  1739. void SetVertex(uint, const Vector2&);
  1740. void SetVertices(Array<Vector2>);
  1741. const Vector2& GetVertex(uint) const;
  1742. // Properties:
  1743. bool animationEnabled;
  1744. /* readonly */
  1745. Array<Variant> attributeDefaults;
  1746. /* readonly */
  1747. Array<AttributeInfo> attributeInfos;
  1748. Array<Variant> attributes;
  1749. /* readonly */
  1750. String category;
  1751. int categoryBits;
  1752. float density;
  1753. bool enabled;
  1754. /* readonly */
  1755. bool enabledEffective;
  1756. float friction;
  1757. int groupIndex;
  1758. /* readonly */
  1759. uint id;
  1760. /* readonly */
  1761. float inertia;
  1762. bool loop;
  1763. int maskBits;
  1764. /* readonly */
  1765. float mass;
  1766. /* readonly */
  1767. Vector2 massCenter;
  1768. /* readonly */
  1769. Node node;
  1770. /* readonly */
  1771. uint numAttributes;
  1772. ObjectAnimation objectAnimation;
  1773. /* readonly */
  1774. int refs;
  1775. float restitution;
  1776. bool temporary;
  1777. bool trigger;
  1778. /* readonly */
  1779. StringHash type;
  1780. /* readonly */
  1781. String typeName;
  1782. uint vertexCount;
  1783. /* readonly */
  1784. int weakRefs;
  1785. };
  1786. class CollisionCircle2D
  1787. {
  1788. public:
  1789. // Methods:
  1790. void ApplyAttributes();
  1791. void DrawDebugGeometry(DebugRenderer, bool);
  1792. Variant GetAttribute(const String&) const;
  1793. ValueAnimation GetAttributeAnimation(const String&) const;
  1794. float GetAttributeAnimationSpeed(const String&) const;
  1795. float GetAttributeAnimationTime(const String&) const;
  1796. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1797. Variant GetAttributeDefault(const String&) const;
  1798. bool GetInterceptNetworkUpdate(const String&) const;
  1799. bool HasSubscribedToEvent(Object, const String&);
  1800. bool HasSubscribedToEvent(const String&);
  1801. bool Load(File, bool = false);
  1802. bool Load(VectorBuffer&, bool = false);
  1803. bool LoadJSON(const JSONValue&, bool = false);
  1804. bool LoadXML(const XMLElement&, bool = false);
  1805. void MarkNetworkUpdate() const;
  1806. void Remove();
  1807. void RemoveAttributeAnimation(const String&);
  1808. void RemoveInstanceDefault();
  1809. void RemoveObjectAnimation();
  1810. void ResetToDefault();
  1811. bool Save(File) const;
  1812. bool Save(VectorBuffer&) const;
  1813. bool SaveJSON(JSONValue&) const;
  1814. bool SaveXML(XMLElement&) const;
  1815. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1816. void SetAnimationTime(float);
  1817. bool SetAttribute(const String&, const Variant&);
  1818. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1819. void SetAttributeAnimationSpeed(const String&, float);
  1820. void SetAttributeAnimationTime(const String&, float);
  1821. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1822. void SetCenter(float, float);
  1823. void SetInterceptNetworkUpdate(const String&, bool);
  1824. // Properties:
  1825. bool animationEnabled;
  1826. /* readonly */
  1827. Array<Variant> attributeDefaults;
  1828. /* readonly */
  1829. Array<AttributeInfo> attributeInfos;
  1830. Array<Variant> attributes;
  1831. /* readonly */
  1832. String category;
  1833. int categoryBits;
  1834. Vector2 center;
  1835. float density;
  1836. bool enabled;
  1837. /* readonly */
  1838. bool enabledEffective;
  1839. float friction;
  1840. int groupIndex;
  1841. /* readonly */
  1842. uint id;
  1843. /* readonly */
  1844. float inertia;
  1845. int maskBits;
  1846. /* readonly */
  1847. float mass;
  1848. /* readonly */
  1849. Vector2 massCenter;
  1850. /* readonly */
  1851. Node node;
  1852. /* readonly */
  1853. uint numAttributes;
  1854. ObjectAnimation objectAnimation;
  1855. float radius;
  1856. /* readonly */
  1857. int refs;
  1858. float restitution;
  1859. bool temporary;
  1860. bool trigger;
  1861. /* readonly */
  1862. StringHash type;
  1863. /* readonly */
  1864. String typeName;
  1865. /* readonly */
  1866. int weakRefs;
  1867. };
  1868. class CollisionEdge2D
  1869. {
  1870. public:
  1871. // Methods:
  1872. void ApplyAttributes();
  1873. void DrawDebugGeometry(DebugRenderer, bool);
  1874. Variant GetAttribute(const String&) const;
  1875. ValueAnimation GetAttributeAnimation(const String&) const;
  1876. float GetAttributeAnimationSpeed(const String&) const;
  1877. float GetAttributeAnimationTime(const String&) const;
  1878. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1879. Variant GetAttributeDefault(const String&) const;
  1880. bool GetInterceptNetworkUpdate(const String&) const;
  1881. bool HasSubscribedToEvent(Object, const String&);
  1882. bool HasSubscribedToEvent(const String&);
  1883. bool Load(File, bool = false);
  1884. bool Load(VectorBuffer&, bool = false);
  1885. bool LoadJSON(const JSONValue&, bool = false);
  1886. bool LoadXML(const XMLElement&, bool = false);
  1887. void MarkNetworkUpdate() const;
  1888. void Remove();
  1889. void RemoveAttributeAnimation(const String&);
  1890. void RemoveInstanceDefault();
  1891. void RemoveObjectAnimation();
  1892. void ResetToDefault();
  1893. bool Save(File) const;
  1894. bool Save(VectorBuffer&) const;
  1895. bool SaveJSON(JSONValue&) const;
  1896. bool SaveXML(XMLElement&) const;
  1897. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1898. void SetAnimationTime(float);
  1899. bool SetAttribute(const String&, const Variant&);
  1900. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1901. void SetAttributeAnimationSpeed(const String&, float);
  1902. void SetAttributeAnimationTime(const String&, float);
  1903. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1904. void SetInterceptNetworkUpdate(const String&, bool);
  1905. void SetVertices(const Vector2&, const Vector2&);
  1906. // Properties:
  1907. bool animationEnabled;
  1908. /* readonly */
  1909. Array<Variant> attributeDefaults;
  1910. /* readonly */
  1911. Array<AttributeInfo> attributeInfos;
  1912. Array<Variant> attributes;
  1913. /* readonly */
  1914. String category;
  1915. int categoryBits;
  1916. float density;
  1917. bool enabled;
  1918. /* readonly */
  1919. bool enabledEffective;
  1920. float friction;
  1921. int groupIndex;
  1922. /* readonly */
  1923. uint id;
  1924. /* readonly */
  1925. float inertia;
  1926. int maskBits;
  1927. /* readonly */
  1928. float mass;
  1929. /* readonly */
  1930. Vector2 massCenter;
  1931. /* readonly */
  1932. Node node;
  1933. /* readonly */
  1934. uint numAttributes;
  1935. ObjectAnimation objectAnimation;
  1936. /* readonly */
  1937. int refs;
  1938. float restitution;
  1939. bool temporary;
  1940. bool trigger;
  1941. /* readonly */
  1942. StringHash type;
  1943. /* readonly */
  1944. String typeName;
  1945. Vector2 vertex1;
  1946. Vector2 vertex2;
  1947. /* readonly */
  1948. int weakRefs;
  1949. };
  1950. class CollisionPolygon2D
  1951. {
  1952. public:
  1953. // Methods:
  1954. void ApplyAttributes();
  1955. void DrawDebugGeometry(DebugRenderer, bool);
  1956. Variant GetAttribute(const String&) const;
  1957. ValueAnimation GetAttributeAnimation(const String&) const;
  1958. float GetAttributeAnimationSpeed(const String&) const;
  1959. float GetAttributeAnimationTime(const String&) const;
  1960. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1961. Variant GetAttributeDefault(const String&) const;
  1962. bool GetInterceptNetworkUpdate(const String&) const;
  1963. Array<Vector2> GetVertices() const;
  1964. bool HasSubscribedToEvent(Object, const String&);
  1965. bool HasSubscribedToEvent(const String&);
  1966. bool Load(File, bool = false);
  1967. bool Load(VectorBuffer&, bool = false);
  1968. bool LoadJSON(const JSONValue&, bool = false);
  1969. bool LoadXML(const XMLElement&, bool = false);
  1970. void MarkNetworkUpdate() const;
  1971. void Remove();
  1972. void RemoveAttributeAnimation(const String&);
  1973. void RemoveInstanceDefault();
  1974. void RemoveObjectAnimation();
  1975. void ResetToDefault();
  1976. bool Save(File) const;
  1977. bool Save(VectorBuffer&) const;
  1978. bool SaveJSON(JSONValue&) const;
  1979. bool SaveXML(XMLElement&) const;
  1980. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1981. void SetAnimationTime(float);
  1982. bool SetAttribute(const String&, const Variant&);
  1983. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1984. void SetAttributeAnimationSpeed(const String&, float);
  1985. void SetAttributeAnimationTime(const String&, float);
  1986. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1987. void SetInterceptNetworkUpdate(const String&, bool);
  1988. void SetVertex(uint, const Vector2&);
  1989. void SetVertices(Array<Vector2>);
  1990. const Vector2& GetVertex(uint) const;
  1991. // Properties:
  1992. bool animationEnabled;
  1993. /* readonly */
  1994. Array<Variant> attributeDefaults;
  1995. /* readonly */
  1996. Array<AttributeInfo> attributeInfos;
  1997. Array<Variant> attributes;
  1998. /* readonly */
  1999. String category;
  2000. int categoryBits;
  2001. float density;
  2002. bool enabled;
  2003. /* readonly */
  2004. bool enabledEffective;
  2005. float friction;
  2006. int groupIndex;
  2007. /* readonly */
  2008. uint id;
  2009. /* readonly */
  2010. float inertia;
  2011. int maskBits;
  2012. /* readonly */
  2013. float mass;
  2014. /* readonly */
  2015. Vector2 massCenter;
  2016. /* readonly */
  2017. Node node;
  2018. /* readonly */
  2019. uint numAttributes;
  2020. ObjectAnimation objectAnimation;
  2021. /* readonly */
  2022. int refs;
  2023. float restitution;
  2024. bool temporary;
  2025. bool trigger;
  2026. /* readonly */
  2027. StringHash type;
  2028. /* readonly */
  2029. String typeName;
  2030. uint vertexCount;
  2031. /* readonly */
  2032. int weakRefs;
  2033. };
  2034. class CollisionShape
  2035. {
  2036. public:
  2037. // Methods:
  2038. void ApplyAttributes();
  2039. void DrawDebugGeometry(DebugRenderer, bool);
  2040. Variant GetAttribute(const String&) const;
  2041. ValueAnimation GetAttributeAnimation(const String&) const;
  2042. float GetAttributeAnimationSpeed(const String&) const;
  2043. float GetAttributeAnimationTime(const String&) const;
  2044. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2045. Variant GetAttributeDefault(const String&) const;
  2046. bool GetInterceptNetworkUpdate(const String&) const;
  2047. bool HasSubscribedToEvent(Object, const String&);
  2048. bool HasSubscribedToEvent(const String&);
  2049. bool Load(File, bool = false);
  2050. bool Load(VectorBuffer&, bool = false);
  2051. bool LoadJSON(const JSONValue&, bool = false);
  2052. bool LoadXML(const XMLElement&, bool = false);
  2053. void MarkNetworkUpdate() const;
  2054. void Remove();
  2055. void RemoveAttributeAnimation(const String&);
  2056. void RemoveInstanceDefault();
  2057. void RemoveObjectAnimation();
  2058. void ResetToDefault();
  2059. bool Save(File) const;
  2060. bool Save(VectorBuffer&) const;
  2061. bool SaveJSON(JSONValue&) const;
  2062. bool SaveXML(XMLElement&) const;
  2063. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2064. void SetAnimationTime(float);
  2065. bool SetAttribute(const String&, const Variant&);
  2066. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2067. void SetAttributeAnimationSpeed(const String&, float);
  2068. void SetAttributeAnimationTime(const String&, float);
  2069. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2070. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2071. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2072. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2073. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2074. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2075. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2076. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2077. void SetInterceptNetworkUpdate(const String&, bool);
  2078. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2079. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2080. void SetTerrain(uint = 0);
  2081. void SetTransform(const Vector3&, const Quaternion&);
  2082. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2083. // Properties:
  2084. bool animationEnabled;
  2085. /* readonly */
  2086. Array<Variant> attributeDefaults;
  2087. /* readonly */
  2088. Array<AttributeInfo> attributeInfos;
  2089. Array<Variant> attributes;
  2090. /* readonly */
  2091. String category;
  2092. bool enabled;
  2093. /* readonly */
  2094. bool enabledEffective;
  2095. /* readonly */
  2096. uint id;
  2097. uint lodLevel;
  2098. float margin;
  2099. Model model;
  2100. /* readonly */
  2101. Node node;
  2102. /* readonly */
  2103. uint numAttributes;
  2104. ObjectAnimation objectAnimation;
  2105. Vector3 position;
  2106. /* readonly */
  2107. int refs;
  2108. Quaternion rotation;
  2109. ShapeType shapeType;
  2110. Vector3 size;
  2111. bool temporary;
  2112. /* readonly */
  2113. StringHash type;
  2114. /* readonly */
  2115. String typeName;
  2116. /* readonly */
  2117. int weakRefs;
  2118. /* readonly */
  2119. BoundingBox worldBoundingBox;
  2120. };
  2121. class CollisionShape2D
  2122. {
  2123. public:
  2124. // Methods:
  2125. void ApplyAttributes();
  2126. void DrawDebugGeometry(DebugRenderer, bool);
  2127. Variant GetAttribute(const String&) const;
  2128. ValueAnimation GetAttributeAnimation(const String&) const;
  2129. float GetAttributeAnimationSpeed(const String&) const;
  2130. float GetAttributeAnimationTime(const String&) const;
  2131. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2132. Variant GetAttributeDefault(const String&) const;
  2133. bool GetInterceptNetworkUpdate(const String&) const;
  2134. bool HasSubscribedToEvent(Object, const String&);
  2135. bool HasSubscribedToEvent(const String&);
  2136. bool Load(File, bool = false);
  2137. bool Load(VectorBuffer&, bool = false);
  2138. bool LoadJSON(const JSONValue&, bool = false);
  2139. bool LoadXML(const XMLElement&, bool = false);
  2140. void MarkNetworkUpdate() const;
  2141. void Remove();
  2142. void RemoveAttributeAnimation(const String&);
  2143. void RemoveInstanceDefault();
  2144. void RemoveObjectAnimation();
  2145. void ResetToDefault();
  2146. bool Save(File) const;
  2147. bool Save(VectorBuffer&) const;
  2148. bool SaveJSON(JSONValue&) const;
  2149. bool SaveXML(XMLElement&) const;
  2150. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2151. void SetAnimationTime(float);
  2152. bool SetAttribute(const String&, const Variant&);
  2153. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2154. void SetAttributeAnimationSpeed(const String&, float);
  2155. void SetAttributeAnimationTime(const String&, float);
  2156. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2157. void SetInterceptNetworkUpdate(const String&, bool);
  2158. // Properties:
  2159. bool animationEnabled;
  2160. /* readonly */
  2161. Array<Variant> attributeDefaults;
  2162. /* readonly */
  2163. Array<AttributeInfo> attributeInfos;
  2164. Array<Variant> attributes;
  2165. /* readonly */
  2166. String category;
  2167. int categoryBits;
  2168. float density;
  2169. bool enabled;
  2170. /* readonly */
  2171. bool enabledEffective;
  2172. float friction;
  2173. int groupIndex;
  2174. /* readonly */
  2175. uint id;
  2176. /* readonly */
  2177. float inertia;
  2178. int maskBits;
  2179. /* readonly */
  2180. float mass;
  2181. /* readonly */
  2182. Vector2 massCenter;
  2183. /* readonly */
  2184. Node node;
  2185. /* readonly */
  2186. uint numAttributes;
  2187. ObjectAnimation objectAnimation;
  2188. /* readonly */
  2189. int refs;
  2190. float restitution;
  2191. bool temporary;
  2192. bool trigger;
  2193. /* readonly */
  2194. StringHash type;
  2195. /* readonly */
  2196. String typeName;
  2197. /* readonly */
  2198. int weakRefs;
  2199. };
  2200. class Color
  2201. {
  2202. public:
  2203. Color();
  2204. Color(const Color&in);
  2205. Color(float, float, float, float);
  2206. Color(float, float, float);
  2207. Color(float[]&inout);
  2208. // Methods:
  2209. Color Abs() const;
  2210. float Average() const;
  2211. float Chroma() const;
  2212. void Clip(bool);
  2213. bool Equals() const;
  2214. void FromHSL(float, float, float, float);
  2215. void FromHSV(float, float, float, float);
  2216. float Hue() const;
  2217. void Invert(bool);
  2218. Color Lerp(const Color&, float) const;
  2219. float Lightness() const;
  2220. float Luma() const;
  2221. float MaxRGB() const;
  2222. float MinRGB() const;
  2223. float Range() const;
  2224. float SaturationHSL() const;
  2225. float SaturationHSV() const;
  2226. float SumRGB() const;
  2227. Vector3 ToHSL() const;
  2228. Vector3 ToHSV() const;
  2229. String ToString() const;
  2230. uint ToUInt() const;
  2231. float Value() const;
  2232. // Properties:
  2233. float a;
  2234. float b;
  2235. /* readonly */
  2236. Array<float> data;
  2237. float g;
  2238. float r;
  2239. /* readonly */
  2240. Vector3 rgb;
  2241. /* readonly */
  2242. Vector4 rgba;
  2243. };
  2244. class ColorFrame
  2245. {
  2246. public:
  2247. // Properties:
  2248. Color color;
  2249. float time;
  2250. };
  2251. class Component
  2252. {
  2253. public:
  2254. // Methods:
  2255. void ApplyAttributes();
  2256. void DrawDebugGeometry(DebugRenderer, bool);
  2257. Variant GetAttribute(const String&) const;
  2258. ValueAnimation GetAttributeAnimation(const String&) const;
  2259. float GetAttributeAnimationSpeed(const String&) const;
  2260. float GetAttributeAnimationTime(const String&) const;
  2261. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2262. Variant GetAttributeDefault(const String&) const;
  2263. bool GetInterceptNetworkUpdate(const String&) const;
  2264. bool HasSubscribedToEvent(Object, const String&);
  2265. bool HasSubscribedToEvent(const String&);
  2266. bool Load(File, bool = false);
  2267. bool Load(VectorBuffer&, bool = false);
  2268. bool LoadJSON(const JSONValue&, bool = false);
  2269. bool LoadXML(const XMLElement&, bool = false);
  2270. void MarkNetworkUpdate() const;
  2271. void Remove();
  2272. void RemoveAttributeAnimation(const String&);
  2273. void RemoveInstanceDefault();
  2274. void RemoveObjectAnimation();
  2275. void ResetToDefault();
  2276. bool Save(File) const;
  2277. bool Save(VectorBuffer&) const;
  2278. bool SaveJSON(JSONValue&) const;
  2279. bool SaveXML(XMLElement&) const;
  2280. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2281. void SetAnimationTime(float);
  2282. bool SetAttribute(const String&, const Variant&);
  2283. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2284. void SetAttributeAnimationSpeed(const String&, float);
  2285. void SetAttributeAnimationTime(const String&, float);
  2286. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2287. void SetInterceptNetworkUpdate(const String&, bool);
  2288. // Properties:
  2289. bool animationEnabled;
  2290. /* readonly */
  2291. Array<Variant> attributeDefaults;
  2292. /* readonly */
  2293. Array<AttributeInfo> attributeInfos;
  2294. Array<Variant> attributes;
  2295. /* readonly */
  2296. String category;
  2297. bool enabled;
  2298. /* readonly */
  2299. bool enabledEffective;
  2300. /* readonly */
  2301. uint id;
  2302. /* readonly */
  2303. Node node;
  2304. /* readonly */
  2305. uint numAttributes;
  2306. ObjectAnimation objectAnimation;
  2307. /* readonly */
  2308. int refs;
  2309. bool temporary;
  2310. /* readonly */
  2311. StringHash type;
  2312. /* readonly */
  2313. String typeName;
  2314. /* readonly */
  2315. int weakRefs;
  2316. };
  2317. class Connection
  2318. {
  2319. public:
  2320. // Methods:
  2321. void Disconnect(int = 0);
  2322. bool HasSubscribedToEvent(Object, const String&);
  2323. bool HasSubscribedToEvent(const String&);
  2324. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2325. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2326. void SendPackageToClient(PackageFile);
  2327. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2328. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2329. String ToString() const;
  2330. // Properties:
  2331. /* readonly */
  2332. String address;
  2333. /* readonly */
  2334. float bytesInPerSec;
  2335. /* readonly */
  2336. float bytesOutPerSec;
  2337. /* readonly */
  2338. String category;
  2339. /* readonly */
  2340. bool client;
  2341. /* readonly */
  2342. bool connectPending;
  2343. /* readonly */
  2344. bool connected;
  2345. Controls controls;
  2346. /* readonly */
  2347. String downloadName;
  2348. /* readonly */
  2349. float downloadProgress;
  2350. VariantMap identity;
  2351. /* readonly */
  2352. float lastHeardTime;
  2353. bool logStatistics;
  2354. /* readonly */
  2355. uint numDownloads;
  2356. /* readonly */
  2357. float packetsInPerSec;
  2358. /* readonly */
  2359. float packetsOutPerSec;
  2360. /* readonly */
  2361. uint16 port;
  2362. Vector3 position;
  2363. /* readonly */
  2364. int refs;
  2365. Quaternion rotation;
  2366. /* readonly */
  2367. float roundTripTime;
  2368. Scene scene;
  2369. /* readonly */
  2370. bool sceneLoaded;
  2371. uint8 timeStamp;
  2372. /* readonly */
  2373. StringHash type;
  2374. /* readonly */
  2375. String typeName;
  2376. /* readonly */
  2377. int weakRefs;
  2378. };
  2379. class Console
  2380. {
  2381. public:
  2382. // Methods:
  2383. void AddAutoComplete(const String&);
  2384. void CopySelectedRows() const;
  2385. bool HasSubscribedToEvent(Object, const String&);
  2386. bool HasSubscribedToEvent(const String&);
  2387. void RemoveAutoComplete(const String&);
  2388. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2389. void Toggle();
  2390. void UpdateElements();
  2391. // Properties:
  2392. bool autoVisibleOnError;
  2393. /* readonly */
  2394. BorderImage background;
  2395. /* readonly */
  2396. String category;
  2397. /* readonly */
  2398. Button closeButton;
  2399. String commandInterpreter;
  2400. XMLFile defaultStyle;
  2401. bool focusOnShow;
  2402. /* readonly */
  2403. uint historyPosition;
  2404. /* readonly */
  2405. Array<String> historyRow;
  2406. /* readonly */
  2407. LineEdit lineEdit;
  2408. uint numBufferedRows;
  2409. uint numHistoryRows;
  2410. uint numRows;
  2411. /* readonly */
  2412. int refs;
  2413. /* readonly */
  2414. StringHash type;
  2415. /* readonly */
  2416. String typeName;
  2417. bool visible;
  2418. /* readonly */
  2419. int weakRefs;
  2420. };
  2421. class Constraint
  2422. {
  2423. public:
  2424. // Methods:
  2425. void ApplyAttributes();
  2426. void DrawDebugGeometry(DebugRenderer, bool);
  2427. Variant GetAttribute(const String&) const;
  2428. ValueAnimation GetAttributeAnimation(const String&) const;
  2429. float GetAttributeAnimationSpeed(const String&) const;
  2430. float GetAttributeAnimationTime(const String&) const;
  2431. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2432. Variant GetAttributeDefault(const String&) const;
  2433. bool GetInterceptNetworkUpdate(const String&) const;
  2434. bool HasSubscribedToEvent(Object, const String&);
  2435. bool HasSubscribedToEvent(const String&);
  2436. bool Load(File, bool = false);
  2437. bool Load(VectorBuffer&, bool = false);
  2438. bool LoadJSON(const JSONValue&, bool = false);
  2439. bool LoadXML(const XMLElement&, bool = false);
  2440. void MarkNetworkUpdate() const;
  2441. void Remove();
  2442. void RemoveAttributeAnimation(const String&);
  2443. void RemoveInstanceDefault();
  2444. void RemoveObjectAnimation();
  2445. void ResetToDefault();
  2446. bool Save(File) const;
  2447. bool Save(VectorBuffer&) const;
  2448. bool SaveJSON(JSONValue&) const;
  2449. bool SaveXML(XMLElement&) const;
  2450. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2451. void SetAnimationTime(float);
  2452. bool SetAttribute(const String&, const Variant&);
  2453. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2454. void SetAttributeAnimationSpeed(const String&, float);
  2455. void SetAttributeAnimationTime(const String&, float);
  2456. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2457. void SetInterceptNetworkUpdate(const String&, bool);
  2458. // Properties:
  2459. bool animationEnabled;
  2460. /* readonly */
  2461. Array<Variant> attributeDefaults;
  2462. /* readonly */
  2463. Array<AttributeInfo> attributeInfos;
  2464. Array<Variant> attributes;
  2465. /* writeonly */
  2466. Vector3 axis;
  2467. /* readonly */
  2468. String category;
  2469. float cfm;
  2470. ConstraintType constraintType;
  2471. bool disableCollision;
  2472. bool enabled;
  2473. /* readonly */
  2474. bool enabledEffective;
  2475. float erp;
  2476. Vector2 highLimit;
  2477. /* readonly */
  2478. uint id;
  2479. Vector2 lowLimit;
  2480. /* readonly */
  2481. Node node;
  2482. /* readonly */
  2483. uint numAttributes;
  2484. ObjectAnimation objectAnimation;
  2485. /* writeonly */
  2486. Vector3 otherAxis;
  2487. RigidBody otherBody;
  2488. Vector3 otherPosition;
  2489. Quaternion otherRotation;
  2490. /* readonly */
  2491. RigidBody ownBody;
  2492. Vector3 position;
  2493. /* readonly */
  2494. int refs;
  2495. Quaternion rotation;
  2496. bool temporary;
  2497. /* readonly */
  2498. StringHash type;
  2499. /* readonly */
  2500. String typeName;
  2501. /* readonly */
  2502. int weakRefs;
  2503. Vector3 worldPosition;
  2504. };
  2505. class Constraint2D
  2506. {
  2507. public:
  2508. // Methods:
  2509. void ApplyAttributes();
  2510. void DrawDebugGeometry(DebugRenderer, bool);
  2511. Variant GetAttribute(const String&) const;
  2512. ValueAnimation GetAttributeAnimation(const String&) const;
  2513. float GetAttributeAnimationSpeed(const String&) const;
  2514. float GetAttributeAnimationTime(const String&) const;
  2515. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2516. Variant GetAttributeDefault(const String&) const;
  2517. bool GetInterceptNetworkUpdate(const String&) const;
  2518. bool HasSubscribedToEvent(Object, const String&);
  2519. bool HasSubscribedToEvent(const String&);
  2520. bool Load(File, bool = false);
  2521. bool Load(VectorBuffer&, bool = false);
  2522. bool LoadJSON(const JSONValue&, bool = false);
  2523. bool LoadXML(const XMLElement&, bool = false);
  2524. void MarkNetworkUpdate() const;
  2525. void Remove();
  2526. void RemoveAttributeAnimation(const String&);
  2527. void RemoveInstanceDefault();
  2528. void RemoveObjectAnimation();
  2529. void ResetToDefault();
  2530. bool Save(File) const;
  2531. bool Save(VectorBuffer&) const;
  2532. bool SaveJSON(JSONValue&) const;
  2533. bool SaveXML(XMLElement&) const;
  2534. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2535. void SetAnimationTime(float);
  2536. bool SetAttribute(const String&, const Variant&);
  2537. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2538. void SetAttributeAnimationSpeed(const String&, float);
  2539. void SetAttributeAnimationTime(const String&, float);
  2540. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2541. void SetInterceptNetworkUpdate(const String&, bool);
  2542. // Properties:
  2543. bool animationEnabled;
  2544. /* readonly */
  2545. Array<Variant> attributeDefaults;
  2546. /* readonly */
  2547. Array<AttributeInfo> attributeInfos;
  2548. Array<Variant> attributes;
  2549. /* readonly */
  2550. String category;
  2551. bool collideConnected;
  2552. bool enabled;
  2553. /* readonly */
  2554. bool enabledEffective;
  2555. /* readonly */
  2556. uint id;
  2557. /* readonly */
  2558. Node node;
  2559. /* readonly */
  2560. uint numAttributes;
  2561. ObjectAnimation objectAnimation;
  2562. RigidBody2D otherBody;
  2563. /* readonly */
  2564. RigidBody2D ownerBody;
  2565. /* readonly */
  2566. int refs;
  2567. bool temporary;
  2568. /* readonly */
  2569. StringHash type;
  2570. /* readonly */
  2571. String typeName;
  2572. /* readonly */
  2573. int weakRefs;
  2574. };
  2575. class ConstraintDistance2D
  2576. {
  2577. public:
  2578. // Methods:
  2579. void ApplyAttributes();
  2580. void DrawDebugGeometry(DebugRenderer, bool);
  2581. Variant GetAttribute(const String&) const;
  2582. ValueAnimation GetAttributeAnimation(const String&) const;
  2583. float GetAttributeAnimationSpeed(const String&) const;
  2584. float GetAttributeAnimationTime(const String&) const;
  2585. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2586. Variant GetAttributeDefault(const String&) const;
  2587. bool GetInterceptNetworkUpdate(const String&) const;
  2588. bool HasSubscribedToEvent(Object, const String&);
  2589. bool HasSubscribedToEvent(const String&);
  2590. bool Load(File, bool = false);
  2591. bool Load(VectorBuffer&, bool = false);
  2592. bool LoadJSON(const JSONValue&, bool = false);
  2593. bool LoadXML(const XMLElement&, bool = false);
  2594. void MarkNetworkUpdate() const;
  2595. void Remove();
  2596. void RemoveAttributeAnimation(const String&);
  2597. void RemoveInstanceDefault();
  2598. void RemoveObjectAnimation();
  2599. void ResetToDefault();
  2600. bool Save(File) const;
  2601. bool Save(VectorBuffer&) const;
  2602. bool SaveJSON(JSONValue&) const;
  2603. bool SaveXML(XMLElement&) const;
  2604. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2605. void SetAnimationTime(float);
  2606. bool SetAttribute(const String&, const Variant&);
  2607. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2608. void SetAttributeAnimationSpeed(const String&, float);
  2609. void SetAttributeAnimationTime(const String&, float);
  2610. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2611. void SetInterceptNetworkUpdate(const String&, bool);
  2612. // Properties:
  2613. bool animationEnabled;
  2614. /* readonly */
  2615. Array<Variant> attributeDefaults;
  2616. /* readonly */
  2617. Array<AttributeInfo> attributeInfos;
  2618. Array<Variant> attributes;
  2619. /* readonly */
  2620. String category;
  2621. bool collideConnected;
  2622. float dampingRatio;
  2623. bool enabled;
  2624. /* readonly */
  2625. bool enabledEffective;
  2626. float frequencyHz;
  2627. /* readonly */
  2628. uint id;
  2629. float length;
  2630. /* readonly */
  2631. Node node;
  2632. /* readonly */
  2633. uint numAttributes;
  2634. ObjectAnimation objectAnimation;
  2635. RigidBody2D otherBody;
  2636. Vector2 otherBodyAnchor;
  2637. /* readonly */
  2638. RigidBody2D ownerBody;
  2639. Vector2 ownerBodyAnchor;
  2640. /* readonly */
  2641. int refs;
  2642. bool temporary;
  2643. /* readonly */
  2644. StringHash type;
  2645. /* readonly */
  2646. String typeName;
  2647. /* readonly */
  2648. int weakRefs;
  2649. };
  2650. class ConstraintFriction2D
  2651. {
  2652. public:
  2653. // Methods:
  2654. void ApplyAttributes();
  2655. void DrawDebugGeometry(DebugRenderer, bool);
  2656. Variant GetAttribute(const String&) const;
  2657. ValueAnimation GetAttributeAnimation(const String&) const;
  2658. float GetAttributeAnimationSpeed(const String&) const;
  2659. float GetAttributeAnimationTime(const String&) const;
  2660. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2661. Variant GetAttributeDefault(const String&) const;
  2662. bool GetInterceptNetworkUpdate(const String&) const;
  2663. bool HasSubscribedToEvent(Object, const String&);
  2664. bool HasSubscribedToEvent(const String&);
  2665. bool Load(File, bool = false);
  2666. bool Load(VectorBuffer&, bool = false);
  2667. bool LoadJSON(const JSONValue&, bool = false);
  2668. bool LoadXML(const XMLElement&, bool = false);
  2669. void MarkNetworkUpdate() const;
  2670. void Remove();
  2671. void RemoveAttributeAnimation(const String&);
  2672. void RemoveInstanceDefault();
  2673. void RemoveObjectAnimation();
  2674. void ResetToDefault();
  2675. bool Save(File) const;
  2676. bool Save(VectorBuffer&) const;
  2677. bool SaveJSON(JSONValue&) const;
  2678. bool SaveXML(XMLElement&) const;
  2679. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2680. void SetAnimationTime(float);
  2681. bool SetAttribute(const String&, const Variant&);
  2682. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2683. void SetAttributeAnimationSpeed(const String&, float);
  2684. void SetAttributeAnimationTime(const String&, float);
  2685. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2686. void SetInterceptNetworkUpdate(const String&, bool);
  2687. // Properties:
  2688. Vector2 anchor;
  2689. bool animationEnabled;
  2690. /* readonly */
  2691. Array<Variant> attributeDefaults;
  2692. /* readonly */
  2693. Array<AttributeInfo> attributeInfos;
  2694. Array<Variant> attributes;
  2695. /* readonly */
  2696. String category;
  2697. bool collideConnected;
  2698. bool enabled;
  2699. /* readonly */
  2700. bool enabledEffective;
  2701. /* readonly */
  2702. uint id;
  2703. float maxForce;
  2704. float maxTorque;
  2705. /* readonly */
  2706. Node node;
  2707. /* readonly */
  2708. uint numAttributes;
  2709. ObjectAnimation objectAnimation;
  2710. RigidBody2D otherBody;
  2711. /* readonly */
  2712. RigidBody2D ownerBody;
  2713. /* readonly */
  2714. int refs;
  2715. bool temporary;
  2716. /* readonly */
  2717. StringHash type;
  2718. /* readonly */
  2719. String typeName;
  2720. /* readonly */
  2721. int weakRefs;
  2722. };
  2723. class ConstraintGear2D
  2724. {
  2725. public:
  2726. // Methods:
  2727. void ApplyAttributes();
  2728. void DrawDebugGeometry(DebugRenderer, bool);
  2729. Variant GetAttribute(const String&) const;
  2730. ValueAnimation GetAttributeAnimation(const String&) const;
  2731. float GetAttributeAnimationSpeed(const String&) const;
  2732. float GetAttributeAnimationTime(const String&) const;
  2733. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2734. Variant GetAttributeDefault(const String&) const;
  2735. bool GetInterceptNetworkUpdate(const String&) const;
  2736. bool HasSubscribedToEvent(Object, const String&);
  2737. bool HasSubscribedToEvent(const String&);
  2738. bool Load(File, bool = false);
  2739. bool Load(VectorBuffer&, bool = false);
  2740. bool LoadJSON(const JSONValue&, bool = false);
  2741. bool LoadXML(const XMLElement&, bool = false);
  2742. void MarkNetworkUpdate() const;
  2743. void Remove();
  2744. void RemoveAttributeAnimation(const String&);
  2745. void RemoveInstanceDefault();
  2746. void RemoveObjectAnimation();
  2747. void ResetToDefault();
  2748. bool Save(File) const;
  2749. bool Save(VectorBuffer&) const;
  2750. bool SaveJSON(JSONValue&) const;
  2751. bool SaveXML(XMLElement&) const;
  2752. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2753. void SetAnimationTime(float);
  2754. bool SetAttribute(const String&, const Variant&);
  2755. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2756. void SetAttributeAnimationSpeed(const String&, float);
  2757. void SetAttributeAnimationTime(const String&, float);
  2758. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2759. void SetInterceptNetworkUpdate(const String&, bool);
  2760. // Properties:
  2761. bool animationEnabled;
  2762. /* readonly */
  2763. Array<Variant> attributeDefaults;
  2764. /* readonly */
  2765. Array<AttributeInfo> attributeInfos;
  2766. Array<Variant> attributes;
  2767. /* readonly */
  2768. String category;
  2769. bool collideConnected;
  2770. bool enabled;
  2771. /* readonly */
  2772. bool enabledEffective;
  2773. /* readonly */
  2774. uint id;
  2775. /* readonly */
  2776. Node node;
  2777. /* readonly */
  2778. uint numAttributes;
  2779. ObjectAnimation objectAnimation;
  2780. RigidBody2D otherBody;
  2781. Constraint2D otherConstraint;
  2782. /* readonly */
  2783. RigidBody2D ownerBody;
  2784. Constraint2D ownerConstraint;
  2785. float ratio;
  2786. /* readonly */
  2787. int refs;
  2788. bool temporary;
  2789. /* readonly */
  2790. StringHash type;
  2791. /* readonly */
  2792. String typeName;
  2793. /* readonly */
  2794. int weakRefs;
  2795. };
  2796. class ConstraintMotor2D
  2797. {
  2798. public:
  2799. // Methods:
  2800. void ApplyAttributes();
  2801. void DrawDebugGeometry(DebugRenderer, bool);
  2802. Variant GetAttribute(const String&) const;
  2803. ValueAnimation GetAttributeAnimation(const String&) const;
  2804. float GetAttributeAnimationSpeed(const String&) const;
  2805. float GetAttributeAnimationTime(const String&) const;
  2806. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2807. Variant GetAttributeDefault(const String&) const;
  2808. bool GetInterceptNetworkUpdate(const String&) const;
  2809. bool HasSubscribedToEvent(Object, const String&);
  2810. bool HasSubscribedToEvent(const String&);
  2811. bool Load(File, bool = false);
  2812. bool Load(VectorBuffer&, bool = false);
  2813. bool LoadJSON(const JSONValue&, bool = false);
  2814. bool LoadXML(const XMLElement&, bool = false);
  2815. void MarkNetworkUpdate() const;
  2816. void Remove();
  2817. void RemoveAttributeAnimation(const String&);
  2818. void RemoveInstanceDefault();
  2819. void RemoveObjectAnimation();
  2820. void ResetToDefault();
  2821. bool Save(File) const;
  2822. bool Save(VectorBuffer&) const;
  2823. bool SaveJSON(JSONValue&) const;
  2824. bool SaveXML(XMLElement&) const;
  2825. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2826. void SetAnimationTime(float);
  2827. bool SetAttribute(const String&, const Variant&);
  2828. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2829. void SetAttributeAnimationSpeed(const String&, float);
  2830. void SetAttributeAnimationTime(const String&, float);
  2831. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2832. void SetInterceptNetworkUpdate(const String&, bool);
  2833. // Properties:
  2834. float angularOffset;
  2835. bool animationEnabled;
  2836. /* readonly */
  2837. Array<Variant> attributeDefaults;
  2838. /* readonly */
  2839. Array<AttributeInfo> attributeInfos;
  2840. Array<Variant> attributes;
  2841. /* readonly */
  2842. String category;
  2843. bool collideConnected;
  2844. float correctionFactor;
  2845. bool enabled;
  2846. /* readonly */
  2847. bool enabledEffective;
  2848. /* readonly */
  2849. uint id;
  2850. Vector2 linearOffset;
  2851. float maxForce;
  2852. float maxTorque;
  2853. /* readonly */
  2854. Node node;
  2855. /* readonly */
  2856. uint numAttributes;
  2857. ObjectAnimation objectAnimation;
  2858. RigidBody2D otherBody;
  2859. /* readonly */
  2860. RigidBody2D ownerBody;
  2861. /* readonly */
  2862. int refs;
  2863. bool temporary;
  2864. /* readonly */
  2865. StringHash type;
  2866. /* readonly */
  2867. String typeName;
  2868. /* readonly */
  2869. int weakRefs;
  2870. };
  2871. class ConstraintMouse2D
  2872. {
  2873. public:
  2874. // Methods:
  2875. void ApplyAttributes();
  2876. void DrawDebugGeometry(DebugRenderer, bool);
  2877. Variant GetAttribute(const String&) const;
  2878. ValueAnimation GetAttributeAnimation(const String&) const;
  2879. float GetAttributeAnimationSpeed(const String&) const;
  2880. float GetAttributeAnimationTime(const String&) const;
  2881. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2882. Variant GetAttributeDefault(const String&) const;
  2883. bool GetInterceptNetworkUpdate(const String&) const;
  2884. bool HasSubscribedToEvent(Object, const String&);
  2885. bool HasSubscribedToEvent(const String&);
  2886. bool Load(File, bool = false);
  2887. bool Load(VectorBuffer&, bool = false);
  2888. bool LoadJSON(const JSONValue&, bool = false);
  2889. bool LoadXML(const XMLElement&, bool = false);
  2890. void MarkNetworkUpdate() const;
  2891. void Remove();
  2892. void RemoveAttributeAnimation(const String&);
  2893. void RemoveInstanceDefault();
  2894. void RemoveObjectAnimation();
  2895. void ResetToDefault();
  2896. bool Save(File) const;
  2897. bool Save(VectorBuffer&) const;
  2898. bool SaveJSON(JSONValue&) const;
  2899. bool SaveXML(XMLElement&) const;
  2900. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2901. void SetAnimationTime(float);
  2902. bool SetAttribute(const String&, const Variant&);
  2903. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2904. void SetAttributeAnimationSpeed(const String&, float);
  2905. void SetAttributeAnimationTime(const String&, float);
  2906. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2907. void SetInterceptNetworkUpdate(const String&, bool);
  2908. // Properties:
  2909. bool animationEnabled;
  2910. /* readonly */
  2911. Array<Variant> attributeDefaults;
  2912. /* readonly */
  2913. Array<AttributeInfo> attributeInfos;
  2914. Array<Variant> attributes;
  2915. /* readonly */
  2916. String category;
  2917. bool collideConnected;
  2918. float dampingRatio;
  2919. bool enabled;
  2920. /* readonly */
  2921. bool enabledEffective;
  2922. float frequencyHz;
  2923. /* readonly */
  2924. uint id;
  2925. float maxForce;
  2926. /* readonly */
  2927. Node node;
  2928. /* readonly */
  2929. uint numAttributes;
  2930. ObjectAnimation objectAnimation;
  2931. RigidBody2D otherBody;
  2932. /* readonly */
  2933. RigidBody2D ownerBody;
  2934. /* readonly */
  2935. int refs;
  2936. Vector2 target;
  2937. bool temporary;
  2938. /* readonly */
  2939. StringHash type;
  2940. /* readonly */
  2941. String typeName;
  2942. /* readonly */
  2943. int weakRefs;
  2944. };
  2945. class ConstraintPrismatic2D
  2946. {
  2947. public:
  2948. // Methods:
  2949. void ApplyAttributes();
  2950. void DrawDebugGeometry(DebugRenderer, bool);
  2951. Variant GetAttribute(const String&) const;
  2952. ValueAnimation GetAttributeAnimation(const String&) const;
  2953. float GetAttributeAnimationSpeed(const String&) const;
  2954. float GetAttributeAnimationTime(const String&) const;
  2955. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2956. Variant GetAttributeDefault(const String&) const;
  2957. bool GetInterceptNetworkUpdate(const String&) const;
  2958. bool HasSubscribedToEvent(Object, const String&);
  2959. bool HasSubscribedToEvent(const String&);
  2960. bool Load(File, bool = false);
  2961. bool Load(VectorBuffer&, bool = false);
  2962. bool LoadJSON(const JSONValue&, bool = false);
  2963. bool LoadXML(const XMLElement&, bool = false);
  2964. void MarkNetworkUpdate() const;
  2965. void Remove();
  2966. void RemoveAttributeAnimation(const String&);
  2967. void RemoveInstanceDefault();
  2968. void RemoveObjectAnimation();
  2969. void ResetToDefault();
  2970. bool Save(File) const;
  2971. bool Save(VectorBuffer&) const;
  2972. bool SaveJSON(JSONValue&) const;
  2973. bool SaveXML(XMLElement&) const;
  2974. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2975. void SetAnimationTime(float);
  2976. bool SetAttribute(const String&, const Variant&);
  2977. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2978. void SetAttributeAnimationSpeed(const String&, float);
  2979. void SetAttributeAnimationTime(const String&, float);
  2980. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2981. void SetInterceptNetworkUpdate(const String&, bool);
  2982. // Properties:
  2983. Vector2 anchor;
  2984. bool animationEnabled;
  2985. /* readonly */
  2986. Array<Variant> attributeDefaults;
  2987. /* readonly */
  2988. Array<AttributeInfo> attributeInfos;
  2989. Array<Variant> attributes;
  2990. Vector2 axis;
  2991. /* readonly */
  2992. String category;
  2993. bool collideConnected;
  2994. bool enableLimit;
  2995. bool enableMotor;
  2996. bool enabled;
  2997. /* readonly */
  2998. bool enabledEffective;
  2999. /* readonly */
  3000. uint id;
  3001. float lowerTranslation;
  3002. float maxMotorForce;
  3003. float motorSpeed;
  3004. /* readonly */
  3005. Node node;
  3006. /* readonly */
  3007. uint numAttributes;
  3008. ObjectAnimation objectAnimation;
  3009. RigidBody2D otherBody;
  3010. /* readonly */
  3011. RigidBody2D ownerBody;
  3012. /* readonly */
  3013. int refs;
  3014. bool temporary;
  3015. /* readonly */
  3016. StringHash type;
  3017. /* readonly */
  3018. String typeName;
  3019. float upperTranslation;
  3020. /* readonly */
  3021. int weakRefs;
  3022. };
  3023. class ConstraintPulley2D
  3024. {
  3025. public:
  3026. // Methods:
  3027. void ApplyAttributes();
  3028. void DrawDebugGeometry(DebugRenderer, bool);
  3029. Variant GetAttribute(const String&) const;
  3030. ValueAnimation GetAttributeAnimation(const String&) const;
  3031. float GetAttributeAnimationSpeed(const String&) const;
  3032. float GetAttributeAnimationTime(const String&) const;
  3033. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3034. Variant GetAttributeDefault(const String&) const;
  3035. bool GetInterceptNetworkUpdate(const String&) const;
  3036. bool HasSubscribedToEvent(Object, const String&);
  3037. bool HasSubscribedToEvent(const String&);
  3038. bool Load(File, bool = false);
  3039. bool Load(VectorBuffer&, bool = false);
  3040. bool LoadJSON(const JSONValue&, bool = false);
  3041. bool LoadXML(const XMLElement&, bool = false);
  3042. void MarkNetworkUpdate() const;
  3043. void Remove();
  3044. void RemoveAttributeAnimation(const String&);
  3045. void RemoveInstanceDefault();
  3046. void RemoveObjectAnimation();
  3047. void ResetToDefault();
  3048. bool Save(File) const;
  3049. bool Save(VectorBuffer&) const;
  3050. bool SaveJSON(JSONValue&) const;
  3051. bool SaveXML(XMLElement&) const;
  3052. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3053. void SetAnimationTime(float);
  3054. bool SetAttribute(const String&, const Variant&);
  3055. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3056. void SetAttributeAnimationSpeed(const String&, float);
  3057. void SetAttributeAnimationTime(const String&, float);
  3058. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3059. void SetInterceptNetworkUpdate(const String&, bool);
  3060. // Properties:
  3061. bool animationEnabled;
  3062. /* readonly */
  3063. Array<Variant> attributeDefaults;
  3064. /* readonly */
  3065. Array<AttributeInfo> attributeInfos;
  3066. Array<Variant> attributes;
  3067. /* readonly */
  3068. String category;
  3069. bool collideConnected;
  3070. bool enabled;
  3071. /* readonly */
  3072. bool enabledEffective;
  3073. /* readonly */
  3074. uint id;
  3075. /* readonly */
  3076. Node node;
  3077. /* readonly */
  3078. uint numAttributes;
  3079. ObjectAnimation objectAnimation;
  3080. RigidBody2D otherBody;
  3081. Vector2 otherBodyAnchor;
  3082. Vector2 otherBodyGroundAnchor;
  3083. /* readonly */
  3084. RigidBody2D ownerBody;
  3085. Vector2 ownerBodyAnchor;
  3086. Vector2 ownerBodyGroundAnchor;
  3087. float ratio;
  3088. /* readonly */
  3089. int refs;
  3090. bool temporary;
  3091. /* readonly */
  3092. StringHash type;
  3093. /* readonly */
  3094. String typeName;
  3095. /* readonly */
  3096. int weakRefs;
  3097. };
  3098. class ConstraintRevolute2D
  3099. {
  3100. public:
  3101. // Methods:
  3102. void ApplyAttributes();
  3103. void DrawDebugGeometry(DebugRenderer, bool);
  3104. Variant GetAttribute(const String&) const;
  3105. ValueAnimation GetAttributeAnimation(const String&) const;
  3106. float GetAttributeAnimationSpeed(const String&) const;
  3107. float GetAttributeAnimationTime(const String&) const;
  3108. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3109. Variant GetAttributeDefault(const String&) const;
  3110. bool GetInterceptNetworkUpdate(const String&) const;
  3111. bool HasSubscribedToEvent(Object, const String&);
  3112. bool HasSubscribedToEvent(const String&);
  3113. bool Load(File, bool = false);
  3114. bool Load(VectorBuffer&, bool = false);
  3115. bool LoadJSON(const JSONValue&, bool = false);
  3116. bool LoadXML(const XMLElement&, bool = false);
  3117. void MarkNetworkUpdate() const;
  3118. void Remove();
  3119. void RemoveAttributeAnimation(const String&);
  3120. void RemoveInstanceDefault();
  3121. void RemoveObjectAnimation();
  3122. void ResetToDefault();
  3123. bool Save(File) const;
  3124. bool Save(VectorBuffer&) const;
  3125. bool SaveJSON(JSONValue&) const;
  3126. bool SaveXML(XMLElement&) const;
  3127. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3128. void SetAnimationTime(float);
  3129. bool SetAttribute(const String&, const Variant&);
  3130. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3131. void SetAttributeAnimationSpeed(const String&, float);
  3132. void SetAttributeAnimationTime(const String&, float);
  3133. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3134. void SetInterceptNetworkUpdate(const String&, bool);
  3135. // Properties:
  3136. Vector2 anchor;
  3137. bool animationEnabled;
  3138. /* readonly */
  3139. Array<Variant> attributeDefaults;
  3140. /* readonly */
  3141. Array<AttributeInfo> attributeInfos;
  3142. Array<Variant> attributes;
  3143. /* readonly */
  3144. String category;
  3145. bool collideConnected;
  3146. bool enableLimit;
  3147. bool enableMotor;
  3148. bool enabled;
  3149. /* readonly */
  3150. bool enabledEffective;
  3151. /* readonly */
  3152. uint id;
  3153. float lowerAngle;
  3154. float maxMotorTorque;
  3155. float motorSpeed;
  3156. /* readonly */
  3157. Node node;
  3158. /* readonly */
  3159. uint numAttributes;
  3160. ObjectAnimation objectAnimation;
  3161. RigidBody2D otherBody;
  3162. /* readonly */
  3163. RigidBody2D ownerBody;
  3164. /* readonly */
  3165. int refs;
  3166. bool temporary;
  3167. /* readonly */
  3168. StringHash type;
  3169. /* readonly */
  3170. String typeName;
  3171. float upperAngle;
  3172. /* readonly */
  3173. int weakRefs;
  3174. };
  3175. class ConstraintRope2D
  3176. {
  3177. public:
  3178. // Methods:
  3179. void ApplyAttributes();
  3180. void DrawDebugGeometry(DebugRenderer, bool);
  3181. Variant GetAttribute(const String&) const;
  3182. ValueAnimation GetAttributeAnimation(const String&) const;
  3183. float GetAttributeAnimationSpeed(const String&) const;
  3184. float GetAttributeAnimationTime(const String&) const;
  3185. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3186. Variant GetAttributeDefault(const String&) const;
  3187. bool GetInterceptNetworkUpdate(const String&) const;
  3188. bool HasSubscribedToEvent(Object, const String&);
  3189. bool HasSubscribedToEvent(const String&);
  3190. bool Load(File, bool = false);
  3191. bool Load(VectorBuffer&, bool = false);
  3192. bool LoadJSON(const JSONValue&, bool = false);
  3193. bool LoadXML(const XMLElement&, bool = false);
  3194. void MarkNetworkUpdate() const;
  3195. void Remove();
  3196. void RemoveAttributeAnimation(const String&);
  3197. void RemoveInstanceDefault();
  3198. void RemoveObjectAnimation();
  3199. void ResetToDefault();
  3200. bool Save(File) const;
  3201. bool Save(VectorBuffer&) const;
  3202. bool SaveJSON(JSONValue&) const;
  3203. bool SaveXML(XMLElement&) const;
  3204. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3205. void SetAnimationTime(float);
  3206. bool SetAttribute(const String&, const Variant&);
  3207. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3208. void SetAttributeAnimationSpeed(const String&, float);
  3209. void SetAttributeAnimationTime(const String&, float);
  3210. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3211. void SetInterceptNetworkUpdate(const String&, bool);
  3212. // Properties:
  3213. bool animationEnabled;
  3214. /* readonly */
  3215. Array<Variant> attributeDefaults;
  3216. /* readonly */
  3217. Array<AttributeInfo> attributeInfos;
  3218. Array<Variant> attributes;
  3219. /* readonly */
  3220. String category;
  3221. bool collideConnected;
  3222. bool enabled;
  3223. /* readonly */
  3224. bool enabledEffective;
  3225. /* readonly */
  3226. uint id;
  3227. float maxLength;
  3228. /* readonly */
  3229. Node node;
  3230. /* readonly */
  3231. uint numAttributes;
  3232. ObjectAnimation objectAnimation;
  3233. RigidBody2D otherBody;
  3234. Vector2 otherBodyAnchor;
  3235. /* readonly */
  3236. RigidBody2D ownerBody;
  3237. Vector2 ownerBodyAnchor;
  3238. /* readonly */
  3239. int refs;
  3240. bool temporary;
  3241. /* readonly */
  3242. StringHash type;
  3243. /* readonly */
  3244. String typeName;
  3245. /* readonly */
  3246. int weakRefs;
  3247. };
  3248. class ConstraintWeld2D
  3249. {
  3250. public:
  3251. // Methods:
  3252. void ApplyAttributes();
  3253. void DrawDebugGeometry(DebugRenderer, bool);
  3254. Variant GetAttribute(const String&) const;
  3255. ValueAnimation GetAttributeAnimation(const String&) const;
  3256. float GetAttributeAnimationSpeed(const String&) const;
  3257. float GetAttributeAnimationTime(const String&) const;
  3258. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3259. Variant GetAttributeDefault(const String&) const;
  3260. bool GetInterceptNetworkUpdate(const String&) const;
  3261. bool HasSubscribedToEvent(Object, const String&);
  3262. bool HasSubscribedToEvent(const String&);
  3263. bool Load(File, bool = false);
  3264. bool Load(VectorBuffer&, bool = false);
  3265. bool LoadJSON(const JSONValue&, bool = false);
  3266. bool LoadXML(const XMLElement&, bool = false);
  3267. void MarkNetworkUpdate() const;
  3268. void Remove();
  3269. void RemoveAttributeAnimation(const String&);
  3270. void RemoveInstanceDefault();
  3271. void RemoveObjectAnimation();
  3272. void ResetToDefault();
  3273. bool Save(File) const;
  3274. bool Save(VectorBuffer&) const;
  3275. bool SaveJSON(JSONValue&) const;
  3276. bool SaveXML(XMLElement&) const;
  3277. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3278. void SetAnimationTime(float);
  3279. bool SetAttribute(const String&, const Variant&);
  3280. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3281. void SetAttributeAnimationSpeed(const String&, float);
  3282. void SetAttributeAnimationTime(const String&, float);
  3283. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3284. void SetInterceptNetworkUpdate(const String&, bool);
  3285. // Properties:
  3286. Vector2 anchor;
  3287. bool animationEnabled;
  3288. /* readonly */
  3289. Array<Variant> attributeDefaults;
  3290. /* readonly */
  3291. Array<AttributeInfo> attributeInfos;
  3292. Array<Variant> attributes;
  3293. /* readonly */
  3294. String category;
  3295. bool collideConnected;
  3296. float dampingRatio;
  3297. bool enabled;
  3298. /* readonly */
  3299. bool enabledEffective;
  3300. float frequencyHz;
  3301. /* readonly */
  3302. uint id;
  3303. /* readonly */
  3304. Node node;
  3305. /* readonly */
  3306. uint numAttributes;
  3307. ObjectAnimation objectAnimation;
  3308. RigidBody2D otherBody;
  3309. /* readonly */
  3310. RigidBody2D ownerBody;
  3311. /* readonly */
  3312. int refs;
  3313. bool temporary;
  3314. /* readonly */
  3315. StringHash type;
  3316. /* readonly */
  3317. String typeName;
  3318. /* readonly */
  3319. int weakRefs;
  3320. };
  3321. class ConstraintWheel2D
  3322. {
  3323. public:
  3324. // Methods:
  3325. void ApplyAttributes();
  3326. void DrawDebugGeometry(DebugRenderer, bool);
  3327. Variant GetAttribute(const String&) const;
  3328. ValueAnimation GetAttributeAnimation(const String&) const;
  3329. float GetAttributeAnimationSpeed(const String&) const;
  3330. float GetAttributeAnimationTime(const String&) const;
  3331. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3332. Variant GetAttributeDefault(const String&) const;
  3333. bool GetInterceptNetworkUpdate(const String&) const;
  3334. bool HasSubscribedToEvent(Object, const String&);
  3335. bool HasSubscribedToEvent(const String&);
  3336. bool Load(File, bool = false);
  3337. bool Load(VectorBuffer&, bool = false);
  3338. bool LoadJSON(const JSONValue&, bool = false);
  3339. bool LoadXML(const XMLElement&, bool = false);
  3340. void MarkNetworkUpdate() const;
  3341. void Remove();
  3342. void RemoveAttributeAnimation(const String&);
  3343. void RemoveInstanceDefault();
  3344. void RemoveObjectAnimation();
  3345. void ResetToDefault();
  3346. bool Save(File) const;
  3347. bool Save(VectorBuffer&) const;
  3348. bool SaveJSON(JSONValue&) const;
  3349. bool SaveXML(XMLElement&) const;
  3350. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3351. void SetAnimationTime(float);
  3352. bool SetAttribute(const String&, const Variant&);
  3353. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3354. void SetAttributeAnimationSpeed(const String&, float);
  3355. void SetAttributeAnimationTime(const String&, float);
  3356. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3357. void SetInterceptNetworkUpdate(const String&, bool);
  3358. // Properties:
  3359. Vector2 anchor;
  3360. bool animationEnabled;
  3361. /* readonly */
  3362. Array<Variant> attributeDefaults;
  3363. /* readonly */
  3364. Array<AttributeInfo> attributeInfos;
  3365. Array<Variant> attributes;
  3366. Vector2 axis;
  3367. /* readonly */
  3368. String category;
  3369. bool collideConnected;
  3370. float dampingRatio;
  3371. bool enableMotor;
  3372. bool enabled;
  3373. /* readonly */
  3374. bool enabledEffective;
  3375. float frequencyHz;
  3376. /* readonly */
  3377. uint id;
  3378. float maxMotorTorque;
  3379. float motorSpeed;
  3380. /* readonly */
  3381. Node node;
  3382. /* readonly */
  3383. uint numAttributes;
  3384. ObjectAnimation objectAnimation;
  3385. RigidBody2D otherBody;
  3386. /* readonly */
  3387. RigidBody2D ownerBody;
  3388. /* readonly */
  3389. int refs;
  3390. bool temporary;
  3391. /* readonly */
  3392. StringHash type;
  3393. /* readonly */
  3394. String typeName;
  3395. /* readonly */
  3396. int weakRefs;
  3397. };
  3398. class Controls
  3399. {
  3400. public:
  3401. ~Controls();
  3402. Controls();
  3403. Controls(const Controls&in);
  3404. // Methods:
  3405. bool IsDown(uint) const;
  3406. bool IsPressed(uint, const Controls&) const;
  3407. void Reset();
  3408. void Set(uint, bool);
  3409. // Properties:
  3410. uint buttons;
  3411. VariantMap extraData;
  3412. float pitch;
  3413. float yaw;
  3414. };
  3415. class CrowdAgent
  3416. {
  3417. public:
  3418. // Methods:
  3419. void ApplyAttributes();
  3420. void DrawDebugGeometry(DebugRenderer, bool);
  3421. void DrawDebugGeometry(bool);
  3422. Variant GetAttribute(const String&) const;
  3423. ValueAnimation GetAttributeAnimation(const String&) const;
  3424. float GetAttributeAnimationSpeed(const String&) const;
  3425. float GetAttributeAnimationTime(const String&) const;
  3426. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3427. Variant GetAttributeDefault(const String&) const;
  3428. bool GetInterceptNetworkUpdate(const String&) const;
  3429. bool HasSubscribedToEvent(Object, const String&);
  3430. bool HasSubscribedToEvent(const String&);
  3431. bool Load(File, bool = false);
  3432. bool Load(VectorBuffer&, bool = false);
  3433. bool LoadJSON(const JSONValue&, bool = false);
  3434. bool LoadXML(const XMLElement&, bool = false);
  3435. void MarkNetworkUpdate() const;
  3436. void Remove();
  3437. void RemoveAttributeAnimation(const String&);
  3438. void RemoveInstanceDefault();
  3439. void RemoveObjectAnimation();
  3440. void ResetTarget();
  3441. void ResetToDefault();
  3442. bool Save(File) const;
  3443. bool Save(VectorBuffer&) const;
  3444. bool SaveJSON(JSONValue&) const;
  3445. bool SaveXML(XMLElement&) const;
  3446. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3447. void SetAnimationTime(float);
  3448. bool SetAttribute(const String&, const Variant&);
  3449. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3450. void SetAttributeAnimationSpeed(const String&, float);
  3451. void SetAttributeAnimationTime(const String&, float);
  3452. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3453. void SetInterceptNetworkUpdate(const String&, bool);
  3454. // Properties:
  3455. /* readonly */
  3456. Vector3 actualVelocity;
  3457. /* readonly */
  3458. CrowdAgentState agentState;
  3459. bool animationEnabled;
  3460. /* readonly */
  3461. bool arrived;
  3462. /* readonly */
  3463. Array<Variant> attributeDefaults;
  3464. /* readonly */
  3465. Array<AttributeInfo> attributeInfos;
  3466. Array<Variant> attributes;
  3467. /* readonly */
  3468. String category;
  3469. /* readonly */
  3470. Vector3 desiredVelocity;
  3471. bool enabled;
  3472. /* readonly */
  3473. bool enabledEffective;
  3474. float height;
  3475. /* readonly */
  3476. uint id;
  3477. /* readonly */
  3478. bool inCrowd;
  3479. float maxAccel;
  3480. float maxSpeed;
  3481. NavigationPushiness navigationPushiness;
  3482. NavigationQuality navigationQuality;
  3483. /* readonly */
  3484. Node node;
  3485. /* readonly */
  3486. uint numAttributes;
  3487. ObjectAnimation objectAnimation;
  3488. uint obstacleAvoidanceType;
  3489. /* readonly */
  3490. Vector3 position;
  3491. uint queryFilterType;
  3492. float radius;
  3493. /* readonly */
  3494. int refs;
  3495. /* readonly */
  3496. bool requestedTarget;
  3497. /* readonly */
  3498. CrowdAgentRequestedTarget requestedTargetType;
  3499. Vector3 targetPosition;
  3500. /* readonly */
  3501. CrowdAgentTargetState targetState;
  3502. Vector3 targetVelocity;
  3503. bool temporary;
  3504. /* readonly */
  3505. StringHash type;
  3506. /* readonly */
  3507. String typeName;
  3508. bool updateNodePosition;
  3509. /* readonly */
  3510. int weakRefs;
  3511. };
  3512. class CrowdManager
  3513. {
  3514. public:
  3515. // Methods:
  3516. void ApplyAttributes();
  3517. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3518. void DrawDebugGeometry(DebugRenderer, bool);
  3519. void DrawDebugGeometry(bool);
  3520. Vector3 FindNearestPoint(const Vector3&, int);
  3521. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3522. float GetAreaCost(uint, uint);
  3523. Variant GetAttribute(const String&) const;
  3524. ValueAnimation GetAttributeAnimation(const String&) const;
  3525. float GetAttributeAnimationSpeed(const String&) const;
  3526. float GetAttributeAnimationTime(const String&) const;
  3527. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3528. Variant GetAttributeDefault(const String&) const;
  3529. float GetDistanceToWall(const Vector3&, float, int);
  3530. uint16 GetExcludeFlags(uint);
  3531. uint16 GetIncludeFlags(uint);
  3532. bool GetInterceptNetworkUpdate(const String&) const;
  3533. Vector3 GetRandomPoint(int);
  3534. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3535. bool HasSubscribedToEvent(Object, const String&);
  3536. bool HasSubscribedToEvent(const String&);
  3537. bool Load(File, bool = false);
  3538. bool Load(VectorBuffer&, bool = false);
  3539. bool LoadJSON(const JSONValue&, bool = false);
  3540. bool LoadXML(const XMLElement&, bool = false);
  3541. void MarkNetworkUpdate() const;
  3542. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3543. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3544. void Remove();
  3545. void RemoveAttributeAnimation(const String&);
  3546. void RemoveInstanceDefault();
  3547. void RemoveObjectAnimation();
  3548. void ResetCrowdTarget(Node = null);
  3549. void ResetToDefault();
  3550. bool Save(File) const;
  3551. bool Save(VectorBuffer&) const;
  3552. bool SaveJSON(JSONValue&) const;
  3553. bool SaveXML(XMLElement&) const;
  3554. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3555. void SetAnimationTime(float);
  3556. void SetAreaCost(uint, uint, float);
  3557. bool SetAttribute(const String&, const Variant&);
  3558. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3559. void SetAttributeAnimationSpeed(const String&, float);
  3560. void SetAttributeAnimationTime(const String&, float);
  3561. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3562. void SetCrowdTarget(const Vector3&, Node = null);
  3563. void SetCrowdVelocity(const Vector3&, Node = null);
  3564. void SetExcludeFlags(uint, uint16);
  3565. void SetIncludeFlags(uint, uint16);
  3566. void SetInterceptNetworkUpdate(const String&, bool);
  3567. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3568. // Properties:
  3569. bool animationEnabled;
  3570. /* readonly */
  3571. Array<Variant> attributeDefaults;
  3572. /* readonly */
  3573. Array<AttributeInfo> attributeInfos;
  3574. Array<Variant> attributes;
  3575. /* readonly */
  3576. String category;
  3577. bool enabled;
  3578. /* readonly */
  3579. bool enabledEffective;
  3580. /* readonly */
  3581. uint id;
  3582. float maxAgentRadius;
  3583. int maxAgents;
  3584. NavigationMesh navMesh;
  3585. /* readonly */
  3586. Node node;
  3587. /* readonly */
  3588. Array<uint> numAreas;
  3589. /* readonly */
  3590. uint numAttributes;
  3591. /* readonly */
  3592. uint numObstacleAvoidanceTypes;
  3593. /* readonly */
  3594. uint numQueryFilterTypes;
  3595. ObjectAnimation objectAnimation;
  3596. /* readonly */
  3597. int refs;
  3598. bool temporary;
  3599. /* readonly */
  3600. StringHash type;
  3601. /* readonly */
  3602. String typeName;
  3603. /* readonly */
  3604. int weakRefs;
  3605. };
  3606. class CrowdObstacleAvoidanceParams
  3607. {
  3608. public:
  3609. // Properties:
  3610. uint8 adaptiveDepth;
  3611. uint8 adaptiveDivs;
  3612. uint8 adaptiveRings;
  3613. uint8 gridSize;
  3614. float horizTime;
  3615. float velBias;
  3616. float weightCurVel;
  3617. float weightDesVel;
  3618. float weightSide;
  3619. float weightToi;
  3620. };
  3621. class Cursor
  3622. {
  3623. public:
  3624. Cursor();
  3625. Cursor(const String&in);
  3626. // Methods:
  3627. void AddChild(UIElement);
  3628. void AddTag(const String&);
  3629. void AddTags(const String&, int8 = ';');
  3630. void ApplyAttributes();
  3631. void BringToFront();
  3632. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3633. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3634. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3635. void DisableLayoutUpdate();
  3636. IntVector2 ElementToScreen(const IntVector2&);
  3637. void EnableLayoutUpdate();
  3638. uint FindChild(UIElement) const;
  3639. Variant GetAttribute(const String&) const;
  3640. ValueAnimation GetAttributeAnimation(const String&) const;
  3641. float GetAttributeAnimationSpeed(const String&) const;
  3642. float GetAttributeAnimationTime(const String&) const;
  3643. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3644. Variant GetAttributeDefault(const String&) const;
  3645. UIElement GetChild(const String&, bool = false) const;
  3646. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3647. Array<UIElement> GetChildren(bool = false) const;
  3648. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3649. UIElement GetElementEventSender() const;
  3650. bool GetInterceptNetworkUpdate(const String&) const;
  3651. uint GetNumChildren(bool) const;
  3652. bool HasSubscribedToEvent(Object, const String&);
  3653. bool HasSubscribedToEvent(const String&);
  3654. bool HasTag(const String&) const;
  3655. void InsertChild(uint, UIElement);
  3656. bool IsInside(IntVector2, bool);
  3657. bool IsInsideCombined(IntVector2, bool);
  3658. bool Load(File, bool = false);
  3659. bool Load(VectorBuffer&, bool = false);
  3660. UIElement LoadChildXML(XMLFile, XMLFile = null);
  3661. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3662. bool LoadJSON(const JSONValue&, bool = false);
  3663. bool LoadXML(File);
  3664. bool LoadXML(VectorBuffer&);
  3665. bool LoadXML(XMLFile, XMLFile);
  3666. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3667. bool LoadXML(const XMLElement&, bool = false);
  3668. void MarkNetworkUpdate() const;
  3669. void Remove();
  3670. void RemoveAllChildren();
  3671. void RemoveAllTags();
  3672. void RemoveAttributeAnimation(const String&);
  3673. void RemoveChild(UIElement, uint = 0);
  3674. void RemoveChild(uint);
  3675. void RemoveInstanceDefault();
  3676. void RemoveObjectAnimation();
  3677. bool RemoveTag(const String&);
  3678. void ResetDeepEnabled();
  3679. void ResetToDefault();
  3680. bool Save(File) const;
  3681. bool Save(VectorBuffer&) const;
  3682. bool SaveJSON(JSONValue&) const;
  3683. bool SaveXML(File, const String& = "\t");
  3684. bool SaveXML(VectorBuffer&, const String& = "\t");
  3685. bool SaveXML(XMLElement&) const;
  3686. IntVector2 ScreenToElement(const IntVector2&);
  3687. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3688. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3689. void SetAnimationTime(float);
  3690. bool SetAttribute(const String&, const Variant&);
  3691. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3692. void SetAttributeAnimationSpeed(const String&, float);
  3693. void SetAttributeAnimationTime(const String&, float);
  3694. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3695. void SetDeepEnabled(bool);
  3696. void SetEnabledRecursive(bool);
  3697. void SetFixedHeight(int);
  3698. void SetFixedSize(int, int);
  3699. void SetFixedWidth(int);
  3700. void SetFullImageRect();
  3701. void SetHoverOffset(int, int);
  3702. void SetInterceptNetworkUpdate(const String&, bool);
  3703. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3704. void SetMaxAnchor(float, float);
  3705. void SetMaxSize(int, int);
  3706. void SetMinAnchor(float, float);
  3707. void SetMinSize(int, int);
  3708. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3709. void SetPivot(float, float);
  3710. void SetPosition(int, int);
  3711. void SetShape(CursorShape);
  3712. void SetShape(const String&);
  3713. void SetSize(int, int);
  3714. bool SetStyle(const String&, XMLFile = null);
  3715. bool SetStyle(const XMLElement&);
  3716. bool SetStyleAuto(XMLFile = null);
  3717. void UpdateLayout();
  3718. const Variant& GetVar(const StringHash&);
  3719. // Properties:
  3720. bool animationEnabled;
  3721. /* readonly */
  3722. Array<Variant> attributeDefaults;
  3723. /* readonly */
  3724. Array<AttributeInfo> attributeInfos;
  3725. Array<Variant> attributes;
  3726. BlendMode blendMode;
  3727. IntRect border;
  3728. bool bringToBack;
  3729. bool bringToFront;
  3730. /* readonly */
  3731. String category;
  3732. /* readonly */
  3733. IntVector2 childOffset;
  3734. /* readonly */
  3735. Array<UIElement> children;
  3736. IntRect clipBorder;
  3737. bool clipChildren;
  3738. /* writeonly */
  3739. Color color;
  3740. /* readonly */
  3741. bool colorGradient;
  3742. Array<Color> colors;
  3743. /* readonly */
  3744. IntRect combinedScreenRect;
  3745. XMLFile defaultStyle;
  3746. /* readonly */
  3747. float derivedOpacity;
  3748. /* readonly */
  3749. uint dragButtonCombo;
  3750. /* readonly */
  3751. int dragButtonCount;
  3752. uint dragDropMode;
  3753. bool editable;
  3754. bool elementEventSender;
  3755. bool enableAnchor;
  3756. bool enabled;
  3757. /* readonly */
  3758. bool enabledSelf;
  3759. /* readonly */
  3760. bool fixedHeight;
  3761. /* readonly */
  3762. bool fixedSize;
  3763. /* readonly */
  3764. bool fixedWidth;
  3765. bool focus;
  3766. FocusMode focusMode;
  3767. int height;
  3768. HorizontalAlignment horizontalAlignment;
  3769. IntVector2 hoverOffset;
  3770. /* readonly */
  3771. bool hovering;
  3772. IntRect imageBorder;
  3773. IntRect imageRect;
  3774. int indent;
  3775. int indentSpacing;
  3776. /* readonly */
  3777. int indentWidth;
  3778. bool internal;
  3779. IntRect layoutBorder;
  3780. Vector2 layoutFlexScale;
  3781. LayoutMode layoutMode;
  3782. int layoutSpacing;
  3783. Vector2 maxAnchor;
  3784. int maxHeight;
  3785. IntVector2 maxOffset;
  3786. IntVector2 maxSize;
  3787. int maxWidth;
  3788. Vector2 minAnchor;
  3789. int minHeight;
  3790. IntVector2 minOffset;
  3791. IntVector2 minSize;
  3792. int minWidth;
  3793. String name;
  3794. /* readonly */
  3795. uint numAllChildren;
  3796. /* readonly */
  3797. uint numAttributes;
  3798. /* readonly */
  3799. uint numChildren;
  3800. ObjectAnimation objectAnimation;
  3801. float opacity;
  3802. UIElement parent;
  3803. Vector2 pivot;
  3804. IntVector2 position;
  3805. int priority;
  3806. /* readonly */
  3807. int refs;
  3808. /* readonly */
  3809. UIElement root;
  3810. /* readonly */
  3811. IntVector2 screenPosition;
  3812. bool selected;
  3813. String shape;
  3814. IntVector2 size;
  3815. bool sortChildren;
  3816. String style;
  3817. /* readonly */
  3818. Array<String> tags;
  3819. bool temporary;
  3820. Texture texture;
  3821. bool tiled;
  3822. TraversalMode traversalMode;
  3823. /* readonly */
  3824. StringHash type;
  3825. /* readonly */
  3826. String typeName;
  3827. bool useDerivedOpacity;
  3828. bool useSystemShapes;
  3829. /* readonly */
  3830. VariantMap vars;
  3831. VerticalAlignment verticalAlignment;
  3832. bool visible;
  3833. /* readonly */
  3834. bool visibleEffective;
  3835. /* readonly */
  3836. int weakRefs;
  3837. int width;
  3838. };
  3839. class CustomGeometry
  3840. {
  3841. public:
  3842. // Methods:
  3843. void ApplyAttributes();
  3844. void BeginGeometry(uint, PrimitiveType);
  3845. void Clear();
  3846. void Commit();
  3847. void DefineColor(const Color&);
  3848. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3849. void DefineNormal(const Vector3&);
  3850. void DefineTangent(const Vector4&);
  3851. void DefineTexCoord(const Vector2&);
  3852. void DefineVertex(const Vector3&);
  3853. void DrawDebugGeometry(DebugRenderer, bool);
  3854. Variant GetAttribute(const String&) const;
  3855. ValueAnimation GetAttributeAnimation(const String&) const;
  3856. float GetAttributeAnimationSpeed(const String&) const;
  3857. float GetAttributeAnimationTime(const String&) const;
  3858. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3859. Variant GetAttributeDefault(const String&) const;
  3860. bool GetInterceptNetworkUpdate(const String&) const;
  3861. CustomGeometryVertex GetVertex(uint, uint);
  3862. bool HasSubscribedToEvent(Object, const String&);
  3863. bool HasSubscribedToEvent(const String&);
  3864. bool IsInView(Camera) const;
  3865. bool Load(File, bool = false);
  3866. bool Load(VectorBuffer&, bool = false);
  3867. bool LoadJSON(const JSONValue&, bool = false);
  3868. bool LoadXML(const XMLElement&, bool = false);
  3869. void MarkNetworkUpdate() const;
  3870. void Remove();
  3871. void RemoveAttributeAnimation(const String&);
  3872. void RemoveInstanceDefault();
  3873. void RemoveObjectAnimation();
  3874. void ResetToDefault();
  3875. bool Save(File) const;
  3876. bool Save(VectorBuffer&) const;
  3877. bool SaveJSON(JSONValue&) const;
  3878. bool SaveXML(XMLElement&) const;
  3879. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3880. void SetAnimationTime(float);
  3881. bool SetAttribute(const String&, const Variant&);
  3882. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3883. void SetAttributeAnimationSpeed(const String&, float);
  3884. void SetAttributeAnimationTime(const String&, float);
  3885. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3886. void SetInterceptNetworkUpdate(const String&, bool);
  3887. // Properties:
  3888. bool animationEnabled;
  3889. /* readonly */
  3890. Array<Variant> attributeDefaults;
  3891. /* readonly */
  3892. Array<AttributeInfo> attributeInfos;
  3893. Array<Variant> attributes;
  3894. /* readonly */
  3895. BoundingBox boundingBox;
  3896. bool castShadows;
  3897. /* readonly */
  3898. String category;
  3899. float drawDistance;
  3900. bool dynamic;
  3901. bool enabled;
  3902. /* readonly */
  3903. bool enabledEffective;
  3904. /* readonly */
  3905. uint id;
  3906. /* readonly */
  3907. bool inView;
  3908. uint lightMask;
  3909. float lodBias;
  3910. /* writeonly */
  3911. Material material;
  3912. Array<Material> materials;
  3913. uint maxLights;
  3914. /* readonly */
  3915. Node node;
  3916. /* readonly */
  3917. uint numAttributes;
  3918. uint numGeometries;
  3919. /* readonly */
  3920. Array<uint> numVertices;
  3921. ObjectAnimation objectAnimation;
  3922. bool occludee;
  3923. bool occluder;
  3924. /* readonly */
  3925. int refs;
  3926. float shadowDistance;
  3927. uint shadowMask;
  3928. bool temporary;
  3929. /* readonly */
  3930. StringHash type;
  3931. /* readonly */
  3932. String typeName;
  3933. uint viewMask;
  3934. /* readonly */
  3935. int weakRefs;
  3936. /* readonly */
  3937. BoundingBox worldBoundingBox;
  3938. /* readonly */
  3939. Zone zone;
  3940. uint zoneMask;
  3941. };
  3942. class CustomGeometryVertex
  3943. {
  3944. public:
  3945. // Properties:
  3946. uint color;
  3947. Vector3 normal;
  3948. Vector3 position;
  3949. Vector4 tangent;
  3950. Vector2 texCoord;
  3951. };
  3952. class Database
  3953. {
  3954. public:
  3955. // Methods:
  3956. DbConnection Connect(const String&);
  3957. void Disconnect(DbConnection);
  3958. bool HasSubscribedToEvent(Object, const String&);
  3959. bool HasSubscribedToEvent(const String&);
  3960. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3961. // Properties:
  3962. /* readonly */
  3963. String category;
  3964. uint poolSize;
  3965. /* readonly */
  3966. bool pooling;
  3967. /* readonly */
  3968. int refs;
  3969. /* readonly */
  3970. StringHash type;
  3971. /* readonly */
  3972. String typeName;
  3973. /* readonly */
  3974. int weakRefs;
  3975. };
  3976. class DbConnection
  3977. {
  3978. public:
  3979. // Methods:
  3980. DbResult Execute(const String&, bool = false);
  3981. bool HasSubscribedToEvent(Object, const String&);
  3982. bool HasSubscribedToEvent(const String&);
  3983. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3984. // Properties:
  3985. /* readonly */
  3986. String category;
  3987. /* readonly */
  3988. bool connected;
  3989. /* readonly */
  3990. String connectionString;
  3991. /* readonly */
  3992. int refs;
  3993. /* readonly */
  3994. StringHash type;
  3995. /* readonly */
  3996. String typeName;
  3997. /* readonly */
  3998. int weakRefs;
  3999. };
  4000. class DbResult
  4001. {
  4002. public:
  4003. ~DbResult();
  4004. DbResult();
  4005. DbResult(const DbResult&in);
  4006. // Properties:
  4007. /* readonly */
  4008. Array<String> columns;
  4009. /* readonly */
  4010. int64 numAffectedRows;
  4011. /* readonly */
  4012. uint numColumns;
  4013. /* readonly */
  4014. uint numRows;
  4015. /* readonly */
  4016. Array<Array<Variant>> row;
  4017. };
  4018. class DebugHud
  4019. {
  4020. public:
  4021. // Methods:
  4022. void ClearAppStats();
  4023. bool HasSubscribedToEvent(Object, const String&);
  4024. bool HasSubscribedToEvent(const String&);
  4025. void ResetAppStats(const String&);
  4026. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4027. void SetAppStats(const String&, const String&);
  4028. void SetAppStats(const String&, const Variant&);
  4029. void Toggle(uint);
  4030. void ToggleAll();
  4031. void Update();
  4032. // Properties:
  4033. /* readonly */
  4034. String category;
  4035. XMLFile defaultStyle;
  4036. /* readonly */
  4037. Text memoryText;
  4038. uint mode;
  4039. /* readonly */
  4040. Text modeText;
  4041. float profilerInterval;
  4042. uint profilerMaxDepth;
  4043. /* readonly */
  4044. Text profilerText;
  4045. /* readonly */
  4046. int refs;
  4047. /* readonly */
  4048. Text statsText;
  4049. /* readonly */
  4050. StringHash type;
  4051. /* readonly */
  4052. String typeName;
  4053. bool useRendererStats;
  4054. /* readonly */
  4055. int weakRefs;
  4056. };
  4057. class DebugRenderer
  4058. {
  4059. public:
  4060. // Methods:
  4061. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  4062. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  4063. void AddCross(const Vector3&, float, const Color&, bool = true);
  4064. void AddFrustum(const Frustum&, const Color&, bool = true);
  4065. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  4066. void AddNode(Node, float = 1.0, bool = true);
  4067. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4068. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  4069. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  4070. void AddSkeleton(Skeleton, const Color&, bool = true);
  4071. void AddSphere(const Sphere&, const Color&, bool = true);
  4072. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  4073. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4074. void ApplyAttributes();
  4075. void DrawDebugGeometry(DebugRenderer, bool);
  4076. Variant GetAttribute(const String&) const;
  4077. ValueAnimation GetAttributeAnimation(const String&) const;
  4078. float GetAttributeAnimationSpeed(const String&) const;
  4079. float GetAttributeAnimationTime(const String&) const;
  4080. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4081. Variant GetAttributeDefault(const String&) const;
  4082. bool GetInterceptNetworkUpdate(const String&) const;
  4083. bool HasSubscribedToEvent(Object, const String&);
  4084. bool HasSubscribedToEvent(const String&);
  4085. bool Load(File, bool = false);
  4086. bool Load(VectorBuffer&, bool = false);
  4087. bool LoadJSON(const JSONValue&, bool = false);
  4088. bool LoadXML(const XMLElement&, bool = false);
  4089. void MarkNetworkUpdate() const;
  4090. void Remove();
  4091. void RemoveAttributeAnimation(const String&);
  4092. void RemoveInstanceDefault();
  4093. void RemoveObjectAnimation();
  4094. void ResetToDefault();
  4095. bool Save(File) const;
  4096. bool Save(VectorBuffer&) const;
  4097. bool SaveJSON(JSONValue&) const;
  4098. bool SaveXML(XMLElement&) const;
  4099. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4100. void SetAnimationTime(float);
  4101. bool SetAttribute(const String&, const Variant&);
  4102. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4103. void SetAttributeAnimationSpeed(const String&, float);
  4104. void SetAttributeAnimationTime(const String&, float);
  4105. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4106. void SetInterceptNetworkUpdate(const String&, bool);
  4107. // Properties:
  4108. bool animationEnabled;
  4109. /* readonly */
  4110. Array<Variant> attributeDefaults;
  4111. /* readonly */
  4112. Array<AttributeInfo> attributeInfos;
  4113. Array<Variant> attributes;
  4114. /* readonly */
  4115. String category;
  4116. bool enabled;
  4117. /* readonly */
  4118. bool enabledEffective;
  4119. /* readonly */
  4120. uint id;
  4121. bool lineAntiAlias;
  4122. /* readonly */
  4123. Node node;
  4124. /* readonly */
  4125. uint numAttributes;
  4126. ObjectAnimation objectAnimation;
  4127. /* readonly */
  4128. int refs;
  4129. bool temporary;
  4130. /* readonly */
  4131. StringHash type;
  4132. /* readonly */
  4133. String typeName;
  4134. /* readonly */
  4135. int weakRefs;
  4136. };
  4137. class DecalSet
  4138. {
  4139. public:
  4140. // Methods:
  4141. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4142. void ApplyAttributes();
  4143. void DrawDebugGeometry(DebugRenderer, bool);
  4144. Variant GetAttribute(const String&) const;
  4145. ValueAnimation GetAttributeAnimation(const String&) const;
  4146. float GetAttributeAnimationSpeed(const String&) const;
  4147. float GetAttributeAnimationTime(const String&) const;
  4148. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4149. Variant GetAttributeDefault(const String&) const;
  4150. bool GetInterceptNetworkUpdate(const String&) const;
  4151. bool HasSubscribedToEvent(Object, const String&);
  4152. bool HasSubscribedToEvent(const String&);
  4153. bool IsInView(Camera) const;
  4154. bool Load(File, bool = false);
  4155. bool Load(VectorBuffer&, bool = false);
  4156. bool LoadJSON(const JSONValue&, bool = false);
  4157. bool LoadXML(const XMLElement&, bool = false);
  4158. void MarkNetworkUpdate() const;
  4159. void Remove();
  4160. void RemoveAllDecals();
  4161. void RemoveAttributeAnimation(const String&);
  4162. void RemoveDecals(uint);
  4163. void RemoveInstanceDefault();
  4164. void RemoveObjectAnimation();
  4165. void ResetToDefault();
  4166. bool Save(File) const;
  4167. bool Save(VectorBuffer&) const;
  4168. bool SaveJSON(JSONValue&) const;
  4169. bool SaveXML(XMLElement&) const;
  4170. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4171. void SetAnimationTime(float);
  4172. bool SetAttribute(const String&, const Variant&);
  4173. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4174. void SetAttributeAnimationSpeed(const String&, float);
  4175. void SetAttributeAnimationTime(const String&, float);
  4176. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4177. void SetInterceptNetworkUpdate(const String&, bool);
  4178. // Properties:
  4179. bool animationEnabled;
  4180. /* readonly */
  4181. Array<Variant> attributeDefaults;
  4182. /* readonly */
  4183. Array<AttributeInfo> attributeInfos;
  4184. Array<Variant> attributes;
  4185. /* readonly */
  4186. BoundingBox boundingBox;
  4187. bool castShadows;
  4188. /* readonly */
  4189. String category;
  4190. float drawDistance;
  4191. bool enabled;
  4192. /* readonly */
  4193. bool enabledEffective;
  4194. /* readonly */
  4195. uint id;
  4196. /* readonly */
  4197. bool inView;
  4198. uint lightMask;
  4199. float lodBias;
  4200. Material material;
  4201. uint maxIndices;
  4202. uint maxLights;
  4203. uint maxVertices;
  4204. /* readonly */
  4205. Node node;
  4206. /* readonly */
  4207. uint numAttributes;
  4208. /* readonly */
  4209. uint numDecals;
  4210. /* readonly */
  4211. uint numIndices;
  4212. /* readonly */
  4213. uint numVertices;
  4214. ObjectAnimation objectAnimation;
  4215. bool occludee;
  4216. bool occluder;
  4217. bool optimizeBufferSize;
  4218. /* readonly */
  4219. int refs;
  4220. float shadowDistance;
  4221. uint shadowMask;
  4222. bool temporary;
  4223. /* readonly */
  4224. StringHash type;
  4225. /* readonly */
  4226. String typeName;
  4227. uint viewMask;
  4228. /* readonly */
  4229. int weakRefs;
  4230. /* readonly */
  4231. BoundingBox worldBoundingBox;
  4232. /* readonly */
  4233. Zone zone;
  4234. uint zoneMask;
  4235. };
  4236. class Deserializer
  4237. {
  4238. public:
  4239. // Methods:
  4240. Array<uint8> Read(uint);
  4241. bool ReadBool();
  4242. BoundingBox ReadBoundingBox();
  4243. int8 ReadByte();
  4244. Color ReadColor();
  4245. double ReadDouble();
  4246. String ReadFileID();
  4247. float ReadFloat();
  4248. int ReadInt();
  4249. int64 ReadInt64();
  4250. IntRect ReadIntRect();
  4251. IntVector2 ReadIntVector2();
  4252. String ReadLine();
  4253. Matrix3 ReadMatrix3();
  4254. Matrix3x4 ReadMatrix3x4();
  4255. Matrix4 ReadMatrix4();
  4256. uint ReadNetID();
  4257. Quaternion ReadPackedQuaternion();
  4258. Vector3 ReadPackedVector3(float);
  4259. Quaternion ReadQuaternion();
  4260. int16 ReadShort();
  4261. String ReadString();
  4262. StringHash ReadStringHash();
  4263. uint8 ReadUByte();
  4264. uint ReadUInt();
  4265. uint64 ReadUInt64();
  4266. uint16 ReadUShort();
  4267. uint ReadVLE();
  4268. Variant ReadVariant();
  4269. VariantMap ReadVariantMap();
  4270. Vector2 ReadVector2();
  4271. Vector3 ReadVector3();
  4272. Vector4 ReadVector4();
  4273. VectorBuffer ReadVectorBuffer(uint);
  4274. uint Seek(uint);
  4275. uint SeekRelative(int);
  4276. uint Tell() const;
  4277. // Properties:
  4278. /* readonly */
  4279. uint checksum;
  4280. /* readonly */
  4281. bool eof;
  4282. /* readonly */
  4283. String name;
  4284. /* readonly */
  4285. uint position;
  4286. /* readonly */
  4287. uint size;
  4288. };
  4289. class Dictionary
  4290. {
  4291. public:
  4292. Dictionary();
  4293. // Methods:
  4294. void Clear();
  4295. void Erase(const String&);
  4296. bool Exists(const String&) const;
  4297. bool Get(const String&, void*) const;
  4298. bool Get(const String&, double&) const;
  4299. bool Get(const String&, int64&) const;
  4300. void Set(const String&, const void*);
  4301. void Set(const String&, const double&);
  4302. void Set(const String&, const int64&);
  4303. // Properties:
  4304. /* readonly */
  4305. bool empty;
  4306. /* readonly */
  4307. Array<String> keys;
  4308. /* readonly */
  4309. uint length;
  4310. };
  4311. class DictionaryValue
  4312. {
  4313. public:
  4314. ~DictionaryValue();
  4315. DictionaryValue();
  4316. };
  4317. class Drawable
  4318. {
  4319. public:
  4320. // Methods:
  4321. void ApplyAttributes();
  4322. void DrawDebugGeometry(DebugRenderer, bool);
  4323. Variant GetAttribute(const String&) const;
  4324. ValueAnimation GetAttributeAnimation(const String&) const;
  4325. float GetAttributeAnimationSpeed(const String&) const;
  4326. float GetAttributeAnimationTime(const String&) const;
  4327. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4328. Variant GetAttributeDefault(const String&) const;
  4329. bool GetInterceptNetworkUpdate(const String&) const;
  4330. bool HasSubscribedToEvent(Object, const String&);
  4331. bool HasSubscribedToEvent(const String&);
  4332. bool IsInView(Camera) const;
  4333. bool Load(File, bool = false);
  4334. bool Load(VectorBuffer&, bool = false);
  4335. bool LoadJSON(const JSONValue&, bool = false);
  4336. bool LoadXML(const XMLElement&, bool = false);
  4337. void MarkNetworkUpdate() const;
  4338. void Remove();
  4339. void RemoveAttributeAnimation(const String&);
  4340. void RemoveInstanceDefault();
  4341. void RemoveObjectAnimation();
  4342. void ResetToDefault();
  4343. bool Save(File) const;
  4344. bool Save(VectorBuffer&) const;
  4345. bool SaveJSON(JSONValue&) const;
  4346. bool SaveXML(XMLElement&) const;
  4347. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4348. void SetAnimationTime(float);
  4349. bool SetAttribute(const String&, const Variant&);
  4350. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4351. void SetAttributeAnimationSpeed(const String&, float);
  4352. void SetAttributeAnimationTime(const String&, float);
  4353. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4354. void SetInterceptNetworkUpdate(const String&, bool);
  4355. // Properties:
  4356. bool animationEnabled;
  4357. /* readonly */
  4358. Array<Variant> attributeDefaults;
  4359. /* readonly */
  4360. Array<AttributeInfo> attributeInfos;
  4361. Array<Variant> attributes;
  4362. /* readonly */
  4363. BoundingBox boundingBox;
  4364. bool castShadows;
  4365. /* readonly */
  4366. String category;
  4367. float drawDistance;
  4368. bool enabled;
  4369. /* readonly */
  4370. bool enabledEffective;
  4371. /* readonly */
  4372. uint id;
  4373. /* readonly */
  4374. bool inView;
  4375. uint lightMask;
  4376. float lodBias;
  4377. uint maxLights;
  4378. /* readonly */
  4379. Node node;
  4380. /* readonly */
  4381. uint numAttributes;
  4382. ObjectAnimation objectAnimation;
  4383. bool occludee;
  4384. bool occluder;
  4385. /* readonly */
  4386. int refs;
  4387. float shadowDistance;
  4388. uint shadowMask;
  4389. bool temporary;
  4390. /* readonly */
  4391. StringHash type;
  4392. /* readonly */
  4393. String typeName;
  4394. uint viewMask;
  4395. /* readonly */
  4396. int weakRefs;
  4397. /* readonly */
  4398. BoundingBox worldBoundingBox;
  4399. uint zoneMask;
  4400. };
  4401. class Drawable2D
  4402. {
  4403. public:
  4404. // Methods:
  4405. void ApplyAttributes();
  4406. void DrawDebugGeometry(DebugRenderer, bool);
  4407. Variant GetAttribute(const String&) const;
  4408. ValueAnimation GetAttributeAnimation(const String&) const;
  4409. float GetAttributeAnimationSpeed(const String&) const;
  4410. float GetAttributeAnimationTime(const String&) const;
  4411. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4412. Variant GetAttributeDefault(const String&) const;
  4413. bool GetInterceptNetworkUpdate(const String&) const;
  4414. bool HasSubscribedToEvent(Object, const String&);
  4415. bool HasSubscribedToEvent(const String&);
  4416. bool IsInView(Camera) const;
  4417. bool Load(File, bool = false);
  4418. bool Load(VectorBuffer&, bool = false);
  4419. bool LoadJSON(const JSONValue&, bool = false);
  4420. bool LoadXML(const XMLElement&, bool = false);
  4421. void MarkNetworkUpdate() const;
  4422. void Remove();
  4423. void RemoveAttributeAnimation(const String&);
  4424. void RemoveInstanceDefault();
  4425. void RemoveObjectAnimation();
  4426. void ResetToDefault();
  4427. bool Save(File) const;
  4428. bool Save(VectorBuffer&) const;
  4429. bool SaveJSON(JSONValue&) const;
  4430. bool SaveXML(XMLElement&) const;
  4431. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4432. void SetAnimationTime(float);
  4433. bool SetAttribute(const String&, const Variant&);
  4434. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4435. void SetAttributeAnimationSpeed(const String&, float);
  4436. void SetAttributeAnimationTime(const String&, float);
  4437. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4438. void SetInterceptNetworkUpdate(const String&, bool);
  4439. // Properties:
  4440. bool animationEnabled;
  4441. /* readonly */
  4442. Array<Variant> attributeDefaults;
  4443. /* readonly */
  4444. Array<AttributeInfo> attributeInfos;
  4445. Array<Variant> attributes;
  4446. /* readonly */
  4447. BoundingBox boundingBox;
  4448. bool castShadows;
  4449. /* readonly */
  4450. String category;
  4451. float drawDistance;
  4452. bool enabled;
  4453. /* readonly */
  4454. bool enabledEffective;
  4455. /* readonly */
  4456. uint id;
  4457. /* readonly */
  4458. bool inView;
  4459. int layer;
  4460. uint lightMask;
  4461. float lodBias;
  4462. uint maxLights;
  4463. /* readonly */
  4464. Node node;
  4465. /* readonly */
  4466. uint numAttributes;
  4467. ObjectAnimation objectAnimation;
  4468. bool occludee;
  4469. bool occluder;
  4470. int orderInLayer;
  4471. /* readonly */
  4472. int refs;
  4473. float shadowDistance;
  4474. uint shadowMask;
  4475. bool temporary;
  4476. /* readonly */
  4477. StringHash type;
  4478. /* readonly */
  4479. String typeName;
  4480. uint viewMask;
  4481. /* readonly */
  4482. int weakRefs;
  4483. /* readonly */
  4484. BoundingBox worldBoundingBox;
  4485. uint zoneMask;
  4486. };
  4487. class DropDownList
  4488. {
  4489. public:
  4490. DropDownList();
  4491. DropDownList(const String&in);
  4492. // Methods:
  4493. void AddChild(UIElement);
  4494. void AddItem(UIElement);
  4495. void AddTag(const String&);
  4496. void AddTags(const String&, int8 = ';');
  4497. void ApplyAttributes();
  4498. void BringToFront();
  4499. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4500. void DisableLayoutUpdate();
  4501. IntVector2 ElementToScreen(const IntVector2&);
  4502. void EnableLayoutUpdate();
  4503. uint FindChild(UIElement) const;
  4504. Variant GetAttribute(const String&) const;
  4505. ValueAnimation GetAttributeAnimation(const String&) const;
  4506. float GetAttributeAnimationSpeed(const String&) const;
  4507. float GetAttributeAnimationTime(const String&) const;
  4508. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4509. Variant GetAttributeDefault(const String&) const;
  4510. UIElement GetChild(const String&, bool = false) const;
  4511. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4512. Array<UIElement> GetChildren(bool = false) const;
  4513. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4514. UIElement GetElementEventSender() const;
  4515. bool GetInterceptNetworkUpdate(const String&) const;
  4516. Array<UIElement> GetItems() const;
  4517. uint GetNumChildren(bool) const;
  4518. bool HasSubscribedToEvent(Object, const String&);
  4519. bool HasSubscribedToEvent(const String&);
  4520. bool HasTag(const String&) const;
  4521. void InsertChild(uint, UIElement);
  4522. void InsertItem(uint, UIElement);
  4523. bool IsInside(IntVector2, bool);
  4524. bool IsInsideCombined(IntVector2, bool);
  4525. bool Load(File, bool = false);
  4526. bool Load(VectorBuffer&, bool = false);
  4527. UIElement LoadChildXML(XMLFile, XMLFile = null);
  4528. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4529. bool LoadJSON(const JSONValue&, bool = false);
  4530. bool LoadXML(File);
  4531. bool LoadXML(VectorBuffer&);
  4532. bool LoadXML(XMLFile, XMLFile);
  4533. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4534. bool LoadXML(const XMLElement&, bool = false);
  4535. void MarkNetworkUpdate() const;
  4536. void Remove();
  4537. void RemoveAllChildren();
  4538. void RemoveAllItems();
  4539. void RemoveAllTags();
  4540. void RemoveAttributeAnimation(const String&);
  4541. void RemoveChild(UIElement, uint = 0);
  4542. void RemoveChild(uint);
  4543. void RemoveInstanceDefault();
  4544. void RemoveItem(UIElement);
  4545. void RemoveItem(uint);
  4546. void RemoveObjectAnimation();
  4547. bool RemoveTag(const String&);
  4548. void ResetDeepEnabled();
  4549. void ResetToDefault();
  4550. bool Save(File) const;
  4551. bool Save(VectorBuffer&) const;
  4552. bool SaveJSON(JSONValue&) const;
  4553. bool SaveXML(File, const String& = "\t");
  4554. bool SaveXML(VectorBuffer&, const String& = "\t");
  4555. bool SaveXML(XMLElement&) const;
  4556. IntVector2 ScreenToElement(const IntVector2&);
  4557. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4558. void SetAccelerator(int, int);
  4559. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4560. void SetAnimationTime(float);
  4561. bool SetAttribute(const String&, const Variant&);
  4562. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4563. void SetAttributeAnimationSpeed(const String&, float);
  4564. void SetAttributeAnimationTime(const String&, float);
  4565. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4566. void SetDeepEnabled(bool);
  4567. void SetEnabledRecursive(bool);
  4568. void SetFixedHeight(int);
  4569. void SetFixedSize(int, int);
  4570. void SetFixedWidth(int);
  4571. void SetFullImageRect();
  4572. void SetHoverOffset(int, int);
  4573. void SetInterceptNetworkUpdate(const String&, bool);
  4574. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4575. void SetMaxAnchor(float, float);
  4576. void SetMaxSize(int, int);
  4577. void SetMinAnchor(float, float);
  4578. void SetMinSize(int, int);
  4579. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4580. void SetPivot(float, float);
  4581. void SetPosition(int, int);
  4582. void SetPressedChildOffset(int, int);
  4583. void SetPressedOffset(int, int);
  4584. void SetRepeat(float, float);
  4585. void SetSize(int, int);
  4586. bool SetStyle(const String&, XMLFile = null);
  4587. bool SetStyle(const XMLElement&);
  4588. bool SetStyleAuto(XMLFile = null);
  4589. void UpdateLayout();
  4590. const Variant& GetVar(const StringHash&);
  4591. UIElement getPopup() const;
  4592. // Properties:
  4593. /* readonly */
  4594. int acceleratorKey;
  4595. /* readonly */
  4596. int acceleratorQualifiers;
  4597. bool animationEnabled;
  4598. /* readonly */
  4599. Array<Variant> attributeDefaults;
  4600. /* readonly */
  4601. Array<AttributeInfo> attributeInfos;
  4602. Array<Variant> attributes;
  4603. BlendMode blendMode;
  4604. IntRect border;
  4605. bool bringToBack;
  4606. bool bringToFront;
  4607. /* readonly */
  4608. String category;
  4609. /* readonly */
  4610. IntVector2 childOffset;
  4611. /* readonly */
  4612. Array<UIElement> children;
  4613. IntRect clipBorder;
  4614. bool clipChildren;
  4615. /* writeonly */
  4616. Color color;
  4617. /* readonly */
  4618. bool colorGradient;
  4619. Array<Color> colors;
  4620. /* readonly */
  4621. IntRect combinedScreenRect;
  4622. XMLFile defaultStyle;
  4623. /* readonly */
  4624. float derivedOpacity;
  4625. /* readonly */
  4626. uint dragButtonCombo;
  4627. /* readonly */
  4628. int dragButtonCount;
  4629. uint dragDropMode;
  4630. bool editable;
  4631. bool elementEventSender;
  4632. bool enableAnchor;
  4633. bool enabled;
  4634. /* readonly */
  4635. bool enabledSelf;
  4636. /* readonly */
  4637. bool fixedHeight;
  4638. /* readonly */
  4639. bool fixedSize;
  4640. /* readonly */
  4641. bool fixedWidth;
  4642. bool focus;
  4643. FocusMode focusMode;
  4644. int height;
  4645. HorizontalAlignment horizontalAlignment;
  4646. IntVector2 hoverOffset;
  4647. /* readonly */
  4648. bool hovering;
  4649. IntRect imageBorder;
  4650. IntRect imageRect;
  4651. int indent;
  4652. int indentSpacing;
  4653. /* readonly */
  4654. int indentWidth;
  4655. bool internal;
  4656. /* readonly */
  4657. Array<UIElement> items;
  4658. IntRect layoutBorder;
  4659. Vector2 layoutFlexScale;
  4660. LayoutMode layoutMode;
  4661. int layoutSpacing;
  4662. /* readonly */
  4663. ListView listView;
  4664. Vector2 maxAnchor;
  4665. int maxHeight;
  4666. IntVector2 maxOffset;
  4667. IntVector2 maxSize;
  4668. int maxWidth;
  4669. Vector2 minAnchor;
  4670. int minHeight;
  4671. IntVector2 minOffset;
  4672. IntVector2 minSize;
  4673. int minWidth;
  4674. String name;
  4675. /* readonly */
  4676. uint numAllChildren;
  4677. /* readonly */
  4678. uint numAttributes;
  4679. /* readonly */
  4680. uint numChildren;
  4681. /* readonly */
  4682. uint numItems;
  4683. ObjectAnimation objectAnimation;
  4684. float opacity;
  4685. UIElement parent;
  4686. Vector2 pivot;
  4687. /* readonly */
  4688. UIElement placeholder;
  4689. String placeholderText;
  4690. IntVector2 position;
  4691. /* readonly */
  4692. bool pressed;
  4693. IntVector2 pressedChildOffset;
  4694. IntVector2 pressedOffset;
  4695. int priority;
  4696. /* readonly */
  4697. int refs;
  4698. float repeatDelay;
  4699. float repeatRate;
  4700. bool resizePopup;
  4701. /* readonly */
  4702. UIElement root;
  4703. /* readonly */
  4704. IntVector2 screenPosition;
  4705. bool selected;
  4706. /* readonly */
  4707. UIElement selectedItem;
  4708. uint selection;
  4709. bool showPopup;
  4710. IntVector2 size;
  4711. bool sortChildren;
  4712. String style;
  4713. /* readonly */
  4714. Array<String> tags;
  4715. bool temporary;
  4716. Texture texture;
  4717. bool tiled;
  4718. TraversalMode traversalMode;
  4719. /* readonly */
  4720. StringHash type;
  4721. /* readonly */
  4722. String typeName;
  4723. bool useDerivedOpacity;
  4724. /* readonly */
  4725. VariantMap vars;
  4726. VerticalAlignment verticalAlignment;
  4727. bool visible;
  4728. /* readonly */
  4729. bool visibleEffective;
  4730. /* readonly */
  4731. int weakRefs;
  4732. int width;
  4733. };
  4734. class DynamicNavigationMesh
  4735. {
  4736. public:
  4737. // Methods:
  4738. bool AddTile(const VectorBuffer&) const;
  4739. bool Allocate(const BoundingBox&, uint);
  4740. void ApplyAttributes();
  4741. bool Build();
  4742. bool Build(const BoundingBox&);
  4743. bool Build(const IntVector2&, const IntVector2&);
  4744. void DrawDebugGeometry(DebugRenderer, bool);
  4745. void DrawDebugGeometry(bool);
  4746. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4747. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4748. float GetAreaCost(uint) const;
  4749. Variant GetAttribute(const String&) const;
  4750. ValueAnimation GetAttributeAnimation(const String&) const;
  4751. float GetAttributeAnimationSpeed(const String&) const;
  4752. float GetAttributeAnimationTime(const String&) const;
  4753. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4754. Variant GetAttributeDefault(const String&) const;
  4755. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4756. bool GetInterceptNetworkUpdate(const String&) const;
  4757. Vector3 GetRandomPoint();
  4758. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4759. BoundingBox GetTileBoudningBox(const IntVector2&) const;
  4760. VectorBuffer GetTileData(const IntVector2&) const;
  4761. IntVector2 GetTileIndex(const Vector3&) const;
  4762. bool HasSubscribedToEvent(Object, const String&);
  4763. bool HasSubscribedToEvent(const String&);
  4764. bool HasTile(const IntVector2&) const;
  4765. bool Load(File, bool = false);
  4766. bool Load(VectorBuffer&, bool = false);
  4767. bool LoadJSON(const JSONValue&, bool = false);
  4768. bool LoadXML(const XMLElement&, bool = false);
  4769. void MarkNetworkUpdate() const;
  4770. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4771. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4772. void Remove();
  4773. void RemoveAllTiles();
  4774. void RemoveAttributeAnimation(const String&);
  4775. void RemoveInstanceDefault();
  4776. void RemoveObjectAnimation();
  4777. void RemoveTile(const IntVector2&);
  4778. void ResetToDefault();
  4779. bool Save(File) const;
  4780. bool Save(VectorBuffer&) const;
  4781. bool SaveJSON(JSONValue&) const;
  4782. bool SaveXML(XMLElement&) const;
  4783. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4784. void SetAnimationTime(float);
  4785. void SetAreaCost(uint, float);
  4786. bool SetAttribute(const String&, const Variant&);
  4787. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4788. void SetAttributeAnimationSpeed(const String&, float);
  4789. void SetAttributeAnimationTime(const String&, float);
  4790. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4791. void SetInterceptNetworkUpdate(const String&, bool);
  4792. // Properties:
  4793. float agentHeight;
  4794. float agentMaxClimb;
  4795. float agentMaxSlope;
  4796. float agentRadius;
  4797. bool animationEnabled;
  4798. /* readonly */
  4799. Array<Variant> attributeDefaults;
  4800. /* readonly */
  4801. Array<AttributeInfo> attributeInfos;
  4802. Array<Variant> attributes;
  4803. /* readonly */
  4804. BoundingBox boundingBox;
  4805. /* readonly */
  4806. String category;
  4807. float cellHeight;
  4808. float cellSize;
  4809. float detailSampleDistance;
  4810. float detailSampleMaxError;
  4811. bool drawNavAreas;
  4812. bool drawObstacles;
  4813. bool drawOffMeshConnections;
  4814. float edgeMaxError;
  4815. float edgeMaxLength;
  4816. bool enabled;
  4817. /* readonly */
  4818. bool enabledEffective;
  4819. /* readonly */
  4820. uint id;
  4821. /* readonly */
  4822. bool initialized;
  4823. bool maxLayers;
  4824. uint maxObstacles;
  4825. /* readonly */
  4826. Node node;
  4827. /* readonly */
  4828. uint numAttributes;
  4829. /* readonly */
  4830. IntVector2 numTiles;
  4831. ObjectAnimation objectAnimation;
  4832. Vector3 padding;
  4833. NavmeshPartitionType partitionType;
  4834. /* readonly */
  4835. int refs;
  4836. float regionMergeSize;
  4837. float regionMinSize;
  4838. bool temporary;
  4839. int tileSize;
  4840. /* readonly */
  4841. StringHash type;
  4842. /* readonly */
  4843. String typeName;
  4844. /* readonly */
  4845. int weakRefs;
  4846. /* readonly */
  4847. BoundingBox worldBoundingBox;
  4848. };
  4849. class Engine
  4850. {
  4851. public:
  4852. // Methods:
  4853. Console CreateConsole();
  4854. DebugHud CreateDebugHud();
  4855. void DumpMemory();
  4856. void DumpProfiler();
  4857. void DumpResources(bool = false);
  4858. void Exit();
  4859. bool HasSubscribedToEvent(Object, const String&);
  4860. bool HasSubscribedToEvent(const String&);
  4861. void RunFrame();
  4862. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4863. // Properties:
  4864. bool autoExit;
  4865. /* readonly */
  4866. String category;
  4867. /* readonly */
  4868. bool exiting;
  4869. /* readonly */
  4870. bool headless;
  4871. /* readonly */
  4872. bool initialized;
  4873. int maxFps;
  4874. int maxInactiveFps;
  4875. int minFps;
  4876. bool pauseMinimized;
  4877. /* readonly */
  4878. int refs;
  4879. int timeStepSmoothing;
  4880. /* readonly */
  4881. StringHash type;
  4882. /* readonly */
  4883. String typeName;
  4884. /* readonly */
  4885. int weakRefs;
  4886. };
  4887. class File
  4888. {
  4889. public:
  4890. File();
  4891. File(const String&in, FileMode mode = FILE_READ);
  4892. // Methods:
  4893. void Close();
  4894. bool HasSubscribedToEvent(Object, const String&);
  4895. bool HasSubscribedToEvent(const String&);
  4896. bool Open(const String&, FileMode = FILE_READ);
  4897. Array<uint8> Read(uint);
  4898. bool ReadBool();
  4899. BoundingBox ReadBoundingBox();
  4900. int8 ReadByte();
  4901. Color ReadColor();
  4902. double ReadDouble();
  4903. String ReadFileID();
  4904. float ReadFloat();
  4905. int ReadInt();
  4906. int64 ReadInt64();
  4907. IntRect ReadIntRect();
  4908. IntVector2 ReadIntVector2();
  4909. String ReadLine();
  4910. Matrix3 ReadMatrix3();
  4911. Matrix3x4 ReadMatrix3x4();
  4912. Matrix4 ReadMatrix4();
  4913. uint ReadNetID();
  4914. Quaternion ReadPackedQuaternion();
  4915. Vector3 ReadPackedVector3(float);
  4916. Quaternion ReadQuaternion();
  4917. int16 ReadShort();
  4918. String ReadString();
  4919. StringHash ReadStringHash();
  4920. uint8 ReadUByte();
  4921. uint ReadUInt();
  4922. uint64 ReadUInt64();
  4923. uint16 ReadUShort();
  4924. uint ReadVLE();
  4925. Variant ReadVariant();
  4926. VariantMap ReadVariantMap();
  4927. Vector2 ReadVector2();
  4928. Vector3 ReadVector3();
  4929. Vector4 ReadVector4();
  4930. VectorBuffer ReadVectorBuffer(uint);
  4931. uint Seek(uint);
  4932. uint SeekRelative(int);
  4933. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4934. uint Tell() const;
  4935. uint Write(Array<uint8>);
  4936. bool WriteBool(bool);
  4937. bool WriteBoundingBox(const BoundingBox&);
  4938. bool WriteByte(int8);
  4939. bool WriteColor(const Color&);
  4940. bool WriteDouble(double);
  4941. bool WriteFileID(const String&);
  4942. bool WriteFloat(float);
  4943. bool WriteInt(int);
  4944. bool WriteInt64(int64);
  4945. bool WriteIntRect(const IntRect&);
  4946. bool WriteIntVector2(const IntVector2&);
  4947. bool WriteLine(const String&);
  4948. bool WriteMatrix3(const Matrix3&);
  4949. bool WriteMatrix3x4(const Matrix3x4&);
  4950. bool WriteMatrix4(const Matrix4&);
  4951. bool WriteNetID(uint);
  4952. bool WritePackedQuaternion(const Quaternion&);
  4953. bool WritePackedVector3(const Vector3&, float);
  4954. bool WriteQuaternion(const Quaternion&);
  4955. bool WriteShort(int16);
  4956. bool WriteString(const String&);
  4957. bool WriteStringHash(const StringHash&);
  4958. bool WriteUByte(uint8);
  4959. bool WriteUInt(uint);
  4960. bool WriteUInt64(uint64);
  4961. bool WriteUShort(uint16);
  4962. bool WriteVLE(uint);
  4963. bool WriteVariant(const Variant&);
  4964. bool WriteVariantMap(const VariantMap&);
  4965. bool WriteVector2(const Vector2&);
  4966. bool WriteVector3(const Vector3&);
  4967. bool WriteVector4(const Vector4&);
  4968. bool WriteVectorBuffer(const VectorBuffer&);
  4969. // Properties:
  4970. /* readonly */
  4971. String category;
  4972. /* readonly */
  4973. uint checksum;
  4974. /* readonly */
  4975. bool eof;
  4976. /* readonly */
  4977. FileMode mode;
  4978. /* readonly */
  4979. String name;
  4980. /* readonly */
  4981. bool open;
  4982. /* readonly */
  4983. bool packaged;
  4984. /* readonly */
  4985. uint position;
  4986. /* readonly */
  4987. int refs;
  4988. /* readonly */
  4989. uint size;
  4990. /* readonly */
  4991. StringHash type;
  4992. /* readonly */
  4993. String typeName;
  4994. /* readonly */
  4995. int weakRefs;
  4996. };
  4997. class FileSelector
  4998. {
  4999. public:
  5000. FileSelector();
  5001. // Methods:
  5002. bool HasSubscribedToEvent(Object, const String&);
  5003. bool HasSubscribedToEvent(const String&);
  5004. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5005. void SetButtonTexts(const String&, const String&);
  5006. void SetFilters(Array<String>, uint);
  5007. void UpdateElements();
  5008. // Properties:
  5009. /* readonly */
  5010. Button cancelButton;
  5011. /* readonly */
  5012. String category;
  5013. XMLFile defaultStyle;
  5014. bool directoryMode;
  5015. /* readonly */
  5016. ListView fileList;
  5017. String fileName;
  5018. /* readonly */
  5019. LineEdit fileNameEdit;
  5020. /* readonly */
  5021. String filter;
  5022. /* readonly */
  5023. uint filterIndex;
  5024. /* readonly */
  5025. DropDownList filterList;
  5026. /* readonly */
  5027. Button okButton;
  5028. String path;
  5029. /* readonly */
  5030. LineEdit pathEdit;
  5031. /* readonly */
  5032. int refs;
  5033. String title;
  5034. /* readonly */
  5035. Text titleText;
  5036. /* readonly */
  5037. StringHash type;
  5038. /* readonly */
  5039. String typeName;
  5040. /* readonly */
  5041. int weakRefs;
  5042. /* readonly */
  5043. Window window;
  5044. };
  5045. class FileSystem
  5046. {
  5047. public:
  5048. // Methods:
  5049. bool Copy(const String&, const String&);
  5050. bool CreateDir(const String&);
  5051. bool Delete(const String&);
  5052. bool DirExists(const String&) const;
  5053. bool FileExists(const String&) const;
  5054. String GetAppPreferencesDir(const String&, const String&) const;
  5055. uint GetLastModifiedTime(const String&) const;
  5056. bool HasSubscribedToEvent(Object, const String&);
  5057. bool HasSubscribedToEvent(const String&);
  5058. bool Rename(const String&, const String&);
  5059. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  5060. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5061. bool SetLastModifiedTime(const String&, uint);
  5062. int SystemCommand(const String&, bool = false);
  5063. uint SystemCommandAsync(const String&);
  5064. bool SystemOpen(const String&, const String&);
  5065. int SystemRun(const String&, Array<String>);
  5066. uint SystemRunAsync(const String&, Array<String>);
  5067. // Properties:
  5068. /* readonly */
  5069. String category;
  5070. String currentDir;
  5071. bool executeConsoleCommands;
  5072. /* readonly */
  5073. String programDir;
  5074. /* readonly */
  5075. int refs;
  5076. /* readonly */
  5077. StringHash type;
  5078. /* readonly */
  5079. String typeName;
  5080. /* readonly */
  5081. String userDocumentsDir;
  5082. /* readonly */
  5083. int weakRefs;
  5084. };
  5085. class FocusParameters
  5086. {
  5087. public:
  5088. FocusParameters();
  5089. FocusParameters(const FocusParameters&in);
  5090. FocusParameters(bool, bool, bool, float, float);
  5091. // Properties:
  5092. bool autoSize;
  5093. bool focus;
  5094. float minView;
  5095. bool nonUniform;
  5096. float quantize;
  5097. };
  5098. class Font
  5099. {
  5100. public:
  5101. Font();
  5102. Font(const String&in);
  5103. // Methods:
  5104. IntVector2 GetTotalGlyphOffset(float) const;
  5105. bool HasSubscribedToEvent(Object, const String&);
  5106. bool HasSubscribedToEvent(const String&);
  5107. bool Load(File);
  5108. bool Load(VectorBuffer&);
  5109. bool Load(const String&);
  5110. bool Save(File) const;
  5111. bool Save(VectorBuffer&) const;
  5112. bool Save(const String&) const;
  5113. bool SaveXML(File, int, bool = false, const String& = "\t");
  5114. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  5115. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  5116. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5117. // Properties:
  5118. IntVector2 absoluteGlyphOffset;
  5119. /* readonly */
  5120. String category;
  5121. /* readonly */
  5122. FontType fontType;
  5123. /* readonly */
  5124. uint memoryUse;
  5125. String name;
  5126. /* readonly */
  5127. int refs;
  5128. Vector2 scaledGlyphOffset;
  5129. /* readonly */
  5130. StringHash type;
  5131. /* readonly */
  5132. String typeName;
  5133. /* readonly */
  5134. uint useTimer;
  5135. /* readonly */
  5136. int weakRefs;
  5137. };
  5138. class Frustum
  5139. {
  5140. public:
  5141. ~Frustum();
  5142. Frustum();
  5143. Frustum(const Frustum&in);
  5144. // Methods:
  5145. void Define(const BoundingBox&, const Matrix3x4&);
  5146. void Define(const Matrix4&);
  5147. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  5148. void Define(float, float, float, float, float, const Matrix3x4&);
  5149. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  5150. void DefineSplit(const Matrix4&, float, float);
  5151. float Distance(const Vector3&) const;
  5152. Intersection IsInside(const BoundingBox&);
  5153. Intersection IsInside(const Sphere&);
  5154. Intersection IsInside(const Vector3&);
  5155. Intersection IsInsideFast(const BoundingBox&) const;
  5156. Intersection IsInsideFast(const Sphere&) const;
  5157. void Transform(const Matrix3&);
  5158. void Transform(const Matrix3x4&);
  5159. Frustum Transformed(const Matrix3&) const;
  5160. Frustum Transformed(const Matrix3x4&) const;
  5161. // Properties:
  5162. /* readonly */
  5163. Array<Vector3> vertices;
  5164. };
  5165. class Geometry
  5166. {
  5167. public:
  5168. Geometry();
  5169. // Methods:
  5170. bool HasSubscribedToEvent(Object, const String&);
  5171. bool HasSubscribedToEvent(const String&);
  5172. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5173. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  5174. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  5175. void SetIndexBuffer(IndexBuffer);
  5176. bool SetVertexBuffer(uint, VertexBuffer);
  5177. // Properties:
  5178. /* readonly */
  5179. String category;
  5180. /* readonly */
  5181. bool empty;
  5182. IndexBuffer indexBuffer;
  5183. /* readonly */
  5184. uint indexCount;
  5185. /* readonly */
  5186. uint indexStart;
  5187. float lodDistance;
  5188. uint numVertexBuffers;
  5189. /* readonly */
  5190. PrimitiveType primitiveType;
  5191. /* readonly */
  5192. int refs;
  5193. /* readonly */
  5194. StringHash type;
  5195. /* readonly */
  5196. String typeName;
  5197. /* readonly */
  5198. Array<VertexBuffer> vertexBuffers;
  5199. /* readonly */
  5200. uint vertexCount;
  5201. /* readonly */
  5202. uint vertexStart;
  5203. /* readonly */
  5204. int weakRefs;
  5205. };
  5206. class Graphics
  5207. {
  5208. public:
  5209. // Methods:
  5210. void BeginDumpShaders(const String&);
  5211. void Close();
  5212. void EndDumpShaders();
  5213. bool HasSubscribedToEvent(Object, const String&);
  5214. bool HasSubscribedToEvent(const String&);
  5215. void Maximize();
  5216. void Minimize();
  5217. void PrecacheShaders(File);
  5218. void PrecacheShaders(VectorBuffer&);
  5219. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5220. bool SetMode(int, int);
  5221. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  5222. void SetWindowPosition(int, int);
  5223. bool TakeScreenShot(Image);
  5224. bool ToggleFullscreen();
  5225. // Properties:
  5226. /* readonly */
  5227. String apiName;
  5228. /* readonly */
  5229. bool borderless;
  5230. /* readonly */
  5231. String category;
  5232. /* readonly */
  5233. bool deferredSupport;
  5234. /* readonly */
  5235. Array<IntVector2> desktopResolution;
  5236. /* readonly */
  5237. bool deviceLost;
  5238. bool dither;
  5239. bool flushGPU;
  5240. /* readonly */
  5241. bool fullscreen;
  5242. /* readonly */
  5243. bool hardwareShadowSupport;
  5244. /* readonly */
  5245. int height;
  5246. /* readonly */
  5247. bool initialized;
  5248. /* readonly */
  5249. bool instancingSupport;
  5250. /* readonly */
  5251. bool lightPrepassSupport;
  5252. /* readonly */
  5253. int monitorCount;
  5254. /* readonly */
  5255. int multiSample;
  5256. /* readonly */
  5257. Array<int> multiSampleLevels;
  5258. /* readonly */
  5259. uint numBatches;
  5260. /* readonly */
  5261. uint numPrimitives;
  5262. String orientations;
  5263. /* readonly */
  5264. bool readableDepthSupport;
  5265. /* readonly */
  5266. int refs;
  5267. /* readonly */
  5268. bool resizable;
  5269. /* readonly */
  5270. Array<Array<IntVector3>> resolutions;
  5271. bool sRGB;
  5272. /* readonly */
  5273. bool sRGBSupport;
  5274. /* readonly */
  5275. bool sRGBWriteSupport;
  5276. String shaderCacheDir;
  5277. /* readonly */
  5278. IntVector2 size;
  5279. /* readonly */
  5280. bool tripleBuffer;
  5281. /* readonly */
  5282. StringHash type;
  5283. /* readonly */
  5284. String typeName;
  5285. /* readonly */
  5286. bool vsync;
  5287. /* readonly */
  5288. int weakRefs;
  5289. /* readonly */
  5290. int width;
  5291. /* writeonly */
  5292. Image windowIcon;
  5293. IntVector2 windowPosition;
  5294. String windowTitle;
  5295. };
  5296. class HttpRequest
  5297. {
  5298. public:
  5299. // Methods:
  5300. Array<uint8> Read(uint);
  5301. bool ReadBool();
  5302. BoundingBox ReadBoundingBox();
  5303. int8 ReadByte();
  5304. Color ReadColor();
  5305. double ReadDouble();
  5306. String ReadFileID();
  5307. float ReadFloat();
  5308. int ReadInt();
  5309. int64 ReadInt64();
  5310. IntRect ReadIntRect();
  5311. IntVector2 ReadIntVector2();
  5312. String ReadLine();
  5313. Matrix3 ReadMatrix3();
  5314. Matrix3x4 ReadMatrix3x4();
  5315. Matrix4 ReadMatrix4();
  5316. uint ReadNetID();
  5317. Quaternion ReadPackedQuaternion();
  5318. Vector3 ReadPackedVector3(float);
  5319. Quaternion ReadQuaternion();
  5320. int16 ReadShort();
  5321. String ReadString();
  5322. StringHash ReadStringHash();
  5323. uint8 ReadUByte();
  5324. uint ReadUInt();
  5325. uint64 ReadUInt64();
  5326. uint16 ReadUShort();
  5327. uint ReadVLE();
  5328. Variant ReadVariant();
  5329. VariantMap ReadVariantMap();
  5330. Vector2 ReadVector2();
  5331. Vector3 ReadVector3();
  5332. Vector4 ReadVector4();
  5333. VectorBuffer ReadVectorBuffer(uint);
  5334. uint Seek(uint);
  5335. uint SeekRelative(int);
  5336. uint Tell() const;
  5337. // Properties:
  5338. /* readonly */
  5339. uint availableSize;
  5340. /* readonly */
  5341. uint checksum;
  5342. /* readonly */
  5343. bool eof;
  5344. /* readonly */
  5345. String error;
  5346. /* readonly */
  5347. String name;
  5348. /* readonly */
  5349. bool open;
  5350. /* readonly */
  5351. uint position;
  5352. /* readonly */
  5353. int refs;
  5354. /* readonly */
  5355. uint size;
  5356. /* readonly */
  5357. HttpRequestState state;
  5358. /* readonly */
  5359. String url;
  5360. /* readonly */
  5361. String verb;
  5362. /* readonly */
  5363. int weakRefs;
  5364. };
  5365. class IKEffector
  5366. {
  5367. public:
  5368. // Methods:
  5369. void ApplyAttributes();
  5370. void DrawDebugGeometry(DebugRenderer, bool);
  5371. void DrawDebugGeometry(bool);
  5372. Variant GetAttribute(const String&) const;
  5373. ValueAnimation GetAttributeAnimation(const String&) const;
  5374. float GetAttributeAnimationSpeed(const String&) const;
  5375. float GetAttributeAnimationTime(const String&) const;
  5376. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5377. Variant GetAttributeDefault(const String&) const;
  5378. bool GetInterceptNetworkUpdate(const String&) const;
  5379. bool HasSubscribedToEvent(Object, const String&);
  5380. bool HasSubscribedToEvent(const String&);
  5381. bool Load(File, bool = false);
  5382. bool Load(VectorBuffer&, bool = false);
  5383. bool LoadJSON(const JSONValue&, bool = false);
  5384. bool LoadXML(const XMLElement&, bool = false);
  5385. void MarkNetworkUpdate() const;
  5386. void Remove();
  5387. void RemoveAttributeAnimation(const String&);
  5388. void RemoveInstanceDefault();
  5389. void RemoveObjectAnimation();
  5390. void ResetToDefault();
  5391. bool Save(File) const;
  5392. bool Save(VectorBuffer&) const;
  5393. bool SaveJSON(JSONValue&) const;
  5394. bool SaveXML(XMLElement&) const;
  5395. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5396. void SetAnimationTime(float);
  5397. bool SetAttribute(const String&, const Variant&);
  5398. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5399. void SetAttributeAnimationSpeed(const String&, float);
  5400. void SetAttributeAnimationTime(const String&, float);
  5401. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5402. void SetInterceptNetworkUpdate(const String&, bool);
  5403. // Properties:
  5404. bool animationEnabled;
  5405. /* readonly */
  5406. Array<Variant> attributeDefaults;
  5407. /* readonly */
  5408. Array<AttributeInfo> attributeInfos;
  5409. Array<Variant> attributes;
  5410. /* readonly */
  5411. String category;
  5412. uint chainLength;
  5413. bool enabled;
  5414. /* readonly */
  5415. bool enabledEffective;
  5416. /* readonly */
  5417. uint id;
  5418. /* readonly */
  5419. Node node;
  5420. /* readonly */
  5421. uint numAttributes;
  5422. ObjectAnimation objectAnimation;
  5423. /* readonly */
  5424. int refs;
  5425. float rotationDecay;
  5426. float rotationWeight;
  5427. String targetName;
  5428. Node targetNode;
  5429. Vector3 targetPosition;
  5430. Quaternion targetRotation;
  5431. bool temporary;
  5432. /* readonly */
  5433. StringHash type;
  5434. /* readonly */
  5435. String typeName;
  5436. /* readonly */
  5437. int weakRefs;
  5438. float weight;
  5439. };
  5440. class IKSolver
  5441. {
  5442. public:
  5443. // Methods:
  5444. void ApplyActivePoseToScene();
  5445. void ApplyAttributes();
  5446. void ApplyOriginalPoseToActivePose();
  5447. void ApplyOriginalPoseToScene();
  5448. void ApplySceneToActivePose();
  5449. void ApplySceneToInitialPose();
  5450. void CalculateJointRotations();
  5451. void DrawDebugGeometry(DebugRenderer, bool);
  5452. void DrawDebugGeometry(bool);
  5453. Variant GetAttribute(const String&) const;
  5454. ValueAnimation GetAttributeAnimation(const String&) const;
  5455. float GetAttributeAnimationSpeed(const String&) const;
  5456. float GetAttributeAnimationTime(const String&) const;
  5457. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5458. Variant GetAttributeDefault(const String&) const;
  5459. bool GetInterceptNetworkUpdate(const String&) const;
  5460. bool HasSubscribedToEvent(Object, const String&);
  5461. bool HasSubscribedToEvent(const String&);
  5462. bool Load(File, bool = false);
  5463. bool Load(VectorBuffer&, bool = false);
  5464. bool LoadJSON(const JSONValue&, bool = false);
  5465. bool LoadXML(const XMLElement&, bool = false);
  5466. void MarkNetworkUpdate() const;
  5467. void RebuildChainTrees();
  5468. void RecalculateSegmentLengths();
  5469. void Remove();
  5470. void RemoveAttributeAnimation(const String&);
  5471. void RemoveInstanceDefault();
  5472. void RemoveObjectAnimation();
  5473. void ResetToDefault();
  5474. bool Save(File) const;
  5475. bool Save(VectorBuffer&) const;
  5476. bool SaveJSON(JSONValue&) const;
  5477. bool SaveXML(XMLElement&) const;
  5478. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5479. void SetAnimationTime(float);
  5480. bool SetAttribute(const String&, const Variant&);
  5481. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5482. void SetAttributeAnimationSpeed(const String&, float);
  5483. void SetAttributeAnimationTime(const String&, float);
  5484. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5485. void SetInterceptNetworkUpdate(const String&, bool);
  5486. void Solve();
  5487. // Properties:
  5488. bool AUTO_SOLVE;
  5489. bool CONSTRAINTS;
  5490. bool JOINT_ROTATIONS;
  5491. bool TARGET_ROTATIONS;
  5492. bool UPDATE_ACTIVE_POSE;
  5493. bool UPDATE_ORIGINAL_POSE;
  5494. bool USE_ORIGINAL_POSE;
  5495. IKAlgorithm algorithm;
  5496. bool animationEnabled;
  5497. /* readonly */
  5498. Array<Variant> attributeDefaults;
  5499. /* readonly */
  5500. Array<AttributeInfo> attributeInfos;
  5501. Array<Variant> attributes;
  5502. /* readonly */
  5503. String category;
  5504. bool enabled;
  5505. /* readonly */
  5506. bool enabledEffective;
  5507. /* readonly */
  5508. uint id;
  5509. uint maximumIterations;
  5510. /* readonly */
  5511. Node node;
  5512. /* readonly */
  5513. uint numAttributes;
  5514. ObjectAnimation objectAnimation;
  5515. /* readonly */
  5516. int refs;
  5517. bool temporary;
  5518. float tolerance;
  5519. /* readonly */
  5520. StringHash type;
  5521. /* readonly */
  5522. String typeName;
  5523. /* readonly */
  5524. int weakRefs;
  5525. };
  5526. class Image
  5527. {
  5528. public:
  5529. Image();
  5530. Image(const String&in);
  5531. // Methods:
  5532. void Clear(const Color&);
  5533. void ClearInt(uint);
  5534. bool FlipHorizontal();
  5535. bool FlipVertical();
  5536. Color GetPixel(int, int) const;
  5537. Color GetPixel(int, int, int) const;
  5538. Color GetPixelBilinear(float, float) const;
  5539. uint GetPixelInt(int, int) const;
  5540. uint GetPixelInt(int, int, int) const;
  5541. Color GetPixelTrilinear(float, float, float) const;
  5542. Image GetSubimage(const IntRect&) const;
  5543. bool HasSubscribedToEvent(Object, const String&);
  5544. bool HasSubscribedToEvent(const String&);
  5545. bool Load(File);
  5546. bool Load(VectorBuffer&);
  5547. bool Load(const String&);
  5548. bool LoadColorLUT(File);
  5549. bool LoadColorLUT(VectorBuffer&);
  5550. bool Resize(int, int);
  5551. bool Save(File) const;
  5552. bool Save(VectorBuffer&) const;
  5553. bool Save(const String&) const;
  5554. bool SaveBMP(const String&) const;
  5555. bool SaveDDS(const String&) const;
  5556. bool SaveJPG(const String&, int) const;
  5557. bool SavePNG(const String&) const;
  5558. bool SaveTGA(const String&) const;
  5559. bool SaveWEBP(const String&, float = 0.0f) const;
  5560. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5561. void SetPixel(int, int, const Color&);
  5562. void SetPixel(int, int, int, const Color&);
  5563. void SetPixelInt(int, int, int, uint);
  5564. void SetPixelInt(int, int, uint);
  5565. bool SetSize(int, int, int, uint);
  5566. bool SetSize(int, int, uint);
  5567. // Properties:
  5568. /* readonly */
  5569. bool array;
  5570. /* readonly */
  5571. String category;
  5572. /* readonly */
  5573. uint components;
  5574. /* readonly */
  5575. bool compressed;
  5576. /* readonly */
  5577. CompressedFormat compressedFormat;
  5578. /* readonly */
  5579. bool cubemap;
  5580. /* readonly */
  5581. int depth;
  5582. /* readonly */
  5583. int height;
  5584. /* readonly */
  5585. uint memoryUse;
  5586. String name;
  5587. /* readonly */
  5588. uint numCompressedLevels;
  5589. /* readonly */
  5590. int refs;
  5591. /* readonly */
  5592. bool sRGB;
  5593. /* readonly */
  5594. StringHash type;
  5595. /* readonly */
  5596. String typeName;
  5597. /* readonly */
  5598. uint useTimer;
  5599. /* readonly */
  5600. int weakRefs;
  5601. /* readonly */
  5602. int width;
  5603. };
  5604. class IndexBuffer
  5605. {
  5606. public:
  5607. IndexBuffer();
  5608. // Methods:
  5609. VectorBuffer GetData();
  5610. bool HasSubscribedToEvent(Object, const String&);
  5611. bool HasSubscribedToEvent(const String&);
  5612. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5613. bool SetData(VectorBuffer&);
  5614. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5615. void SetSize(uint, bool, bool = false);
  5616. // Properties:
  5617. /* readonly */
  5618. String category;
  5619. /* readonly */
  5620. bool dynamic;
  5621. /* readonly */
  5622. uint indexCount;
  5623. /* readonly */
  5624. uint indexSize;
  5625. /* readonly */
  5626. int refs;
  5627. bool shadowed;
  5628. /* readonly */
  5629. StringHash type;
  5630. /* readonly */
  5631. String typeName;
  5632. /* readonly */
  5633. int weakRefs;
  5634. };
  5635. class Input
  5636. {
  5637. public:
  5638. // Methods:
  5639. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5640. void CenterMousePosition();
  5641. int GetKeyFromName(const String&) const;
  5642. int GetKeyFromScancode(int) const;
  5643. String GetKeyName(int) const;
  5644. int GetScancodeFromKey(int) const;
  5645. int GetScancodeFromName(const String&) const;
  5646. String GetScancodeName(int) const;
  5647. bool HasSubscribedToEvent(Object, const String&);
  5648. bool HasSubscribedToEvent(const String&);
  5649. uint LoadGestures(File);
  5650. uint LoadGestures(VectorBuffer&);
  5651. bool RecordGesture();
  5652. void RemoveAllGestures();
  5653. bool RemoveGesture(uint);
  5654. bool RemoveScreenJoystick(int);
  5655. void ResetMouseGrabbed();
  5656. void ResetMouseMode();
  5657. void ResetMouseVisible();
  5658. bool SaveGesture(File, uint);
  5659. bool SaveGesture(VectorBuffer&, uint);
  5660. bool SaveGestures(File);
  5661. bool SaveGestures(VectorBuffer&);
  5662. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5663. void SetMouseGrabbed(bool, bool = false);
  5664. void SetMouseMode(MouseMode, bool = false);
  5665. void SetMouseVisible(bool, bool = false);
  5666. // Properties:
  5667. /* readonly */
  5668. String category;
  5669. /* readonly */
  5670. bool focus;
  5671. /* readonly */
  5672. Vector2 inputScale;
  5673. /* readonly */
  5674. Array<JoystickState> joysticks;
  5675. /* readonly */
  5676. Array<JoystickState> joysticksByIndex;
  5677. /* readonly */
  5678. Array<JoystickState> joysticksByName;
  5679. /* readonly */
  5680. Array<bool> keyDown;
  5681. /* readonly */
  5682. Array<bool> keyPress;
  5683. /* readonly */
  5684. bool minimized;
  5685. /* readonly */
  5686. Array<bool> mouseButtonDown;
  5687. /* readonly */
  5688. Array<bool> mouseButtonPress;
  5689. bool mouseGrabbed;
  5690. /* readonly */
  5691. bool mouseLocked;
  5692. MouseMode mouseMode;
  5693. /* readonly */
  5694. IntVector2 mouseMove;
  5695. /* readonly */
  5696. int mouseMoveWheel;
  5697. /* readonly */
  5698. int mouseMoveX;
  5699. /* readonly */
  5700. int mouseMoveY;
  5701. IntVector2 mousePosition;
  5702. bool mouseVisible;
  5703. /* readonly */
  5704. uint numJoysticks;
  5705. /* readonly */
  5706. uint numTouches;
  5707. /* readonly */
  5708. Array<bool> qualifierDown;
  5709. /* readonly */
  5710. Array<bool> qualifierPress;
  5711. /* readonly */
  5712. int qualifiers;
  5713. /* readonly */
  5714. int refs;
  5715. /* readonly */
  5716. Array<bool> scancodeDown;
  5717. /* readonly */
  5718. Array<bool> scancodePress;
  5719. Array<bool> screenJoystickVisible;
  5720. /* readonly */
  5721. bool screenKeyboardSupport;
  5722. bool screenKeyboardVisible;
  5723. bool toggleFullscreen;
  5724. bool touchEmulation;
  5725. /* readonly */
  5726. Array<TouchState> touches;
  5727. /* readonly */
  5728. StringHash type;
  5729. /* readonly */
  5730. String typeName;
  5731. /* readonly */
  5732. int weakRefs;
  5733. };
  5734. class IntRect
  5735. {
  5736. public:
  5737. IntRect();
  5738. IntRect(const IntRect&in);
  5739. IntRect(int, int, int, int);
  5740. IntRect(const IntVector2&in, const IntVector2&in);
  5741. IntRect(int[]&inout);
  5742. // Methods:
  5743. int Clip(const IntRect&);
  5744. Intersection IsInside(const IntVector2&) const;
  5745. int Merge(const IntRect&);
  5746. // Properties:
  5747. int bottom;
  5748. /* readonly */
  5749. Array<int> data;
  5750. /* readonly */
  5751. int height;
  5752. int left;
  5753. int right;
  5754. /* readonly */
  5755. IntVector2 size;
  5756. int top;
  5757. /* readonly */
  5758. int width;
  5759. };
  5760. class IntVector2
  5761. {
  5762. public:
  5763. IntVector2();
  5764. IntVector2(const IntVector2&in);
  5765. IntVector2(int, int);
  5766. IntVector2(int[]&inout);
  5767. // Methods:
  5768. float Length() const;
  5769. uint ToHash() const;
  5770. String ToString() const;
  5771. // Properties:
  5772. /* readonly */
  5773. Array<int> data;
  5774. int x;
  5775. int y;
  5776. // Constants:
  5777. static const IntVector2 DOWN;
  5778. static const IntVector2 LEFT;
  5779. static const IntVector2 ONE;
  5780. static const IntVector2 RIGHT;
  5781. static const IntVector2 UP;
  5782. static const IntVector2 ZERO;
  5783. };
  5784. class IntVector3
  5785. {
  5786. public:
  5787. IntVector3();
  5788. IntVector3(const IntVector3&in);
  5789. IntVector3(int, int, int);
  5790. IntVector3(int[]&inout);
  5791. // Methods:
  5792. float Length() const;
  5793. uint ToHash() const;
  5794. String ToString() const;
  5795. // Properties:
  5796. /* readonly */
  5797. Array<int> data;
  5798. int x;
  5799. int y;
  5800. int z;
  5801. // Constants:
  5802. static const IntVector3 BACK;
  5803. static const IntVector3 DOWN;
  5804. static const IntVector3 FORWARD;
  5805. static const IntVector3 LEFT;
  5806. static const IntVector3 ONE;
  5807. static const IntVector3 RIGHT;
  5808. static const IntVector3 UP;
  5809. static const IntVector3 ZERO;
  5810. };
  5811. class JSONFile
  5812. {
  5813. public:
  5814. JSONFile();
  5815. JSONFile(const String&in);
  5816. // Methods:
  5817. bool FromString(const String&);
  5818. JSONValue& GetRoot();
  5819. bool HasSubscribedToEvent(Object, const String&);
  5820. bool HasSubscribedToEvent(const String&);
  5821. bool Load(File);
  5822. bool Load(VectorBuffer&);
  5823. bool Load(const String&);
  5824. bool Save(File) const;
  5825. bool Save(File, const String&) const;
  5826. bool Save(VectorBuffer&) const;
  5827. bool Save(const String&) const;
  5828. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5829. // Properties:
  5830. /* readonly */
  5831. String category;
  5832. /* readonly */
  5833. uint memoryUse;
  5834. String name;
  5835. /* readonly */
  5836. int refs;
  5837. /* readonly */
  5838. JSONValue root;
  5839. /* readonly */
  5840. StringHash type;
  5841. /* readonly */
  5842. String typeName;
  5843. /* readonly */
  5844. uint useTimer;
  5845. /* readonly */
  5846. int weakRefs;
  5847. };
  5848. class JSONValue
  5849. {
  5850. public:
  5851. ~JSONValue();
  5852. JSONValue();
  5853. JSONValue(bool);
  5854. JSONValue(int);
  5855. JSONValue(uint);
  5856. JSONValue(float);
  5857. JSONValue(double);
  5858. JSONValue(const String&in);
  5859. JSONValue(const JSONValue&in);
  5860. // Methods:
  5861. void Clear();
  5862. bool Contains(const String&) const;
  5863. void Erase(const String&);
  5864. void Erase(uint, uint = 1);
  5865. bool GetBool() const;
  5866. double GetDouble() const;
  5867. float GetFloat() const;
  5868. int GetInt() const;
  5869. uint GetUInt() const;
  5870. Variant GetVariant() const;
  5871. VariantMap GetVariantMap() const;
  5872. void Insert(uint, const JSONValue&);
  5873. const JSONValue& Get(const String&) const;
  5874. void Pop();
  5875. void Push(const JSONValue&);
  5876. void Resize(uint);
  5877. void Set(const String&, const JSONValue&);
  5878. void SetVariant(const Variant&);
  5879. void SetVariantMap(const VariantMap&);
  5880. const String& GetString() const;
  5881. // Properties:
  5882. /* readonly */
  5883. bool isArray;
  5884. /* readonly */
  5885. bool isBool;
  5886. /* readonly */
  5887. bool isNull;
  5888. /* readonly */
  5889. bool isNumber;
  5890. /* readonly */
  5891. bool isObject;
  5892. /* readonly */
  5893. bool isString;
  5894. /* readonly */
  5895. Array<String> keys;
  5896. /* readonly */
  5897. JSONNumberType numberType;
  5898. /* readonly */
  5899. String numberTypeName;
  5900. /* readonly */
  5901. uint size;
  5902. /* readonly */
  5903. JSONValueType valueType;
  5904. /* readonly */
  5905. String valueTypeName;
  5906. /* readonly */
  5907. Array<JSONValue> values;
  5908. };
  5909. class JoystickState
  5910. {
  5911. public:
  5912. // Properties:
  5913. /* readonly */
  5914. Array<float> axisPosition;
  5915. /* readonly */
  5916. Array<bool> buttonDown;
  5917. /* readonly */
  5918. Array<bool> buttonPress;
  5919. /* readonly */
  5920. bool controller;
  5921. /* readonly */
  5922. Array<int> hatPosition;
  5923. int joystickID;
  5924. String name;
  5925. /* readonly */
  5926. uint numAxes;
  5927. /* readonly */
  5928. uint numButtons;
  5929. /* readonly */
  5930. uint numHats;
  5931. };
  5932. class Light
  5933. {
  5934. public:
  5935. // Methods:
  5936. void ApplyAttributes();
  5937. void DrawDebugGeometry(DebugRenderer, bool);
  5938. Variant GetAttribute(const String&) const;
  5939. ValueAnimation GetAttributeAnimation(const String&) const;
  5940. float GetAttributeAnimationSpeed(const String&) const;
  5941. float GetAttributeAnimationTime(const String&) const;
  5942. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5943. Variant GetAttributeDefault(const String&) const;
  5944. bool GetInterceptNetworkUpdate(const String&) const;
  5945. bool HasSubscribedToEvent(Object, const String&);
  5946. bool HasSubscribedToEvent(const String&);
  5947. bool IsInView(Camera) const;
  5948. bool Load(File, bool = false);
  5949. bool Load(VectorBuffer&, bool = false);
  5950. bool LoadJSON(const JSONValue&, bool = false);
  5951. bool LoadXML(const XMLElement&, bool = false);
  5952. void MarkNetworkUpdate() const;
  5953. void Remove();
  5954. void RemoveAttributeAnimation(const String&);
  5955. void RemoveInstanceDefault();
  5956. void RemoveObjectAnimation();
  5957. void ResetToDefault();
  5958. bool Save(File) const;
  5959. bool Save(VectorBuffer&) const;
  5960. bool SaveJSON(JSONValue&) const;
  5961. bool SaveXML(XMLElement&) const;
  5962. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5963. void SetAnimationTime(float);
  5964. bool SetAttribute(const String&, const Variant&);
  5965. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5966. void SetAttributeAnimationSpeed(const String&, float);
  5967. void SetAttributeAnimationTime(const String&, float);
  5968. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5969. void SetInterceptNetworkUpdate(const String&, bool);
  5970. // Properties:
  5971. bool animationEnabled;
  5972. float aspectRatio;
  5973. /* readonly */
  5974. Array<Variant> attributeDefaults;
  5975. /* readonly */
  5976. Array<AttributeInfo> attributeInfos;
  5977. Array<Variant> attributes;
  5978. /* readonly */
  5979. BoundingBox boundingBox;
  5980. float brightness;
  5981. bool castShadows;
  5982. /* readonly */
  5983. String category;
  5984. Color color;
  5985. /* readonly */
  5986. Color colorFromTemperature;
  5987. float drawDistance;
  5988. /* readonly */
  5989. Color effectiveColor;
  5990. /* readonly */
  5991. float effectiveSpecularIntensity;
  5992. bool enabled;
  5993. /* readonly */
  5994. bool enabledEffective;
  5995. float fadeDistance;
  5996. float fov;
  5997. /* readonly */
  5998. Frustum frustum;
  5999. /* readonly */
  6000. uint id;
  6001. /* readonly */
  6002. bool inView;
  6003. float length;
  6004. uint lightMask;
  6005. LightType lightType;
  6006. float lodBias;
  6007. uint maxLights;
  6008. /* readonly */
  6009. bool negative;
  6010. /* readonly */
  6011. Node node;
  6012. /* readonly */
  6013. uint numAttributes;
  6014. /* readonly */
  6015. int numShadowSplits;
  6016. ObjectAnimation objectAnimation;
  6017. bool occludee;
  6018. bool occluder;
  6019. bool perVertex;
  6020. float radius;
  6021. Texture rampTexture;
  6022. float range;
  6023. /* readonly */
  6024. int refs;
  6025. BiasParameters shadowBias;
  6026. CascadeParameters shadowCascade;
  6027. float shadowDistance;
  6028. float shadowFadeDistance;
  6029. FocusParameters shadowFocus;
  6030. float shadowIntensity;
  6031. uint shadowMask;
  6032. float shadowMaxExtrusion;
  6033. float shadowNearFarRatio;
  6034. float shadowResolution;
  6035. Texture shapeTexture;
  6036. float specularIntensity;
  6037. float temperature;
  6038. bool temporary;
  6039. /* readonly */
  6040. StringHash type;
  6041. /* readonly */
  6042. String typeName;
  6043. bool usePhysicalValues;
  6044. uint viewMask;
  6045. /* readonly */
  6046. int weakRefs;
  6047. /* readonly */
  6048. BoundingBox worldBoundingBox;
  6049. uint zoneMask;
  6050. };
  6051. class LineEdit
  6052. {
  6053. public:
  6054. LineEdit();
  6055. LineEdit(const String&in);
  6056. // Methods:
  6057. void AddChild(UIElement);
  6058. void AddTag(const String&);
  6059. void AddTags(const String&, int8 = ';');
  6060. void ApplyAttributes();
  6061. void BringToFront();
  6062. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6063. void DisableLayoutUpdate();
  6064. IntVector2 ElementToScreen(const IntVector2&);
  6065. void EnableLayoutUpdate();
  6066. uint FindChild(UIElement) const;
  6067. Variant GetAttribute(const String&) const;
  6068. ValueAnimation GetAttributeAnimation(const String&) const;
  6069. float GetAttributeAnimationSpeed(const String&) const;
  6070. float GetAttributeAnimationTime(const String&) const;
  6071. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6072. Variant GetAttributeDefault(const String&) const;
  6073. UIElement GetChild(const String&, bool = false) const;
  6074. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6075. Array<UIElement> GetChildren(bool = false) const;
  6076. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6077. UIElement GetElementEventSender() const;
  6078. bool GetInterceptNetworkUpdate(const String&) const;
  6079. uint GetNumChildren(bool) const;
  6080. bool HasSubscribedToEvent(Object, const String&);
  6081. bool HasSubscribedToEvent(const String&);
  6082. bool HasTag(const String&) const;
  6083. void InsertChild(uint, UIElement);
  6084. bool IsInside(IntVector2, bool);
  6085. bool IsInsideCombined(IntVector2, bool);
  6086. bool Load(File, bool = false);
  6087. bool Load(VectorBuffer&, bool = false);
  6088. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6089. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6090. bool LoadJSON(const JSONValue&, bool = false);
  6091. bool LoadXML(File);
  6092. bool LoadXML(VectorBuffer&);
  6093. bool LoadXML(XMLFile, XMLFile);
  6094. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6095. bool LoadXML(const XMLElement&, bool = false);
  6096. void MarkNetworkUpdate() const;
  6097. void Remove();
  6098. void RemoveAllChildren();
  6099. void RemoveAllTags();
  6100. void RemoveAttributeAnimation(const String&);
  6101. void RemoveChild(UIElement, uint = 0);
  6102. void RemoveChild(uint);
  6103. void RemoveInstanceDefault();
  6104. void RemoveObjectAnimation();
  6105. bool RemoveTag(const String&);
  6106. void ResetDeepEnabled();
  6107. void ResetToDefault();
  6108. bool Save(File) const;
  6109. bool Save(VectorBuffer&) const;
  6110. bool SaveJSON(JSONValue&) const;
  6111. bool SaveXML(File, const String& = "\t");
  6112. bool SaveXML(VectorBuffer&, const String& = "\t");
  6113. bool SaveXML(XMLElement&) const;
  6114. IntVector2 ScreenToElement(const IntVector2&);
  6115. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6116. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6117. void SetAnimationTime(float);
  6118. bool SetAttribute(const String&, const Variant&);
  6119. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6120. void SetAttributeAnimationSpeed(const String&, float);
  6121. void SetAttributeAnimationTime(const String&, float);
  6122. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6123. void SetDeepEnabled(bool);
  6124. void SetEnabledRecursive(bool);
  6125. void SetFixedHeight(int);
  6126. void SetFixedSize(int, int);
  6127. void SetFixedWidth(int);
  6128. void SetFullImageRect();
  6129. void SetHoverOffset(int, int);
  6130. void SetInterceptNetworkUpdate(const String&, bool);
  6131. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6132. void SetMaxAnchor(float, float);
  6133. void SetMaxSize(int, int);
  6134. void SetMinAnchor(float, float);
  6135. void SetMinSize(int, int);
  6136. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6137. void SetPivot(float, float);
  6138. void SetPosition(int, int);
  6139. void SetSize(int, int);
  6140. bool SetStyle(const String&, XMLFile = null);
  6141. bool SetStyle(const XMLElement&);
  6142. bool SetStyleAuto(XMLFile = null);
  6143. void UpdateLayout();
  6144. const Variant& GetVar(const StringHash&);
  6145. // Properties:
  6146. bool animationEnabled;
  6147. /* readonly */
  6148. Array<Variant> attributeDefaults;
  6149. /* readonly */
  6150. Array<AttributeInfo> attributeInfos;
  6151. Array<Variant> attributes;
  6152. BlendMode blendMode;
  6153. IntRect border;
  6154. bool bringToBack;
  6155. bool bringToFront;
  6156. /* readonly */
  6157. String category;
  6158. /* readonly */
  6159. IntVector2 childOffset;
  6160. /* readonly */
  6161. Array<UIElement> children;
  6162. IntRect clipBorder;
  6163. bool clipChildren;
  6164. /* writeonly */
  6165. Color color;
  6166. /* readonly */
  6167. bool colorGradient;
  6168. Array<Color> colors;
  6169. /* readonly */
  6170. IntRect combinedScreenRect;
  6171. /* readonly */
  6172. BorderImage cursor;
  6173. float cursorBlinkRate;
  6174. bool cursorMovable;
  6175. uint cursorPosition;
  6176. XMLFile defaultStyle;
  6177. /* readonly */
  6178. float derivedOpacity;
  6179. /* readonly */
  6180. uint dragButtonCombo;
  6181. /* readonly */
  6182. int dragButtonCount;
  6183. uint dragDropMode;
  6184. uint echoCharacter;
  6185. bool editable;
  6186. bool elementEventSender;
  6187. bool enableAnchor;
  6188. bool enabled;
  6189. /* readonly */
  6190. bool enabledSelf;
  6191. /* readonly */
  6192. bool fixedHeight;
  6193. /* readonly */
  6194. bool fixedSize;
  6195. /* readonly */
  6196. bool fixedWidth;
  6197. bool focus;
  6198. FocusMode focusMode;
  6199. int height;
  6200. HorizontalAlignment horizontalAlignment;
  6201. IntVector2 hoverOffset;
  6202. /* readonly */
  6203. bool hovering;
  6204. IntRect imageBorder;
  6205. IntRect imageRect;
  6206. int indent;
  6207. int indentSpacing;
  6208. /* readonly */
  6209. int indentWidth;
  6210. bool internal;
  6211. IntRect layoutBorder;
  6212. Vector2 layoutFlexScale;
  6213. LayoutMode layoutMode;
  6214. int layoutSpacing;
  6215. Vector2 maxAnchor;
  6216. int maxHeight;
  6217. uint maxLength;
  6218. IntVector2 maxOffset;
  6219. IntVector2 maxSize;
  6220. int maxWidth;
  6221. Vector2 minAnchor;
  6222. int minHeight;
  6223. IntVector2 minOffset;
  6224. IntVector2 minSize;
  6225. int minWidth;
  6226. String name;
  6227. /* readonly */
  6228. uint numAllChildren;
  6229. /* readonly */
  6230. uint numAttributes;
  6231. /* readonly */
  6232. uint numChildren;
  6233. ObjectAnimation objectAnimation;
  6234. float opacity;
  6235. UIElement parent;
  6236. Vector2 pivot;
  6237. IntVector2 position;
  6238. int priority;
  6239. /* readonly */
  6240. int refs;
  6241. /* readonly */
  6242. UIElement root;
  6243. /* readonly */
  6244. IntVector2 screenPosition;
  6245. bool selected;
  6246. IntVector2 size;
  6247. bool sortChildren;
  6248. String style;
  6249. /* readonly */
  6250. Array<String> tags;
  6251. bool temporary;
  6252. String text;
  6253. bool textCopyable;
  6254. /* readonly */
  6255. Text textElement;
  6256. bool textSelectable;
  6257. Texture texture;
  6258. bool tiled;
  6259. TraversalMode traversalMode;
  6260. /* readonly */
  6261. StringHash type;
  6262. /* readonly */
  6263. String typeName;
  6264. bool useDerivedOpacity;
  6265. /* readonly */
  6266. VariantMap vars;
  6267. VerticalAlignment verticalAlignment;
  6268. bool visible;
  6269. /* readonly */
  6270. bool visibleEffective;
  6271. /* readonly */
  6272. int weakRefs;
  6273. int width;
  6274. };
  6275. class ListView
  6276. {
  6277. public:
  6278. ListView();
  6279. ListView(const String&in);
  6280. // Methods:
  6281. void AddChild(UIElement);
  6282. void AddItem(UIElement);
  6283. void AddSelection(uint);
  6284. void AddTag(const String&);
  6285. void AddTags(const String&, int8 = ';');
  6286. void ApplyAttributes();
  6287. void BringToFront();
  6288. void ChangeSelection(int, bool);
  6289. void ClearSelection();
  6290. void CopySelectedItemsToClipboard();
  6291. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6292. void DisableLayoutUpdate();
  6293. IntVector2 ElementToScreen(const IntVector2&);
  6294. void EnableLayoutUpdate();
  6295. void Expand(uint, bool, bool = false);
  6296. uint FindChild(UIElement) const;
  6297. uint FindItem(UIElement);
  6298. Variant GetAttribute(const String&) const;
  6299. ValueAnimation GetAttributeAnimation(const String&) const;
  6300. float GetAttributeAnimationSpeed(const String&) const;
  6301. float GetAttributeAnimationTime(const String&) const;
  6302. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6303. Variant GetAttributeDefault(const String&) const;
  6304. UIElement GetChild(const String&, bool = false) const;
  6305. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6306. Array<UIElement> GetChildren(bool = false) const;
  6307. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6308. UIElement GetElementEventSender() const;
  6309. bool GetInterceptNetworkUpdate(const String&) const;
  6310. Array<UIElement> GetItems() const;
  6311. uint GetNumChildren(bool) const;
  6312. bool HasSubscribedToEvent(Object, const String&);
  6313. bool HasSubscribedToEvent(const String&);
  6314. bool HasTag(const String&) const;
  6315. void InsertChild(uint, UIElement);
  6316. void InsertItem(uint, UIElement, UIElement = null);
  6317. bool IsExpanded(uint) const;
  6318. bool IsInside(IntVector2, bool);
  6319. bool IsInsideCombined(IntVector2, bool);
  6320. bool IsSelected(uint) const;
  6321. bool Load(File, bool = false);
  6322. bool Load(VectorBuffer&, bool = false);
  6323. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6324. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6325. bool LoadJSON(const JSONValue&, bool = false);
  6326. bool LoadXML(File);
  6327. bool LoadXML(VectorBuffer&);
  6328. bool LoadXML(XMLFile, XMLFile);
  6329. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6330. bool LoadXML(const XMLElement&, bool = false);
  6331. void MarkNetworkUpdate() const;
  6332. void Remove();
  6333. void RemoveAllChildren();
  6334. void RemoveAllItems();
  6335. void RemoveAllTags();
  6336. void RemoveAttributeAnimation(const String&);
  6337. void RemoveChild(UIElement, uint = 0);
  6338. void RemoveChild(uint);
  6339. void RemoveInstanceDefault();
  6340. void RemoveItem(UIElement, uint = 0);
  6341. void RemoveItem(uint);
  6342. void RemoveObjectAnimation();
  6343. void RemoveSelection(uint);
  6344. bool RemoveTag(const String&);
  6345. void ResetDeepEnabled();
  6346. void ResetToDefault();
  6347. bool Save(File) const;
  6348. bool Save(VectorBuffer&) const;
  6349. bool SaveJSON(JSONValue&) const;
  6350. bool SaveXML(File, const String& = "\t");
  6351. bool SaveXML(VectorBuffer&, const String& = "\t");
  6352. bool SaveXML(XMLElement&) const;
  6353. IntVector2 ScreenToElement(const IntVector2&);
  6354. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6355. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6356. void SetAnimationTime(float);
  6357. bool SetAttribute(const String&, const Variant&);
  6358. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6359. void SetAttributeAnimationSpeed(const String&, float);
  6360. void SetAttributeAnimationTime(const String&, float);
  6361. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6362. void SetDeepEnabled(bool);
  6363. void SetEnabledRecursive(bool);
  6364. void SetFixedHeight(int);
  6365. void SetFixedSize(int, int);
  6366. void SetFixedWidth(int);
  6367. void SetInterceptNetworkUpdate(const String&, bool);
  6368. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6369. void SetMaxAnchor(float, float);
  6370. void SetMaxSize(int, int);
  6371. void SetMinAnchor(float, float);
  6372. void SetMinSize(int, int);
  6373. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6374. void SetPivot(float, float);
  6375. void SetPosition(int, int);
  6376. void SetScrollBarsVisible(bool, bool);
  6377. void SetSelections(Array<uint>);
  6378. void SetSize(int, int);
  6379. bool SetStyle(const String&, XMLFile = null);
  6380. bool SetStyle(const XMLElement&);
  6381. bool SetStyleAuto(XMLFile = null);
  6382. void SetViewPosition(int, int);
  6383. void ToggleExpand(uint, bool = false);
  6384. void ToggleSelection(uint);
  6385. void UpdateLayout();
  6386. const Variant& GetVar(const StringHash&);
  6387. // Properties:
  6388. bool animationEnabled;
  6389. /* readonly */
  6390. Array<Variant> attributeDefaults;
  6391. /* readonly */
  6392. Array<AttributeInfo> attributeInfos;
  6393. Array<Variant> attributes;
  6394. bool autoDisableChildren;
  6395. float autoDisableThreshold;
  6396. int baseIndent;
  6397. bool bringToBack;
  6398. bool bringToFront;
  6399. /* readonly */
  6400. String category;
  6401. /* readonly */
  6402. IntVector2 childOffset;
  6403. /* readonly */
  6404. Array<UIElement> children;
  6405. bool clearSelectionOnDefocus;
  6406. IntRect clipBorder;
  6407. bool clipChildren;
  6408. /* writeonly */
  6409. Color color;
  6410. /* readonly */
  6411. bool colorGradient;
  6412. Array<Color> colors;
  6413. /* readonly */
  6414. IntRect combinedScreenRect;
  6415. /* readonly */
  6416. UIElement contentElement;
  6417. XMLFile defaultStyle;
  6418. /* readonly */
  6419. float derivedOpacity;
  6420. /* readonly */
  6421. uint dragButtonCombo;
  6422. /* readonly */
  6423. int dragButtonCount;
  6424. uint dragDropMode;
  6425. bool editable;
  6426. bool elementEventSender;
  6427. bool enableAnchor;
  6428. bool enabled;
  6429. /* readonly */
  6430. bool enabledSelf;
  6431. /* readonly */
  6432. bool fixedHeight;
  6433. /* readonly */
  6434. bool fixedSize;
  6435. /* readonly */
  6436. bool fixedWidth;
  6437. bool focus;
  6438. FocusMode focusMode;
  6439. int height;
  6440. bool hierarchyMode;
  6441. HighlightMode highlightMode;
  6442. HorizontalAlignment horizontalAlignment;
  6443. /* readonly */
  6444. ScrollBar horizontalScrollBar;
  6445. /* readonly */
  6446. bool hovering;
  6447. int indent;
  6448. int indentSpacing;
  6449. /* readonly */
  6450. int indentWidth;
  6451. bool internal;
  6452. /* readonly */
  6453. Array<UIElement> items;
  6454. IntRect layoutBorder;
  6455. Vector2 layoutFlexScale;
  6456. LayoutMode layoutMode;
  6457. int layoutSpacing;
  6458. Vector2 maxAnchor;
  6459. int maxHeight;
  6460. IntVector2 maxOffset;
  6461. IntVector2 maxSize;
  6462. int maxWidth;
  6463. Vector2 minAnchor;
  6464. int minHeight;
  6465. IntVector2 minOffset;
  6466. IntVector2 minSize;
  6467. int minWidth;
  6468. bool multiselect;
  6469. String name;
  6470. /* readonly */
  6471. uint numAllChildren;
  6472. /* readonly */
  6473. uint numAttributes;
  6474. /* readonly */
  6475. uint numChildren;
  6476. /* readonly */
  6477. uint numItems;
  6478. ObjectAnimation objectAnimation;
  6479. float opacity;
  6480. float pageStep;
  6481. UIElement parent;
  6482. Vector2 pivot;
  6483. IntVector2 position;
  6484. int priority;
  6485. /* readonly */
  6486. int refs;
  6487. /* readonly */
  6488. UIElement root;
  6489. /* readonly */
  6490. IntVector2 screenPosition;
  6491. bool scrollBarsAutoVisible;
  6492. float scrollDeceleration;
  6493. /* readonly */
  6494. BorderImage scrollPanel;
  6495. float scrollSnapEpsilon;
  6496. float scrollStep;
  6497. bool selectOnClickEnd;
  6498. bool selected;
  6499. /* readonly */
  6500. UIElement selectedItem;
  6501. /* readonly */
  6502. Array<UIElement> selectedItems;
  6503. uint selection;
  6504. /* readonly */
  6505. Array<uint> selections;
  6506. IntVector2 size;
  6507. bool sortChildren;
  6508. String style;
  6509. /* readonly */
  6510. Array<String> tags;
  6511. bool temporary;
  6512. TraversalMode traversalMode;
  6513. /* readonly */
  6514. StringHash type;
  6515. /* readonly */
  6516. String typeName;
  6517. bool useDerivedOpacity;
  6518. /* readonly */
  6519. VariantMap vars;
  6520. VerticalAlignment verticalAlignment;
  6521. /* readonly */
  6522. ScrollBar verticalScrollBar;
  6523. IntVector2 viewPosition;
  6524. bool visible;
  6525. /* readonly */
  6526. bool visibleEffective;
  6527. /* readonly */
  6528. int weakRefs;
  6529. int width;
  6530. };
  6531. class Localization
  6532. {
  6533. public:
  6534. // Methods:
  6535. String Get(const String&);
  6536. String GetLanguage(int);
  6537. int GetLanguageIndex(const String&);
  6538. bool HasSubscribedToEvent(Object, const String&);
  6539. bool HasSubscribedToEvent(const String&);
  6540. void LoadJSON(const JSONValue&);
  6541. void LoadJSONFile(const String&);
  6542. void Reset();
  6543. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6544. void SetLanguage(const String&);
  6545. void SetLanguage(int);
  6546. // Properties:
  6547. /* readonly */
  6548. String category;
  6549. /* readonly */
  6550. String language;
  6551. /* readonly */
  6552. int languageIndex;
  6553. /* readonly */
  6554. int numLanguages;
  6555. /* readonly */
  6556. int refs;
  6557. /* readonly */
  6558. StringHash type;
  6559. /* readonly */
  6560. String typeName;
  6561. /* readonly */
  6562. int weakRefs;
  6563. };
  6564. class Log
  6565. {
  6566. public:
  6567. // Methods:
  6568. void Close();
  6569. void Debug(const String&);
  6570. void Error(const String&);
  6571. bool HasSubscribedToEvent(Object, const String&);
  6572. bool HasSubscribedToEvent(const String&);
  6573. void Info(const String&);
  6574. void Open(const String&);
  6575. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6576. void Warning(const String&);
  6577. void Write(const String&, bool = false);
  6578. // Properties:
  6579. /* readonly */
  6580. String category;
  6581. /* readonly */
  6582. String lastMessage;
  6583. int level;
  6584. bool quiet;
  6585. /* readonly */
  6586. int refs;
  6587. bool timeStamp;
  6588. /* readonly */
  6589. StringHash type;
  6590. /* readonly */
  6591. String typeName;
  6592. /* readonly */
  6593. int weakRefs;
  6594. };
  6595. class Material
  6596. {
  6597. public:
  6598. Material();
  6599. Material(const String&in);
  6600. // Methods:
  6601. Material Clone(const String& = String ( )) const;
  6602. Pass GetPass(uint, const String&);
  6603. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6604. float GetShaderParameterAnimationSpeed(const String&) const;
  6605. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6606. bool HasSubscribedToEvent(Object, const String&);
  6607. bool HasSubscribedToEvent(const String&);
  6608. bool Load(File);
  6609. bool Load(VectorBuffer&);
  6610. bool Load(const JSONValue&);
  6611. bool Load(const String&);
  6612. bool Load(const XMLElement&);
  6613. void RemoveShaderParameter(const String&);
  6614. bool Save(File) const;
  6615. bool Save(JSONValue&) const;
  6616. bool Save(VectorBuffer&) const;
  6617. bool Save(XMLElement&) const;
  6618. bool Save(const String&) const;
  6619. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6620. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6621. void SetShaderParameterAnimationSpeed(const String&, float);
  6622. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6623. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6624. void SetUVTransform(const Vector2&, float, const Vector2&);
  6625. void SetUVTransform(const Vector2&, float, float);
  6626. void SortTechniques();
  6627. // Properties:
  6628. bool alphaToCoverage;
  6629. /* readonly */
  6630. String category;
  6631. CullMode cullMode;
  6632. BiasParameters depthBias;
  6633. FillMode fillMode;
  6634. bool lineAntiAlias;
  6635. /* readonly */
  6636. uint memoryUse;
  6637. String name;
  6638. uint numTechniques;
  6639. bool occlusion;
  6640. String pixelShaderDefines;
  6641. /* readonly */
  6642. int refs;
  6643. uint8 renderOrder;
  6644. Scene scene;
  6645. /* readonly */
  6646. Array<String> shaderParameterNames;
  6647. Array<Variant> shaderParameters;
  6648. CullMode shadowCullMode;
  6649. /* readonly */
  6650. Array<TechniqueEntry> techniqueEntries;
  6651. /* readonly */
  6652. Array<Technique> techniques;
  6653. Array<Texture> textures;
  6654. /* readonly */
  6655. StringHash type;
  6656. /* readonly */
  6657. String typeName;
  6658. /* readonly */
  6659. uint useTimer;
  6660. String vertexShaderDefines;
  6661. /* readonly */
  6662. int weakRefs;
  6663. };
  6664. class Matrix2
  6665. {
  6666. public:
  6667. Matrix2();
  6668. Matrix2(const Matrix2&in);
  6669. Matrix2(float, float, float, float);
  6670. // Methods:
  6671. bool Equals(const Matrix2&) const;
  6672. Matrix2 Inverse() const;
  6673. Vector2 Scale() const;
  6674. Matrix2 Scaled(const Vector2&) const;
  6675. void SetScale(const Vector2&);
  6676. void SetScale(float);
  6677. String ToString() const;
  6678. Matrix2 Transpose() const;
  6679. // Properties:
  6680. float m00;
  6681. float m01;
  6682. float m10;
  6683. float m11;
  6684. };
  6685. class Matrix3
  6686. {
  6687. public:
  6688. Matrix3();
  6689. Matrix3(const Matrix3&in);
  6690. Matrix3(float, float, float, float, float, float, float, float, float);
  6691. // Methods:
  6692. bool Equals(const Matrix3&) const;
  6693. Matrix3 Inverse() const;
  6694. Vector3 Scale() const;
  6695. Matrix3 Scaled(const Vector3&) const;
  6696. void SetScale(const Vector3&);
  6697. void SetScale(float);
  6698. String ToString() const;
  6699. Matrix3 Transpose() const;
  6700. // Properties:
  6701. float m00;
  6702. float m01;
  6703. float m02;
  6704. float m10;
  6705. float m11;
  6706. float m12;
  6707. float m20;
  6708. float m21;
  6709. float m22;
  6710. };
  6711. class Matrix3x4
  6712. {
  6713. public:
  6714. Matrix3x4();
  6715. Matrix3x4(const Matrix3x4&in);
  6716. Matrix3x4(const Matrix3&in);
  6717. Matrix3x4(const Matrix4&in);
  6718. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  6719. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  6720. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  6721. // Methods:
  6722. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6723. bool Equals(const Matrix3x4&) const;
  6724. Matrix3x4 Inverse() const;
  6725. Quaternion Rotation() const;
  6726. Matrix3 RotationMatrix() const;
  6727. Vector3 Scale() const;
  6728. void SetRotation(const Matrix3&);
  6729. void SetScale(const Vector3&);
  6730. void SetScale(float);
  6731. void SetTranslation(const Vector3&);
  6732. Matrix3 ToMatrix3() const;
  6733. Matrix4 ToMatrix4() const;
  6734. String ToString() const;
  6735. Vector3 Translation() const;
  6736. // Properties:
  6737. float m00;
  6738. float m01;
  6739. float m02;
  6740. float m03;
  6741. float m10;
  6742. float m11;
  6743. float m12;
  6744. float m13;
  6745. float m20;
  6746. float m21;
  6747. float m22;
  6748. float m23;
  6749. };
  6750. class Matrix4
  6751. {
  6752. public:
  6753. Matrix4();
  6754. Matrix4(const Matrix4&in);
  6755. Matrix4(const Matrix3&in);
  6756. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  6757. // Methods:
  6758. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6759. bool Equals(const Matrix4&) const;
  6760. Matrix4 Inverse() const;
  6761. Quaternion Rotation() const;
  6762. Matrix3 RotationMatrix() const;
  6763. Vector3 Scale() const;
  6764. void SetRotation(const Matrix3&);
  6765. void SetScale(const Vector3&);
  6766. void SetScale(float);
  6767. void SetTranslation(const Vector3&);
  6768. Matrix3 ToMatrix3() const;
  6769. String ToString() const;
  6770. Vector3 Translation() const;
  6771. Matrix4 Transpose() const;
  6772. // Properties:
  6773. float m00;
  6774. float m01;
  6775. float m02;
  6776. float m03;
  6777. float m10;
  6778. float m11;
  6779. float m12;
  6780. float m13;
  6781. float m20;
  6782. float m21;
  6783. float m22;
  6784. float m23;
  6785. float m30;
  6786. float m31;
  6787. float m32;
  6788. float m33;
  6789. };
  6790. class Menu
  6791. {
  6792. public:
  6793. Menu();
  6794. Menu(const String&in);
  6795. // Methods:
  6796. void AddChild(UIElement);
  6797. void AddTag(const String&);
  6798. void AddTags(const String&, int8 = ';');
  6799. void ApplyAttributes();
  6800. void BringToFront();
  6801. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6802. void DisableLayoutUpdate();
  6803. IntVector2 ElementToScreen(const IntVector2&);
  6804. void EnableLayoutUpdate();
  6805. uint FindChild(UIElement) const;
  6806. Variant GetAttribute(const String&) const;
  6807. ValueAnimation GetAttributeAnimation(const String&) const;
  6808. float GetAttributeAnimationSpeed(const String&) const;
  6809. float GetAttributeAnimationTime(const String&) const;
  6810. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6811. Variant GetAttributeDefault(const String&) const;
  6812. UIElement GetChild(const String&, bool = false) const;
  6813. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6814. Array<UIElement> GetChildren(bool = false) const;
  6815. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6816. UIElement GetElementEventSender() const;
  6817. bool GetInterceptNetworkUpdate(const String&) const;
  6818. uint GetNumChildren(bool) const;
  6819. bool HasSubscribedToEvent(Object, const String&);
  6820. bool HasSubscribedToEvent(const String&);
  6821. bool HasTag(const String&) const;
  6822. void InsertChild(uint, UIElement);
  6823. bool IsInside(IntVector2, bool);
  6824. bool IsInsideCombined(IntVector2, bool);
  6825. bool Load(File, bool = false);
  6826. bool Load(VectorBuffer&, bool = false);
  6827. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6828. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6829. bool LoadJSON(const JSONValue&, bool = false);
  6830. bool LoadXML(File);
  6831. bool LoadXML(VectorBuffer&);
  6832. bool LoadXML(XMLFile, XMLFile);
  6833. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6834. bool LoadXML(const XMLElement&, bool = false);
  6835. void MarkNetworkUpdate() const;
  6836. void Remove();
  6837. void RemoveAllChildren();
  6838. void RemoveAllTags();
  6839. void RemoveAttributeAnimation(const String&);
  6840. void RemoveChild(UIElement, uint = 0);
  6841. void RemoveChild(uint);
  6842. void RemoveInstanceDefault();
  6843. void RemoveObjectAnimation();
  6844. bool RemoveTag(const String&);
  6845. void ResetDeepEnabled();
  6846. void ResetToDefault();
  6847. bool Save(File) const;
  6848. bool Save(VectorBuffer&) const;
  6849. bool SaveJSON(JSONValue&) const;
  6850. bool SaveXML(File, const String& = "\t");
  6851. bool SaveXML(VectorBuffer&, const String& = "\t");
  6852. bool SaveXML(XMLElement&) const;
  6853. IntVector2 ScreenToElement(const IntVector2&);
  6854. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6855. void SetAccelerator(int, int);
  6856. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6857. void SetAnimationTime(float);
  6858. bool SetAttribute(const String&, const Variant&);
  6859. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6860. void SetAttributeAnimationSpeed(const String&, float);
  6861. void SetAttributeAnimationTime(const String&, float);
  6862. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6863. void SetDeepEnabled(bool);
  6864. void SetEnabledRecursive(bool);
  6865. void SetFixedHeight(int);
  6866. void SetFixedSize(int, int);
  6867. void SetFixedWidth(int);
  6868. void SetFullImageRect();
  6869. void SetHoverOffset(int, int);
  6870. void SetInterceptNetworkUpdate(const String&, bool);
  6871. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6872. void SetMaxAnchor(float, float);
  6873. void SetMaxSize(int, int);
  6874. void SetMinAnchor(float, float);
  6875. void SetMinSize(int, int);
  6876. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6877. void SetPivot(float, float);
  6878. void SetPopupOffset(int, int);
  6879. void SetPosition(int, int);
  6880. void SetPressedChildOffset(int, int);
  6881. void SetPressedOffset(int, int);
  6882. void SetRepeat(float, float);
  6883. void SetSize(int, int);
  6884. bool SetStyle(const String&, XMLFile = null);
  6885. bool SetStyle(const XMLElement&);
  6886. bool SetStyleAuto(XMLFile = null);
  6887. void UpdateLayout();
  6888. const Variant& GetVar(const StringHash&);
  6889. // Properties:
  6890. /* readonly */
  6891. int acceleratorKey;
  6892. /* readonly */
  6893. int acceleratorQualifiers;
  6894. bool animationEnabled;
  6895. /* readonly */
  6896. Array<Variant> attributeDefaults;
  6897. /* readonly */
  6898. Array<AttributeInfo> attributeInfos;
  6899. Array<Variant> attributes;
  6900. BlendMode blendMode;
  6901. IntRect border;
  6902. bool bringToBack;
  6903. bool bringToFront;
  6904. /* readonly */
  6905. String category;
  6906. /* readonly */
  6907. IntVector2 childOffset;
  6908. /* readonly */
  6909. Array<UIElement> children;
  6910. IntRect clipBorder;
  6911. bool clipChildren;
  6912. /* writeonly */
  6913. Color color;
  6914. /* readonly */
  6915. bool colorGradient;
  6916. Array<Color> colors;
  6917. /* readonly */
  6918. IntRect combinedScreenRect;
  6919. XMLFile defaultStyle;
  6920. /* readonly */
  6921. float derivedOpacity;
  6922. /* readonly */
  6923. uint dragButtonCombo;
  6924. /* readonly */
  6925. int dragButtonCount;
  6926. uint dragDropMode;
  6927. bool editable;
  6928. bool elementEventSender;
  6929. bool enableAnchor;
  6930. bool enabled;
  6931. /* readonly */
  6932. bool enabledSelf;
  6933. /* readonly */
  6934. bool fixedHeight;
  6935. /* readonly */
  6936. bool fixedSize;
  6937. /* readonly */
  6938. bool fixedWidth;
  6939. bool focus;
  6940. FocusMode focusMode;
  6941. int height;
  6942. HorizontalAlignment horizontalAlignment;
  6943. IntVector2 hoverOffset;
  6944. /* readonly */
  6945. bool hovering;
  6946. IntRect imageBorder;
  6947. IntRect imageRect;
  6948. int indent;
  6949. int indentSpacing;
  6950. /* readonly */
  6951. int indentWidth;
  6952. bool internal;
  6953. IntRect layoutBorder;
  6954. Vector2 layoutFlexScale;
  6955. LayoutMode layoutMode;
  6956. int layoutSpacing;
  6957. Vector2 maxAnchor;
  6958. int maxHeight;
  6959. IntVector2 maxOffset;
  6960. IntVector2 maxSize;
  6961. int maxWidth;
  6962. Vector2 minAnchor;
  6963. int minHeight;
  6964. IntVector2 minOffset;
  6965. IntVector2 minSize;
  6966. int minWidth;
  6967. String name;
  6968. /* readonly */
  6969. uint numAllChildren;
  6970. /* readonly */
  6971. uint numAttributes;
  6972. /* readonly */
  6973. uint numChildren;
  6974. ObjectAnimation objectAnimation;
  6975. float opacity;
  6976. UIElement parent;
  6977. Vector2 pivot;
  6978. UIElement popup;
  6979. IntVector2 popupOffset;
  6980. IntVector2 position;
  6981. /* readonly */
  6982. bool pressed;
  6983. IntVector2 pressedChildOffset;
  6984. IntVector2 pressedOffset;
  6985. int priority;
  6986. /* readonly */
  6987. int refs;
  6988. float repeatDelay;
  6989. float repeatRate;
  6990. /* readonly */
  6991. UIElement root;
  6992. /* readonly */
  6993. IntVector2 screenPosition;
  6994. bool selected;
  6995. bool showPopup;
  6996. IntVector2 size;
  6997. bool sortChildren;
  6998. String style;
  6999. /* readonly */
  7000. Array<String> tags;
  7001. bool temporary;
  7002. Texture texture;
  7003. bool tiled;
  7004. TraversalMode traversalMode;
  7005. /* readonly */
  7006. StringHash type;
  7007. /* readonly */
  7008. String typeName;
  7009. bool useDerivedOpacity;
  7010. /* readonly */
  7011. VariantMap vars;
  7012. VerticalAlignment verticalAlignment;
  7013. bool visible;
  7014. /* readonly */
  7015. bool visibleEffective;
  7016. /* readonly */
  7017. int weakRefs;
  7018. int width;
  7019. };
  7020. class MessageBox
  7021. {
  7022. public:
  7023. MessageBox(const String&in messageString = String ( ), const String&in titleString = String ( ), XMLFile& layoutFile = null, XMLFile& styleFile = null);
  7024. // Methods:
  7025. bool HasSubscribedToEvent(Object, const String&);
  7026. bool HasSubscribedToEvent(const String&);
  7027. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7028. // Properties:
  7029. /* readonly */
  7030. String category;
  7031. String message;
  7032. /* readonly */
  7033. int refs;
  7034. String title;
  7035. /* readonly */
  7036. StringHash type;
  7037. /* readonly */
  7038. String typeName;
  7039. /* readonly */
  7040. int weakRefs;
  7041. /* readonly */
  7042. UIElement window;
  7043. };
  7044. class Model
  7045. {
  7046. public:
  7047. Model();
  7048. Model(const String&in);
  7049. // Methods:
  7050. void AddMetadata(const String&, const Variant&);
  7051. Model Clone(const String& = String ( )) const;
  7052. Geometry GetGeometry(uint, uint) const;
  7053. bool HasSubscribedToEvent(Object, const String&);
  7054. bool HasSubscribedToEvent(const String&);
  7055. bool Load(File);
  7056. bool Load(VectorBuffer&);
  7057. bool Load(const String&);
  7058. void RemoveAllMetadata();
  7059. void RemoveMetadata(const String&);
  7060. bool Save(File) const;
  7061. bool Save(VectorBuffer&) const;
  7062. bool Save(const String&) const;
  7063. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7064. bool SetGeometry(uint, uint, Geometry);
  7065. bool SetIndexBuffers(Array<IndexBuffer>);
  7066. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  7067. // Properties:
  7068. BoundingBox boundingBox;
  7069. /* readonly */
  7070. String category;
  7071. Array<Vector3> geometryCenters;
  7072. /* readonly */
  7073. bool hasMetadata;
  7074. /* readonly */
  7075. uint memoryUse;
  7076. Array<Variant> metadata;
  7077. String name;
  7078. uint numGeometries;
  7079. Array<uint> numGeometryLodLevels;
  7080. /* readonly */
  7081. uint numMorphs;
  7082. /* readonly */
  7083. int refs;
  7084. /* readonly */
  7085. Skeleton skeleton;
  7086. /* readonly */
  7087. StringHash type;
  7088. /* readonly */
  7089. String typeName;
  7090. /* readonly */
  7091. uint useTimer;
  7092. /* readonly */
  7093. int weakRefs;
  7094. };
  7095. class NamedPipe
  7096. {
  7097. public:
  7098. NamedPipe();
  7099. NamedPipe(const String&in, bool);
  7100. // Methods:
  7101. void Close();
  7102. bool HasSubscribedToEvent(Object, const String&);
  7103. bool HasSubscribedToEvent(const String&);
  7104. bool Open(const String&, bool);
  7105. Array<uint8> Read(uint);
  7106. bool ReadBool();
  7107. BoundingBox ReadBoundingBox();
  7108. int8 ReadByte();
  7109. Color ReadColor();
  7110. double ReadDouble();
  7111. String ReadFileID();
  7112. float ReadFloat();
  7113. int ReadInt();
  7114. int64 ReadInt64();
  7115. IntRect ReadIntRect();
  7116. IntVector2 ReadIntVector2();
  7117. String ReadLine();
  7118. Matrix3 ReadMatrix3();
  7119. Matrix3x4 ReadMatrix3x4();
  7120. Matrix4 ReadMatrix4();
  7121. uint ReadNetID();
  7122. Quaternion ReadPackedQuaternion();
  7123. Vector3 ReadPackedVector3(float);
  7124. Quaternion ReadQuaternion();
  7125. int16 ReadShort();
  7126. String ReadString();
  7127. StringHash ReadStringHash();
  7128. uint8 ReadUByte();
  7129. uint ReadUInt();
  7130. uint64 ReadUInt64();
  7131. uint16 ReadUShort();
  7132. uint ReadVLE();
  7133. Variant ReadVariant();
  7134. VariantMap ReadVariantMap();
  7135. Vector2 ReadVector2();
  7136. Vector3 ReadVector3();
  7137. Vector4 ReadVector4();
  7138. VectorBuffer ReadVectorBuffer(uint);
  7139. uint Seek(uint);
  7140. uint SeekRelative(int);
  7141. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7142. uint Tell() const;
  7143. uint Write(Array<uint8>);
  7144. bool WriteBool(bool);
  7145. bool WriteBoundingBox(const BoundingBox&);
  7146. bool WriteByte(int8);
  7147. bool WriteColor(const Color&);
  7148. bool WriteDouble(double);
  7149. bool WriteFileID(const String&);
  7150. bool WriteFloat(float);
  7151. bool WriteInt(int);
  7152. bool WriteInt64(int64);
  7153. bool WriteIntRect(const IntRect&);
  7154. bool WriteIntVector2(const IntVector2&);
  7155. bool WriteLine(const String&);
  7156. bool WriteMatrix3(const Matrix3&);
  7157. bool WriteMatrix3x4(const Matrix3x4&);
  7158. bool WriteMatrix4(const Matrix4&);
  7159. bool WriteNetID(uint);
  7160. bool WritePackedQuaternion(const Quaternion&);
  7161. bool WritePackedVector3(const Vector3&, float);
  7162. bool WriteQuaternion(const Quaternion&);
  7163. bool WriteShort(int16);
  7164. bool WriteString(const String&);
  7165. bool WriteStringHash(const StringHash&);
  7166. bool WriteUByte(uint8);
  7167. bool WriteUInt(uint);
  7168. bool WriteUInt64(uint64);
  7169. bool WriteUShort(uint16);
  7170. bool WriteVLE(uint);
  7171. bool WriteVariant(const Variant&);
  7172. bool WriteVariantMap(const VariantMap&);
  7173. bool WriteVector2(const Vector2&);
  7174. bool WriteVector3(const Vector3&);
  7175. bool WriteVector4(const Vector4&);
  7176. bool WriteVectorBuffer(const VectorBuffer&);
  7177. // Properties:
  7178. /* readonly */
  7179. String category;
  7180. /* readonly */
  7181. uint checksum;
  7182. /* readonly */
  7183. bool eof;
  7184. /* readonly */
  7185. String name;
  7186. /* readonly */
  7187. bool open;
  7188. /* readonly */
  7189. uint position;
  7190. /* readonly */
  7191. int refs;
  7192. /* readonly */
  7193. bool server;
  7194. /* readonly */
  7195. uint size;
  7196. /* readonly */
  7197. StringHash type;
  7198. /* readonly */
  7199. String typeName;
  7200. /* readonly */
  7201. int weakRefs;
  7202. };
  7203. class NavArea
  7204. {
  7205. public:
  7206. // Methods:
  7207. void ApplyAttributes();
  7208. void DrawDebugGeometry(DebugRenderer, bool);
  7209. Variant GetAttribute(const String&) const;
  7210. ValueAnimation GetAttributeAnimation(const String&) const;
  7211. float GetAttributeAnimationSpeed(const String&) const;
  7212. float GetAttributeAnimationTime(const String&) const;
  7213. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7214. Variant GetAttributeDefault(const String&) const;
  7215. bool GetInterceptNetworkUpdate(const String&) const;
  7216. bool HasSubscribedToEvent(Object, const String&);
  7217. bool HasSubscribedToEvent(const String&);
  7218. bool Load(File, bool = false);
  7219. bool Load(VectorBuffer&, bool = false);
  7220. bool LoadJSON(const JSONValue&, bool = false);
  7221. bool LoadXML(const XMLElement&, bool = false);
  7222. void MarkNetworkUpdate() const;
  7223. void Remove();
  7224. void RemoveAttributeAnimation(const String&);
  7225. void RemoveInstanceDefault();
  7226. void RemoveObjectAnimation();
  7227. void ResetToDefault();
  7228. bool Save(File) const;
  7229. bool Save(VectorBuffer&) const;
  7230. bool SaveJSON(JSONValue&) const;
  7231. bool SaveXML(XMLElement&) const;
  7232. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7233. void SetAnimationTime(float);
  7234. bool SetAttribute(const String&, const Variant&);
  7235. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7236. void SetAttributeAnimationSpeed(const String&, float);
  7237. void SetAttributeAnimationTime(const String&, float);
  7238. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7239. void SetInterceptNetworkUpdate(const String&, bool);
  7240. // Properties:
  7241. bool animationEnabled;
  7242. uint areaID;
  7243. /* readonly */
  7244. Array<Variant> attributeDefaults;
  7245. /* readonly */
  7246. Array<AttributeInfo> attributeInfos;
  7247. Array<Variant> attributes;
  7248. BoundingBox boundingBox;
  7249. /* readonly */
  7250. String category;
  7251. bool enabled;
  7252. /* readonly */
  7253. bool enabledEffective;
  7254. /* readonly */
  7255. uint id;
  7256. /* readonly */
  7257. Node node;
  7258. /* readonly */
  7259. uint numAttributes;
  7260. ObjectAnimation objectAnimation;
  7261. /* readonly */
  7262. int refs;
  7263. bool temporary;
  7264. /* readonly */
  7265. StringHash type;
  7266. /* readonly */
  7267. String typeName;
  7268. /* readonly */
  7269. int weakRefs;
  7270. /* readonly */
  7271. BoundingBox worldBoundingBox;
  7272. };
  7273. class Navigable
  7274. {
  7275. public:
  7276. // Methods:
  7277. void ApplyAttributes();
  7278. void DrawDebugGeometry(DebugRenderer, bool);
  7279. Variant GetAttribute(const String&) const;
  7280. ValueAnimation GetAttributeAnimation(const String&) const;
  7281. float GetAttributeAnimationSpeed(const String&) const;
  7282. float GetAttributeAnimationTime(const String&) const;
  7283. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7284. Variant GetAttributeDefault(const String&) const;
  7285. bool GetInterceptNetworkUpdate(const String&) const;
  7286. bool HasSubscribedToEvent(Object, const String&);
  7287. bool HasSubscribedToEvent(const String&);
  7288. bool Load(File, bool = false);
  7289. bool Load(VectorBuffer&, bool = false);
  7290. bool LoadJSON(const JSONValue&, bool = false);
  7291. bool LoadXML(const XMLElement&, bool = false);
  7292. void MarkNetworkUpdate() const;
  7293. void Remove();
  7294. void RemoveAttributeAnimation(const String&);
  7295. void RemoveInstanceDefault();
  7296. void RemoveObjectAnimation();
  7297. void ResetToDefault();
  7298. bool Save(File) const;
  7299. bool Save(VectorBuffer&) const;
  7300. bool SaveJSON(JSONValue&) const;
  7301. bool SaveXML(XMLElement&) const;
  7302. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7303. void SetAnimationTime(float);
  7304. bool SetAttribute(const String&, const Variant&);
  7305. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7306. void SetAttributeAnimationSpeed(const String&, float);
  7307. void SetAttributeAnimationTime(const String&, float);
  7308. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7309. void SetInterceptNetworkUpdate(const String&, bool);
  7310. // Properties:
  7311. bool animationEnabled;
  7312. /* readonly */
  7313. Array<Variant> attributeDefaults;
  7314. /* readonly */
  7315. Array<AttributeInfo> attributeInfos;
  7316. Array<Variant> attributes;
  7317. /* readonly */
  7318. String category;
  7319. bool enabled;
  7320. /* readonly */
  7321. bool enabledEffective;
  7322. /* readonly */
  7323. uint id;
  7324. /* readonly */
  7325. Node node;
  7326. /* readonly */
  7327. uint numAttributes;
  7328. ObjectAnimation objectAnimation;
  7329. bool recursive;
  7330. /* readonly */
  7331. int refs;
  7332. bool temporary;
  7333. /* readonly */
  7334. StringHash type;
  7335. /* readonly */
  7336. String typeName;
  7337. /* readonly */
  7338. int weakRefs;
  7339. };
  7340. class NavigationMesh
  7341. {
  7342. public:
  7343. // Methods:
  7344. bool AddTile(const VectorBuffer&) const;
  7345. bool Allocate(const BoundingBox&, uint);
  7346. void ApplyAttributes();
  7347. bool Build();
  7348. bool Build(const BoundingBox&);
  7349. bool Build(const IntVector2&, const IntVector2&);
  7350. void DrawDebugGeometry(DebugRenderer, bool);
  7351. void DrawDebugGeometry(bool);
  7352. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7353. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7354. float GetAreaCost(uint) const;
  7355. Variant GetAttribute(const String&) const;
  7356. ValueAnimation GetAttributeAnimation(const String&) const;
  7357. float GetAttributeAnimationSpeed(const String&) const;
  7358. float GetAttributeAnimationTime(const String&) const;
  7359. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7360. Variant GetAttributeDefault(const String&) const;
  7361. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7362. bool GetInterceptNetworkUpdate(const String&) const;
  7363. Vector3 GetRandomPoint();
  7364. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7365. BoundingBox GetTileBoudningBox(const IntVector2&) const;
  7366. VectorBuffer GetTileData(const IntVector2&) const;
  7367. IntVector2 GetTileIndex(const Vector3&) const;
  7368. bool HasSubscribedToEvent(Object, const String&);
  7369. bool HasSubscribedToEvent(const String&);
  7370. bool HasTile(const IntVector2&) const;
  7371. bool Load(File, bool = false);
  7372. bool Load(VectorBuffer&, bool = false);
  7373. bool LoadJSON(const JSONValue&, bool = false);
  7374. bool LoadXML(const XMLElement&, bool = false);
  7375. void MarkNetworkUpdate() const;
  7376. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  7377. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7378. void Remove();
  7379. void RemoveAllTiles();
  7380. void RemoveAttributeAnimation(const String&);
  7381. void RemoveInstanceDefault();
  7382. void RemoveObjectAnimation();
  7383. void RemoveTile(const IntVector2&);
  7384. void ResetToDefault();
  7385. bool Save(File) const;
  7386. bool Save(VectorBuffer&) const;
  7387. bool SaveJSON(JSONValue&) const;
  7388. bool SaveXML(XMLElement&) const;
  7389. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7390. void SetAnimationTime(float);
  7391. void SetAreaCost(uint, float);
  7392. bool SetAttribute(const String&, const Variant&);
  7393. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7394. void SetAttributeAnimationSpeed(const String&, float);
  7395. void SetAttributeAnimationTime(const String&, float);
  7396. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7397. void SetInterceptNetworkUpdate(const String&, bool);
  7398. // Properties:
  7399. float agentHeight;
  7400. float agentMaxClimb;
  7401. float agentMaxSlope;
  7402. float agentRadius;
  7403. bool animationEnabled;
  7404. /* readonly */
  7405. Array<Variant> attributeDefaults;
  7406. /* readonly */
  7407. Array<AttributeInfo> attributeInfos;
  7408. Array<Variant> attributes;
  7409. /* readonly */
  7410. BoundingBox boundingBox;
  7411. /* readonly */
  7412. String category;
  7413. float cellHeight;
  7414. float cellSize;
  7415. float detailSampleDistance;
  7416. float detailSampleMaxError;
  7417. bool drawNavAreas;
  7418. bool drawOffMeshConnections;
  7419. float edgeMaxError;
  7420. float edgeMaxLength;
  7421. bool enabled;
  7422. /* readonly */
  7423. bool enabledEffective;
  7424. /* readonly */
  7425. uint id;
  7426. /* readonly */
  7427. bool initialized;
  7428. /* readonly */
  7429. Node node;
  7430. /* readonly */
  7431. uint numAttributes;
  7432. /* readonly */
  7433. IntVector2 numTiles;
  7434. ObjectAnimation objectAnimation;
  7435. Vector3 padding;
  7436. NavmeshPartitionType partitionType;
  7437. /* readonly */
  7438. int refs;
  7439. float regionMergeSize;
  7440. float regionMinSize;
  7441. bool temporary;
  7442. int tileSize;
  7443. /* readonly */
  7444. StringHash type;
  7445. /* readonly */
  7446. String typeName;
  7447. /* readonly */
  7448. int weakRefs;
  7449. /* readonly */
  7450. BoundingBox worldBoundingBox;
  7451. };
  7452. class Network
  7453. {
  7454. public:
  7455. // Methods:
  7456. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  7457. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  7458. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  7459. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  7460. bool CheckRemoteEvent(const String&) const;
  7461. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  7462. void Disconnect(int = 0);
  7463. bool HasSubscribedToEvent(Object, const String&);
  7464. bool HasSubscribedToEvent(const String&);
  7465. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  7466. void RegisterRemoteEvent(const String&) const;
  7467. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7468. void SendPackageToClients(Scene, PackageFile);
  7469. bool StartServer(uint16);
  7470. void StopServer();
  7471. void UnregisterAllRemoteEvents();
  7472. void UnregisterRemoteEvent(const String&) const;
  7473. // Properties:
  7474. /* readonly */
  7475. String category;
  7476. /* readonly */
  7477. Array<Connection> clientConnections;
  7478. String packageCacheDir;
  7479. /* readonly */
  7480. int refs;
  7481. /* readonly */
  7482. Connection serverConnection;
  7483. /* readonly */
  7484. bool serverRunning;
  7485. int simulatedLatency;
  7486. float simulatedPacketLoss;
  7487. /* readonly */
  7488. StringHash type;
  7489. /* readonly */
  7490. String typeName;
  7491. int updateFps;
  7492. /* readonly */
  7493. int weakRefs;
  7494. };
  7495. class NetworkPriority
  7496. {
  7497. public:
  7498. // Methods:
  7499. void ApplyAttributes();
  7500. void DrawDebugGeometry(DebugRenderer, bool);
  7501. Variant GetAttribute(const String&) const;
  7502. ValueAnimation GetAttributeAnimation(const String&) const;
  7503. float GetAttributeAnimationSpeed(const String&) const;
  7504. float GetAttributeAnimationTime(const String&) const;
  7505. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7506. Variant GetAttributeDefault(const String&) const;
  7507. bool GetInterceptNetworkUpdate(const String&) const;
  7508. bool HasSubscribedToEvent(Object, const String&);
  7509. bool HasSubscribedToEvent(const String&);
  7510. bool Load(File, bool = false);
  7511. bool Load(VectorBuffer&, bool = false);
  7512. bool LoadJSON(const JSONValue&, bool = false);
  7513. bool LoadXML(const XMLElement&, bool = false);
  7514. void MarkNetworkUpdate() const;
  7515. void Remove();
  7516. void RemoveAttributeAnimation(const String&);
  7517. void RemoveInstanceDefault();
  7518. void RemoveObjectAnimation();
  7519. void ResetToDefault();
  7520. bool Save(File) const;
  7521. bool Save(VectorBuffer&) const;
  7522. bool SaveJSON(JSONValue&) const;
  7523. bool SaveXML(XMLElement&) const;
  7524. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7525. void SetAnimationTime(float);
  7526. bool SetAttribute(const String&, const Variant&);
  7527. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7528. void SetAttributeAnimationSpeed(const String&, float);
  7529. void SetAttributeAnimationTime(const String&, float);
  7530. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7531. void SetInterceptNetworkUpdate(const String&, bool);
  7532. // Properties:
  7533. bool alwaysUpdateOwner;
  7534. bool animationEnabled;
  7535. /* readonly */
  7536. Array<Variant> attributeDefaults;
  7537. /* readonly */
  7538. Array<AttributeInfo> attributeInfos;
  7539. Array<Variant> attributes;
  7540. float basePriority;
  7541. /* readonly */
  7542. String category;
  7543. float distanceFactor;
  7544. bool enabled;
  7545. /* readonly */
  7546. bool enabledEffective;
  7547. /* readonly */
  7548. uint id;
  7549. float minPriority;
  7550. /* readonly */
  7551. Node node;
  7552. /* readonly */
  7553. uint numAttributes;
  7554. ObjectAnimation objectAnimation;
  7555. /* readonly */
  7556. int refs;
  7557. bool temporary;
  7558. /* readonly */
  7559. StringHash type;
  7560. /* readonly */
  7561. String typeName;
  7562. /* readonly */
  7563. int weakRefs;
  7564. };
  7565. class Node
  7566. {
  7567. public:
  7568. Node();
  7569. Node(const String&in);
  7570. // Methods:
  7571. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7572. void AddTag(const String&);
  7573. void AddTags(const String&, int8 = ';');
  7574. void ApplyAttributes();
  7575. Node Clone(CreateMode = REPLICATED);
  7576. Component CloneComponent(Component, CreateMode, uint = 0);
  7577. Component CloneComponent(Component, uint = 0);
  7578. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7579. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7580. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7581. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7582. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7583. Variant GetAttribute(const String&) const;
  7584. ValueAnimation GetAttributeAnimation(const String&) const;
  7585. float GetAttributeAnimationSpeed(const String&) const;
  7586. float GetAttributeAnimationTime(const String&) const;
  7587. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7588. Variant GetAttributeDefault(const String&) const;
  7589. Node GetChild(const String&, bool = false) const;
  7590. Array<Node> GetChildren(bool = false) const;
  7591. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7592. Array<Node> GetChildrenWithScript(bool = false) const;
  7593. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7594. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7595. Component GetComponent(const String&, bool = false) const;
  7596. Array<Component> GetComponents() const;
  7597. Array<Component> GetComponents(const String&, bool = false) const;
  7598. bool GetInterceptNetworkUpdate(const String&) const;
  7599. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7600. Component GetParentComponent(const String&, bool = false) const;
  7601. ScriptObject GetScriptObject() const;
  7602. ScriptObject GetScriptObject(const String&) const;
  7603. bool HasComponent(const String&) const;
  7604. bool HasSubscribedToEvent(Object, const String&);
  7605. bool HasSubscribedToEvent(const String&);
  7606. bool HasTag(const String&);
  7607. bool IsChildOf(Node) const;
  7608. bool Load(File, bool = false);
  7609. bool Load(VectorBuffer&, bool = false);
  7610. bool LoadJSON(const JSONValue&, bool = false);
  7611. bool LoadXML(const XMLElement&, bool = false);
  7612. Vector3 LocalToWorld(const Vector3&) const;
  7613. Vector3 LocalToWorld(const Vector4&) const;
  7614. Vector2 LocalToWorld2D(const Vector2&) const;
  7615. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7616. void MarkDirty();
  7617. void MarkNetworkUpdate() const;
  7618. void Pitch(float, TransformSpace = TS_LOCAL);
  7619. void Remove();
  7620. void RemoveAllChildren();
  7621. void RemoveAllComponents();
  7622. void RemoveAllTags();
  7623. void RemoveAttributeAnimation(const String&);
  7624. void RemoveChild(Node);
  7625. void RemoveChildren(bool, bool, bool);
  7626. void RemoveComponent(Component);
  7627. void RemoveComponent(const String&);
  7628. void RemoveComponents(bool, bool);
  7629. void RemoveComponents(const String&);
  7630. void RemoveInstanceDefault();
  7631. void RemoveObjectAnimation();
  7632. bool RemoveTag(const String&);
  7633. void ReorderComponent(Component, uint);
  7634. void ResetDeepEnabled();
  7635. void ResetToDefault();
  7636. void Roll(float, TransformSpace = TS_LOCAL);
  7637. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7638. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7639. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7640. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7641. bool Save(File) const;
  7642. bool Save(VectorBuffer&) const;
  7643. bool SaveJSON(File);
  7644. bool SaveJSON(JSONValue&) const;
  7645. bool SaveJSON(VectorBuffer&);
  7646. bool SaveXML(File, const String& = "\t");
  7647. bool SaveXML(VectorBuffer&, const String& = "\t");
  7648. bool SaveXML(XMLElement&) const;
  7649. void Scale(const Vector3&);
  7650. void Scale(float);
  7651. void Scale2D(const Vector2&);
  7652. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7653. void SetAnimationTime(float);
  7654. bool SetAttribute(const String&, const Variant&);
  7655. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7656. void SetAttributeAnimationSpeed(const String&, float);
  7657. void SetAttributeAnimationTime(const String&, float);
  7658. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7659. void SetDeepEnabled(bool);
  7660. void SetEnabledRecursive(bool);
  7661. void SetInterceptNetworkUpdate(const String&, bool);
  7662. void SetPosition2D(float, float);
  7663. void SetScale(float);
  7664. void SetScale2D(float, float);
  7665. void SetTransform(const Matrix3x4&);
  7666. void SetTransform(const Vector3&, const Quaternion&);
  7667. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7668. void SetTransform(const Vector3&, const Quaternion&, float);
  7669. void SetTransform2D(const Vector2&, float);
  7670. void SetTransform2D(const Vector2&, float, const Vector2&);
  7671. void SetTransform2D(const Vector2&, float, float);
  7672. void SetWorldTransform(const Vector3&, const Quaternion&);
  7673. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7674. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7675. void SetWorldTransform2D(const Vector2&, float);
  7676. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7677. void SetWorldTransform2D(const Vector2&, float, float);
  7678. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7679. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7680. Vector3 WorldToLocal(const Vector3&) const;
  7681. Vector3 WorldToLocal(const Vector4&) const;
  7682. Vector2 WorldToLocal2D(const Vector2&) const;
  7683. void Yaw(float, TransformSpace = TS_LOCAL);
  7684. // Properties:
  7685. /* readonly */
  7686. Array<Node> allChildrenByName;
  7687. bool animationEnabled;
  7688. /* readonly */
  7689. Array<Variant> attributeDefaults;
  7690. /* readonly */
  7691. Array<AttributeInfo> attributeInfos;
  7692. Array<Variant> attributes;
  7693. /* readonly */
  7694. String category;
  7695. /* readonly */
  7696. Array<Node> children;
  7697. /* readonly */
  7698. Array<Node> childrenByName;
  7699. /* readonly */
  7700. Array<Component> components;
  7701. Vector3 direction;
  7702. bool enabled;
  7703. /* readonly */
  7704. bool enabledSelf;
  7705. uint id;
  7706. String name;
  7707. /* readonly */
  7708. uint numAllChildren;
  7709. /* readonly */
  7710. uint numAttributes;
  7711. /* readonly */
  7712. uint numChildren;
  7713. /* readonly */
  7714. uint numComponents;
  7715. ObjectAnimation objectAnimation;
  7716. Connection owner;
  7717. Node parent;
  7718. Vector3 position;
  7719. Vector2 position2D;
  7720. /* readonly */
  7721. int refs;
  7722. /* readonly */
  7723. Vector3 right;
  7724. Quaternion rotation;
  7725. float rotation2D;
  7726. Vector3 scale;
  7727. Vector2 scale2D;
  7728. /* readonly */
  7729. Scene scene;
  7730. /* readonly */
  7731. ScriptObject scriptObject;
  7732. /* readonly */
  7733. Vector3 signedWorldScale;
  7734. /* readonly */
  7735. Array<String> tags;
  7736. bool temporary;
  7737. /* readonly */
  7738. Matrix3x4 transform;
  7739. /* readonly */
  7740. StringHash type;
  7741. /* readonly */
  7742. String typeName;
  7743. /* readonly */
  7744. Vector3 up;
  7745. /* readonly */
  7746. VariantMap vars;
  7747. /* readonly */
  7748. int weakRefs;
  7749. Vector3 worldDirection;
  7750. Vector3 worldPosition;
  7751. Vector2 worldPosition2D;
  7752. /* readonly */
  7753. Vector3 worldRight;
  7754. Quaternion worldRotation;
  7755. float worldRotation2D;
  7756. Vector3 worldScale;
  7757. Vector2 worldScale2D;
  7758. /* readonly */
  7759. Matrix3x4 worldTransform;
  7760. /* readonly */
  7761. Vector3 worldUp;
  7762. };
  7763. class Object
  7764. {
  7765. public:
  7766. // Methods:
  7767. bool HasSubscribedToEvent(Object, const String&);
  7768. bool HasSubscribedToEvent(const String&);
  7769. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7770. // Properties:
  7771. /* readonly */
  7772. String category;
  7773. /* readonly */
  7774. int refs;
  7775. /* readonly */
  7776. StringHash type;
  7777. /* readonly */
  7778. String typeName;
  7779. /* readonly */
  7780. int weakRefs;
  7781. };
  7782. class ObjectAnimation
  7783. {
  7784. public:
  7785. ObjectAnimation();
  7786. ObjectAnimation(const String&in);
  7787. // Methods:
  7788. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7789. ValueAnimation GetAttributeAnimation(const String&) const;
  7790. float GetAttributeAnimationSpeed(const String&) const;
  7791. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7792. bool HasSubscribedToEvent(Object, const String&);
  7793. bool HasSubscribedToEvent(const String&);
  7794. bool Load(File);
  7795. bool Load(VectorBuffer&);
  7796. bool Load(const String&);
  7797. void RemoveAttributeAnimation(ValueAnimation);
  7798. void RemoveAttributeAnimation(const String&);
  7799. bool Save(File) const;
  7800. bool Save(VectorBuffer&) const;
  7801. bool Save(const String&) const;
  7802. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7803. // Properties:
  7804. /* readonly */
  7805. Array<Variant> attributeAnimations;
  7806. /* readonly */
  7807. String category;
  7808. /* readonly */
  7809. uint memoryUse;
  7810. String name;
  7811. /* readonly */
  7812. int refs;
  7813. /* readonly */
  7814. Array<Variant> speeds;
  7815. /* readonly */
  7816. StringHash type;
  7817. /* readonly */
  7818. String typeName;
  7819. /* readonly */
  7820. uint useTimer;
  7821. /* readonly */
  7822. int weakRefs;
  7823. /* readonly */
  7824. Array<Variant> wrapModes;
  7825. };
  7826. class Obstacle
  7827. {
  7828. public:
  7829. // Methods:
  7830. void ApplyAttributes();
  7831. void DrawDebugGeometry(DebugRenderer, bool);
  7832. void DrawDebugGeometry(bool);
  7833. Variant GetAttribute(const String&) const;
  7834. ValueAnimation GetAttributeAnimation(const String&) const;
  7835. float GetAttributeAnimationSpeed(const String&) const;
  7836. float GetAttributeAnimationTime(const String&) const;
  7837. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7838. Variant GetAttributeDefault(const String&) const;
  7839. bool GetInterceptNetworkUpdate(const String&) const;
  7840. bool HasSubscribedToEvent(Object, const String&);
  7841. bool HasSubscribedToEvent(const String&);
  7842. bool Load(File, bool = false);
  7843. bool Load(VectorBuffer&, bool = false);
  7844. bool LoadJSON(const JSONValue&, bool = false);
  7845. bool LoadXML(const XMLElement&, bool = false);
  7846. void MarkNetworkUpdate() const;
  7847. void Remove();
  7848. void RemoveAttributeAnimation(const String&);
  7849. void RemoveInstanceDefault();
  7850. void RemoveObjectAnimation();
  7851. void ResetToDefault();
  7852. bool Save(File) const;
  7853. bool Save(VectorBuffer&) const;
  7854. bool SaveJSON(JSONValue&) const;
  7855. bool SaveXML(XMLElement&) const;
  7856. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7857. void SetAnimationTime(float);
  7858. bool SetAttribute(const String&, const Variant&);
  7859. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7860. void SetAttributeAnimationSpeed(const String&, float);
  7861. void SetAttributeAnimationTime(const String&, float);
  7862. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7863. void SetInterceptNetworkUpdate(const String&, bool);
  7864. // Properties:
  7865. bool animationEnabled;
  7866. /* readonly */
  7867. Array<Variant> attributeDefaults;
  7868. /* readonly */
  7869. Array<AttributeInfo> attributeInfos;
  7870. Array<Variant> attributes;
  7871. /* readonly */
  7872. String category;
  7873. bool enabled;
  7874. /* readonly */
  7875. bool enabledEffective;
  7876. float height;
  7877. /* readonly */
  7878. uint id;
  7879. /* readonly */
  7880. Node node;
  7881. /* readonly */
  7882. uint numAttributes;
  7883. ObjectAnimation objectAnimation;
  7884. /* readonly */
  7885. uint obstacleId;
  7886. float radius;
  7887. /* readonly */
  7888. int refs;
  7889. bool temporary;
  7890. /* readonly */
  7891. StringHash type;
  7892. /* readonly */
  7893. String typeName;
  7894. /* readonly */
  7895. int weakRefs;
  7896. };
  7897. class Octree
  7898. {
  7899. public:
  7900. // Methods:
  7901. void AddManualDrawable(Drawable);
  7902. void ApplyAttributes();
  7903. void DrawDebugGeometry(DebugRenderer, bool);
  7904. void DrawDebugGeometry(bool) const;
  7905. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7906. Variant GetAttribute(const String&) const;
  7907. ValueAnimation GetAttributeAnimation(const String&) const;
  7908. float GetAttributeAnimationSpeed(const String&) const;
  7909. float GetAttributeAnimationTime(const String&) const;
  7910. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7911. Variant GetAttributeDefault(const String&) const;
  7912. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7913. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7914. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7915. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7916. bool GetInterceptNetworkUpdate(const String&) const;
  7917. bool HasSubscribedToEvent(Object, const String&);
  7918. bool HasSubscribedToEvent(const String&);
  7919. bool Load(File, bool = false);
  7920. bool Load(VectorBuffer&, bool = false);
  7921. bool LoadJSON(const JSONValue&, bool = false);
  7922. bool LoadXML(const XMLElement&, bool = false);
  7923. void MarkNetworkUpdate() const;
  7924. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7925. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7926. void Remove();
  7927. void RemoveAttributeAnimation(const String&);
  7928. void RemoveInstanceDefault();
  7929. void RemoveManualDrawable(Drawable);
  7930. void RemoveObjectAnimation();
  7931. void ResetToDefault();
  7932. bool Save(File) const;
  7933. bool Save(VectorBuffer&) const;
  7934. bool SaveJSON(JSONValue&) const;
  7935. bool SaveXML(XMLElement&) const;
  7936. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7937. void SetAnimationTime(float);
  7938. bool SetAttribute(const String&, const Variant&);
  7939. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7940. void SetAttributeAnimationSpeed(const String&, float);
  7941. void SetAttributeAnimationTime(const String&, float);
  7942. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7943. void SetInterceptNetworkUpdate(const String&, bool);
  7944. void SetSize(const BoundingBox&, uint);
  7945. // Properties:
  7946. bool animationEnabled;
  7947. /* readonly */
  7948. Array<Variant> attributeDefaults;
  7949. /* readonly */
  7950. Array<AttributeInfo> attributeInfos;
  7951. Array<Variant> attributes;
  7952. /* readonly */
  7953. String category;
  7954. bool enabled;
  7955. /* readonly */
  7956. bool enabledEffective;
  7957. /* readonly */
  7958. uint id;
  7959. /* readonly */
  7960. Node node;
  7961. /* readonly */
  7962. uint numAttributes;
  7963. /* readonly */
  7964. uint numLevels;
  7965. ObjectAnimation objectAnimation;
  7966. /* readonly */
  7967. int refs;
  7968. bool temporary;
  7969. /* readonly */
  7970. StringHash type;
  7971. /* readonly */
  7972. String typeName;
  7973. /* readonly */
  7974. int weakRefs;
  7975. /* readonly */
  7976. BoundingBox worldBoundingBox;
  7977. };
  7978. class OffMeshConnection
  7979. {
  7980. public:
  7981. // Methods:
  7982. void ApplyAttributes();
  7983. void DrawDebugGeometry(DebugRenderer, bool);
  7984. Variant GetAttribute(const String&) const;
  7985. ValueAnimation GetAttributeAnimation(const String&) const;
  7986. float GetAttributeAnimationSpeed(const String&) const;
  7987. float GetAttributeAnimationTime(const String&) const;
  7988. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7989. Variant GetAttributeDefault(const String&) const;
  7990. bool GetInterceptNetworkUpdate(const String&) const;
  7991. bool HasSubscribedToEvent(Object, const String&);
  7992. bool HasSubscribedToEvent(const String&);
  7993. bool Load(File, bool = false);
  7994. bool Load(VectorBuffer&, bool = false);
  7995. bool LoadJSON(const JSONValue&, bool = false);
  7996. bool LoadXML(const XMLElement&, bool = false);
  7997. void MarkNetworkUpdate() const;
  7998. void Remove();
  7999. void RemoveAttributeAnimation(const String&);
  8000. void RemoveInstanceDefault();
  8001. void RemoveObjectAnimation();
  8002. void ResetToDefault();
  8003. bool Save(File) const;
  8004. bool Save(VectorBuffer&) const;
  8005. bool SaveJSON(JSONValue&) const;
  8006. bool SaveXML(XMLElement&) const;
  8007. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8008. void SetAnimationTime(float);
  8009. bool SetAttribute(const String&, const Variant&);
  8010. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8011. void SetAttributeAnimationSpeed(const String&, float);
  8012. void SetAttributeAnimationTime(const String&, float);
  8013. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8014. void SetInterceptNetworkUpdate(const String&, bool);
  8015. // Properties:
  8016. bool animationEnabled;
  8017. uint areaID;
  8018. /* readonly */
  8019. Array<Variant> attributeDefaults;
  8020. /* readonly */
  8021. Array<AttributeInfo> attributeInfos;
  8022. Array<Variant> attributes;
  8023. bool bidirectional;
  8024. /* readonly */
  8025. String category;
  8026. bool enabled;
  8027. /* readonly */
  8028. bool enabledEffective;
  8029. Node endPoint;
  8030. /* readonly */
  8031. uint id;
  8032. uint mask;
  8033. /* readonly */
  8034. Node node;
  8035. /* readonly */
  8036. uint numAttributes;
  8037. ObjectAnimation objectAnimation;
  8038. float radius;
  8039. /* readonly */
  8040. int refs;
  8041. bool temporary;
  8042. /* readonly */
  8043. StringHash type;
  8044. /* readonly */
  8045. String typeName;
  8046. /* readonly */
  8047. int weakRefs;
  8048. };
  8049. class PackageFile
  8050. {
  8051. public:
  8052. PackageFile();
  8053. PackageFile(const String&in, uint startOffset = 0);
  8054. // Methods:
  8055. bool Exists(const String&) const;
  8056. Array<String> GetEntryNames() const;
  8057. bool HasSubscribedToEvent(Object, const String&);
  8058. bool HasSubscribedToEvent(const String&);
  8059. bool Open(const String&, uint = 0) const;
  8060. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8061. bool compressed() const;
  8062. // Properties:
  8063. /* readonly */
  8064. String category;
  8065. /* readonly */
  8066. uint checksum;
  8067. /* readonly */
  8068. String name;
  8069. /* readonly */
  8070. uint numFiles;
  8071. /* readonly */
  8072. int refs;
  8073. /* readonly */
  8074. uint totalDataSize;
  8075. /* readonly */
  8076. uint totalSize;
  8077. /* readonly */
  8078. StringHash type;
  8079. /* readonly */
  8080. String typeName;
  8081. /* readonly */
  8082. int weakRefs;
  8083. };
  8084. class ParticleEffect
  8085. {
  8086. public:
  8087. ParticleEffect();
  8088. ParticleEffect(const String&in);
  8089. // Methods:
  8090. void AddColorFrame(ColorFrame);
  8091. void AddColorTime(Color&, float);
  8092. void AddTextureFrame(TextureFrame);
  8093. void AddTextureTime(Rect&, float);
  8094. ParticleEffect Clone(const String& = String ( )) const;
  8095. ColorFrame GetColorFrame(uint) const;
  8096. TextureFrame GetTextureFrame(uint) const;
  8097. bool HasSubscribedToEvent(Object, const String&);
  8098. bool HasSubscribedToEvent(const String&);
  8099. bool Load(File);
  8100. bool Load(VectorBuffer&);
  8101. bool Load(const String&);
  8102. bool Load(const XMLElement&);
  8103. void RemoveColorFrame(uint);
  8104. void RemoveTextureFrame(uint);
  8105. bool Save(File) const;
  8106. bool Save(VectorBuffer&) const;
  8107. bool Save(XMLElement&) const;
  8108. bool Save(const String&) const;
  8109. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8110. void SetColorFrame(uint, ColorFrame);
  8111. void SetTextureFrame(uint, TextureFrame);
  8112. void SortColorFrames();
  8113. void SortTextureFrames();
  8114. // Properties:
  8115. float activeTime;
  8116. float animationLodBias;
  8117. /* readonly */
  8118. String category;
  8119. Vector3 constantForce;
  8120. float dampingForce;
  8121. Vector3 emitterSize;
  8122. EmitterType emitterType;
  8123. FaceCameraMode faceCameraMode;
  8124. bool fixedScreenSize;
  8125. float inactiveTime;
  8126. Material material;
  8127. Vector3 maxDirection;
  8128. float maxEmissionRate;
  8129. Vector2 maxParticleSize;
  8130. float maxRotation;
  8131. float maxRotationSpeed;
  8132. float maxTimeToLive;
  8133. float maxVelocity;
  8134. /* readonly */
  8135. uint memoryUse;
  8136. Vector3 minDirection;
  8137. float minEmissionRate;
  8138. Vector2 minParticleSize;
  8139. float minRotation;
  8140. float minRotationSpeed;
  8141. float minTimeToLive;
  8142. float minVelocity;
  8143. String name;
  8144. uint numColorFrames;
  8145. uint numParticles;
  8146. uint numTextureFrames;
  8147. /* readonly */
  8148. int refs;
  8149. bool relative;
  8150. bool scaled;
  8151. float sizeAdd;
  8152. float sizeMul;
  8153. bool sorted;
  8154. /* readonly */
  8155. StringHash type;
  8156. /* readonly */
  8157. String typeName;
  8158. bool updateInvisible;
  8159. /* readonly */
  8160. uint useTimer;
  8161. /* readonly */
  8162. int weakRefs;
  8163. };
  8164. class ParticleEffect2D
  8165. {
  8166. public:
  8167. ParticleEffect2D();
  8168. ParticleEffect2D(const String&in);
  8169. // Methods:
  8170. ParticleEffect2D Clone(const String& = String ( )) const;
  8171. bool HasSubscribedToEvent(Object, const String&);
  8172. bool HasSubscribedToEvent(const String&);
  8173. bool Load(File);
  8174. bool Load(VectorBuffer&);
  8175. bool Load(const String&);
  8176. bool Save(File) const;
  8177. bool Save(VectorBuffer&) const;
  8178. bool Save(const String&) const;
  8179. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8180. // Properties:
  8181. /* readonly */
  8182. String category;
  8183. /* readonly */
  8184. uint memoryUse;
  8185. String name;
  8186. /* readonly */
  8187. int refs;
  8188. /* readonly */
  8189. StringHash type;
  8190. /* readonly */
  8191. String typeName;
  8192. /* readonly */
  8193. uint useTimer;
  8194. /* readonly */
  8195. int weakRefs;
  8196. };
  8197. class ParticleEmitter
  8198. {
  8199. public:
  8200. // Methods:
  8201. void ApplyAttributes();
  8202. void ApplyEffect();
  8203. void Commit();
  8204. void DrawDebugGeometry(DebugRenderer, bool);
  8205. Variant GetAttribute(const String&) const;
  8206. ValueAnimation GetAttributeAnimation(const String&) const;
  8207. float GetAttributeAnimationSpeed(const String&) const;
  8208. float GetAttributeAnimationTime(const String&) const;
  8209. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8210. Variant GetAttributeDefault(const String&) const;
  8211. bool GetInterceptNetworkUpdate(const String&) const;
  8212. bool HasSubscribedToEvent(Object, const String&);
  8213. bool HasSubscribedToEvent(const String&);
  8214. bool IsInView(Camera) const;
  8215. bool Load(File, bool = false);
  8216. bool Load(VectorBuffer&, bool = false);
  8217. bool LoadJSON(const JSONValue&, bool = false);
  8218. bool LoadXML(const XMLElement&, bool = false);
  8219. void MarkNetworkUpdate() const;
  8220. void Remove();
  8221. void RemoveAllParticles();
  8222. void RemoveAttributeAnimation(const String&);
  8223. void RemoveInstanceDefault();
  8224. void RemoveObjectAnimation();
  8225. void Reset();
  8226. void ResetEmissionTimer();
  8227. void ResetToDefault();
  8228. bool Save(File) const;
  8229. bool Save(VectorBuffer&) const;
  8230. bool SaveJSON(JSONValue&) const;
  8231. bool SaveXML(XMLElement&) const;
  8232. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8233. void SetAnimationTime(float);
  8234. bool SetAttribute(const String&, const Variant&);
  8235. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8236. void SetAttributeAnimationSpeed(const String&, float);
  8237. void SetAttributeAnimationTime(const String&, float);
  8238. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8239. void SetInterceptNetworkUpdate(const String&, bool);
  8240. // Properties:
  8241. bool animationEnabled;
  8242. float animationLodBias;
  8243. /* readonly */
  8244. Array<Variant> attributeDefaults;
  8245. /* readonly */
  8246. Array<AttributeInfo> attributeInfos;
  8247. Array<Variant> attributes;
  8248. AutoRemoveMode autoRemoveMode;
  8249. /* readonly */
  8250. Array<Billboard> billboards;
  8251. /* readonly */
  8252. BoundingBox boundingBox;
  8253. bool castShadows;
  8254. /* readonly */
  8255. String category;
  8256. float drawDistance;
  8257. ParticleEffect effect;
  8258. bool emitting;
  8259. bool enabled;
  8260. /* readonly */
  8261. bool enabledEffective;
  8262. FaceCameraMode faceCameraMode;
  8263. bool fixedScreenSize;
  8264. /* readonly */
  8265. uint id;
  8266. /* readonly */
  8267. bool inView;
  8268. uint lightMask;
  8269. float lodBias;
  8270. Material material;
  8271. uint maxLights;
  8272. /* readonly */
  8273. Node node;
  8274. /* readonly */
  8275. uint numAttributes;
  8276. uint numBillboards;
  8277. uint numParticles;
  8278. ObjectAnimation objectAnimation;
  8279. bool occludee;
  8280. bool occluder;
  8281. /* readonly */
  8282. int refs;
  8283. bool relative;
  8284. bool scaled;
  8285. bool serializeParticles;
  8286. float shadowDistance;
  8287. uint shadowMask;
  8288. bool sorted;
  8289. bool temporary;
  8290. /* readonly */
  8291. StringHash type;
  8292. /* readonly */
  8293. String typeName;
  8294. uint viewMask;
  8295. /* readonly */
  8296. int weakRefs;
  8297. /* readonly */
  8298. BoundingBox worldBoundingBox;
  8299. /* readonly */
  8300. Zone zone;
  8301. uint zoneMask;
  8302. };
  8303. class ParticleEmitter2D
  8304. {
  8305. public:
  8306. // Methods:
  8307. void ApplyAttributes();
  8308. void DrawDebugGeometry(DebugRenderer, bool);
  8309. Variant GetAttribute(const String&) const;
  8310. ValueAnimation GetAttributeAnimation(const String&) const;
  8311. float GetAttributeAnimationSpeed(const String&) const;
  8312. float GetAttributeAnimationTime(const String&) const;
  8313. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8314. Variant GetAttributeDefault(const String&) const;
  8315. bool GetInterceptNetworkUpdate(const String&) const;
  8316. bool HasSubscribedToEvent(Object, const String&);
  8317. bool HasSubscribedToEvent(const String&);
  8318. bool IsInView(Camera) const;
  8319. bool Load(File, bool = false);
  8320. bool Load(VectorBuffer&, bool = false);
  8321. bool LoadJSON(const JSONValue&, bool = false);
  8322. bool LoadXML(const XMLElement&, bool = false);
  8323. void MarkNetworkUpdate() const;
  8324. void Remove();
  8325. void RemoveAttributeAnimation(const String&);
  8326. void RemoveInstanceDefault();
  8327. void RemoveObjectAnimation();
  8328. void ResetToDefault();
  8329. bool Save(File) const;
  8330. bool Save(VectorBuffer&) const;
  8331. bool SaveJSON(JSONValue&) const;
  8332. bool SaveXML(XMLElement&) const;
  8333. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8334. void SetAnimationTime(float);
  8335. bool SetAttribute(const String&, const Variant&);
  8336. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8337. void SetAttributeAnimationSpeed(const String&, float);
  8338. void SetAttributeAnimationTime(const String&, float);
  8339. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8340. void SetInterceptNetworkUpdate(const String&, bool);
  8341. // Properties:
  8342. bool animationEnabled;
  8343. /* readonly */
  8344. Array<Variant> attributeDefaults;
  8345. /* readonly */
  8346. Array<AttributeInfo> attributeInfos;
  8347. Array<Variant> attributes;
  8348. BlendMode blendMode;
  8349. /* readonly */
  8350. BoundingBox boundingBox;
  8351. bool castShadows;
  8352. /* readonly */
  8353. String category;
  8354. float drawDistance;
  8355. ParticleEffect2D effect;
  8356. bool emitting;
  8357. bool enabled;
  8358. /* readonly */
  8359. bool enabledEffective;
  8360. /* readonly */
  8361. uint id;
  8362. /* readonly */
  8363. bool inView;
  8364. int layer;
  8365. uint lightMask;
  8366. float lodBias;
  8367. uint maxLights;
  8368. /* readonly */
  8369. Node node;
  8370. /* readonly */
  8371. uint numAttributes;
  8372. ObjectAnimation objectAnimation;
  8373. bool occludee;
  8374. bool occluder;
  8375. int orderInLayer;
  8376. /* readonly */
  8377. int refs;
  8378. float shadowDistance;
  8379. uint shadowMask;
  8380. Sprite2D sprite;
  8381. bool temporary;
  8382. /* readonly */
  8383. StringHash type;
  8384. /* readonly */
  8385. String typeName;
  8386. uint viewMask;
  8387. /* readonly */
  8388. int weakRefs;
  8389. /* readonly */
  8390. BoundingBox worldBoundingBox;
  8391. uint zoneMask;
  8392. };
  8393. class Pass
  8394. {
  8395. public:
  8396. // Properties:
  8397. bool alphaToCoverage;
  8398. BlendMode blendMode;
  8399. CullMode cullMode;
  8400. CompareMode depthTestMode;
  8401. bool depthWrite;
  8402. bool desktop;
  8403. PassLightingMode lightingMode;
  8404. String pixelShader;
  8405. String pixelShaderDefineExcludes;
  8406. String pixelShaderDefines;
  8407. /* readonly */
  8408. int refs;
  8409. String vertexShader;
  8410. String vertexShaderDefineExcludes;
  8411. String vertexShaderDefines;
  8412. /* readonly */
  8413. int weakRefs;
  8414. };
  8415. class PhysicsRaycastResult
  8416. {
  8417. public:
  8418. ~PhysicsRaycastResult();
  8419. PhysicsRaycastResult();
  8420. // Properties:
  8421. /* readonly */
  8422. RigidBody body;
  8423. float distance;
  8424. float hitFraction;
  8425. Vector3 normal;
  8426. Vector3 position;
  8427. };
  8428. class PhysicsRaycastResult2D
  8429. {
  8430. public:
  8431. ~PhysicsRaycastResult2D();
  8432. PhysicsRaycastResult2D();
  8433. // Properties:
  8434. /* readonly */
  8435. RigidBody2D body;
  8436. float distance;
  8437. Vector2 normal;
  8438. Vector2 position;
  8439. };
  8440. class PhysicsWorld
  8441. {
  8442. public:
  8443. // Methods:
  8444. void ApplyAttributes();
  8445. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  8446. void DrawDebugGeometry(DebugRenderer, bool);
  8447. void DrawDebugGeometry(bool);
  8448. Variant GetAttribute(const String&) const;
  8449. ValueAnimation GetAttributeAnimation(const String&) const;
  8450. float GetAttributeAnimationSpeed(const String&) const;
  8451. float GetAttributeAnimationTime(const String&) const;
  8452. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8453. Variant GetAttributeDefault(const String&) const;
  8454. Array<RigidBody> GetCollidingBodies(RigidBody);
  8455. bool GetInterceptNetworkUpdate(const String&) const;
  8456. Array<RigidBody> GetRigidBodies(RigidBody);
  8457. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  8458. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  8459. bool HasSubscribedToEvent(Object, const String&);
  8460. bool HasSubscribedToEvent(const String&);
  8461. bool Load(File, bool = false);
  8462. bool Load(VectorBuffer&, bool = false);
  8463. bool LoadJSON(const JSONValue&, bool = false);
  8464. bool LoadXML(const XMLElement&, bool = false);
  8465. void MarkNetworkUpdate() const;
  8466. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  8467. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  8468. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  8469. void Remove();
  8470. void RemoveAttributeAnimation(const String&);
  8471. void RemoveCachedGeometry(Model);
  8472. void RemoveInstanceDefault();
  8473. void RemoveObjectAnimation();
  8474. void ResetToDefault();
  8475. bool Save(File) const;
  8476. bool Save(VectorBuffer&) const;
  8477. bool SaveJSON(JSONValue&) const;
  8478. bool SaveXML(XMLElement&) const;
  8479. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8480. void SetAnimationTime(float);
  8481. bool SetAttribute(const String&, const Variant&);
  8482. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8483. void SetAttributeAnimationSpeed(const String&, float);
  8484. void SetAttributeAnimationTime(const String&, float);
  8485. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8486. void SetInterceptNetworkUpdate(const String&, bool);
  8487. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  8488. void Update(float);
  8489. void UpdateCollisions();
  8490. // Properties:
  8491. bool animationEnabled;
  8492. /* readonly */
  8493. Array<Variant> attributeDefaults;
  8494. /* readonly */
  8495. Array<AttributeInfo> attributeInfos;
  8496. Array<Variant> attributes;
  8497. /* readonly */
  8498. String category;
  8499. bool enabled;
  8500. /* readonly */
  8501. bool enabledEffective;
  8502. int fps;
  8503. Vector3 gravity;
  8504. /* readonly */
  8505. uint id;
  8506. bool internalEdge;
  8507. bool interpolation;
  8508. int maxSubSteps;
  8509. /* readonly */
  8510. Node node;
  8511. /* readonly */
  8512. uint numAttributes;
  8513. int numIterations;
  8514. ObjectAnimation objectAnimation;
  8515. /* readonly */
  8516. int refs;
  8517. bool splitImpulse;
  8518. bool temporary;
  8519. /* readonly */
  8520. StringHash type;
  8521. /* readonly */
  8522. String typeName;
  8523. bool updateEnabled;
  8524. /* readonly */
  8525. int weakRefs;
  8526. };
  8527. class PhysicsWorld2D
  8528. {
  8529. public:
  8530. // Methods:
  8531. void ApplyAttributes();
  8532. void DrawDebugGeometry() const;
  8533. void DrawDebugGeometry(DebugRenderer, bool);
  8534. Variant GetAttribute(const String&) const;
  8535. ValueAnimation GetAttributeAnimation(const String&) const;
  8536. float GetAttributeAnimationSpeed(const String&) const;
  8537. float GetAttributeAnimationTime(const String&) const;
  8538. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8539. Variant GetAttributeDefault(const String&) const;
  8540. bool GetInterceptNetworkUpdate(const String&) const;
  8541. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8542. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8543. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8544. bool HasSubscribedToEvent(Object, const String&);
  8545. bool HasSubscribedToEvent(const String&);
  8546. bool Load(File, bool = false);
  8547. bool Load(VectorBuffer&, bool = false);
  8548. bool LoadJSON(const JSONValue&, bool = false);
  8549. bool LoadXML(const XMLElement&, bool = false);
  8550. void MarkNetworkUpdate() const;
  8551. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8552. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8553. void Remove();
  8554. void RemoveAttributeAnimation(const String&);
  8555. void RemoveInstanceDefault();
  8556. void RemoveObjectAnimation();
  8557. void ResetToDefault();
  8558. bool Save(File) const;
  8559. bool Save(VectorBuffer&) const;
  8560. bool SaveJSON(JSONValue&) const;
  8561. bool SaveXML(XMLElement&) const;
  8562. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8563. void SetAnimationTime(float);
  8564. bool SetAttribute(const String&, const Variant&);
  8565. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8566. void SetAttributeAnimationSpeed(const String&, float);
  8567. void SetAttributeAnimationTime(const String&, float);
  8568. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8569. void SetInterceptNetworkUpdate(const String&, bool);
  8570. // Properties:
  8571. bool allowSleeping;
  8572. bool animationEnabled;
  8573. /* readonly */
  8574. Array<Variant> attributeDefaults;
  8575. /* readonly */
  8576. Array<AttributeInfo> attributeInfos;
  8577. Array<Variant> attributes;
  8578. bool autoClearForces;
  8579. /* readonly */
  8580. String category;
  8581. bool continuousPhysics;
  8582. bool drawAabb;
  8583. bool drawCenterOfMass;
  8584. bool drawJoint;
  8585. bool drawPair;
  8586. bool drawShape;
  8587. bool enabled;
  8588. /* readonly */
  8589. bool enabledEffective;
  8590. Vector2 gravity;
  8591. /* readonly */
  8592. uint id;
  8593. /* readonly */
  8594. Node node;
  8595. /* readonly */
  8596. uint numAttributes;
  8597. ObjectAnimation objectAnimation;
  8598. uint positionIterations;
  8599. /* readonly */
  8600. int refs;
  8601. bool subStepping;
  8602. bool temporary;
  8603. /* readonly */
  8604. StringHash type;
  8605. /* readonly */
  8606. String typeName;
  8607. bool updateEnabled;
  8608. uint velocityIterations;
  8609. bool warmStarting;
  8610. /* readonly */
  8611. int weakRefs;
  8612. };
  8613. class Plane
  8614. {
  8615. public:
  8616. Plane();
  8617. Plane(const Plane&in);
  8618. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  8619. Plane(const Vector3&in, const Vector3&in);
  8620. Plane(const Vector4&in);
  8621. // Methods:
  8622. void Define(const Vector3&, const Vector3&);
  8623. void Define(const Vector3&, const Vector3&, const Vector3&);
  8624. void Define(const Vector4&);
  8625. float Distance(const Vector3&) const;
  8626. Vector3 Project(const Vector3&) const;
  8627. Vector3 Reflect(const Vector3&) const;
  8628. Vector4 ToVector4() const;
  8629. void Transform(const Matrix3&);
  8630. void Transform(const Matrix3x4&);
  8631. void Transform(const Matrix4&);
  8632. Plane Transformed(const Matrix3&) const;
  8633. Plane Transformed(const Matrix3x4&) const;
  8634. Plane Transformed(const Matrix4&) const;
  8635. // Properties:
  8636. Vector3 absNormal;
  8637. float d;
  8638. Vector3 normal;
  8639. /* readonly */
  8640. Matrix3x4 reflectionMatrix;
  8641. };
  8642. class Polyhedron
  8643. {
  8644. public:
  8645. ~Polyhedron();
  8646. Polyhedron();
  8647. Polyhedron(const Polyhedron&in);
  8648. Polyhedron(const BoundingBox&in);
  8649. Polyhedron(const Frustum&in);
  8650. // Methods:
  8651. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8652. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8653. void AddFace(const Array<Vector3>);
  8654. void Clear();
  8655. void Clip(const BoundingBox&);
  8656. void Clip(const Frustum&);
  8657. void Define(const BoundingBox&);
  8658. void Define(const Frustum&);
  8659. void Transform(const Matrix3&);
  8660. void Transform(const Matrix3x4&);
  8661. Polyhedron Transformed(const Matrix3&) const;
  8662. Polyhedron Transformed(const Matrix3x4&) const;
  8663. // Properties:
  8664. /* readonly */
  8665. Array<Array<Vector3>> face;
  8666. /* readonly */
  8667. uint numFaces;
  8668. };
  8669. class ProgressBar
  8670. {
  8671. public:
  8672. // Methods:
  8673. void ChangeValue(float);
  8674. bool HasSubscribedToEvent(Object, const String&);
  8675. bool HasSubscribedToEvent(const String&);
  8676. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8677. void SetLoadingPercentStyle(const String&);
  8678. // Properties:
  8679. /* readonly */
  8680. String category;
  8681. /* readonly */
  8682. BorderImage knob;
  8683. Orientation orientation;
  8684. float range;
  8685. /* readonly */
  8686. int refs;
  8687. bool showPercentText;
  8688. /* readonly */
  8689. StringHash type;
  8690. /* readonly */
  8691. String typeName;
  8692. float value;
  8693. /* readonly */
  8694. int weakRefs;
  8695. };
  8696. class PropertySet2D
  8697. {
  8698. public:
  8699. // Methods:
  8700. bool HasProperty(const String&) const;
  8701. const String& GetProperty(const String&) const;
  8702. // Properties:
  8703. /* readonly */
  8704. int refs;
  8705. /* readonly */
  8706. int weakRefs;
  8707. };
  8708. class Quaternion
  8709. {
  8710. public:
  8711. Quaternion();
  8712. Quaternion(const Quaternion&in);
  8713. Quaternion(float, float, float, float);
  8714. Quaternion(float, const Vector3&in);
  8715. Quaternion(float);
  8716. Quaternion(float, float, float);
  8717. Quaternion(const Vector3&in);
  8718. Quaternion(const Vector3&in, const Vector3&in);
  8719. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  8720. Quaternion(const Matrix3&in);
  8721. // Methods:
  8722. Quaternion Conjugate() const;
  8723. float DotProduct(const Quaternion&) const;
  8724. bool Equals(const Quaternion&) const;
  8725. void FromAngleAxis(float, const Vector3&);
  8726. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8727. void FromEulerAngles(float, float, float);
  8728. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8729. void FromRotationMatrix(const Matrix3&);
  8730. void FromRotationTo(const Vector3&, const Vector3&);
  8731. Quaternion Inverse() const;
  8732. bool IsNaN() const;
  8733. float LengthSquared() const;
  8734. Quaternion Nlerp(const Quaternion&, float, bool) const;
  8735. void Normalize();
  8736. Quaternion Normalized() const;
  8737. Quaternion Slerp(const Quaternion&, float) const;
  8738. String ToString() const;
  8739. // Properties:
  8740. /* readonly */
  8741. float angle;
  8742. /* readonly */
  8743. Vector3 axis;
  8744. /* readonly */
  8745. Vector3 eulerAngles;
  8746. /* readonly */
  8747. float pitch;
  8748. /* readonly */
  8749. float roll;
  8750. /* readonly */
  8751. Matrix3 rotationMatrix;
  8752. float w;
  8753. float x;
  8754. float y;
  8755. /* readonly */
  8756. float yaw;
  8757. float z;
  8758. };
  8759. class Ray
  8760. {
  8761. public:
  8762. Ray();
  8763. Ray(const Ray&in);
  8764. Ray(const Vector3&in, const Vector3&in);
  8765. // Methods:
  8766. Vector3 ClosestPoint(const Ray&) const;
  8767. void Define(const Vector3&, const Vector3&);
  8768. float Distance(const Vector3&) const;
  8769. float HitDistance(const BoundingBox&) const;
  8770. float HitDistance(const Frustum&, bool = true) const;
  8771. float HitDistance(const Plane&) const;
  8772. float HitDistance(const Sphere&) const;
  8773. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8774. Vector3 Project(const Vector3&) const;
  8775. Ray Transformed(const Matrix3x4&) const;
  8776. // Properties:
  8777. Vector3 direction;
  8778. Vector3 origin;
  8779. };
  8780. class RayQueryResult
  8781. {
  8782. public:
  8783. RayQueryResult();
  8784. // Properties:
  8785. float distance;
  8786. /* readonly */
  8787. Drawable drawable;
  8788. /* readonly */
  8789. Node node;
  8790. Vector3 normal;
  8791. Vector3 position;
  8792. uint subObject;
  8793. Vector2 textureUV;
  8794. };
  8795. class RaycastVehicle
  8796. {
  8797. public:
  8798. // Methods:
  8799. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  8800. void ApplyAttributes();
  8801. void DrawDebugGeometry(DebugRenderer, bool);
  8802. Variant GetAttribute(const String&) const;
  8803. ValueAnimation GetAttributeAnimation(const String&) const;
  8804. float GetAttributeAnimationSpeed(const String&) const;
  8805. float GetAttributeAnimationTime(const String&) const;
  8806. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8807. Variant GetAttributeDefault(const String&) const;
  8808. float GetBrake(int);
  8809. Vector3 GetContactNormal(int);
  8810. Vector3 GetContactPosition(int);
  8811. float GetEngineForce(int);
  8812. bool GetInterceptNetworkUpdate(const String&) const;
  8813. float GetMaxSuspensionTravel(int);
  8814. float GetSteeringValue(int);
  8815. Vector3 GetWheelAxle(int);
  8816. Vector3 GetWheelConnectionPoint(int);
  8817. float GetWheelDampingCompression(int);
  8818. float GetWheelDampingRelaxation(int);
  8819. Vector3 GetWheelDirection(int);
  8820. float GetWheelFrictionSlip(int);
  8821. Node GetWheelNode(int);
  8822. Vector3 GetWheelPosition(int);
  8823. float GetWheelRadius(int);
  8824. float GetWheelRestLength(int);
  8825. float GetWheelRollInfluence(int);
  8826. Vector3 GetWheelRotation(int);
  8827. float GetWheelSideSlipSpeed(int);
  8828. float GetWheelSkidInfo(int);
  8829. float GetWheelSkidInfoCumulative(int);
  8830. float GetWheelSuspensionStiffness(int);
  8831. bool HasSubscribedToEvent(Object, const String&);
  8832. bool HasSubscribedToEvent(const String&);
  8833. void Init();
  8834. bool IsFrontWheel(int);
  8835. bool Load(File, bool = false);
  8836. bool Load(VectorBuffer&, bool = false);
  8837. bool LoadJSON(const JSONValue&, bool = false);
  8838. bool LoadXML(const XMLElement&, bool = false);
  8839. void MarkNetworkUpdate() const;
  8840. void Remove();
  8841. void RemoveAttributeAnimation(const String&);
  8842. void RemoveInstanceDefault();
  8843. void RemoveObjectAnimation();
  8844. void ResetSuspension();
  8845. void ResetToDefault();
  8846. void ResetWheels();
  8847. bool Save(File) const;
  8848. bool Save(VectorBuffer&) const;
  8849. bool SaveJSON(JSONValue&) const;
  8850. bool SaveXML(XMLElement&) const;
  8851. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8852. void SetAnimationTime(float);
  8853. bool SetAttribute(const String&, const Variant&);
  8854. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8855. void SetAttributeAnimationSpeed(const String&, float);
  8856. void SetAttributeAnimationTime(const String&, float);
  8857. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8858. void SetBrake(int, float);
  8859. void SetEngineForce(int, float);
  8860. void SetInterceptNetworkUpdate(const String&, bool);
  8861. void SetMaxSuspensionTravel(int, float);
  8862. void SetSteeringValue(int, float);
  8863. void SetWheelAxle(int, Vector3);
  8864. void SetWheelDampingCompression(int, float);
  8865. void SetWheelDampingRelaxation(int, float);
  8866. void SetWheelDirection(int, Vector3);
  8867. void SetWheelFrictionSlip(int, float);
  8868. void SetWheelRadius(int, float);
  8869. void SetWheelRestLength(int, float);
  8870. void SetWheelRollInfluence(int, float);
  8871. void SetWheelSkidInfo(int, float);
  8872. void SetWheelSkidInfoCumulative(int, float);
  8873. void SetWheelSuspensionStiffness(int, float);
  8874. void UpdateWheelTransform(int, bool);
  8875. bool WheelIsGrounded(int);
  8876. // Properties:
  8877. bool animationEnabled;
  8878. /* readonly */
  8879. Array<Variant> attributeDefaults;
  8880. /* readonly */
  8881. Array<AttributeInfo> attributeInfos;
  8882. Array<Variant> attributes;
  8883. /* readonly */
  8884. String category;
  8885. bool enabled;
  8886. /* readonly */
  8887. bool enabledEffective;
  8888. /* readonly */
  8889. uint id;
  8890. float inAirRPM;
  8891. float maxSideSlipSpeed;
  8892. /* readonly */
  8893. Node node;
  8894. /* readonly */
  8895. uint numAttributes;
  8896. /* readonly */
  8897. int numWheels;
  8898. ObjectAnimation objectAnimation;
  8899. /* readonly */
  8900. int refs;
  8901. bool temporary;
  8902. /* readonly */
  8903. StringHash type;
  8904. /* readonly */
  8905. String typeName;
  8906. /* readonly */
  8907. int weakRefs;
  8908. };
  8909. class Rect
  8910. {
  8911. public:
  8912. Rect();
  8913. Rect(const Rect&in);
  8914. Rect(float, float, float, float);
  8915. Rect(const Vector2&in, const Vector2&in);
  8916. Rect(const Vector4&in);
  8917. // Methods:
  8918. void Clear();
  8919. void Clip(const Rect&);
  8920. void Define(const Vector2&);
  8921. void Define(const Vector2&, const Vector2&);
  8922. bool Defined() const;
  8923. bool Equals(const Rect&) const;
  8924. Intersection IsInside(const Rect&) const;
  8925. Intersection IsInside(const Vector2&) const;
  8926. void Merge(const Rect&);
  8927. void Merge(const Vector2&);
  8928. Vector4 ToVector4() const;
  8929. // Properties:
  8930. float bottom;
  8931. /* readonly */
  8932. Vector2 center;
  8933. /* readonly */
  8934. Vector2 halfSize;
  8935. float left;
  8936. Vector2 max;
  8937. Vector2 min;
  8938. float right;
  8939. /* readonly */
  8940. Vector2 size;
  8941. float top;
  8942. };
  8943. class RefCounted
  8944. {
  8945. public:
  8946. // Properties:
  8947. /* readonly */
  8948. int refs;
  8949. /* readonly */
  8950. int weakRefs;
  8951. };
  8952. class RenderPath
  8953. {
  8954. public:
  8955. RenderPath();
  8956. // Methods:
  8957. void AddCommand(const RenderPathCommand&);
  8958. void AddRenderTarget(const RenderTargetInfo&);
  8959. bool Append(XMLFile);
  8960. RenderPath Clone();
  8961. void InsertCommand(uint, const RenderPathCommand&);
  8962. bool Load(XMLFile);
  8963. void RemoveCommand(uint);
  8964. void RemoveCommands(const String&);
  8965. void RemoveRenderTarget(const String&);
  8966. void RemoveRenderTarget(uint);
  8967. void RemoveRenderTargts(const String&);
  8968. void SetEnabled(const String&, bool);
  8969. void ToggleEnabled(const String&);
  8970. // Properties:
  8971. Array<RenderPathCommand> commands;
  8972. /* readonly */
  8973. uint numCommands;
  8974. /* readonly */
  8975. uint numRenderTargets;
  8976. /* readonly */
  8977. int refs;
  8978. Array<RenderTargetInfo> renderTargets;
  8979. Array<Variant> shaderParameters;
  8980. /* readonly */
  8981. int weakRefs;
  8982. };
  8983. class RenderPathCommand
  8984. {
  8985. public:
  8986. ~RenderPathCommand();
  8987. RenderPathCommand();
  8988. RenderPathCommand(const RenderPathCommand&in);
  8989. // Methods:
  8990. void RemoveShaderParameter(const String&);
  8991. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8992. // Properties:
  8993. BlendMode blendMode;
  8994. Color clearColor;
  8995. float clearDepth;
  8996. uint clearFlags;
  8997. uint clearStencil;
  8998. String depthStencilName;
  8999. bool enabled;
  9000. String eventName;
  9001. bool markToStencil;
  9002. String metadata;
  9003. uint numOutputs;
  9004. Array<CubeMapFace> outputFaces;
  9005. Array<String> outputNames;
  9006. String pass;
  9007. String pixelShaderDefines;
  9008. String pixelShaderName;
  9009. Array<Variant> shaderParameters;
  9010. RenderCommandSortMode sortMode;
  9011. String tag;
  9012. Array<String> textureNames;
  9013. RenderCommandType type;
  9014. bool useFogColor;
  9015. bool useLitBase;
  9016. bool vertexLights;
  9017. String vertexShaderDefines;
  9018. String vertexShaderName;
  9019. };
  9020. class RenderSurface
  9021. {
  9022. public:
  9023. // Methods:
  9024. void QueueUpdate();
  9025. // Properties:
  9026. /* readonly */
  9027. int height;
  9028. RenderSurface linkedDepthStencil;
  9029. RenderSurface linkedRenderTarget;
  9030. uint numViewports;
  9031. /* readonly */
  9032. Texture parentTexture;
  9033. /* readonly */
  9034. bool resolveDirty;
  9035. RenderSurfaceUpdateMode updateMode;
  9036. /* readonly */
  9037. TextureUsage usage;
  9038. Array<Viewport> viewports;
  9039. /* readonly */
  9040. int width;
  9041. };
  9042. class RenderTargetInfo
  9043. {
  9044. public:
  9045. ~RenderTargetInfo();
  9046. RenderTargetInfo();
  9047. RenderTargetInfo(const RenderTargetInfo&in);
  9048. // Properties:
  9049. bool autoResolve;
  9050. bool cubemap;
  9051. bool enabled;
  9052. bool filtered;
  9053. uint format;
  9054. int multiSample;
  9055. String name;
  9056. bool persistent;
  9057. bool sRGB;
  9058. Vector2 size;
  9059. RenderTargetSizeMode sizeMode;
  9060. String tag;
  9061. };
  9062. class Renderer
  9063. {
  9064. public:
  9065. // Methods:
  9066. void DrawDebugGeometry(bool) const;
  9067. Viewport GetViewportForScene(Scene, uint);
  9068. bool HasSubscribedToEvent(Object, const String&);
  9069. bool HasSubscribedToEvent(const String&);
  9070. void ReloadShaders() const;
  9071. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9072. void SetDefaultRenderPath(XMLFile);
  9073. void SetVSMShadowParameters(float, float);
  9074. // Properties:
  9075. /* readonly */
  9076. String category;
  9077. /* readonly */
  9078. Material defaultLightRamp;
  9079. /* readonly */
  9080. Material defaultLightSpot;
  9081. /* readonly */
  9082. Material defaultMaterial;
  9083. RenderPath defaultRenderPath;
  9084. Technique defaultTechnique;
  9085. /* readonly */
  9086. Zone defaultZone;
  9087. bool drawShadows;
  9088. bool dynamicInstancing;
  9089. bool hdrRendering;
  9090. int materialQuality;
  9091. int maxOccluderTriangles;
  9092. int maxShadowMaps;
  9093. int maxSortedInstances;
  9094. int minInstances;
  9095. float mobileNormalOffsetMul;
  9096. float mobileShadowBiasAdd;
  9097. float mobileShadowBiasMul;
  9098. /* readonly */
  9099. uint numBatches;
  9100. int numExtraInstancingBufferElements;
  9101. /* readonly */
  9102. Array<uint> numGeometries;
  9103. /* readonly */
  9104. Array<uint> numLights;
  9105. /* readonly */
  9106. Array<uint> numOccluders;
  9107. /* readonly */
  9108. uint numPrimitives;
  9109. /* readonly */
  9110. Array<uint> numShadowMaps;
  9111. uint numViewports;
  9112. /* readonly */
  9113. uint numViews;
  9114. float occluderSizeThreshold;
  9115. int occlusionBufferSize;
  9116. /* readonly */
  9117. int refs;
  9118. bool reuseShadowMaps;
  9119. int shadowMapSize;
  9120. ShadowQuality shadowQuality;
  9121. float shadowSoftness;
  9122. bool specularLighting;
  9123. int textureAnisotropy;
  9124. TextureFilterMode textureFilterMode;
  9125. int textureQuality;
  9126. bool threadedOcclusion;
  9127. /* readonly */
  9128. StringHash type;
  9129. /* readonly */
  9130. String typeName;
  9131. Array<Viewport> viewports;
  9132. int vsmMultiSample;
  9133. Vector2 vsmShadowParameters;
  9134. /* readonly */
  9135. int weakRefs;
  9136. };
  9137. class Resource
  9138. {
  9139. public:
  9140. // Methods:
  9141. bool HasSubscribedToEvent(Object, const String&);
  9142. bool HasSubscribedToEvent(const String&);
  9143. bool Load(File);
  9144. bool Load(VectorBuffer&);
  9145. bool Load(const String&);
  9146. bool Save(File) const;
  9147. bool Save(VectorBuffer&) const;
  9148. bool Save(const String&) const;
  9149. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9150. // Properties:
  9151. /* readonly */
  9152. String category;
  9153. /* readonly */
  9154. uint memoryUse;
  9155. String name;
  9156. /* readonly */
  9157. int refs;
  9158. /* readonly */
  9159. StringHash type;
  9160. /* readonly */
  9161. String typeName;
  9162. /* readonly */
  9163. uint useTimer;
  9164. /* readonly */
  9165. int weakRefs;
  9166. };
  9167. class ResourceCache
  9168. {
  9169. public:
  9170. // Methods:
  9171. bool AddManualResource(Resource);
  9172. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  9173. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  9174. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  9175. bool BackgroundLoadResource(const String&, const String&, bool = true);
  9176. bool Exists(const String&) const;
  9177. Resource GetExistingResource(StringHash, const String&);
  9178. Resource GetExistingResource(const String&, const String&);
  9179. File GetFile(const String&);
  9180. String GetPreferredResourceDir(const String&) const;
  9181. Resource GetResource(StringHash, const String&, bool = true);
  9182. Resource GetResource(const String&, const String&, bool = true);
  9183. String GetResourceFileName(const String&) const;
  9184. Array<Resource> GetResources(StringHash);
  9185. Array<Resource> GetResources(const String&);
  9186. bool HasSubscribedToEvent(Object, const String&);
  9187. bool HasSubscribedToEvent(const String&);
  9188. void ReleaseAllResources(bool = false);
  9189. void ReleaseResource(const String&, const String&, bool = false);
  9190. void ReleaseResources(StringHash, bool = false);
  9191. void ReleaseResources(const String&, bool = false);
  9192. void ReleaseResources(const String&, const String&, bool = false);
  9193. bool ReloadResource(Resource);
  9194. void ReloadResourceWithDependencies(const String&);
  9195. void RemovePackageFile(PackageFile, bool = true, bool = false);
  9196. void RemovePackageFile(const String&, bool = true, bool = false);
  9197. void RemoveResourceDir(const String&);
  9198. String SanitateResourceDirName(const String&) const;
  9199. String SanitateResourceName(const String&) const;
  9200. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9201. // Properties:
  9202. bool autoReloadResources;
  9203. /* readonly */
  9204. String category;
  9205. int finishBackgroundResourcesMs;
  9206. Array<uint64> memoryBudget;
  9207. /* readonly */
  9208. Array<uint64> memoryUse;
  9209. /* readonly */
  9210. uint numBackgroundLoadResources;
  9211. /* readonly */
  9212. Array<PackageFile> packageFiles;
  9213. /* readonly */
  9214. int refs;
  9215. /* readonly */
  9216. Array<String> resourceDirs;
  9217. bool returnFailedResources;
  9218. /* readonly */
  9219. bool seachPackagesFirst;
  9220. /* writeonly */
  9221. bool searchPackagesFirst;
  9222. /* readonly */
  9223. uint64 totalMemoryUse;
  9224. /* readonly */
  9225. StringHash type;
  9226. /* readonly */
  9227. String typeName;
  9228. /* readonly */
  9229. int weakRefs;
  9230. };
  9231. class ResourceRef
  9232. {
  9233. public:
  9234. ~ResourceRef();
  9235. ResourceRef();
  9236. ResourceRef(const ResourceRef&in);
  9237. ResourceRef(const String&in, const String&in);
  9238. // Properties:
  9239. String name;
  9240. StringHash type;
  9241. };
  9242. class ResourceRefList
  9243. {
  9244. public:
  9245. ~ResourceRefList();
  9246. ResourceRefList();
  9247. ResourceRefList(const ResourceRefList&in);
  9248. // Methods:
  9249. void Resize(uint);
  9250. // Properties:
  9251. /* readonly */
  9252. bool empty;
  9253. /* readonly */
  9254. uint length;
  9255. Array<String> names;
  9256. StringHash type;
  9257. };
  9258. class RibbonTrail
  9259. {
  9260. public:
  9261. // Methods:
  9262. void ApplyAttributes();
  9263. void Commit();
  9264. void DrawDebugGeometry(DebugRenderer, bool);
  9265. Variant GetAttribute(const String&) const;
  9266. ValueAnimation GetAttributeAnimation(const String&) const;
  9267. float GetAttributeAnimationSpeed(const String&) const;
  9268. float GetAttributeAnimationTime(const String&) const;
  9269. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9270. Variant GetAttributeDefault(const String&) const;
  9271. bool GetInterceptNetworkUpdate(const String&) const;
  9272. bool HasSubscribedToEvent(Object, const String&);
  9273. bool HasSubscribedToEvent(const String&);
  9274. bool IsInView(Camera) const;
  9275. bool Load(File, bool = false);
  9276. bool Load(VectorBuffer&, bool = false);
  9277. bool LoadJSON(const JSONValue&, bool = false);
  9278. bool LoadXML(const XMLElement&, bool = false);
  9279. void MarkNetworkUpdate() const;
  9280. void Remove();
  9281. void RemoveAttributeAnimation(const String&);
  9282. void RemoveInstanceDefault();
  9283. void RemoveObjectAnimation();
  9284. void ResetToDefault();
  9285. bool Save(File) const;
  9286. bool Save(VectorBuffer&) const;
  9287. bool SaveJSON(JSONValue&) const;
  9288. bool SaveXML(XMLElement&) const;
  9289. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9290. void SetAnimationTime(float);
  9291. bool SetAttribute(const String&, const Variant&);
  9292. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9293. void SetAttributeAnimationSpeed(const String&, float);
  9294. void SetAttributeAnimationTime(const String&, float);
  9295. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9296. void SetInterceptNetworkUpdate(const String&, bool);
  9297. // Properties:
  9298. bool animationEnabled;
  9299. float animationLodBias;
  9300. /* readonly */
  9301. Array<Variant> attributeDefaults;
  9302. /* readonly */
  9303. Array<AttributeInfo> attributeInfos;
  9304. Array<Variant> attributes;
  9305. /* readonly */
  9306. BoundingBox boundingBox;
  9307. bool castShadows;
  9308. /* readonly */
  9309. String category;
  9310. float drawDistance;
  9311. bool emitting;
  9312. bool enabled;
  9313. /* readonly */
  9314. bool enabledEffective;
  9315. Color endColor;
  9316. float endScale;
  9317. /* readonly */
  9318. uint id;
  9319. /* readonly */
  9320. bool inView;
  9321. float lifetime;
  9322. uint lightMask;
  9323. float lodBias;
  9324. Material material;
  9325. uint maxLights;
  9326. /* readonly */
  9327. Node node;
  9328. /* readonly */
  9329. uint numAttributes;
  9330. ObjectAnimation objectAnimation;
  9331. bool occludee;
  9332. bool occluder;
  9333. /* readonly */
  9334. int refs;
  9335. float shadowDistance;
  9336. uint shadowMask;
  9337. bool sorted;
  9338. Color startColor;
  9339. float startScale;
  9340. uint tailColumn;
  9341. bool temporary;
  9342. TrailType trailType;
  9343. /* readonly */
  9344. StringHash type;
  9345. /* readonly */
  9346. String typeName;
  9347. bool updateInvisible;
  9348. float vertexDistance;
  9349. uint viewMask;
  9350. /* readonly */
  9351. int weakRefs;
  9352. float width;
  9353. /* readonly */
  9354. BoundingBox worldBoundingBox;
  9355. /* readonly */
  9356. Zone zone;
  9357. uint zoneMask;
  9358. };
  9359. class RigidBody
  9360. {
  9361. public:
  9362. // Methods:
  9363. void Activate();
  9364. void ApplyAttributes();
  9365. void ApplyForce(const Vector3&);
  9366. void ApplyForce(const Vector3&, const Vector3&);
  9367. void ApplyImpulse(const Vector3&);
  9368. void ApplyImpulse(const Vector3&, const Vector3&);
  9369. void ApplyTorque(const Vector3&);
  9370. void ApplyTorqueImpulse(const Vector3&);
  9371. void DisableMassUpdate();
  9372. void DrawDebugGeometry(DebugRenderer, bool);
  9373. void EnableMassUpdate();
  9374. Variant GetAttribute(const String&) const;
  9375. ValueAnimation GetAttributeAnimation(const String&) const;
  9376. float GetAttributeAnimationSpeed(const String&) const;
  9377. float GetAttributeAnimationTime(const String&) const;
  9378. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9379. Variant GetAttributeDefault(const String&) const;
  9380. bool GetInterceptNetworkUpdate(const String&) const;
  9381. Vector3 GetVelocityAtPoint(const Vector3&) const;
  9382. bool HasSubscribedToEvent(Object, const String&);
  9383. bool HasSubscribedToEvent(const String&);
  9384. bool Load(File, bool = false);
  9385. bool Load(VectorBuffer&, bool = false);
  9386. bool LoadJSON(const JSONValue&, bool = false);
  9387. bool LoadXML(const XMLElement&, bool = false);
  9388. void MarkNetworkUpdate() const;
  9389. void ReAddBodyToWorld();
  9390. void Remove();
  9391. void RemoveAttributeAnimation(const String&);
  9392. void RemoveInstanceDefault();
  9393. void RemoveObjectAnimation();
  9394. void ResetForces();
  9395. void ResetToDefault();
  9396. bool Save(File) const;
  9397. bool Save(VectorBuffer&) const;
  9398. bool SaveJSON(JSONValue&) const;
  9399. bool SaveXML(XMLElement&) const;
  9400. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9401. void SetAnimationTime(float);
  9402. bool SetAttribute(const String&, const Variant&);
  9403. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9404. void SetAttributeAnimationSpeed(const String&, float);
  9405. void SetAttributeAnimationTime(const String&, float);
  9406. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9407. void SetCollisionLayerAndMask(uint, uint);
  9408. void SetInterceptNetworkUpdate(const String&, bool);
  9409. void SetTransform(const Vector3&, const Quaternion&);
  9410. // Properties:
  9411. /* readonly */
  9412. bool active;
  9413. float angularDamping;
  9414. Vector3 angularFactor;
  9415. float angularRestThreshold;
  9416. Vector3 angularVelocity;
  9417. bool animationEnabled;
  9418. Vector3 anisotropicFriction;
  9419. /* readonly */
  9420. Array<Variant> attributeDefaults;
  9421. /* readonly */
  9422. Array<AttributeInfo> attributeInfos;
  9423. Array<Variant> attributes;
  9424. /* readonly */
  9425. String category;
  9426. float ccdMotionThreshold;
  9427. float ccdRadius;
  9428. /* readonly */
  9429. Vector3 centerOfMass;
  9430. /* readonly */
  9431. Array<RigidBody> collidingBodies;
  9432. CollisionEventMode collisionEventMode;
  9433. uint collisionLayer;
  9434. uint collisionMask;
  9435. float contactProcessingThreshold;
  9436. bool enabled;
  9437. /* readonly */
  9438. bool enabledEffective;
  9439. float friction;
  9440. Vector3 gravityOverride;
  9441. /* readonly */
  9442. uint id;
  9443. bool kinematic;
  9444. float linearDamping;
  9445. Vector3 linearFactor;
  9446. float linearRestThreshold;
  9447. Vector3 linearVelocity;
  9448. float mass;
  9449. /* readonly */
  9450. Node node;
  9451. /* readonly */
  9452. uint numAttributes;
  9453. ObjectAnimation objectAnimation;
  9454. Vector3 position;
  9455. /* readonly */
  9456. int refs;
  9457. float restitution;
  9458. float rollingFriction;
  9459. Quaternion rotation;
  9460. bool temporary;
  9461. bool trigger;
  9462. /* readonly */
  9463. StringHash type;
  9464. /* readonly */
  9465. String typeName;
  9466. bool useGravity;
  9467. /* readonly */
  9468. int weakRefs;
  9469. };
  9470. class RigidBody2D
  9471. {
  9472. public:
  9473. // Methods:
  9474. void ApplyAngularImpulse(float, bool);
  9475. void ApplyAttributes();
  9476. void ApplyForce(const Vector2&, const Vector2&, bool);
  9477. void ApplyForceToCenter(const Vector2&, bool);
  9478. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  9479. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  9480. void ApplyTorque(float, bool);
  9481. void DrawDebugGeometry(DebugRenderer, bool);
  9482. Variant GetAttribute(const String&) const;
  9483. ValueAnimation GetAttributeAnimation(const String&) const;
  9484. float GetAttributeAnimationSpeed(const String&) const;
  9485. float GetAttributeAnimationTime(const String&) const;
  9486. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9487. Variant GetAttributeDefault(const String&) const;
  9488. bool GetInterceptNetworkUpdate(const String&) const;
  9489. bool HasSubscribedToEvent(Object, const String&);
  9490. bool HasSubscribedToEvent(const String&);
  9491. bool Load(File, bool = false);
  9492. bool Load(VectorBuffer&, bool = false);
  9493. bool LoadJSON(const JSONValue&, bool = false);
  9494. bool LoadXML(const XMLElement&, bool = false);
  9495. void MarkNetworkUpdate() const;
  9496. void Remove();
  9497. void RemoveAttributeAnimation(const String&);
  9498. void RemoveInstanceDefault();
  9499. void RemoveObjectAnimation();
  9500. void ResetToDefault();
  9501. bool Save(File) const;
  9502. bool Save(VectorBuffer&) const;
  9503. bool SaveJSON(JSONValue&) const;
  9504. bool SaveXML(XMLElement&) const;
  9505. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9506. void SetAnimationTime(float);
  9507. bool SetAttribute(const String&, const Variant&);
  9508. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9509. void SetAttributeAnimationSpeed(const String&, float);
  9510. void SetAttributeAnimationTime(const String&, float);
  9511. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9512. void SetInterceptNetworkUpdate(const String&, bool);
  9513. // Properties:
  9514. bool allowSleep;
  9515. float angularDamping;
  9516. bool animationEnabled;
  9517. /* readonly */
  9518. Array<Variant> attributeDefaults;
  9519. /* readonly */
  9520. Array<AttributeInfo> attributeInfos;
  9521. Array<Variant> attributes;
  9522. bool awake;
  9523. BodyType2D bodyType;
  9524. bool bullet;
  9525. /* readonly */
  9526. String category;
  9527. bool enabled;
  9528. /* readonly */
  9529. bool enabledEffective;
  9530. bool fixedRotation;
  9531. float gravityScale;
  9532. /* readonly */
  9533. uint id;
  9534. float inertia;
  9535. float linearDamping;
  9536. Vector2 linearVelocity;
  9537. float mass;
  9538. Vector2 massCenter;
  9539. /* readonly */
  9540. Node node;
  9541. /* readonly */
  9542. uint numAttributes;
  9543. ObjectAnimation objectAnimation;
  9544. /* readonly */
  9545. int refs;
  9546. bool temporary;
  9547. /* readonly */
  9548. StringHash type;
  9549. /* readonly */
  9550. String typeName;
  9551. bool useFixtureMass;
  9552. /* readonly */
  9553. int weakRefs;
  9554. };
  9555. class Scene
  9556. {
  9557. public:
  9558. Scene();
  9559. Scene(const String&in);
  9560. // Methods:
  9561. void AddChild(Node, uint = M_MAX_UNSIGNED);
  9562. void AddRequiredPackageFile(PackageFile);
  9563. void AddTag(const String&);
  9564. void AddTags(const String&, int8 = ';');
  9565. void ApplyAttributes();
  9566. void Clear(bool = true, bool = true);
  9567. void ClearRequiredPackageFiles();
  9568. Component CloneComponent(Component, CreateMode, uint = 0);
  9569. Component CloneComponent(Component, uint = 0);
  9570. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  9571. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9572. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  9573. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  9574. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  9575. Variant GetAttribute(const String&) const;
  9576. ValueAnimation GetAttributeAnimation(const String&) const;
  9577. float GetAttributeAnimationSpeed(const String&) const;
  9578. float GetAttributeAnimationTime(const String&) const;
  9579. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9580. Variant GetAttributeDefault(const String&) const;
  9581. Node GetChild(const String&, bool = false) const;
  9582. Array<Node> GetChildren(bool = false) const;
  9583. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  9584. Array<Node> GetChildrenWithScript(bool = false) const;
  9585. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  9586. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  9587. Component GetComponent(const String&, bool = false) const;
  9588. Component GetComponent(uint) const;
  9589. Array<Component> GetComponents() const;
  9590. Array<Component> GetComponents(const String&, bool = false) const;
  9591. bool GetInterceptNetworkUpdate(const String&) const;
  9592. Node GetNode(uint) const;
  9593. Array<Node> GetNodesWithTag(const String&) const;
  9594. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9595. Component GetParentComponent(const String&, bool = false) const;
  9596. ScriptObject GetScriptObject() const;
  9597. ScriptObject GetScriptObject(const String&) const;
  9598. bool HasComponent(const String&) const;
  9599. bool HasSubscribedToEvent(Object, const String&);
  9600. bool HasSubscribedToEvent(const String&);
  9601. bool HasTag(const String&);
  9602. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9603. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9604. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9605. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9606. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9607. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9608. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9609. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9610. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9611. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9612. bool IsChildOf(Node) const;
  9613. bool Load(File, bool = false);
  9614. bool Load(VectorBuffer&, bool = false);
  9615. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9616. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9617. bool LoadJSON(File);
  9618. bool LoadJSON(VectorBuffer&);
  9619. bool LoadJSON(const JSONValue&, bool = false);
  9620. bool LoadXML(File);
  9621. bool LoadXML(VectorBuffer&);
  9622. bool LoadXML(const XMLElement&, bool = false);
  9623. Vector3 LocalToWorld(const Vector3&) const;
  9624. Vector3 LocalToWorld(const Vector4&) const;
  9625. Vector2 LocalToWorld2D(const Vector2&) const;
  9626. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  9627. void MarkNetworkUpdate() const;
  9628. void Pitch(float, TransformSpace = TS_LOCAL);
  9629. void RegisterVar(const String&);
  9630. void Remove();
  9631. void RemoveAllChildren();
  9632. void RemoveAllComponents();
  9633. void RemoveAllTags();
  9634. void RemoveAttributeAnimation(const String&);
  9635. void RemoveChild(Node);
  9636. void RemoveChildren(bool, bool, bool);
  9637. void RemoveComponent(Component);
  9638. void RemoveComponent(const String&);
  9639. void RemoveComponents(bool, bool);
  9640. void RemoveComponents(const String&);
  9641. void RemoveInstanceDefault();
  9642. void RemoveObjectAnimation();
  9643. bool RemoveTag(const String&);
  9644. void ReorderComponent(Component, uint);
  9645. void ResetToDefault();
  9646. void Roll(float, TransformSpace = TS_LOCAL);
  9647. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  9648. void Rotate2D(float, TransformSpace = TS_LOCAL);
  9649. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  9650. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  9651. bool Save(File) const;
  9652. bool Save(VectorBuffer&) const;
  9653. bool SaveJSON(File, const String& = "\t");
  9654. bool SaveJSON(JSONValue&) const;
  9655. bool SaveJSON(VectorBuffer&, const String& = "\t");
  9656. bool SaveXML(File, const String& = "\t");
  9657. bool SaveXML(VectorBuffer&, const String& = "\t");
  9658. bool SaveXML(XMLElement&) const;
  9659. void Scale(const Vector3&);
  9660. void Scale(float);
  9661. void Scale2D(const Vector2&);
  9662. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9663. void SetAnimationTime(float);
  9664. bool SetAttribute(const String&, const Variant&);
  9665. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9666. void SetAttributeAnimationSpeed(const String&, float);
  9667. void SetAttributeAnimationTime(const String&, float);
  9668. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9669. void SetInterceptNetworkUpdate(const String&, bool);
  9670. void SetPosition2D(float, float);
  9671. void SetScale(float);
  9672. void SetScale2D(float, float);
  9673. void SetTransform(const Matrix3x4&);
  9674. void SetTransform(const Vector3&, const Quaternion&);
  9675. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  9676. void SetTransform(const Vector3&, const Quaternion&, float);
  9677. void SetTransform2D(const Vector2&, float);
  9678. void SetTransform2D(const Vector2&, float, const Vector2&);
  9679. void SetTransform2D(const Vector2&, float, float);
  9680. void SetWorldTransform(const Vector3&, const Quaternion&);
  9681. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  9682. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  9683. void SetWorldTransform2D(const Vector2&, float);
  9684. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  9685. void SetWorldTransform2D(const Vector2&, float, float);
  9686. void StopAsyncLoading();
  9687. const String& GetVarName(StringHash) const;
  9688. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  9689. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  9690. void UnregisterAllVars(const String&);
  9691. void UnregisterVar(const String&);
  9692. void Update(float);
  9693. Vector3 WorldToLocal(const Vector3&) const;
  9694. Vector3 WorldToLocal(const Vector4&) const;
  9695. Vector2 WorldToLocal2D(const Vector2&) const;
  9696. void Yaw(float, TransformSpace = TS_LOCAL);
  9697. // Properties:
  9698. /* readonly */
  9699. Array<Node> allChildrenByName;
  9700. bool animationEnabled;
  9701. /* readonly */
  9702. LoadMode asyncLoadMode;
  9703. /* readonly */
  9704. bool asyncLoading;
  9705. int asyncLoadingMs;
  9706. /* readonly */
  9707. float asyncProgress;
  9708. /* readonly */
  9709. Array<Variant> attributeDefaults;
  9710. /* readonly */
  9711. Array<AttributeInfo> attributeInfos;
  9712. Array<Variant> attributes;
  9713. /* readonly */
  9714. String category;
  9715. /* readonly */
  9716. uint checksum;
  9717. /* readonly */
  9718. Array<Node> children;
  9719. /* readonly */
  9720. Array<Node> childrenByName;
  9721. /* readonly */
  9722. Array<Component> components;
  9723. /* readonly */
  9724. DebugRenderer debugRenderer;
  9725. Vector3 direction;
  9726. float elapsedTime;
  9727. /* readonly */
  9728. String fileName;
  9729. uint id;
  9730. String name;
  9731. /* readonly */
  9732. uint numAllChildren;
  9733. /* readonly */
  9734. uint numAttributes;
  9735. /* readonly */
  9736. uint numChildren;
  9737. /* readonly */
  9738. uint numComponents;
  9739. ObjectAnimation objectAnimation;
  9740. /* readonly */
  9741. Octree octree;
  9742. Node parent;
  9743. /* readonly */
  9744. PhysicsWorld physicsWorld;
  9745. /* readonly */
  9746. PhysicsWorld2D physicsWorld2D;
  9747. Vector3 position;
  9748. Vector2 position2D;
  9749. /* readonly */
  9750. int refs;
  9751. /* readonly */
  9752. Array<PackageFile> requiredPackageFiles;
  9753. /* readonly */
  9754. Vector3 right;
  9755. Quaternion rotation;
  9756. float rotation2D;
  9757. Vector3 scale;
  9758. Vector2 scale2D;
  9759. /* readonly */
  9760. ScriptObject scriptObject;
  9761. /* readonly */
  9762. Vector3 signedWorldScale;
  9763. float smoothingConstant;
  9764. float snapThreshold;
  9765. /* readonly */
  9766. Array<String> tags;
  9767. bool temporary;
  9768. float timeScale;
  9769. /* readonly */
  9770. Matrix3x4 transform;
  9771. /* readonly */
  9772. StringHash type;
  9773. /* readonly */
  9774. String typeName;
  9775. /* readonly */
  9776. Vector3 up;
  9777. bool updateEnabled;
  9778. /* readonly */
  9779. VariantMap vars;
  9780. /* readonly */
  9781. int weakRefs;
  9782. Vector3 worldDirection;
  9783. Vector3 worldPosition;
  9784. Vector2 worldPosition2D;
  9785. /* readonly */
  9786. Vector3 worldRight;
  9787. Quaternion worldRotation;
  9788. float worldRotation2D;
  9789. Vector3 worldScale;
  9790. Vector2 worldScale2D;
  9791. /* readonly */
  9792. Matrix3x4 worldTransform;
  9793. /* readonly */
  9794. Vector3 worldUp;
  9795. };
  9796. class Script
  9797. {
  9798. public:
  9799. // Methods:
  9800. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9801. bool Execute(const String&);
  9802. bool HasSubscribedToEvent(Object, const String&);
  9803. bool HasSubscribedToEvent(const String&);
  9804. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9805. // Properties:
  9806. /* readonly */
  9807. String category;
  9808. Scene defaultScene;
  9809. ScriptFile defaultScriptFile;
  9810. bool executeConsoleCommands;
  9811. /* readonly */
  9812. int refs;
  9813. /* readonly */
  9814. StringHash type;
  9815. /* readonly */
  9816. String typeName;
  9817. /* readonly */
  9818. int weakRefs;
  9819. };
  9820. class ScriptFile
  9821. {
  9822. public:
  9823. ScriptFile();
  9824. ScriptFile(const String&in);
  9825. // Methods:
  9826. void ClearDelayedExecute(const String& = String ( ));
  9827. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9828. bool Execute(const String&, const Array<Variant> = null);
  9829. bool HasSubscribedToEvent(Object, const String&);
  9830. bool HasSubscribedToEvent(const String&);
  9831. bool Load(File);
  9832. bool Load(VectorBuffer&);
  9833. bool Load(const String&);
  9834. bool Save(File) const;
  9835. bool Save(VectorBuffer&) const;
  9836. bool Save(const String&) const;
  9837. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9838. // Properties:
  9839. /* readonly */
  9840. String category;
  9841. /* readonly */
  9842. bool compiled;
  9843. /* readonly */
  9844. uint memoryUse;
  9845. String name;
  9846. /* readonly */
  9847. int refs;
  9848. /* readonly */
  9849. StringHash type;
  9850. /* readonly */
  9851. String typeName;
  9852. /* readonly */
  9853. uint useTimer;
  9854. /* readonly */
  9855. int weakRefs;
  9856. };
  9857. class ScriptInstance
  9858. {
  9859. public:
  9860. // Methods:
  9861. void ApplyAttributes();
  9862. void ClearDelayedExecute(const String& = String ( ));
  9863. bool CreateObject(ScriptFile, const String&);
  9864. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9865. void DrawDebugGeometry(DebugRenderer, bool);
  9866. bool Execute(const String&, const Array<Variant> = null);
  9867. Variant GetAttribute(const String&) const;
  9868. ValueAnimation GetAttributeAnimation(const String&) const;
  9869. float GetAttributeAnimationSpeed(const String&) const;
  9870. float GetAttributeAnimationTime(const String&) const;
  9871. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9872. Variant GetAttributeDefault(const String&) const;
  9873. bool GetInterceptNetworkUpdate(const String&) const;
  9874. bool HasMethod(const String&) const;
  9875. bool HasSubscribedToEvent(Object, const String&);
  9876. bool HasSubscribedToEvent(const String&);
  9877. bool IsA(const String&) const;
  9878. bool Load(File, bool = false);
  9879. bool Load(VectorBuffer&, bool = false);
  9880. bool LoadJSON(const JSONValue&, bool = false);
  9881. bool LoadXML(const XMLElement&, bool = false);
  9882. void MarkNetworkUpdate() const;
  9883. void Remove();
  9884. void RemoveAttributeAnimation(const String&);
  9885. void RemoveInstanceDefault();
  9886. void RemoveObjectAnimation();
  9887. void ResetToDefault();
  9888. bool Save(File) const;
  9889. bool Save(VectorBuffer&) const;
  9890. bool SaveJSON(JSONValue&) const;
  9891. bool SaveXML(XMLElement&) const;
  9892. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9893. void SetAnimationTime(float);
  9894. bool SetAttribute(const String&, const Variant&);
  9895. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9896. void SetAttributeAnimationSpeed(const String&, float);
  9897. void SetAttributeAnimationTime(const String&, float);
  9898. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9899. void SetInterceptNetworkUpdate(const String&, bool);
  9900. // Properties:
  9901. bool animationEnabled;
  9902. /* readonly */
  9903. Array<Variant> attributeDefaults;
  9904. /* readonly */
  9905. Array<AttributeInfo> attributeInfos;
  9906. Array<Variant> attributes;
  9907. /* readonly */
  9908. String category;
  9909. String className;
  9910. bool enabled;
  9911. /* readonly */
  9912. bool enabledEffective;
  9913. /* readonly */
  9914. uint id;
  9915. /* readonly */
  9916. Node node;
  9917. /* readonly */
  9918. uint numAttributes;
  9919. ObjectAnimation objectAnimation;
  9920. /* readonly */
  9921. int refs;
  9922. ScriptFile scriptFile;
  9923. /* readonly */
  9924. ScriptObject scriptObject;
  9925. bool temporary;
  9926. /* readonly */
  9927. StringHash type;
  9928. /* readonly */
  9929. String typeName;
  9930. /* readonly */
  9931. int weakRefs;
  9932. };
  9933. class ScriptObject
  9934. {
  9935. public:
  9936. };
  9937. class ScrollBar
  9938. {
  9939. public:
  9940. ScrollBar();
  9941. ScrollBar(const String&in);
  9942. // Methods:
  9943. void AddChild(UIElement);
  9944. void AddTag(const String&);
  9945. void AddTags(const String&, int8 = ';');
  9946. void ApplyAttributes();
  9947. void BringToFront();
  9948. void ChangeValue(float);
  9949. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9950. void DisableLayoutUpdate();
  9951. IntVector2 ElementToScreen(const IntVector2&);
  9952. void EnableLayoutUpdate();
  9953. uint FindChild(UIElement) const;
  9954. Variant GetAttribute(const String&) const;
  9955. ValueAnimation GetAttributeAnimation(const String&) const;
  9956. float GetAttributeAnimationSpeed(const String&) const;
  9957. float GetAttributeAnimationTime(const String&) const;
  9958. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9959. Variant GetAttributeDefault(const String&) const;
  9960. UIElement GetChild(const String&, bool = false) const;
  9961. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9962. Array<UIElement> GetChildren(bool = false) const;
  9963. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9964. UIElement GetElementEventSender() const;
  9965. bool GetInterceptNetworkUpdate(const String&) const;
  9966. uint GetNumChildren(bool) const;
  9967. bool HasSubscribedToEvent(Object, const String&);
  9968. bool HasSubscribedToEvent(const String&);
  9969. bool HasTag(const String&) const;
  9970. void InsertChild(uint, UIElement);
  9971. bool IsInside(IntVector2, bool);
  9972. bool IsInsideCombined(IntVector2, bool);
  9973. bool Load(File, bool = false);
  9974. bool Load(VectorBuffer&, bool = false);
  9975. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9976. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9977. bool LoadJSON(const JSONValue&, bool = false);
  9978. bool LoadXML(File);
  9979. bool LoadXML(VectorBuffer&);
  9980. bool LoadXML(XMLFile, XMLFile);
  9981. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9982. bool LoadXML(const XMLElement&, bool = false);
  9983. void MarkNetworkUpdate() const;
  9984. void Remove();
  9985. void RemoveAllChildren();
  9986. void RemoveAllTags();
  9987. void RemoveAttributeAnimation(const String&);
  9988. void RemoveChild(UIElement, uint = 0);
  9989. void RemoveChild(uint);
  9990. void RemoveInstanceDefault();
  9991. void RemoveObjectAnimation();
  9992. bool RemoveTag(const String&);
  9993. void ResetDeepEnabled();
  9994. void ResetToDefault();
  9995. bool Save(File) const;
  9996. bool Save(VectorBuffer&) const;
  9997. bool SaveJSON(JSONValue&) const;
  9998. bool SaveXML(File, const String& = "\t");
  9999. bool SaveXML(VectorBuffer&, const String& = "\t");
  10000. bool SaveXML(XMLElement&) const;
  10001. IntVector2 ScreenToElement(const IntVector2&);
  10002. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10003. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10004. void SetAnimationTime(float);
  10005. bool SetAttribute(const String&, const Variant&);
  10006. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10007. void SetAttributeAnimationSpeed(const String&, float);
  10008. void SetAttributeAnimationTime(const String&, float);
  10009. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10010. void SetDeepEnabled(bool);
  10011. void SetEnabledRecursive(bool);
  10012. void SetFixedHeight(int);
  10013. void SetFixedSize(int, int);
  10014. void SetFixedWidth(int);
  10015. void SetInterceptNetworkUpdate(const String&, bool);
  10016. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10017. void SetMaxAnchor(float, float);
  10018. void SetMaxSize(int, int);
  10019. void SetMinAnchor(float, float);
  10020. void SetMinSize(int, int);
  10021. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10022. void SetPivot(float, float);
  10023. void SetPosition(int, int);
  10024. void SetSize(int, int);
  10025. bool SetStyle(const String&, XMLFile = null);
  10026. bool SetStyle(const XMLElement&);
  10027. bool SetStyleAuto(XMLFile = null);
  10028. void StepBack();
  10029. void StepForward();
  10030. void UpdateLayout();
  10031. const Variant& GetVar(const StringHash&);
  10032. // Properties:
  10033. bool animationEnabled;
  10034. /* readonly */
  10035. Array<Variant> attributeDefaults;
  10036. /* readonly */
  10037. Array<AttributeInfo> attributeInfos;
  10038. Array<Variant> attributes;
  10039. /* readonly */
  10040. Button backButton;
  10041. bool bringToBack;
  10042. bool bringToFront;
  10043. /* readonly */
  10044. String category;
  10045. /* readonly */
  10046. IntVector2 childOffset;
  10047. /* readonly */
  10048. Array<UIElement> children;
  10049. IntRect clipBorder;
  10050. bool clipChildren;
  10051. /* writeonly */
  10052. Color color;
  10053. /* readonly */
  10054. bool colorGradient;
  10055. Array<Color> colors;
  10056. /* readonly */
  10057. IntRect combinedScreenRect;
  10058. XMLFile defaultStyle;
  10059. /* readonly */
  10060. float derivedOpacity;
  10061. /* readonly */
  10062. uint dragButtonCombo;
  10063. /* readonly */
  10064. int dragButtonCount;
  10065. uint dragDropMode;
  10066. bool editable;
  10067. /* readonly */
  10068. float effectiveScrollStep;
  10069. bool elementEventSender;
  10070. bool enableAnchor;
  10071. bool enabled;
  10072. /* readonly */
  10073. bool enabledSelf;
  10074. /* readonly */
  10075. bool fixedHeight;
  10076. /* readonly */
  10077. bool fixedSize;
  10078. /* readonly */
  10079. bool fixedWidth;
  10080. bool focus;
  10081. FocusMode focusMode;
  10082. /* readonly */
  10083. Button forwardButton;
  10084. int height;
  10085. HorizontalAlignment horizontalAlignment;
  10086. /* readonly */
  10087. bool hovering;
  10088. int indent;
  10089. int indentSpacing;
  10090. /* readonly */
  10091. int indentWidth;
  10092. bool internal;
  10093. IntRect layoutBorder;
  10094. Vector2 layoutFlexScale;
  10095. LayoutMode layoutMode;
  10096. int layoutSpacing;
  10097. Vector2 maxAnchor;
  10098. int maxHeight;
  10099. IntVector2 maxOffset;
  10100. IntVector2 maxSize;
  10101. int maxWidth;
  10102. Vector2 minAnchor;
  10103. int minHeight;
  10104. IntVector2 minOffset;
  10105. IntVector2 minSize;
  10106. int minWidth;
  10107. String name;
  10108. /* readonly */
  10109. uint numAllChildren;
  10110. /* readonly */
  10111. uint numAttributes;
  10112. /* readonly */
  10113. uint numChildren;
  10114. ObjectAnimation objectAnimation;
  10115. float opacity;
  10116. Orientation orientation;
  10117. UIElement parent;
  10118. Vector2 pivot;
  10119. IntVector2 position;
  10120. int priority;
  10121. float range;
  10122. /* readonly */
  10123. int refs;
  10124. /* readonly */
  10125. UIElement root;
  10126. /* readonly */
  10127. IntVector2 screenPosition;
  10128. float scrollStep;
  10129. bool selected;
  10130. IntVector2 size;
  10131. /* readonly */
  10132. Slider slider;
  10133. bool sortChildren;
  10134. float stepFactor;
  10135. String style;
  10136. /* readonly */
  10137. Array<String> tags;
  10138. bool temporary;
  10139. TraversalMode traversalMode;
  10140. /* readonly */
  10141. StringHash type;
  10142. /* readonly */
  10143. String typeName;
  10144. bool useDerivedOpacity;
  10145. float value;
  10146. /* readonly */
  10147. VariantMap vars;
  10148. VerticalAlignment verticalAlignment;
  10149. bool visible;
  10150. /* readonly */
  10151. bool visibleEffective;
  10152. /* readonly */
  10153. int weakRefs;
  10154. int width;
  10155. };
  10156. class ScrollView
  10157. {
  10158. public:
  10159. ScrollView();
  10160. ScrollView(const String&in);
  10161. // Methods:
  10162. void AddChild(UIElement);
  10163. void AddTag(const String&);
  10164. void AddTags(const String&, int8 = ';');
  10165. void ApplyAttributes();
  10166. void BringToFront();
  10167. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10168. void DisableLayoutUpdate();
  10169. IntVector2 ElementToScreen(const IntVector2&);
  10170. void EnableLayoutUpdate();
  10171. uint FindChild(UIElement) const;
  10172. Variant GetAttribute(const String&) const;
  10173. ValueAnimation GetAttributeAnimation(const String&) const;
  10174. float GetAttributeAnimationSpeed(const String&) const;
  10175. float GetAttributeAnimationTime(const String&) const;
  10176. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10177. Variant GetAttributeDefault(const String&) const;
  10178. UIElement GetChild(const String&, bool = false) const;
  10179. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10180. Array<UIElement> GetChildren(bool = false) const;
  10181. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10182. UIElement GetElementEventSender() const;
  10183. bool GetInterceptNetworkUpdate(const String&) const;
  10184. uint GetNumChildren(bool) const;
  10185. bool HasSubscribedToEvent(Object, const String&);
  10186. bool HasSubscribedToEvent(const String&);
  10187. bool HasTag(const String&) const;
  10188. void InsertChild(uint, UIElement);
  10189. bool IsInside(IntVector2, bool);
  10190. bool IsInsideCombined(IntVector2, bool);
  10191. bool Load(File, bool = false);
  10192. bool Load(VectorBuffer&, bool = false);
  10193. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10194. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10195. bool LoadJSON(const JSONValue&, bool = false);
  10196. bool LoadXML(File);
  10197. bool LoadXML(VectorBuffer&);
  10198. bool LoadXML(XMLFile, XMLFile);
  10199. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10200. bool LoadXML(const XMLElement&, bool = false);
  10201. void MarkNetworkUpdate() const;
  10202. void Remove();
  10203. void RemoveAllChildren();
  10204. void RemoveAllTags();
  10205. void RemoveAttributeAnimation(const String&);
  10206. void RemoveChild(UIElement, uint = 0);
  10207. void RemoveChild(uint);
  10208. void RemoveInstanceDefault();
  10209. void RemoveObjectAnimation();
  10210. bool RemoveTag(const String&);
  10211. void ResetDeepEnabled();
  10212. void ResetToDefault();
  10213. bool Save(File) const;
  10214. bool Save(VectorBuffer&) const;
  10215. bool SaveJSON(JSONValue&) const;
  10216. bool SaveXML(File, const String& = "\t");
  10217. bool SaveXML(VectorBuffer&, const String& = "\t");
  10218. bool SaveXML(XMLElement&) const;
  10219. IntVector2 ScreenToElement(const IntVector2&);
  10220. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10221. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10222. void SetAnimationTime(float);
  10223. bool SetAttribute(const String&, const Variant&);
  10224. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10225. void SetAttributeAnimationSpeed(const String&, float);
  10226. void SetAttributeAnimationTime(const String&, float);
  10227. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10228. void SetDeepEnabled(bool);
  10229. void SetEnabledRecursive(bool);
  10230. void SetFixedHeight(int);
  10231. void SetFixedSize(int, int);
  10232. void SetFixedWidth(int);
  10233. void SetInterceptNetworkUpdate(const String&, bool);
  10234. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10235. void SetMaxAnchor(float, float);
  10236. void SetMaxSize(int, int);
  10237. void SetMinAnchor(float, float);
  10238. void SetMinSize(int, int);
  10239. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10240. void SetPivot(float, float);
  10241. void SetPosition(int, int);
  10242. void SetScrollBarsVisible(bool, bool);
  10243. void SetSize(int, int);
  10244. bool SetStyle(const String&, XMLFile = null);
  10245. bool SetStyle(const XMLElement&);
  10246. bool SetStyleAuto(XMLFile = null);
  10247. void SetViewPosition(int, int);
  10248. void UpdateLayout();
  10249. const Variant& GetVar(const StringHash&);
  10250. // Properties:
  10251. bool animationEnabled;
  10252. /* readonly */
  10253. Array<Variant> attributeDefaults;
  10254. /* readonly */
  10255. Array<AttributeInfo> attributeInfos;
  10256. Array<Variant> attributes;
  10257. bool autoDisableChildren;
  10258. float autoDisableThreshold;
  10259. bool bringToBack;
  10260. bool bringToFront;
  10261. /* readonly */
  10262. String category;
  10263. /* readonly */
  10264. IntVector2 childOffset;
  10265. /* readonly */
  10266. Array<UIElement> children;
  10267. IntRect clipBorder;
  10268. bool clipChildren;
  10269. /* writeonly */
  10270. Color color;
  10271. /* readonly */
  10272. bool colorGradient;
  10273. Array<Color> colors;
  10274. /* readonly */
  10275. IntRect combinedScreenRect;
  10276. UIElement contentElement;
  10277. XMLFile defaultStyle;
  10278. /* readonly */
  10279. float derivedOpacity;
  10280. /* readonly */
  10281. uint dragButtonCombo;
  10282. /* readonly */
  10283. int dragButtonCount;
  10284. uint dragDropMode;
  10285. bool editable;
  10286. bool elementEventSender;
  10287. bool enableAnchor;
  10288. bool enabled;
  10289. /* readonly */
  10290. bool enabledSelf;
  10291. /* readonly */
  10292. bool fixedHeight;
  10293. /* readonly */
  10294. bool fixedSize;
  10295. /* readonly */
  10296. bool fixedWidth;
  10297. bool focus;
  10298. FocusMode focusMode;
  10299. int height;
  10300. HorizontalAlignment horizontalAlignment;
  10301. /* readonly */
  10302. ScrollBar horizontalScrollBar;
  10303. /* readonly */
  10304. bool hovering;
  10305. int indent;
  10306. int indentSpacing;
  10307. /* readonly */
  10308. int indentWidth;
  10309. bool internal;
  10310. IntRect layoutBorder;
  10311. Vector2 layoutFlexScale;
  10312. LayoutMode layoutMode;
  10313. int layoutSpacing;
  10314. Vector2 maxAnchor;
  10315. int maxHeight;
  10316. IntVector2 maxOffset;
  10317. IntVector2 maxSize;
  10318. int maxWidth;
  10319. Vector2 minAnchor;
  10320. int minHeight;
  10321. IntVector2 minOffset;
  10322. IntVector2 minSize;
  10323. int minWidth;
  10324. String name;
  10325. /* readonly */
  10326. uint numAllChildren;
  10327. /* readonly */
  10328. uint numAttributes;
  10329. /* readonly */
  10330. uint numChildren;
  10331. ObjectAnimation objectAnimation;
  10332. float opacity;
  10333. float pageStep;
  10334. UIElement parent;
  10335. Vector2 pivot;
  10336. IntVector2 position;
  10337. int priority;
  10338. /* readonly */
  10339. int refs;
  10340. /* readonly */
  10341. UIElement root;
  10342. /* readonly */
  10343. IntVector2 screenPosition;
  10344. bool scrollBarsAutoVisible;
  10345. float scrollDeceleration;
  10346. /* readonly */
  10347. BorderImage scrollPanel;
  10348. float scrollSnapEpsilon;
  10349. float scrollStep;
  10350. bool selected;
  10351. IntVector2 size;
  10352. bool sortChildren;
  10353. String style;
  10354. /* readonly */
  10355. Array<String> tags;
  10356. bool temporary;
  10357. TraversalMode traversalMode;
  10358. /* readonly */
  10359. StringHash type;
  10360. /* readonly */
  10361. String typeName;
  10362. bool useDerivedOpacity;
  10363. /* readonly */
  10364. VariantMap vars;
  10365. VerticalAlignment verticalAlignment;
  10366. /* readonly */
  10367. ScrollBar verticalScrollBar;
  10368. IntVector2 viewPosition;
  10369. bool visible;
  10370. /* readonly */
  10371. bool visibleEffective;
  10372. /* readonly */
  10373. int weakRefs;
  10374. int width;
  10375. };
  10376. class Serializable
  10377. {
  10378. public:
  10379. // Methods:
  10380. void ApplyAttributes();
  10381. Variant GetAttribute(const String&) const;
  10382. Variant GetAttributeDefault(const String&) const;
  10383. bool GetInterceptNetworkUpdate(const String&) const;
  10384. bool HasSubscribedToEvent(Object, const String&);
  10385. bool HasSubscribedToEvent(const String&);
  10386. bool Load(File, bool = false);
  10387. bool Load(VectorBuffer&, bool = false);
  10388. bool LoadJSON(const JSONValue&, bool = false);
  10389. bool LoadXML(const XMLElement&, bool = false);
  10390. void MarkNetworkUpdate() const;
  10391. void RemoveInstanceDefault();
  10392. void ResetToDefault();
  10393. bool Save(File) const;
  10394. bool Save(VectorBuffer&) const;
  10395. bool SaveJSON(JSONValue&) const;
  10396. bool SaveXML(XMLElement&) const;
  10397. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10398. bool SetAttribute(const String&, const Variant&);
  10399. void SetInterceptNetworkUpdate(const String&, bool);
  10400. // Properties:
  10401. /* readonly */
  10402. Array<Variant> attributeDefaults;
  10403. /* readonly */
  10404. Array<AttributeInfo> attributeInfos;
  10405. Array<Variant> attributes;
  10406. /* readonly */
  10407. String category;
  10408. /* readonly */
  10409. uint numAttributes;
  10410. /* readonly */
  10411. int refs;
  10412. bool temporary;
  10413. /* readonly */
  10414. StringHash type;
  10415. /* readonly */
  10416. String typeName;
  10417. /* readonly */
  10418. int weakRefs;
  10419. };
  10420. class Serializer
  10421. {
  10422. public:
  10423. // Methods:
  10424. uint Write(Array<uint8>);
  10425. bool WriteBool(bool);
  10426. bool WriteBoundingBox(const BoundingBox&);
  10427. bool WriteByte(int8);
  10428. bool WriteColor(const Color&);
  10429. bool WriteDouble(double);
  10430. bool WriteFileID(const String&);
  10431. bool WriteFloat(float);
  10432. bool WriteInt(int);
  10433. bool WriteInt64(int64);
  10434. bool WriteIntRect(const IntRect&);
  10435. bool WriteIntVector2(const IntVector2&);
  10436. bool WriteLine(const String&);
  10437. bool WriteMatrix3(const Matrix3&);
  10438. bool WriteMatrix3x4(const Matrix3x4&);
  10439. bool WriteMatrix4(const Matrix4&);
  10440. bool WriteNetID(uint);
  10441. bool WritePackedQuaternion(const Quaternion&);
  10442. bool WritePackedVector3(const Vector3&, float);
  10443. bool WriteQuaternion(const Quaternion&);
  10444. bool WriteShort(int16);
  10445. bool WriteString(const String&);
  10446. bool WriteStringHash(const StringHash&);
  10447. bool WriteUByte(uint8);
  10448. bool WriteUInt(uint);
  10449. bool WriteUInt64(uint64);
  10450. bool WriteUShort(uint16);
  10451. bool WriteVLE(uint);
  10452. bool WriteVariant(const Variant&);
  10453. bool WriteVariantMap(const VariantMap&);
  10454. bool WriteVector2(const Vector2&);
  10455. bool WriteVector3(const Vector3&);
  10456. bool WriteVector4(const Vector4&);
  10457. bool WriteVectorBuffer(const VectorBuffer&);
  10458. };
  10459. class Skeleton
  10460. {
  10461. public:
  10462. // Methods:
  10463. Bone GetBone(const String&) const;
  10464. void Reset();
  10465. // Properties:
  10466. /* readonly */
  10467. Array<Bone> bones;
  10468. /* readonly */
  10469. uint numBones;
  10470. /* readonly */
  10471. Bone rootBone;
  10472. };
  10473. class Skybox
  10474. {
  10475. public:
  10476. // Methods:
  10477. void ApplyAttributes();
  10478. void ApplyMaterialList(const String& = String ( ));
  10479. void DrawDebugGeometry(DebugRenderer, bool);
  10480. Variant GetAttribute(const String&) const;
  10481. ValueAnimation GetAttributeAnimation(const String&) const;
  10482. float GetAttributeAnimationSpeed(const String&) const;
  10483. float GetAttributeAnimationTime(const String&) const;
  10484. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10485. Variant GetAttributeDefault(const String&) const;
  10486. bool GetInterceptNetworkUpdate(const String&) const;
  10487. bool HasSubscribedToEvent(Object, const String&);
  10488. bool HasSubscribedToEvent(const String&);
  10489. bool IsInView(Camera) const;
  10490. bool Load(File, bool = false);
  10491. bool Load(VectorBuffer&, bool = false);
  10492. bool LoadJSON(const JSONValue&, bool = false);
  10493. bool LoadXML(const XMLElement&, bool = false);
  10494. void MarkNetworkUpdate() const;
  10495. void Remove();
  10496. void RemoveAttributeAnimation(const String&);
  10497. void RemoveInstanceDefault();
  10498. void RemoveObjectAnimation();
  10499. void ResetToDefault();
  10500. bool Save(File) const;
  10501. bool Save(VectorBuffer&) const;
  10502. bool SaveJSON(JSONValue&) const;
  10503. bool SaveXML(XMLElement&) const;
  10504. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10505. void SetAnimationTime(float);
  10506. bool SetAttribute(const String&, const Variant&);
  10507. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10508. void SetAttributeAnimationSpeed(const String&, float);
  10509. void SetAttributeAnimationTime(const String&, float);
  10510. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10511. void SetInterceptNetworkUpdate(const String&, bool);
  10512. // Properties:
  10513. bool animationEnabled;
  10514. /* readonly */
  10515. Array<Variant> attributeDefaults;
  10516. /* readonly */
  10517. Array<AttributeInfo> attributeInfos;
  10518. Array<Variant> attributes;
  10519. /* readonly */
  10520. BoundingBox boundingBox;
  10521. bool castShadows;
  10522. /* readonly */
  10523. String category;
  10524. float drawDistance;
  10525. bool enabled;
  10526. /* readonly */
  10527. bool enabledEffective;
  10528. /* readonly */
  10529. uint id;
  10530. /* readonly */
  10531. bool inView;
  10532. uint lightMask;
  10533. float lodBias;
  10534. /* writeonly */
  10535. Material material;
  10536. Array<Material> materials;
  10537. uint maxLights;
  10538. Model model;
  10539. /* readonly */
  10540. Node node;
  10541. /* readonly */
  10542. uint numAttributes;
  10543. /* readonly */
  10544. uint numGeometries;
  10545. ObjectAnimation objectAnimation;
  10546. bool occludee;
  10547. bool occluder;
  10548. /* readonly */
  10549. int refs;
  10550. float shadowDistance;
  10551. uint shadowMask;
  10552. bool temporary;
  10553. /* readonly */
  10554. StringHash type;
  10555. /* readonly */
  10556. String typeName;
  10557. uint viewMask;
  10558. /* readonly */
  10559. int weakRefs;
  10560. /* readonly */
  10561. BoundingBox worldBoundingBox;
  10562. /* readonly */
  10563. Zone zone;
  10564. uint zoneMask;
  10565. };
  10566. class Slider
  10567. {
  10568. public:
  10569. Slider();
  10570. Slider(const String&in);
  10571. // Methods:
  10572. void AddChild(UIElement);
  10573. void AddTag(const String&);
  10574. void AddTags(const String&, int8 = ';');
  10575. void ApplyAttributes();
  10576. void BringToFront();
  10577. void ChangeValue(float);
  10578. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10579. void DisableLayoutUpdate();
  10580. IntVector2 ElementToScreen(const IntVector2&);
  10581. void EnableLayoutUpdate();
  10582. uint FindChild(UIElement) const;
  10583. Variant GetAttribute(const String&) const;
  10584. ValueAnimation GetAttributeAnimation(const String&) const;
  10585. float GetAttributeAnimationSpeed(const String&) const;
  10586. float GetAttributeAnimationTime(const String&) const;
  10587. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10588. Variant GetAttributeDefault(const String&) const;
  10589. UIElement GetChild(const String&, bool = false) const;
  10590. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10591. Array<UIElement> GetChildren(bool = false) const;
  10592. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10593. UIElement GetElementEventSender() const;
  10594. bool GetInterceptNetworkUpdate(const String&) const;
  10595. uint GetNumChildren(bool) const;
  10596. bool HasSubscribedToEvent(Object, const String&);
  10597. bool HasSubscribedToEvent(const String&);
  10598. bool HasTag(const String&) const;
  10599. void InsertChild(uint, UIElement);
  10600. bool IsInside(IntVector2, bool);
  10601. bool IsInsideCombined(IntVector2, bool);
  10602. bool Load(File, bool = false);
  10603. bool Load(VectorBuffer&, bool = false);
  10604. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10605. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10606. bool LoadJSON(const JSONValue&, bool = false);
  10607. bool LoadXML(File);
  10608. bool LoadXML(VectorBuffer&);
  10609. bool LoadXML(XMLFile, XMLFile);
  10610. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10611. bool LoadXML(const XMLElement&, bool = false);
  10612. void MarkNetworkUpdate() const;
  10613. void Remove();
  10614. void RemoveAllChildren();
  10615. void RemoveAllTags();
  10616. void RemoveAttributeAnimation(const String&);
  10617. void RemoveChild(UIElement, uint = 0);
  10618. void RemoveChild(uint);
  10619. void RemoveInstanceDefault();
  10620. void RemoveObjectAnimation();
  10621. bool RemoveTag(const String&);
  10622. void ResetDeepEnabled();
  10623. void ResetToDefault();
  10624. bool Save(File) const;
  10625. bool Save(VectorBuffer&) const;
  10626. bool SaveJSON(JSONValue&) const;
  10627. bool SaveXML(File, const String& = "\t");
  10628. bool SaveXML(VectorBuffer&, const String& = "\t");
  10629. bool SaveXML(XMLElement&) const;
  10630. IntVector2 ScreenToElement(const IntVector2&);
  10631. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10632. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10633. void SetAnimationTime(float);
  10634. bool SetAttribute(const String&, const Variant&);
  10635. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10636. void SetAttributeAnimationSpeed(const String&, float);
  10637. void SetAttributeAnimationTime(const String&, float);
  10638. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10639. void SetDeepEnabled(bool);
  10640. void SetEnabledRecursive(bool);
  10641. void SetFixedHeight(int);
  10642. void SetFixedSize(int, int);
  10643. void SetFixedWidth(int);
  10644. void SetFullImageRect();
  10645. void SetHoverOffset(int, int);
  10646. void SetInterceptNetworkUpdate(const String&, bool);
  10647. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10648. void SetMaxAnchor(float, float);
  10649. void SetMaxSize(int, int);
  10650. void SetMinAnchor(float, float);
  10651. void SetMinSize(int, int);
  10652. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10653. void SetPivot(float, float);
  10654. void SetPosition(int, int);
  10655. void SetSize(int, int);
  10656. bool SetStyle(const String&, XMLFile = null);
  10657. bool SetStyle(const XMLElement&);
  10658. bool SetStyleAuto(XMLFile = null);
  10659. void UpdateLayout();
  10660. const Variant& GetVar(const StringHash&);
  10661. // Properties:
  10662. bool animationEnabled;
  10663. /* readonly */
  10664. Array<Variant> attributeDefaults;
  10665. /* readonly */
  10666. Array<AttributeInfo> attributeInfos;
  10667. Array<Variant> attributes;
  10668. BlendMode blendMode;
  10669. IntRect border;
  10670. bool bringToBack;
  10671. bool bringToFront;
  10672. /* readonly */
  10673. String category;
  10674. /* readonly */
  10675. IntVector2 childOffset;
  10676. /* readonly */
  10677. Array<UIElement> children;
  10678. IntRect clipBorder;
  10679. bool clipChildren;
  10680. /* writeonly */
  10681. Color color;
  10682. /* readonly */
  10683. bool colorGradient;
  10684. Array<Color> colors;
  10685. /* readonly */
  10686. IntRect combinedScreenRect;
  10687. XMLFile defaultStyle;
  10688. /* readonly */
  10689. float derivedOpacity;
  10690. /* readonly */
  10691. uint dragButtonCombo;
  10692. /* readonly */
  10693. int dragButtonCount;
  10694. uint dragDropMode;
  10695. bool editable;
  10696. bool elementEventSender;
  10697. bool enableAnchor;
  10698. bool enabled;
  10699. /* readonly */
  10700. bool enabledSelf;
  10701. /* readonly */
  10702. bool fixedHeight;
  10703. /* readonly */
  10704. bool fixedSize;
  10705. /* readonly */
  10706. bool fixedWidth;
  10707. bool focus;
  10708. FocusMode focusMode;
  10709. int height;
  10710. HorizontalAlignment horizontalAlignment;
  10711. IntVector2 hoverOffset;
  10712. /* readonly */
  10713. bool hovering;
  10714. IntRect imageBorder;
  10715. IntRect imageRect;
  10716. int indent;
  10717. int indentSpacing;
  10718. /* readonly */
  10719. int indentWidth;
  10720. bool internal;
  10721. /* readonly */
  10722. BorderImage knob;
  10723. IntRect layoutBorder;
  10724. Vector2 layoutFlexScale;
  10725. LayoutMode layoutMode;
  10726. int layoutSpacing;
  10727. Vector2 maxAnchor;
  10728. int maxHeight;
  10729. IntVector2 maxOffset;
  10730. IntVector2 maxSize;
  10731. int maxWidth;
  10732. Vector2 minAnchor;
  10733. int minHeight;
  10734. IntVector2 minOffset;
  10735. IntVector2 minSize;
  10736. int minWidth;
  10737. String name;
  10738. /* readonly */
  10739. uint numAllChildren;
  10740. /* readonly */
  10741. uint numAttributes;
  10742. /* readonly */
  10743. uint numChildren;
  10744. ObjectAnimation objectAnimation;
  10745. float opacity;
  10746. Orientation orientation;
  10747. UIElement parent;
  10748. Vector2 pivot;
  10749. IntVector2 position;
  10750. int priority;
  10751. float range;
  10752. /* readonly */
  10753. int refs;
  10754. float repeatRate;
  10755. /* readonly */
  10756. UIElement root;
  10757. /* readonly */
  10758. IntVector2 screenPosition;
  10759. bool selected;
  10760. IntVector2 size;
  10761. bool sortChildren;
  10762. String style;
  10763. /* readonly */
  10764. Array<String> tags;
  10765. bool temporary;
  10766. Texture texture;
  10767. bool tiled;
  10768. TraversalMode traversalMode;
  10769. /* readonly */
  10770. StringHash type;
  10771. /* readonly */
  10772. String typeName;
  10773. bool useDerivedOpacity;
  10774. float value;
  10775. /* readonly */
  10776. VariantMap vars;
  10777. VerticalAlignment verticalAlignment;
  10778. bool visible;
  10779. /* readonly */
  10780. bool visibleEffective;
  10781. /* readonly */
  10782. int weakRefs;
  10783. int width;
  10784. };
  10785. class SmoothedTransform
  10786. {
  10787. public:
  10788. // Methods:
  10789. void ApplyAttributes();
  10790. void DrawDebugGeometry(DebugRenderer, bool);
  10791. Variant GetAttribute(const String&) const;
  10792. ValueAnimation GetAttributeAnimation(const String&) const;
  10793. float GetAttributeAnimationSpeed(const String&) const;
  10794. float GetAttributeAnimationTime(const String&) const;
  10795. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10796. Variant GetAttributeDefault(const String&) const;
  10797. bool GetInterceptNetworkUpdate(const String&) const;
  10798. bool HasSubscribedToEvent(Object, const String&);
  10799. bool HasSubscribedToEvent(const String&);
  10800. bool Load(File, bool = false);
  10801. bool Load(VectorBuffer&, bool = false);
  10802. bool LoadJSON(const JSONValue&, bool = false);
  10803. bool LoadXML(const XMLElement&, bool = false);
  10804. void MarkNetworkUpdate() const;
  10805. void Remove();
  10806. void RemoveAttributeAnimation(const String&);
  10807. void RemoveInstanceDefault();
  10808. void RemoveObjectAnimation();
  10809. void ResetToDefault();
  10810. bool Save(File) const;
  10811. bool Save(VectorBuffer&) const;
  10812. bool SaveJSON(JSONValue&) const;
  10813. bool SaveXML(XMLElement&) const;
  10814. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10815. void SetAnimationTime(float);
  10816. bool SetAttribute(const String&, const Variant&);
  10817. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10818. void SetAttributeAnimationSpeed(const String&, float);
  10819. void SetAttributeAnimationTime(const String&, float);
  10820. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10821. void SetInterceptNetworkUpdate(const String&, bool);
  10822. void Update(float, float);
  10823. // Properties:
  10824. bool animationEnabled;
  10825. /* readonly */
  10826. Array<Variant> attributeDefaults;
  10827. /* readonly */
  10828. Array<AttributeInfo> attributeInfos;
  10829. Array<Variant> attributes;
  10830. /* readonly */
  10831. String category;
  10832. bool enabled;
  10833. /* readonly */
  10834. bool enabledEffective;
  10835. /* readonly */
  10836. uint id;
  10837. /* readonly */
  10838. bool inProgress;
  10839. /* readonly */
  10840. Node node;
  10841. /* readonly */
  10842. uint numAttributes;
  10843. ObjectAnimation objectAnimation;
  10844. /* readonly */
  10845. int refs;
  10846. Vector3 targetPosition;
  10847. Quaternion targetRotation;
  10848. Vector3 targetWorldPosition;
  10849. Quaternion targetWorldRotation;
  10850. bool temporary;
  10851. /* readonly */
  10852. StringHash type;
  10853. /* readonly */
  10854. String typeName;
  10855. /* readonly */
  10856. int weakRefs;
  10857. };
  10858. class Sound
  10859. {
  10860. public:
  10861. Sound();
  10862. Sound(const String&in);
  10863. // Methods:
  10864. void AddMetadata(const String&, const Variant&);
  10865. bool HasSubscribedToEvent(Object, const String&);
  10866. bool HasSubscribedToEvent(const String&);
  10867. bool Load(File);
  10868. bool Load(VectorBuffer&);
  10869. bool Load(const String&);
  10870. void RemoveAllMetadata();
  10871. void RemoveMetadata(const String&);
  10872. bool Save(File) const;
  10873. bool Save(VectorBuffer&) const;
  10874. bool Save(const String&) const;
  10875. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10876. // Properties:
  10877. /* readonly */
  10878. String category;
  10879. /* readonly */
  10880. bool compressed;
  10881. /* readonly */
  10882. float frequency;
  10883. /* readonly */
  10884. bool hasMetadata;
  10885. /* readonly */
  10886. float length;
  10887. bool looped;
  10888. /* readonly */
  10889. uint memoryUse;
  10890. Array<Variant> metadata;
  10891. String name;
  10892. /* readonly */
  10893. int refs;
  10894. /* readonly */
  10895. uint sampleSize;
  10896. /* readonly */
  10897. bool sixteenBit;
  10898. /* readonly */
  10899. bool stereo;
  10900. /* readonly */
  10901. StringHash type;
  10902. /* readonly */
  10903. String typeName;
  10904. /* readonly */
  10905. uint useTimer;
  10906. /* readonly */
  10907. int weakRefs;
  10908. };
  10909. class SoundListener
  10910. {
  10911. public:
  10912. // Methods:
  10913. void ApplyAttributes();
  10914. void DrawDebugGeometry(DebugRenderer, bool);
  10915. Variant GetAttribute(const String&) const;
  10916. ValueAnimation GetAttributeAnimation(const String&) const;
  10917. float GetAttributeAnimationSpeed(const String&) const;
  10918. float GetAttributeAnimationTime(const String&) const;
  10919. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10920. Variant GetAttributeDefault(const String&) const;
  10921. bool GetInterceptNetworkUpdate(const String&) const;
  10922. bool HasSubscribedToEvent(Object, const String&);
  10923. bool HasSubscribedToEvent(const String&);
  10924. bool Load(File, bool = false);
  10925. bool Load(VectorBuffer&, bool = false);
  10926. bool LoadJSON(const JSONValue&, bool = false);
  10927. bool LoadXML(const XMLElement&, bool = false);
  10928. void MarkNetworkUpdate() const;
  10929. void Remove();
  10930. void RemoveAttributeAnimation(const String&);
  10931. void RemoveInstanceDefault();
  10932. void RemoveObjectAnimation();
  10933. void ResetToDefault();
  10934. bool Save(File) const;
  10935. bool Save(VectorBuffer&) const;
  10936. bool SaveJSON(JSONValue&) const;
  10937. bool SaveXML(XMLElement&) const;
  10938. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10939. void SetAnimationTime(float);
  10940. bool SetAttribute(const String&, const Variant&);
  10941. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10942. void SetAttributeAnimationSpeed(const String&, float);
  10943. void SetAttributeAnimationTime(const String&, float);
  10944. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10945. void SetInterceptNetworkUpdate(const String&, bool);
  10946. // Properties:
  10947. bool animationEnabled;
  10948. /* readonly */
  10949. Array<Variant> attributeDefaults;
  10950. /* readonly */
  10951. Array<AttributeInfo> attributeInfos;
  10952. Array<Variant> attributes;
  10953. /* readonly */
  10954. String category;
  10955. bool enabled;
  10956. /* readonly */
  10957. bool enabledEffective;
  10958. /* readonly */
  10959. uint id;
  10960. /* readonly */
  10961. Node node;
  10962. /* readonly */
  10963. uint numAttributes;
  10964. ObjectAnimation objectAnimation;
  10965. /* readonly */
  10966. int refs;
  10967. bool temporary;
  10968. /* readonly */
  10969. StringHash type;
  10970. /* readonly */
  10971. String typeName;
  10972. /* readonly */
  10973. int weakRefs;
  10974. };
  10975. class SoundSource
  10976. {
  10977. public:
  10978. SoundSource();
  10979. // Methods:
  10980. void ApplyAttributes();
  10981. void DrawDebugGeometry(DebugRenderer, bool);
  10982. Variant GetAttribute(const String&) const;
  10983. ValueAnimation GetAttributeAnimation(const String&) const;
  10984. float GetAttributeAnimationSpeed(const String&) const;
  10985. float GetAttributeAnimationTime(const String&) const;
  10986. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10987. Variant GetAttributeDefault(const String&) const;
  10988. bool GetInterceptNetworkUpdate(const String&) const;
  10989. bool HasSubscribedToEvent(Object, const String&);
  10990. bool HasSubscribedToEvent(const String&);
  10991. bool Load(File, bool = false);
  10992. bool Load(VectorBuffer&, bool = false);
  10993. bool LoadJSON(const JSONValue&, bool = false);
  10994. bool LoadXML(const XMLElement&, bool = false);
  10995. void MarkNetworkUpdate() const;
  10996. void Play(Sound);
  10997. void Play(Sound, float);
  10998. void Play(Sound, float, float);
  10999. void Play(Sound, float, float, float);
  11000. void Remove();
  11001. void RemoveAttributeAnimation(const String&);
  11002. void RemoveInstanceDefault();
  11003. void RemoveObjectAnimation();
  11004. void ResetToDefault();
  11005. bool Save(File) const;
  11006. bool Save(VectorBuffer&) const;
  11007. bool SaveJSON(JSONValue&) const;
  11008. bool SaveXML(XMLElement&) const;
  11009. void Seek(float);
  11010. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11011. void SetAnimationTime(float);
  11012. bool SetAttribute(const String&, const Variant&);
  11013. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11014. void SetAttributeAnimationSpeed(const String&, float);
  11015. void SetAttributeAnimationTime(const String&, float);
  11016. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11017. void SetInterceptNetworkUpdate(const String&, bool);
  11018. void Stop();
  11019. // Properties:
  11020. bool animationEnabled;
  11021. /* readonly */
  11022. float attenuation;
  11023. /* readonly */
  11024. Array<Variant> attributeDefaults;
  11025. /* readonly */
  11026. Array<AttributeInfo> attributeInfos;
  11027. Array<Variant> attributes;
  11028. AutoRemoveMode autoRemoveMode;
  11029. /* readonly */
  11030. String category;
  11031. bool enabled;
  11032. /* readonly */
  11033. bool enabledEffective;
  11034. float frequency;
  11035. float gain;
  11036. /* readonly */
  11037. uint id;
  11038. /* readonly */
  11039. Node node;
  11040. /* readonly */
  11041. uint numAttributes;
  11042. ObjectAnimation objectAnimation;
  11043. float panning;
  11044. /* readonly */
  11045. bool playing;
  11046. /* readonly */
  11047. int refs;
  11048. /* readonly */
  11049. Sound sound;
  11050. String soundType;
  11051. bool temporary;
  11052. /* readonly */
  11053. float timePosition;
  11054. /* readonly */
  11055. StringHash type;
  11056. /* readonly */
  11057. String typeName;
  11058. /* readonly */
  11059. int weakRefs;
  11060. };
  11061. class SoundSource3D
  11062. {
  11063. public:
  11064. // Methods:
  11065. void ApplyAttributes();
  11066. void DrawDebugGeometry(DebugRenderer, bool);
  11067. Variant GetAttribute(const String&) const;
  11068. ValueAnimation GetAttributeAnimation(const String&) const;
  11069. float GetAttributeAnimationSpeed(const String&) const;
  11070. float GetAttributeAnimationTime(const String&) const;
  11071. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11072. Variant GetAttributeDefault(const String&) const;
  11073. bool GetInterceptNetworkUpdate(const String&) const;
  11074. bool HasSubscribedToEvent(Object, const String&);
  11075. bool HasSubscribedToEvent(const String&);
  11076. bool Load(File, bool = false);
  11077. bool Load(VectorBuffer&, bool = false);
  11078. bool LoadJSON(const JSONValue&, bool = false);
  11079. bool LoadXML(const XMLElement&, bool = false);
  11080. void MarkNetworkUpdate() const;
  11081. void Play(Sound);
  11082. void Play(Sound, float);
  11083. void Play(Sound, float, float);
  11084. void Play(Sound, float, float, float);
  11085. void Remove();
  11086. void RemoveAttributeAnimation(const String&);
  11087. void RemoveInstanceDefault();
  11088. void RemoveObjectAnimation();
  11089. void ResetToDefault();
  11090. bool Save(File) const;
  11091. bool Save(VectorBuffer&) const;
  11092. bool SaveJSON(JSONValue&) const;
  11093. bool SaveXML(XMLElement&) const;
  11094. void Seek(float);
  11095. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11096. void SetAngleAttenuation(float, float);
  11097. void SetAnimationTime(float);
  11098. bool SetAttribute(const String&, const Variant&);
  11099. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11100. void SetAttributeAnimationSpeed(const String&, float);
  11101. void SetAttributeAnimationTime(const String&, float);
  11102. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11103. void SetDistanceAttenuation(float, float, float);
  11104. void SetInterceptNetworkUpdate(const String&, bool);
  11105. void Stop();
  11106. // Properties:
  11107. bool animationEnabled;
  11108. /* readonly */
  11109. float attenuation;
  11110. /* readonly */
  11111. Array<Variant> attributeDefaults;
  11112. /* readonly */
  11113. Array<AttributeInfo> attributeInfos;
  11114. Array<Variant> attributes;
  11115. AutoRemoveMode autoRemoveMode;
  11116. /* readonly */
  11117. String category;
  11118. bool enabled;
  11119. /* readonly */
  11120. bool enabledEffective;
  11121. float farDistance;
  11122. float frequency;
  11123. float gain;
  11124. /* readonly */
  11125. uint id;
  11126. float innerAngle;
  11127. float nearDistance;
  11128. /* readonly */
  11129. Node node;
  11130. /* readonly */
  11131. uint numAttributes;
  11132. ObjectAnimation objectAnimation;
  11133. float outerAngle;
  11134. float panning;
  11135. /* readonly */
  11136. bool playing;
  11137. /* readonly */
  11138. int refs;
  11139. float rolloffFactor;
  11140. /* readonly */
  11141. Sound sound;
  11142. String soundType;
  11143. bool temporary;
  11144. /* readonly */
  11145. float timePosition;
  11146. /* readonly */
  11147. StringHash type;
  11148. /* readonly */
  11149. String typeName;
  11150. /* readonly */
  11151. int weakRefs;
  11152. };
  11153. class Sphere
  11154. {
  11155. public:
  11156. Sphere();
  11157. Sphere(const Sphere&in);
  11158. Sphere(const Vector3&in, float);
  11159. Sphere(const BoundingBox&in);
  11160. Sphere(const Frustum&in);
  11161. Sphere(const Polyhedron&in);
  11162. // Methods:
  11163. void Clear();
  11164. void Define(const BoundingBox&);
  11165. void Define(const Frustum&);
  11166. void Define(const Polyhedron&);
  11167. void Define(const Sphere&);
  11168. void Define(const Vector3&, float);
  11169. bool Defined() const;
  11170. float Distance(const Vector3&) const;
  11171. Vector3 GetLocalPoint(float, float) const;
  11172. Vector3 GetPoint(float, float) const;
  11173. Intersection IsInside(const BoundingBox&) const;
  11174. Intersection IsInside(const Sphere&) const;
  11175. Intersection IsInside(const Vector3&) const;
  11176. Intersection IsInsideFast(const BoundingBox&) const;
  11177. Intersection IsInsideFast(const Sphere&) const;
  11178. void Merge(const BoundingBox&);
  11179. void Merge(const Frustum&);
  11180. void Merge(const Sphere&);
  11181. void Merge(const Vector3&);
  11182. // Properties:
  11183. Vector3 center;
  11184. float radius;
  11185. };
  11186. class Spline
  11187. {
  11188. public:
  11189. Spline();
  11190. Spline(InterpolationMode);
  11191. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  11192. Spline(const Spline&in);
  11193. // Methods:
  11194. void AddKnot(const Variant&);
  11195. void AddKnot(const Variant&, uint);
  11196. void Clear();
  11197. Variant GetPoint(float);
  11198. void RemoveKnot();
  11199. void RemoveKnot(uint);
  11200. // Properties:
  11201. InterpolationMode interpolationMode;
  11202. Array<Variant> knot;
  11203. Array<Variant> knots;
  11204. };
  11205. class SplinePath
  11206. {
  11207. public:
  11208. // Methods:
  11209. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  11210. void ApplyAttributes();
  11211. void ClearControlPoints();
  11212. void DrawDebugGeometry(DebugRenderer, bool);
  11213. Variant GetAttribute(const String&) const;
  11214. ValueAnimation GetAttributeAnimation(const String&) const;
  11215. float GetAttributeAnimationSpeed(const String&) const;
  11216. float GetAttributeAnimationTime(const String&) const;
  11217. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11218. Variant GetAttributeDefault(const String&) const;
  11219. bool GetInterceptNetworkUpdate(const String&) const;
  11220. Vector3 GetPoint(float) const;
  11221. Vector3 GetPosition() const;
  11222. bool HasSubscribedToEvent(Object, const String&);
  11223. bool HasSubscribedToEvent(const String&);
  11224. bool Load(File, bool = false);
  11225. bool Load(VectorBuffer&, bool = false);
  11226. bool LoadJSON(const JSONValue&, bool = false);
  11227. bool LoadXML(const XMLElement&, bool = false);
  11228. void MarkNetworkUpdate() const;
  11229. void Move(float);
  11230. void Remove();
  11231. void RemoveAttributeAnimation(const String&);
  11232. void RemoveControlPoint(Node);
  11233. void RemoveInstanceDefault();
  11234. void RemoveObjectAnimation();
  11235. void Reset();
  11236. void ResetToDefault();
  11237. bool Save(File) const;
  11238. bool Save(VectorBuffer&) const;
  11239. bool SaveJSON(JSONValue&) const;
  11240. bool SaveXML(XMLElement&) const;
  11241. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11242. void SetAnimationTime(float);
  11243. bool SetAttribute(const String&, const Variant&);
  11244. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11245. void SetAttributeAnimationSpeed(const String&, float);
  11246. void SetAttributeAnimationTime(const String&, float);
  11247. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11248. void SetInterceptNetworkUpdate(const String&, bool);
  11249. void SetPosition(float);
  11250. // Properties:
  11251. bool animationEnabled;
  11252. /* readonly */
  11253. Array<Variant> attributeDefaults;
  11254. /* readonly */
  11255. Array<AttributeInfo> attributeInfos;
  11256. Array<Variant> attributes;
  11257. /* readonly */
  11258. String category;
  11259. Node controlledNode;
  11260. bool enabled;
  11261. /* readonly */
  11262. bool enabledEffective;
  11263. /* readonly */
  11264. uint id;
  11265. InterpolationMode interpolationMode;
  11266. /* readonly */
  11267. bool isFinished;
  11268. /* readonly */
  11269. float length;
  11270. /* readonly */
  11271. Node node;
  11272. /* readonly */
  11273. uint numAttributes;
  11274. ObjectAnimation objectAnimation;
  11275. /* readonly */
  11276. int refs;
  11277. float speed;
  11278. bool temporary;
  11279. /* readonly */
  11280. StringHash type;
  11281. /* readonly */
  11282. String typeName;
  11283. /* readonly */
  11284. int weakRefs;
  11285. };
  11286. class Sprite
  11287. {
  11288. public:
  11289. Sprite();
  11290. Sprite(const String&in);
  11291. // Methods:
  11292. void AddChild(UIElement);
  11293. void AddTag(const String&);
  11294. void AddTags(const String&, int8 = ';');
  11295. void ApplyAttributes();
  11296. void BringToFront();
  11297. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11298. void DisableLayoutUpdate();
  11299. IntVector2 ElementToScreen(const IntVector2&);
  11300. void EnableLayoutUpdate();
  11301. uint FindChild(UIElement) const;
  11302. Variant GetAttribute(const String&) const;
  11303. ValueAnimation GetAttributeAnimation(const String&) const;
  11304. float GetAttributeAnimationSpeed(const String&) const;
  11305. float GetAttributeAnimationTime(const String&) const;
  11306. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11307. Variant GetAttributeDefault(const String&) const;
  11308. UIElement GetChild(const String&, bool = false) const;
  11309. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11310. Array<UIElement> GetChildren(bool = false) const;
  11311. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11312. UIElement GetElementEventSender() const;
  11313. bool GetInterceptNetworkUpdate(const String&) const;
  11314. uint GetNumChildren(bool) const;
  11315. bool HasSubscribedToEvent(Object, const String&);
  11316. bool HasSubscribedToEvent(const String&);
  11317. bool HasTag(const String&) const;
  11318. void InsertChild(uint, UIElement);
  11319. bool IsInside(IntVector2, bool);
  11320. bool IsInsideCombined(IntVector2, bool);
  11321. bool Load(File, bool = false);
  11322. bool Load(VectorBuffer&, bool = false);
  11323. UIElement LoadChildXML(XMLFile, XMLFile = null);
  11324. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11325. bool LoadJSON(const JSONValue&, bool = false);
  11326. bool LoadXML(File);
  11327. bool LoadXML(VectorBuffer&);
  11328. bool LoadXML(XMLFile, XMLFile);
  11329. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11330. bool LoadXML(const XMLElement&, bool = false);
  11331. void MarkNetworkUpdate() const;
  11332. void Remove();
  11333. void RemoveAllChildren();
  11334. void RemoveAllTags();
  11335. void RemoveAttributeAnimation(const String&);
  11336. void RemoveChild(UIElement, uint = 0);
  11337. void RemoveChild(uint);
  11338. void RemoveInstanceDefault();
  11339. void RemoveObjectAnimation();
  11340. bool RemoveTag(const String&);
  11341. void ResetDeepEnabled();
  11342. void ResetToDefault();
  11343. bool Save(File) const;
  11344. bool Save(VectorBuffer&) const;
  11345. bool SaveJSON(JSONValue&) const;
  11346. bool SaveXML(File, const String& = "\t");
  11347. bool SaveXML(VectorBuffer&, const String& = "\t");
  11348. bool SaveXML(XMLElement&) const;
  11349. IntVector2 ScreenToElement(const IntVector2&);
  11350. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11351. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11352. void SetAnimationTime(float);
  11353. bool SetAttribute(const String&, const Variant&);
  11354. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11355. void SetAttributeAnimationSpeed(const String&, float);
  11356. void SetAttributeAnimationTime(const String&, float);
  11357. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11358. void SetDeepEnabled(bool);
  11359. void SetEnabledRecursive(bool);
  11360. void SetFixedHeight(int);
  11361. void SetFixedSize(int, int);
  11362. void SetFixedWidth(int);
  11363. void SetFullImageRect();
  11364. void SetHotSpot(int, int);
  11365. void SetInterceptNetworkUpdate(const String&, bool);
  11366. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11367. void SetMaxAnchor(float, float);
  11368. void SetMaxSize(int, int);
  11369. void SetMinAnchor(float, float);
  11370. void SetMinSize(int, int);
  11371. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11372. void SetPivot(float, float);
  11373. void SetPosition(float, float);
  11374. void SetScale(float);
  11375. void SetScale(float, float);
  11376. void SetSize(int, int);
  11377. bool SetStyle(const String&, XMLFile = null);
  11378. bool SetStyle(const XMLElement&);
  11379. bool SetStyleAuto(XMLFile = null);
  11380. void UpdateLayout();
  11381. const Variant& GetVar(const StringHash&);
  11382. // Properties:
  11383. bool animationEnabled;
  11384. /* readonly */
  11385. Array<Variant> attributeDefaults;
  11386. /* readonly */
  11387. Array<AttributeInfo> attributeInfos;
  11388. Array<Variant> attributes;
  11389. BlendMode blendMode;
  11390. bool bringToBack;
  11391. bool bringToFront;
  11392. /* readonly */
  11393. String category;
  11394. /* readonly */
  11395. IntVector2 childOffset;
  11396. /* readonly */
  11397. Array<UIElement> children;
  11398. IntRect clipBorder;
  11399. bool clipChildren;
  11400. /* writeonly */
  11401. Color color;
  11402. /* readonly */
  11403. bool colorGradient;
  11404. Array<Color> colors;
  11405. /* readonly */
  11406. IntRect combinedScreenRect;
  11407. XMLFile defaultStyle;
  11408. /* readonly */
  11409. float derivedOpacity;
  11410. /* readonly */
  11411. uint dragButtonCombo;
  11412. /* readonly */
  11413. int dragButtonCount;
  11414. uint dragDropMode;
  11415. bool editable;
  11416. bool elementEventSender;
  11417. bool enableAnchor;
  11418. bool enabled;
  11419. /* readonly */
  11420. bool enabledSelf;
  11421. /* readonly */
  11422. bool fixedHeight;
  11423. /* readonly */
  11424. bool fixedSize;
  11425. /* readonly */
  11426. bool fixedWidth;
  11427. bool focus;
  11428. FocusMode focusMode;
  11429. int height;
  11430. HorizontalAlignment horizontalAlignment;
  11431. IntVector2 hotSpot;
  11432. /* readonly */
  11433. bool hovering;
  11434. IntRect imageRect;
  11435. int indent;
  11436. int indentSpacing;
  11437. /* readonly */
  11438. int indentWidth;
  11439. bool internal;
  11440. IntRect layoutBorder;
  11441. Vector2 layoutFlexScale;
  11442. LayoutMode layoutMode;
  11443. int layoutSpacing;
  11444. Vector2 maxAnchor;
  11445. int maxHeight;
  11446. IntVector2 maxOffset;
  11447. IntVector2 maxSize;
  11448. int maxWidth;
  11449. Vector2 minAnchor;
  11450. int minHeight;
  11451. IntVector2 minOffset;
  11452. IntVector2 minSize;
  11453. int minWidth;
  11454. String name;
  11455. /* readonly */
  11456. uint numAllChildren;
  11457. /* readonly */
  11458. uint numAttributes;
  11459. /* readonly */
  11460. uint numChildren;
  11461. ObjectAnimation objectAnimation;
  11462. float opacity;
  11463. UIElement parent;
  11464. Vector2 pivot;
  11465. Vector2 position;
  11466. int priority;
  11467. /* readonly */
  11468. int refs;
  11469. /* readonly */
  11470. UIElement root;
  11471. float rotation;
  11472. Vector2 scale;
  11473. /* readonly */
  11474. IntVector2 screenPosition;
  11475. bool selected;
  11476. IntVector2 size;
  11477. bool sortChildren;
  11478. String style;
  11479. /* readonly */
  11480. Array<String> tags;
  11481. bool temporary;
  11482. Texture texture;
  11483. TraversalMode traversalMode;
  11484. /* readonly */
  11485. StringHash type;
  11486. /* readonly */
  11487. String typeName;
  11488. bool useDerivedOpacity;
  11489. /* readonly */
  11490. VariantMap vars;
  11491. VerticalAlignment verticalAlignment;
  11492. bool visible;
  11493. /* readonly */
  11494. bool visibleEffective;
  11495. /* readonly */
  11496. int weakRefs;
  11497. int width;
  11498. };
  11499. class Sprite2D
  11500. {
  11501. public:
  11502. Sprite2D();
  11503. Sprite2D(const String&in);
  11504. // Methods:
  11505. bool HasSubscribedToEvent(Object, const String&);
  11506. bool HasSubscribedToEvent(const String&);
  11507. bool Load(File);
  11508. bool Load(VectorBuffer&);
  11509. bool Load(const String&);
  11510. bool Save(File) const;
  11511. bool Save(VectorBuffer&) const;
  11512. bool Save(const String&) const;
  11513. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11514. // Properties:
  11515. /* readonly */
  11516. String category;
  11517. Vector2 hotSpot;
  11518. /* readonly */
  11519. uint memoryUse;
  11520. String name;
  11521. IntVector2 offset;
  11522. IntRect rectangle;
  11523. /* readonly */
  11524. int refs;
  11525. Texture2D texture;
  11526. float textureEdgeOffset;
  11527. /* readonly */
  11528. StringHash type;
  11529. /* readonly */
  11530. String typeName;
  11531. /* readonly */
  11532. uint useTimer;
  11533. /* readonly */
  11534. int weakRefs;
  11535. };
  11536. class SpriteSheet2D
  11537. {
  11538. public:
  11539. SpriteSheet2D();
  11540. SpriteSheet2D(const String&in);
  11541. // Methods:
  11542. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  11543. Sprite2D GetSprite(const String&);
  11544. bool HasSubscribedToEvent(Object, const String&);
  11545. bool HasSubscribedToEvent(const String&);
  11546. bool Load(File);
  11547. bool Load(VectorBuffer&);
  11548. bool Load(const String&);
  11549. bool Save(File) const;
  11550. bool Save(VectorBuffer&) const;
  11551. bool Save(const String&) const;
  11552. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11553. // Properties:
  11554. /* readonly */
  11555. String category;
  11556. /* readonly */
  11557. uint memoryUse;
  11558. String name;
  11559. /* readonly */
  11560. int refs;
  11561. Texture2D texture;
  11562. /* readonly */
  11563. StringHash type;
  11564. /* readonly */
  11565. String typeName;
  11566. /* readonly */
  11567. uint useTimer;
  11568. /* readonly */
  11569. int weakRefs;
  11570. };
  11571. class StaticModel
  11572. {
  11573. public:
  11574. // Methods:
  11575. void ApplyAttributes();
  11576. void ApplyMaterialList(const String& = String ( ));
  11577. void DrawDebugGeometry(DebugRenderer, bool);
  11578. Variant GetAttribute(const String&) const;
  11579. ValueAnimation GetAttributeAnimation(const String&) const;
  11580. float GetAttributeAnimationSpeed(const String&) const;
  11581. float GetAttributeAnimationTime(const String&) const;
  11582. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11583. Variant GetAttributeDefault(const String&) const;
  11584. bool GetInterceptNetworkUpdate(const String&) const;
  11585. bool HasSubscribedToEvent(Object, const String&);
  11586. bool HasSubscribedToEvent(const String&);
  11587. bool IsInView(Camera) const;
  11588. bool IsInside(const Vector3&) const;
  11589. bool IsInsideLocal(const Vector3&) const;
  11590. bool Load(File, bool = false);
  11591. bool Load(VectorBuffer&, bool = false);
  11592. bool LoadJSON(const JSONValue&, bool = false);
  11593. bool LoadXML(const XMLElement&, bool = false);
  11594. void MarkNetworkUpdate() const;
  11595. void Remove();
  11596. void RemoveAttributeAnimation(const String&);
  11597. void RemoveInstanceDefault();
  11598. void RemoveObjectAnimation();
  11599. void ResetToDefault();
  11600. bool Save(File) const;
  11601. bool Save(VectorBuffer&) const;
  11602. bool SaveJSON(JSONValue&) const;
  11603. bool SaveXML(XMLElement&) const;
  11604. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11605. void SetAnimationTime(float);
  11606. bool SetAttribute(const String&, const Variant&);
  11607. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11608. void SetAttributeAnimationSpeed(const String&, float);
  11609. void SetAttributeAnimationTime(const String&, float);
  11610. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11611. void SetInterceptNetworkUpdate(const String&, bool);
  11612. // Properties:
  11613. bool animationEnabled;
  11614. /* readonly */
  11615. Array<Variant> attributeDefaults;
  11616. /* readonly */
  11617. Array<AttributeInfo> attributeInfos;
  11618. Array<Variant> attributes;
  11619. /* readonly */
  11620. BoundingBox boundingBox;
  11621. bool castShadows;
  11622. /* readonly */
  11623. String category;
  11624. float drawDistance;
  11625. bool enabled;
  11626. /* readonly */
  11627. bool enabledEffective;
  11628. /* readonly */
  11629. uint id;
  11630. /* readonly */
  11631. bool inView;
  11632. uint lightMask;
  11633. float lodBias;
  11634. /* writeonly */
  11635. Material material;
  11636. Array<Material> materials;
  11637. uint maxLights;
  11638. Model model;
  11639. /* readonly */
  11640. Node node;
  11641. /* readonly */
  11642. uint numAttributes;
  11643. /* readonly */
  11644. uint numGeometries;
  11645. ObjectAnimation objectAnimation;
  11646. bool occludee;
  11647. bool occluder;
  11648. uint occlusionLodLevel;
  11649. /* readonly */
  11650. int refs;
  11651. float shadowDistance;
  11652. uint shadowMask;
  11653. bool temporary;
  11654. /* readonly */
  11655. StringHash type;
  11656. /* readonly */
  11657. String typeName;
  11658. uint viewMask;
  11659. /* readonly */
  11660. int weakRefs;
  11661. /* readonly */
  11662. BoundingBox worldBoundingBox;
  11663. uint zoneMask;
  11664. };
  11665. class StaticModelGroup
  11666. {
  11667. public:
  11668. // Methods:
  11669. void AddInstanceNode(Node);
  11670. void ApplyAttributes();
  11671. void ApplyMaterialList(const String& = String ( ));
  11672. void DrawDebugGeometry(DebugRenderer, bool);
  11673. Variant GetAttribute(const String&) const;
  11674. ValueAnimation GetAttributeAnimation(const String&) const;
  11675. float GetAttributeAnimationSpeed(const String&) const;
  11676. float GetAttributeAnimationTime(const String&) const;
  11677. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11678. Variant GetAttributeDefault(const String&) const;
  11679. bool GetInterceptNetworkUpdate(const String&) const;
  11680. bool HasSubscribedToEvent(Object, const String&);
  11681. bool HasSubscribedToEvent(const String&);
  11682. bool IsInView(Camera) const;
  11683. bool Load(File, bool = false);
  11684. bool Load(VectorBuffer&, bool = false);
  11685. bool LoadJSON(const JSONValue&, bool = false);
  11686. bool LoadXML(const XMLElement&, bool = false);
  11687. void MarkNetworkUpdate() const;
  11688. void Remove();
  11689. void RemoveAllInstanceNodes();
  11690. void RemoveAttributeAnimation(const String&);
  11691. void RemoveInstanceDefault();
  11692. void RemoveInstanceNode(Node);
  11693. void RemoveObjectAnimation();
  11694. void ResetToDefault();
  11695. bool Save(File) const;
  11696. bool Save(VectorBuffer&) const;
  11697. bool SaveJSON(JSONValue&) const;
  11698. bool SaveXML(XMLElement&) const;
  11699. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11700. void SetAnimationTime(float);
  11701. bool SetAttribute(const String&, const Variant&);
  11702. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11703. void SetAttributeAnimationSpeed(const String&, float);
  11704. void SetAttributeAnimationTime(const String&, float);
  11705. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11706. void SetInterceptNetworkUpdate(const String&, bool);
  11707. // Properties:
  11708. bool animationEnabled;
  11709. /* readonly */
  11710. Array<Variant> attributeDefaults;
  11711. /* readonly */
  11712. Array<AttributeInfo> attributeInfos;
  11713. Array<Variant> attributes;
  11714. /* readonly */
  11715. BoundingBox boundingBox;
  11716. bool castShadows;
  11717. /* readonly */
  11718. String category;
  11719. float drawDistance;
  11720. bool enabled;
  11721. /* readonly */
  11722. bool enabledEffective;
  11723. /* readonly */
  11724. uint id;
  11725. /* readonly */
  11726. bool inView;
  11727. /* readonly */
  11728. Array<Node> instanceNodes;
  11729. uint lightMask;
  11730. float lodBias;
  11731. /* writeonly */
  11732. Material material;
  11733. Array<Material> materials;
  11734. uint maxLights;
  11735. Model model;
  11736. /* readonly */
  11737. Node node;
  11738. /* readonly */
  11739. uint numAttributes;
  11740. /* readonly */
  11741. uint numGeometries;
  11742. /* readonly */
  11743. uint numInstanceNodes;
  11744. ObjectAnimation objectAnimation;
  11745. bool occludee;
  11746. bool occluder;
  11747. uint occlusionLodLevel;
  11748. /* readonly */
  11749. int refs;
  11750. float shadowDistance;
  11751. uint shadowMask;
  11752. bool temporary;
  11753. /* readonly */
  11754. StringHash type;
  11755. /* readonly */
  11756. String typeName;
  11757. uint viewMask;
  11758. /* readonly */
  11759. int weakRefs;
  11760. /* readonly */
  11761. BoundingBox worldBoundingBox;
  11762. /* readonly */
  11763. Zone zone;
  11764. uint zoneMask;
  11765. };
  11766. class StaticSprite2D
  11767. {
  11768. public:
  11769. // Methods:
  11770. void ApplyAttributes();
  11771. void DrawDebugGeometry(DebugRenderer, bool);
  11772. Variant GetAttribute(const String&) const;
  11773. ValueAnimation GetAttributeAnimation(const String&) const;
  11774. float GetAttributeAnimationSpeed(const String&) const;
  11775. float GetAttributeAnimationTime(const String&) const;
  11776. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11777. Variant GetAttributeDefault(const String&) const;
  11778. bool GetInterceptNetworkUpdate(const String&) const;
  11779. bool HasSubscribedToEvent(Object, const String&);
  11780. bool HasSubscribedToEvent(const String&);
  11781. bool IsInView(Camera) const;
  11782. bool Load(File, bool = false);
  11783. bool Load(VectorBuffer&, bool = false);
  11784. bool LoadJSON(const JSONValue&, bool = false);
  11785. bool LoadXML(const XMLElement&, bool = false);
  11786. void MarkNetworkUpdate() const;
  11787. void Remove();
  11788. void RemoveAttributeAnimation(const String&);
  11789. void RemoveInstanceDefault();
  11790. void RemoveObjectAnimation();
  11791. void ResetToDefault();
  11792. bool Save(File) const;
  11793. bool Save(VectorBuffer&) const;
  11794. bool SaveJSON(JSONValue&) const;
  11795. bool SaveXML(XMLElement&) const;
  11796. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11797. void SetAnimationTime(float);
  11798. bool SetAttribute(const String&, const Variant&);
  11799. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11800. void SetAttributeAnimationSpeed(const String&, float);
  11801. void SetAttributeAnimationTime(const String&, float);
  11802. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11803. void SetFlip(bool, bool);
  11804. void SetInterceptNetworkUpdate(const String&, bool);
  11805. // Properties:
  11806. float alpha;
  11807. bool animationEnabled;
  11808. /* readonly */
  11809. Array<Variant> attributeDefaults;
  11810. /* readonly */
  11811. Array<AttributeInfo> attributeInfos;
  11812. Array<Variant> attributes;
  11813. BlendMode blendMode;
  11814. /* readonly */
  11815. BoundingBox boundingBox;
  11816. bool castShadows;
  11817. /* readonly */
  11818. String category;
  11819. Color color;
  11820. Material customMaterial;
  11821. float drawDistance;
  11822. Rect drawRect;
  11823. bool enabled;
  11824. /* readonly */
  11825. bool enabledEffective;
  11826. bool flipX;
  11827. bool flipY;
  11828. Vector2 hotSpot;
  11829. /* readonly */
  11830. uint id;
  11831. /* readonly */
  11832. bool inView;
  11833. int layer;
  11834. uint lightMask;
  11835. float lodBias;
  11836. uint maxLights;
  11837. /* readonly */
  11838. Node node;
  11839. /* readonly */
  11840. uint numAttributes;
  11841. ObjectAnimation objectAnimation;
  11842. bool occludee;
  11843. bool occluder;
  11844. int orderInLayer;
  11845. /* readonly */
  11846. int refs;
  11847. float shadowDistance;
  11848. uint shadowMask;
  11849. Sprite2D sprite;
  11850. bool temporary;
  11851. Rect textureRect;
  11852. /* readonly */
  11853. StringHash type;
  11854. /* readonly */
  11855. String typeName;
  11856. bool useDrawRect;
  11857. bool useHotSpot;
  11858. bool useTextureRect;
  11859. uint viewMask;
  11860. /* readonly */
  11861. int weakRefs;
  11862. /* readonly */
  11863. BoundingBox worldBoundingBox;
  11864. uint zoneMask;
  11865. };
  11866. class String
  11867. {
  11868. public:
  11869. ~String();
  11870. String();
  11871. String(const String&in);
  11872. String(int);
  11873. String(uint);
  11874. String(float);
  11875. String(double);
  11876. String(bool);
  11877. String(const char*);
  11878. // Methods:
  11879. void AppendUTF8(uint);
  11880. uint AtUTF8(uint) const;
  11881. uint ByteOffsetUTF8(uint) const;
  11882. void Clear();
  11883. int Compare(const String&, bool = true) const;
  11884. bool Contains(const String&, bool = true) const;
  11885. bool Contains(uint8, bool = true) const;
  11886. bool EndsWith(const String&, bool = true) const;
  11887. uint Find(const String&, uint = 0, bool = true) const;
  11888. uint Find(uint8, uint = 0, bool = true) const;
  11889. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  11890. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  11891. void Join(Array<String>&, const String&);
  11892. uint NextUTF8Char(uint&) const;
  11893. void Replace(const String&, const String&, bool = true);
  11894. void Replace(uint8, uint8, bool = true);
  11895. void ReplaceUTF8(uint, uint);
  11896. String Replaced(const String&, const String&, bool = true) const;
  11897. String Replaced(uint8, uint8, bool = true) const;
  11898. void Resize(uint);
  11899. void SetUTF8FromLatin1(const String&);
  11900. Array<String> Split(uint8, bool = false) const;
  11901. bool StartsWith(const String&, bool = true) const;
  11902. String Substring(uint) const;
  11903. String Substring(uint, uint) const;
  11904. String SubstringUTF8(uint) const;
  11905. String SubstringUTF8(uint, uint) const;
  11906. bool ToBool() const;
  11907. Color ToColor() const;
  11908. double ToDouble() const;
  11909. float ToFloat() const;
  11910. int ToInt(int = 10) const;
  11911. int64 ToInt64(int = 10) const;
  11912. IntRect ToIntRect() const;
  11913. IntVector2 ToIntVector2() const;
  11914. IntVector3 ToIntVector3() const;
  11915. String ToLower() const;
  11916. Matrix3 ToMatrix3() const;
  11917. Matrix3x4 ToMatrix3x4() const;
  11918. Matrix4 ToMatrix4() const;
  11919. Quaternion ToQuaternion() const;
  11920. uint ToUInt(int = 10) const;
  11921. uint64 ToUInt64(int = 10) const;
  11922. String ToUpper() const;
  11923. Vector2 ToVector2() const;
  11924. Vector3 ToVector3() const;
  11925. Vector4 ToVector4(bool = false) const;
  11926. Variant ToVectorVariant() const;
  11927. String Trimmed() const;
  11928. // Properties:
  11929. /* readonly */
  11930. bool empty;
  11931. /* readonly */
  11932. uint length;
  11933. /* readonly */
  11934. uint utf8Length;
  11935. };
  11936. class StringHash
  11937. {
  11938. public:
  11939. StringHash();
  11940. StringHash(const StringHash&in);
  11941. StringHash(const String&in);
  11942. StringHash(uint);
  11943. // Methods:
  11944. String ToString() const;
  11945. // Properties:
  11946. /* readonly */
  11947. uint value;
  11948. };
  11949. class Technique
  11950. {
  11951. public:
  11952. Technique();
  11953. Technique(const String&in);
  11954. // Methods:
  11955. Technique Clone(const String& = String ( )) const;
  11956. Pass CreatePass(const String&);
  11957. Pass GetPass(const String&);
  11958. Pass GetSupportedPass(const String&);
  11959. bool HasPass(const String&) const;
  11960. bool HasSubscribedToEvent(Object, const String&);
  11961. bool HasSubscribedToEvent(const String&);
  11962. bool Load(File);
  11963. bool Load(VectorBuffer&);
  11964. bool Load(const String&);
  11965. void RemovePass(const String&);
  11966. bool Save(File) const;
  11967. bool Save(VectorBuffer&) const;
  11968. bool Save(const String&) const;
  11969. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11970. // Properties:
  11971. /* readonly */
  11972. String category;
  11973. bool desktop;
  11974. /* readonly */
  11975. uint memoryUse;
  11976. String name;
  11977. /* readonly */
  11978. uint numPasses;
  11979. /* readonly */
  11980. Array<String> passNames;
  11981. /* readonly */
  11982. Array<Pass> passes;
  11983. /* readonly */
  11984. int refs;
  11985. /* readonly */
  11986. bool supported;
  11987. /* readonly */
  11988. StringHash type;
  11989. /* readonly */
  11990. String typeName;
  11991. /* readonly */
  11992. uint useTimer;
  11993. /* readonly */
  11994. int weakRefs;
  11995. };
  11996. class TechniqueEntry
  11997. {
  11998. public:
  11999. ~TechniqueEntry();
  12000. TechniqueEntry();
  12001. TechniqueEntry(const TechniqueEntry&in);
  12002. // Properties:
  12003. float lodDistance;
  12004. int qualityLevel;
  12005. Technique technique;
  12006. };
  12007. class Terrain
  12008. {
  12009. public:
  12010. // Methods:
  12011. void ApplyAttributes();
  12012. void ApplyHeightMap();
  12013. void DrawDebugGeometry(DebugRenderer, bool);
  12014. Variant GetAttribute(const String&) const;
  12015. ValueAnimation GetAttributeAnimation(const String&) const;
  12016. float GetAttributeAnimationSpeed(const String&) const;
  12017. float GetAttributeAnimationTime(const String&) const;
  12018. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12019. Variant GetAttributeDefault(const String&) const;
  12020. float GetHeight(const Vector3&) const;
  12021. bool GetInterceptNetworkUpdate(const String&) const;
  12022. TerrainPatch GetNeighborPatch(int, int) const;
  12023. Vector3 GetNormal(const Vector3&) const;
  12024. TerrainPatch GetPatch(int, int) const;
  12025. bool HasSubscribedToEvent(Object, const String&);
  12026. bool HasSubscribedToEvent(const String&);
  12027. Vector3 HeightMapToWorld(const IntVector2&) const;
  12028. bool Load(File, bool = false);
  12029. bool Load(VectorBuffer&, bool = false);
  12030. bool LoadJSON(const JSONValue&, bool = false);
  12031. bool LoadXML(const XMLElement&, bool = false);
  12032. void MarkNetworkUpdate() const;
  12033. void Remove();
  12034. void RemoveAttributeAnimation(const String&);
  12035. void RemoveInstanceDefault();
  12036. void RemoveObjectAnimation();
  12037. void ResetToDefault();
  12038. bool Save(File) const;
  12039. bool Save(VectorBuffer&) const;
  12040. bool SaveJSON(JSONValue&) const;
  12041. bool SaveXML(XMLElement&) const;
  12042. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12043. void SetAnimationTime(float);
  12044. bool SetAttribute(const String&, const Variant&);
  12045. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12046. void SetAttributeAnimationSpeed(const String&, float);
  12047. void SetAttributeAnimationTime(const String&, float);
  12048. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12049. void SetInterceptNetworkUpdate(const String&, bool);
  12050. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  12051. IntVector2 WorldToHeightMap(const Vector3&) const;
  12052. // Properties:
  12053. bool animationEnabled;
  12054. /* readonly */
  12055. Array<Variant> attributeDefaults;
  12056. /* readonly */
  12057. Array<AttributeInfo> attributeInfos;
  12058. Array<Variant> attributes;
  12059. bool castShadows;
  12060. /* readonly */
  12061. String category;
  12062. float drawDistance;
  12063. Terrain eastNeighbor;
  12064. bool enabled;
  12065. /* readonly */
  12066. bool enabledEffective;
  12067. Image heightMap;
  12068. /* readonly */
  12069. uint id;
  12070. uint lightMask;
  12071. float lodBias;
  12072. Material material;
  12073. uint maxLights;
  12074. uint maxLodLevels;
  12075. /* readonly */
  12076. Node node;
  12077. Terrain northNeighbor;
  12078. /* readonly */
  12079. uint numAttributes;
  12080. /* readonly */
  12081. IntVector2 numPatches;
  12082. /* readonly */
  12083. IntVector2 numVertices;
  12084. ObjectAnimation objectAnimation;
  12085. bool occludee;
  12086. bool occluder;
  12087. uint occlusionLodLevel;
  12088. int patchSize;
  12089. /* readonly */
  12090. Array<TerrainPatch> patches;
  12091. /* readonly */
  12092. int refs;
  12093. float shadowDistance;
  12094. uint shadowMask;
  12095. bool smoothing;
  12096. Terrain southNeighbor;
  12097. Vector3 spacing;
  12098. bool temporary;
  12099. /* readonly */
  12100. StringHash type;
  12101. /* readonly */
  12102. String typeName;
  12103. uint viewMask;
  12104. /* readonly */
  12105. int weakRefs;
  12106. Terrain westNeighbor;
  12107. uint zoneMask;
  12108. };
  12109. class TerrainPatch
  12110. {
  12111. public:
  12112. // Methods:
  12113. void ApplyAttributes();
  12114. void DrawDebugGeometry(DebugRenderer, bool);
  12115. Variant GetAttribute(const String&) const;
  12116. ValueAnimation GetAttributeAnimation(const String&) const;
  12117. float GetAttributeAnimationSpeed(const String&) const;
  12118. float GetAttributeAnimationTime(const String&) const;
  12119. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12120. Variant GetAttributeDefault(const String&) const;
  12121. bool GetInterceptNetworkUpdate(const String&) const;
  12122. bool HasSubscribedToEvent(Object, const String&);
  12123. bool HasSubscribedToEvent(const String&);
  12124. bool IsInView(Camera) const;
  12125. bool Load(File, bool = false);
  12126. bool Load(VectorBuffer&, bool = false);
  12127. bool LoadJSON(const JSONValue&, bool = false);
  12128. bool LoadXML(const XMLElement&, bool = false);
  12129. void MarkNetworkUpdate() const;
  12130. void Remove();
  12131. void RemoveAttributeAnimation(const String&);
  12132. void RemoveInstanceDefault();
  12133. void RemoveObjectAnimation();
  12134. void ResetToDefault();
  12135. bool Save(File) const;
  12136. bool Save(VectorBuffer&) const;
  12137. bool SaveJSON(JSONValue&) const;
  12138. bool SaveXML(XMLElement&) const;
  12139. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12140. void SetAnimationTime(float);
  12141. bool SetAttribute(const String&, const Variant&);
  12142. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12143. void SetAttributeAnimationSpeed(const String&, float);
  12144. void SetAttributeAnimationTime(const String&, float);
  12145. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12146. void SetInterceptNetworkUpdate(const String&, bool);
  12147. // Properties:
  12148. bool animationEnabled;
  12149. /* readonly */
  12150. Array<Variant> attributeDefaults;
  12151. /* readonly */
  12152. Array<AttributeInfo> attributeInfos;
  12153. Array<Variant> attributes;
  12154. /* readonly */
  12155. BoundingBox boundingBox;
  12156. bool castShadows;
  12157. /* readonly */
  12158. String category;
  12159. float drawDistance;
  12160. bool enabled;
  12161. /* readonly */
  12162. bool enabledEffective;
  12163. /* readonly */
  12164. uint id;
  12165. /* readonly */
  12166. bool inView;
  12167. uint lightMask;
  12168. float lodBias;
  12169. uint maxLights;
  12170. /* readonly */
  12171. Node node;
  12172. /* readonly */
  12173. uint numAttributes;
  12174. ObjectAnimation objectAnimation;
  12175. bool occludee;
  12176. bool occluder;
  12177. /* readonly */
  12178. int refs;
  12179. float shadowDistance;
  12180. uint shadowMask;
  12181. bool temporary;
  12182. /* readonly */
  12183. StringHash type;
  12184. /* readonly */
  12185. String typeName;
  12186. uint viewMask;
  12187. /* readonly */
  12188. int weakRefs;
  12189. /* readonly */
  12190. BoundingBox worldBoundingBox;
  12191. uint zoneMask;
  12192. };
  12193. class Text
  12194. {
  12195. public:
  12196. Text();
  12197. Text(const String&in);
  12198. // Methods:
  12199. void AddChild(UIElement);
  12200. void AddTag(const String&);
  12201. void AddTags(const String&, int8 = ';');
  12202. void ApplyAttributes();
  12203. void BringToFront();
  12204. void ClearSelection();
  12205. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12206. void DisableLayoutUpdate();
  12207. IntVector2 ElementToScreen(const IntVector2&);
  12208. void EnableLayoutUpdate();
  12209. uint FindChild(UIElement) const;
  12210. Variant GetAttribute(const String&) const;
  12211. ValueAnimation GetAttributeAnimation(const String&) const;
  12212. float GetAttributeAnimationSpeed(const String&) const;
  12213. float GetAttributeAnimationTime(const String&) const;
  12214. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12215. Variant GetAttributeDefault(const String&) const;
  12216. UIElement GetChild(const String&, bool = false) const;
  12217. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12218. Array<UIElement> GetChildren(bool = false) const;
  12219. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12220. UIElement GetElementEventSender() const;
  12221. bool GetInterceptNetworkUpdate(const String&) const;
  12222. uint GetNumChildren(bool) const;
  12223. bool HasSubscribedToEvent(Object, const String&);
  12224. bool HasSubscribedToEvent(const String&);
  12225. bool HasTag(const String&) const;
  12226. void InsertChild(uint, UIElement);
  12227. bool IsInside(IntVector2, bool);
  12228. bool IsInsideCombined(IntVector2, bool);
  12229. bool Load(File, bool = false);
  12230. bool Load(VectorBuffer&, bool = false);
  12231. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12232. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12233. bool LoadJSON(const JSONValue&, bool = false);
  12234. bool LoadXML(File);
  12235. bool LoadXML(VectorBuffer&);
  12236. bool LoadXML(XMLFile, XMLFile);
  12237. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12238. bool LoadXML(const XMLElement&, bool = false);
  12239. void MarkNetworkUpdate() const;
  12240. void Remove();
  12241. void RemoveAllChildren();
  12242. void RemoveAllTags();
  12243. void RemoveAttributeAnimation(const String&);
  12244. void RemoveChild(UIElement, uint = 0);
  12245. void RemoveChild(uint);
  12246. void RemoveInstanceDefault();
  12247. void RemoveObjectAnimation();
  12248. bool RemoveTag(const String&);
  12249. void ResetDeepEnabled();
  12250. void ResetToDefault();
  12251. bool Save(File) const;
  12252. bool Save(VectorBuffer&) const;
  12253. bool SaveJSON(JSONValue&) const;
  12254. bool SaveXML(File, const String& = "\t");
  12255. bool SaveXML(VectorBuffer&, const String& = "\t");
  12256. bool SaveXML(XMLElement&) const;
  12257. IntVector2 ScreenToElement(const IntVector2&);
  12258. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12259. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12260. void SetAnimationTime(float);
  12261. bool SetAttribute(const String&, const Variant&);
  12262. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12263. void SetAttributeAnimationSpeed(const String&, float);
  12264. void SetAttributeAnimationTime(const String&, float);
  12265. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12266. void SetDeepEnabled(bool);
  12267. void SetEnabledRecursive(bool);
  12268. void SetFixedHeight(int);
  12269. void SetFixedSize(int, int);
  12270. void SetFixedWidth(int);
  12271. bool SetFont(Font, float);
  12272. bool SetFont(const String&, float);
  12273. void SetInterceptNetworkUpdate(const String&, bool);
  12274. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12275. void SetMaxAnchor(float, float);
  12276. void SetMaxSize(int, int);
  12277. void SetMinAnchor(float, float);
  12278. void SetMinSize(int, int);
  12279. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12280. void SetPivot(float, float);
  12281. void SetPosition(int, int);
  12282. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  12283. void SetSize(int, int);
  12284. bool SetStyle(const String&, XMLFile = null);
  12285. bool SetStyle(const XMLElement&);
  12286. bool SetStyleAuto(XMLFile = null);
  12287. void UpdateLayout();
  12288. const Variant& GetVar(const StringHash&);
  12289. // Properties:
  12290. bool animationEnabled;
  12291. /* readonly */
  12292. Array<Variant> attributeDefaults;
  12293. /* readonly */
  12294. Array<AttributeInfo> attributeInfos;
  12295. Array<Variant> attributes;
  12296. bool autoLocalizable;
  12297. bool bringToBack;
  12298. bool bringToFront;
  12299. /* readonly */
  12300. String category;
  12301. /* readonly */
  12302. Array<Vector2> charPositions;
  12303. /* readonly */
  12304. Array<Vector2> charSizes;
  12305. /* readonly */
  12306. IntVector2 childOffset;
  12307. /* readonly */
  12308. Array<UIElement> children;
  12309. IntRect clipBorder;
  12310. bool clipChildren;
  12311. /* writeonly */
  12312. Color color;
  12313. /* readonly */
  12314. bool colorGradient;
  12315. Array<Color> colors;
  12316. /* readonly */
  12317. IntRect combinedScreenRect;
  12318. XMLFile defaultStyle;
  12319. /* readonly */
  12320. float derivedOpacity;
  12321. /* readonly */
  12322. uint dragButtonCombo;
  12323. /* readonly */
  12324. int dragButtonCount;
  12325. uint dragDropMode;
  12326. bool editable;
  12327. Color effectColor;
  12328. bool effectRoundStroke;
  12329. IntVector2 effectShadowOffset;
  12330. int effectStrokeThickness;
  12331. bool elementEventSender;
  12332. bool enableAnchor;
  12333. bool enabled;
  12334. /* readonly */
  12335. bool enabledSelf;
  12336. /* readonly */
  12337. bool fixedHeight;
  12338. /* readonly */
  12339. bool fixedSize;
  12340. /* readonly */
  12341. bool fixedWidth;
  12342. bool focus;
  12343. FocusMode focusMode;
  12344. /* readonly */
  12345. Font font;
  12346. float fontSize;
  12347. int height;
  12348. HorizontalAlignment horizontalAlignment;
  12349. Color hoverColor;
  12350. /* readonly */
  12351. bool hovering;
  12352. int indent;
  12353. int indentSpacing;
  12354. /* readonly */
  12355. int indentWidth;
  12356. bool internal;
  12357. IntRect layoutBorder;
  12358. Vector2 layoutFlexScale;
  12359. LayoutMode layoutMode;
  12360. int layoutSpacing;
  12361. Vector2 maxAnchor;
  12362. int maxHeight;
  12363. IntVector2 maxOffset;
  12364. IntVector2 maxSize;
  12365. int maxWidth;
  12366. Vector2 minAnchor;
  12367. int minHeight;
  12368. IntVector2 minOffset;
  12369. IntVector2 minSize;
  12370. int minWidth;
  12371. String name;
  12372. /* readonly */
  12373. uint numAllChildren;
  12374. /* readonly */
  12375. uint numAttributes;
  12376. /* readonly */
  12377. uint numChars;
  12378. /* readonly */
  12379. uint numChildren;
  12380. /* readonly */
  12381. uint numRows;
  12382. ObjectAnimation objectAnimation;
  12383. float opacity;
  12384. UIElement parent;
  12385. Vector2 pivot;
  12386. IntVector2 position;
  12387. int priority;
  12388. /* readonly */
  12389. int refs;
  12390. /* readonly */
  12391. UIElement root;
  12392. /* readonly */
  12393. float rowHeight;
  12394. float rowSpacing;
  12395. /* readonly */
  12396. Array<float> rowWidths;
  12397. /* readonly */
  12398. IntVector2 screenPosition;
  12399. bool selected;
  12400. Color selectionColor;
  12401. /* readonly */
  12402. uint selectionLength;
  12403. /* readonly */
  12404. uint selectionStart;
  12405. IntVector2 size;
  12406. bool sortChildren;
  12407. String style;
  12408. /* readonly */
  12409. Array<String> tags;
  12410. bool temporary;
  12411. String text;
  12412. HorizontalAlignment textAlignment;
  12413. TextEffect textEffect;
  12414. TraversalMode traversalMode;
  12415. /* readonly */
  12416. StringHash type;
  12417. /* readonly */
  12418. String typeName;
  12419. bool useDerivedOpacity;
  12420. /* readonly */
  12421. VariantMap vars;
  12422. VerticalAlignment verticalAlignment;
  12423. bool visible;
  12424. /* readonly */
  12425. bool visibleEffective;
  12426. /* readonly */
  12427. int weakRefs;
  12428. int width;
  12429. bool wordwrap;
  12430. };
  12431. class Text3D
  12432. {
  12433. public:
  12434. // Methods:
  12435. void ApplyAttributes();
  12436. void DrawDebugGeometry(DebugRenderer, bool);
  12437. Variant GetAttribute(const String&) const;
  12438. ValueAnimation GetAttributeAnimation(const String&) const;
  12439. float GetAttributeAnimationSpeed(const String&) const;
  12440. float GetAttributeAnimationTime(const String&) const;
  12441. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12442. Variant GetAttributeDefault(const String&) const;
  12443. bool GetInterceptNetworkUpdate(const String&) const;
  12444. bool HasSubscribedToEvent(Object, const String&);
  12445. bool HasSubscribedToEvent(const String&);
  12446. bool IsInView(Camera) const;
  12447. bool Load(File, bool = false);
  12448. bool Load(VectorBuffer&, bool = false);
  12449. bool LoadJSON(const JSONValue&, bool = false);
  12450. bool LoadXML(const XMLElement&, bool = false);
  12451. void MarkNetworkUpdate() const;
  12452. void Remove();
  12453. void RemoveAttributeAnimation(const String&);
  12454. void RemoveInstanceDefault();
  12455. void RemoveObjectAnimation();
  12456. void ResetToDefault();
  12457. bool Save(File) const;
  12458. bool Save(VectorBuffer&) const;
  12459. bool SaveJSON(JSONValue&) const;
  12460. bool SaveXML(XMLElement&) const;
  12461. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12462. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12463. void SetAnimationTime(float);
  12464. bool SetAttribute(const String&, const Variant&);
  12465. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12466. void SetAttributeAnimationSpeed(const String&, float);
  12467. void SetAttributeAnimationTime(const String&, float);
  12468. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12469. bool SetFont(Font, float);
  12470. bool SetFont(const String&, float);
  12471. void SetInterceptNetworkUpdate(const String&, bool);
  12472. // Properties:
  12473. bool animationEnabled;
  12474. /* readonly */
  12475. Array<Variant> attributeDefaults;
  12476. /* readonly */
  12477. Array<AttributeInfo> attributeInfos;
  12478. Array<Variant> attributes;
  12479. /* readonly */
  12480. BoundingBox boundingBox;
  12481. bool castShadows;
  12482. /* readonly */
  12483. String category;
  12484. /* readonly */
  12485. Array<Vector2> charPositions;
  12486. /* readonly */
  12487. Array<Vector2> charSizes;
  12488. /* writeonly */
  12489. Color color;
  12490. Array<Color> colors;
  12491. float drawDistance;
  12492. Color effectColor;
  12493. float effectDepthBias;
  12494. bool effectRoundStroke;
  12495. IntVector2 effectShadowOffset;
  12496. int effectStrokeThickness;
  12497. bool enabled;
  12498. /* readonly */
  12499. bool enabledEffective;
  12500. FaceCameraMode faceCameraMode;
  12501. bool fixedScreenSize;
  12502. /* readonly */
  12503. Font font;
  12504. float fontSize;
  12505. /* readonly */
  12506. int height;
  12507. HorizontalAlignment horizontalAlignment;
  12508. /* readonly */
  12509. uint id;
  12510. /* readonly */
  12511. bool inView;
  12512. uint lightMask;
  12513. float lodBias;
  12514. Material material;
  12515. uint maxLights;
  12516. /* readonly */
  12517. Node node;
  12518. /* readonly */
  12519. uint numAttributes;
  12520. /* readonly */
  12521. uint numChars;
  12522. /* readonly */
  12523. uint numRows;
  12524. ObjectAnimation objectAnimation;
  12525. bool occludee;
  12526. bool occluder;
  12527. float opacity;
  12528. /* readonly */
  12529. int refs;
  12530. /* readonly */
  12531. float rowHeight;
  12532. float rowSpacing;
  12533. /* readonly */
  12534. Array<float> rowWidths;
  12535. float shadowDistance;
  12536. uint shadowMask;
  12537. bool temporary;
  12538. String text;
  12539. HorizontalAlignment textAlignment;
  12540. TextEffect textEffect;
  12541. /* readonly */
  12542. StringHash type;
  12543. /* readonly */
  12544. String typeName;
  12545. VerticalAlignment verticalAlignment;
  12546. uint viewMask;
  12547. /* readonly */
  12548. int weakRefs;
  12549. int width;
  12550. bool wordwrap;
  12551. /* readonly */
  12552. BoundingBox worldBoundingBox;
  12553. uint zoneMask;
  12554. };
  12555. class Texture
  12556. {
  12557. public:
  12558. Texture();
  12559. Texture(const String&in);
  12560. // Methods:
  12561. void AddMetadata(const String&, const Variant&);
  12562. void ClearDataLost();
  12563. bool HasSubscribedToEvent(Object, const String&);
  12564. bool HasSubscribedToEvent(const String&);
  12565. bool Load(File);
  12566. bool Load(VectorBuffer&);
  12567. bool Load(const String&);
  12568. void RemoveAllMetadata();
  12569. void RemoveMetadata(const String&);
  12570. bool Save(File) const;
  12571. bool Save(VectorBuffer&) const;
  12572. bool Save(const String&) const;
  12573. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12574. void SetNumLevels(uint);
  12575. // Properties:
  12576. Array<TextureAddressMode> addressMode;
  12577. uint anisotropy;
  12578. /* readonly */
  12579. bool autoResolve;
  12580. Texture backupTexture;
  12581. Color borderColor;
  12582. /* readonly */
  12583. String category;
  12584. /* readonly */
  12585. uint components;
  12586. /* readonly */
  12587. bool compressed;
  12588. /* readonly */
  12589. bool dataLost;
  12590. TextureFilterMode filterMode;
  12591. /* readonly */
  12592. uint format;
  12593. /* readonly */
  12594. bool hasMetadata;
  12595. /* readonly */
  12596. int height;
  12597. /* readonly */
  12598. Array<int> levelHeight;
  12599. /* readonly */
  12600. Array<int> levelWidth;
  12601. /* readonly */
  12602. uint levels;
  12603. /* readonly */
  12604. bool levelsDirty;
  12605. /* readonly */
  12606. uint memoryUse;
  12607. Array<Variant> metadata;
  12608. Array<int> mipsToSkip;
  12609. /* readonly */
  12610. int multiSample;
  12611. String name;
  12612. /* readonly */
  12613. int refs;
  12614. /* readonly */
  12615. bool resolveDirty;
  12616. bool sRGB;
  12617. /* readonly */
  12618. StringHash type;
  12619. /* readonly */
  12620. String typeName;
  12621. /* readonly */
  12622. TextureUsage usage;
  12623. /* readonly */
  12624. uint useTimer;
  12625. /* readonly */
  12626. int weakRefs;
  12627. /* readonly */
  12628. int width;
  12629. };
  12630. class Texture2D
  12631. {
  12632. public:
  12633. Texture2D();
  12634. Texture2D(const String&in);
  12635. // Methods:
  12636. void AddMetadata(const String&, const Variant&);
  12637. void ClearDataLost();
  12638. Image GetImage() const;
  12639. bool HasSubscribedToEvent(Object, const String&);
  12640. bool HasSubscribedToEvent(const String&);
  12641. bool Load(File);
  12642. bool Load(VectorBuffer&);
  12643. bool Load(const String&);
  12644. void RemoveAllMetadata();
  12645. void RemoveMetadata(const String&);
  12646. bool Save(File) const;
  12647. bool Save(VectorBuffer&) const;
  12648. bool Save(const String&) const;
  12649. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12650. bool SetData(Image, bool = false);
  12651. void SetNumLevels(uint);
  12652. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  12653. // Properties:
  12654. Array<TextureAddressMode> addressMode;
  12655. uint anisotropy;
  12656. /* readonly */
  12657. bool autoResolve;
  12658. Texture backupTexture;
  12659. Color borderColor;
  12660. /* readonly */
  12661. String category;
  12662. /* readonly */
  12663. uint components;
  12664. /* readonly */
  12665. bool compressed;
  12666. /* readonly */
  12667. bool dataLost;
  12668. TextureFilterMode filterMode;
  12669. /* readonly */
  12670. uint format;
  12671. /* readonly */
  12672. bool hasMetadata;
  12673. /* readonly */
  12674. int height;
  12675. /* readonly */
  12676. Array<int> levelHeight;
  12677. /* readonly */
  12678. Array<int> levelWidth;
  12679. /* readonly */
  12680. uint levels;
  12681. /* readonly */
  12682. bool levelsDirty;
  12683. /* readonly */
  12684. uint memoryUse;
  12685. Array<Variant> metadata;
  12686. Array<int> mipsToSkip;
  12687. /* readonly */
  12688. int multiSample;
  12689. String name;
  12690. /* readonly */
  12691. int refs;
  12692. /* readonly */
  12693. RenderSurface renderSurface;
  12694. /* readonly */
  12695. bool resolveDirty;
  12696. bool sRGB;
  12697. /* readonly */
  12698. StringHash type;
  12699. /* readonly */
  12700. String typeName;
  12701. /* readonly */
  12702. TextureUsage usage;
  12703. /* readonly */
  12704. uint useTimer;
  12705. /* readonly */
  12706. int weakRefs;
  12707. /* readonly */
  12708. int width;
  12709. };
  12710. class Texture2DArray
  12711. {
  12712. public:
  12713. Texture2DArray();
  12714. Texture2DArray(const String&in);
  12715. // Methods:
  12716. void AddMetadata(const String&, const Variant&);
  12717. void ClearDataLost();
  12718. bool HasSubscribedToEvent(Object, const String&);
  12719. bool HasSubscribedToEvent(const String&);
  12720. bool Load(File);
  12721. bool Load(VectorBuffer&);
  12722. bool Load(const String&);
  12723. void RemoveAllMetadata();
  12724. void RemoveMetadata(const String&);
  12725. bool Save(File) const;
  12726. bool Save(VectorBuffer&) const;
  12727. bool Save(const String&) const;
  12728. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12729. bool SetData(uint, Image, bool = false);
  12730. void SetNumLevels(uint);
  12731. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12732. // Properties:
  12733. Array<TextureAddressMode> addressMode;
  12734. uint anisotropy;
  12735. /* readonly */
  12736. bool autoResolve;
  12737. Texture backupTexture;
  12738. Color borderColor;
  12739. /* readonly */
  12740. String category;
  12741. /* readonly */
  12742. uint components;
  12743. /* readonly */
  12744. bool compressed;
  12745. /* readonly */
  12746. bool dataLost;
  12747. TextureFilterMode filterMode;
  12748. /* readonly */
  12749. uint format;
  12750. /* readonly */
  12751. bool hasMetadata;
  12752. /* readonly */
  12753. int height;
  12754. uint layers;
  12755. /* readonly */
  12756. Array<int> levelHeight;
  12757. /* readonly */
  12758. Array<int> levelWidth;
  12759. /* readonly */
  12760. uint levels;
  12761. /* readonly */
  12762. bool levelsDirty;
  12763. /* readonly */
  12764. uint memoryUse;
  12765. Array<Variant> metadata;
  12766. Array<int> mipsToSkip;
  12767. /* readonly */
  12768. int multiSample;
  12769. String name;
  12770. /* readonly */
  12771. int refs;
  12772. /* readonly */
  12773. RenderSurface renderSurface;
  12774. /* readonly */
  12775. bool resolveDirty;
  12776. bool sRGB;
  12777. /* readonly */
  12778. StringHash type;
  12779. /* readonly */
  12780. String typeName;
  12781. /* readonly */
  12782. TextureUsage usage;
  12783. /* readonly */
  12784. uint useTimer;
  12785. /* readonly */
  12786. int weakRefs;
  12787. /* readonly */
  12788. int width;
  12789. };
  12790. class Texture3D
  12791. {
  12792. public:
  12793. Texture3D();
  12794. Texture3D(const String&in);
  12795. // Methods:
  12796. void AddMetadata(const String&, const Variant&);
  12797. void ClearDataLost();
  12798. bool HasSubscribedToEvent(Object, const String&);
  12799. bool HasSubscribedToEvent(const String&);
  12800. bool Load(File);
  12801. bool Load(VectorBuffer&);
  12802. bool Load(const String&);
  12803. void RemoveAllMetadata();
  12804. void RemoveMetadata(const String&);
  12805. bool Save(File) const;
  12806. bool Save(VectorBuffer&) const;
  12807. bool Save(const String&) const;
  12808. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12809. bool SetData(Image, bool = false);
  12810. void SetNumLevels(uint);
  12811. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12812. // Properties:
  12813. Array<TextureAddressMode> addressMode;
  12814. uint anisotropy;
  12815. /* readonly */
  12816. bool autoResolve;
  12817. Texture backupTexture;
  12818. Color borderColor;
  12819. /* readonly */
  12820. String category;
  12821. /* readonly */
  12822. uint components;
  12823. /* readonly */
  12824. bool compressed;
  12825. /* readonly */
  12826. bool dataLost;
  12827. TextureFilterMode filterMode;
  12828. /* readonly */
  12829. uint format;
  12830. /* readonly */
  12831. bool hasMetadata;
  12832. /* readonly */
  12833. int height;
  12834. /* readonly */
  12835. Array<int> levelHeight;
  12836. /* readonly */
  12837. Array<int> levelWidth;
  12838. /* readonly */
  12839. uint levels;
  12840. /* readonly */
  12841. bool levelsDirty;
  12842. /* readonly */
  12843. uint memoryUse;
  12844. Array<Variant> metadata;
  12845. Array<int> mipsToSkip;
  12846. /* readonly */
  12847. int multiSample;
  12848. String name;
  12849. /* readonly */
  12850. int refs;
  12851. /* readonly */
  12852. bool resolveDirty;
  12853. bool sRGB;
  12854. /* readonly */
  12855. StringHash type;
  12856. /* readonly */
  12857. String typeName;
  12858. /* readonly */
  12859. TextureUsage usage;
  12860. /* readonly */
  12861. uint useTimer;
  12862. /* readonly */
  12863. int weakRefs;
  12864. /* readonly */
  12865. int width;
  12866. };
  12867. class TextureCube
  12868. {
  12869. public:
  12870. TextureCube();
  12871. TextureCube(const String&in);
  12872. // Methods:
  12873. void AddMetadata(const String&, const Variant&);
  12874. void ClearDataLost();
  12875. Image GetImage(CubeMapFace) const;
  12876. bool HasSubscribedToEvent(Object, const String&);
  12877. bool HasSubscribedToEvent(const String&);
  12878. bool Load(File);
  12879. bool Load(VectorBuffer&);
  12880. bool Load(const String&);
  12881. void RemoveAllMetadata();
  12882. void RemoveMetadata(const String&);
  12883. bool Save(File) const;
  12884. bool Save(VectorBuffer&) const;
  12885. bool Save(const String&) const;
  12886. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12887. bool SetData(CubeMapFace, Image, bool = false);
  12888. void SetNumLevels(uint);
  12889. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  12890. // Properties:
  12891. Array<TextureAddressMode> addressMode;
  12892. uint anisotropy;
  12893. /* readonly */
  12894. bool autoResolve;
  12895. Texture backupTexture;
  12896. Color borderColor;
  12897. /* readonly */
  12898. String category;
  12899. /* readonly */
  12900. uint components;
  12901. /* readonly */
  12902. bool compressed;
  12903. /* readonly */
  12904. bool dataLost;
  12905. TextureFilterMode filterMode;
  12906. /* readonly */
  12907. uint format;
  12908. /* readonly */
  12909. bool hasMetadata;
  12910. /* readonly */
  12911. int height;
  12912. /* readonly */
  12913. Array<int> levelHeight;
  12914. /* readonly */
  12915. Array<int> levelWidth;
  12916. /* readonly */
  12917. uint levels;
  12918. /* readonly */
  12919. bool levelsDirty;
  12920. /* readonly */
  12921. uint memoryUse;
  12922. Array<Variant> metadata;
  12923. Array<int> mipsToSkip;
  12924. /* readonly */
  12925. int multiSample;
  12926. String name;
  12927. /* readonly */
  12928. int refs;
  12929. /* readonly */
  12930. Array<RenderSurface> renderSurfaces;
  12931. /* readonly */
  12932. bool resolveDirty;
  12933. bool sRGB;
  12934. /* readonly */
  12935. StringHash type;
  12936. /* readonly */
  12937. String typeName;
  12938. /* readonly */
  12939. TextureUsage usage;
  12940. /* readonly */
  12941. uint useTimer;
  12942. /* readonly */
  12943. int weakRefs;
  12944. /* readonly */
  12945. int width;
  12946. };
  12947. class TextureFrame
  12948. {
  12949. public:
  12950. // Properties:
  12951. float time;
  12952. Rect uv;
  12953. };
  12954. class Tile2D
  12955. {
  12956. public:
  12957. // Methods:
  12958. bool HasProperty(const String&) const;
  12959. const String& GetProperty(const String&) const;
  12960. // Properties:
  12961. /* readonly */
  12962. int gid;
  12963. /* readonly */
  12964. int refs;
  12965. /* readonly */
  12966. Sprite2D sprite;
  12967. /* readonly */
  12968. int weakRefs;
  12969. };
  12970. class TileMap2D
  12971. {
  12972. public:
  12973. // Methods:
  12974. void ApplyAttributes();
  12975. void DrawDebugGeometry(DebugRenderer, bool);
  12976. Variant GetAttribute(const String&) const;
  12977. ValueAnimation GetAttributeAnimation(const String&) const;
  12978. float GetAttributeAnimationSpeed(const String&) const;
  12979. float GetAttributeAnimationTime(const String&) const;
  12980. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12981. Variant GetAttributeDefault(const String&) const;
  12982. bool GetInterceptNetworkUpdate(const String&) const;
  12983. TileMapLayer2D GetLayer(uint) const;
  12984. Array<TileMapObject2D> GetTileCollisionShapes(int) const;
  12985. bool HasSubscribedToEvent(Object, const String&);
  12986. bool HasSubscribedToEvent(const String&);
  12987. bool Load(File, bool = false);
  12988. bool Load(VectorBuffer&, bool = false);
  12989. bool LoadJSON(const JSONValue&, bool = false);
  12990. bool LoadXML(const XMLElement&, bool = false);
  12991. void MarkNetworkUpdate() const;
  12992. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  12993. void Remove();
  12994. void RemoveAttributeAnimation(const String&);
  12995. void RemoveInstanceDefault();
  12996. void RemoveObjectAnimation();
  12997. void ResetToDefault();
  12998. bool Save(File) const;
  12999. bool Save(VectorBuffer&) const;
  13000. bool SaveJSON(JSONValue&) const;
  13001. bool SaveXML(XMLElement&) const;
  13002. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13003. void SetAnimationTime(float);
  13004. bool SetAttribute(const String&, const Variant&);
  13005. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13006. void SetAttributeAnimationSpeed(const String&, float);
  13007. void SetAttributeAnimationTime(const String&, float);
  13008. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13009. void SetInterceptNetworkUpdate(const String&, bool);
  13010. Vector2 TileIndexToPosition(int, int) const;
  13011. // Properties:
  13012. bool animationEnabled;
  13013. /* readonly */
  13014. Array<Variant> attributeDefaults;
  13015. /* readonly */
  13016. Array<AttributeInfo> attributeInfos;
  13017. Array<Variant> attributes;
  13018. /* readonly */
  13019. String category;
  13020. bool enabled;
  13021. /* readonly */
  13022. bool enabledEffective;
  13023. /* readonly */
  13024. uint id;
  13025. /* readonly */
  13026. TileMapInfo2D info;
  13027. /* readonly */
  13028. Node node;
  13029. /* readonly */
  13030. uint numAttributes;
  13031. /* readonly */
  13032. uint numLayers;
  13033. ObjectAnimation objectAnimation;
  13034. /* readonly */
  13035. int refs;
  13036. bool temporary;
  13037. TmxFile2D tmxFile;
  13038. /* readonly */
  13039. StringHash type;
  13040. /* readonly */
  13041. String typeName;
  13042. /* readonly */
  13043. int weakRefs;
  13044. };
  13045. class TileMapInfo2D
  13046. {
  13047. public:
  13048. // Properties:
  13049. int height;
  13050. /* readonly */
  13051. float mapHeight;
  13052. /* readonly */
  13053. float mapWidth;
  13054. Orientation2D orientation;
  13055. float tileHeight;
  13056. float tileWidth;
  13057. int width;
  13058. };
  13059. class TileMapLayer2D
  13060. {
  13061. public:
  13062. // Methods:
  13063. void ApplyAttributes();
  13064. void DrawDebugGeometry(DebugRenderer, bool);
  13065. Variant GetAttribute(const String&) const;
  13066. ValueAnimation GetAttributeAnimation(const String&) const;
  13067. float GetAttributeAnimationSpeed(const String&) const;
  13068. float GetAttributeAnimationTime(const String&) const;
  13069. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13070. Variant GetAttributeDefault(const String&) const;
  13071. bool GetInterceptNetworkUpdate(const String&) const;
  13072. TileMapObject2D GetObject(uint) const;
  13073. Node GetObjectNode(uint) const;
  13074. Tile2D GetTile(int, int) const;
  13075. Node GetTileNode(int, int) const;
  13076. bool HasProperty(const String&) const;
  13077. bool HasSubscribedToEvent(Object, const String&);
  13078. bool HasSubscribedToEvent(const String&);
  13079. bool Load(File, bool = false);
  13080. bool Load(VectorBuffer&, bool = false);
  13081. bool LoadJSON(const JSONValue&, bool = false);
  13082. bool LoadXML(const XMLElement&, bool = false);
  13083. void MarkNetworkUpdate() const;
  13084. void Remove();
  13085. void RemoveAttributeAnimation(const String&);
  13086. void RemoveInstanceDefault();
  13087. void RemoveObjectAnimation();
  13088. void ResetToDefault();
  13089. bool Save(File) const;
  13090. bool Save(VectorBuffer&) const;
  13091. bool SaveJSON(JSONValue&) const;
  13092. bool SaveXML(XMLElement&) const;
  13093. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13094. void SetAnimationTime(float);
  13095. bool SetAttribute(const String&, const Variant&);
  13096. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13097. void SetAttributeAnimationSpeed(const String&, float);
  13098. void SetAttributeAnimationTime(const String&, float);
  13099. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13100. void SetInterceptNetworkUpdate(const String&, bool);
  13101. const String& GetProperty(const String&) const;
  13102. // Properties:
  13103. bool animationEnabled;
  13104. /* readonly */
  13105. Array<Variant> attributeDefaults;
  13106. /* readonly */
  13107. Array<AttributeInfo> attributeInfos;
  13108. Array<Variant> attributes;
  13109. /* readonly */
  13110. String category;
  13111. int drawOrder;
  13112. bool enabled;
  13113. /* readonly */
  13114. bool enabledEffective;
  13115. /* readonly */
  13116. int height;
  13117. /* readonly */
  13118. uint id;
  13119. /* readonly */
  13120. Node imageNode;
  13121. /* readonly */
  13122. TileMapLayerType2D layerType;
  13123. /* readonly */
  13124. Node node;
  13125. /* readonly */
  13126. uint numAttributes;
  13127. /* readonly */
  13128. uint numObjects;
  13129. ObjectAnimation objectAnimation;
  13130. /* readonly */
  13131. int refs;
  13132. bool temporary;
  13133. /* readonly */
  13134. StringHash type;
  13135. /* readonly */
  13136. String typeName;
  13137. bool visible;
  13138. /* readonly */
  13139. int weakRefs;
  13140. /* readonly */
  13141. int width;
  13142. };
  13143. class TileMapObject2D
  13144. {
  13145. public:
  13146. // Methods:
  13147. bool HasProperty(const String&) const;
  13148. const String& GetProperty(const String&) const;
  13149. const Vector2& GetPoint(uint) const;
  13150. // Properties:
  13151. /* readonly */
  13152. String name;
  13153. /* readonly */
  13154. uint numPoints;
  13155. /* readonly */
  13156. TileObjectType2D objectType;
  13157. /* readonly */
  13158. Vector2 position;
  13159. /* readonly */
  13160. int refs;
  13161. /* readonly */
  13162. Vector2 size;
  13163. /* readonly */
  13164. int tileGid;
  13165. /* readonly */
  13166. Sprite2D tileSprite;
  13167. /* readonly */
  13168. String type;
  13169. /* readonly */
  13170. int weakRefs;
  13171. };
  13172. class Time
  13173. {
  13174. public:
  13175. // Methods:
  13176. bool HasSubscribedToEvent(Object, const String&);
  13177. bool HasSubscribedToEvent(const String&);
  13178. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13179. // Properties:
  13180. /* readonly */
  13181. String category;
  13182. /* readonly */
  13183. float elapsedTime;
  13184. /* readonly */
  13185. uint frameNumber;
  13186. /* readonly */
  13187. int refs;
  13188. /* readonly */
  13189. uint systemTime;
  13190. /* readonly */
  13191. uint timeSinceEpoch;
  13192. /* readonly */
  13193. String timeStamp;
  13194. /* readonly */
  13195. float timeStep;
  13196. /* readonly */
  13197. StringHash type;
  13198. /* readonly */
  13199. String typeName;
  13200. /* readonly */
  13201. int weakRefs;
  13202. };
  13203. class Timer
  13204. {
  13205. public:
  13206. Timer();
  13207. // Methods:
  13208. uint GetMSec(bool);
  13209. void Reset();
  13210. };
  13211. class TmxFile2D
  13212. {
  13213. public:
  13214. TmxFile2D();
  13215. TmxFile2D(const String&in);
  13216. // Methods:
  13217. bool HasSubscribedToEvent(Object, const String&);
  13218. bool HasSubscribedToEvent(const String&);
  13219. bool Load(File);
  13220. bool Load(VectorBuffer&);
  13221. bool Load(const String&);
  13222. bool Save(File) const;
  13223. bool Save(VectorBuffer&) const;
  13224. bool Save(const String&) const;
  13225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13226. // Properties:
  13227. /* readonly */
  13228. String category;
  13229. /* readonly */
  13230. uint memoryUse;
  13231. String name;
  13232. /* readonly */
  13233. int refs;
  13234. /* readonly */
  13235. StringHash type;
  13236. /* readonly */
  13237. String typeName;
  13238. /* readonly */
  13239. uint useTimer;
  13240. /* readonly */
  13241. int weakRefs;
  13242. };
  13243. class ToolTip
  13244. {
  13245. public:
  13246. ToolTip();
  13247. ToolTip(const String&in);
  13248. // Methods:
  13249. void AddChild(UIElement);
  13250. void AddTag(const String&);
  13251. void AddTags(const String&, int8 = ';');
  13252. void ApplyAttributes();
  13253. void BringToFront();
  13254. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13255. void DisableLayoutUpdate();
  13256. IntVector2 ElementToScreen(const IntVector2&);
  13257. void EnableLayoutUpdate();
  13258. uint FindChild(UIElement) const;
  13259. Variant GetAttribute(const String&) const;
  13260. ValueAnimation GetAttributeAnimation(const String&) const;
  13261. float GetAttributeAnimationSpeed(const String&) const;
  13262. float GetAttributeAnimationTime(const String&) const;
  13263. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13264. Variant GetAttributeDefault(const String&) const;
  13265. UIElement GetChild(const String&, bool = false) const;
  13266. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13267. Array<UIElement> GetChildren(bool = false) const;
  13268. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13269. UIElement GetElementEventSender() const;
  13270. bool GetInterceptNetworkUpdate(const String&) const;
  13271. uint GetNumChildren(bool) const;
  13272. bool HasSubscribedToEvent(Object, const String&);
  13273. bool HasSubscribedToEvent(const String&);
  13274. bool HasTag(const String&) const;
  13275. void InsertChild(uint, UIElement);
  13276. bool IsInside(IntVector2, bool);
  13277. bool IsInsideCombined(IntVector2, bool);
  13278. bool Load(File, bool = false);
  13279. bool Load(VectorBuffer&, bool = false);
  13280. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13281. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13282. bool LoadJSON(const JSONValue&, bool = false);
  13283. bool LoadXML(File);
  13284. bool LoadXML(VectorBuffer&);
  13285. bool LoadXML(XMLFile, XMLFile);
  13286. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13287. bool LoadXML(const XMLElement&, bool = false);
  13288. void MarkNetworkUpdate() const;
  13289. void Remove();
  13290. void RemoveAllChildren();
  13291. void RemoveAllTags();
  13292. void RemoveAttributeAnimation(const String&);
  13293. void RemoveChild(UIElement, uint = 0);
  13294. void RemoveChild(uint);
  13295. void RemoveInstanceDefault();
  13296. void RemoveObjectAnimation();
  13297. bool RemoveTag(const String&);
  13298. void ResetDeepEnabled();
  13299. void ResetToDefault();
  13300. bool Save(File) const;
  13301. bool Save(VectorBuffer&) const;
  13302. bool SaveJSON(JSONValue&) const;
  13303. bool SaveXML(File, const String& = "\t");
  13304. bool SaveXML(VectorBuffer&, const String& = "\t");
  13305. bool SaveXML(XMLElement&) const;
  13306. IntVector2 ScreenToElement(const IntVector2&);
  13307. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13308. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13309. void SetAnimationTime(float);
  13310. bool SetAttribute(const String&, const Variant&);
  13311. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13312. void SetAttributeAnimationSpeed(const String&, float);
  13313. void SetAttributeAnimationTime(const String&, float);
  13314. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13315. void SetDeepEnabled(bool);
  13316. void SetEnabledRecursive(bool);
  13317. void SetFixedHeight(int);
  13318. void SetFixedSize(int, int);
  13319. void SetFixedWidth(int);
  13320. void SetInterceptNetworkUpdate(const String&, bool);
  13321. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13322. void SetMaxAnchor(float, float);
  13323. void SetMaxSize(int, int);
  13324. void SetMinAnchor(float, float);
  13325. void SetMinSize(int, int);
  13326. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13327. void SetPivot(float, float);
  13328. void SetPosition(int, int);
  13329. void SetSize(int, int);
  13330. bool SetStyle(const String&, XMLFile = null);
  13331. bool SetStyle(const XMLElement&);
  13332. bool SetStyleAuto(XMLFile = null);
  13333. void UpdateLayout();
  13334. const Variant& GetVar(const StringHash&);
  13335. // Properties:
  13336. bool animationEnabled;
  13337. /* readonly */
  13338. Array<Variant> attributeDefaults;
  13339. /* readonly */
  13340. Array<AttributeInfo> attributeInfos;
  13341. Array<Variant> attributes;
  13342. bool bringToBack;
  13343. bool bringToFront;
  13344. /* readonly */
  13345. String category;
  13346. /* readonly */
  13347. IntVector2 childOffset;
  13348. /* readonly */
  13349. Array<UIElement> children;
  13350. IntRect clipBorder;
  13351. bool clipChildren;
  13352. /* writeonly */
  13353. Color color;
  13354. /* readonly */
  13355. bool colorGradient;
  13356. Array<Color> colors;
  13357. /* readonly */
  13358. IntRect combinedScreenRect;
  13359. XMLFile defaultStyle;
  13360. float delay;
  13361. /* readonly */
  13362. float derivedOpacity;
  13363. /* readonly */
  13364. uint dragButtonCombo;
  13365. /* readonly */
  13366. int dragButtonCount;
  13367. uint dragDropMode;
  13368. bool editable;
  13369. bool elementEventSender;
  13370. bool enableAnchor;
  13371. bool enabled;
  13372. /* readonly */
  13373. bool enabledSelf;
  13374. /* readonly */
  13375. bool fixedHeight;
  13376. /* readonly */
  13377. bool fixedSize;
  13378. /* readonly */
  13379. bool fixedWidth;
  13380. bool focus;
  13381. FocusMode focusMode;
  13382. int height;
  13383. HorizontalAlignment horizontalAlignment;
  13384. /* readonly */
  13385. bool hovering;
  13386. int indent;
  13387. int indentSpacing;
  13388. /* readonly */
  13389. int indentWidth;
  13390. bool internal;
  13391. IntRect layoutBorder;
  13392. Vector2 layoutFlexScale;
  13393. LayoutMode layoutMode;
  13394. int layoutSpacing;
  13395. Vector2 maxAnchor;
  13396. int maxHeight;
  13397. IntVector2 maxOffset;
  13398. IntVector2 maxSize;
  13399. int maxWidth;
  13400. Vector2 minAnchor;
  13401. int minHeight;
  13402. IntVector2 minOffset;
  13403. IntVector2 minSize;
  13404. int minWidth;
  13405. String name;
  13406. /* readonly */
  13407. uint numAllChildren;
  13408. /* readonly */
  13409. uint numAttributes;
  13410. /* readonly */
  13411. uint numChildren;
  13412. ObjectAnimation objectAnimation;
  13413. float opacity;
  13414. UIElement parent;
  13415. Vector2 pivot;
  13416. IntVector2 position;
  13417. int priority;
  13418. /* readonly */
  13419. int refs;
  13420. /* readonly */
  13421. UIElement root;
  13422. /* readonly */
  13423. IntVector2 screenPosition;
  13424. bool selected;
  13425. IntVector2 size;
  13426. bool sortChildren;
  13427. String style;
  13428. /* readonly */
  13429. Array<String> tags;
  13430. bool temporary;
  13431. TraversalMode traversalMode;
  13432. /* readonly */
  13433. StringHash type;
  13434. /* readonly */
  13435. String typeName;
  13436. bool useDerivedOpacity;
  13437. /* readonly */
  13438. VariantMap vars;
  13439. VerticalAlignment verticalAlignment;
  13440. bool visible;
  13441. /* readonly */
  13442. bool visibleEffective;
  13443. /* readonly */
  13444. int weakRefs;
  13445. int width;
  13446. };
  13447. class TouchState
  13448. {
  13449. public:
  13450. // Properties:
  13451. IntVector2 delta;
  13452. IntVector2 lastPosition;
  13453. IntVector2 position;
  13454. float pressure;
  13455. int touchID;
  13456. /* readonly */
  13457. UIElement touchedElement;
  13458. };
  13459. class UI
  13460. {
  13461. public:
  13462. // Methods:
  13463. void Clear();
  13464. void DebugDraw(UIElement);
  13465. UIElement GetElementAt(const IntVector2&, bool = true);
  13466. UIElement GetElementAt(int, int, bool = true);
  13467. bool HasModalElement() const;
  13468. bool HasSubscribedToEvent(Object, const String&);
  13469. bool HasSubscribedToEvent(const String&);
  13470. bool IsDragging() const;
  13471. UIElement LoadLayout(File);
  13472. UIElement LoadLayout(File, XMLFile);
  13473. UIElement LoadLayout(VectorBuffer&);
  13474. UIElement LoadLayout(VectorBuffer&, XMLFile);
  13475. UIElement LoadLayout(XMLFile);
  13476. UIElement LoadLayout(XMLFile, XMLFile);
  13477. bool SaveLayout(File, UIElement);
  13478. bool SaveLayout(VectorBuffer&, UIElement);
  13479. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13480. void SetCustomSize(int, int);
  13481. void SetFocusElement(UIElement, bool = false);
  13482. void SetHeight(float);
  13483. void SetWidth(float);
  13484. const Array<UIElement> GetDragElements();
  13485. // Properties:
  13486. /* readonly */
  13487. String category;
  13488. String clipBoardText;
  13489. Cursor cursor;
  13490. /* readonly */
  13491. IntVector2 cursorPosition;
  13492. IntVector2 customSize;
  13493. float defaultToolTipDelay;
  13494. float doubleClickInterval;
  13495. int dragBeginDistance;
  13496. float dragBeginInterval;
  13497. UIElement focusElement;
  13498. FontHintLevel fontHintLevel;
  13499. int fontOversampling;
  13500. float fontSubpixelThreshold;
  13501. bool forceAutoHint;
  13502. /* readonly */
  13503. UIElement frontElement;
  13504. int maxFontTextureSize;
  13505. /* readonly */
  13506. UIElement modalRoot;
  13507. bool nonFocusedMouseWheel;
  13508. /* readonly */
  13509. int refs;
  13510. /* readonly */
  13511. UIElement root;
  13512. float scale;
  13513. /* readonly */
  13514. StringHash type;
  13515. /* readonly */
  13516. String typeName;
  13517. bool useMutableGlyphs;
  13518. bool useScreenKeyboard;
  13519. bool useSystemClipboard;
  13520. /* readonly */
  13521. int weakRefs;
  13522. };
  13523. class UIComponent
  13524. {
  13525. public:
  13526. // Methods:
  13527. void ApplyAttributes();
  13528. Variant GetAttribute(const String&) const;
  13529. ValueAnimation GetAttributeAnimation(const String&) const;
  13530. float GetAttributeAnimationSpeed(const String&) const;
  13531. float GetAttributeAnimationTime(const String&) const;
  13532. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13533. Variant GetAttributeDefault(const String&) const;
  13534. bool GetInterceptNetworkUpdate(const String&) const;
  13535. bool HasSubscribedToEvent(Object, const String&);
  13536. bool HasSubscribedToEvent(const String&);
  13537. bool Load(File, bool = false);
  13538. bool Load(VectorBuffer&, bool = false);
  13539. bool LoadJSON(const JSONValue&, bool = false);
  13540. bool LoadXML(const XMLElement&, bool = false);
  13541. void MarkNetworkUpdate() const;
  13542. void Remove();
  13543. void RemoveAttributeAnimation(const String&);
  13544. void RemoveInstanceDefault();
  13545. void RemoveObjectAnimation();
  13546. void ResetToDefault();
  13547. bool Save(File) const;
  13548. bool Save(VectorBuffer&) const;
  13549. bool SaveJSON(JSONValue&) const;
  13550. bool SaveXML(XMLElement&) const;
  13551. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13552. void SetAnimationTime(float);
  13553. bool SetAttribute(const String&, const Variant&);
  13554. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13555. void SetAttributeAnimationSpeed(const String&, float);
  13556. void SetAttributeAnimationTime(const String&, float);
  13557. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13558. void SetInterceptNetworkUpdate(const String&, bool);
  13559. // Properties:
  13560. bool animationEnabled;
  13561. /* readonly */
  13562. Array<Variant> attributeDefaults;
  13563. /* readonly */
  13564. Array<AttributeInfo> attributeInfos;
  13565. Array<Variant> attributes;
  13566. /* readonly */
  13567. String category;
  13568. bool enabled;
  13569. /* readonly */
  13570. bool enabledEffective;
  13571. /* readonly */
  13572. uint id;
  13573. /* readonly */
  13574. Material material;
  13575. /* readonly */
  13576. Node node;
  13577. /* readonly */
  13578. uint numAttributes;
  13579. ObjectAnimation objectAnimation;
  13580. /* readonly */
  13581. int refs;
  13582. /* readonly */
  13583. UIElement root;
  13584. bool temporary;
  13585. /* readonly */
  13586. Texture2D texture;
  13587. /* readonly */
  13588. StringHash type;
  13589. /* readonly */
  13590. String typeName;
  13591. /* readonly */
  13592. int weakRefs;
  13593. };
  13594. class UIElement
  13595. {
  13596. public:
  13597. UIElement();
  13598. UIElement(const String&in);
  13599. // Methods:
  13600. void AddChild(UIElement);
  13601. void AddTag(const String&);
  13602. void AddTags(const String&, int8 = ';');
  13603. void ApplyAttributes();
  13604. void BringToFront();
  13605. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13606. void DisableLayoutUpdate();
  13607. IntVector2 ElementToScreen(const IntVector2&);
  13608. void EnableLayoutUpdate();
  13609. uint FindChild(UIElement) const;
  13610. Variant GetAttribute(const String&) const;
  13611. ValueAnimation GetAttributeAnimation(const String&) const;
  13612. float GetAttributeAnimationSpeed(const String&) const;
  13613. float GetAttributeAnimationTime(const String&) const;
  13614. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13615. Variant GetAttributeDefault(const String&) const;
  13616. UIElement GetChild(const String&, bool = false) const;
  13617. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13618. Array<UIElement> GetChildren(bool = false) const;
  13619. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13620. UIElement GetElementEventSender() const;
  13621. bool GetInterceptNetworkUpdate(const String&) const;
  13622. uint GetNumChildren(bool) const;
  13623. bool HasSubscribedToEvent(Object, const String&);
  13624. bool HasSubscribedToEvent(const String&);
  13625. bool HasTag(const String&) const;
  13626. void InsertChild(uint, UIElement);
  13627. bool IsInside(IntVector2, bool);
  13628. bool IsInsideCombined(IntVector2, bool);
  13629. bool Load(File, bool = false);
  13630. bool Load(VectorBuffer&, bool = false);
  13631. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13632. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13633. bool LoadJSON(const JSONValue&, bool = false);
  13634. bool LoadXML(File);
  13635. bool LoadXML(VectorBuffer&);
  13636. bool LoadXML(XMLFile, XMLFile);
  13637. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13638. bool LoadXML(const XMLElement&, bool = false);
  13639. void MarkNetworkUpdate() const;
  13640. void Remove();
  13641. void RemoveAllChildren();
  13642. void RemoveAllTags();
  13643. void RemoveAttributeAnimation(const String&);
  13644. void RemoveChild(UIElement, uint = 0);
  13645. void RemoveChild(uint);
  13646. void RemoveInstanceDefault();
  13647. void RemoveObjectAnimation();
  13648. bool RemoveTag(const String&);
  13649. void ResetDeepEnabled();
  13650. void ResetToDefault();
  13651. bool Save(File) const;
  13652. bool Save(VectorBuffer&) const;
  13653. bool SaveJSON(JSONValue&) const;
  13654. bool SaveXML(File, const String& = "\t");
  13655. bool SaveXML(VectorBuffer&, const String& = "\t");
  13656. bool SaveXML(XMLElement&) const;
  13657. IntVector2 ScreenToElement(const IntVector2&);
  13658. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13659. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13660. void SetAnimationTime(float);
  13661. bool SetAttribute(const String&, const Variant&);
  13662. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13663. void SetAttributeAnimationSpeed(const String&, float);
  13664. void SetAttributeAnimationTime(const String&, float);
  13665. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13666. void SetDeepEnabled(bool);
  13667. void SetEnabledRecursive(bool);
  13668. void SetFixedHeight(int);
  13669. void SetFixedSize(int, int);
  13670. void SetFixedWidth(int);
  13671. void SetInterceptNetworkUpdate(const String&, bool);
  13672. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13673. void SetMaxAnchor(float, float);
  13674. void SetMaxSize(int, int);
  13675. void SetMinAnchor(float, float);
  13676. void SetMinSize(int, int);
  13677. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13678. void SetPivot(float, float);
  13679. void SetPosition(int, int);
  13680. void SetSize(int, int);
  13681. bool SetStyle(const String&, XMLFile = null);
  13682. bool SetStyle(const XMLElement&);
  13683. bool SetStyleAuto(XMLFile = null);
  13684. void UpdateLayout();
  13685. const Variant& GetVar(const StringHash&);
  13686. // Properties:
  13687. bool animationEnabled;
  13688. /* readonly */
  13689. Array<Variant> attributeDefaults;
  13690. /* readonly */
  13691. Array<AttributeInfo> attributeInfos;
  13692. Array<Variant> attributes;
  13693. bool bringToBack;
  13694. bool bringToFront;
  13695. /* readonly */
  13696. String category;
  13697. /* readonly */
  13698. IntVector2 childOffset;
  13699. /* readonly */
  13700. Array<UIElement> children;
  13701. IntRect clipBorder;
  13702. bool clipChildren;
  13703. /* writeonly */
  13704. Color color;
  13705. /* readonly */
  13706. bool colorGradient;
  13707. Array<Color> colors;
  13708. /* readonly */
  13709. IntRect combinedScreenRect;
  13710. XMLFile defaultStyle;
  13711. /* readonly */
  13712. float derivedOpacity;
  13713. /* readonly */
  13714. uint dragButtonCombo;
  13715. /* readonly */
  13716. int dragButtonCount;
  13717. uint dragDropMode;
  13718. bool editable;
  13719. bool elementEventSender;
  13720. bool enableAnchor;
  13721. bool enabled;
  13722. /* readonly */
  13723. bool enabledSelf;
  13724. /* readonly */
  13725. bool fixedHeight;
  13726. /* readonly */
  13727. bool fixedSize;
  13728. /* readonly */
  13729. bool fixedWidth;
  13730. bool focus;
  13731. FocusMode focusMode;
  13732. int height;
  13733. HorizontalAlignment horizontalAlignment;
  13734. /* readonly */
  13735. bool hovering;
  13736. int indent;
  13737. int indentSpacing;
  13738. /* readonly */
  13739. int indentWidth;
  13740. bool internal;
  13741. IntRect layoutBorder;
  13742. Vector2 layoutFlexScale;
  13743. LayoutMode layoutMode;
  13744. int layoutSpacing;
  13745. Vector2 maxAnchor;
  13746. int maxHeight;
  13747. IntVector2 maxOffset;
  13748. IntVector2 maxSize;
  13749. int maxWidth;
  13750. Vector2 minAnchor;
  13751. int minHeight;
  13752. IntVector2 minOffset;
  13753. IntVector2 minSize;
  13754. int minWidth;
  13755. String name;
  13756. /* readonly */
  13757. uint numAllChildren;
  13758. /* readonly */
  13759. uint numAttributes;
  13760. /* readonly */
  13761. uint numChildren;
  13762. ObjectAnimation objectAnimation;
  13763. float opacity;
  13764. UIElement parent;
  13765. Vector2 pivot;
  13766. IntVector2 position;
  13767. int priority;
  13768. /* readonly */
  13769. int refs;
  13770. /* readonly */
  13771. UIElement root;
  13772. /* readonly */
  13773. IntVector2 screenPosition;
  13774. bool selected;
  13775. IntVector2 size;
  13776. bool sortChildren;
  13777. String style;
  13778. /* readonly */
  13779. Array<String> tags;
  13780. bool temporary;
  13781. TraversalMode traversalMode;
  13782. /* readonly */
  13783. StringHash type;
  13784. /* readonly */
  13785. String typeName;
  13786. bool useDerivedOpacity;
  13787. /* readonly */
  13788. VariantMap vars;
  13789. VerticalAlignment verticalAlignment;
  13790. bool visible;
  13791. /* readonly */
  13792. bool visibleEffective;
  13793. /* readonly */
  13794. int weakRefs;
  13795. int width;
  13796. };
  13797. class ValueAnimation
  13798. {
  13799. public:
  13800. ValueAnimation();
  13801. ValueAnimation(const String&in);
  13802. // Methods:
  13803. bool HasSubscribedToEvent(Object, const String&);
  13804. bool HasSubscribedToEvent(const String&);
  13805. bool Load(File);
  13806. bool Load(VectorBuffer&);
  13807. bool Load(const String&);
  13808. bool Save(File) const;
  13809. bool Save(VectorBuffer&) const;
  13810. bool Save(const String&) const;
  13811. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13812. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  13813. void SetKeyFrame(float, const Variant&);
  13814. // Properties:
  13815. /* readonly */
  13816. String category;
  13817. InterpMethod interpolationMethod;
  13818. /* readonly */
  13819. uint memoryUse;
  13820. String name;
  13821. /* readonly */
  13822. int refs;
  13823. float splineTension;
  13824. /* readonly */
  13825. StringHash type;
  13826. /* readonly */
  13827. String typeName;
  13828. /* readonly */
  13829. uint useTimer;
  13830. VariantType valueType;
  13831. /* readonly */
  13832. int weakRefs;
  13833. };
  13834. class Variant
  13835. {
  13836. public:
  13837. ~Variant();
  13838. Variant();
  13839. Variant(const Variant&in);
  13840. Variant(int);
  13841. Variant(uint);
  13842. Variant(int64);
  13843. Variant(uint64);
  13844. Variant(const StringHash&in);
  13845. Variant(bool);
  13846. Variant(float);
  13847. Variant(double);
  13848. Variant(const Vector2&in);
  13849. Variant(const Vector3&in);
  13850. Variant(const Vector4&in);
  13851. Variant(const Quaternion&in);
  13852. Variant(const Color&in);
  13853. Variant(const String&in);
  13854. Variant(const ResourceRef&in);
  13855. Variant(const ResourceRefList&in);
  13856. Variant(const Variant[]@);
  13857. Variant(const String[]@);
  13858. Variant(const VariantMap&in);
  13859. Variant(const Rect&in);
  13860. Variant(const IntRect&in);
  13861. Variant(const IntVector2&in);
  13862. Variant(const IntVector3&in);
  13863. Variant(RefCounted@);
  13864. Variant(ScriptObject@);
  13865. Variant(const Matrix3&in);
  13866. Variant(const Matrix3x4&in);
  13867. Variant(const Matrix4&in);
  13868. Variant(const String&in, const String&in);
  13869. Variant(VariantType, const String&in);
  13870. Variant(const VectorBuffer&in);
  13871. // Methods:
  13872. void Clear();
  13873. const Color& GetColor() const;
  13874. void FromString(VariantType, const String&);
  13875. void FromString(const String&, const String&);
  13876. bool GetBool() const;
  13877. VectorBuffer GetBuffer() const;
  13878. double GetDouble() const;
  13879. float GetFloat() const;
  13880. int GetInt() const;
  13881. int GetInt64() const;
  13882. RefCounted GetPtr() const;
  13883. ScriptObject GetScriptObject() const;
  13884. StringHash GetStringHash() const;
  13885. Array<String> GetStringVector() const;
  13886. uint GetUInt() const;
  13887. uint64 GetUInt64() const;
  13888. Array<Variant> GetVariantVector() const;
  13889. const IntRect& GetIntRect() const;
  13890. const IntVector2& GetIntVector2() const;
  13891. const IntVector3& GetIntVector3() const;
  13892. const Matrix3& GetMatrix3() const;
  13893. const Matrix3x4& GetMatrix3x4() const;
  13894. const Matrix4& GetMatrix4() const;
  13895. const Quaternion& GetQuaternion() const;
  13896. const Rect& GetRect() const;
  13897. const ResourceRef& GetResourceRef() const;
  13898. const ResourceRefList& GetResourceRefList() const;
  13899. const String& GetString() const;
  13900. String ToString() const;
  13901. const VariantMap& GetVariantMap() const;
  13902. const Vector2& GetVector2() const;
  13903. const Vector3& GetVector3() const;
  13904. const Vector4& GetVector4() const;
  13905. // Properties:
  13906. /* readonly */
  13907. bool empty;
  13908. /* readonly */
  13909. VariantType type;
  13910. /* readonly */
  13911. String typeName;
  13912. /* readonly */
  13913. bool zero;
  13914. };
  13915. class VariantMap
  13916. {
  13917. public:
  13918. ~VariantMap();
  13919. VariantMap();
  13920. VariantMap(const VariantMap&in);
  13921. // Methods:
  13922. void Clear();
  13923. bool Contains(StringHash) const;
  13924. bool Contains(const String&) const;
  13925. bool Erase(StringHash);
  13926. bool Erase(const String&);
  13927. // Properties:
  13928. /* readonly */
  13929. Array<StringHash> keys;
  13930. /* readonly */
  13931. uint length;
  13932. /* readonly */
  13933. Array<Variant> values;
  13934. };
  13935. class Vector2
  13936. {
  13937. public:
  13938. Vector2();
  13939. Vector2(const Vector2&in);
  13940. Vector2(const IntVector2&in);
  13941. Vector2(float, float);
  13942. Vector2(float[]&inout);
  13943. // Methods:
  13944. Vector2 Abs() const;
  13945. float AbsDotProduct(const Vector2&) const;
  13946. float Angle(const Vector2&) const;
  13947. float DotProduct(const Vector2&) const;
  13948. bool Equals(const Vector2&) const;
  13949. bool IsNaN() const;
  13950. Vector2 Lerp(const Vector2&, float) const;
  13951. void Normalize();
  13952. Vector2 Normalized() const;
  13953. float ProjectOntoAxis(const Vector2&) const;
  13954. String ToString() const;
  13955. // Properties:
  13956. /* readonly */
  13957. Array<float> data;
  13958. /* readonly */
  13959. float length;
  13960. /* readonly */
  13961. float lengthSquared;
  13962. float x;
  13963. float y;
  13964. // Constants:
  13965. static const Vector2 DOWN;
  13966. static const Vector2 LEFT;
  13967. static const Vector2 ONE;
  13968. static const Vector2 RIGHT;
  13969. static const Vector2 UP;
  13970. static const Vector2 ZERO;
  13971. };
  13972. class Vector3
  13973. {
  13974. public:
  13975. Vector3();
  13976. Vector3(const Vector3&in);
  13977. Vector3(const Vector2&in, float);
  13978. Vector3(const Vector2&in);
  13979. Vector3(const IntVector3&in);
  13980. Vector3(float, float, float);
  13981. Vector3(float, float);
  13982. Vector3(float[]&inout);
  13983. // Methods:
  13984. Vector3 Abs() const;
  13985. float AbsDotProduct(const Vector3&) const;
  13986. float Angle(const Vector3&) const;
  13987. Vector3 CrossProduct(const Vector3&) const;
  13988. float DotProduct(const Vector3&) const;
  13989. bool Equals(const Vector3&) const;
  13990. bool IsNaN() const;
  13991. Vector3 Lerp(const Vector3&, float) const;
  13992. void Normalize();
  13993. Vector3 Normalized() const;
  13994. Vector3 Orthogonalize(const Vector3&) const;
  13995. float ProjectOntoAxis(const Vector3&) const;
  13996. String ToString() const;
  13997. // Properties:
  13998. /* readonly */
  13999. Array<float> data;
  14000. /* readonly */
  14001. float length;
  14002. /* readonly */
  14003. float lengthSquared;
  14004. float x;
  14005. float y;
  14006. float z;
  14007. // Constants:
  14008. static const Vector3 BACK;
  14009. static const Vector3 DOWN;
  14010. static const Vector3 FORWARD;
  14011. static const Vector3 LEFT;
  14012. static const Vector3 ONE;
  14013. static const Vector3 RIGHT;
  14014. static const Vector3 UP;
  14015. static const Vector3 ZERO;
  14016. };
  14017. class Vector4
  14018. {
  14019. public:
  14020. Vector4();
  14021. Vector4(const Vector4&in);
  14022. Vector4(float, float, float, float);
  14023. Vector4(const Vector3&in, float);
  14024. Vector4(float[]&inout);
  14025. // Methods:
  14026. Vector4 Abs() const;
  14027. float AbsDotProduct(const Vector4&) const;
  14028. float DotProduct(const Vector4&) const;
  14029. bool Equals(const Vector4&) const;
  14030. bool IsNaN() const;
  14031. Vector4 Lerp(const Vector4&, float) const;
  14032. float ProjectOntoAxis(const Vector3&) const;
  14033. String ToString() const;
  14034. // Properties:
  14035. /* readonly */
  14036. Array<float> data;
  14037. float w;
  14038. float x;
  14039. float y;
  14040. float z;
  14041. };
  14042. class VectorBuffer
  14043. {
  14044. public:
  14045. ~VectorBuffer();
  14046. VectorBuffer();
  14047. VectorBuffer(const VectorBuffer&in);
  14048. VectorBuffer(Deserializer@, uint);
  14049. // Methods:
  14050. void Clear();
  14051. Array<uint8> Read(uint);
  14052. bool ReadBool();
  14053. BoundingBox ReadBoundingBox();
  14054. int8 ReadByte();
  14055. Color ReadColor();
  14056. double ReadDouble();
  14057. String ReadFileID();
  14058. float ReadFloat();
  14059. int ReadInt();
  14060. int64 ReadInt64();
  14061. IntRect ReadIntRect();
  14062. IntVector2 ReadIntVector2();
  14063. String ReadLine();
  14064. Matrix3 ReadMatrix3();
  14065. Matrix3x4 ReadMatrix3x4();
  14066. Matrix4 ReadMatrix4();
  14067. uint ReadNetID();
  14068. Quaternion ReadPackedQuaternion();
  14069. Vector3 ReadPackedVector3(float);
  14070. Quaternion ReadQuaternion();
  14071. int16 ReadShort();
  14072. String ReadString();
  14073. StringHash ReadStringHash();
  14074. uint8 ReadUByte();
  14075. uint ReadUInt();
  14076. uint64 ReadUInt64();
  14077. uint16 ReadUShort();
  14078. uint ReadVLE();
  14079. Variant ReadVariant();
  14080. VariantMap ReadVariantMap();
  14081. Vector2 ReadVector2();
  14082. Vector3 ReadVector3();
  14083. Vector4 ReadVector4();
  14084. VectorBuffer ReadVectorBuffer(uint);
  14085. void Resize(uint);
  14086. uint Seek(uint);
  14087. uint SeekRelative(int);
  14088. void SetData(Deserializer, uint);
  14089. uint Tell() const;
  14090. uint Write(Array<uint8>);
  14091. bool WriteBool(bool);
  14092. bool WriteBoundingBox(const BoundingBox&);
  14093. bool WriteByte(int8);
  14094. bool WriteColor(const Color&);
  14095. bool WriteDouble(double);
  14096. bool WriteFileID(const String&);
  14097. bool WriteFloat(float);
  14098. bool WriteInt(int);
  14099. bool WriteInt64(int64);
  14100. bool WriteIntRect(const IntRect&);
  14101. bool WriteIntVector2(const IntVector2&);
  14102. bool WriteLine(const String&);
  14103. bool WriteMatrix3(const Matrix3&);
  14104. bool WriteMatrix3x4(const Matrix3x4&);
  14105. bool WriteMatrix4(const Matrix4&);
  14106. bool WriteNetID(uint);
  14107. bool WritePackedQuaternion(const Quaternion&);
  14108. bool WritePackedVector3(const Vector3&, float);
  14109. bool WriteQuaternion(const Quaternion&);
  14110. bool WriteShort(int16);
  14111. bool WriteString(const String&);
  14112. bool WriteStringHash(const StringHash&);
  14113. bool WriteUByte(uint8);
  14114. bool WriteUInt(uint);
  14115. bool WriteUInt64(uint64);
  14116. bool WriteUShort(uint16);
  14117. bool WriteVLE(uint);
  14118. bool WriteVariant(const Variant&);
  14119. bool WriteVariantMap(const VariantMap&);
  14120. bool WriteVector2(const Vector2&);
  14121. bool WriteVector3(const Vector3&);
  14122. bool WriteVector4(const Vector4&);
  14123. bool WriteVectorBuffer(const VectorBuffer&);
  14124. // Properties:
  14125. /* readonly */
  14126. uint checksum;
  14127. /* readonly */
  14128. bool eof;
  14129. /* readonly */
  14130. String name;
  14131. /* readonly */
  14132. uint position;
  14133. /* readonly */
  14134. uint size;
  14135. };
  14136. class VertexBuffer
  14137. {
  14138. public:
  14139. VertexBuffer();
  14140. // Methods:
  14141. VectorBuffer GetData() const;
  14142. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  14143. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14144. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  14145. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14146. bool HasSubscribedToEvent(Object, const String&);
  14147. bool HasSubscribedToEvent(const String&);
  14148. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14149. bool SetData(VectorBuffer&);
  14150. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  14151. void SetSize(uint, Array<VertexElement>, bool = false);
  14152. void SetSize(uint, uint, bool = false);
  14153. // Properties:
  14154. /* readonly */
  14155. String category;
  14156. /* readonly */
  14157. bool dynamic;
  14158. /* readonly */
  14159. uint elementMask;
  14160. /* readonly */
  14161. Array<VertexElement> elements;
  14162. /* readonly */
  14163. int refs;
  14164. bool shadowed;
  14165. /* readonly */
  14166. StringHash type;
  14167. /* readonly */
  14168. String typeName;
  14169. /* readonly */
  14170. uint vertexCount;
  14171. /* readonly */
  14172. uint vertexSize;
  14173. /* readonly */
  14174. int weakRefs;
  14175. };
  14176. class VertexElement
  14177. {
  14178. public:
  14179. ~VertexElement();
  14180. VertexElement();
  14181. VertexElement(const VertexElement&in);
  14182. VertexElement(VertexElementType, VertexElementSemantic, uint8 index = 0, bool perInstance = false);
  14183. // Properties:
  14184. uint8 index;
  14185. uint offset;
  14186. bool perInstance;
  14187. VertexElementSemantic semantic;
  14188. VertexElementType type;
  14189. };
  14190. class View3D
  14191. {
  14192. public:
  14193. View3D();
  14194. View3D(const String&in);
  14195. // Methods:
  14196. void AddChild(UIElement);
  14197. void AddTag(const String&);
  14198. void AddTags(const String&, int8 = ';');
  14199. void ApplyAttributes();
  14200. void BringToFront();
  14201. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14202. void DisableLayoutUpdate();
  14203. IntVector2 ElementToScreen(const IntVector2&);
  14204. void EnableLayoutUpdate();
  14205. uint FindChild(UIElement) const;
  14206. Variant GetAttribute(const String&) const;
  14207. ValueAnimation GetAttributeAnimation(const String&) const;
  14208. float GetAttributeAnimationSpeed(const String&) const;
  14209. float GetAttributeAnimationTime(const String&) const;
  14210. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14211. Variant GetAttributeDefault(const String&) const;
  14212. UIElement GetChild(const String&, bool = false) const;
  14213. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14214. Array<UIElement> GetChildren(bool = false) const;
  14215. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14216. UIElement GetElementEventSender() const;
  14217. bool GetInterceptNetworkUpdate(const String&) const;
  14218. uint GetNumChildren(bool) const;
  14219. bool HasSubscribedToEvent(Object, const String&);
  14220. bool HasSubscribedToEvent(const String&);
  14221. bool HasTag(const String&) const;
  14222. void InsertChild(uint, UIElement);
  14223. bool IsInside(IntVector2, bool);
  14224. bool IsInsideCombined(IntVector2, bool);
  14225. bool Load(File, bool = false);
  14226. bool Load(VectorBuffer&, bool = false);
  14227. UIElement LoadChildXML(XMLFile, XMLFile = null);
  14228. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  14229. bool LoadJSON(const JSONValue&, bool = false);
  14230. bool LoadXML(File);
  14231. bool LoadXML(VectorBuffer&);
  14232. bool LoadXML(XMLFile, XMLFile);
  14233. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  14234. bool LoadXML(const XMLElement&, bool = false);
  14235. void MarkNetworkUpdate() const;
  14236. void QueueUpdate();
  14237. void Remove();
  14238. void RemoveAllChildren();
  14239. void RemoveAllTags();
  14240. void RemoveAttributeAnimation(const String&);
  14241. void RemoveChild(UIElement, uint = 0);
  14242. void RemoveChild(uint);
  14243. void RemoveInstanceDefault();
  14244. void RemoveObjectAnimation();
  14245. bool RemoveTag(const String&);
  14246. void ResetDeepEnabled();
  14247. void ResetToDefault();
  14248. bool Save(File) const;
  14249. bool Save(VectorBuffer&) const;
  14250. bool SaveJSON(JSONValue&) const;
  14251. bool SaveXML(File, const String& = "\t");
  14252. bool SaveXML(VectorBuffer&, const String& = "\t");
  14253. bool SaveXML(XMLElement&) const;
  14254. IntVector2 ScreenToElement(const IntVector2&);
  14255. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14256. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14257. void SetAnimationTime(float);
  14258. bool SetAttribute(const String&, const Variant&);
  14259. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14260. void SetAttributeAnimationSpeed(const String&, float);
  14261. void SetAttributeAnimationTime(const String&, float);
  14262. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14263. void SetDeepEnabled(bool);
  14264. void SetEnabledRecursive(bool);
  14265. void SetFixedHeight(int);
  14266. void SetFixedSize(int, int);
  14267. void SetFixedWidth(int);
  14268. void SetFullImageRect();
  14269. void SetHoverOffset(int, int);
  14270. void SetInterceptNetworkUpdate(const String&, bool);
  14271. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14272. void SetMaxAnchor(float, float);
  14273. void SetMaxSize(int, int);
  14274. void SetMinAnchor(float, float);
  14275. void SetMinSize(int, int);
  14276. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14277. void SetPivot(float, float);
  14278. void SetPosition(int, int);
  14279. void SetSize(int, int);
  14280. bool SetStyle(const String&, XMLFile = null);
  14281. bool SetStyle(const XMLElement&);
  14282. bool SetStyleAuto(XMLFile = null);
  14283. void SetView(Scene, Camera, bool = true);
  14284. void UpdateLayout();
  14285. const Variant& GetVar(const StringHash&);
  14286. // Properties:
  14287. bool animationEnabled;
  14288. /* readonly */
  14289. Array<Variant> attributeDefaults;
  14290. /* readonly */
  14291. Array<AttributeInfo> attributeInfos;
  14292. Array<Variant> attributes;
  14293. bool autoUpdate;
  14294. BlendMode blendMode;
  14295. IntRect border;
  14296. bool bringToBack;
  14297. bool bringToFront;
  14298. /* readonly */
  14299. Node cameraNode;
  14300. /* readonly */
  14301. String category;
  14302. /* readonly */
  14303. IntVector2 childOffset;
  14304. /* readonly */
  14305. Array<UIElement> children;
  14306. IntRect clipBorder;
  14307. bool clipChildren;
  14308. /* writeonly */
  14309. Color color;
  14310. /* readonly */
  14311. bool colorGradient;
  14312. Array<Color> colors;
  14313. /* readonly */
  14314. IntRect combinedScreenRect;
  14315. XMLFile defaultStyle;
  14316. /* readonly */
  14317. Texture2D depthTexture;
  14318. /* readonly */
  14319. float derivedOpacity;
  14320. /* readonly */
  14321. uint dragButtonCombo;
  14322. /* readonly */
  14323. int dragButtonCount;
  14324. uint dragDropMode;
  14325. bool editable;
  14326. bool elementEventSender;
  14327. bool enableAnchor;
  14328. bool enabled;
  14329. /* readonly */
  14330. bool enabledSelf;
  14331. /* readonly */
  14332. bool fixedHeight;
  14333. bool fixedHeightResizing;
  14334. /* readonly */
  14335. bool fixedSize;
  14336. /* readonly */
  14337. bool fixedWidth;
  14338. bool fixedWidthResizing;
  14339. bool focus;
  14340. FocusMode focusMode;
  14341. uint format;
  14342. int height;
  14343. HorizontalAlignment horizontalAlignment;
  14344. IntVector2 hoverOffset;
  14345. /* readonly */
  14346. bool hovering;
  14347. IntRect imageBorder;
  14348. IntRect imageRect;
  14349. int indent;
  14350. int indentSpacing;
  14351. /* readonly */
  14352. int indentWidth;
  14353. bool internal;
  14354. IntRect layoutBorder;
  14355. Vector2 layoutFlexScale;
  14356. LayoutMode layoutMode;
  14357. int layoutSpacing;
  14358. Vector2 maxAnchor;
  14359. int maxHeight;
  14360. IntVector2 maxOffset;
  14361. IntVector2 maxSize;
  14362. int maxWidth;
  14363. Vector2 minAnchor;
  14364. int minHeight;
  14365. IntVector2 minOffset;
  14366. IntVector2 minSize;
  14367. int minWidth;
  14368. bool modal;
  14369. bool modalAutoDismiss;
  14370. Color modalFrameColor;
  14371. IntVector2 modalFrameSize;
  14372. Color modalShadeColor;
  14373. bool movable;
  14374. String name;
  14375. /* readonly */
  14376. uint numAllChildren;
  14377. /* readonly */
  14378. uint numAttributes;
  14379. /* readonly */
  14380. uint numChildren;
  14381. ObjectAnimation objectAnimation;
  14382. float opacity;
  14383. UIElement parent;
  14384. Vector2 pivot;
  14385. IntVector2 position;
  14386. int priority;
  14387. /* readonly */
  14388. int refs;
  14389. /* readonly */
  14390. Texture2D renderTexture;
  14391. bool resizable;
  14392. IntRect resizeBorder;
  14393. /* readonly */
  14394. UIElement root;
  14395. /* readonly */
  14396. Scene scene;
  14397. /* readonly */
  14398. IntVector2 screenPosition;
  14399. bool selected;
  14400. IntVector2 size;
  14401. bool sortChildren;
  14402. String style;
  14403. /* readonly */
  14404. Array<String> tags;
  14405. bool temporary;
  14406. Texture texture;
  14407. bool tiled;
  14408. TraversalMode traversalMode;
  14409. /* readonly */
  14410. StringHash type;
  14411. /* readonly */
  14412. String typeName;
  14413. bool useDerivedOpacity;
  14414. /* readonly */
  14415. VariantMap vars;
  14416. VerticalAlignment verticalAlignment;
  14417. /* readonly */
  14418. Viewport viewport;
  14419. bool visible;
  14420. /* readonly */
  14421. bool visibleEffective;
  14422. /* readonly */
  14423. int weakRefs;
  14424. int width;
  14425. };
  14426. class Viewport
  14427. {
  14428. public:
  14429. Viewport();
  14430. Viewport(Scene&, Camera&, RenderPath& renderPath = null);
  14431. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& renderPath = null);
  14432. // Methods:
  14433. Ray GetScreenRay(int, int) const;
  14434. bool HasSubscribedToEvent(Object, const String&);
  14435. bool HasSubscribedToEvent(const String&);
  14436. Vector3 ScreenToWorldPoint(int, int, float) const;
  14437. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14438. void SetRenderPath(XMLFile);
  14439. IntVector2 WorldToScreenPoint(const Vector3&) const;
  14440. // Properties:
  14441. Camera camera;
  14442. /* readonly */
  14443. String category;
  14444. Camera cullCamera;
  14445. bool drawDebug;
  14446. IntRect rect;
  14447. /* readonly */
  14448. int refs;
  14449. RenderPath renderPath;
  14450. Scene scene;
  14451. /* readonly */
  14452. StringHash type;
  14453. /* readonly */
  14454. String typeName;
  14455. /* readonly */
  14456. int weakRefs;
  14457. };
  14458. class WeakHandle
  14459. {
  14460. public:
  14461. ~WeakHandle();
  14462. WeakHandle();
  14463. WeakHandle(const WeakHandle&in);
  14464. WeakHandle(RefCounted@);
  14465. // Methods:
  14466. RefCounted Get() const;
  14467. // Properties:
  14468. /* readonly */
  14469. bool expired;
  14470. /* readonly */
  14471. int refs;
  14472. /* readonly */
  14473. int weakRefs;
  14474. };
  14475. class Window
  14476. {
  14477. public:
  14478. Window();
  14479. Window(const String&in);
  14480. // Methods:
  14481. void AddChild(UIElement);
  14482. void AddTag(const String&);
  14483. void AddTags(const String&, int8 = ';');
  14484. void ApplyAttributes();
  14485. void BringToFront();
  14486. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14487. void DisableLayoutUpdate();
  14488. IntVector2 ElementToScreen(const IntVector2&);
  14489. void EnableLayoutUpdate();
  14490. uint FindChild(UIElement) const;
  14491. Variant GetAttribute(const String&) const;
  14492. ValueAnimation GetAttributeAnimation(const String&) const;
  14493. float GetAttributeAnimationSpeed(const String&) const;
  14494. float GetAttributeAnimationTime(const String&) const;
  14495. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14496. Variant GetAttributeDefault(const String&) const;
  14497. UIElement GetChild(const String&, bool = false) const;
  14498. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14499. Array<UIElement> GetChildren(bool = false) const;
  14500. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14501. UIElement GetElementEventSender() const;
  14502. bool GetInterceptNetworkUpdate(const String&) const;
  14503. uint GetNumChildren(bool) const;
  14504. bool HasSubscribedToEvent(Object, const String&);
  14505. bool HasSubscribedToEvent(const String&);
  14506. bool HasTag(const String&) const;
  14507. void InsertChild(uint, UIElement);
  14508. bool IsInside(IntVector2, bool);
  14509. bool IsInsideCombined(IntVector2, bool);
  14510. bool Load(File, bool = false);
  14511. bool Load(VectorBuffer&, bool = false);
  14512. UIElement LoadChildXML(XMLFile, XMLFile = null);
  14513. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  14514. bool LoadJSON(const JSONValue&, bool = false);
  14515. bool LoadXML(File);
  14516. bool LoadXML(VectorBuffer&);
  14517. bool LoadXML(XMLFile, XMLFile);
  14518. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  14519. bool LoadXML(const XMLElement&, bool = false);
  14520. void MarkNetworkUpdate() const;
  14521. void Remove();
  14522. void RemoveAllChildren();
  14523. void RemoveAllTags();
  14524. void RemoveAttributeAnimation(const String&);
  14525. void RemoveChild(UIElement, uint = 0);
  14526. void RemoveChild(uint);
  14527. void RemoveInstanceDefault();
  14528. void RemoveObjectAnimation();
  14529. bool RemoveTag(const String&);
  14530. void ResetDeepEnabled();
  14531. void ResetToDefault();
  14532. bool Save(File) const;
  14533. bool Save(VectorBuffer&) const;
  14534. bool SaveJSON(JSONValue&) const;
  14535. bool SaveXML(File, const String& = "\t");
  14536. bool SaveXML(VectorBuffer&, const String& = "\t");
  14537. bool SaveXML(XMLElement&) const;
  14538. IntVector2 ScreenToElement(const IntVector2&);
  14539. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14540. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14541. void SetAnimationTime(float);
  14542. bool SetAttribute(const String&, const Variant&);
  14543. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14544. void SetAttributeAnimationSpeed(const String&, float);
  14545. void SetAttributeAnimationTime(const String&, float);
  14546. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14547. void SetDeepEnabled(bool);
  14548. void SetEnabledRecursive(bool);
  14549. void SetFixedHeight(int);
  14550. void SetFixedSize(int, int);
  14551. void SetFixedWidth(int);
  14552. void SetFullImageRect();
  14553. void SetHoverOffset(int, int);
  14554. void SetInterceptNetworkUpdate(const String&, bool);
  14555. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14556. void SetMaxAnchor(float, float);
  14557. void SetMaxSize(int, int);
  14558. void SetMinAnchor(float, float);
  14559. void SetMinSize(int, int);
  14560. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14561. void SetPivot(float, float);
  14562. void SetPosition(int, int);
  14563. void SetSize(int, int);
  14564. bool SetStyle(const String&, XMLFile = null);
  14565. bool SetStyle(const XMLElement&);
  14566. bool SetStyleAuto(XMLFile = null);
  14567. void UpdateLayout();
  14568. const Variant& GetVar(const StringHash&);
  14569. // Properties:
  14570. bool animationEnabled;
  14571. /* readonly */
  14572. Array<Variant> attributeDefaults;
  14573. /* readonly */
  14574. Array<AttributeInfo> attributeInfos;
  14575. Array<Variant> attributes;
  14576. BlendMode blendMode;
  14577. IntRect border;
  14578. bool bringToBack;
  14579. bool bringToFront;
  14580. /* readonly */
  14581. String category;
  14582. /* readonly */
  14583. IntVector2 childOffset;
  14584. /* readonly */
  14585. Array<UIElement> children;
  14586. IntRect clipBorder;
  14587. bool clipChildren;
  14588. /* writeonly */
  14589. Color color;
  14590. /* readonly */
  14591. bool colorGradient;
  14592. Array<Color> colors;
  14593. /* readonly */
  14594. IntRect combinedScreenRect;
  14595. XMLFile defaultStyle;
  14596. /* readonly */
  14597. float derivedOpacity;
  14598. /* readonly */
  14599. uint dragButtonCombo;
  14600. /* readonly */
  14601. int dragButtonCount;
  14602. uint dragDropMode;
  14603. bool editable;
  14604. bool elementEventSender;
  14605. bool enableAnchor;
  14606. bool enabled;
  14607. /* readonly */
  14608. bool enabledSelf;
  14609. /* readonly */
  14610. bool fixedHeight;
  14611. bool fixedHeightResizing;
  14612. /* readonly */
  14613. bool fixedSize;
  14614. /* readonly */
  14615. bool fixedWidth;
  14616. bool fixedWidthResizing;
  14617. bool focus;
  14618. FocusMode focusMode;
  14619. int height;
  14620. HorizontalAlignment horizontalAlignment;
  14621. IntVector2 hoverOffset;
  14622. /* readonly */
  14623. bool hovering;
  14624. IntRect imageBorder;
  14625. IntRect imageRect;
  14626. int indent;
  14627. int indentSpacing;
  14628. /* readonly */
  14629. int indentWidth;
  14630. bool internal;
  14631. IntRect layoutBorder;
  14632. Vector2 layoutFlexScale;
  14633. LayoutMode layoutMode;
  14634. int layoutSpacing;
  14635. Vector2 maxAnchor;
  14636. int maxHeight;
  14637. IntVector2 maxOffset;
  14638. IntVector2 maxSize;
  14639. int maxWidth;
  14640. Vector2 minAnchor;
  14641. int minHeight;
  14642. IntVector2 minOffset;
  14643. IntVector2 minSize;
  14644. int minWidth;
  14645. bool modal;
  14646. bool modalAutoDismiss;
  14647. Color modalFrameColor;
  14648. IntVector2 modalFrameSize;
  14649. Color modalShadeColor;
  14650. bool movable;
  14651. String name;
  14652. /* readonly */
  14653. uint numAllChildren;
  14654. /* readonly */
  14655. uint numAttributes;
  14656. /* readonly */
  14657. uint numChildren;
  14658. ObjectAnimation objectAnimation;
  14659. float opacity;
  14660. UIElement parent;
  14661. Vector2 pivot;
  14662. IntVector2 position;
  14663. int priority;
  14664. /* readonly */
  14665. int refs;
  14666. bool resizable;
  14667. IntRect resizeBorder;
  14668. /* readonly */
  14669. UIElement root;
  14670. /* readonly */
  14671. IntVector2 screenPosition;
  14672. bool selected;
  14673. IntVector2 size;
  14674. bool sortChildren;
  14675. String style;
  14676. /* readonly */
  14677. Array<String> tags;
  14678. bool temporary;
  14679. Texture texture;
  14680. bool tiled;
  14681. TraversalMode traversalMode;
  14682. /* readonly */
  14683. StringHash type;
  14684. /* readonly */
  14685. String typeName;
  14686. bool useDerivedOpacity;
  14687. /* readonly */
  14688. VariantMap vars;
  14689. VerticalAlignment verticalAlignment;
  14690. bool visible;
  14691. /* readonly */
  14692. bool visibleEffective;
  14693. /* readonly */
  14694. int weakRefs;
  14695. int width;
  14696. };
  14697. class XMLElement
  14698. {
  14699. public:
  14700. ~XMLElement();
  14701. XMLElement();
  14702. XMLElement(const XMLElement&in);
  14703. // Methods:
  14704. XMLElement CreateChild(const String&);
  14705. String GetAttribute(const String& = String ( )) const;
  14706. String GetAttributeLower(const String&) const;
  14707. Array<String> GetAttributeNames() const;
  14708. String GetAttributeUpper(const String&) const;
  14709. bool GetBool(const String&) const;
  14710. BoundingBox GetBoundingBox() const;
  14711. XMLElement GetChild(const String& = String ( )) const;
  14712. Color GetColor(const String&) const;
  14713. double GetDouble(const String&) const;
  14714. float GetFloat(const String&) const;
  14715. int GetInt(const String&) const;
  14716. int64 GetInt64(const String&) const;
  14717. IntRect GetIntRect(const String&) const;
  14718. IntVector2 GetIntVector2(const String&) const;
  14719. IntVector3 GetIntVector3(const String&) const;
  14720. Matrix3 GetMatrix3(const String&) const;
  14721. Matrix3x4 GetMatrix3x4(const String&) const;
  14722. Matrix4 GetMatrix4(const String&) const;
  14723. XMLElement GetNext(const String& = String ( )) const;
  14724. XMLElement GetOrCreateChild(const String&);
  14725. Quaternion GetQuaternion(const String&) const;
  14726. ResourceRef GetResourceRef() const;
  14727. ResourceRefList GetResourceRefList() const;
  14728. uint GetUInt(const String&) const;
  14729. uint64 GetUInt64(const String&) const;
  14730. String GetValue() const;
  14731. Variant GetVariant() const;
  14732. VariantMap GetVariantMap() const;
  14733. Array<Variant> GetVariantVector() const;
  14734. Vector2 GetVector2(const String&) const;
  14735. Vector3 GetVector3(const String&) const;
  14736. Vector4 GetVector4(const String&) const;
  14737. Variant GetVectorVariant(const String&) const;
  14738. bool HasAttribute(const String&) const;
  14739. bool HasChild(const String&) const;
  14740. bool RemoveAttribute(const String& = String ( ));
  14741. bool RemoveChild(const String&);
  14742. bool RemoveChild(const XMLElement&);
  14743. bool RemoveChildren(const String& = String ( ));
  14744. XPathResultSet Select(const String&);
  14745. XPathResultSet SelectPrepared(const XPathQuery&);
  14746. XMLElement SelectSingle(const String&);
  14747. XMLElement SelectSinglePrepared(const XPathQuery&);
  14748. bool SetAttribute(const String&);
  14749. bool SetAttribute(const String&, const String&);
  14750. bool SetBool(const String&, bool);
  14751. bool SetBoundingBox(const BoundingBox&);
  14752. bool SetColor(const String&, const Color&);
  14753. bool SetDouble(const String&, double);
  14754. bool SetFloat(const String&, float);
  14755. bool SetInt(const String&, int);
  14756. bool SetInt64(const String&, int64);
  14757. bool SetIntRect(const String&, const IntRect&);
  14758. bool SetIntVector2(const String&, const IntVector2&);
  14759. bool SetIntVector3(const String&, const IntVector3&);
  14760. bool SetMatrix3(const String&, const Matrix3&);
  14761. bool SetMatrix3x4(const String&, const Matrix3x4&);
  14762. bool SetMatrix4(const String&, const Matrix4&);
  14763. bool SetQuaternion(const String&, const Quaternion&);
  14764. bool SetResourceRef(const String&, const ResourceRef&);
  14765. bool SetResourceRefList(const String&, const ResourceRefList&);
  14766. bool SetUInt(const String&, uint);
  14767. bool SetUInt64(const String&, uint64);
  14768. bool SetValue(const String&);
  14769. bool SetVariant(const Variant&);
  14770. bool SetVariantMap(const VariantMap&);
  14771. bool SetVariantVector(Array<Variant>);
  14772. bool SetVector2(const String&, const Vector2&);
  14773. bool SetVector3(const String&, const Vector3&);
  14774. bool SetVector4(const String&, const Vector4&);
  14775. bool SetVectorVariant(const String&, const Variant&);
  14776. // Properties:
  14777. /* readonly */
  14778. XMLFile file;
  14779. /* readonly */
  14780. bool isNull;
  14781. /* readonly */
  14782. String name;
  14783. /* readonly */
  14784. XMLElement nextResult;
  14785. /* readonly */
  14786. bool notNull;
  14787. /* readonly */
  14788. uint numAttributes;
  14789. /* readonly */
  14790. XMLElement parent;
  14791. String value;
  14792. };
  14793. class XMLFile
  14794. {
  14795. public:
  14796. XMLFile();
  14797. XMLFile(const String&in);
  14798. // Methods:
  14799. XMLElement CreateRoot(const String&);
  14800. bool FromString(const String&);
  14801. XMLElement GetOrCreateRoot(const String&);
  14802. XMLElement GetRoot(const String& = String ( ));
  14803. bool HasSubscribedToEvent(Object, const String&);
  14804. bool HasSubscribedToEvent(const String&);
  14805. bool Load(File);
  14806. bool Load(VectorBuffer&);
  14807. bool Load(const String&);
  14808. void Patch(XMLElement);
  14809. void Patch(XMLFile);
  14810. bool Save(File) const;
  14811. bool Save(File, const String&) const;
  14812. bool Save(VectorBuffer&) const;
  14813. bool Save(const String&) const;
  14814. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14815. String ToString(const String& = String ( "\t" )) const;
  14816. // Properties:
  14817. /* readonly */
  14818. String category;
  14819. /* readonly */
  14820. uint memoryUse;
  14821. String name;
  14822. /* readonly */
  14823. int refs;
  14824. /* readonly */
  14825. XMLElement root;
  14826. /* readonly */
  14827. StringHash type;
  14828. /* readonly */
  14829. String typeName;
  14830. /* readonly */
  14831. uint useTimer;
  14832. /* readonly */
  14833. int weakRefs;
  14834. };
  14835. class XPathQuery
  14836. {
  14837. public:
  14838. ~XPathQuery();
  14839. XPathQuery();
  14840. XPathQuery(const String&in, const String&inout arg1 = String ( ));
  14841. // Methods:
  14842. void Bind();
  14843. void Clear();
  14844. XPathResultSet Evaluate(XMLElement);
  14845. bool EvaluateToBool(XMLElement);
  14846. float EvaluateToFloat(XMLElement);
  14847. String EvaluateToString(XMLElement);
  14848. bool SetQuery(const String&, const String& = String ( ), bool = true);
  14849. bool SetVariable(const String&, bool);
  14850. bool SetVariable(const String&, const String&);
  14851. bool SetVariable(const String&, const XPathResultSet&);
  14852. bool SetVariable(const String&, float);
  14853. // Properties:
  14854. String query;
  14855. };
  14856. class XPathResultSet
  14857. {
  14858. public:
  14859. ~XPathResultSet();
  14860. XPathResultSet();
  14861. XPathResultSet(const XPathResultSet&in);
  14862. // Properties:
  14863. /* readonly */
  14864. bool empty;
  14865. /* readonly */
  14866. XMLElement firstResult;
  14867. /* readonly */
  14868. uint size;
  14869. };
  14870. class Zone
  14871. {
  14872. public:
  14873. // Methods:
  14874. void ApplyAttributes();
  14875. void DrawDebugGeometry(DebugRenderer, bool);
  14876. Variant GetAttribute(const String&) const;
  14877. ValueAnimation GetAttributeAnimation(const String&) const;
  14878. float GetAttributeAnimationSpeed(const String&) const;
  14879. float GetAttributeAnimationTime(const String&) const;
  14880. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14881. Variant GetAttributeDefault(const String&) const;
  14882. bool GetInterceptNetworkUpdate(const String&) const;
  14883. bool HasSubscribedToEvent(Object, const String&);
  14884. bool HasSubscribedToEvent(const String&);
  14885. bool IsInView(Camera) const;
  14886. bool Load(File, bool = false);
  14887. bool Load(VectorBuffer&, bool = false);
  14888. bool LoadJSON(const JSONValue&, bool = false);
  14889. bool LoadXML(const XMLElement&, bool = false);
  14890. void MarkNetworkUpdate() const;
  14891. void Remove();
  14892. void RemoveAttributeAnimation(const String&);
  14893. void RemoveInstanceDefault();
  14894. void RemoveObjectAnimation();
  14895. void ResetToDefault();
  14896. bool Save(File) const;
  14897. bool Save(VectorBuffer&) const;
  14898. bool SaveJSON(JSONValue&) const;
  14899. bool SaveXML(XMLElement&) const;
  14900. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14901. void SetAnimationTime(float);
  14902. bool SetAttribute(const String&, const Variant&);
  14903. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14904. void SetAttributeAnimationSpeed(const String&, float);
  14905. void SetAttributeAnimationTime(const String&, float);
  14906. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14907. void SetInterceptNetworkUpdate(const String&, bool);
  14908. // Properties:
  14909. Color ambientColor;
  14910. /* readonly */
  14911. Color ambientEndColor;
  14912. bool ambientGradient;
  14913. /* readonly */
  14914. Color ambientStartColor;
  14915. bool animationEnabled;
  14916. /* readonly */
  14917. Array<Variant> attributeDefaults;
  14918. /* readonly */
  14919. Array<AttributeInfo> attributeInfos;
  14920. Array<Variant> attributes;
  14921. BoundingBox boundingBox;
  14922. bool castShadows;
  14923. /* readonly */
  14924. String category;
  14925. float drawDistance;
  14926. bool enabled;
  14927. /* readonly */
  14928. bool enabledEffective;
  14929. Color fogColor;
  14930. float fogEnd;
  14931. float fogHeight;
  14932. float fogHeightScale;
  14933. float fogStart;
  14934. bool heightFog;
  14935. /* readonly */
  14936. uint id;
  14937. /* readonly */
  14938. bool inView;
  14939. /* readonly */
  14940. Matrix3x4 inverseWorldTransform;
  14941. uint lightMask;
  14942. float lodBias;
  14943. uint maxLights;
  14944. /* readonly */
  14945. Node node;
  14946. /* readonly */
  14947. uint numAttributes;
  14948. ObjectAnimation objectAnimation;
  14949. bool occludee;
  14950. bool occluder;
  14951. bool override;
  14952. int priority;
  14953. /* readonly */
  14954. int refs;
  14955. float shadowDistance;
  14956. uint shadowMask;
  14957. bool temporary;
  14958. /* readonly */
  14959. StringHash type;
  14960. /* readonly */
  14961. String typeName;
  14962. uint viewMask;
  14963. /* readonly */
  14964. int weakRefs;
  14965. /* readonly */
  14966. BoundingBox worldBoundingBox;
  14967. uint zoneMask;
  14968. Texture zoneTexture;
  14969. };
  14970. // Enumerations
  14971. enum AnimationBlendMode
  14972. {
  14973. ABM_LERP,
  14974. ABM_ADDITIVE,
  14975. };
  14976. enum AutoRemoveMode
  14977. {
  14978. REMOVE_DISABLED,
  14979. REMOVE_COMPONENT,
  14980. REMOVE_NODE,
  14981. };
  14982. enum BlendMode
  14983. {
  14984. BLEND_REPLACE,
  14985. BLEND_ADD,
  14986. BLEND_MULTIPLY,
  14987. BLEND_ALPHA,
  14988. BLEND_ADDALPHA,
  14989. BLEND_PREMULALPHA,
  14990. BLEND_INVDESTALPHA,
  14991. BLEND_SUBTRACT,
  14992. BLEND_SUBTRACTALPHA,
  14993. };
  14994. enum BodyType2D
  14995. {
  14996. BT_STATIC,
  14997. BT_KINEMATIC,
  14998. BT_DYNAMIC,
  14999. };
  15000. enum CollisionEventMode
  15001. {
  15002. COLLISION_NEVER,
  15003. COLLISION_ACTIVE,
  15004. COLLISION_ALWAYS,
  15005. };
  15006. enum CompareMode
  15007. {
  15008. CMP_ALWAYS,
  15009. CMP_EQUAL,
  15010. CMP_NOTEQUAL,
  15011. CMP_LESS,
  15012. CMP_LESSEQUAL,
  15013. CMP_GREATER,
  15014. CMP_GREATEREQUAL,
  15015. };
  15016. enum CompressedFormat
  15017. {
  15018. CF_NONE,
  15019. CF_RGBA,
  15020. CF_DXT1,
  15021. CF_DXT3,
  15022. CF_DXT5,
  15023. CF_ETC1,
  15024. CF_PVRTC_RGB_2BPP,
  15025. CF_PVRTC_RGBA_2BPP,
  15026. CF_PVRTC_RGB_4BPP,
  15027. CF_PVRTC_RGBA_4BPP,
  15028. };
  15029. enum ConstraintType
  15030. {
  15031. CONSTRAINT_POINT,
  15032. CONSTRAINT_HINGE,
  15033. CONSTRAINT_SLIDER,
  15034. CONSTRAINT_CONETWIST,
  15035. };
  15036. enum Corner
  15037. {
  15038. C_TOPLEFT,
  15039. C_TOPRIGHT,
  15040. C_BOTTOMLEFT,
  15041. C_BOTTOMRIGHT,
  15042. };
  15043. enum CreateMode
  15044. {
  15045. REPLICATED,
  15046. LOCAL,
  15047. };
  15048. enum CrowdAgentRequestedTarget
  15049. {
  15050. CA_REQUESTEDTARGET_NONE,
  15051. CA_REQUESTEDTARGET_POSITION,
  15052. CA_REQUESTEDTARGET_VELOCITY,
  15053. };
  15054. enum CrowdAgentState
  15055. {
  15056. CA_STATE_INVALID,
  15057. CA_STATE_WALKING,
  15058. CA_STATE_OFFMESH,
  15059. };
  15060. enum CrowdAgentTargetState
  15061. {
  15062. CA_TARGET_NONE,
  15063. CA_TARGET_FAILED,
  15064. CA_TARGET_VALID,
  15065. CA_TARGET_REQUESTING,
  15066. CA_TARGET_WAITINGFORQUEUE,
  15067. CA_TARGET_WAITINGFORPATH,
  15068. CA_TARGET_VELOCITY,
  15069. };
  15070. enum CubeMapFace
  15071. {
  15072. FACE_POSITIVE_X,
  15073. FACE_NEGATIVE_X,
  15074. FACE_POSITIVE_Y,
  15075. FACE_NEGATIVE_Y,
  15076. FACE_POSITIVE_Z,
  15077. FACE_NEGATIVE_Z,
  15078. };
  15079. enum CullMode
  15080. {
  15081. CULL_NONE,
  15082. CULL_CCW,
  15083. CULL_CW,
  15084. };
  15085. enum CursorShape
  15086. {
  15087. CS_NORMAL,
  15088. CS_IBEAM,
  15089. CS_CROSS,
  15090. CS_RESIZEVERTICAL,
  15091. CS_RESIZEDIAGONAL_TOPRIGHT,
  15092. CS_RESIZEHORIZONTAL,
  15093. CS_RESIZEDIAGONAL_TOPLEFT,
  15094. CS_RESIZE_ALL,
  15095. CS_ACCEPTDROP,
  15096. CS_REJECTDROP,
  15097. CS_BUSY,
  15098. CS_BUSY_ARROW,
  15099. };
  15100. enum DBAPI
  15101. {
  15102. DBAPI_SQLITE,
  15103. DBAPI_ODBC,
  15104. };
  15105. enum DumpMode
  15106. {
  15107. DOXYGEN,
  15108. C_HEADER,
  15109. };
  15110. enum EmitterType
  15111. {
  15112. EMITTER_SPHERE,
  15113. EMITTER_BOX,
  15114. };
  15115. enum EmitterType2D
  15116. {
  15117. EMITTER_TYPE_GRAVITY,
  15118. EMITTER_TYPE_RADIAL,
  15119. };
  15120. enum FaceCameraMode
  15121. {
  15122. FC_NONE,
  15123. FC_ROTATE_XYZ,
  15124. FC_ROTATE_Y,
  15125. FC_LOOKAT_XYZ,
  15126. FC_LOOKAT_Y,
  15127. FC_LOOKAT_MIXED,
  15128. FC_DIRECTION,
  15129. };
  15130. enum FileMode
  15131. {
  15132. FILE_READ,
  15133. FILE_WRITE,
  15134. FILE_READWRITE,
  15135. };
  15136. enum FillMode
  15137. {
  15138. FILL_SOLID,
  15139. FILL_WIREFRAME,
  15140. FILL_POINT,
  15141. };
  15142. enum FocusMode
  15143. {
  15144. FM_NOTFOCUSABLE,
  15145. FM_RESETFOCUS,
  15146. FM_FOCUSABLE,
  15147. FM_FOCUSABLE_DEFOCUSABLE,
  15148. };
  15149. enum FontHintLevel
  15150. {
  15151. FONT_HINT_LEVEL_NONE,
  15152. FONT_HINT_LEVEL_LIGHT,
  15153. FONT_HINT_LEVEL_NORMAL,
  15154. };
  15155. enum FontType
  15156. {
  15157. FONT_NONE,
  15158. FONT_FREETYPE,
  15159. FONT_BITMAP,
  15160. };
  15161. enum HighlightMode
  15162. {
  15163. HM_NEVER,
  15164. HM_FOCUS,
  15165. HM_ALWAYS,
  15166. };
  15167. enum HorizontalAlignment
  15168. {
  15169. HA_LEFT,
  15170. HA_CENTER,
  15171. HA_RIGHT,
  15172. HA_CUSTOM,
  15173. };
  15174. enum HttpRequestState
  15175. {
  15176. HTTP_INITIALIZING,
  15177. HTTP_ERROR,
  15178. HTTP_OPEN,
  15179. HTTP_CLOSED,
  15180. };
  15181. enum IKAlgorithm
  15182. {
  15183. ONE_BONE,
  15184. TWO_BONE,
  15185. FABRIK,
  15186. };
  15187. enum InterpMethod
  15188. {
  15189. IM_NONE,
  15190. IM_LINEAR,
  15191. IM_SPLINE,
  15192. };
  15193. enum InterpolationMode
  15194. {
  15195. BEZIER_CURVE,
  15196. CATMULL_ROM_CURVE,
  15197. LINEAR_CURVE,
  15198. CATMULL_ROM_FULL_CURVE,
  15199. };
  15200. enum Intersection
  15201. {
  15202. OUTSIDE,
  15203. INTERSECTS,
  15204. INSIDE,
  15205. };
  15206. enum JSONNumberType
  15207. {
  15208. JSONNT_NAN,
  15209. JSONNT_INT,
  15210. JSONNT_UINT,
  15211. JSONNT_FLOAT_DOUBLE,
  15212. };
  15213. enum JSONValueType
  15214. {
  15215. JSON_NULL,
  15216. JSON_BOOL,
  15217. JSON_NUMBER,
  15218. JSON_STRING,
  15219. JSON_ARRAY,
  15220. JSON_OBJECT,
  15221. };
  15222. enum LayoutMode
  15223. {
  15224. LM_FREE,
  15225. LM_HORIZONTAL,
  15226. LM_VERTICAL,
  15227. };
  15228. enum LightType
  15229. {
  15230. LIGHT_DIRECTIONAL,
  15231. LIGHT_SPOT,
  15232. LIGHT_POINT,
  15233. };
  15234. enum LoadMode
  15235. {
  15236. LOAD_RESOURCES_ONLY,
  15237. LOAD_SCENE,
  15238. LOAD_SCENE_AND_RESOURCES,
  15239. };
  15240. enum LoopMode2D
  15241. {
  15242. LM_DEFAULT,
  15243. LM_FORCE_LOOPED,
  15244. LM_FORCE_CLAMPED,
  15245. };
  15246. enum MouseMode
  15247. {
  15248. MM_ABSOLUTE,
  15249. MM_RELATIVE,
  15250. MM_WRAP,
  15251. MM_FREE,
  15252. };
  15253. enum NavigationPushiness
  15254. {
  15255. NAVIGATIONPUSHINESS_LOW,
  15256. NAVIGATIONPUSHINESS_MEDIUM,
  15257. NAVIGATIONPUSHINESS_HIGH,
  15258. NAVIGATIONPUSHINESS_NONE,
  15259. };
  15260. enum NavigationQuality
  15261. {
  15262. NAVIGATIONQUALITY_LOW,
  15263. NAVIGATIONQUALITY_MEDIUM,
  15264. NAVIGATIONQUALITY_HIGH,
  15265. };
  15266. enum NavmeshPartitionType
  15267. {
  15268. NAVMESH_PARTITION_WATERSHED,
  15269. NAVMESH_PARTITION_MONOTONE,
  15270. };
  15271. enum Orientation
  15272. {
  15273. O_HORIZONTAL,
  15274. O_VERTICAL,
  15275. };
  15276. enum Orientation2D
  15277. {
  15278. O_ORTHOGONAL,
  15279. O_ISOMETRIC,
  15280. O_STAGGERED,
  15281. O_HEXAGONAL,
  15282. };
  15283. enum PassLightingMode
  15284. {
  15285. LIGHTING_UNLIT,
  15286. LIGHTING_PERVERTEX,
  15287. LIGHTING_PERPIXEL,
  15288. };
  15289. enum PrimitiveType
  15290. {
  15291. TRIANGLE_LIST,
  15292. LINE_LIST,
  15293. POINT_LIST,
  15294. TRIANGLE_STRIP,
  15295. LINE_STRIP,
  15296. TRIANGLE_FAN,
  15297. };
  15298. enum RayQueryLevel
  15299. {
  15300. RAY_AABB,
  15301. RAY_OBB,
  15302. RAY_TRIANGLE,
  15303. RAY_TRIANGLE_UV,
  15304. };
  15305. enum RenderCommandSortMode
  15306. {
  15307. SORT_FRONTTOBACK,
  15308. SORT_BACKTOFRONT,
  15309. };
  15310. enum RenderCommandType
  15311. {
  15312. CMD_NONE,
  15313. CMD_CLEAR,
  15314. CMD_SCENEPASS,
  15315. CMD_QUAD,
  15316. CMD_FORWARDLIGHTS,
  15317. CMD_LIGHTVOLUMES,
  15318. CMD_RENDERUI,
  15319. CMD_SENDEVENT,
  15320. };
  15321. enum RenderSurfaceUpdateMode
  15322. {
  15323. SURFACE_MANUALUPDATE,
  15324. SURFACE_UPDATEVISIBLE,
  15325. SURFACE_UPDATEALWAYS,
  15326. };
  15327. enum RenderTargetSizeMode
  15328. {
  15329. SIZE_ABSOLUTE,
  15330. SIZE_VIEWPORTDIVISOR,
  15331. SIZE_VIEWPORTMULTIPLIER,
  15332. };
  15333. enum ShadowQuality
  15334. {
  15335. SHADOWQUALITY_SIMPLE_16BIT,
  15336. SHADOWQUALITY_SIMPLE_24BIT,
  15337. SHADOWQUALITY_PCF_16BIT,
  15338. SHADOWQUALITY_PCF_24BIT,
  15339. SHADOWQUALITY_VSM,
  15340. SHADOWQUALITY_BLUR_VSM,
  15341. };
  15342. enum ShapeType
  15343. {
  15344. SHAPE_BOX,
  15345. SHAPE_SPHERE,
  15346. SHAPE_STATICPLANE,
  15347. SHAPE_CYLINDER,
  15348. SHAPE_CAPSULE,
  15349. SHAPE_CONE,
  15350. SHAPE_TRIANGLEMESH,
  15351. SHAPE_CONVEXHULL,
  15352. SHAPE_TERRAIN,
  15353. };
  15354. enum TextEffect
  15355. {
  15356. TE_NONE,
  15357. TE_SHADOW,
  15358. TE_STROKE,
  15359. };
  15360. enum TextureAddressMode
  15361. {
  15362. ADDRESS_WRAP,
  15363. ADDRESS_MIRROR,
  15364. ADDRESS_CLAMP,
  15365. ADDRESS_BORDER,
  15366. };
  15367. enum TextureCoordinate
  15368. {
  15369. COORD_U,
  15370. COORD_V,
  15371. COORD_W,
  15372. };
  15373. enum TextureFilterMode
  15374. {
  15375. FILTER_NEAREST,
  15376. FILTER_BILINEAR,
  15377. FILTER_TRILINEAR,
  15378. FILTER_ANISOTROPIC,
  15379. FILTER_NEAREST_ANISOTROPIC,
  15380. FILTER_DEFAULT,
  15381. };
  15382. enum TextureUnit
  15383. {
  15384. TU_DIFFUSE,
  15385. TU_ALBEDOBUFFER,
  15386. TU_NORMAL,
  15387. TU_NORMALBUFFER,
  15388. TU_SPECULAR,
  15389. TU_EMISSIVE,
  15390. TU_ENVIRONMENT,
  15391. TU_LIGHTRAMP,
  15392. TU_LIGHTSHAPE,
  15393. TU_SHADOWMAP,
  15394. TU_CUSTOM1,
  15395. TU_CUSTOM2,
  15396. TU_VOLUMEMAP,
  15397. TU_FACESELECT,
  15398. TU_INDIRECTION,
  15399. TU_DEPTHBUFFER,
  15400. TU_LIGHTBUFFER,
  15401. TU_ZONE,
  15402. MAX_MATERIAL_TEXTURE_UNITS,
  15403. MAX_TEXTURE_UNITS,
  15404. };
  15405. enum TextureUsage
  15406. {
  15407. TEXTURE_STATIC,
  15408. TEXTURE_DYNAMIC,
  15409. TEXTURE_RENDERTARGET,
  15410. TEXTURE_DEPTHSTENCIL,
  15411. };
  15412. enum TileMapLayerType2D
  15413. {
  15414. LT_TILE_LAYER,
  15415. LT_OBJECT_GROUP,
  15416. LT_IMAGE_LAYER,
  15417. LT_INVALID,
  15418. };
  15419. enum TileObjectType2D
  15420. {
  15421. OT_RECTANGLE,
  15422. OT_ELLIPSE,
  15423. OT_POLYGON,
  15424. OT_POLYLINE,
  15425. OT_TILE,
  15426. OT_INVALID,
  15427. };
  15428. enum TrailType
  15429. {
  15430. TT_FACE_CAMERA,
  15431. TT_BONE,
  15432. };
  15433. enum TransformSpace
  15434. {
  15435. TS_LOCAL,
  15436. TS_PARENT,
  15437. TS_WORLD,
  15438. };
  15439. enum TraversalMode
  15440. {
  15441. TM_BREADTH_FIRST,
  15442. TM_DEPTH_FIRST,
  15443. };
  15444. enum VariantType
  15445. {
  15446. VAR_NONE,
  15447. VAR_INT,
  15448. VAR_BOOL,
  15449. VAR_FLOAT,
  15450. VAR_VECTOR2,
  15451. VAR_VECTOR3,
  15452. VAR_VECTOR4,
  15453. VAR_QUATERNION,
  15454. VAR_COLOR,
  15455. VAR_STRING,
  15456. VAR_BUFFER,
  15457. VAR_VOIDPTR,
  15458. VAR_RESOURCEREF,
  15459. VAR_RESOURCEREFLIST,
  15460. VAR_VARIANTVECTOR,
  15461. VAR_VARIANTMAP,
  15462. VAR_INTRECT,
  15463. VAR_INTVECTOR2,
  15464. VAR_INTVECTOR3,
  15465. VAR_PTR,
  15466. VAR_MATRIX3,
  15467. VAR_MATRIX3X4,
  15468. VAR_MATRIX4,
  15469. VAR_DOUBLE,
  15470. VAR_STRINGVECTOR,
  15471. VAR_RECT,
  15472. };
  15473. enum VertexElementSemantic
  15474. {
  15475. SEM_POSITION,
  15476. SEM_NORMAL,
  15477. SEM_BINORMAL,
  15478. SEM_TANGENT,
  15479. SEM_TEXCOORD,
  15480. SEM_COLOR,
  15481. SEM_BLENDWEIGHTS,
  15482. SEM_BLENDINDICES,
  15483. SEM_OBJECTINDEX,
  15484. MAX_VERTEX_ELEMENT_SEMANTICS,
  15485. };
  15486. enum VertexElementType
  15487. {
  15488. TYPE_INT,
  15489. TYPE_FLOAT,
  15490. TYPE_VECTOR2,
  15491. TYPE_VECTOR3,
  15492. TYPE_VECTOR4,
  15493. TYPE_UBYTE4,
  15494. TYPE_UBYTE4_NORM,
  15495. MAX_VERTEX_ELEMENT_TYPES,
  15496. };
  15497. enum VerticalAlignment
  15498. {
  15499. VA_TOP,
  15500. VA_CENTER,
  15501. VA_BOTTOM,
  15502. VA_CUSTOM,
  15503. };
  15504. enum WrapMode
  15505. {
  15506. WM_LOOP,
  15507. WM_ONCE,
  15508. WM_CLAMP,
  15509. };
  15510. // Global functions
  15511. float Abs(float);
  15512. float Acos(float);
  15513. String AddTrailingSlash(const String&);
  15514. float Asin(float);
  15515. float Atan(float);
  15516. float Atan2(float, float);
  15517. float Ceil(float);
  15518. int CeilToInt(float);
  15519. float Clamp(float, float, float);
  15520. int Clamp(int, int, int);
  15521. void ClearDelayedExecute(const String& = String ( ));
  15522. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  15523. float Cos(float);
  15524. uint CountSetBits(uint);
  15525. Object CreateObject(const String&);
  15526. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  15527. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  15528. bool Equals(float, float);
  15529. void ErrorDialog(const String&, const String&);
  15530. float Floor(float);
  15531. int FloorToInt(float);
  15532. float Fract(float);
  15533. uint GetAlphaFormat();
  15534. Array<String> GetArguments();
  15535. String GetConsoleInput();
  15536. uint GetDepthStencilFormat();
  15537. Object GetEventSender();
  15538. String GetExtension(const String&, bool = true);
  15539. String GetFileName(const String&);
  15540. String GetFileNameAndExtension(const String&, bool = false);
  15541. String GetFileSizeString(uint64);
  15542. uint GetFloat16Format();
  15543. uint GetFloat32Format();
  15544. uint GetFormat(const String&);
  15545. Variant GetGlobalVar(const String&);
  15546. String GetHostName();
  15547. String GetInternalPath(const String&);
  15548. uint GetLinearDepthFormat();
  15549. String GetLoginName();
  15550. uint GetLuminanceAlphaFormat();
  15551. uint GetLuminanceFormat();
  15552. uint GetMaxBones();
  15553. String GetMiniDumpDir();
  15554. uint GetNumLogicalCPUs();
  15555. uint GetNumPhysicalCPUs();
  15556. String GetOSVersion();
  15557. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  15558. Array<String> GetObjectCategories();
  15559. Array<String> GetObjectsByCategory(const String&);
  15560. String GetParentPath(const String&);
  15561. String GetPath(const String&);
  15562. String GetPlatform();
  15563. uint GetRG16Format();
  15564. uint GetRGBA16Format();
  15565. uint GetRGBAFloat16Format();
  15566. uint GetRGBAFloat32Format();
  15567. uint GetRGBAFormat();
  15568. uint GetRGBFormat();
  15569. uint GetRGFloat16Format();
  15570. uint GetRGFloat32Format();
  15571. uint GetRandomSeed();
  15572. uint GetReadableDepthFormat();
  15573. String GetTextureUnitName(TextureUnit);
  15574. uint64 GetTotalMemory();
  15575. VariantType GetVariantTypeFromName(const String&);
  15576. String GetVariantTypeName(VariantType);
  15577. bool HasSubscribedToEvent(Object, const String&);
  15578. bool HasSubscribedToEvent(const String&);
  15579. float InverseLerp(float, float, float);
  15580. bool IsAbsolutePath(const String&);
  15581. bool IsAlpha(uint);
  15582. bool IsDigit(uint);
  15583. bool IsNaN(float);
  15584. bool IsPowerOfTwo(uint);
  15585. String Join(Array<String>&, const String&);
  15586. float Lerp(float, float, float);
  15587. float Ln(float);
  15588. uint LogBaseTwo(uint);
  15589. void MarkNetworkUpdate();
  15590. float Max(float, float);
  15591. int Max(int, int);
  15592. float Min(float, float);
  15593. int Min(int, int);
  15594. float Mod(float, float);
  15595. uint NextPowerOfTwo(uint);
  15596. void OpenConsoleWindow();
  15597. float Pow(float, float);
  15598. void Print(bool, bool = false);
  15599. void Print(const String&, bool = false);
  15600. void Print(const Variant&, bool = false);
  15601. void Print(float, bool = false);
  15602. void Print(int, bool = false);
  15603. void Print(int64, bool = false);
  15604. void Print(uint, bool = false);
  15605. void Print(uint64, bool = false);
  15606. void PrintCallStack(bool = false);
  15607. float Random();
  15608. float Random(float);
  15609. float Random(float, float);
  15610. int RandomInt();
  15611. int RandomInt(int);
  15612. int RandomInt(int, int);
  15613. float RandomNormal(float, float);
  15614. void RegisterEventName(const String&);
  15615. void Remove();
  15616. String RemoveTrailingSlash(const String&);
  15617. String ReplaceExtension(const String&, const String&);
  15618. float Round(float);
  15619. int RoundToInt(float);
  15620. uint SDBMHash(uint, uint8);
  15621. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15622. void SetGlobalVar(const String&, Variant&);
  15623. void SetMiniDumpDir(const String&);
  15624. void SetRandomSeed(uint);
  15625. float Sign(float);
  15626. float Sin(float);
  15627. float SmoothStep(float, float, float);
  15628. float Sqrt(float);
  15629. float StableRandom(const Vector2&);
  15630. float StableRandom(const Vector3&);
  15631. float StableRandom(float);
  15632. const String& GetTypeName(StringHash);
  15633. void SubscribeToEvent(Object, const String&, const String&);
  15634. void SubscribeToEvent(const String&, const String&);
  15635. float Tan(float);
  15636. uint ToLower(uint);
  15637. String ToStringHex(int);
  15638. uint ToUpper(uint);
  15639. void UnsubscribeFromAllEvents();
  15640. void UnsubscribeFromAllEventsExcept(Array<String>);
  15641. void UnsubscribeFromEvent(Object, const String&);
  15642. void UnsubscribeFromEvent(const String&);
  15643. void UnsubscribeFromEvents(Object);
  15644. Vector2 VectorCeil(const Vector2&);
  15645. Vector3 VectorCeil(const Vector3&);
  15646. Vector4 VectorCeil(const Vector4&);
  15647. IntVector2 VectorCeilToInt(const Vector2&);
  15648. IntVector3 VectorCeilToInt(const Vector3&);
  15649. Vector2 VectorFloor(const Vector2&);
  15650. Vector3 VectorFloor(const Vector3&);
  15651. Vector4 VectorFloor(const Vector4&);
  15652. IntVector2 VectorFloorToInt(const Vector2&);
  15653. IntVector3 VectorFloorToInt(const Vector3&);
  15654. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  15655. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  15656. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  15657. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  15658. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  15659. Vector2 VectorMax(const Vector2&, const Vector2&);
  15660. Vector3 VectorMax(const Vector3&, const Vector3&);
  15661. Vector4 VectorMax(const Vector4&, const Vector4&);
  15662. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  15663. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  15664. Vector2 VectorMin(const Vector2&, const Vector2&);
  15665. Vector3 VectorMin(const Vector3&, const Vector3&);
  15666. Vector4 VectorMin(const Vector4&, const Vector4&);
  15667. Vector2 VectorRound(const Vector2&);
  15668. Vector3 VectorRound(const Vector3&);
  15669. Vector4 VectorRound(const Vector4&);
  15670. IntVector2 VectorRoundToInt(const Vector2&);
  15671. IntVector3 VectorRoundToInt(const Vector3&);
  15672. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  15673. // Global properties
  15674. DBAPI DBAPI;
  15675. Audio audio;
  15676. ResourceCache cache;
  15677. Console console;
  15678. Database database;
  15679. DebugHud debugHud;
  15680. DebugRenderer debugRenderer;
  15681. Engine engine;
  15682. FileSystem fileSystem;
  15683. VariantMap globalVars;
  15684. Graphics graphics;
  15685. Input input;
  15686. Localization localization;
  15687. Log log;
  15688. Network network;
  15689. Node node;
  15690. Octree octree;
  15691. PhysicsWorld physicsWorld;
  15692. PhysicsWorld2D physicsWorld2D;
  15693. Renderer renderer;
  15694. ResourceCache resourceCache;
  15695. Scene scene;
  15696. Script script;
  15697. ScriptFile scriptFile;
  15698. ScriptInstance self;
  15699. Time time;
  15700. UI ui;
  15701. // Global constants
  15702. uint AM_COMPONENTID;
  15703. uint AM_DEFAULT;
  15704. uint AM_FILE;
  15705. uint AM_FILEREADONLY;
  15706. uint AM_LATESTDATA;
  15707. uint AM_NET;
  15708. uint AM_NODEID;
  15709. uint AM_NODEIDVECTOR;
  15710. uint AM_NOEDIT;
  15711. Color BLACK;
  15712. Color BLUE;
  15713. uint8 CHANNEL_POSITION;
  15714. uint8 CHANNEL_ROTATION;
  15715. uint8 CHANNEL_SCALE;
  15716. uint CLEAR_COLOR;
  15717. uint CLEAR_DEPTH;
  15718. uint CLEAR_STENCIL;
  15719. int CONTROLLER_AXIS_LEFTX;
  15720. int CONTROLLER_AXIS_LEFTY;
  15721. int CONTROLLER_AXIS_RIGHTX;
  15722. int CONTROLLER_AXIS_RIGHTY;
  15723. int CONTROLLER_AXIS_TRIGGERLEFT;
  15724. int CONTROLLER_AXIS_TRIGGERRIGHT;
  15725. int CONTROLLER_BUTTON_A;
  15726. int CONTROLLER_BUTTON_B;
  15727. int CONTROLLER_BUTTON_BACK;
  15728. int CONTROLLER_BUTTON_DPAD_DOWN;
  15729. int CONTROLLER_BUTTON_DPAD_LEFT;
  15730. int CONTROLLER_BUTTON_DPAD_RIGHT;
  15731. int CONTROLLER_BUTTON_DPAD_UP;
  15732. int CONTROLLER_BUTTON_GUIDE;
  15733. int CONTROLLER_BUTTON_LEFTSHOULDER;
  15734. int CONTROLLER_BUTTON_LEFTSTICK;
  15735. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  15736. int CONTROLLER_BUTTON_RIGHTSTICK;
  15737. int CONTROLLER_BUTTON_START;
  15738. int CONTROLLER_BUTTON_X;
  15739. int CONTROLLER_BUTTON_Y;
  15740. Color CYAN;
  15741. uint DD_DISABLED;
  15742. uint DD_SOURCE;
  15743. uint DD_SOURCE_AND_TARGET;
  15744. uint DD_TARGET;
  15745. uint DEBUGHUD_SHOW_ALL;
  15746. uint DEBUGHUD_SHOW_EVENTPROFILER;
  15747. uint DEBUGHUD_SHOW_MEMORY;
  15748. uint DEBUGHUD_SHOW_MODE;
  15749. uint DEBUGHUD_SHOW_NONE;
  15750. uint DEBUGHUD_SHOW_PROFILER;
  15751. uint DEBUGHUD_SHOW_STATS;
  15752. uint DEFAULT_LIGHTMASK;
  15753. uint DEFAULT_VIEWMASK;
  15754. uint DRAWABLE_ANY;
  15755. uint DRAWABLE_GEOMETRY;
  15756. uint DRAWABLE_GEOMETRY2D;
  15757. uint DRAWABLE_LIGHT;
  15758. uint DRAWABLE_ZONE;
  15759. uint FIRST_LOCAL_ID;
  15760. uint FIRST_REPLICATED_ID;
  15761. Color GRAY;
  15762. Color GREEN;
  15763. int HAT_CENTER;
  15764. int HAT_DOWN;
  15765. int HAT_LEFT;
  15766. int HAT_RIGHT;
  15767. int HAT_UP;
  15768. int KEY_0;
  15769. int KEY_1;
  15770. int KEY_2;
  15771. int KEY_3;
  15772. int KEY_4;
  15773. int KEY_5;
  15774. int KEY_6;
  15775. int KEY_7;
  15776. int KEY_8;
  15777. int KEY_9;
  15778. int KEY_A;
  15779. int KEY_ALT;
  15780. int KEY_APPLICATION;
  15781. int KEY_B;
  15782. int KEY_BACKSPACE;
  15783. int KEY_C;
  15784. int KEY_CAPSLOCK;
  15785. int KEY_CTRL;
  15786. int KEY_D;
  15787. int KEY_DELETE;
  15788. int KEY_DOWN;
  15789. int KEY_E;
  15790. int KEY_END;
  15791. int KEY_ESCAPE;
  15792. int KEY_F;
  15793. int KEY_F1;
  15794. int KEY_F10;
  15795. int KEY_F11;
  15796. int KEY_F12;
  15797. int KEY_F13;
  15798. int KEY_F14;
  15799. int KEY_F15;
  15800. int KEY_F16;
  15801. int KEY_F17;
  15802. int KEY_F18;
  15803. int KEY_F19;
  15804. int KEY_F2;
  15805. int KEY_F20;
  15806. int KEY_F21;
  15807. int KEY_F22;
  15808. int KEY_F23;
  15809. int KEY_F24;
  15810. int KEY_F3;
  15811. int KEY_F4;
  15812. int KEY_F5;
  15813. int KEY_F6;
  15814. int KEY_F7;
  15815. int KEY_F8;
  15816. int KEY_F9;
  15817. int KEY_G;
  15818. int KEY_GUI;
  15819. int KEY_H;
  15820. int KEY_HOME;
  15821. int KEY_I;
  15822. int KEY_INSERT;
  15823. int KEY_J;
  15824. int KEY_K;
  15825. int KEY_KP_0;
  15826. int KEY_KP_1;
  15827. int KEY_KP_2;
  15828. int KEY_KP_3;
  15829. int KEY_KP_4;
  15830. int KEY_KP_5;
  15831. int KEY_KP_6;
  15832. int KEY_KP_7;
  15833. int KEY_KP_8;
  15834. int KEY_KP_9;
  15835. int KEY_KP_DIVIDE;
  15836. int KEY_KP_ENTER;
  15837. int KEY_KP_MINUS;
  15838. int KEY_KP_MULTIPLY;
  15839. int KEY_KP_PERIOD;
  15840. int KEY_KP_PLUS;
  15841. int KEY_L;
  15842. int KEY_LALT;
  15843. int KEY_LCTRL;
  15844. int KEY_LEFT;
  15845. int KEY_LGUI;
  15846. int KEY_LSHIFT;
  15847. int KEY_M;
  15848. int KEY_N;
  15849. int KEY_NUMLOCKCLEAR;
  15850. int KEY_O;
  15851. int KEY_P;
  15852. int KEY_PAGEDOWN;
  15853. int KEY_PAGEUP;
  15854. int KEY_PAUSE;
  15855. int KEY_PRINTSCREEN;
  15856. int KEY_Q;
  15857. int KEY_R;
  15858. int KEY_RALT;
  15859. int KEY_RCTRL;
  15860. int KEY_RETURN;
  15861. int KEY_RETURN2;
  15862. int KEY_RGUI;
  15863. int KEY_RIGHT;
  15864. int KEY_RSHIFT;
  15865. int KEY_S;
  15866. int KEY_SCROLLLOCK;
  15867. int KEY_SELECT;
  15868. int KEY_SHIFT;
  15869. int KEY_SPACE;
  15870. int KEY_T;
  15871. int KEY_TAB;
  15872. int KEY_U;
  15873. int KEY_UNKNOWN;
  15874. int KEY_UP;
  15875. int KEY_V;
  15876. int KEY_W;
  15877. int KEY_X;
  15878. int KEY_Y;
  15879. int KEY_Z;
  15880. uint LAST_LOCAL_ID;
  15881. uint LAST_REPLICATED_ID;
  15882. int LOG_DEBUG;
  15883. int LOG_ERROR;
  15884. int LOG_INFO;
  15885. int LOG_NONE;
  15886. int LOG_WARNING;
  15887. Color MAGENTA;
  15888. uint MASK_BLENDINDICES;
  15889. uint MASK_BLENDWEIGHTS;
  15890. uint MASK_COLOR;
  15891. uint MASK_CUBETEXCOORD1;
  15892. uint MASK_CUBETEXCOORD2;
  15893. uint MASK_INSTANCEMATRIX1;
  15894. uint MASK_INSTANCEMATRIX2;
  15895. uint MASK_INSTANCEMATRIX3;
  15896. uint MASK_NONE;
  15897. uint MASK_NORMAL;
  15898. uint MASK_OBJECTINDEX;
  15899. uint MASK_POSITION;
  15900. uint MASK_TANGENT;
  15901. uint MASK_TEXCOORD1;
  15902. uint MASK_TEXCOORD2;
  15903. int MOUSEB_LEFT;
  15904. int MOUSEB_MIDDLE;
  15905. int MOUSEB_RIGHT;
  15906. float M_DEGTORAD;
  15907. float M_DEGTORAD_2;
  15908. float M_EPSILON;
  15909. float M_HALF_PI;
  15910. float M_INFINITY;
  15911. float M_LARGE_EPSILON;
  15912. float M_LARGE_VALUE;
  15913. int M_MAX_INT;
  15914. uint M_MAX_UNSIGNED;
  15915. int M_MIN_INT;
  15916. uint M_MIN_UNSIGNED;
  15917. float M_PI;
  15918. float M_RADTODEG;
  15919. uint NPOS;
  15920. float PIXEL_SIZE;
  15921. int QUALITY_HIGH;
  15922. int QUALITY_LOW;
  15923. int QUALITY_MAX;
  15924. int QUALITY_MEDIUM;
  15925. int QUAL_ALT;
  15926. int QUAL_ANY;
  15927. int QUAL_CTRL;
  15928. int QUAL_SHIFT;
  15929. Color RED;
  15930. int SCANCODE_0;
  15931. int SCANCODE_1;
  15932. int SCANCODE_2;
  15933. int SCANCODE_3;
  15934. int SCANCODE_4;
  15935. int SCANCODE_5;
  15936. int SCANCODE_6;
  15937. int SCANCODE_7;
  15938. int SCANCODE_8;
  15939. int SCANCODE_9;
  15940. int SCANCODE_A;
  15941. int SCANCODE_AC_BACK;
  15942. int SCANCODE_AC_BOOKMARKS;
  15943. int SCANCODE_AC_FORWARD;
  15944. int SCANCODE_AC_HOME;
  15945. int SCANCODE_AC_REFRESH;
  15946. int SCANCODE_AC_SEARCH;
  15947. int SCANCODE_AC_STOP;
  15948. int SCANCODE_AGAIN;
  15949. int SCANCODE_ALT;
  15950. int SCANCODE_ALTERASE;
  15951. int SCANCODE_APOSTROPHE;
  15952. int SCANCODE_APP1;
  15953. int SCANCODE_APP2;
  15954. int SCANCODE_APPLICATION;
  15955. int SCANCODE_AUDIOMUTE;
  15956. int SCANCODE_AUDIONEXT;
  15957. int SCANCODE_AUDIOPLAY;
  15958. int SCANCODE_AUDIOPREV;
  15959. int SCANCODE_AUDIOSTOP;
  15960. int SCANCODE_B;
  15961. int SCANCODE_BACKSLASH;
  15962. int SCANCODE_BACKSPACE;
  15963. int SCANCODE_BRIGHTNESSDOWN;
  15964. int SCANCODE_BRIGHTNESSUP;
  15965. int SCANCODE_C;
  15966. int SCANCODE_CALCULATOR;
  15967. int SCANCODE_CANCEL;
  15968. int SCANCODE_CAPSLOCK;
  15969. int SCANCODE_CLEAR;
  15970. int SCANCODE_CLEARAGAIN;
  15971. int SCANCODE_COMMA;
  15972. int SCANCODE_COMPUTER;
  15973. int SCANCODE_COPY;
  15974. int SCANCODE_CRSEL;
  15975. int SCANCODE_CTRL;
  15976. int SCANCODE_CURRENCYSUBUNIT;
  15977. int SCANCODE_CURRENCYUNIT;
  15978. int SCANCODE_CUT;
  15979. int SCANCODE_D;
  15980. int SCANCODE_DECIMALSEPARATOR;
  15981. int SCANCODE_DELETE;
  15982. int SCANCODE_DISPLAYSWITCH;
  15983. int SCANCODE_DOWN;
  15984. int SCANCODE_E;
  15985. int SCANCODE_EJECT;
  15986. int SCANCODE_END;
  15987. int SCANCODE_EQUALS;
  15988. int SCANCODE_ESCAPE;
  15989. int SCANCODE_EXECUTE;
  15990. int SCANCODE_EXSEL;
  15991. int SCANCODE_F;
  15992. int SCANCODE_F1;
  15993. int SCANCODE_F10;
  15994. int SCANCODE_F11;
  15995. int SCANCODE_F12;
  15996. int SCANCODE_F13;
  15997. int SCANCODE_F14;
  15998. int SCANCODE_F15;
  15999. int SCANCODE_F16;
  16000. int SCANCODE_F17;
  16001. int SCANCODE_F18;
  16002. int SCANCODE_F19;
  16003. int SCANCODE_F2;
  16004. int SCANCODE_F20;
  16005. int SCANCODE_F21;
  16006. int SCANCODE_F22;
  16007. int SCANCODE_F23;
  16008. int SCANCODE_F24;
  16009. int SCANCODE_F3;
  16010. int SCANCODE_F4;
  16011. int SCANCODE_F5;
  16012. int SCANCODE_F6;
  16013. int SCANCODE_F7;
  16014. int SCANCODE_F8;
  16015. int SCANCODE_F9;
  16016. int SCANCODE_FIND;
  16017. int SCANCODE_G;
  16018. int SCANCODE_GRAVE;
  16019. int SCANCODE_GUI;
  16020. int SCANCODE_H;
  16021. int SCANCODE_HELP;
  16022. int SCANCODE_HOME;
  16023. int SCANCODE_I;
  16024. int SCANCODE_INSERT;
  16025. int SCANCODE_INTERNATIONAL1;
  16026. int SCANCODE_INTERNATIONAL2;
  16027. int SCANCODE_INTERNATIONAL3;
  16028. int SCANCODE_INTERNATIONAL4;
  16029. int SCANCODE_INTERNATIONAL5;
  16030. int SCANCODE_INTERNATIONAL6;
  16031. int SCANCODE_INTERNATIONAL7;
  16032. int SCANCODE_INTERNATIONAL8;
  16033. int SCANCODE_INTERNATIONAL9;
  16034. int SCANCODE_J;
  16035. int SCANCODE_K;
  16036. int SCANCODE_KBDILLUMDOWN;
  16037. int SCANCODE_KBDILLUMTOGGLE;
  16038. int SCANCODE_KBDILLUMUP;
  16039. int SCANCODE_KP_0;
  16040. int SCANCODE_KP_00;
  16041. int SCANCODE_KP_000;
  16042. int SCANCODE_KP_1;
  16043. int SCANCODE_KP_2;
  16044. int SCANCODE_KP_3;
  16045. int SCANCODE_KP_4;
  16046. int SCANCODE_KP_5;
  16047. int SCANCODE_KP_6;
  16048. int SCANCODE_KP_7;
  16049. int SCANCODE_KP_8;
  16050. int SCANCODE_KP_9;
  16051. int SCANCODE_KP_A;
  16052. int SCANCODE_KP_AMPERSAND;
  16053. int SCANCODE_KP_AT;
  16054. int SCANCODE_KP_B;
  16055. int SCANCODE_KP_BACKSPACE;
  16056. int SCANCODE_KP_BINARY;
  16057. int SCANCODE_KP_C;
  16058. int SCANCODE_KP_CLEAR;
  16059. int SCANCODE_KP_CLEARENTRY;
  16060. int SCANCODE_KP_COLON;
  16061. int SCANCODE_KP_COMMA;
  16062. int SCANCODE_KP_D;
  16063. int SCANCODE_KP_DBLAMPERSAND;
  16064. int SCANCODE_KP_DBLVERTICALBAR;
  16065. int SCANCODE_KP_DECIMAL;
  16066. int SCANCODE_KP_DIVIDE;
  16067. int SCANCODE_KP_E;
  16068. int SCANCODE_KP_ENTER;
  16069. int SCANCODE_KP_EQUALS;
  16070. int SCANCODE_KP_EQUALSAS400;
  16071. int SCANCODE_KP_EXCLAM;
  16072. int SCANCODE_KP_F;
  16073. int SCANCODE_KP_GREATER;
  16074. int SCANCODE_KP_HASH;
  16075. int SCANCODE_KP_HEXADECIMAL;
  16076. int SCANCODE_KP_LEFTBRACE;
  16077. int SCANCODE_KP_LEFTPAREN;
  16078. int SCANCODE_KP_LESS;
  16079. int SCANCODE_KP_MEMADD;
  16080. int SCANCODE_KP_MEMCLEAR;
  16081. int SCANCODE_KP_MEMDIVIDE;
  16082. int SCANCODE_KP_MEMMULTIPLY;
  16083. int SCANCODE_KP_MEMRECALL;
  16084. int SCANCODE_KP_MEMSTORE;
  16085. int SCANCODE_KP_MEMSUBTRACT;
  16086. int SCANCODE_KP_MINUS;
  16087. int SCANCODE_KP_MULTIPLY;
  16088. int SCANCODE_KP_OCTAL;
  16089. int SCANCODE_KP_PERCENT;
  16090. int SCANCODE_KP_PERIOD;
  16091. int SCANCODE_KP_PLUS;
  16092. int SCANCODE_KP_PLUSMINUS;
  16093. int SCANCODE_KP_POWER;
  16094. int SCANCODE_KP_RIGHTBRACE;
  16095. int SCANCODE_KP_RIGHTPAREN;
  16096. int SCANCODE_KP_SPACE;
  16097. int SCANCODE_KP_TAB;
  16098. int SCANCODE_KP_VERTICALBAR;
  16099. int SCANCODE_KP_XOR;
  16100. int SCANCODE_L;
  16101. int SCANCODE_LALT;
  16102. int SCANCODE_LANG1;
  16103. int SCANCODE_LANG2;
  16104. int SCANCODE_LANG3;
  16105. int SCANCODE_LANG4;
  16106. int SCANCODE_LANG5;
  16107. int SCANCODE_LANG6;
  16108. int SCANCODE_LANG7;
  16109. int SCANCODE_LANG8;
  16110. int SCANCODE_LANG9;
  16111. int SCANCODE_LCTRL;
  16112. int SCANCODE_LEFT;
  16113. int SCANCODE_LEFTBRACKET;
  16114. int SCANCODE_LGUI;
  16115. int SCANCODE_LSHIFT;
  16116. int SCANCODE_M;
  16117. int SCANCODE_MAIL;
  16118. int SCANCODE_MEDIASELECT;
  16119. int SCANCODE_MENU;
  16120. int SCANCODE_MINUS;
  16121. int SCANCODE_MODE;
  16122. int SCANCODE_MUTE;
  16123. int SCANCODE_N;
  16124. int SCANCODE_NONUSBACKSLASH;
  16125. int SCANCODE_NONUSHASH;
  16126. int SCANCODE_NUMLOCKCLEAR;
  16127. int SCANCODE_O;
  16128. int SCANCODE_OPER;
  16129. int SCANCODE_OUT;
  16130. int SCANCODE_P;
  16131. int SCANCODE_PAGEDOWN;
  16132. int SCANCODE_PAGEUP;
  16133. int SCANCODE_PASTE;
  16134. int SCANCODE_PAUSE;
  16135. int SCANCODE_PERIOD;
  16136. int SCANCODE_POWER;
  16137. int SCANCODE_PRINTSCREEN;
  16138. int SCANCODE_PRIOR;
  16139. int SCANCODE_Q;
  16140. int SCANCODE_R;
  16141. int SCANCODE_RALT;
  16142. int SCANCODE_RCTRL;
  16143. int SCANCODE_RETURN;
  16144. int SCANCODE_RETURN2;
  16145. int SCANCODE_RGUI;
  16146. int SCANCODE_RIGHT;
  16147. int SCANCODE_RIGHTBRACKET;
  16148. int SCANCODE_RSHIFT;
  16149. int SCANCODE_S;
  16150. int SCANCODE_SCROLLLOCK;
  16151. int SCANCODE_SELECT;
  16152. int SCANCODE_SEMICOLON;
  16153. int SCANCODE_SEPARATOR;
  16154. int SCANCODE_SHIFT;
  16155. int SCANCODE_SLASH;
  16156. int SCANCODE_SLEEP;
  16157. int SCANCODE_SPACE;
  16158. int SCANCODE_STOP;
  16159. int SCANCODE_SYSREQ;
  16160. int SCANCODE_T;
  16161. int SCANCODE_TAB;
  16162. int SCANCODE_THOUSANDSSEPARATOR;
  16163. int SCANCODE_U;
  16164. int SCANCODE_UNDO;
  16165. int SCANCODE_UNKNOWN;
  16166. int SCANCODE_UP;
  16167. int SCANCODE_V;
  16168. int SCANCODE_VOLUMEDOWN;
  16169. int SCANCODE_VOLUMEUP;
  16170. int SCANCODE_W;
  16171. int SCANCODE_WWW;
  16172. int SCANCODE_X;
  16173. int SCANCODE_Y;
  16174. int SCANCODE_Z;
  16175. uint SCAN_DIRS;
  16176. uint SCAN_FILES;
  16177. uint SCAN_HIDDEN;
  16178. String SOUND_AMBIENT;
  16179. String SOUND_EFFECT;
  16180. String SOUND_MASTER;
  16181. String SOUND_MUSIC;
  16182. String SOUND_VOICE;
  16183. Color TRANSPARENT;
  16184. uint VO_DISABLE_OCCLUSION;
  16185. uint VO_DISABLE_SHADOWS;
  16186. uint VO_LOW_MATERIAL_QUALITY;
  16187. uint VO_NONE;
  16188. Color WHITE;
  16189. Color YELLOW;