AngelScriptAPI.h 412 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710
  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. bool Swap(Array<T>&);
  608. // Properties:
  609. /* readonly */
  610. bool empty;
  611. uint length;
  612. };
  613. class AttributeInfo
  614. {
  615. public:
  616. ~AttributeInfo();
  617. AttributeInfo();
  618. AttributeInfo(const AttributeInfo&in);
  619. // Properties:
  620. Variant defaultValue;
  621. /* readonly */
  622. Array<String> enumNames;
  623. VariantMap metadata;
  624. uint mode;
  625. String name;
  626. VariantType type;
  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 SetDisabledOffset(int, int);
  1138. void SetEnabledRecursive(bool);
  1139. void SetFixedHeight(int);
  1140. void SetFixedSize(int, int);
  1141. void SetFixedWidth(int);
  1142. void SetFullImageRect();
  1143. void SetHoverOffset(int, int);
  1144. void SetInterceptNetworkUpdate(const String&, bool);
  1145. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1146. void SetMaxAnchor(float, float);
  1147. void SetMaxSize(int, int);
  1148. void SetMinAnchor(float, float);
  1149. void SetMinSize(int, int);
  1150. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1151. void SetPivot(float, float);
  1152. void SetPosition(int, int);
  1153. void SetPressedChildOffset(int, int);
  1154. void SetPressedOffset(int, int);
  1155. void SetRepeat(float, float);
  1156. void SetSize(int, int);
  1157. bool SetStyle(const String&, XMLFile = null);
  1158. bool SetStyle(const XMLElement&);
  1159. bool SetStyleAuto(XMLFile = null);
  1160. void UpdateLayout();
  1161. const Variant& GetVar(const StringHash&);
  1162. // Properties:
  1163. bool animationEnabled;
  1164. /* readonly */
  1165. Array<Variant> attributeDefaults;
  1166. /* readonly */
  1167. Array<AttributeInfo> attributeInfos;
  1168. Array<Variant> attributes;
  1169. BlendMode blendMode;
  1170. IntRect border;
  1171. bool bringToBack;
  1172. bool bringToFront;
  1173. /* readonly */
  1174. String category;
  1175. /* readonly */
  1176. IntVector2 childOffset;
  1177. /* readonly */
  1178. Array<UIElement> children;
  1179. IntRect clipBorder;
  1180. bool clipChildren;
  1181. /* writeonly */
  1182. Color color;
  1183. /* readonly */
  1184. bool colorGradient;
  1185. Array<Color> colors;
  1186. /* readonly */
  1187. IntRect combinedScreenRect;
  1188. XMLFile defaultStyle;
  1189. /* readonly */
  1190. float derivedOpacity;
  1191. IntVector2 disabledOffset;
  1192. /* readonly */
  1193. uint dragButtonCombo;
  1194. /* readonly */
  1195. int dragButtonCount;
  1196. uint dragDropMode;
  1197. bool editable;
  1198. bool elementEventSender;
  1199. bool enableAnchor;
  1200. bool enabled;
  1201. /* readonly */
  1202. bool enabledSelf;
  1203. /* readonly */
  1204. bool fixedHeight;
  1205. /* readonly */
  1206. bool fixedSize;
  1207. /* readonly */
  1208. bool fixedWidth;
  1209. bool focus;
  1210. FocusMode focusMode;
  1211. int height;
  1212. HorizontalAlignment horizontalAlignment;
  1213. IntVector2 hoverOffset;
  1214. /* readonly */
  1215. bool hovering;
  1216. IntRect imageBorder;
  1217. IntRect imageRect;
  1218. int indent;
  1219. int indentSpacing;
  1220. /* readonly */
  1221. int indentWidth;
  1222. bool internal;
  1223. IntRect layoutBorder;
  1224. Vector2 layoutFlexScale;
  1225. LayoutMode layoutMode;
  1226. int layoutSpacing;
  1227. Vector2 maxAnchor;
  1228. int maxHeight;
  1229. IntVector2 maxOffset;
  1230. IntVector2 maxSize;
  1231. int maxWidth;
  1232. Vector2 minAnchor;
  1233. int minHeight;
  1234. IntVector2 minOffset;
  1235. IntVector2 minSize;
  1236. int minWidth;
  1237. String name;
  1238. /* readonly */
  1239. uint numAllChildren;
  1240. /* readonly */
  1241. uint numAttributes;
  1242. /* readonly */
  1243. uint numChildren;
  1244. ObjectAnimation objectAnimation;
  1245. float opacity;
  1246. UIElement parent;
  1247. Vector2 pivot;
  1248. IntVector2 position;
  1249. /* readonly */
  1250. bool pressed;
  1251. IntVector2 pressedChildOffset;
  1252. IntVector2 pressedOffset;
  1253. int priority;
  1254. /* readonly */
  1255. int refs;
  1256. float repeatDelay;
  1257. float repeatRate;
  1258. /* readonly */
  1259. UIElement root;
  1260. /* readonly */
  1261. IntVector2 screenPosition;
  1262. bool selected;
  1263. IntVector2 size;
  1264. bool sortChildren;
  1265. String style;
  1266. /* readonly */
  1267. Array<String> tags;
  1268. bool temporary;
  1269. Texture texture;
  1270. bool tiled;
  1271. TraversalMode traversalMode;
  1272. /* readonly */
  1273. StringHash type;
  1274. /* readonly */
  1275. String typeName;
  1276. bool useDerivedOpacity;
  1277. /* readonly */
  1278. VariantMap vars;
  1279. VerticalAlignment verticalAlignment;
  1280. bool visible;
  1281. /* readonly */
  1282. bool visibleEffective;
  1283. /* readonly */
  1284. int weakRefs;
  1285. int width;
  1286. };
  1287. class Camera
  1288. {
  1289. public:
  1290. // Methods:
  1291. void ApplyAttributes();
  1292. void DrawDebugGeometry(DebugRenderer, bool);
  1293. Variant GetAttribute(const String&) const;
  1294. ValueAnimation GetAttributeAnimation(const String&) const;
  1295. float GetAttributeAnimationSpeed(const String&) const;
  1296. float GetAttributeAnimationTime(const String&) const;
  1297. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1298. Variant GetAttributeDefault(const String&) const;
  1299. float GetDistance(const Vector3&) const;
  1300. float GetDistanceSquared(const Vector3&) const;
  1301. bool GetInterceptNetworkUpdate(const String&) const;
  1302. Ray GetScreenRay(float, float) const;
  1303. Frustum GetSplitFrustum(float, float) const;
  1304. bool HasSubscribedToEvent(Object, const String&);
  1305. bool HasSubscribedToEvent(const String&);
  1306. bool Load(File, bool = false);
  1307. bool Load(VectorBuffer&, bool = false);
  1308. bool LoadJSON(const JSONValue&, bool = false);
  1309. bool LoadXML(const XMLElement&, bool = false);
  1310. void MarkNetworkUpdate() const;
  1311. void Remove();
  1312. void RemoveAttributeAnimation(const String&);
  1313. void RemoveInstanceDefault();
  1314. void RemoveObjectAnimation();
  1315. void ResetToDefault();
  1316. bool Save(File) const;
  1317. bool Save(VectorBuffer&) const;
  1318. bool SaveJSON(JSONValue&) const;
  1319. bool SaveXML(XMLElement&) const;
  1320. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1321. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1322. void SetAnimationTime(float);
  1323. bool SetAttribute(const String&, const Variant&);
  1324. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1325. void SetAttributeAnimationSpeed(const String&, float);
  1326. void SetAttributeAnimationTime(const String&, float);
  1327. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1328. void SetInterceptNetworkUpdate(const String&, bool);
  1329. void SetOrthoSize(const Vector2&);
  1330. Vector2 WorldToScreenPoint(const Vector3&) const;
  1331. // Properties:
  1332. bool animationEnabled;
  1333. float aspectRatio;
  1334. /* readonly */
  1335. Array<Variant> attributeDefaults;
  1336. /* readonly */
  1337. Array<AttributeInfo> attributeInfos;
  1338. Array<Variant> attributes;
  1339. bool autoAspectRatio;
  1340. /* readonly */
  1341. String category;
  1342. Plane clipPlane;
  1343. /* readonly */
  1344. Matrix3x4 effectiveWorldTransform;
  1345. bool enabled;
  1346. /* readonly */
  1347. bool enabledEffective;
  1348. float farClip;
  1349. FillMode fillMode;
  1350. float fov;
  1351. /* readonly */
  1352. Frustum frustum;
  1353. /* readonly */
  1354. Matrix4 gpuProjection;
  1355. /* readonly */
  1356. float halfViewSize;
  1357. /* readonly */
  1358. uint id;
  1359. float lodBias;
  1360. float nearClip;
  1361. /* readonly */
  1362. Node node;
  1363. /* readonly */
  1364. uint numAttributes;
  1365. ObjectAnimation objectAnimation;
  1366. float orthoSize;
  1367. bool orthographic;
  1368. Matrix4 projection;
  1369. Vector2 projectionOffset;
  1370. Plane reflectionPlane;
  1371. /* readonly */
  1372. int refs;
  1373. bool temporary;
  1374. /* readonly */
  1375. StringHash type;
  1376. /* readonly */
  1377. String typeName;
  1378. bool useClipping;
  1379. bool useReflection;
  1380. /* readonly */
  1381. Matrix3x4 view;
  1382. uint viewMask;
  1383. uint viewOverrideFlags;
  1384. /* readonly */
  1385. Frustum viewSpaceFrustum;
  1386. /* readonly */
  1387. int weakRefs;
  1388. float zoom;
  1389. };
  1390. class CascadeParameters
  1391. {
  1392. public:
  1393. CascadeParameters();
  1394. CascadeParameters(const CascadeParameters&in);
  1395. CascadeParameters(float, float, float, float, float, float biasAutoAdjust = 1.0);
  1396. // Properties:
  1397. float biasAutoAdjust;
  1398. float fadeStart;
  1399. float split1;
  1400. float split2;
  1401. float split3;
  1402. float split4;
  1403. };
  1404. class CheckBox
  1405. {
  1406. public:
  1407. CheckBox();
  1408. CheckBox(const String&in);
  1409. // Methods:
  1410. void AddChild(UIElement);
  1411. void AddTag(const String&);
  1412. void AddTags(const String&, int8 = ';');
  1413. void ApplyAttributes();
  1414. void BringToFront();
  1415. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1416. void DisableLayoutUpdate();
  1417. IntVector2 ElementToScreen(const IntVector2&);
  1418. void EnableLayoutUpdate();
  1419. uint FindChild(UIElement) const;
  1420. Variant GetAttribute(const String&) const;
  1421. ValueAnimation GetAttributeAnimation(const String&) const;
  1422. float GetAttributeAnimationSpeed(const String&) const;
  1423. float GetAttributeAnimationTime(const String&) const;
  1424. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1425. Variant GetAttributeDefault(const String&) const;
  1426. UIElement GetChild(const String&, bool = false) const;
  1427. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1428. Array<UIElement> GetChildren(bool = false) const;
  1429. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1430. UIElement GetElementEventSender() const;
  1431. bool GetInterceptNetworkUpdate(const String&) const;
  1432. uint GetNumChildren(bool) const;
  1433. bool HasSubscribedToEvent(Object, const String&);
  1434. bool HasSubscribedToEvent(const String&);
  1435. bool HasTag(const String&) const;
  1436. void InsertChild(uint, UIElement);
  1437. bool IsInside(IntVector2, bool);
  1438. bool IsInsideCombined(IntVector2, bool);
  1439. bool Load(File, bool = false);
  1440. bool Load(VectorBuffer&, bool = false);
  1441. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1442. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1443. bool LoadJSON(const JSONValue&, bool = false);
  1444. bool LoadXML(File);
  1445. bool LoadXML(VectorBuffer&);
  1446. bool LoadXML(XMLFile, XMLFile);
  1447. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1448. bool LoadXML(const XMLElement&, bool = false);
  1449. void MarkNetworkUpdate() const;
  1450. void Remove();
  1451. void RemoveAllChildren();
  1452. void RemoveAllTags();
  1453. void RemoveAttributeAnimation(const String&);
  1454. void RemoveChild(UIElement, uint = 0);
  1455. void RemoveChild(uint);
  1456. void RemoveInstanceDefault();
  1457. void RemoveObjectAnimation();
  1458. bool RemoveTag(const String&);
  1459. void ResetDeepEnabled();
  1460. void ResetToDefault();
  1461. bool Save(File) const;
  1462. bool Save(VectorBuffer&) const;
  1463. bool SaveJSON(JSONValue&) const;
  1464. bool SaveXML(File, const String& = "\t");
  1465. bool SaveXML(VectorBuffer&, const String& = "\t");
  1466. bool SaveXML(XMLElement&) const;
  1467. IntVector2 ScreenToElement(const IntVector2&);
  1468. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1469. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1470. void SetAnimationTime(float);
  1471. bool SetAttribute(const String&, const Variant&);
  1472. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1473. void SetAttributeAnimationSpeed(const String&, float);
  1474. void SetAttributeAnimationTime(const String&, float);
  1475. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1476. void SetCheckedOffset(int, int);
  1477. void SetDeepEnabled(bool);
  1478. void SetEnabledRecursive(bool);
  1479. void SetFixedHeight(int);
  1480. void SetFixedSize(int, int);
  1481. void SetFixedWidth(int);
  1482. void SetFullImageRect();
  1483. void SetHoverOffset(int, int);
  1484. void SetInterceptNetworkUpdate(const String&, bool);
  1485. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1486. void SetMaxAnchor(float, float);
  1487. void SetMaxSize(int, int);
  1488. void SetMinAnchor(float, float);
  1489. void SetMinSize(int, int);
  1490. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1491. void SetPivot(float, float);
  1492. void SetPosition(int, int);
  1493. void SetSize(int, int);
  1494. bool SetStyle(const String&, XMLFile = null);
  1495. bool SetStyle(const XMLElement&);
  1496. bool SetStyleAuto(XMLFile = null);
  1497. void UpdateLayout();
  1498. const Variant& GetVar(const StringHash&);
  1499. // Properties:
  1500. bool animationEnabled;
  1501. /* readonly */
  1502. Array<Variant> attributeDefaults;
  1503. /* readonly */
  1504. Array<AttributeInfo> attributeInfos;
  1505. Array<Variant> attributes;
  1506. BlendMode blendMode;
  1507. IntRect border;
  1508. bool bringToBack;
  1509. bool bringToFront;
  1510. /* readonly */
  1511. String category;
  1512. bool checked;
  1513. IntVector2 checkedOffset;
  1514. /* readonly */
  1515. IntVector2 childOffset;
  1516. /* readonly */
  1517. Array<UIElement> children;
  1518. IntRect clipBorder;
  1519. bool clipChildren;
  1520. /* writeonly */
  1521. Color color;
  1522. /* readonly */
  1523. bool colorGradient;
  1524. Array<Color> colors;
  1525. /* readonly */
  1526. IntRect combinedScreenRect;
  1527. XMLFile defaultStyle;
  1528. /* readonly */
  1529. float derivedOpacity;
  1530. /* readonly */
  1531. uint dragButtonCombo;
  1532. /* readonly */
  1533. int dragButtonCount;
  1534. uint dragDropMode;
  1535. bool editable;
  1536. bool elementEventSender;
  1537. bool enableAnchor;
  1538. bool enabled;
  1539. /* readonly */
  1540. bool enabledSelf;
  1541. /* readonly */
  1542. bool fixedHeight;
  1543. /* readonly */
  1544. bool fixedSize;
  1545. /* readonly */
  1546. bool fixedWidth;
  1547. bool focus;
  1548. FocusMode focusMode;
  1549. int height;
  1550. HorizontalAlignment horizontalAlignment;
  1551. IntVector2 hoverOffset;
  1552. /* readonly */
  1553. bool hovering;
  1554. IntRect imageBorder;
  1555. IntRect imageRect;
  1556. int indent;
  1557. int indentSpacing;
  1558. /* readonly */
  1559. int indentWidth;
  1560. bool internal;
  1561. IntRect layoutBorder;
  1562. Vector2 layoutFlexScale;
  1563. LayoutMode layoutMode;
  1564. int layoutSpacing;
  1565. Vector2 maxAnchor;
  1566. int maxHeight;
  1567. IntVector2 maxOffset;
  1568. IntVector2 maxSize;
  1569. int maxWidth;
  1570. Vector2 minAnchor;
  1571. int minHeight;
  1572. IntVector2 minOffset;
  1573. IntVector2 minSize;
  1574. int minWidth;
  1575. String name;
  1576. /* readonly */
  1577. uint numAllChildren;
  1578. /* readonly */
  1579. uint numAttributes;
  1580. /* readonly */
  1581. uint numChildren;
  1582. ObjectAnimation objectAnimation;
  1583. float opacity;
  1584. UIElement parent;
  1585. Vector2 pivot;
  1586. IntVector2 position;
  1587. int priority;
  1588. /* readonly */
  1589. int refs;
  1590. /* readonly */
  1591. UIElement root;
  1592. /* readonly */
  1593. IntVector2 screenPosition;
  1594. bool selected;
  1595. IntVector2 size;
  1596. bool sortChildren;
  1597. String style;
  1598. /* readonly */
  1599. Array<String> tags;
  1600. bool temporary;
  1601. Texture texture;
  1602. bool tiled;
  1603. TraversalMode traversalMode;
  1604. /* readonly */
  1605. StringHash type;
  1606. /* readonly */
  1607. String typeName;
  1608. bool useDerivedOpacity;
  1609. /* readonly */
  1610. VariantMap vars;
  1611. VerticalAlignment verticalAlignment;
  1612. bool visible;
  1613. /* readonly */
  1614. bool visibleEffective;
  1615. /* readonly */
  1616. int weakRefs;
  1617. int width;
  1618. };
  1619. class CollisionBox2D
  1620. {
  1621. public:
  1622. // Methods:
  1623. void ApplyAttributes();
  1624. void DrawDebugGeometry(DebugRenderer, bool);
  1625. Variant GetAttribute(const String&) const;
  1626. ValueAnimation GetAttributeAnimation(const String&) const;
  1627. float GetAttributeAnimationSpeed(const String&) const;
  1628. float GetAttributeAnimationTime(const String&) const;
  1629. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1630. Variant GetAttributeDefault(const String&) const;
  1631. bool GetInterceptNetworkUpdate(const String&) const;
  1632. bool HasSubscribedToEvent(Object, const String&);
  1633. bool HasSubscribedToEvent(const String&);
  1634. bool Load(File, bool = false);
  1635. bool Load(VectorBuffer&, bool = false);
  1636. bool LoadJSON(const JSONValue&, bool = false);
  1637. bool LoadXML(const XMLElement&, bool = false);
  1638. void MarkNetworkUpdate() const;
  1639. void Remove();
  1640. void RemoveAttributeAnimation(const String&);
  1641. void RemoveInstanceDefault();
  1642. void RemoveObjectAnimation();
  1643. void ResetToDefault();
  1644. bool Save(File) const;
  1645. bool Save(VectorBuffer&) const;
  1646. bool SaveJSON(JSONValue&) const;
  1647. bool SaveXML(XMLElement&) const;
  1648. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1649. void SetAnimationTime(float);
  1650. bool SetAttribute(const String&, const Variant&);
  1651. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1652. void SetAttributeAnimationSpeed(const String&, float);
  1653. void SetAttributeAnimationTime(const String&, float);
  1654. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1655. void SetCenter(float, float);
  1656. void SetInterceptNetworkUpdate(const String&, bool);
  1657. void SetSize(float, float);
  1658. // Properties:
  1659. float angle;
  1660. bool animationEnabled;
  1661. /* readonly */
  1662. Array<Variant> attributeDefaults;
  1663. /* readonly */
  1664. Array<AttributeInfo> attributeInfos;
  1665. Array<Variant> attributes;
  1666. /* readonly */
  1667. String category;
  1668. int categoryBits;
  1669. Vector2 center;
  1670. float density;
  1671. bool enabled;
  1672. /* readonly */
  1673. bool enabledEffective;
  1674. float friction;
  1675. int groupIndex;
  1676. /* readonly */
  1677. uint id;
  1678. /* readonly */
  1679. float inertia;
  1680. int maskBits;
  1681. /* readonly */
  1682. float mass;
  1683. /* readonly */
  1684. Vector2 massCenter;
  1685. /* readonly */
  1686. Node node;
  1687. /* readonly */
  1688. uint numAttributes;
  1689. ObjectAnimation objectAnimation;
  1690. /* readonly */
  1691. int refs;
  1692. float restitution;
  1693. Vector2 size;
  1694. bool temporary;
  1695. bool trigger;
  1696. /* readonly */
  1697. StringHash type;
  1698. /* readonly */
  1699. String typeName;
  1700. /* readonly */
  1701. int weakRefs;
  1702. };
  1703. class CollisionChain2D
  1704. {
  1705. public:
  1706. // Methods:
  1707. void ApplyAttributes();
  1708. void DrawDebugGeometry(DebugRenderer, bool);
  1709. Variant GetAttribute(const String&) const;
  1710. ValueAnimation GetAttributeAnimation(const String&) const;
  1711. float GetAttributeAnimationSpeed(const String&) const;
  1712. float GetAttributeAnimationTime(const String&) const;
  1713. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1714. Variant GetAttributeDefault(const String&) const;
  1715. bool GetInterceptNetworkUpdate(const String&) const;
  1716. Array<Vector2> GetVertices() const;
  1717. bool HasSubscribedToEvent(Object, const String&);
  1718. bool HasSubscribedToEvent(const String&);
  1719. bool Load(File, bool = false);
  1720. bool Load(VectorBuffer&, bool = false);
  1721. bool LoadJSON(const JSONValue&, bool = false);
  1722. bool LoadXML(const XMLElement&, bool = false);
  1723. void MarkNetworkUpdate() const;
  1724. void Remove();
  1725. void RemoveAttributeAnimation(const String&);
  1726. void RemoveInstanceDefault();
  1727. void RemoveObjectAnimation();
  1728. void ResetToDefault();
  1729. bool Save(File) const;
  1730. bool Save(VectorBuffer&) const;
  1731. bool SaveJSON(JSONValue&) const;
  1732. bool SaveXML(XMLElement&) const;
  1733. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1734. void SetAnimationTime(float);
  1735. bool SetAttribute(const String&, const Variant&);
  1736. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1737. void SetAttributeAnimationSpeed(const String&, float);
  1738. void SetAttributeAnimationTime(const String&, float);
  1739. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1740. void SetInterceptNetworkUpdate(const String&, bool);
  1741. void SetVertex(uint, const Vector2&);
  1742. void SetVertices(Array<Vector2>);
  1743. const Vector2& GetVertex(uint) const;
  1744. // Properties:
  1745. bool animationEnabled;
  1746. /* readonly */
  1747. Array<Variant> attributeDefaults;
  1748. /* readonly */
  1749. Array<AttributeInfo> attributeInfos;
  1750. Array<Variant> attributes;
  1751. /* readonly */
  1752. String category;
  1753. int categoryBits;
  1754. float density;
  1755. bool enabled;
  1756. /* readonly */
  1757. bool enabledEffective;
  1758. float friction;
  1759. int groupIndex;
  1760. /* readonly */
  1761. uint id;
  1762. /* readonly */
  1763. float inertia;
  1764. bool loop;
  1765. int maskBits;
  1766. /* readonly */
  1767. float mass;
  1768. /* readonly */
  1769. Vector2 massCenter;
  1770. /* readonly */
  1771. Node node;
  1772. /* readonly */
  1773. uint numAttributes;
  1774. ObjectAnimation objectAnimation;
  1775. /* readonly */
  1776. int refs;
  1777. float restitution;
  1778. bool temporary;
  1779. bool trigger;
  1780. /* readonly */
  1781. StringHash type;
  1782. /* readonly */
  1783. String typeName;
  1784. uint vertexCount;
  1785. /* readonly */
  1786. int weakRefs;
  1787. };
  1788. class CollisionCircle2D
  1789. {
  1790. public:
  1791. // Methods:
  1792. void ApplyAttributes();
  1793. void DrawDebugGeometry(DebugRenderer, bool);
  1794. Variant GetAttribute(const String&) const;
  1795. ValueAnimation GetAttributeAnimation(const String&) const;
  1796. float GetAttributeAnimationSpeed(const String&) const;
  1797. float GetAttributeAnimationTime(const String&) const;
  1798. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1799. Variant GetAttributeDefault(const String&) const;
  1800. bool GetInterceptNetworkUpdate(const String&) const;
  1801. bool HasSubscribedToEvent(Object, const String&);
  1802. bool HasSubscribedToEvent(const String&);
  1803. bool Load(File, bool = false);
  1804. bool Load(VectorBuffer&, bool = false);
  1805. bool LoadJSON(const JSONValue&, bool = false);
  1806. bool LoadXML(const XMLElement&, bool = false);
  1807. void MarkNetworkUpdate() const;
  1808. void Remove();
  1809. void RemoveAttributeAnimation(const String&);
  1810. void RemoveInstanceDefault();
  1811. void RemoveObjectAnimation();
  1812. void ResetToDefault();
  1813. bool Save(File) const;
  1814. bool Save(VectorBuffer&) const;
  1815. bool SaveJSON(JSONValue&) const;
  1816. bool SaveXML(XMLElement&) const;
  1817. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1818. void SetAnimationTime(float);
  1819. bool SetAttribute(const String&, const Variant&);
  1820. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1821. void SetAttributeAnimationSpeed(const String&, float);
  1822. void SetAttributeAnimationTime(const String&, float);
  1823. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1824. void SetCenter(float, float);
  1825. void SetInterceptNetworkUpdate(const String&, bool);
  1826. // Properties:
  1827. bool animationEnabled;
  1828. /* readonly */
  1829. Array<Variant> attributeDefaults;
  1830. /* readonly */
  1831. Array<AttributeInfo> attributeInfos;
  1832. Array<Variant> attributes;
  1833. /* readonly */
  1834. String category;
  1835. int categoryBits;
  1836. Vector2 center;
  1837. float density;
  1838. bool enabled;
  1839. /* readonly */
  1840. bool enabledEffective;
  1841. float friction;
  1842. int groupIndex;
  1843. /* readonly */
  1844. uint id;
  1845. /* readonly */
  1846. float inertia;
  1847. int maskBits;
  1848. /* readonly */
  1849. float mass;
  1850. /* readonly */
  1851. Vector2 massCenter;
  1852. /* readonly */
  1853. Node node;
  1854. /* readonly */
  1855. uint numAttributes;
  1856. ObjectAnimation objectAnimation;
  1857. float radius;
  1858. /* readonly */
  1859. int refs;
  1860. float restitution;
  1861. bool temporary;
  1862. bool trigger;
  1863. /* readonly */
  1864. StringHash type;
  1865. /* readonly */
  1866. String typeName;
  1867. /* readonly */
  1868. int weakRefs;
  1869. };
  1870. class CollisionEdge2D
  1871. {
  1872. public:
  1873. // Methods:
  1874. void ApplyAttributes();
  1875. void DrawDebugGeometry(DebugRenderer, bool);
  1876. Variant GetAttribute(const String&) const;
  1877. ValueAnimation GetAttributeAnimation(const String&) const;
  1878. float GetAttributeAnimationSpeed(const String&) const;
  1879. float GetAttributeAnimationTime(const String&) const;
  1880. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1881. Variant GetAttributeDefault(const String&) const;
  1882. bool GetInterceptNetworkUpdate(const String&) const;
  1883. bool HasSubscribedToEvent(Object, const String&);
  1884. bool HasSubscribedToEvent(const String&);
  1885. bool Load(File, bool = false);
  1886. bool Load(VectorBuffer&, bool = false);
  1887. bool LoadJSON(const JSONValue&, bool = false);
  1888. bool LoadXML(const XMLElement&, bool = false);
  1889. void MarkNetworkUpdate() const;
  1890. void Remove();
  1891. void RemoveAttributeAnimation(const String&);
  1892. void RemoveInstanceDefault();
  1893. void RemoveObjectAnimation();
  1894. void ResetToDefault();
  1895. bool Save(File) const;
  1896. bool Save(VectorBuffer&) const;
  1897. bool SaveJSON(JSONValue&) const;
  1898. bool SaveXML(XMLElement&) const;
  1899. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1900. void SetAnimationTime(float);
  1901. bool SetAttribute(const String&, const Variant&);
  1902. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1903. void SetAttributeAnimationSpeed(const String&, float);
  1904. void SetAttributeAnimationTime(const String&, float);
  1905. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1906. void SetInterceptNetworkUpdate(const String&, bool);
  1907. void SetVertices(const Vector2&, const Vector2&);
  1908. // Properties:
  1909. bool animationEnabled;
  1910. /* readonly */
  1911. Array<Variant> attributeDefaults;
  1912. /* readonly */
  1913. Array<AttributeInfo> attributeInfos;
  1914. Array<Variant> attributes;
  1915. /* readonly */
  1916. String category;
  1917. int categoryBits;
  1918. float density;
  1919. bool enabled;
  1920. /* readonly */
  1921. bool enabledEffective;
  1922. float friction;
  1923. int groupIndex;
  1924. /* readonly */
  1925. uint id;
  1926. /* readonly */
  1927. float inertia;
  1928. int maskBits;
  1929. /* readonly */
  1930. float mass;
  1931. /* readonly */
  1932. Vector2 massCenter;
  1933. /* readonly */
  1934. Node node;
  1935. /* readonly */
  1936. uint numAttributes;
  1937. ObjectAnimation objectAnimation;
  1938. /* readonly */
  1939. int refs;
  1940. float restitution;
  1941. bool temporary;
  1942. bool trigger;
  1943. /* readonly */
  1944. StringHash type;
  1945. /* readonly */
  1946. String typeName;
  1947. Vector2 vertex1;
  1948. Vector2 vertex2;
  1949. /* readonly */
  1950. int weakRefs;
  1951. };
  1952. class CollisionPolygon2D
  1953. {
  1954. public:
  1955. // Methods:
  1956. void ApplyAttributes();
  1957. void DrawDebugGeometry(DebugRenderer, bool);
  1958. Variant GetAttribute(const String&) const;
  1959. ValueAnimation GetAttributeAnimation(const String&) const;
  1960. float GetAttributeAnimationSpeed(const String&) const;
  1961. float GetAttributeAnimationTime(const String&) const;
  1962. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1963. Variant GetAttributeDefault(const String&) const;
  1964. bool GetInterceptNetworkUpdate(const String&) const;
  1965. Array<Vector2> GetVertices() const;
  1966. bool HasSubscribedToEvent(Object, const String&);
  1967. bool HasSubscribedToEvent(const String&);
  1968. bool Load(File, bool = false);
  1969. bool Load(VectorBuffer&, bool = false);
  1970. bool LoadJSON(const JSONValue&, bool = false);
  1971. bool LoadXML(const XMLElement&, bool = false);
  1972. void MarkNetworkUpdate() const;
  1973. void Remove();
  1974. void RemoveAttributeAnimation(const String&);
  1975. void RemoveInstanceDefault();
  1976. void RemoveObjectAnimation();
  1977. void ResetToDefault();
  1978. bool Save(File) const;
  1979. bool Save(VectorBuffer&) const;
  1980. bool SaveJSON(JSONValue&) const;
  1981. bool SaveXML(XMLElement&) const;
  1982. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1983. void SetAnimationTime(float);
  1984. bool SetAttribute(const String&, const Variant&);
  1985. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1986. void SetAttributeAnimationSpeed(const String&, float);
  1987. void SetAttributeAnimationTime(const String&, float);
  1988. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1989. void SetInterceptNetworkUpdate(const String&, bool);
  1990. void SetVertex(uint, const Vector2&);
  1991. void SetVertices(Array<Vector2>);
  1992. const Vector2& GetVertex(uint) const;
  1993. // Properties:
  1994. bool animationEnabled;
  1995. /* readonly */
  1996. Array<Variant> attributeDefaults;
  1997. /* readonly */
  1998. Array<AttributeInfo> attributeInfos;
  1999. Array<Variant> attributes;
  2000. /* readonly */
  2001. String category;
  2002. int categoryBits;
  2003. float density;
  2004. bool enabled;
  2005. /* readonly */
  2006. bool enabledEffective;
  2007. float friction;
  2008. int groupIndex;
  2009. /* readonly */
  2010. uint id;
  2011. /* readonly */
  2012. float inertia;
  2013. int maskBits;
  2014. /* readonly */
  2015. float mass;
  2016. /* readonly */
  2017. Vector2 massCenter;
  2018. /* readonly */
  2019. Node node;
  2020. /* readonly */
  2021. uint numAttributes;
  2022. ObjectAnimation objectAnimation;
  2023. /* readonly */
  2024. int refs;
  2025. float restitution;
  2026. bool temporary;
  2027. bool trigger;
  2028. /* readonly */
  2029. StringHash type;
  2030. /* readonly */
  2031. String typeName;
  2032. uint vertexCount;
  2033. /* readonly */
  2034. int weakRefs;
  2035. };
  2036. class CollisionShape
  2037. {
  2038. public:
  2039. // Methods:
  2040. void ApplyAttributes();
  2041. void DrawDebugGeometry(DebugRenderer, bool);
  2042. Variant GetAttribute(const String&) const;
  2043. ValueAnimation GetAttributeAnimation(const String&) const;
  2044. float GetAttributeAnimationSpeed(const String&) const;
  2045. float GetAttributeAnimationTime(const String&) const;
  2046. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2047. Variant GetAttributeDefault(const String&) const;
  2048. bool GetInterceptNetworkUpdate(const String&) const;
  2049. bool HasSubscribedToEvent(Object, const String&);
  2050. bool HasSubscribedToEvent(const String&);
  2051. bool Load(File, bool = false);
  2052. bool Load(VectorBuffer&, bool = false);
  2053. bool LoadJSON(const JSONValue&, bool = false);
  2054. bool LoadXML(const XMLElement&, bool = false);
  2055. void MarkNetworkUpdate() const;
  2056. void Remove();
  2057. void RemoveAttributeAnimation(const String&);
  2058. void RemoveInstanceDefault();
  2059. void RemoveObjectAnimation();
  2060. void ResetToDefault();
  2061. bool Save(File) const;
  2062. bool Save(VectorBuffer&) const;
  2063. bool SaveJSON(JSONValue&) const;
  2064. bool SaveXML(XMLElement&) const;
  2065. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2066. void SetAnimationTime(float);
  2067. bool SetAttribute(const String&, const Variant&);
  2068. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2069. void SetAttributeAnimationSpeed(const String&, float);
  2070. void SetAttributeAnimationTime(const String&, float);
  2071. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2072. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2073. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2074. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2075. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2076. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2077. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2078. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2079. void SetInterceptNetworkUpdate(const String&, bool);
  2080. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2081. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2082. void SetTerrain(uint = 0);
  2083. void SetTransform(const Vector3&, const Quaternion&);
  2084. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2085. // Properties:
  2086. bool animationEnabled;
  2087. /* readonly */
  2088. Array<Variant> attributeDefaults;
  2089. /* readonly */
  2090. Array<AttributeInfo> attributeInfos;
  2091. Array<Variant> attributes;
  2092. /* readonly */
  2093. String category;
  2094. bool enabled;
  2095. /* readonly */
  2096. bool enabledEffective;
  2097. /* readonly */
  2098. uint id;
  2099. uint lodLevel;
  2100. float margin;
  2101. Model model;
  2102. /* readonly */
  2103. Node node;
  2104. /* readonly */
  2105. uint numAttributes;
  2106. ObjectAnimation objectAnimation;
  2107. Vector3 position;
  2108. /* readonly */
  2109. int refs;
  2110. Quaternion rotation;
  2111. ShapeType shapeType;
  2112. Vector3 size;
  2113. bool temporary;
  2114. /* readonly */
  2115. StringHash type;
  2116. /* readonly */
  2117. String typeName;
  2118. /* readonly */
  2119. int weakRefs;
  2120. /* readonly */
  2121. BoundingBox worldBoundingBox;
  2122. };
  2123. class CollisionShape2D
  2124. {
  2125. public:
  2126. // Methods:
  2127. void ApplyAttributes();
  2128. void DrawDebugGeometry(DebugRenderer, bool);
  2129. Variant GetAttribute(const String&) const;
  2130. ValueAnimation GetAttributeAnimation(const String&) const;
  2131. float GetAttributeAnimationSpeed(const String&) const;
  2132. float GetAttributeAnimationTime(const String&) const;
  2133. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2134. Variant GetAttributeDefault(const String&) const;
  2135. bool GetInterceptNetworkUpdate(const String&) const;
  2136. bool HasSubscribedToEvent(Object, const String&);
  2137. bool HasSubscribedToEvent(const String&);
  2138. bool Load(File, bool = false);
  2139. bool Load(VectorBuffer&, bool = false);
  2140. bool LoadJSON(const JSONValue&, bool = false);
  2141. bool LoadXML(const XMLElement&, bool = false);
  2142. void MarkNetworkUpdate() const;
  2143. void Remove();
  2144. void RemoveAttributeAnimation(const String&);
  2145. void RemoveInstanceDefault();
  2146. void RemoveObjectAnimation();
  2147. void ResetToDefault();
  2148. bool Save(File) const;
  2149. bool Save(VectorBuffer&) const;
  2150. bool SaveJSON(JSONValue&) const;
  2151. bool SaveXML(XMLElement&) const;
  2152. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2153. void SetAnimationTime(float);
  2154. bool SetAttribute(const String&, const Variant&);
  2155. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2156. void SetAttributeAnimationSpeed(const String&, float);
  2157. void SetAttributeAnimationTime(const String&, float);
  2158. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2159. void SetInterceptNetworkUpdate(const String&, bool);
  2160. // Properties:
  2161. bool animationEnabled;
  2162. /* readonly */
  2163. Array<Variant> attributeDefaults;
  2164. /* readonly */
  2165. Array<AttributeInfo> attributeInfos;
  2166. Array<Variant> attributes;
  2167. /* readonly */
  2168. String category;
  2169. int categoryBits;
  2170. float density;
  2171. bool enabled;
  2172. /* readonly */
  2173. bool enabledEffective;
  2174. float friction;
  2175. int groupIndex;
  2176. /* readonly */
  2177. uint id;
  2178. /* readonly */
  2179. float inertia;
  2180. int maskBits;
  2181. /* readonly */
  2182. float mass;
  2183. /* readonly */
  2184. Vector2 massCenter;
  2185. /* readonly */
  2186. Node node;
  2187. /* readonly */
  2188. uint numAttributes;
  2189. ObjectAnimation objectAnimation;
  2190. /* readonly */
  2191. int refs;
  2192. float restitution;
  2193. bool temporary;
  2194. bool trigger;
  2195. /* readonly */
  2196. StringHash type;
  2197. /* readonly */
  2198. String typeName;
  2199. /* readonly */
  2200. int weakRefs;
  2201. };
  2202. class Color
  2203. {
  2204. public:
  2205. Color();
  2206. Color(const Color&in);
  2207. Color(float, float, float, float);
  2208. Color(float, float, float);
  2209. Color(float[]&inout);
  2210. // Methods:
  2211. Color Abs() const;
  2212. float Average() const;
  2213. float Chroma() const;
  2214. void Clip(bool);
  2215. bool Equals() const;
  2216. void FromHSL(float, float, float, float);
  2217. void FromHSV(float, float, float, float);
  2218. float Hue() const;
  2219. void Invert(bool);
  2220. Color Lerp(const Color&, float) const;
  2221. float Lightness() const;
  2222. float Luma() const;
  2223. float MaxRGB() const;
  2224. float MinRGB() const;
  2225. float Range() const;
  2226. float SaturationHSL() const;
  2227. float SaturationHSV() const;
  2228. float SumRGB() const;
  2229. Vector3 ToHSL() const;
  2230. Vector3 ToHSV() const;
  2231. String ToString() const;
  2232. uint ToUInt() const;
  2233. float Value() const;
  2234. // Properties:
  2235. float a;
  2236. float b;
  2237. /* readonly */
  2238. Array<float> data;
  2239. float g;
  2240. float r;
  2241. /* readonly */
  2242. Vector3 rgb;
  2243. /* readonly */
  2244. Vector4 rgba;
  2245. };
  2246. class ColorFrame
  2247. {
  2248. public:
  2249. // Properties:
  2250. Color color;
  2251. float time;
  2252. };
  2253. class Component
  2254. {
  2255. public:
  2256. // Methods:
  2257. void ApplyAttributes();
  2258. void DrawDebugGeometry(DebugRenderer, bool);
  2259. Variant GetAttribute(const String&) const;
  2260. ValueAnimation GetAttributeAnimation(const String&) const;
  2261. float GetAttributeAnimationSpeed(const String&) const;
  2262. float GetAttributeAnimationTime(const String&) const;
  2263. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2264. Variant GetAttributeDefault(const String&) const;
  2265. bool GetInterceptNetworkUpdate(const String&) const;
  2266. bool HasSubscribedToEvent(Object, const String&);
  2267. bool HasSubscribedToEvent(const String&);
  2268. bool Load(File, bool = false);
  2269. bool Load(VectorBuffer&, bool = false);
  2270. bool LoadJSON(const JSONValue&, bool = false);
  2271. bool LoadXML(const XMLElement&, bool = false);
  2272. void MarkNetworkUpdate() const;
  2273. void Remove();
  2274. void RemoveAttributeAnimation(const String&);
  2275. void RemoveInstanceDefault();
  2276. void RemoveObjectAnimation();
  2277. void ResetToDefault();
  2278. bool Save(File) const;
  2279. bool Save(VectorBuffer&) const;
  2280. bool SaveJSON(JSONValue&) const;
  2281. bool SaveXML(XMLElement&) const;
  2282. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2283. void SetAnimationTime(float);
  2284. bool SetAttribute(const String&, const Variant&);
  2285. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2286. void SetAttributeAnimationSpeed(const String&, float);
  2287. void SetAttributeAnimationTime(const String&, float);
  2288. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2289. void SetInterceptNetworkUpdate(const String&, bool);
  2290. // Properties:
  2291. bool animationEnabled;
  2292. /* readonly */
  2293. Array<Variant> attributeDefaults;
  2294. /* readonly */
  2295. Array<AttributeInfo> attributeInfos;
  2296. Array<Variant> attributes;
  2297. /* readonly */
  2298. String category;
  2299. bool enabled;
  2300. /* readonly */
  2301. bool enabledEffective;
  2302. /* readonly */
  2303. uint id;
  2304. /* readonly */
  2305. Node node;
  2306. /* readonly */
  2307. uint numAttributes;
  2308. ObjectAnimation objectAnimation;
  2309. /* readonly */
  2310. int refs;
  2311. bool temporary;
  2312. /* readonly */
  2313. StringHash type;
  2314. /* readonly */
  2315. String typeName;
  2316. /* readonly */
  2317. int weakRefs;
  2318. };
  2319. class Connection
  2320. {
  2321. public:
  2322. // Methods:
  2323. void Disconnect(int = 0);
  2324. bool HasSubscribedToEvent(Object, const String&);
  2325. bool HasSubscribedToEvent(const String&);
  2326. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2327. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2328. void SendPackageToClient(PackageFile);
  2329. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2330. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2331. String ToString() const;
  2332. // Properties:
  2333. /* readonly */
  2334. String address;
  2335. /* readonly */
  2336. float bytesInPerSec;
  2337. /* readonly */
  2338. float bytesOutPerSec;
  2339. /* readonly */
  2340. String category;
  2341. /* readonly */
  2342. bool client;
  2343. /* readonly */
  2344. bool connectPending;
  2345. /* readonly */
  2346. bool connected;
  2347. Controls controls;
  2348. /* readonly */
  2349. String downloadName;
  2350. /* readonly */
  2351. float downloadProgress;
  2352. VariantMap identity;
  2353. /* readonly */
  2354. float lastHeardTime;
  2355. bool logStatistics;
  2356. /* readonly */
  2357. uint numDownloads;
  2358. /* readonly */
  2359. float packetsInPerSec;
  2360. /* readonly */
  2361. float packetsOutPerSec;
  2362. /* readonly */
  2363. uint16 port;
  2364. Vector3 position;
  2365. /* readonly */
  2366. int refs;
  2367. Quaternion rotation;
  2368. /* readonly */
  2369. float roundTripTime;
  2370. Scene scene;
  2371. /* readonly */
  2372. bool sceneLoaded;
  2373. uint8 timeStamp;
  2374. /* readonly */
  2375. StringHash type;
  2376. /* readonly */
  2377. String typeName;
  2378. /* readonly */
  2379. int weakRefs;
  2380. };
  2381. class Console
  2382. {
  2383. public:
  2384. // Methods:
  2385. void AddAutoComplete(const String&);
  2386. void CopySelectedRows() const;
  2387. bool HasSubscribedToEvent(Object, const String&);
  2388. bool HasSubscribedToEvent(const String&);
  2389. void RemoveAutoComplete(const String&);
  2390. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2391. void Toggle();
  2392. void UpdateElements();
  2393. // Properties:
  2394. bool autoVisibleOnError;
  2395. /* readonly */
  2396. BorderImage background;
  2397. /* readonly */
  2398. String category;
  2399. /* readonly */
  2400. Button closeButton;
  2401. String commandInterpreter;
  2402. XMLFile defaultStyle;
  2403. bool focusOnShow;
  2404. /* readonly */
  2405. uint historyPosition;
  2406. /* readonly */
  2407. Array<String> historyRow;
  2408. /* readonly */
  2409. LineEdit lineEdit;
  2410. uint numBufferedRows;
  2411. uint numHistoryRows;
  2412. uint numRows;
  2413. /* readonly */
  2414. int refs;
  2415. /* readonly */
  2416. StringHash type;
  2417. /* readonly */
  2418. String typeName;
  2419. bool visible;
  2420. /* readonly */
  2421. int weakRefs;
  2422. };
  2423. class Constraint
  2424. {
  2425. public:
  2426. // Methods:
  2427. void ApplyAttributes();
  2428. void DrawDebugGeometry(DebugRenderer, bool);
  2429. Variant GetAttribute(const String&) const;
  2430. ValueAnimation GetAttributeAnimation(const String&) const;
  2431. float GetAttributeAnimationSpeed(const String&) const;
  2432. float GetAttributeAnimationTime(const String&) const;
  2433. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2434. Variant GetAttributeDefault(const String&) const;
  2435. bool GetInterceptNetworkUpdate(const String&) const;
  2436. bool HasSubscribedToEvent(Object, const String&);
  2437. bool HasSubscribedToEvent(const String&);
  2438. bool Load(File, bool = false);
  2439. bool Load(VectorBuffer&, bool = false);
  2440. bool LoadJSON(const JSONValue&, bool = false);
  2441. bool LoadXML(const XMLElement&, bool = false);
  2442. void MarkNetworkUpdate() const;
  2443. void Remove();
  2444. void RemoveAttributeAnimation(const String&);
  2445. void RemoveInstanceDefault();
  2446. void RemoveObjectAnimation();
  2447. void ResetToDefault();
  2448. bool Save(File) const;
  2449. bool Save(VectorBuffer&) const;
  2450. bool SaveJSON(JSONValue&) const;
  2451. bool SaveXML(XMLElement&) const;
  2452. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2453. void SetAnimationTime(float);
  2454. bool SetAttribute(const String&, const Variant&);
  2455. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2456. void SetAttributeAnimationSpeed(const String&, float);
  2457. void SetAttributeAnimationTime(const String&, float);
  2458. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2459. void SetInterceptNetworkUpdate(const String&, bool);
  2460. // Properties:
  2461. bool animationEnabled;
  2462. /* readonly */
  2463. Array<Variant> attributeDefaults;
  2464. /* readonly */
  2465. Array<AttributeInfo> attributeInfos;
  2466. Array<Variant> attributes;
  2467. /* writeonly */
  2468. Vector3 axis;
  2469. /* readonly */
  2470. String category;
  2471. float cfm;
  2472. ConstraintType constraintType;
  2473. bool disableCollision;
  2474. bool enabled;
  2475. /* readonly */
  2476. bool enabledEffective;
  2477. float erp;
  2478. Vector2 highLimit;
  2479. /* readonly */
  2480. uint id;
  2481. Vector2 lowLimit;
  2482. /* readonly */
  2483. Node node;
  2484. /* readonly */
  2485. uint numAttributes;
  2486. ObjectAnimation objectAnimation;
  2487. /* writeonly */
  2488. Vector3 otherAxis;
  2489. RigidBody otherBody;
  2490. Vector3 otherPosition;
  2491. Quaternion otherRotation;
  2492. /* readonly */
  2493. RigidBody ownBody;
  2494. Vector3 position;
  2495. /* readonly */
  2496. int refs;
  2497. Quaternion rotation;
  2498. bool temporary;
  2499. /* readonly */
  2500. StringHash type;
  2501. /* readonly */
  2502. String typeName;
  2503. /* readonly */
  2504. int weakRefs;
  2505. Vector3 worldPosition;
  2506. };
  2507. class Constraint2D
  2508. {
  2509. public:
  2510. // Methods:
  2511. void ApplyAttributes();
  2512. void DrawDebugGeometry(DebugRenderer, bool);
  2513. Variant GetAttribute(const String&) const;
  2514. ValueAnimation GetAttributeAnimation(const String&) const;
  2515. float GetAttributeAnimationSpeed(const String&) const;
  2516. float GetAttributeAnimationTime(const String&) const;
  2517. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2518. Variant GetAttributeDefault(const String&) const;
  2519. bool GetInterceptNetworkUpdate(const String&) const;
  2520. bool HasSubscribedToEvent(Object, const String&);
  2521. bool HasSubscribedToEvent(const String&);
  2522. bool Load(File, bool = false);
  2523. bool Load(VectorBuffer&, bool = false);
  2524. bool LoadJSON(const JSONValue&, bool = false);
  2525. bool LoadXML(const XMLElement&, bool = false);
  2526. void MarkNetworkUpdate() const;
  2527. void Remove();
  2528. void RemoveAttributeAnimation(const String&);
  2529. void RemoveInstanceDefault();
  2530. void RemoveObjectAnimation();
  2531. void ResetToDefault();
  2532. bool Save(File) const;
  2533. bool Save(VectorBuffer&) const;
  2534. bool SaveJSON(JSONValue&) const;
  2535. bool SaveXML(XMLElement&) const;
  2536. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2537. void SetAnimationTime(float);
  2538. bool SetAttribute(const String&, const Variant&);
  2539. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2540. void SetAttributeAnimationSpeed(const String&, float);
  2541. void SetAttributeAnimationTime(const String&, float);
  2542. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2543. void SetInterceptNetworkUpdate(const String&, bool);
  2544. // Properties:
  2545. bool animationEnabled;
  2546. /* readonly */
  2547. Array<Variant> attributeDefaults;
  2548. /* readonly */
  2549. Array<AttributeInfo> attributeInfos;
  2550. Array<Variant> attributes;
  2551. /* readonly */
  2552. String category;
  2553. bool collideConnected;
  2554. bool enabled;
  2555. /* readonly */
  2556. bool enabledEffective;
  2557. /* readonly */
  2558. uint id;
  2559. /* readonly */
  2560. Node node;
  2561. /* readonly */
  2562. uint numAttributes;
  2563. ObjectAnimation objectAnimation;
  2564. RigidBody2D otherBody;
  2565. /* readonly */
  2566. RigidBody2D ownerBody;
  2567. /* readonly */
  2568. int refs;
  2569. bool temporary;
  2570. /* readonly */
  2571. StringHash type;
  2572. /* readonly */
  2573. String typeName;
  2574. /* readonly */
  2575. int weakRefs;
  2576. };
  2577. class ConstraintDistance2D
  2578. {
  2579. public:
  2580. // Methods:
  2581. void ApplyAttributes();
  2582. void DrawDebugGeometry(DebugRenderer, bool);
  2583. Variant GetAttribute(const String&) const;
  2584. ValueAnimation GetAttributeAnimation(const String&) const;
  2585. float GetAttributeAnimationSpeed(const String&) const;
  2586. float GetAttributeAnimationTime(const String&) const;
  2587. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2588. Variant GetAttributeDefault(const String&) const;
  2589. bool GetInterceptNetworkUpdate(const String&) const;
  2590. bool HasSubscribedToEvent(Object, const String&);
  2591. bool HasSubscribedToEvent(const String&);
  2592. bool Load(File, bool = false);
  2593. bool Load(VectorBuffer&, bool = false);
  2594. bool LoadJSON(const JSONValue&, bool = false);
  2595. bool LoadXML(const XMLElement&, bool = false);
  2596. void MarkNetworkUpdate() const;
  2597. void Remove();
  2598. void RemoveAttributeAnimation(const String&);
  2599. void RemoveInstanceDefault();
  2600. void RemoveObjectAnimation();
  2601. void ResetToDefault();
  2602. bool Save(File) const;
  2603. bool Save(VectorBuffer&) const;
  2604. bool SaveJSON(JSONValue&) const;
  2605. bool SaveXML(XMLElement&) const;
  2606. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2607. void SetAnimationTime(float);
  2608. bool SetAttribute(const String&, const Variant&);
  2609. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2610. void SetAttributeAnimationSpeed(const String&, float);
  2611. void SetAttributeAnimationTime(const String&, float);
  2612. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2613. void SetInterceptNetworkUpdate(const String&, bool);
  2614. // Properties:
  2615. bool animationEnabled;
  2616. /* readonly */
  2617. Array<Variant> attributeDefaults;
  2618. /* readonly */
  2619. Array<AttributeInfo> attributeInfos;
  2620. Array<Variant> attributes;
  2621. /* readonly */
  2622. String category;
  2623. bool collideConnected;
  2624. float dampingRatio;
  2625. bool enabled;
  2626. /* readonly */
  2627. bool enabledEffective;
  2628. float frequencyHz;
  2629. /* readonly */
  2630. uint id;
  2631. float length;
  2632. /* readonly */
  2633. Node node;
  2634. /* readonly */
  2635. uint numAttributes;
  2636. ObjectAnimation objectAnimation;
  2637. RigidBody2D otherBody;
  2638. Vector2 otherBodyAnchor;
  2639. /* readonly */
  2640. RigidBody2D ownerBody;
  2641. Vector2 ownerBodyAnchor;
  2642. /* readonly */
  2643. int refs;
  2644. bool temporary;
  2645. /* readonly */
  2646. StringHash type;
  2647. /* readonly */
  2648. String typeName;
  2649. /* readonly */
  2650. int weakRefs;
  2651. };
  2652. class ConstraintFriction2D
  2653. {
  2654. public:
  2655. // Methods:
  2656. void ApplyAttributes();
  2657. void DrawDebugGeometry(DebugRenderer, bool);
  2658. Variant GetAttribute(const String&) const;
  2659. ValueAnimation GetAttributeAnimation(const String&) const;
  2660. float GetAttributeAnimationSpeed(const String&) const;
  2661. float GetAttributeAnimationTime(const String&) const;
  2662. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2663. Variant GetAttributeDefault(const String&) const;
  2664. bool GetInterceptNetworkUpdate(const String&) const;
  2665. bool HasSubscribedToEvent(Object, const String&);
  2666. bool HasSubscribedToEvent(const String&);
  2667. bool Load(File, bool = false);
  2668. bool Load(VectorBuffer&, bool = false);
  2669. bool LoadJSON(const JSONValue&, bool = false);
  2670. bool LoadXML(const XMLElement&, bool = false);
  2671. void MarkNetworkUpdate() const;
  2672. void Remove();
  2673. void RemoveAttributeAnimation(const String&);
  2674. void RemoveInstanceDefault();
  2675. void RemoveObjectAnimation();
  2676. void ResetToDefault();
  2677. bool Save(File) const;
  2678. bool Save(VectorBuffer&) const;
  2679. bool SaveJSON(JSONValue&) const;
  2680. bool SaveXML(XMLElement&) const;
  2681. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2682. void SetAnimationTime(float);
  2683. bool SetAttribute(const String&, const Variant&);
  2684. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2685. void SetAttributeAnimationSpeed(const String&, float);
  2686. void SetAttributeAnimationTime(const String&, float);
  2687. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2688. void SetInterceptNetworkUpdate(const String&, bool);
  2689. // Properties:
  2690. Vector2 anchor;
  2691. bool animationEnabled;
  2692. /* readonly */
  2693. Array<Variant> attributeDefaults;
  2694. /* readonly */
  2695. Array<AttributeInfo> attributeInfos;
  2696. Array<Variant> attributes;
  2697. /* readonly */
  2698. String category;
  2699. bool collideConnected;
  2700. bool enabled;
  2701. /* readonly */
  2702. bool enabledEffective;
  2703. /* readonly */
  2704. uint id;
  2705. float maxForce;
  2706. float maxTorque;
  2707. /* readonly */
  2708. Node node;
  2709. /* readonly */
  2710. uint numAttributes;
  2711. ObjectAnimation objectAnimation;
  2712. RigidBody2D otherBody;
  2713. /* readonly */
  2714. RigidBody2D ownerBody;
  2715. /* readonly */
  2716. int refs;
  2717. bool temporary;
  2718. /* readonly */
  2719. StringHash type;
  2720. /* readonly */
  2721. String typeName;
  2722. /* readonly */
  2723. int weakRefs;
  2724. };
  2725. class ConstraintGear2D
  2726. {
  2727. public:
  2728. // Methods:
  2729. void ApplyAttributes();
  2730. void DrawDebugGeometry(DebugRenderer, bool);
  2731. Variant GetAttribute(const String&) const;
  2732. ValueAnimation GetAttributeAnimation(const String&) const;
  2733. float GetAttributeAnimationSpeed(const String&) const;
  2734. float GetAttributeAnimationTime(const String&) const;
  2735. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2736. Variant GetAttributeDefault(const String&) const;
  2737. bool GetInterceptNetworkUpdate(const String&) const;
  2738. bool HasSubscribedToEvent(Object, const String&);
  2739. bool HasSubscribedToEvent(const String&);
  2740. bool Load(File, bool = false);
  2741. bool Load(VectorBuffer&, bool = false);
  2742. bool LoadJSON(const JSONValue&, bool = false);
  2743. bool LoadXML(const XMLElement&, bool = false);
  2744. void MarkNetworkUpdate() const;
  2745. void Remove();
  2746. void RemoveAttributeAnimation(const String&);
  2747. void RemoveInstanceDefault();
  2748. void RemoveObjectAnimation();
  2749. void ResetToDefault();
  2750. bool Save(File) const;
  2751. bool Save(VectorBuffer&) const;
  2752. bool SaveJSON(JSONValue&) const;
  2753. bool SaveXML(XMLElement&) const;
  2754. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2755. void SetAnimationTime(float);
  2756. bool SetAttribute(const String&, const Variant&);
  2757. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2758. void SetAttributeAnimationSpeed(const String&, float);
  2759. void SetAttributeAnimationTime(const String&, float);
  2760. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2761. void SetInterceptNetworkUpdate(const String&, bool);
  2762. // Properties:
  2763. bool animationEnabled;
  2764. /* readonly */
  2765. Array<Variant> attributeDefaults;
  2766. /* readonly */
  2767. Array<AttributeInfo> attributeInfos;
  2768. Array<Variant> attributes;
  2769. /* readonly */
  2770. String category;
  2771. bool collideConnected;
  2772. bool enabled;
  2773. /* readonly */
  2774. bool enabledEffective;
  2775. /* readonly */
  2776. uint id;
  2777. /* readonly */
  2778. Node node;
  2779. /* readonly */
  2780. uint numAttributes;
  2781. ObjectAnimation objectAnimation;
  2782. RigidBody2D otherBody;
  2783. Constraint2D otherConstraint;
  2784. /* readonly */
  2785. RigidBody2D ownerBody;
  2786. Constraint2D ownerConstraint;
  2787. float ratio;
  2788. /* readonly */
  2789. int refs;
  2790. bool temporary;
  2791. /* readonly */
  2792. StringHash type;
  2793. /* readonly */
  2794. String typeName;
  2795. /* readonly */
  2796. int weakRefs;
  2797. };
  2798. class ConstraintMotor2D
  2799. {
  2800. public:
  2801. // Methods:
  2802. void ApplyAttributes();
  2803. void DrawDebugGeometry(DebugRenderer, bool);
  2804. Variant GetAttribute(const String&) const;
  2805. ValueAnimation GetAttributeAnimation(const String&) const;
  2806. float GetAttributeAnimationSpeed(const String&) const;
  2807. float GetAttributeAnimationTime(const String&) const;
  2808. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2809. Variant GetAttributeDefault(const String&) const;
  2810. bool GetInterceptNetworkUpdate(const String&) const;
  2811. bool HasSubscribedToEvent(Object, const String&);
  2812. bool HasSubscribedToEvent(const String&);
  2813. bool Load(File, bool = false);
  2814. bool Load(VectorBuffer&, bool = false);
  2815. bool LoadJSON(const JSONValue&, bool = false);
  2816. bool LoadXML(const XMLElement&, bool = false);
  2817. void MarkNetworkUpdate() const;
  2818. void Remove();
  2819. void RemoveAttributeAnimation(const String&);
  2820. void RemoveInstanceDefault();
  2821. void RemoveObjectAnimation();
  2822. void ResetToDefault();
  2823. bool Save(File) const;
  2824. bool Save(VectorBuffer&) const;
  2825. bool SaveJSON(JSONValue&) const;
  2826. bool SaveXML(XMLElement&) const;
  2827. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2828. void SetAnimationTime(float);
  2829. bool SetAttribute(const String&, const Variant&);
  2830. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2831. void SetAttributeAnimationSpeed(const String&, float);
  2832. void SetAttributeAnimationTime(const String&, float);
  2833. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2834. void SetInterceptNetworkUpdate(const String&, bool);
  2835. // Properties:
  2836. float angularOffset;
  2837. bool animationEnabled;
  2838. /* readonly */
  2839. Array<Variant> attributeDefaults;
  2840. /* readonly */
  2841. Array<AttributeInfo> attributeInfos;
  2842. Array<Variant> attributes;
  2843. /* readonly */
  2844. String category;
  2845. bool collideConnected;
  2846. float correctionFactor;
  2847. bool enabled;
  2848. /* readonly */
  2849. bool enabledEffective;
  2850. /* readonly */
  2851. uint id;
  2852. Vector2 linearOffset;
  2853. float maxForce;
  2854. float maxTorque;
  2855. /* readonly */
  2856. Node node;
  2857. /* readonly */
  2858. uint numAttributes;
  2859. ObjectAnimation objectAnimation;
  2860. RigidBody2D otherBody;
  2861. /* readonly */
  2862. RigidBody2D ownerBody;
  2863. /* readonly */
  2864. int refs;
  2865. bool temporary;
  2866. /* readonly */
  2867. StringHash type;
  2868. /* readonly */
  2869. String typeName;
  2870. /* readonly */
  2871. int weakRefs;
  2872. };
  2873. class ConstraintMouse2D
  2874. {
  2875. public:
  2876. // Methods:
  2877. void ApplyAttributes();
  2878. void DrawDebugGeometry(DebugRenderer, bool);
  2879. Variant GetAttribute(const String&) const;
  2880. ValueAnimation GetAttributeAnimation(const String&) const;
  2881. float GetAttributeAnimationSpeed(const String&) const;
  2882. float GetAttributeAnimationTime(const String&) const;
  2883. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2884. Variant GetAttributeDefault(const String&) const;
  2885. bool GetInterceptNetworkUpdate(const String&) const;
  2886. bool HasSubscribedToEvent(Object, const String&);
  2887. bool HasSubscribedToEvent(const String&);
  2888. bool Load(File, bool = false);
  2889. bool Load(VectorBuffer&, bool = false);
  2890. bool LoadJSON(const JSONValue&, bool = false);
  2891. bool LoadXML(const XMLElement&, bool = false);
  2892. void MarkNetworkUpdate() const;
  2893. void Remove();
  2894. void RemoveAttributeAnimation(const String&);
  2895. void RemoveInstanceDefault();
  2896. void RemoveObjectAnimation();
  2897. void ResetToDefault();
  2898. bool Save(File) const;
  2899. bool Save(VectorBuffer&) const;
  2900. bool SaveJSON(JSONValue&) const;
  2901. bool SaveXML(XMLElement&) const;
  2902. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2903. void SetAnimationTime(float);
  2904. bool SetAttribute(const String&, const Variant&);
  2905. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2906. void SetAttributeAnimationSpeed(const String&, float);
  2907. void SetAttributeAnimationTime(const String&, float);
  2908. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2909. void SetInterceptNetworkUpdate(const String&, bool);
  2910. // Properties:
  2911. bool animationEnabled;
  2912. /* readonly */
  2913. Array<Variant> attributeDefaults;
  2914. /* readonly */
  2915. Array<AttributeInfo> attributeInfos;
  2916. Array<Variant> attributes;
  2917. /* readonly */
  2918. String category;
  2919. bool collideConnected;
  2920. float dampingRatio;
  2921. bool enabled;
  2922. /* readonly */
  2923. bool enabledEffective;
  2924. float frequencyHz;
  2925. /* readonly */
  2926. uint id;
  2927. float maxForce;
  2928. /* readonly */
  2929. Node node;
  2930. /* readonly */
  2931. uint numAttributes;
  2932. ObjectAnimation objectAnimation;
  2933. RigidBody2D otherBody;
  2934. /* readonly */
  2935. RigidBody2D ownerBody;
  2936. /* readonly */
  2937. int refs;
  2938. Vector2 target;
  2939. bool temporary;
  2940. /* readonly */
  2941. StringHash type;
  2942. /* readonly */
  2943. String typeName;
  2944. /* readonly */
  2945. int weakRefs;
  2946. };
  2947. class ConstraintPrismatic2D
  2948. {
  2949. public:
  2950. // Methods:
  2951. void ApplyAttributes();
  2952. void DrawDebugGeometry(DebugRenderer, bool);
  2953. Variant GetAttribute(const String&) const;
  2954. ValueAnimation GetAttributeAnimation(const String&) const;
  2955. float GetAttributeAnimationSpeed(const String&) const;
  2956. float GetAttributeAnimationTime(const String&) const;
  2957. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2958. Variant GetAttributeDefault(const String&) const;
  2959. bool GetInterceptNetworkUpdate(const String&) const;
  2960. bool HasSubscribedToEvent(Object, const String&);
  2961. bool HasSubscribedToEvent(const String&);
  2962. bool Load(File, bool = false);
  2963. bool Load(VectorBuffer&, bool = false);
  2964. bool LoadJSON(const JSONValue&, bool = false);
  2965. bool LoadXML(const XMLElement&, bool = false);
  2966. void MarkNetworkUpdate() const;
  2967. void Remove();
  2968. void RemoveAttributeAnimation(const String&);
  2969. void RemoveInstanceDefault();
  2970. void RemoveObjectAnimation();
  2971. void ResetToDefault();
  2972. bool Save(File) const;
  2973. bool Save(VectorBuffer&) const;
  2974. bool SaveJSON(JSONValue&) const;
  2975. bool SaveXML(XMLElement&) const;
  2976. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2977. void SetAnimationTime(float);
  2978. bool SetAttribute(const String&, const Variant&);
  2979. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2980. void SetAttributeAnimationSpeed(const String&, float);
  2981. void SetAttributeAnimationTime(const String&, float);
  2982. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2983. void SetInterceptNetworkUpdate(const String&, bool);
  2984. // Properties:
  2985. Vector2 anchor;
  2986. bool animationEnabled;
  2987. /* readonly */
  2988. Array<Variant> attributeDefaults;
  2989. /* readonly */
  2990. Array<AttributeInfo> attributeInfos;
  2991. Array<Variant> attributes;
  2992. Vector2 axis;
  2993. /* readonly */
  2994. String category;
  2995. bool collideConnected;
  2996. bool enableLimit;
  2997. bool enableMotor;
  2998. bool enabled;
  2999. /* readonly */
  3000. bool enabledEffective;
  3001. /* readonly */
  3002. uint id;
  3003. float lowerTranslation;
  3004. float maxMotorForce;
  3005. float motorSpeed;
  3006. /* readonly */
  3007. Node node;
  3008. /* readonly */
  3009. uint numAttributes;
  3010. ObjectAnimation objectAnimation;
  3011. RigidBody2D otherBody;
  3012. /* readonly */
  3013. RigidBody2D ownerBody;
  3014. /* readonly */
  3015. int refs;
  3016. bool temporary;
  3017. /* readonly */
  3018. StringHash type;
  3019. /* readonly */
  3020. String typeName;
  3021. float upperTranslation;
  3022. /* readonly */
  3023. int weakRefs;
  3024. };
  3025. class ConstraintPulley2D
  3026. {
  3027. public:
  3028. // Methods:
  3029. void ApplyAttributes();
  3030. void DrawDebugGeometry(DebugRenderer, bool);
  3031. Variant GetAttribute(const String&) const;
  3032. ValueAnimation GetAttributeAnimation(const String&) const;
  3033. float GetAttributeAnimationSpeed(const String&) const;
  3034. float GetAttributeAnimationTime(const String&) const;
  3035. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3036. Variant GetAttributeDefault(const String&) const;
  3037. bool GetInterceptNetworkUpdate(const String&) const;
  3038. bool HasSubscribedToEvent(Object, const String&);
  3039. bool HasSubscribedToEvent(const String&);
  3040. bool Load(File, bool = false);
  3041. bool Load(VectorBuffer&, bool = false);
  3042. bool LoadJSON(const JSONValue&, bool = false);
  3043. bool LoadXML(const XMLElement&, bool = false);
  3044. void MarkNetworkUpdate() const;
  3045. void Remove();
  3046. void RemoveAttributeAnimation(const String&);
  3047. void RemoveInstanceDefault();
  3048. void RemoveObjectAnimation();
  3049. void ResetToDefault();
  3050. bool Save(File) const;
  3051. bool Save(VectorBuffer&) const;
  3052. bool SaveJSON(JSONValue&) const;
  3053. bool SaveXML(XMLElement&) const;
  3054. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3055. void SetAnimationTime(float);
  3056. bool SetAttribute(const String&, const Variant&);
  3057. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3058. void SetAttributeAnimationSpeed(const String&, float);
  3059. void SetAttributeAnimationTime(const String&, float);
  3060. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3061. void SetInterceptNetworkUpdate(const String&, bool);
  3062. // Properties:
  3063. bool animationEnabled;
  3064. /* readonly */
  3065. Array<Variant> attributeDefaults;
  3066. /* readonly */
  3067. Array<AttributeInfo> attributeInfos;
  3068. Array<Variant> attributes;
  3069. /* readonly */
  3070. String category;
  3071. bool collideConnected;
  3072. bool enabled;
  3073. /* readonly */
  3074. bool enabledEffective;
  3075. /* readonly */
  3076. uint id;
  3077. /* readonly */
  3078. Node node;
  3079. /* readonly */
  3080. uint numAttributes;
  3081. ObjectAnimation objectAnimation;
  3082. RigidBody2D otherBody;
  3083. Vector2 otherBodyAnchor;
  3084. Vector2 otherBodyGroundAnchor;
  3085. /* readonly */
  3086. RigidBody2D ownerBody;
  3087. Vector2 ownerBodyAnchor;
  3088. Vector2 ownerBodyGroundAnchor;
  3089. float ratio;
  3090. /* readonly */
  3091. int refs;
  3092. bool temporary;
  3093. /* readonly */
  3094. StringHash type;
  3095. /* readonly */
  3096. String typeName;
  3097. /* readonly */
  3098. int weakRefs;
  3099. };
  3100. class ConstraintRevolute2D
  3101. {
  3102. public:
  3103. // Methods:
  3104. void ApplyAttributes();
  3105. void DrawDebugGeometry(DebugRenderer, bool);
  3106. Variant GetAttribute(const String&) const;
  3107. ValueAnimation GetAttributeAnimation(const String&) const;
  3108. float GetAttributeAnimationSpeed(const String&) const;
  3109. float GetAttributeAnimationTime(const String&) const;
  3110. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3111. Variant GetAttributeDefault(const String&) const;
  3112. bool GetInterceptNetworkUpdate(const String&) const;
  3113. bool HasSubscribedToEvent(Object, const String&);
  3114. bool HasSubscribedToEvent(const String&);
  3115. bool Load(File, bool = false);
  3116. bool Load(VectorBuffer&, bool = false);
  3117. bool LoadJSON(const JSONValue&, bool = false);
  3118. bool LoadXML(const XMLElement&, bool = false);
  3119. void MarkNetworkUpdate() const;
  3120. void Remove();
  3121. void RemoveAttributeAnimation(const String&);
  3122. void RemoveInstanceDefault();
  3123. void RemoveObjectAnimation();
  3124. void ResetToDefault();
  3125. bool Save(File) const;
  3126. bool Save(VectorBuffer&) const;
  3127. bool SaveJSON(JSONValue&) const;
  3128. bool SaveXML(XMLElement&) const;
  3129. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3130. void SetAnimationTime(float);
  3131. bool SetAttribute(const String&, const Variant&);
  3132. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3133. void SetAttributeAnimationSpeed(const String&, float);
  3134. void SetAttributeAnimationTime(const String&, float);
  3135. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3136. void SetInterceptNetworkUpdate(const String&, bool);
  3137. // Properties:
  3138. Vector2 anchor;
  3139. bool animationEnabled;
  3140. /* readonly */
  3141. Array<Variant> attributeDefaults;
  3142. /* readonly */
  3143. Array<AttributeInfo> attributeInfos;
  3144. Array<Variant> attributes;
  3145. /* readonly */
  3146. String category;
  3147. bool collideConnected;
  3148. bool enableLimit;
  3149. bool enableMotor;
  3150. bool enabled;
  3151. /* readonly */
  3152. bool enabledEffective;
  3153. /* readonly */
  3154. uint id;
  3155. float lowerAngle;
  3156. float maxMotorTorque;
  3157. float motorSpeed;
  3158. /* readonly */
  3159. Node node;
  3160. /* readonly */
  3161. uint numAttributes;
  3162. ObjectAnimation objectAnimation;
  3163. RigidBody2D otherBody;
  3164. /* readonly */
  3165. RigidBody2D ownerBody;
  3166. /* readonly */
  3167. int refs;
  3168. bool temporary;
  3169. /* readonly */
  3170. StringHash type;
  3171. /* readonly */
  3172. String typeName;
  3173. float upperAngle;
  3174. /* readonly */
  3175. int weakRefs;
  3176. };
  3177. class ConstraintRope2D
  3178. {
  3179. public:
  3180. // Methods:
  3181. void ApplyAttributes();
  3182. void DrawDebugGeometry(DebugRenderer, bool);
  3183. Variant GetAttribute(const String&) const;
  3184. ValueAnimation GetAttributeAnimation(const String&) const;
  3185. float GetAttributeAnimationSpeed(const String&) const;
  3186. float GetAttributeAnimationTime(const String&) const;
  3187. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3188. Variant GetAttributeDefault(const String&) const;
  3189. bool GetInterceptNetworkUpdate(const String&) const;
  3190. bool HasSubscribedToEvent(Object, const String&);
  3191. bool HasSubscribedToEvent(const String&);
  3192. bool Load(File, bool = false);
  3193. bool Load(VectorBuffer&, bool = false);
  3194. bool LoadJSON(const JSONValue&, bool = false);
  3195. bool LoadXML(const XMLElement&, bool = false);
  3196. void MarkNetworkUpdate() const;
  3197. void Remove();
  3198. void RemoveAttributeAnimation(const String&);
  3199. void RemoveInstanceDefault();
  3200. void RemoveObjectAnimation();
  3201. void ResetToDefault();
  3202. bool Save(File) const;
  3203. bool Save(VectorBuffer&) const;
  3204. bool SaveJSON(JSONValue&) const;
  3205. bool SaveXML(XMLElement&) const;
  3206. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3207. void SetAnimationTime(float);
  3208. bool SetAttribute(const String&, const Variant&);
  3209. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3210. void SetAttributeAnimationSpeed(const String&, float);
  3211. void SetAttributeAnimationTime(const String&, float);
  3212. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3213. void SetInterceptNetworkUpdate(const String&, bool);
  3214. // Properties:
  3215. bool animationEnabled;
  3216. /* readonly */
  3217. Array<Variant> attributeDefaults;
  3218. /* readonly */
  3219. Array<AttributeInfo> attributeInfos;
  3220. Array<Variant> attributes;
  3221. /* readonly */
  3222. String category;
  3223. bool collideConnected;
  3224. bool enabled;
  3225. /* readonly */
  3226. bool enabledEffective;
  3227. /* readonly */
  3228. uint id;
  3229. float maxLength;
  3230. /* readonly */
  3231. Node node;
  3232. /* readonly */
  3233. uint numAttributes;
  3234. ObjectAnimation objectAnimation;
  3235. RigidBody2D otherBody;
  3236. Vector2 otherBodyAnchor;
  3237. /* readonly */
  3238. RigidBody2D ownerBody;
  3239. Vector2 ownerBodyAnchor;
  3240. /* readonly */
  3241. int refs;
  3242. bool temporary;
  3243. /* readonly */
  3244. StringHash type;
  3245. /* readonly */
  3246. String typeName;
  3247. /* readonly */
  3248. int weakRefs;
  3249. };
  3250. class ConstraintWeld2D
  3251. {
  3252. public:
  3253. // Methods:
  3254. void ApplyAttributes();
  3255. void DrawDebugGeometry(DebugRenderer, bool);
  3256. Variant GetAttribute(const String&) const;
  3257. ValueAnimation GetAttributeAnimation(const String&) const;
  3258. float GetAttributeAnimationSpeed(const String&) const;
  3259. float GetAttributeAnimationTime(const String&) const;
  3260. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3261. Variant GetAttributeDefault(const String&) const;
  3262. bool GetInterceptNetworkUpdate(const String&) const;
  3263. bool HasSubscribedToEvent(Object, const String&);
  3264. bool HasSubscribedToEvent(const String&);
  3265. bool Load(File, bool = false);
  3266. bool Load(VectorBuffer&, bool = false);
  3267. bool LoadJSON(const JSONValue&, bool = false);
  3268. bool LoadXML(const XMLElement&, bool = false);
  3269. void MarkNetworkUpdate() const;
  3270. void Remove();
  3271. void RemoveAttributeAnimation(const String&);
  3272. void RemoveInstanceDefault();
  3273. void RemoveObjectAnimation();
  3274. void ResetToDefault();
  3275. bool Save(File) const;
  3276. bool Save(VectorBuffer&) const;
  3277. bool SaveJSON(JSONValue&) const;
  3278. bool SaveXML(XMLElement&) const;
  3279. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3280. void SetAnimationTime(float);
  3281. bool SetAttribute(const String&, const Variant&);
  3282. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3283. void SetAttributeAnimationSpeed(const String&, float);
  3284. void SetAttributeAnimationTime(const String&, float);
  3285. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3286. void SetInterceptNetworkUpdate(const String&, bool);
  3287. // Properties:
  3288. Vector2 anchor;
  3289. bool animationEnabled;
  3290. /* readonly */
  3291. Array<Variant> attributeDefaults;
  3292. /* readonly */
  3293. Array<AttributeInfo> attributeInfos;
  3294. Array<Variant> attributes;
  3295. /* readonly */
  3296. String category;
  3297. bool collideConnected;
  3298. float dampingRatio;
  3299. bool enabled;
  3300. /* readonly */
  3301. bool enabledEffective;
  3302. float frequencyHz;
  3303. /* readonly */
  3304. uint id;
  3305. /* readonly */
  3306. Node node;
  3307. /* readonly */
  3308. uint numAttributes;
  3309. ObjectAnimation objectAnimation;
  3310. RigidBody2D otherBody;
  3311. /* readonly */
  3312. RigidBody2D ownerBody;
  3313. /* readonly */
  3314. int refs;
  3315. bool temporary;
  3316. /* readonly */
  3317. StringHash type;
  3318. /* readonly */
  3319. String typeName;
  3320. /* readonly */
  3321. int weakRefs;
  3322. };
  3323. class ConstraintWheel2D
  3324. {
  3325. public:
  3326. // Methods:
  3327. void ApplyAttributes();
  3328. void DrawDebugGeometry(DebugRenderer, bool);
  3329. Variant GetAttribute(const String&) const;
  3330. ValueAnimation GetAttributeAnimation(const String&) const;
  3331. float GetAttributeAnimationSpeed(const String&) const;
  3332. float GetAttributeAnimationTime(const String&) const;
  3333. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3334. Variant GetAttributeDefault(const String&) const;
  3335. bool GetInterceptNetworkUpdate(const String&) const;
  3336. bool HasSubscribedToEvent(Object, const String&);
  3337. bool HasSubscribedToEvent(const String&);
  3338. bool Load(File, bool = false);
  3339. bool Load(VectorBuffer&, bool = false);
  3340. bool LoadJSON(const JSONValue&, bool = false);
  3341. bool LoadXML(const XMLElement&, bool = false);
  3342. void MarkNetworkUpdate() const;
  3343. void Remove();
  3344. void RemoveAttributeAnimation(const String&);
  3345. void RemoveInstanceDefault();
  3346. void RemoveObjectAnimation();
  3347. void ResetToDefault();
  3348. bool Save(File) const;
  3349. bool Save(VectorBuffer&) const;
  3350. bool SaveJSON(JSONValue&) const;
  3351. bool SaveXML(XMLElement&) const;
  3352. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3353. void SetAnimationTime(float);
  3354. bool SetAttribute(const String&, const Variant&);
  3355. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3356. void SetAttributeAnimationSpeed(const String&, float);
  3357. void SetAttributeAnimationTime(const String&, float);
  3358. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3359. void SetInterceptNetworkUpdate(const String&, bool);
  3360. // Properties:
  3361. Vector2 anchor;
  3362. bool animationEnabled;
  3363. /* readonly */
  3364. Array<Variant> attributeDefaults;
  3365. /* readonly */
  3366. Array<AttributeInfo> attributeInfos;
  3367. Array<Variant> attributes;
  3368. Vector2 axis;
  3369. /* readonly */
  3370. String category;
  3371. bool collideConnected;
  3372. float dampingRatio;
  3373. bool enableMotor;
  3374. bool enabled;
  3375. /* readonly */
  3376. bool enabledEffective;
  3377. float frequencyHz;
  3378. /* readonly */
  3379. uint id;
  3380. float maxMotorTorque;
  3381. float motorSpeed;
  3382. /* readonly */
  3383. Node node;
  3384. /* readonly */
  3385. uint numAttributes;
  3386. ObjectAnimation objectAnimation;
  3387. RigidBody2D otherBody;
  3388. /* readonly */
  3389. RigidBody2D ownerBody;
  3390. /* readonly */
  3391. int refs;
  3392. bool temporary;
  3393. /* readonly */
  3394. StringHash type;
  3395. /* readonly */
  3396. String typeName;
  3397. /* readonly */
  3398. int weakRefs;
  3399. };
  3400. class Controls
  3401. {
  3402. public:
  3403. ~Controls();
  3404. Controls();
  3405. Controls(const Controls&in);
  3406. // Methods:
  3407. bool IsDown(uint) const;
  3408. bool IsPressed(uint, const Controls&) const;
  3409. void Reset();
  3410. void Set(uint, bool);
  3411. // Properties:
  3412. uint buttons;
  3413. VariantMap extraData;
  3414. float pitch;
  3415. float yaw;
  3416. };
  3417. class CrowdAgent
  3418. {
  3419. public:
  3420. // Methods:
  3421. void ApplyAttributes();
  3422. void DrawDebugGeometry(DebugRenderer, bool);
  3423. void DrawDebugGeometry(bool);
  3424. Variant GetAttribute(const String&) const;
  3425. ValueAnimation GetAttributeAnimation(const String&) const;
  3426. float GetAttributeAnimationSpeed(const String&) const;
  3427. float GetAttributeAnimationTime(const String&) const;
  3428. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3429. Variant GetAttributeDefault(const String&) const;
  3430. bool GetInterceptNetworkUpdate(const String&) const;
  3431. bool HasSubscribedToEvent(Object, const String&);
  3432. bool HasSubscribedToEvent(const String&);
  3433. bool Load(File, bool = false);
  3434. bool Load(VectorBuffer&, bool = false);
  3435. bool LoadJSON(const JSONValue&, bool = false);
  3436. bool LoadXML(const XMLElement&, bool = false);
  3437. void MarkNetworkUpdate() const;
  3438. void Remove();
  3439. void RemoveAttributeAnimation(const String&);
  3440. void RemoveInstanceDefault();
  3441. void RemoveObjectAnimation();
  3442. void ResetTarget();
  3443. void ResetToDefault();
  3444. bool Save(File) const;
  3445. bool Save(VectorBuffer&) const;
  3446. bool SaveJSON(JSONValue&) const;
  3447. bool SaveXML(XMLElement&) const;
  3448. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3449. void SetAnimationTime(float);
  3450. bool SetAttribute(const String&, const Variant&);
  3451. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3452. void SetAttributeAnimationSpeed(const String&, float);
  3453. void SetAttributeAnimationTime(const String&, float);
  3454. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3455. void SetInterceptNetworkUpdate(const String&, bool);
  3456. // Properties:
  3457. /* readonly */
  3458. Vector3 actualVelocity;
  3459. /* readonly */
  3460. CrowdAgentState agentState;
  3461. bool animationEnabled;
  3462. /* readonly */
  3463. bool arrived;
  3464. /* readonly */
  3465. Array<Variant> attributeDefaults;
  3466. /* readonly */
  3467. Array<AttributeInfo> attributeInfos;
  3468. Array<Variant> attributes;
  3469. /* readonly */
  3470. String category;
  3471. /* readonly */
  3472. Vector3 desiredVelocity;
  3473. bool enabled;
  3474. /* readonly */
  3475. bool enabledEffective;
  3476. float height;
  3477. /* readonly */
  3478. uint id;
  3479. /* readonly */
  3480. bool inCrowd;
  3481. float maxAccel;
  3482. float maxSpeed;
  3483. NavigationPushiness navigationPushiness;
  3484. NavigationQuality navigationQuality;
  3485. /* readonly */
  3486. Node node;
  3487. /* readonly */
  3488. uint numAttributes;
  3489. ObjectAnimation objectAnimation;
  3490. uint obstacleAvoidanceType;
  3491. /* readonly */
  3492. Vector3 position;
  3493. uint queryFilterType;
  3494. float radius;
  3495. /* readonly */
  3496. int refs;
  3497. /* readonly */
  3498. bool requestedTarget;
  3499. /* readonly */
  3500. CrowdAgentRequestedTarget requestedTargetType;
  3501. Vector3 targetPosition;
  3502. /* readonly */
  3503. CrowdAgentTargetState targetState;
  3504. Vector3 targetVelocity;
  3505. bool temporary;
  3506. /* readonly */
  3507. StringHash type;
  3508. /* readonly */
  3509. String typeName;
  3510. bool updateNodePosition;
  3511. /* readonly */
  3512. int weakRefs;
  3513. };
  3514. class CrowdManager
  3515. {
  3516. public:
  3517. // Methods:
  3518. void ApplyAttributes();
  3519. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3520. void DrawDebugGeometry(DebugRenderer, bool);
  3521. void DrawDebugGeometry(bool);
  3522. Vector3 FindNearestPoint(const Vector3&, int);
  3523. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3524. float GetAreaCost(uint, uint);
  3525. Variant GetAttribute(const String&) const;
  3526. ValueAnimation GetAttributeAnimation(const String&) const;
  3527. float GetAttributeAnimationSpeed(const String&) const;
  3528. float GetAttributeAnimationTime(const String&) const;
  3529. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3530. Variant GetAttributeDefault(const String&) const;
  3531. float GetDistanceToWall(const Vector3&, float, int);
  3532. uint16 GetExcludeFlags(uint);
  3533. uint16 GetIncludeFlags(uint);
  3534. bool GetInterceptNetworkUpdate(const String&) const;
  3535. Vector3 GetRandomPoint(int);
  3536. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3537. bool HasSubscribedToEvent(Object, const String&);
  3538. bool HasSubscribedToEvent(const String&);
  3539. bool Load(File, bool = false);
  3540. bool Load(VectorBuffer&, bool = false);
  3541. bool LoadJSON(const JSONValue&, bool = false);
  3542. bool LoadXML(const XMLElement&, bool = false);
  3543. void MarkNetworkUpdate() const;
  3544. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3545. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3546. void Remove();
  3547. void RemoveAttributeAnimation(const String&);
  3548. void RemoveInstanceDefault();
  3549. void RemoveObjectAnimation();
  3550. void ResetCrowdTarget(Node = null);
  3551. void ResetToDefault();
  3552. bool Save(File) const;
  3553. bool Save(VectorBuffer&) const;
  3554. bool SaveJSON(JSONValue&) const;
  3555. bool SaveXML(XMLElement&) const;
  3556. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3557. void SetAnimationTime(float);
  3558. void SetAreaCost(uint, uint, float);
  3559. bool SetAttribute(const String&, const Variant&);
  3560. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3561. void SetAttributeAnimationSpeed(const String&, float);
  3562. void SetAttributeAnimationTime(const String&, float);
  3563. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3564. void SetCrowdTarget(const Vector3&, Node = null);
  3565. void SetCrowdVelocity(const Vector3&, Node = null);
  3566. void SetExcludeFlags(uint, uint16);
  3567. void SetIncludeFlags(uint, uint16);
  3568. void SetInterceptNetworkUpdate(const String&, bool);
  3569. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3570. // Properties:
  3571. bool animationEnabled;
  3572. /* readonly */
  3573. Array<Variant> attributeDefaults;
  3574. /* readonly */
  3575. Array<AttributeInfo> attributeInfos;
  3576. Array<Variant> attributes;
  3577. /* readonly */
  3578. String category;
  3579. bool enabled;
  3580. /* readonly */
  3581. bool enabledEffective;
  3582. /* readonly */
  3583. uint id;
  3584. float maxAgentRadius;
  3585. int maxAgents;
  3586. NavigationMesh navMesh;
  3587. /* readonly */
  3588. Node node;
  3589. /* readonly */
  3590. Array<uint> numAreas;
  3591. /* readonly */
  3592. uint numAttributes;
  3593. /* readonly */
  3594. uint numObstacleAvoidanceTypes;
  3595. /* readonly */
  3596. uint numQueryFilterTypes;
  3597. ObjectAnimation objectAnimation;
  3598. /* readonly */
  3599. int refs;
  3600. bool temporary;
  3601. /* readonly */
  3602. StringHash type;
  3603. /* readonly */
  3604. String typeName;
  3605. /* readonly */
  3606. int weakRefs;
  3607. };
  3608. class CrowdObstacleAvoidanceParams
  3609. {
  3610. public:
  3611. // Properties:
  3612. uint8 adaptiveDepth;
  3613. uint8 adaptiveDivs;
  3614. uint8 adaptiveRings;
  3615. uint8 gridSize;
  3616. float horizTime;
  3617. float velBias;
  3618. float weightCurVel;
  3619. float weightDesVel;
  3620. float weightSide;
  3621. float weightToi;
  3622. };
  3623. class Cursor
  3624. {
  3625. public:
  3626. Cursor();
  3627. Cursor(const String&in);
  3628. // Methods:
  3629. void AddChild(UIElement);
  3630. void AddTag(const String&);
  3631. void AddTags(const String&, int8 = ';');
  3632. void ApplyAttributes();
  3633. void BringToFront();
  3634. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3635. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3636. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3637. void DisableLayoutUpdate();
  3638. IntVector2 ElementToScreen(const IntVector2&);
  3639. void EnableLayoutUpdate();
  3640. uint FindChild(UIElement) const;
  3641. Variant GetAttribute(const String&) const;
  3642. ValueAnimation GetAttributeAnimation(const String&) const;
  3643. float GetAttributeAnimationSpeed(const String&) const;
  3644. float GetAttributeAnimationTime(const String&) const;
  3645. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3646. Variant GetAttributeDefault(const String&) const;
  3647. UIElement GetChild(const String&, bool = false) const;
  3648. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3649. Array<UIElement> GetChildren(bool = false) const;
  3650. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3651. UIElement GetElementEventSender() const;
  3652. bool GetInterceptNetworkUpdate(const String&) const;
  3653. uint GetNumChildren(bool) const;
  3654. bool HasSubscribedToEvent(Object, const String&);
  3655. bool HasSubscribedToEvent(const String&);
  3656. bool HasTag(const String&) const;
  3657. void InsertChild(uint, UIElement);
  3658. bool IsInside(IntVector2, bool);
  3659. bool IsInsideCombined(IntVector2, bool);
  3660. bool Load(File, bool = false);
  3661. bool Load(VectorBuffer&, bool = false);
  3662. UIElement LoadChildXML(XMLFile, XMLFile = null);
  3663. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3664. bool LoadJSON(const JSONValue&, bool = false);
  3665. bool LoadXML(File);
  3666. bool LoadXML(VectorBuffer&);
  3667. bool LoadXML(XMLFile, XMLFile);
  3668. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3669. bool LoadXML(const XMLElement&, bool = false);
  3670. void MarkNetworkUpdate() const;
  3671. void Remove();
  3672. void RemoveAllChildren();
  3673. void RemoveAllTags();
  3674. void RemoveAttributeAnimation(const String&);
  3675. void RemoveChild(UIElement, uint = 0);
  3676. void RemoveChild(uint);
  3677. void RemoveInstanceDefault();
  3678. void RemoveObjectAnimation();
  3679. bool RemoveTag(const String&);
  3680. void ResetDeepEnabled();
  3681. void ResetToDefault();
  3682. bool Save(File) const;
  3683. bool Save(VectorBuffer&) const;
  3684. bool SaveJSON(JSONValue&) const;
  3685. bool SaveXML(File, const String& = "\t");
  3686. bool SaveXML(VectorBuffer&, const String& = "\t");
  3687. bool SaveXML(XMLElement&) const;
  3688. IntVector2 ScreenToElement(const IntVector2&);
  3689. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3690. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3691. void SetAnimationTime(float);
  3692. bool SetAttribute(const String&, const Variant&);
  3693. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3694. void SetAttributeAnimationSpeed(const String&, float);
  3695. void SetAttributeAnimationTime(const String&, float);
  3696. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3697. void SetDeepEnabled(bool);
  3698. void SetEnabledRecursive(bool);
  3699. void SetFixedHeight(int);
  3700. void SetFixedSize(int, int);
  3701. void SetFixedWidth(int);
  3702. void SetFullImageRect();
  3703. void SetHoverOffset(int, int);
  3704. void SetInterceptNetworkUpdate(const String&, bool);
  3705. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3706. void SetMaxAnchor(float, float);
  3707. void SetMaxSize(int, int);
  3708. void SetMinAnchor(float, float);
  3709. void SetMinSize(int, int);
  3710. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3711. void SetPivot(float, float);
  3712. void SetPosition(int, int);
  3713. void SetShape(CursorShape);
  3714. void SetShape(const String&);
  3715. void SetSize(int, int);
  3716. bool SetStyle(const String&, XMLFile = null);
  3717. bool SetStyle(const XMLElement&);
  3718. bool SetStyleAuto(XMLFile = null);
  3719. void UpdateLayout();
  3720. const Variant& GetVar(const StringHash&);
  3721. // Properties:
  3722. bool animationEnabled;
  3723. /* readonly */
  3724. Array<Variant> attributeDefaults;
  3725. /* readonly */
  3726. Array<AttributeInfo> attributeInfos;
  3727. Array<Variant> attributes;
  3728. BlendMode blendMode;
  3729. IntRect border;
  3730. bool bringToBack;
  3731. bool bringToFront;
  3732. /* readonly */
  3733. String category;
  3734. /* readonly */
  3735. IntVector2 childOffset;
  3736. /* readonly */
  3737. Array<UIElement> children;
  3738. IntRect clipBorder;
  3739. bool clipChildren;
  3740. /* writeonly */
  3741. Color color;
  3742. /* readonly */
  3743. bool colorGradient;
  3744. Array<Color> colors;
  3745. /* readonly */
  3746. IntRect combinedScreenRect;
  3747. XMLFile defaultStyle;
  3748. /* readonly */
  3749. float derivedOpacity;
  3750. /* readonly */
  3751. uint dragButtonCombo;
  3752. /* readonly */
  3753. int dragButtonCount;
  3754. uint dragDropMode;
  3755. bool editable;
  3756. bool elementEventSender;
  3757. bool enableAnchor;
  3758. bool enabled;
  3759. /* readonly */
  3760. bool enabledSelf;
  3761. /* readonly */
  3762. bool fixedHeight;
  3763. /* readonly */
  3764. bool fixedSize;
  3765. /* readonly */
  3766. bool fixedWidth;
  3767. bool focus;
  3768. FocusMode focusMode;
  3769. int height;
  3770. HorizontalAlignment horizontalAlignment;
  3771. IntVector2 hoverOffset;
  3772. /* readonly */
  3773. bool hovering;
  3774. IntRect imageBorder;
  3775. IntRect imageRect;
  3776. int indent;
  3777. int indentSpacing;
  3778. /* readonly */
  3779. int indentWidth;
  3780. bool internal;
  3781. IntRect layoutBorder;
  3782. Vector2 layoutFlexScale;
  3783. LayoutMode layoutMode;
  3784. int layoutSpacing;
  3785. Vector2 maxAnchor;
  3786. int maxHeight;
  3787. IntVector2 maxOffset;
  3788. IntVector2 maxSize;
  3789. int maxWidth;
  3790. Vector2 minAnchor;
  3791. int minHeight;
  3792. IntVector2 minOffset;
  3793. IntVector2 minSize;
  3794. int minWidth;
  3795. String name;
  3796. /* readonly */
  3797. uint numAllChildren;
  3798. /* readonly */
  3799. uint numAttributes;
  3800. /* readonly */
  3801. uint numChildren;
  3802. ObjectAnimation objectAnimation;
  3803. float opacity;
  3804. UIElement parent;
  3805. Vector2 pivot;
  3806. IntVector2 position;
  3807. int priority;
  3808. /* readonly */
  3809. int refs;
  3810. /* readonly */
  3811. UIElement root;
  3812. /* readonly */
  3813. IntVector2 screenPosition;
  3814. bool selected;
  3815. String shape;
  3816. IntVector2 size;
  3817. bool sortChildren;
  3818. String style;
  3819. /* readonly */
  3820. Array<String> tags;
  3821. bool temporary;
  3822. Texture texture;
  3823. bool tiled;
  3824. TraversalMode traversalMode;
  3825. /* readonly */
  3826. StringHash type;
  3827. /* readonly */
  3828. String typeName;
  3829. bool useDerivedOpacity;
  3830. bool useSystemShapes;
  3831. /* readonly */
  3832. VariantMap vars;
  3833. VerticalAlignment verticalAlignment;
  3834. bool visible;
  3835. /* readonly */
  3836. bool visibleEffective;
  3837. /* readonly */
  3838. int weakRefs;
  3839. int width;
  3840. };
  3841. class CustomGeometry
  3842. {
  3843. public:
  3844. // Methods:
  3845. void ApplyAttributes();
  3846. void BeginGeometry(uint, PrimitiveType);
  3847. void Clear();
  3848. void Commit();
  3849. void DefineColor(const Color&);
  3850. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3851. void DefineNormal(const Vector3&);
  3852. void DefineTangent(const Vector4&);
  3853. void DefineTexCoord(const Vector2&);
  3854. void DefineVertex(const Vector3&);
  3855. void DrawDebugGeometry(DebugRenderer, bool);
  3856. Variant GetAttribute(const String&) const;
  3857. ValueAnimation GetAttributeAnimation(const String&) const;
  3858. float GetAttributeAnimationSpeed(const String&) const;
  3859. float GetAttributeAnimationTime(const String&) const;
  3860. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3861. Variant GetAttributeDefault(const String&) const;
  3862. bool GetInterceptNetworkUpdate(const String&) const;
  3863. CustomGeometryVertex GetVertex(uint, uint);
  3864. bool HasSubscribedToEvent(Object, const String&);
  3865. bool HasSubscribedToEvent(const String&);
  3866. bool IsInView(Camera) const;
  3867. bool Load(File, bool = false);
  3868. bool Load(VectorBuffer&, bool = false);
  3869. bool LoadJSON(const JSONValue&, bool = false);
  3870. bool LoadXML(const XMLElement&, bool = false);
  3871. void MarkNetworkUpdate() const;
  3872. void Remove();
  3873. void RemoveAttributeAnimation(const String&);
  3874. void RemoveInstanceDefault();
  3875. void RemoveObjectAnimation();
  3876. void ResetToDefault();
  3877. bool Save(File) const;
  3878. bool Save(VectorBuffer&) const;
  3879. bool SaveJSON(JSONValue&) const;
  3880. bool SaveXML(XMLElement&) const;
  3881. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3882. void SetAnimationTime(float);
  3883. bool SetAttribute(const String&, const Variant&);
  3884. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3885. void SetAttributeAnimationSpeed(const String&, float);
  3886. void SetAttributeAnimationTime(const String&, float);
  3887. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3888. void SetInterceptNetworkUpdate(const String&, bool);
  3889. // Properties:
  3890. bool animationEnabled;
  3891. /* readonly */
  3892. Array<Variant> attributeDefaults;
  3893. /* readonly */
  3894. Array<AttributeInfo> attributeInfos;
  3895. Array<Variant> attributes;
  3896. /* readonly */
  3897. BoundingBox boundingBox;
  3898. bool castShadows;
  3899. /* readonly */
  3900. String category;
  3901. float drawDistance;
  3902. bool dynamic;
  3903. bool enabled;
  3904. /* readonly */
  3905. bool enabledEffective;
  3906. /* readonly */
  3907. uint id;
  3908. /* readonly */
  3909. bool inView;
  3910. uint lightMask;
  3911. float lodBias;
  3912. /* writeonly */
  3913. Material material;
  3914. Array<Material> materials;
  3915. uint maxLights;
  3916. /* readonly */
  3917. Node node;
  3918. /* readonly */
  3919. uint numAttributes;
  3920. uint numGeometries;
  3921. /* readonly */
  3922. Array<uint> numVertices;
  3923. ObjectAnimation objectAnimation;
  3924. bool occludee;
  3925. bool occluder;
  3926. /* readonly */
  3927. int refs;
  3928. float shadowDistance;
  3929. uint shadowMask;
  3930. bool temporary;
  3931. /* readonly */
  3932. StringHash type;
  3933. /* readonly */
  3934. String typeName;
  3935. uint viewMask;
  3936. /* readonly */
  3937. int weakRefs;
  3938. /* readonly */
  3939. BoundingBox worldBoundingBox;
  3940. /* readonly */
  3941. Zone zone;
  3942. uint zoneMask;
  3943. };
  3944. class CustomGeometryVertex
  3945. {
  3946. public:
  3947. // Properties:
  3948. uint color;
  3949. Vector3 normal;
  3950. Vector3 position;
  3951. Vector4 tangent;
  3952. Vector2 texCoord;
  3953. };
  3954. class Database
  3955. {
  3956. public:
  3957. // Methods:
  3958. DbConnection Connect(const String&);
  3959. void Disconnect(DbConnection);
  3960. bool HasSubscribedToEvent(Object, const String&);
  3961. bool HasSubscribedToEvent(const String&);
  3962. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3963. // Properties:
  3964. /* readonly */
  3965. String category;
  3966. uint poolSize;
  3967. /* readonly */
  3968. bool pooling;
  3969. /* readonly */
  3970. int refs;
  3971. /* readonly */
  3972. StringHash type;
  3973. /* readonly */
  3974. String typeName;
  3975. /* readonly */
  3976. int weakRefs;
  3977. };
  3978. class DbConnection
  3979. {
  3980. public:
  3981. // Methods:
  3982. DbResult Execute(const String&, bool = false);
  3983. bool HasSubscribedToEvent(Object, const String&);
  3984. bool HasSubscribedToEvent(const String&);
  3985. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3986. // Properties:
  3987. /* readonly */
  3988. String category;
  3989. /* readonly */
  3990. bool connected;
  3991. /* readonly */
  3992. String connectionString;
  3993. /* readonly */
  3994. int refs;
  3995. /* readonly */
  3996. StringHash type;
  3997. /* readonly */
  3998. String typeName;
  3999. /* readonly */
  4000. int weakRefs;
  4001. };
  4002. class DbResult
  4003. {
  4004. public:
  4005. ~DbResult();
  4006. DbResult();
  4007. DbResult(const DbResult&in);
  4008. // Properties:
  4009. /* readonly */
  4010. Array<String> columns;
  4011. /* readonly */
  4012. int64 numAffectedRows;
  4013. /* readonly */
  4014. uint numColumns;
  4015. /* readonly */
  4016. uint numRows;
  4017. /* readonly */
  4018. Array<Array<Variant>> row;
  4019. };
  4020. class DebugHud
  4021. {
  4022. public:
  4023. // Methods:
  4024. void ClearAppStats();
  4025. bool HasSubscribedToEvent(Object, const String&);
  4026. bool HasSubscribedToEvent(const String&);
  4027. void ResetAppStats(const String&);
  4028. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4029. void SetAppStats(const String&, const String&);
  4030. void SetAppStats(const String&, const Variant&);
  4031. void Toggle(uint);
  4032. void ToggleAll();
  4033. void Update();
  4034. // Properties:
  4035. /* readonly */
  4036. String category;
  4037. XMLFile defaultStyle;
  4038. /* readonly */
  4039. Text memoryText;
  4040. uint mode;
  4041. /* readonly */
  4042. Text modeText;
  4043. float profilerInterval;
  4044. uint profilerMaxDepth;
  4045. /* readonly */
  4046. Text profilerText;
  4047. /* readonly */
  4048. int refs;
  4049. /* readonly */
  4050. Text statsText;
  4051. /* readonly */
  4052. StringHash type;
  4053. /* readonly */
  4054. String typeName;
  4055. bool useRendererStats;
  4056. /* readonly */
  4057. int weakRefs;
  4058. };
  4059. class DebugRenderer
  4060. {
  4061. public:
  4062. // Methods:
  4063. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  4064. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  4065. void AddCross(const Vector3&, float, const Color&, bool = true);
  4066. void AddFrustum(const Frustum&, const Color&, bool = true);
  4067. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  4068. void AddNode(Node, float = 1.0, bool = true);
  4069. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4070. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  4071. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  4072. void AddSkeleton(Skeleton, const Color&, bool = true);
  4073. void AddSphere(const Sphere&, const Color&, bool = true);
  4074. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  4075. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4076. void ApplyAttributes();
  4077. void DrawDebugGeometry(DebugRenderer, bool);
  4078. Variant GetAttribute(const String&) const;
  4079. ValueAnimation GetAttributeAnimation(const String&) const;
  4080. float GetAttributeAnimationSpeed(const String&) const;
  4081. float GetAttributeAnimationTime(const String&) const;
  4082. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4083. Variant GetAttributeDefault(const String&) const;
  4084. bool GetInterceptNetworkUpdate(const String&) const;
  4085. bool HasSubscribedToEvent(Object, const String&);
  4086. bool HasSubscribedToEvent(const String&);
  4087. bool Load(File, bool = false);
  4088. bool Load(VectorBuffer&, bool = false);
  4089. bool LoadJSON(const JSONValue&, bool = false);
  4090. bool LoadXML(const XMLElement&, bool = false);
  4091. void MarkNetworkUpdate() const;
  4092. void Remove();
  4093. void RemoveAttributeAnimation(const String&);
  4094. void RemoveInstanceDefault();
  4095. void RemoveObjectAnimation();
  4096. void ResetToDefault();
  4097. bool Save(File) const;
  4098. bool Save(VectorBuffer&) const;
  4099. bool SaveJSON(JSONValue&) const;
  4100. bool SaveXML(XMLElement&) const;
  4101. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4102. void SetAnimationTime(float);
  4103. bool SetAttribute(const String&, const Variant&);
  4104. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4105. void SetAttributeAnimationSpeed(const String&, float);
  4106. void SetAttributeAnimationTime(const String&, float);
  4107. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4108. void SetInterceptNetworkUpdate(const String&, bool);
  4109. // Properties:
  4110. bool animationEnabled;
  4111. /* readonly */
  4112. Array<Variant> attributeDefaults;
  4113. /* readonly */
  4114. Array<AttributeInfo> attributeInfos;
  4115. Array<Variant> attributes;
  4116. /* readonly */
  4117. String category;
  4118. bool enabled;
  4119. /* readonly */
  4120. bool enabledEffective;
  4121. /* readonly */
  4122. uint id;
  4123. bool lineAntiAlias;
  4124. /* readonly */
  4125. Node node;
  4126. /* readonly */
  4127. uint numAttributes;
  4128. ObjectAnimation objectAnimation;
  4129. /* readonly */
  4130. int refs;
  4131. bool temporary;
  4132. /* readonly */
  4133. StringHash type;
  4134. /* readonly */
  4135. String typeName;
  4136. /* readonly */
  4137. int weakRefs;
  4138. };
  4139. class DecalSet
  4140. {
  4141. public:
  4142. // Methods:
  4143. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4144. void ApplyAttributes();
  4145. void DrawDebugGeometry(DebugRenderer, bool);
  4146. Variant GetAttribute(const String&) const;
  4147. ValueAnimation GetAttributeAnimation(const String&) const;
  4148. float GetAttributeAnimationSpeed(const String&) const;
  4149. float GetAttributeAnimationTime(const String&) const;
  4150. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4151. Variant GetAttributeDefault(const String&) const;
  4152. bool GetInterceptNetworkUpdate(const String&) const;
  4153. bool HasSubscribedToEvent(Object, const String&);
  4154. bool HasSubscribedToEvent(const String&);
  4155. bool IsInView(Camera) const;
  4156. bool Load(File, bool = false);
  4157. bool Load(VectorBuffer&, bool = false);
  4158. bool LoadJSON(const JSONValue&, bool = false);
  4159. bool LoadXML(const XMLElement&, bool = false);
  4160. void MarkNetworkUpdate() const;
  4161. void Remove();
  4162. void RemoveAllDecals();
  4163. void RemoveAttributeAnimation(const String&);
  4164. void RemoveDecals(uint);
  4165. void RemoveInstanceDefault();
  4166. void RemoveObjectAnimation();
  4167. void ResetToDefault();
  4168. bool Save(File) const;
  4169. bool Save(VectorBuffer&) const;
  4170. bool SaveJSON(JSONValue&) const;
  4171. bool SaveXML(XMLElement&) const;
  4172. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4173. void SetAnimationTime(float);
  4174. bool SetAttribute(const String&, const Variant&);
  4175. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4176. void SetAttributeAnimationSpeed(const String&, float);
  4177. void SetAttributeAnimationTime(const String&, float);
  4178. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4179. void SetInterceptNetworkUpdate(const String&, bool);
  4180. // Properties:
  4181. bool animationEnabled;
  4182. /* readonly */
  4183. Array<Variant> attributeDefaults;
  4184. /* readonly */
  4185. Array<AttributeInfo> attributeInfos;
  4186. Array<Variant> attributes;
  4187. /* readonly */
  4188. BoundingBox boundingBox;
  4189. bool castShadows;
  4190. /* readonly */
  4191. String category;
  4192. float drawDistance;
  4193. bool enabled;
  4194. /* readonly */
  4195. bool enabledEffective;
  4196. /* readonly */
  4197. uint id;
  4198. /* readonly */
  4199. bool inView;
  4200. uint lightMask;
  4201. float lodBias;
  4202. Material material;
  4203. uint maxIndices;
  4204. uint maxLights;
  4205. uint maxVertices;
  4206. /* readonly */
  4207. Node node;
  4208. /* readonly */
  4209. uint numAttributes;
  4210. /* readonly */
  4211. uint numDecals;
  4212. /* readonly */
  4213. uint numIndices;
  4214. /* readonly */
  4215. uint numVertices;
  4216. ObjectAnimation objectAnimation;
  4217. bool occludee;
  4218. bool occluder;
  4219. bool optimizeBufferSize;
  4220. /* readonly */
  4221. int refs;
  4222. float shadowDistance;
  4223. uint shadowMask;
  4224. bool temporary;
  4225. /* readonly */
  4226. StringHash type;
  4227. /* readonly */
  4228. String typeName;
  4229. uint viewMask;
  4230. /* readonly */
  4231. int weakRefs;
  4232. /* readonly */
  4233. BoundingBox worldBoundingBox;
  4234. /* readonly */
  4235. Zone zone;
  4236. uint zoneMask;
  4237. };
  4238. class Deserializer
  4239. {
  4240. public:
  4241. // Methods:
  4242. Array<uint8> Read(uint);
  4243. bool ReadBool();
  4244. BoundingBox ReadBoundingBox();
  4245. int8 ReadByte();
  4246. Color ReadColor();
  4247. double ReadDouble();
  4248. String ReadFileID();
  4249. float ReadFloat();
  4250. int ReadInt();
  4251. int64 ReadInt64();
  4252. IntRect ReadIntRect();
  4253. IntVector2 ReadIntVector2();
  4254. String ReadLine();
  4255. Matrix3 ReadMatrix3();
  4256. Matrix3x4 ReadMatrix3x4();
  4257. Matrix4 ReadMatrix4();
  4258. uint ReadNetID();
  4259. Quaternion ReadPackedQuaternion();
  4260. Vector3 ReadPackedVector3(float);
  4261. Quaternion ReadQuaternion();
  4262. int16 ReadShort();
  4263. String ReadString();
  4264. StringHash ReadStringHash();
  4265. uint8 ReadUByte();
  4266. uint ReadUInt();
  4267. uint64 ReadUInt64();
  4268. uint16 ReadUShort();
  4269. uint ReadVLE();
  4270. Variant ReadVariant();
  4271. VariantMap ReadVariantMap();
  4272. Vector2 ReadVector2();
  4273. Vector3 ReadVector3();
  4274. Vector4 ReadVector4();
  4275. VectorBuffer ReadVectorBuffer(uint);
  4276. uint Seek(uint);
  4277. uint SeekRelative(int);
  4278. uint Tell() const;
  4279. // Properties:
  4280. /* readonly */
  4281. uint checksum;
  4282. /* readonly */
  4283. bool eof;
  4284. /* readonly */
  4285. String name;
  4286. /* readonly */
  4287. uint position;
  4288. /* readonly */
  4289. uint size;
  4290. };
  4291. class Dictionary
  4292. {
  4293. public:
  4294. Dictionary();
  4295. // Methods:
  4296. void Clear();
  4297. void Erase(const String&);
  4298. bool Exists(const String&) const;
  4299. bool Get(const String&, void*) const;
  4300. bool Get(const String&, double&) const;
  4301. bool Get(const String&, int64&) const;
  4302. void Set(const String&, const void*);
  4303. void Set(const String&, const double&);
  4304. void Set(const String&, const int64&);
  4305. // Properties:
  4306. /* readonly */
  4307. bool empty;
  4308. /* readonly */
  4309. Array<String> keys;
  4310. /* readonly */
  4311. uint length;
  4312. };
  4313. class DictionaryValue
  4314. {
  4315. public:
  4316. ~DictionaryValue();
  4317. DictionaryValue();
  4318. };
  4319. class Drawable
  4320. {
  4321. public:
  4322. // Methods:
  4323. void ApplyAttributes();
  4324. void DrawDebugGeometry(DebugRenderer, bool);
  4325. Variant GetAttribute(const String&) const;
  4326. ValueAnimation GetAttributeAnimation(const String&) const;
  4327. float GetAttributeAnimationSpeed(const String&) const;
  4328. float GetAttributeAnimationTime(const String&) const;
  4329. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4330. Variant GetAttributeDefault(const String&) const;
  4331. bool GetInterceptNetworkUpdate(const String&) const;
  4332. bool HasSubscribedToEvent(Object, const String&);
  4333. bool HasSubscribedToEvent(const String&);
  4334. bool IsInView(Camera) const;
  4335. bool Load(File, bool = false);
  4336. bool Load(VectorBuffer&, bool = false);
  4337. bool LoadJSON(const JSONValue&, bool = false);
  4338. bool LoadXML(const XMLElement&, bool = false);
  4339. void MarkNetworkUpdate() const;
  4340. void Remove();
  4341. void RemoveAttributeAnimation(const String&);
  4342. void RemoveInstanceDefault();
  4343. void RemoveObjectAnimation();
  4344. void ResetToDefault();
  4345. bool Save(File) const;
  4346. bool Save(VectorBuffer&) const;
  4347. bool SaveJSON(JSONValue&) const;
  4348. bool SaveXML(XMLElement&) const;
  4349. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4350. void SetAnimationTime(float);
  4351. bool SetAttribute(const String&, const Variant&);
  4352. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4353. void SetAttributeAnimationSpeed(const String&, float);
  4354. void SetAttributeAnimationTime(const String&, float);
  4355. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4356. void SetInterceptNetworkUpdate(const String&, bool);
  4357. // Properties:
  4358. bool animationEnabled;
  4359. /* readonly */
  4360. Array<Variant> attributeDefaults;
  4361. /* readonly */
  4362. Array<AttributeInfo> attributeInfos;
  4363. Array<Variant> attributes;
  4364. /* readonly */
  4365. BoundingBox boundingBox;
  4366. bool castShadows;
  4367. /* readonly */
  4368. String category;
  4369. float drawDistance;
  4370. bool enabled;
  4371. /* readonly */
  4372. bool enabledEffective;
  4373. /* readonly */
  4374. uint id;
  4375. /* readonly */
  4376. bool inView;
  4377. uint lightMask;
  4378. float lodBias;
  4379. uint maxLights;
  4380. /* readonly */
  4381. Node node;
  4382. /* readonly */
  4383. uint numAttributes;
  4384. ObjectAnimation objectAnimation;
  4385. bool occludee;
  4386. bool occluder;
  4387. /* readonly */
  4388. int refs;
  4389. float shadowDistance;
  4390. uint shadowMask;
  4391. bool temporary;
  4392. /* readonly */
  4393. StringHash type;
  4394. /* readonly */
  4395. String typeName;
  4396. uint viewMask;
  4397. /* readonly */
  4398. int weakRefs;
  4399. /* readonly */
  4400. BoundingBox worldBoundingBox;
  4401. uint zoneMask;
  4402. };
  4403. class Drawable2D
  4404. {
  4405. public:
  4406. // Methods:
  4407. void ApplyAttributes();
  4408. void DrawDebugGeometry(DebugRenderer, bool);
  4409. Variant GetAttribute(const String&) const;
  4410. ValueAnimation GetAttributeAnimation(const String&) const;
  4411. float GetAttributeAnimationSpeed(const String&) const;
  4412. float GetAttributeAnimationTime(const String&) const;
  4413. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4414. Variant GetAttributeDefault(const String&) const;
  4415. bool GetInterceptNetworkUpdate(const String&) const;
  4416. bool HasSubscribedToEvent(Object, const String&);
  4417. bool HasSubscribedToEvent(const String&);
  4418. bool IsInView(Camera) const;
  4419. bool Load(File, bool = false);
  4420. bool Load(VectorBuffer&, bool = false);
  4421. bool LoadJSON(const JSONValue&, bool = false);
  4422. bool LoadXML(const XMLElement&, bool = false);
  4423. void MarkNetworkUpdate() const;
  4424. void Remove();
  4425. void RemoveAttributeAnimation(const String&);
  4426. void RemoveInstanceDefault();
  4427. void RemoveObjectAnimation();
  4428. void ResetToDefault();
  4429. bool Save(File) const;
  4430. bool Save(VectorBuffer&) const;
  4431. bool SaveJSON(JSONValue&) const;
  4432. bool SaveXML(XMLElement&) const;
  4433. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4434. void SetAnimationTime(float);
  4435. bool SetAttribute(const String&, const Variant&);
  4436. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4437. void SetAttributeAnimationSpeed(const String&, float);
  4438. void SetAttributeAnimationTime(const String&, float);
  4439. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4440. void SetInterceptNetworkUpdate(const String&, bool);
  4441. // Properties:
  4442. bool animationEnabled;
  4443. /* readonly */
  4444. Array<Variant> attributeDefaults;
  4445. /* readonly */
  4446. Array<AttributeInfo> attributeInfos;
  4447. Array<Variant> attributes;
  4448. /* readonly */
  4449. BoundingBox boundingBox;
  4450. bool castShadows;
  4451. /* readonly */
  4452. String category;
  4453. float drawDistance;
  4454. bool enabled;
  4455. /* readonly */
  4456. bool enabledEffective;
  4457. /* readonly */
  4458. uint id;
  4459. /* readonly */
  4460. bool inView;
  4461. int layer;
  4462. uint lightMask;
  4463. float lodBias;
  4464. uint maxLights;
  4465. /* readonly */
  4466. Node node;
  4467. /* readonly */
  4468. uint numAttributes;
  4469. ObjectAnimation objectAnimation;
  4470. bool occludee;
  4471. bool occluder;
  4472. int orderInLayer;
  4473. /* readonly */
  4474. int refs;
  4475. float shadowDistance;
  4476. uint shadowMask;
  4477. bool temporary;
  4478. /* readonly */
  4479. StringHash type;
  4480. /* readonly */
  4481. String typeName;
  4482. uint viewMask;
  4483. /* readonly */
  4484. int weakRefs;
  4485. /* readonly */
  4486. BoundingBox worldBoundingBox;
  4487. uint zoneMask;
  4488. };
  4489. class DropDownList
  4490. {
  4491. public:
  4492. DropDownList();
  4493. DropDownList(const String&in);
  4494. // Methods:
  4495. void AddChild(UIElement);
  4496. void AddItem(UIElement);
  4497. void AddTag(const String&);
  4498. void AddTags(const String&, int8 = ';');
  4499. void ApplyAttributes();
  4500. void BringToFront();
  4501. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4502. void DisableLayoutUpdate();
  4503. IntVector2 ElementToScreen(const IntVector2&);
  4504. void EnableLayoutUpdate();
  4505. uint FindChild(UIElement) const;
  4506. Variant GetAttribute(const String&) const;
  4507. ValueAnimation GetAttributeAnimation(const String&) const;
  4508. float GetAttributeAnimationSpeed(const String&) const;
  4509. float GetAttributeAnimationTime(const String&) const;
  4510. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4511. Variant GetAttributeDefault(const String&) const;
  4512. UIElement GetChild(const String&, bool = false) const;
  4513. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4514. Array<UIElement> GetChildren(bool = false) const;
  4515. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4516. UIElement GetElementEventSender() const;
  4517. bool GetInterceptNetworkUpdate(const String&) const;
  4518. Array<UIElement> GetItems() const;
  4519. uint GetNumChildren(bool) const;
  4520. bool HasSubscribedToEvent(Object, const String&);
  4521. bool HasSubscribedToEvent(const String&);
  4522. bool HasTag(const String&) const;
  4523. void InsertChild(uint, UIElement);
  4524. void InsertItem(uint, UIElement);
  4525. bool IsInside(IntVector2, bool);
  4526. bool IsInsideCombined(IntVector2, bool);
  4527. bool Load(File, bool = false);
  4528. bool Load(VectorBuffer&, bool = false);
  4529. UIElement LoadChildXML(XMLFile, XMLFile = null);
  4530. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4531. bool LoadJSON(const JSONValue&, bool = false);
  4532. bool LoadXML(File);
  4533. bool LoadXML(VectorBuffer&);
  4534. bool LoadXML(XMLFile, XMLFile);
  4535. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4536. bool LoadXML(const XMLElement&, bool = false);
  4537. void MarkNetworkUpdate() const;
  4538. void Remove();
  4539. void RemoveAllChildren();
  4540. void RemoveAllItems();
  4541. void RemoveAllTags();
  4542. void RemoveAttributeAnimation(const String&);
  4543. void RemoveChild(UIElement, uint = 0);
  4544. void RemoveChild(uint);
  4545. void RemoveInstanceDefault();
  4546. void RemoveItem(UIElement);
  4547. void RemoveItem(uint);
  4548. void RemoveObjectAnimation();
  4549. bool RemoveTag(const String&);
  4550. void ResetDeepEnabled();
  4551. void ResetToDefault();
  4552. bool Save(File) const;
  4553. bool Save(VectorBuffer&) const;
  4554. bool SaveJSON(JSONValue&) const;
  4555. bool SaveXML(File, const String& = "\t");
  4556. bool SaveXML(VectorBuffer&, const String& = "\t");
  4557. bool SaveXML(XMLElement&) const;
  4558. IntVector2 ScreenToElement(const IntVector2&);
  4559. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4560. void SetAccelerator(int, int);
  4561. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4562. void SetAnimationTime(float);
  4563. bool SetAttribute(const String&, const Variant&);
  4564. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4565. void SetAttributeAnimationSpeed(const String&, float);
  4566. void SetAttributeAnimationTime(const String&, float);
  4567. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4568. void SetDeepEnabled(bool);
  4569. void SetDisabledOffset(int, int);
  4570. void SetEnabledRecursive(bool);
  4571. void SetFixedHeight(int);
  4572. void SetFixedSize(int, int);
  4573. void SetFixedWidth(int);
  4574. void SetFullImageRect();
  4575. void SetHoverOffset(int, int);
  4576. void SetInterceptNetworkUpdate(const String&, bool);
  4577. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4578. void SetMaxAnchor(float, float);
  4579. void SetMaxSize(int, int);
  4580. void SetMinAnchor(float, float);
  4581. void SetMinSize(int, int);
  4582. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4583. void SetPivot(float, float);
  4584. void SetPosition(int, int);
  4585. void SetPressedChildOffset(int, int);
  4586. void SetPressedOffset(int, int);
  4587. void SetRepeat(float, float);
  4588. void SetSize(int, int);
  4589. bool SetStyle(const String&, XMLFile = null);
  4590. bool SetStyle(const XMLElement&);
  4591. bool SetStyleAuto(XMLFile = null);
  4592. void UpdateLayout();
  4593. const Variant& GetVar(const StringHash&);
  4594. UIElement getPopup() const;
  4595. // Properties:
  4596. /* readonly */
  4597. int acceleratorKey;
  4598. /* readonly */
  4599. int acceleratorQualifiers;
  4600. bool animationEnabled;
  4601. /* readonly */
  4602. Array<Variant> attributeDefaults;
  4603. /* readonly */
  4604. Array<AttributeInfo> attributeInfos;
  4605. Array<Variant> attributes;
  4606. BlendMode blendMode;
  4607. IntRect border;
  4608. bool bringToBack;
  4609. bool bringToFront;
  4610. /* readonly */
  4611. String category;
  4612. /* readonly */
  4613. IntVector2 childOffset;
  4614. /* readonly */
  4615. Array<UIElement> children;
  4616. IntRect clipBorder;
  4617. bool clipChildren;
  4618. /* writeonly */
  4619. Color color;
  4620. /* readonly */
  4621. bool colorGradient;
  4622. Array<Color> colors;
  4623. /* readonly */
  4624. IntRect combinedScreenRect;
  4625. XMLFile defaultStyle;
  4626. /* readonly */
  4627. float derivedOpacity;
  4628. IntVector2 disabledOffset;
  4629. /* readonly */
  4630. uint dragButtonCombo;
  4631. /* readonly */
  4632. int dragButtonCount;
  4633. uint dragDropMode;
  4634. bool editable;
  4635. bool elementEventSender;
  4636. bool enableAnchor;
  4637. bool enabled;
  4638. /* readonly */
  4639. bool enabledSelf;
  4640. /* readonly */
  4641. bool fixedHeight;
  4642. /* readonly */
  4643. bool fixedSize;
  4644. /* readonly */
  4645. bool fixedWidth;
  4646. bool focus;
  4647. FocusMode focusMode;
  4648. int height;
  4649. HorizontalAlignment horizontalAlignment;
  4650. IntVector2 hoverOffset;
  4651. /* readonly */
  4652. bool hovering;
  4653. IntRect imageBorder;
  4654. IntRect imageRect;
  4655. int indent;
  4656. int indentSpacing;
  4657. /* readonly */
  4658. int indentWidth;
  4659. bool internal;
  4660. /* readonly */
  4661. Array<UIElement> items;
  4662. IntRect layoutBorder;
  4663. Vector2 layoutFlexScale;
  4664. LayoutMode layoutMode;
  4665. int layoutSpacing;
  4666. /* readonly */
  4667. ListView listView;
  4668. Vector2 maxAnchor;
  4669. int maxHeight;
  4670. IntVector2 maxOffset;
  4671. IntVector2 maxSize;
  4672. int maxWidth;
  4673. Vector2 minAnchor;
  4674. int minHeight;
  4675. IntVector2 minOffset;
  4676. IntVector2 minSize;
  4677. int minWidth;
  4678. String name;
  4679. /* readonly */
  4680. uint numAllChildren;
  4681. /* readonly */
  4682. uint numAttributes;
  4683. /* readonly */
  4684. uint numChildren;
  4685. /* readonly */
  4686. uint numItems;
  4687. ObjectAnimation objectAnimation;
  4688. float opacity;
  4689. UIElement parent;
  4690. Vector2 pivot;
  4691. /* readonly */
  4692. UIElement placeholder;
  4693. String placeholderText;
  4694. IntVector2 position;
  4695. /* readonly */
  4696. bool pressed;
  4697. IntVector2 pressedChildOffset;
  4698. IntVector2 pressedOffset;
  4699. int priority;
  4700. /* readonly */
  4701. int refs;
  4702. float repeatDelay;
  4703. float repeatRate;
  4704. bool resizePopup;
  4705. /* readonly */
  4706. UIElement root;
  4707. /* readonly */
  4708. IntVector2 screenPosition;
  4709. bool selected;
  4710. /* readonly */
  4711. UIElement selectedItem;
  4712. uint selection;
  4713. bool showPopup;
  4714. IntVector2 size;
  4715. bool sortChildren;
  4716. String style;
  4717. /* readonly */
  4718. Array<String> tags;
  4719. bool temporary;
  4720. Texture texture;
  4721. bool tiled;
  4722. TraversalMode traversalMode;
  4723. /* readonly */
  4724. StringHash type;
  4725. /* readonly */
  4726. String typeName;
  4727. bool useDerivedOpacity;
  4728. /* readonly */
  4729. VariantMap vars;
  4730. VerticalAlignment verticalAlignment;
  4731. bool visible;
  4732. /* readonly */
  4733. bool visibleEffective;
  4734. /* readonly */
  4735. int weakRefs;
  4736. int width;
  4737. };
  4738. class DynamicNavigationMesh
  4739. {
  4740. public:
  4741. // Methods:
  4742. bool AddTile(const VectorBuffer&) const;
  4743. bool Allocate(const BoundingBox&, uint);
  4744. void ApplyAttributes();
  4745. bool Build();
  4746. bool Build(const BoundingBox&);
  4747. bool Build(const IntVector2&, const IntVector2&);
  4748. void DrawDebugGeometry(DebugRenderer, bool);
  4749. void DrawDebugGeometry(bool);
  4750. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4751. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4752. float GetAreaCost(uint) const;
  4753. Variant GetAttribute(const String&) const;
  4754. ValueAnimation GetAttributeAnimation(const String&) const;
  4755. float GetAttributeAnimationSpeed(const String&) const;
  4756. float GetAttributeAnimationTime(const String&) const;
  4757. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4758. Variant GetAttributeDefault(const String&) const;
  4759. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4760. bool GetInterceptNetworkUpdate(const String&) const;
  4761. Vector3 GetRandomPoint();
  4762. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4763. BoundingBox GetTileBoudningBox(const IntVector2&) const;
  4764. VectorBuffer GetTileData(const IntVector2&) const;
  4765. IntVector2 GetTileIndex(const Vector3&) const;
  4766. bool HasSubscribedToEvent(Object, const String&);
  4767. bool HasSubscribedToEvent(const String&);
  4768. bool HasTile(const IntVector2&) const;
  4769. bool Load(File, bool = false);
  4770. bool Load(VectorBuffer&, bool = false);
  4771. bool LoadJSON(const JSONValue&, bool = false);
  4772. bool LoadXML(const XMLElement&, bool = false);
  4773. void MarkNetworkUpdate() const;
  4774. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4775. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4776. void Remove();
  4777. void RemoveAllTiles();
  4778. void RemoveAttributeAnimation(const String&);
  4779. void RemoveInstanceDefault();
  4780. void RemoveObjectAnimation();
  4781. void RemoveTile(const IntVector2&);
  4782. void ResetToDefault();
  4783. bool Save(File) const;
  4784. bool Save(VectorBuffer&) const;
  4785. bool SaveJSON(JSONValue&) const;
  4786. bool SaveXML(XMLElement&) const;
  4787. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4788. void SetAnimationTime(float);
  4789. void SetAreaCost(uint, float);
  4790. bool SetAttribute(const String&, const Variant&);
  4791. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4792. void SetAttributeAnimationSpeed(const String&, float);
  4793. void SetAttributeAnimationTime(const String&, float);
  4794. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4795. void SetInterceptNetworkUpdate(const String&, bool);
  4796. // Properties:
  4797. float agentHeight;
  4798. float agentMaxClimb;
  4799. float agentMaxSlope;
  4800. float agentRadius;
  4801. bool animationEnabled;
  4802. /* readonly */
  4803. Array<Variant> attributeDefaults;
  4804. /* readonly */
  4805. Array<AttributeInfo> attributeInfos;
  4806. Array<Variant> attributes;
  4807. /* readonly */
  4808. BoundingBox boundingBox;
  4809. /* readonly */
  4810. String category;
  4811. float cellHeight;
  4812. float cellSize;
  4813. float detailSampleDistance;
  4814. float detailSampleMaxError;
  4815. bool drawNavAreas;
  4816. bool drawObstacles;
  4817. bool drawOffMeshConnections;
  4818. float edgeMaxError;
  4819. float edgeMaxLength;
  4820. bool enabled;
  4821. /* readonly */
  4822. bool enabledEffective;
  4823. /* readonly */
  4824. uint id;
  4825. /* readonly */
  4826. bool initialized;
  4827. bool maxLayers;
  4828. uint maxObstacles;
  4829. /* readonly */
  4830. Node node;
  4831. /* readonly */
  4832. uint numAttributes;
  4833. /* readonly */
  4834. IntVector2 numTiles;
  4835. ObjectAnimation objectAnimation;
  4836. Vector3 padding;
  4837. NavmeshPartitionType partitionType;
  4838. /* readonly */
  4839. int refs;
  4840. float regionMergeSize;
  4841. float regionMinSize;
  4842. bool temporary;
  4843. int tileSize;
  4844. /* readonly */
  4845. StringHash type;
  4846. /* readonly */
  4847. String typeName;
  4848. /* readonly */
  4849. int weakRefs;
  4850. /* readonly */
  4851. BoundingBox worldBoundingBox;
  4852. };
  4853. class Engine
  4854. {
  4855. public:
  4856. // Methods:
  4857. Console CreateConsole();
  4858. DebugHud CreateDebugHud();
  4859. void DumpMemory();
  4860. void DumpProfiler();
  4861. void DumpResources(bool = false);
  4862. void Exit();
  4863. bool HasSubscribedToEvent(Object, const String&);
  4864. bool HasSubscribedToEvent(const String&);
  4865. void RunFrame();
  4866. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4867. // Properties:
  4868. bool autoExit;
  4869. /* readonly */
  4870. String category;
  4871. /* readonly */
  4872. bool exiting;
  4873. /* readonly */
  4874. bool headless;
  4875. /* readonly */
  4876. bool initialized;
  4877. int maxFps;
  4878. int maxInactiveFps;
  4879. int minFps;
  4880. bool pauseMinimized;
  4881. /* readonly */
  4882. int refs;
  4883. int timeStepSmoothing;
  4884. /* readonly */
  4885. StringHash type;
  4886. /* readonly */
  4887. String typeName;
  4888. /* readonly */
  4889. int weakRefs;
  4890. };
  4891. class File
  4892. {
  4893. public:
  4894. File();
  4895. File(const String&in, FileMode mode = FILE_READ);
  4896. // Methods:
  4897. void Close();
  4898. bool HasSubscribedToEvent(Object, const String&);
  4899. bool HasSubscribedToEvent(const String&);
  4900. bool Open(const String&, FileMode = FILE_READ);
  4901. Array<uint8> Read(uint);
  4902. bool ReadBool();
  4903. BoundingBox ReadBoundingBox();
  4904. int8 ReadByte();
  4905. Color ReadColor();
  4906. double ReadDouble();
  4907. String ReadFileID();
  4908. float ReadFloat();
  4909. int ReadInt();
  4910. int64 ReadInt64();
  4911. IntRect ReadIntRect();
  4912. IntVector2 ReadIntVector2();
  4913. String ReadLine();
  4914. Matrix3 ReadMatrix3();
  4915. Matrix3x4 ReadMatrix3x4();
  4916. Matrix4 ReadMatrix4();
  4917. uint ReadNetID();
  4918. Quaternion ReadPackedQuaternion();
  4919. Vector3 ReadPackedVector3(float);
  4920. Quaternion ReadQuaternion();
  4921. int16 ReadShort();
  4922. String ReadString();
  4923. StringHash ReadStringHash();
  4924. uint8 ReadUByte();
  4925. uint ReadUInt();
  4926. uint64 ReadUInt64();
  4927. uint16 ReadUShort();
  4928. uint ReadVLE();
  4929. Variant ReadVariant();
  4930. VariantMap ReadVariantMap();
  4931. Vector2 ReadVector2();
  4932. Vector3 ReadVector3();
  4933. Vector4 ReadVector4();
  4934. VectorBuffer ReadVectorBuffer(uint);
  4935. uint Seek(uint);
  4936. uint SeekRelative(int);
  4937. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4938. uint Tell() const;
  4939. uint Write(Array<uint8>);
  4940. bool WriteBool(bool);
  4941. bool WriteBoundingBox(const BoundingBox&);
  4942. bool WriteByte(int8);
  4943. bool WriteColor(const Color&);
  4944. bool WriteDouble(double);
  4945. bool WriteFileID(const String&);
  4946. bool WriteFloat(float);
  4947. bool WriteInt(int);
  4948. bool WriteInt64(int64);
  4949. bool WriteIntRect(const IntRect&);
  4950. bool WriteIntVector2(const IntVector2&);
  4951. bool WriteLine(const String&);
  4952. bool WriteMatrix3(const Matrix3&);
  4953. bool WriteMatrix3x4(const Matrix3x4&);
  4954. bool WriteMatrix4(const Matrix4&);
  4955. bool WriteNetID(uint);
  4956. bool WritePackedQuaternion(const Quaternion&);
  4957. bool WritePackedVector3(const Vector3&, float);
  4958. bool WriteQuaternion(const Quaternion&);
  4959. bool WriteShort(int16);
  4960. bool WriteString(const String&);
  4961. bool WriteStringHash(const StringHash&);
  4962. bool WriteUByte(uint8);
  4963. bool WriteUInt(uint);
  4964. bool WriteUInt64(uint64);
  4965. bool WriteUShort(uint16);
  4966. bool WriteVLE(uint);
  4967. bool WriteVariant(const Variant&);
  4968. bool WriteVariantMap(const VariantMap&);
  4969. bool WriteVector2(const Vector2&);
  4970. bool WriteVector3(const Vector3&);
  4971. bool WriteVector4(const Vector4&);
  4972. bool WriteVectorBuffer(const VectorBuffer&);
  4973. // Properties:
  4974. /* readonly */
  4975. String category;
  4976. /* readonly */
  4977. uint checksum;
  4978. /* readonly */
  4979. bool eof;
  4980. /* readonly */
  4981. FileMode mode;
  4982. /* readonly */
  4983. String name;
  4984. /* readonly */
  4985. bool open;
  4986. /* readonly */
  4987. bool packaged;
  4988. /* readonly */
  4989. uint position;
  4990. /* readonly */
  4991. int refs;
  4992. /* readonly */
  4993. uint size;
  4994. /* readonly */
  4995. StringHash type;
  4996. /* readonly */
  4997. String typeName;
  4998. /* readonly */
  4999. int weakRefs;
  5000. };
  5001. class FileSelector
  5002. {
  5003. public:
  5004. FileSelector();
  5005. // Methods:
  5006. bool HasSubscribedToEvent(Object, const String&);
  5007. bool HasSubscribedToEvent(const String&);
  5008. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5009. void SetButtonTexts(const String&, const String&);
  5010. void SetFilters(Array<String>, uint);
  5011. void UpdateElements();
  5012. // Properties:
  5013. /* readonly */
  5014. Button cancelButton;
  5015. /* readonly */
  5016. String category;
  5017. XMLFile defaultStyle;
  5018. bool directoryMode;
  5019. /* readonly */
  5020. ListView fileList;
  5021. String fileName;
  5022. /* readonly */
  5023. LineEdit fileNameEdit;
  5024. /* readonly */
  5025. String filter;
  5026. /* readonly */
  5027. uint filterIndex;
  5028. /* readonly */
  5029. DropDownList filterList;
  5030. /* readonly */
  5031. Button okButton;
  5032. String path;
  5033. /* readonly */
  5034. LineEdit pathEdit;
  5035. /* readonly */
  5036. int refs;
  5037. String title;
  5038. /* readonly */
  5039. Text titleText;
  5040. /* readonly */
  5041. StringHash type;
  5042. /* readonly */
  5043. String typeName;
  5044. /* readonly */
  5045. int weakRefs;
  5046. /* readonly */
  5047. Window window;
  5048. };
  5049. class FileSystem
  5050. {
  5051. public:
  5052. // Methods:
  5053. bool Copy(const String&, const String&);
  5054. bool CreateDir(const String&);
  5055. bool Delete(const String&);
  5056. bool DirExists(const String&) const;
  5057. bool FileExists(const String&) const;
  5058. String GetAppPreferencesDir(const String&, const String&) const;
  5059. uint GetLastModifiedTime(const String&) const;
  5060. bool HasSubscribedToEvent(Object, const String&);
  5061. bool HasSubscribedToEvent(const String&);
  5062. bool Rename(const String&, const String&);
  5063. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  5064. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5065. bool SetLastModifiedTime(const String&, uint);
  5066. int SystemCommand(const String&, bool = false);
  5067. uint SystemCommandAsync(const String&);
  5068. bool SystemOpen(const String&, const String&);
  5069. int SystemRun(const String&, Array<String>);
  5070. uint SystemRunAsync(const String&, Array<String>);
  5071. // Properties:
  5072. /* readonly */
  5073. String category;
  5074. String currentDir;
  5075. bool executeConsoleCommands;
  5076. /* readonly */
  5077. String programDir;
  5078. /* readonly */
  5079. int refs;
  5080. /* readonly */
  5081. StringHash type;
  5082. /* readonly */
  5083. String typeName;
  5084. /* readonly */
  5085. String userDocumentsDir;
  5086. /* readonly */
  5087. int weakRefs;
  5088. };
  5089. class FocusParameters
  5090. {
  5091. public:
  5092. FocusParameters();
  5093. FocusParameters(const FocusParameters&in);
  5094. FocusParameters(bool, bool, bool, float, float);
  5095. // Properties:
  5096. bool autoSize;
  5097. bool focus;
  5098. float minView;
  5099. bool nonUniform;
  5100. float quantize;
  5101. };
  5102. class Font
  5103. {
  5104. public:
  5105. Font();
  5106. Font(const String&in);
  5107. // Methods:
  5108. IntVector2 GetTotalGlyphOffset(float) const;
  5109. bool HasSubscribedToEvent(Object, const String&);
  5110. bool HasSubscribedToEvent(const String&);
  5111. bool Load(File);
  5112. bool Load(VectorBuffer&);
  5113. bool Load(const String&);
  5114. bool Save(File) const;
  5115. bool Save(VectorBuffer&) const;
  5116. bool Save(const String&) const;
  5117. bool SaveXML(File, int, bool = false, const String& = "\t");
  5118. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  5119. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  5120. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5121. // Properties:
  5122. IntVector2 absoluteGlyphOffset;
  5123. /* readonly */
  5124. String category;
  5125. /* readonly */
  5126. FontType fontType;
  5127. /* readonly */
  5128. uint memoryUse;
  5129. String name;
  5130. /* readonly */
  5131. int refs;
  5132. Vector2 scaledGlyphOffset;
  5133. /* readonly */
  5134. StringHash type;
  5135. /* readonly */
  5136. String typeName;
  5137. /* readonly */
  5138. uint useTimer;
  5139. /* readonly */
  5140. int weakRefs;
  5141. };
  5142. class Frustum
  5143. {
  5144. public:
  5145. ~Frustum();
  5146. Frustum();
  5147. Frustum(const Frustum&in);
  5148. // Methods:
  5149. void Define(const BoundingBox&, const Matrix3x4&);
  5150. void Define(const Matrix4&);
  5151. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  5152. void Define(float, float, float, float, float, const Matrix3x4&);
  5153. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  5154. void DefineSplit(const Matrix4&, float, float);
  5155. float Distance(const Vector3&) const;
  5156. Intersection IsInside(const BoundingBox&);
  5157. Intersection IsInside(const Sphere&);
  5158. Intersection IsInside(const Vector3&);
  5159. Intersection IsInsideFast(const BoundingBox&) const;
  5160. Intersection IsInsideFast(const Sphere&) const;
  5161. void Transform(const Matrix3&);
  5162. void Transform(const Matrix3x4&);
  5163. Frustum Transformed(const Matrix3&) const;
  5164. Frustum Transformed(const Matrix3x4&) const;
  5165. // Properties:
  5166. /* readonly */
  5167. Array<Vector3> vertices;
  5168. };
  5169. class Geometry
  5170. {
  5171. public:
  5172. Geometry();
  5173. // Methods:
  5174. bool HasSubscribedToEvent(Object, const String&);
  5175. bool HasSubscribedToEvent(const String&);
  5176. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5177. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  5178. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  5179. void SetIndexBuffer(IndexBuffer);
  5180. bool SetVertexBuffer(uint, VertexBuffer);
  5181. // Properties:
  5182. /* readonly */
  5183. String category;
  5184. /* readonly */
  5185. bool empty;
  5186. IndexBuffer indexBuffer;
  5187. /* readonly */
  5188. uint indexCount;
  5189. /* readonly */
  5190. uint indexStart;
  5191. float lodDistance;
  5192. uint numVertexBuffers;
  5193. /* readonly */
  5194. PrimitiveType primitiveType;
  5195. /* readonly */
  5196. int refs;
  5197. /* readonly */
  5198. StringHash type;
  5199. /* readonly */
  5200. String typeName;
  5201. /* readonly */
  5202. Array<VertexBuffer> vertexBuffers;
  5203. /* readonly */
  5204. uint vertexCount;
  5205. /* readonly */
  5206. uint vertexStart;
  5207. /* readonly */
  5208. int weakRefs;
  5209. };
  5210. class Graphics
  5211. {
  5212. public:
  5213. // Methods:
  5214. void BeginDumpShaders(const String&);
  5215. void Close();
  5216. void EndDumpShaders();
  5217. bool HasSubscribedToEvent(Object, const String&);
  5218. bool HasSubscribedToEvent(const String&);
  5219. void Maximize();
  5220. void Minimize();
  5221. void PrecacheShaders(File);
  5222. void PrecacheShaders(VectorBuffer&);
  5223. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5224. bool SetMode(int, int);
  5225. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  5226. void SetWindowPosition(int, int);
  5227. bool TakeScreenShot(Image);
  5228. bool ToggleFullscreen();
  5229. // Properties:
  5230. /* readonly */
  5231. String apiName;
  5232. /* readonly */
  5233. bool borderless;
  5234. /* readonly */
  5235. String category;
  5236. /* readonly */
  5237. bool deferredSupport;
  5238. /* readonly */
  5239. Array<IntVector2> desktopResolution;
  5240. /* readonly */
  5241. bool deviceLost;
  5242. bool dither;
  5243. bool flushGPU;
  5244. /* readonly */
  5245. bool fullscreen;
  5246. /* readonly */
  5247. bool hardwareShadowSupport;
  5248. /* readonly */
  5249. int height;
  5250. /* readonly */
  5251. bool initialized;
  5252. /* readonly */
  5253. bool instancingSupport;
  5254. /* readonly */
  5255. bool lightPrepassSupport;
  5256. /* readonly */
  5257. int monitorCount;
  5258. /* readonly */
  5259. int multiSample;
  5260. /* readonly */
  5261. Array<int> multiSampleLevels;
  5262. /* readonly */
  5263. uint numBatches;
  5264. /* readonly */
  5265. uint numPrimitives;
  5266. String orientations;
  5267. /* readonly */
  5268. bool readableDepthSupport;
  5269. /* readonly */
  5270. int refs;
  5271. /* readonly */
  5272. bool resizable;
  5273. /* readonly */
  5274. Array<Array<IntVector3>> resolutions;
  5275. bool sRGB;
  5276. /* readonly */
  5277. bool sRGBSupport;
  5278. /* readonly */
  5279. bool sRGBWriteSupport;
  5280. String shaderCacheDir;
  5281. /* readonly */
  5282. IntVector2 size;
  5283. /* readonly */
  5284. bool tripleBuffer;
  5285. /* readonly */
  5286. StringHash type;
  5287. /* readonly */
  5288. String typeName;
  5289. /* readonly */
  5290. bool vsync;
  5291. /* readonly */
  5292. int weakRefs;
  5293. /* readonly */
  5294. int width;
  5295. /* writeonly */
  5296. Image windowIcon;
  5297. IntVector2 windowPosition;
  5298. String windowTitle;
  5299. };
  5300. class HttpRequest
  5301. {
  5302. public:
  5303. // Methods:
  5304. Array<uint8> Read(uint);
  5305. bool ReadBool();
  5306. BoundingBox ReadBoundingBox();
  5307. int8 ReadByte();
  5308. Color ReadColor();
  5309. double ReadDouble();
  5310. String ReadFileID();
  5311. float ReadFloat();
  5312. int ReadInt();
  5313. int64 ReadInt64();
  5314. IntRect ReadIntRect();
  5315. IntVector2 ReadIntVector2();
  5316. String ReadLine();
  5317. Matrix3 ReadMatrix3();
  5318. Matrix3x4 ReadMatrix3x4();
  5319. Matrix4 ReadMatrix4();
  5320. uint ReadNetID();
  5321. Quaternion ReadPackedQuaternion();
  5322. Vector3 ReadPackedVector3(float);
  5323. Quaternion ReadQuaternion();
  5324. int16 ReadShort();
  5325. String ReadString();
  5326. StringHash ReadStringHash();
  5327. uint8 ReadUByte();
  5328. uint ReadUInt();
  5329. uint64 ReadUInt64();
  5330. uint16 ReadUShort();
  5331. uint ReadVLE();
  5332. Variant ReadVariant();
  5333. VariantMap ReadVariantMap();
  5334. Vector2 ReadVector2();
  5335. Vector3 ReadVector3();
  5336. Vector4 ReadVector4();
  5337. VectorBuffer ReadVectorBuffer(uint);
  5338. uint Seek(uint);
  5339. uint SeekRelative(int);
  5340. uint Tell() const;
  5341. // Properties:
  5342. /* readonly */
  5343. uint availableSize;
  5344. /* readonly */
  5345. uint checksum;
  5346. /* readonly */
  5347. bool eof;
  5348. /* readonly */
  5349. String error;
  5350. /* readonly */
  5351. String name;
  5352. /* readonly */
  5353. bool open;
  5354. /* readonly */
  5355. uint position;
  5356. /* readonly */
  5357. int refs;
  5358. /* readonly */
  5359. uint size;
  5360. /* readonly */
  5361. HttpRequestState state;
  5362. /* readonly */
  5363. String url;
  5364. /* readonly */
  5365. String verb;
  5366. /* readonly */
  5367. int weakRefs;
  5368. };
  5369. class IKEffector
  5370. {
  5371. public:
  5372. // Methods:
  5373. void ApplyAttributes();
  5374. void DrawDebugGeometry(DebugRenderer, bool);
  5375. void DrawDebugGeometry(bool);
  5376. Variant GetAttribute(const String&) const;
  5377. ValueAnimation GetAttributeAnimation(const String&) const;
  5378. float GetAttributeAnimationSpeed(const String&) const;
  5379. float GetAttributeAnimationTime(const String&) const;
  5380. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5381. Variant GetAttributeDefault(const String&) const;
  5382. bool GetInterceptNetworkUpdate(const String&) const;
  5383. bool HasSubscribedToEvent(Object, const String&);
  5384. bool HasSubscribedToEvent(const String&);
  5385. bool Load(File, bool = false);
  5386. bool Load(VectorBuffer&, bool = false);
  5387. bool LoadJSON(const JSONValue&, bool = false);
  5388. bool LoadXML(const XMLElement&, bool = false);
  5389. void MarkNetworkUpdate() const;
  5390. void Remove();
  5391. void RemoveAttributeAnimation(const String&);
  5392. void RemoveInstanceDefault();
  5393. void RemoveObjectAnimation();
  5394. void ResetToDefault();
  5395. bool Save(File) const;
  5396. bool Save(VectorBuffer&) const;
  5397. bool SaveJSON(JSONValue&) const;
  5398. bool SaveXML(XMLElement&) const;
  5399. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5400. void SetAnimationTime(float);
  5401. bool SetAttribute(const String&, const Variant&);
  5402. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5403. void SetAttributeAnimationSpeed(const String&, float);
  5404. void SetAttributeAnimationTime(const String&, float);
  5405. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5406. void SetInterceptNetworkUpdate(const String&, bool);
  5407. // Properties:
  5408. bool animationEnabled;
  5409. /* readonly */
  5410. Array<Variant> attributeDefaults;
  5411. /* readonly */
  5412. Array<AttributeInfo> attributeInfos;
  5413. Array<Variant> attributes;
  5414. /* readonly */
  5415. String category;
  5416. uint chainLength;
  5417. bool enabled;
  5418. /* readonly */
  5419. bool enabledEffective;
  5420. /* readonly */
  5421. uint id;
  5422. /* readonly */
  5423. Node node;
  5424. /* readonly */
  5425. uint numAttributes;
  5426. ObjectAnimation objectAnimation;
  5427. /* readonly */
  5428. int refs;
  5429. float rotationDecay;
  5430. float rotationWeight;
  5431. String targetName;
  5432. Node targetNode;
  5433. Vector3 targetPosition;
  5434. Quaternion targetRotation;
  5435. bool temporary;
  5436. /* readonly */
  5437. StringHash type;
  5438. /* readonly */
  5439. String typeName;
  5440. /* readonly */
  5441. int weakRefs;
  5442. float weight;
  5443. };
  5444. class IKSolver
  5445. {
  5446. public:
  5447. // Methods:
  5448. void ApplyActivePoseToScene();
  5449. void ApplyAttributes();
  5450. void ApplyOriginalPoseToActivePose();
  5451. void ApplyOriginalPoseToScene();
  5452. void ApplySceneToActivePose();
  5453. void ApplySceneToInitialPose();
  5454. void CalculateJointRotations();
  5455. void DrawDebugGeometry(DebugRenderer, bool);
  5456. void DrawDebugGeometry(bool);
  5457. Variant GetAttribute(const String&) const;
  5458. ValueAnimation GetAttributeAnimation(const String&) const;
  5459. float GetAttributeAnimationSpeed(const String&) const;
  5460. float GetAttributeAnimationTime(const String&) const;
  5461. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5462. Variant GetAttributeDefault(const String&) const;
  5463. bool GetInterceptNetworkUpdate(const String&) const;
  5464. bool HasSubscribedToEvent(Object, const String&);
  5465. bool HasSubscribedToEvent(const String&);
  5466. bool Load(File, bool = false);
  5467. bool Load(VectorBuffer&, bool = false);
  5468. bool LoadJSON(const JSONValue&, bool = false);
  5469. bool LoadXML(const XMLElement&, bool = false);
  5470. void MarkNetworkUpdate() const;
  5471. void RebuildChainTrees();
  5472. void RecalculateSegmentLengths();
  5473. void Remove();
  5474. void RemoveAttributeAnimation(const String&);
  5475. void RemoveInstanceDefault();
  5476. void RemoveObjectAnimation();
  5477. void ResetToDefault();
  5478. bool Save(File) const;
  5479. bool Save(VectorBuffer&) const;
  5480. bool SaveJSON(JSONValue&) const;
  5481. bool SaveXML(XMLElement&) const;
  5482. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5483. void SetAnimationTime(float);
  5484. bool SetAttribute(const String&, const Variant&);
  5485. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5486. void SetAttributeAnimationSpeed(const String&, float);
  5487. void SetAttributeAnimationTime(const String&, float);
  5488. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5489. void SetInterceptNetworkUpdate(const String&, bool);
  5490. void Solve();
  5491. // Properties:
  5492. bool AUTO_SOLVE;
  5493. bool CONSTRAINTS;
  5494. bool JOINT_ROTATIONS;
  5495. bool TARGET_ROTATIONS;
  5496. bool UPDATE_ACTIVE_POSE;
  5497. bool UPDATE_ORIGINAL_POSE;
  5498. bool USE_ORIGINAL_POSE;
  5499. IKAlgorithm algorithm;
  5500. bool animationEnabled;
  5501. /* readonly */
  5502. Array<Variant> attributeDefaults;
  5503. /* readonly */
  5504. Array<AttributeInfo> attributeInfos;
  5505. Array<Variant> attributes;
  5506. /* readonly */
  5507. String category;
  5508. bool enabled;
  5509. /* readonly */
  5510. bool enabledEffective;
  5511. /* readonly */
  5512. uint id;
  5513. uint maximumIterations;
  5514. /* readonly */
  5515. Node node;
  5516. /* readonly */
  5517. uint numAttributes;
  5518. ObjectAnimation objectAnimation;
  5519. /* readonly */
  5520. int refs;
  5521. bool temporary;
  5522. float tolerance;
  5523. /* readonly */
  5524. StringHash type;
  5525. /* readonly */
  5526. String typeName;
  5527. /* readonly */
  5528. int weakRefs;
  5529. };
  5530. class Image
  5531. {
  5532. public:
  5533. Image();
  5534. Image(const String&in);
  5535. // Methods:
  5536. void Clear(const Color&);
  5537. void ClearInt(uint);
  5538. bool FlipHorizontal();
  5539. bool FlipVertical();
  5540. Color GetPixel(int, int) const;
  5541. Color GetPixel(int, int, int) const;
  5542. Color GetPixelBilinear(float, float) const;
  5543. uint GetPixelInt(int, int) const;
  5544. uint GetPixelInt(int, int, int) const;
  5545. Color GetPixelTrilinear(float, float, float) const;
  5546. Image GetSubimage(const IntRect&) const;
  5547. bool HasSubscribedToEvent(Object, const String&);
  5548. bool HasSubscribedToEvent(const String&);
  5549. bool Load(File);
  5550. bool Load(VectorBuffer&);
  5551. bool Load(const String&);
  5552. bool LoadColorLUT(File);
  5553. bool LoadColorLUT(VectorBuffer&);
  5554. bool Resize(int, int);
  5555. bool Save(File) const;
  5556. bool Save(VectorBuffer&) const;
  5557. bool Save(const String&) const;
  5558. bool SaveBMP(const String&) const;
  5559. bool SaveDDS(const String&) const;
  5560. bool SaveJPG(const String&, int) const;
  5561. bool SavePNG(const String&) const;
  5562. bool SaveTGA(const String&) const;
  5563. bool SaveWEBP(const String&, float = 0.0f) const;
  5564. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5565. void SetPixel(int, int, const Color&);
  5566. void SetPixel(int, int, int, const Color&);
  5567. void SetPixelInt(int, int, int, uint);
  5568. void SetPixelInt(int, int, uint);
  5569. bool SetSize(int, int, int, uint);
  5570. bool SetSize(int, int, uint);
  5571. // Properties:
  5572. /* readonly */
  5573. bool array;
  5574. /* readonly */
  5575. String category;
  5576. /* readonly */
  5577. uint components;
  5578. /* readonly */
  5579. bool compressed;
  5580. /* readonly */
  5581. CompressedFormat compressedFormat;
  5582. /* readonly */
  5583. bool cubemap;
  5584. /* readonly */
  5585. int depth;
  5586. /* readonly */
  5587. int height;
  5588. /* readonly */
  5589. uint memoryUse;
  5590. String name;
  5591. /* readonly */
  5592. uint numCompressedLevels;
  5593. /* readonly */
  5594. int refs;
  5595. /* readonly */
  5596. bool sRGB;
  5597. /* readonly */
  5598. StringHash type;
  5599. /* readonly */
  5600. String typeName;
  5601. /* readonly */
  5602. uint useTimer;
  5603. /* readonly */
  5604. int weakRefs;
  5605. /* readonly */
  5606. int width;
  5607. };
  5608. class IndexBuffer
  5609. {
  5610. public:
  5611. IndexBuffer();
  5612. // Methods:
  5613. VectorBuffer GetData();
  5614. bool HasSubscribedToEvent(Object, const String&);
  5615. bool HasSubscribedToEvent(const String&);
  5616. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5617. bool SetData(VectorBuffer&);
  5618. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5619. void SetSize(uint, bool, bool = false);
  5620. // Properties:
  5621. /* readonly */
  5622. String category;
  5623. /* readonly */
  5624. bool dynamic;
  5625. /* readonly */
  5626. uint indexCount;
  5627. /* readonly */
  5628. uint indexSize;
  5629. /* readonly */
  5630. int refs;
  5631. bool shadowed;
  5632. /* readonly */
  5633. StringHash type;
  5634. /* readonly */
  5635. String typeName;
  5636. /* readonly */
  5637. int weakRefs;
  5638. };
  5639. class Input
  5640. {
  5641. public:
  5642. // Methods:
  5643. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5644. void CenterMousePosition();
  5645. int GetKeyFromName(const String&) const;
  5646. int GetKeyFromScancode(int) const;
  5647. String GetKeyName(int) const;
  5648. int GetScancodeFromKey(int) const;
  5649. int GetScancodeFromName(const String&) const;
  5650. String GetScancodeName(int) const;
  5651. bool HasSubscribedToEvent(Object, const String&);
  5652. bool HasSubscribedToEvent(const String&);
  5653. uint LoadGestures(File);
  5654. uint LoadGestures(VectorBuffer&);
  5655. bool RecordGesture();
  5656. void RemoveAllGestures();
  5657. bool RemoveGesture(uint);
  5658. bool RemoveScreenJoystick(int);
  5659. void ResetMouseGrabbed();
  5660. void ResetMouseMode();
  5661. void ResetMouseVisible();
  5662. bool SaveGesture(File, uint);
  5663. bool SaveGesture(VectorBuffer&, uint);
  5664. bool SaveGestures(File);
  5665. bool SaveGestures(VectorBuffer&);
  5666. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5667. void SetMouseGrabbed(bool, bool = false);
  5668. void SetMouseMode(MouseMode, bool = false);
  5669. void SetMouseVisible(bool, bool = false);
  5670. // Properties:
  5671. /* readonly */
  5672. String category;
  5673. /* readonly */
  5674. bool focus;
  5675. /* readonly */
  5676. Vector2 inputScale;
  5677. /* readonly */
  5678. Array<JoystickState> joysticks;
  5679. /* readonly */
  5680. Array<JoystickState> joysticksByIndex;
  5681. /* readonly */
  5682. Array<JoystickState> joysticksByName;
  5683. /* readonly */
  5684. Array<bool> keyDown;
  5685. /* readonly */
  5686. Array<bool> keyPress;
  5687. /* readonly */
  5688. bool minimized;
  5689. /* readonly */
  5690. Array<bool> mouseButtonDown;
  5691. /* readonly */
  5692. Array<bool> mouseButtonPress;
  5693. bool mouseGrabbed;
  5694. /* readonly */
  5695. bool mouseLocked;
  5696. MouseMode mouseMode;
  5697. /* readonly */
  5698. IntVector2 mouseMove;
  5699. /* readonly */
  5700. int mouseMoveWheel;
  5701. /* readonly */
  5702. int mouseMoveX;
  5703. /* readonly */
  5704. int mouseMoveY;
  5705. IntVector2 mousePosition;
  5706. bool mouseVisible;
  5707. /* readonly */
  5708. uint numJoysticks;
  5709. /* readonly */
  5710. uint numTouches;
  5711. /* readonly */
  5712. Array<bool> qualifierDown;
  5713. /* readonly */
  5714. Array<bool> qualifierPress;
  5715. /* readonly */
  5716. int qualifiers;
  5717. /* readonly */
  5718. int refs;
  5719. /* readonly */
  5720. Array<bool> scancodeDown;
  5721. /* readonly */
  5722. Array<bool> scancodePress;
  5723. Array<bool> screenJoystickVisible;
  5724. /* readonly */
  5725. bool screenKeyboardSupport;
  5726. bool screenKeyboardVisible;
  5727. bool toggleFullscreen;
  5728. bool touchEmulation;
  5729. /* readonly */
  5730. Array<TouchState> touches;
  5731. /* readonly */
  5732. StringHash type;
  5733. /* readonly */
  5734. String typeName;
  5735. /* readonly */
  5736. int weakRefs;
  5737. };
  5738. class IntRect
  5739. {
  5740. public:
  5741. IntRect();
  5742. IntRect(const IntRect&in);
  5743. IntRect(int, int, int, int);
  5744. IntRect(const IntVector2&in, const IntVector2&in);
  5745. IntRect(int[]&inout);
  5746. // Methods:
  5747. int Clip(const IntRect&);
  5748. Intersection IsInside(const IntVector2&) const;
  5749. int Merge(const IntRect&);
  5750. // Properties:
  5751. int bottom;
  5752. /* readonly */
  5753. Array<int> data;
  5754. /* readonly */
  5755. int height;
  5756. int left;
  5757. int right;
  5758. /* readonly */
  5759. IntVector2 size;
  5760. int top;
  5761. /* readonly */
  5762. int width;
  5763. };
  5764. class IntVector2
  5765. {
  5766. public:
  5767. IntVector2();
  5768. IntVector2(const IntVector2&in);
  5769. IntVector2(int, int);
  5770. IntVector2(int[]&inout);
  5771. // Methods:
  5772. float Length() const;
  5773. uint ToHash() const;
  5774. String ToString() const;
  5775. // Properties:
  5776. /* readonly */
  5777. Array<int> data;
  5778. int x;
  5779. int y;
  5780. // Constants:
  5781. static const IntVector2 DOWN;
  5782. static const IntVector2 LEFT;
  5783. static const IntVector2 ONE;
  5784. static const IntVector2 RIGHT;
  5785. static const IntVector2 UP;
  5786. static const IntVector2 ZERO;
  5787. };
  5788. class IntVector3
  5789. {
  5790. public:
  5791. IntVector3();
  5792. IntVector3(const IntVector3&in);
  5793. IntVector3(int, int, int);
  5794. IntVector3(int[]&inout);
  5795. // Methods:
  5796. float Length() const;
  5797. uint ToHash() const;
  5798. String ToString() const;
  5799. // Properties:
  5800. /* readonly */
  5801. Array<int> data;
  5802. int x;
  5803. int y;
  5804. int z;
  5805. // Constants:
  5806. static const IntVector3 BACK;
  5807. static const IntVector3 DOWN;
  5808. static const IntVector3 FORWARD;
  5809. static const IntVector3 LEFT;
  5810. static const IntVector3 ONE;
  5811. static const IntVector3 RIGHT;
  5812. static const IntVector3 UP;
  5813. static const IntVector3 ZERO;
  5814. };
  5815. class JSONFile
  5816. {
  5817. public:
  5818. JSONFile();
  5819. JSONFile(const String&in);
  5820. // Methods:
  5821. bool FromString(const String&);
  5822. JSONValue& GetRoot();
  5823. bool HasSubscribedToEvent(Object, const String&);
  5824. bool HasSubscribedToEvent(const String&);
  5825. bool Load(File);
  5826. bool Load(VectorBuffer&);
  5827. bool Load(const String&);
  5828. bool Save(File) const;
  5829. bool Save(File, const String&) const;
  5830. bool Save(VectorBuffer&) const;
  5831. bool Save(const String&) const;
  5832. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5833. // Properties:
  5834. /* readonly */
  5835. String category;
  5836. /* readonly */
  5837. uint memoryUse;
  5838. String name;
  5839. /* readonly */
  5840. int refs;
  5841. /* readonly */
  5842. JSONValue root;
  5843. /* readonly */
  5844. StringHash type;
  5845. /* readonly */
  5846. String typeName;
  5847. /* readonly */
  5848. uint useTimer;
  5849. /* readonly */
  5850. int weakRefs;
  5851. };
  5852. class JSONValue
  5853. {
  5854. public:
  5855. ~JSONValue();
  5856. JSONValue();
  5857. JSONValue(bool);
  5858. JSONValue(int);
  5859. JSONValue(uint);
  5860. JSONValue(float);
  5861. JSONValue(double);
  5862. JSONValue(const String&in);
  5863. JSONValue(const JSONValue&in);
  5864. // Methods:
  5865. void Clear();
  5866. bool Contains(const String&) const;
  5867. void Erase(const String&);
  5868. void Erase(uint, uint = 1);
  5869. bool GetBool() const;
  5870. double GetDouble() const;
  5871. float GetFloat() const;
  5872. int GetInt() const;
  5873. uint GetUInt() const;
  5874. Variant GetVariant() const;
  5875. VariantMap GetVariantMap() const;
  5876. void Insert(uint, const JSONValue&);
  5877. const JSONValue& Get(const String&) const;
  5878. void Pop();
  5879. void Push(const JSONValue&);
  5880. void Resize(uint);
  5881. void Set(const String&, const JSONValue&);
  5882. void SetVariant(const Variant&);
  5883. void SetVariantMap(const VariantMap&);
  5884. const String& GetString() const;
  5885. // Properties:
  5886. /* readonly */
  5887. bool isArray;
  5888. /* readonly */
  5889. bool isBool;
  5890. /* readonly */
  5891. bool isNull;
  5892. /* readonly */
  5893. bool isNumber;
  5894. /* readonly */
  5895. bool isObject;
  5896. /* readonly */
  5897. bool isString;
  5898. /* readonly */
  5899. Array<String> keys;
  5900. /* readonly */
  5901. JSONNumberType numberType;
  5902. /* readonly */
  5903. String numberTypeName;
  5904. /* readonly */
  5905. uint size;
  5906. /* readonly */
  5907. JSONValueType valueType;
  5908. /* readonly */
  5909. String valueTypeName;
  5910. /* readonly */
  5911. Array<JSONValue> values;
  5912. };
  5913. class JoystickState
  5914. {
  5915. public:
  5916. // Properties:
  5917. /* readonly */
  5918. Array<float> axisPosition;
  5919. /* readonly */
  5920. Array<bool> buttonDown;
  5921. /* readonly */
  5922. Array<bool> buttonPress;
  5923. /* readonly */
  5924. bool controller;
  5925. /* readonly */
  5926. Array<int> hatPosition;
  5927. int joystickID;
  5928. String name;
  5929. /* readonly */
  5930. uint numAxes;
  5931. /* readonly */
  5932. uint numButtons;
  5933. /* readonly */
  5934. uint numHats;
  5935. };
  5936. class Light
  5937. {
  5938. public:
  5939. // Methods:
  5940. void ApplyAttributes();
  5941. void DrawDebugGeometry(DebugRenderer, bool);
  5942. Variant GetAttribute(const String&) const;
  5943. ValueAnimation GetAttributeAnimation(const String&) const;
  5944. float GetAttributeAnimationSpeed(const String&) const;
  5945. float GetAttributeAnimationTime(const String&) const;
  5946. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5947. Variant GetAttributeDefault(const String&) const;
  5948. bool GetInterceptNetworkUpdate(const String&) const;
  5949. bool HasSubscribedToEvent(Object, const String&);
  5950. bool HasSubscribedToEvent(const String&);
  5951. bool IsInView(Camera) const;
  5952. bool Load(File, bool = false);
  5953. bool Load(VectorBuffer&, bool = false);
  5954. bool LoadJSON(const JSONValue&, bool = false);
  5955. bool LoadXML(const XMLElement&, bool = false);
  5956. void MarkNetworkUpdate() const;
  5957. void Remove();
  5958. void RemoveAttributeAnimation(const String&);
  5959. void RemoveInstanceDefault();
  5960. void RemoveObjectAnimation();
  5961. void ResetToDefault();
  5962. bool Save(File) const;
  5963. bool Save(VectorBuffer&) const;
  5964. bool SaveJSON(JSONValue&) const;
  5965. bool SaveXML(XMLElement&) const;
  5966. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5967. void SetAnimationTime(float);
  5968. bool SetAttribute(const String&, const Variant&);
  5969. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5970. void SetAttributeAnimationSpeed(const String&, float);
  5971. void SetAttributeAnimationTime(const String&, float);
  5972. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5973. void SetInterceptNetworkUpdate(const String&, bool);
  5974. // Properties:
  5975. bool animationEnabled;
  5976. float aspectRatio;
  5977. /* readonly */
  5978. Array<Variant> attributeDefaults;
  5979. /* readonly */
  5980. Array<AttributeInfo> attributeInfos;
  5981. Array<Variant> attributes;
  5982. /* readonly */
  5983. BoundingBox boundingBox;
  5984. float brightness;
  5985. bool castShadows;
  5986. /* readonly */
  5987. String category;
  5988. Color color;
  5989. /* readonly */
  5990. Color colorFromTemperature;
  5991. float drawDistance;
  5992. /* readonly */
  5993. Color effectiveColor;
  5994. /* readonly */
  5995. float effectiveSpecularIntensity;
  5996. bool enabled;
  5997. /* readonly */
  5998. bool enabledEffective;
  5999. float fadeDistance;
  6000. float fov;
  6001. /* readonly */
  6002. Frustum frustum;
  6003. /* readonly */
  6004. uint id;
  6005. /* readonly */
  6006. bool inView;
  6007. float length;
  6008. uint lightMask;
  6009. LightType lightType;
  6010. float lodBias;
  6011. uint maxLights;
  6012. /* readonly */
  6013. bool negative;
  6014. /* readonly */
  6015. Node node;
  6016. /* readonly */
  6017. uint numAttributes;
  6018. /* readonly */
  6019. int numShadowSplits;
  6020. ObjectAnimation objectAnimation;
  6021. bool occludee;
  6022. bool occluder;
  6023. bool perVertex;
  6024. float radius;
  6025. Texture rampTexture;
  6026. float range;
  6027. /* readonly */
  6028. int refs;
  6029. BiasParameters shadowBias;
  6030. CascadeParameters shadowCascade;
  6031. float shadowDistance;
  6032. float shadowFadeDistance;
  6033. FocusParameters shadowFocus;
  6034. float shadowIntensity;
  6035. uint shadowMask;
  6036. float shadowMaxExtrusion;
  6037. float shadowNearFarRatio;
  6038. float shadowResolution;
  6039. Texture shapeTexture;
  6040. float specularIntensity;
  6041. float temperature;
  6042. bool temporary;
  6043. /* readonly */
  6044. StringHash type;
  6045. /* readonly */
  6046. String typeName;
  6047. bool usePhysicalValues;
  6048. uint viewMask;
  6049. /* readonly */
  6050. int weakRefs;
  6051. /* readonly */
  6052. BoundingBox worldBoundingBox;
  6053. uint zoneMask;
  6054. };
  6055. class LineEdit
  6056. {
  6057. public:
  6058. LineEdit();
  6059. LineEdit(const String&in);
  6060. // Methods:
  6061. void AddChild(UIElement);
  6062. void AddTag(const String&);
  6063. void AddTags(const String&, int8 = ';');
  6064. void ApplyAttributes();
  6065. void BringToFront();
  6066. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6067. void DisableLayoutUpdate();
  6068. IntVector2 ElementToScreen(const IntVector2&);
  6069. void EnableLayoutUpdate();
  6070. uint FindChild(UIElement) const;
  6071. Variant GetAttribute(const String&) const;
  6072. ValueAnimation GetAttributeAnimation(const String&) const;
  6073. float GetAttributeAnimationSpeed(const String&) const;
  6074. float GetAttributeAnimationTime(const String&) const;
  6075. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6076. Variant GetAttributeDefault(const String&) const;
  6077. UIElement GetChild(const String&, bool = false) const;
  6078. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6079. Array<UIElement> GetChildren(bool = false) const;
  6080. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6081. UIElement GetElementEventSender() const;
  6082. bool GetInterceptNetworkUpdate(const String&) const;
  6083. uint GetNumChildren(bool) const;
  6084. bool HasSubscribedToEvent(Object, const String&);
  6085. bool HasSubscribedToEvent(const String&);
  6086. bool HasTag(const String&) const;
  6087. void InsertChild(uint, UIElement);
  6088. bool IsInside(IntVector2, bool);
  6089. bool IsInsideCombined(IntVector2, bool);
  6090. bool Load(File, bool = false);
  6091. bool Load(VectorBuffer&, bool = false);
  6092. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6093. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6094. bool LoadJSON(const JSONValue&, bool = false);
  6095. bool LoadXML(File);
  6096. bool LoadXML(VectorBuffer&);
  6097. bool LoadXML(XMLFile, XMLFile);
  6098. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6099. bool LoadXML(const XMLElement&, bool = false);
  6100. void MarkNetworkUpdate() const;
  6101. void Remove();
  6102. void RemoveAllChildren();
  6103. void RemoveAllTags();
  6104. void RemoveAttributeAnimation(const String&);
  6105. void RemoveChild(UIElement, uint = 0);
  6106. void RemoveChild(uint);
  6107. void RemoveInstanceDefault();
  6108. void RemoveObjectAnimation();
  6109. bool RemoveTag(const String&);
  6110. void ResetDeepEnabled();
  6111. void ResetToDefault();
  6112. bool Save(File) const;
  6113. bool Save(VectorBuffer&) const;
  6114. bool SaveJSON(JSONValue&) const;
  6115. bool SaveXML(File, const String& = "\t");
  6116. bool SaveXML(VectorBuffer&, const String& = "\t");
  6117. bool SaveXML(XMLElement&) const;
  6118. IntVector2 ScreenToElement(const IntVector2&);
  6119. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6120. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6121. void SetAnimationTime(float);
  6122. bool SetAttribute(const String&, const Variant&);
  6123. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6124. void SetAttributeAnimationSpeed(const String&, float);
  6125. void SetAttributeAnimationTime(const String&, float);
  6126. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6127. void SetDeepEnabled(bool);
  6128. void SetEnabledRecursive(bool);
  6129. void SetFixedHeight(int);
  6130. void SetFixedSize(int, int);
  6131. void SetFixedWidth(int);
  6132. void SetFullImageRect();
  6133. void SetHoverOffset(int, int);
  6134. void SetInterceptNetworkUpdate(const String&, bool);
  6135. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6136. void SetMaxAnchor(float, float);
  6137. void SetMaxSize(int, int);
  6138. void SetMinAnchor(float, float);
  6139. void SetMinSize(int, int);
  6140. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6141. void SetPivot(float, float);
  6142. void SetPosition(int, int);
  6143. void SetSize(int, int);
  6144. bool SetStyle(const String&, XMLFile = null);
  6145. bool SetStyle(const XMLElement&);
  6146. bool SetStyleAuto(XMLFile = null);
  6147. void UpdateLayout();
  6148. const Variant& GetVar(const StringHash&);
  6149. // Properties:
  6150. bool animationEnabled;
  6151. /* readonly */
  6152. Array<Variant> attributeDefaults;
  6153. /* readonly */
  6154. Array<AttributeInfo> attributeInfos;
  6155. Array<Variant> attributes;
  6156. BlendMode blendMode;
  6157. IntRect border;
  6158. bool bringToBack;
  6159. bool bringToFront;
  6160. /* readonly */
  6161. String category;
  6162. /* readonly */
  6163. IntVector2 childOffset;
  6164. /* readonly */
  6165. Array<UIElement> children;
  6166. IntRect clipBorder;
  6167. bool clipChildren;
  6168. /* writeonly */
  6169. Color color;
  6170. /* readonly */
  6171. bool colorGradient;
  6172. Array<Color> colors;
  6173. /* readonly */
  6174. IntRect combinedScreenRect;
  6175. /* readonly */
  6176. BorderImage cursor;
  6177. float cursorBlinkRate;
  6178. bool cursorMovable;
  6179. uint cursorPosition;
  6180. XMLFile defaultStyle;
  6181. /* readonly */
  6182. float derivedOpacity;
  6183. /* readonly */
  6184. uint dragButtonCombo;
  6185. /* readonly */
  6186. int dragButtonCount;
  6187. uint dragDropMode;
  6188. uint echoCharacter;
  6189. bool editable;
  6190. bool elementEventSender;
  6191. bool enableAnchor;
  6192. bool enabled;
  6193. /* readonly */
  6194. bool enabledSelf;
  6195. /* readonly */
  6196. bool fixedHeight;
  6197. /* readonly */
  6198. bool fixedSize;
  6199. /* readonly */
  6200. bool fixedWidth;
  6201. bool focus;
  6202. FocusMode focusMode;
  6203. int height;
  6204. HorizontalAlignment horizontalAlignment;
  6205. IntVector2 hoverOffset;
  6206. /* readonly */
  6207. bool hovering;
  6208. IntRect imageBorder;
  6209. IntRect imageRect;
  6210. int indent;
  6211. int indentSpacing;
  6212. /* readonly */
  6213. int indentWidth;
  6214. bool internal;
  6215. IntRect layoutBorder;
  6216. Vector2 layoutFlexScale;
  6217. LayoutMode layoutMode;
  6218. int layoutSpacing;
  6219. Vector2 maxAnchor;
  6220. int maxHeight;
  6221. uint maxLength;
  6222. IntVector2 maxOffset;
  6223. IntVector2 maxSize;
  6224. int maxWidth;
  6225. Vector2 minAnchor;
  6226. int minHeight;
  6227. IntVector2 minOffset;
  6228. IntVector2 minSize;
  6229. int minWidth;
  6230. String name;
  6231. /* readonly */
  6232. uint numAllChildren;
  6233. /* readonly */
  6234. uint numAttributes;
  6235. /* readonly */
  6236. uint numChildren;
  6237. ObjectAnimation objectAnimation;
  6238. float opacity;
  6239. UIElement parent;
  6240. Vector2 pivot;
  6241. IntVector2 position;
  6242. int priority;
  6243. /* readonly */
  6244. int refs;
  6245. /* readonly */
  6246. UIElement root;
  6247. /* readonly */
  6248. IntVector2 screenPosition;
  6249. bool selected;
  6250. IntVector2 size;
  6251. bool sortChildren;
  6252. String style;
  6253. /* readonly */
  6254. Array<String> tags;
  6255. bool temporary;
  6256. String text;
  6257. bool textCopyable;
  6258. /* readonly */
  6259. Text textElement;
  6260. bool textSelectable;
  6261. Texture texture;
  6262. bool tiled;
  6263. TraversalMode traversalMode;
  6264. /* readonly */
  6265. StringHash type;
  6266. /* readonly */
  6267. String typeName;
  6268. bool useDerivedOpacity;
  6269. /* readonly */
  6270. VariantMap vars;
  6271. VerticalAlignment verticalAlignment;
  6272. bool visible;
  6273. /* readonly */
  6274. bool visibleEffective;
  6275. /* readonly */
  6276. int weakRefs;
  6277. int width;
  6278. };
  6279. class ListView
  6280. {
  6281. public:
  6282. ListView();
  6283. ListView(const String&in);
  6284. // Methods:
  6285. void AddChild(UIElement);
  6286. void AddItem(UIElement);
  6287. void AddSelection(uint);
  6288. void AddTag(const String&);
  6289. void AddTags(const String&, int8 = ';');
  6290. void ApplyAttributes();
  6291. void BringToFront();
  6292. void ChangeSelection(int, bool);
  6293. void ClearSelection();
  6294. void CopySelectedItemsToClipboard();
  6295. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6296. void DisableInternalLayoutUpdate();
  6297. void DisableLayoutUpdate();
  6298. IntVector2 ElementToScreen(const IntVector2&);
  6299. void EnableInternalLayoutUpdate();
  6300. void EnableLayoutUpdate();
  6301. void Expand(uint, bool, bool = false);
  6302. uint FindChild(UIElement) const;
  6303. uint FindItem(UIElement);
  6304. Variant GetAttribute(const String&) const;
  6305. ValueAnimation GetAttributeAnimation(const String&) const;
  6306. float GetAttributeAnimationSpeed(const String&) const;
  6307. float GetAttributeAnimationTime(const String&) const;
  6308. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6309. Variant GetAttributeDefault(const String&) const;
  6310. UIElement GetChild(const String&, bool = false) const;
  6311. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6312. Array<UIElement> GetChildren(bool = false) const;
  6313. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6314. UIElement GetElementEventSender() const;
  6315. bool GetInterceptNetworkUpdate(const String&) const;
  6316. Array<UIElement> GetItems() const;
  6317. uint GetNumChildren(bool) const;
  6318. bool HasSubscribedToEvent(Object, const String&);
  6319. bool HasSubscribedToEvent(const String&);
  6320. bool HasTag(const String&) const;
  6321. void InsertChild(uint, UIElement);
  6322. void InsertItem(uint, UIElement, UIElement = null);
  6323. bool IsExpanded(uint) const;
  6324. bool IsInside(IntVector2, bool);
  6325. bool IsInsideCombined(IntVector2, bool);
  6326. bool IsSelected(uint) const;
  6327. bool Load(File, bool = false);
  6328. bool Load(VectorBuffer&, bool = false);
  6329. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6330. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6331. bool LoadJSON(const JSONValue&, bool = false);
  6332. bool LoadXML(File);
  6333. bool LoadXML(VectorBuffer&);
  6334. bool LoadXML(XMLFile, XMLFile);
  6335. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6336. bool LoadXML(const XMLElement&, bool = false);
  6337. void MarkNetworkUpdate() const;
  6338. void Remove();
  6339. void RemoveAllChildren();
  6340. void RemoveAllItems();
  6341. void RemoveAllTags();
  6342. void RemoveAttributeAnimation(const String&);
  6343. void RemoveChild(UIElement, uint = 0);
  6344. void RemoveChild(uint);
  6345. void RemoveInstanceDefault();
  6346. void RemoveItem(UIElement, uint = 0);
  6347. void RemoveItem(uint);
  6348. void RemoveObjectAnimation();
  6349. void RemoveSelection(uint);
  6350. bool RemoveTag(const String&);
  6351. void ResetDeepEnabled();
  6352. void ResetToDefault();
  6353. bool Save(File) const;
  6354. bool Save(VectorBuffer&) const;
  6355. bool SaveJSON(JSONValue&) const;
  6356. bool SaveXML(File, const String& = "\t");
  6357. bool SaveXML(VectorBuffer&, const String& = "\t");
  6358. bool SaveXML(XMLElement&) const;
  6359. IntVector2 ScreenToElement(const IntVector2&);
  6360. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6361. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6362. void SetAnimationTime(float);
  6363. bool SetAttribute(const String&, const Variant&);
  6364. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6365. void SetAttributeAnimationSpeed(const String&, float);
  6366. void SetAttributeAnimationTime(const String&, float);
  6367. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6368. void SetDeepEnabled(bool);
  6369. void SetEnabledRecursive(bool);
  6370. void SetFixedHeight(int);
  6371. void SetFixedSize(int, int);
  6372. void SetFixedWidth(int);
  6373. void SetInterceptNetworkUpdate(const String&, bool);
  6374. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6375. void SetMaxAnchor(float, float);
  6376. void SetMaxSize(int, int);
  6377. void SetMinAnchor(float, float);
  6378. void SetMinSize(int, int);
  6379. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6380. void SetPivot(float, float);
  6381. void SetPosition(int, int);
  6382. void SetScrollBarsVisible(bool, bool);
  6383. void SetSelections(Array<uint>);
  6384. void SetSize(int, int);
  6385. bool SetStyle(const String&, XMLFile = null);
  6386. bool SetStyle(const XMLElement&);
  6387. bool SetStyleAuto(XMLFile = null);
  6388. void SetViewPosition(int, int);
  6389. void ToggleExpand(uint, bool = false);
  6390. void ToggleSelection(uint);
  6391. void UpdateInternalLayout();
  6392. void UpdateLayout();
  6393. const Variant& GetVar(const StringHash&);
  6394. // Properties:
  6395. bool animationEnabled;
  6396. /* readonly */
  6397. Array<Variant> attributeDefaults;
  6398. /* readonly */
  6399. Array<AttributeInfo> attributeInfos;
  6400. Array<Variant> attributes;
  6401. bool autoDisableChildren;
  6402. float autoDisableThreshold;
  6403. int baseIndent;
  6404. bool bringToBack;
  6405. bool bringToFront;
  6406. /* readonly */
  6407. String category;
  6408. /* readonly */
  6409. IntVector2 childOffset;
  6410. /* readonly */
  6411. Array<UIElement> children;
  6412. bool clearSelectionOnDefocus;
  6413. IntRect clipBorder;
  6414. bool clipChildren;
  6415. /* writeonly */
  6416. Color color;
  6417. /* readonly */
  6418. bool colorGradient;
  6419. Array<Color> colors;
  6420. /* readonly */
  6421. IntRect combinedScreenRect;
  6422. /* readonly */
  6423. UIElement contentElement;
  6424. XMLFile defaultStyle;
  6425. /* readonly */
  6426. float derivedOpacity;
  6427. /* readonly */
  6428. uint dragButtonCombo;
  6429. /* readonly */
  6430. int dragButtonCount;
  6431. uint dragDropMode;
  6432. bool editable;
  6433. bool elementEventSender;
  6434. bool enableAnchor;
  6435. bool enabled;
  6436. /* readonly */
  6437. bool enabledSelf;
  6438. /* readonly */
  6439. bool fixedHeight;
  6440. /* readonly */
  6441. bool fixedSize;
  6442. /* readonly */
  6443. bool fixedWidth;
  6444. bool focus;
  6445. FocusMode focusMode;
  6446. int height;
  6447. bool hierarchyMode;
  6448. HighlightMode highlightMode;
  6449. HorizontalAlignment horizontalAlignment;
  6450. /* readonly */
  6451. ScrollBar horizontalScrollBar;
  6452. /* readonly */
  6453. bool hovering;
  6454. int indent;
  6455. int indentSpacing;
  6456. /* readonly */
  6457. int indentWidth;
  6458. bool internal;
  6459. /* readonly */
  6460. Array<UIElement> items;
  6461. IntRect layoutBorder;
  6462. Vector2 layoutFlexScale;
  6463. LayoutMode layoutMode;
  6464. int layoutSpacing;
  6465. Vector2 maxAnchor;
  6466. int maxHeight;
  6467. IntVector2 maxOffset;
  6468. IntVector2 maxSize;
  6469. int maxWidth;
  6470. Vector2 minAnchor;
  6471. int minHeight;
  6472. IntVector2 minOffset;
  6473. IntVector2 minSize;
  6474. int minWidth;
  6475. bool multiselect;
  6476. String name;
  6477. /* readonly */
  6478. uint numAllChildren;
  6479. /* readonly */
  6480. uint numAttributes;
  6481. /* readonly */
  6482. uint numChildren;
  6483. /* readonly */
  6484. uint numItems;
  6485. ObjectAnimation objectAnimation;
  6486. float opacity;
  6487. float pageStep;
  6488. UIElement parent;
  6489. Vector2 pivot;
  6490. IntVector2 position;
  6491. int priority;
  6492. /* readonly */
  6493. int refs;
  6494. /* readonly */
  6495. UIElement root;
  6496. /* readonly */
  6497. IntVector2 screenPosition;
  6498. bool scrollBarsAutoVisible;
  6499. float scrollDeceleration;
  6500. /* readonly */
  6501. BorderImage scrollPanel;
  6502. float scrollSnapEpsilon;
  6503. float scrollStep;
  6504. bool selectOnClickEnd;
  6505. bool selected;
  6506. /* readonly */
  6507. UIElement selectedItem;
  6508. /* readonly */
  6509. Array<UIElement> selectedItems;
  6510. uint selection;
  6511. /* readonly */
  6512. Array<uint> selections;
  6513. IntVector2 size;
  6514. bool sortChildren;
  6515. String style;
  6516. /* readonly */
  6517. Array<String> tags;
  6518. bool temporary;
  6519. TraversalMode traversalMode;
  6520. /* readonly */
  6521. StringHash type;
  6522. /* readonly */
  6523. String typeName;
  6524. bool useDerivedOpacity;
  6525. /* readonly */
  6526. VariantMap vars;
  6527. VerticalAlignment verticalAlignment;
  6528. /* readonly */
  6529. ScrollBar verticalScrollBar;
  6530. IntVector2 viewPosition;
  6531. bool visible;
  6532. /* readonly */
  6533. bool visibleEffective;
  6534. /* readonly */
  6535. int weakRefs;
  6536. int width;
  6537. };
  6538. class Localization
  6539. {
  6540. public:
  6541. // Methods:
  6542. String Get(const String&);
  6543. String GetLanguage(int);
  6544. int GetLanguageIndex(const String&);
  6545. bool HasSubscribedToEvent(Object, const String&);
  6546. bool HasSubscribedToEvent(const String&);
  6547. void LoadJSON(const JSONValue&);
  6548. void LoadJSONFile(const String&);
  6549. void Reset();
  6550. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6551. void SetLanguage(const String&);
  6552. void SetLanguage(int);
  6553. // Properties:
  6554. /* readonly */
  6555. String category;
  6556. /* readonly */
  6557. String language;
  6558. /* readonly */
  6559. int languageIndex;
  6560. /* readonly */
  6561. int numLanguages;
  6562. /* readonly */
  6563. int refs;
  6564. /* readonly */
  6565. StringHash type;
  6566. /* readonly */
  6567. String typeName;
  6568. /* readonly */
  6569. int weakRefs;
  6570. };
  6571. class Log
  6572. {
  6573. public:
  6574. // Methods:
  6575. void Close();
  6576. void Debug(const String&);
  6577. void Error(const String&);
  6578. bool HasSubscribedToEvent(Object, const String&);
  6579. bool HasSubscribedToEvent(const String&);
  6580. void Info(const String&);
  6581. void Open(const String&);
  6582. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6583. void Warning(const String&);
  6584. void Write(const String&, bool = false);
  6585. // Properties:
  6586. /* readonly */
  6587. String category;
  6588. /* readonly */
  6589. String lastMessage;
  6590. int level;
  6591. bool quiet;
  6592. /* readonly */
  6593. int refs;
  6594. bool timeStamp;
  6595. /* readonly */
  6596. StringHash type;
  6597. /* readonly */
  6598. String typeName;
  6599. /* readonly */
  6600. int weakRefs;
  6601. };
  6602. class Material
  6603. {
  6604. public:
  6605. Material();
  6606. Material(const String&in);
  6607. // Methods:
  6608. Material Clone(const String& = String ( )) const;
  6609. Pass GetPass(uint, const String&);
  6610. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6611. float GetShaderParameterAnimationSpeed(const String&) const;
  6612. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6613. bool HasSubscribedToEvent(Object, const String&);
  6614. bool HasSubscribedToEvent(const String&);
  6615. bool Load(File);
  6616. bool Load(VectorBuffer&);
  6617. bool Load(const JSONValue&);
  6618. bool Load(const String&);
  6619. bool Load(const XMLElement&);
  6620. void RemoveShaderParameter(const String&);
  6621. bool Save(File) const;
  6622. bool Save(JSONValue&) const;
  6623. bool Save(VectorBuffer&) const;
  6624. bool Save(XMLElement&) const;
  6625. bool Save(const String&) const;
  6626. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6627. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6628. void SetShaderParameterAnimationSpeed(const String&, float);
  6629. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6630. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6631. void SetUVTransform(const Vector2&, float, const Vector2&);
  6632. void SetUVTransform(const Vector2&, float, float);
  6633. void SortTechniques();
  6634. // Properties:
  6635. bool alphaToCoverage;
  6636. /* readonly */
  6637. String category;
  6638. CullMode cullMode;
  6639. BiasParameters depthBias;
  6640. FillMode fillMode;
  6641. bool lineAntiAlias;
  6642. /* readonly */
  6643. uint memoryUse;
  6644. String name;
  6645. uint numTechniques;
  6646. bool occlusion;
  6647. String pixelShaderDefines;
  6648. /* readonly */
  6649. int refs;
  6650. uint8 renderOrder;
  6651. Scene scene;
  6652. /* readonly */
  6653. Array<String> shaderParameterNames;
  6654. Array<Variant> shaderParameters;
  6655. CullMode shadowCullMode;
  6656. /* readonly */
  6657. Array<TechniqueEntry> techniqueEntries;
  6658. /* readonly */
  6659. Array<Technique> techniques;
  6660. Array<Texture> textures;
  6661. /* readonly */
  6662. StringHash type;
  6663. /* readonly */
  6664. String typeName;
  6665. /* readonly */
  6666. uint useTimer;
  6667. String vertexShaderDefines;
  6668. /* readonly */
  6669. int weakRefs;
  6670. };
  6671. class Matrix2
  6672. {
  6673. public:
  6674. Matrix2();
  6675. Matrix2(const Matrix2&in);
  6676. Matrix2(float, float, float, float);
  6677. // Methods:
  6678. bool Equals(const Matrix2&) const;
  6679. Matrix2 Inverse() const;
  6680. Vector2 Scale() const;
  6681. Matrix2 Scaled(const Vector2&) const;
  6682. void SetScale(const Vector2&);
  6683. void SetScale(float);
  6684. String ToString() const;
  6685. Matrix2 Transpose() const;
  6686. // Properties:
  6687. float m00;
  6688. float m01;
  6689. float m10;
  6690. float m11;
  6691. };
  6692. class Matrix3
  6693. {
  6694. public:
  6695. Matrix3();
  6696. Matrix3(const Matrix3&in);
  6697. Matrix3(float, float, float, float, float, float, float, float, float);
  6698. // Methods:
  6699. bool Equals(const Matrix3&) const;
  6700. Matrix3 Inverse() const;
  6701. Vector3 Scale() const;
  6702. Matrix3 Scaled(const Vector3&) const;
  6703. void SetScale(const Vector3&);
  6704. void SetScale(float);
  6705. String ToString() const;
  6706. Matrix3 Transpose() const;
  6707. // Properties:
  6708. float m00;
  6709. float m01;
  6710. float m02;
  6711. float m10;
  6712. float m11;
  6713. float m12;
  6714. float m20;
  6715. float m21;
  6716. float m22;
  6717. };
  6718. class Matrix3x4
  6719. {
  6720. public:
  6721. Matrix3x4();
  6722. Matrix3x4(const Matrix3x4&in);
  6723. Matrix3x4(const Matrix3&in);
  6724. Matrix3x4(const Matrix4&in);
  6725. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  6726. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  6727. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  6728. // Methods:
  6729. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6730. bool Equals(const Matrix3x4&) const;
  6731. Matrix3x4 Inverse() const;
  6732. Quaternion Rotation() const;
  6733. Matrix3 RotationMatrix() const;
  6734. Vector3 Scale() const;
  6735. void SetRotation(const Matrix3&);
  6736. void SetScale(const Vector3&);
  6737. void SetScale(float);
  6738. void SetTranslation(const Vector3&);
  6739. Matrix3 ToMatrix3() const;
  6740. Matrix4 ToMatrix4() const;
  6741. String ToString() const;
  6742. Vector3 Translation() const;
  6743. // Properties:
  6744. float m00;
  6745. float m01;
  6746. float m02;
  6747. float m03;
  6748. float m10;
  6749. float m11;
  6750. float m12;
  6751. float m13;
  6752. float m20;
  6753. float m21;
  6754. float m22;
  6755. float m23;
  6756. };
  6757. class Matrix4
  6758. {
  6759. public:
  6760. Matrix4();
  6761. Matrix4(const Matrix4&in);
  6762. Matrix4(const Matrix3&in);
  6763. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  6764. // Methods:
  6765. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6766. bool Equals(const Matrix4&) const;
  6767. Matrix4 Inverse() const;
  6768. Quaternion Rotation() const;
  6769. Matrix3 RotationMatrix() const;
  6770. Vector3 Scale() const;
  6771. void SetRotation(const Matrix3&);
  6772. void SetScale(const Vector3&);
  6773. void SetScale(float);
  6774. void SetTranslation(const Vector3&);
  6775. Matrix3 ToMatrix3() const;
  6776. String ToString() const;
  6777. Vector3 Translation() const;
  6778. Matrix4 Transpose() const;
  6779. // Properties:
  6780. float m00;
  6781. float m01;
  6782. float m02;
  6783. float m03;
  6784. float m10;
  6785. float m11;
  6786. float m12;
  6787. float m13;
  6788. float m20;
  6789. float m21;
  6790. float m22;
  6791. float m23;
  6792. float m30;
  6793. float m31;
  6794. float m32;
  6795. float m33;
  6796. };
  6797. class Menu
  6798. {
  6799. public:
  6800. Menu();
  6801. Menu(const String&in);
  6802. // Methods:
  6803. void AddChild(UIElement);
  6804. void AddTag(const String&);
  6805. void AddTags(const String&, int8 = ';');
  6806. void ApplyAttributes();
  6807. void BringToFront();
  6808. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6809. void DisableLayoutUpdate();
  6810. IntVector2 ElementToScreen(const IntVector2&);
  6811. void EnableLayoutUpdate();
  6812. uint FindChild(UIElement) const;
  6813. Variant GetAttribute(const String&) const;
  6814. ValueAnimation GetAttributeAnimation(const String&) const;
  6815. float GetAttributeAnimationSpeed(const String&) const;
  6816. float GetAttributeAnimationTime(const String&) const;
  6817. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6818. Variant GetAttributeDefault(const String&) const;
  6819. UIElement GetChild(const String&, bool = false) const;
  6820. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6821. Array<UIElement> GetChildren(bool = false) const;
  6822. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6823. UIElement GetElementEventSender() const;
  6824. bool GetInterceptNetworkUpdate(const String&) const;
  6825. uint GetNumChildren(bool) const;
  6826. bool HasSubscribedToEvent(Object, const String&);
  6827. bool HasSubscribedToEvent(const String&);
  6828. bool HasTag(const String&) const;
  6829. void InsertChild(uint, UIElement);
  6830. bool IsInside(IntVector2, bool);
  6831. bool IsInsideCombined(IntVector2, bool);
  6832. bool Load(File, bool = false);
  6833. bool Load(VectorBuffer&, bool = false);
  6834. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6835. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6836. bool LoadJSON(const JSONValue&, bool = false);
  6837. bool LoadXML(File);
  6838. bool LoadXML(VectorBuffer&);
  6839. bool LoadXML(XMLFile, XMLFile);
  6840. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6841. bool LoadXML(const XMLElement&, bool = false);
  6842. void MarkNetworkUpdate() const;
  6843. void Remove();
  6844. void RemoveAllChildren();
  6845. void RemoveAllTags();
  6846. void RemoveAttributeAnimation(const String&);
  6847. void RemoveChild(UIElement, uint = 0);
  6848. void RemoveChild(uint);
  6849. void RemoveInstanceDefault();
  6850. void RemoveObjectAnimation();
  6851. bool RemoveTag(const String&);
  6852. void ResetDeepEnabled();
  6853. void ResetToDefault();
  6854. bool Save(File) const;
  6855. bool Save(VectorBuffer&) const;
  6856. bool SaveJSON(JSONValue&) const;
  6857. bool SaveXML(File, const String& = "\t");
  6858. bool SaveXML(VectorBuffer&, const String& = "\t");
  6859. bool SaveXML(XMLElement&) const;
  6860. IntVector2 ScreenToElement(const IntVector2&);
  6861. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6862. void SetAccelerator(int, int);
  6863. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6864. void SetAnimationTime(float);
  6865. bool SetAttribute(const String&, const Variant&);
  6866. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6867. void SetAttributeAnimationSpeed(const String&, float);
  6868. void SetAttributeAnimationTime(const String&, float);
  6869. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6870. void SetDeepEnabled(bool);
  6871. void SetDisabledOffset(int, int);
  6872. void SetEnabledRecursive(bool);
  6873. void SetFixedHeight(int);
  6874. void SetFixedSize(int, int);
  6875. void SetFixedWidth(int);
  6876. void SetFullImageRect();
  6877. void SetHoverOffset(int, int);
  6878. void SetInterceptNetworkUpdate(const String&, bool);
  6879. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6880. void SetMaxAnchor(float, float);
  6881. void SetMaxSize(int, int);
  6882. void SetMinAnchor(float, float);
  6883. void SetMinSize(int, int);
  6884. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6885. void SetPivot(float, float);
  6886. void SetPopupOffset(int, int);
  6887. void SetPosition(int, int);
  6888. void SetPressedChildOffset(int, int);
  6889. void SetPressedOffset(int, int);
  6890. void SetRepeat(float, float);
  6891. void SetSize(int, int);
  6892. bool SetStyle(const String&, XMLFile = null);
  6893. bool SetStyle(const XMLElement&);
  6894. bool SetStyleAuto(XMLFile = null);
  6895. void UpdateLayout();
  6896. const Variant& GetVar(const StringHash&);
  6897. // Properties:
  6898. /* readonly */
  6899. int acceleratorKey;
  6900. /* readonly */
  6901. int acceleratorQualifiers;
  6902. bool animationEnabled;
  6903. /* readonly */
  6904. Array<Variant> attributeDefaults;
  6905. /* readonly */
  6906. Array<AttributeInfo> attributeInfos;
  6907. Array<Variant> attributes;
  6908. BlendMode blendMode;
  6909. IntRect border;
  6910. bool bringToBack;
  6911. bool bringToFront;
  6912. /* readonly */
  6913. String category;
  6914. /* readonly */
  6915. IntVector2 childOffset;
  6916. /* readonly */
  6917. Array<UIElement> children;
  6918. IntRect clipBorder;
  6919. bool clipChildren;
  6920. /* writeonly */
  6921. Color color;
  6922. /* readonly */
  6923. bool colorGradient;
  6924. Array<Color> colors;
  6925. /* readonly */
  6926. IntRect combinedScreenRect;
  6927. XMLFile defaultStyle;
  6928. /* readonly */
  6929. float derivedOpacity;
  6930. IntVector2 disabledOffset;
  6931. /* readonly */
  6932. uint dragButtonCombo;
  6933. /* readonly */
  6934. int dragButtonCount;
  6935. uint dragDropMode;
  6936. bool editable;
  6937. bool elementEventSender;
  6938. bool enableAnchor;
  6939. bool enabled;
  6940. /* readonly */
  6941. bool enabledSelf;
  6942. /* readonly */
  6943. bool fixedHeight;
  6944. /* readonly */
  6945. bool fixedSize;
  6946. /* readonly */
  6947. bool fixedWidth;
  6948. bool focus;
  6949. FocusMode focusMode;
  6950. int height;
  6951. HorizontalAlignment horizontalAlignment;
  6952. IntVector2 hoverOffset;
  6953. /* readonly */
  6954. bool hovering;
  6955. IntRect imageBorder;
  6956. IntRect imageRect;
  6957. int indent;
  6958. int indentSpacing;
  6959. /* readonly */
  6960. int indentWidth;
  6961. bool internal;
  6962. IntRect layoutBorder;
  6963. Vector2 layoutFlexScale;
  6964. LayoutMode layoutMode;
  6965. int layoutSpacing;
  6966. Vector2 maxAnchor;
  6967. int maxHeight;
  6968. IntVector2 maxOffset;
  6969. IntVector2 maxSize;
  6970. int maxWidth;
  6971. Vector2 minAnchor;
  6972. int minHeight;
  6973. IntVector2 minOffset;
  6974. IntVector2 minSize;
  6975. int minWidth;
  6976. String name;
  6977. /* readonly */
  6978. uint numAllChildren;
  6979. /* readonly */
  6980. uint numAttributes;
  6981. /* readonly */
  6982. uint numChildren;
  6983. ObjectAnimation objectAnimation;
  6984. float opacity;
  6985. UIElement parent;
  6986. Vector2 pivot;
  6987. UIElement popup;
  6988. IntVector2 popupOffset;
  6989. IntVector2 position;
  6990. /* readonly */
  6991. bool pressed;
  6992. IntVector2 pressedChildOffset;
  6993. IntVector2 pressedOffset;
  6994. int priority;
  6995. /* readonly */
  6996. int refs;
  6997. float repeatDelay;
  6998. float repeatRate;
  6999. /* readonly */
  7000. UIElement root;
  7001. /* readonly */
  7002. IntVector2 screenPosition;
  7003. bool selected;
  7004. bool showPopup;
  7005. IntVector2 size;
  7006. bool sortChildren;
  7007. String style;
  7008. /* readonly */
  7009. Array<String> tags;
  7010. bool temporary;
  7011. Texture texture;
  7012. bool tiled;
  7013. TraversalMode traversalMode;
  7014. /* readonly */
  7015. StringHash type;
  7016. /* readonly */
  7017. String typeName;
  7018. bool useDerivedOpacity;
  7019. /* readonly */
  7020. VariantMap vars;
  7021. VerticalAlignment verticalAlignment;
  7022. bool visible;
  7023. /* readonly */
  7024. bool visibleEffective;
  7025. /* readonly */
  7026. int weakRefs;
  7027. int width;
  7028. };
  7029. class MessageBox
  7030. {
  7031. public:
  7032. MessageBox(const String&in messageString = String ( ), const String&in titleString = String ( ), XMLFile& layoutFile = null, XMLFile& styleFile = null);
  7033. // Methods:
  7034. bool HasSubscribedToEvent(Object, const String&);
  7035. bool HasSubscribedToEvent(const String&);
  7036. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7037. // Properties:
  7038. /* readonly */
  7039. String category;
  7040. String message;
  7041. /* readonly */
  7042. int refs;
  7043. String title;
  7044. /* readonly */
  7045. StringHash type;
  7046. /* readonly */
  7047. String typeName;
  7048. /* readonly */
  7049. int weakRefs;
  7050. /* readonly */
  7051. UIElement window;
  7052. };
  7053. class Model
  7054. {
  7055. public:
  7056. Model();
  7057. Model(const String&in);
  7058. // Methods:
  7059. void AddMetadata(const String&, const Variant&);
  7060. Model Clone(const String& = String ( )) const;
  7061. Geometry GetGeometry(uint, uint) const;
  7062. bool HasSubscribedToEvent(Object, const String&);
  7063. bool HasSubscribedToEvent(const String&);
  7064. bool Load(File);
  7065. bool Load(VectorBuffer&);
  7066. bool Load(const String&);
  7067. void RemoveAllMetadata();
  7068. void RemoveMetadata(const String&);
  7069. bool Save(File) const;
  7070. bool Save(VectorBuffer&) const;
  7071. bool Save(const String&) const;
  7072. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7073. bool SetGeometry(uint, uint, Geometry);
  7074. bool SetIndexBuffers(Array<IndexBuffer>);
  7075. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  7076. // Properties:
  7077. BoundingBox boundingBox;
  7078. /* readonly */
  7079. String category;
  7080. Array<Vector3> geometryCenters;
  7081. /* readonly */
  7082. bool hasMetadata;
  7083. /* readonly */
  7084. uint memoryUse;
  7085. Array<Variant> metadata;
  7086. String name;
  7087. uint numGeometries;
  7088. Array<uint> numGeometryLodLevels;
  7089. /* readonly */
  7090. uint numMorphs;
  7091. /* readonly */
  7092. int refs;
  7093. /* readonly */
  7094. Skeleton skeleton;
  7095. /* readonly */
  7096. StringHash type;
  7097. /* readonly */
  7098. String typeName;
  7099. /* readonly */
  7100. uint useTimer;
  7101. /* readonly */
  7102. int weakRefs;
  7103. };
  7104. class NamedPipe
  7105. {
  7106. public:
  7107. NamedPipe();
  7108. NamedPipe(const String&in, bool);
  7109. // Methods:
  7110. void Close();
  7111. bool HasSubscribedToEvent(Object, const String&);
  7112. bool HasSubscribedToEvent(const String&);
  7113. bool Open(const String&, bool);
  7114. Array<uint8> Read(uint);
  7115. bool ReadBool();
  7116. BoundingBox ReadBoundingBox();
  7117. int8 ReadByte();
  7118. Color ReadColor();
  7119. double ReadDouble();
  7120. String ReadFileID();
  7121. float ReadFloat();
  7122. int ReadInt();
  7123. int64 ReadInt64();
  7124. IntRect ReadIntRect();
  7125. IntVector2 ReadIntVector2();
  7126. String ReadLine();
  7127. Matrix3 ReadMatrix3();
  7128. Matrix3x4 ReadMatrix3x4();
  7129. Matrix4 ReadMatrix4();
  7130. uint ReadNetID();
  7131. Quaternion ReadPackedQuaternion();
  7132. Vector3 ReadPackedVector3(float);
  7133. Quaternion ReadQuaternion();
  7134. int16 ReadShort();
  7135. String ReadString();
  7136. StringHash ReadStringHash();
  7137. uint8 ReadUByte();
  7138. uint ReadUInt();
  7139. uint64 ReadUInt64();
  7140. uint16 ReadUShort();
  7141. uint ReadVLE();
  7142. Variant ReadVariant();
  7143. VariantMap ReadVariantMap();
  7144. Vector2 ReadVector2();
  7145. Vector3 ReadVector3();
  7146. Vector4 ReadVector4();
  7147. VectorBuffer ReadVectorBuffer(uint);
  7148. uint Seek(uint);
  7149. uint SeekRelative(int);
  7150. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7151. uint Tell() const;
  7152. uint Write(Array<uint8>);
  7153. bool WriteBool(bool);
  7154. bool WriteBoundingBox(const BoundingBox&);
  7155. bool WriteByte(int8);
  7156. bool WriteColor(const Color&);
  7157. bool WriteDouble(double);
  7158. bool WriteFileID(const String&);
  7159. bool WriteFloat(float);
  7160. bool WriteInt(int);
  7161. bool WriteInt64(int64);
  7162. bool WriteIntRect(const IntRect&);
  7163. bool WriteIntVector2(const IntVector2&);
  7164. bool WriteLine(const String&);
  7165. bool WriteMatrix3(const Matrix3&);
  7166. bool WriteMatrix3x4(const Matrix3x4&);
  7167. bool WriteMatrix4(const Matrix4&);
  7168. bool WriteNetID(uint);
  7169. bool WritePackedQuaternion(const Quaternion&);
  7170. bool WritePackedVector3(const Vector3&, float);
  7171. bool WriteQuaternion(const Quaternion&);
  7172. bool WriteShort(int16);
  7173. bool WriteString(const String&);
  7174. bool WriteStringHash(const StringHash&);
  7175. bool WriteUByte(uint8);
  7176. bool WriteUInt(uint);
  7177. bool WriteUInt64(uint64);
  7178. bool WriteUShort(uint16);
  7179. bool WriteVLE(uint);
  7180. bool WriteVariant(const Variant&);
  7181. bool WriteVariantMap(const VariantMap&);
  7182. bool WriteVector2(const Vector2&);
  7183. bool WriteVector3(const Vector3&);
  7184. bool WriteVector4(const Vector4&);
  7185. bool WriteVectorBuffer(const VectorBuffer&);
  7186. // Properties:
  7187. /* readonly */
  7188. String category;
  7189. /* readonly */
  7190. uint checksum;
  7191. /* readonly */
  7192. bool eof;
  7193. /* readonly */
  7194. String name;
  7195. /* readonly */
  7196. bool open;
  7197. /* readonly */
  7198. uint position;
  7199. /* readonly */
  7200. int refs;
  7201. /* readonly */
  7202. bool server;
  7203. /* readonly */
  7204. uint size;
  7205. /* readonly */
  7206. StringHash type;
  7207. /* readonly */
  7208. String typeName;
  7209. /* readonly */
  7210. int weakRefs;
  7211. };
  7212. class NavArea
  7213. {
  7214. public:
  7215. // Methods:
  7216. void ApplyAttributes();
  7217. void DrawDebugGeometry(DebugRenderer, bool);
  7218. Variant GetAttribute(const String&) const;
  7219. ValueAnimation GetAttributeAnimation(const String&) const;
  7220. float GetAttributeAnimationSpeed(const String&) const;
  7221. float GetAttributeAnimationTime(const String&) const;
  7222. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7223. Variant GetAttributeDefault(const String&) const;
  7224. bool GetInterceptNetworkUpdate(const String&) const;
  7225. bool HasSubscribedToEvent(Object, const String&);
  7226. bool HasSubscribedToEvent(const String&);
  7227. bool Load(File, bool = false);
  7228. bool Load(VectorBuffer&, bool = false);
  7229. bool LoadJSON(const JSONValue&, bool = false);
  7230. bool LoadXML(const XMLElement&, bool = false);
  7231. void MarkNetworkUpdate() const;
  7232. void Remove();
  7233. void RemoveAttributeAnimation(const String&);
  7234. void RemoveInstanceDefault();
  7235. void RemoveObjectAnimation();
  7236. void ResetToDefault();
  7237. bool Save(File) const;
  7238. bool Save(VectorBuffer&) const;
  7239. bool SaveJSON(JSONValue&) const;
  7240. bool SaveXML(XMLElement&) const;
  7241. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7242. void SetAnimationTime(float);
  7243. bool SetAttribute(const String&, const Variant&);
  7244. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7245. void SetAttributeAnimationSpeed(const String&, float);
  7246. void SetAttributeAnimationTime(const String&, float);
  7247. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7248. void SetInterceptNetworkUpdate(const String&, bool);
  7249. // Properties:
  7250. bool animationEnabled;
  7251. uint areaID;
  7252. /* readonly */
  7253. Array<Variant> attributeDefaults;
  7254. /* readonly */
  7255. Array<AttributeInfo> attributeInfos;
  7256. Array<Variant> attributes;
  7257. BoundingBox boundingBox;
  7258. /* readonly */
  7259. String category;
  7260. bool enabled;
  7261. /* readonly */
  7262. bool enabledEffective;
  7263. /* readonly */
  7264. uint id;
  7265. /* readonly */
  7266. Node node;
  7267. /* readonly */
  7268. uint numAttributes;
  7269. ObjectAnimation objectAnimation;
  7270. /* readonly */
  7271. int refs;
  7272. bool temporary;
  7273. /* readonly */
  7274. StringHash type;
  7275. /* readonly */
  7276. String typeName;
  7277. /* readonly */
  7278. int weakRefs;
  7279. /* readonly */
  7280. BoundingBox worldBoundingBox;
  7281. };
  7282. class Navigable
  7283. {
  7284. public:
  7285. // Methods:
  7286. void ApplyAttributes();
  7287. void DrawDebugGeometry(DebugRenderer, bool);
  7288. Variant GetAttribute(const String&) const;
  7289. ValueAnimation GetAttributeAnimation(const String&) const;
  7290. float GetAttributeAnimationSpeed(const String&) const;
  7291. float GetAttributeAnimationTime(const String&) const;
  7292. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7293. Variant GetAttributeDefault(const String&) const;
  7294. bool GetInterceptNetworkUpdate(const String&) const;
  7295. bool HasSubscribedToEvent(Object, const String&);
  7296. bool HasSubscribedToEvent(const String&);
  7297. bool Load(File, bool = false);
  7298. bool Load(VectorBuffer&, bool = false);
  7299. bool LoadJSON(const JSONValue&, bool = false);
  7300. bool LoadXML(const XMLElement&, bool = false);
  7301. void MarkNetworkUpdate() const;
  7302. void Remove();
  7303. void RemoveAttributeAnimation(const String&);
  7304. void RemoveInstanceDefault();
  7305. void RemoveObjectAnimation();
  7306. void ResetToDefault();
  7307. bool Save(File) const;
  7308. bool Save(VectorBuffer&) const;
  7309. bool SaveJSON(JSONValue&) const;
  7310. bool SaveXML(XMLElement&) const;
  7311. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7312. void SetAnimationTime(float);
  7313. bool SetAttribute(const String&, const Variant&);
  7314. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7315. void SetAttributeAnimationSpeed(const String&, float);
  7316. void SetAttributeAnimationTime(const String&, float);
  7317. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7318. void SetInterceptNetworkUpdate(const String&, bool);
  7319. // Properties:
  7320. bool animationEnabled;
  7321. /* readonly */
  7322. Array<Variant> attributeDefaults;
  7323. /* readonly */
  7324. Array<AttributeInfo> attributeInfos;
  7325. Array<Variant> attributes;
  7326. /* readonly */
  7327. String category;
  7328. bool enabled;
  7329. /* readonly */
  7330. bool enabledEffective;
  7331. /* readonly */
  7332. uint id;
  7333. /* readonly */
  7334. Node node;
  7335. /* readonly */
  7336. uint numAttributes;
  7337. ObjectAnimation objectAnimation;
  7338. bool recursive;
  7339. /* readonly */
  7340. int refs;
  7341. bool temporary;
  7342. /* readonly */
  7343. StringHash type;
  7344. /* readonly */
  7345. String typeName;
  7346. /* readonly */
  7347. int weakRefs;
  7348. };
  7349. class NavigationMesh
  7350. {
  7351. public:
  7352. // Methods:
  7353. bool AddTile(const VectorBuffer&) const;
  7354. bool Allocate(const BoundingBox&, uint);
  7355. void ApplyAttributes();
  7356. bool Build();
  7357. bool Build(const BoundingBox&);
  7358. bool Build(const IntVector2&, const IntVector2&);
  7359. void DrawDebugGeometry(DebugRenderer, bool);
  7360. void DrawDebugGeometry(bool);
  7361. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7362. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7363. float GetAreaCost(uint) const;
  7364. Variant GetAttribute(const String&) const;
  7365. ValueAnimation GetAttributeAnimation(const String&) const;
  7366. float GetAttributeAnimationSpeed(const String&) const;
  7367. float GetAttributeAnimationTime(const String&) const;
  7368. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7369. Variant GetAttributeDefault(const String&) const;
  7370. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7371. bool GetInterceptNetworkUpdate(const String&) const;
  7372. Vector3 GetRandomPoint();
  7373. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7374. BoundingBox GetTileBoudningBox(const IntVector2&) const;
  7375. VectorBuffer GetTileData(const IntVector2&) const;
  7376. IntVector2 GetTileIndex(const Vector3&) const;
  7377. bool HasSubscribedToEvent(Object, const String&);
  7378. bool HasSubscribedToEvent(const String&);
  7379. bool HasTile(const IntVector2&) const;
  7380. bool Load(File, bool = false);
  7381. bool Load(VectorBuffer&, bool = false);
  7382. bool LoadJSON(const JSONValue&, bool = false);
  7383. bool LoadXML(const XMLElement&, bool = false);
  7384. void MarkNetworkUpdate() const;
  7385. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  7386. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7387. void Remove();
  7388. void RemoveAllTiles();
  7389. void RemoveAttributeAnimation(const String&);
  7390. void RemoveInstanceDefault();
  7391. void RemoveObjectAnimation();
  7392. void RemoveTile(const IntVector2&);
  7393. void ResetToDefault();
  7394. bool Save(File) const;
  7395. bool Save(VectorBuffer&) const;
  7396. bool SaveJSON(JSONValue&) const;
  7397. bool SaveXML(XMLElement&) const;
  7398. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7399. void SetAnimationTime(float);
  7400. void SetAreaCost(uint, float);
  7401. bool SetAttribute(const String&, const Variant&);
  7402. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7403. void SetAttributeAnimationSpeed(const String&, float);
  7404. void SetAttributeAnimationTime(const String&, float);
  7405. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7406. void SetInterceptNetworkUpdate(const String&, bool);
  7407. // Properties:
  7408. float agentHeight;
  7409. float agentMaxClimb;
  7410. float agentMaxSlope;
  7411. float agentRadius;
  7412. bool animationEnabled;
  7413. /* readonly */
  7414. Array<Variant> attributeDefaults;
  7415. /* readonly */
  7416. Array<AttributeInfo> attributeInfos;
  7417. Array<Variant> attributes;
  7418. /* readonly */
  7419. BoundingBox boundingBox;
  7420. /* readonly */
  7421. String category;
  7422. float cellHeight;
  7423. float cellSize;
  7424. float detailSampleDistance;
  7425. float detailSampleMaxError;
  7426. bool drawNavAreas;
  7427. bool drawOffMeshConnections;
  7428. float edgeMaxError;
  7429. float edgeMaxLength;
  7430. bool enabled;
  7431. /* readonly */
  7432. bool enabledEffective;
  7433. /* readonly */
  7434. uint id;
  7435. /* readonly */
  7436. bool initialized;
  7437. /* readonly */
  7438. Node node;
  7439. /* readonly */
  7440. uint numAttributes;
  7441. /* readonly */
  7442. IntVector2 numTiles;
  7443. ObjectAnimation objectAnimation;
  7444. Vector3 padding;
  7445. NavmeshPartitionType partitionType;
  7446. /* readonly */
  7447. int refs;
  7448. float regionMergeSize;
  7449. float regionMinSize;
  7450. bool temporary;
  7451. int tileSize;
  7452. /* readonly */
  7453. StringHash type;
  7454. /* readonly */
  7455. String typeName;
  7456. /* readonly */
  7457. int weakRefs;
  7458. /* readonly */
  7459. BoundingBox worldBoundingBox;
  7460. };
  7461. class Network
  7462. {
  7463. public:
  7464. // Methods:
  7465. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  7466. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  7467. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  7468. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  7469. bool CheckRemoteEvent(const String&) const;
  7470. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  7471. void Disconnect(int = 0);
  7472. bool HasSubscribedToEvent(Object, const String&);
  7473. bool HasSubscribedToEvent(const String&);
  7474. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  7475. void RegisterRemoteEvent(const String&) const;
  7476. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7477. void SendPackageToClients(Scene, PackageFile);
  7478. bool StartServer(uint16);
  7479. void StopServer();
  7480. void UnregisterAllRemoteEvents();
  7481. void UnregisterRemoteEvent(const String&) const;
  7482. // Properties:
  7483. /* readonly */
  7484. String category;
  7485. /* readonly */
  7486. Array<Connection> clientConnections;
  7487. String packageCacheDir;
  7488. /* readonly */
  7489. int refs;
  7490. /* readonly */
  7491. Connection serverConnection;
  7492. /* readonly */
  7493. bool serverRunning;
  7494. int simulatedLatency;
  7495. float simulatedPacketLoss;
  7496. /* readonly */
  7497. StringHash type;
  7498. /* readonly */
  7499. String typeName;
  7500. int updateFps;
  7501. /* readonly */
  7502. int weakRefs;
  7503. };
  7504. class NetworkPriority
  7505. {
  7506. public:
  7507. // Methods:
  7508. void ApplyAttributes();
  7509. void DrawDebugGeometry(DebugRenderer, bool);
  7510. Variant GetAttribute(const String&) const;
  7511. ValueAnimation GetAttributeAnimation(const String&) const;
  7512. float GetAttributeAnimationSpeed(const String&) const;
  7513. float GetAttributeAnimationTime(const String&) const;
  7514. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7515. Variant GetAttributeDefault(const String&) const;
  7516. bool GetInterceptNetworkUpdate(const String&) const;
  7517. bool HasSubscribedToEvent(Object, const String&);
  7518. bool HasSubscribedToEvent(const String&);
  7519. bool Load(File, bool = false);
  7520. bool Load(VectorBuffer&, bool = false);
  7521. bool LoadJSON(const JSONValue&, bool = false);
  7522. bool LoadXML(const XMLElement&, bool = false);
  7523. void MarkNetworkUpdate() const;
  7524. void Remove();
  7525. void RemoveAttributeAnimation(const String&);
  7526. void RemoveInstanceDefault();
  7527. void RemoveObjectAnimation();
  7528. void ResetToDefault();
  7529. bool Save(File) const;
  7530. bool Save(VectorBuffer&) const;
  7531. bool SaveJSON(JSONValue&) const;
  7532. bool SaveXML(XMLElement&) const;
  7533. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7534. void SetAnimationTime(float);
  7535. bool SetAttribute(const String&, const Variant&);
  7536. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7537. void SetAttributeAnimationSpeed(const String&, float);
  7538. void SetAttributeAnimationTime(const String&, float);
  7539. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7540. void SetInterceptNetworkUpdate(const String&, bool);
  7541. // Properties:
  7542. bool alwaysUpdateOwner;
  7543. bool animationEnabled;
  7544. /* readonly */
  7545. Array<Variant> attributeDefaults;
  7546. /* readonly */
  7547. Array<AttributeInfo> attributeInfos;
  7548. Array<Variant> attributes;
  7549. float basePriority;
  7550. /* readonly */
  7551. String category;
  7552. float distanceFactor;
  7553. bool enabled;
  7554. /* readonly */
  7555. bool enabledEffective;
  7556. /* readonly */
  7557. uint id;
  7558. float minPriority;
  7559. /* readonly */
  7560. Node node;
  7561. /* readonly */
  7562. uint numAttributes;
  7563. ObjectAnimation objectAnimation;
  7564. /* readonly */
  7565. int refs;
  7566. bool temporary;
  7567. /* readonly */
  7568. StringHash type;
  7569. /* readonly */
  7570. String typeName;
  7571. /* readonly */
  7572. int weakRefs;
  7573. };
  7574. class Node
  7575. {
  7576. public:
  7577. Node();
  7578. Node(const String&in);
  7579. // Methods:
  7580. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7581. void AddTag(const String&);
  7582. void AddTags(const String&, int8 = ';');
  7583. void ApplyAttributes();
  7584. Node Clone(CreateMode = REPLICATED);
  7585. Component CloneComponent(Component, CreateMode, uint = 0);
  7586. Component CloneComponent(Component, uint = 0);
  7587. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7588. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7589. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7590. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7591. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7592. Variant GetAttribute(const String&) const;
  7593. ValueAnimation GetAttributeAnimation(const String&) const;
  7594. float GetAttributeAnimationSpeed(const String&) const;
  7595. float GetAttributeAnimationTime(const String&) const;
  7596. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7597. Variant GetAttributeDefault(const String&) const;
  7598. Node GetChild(const String&, bool = false) const;
  7599. Array<Node> GetChildren(bool = false) const;
  7600. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7601. Array<Node> GetChildrenWithScript(bool = false) const;
  7602. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7603. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7604. Component GetComponent(const String&, bool = false) const;
  7605. Array<Component> GetComponents() const;
  7606. Array<Component> GetComponents(const String&, bool = false) const;
  7607. bool GetInterceptNetworkUpdate(const String&) const;
  7608. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7609. Component GetParentComponent(const String&, bool = false) const;
  7610. ScriptObject GetScriptObject() const;
  7611. ScriptObject GetScriptObject(const String&) const;
  7612. bool HasComponent(const String&) const;
  7613. bool HasSubscribedToEvent(Object, const String&);
  7614. bool HasSubscribedToEvent(const String&);
  7615. bool HasTag(const String&);
  7616. bool IsChildOf(Node) const;
  7617. bool Load(File, bool = false);
  7618. bool Load(VectorBuffer&, bool = false);
  7619. bool LoadJSON(const JSONValue&, bool = false);
  7620. bool LoadXML(const XMLElement&, bool = false);
  7621. Vector3 LocalToWorld(const Vector3&) const;
  7622. Vector3 LocalToWorld(const Vector4&) const;
  7623. Vector2 LocalToWorld2D(const Vector2&) const;
  7624. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7625. void MarkDirty();
  7626. void MarkNetworkUpdate() const;
  7627. void Pitch(float, TransformSpace = TS_LOCAL);
  7628. void Remove();
  7629. void RemoveAllChildren();
  7630. void RemoveAllComponents();
  7631. void RemoveAllTags();
  7632. void RemoveAttributeAnimation(const String&);
  7633. void RemoveChild(Node);
  7634. void RemoveChildren(bool, bool, bool);
  7635. void RemoveComponent(Component);
  7636. void RemoveComponent(const String&);
  7637. void RemoveComponents(bool, bool);
  7638. void RemoveComponents(const String&);
  7639. void RemoveInstanceDefault();
  7640. void RemoveObjectAnimation();
  7641. bool RemoveTag(const String&);
  7642. void ReorderComponent(Component, uint);
  7643. void ResetDeepEnabled();
  7644. void ResetToDefault();
  7645. void Roll(float, TransformSpace = TS_LOCAL);
  7646. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7647. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7648. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7649. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7650. bool Save(File) const;
  7651. bool Save(VectorBuffer&) const;
  7652. bool SaveJSON(File);
  7653. bool SaveJSON(JSONValue&) const;
  7654. bool SaveJSON(VectorBuffer&);
  7655. bool SaveXML(File, const String& = "\t");
  7656. bool SaveXML(VectorBuffer&, const String& = "\t");
  7657. bool SaveXML(XMLElement&) const;
  7658. void Scale(const Vector3&);
  7659. void Scale(float);
  7660. void Scale2D(const Vector2&);
  7661. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7662. void SetAnimationTime(float);
  7663. bool SetAttribute(const String&, const Variant&);
  7664. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7665. void SetAttributeAnimationSpeed(const String&, float);
  7666. void SetAttributeAnimationTime(const String&, float);
  7667. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7668. void SetDeepEnabled(bool);
  7669. void SetEnabledRecursive(bool);
  7670. void SetInterceptNetworkUpdate(const String&, bool);
  7671. void SetPosition2D(float, float);
  7672. void SetScale(float);
  7673. void SetScale2D(float, float);
  7674. void SetTransform(const Matrix3x4&);
  7675. void SetTransform(const Vector3&, const Quaternion&);
  7676. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7677. void SetTransform(const Vector3&, const Quaternion&, float);
  7678. void SetTransform2D(const Vector2&, float);
  7679. void SetTransform2D(const Vector2&, float, const Vector2&);
  7680. void SetTransform2D(const Vector2&, float, float);
  7681. void SetWorldTransform(const Vector3&, const Quaternion&);
  7682. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7683. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7684. void SetWorldTransform2D(const Vector2&, float);
  7685. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7686. void SetWorldTransform2D(const Vector2&, float, float);
  7687. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7688. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7689. Vector3 WorldToLocal(const Vector3&) const;
  7690. Vector3 WorldToLocal(const Vector4&) const;
  7691. Vector2 WorldToLocal2D(const Vector2&) const;
  7692. void Yaw(float, TransformSpace = TS_LOCAL);
  7693. // Properties:
  7694. /* readonly */
  7695. Array<Node> allChildrenByName;
  7696. bool animationEnabled;
  7697. /* readonly */
  7698. Array<Variant> attributeDefaults;
  7699. /* readonly */
  7700. Array<AttributeInfo> attributeInfos;
  7701. Array<Variant> attributes;
  7702. /* readonly */
  7703. String category;
  7704. /* readonly */
  7705. Array<Node> children;
  7706. /* readonly */
  7707. Array<Node> childrenByName;
  7708. /* readonly */
  7709. Array<Component> components;
  7710. Vector3 direction;
  7711. bool enabled;
  7712. /* readonly */
  7713. bool enabledSelf;
  7714. uint id;
  7715. String name;
  7716. /* readonly */
  7717. uint numAllChildren;
  7718. /* readonly */
  7719. uint numAttributes;
  7720. /* readonly */
  7721. uint numChildren;
  7722. /* readonly */
  7723. uint numComponents;
  7724. ObjectAnimation objectAnimation;
  7725. Connection owner;
  7726. Node parent;
  7727. Vector3 position;
  7728. Vector2 position2D;
  7729. /* readonly */
  7730. int refs;
  7731. /* readonly */
  7732. Vector3 right;
  7733. Quaternion rotation;
  7734. float rotation2D;
  7735. Vector3 scale;
  7736. Vector2 scale2D;
  7737. /* readonly */
  7738. Scene scene;
  7739. /* readonly */
  7740. ScriptObject scriptObject;
  7741. /* readonly */
  7742. Vector3 signedWorldScale;
  7743. /* readonly */
  7744. Array<String> tags;
  7745. bool temporary;
  7746. /* readonly */
  7747. Matrix3x4 transform;
  7748. /* readonly */
  7749. StringHash type;
  7750. /* readonly */
  7751. String typeName;
  7752. /* readonly */
  7753. Vector3 up;
  7754. /* readonly */
  7755. VariantMap vars;
  7756. /* readonly */
  7757. int weakRefs;
  7758. Vector3 worldDirection;
  7759. Vector3 worldPosition;
  7760. Vector2 worldPosition2D;
  7761. /* readonly */
  7762. Vector3 worldRight;
  7763. Quaternion worldRotation;
  7764. float worldRotation2D;
  7765. Vector3 worldScale;
  7766. Vector2 worldScale2D;
  7767. /* readonly */
  7768. Matrix3x4 worldTransform;
  7769. /* readonly */
  7770. Vector3 worldUp;
  7771. };
  7772. class Object
  7773. {
  7774. public:
  7775. // Methods:
  7776. bool HasSubscribedToEvent(Object, const String&);
  7777. bool HasSubscribedToEvent(const String&);
  7778. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7779. // Properties:
  7780. /* readonly */
  7781. String category;
  7782. /* readonly */
  7783. int refs;
  7784. /* readonly */
  7785. StringHash type;
  7786. /* readonly */
  7787. String typeName;
  7788. /* readonly */
  7789. int weakRefs;
  7790. };
  7791. class ObjectAnimation
  7792. {
  7793. public:
  7794. ObjectAnimation();
  7795. ObjectAnimation(const String&in);
  7796. // Methods:
  7797. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7798. ValueAnimation GetAttributeAnimation(const String&) const;
  7799. float GetAttributeAnimationSpeed(const String&) const;
  7800. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7801. bool HasSubscribedToEvent(Object, const String&);
  7802. bool HasSubscribedToEvent(const String&);
  7803. bool Load(File);
  7804. bool Load(VectorBuffer&);
  7805. bool Load(const String&);
  7806. void RemoveAttributeAnimation(ValueAnimation);
  7807. void RemoveAttributeAnimation(const String&);
  7808. bool Save(File) const;
  7809. bool Save(VectorBuffer&) const;
  7810. bool Save(const String&) const;
  7811. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7812. // Properties:
  7813. /* readonly */
  7814. Array<Variant> attributeAnimations;
  7815. /* readonly */
  7816. String category;
  7817. /* readonly */
  7818. uint memoryUse;
  7819. String name;
  7820. /* readonly */
  7821. int refs;
  7822. /* readonly */
  7823. Array<Variant> speeds;
  7824. /* readonly */
  7825. StringHash type;
  7826. /* readonly */
  7827. String typeName;
  7828. /* readonly */
  7829. uint useTimer;
  7830. /* readonly */
  7831. int weakRefs;
  7832. /* readonly */
  7833. Array<Variant> wrapModes;
  7834. };
  7835. class Obstacle
  7836. {
  7837. public:
  7838. // Methods:
  7839. void ApplyAttributes();
  7840. void DrawDebugGeometry(DebugRenderer, bool);
  7841. void DrawDebugGeometry(bool);
  7842. Variant GetAttribute(const String&) const;
  7843. ValueAnimation GetAttributeAnimation(const String&) const;
  7844. float GetAttributeAnimationSpeed(const String&) const;
  7845. float GetAttributeAnimationTime(const String&) const;
  7846. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7847. Variant GetAttributeDefault(const String&) const;
  7848. bool GetInterceptNetworkUpdate(const String&) const;
  7849. bool HasSubscribedToEvent(Object, const String&);
  7850. bool HasSubscribedToEvent(const String&);
  7851. bool Load(File, bool = false);
  7852. bool Load(VectorBuffer&, bool = false);
  7853. bool LoadJSON(const JSONValue&, bool = false);
  7854. bool LoadXML(const XMLElement&, bool = false);
  7855. void MarkNetworkUpdate() const;
  7856. void Remove();
  7857. void RemoveAttributeAnimation(const String&);
  7858. void RemoveInstanceDefault();
  7859. void RemoveObjectAnimation();
  7860. void ResetToDefault();
  7861. bool Save(File) const;
  7862. bool Save(VectorBuffer&) const;
  7863. bool SaveJSON(JSONValue&) const;
  7864. bool SaveXML(XMLElement&) const;
  7865. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7866. void SetAnimationTime(float);
  7867. bool SetAttribute(const String&, const Variant&);
  7868. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7869. void SetAttributeAnimationSpeed(const String&, float);
  7870. void SetAttributeAnimationTime(const String&, float);
  7871. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7872. void SetInterceptNetworkUpdate(const String&, bool);
  7873. // Properties:
  7874. bool animationEnabled;
  7875. /* readonly */
  7876. Array<Variant> attributeDefaults;
  7877. /* readonly */
  7878. Array<AttributeInfo> attributeInfos;
  7879. Array<Variant> attributes;
  7880. /* readonly */
  7881. String category;
  7882. bool enabled;
  7883. /* readonly */
  7884. bool enabledEffective;
  7885. float height;
  7886. /* readonly */
  7887. uint id;
  7888. /* readonly */
  7889. Node node;
  7890. /* readonly */
  7891. uint numAttributes;
  7892. ObjectAnimation objectAnimation;
  7893. /* readonly */
  7894. uint obstacleId;
  7895. float radius;
  7896. /* readonly */
  7897. int refs;
  7898. bool temporary;
  7899. /* readonly */
  7900. StringHash type;
  7901. /* readonly */
  7902. String typeName;
  7903. /* readonly */
  7904. int weakRefs;
  7905. };
  7906. class Octree
  7907. {
  7908. public:
  7909. // Methods:
  7910. void AddManualDrawable(Drawable);
  7911. void ApplyAttributes();
  7912. void DrawDebugGeometry(DebugRenderer, bool);
  7913. void DrawDebugGeometry(bool) const;
  7914. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7915. Variant GetAttribute(const String&) const;
  7916. ValueAnimation GetAttributeAnimation(const String&) const;
  7917. float GetAttributeAnimationSpeed(const String&) const;
  7918. float GetAttributeAnimationTime(const String&) const;
  7919. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7920. Variant GetAttributeDefault(const String&) const;
  7921. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7922. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7923. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7924. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7925. bool GetInterceptNetworkUpdate(const String&) const;
  7926. bool HasSubscribedToEvent(Object, const String&);
  7927. bool HasSubscribedToEvent(const String&);
  7928. bool Load(File, bool = false);
  7929. bool Load(VectorBuffer&, bool = false);
  7930. bool LoadJSON(const JSONValue&, bool = false);
  7931. bool LoadXML(const XMLElement&, bool = false);
  7932. void MarkNetworkUpdate() const;
  7933. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7934. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7935. void Remove();
  7936. void RemoveAttributeAnimation(const String&);
  7937. void RemoveInstanceDefault();
  7938. void RemoveManualDrawable(Drawable);
  7939. void RemoveObjectAnimation();
  7940. void ResetToDefault();
  7941. bool Save(File) const;
  7942. bool Save(VectorBuffer&) const;
  7943. bool SaveJSON(JSONValue&) const;
  7944. bool SaveXML(XMLElement&) const;
  7945. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7946. void SetAnimationTime(float);
  7947. bool SetAttribute(const String&, const Variant&);
  7948. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7949. void SetAttributeAnimationSpeed(const String&, float);
  7950. void SetAttributeAnimationTime(const String&, float);
  7951. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7952. void SetInterceptNetworkUpdate(const String&, bool);
  7953. void SetSize(const BoundingBox&, uint);
  7954. // Properties:
  7955. bool animationEnabled;
  7956. /* readonly */
  7957. Array<Variant> attributeDefaults;
  7958. /* readonly */
  7959. Array<AttributeInfo> attributeInfos;
  7960. Array<Variant> attributes;
  7961. /* readonly */
  7962. String category;
  7963. bool enabled;
  7964. /* readonly */
  7965. bool enabledEffective;
  7966. /* readonly */
  7967. uint id;
  7968. /* readonly */
  7969. Node node;
  7970. /* readonly */
  7971. uint numAttributes;
  7972. /* readonly */
  7973. uint numLevels;
  7974. ObjectAnimation objectAnimation;
  7975. /* readonly */
  7976. int refs;
  7977. bool temporary;
  7978. /* readonly */
  7979. StringHash type;
  7980. /* readonly */
  7981. String typeName;
  7982. /* readonly */
  7983. int weakRefs;
  7984. /* readonly */
  7985. BoundingBox worldBoundingBox;
  7986. };
  7987. class OffMeshConnection
  7988. {
  7989. public:
  7990. // Methods:
  7991. void ApplyAttributes();
  7992. void DrawDebugGeometry(DebugRenderer, bool);
  7993. Variant GetAttribute(const String&) const;
  7994. ValueAnimation GetAttributeAnimation(const String&) const;
  7995. float GetAttributeAnimationSpeed(const String&) const;
  7996. float GetAttributeAnimationTime(const String&) const;
  7997. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7998. Variant GetAttributeDefault(const String&) const;
  7999. bool GetInterceptNetworkUpdate(const String&) const;
  8000. bool HasSubscribedToEvent(Object, const String&);
  8001. bool HasSubscribedToEvent(const String&);
  8002. bool Load(File, bool = false);
  8003. bool Load(VectorBuffer&, bool = false);
  8004. bool LoadJSON(const JSONValue&, bool = false);
  8005. bool LoadXML(const XMLElement&, bool = false);
  8006. void MarkNetworkUpdate() const;
  8007. void Remove();
  8008. void RemoveAttributeAnimation(const String&);
  8009. void RemoveInstanceDefault();
  8010. void RemoveObjectAnimation();
  8011. void ResetToDefault();
  8012. bool Save(File) const;
  8013. bool Save(VectorBuffer&) const;
  8014. bool SaveJSON(JSONValue&) const;
  8015. bool SaveXML(XMLElement&) const;
  8016. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8017. void SetAnimationTime(float);
  8018. bool SetAttribute(const String&, const Variant&);
  8019. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8020. void SetAttributeAnimationSpeed(const String&, float);
  8021. void SetAttributeAnimationTime(const String&, float);
  8022. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8023. void SetInterceptNetworkUpdate(const String&, bool);
  8024. // Properties:
  8025. bool animationEnabled;
  8026. uint areaID;
  8027. /* readonly */
  8028. Array<Variant> attributeDefaults;
  8029. /* readonly */
  8030. Array<AttributeInfo> attributeInfos;
  8031. Array<Variant> attributes;
  8032. bool bidirectional;
  8033. /* readonly */
  8034. String category;
  8035. bool enabled;
  8036. /* readonly */
  8037. bool enabledEffective;
  8038. Node endPoint;
  8039. /* readonly */
  8040. uint id;
  8041. uint mask;
  8042. /* readonly */
  8043. Node node;
  8044. /* readonly */
  8045. uint numAttributes;
  8046. ObjectAnimation objectAnimation;
  8047. float radius;
  8048. /* readonly */
  8049. int refs;
  8050. bool temporary;
  8051. /* readonly */
  8052. StringHash type;
  8053. /* readonly */
  8054. String typeName;
  8055. /* readonly */
  8056. int weakRefs;
  8057. };
  8058. class PackageFile
  8059. {
  8060. public:
  8061. PackageFile();
  8062. PackageFile(const String&in, uint startOffset = 0);
  8063. // Methods:
  8064. bool Exists(const String&) const;
  8065. Array<String> GetEntryNames() const;
  8066. bool HasSubscribedToEvent(Object, const String&);
  8067. bool HasSubscribedToEvent(const String&);
  8068. bool Open(const String&, uint = 0) const;
  8069. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8070. bool compressed() const;
  8071. // Properties:
  8072. /* readonly */
  8073. String category;
  8074. /* readonly */
  8075. uint checksum;
  8076. /* readonly */
  8077. String name;
  8078. /* readonly */
  8079. uint numFiles;
  8080. /* readonly */
  8081. int refs;
  8082. /* readonly */
  8083. uint totalDataSize;
  8084. /* readonly */
  8085. uint totalSize;
  8086. /* readonly */
  8087. StringHash type;
  8088. /* readonly */
  8089. String typeName;
  8090. /* readonly */
  8091. int weakRefs;
  8092. };
  8093. class ParticleEffect
  8094. {
  8095. public:
  8096. ParticleEffect();
  8097. ParticleEffect(const String&in);
  8098. // Methods:
  8099. void AddColorFrame(ColorFrame);
  8100. void AddColorTime(Color&, float);
  8101. void AddTextureFrame(TextureFrame);
  8102. void AddTextureTime(Rect&, float);
  8103. ParticleEffect Clone(const String& = String ( )) const;
  8104. ColorFrame GetColorFrame(uint) const;
  8105. TextureFrame GetTextureFrame(uint) const;
  8106. bool HasSubscribedToEvent(Object, const String&);
  8107. bool HasSubscribedToEvent(const String&);
  8108. bool Load(File);
  8109. bool Load(VectorBuffer&);
  8110. bool Load(const String&);
  8111. bool Load(const XMLElement&);
  8112. void RemoveColorFrame(uint);
  8113. void RemoveTextureFrame(uint);
  8114. bool Save(File) const;
  8115. bool Save(VectorBuffer&) const;
  8116. bool Save(XMLElement&) const;
  8117. bool Save(const String&) const;
  8118. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8119. void SetColorFrame(uint, ColorFrame);
  8120. void SetTextureFrame(uint, TextureFrame);
  8121. void SortColorFrames();
  8122. void SortTextureFrames();
  8123. // Properties:
  8124. float activeTime;
  8125. float animationLodBias;
  8126. /* readonly */
  8127. String category;
  8128. Vector3 constantForce;
  8129. float dampingForce;
  8130. Vector3 emitterSize;
  8131. EmitterType emitterType;
  8132. FaceCameraMode faceCameraMode;
  8133. bool fixedScreenSize;
  8134. float inactiveTime;
  8135. Material material;
  8136. Vector3 maxDirection;
  8137. float maxEmissionRate;
  8138. Vector2 maxParticleSize;
  8139. float maxRotation;
  8140. float maxRotationSpeed;
  8141. float maxTimeToLive;
  8142. float maxVelocity;
  8143. /* readonly */
  8144. uint memoryUse;
  8145. Vector3 minDirection;
  8146. float minEmissionRate;
  8147. Vector2 minParticleSize;
  8148. float minRotation;
  8149. float minRotationSpeed;
  8150. float minTimeToLive;
  8151. float minVelocity;
  8152. String name;
  8153. uint numColorFrames;
  8154. uint numParticles;
  8155. uint numTextureFrames;
  8156. /* readonly */
  8157. int refs;
  8158. bool relative;
  8159. bool scaled;
  8160. float sizeAdd;
  8161. float sizeMul;
  8162. bool sorted;
  8163. /* readonly */
  8164. StringHash type;
  8165. /* readonly */
  8166. String typeName;
  8167. bool updateInvisible;
  8168. /* readonly */
  8169. uint useTimer;
  8170. /* readonly */
  8171. int weakRefs;
  8172. };
  8173. class ParticleEffect2D
  8174. {
  8175. public:
  8176. ParticleEffect2D();
  8177. ParticleEffect2D(const String&in);
  8178. // Methods:
  8179. ParticleEffect2D Clone(const String& = String ( )) const;
  8180. bool HasSubscribedToEvent(Object, const String&);
  8181. bool HasSubscribedToEvent(const String&);
  8182. bool Load(File);
  8183. bool Load(VectorBuffer&);
  8184. bool Load(const String&);
  8185. bool Save(File) const;
  8186. bool Save(VectorBuffer&) const;
  8187. bool Save(const String&) const;
  8188. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8189. // Properties:
  8190. /* readonly */
  8191. String category;
  8192. /* readonly */
  8193. uint memoryUse;
  8194. String name;
  8195. /* readonly */
  8196. int refs;
  8197. /* readonly */
  8198. StringHash type;
  8199. /* readonly */
  8200. String typeName;
  8201. /* readonly */
  8202. uint useTimer;
  8203. /* readonly */
  8204. int weakRefs;
  8205. };
  8206. class ParticleEmitter
  8207. {
  8208. public:
  8209. // Methods:
  8210. void ApplyAttributes();
  8211. void ApplyEffect();
  8212. void Commit();
  8213. void DrawDebugGeometry(DebugRenderer, bool);
  8214. Variant GetAttribute(const String&) const;
  8215. ValueAnimation GetAttributeAnimation(const String&) const;
  8216. float GetAttributeAnimationSpeed(const String&) const;
  8217. float GetAttributeAnimationTime(const String&) const;
  8218. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8219. Variant GetAttributeDefault(const String&) const;
  8220. bool GetInterceptNetworkUpdate(const String&) const;
  8221. bool HasSubscribedToEvent(Object, const String&);
  8222. bool HasSubscribedToEvent(const String&);
  8223. bool IsInView(Camera) const;
  8224. bool Load(File, bool = false);
  8225. bool Load(VectorBuffer&, bool = false);
  8226. bool LoadJSON(const JSONValue&, bool = false);
  8227. bool LoadXML(const XMLElement&, bool = false);
  8228. void MarkNetworkUpdate() const;
  8229. void Remove();
  8230. void RemoveAllParticles();
  8231. void RemoveAttributeAnimation(const String&);
  8232. void RemoveInstanceDefault();
  8233. void RemoveObjectAnimation();
  8234. void Reset();
  8235. void ResetEmissionTimer();
  8236. void ResetToDefault();
  8237. bool Save(File) const;
  8238. bool Save(VectorBuffer&) const;
  8239. bool SaveJSON(JSONValue&) const;
  8240. bool SaveXML(XMLElement&) const;
  8241. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8242. void SetAnimationTime(float);
  8243. bool SetAttribute(const String&, const Variant&);
  8244. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8245. void SetAttributeAnimationSpeed(const String&, float);
  8246. void SetAttributeAnimationTime(const String&, float);
  8247. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8248. void SetInterceptNetworkUpdate(const String&, bool);
  8249. // Properties:
  8250. bool animationEnabled;
  8251. float animationLodBias;
  8252. /* readonly */
  8253. Array<Variant> attributeDefaults;
  8254. /* readonly */
  8255. Array<AttributeInfo> attributeInfos;
  8256. Array<Variant> attributes;
  8257. AutoRemoveMode autoRemoveMode;
  8258. /* readonly */
  8259. Array<Billboard> billboards;
  8260. /* readonly */
  8261. BoundingBox boundingBox;
  8262. bool castShadows;
  8263. /* readonly */
  8264. String category;
  8265. float drawDistance;
  8266. ParticleEffect effect;
  8267. bool emitting;
  8268. bool enabled;
  8269. /* readonly */
  8270. bool enabledEffective;
  8271. FaceCameraMode faceCameraMode;
  8272. bool fixedScreenSize;
  8273. /* readonly */
  8274. uint id;
  8275. /* readonly */
  8276. bool inView;
  8277. uint lightMask;
  8278. float lodBias;
  8279. Material material;
  8280. uint maxLights;
  8281. /* readonly */
  8282. Node node;
  8283. /* readonly */
  8284. uint numAttributes;
  8285. uint numBillboards;
  8286. uint numParticles;
  8287. ObjectAnimation objectAnimation;
  8288. bool occludee;
  8289. bool occluder;
  8290. /* readonly */
  8291. int refs;
  8292. bool relative;
  8293. bool scaled;
  8294. bool serializeParticles;
  8295. float shadowDistance;
  8296. uint shadowMask;
  8297. bool sorted;
  8298. bool temporary;
  8299. /* readonly */
  8300. StringHash type;
  8301. /* readonly */
  8302. String typeName;
  8303. uint viewMask;
  8304. /* readonly */
  8305. int weakRefs;
  8306. /* readonly */
  8307. BoundingBox worldBoundingBox;
  8308. /* readonly */
  8309. Zone zone;
  8310. uint zoneMask;
  8311. };
  8312. class ParticleEmitter2D
  8313. {
  8314. public:
  8315. // Methods:
  8316. void ApplyAttributes();
  8317. void DrawDebugGeometry(DebugRenderer, bool);
  8318. Variant GetAttribute(const String&) const;
  8319. ValueAnimation GetAttributeAnimation(const String&) const;
  8320. float GetAttributeAnimationSpeed(const String&) const;
  8321. float GetAttributeAnimationTime(const String&) const;
  8322. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8323. Variant GetAttributeDefault(const String&) const;
  8324. bool GetInterceptNetworkUpdate(const String&) const;
  8325. bool HasSubscribedToEvent(Object, const String&);
  8326. bool HasSubscribedToEvent(const String&);
  8327. bool IsInView(Camera) const;
  8328. bool Load(File, bool = false);
  8329. bool Load(VectorBuffer&, bool = false);
  8330. bool LoadJSON(const JSONValue&, bool = false);
  8331. bool LoadXML(const XMLElement&, bool = false);
  8332. void MarkNetworkUpdate() const;
  8333. void Remove();
  8334. void RemoveAttributeAnimation(const String&);
  8335. void RemoveInstanceDefault();
  8336. void RemoveObjectAnimation();
  8337. void ResetToDefault();
  8338. bool Save(File) const;
  8339. bool Save(VectorBuffer&) const;
  8340. bool SaveJSON(JSONValue&) const;
  8341. bool SaveXML(XMLElement&) const;
  8342. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8343. void SetAnimationTime(float);
  8344. bool SetAttribute(const String&, const Variant&);
  8345. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8346. void SetAttributeAnimationSpeed(const String&, float);
  8347. void SetAttributeAnimationTime(const String&, float);
  8348. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8349. void SetInterceptNetworkUpdate(const String&, bool);
  8350. // Properties:
  8351. bool animationEnabled;
  8352. /* readonly */
  8353. Array<Variant> attributeDefaults;
  8354. /* readonly */
  8355. Array<AttributeInfo> attributeInfos;
  8356. Array<Variant> attributes;
  8357. BlendMode blendMode;
  8358. /* readonly */
  8359. BoundingBox boundingBox;
  8360. bool castShadows;
  8361. /* readonly */
  8362. String category;
  8363. float drawDistance;
  8364. ParticleEffect2D effect;
  8365. bool emitting;
  8366. bool enabled;
  8367. /* readonly */
  8368. bool enabledEffective;
  8369. /* readonly */
  8370. uint id;
  8371. /* readonly */
  8372. bool inView;
  8373. int layer;
  8374. uint lightMask;
  8375. float lodBias;
  8376. uint maxLights;
  8377. /* readonly */
  8378. Node node;
  8379. /* readonly */
  8380. uint numAttributes;
  8381. ObjectAnimation objectAnimation;
  8382. bool occludee;
  8383. bool occluder;
  8384. int orderInLayer;
  8385. /* readonly */
  8386. int refs;
  8387. float shadowDistance;
  8388. uint shadowMask;
  8389. Sprite2D sprite;
  8390. bool temporary;
  8391. /* readonly */
  8392. StringHash type;
  8393. /* readonly */
  8394. String typeName;
  8395. uint viewMask;
  8396. /* readonly */
  8397. int weakRefs;
  8398. /* readonly */
  8399. BoundingBox worldBoundingBox;
  8400. uint zoneMask;
  8401. };
  8402. class Pass
  8403. {
  8404. public:
  8405. // Properties:
  8406. bool alphaToCoverage;
  8407. BlendMode blendMode;
  8408. CullMode cullMode;
  8409. CompareMode depthTestMode;
  8410. bool depthWrite;
  8411. bool desktop;
  8412. PassLightingMode lightingMode;
  8413. String pixelShader;
  8414. String pixelShaderDefineExcludes;
  8415. String pixelShaderDefines;
  8416. /* readonly */
  8417. int refs;
  8418. String vertexShader;
  8419. String vertexShaderDefineExcludes;
  8420. String vertexShaderDefines;
  8421. /* readonly */
  8422. int weakRefs;
  8423. };
  8424. class PhysicsRaycastResult
  8425. {
  8426. public:
  8427. ~PhysicsRaycastResult();
  8428. PhysicsRaycastResult();
  8429. // Properties:
  8430. /* readonly */
  8431. RigidBody body;
  8432. float distance;
  8433. float hitFraction;
  8434. Vector3 normal;
  8435. Vector3 position;
  8436. };
  8437. class PhysicsRaycastResult2D
  8438. {
  8439. public:
  8440. ~PhysicsRaycastResult2D();
  8441. PhysicsRaycastResult2D();
  8442. // Properties:
  8443. /* readonly */
  8444. RigidBody2D body;
  8445. float distance;
  8446. Vector2 normal;
  8447. Vector2 position;
  8448. };
  8449. class PhysicsWorld
  8450. {
  8451. public:
  8452. // Methods:
  8453. void ApplyAttributes();
  8454. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  8455. void DrawDebugGeometry(DebugRenderer, bool);
  8456. void DrawDebugGeometry(bool);
  8457. Variant GetAttribute(const String&) const;
  8458. ValueAnimation GetAttributeAnimation(const String&) const;
  8459. float GetAttributeAnimationSpeed(const String&) const;
  8460. float GetAttributeAnimationTime(const String&) const;
  8461. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8462. Variant GetAttributeDefault(const String&) const;
  8463. Array<RigidBody> GetCollidingBodies(RigidBody);
  8464. bool GetInterceptNetworkUpdate(const String&) const;
  8465. Array<RigidBody> GetRigidBodies(RigidBody);
  8466. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  8467. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  8468. bool HasSubscribedToEvent(Object, const String&);
  8469. bool HasSubscribedToEvent(const String&);
  8470. bool Load(File, bool = false);
  8471. bool Load(VectorBuffer&, bool = false);
  8472. bool LoadJSON(const JSONValue&, bool = false);
  8473. bool LoadXML(const XMLElement&, bool = false);
  8474. void MarkNetworkUpdate() const;
  8475. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  8476. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  8477. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  8478. void Remove();
  8479. void RemoveAttributeAnimation(const String&);
  8480. void RemoveCachedGeometry(Model);
  8481. void RemoveInstanceDefault();
  8482. void RemoveObjectAnimation();
  8483. void ResetToDefault();
  8484. bool Save(File) const;
  8485. bool Save(VectorBuffer&) const;
  8486. bool SaveJSON(JSONValue&) const;
  8487. bool SaveXML(XMLElement&) const;
  8488. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8489. void SetAnimationTime(float);
  8490. bool SetAttribute(const String&, const Variant&);
  8491. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8492. void SetAttributeAnimationSpeed(const String&, float);
  8493. void SetAttributeAnimationTime(const String&, float);
  8494. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8495. void SetInterceptNetworkUpdate(const String&, bool);
  8496. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  8497. void Update(float);
  8498. void UpdateCollisions();
  8499. // Properties:
  8500. bool animationEnabled;
  8501. /* readonly */
  8502. Array<Variant> attributeDefaults;
  8503. /* readonly */
  8504. Array<AttributeInfo> attributeInfos;
  8505. Array<Variant> attributes;
  8506. /* readonly */
  8507. String category;
  8508. bool enabled;
  8509. /* readonly */
  8510. bool enabledEffective;
  8511. int fps;
  8512. Vector3 gravity;
  8513. /* readonly */
  8514. uint id;
  8515. bool internalEdge;
  8516. bool interpolation;
  8517. int maxSubSteps;
  8518. /* readonly */
  8519. Node node;
  8520. /* readonly */
  8521. uint numAttributes;
  8522. int numIterations;
  8523. ObjectAnimation objectAnimation;
  8524. /* readonly */
  8525. int refs;
  8526. bool splitImpulse;
  8527. bool temporary;
  8528. /* readonly */
  8529. StringHash type;
  8530. /* readonly */
  8531. String typeName;
  8532. bool updateEnabled;
  8533. /* readonly */
  8534. int weakRefs;
  8535. };
  8536. class PhysicsWorld2D
  8537. {
  8538. public:
  8539. // Methods:
  8540. void ApplyAttributes();
  8541. void DrawDebugGeometry() const;
  8542. void DrawDebugGeometry(DebugRenderer, bool);
  8543. Variant GetAttribute(const String&) const;
  8544. ValueAnimation GetAttributeAnimation(const String&) const;
  8545. float GetAttributeAnimationSpeed(const String&) const;
  8546. float GetAttributeAnimationTime(const String&) const;
  8547. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8548. Variant GetAttributeDefault(const String&) const;
  8549. bool GetInterceptNetworkUpdate(const String&) const;
  8550. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8551. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8552. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8553. bool HasSubscribedToEvent(Object, const String&);
  8554. bool HasSubscribedToEvent(const String&);
  8555. bool Load(File, bool = false);
  8556. bool Load(VectorBuffer&, bool = false);
  8557. bool LoadJSON(const JSONValue&, bool = false);
  8558. bool LoadXML(const XMLElement&, bool = false);
  8559. void MarkNetworkUpdate() const;
  8560. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8561. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8562. void Remove();
  8563. void RemoveAttributeAnimation(const String&);
  8564. void RemoveInstanceDefault();
  8565. void RemoveObjectAnimation();
  8566. void ResetToDefault();
  8567. bool Save(File) const;
  8568. bool Save(VectorBuffer&) const;
  8569. bool SaveJSON(JSONValue&) const;
  8570. bool SaveXML(XMLElement&) const;
  8571. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8572. void SetAnimationTime(float);
  8573. bool SetAttribute(const String&, const Variant&);
  8574. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8575. void SetAttributeAnimationSpeed(const String&, float);
  8576. void SetAttributeAnimationTime(const String&, float);
  8577. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8578. void SetInterceptNetworkUpdate(const String&, bool);
  8579. // Properties:
  8580. bool allowSleeping;
  8581. bool animationEnabled;
  8582. /* readonly */
  8583. Array<Variant> attributeDefaults;
  8584. /* readonly */
  8585. Array<AttributeInfo> attributeInfos;
  8586. Array<Variant> attributes;
  8587. bool autoClearForces;
  8588. /* readonly */
  8589. String category;
  8590. bool continuousPhysics;
  8591. bool drawAabb;
  8592. bool drawCenterOfMass;
  8593. bool drawJoint;
  8594. bool drawPair;
  8595. bool drawShape;
  8596. bool enabled;
  8597. /* readonly */
  8598. bool enabledEffective;
  8599. Vector2 gravity;
  8600. /* readonly */
  8601. uint id;
  8602. /* readonly */
  8603. Node node;
  8604. /* readonly */
  8605. uint numAttributes;
  8606. ObjectAnimation objectAnimation;
  8607. uint positionIterations;
  8608. /* readonly */
  8609. int refs;
  8610. bool subStepping;
  8611. bool temporary;
  8612. /* readonly */
  8613. StringHash type;
  8614. /* readonly */
  8615. String typeName;
  8616. bool updateEnabled;
  8617. uint velocityIterations;
  8618. bool warmStarting;
  8619. /* readonly */
  8620. int weakRefs;
  8621. };
  8622. class Plane
  8623. {
  8624. public:
  8625. Plane();
  8626. Plane(const Plane&in);
  8627. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  8628. Plane(const Vector3&in, const Vector3&in);
  8629. Plane(const Vector4&in);
  8630. // Methods:
  8631. void Define(const Vector3&, const Vector3&);
  8632. void Define(const Vector3&, const Vector3&, const Vector3&);
  8633. void Define(const Vector4&);
  8634. float Distance(const Vector3&) const;
  8635. Vector3 Project(const Vector3&) const;
  8636. Vector3 Reflect(const Vector3&) const;
  8637. Vector4 ToVector4() const;
  8638. void Transform(const Matrix3&);
  8639. void Transform(const Matrix3x4&);
  8640. void Transform(const Matrix4&);
  8641. Plane Transformed(const Matrix3&) const;
  8642. Plane Transformed(const Matrix3x4&) const;
  8643. Plane Transformed(const Matrix4&) const;
  8644. // Properties:
  8645. Vector3 absNormal;
  8646. float d;
  8647. Vector3 normal;
  8648. /* readonly */
  8649. Matrix3x4 reflectionMatrix;
  8650. };
  8651. class Polyhedron
  8652. {
  8653. public:
  8654. ~Polyhedron();
  8655. Polyhedron();
  8656. Polyhedron(const Polyhedron&in);
  8657. Polyhedron(const BoundingBox&in);
  8658. Polyhedron(const Frustum&in);
  8659. // Methods:
  8660. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8661. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8662. void AddFace(const Array<Vector3>);
  8663. void Clear();
  8664. void Clip(const BoundingBox&);
  8665. void Clip(const Frustum&);
  8666. void Define(const BoundingBox&);
  8667. void Define(const Frustum&);
  8668. void Transform(const Matrix3&);
  8669. void Transform(const Matrix3x4&);
  8670. Polyhedron Transformed(const Matrix3&) const;
  8671. Polyhedron Transformed(const Matrix3x4&) const;
  8672. // Properties:
  8673. /* readonly */
  8674. Array<Array<Vector3>> face;
  8675. /* readonly */
  8676. uint numFaces;
  8677. };
  8678. class ProgressBar
  8679. {
  8680. public:
  8681. // Methods:
  8682. void ChangeValue(float);
  8683. bool HasSubscribedToEvent(Object, const String&);
  8684. bool HasSubscribedToEvent(const String&);
  8685. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8686. void SetLoadingPercentStyle(const String&);
  8687. // Properties:
  8688. /* readonly */
  8689. String category;
  8690. /* readonly */
  8691. BorderImage knob;
  8692. Orientation orientation;
  8693. float range;
  8694. /* readonly */
  8695. int refs;
  8696. bool showPercentText;
  8697. /* readonly */
  8698. StringHash type;
  8699. /* readonly */
  8700. String typeName;
  8701. float value;
  8702. /* readonly */
  8703. int weakRefs;
  8704. };
  8705. class PropertySet2D
  8706. {
  8707. public:
  8708. // Methods:
  8709. bool HasProperty(const String&) const;
  8710. const String& GetProperty(const String&) const;
  8711. // Properties:
  8712. /* readonly */
  8713. int refs;
  8714. /* readonly */
  8715. int weakRefs;
  8716. };
  8717. class Quaternion
  8718. {
  8719. public:
  8720. Quaternion();
  8721. Quaternion(const Quaternion&in);
  8722. Quaternion(float, float, float, float);
  8723. Quaternion(float, const Vector3&in);
  8724. Quaternion(float);
  8725. Quaternion(float, float, float);
  8726. Quaternion(const Vector3&in);
  8727. Quaternion(const Vector3&in, const Vector3&in);
  8728. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  8729. Quaternion(const Matrix3&in);
  8730. // Methods:
  8731. Quaternion Conjugate() const;
  8732. float DotProduct(const Quaternion&) const;
  8733. bool Equals(const Quaternion&) const;
  8734. void FromAngleAxis(float, const Vector3&);
  8735. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8736. void FromEulerAngles(float, float, float);
  8737. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8738. void FromRotationMatrix(const Matrix3&);
  8739. void FromRotationTo(const Vector3&, const Vector3&);
  8740. Quaternion Inverse() const;
  8741. bool IsNaN() const;
  8742. float LengthSquared() const;
  8743. Quaternion Nlerp(const Quaternion&, float, bool) const;
  8744. void Normalize();
  8745. Quaternion Normalized() const;
  8746. Quaternion Slerp(const Quaternion&, float) const;
  8747. String ToString() const;
  8748. // Properties:
  8749. /* readonly */
  8750. float angle;
  8751. /* readonly */
  8752. Vector3 axis;
  8753. /* readonly */
  8754. Vector3 eulerAngles;
  8755. /* readonly */
  8756. float pitch;
  8757. /* readonly */
  8758. float roll;
  8759. /* readonly */
  8760. Matrix3 rotationMatrix;
  8761. float w;
  8762. float x;
  8763. float y;
  8764. /* readonly */
  8765. float yaw;
  8766. float z;
  8767. };
  8768. class Ray
  8769. {
  8770. public:
  8771. Ray();
  8772. Ray(const Ray&in);
  8773. Ray(const Vector3&in, const Vector3&in);
  8774. // Methods:
  8775. Vector3 ClosestPoint(const Ray&) const;
  8776. void Define(const Vector3&, const Vector3&);
  8777. float Distance(const Vector3&) const;
  8778. float HitDistance(const BoundingBox&) const;
  8779. float HitDistance(const Frustum&, bool = true) const;
  8780. float HitDistance(const Plane&) const;
  8781. float HitDistance(const Sphere&) const;
  8782. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8783. Vector3 Project(const Vector3&) const;
  8784. Ray Transformed(const Matrix3x4&) const;
  8785. // Properties:
  8786. Vector3 direction;
  8787. Vector3 origin;
  8788. };
  8789. class RayQueryResult
  8790. {
  8791. public:
  8792. RayQueryResult();
  8793. // Properties:
  8794. float distance;
  8795. /* readonly */
  8796. Drawable drawable;
  8797. /* readonly */
  8798. Node node;
  8799. Vector3 normal;
  8800. Vector3 position;
  8801. uint subObject;
  8802. Vector2 textureUV;
  8803. };
  8804. class RaycastVehicle
  8805. {
  8806. public:
  8807. // Methods:
  8808. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  8809. void ApplyAttributes();
  8810. void DrawDebugGeometry(DebugRenderer, bool);
  8811. Variant GetAttribute(const String&) const;
  8812. ValueAnimation GetAttributeAnimation(const String&) const;
  8813. float GetAttributeAnimationSpeed(const String&) const;
  8814. float GetAttributeAnimationTime(const String&) const;
  8815. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8816. Variant GetAttributeDefault(const String&) const;
  8817. float GetBrake(int);
  8818. Vector3 GetContactNormal(int);
  8819. Vector3 GetContactPosition(int);
  8820. float GetEngineForce(int);
  8821. bool GetInterceptNetworkUpdate(const String&) const;
  8822. float GetMaxSuspensionTravel(int);
  8823. float GetSteeringValue(int);
  8824. Vector3 GetWheelAxle(int);
  8825. Vector3 GetWheelConnectionPoint(int);
  8826. float GetWheelDampingCompression(int);
  8827. float GetWheelDampingRelaxation(int);
  8828. Vector3 GetWheelDirection(int);
  8829. float GetWheelFrictionSlip(int);
  8830. Node GetWheelNode(int);
  8831. Vector3 GetWheelPosition(int);
  8832. float GetWheelRadius(int);
  8833. float GetWheelRestLength(int);
  8834. float GetWheelRollInfluence(int);
  8835. Vector3 GetWheelRotation(int);
  8836. float GetWheelSideSlipSpeed(int);
  8837. float GetWheelSkidInfo(int);
  8838. float GetWheelSkidInfoCumulative(int);
  8839. float GetWheelSuspensionStiffness(int);
  8840. bool HasSubscribedToEvent(Object, const String&);
  8841. bool HasSubscribedToEvent(const String&);
  8842. void Init();
  8843. bool IsFrontWheel(int);
  8844. bool Load(File, bool = false);
  8845. bool Load(VectorBuffer&, bool = false);
  8846. bool LoadJSON(const JSONValue&, bool = false);
  8847. bool LoadXML(const XMLElement&, bool = false);
  8848. void MarkNetworkUpdate() const;
  8849. void Remove();
  8850. void RemoveAttributeAnimation(const String&);
  8851. void RemoveInstanceDefault();
  8852. void RemoveObjectAnimation();
  8853. void ResetSuspension();
  8854. void ResetToDefault();
  8855. void ResetWheels();
  8856. bool Save(File) const;
  8857. bool Save(VectorBuffer&) const;
  8858. bool SaveJSON(JSONValue&) const;
  8859. bool SaveXML(XMLElement&) const;
  8860. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8861. void SetAnimationTime(float);
  8862. bool SetAttribute(const String&, const Variant&);
  8863. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8864. void SetAttributeAnimationSpeed(const String&, float);
  8865. void SetAttributeAnimationTime(const String&, float);
  8866. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8867. void SetBrake(int, float);
  8868. void SetEngineForce(int, float);
  8869. void SetInterceptNetworkUpdate(const String&, bool);
  8870. void SetMaxSuspensionTravel(int, float);
  8871. void SetSteeringValue(int, float);
  8872. void SetWheelAxle(int, Vector3);
  8873. void SetWheelDampingCompression(int, float);
  8874. void SetWheelDampingRelaxation(int, float);
  8875. void SetWheelDirection(int, Vector3);
  8876. void SetWheelFrictionSlip(int, float);
  8877. void SetWheelRadius(int, float);
  8878. void SetWheelRestLength(int, float);
  8879. void SetWheelRollInfluence(int, float);
  8880. void SetWheelSkidInfo(int, float);
  8881. void SetWheelSkidInfoCumulative(int, float);
  8882. void SetWheelSuspensionStiffness(int, float);
  8883. void UpdateWheelTransform(int, bool);
  8884. bool WheelIsGrounded(int);
  8885. // Properties:
  8886. bool animationEnabled;
  8887. /* readonly */
  8888. Array<Variant> attributeDefaults;
  8889. /* readonly */
  8890. Array<AttributeInfo> attributeInfos;
  8891. Array<Variant> attributes;
  8892. /* readonly */
  8893. String category;
  8894. bool enabled;
  8895. /* readonly */
  8896. bool enabledEffective;
  8897. /* readonly */
  8898. uint id;
  8899. float inAirRPM;
  8900. float maxSideSlipSpeed;
  8901. /* readonly */
  8902. Node node;
  8903. /* readonly */
  8904. uint numAttributes;
  8905. /* readonly */
  8906. int numWheels;
  8907. ObjectAnimation objectAnimation;
  8908. /* readonly */
  8909. int refs;
  8910. bool temporary;
  8911. /* readonly */
  8912. StringHash type;
  8913. /* readonly */
  8914. String typeName;
  8915. /* readonly */
  8916. int weakRefs;
  8917. };
  8918. class Rect
  8919. {
  8920. public:
  8921. Rect();
  8922. Rect(const Rect&in);
  8923. Rect(float, float, float, float);
  8924. Rect(const Vector2&in, const Vector2&in);
  8925. Rect(const Vector4&in);
  8926. // Methods:
  8927. void Clear();
  8928. void Clip(const Rect&);
  8929. void Define(const Vector2&);
  8930. void Define(const Vector2&, const Vector2&);
  8931. bool Defined() const;
  8932. bool Equals(const Rect&) const;
  8933. Intersection IsInside(const Rect&) const;
  8934. Intersection IsInside(const Vector2&) const;
  8935. void Merge(const Rect&);
  8936. void Merge(const Vector2&);
  8937. Vector4 ToVector4() const;
  8938. // Properties:
  8939. float bottom;
  8940. /* readonly */
  8941. Vector2 center;
  8942. /* readonly */
  8943. Vector2 halfSize;
  8944. float left;
  8945. Vector2 max;
  8946. Vector2 min;
  8947. float right;
  8948. /* readonly */
  8949. Vector2 size;
  8950. float top;
  8951. };
  8952. class RefCounted
  8953. {
  8954. public:
  8955. // Properties:
  8956. /* readonly */
  8957. int refs;
  8958. /* readonly */
  8959. int weakRefs;
  8960. };
  8961. class RenderPath
  8962. {
  8963. public:
  8964. RenderPath();
  8965. // Methods:
  8966. void AddCommand(const RenderPathCommand&);
  8967. void AddRenderTarget(const RenderTargetInfo&);
  8968. bool Append(XMLFile);
  8969. RenderPath Clone();
  8970. void InsertCommand(uint, const RenderPathCommand&);
  8971. bool Load(XMLFile);
  8972. void RemoveCommand(uint);
  8973. void RemoveCommands(const String&);
  8974. void RemoveRenderTarget(const String&);
  8975. void RemoveRenderTarget(uint);
  8976. void RemoveRenderTargts(const String&);
  8977. void SetEnabled(const String&, bool);
  8978. void ToggleEnabled(const String&);
  8979. // Properties:
  8980. Array<RenderPathCommand> commands;
  8981. /* readonly */
  8982. uint numCommands;
  8983. /* readonly */
  8984. uint numRenderTargets;
  8985. /* readonly */
  8986. int refs;
  8987. Array<RenderTargetInfo> renderTargets;
  8988. Array<Variant> shaderParameters;
  8989. /* readonly */
  8990. int weakRefs;
  8991. };
  8992. class RenderPathCommand
  8993. {
  8994. public:
  8995. ~RenderPathCommand();
  8996. RenderPathCommand();
  8997. RenderPathCommand(const RenderPathCommand&in);
  8998. // Methods:
  8999. void RemoveShaderParameter(const String&);
  9000. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  9001. // Properties:
  9002. BlendMode blendMode;
  9003. Color clearColor;
  9004. float clearDepth;
  9005. uint clearFlags;
  9006. uint clearStencil;
  9007. String depthStencilName;
  9008. bool enabled;
  9009. String eventName;
  9010. bool markToStencil;
  9011. String metadata;
  9012. uint numOutputs;
  9013. Array<CubeMapFace> outputFaces;
  9014. Array<String> outputNames;
  9015. String pass;
  9016. String pixelShaderDefines;
  9017. String pixelShaderName;
  9018. Array<Variant> shaderParameters;
  9019. RenderCommandSortMode sortMode;
  9020. String tag;
  9021. Array<String> textureNames;
  9022. RenderCommandType type;
  9023. bool useFogColor;
  9024. bool useLitBase;
  9025. bool vertexLights;
  9026. String vertexShaderDefines;
  9027. String vertexShaderName;
  9028. };
  9029. class RenderSurface
  9030. {
  9031. public:
  9032. // Methods:
  9033. void QueueUpdate();
  9034. // Properties:
  9035. /* readonly */
  9036. int height;
  9037. RenderSurface linkedDepthStencil;
  9038. RenderSurface linkedRenderTarget;
  9039. uint numViewports;
  9040. /* readonly */
  9041. Texture parentTexture;
  9042. /* readonly */
  9043. bool resolveDirty;
  9044. RenderSurfaceUpdateMode updateMode;
  9045. /* readonly */
  9046. TextureUsage usage;
  9047. Array<Viewport> viewports;
  9048. /* readonly */
  9049. int width;
  9050. };
  9051. class RenderTargetInfo
  9052. {
  9053. public:
  9054. ~RenderTargetInfo();
  9055. RenderTargetInfo();
  9056. RenderTargetInfo(const RenderTargetInfo&in);
  9057. // Properties:
  9058. bool autoResolve;
  9059. bool cubemap;
  9060. bool enabled;
  9061. bool filtered;
  9062. uint format;
  9063. int multiSample;
  9064. String name;
  9065. bool persistent;
  9066. bool sRGB;
  9067. Vector2 size;
  9068. RenderTargetSizeMode sizeMode;
  9069. String tag;
  9070. };
  9071. class Renderer
  9072. {
  9073. public:
  9074. // Methods:
  9075. void DrawDebugGeometry(bool) const;
  9076. Viewport GetViewportForScene(Scene, uint);
  9077. bool HasSubscribedToEvent(Object, const String&);
  9078. bool HasSubscribedToEvent(const String&);
  9079. void ReloadShaders() const;
  9080. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9081. void SetDefaultRenderPath(XMLFile);
  9082. void SetVSMShadowParameters(float, float);
  9083. // Properties:
  9084. /* readonly */
  9085. String category;
  9086. /* readonly */
  9087. Material defaultLightRamp;
  9088. /* readonly */
  9089. Material defaultLightSpot;
  9090. /* readonly */
  9091. Material defaultMaterial;
  9092. RenderPath defaultRenderPath;
  9093. Technique defaultTechnique;
  9094. /* readonly */
  9095. Zone defaultZone;
  9096. bool drawShadows;
  9097. bool dynamicInstancing;
  9098. bool hdrRendering;
  9099. int materialQuality;
  9100. int maxOccluderTriangles;
  9101. int maxShadowMaps;
  9102. int maxSortedInstances;
  9103. int minInstances;
  9104. float mobileNormalOffsetMul;
  9105. float mobileShadowBiasAdd;
  9106. float mobileShadowBiasMul;
  9107. /* readonly */
  9108. uint numBatches;
  9109. int numExtraInstancingBufferElements;
  9110. /* readonly */
  9111. Array<uint> numGeometries;
  9112. /* readonly */
  9113. Array<uint> numLights;
  9114. /* readonly */
  9115. Array<uint> numOccluders;
  9116. /* readonly */
  9117. uint numPrimitives;
  9118. /* readonly */
  9119. Array<uint> numShadowMaps;
  9120. uint numViewports;
  9121. /* readonly */
  9122. uint numViews;
  9123. float occluderSizeThreshold;
  9124. int occlusionBufferSize;
  9125. /* readonly */
  9126. int refs;
  9127. bool reuseShadowMaps;
  9128. int shadowMapSize;
  9129. ShadowQuality shadowQuality;
  9130. float shadowSoftness;
  9131. bool specularLighting;
  9132. int textureAnisotropy;
  9133. TextureFilterMode textureFilterMode;
  9134. int textureQuality;
  9135. bool threadedOcclusion;
  9136. /* readonly */
  9137. StringHash type;
  9138. /* readonly */
  9139. String typeName;
  9140. Array<Viewport> viewports;
  9141. int vsmMultiSample;
  9142. Vector2 vsmShadowParameters;
  9143. /* readonly */
  9144. int weakRefs;
  9145. };
  9146. class Resource
  9147. {
  9148. public:
  9149. // Methods:
  9150. bool HasSubscribedToEvent(Object, const String&);
  9151. bool HasSubscribedToEvent(const String&);
  9152. bool Load(File);
  9153. bool Load(VectorBuffer&);
  9154. bool Load(const String&);
  9155. bool Save(File) const;
  9156. bool Save(VectorBuffer&) const;
  9157. bool Save(const String&) const;
  9158. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9159. // Properties:
  9160. /* readonly */
  9161. String category;
  9162. /* readonly */
  9163. uint memoryUse;
  9164. String name;
  9165. /* readonly */
  9166. int refs;
  9167. /* readonly */
  9168. StringHash type;
  9169. /* readonly */
  9170. String typeName;
  9171. /* readonly */
  9172. uint useTimer;
  9173. /* readonly */
  9174. int weakRefs;
  9175. };
  9176. class ResourceCache
  9177. {
  9178. public:
  9179. // Methods:
  9180. bool AddManualResource(Resource);
  9181. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  9182. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  9183. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  9184. bool BackgroundLoadResource(const String&, const String&, bool = true);
  9185. bool Exists(const String&) const;
  9186. Resource GetExistingResource(StringHash, const String&);
  9187. Resource GetExistingResource(const String&, const String&);
  9188. File GetFile(const String&);
  9189. String GetPreferredResourceDir(const String&) const;
  9190. Resource GetResource(StringHash, const String&, bool = true);
  9191. Resource GetResource(const String&, const String&, bool = true);
  9192. String GetResourceFileName(const String&) const;
  9193. Array<Resource> GetResources(StringHash);
  9194. Array<Resource> GetResources(const String&);
  9195. bool HasSubscribedToEvent(Object, const String&);
  9196. bool HasSubscribedToEvent(const String&);
  9197. void ReleaseAllResources(bool = false);
  9198. void ReleaseResource(const String&, const String&, bool = false);
  9199. void ReleaseResources(StringHash, bool = false);
  9200. void ReleaseResources(const String&, bool = false);
  9201. void ReleaseResources(const String&, const String&, bool = false);
  9202. bool ReloadResource(Resource);
  9203. void ReloadResourceWithDependencies(const String&);
  9204. void RemovePackageFile(PackageFile, bool = true, bool = false);
  9205. void RemovePackageFile(const String&, bool = true, bool = false);
  9206. void RemoveResourceDir(const String&);
  9207. String SanitateResourceDirName(const String&) const;
  9208. String SanitateResourceName(const String&) const;
  9209. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9210. // Properties:
  9211. bool autoReloadResources;
  9212. /* readonly */
  9213. String category;
  9214. int finishBackgroundResourcesMs;
  9215. Array<uint64> memoryBudget;
  9216. /* readonly */
  9217. Array<uint64> memoryUse;
  9218. /* readonly */
  9219. uint numBackgroundLoadResources;
  9220. /* readonly */
  9221. Array<PackageFile> packageFiles;
  9222. /* readonly */
  9223. int refs;
  9224. /* readonly */
  9225. Array<String> resourceDirs;
  9226. bool returnFailedResources;
  9227. /* readonly */
  9228. bool seachPackagesFirst;
  9229. /* writeonly */
  9230. bool searchPackagesFirst;
  9231. /* readonly */
  9232. uint64 totalMemoryUse;
  9233. /* readonly */
  9234. StringHash type;
  9235. /* readonly */
  9236. String typeName;
  9237. /* readonly */
  9238. int weakRefs;
  9239. };
  9240. class ResourceRef
  9241. {
  9242. public:
  9243. ~ResourceRef();
  9244. ResourceRef();
  9245. ResourceRef(const ResourceRef&in);
  9246. ResourceRef(const String&in, const String&in);
  9247. // Properties:
  9248. String name;
  9249. StringHash type;
  9250. };
  9251. class ResourceRefList
  9252. {
  9253. public:
  9254. ~ResourceRefList();
  9255. ResourceRefList();
  9256. ResourceRefList(const ResourceRefList&in);
  9257. // Methods:
  9258. void Resize(uint);
  9259. // Properties:
  9260. /* readonly */
  9261. bool empty;
  9262. /* readonly */
  9263. uint length;
  9264. Array<String> names;
  9265. StringHash type;
  9266. };
  9267. class RibbonTrail
  9268. {
  9269. public:
  9270. // Methods:
  9271. void ApplyAttributes();
  9272. void Commit();
  9273. void DrawDebugGeometry(DebugRenderer, bool);
  9274. Variant GetAttribute(const String&) const;
  9275. ValueAnimation GetAttributeAnimation(const String&) const;
  9276. float GetAttributeAnimationSpeed(const String&) const;
  9277. float GetAttributeAnimationTime(const String&) const;
  9278. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9279. Variant GetAttributeDefault(const String&) const;
  9280. bool GetInterceptNetworkUpdate(const String&) const;
  9281. bool HasSubscribedToEvent(Object, const String&);
  9282. bool HasSubscribedToEvent(const String&);
  9283. bool IsInView(Camera) const;
  9284. bool Load(File, bool = false);
  9285. bool Load(VectorBuffer&, bool = false);
  9286. bool LoadJSON(const JSONValue&, bool = false);
  9287. bool LoadXML(const XMLElement&, bool = false);
  9288. void MarkNetworkUpdate() const;
  9289. void Remove();
  9290. void RemoveAttributeAnimation(const String&);
  9291. void RemoveInstanceDefault();
  9292. void RemoveObjectAnimation();
  9293. void ResetToDefault();
  9294. bool Save(File) const;
  9295. bool Save(VectorBuffer&) const;
  9296. bool SaveJSON(JSONValue&) const;
  9297. bool SaveXML(XMLElement&) const;
  9298. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9299. void SetAnimationTime(float);
  9300. bool SetAttribute(const String&, const Variant&);
  9301. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9302. void SetAttributeAnimationSpeed(const String&, float);
  9303. void SetAttributeAnimationTime(const String&, float);
  9304. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9305. void SetInterceptNetworkUpdate(const String&, bool);
  9306. // Properties:
  9307. bool animationEnabled;
  9308. float animationLodBias;
  9309. /* readonly */
  9310. Array<Variant> attributeDefaults;
  9311. /* readonly */
  9312. Array<AttributeInfo> attributeInfos;
  9313. Array<Variant> attributes;
  9314. /* readonly */
  9315. BoundingBox boundingBox;
  9316. bool castShadows;
  9317. /* readonly */
  9318. String category;
  9319. float drawDistance;
  9320. bool emitting;
  9321. bool enabled;
  9322. /* readonly */
  9323. bool enabledEffective;
  9324. Color endColor;
  9325. float endScale;
  9326. /* readonly */
  9327. uint id;
  9328. /* readonly */
  9329. bool inView;
  9330. float lifetime;
  9331. uint lightMask;
  9332. float lodBias;
  9333. Material material;
  9334. uint maxLights;
  9335. /* readonly */
  9336. Node node;
  9337. /* readonly */
  9338. uint numAttributes;
  9339. ObjectAnimation objectAnimation;
  9340. bool occludee;
  9341. bool occluder;
  9342. /* readonly */
  9343. int refs;
  9344. float shadowDistance;
  9345. uint shadowMask;
  9346. bool sorted;
  9347. Color startColor;
  9348. float startScale;
  9349. uint tailColumn;
  9350. bool temporary;
  9351. TrailType trailType;
  9352. /* readonly */
  9353. StringHash type;
  9354. /* readonly */
  9355. String typeName;
  9356. bool updateInvisible;
  9357. float vertexDistance;
  9358. uint viewMask;
  9359. /* readonly */
  9360. int weakRefs;
  9361. float width;
  9362. /* readonly */
  9363. BoundingBox worldBoundingBox;
  9364. /* readonly */
  9365. Zone zone;
  9366. uint zoneMask;
  9367. };
  9368. class RigidBody
  9369. {
  9370. public:
  9371. // Methods:
  9372. void Activate();
  9373. void ApplyAttributes();
  9374. void ApplyForce(const Vector3&);
  9375. void ApplyForce(const Vector3&, const Vector3&);
  9376. void ApplyImpulse(const Vector3&);
  9377. void ApplyImpulse(const Vector3&, const Vector3&);
  9378. void ApplyTorque(const Vector3&);
  9379. void ApplyTorqueImpulse(const Vector3&);
  9380. void DisableMassUpdate();
  9381. void DrawDebugGeometry(DebugRenderer, bool);
  9382. void EnableMassUpdate();
  9383. Variant GetAttribute(const String&) const;
  9384. ValueAnimation GetAttributeAnimation(const String&) const;
  9385. float GetAttributeAnimationSpeed(const String&) const;
  9386. float GetAttributeAnimationTime(const String&) const;
  9387. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9388. Variant GetAttributeDefault(const String&) const;
  9389. bool GetInterceptNetworkUpdate(const String&) const;
  9390. Vector3 GetVelocityAtPoint(const Vector3&) const;
  9391. bool HasSubscribedToEvent(Object, const String&);
  9392. bool HasSubscribedToEvent(const String&);
  9393. bool Load(File, bool = false);
  9394. bool Load(VectorBuffer&, bool = false);
  9395. bool LoadJSON(const JSONValue&, bool = false);
  9396. bool LoadXML(const XMLElement&, bool = false);
  9397. void MarkNetworkUpdate() const;
  9398. void ReAddBodyToWorld();
  9399. void Remove();
  9400. void RemoveAttributeAnimation(const String&);
  9401. void RemoveInstanceDefault();
  9402. void RemoveObjectAnimation();
  9403. void ResetForces();
  9404. void ResetToDefault();
  9405. bool Save(File) const;
  9406. bool Save(VectorBuffer&) const;
  9407. bool SaveJSON(JSONValue&) const;
  9408. bool SaveXML(XMLElement&) const;
  9409. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9410. void SetAnimationTime(float);
  9411. bool SetAttribute(const String&, const Variant&);
  9412. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9413. void SetAttributeAnimationSpeed(const String&, float);
  9414. void SetAttributeAnimationTime(const String&, float);
  9415. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9416. void SetCollisionLayerAndMask(uint, uint);
  9417. void SetInterceptNetworkUpdate(const String&, bool);
  9418. void SetTransform(const Vector3&, const Quaternion&);
  9419. // Properties:
  9420. /* readonly */
  9421. bool active;
  9422. float angularDamping;
  9423. Vector3 angularFactor;
  9424. float angularRestThreshold;
  9425. Vector3 angularVelocity;
  9426. bool animationEnabled;
  9427. Vector3 anisotropicFriction;
  9428. /* readonly */
  9429. Array<Variant> attributeDefaults;
  9430. /* readonly */
  9431. Array<AttributeInfo> attributeInfos;
  9432. Array<Variant> attributes;
  9433. /* readonly */
  9434. String category;
  9435. float ccdMotionThreshold;
  9436. float ccdRadius;
  9437. /* readonly */
  9438. Vector3 centerOfMass;
  9439. /* readonly */
  9440. Array<RigidBody> collidingBodies;
  9441. CollisionEventMode collisionEventMode;
  9442. uint collisionLayer;
  9443. uint collisionMask;
  9444. float contactProcessingThreshold;
  9445. bool enabled;
  9446. /* readonly */
  9447. bool enabledEffective;
  9448. float friction;
  9449. Vector3 gravityOverride;
  9450. /* readonly */
  9451. uint id;
  9452. bool kinematic;
  9453. float linearDamping;
  9454. Vector3 linearFactor;
  9455. float linearRestThreshold;
  9456. Vector3 linearVelocity;
  9457. float mass;
  9458. /* readonly */
  9459. Node node;
  9460. /* readonly */
  9461. uint numAttributes;
  9462. ObjectAnimation objectAnimation;
  9463. Vector3 position;
  9464. /* readonly */
  9465. int refs;
  9466. float restitution;
  9467. float rollingFriction;
  9468. Quaternion rotation;
  9469. bool temporary;
  9470. bool trigger;
  9471. /* readonly */
  9472. StringHash type;
  9473. /* readonly */
  9474. String typeName;
  9475. bool useGravity;
  9476. /* readonly */
  9477. int weakRefs;
  9478. };
  9479. class RigidBody2D
  9480. {
  9481. public:
  9482. // Methods:
  9483. void ApplyAngularImpulse(float, bool);
  9484. void ApplyAttributes();
  9485. void ApplyForce(const Vector2&, const Vector2&, bool);
  9486. void ApplyForceToCenter(const Vector2&, bool);
  9487. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  9488. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  9489. void ApplyTorque(float, bool);
  9490. void DrawDebugGeometry(DebugRenderer, bool);
  9491. Variant GetAttribute(const String&) const;
  9492. ValueAnimation GetAttributeAnimation(const String&) const;
  9493. float GetAttributeAnimationSpeed(const String&) const;
  9494. float GetAttributeAnimationTime(const String&) const;
  9495. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9496. Variant GetAttributeDefault(const String&) const;
  9497. bool GetInterceptNetworkUpdate(const String&) const;
  9498. bool HasSubscribedToEvent(Object, const String&);
  9499. bool HasSubscribedToEvent(const String&);
  9500. bool Load(File, bool = false);
  9501. bool Load(VectorBuffer&, bool = false);
  9502. bool LoadJSON(const JSONValue&, bool = false);
  9503. bool LoadXML(const XMLElement&, bool = false);
  9504. void MarkNetworkUpdate() const;
  9505. void Remove();
  9506. void RemoveAttributeAnimation(const String&);
  9507. void RemoveInstanceDefault();
  9508. void RemoveObjectAnimation();
  9509. void ResetToDefault();
  9510. bool Save(File) const;
  9511. bool Save(VectorBuffer&) const;
  9512. bool SaveJSON(JSONValue&) const;
  9513. bool SaveXML(XMLElement&) const;
  9514. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9515. void SetAnimationTime(float);
  9516. bool SetAttribute(const String&, const Variant&);
  9517. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9518. void SetAttributeAnimationSpeed(const String&, float);
  9519. void SetAttributeAnimationTime(const String&, float);
  9520. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9521. void SetInterceptNetworkUpdate(const String&, bool);
  9522. // Properties:
  9523. bool allowSleep;
  9524. float angularDamping;
  9525. bool animationEnabled;
  9526. /* readonly */
  9527. Array<Variant> attributeDefaults;
  9528. /* readonly */
  9529. Array<AttributeInfo> attributeInfos;
  9530. Array<Variant> attributes;
  9531. bool awake;
  9532. BodyType2D bodyType;
  9533. bool bullet;
  9534. /* readonly */
  9535. String category;
  9536. bool enabled;
  9537. /* readonly */
  9538. bool enabledEffective;
  9539. bool fixedRotation;
  9540. float gravityScale;
  9541. /* readonly */
  9542. uint id;
  9543. float inertia;
  9544. float linearDamping;
  9545. Vector2 linearVelocity;
  9546. float mass;
  9547. Vector2 massCenter;
  9548. /* readonly */
  9549. Node node;
  9550. /* readonly */
  9551. uint numAttributes;
  9552. ObjectAnimation objectAnimation;
  9553. /* readonly */
  9554. int refs;
  9555. bool temporary;
  9556. /* readonly */
  9557. StringHash type;
  9558. /* readonly */
  9559. String typeName;
  9560. bool useFixtureMass;
  9561. /* readonly */
  9562. int weakRefs;
  9563. };
  9564. class Scene
  9565. {
  9566. public:
  9567. Scene();
  9568. Scene(const String&in);
  9569. // Methods:
  9570. void AddChild(Node, uint = M_MAX_UNSIGNED);
  9571. void AddRequiredPackageFile(PackageFile);
  9572. void AddTag(const String&);
  9573. void AddTags(const String&, int8 = ';');
  9574. void ApplyAttributes();
  9575. void Clear(bool = true, bool = true);
  9576. void ClearRequiredPackageFiles();
  9577. Component CloneComponent(Component, CreateMode, uint = 0);
  9578. Component CloneComponent(Component, uint = 0);
  9579. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  9580. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9581. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  9582. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  9583. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  9584. Variant GetAttribute(const String&) const;
  9585. ValueAnimation GetAttributeAnimation(const String&) const;
  9586. float GetAttributeAnimationSpeed(const String&) const;
  9587. float GetAttributeAnimationTime(const String&) const;
  9588. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9589. Variant GetAttributeDefault(const String&) const;
  9590. Node GetChild(const String&, bool = false) const;
  9591. Array<Node> GetChildren(bool = false) const;
  9592. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  9593. Array<Node> GetChildrenWithScript(bool = false) const;
  9594. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  9595. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  9596. Component GetComponent(const String&, bool = false) const;
  9597. Component GetComponent(uint) const;
  9598. Array<Component> GetComponents() const;
  9599. Array<Component> GetComponents(const String&, bool = false) const;
  9600. bool GetInterceptNetworkUpdate(const String&) const;
  9601. Node GetNode(uint) const;
  9602. Array<Node> GetNodesWithTag(const String&) const;
  9603. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9604. Component GetParentComponent(const String&, bool = false) const;
  9605. ScriptObject GetScriptObject() const;
  9606. ScriptObject GetScriptObject(const String&) const;
  9607. bool HasComponent(const String&) const;
  9608. bool HasSubscribedToEvent(Object, const String&);
  9609. bool HasSubscribedToEvent(const String&);
  9610. bool HasTag(const String&);
  9611. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9612. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9613. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9614. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9615. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9616. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9617. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9618. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9619. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9620. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9621. bool IsChildOf(Node) const;
  9622. bool Load(File, bool = false);
  9623. bool Load(VectorBuffer&, bool = false);
  9624. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9625. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9626. bool LoadJSON(File);
  9627. bool LoadJSON(VectorBuffer&);
  9628. bool LoadJSON(const JSONValue&, bool = false);
  9629. bool LoadXML(File);
  9630. bool LoadXML(VectorBuffer&);
  9631. bool LoadXML(const XMLElement&, bool = false);
  9632. Vector3 LocalToWorld(const Vector3&) const;
  9633. Vector3 LocalToWorld(const Vector4&) const;
  9634. Vector2 LocalToWorld2D(const Vector2&) const;
  9635. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  9636. void MarkNetworkUpdate() const;
  9637. void Pitch(float, TransformSpace = TS_LOCAL);
  9638. void RegisterVar(const String&);
  9639. void Remove();
  9640. void RemoveAllChildren();
  9641. void RemoveAllComponents();
  9642. void RemoveAllTags();
  9643. void RemoveAttributeAnimation(const String&);
  9644. void RemoveChild(Node);
  9645. void RemoveChildren(bool, bool, bool);
  9646. void RemoveComponent(Component);
  9647. void RemoveComponent(const String&);
  9648. void RemoveComponents(bool, bool);
  9649. void RemoveComponents(const String&);
  9650. void RemoveInstanceDefault();
  9651. void RemoveObjectAnimation();
  9652. bool RemoveTag(const String&);
  9653. void ReorderComponent(Component, uint);
  9654. void ResetToDefault();
  9655. void Roll(float, TransformSpace = TS_LOCAL);
  9656. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  9657. void Rotate2D(float, TransformSpace = TS_LOCAL);
  9658. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  9659. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  9660. bool Save(File) const;
  9661. bool Save(VectorBuffer&) const;
  9662. bool SaveJSON(File, const String& = "\t");
  9663. bool SaveJSON(JSONValue&) const;
  9664. bool SaveJSON(VectorBuffer&, const String& = "\t");
  9665. bool SaveXML(File, const String& = "\t");
  9666. bool SaveXML(VectorBuffer&, const String& = "\t");
  9667. bool SaveXML(XMLElement&) const;
  9668. void Scale(const Vector3&);
  9669. void Scale(float);
  9670. void Scale2D(const Vector2&);
  9671. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9672. void SetAnimationTime(float);
  9673. bool SetAttribute(const String&, const Variant&);
  9674. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9675. void SetAttributeAnimationSpeed(const String&, float);
  9676. void SetAttributeAnimationTime(const String&, float);
  9677. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9678. void SetInterceptNetworkUpdate(const String&, bool);
  9679. void SetPosition2D(float, float);
  9680. void SetScale(float);
  9681. void SetScale2D(float, float);
  9682. void SetTransform(const Matrix3x4&);
  9683. void SetTransform(const Vector3&, const Quaternion&);
  9684. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  9685. void SetTransform(const Vector3&, const Quaternion&, float);
  9686. void SetTransform2D(const Vector2&, float);
  9687. void SetTransform2D(const Vector2&, float, const Vector2&);
  9688. void SetTransform2D(const Vector2&, float, float);
  9689. void SetWorldTransform(const Vector3&, const Quaternion&);
  9690. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  9691. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  9692. void SetWorldTransform2D(const Vector2&, float);
  9693. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  9694. void SetWorldTransform2D(const Vector2&, float, float);
  9695. void StopAsyncLoading();
  9696. const String& GetVarName(StringHash) const;
  9697. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  9698. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  9699. void UnregisterAllVars(const String&);
  9700. void UnregisterVar(const String&);
  9701. void Update(float);
  9702. Vector3 WorldToLocal(const Vector3&) const;
  9703. Vector3 WorldToLocal(const Vector4&) const;
  9704. Vector2 WorldToLocal2D(const Vector2&) const;
  9705. void Yaw(float, TransformSpace = TS_LOCAL);
  9706. // Properties:
  9707. /* readonly */
  9708. Array<Node> allChildrenByName;
  9709. bool animationEnabled;
  9710. /* readonly */
  9711. LoadMode asyncLoadMode;
  9712. /* readonly */
  9713. bool asyncLoading;
  9714. int asyncLoadingMs;
  9715. /* readonly */
  9716. float asyncProgress;
  9717. /* readonly */
  9718. Array<Variant> attributeDefaults;
  9719. /* readonly */
  9720. Array<AttributeInfo> attributeInfos;
  9721. Array<Variant> attributes;
  9722. /* readonly */
  9723. String category;
  9724. /* readonly */
  9725. uint checksum;
  9726. /* readonly */
  9727. Array<Node> children;
  9728. /* readonly */
  9729. Array<Node> childrenByName;
  9730. /* readonly */
  9731. Array<Component> components;
  9732. /* readonly */
  9733. DebugRenderer debugRenderer;
  9734. Vector3 direction;
  9735. float elapsedTime;
  9736. /* readonly */
  9737. String fileName;
  9738. uint id;
  9739. String name;
  9740. /* readonly */
  9741. uint numAllChildren;
  9742. /* readonly */
  9743. uint numAttributes;
  9744. /* readonly */
  9745. uint numChildren;
  9746. /* readonly */
  9747. uint numComponents;
  9748. ObjectAnimation objectAnimation;
  9749. /* readonly */
  9750. Octree octree;
  9751. Node parent;
  9752. /* readonly */
  9753. PhysicsWorld physicsWorld;
  9754. /* readonly */
  9755. PhysicsWorld2D physicsWorld2D;
  9756. Vector3 position;
  9757. Vector2 position2D;
  9758. /* readonly */
  9759. int refs;
  9760. /* readonly */
  9761. Array<PackageFile> requiredPackageFiles;
  9762. /* readonly */
  9763. Vector3 right;
  9764. Quaternion rotation;
  9765. float rotation2D;
  9766. Vector3 scale;
  9767. Vector2 scale2D;
  9768. /* readonly */
  9769. ScriptObject scriptObject;
  9770. /* readonly */
  9771. Vector3 signedWorldScale;
  9772. float smoothingConstant;
  9773. float snapThreshold;
  9774. /* readonly */
  9775. Array<String> tags;
  9776. bool temporary;
  9777. float timeScale;
  9778. /* readonly */
  9779. Matrix3x4 transform;
  9780. /* readonly */
  9781. StringHash type;
  9782. /* readonly */
  9783. String typeName;
  9784. /* readonly */
  9785. Vector3 up;
  9786. bool updateEnabled;
  9787. /* readonly */
  9788. VariantMap vars;
  9789. /* readonly */
  9790. int weakRefs;
  9791. Vector3 worldDirection;
  9792. Vector3 worldPosition;
  9793. Vector2 worldPosition2D;
  9794. /* readonly */
  9795. Vector3 worldRight;
  9796. Quaternion worldRotation;
  9797. float worldRotation2D;
  9798. Vector3 worldScale;
  9799. Vector2 worldScale2D;
  9800. /* readonly */
  9801. Matrix3x4 worldTransform;
  9802. /* readonly */
  9803. Vector3 worldUp;
  9804. };
  9805. class Script
  9806. {
  9807. public:
  9808. // Methods:
  9809. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9810. bool Execute(const String&);
  9811. bool HasSubscribedToEvent(Object, const String&);
  9812. bool HasSubscribedToEvent(const String&);
  9813. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9814. // Properties:
  9815. /* readonly */
  9816. String category;
  9817. Scene defaultScene;
  9818. ScriptFile defaultScriptFile;
  9819. bool executeConsoleCommands;
  9820. /* readonly */
  9821. int refs;
  9822. /* readonly */
  9823. StringHash type;
  9824. /* readonly */
  9825. String typeName;
  9826. /* readonly */
  9827. int weakRefs;
  9828. };
  9829. class ScriptFile
  9830. {
  9831. public:
  9832. ScriptFile();
  9833. ScriptFile(const String&in);
  9834. // Methods:
  9835. void ClearDelayedExecute(const String& = String ( ));
  9836. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9837. bool Execute(const String&, const Array<Variant> = null);
  9838. bool HasSubscribedToEvent(Object, const String&);
  9839. bool HasSubscribedToEvent(const String&);
  9840. bool Load(File);
  9841. bool Load(VectorBuffer&);
  9842. bool Load(const String&);
  9843. bool Save(File) const;
  9844. bool Save(VectorBuffer&) const;
  9845. bool Save(const String&) const;
  9846. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9847. // Properties:
  9848. /* readonly */
  9849. String category;
  9850. /* readonly */
  9851. bool compiled;
  9852. /* readonly */
  9853. uint memoryUse;
  9854. String name;
  9855. /* readonly */
  9856. int refs;
  9857. /* readonly */
  9858. StringHash type;
  9859. /* readonly */
  9860. String typeName;
  9861. /* readonly */
  9862. uint useTimer;
  9863. /* readonly */
  9864. int weakRefs;
  9865. };
  9866. class ScriptInstance
  9867. {
  9868. public:
  9869. // Methods:
  9870. void ApplyAttributes();
  9871. void ClearDelayedExecute(const String& = String ( ));
  9872. bool CreateObject(ScriptFile, const String&);
  9873. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9874. void DrawDebugGeometry(DebugRenderer, bool);
  9875. bool Execute(const String&, const Array<Variant> = null);
  9876. Variant GetAttribute(const String&) const;
  9877. ValueAnimation GetAttributeAnimation(const String&) const;
  9878. float GetAttributeAnimationSpeed(const String&) const;
  9879. float GetAttributeAnimationTime(const String&) const;
  9880. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9881. Variant GetAttributeDefault(const String&) const;
  9882. bool GetInterceptNetworkUpdate(const String&) const;
  9883. bool HasMethod(const String&) const;
  9884. bool HasSubscribedToEvent(Object, const String&);
  9885. bool HasSubscribedToEvent(const String&);
  9886. bool IsA(const String&) const;
  9887. bool Load(File, bool = false);
  9888. bool Load(VectorBuffer&, bool = false);
  9889. bool LoadJSON(const JSONValue&, bool = false);
  9890. bool LoadXML(const XMLElement&, bool = false);
  9891. void MarkNetworkUpdate() const;
  9892. void Remove();
  9893. void RemoveAttributeAnimation(const String&);
  9894. void RemoveInstanceDefault();
  9895. void RemoveObjectAnimation();
  9896. void ResetToDefault();
  9897. bool Save(File) const;
  9898. bool Save(VectorBuffer&) const;
  9899. bool SaveJSON(JSONValue&) const;
  9900. bool SaveXML(XMLElement&) const;
  9901. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9902. void SetAnimationTime(float);
  9903. bool SetAttribute(const String&, const Variant&);
  9904. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9905. void SetAttributeAnimationSpeed(const String&, float);
  9906. void SetAttributeAnimationTime(const String&, float);
  9907. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9908. void SetInterceptNetworkUpdate(const String&, bool);
  9909. // Properties:
  9910. bool animationEnabled;
  9911. /* readonly */
  9912. Array<Variant> attributeDefaults;
  9913. /* readonly */
  9914. Array<AttributeInfo> attributeInfos;
  9915. Array<Variant> attributes;
  9916. /* readonly */
  9917. String category;
  9918. String className;
  9919. bool enabled;
  9920. /* readonly */
  9921. bool enabledEffective;
  9922. /* readonly */
  9923. uint id;
  9924. /* readonly */
  9925. Node node;
  9926. /* readonly */
  9927. uint numAttributes;
  9928. ObjectAnimation objectAnimation;
  9929. /* readonly */
  9930. int refs;
  9931. ScriptFile scriptFile;
  9932. /* readonly */
  9933. ScriptObject scriptObject;
  9934. bool temporary;
  9935. /* readonly */
  9936. StringHash type;
  9937. /* readonly */
  9938. String typeName;
  9939. /* readonly */
  9940. int weakRefs;
  9941. };
  9942. class ScriptObject
  9943. {
  9944. public:
  9945. };
  9946. class ScrollBar
  9947. {
  9948. public:
  9949. ScrollBar();
  9950. ScrollBar(const String&in);
  9951. // Methods:
  9952. void AddChild(UIElement);
  9953. void AddTag(const String&);
  9954. void AddTags(const String&, int8 = ';');
  9955. void ApplyAttributes();
  9956. void BringToFront();
  9957. void ChangeValue(float);
  9958. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9959. void DisableLayoutUpdate();
  9960. IntVector2 ElementToScreen(const IntVector2&);
  9961. void EnableLayoutUpdate();
  9962. uint FindChild(UIElement) const;
  9963. Variant GetAttribute(const String&) const;
  9964. ValueAnimation GetAttributeAnimation(const String&) const;
  9965. float GetAttributeAnimationSpeed(const String&) const;
  9966. float GetAttributeAnimationTime(const String&) const;
  9967. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9968. Variant GetAttributeDefault(const String&) const;
  9969. UIElement GetChild(const String&, bool = false) const;
  9970. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9971. Array<UIElement> GetChildren(bool = false) const;
  9972. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9973. UIElement GetElementEventSender() const;
  9974. bool GetInterceptNetworkUpdate(const String&) const;
  9975. uint GetNumChildren(bool) const;
  9976. bool HasSubscribedToEvent(Object, const String&);
  9977. bool HasSubscribedToEvent(const String&);
  9978. bool HasTag(const String&) const;
  9979. void InsertChild(uint, UIElement);
  9980. bool IsInside(IntVector2, bool);
  9981. bool IsInsideCombined(IntVector2, bool);
  9982. bool Load(File, bool = false);
  9983. bool Load(VectorBuffer&, bool = false);
  9984. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9985. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9986. bool LoadJSON(const JSONValue&, bool = false);
  9987. bool LoadXML(File);
  9988. bool LoadXML(VectorBuffer&);
  9989. bool LoadXML(XMLFile, XMLFile);
  9990. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9991. bool LoadXML(const XMLElement&, bool = false);
  9992. void MarkNetworkUpdate() const;
  9993. void Remove();
  9994. void RemoveAllChildren();
  9995. void RemoveAllTags();
  9996. void RemoveAttributeAnimation(const String&);
  9997. void RemoveChild(UIElement, uint = 0);
  9998. void RemoveChild(uint);
  9999. void RemoveInstanceDefault();
  10000. void RemoveObjectAnimation();
  10001. bool RemoveTag(const String&);
  10002. void ResetDeepEnabled();
  10003. void ResetToDefault();
  10004. bool Save(File) const;
  10005. bool Save(VectorBuffer&) const;
  10006. bool SaveJSON(JSONValue&) const;
  10007. bool SaveXML(File, const String& = "\t");
  10008. bool SaveXML(VectorBuffer&, const String& = "\t");
  10009. bool SaveXML(XMLElement&) const;
  10010. IntVector2 ScreenToElement(const IntVector2&);
  10011. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10012. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10013. void SetAnimationTime(float);
  10014. bool SetAttribute(const String&, const Variant&);
  10015. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10016. void SetAttributeAnimationSpeed(const String&, float);
  10017. void SetAttributeAnimationTime(const String&, float);
  10018. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10019. void SetDeepEnabled(bool);
  10020. void SetEnabledRecursive(bool);
  10021. void SetFixedHeight(int);
  10022. void SetFixedSize(int, int);
  10023. void SetFixedWidth(int);
  10024. void SetInterceptNetworkUpdate(const String&, bool);
  10025. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10026. void SetMaxAnchor(float, float);
  10027. void SetMaxSize(int, int);
  10028. void SetMinAnchor(float, float);
  10029. void SetMinSize(int, int);
  10030. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10031. void SetPivot(float, float);
  10032. void SetPosition(int, int);
  10033. void SetSize(int, int);
  10034. bool SetStyle(const String&, XMLFile = null);
  10035. bool SetStyle(const XMLElement&);
  10036. bool SetStyleAuto(XMLFile = null);
  10037. void StepBack();
  10038. void StepForward();
  10039. void UpdateLayout();
  10040. const Variant& GetVar(const StringHash&);
  10041. // Properties:
  10042. bool animationEnabled;
  10043. /* readonly */
  10044. Array<Variant> attributeDefaults;
  10045. /* readonly */
  10046. Array<AttributeInfo> attributeInfos;
  10047. Array<Variant> attributes;
  10048. /* readonly */
  10049. Button backButton;
  10050. bool bringToBack;
  10051. bool bringToFront;
  10052. /* readonly */
  10053. String category;
  10054. /* readonly */
  10055. IntVector2 childOffset;
  10056. /* readonly */
  10057. Array<UIElement> children;
  10058. IntRect clipBorder;
  10059. bool clipChildren;
  10060. /* writeonly */
  10061. Color color;
  10062. /* readonly */
  10063. bool colorGradient;
  10064. Array<Color> colors;
  10065. /* readonly */
  10066. IntRect combinedScreenRect;
  10067. XMLFile defaultStyle;
  10068. /* readonly */
  10069. float derivedOpacity;
  10070. /* readonly */
  10071. uint dragButtonCombo;
  10072. /* readonly */
  10073. int dragButtonCount;
  10074. uint dragDropMode;
  10075. bool editable;
  10076. /* readonly */
  10077. float effectiveScrollStep;
  10078. bool elementEventSender;
  10079. bool enableAnchor;
  10080. bool enabled;
  10081. /* readonly */
  10082. bool enabledSelf;
  10083. /* readonly */
  10084. bool fixedHeight;
  10085. /* readonly */
  10086. bool fixedSize;
  10087. /* readonly */
  10088. bool fixedWidth;
  10089. bool focus;
  10090. FocusMode focusMode;
  10091. /* readonly */
  10092. Button forwardButton;
  10093. int height;
  10094. HorizontalAlignment horizontalAlignment;
  10095. /* readonly */
  10096. bool hovering;
  10097. int indent;
  10098. int indentSpacing;
  10099. /* readonly */
  10100. int indentWidth;
  10101. bool internal;
  10102. IntRect layoutBorder;
  10103. Vector2 layoutFlexScale;
  10104. LayoutMode layoutMode;
  10105. int layoutSpacing;
  10106. Vector2 maxAnchor;
  10107. int maxHeight;
  10108. IntVector2 maxOffset;
  10109. IntVector2 maxSize;
  10110. int maxWidth;
  10111. Vector2 minAnchor;
  10112. int minHeight;
  10113. IntVector2 minOffset;
  10114. IntVector2 minSize;
  10115. int minWidth;
  10116. String name;
  10117. /* readonly */
  10118. uint numAllChildren;
  10119. /* readonly */
  10120. uint numAttributes;
  10121. /* readonly */
  10122. uint numChildren;
  10123. ObjectAnimation objectAnimation;
  10124. float opacity;
  10125. Orientation orientation;
  10126. UIElement parent;
  10127. Vector2 pivot;
  10128. IntVector2 position;
  10129. int priority;
  10130. float range;
  10131. /* readonly */
  10132. int refs;
  10133. /* readonly */
  10134. UIElement root;
  10135. /* readonly */
  10136. IntVector2 screenPosition;
  10137. float scrollStep;
  10138. bool selected;
  10139. IntVector2 size;
  10140. /* readonly */
  10141. Slider slider;
  10142. bool sortChildren;
  10143. float stepFactor;
  10144. String style;
  10145. /* readonly */
  10146. Array<String> tags;
  10147. bool temporary;
  10148. TraversalMode traversalMode;
  10149. /* readonly */
  10150. StringHash type;
  10151. /* readonly */
  10152. String typeName;
  10153. bool useDerivedOpacity;
  10154. float value;
  10155. /* readonly */
  10156. VariantMap vars;
  10157. VerticalAlignment verticalAlignment;
  10158. bool visible;
  10159. /* readonly */
  10160. bool visibleEffective;
  10161. /* readonly */
  10162. int weakRefs;
  10163. int width;
  10164. };
  10165. class ScrollView
  10166. {
  10167. public:
  10168. ScrollView();
  10169. ScrollView(const String&in);
  10170. // Methods:
  10171. void AddChild(UIElement);
  10172. void AddTag(const String&);
  10173. void AddTags(const String&, int8 = ';');
  10174. void ApplyAttributes();
  10175. void BringToFront();
  10176. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10177. void DisableLayoutUpdate();
  10178. IntVector2 ElementToScreen(const IntVector2&);
  10179. void EnableLayoutUpdate();
  10180. uint FindChild(UIElement) const;
  10181. Variant GetAttribute(const String&) const;
  10182. ValueAnimation GetAttributeAnimation(const String&) const;
  10183. float GetAttributeAnimationSpeed(const String&) const;
  10184. float GetAttributeAnimationTime(const String&) const;
  10185. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10186. Variant GetAttributeDefault(const String&) const;
  10187. UIElement GetChild(const String&, bool = false) const;
  10188. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10189. Array<UIElement> GetChildren(bool = false) const;
  10190. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10191. UIElement GetElementEventSender() const;
  10192. bool GetInterceptNetworkUpdate(const String&) const;
  10193. uint GetNumChildren(bool) const;
  10194. bool HasSubscribedToEvent(Object, const String&);
  10195. bool HasSubscribedToEvent(const String&);
  10196. bool HasTag(const String&) const;
  10197. void InsertChild(uint, UIElement);
  10198. bool IsInside(IntVector2, bool);
  10199. bool IsInsideCombined(IntVector2, bool);
  10200. bool Load(File, bool = false);
  10201. bool Load(VectorBuffer&, bool = false);
  10202. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10203. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10204. bool LoadJSON(const JSONValue&, bool = false);
  10205. bool LoadXML(File);
  10206. bool LoadXML(VectorBuffer&);
  10207. bool LoadXML(XMLFile, XMLFile);
  10208. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10209. bool LoadXML(const XMLElement&, bool = false);
  10210. void MarkNetworkUpdate() const;
  10211. void Remove();
  10212. void RemoveAllChildren();
  10213. void RemoveAllTags();
  10214. void RemoveAttributeAnimation(const String&);
  10215. void RemoveChild(UIElement, uint = 0);
  10216. void RemoveChild(uint);
  10217. void RemoveInstanceDefault();
  10218. void RemoveObjectAnimation();
  10219. bool RemoveTag(const String&);
  10220. void ResetDeepEnabled();
  10221. void ResetToDefault();
  10222. bool Save(File) const;
  10223. bool Save(VectorBuffer&) const;
  10224. bool SaveJSON(JSONValue&) const;
  10225. bool SaveXML(File, const String& = "\t");
  10226. bool SaveXML(VectorBuffer&, const String& = "\t");
  10227. bool SaveXML(XMLElement&) const;
  10228. IntVector2 ScreenToElement(const IntVector2&);
  10229. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10230. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10231. void SetAnimationTime(float);
  10232. bool SetAttribute(const String&, const Variant&);
  10233. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10234. void SetAttributeAnimationSpeed(const String&, float);
  10235. void SetAttributeAnimationTime(const String&, float);
  10236. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10237. void SetDeepEnabled(bool);
  10238. void SetEnabledRecursive(bool);
  10239. void SetFixedHeight(int);
  10240. void SetFixedSize(int, int);
  10241. void SetFixedWidth(int);
  10242. void SetInterceptNetworkUpdate(const String&, bool);
  10243. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10244. void SetMaxAnchor(float, float);
  10245. void SetMaxSize(int, int);
  10246. void SetMinAnchor(float, float);
  10247. void SetMinSize(int, int);
  10248. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10249. void SetPivot(float, float);
  10250. void SetPosition(int, int);
  10251. void SetScrollBarsVisible(bool, bool);
  10252. void SetSize(int, int);
  10253. bool SetStyle(const String&, XMLFile = null);
  10254. bool SetStyle(const XMLElement&);
  10255. bool SetStyleAuto(XMLFile = null);
  10256. void SetViewPosition(int, int);
  10257. void UpdateLayout();
  10258. const Variant& GetVar(const StringHash&);
  10259. // Properties:
  10260. bool animationEnabled;
  10261. /* readonly */
  10262. Array<Variant> attributeDefaults;
  10263. /* readonly */
  10264. Array<AttributeInfo> attributeInfos;
  10265. Array<Variant> attributes;
  10266. bool autoDisableChildren;
  10267. float autoDisableThreshold;
  10268. bool bringToBack;
  10269. bool bringToFront;
  10270. /* readonly */
  10271. String category;
  10272. /* readonly */
  10273. IntVector2 childOffset;
  10274. /* readonly */
  10275. Array<UIElement> children;
  10276. IntRect clipBorder;
  10277. bool clipChildren;
  10278. /* writeonly */
  10279. Color color;
  10280. /* readonly */
  10281. bool colorGradient;
  10282. Array<Color> colors;
  10283. /* readonly */
  10284. IntRect combinedScreenRect;
  10285. UIElement contentElement;
  10286. XMLFile defaultStyle;
  10287. /* readonly */
  10288. float derivedOpacity;
  10289. /* readonly */
  10290. uint dragButtonCombo;
  10291. /* readonly */
  10292. int dragButtonCount;
  10293. uint dragDropMode;
  10294. bool editable;
  10295. bool elementEventSender;
  10296. bool enableAnchor;
  10297. bool enabled;
  10298. /* readonly */
  10299. bool enabledSelf;
  10300. /* readonly */
  10301. bool fixedHeight;
  10302. /* readonly */
  10303. bool fixedSize;
  10304. /* readonly */
  10305. bool fixedWidth;
  10306. bool focus;
  10307. FocusMode focusMode;
  10308. int height;
  10309. HorizontalAlignment horizontalAlignment;
  10310. /* readonly */
  10311. ScrollBar horizontalScrollBar;
  10312. /* readonly */
  10313. bool hovering;
  10314. int indent;
  10315. int indentSpacing;
  10316. /* readonly */
  10317. int indentWidth;
  10318. bool internal;
  10319. IntRect layoutBorder;
  10320. Vector2 layoutFlexScale;
  10321. LayoutMode layoutMode;
  10322. int layoutSpacing;
  10323. Vector2 maxAnchor;
  10324. int maxHeight;
  10325. IntVector2 maxOffset;
  10326. IntVector2 maxSize;
  10327. int maxWidth;
  10328. Vector2 minAnchor;
  10329. int minHeight;
  10330. IntVector2 minOffset;
  10331. IntVector2 minSize;
  10332. int minWidth;
  10333. String name;
  10334. /* readonly */
  10335. uint numAllChildren;
  10336. /* readonly */
  10337. uint numAttributes;
  10338. /* readonly */
  10339. uint numChildren;
  10340. ObjectAnimation objectAnimation;
  10341. float opacity;
  10342. float pageStep;
  10343. UIElement parent;
  10344. Vector2 pivot;
  10345. IntVector2 position;
  10346. int priority;
  10347. /* readonly */
  10348. int refs;
  10349. /* readonly */
  10350. UIElement root;
  10351. /* readonly */
  10352. IntVector2 screenPosition;
  10353. bool scrollBarsAutoVisible;
  10354. float scrollDeceleration;
  10355. /* readonly */
  10356. BorderImage scrollPanel;
  10357. float scrollSnapEpsilon;
  10358. float scrollStep;
  10359. bool selected;
  10360. IntVector2 size;
  10361. bool sortChildren;
  10362. String style;
  10363. /* readonly */
  10364. Array<String> tags;
  10365. bool temporary;
  10366. TraversalMode traversalMode;
  10367. /* readonly */
  10368. StringHash type;
  10369. /* readonly */
  10370. String typeName;
  10371. bool useDerivedOpacity;
  10372. /* readonly */
  10373. VariantMap vars;
  10374. VerticalAlignment verticalAlignment;
  10375. /* readonly */
  10376. ScrollBar verticalScrollBar;
  10377. IntVector2 viewPosition;
  10378. bool visible;
  10379. /* readonly */
  10380. bool visibleEffective;
  10381. /* readonly */
  10382. int weakRefs;
  10383. int width;
  10384. };
  10385. class Serializable
  10386. {
  10387. public:
  10388. // Methods:
  10389. void ApplyAttributes();
  10390. Variant GetAttribute(const String&) const;
  10391. Variant GetAttributeDefault(const String&) const;
  10392. bool GetInterceptNetworkUpdate(const String&) const;
  10393. bool HasSubscribedToEvent(Object, const String&);
  10394. bool HasSubscribedToEvent(const String&);
  10395. bool Load(File, bool = false);
  10396. bool Load(VectorBuffer&, bool = false);
  10397. bool LoadJSON(const JSONValue&, bool = false);
  10398. bool LoadXML(const XMLElement&, bool = false);
  10399. void MarkNetworkUpdate() const;
  10400. void RemoveInstanceDefault();
  10401. void ResetToDefault();
  10402. bool Save(File) const;
  10403. bool Save(VectorBuffer&) const;
  10404. bool SaveJSON(JSONValue&) const;
  10405. bool SaveXML(XMLElement&) const;
  10406. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10407. bool SetAttribute(const String&, const Variant&);
  10408. void SetInterceptNetworkUpdate(const String&, bool);
  10409. // Properties:
  10410. /* readonly */
  10411. Array<Variant> attributeDefaults;
  10412. /* readonly */
  10413. Array<AttributeInfo> attributeInfos;
  10414. Array<Variant> attributes;
  10415. /* readonly */
  10416. String category;
  10417. /* readonly */
  10418. uint numAttributes;
  10419. /* readonly */
  10420. int refs;
  10421. bool temporary;
  10422. /* readonly */
  10423. StringHash type;
  10424. /* readonly */
  10425. String typeName;
  10426. /* readonly */
  10427. int weakRefs;
  10428. };
  10429. class Serializer
  10430. {
  10431. public:
  10432. // Methods:
  10433. uint Write(Array<uint8>);
  10434. bool WriteBool(bool);
  10435. bool WriteBoundingBox(const BoundingBox&);
  10436. bool WriteByte(int8);
  10437. bool WriteColor(const Color&);
  10438. bool WriteDouble(double);
  10439. bool WriteFileID(const String&);
  10440. bool WriteFloat(float);
  10441. bool WriteInt(int);
  10442. bool WriteInt64(int64);
  10443. bool WriteIntRect(const IntRect&);
  10444. bool WriteIntVector2(const IntVector2&);
  10445. bool WriteLine(const String&);
  10446. bool WriteMatrix3(const Matrix3&);
  10447. bool WriteMatrix3x4(const Matrix3x4&);
  10448. bool WriteMatrix4(const Matrix4&);
  10449. bool WriteNetID(uint);
  10450. bool WritePackedQuaternion(const Quaternion&);
  10451. bool WritePackedVector3(const Vector3&, float);
  10452. bool WriteQuaternion(const Quaternion&);
  10453. bool WriteShort(int16);
  10454. bool WriteString(const String&);
  10455. bool WriteStringHash(const StringHash&);
  10456. bool WriteUByte(uint8);
  10457. bool WriteUInt(uint);
  10458. bool WriteUInt64(uint64);
  10459. bool WriteUShort(uint16);
  10460. bool WriteVLE(uint);
  10461. bool WriteVariant(const Variant&);
  10462. bool WriteVariantMap(const VariantMap&);
  10463. bool WriteVector2(const Vector2&);
  10464. bool WriteVector3(const Vector3&);
  10465. bool WriteVector4(const Vector4&);
  10466. bool WriteVectorBuffer(const VectorBuffer&);
  10467. };
  10468. class Skeleton
  10469. {
  10470. public:
  10471. // Methods:
  10472. Bone GetBone(const String&) const;
  10473. void Reset();
  10474. // Properties:
  10475. /* readonly */
  10476. Array<Bone> bones;
  10477. /* readonly */
  10478. uint numBones;
  10479. /* readonly */
  10480. Bone rootBone;
  10481. };
  10482. class Skybox
  10483. {
  10484. public:
  10485. // Methods:
  10486. void ApplyAttributes();
  10487. void ApplyMaterialList(const String& = String ( ));
  10488. void DrawDebugGeometry(DebugRenderer, bool);
  10489. Variant GetAttribute(const String&) const;
  10490. ValueAnimation GetAttributeAnimation(const String&) const;
  10491. float GetAttributeAnimationSpeed(const String&) const;
  10492. float GetAttributeAnimationTime(const String&) const;
  10493. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10494. Variant GetAttributeDefault(const String&) const;
  10495. bool GetInterceptNetworkUpdate(const String&) const;
  10496. bool HasSubscribedToEvent(Object, const String&);
  10497. bool HasSubscribedToEvent(const String&);
  10498. bool IsInView(Camera) const;
  10499. bool Load(File, bool = false);
  10500. bool Load(VectorBuffer&, bool = false);
  10501. bool LoadJSON(const JSONValue&, bool = false);
  10502. bool LoadXML(const XMLElement&, bool = false);
  10503. void MarkNetworkUpdate() const;
  10504. void Remove();
  10505. void RemoveAttributeAnimation(const String&);
  10506. void RemoveInstanceDefault();
  10507. void RemoveObjectAnimation();
  10508. void ResetToDefault();
  10509. bool Save(File) const;
  10510. bool Save(VectorBuffer&) const;
  10511. bool SaveJSON(JSONValue&) const;
  10512. bool SaveXML(XMLElement&) const;
  10513. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10514. void SetAnimationTime(float);
  10515. bool SetAttribute(const String&, const Variant&);
  10516. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10517. void SetAttributeAnimationSpeed(const String&, float);
  10518. void SetAttributeAnimationTime(const String&, float);
  10519. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10520. void SetInterceptNetworkUpdate(const String&, bool);
  10521. // Properties:
  10522. bool animationEnabled;
  10523. /* readonly */
  10524. Array<Variant> attributeDefaults;
  10525. /* readonly */
  10526. Array<AttributeInfo> attributeInfos;
  10527. Array<Variant> attributes;
  10528. /* readonly */
  10529. BoundingBox boundingBox;
  10530. bool castShadows;
  10531. /* readonly */
  10532. String category;
  10533. float drawDistance;
  10534. bool enabled;
  10535. /* readonly */
  10536. bool enabledEffective;
  10537. /* readonly */
  10538. uint id;
  10539. /* readonly */
  10540. bool inView;
  10541. uint lightMask;
  10542. float lodBias;
  10543. /* writeonly */
  10544. Material material;
  10545. Array<Material> materials;
  10546. uint maxLights;
  10547. Model model;
  10548. /* readonly */
  10549. Node node;
  10550. /* readonly */
  10551. uint numAttributes;
  10552. /* readonly */
  10553. uint numGeometries;
  10554. ObjectAnimation objectAnimation;
  10555. bool occludee;
  10556. bool occluder;
  10557. /* readonly */
  10558. int refs;
  10559. float shadowDistance;
  10560. uint shadowMask;
  10561. bool temporary;
  10562. /* readonly */
  10563. StringHash type;
  10564. /* readonly */
  10565. String typeName;
  10566. uint viewMask;
  10567. /* readonly */
  10568. int weakRefs;
  10569. /* readonly */
  10570. BoundingBox worldBoundingBox;
  10571. /* readonly */
  10572. Zone zone;
  10573. uint zoneMask;
  10574. };
  10575. class Slider
  10576. {
  10577. public:
  10578. Slider();
  10579. Slider(const String&in);
  10580. // Methods:
  10581. void AddChild(UIElement);
  10582. void AddTag(const String&);
  10583. void AddTags(const String&, int8 = ';');
  10584. void ApplyAttributes();
  10585. void BringToFront();
  10586. void ChangeValue(float);
  10587. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10588. void DisableLayoutUpdate();
  10589. IntVector2 ElementToScreen(const IntVector2&);
  10590. void EnableLayoutUpdate();
  10591. uint FindChild(UIElement) const;
  10592. Variant GetAttribute(const String&) const;
  10593. ValueAnimation GetAttributeAnimation(const String&) const;
  10594. float GetAttributeAnimationSpeed(const String&) const;
  10595. float GetAttributeAnimationTime(const String&) const;
  10596. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10597. Variant GetAttributeDefault(const String&) const;
  10598. UIElement GetChild(const String&, bool = false) const;
  10599. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10600. Array<UIElement> GetChildren(bool = false) const;
  10601. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10602. UIElement GetElementEventSender() const;
  10603. bool GetInterceptNetworkUpdate(const String&) const;
  10604. uint GetNumChildren(bool) const;
  10605. bool HasSubscribedToEvent(Object, const String&);
  10606. bool HasSubscribedToEvent(const String&);
  10607. bool HasTag(const String&) const;
  10608. void InsertChild(uint, UIElement);
  10609. bool IsInside(IntVector2, bool);
  10610. bool IsInsideCombined(IntVector2, bool);
  10611. bool Load(File, bool = false);
  10612. bool Load(VectorBuffer&, bool = false);
  10613. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10614. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10615. bool LoadJSON(const JSONValue&, bool = false);
  10616. bool LoadXML(File);
  10617. bool LoadXML(VectorBuffer&);
  10618. bool LoadXML(XMLFile, XMLFile);
  10619. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10620. bool LoadXML(const XMLElement&, bool = false);
  10621. void MarkNetworkUpdate() const;
  10622. void Remove();
  10623. void RemoveAllChildren();
  10624. void RemoveAllTags();
  10625. void RemoveAttributeAnimation(const String&);
  10626. void RemoveChild(UIElement, uint = 0);
  10627. void RemoveChild(uint);
  10628. void RemoveInstanceDefault();
  10629. void RemoveObjectAnimation();
  10630. bool RemoveTag(const String&);
  10631. void ResetDeepEnabled();
  10632. void ResetToDefault();
  10633. bool Save(File) const;
  10634. bool Save(VectorBuffer&) const;
  10635. bool SaveJSON(JSONValue&) const;
  10636. bool SaveXML(File, const String& = "\t");
  10637. bool SaveXML(VectorBuffer&, const String& = "\t");
  10638. bool SaveXML(XMLElement&) const;
  10639. IntVector2 ScreenToElement(const IntVector2&);
  10640. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10641. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10642. void SetAnimationTime(float);
  10643. bool SetAttribute(const String&, const Variant&);
  10644. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10645. void SetAttributeAnimationSpeed(const String&, float);
  10646. void SetAttributeAnimationTime(const String&, float);
  10647. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10648. void SetDeepEnabled(bool);
  10649. void SetEnabledRecursive(bool);
  10650. void SetFixedHeight(int);
  10651. void SetFixedSize(int, int);
  10652. void SetFixedWidth(int);
  10653. void SetFullImageRect();
  10654. void SetHoverOffset(int, int);
  10655. void SetInterceptNetworkUpdate(const String&, bool);
  10656. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10657. void SetMaxAnchor(float, float);
  10658. void SetMaxSize(int, int);
  10659. void SetMinAnchor(float, float);
  10660. void SetMinSize(int, int);
  10661. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10662. void SetPivot(float, float);
  10663. void SetPosition(int, int);
  10664. void SetSize(int, int);
  10665. bool SetStyle(const String&, XMLFile = null);
  10666. bool SetStyle(const XMLElement&);
  10667. bool SetStyleAuto(XMLFile = null);
  10668. void UpdateLayout();
  10669. const Variant& GetVar(const StringHash&);
  10670. // Properties:
  10671. bool animationEnabled;
  10672. /* readonly */
  10673. Array<Variant> attributeDefaults;
  10674. /* readonly */
  10675. Array<AttributeInfo> attributeInfos;
  10676. Array<Variant> attributes;
  10677. BlendMode blendMode;
  10678. IntRect border;
  10679. bool bringToBack;
  10680. bool bringToFront;
  10681. /* readonly */
  10682. String category;
  10683. /* readonly */
  10684. IntVector2 childOffset;
  10685. /* readonly */
  10686. Array<UIElement> children;
  10687. IntRect clipBorder;
  10688. bool clipChildren;
  10689. /* writeonly */
  10690. Color color;
  10691. /* readonly */
  10692. bool colorGradient;
  10693. Array<Color> colors;
  10694. /* readonly */
  10695. IntRect combinedScreenRect;
  10696. XMLFile defaultStyle;
  10697. /* readonly */
  10698. float derivedOpacity;
  10699. /* readonly */
  10700. uint dragButtonCombo;
  10701. /* readonly */
  10702. int dragButtonCount;
  10703. uint dragDropMode;
  10704. bool editable;
  10705. bool elementEventSender;
  10706. bool enableAnchor;
  10707. bool enabled;
  10708. /* readonly */
  10709. bool enabledSelf;
  10710. /* readonly */
  10711. bool fixedHeight;
  10712. /* readonly */
  10713. bool fixedSize;
  10714. /* readonly */
  10715. bool fixedWidth;
  10716. bool focus;
  10717. FocusMode focusMode;
  10718. int height;
  10719. HorizontalAlignment horizontalAlignment;
  10720. IntVector2 hoverOffset;
  10721. /* readonly */
  10722. bool hovering;
  10723. IntRect imageBorder;
  10724. IntRect imageRect;
  10725. int indent;
  10726. int indentSpacing;
  10727. /* readonly */
  10728. int indentWidth;
  10729. bool internal;
  10730. /* readonly */
  10731. BorderImage knob;
  10732. IntRect layoutBorder;
  10733. Vector2 layoutFlexScale;
  10734. LayoutMode layoutMode;
  10735. int layoutSpacing;
  10736. Vector2 maxAnchor;
  10737. int maxHeight;
  10738. IntVector2 maxOffset;
  10739. IntVector2 maxSize;
  10740. int maxWidth;
  10741. Vector2 minAnchor;
  10742. int minHeight;
  10743. IntVector2 minOffset;
  10744. IntVector2 minSize;
  10745. int minWidth;
  10746. String name;
  10747. /* readonly */
  10748. uint numAllChildren;
  10749. /* readonly */
  10750. uint numAttributes;
  10751. /* readonly */
  10752. uint numChildren;
  10753. ObjectAnimation objectAnimation;
  10754. float opacity;
  10755. Orientation orientation;
  10756. UIElement parent;
  10757. Vector2 pivot;
  10758. IntVector2 position;
  10759. int priority;
  10760. float range;
  10761. /* readonly */
  10762. int refs;
  10763. float repeatRate;
  10764. /* readonly */
  10765. UIElement root;
  10766. /* readonly */
  10767. IntVector2 screenPosition;
  10768. bool selected;
  10769. IntVector2 size;
  10770. bool sortChildren;
  10771. String style;
  10772. /* readonly */
  10773. Array<String> tags;
  10774. bool temporary;
  10775. Texture texture;
  10776. bool tiled;
  10777. TraversalMode traversalMode;
  10778. /* readonly */
  10779. StringHash type;
  10780. /* readonly */
  10781. String typeName;
  10782. bool useDerivedOpacity;
  10783. float value;
  10784. /* readonly */
  10785. VariantMap vars;
  10786. VerticalAlignment verticalAlignment;
  10787. bool visible;
  10788. /* readonly */
  10789. bool visibleEffective;
  10790. /* readonly */
  10791. int weakRefs;
  10792. int width;
  10793. };
  10794. class SmoothedTransform
  10795. {
  10796. public:
  10797. // Methods:
  10798. void ApplyAttributes();
  10799. void DrawDebugGeometry(DebugRenderer, bool);
  10800. Variant GetAttribute(const String&) const;
  10801. ValueAnimation GetAttributeAnimation(const String&) const;
  10802. float GetAttributeAnimationSpeed(const String&) const;
  10803. float GetAttributeAnimationTime(const String&) const;
  10804. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10805. Variant GetAttributeDefault(const String&) const;
  10806. bool GetInterceptNetworkUpdate(const String&) const;
  10807. bool HasSubscribedToEvent(Object, const String&);
  10808. bool HasSubscribedToEvent(const String&);
  10809. bool Load(File, bool = false);
  10810. bool Load(VectorBuffer&, bool = false);
  10811. bool LoadJSON(const JSONValue&, bool = false);
  10812. bool LoadXML(const XMLElement&, bool = false);
  10813. void MarkNetworkUpdate() const;
  10814. void Remove();
  10815. void RemoveAttributeAnimation(const String&);
  10816. void RemoveInstanceDefault();
  10817. void RemoveObjectAnimation();
  10818. void ResetToDefault();
  10819. bool Save(File) const;
  10820. bool Save(VectorBuffer&) const;
  10821. bool SaveJSON(JSONValue&) const;
  10822. bool SaveXML(XMLElement&) const;
  10823. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10824. void SetAnimationTime(float);
  10825. bool SetAttribute(const String&, const Variant&);
  10826. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10827. void SetAttributeAnimationSpeed(const String&, float);
  10828. void SetAttributeAnimationTime(const String&, float);
  10829. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10830. void SetInterceptNetworkUpdate(const String&, bool);
  10831. void Update(float, float);
  10832. // Properties:
  10833. bool animationEnabled;
  10834. /* readonly */
  10835. Array<Variant> attributeDefaults;
  10836. /* readonly */
  10837. Array<AttributeInfo> attributeInfos;
  10838. Array<Variant> attributes;
  10839. /* readonly */
  10840. String category;
  10841. bool enabled;
  10842. /* readonly */
  10843. bool enabledEffective;
  10844. /* readonly */
  10845. uint id;
  10846. /* readonly */
  10847. bool inProgress;
  10848. /* readonly */
  10849. Node node;
  10850. /* readonly */
  10851. uint numAttributes;
  10852. ObjectAnimation objectAnimation;
  10853. /* readonly */
  10854. int refs;
  10855. Vector3 targetPosition;
  10856. Quaternion targetRotation;
  10857. Vector3 targetWorldPosition;
  10858. Quaternion targetWorldRotation;
  10859. bool temporary;
  10860. /* readonly */
  10861. StringHash type;
  10862. /* readonly */
  10863. String typeName;
  10864. /* readonly */
  10865. int weakRefs;
  10866. };
  10867. class Sound
  10868. {
  10869. public:
  10870. Sound();
  10871. Sound(const String&in);
  10872. // Methods:
  10873. void AddMetadata(const String&, const Variant&);
  10874. bool HasSubscribedToEvent(Object, const String&);
  10875. bool HasSubscribedToEvent(const String&);
  10876. bool Load(File);
  10877. bool Load(VectorBuffer&);
  10878. bool Load(const String&);
  10879. void RemoveAllMetadata();
  10880. void RemoveMetadata(const String&);
  10881. bool Save(File) const;
  10882. bool Save(VectorBuffer&) const;
  10883. bool Save(const String&) const;
  10884. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10885. // Properties:
  10886. /* readonly */
  10887. String category;
  10888. /* readonly */
  10889. bool compressed;
  10890. /* readonly */
  10891. float frequency;
  10892. /* readonly */
  10893. bool hasMetadata;
  10894. /* readonly */
  10895. float length;
  10896. bool looped;
  10897. /* readonly */
  10898. uint memoryUse;
  10899. Array<Variant> metadata;
  10900. String name;
  10901. /* readonly */
  10902. int refs;
  10903. /* readonly */
  10904. uint sampleSize;
  10905. /* readonly */
  10906. bool sixteenBit;
  10907. /* readonly */
  10908. bool stereo;
  10909. /* readonly */
  10910. StringHash type;
  10911. /* readonly */
  10912. String typeName;
  10913. /* readonly */
  10914. uint useTimer;
  10915. /* readonly */
  10916. int weakRefs;
  10917. };
  10918. class SoundListener
  10919. {
  10920. public:
  10921. // Methods:
  10922. void ApplyAttributes();
  10923. void DrawDebugGeometry(DebugRenderer, bool);
  10924. Variant GetAttribute(const String&) const;
  10925. ValueAnimation GetAttributeAnimation(const String&) const;
  10926. float GetAttributeAnimationSpeed(const String&) const;
  10927. float GetAttributeAnimationTime(const String&) const;
  10928. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10929. Variant GetAttributeDefault(const String&) const;
  10930. bool GetInterceptNetworkUpdate(const String&) const;
  10931. bool HasSubscribedToEvent(Object, const String&);
  10932. bool HasSubscribedToEvent(const String&);
  10933. bool Load(File, bool = false);
  10934. bool Load(VectorBuffer&, bool = false);
  10935. bool LoadJSON(const JSONValue&, bool = false);
  10936. bool LoadXML(const XMLElement&, bool = false);
  10937. void MarkNetworkUpdate() const;
  10938. void Remove();
  10939. void RemoveAttributeAnimation(const String&);
  10940. void RemoveInstanceDefault();
  10941. void RemoveObjectAnimation();
  10942. void ResetToDefault();
  10943. bool Save(File) const;
  10944. bool Save(VectorBuffer&) const;
  10945. bool SaveJSON(JSONValue&) const;
  10946. bool SaveXML(XMLElement&) const;
  10947. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10948. void SetAnimationTime(float);
  10949. bool SetAttribute(const String&, const Variant&);
  10950. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10951. void SetAttributeAnimationSpeed(const String&, float);
  10952. void SetAttributeAnimationTime(const String&, float);
  10953. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10954. void SetInterceptNetworkUpdate(const String&, bool);
  10955. // Properties:
  10956. bool animationEnabled;
  10957. /* readonly */
  10958. Array<Variant> attributeDefaults;
  10959. /* readonly */
  10960. Array<AttributeInfo> attributeInfos;
  10961. Array<Variant> attributes;
  10962. /* readonly */
  10963. String category;
  10964. bool enabled;
  10965. /* readonly */
  10966. bool enabledEffective;
  10967. /* readonly */
  10968. uint id;
  10969. /* readonly */
  10970. Node node;
  10971. /* readonly */
  10972. uint numAttributes;
  10973. ObjectAnimation objectAnimation;
  10974. /* readonly */
  10975. int refs;
  10976. bool temporary;
  10977. /* readonly */
  10978. StringHash type;
  10979. /* readonly */
  10980. String typeName;
  10981. /* readonly */
  10982. int weakRefs;
  10983. };
  10984. class SoundSource
  10985. {
  10986. public:
  10987. SoundSource();
  10988. // Methods:
  10989. void ApplyAttributes();
  10990. void DrawDebugGeometry(DebugRenderer, bool);
  10991. Variant GetAttribute(const String&) const;
  10992. ValueAnimation GetAttributeAnimation(const String&) const;
  10993. float GetAttributeAnimationSpeed(const String&) const;
  10994. float GetAttributeAnimationTime(const String&) const;
  10995. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10996. Variant GetAttributeDefault(const String&) const;
  10997. bool GetInterceptNetworkUpdate(const String&) const;
  10998. bool HasSubscribedToEvent(Object, const String&);
  10999. bool HasSubscribedToEvent(const String&);
  11000. bool Load(File, bool = false);
  11001. bool Load(VectorBuffer&, bool = false);
  11002. bool LoadJSON(const JSONValue&, bool = false);
  11003. bool LoadXML(const XMLElement&, bool = false);
  11004. void MarkNetworkUpdate() const;
  11005. void Play(Sound);
  11006. void Play(Sound, float);
  11007. void Play(Sound, float, float);
  11008. void Play(Sound, float, float, float);
  11009. void Remove();
  11010. void RemoveAttributeAnimation(const String&);
  11011. void RemoveInstanceDefault();
  11012. void RemoveObjectAnimation();
  11013. void ResetToDefault();
  11014. bool Save(File) const;
  11015. bool Save(VectorBuffer&) const;
  11016. bool SaveJSON(JSONValue&) const;
  11017. bool SaveXML(XMLElement&) const;
  11018. void Seek(float);
  11019. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11020. void SetAnimationTime(float);
  11021. bool SetAttribute(const String&, const Variant&);
  11022. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11023. void SetAttributeAnimationSpeed(const String&, float);
  11024. void SetAttributeAnimationTime(const String&, float);
  11025. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11026. void SetInterceptNetworkUpdate(const String&, bool);
  11027. void Stop();
  11028. // Properties:
  11029. bool animationEnabled;
  11030. /* readonly */
  11031. float attenuation;
  11032. /* readonly */
  11033. Array<Variant> attributeDefaults;
  11034. /* readonly */
  11035. Array<AttributeInfo> attributeInfos;
  11036. Array<Variant> attributes;
  11037. AutoRemoveMode autoRemoveMode;
  11038. /* readonly */
  11039. String category;
  11040. bool enabled;
  11041. /* readonly */
  11042. bool enabledEffective;
  11043. float frequency;
  11044. float gain;
  11045. /* readonly */
  11046. uint id;
  11047. /* readonly */
  11048. Node node;
  11049. /* readonly */
  11050. uint numAttributes;
  11051. ObjectAnimation objectAnimation;
  11052. float panning;
  11053. /* readonly */
  11054. bool playing;
  11055. /* readonly */
  11056. int refs;
  11057. /* readonly */
  11058. Sound sound;
  11059. String soundType;
  11060. bool temporary;
  11061. /* readonly */
  11062. float timePosition;
  11063. /* readonly */
  11064. StringHash type;
  11065. /* readonly */
  11066. String typeName;
  11067. /* readonly */
  11068. int weakRefs;
  11069. };
  11070. class SoundSource3D
  11071. {
  11072. public:
  11073. // Methods:
  11074. void ApplyAttributes();
  11075. void DrawDebugGeometry(DebugRenderer, bool);
  11076. Variant GetAttribute(const String&) const;
  11077. ValueAnimation GetAttributeAnimation(const String&) const;
  11078. float GetAttributeAnimationSpeed(const String&) const;
  11079. float GetAttributeAnimationTime(const String&) const;
  11080. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11081. Variant GetAttributeDefault(const String&) const;
  11082. bool GetInterceptNetworkUpdate(const String&) const;
  11083. bool HasSubscribedToEvent(Object, const String&);
  11084. bool HasSubscribedToEvent(const String&);
  11085. bool Load(File, bool = false);
  11086. bool Load(VectorBuffer&, bool = false);
  11087. bool LoadJSON(const JSONValue&, bool = false);
  11088. bool LoadXML(const XMLElement&, bool = false);
  11089. void MarkNetworkUpdate() const;
  11090. void Play(Sound);
  11091. void Play(Sound, float);
  11092. void Play(Sound, float, float);
  11093. void Play(Sound, float, float, float);
  11094. void Remove();
  11095. void RemoveAttributeAnimation(const String&);
  11096. void RemoveInstanceDefault();
  11097. void RemoveObjectAnimation();
  11098. void ResetToDefault();
  11099. bool Save(File) const;
  11100. bool Save(VectorBuffer&) const;
  11101. bool SaveJSON(JSONValue&) const;
  11102. bool SaveXML(XMLElement&) const;
  11103. void Seek(float);
  11104. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11105. void SetAngleAttenuation(float, float);
  11106. void SetAnimationTime(float);
  11107. bool SetAttribute(const String&, const Variant&);
  11108. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11109. void SetAttributeAnimationSpeed(const String&, float);
  11110. void SetAttributeAnimationTime(const String&, float);
  11111. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11112. void SetDistanceAttenuation(float, float, float);
  11113. void SetInterceptNetworkUpdate(const String&, bool);
  11114. void Stop();
  11115. // Properties:
  11116. bool animationEnabled;
  11117. /* readonly */
  11118. float attenuation;
  11119. /* readonly */
  11120. Array<Variant> attributeDefaults;
  11121. /* readonly */
  11122. Array<AttributeInfo> attributeInfos;
  11123. Array<Variant> attributes;
  11124. AutoRemoveMode autoRemoveMode;
  11125. /* readonly */
  11126. String category;
  11127. bool enabled;
  11128. /* readonly */
  11129. bool enabledEffective;
  11130. float farDistance;
  11131. float frequency;
  11132. float gain;
  11133. /* readonly */
  11134. uint id;
  11135. float innerAngle;
  11136. float nearDistance;
  11137. /* readonly */
  11138. Node node;
  11139. /* readonly */
  11140. uint numAttributes;
  11141. ObjectAnimation objectAnimation;
  11142. float outerAngle;
  11143. float panning;
  11144. /* readonly */
  11145. bool playing;
  11146. /* readonly */
  11147. int refs;
  11148. float rolloffFactor;
  11149. /* readonly */
  11150. Sound sound;
  11151. String soundType;
  11152. bool temporary;
  11153. /* readonly */
  11154. float timePosition;
  11155. /* readonly */
  11156. StringHash type;
  11157. /* readonly */
  11158. String typeName;
  11159. /* readonly */
  11160. int weakRefs;
  11161. };
  11162. class Sphere
  11163. {
  11164. public:
  11165. Sphere();
  11166. Sphere(const Sphere&in);
  11167. Sphere(const Vector3&in, float);
  11168. Sphere(const BoundingBox&in);
  11169. Sphere(const Frustum&in);
  11170. Sphere(const Polyhedron&in);
  11171. // Methods:
  11172. void Clear();
  11173. void Define(const BoundingBox&);
  11174. void Define(const Frustum&);
  11175. void Define(const Polyhedron&);
  11176. void Define(const Sphere&);
  11177. void Define(const Vector3&, float);
  11178. bool Defined() const;
  11179. float Distance(const Vector3&) const;
  11180. Vector3 GetLocalPoint(float, float) const;
  11181. Vector3 GetPoint(float, float) const;
  11182. Intersection IsInside(const BoundingBox&) const;
  11183. Intersection IsInside(const Sphere&) const;
  11184. Intersection IsInside(const Vector3&) const;
  11185. Intersection IsInsideFast(const BoundingBox&) const;
  11186. Intersection IsInsideFast(const Sphere&) const;
  11187. void Merge(const BoundingBox&);
  11188. void Merge(const Frustum&);
  11189. void Merge(const Sphere&);
  11190. void Merge(const Vector3&);
  11191. // Properties:
  11192. Vector3 center;
  11193. float radius;
  11194. };
  11195. class Spline
  11196. {
  11197. public:
  11198. Spline();
  11199. Spline(InterpolationMode);
  11200. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  11201. Spline(const Spline&in);
  11202. // Methods:
  11203. void AddKnot(const Variant&);
  11204. void AddKnot(const Variant&, uint);
  11205. void Clear();
  11206. Variant GetPoint(float);
  11207. void RemoveKnot();
  11208. void RemoveKnot(uint);
  11209. // Properties:
  11210. InterpolationMode interpolationMode;
  11211. Array<Variant> knot;
  11212. Array<Variant> knots;
  11213. };
  11214. class SplinePath
  11215. {
  11216. public:
  11217. // Methods:
  11218. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  11219. void ApplyAttributes();
  11220. void ClearControlPoints();
  11221. void DrawDebugGeometry(DebugRenderer, bool);
  11222. Variant GetAttribute(const String&) const;
  11223. ValueAnimation GetAttributeAnimation(const String&) const;
  11224. float GetAttributeAnimationSpeed(const String&) const;
  11225. float GetAttributeAnimationTime(const String&) const;
  11226. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11227. Variant GetAttributeDefault(const String&) const;
  11228. bool GetInterceptNetworkUpdate(const String&) const;
  11229. Vector3 GetPoint(float) const;
  11230. Vector3 GetPosition() const;
  11231. bool HasSubscribedToEvent(Object, const String&);
  11232. bool HasSubscribedToEvent(const String&);
  11233. bool Load(File, bool = false);
  11234. bool Load(VectorBuffer&, bool = false);
  11235. bool LoadJSON(const JSONValue&, bool = false);
  11236. bool LoadXML(const XMLElement&, bool = false);
  11237. void MarkNetworkUpdate() const;
  11238. void Move(float);
  11239. void Remove();
  11240. void RemoveAttributeAnimation(const String&);
  11241. void RemoveControlPoint(Node);
  11242. void RemoveInstanceDefault();
  11243. void RemoveObjectAnimation();
  11244. void Reset();
  11245. void ResetToDefault();
  11246. bool Save(File) const;
  11247. bool Save(VectorBuffer&) const;
  11248. bool SaveJSON(JSONValue&) const;
  11249. bool SaveXML(XMLElement&) const;
  11250. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11251. void SetAnimationTime(float);
  11252. bool SetAttribute(const String&, const Variant&);
  11253. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11254. void SetAttributeAnimationSpeed(const String&, float);
  11255. void SetAttributeAnimationTime(const String&, float);
  11256. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11257. void SetInterceptNetworkUpdate(const String&, bool);
  11258. void SetPosition(float);
  11259. // Properties:
  11260. bool animationEnabled;
  11261. /* readonly */
  11262. Array<Variant> attributeDefaults;
  11263. /* readonly */
  11264. Array<AttributeInfo> attributeInfos;
  11265. Array<Variant> attributes;
  11266. /* readonly */
  11267. String category;
  11268. Node controlledNode;
  11269. bool enabled;
  11270. /* readonly */
  11271. bool enabledEffective;
  11272. /* readonly */
  11273. uint id;
  11274. InterpolationMode interpolationMode;
  11275. /* readonly */
  11276. bool isFinished;
  11277. /* readonly */
  11278. float length;
  11279. /* readonly */
  11280. Node node;
  11281. /* readonly */
  11282. uint numAttributes;
  11283. ObjectAnimation objectAnimation;
  11284. /* readonly */
  11285. int refs;
  11286. float speed;
  11287. bool temporary;
  11288. /* readonly */
  11289. StringHash type;
  11290. /* readonly */
  11291. String typeName;
  11292. /* readonly */
  11293. int weakRefs;
  11294. };
  11295. class Sprite
  11296. {
  11297. public:
  11298. Sprite();
  11299. Sprite(const String&in);
  11300. // Methods:
  11301. void AddChild(UIElement);
  11302. void AddTag(const String&);
  11303. void AddTags(const String&, int8 = ';');
  11304. void ApplyAttributes();
  11305. void BringToFront();
  11306. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11307. void DisableLayoutUpdate();
  11308. IntVector2 ElementToScreen(const IntVector2&);
  11309. void EnableLayoutUpdate();
  11310. uint FindChild(UIElement) const;
  11311. Variant GetAttribute(const String&) const;
  11312. ValueAnimation GetAttributeAnimation(const String&) const;
  11313. float GetAttributeAnimationSpeed(const String&) const;
  11314. float GetAttributeAnimationTime(const String&) const;
  11315. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11316. Variant GetAttributeDefault(const String&) const;
  11317. UIElement GetChild(const String&, bool = false) const;
  11318. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11319. Array<UIElement> GetChildren(bool = false) const;
  11320. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11321. UIElement GetElementEventSender() const;
  11322. bool GetInterceptNetworkUpdate(const String&) const;
  11323. uint GetNumChildren(bool) const;
  11324. bool HasSubscribedToEvent(Object, const String&);
  11325. bool HasSubscribedToEvent(const String&);
  11326. bool HasTag(const String&) const;
  11327. void InsertChild(uint, UIElement);
  11328. bool IsInside(IntVector2, bool);
  11329. bool IsInsideCombined(IntVector2, bool);
  11330. bool Load(File, bool = false);
  11331. bool Load(VectorBuffer&, bool = false);
  11332. UIElement LoadChildXML(XMLFile, XMLFile = null);
  11333. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11334. bool LoadJSON(const JSONValue&, bool = false);
  11335. bool LoadXML(File);
  11336. bool LoadXML(VectorBuffer&);
  11337. bool LoadXML(XMLFile, XMLFile);
  11338. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11339. bool LoadXML(const XMLElement&, bool = false);
  11340. void MarkNetworkUpdate() const;
  11341. void Remove();
  11342. void RemoveAllChildren();
  11343. void RemoveAllTags();
  11344. void RemoveAttributeAnimation(const String&);
  11345. void RemoveChild(UIElement, uint = 0);
  11346. void RemoveChild(uint);
  11347. void RemoveInstanceDefault();
  11348. void RemoveObjectAnimation();
  11349. bool RemoveTag(const String&);
  11350. void ResetDeepEnabled();
  11351. void ResetToDefault();
  11352. bool Save(File) const;
  11353. bool Save(VectorBuffer&) const;
  11354. bool SaveJSON(JSONValue&) const;
  11355. bool SaveXML(File, const String& = "\t");
  11356. bool SaveXML(VectorBuffer&, const String& = "\t");
  11357. bool SaveXML(XMLElement&) const;
  11358. IntVector2 ScreenToElement(const IntVector2&);
  11359. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11360. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11361. void SetAnimationTime(float);
  11362. bool SetAttribute(const String&, const Variant&);
  11363. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11364. void SetAttributeAnimationSpeed(const String&, float);
  11365. void SetAttributeAnimationTime(const String&, float);
  11366. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11367. void SetDeepEnabled(bool);
  11368. void SetEnabledRecursive(bool);
  11369. void SetFixedHeight(int);
  11370. void SetFixedSize(int, int);
  11371. void SetFixedWidth(int);
  11372. void SetFullImageRect();
  11373. void SetHotSpot(int, int);
  11374. void SetInterceptNetworkUpdate(const String&, bool);
  11375. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11376. void SetMaxAnchor(float, float);
  11377. void SetMaxSize(int, int);
  11378. void SetMinAnchor(float, float);
  11379. void SetMinSize(int, int);
  11380. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11381. void SetPivot(float, float);
  11382. void SetPosition(float, float);
  11383. void SetScale(float);
  11384. void SetScale(float, float);
  11385. void SetSize(int, int);
  11386. bool SetStyle(const String&, XMLFile = null);
  11387. bool SetStyle(const XMLElement&);
  11388. bool SetStyleAuto(XMLFile = null);
  11389. void UpdateLayout();
  11390. const Variant& GetVar(const StringHash&);
  11391. // Properties:
  11392. bool animationEnabled;
  11393. /* readonly */
  11394. Array<Variant> attributeDefaults;
  11395. /* readonly */
  11396. Array<AttributeInfo> attributeInfos;
  11397. Array<Variant> attributes;
  11398. BlendMode blendMode;
  11399. bool bringToBack;
  11400. bool bringToFront;
  11401. /* readonly */
  11402. String category;
  11403. /* readonly */
  11404. IntVector2 childOffset;
  11405. /* readonly */
  11406. Array<UIElement> children;
  11407. IntRect clipBorder;
  11408. bool clipChildren;
  11409. /* writeonly */
  11410. Color color;
  11411. /* readonly */
  11412. bool colorGradient;
  11413. Array<Color> colors;
  11414. /* readonly */
  11415. IntRect combinedScreenRect;
  11416. XMLFile defaultStyle;
  11417. /* readonly */
  11418. float derivedOpacity;
  11419. /* readonly */
  11420. uint dragButtonCombo;
  11421. /* readonly */
  11422. int dragButtonCount;
  11423. uint dragDropMode;
  11424. bool editable;
  11425. bool elementEventSender;
  11426. bool enableAnchor;
  11427. bool enabled;
  11428. /* readonly */
  11429. bool enabledSelf;
  11430. /* readonly */
  11431. bool fixedHeight;
  11432. /* readonly */
  11433. bool fixedSize;
  11434. /* readonly */
  11435. bool fixedWidth;
  11436. bool focus;
  11437. FocusMode focusMode;
  11438. int height;
  11439. HorizontalAlignment horizontalAlignment;
  11440. IntVector2 hotSpot;
  11441. /* readonly */
  11442. bool hovering;
  11443. IntRect imageRect;
  11444. int indent;
  11445. int indentSpacing;
  11446. /* readonly */
  11447. int indentWidth;
  11448. bool internal;
  11449. IntRect layoutBorder;
  11450. Vector2 layoutFlexScale;
  11451. LayoutMode layoutMode;
  11452. int layoutSpacing;
  11453. Vector2 maxAnchor;
  11454. int maxHeight;
  11455. IntVector2 maxOffset;
  11456. IntVector2 maxSize;
  11457. int maxWidth;
  11458. Vector2 minAnchor;
  11459. int minHeight;
  11460. IntVector2 minOffset;
  11461. IntVector2 minSize;
  11462. int minWidth;
  11463. String name;
  11464. /* readonly */
  11465. uint numAllChildren;
  11466. /* readonly */
  11467. uint numAttributes;
  11468. /* readonly */
  11469. uint numChildren;
  11470. ObjectAnimation objectAnimation;
  11471. float opacity;
  11472. UIElement parent;
  11473. Vector2 pivot;
  11474. Vector2 position;
  11475. int priority;
  11476. /* readonly */
  11477. int refs;
  11478. /* readonly */
  11479. UIElement root;
  11480. float rotation;
  11481. Vector2 scale;
  11482. /* readonly */
  11483. IntVector2 screenPosition;
  11484. bool selected;
  11485. IntVector2 size;
  11486. bool sortChildren;
  11487. String style;
  11488. /* readonly */
  11489. Array<String> tags;
  11490. bool temporary;
  11491. Texture texture;
  11492. TraversalMode traversalMode;
  11493. /* readonly */
  11494. StringHash type;
  11495. /* readonly */
  11496. String typeName;
  11497. bool useDerivedOpacity;
  11498. /* readonly */
  11499. VariantMap vars;
  11500. VerticalAlignment verticalAlignment;
  11501. bool visible;
  11502. /* readonly */
  11503. bool visibleEffective;
  11504. /* readonly */
  11505. int weakRefs;
  11506. int width;
  11507. };
  11508. class Sprite2D
  11509. {
  11510. public:
  11511. Sprite2D();
  11512. Sprite2D(const String&in);
  11513. // Methods:
  11514. bool HasSubscribedToEvent(Object, const String&);
  11515. bool HasSubscribedToEvent(const String&);
  11516. bool Load(File);
  11517. bool Load(VectorBuffer&);
  11518. bool Load(const String&);
  11519. bool Save(File) const;
  11520. bool Save(VectorBuffer&) const;
  11521. bool Save(const String&) const;
  11522. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11523. // Properties:
  11524. /* readonly */
  11525. String category;
  11526. Vector2 hotSpot;
  11527. /* readonly */
  11528. uint memoryUse;
  11529. String name;
  11530. IntVector2 offset;
  11531. IntRect rectangle;
  11532. /* readonly */
  11533. int refs;
  11534. Texture2D texture;
  11535. float textureEdgeOffset;
  11536. /* readonly */
  11537. StringHash type;
  11538. /* readonly */
  11539. String typeName;
  11540. /* readonly */
  11541. uint useTimer;
  11542. /* readonly */
  11543. int weakRefs;
  11544. };
  11545. class SpriteSheet2D
  11546. {
  11547. public:
  11548. SpriteSheet2D();
  11549. SpriteSheet2D(const String&in);
  11550. // Methods:
  11551. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  11552. Sprite2D GetSprite(const String&);
  11553. bool HasSubscribedToEvent(Object, const String&);
  11554. bool HasSubscribedToEvent(const String&);
  11555. bool Load(File);
  11556. bool Load(VectorBuffer&);
  11557. bool Load(const String&);
  11558. bool Save(File) const;
  11559. bool Save(VectorBuffer&) const;
  11560. bool Save(const String&) const;
  11561. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11562. // Properties:
  11563. /* readonly */
  11564. String category;
  11565. /* readonly */
  11566. uint memoryUse;
  11567. String name;
  11568. /* readonly */
  11569. int refs;
  11570. Texture2D texture;
  11571. /* readonly */
  11572. StringHash type;
  11573. /* readonly */
  11574. String typeName;
  11575. /* readonly */
  11576. uint useTimer;
  11577. /* readonly */
  11578. int weakRefs;
  11579. };
  11580. class StaticModel
  11581. {
  11582. public:
  11583. // Methods:
  11584. void ApplyAttributes();
  11585. void ApplyMaterialList(const String& = String ( ));
  11586. void DrawDebugGeometry(DebugRenderer, bool);
  11587. Variant GetAttribute(const String&) const;
  11588. ValueAnimation GetAttributeAnimation(const String&) const;
  11589. float GetAttributeAnimationSpeed(const String&) const;
  11590. float GetAttributeAnimationTime(const String&) const;
  11591. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11592. Variant GetAttributeDefault(const String&) const;
  11593. bool GetInterceptNetworkUpdate(const String&) const;
  11594. bool HasSubscribedToEvent(Object, const String&);
  11595. bool HasSubscribedToEvent(const String&);
  11596. bool IsInView(Camera) const;
  11597. bool IsInside(const Vector3&) const;
  11598. bool IsInsideLocal(const Vector3&) const;
  11599. bool Load(File, bool = false);
  11600. bool Load(VectorBuffer&, bool = false);
  11601. bool LoadJSON(const JSONValue&, bool = false);
  11602. bool LoadXML(const XMLElement&, bool = false);
  11603. void MarkNetworkUpdate() const;
  11604. void Remove();
  11605. void RemoveAttributeAnimation(const String&);
  11606. void RemoveInstanceDefault();
  11607. void RemoveObjectAnimation();
  11608. void ResetToDefault();
  11609. bool Save(File) const;
  11610. bool Save(VectorBuffer&) const;
  11611. bool SaveJSON(JSONValue&) const;
  11612. bool SaveXML(XMLElement&) const;
  11613. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11614. void SetAnimationTime(float);
  11615. bool SetAttribute(const String&, const Variant&);
  11616. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11617. void SetAttributeAnimationSpeed(const String&, float);
  11618. void SetAttributeAnimationTime(const String&, float);
  11619. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11620. void SetInterceptNetworkUpdate(const String&, bool);
  11621. // Properties:
  11622. bool animationEnabled;
  11623. /* readonly */
  11624. Array<Variant> attributeDefaults;
  11625. /* readonly */
  11626. Array<AttributeInfo> attributeInfos;
  11627. Array<Variant> attributes;
  11628. /* readonly */
  11629. BoundingBox boundingBox;
  11630. bool castShadows;
  11631. /* readonly */
  11632. String category;
  11633. float drawDistance;
  11634. bool enabled;
  11635. /* readonly */
  11636. bool enabledEffective;
  11637. /* readonly */
  11638. uint id;
  11639. /* readonly */
  11640. bool inView;
  11641. uint lightMask;
  11642. float lodBias;
  11643. /* writeonly */
  11644. Material material;
  11645. Array<Material> materials;
  11646. uint maxLights;
  11647. Model model;
  11648. /* readonly */
  11649. Node node;
  11650. /* readonly */
  11651. uint numAttributes;
  11652. /* readonly */
  11653. uint numGeometries;
  11654. ObjectAnimation objectAnimation;
  11655. bool occludee;
  11656. bool occluder;
  11657. uint occlusionLodLevel;
  11658. /* readonly */
  11659. int refs;
  11660. float shadowDistance;
  11661. uint shadowMask;
  11662. bool temporary;
  11663. /* readonly */
  11664. StringHash type;
  11665. /* readonly */
  11666. String typeName;
  11667. uint viewMask;
  11668. /* readonly */
  11669. int weakRefs;
  11670. /* readonly */
  11671. BoundingBox worldBoundingBox;
  11672. uint zoneMask;
  11673. };
  11674. class StaticModelGroup
  11675. {
  11676. public:
  11677. // Methods:
  11678. void AddInstanceNode(Node);
  11679. void ApplyAttributes();
  11680. void ApplyMaterialList(const String& = String ( ));
  11681. void DrawDebugGeometry(DebugRenderer, bool);
  11682. Variant GetAttribute(const String&) const;
  11683. ValueAnimation GetAttributeAnimation(const String&) const;
  11684. float GetAttributeAnimationSpeed(const String&) const;
  11685. float GetAttributeAnimationTime(const String&) const;
  11686. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11687. Variant GetAttributeDefault(const String&) const;
  11688. bool GetInterceptNetworkUpdate(const String&) const;
  11689. bool HasSubscribedToEvent(Object, const String&);
  11690. bool HasSubscribedToEvent(const String&);
  11691. bool IsInView(Camera) const;
  11692. bool Load(File, bool = false);
  11693. bool Load(VectorBuffer&, bool = false);
  11694. bool LoadJSON(const JSONValue&, bool = false);
  11695. bool LoadXML(const XMLElement&, bool = false);
  11696. void MarkNetworkUpdate() const;
  11697. void Remove();
  11698. void RemoveAllInstanceNodes();
  11699. void RemoveAttributeAnimation(const String&);
  11700. void RemoveInstanceDefault();
  11701. void RemoveInstanceNode(Node);
  11702. void RemoveObjectAnimation();
  11703. void ResetToDefault();
  11704. bool Save(File) const;
  11705. bool Save(VectorBuffer&) const;
  11706. bool SaveJSON(JSONValue&) const;
  11707. bool SaveXML(XMLElement&) const;
  11708. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11709. void SetAnimationTime(float);
  11710. bool SetAttribute(const String&, const Variant&);
  11711. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11712. void SetAttributeAnimationSpeed(const String&, float);
  11713. void SetAttributeAnimationTime(const String&, float);
  11714. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11715. void SetInterceptNetworkUpdate(const String&, bool);
  11716. // Properties:
  11717. bool animationEnabled;
  11718. /* readonly */
  11719. Array<Variant> attributeDefaults;
  11720. /* readonly */
  11721. Array<AttributeInfo> attributeInfos;
  11722. Array<Variant> attributes;
  11723. /* readonly */
  11724. BoundingBox boundingBox;
  11725. bool castShadows;
  11726. /* readonly */
  11727. String category;
  11728. float drawDistance;
  11729. bool enabled;
  11730. /* readonly */
  11731. bool enabledEffective;
  11732. /* readonly */
  11733. uint id;
  11734. /* readonly */
  11735. bool inView;
  11736. /* readonly */
  11737. Array<Node> instanceNodes;
  11738. uint lightMask;
  11739. float lodBias;
  11740. /* writeonly */
  11741. Material material;
  11742. Array<Material> materials;
  11743. uint maxLights;
  11744. Model model;
  11745. /* readonly */
  11746. Node node;
  11747. /* readonly */
  11748. uint numAttributes;
  11749. /* readonly */
  11750. uint numGeometries;
  11751. /* readonly */
  11752. uint numInstanceNodes;
  11753. ObjectAnimation objectAnimation;
  11754. bool occludee;
  11755. bool occluder;
  11756. uint occlusionLodLevel;
  11757. /* readonly */
  11758. int refs;
  11759. float shadowDistance;
  11760. uint shadowMask;
  11761. bool temporary;
  11762. /* readonly */
  11763. StringHash type;
  11764. /* readonly */
  11765. String typeName;
  11766. uint viewMask;
  11767. /* readonly */
  11768. int weakRefs;
  11769. /* readonly */
  11770. BoundingBox worldBoundingBox;
  11771. /* readonly */
  11772. Zone zone;
  11773. uint zoneMask;
  11774. };
  11775. class StaticSprite2D
  11776. {
  11777. public:
  11778. // Methods:
  11779. void ApplyAttributes();
  11780. void DrawDebugGeometry(DebugRenderer, bool);
  11781. Variant GetAttribute(const String&) const;
  11782. ValueAnimation GetAttributeAnimation(const String&) const;
  11783. float GetAttributeAnimationSpeed(const String&) const;
  11784. float GetAttributeAnimationTime(const String&) const;
  11785. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11786. Variant GetAttributeDefault(const String&) const;
  11787. bool GetInterceptNetworkUpdate(const String&) const;
  11788. bool HasSubscribedToEvent(Object, const String&);
  11789. bool HasSubscribedToEvent(const String&);
  11790. bool IsInView(Camera) const;
  11791. bool Load(File, bool = false);
  11792. bool Load(VectorBuffer&, bool = false);
  11793. bool LoadJSON(const JSONValue&, bool = false);
  11794. bool LoadXML(const XMLElement&, bool = false);
  11795. void MarkNetworkUpdate() const;
  11796. void Remove();
  11797. void RemoveAttributeAnimation(const String&);
  11798. void RemoveInstanceDefault();
  11799. void RemoveObjectAnimation();
  11800. void ResetToDefault();
  11801. bool Save(File) const;
  11802. bool Save(VectorBuffer&) const;
  11803. bool SaveJSON(JSONValue&) const;
  11804. bool SaveXML(XMLElement&) const;
  11805. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11806. void SetAnimationTime(float);
  11807. bool SetAttribute(const String&, const Variant&);
  11808. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11809. void SetAttributeAnimationSpeed(const String&, float);
  11810. void SetAttributeAnimationTime(const String&, float);
  11811. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11812. void SetFlip(bool, bool);
  11813. void SetInterceptNetworkUpdate(const String&, bool);
  11814. // Properties:
  11815. float alpha;
  11816. bool animationEnabled;
  11817. /* readonly */
  11818. Array<Variant> attributeDefaults;
  11819. /* readonly */
  11820. Array<AttributeInfo> attributeInfos;
  11821. Array<Variant> attributes;
  11822. BlendMode blendMode;
  11823. /* readonly */
  11824. BoundingBox boundingBox;
  11825. bool castShadows;
  11826. /* readonly */
  11827. String category;
  11828. Color color;
  11829. Material customMaterial;
  11830. float drawDistance;
  11831. Rect drawRect;
  11832. bool enabled;
  11833. /* readonly */
  11834. bool enabledEffective;
  11835. bool flipX;
  11836. bool flipY;
  11837. Vector2 hotSpot;
  11838. /* readonly */
  11839. uint id;
  11840. /* readonly */
  11841. bool inView;
  11842. int layer;
  11843. uint lightMask;
  11844. float lodBias;
  11845. uint maxLights;
  11846. /* readonly */
  11847. Node node;
  11848. /* readonly */
  11849. uint numAttributes;
  11850. ObjectAnimation objectAnimation;
  11851. bool occludee;
  11852. bool occluder;
  11853. int orderInLayer;
  11854. /* readonly */
  11855. int refs;
  11856. float shadowDistance;
  11857. uint shadowMask;
  11858. Sprite2D sprite;
  11859. bool temporary;
  11860. Rect textureRect;
  11861. /* readonly */
  11862. StringHash type;
  11863. /* readonly */
  11864. String typeName;
  11865. bool useDrawRect;
  11866. bool useHotSpot;
  11867. bool useTextureRect;
  11868. uint viewMask;
  11869. /* readonly */
  11870. int weakRefs;
  11871. /* readonly */
  11872. BoundingBox worldBoundingBox;
  11873. uint zoneMask;
  11874. };
  11875. class String
  11876. {
  11877. public:
  11878. ~String();
  11879. String();
  11880. String(const String&in);
  11881. String(int);
  11882. String(uint);
  11883. String(float);
  11884. String(double);
  11885. String(bool);
  11886. String(const char*);
  11887. // Methods:
  11888. void AppendUTF8(uint);
  11889. uint AtUTF8(uint) const;
  11890. uint ByteOffsetUTF8(uint) const;
  11891. void Clear();
  11892. int Compare(const String&, bool = true) const;
  11893. bool Contains(const String&, bool = true) const;
  11894. bool Contains(uint8, bool = true) const;
  11895. bool EndsWith(const String&, bool = true) const;
  11896. uint Find(const String&, uint = 0, bool = true) const;
  11897. uint Find(uint8, uint = 0, bool = true) const;
  11898. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  11899. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  11900. void Join(Array<String>&, const String&);
  11901. uint NextUTF8Char(uint&) const;
  11902. void Replace(const String&, const String&, bool = true);
  11903. void Replace(uint8, uint8, bool = true);
  11904. void ReplaceUTF8(uint, uint);
  11905. String Replaced(const String&, const String&, bool = true) const;
  11906. String Replaced(uint8, uint8, bool = true) const;
  11907. void Resize(uint);
  11908. void SetUTF8FromLatin1(const String&);
  11909. Array<String> Split(uint8, bool = false) const;
  11910. bool StartsWith(const String&, bool = true) const;
  11911. String Substring(uint) const;
  11912. String Substring(uint, uint) const;
  11913. String SubstringUTF8(uint) const;
  11914. String SubstringUTF8(uint, uint) const;
  11915. bool ToBool() const;
  11916. Color ToColor() const;
  11917. double ToDouble() const;
  11918. float ToFloat() const;
  11919. int ToInt(int = 10) const;
  11920. int64 ToInt64(int = 10) const;
  11921. IntRect ToIntRect() const;
  11922. IntVector2 ToIntVector2() const;
  11923. IntVector3 ToIntVector3() const;
  11924. String ToLower() const;
  11925. Matrix3 ToMatrix3() const;
  11926. Matrix3x4 ToMatrix3x4() const;
  11927. Matrix4 ToMatrix4() const;
  11928. Quaternion ToQuaternion() const;
  11929. uint ToUInt(int = 10) const;
  11930. uint64 ToUInt64(int = 10) const;
  11931. String ToUpper() const;
  11932. Vector2 ToVector2() const;
  11933. Vector3 ToVector3() const;
  11934. Vector4 ToVector4(bool = false) const;
  11935. Variant ToVectorVariant() const;
  11936. String Trimmed() const;
  11937. // Properties:
  11938. /* readonly */
  11939. bool empty;
  11940. /* readonly */
  11941. uint length;
  11942. /* readonly */
  11943. uint utf8Length;
  11944. };
  11945. class StringHash
  11946. {
  11947. public:
  11948. StringHash();
  11949. StringHash(const StringHash&in);
  11950. StringHash(const String&in);
  11951. StringHash(uint);
  11952. // Methods:
  11953. String ToString() const;
  11954. // Properties:
  11955. /* readonly */
  11956. uint value;
  11957. };
  11958. class Technique
  11959. {
  11960. public:
  11961. Technique();
  11962. Technique(const String&in);
  11963. // Methods:
  11964. Technique Clone(const String& = String ( )) const;
  11965. Pass CreatePass(const String&);
  11966. Pass GetPass(const String&);
  11967. Pass GetSupportedPass(const String&);
  11968. bool HasPass(const String&) const;
  11969. bool HasSubscribedToEvent(Object, const String&);
  11970. bool HasSubscribedToEvent(const String&);
  11971. bool Load(File);
  11972. bool Load(VectorBuffer&);
  11973. bool Load(const String&);
  11974. void RemovePass(const String&);
  11975. bool Save(File) const;
  11976. bool Save(VectorBuffer&) const;
  11977. bool Save(const String&) const;
  11978. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11979. // Properties:
  11980. /* readonly */
  11981. String category;
  11982. bool desktop;
  11983. /* readonly */
  11984. uint memoryUse;
  11985. String name;
  11986. /* readonly */
  11987. uint numPasses;
  11988. /* readonly */
  11989. Array<String> passNames;
  11990. /* readonly */
  11991. Array<Pass> passes;
  11992. /* readonly */
  11993. int refs;
  11994. /* readonly */
  11995. bool supported;
  11996. /* readonly */
  11997. StringHash type;
  11998. /* readonly */
  11999. String typeName;
  12000. /* readonly */
  12001. uint useTimer;
  12002. /* readonly */
  12003. int weakRefs;
  12004. };
  12005. class TechniqueEntry
  12006. {
  12007. public:
  12008. ~TechniqueEntry();
  12009. TechniqueEntry();
  12010. TechniqueEntry(const TechniqueEntry&in);
  12011. // Properties:
  12012. float lodDistance;
  12013. int qualityLevel;
  12014. Technique technique;
  12015. };
  12016. class Terrain
  12017. {
  12018. public:
  12019. // Methods:
  12020. void ApplyAttributes();
  12021. void ApplyHeightMap();
  12022. void DrawDebugGeometry(DebugRenderer, bool);
  12023. Variant GetAttribute(const String&) const;
  12024. ValueAnimation GetAttributeAnimation(const String&) const;
  12025. float GetAttributeAnimationSpeed(const String&) const;
  12026. float GetAttributeAnimationTime(const String&) const;
  12027. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12028. Variant GetAttributeDefault(const String&) const;
  12029. float GetHeight(const Vector3&) const;
  12030. bool GetInterceptNetworkUpdate(const String&) const;
  12031. TerrainPatch GetNeighborPatch(int, int) const;
  12032. Vector3 GetNormal(const Vector3&) const;
  12033. TerrainPatch GetPatch(int, int) const;
  12034. bool HasSubscribedToEvent(Object, const String&);
  12035. bool HasSubscribedToEvent(const String&);
  12036. Vector3 HeightMapToWorld(const IntVector2&) const;
  12037. bool Load(File, bool = false);
  12038. bool Load(VectorBuffer&, bool = false);
  12039. bool LoadJSON(const JSONValue&, bool = false);
  12040. bool LoadXML(const XMLElement&, bool = false);
  12041. void MarkNetworkUpdate() const;
  12042. void Remove();
  12043. void RemoveAttributeAnimation(const String&);
  12044. void RemoveInstanceDefault();
  12045. void RemoveObjectAnimation();
  12046. void ResetToDefault();
  12047. bool Save(File) const;
  12048. bool Save(VectorBuffer&) const;
  12049. bool SaveJSON(JSONValue&) const;
  12050. bool SaveXML(XMLElement&) const;
  12051. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12052. void SetAnimationTime(float);
  12053. bool SetAttribute(const String&, const Variant&);
  12054. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12055. void SetAttributeAnimationSpeed(const String&, float);
  12056. void SetAttributeAnimationTime(const String&, float);
  12057. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12058. void SetInterceptNetworkUpdate(const String&, bool);
  12059. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  12060. IntVector2 WorldToHeightMap(const Vector3&) const;
  12061. // Properties:
  12062. bool animationEnabled;
  12063. /* readonly */
  12064. Array<Variant> attributeDefaults;
  12065. /* readonly */
  12066. Array<AttributeInfo> attributeInfos;
  12067. Array<Variant> attributes;
  12068. bool castShadows;
  12069. /* readonly */
  12070. String category;
  12071. float drawDistance;
  12072. Terrain eastNeighbor;
  12073. bool enabled;
  12074. /* readonly */
  12075. bool enabledEffective;
  12076. Image heightMap;
  12077. /* readonly */
  12078. uint id;
  12079. uint lightMask;
  12080. float lodBias;
  12081. Material material;
  12082. uint maxLights;
  12083. uint maxLodLevels;
  12084. /* readonly */
  12085. Node node;
  12086. Terrain northNeighbor;
  12087. /* readonly */
  12088. uint numAttributes;
  12089. /* readonly */
  12090. IntVector2 numPatches;
  12091. /* readonly */
  12092. IntVector2 numVertices;
  12093. ObjectAnimation objectAnimation;
  12094. bool occludee;
  12095. bool occluder;
  12096. uint occlusionLodLevel;
  12097. int patchSize;
  12098. /* readonly */
  12099. Array<TerrainPatch> patches;
  12100. /* readonly */
  12101. int refs;
  12102. float shadowDistance;
  12103. uint shadowMask;
  12104. bool smoothing;
  12105. Terrain southNeighbor;
  12106. Vector3 spacing;
  12107. bool temporary;
  12108. /* readonly */
  12109. StringHash type;
  12110. /* readonly */
  12111. String typeName;
  12112. uint viewMask;
  12113. /* readonly */
  12114. int weakRefs;
  12115. Terrain westNeighbor;
  12116. uint zoneMask;
  12117. };
  12118. class TerrainPatch
  12119. {
  12120. public:
  12121. // Methods:
  12122. void ApplyAttributes();
  12123. void DrawDebugGeometry(DebugRenderer, bool);
  12124. Variant GetAttribute(const String&) const;
  12125. ValueAnimation GetAttributeAnimation(const String&) const;
  12126. float GetAttributeAnimationSpeed(const String&) const;
  12127. float GetAttributeAnimationTime(const String&) const;
  12128. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12129. Variant GetAttributeDefault(const String&) const;
  12130. bool GetInterceptNetworkUpdate(const String&) const;
  12131. bool HasSubscribedToEvent(Object, const String&);
  12132. bool HasSubscribedToEvent(const String&);
  12133. bool IsInView(Camera) const;
  12134. bool Load(File, bool = false);
  12135. bool Load(VectorBuffer&, bool = false);
  12136. bool LoadJSON(const JSONValue&, bool = false);
  12137. bool LoadXML(const XMLElement&, bool = false);
  12138. void MarkNetworkUpdate() const;
  12139. void Remove();
  12140. void RemoveAttributeAnimation(const String&);
  12141. void RemoveInstanceDefault();
  12142. void RemoveObjectAnimation();
  12143. void ResetToDefault();
  12144. bool Save(File) const;
  12145. bool Save(VectorBuffer&) const;
  12146. bool SaveJSON(JSONValue&) const;
  12147. bool SaveXML(XMLElement&) const;
  12148. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12149. void SetAnimationTime(float);
  12150. bool SetAttribute(const String&, const Variant&);
  12151. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12152. void SetAttributeAnimationSpeed(const String&, float);
  12153. void SetAttributeAnimationTime(const String&, float);
  12154. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12155. void SetInterceptNetworkUpdate(const String&, bool);
  12156. // Properties:
  12157. bool animationEnabled;
  12158. /* readonly */
  12159. Array<Variant> attributeDefaults;
  12160. /* readonly */
  12161. Array<AttributeInfo> attributeInfos;
  12162. Array<Variant> attributes;
  12163. /* readonly */
  12164. BoundingBox boundingBox;
  12165. bool castShadows;
  12166. /* readonly */
  12167. String category;
  12168. float drawDistance;
  12169. bool enabled;
  12170. /* readonly */
  12171. bool enabledEffective;
  12172. /* readonly */
  12173. uint id;
  12174. /* readonly */
  12175. bool inView;
  12176. uint lightMask;
  12177. float lodBias;
  12178. uint maxLights;
  12179. /* readonly */
  12180. Node node;
  12181. /* readonly */
  12182. uint numAttributes;
  12183. ObjectAnimation objectAnimation;
  12184. bool occludee;
  12185. bool occluder;
  12186. /* readonly */
  12187. int refs;
  12188. float shadowDistance;
  12189. uint shadowMask;
  12190. bool temporary;
  12191. /* readonly */
  12192. StringHash type;
  12193. /* readonly */
  12194. String typeName;
  12195. uint viewMask;
  12196. /* readonly */
  12197. int weakRefs;
  12198. /* readonly */
  12199. BoundingBox worldBoundingBox;
  12200. uint zoneMask;
  12201. };
  12202. class Text
  12203. {
  12204. public:
  12205. Text();
  12206. Text(const String&in);
  12207. // Methods:
  12208. void AddChild(UIElement);
  12209. void AddTag(const String&);
  12210. void AddTags(const String&, int8 = ';');
  12211. void ApplyAttributes();
  12212. void BringToFront();
  12213. void ClearSelection();
  12214. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12215. void DisableLayoutUpdate();
  12216. IntVector2 ElementToScreen(const IntVector2&);
  12217. void EnableLayoutUpdate();
  12218. uint FindChild(UIElement) const;
  12219. Variant GetAttribute(const String&) const;
  12220. ValueAnimation GetAttributeAnimation(const String&) const;
  12221. float GetAttributeAnimationSpeed(const String&) const;
  12222. float GetAttributeAnimationTime(const String&) const;
  12223. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12224. Variant GetAttributeDefault(const String&) const;
  12225. UIElement GetChild(const String&, bool = false) const;
  12226. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12227. Array<UIElement> GetChildren(bool = false) const;
  12228. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12229. UIElement GetElementEventSender() const;
  12230. bool GetInterceptNetworkUpdate(const String&) const;
  12231. uint GetNumChildren(bool) const;
  12232. bool HasSubscribedToEvent(Object, const String&);
  12233. bool HasSubscribedToEvent(const String&);
  12234. bool HasTag(const String&) const;
  12235. void InsertChild(uint, UIElement);
  12236. bool IsInside(IntVector2, bool);
  12237. bool IsInsideCombined(IntVector2, bool);
  12238. bool Load(File, bool = false);
  12239. bool Load(VectorBuffer&, bool = false);
  12240. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12241. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12242. bool LoadJSON(const JSONValue&, bool = false);
  12243. bool LoadXML(File);
  12244. bool LoadXML(VectorBuffer&);
  12245. bool LoadXML(XMLFile, XMLFile);
  12246. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12247. bool LoadXML(const XMLElement&, bool = false);
  12248. void MarkNetworkUpdate() const;
  12249. void Remove();
  12250. void RemoveAllChildren();
  12251. void RemoveAllTags();
  12252. void RemoveAttributeAnimation(const String&);
  12253. void RemoveChild(UIElement, uint = 0);
  12254. void RemoveChild(uint);
  12255. void RemoveInstanceDefault();
  12256. void RemoveObjectAnimation();
  12257. bool RemoveTag(const String&);
  12258. void ResetDeepEnabled();
  12259. void ResetToDefault();
  12260. bool Save(File) const;
  12261. bool Save(VectorBuffer&) const;
  12262. bool SaveJSON(JSONValue&) const;
  12263. bool SaveXML(File, const String& = "\t");
  12264. bool SaveXML(VectorBuffer&, const String& = "\t");
  12265. bool SaveXML(XMLElement&) const;
  12266. IntVector2 ScreenToElement(const IntVector2&);
  12267. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12268. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12269. void SetAnimationTime(float);
  12270. bool SetAttribute(const String&, const Variant&);
  12271. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12272. void SetAttributeAnimationSpeed(const String&, float);
  12273. void SetAttributeAnimationTime(const String&, float);
  12274. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12275. void SetDeepEnabled(bool);
  12276. void SetEnabledRecursive(bool);
  12277. void SetFixedHeight(int);
  12278. void SetFixedSize(int, int);
  12279. void SetFixedWidth(int);
  12280. bool SetFont(Font, float);
  12281. bool SetFont(const String&, float);
  12282. void SetInterceptNetworkUpdate(const String&, bool);
  12283. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12284. void SetMaxAnchor(float, float);
  12285. void SetMaxSize(int, int);
  12286. void SetMinAnchor(float, float);
  12287. void SetMinSize(int, int);
  12288. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12289. void SetPivot(float, float);
  12290. void SetPosition(int, int);
  12291. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  12292. void SetSize(int, int);
  12293. bool SetStyle(const String&, XMLFile = null);
  12294. bool SetStyle(const XMLElement&);
  12295. bool SetStyleAuto(XMLFile = null);
  12296. void UpdateLayout();
  12297. const Variant& GetVar(const StringHash&);
  12298. // Properties:
  12299. bool animationEnabled;
  12300. /* readonly */
  12301. Array<Variant> attributeDefaults;
  12302. /* readonly */
  12303. Array<AttributeInfo> attributeInfos;
  12304. Array<Variant> attributes;
  12305. bool autoLocalizable;
  12306. bool bringToBack;
  12307. bool bringToFront;
  12308. /* readonly */
  12309. String category;
  12310. /* readonly */
  12311. Array<Vector2> charPositions;
  12312. /* readonly */
  12313. Array<Vector2> charSizes;
  12314. /* readonly */
  12315. IntVector2 childOffset;
  12316. /* readonly */
  12317. Array<UIElement> children;
  12318. IntRect clipBorder;
  12319. bool clipChildren;
  12320. /* writeonly */
  12321. Color color;
  12322. /* readonly */
  12323. bool colorGradient;
  12324. Array<Color> colors;
  12325. /* readonly */
  12326. IntRect combinedScreenRect;
  12327. XMLFile defaultStyle;
  12328. /* readonly */
  12329. float derivedOpacity;
  12330. /* readonly */
  12331. uint dragButtonCombo;
  12332. /* readonly */
  12333. int dragButtonCount;
  12334. uint dragDropMode;
  12335. bool editable;
  12336. Color effectColor;
  12337. bool effectRoundStroke;
  12338. IntVector2 effectShadowOffset;
  12339. int effectStrokeThickness;
  12340. bool elementEventSender;
  12341. bool enableAnchor;
  12342. bool enabled;
  12343. /* readonly */
  12344. bool enabledSelf;
  12345. /* readonly */
  12346. bool fixedHeight;
  12347. /* readonly */
  12348. bool fixedSize;
  12349. /* readonly */
  12350. bool fixedWidth;
  12351. bool focus;
  12352. FocusMode focusMode;
  12353. /* readonly */
  12354. Font font;
  12355. float fontSize;
  12356. int height;
  12357. HorizontalAlignment horizontalAlignment;
  12358. Color hoverColor;
  12359. /* readonly */
  12360. bool hovering;
  12361. int indent;
  12362. int indentSpacing;
  12363. /* readonly */
  12364. int indentWidth;
  12365. bool internal;
  12366. IntRect layoutBorder;
  12367. Vector2 layoutFlexScale;
  12368. LayoutMode layoutMode;
  12369. int layoutSpacing;
  12370. Vector2 maxAnchor;
  12371. int maxHeight;
  12372. IntVector2 maxOffset;
  12373. IntVector2 maxSize;
  12374. int maxWidth;
  12375. Vector2 minAnchor;
  12376. int minHeight;
  12377. IntVector2 minOffset;
  12378. IntVector2 minSize;
  12379. int minWidth;
  12380. String name;
  12381. /* readonly */
  12382. uint numAllChildren;
  12383. /* readonly */
  12384. uint numAttributes;
  12385. /* readonly */
  12386. uint numChars;
  12387. /* readonly */
  12388. uint numChildren;
  12389. /* readonly */
  12390. uint numRows;
  12391. ObjectAnimation objectAnimation;
  12392. float opacity;
  12393. UIElement parent;
  12394. Vector2 pivot;
  12395. IntVector2 position;
  12396. int priority;
  12397. /* readonly */
  12398. int refs;
  12399. /* readonly */
  12400. UIElement root;
  12401. /* readonly */
  12402. float rowHeight;
  12403. float rowSpacing;
  12404. /* readonly */
  12405. Array<float> rowWidths;
  12406. /* readonly */
  12407. IntVector2 screenPosition;
  12408. bool selected;
  12409. Color selectionColor;
  12410. /* readonly */
  12411. uint selectionLength;
  12412. /* readonly */
  12413. uint selectionStart;
  12414. IntVector2 size;
  12415. bool sortChildren;
  12416. String style;
  12417. /* readonly */
  12418. Array<String> tags;
  12419. bool temporary;
  12420. String text;
  12421. HorizontalAlignment textAlignment;
  12422. TextEffect textEffect;
  12423. TraversalMode traversalMode;
  12424. /* readonly */
  12425. StringHash type;
  12426. /* readonly */
  12427. String typeName;
  12428. bool useDerivedOpacity;
  12429. /* readonly */
  12430. VariantMap vars;
  12431. VerticalAlignment verticalAlignment;
  12432. bool visible;
  12433. /* readonly */
  12434. bool visibleEffective;
  12435. /* readonly */
  12436. int weakRefs;
  12437. int width;
  12438. bool wordwrap;
  12439. };
  12440. class Text3D
  12441. {
  12442. public:
  12443. // Methods:
  12444. void ApplyAttributes();
  12445. void DrawDebugGeometry(DebugRenderer, bool);
  12446. Variant GetAttribute(const String&) const;
  12447. ValueAnimation GetAttributeAnimation(const String&) const;
  12448. float GetAttributeAnimationSpeed(const String&) const;
  12449. float GetAttributeAnimationTime(const String&) const;
  12450. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12451. Variant GetAttributeDefault(const String&) const;
  12452. bool GetInterceptNetworkUpdate(const String&) const;
  12453. bool HasSubscribedToEvent(Object, const String&);
  12454. bool HasSubscribedToEvent(const String&);
  12455. bool IsInView(Camera) const;
  12456. bool Load(File, bool = false);
  12457. bool Load(VectorBuffer&, bool = false);
  12458. bool LoadJSON(const JSONValue&, bool = false);
  12459. bool LoadXML(const XMLElement&, bool = false);
  12460. void MarkNetworkUpdate() const;
  12461. void Remove();
  12462. void RemoveAttributeAnimation(const String&);
  12463. void RemoveInstanceDefault();
  12464. void RemoveObjectAnimation();
  12465. void ResetToDefault();
  12466. bool Save(File) const;
  12467. bool Save(VectorBuffer&) const;
  12468. bool SaveJSON(JSONValue&) const;
  12469. bool SaveXML(XMLElement&) const;
  12470. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12471. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12472. void SetAnimationTime(float);
  12473. bool SetAttribute(const String&, const Variant&);
  12474. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12475. void SetAttributeAnimationSpeed(const String&, float);
  12476. void SetAttributeAnimationTime(const String&, float);
  12477. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12478. bool SetFont(Font, float);
  12479. bool SetFont(const String&, float);
  12480. void SetInterceptNetworkUpdate(const String&, bool);
  12481. // Properties:
  12482. bool animationEnabled;
  12483. /* readonly */
  12484. Array<Variant> attributeDefaults;
  12485. /* readonly */
  12486. Array<AttributeInfo> attributeInfos;
  12487. Array<Variant> attributes;
  12488. /* readonly */
  12489. BoundingBox boundingBox;
  12490. bool castShadows;
  12491. /* readonly */
  12492. String category;
  12493. /* readonly */
  12494. Array<Vector2> charPositions;
  12495. /* readonly */
  12496. Array<Vector2> charSizes;
  12497. /* writeonly */
  12498. Color color;
  12499. Array<Color> colors;
  12500. float drawDistance;
  12501. Color effectColor;
  12502. float effectDepthBias;
  12503. bool effectRoundStroke;
  12504. IntVector2 effectShadowOffset;
  12505. int effectStrokeThickness;
  12506. bool enabled;
  12507. /* readonly */
  12508. bool enabledEffective;
  12509. FaceCameraMode faceCameraMode;
  12510. bool fixedScreenSize;
  12511. /* readonly */
  12512. Font font;
  12513. float fontSize;
  12514. /* readonly */
  12515. int height;
  12516. HorizontalAlignment horizontalAlignment;
  12517. /* readonly */
  12518. uint id;
  12519. /* readonly */
  12520. bool inView;
  12521. uint lightMask;
  12522. float lodBias;
  12523. Material material;
  12524. uint maxLights;
  12525. /* readonly */
  12526. Node node;
  12527. /* readonly */
  12528. uint numAttributes;
  12529. /* readonly */
  12530. uint numChars;
  12531. /* readonly */
  12532. uint numRows;
  12533. ObjectAnimation objectAnimation;
  12534. bool occludee;
  12535. bool occluder;
  12536. float opacity;
  12537. /* readonly */
  12538. int refs;
  12539. /* readonly */
  12540. float rowHeight;
  12541. float rowSpacing;
  12542. /* readonly */
  12543. Array<float> rowWidths;
  12544. float shadowDistance;
  12545. uint shadowMask;
  12546. bool temporary;
  12547. String text;
  12548. HorizontalAlignment textAlignment;
  12549. TextEffect textEffect;
  12550. /* readonly */
  12551. StringHash type;
  12552. /* readonly */
  12553. String typeName;
  12554. VerticalAlignment verticalAlignment;
  12555. uint viewMask;
  12556. /* readonly */
  12557. int weakRefs;
  12558. int width;
  12559. bool wordwrap;
  12560. /* readonly */
  12561. BoundingBox worldBoundingBox;
  12562. uint zoneMask;
  12563. };
  12564. class Texture
  12565. {
  12566. public:
  12567. Texture();
  12568. Texture(const String&in);
  12569. // Methods:
  12570. void AddMetadata(const String&, const Variant&);
  12571. void ClearDataLost();
  12572. bool HasSubscribedToEvent(Object, const String&);
  12573. bool HasSubscribedToEvent(const String&);
  12574. bool Load(File);
  12575. bool Load(VectorBuffer&);
  12576. bool Load(const String&);
  12577. void RemoveAllMetadata();
  12578. void RemoveMetadata(const String&);
  12579. bool Save(File) const;
  12580. bool Save(VectorBuffer&) const;
  12581. bool Save(const String&) const;
  12582. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12583. void SetNumLevels(uint);
  12584. // Properties:
  12585. Array<TextureAddressMode> addressMode;
  12586. uint anisotropy;
  12587. /* readonly */
  12588. bool autoResolve;
  12589. Texture backupTexture;
  12590. Color borderColor;
  12591. /* readonly */
  12592. String category;
  12593. /* readonly */
  12594. uint components;
  12595. /* readonly */
  12596. bool compressed;
  12597. /* readonly */
  12598. bool dataLost;
  12599. TextureFilterMode filterMode;
  12600. /* readonly */
  12601. uint format;
  12602. /* readonly */
  12603. bool hasMetadata;
  12604. /* readonly */
  12605. int height;
  12606. /* readonly */
  12607. Array<int> levelHeight;
  12608. /* readonly */
  12609. Array<int> levelWidth;
  12610. /* readonly */
  12611. uint levels;
  12612. /* readonly */
  12613. bool levelsDirty;
  12614. /* readonly */
  12615. uint memoryUse;
  12616. Array<Variant> metadata;
  12617. Array<int> mipsToSkip;
  12618. /* readonly */
  12619. int multiSample;
  12620. String name;
  12621. /* readonly */
  12622. int refs;
  12623. /* readonly */
  12624. bool resolveDirty;
  12625. bool sRGB;
  12626. /* readonly */
  12627. StringHash type;
  12628. /* readonly */
  12629. String typeName;
  12630. /* readonly */
  12631. TextureUsage usage;
  12632. /* readonly */
  12633. uint useTimer;
  12634. /* readonly */
  12635. int weakRefs;
  12636. /* readonly */
  12637. int width;
  12638. };
  12639. class Texture2D
  12640. {
  12641. public:
  12642. Texture2D();
  12643. Texture2D(const String&in);
  12644. // Methods:
  12645. void AddMetadata(const String&, const Variant&);
  12646. void ClearDataLost();
  12647. Image GetImage() const;
  12648. bool HasSubscribedToEvent(Object, const String&);
  12649. bool HasSubscribedToEvent(const String&);
  12650. bool Load(File);
  12651. bool Load(VectorBuffer&);
  12652. bool Load(const String&);
  12653. void RemoveAllMetadata();
  12654. void RemoveMetadata(const String&);
  12655. bool Save(File) const;
  12656. bool Save(VectorBuffer&) const;
  12657. bool Save(const String&) const;
  12658. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12659. bool SetData(Image, bool = false);
  12660. void SetNumLevels(uint);
  12661. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  12662. // Properties:
  12663. Array<TextureAddressMode> addressMode;
  12664. uint anisotropy;
  12665. /* readonly */
  12666. bool autoResolve;
  12667. Texture backupTexture;
  12668. Color borderColor;
  12669. /* readonly */
  12670. String category;
  12671. /* readonly */
  12672. uint components;
  12673. /* readonly */
  12674. bool compressed;
  12675. /* readonly */
  12676. bool dataLost;
  12677. TextureFilterMode filterMode;
  12678. /* readonly */
  12679. uint format;
  12680. /* readonly */
  12681. bool hasMetadata;
  12682. /* readonly */
  12683. int height;
  12684. /* readonly */
  12685. Array<int> levelHeight;
  12686. /* readonly */
  12687. Array<int> levelWidth;
  12688. /* readonly */
  12689. uint levels;
  12690. /* readonly */
  12691. bool levelsDirty;
  12692. /* readonly */
  12693. uint memoryUse;
  12694. Array<Variant> metadata;
  12695. Array<int> mipsToSkip;
  12696. /* readonly */
  12697. int multiSample;
  12698. String name;
  12699. /* readonly */
  12700. int refs;
  12701. /* readonly */
  12702. RenderSurface renderSurface;
  12703. /* readonly */
  12704. bool resolveDirty;
  12705. bool sRGB;
  12706. /* readonly */
  12707. StringHash type;
  12708. /* readonly */
  12709. String typeName;
  12710. /* readonly */
  12711. TextureUsage usage;
  12712. /* readonly */
  12713. uint useTimer;
  12714. /* readonly */
  12715. int weakRefs;
  12716. /* readonly */
  12717. int width;
  12718. };
  12719. class Texture2DArray
  12720. {
  12721. public:
  12722. Texture2DArray();
  12723. Texture2DArray(const String&in);
  12724. // Methods:
  12725. void AddMetadata(const String&, const Variant&);
  12726. void ClearDataLost();
  12727. bool HasSubscribedToEvent(Object, const String&);
  12728. bool HasSubscribedToEvent(const String&);
  12729. bool Load(File);
  12730. bool Load(VectorBuffer&);
  12731. bool Load(const String&);
  12732. void RemoveAllMetadata();
  12733. void RemoveMetadata(const String&);
  12734. bool Save(File) const;
  12735. bool Save(VectorBuffer&) const;
  12736. bool Save(const String&) const;
  12737. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12738. bool SetData(uint, Image, bool = false);
  12739. void SetNumLevels(uint);
  12740. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12741. // Properties:
  12742. Array<TextureAddressMode> addressMode;
  12743. uint anisotropy;
  12744. /* readonly */
  12745. bool autoResolve;
  12746. Texture backupTexture;
  12747. Color borderColor;
  12748. /* readonly */
  12749. String category;
  12750. /* readonly */
  12751. uint components;
  12752. /* readonly */
  12753. bool compressed;
  12754. /* readonly */
  12755. bool dataLost;
  12756. TextureFilterMode filterMode;
  12757. /* readonly */
  12758. uint format;
  12759. /* readonly */
  12760. bool hasMetadata;
  12761. /* readonly */
  12762. int height;
  12763. uint layers;
  12764. /* readonly */
  12765. Array<int> levelHeight;
  12766. /* readonly */
  12767. Array<int> levelWidth;
  12768. /* readonly */
  12769. uint levels;
  12770. /* readonly */
  12771. bool levelsDirty;
  12772. /* readonly */
  12773. uint memoryUse;
  12774. Array<Variant> metadata;
  12775. Array<int> mipsToSkip;
  12776. /* readonly */
  12777. int multiSample;
  12778. String name;
  12779. /* readonly */
  12780. int refs;
  12781. /* readonly */
  12782. RenderSurface renderSurface;
  12783. /* readonly */
  12784. bool resolveDirty;
  12785. bool sRGB;
  12786. /* readonly */
  12787. StringHash type;
  12788. /* readonly */
  12789. String typeName;
  12790. /* readonly */
  12791. TextureUsage usage;
  12792. /* readonly */
  12793. uint useTimer;
  12794. /* readonly */
  12795. int weakRefs;
  12796. /* readonly */
  12797. int width;
  12798. };
  12799. class Texture3D
  12800. {
  12801. public:
  12802. Texture3D();
  12803. Texture3D(const String&in);
  12804. // Methods:
  12805. void AddMetadata(const String&, const Variant&);
  12806. void ClearDataLost();
  12807. bool HasSubscribedToEvent(Object, const String&);
  12808. bool HasSubscribedToEvent(const String&);
  12809. bool Load(File);
  12810. bool Load(VectorBuffer&);
  12811. bool Load(const String&);
  12812. void RemoveAllMetadata();
  12813. void RemoveMetadata(const String&);
  12814. bool Save(File) const;
  12815. bool Save(VectorBuffer&) const;
  12816. bool Save(const String&) const;
  12817. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12818. bool SetData(Image, bool = false);
  12819. void SetNumLevels(uint);
  12820. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12821. // Properties:
  12822. Array<TextureAddressMode> addressMode;
  12823. uint anisotropy;
  12824. /* readonly */
  12825. bool autoResolve;
  12826. Texture backupTexture;
  12827. Color borderColor;
  12828. /* readonly */
  12829. String category;
  12830. /* readonly */
  12831. uint components;
  12832. /* readonly */
  12833. bool compressed;
  12834. /* readonly */
  12835. bool dataLost;
  12836. TextureFilterMode filterMode;
  12837. /* readonly */
  12838. uint format;
  12839. /* readonly */
  12840. bool hasMetadata;
  12841. /* readonly */
  12842. int height;
  12843. /* readonly */
  12844. Array<int> levelHeight;
  12845. /* readonly */
  12846. Array<int> levelWidth;
  12847. /* readonly */
  12848. uint levels;
  12849. /* readonly */
  12850. bool levelsDirty;
  12851. /* readonly */
  12852. uint memoryUse;
  12853. Array<Variant> metadata;
  12854. Array<int> mipsToSkip;
  12855. /* readonly */
  12856. int multiSample;
  12857. String name;
  12858. /* readonly */
  12859. int refs;
  12860. /* readonly */
  12861. bool resolveDirty;
  12862. bool sRGB;
  12863. /* readonly */
  12864. StringHash type;
  12865. /* readonly */
  12866. String typeName;
  12867. /* readonly */
  12868. TextureUsage usage;
  12869. /* readonly */
  12870. uint useTimer;
  12871. /* readonly */
  12872. int weakRefs;
  12873. /* readonly */
  12874. int width;
  12875. };
  12876. class TextureCube
  12877. {
  12878. public:
  12879. TextureCube();
  12880. TextureCube(const String&in);
  12881. // Methods:
  12882. void AddMetadata(const String&, const Variant&);
  12883. void ClearDataLost();
  12884. Image GetImage(CubeMapFace) const;
  12885. bool HasSubscribedToEvent(Object, const String&);
  12886. bool HasSubscribedToEvent(const String&);
  12887. bool Load(File);
  12888. bool Load(VectorBuffer&);
  12889. bool Load(const String&);
  12890. void RemoveAllMetadata();
  12891. void RemoveMetadata(const String&);
  12892. bool Save(File) const;
  12893. bool Save(VectorBuffer&) const;
  12894. bool Save(const String&) const;
  12895. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12896. bool SetData(CubeMapFace, Image, bool = false);
  12897. void SetNumLevels(uint);
  12898. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  12899. // Properties:
  12900. Array<TextureAddressMode> addressMode;
  12901. uint anisotropy;
  12902. /* readonly */
  12903. bool autoResolve;
  12904. Texture backupTexture;
  12905. Color borderColor;
  12906. /* readonly */
  12907. String category;
  12908. /* readonly */
  12909. uint components;
  12910. /* readonly */
  12911. bool compressed;
  12912. /* readonly */
  12913. bool dataLost;
  12914. TextureFilterMode filterMode;
  12915. /* readonly */
  12916. uint format;
  12917. /* readonly */
  12918. bool hasMetadata;
  12919. /* readonly */
  12920. int height;
  12921. /* readonly */
  12922. Array<int> levelHeight;
  12923. /* readonly */
  12924. Array<int> levelWidth;
  12925. /* readonly */
  12926. uint levels;
  12927. /* readonly */
  12928. bool levelsDirty;
  12929. /* readonly */
  12930. uint memoryUse;
  12931. Array<Variant> metadata;
  12932. Array<int> mipsToSkip;
  12933. /* readonly */
  12934. int multiSample;
  12935. String name;
  12936. /* readonly */
  12937. int refs;
  12938. /* readonly */
  12939. Array<RenderSurface> renderSurfaces;
  12940. /* readonly */
  12941. bool resolveDirty;
  12942. bool sRGB;
  12943. /* readonly */
  12944. StringHash type;
  12945. /* readonly */
  12946. String typeName;
  12947. /* readonly */
  12948. TextureUsage usage;
  12949. /* readonly */
  12950. uint useTimer;
  12951. /* readonly */
  12952. int weakRefs;
  12953. /* readonly */
  12954. int width;
  12955. };
  12956. class TextureFrame
  12957. {
  12958. public:
  12959. // Properties:
  12960. float time;
  12961. Rect uv;
  12962. };
  12963. class Tile2D
  12964. {
  12965. public:
  12966. // Methods:
  12967. bool HasProperty(const String&) const;
  12968. const String& GetProperty(const String&) const;
  12969. // Properties:
  12970. /* readonly */
  12971. int gid;
  12972. /* readonly */
  12973. int refs;
  12974. /* readonly */
  12975. Sprite2D sprite;
  12976. /* readonly */
  12977. int weakRefs;
  12978. };
  12979. class TileMap2D
  12980. {
  12981. public:
  12982. // Methods:
  12983. void ApplyAttributes();
  12984. void DrawDebugGeometry(DebugRenderer, bool);
  12985. Variant GetAttribute(const String&) const;
  12986. ValueAnimation GetAttributeAnimation(const String&) const;
  12987. float GetAttributeAnimationSpeed(const String&) const;
  12988. float GetAttributeAnimationTime(const String&) const;
  12989. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12990. Variant GetAttributeDefault(const String&) const;
  12991. bool GetInterceptNetworkUpdate(const String&) const;
  12992. TileMapLayer2D GetLayer(uint) const;
  12993. Array<TileMapObject2D> GetTileCollisionShapes(int) const;
  12994. bool HasSubscribedToEvent(Object, const String&);
  12995. bool HasSubscribedToEvent(const String&);
  12996. bool Load(File, bool = false);
  12997. bool Load(VectorBuffer&, bool = false);
  12998. bool LoadJSON(const JSONValue&, bool = false);
  12999. bool LoadXML(const XMLElement&, bool = false);
  13000. void MarkNetworkUpdate() const;
  13001. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  13002. void Remove();
  13003. void RemoveAttributeAnimation(const String&);
  13004. void RemoveInstanceDefault();
  13005. void RemoveObjectAnimation();
  13006. void ResetToDefault();
  13007. bool Save(File) const;
  13008. bool Save(VectorBuffer&) const;
  13009. bool SaveJSON(JSONValue&) const;
  13010. bool SaveXML(XMLElement&) const;
  13011. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13012. void SetAnimationTime(float);
  13013. bool SetAttribute(const String&, const Variant&);
  13014. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13015. void SetAttributeAnimationSpeed(const String&, float);
  13016. void SetAttributeAnimationTime(const String&, float);
  13017. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13018. void SetInterceptNetworkUpdate(const String&, bool);
  13019. Vector2 TileIndexToPosition(int, int) const;
  13020. // Properties:
  13021. bool animationEnabled;
  13022. /* readonly */
  13023. Array<Variant> attributeDefaults;
  13024. /* readonly */
  13025. Array<AttributeInfo> attributeInfos;
  13026. Array<Variant> attributes;
  13027. /* readonly */
  13028. String category;
  13029. bool enabled;
  13030. /* readonly */
  13031. bool enabledEffective;
  13032. /* readonly */
  13033. uint id;
  13034. /* readonly */
  13035. TileMapInfo2D info;
  13036. /* readonly */
  13037. Node node;
  13038. /* readonly */
  13039. uint numAttributes;
  13040. /* readonly */
  13041. uint numLayers;
  13042. ObjectAnimation objectAnimation;
  13043. /* readonly */
  13044. int refs;
  13045. bool temporary;
  13046. TmxFile2D tmxFile;
  13047. /* readonly */
  13048. StringHash type;
  13049. /* readonly */
  13050. String typeName;
  13051. /* readonly */
  13052. int weakRefs;
  13053. };
  13054. class TileMapInfo2D
  13055. {
  13056. public:
  13057. // Properties:
  13058. int height;
  13059. /* readonly */
  13060. float mapHeight;
  13061. /* readonly */
  13062. float mapWidth;
  13063. Orientation2D orientation;
  13064. float tileHeight;
  13065. float tileWidth;
  13066. int width;
  13067. };
  13068. class TileMapLayer2D
  13069. {
  13070. public:
  13071. // Methods:
  13072. void ApplyAttributes();
  13073. void DrawDebugGeometry(DebugRenderer, bool);
  13074. Variant GetAttribute(const String&) const;
  13075. ValueAnimation GetAttributeAnimation(const String&) const;
  13076. float GetAttributeAnimationSpeed(const String&) const;
  13077. float GetAttributeAnimationTime(const String&) const;
  13078. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13079. Variant GetAttributeDefault(const String&) const;
  13080. bool GetInterceptNetworkUpdate(const String&) const;
  13081. TileMapObject2D GetObject(uint) const;
  13082. Node GetObjectNode(uint) const;
  13083. Tile2D GetTile(int, int) const;
  13084. Node GetTileNode(int, int) const;
  13085. bool HasProperty(const String&) const;
  13086. bool HasSubscribedToEvent(Object, const String&);
  13087. bool HasSubscribedToEvent(const String&);
  13088. bool Load(File, bool = false);
  13089. bool Load(VectorBuffer&, bool = false);
  13090. bool LoadJSON(const JSONValue&, bool = false);
  13091. bool LoadXML(const XMLElement&, bool = false);
  13092. void MarkNetworkUpdate() const;
  13093. void Remove();
  13094. void RemoveAttributeAnimation(const String&);
  13095. void RemoveInstanceDefault();
  13096. void RemoveObjectAnimation();
  13097. void ResetToDefault();
  13098. bool Save(File) const;
  13099. bool Save(VectorBuffer&) const;
  13100. bool SaveJSON(JSONValue&) const;
  13101. bool SaveXML(XMLElement&) const;
  13102. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13103. void SetAnimationTime(float);
  13104. bool SetAttribute(const String&, const Variant&);
  13105. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13106. void SetAttributeAnimationSpeed(const String&, float);
  13107. void SetAttributeAnimationTime(const String&, float);
  13108. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13109. void SetInterceptNetworkUpdate(const String&, bool);
  13110. const String& GetProperty(const String&) const;
  13111. // Properties:
  13112. bool animationEnabled;
  13113. /* readonly */
  13114. Array<Variant> attributeDefaults;
  13115. /* readonly */
  13116. Array<AttributeInfo> attributeInfos;
  13117. Array<Variant> attributes;
  13118. /* readonly */
  13119. String category;
  13120. int drawOrder;
  13121. bool enabled;
  13122. /* readonly */
  13123. bool enabledEffective;
  13124. /* readonly */
  13125. int height;
  13126. /* readonly */
  13127. uint id;
  13128. /* readonly */
  13129. Node imageNode;
  13130. /* readonly */
  13131. TileMapLayerType2D layerType;
  13132. /* readonly */
  13133. Node node;
  13134. /* readonly */
  13135. uint numAttributes;
  13136. /* readonly */
  13137. uint numObjects;
  13138. ObjectAnimation objectAnimation;
  13139. /* readonly */
  13140. int refs;
  13141. bool temporary;
  13142. /* readonly */
  13143. StringHash type;
  13144. /* readonly */
  13145. String typeName;
  13146. bool visible;
  13147. /* readonly */
  13148. int weakRefs;
  13149. /* readonly */
  13150. int width;
  13151. };
  13152. class TileMapObject2D
  13153. {
  13154. public:
  13155. // Methods:
  13156. bool HasProperty(const String&) const;
  13157. const String& GetProperty(const String&) const;
  13158. const Vector2& GetPoint(uint) const;
  13159. // Properties:
  13160. /* readonly */
  13161. String name;
  13162. /* readonly */
  13163. uint numPoints;
  13164. /* readonly */
  13165. TileObjectType2D objectType;
  13166. /* readonly */
  13167. Vector2 position;
  13168. /* readonly */
  13169. int refs;
  13170. /* readonly */
  13171. Vector2 size;
  13172. /* readonly */
  13173. int tileGid;
  13174. /* readonly */
  13175. Sprite2D tileSprite;
  13176. /* readonly */
  13177. String type;
  13178. /* readonly */
  13179. int weakRefs;
  13180. };
  13181. class Time
  13182. {
  13183. public:
  13184. // Methods:
  13185. bool HasSubscribedToEvent(Object, const String&);
  13186. bool HasSubscribedToEvent(const String&);
  13187. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13188. // Properties:
  13189. /* readonly */
  13190. String category;
  13191. /* readonly */
  13192. float elapsedTime;
  13193. /* readonly */
  13194. uint frameNumber;
  13195. /* readonly */
  13196. int refs;
  13197. /* readonly */
  13198. uint systemTime;
  13199. /* readonly */
  13200. uint timeSinceEpoch;
  13201. /* readonly */
  13202. String timeStamp;
  13203. /* readonly */
  13204. float timeStep;
  13205. /* readonly */
  13206. StringHash type;
  13207. /* readonly */
  13208. String typeName;
  13209. /* readonly */
  13210. int weakRefs;
  13211. };
  13212. class Timer
  13213. {
  13214. public:
  13215. Timer();
  13216. // Methods:
  13217. uint GetMSec(bool);
  13218. void Reset();
  13219. };
  13220. class TmxFile2D
  13221. {
  13222. public:
  13223. TmxFile2D();
  13224. TmxFile2D(const String&in);
  13225. // Methods:
  13226. bool HasSubscribedToEvent(Object, const String&);
  13227. bool HasSubscribedToEvent(const String&);
  13228. bool Load(File);
  13229. bool Load(VectorBuffer&);
  13230. bool Load(const String&);
  13231. bool Save(File) const;
  13232. bool Save(VectorBuffer&) const;
  13233. bool Save(const String&) const;
  13234. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13235. // Properties:
  13236. /* readonly */
  13237. String category;
  13238. /* readonly */
  13239. uint memoryUse;
  13240. String name;
  13241. /* readonly */
  13242. int refs;
  13243. /* readonly */
  13244. StringHash type;
  13245. /* readonly */
  13246. String typeName;
  13247. /* readonly */
  13248. uint useTimer;
  13249. /* readonly */
  13250. int weakRefs;
  13251. };
  13252. class ToolTip
  13253. {
  13254. public:
  13255. ToolTip();
  13256. ToolTip(const String&in);
  13257. // Methods:
  13258. void AddChild(UIElement);
  13259. void AddTag(const String&);
  13260. void AddTags(const String&, int8 = ';');
  13261. void ApplyAttributes();
  13262. void BringToFront();
  13263. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13264. void DisableLayoutUpdate();
  13265. IntVector2 ElementToScreen(const IntVector2&);
  13266. void EnableLayoutUpdate();
  13267. uint FindChild(UIElement) const;
  13268. Variant GetAttribute(const String&) const;
  13269. ValueAnimation GetAttributeAnimation(const String&) const;
  13270. float GetAttributeAnimationSpeed(const String&) const;
  13271. float GetAttributeAnimationTime(const String&) const;
  13272. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13273. Variant GetAttributeDefault(const String&) const;
  13274. UIElement GetChild(const String&, bool = false) const;
  13275. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13276. Array<UIElement> GetChildren(bool = false) const;
  13277. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13278. UIElement GetElementEventSender() const;
  13279. bool GetInterceptNetworkUpdate(const String&) const;
  13280. uint GetNumChildren(bool) const;
  13281. bool HasSubscribedToEvent(Object, const String&);
  13282. bool HasSubscribedToEvent(const String&);
  13283. bool HasTag(const String&) const;
  13284. void InsertChild(uint, UIElement);
  13285. bool IsInside(IntVector2, bool);
  13286. bool IsInsideCombined(IntVector2, bool);
  13287. bool Load(File, bool = false);
  13288. bool Load(VectorBuffer&, bool = false);
  13289. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13290. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13291. bool LoadJSON(const JSONValue&, bool = false);
  13292. bool LoadXML(File);
  13293. bool LoadXML(VectorBuffer&);
  13294. bool LoadXML(XMLFile, XMLFile);
  13295. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13296. bool LoadXML(const XMLElement&, bool = false);
  13297. void MarkNetworkUpdate() const;
  13298. void Remove();
  13299. void RemoveAllChildren();
  13300. void RemoveAllTags();
  13301. void RemoveAttributeAnimation(const String&);
  13302. void RemoveChild(UIElement, uint = 0);
  13303. void RemoveChild(uint);
  13304. void RemoveInstanceDefault();
  13305. void RemoveObjectAnimation();
  13306. bool RemoveTag(const String&);
  13307. void ResetDeepEnabled();
  13308. void ResetToDefault();
  13309. bool Save(File) const;
  13310. bool Save(VectorBuffer&) const;
  13311. bool SaveJSON(JSONValue&) const;
  13312. bool SaveXML(File, const String& = "\t");
  13313. bool SaveXML(VectorBuffer&, const String& = "\t");
  13314. bool SaveXML(XMLElement&) const;
  13315. IntVector2 ScreenToElement(const IntVector2&);
  13316. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13317. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13318. void SetAnimationTime(float);
  13319. bool SetAttribute(const String&, const Variant&);
  13320. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13321. void SetAttributeAnimationSpeed(const String&, float);
  13322. void SetAttributeAnimationTime(const String&, float);
  13323. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13324. void SetDeepEnabled(bool);
  13325. void SetEnabledRecursive(bool);
  13326. void SetFixedHeight(int);
  13327. void SetFixedSize(int, int);
  13328. void SetFixedWidth(int);
  13329. void SetInterceptNetworkUpdate(const String&, bool);
  13330. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13331. void SetMaxAnchor(float, float);
  13332. void SetMaxSize(int, int);
  13333. void SetMinAnchor(float, float);
  13334. void SetMinSize(int, int);
  13335. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13336. void SetPivot(float, float);
  13337. void SetPosition(int, int);
  13338. void SetSize(int, int);
  13339. bool SetStyle(const String&, XMLFile = null);
  13340. bool SetStyle(const XMLElement&);
  13341. bool SetStyleAuto(XMLFile = null);
  13342. void UpdateLayout();
  13343. const Variant& GetVar(const StringHash&);
  13344. // Properties:
  13345. bool animationEnabled;
  13346. /* readonly */
  13347. Array<Variant> attributeDefaults;
  13348. /* readonly */
  13349. Array<AttributeInfo> attributeInfos;
  13350. Array<Variant> attributes;
  13351. bool bringToBack;
  13352. bool bringToFront;
  13353. /* readonly */
  13354. String category;
  13355. /* readonly */
  13356. IntVector2 childOffset;
  13357. /* readonly */
  13358. Array<UIElement> children;
  13359. IntRect clipBorder;
  13360. bool clipChildren;
  13361. /* writeonly */
  13362. Color color;
  13363. /* readonly */
  13364. bool colorGradient;
  13365. Array<Color> colors;
  13366. /* readonly */
  13367. IntRect combinedScreenRect;
  13368. XMLFile defaultStyle;
  13369. float delay;
  13370. /* readonly */
  13371. float derivedOpacity;
  13372. /* readonly */
  13373. uint dragButtonCombo;
  13374. /* readonly */
  13375. int dragButtonCount;
  13376. uint dragDropMode;
  13377. bool editable;
  13378. bool elementEventSender;
  13379. bool enableAnchor;
  13380. bool enabled;
  13381. /* readonly */
  13382. bool enabledSelf;
  13383. /* readonly */
  13384. bool fixedHeight;
  13385. /* readonly */
  13386. bool fixedSize;
  13387. /* readonly */
  13388. bool fixedWidth;
  13389. bool focus;
  13390. FocusMode focusMode;
  13391. int height;
  13392. HorizontalAlignment horizontalAlignment;
  13393. /* readonly */
  13394. bool hovering;
  13395. int indent;
  13396. int indentSpacing;
  13397. /* readonly */
  13398. int indentWidth;
  13399. bool internal;
  13400. IntRect layoutBorder;
  13401. Vector2 layoutFlexScale;
  13402. LayoutMode layoutMode;
  13403. int layoutSpacing;
  13404. Vector2 maxAnchor;
  13405. int maxHeight;
  13406. IntVector2 maxOffset;
  13407. IntVector2 maxSize;
  13408. int maxWidth;
  13409. Vector2 minAnchor;
  13410. int minHeight;
  13411. IntVector2 minOffset;
  13412. IntVector2 minSize;
  13413. int minWidth;
  13414. String name;
  13415. /* readonly */
  13416. uint numAllChildren;
  13417. /* readonly */
  13418. uint numAttributes;
  13419. /* readonly */
  13420. uint numChildren;
  13421. ObjectAnimation objectAnimation;
  13422. float opacity;
  13423. UIElement parent;
  13424. Vector2 pivot;
  13425. IntVector2 position;
  13426. int priority;
  13427. /* readonly */
  13428. int refs;
  13429. /* readonly */
  13430. UIElement root;
  13431. /* readonly */
  13432. IntVector2 screenPosition;
  13433. bool selected;
  13434. IntVector2 size;
  13435. bool sortChildren;
  13436. String style;
  13437. /* readonly */
  13438. Array<String> tags;
  13439. bool temporary;
  13440. TraversalMode traversalMode;
  13441. /* readonly */
  13442. StringHash type;
  13443. /* readonly */
  13444. String typeName;
  13445. bool useDerivedOpacity;
  13446. /* readonly */
  13447. VariantMap vars;
  13448. VerticalAlignment verticalAlignment;
  13449. bool visible;
  13450. /* readonly */
  13451. bool visibleEffective;
  13452. /* readonly */
  13453. int weakRefs;
  13454. int width;
  13455. };
  13456. class TouchState
  13457. {
  13458. public:
  13459. // Properties:
  13460. IntVector2 delta;
  13461. IntVector2 lastPosition;
  13462. IntVector2 position;
  13463. float pressure;
  13464. int touchID;
  13465. /* readonly */
  13466. UIElement touchedElement;
  13467. };
  13468. class UI
  13469. {
  13470. public:
  13471. // Methods:
  13472. void Clear();
  13473. void DebugDraw(UIElement);
  13474. UIElement GetElementAt(const IntVector2&, bool = true);
  13475. UIElement GetElementAt(int, int, bool = true);
  13476. bool HasModalElement() const;
  13477. bool HasSubscribedToEvent(Object, const String&);
  13478. bool HasSubscribedToEvent(const String&);
  13479. bool IsDragging() const;
  13480. UIElement LoadLayout(File);
  13481. UIElement LoadLayout(File, XMLFile);
  13482. UIElement LoadLayout(VectorBuffer&);
  13483. UIElement LoadLayout(VectorBuffer&, XMLFile);
  13484. UIElement LoadLayout(XMLFile);
  13485. UIElement LoadLayout(XMLFile, XMLFile);
  13486. bool SaveLayout(File, UIElement);
  13487. bool SaveLayout(VectorBuffer&, UIElement);
  13488. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13489. void SetCustomSize(int, int);
  13490. void SetFocusElement(UIElement, bool = false);
  13491. void SetHeight(float);
  13492. void SetWidth(float);
  13493. const Array<UIElement> GetDragElements();
  13494. // Properties:
  13495. /* readonly */
  13496. String category;
  13497. String clipBoardText;
  13498. Cursor cursor;
  13499. /* readonly */
  13500. IntVector2 cursorPosition;
  13501. IntVector2 customSize;
  13502. float defaultToolTipDelay;
  13503. float doubleClickInterval;
  13504. int dragBeginDistance;
  13505. float dragBeginInterval;
  13506. UIElement focusElement;
  13507. FontHintLevel fontHintLevel;
  13508. int fontOversampling;
  13509. float fontSubpixelThreshold;
  13510. bool forceAutoHint;
  13511. /* readonly */
  13512. UIElement frontElement;
  13513. int maxFontTextureSize;
  13514. /* readonly */
  13515. UIElement modalRoot;
  13516. bool nonFocusedMouseWheel;
  13517. /* readonly */
  13518. int refs;
  13519. /* readonly */
  13520. UIElement root;
  13521. float scale;
  13522. /* readonly */
  13523. StringHash type;
  13524. /* readonly */
  13525. String typeName;
  13526. bool useMutableGlyphs;
  13527. bool useScreenKeyboard;
  13528. bool useSystemClipboard;
  13529. /* readonly */
  13530. int weakRefs;
  13531. };
  13532. class UIComponent
  13533. {
  13534. public:
  13535. // Methods:
  13536. void ApplyAttributes();
  13537. Variant GetAttribute(const String&) const;
  13538. ValueAnimation GetAttributeAnimation(const String&) const;
  13539. float GetAttributeAnimationSpeed(const String&) const;
  13540. float GetAttributeAnimationTime(const String&) const;
  13541. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13542. Variant GetAttributeDefault(const String&) const;
  13543. bool GetInterceptNetworkUpdate(const String&) const;
  13544. bool HasSubscribedToEvent(Object, const String&);
  13545. bool HasSubscribedToEvent(const String&);
  13546. bool Load(File, bool = false);
  13547. bool Load(VectorBuffer&, bool = false);
  13548. bool LoadJSON(const JSONValue&, bool = false);
  13549. bool LoadXML(const XMLElement&, bool = false);
  13550. void MarkNetworkUpdate() const;
  13551. void Remove();
  13552. void RemoveAttributeAnimation(const String&);
  13553. void RemoveInstanceDefault();
  13554. void RemoveObjectAnimation();
  13555. void ResetToDefault();
  13556. bool Save(File) const;
  13557. bool Save(VectorBuffer&) const;
  13558. bool SaveJSON(JSONValue&) const;
  13559. bool SaveXML(XMLElement&) const;
  13560. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13561. void SetAnimationTime(float);
  13562. bool SetAttribute(const String&, const Variant&);
  13563. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13564. void SetAttributeAnimationSpeed(const String&, float);
  13565. void SetAttributeAnimationTime(const String&, float);
  13566. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13567. void SetInterceptNetworkUpdate(const String&, bool);
  13568. // Properties:
  13569. bool animationEnabled;
  13570. /* readonly */
  13571. Array<Variant> attributeDefaults;
  13572. /* readonly */
  13573. Array<AttributeInfo> attributeInfos;
  13574. Array<Variant> attributes;
  13575. /* readonly */
  13576. String category;
  13577. bool enabled;
  13578. /* readonly */
  13579. bool enabledEffective;
  13580. /* readonly */
  13581. uint id;
  13582. /* readonly */
  13583. Material material;
  13584. /* readonly */
  13585. Node node;
  13586. /* readonly */
  13587. uint numAttributes;
  13588. ObjectAnimation objectAnimation;
  13589. /* readonly */
  13590. int refs;
  13591. /* readonly */
  13592. UIElement root;
  13593. bool temporary;
  13594. /* readonly */
  13595. Texture2D texture;
  13596. /* readonly */
  13597. StringHash type;
  13598. /* readonly */
  13599. String typeName;
  13600. /* readonly */
  13601. int weakRefs;
  13602. };
  13603. class UIElement
  13604. {
  13605. public:
  13606. UIElement();
  13607. UIElement(const String&in);
  13608. // Methods:
  13609. void AddChild(UIElement);
  13610. void AddTag(const String&);
  13611. void AddTags(const String&, int8 = ';');
  13612. void ApplyAttributes();
  13613. void BringToFront();
  13614. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13615. void DisableLayoutUpdate();
  13616. IntVector2 ElementToScreen(const IntVector2&);
  13617. void EnableLayoutUpdate();
  13618. uint FindChild(UIElement) const;
  13619. Variant GetAttribute(const String&) const;
  13620. ValueAnimation GetAttributeAnimation(const String&) const;
  13621. float GetAttributeAnimationSpeed(const String&) const;
  13622. float GetAttributeAnimationTime(const String&) const;
  13623. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13624. Variant GetAttributeDefault(const String&) const;
  13625. UIElement GetChild(const String&, bool = false) const;
  13626. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13627. Array<UIElement> GetChildren(bool = false) const;
  13628. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13629. UIElement GetElementEventSender() const;
  13630. bool GetInterceptNetworkUpdate(const String&) const;
  13631. uint GetNumChildren(bool) const;
  13632. bool HasSubscribedToEvent(Object, const String&);
  13633. bool HasSubscribedToEvent(const String&);
  13634. bool HasTag(const String&) const;
  13635. void InsertChild(uint, UIElement);
  13636. bool IsInside(IntVector2, bool);
  13637. bool IsInsideCombined(IntVector2, bool);
  13638. bool Load(File, bool = false);
  13639. bool Load(VectorBuffer&, bool = false);
  13640. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13641. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13642. bool LoadJSON(const JSONValue&, bool = false);
  13643. bool LoadXML(File);
  13644. bool LoadXML(VectorBuffer&);
  13645. bool LoadXML(XMLFile, XMLFile);
  13646. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13647. bool LoadXML(const XMLElement&, bool = false);
  13648. void MarkNetworkUpdate() const;
  13649. void Remove();
  13650. void RemoveAllChildren();
  13651. void RemoveAllTags();
  13652. void RemoveAttributeAnimation(const String&);
  13653. void RemoveChild(UIElement, uint = 0);
  13654. void RemoveChild(uint);
  13655. void RemoveInstanceDefault();
  13656. void RemoveObjectAnimation();
  13657. bool RemoveTag(const String&);
  13658. void ResetDeepEnabled();
  13659. void ResetToDefault();
  13660. bool Save(File) const;
  13661. bool Save(VectorBuffer&) const;
  13662. bool SaveJSON(JSONValue&) const;
  13663. bool SaveXML(File, const String& = "\t");
  13664. bool SaveXML(VectorBuffer&, const String& = "\t");
  13665. bool SaveXML(XMLElement&) const;
  13666. IntVector2 ScreenToElement(const IntVector2&);
  13667. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13668. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13669. void SetAnimationTime(float);
  13670. bool SetAttribute(const String&, const Variant&);
  13671. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13672. void SetAttributeAnimationSpeed(const String&, float);
  13673. void SetAttributeAnimationTime(const String&, float);
  13674. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13675. void SetDeepEnabled(bool);
  13676. void SetEnabledRecursive(bool);
  13677. void SetFixedHeight(int);
  13678. void SetFixedSize(int, int);
  13679. void SetFixedWidth(int);
  13680. void SetInterceptNetworkUpdate(const String&, bool);
  13681. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13682. void SetMaxAnchor(float, float);
  13683. void SetMaxSize(int, int);
  13684. void SetMinAnchor(float, float);
  13685. void SetMinSize(int, int);
  13686. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13687. void SetPivot(float, float);
  13688. void SetPosition(int, int);
  13689. void SetSize(int, int);
  13690. bool SetStyle(const String&, XMLFile = null);
  13691. bool SetStyle(const XMLElement&);
  13692. bool SetStyleAuto(XMLFile = null);
  13693. void UpdateLayout();
  13694. const Variant& GetVar(const StringHash&);
  13695. // Properties:
  13696. bool animationEnabled;
  13697. /* readonly */
  13698. Array<Variant> attributeDefaults;
  13699. /* readonly */
  13700. Array<AttributeInfo> attributeInfos;
  13701. Array<Variant> attributes;
  13702. bool bringToBack;
  13703. bool bringToFront;
  13704. /* readonly */
  13705. String category;
  13706. /* readonly */
  13707. IntVector2 childOffset;
  13708. /* readonly */
  13709. Array<UIElement> children;
  13710. IntRect clipBorder;
  13711. bool clipChildren;
  13712. /* writeonly */
  13713. Color color;
  13714. /* readonly */
  13715. bool colorGradient;
  13716. Array<Color> colors;
  13717. /* readonly */
  13718. IntRect combinedScreenRect;
  13719. XMLFile defaultStyle;
  13720. /* readonly */
  13721. float derivedOpacity;
  13722. /* readonly */
  13723. uint dragButtonCombo;
  13724. /* readonly */
  13725. int dragButtonCount;
  13726. uint dragDropMode;
  13727. bool editable;
  13728. bool elementEventSender;
  13729. bool enableAnchor;
  13730. bool enabled;
  13731. /* readonly */
  13732. bool enabledSelf;
  13733. /* readonly */
  13734. bool fixedHeight;
  13735. /* readonly */
  13736. bool fixedSize;
  13737. /* readonly */
  13738. bool fixedWidth;
  13739. bool focus;
  13740. FocusMode focusMode;
  13741. int height;
  13742. HorizontalAlignment horizontalAlignment;
  13743. /* readonly */
  13744. bool hovering;
  13745. int indent;
  13746. int indentSpacing;
  13747. /* readonly */
  13748. int indentWidth;
  13749. bool internal;
  13750. IntRect layoutBorder;
  13751. Vector2 layoutFlexScale;
  13752. LayoutMode layoutMode;
  13753. int layoutSpacing;
  13754. Vector2 maxAnchor;
  13755. int maxHeight;
  13756. IntVector2 maxOffset;
  13757. IntVector2 maxSize;
  13758. int maxWidth;
  13759. Vector2 minAnchor;
  13760. int minHeight;
  13761. IntVector2 minOffset;
  13762. IntVector2 minSize;
  13763. int minWidth;
  13764. String name;
  13765. /* readonly */
  13766. uint numAllChildren;
  13767. /* readonly */
  13768. uint numAttributes;
  13769. /* readonly */
  13770. uint numChildren;
  13771. ObjectAnimation objectAnimation;
  13772. float opacity;
  13773. UIElement parent;
  13774. Vector2 pivot;
  13775. IntVector2 position;
  13776. int priority;
  13777. /* readonly */
  13778. int refs;
  13779. /* readonly */
  13780. UIElement root;
  13781. /* readonly */
  13782. IntVector2 screenPosition;
  13783. bool selected;
  13784. IntVector2 size;
  13785. bool sortChildren;
  13786. String style;
  13787. /* readonly */
  13788. Array<String> tags;
  13789. bool temporary;
  13790. TraversalMode traversalMode;
  13791. /* readonly */
  13792. StringHash type;
  13793. /* readonly */
  13794. String typeName;
  13795. bool useDerivedOpacity;
  13796. /* readonly */
  13797. VariantMap vars;
  13798. VerticalAlignment verticalAlignment;
  13799. bool visible;
  13800. /* readonly */
  13801. bool visibleEffective;
  13802. /* readonly */
  13803. int weakRefs;
  13804. int width;
  13805. };
  13806. class ValueAnimation
  13807. {
  13808. public:
  13809. ValueAnimation();
  13810. ValueAnimation(const String&in);
  13811. // Methods:
  13812. bool HasSubscribedToEvent(Object, const String&);
  13813. bool HasSubscribedToEvent(const String&);
  13814. bool Load(File);
  13815. bool Load(VectorBuffer&);
  13816. bool Load(const String&);
  13817. bool Save(File) const;
  13818. bool Save(VectorBuffer&) const;
  13819. bool Save(const String&) const;
  13820. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13821. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  13822. void SetKeyFrame(float, const Variant&);
  13823. // Properties:
  13824. /* readonly */
  13825. String category;
  13826. InterpMethod interpolationMethod;
  13827. /* readonly */
  13828. uint memoryUse;
  13829. String name;
  13830. /* readonly */
  13831. int refs;
  13832. float splineTension;
  13833. /* readonly */
  13834. StringHash type;
  13835. /* readonly */
  13836. String typeName;
  13837. /* readonly */
  13838. uint useTimer;
  13839. VariantType valueType;
  13840. /* readonly */
  13841. int weakRefs;
  13842. };
  13843. class Variant
  13844. {
  13845. public:
  13846. ~Variant();
  13847. Variant();
  13848. Variant(const Variant&in);
  13849. Variant(int);
  13850. Variant(uint);
  13851. Variant(int64);
  13852. Variant(uint64);
  13853. Variant(const StringHash&in);
  13854. Variant(bool);
  13855. Variant(float);
  13856. Variant(double);
  13857. Variant(const Vector2&in);
  13858. Variant(const Vector3&in);
  13859. Variant(const Vector4&in);
  13860. Variant(const Quaternion&in);
  13861. Variant(const Color&in);
  13862. Variant(const String&in);
  13863. Variant(const ResourceRef&in);
  13864. Variant(const ResourceRefList&in);
  13865. Variant(const Variant[]@);
  13866. Variant(const String[]@);
  13867. Variant(const VariantMap&in);
  13868. Variant(const Rect&in);
  13869. Variant(const IntRect&in);
  13870. Variant(const IntVector2&in);
  13871. Variant(const IntVector3&in);
  13872. Variant(RefCounted@);
  13873. Variant(ScriptObject@);
  13874. Variant(const Matrix3&in);
  13875. Variant(const Matrix3x4&in);
  13876. Variant(const Matrix4&in);
  13877. Variant(const String&in, const String&in);
  13878. Variant(VariantType, const String&in);
  13879. Variant(const VectorBuffer&in);
  13880. // Methods:
  13881. void Clear();
  13882. const Color& GetColor() const;
  13883. void FromString(VariantType, const String&);
  13884. void FromString(const String&, const String&);
  13885. bool GetBool() const;
  13886. VectorBuffer GetBuffer() const;
  13887. double GetDouble() const;
  13888. float GetFloat() const;
  13889. int GetInt() const;
  13890. int GetInt64() const;
  13891. RefCounted GetPtr() const;
  13892. ScriptObject GetScriptObject() const;
  13893. StringHash GetStringHash() const;
  13894. Array<String> GetStringVector() const;
  13895. uint GetUInt() const;
  13896. uint64 GetUInt64() const;
  13897. Array<Variant> GetVariantVector() const;
  13898. const IntRect& GetIntRect() const;
  13899. const IntVector2& GetIntVector2() const;
  13900. const IntVector3& GetIntVector3() const;
  13901. const Matrix3& GetMatrix3() const;
  13902. const Matrix3x4& GetMatrix3x4() const;
  13903. const Matrix4& GetMatrix4() const;
  13904. const Quaternion& GetQuaternion() const;
  13905. const Rect& GetRect() const;
  13906. const ResourceRef& GetResourceRef() const;
  13907. const ResourceRefList& GetResourceRefList() const;
  13908. const String& GetString() const;
  13909. String ToString() const;
  13910. const VariantMap& GetVariantMap() const;
  13911. const Vector2& GetVector2() const;
  13912. const Vector3& GetVector3() const;
  13913. const Vector4& GetVector4() const;
  13914. // Properties:
  13915. /* readonly */
  13916. bool empty;
  13917. /* readonly */
  13918. VariantType type;
  13919. /* readonly */
  13920. String typeName;
  13921. /* readonly */
  13922. bool zero;
  13923. };
  13924. class VariantMap
  13925. {
  13926. public:
  13927. ~VariantMap();
  13928. VariantMap();
  13929. VariantMap(const VariantMap&in);
  13930. // Methods:
  13931. void Clear();
  13932. bool Contains(StringHash) const;
  13933. bool Contains(const String&) const;
  13934. bool Erase(StringHash);
  13935. bool Erase(const String&);
  13936. // Properties:
  13937. /* readonly */
  13938. Array<StringHash> keys;
  13939. /* readonly */
  13940. uint length;
  13941. /* readonly */
  13942. Array<Variant> values;
  13943. };
  13944. class Vector2
  13945. {
  13946. public:
  13947. Vector2();
  13948. Vector2(const Vector2&in);
  13949. Vector2(const IntVector2&in);
  13950. Vector2(float, float);
  13951. Vector2(float[]&inout);
  13952. // Methods:
  13953. Vector2 Abs() const;
  13954. float AbsDotProduct(const Vector2&) const;
  13955. float Angle(const Vector2&) const;
  13956. float DotProduct(const Vector2&) const;
  13957. bool Equals(const Vector2&) const;
  13958. bool IsNaN() const;
  13959. Vector2 Lerp(const Vector2&, float) const;
  13960. void Normalize();
  13961. Vector2 Normalized() const;
  13962. float ProjectOntoAxis(const Vector2&) const;
  13963. String ToString() const;
  13964. // Properties:
  13965. /* readonly */
  13966. Array<float> data;
  13967. /* readonly */
  13968. float length;
  13969. /* readonly */
  13970. float lengthSquared;
  13971. float x;
  13972. float y;
  13973. // Constants:
  13974. static const Vector2 DOWN;
  13975. static const Vector2 LEFT;
  13976. static const Vector2 ONE;
  13977. static const Vector2 RIGHT;
  13978. static const Vector2 UP;
  13979. static const Vector2 ZERO;
  13980. };
  13981. class Vector3
  13982. {
  13983. public:
  13984. Vector3();
  13985. Vector3(const Vector3&in);
  13986. Vector3(const Vector2&in, float);
  13987. Vector3(const Vector2&in);
  13988. Vector3(const IntVector3&in);
  13989. Vector3(float, float, float);
  13990. Vector3(float, float);
  13991. Vector3(float[]&inout);
  13992. // Methods:
  13993. Vector3 Abs() const;
  13994. float AbsDotProduct(const Vector3&) const;
  13995. float Angle(const Vector3&) const;
  13996. Vector3 CrossProduct(const Vector3&) const;
  13997. float DotProduct(const Vector3&) const;
  13998. bool Equals(const Vector3&) const;
  13999. bool IsNaN() const;
  14000. Vector3 Lerp(const Vector3&, float) const;
  14001. void Normalize();
  14002. Vector3 Normalized() const;
  14003. Vector3 Orthogonalize(const Vector3&) const;
  14004. float ProjectOntoAxis(const Vector3&) const;
  14005. String ToString() const;
  14006. // Properties:
  14007. /* readonly */
  14008. Array<float> data;
  14009. /* readonly */
  14010. float length;
  14011. /* readonly */
  14012. float lengthSquared;
  14013. float x;
  14014. float y;
  14015. float z;
  14016. // Constants:
  14017. static const Vector3 BACK;
  14018. static const Vector3 DOWN;
  14019. static const Vector3 FORWARD;
  14020. static const Vector3 LEFT;
  14021. static const Vector3 ONE;
  14022. static const Vector3 RIGHT;
  14023. static const Vector3 UP;
  14024. static const Vector3 ZERO;
  14025. };
  14026. class Vector4
  14027. {
  14028. public:
  14029. Vector4();
  14030. Vector4(const Vector4&in);
  14031. Vector4(float, float, float, float);
  14032. Vector4(const Vector3&in, float);
  14033. Vector4(float[]&inout);
  14034. // Methods:
  14035. Vector4 Abs() const;
  14036. float AbsDotProduct(const Vector4&) const;
  14037. float DotProduct(const Vector4&) const;
  14038. bool Equals(const Vector4&) const;
  14039. bool IsNaN() const;
  14040. Vector4 Lerp(const Vector4&, float) const;
  14041. float ProjectOntoAxis(const Vector3&) const;
  14042. String ToString() const;
  14043. // Properties:
  14044. /* readonly */
  14045. Array<float> data;
  14046. float w;
  14047. float x;
  14048. float y;
  14049. float z;
  14050. };
  14051. class VectorBuffer
  14052. {
  14053. public:
  14054. ~VectorBuffer();
  14055. VectorBuffer();
  14056. VectorBuffer(const VectorBuffer&in);
  14057. VectorBuffer(Deserializer@, uint);
  14058. // Methods:
  14059. void Clear();
  14060. Array<uint8> Read(uint);
  14061. bool ReadBool();
  14062. BoundingBox ReadBoundingBox();
  14063. int8 ReadByte();
  14064. Color ReadColor();
  14065. double ReadDouble();
  14066. String ReadFileID();
  14067. float ReadFloat();
  14068. int ReadInt();
  14069. int64 ReadInt64();
  14070. IntRect ReadIntRect();
  14071. IntVector2 ReadIntVector2();
  14072. String ReadLine();
  14073. Matrix3 ReadMatrix3();
  14074. Matrix3x4 ReadMatrix3x4();
  14075. Matrix4 ReadMatrix4();
  14076. uint ReadNetID();
  14077. Quaternion ReadPackedQuaternion();
  14078. Vector3 ReadPackedVector3(float);
  14079. Quaternion ReadQuaternion();
  14080. int16 ReadShort();
  14081. String ReadString();
  14082. StringHash ReadStringHash();
  14083. uint8 ReadUByte();
  14084. uint ReadUInt();
  14085. uint64 ReadUInt64();
  14086. uint16 ReadUShort();
  14087. uint ReadVLE();
  14088. Variant ReadVariant();
  14089. VariantMap ReadVariantMap();
  14090. Vector2 ReadVector2();
  14091. Vector3 ReadVector3();
  14092. Vector4 ReadVector4();
  14093. VectorBuffer ReadVectorBuffer(uint);
  14094. void Resize(uint);
  14095. uint Seek(uint);
  14096. uint SeekRelative(int);
  14097. void SetData(Deserializer, uint);
  14098. uint Tell() const;
  14099. uint Write(Array<uint8>);
  14100. bool WriteBool(bool);
  14101. bool WriteBoundingBox(const BoundingBox&);
  14102. bool WriteByte(int8);
  14103. bool WriteColor(const Color&);
  14104. bool WriteDouble(double);
  14105. bool WriteFileID(const String&);
  14106. bool WriteFloat(float);
  14107. bool WriteInt(int);
  14108. bool WriteInt64(int64);
  14109. bool WriteIntRect(const IntRect&);
  14110. bool WriteIntVector2(const IntVector2&);
  14111. bool WriteLine(const String&);
  14112. bool WriteMatrix3(const Matrix3&);
  14113. bool WriteMatrix3x4(const Matrix3x4&);
  14114. bool WriteMatrix4(const Matrix4&);
  14115. bool WriteNetID(uint);
  14116. bool WritePackedQuaternion(const Quaternion&);
  14117. bool WritePackedVector3(const Vector3&, float);
  14118. bool WriteQuaternion(const Quaternion&);
  14119. bool WriteShort(int16);
  14120. bool WriteString(const String&);
  14121. bool WriteStringHash(const StringHash&);
  14122. bool WriteUByte(uint8);
  14123. bool WriteUInt(uint);
  14124. bool WriteUInt64(uint64);
  14125. bool WriteUShort(uint16);
  14126. bool WriteVLE(uint);
  14127. bool WriteVariant(const Variant&);
  14128. bool WriteVariantMap(const VariantMap&);
  14129. bool WriteVector2(const Vector2&);
  14130. bool WriteVector3(const Vector3&);
  14131. bool WriteVector4(const Vector4&);
  14132. bool WriteVectorBuffer(const VectorBuffer&);
  14133. // Properties:
  14134. /* readonly */
  14135. uint checksum;
  14136. /* readonly */
  14137. bool eof;
  14138. /* readonly */
  14139. String name;
  14140. /* readonly */
  14141. uint position;
  14142. /* readonly */
  14143. uint size;
  14144. };
  14145. class VertexBuffer
  14146. {
  14147. public:
  14148. VertexBuffer();
  14149. // Methods:
  14150. VectorBuffer GetData() const;
  14151. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  14152. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14153. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  14154. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14155. bool HasSubscribedToEvent(Object, const String&);
  14156. bool HasSubscribedToEvent(const String&);
  14157. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14158. bool SetData(VectorBuffer&);
  14159. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  14160. void SetSize(uint, Array<VertexElement>, bool = false);
  14161. void SetSize(uint, uint, bool = false);
  14162. // Properties:
  14163. /* readonly */
  14164. String category;
  14165. /* readonly */
  14166. bool dynamic;
  14167. /* readonly */
  14168. uint elementMask;
  14169. /* readonly */
  14170. Array<VertexElement> elements;
  14171. /* readonly */
  14172. int refs;
  14173. bool shadowed;
  14174. /* readonly */
  14175. StringHash type;
  14176. /* readonly */
  14177. String typeName;
  14178. /* readonly */
  14179. uint vertexCount;
  14180. /* readonly */
  14181. uint vertexSize;
  14182. /* readonly */
  14183. int weakRefs;
  14184. };
  14185. class VertexElement
  14186. {
  14187. public:
  14188. ~VertexElement();
  14189. VertexElement();
  14190. VertexElement(const VertexElement&in);
  14191. VertexElement(VertexElementType, VertexElementSemantic, uint8 index = 0, bool perInstance = false);
  14192. // Properties:
  14193. uint8 index;
  14194. uint offset;
  14195. bool perInstance;
  14196. VertexElementSemantic semantic;
  14197. VertexElementType type;
  14198. };
  14199. class View3D
  14200. {
  14201. public:
  14202. View3D();
  14203. View3D(const String&in);
  14204. // Methods:
  14205. void AddChild(UIElement);
  14206. void AddTag(const String&);
  14207. void AddTags(const String&, int8 = ';');
  14208. void ApplyAttributes();
  14209. void BringToFront();
  14210. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14211. void DisableLayoutUpdate();
  14212. IntVector2 ElementToScreen(const IntVector2&);
  14213. void EnableLayoutUpdate();
  14214. uint FindChild(UIElement) const;
  14215. Variant GetAttribute(const String&) const;
  14216. ValueAnimation GetAttributeAnimation(const String&) const;
  14217. float GetAttributeAnimationSpeed(const String&) const;
  14218. float GetAttributeAnimationTime(const String&) const;
  14219. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14220. Variant GetAttributeDefault(const String&) const;
  14221. UIElement GetChild(const String&, bool = false) const;
  14222. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14223. Array<UIElement> GetChildren(bool = false) const;
  14224. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14225. UIElement GetElementEventSender() const;
  14226. bool GetInterceptNetworkUpdate(const String&) const;
  14227. uint GetNumChildren(bool) const;
  14228. bool HasSubscribedToEvent(Object, const String&);
  14229. bool HasSubscribedToEvent(const String&);
  14230. bool HasTag(const String&) const;
  14231. void InsertChild(uint, UIElement);
  14232. bool IsInside(IntVector2, bool);
  14233. bool IsInsideCombined(IntVector2, bool);
  14234. bool Load(File, bool = false);
  14235. bool Load(VectorBuffer&, bool = false);
  14236. UIElement LoadChildXML(XMLFile, XMLFile = null);
  14237. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  14238. bool LoadJSON(const JSONValue&, bool = false);
  14239. bool LoadXML(File);
  14240. bool LoadXML(VectorBuffer&);
  14241. bool LoadXML(XMLFile, XMLFile);
  14242. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  14243. bool LoadXML(const XMLElement&, bool = false);
  14244. void MarkNetworkUpdate() const;
  14245. void QueueUpdate();
  14246. void Remove();
  14247. void RemoveAllChildren();
  14248. void RemoveAllTags();
  14249. void RemoveAttributeAnimation(const String&);
  14250. void RemoveChild(UIElement, uint = 0);
  14251. void RemoveChild(uint);
  14252. void RemoveInstanceDefault();
  14253. void RemoveObjectAnimation();
  14254. bool RemoveTag(const String&);
  14255. void ResetDeepEnabled();
  14256. void ResetToDefault();
  14257. bool Save(File) const;
  14258. bool Save(VectorBuffer&) const;
  14259. bool SaveJSON(JSONValue&) const;
  14260. bool SaveXML(File, const String& = "\t");
  14261. bool SaveXML(VectorBuffer&, const String& = "\t");
  14262. bool SaveXML(XMLElement&) const;
  14263. IntVector2 ScreenToElement(const IntVector2&);
  14264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14265. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14266. void SetAnimationTime(float);
  14267. bool SetAttribute(const String&, const Variant&);
  14268. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14269. void SetAttributeAnimationSpeed(const String&, float);
  14270. void SetAttributeAnimationTime(const String&, float);
  14271. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14272. void SetDeepEnabled(bool);
  14273. void SetEnabledRecursive(bool);
  14274. void SetFixedHeight(int);
  14275. void SetFixedSize(int, int);
  14276. void SetFixedWidth(int);
  14277. void SetFullImageRect();
  14278. void SetHoverOffset(int, int);
  14279. void SetInterceptNetworkUpdate(const String&, bool);
  14280. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14281. void SetMaxAnchor(float, float);
  14282. void SetMaxSize(int, int);
  14283. void SetMinAnchor(float, float);
  14284. void SetMinSize(int, int);
  14285. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14286. void SetPivot(float, float);
  14287. void SetPosition(int, int);
  14288. void SetSize(int, int);
  14289. bool SetStyle(const String&, XMLFile = null);
  14290. bool SetStyle(const XMLElement&);
  14291. bool SetStyleAuto(XMLFile = null);
  14292. void SetView(Scene, Camera, bool = true);
  14293. void UpdateLayout();
  14294. const Variant& GetVar(const StringHash&);
  14295. // Properties:
  14296. bool animationEnabled;
  14297. /* readonly */
  14298. Array<Variant> attributeDefaults;
  14299. /* readonly */
  14300. Array<AttributeInfo> attributeInfos;
  14301. Array<Variant> attributes;
  14302. bool autoUpdate;
  14303. BlendMode blendMode;
  14304. IntRect border;
  14305. bool bringToBack;
  14306. bool bringToFront;
  14307. /* readonly */
  14308. Node cameraNode;
  14309. /* readonly */
  14310. String category;
  14311. /* readonly */
  14312. IntVector2 childOffset;
  14313. /* readonly */
  14314. Array<UIElement> children;
  14315. IntRect clipBorder;
  14316. bool clipChildren;
  14317. /* writeonly */
  14318. Color color;
  14319. /* readonly */
  14320. bool colorGradient;
  14321. Array<Color> colors;
  14322. /* readonly */
  14323. IntRect combinedScreenRect;
  14324. XMLFile defaultStyle;
  14325. /* readonly */
  14326. Texture2D depthTexture;
  14327. /* readonly */
  14328. float derivedOpacity;
  14329. /* readonly */
  14330. uint dragButtonCombo;
  14331. /* readonly */
  14332. int dragButtonCount;
  14333. uint dragDropMode;
  14334. bool editable;
  14335. bool elementEventSender;
  14336. bool enableAnchor;
  14337. bool enabled;
  14338. /* readonly */
  14339. bool enabledSelf;
  14340. /* readonly */
  14341. bool fixedHeight;
  14342. bool fixedHeightResizing;
  14343. /* readonly */
  14344. bool fixedSize;
  14345. /* readonly */
  14346. bool fixedWidth;
  14347. bool fixedWidthResizing;
  14348. bool focus;
  14349. FocusMode focusMode;
  14350. uint format;
  14351. int height;
  14352. HorizontalAlignment horizontalAlignment;
  14353. IntVector2 hoverOffset;
  14354. /* readonly */
  14355. bool hovering;
  14356. IntRect imageBorder;
  14357. IntRect imageRect;
  14358. int indent;
  14359. int indentSpacing;
  14360. /* readonly */
  14361. int indentWidth;
  14362. bool internal;
  14363. IntRect layoutBorder;
  14364. Vector2 layoutFlexScale;
  14365. LayoutMode layoutMode;
  14366. int layoutSpacing;
  14367. Vector2 maxAnchor;
  14368. int maxHeight;
  14369. IntVector2 maxOffset;
  14370. IntVector2 maxSize;
  14371. int maxWidth;
  14372. Vector2 minAnchor;
  14373. int minHeight;
  14374. IntVector2 minOffset;
  14375. IntVector2 minSize;
  14376. int minWidth;
  14377. bool modal;
  14378. bool modalAutoDismiss;
  14379. Color modalFrameColor;
  14380. IntVector2 modalFrameSize;
  14381. Color modalShadeColor;
  14382. bool movable;
  14383. String name;
  14384. /* readonly */
  14385. uint numAllChildren;
  14386. /* readonly */
  14387. uint numAttributes;
  14388. /* readonly */
  14389. uint numChildren;
  14390. ObjectAnimation objectAnimation;
  14391. float opacity;
  14392. UIElement parent;
  14393. Vector2 pivot;
  14394. IntVector2 position;
  14395. int priority;
  14396. /* readonly */
  14397. int refs;
  14398. /* readonly */
  14399. Texture2D renderTexture;
  14400. bool resizable;
  14401. IntRect resizeBorder;
  14402. /* readonly */
  14403. UIElement root;
  14404. /* readonly */
  14405. Scene scene;
  14406. /* readonly */
  14407. IntVector2 screenPosition;
  14408. bool selected;
  14409. IntVector2 size;
  14410. bool sortChildren;
  14411. String style;
  14412. /* readonly */
  14413. Array<String> tags;
  14414. bool temporary;
  14415. Texture texture;
  14416. bool tiled;
  14417. TraversalMode traversalMode;
  14418. /* readonly */
  14419. StringHash type;
  14420. /* readonly */
  14421. String typeName;
  14422. bool useDerivedOpacity;
  14423. /* readonly */
  14424. VariantMap vars;
  14425. VerticalAlignment verticalAlignment;
  14426. /* readonly */
  14427. Viewport viewport;
  14428. bool visible;
  14429. /* readonly */
  14430. bool visibleEffective;
  14431. /* readonly */
  14432. int weakRefs;
  14433. int width;
  14434. };
  14435. class Viewport
  14436. {
  14437. public:
  14438. Viewport();
  14439. Viewport(Scene&, Camera&, RenderPath& renderPath = null);
  14440. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& renderPath = null);
  14441. // Methods:
  14442. Ray GetScreenRay(int, int) const;
  14443. bool HasSubscribedToEvent(Object, const String&);
  14444. bool HasSubscribedToEvent(const String&);
  14445. Vector3 ScreenToWorldPoint(int, int, float) const;
  14446. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14447. void SetRenderPath(XMLFile);
  14448. IntVector2 WorldToScreenPoint(const Vector3&) const;
  14449. // Properties:
  14450. Camera camera;
  14451. /* readonly */
  14452. String category;
  14453. Camera cullCamera;
  14454. bool drawDebug;
  14455. IntRect rect;
  14456. /* readonly */
  14457. int refs;
  14458. RenderPath renderPath;
  14459. Scene scene;
  14460. /* readonly */
  14461. StringHash type;
  14462. /* readonly */
  14463. String typeName;
  14464. /* readonly */
  14465. int weakRefs;
  14466. };
  14467. class WeakHandle
  14468. {
  14469. public:
  14470. ~WeakHandle();
  14471. WeakHandle();
  14472. WeakHandle(const WeakHandle&in);
  14473. WeakHandle(RefCounted@);
  14474. // Methods:
  14475. RefCounted Get() const;
  14476. // Properties:
  14477. /* readonly */
  14478. bool expired;
  14479. /* readonly */
  14480. int refs;
  14481. /* readonly */
  14482. int weakRefs;
  14483. };
  14484. class Window
  14485. {
  14486. public:
  14487. Window();
  14488. Window(const String&in);
  14489. // Methods:
  14490. void AddChild(UIElement);
  14491. void AddTag(const String&);
  14492. void AddTags(const String&, int8 = ';');
  14493. void ApplyAttributes();
  14494. void BringToFront();
  14495. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14496. void DisableLayoutUpdate();
  14497. IntVector2 ElementToScreen(const IntVector2&);
  14498. void EnableLayoutUpdate();
  14499. uint FindChild(UIElement) const;
  14500. Variant GetAttribute(const String&) const;
  14501. ValueAnimation GetAttributeAnimation(const String&) const;
  14502. float GetAttributeAnimationSpeed(const String&) const;
  14503. float GetAttributeAnimationTime(const String&) const;
  14504. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14505. Variant GetAttributeDefault(const String&) const;
  14506. UIElement GetChild(const String&, bool = false) const;
  14507. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14508. Array<UIElement> GetChildren(bool = false) const;
  14509. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14510. UIElement GetElementEventSender() const;
  14511. bool GetInterceptNetworkUpdate(const String&) const;
  14512. uint GetNumChildren(bool) const;
  14513. bool HasSubscribedToEvent(Object, const String&);
  14514. bool HasSubscribedToEvent(const String&);
  14515. bool HasTag(const String&) const;
  14516. void InsertChild(uint, UIElement);
  14517. bool IsInside(IntVector2, bool);
  14518. bool IsInsideCombined(IntVector2, bool);
  14519. bool Load(File, bool = false);
  14520. bool Load(VectorBuffer&, bool = false);
  14521. UIElement LoadChildXML(XMLFile, XMLFile = null);
  14522. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  14523. bool LoadJSON(const JSONValue&, bool = false);
  14524. bool LoadXML(File);
  14525. bool LoadXML(VectorBuffer&);
  14526. bool LoadXML(XMLFile, XMLFile);
  14527. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  14528. bool LoadXML(const XMLElement&, bool = false);
  14529. void MarkNetworkUpdate() const;
  14530. void Remove();
  14531. void RemoveAllChildren();
  14532. void RemoveAllTags();
  14533. void RemoveAttributeAnimation(const String&);
  14534. void RemoveChild(UIElement, uint = 0);
  14535. void RemoveChild(uint);
  14536. void RemoveInstanceDefault();
  14537. void RemoveObjectAnimation();
  14538. bool RemoveTag(const String&);
  14539. void ResetDeepEnabled();
  14540. void ResetToDefault();
  14541. bool Save(File) const;
  14542. bool Save(VectorBuffer&) const;
  14543. bool SaveJSON(JSONValue&) const;
  14544. bool SaveXML(File, const String& = "\t");
  14545. bool SaveXML(VectorBuffer&, const String& = "\t");
  14546. bool SaveXML(XMLElement&) const;
  14547. IntVector2 ScreenToElement(const IntVector2&);
  14548. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14549. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14550. void SetAnimationTime(float);
  14551. bool SetAttribute(const String&, const Variant&);
  14552. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14553. void SetAttributeAnimationSpeed(const String&, float);
  14554. void SetAttributeAnimationTime(const String&, float);
  14555. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14556. void SetDeepEnabled(bool);
  14557. void SetEnabledRecursive(bool);
  14558. void SetFixedHeight(int);
  14559. void SetFixedSize(int, int);
  14560. void SetFixedWidth(int);
  14561. void SetFullImageRect();
  14562. void SetHoverOffset(int, int);
  14563. void SetInterceptNetworkUpdate(const String&, bool);
  14564. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14565. void SetMaxAnchor(float, float);
  14566. void SetMaxSize(int, int);
  14567. void SetMinAnchor(float, float);
  14568. void SetMinSize(int, int);
  14569. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14570. void SetPivot(float, float);
  14571. void SetPosition(int, int);
  14572. void SetSize(int, int);
  14573. bool SetStyle(const String&, XMLFile = null);
  14574. bool SetStyle(const XMLElement&);
  14575. bool SetStyleAuto(XMLFile = null);
  14576. void UpdateLayout();
  14577. const Variant& GetVar(const StringHash&);
  14578. // Properties:
  14579. bool animationEnabled;
  14580. /* readonly */
  14581. Array<Variant> attributeDefaults;
  14582. /* readonly */
  14583. Array<AttributeInfo> attributeInfos;
  14584. Array<Variant> attributes;
  14585. BlendMode blendMode;
  14586. IntRect border;
  14587. bool bringToBack;
  14588. bool bringToFront;
  14589. /* readonly */
  14590. String category;
  14591. /* readonly */
  14592. IntVector2 childOffset;
  14593. /* readonly */
  14594. Array<UIElement> children;
  14595. IntRect clipBorder;
  14596. bool clipChildren;
  14597. /* writeonly */
  14598. Color color;
  14599. /* readonly */
  14600. bool colorGradient;
  14601. Array<Color> colors;
  14602. /* readonly */
  14603. IntRect combinedScreenRect;
  14604. XMLFile defaultStyle;
  14605. /* readonly */
  14606. float derivedOpacity;
  14607. /* readonly */
  14608. uint dragButtonCombo;
  14609. /* readonly */
  14610. int dragButtonCount;
  14611. uint dragDropMode;
  14612. bool editable;
  14613. bool elementEventSender;
  14614. bool enableAnchor;
  14615. bool enabled;
  14616. /* readonly */
  14617. bool enabledSelf;
  14618. /* readonly */
  14619. bool fixedHeight;
  14620. bool fixedHeightResizing;
  14621. /* readonly */
  14622. bool fixedSize;
  14623. /* readonly */
  14624. bool fixedWidth;
  14625. bool fixedWidthResizing;
  14626. bool focus;
  14627. FocusMode focusMode;
  14628. int height;
  14629. HorizontalAlignment horizontalAlignment;
  14630. IntVector2 hoverOffset;
  14631. /* readonly */
  14632. bool hovering;
  14633. IntRect imageBorder;
  14634. IntRect imageRect;
  14635. int indent;
  14636. int indentSpacing;
  14637. /* readonly */
  14638. int indentWidth;
  14639. bool internal;
  14640. IntRect layoutBorder;
  14641. Vector2 layoutFlexScale;
  14642. LayoutMode layoutMode;
  14643. int layoutSpacing;
  14644. Vector2 maxAnchor;
  14645. int maxHeight;
  14646. IntVector2 maxOffset;
  14647. IntVector2 maxSize;
  14648. int maxWidth;
  14649. Vector2 minAnchor;
  14650. int minHeight;
  14651. IntVector2 minOffset;
  14652. IntVector2 minSize;
  14653. int minWidth;
  14654. bool modal;
  14655. bool modalAutoDismiss;
  14656. Color modalFrameColor;
  14657. IntVector2 modalFrameSize;
  14658. Color modalShadeColor;
  14659. bool movable;
  14660. String name;
  14661. /* readonly */
  14662. uint numAllChildren;
  14663. /* readonly */
  14664. uint numAttributes;
  14665. /* readonly */
  14666. uint numChildren;
  14667. ObjectAnimation objectAnimation;
  14668. float opacity;
  14669. UIElement parent;
  14670. Vector2 pivot;
  14671. IntVector2 position;
  14672. int priority;
  14673. /* readonly */
  14674. int refs;
  14675. bool resizable;
  14676. IntRect resizeBorder;
  14677. /* readonly */
  14678. UIElement root;
  14679. /* readonly */
  14680. IntVector2 screenPosition;
  14681. bool selected;
  14682. IntVector2 size;
  14683. bool sortChildren;
  14684. String style;
  14685. /* readonly */
  14686. Array<String> tags;
  14687. bool temporary;
  14688. Texture texture;
  14689. bool tiled;
  14690. TraversalMode traversalMode;
  14691. /* readonly */
  14692. StringHash type;
  14693. /* readonly */
  14694. String typeName;
  14695. bool useDerivedOpacity;
  14696. /* readonly */
  14697. VariantMap vars;
  14698. VerticalAlignment verticalAlignment;
  14699. bool visible;
  14700. /* readonly */
  14701. bool visibleEffective;
  14702. /* readonly */
  14703. int weakRefs;
  14704. int width;
  14705. };
  14706. class XMLElement
  14707. {
  14708. public:
  14709. ~XMLElement();
  14710. XMLElement();
  14711. XMLElement(const XMLElement&in);
  14712. // Methods:
  14713. XMLElement CreateChild(const String&);
  14714. String GetAttribute(const String& = String ( )) const;
  14715. String GetAttributeLower(const String&) const;
  14716. Array<String> GetAttributeNames() const;
  14717. String GetAttributeUpper(const String&) const;
  14718. bool GetBool(const String&) const;
  14719. BoundingBox GetBoundingBox() const;
  14720. XMLElement GetChild(const String& = String ( )) const;
  14721. Color GetColor(const String&) const;
  14722. double GetDouble(const String&) const;
  14723. float GetFloat(const String&) const;
  14724. int GetInt(const String&) const;
  14725. int64 GetInt64(const String&) const;
  14726. IntRect GetIntRect(const String&) const;
  14727. IntVector2 GetIntVector2(const String&) const;
  14728. IntVector3 GetIntVector3(const String&) const;
  14729. Matrix3 GetMatrix3(const String&) const;
  14730. Matrix3x4 GetMatrix3x4(const String&) const;
  14731. Matrix4 GetMatrix4(const String&) const;
  14732. XMLElement GetNext(const String& = String ( )) const;
  14733. XMLElement GetOrCreateChild(const String&);
  14734. Quaternion GetQuaternion(const String&) const;
  14735. ResourceRef GetResourceRef() const;
  14736. ResourceRefList GetResourceRefList() const;
  14737. uint GetUInt(const String&) const;
  14738. uint64 GetUInt64(const String&) const;
  14739. String GetValue() const;
  14740. Variant GetVariant() const;
  14741. VariantMap GetVariantMap() const;
  14742. Array<Variant> GetVariantVector() const;
  14743. Vector2 GetVector2(const String&) const;
  14744. Vector3 GetVector3(const String&) const;
  14745. Vector4 GetVector4(const String&) const;
  14746. Variant GetVectorVariant(const String&) const;
  14747. bool HasAttribute(const String&) const;
  14748. bool HasChild(const String&) const;
  14749. bool RemoveAttribute(const String& = String ( ));
  14750. bool RemoveChild(const String&);
  14751. bool RemoveChild(const XMLElement&);
  14752. bool RemoveChildren(const String& = String ( ));
  14753. XPathResultSet Select(const String&);
  14754. XPathResultSet SelectPrepared(const XPathQuery&);
  14755. XMLElement SelectSingle(const String&);
  14756. XMLElement SelectSinglePrepared(const XPathQuery&);
  14757. bool SetAttribute(const String&);
  14758. bool SetAttribute(const String&, const String&);
  14759. bool SetBool(const String&, bool);
  14760. bool SetBoundingBox(const BoundingBox&);
  14761. bool SetColor(const String&, const Color&);
  14762. bool SetDouble(const String&, double);
  14763. bool SetFloat(const String&, float);
  14764. bool SetInt(const String&, int);
  14765. bool SetInt64(const String&, int64);
  14766. bool SetIntRect(const String&, const IntRect&);
  14767. bool SetIntVector2(const String&, const IntVector2&);
  14768. bool SetIntVector3(const String&, const IntVector3&);
  14769. bool SetMatrix3(const String&, const Matrix3&);
  14770. bool SetMatrix3x4(const String&, const Matrix3x4&);
  14771. bool SetMatrix4(const String&, const Matrix4&);
  14772. bool SetQuaternion(const String&, const Quaternion&);
  14773. bool SetResourceRef(const String&, const ResourceRef&);
  14774. bool SetResourceRefList(const String&, const ResourceRefList&);
  14775. bool SetUInt(const String&, uint);
  14776. bool SetUInt64(const String&, uint64);
  14777. bool SetValue(const String&);
  14778. bool SetVariant(const Variant&);
  14779. bool SetVariantMap(const VariantMap&);
  14780. bool SetVariantVector(Array<Variant>);
  14781. bool SetVector2(const String&, const Vector2&);
  14782. bool SetVector3(const String&, const Vector3&);
  14783. bool SetVector4(const String&, const Vector4&);
  14784. bool SetVectorVariant(const String&, const Variant&);
  14785. // Properties:
  14786. /* readonly */
  14787. XMLFile file;
  14788. /* readonly */
  14789. bool isNull;
  14790. /* readonly */
  14791. String name;
  14792. /* readonly */
  14793. XMLElement nextResult;
  14794. /* readonly */
  14795. bool notNull;
  14796. /* readonly */
  14797. uint numAttributes;
  14798. /* readonly */
  14799. XMLElement parent;
  14800. String value;
  14801. };
  14802. class XMLFile
  14803. {
  14804. public:
  14805. XMLFile();
  14806. XMLFile(const String&in);
  14807. // Methods:
  14808. XMLElement CreateRoot(const String&);
  14809. bool FromString(const String&);
  14810. XMLElement GetOrCreateRoot(const String&);
  14811. XMLElement GetRoot(const String& = String ( ));
  14812. bool HasSubscribedToEvent(Object, const String&);
  14813. bool HasSubscribedToEvent(const String&);
  14814. bool Load(File);
  14815. bool Load(VectorBuffer&);
  14816. bool Load(const String&);
  14817. void Patch(XMLElement);
  14818. void Patch(XMLFile);
  14819. bool Save(File) const;
  14820. bool Save(File, const String&) const;
  14821. bool Save(VectorBuffer&) const;
  14822. bool Save(const String&) const;
  14823. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14824. String ToString(const String& = String ( "\t" )) const;
  14825. // Properties:
  14826. /* readonly */
  14827. String category;
  14828. /* readonly */
  14829. uint memoryUse;
  14830. String name;
  14831. /* readonly */
  14832. int refs;
  14833. /* readonly */
  14834. XMLElement root;
  14835. /* readonly */
  14836. StringHash type;
  14837. /* readonly */
  14838. String typeName;
  14839. /* readonly */
  14840. uint useTimer;
  14841. /* readonly */
  14842. int weakRefs;
  14843. };
  14844. class XPathQuery
  14845. {
  14846. public:
  14847. ~XPathQuery();
  14848. XPathQuery();
  14849. XPathQuery(const String&in, const String&inout arg1 = String ( ));
  14850. // Methods:
  14851. void Bind();
  14852. void Clear();
  14853. XPathResultSet Evaluate(XMLElement);
  14854. bool EvaluateToBool(XMLElement);
  14855. float EvaluateToFloat(XMLElement);
  14856. String EvaluateToString(XMLElement);
  14857. bool SetQuery(const String&, const String& = String ( ), bool = true);
  14858. bool SetVariable(const String&, bool);
  14859. bool SetVariable(const String&, const String&);
  14860. bool SetVariable(const String&, const XPathResultSet&);
  14861. bool SetVariable(const String&, float);
  14862. // Properties:
  14863. String query;
  14864. };
  14865. class XPathResultSet
  14866. {
  14867. public:
  14868. ~XPathResultSet();
  14869. XPathResultSet();
  14870. XPathResultSet(const XPathResultSet&in);
  14871. // Properties:
  14872. /* readonly */
  14873. bool empty;
  14874. /* readonly */
  14875. XMLElement firstResult;
  14876. /* readonly */
  14877. uint size;
  14878. };
  14879. class Zone
  14880. {
  14881. public:
  14882. // Methods:
  14883. void ApplyAttributes();
  14884. void DrawDebugGeometry(DebugRenderer, bool);
  14885. Variant GetAttribute(const String&) const;
  14886. ValueAnimation GetAttributeAnimation(const String&) const;
  14887. float GetAttributeAnimationSpeed(const String&) const;
  14888. float GetAttributeAnimationTime(const String&) const;
  14889. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14890. Variant GetAttributeDefault(const String&) const;
  14891. bool GetInterceptNetworkUpdate(const String&) const;
  14892. bool HasSubscribedToEvent(Object, const String&);
  14893. bool HasSubscribedToEvent(const String&);
  14894. bool IsInView(Camera) const;
  14895. bool Load(File, bool = false);
  14896. bool Load(VectorBuffer&, bool = false);
  14897. bool LoadJSON(const JSONValue&, bool = false);
  14898. bool LoadXML(const XMLElement&, bool = false);
  14899. void MarkNetworkUpdate() const;
  14900. void Remove();
  14901. void RemoveAttributeAnimation(const String&);
  14902. void RemoveInstanceDefault();
  14903. void RemoveObjectAnimation();
  14904. void ResetToDefault();
  14905. bool Save(File) const;
  14906. bool Save(VectorBuffer&) const;
  14907. bool SaveJSON(JSONValue&) const;
  14908. bool SaveXML(XMLElement&) const;
  14909. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14910. void SetAnimationTime(float);
  14911. bool SetAttribute(const String&, const Variant&);
  14912. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14913. void SetAttributeAnimationSpeed(const String&, float);
  14914. void SetAttributeAnimationTime(const String&, float);
  14915. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14916. void SetInterceptNetworkUpdate(const String&, bool);
  14917. // Properties:
  14918. Color ambientColor;
  14919. /* readonly */
  14920. Color ambientEndColor;
  14921. bool ambientGradient;
  14922. /* readonly */
  14923. Color ambientStartColor;
  14924. bool animationEnabled;
  14925. /* readonly */
  14926. Array<Variant> attributeDefaults;
  14927. /* readonly */
  14928. Array<AttributeInfo> attributeInfos;
  14929. Array<Variant> attributes;
  14930. BoundingBox boundingBox;
  14931. bool castShadows;
  14932. /* readonly */
  14933. String category;
  14934. float drawDistance;
  14935. bool enabled;
  14936. /* readonly */
  14937. bool enabledEffective;
  14938. Color fogColor;
  14939. float fogEnd;
  14940. float fogHeight;
  14941. float fogHeightScale;
  14942. float fogStart;
  14943. bool heightFog;
  14944. /* readonly */
  14945. uint id;
  14946. /* readonly */
  14947. bool inView;
  14948. /* readonly */
  14949. Matrix3x4 inverseWorldTransform;
  14950. uint lightMask;
  14951. float lodBias;
  14952. uint maxLights;
  14953. /* readonly */
  14954. Node node;
  14955. /* readonly */
  14956. uint numAttributes;
  14957. ObjectAnimation objectAnimation;
  14958. bool occludee;
  14959. bool occluder;
  14960. bool override;
  14961. int priority;
  14962. /* readonly */
  14963. int refs;
  14964. float shadowDistance;
  14965. uint shadowMask;
  14966. bool temporary;
  14967. /* readonly */
  14968. StringHash type;
  14969. /* readonly */
  14970. String typeName;
  14971. uint viewMask;
  14972. /* readonly */
  14973. int weakRefs;
  14974. /* readonly */
  14975. BoundingBox worldBoundingBox;
  14976. uint zoneMask;
  14977. Texture zoneTexture;
  14978. };
  14979. // Enumerations
  14980. enum AnimationBlendMode
  14981. {
  14982. ABM_LERP,
  14983. ABM_ADDITIVE,
  14984. };
  14985. enum AutoRemoveMode
  14986. {
  14987. REMOVE_DISABLED,
  14988. REMOVE_COMPONENT,
  14989. REMOVE_NODE,
  14990. };
  14991. enum BlendMode
  14992. {
  14993. BLEND_REPLACE,
  14994. BLEND_ADD,
  14995. BLEND_MULTIPLY,
  14996. BLEND_ALPHA,
  14997. BLEND_ADDALPHA,
  14998. BLEND_PREMULALPHA,
  14999. BLEND_INVDESTALPHA,
  15000. BLEND_SUBTRACT,
  15001. BLEND_SUBTRACTALPHA,
  15002. };
  15003. enum BodyType2D
  15004. {
  15005. BT_STATIC,
  15006. BT_KINEMATIC,
  15007. BT_DYNAMIC,
  15008. };
  15009. enum CollisionEventMode
  15010. {
  15011. COLLISION_NEVER,
  15012. COLLISION_ACTIVE,
  15013. COLLISION_ALWAYS,
  15014. };
  15015. enum CompareMode
  15016. {
  15017. CMP_ALWAYS,
  15018. CMP_EQUAL,
  15019. CMP_NOTEQUAL,
  15020. CMP_LESS,
  15021. CMP_LESSEQUAL,
  15022. CMP_GREATER,
  15023. CMP_GREATEREQUAL,
  15024. };
  15025. enum CompressedFormat
  15026. {
  15027. CF_NONE,
  15028. CF_RGBA,
  15029. CF_DXT1,
  15030. CF_DXT3,
  15031. CF_DXT5,
  15032. CF_ETC1,
  15033. CF_PVRTC_RGB_2BPP,
  15034. CF_PVRTC_RGBA_2BPP,
  15035. CF_PVRTC_RGB_4BPP,
  15036. CF_PVRTC_RGBA_4BPP,
  15037. };
  15038. enum ConstraintType
  15039. {
  15040. CONSTRAINT_POINT,
  15041. CONSTRAINT_HINGE,
  15042. CONSTRAINT_SLIDER,
  15043. CONSTRAINT_CONETWIST,
  15044. };
  15045. enum Corner
  15046. {
  15047. C_TOPLEFT,
  15048. C_TOPRIGHT,
  15049. C_BOTTOMLEFT,
  15050. C_BOTTOMRIGHT,
  15051. };
  15052. enum CreateMode
  15053. {
  15054. REPLICATED,
  15055. LOCAL,
  15056. };
  15057. enum CrowdAgentRequestedTarget
  15058. {
  15059. CA_REQUESTEDTARGET_NONE,
  15060. CA_REQUESTEDTARGET_POSITION,
  15061. CA_REQUESTEDTARGET_VELOCITY,
  15062. };
  15063. enum CrowdAgentState
  15064. {
  15065. CA_STATE_INVALID,
  15066. CA_STATE_WALKING,
  15067. CA_STATE_OFFMESH,
  15068. };
  15069. enum CrowdAgentTargetState
  15070. {
  15071. CA_TARGET_NONE,
  15072. CA_TARGET_FAILED,
  15073. CA_TARGET_VALID,
  15074. CA_TARGET_REQUESTING,
  15075. CA_TARGET_WAITINGFORQUEUE,
  15076. CA_TARGET_WAITINGFORPATH,
  15077. CA_TARGET_VELOCITY,
  15078. };
  15079. enum CubeMapFace
  15080. {
  15081. FACE_POSITIVE_X,
  15082. FACE_NEGATIVE_X,
  15083. FACE_POSITIVE_Y,
  15084. FACE_NEGATIVE_Y,
  15085. FACE_POSITIVE_Z,
  15086. FACE_NEGATIVE_Z,
  15087. };
  15088. enum CullMode
  15089. {
  15090. CULL_NONE,
  15091. CULL_CCW,
  15092. CULL_CW,
  15093. };
  15094. enum CursorShape
  15095. {
  15096. CS_NORMAL,
  15097. CS_IBEAM,
  15098. CS_CROSS,
  15099. CS_RESIZEVERTICAL,
  15100. CS_RESIZEDIAGONAL_TOPRIGHT,
  15101. CS_RESIZEHORIZONTAL,
  15102. CS_RESIZEDIAGONAL_TOPLEFT,
  15103. CS_RESIZE_ALL,
  15104. CS_ACCEPTDROP,
  15105. CS_REJECTDROP,
  15106. CS_BUSY,
  15107. CS_BUSY_ARROW,
  15108. };
  15109. enum DBAPI
  15110. {
  15111. DBAPI_SQLITE,
  15112. DBAPI_ODBC,
  15113. };
  15114. enum DumpMode
  15115. {
  15116. DOXYGEN,
  15117. C_HEADER,
  15118. };
  15119. enum EmitterType
  15120. {
  15121. EMITTER_SPHERE,
  15122. EMITTER_BOX,
  15123. };
  15124. enum EmitterType2D
  15125. {
  15126. EMITTER_TYPE_GRAVITY,
  15127. EMITTER_TYPE_RADIAL,
  15128. };
  15129. enum FaceCameraMode
  15130. {
  15131. FC_NONE,
  15132. FC_ROTATE_XYZ,
  15133. FC_ROTATE_Y,
  15134. FC_LOOKAT_XYZ,
  15135. FC_LOOKAT_Y,
  15136. FC_LOOKAT_MIXED,
  15137. FC_DIRECTION,
  15138. };
  15139. enum FileMode
  15140. {
  15141. FILE_READ,
  15142. FILE_WRITE,
  15143. FILE_READWRITE,
  15144. };
  15145. enum FillMode
  15146. {
  15147. FILL_SOLID,
  15148. FILL_WIREFRAME,
  15149. FILL_POINT,
  15150. };
  15151. enum FocusMode
  15152. {
  15153. FM_NOTFOCUSABLE,
  15154. FM_RESETFOCUS,
  15155. FM_FOCUSABLE,
  15156. FM_FOCUSABLE_DEFOCUSABLE,
  15157. };
  15158. enum FontHintLevel
  15159. {
  15160. FONT_HINT_LEVEL_NONE,
  15161. FONT_HINT_LEVEL_LIGHT,
  15162. FONT_HINT_LEVEL_NORMAL,
  15163. };
  15164. enum FontType
  15165. {
  15166. FONT_NONE,
  15167. FONT_FREETYPE,
  15168. FONT_BITMAP,
  15169. };
  15170. enum HighlightMode
  15171. {
  15172. HM_NEVER,
  15173. HM_FOCUS,
  15174. HM_ALWAYS,
  15175. };
  15176. enum HorizontalAlignment
  15177. {
  15178. HA_LEFT,
  15179. HA_CENTER,
  15180. HA_RIGHT,
  15181. HA_CUSTOM,
  15182. };
  15183. enum HttpRequestState
  15184. {
  15185. HTTP_INITIALIZING,
  15186. HTTP_ERROR,
  15187. HTTP_OPEN,
  15188. HTTP_CLOSED,
  15189. };
  15190. enum IKAlgorithm
  15191. {
  15192. ONE_BONE,
  15193. TWO_BONE,
  15194. FABRIK,
  15195. };
  15196. enum InterpMethod
  15197. {
  15198. IM_NONE,
  15199. IM_LINEAR,
  15200. IM_SPLINE,
  15201. };
  15202. enum InterpolationMode
  15203. {
  15204. BEZIER_CURVE,
  15205. CATMULL_ROM_CURVE,
  15206. LINEAR_CURVE,
  15207. CATMULL_ROM_FULL_CURVE,
  15208. };
  15209. enum Intersection
  15210. {
  15211. OUTSIDE,
  15212. INTERSECTS,
  15213. INSIDE,
  15214. };
  15215. enum JSONNumberType
  15216. {
  15217. JSONNT_NAN,
  15218. JSONNT_INT,
  15219. JSONNT_UINT,
  15220. JSONNT_FLOAT_DOUBLE,
  15221. };
  15222. enum JSONValueType
  15223. {
  15224. JSON_NULL,
  15225. JSON_BOOL,
  15226. JSON_NUMBER,
  15227. JSON_STRING,
  15228. JSON_ARRAY,
  15229. JSON_OBJECT,
  15230. };
  15231. enum LayoutMode
  15232. {
  15233. LM_FREE,
  15234. LM_HORIZONTAL,
  15235. LM_VERTICAL,
  15236. };
  15237. enum LightType
  15238. {
  15239. LIGHT_DIRECTIONAL,
  15240. LIGHT_SPOT,
  15241. LIGHT_POINT,
  15242. };
  15243. enum LoadMode
  15244. {
  15245. LOAD_RESOURCES_ONLY,
  15246. LOAD_SCENE,
  15247. LOAD_SCENE_AND_RESOURCES,
  15248. };
  15249. enum LoopMode2D
  15250. {
  15251. LM_DEFAULT,
  15252. LM_FORCE_LOOPED,
  15253. LM_FORCE_CLAMPED,
  15254. };
  15255. enum MouseMode
  15256. {
  15257. MM_ABSOLUTE,
  15258. MM_RELATIVE,
  15259. MM_WRAP,
  15260. MM_FREE,
  15261. };
  15262. enum NavigationPushiness
  15263. {
  15264. NAVIGATIONPUSHINESS_LOW,
  15265. NAVIGATIONPUSHINESS_MEDIUM,
  15266. NAVIGATIONPUSHINESS_HIGH,
  15267. NAVIGATIONPUSHINESS_NONE,
  15268. };
  15269. enum NavigationQuality
  15270. {
  15271. NAVIGATIONQUALITY_LOW,
  15272. NAVIGATIONQUALITY_MEDIUM,
  15273. NAVIGATIONQUALITY_HIGH,
  15274. };
  15275. enum NavmeshPartitionType
  15276. {
  15277. NAVMESH_PARTITION_WATERSHED,
  15278. NAVMESH_PARTITION_MONOTONE,
  15279. };
  15280. enum Orientation
  15281. {
  15282. O_HORIZONTAL,
  15283. O_VERTICAL,
  15284. };
  15285. enum Orientation2D
  15286. {
  15287. O_ORTHOGONAL,
  15288. O_ISOMETRIC,
  15289. O_STAGGERED,
  15290. O_HEXAGONAL,
  15291. };
  15292. enum PassLightingMode
  15293. {
  15294. LIGHTING_UNLIT,
  15295. LIGHTING_PERVERTEX,
  15296. LIGHTING_PERPIXEL,
  15297. };
  15298. enum PrimitiveType
  15299. {
  15300. TRIANGLE_LIST,
  15301. LINE_LIST,
  15302. POINT_LIST,
  15303. TRIANGLE_STRIP,
  15304. LINE_STRIP,
  15305. TRIANGLE_FAN,
  15306. };
  15307. enum RayQueryLevel
  15308. {
  15309. RAY_AABB,
  15310. RAY_OBB,
  15311. RAY_TRIANGLE,
  15312. RAY_TRIANGLE_UV,
  15313. };
  15314. enum RenderCommandSortMode
  15315. {
  15316. SORT_FRONTTOBACK,
  15317. SORT_BACKTOFRONT,
  15318. };
  15319. enum RenderCommandType
  15320. {
  15321. CMD_NONE,
  15322. CMD_CLEAR,
  15323. CMD_SCENEPASS,
  15324. CMD_QUAD,
  15325. CMD_FORWARDLIGHTS,
  15326. CMD_LIGHTVOLUMES,
  15327. CMD_RENDERUI,
  15328. CMD_SENDEVENT,
  15329. };
  15330. enum RenderSurfaceUpdateMode
  15331. {
  15332. SURFACE_MANUALUPDATE,
  15333. SURFACE_UPDATEVISIBLE,
  15334. SURFACE_UPDATEALWAYS,
  15335. };
  15336. enum RenderTargetSizeMode
  15337. {
  15338. SIZE_ABSOLUTE,
  15339. SIZE_VIEWPORTDIVISOR,
  15340. SIZE_VIEWPORTMULTIPLIER,
  15341. };
  15342. enum ShadowQuality
  15343. {
  15344. SHADOWQUALITY_SIMPLE_16BIT,
  15345. SHADOWQUALITY_SIMPLE_24BIT,
  15346. SHADOWQUALITY_PCF_16BIT,
  15347. SHADOWQUALITY_PCF_24BIT,
  15348. SHADOWQUALITY_VSM,
  15349. SHADOWQUALITY_BLUR_VSM,
  15350. };
  15351. enum ShapeType
  15352. {
  15353. SHAPE_BOX,
  15354. SHAPE_SPHERE,
  15355. SHAPE_STATICPLANE,
  15356. SHAPE_CYLINDER,
  15357. SHAPE_CAPSULE,
  15358. SHAPE_CONE,
  15359. SHAPE_TRIANGLEMESH,
  15360. SHAPE_CONVEXHULL,
  15361. SHAPE_TERRAIN,
  15362. };
  15363. enum TextEffect
  15364. {
  15365. TE_NONE,
  15366. TE_SHADOW,
  15367. TE_STROKE,
  15368. };
  15369. enum TextureAddressMode
  15370. {
  15371. ADDRESS_WRAP,
  15372. ADDRESS_MIRROR,
  15373. ADDRESS_CLAMP,
  15374. ADDRESS_BORDER,
  15375. };
  15376. enum TextureCoordinate
  15377. {
  15378. COORD_U,
  15379. COORD_V,
  15380. COORD_W,
  15381. };
  15382. enum TextureFilterMode
  15383. {
  15384. FILTER_NEAREST,
  15385. FILTER_BILINEAR,
  15386. FILTER_TRILINEAR,
  15387. FILTER_ANISOTROPIC,
  15388. FILTER_NEAREST_ANISOTROPIC,
  15389. FILTER_DEFAULT,
  15390. };
  15391. enum TextureUnit
  15392. {
  15393. TU_DIFFUSE,
  15394. TU_ALBEDOBUFFER,
  15395. TU_NORMAL,
  15396. TU_NORMALBUFFER,
  15397. TU_SPECULAR,
  15398. TU_EMISSIVE,
  15399. TU_ENVIRONMENT,
  15400. TU_LIGHTRAMP,
  15401. TU_LIGHTSHAPE,
  15402. TU_SHADOWMAP,
  15403. TU_CUSTOM1,
  15404. TU_CUSTOM2,
  15405. TU_VOLUMEMAP,
  15406. TU_FACESELECT,
  15407. TU_INDIRECTION,
  15408. TU_DEPTHBUFFER,
  15409. TU_LIGHTBUFFER,
  15410. TU_ZONE,
  15411. MAX_MATERIAL_TEXTURE_UNITS,
  15412. MAX_TEXTURE_UNITS,
  15413. };
  15414. enum TextureUsage
  15415. {
  15416. TEXTURE_STATIC,
  15417. TEXTURE_DYNAMIC,
  15418. TEXTURE_RENDERTARGET,
  15419. TEXTURE_DEPTHSTENCIL,
  15420. };
  15421. enum TileMapLayerType2D
  15422. {
  15423. LT_TILE_LAYER,
  15424. LT_OBJECT_GROUP,
  15425. LT_IMAGE_LAYER,
  15426. LT_INVALID,
  15427. };
  15428. enum TileObjectType2D
  15429. {
  15430. OT_RECTANGLE,
  15431. OT_ELLIPSE,
  15432. OT_POLYGON,
  15433. OT_POLYLINE,
  15434. OT_TILE,
  15435. OT_INVALID,
  15436. };
  15437. enum TrailType
  15438. {
  15439. TT_FACE_CAMERA,
  15440. TT_BONE,
  15441. };
  15442. enum TransformSpace
  15443. {
  15444. TS_LOCAL,
  15445. TS_PARENT,
  15446. TS_WORLD,
  15447. };
  15448. enum TraversalMode
  15449. {
  15450. TM_BREADTH_FIRST,
  15451. TM_DEPTH_FIRST,
  15452. };
  15453. enum VariantType
  15454. {
  15455. VAR_NONE,
  15456. VAR_INT,
  15457. VAR_BOOL,
  15458. VAR_FLOAT,
  15459. VAR_VECTOR2,
  15460. VAR_VECTOR3,
  15461. VAR_VECTOR4,
  15462. VAR_QUATERNION,
  15463. VAR_COLOR,
  15464. VAR_STRING,
  15465. VAR_BUFFER,
  15466. VAR_VOIDPTR,
  15467. VAR_RESOURCEREF,
  15468. VAR_RESOURCEREFLIST,
  15469. VAR_VARIANTVECTOR,
  15470. VAR_VARIANTMAP,
  15471. VAR_INTRECT,
  15472. VAR_INTVECTOR2,
  15473. VAR_INTVECTOR3,
  15474. VAR_PTR,
  15475. VAR_MATRIX3,
  15476. VAR_MATRIX3X4,
  15477. VAR_MATRIX4,
  15478. VAR_DOUBLE,
  15479. VAR_STRINGVECTOR,
  15480. VAR_RECT,
  15481. };
  15482. enum VertexElementSemantic
  15483. {
  15484. SEM_POSITION,
  15485. SEM_NORMAL,
  15486. SEM_BINORMAL,
  15487. SEM_TANGENT,
  15488. SEM_TEXCOORD,
  15489. SEM_COLOR,
  15490. SEM_BLENDWEIGHTS,
  15491. SEM_BLENDINDICES,
  15492. SEM_OBJECTINDEX,
  15493. MAX_VERTEX_ELEMENT_SEMANTICS,
  15494. };
  15495. enum VertexElementType
  15496. {
  15497. TYPE_INT,
  15498. TYPE_FLOAT,
  15499. TYPE_VECTOR2,
  15500. TYPE_VECTOR3,
  15501. TYPE_VECTOR4,
  15502. TYPE_UBYTE4,
  15503. TYPE_UBYTE4_NORM,
  15504. MAX_VERTEX_ELEMENT_TYPES,
  15505. };
  15506. enum VerticalAlignment
  15507. {
  15508. VA_TOP,
  15509. VA_CENTER,
  15510. VA_BOTTOM,
  15511. VA_CUSTOM,
  15512. };
  15513. enum WrapMode
  15514. {
  15515. WM_LOOP,
  15516. WM_ONCE,
  15517. WM_CLAMP,
  15518. };
  15519. // Global functions
  15520. float Abs(float);
  15521. float Acos(float);
  15522. String AddTrailingSlash(const String&);
  15523. float Asin(float);
  15524. float Atan(float);
  15525. float Atan2(float, float);
  15526. float Ceil(float);
  15527. int CeilToInt(float);
  15528. float Clamp(float, float, float);
  15529. int Clamp(int, int, int);
  15530. void ClearDelayedExecute(const String& = String ( ));
  15531. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  15532. float Cos(float);
  15533. uint CountSetBits(uint);
  15534. Object CreateObject(const String&);
  15535. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  15536. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  15537. bool Equals(float, float);
  15538. void ErrorDialog(const String&, const String&);
  15539. float Floor(float);
  15540. int FloorToInt(float);
  15541. float Fract(float);
  15542. uint GetAlphaFormat();
  15543. Array<String> GetArguments();
  15544. String GetConsoleInput();
  15545. uint GetDepthStencilFormat();
  15546. Object GetEventSender();
  15547. String GetExtension(const String&, bool = true);
  15548. String GetFileName(const String&);
  15549. String GetFileNameAndExtension(const String&, bool = false);
  15550. String GetFileSizeString(uint64);
  15551. uint GetFloat16Format();
  15552. uint GetFloat32Format();
  15553. uint GetFormat(const String&);
  15554. Variant GetGlobalVar(const String&);
  15555. String GetHostName();
  15556. String GetInternalPath(const String&);
  15557. uint GetLinearDepthFormat();
  15558. String GetLoginName();
  15559. uint GetLuminanceAlphaFormat();
  15560. uint GetLuminanceFormat();
  15561. uint GetMaxBones();
  15562. String GetMiniDumpDir();
  15563. uint GetNumLogicalCPUs();
  15564. uint GetNumPhysicalCPUs();
  15565. String GetOSVersion();
  15566. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  15567. Array<String> GetObjectCategories();
  15568. Array<String> GetObjectsByCategory(const String&);
  15569. String GetParentPath(const String&);
  15570. String GetPath(const String&);
  15571. String GetPlatform();
  15572. uint GetRG16Format();
  15573. uint GetRGBA16Format();
  15574. uint GetRGBAFloat16Format();
  15575. uint GetRGBAFloat32Format();
  15576. uint GetRGBAFormat();
  15577. uint GetRGBFormat();
  15578. uint GetRGFloat16Format();
  15579. uint GetRGFloat32Format();
  15580. uint GetRandomSeed();
  15581. uint GetReadableDepthFormat();
  15582. String GetTextureUnitName(TextureUnit);
  15583. uint64 GetTotalMemory();
  15584. VariantType GetVariantTypeFromName(const String&);
  15585. String GetVariantTypeName(VariantType);
  15586. bool HasSubscribedToEvent(Object, const String&);
  15587. bool HasSubscribedToEvent(const String&);
  15588. float InverseLerp(float, float, float);
  15589. bool IsAbsolutePath(const String&);
  15590. bool IsAlpha(uint);
  15591. bool IsDigit(uint);
  15592. bool IsNaN(float);
  15593. bool IsPowerOfTwo(uint);
  15594. String Join(Array<String>&, const String&);
  15595. float Lerp(float, float, float);
  15596. float Ln(float);
  15597. uint LogBaseTwo(uint);
  15598. void MarkNetworkUpdate();
  15599. float Max(float, float);
  15600. int Max(int, int);
  15601. float Min(float, float);
  15602. int Min(int, int);
  15603. float Mod(float, float);
  15604. uint NextPowerOfTwo(uint);
  15605. void OpenConsoleWindow();
  15606. float Pow(float, float);
  15607. void Print(bool, bool = false);
  15608. void Print(const String&, bool = false);
  15609. void Print(const Variant&, bool = false);
  15610. void Print(float, bool = false);
  15611. void Print(int, bool = false);
  15612. void Print(int64, bool = false);
  15613. void Print(uint, bool = false);
  15614. void Print(uint64, bool = false);
  15615. void PrintCallStack(bool = false);
  15616. float Random();
  15617. float Random(float);
  15618. float Random(float, float);
  15619. int RandomInt();
  15620. int RandomInt(int);
  15621. int RandomInt(int, int);
  15622. float RandomNormal(float, float);
  15623. void RegisterEventName(const String&);
  15624. void Remove();
  15625. String RemoveTrailingSlash(const String&);
  15626. String ReplaceExtension(const String&, const String&);
  15627. float Round(float);
  15628. int RoundToInt(float);
  15629. uint SDBMHash(uint, uint8);
  15630. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15631. void SetGlobalVar(const String&, Variant&);
  15632. void SetMiniDumpDir(const String&);
  15633. void SetRandomSeed(uint);
  15634. float Sign(float);
  15635. float Sin(float);
  15636. float SmoothStep(float, float, float);
  15637. float Sqrt(float);
  15638. float StableRandom(const Vector2&);
  15639. float StableRandom(const Vector3&);
  15640. float StableRandom(float);
  15641. const String& GetTypeName(StringHash);
  15642. void SubscribeToEvent(Object, const String&, const String&);
  15643. void SubscribeToEvent(const String&, const String&);
  15644. float Tan(float);
  15645. uint ToLower(uint);
  15646. String ToStringHex(int);
  15647. uint ToUpper(uint);
  15648. void UnsubscribeFromAllEvents();
  15649. void UnsubscribeFromAllEventsExcept(Array<String>);
  15650. void UnsubscribeFromEvent(Object, const String&);
  15651. void UnsubscribeFromEvent(const String&);
  15652. void UnsubscribeFromEvents(Object);
  15653. Vector2 VectorCeil(const Vector2&);
  15654. Vector3 VectorCeil(const Vector3&);
  15655. Vector4 VectorCeil(const Vector4&);
  15656. IntVector2 VectorCeilToInt(const Vector2&);
  15657. IntVector3 VectorCeilToInt(const Vector3&);
  15658. Vector2 VectorFloor(const Vector2&);
  15659. Vector3 VectorFloor(const Vector3&);
  15660. Vector4 VectorFloor(const Vector4&);
  15661. IntVector2 VectorFloorToInt(const Vector2&);
  15662. IntVector3 VectorFloorToInt(const Vector3&);
  15663. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  15664. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  15665. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  15666. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  15667. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  15668. Vector2 VectorMax(const Vector2&, const Vector2&);
  15669. Vector3 VectorMax(const Vector3&, const Vector3&);
  15670. Vector4 VectorMax(const Vector4&, const Vector4&);
  15671. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  15672. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  15673. Vector2 VectorMin(const Vector2&, const Vector2&);
  15674. Vector3 VectorMin(const Vector3&, const Vector3&);
  15675. Vector4 VectorMin(const Vector4&, const Vector4&);
  15676. Vector2 VectorRound(const Vector2&);
  15677. Vector3 VectorRound(const Vector3&);
  15678. Vector4 VectorRound(const Vector4&);
  15679. IntVector2 VectorRoundToInt(const Vector2&);
  15680. IntVector3 VectorRoundToInt(const Vector3&);
  15681. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  15682. // Global properties
  15683. DBAPI DBAPI;
  15684. Audio audio;
  15685. ResourceCache cache;
  15686. Console console;
  15687. Database database;
  15688. DebugHud debugHud;
  15689. DebugRenderer debugRenderer;
  15690. Engine engine;
  15691. FileSystem fileSystem;
  15692. VariantMap globalVars;
  15693. Graphics graphics;
  15694. Input input;
  15695. Localization localization;
  15696. Log log;
  15697. Network network;
  15698. Node node;
  15699. Octree octree;
  15700. PhysicsWorld physicsWorld;
  15701. PhysicsWorld2D physicsWorld2D;
  15702. Renderer renderer;
  15703. ResourceCache resourceCache;
  15704. Scene scene;
  15705. Script script;
  15706. ScriptFile scriptFile;
  15707. ScriptInstance self;
  15708. Time time;
  15709. UI ui;
  15710. // Global constants
  15711. uint AM_COMPONENTID;
  15712. uint AM_DEFAULT;
  15713. uint AM_FILE;
  15714. uint AM_FILEREADONLY;
  15715. uint AM_LATESTDATA;
  15716. uint AM_NET;
  15717. uint AM_NODEID;
  15718. uint AM_NODEIDVECTOR;
  15719. uint AM_NOEDIT;
  15720. Color BLACK;
  15721. Color BLUE;
  15722. uint8 CHANNEL_POSITION;
  15723. uint8 CHANNEL_ROTATION;
  15724. uint8 CHANNEL_SCALE;
  15725. uint CLEAR_COLOR;
  15726. uint CLEAR_DEPTH;
  15727. uint CLEAR_STENCIL;
  15728. int CONTROLLER_AXIS_LEFTX;
  15729. int CONTROLLER_AXIS_LEFTY;
  15730. int CONTROLLER_AXIS_RIGHTX;
  15731. int CONTROLLER_AXIS_RIGHTY;
  15732. int CONTROLLER_AXIS_TRIGGERLEFT;
  15733. int CONTROLLER_AXIS_TRIGGERRIGHT;
  15734. int CONTROLLER_BUTTON_A;
  15735. int CONTROLLER_BUTTON_B;
  15736. int CONTROLLER_BUTTON_BACK;
  15737. int CONTROLLER_BUTTON_DPAD_DOWN;
  15738. int CONTROLLER_BUTTON_DPAD_LEFT;
  15739. int CONTROLLER_BUTTON_DPAD_RIGHT;
  15740. int CONTROLLER_BUTTON_DPAD_UP;
  15741. int CONTROLLER_BUTTON_GUIDE;
  15742. int CONTROLLER_BUTTON_LEFTSHOULDER;
  15743. int CONTROLLER_BUTTON_LEFTSTICK;
  15744. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  15745. int CONTROLLER_BUTTON_RIGHTSTICK;
  15746. int CONTROLLER_BUTTON_START;
  15747. int CONTROLLER_BUTTON_X;
  15748. int CONTROLLER_BUTTON_Y;
  15749. Color CYAN;
  15750. uint DD_DISABLED;
  15751. uint DD_SOURCE;
  15752. uint DD_SOURCE_AND_TARGET;
  15753. uint DD_TARGET;
  15754. uint DEBUGHUD_SHOW_ALL;
  15755. uint DEBUGHUD_SHOW_EVENTPROFILER;
  15756. uint DEBUGHUD_SHOW_MEMORY;
  15757. uint DEBUGHUD_SHOW_MODE;
  15758. uint DEBUGHUD_SHOW_NONE;
  15759. uint DEBUGHUD_SHOW_PROFILER;
  15760. uint DEBUGHUD_SHOW_STATS;
  15761. uint DEFAULT_LIGHTMASK;
  15762. uint DEFAULT_VIEWMASK;
  15763. uint DRAWABLE_ANY;
  15764. uint DRAWABLE_GEOMETRY;
  15765. uint DRAWABLE_GEOMETRY2D;
  15766. uint DRAWABLE_LIGHT;
  15767. uint DRAWABLE_ZONE;
  15768. uint FIRST_LOCAL_ID;
  15769. uint FIRST_REPLICATED_ID;
  15770. Color GRAY;
  15771. Color GREEN;
  15772. int HAT_CENTER;
  15773. int HAT_DOWN;
  15774. int HAT_LEFT;
  15775. int HAT_RIGHT;
  15776. int HAT_UP;
  15777. int KEY_0;
  15778. int KEY_1;
  15779. int KEY_2;
  15780. int KEY_3;
  15781. int KEY_4;
  15782. int KEY_5;
  15783. int KEY_6;
  15784. int KEY_7;
  15785. int KEY_8;
  15786. int KEY_9;
  15787. int KEY_A;
  15788. int KEY_ALT;
  15789. int KEY_APPLICATION;
  15790. int KEY_B;
  15791. int KEY_BACKSPACE;
  15792. int KEY_C;
  15793. int KEY_CAPSLOCK;
  15794. int KEY_CTRL;
  15795. int KEY_D;
  15796. int KEY_DELETE;
  15797. int KEY_DOWN;
  15798. int KEY_E;
  15799. int KEY_END;
  15800. int KEY_ESCAPE;
  15801. int KEY_F;
  15802. int KEY_F1;
  15803. int KEY_F10;
  15804. int KEY_F11;
  15805. int KEY_F12;
  15806. int KEY_F13;
  15807. int KEY_F14;
  15808. int KEY_F15;
  15809. int KEY_F16;
  15810. int KEY_F17;
  15811. int KEY_F18;
  15812. int KEY_F19;
  15813. int KEY_F2;
  15814. int KEY_F20;
  15815. int KEY_F21;
  15816. int KEY_F22;
  15817. int KEY_F23;
  15818. int KEY_F24;
  15819. int KEY_F3;
  15820. int KEY_F4;
  15821. int KEY_F5;
  15822. int KEY_F6;
  15823. int KEY_F7;
  15824. int KEY_F8;
  15825. int KEY_F9;
  15826. int KEY_G;
  15827. int KEY_GUI;
  15828. int KEY_H;
  15829. int KEY_HOME;
  15830. int KEY_I;
  15831. int KEY_INSERT;
  15832. int KEY_J;
  15833. int KEY_K;
  15834. int KEY_KP_0;
  15835. int KEY_KP_1;
  15836. int KEY_KP_2;
  15837. int KEY_KP_3;
  15838. int KEY_KP_4;
  15839. int KEY_KP_5;
  15840. int KEY_KP_6;
  15841. int KEY_KP_7;
  15842. int KEY_KP_8;
  15843. int KEY_KP_9;
  15844. int KEY_KP_DIVIDE;
  15845. int KEY_KP_ENTER;
  15846. int KEY_KP_MINUS;
  15847. int KEY_KP_MULTIPLY;
  15848. int KEY_KP_PERIOD;
  15849. int KEY_KP_PLUS;
  15850. int KEY_L;
  15851. int KEY_LALT;
  15852. int KEY_LCTRL;
  15853. int KEY_LEFT;
  15854. int KEY_LGUI;
  15855. int KEY_LSHIFT;
  15856. int KEY_M;
  15857. int KEY_N;
  15858. int KEY_NUMLOCKCLEAR;
  15859. int KEY_O;
  15860. int KEY_P;
  15861. int KEY_PAGEDOWN;
  15862. int KEY_PAGEUP;
  15863. int KEY_PAUSE;
  15864. int KEY_PRINTSCREEN;
  15865. int KEY_Q;
  15866. int KEY_R;
  15867. int KEY_RALT;
  15868. int KEY_RCTRL;
  15869. int KEY_RETURN;
  15870. int KEY_RETURN2;
  15871. int KEY_RGUI;
  15872. int KEY_RIGHT;
  15873. int KEY_RSHIFT;
  15874. int KEY_S;
  15875. int KEY_SCROLLLOCK;
  15876. int KEY_SELECT;
  15877. int KEY_SHIFT;
  15878. int KEY_SPACE;
  15879. int KEY_T;
  15880. int KEY_TAB;
  15881. int KEY_U;
  15882. int KEY_UNKNOWN;
  15883. int KEY_UP;
  15884. int KEY_V;
  15885. int KEY_W;
  15886. int KEY_X;
  15887. int KEY_Y;
  15888. int KEY_Z;
  15889. uint LAST_LOCAL_ID;
  15890. uint LAST_REPLICATED_ID;
  15891. int LOG_DEBUG;
  15892. int LOG_ERROR;
  15893. int LOG_INFO;
  15894. int LOG_NONE;
  15895. int LOG_WARNING;
  15896. Color MAGENTA;
  15897. uint MASK_BLENDINDICES;
  15898. uint MASK_BLENDWEIGHTS;
  15899. uint MASK_COLOR;
  15900. uint MASK_CUBETEXCOORD1;
  15901. uint MASK_CUBETEXCOORD2;
  15902. uint MASK_INSTANCEMATRIX1;
  15903. uint MASK_INSTANCEMATRIX2;
  15904. uint MASK_INSTANCEMATRIX3;
  15905. uint MASK_NONE;
  15906. uint MASK_NORMAL;
  15907. uint MASK_OBJECTINDEX;
  15908. uint MASK_POSITION;
  15909. uint MASK_TANGENT;
  15910. uint MASK_TEXCOORD1;
  15911. uint MASK_TEXCOORD2;
  15912. int MOUSEB_LEFT;
  15913. int MOUSEB_MIDDLE;
  15914. int MOUSEB_RIGHT;
  15915. float M_DEGTORAD;
  15916. float M_DEGTORAD_2;
  15917. float M_EPSILON;
  15918. float M_HALF_PI;
  15919. float M_INFINITY;
  15920. float M_LARGE_EPSILON;
  15921. float M_LARGE_VALUE;
  15922. int M_MAX_INT;
  15923. uint M_MAX_UNSIGNED;
  15924. int M_MIN_INT;
  15925. uint M_MIN_UNSIGNED;
  15926. float M_PI;
  15927. float M_RADTODEG;
  15928. uint NPOS;
  15929. float PIXEL_SIZE;
  15930. int QUALITY_HIGH;
  15931. int QUALITY_LOW;
  15932. int QUALITY_MAX;
  15933. int QUALITY_MEDIUM;
  15934. int QUAL_ALT;
  15935. int QUAL_ANY;
  15936. int QUAL_CTRL;
  15937. int QUAL_SHIFT;
  15938. Color RED;
  15939. int SCANCODE_0;
  15940. int SCANCODE_1;
  15941. int SCANCODE_2;
  15942. int SCANCODE_3;
  15943. int SCANCODE_4;
  15944. int SCANCODE_5;
  15945. int SCANCODE_6;
  15946. int SCANCODE_7;
  15947. int SCANCODE_8;
  15948. int SCANCODE_9;
  15949. int SCANCODE_A;
  15950. int SCANCODE_AC_BACK;
  15951. int SCANCODE_AC_BOOKMARKS;
  15952. int SCANCODE_AC_FORWARD;
  15953. int SCANCODE_AC_HOME;
  15954. int SCANCODE_AC_REFRESH;
  15955. int SCANCODE_AC_SEARCH;
  15956. int SCANCODE_AC_STOP;
  15957. int SCANCODE_AGAIN;
  15958. int SCANCODE_ALT;
  15959. int SCANCODE_ALTERASE;
  15960. int SCANCODE_APOSTROPHE;
  15961. int SCANCODE_APP1;
  15962. int SCANCODE_APP2;
  15963. int SCANCODE_APPLICATION;
  15964. int SCANCODE_AUDIOMUTE;
  15965. int SCANCODE_AUDIONEXT;
  15966. int SCANCODE_AUDIOPLAY;
  15967. int SCANCODE_AUDIOPREV;
  15968. int SCANCODE_AUDIOSTOP;
  15969. int SCANCODE_B;
  15970. int SCANCODE_BACKSLASH;
  15971. int SCANCODE_BACKSPACE;
  15972. int SCANCODE_BRIGHTNESSDOWN;
  15973. int SCANCODE_BRIGHTNESSUP;
  15974. int SCANCODE_C;
  15975. int SCANCODE_CALCULATOR;
  15976. int SCANCODE_CANCEL;
  15977. int SCANCODE_CAPSLOCK;
  15978. int SCANCODE_CLEAR;
  15979. int SCANCODE_CLEARAGAIN;
  15980. int SCANCODE_COMMA;
  15981. int SCANCODE_COMPUTER;
  15982. int SCANCODE_COPY;
  15983. int SCANCODE_CRSEL;
  15984. int SCANCODE_CTRL;
  15985. int SCANCODE_CURRENCYSUBUNIT;
  15986. int SCANCODE_CURRENCYUNIT;
  15987. int SCANCODE_CUT;
  15988. int SCANCODE_D;
  15989. int SCANCODE_DECIMALSEPARATOR;
  15990. int SCANCODE_DELETE;
  15991. int SCANCODE_DISPLAYSWITCH;
  15992. int SCANCODE_DOWN;
  15993. int SCANCODE_E;
  15994. int SCANCODE_EJECT;
  15995. int SCANCODE_END;
  15996. int SCANCODE_EQUALS;
  15997. int SCANCODE_ESCAPE;
  15998. int SCANCODE_EXECUTE;
  15999. int SCANCODE_EXSEL;
  16000. int SCANCODE_F;
  16001. int SCANCODE_F1;
  16002. int SCANCODE_F10;
  16003. int SCANCODE_F11;
  16004. int SCANCODE_F12;
  16005. int SCANCODE_F13;
  16006. int SCANCODE_F14;
  16007. int SCANCODE_F15;
  16008. int SCANCODE_F16;
  16009. int SCANCODE_F17;
  16010. int SCANCODE_F18;
  16011. int SCANCODE_F19;
  16012. int SCANCODE_F2;
  16013. int SCANCODE_F20;
  16014. int SCANCODE_F21;
  16015. int SCANCODE_F22;
  16016. int SCANCODE_F23;
  16017. int SCANCODE_F24;
  16018. int SCANCODE_F3;
  16019. int SCANCODE_F4;
  16020. int SCANCODE_F5;
  16021. int SCANCODE_F6;
  16022. int SCANCODE_F7;
  16023. int SCANCODE_F8;
  16024. int SCANCODE_F9;
  16025. int SCANCODE_FIND;
  16026. int SCANCODE_G;
  16027. int SCANCODE_GRAVE;
  16028. int SCANCODE_GUI;
  16029. int SCANCODE_H;
  16030. int SCANCODE_HELP;
  16031. int SCANCODE_HOME;
  16032. int SCANCODE_I;
  16033. int SCANCODE_INSERT;
  16034. int SCANCODE_INTERNATIONAL1;
  16035. int SCANCODE_INTERNATIONAL2;
  16036. int SCANCODE_INTERNATIONAL3;
  16037. int SCANCODE_INTERNATIONAL4;
  16038. int SCANCODE_INTERNATIONAL5;
  16039. int SCANCODE_INTERNATIONAL6;
  16040. int SCANCODE_INTERNATIONAL7;
  16041. int SCANCODE_INTERNATIONAL8;
  16042. int SCANCODE_INTERNATIONAL9;
  16043. int SCANCODE_J;
  16044. int SCANCODE_K;
  16045. int SCANCODE_KBDILLUMDOWN;
  16046. int SCANCODE_KBDILLUMTOGGLE;
  16047. int SCANCODE_KBDILLUMUP;
  16048. int SCANCODE_KP_0;
  16049. int SCANCODE_KP_00;
  16050. int SCANCODE_KP_000;
  16051. int SCANCODE_KP_1;
  16052. int SCANCODE_KP_2;
  16053. int SCANCODE_KP_3;
  16054. int SCANCODE_KP_4;
  16055. int SCANCODE_KP_5;
  16056. int SCANCODE_KP_6;
  16057. int SCANCODE_KP_7;
  16058. int SCANCODE_KP_8;
  16059. int SCANCODE_KP_9;
  16060. int SCANCODE_KP_A;
  16061. int SCANCODE_KP_AMPERSAND;
  16062. int SCANCODE_KP_AT;
  16063. int SCANCODE_KP_B;
  16064. int SCANCODE_KP_BACKSPACE;
  16065. int SCANCODE_KP_BINARY;
  16066. int SCANCODE_KP_C;
  16067. int SCANCODE_KP_CLEAR;
  16068. int SCANCODE_KP_CLEARENTRY;
  16069. int SCANCODE_KP_COLON;
  16070. int SCANCODE_KP_COMMA;
  16071. int SCANCODE_KP_D;
  16072. int SCANCODE_KP_DBLAMPERSAND;
  16073. int SCANCODE_KP_DBLVERTICALBAR;
  16074. int SCANCODE_KP_DECIMAL;
  16075. int SCANCODE_KP_DIVIDE;
  16076. int SCANCODE_KP_E;
  16077. int SCANCODE_KP_ENTER;
  16078. int SCANCODE_KP_EQUALS;
  16079. int SCANCODE_KP_EQUALSAS400;
  16080. int SCANCODE_KP_EXCLAM;
  16081. int SCANCODE_KP_F;
  16082. int SCANCODE_KP_GREATER;
  16083. int SCANCODE_KP_HASH;
  16084. int SCANCODE_KP_HEXADECIMAL;
  16085. int SCANCODE_KP_LEFTBRACE;
  16086. int SCANCODE_KP_LEFTPAREN;
  16087. int SCANCODE_KP_LESS;
  16088. int SCANCODE_KP_MEMADD;
  16089. int SCANCODE_KP_MEMCLEAR;
  16090. int SCANCODE_KP_MEMDIVIDE;
  16091. int SCANCODE_KP_MEMMULTIPLY;
  16092. int SCANCODE_KP_MEMRECALL;
  16093. int SCANCODE_KP_MEMSTORE;
  16094. int SCANCODE_KP_MEMSUBTRACT;
  16095. int SCANCODE_KP_MINUS;
  16096. int SCANCODE_KP_MULTIPLY;
  16097. int SCANCODE_KP_OCTAL;
  16098. int SCANCODE_KP_PERCENT;
  16099. int SCANCODE_KP_PERIOD;
  16100. int SCANCODE_KP_PLUS;
  16101. int SCANCODE_KP_PLUSMINUS;
  16102. int SCANCODE_KP_POWER;
  16103. int SCANCODE_KP_RIGHTBRACE;
  16104. int SCANCODE_KP_RIGHTPAREN;
  16105. int SCANCODE_KP_SPACE;
  16106. int SCANCODE_KP_TAB;
  16107. int SCANCODE_KP_VERTICALBAR;
  16108. int SCANCODE_KP_XOR;
  16109. int SCANCODE_L;
  16110. int SCANCODE_LALT;
  16111. int SCANCODE_LANG1;
  16112. int SCANCODE_LANG2;
  16113. int SCANCODE_LANG3;
  16114. int SCANCODE_LANG4;
  16115. int SCANCODE_LANG5;
  16116. int SCANCODE_LANG6;
  16117. int SCANCODE_LANG7;
  16118. int SCANCODE_LANG8;
  16119. int SCANCODE_LANG9;
  16120. int SCANCODE_LCTRL;
  16121. int SCANCODE_LEFT;
  16122. int SCANCODE_LEFTBRACKET;
  16123. int SCANCODE_LGUI;
  16124. int SCANCODE_LSHIFT;
  16125. int SCANCODE_M;
  16126. int SCANCODE_MAIL;
  16127. int SCANCODE_MEDIASELECT;
  16128. int SCANCODE_MENU;
  16129. int SCANCODE_MINUS;
  16130. int SCANCODE_MODE;
  16131. int SCANCODE_MUTE;
  16132. int SCANCODE_N;
  16133. int SCANCODE_NONUSBACKSLASH;
  16134. int SCANCODE_NONUSHASH;
  16135. int SCANCODE_NUMLOCKCLEAR;
  16136. int SCANCODE_O;
  16137. int SCANCODE_OPER;
  16138. int SCANCODE_OUT;
  16139. int SCANCODE_P;
  16140. int SCANCODE_PAGEDOWN;
  16141. int SCANCODE_PAGEUP;
  16142. int SCANCODE_PASTE;
  16143. int SCANCODE_PAUSE;
  16144. int SCANCODE_PERIOD;
  16145. int SCANCODE_POWER;
  16146. int SCANCODE_PRINTSCREEN;
  16147. int SCANCODE_PRIOR;
  16148. int SCANCODE_Q;
  16149. int SCANCODE_R;
  16150. int SCANCODE_RALT;
  16151. int SCANCODE_RCTRL;
  16152. int SCANCODE_RETURN;
  16153. int SCANCODE_RETURN2;
  16154. int SCANCODE_RGUI;
  16155. int SCANCODE_RIGHT;
  16156. int SCANCODE_RIGHTBRACKET;
  16157. int SCANCODE_RSHIFT;
  16158. int SCANCODE_S;
  16159. int SCANCODE_SCROLLLOCK;
  16160. int SCANCODE_SELECT;
  16161. int SCANCODE_SEMICOLON;
  16162. int SCANCODE_SEPARATOR;
  16163. int SCANCODE_SHIFT;
  16164. int SCANCODE_SLASH;
  16165. int SCANCODE_SLEEP;
  16166. int SCANCODE_SPACE;
  16167. int SCANCODE_STOP;
  16168. int SCANCODE_SYSREQ;
  16169. int SCANCODE_T;
  16170. int SCANCODE_TAB;
  16171. int SCANCODE_THOUSANDSSEPARATOR;
  16172. int SCANCODE_U;
  16173. int SCANCODE_UNDO;
  16174. int SCANCODE_UNKNOWN;
  16175. int SCANCODE_UP;
  16176. int SCANCODE_V;
  16177. int SCANCODE_VOLUMEDOWN;
  16178. int SCANCODE_VOLUMEUP;
  16179. int SCANCODE_W;
  16180. int SCANCODE_WWW;
  16181. int SCANCODE_X;
  16182. int SCANCODE_Y;
  16183. int SCANCODE_Z;
  16184. uint SCAN_DIRS;
  16185. uint SCAN_FILES;
  16186. uint SCAN_HIDDEN;
  16187. String SOUND_AMBIENT;
  16188. String SOUND_EFFECT;
  16189. String SOUND_MASTER;
  16190. String SOUND_MUSIC;
  16191. String SOUND_VOICE;
  16192. Color TRANSPARENT;
  16193. uint VO_DISABLE_OCCLUSION;
  16194. uint VO_DISABLE_SHADOWS;
  16195. uint VO_LOW_MATERIAL_QUALITY;
  16196. uint VO_NONE;
  16197. Color WHITE;
  16198. Color YELLOW;