AngelScriptAPI.h 411 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652
  1. // Script API header intended to be 'force included' in IDE for AngelScript content assist / code completion
  2. #define int8 signed char
  3. #define int16 signed short
  4. #define int64 long
  5. #define uint8 unsigned char
  6. #define uint16 unsigned short
  7. #define uint64 unsigned long
  8. #define null 0
  9. #define in
  10. #define out
  11. #define inout
  12. #define is ==
  13. #define interface struct
  14. #define class struct
  15. #define cast reinterpret_cast
  16. #define mixin
  17. #define funcdef
  18. // Classes
  19. class Animatable
  20. {
  21. public:
  22. // Methods:
  23. void ApplyAttributes();
  24. Variant GetAttribute(const String&) const;
  25. ValueAnimation GetAttributeAnimation(const String&) const;
  26. float GetAttributeAnimationSpeed(const String&) const;
  27. float GetAttributeAnimationTime(const String&) const;
  28. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29. Variant GetAttributeDefault(const String&) const;
  30. bool GetInterceptNetworkUpdate(const String&) const;
  31. bool HasSubscribedToEvent(Object, const String&);
  32. bool HasSubscribedToEvent(const String&);
  33. bool Load(File, bool = false);
  34. bool Load(VectorBuffer&, bool = false);
  35. bool LoadJSON(const JSONValue&, bool = false);
  36. bool LoadXML(const XMLElement&, bool = false);
  37. void MarkNetworkUpdate() const;
  38. void RemoveAttributeAnimation(const String&);
  39. void RemoveInstanceDefault();
  40. void RemoveObjectAnimation();
  41. void ResetToDefault();
  42. bool Save(File) const;
  43. bool Save(VectorBuffer&) const;
  44. bool SaveJSON(JSONValue&) const;
  45. bool SaveXML(XMLElement&) const;
  46. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  47. void SetAnimationTime(float);
  48. bool SetAttribute(const String&, const Variant&);
  49. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  50. void SetAttributeAnimationSpeed(const String&, float);
  51. void SetAttributeAnimationTime(const String&, float);
  52. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  53. void SetInterceptNetworkUpdate(const String&, bool);
  54. // Properties:
  55. bool animationEnabled;
  56. /* readonly */
  57. Array<Variant> attributeDefaults;
  58. /* readonly */
  59. Array<AttributeInfo> attributeInfos;
  60. Array<Variant> attributes;
  61. /* readonly */
  62. String category;
  63. /* readonly */
  64. uint numAttributes;
  65. ObjectAnimation objectAnimation;
  66. /* readonly */
  67. int refs;
  68. bool temporary;
  69. /* readonly */
  70. StringHash type;
  71. /* readonly */
  72. String typeName;
  73. /* readonly */
  74. int weakRefs;
  75. };
  76. class AnimatedModel
  77. {
  78. public:
  79. // Methods:
  80. AnimationState AddAnimationState(Animation);
  81. void ApplyAttributes();
  82. void ApplyMaterialList(const String& = String ( ));
  83. void DrawDebugGeometry(DebugRenderer, bool);
  84. AnimationState GetAnimationState(Animation) const;
  85. AnimationState GetAnimationState(uint) const;
  86. Variant GetAttribute(const String&) const;
  87. ValueAnimation GetAttributeAnimation(const String&) const;
  88. float GetAttributeAnimationSpeed(const String&) const;
  89. float GetAttributeAnimationTime(const String&) const;
  90. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  91. Variant GetAttributeDefault(const String&) const;
  92. bool GetInterceptNetworkUpdate(const String&) const;
  93. float GetMorphWeight(uint) const;
  94. bool HasSubscribedToEvent(Object, const String&);
  95. bool HasSubscribedToEvent(const String&);
  96. bool IsInView(Camera) const;
  97. bool Load(File, bool = false);
  98. bool Load(VectorBuffer&, bool = false);
  99. bool LoadJSON(const JSONValue&, bool = false);
  100. bool LoadXML(const XMLElement&, bool = false);
  101. void MarkNetworkUpdate() const;
  102. void Remove();
  103. void RemoveAllAnimationStates();
  104. void RemoveAnimationState(Animation);
  105. void RemoveAnimationState(AnimationState);
  106. void RemoveAnimationState(const String&);
  107. void RemoveAnimationState(uint);
  108. void RemoveAttributeAnimation(const String&);
  109. void RemoveInstanceDefault();
  110. void RemoveObjectAnimation();
  111. void ResetMorphWeights();
  112. void ResetToDefault();
  113. bool Save(File) const;
  114. bool Save(VectorBuffer&) const;
  115. bool SaveJSON(JSONValue&) const;
  116. bool SaveXML(XMLElement&) const;
  117. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  118. void SetAnimationTime(float);
  119. bool SetAttribute(const String&, const Variant&);
  120. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  121. void SetAttributeAnimationSpeed(const String&, float);
  122. void SetAttributeAnimationTime(const String&, float);
  123. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  124. void SetInterceptNetworkUpdate(const String&, bool);
  125. void SetMorphWeight(uint, float);
  126. void UpdateBoneBoundingBox();
  127. // Properties:
  128. bool animationEnabled;
  129. float animationLodBias;
  130. /* readonly */
  131. Array<AnimationState> animationStates;
  132. /* readonly */
  133. Array<Variant> attributeDefaults;
  134. /* readonly */
  135. Array<AttributeInfo> attributeInfos;
  136. Array<Variant> attributes;
  137. /* readonly */
  138. BoundingBox boundingBox;
  139. bool castShadows;
  140. /* readonly */
  141. String category;
  142. float drawDistance;
  143. bool enabled;
  144. /* readonly */
  145. bool enabledEffective;
  146. /* readonly */
  147. uint id;
  148. /* readonly */
  149. bool inView;
  150. uint lightMask;
  151. float lodBias;
  152. /* writeonly */
  153. Material material;
  154. Array<Material> materials;
  155. uint maxLights;
  156. Model model;
  157. /* readonly */
  158. Array<String> morphNames;
  159. Array<float> morphWeights;
  160. /* readonly */
  161. Node node;
  162. /* readonly */
  163. uint numAnimationStates;
  164. /* readonly */
  165. uint numAttributes;
  166. /* readonly */
  167. uint numGeometries;
  168. /* readonly */
  169. uint numMorphs;
  170. ObjectAnimation objectAnimation;
  171. bool occludee;
  172. bool occluder;
  173. /* readonly */
  174. int refs;
  175. float shadowDistance;
  176. uint shadowMask;
  177. /* readonly */
  178. Skeleton skeleton;
  179. bool temporary;
  180. /* readonly */
  181. StringHash type;
  182. /* readonly */
  183. String typeName;
  184. bool updateInvisible;
  185. uint viewMask;
  186. /* readonly */
  187. int weakRefs;
  188. /* readonly */
  189. BoundingBox worldBoundingBox;
  190. /* readonly */
  191. Zone zone;
  192. uint zoneMask;
  193. };
  194. class AnimatedSprite2D
  195. {
  196. public:
  197. // Methods:
  198. void ApplyAttributes();
  199. void DrawDebugGeometry(DebugRenderer, bool);
  200. Variant GetAttribute(const String&) const;
  201. ValueAnimation GetAttributeAnimation(const String&) const;
  202. float GetAttributeAnimationSpeed(const String&) const;
  203. float GetAttributeAnimationTime(const String&) const;
  204. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  205. Variant GetAttributeDefault(const String&) const;
  206. bool GetInterceptNetworkUpdate(const String&) const;
  207. bool HasSubscribedToEvent(Object, const String&);
  208. bool HasSubscribedToEvent(const String&);
  209. bool IsInView(Camera) const;
  210. bool Load(File, bool = false);
  211. bool Load(VectorBuffer&, bool = false);
  212. bool LoadJSON(const JSONValue&, bool = false);
  213. bool LoadXML(const XMLElement&, bool = false);
  214. void MarkNetworkUpdate() const;
  215. void Remove();
  216. void RemoveAttributeAnimation(const String&);
  217. void RemoveInstanceDefault();
  218. void RemoveObjectAnimation();
  219. void ResetToDefault();
  220. bool Save(File) const;
  221. bool Save(VectorBuffer&) const;
  222. bool SaveJSON(JSONValue&) const;
  223. bool SaveXML(XMLElement&) const;
  224. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  225. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  226. void SetAnimationTime(float);
  227. bool SetAttribute(const String&, const Variant&);
  228. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  229. void SetAttributeAnimationSpeed(const String&, float);
  230. void SetAttributeAnimationTime(const String&, float);
  231. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  232. void SetFlip(bool, bool);
  233. void SetInterceptNetworkUpdate(const String&, bool);
  234. // Properties:
  235. float alpha;
  236. String animation;
  237. bool animationEnabled;
  238. AnimationSet2D animationSet;
  239. /* readonly */
  240. Array<Variant> attributeDefaults;
  241. /* readonly */
  242. Array<AttributeInfo> attributeInfos;
  243. Array<Variant> attributes;
  244. BlendMode blendMode;
  245. /* readonly */
  246. BoundingBox boundingBox;
  247. bool castShadows;
  248. /* readonly */
  249. String category;
  250. Color color;
  251. Material customMaterial;
  252. float drawDistance;
  253. Rect drawRect;
  254. bool enabled;
  255. /* readonly */
  256. bool enabledEffective;
  257. String entity;
  258. bool flipX;
  259. bool flipY;
  260. Vector2 hotSpot;
  261. /* readonly */
  262. uint id;
  263. /* readonly */
  264. bool inView;
  265. int layer;
  266. uint lightMask;
  267. float lodBias;
  268. LoopMode2D loopMode;
  269. uint maxLights;
  270. /* readonly */
  271. Node node;
  272. /* readonly */
  273. uint numAttributes;
  274. ObjectAnimation objectAnimation;
  275. bool occludee;
  276. bool occluder;
  277. int orderInLayer;
  278. /* readonly */
  279. int refs;
  280. float shadowDistance;
  281. uint shadowMask;
  282. float speed;
  283. Sprite2D sprite;
  284. bool temporary;
  285. Rect textureRect;
  286. /* readonly */
  287. StringHash type;
  288. /* readonly */
  289. String typeName;
  290. bool useDrawRect;
  291. bool useHotSpot;
  292. bool useTextureRect;
  293. uint viewMask;
  294. /* readonly */
  295. int weakRefs;
  296. /* readonly */
  297. BoundingBox worldBoundingBox;
  298. uint zoneMask;
  299. };
  300. class Animation
  301. {
  302. public:
  303. Animation();
  304. Animation(const String&in);
  305. // Methods:
  306. void AddMetadata(const String&, const Variant&);
  307. void AddTrigger(const AnimationTriggerPoint&);
  308. void AddTrigger(float, bool, const Variant&);
  309. Animation Clone(const String& = String ( )) const;
  310. AnimationTrack CreateTrack(const String&);
  311. AnimationTrack GetTrack(uint);
  312. bool HasSubscribedToEvent(Object, const String&);
  313. bool HasSubscribedToEvent(const String&);
  314. bool Load(File);
  315. bool Load(VectorBuffer&);
  316. bool Load(const String&);
  317. void RemoveAllMetadata();
  318. bool RemoveAllTracks();
  319. void RemoveAllTriggers();
  320. void RemoveMetadata(const String&);
  321. bool RemoveTrack(const String&);
  322. void RemoveTrigger(uint);
  323. bool Save(File) const;
  324. bool Save(VectorBuffer&) const;
  325. bool Save(const String&) const;
  326. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  327. // Properties:
  328. String animationName;
  329. /* readonly */
  330. String category;
  331. /* readonly */
  332. bool hasMetadata;
  333. float length;
  334. /* readonly */
  335. uint memoryUse;
  336. Array<Variant> metadata;
  337. String name;
  338. /* readonly */
  339. uint numTracks;
  340. uint numTriggers;
  341. /* readonly */
  342. int refs;
  343. /* readonly */
  344. Array<AnimationTrack> tracks;
  345. Array<AnimationTriggerPoint> triggers;
  346. /* readonly */
  347. StringHash type;
  348. /* readonly */
  349. String typeName;
  350. /* readonly */
  351. uint useTimer;
  352. /* readonly */
  353. int weakRefs;
  354. };
  355. class AnimationControl
  356. {
  357. public:
  358. // Properties:
  359. float autoFadeTime;
  360. float fadeTime;
  361. StringHash hash;
  362. String name;
  363. bool removeOnCompletion;
  364. float speed;
  365. float targetWeight;
  366. };
  367. class AnimationController
  368. {
  369. public:
  370. // Methods:
  371. void ApplyAttributes();
  372. void DrawDebugGeometry(DebugRenderer, bool);
  373. bool Fade(const String&, float, float);
  374. bool FadeOthers(const String&, float, float);
  375. AnimationState GetAnimationState(StringHash) const;
  376. AnimationState GetAnimationState(const String&) const;
  377. Variant GetAttribute(const String&) const;
  378. ValueAnimation GetAttributeAnimation(const String&) const;
  379. float GetAttributeAnimationSpeed(const String&) const;
  380. float GetAttributeAnimationTime(const String&) const;
  381. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  382. Variant GetAttributeDefault(const String&) const;
  383. float GetAutoFade(const String&) const;
  384. AnimationBlendMode GetBlendMode(const String&) const;
  385. float GetFadeTarget(const String&) const;
  386. float GetFadeTime(const String&) const;
  387. bool GetInterceptNetworkUpdate(const String&) const;
  388. uint8 GetLayer(const String&) const;
  389. float GetLength(const String&) const;
  390. bool GetLooped(const String&) const;
  391. bool GetRemoveOnCompletion(const String&);
  392. float GetSpeed(const String&) const;
  393. float GetTime(const String&) const;
  394. float GetWeight(const String&) const;
  395. bool HasSubscribedToEvent(Object, const String&);
  396. bool HasSubscribedToEvent(const String&);
  397. bool IsAtEnd(const String&) const;
  398. bool IsFadingIn(const String&) const;
  399. bool IsFadingOut(const String&) const;
  400. bool IsPlaying(const String&) const;
  401. bool IsPlaying(uint8) const;
  402. bool Load(File, bool = false);
  403. bool Load(VectorBuffer&, bool = false);
  404. bool LoadJSON(const JSONValue&, bool = false);
  405. bool LoadXML(const XMLElement&, bool = false);
  406. void MarkNetworkUpdate() const;
  407. bool Play(const String&, uint8, bool, float = 0.0f);
  408. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  409. void Remove();
  410. void RemoveAttributeAnimation(const String&);
  411. void RemoveInstanceDefault();
  412. void RemoveObjectAnimation();
  413. void ResetToDefault();
  414. bool Save(File) const;
  415. bool Save(VectorBuffer&) const;
  416. bool SaveJSON(JSONValue&) const;
  417. bool SaveXML(XMLElement&) const;
  418. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  419. void SetAnimationTime(float);
  420. bool SetAttribute(const String&, const Variant&);
  421. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  422. void SetAttributeAnimationSpeed(const String&, float);
  423. void SetAttributeAnimationTime(const String&, float);
  424. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  425. bool SetAutoFade(const String&, float);
  426. bool SetBlendMode(const String&, AnimationBlendMode);
  427. void SetInterceptNetworkUpdate(const String&, bool);
  428. bool SetLayer(const String&, uint8);
  429. bool SetLooped(const String&, bool);
  430. bool SetRemoveOnCompletion(const String&, bool);
  431. bool SetSpeed(const String&, float);
  432. bool SetStartBone(const String&, const String&);
  433. bool SetTime(const String&, float);
  434. bool SetWeight(const String&, float);
  435. void Stop(const String&, float = 0.0f);
  436. void StopAll(float = 0.0f);
  437. void StopLayer(uint8, float = 0.0f);
  438. const String& GetStartBone(const String&) const;
  439. // Properties:
  440. bool animationEnabled;
  441. /* readonly */
  442. Array<AnimationControl> animations;
  443. /* readonly */
  444. Array<Variant> attributeDefaults;
  445. /* readonly */
  446. Array<AttributeInfo> attributeInfos;
  447. Array<Variant> attributes;
  448. /* readonly */
  449. String category;
  450. bool enabled;
  451. /* readonly */
  452. bool enabledEffective;
  453. /* readonly */
  454. uint id;
  455. /* readonly */
  456. Node node;
  457. /* readonly */
  458. uint numAnimations;
  459. /* readonly */
  460. uint numAttributes;
  461. ObjectAnimation objectAnimation;
  462. /* readonly */
  463. int refs;
  464. bool temporary;
  465. /* readonly */
  466. StringHash type;
  467. /* readonly */
  468. String typeName;
  469. /* readonly */
  470. int weakRefs;
  471. };
  472. class AnimationKeyFrame
  473. {
  474. public:
  475. ~AnimationKeyFrame();
  476. AnimationKeyFrame();
  477. AnimationKeyFrame(const AnimationKeyFrame&in);
  478. // Properties:
  479. Vector3 position;
  480. Quaternion rotation;
  481. Vector3 scale;
  482. float time;
  483. };
  484. class AnimationSet2D
  485. {
  486. public:
  487. AnimationSet2D();
  488. AnimationSet2D(const String&in);
  489. // Methods:
  490. String GetAnimation(uint) const;
  491. bool HasSubscribedToEvent(Object, const String&);
  492. bool HasSubscribedToEvent(const String&);
  493. bool Load(File);
  494. bool Load(VectorBuffer&);
  495. bool Load(const String&);
  496. bool Save(File) const;
  497. bool Save(VectorBuffer&) const;
  498. bool Save(const String&) const;
  499. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  500. // Properties:
  501. /* readonly */
  502. String category;
  503. /* readonly */
  504. uint memoryUse;
  505. String name;
  506. /* readonly */
  507. uint numAnimations;
  508. /* readonly */
  509. int refs;
  510. /* readonly */
  511. StringHash type;
  512. /* readonly */
  513. String typeName;
  514. /* readonly */
  515. uint useTimer;
  516. /* readonly */
  517. int weakRefs;
  518. };
  519. class AnimationState
  520. {
  521. public:
  522. AnimationState(Node&, Animation&);
  523. // Methods:
  524. void AddTime(float);
  525. void AddWeight(float);
  526. void Apply();
  527. float GetBoneWeight(StringHash) const;
  528. float GetBoneWeight(uint) const;
  529. uint GetTrackIndex(StringHash) const;
  530. uint GetTrackIndex(const String&) const;
  531. void SetBoneWeight(StringHash, float, bool = false);
  532. void SetBoneWeight(const String&, float, bool = false);
  533. void SetBoneWeight(uint, float, bool = false);
  534. // Properties:
  535. /* readonly */
  536. Animation animation;
  537. AnimationBlendMode blendMode;
  538. Array<float> boneWeights;
  539. /* readonly */
  540. bool enabled;
  541. uint8 layer;
  542. /* readonly */
  543. float length;
  544. bool looped;
  545. /* readonly */
  546. AnimatedModel model;
  547. /* readonly */
  548. Node node;
  549. /* readonly */
  550. int refs;
  551. Bone startBone;
  552. float time;
  553. /* readonly */
  554. int weakRefs;
  555. float weight;
  556. };
  557. class AnimationTrack
  558. {
  559. public:
  560. // Methods:
  561. void AddKeyFrame(const AnimationKeyFrame&);
  562. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  563. void RemoveAllKeyFrames();
  564. void RemoveKeyFrame(uint);
  565. // Properties:
  566. uint8 channelMask;
  567. Array<AnimationKeyFrame> keyFrames;
  568. String name;
  569. StringHash nameHash;
  570. /* readonly */
  571. uint numKeyFrames;
  572. };
  573. class AnimationTriggerPoint
  574. {
  575. public:
  576. ~AnimationTriggerPoint();
  577. AnimationTriggerPoint();
  578. AnimationTriggerPoint(const AnimationTriggerPoint&in);
  579. // Properties:
  580. Variant data;
  581. float time;
  582. };
  583. template <class T>
  584. class Array
  585. {
  586. public:
  587. Array(int&in);
  588. Array(int&in, uint);
  589. Array(int&in, uint, const T&in);
  590. // Methods:
  591. void Clear();
  592. void Erase(uint);
  593. int Find(const T&) const;
  594. int Find(uint, const T&) const;
  595. int FindByRef(const T&) const;
  596. int FindByRef(uint, const T&) const;
  597. void Insert(uint, const T&);
  598. void Pop();
  599. void Push(const T&);
  600. void Reserve(uint);
  601. void Resize(uint);
  602. void Reverse();
  603. void Sort();
  604. void Sort(uint, uint);
  605. void SortReverse();
  606. void SortReverse(uint, uint);
  607. // Properties:
  608. /* readonly */
  609. bool empty;
  610. uint length;
  611. };
  612. class AttributeInfo
  613. {
  614. public:
  615. ~AttributeInfo();
  616. AttributeInfo();
  617. AttributeInfo(const AttributeInfo&in);
  618. // Properties:
  619. Variant defaultValue;
  620. /* readonly */
  621. Array<String> enumNames;
  622. uint mode;
  623. String name;
  624. VariantType type;
  625. /* readonly */
  626. Array<String> variantStructureElementNames;
  627. };
  628. class Audio
  629. {
  630. public:
  631. // Methods:
  632. bool HasMasterGain(const String&) const;
  633. bool HasSubscribedToEvent(Object, const String&);
  634. bool HasSubscribedToEvent(const String&);
  635. bool IsSoundTypePaused(const String&);
  636. void PauseSoundType(const String&);
  637. bool Play();
  638. void ResumeAll();
  639. void ResumeSoundType(const String&);
  640. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  641. void SetMode(int, int, bool, bool = true);
  642. void Stop();
  643. // Properties:
  644. /* readonly */
  645. String category;
  646. /* readonly */
  647. bool initialized;
  648. /* readonly */
  649. bool interpolation;
  650. SoundListener listener;
  651. Array<float> masterGain;
  652. /* readonly */
  653. int mixRate;
  654. /* readonly */
  655. bool playing;
  656. /* readonly */
  657. int refs;
  658. /* readonly */
  659. uint sampleSize;
  660. /* readonly */
  661. bool stereo;
  662. /* readonly */
  663. StringHash type;
  664. /* readonly */
  665. String typeName;
  666. /* readonly */
  667. int weakRefs;
  668. };
  669. class BiasParameters
  670. {
  671. public:
  672. BiasParameters();
  673. BiasParameters(const BiasParameters&in);
  674. BiasParameters(float, float, float normalOffset = 0.0f);
  675. // Properties:
  676. float constantBias;
  677. float normalOffset;
  678. float slopeScaledBias;
  679. };
  680. class Billboard
  681. {
  682. public:
  683. // Properties:
  684. Color color;
  685. Vector3 direction;
  686. bool enabled;
  687. Vector3 position;
  688. float rotation;
  689. Vector2 size;
  690. Rect uv;
  691. };
  692. class BillboardSet
  693. {
  694. public:
  695. // Methods:
  696. void ApplyAttributes();
  697. void Commit();
  698. void DrawDebugGeometry(DebugRenderer, bool);
  699. Variant GetAttribute(const String&) const;
  700. ValueAnimation GetAttributeAnimation(const String&) const;
  701. float GetAttributeAnimationSpeed(const String&) const;
  702. float GetAttributeAnimationTime(const String&) const;
  703. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  704. Variant GetAttributeDefault(const String&) const;
  705. bool GetInterceptNetworkUpdate(const String&) const;
  706. bool HasSubscribedToEvent(Object, const String&);
  707. bool HasSubscribedToEvent(const String&);
  708. bool IsInView(Camera) const;
  709. bool Load(File, bool = false);
  710. bool Load(VectorBuffer&, bool = false);
  711. bool LoadJSON(const JSONValue&, bool = false);
  712. bool LoadXML(const XMLElement&, bool = false);
  713. void MarkNetworkUpdate() const;
  714. void Remove();
  715. void RemoveAttributeAnimation(const String&);
  716. void RemoveInstanceDefault();
  717. void RemoveObjectAnimation();
  718. void ResetToDefault();
  719. bool Save(File) const;
  720. bool Save(VectorBuffer&) const;
  721. bool SaveJSON(JSONValue&) const;
  722. bool SaveXML(XMLElement&) const;
  723. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  724. void SetAnimationTime(float);
  725. bool SetAttribute(const String&, const Variant&);
  726. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  727. void SetAttributeAnimationSpeed(const String&, float);
  728. void SetAttributeAnimationTime(const String&, float);
  729. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  730. void SetInterceptNetworkUpdate(const String&, bool);
  731. // Properties:
  732. bool animationEnabled;
  733. float animationLodBias;
  734. /* readonly */
  735. Array<Variant> attributeDefaults;
  736. /* readonly */
  737. Array<AttributeInfo> attributeInfos;
  738. Array<Variant> attributes;
  739. /* readonly */
  740. Array<Billboard> billboards;
  741. /* readonly */
  742. BoundingBox boundingBox;
  743. bool castShadows;
  744. /* readonly */
  745. String category;
  746. float drawDistance;
  747. bool enabled;
  748. /* readonly */
  749. bool enabledEffective;
  750. FaceCameraMode faceCameraMode;
  751. bool fixedScreenSize;
  752. /* readonly */
  753. uint id;
  754. /* readonly */
  755. bool inView;
  756. uint lightMask;
  757. float lodBias;
  758. Material material;
  759. uint maxLights;
  760. float minAngle;
  761. /* readonly */
  762. Node node;
  763. /* readonly */
  764. uint numAttributes;
  765. uint numBillboards;
  766. ObjectAnimation objectAnimation;
  767. bool occludee;
  768. bool occluder;
  769. /* readonly */
  770. int refs;
  771. bool relative;
  772. bool scaled;
  773. float shadowDistance;
  774. uint shadowMask;
  775. bool sorted;
  776. bool temporary;
  777. /* readonly */
  778. StringHash type;
  779. /* readonly */
  780. String typeName;
  781. uint viewMask;
  782. /* readonly */
  783. int weakRefs;
  784. /* readonly */
  785. BoundingBox worldBoundingBox;
  786. /* readonly */
  787. Zone zone;
  788. uint zoneMask;
  789. };
  790. class Bone
  791. {
  792. public:
  793. // Properties:
  794. bool animated;
  795. BoundingBox boundingBox;
  796. Vector3 initialPosition;
  797. Quaternion initialRotation;
  798. Vector3 initialScale;
  799. String name;
  800. Node node;
  801. float radius;
  802. };
  803. class BorderImage
  804. {
  805. public:
  806. BorderImage();
  807. BorderImage(const String&in);
  808. // Methods:
  809. void AddChild(UIElement);
  810. void AddTag(const String&);
  811. void AddTags(const String&, int8 = ';');
  812. void ApplyAttributes();
  813. void BringToFront();
  814. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  815. void DisableLayoutUpdate();
  816. IntVector2 ElementToScreen(const IntVector2&);
  817. void EnableLayoutUpdate();
  818. uint FindChild(UIElement) const;
  819. Variant GetAttribute(const String&) const;
  820. ValueAnimation GetAttributeAnimation(const String&) const;
  821. float GetAttributeAnimationSpeed(const String&) const;
  822. float GetAttributeAnimationTime(const String&) const;
  823. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  824. Variant GetAttributeDefault(const String&) const;
  825. UIElement GetChild(const String&, bool = false) const;
  826. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  827. Array<UIElement> GetChildren(bool = false) const;
  828. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  829. UIElement GetElementEventSender() const;
  830. bool GetInterceptNetworkUpdate(const String&) const;
  831. uint GetNumChildren(bool) const;
  832. bool HasSubscribedToEvent(Object, const String&);
  833. bool HasSubscribedToEvent(const String&);
  834. bool HasTag(const String&) const;
  835. void InsertChild(uint, UIElement);
  836. bool IsInside(IntVector2, bool);
  837. bool IsInsideCombined(IntVector2, bool);
  838. bool Load(File, bool = false);
  839. bool Load(VectorBuffer&, bool = false);
  840. UIElement LoadChildXML(XMLFile, XMLFile = null);
  841. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  842. bool LoadJSON(const JSONValue&, bool = false);
  843. bool LoadXML(File);
  844. bool LoadXML(VectorBuffer&);
  845. bool LoadXML(XMLFile, XMLFile);
  846. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  847. bool LoadXML(const XMLElement&, bool = false);
  848. void MarkNetworkUpdate() const;
  849. void Remove();
  850. void RemoveAllChildren();
  851. void RemoveAllTags();
  852. void RemoveAttributeAnimation(const String&);
  853. void RemoveChild(UIElement, uint = 0);
  854. void RemoveChild(uint);
  855. void RemoveInstanceDefault();
  856. void RemoveObjectAnimation();
  857. bool RemoveTag(const String&);
  858. void ResetDeepEnabled();
  859. void ResetToDefault();
  860. bool Save(File) const;
  861. bool Save(VectorBuffer&) const;
  862. bool SaveJSON(JSONValue&) const;
  863. bool SaveXML(File, const String& = "\t");
  864. bool SaveXML(VectorBuffer&, const String& = "\t");
  865. bool SaveXML(XMLElement&) const;
  866. IntVector2 ScreenToElement(const IntVector2&);
  867. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  868. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  869. void SetAnimationTime(float);
  870. bool SetAttribute(const String&, const Variant&);
  871. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  872. void SetAttributeAnimationSpeed(const String&, float);
  873. void SetAttributeAnimationTime(const String&, float);
  874. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  875. void SetDeepEnabled(bool);
  876. void SetEnabledRecursive(bool);
  877. void SetFixedHeight(int);
  878. void SetFixedSize(int, int);
  879. void SetFixedWidth(int);
  880. void SetFullImageRect();
  881. void SetHoverOffset(int, int);
  882. void SetInterceptNetworkUpdate(const String&, bool);
  883. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  884. void SetMaxAnchor(float, float);
  885. void SetMaxSize(int, int);
  886. void SetMinAnchor(float, float);
  887. void SetMinSize(int, int);
  888. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  889. void SetPivot(float, float);
  890. void SetPosition(int, int);
  891. void SetSize(int, int);
  892. bool SetStyle(const String&, XMLFile = null);
  893. bool SetStyle(const XMLElement&);
  894. bool SetStyleAuto(XMLFile = null);
  895. void UpdateLayout();
  896. const Variant& GetVar(const StringHash&);
  897. // Properties:
  898. bool animationEnabled;
  899. /* readonly */
  900. Array<Variant> attributeDefaults;
  901. /* readonly */
  902. Array<AttributeInfo> attributeInfos;
  903. Array<Variant> attributes;
  904. BlendMode blendMode;
  905. IntRect border;
  906. bool bringToBack;
  907. bool bringToFront;
  908. /* readonly */
  909. String category;
  910. /* readonly */
  911. IntVector2 childOffset;
  912. /* readonly */
  913. Array<UIElement> children;
  914. IntRect clipBorder;
  915. bool clipChildren;
  916. /* writeonly */
  917. Color color;
  918. /* readonly */
  919. bool colorGradient;
  920. Array<Color> colors;
  921. /* readonly */
  922. IntRect combinedScreenRect;
  923. XMLFile defaultStyle;
  924. /* readonly */
  925. float derivedOpacity;
  926. /* readonly */
  927. uint dragButtonCombo;
  928. /* readonly */
  929. int dragButtonCount;
  930. uint dragDropMode;
  931. bool editable;
  932. bool elementEventSender;
  933. bool enableAnchor;
  934. bool enabled;
  935. /* readonly */
  936. bool enabledSelf;
  937. /* readonly */
  938. bool fixedHeight;
  939. /* readonly */
  940. bool fixedSize;
  941. /* readonly */
  942. bool fixedWidth;
  943. bool focus;
  944. FocusMode focusMode;
  945. int height;
  946. HorizontalAlignment horizontalAlignment;
  947. IntVector2 hoverOffset;
  948. /* readonly */
  949. bool hovering;
  950. IntRect imageBorder;
  951. IntRect imageRect;
  952. int indent;
  953. int indentSpacing;
  954. /* readonly */
  955. int indentWidth;
  956. bool internal;
  957. IntRect layoutBorder;
  958. Vector2 layoutFlexScale;
  959. LayoutMode layoutMode;
  960. int layoutSpacing;
  961. Vector2 maxAnchor;
  962. int maxHeight;
  963. IntVector2 maxOffset;
  964. IntVector2 maxSize;
  965. int maxWidth;
  966. Vector2 minAnchor;
  967. int minHeight;
  968. IntVector2 minOffset;
  969. IntVector2 minSize;
  970. int minWidth;
  971. String name;
  972. /* readonly */
  973. uint numAllChildren;
  974. /* readonly */
  975. uint numAttributes;
  976. /* readonly */
  977. uint numChildren;
  978. ObjectAnimation objectAnimation;
  979. float opacity;
  980. UIElement parent;
  981. Vector2 pivot;
  982. IntVector2 position;
  983. int priority;
  984. /* readonly */
  985. int refs;
  986. /* readonly */
  987. UIElement root;
  988. /* readonly */
  989. IntVector2 screenPosition;
  990. bool selected;
  991. IntVector2 size;
  992. bool sortChildren;
  993. String style;
  994. /* readonly */
  995. Array<String> tags;
  996. bool temporary;
  997. Texture texture;
  998. bool tiled;
  999. TraversalMode traversalMode;
  1000. /* readonly */
  1001. StringHash type;
  1002. /* readonly */
  1003. String typeName;
  1004. bool useDerivedOpacity;
  1005. /* readonly */
  1006. VariantMap vars;
  1007. VerticalAlignment verticalAlignment;
  1008. bool visible;
  1009. /* readonly */
  1010. bool visibleEffective;
  1011. /* readonly */
  1012. int weakRefs;
  1013. int width;
  1014. };
  1015. class BoundingBox
  1016. {
  1017. public:
  1018. BoundingBox();
  1019. BoundingBox(const BoundingBox&in);
  1020. BoundingBox(const Rect&in);
  1021. BoundingBox(const Vector3&in, const Vector3&in);
  1022. BoundingBox(float, float);
  1023. BoundingBox(const Frustum&in);
  1024. BoundingBox(const Polyhedron&in);
  1025. BoundingBox(const Sphere&in);
  1026. // Methods:
  1027. void Clear();
  1028. void Clip(const BoundingBox&);
  1029. void Define(const BoundingBox&);
  1030. void Define(const Frustum&);
  1031. void Define(const Polyhedron&);
  1032. void Define(const Sphere&);
  1033. void Define(const Vector3&);
  1034. void Define(const Vector3&, const Vector3&);
  1035. void Define(float, float);
  1036. bool Defined() const;
  1037. Intersection IsInside(const BoundingBox&) const;
  1038. Intersection IsInside(const Sphere&) const;
  1039. Intersection IsInside(const Vector3&) const;
  1040. Intersection IsInsideFast(const BoundingBox&) const;
  1041. Intersection IsInsideFast(const Sphere&) const;
  1042. void Merge(const BoundingBox&);
  1043. void Merge(const Frustum&);
  1044. void Merge(const Polyhedron&);
  1045. void Merge(const Sphere&);
  1046. void Merge(const Vector3&);
  1047. Rect Projected(const Matrix4&) const;
  1048. String ToString() const;
  1049. void Transform(const Matrix3&);
  1050. void Transform(const Matrix3x4&);
  1051. BoundingBox Transformed(const Matrix3&) const;
  1052. BoundingBox Transformed(const Matrix3x4&) const;
  1053. // Properties:
  1054. /* readonly */
  1055. Vector3 center;
  1056. /* readonly */
  1057. Vector3 halfSize;
  1058. Vector3 max;
  1059. Vector3 min;
  1060. /* readonly */
  1061. Vector3 size;
  1062. };
  1063. class Button
  1064. {
  1065. public:
  1066. Button();
  1067. Button(const String&in);
  1068. // Methods:
  1069. void AddChild(UIElement);
  1070. void AddTag(const String&);
  1071. void AddTags(const String&, int8 = ';');
  1072. void ApplyAttributes();
  1073. void BringToFront();
  1074. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1075. void DisableLayoutUpdate();
  1076. IntVector2 ElementToScreen(const IntVector2&);
  1077. void EnableLayoutUpdate();
  1078. uint FindChild(UIElement) const;
  1079. Variant GetAttribute(const String&) const;
  1080. ValueAnimation GetAttributeAnimation(const String&) const;
  1081. float GetAttributeAnimationSpeed(const String&) const;
  1082. float GetAttributeAnimationTime(const String&) const;
  1083. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1084. Variant GetAttributeDefault(const String&) const;
  1085. UIElement GetChild(const String&, bool = false) const;
  1086. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1087. Array<UIElement> GetChildren(bool = false) const;
  1088. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1089. UIElement GetElementEventSender() const;
  1090. bool GetInterceptNetworkUpdate(const String&) const;
  1091. uint GetNumChildren(bool) const;
  1092. bool HasSubscribedToEvent(Object, const String&);
  1093. bool HasSubscribedToEvent(const String&);
  1094. bool HasTag(const String&) const;
  1095. void InsertChild(uint, UIElement);
  1096. bool IsInside(IntVector2, bool);
  1097. bool IsInsideCombined(IntVector2, bool);
  1098. bool Load(File, bool = false);
  1099. bool Load(VectorBuffer&, bool = false);
  1100. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1101. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1102. bool LoadJSON(const JSONValue&, bool = false);
  1103. bool LoadXML(File);
  1104. bool LoadXML(VectorBuffer&);
  1105. bool LoadXML(XMLFile, XMLFile);
  1106. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1107. bool LoadXML(const XMLElement&, bool = false);
  1108. void MarkNetworkUpdate() const;
  1109. void Remove();
  1110. void RemoveAllChildren();
  1111. void RemoveAllTags();
  1112. void RemoveAttributeAnimation(const String&);
  1113. void RemoveChild(UIElement, uint = 0);
  1114. void RemoveChild(uint);
  1115. void RemoveInstanceDefault();
  1116. void RemoveObjectAnimation();
  1117. bool RemoveTag(const String&);
  1118. void ResetDeepEnabled();
  1119. void ResetToDefault();
  1120. bool Save(File) const;
  1121. bool Save(VectorBuffer&) const;
  1122. bool SaveJSON(JSONValue&) const;
  1123. bool SaveXML(File, const String& = "\t");
  1124. bool SaveXML(VectorBuffer&, const String& = "\t");
  1125. bool SaveXML(XMLElement&) const;
  1126. IntVector2 ScreenToElement(const IntVector2&);
  1127. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1128. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1129. void SetAnimationTime(float);
  1130. bool SetAttribute(const String&, const Variant&);
  1131. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1132. void SetAttributeAnimationSpeed(const String&, float);
  1133. void SetAttributeAnimationTime(const String&, float);
  1134. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1135. void SetDeepEnabled(bool);
  1136. void SetEnabledRecursive(bool);
  1137. void SetFixedHeight(int);
  1138. void SetFixedSize(int, int);
  1139. void SetFixedWidth(int);
  1140. void SetFullImageRect();
  1141. void SetHoverOffset(int, int);
  1142. void SetInterceptNetworkUpdate(const String&, bool);
  1143. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1144. void SetMaxAnchor(float, float);
  1145. void SetMaxSize(int, int);
  1146. void SetMinAnchor(float, float);
  1147. void SetMinSize(int, int);
  1148. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1149. void SetPivot(float, float);
  1150. void SetPosition(int, int);
  1151. void SetPressedChildOffset(int, int);
  1152. void SetPressedOffset(int, int);
  1153. void SetRepeat(float, float);
  1154. void SetSize(int, int);
  1155. bool SetStyle(const String&, XMLFile = null);
  1156. bool SetStyle(const XMLElement&);
  1157. bool SetStyleAuto(XMLFile = null);
  1158. void UpdateLayout();
  1159. const Variant& GetVar(const StringHash&);
  1160. // Properties:
  1161. bool animationEnabled;
  1162. /* readonly */
  1163. Array<Variant> attributeDefaults;
  1164. /* readonly */
  1165. Array<AttributeInfo> attributeInfos;
  1166. Array<Variant> attributes;
  1167. BlendMode blendMode;
  1168. IntRect border;
  1169. bool bringToBack;
  1170. bool bringToFront;
  1171. /* readonly */
  1172. String category;
  1173. /* readonly */
  1174. IntVector2 childOffset;
  1175. /* readonly */
  1176. Array<UIElement> children;
  1177. IntRect clipBorder;
  1178. bool clipChildren;
  1179. /* writeonly */
  1180. Color color;
  1181. /* readonly */
  1182. bool colorGradient;
  1183. Array<Color> colors;
  1184. /* readonly */
  1185. IntRect combinedScreenRect;
  1186. XMLFile defaultStyle;
  1187. /* readonly */
  1188. float derivedOpacity;
  1189. /* readonly */
  1190. uint dragButtonCombo;
  1191. /* readonly */
  1192. int dragButtonCount;
  1193. uint dragDropMode;
  1194. bool editable;
  1195. bool elementEventSender;
  1196. bool enableAnchor;
  1197. bool enabled;
  1198. /* readonly */
  1199. bool enabledSelf;
  1200. /* readonly */
  1201. bool fixedHeight;
  1202. /* readonly */
  1203. bool fixedSize;
  1204. /* readonly */
  1205. bool fixedWidth;
  1206. bool focus;
  1207. FocusMode focusMode;
  1208. int height;
  1209. HorizontalAlignment horizontalAlignment;
  1210. IntVector2 hoverOffset;
  1211. /* readonly */
  1212. bool hovering;
  1213. IntRect imageBorder;
  1214. IntRect imageRect;
  1215. int indent;
  1216. int indentSpacing;
  1217. /* readonly */
  1218. int indentWidth;
  1219. bool internal;
  1220. IntRect layoutBorder;
  1221. Vector2 layoutFlexScale;
  1222. LayoutMode layoutMode;
  1223. int layoutSpacing;
  1224. Vector2 maxAnchor;
  1225. int maxHeight;
  1226. IntVector2 maxOffset;
  1227. IntVector2 maxSize;
  1228. int maxWidth;
  1229. Vector2 minAnchor;
  1230. int minHeight;
  1231. IntVector2 minOffset;
  1232. IntVector2 minSize;
  1233. int minWidth;
  1234. String name;
  1235. /* readonly */
  1236. uint numAllChildren;
  1237. /* readonly */
  1238. uint numAttributes;
  1239. /* readonly */
  1240. uint numChildren;
  1241. ObjectAnimation objectAnimation;
  1242. float opacity;
  1243. UIElement parent;
  1244. Vector2 pivot;
  1245. IntVector2 position;
  1246. /* readonly */
  1247. bool pressed;
  1248. IntVector2 pressedChildOffset;
  1249. IntVector2 pressedOffset;
  1250. int priority;
  1251. /* readonly */
  1252. int refs;
  1253. float repeatDelay;
  1254. float repeatRate;
  1255. /* readonly */
  1256. UIElement root;
  1257. /* readonly */
  1258. IntVector2 screenPosition;
  1259. bool selected;
  1260. IntVector2 size;
  1261. bool sortChildren;
  1262. String style;
  1263. /* readonly */
  1264. Array<String> tags;
  1265. bool temporary;
  1266. Texture texture;
  1267. bool tiled;
  1268. TraversalMode traversalMode;
  1269. /* readonly */
  1270. StringHash type;
  1271. /* readonly */
  1272. String typeName;
  1273. bool useDerivedOpacity;
  1274. /* readonly */
  1275. VariantMap vars;
  1276. VerticalAlignment verticalAlignment;
  1277. bool visible;
  1278. /* readonly */
  1279. bool visibleEffective;
  1280. /* readonly */
  1281. int weakRefs;
  1282. int width;
  1283. };
  1284. class Camera
  1285. {
  1286. public:
  1287. // Methods:
  1288. void ApplyAttributes();
  1289. void DrawDebugGeometry(DebugRenderer, bool);
  1290. Variant GetAttribute(const String&) const;
  1291. ValueAnimation GetAttributeAnimation(const String&) const;
  1292. float GetAttributeAnimationSpeed(const String&) const;
  1293. float GetAttributeAnimationTime(const String&) const;
  1294. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1295. Variant GetAttributeDefault(const String&) const;
  1296. float GetDistance(const Vector3&) const;
  1297. float GetDistanceSquared(const Vector3&) const;
  1298. bool GetInterceptNetworkUpdate(const String&) const;
  1299. Ray GetScreenRay(float, float) const;
  1300. Frustum GetSplitFrustum(float, float) const;
  1301. bool HasSubscribedToEvent(Object, const String&);
  1302. bool HasSubscribedToEvent(const String&);
  1303. bool Load(File, bool = false);
  1304. bool Load(VectorBuffer&, bool = false);
  1305. bool LoadJSON(const JSONValue&, bool = false);
  1306. bool LoadXML(const XMLElement&, bool = false);
  1307. void MarkNetworkUpdate() const;
  1308. void Remove();
  1309. void RemoveAttributeAnimation(const String&);
  1310. void RemoveInstanceDefault();
  1311. void RemoveObjectAnimation();
  1312. void ResetToDefault();
  1313. bool Save(File) const;
  1314. bool Save(VectorBuffer&) const;
  1315. bool SaveJSON(JSONValue&) const;
  1316. bool SaveXML(XMLElement&) const;
  1317. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1318. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1319. void SetAnimationTime(float);
  1320. bool SetAttribute(const String&, const Variant&);
  1321. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1322. void SetAttributeAnimationSpeed(const String&, float);
  1323. void SetAttributeAnimationTime(const String&, float);
  1324. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1325. void SetInterceptNetworkUpdate(const String&, bool);
  1326. void SetOrthoSize(const Vector2&);
  1327. Vector2 WorldToScreenPoint(const Vector3&) const;
  1328. // Properties:
  1329. bool animationEnabled;
  1330. float aspectRatio;
  1331. /* readonly */
  1332. Array<Variant> attributeDefaults;
  1333. /* readonly */
  1334. Array<AttributeInfo> attributeInfos;
  1335. Array<Variant> attributes;
  1336. bool autoAspectRatio;
  1337. /* readonly */
  1338. String category;
  1339. Plane clipPlane;
  1340. /* readonly */
  1341. Matrix3x4 effectiveWorldTransform;
  1342. bool enabled;
  1343. /* readonly */
  1344. bool enabledEffective;
  1345. float farClip;
  1346. FillMode fillMode;
  1347. float fov;
  1348. /* readonly */
  1349. Frustum frustum;
  1350. /* readonly */
  1351. Matrix4 gpuProjection;
  1352. /* readonly */
  1353. float halfViewSize;
  1354. /* readonly */
  1355. uint id;
  1356. float lodBias;
  1357. float nearClip;
  1358. /* readonly */
  1359. Node node;
  1360. /* readonly */
  1361. uint numAttributes;
  1362. ObjectAnimation objectAnimation;
  1363. float orthoSize;
  1364. bool orthographic;
  1365. Matrix4 projection;
  1366. Vector2 projectionOffset;
  1367. Plane reflectionPlane;
  1368. /* readonly */
  1369. int refs;
  1370. bool temporary;
  1371. /* readonly */
  1372. StringHash type;
  1373. /* readonly */
  1374. String typeName;
  1375. bool useClipping;
  1376. bool useReflection;
  1377. /* readonly */
  1378. Matrix3x4 view;
  1379. uint viewMask;
  1380. uint viewOverrideFlags;
  1381. /* readonly */
  1382. Frustum viewSpaceFrustum;
  1383. /* readonly */
  1384. int weakRefs;
  1385. float zoom;
  1386. };
  1387. class CascadeParameters
  1388. {
  1389. public:
  1390. CascadeParameters();
  1391. CascadeParameters(const CascadeParameters&in);
  1392. CascadeParameters(float, float, float, float, float, float biasAutoAdjust = 1.0);
  1393. // Properties:
  1394. float biasAutoAdjust;
  1395. float fadeStart;
  1396. float split1;
  1397. float split2;
  1398. float split3;
  1399. float split4;
  1400. };
  1401. class CheckBox
  1402. {
  1403. public:
  1404. CheckBox();
  1405. CheckBox(const String&in);
  1406. // Methods:
  1407. void AddChild(UIElement);
  1408. void AddTag(const String&);
  1409. void AddTags(const String&, int8 = ';');
  1410. void ApplyAttributes();
  1411. void BringToFront();
  1412. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1413. void DisableLayoutUpdate();
  1414. IntVector2 ElementToScreen(const IntVector2&);
  1415. void EnableLayoutUpdate();
  1416. uint FindChild(UIElement) const;
  1417. Variant GetAttribute(const String&) const;
  1418. ValueAnimation GetAttributeAnimation(const String&) const;
  1419. float GetAttributeAnimationSpeed(const String&) const;
  1420. float GetAttributeAnimationTime(const String&) const;
  1421. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1422. Variant GetAttributeDefault(const String&) const;
  1423. UIElement GetChild(const String&, bool = false) const;
  1424. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1425. Array<UIElement> GetChildren(bool = false) const;
  1426. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1427. UIElement GetElementEventSender() const;
  1428. bool GetInterceptNetworkUpdate(const String&) const;
  1429. uint GetNumChildren(bool) const;
  1430. bool HasSubscribedToEvent(Object, const String&);
  1431. bool HasSubscribedToEvent(const String&);
  1432. bool HasTag(const String&) const;
  1433. void InsertChild(uint, UIElement);
  1434. bool IsInside(IntVector2, bool);
  1435. bool IsInsideCombined(IntVector2, bool);
  1436. bool Load(File, bool = false);
  1437. bool Load(VectorBuffer&, bool = false);
  1438. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1439. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1440. bool LoadJSON(const JSONValue&, bool = false);
  1441. bool LoadXML(File);
  1442. bool LoadXML(VectorBuffer&);
  1443. bool LoadXML(XMLFile, XMLFile);
  1444. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1445. bool LoadXML(const XMLElement&, bool = false);
  1446. void MarkNetworkUpdate() const;
  1447. void Remove();
  1448. void RemoveAllChildren();
  1449. void RemoveAllTags();
  1450. void RemoveAttributeAnimation(const String&);
  1451. void RemoveChild(UIElement, uint = 0);
  1452. void RemoveChild(uint);
  1453. void RemoveInstanceDefault();
  1454. void RemoveObjectAnimation();
  1455. bool RemoveTag(const String&);
  1456. void ResetDeepEnabled();
  1457. void ResetToDefault();
  1458. bool Save(File) const;
  1459. bool Save(VectorBuffer&) const;
  1460. bool SaveJSON(JSONValue&) const;
  1461. bool SaveXML(File, const String& = "\t");
  1462. bool SaveXML(VectorBuffer&, const String& = "\t");
  1463. bool SaveXML(XMLElement&) const;
  1464. IntVector2 ScreenToElement(const IntVector2&);
  1465. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1466. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1467. void SetAnimationTime(float);
  1468. bool SetAttribute(const String&, const Variant&);
  1469. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1470. void SetAttributeAnimationSpeed(const String&, float);
  1471. void SetAttributeAnimationTime(const String&, float);
  1472. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1473. void SetCheckedOffset(int, int);
  1474. void SetDeepEnabled(bool);
  1475. void SetEnabledRecursive(bool);
  1476. void SetFixedHeight(int);
  1477. void SetFixedSize(int, int);
  1478. void SetFixedWidth(int);
  1479. void SetFullImageRect();
  1480. void SetHoverOffset(int, int);
  1481. void SetInterceptNetworkUpdate(const String&, bool);
  1482. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1483. void SetMaxAnchor(float, float);
  1484. void SetMaxSize(int, int);
  1485. void SetMinAnchor(float, float);
  1486. void SetMinSize(int, int);
  1487. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1488. void SetPivot(float, float);
  1489. void SetPosition(int, int);
  1490. void SetSize(int, int);
  1491. bool SetStyle(const String&, XMLFile = null);
  1492. bool SetStyle(const XMLElement&);
  1493. bool SetStyleAuto(XMLFile = null);
  1494. void UpdateLayout();
  1495. const Variant& GetVar(const StringHash&);
  1496. // Properties:
  1497. bool animationEnabled;
  1498. /* readonly */
  1499. Array<Variant> attributeDefaults;
  1500. /* readonly */
  1501. Array<AttributeInfo> attributeInfos;
  1502. Array<Variant> attributes;
  1503. BlendMode blendMode;
  1504. IntRect border;
  1505. bool bringToBack;
  1506. bool bringToFront;
  1507. /* readonly */
  1508. String category;
  1509. bool checked;
  1510. IntVector2 checkedOffset;
  1511. /* readonly */
  1512. IntVector2 childOffset;
  1513. /* readonly */
  1514. Array<UIElement> children;
  1515. IntRect clipBorder;
  1516. bool clipChildren;
  1517. /* writeonly */
  1518. Color color;
  1519. /* readonly */
  1520. bool colorGradient;
  1521. Array<Color> colors;
  1522. /* readonly */
  1523. IntRect combinedScreenRect;
  1524. XMLFile defaultStyle;
  1525. /* readonly */
  1526. float derivedOpacity;
  1527. /* readonly */
  1528. uint dragButtonCombo;
  1529. /* readonly */
  1530. int dragButtonCount;
  1531. uint dragDropMode;
  1532. bool editable;
  1533. bool elementEventSender;
  1534. bool enableAnchor;
  1535. bool enabled;
  1536. /* readonly */
  1537. bool enabledSelf;
  1538. /* readonly */
  1539. bool fixedHeight;
  1540. /* readonly */
  1541. bool fixedSize;
  1542. /* readonly */
  1543. bool fixedWidth;
  1544. bool focus;
  1545. FocusMode focusMode;
  1546. int height;
  1547. HorizontalAlignment horizontalAlignment;
  1548. IntVector2 hoverOffset;
  1549. /* readonly */
  1550. bool hovering;
  1551. IntRect imageBorder;
  1552. IntRect imageRect;
  1553. int indent;
  1554. int indentSpacing;
  1555. /* readonly */
  1556. int indentWidth;
  1557. bool internal;
  1558. IntRect layoutBorder;
  1559. Vector2 layoutFlexScale;
  1560. LayoutMode layoutMode;
  1561. int layoutSpacing;
  1562. Vector2 maxAnchor;
  1563. int maxHeight;
  1564. IntVector2 maxOffset;
  1565. IntVector2 maxSize;
  1566. int maxWidth;
  1567. Vector2 minAnchor;
  1568. int minHeight;
  1569. IntVector2 minOffset;
  1570. IntVector2 minSize;
  1571. int minWidth;
  1572. String name;
  1573. /* readonly */
  1574. uint numAllChildren;
  1575. /* readonly */
  1576. uint numAttributes;
  1577. /* readonly */
  1578. uint numChildren;
  1579. ObjectAnimation objectAnimation;
  1580. float opacity;
  1581. UIElement parent;
  1582. Vector2 pivot;
  1583. IntVector2 position;
  1584. int priority;
  1585. /* readonly */
  1586. int refs;
  1587. /* readonly */
  1588. UIElement root;
  1589. /* readonly */
  1590. IntVector2 screenPosition;
  1591. bool selected;
  1592. IntVector2 size;
  1593. bool sortChildren;
  1594. String style;
  1595. /* readonly */
  1596. Array<String> tags;
  1597. bool temporary;
  1598. Texture texture;
  1599. bool tiled;
  1600. TraversalMode traversalMode;
  1601. /* readonly */
  1602. StringHash type;
  1603. /* readonly */
  1604. String typeName;
  1605. bool useDerivedOpacity;
  1606. /* readonly */
  1607. VariantMap vars;
  1608. VerticalAlignment verticalAlignment;
  1609. bool visible;
  1610. /* readonly */
  1611. bool visibleEffective;
  1612. /* readonly */
  1613. int weakRefs;
  1614. int width;
  1615. };
  1616. class CollisionBox2D
  1617. {
  1618. public:
  1619. // Methods:
  1620. void ApplyAttributes();
  1621. void DrawDebugGeometry(DebugRenderer, bool);
  1622. Variant GetAttribute(const String&) const;
  1623. ValueAnimation GetAttributeAnimation(const String&) const;
  1624. float GetAttributeAnimationSpeed(const String&) const;
  1625. float GetAttributeAnimationTime(const String&) const;
  1626. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1627. Variant GetAttributeDefault(const String&) const;
  1628. bool GetInterceptNetworkUpdate(const String&) const;
  1629. bool HasSubscribedToEvent(Object, const String&);
  1630. bool HasSubscribedToEvent(const String&);
  1631. bool Load(File, bool = false);
  1632. bool Load(VectorBuffer&, bool = false);
  1633. bool LoadJSON(const JSONValue&, bool = false);
  1634. bool LoadXML(const XMLElement&, bool = false);
  1635. void MarkNetworkUpdate() const;
  1636. void Remove();
  1637. void RemoveAttributeAnimation(const String&);
  1638. void RemoveInstanceDefault();
  1639. void RemoveObjectAnimation();
  1640. void ResetToDefault();
  1641. bool Save(File) const;
  1642. bool Save(VectorBuffer&) const;
  1643. bool SaveJSON(JSONValue&) const;
  1644. bool SaveXML(XMLElement&) const;
  1645. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1646. void SetAnimationTime(float);
  1647. bool SetAttribute(const String&, const Variant&);
  1648. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1649. void SetAttributeAnimationSpeed(const String&, float);
  1650. void SetAttributeAnimationTime(const String&, float);
  1651. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1652. void SetCenter(float, float);
  1653. void SetInterceptNetworkUpdate(const String&, bool);
  1654. void SetSize(float, float);
  1655. // Properties:
  1656. float angle;
  1657. bool animationEnabled;
  1658. /* readonly */
  1659. Array<Variant> attributeDefaults;
  1660. /* readonly */
  1661. Array<AttributeInfo> attributeInfos;
  1662. Array<Variant> attributes;
  1663. /* readonly */
  1664. String category;
  1665. int categoryBits;
  1666. Vector2 center;
  1667. float density;
  1668. bool enabled;
  1669. /* readonly */
  1670. bool enabledEffective;
  1671. float friction;
  1672. int groupIndex;
  1673. /* readonly */
  1674. uint id;
  1675. /* readonly */
  1676. float inertia;
  1677. int maskBits;
  1678. /* readonly */
  1679. float mass;
  1680. /* readonly */
  1681. Vector2 massCenter;
  1682. /* readonly */
  1683. Node node;
  1684. /* readonly */
  1685. uint numAttributes;
  1686. ObjectAnimation objectAnimation;
  1687. /* readonly */
  1688. int refs;
  1689. float restitution;
  1690. Vector2 size;
  1691. bool temporary;
  1692. bool trigger;
  1693. /* readonly */
  1694. StringHash type;
  1695. /* readonly */
  1696. String typeName;
  1697. /* readonly */
  1698. int weakRefs;
  1699. };
  1700. class CollisionChain2D
  1701. {
  1702. public:
  1703. // Methods:
  1704. void ApplyAttributes();
  1705. void DrawDebugGeometry(DebugRenderer, bool);
  1706. Variant GetAttribute(const String&) const;
  1707. ValueAnimation GetAttributeAnimation(const String&) const;
  1708. float GetAttributeAnimationSpeed(const String&) const;
  1709. float GetAttributeAnimationTime(const String&) const;
  1710. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1711. Variant GetAttributeDefault(const String&) const;
  1712. bool GetInterceptNetworkUpdate(const String&) const;
  1713. Array<Vector2> GetVertices() const;
  1714. bool HasSubscribedToEvent(Object, const String&);
  1715. bool HasSubscribedToEvent(const String&);
  1716. bool Load(File, bool = false);
  1717. bool Load(VectorBuffer&, bool = false);
  1718. bool LoadJSON(const JSONValue&, bool = false);
  1719. bool LoadXML(const XMLElement&, bool = false);
  1720. void MarkNetworkUpdate() const;
  1721. void Remove();
  1722. void RemoveAttributeAnimation(const String&);
  1723. void RemoveInstanceDefault();
  1724. void RemoveObjectAnimation();
  1725. void ResetToDefault();
  1726. bool Save(File) const;
  1727. bool Save(VectorBuffer&) const;
  1728. bool SaveJSON(JSONValue&) const;
  1729. bool SaveXML(XMLElement&) const;
  1730. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1731. void SetAnimationTime(float);
  1732. bool SetAttribute(const String&, const Variant&);
  1733. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1734. void SetAttributeAnimationSpeed(const String&, float);
  1735. void SetAttributeAnimationTime(const String&, float);
  1736. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1737. void SetInterceptNetworkUpdate(const String&, bool);
  1738. void SetVertex(uint, const Vector2&);
  1739. void SetVertices(Array<Vector2>);
  1740. const Vector2& GetVertex(uint) const;
  1741. // Properties:
  1742. bool animationEnabled;
  1743. /* readonly */
  1744. Array<Variant> attributeDefaults;
  1745. /* readonly */
  1746. Array<AttributeInfo> attributeInfos;
  1747. Array<Variant> attributes;
  1748. /* readonly */
  1749. String category;
  1750. int categoryBits;
  1751. float density;
  1752. bool enabled;
  1753. /* readonly */
  1754. bool enabledEffective;
  1755. float friction;
  1756. int groupIndex;
  1757. /* readonly */
  1758. uint id;
  1759. /* readonly */
  1760. float inertia;
  1761. bool loop;
  1762. int maskBits;
  1763. /* readonly */
  1764. float mass;
  1765. /* readonly */
  1766. Vector2 massCenter;
  1767. /* readonly */
  1768. Node node;
  1769. /* readonly */
  1770. uint numAttributes;
  1771. ObjectAnimation objectAnimation;
  1772. /* readonly */
  1773. int refs;
  1774. float restitution;
  1775. bool temporary;
  1776. bool trigger;
  1777. /* readonly */
  1778. StringHash type;
  1779. /* readonly */
  1780. String typeName;
  1781. uint vertexCount;
  1782. /* readonly */
  1783. int weakRefs;
  1784. };
  1785. class CollisionCircle2D
  1786. {
  1787. public:
  1788. // Methods:
  1789. void ApplyAttributes();
  1790. void DrawDebugGeometry(DebugRenderer, bool);
  1791. Variant GetAttribute(const String&) const;
  1792. ValueAnimation GetAttributeAnimation(const String&) const;
  1793. float GetAttributeAnimationSpeed(const String&) const;
  1794. float GetAttributeAnimationTime(const String&) const;
  1795. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1796. Variant GetAttributeDefault(const String&) const;
  1797. bool GetInterceptNetworkUpdate(const String&) const;
  1798. bool HasSubscribedToEvent(Object, const String&);
  1799. bool HasSubscribedToEvent(const String&);
  1800. bool Load(File, bool = false);
  1801. bool Load(VectorBuffer&, bool = false);
  1802. bool LoadJSON(const JSONValue&, bool = false);
  1803. bool LoadXML(const XMLElement&, bool = false);
  1804. void MarkNetworkUpdate() const;
  1805. void Remove();
  1806. void RemoveAttributeAnimation(const String&);
  1807. void RemoveInstanceDefault();
  1808. void RemoveObjectAnimation();
  1809. void ResetToDefault();
  1810. bool Save(File) const;
  1811. bool Save(VectorBuffer&) const;
  1812. bool SaveJSON(JSONValue&) const;
  1813. bool SaveXML(XMLElement&) const;
  1814. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1815. void SetAnimationTime(float);
  1816. bool SetAttribute(const String&, const Variant&);
  1817. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1818. void SetAttributeAnimationSpeed(const String&, float);
  1819. void SetAttributeAnimationTime(const String&, float);
  1820. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1821. void SetCenter(float, float);
  1822. void SetInterceptNetworkUpdate(const String&, bool);
  1823. // Properties:
  1824. bool animationEnabled;
  1825. /* readonly */
  1826. Array<Variant> attributeDefaults;
  1827. /* readonly */
  1828. Array<AttributeInfo> attributeInfos;
  1829. Array<Variant> attributes;
  1830. /* readonly */
  1831. String category;
  1832. int categoryBits;
  1833. Vector2 center;
  1834. float density;
  1835. bool enabled;
  1836. /* readonly */
  1837. bool enabledEffective;
  1838. float friction;
  1839. int groupIndex;
  1840. /* readonly */
  1841. uint id;
  1842. /* readonly */
  1843. float inertia;
  1844. int maskBits;
  1845. /* readonly */
  1846. float mass;
  1847. /* readonly */
  1848. Vector2 massCenter;
  1849. /* readonly */
  1850. Node node;
  1851. /* readonly */
  1852. uint numAttributes;
  1853. ObjectAnimation objectAnimation;
  1854. float radius;
  1855. /* readonly */
  1856. int refs;
  1857. float restitution;
  1858. bool temporary;
  1859. bool trigger;
  1860. /* readonly */
  1861. StringHash type;
  1862. /* readonly */
  1863. String typeName;
  1864. /* readonly */
  1865. int weakRefs;
  1866. };
  1867. class CollisionEdge2D
  1868. {
  1869. public:
  1870. // Methods:
  1871. void ApplyAttributes();
  1872. void DrawDebugGeometry(DebugRenderer, bool);
  1873. Variant GetAttribute(const String&) const;
  1874. ValueAnimation GetAttributeAnimation(const String&) const;
  1875. float GetAttributeAnimationSpeed(const String&) const;
  1876. float GetAttributeAnimationTime(const String&) const;
  1877. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1878. Variant GetAttributeDefault(const String&) const;
  1879. bool GetInterceptNetworkUpdate(const String&) const;
  1880. bool HasSubscribedToEvent(Object, const String&);
  1881. bool HasSubscribedToEvent(const String&);
  1882. bool Load(File, bool = false);
  1883. bool Load(VectorBuffer&, bool = false);
  1884. bool LoadJSON(const JSONValue&, bool = false);
  1885. bool LoadXML(const XMLElement&, bool = false);
  1886. void MarkNetworkUpdate() const;
  1887. void Remove();
  1888. void RemoveAttributeAnimation(const String&);
  1889. void RemoveInstanceDefault();
  1890. void RemoveObjectAnimation();
  1891. void ResetToDefault();
  1892. bool Save(File) const;
  1893. bool Save(VectorBuffer&) const;
  1894. bool SaveJSON(JSONValue&) const;
  1895. bool SaveXML(XMLElement&) const;
  1896. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1897. void SetAnimationTime(float);
  1898. bool SetAttribute(const String&, const Variant&);
  1899. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1900. void SetAttributeAnimationSpeed(const String&, float);
  1901. void SetAttributeAnimationTime(const String&, float);
  1902. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1903. void SetInterceptNetworkUpdate(const String&, bool);
  1904. void SetVertices(const Vector2&, const Vector2&);
  1905. // Properties:
  1906. bool animationEnabled;
  1907. /* readonly */
  1908. Array<Variant> attributeDefaults;
  1909. /* readonly */
  1910. Array<AttributeInfo> attributeInfos;
  1911. Array<Variant> attributes;
  1912. /* readonly */
  1913. String category;
  1914. int categoryBits;
  1915. float density;
  1916. bool enabled;
  1917. /* readonly */
  1918. bool enabledEffective;
  1919. float friction;
  1920. int groupIndex;
  1921. /* readonly */
  1922. uint id;
  1923. /* readonly */
  1924. float inertia;
  1925. int maskBits;
  1926. /* readonly */
  1927. float mass;
  1928. /* readonly */
  1929. Vector2 massCenter;
  1930. /* readonly */
  1931. Node node;
  1932. /* readonly */
  1933. uint numAttributes;
  1934. ObjectAnimation objectAnimation;
  1935. /* readonly */
  1936. int refs;
  1937. float restitution;
  1938. bool temporary;
  1939. bool trigger;
  1940. /* readonly */
  1941. StringHash type;
  1942. /* readonly */
  1943. String typeName;
  1944. Vector2 vertex1;
  1945. Vector2 vertex2;
  1946. /* readonly */
  1947. int weakRefs;
  1948. };
  1949. class CollisionPolygon2D
  1950. {
  1951. public:
  1952. // Methods:
  1953. void ApplyAttributes();
  1954. void DrawDebugGeometry(DebugRenderer, bool);
  1955. Variant GetAttribute(const String&) const;
  1956. ValueAnimation GetAttributeAnimation(const String&) const;
  1957. float GetAttributeAnimationSpeed(const String&) const;
  1958. float GetAttributeAnimationTime(const String&) const;
  1959. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1960. Variant GetAttributeDefault(const String&) const;
  1961. bool GetInterceptNetworkUpdate(const String&) const;
  1962. Array<Vector2> GetVertices() const;
  1963. bool HasSubscribedToEvent(Object, const String&);
  1964. bool HasSubscribedToEvent(const String&);
  1965. bool Load(File, bool = false);
  1966. bool Load(VectorBuffer&, bool = false);
  1967. bool LoadJSON(const JSONValue&, bool = false);
  1968. bool LoadXML(const XMLElement&, bool = false);
  1969. void MarkNetworkUpdate() const;
  1970. void Remove();
  1971. void RemoveAttributeAnimation(const String&);
  1972. void RemoveInstanceDefault();
  1973. void RemoveObjectAnimation();
  1974. void ResetToDefault();
  1975. bool Save(File) const;
  1976. bool Save(VectorBuffer&) const;
  1977. bool SaveJSON(JSONValue&) const;
  1978. bool SaveXML(XMLElement&) const;
  1979. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1980. void SetAnimationTime(float);
  1981. bool SetAttribute(const String&, const Variant&);
  1982. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1983. void SetAttributeAnimationSpeed(const String&, float);
  1984. void SetAttributeAnimationTime(const String&, float);
  1985. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1986. void SetInterceptNetworkUpdate(const String&, bool);
  1987. void SetVertex(uint, const Vector2&);
  1988. void SetVertices(Array<Vector2>);
  1989. const Vector2& GetVertex(uint) const;
  1990. // Properties:
  1991. bool animationEnabled;
  1992. /* readonly */
  1993. Array<Variant> attributeDefaults;
  1994. /* readonly */
  1995. Array<AttributeInfo> attributeInfos;
  1996. Array<Variant> attributes;
  1997. /* readonly */
  1998. String category;
  1999. int categoryBits;
  2000. float density;
  2001. bool enabled;
  2002. /* readonly */
  2003. bool enabledEffective;
  2004. float friction;
  2005. int groupIndex;
  2006. /* readonly */
  2007. uint id;
  2008. /* readonly */
  2009. float inertia;
  2010. int maskBits;
  2011. /* readonly */
  2012. float mass;
  2013. /* readonly */
  2014. Vector2 massCenter;
  2015. /* readonly */
  2016. Node node;
  2017. /* readonly */
  2018. uint numAttributes;
  2019. ObjectAnimation objectAnimation;
  2020. /* readonly */
  2021. int refs;
  2022. float restitution;
  2023. bool temporary;
  2024. bool trigger;
  2025. /* readonly */
  2026. StringHash type;
  2027. /* readonly */
  2028. String typeName;
  2029. uint vertexCount;
  2030. /* readonly */
  2031. int weakRefs;
  2032. };
  2033. class CollisionShape
  2034. {
  2035. public:
  2036. // Methods:
  2037. void ApplyAttributes();
  2038. void DrawDebugGeometry(DebugRenderer, bool);
  2039. Variant GetAttribute(const String&) const;
  2040. ValueAnimation GetAttributeAnimation(const String&) const;
  2041. float GetAttributeAnimationSpeed(const String&) const;
  2042. float GetAttributeAnimationTime(const String&) const;
  2043. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2044. Variant GetAttributeDefault(const String&) const;
  2045. bool GetInterceptNetworkUpdate(const String&) const;
  2046. bool HasSubscribedToEvent(Object, const String&);
  2047. bool HasSubscribedToEvent(const String&);
  2048. bool Load(File, bool = false);
  2049. bool Load(VectorBuffer&, bool = false);
  2050. bool LoadJSON(const JSONValue&, bool = false);
  2051. bool LoadXML(const XMLElement&, bool = false);
  2052. void MarkNetworkUpdate() const;
  2053. void Remove();
  2054. void RemoveAttributeAnimation(const String&);
  2055. void RemoveInstanceDefault();
  2056. void RemoveObjectAnimation();
  2057. void ResetToDefault();
  2058. bool Save(File) const;
  2059. bool Save(VectorBuffer&) const;
  2060. bool SaveJSON(JSONValue&) const;
  2061. bool SaveXML(XMLElement&) const;
  2062. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2063. void SetAnimationTime(float);
  2064. bool SetAttribute(const String&, const Variant&);
  2065. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2066. void SetAttributeAnimationSpeed(const String&, float);
  2067. void SetAttributeAnimationTime(const String&, float);
  2068. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2069. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2070. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2071. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2072. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2073. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2074. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2075. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2076. void SetInterceptNetworkUpdate(const String&, bool);
  2077. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2078. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2079. void SetTerrain(uint = 0);
  2080. void SetTransform(const Vector3&, const Quaternion&);
  2081. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2082. // Properties:
  2083. bool animationEnabled;
  2084. /* readonly */
  2085. Array<Variant> attributeDefaults;
  2086. /* readonly */
  2087. Array<AttributeInfo> attributeInfos;
  2088. Array<Variant> attributes;
  2089. /* readonly */
  2090. String category;
  2091. bool enabled;
  2092. /* readonly */
  2093. bool enabledEffective;
  2094. /* readonly */
  2095. uint id;
  2096. uint lodLevel;
  2097. float margin;
  2098. Model model;
  2099. /* readonly */
  2100. Node node;
  2101. /* readonly */
  2102. uint numAttributes;
  2103. ObjectAnimation objectAnimation;
  2104. Vector3 position;
  2105. /* readonly */
  2106. int refs;
  2107. Quaternion rotation;
  2108. ShapeType shapeType;
  2109. Vector3 size;
  2110. bool temporary;
  2111. /* readonly */
  2112. StringHash type;
  2113. /* readonly */
  2114. String typeName;
  2115. /* readonly */
  2116. int weakRefs;
  2117. /* readonly */
  2118. BoundingBox worldBoundingBox;
  2119. };
  2120. class CollisionShape2D
  2121. {
  2122. public:
  2123. // Methods:
  2124. void ApplyAttributes();
  2125. void DrawDebugGeometry(DebugRenderer, bool);
  2126. Variant GetAttribute(const String&) const;
  2127. ValueAnimation GetAttributeAnimation(const String&) const;
  2128. float GetAttributeAnimationSpeed(const String&) const;
  2129. float GetAttributeAnimationTime(const String&) const;
  2130. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2131. Variant GetAttributeDefault(const String&) const;
  2132. bool GetInterceptNetworkUpdate(const String&) const;
  2133. bool HasSubscribedToEvent(Object, const String&);
  2134. bool HasSubscribedToEvent(const String&);
  2135. bool Load(File, bool = false);
  2136. bool Load(VectorBuffer&, bool = false);
  2137. bool LoadJSON(const JSONValue&, bool = false);
  2138. bool LoadXML(const XMLElement&, bool = false);
  2139. void MarkNetworkUpdate() const;
  2140. void Remove();
  2141. void RemoveAttributeAnimation(const String&);
  2142. void RemoveInstanceDefault();
  2143. void RemoveObjectAnimation();
  2144. void ResetToDefault();
  2145. bool Save(File) const;
  2146. bool Save(VectorBuffer&) const;
  2147. bool SaveJSON(JSONValue&) const;
  2148. bool SaveXML(XMLElement&) const;
  2149. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2150. void SetAnimationTime(float);
  2151. bool SetAttribute(const String&, const Variant&);
  2152. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2153. void SetAttributeAnimationSpeed(const String&, float);
  2154. void SetAttributeAnimationTime(const String&, float);
  2155. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2156. void SetInterceptNetworkUpdate(const String&, bool);
  2157. // Properties:
  2158. bool animationEnabled;
  2159. /* readonly */
  2160. Array<Variant> attributeDefaults;
  2161. /* readonly */
  2162. Array<AttributeInfo> attributeInfos;
  2163. Array<Variant> attributes;
  2164. /* readonly */
  2165. String category;
  2166. int categoryBits;
  2167. float density;
  2168. bool enabled;
  2169. /* readonly */
  2170. bool enabledEffective;
  2171. float friction;
  2172. int groupIndex;
  2173. /* readonly */
  2174. uint id;
  2175. /* readonly */
  2176. float inertia;
  2177. int maskBits;
  2178. /* readonly */
  2179. float mass;
  2180. /* readonly */
  2181. Vector2 massCenter;
  2182. /* readonly */
  2183. Node node;
  2184. /* readonly */
  2185. uint numAttributes;
  2186. ObjectAnimation objectAnimation;
  2187. /* readonly */
  2188. int refs;
  2189. float restitution;
  2190. bool temporary;
  2191. bool trigger;
  2192. /* readonly */
  2193. StringHash type;
  2194. /* readonly */
  2195. String typeName;
  2196. /* readonly */
  2197. int weakRefs;
  2198. };
  2199. class Color
  2200. {
  2201. public:
  2202. Color();
  2203. Color(const Color&in);
  2204. Color(float, float, float, float);
  2205. Color(float, float, float);
  2206. Color(float[]&inout);
  2207. // Methods:
  2208. Color Abs() const;
  2209. float Average() const;
  2210. float Chroma() const;
  2211. void Clip(bool);
  2212. bool Equals() const;
  2213. void FromHSL(float, float, float, float);
  2214. void FromHSV(float, float, float, float);
  2215. float Hue() const;
  2216. void Invert(bool);
  2217. Color Lerp(const Color&, float) const;
  2218. float Lightness() const;
  2219. float Luma() const;
  2220. float MaxRGB() const;
  2221. float MinRGB() const;
  2222. float Range() const;
  2223. float SaturationHSL() const;
  2224. float SaturationHSV() const;
  2225. float SumRGB() const;
  2226. Vector3 ToHSL() const;
  2227. Vector3 ToHSV() const;
  2228. String ToString() const;
  2229. uint ToUInt() const;
  2230. float Value() const;
  2231. // Properties:
  2232. float a;
  2233. float b;
  2234. /* readonly */
  2235. Array<float> data;
  2236. float g;
  2237. float r;
  2238. /* readonly */
  2239. Vector3 rgb;
  2240. /* readonly */
  2241. Vector4 rgba;
  2242. };
  2243. class ColorFrame
  2244. {
  2245. public:
  2246. // Properties:
  2247. Color color;
  2248. float time;
  2249. };
  2250. class Component
  2251. {
  2252. public:
  2253. // Methods:
  2254. void ApplyAttributes();
  2255. void DrawDebugGeometry(DebugRenderer, bool);
  2256. Variant GetAttribute(const String&) const;
  2257. ValueAnimation GetAttributeAnimation(const String&) const;
  2258. float GetAttributeAnimationSpeed(const String&) const;
  2259. float GetAttributeAnimationTime(const String&) const;
  2260. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2261. Variant GetAttributeDefault(const String&) const;
  2262. bool GetInterceptNetworkUpdate(const String&) const;
  2263. bool HasSubscribedToEvent(Object, const String&);
  2264. bool HasSubscribedToEvent(const String&);
  2265. bool Load(File, bool = false);
  2266. bool Load(VectorBuffer&, bool = false);
  2267. bool LoadJSON(const JSONValue&, bool = false);
  2268. bool LoadXML(const XMLElement&, bool = false);
  2269. void MarkNetworkUpdate() const;
  2270. void Remove();
  2271. void RemoveAttributeAnimation(const String&);
  2272. void RemoveInstanceDefault();
  2273. void RemoveObjectAnimation();
  2274. void ResetToDefault();
  2275. bool Save(File) const;
  2276. bool Save(VectorBuffer&) const;
  2277. bool SaveJSON(JSONValue&) const;
  2278. bool SaveXML(XMLElement&) const;
  2279. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2280. void SetAnimationTime(float);
  2281. bool SetAttribute(const String&, const Variant&);
  2282. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2283. void SetAttributeAnimationSpeed(const String&, float);
  2284. void SetAttributeAnimationTime(const String&, float);
  2285. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2286. void SetInterceptNetworkUpdate(const String&, bool);
  2287. // Properties:
  2288. bool animationEnabled;
  2289. /* readonly */
  2290. Array<Variant> attributeDefaults;
  2291. /* readonly */
  2292. Array<AttributeInfo> attributeInfos;
  2293. Array<Variant> attributes;
  2294. /* readonly */
  2295. String category;
  2296. bool enabled;
  2297. /* readonly */
  2298. bool enabledEffective;
  2299. /* readonly */
  2300. uint id;
  2301. /* readonly */
  2302. Node node;
  2303. /* readonly */
  2304. uint numAttributes;
  2305. ObjectAnimation objectAnimation;
  2306. /* readonly */
  2307. int refs;
  2308. bool temporary;
  2309. /* readonly */
  2310. StringHash type;
  2311. /* readonly */
  2312. String typeName;
  2313. /* readonly */
  2314. int weakRefs;
  2315. };
  2316. class Connection
  2317. {
  2318. public:
  2319. // Methods:
  2320. void Disconnect(int = 0);
  2321. bool HasSubscribedToEvent(Object, const String&);
  2322. bool HasSubscribedToEvent(const String&);
  2323. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2324. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2325. void SendPackageToClient(PackageFile);
  2326. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2327. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2328. String ToString() const;
  2329. // Properties:
  2330. /* readonly */
  2331. String address;
  2332. /* readonly */
  2333. float bytesInPerSec;
  2334. /* readonly */
  2335. float bytesOutPerSec;
  2336. /* readonly */
  2337. String category;
  2338. /* readonly */
  2339. bool client;
  2340. /* readonly */
  2341. bool connectPending;
  2342. /* readonly */
  2343. bool connected;
  2344. Controls controls;
  2345. /* readonly */
  2346. String downloadName;
  2347. /* readonly */
  2348. float downloadProgress;
  2349. VariantMap identity;
  2350. /* readonly */
  2351. float lastHeardTime;
  2352. bool logStatistics;
  2353. /* readonly */
  2354. uint numDownloads;
  2355. /* readonly */
  2356. float packetsInPerSec;
  2357. /* readonly */
  2358. float packetsOutPerSec;
  2359. /* readonly */
  2360. uint16 port;
  2361. Vector3 position;
  2362. /* readonly */
  2363. int refs;
  2364. Quaternion rotation;
  2365. /* readonly */
  2366. float roundTripTime;
  2367. Scene scene;
  2368. /* readonly */
  2369. bool sceneLoaded;
  2370. uint8 timeStamp;
  2371. /* readonly */
  2372. StringHash type;
  2373. /* readonly */
  2374. String typeName;
  2375. /* readonly */
  2376. int weakRefs;
  2377. };
  2378. class Console
  2379. {
  2380. public:
  2381. // Methods:
  2382. void AddAutoComplete(const String&);
  2383. void CopySelectedRows() const;
  2384. bool HasSubscribedToEvent(Object, const String&);
  2385. bool HasSubscribedToEvent(const String&);
  2386. void RemoveAutoComplete(const String&);
  2387. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2388. void Toggle();
  2389. void UpdateElements();
  2390. // Properties:
  2391. bool autoVisibleOnError;
  2392. /* readonly */
  2393. BorderImage background;
  2394. /* readonly */
  2395. String category;
  2396. /* readonly */
  2397. Button closeButton;
  2398. String commandInterpreter;
  2399. XMLFile defaultStyle;
  2400. bool focusOnShow;
  2401. /* readonly */
  2402. uint historyPosition;
  2403. /* readonly */
  2404. Array<String> historyRow;
  2405. /* readonly */
  2406. LineEdit lineEdit;
  2407. uint numBufferedRows;
  2408. uint numHistoryRows;
  2409. uint numRows;
  2410. /* readonly */
  2411. int refs;
  2412. /* readonly */
  2413. StringHash type;
  2414. /* readonly */
  2415. String typeName;
  2416. bool visible;
  2417. /* readonly */
  2418. int weakRefs;
  2419. };
  2420. class Constraint
  2421. {
  2422. public:
  2423. // Methods:
  2424. void ApplyAttributes();
  2425. void DrawDebugGeometry(DebugRenderer, bool);
  2426. Variant GetAttribute(const String&) const;
  2427. ValueAnimation GetAttributeAnimation(const String&) const;
  2428. float GetAttributeAnimationSpeed(const String&) const;
  2429. float GetAttributeAnimationTime(const String&) const;
  2430. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2431. Variant GetAttributeDefault(const String&) const;
  2432. bool GetInterceptNetworkUpdate(const String&) const;
  2433. bool HasSubscribedToEvent(Object, const String&);
  2434. bool HasSubscribedToEvent(const String&);
  2435. bool Load(File, bool = false);
  2436. bool Load(VectorBuffer&, bool = false);
  2437. bool LoadJSON(const JSONValue&, bool = false);
  2438. bool LoadXML(const XMLElement&, bool = false);
  2439. void MarkNetworkUpdate() const;
  2440. void Remove();
  2441. void RemoveAttributeAnimation(const String&);
  2442. void RemoveInstanceDefault();
  2443. void RemoveObjectAnimation();
  2444. void ResetToDefault();
  2445. bool Save(File) const;
  2446. bool Save(VectorBuffer&) const;
  2447. bool SaveJSON(JSONValue&) const;
  2448. bool SaveXML(XMLElement&) const;
  2449. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2450. void SetAnimationTime(float);
  2451. bool SetAttribute(const String&, const Variant&);
  2452. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2453. void SetAttributeAnimationSpeed(const String&, float);
  2454. void SetAttributeAnimationTime(const String&, float);
  2455. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2456. void SetInterceptNetworkUpdate(const String&, bool);
  2457. // Properties:
  2458. bool animationEnabled;
  2459. /* readonly */
  2460. Array<Variant> attributeDefaults;
  2461. /* readonly */
  2462. Array<AttributeInfo> attributeInfos;
  2463. Array<Variant> attributes;
  2464. /* writeonly */
  2465. Vector3 axis;
  2466. /* readonly */
  2467. String category;
  2468. float cfm;
  2469. ConstraintType constraintType;
  2470. bool disableCollision;
  2471. bool enabled;
  2472. /* readonly */
  2473. bool enabledEffective;
  2474. float erp;
  2475. Vector2 highLimit;
  2476. /* readonly */
  2477. uint id;
  2478. Vector2 lowLimit;
  2479. /* readonly */
  2480. Node node;
  2481. /* readonly */
  2482. uint numAttributes;
  2483. ObjectAnimation objectAnimation;
  2484. /* writeonly */
  2485. Vector3 otherAxis;
  2486. RigidBody otherBody;
  2487. Vector3 otherPosition;
  2488. Quaternion otherRotation;
  2489. /* readonly */
  2490. RigidBody ownBody;
  2491. Vector3 position;
  2492. /* readonly */
  2493. int refs;
  2494. Quaternion rotation;
  2495. bool temporary;
  2496. /* readonly */
  2497. StringHash type;
  2498. /* readonly */
  2499. String typeName;
  2500. /* readonly */
  2501. int weakRefs;
  2502. Vector3 worldPosition;
  2503. };
  2504. class Constraint2D
  2505. {
  2506. public:
  2507. // Methods:
  2508. void ApplyAttributes();
  2509. void DrawDebugGeometry(DebugRenderer, bool);
  2510. Variant GetAttribute(const String&) const;
  2511. ValueAnimation GetAttributeAnimation(const String&) const;
  2512. float GetAttributeAnimationSpeed(const String&) const;
  2513. float GetAttributeAnimationTime(const String&) const;
  2514. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2515. Variant GetAttributeDefault(const String&) const;
  2516. bool GetInterceptNetworkUpdate(const String&) const;
  2517. bool HasSubscribedToEvent(Object, const String&);
  2518. bool HasSubscribedToEvent(const String&);
  2519. bool Load(File, bool = false);
  2520. bool Load(VectorBuffer&, bool = false);
  2521. bool LoadJSON(const JSONValue&, bool = false);
  2522. bool LoadXML(const XMLElement&, bool = false);
  2523. void MarkNetworkUpdate() const;
  2524. void Remove();
  2525. void RemoveAttributeAnimation(const String&);
  2526. void RemoveInstanceDefault();
  2527. void RemoveObjectAnimation();
  2528. void ResetToDefault();
  2529. bool Save(File) const;
  2530. bool Save(VectorBuffer&) const;
  2531. bool SaveJSON(JSONValue&) const;
  2532. bool SaveXML(XMLElement&) const;
  2533. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2534. void SetAnimationTime(float);
  2535. bool SetAttribute(const String&, const Variant&);
  2536. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2537. void SetAttributeAnimationSpeed(const String&, float);
  2538. void SetAttributeAnimationTime(const String&, float);
  2539. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2540. void SetInterceptNetworkUpdate(const String&, bool);
  2541. // Properties:
  2542. bool animationEnabled;
  2543. /* readonly */
  2544. Array<Variant> attributeDefaults;
  2545. /* readonly */
  2546. Array<AttributeInfo> attributeInfos;
  2547. Array<Variant> attributes;
  2548. /* readonly */
  2549. String category;
  2550. bool collideConnected;
  2551. bool enabled;
  2552. /* readonly */
  2553. bool enabledEffective;
  2554. /* readonly */
  2555. uint id;
  2556. /* readonly */
  2557. Node node;
  2558. /* readonly */
  2559. uint numAttributes;
  2560. ObjectAnimation objectAnimation;
  2561. RigidBody2D otherBody;
  2562. /* readonly */
  2563. RigidBody2D ownerBody;
  2564. /* readonly */
  2565. int refs;
  2566. bool temporary;
  2567. /* readonly */
  2568. StringHash type;
  2569. /* readonly */
  2570. String typeName;
  2571. /* readonly */
  2572. int weakRefs;
  2573. };
  2574. class ConstraintDistance2D
  2575. {
  2576. public:
  2577. // Methods:
  2578. void ApplyAttributes();
  2579. void DrawDebugGeometry(DebugRenderer, bool);
  2580. Variant GetAttribute(const String&) const;
  2581. ValueAnimation GetAttributeAnimation(const String&) const;
  2582. float GetAttributeAnimationSpeed(const String&) const;
  2583. float GetAttributeAnimationTime(const String&) const;
  2584. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2585. Variant GetAttributeDefault(const String&) const;
  2586. bool GetInterceptNetworkUpdate(const String&) const;
  2587. bool HasSubscribedToEvent(Object, const String&);
  2588. bool HasSubscribedToEvent(const String&);
  2589. bool Load(File, bool = false);
  2590. bool Load(VectorBuffer&, bool = false);
  2591. bool LoadJSON(const JSONValue&, bool = false);
  2592. bool LoadXML(const XMLElement&, bool = false);
  2593. void MarkNetworkUpdate() const;
  2594. void Remove();
  2595. void RemoveAttributeAnimation(const String&);
  2596. void RemoveInstanceDefault();
  2597. void RemoveObjectAnimation();
  2598. void ResetToDefault();
  2599. bool Save(File) const;
  2600. bool Save(VectorBuffer&) const;
  2601. bool SaveJSON(JSONValue&) const;
  2602. bool SaveXML(XMLElement&) const;
  2603. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2604. void SetAnimationTime(float);
  2605. bool SetAttribute(const String&, const Variant&);
  2606. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2607. void SetAttributeAnimationSpeed(const String&, float);
  2608. void SetAttributeAnimationTime(const String&, float);
  2609. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2610. void SetInterceptNetworkUpdate(const String&, bool);
  2611. // Properties:
  2612. bool animationEnabled;
  2613. /* readonly */
  2614. Array<Variant> attributeDefaults;
  2615. /* readonly */
  2616. Array<AttributeInfo> attributeInfos;
  2617. Array<Variant> attributes;
  2618. /* readonly */
  2619. String category;
  2620. bool collideConnected;
  2621. float dampingRatio;
  2622. bool enabled;
  2623. /* readonly */
  2624. bool enabledEffective;
  2625. float frequencyHz;
  2626. /* readonly */
  2627. uint id;
  2628. float length;
  2629. /* readonly */
  2630. Node node;
  2631. /* readonly */
  2632. uint numAttributes;
  2633. ObjectAnimation objectAnimation;
  2634. RigidBody2D otherBody;
  2635. Vector2 otherBodyAnchor;
  2636. /* readonly */
  2637. RigidBody2D ownerBody;
  2638. Vector2 ownerBodyAnchor;
  2639. /* readonly */
  2640. int refs;
  2641. bool temporary;
  2642. /* readonly */
  2643. StringHash type;
  2644. /* readonly */
  2645. String typeName;
  2646. /* readonly */
  2647. int weakRefs;
  2648. };
  2649. class ConstraintFriction2D
  2650. {
  2651. public:
  2652. // Methods:
  2653. void ApplyAttributes();
  2654. void DrawDebugGeometry(DebugRenderer, bool);
  2655. Variant GetAttribute(const String&) const;
  2656. ValueAnimation GetAttributeAnimation(const String&) const;
  2657. float GetAttributeAnimationSpeed(const String&) const;
  2658. float GetAttributeAnimationTime(const String&) const;
  2659. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2660. Variant GetAttributeDefault(const String&) const;
  2661. bool GetInterceptNetworkUpdate(const String&) const;
  2662. bool HasSubscribedToEvent(Object, const String&);
  2663. bool HasSubscribedToEvent(const String&);
  2664. bool Load(File, bool = false);
  2665. bool Load(VectorBuffer&, bool = false);
  2666. bool LoadJSON(const JSONValue&, bool = false);
  2667. bool LoadXML(const XMLElement&, bool = false);
  2668. void MarkNetworkUpdate() const;
  2669. void Remove();
  2670. void RemoveAttributeAnimation(const String&);
  2671. void RemoveInstanceDefault();
  2672. void RemoveObjectAnimation();
  2673. void ResetToDefault();
  2674. bool Save(File) const;
  2675. bool Save(VectorBuffer&) const;
  2676. bool SaveJSON(JSONValue&) const;
  2677. bool SaveXML(XMLElement&) const;
  2678. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2679. void SetAnimationTime(float);
  2680. bool SetAttribute(const String&, const Variant&);
  2681. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2682. void SetAttributeAnimationSpeed(const String&, float);
  2683. void SetAttributeAnimationTime(const String&, float);
  2684. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2685. void SetInterceptNetworkUpdate(const String&, bool);
  2686. // Properties:
  2687. Vector2 anchor;
  2688. bool animationEnabled;
  2689. /* readonly */
  2690. Array<Variant> attributeDefaults;
  2691. /* readonly */
  2692. Array<AttributeInfo> attributeInfos;
  2693. Array<Variant> attributes;
  2694. /* readonly */
  2695. String category;
  2696. bool collideConnected;
  2697. bool enabled;
  2698. /* readonly */
  2699. bool enabledEffective;
  2700. /* readonly */
  2701. uint id;
  2702. float maxForce;
  2703. float maxTorque;
  2704. /* readonly */
  2705. Node node;
  2706. /* readonly */
  2707. uint numAttributes;
  2708. ObjectAnimation objectAnimation;
  2709. RigidBody2D otherBody;
  2710. /* readonly */
  2711. RigidBody2D ownerBody;
  2712. /* readonly */
  2713. int refs;
  2714. bool temporary;
  2715. /* readonly */
  2716. StringHash type;
  2717. /* readonly */
  2718. String typeName;
  2719. /* readonly */
  2720. int weakRefs;
  2721. };
  2722. class ConstraintGear2D
  2723. {
  2724. public:
  2725. // Methods:
  2726. void ApplyAttributes();
  2727. void DrawDebugGeometry(DebugRenderer, bool);
  2728. Variant GetAttribute(const String&) const;
  2729. ValueAnimation GetAttributeAnimation(const String&) const;
  2730. float GetAttributeAnimationSpeed(const String&) const;
  2731. float GetAttributeAnimationTime(const String&) const;
  2732. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2733. Variant GetAttributeDefault(const String&) const;
  2734. bool GetInterceptNetworkUpdate(const String&) const;
  2735. bool HasSubscribedToEvent(Object, const String&);
  2736. bool HasSubscribedToEvent(const String&);
  2737. bool Load(File, bool = false);
  2738. bool Load(VectorBuffer&, bool = false);
  2739. bool LoadJSON(const JSONValue&, bool = false);
  2740. bool LoadXML(const XMLElement&, bool = false);
  2741. void MarkNetworkUpdate() const;
  2742. void Remove();
  2743. void RemoveAttributeAnimation(const String&);
  2744. void RemoveInstanceDefault();
  2745. void RemoveObjectAnimation();
  2746. void ResetToDefault();
  2747. bool Save(File) const;
  2748. bool Save(VectorBuffer&) const;
  2749. bool SaveJSON(JSONValue&) const;
  2750. bool SaveXML(XMLElement&) const;
  2751. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2752. void SetAnimationTime(float);
  2753. bool SetAttribute(const String&, const Variant&);
  2754. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2755. void SetAttributeAnimationSpeed(const String&, float);
  2756. void SetAttributeAnimationTime(const String&, float);
  2757. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2758. void SetInterceptNetworkUpdate(const String&, bool);
  2759. // Properties:
  2760. bool animationEnabled;
  2761. /* readonly */
  2762. Array<Variant> attributeDefaults;
  2763. /* readonly */
  2764. Array<AttributeInfo> attributeInfos;
  2765. Array<Variant> attributes;
  2766. /* readonly */
  2767. String category;
  2768. bool collideConnected;
  2769. bool enabled;
  2770. /* readonly */
  2771. bool enabledEffective;
  2772. /* readonly */
  2773. uint id;
  2774. /* readonly */
  2775. Node node;
  2776. /* readonly */
  2777. uint numAttributes;
  2778. ObjectAnimation objectAnimation;
  2779. RigidBody2D otherBody;
  2780. Constraint2D otherConstraint;
  2781. /* readonly */
  2782. RigidBody2D ownerBody;
  2783. Constraint2D ownerConstraint;
  2784. float ratio;
  2785. /* readonly */
  2786. int refs;
  2787. bool temporary;
  2788. /* readonly */
  2789. StringHash type;
  2790. /* readonly */
  2791. String typeName;
  2792. /* readonly */
  2793. int weakRefs;
  2794. };
  2795. class ConstraintMotor2D
  2796. {
  2797. public:
  2798. // Methods:
  2799. void ApplyAttributes();
  2800. void DrawDebugGeometry(DebugRenderer, bool);
  2801. Variant GetAttribute(const String&) const;
  2802. ValueAnimation GetAttributeAnimation(const String&) const;
  2803. float GetAttributeAnimationSpeed(const String&) const;
  2804. float GetAttributeAnimationTime(const String&) const;
  2805. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2806. Variant GetAttributeDefault(const String&) const;
  2807. bool GetInterceptNetworkUpdate(const String&) const;
  2808. bool HasSubscribedToEvent(Object, const String&);
  2809. bool HasSubscribedToEvent(const String&);
  2810. bool Load(File, bool = false);
  2811. bool Load(VectorBuffer&, bool = false);
  2812. bool LoadJSON(const JSONValue&, bool = false);
  2813. bool LoadXML(const XMLElement&, bool = false);
  2814. void MarkNetworkUpdate() const;
  2815. void Remove();
  2816. void RemoveAttributeAnimation(const String&);
  2817. void RemoveInstanceDefault();
  2818. void RemoveObjectAnimation();
  2819. void ResetToDefault();
  2820. bool Save(File) const;
  2821. bool Save(VectorBuffer&) const;
  2822. bool SaveJSON(JSONValue&) const;
  2823. bool SaveXML(XMLElement&) const;
  2824. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2825. void SetAnimationTime(float);
  2826. bool SetAttribute(const String&, const Variant&);
  2827. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2828. void SetAttributeAnimationSpeed(const String&, float);
  2829. void SetAttributeAnimationTime(const String&, float);
  2830. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2831. void SetInterceptNetworkUpdate(const String&, bool);
  2832. // Properties:
  2833. float angularOffset;
  2834. bool animationEnabled;
  2835. /* readonly */
  2836. Array<Variant> attributeDefaults;
  2837. /* readonly */
  2838. Array<AttributeInfo> attributeInfos;
  2839. Array<Variant> attributes;
  2840. /* readonly */
  2841. String category;
  2842. bool collideConnected;
  2843. float correctionFactor;
  2844. bool enabled;
  2845. /* readonly */
  2846. bool enabledEffective;
  2847. /* readonly */
  2848. uint id;
  2849. Vector2 linearOffset;
  2850. float maxForce;
  2851. float maxTorque;
  2852. /* readonly */
  2853. Node node;
  2854. /* readonly */
  2855. uint numAttributes;
  2856. ObjectAnimation objectAnimation;
  2857. RigidBody2D otherBody;
  2858. /* readonly */
  2859. RigidBody2D ownerBody;
  2860. /* readonly */
  2861. int refs;
  2862. bool temporary;
  2863. /* readonly */
  2864. StringHash type;
  2865. /* readonly */
  2866. String typeName;
  2867. /* readonly */
  2868. int weakRefs;
  2869. };
  2870. class ConstraintMouse2D
  2871. {
  2872. public:
  2873. // Methods:
  2874. void ApplyAttributes();
  2875. void DrawDebugGeometry(DebugRenderer, bool);
  2876. Variant GetAttribute(const String&) const;
  2877. ValueAnimation GetAttributeAnimation(const String&) const;
  2878. float GetAttributeAnimationSpeed(const String&) const;
  2879. float GetAttributeAnimationTime(const String&) const;
  2880. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2881. Variant GetAttributeDefault(const String&) const;
  2882. bool GetInterceptNetworkUpdate(const String&) const;
  2883. bool HasSubscribedToEvent(Object, const String&);
  2884. bool HasSubscribedToEvent(const String&);
  2885. bool Load(File, bool = false);
  2886. bool Load(VectorBuffer&, bool = false);
  2887. bool LoadJSON(const JSONValue&, bool = false);
  2888. bool LoadXML(const XMLElement&, bool = false);
  2889. void MarkNetworkUpdate() const;
  2890. void Remove();
  2891. void RemoveAttributeAnimation(const String&);
  2892. void RemoveInstanceDefault();
  2893. void RemoveObjectAnimation();
  2894. void ResetToDefault();
  2895. bool Save(File) const;
  2896. bool Save(VectorBuffer&) const;
  2897. bool SaveJSON(JSONValue&) const;
  2898. bool SaveXML(XMLElement&) const;
  2899. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2900. void SetAnimationTime(float);
  2901. bool SetAttribute(const String&, const Variant&);
  2902. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2903. void SetAttributeAnimationSpeed(const String&, float);
  2904. void SetAttributeAnimationTime(const String&, float);
  2905. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2906. void SetInterceptNetworkUpdate(const String&, bool);
  2907. // Properties:
  2908. bool animationEnabled;
  2909. /* readonly */
  2910. Array<Variant> attributeDefaults;
  2911. /* readonly */
  2912. Array<AttributeInfo> attributeInfos;
  2913. Array<Variant> attributes;
  2914. /* readonly */
  2915. String category;
  2916. bool collideConnected;
  2917. float dampingRatio;
  2918. bool enabled;
  2919. /* readonly */
  2920. bool enabledEffective;
  2921. float frequencyHz;
  2922. /* readonly */
  2923. uint id;
  2924. float maxForce;
  2925. /* readonly */
  2926. Node node;
  2927. /* readonly */
  2928. uint numAttributes;
  2929. ObjectAnimation objectAnimation;
  2930. RigidBody2D otherBody;
  2931. /* readonly */
  2932. RigidBody2D ownerBody;
  2933. /* readonly */
  2934. int refs;
  2935. Vector2 target;
  2936. bool temporary;
  2937. /* readonly */
  2938. StringHash type;
  2939. /* readonly */
  2940. String typeName;
  2941. /* readonly */
  2942. int weakRefs;
  2943. };
  2944. class ConstraintPrismatic2D
  2945. {
  2946. public:
  2947. // Methods:
  2948. void ApplyAttributes();
  2949. void DrawDebugGeometry(DebugRenderer, bool);
  2950. Variant GetAttribute(const String&) const;
  2951. ValueAnimation GetAttributeAnimation(const String&) const;
  2952. float GetAttributeAnimationSpeed(const String&) const;
  2953. float GetAttributeAnimationTime(const String&) const;
  2954. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2955. Variant GetAttributeDefault(const String&) const;
  2956. bool GetInterceptNetworkUpdate(const String&) const;
  2957. bool HasSubscribedToEvent(Object, const String&);
  2958. bool HasSubscribedToEvent(const String&);
  2959. bool Load(File, bool = false);
  2960. bool Load(VectorBuffer&, bool = false);
  2961. bool LoadJSON(const JSONValue&, bool = false);
  2962. bool LoadXML(const XMLElement&, bool = false);
  2963. void MarkNetworkUpdate() const;
  2964. void Remove();
  2965. void RemoveAttributeAnimation(const String&);
  2966. void RemoveInstanceDefault();
  2967. void RemoveObjectAnimation();
  2968. void ResetToDefault();
  2969. bool Save(File) const;
  2970. bool Save(VectorBuffer&) const;
  2971. bool SaveJSON(JSONValue&) const;
  2972. bool SaveXML(XMLElement&) const;
  2973. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2974. void SetAnimationTime(float);
  2975. bool SetAttribute(const String&, const Variant&);
  2976. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2977. void SetAttributeAnimationSpeed(const String&, float);
  2978. void SetAttributeAnimationTime(const String&, float);
  2979. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2980. void SetInterceptNetworkUpdate(const String&, bool);
  2981. // Properties:
  2982. Vector2 anchor;
  2983. bool animationEnabled;
  2984. /* readonly */
  2985. Array<Variant> attributeDefaults;
  2986. /* readonly */
  2987. Array<AttributeInfo> attributeInfos;
  2988. Array<Variant> attributes;
  2989. Vector2 axis;
  2990. /* readonly */
  2991. String category;
  2992. bool collideConnected;
  2993. bool enableLimit;
  2994. bool enableMotor;
  2995. bool enabled;
  2996. /* readonly */
  2997. bool enabledEffective;
  2998. /* readonly */
  2999. uint id;
  3000. float lowerTranslation;
  3001. float maxMotorForce;
  3002. float motorSpeed;
  3003. /* readonly */
  3004. Node node;
  3005. /* readonly */
  3006. uint numAttributes;
  3007. ObjectAnimation objectAnimation;
  3008. RigidBody2D otherBody;
  3009. /* readonly */
  3010. RigidBody2D ownerBody;
  3011. /* readonly */
  3012. int refs;
  3013. bool temporary;
  3014. /* readonly */
  3015. StringHash type;
  3016. /* readonly */
  3017. String typeName;
  3018. float upperTranslation;
  3019. /* readonly */
  3020. int weakRefs;
  3021. };
  3022. class ConstraintPulley2D
  3023. {
  3024. public:
  3025. // Methods:
  3026. void ApplyAttributes();
  3027. void DrawDebugGeometry(DebugRenderer, bool);
  3028. Variant GetAttribute(const String&) const;
  3029. ValueAnimation GetAttributeAnimation(const String&) const;
  3030. float GetAttributeAnimationSpeed(const String&) const;
  3031. float GetAttributeAnimationTime(const String&) const;
  3032. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3033. Variant GetAttributeDefault(const String&) const;
  3034. bool GetInterceptNetworkUpdate(const String&) const;
  3035. bool HasSubscribedToEvent(Object, const String&);
  3036. bool HasSubscribedToEvent(const String&);
  3037. bool Load(File, bool = false);
  3038. bool Load(VectorBuffer&, bool = false);
  3039. bool LoadJSON(const JSONValue&, bool = false);
  3040. bool LoadXML(const XMLElement&, bool = false);
  3041. void MarkNetworkUpdate() const;
  3042. void Remove();
  3043. void RemoveAttributeAnimation(const String&);
  3044. void RemoveInstanceDefault();
  3045. void RemoveObjectAnimation();
  3046. void ResetToDefault();
  3047. bool Save(File) const;
  3048. bool Save(VectorBuffer&) const;
  3049. bool SaveJSON(JSONValue&) const;
  3050. bool SaveXML(XMLElement&) const;
  3051. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3052. void SetAnimationTime(float);
  3053. bool SetAttribute(const String&, const Variant&);
  3054. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3055. void SetAttributeAnimationSpeed(const String&, float);
  3056. void SetAttributeAnimationTime(const String&, float);
  3057. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3058. void SetInterceptNetworkUpdate(const String&, bool);
  3059. // Properties:
  3060. bool animationEnabled;
  3061. /* readonly */
  3062. Array<Variant> attributeDefaults;
  3063. /* readonly */
  3064. Array<AttributeInfo> attributeInfos;
  3065. Array<Variant> attributes;
  3066. /* readonly */
  3067. String category;
  3068. bool collideConnected;
  3069. bool enabled;
  3070. /* readonly */
  3071. bool enabledEffective;
  3072. /* readonly */
  3073. uint id;
  3074. /* readonly */
  3075. Node node;
  3076. /* readonly */
  3077. uint numAttributes;
  3078. ObjectAnimation objectAnimation;
  3079. RigidBody2D otherBody;
  3080. Vector2 otherBodyAnchor;
  3081. Vector2 otherBodyGroundAnchor;
  3082. /* readonly */
  3083. RigidBody2D ownerBody;
  3084. Vector2 ownerBodyAnchor;
  3085. Vector2 ownerBodyGroundAnchor;
  3086. float ratio;
  3087. /* readonly */
  3088. int refs;
  3089. bool temporary;
  3090. /* readonly */
  3091. StringHash type;
  3092. /* readonly */
  3093. String typeName;
  3094. /* readonly */
  3095. int weakRefs;
  3096. };
  3097. class ConstraintRevolute2D
  3098. {
  3099. public:
  3100. // Methods:
  3101. void ApplyAttributes();
  3102. void DrawDebugGeometry(DebugRenderer, bool);
  3103. Variant GetAttribute(const String&) const;
  3104. ValueAnimation GetAttributeAnimation(const String&) const;
  3105. float GetAttributeAnimationSpeed(const String&) const;
  3106. float GetAttributeAnimationTime(const String&) const;
  3107. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3108. Variant GetAttributeDefault(const String&) const;
  3109. bool GetInterceptNetworkUpdate(const String&) const;
  3110. bool HasSubscribedToEvent(Object, const String&);
  3111. bool HasSubscribedToEvent(const String&);
  3112. bool Load(File, bool = false);
  3113. bool Load(VectorBuffer&, bool = false);
  3114. bool LoadJSON(const JSONValue&, bool = false);
  3115. bool LoadXML(const XMLElement&, bool = false);
  3116. void MarkNetworkUpdate() const;
  3117. void Remove();
  3118. void RemoveAttributeAnimation(const String&);
  3119. void RemoveInstanceDefault();
  3120. void RemoveObjectAnimation();
  3121. void ResetToDefault();
  3122. bool Save(File) const;
  3123. bool Save(VectorBuffer&) const;
  3124. bool SaveJSON(JSONValue&) const;
  3125. bool SaveXML(XMLElement&) const;
  3126. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3127. void SetAnimationTime(float);
  3128. bool SetAttribute(const String&, const Variant&);
  3129. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3130. void SetAttributeAnimationSpeed(const String&, float);
  3131. void SetAttributeAnimationTime(const String&, float);
  3132. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3133. void SetInterceptNetworkUpdate(const String&, bool);
  3134. // Properties:
  3135. Vector2 anchor;
  3136. bool animationEnabled;
  3137. /* readonly */
  3138. Array<Variant> attributeDefaults;
  3139. /* readonly */
  3140. Array<AttributeInfo> attributeInfos;
  3141. Array<Variant> attributes;
  3142. /* readonly */
  3143. String category;
  3144. bool collideConnected;
  3145. bool enableLimit;
  3146. bool enableMotor;
  3147. bool enabled;
  3148. /* readonly */
  3149. bool enabledEffective;
  3150. /* readonly */
  3151. uint id;
  3152. float lowerAngle;
  3153. float maxMotorTorque;
  3154. float motorSpeed;
  3155. /* readonly */
  3156. Node node;
  3157. /* readonly */
  3158. uint numAttributes;
  3159. ObjectAnimation objectAnimation;
  3160. RigidBody2D otherBody;
  3161. /* readonly */
  3162. RigidBody2D ownerBody;
  3163. /* readonly */
  3164. int refs;
  3165. bool temporary;
  3166. /* readonly */
  3167. StringHash type;
  3168. /* readonly */
  3169. String typeName;
  3170. float upperAngle;
  3171. /* readonly */
  3172. int weakRefs;
  3173. };
  3174. class ConstraintRope2D
  3175. {
  3176. public:
  3177. // Methods:
  3178. void ApplyAttributes();
  3179. void DrawDebugGeometry(DebugRenderer, bool);
  3180. Variant GetAttribute(const String&) const;
  3181. ValueAnimation GetAttributeAnimation(const String&) const;
  3182. float GetAttributeAnimationSpeed(const String&) const;
  3183. float GetAttributeAnimationTime(const String&) const;
  3184. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3185. Variant GetAttributeDefault(const String&) const;
  3186. bool GetInterceptNetworkUpdate(const String&) const;
  3187. bool HasSubscribedToEvent(Object, const String&);
  3188. bool HasSubscribedToEvent(const String&);
  3189. bool Load(File, bool = false);
  3190. bool Load(VectorBuffer&, bool = false);
  3191. bool LoadJSON(const JSONValue&, bool = false);
  3192. bool LoadXML(const XMLElement&, bool = false);
  3193. void MarkNetworkUpdate() const;
  3194. void Remove();
  3195. void RemoveAttributeAnimation(const String&);
  3196. void RemoveInstanceDefault();
  3197. void RemoveObjectAnimation();
  3198. void ResetToDefault();
  3199. bool Save(File) const;
  3200. bool Save(VectorBuffer&) const;
  3201. bool SaveJSON(JSONValue&) const;
  3202. bool SaveXML(XMLElement&) const;
  3203. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3204. void SetAnimationTime(float);
  3205. bool SetAttribute(const String&, const Variant&);
  3206. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3207. void SetAttributeAnimationSpeed(const String&, float);
  3208. void SetAttributeAnimationTime(const String&, float);
  3209. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3210. void SetInterceptNetworkUpdate(const String&, bool);
  3211. // Properties:
  3212. bool animationEnabled;
  3213. /* readonly */
  3214. Array<Variant> attributeDefaults;
  3215. /* readonly */
  3216. Array<AttributeInfo> attributeInfos;
  3217. Array<Variant> attributes;
  3218. /* readonly */
  3219. String category;
  3220. bool collideConnected;
  3221. bool enabled;
  3222. /* readonly */
  3223. bool enabledEffective;
  3224. /* readonly */
  3225. uint id;
  3226. float maxLength;
  3227. /* readonly */
  3228. Node node;
  3229. /* readonly */
  3230. uint numAttributes;
  3231. ObjectAnimation objectAnimation;
  3232. RigidBody2D otherBody;
  3233. Vector2 otherBodyAnchor;
  3234. /* readonly */
  3235. RigidBody2D ownerBody;
  3236. Vector2 ownerBodyAnchor;
  3237. /* readonly */
  3238. int refs;
  3239. bool temporary;
  3240. /* readonly */
  3241. StringHash type;
  3242. /* readonly */
  3243. String typeName;
  3244. /* readonly */
  3245. int weakRefs;
  3246. };
  3247. class ConstraintWeld2D
  3248. {
  3249. public:
  3250. // Methods:
  3251. void ApplyAttributes();
  3252. void DrawDebugGeometry(DebugRenderer, bool);
  3253. Variant GetAttribute(const String&) const;
  3254. ValueAnimation GetAttributeAnimation(const String&) const;
  3255. float GetAttributeAnimationSpeed(const String&) const;
  3256. float GetAttributeAnimationTime(const String&) const;
  3257. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3258. Variant GetAttributeDefault(const String&) const;
  3259. bool GetInterceptNetworkUpdate(const String&) const;
  3260. bool HasSubscribedToEvent(Object, const String&);
  3261. bool HasSubscribedToEvent(const String&);
  3262. bool Load(File, bool = false);
  3263. bool Load(VectorBuffer&, bool = false);
  3264. bool LoadJSON(const JSONValue&, bool = false);
  3265. bool LoadXML(const XMLElement&, bool = false);
  3266. void MarkNetworkUpdate() const;
  3267. void Remove();
  3268. void RemoveAttributeAnimation(const String&);
  3269. void RemoveInstanceDefault();
  3270. void RemoveObjectAnimation();
  3271. void ResetToDefault();
  3272. bool Save(File) const;
  3273. bool Save(VectorBuffer&) const;
  3274. bool SaveJSON(JSONValue&) const;
  3275. bool SaveXML(XMLElement&) const;
  3276. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3277. void SetAnimationTime(float);
  3278. bool SetAttribute(const String&, const Variant&);
  3279. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3280. void SetAttributeAnimationSpeed(const String&, float);
  3281. void SetAttributeAnimationTime(const String&, float);
  3282. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3283. void SetInterceptNetworkUpdate(const String&, bool);
  3284. // Properties:
  3285. Vector2 anchor;
  3286. bool animationEnabled;
  3287. /* readonly */
  3288. Array<Variant> attributeDefaults;
  3289. /* readonly */
  3290. Array<AttributeInfo> attributeInfos;
  3291. Array<Variant> attributes;
  3292. /* readonly */
  3293. String category;
  3294. bool collideConnected;
  3295. float dampingRatio;
  3296. bool enabled;
  3297. /* readonly */
  3298. bool enabledEffective;
  3299. float frequencyHz;
  3300. /* readonly */
  3301. uint id;
  3302. /* readonly */
  3303. Node node;
  3304. /* readonly */
  3305. uint numAttributes;
  3306. ObjectAnimation objectAnimation;
  3307. RigidBody2D otherBody;
  3308. /* readonly */
  3309. RigidBody2D ownerBody;
  3310. /* readonly */
  3311. int refs;
  3312. bool temporary;
  3313. /* readonly */
  3314. StringHash type;
  3315. /* readonly */
  3316. String typeName;
  3317. /* readonly */
  3318. int weakRefs;
  3319. };
  3320. class ConstraintWheel2D
  3321. {
  3322. public:
  3323. // Methods:
  3324. void ApplyAttributes();
  3325. void DrawDebugGeometry(DebugRenderer, bool);
  3326. Variant GetAttribute(const String&) const;
  3327. ValueAnimation GetAttributeAnimation(const String&) const;
  3328. float GetAttributeAnimationSpeed(const String&) const;
  3329. float GetAttributeAnimationTime(const String&) const;
  3330. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3331. Variant GetAttributeDefault(const String&) const;
  3332. bool GetInterceptNetworkUpdate(const String&) const;
  3333. bool HasSubscribedToEvent(Object, const String&);
  3334. bool HasSubscribedToEvent(const String&);
  3335. bool Load(File, bool = false);
  3336. bool Load(VectorBuffer&, bool = false);
  3337. bool LoadJSON(const JSONValue&, bool = false);
  3338. bool LoadXML(const XMLElement&, bool = false);
  3339. void MarkNetworkUpdate() const;
  3340. void Remove();
  3341. void RemoveAttributeAnimation(const String&);
  3342. void RemoveInstanceDefault();
  3343. void RemoveObjectAnimation();
  3344. void ResetToDefault();
  3345. bool Save(File) const;
  3346. bool Save(VectorBuffer&) const;
  3347. bool SaveJSON(JSONValue&) const;
  3348. bool SaveXML(XMLElement&) const;
  3349. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3350. void SetAnimationTime(float);
  3351. bool SetAttribute(const String&, const Variant&);
  3352. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3353. void SetAttributeAnimationSpeed(const String&, float);
  3354. void SetAttributeAnimationTime(const String&, float);
  3355. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3356. void SetInterceptNetworkUpdate(const String&, bool);
  3357. // Properties:
  3358. Vector2 anchor;
  3359. bool animationEnabled;
  3360. /* readonly */
  3361. Array<Variant> attributeDefaults;
  3362. /* readonly */
  3363. Array<AttributeInfo> attributeInfos;
  3364. Array<Variant> attributes;
  3365. Vector2 axis;
  3366. /* readonly */
  3367. String category;
  3368. bool collideConnected;
  3369. float dampingRatio;
  3370. bool enableMotor;
  3371. bool enabled;
  3372. /* readonly */
  3373. bool enabledEffective;
  3374. float frequencyHz;
  3375. /* readonly */
  3376. uint id;
  3377. float maxMotorTorque;
  3378. float motorSpeed;
  3379. /* readonly */
  3380. Node node;
  3381. /* readonly */
  3382. uint numAttributes;
  3383. ObjectAnimation objectAnimation;
  3384. RigidBody2D otherBody;
  3385. /* readonly */
  3386. RigidBody2D ownerBody;
  3387. /* readonly */
  3388. int refs;
  3389. bool temporary;
  3390. /* readonly */
  3391. StringHash type;
  3392. /* readonly */
  3393. String typeName;
  3394. /* readonly */
  3395. int weakRefs;
  3396. };
  3397. class Controls
  3398. {
  3399. public:
  3400. ~Controls();
  3401. Controls();
  3402. Controls(const Controls&in);
  3403. // Methods:
  3404. bool IsDown(uint) const;
  3405. bool IsPressed(uint, const Controls&) const;
  3406. void Reset();
  3407. void Set(uint, bool);
  3408. // Properties:
  3409. uint buttons;
  3410. VariantMap extraData;
  3411. float pitch;
  3412. float yaw;
  3413. };
  3414. class CrowdAgent
  3415. {
  3416. public:
  3417. // Methods:
  3418. void ApplyAttributes();
  3419. void DrawDebugGeometry(DebugRenderer, bool);
  3420. void DrawDebugGeometry(bool);
  3421. Variant GetAttribute(const String&) const;
  3422. ValueAnimation GetAttributeAnimation(const String&) const;
  3423. float GetAttributeAnimationSpeed(const String&) const;
  3424. float GetAttributeAnimationTime(const String&) const;
  3425. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3426. Variant GetAttributeDefault(const String&) const;
  3427. bool GetInterceptNetworkUpdate(const String&) const;
  3428. bool HasSubscribedToEvent(Object, const String&);
  3429. bool HasSubscribedToEvent(const String&);
  3430. bool Load(File, bool = false);
  3431. bool Load(VectorBuffer&, bool = false);
  3432. bool LoadJSON(const JSONValue&, bool = false);
  3433. bool LoadXML(const XMLElement&, bool = false);
  3434. void MarkNetworkUpdate() const;
  3435. void Remove();
  3436. void RemoveAttributeAnimation(const String&);
  3437. void RemoveInstanceDefault();
  3438. void RemoveObjectAnimation();
  3439. void ResetTarget();
  3440. void ResetToDefault();
  3441. bool Save(File) const;
  3442. bool Save(VectorBuffer&) const;
  3443. bool SaveJSON(JSONValue&) const;
  3444. bool SaveXML(XMLElement&) const;
  3445. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3446. void SetAnimationTime(float);
  3447. bool SetAttribute(const String&, const Variant&);
  3448. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3449. void SetAttributeAnimationSpeed(const String&, float);
  3450. void SetAttributeAnimationTime(const String&, float);
  3451. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3452. void SetInterceptNetworkUpdate(const String&, bool);
  3453. // Properties:
  3454. /* readonly */
  3455. Vector3 actualVelocity;
  3456. /* readonly */
  3457. CrowdAgentState agentState;
  3458. bool animationEnabled;
  3459. /* readonly */
  3460. bool arrived;
  3461. /* readonly */
  3462. Array<Variant> attributeDefaults;
  3463. /* readonly */
  3464. Array<AttributeInfo> attributeInfos;
  3465. Array<Variant> attributes;
  3466. /* readonly */
  3467. String category;
  3468. /* readonly */
  3469. Vector3 desiredVelocity;
  3470. bool enabled;
  3471. /* readonly */
  3472. bool enabledEffective;
  3473. float height;
  3474. /* readonly */
  3475. uint id;
  3476. /* readonly */
  3477. bool inCrowd;
  3478. float maxAccel;
  3479. float maxSpeed;
  3480. NavigationPushiness navigationPushiness;
  3481. NavigationQuality navigationQuality;
  3482. /* readonly */
  3483. Node node;
  3484. /* readonly */
  3485. uint numAttributes;
  3486. ObjectAnimation objectAnimation;
  3487. uint obstacleAvoidanceType;
  3488. /* readonly */
  3489. Vector3 position;
  3490. uint queryFilterType;
  3491. float radius;
  3492. /* readonly */
  3493. int refs;
  3494. /* readonly */
  3495. bool requestedTarget;
  3496. /* readonly */
  3497. CrowdAgentRequestedTarget requestedTargetType;
  3498. Vector3 targetPosition;
  3499. /* readonly */
  3500. CrowdAgentTargetState targetState;
  3501. Vector3 targetVelocity;
  3502. bool temporary;
  3503. /* readonly */
  3504. StringHash type;
  3505. /* readonly */
  3506. String typeName;
  3507. bool updateNodePosition;
  3508. /* readonly */
  3509. int weakRefs;
  3510. };
  3511. class CrowdManager
  3512. {
  3513. public:
  3514. // Methods:
  3515. void ApplyAttributes();
  3516. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3517. void DrawDebugGeometry(DebugRenderer, bool);
  3518. void DrawDebugGeometry(bool);
  3519. Vector3 FindNearestPoint(const Vector3&, int);
  3520. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3521. float GetAreaCost(uint, uint);
  3522. Variant GetAttribute(const String&) const;
  3523. ValueAnimation GetAttributeAnimation(const String&) const;
  3524. float GetAttributeAnimationSpeed(const String&) const;
  3525. float GetAttributeAnimationTime(const String&) const;
  3526. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3527. Variant GetAttributeDefault(const String&) const;
  3528. float GetDistanceToWall(const Vector3&, float, int);
  3529. uint16 GetExcludeFlags(uint);
  3530. uint16 GetIncludeFlags(uint);
  3531. bool GetInterceptNetworkUpdate(const String&) const;
  3532. Vector3 GetRandomPoint(int);
  3533. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3534. bool HasSubscribedToEvent(Object, const String&);
  3535. bool HasSubscribedToEvent(const String&);
  3536. bool Load(File, bool = false);
  3537. bool Load(VectorBuffer&, bool = false);
  3538. bool LoadJSON(const JSONValue&, bool = false);
  3539. bool LoadXML(const XMLElement&, bool = false);
  3540. void MarkNetworkUpdate() const;
  3541. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3542. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3543. void Remove();
  3544. void RemoveAttributeAnimation(const String&);
  3545. void RemoveInstanceDefault();
  3546. void RemoveObjectAnimation();
  3547. void ResetCrowdTarget(Node = null);
  3548. void ResetToDefault();
  3549. bool Save(File) const;
  3550. bool Save(VectorBuffer&) const;
  3551. bool SaveJSON(JSONValue&) const;
  3552. bool SaveXML(XMLElement&) const;
  3553. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3554. void SetAnimationTime(float);
  3555. void SetAreaCost(uint, uint, float);
  3556. bool SetAttribute(const String&, const Variant&);
  3557. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3558. void SetAttributeAnimationSpeed(const String&, float);
  3559. void SetAttributeAnimationTime(const String&, float);
  3560. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3561. void SetCrowdTarget(const Vector3&, Node = null);
  3562. void SetCrowdVelocity(const Vector3&, Node = null);
  3563. void SetExcludeFlags(uint, uint16);
  3564. void SetIncludeFlags(uint, uint16);
  3565. void SetInterceptNetworkUpdate(const String&, bool);
  3566. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3567. // Properties:
  3568. bool animationEnabled;
  3569. /* readonly */
  3570. Array<Variant> attributeDefaults;
  3571. /* readonly */
  3572. Array<AttributeInfo> attributeInfos;
  3573. Array<Variant> attributes;
  3574. /* readonly */
  3575. String category;
  3576. bool enabled;
  3577. /* readonly */
  3578. bool enabledEffective;
  3579. /* readonly */
  3580. uint id;
  3581. float maxAgentRadius;
  3582. int maxAgents;
  3583. NavigationMesh navMesh;
  3584. /* readonly */
  3585. Node node;
  3586. /* readonly */
  3587. Array<uint> numAreas;
  3588. /* readonly */
  3589. uint numAttributes;
  3590. /* readonly */
  3591. uint numObstacleAvoidanceTypes;
  3592. /* readonly */
  3593. uint numQueryFilterTypes;
  3594. ObjectAnimation objectAnimation;
  3595. /* readonly */
  3596. int refs;
  3597. bool temporary;
  3598. /* readonly */
  3599. StringHash type;
  3600. /* readonly */
  3601. String typeName;
  3602. /* readonly */
  3603. int weakRefs;
  3604. };
  3605. class CrowdObstacleAvoidanceParams
  3606. {
  3607. public:
  3608. // Properties:
  3609. uint8 adaptiveDepth;
  3610. uint8 adaptiveDivs;
  3611. uint8 adaptiveRings;
  3612. uint8 gridSize;
  3613. float horizTime;
  3614. float velBias;
  3615. float weightCurVel;
  3616. float weightDesVel;
  3617. float weightSide;
  3618. float weightToi;
  3619. };
  3620. class Cursor
  3621. {
  3622. public:
  3623. Cursor();
  3624. Cursor(const String&in);
  3625. // Methods:
  3626. void AddChild(UIElement);
  3627. void AddTag(const String&);
  3628. void AddTags(const String&, int8 = ';');
  3629. void ApplyAttributes();
  3630. void BringToFront();
  3631. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3632. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3633. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3634. void DisableLayoutUpdate();
  3635. IntVector2 ElementToScreen(const IntVector2&);
  3636. void EnableLayoutUpdate();
  3637. uint FindChild(UIElement) const;
  3638. Variant GetAttribute(const String&) const;
  3639. ValueAnimation GetAttributeAnimation(const String&) const;
  3640. float GetAttributeAnimationSpeed(const String&) const;
  3641. float GetAttributeAnimationTime(const String&) const;
  3642. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3643. Variant GetAttributeDefault(const String&) const;
  3644. UIElement GetChild(const String&, bool = false) const;
  3645. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3646. Array<UIElement> GetChildren(bool = false) const;
  3647. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3648. UIElement GetElementEventSender() const;
  3649. bool GetInterceptNetworkUpdate(const String&) const;
  3650. uint GetNumChildren(bool) const;
  3651. bool HasSubscribedToEvent(Object, const String&);
  3652. bool HasSubscribedToEvent(const String&);
  3653. bool HasTag(const String&) const;
  3654. void InsertChild(uint, UIElement);
  3655. bool IsInside(IntVector2, bool);
  3656. bool IsInsideCombined(IntVector2, bool);
  3657. bool Load(File, bool = false);
  3658. bool Load(VectorBuffer&, bool = false);
  3659. UIElement LoadChildXML(XMLFile, XMLFile = null);
  3660. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3661. bool LoadJSON(const JSONValue&, bool = false);
  3662. bool LoadXML(File);
  3663. bool LoadXML(VectorBuffer&);
  3664. bool LoadXML(XMLFile, XMLFile);
  3665. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3666. bool LoadXML(const XMLElement&, bool = false);
  3667. void MarkNetworkUpdate() const;
  3668. void Remove();
  3669. void RemoveAllChildren();
  3670. void RemoveAllTags();
  3671. void RemoveAttributeAnimation(const String&);
  3672. void RemoveChild(UIElement, uint = 0);
  3673. void RemoveChild(uint);
  3674. void RemoveInstanceDefault();
  3675. void RemoveObjectAnimation();
  3676. bool RemoveTag(const String&);
  3677. void ResetDeepEnabled();
  3678. void ResetToDefault();
  3679. bool Save(File) const;
  3680. bool Save(VectorBuffer&) const;
  3681. bool SaveJSON(JSONValue&) const;
  3682. bool SaveXML(File, const String& = "\t");
  3683. bool SaveXML(VectorBuffer&, const String& = "\t");
  3684. bool SaveXML(XMLElement&) const;
  3685. IntVector2 ScreenToElement(const IntVector2&);
  3686. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3687. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3688. void SetAnimationTime(float);
  3689. bool SetAttribute(const String&, const Variant&);
  3690. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3691. void SetAttributeAnimationSpeed(const String&, float);
  3692. void SetAttributeAnimationTime(const String&, float);
  3693. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3694. void SetDeepEnabled(bool);
  3695. void SetEnabledRecursive(bool);
  3696. void SetFixedHeight(int);
  3697. void SetFixedSize(int, int);
  3698. void SetFixedWidth(int);
  3699. void SetFullImageRect();
  3700. void SetHoverOffset(int, int);
  3701. void SetInterceptNetworkUpdate(const String&, bool);
  3702. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3703. void SetMaxAnchor(float, float);
  3704. void SetMaxSize(int, int);
  3705. void SetMinAnchor(float, float);
  3706. void SetMinSize(int, int);
  3707. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3708. void SetPivot(float, float);
  3709. void SetPosition(int, int);
  3710. void SetShape(CursorShape);
  3711. void SetShape(const String&);
  3712. void SetSize(int, int);
  3713. bool SetStyle(const String&, XMLFile = null);
  3714. bool SetStyle(const XMLElement&);
  3715. bool SetStyleAuto(XMLFile = null);
  3716. void UpdateLayout();
  3717. const Variant& GetVar(const StringHash&);
  3718. // Properties:
  3719. bool animationEnabled;
  3720. /* readonly */
  3721. Array<Variant> attributeDefaults;
  3722. /* readonly */
  3723. Array<AttributeInfo> attributeInfos;
  3724. Array<Variant> attributes;
  3725. BlendMode blendMode;
  3726. IntRect border;
  3727. bool bringToBack;
  3728. bool bringToFront;
  3729. /* readonly */
  3730. String category;
  3731. /* readonly */
  3732. IntVector2 childOffset;
  3733. /* readonly */
  3734. Array<UIElement> children;
  3735. IntRect clipBorder;
  3736. bool clipChildren;
  3737. /* writeonly */
  3738. Color color;
  3739. /* readonly */
  3740. bool colorGradient;
  3741. Array<Color> colors;
  3742. /* readonly */
  3743. IntRect combinedScreenRect;
  3744. XMLFile defaultStyle;
  3745. /* readonly */
  3746. float derivedOpacity;
  3747. /* readonly */
  3748. uint dragButtonCombo;
  3749. /* readonly */
  3750. int dragButtonCount;
  3751. uint dragDropMode;
  3752. bool editable;
  3753. bool elementEventSender;
  3754. bool enableAnchor;
  3755. bool enabled;
  3756. /* readonly */
  3757. bool enabledSelf;
  3758. /* readonly */
  3759. bool fixedHeight;
  3760. /* readonly */
  3761. bool fixedSize;
  3762. /* readonly */
  3763. bool fixedWidth;
  3764. bool focus;
  3765. FocusMode focusMode;
  3766. int height;
  3767. HorizontalAlignment horizontalAlignment;
  3768. IntVector2 hoverOffset;
  3769. /* readonly */
  3770. bool hovering;
  3771. IntRect imageBorder;
  3772. IntRect imageRect;
  3773. int indent;
  3774. int indentSpacing;
  3775. /* readonly */
  3776. int indentWidth;
  3777. bool internal;
  3778. IntRect layoutBorder;
  3779. Vector2 layoutFlexScale;
  3780. LayoutMode layoutMode;
  3781. int layoutSpacing;
  3782. Vector2 maxAnchor;
  3783. int maxHeight;
  3784. IntVector2 maxOffset;
  3785. IntVector2 maxSize;
  3786. int maxWidth;
  3787. Vector2 minAnchor;
  3788. int minHeight;
  3789. IntVector2 minOffset;
  3790. IntVector2 minSize;
  3791. int minWidth;
  3792. String name;
  3793. /* readonly */
  3794. uint numAllChildren;
  3795. /* readonly */
  3796. uint numAttributes;
  3797. /* readonly */
  3798. uint numChildren;
  3799. ObjectAnimation objectAnimation;
  3800. float opacity;
  3801. UIElement parent;
  3802. Vector2 pivot;
  3803. IntVector2 position;
  3804. int priority;
  3805. /* readonly */
  3806. int refs;
  3807. /* readonly */
  3808. UIElement root;
  3809. /* readonly */
  3810. IntVector2 screenPosition;
  3811. bool selected;
  3812. String shape;
  3813. IntVector2 size;
  3814. bool sortChildren;
  3815. String style;
  3816. /* readonly */
  3817. Array<String> tags;
  3818. bool temporary;
  3819. Texture texture;
  3820. bool tiled;
  3821. TraversalMode traversalMode;
  3822. /* readonly */
  3823. StringHash type;
  3824. /* readonly */
  3825. String typeName;
  3826. bool useDerivedOpacity;
  3827. bool useSystemShapes;
  3828. /* readonly */
  3829. VariantMap vars;
  3830. VerticalAlignment verticalAlignment;
  3831. bool visible;
  3832. /* readonly */
  3833. bool visibleEffective;
  3834. /* readonly */
  3835. int weakRefs;
  3836. int width;
  3837. };
  3838. class CustomGeometry
  3839. {
  3840. public:
  3841. // Methods:
  3842. void ApplyAttributes();
  3843. void BeginGeometry(uint, PrimitiveType);
  3844. void Clear();
  3845. void Commit();
  3846. void DefineColor(const Color&);
  3847. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3848. void DefineNormal(const Vector3&);
  3849. void DefineTangent(const Vector4&);
  3850. void DefineTexCoord(const Vector2&);
  3851. void DefineVertex(const Vector3&);
  3852. void DrawDebugGeometry(DebugRenderer, bool);
  3853. Variant GetAttribute(const String&) const;
  3854. ValueAnimation GetAttributeAnimation(const String&) const;
  3855. float GetAttributeAnimationSpeed(const String&) const;
  3856. float GetAttributeAnimationTime(const String&) const;
  3857. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3858. Variant GetAttributeDefault(const String&) const;
  3859. bool GetInterceptNetworkUpdate(const String&) const;
  3860. CustomGeometryVertex GetVertex(uint, uint);
  3861. bool HasSubscribedToEvent(Object, const String&);
  3862. bool HasSubscribedToEvent(const String&);
  3863. bool IsInView(Camera) const;
  3864. bool Load(File, bool = false);
  3865. bool Load(VectorBuffer&, bool = false);
  3866. bool LoadJSON(const JSONValue&, bool = false);
  3867. bool LoadXML(const XMLElement&, bool = false);
  3868. void MarkNetworkUpdate() const;
  3869. void Remove();
  3870. void RemoveAttributeAnimation(const String&);
  3871. void RemoveInstanceDefault();
  3872. void RemoveObjectAnimation();
  3873. void ResetToDefault();
  3874. bool Save(File) const;
  3875. bool Save(VectorBuffer&) const;
  3876. bool SaveJSON(JSONValue&) const;
  3877. bool SaveXML(XMLElement&) const;
  3878. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3879. void SetAnimationTime(float);
  3880. bool SetAttribute(const String&, const Variant&);
  3881. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3882. void SetAttributeAnimationSpeed(const String&, float);
  3883. void SetAttributeAnimationTime(const String&, float);
  3884. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3885. void SetInterceptNetworkUpdate(const String&, bool);
  3886. // Properties:
  3887. bool animationEnabled;
  3888. /* readonly */
  3889. Array<Variant> attributeDefaults;
  3890. /* readonly */
  3891. Array<AttributeInfo> attributeInfos;
  3892. Array<Variant> attributes;
  3893. /* readonly */
  3894. BoundingBox boundingBox;
  3895. bool castShadows;
  3896. /* readonly */
  3897. String category;
  3898. float drawDistance;
  3899. bool dynamic;
  3900. bool enabled;
  3901. /* readonly */
  3902. bool enabledEffective;
  3903. /* readonly */
  3904. uint id;
  3905. /* readonly */
  3906. bool inView;
  3907. uint lightMask;
  3908. float lodBias;
  3909. /* writeonly */
  3910. Material material;
  3911. Array<Material> materials;
  3912. uint maxLights;
  3913. /* readonly */
  3914. Node node;
  3915. /* readonly */
  3916. uint numAttributes;
  3917. uint numGeometries;
  3918. /* readonly */
  3919. Array<uint> numVertices;
  3920. ObjectAnimation objectAnimation;
  3921. bool occludee;
  3922. bool occluder;
  3923. /* readonly */
  3924. int refs;
  3925. float shadowDistance;
  3926. uint shadowMask;
  3927. bool temporary;
  3928. /* readonly */
  3929. StringHash type;
  3930. /* readonly */
  3931. String typeName;
  3932. uint viewMask;
  3933. /* readonly */
  3934. int weakRefs;
  3935. /* readonly */
  3936. BoundingBox worldBoundingBox;
  3937. /* readonly */
  3938. Zone zone;
  3939. uint zoneMask;
  3940. };
  3941. class CustomGeometryVertex
  3942. {
  3943. public:
  3944. // Properties:
  3945. uint color;
  3946. Vector3 normal;
  3947. Vector3 position;
  3948. Vector4 tangent;
  3949. Vector2 texCoord;
  3950. };
  3951. class Database
  3952. {
  3953. public:
  3954. // Methods:
  3955. DbConnection Connect(const String&);
  3956. void Disconnect(DbConnection);
  3957. bool HasSubscribedToEvent(Object, const String&);
  3958. bool HasSubscribedToEvent(const String&);
  3959. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3960. // Properties:
  3961. /* readonly */
  3962. String category;
  3963. uint poolSize;
  3964. /* readonly */
  3965. bool pooling;
  3966. /* readonly */
  3967. int refs;
  3968. /* readonly */
  3969. StringHash type;
  3970. /* readonly */
  3971. String typeName;
  3972. /* readonly */
  3973. int weakRefs;
  3974. };
  3975. class DbConnection
  3976. {
  3977. public:
  3978. // Methods:
  3979. DbResult Execute(const String&, bool = false);
  3980. bool HasSubscribedToEvent(Object, const String&);
  3981. bool HasSubscribedToEvent(const String&);
  3982. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3983. // Properties:
  3984. /* readonly */
  3985. String category;
  3986. /* readonly */
  3987. bool connected;
  3988. /* readonly */
  3989. String connectionString;
  3990. /* readonly */
  3991. int refs;
  3992. /* readonly */
  3993. StringHash type;
  3994. /* readonly */
  3995. String typeName;
  3996. /* readonly */
  3997. int weakRefs;
  3998. };
  3999. class DbResult
  4000. {
  4001. public:
  4002. ~DbResult();
  4003. DbResult();
  4004. DbResult(const DbResult&in);
  4005. // Properties:
  4006. /* readonly */
  4007. Array<String> columns;
  4008. /* readonly */
  4009. int64 numAffectedRows;
  4010. /* readonly */
  4011. uint numColumns;
  4012. /* readonly */
  4013. uint numRows;
  4014. /* readonly */
  4015. Array<Array<Variant>> row;
  4016. };
  4017. class DebugHud
  4018. {
  4019. public:
  4020. // Methods:
  4021. void ClearAppStats();
  4022. bool HasSubscribedToEvent(Object, const String&);
  4023. bool HasSubscribedToEvent(const String&);
  4024. void ResetAppStats(const String&);
  4025. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4026. void SetAppStats(const String&, const String&);
  4027. void SetAppStats(const String&, const Variant&);
  4028. void Toggle(uint);
  4029. void ToggleAll();
  4030. void Update();
  4031. // Properties:
  4032. /* readonly */
  4033. String category;
  4034. XMLFile defaultStyle;
  4035. /* readonly */
  4036. Text memoryText;
  4037. uint mode;
  4038. /* readonly */
  4039. Text modeText;
  4040. float profilerInterval;
  4041. uint profilerMaxDepth;
  4042. /* readonly */
  4043. Text profilerText;
  4044. /* readonly */
  4045. int refs;
  4046. /* readonly */
  4047. Text statsText;
  4048. /* readonly */
  4049. StringHash type;
  4050. /* readonly */
  4051. String typeName;
  4052. bool useRendererStats;
  4053. /* readonly */
  4054. int weakRefs;
  4055. };
  4056. class DebugRenderer
  4057. {
  4058. public:
  4059. // Methods:
  4060. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  4061. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  4062. void AddCross(const Vector3&, float, const Color&, bool = true);
  4063. void AddFrustum(const Frustum&, const Color&, bool = true);
  4064. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  4065. void AddNode(Node, float = 1.0, bool = true);
  4066. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4067. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  4068. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  4069. void AddSkeleton(Skeleton, const Color&, bool = true);
  4070. void AddSphere(const Sphere&, const Color&, bool = true);
  4071. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  4072. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4073. void ApplyAttributes();
  4074. void DrawDebugGeometry(DebugRenderer, bool);
  4075. Variant GetAttribute(const String&) const;
  4076. ValueAnimation GetAttributeAnimation(const String&) const;
  4077. float GetAttributeAnimationSpeed(const String&) const;
  4078. float GetAttributeAnimationTime(const String&) const;
  4079. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4080. Variant GetAttributeDefault(const String&) const;
  4081. bool GetInterceptNetworkUpdate(const String&) const;
  4082. bool HasSubscribedToEvent(Object, const String&);
  4083. bool HasSubscribedToEvent(const String&);
  4084. bool Load(File, bool = false);
  4085. bool Load(VectorBuffer&, bool = false);
  4086. bool LoadJSON(const JSONValue&, bool = false);
  4087. bool LoadXML(const XMLElement&, bool = false);
  4088. void MarkNetworkUpdate() const;
  4089. void Remove();
  4090. void RemoveAttributeAnimation(const String&);
  4091. void RemoveInstanceDefault();
  4092. void RemoveObjectAnimation();
  4093. void ResetToDefault();
  4094. bool Save(File) const;
  4095. bool Save(VectorBuffer&) const;
  4096. bool SaveJSON(JSONValue&) const;
  4097. bool SaveXML(XMLElement&) const;
  4098. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4099. void SetAnimationTime(float);
  4100. bool SetAttribute(const String&, const Variant&);
  4101. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4102. void SetAttributeAnimationSpeed(const String&, float);
  4103. void SetAttributeAnimationTime(const String&, float);
  4104. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4105. void SetInterceptNetworkUpdate(const String&, bool);
  4106. // Properties:
  4107. bool animationEnabled;
  4108. /* readonly */
  4109. Array<Variant> attributeDefaults;
  4110. /* readonly */
  4111. Array<AttributeInfo> attributeInfos;
  4112. Array<Variant> attributes;
  4113. /* readonly */
  4114. String category;
  4115. bool enabled;
  4116. /* readonly */
  4117. bool enabledEffective;
  4118. /* readonly */
  4119. uint id;
  4120. bool lineAntiAlias;
  4121. /* readonly */
  4122. Node node;
  4123. /* readonly */
  4124. uint numAttributes;
  4125. ObjectAnimation objectAnimation;
  4126. /* readonly */
  4127. int refs;
  4128. bool temporary;
  4129. /* readonly */
  4130. StringHash type;
  4131. /* readonly */
  4132. String typeName;
  4133. /* readonly */
  4134. int weakRefs;
  4135. };
  4136. class DecalSet
  4137. {
  4138. public:
  4139. // Methods:
  4140. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4141. void ApplyAttributes();
  4142. void DrawDebugGeometry(DebugRenderer, bool);
  4143. Variant GetAttribute(const String&) const;
  4144. ValueAnimation GetAttributeAnimation(const String&) const;
  4145. float GetAttributeAnimationSpeed(const String&) const;
  4146. float GetAttributeAnimationTime(const String&) const;
  4147. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4148. Variant GetAttributeDefault(const String&) const;
  4149. bool GetInterceptNetworkUpdate(const String&) const;
  4150. bool HasSubscribedToEvent(Object, const String&);
  4151. bool HasSubscribedToEvent(const String&);
  4152. bool IsInView(Camera) const;
  4153. bool Load(File, bool = false);
  4154. bool Load(VectorBuffer&, bool = false);
  4155. bool LoadJSON(const JSONValue&, bool = false);
  4156. bool LoadXML(const XMLElement&, bool = false);
  4157. void MarkNetworkUpdate() const;
  4158. void Remove();
  4159. void RemoveAllDecals();
  4160. void RemoveAttributeAnimation(const String&);
  4161. void RemoveDecals(uint);
  4162. void RemoveInstanceDefault();
  4163. void RemoveObjectAnimation();
  4164. void ResetToDefault();
  4165. bool Save(File) const;
  4166. bool Save(VectorBuffer&) const;
  4167. bool SaveJSON(JSONValue&) const;
  4168. bool SaveXML(XMLElement&) const;
  4169. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4170. void SetAnimationTime(float);
  4171. bool SetAttribute(const String&, const Variant&);
  4172. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4173. void SetAttributeAnimationSpeed(const String&, float);
  4174. void SetAttributeAnimationTime(const String&, float);
  4175. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4176. void SetInterceptNetworkUpdate(const String&, bool);
  4177. // Properties:
  4178. bool animationEnabled;
  4179. /* readonly */
  4180. Array<Variant> attributeDefaults;
  4181. /* readonly */
  4182. Array<AttributeInfo> attributeInfos;
  4183. Array<Variant> attributes;
  4184. /* readonly */
  4185. BoundingBox boundingBox;
  4186. bool castShadows;
  4187. /* readonly */
  4188. String category;
  4189. float drawDistance;
  4190. bool enabled;
  4191. /* readonly */
  4192. bool enabledEffective;
  4193. /* readonly */
  4194. uint id;
  4195. /* readonly */
  4196. bool inView;
  4197. uint lightMask;
  4198. float lodBias;
  4199. Material material;
  4200. uint maxIndices;
  4201. uint maxLights;
  4202. uint maxVertices;
  4203. /* readonly */
  4204. Node node;
  4205. /* readonly */
  4206. uint numAttributes;
  4207. /* readonly */
  4208. uint numDecals;
  4209. /* readonly */
  4210. uint numIndices;
  4211. /* readonly */
  4212. uint numVertices;
  4213. ObjectAnimation objectAnimation;
  4214. bool occludee;
  4215. bool occluder;
  4216. bool optimizeBufferSize;
  4217. /* readonly */
  4218. int refs;
  4219. float shadowDistance;
  4220. uint shadowMask;
  4221. bool temporary;
  4222. /* readonly */
  4223. StringHash type;
  4224. /* readonly */
  4225. String typeName;
  4226. uint viewMask;
  4227. /* readonly */
  4228. int weakRefs;
  4229. /* readonly */
  4230. BoundingBox worldBoundingBox;
  4231. /* readonly */
  4232. Zone zone;
  4233. uint zoneMask;
  4234. };
  4235. class Deserializer
  4236. {
  4237. public:
  4238. // Methods:
  4239. Array<uint8> Read(uint);
  4240. bool ReadBool();
  4241. BoundingBox ReadBoundingBox();
  4242. int8 ReadByte();
  4243. Color ReadColor();
  4244. double ReadDouble();
  4245. String ReadFileID();
  4246. float ReadFloat();
  4247. int ReadInt();
  4248. int64 ReadInt64();
  4249. IntRect ReadIntRect();
  4250. IntVector2 ReadIntVector2();
  4251. String ReadLine();
  4252. Matrix3 ReadMatrix3();
  4253. Matrix3x4 ReadMatrix3x4();
  4254. Matrix4 ReadMatrix4();
  4255. uint ReadNetID();
  4256. Quaternion ReadPackedQuaternion();
  4257. Vector3 ReadPackedVector3(float);
  4258. Quaternion ReadQuaternion();
  4259. int16 ReadShort();
  4260. String ReadString();
  4261. StringHash ReadStringHash();
  4262. uint8 ReadUByte();
  4263. uint ReadUInt();
  4264. uint64 ReadUInt64();
  4265. uint16 ReadUShort();
  4266. uint ReadVLE();
  4267. Variant ReadVariant();
  4268. VariantMap ReadVariantMap();
  4269. Vector2 ReadVector2();
  4270. Vector3 ReadVector3();
  4271. Vector4 ReadVector4();
  4272. VectorBuffer ReadVectorBuffer(uint);
  4273. uint Seek(uint);
  4274. // Properties:
  4275. /* readonly */
  4276. uint checksum;
  4277. /* readonly */
  4278. bool eof;
  4279. /* readonly */
  4280. String name;
  4281. /* readonly */
  4282. uint position;
  4283. /* readonly */
  4284. uint size;
  4285. };
  4286. class Dictionary
  4287. {
  4288. public:
  4289. Dictionary();
  4290. // Methods:
  4291. void Clear();
  4292. void Erase(const String&);
  4293. bool Exists(const String&) const;
  4294. bool Get(const String&, void*) const;
  4295. bool Get(const String&, double&) const;
  4296. bool Get(const String&, int64&) const;
  4297. void Set(const String&, const void*);
  4298. void Set(const String&, const double&);
  4299. void Set(const String&, const int64&);
  4300. // Properties:
  4301. /* readonly */
  4302. bool empty;
  4303. /* readonly */
  4304. Array<String> keys;
  4305. /* readonly */
  4306. uint length;
  4307. };
  4308. class DictionaryValue
  4309. {
  4310. public:
  4311. ~DictionaryValue();
  4312. DictionaryValue();
  4313. };
  4314. class Drawable
  4315. {
  4316. public:
  4317. // Methods:
  4318. void ApplyAttributes();
  4319. void DrawDebugGeometry(DebugRenderer, bool);
  4320. Variant GetAttribute(const String&) const;
  4321. ValueAnimation GetAttributeAnimation(const String&) const;
  4322. float GetAttributeAnimationSpeed(const String&) const;
  4323. float GetAttributeAnimationTime(const String&) const;
  4324. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4325. Variant GetAttributeDefault(const String&) const;
  4326. bool GetInterceptNetworkUpdate(const String&) const;
  4327. bool HasSubscribedToEvent(Object, const String&);
  4328. bool HasSubscribedToEvent(const String&);
  4329. bool IsInView(Camera) const;
  4330. bool Load(File, bool = false);
  4331. bool Load(VectorBuffer&, bool = false);
  4332. bool LoadJSON(const JSONValue&, bool = false);
  4333. bool LoadXML(const XMLElement&, bool = false);
  4334. void MarkNetworkUpdate() const;
  4335. void Remove();
  4336. void RemoveAttributeAnimation(const String&);
  4337. void RemoveInstanceDefault();
  4338. void RemoveObjectAnimation();
  4339. void ResetToDefault();
  4340. bool Save(File) const;
  4341. bool Save(VectorBuffer&) const;
  4342. bool SaveJSON(JSONValue&) const;
  4343. bool SaveXML(XMLElement&) const;
  4344. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4345. void SetAnimationTime(float);
  4346. bool SetAttribute(const String&, const Variant&);
  4347. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4348. void SetAttributeAnimationSpeed(const String&, float);
  4349. void SetAttributeAnimationTime(const String&, float);
  4350. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4351. void SetInterceptNetworkUpdate(const String&, bool);
  4352. // Properties:
  4353. bool animationEnabled;
  4354. /* readonly */
  4355. Array<Variant> attributeDefaults;
  4356. /* readonly */
  4357. Array<AttributeInfo> attributeInfos;
  4358. Array<Variant> attributes;
  4359. /* readonly */
  4360. BoundingBox boundingBox;
  4361. bool castShadows;
  4362. /* readonly */
  4363. String category;
  4364. float drawDistance;
  4365. bool enabled;
  4366. /* readonly */
  4367. bool enabledEffective;
  4368. /* readonly */
  4369. uint id;
  4370. /* readonly */
  4371. bool inView;
  4372. uint lightMask;
  4373. float lodBias;
  4374. uint maxLights;
  4375. /* readonly */
  4376. Node node;
  4377. /* readonly */
  4378. uint numAttributes;
  4379. ObjectAnimation objectAnimation;
  4380. bool occludee;
  4381. bool occluder;
  4382. /* readonly */
  4383. int refs;
  4384. float shadowDistance;
  4385. uint shadowMask;
  4386. bool temporary;
  4387. /* readonly */
  4388. StringHash type;
  4389. /* readonly */
  4390. String typeName;
  4391. uint viewMask;
  4392. /* readonly */
  4393. int weakRefs;
  4394. /* readonly */
  4395. BoundingBox worldBoundingBox;
  4396. uint zoneMask;
  4397. };
  4398. class Drawable2D
  4399. {
  4400. public:
  4401. // Methods:
  4402. void ApplyAttributes();
  4403. void DrawDebugGeometry(DebugRenderer, bool);
  4404. Variant GetAttribute(const String&) const;
  4405. ValueAnimation GetAttributeAnimation(const String&) const;
  4406. float GetAttributeAnimationSpeed(const String&) const;
  4407. float GetAttributeAnimationTime(const String&) const;
  4408. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4409. Variant GetAttributeDefault(const String&) const;
  4410. bool GetInterceptNetworkUpdate(const String&) const;
  4411. bool HasSubscribedToEvent(Object, const String&);
  4412. bool HasSubscribedToEvent(const String&);
  4413. bool IsInView(Camera) const;
  4414. bool Load(File, bool = false);
  4415. bool Load(VectorBuffer&, bool = false);
  4416. bool LoadJSON(const JSONValue&, bool = false);
  4417. bool LoadXML(const XMLElement&, bool = false);
  4418. void MarkNetworkUpdate() const;
  4419. void Remove();
  4420. void RemoveAttributeAnimation(const String&);
  4421. void RemoveInstanceDefault();
  4422. void RemoveObjectAnimation();
  4423. void ResetToDefault();
  4424. bool Save(File) const;
  4425. bool Save(VectorBuffer&) const;
  4426. bool SaveJSON(JSONValue&) const;
  4427. bool SaveXML(XMLElement&) const;
  4428. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4429. void SetAnimationTime(float);
  4430. bool SetAttribute(const String&, const Variant&);
  4431. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4432. void SetAttributeAnimationSpeed(const String&, float);
  4433. void SetAttributeAnimationTime(const String&, float);
  4434. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4435. void SetInterceptNetworkUpdate(const String&, bool);
  4436. // Properties:
  4437. bool animationEnabled;
  4438. /* readonly */
  4439. Array<Variant> attributeDefaults;
  4440. /* readonly */
  4441. Array<AttributeInfo> attributeInfos;
  4442. Array<Variant> attributes;
  4443. /* readonly */
  4444. BoundingBox boundingBox;
  4445. bool castShadows;
  4446. /* readonly */
  4447. String category;
  4448. float drawDistance;
  4449. bool enabled;
  4450. /* readonly */
  4451. bool enabledEffective;
  4452. /* readonly */
  4453. uint id;
  4454. /* readonly */
  4455. bool inView;
  4456. int layer;
  4457. uint lightMask;
  4458. float lodBias;
  4459. uint maxLights;
  4460. /* readonly */
  4461. Node node;
  4462. /* readonly */
  4463. uint numAttributes;
  4464. ObjectAnimation objectAnimation;
  4465. bool occludee;
  4466. bool occluder;
  4467. int orderInLayer;
  4468. /* readonly */
  4469. int refs;
  4470. float shadowDistance;
  4471. uint shadowMask;
  4472. bool temporary;
  4473. /* readonly */
  4474. StringHash type;
  4475. /* readonly */
  4476. String typeName;
  4477. uint viewMask;
  4478. /* readonly */
  4479. int weakRefs;
  4480. /* readonly */
  4481. BoundingBox worldBoundingBox;
  4482. uint zoneMask;
  4483. };
  4484. class DropDownList
  4485. {
  4486. public:
  4487. DropDownList();
  4488. DropDownList(const String&in);
  4489. // Methods:
  4490. void AddChild(UIElement);
  4491. void AddItem(UIElement);
  4492. void AddTag(const String&);
  4493. void AddTags(const String&, int8 = ';');
  4494. void ApplyAttributes();
  4495. void BringToFront();
  4496. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4497. void DisableLayoutUpdate();
  4498. IntVector2 ElementToScreen(const IntVector2&);
  4499. void EnableLayoutUpdate();
  4500. uint FindChild(UIElement) const;
  4501. Variant GetAttribute(const String&) const;
  4502. ValueAnimation GetAttributeAnimation(const String&) const;
  4503. float GetAttributeAnimationSpeed(const String&) const;
  4504. float GetAttributeAnimationTime(const String&) const;
  4505. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4506. Variant GetAttributeDefault(const String&) const;
  4507. UIElement GetChild(const String&, bool = false) const;
  4508. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4509. Array<UIElement> GetChildren(bool = false) const;
  4510. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4511. UIElement GetElementEventSender() const;
  4512. bool GetInterceptNetworkUpdate(const String&) const;
  4513. Array<UIElement> GetItems() const;
  4514. uint GetNumChildren(bool) const;
  4515. bool HasSubscribedToEvent(Object, const String&);
  4516. bool HasSubscribedToEvent(const String&);
  4517. bool HasTag(const String&) const;
  4518. void InsertChild(uint, UIElement);
  4519. void InsertItem(uint, UIElement);
  4520. bool IsInside(IntVector2, bool);
  4521. bool IsInsideCombined(IntVector2, bool);
  4522. bool Load(File, bool = false);
  4523. bool Load(VectorBuffer&, bool = false);
  4524. UIElement LoadChildXML(XMLFile, XMLFile = null);
  4525. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4526. bool LoadJSON(const JSONValue&, bool = false);
  4527. bool LoadXML(File);
  4528. bool LoadXML(VectorBuffer&);
  4529. bool LoadXML(XMLFile, XMLFile);
  4530. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4531. bool LoadXML(const XMLElement&, bool = false);
  4532. void MarkNetworkUpdate() const;
  4533. void Remove();
  4534. void RemoveAllChildren();
  4535. void RemoveAllItems();
  4536. void RemoveAllTags();
  4537. void RemoveAttributeAnimation(const String&);
  4538. void RemoveChild(UIElement, uint = 0);
  4539. void RemoveChild(uint);
  4540. void RemoveInstanceDefault();
  4541. void RemoveItem(UIElement);
  4542. void RemoveItem(uint);
  4543. void RemoveObjectAnimation();
  4544. bool RemoveTag(const String&);
  4545. void ResetDeepEnabled();
  4546. void ResetToDefault();
  4547. bool Save(File) const;
  4548. bool Save(VectorBuffer&) const;
  4549. bool SaveJSON(JSONValue&) const;
  4550. bool SaveXML(File, const String& = "\t");
  4551. bool SaveXML(VectorBuffer&, const String& = "\t");
  4552. bool SaveXML(XMLElement&) const;
  4553. IntVector2 ScreenToElement(const IntVector2&);
  4554. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4555. void SetAccelerator(int, int);
  4556. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4557. void SetAnimationTime(float);
  4558. bool SetAttribute(const String&, const Variant&);
  4559. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4560. void SetAttributeAnimationSpeed(const String&, float);
  4561. void SetAttributeAnimationTime(const String&, float);
  4562. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4563. void SetDeepEnabled(bool);
  4564. void SetEnabledRecursive(bool);
  4565. void SetFixedHeight(int);
  4566. void SetFixedSize(int, int);
  4567. void SetFixedWidth(int);
  4568. void SetFullImageRect();
  4569. void SetHoverOffset(int, int);
  4570. void SetInterceptNetworkUpdate(const String&, bool);
  4571. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4572. void SetMaxAnchor(float, float);
  4573. void SetMaxSize(int, int);
  4574. void SetMinAnchor(float, float);
  4575. void SetMinSize(int, int);
  4576. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4577. void SetPivot(float, float);
  4578. void SetPosition(int, int);
  4579. void SetPressedChildOffset(int, int);
  4580. void SetPressedOffset(int, int);
  4581. void SetRepeat(float, float);
  4582. void SetSize(int, int);
  4583. bool SetStyle(const String&, XMLFile = null);
  4584. bool SetStyle(const XMLElement&);
  4585. bool SetStyleAuto(XMLFile = null);
  4586. void UpdateLayout();
  4587. const Variant& GetVar(const StringHash&);
  4588. UIElement getPopup() const;
  4589. // Properties:
  4590. /* readonly */
  4591. int acceleratorKey;
  4592. /* readonly */
  4593. int acceleratorQualifiers;
  4594. bool animationEnabled;
  4595. /* readonly */
  4596. Array<Variant> attributeDefaults;
  4597. /* readonly */
  4598. Array<AttributeInfo> attributeInfos;
  4599. Array<Variant> attributes;
  4600. BlendMode blendMode;
  4601. IntRect border;
  4602. bool bringToBack;
  4603. bool bringToFront;
  4604. /* readonly */
  4605. String category;
  4606. /* readonly */
  4607. IntVector2 childOffset;
  4608. /* readonly */
  4609. Array<UIElement> children;
  4610. IntRect clipBorder;
  4611. bool clipChildren;
  4612. /* writeonly */
  4613. Color color;
  4614. /* readonly */
  4615. bool colorGradient;
  4616. Array<Color> colors;
  4617. /* readonly */
  4618. IntRect combinedScreenRect;
  4619. XMLFile defaultStyle;
  4620. /* readonly */
  4621. float derivedOpacity;
  4622. /* readonly */
  4623. uint dragButtonCombo;
  4624. /* readonly */
  4625. int dragButtonCount;
  4626. uint dragDropMode;
  4627. bool editable;
  4628. bool elementEventSender;
  4629. bool enableAnchor;
  4630. bool enabled;
  4631. /* readonly */
  4632. bool enabledSelf;
  4633. /* readonly */
  4634. bool fixedHeight;
  4635. /* readonly */
  4636. bool fixedSize;
  4637. /* readonly */
  4638. bool fixedWidth;
  4639. bool focus;
  4640. FocusMode focusMode;
  4641. int height;
  4642. HorizontalAlignment horizontalAlignment;
  4643. IntVector2 hoverOffset;
  4644. /* readonly */
  4645. bool hovering;
  4646. IntRect imageBorder;
  4647. IntRect imageRect;
  4648. int indent;
  4649. int indentSpacing;
  4650. /* readonly */
  4651. int indentWidth;
  4652. bool internal;
  4653. /* readonly */
  4654. Array<UIElement> items;
  4655. IntRect layoutBorder;
  4656. Vector2 layoutFlexScale;
  4657. LayoutMode layoutMode;
  4658. int layoutSpacing;
  4659. /* readonly */
  4660. ListView listView;
  4661. Vector2 maxAnchor;
  4662. int maxHeight;
  4663. IntVector2 maxOffset;
  4664. IntVector2 maxSize;
  4665. int maxWidth;
  4666. Vector2 minAnchor;
  4667. int minHeight;
  4668. IntVector2 minOffset;
  4669. IntVector2 minSize;
  4670. int minWidth;
  4671. String name;
  4672. /* readonly */
  4673. uint numAllChildren;
  4674. /* readonly */
  4675. uint numAttributes;
  4676. /* readonly */
  4677. uint numChildren;
  4678. /* readonly */
  4679. uint numItems;
  4680. ObjectAnimation objectAnimation;
  4681. float opacity;
  4682. UIElement parent;
  4683. Vector2 pivot;
  4684. /* readonly */
  4685. UIElement placeholder;
  4686. String placeholderText;
  4687. IntVector2 position;
  4688. /* readonly */
  4689. bool pressed;
  4690. IntVector2 pressedChildOffset;
  4691. IntVector2 pressedOffset;
  4692. int priority;
  4693. /* readonly */
  4694. int refs;
  4695. float repeatDelay;
  4696. float repeatRate;
  4697. bool resizePopup;
  4698. /* readonly */
  4699. UIElement root;
  4700. /* readonly */
  4701. IntVector2 screenPosition;
  4702. bool selected;
  4703. /* readonly */
  4704. UIElement selectedItem;
  4705. uint selection;
  4706. bool showPopup;
  4707. IntVector2 size;
  4708. bool sortChildren;
  4709. String style;
  4710. /* readonly */
  4711. Array<String> tags;
  4712. bool temporary;
  4713. Texture texture;
  4714. bool tiled;
  4715. TraversalMode traversalMode;
  4716. /* readonly */
  4717. StringHash type;
  4718. /* readonly */
  4719. String typeName;
  4720. bool useDerivedOpacity;
  4721. /* readonly */
  4722. VariantMap vars;
  4723. VerticalAlignment verticalAlignment;
  4724. bool visible;
  4725. /* readonly */
  4726. bool visibleEffective;
  4727. /* readonly */
  4728. int weakRefs;
  4729. int width;
  4730. };
  4731. class DynamicNavigationMesh
  4732. {
  4733. public:
  4734. // Methods:
  4735. void ApplyAttributes();
  4736. bool Build();
  4737. bool Build(const BoundingBox&);
  4738. void DrawDebugGeometry(DebugRenderer, bool);
  4739. void DrawDebugGeometry(bool);
  4740. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4741. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4742. float GetAreaCost(uint) const;
  4743. Variant GetAttribute(const String&) const;
  4744. ValueAnimation GetAttributeAnimation(const String&) const;
  4745. float GetAttributeAnimationSpeed(const String&) const;
  4746. float GetAttributeAnimationTime(const String&) const;
  4747. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4748. Variant GetAttributeDefault(const String&) const;
  4749. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4750. bool GetInterceptNetworkUpdate(const String&) const;
  4751. Vector3 GetRandomPoint();
  4752. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4753. bool HasSubscribedToEvent(Object, const String&);
  4754. bool HasSubscribedToEvent(const String&);
  4755. bool Load(File, bool = false);
  4756. bool Load(VectorBuffer&, bool = false);
  4757. bool LoadJSON(const JSONValue&, bool = false);
  4758. bool LoadXML(const XMLElement&, bool = false);
  4759. void MarkNetworkUpdate() const;
  4760. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4761. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4762. void Remove();
  4763. void RemoveAttributeAnimation(const String&);
  4764. void RemoveInstanceDefault();
  4765. void RemoveObjectAnimation();
  4766. void ResetToDefault();
  4767. bool Save(File) const;
  4768. bool Save(VectorBuffer&) const;
  4769. bool SaveJSON(JSONValue&) const;
  4770. bool SaveXML(XMLElement&) const;
  4771. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4772. void SetAnimationTime(float);
  4773. void SetAreaCost(uint, float);
  4774. bool SetAttribute(const String&, const Variant&);
  4775. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4776. void SetAttributeAnimationSpeed(const String&, float);
  4777. void SetAttributeAnimationTime(const String&, float);
  4778. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4779. void SetInterceptNetworkUpdate(const String&, bool);
  4780. // Properties:
  4781. float agentHeight;
  4782. float agentMaxClimb;
  4783. float agentMaxSlope;
  4784. float agentRadius;
  4785. bool animationEnabled;
  4786. /* readonly */
  4787. Array<Variant> attributeDefaults;
  4788. /* readonly */
  4789. Array<AttributeInfo> attributeInfos;
  4790. Array<Variant> attributes;
  4791. /* readonly */
  4792. BoundingBox boundingBox;
  4793. /* readonly */
  4794. String category;
  4795. float cellHeight;
  4796. float cellSize;
  4797. float detailSampleDistance;
  4798. float detailSampleMaxError;
  4799. bool drawNavAreas;
  4800. bool drawObstacles;
  4801. bool drawOffMeshConnections;
  4802. float edgeMaxError;
  4803. float edgeMaxLength;
  4804. bool enabled;
  4805. /* readonly */
  4806. bool enabledEffective;
  4807. /* readonly */
  4808. uint id;
  4809. /* readonly */
  4810. bool initialized;
  4811. bool maxLayers;
  4812. uint maxObstacles;
  4813. /* readonly */
  4814. Node node;
  4815. /* readonly */
  4816. uint numAttributes;
  4817. /* readonly */
  4818. IntVector2 numTiles;
  4819. ObjectAnimation objectAnimation;
  4820. Vector3 padding;
  4821. NavmeshPartitionType partitionType;
  4822. /* readonly */
  4823. int refs;
  4824. float regionMergeSize;
  4825. float regionMinSize;
  4826. bool temporary;
  4827. int tileSize;
  4828. /* readonly */
  4829. StringHash type;
  4830. /* readonly */
  4831. String typeName;
  4832. /* readonly */
  4833. int weakRefs;
  4834. /* readonly */
  4835. BoundingBox worldBoundingBox;
  4836. };
  4837. class Engine
  4838. {
  4839. public:
  4840. // Methods:
  4841. Console CreateConsole();
  4842. DebugHud CreateDebugHud();
  4843. void DumpMemory();
  4844. void DumpProfiler();
  4845. void DumpResources(bool = false);
  4846. void Exit();
  4847. bool HasSubscribedToEvent(Object, const String&);
  4848. bool HasSubscribedToEvent(const String&);
  4849. void RunFrame();
  4850. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4851. // Properties:
  4852. bool autoExit;
  4853. /* readonly */
  4854. String category;
  4855. /* readonly */
  4856. bool exiting;
  4857. /* readonly */
  4858. bool headless;
  4859. /* readonly */
  4860. bool initialized;
  4861. int maxFps;
  4862. int maxInactiveFps;
  4863. int minFps;
  4864. bool pauseMinimized;
  4865. /* readonly */
  4866. int refs;
  4867. int timeStepSmoothing;
  4868. /* readonly */
  4869. StringHash type;
  4870. /* readonly */
  4871. String typeName;
  4872. /* readonly */
  4873. int weakRefs;
  4874. };
  4875. class File
  4876. {
  4877. public:
  4878. File();
  4879. File(const String&in, FileMode mode = FILE_READ);
  4880. // Methods:
  4881. void Close();
  4882. bool HasSubscribedToEvent(Object, const String&);
  4883. bool HasSubscribedToEvent(const String&);
  4884. bool Open(const String&, FileMode = FILE_READ);
  4885. Array<uint8> Read(uint);
  4886. bool ReadBool();
  4887. BoundingBox ReadBoundingBox();
  4888. int8 ReadByte();
  4889. Color ReadColor();
  4890. double ReadDouble();
  4891. String ReadFileID();
  4892. float ReadFloat();
  4893. int ReadInt();
  4894. int64 ReadInt64();
  4895. IntRect ReadIntRect();
  4896. IntVector2 ReadIntVector2();
  4897. String ReadLine();
  4898. Matrix3 ReadMatrix3();
  4899. Matrix3x4 ReadMatrix3x4();
  4900. Matrix4 ReadMatrix4();
  4901. uint ReadNetID();
  4902. Quaternion ReadPackedQuaternion();
  4903. Vector3 ReadPackedVector3(float);
  4904. Quaternion ReadQuaternion();
  4905. int16 ReadShort();
  4906. String ReadString();
  4907. StringHash ReadStringHash();
  4908. uint8 ReadUByte();
  4909. uint ReadUInt();
  4910. uint64 ReadUInt64();
  4911. uint16 ReadUShort();
  4912. uint ReadVLE();
  4913. Variant ReadVariant();
  4914. VariantMap ReadVariantMap();
  4915. Vector2 ReadVector2();
  4916. Vector3 ReadVector3();
  4917. Vector4 ReadVector4();
  4918. VectorBuffer ReadVectorBuffer(uint);
  4919. uint Seek(uint);
  4920. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4921. uint Write(Array<uint8>);
  4922. bool WriteBool(bool);
  4923. bool WriteBoundingBox(const BoundingBox&);
  4924. bool WriteByte(int8);
  4925. bool WriteColor(const Color&);
  4926. bool WriteDouble(double);
  4927. bool WriteFileID(const String&);
  4928. bool WriteFloat(float);
  4929. bool WriteInt(int);
  4930. bool WriteInt64(int64);
  4931. bool WriteIntRect(const IntRect&);
  4932. bool WriteIntVector2(const IntVector2&);
  4933. bool WriteLine(const String&);
  4934. bool WriteMatrix3(const Matrix3&);
  4935. bool WriteMatrix3x4(const Matrix3x4&);
  4936. bool WriteMatrix4(const Matrix4&);
  4937. bool WriteNetID(uint);
  4938. bool WritePackedQuaternion(const Quaternion&);
  4939. bool WritePackedVector3(const Vector3&, float);
  4940. bool WriteQuaternion(const Quaternion&);
  4941. bool WriteShort(int16);
  4942. bool WriteString(const String&);
  4943. bool WriteStringHash(const StringHash&);
  4944. bool WriteUByte(uint8);
  4945. bool WriteUInt(uint);
  4946. bool WriteUInt64(uint64);
  4947. bool WriteUShort(uint16);
  4948. bool WriteVLE(uint);
  4949. bool WriteVariant(const Variant&);
  4950. bool WriteVariantMap(const VariantMap&);
  4951. bool WriteVector2(const Vector2&);
  4952. bool WriteVector3(const Vector3&);
  4953. bool WriteVector4(const Vector4&);
  4954. bool WriteVectorBuffer(const VectorBuffer&);
  4955. // Properties:
  4956. /* readonly */
  4957. String category;
  4958. /* readonly */
  4959. uint checksum;
  4960. /* readonly */
  4961. bool eof;
  4962. /* readonly */
  4963. FileMode mode;
  4964. /* readonly */
  4965. String name;
  4966. /* readonly */
  4967. bool open;
  4968. /* readonly */
  4969. bool packaged;
  4970. /* readonly */
  4971. uint position;
  4972. /* readonly */
  4973. int refs;
  4974. /* readonly */
  4975. uint size;
  4976. /* readonly */
  4977. StringHash type;
  4978. /* readonly */
  4979. String typeName;
  4980. /* readonly */
  4981. int weakRefs;
  4982. };
  4983. class FileSelector
  4984. {
  4985. public:
  4986. FileSelector();
  4987. // Methods:
  4988. bool HasSubscribedToEvent(Object, const String&);
  4989. bool HasSubscribedToEvent(const String&);
  4990. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4991. void SetButtonTexts(const String&, const String&);
  4992. void SetFilters(Array<String>, uint);
  4993. void UpdateElements();
  4994. // Properties:
  4995. /* readonly */
  4996. Button cancelButton;
  4997. /* readonly */
  4998. String category;
  4999. XMLFile defaultStyle;
  5000. bool directoryMode;
  5001. /* readonly */
  5002. ListView fileList;
  5003. String fileName;
  5004. /* readonly */
  5005. LineEdit fileNameEdit;
  5006. /* readonly */
  5007. String filter;
  5008. /* readonly */
  5009. uint filterIndex;
  5010. /* readonly */
  5011. DropDownList filterList;
  5012. /* readonly */
  5013. Button okButton;
  5014. String path;
  5015. /* readonly */
  5016. LineEdit pathEdit;
  5017. /* readonly */
  5018. int refs;
  5019. String title;
  5020. /* readonly */
  5021. Text titleText;
  5022. /* readonly */
  5023. StringHash type;
  5024. /* readonly */
  5025. String typeName;
  5026. /* readonly */
  5027. int weakRefs;
  5028. /* readonly */
  5029. Window window;
  5030. };
  5031. class FileSystem
  5032. {
  5033. public:
  5034. // Methods:
  5035. bool Copy(const String&, const String&);
  5036. bool CreateDir(const String&);
  5037. bool Delete(const String&);
  5038. bool DirExists(const String&) const;
  5039. bool FileExists(const String&) const;
  5040. String GetAppPreferencesDir(const String&, const String&) const;
  5041. uint GetLastModifiedTime(const String&) const;
  5042. bool HasSubscribedToEvent(Object, const String&);
  5043. bool HasSubscribedToEvent(const String&);
  5044. bool Rename(const String&, const String&);
  5045. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  5046. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5047. bool SetLastModifiedTime(const String&, uint);
  5048. int SystemCommand(const String&, bool = false);
  5049. uint SystemCommandAsync(const String&);
  5050. bool SystemOpen(const String&, const String&);
  5051. int SystemRun(const String&, Array<String>);
  5052. uint SystemRunAsync(const String&, Array<String>);
  5053. // Properties:
  5054. /* readonly */
  5055. String category;
  5056. String currentDir;
  5057. bool executeConsoleCommands;
  5058. /* readonly */
  5059. String programDir;
  5060. /* readonly */
  5061. int refs;
  5062. /* readonly */
  5063. StringHash type;
  5064. /* readonly */
  5065. String typeName;
  5066. /* readonly */
  5067. String userDocumentsDir;
  5068. /* readonly */
  5069. int weakRefs;
  5070. };
  5071. class FocusParameters
  5072. {
  5073. public:
  5074. FocusParameters();
  5075. FocusParameters(const FocusParameters&in);
  5076. FocusParameters(bool, bool, bool, float, float);
  5077. // Properties:
  5078. bool autoSize;
  5079. bool focus;
  5080. float minView;
  5081. bool nonUniform;
  5082. float quantize;
  5083. };
  5084. class Font
  5085. {
  5086. public:
  5087. Font();
  5088. Font(const String&in);
  5089. // Methods:
  5090. IntVector2 GetTotalGlyphOffset(float) const;
  5091. bool HasSubscribedToEvent(Object, const String&);
  5092. bool HasSubscribedToEvent(const String&);
  5093. bool Load(File);
  5094. bool Load(VectorBuffer&);
  5095. bool Load(const String&);
  5096. bool Save(File) const;
  5097. bool Save(VectorBuffer&) const;
  5098. bool Save(const String&) const;
  5099. bool SaveXML(File, int, bool = false, const String& = "\t");
  5100. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  5101. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  5102. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5103. // Properties:
  5104. IntVector2 absoluteGlyphOffset;
  5105. /* readonly */
  5106. String category;
  5107. /* readonly */
  5108. FontType fontType;
  5109. /* readonly */
  5110. uint memoryUse;
  5111. String name;
  5112. /* readonly */
  5113. int refs;
  5114. Vector2 scaledGlyphOffset;
  5115. /* readonly */
  5116. StringHash type;
  5117. /* readonly */
  5118. String typeName;
  5119. /* readonly */
  5120. uint useTimer;
  5121. /* readonly */
  5122. int weakRefs;
  5123. };
  5124. class Frustum
  5125. {
  5126. public:
  5127. ~Frustum();
  5128. Frustum();
  5129. Frustum(const Frustum&in);
  5130. // Methods:
  5131. void Define(const BoundingBox&, const Matrix3x4&);
  5132. void Define(const Matrix4&);
  5133. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  5134. void Define(float, float, float, float, float, const Matrix3x4&);
  5135. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  5136. void DefineSplit(const Matrix4&, float, float);
  5137. float Distance(const Vector3&) const;
  5138. Intersection IsInside(const BoundingBox&);
  5139. Intersection IsInside(const Sphere&);
  5140. Intersection IsInside(const Vector3&);
  5141. Intersection IsInsideFast(const BoundingBox&) const;
  5142. Intersection IsInsideFast(const Sphere&) const;
  5143. void Transform(const Matrix3&);
  5144. void Transform(const Matrix3x4&);
  5145. Frustum Transformed(const Matrix3&) const;
  5146. Frustum Transformed(const Matrix3x4&) const;
  5147. // Properties:
  5148. /* readonly */
  5149. Array<Vector3> vertices;
  5150. };
  5151. class Geometry
  5152. {
  5153. public:
  5154. Geometry();
  5155. // Methods:
  5156. bool HasSubscribedToEvent(Object, const String&);
  5157. bool HasSubscribedToEvent(const String&);
  5158. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5159. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  5160. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  5161. void SetIndexBuffer(IndexBuffer);
  5162. bool SetVertexBuffer(uint, VertexBuffer);
  5163. // Properties:
  5164. /* readonly */
  5165. String category;
  5166. /* readonly */
  5167. bool empty;
  5168. IndexBuffer indexBuffer;
  5169. /* readonly */
  5170. uint indexCount;
  5171. /* readonly */
  5172. uint indexStart;
  5173. float lodDistance;
  5174. uint numVertexBuffers;
  5175. /* readonly */
  5176. PrimitiveType primitiveType;
  5177. /* readonly */
  5178. int refs;
  5179. /* readonly */
  5180. StringHash type;
  5181. /* readonly */
  5182. String typeName;
  5183. /* readonly */
  5184. Array<VertexBuffer> vertexBuffers;
  5185. /* readonly */
  5186. uint vertexCount;
  5187. /* readonly */
  5188. uint vertexStart;
  5189. /* readonly */
  5190. int weakRefs;
  5191. };
  5192. class Graphics
  5193. {
  5194. public:
  5195. // Methods:
  5196. void BeginDumpShaders(const String&);
  5197. void Close();
  5198. void EndDumpShaders();
  5199. bool HasSubscribedToEvent(Object, const String&);
  5200. bool HasSubscribedToEvent(const String&);
  5201. void Maximize();
  5202. void Minimize();
  5203. void PrecacheShaders(File);
  5204. void PrecacheShaders(VectorBuffer&);
  5205. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5206. bool SetMode(int, int);
  5207. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  5208. void SetWindowPosition(int, int);
  5209. bool TakeScreenShot(Image);
  5210. bool ToggleFullscreen();
  5211. // Properties:
  5212. /* readonly */
  5213. String apiName;
  5214. /* readonly */
  5215. bool borderless;
  5216. /* readonly */
  5217. String category;
  5218. /* readonly */
  5219. bool deferredSupport;
  5220. /* readonly */
  5221. Array<IntVector2> desktopResolution;
  5222. /* readonly */
  5223. bool deviceLost;
  5224. bool dither;
  5225. bool flushGPU;
  5226. /* readonly */
  5227. bool fullscreen;
  5228. /* readonly */
  5229. bool hardwareShadowSupport;
  5230. /* readonly */
  5231. int height;
  5232. /* readonly */
  5233. bool initialized;
  5234. /* readonly */
  5235. bool instancingSupport;
  5236. /* readonly */
  5237. bool lightPrepassSupport;
  5238. /* readonly */
  5239. int monitorCount;
  5240. /* readonly */
  5241. int multiSample;
  5242. /* readonly */
  5243. Array<int> multiSampleLevels;
  5244. /* readonly */
  5245. uint numBatches;
  5246. /* readonly */
  5247. uint numPrimitives;
  5248. String orientations;
  5249. /* readonly */
  5250. bool readableDepthSupport;
  5251. /* readonly */
  5252. int refs;
  5253. /* readonly */
  5254. bool resizable;
  5255. /* readonly */
  5256. Array<Array<IntVector3>> resolutions;
  5257. bool sRGB;
  5258. /* readonly */
  5259. bool sRGBSupport;
  5260. /* readonly */
  5261. bool sRGBWriteSupport;
  5262. String shaderCacheDir;
  5263. /* readonly */
  5264. IntVector2 size;
  5265. /* readonly */
  5266. bool tripleBuffer;
  5267. /* readonly */
  5268. StringHash type;
  5269. /* readonly */
  5270. String typeName;
  5271. /* readonly */
  5272. bool vsync;
  5273. /* readonly */
  5274. int weakRefs;
  5275. /* readonly */
  5276. int width;
  5277. /* writeonly */
  5278. Image windowIcon;
  5279. IntVector2 windowPosition;
  5280. String windowTitle;
  5281. };
  5282. class HttpRequest
  5283. {
  5284. public:
  5285. // Methods:
  5286. Array<uint8> Read(uint);
  5287. bool ReadBool();
  5288. BoundingBox ReadBoundingBox();
  5289. int8 ReadByte();
  5290. Color ReadColor();
  5291. double ReadDouble();
  5292. String ReadFileID();
  5293. float ReadFloat();
  5294. int ReadInt();
  5295. int64 ReadInt64();
  5296. IntRect ReadIntRect();
  5297. IntVector2 ReadIntVector2();
  5298. String ReadLine();
  5299. Matrix3 ReadMatrix3();
  5300. Matrix3x4 ReadMatrix3x4();
  5301. Matrix4 ReadMatrix4();
  5302. uint ReadNetID();
  5303. Quaternion ReadPackedQuaternion();
  5304. Vector3 ReadPackedVector3(float);
  5305. Quaternion ReadQuaternion();
  5306. int16 ReadShort();
  5307. String ReadString();
  5308. StringHash ReadStringHash();
  5309. uint8 ReadUByte();
  5310. uint ReadUInt();
  5311. uint64 ReadUInt64();
  5312. uint16 ReadUShort();
  5313. uint ReadVLE();
  5314. Variant ReadVariant();
  5315. VariantMap ReadVariantMap();
  5316. Vector2 ReadVector2();
  5317. Vector3 ReadVector3();
  5318. Vector4 ReadVector4();
  5319. VectorBuffer ReadVectorBuffer(uint);
  5320. uint Seek(uint);
  5321. // Properties:
  5322. /* readonly */
  5323. uint availableSize;
  5324. /* readonly */
  5325. uint checksum;
  5326. /* readonly */
  5327. bool eof;
  5328. /* readonly */
  5329. String error;
  5330. /* readonly */
  5331. String name;
  5332. /* readonly */
  5333. bool open;
  5334. /* readonly */
  5335. uint position;
  5336. /* readonly */
  5337. int refs;
  5338. /* readonly */
  5339. uint size;
  5340. /* readonly */
  5341. HttpRequestState state;
  5342. /* readonly */
  5343. String url;
  5344. /* readonly */
  5345. String verb;
  5346. /* readonly */
  5347. int weakRefs;
  5348. };
  5349. class IKConstraint
  5350. {
  5351. public:
  5352. // Methods:
  5353. void ApplyAttributes();
  5354. void DrawDebugGeometry(DebugRenderer, bool);
  5355. Variant GetAttribute(const String&) const;
  5356. ValueAnimation GetAttributeAnimation(const String&) const;
  5357. float GetAttributeAnimationSpeed(const String&) const;
  5358. float GetAttributeAnimationTime(const String&) const;
  5359. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5360. Variant GetAttributeDefault(const String&) const;
  5361. bool GetInterceptNetworkUpdate(const String&) const;
  5362. bool HasSubscribedToEvent(Object, const String&);
  5363. bool HasSubscribedToEvent(const String&);
  5364. bool Load(File, bool = false);
  5365. bool Load(VectorBuffer&, bool = false);
  5366. bool LoadJSON(const JSONValue&, bool = false);
  5367. bool LoadXML(const XMLElement&, bool = false);
  5368. void MarkNetworkUpdate() const;
  5369. void Remove();
  5370. void RemoveAttributeAnimation(const String&);
  5371. void RemoveInstanceDefault();
  5372. void RemoveObjectAnimation();
  5373. void ResetToDefault();
  5374. bool Save(File) const;
  5375. bool Save(VectorBuffer&) const;
  5376. bool SaveJSON(JSONValue&) const;
  5377. bool SaveXML(XMLElement&) const;
  5378. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5379. void SetAnimationTime(float);
  5380. bool SetAttribute(const String&, const Variant&);
  5381. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5382. void SetAttributeAnimationSpeed(const String&, float);
  5383. void SetAttributeAnimationTime(const String&, float);
  5384. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5385. void SetInterceptNetworkUpdate(const String&, bool);
  5386. // Properties:
  5387. bool animationEnabled;
  5388. /* readonly */
  5389. Array<Variant> attributeDefaults;
  5390. /* readonly */
  5391. Array<AttributeInfo> attributeInfos;
  5392. Array<Variant> attributes;
  5393. /* readonly */
  5394. String category;
  5395. bool enabled;
  5396. /* readonly */
  5397. bool enabledEffective;
  5398. /* readonly */
  5399. uint id;
  5400. /* readonly */
  5401. Node node;
  5402. /* readonly */
  5403. uint numAttributes;
  5404. ObjectAnimation objectAnimation;
  5405. /* readonly */
  5406. int refs;
  5407. bool temporary;
  5408. /* readonly */
  5409. StringHash type;
  5410. /* readonly */
  5411. String typeName;
  5412. /* readonly */
  5413. int weakRefs;
  5414. };
  5415. class IKEffector
  5416. {
  5417. public:
  5418. // Methods:
  5419. void ApplyAttributes();
  5420. void DrawDebugGeometry(DebugRenderer, bool);
  5421. void DrawDebugGeometry(bool);
  5422. Variant GetAttribute(const String&) const;
  5423. ValueAnimation GetAttributeAnimation(const String&) const;
  5424. float GetAttributeAnimationSpeed(const String&) const;
  5425. float GetAttributeAnimationTime(const String&) const;
  5426. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5427. Variant GetAttributeDefault(const String&) const;
  5428. bool GetInterceptNetworkUpdate(const String&) const;
  5429. bool HasSubscribedToEvent(Object, const String&);
  5430. bool HasSubscribedToEvent(const String&);
  5431. bool Load(File, bool = false);
  5432. bool Load(VectorBuffer&, bool = false);
  5433. bool LoadJSON(const JSONValue&, bool = false);
  5434. bool LoadXML(const XMLElement&, bool = false);
  5435. void MarkNetworkUpdate() const;
  5436. void Remove();
  5437. void RemoveAttributeAnimation(const String&);
  5438. void RemoveInstanceDefault();
  5439. void RemoveObjectAnimation();
  5440. void ResetToDefault();
  5441. bool Save(File) const;
  5442. bool Save(VectorBuffer&) const;
  5443. bool SaveJSON(JSONValue&) const;
  5444. bool SaveXML(XMLElement&) const;
  5445. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5446. void SetAnimationTime(float);
  5447. bool SetAttribute(const String&, const Variant&);
  5448. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5449. void SetAttributeAnimationSpeed(const String&, float);
  5450. void SetAttributeAnimationTime(const String&, float);
  5451. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5452. void SetInterceptNetworkUpdate(const String&, bool);
  5453. // Properties:
  5454. bool animationEnabled;
  5455. /* readonly */
  5456. Array<Variant> attributeDefaults;
  5457. /* readonly */
  5458. Array<AttributeInfo> attributeInfos;
  5459. Array<Variant> attributes;
  5460. /* readonly */
  5461. String category;
  5462. uint chainLength;
  5463. bool enabled;
  5464. /* readonly */
  5465. bool enabledEffective;
  5466. /* readonly */
  5467. uint id;
  5468. bool inheritParentRotation;
  5469. /* readonly */
  5470. Node node;
  5471. /* readonly */
  5472. uint numAttributes;
  5473. ObjectAnimation objectAnimation;
  5474. /* readonly */
  5475. int refs;
  5476. float rotationDecay;
  5477. float rotationWeight;
  5478. String targetName;
  5479. Node targetNode;
  5480. Vector3 targetPosition;
  5481. Quaternion targetRotation;
  5482. bool temporary;
  5483. /* readonly */
  5484. StringHash type;
  5485. /* readonly */
  5486. String typeName;
  5487. /* readonly */
  5488. int weakRefs;
  5489. float weight;
  5490. bool weightedNlerp;
  5491. };
  5492. class IKSolver
  5493. {
  5494. public:
  5495. // Methods:
  5496. void ApplyAttributes();
  5497. void DrawDebugGeometry(DebugRenderer, bool);
  5498. void DrawDebugGeometry(bool);
  5499. Variant GetAttribute(const String&) const;
  5500. ValueAnimation GetAttributeAnimation(const String&) const;
  5501. float GetAttributeAnimationSpeed(const String&) const;
  5502. float GetAttributeAnimationTime(const String&) const;
  5503. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5504. Variant GetAttributeDefault(const String&) const;
  5505. bool GetInterceptNetworkUpdate(const String&) const;
  5506. bool HasSubscribedToEvent(Object, const String&);
  5507. bool HasSubscribedToEvent(const String&);
  5508. bool Load(File, bool = false);
  5509. bool Load(VectorBuffer&, bool = false);
  5510. bool LoadJSON(const JSONValue&, bool = false);
  5511. bool LoadXML(const XMLElement&, bool = false);
  5512. void MarkNetworkUpdate() const;
  5513. void Remove();
  5514. void RemoveAttributeAnimation(const String&);
  5515. void RemoveInstanceDefault();
  5516. void RemoveObjectAnimation();
  5517. void ResetToDefault();
  5518. void ResetToInitialPose();
  5519. bool Save(File) const;
  5520. bool Save(VectorBuffer&) const;
  5521. bool SaveJSON(JSONValue&) const;
  5522. bool SaveXML(XMLElement&) const;
  5523. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5524. void SetAnimationTime(float);
  5525. bool SetAttribute(const String&, const Variant&);
  5526. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5527. void SetAttributeAnimationSpeed(const String&, float);
  5528. void SetAttributeAnimationTime(const String&, float);
  5529. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5530. void SetInterceptNetworkUpdate(const String&, bool);
  5531. void Solve();
  5532. void UpdateInitialPose();
  5533. // Properties:
  5534. IKAlgorithm algorithm;
  5535. bool animationEnabled;
  5536. /* readonly */
  5537. Array<Variant> attributeDefaults;
  5538. /* readonly */
  5539. Array<AttributeInfo> attributeInfos;
  5540. Array<Variant> attributes;
  5541. bool autoSolve;
  5542. bool boneRotations;
  5543. /* readonly */
  5544. String category;
  5545. bool continuousSolving;
  5546. bool enabled;
  5547. /* readonly */
  5548. bool enabledEffective;
  5549. /* readonly */
  5550. uint id;
  5551. uint maximumIterations;
  5552. /* readonly */
  5553. Node node;
  5554. /* readonly */
  5555. uint numAttributes;
  5556. ObjectAnimation objectAnimation;
  5557. /* readonly */
  5558. int refs;
  5559. bool targetRotation;
  5560. bool temporary;
  5561. float tolerance;
  5562. /* readonly */
  5563. StringHash type;
  5564. /* readonly */
  5565. String typeName;
  5566. bool updatePose;
  5567. /* readonly */
  5568. int weakRefs;
  5569. };
  5570. class Image
  5571. {
  5572. public:
  5573. Image();
  5574. Image(const String&in);
  5575. // Methods:
  5576. void Clear(const Color&);
  5577. void ClearInt(uint);
  5578. bool FlipHorizontal();
  5579. bool FlipVertical();
  5580. Color GetPixel(int, int) const;
  5581. Color GetPixel(int, int, int) const;
  5582. Color GetPixelBilinear(float, float) const;
  5583. uint GetPixelInt(int, int) const;
  5584. uint GetPixelInt(int, int, int) const;
  5585. Color GetPixelTrilinear(float, float, float) const;
  5586. Image GetSubimage(const IntRect&) const;
  5587. bool HasSubscribedToEvent(Object, const String&);
  5588. bool HasSubscribedToEvent(const String&);
  5589. bool Load(File);
  5590. bool Load(VectorBuffer&);
  5591. bool Load(const String&);
  5592. bool LoadColorLUT(File);
  5593. bool LoadColorLUT(VectorBuffer&);
  5594. bool Resize(int, int);
  5595. bool Save(File) const;
  5596. bool Save(VectorBuffer&) const;
  5597. bool Save(const String&) const;
  5598. bool SaveBMP(const String&) const;
  5599. bool SaveDDS(const String&) const;
  5600. bool SaveJPG(const String&, int) const;
  5601. bool SavePNG(const String&) const;
  5602. bool SaveTGA(const String&) const;
  5603. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5604. void SetPixel(int, int, const Color&);
  5605. void SetPixel(int, int, int, const Color&);
  5606. void SetPixelInt(int, int, int, uint);
  5607. void SetPixelInt(int, int, uint);
  5608. bool SetSize(int, int, int, uint);
  5609. bool SetSize(int, int, uint);
  5610. // Properties:
  5611. /* readonly */
  5612. bool array;
  5613. /* readonly */
  5614. String category;
  5615. /* readonly */
  5616. uint components;
  5617. /* readonly */
  5618. bool compressed;
  5619. /* readonly */
  5620. CompressedFormat compressedFormat;
  5621. /* readonly */
  5622. bool cubemap;
  5623. /* readonly */
  5624. int depth;
  5625. /* readonly */
  5626. int height;
  5627. /* readonly */
  5628. uint memoryUse;
  5629. String name;
  5630. /* readonly */
  5631. uint numCompressedLevels;
  5632. /* readonly */
  5633. int refs;
  5634. /* readonly */
  5635. bool sRGB;
  5636. /* readonly */
  5637. StringHash type;
  5638. /* readonly */
  5639. String typeName;
  5640. /* readonly */
  5641. uint useTimer;
  5642. /* readonly */
  5643. int weakRefs;
  5644. /* readonly */
  5645. int width;
  5646. };
  5647. class IndexBuffer
  5648. {
  5649. public:
  5650. IndexBuffer();
  5651. // Methods:
  5652. VectorBuffer GetData();
  5653. bool HasSubscribedToEvent(Object, const String&);
  5654. bool HasSubscribedToEvent(const String&);
  5655. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5656. bool SetData(VectorBuffer&);
  5657. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5658. void SetSize(uint, bool, bool = false);
  5659. // Properties:
  5660. /* readonly */
  5661. String category;
  5662. /* readonly */
  5663. bool dynamic;
  5664. /* readonly */
  5665. uint indexCount;
  5666. /* readonly */
  5667. uint indexSize;
  5668. /* readonly */
  5669. int refs;
  5670. bool shadowed;
  5671. /* readonly */
  5672. StringHash type;
  5673. /* readonly */
  5674. String typeName;
  5675. /* readonly */
  5676. int weakRefs;
  5677. };
  5678. class Input
  5679. {
  5680. public:
  5681. // Methods:
  5682. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5683. void CenterMousePosition();
  5684. int GetKeyFromName(const String&) const;
  5685. int GetKeyFromScancode(int) const;
  5686. String GetKeyName(int) const;
  5687. int GetScancodeFromKey(int) const;
  5688. int GetScancodeFromName(const String&) const;
  5689. String GetScancodeName(int) const;
  5690. bool HasSubscribedToEvent(Object, const String&);
  5691. bool HasSubscribedToEvent(const String&);
  5692. uint LoadGestures(File);
  5693. uint LoadGestures(VectorBuffer&);
  5694. bool RecordGesture();
  5695. void RemoveAllGestures();
  5696. bool RemoveGesture(uint);
  5697. bool RemoveScreenJoystick(int);
  5698. void ResetMouseGrabbed();
  5699. void ResetMouseMode();
  5700. void ResetMouseVisible();
  5701. bool SaveGesture(File, uint);
  5702. bool SaveGesture(VectorBuffer&, uint);
  5703. bool SaveGestures(File);
  5704. bool SaveGestures(VectorBuffer&);
  5705. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5706. void SetMouseGrabbed(bool, bool = false);
  5707. void SetMouseMode(MouseMode, bool = false);
  5708. void SetMouseVisible(bool, bool = false);
  5709. // Properties:
  5710. /* readonly */
  5711. String category;
  5712. /* readonly */
  5713. bool focus;
  5714. /* readonly */
  5715. Vector2 inputScale;
  5716. /* readonly */
  5717. Array<JoystickState> joysticks;
  5718. /* readonly */
  5719. Array<JoystickState> joysticksByIndex;
  5720. /* readonly */
  5721. Array<JoystickState> joysticksByName;
  5722. /* readonly */
  5723. Array<bool> keyDown;
  5724. /* readonly */
  5725. Array<bool> keyPress;
  5726. /* readonly */
  5727. bool minimized;
  5728. /* readonly */
  5729. Array<bool> mouseButtonDown;
  5730. /* readonly */
  5731. Array<bool> mouseButtonPress;
  5732. bool mouseGrabbed;
  5733. /* readonly */
  5734. bool mouseLocked;
  5735. MouseMode mouseMode;
  5736. /* readonly */
  5737. IntVector2 mouseMove;
  5738. /* readonly */
  5739. int mouseMoveWheel;
  5740. /* readonly */
  5741. int mouseMoveX;
  5742. /* readonly */
  5743. int mouseMoveY;
  5744. IntVector2 mousePosition;
  5745. bool mouseVisible;
  5746. /* readonly */
  5747. uint numJoysticks;
  5748. /* readonly */
  5749. uint numTouches;
  5750. /* readonly */
  5751. Array<bool> qualifierDown;
  5752. /* readonly */
  5753. Array<bool> qualifierPress;
  5754. /* readonly */
  5755. int qualifiers;
  5756. /* readonly */
  5757. int refs;
  5758. /* readonly */
  5759. Array<bool> scancodeDown;
  5760. /* readonly */
  5761. Array<bool> scancodePress;
  5762. Array<bool> screenJoystickVisible;
  5763. /* readonly */
  5764. bool screenKeyboardSupport;
  5765. bool screenKeyboardVisible;
  5766. bool toggleFullscreen;
  5767. bool touchEmulation;
  5768. /* readonly */
  5769. Array<TouchState> touches;
  5770. /* readonly */
  5771. StringHash type;
  5772. /* readonly */
  5773. String typeName;
  5774. /* readonly */
  5775. int weakRefs;
  5776. };
  5777. class IntRect
  5778. {
  5779. public:
  5780. IntRect();
  5781. IntRect(const IntRect&in);
  5782. IntRect(int, int, int, int);
  5783. IntRect(int[]&inout);
  5784. // Methods:
  5785. Intersection IsInside(const IntVector2&) const;
  5786. // Properties:
  5787. int bottom;
  5788. /* readonly */
  5789. Array<int> data;
  5790. /* readonly */
  5791. int height;
  5792. int left;
  5793. int right;
  5794. /* readonly */
  5795. IntVector2 size;
  5796. int top;
  5797. /* readonly */
  5798. int width;
  5799. };
  5800. class IntVector2
  5801. {
  5802. public:
  5803. IntVector2();
  5804. IntVector2(const IntVector2&in);
  5805. IntVector2(int, int);
  5806. IntVector2(int[]&inout);
  5807. // Methods:
  5808. float Length() const;
  5809. uint ToHash() const;
  5810. String ToString() const;
  5811. // Properties:
  5812. /* readonly */
  5813. Array<int> data;
  5814. int x;
  5815. int y;
  5816. // Constants:
  5817. static const IntVector2 DOWN;
  5818. static const IntVector2 LEFT;
  5819. static const IntVector2 ONE;
  5820. static const IntVector2 RIGHT;
  5821. static const IntVector2 UP;
  5822. static const IntVector2 ZERO;
  5823. };
  5824. class IntVector3
  5825. {
  5826. public:
  5827. IntVector3();
  5828. IntVector3(const IntVector3&in);
  5829. IntVector3(int, int, int);
  5830. IntVector3(int[]&inout);
  5831. // Methods:
  5832. float Length() const;
  5833. uint ToHash() const;
  5834. String ToString() const;
  5835. // Properties:
  5836. /* readonly */
  5837. Array<int> data;
  5838. int x;
  5839. int y;
  5840. int z;
  5841. // Constants:
  5842. static const IntVector3 BACK;
  5843. static const IntVector3 DOWN;
  5844. static const IntVector3 FORWARD;
  5845. static const IntVector3 LEFT;
  5846. static const IntVector3 ONE;
  5847. static const IntVector3 RIGHT;
  5848. static const IntVector3 UP;
  5849. static const IntVector3 ZERO;
  5850. };
  5851. class JSONFile
  5852. {
  5853. public:
  5854. JSONFile();
  5855. JSONFile(const String&in);
  5856. // Methods:
  5857. bool FromString(const String&);
  5858. JSONValue& GetRoot();
  5859. bool HasSubscribedToEvent(Object, const String&);
  5860. bool HasSubscribedToEvent(const String&);
  5861. bool Load(File);
  5862. bool Load(VectorBuffer&);
  5863. bool Load(const String&);
  5864. bool Save(File) const;
  5865. bool Save(File, const String&) const;
  5866. bool Save(VectorBuffer&) const;
  5867. bool Save(const String&) const;
  5868. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5869. // Properties:
  5870. /* readonly */
  5871. String category;
  5872. /* readonly */
  5873. uint memoryUse;
  5874. String name;
  5875. /* readonly */
  5876. int refs;
  5877. /* readonly */
  5878. JSONValue root;
  5879. /* readonly */
  5880. StringHash type;
  5881. /* readonly */
  5882. String typeName;
  5883. /* readonly */
  5884. uint useTimer;
  5885. /* readonly */
  5886. int weakRefs;
  5887. };
  5888. class JSONValue
  5889. {
  5890. public:
  5891. ~JSONValue();
  5892. JSONValue();
  5893. JSONValue(bool);
  5894. JSONValue(int);
  5895. JSONValue(uint);
  5896. JSONValue(float);
  5897. JSONValue(double);
  5898. JSONValue(const String&in);
  5899. JSONValue(const JSONValue&in);
  5900. // Methods:
  5901. void Clear();
  5902. bool Contains(const String&) const;
  5903. void Erase(const String&);
  5904. void Erase(uint, uint = 1);
  5905. bool GetBool() const;
  5906. double GetDouble() const;
  5907. float GetFloat() const;
  5908. int GetInt() const;
  5909. uint GetUInt() const;
  5910. Variant GetVariant() const;
  5911. VariantMap GetVariantMap() const;
  5912. void Insert(uint, const JSONValue&);
  5913. const JSONValue& Get(const String&) const;
  5914. void Pop();
  5915. void Push(const JSONValue&);
  5916. void Resize(uint);
  5917. void Set(const String&, const JSONValue&);
  5918. void SetVariant(const Variant&);
  5919. void SetVariantMap(const VariantMap&);
  5920. const String& GetString() const;
  5921. // Properties:
  5922. /* readonly */
  5923. bool isArray;
  5924. /* readonly */
  5925. bool isBool;
  5926. /* readonly */
  5927. bool isNull;
  5928. /* readonly */
  5929. bool isNumber;
  5930. /* readonly */
  5931. bool isObject;
  5932. /* readonly */
  5933. bool isString;
  5934. /* readonly */
  5935. Array<String> keys;
  5936. /* readonly */
  5937. JSONNumberType numberType;
  5938. /* readonly */
  5939. String numberTypeName;
  5940. /* readonly */
  5941. uint size;
  5942. /* readonly */
  5943. JSONValueType valueType;
  5944. /* readonly */
  5945. String valueTypeName;
  5946. /* readonly */
  5947. Array<JSONValue> values;
  5948. };
  5949. class JoystickState
  5950. {
  5951. public:
  5952. // Properties:
  5953. /* readonly */
  5954. Array<float> axisPosition;
  5955. /* readonly */
  5956. Array<bool> buttonDown;
  5957. /* readonly */
  5958. Array<bool> buttonPress;
  5959. /* readonly */
  5960. bool controller;
  5961. /* readonly */
  5962. Array<int> hatPosition;
  5963. int joystickID;
  5964. String name;
  5965. /* readonly */
  5966. uint numAxes;
  5967. /* readonly */
  5968. uint numButtons;
  5969. /* readonly */
  5970. uint numHats;
  5971. };
  5972. class Light
  5973. {
  5974. public:
  5975. // Methods:
  5976. void ApplyAttributes();
  5977. void DrawDebugGeometry(DebugRenderer, bool);
  5978. Variant GetAttribute(const String&) const;
  5979. ValueAnimation GetAttributeAnimation(const String&) const;
  5980. float GetAttributeAnimationSpeed(const String&) const;
  5981. float GetAttributeAnimationTime(const String&) const;
  5982. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5983. Variant GetAttributeDefault(const String&) const;
  5984. bool GetInterceptNetworkUpdate(const String&) const;
  5985. bool HasSubscribedToEvent(Object, const String&);
  5986. bool HasSubscribedToEvent(const String&);
  5987. bool IsInView(Camera) const;
  5988. bool Load(File, bool = false);
  5989. bool Load(VectorBuffer&, bool = false);
  5990. bool LoadJSON(const JSONValue&, bool = false);
  5991. bool LoadXML(const XMLElement&, bool = false);
  5992. void MarkNetworkUpdate() const;
  5993. void Remove();
  5994. void RemoveAttributeAnimation(const String&);
  5995. void RemoveInstanceDefault();
  5996. void RemoveObjectAnimation();
  5997. void ResetToDefault();
  5998. bool Save(File) const;
  5999. bool Save(VectorBuffer&) const;
  6000. bool SaveJSON(JSONValue&) const;
  6001. bool SaveXML(XMLElement&) const;
  6002. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6003. void SetAnimationTime(float);
  6004. bool SetAttribute(const String&, const Variant&);
  6005. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6006. void SetAttributeAnimationSpeed(const String&, float);
  6007. void SetAttributeAnimationTime(const String&, float);
  6008. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6009. void SetInterceptNetworkUpdate(const String&, bool);
  6010. // Properties:
  6011. bool animationEnabled;
  6012. float aspectRatio;
  6013. /* readonly */
  6014. Array<Variant> attributeDefaults;
  6015. /* readonly */
  6016. Array<AttributeInfo> attributeInfos;
  6017. Array<Variant> attributes;
  6018. /* readonly */
  6019. BoundingBox boundingBox;
  6020. float brightness;
  6021. bool castShadows;
  6022. /* readonly */
  6023. String category;
  6024. Color color;
  6025. /* readonly */
  6026. Color colorFromTemperature;
  6027. float drawDistance;
  6028. /* readonly */
  6029. Color effectiveColor;
  6030. /* readonly */
  6031. float effectiveSpecularIntensity;
  6032. bool enabled;
  6033. /* readonly */
  6034. bool enabledEffective;
  6035. float fadeDistance;
  6036. float fov;
  6037. /* readonly */
  6038. Frustum frustum;
  6039. /* readonly */
  6040. uint id;
  6041. /* readonly */
  6042. bool inView;
  6043. float length;
  6044. uint lightMask;
  6045. LightType lightType;
  6046. float lodBias;
  6047. uint maxLights;
  6048. /* readonly */
  6049. bool negative;
  6050. /* readonly */
  6051. Node node;
  6052. /* readonly */
  6053. uint numAttributes;
  6054. /* readonly */
  6055. int numShadowSplits;
  6056. ObjectAnimation objectAnimation;
  6057. bool occludee;
  6058. bool occluder;
  6059. bool perVertex;
  6060. float radius;
  6061. Texture rampTexture;
  6062. float range;
  6063. /* readonly */
  6064. int refs;
  6065. BiasParameters shadowBias;
  6066. CascadeParameters shadowCascade;
  6067. float shadowDistance;
  6068. float shadowFadeDistance;
  6069. FocusParameters shadowFocus;
  6070. float shadowIntensity;
  6071. uint shadowMask;
  6072. float shadowMaxExtrusion;
  6073. float shadowNearFarRatio;
  6074. float shadowResolution;
  6075. Texture shapeTexture;
  6076. float specularIntensity;
  6077. float temperature;
  6078. bool temporary;
  6079. /* readonly */
  6080. StringHash type;
  6081. /* readonly */
  6082. String typeName;
  6083. bool usePhysicalValues;
  6084. uint viewMask;
  6085. /* readonly */
  6086. int weakRefs;
  6087. /* readonly */
  6088. BoundingBox worldBoundingBox;
  6089. uint zoneMask;
  6090. };
  6091. class LineEdit
  6092. {
  6093. public:
  6094. LineEdit();
  6095. LineEdit(const String&in);
  6096. // Methods:
  6097. void AddChild(UIElement);
  6098. void AddTag(const String&);
  6099. void AddTags(const String&, int8 = ';');
  6100. void ApplyAttributes();
  6101. void BringToFront();
  6102. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6103. void DisableLayoutUpdate();
  6104. IntVector2 ElementToScreen(const IntVector2&);
  6105. void EnableLayoutUpdate();
  6106. uint FindChild(UIElement) const;
  6107. Variant GetAttribute(const String&) const;
  6108. ValueAnimation GetAttributeAnimation(const String&) const;
  6109. float GetAttributeAnimationSpeed(const String&) const;
  6110. float GetAttributeAnimationTime(const String&) const;
  6111. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6112. Variant GetAttributeDefault(const String&) const;
  6113. UIElement GetChild(const String&, bool = false) const;
  6114. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6115. Array<UIElement> GetChildren(bool = false) const;
  6116. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6117. UIElement GetElementEventSender() const;
  6118. bool GetInterceptNetworkUpdate(const String&) const;
  6119. uint GetNumChildren(bool) const;
  6120. bool HasSubscribedToEvent(Object, const String&);
  6121. bool HasSubscribedToEvent(const String&);
  6122. bool HasTag(const String&) const;
  6123. void InsertChild(uint, UIElement);
  6124. bool IsInside(IntVector2, bool);
  6125. bool IsInsideCombined(IntVector2, bool);
  6126. bool Load(File, bool = false);
  6127. bool Load(VectorBuffer&, bool = false);
  6128. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6129. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6130. bool LoadJSON(const JSONValue&, bool = false);
  6131. bool LoadXML(File);
  6132. bool LoadXML(VectorBuffer&);
  6133. bool LoadXML(XMLFile, XMLFile);
  6134. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6135. bool LoadXML(const XMLElement&, bool = false);
  6136. void MarkNetworkUpdate() const;
  6137. void Remove();
  6138. void RemoveAllChildren();
  6139. void RemoveAllTags();
  6140. void RemoveAttributeAnimation(const String&);
  6141. void RemoveChild(UIElement, uint = 0);
  6142. void RemoveChild(uint);
  6143. void RemoveInstanceDefault();
  6144. void RemoveObjectAnimation();
  6145. bool RemoveTag(const String&);
  6146. void ResetDeepEnabled();
  6147. void ResetToDefault();
  6148. bool Save(File) const;
  6149. bool Save(VectorBuffer&) const;
  6150. bool SaveJSON(JSONValue&) const;
  6151. bool SaveXML(File, const String& = "\t");
  6152. bool SaveXML(VectorBuffer&, const String& = "\t");
  6153. bool SaveXML(XMLElement&) const;
  6154. IntVector2 ScreenToElement(const IntVector2&);
  6155. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6156. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6157. void SetAnimationTime(float);
  6158. bool SetAttribute(const String&, const Variant&);
  6159. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6160. void SetAttributeAnimationSpeed(const String&, float);
  6161. void SetAttributeAnimationTime(const String&, float);
  6162. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6163. void SetDeepEnabled(bool);
  6164. void SetEnabledRecursive(bool);
  6165. void SetFixedHeight(int);
  6166. void SetFixedSize(int, int);
  6167. void SetFixedWidth(int);
  6168. void SetFullImageRect();
  6169. void SetHoverOffset(int, int);
  6170. void SetInterceptNetworkUpdate(const String&, bool);
  6171. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6172. void SetMaxAnchor(float, float);
  6173. void SetMaxSize(int, int);
  6174. void SetMinAnchor(float, float);
  6175. void SetMinSize(int, int);
  6176. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6177. void SetPivot(float, float);
  6178. void SetPosition(int, int);
  6179. void SetSize(int, int);
  6180. bool SetStyle(const String&, XMLFile = null);
  6181. bool SetStyle(const XMLElement&);
  6182. bool SetStyleAuto(XMLFile = null);
  6183. void UpdateLayout();
  6184. const Variant& GetVar(const StringHash&);
  6185. // Properties:
  6186. bool animationEnabled;
  6187. /* readonly */
  6188. Array<Variant> attributeDefaults;
  6189. /* readonly */
  6190. Array<AttributeInfo> attributeInfos;
  6191. Array<Variant> attributes;
  6192. BlendMode blendMode;
  6193. IntRect border;
  6194. bool bringToBack;
  6195. bool bringToFront;
  6196. /* readonly */
  6197. String category;
  6198. /* readonly */
  6199. IntVector2 childOffset;
  6200. /* readonly */
  6201. Array<UIElement> children;
  6202. IntRect clipBorder;
  6203. bool clipChildren;
  6204. /* writeonly */
  6205. Color color;
  6206. /* readonly */
  6207. bool colorGradient;
  6208. Array<Color> colors;
  6209. /* readonly */
  6210. IntRect combinedScreenRect;
  6211. /* readonly */
  6212. BorderImage cursor;
  6213. float cursorBlinkRate;
  6214. bool cursorMovable;
  6215. uint cursorPosition;
  6216. XMLFile defaultStyle;
  6217. /* readonly */
  6218. float derivedOpacity;
  6219. /* readonly */
  6220. uint dragButtonCombo;
  6221. /* readonly */
  6222. int dragButtonCount;
  6223. uint dragDropMode;
  6224. uint echoCharacter;
  6225. bool editable;
  6226. bool elementEventSender;
  6227. bool enableAnchor;
  6228. bool enabled;
  6229. /* readonly */
  6230. bool enabledSelf;
  6231. /* readonly */
  6232. bool fixedHeight;
  6233. /* readonly */
  6234. bool fixedSize;
  6235. /* readonly */
  6236. bool fixedWidth;
  6237. bool focus;
  6238. FocusMode focusMode;
  6239. int height;
  6240. HorizontalAlignment horizontalAlignment;
  6241. IntVector2 hoverOffset;
  6242. /* readonly */
  6243. bool hovering;
  6244. IntRect imageBorder;
  6245. IntRect imageRect;
  6246. int indent;
  6247. int indentSpacing;
  6248. /* readonly */
  6249. int indentWidth;
  6250. bool internal;
  6251. IntRect layoutBorder;
  6252. Vector2 layoutFlexScale;
  6253. LayoutMode layoutMode;
  6254. int layoutSpacing;
  6255. Vector2 maxAnchor;
  6256. int maxHeight;
  6257. uint maxLength;
  6258. IntVector2 maxOffset;
  6259. IntVector2 maxSize;
  6260. int maxWidth;
  6261. Vector2 minAnchor;
  6262. int minHeight;
  6263. IntVector2 minOffset;
  6264. IntVector2 minSize;
  6265. int minWidth;
  6266. String name;
  6267. /* readonly */
  6268. uint numAllChildren;
  6269. /* readonly */
  6270. uint numAttributes;
  6271. /* readonly */
  6272. uint numChildren;
  6273. ObjectAnimation objectAnimation;
  6274. float opacity;
  6275. UIElement parent;
  6276. Vector2 pivot;
  6277. IntVector2 position;
  6278. int priority;
  6279. /* readonly */
  6280. int refs;
  6281. /* readonly */
  6282. UIElement root;
  6283. /* readonly */
  6284. IntVector2 screenPosition;
  6285. bool selected;
  6286. IntVector2 size;
  6287. bool sortChildren;
  6288. String style;
  6289. /* readonly */
  6290. Array<String> tags;
  6291. bool temporary;
  6292. String text;
  6293. bool textCopyable;
  6294. /* readonly */
  6295. Text textElement;
  6296. bool textSelectable;
  6297. Texture texture;
  6298. bool tiled;
  6299. TraversalMode traversalMode;
  6300. /* readonly */
  6301. StringHash type;
  6302. /* readonly */
  6303. String typeName;
  6304. bool useDerivedOpacity;
  6305. /* readonly */
  6306. VariantMap vars;
  6307. VerticalAlignment verticalAlignment;
  6308. bool visible;
  6309. /* readonly */
  6310. bool visibleEffective;
  6311. /* readonly */
  6312. int weakRefs;
  6313. int width;
  6314. };
  6315. class ListView
  6316. {
  6317. public:
  6318. ListView();
  6319. ListView(const String&in);
  6320. // Methods:
  6321. void AddChild(UIElement);
  6322. void AddItem(UIElement);
  6323. void AddSelection(uint);
  6324. void AddTag(const String&);
  6325. void AddTags(const String&, int8 = ';');
  6326. void ApplyAttributes();
  6327. void BringToFront();
  6328. void ChangeSelection(int, bool);
  6329. void ClearSelection();
  6330. void CopySelectedItemsToClipboard();
  6331. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6332. void DisableLayoutUpdate();
  6333. IntVector2 ElementToScreen(const IntVector2&);
  6334. void EnableLayoutUpdate();
  6335. void Expand(uint, bool, bool = false);
  6336. uint FindChild(UIElement) const;
  6337. uint FindItem(UIElement);
  6338. Variant GetAttribute(const String&) const;
  6339. ValueAnimation GetAttributeAnimation(const String&) const;
  6340. float GetAttributeAnimationSpeed(const String&) const;
  6341. float GetAttributeAnimationTime(const String&) const;
  6342. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6343. Variant GetAttributeDefault(const String&) const;
  6344. UIElement GetChild(const String&, bool = false) const;
  6345. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6346. Array<UIElement> GetChildren(bool = false) const;
  6347. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6348. UIElement GetElementEventSender() const;
  6349. bool GetInterceptNetworkUpdate(const String&) const;
  6350. Array<UIElement> GetItems() const;
  6351. uint GetNumChildren(bool) const;
  6352. bool HasSubscribedToEvent(Object, const String&);
  6353. bool HasSubscribedToEvent(const String&);
  6354. bool HasTag(const String&) const;
  6355. void InsertChild(uint, UIElement);
  6356. void InsertItem(uint, UIElement, UIElement = null);
  6357. bool IsExpanded(uint) const;
  6358. bool IsInside(IntVector2, bool);
  6359. bool IsInsideCombined(IntVector2, bool);
  6360. bool IsSelected(uint) const;
  6361. bool Load(File, bool = false);
  6362. bool Load(VectorBuffer&, bool = false);
  6363. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6364. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6365. bool LoadJSON(const JSONValue&, bool = false);
  6366. bool LoadXML(File);
  6367. bool LoadXML(VectorBuffer&);
  6368. bool LoadXML(XMLFile, XMLFile);
  6369. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6370. bool LoadXML(const XMLElement&, bool = false);
  6371. void MarkNetworkUpdate() const;
  6372. void Remove();
  6373. void RemoveAllChildren();
  6374. void RemoveAllItems();
  6375. void RemoveAllTags();
  6376. void RemoveAttributeAnimation(const String&);
  6377. void RemoveChild(UIElement, uint = 0);
  6378. void RemoveChild(uint);
  6379. void RemoveInstanceDefault();
  6380. void RemoveItem(UIElement, uint = 0);
  6381. void RemoveItem(uint);
  6382. void RemoveObjectAnimation();
  6383. void RemoveSelection(uint);
  6384. bool RemoveTag(const String&);
  6385. void ResetDeepEnabled();
  6386. void ResetToDefault();
  6387. bool Save(File) const;
  6388. bool Save(VectorBuffer&) const;
  6389. bool SaveJSON(JSONValue&) const;
  6390. bool SaveXML(File, const String& = "\t");
  6391. bool SaveXML(VectorBuffer&, const String& = "\t");
  6392. bool SaveXML(XMLElement&) const;
  6393. IntVector2 ScreenToElement(const IntVector2&);
  6394. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6395. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6396. void SetAnimationTime(float);
  6397. bool SetAttribute(const String&, const Variant&);
  6398. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6399. void SetAttributeAnimationSpeed(const String&, float);
  6400. void SetAttributeAnimationTime(const String&, float);
  6401. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6402. void SetDeepEnabled(bool);
  6403. void SetEnabledRecursive(bool);
  6404. void SetFixedHeight(int);
  6405. void SetFixedSize(int, int);
  6406. void SetFixedWidth(int);
  6407. void SetInterceptNetworkUpdate(const String&, bool);
  6408. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6409. void SetMaxAnchor(float, float);
  6410. void SetMaxSize(int, int);
  6411. void SetMinAnchor(float, float);
  6412. void SetMinSize(int, int);
  6413. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6414. void SetPivot(float, float);
  6415. void SetPosition(int, int);
  6416. void SetScrollBarsVisible(bool, bool);
  6417. void SetSelections(Array<uint>);
  6418. void SetSize(int, int);
  6419. bool SetStyle(const String&, XMLFile = null);
  6420. bool SetStyle(const XMLElement&);
  6421. bool SetStyleAuto(XMLFile = null);
  6422. void SetViewPosition(int, int);
  6423. void ToggleExpand(uint, bool = false);
  6424. void ToggleSelection(uint);
  6425. void UpdateLayout();
  6426. const Variant& GetVar(const StringHash&);
  6427. // Properties:
  6428. bool animationEnabled;
  6429. /* readonly */
  6430. Array<Variant> attributeDefaults;
  6431. /* readonly */
  6432. Array<AttributeInfo> attributeInfos;
  6433. Array<Variant> attributes;
  6434. bool autoDisableChildren;
  6435. float autoDisableThreshold;
  6436. int baseIndent;
  6437. bool bringToBack;
  6438. bool bringToFront;
  6439. /* readonly */
  6440. String category;
  6441. /* readonly */
  6442. IntVector2 childOffset;
  6443. /* readonly */
  6444. Array<UIElement> children;
  6445. bool clearSelectionOnDefocus;
  6446. IntRect clipBorder;
  6447. bool clipChildren;
  6448. /* writeonly */
  6449. Color color;
  6450. /* readonly */
  6451. bool colorGradient;
  6452. Array<Color> colors;
  6453. /* readonly */
  6454. IntRect combinedScreenRect;
  6455. /* readonly */
  6456. UIElement contentElement;
  6457. XMLFile defaultStyle;
  6458. /* readonly */
  6459. float derivedOpacity;
  6460. /* readonly */
  6461. uint dragButtonCombo;
  6462. /* readonly */
  6463. int dragButtonCount;
  6464. uint dragDropMode;
  6465. bool editable;
  6466. bool elementEventSender;
  6467. bool enableAnchor;
  6468. bool enabled;
  6469. /* readonly */
  6470. bool enabledSelf;
  6471. /* readonly */
  6472. bool fixedHeight;
  6473. /* readonly */
  6474. bool fixedSize;
  6475. /* readonly */
  6476. bool fixedWidth;
  6477. bool focus;
  6478. FocusMode focusMode;
  6479. int height;
  6480. bool hierarchyMode;
  6481. HighlightMode highlightMode;
  6482. HorizontalAlignment horizontalAlignment;
  6483. /* readonly */
  6484. ScrollBar horizontalScrollBar;
  6485. /* readonly */
  6486. bool hovering;
  6487. int indent;
  6488. int indentSpacing;
  6489. /* readonly */
  6490. int indentWidth;
  6491. bool internal;
  6492. /* readonly */
  6493. Array<UIElement> items;
  6494. IntRect layoutBorder;
  6495. Vector2 layoutFlexScale;
  6496. LayoutMode layoutMode;
  6497. int layoutSpacing;
  6498. Vector2 maxAnchor;
  6499. int maxHeight;
  6500. IntVector2 maxOffset;
  6501. IntVector2 maxSize;
  6502. int maxWidth;
  6503. Vector2 minAnchor;
  6504. int minHeight;
  6505. IntVector2 minOffset;
  6506. IntVector2 minSize;
  6507. int minWidth;
  6508. bool multiselect;
  6509. String name;
  6510. /* readonly */
  6511. uint numAllChildren;
  6512. /* readonly */
  6513. uint numAttributes;
  6514. /* readonly */
  6515. uint numChildren;
  6516. /* readonly */
  6517. uint numItems;
  6518. ObjectAnimation objectAnimation;
  6519. float opacity;
  6520. float pageStep;
  6521. UIElement parent;
  6522. Vector2 pivot;
  6523. IntVector2 position;
  6524. int priority;
  6525. /* readonly */
  6526. int refs;
  6527. /* readonly */
  6528. UIElement root;
  6529. /* readonly */
  6530. IntVector2 screenPosition;
  6531. bool scrollBarsAutoVisible;
  6532. float scrollDeceleration;
  6533. /* readonly */
  6534. BorderImage scrollPanel;
  6535. float scrollSnapEpsilon;
  6536. float scrollStep;
  6537. bool selectOnClickEnd;
  6538. bool selected;
  6539. /* readonly */
  6540. UIElement selectedItem;
  6541. /* readonly */
  6542. Array<UIElement> selectedItems;
  6543. uint selection;
  6544. /* readonly */
  6545. Array<uint> selections;
  6546. IntVector2 size;
  6547. bool sortChildren;
  6548. String style;
  6549. /* readonly */
  6550. Array<String> tags;
  6551. bool temporary;
  6552. TraversalMode traversalMode;
  6553. /* readonly */
  6554. StringHash type;
  6555. /* readonly */
  6556. String typeName;
  6557. bool useDerivedOpacity;
  6558. /* readonly */
  6559. VariantMap vars;
  6560. VerticalAlignment verticalAlignment;
  6561. /* readonly */
  6562. ScrollBar verticalScrollBar;
  6563. IntVector2 viewPosition;
  6564. bool visible;
  6565. /* readonly */
  6566. bool visibleEffective;
  6567. /* readonly */
  6568. int weakRefs;
  6569. int width;
  6570. };
  6571. class Localization
  6572. {
  6573. public:
  6574. // Methods:
  6575. String Get(const String&);
  6576. String GetLanguage(int);
  6577. int GetLanguageIndex(const String&);
  6578. bool HasSubscribedToEvent(Object, const String&);
  6579. bool HasSubscribedToEvent(const String&);
  6580. void LoadJSON(const JSONValue&);
  6581. void LoadJSONFile(const String&);
  6582. void Reset();
  6583. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6584. void SetLanguage(const String&);
  6585. void SetLanguage(int);
  6586. // Properties:
  6587. /* readonly */
  6588. String category;
  6589. /* readonly */
  6590. String language;
  6591. /* readonly */
  6592. int languageIndex;
  6593. /* readonly */
  6594. int numLanguages;
  6595. /* readonly */
  6596. int refs;
  6597. /* readonly */
  6598. StringHash type;
  6599. /* readonly */
  6600. String typeName;
  6601. /* readonly */
  6602. int weakRefs;
  6603. };
  6604. class Log
  6605. {
  6606. public:
  6607. // Methods:
  6608. void Close();
  6609. void Debug(const String&);
  6610. void Error(const String&);
  6611. bool HasSubscribedToEvent(Object, const String&);
  6612. bool HasSubscribedToEvent(const String&);
  6613. void Info(const String&);
  6614. void Open(const String&);
  6615. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6616. void Warning(const String&);
  6617. void Write(const String&, bool = false);
  6618. // Properties:
  6619. /* readonly */
  6620. String category;
  6621. /* readonly */
  6622. String lastMessage;
  6623. int level;
  6624. bool quiet;
  6625. /* readonly */
  6626. int refs;
  6627. bool timeStamp;
  6628. /* readonly */
  6629. StringHash type;
  6630. /* readonly */
  6631. String typeName;
  6632. /* readonly */
  6633. int weakRefs;
  6634. };
  6635. class Material
  6636. {
  6637. public:
  6638. Material();
  6639. Material(const String&in);
  6640. // Methods:
  6641. Material Clone(const String& = String ( )) const;
  6642. Pass GetPass(uint, const String&);
  6643. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6644. float GetShaderParameterAnimationSpeed(const String&) const;
  6645. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6646. bool HasSubscribedToEvent(Object, const String&);
  6647. bool HasSubscribedToEvent(const String&);
  6648. bool Load(File);
  6649. bool Load(VectorBuffer&);
  6650. bool Load(const JSONValue&);
  6651. bool Load(const String&);
  6652. bool Load(const XMLElement&);
  6653. void RemoveShaderParameter(const String&);
  6654. bool Save(File) const;
  6655. bool Save(JSONValue&) const;
  6656. bool Save(VectorBuffer&) const;
  6657. bool Save(XMLElement&) const;
  6658. bool Save(const String&) const;
  6659. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6660. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6661. void SetShaderParameterAnimationSpeed(const String&, float);
  6662. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6663. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6664. void SetUVTransform(const Vector2&, float, const Vector2&);
  6665. void SetUVTransform(const Vector2&, float, float);
  6666. void SortTechniques();
  6667. // Properties:
  6668. bool alphaToCoverage;
  6669. /* readonly */
  6670. String category;
  6671. CullMode cullMode;
  6672. BiasParameters depthBias;
  6673. FillMode fillMode;
  6674. bool lineAntiAlias;
  6675. /* readonly */
  6676. uint memoryUse;
  6677. String name;
  6678. uint numTechniques;
  6679. bool occlusion;
  6680. String pixelShaderDefines;
  6681. /* readonly */
  6682. int refs;
  6683. uint8 renderOrder;
  6684. Scene scene;
  6685. /* readonly */
  6686. Array<String> shaderParameterNames;
  6687. Array<Variant> shaderParameters;
  6688. CullMode shadowCullMode;
  6689. /* readonly */
  6690. Array<TechniqueEntry> techniqueEntries;
  6691. /* readonly */
  6692. Array<Technique> techniques;
  6693. Array<Texture> textures;
  6694. /* readonly */
  6695. StringHash type;
  6696. /* readonly */
  6697. String typeName;
  6698. /* readonly */
  6699. uint useTimer;
  6700. String vertexShaderDefines;
  6701. /* readonly */
  6702. int weakRefs;
  6703. };
  6704. class Matrix2
  6705. {
  6706. public:
  6707. Matrix2();
  6708. Matrix2(const Matrix2&in);
  6709. Matrix2(float, float, float, float);
  6710. // Methods:
  6711. bool Equals(const Matrix2&) const;
  6712. Matrix2 Inverse() const;
  6713. Vector2 Scale() const;
  6714. Matrix2 Scaled(const Vector2&) const;
  6715. void SetScale(const Vector2&);
  6716. void SetScale(float);
  6717. String ToString() const;
  6718. Matrix2 Transpose() const;
  6719. // Properties:
  6720. float m00;
  6721. float m01;
  6722. float m10;
  6723. float m11;
  6724. };
  6725. class Matrix3
  6726. {
  6727. public:
  6728. Matrix3();
  6729. Matrix3(const Matrix3&in);
  6730. Matrix3(float, float, float, float, float, float, float, float, float);
  6731. // Methods:
  6732. bool Equals(const Matrix3&) const;
  6733. Matrix3 Inverse() const;
  6734. Vector3 Scale() const;
  6735. Matrix3 Scaled(const Vector3&) const;
  6736. void SetScale(const Vector3&);
  6737. void SetScale(float);
  6738. String ToString() const;
  6739. Matrix3 Transpose() const;
  6740. // Properties:
  6741. float m00;
  6742. float m01;
  6743. float m02;
  6744. float m10;
  6745. float m11;
  6746. float m12;
  6747. float m20;
  6748. float m21;
  6749. float m22;
  6750. };
  6751. class Matrix3x4
  6752. {
  6753. public:
  6754. Matrix3x4();
  6755. Matrix3x4(const Matrix3x4&in);
  6756. Matrix3x4(const Matrix3&in);
  6757. Matrix3x4(const Matrix4&in);
  6758. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  6759. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  6760. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  6761. // Methods:
  6762. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6763. bool Equals(const Matrix3x4&) const;
  6764. Matrix3x4 Inverse() const;
  6765. Quaternion Rotation() const;
  6766. Matrix3 RotationMatrix() const;
  6767. Vector3 Scale() const;
  6768. void SetRotation(const Matrix3&);
  6769. void SetScale(const Vector3&);
  6770. void SetScale(float);
  6771. void SetTranslation(const Vector3&);
  6772. Matrix3 ToMatrix3() const;
  6773. Matrix4 ToMatrix4() const;
  6774. String ToString() const;
  6775. Vector3 Translation() const;
  6776. // Properties:
  6777. float m00;
  6778. float m01;
  6779. float m02;
  6780. float m03;
  6781. float m10;
  6782. float m11;
  6783. float m12;
  6784. float m13;
  6785. float m20;
  6786. float m21;
  6787. float m22;
  6788. float m23;
  6789. };
  6790. class Matrix4
  6791. {
  6792. public:
  6793. Matrix4();
  6794. Matrix4(const Matrix4&in);
  6795. Matrix4(const Matrix3&in);
  6796. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  6797. // Methods:
  6798. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6799. bool Equals(const Matrix4&) const;
  6800. Matrix4 Inverse() const;
  6801. Quaternion Rotation() const;
  6802. Matrix3 RotationMatrix() const;
  6803. Vector3 Scale() const;
  6804. void SetRotation(const Matrix3&);
  6805. void SetScale(const Vector3&);
  6806. void SetScale(float);
  6807. void SetTranslation(const Vector3&);
  6808. Matrix3 ToMatrix3() const;
  6809. String ToString() const;
  6810. Vector3 Translation() const;
  6811. Matrix4 Transpose() const;
  6812. // Properties:
  6813. float m00;
  6814. float m01;
  6815. float m02;
  6816. float m03;
  6817. float m10;
  6818. float m11;
  6819. float m12;
  6820. float m13;
  6821. float m20;
  6822. float m21;
  6823. float m22;
  6824. float m23;
  6825. float m30;
  6826. float m31;
  6827. float m32;
  6828. float m33;
  6829. };
  6830. class Menu
  6831. {
  6832. public:
  6833. Menu();
  6834. Menu(const String&in);
  6835. // Methods:
  6836. void AddChild(UIElement);
  6837. void AddTag(const String&);
  6838. void AddTags(const String&, int8 = ';');
  6839. void ApplyAttributes();
  6840. void BringToFront();
  6841. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6842. void DisableLayoutUpdate();
  6843. IntVector2 ElementToScreen(const IntVector2&);
  6844. void EnableLayoutUpdate();
  6845. uint FindChild(UIElement) const;
  6846. Variant GetAttribute(const String&) const;
  6847. ValueAnimation GetAttributeAnimation(const String&) const;
  6848. float GetAttributeAnimationSpeed(const String&) const;
  6849. float GetAttributeAnimationTime(const String&) const;
  6850. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6851. Variant GetAttributeDefault(const String&) const;
  6852. UIElement GetChild(const String&, bool = false) const;
  6853. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6854. Array<UIElement> GetChildren(bool = false) const;
  6855. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6856. UIElement GetElementEventSender() const;
  6857. bool GetInterceptNetworkUpdate(const String&) const;
  6858. uint GetNumChildren(bool) const;
  6859. bool HasSubscribedToEvent(Object, const String&);
  6860. bool HasSubscribedToEvent(const String&);
  6861. bool HasTag(const String&) const;
  6862. void InsertChild(uint, UIElement);
  6863. bool IsInside(IntVector2, bool);
  6864. bool IsInsideCombined(IntVector2, bool);
  6865. bool Load(File, bool = false);
  6866. bool Load(VectorBuffer&, bool = false);
  6867. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6868. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6869. bool LoadJSON(const JSONValue&, bool = false);
  6870. bool LoadXML(File);
  6871. bool LoadXML(VectorBuffer&);
  6872. bool LoadXML(XMLFile, XMLFile);
  6873. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6874. bool LoadXML(const XMLElement&, bool = false);
  6875. void MarkNetworkUpdate() const;
  6876. void Remove();
  6877. void RemoveAllChildren();
  6878. void RemoveAllTags();
  6879. void RemoveAttributeAnimation(const String&);
  6880. void RemoveChild(UIElement, uint = 0);
  6881. void RemoveChild(uint);
  6882. void RemoveInstanceDefault();
  6883. void RemoveObjectAnimation();
  6884. bool RemoveTag(const String&);
  6885. void ResetDeepEnabled();
  6886. void ResetToDefault();
  6887. bool Save(File) const;
  6888. bool Save(VectorBuffer&) const;
  6889. bool SaveJSON(JSONValue&) const;
  6890. bool SaveXML(File, const String& = "\t");
  6891. bool SaveXML(VectorBuffer&, const String& = "\t");
  6892. bool SaveXML(XMLElement&) const;
  6893. IntVector2 ScreenToElement(const IntVector2&);
  6894. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6895. void SetAccelerator(int, int);
  6896. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6897. void SetAnimationTime(float);
  6898. bool SetAttribute(const String&, const Variant&);
  6899. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6900. void SetAttributeAnimationSpeed(const String&, float);
  6901. void SetAttributeAnimationTime(const String&, float);
  6902. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6903. void SetDeepEnabled(bool);
  6904. void SetEnabledRecursive(bool);
  6905. void SetFixedHeight(int);
  6906. void SetFixedSize(int, int);
  6907. void SetFixedWidth(int);
  6908. void SetFullImageRect();
  6909. void SetHoverOffset(int, int);
  6910. void SetInterceptNetworkUpdate(const String&, bool);
  6911. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6912. void SetMaxAnchor(float, float);
  6913. void SetMaxSize(int, int);
  6914. void SetMinAnchor(float, float);
  6915. void SetMinSize(int, int);
  6916. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6917. void SetPivot(float, float);
  6918. void SetPopupOffset(int, int);
  6919. void SetPosition(int, int);
  6920. void SetPressedChildOffset(int, int);
  6921. void SetPressedOffset(int, int);
  6922. void SetRepeat(float, float);
  6923. void SetSize(int, int);
  6924. bool SetStyle(const String&, XMLFile = null);
  6925. bool SetStyle(const XMLElement&);
  6926. bool SetStyleAuto(XMLFile = null);
  6927. void UpdateLayout();
  6928. const Variant& GetVar(const StringHash&);
  6929. // Properties:
  6930. /* readonly */
  6931. int acceleratorKey;
  6932. /* readonly */
  6933. int acceleratorQualifiers;
  6934. bool animationEnabled;
  6935. /* readonly */
  6936. Array<Variant> attributeDefaults;
  6937. /* readonly */
  6938. Array<AttributeInfo> attributeInfos;
  6939. Array<Variant> attributes;
  6940. BlendMode blendMode;
  6941. IntRect border;
  6942. bool bringToBack;
  6943. bool bringToFront;
  6944. /* readonly */
  6945. String category;
  6946. /* readonly */
  6947. IntVector2 childOffset;
  6948. /* readonly */
  6949. Array<UIElement> children;
  6950. IntRect clipBorder;
  6951. bool clipChildren;
  6952. /* writeonly */
  6953. Color color;
  6954. /* readonly */
  6955. bool colorGradient;
  6956. Array<Color> colors;
  6957. /* readonly */
  6958. IntRect combinedScreenRect;
  6959. XMLFile defaultStyle;
  6960. /* readonly */
  6961. float derivedOpacity;
  6962. /* readonly */
  6963. uint dragButtonCombo;
  6964. /* readonly */
  6965. int dragButtonCount;
  6966. uint dragDropMode;
  6967. bool editable;
  6968. bool elementEventSender;
  6969. bool enableAnchor;
  6970. bool enabled;
  6971. /* readonly */
  6972. bool enabledSelf;
  6973. /* readonly */
  6974. bool fixedHeight;
  6975. /* readonly */
  6976. bool fixedSize;
  6977. /* readonly */
  6978. bool fixedWidth;
  6979. bool focus;
  6980. FocusMode focusMode;
  6981. int height;
  6982. HorizontalAlignment horizontalAlignment;
  6983. IntVector2 hoverOffset;
  6984. /* readonly */
  6985. bool hovering;
  6986. IntRect imageBorder;
  6987. IntRect imageRect;
  6988. int indent;
  6989. int indentSpacing;
  6990. /* readonly */
  6991. int indentWidth;
  6992. bool internal;
  6993. IntRect layoutBorder;
  6994. Vector2 layoutFlexScale;
  6995. LayoutMode layoutMode;
  6996. int layoutSpacing;
  6997. Vector2 maxAnchor;
  6998. int maxHeight;
  6999. IntVector2 maxOffset;
  7000. IntVector2 maxSize;
  7001. int maxWidth;
  7002. Vector2 minAnchor;
  7003. int minHeight;
  7004. IntVector2 minOffset;
  7005. IntVector2 minSize;
  7006. int minWidth;
  7007. String name;
  7008. /* readonly */
  7009. uint numAllChildren;
  7010. /* readonly */
  7011. uint numAttributes;
  7012. /* readonly */
  7013. uint numChildren;
  7014. ObjectAnimation objectAnimation;
  7015. float opacity;
  7016. UIElement parent;
  7017. Vector2 pivot;
  7018. UIElement popup;
  7019. IntVector2 popupOffset;
  7020. IntVector2 position;
  7021. /* readonly */
  7022. bool pressed;
  7023. IntVector2 pressedChildOffset;
  7024. IntVector2 pressedOffset;
  7025. int priority;
  7026. /* readonly */
  7027. int refs;
  7028. float repeatDelay;
  7029. float repeatRate;
  7030. /* readonly */
  7031. UIElement root;
  7032. /* readonly */
  7033. IntVector2 screenPosition;
  7034. bool selected;
  7035. bool showPopup;
  7036. IntVector2 size;
  7037. bool sortChildren;
  7038. String style;
  7039. /* readonly */
  7040. Array<String> tags;
  7041. bool temporary;
  7042. Texture texture;
  7043. bool tiled;
  7044. TraversalMode traversalMode;
  7045. /* readonly */
  7046. StringHash type;
  7047. /* readonly */
  7048. String typeName;
  7049. bool useDerivedOpacity;
  7050. /* readonly */
  7051. VariantMap vars;
  7052. VerticalAlignment verticalAlignment;
  7053. bool visible;
  7054. /* readonly */
  7055. bool visibleEffective;
  7056. /* readonly */
  7057. int weakRefs;
  7058. int width;
  7059. };
  7060. class MessageBox
  7061. {
  7062. public:
  7063. MessageBox(const String&in messageString = String ( ), const String&in titleString = String ( ), XMLFile& layoutFile = null, XMLFile& styleFile = null);
  7064. // Methods:
  7065. bool HasSubscribedToEvent(Object, const String&);
  7066. bool HasSubscribedToEvent(const String&);
  7067. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7068. // Properties:
  7069. /* readonly */
  7070. String category;
  7071. String message;
  7072. /* readonly */
  7073. int refs;
  7074. String title;
  7075. /* readonly */
  7076. StringHash type;
  7077. /* readonly */
  7078. String typeName;
  7079. /* readonly */
  7080. int weakRefs;
  7081. /* readonly */
  7082. UIElement window;
  7083. };
  7084. class Model
  7085. {
  7086. public:
  7087. Model();
  7088. Model(const String&in);
  7089. // Methods:
  7090. void AddMetadata(const String&, const Variant&);
  7091. Model Clone(const String& = String ( )) const;
  7092. Geometry GetGeometry(uint, uint) const;
  7093. bool HasSubscribedToEvent(Object, const String&);
  7094. bool HasSubscribedToEvent(const String&);
  7095. bool Load(File);
  7096. bool Load(VectorBuffer&);
  7097. bool Load(const String&);
  7098. void RemoveAllMetadata();
  7099. void RemoveMetadata(const String&);
  7100. bool Save(File) const;
  7101. bool Save(VectorBuffer&) const;
  7102. bool Save(const String&) const;
  7103. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7104. bool SetGeometry(uint, uint, Geometry);
  7105. bool SetIndexBuffers(Array<IndexBuffer>);
  7106. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  7107. // Properties:
  7108. BoundingBox boundingBox;
  7109. /* readonly */
  7110. String category;
  7111. Array<Vector3> geometryCenters;
  7112. /* readonly */
  7113. bool hasMetadata;
  7114. /* readonly */
  7115. uint memoryUse;
  7116. Array<Variant> metadata;
  7117. String name;
  7118. uint numGeometries;
  7119. Array<uint> numGeometryLodLevels;
  7120. /* readonly */
  7121. uint numMorphs;
  7122. /* readonly */
  7123. int refs;
  7124. /* readonly */
  7125. Skeleton skeleton;
  7126. /* readonly */
  7127. StringHash type;
  7128. /* readonly */
  7129. String typeName;
  7130. /* readonly */
  7131. uint useTimer;
  7132. /* readonly */
  7133. int weakRefs;
  7134. };
  7135. class NamedPipe
  7136. {
  7137. public:
  7138. NamedPipe();
  7139. NamedPipe(const String&in, bool);
  7140. // Methods:
  7141. void Close();
  7142. bool HasSubscribedToEvent(Object, const String&);
  7143. bool HasSubscribedToEvent(const String&);
  7144. bool Open(const String&, bool);
  7145. Array<uint8> Read(uint);
  7146. bool ReadBool();
  7147. BoundingBox ReadBoundingBox();
  7148. int8 ReadByte();
  7149. Color ReadColor();
  7150. double ReadDouble();
  7151. String ReadFileID();
  7152. float ReadFloat();
  7153. int ReadInt();
  7154. int64 ReadInt64();
  7155. IntRect ReadIntRect();
  7156. IntVector2 ReadIntVector2();
  7157. String ReadLine();
  7158. Matrix3 ReadMatrix3();
  7159. Matrix3x4 ReadMatrix3x4();
  7160. Matrix4 ReadMatrix4();
  7161. uint ReadNetID();
  7162. Quaternion ReadPackedQuaternion();
  7163. Vector3 ReadPackedVector3(float);
  7164. Quaternion ReadQuaternion();
  7165. int16 ReadShort();
  7166. String ReadString();
  7167. StringHash ReadStringHash();
  7168. uint8 ReadUByte();
  7169. uint ReadUInt();
  7170. uint64 ReadUInt64();
  7171. uint16 ReadUShort();
  7172. uint ReadVLE();
  7173. Variant ReadVariant();
  7174. VariantMap ReadVariantMap();
  7175. Vector2 ReadVector2();
  7176. Vector3 ReadVector3();
  7177. Vector4 ReadVector4();
  7178. VectorBuffer ReadVectorBuffer(uint);
  7179. uint Seek(uint);
  7180. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7181. uint Write(Array<uint8>);
  7182. bool WriteBool(bool);
  7183. bool WriteBoundingBox(const BoundingBox&);
  7184. bool WriteByte(int8);
  7185. bool WriteColor(const Color&);
  7186. bool WriteDouble(double);
  7187. bool WriteFileID(const String&);
  7188. bool WriteFloat(float);
  7189. bool WriteInt(int);
  7190. bool WriteInt64(int64);
  7191. bool WriteIntRect(const IntRect&);
  7192. bool WriteIntVector2(const IntVector2&);
  7193. bool WriteLine(const String&);
  7194. bool WriteMatrix3(const Matrix3&);
  7195. bool WriteMatrix3x4(const Matrix3x4&);
  7196. bool WriteMatrix4(const Matrix4&);
  7197. bool WriteNetID(uint);
  7198. bool WritePackedQuaternion(const Quaternion&);
  7199. bool WritePackedVector3(const Vector3&, float);
  7200. bool WriteQuaternion(const Quaternion&);
  7201. bool WriteShort(int16);
  7202. bool WriteString(const String&);
  7203. bool WriteStringHash(const StringHash&);
  7204. bool WriteUByte(uint8);
  7205. bool WriteUInt(uint);
  7206. bool WriteUInt64(uint64);
  7207. bool WriteUShort(uint16);
  7208. bool WriteVLE(uint);
  7209. bool WriteVariant(const Variant&);
  7210. bool WriteVariantMap(const VariantMap&);
  7211. bool WriteVector2(const Vector2&);
  7212. bool WriteVector3(const Vector3&);
  7213. bool WriteVector4(const Vector4&);
  7214. bool WriteVectorBuffer(const VectorBuffer&);
  7215. // Properties:
  7216. /* readonly */
  7217. String category;
  7218. /* readonly */
  7219. uint checksum;
  7220. /* readonly */
  7221. bool eof;
  7222. /* readonly */
  7223. String name;
  7224. /* readonly */
  7225. bool open;
  7226. /* readonly */
  7227. uint position;
  7228. /* readonly */
  7229. int refs;
  7230. /* readonly */
  7231. bool server;
  7232. /* readonly */
  7233. uint size;
  7234. /* readonly */
  7235. StringHash type;
  7236. /* readonly */
  7237. String typeName;
  7238. /* readonly */
  7239. int weakRefs;
  7240. };
  7241. class NavArea
  7242. {
  7243. public:
  7244. // Methods:
  7245. void ApplyAttributes();
  7246. void DrawDebugGeometry(DebugRenderer, bool);
  7247. Variant GetAttribute(const String&) const;
  7248. ValueAnimation GetAttributeAnimation(const String&) const;
  7249. float GetAttributeAnimationSpeed(const String&) const;
  7250. float GetAttributeAnimationTime(const String&) const;
  7251. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7252. Variant GetAttributeDefault(const String&) const;
  7253. bool GetInterceptNetworkUpdate(const String&) const;
  7254. bool HasSubscribedToEvent(Object, const String&);
  7255. bool HasSubscribedToEvent(const String&);
  7256. bool Load(File, bool = false);
  7257. bool Load(VectorBuffer&, bool = false);
  7258. bool LoadJSON(const JSONValue&, bool = false);
  7259. bool LoadXML(const XMLElement&, bool = false);
  7260. void MarkNetworkUpdate() const;
  7261. void Remove();
  7262. void RemoveAttributeAnimation(const String&);
  7263. void RemoveInstanceDefault();
  7264. void RemoveObjectAnimation();
  7265. void ResetToDefault();
  7266. bool Save(File) const;
  7267. bool Save(VectorBuffer&) const;
  7268. bool SaveJSON(JSONValue&) const;
  7269. bool SaveXML(XMLElement&) const;
  7270. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7271. void SetAnimationTime(float);
  7272. bool SetAttribute(const String&, const Variant&);
  7273. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7274. void SetAttributeAnimationSpeed(const String&, float);
  7275. void SetAttributeAnimationTime(const String&, float);
  7276. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7277. void SetInterceptNetworkUpdate(const String&, bool);
  7278. // Properties:
  7279. bool animationEnabled;
  7280. uint areaID;
  7281. /* readonly */
  7282. Array<Variant> attributeDefaults;
  7283. /* readonly */
  7284. Array<AttributeInfo> attributeInfos;
  7285. Array<Variant> attributes;
  7286. BoundingBox boundingBox;
  7287. /* readonly */
  7288. String category;
  7289. bool enabled;
  7290. /* readonly */
  7291. bool enabledEffective;
  7292. /* readonly */
  7293. uint id;
  7294. /* readonly */
  7295. Node node;
  7296. /* readonly */
  7297. uint numAttributes;
  7298. ObjectAnimation objectAnimation;
  7299. /* readonly */
  7300. int refs;
  7301. bool temporary;
  7302. /* readonly */
  7303. StringHash type;
  7304. /* readonly */
  7305. String typeName;
  7306. /* readonly */
  7307. int weakRefs;
  7308. /* readonly */
  7309. BoundingBox worldBoundingBox;
  7310. };
  7311. class Navigable
  7312. {
  7313. public:
  7314. // Methods:
  7315. void ApplyAttributes();
  7316. void DrawDebugGeometry(DebugRenderer, bool);
  7317. Variant GetAttribute(const String&) const;
  7318. ValueAnimation GetAttributeAnimation(const String&) const;
  7319. float GetAttributeAnimationSpeed(const String&) const;
  7320. float GetAttributeAnimationTime(const String&) const;
  7321. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7322. Variant GetAttributeDefault(const String&) const;
  7323. bool GetInterceptNetworkUpdate(const String&) const;
  7324. bool HasSubscribedToEvent(Object, const String&);
  7325. bool HasSubscribedToEvent(const String&);
  7326. bool Load(File, bool = false);
  7327. bool Load(VectorBuffer&, bool = false);
  7328. bool LoadJSON(const JSONValue&, bool = false);
  7329. bool LoadXML(const XMLElement&, bool = false);
  7330. void MarkNetworkUpdate() const;
  7331. void Remove();
  7332. void RemoveAttributeAnimation(const String&);
  7333. void RemoveInstanceDefault();
  7334. void RemoveObjectAnimation();
  7335. void ResetToDefault();
  7336. bool Save(File) const;
  7337. bool Save(VectorBuffer&) const;
  7338. bool SaveJSON(JSONValue&) const;
  7339. bool SaveXML(XMLElement&) const;
  7340. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7341. void SetAnimationTime(float);
  7342. bool SetAttribute(const String&, const Variant&);
  7343. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7344. void SetAttributeAnimationSpeed(const String&, float);
  7345. void SetAttributeAnimationTime(const String&, float);
  7346. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7347. void SetInterceptNetworkUpdate(const String&, bool);
  7348. // Properties:
  7349. bool animationEnabled;
  7350. /* readonly */
  7351. Array<Variant> attributeDefaults;
  7352. /* readonly */
  7353. Array<AttributeInfo> attributeInfos;
  7354. Array<Variant> attributes;
  7355. /* readonly */
  7356. String category;
  7357. bool enabled;
  7358. /* readonly */
  7359. bool enabledEffective;
  7360. /* readonly */
  7361. uint id;
  7362. /* readonly */
  7363. Node node;
  7364. /* readonly */
  7365. uint numAttributes;
  7366. ObjectAnimation objectAnimation;
  7367. bool recursive;
  7368. /* readonly */
  7369. int refs;
  7370. bool temporary;
  7371. /* readonly */
  7372. StringHash type;
  7373. /* readonly */
  7374. String typeName;
  7375. /* readonly */
  7376. int weakRefs;
  7377. };
  7378. class NavigationMesh
  7379. {
  7380. public:
  7381. // Methods:
  7382. void ApplyAttributes();
  7383. bool Build();
  7384. bool Build(const BoundingBox&);
  7385. void DrawDebugGeometry(DebugRenderer, bool);
  7386. void DrawDebugGeometry(bool);
  7387. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7388. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7389. float GetAreaCost(uint) const;
  7390. Variant GetAttribute(const String&) const;
  7391. ValueAnimation GetAttributeAnimation(const String&) const;
  7392. float GetAttributeAnimationSpeed(const String&) const;
  7393. float GetAttributeAnimationTime(const String&) const;
  7394. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7395. Variant GetAttributeDefault(const String&) const;
  7396. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7397. bool GetInterceptNetworkUpdate(const String&) const;
  7398. Vector3 GetRandomPoint();
  7399. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7400. bool HasSubscribedToEvent(Object, const String&);
  7401. bool HasSubscribedToEvent(const String&);
  7402. bool Load(File, bool = false);
  7403. bool Load(VectorBuffer&, bool = false);
  7404. bool LoadJSON(const JSONValue&, bool = false);
  7405. bool LoadXML(const XMLElement&, bool = false);
  7406. void MarkNetworkUpdate() const;
  7407. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  7408. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7409. void Remove();
  7410. void RemoveAttributeAnimation(const String&);
  7411. void RemoveInstanceDefault();
  7412. void RemoveObjectAnimation();
  7413. void ResetToDefault();
  7414. bool Save(File) const;
  7415. bool Save(VectorBuffer&) const;
  7416. bool SaveJSON(JSONValue&) const;
  7417. bool SaveXML(XMLElement&) const;
  7418. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7419. void SetAnimationTime(float);
  7420. void SetAreaCost(uint, float);
  7421. bool SetAttribute(const String&, const Variant&);
  7422. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7423. void SetAttributeAnimationSpeed(const String&, float);
  7424. void SetAttributeAnimationTime(const String&, float);
  7425. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7426. void SetInterceptNetworkUpdate(const String&, bool);
  7427. // Properties:
  7428. float agentHeight;
  7429. float agentMaxClimb;
  7430. float agentMaxSlope;
  7431. float agentRadius;
  7432. bool animationEnabled;
  7433. /* readonly */
  7434. Array<Variant> attributeDefaults;
  7435. /* readonly */
  7436. Array<AttributeInfo> attributeInfos;
  7437. Array<Variant> attributes;
  7438. /* readonly */
  7439. BoundingBox boundingBox;
  7440. /* readonly */
  7441. String category;
  7442. float cellHeight;
  7443. float cellSize;
  7444. float detailSampleDistance;
  7445. float detailSampleMaxError;
  7446. bool drawNavAreas;
  7447. bool drawOffMeshConnections;
  7448. float edgeMaxError;
  7449. float edgeMaxLength;
  7450. bool enabled;
  7451. /* readonly */
  7452. bool enabledEffective;
  7453. /* readonly */
  7454. uint id;
  7455. /* readonly */
  7456. bool initialized;
  7457. /* readonly */
  7458. Node node;
  7459. /* readonly */
  7460. uint numAttributes;
  7461. /* readonly */
  7462. IntVector2 numTiles;
  7463. ObjectAnimation objectAnimation;
  7464. Vector3 padding;
  7465. NavmeshPartitionType partitionType;
  7466. /* readonly */
  7467. int refs;
  7468. float regionMergeSize;
  7469. float regionMinSize;
  7470. bool temporary;
  7471. int tileSize;
  7472. /* readonly */
  7473. StringHash type;
  7474. /* readonly */
  7475. String typeName;
  7476. /* readonly */
  7477. int weakRefs;
  7478. /* readonly */
  7479. BoundingBox worldBoundingBox;
  7480. };
  7481. class Network
  7482. {
  7483. public:
  7484. // Methods:
  7485. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  7486. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  7487. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  7488. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  7489. bool CheckRemoteEvent(const String&) const;
  7490. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  7491. void Disconnect(int = 0);
  7492. bool HasSubscribedToEvent(Object, const String&);
  7493. bool HasSubscribedToEvent(const String&);
  7494. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  7495. void RegisterRemoteEvent(const String&) const;
  7496. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7497. void SendPackageToClients(Scene, PackageFile);
  7498. bool StartServer(uint16);
  7499. void StopServer();
  7500. void UnregisterAllRemoteEvents();
  7501. void UnregisterRemoteEvent(const String&) const;
  7502. // Properties:
  7503. /* readonly */
  7504. String category;
  7505. /* readonly */
  7506. Array<Connection> clientConnections;
  7507. String packageCacheDir;
  7508. /* readonly */
  7509. int refs;
  7510. /* readonly */
  7511. Connection serverConnection;
  7512. /* readonly */
  7513. bool serverRunning;
  7514. int simulatedLatency;
  7515. float simulatedPacketLoss;
  7516. /* readonly */
  7517. StringHash type;
  7518. /* readonly */
  7519. String typeName;
  7520. int updateFps;
  7521. /* readonly */
  7522. int weakRefs;
  7523. };
  7524. class NetworkPriority
  7525. {
  7526. public:
  7527. // Methods:
  7528. void ApplyAttributes();
  7529. void DrawDebugGeometry(DebugRenderer, bool);
  7530. Variant GetAttribute(const String&) const;
  7531. ValueAnimation GetAttributeAnimation(const String&) const;
  7532. float GetAttributeAnimationSpeed(const String&) const;
  7533. float GetAttributeAnimationTime(const String&) const;
  7534. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7535. Variant GetAttributeDefault(const String&) const;
  7536. bool GetInterceptNetworkUpdate(const String&) const;
  7537. bool HasSubscribedToEvent(Object, const String&);
  7538. bool HasSubscribedToEvent(const String&);
  7539. bool Load(File, bool = false);
  7540. bool Load(VectorBuffer&, bool = false);
  7541. bool LoadJSON(const JSONValue&, bool = false);
  7542. bool LoadXML(const XMLElement&, bool = false);
  7543. void MarkNetworkUpdate() const;
  7544. void Remove();
  7545. void RemoveAttributeAnimation(const String&);
  7546. void RemoveInstanceDefault();
  7547. void RemoveObjectAnimation();
  7548. void ResetToDefault();
  7549. bool Save(File) const;
  7550. bool Save(VectorBuffer&) const;
  7551. bool SaveJSON(JSONValue&) const;
  7552. bool SaveXML(XMLElement&) const;
  7553. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7554. void SetAnimationTime(float);
  7555. bool SetAttribute(const String&, const Variant&);
  7556. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7557. void SetAttributeAnimationSpeed(const String&, float);
  7558. void SetAttributeAnimationTime(const String&, float);
  7559. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7560. void SetInterceptNetworkUpdate(const String&, bool);
  7561. // Properties:
  7562. bool alwaysUpdateOwner;
  7563. bool animationEnabled;
  7564. /* readonly */
  7565. Array<Variant> attributeDefaults;
  7566. /* readonly */
  7567. Array<AttributeInfo> attributeInfos;
  7568. Array<Variant> attributes;
  7569. float basePriority;
  7570. /* readonly */
  7571. String category;
  7572. float distanceFactor;
  7573. bool enabled;
  7574. /* readonly */
  7575. bool enabledEffective;
  7576. /* readonly */
  7577. uint id;
  7578. float minPriority;
  7579. /* readonly */
  7580. Node node;
  7581. /* readonly */
  7582. uint numAttributes;
  7583. ObjectAnimation objectAnimation;
  7584. /* readonly */
  7585. int refs;
  7586. bool temporary;
  7587. /* readonly */
  7588. StringHash type;
  7589. /* readonly */
  7590. String typeName;
  7591. /* readonly */
  7592. int weakRefs;
  7593. };
  7594. class Node
  7595. {
  7596. public:
  7597. Node();
  7598. Node(const String&in);
  7599. // Methods:
  7600. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7601. void AddTag(const String&);
  7602. void AddTags(const String&, int8 = ';');
  7603. void ApplyAttributes();
  7604. Node Clone(CreateMode = REPLICATED);
  7605. Component CloneComponent(Component, CreateMode, uint = 0);
  7606. Component CloneComponent(Component, uint = 0);
  7607. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7608. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7609. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7610. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7611. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7612. Variant GetAttribute(const String&) const;
  7613. ValueAnimation GetAttributeAnimation(const String&) const;
  7614. float GetAttributeAnimationSpeed(const String&) const;
  7615. float GetAttributeAnimationTime(const String&) const;
  7616. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7617. Variant GetAttributeDefault(const String&) const;
  7618. Node GetChild(const String&, bool = false) const;
  7619. Array<Node> GetChildren(bool = false) const;
  7620. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7621. Array<Node> GetChildrenWithScript(bool = false) const;
  7622. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7623. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7624. Component GetComponent(const String&, bool = false) const;
  7625. Array<Component> GetComponents() const;
  7626. Array<Component> GetComponents(const String&, bool = false) const;
  7627. bool GetInterceptNetworkUpdate(const String&) const;
  7628. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7629. Component GetParentComponent(const String&, bool = false) const;
  7630. ScriptObject GetScriptObject() const;
  7631. ScriptObject GetScriptObject(const String&) const;
  7632. bool HasComponent(const String&) const;
  7633. bool HasSubscribedToEvent(Object, const String&);
  7634. bool HasSubscribedToEvent(const String&);
  7635. bool HasTag(const String&);
  7636. bool IsChildOf(Node) const;
  7637. bool Load(File, bool = false);
  7638. bool Load(VectorBuffer&, bool = false);
  7639. bool LoadJSON(const JSONValue&, bool = false);
  7640. bool LoadXML(const XMLElement&, bool = false);
  7641. Vector3 LocalToWorld(const Vector3&) const;
  7642. Vector3 LocalToWorld(const Vector4&) const;
  7643. Vector2 LocalToWorld2D(const Vector2&) const;
  7644. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7645. void MarkDirty();
  7646. void MarkNetworkUpdate() const;
  7647. void Pitch(float, TransformSpace = TS_LOCAL);
  7648. void Remove();
  7649. void RemoveAllChildren();
  7650. void RemoveAllComponents();
  7651. void RemoveAllTags();
  7652. void RemoveAttributeAnimation(const String&);
  7653. void RemoveChild(Node);
  7654. void RemoveChildren(bool, bool, bool);
  7655. void RemoveComponent(Component);
  7656. void RemoveComponent(const String&);
  7657. void RemoveComponents(bool, bool);
  7658. void RemoveComponents(const String&);
  7659. void RemoveInstanceDefault();
  7660. void RemoveObjectAnimation();
  7661. bool RemoveTag(const String&);
  7662. void ReorderComponent(Component, uint);
  7663. void ResetDeepEnabled();
  7664. void ResetToDefault();
  7665. void Roll(float, TransformSpace = TS_LOCAL);
  7666. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7667. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7668. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7669. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7670. bool Save(File) const;
  7671. bool Save(VectorBuffer&) const;
  7672. bool SaveJSON(File);
  7673. bool SaveJSON(JSONValue&) const;
  7674. bool SaveJSON(VectorBuffer&);
  7675. bool SaveXML(File, const String& = "\t");
  7676. bool SaveXML(VectorBuffer&, const String& = "\t");
  7677. bool SaveXML(XMLElement&) const;
  7678. void Scale(const Vector3&);
  7679. void Scale(float);
  7680. void Scale2D(const Vector2&);
  7681. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7682. void SetAnimationTime(float);
  7683. bool SetAttribute(const String&, const Variant&);
  7684. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7685. void SetAttributeAnimationSpeed(const String&, float);
  7686. void SetAttributeAnimationTime(const String&, float);
  7687. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7688. void SetDeepEnabled(bool);
  7689. void SetEnabledRecursive(bool);
  7690. void SetInterceptNetworkUpdate(const String&, bool);
  7691. void SetPosition2D(float, float);
  7692. void SetScale(float);
  7693. void SetScale2D(float, float);
  7694. void SetTransform(const Matrix3x4&);
  7695. void SetTransform(const Vector3&, const Quaternion&);
  7696. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7697. void SetTransform(const Vector3&, const Quaternion&, float);
  7698. void SetTransform2D(const Vector2&, float);
  7699. void SetTransform2D(const Vector2&, float, const Vector2&);
  7700. void SetTransform2D(const Vector2&, float, float);
  7701. void SetWorldTransform(const Vector3&, const Quaternion&);
  7702. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7703. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7704. void SetWorldTransform2D(const Vector2&, float);
  7705. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7706. void SetWorldTransform2D(const Vector2&, float, float);
  7707. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7708. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7709. Vector3 WorldToLocal(const Vector3&) const;
  7710. Vector3 WorldToLocal(const Vector4&) const;
  7711. Vector2 WorldToLocal2D(const Vector2&) const;
  7712. void Yaw(float, TransformSpace = TS_LOCAL);
  7713. // Properties:
  7714. /* readonly */
  7715. Array<Node> allChildrenByName;
  7716. bool animationEnabled;
  7717. /* readonly */
  7718. Array<Variant> attributeDefaults;
  7719. /* readonly */
  7720. Array<AttributeInfo> attributeInfos;
  7721. Array<Variant> attributes;
  7722. /* readonly */
  7723. String category;
  7724. /* readonly */
  7725. Array<Node> children;
  7726. /* readonly */
  7727. Array<Node> childrenByName;
  7728. /* readonly */
  7729. Array<Component> components;
  7730. Vector3 direction;
  7731. bool enabled;
  7732. /* readonly */
  7733. bool enabledSelf;
  7734. uint id;
  7735. String name;
  7736. /* readonly */
  7737. uint numAllChildren;
  7738. /* readonly */
  7739. uint numAttributes;
  7740. /* readonly */
  7741. uint numChildren;
  7742. /* readonly */
  7743. uint numComponents;
  7744. ObjectAnimation objectAnimation;
  7745. Connection owner;
  7746. Node parent;
  7747. Vector3 position;
  7748. Vector2 position2D;
  7749. /* readonly */
  7750. int refs;
  7751. /* readonly */
  7752. Vector3 right;
  7753. Quaternion rotation;
  7754. float rotation2D;
  7755. Vector3 scale;
  7756. Vector2 scale2D;
  7757. /* readonly */
  7758. Scene scene;
  7759. /* readonly */
  7760. ScriptObject scriptObject;
  7761. /* readonly */
  7762. Vector3 signedWorldScale;
  7763. /* readonly */
  7764. Array<String> tags;
  7765. bool temporary;
  7766. /* readonly */
  7767. Matrix3x4 transform;
  7768. /* readonly */
  7769. StringHash type;
  7770. /* readonly */
  7771. String typeName;
  7772. /* readonly */
  7773. Vector3 up;
  7774. /* readonly */
  7775. VariantMap vars;
  7776. /* readonly */
  7777. int weakRefs;
  7778. Vector3 worldDirection;
  7779. Vector3 worldPosition;
  7780. Vector2 worldPosition2D;
  7781. /* readonly */
  7782. Vector3 worldRight;
  7783. Quaternion worldRotation;
  7784. float worldRotation2D;
  7785. Vector3 worldScale;
  7786. Vector2 worldScale2D;
  7787. /* readonly */
  7788. Matrix3x4 worldTransform;
  7789. /* readonly */
  7790. Vector3 worldUp;
  7791. };
  7792. class Object
  7793. {
  7794. public:
  7795. // Methods:
  7796. bool HasSubscribedToEvent(Object, const String&);
  7797. bool HasSubscribedToEvent(const String&);
  7798. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7799. // Properties:
  7800. /* readonly */
  7801. String category;
  7802. /* readonly */
  7803. int refs;
  7804. /* readonly */
  7805. StringHash type;
  7806. /* readonly */
  7807. String typeName;
  7808. /* readonly */
  7809. int weakRefs;
  7810. };
  7811. class ObjectAnimation
  7812. {
  7813. public:
  7814. ObjectAnimation();
  7815. ObjectAnimation(const String&in);
  7816. // Methods:
  7817. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7818. ValueAnimation GetAttributeAnimation(const String&) const;
  7819. float GetAttributeAnimationSpeed(const String&) const;
  7820. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7821. bool HasSubscribedToEvent(Object, const String&);
  7822. bool HasSubscribedToEvent(const String&);
  7823. bool Load(File);
  7824. bool Load(VectorBuffer&);
  7825. bool Load(const String&);
  7826. void RemoveAttributeAnimation(ValueAnimation);
  7827. void RemoveAttributeAnimation(const String&);
  7828. bool Save(File) const;
  7829. bool Save(VectorBuffer&) const;
  7830. bool Save(const String&) const;
  7831. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7832. // Properties:
  7833. /* readonly */
  7834. Array<Variant> attributeAnimations;
  7835. /* readonly */
  7836. String category;
  7837. /* readonly */
  7838. uint memoryUse;
  7839. String name;
  7840. /* readonly */
  7841. int refs;
  7842. /* readonly */
  7843. Array<Variant> speeds;
  7844. /* readonly */
  7845. StringHash type;
  7846. /* readonly */
  7847. String typeName;
  7848. /* readonly */
  7849. uint useTimer;
  7850. /* readonly */
  7851. int weakRefs;
  7852. /* readonly */
  7853. Array<Variant> wrapModes;
  7854. };
  7855. class Obstacle
  7856. {
  7857. public:
  7858. // Methods:
  7859. void ApplyAttributes();
  7860. void DrawDebugGeometry(DebugRenderer, bool);
  7861. void DrawDebugGeometry(bool);
  7862. Variant GetAttribute(const String&) const;
  7863. ValueAnimation GetAttributeAnimation(const String&) const;
  7864. float GetAttributeAnimationSpeed(const String&) const;
  7865. float GetAttributeAnimationTime(const String&) const;
  7866. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7867. Variant GetAttributeDefault(const String&) const;
  7868. bool GetInterceptNetworkUpdate(const String&) const;
  7869. bool HasSubscribedToEvent(Object, const String&);
  7870. bool HasSubscribedToEvent(const String&);
  7871. bool Load(File, bool = false);
  7872. bool Load(VectorBuffer&, bool = false);
  7873. bool LoadJSON(const JSONValue&, bool = false);
  7874. bool LoadXML(const XMLElement&, bool = false);
  7875. void MarkNetworkUpdate() const;
  7876. void Remove();
  7877. void RemoveAttributeAnimation(const String&);
  7878. void RemoveInstanceDefault();
  7879. void RemoveObjectAnimation();
  7880. void ResetToDefault();
  7881. bool Save(File) const;
  7882. bool Save(VectorBuffer&) const;
  7883. bool SaveJSON(JSONValue&) const;
  7884. bool SaveXML(XMLElement&) const;
  7885. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7886. void SetAnimationTime(float);
  7887. bool SetAttribute(const String&, const Variant&);
  7888. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7889. void SetAttributeAnimationSpeed(const String&, float);
  7890. void SetAttributeAnimationTime(const String&, float);
  7891. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7892. void SetInterceptNetworkUpdate(const String&, bool);
  7893. // Properties:
  7894. bool animationEnabled;
  7895. /* readonly */
  7896. Array<Variant> attributeDefaults;
  7897. /* readonly */
  7898. Array<AttributeInfo> attributeInfos;
  7899. Array<Variant> attributes;
  7900. /* readonly */
  7901. String category;
  7902. bool enabled;
  7903. /* readonly */
  7904. bool enabledEffective;
  7905. float height;
  7906. /* readonly */
  7907. uint id;
  7908. /* readonly */
  7909. Node node;
  7910. /* readonly */
  7911. uint numAttributes;
  7912. ObjectAnimation objectAnimation;
  7913. /* readonly */
  7914. uint obstacleId;
  7915. float radius;
  7916. /* readonly */
  7917. int refs;
  7918. bool temporary;
  7919. /* readonly */
  7920. StringHash type;
  7921. /* readonly */
  7922. String typeName;
  7923. /* readonly */
  7924. int weakRefs;
  7925. };
  7926. class Octree
  7927. {
  7928. public:
  7929. // Methods:
  7930. void AddManualDrawable(Drawable);
  7931. void ApplyAttributes();
  7932. void DrawDebugGeometry(DebugRenderer, bool);
  7933. void DrawDebugGeometry(bool) const;
  7934. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7935. Variant GetAttribute(const String&) const;
  7936. ValueAnimation GetAttributeAnimation(const String&) const;
  7937. float GetAttributeAnimationSpeed(const String&) const;
  7938. float GetAttributeAnimationTime(const String&) const;
  7939. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7940. Variant GetAttributeDefault(const String&) const;
  7941. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7942. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7943. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7944. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7945. bool GetInterceptNetworkUpdate(const String&) const;
  7946. bool HasSubscribedToEvent(Object, const String&);
  7947. bool HasSubscribedToEvent(const String&);
  7948. bool Load(File, bool = false);
  7949. bool Load(VectorBuffer&, bool = false);
  7950. bool LoadJSON(const JSONValue&, bool = false);
  7951. bool LoadXML(const XMLElement&, bool = false);
  7952. void MarkNetworkUpdate() const;
  7953. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7954. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7955. void Remove();
  7956. void RemoveAttributeAnimation(const String&);
  7957. void RemoveInstanceDefault();
  7958. void RemoveManualDrawable(Drawable);
  7959. void RemoveObjectAnimation();
  7960. void ResetToDefault();
  7961. bool Save(File) const;
  7962. bool Save(VectorBuffer&) const;
  7963. bool SaveJSON(JSONValue&) const;
  7964. bool SaveXML(XMLElement&) const;
  7965. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7966. void SetAnimationTime(float);
  7967. bool SetAttribute(const String&, const Variant&);
  7968. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7969. void SetAttributeAnimationSpeed(const String&, float);
  7970. void SetAttributeAnimationTime(const String&, float);
  7971. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7972. void SetInterceptNetworkUpdate(const String&, bool);
  7973. void SetSize(const BoundingBox&, uint);
  7974. // Properties:
  7975. bool animationEnabled;
  7976. /* readonly */
  7977. Array<Variant> attributeDefaults;
  7978. /* readonly */
  7979. Array<AttributeInfo> attributeInfos;
  7980. Array<Variant> attributes;
  7981. /* readonly */
  7982. String category;
  7983. bool enabled;
  7984. /* readonly */
  7985. bool enabledEffective;
  7986. /* readonly */
  7987. uint id;
  7988. /* readonly */
  7989. Node node;
  7990. /* readonly */
  7991. uint numAttributes;
  7992. /* readonly */
  7993. uint numLevels;
  7994. ObjectAnimation objectAnimation;
  7995. /* readonly */
  7996. int refs;
  7997. bool temporary;
  7998. /* readonly */
  7999. StringHash type;
  8000. /* readonly */
  8001. String typeName;
  8002. /* readonly */
  8003. int weakRefs;
  8004. /* readonly */
  8005. BoundingBox worldBoundingBox;
  8006. };
  8007. class OffMeshConnection
  8008. {
  8009. public:
  8010. // Methods:
  8011. void ApplyAttributes();
  8012. void DrawDebugGeometry(DebugRenderer, bool);
  8013. Variant GetAttribute(const String&) const;
  8014. ValueAnimation GetAttributeAnimation(const String&) const;
  8015. float GetAttributeAnimationSpeed(const String&) const;
  8016. float GetAttributeAnimationTime(const String&) const;
  8017. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8018. Variant GetAttributeDefault(const String&) const;
  8019. bool GetInterceptNetworkUpdate(const String&) const;
  8020. bool HasSubscribedToEvent(Object, const String&);
  8021. bool HasSubscribedToEvent(const String&);
  8022. bool Load(File, bool = false);
  8023. bool Load(VectorBuffer&, bool = false);
  8024. bool LoadJSON(const JSONValue&, bool = false);
  8025. bool LoadXML(const XMLElement&, bool = false);
  8026. void MarkNetworkUpdate() const;
  8027. void Remove();
  8028. void RemoveAttributeAnimation(const String&);
  8029. void RemoveInstanceDefault();
  8030. void RemoveObjectAnimation();
  8031. void ResetToDefault();
  8032. bool Save(File) const;
  8033. bool Save(VectorBuffer&) const;
  8034. bool SaveJSON(JSONValue&) const;
  8035. bool SaveXML(XMLElement&) const;
  8036. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8037. void SetAnimationTime(float);
  8038. bool SetAttribute(const String&, const Variant&);
  8039. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8040. void SetAttributeAnimationSpeed(const String&, float);
  8041. void SetAttributeAnimationTime(const String&, float);
  8042. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8043. void SetInterceptNetworkUpdate(const String&, bool);
  8044. // Properties:
  8045. bool animationEnabled;
  8046. uint areaID;
  8047. /* readonly */
  8048. Array<Variant> attributeDefaults;
  8049. /* readonly */
  8050. Array<AttributeInfo> attributeInfos;
  8051. Array<Variant> attributes;
  8052. bool bidirectional;
  8053. /* readonly */
  8054. String category;
  8055. bool enabled;
  8056. /* readonly */
  8057. bool enabledEffective;
  8058. Node endPoint;
  8059. /* readonly */
  8060. uint id;
  8061. uint mask;
  8062. /* readonly */
  8063. Node node;
  8064. /* readonly */
  8065. uint numAttributes;
  8066. ObjectAnimation objectAnimation;
  8067. float radius;
  8068. /* readonly */
  8069. int refs;
  8070. bool temporary;
  8071. /* readonly */
  8072. StringHash type;
  8073. /* readonly */
  8074. String typeName;
  8075. /* readonly */
  8076. int weakRefs;
  8077. };
  8078. class PackageFile
  8079. {
  8080. public:
  8081. PackageFile();
  8082. PackageFile(const String&in, uint startOffset = 0);
  8083. // Methods:
  8084. bool Exists(const String&) const;
  8085. Array<String> GetEntryNames() const;
  8086. bool HasSubscribedToEvent(Object, const String&);
  8087. bool HasSubscribedToEvent(const String&);
  8088. bool Open(const String&, uint = 0) const;
  8089. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8090. bool compressed() const;
  8091. // Properties:
  8092. /* readonly */
  8093. String category;
  8094. /* readonly */
  8095. uint checksum;
  8096. /* readonly */
  8097. String name;
  8098. /* readonly */
  8099. uint numFiles;
  8100. /* readonly */
  8101. int refs;
  8102. /* readonly */
  8103. uint totalDataSize;
  8104. /* readonly */
  8105. uint totalSize;
  8106. /* readonly */
  8107. StringHash type;
  8108. /* readonly */
  8109. String typeName;
  8110. /* readonly */
  8111. int weakRefs;
  8112. };
  8113. class ParticleEffect
  8114. {
  8115. public:
  8116. ParticleEffect();
  8117. ParticleEffect(const String&in);
  8118. // Methods:
  8119. void AddColorFrame(ColorFrame);
  8120. void AddColorTime(Color&, float);
  8121. void AddTextureFrame(TextureFrame);
  8122. void AddTextureTime(Rect&, float);
  8123. ParticleEffect Clone(const String& = String ( )) const;
  8124. ColorFrame GetColorFrame(uint) const;
  8125. TextureFrame GetTextureFrame(uint) const;
  8126. bool HasSubscribedToEvent(Object, const String&);
  8127. bool HasSubscribedToEvent(const String&);
  8128. bool Load(File);
  8129. bool Load(VectorBuffer&);
  8130. bool Load(const String&);
  8131. bool Load(const XMLElement&);
  8132. void RemoveColorFrame(uint);
  8133. void RemoveTextureFrame(uint);
  8134. bool Save(File) const;
  8135. bool Save(VectorBuffer&) const;
  8136. bool Save(XMLElement&) const;
  8137. bool Save(const String&) const;
  8138. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8139. void SetColorFrame(uint, ColorFrame);
  8140. void SetTextureFrame(uint, TextureFrame);
  8141. void SortColorFrames();
  8142. void SortTextureFrames();
  8143. // Properties:
  8144. float activeTime;
  8145. float animationLodBias;
  8146. /* readonly */
  8147. String category;
  8148. Vector3 constantForce;
  8149. float dampingForce;
  8150. Vector3 emitterSize;
  8151. EmitterType emitterType;
  8152. FaceCameraMode faceCameraMode;
  8153. bool fixedScreenSize;
  8154. float inactiveTime;
  8155. Material material;
  8156. Vector3 maxDirection;
  8157. float maxEmissionRate;
  8158. Vector2 maxParticleSize;
  8159. float maxRotation;
  8160. float maxRotationSpeed;
  8161. float maxTimeToLive;
  8162. float maxVelocity;
  8163. /* readonly */
  8164. uint memoryUse;
  8165. Vector3 minDirection;
  8166. float minEmissionRate;
  8167. Vector2 minParticleSize;
  8168. float minRotation;
  8169. float minRotationSpeed;
  8170. float minTimeToLive;
  8171. float minVelocity;
  8172. String name;
  8173. uint numColorFrames;
  8174. uint numParticles;
  8175. uint numTextureFrames;
  8176. /* readonly */
  8177. int refs;
  8178. bool relative;
  8179. bool scaled;
  8180. float sizeAdd;
  8181. float sizeMul;
  8182. bool sorted;
  8183. /* readonly */
  8184. StringHash type;
  8185. /* readonly */
  8186. String typeName;
  8187. bool updateInvisible;
  8188. /* readonly */
  8189. uint useTimer;
  8190. /* readonly */
  8191. int weakRefs;
  8192. };
  8193. class ParticleEffect2D
  8194. {
  8195. public:
  8196. ParticleEffect2D();
  8197. ParticleEffect2D(const String&in);
  8198. // Methods:
  8199. ParticleEffect2D Clone(const String& = String ( )) const;
  8200. bool HasSubscribedToEvent(Object, const String&);
  8201. bool HasSubscribedToEvent(const String&);
  8202. bool Load(File);
  8203. bool Load(VectorBuffer&);
  8204. bool Load(const String&);
  8205. bool Save(File) const;
  8206. bool Save(VectorBuffer&) const;
  8207. bool Save(const String&) const;
  8208. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8209. // Properties:
  8210. /* readonly */
  8211. String category;
  8212. /* readonly */
  8213. uint memoryUse;
  8214. String name;
  8215. /* readonly */
  8216. int refs;
  8217. /* readonly */
  8218. StringHash type;
  8219. /* readonly */
  8220. String typeName;
  8221. /* readonly */
  8222. uint useTimer;
  8223. /* readonly */
  8224. int weakRefs;
  8225. };
  8226. class ParticleEmitter
  8227. {
  8228. public:
  8229. // Methods:
  8230. void ApplyAttributes();
  8231. void ApplyEffect();
  8232. void Commit();
  8233. void DrawDebugGeometry(DebugRenderer, bool);
  8234. Variant GetAttribute(const String&) const;
  8235. ValueAnimation GetAttributeAnimation(const String&) const;
  8236. float GetAttributeAnimationSpeed(const String&) const;
  8237. float GetAttributeAnimationTime(const String&) const;
  8238. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8239. Variant GetAttributeDefault(const String&) const;
  8240. bool GetInterceptNetworkUpdate(const String&) const;
  8241. bool HasSubscribedToEvent(Object, const String&);
  8242. bool HasSubscribedToEvent(const String&);
  8243. bool IsInView(Camera) const;
  8244. bool Load(File, bool = false);
  8245. bool Load(VectorBuffer&, bool = false);
  8246. bool LoadJSON(const JSONValue&, bool = false);
  8247. bool LoadXML(const XMLElement&, bool = false);
  8248. void MarkNetworkUpdate() const;
  8249. void Remove();
  8250. void RemoveAllParticles();
  8251. void RemoveAttributeAnimation(const String&);
  8252. void RemoveInstanceDefault();
  8253. void RemoveObjectAnimation();
  8254. void Reset();
  8255. void ResetEmissionTimer();
  8256. void ResetToDefault();
  8257. bool Save(File) const;
  8258. bool Save(VectorBuffer&) const;
  8259. bool SaveJSON(JSONValue&) const;
  8260. bool SaveXML(XMLElement&) const;
  8261. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8262. void SetAnimationTime(float);
  8263. bool SetAttribute(const String&, const Variant&);
  8264. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8265. void SetAttributeAnimationSpeed(const String&, float);
  8266. void SetAttributeAnimationTime(const String&, float);
  8267. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8268. void SetInterceptNetworkUpdate(const String&, bool);
  8269. // Properties:
  8270. bool animationEnabled;
  8271. float animationLodBias;
  8272. /* readonly */
  8273. Array<Variant> attributeDefaults;
  8274. /* readonly */
  8275. Array<AttributeInfo> attributeInfos;
  8276. Array<Variant> attributes;
  8277. AutoRemoveMode autoRemoveMode;
  8278. /* readonly */
  8279. Array<Billboard> billboards;
  8280. /* readonly */
  8281. BoundingBox boundingBox;
  8282. bool castShadows;
  8283. /* readonly */
  8284. String category;
  8285. float drawDistance;
  8286. ParticleEffect effect;
  8287. bool emitting;
  8288. bool enabled;
  8289. /* readonly */
  8290. bool enabledEffective;
  8291. FaceCameraMode faceCameraMode;
  8292. bool fixedScreenSize;
  8293. /* readonly */
  8294. uint id;
  8295. /* readonly */
  8296. bool inView;
  8297. uint lightMask;
  8298. float lodBias;
  8299. Material material;
  8300. uint maxLights;
  8301. /* readonly */
  8302. Node node;
  8303. /* readonly */
  8304. uint numAttributes;
  8305. uint numBillboards;
  8306. uint numParticles;
  8307. ObjectAnimation objectAnimation;
  8308. bool occludee;
  8309. bool occluder;
  8310. /* readonly */
  8311. int refs;
  8312. bool relative;
  8313. bool scaled;
  8314. bool serializeParticles;
  8315. float shadowDistance;
  8316. uint shadowMask;
  8317. bool sorted;
  8318. bool temporary;
  8319. /* readonly */
  8320. StringHash type;
  8321. /* readonly */
  8322. String typeName;
  8323. uint viewMask;
  8324. /* readonly */
  8325. int weakRefs;
  8326. /* readonly */
  8327. BoundingBox worldBoundingBox;
  8328. /* readonly */
  8329. Zone zone;
  8330. uint zoneMask;
  8331. };
  8332. class ParticleEmitter2D
  8333. {
  8334. public:
  8335. // Methods:
  8336. void ApplyAttributes();
  8337. void DrawDebugGeometry(DebugRenderer, bool);
  8338. Variant GetAttribute(const String&) const;
  8339. ValueAnimation GetAttributeAnimation(const String&) const;
  8340. float GetAttributeAnimationSpeed(const String&) const;
  8341. float GetAttributeAnimationTime(const String&) const;
  8342. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8343. Variant GetAttributeDefault(const String&) const;
  8344. bool GetInterceptNetworkUpdate(const String&) const;
  8345. bool HasSubscribedToEvent(Object, const String&);
  8346. bool HasSubscribedToEvent(const String&);
  8347. bool IsInView(Camera) const;
  8348. bool Load(File, bool = false);
  8349. bool Load(VectorBuffer&, bool = false);
  8350. bool LoadJSON(const JSONValue&, bool = false);
  8351. bool LoadXML(const XMLElement&, bool = false);
  8352. void MarkNetworkUpdate() const;
  8353. void Remove();
  8354. void RemoveAttributeAnimation(const String&);
  8355. void RemoveInstanceDefault();
  8356. void RemoveObjectAnimation();
  8357. void ResetToDefault();
  8358. bool Save(File) const;
  8359. bool Save(VectorBuffer&) const;
  8360. bool SaveJSON(JSONValue&) const;
  8361. bool SaveXML(XMLElement&) const;
  8362. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8363. void SetAnimationTime(float);
  8364. bool SetAttribute(const String&, const Variant&);
  8365. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8366. void SetAttributeAnimationSpeed(const String&, float);
  8367. void SetAttributeAnimationTime(const String&, float);
  8368. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8369. void SetInterceptNetworkUpdate(const String&, bool);
  8370. // Properties:
  8371. bool animationEnabled;
  8372. /* readonly */
  8373. Array<Variant> attributeDefaults;
  8374. /* readonly */
  8375. Array<AttributeInfo> attributeInfos;
  8376. Array<Variant> attributes;
  8377. BlendMode blendMode;
  8378. /* readonly */
  8379. BoundingBox boundingBox;
  8380. bool castShadows;
  8381. /* readonly */
  8382. String category;
  8383. float drawDistance;
  8384. ParticleEffect2D effect;
  8385. bool emitting;
  8386. bool enabled;
  8387. /* readonly */
  8388. bool enabledEffective;
  8389. /* readonly */
  8390. uint id;
  8391. /* readonly */
  8392. bool inView;
  8393. int layer;
  8394. uint lightMask;
  8395. float lodBias;
  8396. uint maxLights;
  8397. /* readonly */
  8398. Node node;
  8399. /* readonly */
  8400. uint numAttributes;
  8401. ObjectAnimation objectAnimation;
  8402. bool occludee;
  8403. bool occluder;
  8404. int orderInLayer;
  8405. /* readonly */
  8406. int refs;
  8407. float shadowDistance;
  8408. uint shadowMask;
  8409. Sprite2D sprite;
  8410. bool temporary;
  8411. /* readonly */
  8412. StringHash type;
  8413. /* readonly */
  8414. String typeName;
  8415. uint viewMask;
  8416. /* readonly */
  8417. int weakRefs;
  8418. /* readonly */
  8419. BoundingBox worldBoundingBox;
  8420. uint zoneMask;
  8421. };
  8422. class Pass
  8423. {
  8424. public:
  8425. // Properties:
  8426. bool alphaToCoverage;
  8427. BlendMode blendMode;
  8428. CullMode cullMode;
  8429. CompareMode depthTestMode;
  8430. bool depthWrite;
  8431. bool desktop;
  8432. PassLightingMode lightingMode;
  8433. String pixelShader;
  8434. String pixelShaderDefineExcludes;
  8435. String pixelShaderDefines;
  8436. /* readonly */
  8437. int refs;
  8438. String vertexShader;
  8439. String vertexShaderDefineExcludes;
  8440. String vertexShaderDefines;
  8441. /* readonly */
  8442. int weakRefs;
  8443. };
  8444. class PhysicsRaycastResult
  8445. {
  8446. public:
  8447. ~PhysicsRaycastResult();
  8448. PhysicsRaycastResult();
  8449. // Properties:
  8450. /* readonly */
  8451. RigidBody body;
  8452. float distance;
  8453. float hitFraction;
  8454. Vector3 normal;
  8455. Vector3 position;
  8456. };
  8457. class PhysicsRaycastResult2D
  8458. {
  8459. public:
  8460. ~PhysicsRaycastResult2D();
  8461. PhysicsRaycastResult2D();
  8462. // Properties:
  8463. /* readonly */
  8464. RigidBody2D body;
  8465. float distance;
  8466. Vector2 normal;
  8467. Vector2 position;
  8468. };
  8469. class PhysicsWorld
  8470. {
  8471. public:
  8472. // Methods:
  8473. void ApplyAttributes();
  8474. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  8475. void DrawDebugGeometry(DebugRenderer, bool);
  8476. void DrawDebugGeometry(bool);
  8477. Variant GetAttribute(const String&) const;
  8478. ValueAnimation GetAttributeAnimation(const String&) const;
  8479. float GetAttributeAnimationSpeed(const String&) const;
  8480. float GetAttributeAnimationTime(const String&) const;
  8481. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8482. Variant GetAttributeDefault(const String&) const;
  8483. Array<RigidBody> GetCollidingBodies(RigidBody);
  8484. bool GetInterceptNetworkUpdate(const String&) const;
  8485. Array<RigidBody> GetRigidBodies(RigidBody);
  8486. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  8487. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  8488. bool HasSubscribedToEvent(Object, const String&);
  8489. bool HasSubscribedToEvent(const String&);
  8490. bool Load(File, bool = false);
  8491. bool Load(VectorBuffer&, bool = false);
  8492. bool LoadJSON(const JSONValue&, bool = false);
  8493. bool LoadXML(const XMLElement&, bool = false);
  8494. void MarkNetworkUpdate() const;
  8495. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  8496. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  8497. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  8498. void Remove();
  8499. void RemoveAttributeAnimation(const String&);
  8500. void RemoveCachedGeometry(Model);
  8501. void RemoveInstanceDefault();
  8502. void RemoveObjectAnimation();
  8503. void ResetToDefault();
  8504. bool Save(File) const;
  8505. bool Save(VectorBuffer&) const;
  8506. bool SaveJSON(JSONValue&) const;
  8507. bool SaveXML(XMLElement&) const;
  8508. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8509. void SetAnimationTime(float);
  8510. bool SetAttribute(const String&, const Variant&);
  8511. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8512. void SetAttributeAnimationSpeed(const String&, float);
  8513. void SetAttributeAnimationTime(const String&, float);
  8514. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8515. void SetInterceptNetworkUpdate(const String&, bool);
  8516. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  8517. void Update(float);
  8518. void UpdateCollisions();
  8519. // Properties:
  8520. bool animationEnabled;
  8521. /* readonly */
  8522. Array<Variant> attributeDefaults;
  8523. /* readonly */
  8524. Array<AttributeInfo> attributeInfos;
  8525. Array<Variant> attributes;
  8526. /* readonly */
  8527. String category;
  8528. bool enabled;
  8529. /* readonly */
  8530. bool enabledEffective;
  8531. int fps;
  8532. Vector3 gravity;
  8533. /* readonly */
  8534. uint id;
  8535. bool internalEdge;
  8536. bool interpolation;
  8537. int maxSubSteps;
  8538. /* readonly */
  8539. Node node;
  8540. /* readonly */
  8541. uint numAttributes;
  8542. int numIterations;
  8543. ObjectAnimation objectAnimation;
  8544. /* readonly */
  8545. int refs;
  8546. bool splitImpulse;
  8547. bool temporary;
  8548. /* readonly */
  8549. StringHash type;
  8550. /* readonly */
  8551. String typeName;
  8552. bool updateEnabled;
  8553. /* readonly */
  8554. int weakRefs;
  8555. };
  8556. class PhysicsWorld2D
  8557. {
  8558. public:
  8559. // Methods:
  8560. void ApplyAttributes();
  8561. void DrawDebugGeometry() const;
  8562. void DrawDebugGeometry(DebugRenderer, bool);
  8563. Variant GetAttribute(const String&) const;
  8564. ValueAnimation GetAttributeAnimation(const String&) const;
  8565. float GetAttributeAnimationSpeed(const String&) const;
  8566. float GetAttributeAnimationTime(const String&) const;
  8567. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8568. Variant GetAttributeDefault(const String&) const;
  8569. bool GetInterceptNetworkUpdate(const String&) const;
  8570. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8571. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8572. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8573. bool HasSubscribedToEvent(Object, const String&);
  8574. bool HasSubscribedToEvent(const String&);
  8575. bool Load(File, bool = false);
  8576. bool Load(VectorBuffer&, bool = false);
  8577. bool LoadJSON(const JSONValue&, bool = false);
  8578. bool LoadXML(const XMLElement&, bool = false);
  8579. void MarkNetworkUpdate() const;
  8580. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8581. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8582. void Remove();
  8583. void RemoveAttributeAnimation(const String&);
  8584. void RemoveInstanceDefault();
  8585. void RemoveObjectAnimation();
  8586. void ResetToDefault();
  8587. bool Save(File) const;
  8588. bool Save(VectorBuffer&) const;
  8589. bool SaveJSON(JSONValue&) const;
  8590. bool SaveXML(XMLElement&) const;
  8591. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8592. void SetAnimationTime(float);
  8593. bool SetAttribute(const String&, const Variant&);
  8594. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8595. void SetAttributeAnimationSpeed(const String&, float);
  8596. void SetAttributeAnimationTime(const String&, float);
  8597. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8598. void SetInterceptNetworkUpdate(const String&, bool);
  8599. // Properties:
  8600. bool allowSleeping;
  8601. bool animationEnabled;
  8602. /* readonly */
  8603. Array<Variant> attributeDefaults;
  8604. /* readonly */
  8605. Array<AttributeInfo> attributeInfos;
  8606. Array<Variant> attributes;
  8607. bool autoClearForces;
  8608. /* readonly */
  8609. String category;
  8610. bool continuousPhysics;
  8611. bool drawAabb;
  8612. bool drawCenterOfMass;
  8613. bool drawJoint;
  8614. bool drawPair;
  8615. bool drawShape;
  8616. bool enabled;
  8617. /* readonly */
  8618. bool enabledEffective;
  8619. Vector2 gravity;
  8620. /* readonly */
  8621. uint id;
  8622. /* readonly */
  8623. Node node;
  8624. /* readonly */
  8625. uint numAttributes;
  8626. ObjectAnimation objectAnimation;
  8627. uint positionIterations;
  8628. /* readonly */
  8629. int refs;
  8630. bool subStepping;
  8631. bool temporary;
  8632. /* readonly */
  8633. StringHash type;
  8634. /* readonly */
  8635. String typeName;
  8636. bool updateEnabled;
  8637. uint velocityIterations;
  8638. bool warmStarting;
  8639. /* readonly */
  8640. int weakRefs;
  8641. };
  8642. class Plane
  8643. {
  8644. public:
  8645. Plane();
  8646. Plane(const Plane&in);
  8647. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  8648. Plane(const Vector3&in, const Vector3&in);
  8649. Plane(const Vector4&in);
  8650. // Methods:
  8651. void Define(const Vector3&, const Vector3&);
  8652. void Define(const Vector3&, const Vector3&, const Vector3&);
  8653. void Define(const Vector4&);
  8654. float Distance(const Vector3&) const;
  8655. Vector3 Project(const Vector3&) const;
  8656. Vector3 Reflect(const Vector3&) const;
  8657. Vector4 ToVector4() const;
  8658. void Transform(const Matrix3&);
  8659. void Transform(const Matrix3x4&);
  8660. void Transform(const Matrix4&);
  8661. Plane Transformed(const Matrix3&) const;
  8662. Plane Transformed(const Matrix3x4&) const;
  8663. Plane Transformed(const Matrix4&) const;
  8664. // Properties:
  8665. Vector3 absNormal;
  8666. float d;
  8667. Vector3 normal;
  8668. /* readonly */
  8669. Matrix3x4 reflectionMatrix;
  8670. };
  8671. class Polyhedron
  8672. {
  8673. public:
  8674. ~Polyhedron();
  8675. Polyhedron();
  8676. Polyhedron(const Polyhedron&in);
  8677. Polyhedron(const BoundingBox&in);
  8678. Polyhedron(const Frustum&in);
  8679. // Methods:
  8680. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8681. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8682. void AddFace(const Array<Vector3>);
  8683. void Clear();
  8684. void Clip(const BoundingBox&);
  8685. void Clip(const Frustum&);
  8686. void Define(const BoundingBox&);
  8687. void Define(const Frustum&);
  8688. void Transform(const Matrix3&);
  8689. void Transform(const Matrix3x4&);
  8690. Polyhedron Transformed(const Matrix3&) const;
  8691. Polyhedron Transformed(const Matrix3x4&) const;
  8692. // Properties:
  8693. /* readonly */
  8694. Array<Array<Vector3>> face;
  8695. /* readonly */
  8696. uint numFaces;
  8697. };
  8698. class ProgressBar
  8699. {
  8700. public:
  8701. // Methods:
  8702. void ChangeValue(float);
  8703. bool HasSubscribedToEvent(Object, const String&);
  8704. bool HasSubscribedToEvent(const String&);
  8705. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8706. void SetLoadingPercentStyle(const String&);
  8707. // Properties:
  8708. /* readonly */
  8709. String category;
  8710. /* readonly */
  8711. BorderImage knob;
  8712. Orientation orientation;
  8713. float range;
  8714. /* readonly */
  8715. int refs;
  8716. bool showPercentText;
  8717. /* readonly */
  8718. StringHash type;
  8719. /* readonly */
  8720. String typeName;
  8721. float value;
  8722. /* readonly */
  8723. int weakRefs;
  8724. };
  8725. class PropertySet2D
  8726. {
  8727. public:
  8728. // Methods:
  8729. bool HasProperty(const String&) const;
  8730. const String& GetProperty(const String&) const;
  8731. // Properties:
  8732. /* readonly */
  8733. int refs;
  8734. /* readonly */
  8735. int weakRefs;
  8736. };
  8737. class Quaternion
  8738. {
  8739. public:
  8740. Quaternion();
  8741. Quaternion(const Quaternion&in);
  8742. Quaternion(float, float, float, float);
  8743. Quaternion(float, const Vector3&in);
  8744. Quaternion(float);
  8745. Quaternion(float, float, float);
  8746. Quaternion(const Vector3&in);
  8747. Quaternion(const Vector3&in, const Vector3&in);
  8748. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  8749. Quaternion(const Matrix3&in);
  8750. // Methods:
  8751. Quaternion Conjugate() const;
  8752. float DotProduct(const Quaternion&) const;
  8753. bool Equals(const Quaternion&) const;
  8754. void FromAngleAxis(float, const Vector3&);
  8755. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8756. void FromEulerAngles(float, float, float);
  8757. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8758. void FromRotationMatrix(const Matrix3&);
  8759. void FromRotationTo(const Vector3&, const Vector3&);
  8760. Quaternion Inverse() const;
  8761. bool IsNaN() const;
  8762. float LengthSquared() const;
  8763. Quaternion Nlerp(const Quaternion&, float, bool) const;
  8764. void Normalize();
  8765. Quaternion Normalized() const;
  8766. Quaternion Slerp(const Quaternion&, float) const;
  8767. String ToString() const;
  8768. // Properties:
  8769. /* readonly */
  8770. float angle;
  8771. /* readonly */
  8772. Vector3 axis;
  8773. /* readonly */
  8774. Vector3 eulerAngles;
  8775. /* readonly */
  8776. float pitch;
  8777. /* readonly */
  8778. float roll;
  8779. /* readonly */
  8780. Matrix3 rotationMatrix;
  8781. float w;
  8782. float x;
  8783. float y;
  8784. /* readonly */
  8785. float yaw;
  8786. float z;
  8787. };
  8788. class Ray
  8789. {
  8790. public:
  8791. Ray();
  8792. Ray(const Ray&in);
  8793. Ray(const Vector3&in, const Vector3&in);
  8794. // Methods:
  8795. Vector3 ClosestPoint(const Ray&) const;
  8796. void Define(const Vector3&, const Vector3&);
  8797. float Distance(const Vector3&) const;
  8798. float HitDistance(const BoundingBox&) const;
  8799. float HitDistance(const Frustum&, bool = true) const;
  8800. float HitDistance(const Plane&) const;
  8801. float HitDistance(const Sphere&) const;
  8802. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8803. Vector3 Project(const Vector3&) const;
  8804. Ray Transformed(const Matrix3x4&) const;
  8805. // Properties:
  8806. Vector3 direction;
  8807. Vector3 origin;
  8808. };
  8809. class RayQueryResult
  8810. {
  8811. public:
  8812. RayQueryResult();
  8813. // Properties:
  8814. float distance;
  8815. /* readonly */
  8816. Drawable drawable;
  8817. /* readonly */
  8818. Node node;
  8819. Vector3 normal;
  8820. Vector3 position;
  8821. uint subObject;
  8822. Vector2 textureUV;
  8823. };
  8824. class RaycastVehicle
  8825. {
  8826. public:
  8827. // Methods:
  8828. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  8829. void ApplyAttributes();
  8830. void DrawDebugGeometry(DebugRenderer, bool);
  8831. Variant GetAttribute(const String&) const;
  8832. ValueAnimation GetAttributeAnimation(const String&) const;
  8833. float GetAttributeAnimationSpeed(const String&) const;
  8834. float GetAttributeAnimationTime(const String&) const;
  8835. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8836. Variant GetAttributeDefault(const String&) const;
  8837. float GetBrake(int);
  8838. Vector3 GetContactNormal(int);
  8839. Vector3 GetContactPosition(int);
  8840. float GetEngineForce(int);
  8841. bool GetInterceptNetworkUpdate(const String&) const;
  8842. float GetMaxSuspensionTravel(int);
  8843. float GetSteeringValue(int);
  8844. Vector3 GetWheelAxle(int);
  8845. Vector3 GetWheelConnectionPoint(int);
  8846. float GetWheelDampingCompression(int);
  8847. float GetWheelDampingRelaxation(int);
  8848. Vector3 GetWheelDirection(int);
  8849. float GetWheelFrictionSlip(int);
  8850. Node GetWheelNode(int);
  8851. Vector3 GetWheelPosition(int);
  8852. float GetWheelRadius(int);
  8853. float GetWheelRestLength(int);
  8854. float GetWheelRollInfluence(int);
  8855. Vector3 GetWheelRotation(int);
  8856. float GetWheelSideSlipSpeed(int);
  8857. float GetWheelSkidInfo(int);
  8858. float GetWheelSkidInfoCumulative(int);
  8859. float GetWheelSuspensionStiffness(int);
  8860. bool HasSubscribedToEvent(Object, const String&);
  8861. bool HasSubscribedToEvent(const String&);
  8862. void Init();
  8863. bool IsFrontWheel(int);
  8864. bool Load(File, bool = false);
  8865. bool Load(VectorBuffer&, bool = false);
  8866. bool LoadJSON(const JSONValue&, bool = false);
  8867. bool LoadXML(const XMLElement&, bool = false);
  8868. void MarkNetworkUpdate() const;
  8869. void Remove();
  8870. void RemoveAttributeAnimation(const String&);
  8871. void RemoveInstanceDefault();
  8872. void RemoveObjectAnimation();
  8873. void ResetSuspension();
  8874. void ResetToDefault();
  8875. void ResetWheels();
  8876. bool Save(File) const;
  8877. bool Save(VectorBuffer&) const;
  8878. bool SaveJSON(JSONValue&) const;
  8879. bool SaveXML(XMLElement&) const;
  8880. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8881. void SetAnimationTime(float);
  8882. bool SetAttribute(const String&, const Variant&);
  8883. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8884. void SetAttributeAnimationSpeed(const String&, float);
  8885. void SetAttributeAnimationTime(const String&, float);
  8886. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8887. void SetBrake(int, float);
  8888. void SetEngineForce(int, float);
  8889. void SetInterceptNetworkUpdate(const String&, bool);
  8890. void SetMaxSuspensionTravel(int, float);
  8891. void SetSteeringValue(int, float);
  8892. void SetWheelAxle(int, Vector3);
  8893. void SetWheelDampingCompression(int, float);
  8894. void SetWheelDampingRelaxation(int, float);
  8895. void SetWheelDirection(int, Vector3);
  8896. void SetWheelFrictionSlip(int, float);
  8897. void SetWheelRadius(int, float);
  8898. void SetWheelRestLength(int, float);
  8899. void SetWheelRollInfluence(int, float);
  8900. void SetWheelSkidInfo(int, float);
  8901. void SetWheelSkidInfoCumulative(int, float);
  8902. void SetWheelSuspensionStiffness(int, float);
  8903. void UpdateWheelTransform(int, bool);
  8904. bool WheelIsGrounded(int);
  8905. // Properties:
  8906. bool animationEnabled;
  8907. /* readonly */
  8908. Array<Variant> attributeDefaults;
  8909. /* readonly */
  8910. Array<AttributeInfo> attributeInfos;
  8911. Array<Variant> attributes;
  8912. /* readonly */
  8913. String category;
  8914. bool enabled;
  8915. /* readonly */
  8916. bool enabledEffective;
  8917. /* readonly */
  8918. uint id;
  8919. float inAirRPM;
  8920. float maxSideSlipSpeed;
  8921. /* readonly */
  8922. Node node;
  8923. /* readonly */
  8924. uint numAttributes;
  8925. /* readonly */
  8926. int numWheels;
  8927. ObjectAnimation objectAnimation;
  8928. /* readonly */
  8929. int refs;
  8930. bool temporary;
  8931. /* readonly */
  8932. StringHash type;
  8933. /* readonly */
  8934. String typeName;
  8935. /* readonly */
  8936. int weakRefs;
  8937. };
  8938. class Rect
  8939. {
  8940. public:
  8941. Rect();
  8942. Rect(const Rect&in);
  8943. Rect(float, float, float, float);
  8944. Rect(const Vector2&in, const Vector2&in);
  8945. Rect(const Vector4&in);
  8946. // Methods:
  8947. void Clear();
  8948. void Clip(const Rect&);
  8949. void Define(const Vector2&);
  8950. void Define(const Vector2&, const Vector2&);
  8951. bool Defined() const;
  8952. bool Equals(const Rect&) const;
  8953. Intersection IsInside(const Rect&) const;
  8954. Intersection IsInside(const Vector2&) const;
  8955. void Merge(const Rect&);
  8956. void Merge(const Vector2&);
  8957. Vector4 ToVector4() const;
  8958. // Properties:
  8959. float bottom;
  8960. /* readonly */
  8961. Vector2 center;
  8962. /* readonly */
  8963. Vector2 halfSize;
  8964. float left;
  8965. Vector2 max;
  8966. Vector2 min;
  8967. float right;
  8968. /* readonly */
  8969. Vector2 size;
  8970. float top;
  8971. };
  8972. class RefCounted
  8973. {
  8974. public:
  8975. // Properties:
  8976. /* readonly */
  8977. int refs;
  8978. /* readonly */
  8979. int weakRefs;
  8980. };
  8981. class RenderPath
  8982. {
  8983. public:
  8984. RenderPath();
  8985. // Methods:
  8986. void AddCommand(const RenderPathCommand&);
  8987. void AddRenderTarget(const RenderTargetInfo&);
  8988. bool Append(XMLFile);
  8989. RenderPath Clone();
  8990. void InsertCommand(uint, const RenderPathCommand&);
  8991. bool Load(XMLFile);
  8992. void RemoveCommand(uint);
  8993. void RemoveCommands(const String&);
  8994. void RemoveRenderTarget(const String&);
  8995. void RemoveRenderTarget(uint);
  8996. void RemoveRenderTargts(const String&);
  8997. void SetEnabled(const String&, bool);
  8998. void ToggleEnabled(const String&);
  8999. // Properties:
  9000. Array<RenderPathCommand> commands;
  9001. /* readonly */
  9002. uint numCommands;
  9003. /* readonly */
  9004. uint numRenderTargets;
  9005. /* readonly */
  9006. int refs;
  9007. Array<RenderTargetInfo> renderTargets;
  9008. Array<Variant> shaderParameters;
  9009. /* readonly */
  9010. int weakRefs;
  9011. };
  9012. class RenderPathCommand
  9013. {
  9014. public:
  9015. ~RenderPathCommand();
  9016. RenderPathCommand();
  9017. RenderPathCommand(const RenderPathCommand&in);
  9018. // Methods:
  9019. void RemoveShaderParameter(const String&);
  9020. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  9021. // Properties:
  9022. BlendMode blendMode;
  9023. Color clearColor;
  9024. float clearDepth;
  9025. uint clearFlags;
  9026. uint clearStencil;
  9027. String depthStencilName;
  9028. bool enabled;
  9029. String eventName;
  9030. bool markToStencil;
  9031. String metadata;
  9032. uint numOutputs;
  9033. Array<CubeMapFace> outputFaces;
  9034. Array<String> outputNames;
  9035. String pass;
  9036. String pixelShaderDefines;
  9037. String pixelShaderName;
  9038. Array<Variant> shaderParameters;
  9039. RenderCommandSortMode sortMode;
  9040. String tag;
  9041. Array<String> textureNames;
  9042. RenderCommandType type;
  9043. bool useFogColor;
  9044. bool useLitBase;
  9045. bool vertexLights;
  9046. String vertexShaderDefines;
  9047. String vertexShaderName;
  9048. };
  9049. class RenderSurface
  9050. {
  9051. public:
  9052. // Methods:
  9053. void QueueUpdate();
  9054. // Properties:
  9055. /* readonly */
  9056. int height;
  9057. RenderSurface linkedDepthStencil;
  9058. RenderSurface linkedRenderTarget;
  9059. uint numViewports;
  9060. /* readonly */
  9061. Texture parentTexture;
  9062. /* readonly */
  9063. bool resolveDirty;
  9064. RenderSurfaceUpdateMode updateMode;
  9065. /* readonly */
  9066. TextureUsage usage;
  9067. Array<Viewport> viewports;
  9068. /* readonly */
  9069. int width;
  9070. };
  9071. class RenderTargetInfo
  9072. {
  9073. public:
  9074. ~RenderTargetInfo();
  9075. RenderTargetInfo();
  9076. RenderTargetInfo(const RenderTargetInfo&in);
  9077. // Properties:
  9078. bool autoResolve;
  9079. bool cubemap;
  9080. bool enabled;
  9081. bool filtered;
  9082. uint format;
  9083. int multiSample;
  9084. String name;
  9085. bool persistent;
  9086. bool sRGB;
  9087. Vector2 size;
  9088. RenderTargetSizeMode sizeMode;
  9089. String tag;
  9090. };
  9091. class Renderer
  9092. {
  9093. public:
  9094. // Methods:
  9095. void DrawDebugGeometry(bool) const;
  9096. bool HasSubscribedToEvent(Object, const String&);
  9097. bool HasSubscribedToEvent(const String&);
  9098. void ReloadShaders() const;
  9099. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9100. void SetDefaultRenderPath(XMLFile);
  9101. void SetVSMShadowParameters(float, float);
  9102. // Properties:
  9103. /* readonly */
  9104. String category;
  9105. /* readonly */
  9106. Material defaultLightRamp;
  9107. /* readonly */
  9108. Material defaultLightSpot;
  9109. /* readonly */
  9110. Material defaultMaterial;
  9111. RenderPath defaultRenderPath;
  9112. Technique defaultTechnique;
  9113. /* readonly */
  9114. Zone defaultZone;
  9115. bool drawShadows;
  9116. bool dynamicInstancing;
  9117. bool hdrRendering;
  9118. int materialQuality;
  9119. int maxOccluderTriangles;
  9120. int maxShadowMaps;
  9121. int maxSortedInstances;
  9122. int minInstances;
  9123. float mobileNormalOffsetMul;
  9124. float mobileShadowBiasAdd;
  9125. float mobileShadowBiasMul;
  9126. /* readonly */
  9127. uint numBatches;
  9128. int numExtraInstancingBufferElements;
  9129. /* readonly */
  9130. Array<uint> numGeometries;
  9131. /* readonly */
  9132. Array<uint> numLights;
  9133. /* readonly */
  9134. Array<uint> numOccluders;
  9135. /* readonly */
  9136. uint numPrimitives;
  9137. /* readonly */
  9138. Array<uint> numShadowMaps;
  9139. uint numViewports;
  9140. /* readonly */
  9141. uint numViews;
  9142. float occluderSizeThreshold;
  9143. int occlusionBufferSize;
  9144. /* readonly */
  9145. int refs;
  9146. bool reuseShadowMaps;
  9147. int shadowMapSize;
  9148. ShadowQuality shadowQuality;
  9149. float shadowSoftness;
  9150. bool specularLighting;
  9151. int textureAnisotropy;
  9152. TextureFilterMode textureFilterMode;
  9153. int textureQuality;
  9154. bool threadedOcclusion;
  9155. /* readonly */
  9156. StringHash type;
  9157. /* readonly */
  9158. String typeName;
  9159. Array<Viewport> viewports;
  9160. int vsmMultiSample;
  9161. Vector2 vsmShadowParameters;
  9162. /* readonly */
  9163. int weakRefs;
  9164. };
  9165. class Resource
  9166. {
  9167. public:
  9168. // Methods:
  9169. bool HasSubscribedToEvent(Object, const String&);
  9170. bool HasSubscribedToEvent(const String&);
  9171. bool Load(File);
  9172. bool Load(VectorBuffer&);
  9173. bool Load(const String&);
  9174. bool Save(File) const;
  9175. bool Save(VectorBuffer&) const;
  9176. bool Save(const String&) const;
  9177. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9178. // Properties:
  9179. /* readonly */
  9180. String category;
  9181. /* readonly */
  9182. uint memoryUse;
  9183. String name;
  9184. /* readonly */
  9185. int refs;
  9186. /* readonly */
  9187. StringHash type;
  9188. /* readonly */
  9189. String typeName;
  9190. /* readonly */
  9191. uint useTimer;
  9192. /* readonly */
  9193. int weakRefs;
  9194. };
  9195. class ResourceCache
  9196. {
  9197. public:
  9198. // Methods:
  9199. bool AddManualResource(Resource);
  9200. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  9201. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  9202. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  9203. bool BackgroundLoadResource(const String&, const String&, bool = true);
  9204. bool Exists(const String&) const;
  9205. Resource GetExistingResource(StringHash, const String&);
  9206. Resource GetExistingResource(const String&, const String&);
  9207. File GetFile(const String&);
  9208. String GetPreferredResourceDir(const String&) const;
  9209. Resource GetResource(StringHash, const String&, bool = true);
  9210. Resource GetResource(const String&, const String&, bool = true);
  9211. String GetResourceFileName(const String&) const;
  9212. Array<Resource> GetResources(StringHash);
  9213. Array<Resource> GetResources(const String&);
  9214. bool HasSubscribedToEvent(Object, const String&);
  9215. bool HasSubscribedToEvent(const String&);
  9216. void ReleaseAllResources(bool = false);
  9217. void ReleaseResource(const String&, const String&, bool = false);
  9218. void ReleaseResources(StringHash, bool = false);
  9219. void ReleaseResources(const String&, bool = false);
  9220. void ReleaseResources(const String&, const String&, bool = false);
  9221. bool ReloadResource(Resource);
  9222. void ReloadResourceWithDependencies(const String&);
  9223. void RemovePackageFile(PackageFile, bool = true, bool = false);
  9224. void RemovePackageFile(const String&, bool = true, bool = false);
  9225. void RemoveResourceDir(const String&);
  9226. String SanitateResourceDirName(const String&) const;
  9227. String SanitateResourceName(const String&) const;
  9228. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9229. // Properties:
  9230. bool autoReloadResources;
  9231. /* readonly */
  9232. String category;
  9233. int finishBackgroundResourcesMs;
  9234. Array<uint64> memoryBudget;
  9235. /* readonly */
  9236. Array<uint64> memoryUse;
  9237. /* readonly */
  9238. uint numBackgroundLoadResources;
  9239. /* readonly */
  9240. Array<PackageFile> packageFiles;
  9241. /* readonly */
  9242. int refs;
  9243. /* readonly */
  9244. Array<String> resourceDirs;
  9245. bool returnFailedResources;
  9246. /* readonly */
  9247. bool seachPackagesFirst;
  9248. /* writeonly */
  9249. bool searchPackagesFirst;
  9250. /* readonly */
  9251. uint64 totalMemoryUse;
  9252. /* readonly */
  9253. StringHash type;
  9254. /* readonly */
  9255. String typeName;
  9256. /* readonly */
  9257. int weakRefs;
  9258. };
  9259. class ResourceRef
  9260. {
  9261. public:
  9262. ~ResourceRef();
  9263. ResourceRef();
  9264. ResourceRef(const ResourceRef&in);
  9265. ResourceRef(const String&in, const String&in);
  9266. // Properties:
  9267. String name;
  9268. StringHash type;
  9269. };
  9270. class ResourceRefList
  9271. {
  9272. public:
  9273. ~ResourceRefList();
  9274. ResourceRefList();
  9275. ResourceRefList(const ResourceRefList&in);
  9276. // Methods:
  9277. void Resize(uint);
  9278. // Properties:
  9279. /* readonly */
  9280. bool empty;
  9281. /* readonly */
  9282. uint length;
  9283. Array<String> names;
  9284. StringHash type;
  9285. };
  9286. class RibbonTrail
  9287. {
  9288. public:
  9289. // Methods:
  9290. void ApplyAttributes();
  9291. void Commit();
  9292. void DrawDebugGeometry(DebugRenderer, bool);
  9293. Variant GetAttribute(const String&) const;
  9294. ValueAnimation GetAttributeAnimation(const String&) const;
  9295. float GetAttributeAnimationSpeed(const String&) const;
  9296. float GetAttributeAnimationTime(const String&) const;
  9297. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9298. Variant GetAttributeDefault(const String&) const;
  9299. bool GetInterceptNetworkUpdate(const String&) const;
  9300. bool HasSubscribedToEvent(Object, const String&);
  9301. bool HasSubscribedToEvent(const String&);
  9302. bool IsInView(Camera) const;
  9303. bool Load(File, bool = false);
  9304. bool Load(VectorBuffer&, bool = false);
  9305. bool LoadJSON(const JSONValue&, bool = false);
  9306. bool LoadXML(const XMLElement&, bool = false);
  9307. void MarkNetworkUpdate() const;
  9308. void Remove();
  9309. void RemoveAttributeAnimation(const String&);
  9310. void RemoveInstanceDefault();
  9311. void RemoveObjectAnimation();
  9312. void ResetToDefault();
  9313. bool Save(File) const;
  9314. bool Save(VectorBuffer&) const;
  9315. bool SaveJSON(JSONValue&) const;
  9316. bool SaveXML(XMLElement&) const;
  9317. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9318. void SetAnimationTime(float);
  9319. bool SetAttribute(const String&, const Variant&);
  9320. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9321. void SetAttributeAnimationSpeed(const String&, float);
  9322. void SetAttributeAnimationTime(const String&, float);
  9323. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9324. void SetInterceptNetworkUpdate(const String&, bool);
  9325. // Properties:
  9326. bool animationEnabled;
  9327. float animationLodBias;
  9328. /* readonly */
  9329. Array<Variant> attributeDefaults;
  9330. /* readonly */
  9331. Array<AttributeInfo> attributeInfos;
  9332. Array<Variant> attributes;
  9333. /* readonly */
  9334. BoundingBox boundingBox;
  9335. bool castShadows;
  9336. /* readonly */
  9337. String category;
  9338. float drawDistance;
  9339. bool emitting;
  9340. bool enabled;
  9341. /* readonly */
  9342. bool enabledEffective;
  9343. Color endColor;
  9344. float endScale;
  9345. /* readonly */
  9346. uint id;
  9347. /* readonly */
  9348. bool inView;
  9349. float lifetime;
  9350. uint lightMask;
  9351. float lodBias;
  9352. Material material;
  9353. uint maxLights;
  9354. /* readonly */
  9355. Node node;
  9356. /* readonly */
  9357. uint numAttributes;
  9358. ObjectAnimation objectAnimation;
  9359. bool occludee;
  9360. bool occluder;
  9361. /* readonly */
  9362. int refs;
  9363. float shadowDistance;
  9364. uint shadowMask;
  9365. bool sorted;
  9366. Color startColor;
  9367. float startScale;
  9368. uint tailColumn;
  9369. bool temporary;
  9370. TrailType trailType;
  9371. /* readonly */
  9372. StringHash type;
  9373. /* readonly */
  9374. String typeName;
  9375. bool updateInvisible;
  9376. float vertexDistance;
  9377. uint viewMask;
  9378. /* readonly */
  9379. int weakRefs;
  9380. float width;
  9381. /* readonly */
  9382. BoundingBox worldBoundingBox;
  9383. /* readonly */
  9384. Zone zone;
  9385. uint zoneMask;
  9386. };
  9387. class RigidBody
  9388. {
  9389. public:
  9390. // Methods:
  9391. void Activate();
  9392. void ApplyAttributes();
  9393. void ApplyForce(const Vector3&);
  9394. void ApplyForce(const Vector3&, const Vector3&);
  9395. void ApplyImpulse(const Vector3&);
  9396. void ApplyImpulse(const Vector3&, const Vector3&);
  9397. void ApplyTorque(const Vector3&);
  9398. void ApplyTorqueImpulse(const Vector3&);
  9399. void DisableMassUpdate();
  9400. void DrawDebugGeometry(DebugRenderer, bool);
  9401. void EnableMassUpdate();
  9402. Variant GetAttribute(const String&) const;
  9403. ValueAnimation GetAttributeAnimation(const String&) const;
  9404. float GetAttributeAnimationSpeed(const String&) const;
  9405. float GetAttributeAnimationTime(const String&) const;
  9406. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9407. Variant GetAttributeDefault(const String&) const;
  9408. bool GetInterceptNetworkUpdate(const String&) const;
  9409. Vector3 GetVelocityAtPoint(const Vector3&) const;
  9410. bool HasSubscribedToEvent(Object, const String&);
  9411. bool HasSubscribedToEvent(const String&);
  9412. bool Load(File, bool = false);
  9413. bool Load(VectorBuffer&, bool = false);
  9414. bool LoadJSON(const JSONValue&, bool = false);
  9415. bool LoadXML(const XMLElement&, bool = false);
  9416. void MarkNetworkUpdate() const;
  9417. void ReAddBodyToWorld();
  9418. void Remove();
  9419. void RemoveAttributeAnimation(const String&);
  9420. void RemoveInstanceDefault();
  9421. void RemoveObjectAnimation();
  9422. void ResetForces();
  9423. void ResetToDefault();
  9424. bool Save(File) const;
  9425. bool Save(VectorBuffer&) const;
  9426. bool SaveJSON(JSONValue&) const;
  9427. bool SaveXML(XMLElement&) const;
  9428. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9429. void SetAnimationTime(float);
  9430. bool SetAttribute(const String&, const Variant&);
  9431. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9432. void SetAttributeAnimationSpeed(const String&, float);
  9433. void SetAttributeAnimationTime(const String&, float);
  9434. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9435. void SetCollisionLayerAndMask(uint, uint);
  9436. void SetInterceptNetworkUpdate(const String&, bool);
  9437. void SetTransform(const Vector3&, const Quaternion&);
  9438. // Properties:
  9439. /* readonly */
  9440. bool active;
  9441. float angularDamping;
  9442. Vector3 angularFactor;
  9443. float angularRestThreshold;
  9444. Vector3 angularVelocity;
  9445. bool animationEnabled;
  9446. Vector3 anisotropicFriction;
  9447. /* readonly */
  9448. Array<Variant> attributeDefaults;
  9449. /* readonly */
  9450. Array<AttributeInfo> attributeInfos;
  9451. Array<Variant> attributes;
  9452. /* readonly */
  9453. String category;
  9454. float ccdMotionThreshold;
  9455. float ccdRadius;
  9456. /* readonly */
  9457. Vector3 centerOfMass;
  9458. /* readonly */
  9459. Array<RigidBody> collidingBodies;
  9460. CollisionEventMode collisionEventMode;
  9461. uint collisionLayer;
  9462. uint collisionMask;
  9463. float contactProcessingThreshold;
  9464. bool enabled;
  9465. /* readonly */
  9466. bool enabledEffective;
  9467. float friction;
  9468. Vector3 gravityOverride;
  9469. /* readonly */
  9470. uint id;
  9471. bool kinematic;
  9472. float linearDamping;
  9473. Vector3 linearFactor;
  9474. float linearRestThreshold;
  9475. Vector3 linearVelocity;
  9476. float mass;
  9477. /* readonly */
  9478. Node node;
  9479. /* readonly */
  9480. uint numAttributes;
  9481. ObjectAnimation objectAnimation;
  9482. Vector3 position;
  9483. /* readonly */
  9484. int refs;
  9485. float restitution;
  9486. float rollingFriction;
  9487. Quaternion rotation;
  9488. bool temporary;
  9489. bool trigger;
  9490. /* readonly */
  9491. StringHash type;
  9492. /* readonly */
  9493. String typeName;
  9494. bool useGravity;
  9495. /* readonly */
  9496. int weakRefs;
  9497. };
  9498. class RigidBody2D
  9499. {
  9500. public:
  9501. // Methods:
  9502. void ApplyAngularImpulse(float, bool);
  9503. void ApplyAttributes();
  9504. void ApplyForce(const Vector2&, const Vector2&, bool);
  9505. void ApplyForceToCenter(const Vector2&, bool);
  9506. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  9507. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  9508. void ApplyTorque(float, bool);
  9509. void DrawDebugGeometry(DebugRenderer, bool);
  9510. Variant GetAttribute(const String&) const;
  9511. ValueAnimation GetAttributeAnimation(const String&) const;
  9512. float GetAttributeAnimationSpeed(const String&) const;
  9513. float GetAttributeAnimationTime(const String&) const;
  9514. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9515. Variant GetAttributeDefault(const String&) const;
  9516. bool GetInterceptNetworkUpdate(const String&) const;
  9517. bool HasSubscribedToEvent(Object, const String&);
  9518. bool HasSubscribedToEvent(const String&);
  9519. bool Load(File, bool = false);
  9520. bool Load(VectorBuffer&, bool = false);
  9521. bool LoadJSON(const JSONValue&, bool = false);
  9522. bool LoadXML(const XMLElement&, bool = false);
  9523. void MarkNetworkUpdate() const;
  9524. void Remove();
  9525. void RemoveAttributeAnimation(const String&);
  9526. void RemoveInstanceDefault();
  9527. void RemoveObjectAnimation();
  9528. void ResetToDefault();
  9529. bool Save(File) const;
  9530. bool Save(VectorBuffer&) const;
  9531. bool SaveJSON(JSONValue&) const;
  9532. bool SaveXML(XMLElement&) const;
  9533. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9534. void SetAnimationTime(float);
  9535. bool SetAttribute(const String&, const Variant&);
  9536. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9537. void SetAttributeAnimationSpeed(const String&, float);
  9538. void SetAttributeAnimationTime(const String&, float);
  9539. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9540. void SetInterceptNetworkUpdate(const String&, bool);
  9541. // Properties:
  9542. bool allowSleep;
  9543. float angularDamping;
  9544. bool animationEnabled;
  9545. /* readonly */
  9546. Array<Variant> attributeDefaults;
  9547. /* readonly */
  9548. Array<AttributeInfo> attributeInfos;
  9549. Array<Variant> attributes;
  9550. bool awake;
  9551. BodyType2D bodyType;
  9552. bool bullet;
  9553. /* readonly */
  9554. String category;
  9555. bool enabled;
  9556. /* readonly */
  9557. bool enabledEffective;
  9558. bool fixedRotation;
  9559. float gravityScale;
  9560. /* readonly */
  9561. uint id;
  9562. float inertia;
  9563. float linearDamping;
  9564. Vector2 linearVelocity;
  9565. float mass;
  9566. Vector2 massCenter;
  9567. /* readonly */
  9568. Node node;
  9569. /* readonly */
  9570. uint numAttributes;
  9571. ObjectAnimation objectAnimation;
  9572. /* readonly */
  9573. int refs;
  9574. bool temporary;
  9575. /* readonly */
  9576. StringHash type;
  9577. /* readonly */
  9578. String typeName;
  9579. bool useFixtureMass;
  9580. /* readonly */
  9581. int weakRefs;
  9582. };
  9583. class Scene
  9584. {
  9585. public:
  9586. Scene();
  9587. Scene(const String&in);
  9588. // Methods:
  9589. void AddChild(Node, uint = M_MAX_UNSIGNED);
  9590. void AddRequiredPackageFile(PackageFile);
  9591. void AddTag(const String&);
  9592. void AddTags(const String&, int8 = ';');
  9593. void ApplyAttributes();
  9594. void Clear(bool = true, bool = true);
  9595. void ClearRequiredPackageFiles();
  9596. Component CloneComponent(Component, CreateMode, uint = 0);
  9597. Component CloneComponent(Component, uint = 0);
  9598. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  9599. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9600. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  9601. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  9602. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  9603. Variant GetAttribute(const String&) const;
  9604. ValueAnimation GetAttributeAnimation(const String&) const;
  9605. float GetAttributeAnimationSpeed(const String&) const;
  9606. float GetAttributeAnimationTime(const String&) const;
  9607. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9608. Variant GetAttributeDefault(const String&) const;
  9609. Node GetChild(const String&, bool = false) const;
  9610. Array<Node> GetChildren(bool = false) const;
  9611. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  9612. Array<Node> GetChildrenWithScript(bool = false) const;
  9613. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  9614. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  9615. Component GetComponent(const String&, bool = false) const;
  9616. Component GetComponent(uint) const;
  9617. Array<Component> GetComponents() const;
  9618. Array<Component> GetComponents(const String&, bool = false) const;
  9619. bool GetInterceptNetworkUpdate(const String&) const;
  9620. Node GetNode(uint) const;
  9621. Array<Node> GetNodesWithTag(const String&) const;
  9622. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9623. Component GetParentComponent(const String&, bool = false) const;
  9624. ScriptObject GetScriptObject() const;
  9625. ScriptObject GetScriptObject(const String&) const;
  9626. bool HasComponent(const String&) const;
  9627. bool HasSubscribedToEvent(Object, const String&);
  9628. bool HasSubscribedToEvent(const String&);
  9629. bool HasTag(const String&);
  9630. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9631. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9632. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9633. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9634. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9635. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9636. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9637. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9638. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9639. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9640. bool IsChildOf(Node) const;
  9641. bool Load(File, bool = false);
  9642. bool Load(VectorBuffer&, bool = false);
  9643. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9644. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9645. bool LoadJSON(File);
  9646. bool LoadJSON(VectorBuffer&);
  9647. bool LoadJSON(const JSONValue&, bool = false);
  9648. bool LoadXML(File);
  9649. bool LoadXML(VectorBuffer&);
  9650. bool LoadXML(const XMLElement&, bool = false);
  9651. Vector3 LocalToWorld(const Vector3&) const;
  9652. Vector3 LocalToWorld(const Vector4&) const;
  9653. Vector2 LocalToWorld2D(const Vector2&) const;
  9654. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  9655. void MarkNetworkUpdate() const;
  9656. void Pitch(float, TransformSpace = TS_LOCAL);
  9657. void RegisterVar(const String&);
  9658. void Remove();
  9659. void RemoveAllChildren();
  9660. void RemoveAllComponents();
  9661. void RemoveAllTags();
  9662. void RemoveAttributeAnimation(const String&);
  9663. void RemoveChild(Node);
  9664. void RemoveChildren(bool, bool, bool);
  9665. void RemoveComponent(Component);
  9666. void RemoveComponent(const String&);
  9667. void RemoveComponents(bool, bool);
  9668. void RemoveComponents(const String&);
  9669. void RemoveInstanceDefault();
  9670. void RemoveObjectAnimation();
  9671. bool RemoveTag(const String&);
  9672. void ReorderComponent(Component, uint);
  9673. void ResetToDefault();
  9674. void Roll(float, TransformSpace = TS_LOCAL);
  9675. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  9676. void Rotate2D(float, TransformSpace = TS_LOCAL);
  9677. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  9678. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  9679. bool Save(File) const;
  9680. bool Save(VectorBuffer&) const;
  9681. bool SaveJSON(File, const String& = "\t");
  9682. bool SaveJSON(JSONValue&) const;
  9683. bool SaveJSON(VectorBuffer&, const String& = "\t");
  9684. bool SaveXML(File, const String& = "\t");
  9685. bool SaveXML(VectorBuffer&, const String& = "\t");
  9686. bool SaveXML(XMLElement&) const;
  9687. void Scale(const Vector3&);
  9688. void Scale(float);
  9689. void Scale2D(const Vector2&);
  9690. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9691. void SetAnimationTime(float);
  9692. bool SetAttribute(const String&, const Variant&);
  9693. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9694. void SetAttributeAnimationSpeed(const String&, float);
  9695. void SetAttributeAnimationTime(const String&, float);
  9696. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9697. void SetInterceptNetworkUpdate(const String&, bool);
  9698. void SetPosition2D(float, float);
  9699. void SetScale(float);
  9700. void SetScale2D(float, float);
  9701. void SetTransform(const Matrix3x4&);
  9702. void SetTransform(const Vector3&, const Quaternion&);
  9703. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  9704. void SetTransform(const Vector3&, const Quaternion&, float);
  9705. void SetTransform2D(const Vector2&, float);
  9706. void SetTransform2D(const Vector2&, float, const Vector2&);
  9707. void SetTransform2D(const Vector2&, float, float);
  9708. void SetWorldTransform(const Vector3&, const Quaternion&);
  9709. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  9710. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  9711. void SetWorldTransform2D(const Vector2&, float);
  9712. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  9713. void SetWorldTransform2D(const Vector2&, float, float);
  9714. void StopAsyncLoading();
  9715. const String& GetVarName(StringHash) const;
  9716. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  9717. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  9718. void UnregisterAllVars(const String&);
  9719. void UnregisterVar(const String&);
  9720. void Update(float);
  9721. Vector3 WorldToLocal(const Vector3&) const;
  9722. Vector3 WorldToLocal(const Vector4&) const;
  9723. Vector2 WorldToLocal2D(const Vector2&) const;
  9724. void Yaw(float, TransformSpace = TS_LOCAL);
  9725. // Properties:
  9726. /* readonly */
  9727. Array<Node> allChildrenByName;
  9728. bool animationEnabled;
  9729. /* readonly */
  9730. LoadMode asyncLoadMode;
  9731. /* readonly */
  9732. bool asyncLoading;
  9733. int asyncLoadingMs;
  9734. /* readonly */
  9735. float asyncProgress;
  9736. /* readonly */
  9737. Array<Variant> attributeDefaults;
  9738. /* readonly */
  9739. Array<AttributeInfo> attributeInfos;
  9740. Array<Variant> attributes;
  9741. /* readonly */
  9742. String category;
  9743. /* readonly */
  9744. uint checksum;
  9745. /* readonly */
  9746. Array<Node> children;
  9747. /* readonly */
  9748. Array<Node> childrenByName;
  9749. /* readonly */
  9750. Array<Component> components;
  9751. /* readonly */
  9752. DebugRenderer debugRenderer;
  9753. Vector3 direction;
  9754. float elapsedTime;
  9755. /* readonly */
  9756. String fileName;
  9757. uint id;
  9758. String name;
  9759. /* readonly */
  9760. uint numAllChildren;
  9761. /* readonly */
  9762. uint numAttributes;
  9763. /* readonly */
  9764. uint numChildren;
  9765. /* readonly */
  9766. uint numComponents;
  9767. ObjectAnimation objectAnimation;
  9768. /* readonly */
  9769. Octree octree;
  9770. Node parent;
  9771. /* readonly */
  9772. PhysicsWorld physicsWorld;
  9773. /* readonly */
  9774. PhysicsWorld2D physicsWorld2D;
  9775. Vector3 position;
  9776. Vector2 position2D;
  9777. /* readonly */
  9778. int refs;
  9779. /* readonly */
  9780. Array<PackageFile> requiredPackageFiles;
  9781. /* readonly */
  9782. Vector3 right;
  9783. Quaternion rotation;
  9784. float rotation2D;
  9785. Vector3 scale;
  9786. Vector2 scale2D;
  9787. /* readonly */
  9788. ScriptObject scriptObject;
  9789. /* readonly */
  9790. Vector3 signedWorldScale;
  9791. float smoothingConstant;
  9792. float snapThreshold;
  9793. /* readonly */
  9794. Array<String> tags;
  9795. bool temporary;
  9796. float timeScale;
  9797. /* readonly */
  9798. Matrix3x4 transform;
  9799. /* readonly */
  9800. StringHash type;
  9801. /* readonly */
  9802. String typeName;
  9803. /* readonly */
  9804. Vector3 up;
  9805. bool updateEnabled;
  9806. /* readonly */
  9807. VariantMap vars;
  9808. /* readonly */
  9809. int weakRefs;
  9810. Vector3 worldDirection;
  9811. Vector3 worldPosition;
  9812. Vector2 worldPosition2D;
  9813. /* readonly */
  9814. Vector3 worldRight;
  9815. Quaternion worldRotation;
  9816. float worldRotation2D;
  9817. Vector3 worldScale;
  9818. Vector2 worldScale2D;
  9819. /* readonly */
  9820. Matrix3x4 worldTransform;
  9821. /* readonly */
  9822. Vector3 worldUp;
  9823. };
  9824. class Script
  9825. {
  9826. public:
  9827. // Methods:
  9828. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9829. bool Execute(const String&);
  9830. bool HasSubscribedToEvent(Object, const String&);
  9831. bool HasSubscribedToEvent(const String&);
  9832. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9833. // Properties:
  9834. /* readonly */
  9835. String category;
  9836. Scene defaultScene;
  9837. ScriptFile defaultScriptFile;
  9838. bool executeConsoleCommands;
  9839. /* readonly */
  9840. int refs;
  9841. /* readonly */
  9842. StringHash type;
  9843. /* readonly */
  9844. String typeName;
  9845. /* readonly */
  9846. int weakRefs;
  9847. };
  9848. class ScriptFile
  9849. {
  9850. public:
  9851. ScriptFile();
  9852. ScriptFile(const String&in);
  9853. // Methods:
  9854. void ClearDelayedExecute(const String& = String ( ));
  9855. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9856. bool Execute(const String&, const Array<Variant> = null);
  9857. bool HasSubscribedToEvent(Object, const String&);
  9858. bool HasSubscribedToEvent(const String&);
  9859. bool Load(File);
  9860. bool Load(VectorBuffer&);
  9861. bool Load(const String&);
  9862. bool Save(File) const;
  9863. bool Save(VectorBuffer&) const;
  9864. bool Save(const String&) const;
  9865. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9866. // Properties:
  9867. /* readonly */
  9868. String category;
  9869. /* readonly */
  9870. bool compiled;
  9871. /* readonly */
  9872. uint memoryUse;
  9873. String name;
  9874. /* readonly */
  9875. int refs;
  9876. /* readonly */
  9877. StringHash type;
  9878. /* readonly */
  9879. String typeName;
  9880. /* readonly */
  9881. uint useTimer;
  9882. /* readonly */
  9883. int weakRefs;
  9884. };
  9885. class ScriptInstance
  9886. {
  9887. public:
  9888. // Methods:
  9889. void ApplyAttributes();
  9890. void ClearDelayedExecute(const String& = String ( ));
  9891. bool CreateObject(ScriptFile, const String&);
  9892. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9893. void DrawDebugGeometry(DebugRenderer, bool);
  9894. bool Execute(const String&, const Array<Variant> = null);
  9895. Variant GetAttribute(const String&) const;
  9896. ValueAnimation GetAttributeAnimation(const String&) const;
  9897. float GetAttributeAnimationSpeed(const String&) const;
  9898. float GetAttributeAnimationTime(const String&) const;
  9899. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9900. Variant GetAttributeDefault(const String&) const;
  9901. bool GetInterceptNetworkUpdate(const String&) const;
  9902. bool HasMethod(const String&) const;
  9903. bool HasSubscribedToEvent(Object, const String&);
  9904. bool HasSubscribedToEvent(const String&);
  9905. bool IsA(const String&) const;
  9906. bool Load(File, bool = false);
  9907. bool Load(VectorBuffer&, bool = false);
  9908. bool LoadJSON(const JSONValue&, bool = false);
  9909. bool LoadXML(const XMLElement&, bool = false);
  9910. void MarkNetworkUpdate() const;
  9911. void Remove();
  9912. void RemoveAttributeAnimation(const String&);
  9913. void RemoveInstanceDefault();
  9914. void RemoveObjectAnimation();
  9915. void ResetToDefault();
  9916. bool Save(File) const;
  9917. bool Save(VectorBuffer&) const;
  9918. bool SaveJSON(JSONValue&) const;
  9919. bool SaveXML(XMLElement&) const;
  9920. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9921. void SetAnimationTime(float);
  9922. bool SetAttribute(const String&, const Variant&);
  9923. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9924. void SetAttributeAnimationSpeed(const String&, float);
  9925. void SetAttributeAnimationTime(const String&, float);
  9926. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9927. void SetInterceptNetworkUpdate(const String&, bool);
  9928. // Properties:
  9929. bool animationEnabled;
  9930. /* readonly */
  9931. Array<Variant> attributeDefaults;
  9932. /* readonly */
  9933. Array<AttributeInfo> attributeInfos;
  9934. Array<Variant> attributes;
  9935. /* readonly */
  9936. String category;
  9937. String className;
  9938. bool enabled;
  9939. /* readonly */
  9940. bool enabledEffective;
  9941. /* readonly */
  9942. uint id;
  9943. /* readonly */
  9944. Node node;
  9945. /* readonly */
  9946. uint numAttributes;
  9947. ObjectAnimation objectAnimation;
  9948. /* readonly */
  9949. int refs;
  9950. ScriptFile scriptFile;
  9951. /* readonly */
  9952. ScriptObject scriptObject;
  9953. bool temporary;
  9954. /* readonly */
  9955. StringHash type;
  9956. /* readonly */
  9957. String typeName;
  9958. /* readonly */
  9959. int weakRefs;
  9960. };
  9961. class ScriptObject
  9962. {
  9963. public:
  9964. };
  9965. class ScrollBar
  9966. {
  9967. public:
  9968. ScrollBar();
  9969. ScrollBar(const String&in);
  9970. // Methods:
  9971. void AddChild(UIElement);
  9972. void AddTag(const String&);
  9973. void AddTags(const String&, int8 = ';');
  9974. void ApplyAttributes();
  9975. void BringToFront();
  9976. void ChangeValue(float);
  9977. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9978. void DisableLayoutUpdate();
  9979. IntVector2 ElementToScreen(const IntVector2&);
  9980. void EnableLayoutUpdate();
  9981. uint FindChild(UIElement) const;
  9982. Variant GetAttribute(const String&) const;
  9983. ValueAnimation GetAttributeAnimation(const String&) const;
  9984. float GetAttributeAnimationSpeed(const String&) const;
  9985. float GetAttributeAnimationTime(const String&) const;
  9986. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9987. Variant GetAttributeDefault(const String&) const;
  9988. UIElement GetChild(const String&, bool = false) const;
  9989. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9990. Array<UIElement> GetChildren(bool = false) const;
  9991. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9992. UIElement GetElementEventSender() const;
  9993. bool GetInterceptNetworkUpdate(const String&) const;
  9994. uint GetNumChildren(bool) const;
  9995. bool HasSubscribedToEvent(Object, const String&);
  9996. bool HasSubscribedToEvent(const String&);
  9997. bool HasTag(const String&) const;
  9998. void InsertChild(uint, UIElement);
  9999. bool IsInside(IntVector2, bool);
  10000. bool IsInsideCombined(IntVector2, bool);
  10001. bool Load(File, bool = false);
  10002. bool Load(VectorBuffer&, bool = false);
  10003. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10004. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10005. bool LoadJSON(const JSONValue&, bool = false);
  10006. bool LoadXML(File);
  10007. bool LoadXML(VectorBuffer&);
  10008. bool LoadXML(XMLFile, XMLFile);
  10009. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10010. bool LoadXML(const XMLElement&, bool = false);
  10011. void MarkNetworkUpdate() const;
  10012. void Remove();
  10013. void RemoveAllChildren();
  10014. void RemoveAllTags();
  10015. void RemoveAttributeAnimation(const String&);
  10016. void RemoveChild(UIElement, uint = 0);
  10017. void RemoveChild(uint);
  10018. void RemoveInstanceDefault();
  10019. void RemoveObjectAnimation();
  10020. bool RemoveTag(const String&);
  10021. void ResetDeepEnabled();
  10022. void ResetToDefault();
  10023. bool Save(File) const;
  10024. bool Save(VectorBuffer&) const;
  10025. bool SaveJSON(JSONValue&) const;
  10026. bool SaveXML(File, const String& = "\t");
  10027. bool SaveXML(VectorBuffer&, const String& = "\t");
  10028. bool SaveXML(XMLElement&) const;
  10029. IntVector2 ScreenToElement(const IntVector2&);
  10030. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10031. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10032. void SetAnimationTime(float);
  10033. bool SetAttribute(const String&, const Variant&);
  10034. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10035. void SetAttributeAnimationSpeed(const String&, float);
  10036. void SetAttributeAnimationTime(const String&, float);
  10037. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10038. void SetDeepEnabled(bool);
  10039. void SetEnabledRecursive(bool);
  10040. void SetFixedHeight(int);
  10041. void SetFixedSize(int, int);
  10042. void SetFixedWidth(int);
  10043. void SetInterceptNetworkUpdate(const String&, bool);
  10044. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10045. void SetMaxAnchor(float, float);
  10046. void SetMaxSize(int, int);
  10047. void SetMinAnchor(float, float);
  10048. void SetMinSize(int, int);
  10049. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10050. void SetPivot(float, float);
  10051. void SetPosition(int, int);
  10052. void SetSize(int, int);
  10053. bool SetStyle(const String&, XMLFile = null);
  10054. bool SetStyle(const XMLElement&);
  10055. bool SetStyleAuto(XMLFile = null);
  10056. void StepBack();
  10057. void StepForward();
  10058. void UpdateLayout();
  10059. const Variant& GetVar(const StringHash&);
  10060. // Properties:
  10061. bool animationEnabled;
  10062. /* readonly */
  10063. Array<Variant> attributeDefaults;
  10064. /* readonly */
  10065. Array<AttributeInfo> attributeInfos;
  10066. Array<Variant> attributes;
  10067. /* readonly */
  10068. Button backButton;
  10069. bool bringToBack;
  10070. bool bringToFront;
  10071. /* readonly */
  10072. String category;
  10073. /* readonly */
  10074. IntVector2 childOffset;
  10075. /* readonly */
  10076. Array<UIElement> children;
  10077. IntRect clipBorder;
  10078. bool clipChildren;
  10079. /* writeonly */
  10080. Color color;
  10081. /* readonly */
  10082. bool colorGradient;
  10083. Array<Color> colors;
  10084. /* readonly */
  10085. IntRect combinedScreenRect;
  10086. XMLFile defaultStyle;
  10087. /* readonly */
  10088. float derivedOpacity;
  10089. /* readonly */
  10090. uint dragButtonCombo;
  10091. /* readonly */
  10092. int dragButtonCount;
  10093. uint dragDropMode;
  10094. bool editable;
  10095. /* readonly */
  10096. float effectiveScrollStep;
  10097. bool elementEventSender;
  10098. bool enableAnchor;
  10099. bool enabled;
  10100. /* readonly */
  10101. bool enabledSelf;
  10102. /* readonly */
  10103. bool fixedHeight;
  10104. /* readonly */
  10105. bool fixedSize;
  10106. /* readonly */
  10107. bool fixedWidth;
  10108. bool focus;
  10109. FocusMode focusMode;
  10110. /* readonly */
  10111. Button forwardButton;
  10112. int height;
  10113. HorizontalAlignment horizontalAlignment;
  10114. /* readonly */
  10115. bool hovering;
  10116. int indent;
  10117. int indentSpacing;
  10118. /* readonly */
  10119. int indentWidth;
  10120. bool internal;
  10121. IntRect layoutBorder;
  10122. Vector2 layoutFlexScale;
  10123. LayoutMode layoutMode;
  10124. int layoutSpacing;
  10125. Vector2 maxAnchor;
  10126. int maxHeight;
  10127. IntVector2 maxOffset;
  10128. IntVector2 maxSize;
  10129. int maxWidth;
  10130. Vector2 minAnchor;
  10131. int minHeight;
  10132. IntVector2 minOffset;
  10133. IntVector2 minSize;
  10134. int minWidth;
  10135. String name;
  10136. /* readonly */
  10137. uint numAllChildren;
  10138. /* readonly */
  10139. uint numAttributes;
  10140. /* readonly */
  10141. uint numChildren;
  10142. ObjectAnimation objectAnimation;
  10143. float opacity;
  10144. Orientation orientation;
  10145. UIElement parent;
  10146. Vector2 pivot;
  10147. IntVector2 position;
  10148. int priority;
  10149. float range;
  10150. /* readonly */
  10151. int refs;
  10152. /* readonly */
  10153. UIElement root;
  10154. /* readonly */
  10155. IntVector2 screenPosition;
  10156. float scrollStep;
  10157. bool selected;
  10158. IntVector2 size;
  10159. /* readonly */
  10160. Slider slider;
  10161. bool sortChildren;
  10162. float stepFactor;
  10163. String style;
  10164. /* readonly */
  10165. Array<String> tags;
  10166. bool temporary;
  10167. TraversalMode traversalMode;
  10168. /* readonly */
  10169. StringHash type;
  10170. /* readonly */
  10171. String typeName;
  10172. bool useDerivedOpacity;
  10173. float value;
  10174. /* readonly */
  10175. VariantMap vars;
  10176. VerticalAlignment verticalAlignment;
  10177. bool visible;
  10178. /* readonly */
  10179. bool visibleEffective;
  10180. /* readonly */
  10181. int weakRefs;
  10182. int width;
  10183. };
  10184. class ScrollView
  10185. {
  10186. public:
  10187. ScrollView();
  10188. ScrollView(const String&in);
  10189. // Methods:
  10190. void AddChild(UIElement);
  10191. void AddTag(const String&);
  10192. void AddTags(const String&, int8 = ';');
  10193. void ApplyAttributes();
  10194. void BringToFront();
  10195. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10196. void DisableLayoutUpdate();
  10197. IntVector2 ElementToScreen(const IntVector2&);
  10198. void EnableLayoutUpdate();
  10199. uint FindChild(UIElement) const;
  10200. Variant GetAttribute(const String&) const;
  10201. ValueAnimation GetAttributeAnimation(const String&) const;
  10202. float GetAttributeAnimationSpeed(const String&) const;
  10203. float GetAttributeAnimationTime(const String&) const;
  10204. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10205. Variant GetAttributeDefault(const String&) const;
  10206. UIElement GetChild(const String&, bool = false) const;
  10207. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10208. Array<UIElement> GetChildren(bool = false) const;
  10209. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10210. UIElement GetElementEventSender() const;
  10211. bool GetInterceptNetworkUpdate(const String&) const;
  10212. uint GetNumChildren(bool) const;
  10213. bool HasSubscribedToEvent(Object, const String&);
  10214. bool HasSubscribedToEvent(const String&);
  10215. bool HasTag(const String&) const;
  10216. void InsertChild(uint, UIElement);
  10217. bool IsInside(IntVector2, bool);
  10218. bool IsInsideCombined(IntVector2, bool);
  10219. bool Load(File, bool = false);
  10220. bool Load(VectorBuffer&, bool = false);
  10221. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10222. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10223. bool LoadJSON(const JSONValue&, bool = false);
  10224. bool LoadXML(File);
  10225. bool LoadXML(VectorBuffer&);
  10226. bool LoadXML(XMLFile, XMLFile);
  10227. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10228. bool LoadXML(const XMLElement&, bool = false);
  10229. void MarkNetworkUpdate() const;
  10230. void Remove();
  10231. void RemoveAllChildren();
  10232. void RemoveAllTags();
  10233. void RemoveAttributeAnimation(const String&);
  10234. void RemoveChild(UIElement, uint = 0);
  10235. void RemoveChild(uint);
  10236. void RemoveInstanceDefault();
  10237. void RemoveObjectAnimation();
  10238. bool RemoveTag(const String&);
  10239. void ResetDeepEnabled();
  10240. void ResetToDefault();
  10241. bool Save(File) const;
  10242. bool Save(VectorBuffer&) const;
  10243. bool SaveJSON(JSONValue&) const;
  10244. bool SaveXML(File, const String& = "\t");
  10245. bool SaveXML(VectorBuffer&, const String& = "\t");
  10246. bool SaveXML(XMLElement&) const;
  10247. IntVector2 ScreenToElement(const IntVector2&);
  10248. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10249. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10250. void SetAnimationTime(float);
  10251. bool SetAttribute(const String&, const Variant&);
  10252. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10253. void SetAttributeAnimationSpeed(const String&, float);
  10254. void SetAttributeAnimationTime(const String&, float);
  10255. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10256. void SetDeepEnabled(bool);
  10257. void SetEnabledRecursive(bool);
  10258. void SetFixedHeight(int);
  10259. void SetFixedSize(int, int);
  10260. void SetFixedWidth(int);
  10261. void SetInterceptNetworkUpdate(const String&, bool);
  10262. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10263. void SetMaxAnchor(float, float);
  10264. void SetMaxSize(int, int);
  10265. void SetMinAnchor(float, float);
  10266. void SetMinSize(int, int);
  10267. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10268. void SetPivot(float, float);
  10269. void SetPosition(int, int);
  10270. void SetScrollBarsVisible(bool, bool);
  10271. void SetSize(int, int);
  10272. bool SetStyle(const String&, XMLFile = null);
  10273. bool SetStyle(const XMLElement&);
  10274. bool SetStyleAuto(XMLFile = null);
  10275. void SetViewPosition(int, int);
  10276. void UpdateLayout();
  10277. const Variant& GetVar(const StringHash&);
  10278. // Properties:
  10279. bool animationEnabled;
  10280. /* readonly */
  10281. Array<Variant> attributeDefaults;
  10282. /* readonly */
  10283. Array<AttributeInfo> attributeInfos;
  10284. Array<Variant> attributes;
  10285. bool autoDisableChildren;
  10286. float autoDisableThreshold;
  10287. bool bringToBack;
  10288. bool bringToFront;
  10289. /* readonly */
  10290. String category;
  10291. /* readonly */
  10292. IntVector2 childOffset;
  10293. /* readonly */
  10294. Array<UIElement> children;
  10295. IntRect clipBorder;
  10296. bool clipChildren;
  10297. /* writeonly */
  10298. Color color;
  10299. /* readonly */
  10300. bool colorGradient;
  10301. Array<Color> colors;
  10302. /* readonly */
  10303. IntRect combinedScreenRect;
  10304. UIElement contentElement;
  10305. XMLFile defaultStyle;
  10306. /* readonly */
  10307. float derivedOpacity;
  10308. /* readonly */
  10309. uint dragButtonCombo;
  10310. /* readonly */
  10311. int dragButtonCount;
  10312. uint dragDropMode;
  10313. bool editable;
  10314. bool elementEventSender;
  10315. bool enableAnchor;
  10316. bool enabled;
  10317. /* readonly */
  10318. bool enabledSelf;
  10319. /* readonly */
  10320. bool fixedHeight;
  10321. /* readonly */
  10322. bool fixedSize;
  10323. /* readonly */
  10324. bool fixedWidth;
  10325. bool focus;
  10326. FocusMode focusMode;
  10327. int height;
  10328. HorizontalAlignment horizontalAlignment;
  10329. /* readonly */
  10330. ScrollBar horizontalScrollBar;
  10331. /* readonly */
  10332. bool hovering;
  10333. int indent;
  10334. int indentSpacing;
  10335. /* readonly */
  10336. int indentWidth;
  10337. bool internal;
  10338. IntRect layoutBorder;
  10339. Vector2 layoutFlexScale;
  10340. LayoutMode layoutMode;
  10341. int layoutSpacing;
  10342. Vector2 maxAnchor;
  10343. int maxHeight;
  10344. IntVector2 maxOffset;
  10345. IntVector2 maxSize;
  10346. int maxWidth;
  10347. Vector2 minAnchor;
  10348. int minHeight;
  10349. IntVector2 minOffset;
  10350. IntVector2 minSize;
  10351. int minWidth;
  10352. String name;
  10353. /* readonly */
  10354. uint numAllChildren;
  10355. /* readonly */
  10356. uint numAttributes;
  10357. /* readonly */
  10358. uint numChildren;
  10359. ObjectAnimation objectAnimation;
  10360. float opacity;
  10361. float pageStep;
  10362. UIElement parent;
  10363. Vector2 pivot;
  10364. IntVector2 position;
  10365. int priority;
  10366. /* readonly */
  10367. int refs;
  10368. /* readonly */
  10369. UIElement root;
  10370. /* readonly */
  10371. IntVector2 screenPosition;
  10372. bool scrollBarsAutoVisible;
  10373. float scrollDeceleration;
  10374. /* readonly */
  10375. BorderImage scrollPanel;
  10376. float scrollSnapEpsilon;
  10377. float scrollStep;
  10378. bool selected;
  10379. IntVector2 size;
  10380. bool sortChildren;
  10381. String style;
  10382. /* readonly */
  10383. Array<String> tags;
  10384. bool temporary;
  10385. TraversalMode traversalMode;
  10386. /* readonly */
  10387. StringHash type;
  10388. /* readonly */
  10389. String typeName;
  10390. bool useDerivedOpacity;
  10391. /* readonly */
  10392. VariantMap vars;
  10393. VerticalAlignment verticalAlignment;
  10394. /* readonly */
  10395. ScrollBar verticalScrollBar;
  10396. IntVector2 viewPosition;
  10397. bool visible;
  10398. /* readonly */
  10399. bool visibleEffective;
  10400. /* readonly */
  10401. int weakRefs;
  10402. int width;
  10403. };
  10404. class Serializable
  10405. {
  10406. public:
  10407. // Methods:
  10408. void ApplyAttributes();
  10409. Variant GetAttribute(const String&) const;
  10410. Variant GetAttributeDefault(const String&) const;
  10411. bool GetInterceptNetworkUpdate(const String&) const;
  10412. bool HasSubscribedToEvent(Object, const String&);
  10413. bool HasSubscribedToEvent(const String&);
  10414. bool Load(File, bool = false);
  10415. bool Load(VectorBuffer&, bool = false);
  10416. bool LoadJSON(const JSONValue&, bool = false);
  10417. bool LoadXML(const XMLElement&, bool = false);
  10418. void MarkNetworkUpdate() const;
  10419. void RemoveInstanceDefault();
  10420. void ResetToDefault();
  10421. bool Save(File) const;
  10422. bool Save(VectorBuffer&) const;
  10423. bool SaveJSON(JSONValue&) const;
  10424. bool SaveXML(XMLElement&) const;
  10425. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10426. bool SetAttribute(const String&, const Variant&);
  10427. void SetInterceptNetworkUpdate(const String&, bool);
  10428. // Properties:
  10429. /* readonly */
  10430. Array<Variant> attributeDefaults;
  10431. /* readonly */
  10432. Array<AttributeInfo> attributeInfos;
  10433. Array<Variant> attributes;
  10434. /* readonly */
  10435. String category;
  10436. /* readonly */
  10437. uint numAttributes;
  10438. /* readonly */
  10439. int refs;
  10440. bool temporary;
  10441. /* readonly */
  10442. StringHash type;
  10443. /* readonly */
  10444. String typeName;
  10445. /* readonly */
  10446. int weakRefs;
  10447. };
  10448. class Serializer
  10449. {
  10450. public:
  10451. // Methods:
  10452. uint Write(Array<uint8>);
  10453. bool WriteBool(bool);
  10454. bool WriteBoundingBox(const BoundingBox&);
  10455. bool WriteByte(int8);
  10456. bool WriteColor(const Color&);
  10457. bool WriteDouble(double);
  10458. bool WriteFileID(const String&);
  10459. bool WriteFloat(float);
  10460. bool WriteInt(int);
  10461. bool WriteInt64(int64);
  10462. bool WriteIntRect(const IntRect&);
  10463. bool WriteIntVector2(const IntVector2&);
  10464. bool WriteLine(const String&);
  10465. bool WriteMatrix3(const Matrix3&);
  10466. bool WriteMatrix3x4(const Matrix3x4&);
  10467. bool WriteMatrix4(const Matrix4&);
  10468. bool WriteNetID(uint);
  10469. bool WritePackedQuaternion(const Quaternion&);
  10470. bool WritePackedVector3(const Vector3&, float);
  10471. bool WriteQuaternion(const Quaternion&);
  10472. bool WriteShort(int16);
  10473. bool WriteString(const String&);
  10474. bool WriteStringHash(const StringHash&);
  10475. bool WriteUByte(uint8);
  10476. bool WriteUInt(uint);
  10477. bool WriteUInt64(uint64);
  10478. bool WriteUShort(uint16);
  10479. bool WriteVLE(uint);
  10480. bool WriteVariant(const Variant&);
  10481. bool WriteVariantMap(const VariantMap&);
  10482. bool WriteVector2(const Vector2&);
  10483. bool WriteVector3(const Vector3&);
  10484. bool WriteVector4(const Vector4&);
  10485. bool WriteVectorBuffer(const VectorBuffer&);
  10486. };
  10487. class Skeleton
  10488. {
  10489. public:
  10490. // Methods:
  10491. Bone GetBone(const String&) const;
  10492. void Reset();
  10493. // Properties:
  10494. /* readonly */
  10495. Array<Bone> bones;
  10496. /* readonly */
  10497. uint numBones;
  10498. /* readonly */
  10499. Bone rootBone;
  10500. };
  10501. class Skybox
  10502. {
  10503. public:
  10504. // Methods:
  10505. void ApplyAttributes();
  10506. void ApplyMaterialList(const String& = String ( ));
  10507. void DrawDebugGeometry(DebugRenderer, bool);
  10508. Variant GetAttribute(const String&) const;
  10509. ValueAnimation GetAttributeAnimation(const String&) const;
  10510. float GetAttributeAnimationSpeed(const String&) const;
  10511. float GetAttributeAnimationTime(const String&) const;
  10512. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10513. Variant GetAttributeDefault(const String&) const;
  10514. bool GetInterceptNetworkUpdate(const String&) const;
  10515. bool HasSubscribedToEvent(Object, const String&);
  10516. bool HasSubscribedToEvent(const String&);
  10517. bool IsInView(Camera) const;
  10518. bool Load(File, bool = false);
  10519. bool Load(VectorBuffer&, bool = false);
  10520. bool LoadJSON(const JSONValue&, bool = false);
  10521. bool LoadXML(const XMLElement&, bool = false);
  10522. void MarkNetworkUpdate() const;
  10523. void Remove();
  10524. void RemoveAttributeAnimation(const String&);
  10525. void RemoveInstanceDefault();
  10526. void RemoveObjectAnimation();
  10527. void ResetToDefault();
  10528. bool Save(File) const;
  10529. bool Save(VectorBuffer&) const;
  10530. bool SaveJSON(JSONValue&) const;
  10531. bool SaveXML(XMLElement&) const;
  10532. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10533. void SetAnimationTime(float);
  10534. bool SetAttribute(const String&, const Variant&);
  10535. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10536. void SetAttributeAnimationSpeed(const String&, float);
  10537. void SetAttributeAnimationTime(const String&, float);
  10538. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10539. void SetInterceptNetworkUpdate(const String&, bool);
  10540. // Properties:
  10541. bool animationEnabled;
  10542. /* readonly */
  10543. Array<Variant> attributeDefaults;
  10544. /* readonly */
  10545. Array<AttributeInfo> attributeInfos;
  10546. Array<Variant> attributes;
  10547. /* readonly */
  10548. BoundingBox boundingBox;
  10549. bool castShadows;
  10550. /* readonly */
  10551. String category;
  10552. float drawDistance;
  10553. bool enabled;
  10554. /* readonly */
  10555. bool enabledEffective;
  10556. /* readonly */
  10557. uint id;
  10558. /* readonly */
  10559. bool inView;
  10560. uint lightMask;
  10561. float lodBias;
  10562. /* writeonly */
  10563. Material material;
  10564. Array<Material> materials;
  10565. uint maxLights;
  10566. Model model;
  10567. /* readonly */
  10568. Node node;
  10569. /* readonly */
  10570. uint numAttributes;
  10571. /* readonly */
  10572. uint numGeometries;
  10573. ObjectAnimation objectAnimation;
  10574. bool occludee;
  10575. bool occluder;
  10576. /* readonly */
  10577. int refs;
  10578. float shadowDistance;
  10579. uint shadowMask;
  10580. bool temporary;
  10581. /* readonly */
  10582. StringHash type;
  10583. /* readonly */
  10584. String typeName;
  10585. uint viewMask;
  10586. /* readonly */
  10587. int weakRefs;
  10588. /* readonly */
  10589. BoundingBox worldBoundingBox;
  10590. /* readonly */
  10591. Zone zone;
  10592. uint zoneMask;
  10593. };
  10594. class Slider
  10595. {
  10596. public:
  10597. Slider();
  10598. Slider(const String&in);
  10599. // Methods:
  10600. void AddChild(UIElement);
  10601. void AddTag(const String&);
  10602. void AddTags(const String&, int8 = ';');
  10603. void ApplyAttributes();
  10604. void BringToFront();
  10605. void ChangeValue(float);
  10606. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10607. void DisableLayoutUpdate();
  10608. IntVector2 ElementToScreen(const IntVector2&);
  10609. void EnableLayoutUpdate();
  10610. uint FindChild(UIElement) const;
  10611. Variant GetAttribute(const String&) const;
  10612. ValueAnimation GetAttributeAnimation(const String&) const;
  10613. float GetAttributeAnimationSpeed(const String&) const;
  10614. float GetAttributeAnimationTime(const String&) const;
  10615. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10616. Variant GetAttributeDefault(const String&) const;
  10617. UIElement GetChild(const String&, bool = false) const;
  10618. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10619. Array<UIElement> GetChildren(bool = false) const;
  10620. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10621. UIElement GetElementEventSender() const;
  10622. bool GetInterceptNetworkUpdate(const String&) const;
  10623. uint GetNumChildren(bool) const;
  10624. bool HasSubscribedToEvent(Object, const String&);
  10625. bool HasSubscribedToEvent(const String&);
  10626. bool HasTag(const String&) const;
  10627. void InsertChild(uint, UIElement);
  10628. bool IsInside(IntVector2, bool);
  10629. bool IsInsideCombined(IntVector2, bool);
  10630. bool Load(File, bool = false);
  10631. bool Load(VectorBuffer&, bool = false);
  10632. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10633. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10634. bool LoadJSON(const JSONValue&, bool = false);
  10635. bool LoadXML(File);
  10636. bool LoadXML(VectorBuffer&);
  10637. bool LoadXML(XMLFile, XMLFile);
  10638. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10639. bool LoadXML(const XMLElement&, bool = false);
  10640. void MarkNetworkUpdate() const;
  10641. void Remove();
  10642. void RemoveAllChildren();
  10643. void RemoveAllTags();
  10644. void RemoveAttributeAnimation(const String&);
  10645. void RemoveChild(UIElement, uint = 0);
  10646. void RemoveChild(uint);
  10647. void RemoveInstanceDefault();
  10648. void RemoveObjectAnimation();
  10649. bool RemoveTag(const String&);
  10650. void ResetDeepEnabled();
  10651. void ResetToDefault();
  10652. bool Save(File) const;
  10653. bool Save(VectorBuffer&) const;
  10654. bool SaveJSON(JSONValue&) const;
  10655. bool SaveXML(File, const String& = "\t");
  10656. bool SaveXML(VectorBuffer&, const String& = "\t");
  10657. bool SaveXML(XMLElement&) const;
  10658. IntVector2 ScreenToElement(const IntVector2&);
  10659. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10660. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10661. void SetAnimationTime(float);
  10662. bool SetAttribute(const String&, const Variant&);
  10663. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10664. void SetAttributeAnimationSpeed(const String&, float);
  10665. void SetAttributeAnimationTime(const String&, float);
  10666. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10667. void SetDeepEnabled(bool);
  10668. void SetEnabledRecursive(bool);
  10669. void SetFixedHeight(int);
  10670. void SetFixedSize(int, int);
  10671. void SetFixedWidth(int);
  10672. void SetFullImageRect();
  10673. void SetHoverOffset(int, int);
  10674. void SetInterceptNetworkUpdate(const String&, bool);
  10675. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10676. void SetMaxAnchor(float, float);
  10677. void SetMaxSize(int, int);
  10678. void SetMinAnchor(float, float);
  10679. void SetMinSize(int, int);
  10680. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10681. void SetPivot(float, float);
  10682. void SetPosition(int, int);
  10683. void SetSize(int, int);
  10684. bool SetStyle(const String&, XMLFile = null);
  10685. bool SetStyle(const XMLElement&);
  10686. bool SetStyleAuto(XMLFile = null);
  10687. void UpdateLayout();
  10688. const Variant& GetVar(const StringHash&);
  10689. // Properties:
  10690. bool animationEnabled;
  10691. /* readonly */
  10692. Array<Variant> attributeDefaults;
  10693. /* readonly */
  10694. Array<AttributeInfo> attributeInfos;
  10695. Array<Variant> attributes;
  10696. BlendMode blendMode;
  10697. IntRect border;
  10698. bool bringToBack;
  10699. bool bringToFront;
  10700. /* readonly */
  10701. String category;
  10702. /* readonly */
  10703. IntVector2 childOffset;
  10704. /* readonly */
  10705. Array<UIElement> children;
  10706. IntRect clipBorder;
  10707. bool clipChildren;
  10708. /* writeonly */
  10709. Color color;
  10710. /* readonly */
  10711. bool colorGradient;
  10712. Array<Color> colors;
  10713. /* readonly */
  10714. IntRect combinedScreenRect;
  10715. XMLFile defaultStyle;
  10716. /* readonly */
  10717. float derivedOpacity;
  10718. /* readonly */
  10719. uint dragButtonCombo;
  10720. /* readonly */
  10721. int dragButtonCount;
  10722. uint dragDropMode;
  10723. bool editable;
  10724. bool elementEventSender;
  10725. bool enableAnchor;
  10726. bool enabled;
  10727. /* readonly */
  10728. bool enabledSelf;
  10729. /* readonly */
  10730. bool fixedHeight;
  10731. /* readonly */
  10732. bool fixedSize;
  10733. /* readonly */
  10734. bool fixedWidth;
  10735. bool focus;
  10736. FocusMode focusMode;
  10737. int height;
  10738. HorizontalAlignment horizontalAlignment;
  10739. IntVector2 hoverOffset;
  10740. /* readonly */
  10741. bool hovering;
  10742. IntRect imageBorder;
  10743. IntRect imageRect;
  10744. int indent;
  10745. int indentSpacing;
  10746. /* readonly */
  10747. int indentWidth;
  10748. bool internal;
  10749. /* readonly */
  10750. BorderImage knob;
  10751. IntRect layoutBorder;
  10752. Vector2 layoutFlexScale;
  10753. LayoutMode layoutMode;
  10754. int layoutSpacing;
  10755. Vector2 maxAnchor;
  10756. int maxHeight;
  10757. IntVector2 maxOffset;
  10758. IntVector2 maxSize;
  10759. int maxWidth;
  10760. Vector2 minAnchor;
  10761. int minHeight;
  10762. IntVector2 minOffset;
  10763. IntVector2 minSize;
  10764. int minWidth;
  10765. String name;
  10766. /* readonly */
  10767. uint numAllChildren;
  10768. /* readonly */
  10769. uint numAttributes;
  10770. /* readonly */
  10771. uint numChildren;
  10772. ObjectAnimation objectAnimation;
  10773. float opacity;
  10774. Orientation orientation;
  10775. UIElement parent;
  10776. Vector2 pivot;
  10777. IntVector2 position;
  10778. int priority;
  10779. float range;
  10780. /* readonly */
  10781. int refs;
  10782. float repeatRate;
  10783. /* readonly */
  10784. UIElement root;
  10785. /* readonly */
  10786. IntVector2 screenPosition;
  10787. bool selected;
  10788. IntVector2 size;
  10789. bool sortChildren;
  10790. String style;
  10791. /* readonly */
  10792. Array<String> tags;
  10793. bool temporary;
  10794. Texture texture;
  10795. bool tiled;
  10796. TraversalMode traversalMode;
  10797. /* readonly */
  10798. StringHash type;
  10799. /* readonly */
  10800. String typeName;
  10801. bool useDerivedOpacity;
  10802. float value;
  10803. /* readonly */
  10804. VariantMap vars;
  10805. VerticalAlignment verticalAlignment;
  10806. bool visible;
  10807. /* readonly */
  10808. bool visibleEffective;
  10809. /* readonly */
  10810. int weakRefs;
  10811. int width;
  10812. };
  10813. class SmoothedTransform
  10814. {
  10815. public:
  10816. // Methods:
  10817. void ApplyAttributes();
  10818. void DrawDebugGeometry(DebugRenderer, bool);
  10819. Variant GetAttribute(const String&) const;
  10820. ValueAnimation GetAttributeAnimation(const String&) const;
  10821. float GetAttributeAnimationSpeed(const String&) const;
  10822. float GetAttributeAnimationTime(const String&) const;
  10823. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10824. Variant GetAttributeDefault(const String&) const;
  10825. bool GetInterceptNetworkUpdate(const String&) const;
  10826. bool HasSubscribedToEvent(Object, const String&);
  10827. bool HasSubscribedToEvent(const String&);
  10828. bool Load(File, bool = false);
  10829. bool Load(VectorBuffer&, bool = false);
  10830. bool LoadJSON(const JSONValue&, bool = false);
  10831. bool LoadXML(const XMLElement&, bool = false);
  10832. void MarkNetworkUpdate() const;
  10833. void Remove();
  10834. void RemoveAttributeAnimation(const String&);
  10835. void RemoveInstanceDefault();
  10836. void RemoveObjectAnimation();
  10837. void ResetToDefault();
  10838. bool Save(File) const;
  10839. bool Save(VectorBuffer&) const;
  10840. bool SaveJSON(JSONValue&) const;
  10841. bool SaveXML(XMLElement&) const;
  10842. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10843. void SetAnimationTime(float);
  10844. bool SetAttribute(const String&, const Variant&);
  10845. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10846. void SetAttributeAnimationSpeed(const String&, float);
  10847. void SetAttributeAnimationTime(const String&, float);
  10848. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10849. void SetInterceptNetworkUpdate(const String&, bool);
  10850. void Update(float, float);
  10851. // Properties:
  10852. bool animationEnabled;
  10853. /* readonly */
  10854. Array<Variant> attributeDefaults;
  10855. /* readonly */
  10856. Array<AttributeInfo> attributeInfos;
  10857. Array<Variant> attributes;
  10858. /* readonly */
  10859. String category;
  10860. bool enabled;
  10861. /* readonly */
  10862. bool enabledEffective;
  10863. /* readonly */
  10864. uint id;
  10865. /* readonly */
  10866. bool inProgress;
  10867. /* readonly */
  10868. Node node;
  10869. /* readonly */
  10870. uint numAttributes;
  10871. ObjectAnimation objectAnimation;
  10872. /* readonly */
  10873. int refs;
  10874. Vector3 targetPosition;
  10875. Quaternion targetRotation;
  10876. Vector3 targetWorldPosition;
  10877. Quaternion targetWorldRotation;
  10878. bool temporary;
  10879. /* readonly */
  10880. StringHash type;
  10881. /* readonly */
  10882. String typeName;
  10883. /* readonly */
  10884. int weakRefs;
  10885. };
  10886. class Sound
  10887. {
  10888. public:
  10889. Sound();
  10890. Sound(const String&in);
  10891. // Methods:
  10892. void AddMetadata(const String&, const Variant&);
  10893. bool HasSubscribedToEvent(Object, const String&);
  10894. bool HasSubscribedToEvent(const String&);
  10895. bool Load(File);
  10896. bool Load(VectorBuffer&);
  10897. bool Load(const String&);
  10898. void RemoveAllMetadata();
  10899. void RemoveMetadata(const String&);
  10900. bool Save(File) const;
  10901. bool Save(VectorBuffer&) const;
  10902. bool Save(const String&) const;
  10903. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10904. // Properties:
  10905. /* readonly */
  10906. String category;
  10907. /* readonly */
  10908. bool compressed;
  10909. /* readonly */
  10910. float frequency;
  10911. /* readonly */
  10912. bool hasMetadata;
  10913. /* readonly */
  10914. float length;
  10915. bool looped;
  10916. /* readonly */
  10917. uint memoryUse;
  10918. Array<Variant> metadata;
  10919. String name;
  10920. /* readonly */
  10921. int refs;
  10922. /* readonly */
  10923. uint sampleSize;
  10924. /* readonly */
  10925. bool sixteenBit;
  10926. /* readonly */
  10927. bool stereo;
  10928. /* readonly */
  10929. StringHash type;
  10930. /* readonly */
  10931. String typeName;
  10932. /* readonly */
  10933. uint useTimer;
  10934. /* readonly */
  10935. int weakRefs;
  10936. };
  10937. class SoundListener
  10938. {
  10939. public:
  10940. // Methods:
  10941. void ApplyAttributes();
  10942. void DrawDebugGeometry(DebugRenderer, bool);
  10943. Variant GetAttribute(const String&) const;
  10944. ValueAnimation GetAttributeAnimation(const String&) const;
  10945. float GetAttributeAnimationSpeed(const String&) const;
  10946. float GetAttributeAnimationTime(const String&) const;
  10947. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10948. Variant GetAttributeDefault(const String&) const;
  10949. bool GetInterceptNetworkUpdate(const String&) const;
  10950. bool HasSubscribedToEvent(Object, const String&);
  10951. bool HasSubscribedToEvent(const String&);
  10952. bool Load(File, bool = false);
  10953. bool Load(VectorBuffer&, bool = false);
  10954. bool LoadJSON(const JSONValue&, bool = false);
  10955. bool LoadXML(const XMLElement&, bool = false);
  10956. void MarkNetworkUpdate() const;
  10957. void Remove();
  10958. void RemoveAttributeAnimation(const String&);
  10959. void RemoveInstanceDefault();
  10960. void RemoveObjectAnimation();
  10961. void ResetToDefault();
  10962. bool Save(File) const;
  10963. bool Save(VectorBuffer&) const;
  10964. bool SaveJSON(JSONValue&) const;
  10965. bool SaveXML(XMLElement&) const;
  10966. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10967. void SetAnimationTime(float);
  10968. bool SetAttribute(const String&, const Variant&);
  10969. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10970. void SetAttributeAnimationSpeed(const String&, float);
  10971. void SetAttributeAnimationTime(const String&, float);
  10972. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10973. void SetInterceptNetworkUpdate(const String&, bool);
  10974. // Properties:
  10975. bool animationEnabled;
  10976. /* readonly */
  10977. Array<Variant> attributeDefaults;
  10978. /* readonly */
  10979. Array<AttributeInfo> attributeInfos;
  10980. Array<Variant> attributes;
  10981. /* readonly */
  10982. String category;
  10983. bool enabled;
  10984. /* readonly */
  10985. bool enabledEffective;
  10986. /* readonly */
  10987. uint id;
  10988. /* readonly */
  10989. Node node;
  10990. /* readonly */
  10991. uint numAttributes;
  10992. ObjectAnimation objectAnimation;
  10993. /* readonly */
  10994. int refs;
  10995. bool temporary;
  10996. /* readonly */
  10997. StringHash type;
  10998. /* readonly */
  10999. String typeName;
  11000. /* readonly */
  11001. int weakRefs;
  11002. };
  11003. class SoundSource
  11004. {
  11005. public:
  11006. SoundSource();
  11007. // Methods:
  11008. void ApplyAttributes();
  11009. void DrawDebugGeometry(DebugRenderer, bool);
  11010. Variant GetAttribute(const String&) const;
  11011. ValueAnimation GetAttributeAnimation(const String&) const;
  11012. float GetAttributeAnimationSpeed(const String&) const;
  11013. float GetAttributeAnimationTime(const String&) const;
  11014. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11015. Variant GetAttributeDefault(const String&) const;
  11016. bool GetInterceptNetworkUpdate(const String&) const;
  11017. bool HasSubscribedToEvent(Object, const String&);
  11018. bool HasSubscribedToEvent(const String&);
  11019. bool Load(File, bool = false);
  11020. bool Load(VectorBuffer&, bool = false);
  11021. bool LoadJSON(const JSONValue&, bool = false);
  11022. bool LoadXML(const XMLElement&, bool = false);
  11023. void MarkNetworkUpdate() const;
  11024. void Play(Sound);
  11025. void Play(Sound, float);
  11026. void Play(Sound, float, float);
  11027. void Play(Sound, float, float, float);
  11028. void Remove();
  11029. void RemoveAttributeAnimation(const String&);
  11030. void RemoveInstanceDefault();
  11031. void RemoveObjectAnimation();
  11032. void ResetToDefault();
  11033. bool Save(File) const;
  11034. bool Save(VectorBuffer&) const;
  11035. bool SaveJSON(JSONValue&) const;
  11036. bool SaveXML(XMLElement&) const;
  11037. void Seek(float);
  11038. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11039. void SetAnimationTime(float);
  11040. bool SetAttribute(const String&, const Variant&);
  11041. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11042. void SetAttributeAnimationSpeed(const String&, float);
  11043. void SetAttributeAnimationTime(const String&, float);
  11044. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11045. void SetInterceptNetworkUpdate(const String&, bool);
  11046. void Stop();
  11047. // Properties:
  11048. bool animationEnabled;
  11049. /* readonly */
  11050. float attenuation;
  11051. /* readonly */
  11052. Array<Variant> attributeDefaults;
  11053. /* readonly */
  11054. Array<AttributeInfo> attributeInfos;
  11055. Array<Variant> attributes;
  11056. AutoRemoveMode autoRemoveMode;
  11057. /* readonly */
  11058. String category;
  11059. bool enabled;
  11060. /* readonly */
  11061. bool enabledEffective;
  11062. float frequency;
  11063. float gain;
  11064. /* readonly */
  11065. uint id;
  11066. /* readonly */
  11067. Node node;
  11068. /* readonly */
  11069. uint numAttributes;
  11070. ObjectAnimation objectAnimation;
  11071. float panning;
  11072. /* readonly */
  11073. bool playing;
  11074. /* readonly */
  11075. int refs;
  11076. /* readonly */
  11077. Sound sound;
  11078. String soundType;
  11079. bool temporary;
  11080. /* readonly */
  11081. float timePosition;
  11082. /* readonly */
  11083. StringHash type;
  11084. /* readonly */
  11085. String typeName;
  11086. /* readonly */
  11087. int weakRefs;
  11088. };
  11089. class SoundSource3D
  11090. {
  11091. public:
  11092. // Methods:
  11093. void ApplyAttributes();
  11094. void DrawDebugGeometry(DebugRenderer, bool);
  11095. Variant GetAttribute(const String&) const;
  11096. ValueAnimation GetAttributeAnimation(const String&) const;
  11097. float GetAttributeAnimationSpeed(const String&) const;
  11098. float GetAttributeAnimationTime(const String&) const;
  11099. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11100. Variant GetAttributeDefault(const String&) const;
  11101. bool GetInterceptNetworkUpdate(const String&) const;
  11102. bool HasSubscribedToEvent(Object, const String&);
  11103. bool HasSubscribedToEvent(const String&);
  11104. bool Load(File, bool = false);
  11105. bool Load(VectorBuffer&, bool = false);
  11106. bool LoadJSON(const JSONValue&, bool = false);
  11107. bool LoadXML(const XMLElement&, bool = false);
  11108. void MarkNetworkUpdate() const;
  11109. void Play(Sound);
  11110. void Play(Sound, float);
  11111. void Play(Sound, float, float);
  11112. void Play(Sound, float, float, float);
  11113. void Remove();
  11114. void RemoveAttributeAnimation(const String&);
  11115. void RemoveInstanceDefault();
  11116. void RemoveObjectAnimation();
  11117. void ResetToDefault();
  11118. bool Save(File) const;
  11119. bool Save(VectorBuffer&) const;
  11120. bool SaveJSON(JSONValue&) const;
  11121. bool SaveXML(XMLElement&) const;
  11122. void Seek(float);
  11123. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11124. void SetAngleAttenuation(float, float);
  11125. void SetAnimationTime(float);
  11126. bool SetAttribute(const String&, const Variant&);
  11127. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11128. void SetAttributeAnimationSpeed(const String&, float);
  11129. void SetAttributeAnimationTime(const String&, float);
  11130. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11131. void SetDistanceAttenuation(float, float, float);
  11132. void SetInterceptNetworkUpdate(const String&, bool);
  11133. void Stop();
  11134. // Properties:
  11135. bool animationEnabled;
  11136. /* readonly */
  11137. float attenuation;
  11138. /* readonly */
  11139. Array<Variant> attributeDefaults;
  11140. /* readonly */
  11141. Array<AttributeInfo> attributeInfos;
  11142. Array<Variant> attributes;
  11143. AutoRemoveMode autoRemoveMode;
  11144. /* readonly */
  11145. String category;
  11146. bool enabled;
  11147. /* readonly */
  11148. bool enabledEffective;
  11149. float farDistance;
  11150. float frequency;
  11151. float gain;
  11152. /* readonly */
  11153. uint id;
  11154. float innerAngle;
  11155. float nearDistance;
  11156. /* readonly */
  11157. Node node;
  11158. /* readonly */
  11159. uint numAttributes;
  11160. ObjectAnimation objectAnimation;
  11161. float outerAngle;
  11162. float panning;
  11163. /* readonly */
  11164. bool playing;
  11165. /* readonly */
  11166. int refs;
  11167. float rolloffFactor;
  11168. /* readonly */
  11169. Sound sound;
  11170. String soundType;
  11171. bool temporary;
  11172. /* readonly */
  11173. float timePosition;
  11174. /* readonly */
  11175. StringHash type;
  11176. /* readonly */
  11177. String typeName;
  11178. /* readonly */
  11179. int weakRefs;
  11180. };
  11181. class Sphere
  11182. {
  11183. public:
  11184. Sphere();
  11185. Sphere(const Sphere&in);
  11186. Sphere(const Vector3&in, float);
  11187. Sphere(const BoundingBox&in);
  11188. Sphere(const Frustum&in);
  11189. Sphere(const Polyhedron&in);
  11190. // Methods:
  11191. void Clear();
  11192. void Define(const BoundingBox&);
  11193. void Define(const Frustum&);
  11194. void Define(const Polyhedron&);
  11195. void Define(const Sphere&);
  11196. void Define(const Vector3&, float);
  11197. bool Defined() const;
  11198. float Distance(const Vector3&) const;
  11199. Vector3 GetLocalPoint(float, float) const;
  11200. Vector3 GetPoint(float, float) const;
  11201. Intersection IsInside(const BoundingBox&) const;
  11202. Intersection IsInside(const Sphere&) const;
  11203. Intersection IsInside(const Vector3&) const;
  11204. Intersection IsInsideFast(const BoundingBox&) const;
  11205. Intersection IsInsideFast(const Sphere&) const;
  11206. void Merge(const BoundingBox&);
  11207. void Merge(const Frustum&);
  11208. void Merge(const Sphere&);
  11209. void Merge(const Vector3&);
  11210. // Properties:
  11211. Vector3 center;
  11212. float radius;
  11213. };
  11214. class Spline
  11215. {
  11216. public:
  11217. Spline();
  11218. Spline(InterpolationMode);
  11219. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  11220. Spline(const Spline&in);
  11221. // Methods:
  11222. void AddKnot(const Variant&);
  11223. void AddKnot(const Variant&, uint);
  11224. void Clear();
  11225. Variant GetPoint(float);
  11226. void RemoveKnot();
  11227. void RemoveKnot(uint);
  11228. // Properties:
  11229. InterpolationMode interpolationMode;
  11230. Array<Variant> knot;
  11231. Array<Variant> knots;
  11232. };
  11233. class SplinePath
  11234. {
  11235. public:
  11236. // Methods:
  11237. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  11238. void ApplyAttributes();
  11239. void ClearControlPoints();
  11240. void DrawDebugGeometry(DebugRenderer, bool);
  11241. Variant GetAttribute(const String&) const;
  11242. ValueAnimation GetAttributeAnimation(const String&) const;
  11243. float GetAttributeAnimationSpeed(const String&) const;
  11244. float GetAttributeAnimationTime(const String&) const;
  11245. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11246. Variant GetAttributeDefault(const String&) const;
  11247. bool GetInterceptNetworkUpdate(const String&) const;
  11248. Vector3 GetPoint(float) const;
  11249. Vector3 GetPosition() const;
  11250. bool HasSubscribedToEvent(Object, const String&);
  11251. bool HasSubscribedToEvent(const String&);
  11252. bool Load(File, bool = false);
  11253. bool Load(VectorBuffer&, bool = false);
  11254. bool LoadJSON(const JSONValue&, bool = false);
  11255. bool LoadXML(const XMLElement&, bool = false);
  11256. void MarkNetworkUpdate() const;
  11257. void Move(float);
  11258. void Remove();
  11259. void RemoveAttributeAnimation(const String&);
  11260. void RemoveControlPoint(Node);
  11261. void RemoveInstanceDefault();
  11262. void RemoveObjectAnimation();
  11263. void Reset();
  11264. void ResetToDefault();
  11265. bool Save(File) const;
  11266. bool Save(VectorBuffer&) const;
  11267. bool SaveJSON(JSONValue&) const;
  11268. bool SaveXML(XMLElement&) const;
  11269. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11270. void SetAnimationTime(float);
  11271. bool SetAttribute(const String&, const Variant&);
  11272. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11273. void SetAttributeAnimationSpeed(const String&, float);
  11274. void SetAttributeAnimationTime(const String&, float);
  11275. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11276. void SetInterceptNetworkUpdate(const String&, bool);
  11277. void SetPosition(float);
  11278. // Properties:
  11279. bool animationEnabled;
  11280. /* readonly */
  11281. Array<Variant> attributeDefaults;
  11282. /* readonly */
  11283. Array<AttributeInfo> attributeInfos;
  11284. Array<Variant> attributes;
  11285. /* readonly */
  11286. String category;
  11287. Node controlledNode;
  11288. bool enabled;
  11289. /* readonly */
  11290. bool enabledEffective;
  11291. /* readonly */
  11292. uint id;
  11293. InterpolationMode interpolationMode;
  11294. /* readonly */
  11295. bool isFinished;
  11296. /* readonly */
  11297. float length;
  11298. /* readonly */
  11299. Node node;
  11300. /* readonly */
  11301. uint numAttributes;
  11302. ObjectAnimation objectAnimation;
  11303. /* readonly */
  11304. int refs;
  11305. float speed;
  11306. bool temporary;
  11307. /* readonly */
  11308. StringHash type;
  11309. /* readonly */
  11310. String typeName;
  11311. /* readonly */
  11312. int weakRefs;
  11313. };
  11314. class Sprite
  11315. {
  11316. public:
  11317. Sprite();
  11318. Sprite(const String&in);
  11319. // Methods:
  11320. void AddChild(UIElement);
  11321. void AddTag(const String&);
  11322. void AddTags(const String&, int8 = ';');
  11323. void ApplyAttributes();
  11324. void BringToFront();
  11325. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11326. void DisableLayoutUpdate();
  11327. IntVector2 ElementToScreen(const IntVector2&);
  11328. void EnableLayoutUpdate();
  11329. uint FindChild(UIElement) const;
  11330. Variant GetAttribute(const String&) const;
  11331. ValueAnimation GetAttributeAnimation(const String&) const;
  11332. float GetAttributeAnimationSpeed(const String&) const;
  11333. float GetAttributeAnimationTime(const String&) const;
  11334. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11335. Variant GetAttributeDefault(const String&) const;
  11336. UIElement GetChild(const String&, bool = false) const;
  11337. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11338. Array<UIElement> GetChildren(bool = false) const;
  11339. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11340. UIElement GetElementEventSender() const;
  11341. bool GetInterceptNetworkUpdate(const String&) const;
  11342. uint GetNumChildren(bool) const;
  11343. bool HasSubscribedToEvent(Object, const String&);
  11344. bool HasSubscribedToEvent(const String&);
  11345. bool HasTag(const String&) const;
  11346. void InsertChild(uint, UIElement);
  11347. bool IsInside(IntVector2, bool);
  11348. bool IsInsideCombined(IntVector2, bool);
  11349. bool Load(File, bool = false);
  11350. bool Load(VectorBuffer&, bool = false);
  11351. UIElement LoadChildXML(XMLFile, XMLFile = null);
  11352. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11353. bool LoadJSON(const JSONValue&, bool = false);
  11354. bool LoadXML(File);
  11355. bool LoadXML(VectorBuffer&);
  11356. bool LoadXML(XMLFile, XMLFile);
  11357. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11358. bool LoadXML(const XMLElement&, bool = false);
  11359. void MarkNetworkUpdate() const;
  11360. void Remove();
  11361. void RemoveAllChildren();
  11362. void RemoveAllTags();
  11363. void RemoveAttributeAnimation(const String&);
  11364. void RemoveChild(UIElement, uint = 0);
  11365. void RemoveChild(uint);
  11366. void RemoveInstanceDefault();
  11367. void RemoveObjectAnimation();
  11368. bool RemoveTag(const String&);
  11369. void ResetDeepEnabled();
  11370. void ResetToDefault();
  11371. bool Save(File) const;
  11372. bool Save(VectorBuffer&) const;
  11373. bool SaveJSON(JSONValue&) const;
  11374. bool SaveXML(File, const String& = "\t");
  11375. bool SaveXML(VectorBuffer&, const String& = "\t");
  11376. bool SaveXML(XMLElement&) const;
  11377. IntVector2 ScreenToElement(const IntVector2&);
  11378. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11379. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11380. void SetAnimationTime(float);
  11381. bool SetAttribute(const String&, const Variant&);
  11382. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11383. void SetAttributeAnimationSpeed(const String&, float);
  11384. void SetAttributeAnimationTime(const String&, float);
  11385. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11386. void SetDeepEnabled(bool);
  11387. void SetEnabledRecursive(bool);
  11388. void SetFixedHeight(int);
  11389. void SetFixedSize(int, int);
  11390. void SetFixedWidth(int);
  11391. void SetFullImageRect();
  11392. void SetHotSpot(int, int);
  11393. void SetInterceptNetworkUpdate(const String&, bool);
  11394. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11395. void SetMaxAnchor(float, float);
  11396. void SetMaxSize(int, int);
  11397. void SetMinAnchor(float, float);
  11398. void SetMinSize(int, int);
  11399. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11400. void SetPivot(float, float);
  11401. void SetPosition(float, float);
  11402. void SetScale(float);
  11403. void SetScale(float, float);
  11404. void SetSize(int, int);
  11405. bool SetStyle(const String&, XMLFile = null);
  11406. bool SetStyle(const XMLElement&);
  11407. bool SetStyleAuto(XMLFile = null);
  11408. void UpdateLayout();
  11409. const Variant& GetVar(const StringHash&);
  11410. // Properties:
  11411. bool animationEnabled;
  11412. /* readonly */
  11413. Array<Variant> attributeDefaults;
  11414. /* readonly */
  11415. Array<AttributeInfo> attributeInfos;
  11416. Array<Variant> attributes;
  11417. BlendMode blendMode;
  11418. bool bringToBack;
  11419. bool bringToFront;
  11420. /* readonly */
  11421. String category;
  11422. /* readonly */
  11423. IntVector2 childOffset;
  11424. /* readonly */
  11425. Array<UIElement> children;
  11426. IntRect clipBorder;
  11427. bool clipChildren;
  11428. /* writeonly */
  11429. Color color;
  11430. /* readonly */
  11431. bool colorGradient;
  11432. Array<Color> colors;
  11433. /* readonly */
  11434. IntRect combinedScreenRect;
  11435. XMLFile defaultStyle;
  11436. /* readonly */
  11437. float derivedOpacity;
  11438. /* readonly */
  11439. uint dragButtonCombo;
  11440. /* readonly */
  11441. int dragButtonCount;
  11442. uint dragDropMode;
  11443. bool editable;
  11444. bool elementEventSender;
  11445. bool enableAnchor;
  11446. bool enabled;
  11447. /* readonly */
  11448. bool enabledSelf;
  11449. /* readonly */
  11450. bool fixedHeight;
  11451. /* readonly */
  11452. bool fixedSize;
  11453. /* readonly */
  11454. bool fixedWidth;
  11455. bool focus;
  11456. FocusMode focusMode;
  11457. int height;
  11458. HorizontalAlignment horizontalAlignment;
  11459. IntVector2 hotSpot;
  11460. /* readonly */
  11461. bool hovering;
  11462. IntRect imageRect;
  11463. int indent;
  11464. int indentSpacing;
  11465. /* readonly */
  11466. int indentWidth;
  11467. bool internal;
  11468. IntRect layoutBorder;
  11469. Vector2 layoutFlexScale;
  11470. LayoutMode layoutMode;
  11471. int layoutSpacing;
  11472. Vector2 maxAnchor;
  11473. int maxHeight;
  11474. IntVector2 maxOffset;
  11475. IntVector2 maxSize;
  11476. int maxWidth;
  11477. Vector2 minAnchor;
  11478. int minHeight;
  11479. IntVector2 minOffset;
  11480. IntVector2 minSize;
  11481. int minWidth;
  11482. String name;
  11483. /* readonly */
  11484. uint numAllChildren;
  11485. /* readonly */
  11486. uint numAttributes;
  11487. /* readonly */
  11488. uint numChildren;
  11489. ObjectAnimation objectAnimation;
  11490. float opacity;
  11491. UIElement parent;
  11492. Vector2 pivot;
  11493. Vector2 position;
  11494. int priority;
  11495. /* readonly */
  11496. int refs;
  11497. /* readonly */
  11498. UIElement root;
  11499. float rotation;
  11500. Vector2 scale;
  11501. /* readonly */
  11502. IntVector2 screenPosition;
  11503. bool selected;
  11504. IntVector2 size;
  11505. bool sortChildren;
  11506. String style;
  11507. /* readonly */
  11508. Array<String> tags;
  11509. bool temporary;
  11510. Texture texture;
  11511. TraversalMode traversalMode;
  11512. /* readonly */
  11513. StringHash type;
  11514. /* readonly */
  11515. String typeName;
  11516. bool useDerivedOpacity;
  11517. /* readonly */
  11518. VariantMap vars;
  11519. VerticalAlignment verticalAlignment;
  11520. bool visible;
  11521. /* readonly */
  11522. bool visibleEffective;
  11523. /* readonly */
  11524. int weakRefs;
  11525. int width;
  11526. };
  11527. class Sprite2D
  11528. {
  11529. public:
  11530. Sprite2D();
  11531. Sprite2D(const String&in);
  11532. // Methods:
  11533. bool HasSubscribedToEvent(Object, const String&);
  11534. bool HasSubscribedToEvent(const String&);
  11535. bool Load(File);
  11536. bool Load(VectorBuffer&);
  11537. bool Load(const String&);
  11538. bool Save(File) const;
  11539. bool Save(VectorBuffer&) const;
  11540. bool Save(const String&) const;
  11541. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11542. // Properties:
  11543. /* readonly */
  11544. String category;
  11545. Vector2 hotSpot;
  11546. /* readonly */
  11547. uint memoryUse;
  11548. String name;
  11549. IntVector2 offset;
  11550. IntRect rectangle;
  11551. /* readonly */
  11552. int refs;
  11553. Texture2D texture;
  11554. float textureEdgeOffset;
  11555. /* readonly */
  11556. StringHash type;
  11557. /* readonly */
  11558. String typeName;
  11559. /* readonly */
  11560. uint useTimer;
  11561. /* readonly */
  11562. int weakRefs;
  11563. };
  11564. class SpriteSheet2D
  11565. {
  11566. public:
  11567. SpriteSheet2D();
  11568. SpriteSheet2D(const String&in);
  11569. // Methods:
  11570. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  11571. Sprite2D GetSprite(const String&);
  11572. bool HasSubscribedToEvent(Object, const String&);
  11573. bool HasSubscribedToEvent(const String&);
  11574. bool Load(File);
  11575. bool Load(VectorBuffer&);
  11576. bool Load(const String&);
  11577. bool Save(File) const;
  11578. bool Save(VectorBuffer&) const;
  11579. bool Save(const String&) const;
  11580. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11581. // Properties:
  11582. /* readonly */
  11583. String category;
  11584. /* readonly */
  11585. uint memoryUse;
  11586. String name;
  11587. /* readonly */
  11588. int refs;
  11589. Texture2D texture;
  11590. /* readonly */
  11591. StringHash type;
  11592. /* readonly */
  11593. String typeName;
  11594. /* readonly */
  11595. uint useTimer;
  11596. /* readonly */
  11597. int weakRefs;
  11598. };
  11599. class StaticModel
  11600. {
  11601. public:
  11602. // Methods:
  11603. void ApplyAttributes();
  11604. void ApplyMaterialList(const String& = String ( ));
  11605. void DrawDebugGeometry(DebugRenderer, bool);
  11606. Variant GetAttribute(const String&) const;
  11607. ValueAnimation GetAttributeAnimation(const String&) const;
  11608. float GetAttributeAnimationSpeed(const String&) const;
  11609. float GetAttributeAnimationTime(const String&) const;
  11610. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11611. Variant GetAttributeDefault(const String&) const;
  11612. bool GetInterceptNetworkUpdate(const String&) const;
  11613. bool HasSubscribedToEvent(Object, const String&);
  11614. bool HasSubscribedToEvent(const String&);
  11615. bool IsInView(Camera) const;
  11616. bool IsInside(const Vector3&) const;
  11617. bool IsInsideLocal(const Vector3&) const;
  11618. bool Load(File, bool = false);
  11619. bool Load(VectorBuffer&, bool = false);
  11620. bool LoadJSON(const JSONValue&, bool = false);
  11621. bool LoadXML(const XMLElement&, bool = false);
  11622. void MarkNetworkUpdate() const;
  11623. void Remove();
  11624. void RemoveAttributeAnimation(const String&);
  11625. void RemoveInstanceDefault();
  11626. void RemoveObjectAnimation();
  11627. void ResetToDefault();
  11628. bool Save(File) const;
  11629. bool Save(VectorBuffer&) const;
  11630. bool SaveJSON(JSONValue&) const;
  11631. bool SaveXML(XMLElement&) const;
  11632. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11633. void SetAnimationTime(float);
  11634. bool SetAttribute(const String&, const Variant&);
  11635. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11636. void SetAttributeAnimationSpeed(const String&, float);
  11637. void SetAttributeAnimationTime(const String&, float);
  11638. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11639. void SetInterceptNetworkUpdate(const String&, bool);
  11640. // Properties:
  11641. bool animationEnabled;
  11642. /* readonly */
  11643. Array<Variant> attributeDefaults;
  11644. /* readonly */
  11645. Array<AttributeInfo> attributeInfos;
  11646. Array<Variant> attributes;
  11647. /* readonly */
  11648. BoundingBox boundingBox;
  11649. bool castShadows;
  11650. /* readonly */
  11651. String category;
  11652. float drawDistance;
  11653. bool enabled;
  11654. /* readonly */
  11655. bool enabledEffective;
  11656. /* readonly */
  11657. uint id;
  11658. /* readonly */
  11659. bool inView;
  11660. uint lightMask;
  11661. float lodBias;
  11662. /* writeonly */
  11663. Material material;
  11664. Array<Material> materials;
  11665. uint maxLights;
  11666. Model model;
  11667. /* readonly */
  11668. Node node;
  11669. /* readonly */
  11670. uint numAttributes;
  11671. /* readonly */
  11672. uint numGeometries;
  11673. ObjectAnimation objectAnimation;
  11674. bool occludee;
  11675. bool occluder;
  11676. uint occlusionLodLevel;
  11677. /* readonly */
  11678. int refs;
  11679. float shadowDistance;
  11680. uint shadowMask;
  11681. bool temporary;
  11682. /* readonly */
  11683. StringHash type;
  11684. /* readonly */
  11685. String typeName;
  11686. uint viewMask;
  11687. /* readonly */
  11688. int weakRefs;
  11689. /* readonly */
  11690. BoundingBox worldBoundingBox;
  11691. uint zoneMask;
  11692. };
  11693. class StaticModelGroup
  11694. {
  11695. public:
  11696. // Methods:
  11697. void AddInstanceNode(Node);
  11698. void ApplyAttributes();
  11699. void ApplyMaterialList(const String& = String ( ));
  11700. void DrawDebugGeometry(DebugRenderer, bool);
  11701. Variant GetAttribute(const String&) const;
  11702. ValueAnimation GetAttributeAnimation(const String&) const;
  11703. float GetAttributeAnimationSpeed(const String&) const;
  11704. float GetAttributeAnimationTime(const String&) const;
  11705. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11706. Variant GetAttributeDefault(const String&) const;
  11707. bool GetInterceptNetworkUpdate(const String&) const;
  11708. bool HasSubscribedToEvent(Object, const String&);
  11709. bool HasSubscribedToEvent(const String&);
  11710. bool IsInView(Camera) const;
  11711. bool Load(File, bool = false);
  11712. bool Load(VectorBuffer&, bool = false);
  11713. bool LoadJSON(const JSONValue&, bool = false);
  11714. bool LoadXML(const XMLElement&, bool = false);
  11715. void MarkNetworkUpdate() const;
  11716. void Remove();
  11717. void RemoveAllInstanceNodes();
  11718. void RemoveAttributeAnimation(const String&);
  11719. void RemoveInstanceDefault();
  11720. void RemoveInstanceNode(Node);
  11721. void RemoveObjectAnimation();
  11722. void ResetToDefault();
  11723. bool Save(File) const;
  11724. bool Save(VectorBuffer&) const;
  11725. bool SaveJSON(JSONValue&) const;
  11726. bool SaveXML(XMLElement&) const;
  11727. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11728. void SetAnimationTime(float);
  11729. bool SetAttribute(const String&, const Variant&);
  11730. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11731. void SetAttributeAnimationSpeed(const String&, float);
  11732. void SetAttributeAnimationTime(const String&, float);
  11733. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11734. void SetInterceptNetworkUpdate(const String&, bool);
  11735. // Properties:
  11736. bool animationEnabled;
  11737. /* readonly */
  11738. Array<Variant> attributeDefaults;
  11739. /* readonly */
  11740. Array<AttributeInfo> attributeInfos;
  11741. Array<Variant> attributes;
  11742. /* readonly */
  11743. BoundingBox boundingBox;
  11744. bool castShadows;
  11745. /* readonly */
  11746. String category;
  11747. float drawDistance;
  11748. bool enabled;
  11749. /* readonly */
  11750. bool enabledEffective;
  11751. /* readonly */
  11752. uint id;
  11753. /* readonly */
  11754. bool inView;
  11755. /* readonly */
  11756. Array<Node> instanceNodes;
  11757. uint lightMask;
  11758. float lodBias;
  11759. /* writeonly */
  11760. Material material;
  11761. Array<Material> materials;
  11762. uint maxLights;
  11763. Model model;
  11764. /* readonly */
  11765. Node node;
  11766. /* readonly */
  11767. uint numAttributes;
  11768. /* readonly */
  11769. uint numGeometries;
  11770. /* readonly */
  11771. uint numInstanceNodes;
  11772. ObjectAnimation objectAnimation;
  11773. bool occludee;
  11774. bool occluder;
  11775. uint occlusionLodLevel;
  11776. /* readonly */
  11777. int refs;
  11778. float shadowDistance;
  11779. uint shadowMask;
  11780. bool temporary;
  11781. /* readonly */
  11782. StringHash type;
  11783. /* readonly */
  11784. String typeName;
  11785. uint viewMask;
  11786. /* readonly */
  11787. int weakRefs;
  11788. /* readonly */
  11789. BoundingBox worldBoundingBox;
  11790. /* readonly */
  11791. Zone zone;
  11792. uint zoneMask;
  11793. };
  11794. class StaticSprite2D
  11795. {
  11796. public:
  11797. // Methods:
  11798. void ApplyAttributes();
  11799. void DrawDebugGeometry(DebugRenderer, bool);
  11800. Variant GetAttribute(const String&) const;
  11801. ValueAnimation GetAttributeAnimation(const String&) const;
  11802. float GetAttributeAnimationSpeed(const String&) const;
  11803. float GetAttributeAnimationTime(const String&) const;
  11804. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11805. Variant GetAttributeDefault(const String&) const;
  11806. bool GetInterceptNetworkUpdate(const String&) const;
  11807. bool HasSubscribedToEvent(Object, const String&);
  11808. bool HasSubscribedToEvent(const String&);
  11809. bool IsInView(Camera) const;
  11810. bool Load(File, bool = false);
  11811. bool Load(VectorBuffer&, bool = false);
  11812. bool LoadJSON(const JSONValue&, bool = false);
  11813. bool LoadXML(const XMLElement&, bool = false);
  11814. void MarkNetworkUpdate() const;
  11815. void Remove();
  11816. void RemoveAttributeAnimation(const String&);
  11817. void RemoveInstanceDefault();
  11818. void RemoveObjectAnimation();
  11819. void ResetToDefault();
  11820. bool Save(File) const;
  11821. bool Save(VectorBuffer&) const;
  11822. bool SaveJSON(JSONValue&) const;
  11823. bool SaveXML(XMLElement&) const;
  11824. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11825. void SetAnimationTime(float);
  11826. bool SetAttribute(const String&, const Variant&);
  11827. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11828. void SetAttributeAnimationSpeed(const String&, float);
  11829. void SetAttributeAnimationTime(const String&, float);
  11830. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11831. void SetFlip(bool, bool);
  11832. void SetInterceptNetworkUpdate(const String&, bool);
  11833. // Properties:
  11834. float alpha;
  11835. bool animationEnabled;
  11836. /* readonly */
  11837. Array<Variant> attributeDefaults;
  11838. /* readonly */
  11839. Array<AttributeInfo> attributeInfos;
  11840. Array<Variant> attributes;
  11841. BlendMode blendMode;
  11842. /* readonly */
  11843. BoundingBox boundingBox;
  11844. bool castShadows;
  11845. /* readonly */
  11846. String category;
  11847. Color color;
  11848. Material customMaterial;
  11849. float drawDistance;
  11850. Rect drawRect;
  11851. bool enabled;
  11852. /* readonly */
  11853. bool enabledEffective;
  11854. bool flipX;
  11855. bool flipY;
  11856. Vector2 hotSpot;
  11857. /* readonly */
  11858. uint id;
  11859. /* readonly */
  11860. bool inView;
  11861. int layer;
  11862. uint lightMask;
  11863. float lodBias;
  11864. uint maxLights;
  11865. /* readonly */
  11866. Node node;
  11867. /* readonly */
  11868. uint numAttributes;
  11869. ObjectAnimation objectAnimation;
  11870. bool occludee;
  11871. bool occluder;
  11872. int orderInLayer;
  11873. /* readonly */
  11874. int refs;
  11875. float shadowDistance;
  11876. uint shadowMask;
  11877. Sprite2D sprite;
  11878. bool temporary;
  11879. Rect textureRect;
  11880. /* readonly */
  11881. StringHash type;
  11882. /* readonly */
  11883. String typeName;
  11884. bool useDrawRect;
  11885. bool useHotSpot;
  11886. bool useTextureRect;
  11887. uint viewMask;
  11888. /* readonly */
  11889. int weakRefs;
  11890. /* readonly */
  11891. BoundingBox worldBoundingBox;
  11892. uint zoneMask;
  11893. };
  11894. class String
  11895. {
  11896. public:
  11897. ~String();
  11898. String();
  11899. String(const String&in);
  11900. String(int);
  11901. String(uint);
  11902. String(float);
  11903. String(double);
  11904. String(bool);
  11905. String(const char*);
  11906. // Methods:
  11907. void AppendUTF8(uint);
  11908. uint AtUTF8(uint) const;
  11909. uint ByteOffsetUTF8(uint) const;
  11910. void Clear();
  11911. int Compare(const String&, bool = true) const;
  11912. bool Contains(const String&, bool = true) const;
  11913. bool Contains(uint8, bool = true) const;
  11914. bool EndsWith(const String&, bool = true) const;
  11915. uint Find(const String&, uint = 0, bool = true) const;
  11916. uint Find(uint8, uint = 0, bool = true) const;
  11917. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  11918. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  11919. void Join(Array<String>&, const String&);
  11920. uint NextUTF8Char(uint&) const;
  11921. void Replace(const String&, const String&, bool = true);
  11922. void Replace(uint8, uint8, bool = true);
  11923. void ReplaceUTF8(uint, uint);
  11924. String Replaced(const String&, const String&, bool = true) const;
  11925. String Replaced(uint8, uint8, bool = true) const;
  11926. void Resize(uint);
  11927. void SetUTF8FromLatin1(const String&);
  11928. Array<String> Split(uint8, bool = false) const;
  11929. bool StartsWith(const String&, bool = true) const;
  11930. String Substring(uint) const;
  11931. String Substring(uint, uint) const;
  11932. String SubstringUTF8(uint) const;
  11933. String SubstringUTF8(uint, uint) const;
  11934. bool ToBool() const;
  11935. Color ToColor() const;
  11936. double ToDouble() const;
  11937. float ToFloat() const;
  11938. int ToInt(int = 10) const;
  11939. int64 ToInt64(int = 10) const;
  11940. IntRect ToIntRect() const;
  11941. IntVector2 ToIntVector2() const;
  11942. IntVector3 ToIntVector3() const;
  11943. String ToLower() const;
  11944. Matrix3 ToMatrix3() const;
  11945. Matrix3x4 ToMatrix3x4() const;
  11946. Matrix4 ToMatrix4() const;
  11947. Quaternion ToQuaternion() const;
  11948. uint ToUInt(int = 10) const;
  11949. uint64 ToUInt64(int = 10) const;
  11950. String ToUpper() const;
  11951. Vector2 ToVector2() const;
  11952. Vector3 ToVector3() const;
  11953. Vector4 ToVector4(bool = false) const;
  11954. Variant ToVectorVariant() const;
  11955. String Trimmed() const;
  11956. // Properties:
  11957. /* readonly */
  11958. bool empty;
  11959. /* readonly */
  11960. uint length;
  11961. /* readonly */
  11962. uint utf8Length;
  11963. };
  11964. class StringHash
  11965. {
  11966. public:
  11967. StringHash();
  11968. StringHash(const StringHash&in);
  11969. StringHash(const String&in);
  11970. StringHash(uint);
  11971. // Methods:
  11972. String ToString() const;
  11973. // Properties:
  11974. /* readonly */
  11975. uint value;
  11976. };
  11977. class Technique
  11978. {
  11979. public:
  11980. Technique();
  11981. Technique(const String&in);
  11982. // Methods:
  11983. Technique Clone(const String& = String ( )) const;
  11984. Pass CreatePass(const String&);
  11985. Pass GetPass(const String&);
  11986. Pass GetSupportedPass(const String&);
  11987. bool HasPass(const String&) const;
  11988. bool HasSubscribedToEvent(Object, const String&);
  11989. bool HasSubscribedToEvent(const String&);
  11990. bool Load(File);
  11991. bool Load(VectorBuffer&);
  11992. bool Load(const String&);
  11993. void RemovePass(const String&);
  11994. bool Save(File) const;
  11995. bool Save(VectorBuffer&) const;
  11996. bool Save(const String&) const;
  11997. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11998. // Properties:
  11999. /* readonly */
  12000. String category;
  12001. bool desktop;
  12002. /* readonly */
  12003. uint memoryUse;
  12004. String name;
  12005. /* readonly */
  12006. uint numPasses;
  12007. /* readonly */
  12008. Array<String> passNames;
  12009. /* readonly */
  12010. Array<Pass> passes;
  12011. /* readonly */
  12012. int refs;
  12013. /* readonly */
  12014. bool supported;
  12015. /* readonly */
  12016. StringHash type;
  12017. /* readonly */
  12018. String typeName;
  12019. /* readonly */
  12020. uint useTimer;
  12021. /* readonly */
  12022. int weakRefs;
  12023. };
  12024. class TechniqueEntry
  12025. {
  12026. public:
  12027. ~TechniqueEntry();
  12028. TechniqueEntry();
  12029. TechniqueEntry(const TechniqueEntry&in);
  12030. // Properties:
  12031. float lodDistance;
  12032. int qualityLevel;
  12033. Technique technique;
  12034. };
  12035. class Terrain
  12036. {
  12037. public:
  12038. // Methods:
  12039. void ApplyAttributes();
  12040. void ApplyHeightMap();
  12041. void DrawDebugGeometry(DebugRenderer, bool);
  12042. Variant GetAttribute(const String&) const;
  12043. ValueAnimation GetAttributeAnimation(const String&) const;
  12044. float GetAttributeAnimationSpeed(const String&) const;
  12045. float GetAttributeAnimationTime(const String&) const;
  12046. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12047. Variant GetAttributeDefault(const String&) const;
  12048. float GetHeight(const Vector3&) const;
  12049. bool GetInterceptNetworkUpdate(const String&) const;
  12050. TerrainPatch GetNeighborPatch(int, int) const;
  12051. Vector3 GetNormal(const Vector3&) const;
  12052. TerrainPatch GetPatch(int, int) const;
  12053. bool HasSubscribedToEvent(Object, const String&);
  12054. bool HasSubscribedToEvent(const String&);
  12055. Vector3 HeightMapToWorld(const IntVector2&) const;
  12056. bool Load(File, bool = false);
  12057. bool Load(VectorBuffer&, bool = false);
  12058. bool LoadJSON(const JSONValue&, bool = false);
  12059. bool LoadXML(const XMLElement&, bool = false);
  12060. void MarkNetworkUpdate() const;
  12061. void Remove();
  12062. void RemoveAttributeAnimation(const String&);
  12063. void RemoveInstanceDefault();
  12064. void RemoveObjectAnimation();
  12065. void ResetToDefault();
  12066. bool Save(File) const;
  12067. bool Save(VectorBuffer&) const;
  12068. bool SaveJSON(JSONValue&) const;
  12069. bool SaveXML(XMLElement&) const;
  12070. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12071. void SetAnimationTime(float);
  12072. bool SetAttribute(const String&, const Variant&);
  12073. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12074. void SetAttributeAnimationSpeed(const String&, float);
  12075. void SetAttributeAnimationTime(const String&, float);
  12076. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12077. void SetInterceptNetworkUpdate(const String&, bool);
  12078. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  12079. IntVector2 WorldToHeightMap(const Vector3&) const;
  12080. // Properties:
  12081. bool animationEnabled;
  12082. /* readonly */
  12083. Array<Variant> attributeDefaults;
  12084. /* readonly */
  12085. Array<AttributeInfo> attributeInfos;
  12086. Array<Variant> attributes;
  12087. bool castShadows;
  12088. /* readonly */
  12089. String category;
  12090. float drawDistance;
  12091. Terrain eastNeighbor;
  12092. bool enabled;
  12093. /* readonly */
  12094. bool enabledEffective;
  12095. Image heightMap;
  12096. /* readonly */
  12097. uint id;
  12098. uint lightMask;
  12099. float lodBias;
  12100. Material material;
  12101. uint maxLights;
  12102. uint maxLodLevels;
  12103. /* readonly */
  12104. Node node;
  12105. Terrain northNeighbor;
  12106. /* readonly */
  12107. uint numAttributes;
  12108. /* readonly */
  12109. IntVector2 numPatches;
  12110. /* readonly */
  12111. IntVector2 numVertices;
  12112. ObjectAnimation objectAnimation;
  12113. bool occludee;
  12114. bool occluder;
  12115. uint occlusionLodLevel;
  12116. int patchSize;
  12117. /* readonly */
  12118. Array<TerrainPatch> patches;
  12119. /* readonly */
  12120. int refs;
  12121. float shadowDistance;
  12122. uint shadowMask;
  12123. bool smoothing;
  12124. Terrain southNeighbor;
  12125. Vector3 spacing;
  12126. bool temporary;
  12127. /* readonly */
  12128. StringHash type;
  12129. /* readonly */
  12130. String typeName;
  12131. uint viewMask;
  12132. /* readonly */
  12133. int weakRefs;
  12134. Terrain westNeighbor;
  12135. uint zoneMask;
  12136. };
  12137. class TerrainPatch
  12138. {
  12139. public:
  12140. // Methods:
  12141. void ApplyAttributes();
  12142. void DrawDebugGeometry(DebugRenderer, bool);
  12143. Variant GetAttribute(const String&) const;
  12144. ValueAnimation GetAttributeAnimation(const String&) const;
  12145. float GetAttributeAnimationSpeed(const String&) const;
  12146. float GetAttributeAnimationTime(const String&) const;
  12147. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12148. Variant GetAttributeDefault(const String&) const;
  12149. bool GetInterceptNetworkUpdate(const String&) const;
  12150. bool HasSubscribedToEvent(Object, const String&);
  12151. bool HasSubscribedToEvent(const String&);
  12152. bool IsInView(Camera) const;
  12153. bool Load(File, bool = false);
  12154. bool Load(VectorBuffer&, bool = false);
  12155. bool LoadJSON(const JSONValue&, bool = false);
  12156. bool LoadXML(const XMLElement&, bool = false);
  12157. void MarkNetworkUpdate() const;
  12158. void Remove();
  12159. void RemoveAttributeAnimation(const String&);
  12160. void RemoveInstanceDefault();
  12161. void RemoveObjectAnimation();
  12162. void ResetToDefault();
  12163. bool Save(File) const;
  12164. bool Save(VectorBuffer&) const;
  12165. bool SaveJSON(JSONValue&) const;
  12166. bool SaveXML(XMLElement&) const;
  12167. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12168. void SetAnimationTime(float);
  12169. bool SetAttribute(const String&, const Variant&);
  12170. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12171. void SetAttributeAnimationSpeed(const String&, float);
  12172. void SetAttributeAnimationTime(const String&, float);
  12173. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12174. void SetInterceptNetworkUpdate(const String&, bool);
  12175. // Properties:
  12176. bool animationEnabled;
  12177. /* readonly */
  12178. Array<Variant> attributeDefaults;
  12179. /* readonly */
  12180. Array<AttributeInfo> attributeInfos;
  12181. Array<Variant> attributes;
  12182. /* readonly */
  12183. BoundingBox boundingBox;
  12184. bool castShadows;
  12185. /* readonly */
  12186. String category;
  12187. float drawDistance;
  12188. bool enabled;
  12189. /* readonly */
  12190. bool enabledEffective;
  12191. /* readonly */
  12192. uint id;
  12193. /* readonly */
  12194. bool inView;
  12195. uint lightMask;
  12196. float lodBias;
  12197. uint maxLights;
  12198. /* readonly */
  12199. Node node;
  12200. /* readonly */
  12201. uint numAttributes;
  12202. ObjectAnimation objectAnimation;
  12203. bool occludee;
  12204. bool occluder;
  12205. /* readonly */
  12206. int refs;
  12207. float shadowDistance;
  12208. uint shadowMask;
  12209. bool temporary;
  12210. /* readonly */
  12211. StringHash type;
  12212. /* readonly */
  12213. String typeName;
  12214. uint viewMask;
  12215. /* readonly */
  12216. int weakRefs;
  12217. /* readonly */
  12218. BoundingBox worldBoundingBox;
  12219. uint zoneMask;
  12220. };
  12221. class Text
  12222. {
  12223. public:
  12224. Text();
  12225. Text(const String&in);
  12226. // Methods:
  12227. void AddChild(UIElement);
  12228. void AddTag(const String&);
  12229. void AddTags(const String&, int8 = ';');
  12230. void ApplyAttributes();
  12231. void BringToFront();
  12232. void ClearSelection();
  12233. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12234. void DisableLayoutUpdate();
  12235. IntVector2 ElementToScreen(const IntVector2&);
  12236. void EnableLayoutUpdate();
  12237. uint FindChild(UIElement) const;
  12238. Variant GetAttribute(const String&) const;
  12239. ValueAnimation GetAttributeAnimation(const String&) const;
  12240. float GetAttributeAnimationSpeed(const String&) const;
  12241. float GetAttributeAnimationTime(const String&) const;
  12242. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12243. Variant GetAttributeDefault(const String&) const;
  12244. UIElement GetChild(const String&, bool = false) const;
  12245. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12246. Array<UIElement> GetChildren(bool = false) const;
  12247. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12248. UIElement GetElementEventSender() const;
  12249. bool GetInterceptNetworkUpdate(const String&) const;
  12250. uint GetNumChildren(bool) const;
  12251. bool HasSubscribedToEvent(Object, const String&);
  12252. bool HasSubscribedToEvent(const String&);
  12253. bool HasTag(const String&) const;
  12254. void InsertChild(uint, UIElement);
  12255. bool IsInside(IntVector2, bool);
  12256. bool IsInsideCombined(IntVector2, bool);
  12257. bool Load(File, bool = false);
  12258. bool Load(VectorBuffer&, bool = false);
  12259. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12260. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12261. bool LoadJSON(const JSONValue&, bool = false);
  12262. bool LoadXML(File);
  12263. bool LoadXML(VectorBuffer&);
  12264. bool LoadXML(XMLFile, XMLFile);
  12265. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12266. bool LoadXML(const XMLElement&, bool = false);
  12267. void MarkNetworkUpdate() const;
  12268. void Remove();
  12269. void RemoveAllChildren();
  12270. void RemoveAllTags();
  12271. void RemoveAttributeAnimation(const String&);
  12272. void RemoveChild(UIElement, uint = 0);
  12273. void RemoveChild(uint);
  12274. void RemoveInstanceDefault();
  12275. void RemoveObjectAnimation();
  12276. bool RemoveTag(const String&);
  12277. void ResetDeepEnabled();
  12278. void ResetToDefault();
  12279. bool Save(File) const;
  12280. bool Save(VectorBuffer&) const;
  12281. bool SaveJSON(JSONValue&) const;
  12282. bool SaveXML(File, const String& = "\t");
  12283. bool SaveXML(VectorBuffer&, const String& = "\t");
  12284. bool SaveXML(XMLElement&) const;
  12285. IntVector2 ScreenToElement(const IntVector2&);
  12286. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12287. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12288. void SetAnimationTime(float);
  12289. bool SetAttribute(const String&, const Variant&);
  12290. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12291. void SetAttributeAnimationSpeed(const String&, float);
  12292. void SetAttributeAnimationTime(const String&, float);
  12293. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12294. void SetDeepEnabled(bool);
  12295. void SetEnabledRecursive(bool);
  12296. void SetFixedHeight(int);
  12297. void SetFixedSize(int, int);
  12298. void SetFixedWidth(int);
  12299. bool SetFont(Font, float);
  12300. bool SetFont(const String&, int);
  12301. void SetInterceptNetworkUpdate(const String&, bool);
  12302. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12303. void SetMaxAnchor(float, float);
  12304. void SetMaxSize(int, int);
  12305. void SetMinAnchor(float, float);
  12306. void SetMinSize(int, int);
  12307. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12308. void SetPivot(float, float);
  12309. void SetPosition(int, int);
  12310. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  12311. void SetSize(int, int);
  12312. bool SetStyle(const String&, XMLFile = null);
  12313. bool SetStyle(const XMLElement&);
  12314. bool SetStyleAuto(XMLFile = null);
  12315. void UpdateLayout();
  12316. const Variant& GetVar(const StringHash&);
  12317. // Properties:
  12318. bool animationEnabled;
  12319. /* readonly */
  12320. Array<Variant> attributeDefaults;
  12321. /* readonly */
  12322. Array<AttributeInfo> attributeInfos;
  12323. Array<Variant> attributes;
  12324. bool autoLocalizable;
  12325. bool bringToBack;
  12326. bool bringToFront;
  12327. /* readonly */
  12328. String category;
  12329. /* readonly */
  12330. Array<Vector2> charPositions;
  12331. /* readonly */
  12332. Array<Vector2> charSizes;
  12333. /* readonly */
  12334. IntVector2 childOffset;
  12335. /* readonly */
  12336. Array<UIElement> children;
  12337. IntRect clipBorder;
  12338. bool clipChildren;
  12339. /* writeonly */
  12340. Color color;
  12341. /* readonly */
  12342. bool colorGradient;
  12343. Array<Color> colors;
  12344. /* readonly */
  12345. IntRect combinedScreenRect;
  12346. XMLFile defaultStyle;
  12347. /* readonly */
  12348. float derivedOpacity;
  12349. /* readonly */
  12350. uint dragButtonCombo;
  12351. /* readonly */
  12352. int dragButtonCount;
  12353. uint dragDropMode;
  12354. bool editable;
  12355. Color effectColor;
  12356. bool effectRoundStroke;
  12357. IntVector2 effectShadowOffset;
  12358. int effectStrokeThickness;
  12359. bool elementEventSender;
  12360. bool enableAnchor;
  12361. bool enabled;
  12362. /* readonly */
  12363. bool enabledSelf;
  12364. /* readonly */
  12365. bool fixedHeight;
  12366. /* readonly */
  12367. bool fixedSize;
  12368. /* readonly */
  12369. bool fixedWidth;
  12370. bool focus;
  12371. FocusMode focusMode;
  12372. /* readonly */
  12373. Font font;
  12374. float fontSize;
  12375. int height;
  12376. HorizontalAlignment horizontalAlignment;
  12377. Color hoverColor;
  12378. /* readonly */
  12379. bool hovering;
  12380. int indent;
  12381. int indentSpacing;
  12382. /* readonly */
  12383. int indentWidth;
  12384. bool internal;
  12385. IntRect layoutBorder;
  12386. Vector2 layoutFlexScale;
  12387. LayoutMode layoutMode;
  12388. int layoutSpacing;
  12389. Vector2 maxAnchor;
  12390. int maxHeight;
  12391. IntVector2 maxOffset;
  12392. IntVector2 maxSize;
  12393. int maxWidth;
  12394. Vector2 minAnchor;
  12395. int minHeight;
  12396. IntVector2 minOffset;
  12397. IntVector2 minSize;
  12398. int minWidth;
  12399. String name;
  12400. /* readonly */
  12401. uint numAllChildren;
  12402. /* readonly */
  12403. uint numAttributes;
  12404. /* readonly */
  12405. uint numChars;
  12406. /* readonly */
  12407. uint numChildren;
  12408. /* readonly */
  12409. uint numRows;
  12410. ObjectAnimation objectAnimation;
  12411. float opacity;
  12412. UIElement parent;
  12413. Vector2 pivot;
  12414. IntVector2 position;
  12415. int priority;
  12416. /* readonly */
  12417. int refs;
  12418. /* readonly */
  12419. UIElement root;
  12420. /* readonly */
  12421. float rowHeight;
  12422. float rowSpacing;
  12423. /* readonly */
  12424. Array<float> rowWidths;
  12425. /* readonly */
  12426. IntVector2 screenPosition;
  12427. bool selected;
  12428. Color selectionColor;
  12429. /* readonly */
  12430. uint selectionLength;
  12431. /* readonly */
  12432. uint selectionStart;
  12433. IntVector2 size;
  12434. bool sortChildren;
  12435. String style;
  12436. /* readonly */
  12437. Array<String> tags;
  12438. bool temporary;
  12439. String text;
  12440. HorizontalAlignment textAlignment;
  12441. TextEffect textEffect;
  12442. TraversalMode traversalMode;
  12443. /* readonly */
  12444. StringHash type;
  12445. /* readonly */
  12446. String typeName;
  12447. bool useDerivedOpacity;
  12448. /* readonly */
  12449. VariantMap vars;
  12450. VerticalAlignment verticalAlignment;
  12451. bool visible;
  12452. /* readonly */
  12453. bool visibleEffective;
  12454. /* readonly */
  12455. int weakRefs;
  12456. int width;
  12457. bool wordwrap;
  12458. };
  12459. class Text3D
  12460. {
  12461. public:
  12462. // Methods:
  12463. void ApplyAttributes();
  12464. void DrawDebugGeometry(DebugRenderer, bool);
  12465. Variant GetAttribute(const String&) const;
  12466. ValueAnimation GetAttributeAnimation(const String&) const;
  12467. float GetAttributeAnimationSpeed(const String&) const;
  12468. float GetAttributeAnimationTime(const String&) const;
  12469. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12470. Variant GetAttributeDefault(const String&) const;
  12471. bool GetInterceptNetworkUpdate(const String&) const;
  12472. bool HasSubscribedToEvent(Object, const String&);
  12473. bool HasSubscribedToEvent(const String&);
  12474. bool IsInView(Camera) const;
  12475. bool Load(File, bool = false);
  12476. bool Load(VectorBuffer&, bool = false);
  12477. bool LoadJSON(const JSONValue&, bool = false);
  12478. bool LoadXML(const XMLElement&, bool = false);
  12479. void MarkNetworkUpdate() const;
  12480. void Remove();
  12481. void RemoveAttributeAnimation(const String&);
  12482. void RemoveInstanceDefault();
  12483. void RemoveObjectAnimation();
  12484. void ResetToDefault();
  12485. bool Save(File) const;
  12486. bool Save(VectorBuffer&) const;
  12487. bool SaveJSON(JSONValue&) const;
  12488. bool SaveXML(XMLElement&) const;
  12489. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12490. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12491. void SetAnimationTime(float);
  12492. bool SetAttribute(const String&, const Variant&);
  12493. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12494. void SetAttributeAnimationSpeed(const String&, float);
  12495. void SetAttributeAnimationTime(const String&, float);
  12496. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12497. bool SetFont(Font, float);
  12498. bool SetFont(const String&, float);
  12499. void SetInterceptNetworkUpdate(const String&, bool);
  12500. // Properties:
  12501. bool animationEnabled;
  12502. /* readonly */
  12503. Array<Variant> attributeDefaults;
  12504. /* readonly */
  12505. Array<AttributeInfo> attributeInfos;
  12506. Array<Variant> attributes;
  12507. /* readonly */
  12508. BoundingBox boundingBox;
  12509. bool castShadows;
  12510. /* readonly */
  12511. String category;
  12512. /* readonly */
  12513. Array<Vector2> charPositions;
  12514. /* readonly */
  12515. Array<Vector2> charSizes;
  12516. /* writeonly */
  12517. Color color;
  12518. Array<Color> colors;
  12519. float drawDistance;
  12520. Color effectColor;
  12521. float effectDepthBias;
  12522. bool effectRoundStroke;
  12523. IntVector2 effectShadowOffset;
  12524. int effectStrokeThickness;
  12525. bool enabled;
  12526. /* readonly */
  12527. bool enabledEffective;
  12528. FaceCameraMode faceCameraMode;
  12529. bool fixedScreenSize;
  12530. /* readonly */
  12531. Font font;
  12532. float fontSize;
  12533. /* readonly */
  12534. int height;
  12535. HorizontalAlignment horizontalAlignment;
  12536. /* readonly */
  12537. uint id;
  12538. /* readonly */
  12539. bool inView;
  12540. uint lightMask;
  12541. float lodBias;
  12542. Material material;
  12543. uint maxLights;
  12544. /* readonly */
  12545. Node node;
  12546. /* readonly */
  12547. uint numAttributes;
  12548. /* readonly */
  12549. uint numChars;
  12550. /* readonly */
  12551. uint numRows;
  12552. ObjectAnimation objectAnimation;
  12553. bool occludee;
  12554. bool occluder;
  12555. float opacity;
  12556. /* readonly */
  12557. int refs;
  12558. /* readonly */
  12559. float rowHeight;
  12560. float rowSpacing;
  12561. /* readonly */
  12562. Array<float> rowWidths;
  12563. float shadowDistance;
  12564. uint shadowMask;
  12565. bool temporary;
  12566. String text;
  12567. HorizontalAlignment textAlignment;
  12568. TextEffect textEffect;
  12569. /* readonly */
  12570. StringHash type;
  12571. /* readonly */
  12572. String typeName;
  12573. VerticalAlignment verticalAlignment;
  12574. uint viewMask;
  12575. /* readonly */
  12576. int weakRefs;
  12577. int width;
  12578. bool wordwrap;
  12579. /* readonly */
  12580. BoundingBox worldBoundingBox;
  12581. uint zoneMask;
  12582. };
  12583. class Texture
  12584. {
  12585. public:
  12586. Texture();
  12587. Texture(const String&in);
  12588. // Methods:
  12589. void AddMetadata(const String&, const Variant&);
  12590. void ClearDataLost();
  12591. bool HasSubscribedToEvent(Object, const String&);
  12592. bool HasSubscribedToEvent(const String&);
  12593. bool Load(File);
  12594. bool Load(VectorBuffer&);
  12595. bool Load(const String&);
  12596. void RemoveAllMetadata();
  12597. void RemoveMetadata(const String&);
  12598. bool Save(File) const;
  12599. bool Save(VectorBuffer&) const;
  12600. bool Save(const String&) const;
  12601. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12602. void SetNumLevels(uint);
  12603. // Properties:
  12604. Array<TextureAddressMode> addressMode;
  12605. uint anisotropy;
  12606. /* readonly */
  12607. bool autoResolve;
  12608. Texture backupTexture;
  12609. Color borderColor;
  12610. /* readonly */
  12611. String category;
  12612. /* readonly */
  12613. uint components;
  12614. /* readonly */
  12615. bool compressed;
  12616. /* readonly */
  12617. bool dataLost;
  12618. TextureFilterMode filterMode;
  12619. /* readonly */
  12620. uint format;
  12621. /* readonly */
  12622. bool hasMetadata;
  12623. /* readonly */
  12624. int height;
  12625. /* readonly */
  12626. Array<int> levelHeight;
  12627. /* readonly */
  12628. Array<int> levelWidth;
  12629. /* readonly */
  12630. uint levels;
  12631. /* readonly */
  12632. bool levelsDirty;
  12633. /* readonly */
  12634. uint memoryUse;
  12635. Array<Variant> metadata;
  12636. Array<int> mipsToSkip;
  12637. /* readonly */
  12638. int multiSample;
  12639. String name;
  12640. /* readonly */
  12641. int refs;
  12642. /* readonly */
  12643. bool resolveDirty;
  12644. bool sRGB;
  12645. /* readonly */
  12646. StringHash type;
  12647. /* readonly */
  12648. String typeName;
  12649. /* readonly */
  12650. TextureUsage usage;
  12651. /* readonly */
  12652. uint useTimer;
  12653. /* readonly */
  12654. int weakRefs;
  12655. /* readonly */
  12656. int width;
  12657. };
  12658. class Texture2D
  12659. {
  12660. public:
  12661. Texture2D();
  12662. Texture2D(const String&in);
  12663. // Methods:
  12664. void AddMetadata(const String&, const Variant&);
  12665. void ClearDataLost();
  12666. Image GetImage() const;
  12667. bool HasSubscribedToEvent(Object, const String&);
  12668. bool HasSubscribedToEvent(const String&);
  12669. bool Load(File);
  12670. bool Load(VectorBuffer&);
  12671. bool Load(const String&);
  12672. void RemoveAllMetadata();
  12673. void RemoveMetadata(const String&);
  12674. bool Save(File) const;
  12675. bool Save(VectorBuffer&) const;
  12676. bool Save(const String&) const;
  12677. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12678. bool SetData(Image, bool = false);
  12679. void SetNumLevels(uint);
  12680. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  12681. // Properties:
  12682. Array<TextureAddressMode> addressMode;
  12683. uint anisotropy;
  12684. /* readonly */
  12685. bool autoResolve;
  12686. Texture backupTexture;
  12687. Color borderColor;
  12688. /* readonly */
  12689. String category;
  12690. /* readonly */
  12691. uint components;
  12692. /* readonly */
  12693. bool compressed;
  12694. /* readonly */
  12695. bool dataLost;
  12696. TextureFilterMode filterMode;
  12697. /* readonly */
  12698. uint format;
  12699. /* readonly */
  12700. bool hasMetadata;
  12701. /* readonly */
  12702. int height;
  12703. /* readonly */
  12704. Array<int> levelHeight;
  12705. /* readonly */
  12706. Array<int> levelWidth;
  12707. /* readonly */
  12708. uint levels;
  12709. /* readonly */
  12710. bool levelsDirty;
  12711. /* readonly */
  12712. uint memoryUse;
  12713. Array<Variant> metadata;
  12714. Array<int> mipsToSkip;
  12715. /* readonly */
  12716. int multiSample;
  12717. String name;
  12718. /* readonly */
  12719. int refs;
  12720. /* readonly */
  12721. RenderSurface renderSurface;
  12722. /* readonly */
  12723. bool resolveDirty;
  12724. bool sRGB;
  12725. /* readonly */
  12726. StringHash type;
  12727. /* readonly */
  12728. String typeName;
  12729. /* readonly */
  12730. TextureUsage usage;
  12731. /* readonly */
  12732. uint useTimer;
  12733. /* readonly */
  12734. int weakRefs;
  12735. /* readonly */
  12736. int width;
  12737. };
  12738. class Texture2DArray
  12739. {
  12740. public:
  12741. Texture2DArray();
  12742. Texture2DArray(const String&in);
  12743. // Methods:
  12744. void AddMetadata(const String&, const Variant&);
  12745. void ClearDataLost();
  12746. bool HasSubscribedToEvent(Object, const String&);
  12747. bool HasSubscribedToEvent(const String&);
  12748. bool Load(File);
  12749. bool Load(VectorBuffer&);
  12750. bool Load(const String&);
  12751. void RemoveAllMetadata();
  12752. void RemoveMetadata(const String&);
  12753. bool Save(File) const;
  12754. bool Save(VectorBuffer&) const;
  12755. bool Save(const String&) const;
  12756. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12757. bool SetData(uint, Image, bool = false);
  12758. void SetNumLevels(uint);
  12759. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12760. // Properties:
  12761. Array<TextureAddressMode> addressMode;
  12762. uint anisotropy;
  12763. /* readonly */
  12764. bool autoResolve;
  12765. Texture backupTexture;
  12766. Color borderColor;
  12767. /* readonly */
  12768. String category;
  12769. /* readonly */
  12770. uint components;
  12771. /* readonly */
  12772. bool compressed;
  12773. /* readonly */
  12774. bool dataLost;
  12775. TextureFilterMode filterMode;
  12776. /* readonly */
  12777. uint format;
  12778. /* readonly */
  12779. bool hasMetadata;
  12780. /* readonly */
  12781. int height;
  12782. uint layers;
  12783. /* readonly */
  12784. Array<int> levelHeight;
  12785. /* readonly */
  12786. Array<int> levelWidth;
  12787. /* readonly */
  12788. uint levels;
  12789. /* readonly */
  12790. bool levelsDirty;
  12791. /* readonly */
  12792. uint memoryUse;
  12793. Array<Variant> metadata;
  12794. Array<int> mipsToSkip;
  12795. /* readonly */
  12796. int multiSample;
  12797. String name;
  12798. /* readonly */
  12799. int refs;
  12800. /* readonly */
  12801. RenderSurface renderSurface;
  12802. /* readonly */
  12803. bool resolveDirty;
  12804. bool sRGB;
  12805. /* readonly */
  12806. StringHash type;
  12807. /* readonly */
  12808. String typeName;
  12809. /* readonly */
  12810. TextureUsage usage;
  12811. /* readonly */
  12812. uint useTimer;
  12813. /* readonly */
  12814. int weakRefs;
  12815. /* readonly */
  12816. int width;
  12817. };
  12818. class Texture3D
  12819. {
  12820. public:
  12821. Texture3D();
  12822. Texture3D(const String&in);
  12823. // Methods:
  12824. void AddMetadata(const String&, const Variant&);
  12825. void ClearDataLost();
  12826. bool HasSubscribedToEvent(Object, const String&);
  12827. bool HasSubscribedToEvent(const String&);
  12828. bool Load(File);
  12829. bool Load(VectorBuffer&);
  12830. bool Load(const String&);
  12831. void RemoveAllMetadata();
  12832. void RemoveMetadata(const String&);
  12833. bool Save(File) const;
  12834. bool Save(VectorBuffer&) const;
  12835. bool Save(const String&) const;
  12836. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12837. bool SetData(Image, bool = false);
  12838. void SetNumLevels(uint);
  12839. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12840. // Properties:
  12841. Array<TextureAddressMode> addressMode;
  12842. uint anisotropy;
  12843. /* readonly */
  12844. bool autoResolve;
  12845. Texture backupTexture;
  12846. Color borderColor;
  12847. /* readonly */
  12848. String category;
  12849. /* readonly */
  12850. uint components;
  12851. /* readonly */
  12852. bool compressed;
  12853. /* readonly */
  12854. bool dataLost;
  12855. TextureFilterMode filterMode;
  12856. /* readonly */
  12857. uint format;
  12858. /* readonly */
  12859. bool hasMetadata;
  12860. /* readonly */
  12861. int height;
  12862. /* readonly */
  12863. Array<int> levelHeight;
  12864. /* readonly */
  12865. Array<int> levelWidth;
  12866. /* readonly */
  12867. uint levels;
  12868. /* readonly */
  12869. bool levelsDirty;
  12870. /* readonly */
  12871. uint memoryUse;
  12872. Array<Variant> metadata;
  12873. Array<int> mipsToSkip;
  12874. /* readonly */
  12875. int multiSample;
  12876. String name;
  12877. /* readonly */
  12878. int refs;
  12879. /* readonly */
  12880. bool resolveDirty;
  12881. bool sRGB;
  12882. /* readonly */
  12883. StringHash type;
  12884. /* readonly */
  12885. String typeName;
  12886. /* readonly */
  12887. TextureUsage usage;
  12888. /* readonly */
  12889. uint useTimer;
  12890. /* readonly */
  12891. int weakRefs;
  12892. /* readonly */
  12893. int width;
  12894. };
  12895. class TextureCube
  12896. {
  12897. public:
  12898. TextureCube();
  12899. TextureCube(const String&in);
  12900. // Methods:
  12901. void AddMetadata(const String&, const Variant&);
  12902. void ClearDataLost();
  12903. Image GetImage(CubeMapFace) const;
  12904. bool HasSubscribedToEvent(Object, const String&);
  12905. bool HasSubscribedToEvent(const String&);
  12906. bool Load(File);
  12907. bool Load(VectorBuffer&);
  12908. bool Load(const String&);
  12909. void RemoveAllMetadata();
  12910. void RemoveMetadata(const String&);
  12911. bool Save(File) const;
  12912. bool Save(VectorBuffer&) const;
  12913. bool Save(const String&) const;
  12914. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12915. bool SetData(CubeMapFace, Image, bool = false);
  12916. void SetNumLevels(uint);
  12917. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  12918. // Properties:
  12919. Array<TextureAddressMode> addressMode;
  12920. uint anisotropy;
  12921. /* readonly */
  12922. bool autoResolve;
  12923. Texture backupTexture;
  12924. Color borderColor;
  12925. /* readonly */
  12926. String category;
  12927. /* readonly */
  12928. uint components;
  12929. /* readonly */
  12930. bool compressed;
  12931. /* readonly */
  12932. bool dataLost;
  12933. TextureFilterMode filterMode;
  12934. /* readonly */
  12935. uint format;
  12936. /* readonly */
  12937. bool hasMetadata;
  12938. /* readonly */
  12939. int height;
  12940. /* readonly */
  12941. Array<int> levelHeight;
  12942. /* readonly */
  12943. Array<int> levelWidth;
  12944. /* readonly */
  12945. uint levels;
  12946. /* readonly */
  12947. bool levelsDirty;
  12948. /* readonly */
  12949. uint memoryUse;
  12950. Array<Variant> metadata;
  12951. Array<int> mipsToSkip;
  12952. /* readonly */
  12953. int multiSample;
  12954. String name;
  12955. /* readonly */
  12956. int refs;
  12957. /* readonly */
  12958. Array<RenderSurface> renderSurfaces;
  12959. /* readonly */
  12960. bool resolveDirty;
  12961. bool sRGB;
  12962. /* readonly */
  12963. StringHash type;
  12964. /* readonly */
  12965. String typeName;
  12966. /* readonly */
  12967. TextureUsage usage;
  12968. /* readonly */
  12969. uint useTimer;
  12970. /* readonly */
  12971. int weakRefs;
  12972. /* readonly */
  12973. int width;
  12974. };
  12975. class TextureFrame
  12976. {
  12977. public:
  12978. // Properties:
  12979. float time;
  12980. Rect uv;
  12981. };
  12982. class Tile2D
  12983. {
  12984. public:
  12985. // Methods:
  12986. bool HasProperty(const String&) const;
  12987. const String& GetProperty(const String&) const;
  12988. // Properties:
  12989. /* readonly */
  12990. int gid;
  12991. /* readonly */
  12992. int refs;
  12993. /* readonly */
  12994. Sprite2D sprite;
  12995. /* readonly */
  12996. int weakRefs;
  12997. };
  12998. class TileMap2D
  12999. {
  13000. public:
  13001. // Methods:
  13002. void ApplyAttributes();
  13003. void DrawDebugGeometry(DebugRenderer, bool);
  13004. Variant GetAttribute(const String&) const;
  13005. ValueAnimation GetAttributeAnimation(const String&) const;
  13006. float GetAttributeAnimationSpeed(const String&) const;
  13007. float GetAttributeAnimationTime(const String&) const;
  13008. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13009. Variant GetAttributeDefault(const String&) const;
  13010. bool GetInterceptNetworkUpdate(const String&) const;
  13011. TileMapLayer2D GetLayer(uint) const;
  13012. bool HasSubscribedToEvent(Object, const String&);
  13013. bool HasSubscribedToEvent(const String&);
  13014. bool Load(File, bool = false);
  13015. bool Load(VectorBuffer&, bool = false);
  13016. bool LoadJSON(const JSONValue&, bool = false);
  13017. bool LoadXML(const XMLElement&, bool = false);
  13018. void MarkNetworkUpdate() const;
  13019. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  13020. void Remove();
  13021. void RemoveAttributeAnimation(const String&);
  13022. void RemoveInstanceDefault();
  13023. void RemoveObjectAnimation();
  13024. void ResetToDefault();
  13025. bool Save(File) const;
  13026. bool Save(VectorBuffer&) const;
  13027. bool SaveJSON(JSONValue&) const;
  13028. bool SaveXML(XMLElement&) const;
  13029. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13030. void SetAnimationTime(float);
  13031. bool SetAttribute(const String&, const Variant&);
  13032. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13033. void SetAttributeAnimationSpeed(const String&, float);
  13034. void SetAttributeAnimationTime(const String&, float);
  13035. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13036. void SetInterceptNetworkUpdate(const String&, bool);
  13037. Vector2 TileIndexToPosition(int, int) const;
  13038. // Properties:
  13039. bool animationEnabled;
  13040. /* readonly */
  13041. Array<Variant> attributeDefaults;
  13042. /* readonly */
  13043. Array<AttributeInfo> attributeInfos;
  13044. Array<Variant> attributes;
  13045. /* readonly */
  13046. String category;
  13047. bool enabled;
  13048. /* readonly */
  13049. bool enabledEffective;
  13050. /* readonly */
  13051. uint id;
  13052. /* readonly */
  13053. TileMapInfo2D info;
  13054. /* readonly */
  13055. Node node;
  13056. /* readonly */
  13057. uint numAttributes;
  13058. /* readonly */
  13059. uint numLayers;
  13060. ObjectAnimation objectAnimation;
  13061. /* readonly */
  13062. int refs;
  13063. bool temporary;
  13064. TmxFile2D tmxFile;
  13065. /* readonly */
  13066. StringHash type;
  13067. /* readonly */
  13068. String typeName;
  13069. /* readonly */
  13070. int weakRefs;
  13071. };
  13072. class TileMapInfo2D
  13073. {
  13074. public:
  13075. // Properties:
  13076. int height;
  13077. /* readonly */
  13078. float mapHeight;
  13079. /* readonly */
  13080. float mapWidth;
  13081. Orientation2D orientation;
  13082. float tileHeight;
  13083. float tileWidth;
  13084. int width;
  13085. };
  13086. class TileMapLayer2D
  13087. {
  13088. public:
  13089. // Methods:
  13090. void ApplyAttributes();
  13091. void DrawDebugGeometry(DebugRenderer, bool);
  13092. Variant GetAttribute(const String&) const;
  13093. ValueAnimation GetAttributeAnimation(const String&) const;
  13094. float GetAttributeAnimationSpeed(const String&) const;
  13095. float GetAttributeAnimationTime(const String&) const;
  13096. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13097. Variant GetAttributeDefault(const String&) const;
  13098. bool GetInterceptNetworkUpdate(const String&) const;
  13099. TileMapObject2D GetObject(uint) const;
  13100. Node GetObjectNode(uint) const;
  13101. Tile2D GetTile(int, int) const;
  13102. Node GetTileNode(int, int) const;
  13103. bool HasProperty(const String&) const;
  13104. bool HasSubscribedToEvent(Object, const String&);
  13105. bool HasSubscribedToEvent(const String&);
  13106. bool Load(File, bool = false);
  13107. bool Load(VectorBuffer&, bool = false);
  13108. bool LoadJSON(const JSONValue&, bool = false);
  13109. bool LoadXML(const XMLElement&, bool = false);
  13110. void MarkNetworkUpdate() const;
  13111. void Remove();
  13112. void RemoveAttributeAnimation(const String&);
  13113. void RemoveInstanceDefault();
  13114. void RemoveObjectAnimation();
  13115. void ResetToDefault();
  13116. bool Save(File) const;
  13117. bool Save(VectorBuffer&) const;
  13118. bool SaveJSON(JSONValue&) const;
  13119. bool SaveXML(XMLElement&) const;
  13120. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13121. void SetAnimationTime(float);
  13122. bool SetAttribute(const String&, const Variant&);
  13123. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13124. void SetAttributeAnimationSpeed(const String&, float);
  13125. void SetAttributeAnimationTime(const String&, float);
  13126. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13127. void SetInterceptNetworkUpdate(const String&, bool);
  13128. const String& GetProperty(const String&) const;
  13129. // Properties:
  13130. bool animationEnabled;
  13131. /* readonly */
  13132. Array<Variant> attributeDefaults;
  13133. /* readonly */
  13134. Array<AttributeInfo> attributeInfos;
  13135. Array<Variant> attributes;
  13136. /* readonly */
  13137. String category;
  13138. int drawOrder;
  13139. bool enabled;
  13140. /* readonly */
  13141. bool enabledEffective;
  13142. /* readonly */
  13143. int height;
  13144. /* readonly */
  13145. uint id;
  13146. /* readonly */
  13147. Node imageNode;
  13148. /* readonly */
  13149. TileMapLayerType2D layerType;
  13150. /* readonly */
  13151. Node node;
  13152. /* readonly */
  13153. uint numAttributes;
  13154. /* readonly */
  13155. uint numObjects;
  13156. ObjectAnimation objectAnimation;
  13157. /* readonly */
  13158. int refs;
  13159. bool temporary;
  13160. /* readonly */
  13161. StringHash type;
  13162. /* readonly */
  13163. String typeName;
  13164. bool visible;
  13165. /* readonly */
  13166. int weakRefs;
  13167. /* readonly */
  13168. int width;
  13169. };
  13170. class TileMapObject2D
  13171. {
  13172. public:
  13173. // Methods:
  13174. bool HasProperty(const String&) const;
  13175. const String& GetProperty(const String&) const;
  13176. const Vector2& GetPoint(uint) const;
  13177. // Properties:
  13178. /* readonly */
  13179. String name;
  13180. /* readonly */
  13181. uint numPoints;
  13182. /* readonly */
  13183. TileObjectType2D objectType;
  13184. /* readonly */
  13185. Vector2 position;
  13186. /* readonly */
  13187. int refs;
  13188. /* readonly */
  13189. Vector2 size;
  13190. /* readonly */
  13191. int tileGid;
  13192. /* readonly */
  13193. Sprite2D tileSprite;
  13194. /* readonly */
  13195. String type;
  13196. /* readonly */
  13197. int weakRefs;
  13198. };
  13199. class Time
  13200. {
  13201. public:
  13202. // Methods:
  13203. bool HasSubscribedToEvent(Object, const String&);
  13204. bool HasSubscribedToEvent(const String&);
  13205. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13206. // Properties:
  13207. /* readonly */
  13208. String category;
  13209. /* readonly */
  13210. float elapsedTime;
  13211. /* readonly */
  13212. uint frameNumber;
  13213. /* readonly */
  13214. int refs;
  13215. /* readonly */
  13216. uint systemTime;
  13217. /* readonly */
  13218. uint timeSinceEpoch;
  13219. /* readonly */
  13220. String timeStamp;
  13221. /* readonly */
  13222. float timeStep;
  13223. /* readonly */
  13224. StringHash type;
  13225. /* readonly */
  13226. String typeName;
  13227. /* readonly */
  13228. int weakRefs;
  13229. };
  13230. class Timer
  13231. {
  13232. public:
  13233. Timer();
  13234. // Methods:
  13235. uint GetMSec(bool);
  13236. void Reset();
  13237. };
  13238. class TmxFile2D
  13239. {
  13240. public:
  13241. TmxFile2D();
  13242. TmxFile2D(const String&in);
  13243. // Methods:
  13244. bool HasSubscribedToEvent(Object, const String&);
  13245. bool HasSubscribedToEvent(const String&);
  13246. bool Load(File);
  13247. bool Load(VectorBuffer&);
  13248. bool Load(const String&);
  13249. bool Save(File) const;
  13250. bool Save(VectorBuffer&) const;
  13251. bool Save(const String&) const;
  13252. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13253. // Properties:
  13254. /* readonly */
  13255. String category;
  13256. /* readonly */
  13257. uint memoryUse;
  13258. String name;
  13259. /* readonly */
  13260. int refs;
  13261. /* readonly */
  13262. StringHash type;
  13263. /* readonly */
  13264. String typeName;
  13265. /* readonly */
  13266. uint useTimer;
  13267. /* readonly */
  13268. int weakRefs;
  13269. };
  13270. class ToolTip
  13271. {
  13272. public:
  13273. ToolTip();
  13274. ToolTip(const String&in);
  13275. // Methods:
  13276. void AddChild(UIElement);
  13277. void AddTag(const String&);
  13278. void AddTags(const String&, int8 = ';');
  13279. void ApplyAttributes();
  13280. void BringToFront();
  13281. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13282. void DisableLayoutUpdate();
  13283. IntVector2 ElementToScreen(const IntVector2&);
  13284. void EnableLayoutUpdate();
  13285. uint FindChild(UIElement) const;
  13286. Variant GetAttribute(const String&) const;
  13287. ValueAnimation GetAttributeAnimation(const String&) const;
  13288. float GetAttributeAnimationSpeed(const String&) const;
  13289. float GetAttributeAnimationTime(const String&) const;
  13290. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13291. Variant GetAttributeDefault(const String&) const;
  13292. UIElement GetChild(const String&, bool = false) const;
  13293. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13294. Array<UIElement> GetChildren(bool = false) const;
  13295. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13296. UIElement GetElementEventSender() const;
  13297. bool GetInterceptNetworkUpdate(const String&) const;
  13298. uint GetNumChildren(bool) const;
  13299. bool HasSubscribedToEvent(Object, const String&);
  13300. bool HasSubscribedToEvent(const String&);
  13301. bool HasTag(const String&) const;
  13302. void InsertChild(uint, UIElement);
  13303. bool IsInside(IntVector2, bool);
  13304. bool IsInsideCombined(IntVector2, bool);
  13305. bool Load(File, bool = false);
  13306. bool Load(VectorBuffer&, bool = false);
  13307. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13308. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13309. bool LoadJSON(const JSONValue&, bool = false);
  13310. bool LoadXML(File);
  13311. bool LoadXML(VectorBuffer&);
  13312. bool LoadXML(XMLFile, XMLFile);
  13313. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13314. bool LoadXML(const XMLElement&, bool = false);
  13315. void MarkNetworkUpdate() const;
  13316. void Remove();
  13317. void RemoveAllChildren();
  13318. void RemoveAllTags();
  13319. void RemoveAttributeAnimation(const String&);
  13320. void RemoveChild(UIElement, uint = 0);
  13321. void RemoveChild(uint);
  13322. void RemoveInstanceDefault();
  13323. void RemoveObjectAnimation();
  13324. bool RemoveTag(const String&);
  13325. void ResetDeepEnabled();
  13326. void ResetToDefault();
  13327. bool Save(File) const;
  13328. bool Save(VectorBuffer&) const;
  13329. bool SaveJSON(JSONValue&) const;
  13330. bool SaveXML(File, const String& = "\t");
  13331. bool SaveXML(VectorBuffer&, const String& = "\t");
  13332. bool SaveXML(XMLElement&) const;
  13333. IntVector2 ScreenToElement(const IntVector2&);
  13334. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13335. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13336. void SetAnimationTime(float);
  13337. bool SetAttribute(const String&, const Variant&);
  13338. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13339. void SetAttributeAnimationSpeed(const String&, float);
  13340. void SetAttributeAnimationTime(const String&, float);
  13341. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13342. void SetDeepEnabled(bool);
  13343. void SetEnabledRecursive(bool);
  13344. void SetFixedHeight(int);
  13345. void SetFixedSize(int, int);
  13346. void SetFixedWidth(int);
  13347. void SetInterceptNetworkUpdate(const String&, bool);
  13348. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13349. void SetMaxAnchor(float, float);
  13350. void SetMaxSize(int, int);
  13351. void SetMinAnchor(float, float);
  13352. void SetMinSize(int, int);
  13353. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13354. void SetPivot(float, float);
  13355. void SetPosition(int, int);
  13356. void SetSize(int, int);
  13357. bool SetStyle(const String&, XMLFile = null);
  13358. bool SetStyle(const XMLElement&);
  13359. bool SetStyleAuto(XMLFile = null);
  13360. void UpdateLayout();
  13361. const Variant& GetVar(const StringHash&);
  13362. // Properties:
  13363. bool animationEnabled;
  13364. /* readonly */
  13365. Array<Variant> attributeDefaults;
  13366. /* readonly */
  13367. Array<AttributeInfo> attributeInfos;
  13368. Array<Variant> attributes;
  13369. bool bringToBack;
  13370. bool bringToFront;
  13371. /* readonly */
  13372. String category;
  13373. /* readonly */
  13374. IntVector2 childOffset;
  13375. /* readonly */
  13376. Array<UIElement> children;
  13377. IntRect clipBorder;
  13378. bool clipChildren;
  13379. /* writeonly */
  13380. Color color;
  13381. /* readonly */
  13382. bool colorGradient;
  13383. Array<Color> colors;
  13384. /* readonly */
  13385. IntRect combinedScreenRect;
  13386. XMLFile defaultStyle;
  13387. float delay;
  13388. /* readonly */
  13389. float derivedOpacity;
  13390. /* readonly */
  13391. uint dragButtonCombo;
  13392. /* readonly */
  13393. int dragButtonCount;
  13394. uint dragDropMode;
  13395. bool editable;
  13396. bool elementEventSender;
  13397. bool enableAnchor;
  13398. bool enabled;
  13399. /* readonly */
  13400. bool enabledSelf;
  13401. /* readonly */
  13402. bool fixedHeight;
  13403. /* readonly */
  13404. bool fixedSize;
  13405. /* readonly */
  13406. bool fixedWidth;
  13407. bool focus;
  13408. FocusMode focusMode;
  13409. int height;
  13410. HorizontalAlignment horizontalAlignment;
  13411. /* readonly */
  13412. bool hovering;
  13413. int indent;
  13414. int indentSpacing;
  13415. /* readonly */
  13416. int indentWidth;
  13417. bool internal;
  13418. IntRect layoutBorder;
  13419. Vector2 layoutFlexScale;
  13420. LayoutMode layoutMode;
  13421. int layoutSpacing;
  13422. Vector2 maxAnchor;
  13423. int maxHeight;
  13424. IntVector2 maxOffset;
  13425. IntVector2 maxSize;
  13426. int maxWidth;
  13427. Vector2 minAnchor;
  13428. int minHeight;
  13429. IntVector2 minOffset;
  13430. IntVector2 minSize;
  13431. int minWidth;
  13432. String name;
  13433. /* readonly */
  13434. uint numAllChildren;
  13435. /* readonly */
  13436. uint numAttributes;
  13437. /* readonly */
  13438. uint numChildren;
  13439. ObjectAnimation objectAnimation;
  13440. float opacity;
  13441. UIElement parent;
  13442. Vector2 pivot;
  13443. IntVector2 position;
  13444. int priority;
  13445. /* readonly */
  13446. int refs;
  13447. /* readonly */
  13448. UIElement root;
  13449. /* readonly */
  13450. IntVector2 screenPosition;
  13451. bool selected;
  13452. IntVector2 size;
  13453. bool sortChildren;
  13454. String style;
  13455. /* readonly */
  13456. Array<String> tags;
  13457. bool temporary;
  13458. TraversalMode traversalMode;
  13459. /* readonly */
  13460. StringHash type;
  13461. /* readonly */
  13462. String typeName;
  13463. bool useDerivedOpacity;
  13464. /* readonly */
  13465. VariantMap vars;
  13466. VerticalAlignment verticalAlignment;
  13467. bool visible;
  13468. /* readonly */
  13469. bool visibleEffective;
  13470. /* readonly */
  13471. int weakRefs;
  13472. int width;
  13473. };
  13474. class TouchState
  13475. {
  13476. public:
  13477. // Properties:
  13478. IntVector2 delta;
  13479. IntVector2 lastPosition;
  13480. IntVector2 position;
  13481. float pressure;
  13482. int touchID;
  13483. /* readonly */
  13484. UIElement touchedElement;
  13485. };
  13486. class UI
  13487. {
  13488. public:
  13489. // Methods:
  13490. void Clear();
  13491. void DebugDraw(UIElement);
  13492. UIElement GetElementAt(const IntVector2&, bool = true);
  13493. UIElement GetElementAt(int, int, bool = true);
  13494. bool HasModalElement() const;
  13495. bool HasSubscribedToEvent(Object, const String&);
  13496. bool HasSubscribedToEvent(const String&);
  13497. bool IsDragging() const;
  13498. UIElement LoadLayout(File);
  13499. UIElement LoadLayout(File, XMLFile);
  13500. UIElement LoadLayout(VectorBuffer&);
  13501. UIElement LoadLayout(VectorBuffer&, XMLFile);
  13502. UIElement LoadLayout(XMLFile);
  13503. UIElement LoadLayout(XMLFile, XMLFile);
  13504. bool SaveLayout(File, UIElement);
  13505. bool SaveLayout(VectorBuffer&, UIElement);
  13506. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13507. void SetCustomSize(int, int);
  13508. void SetFocusElement(UIElement, bool = false);
  13509. void SetHeight(float);
  13510. void SetWidth(float);
  13511. const Array<UIElement> GetDragElements();
  13512. // Properties:
  13513. /* readonly */
  13514. String category;
  13515. String clipBoardText;
  13516. Cursor cursor;
  13517. /* readonly */
  13518. IntVector2 cursorPosition;
  13519. IntVector2 customSize;
  13520. float defaultToolTipDelay;
  13521. float doubleClickInterval;
  13522. int dragBeginDistance;
  13523. float dragBeginInterval;
  13524. UIElement focusElement;
  13525. FontHintLevel fontHintLevel;
  13526. int fontOversampling;
  13527. float fontSubpixelThreshold;
  13528. bool forceAutoHint;
  13529. /* readonly */
  13530. UIElement frontElement;
  13531. int maxFontTextureSize;
  13532. /* readonly */
  13533. UIElement modalRoot;
  13534. bool nonFocusedMouseWheel;
  13535. /* readonly */
  13536. int refs;
  13537. /* readonly */
  13538. UIElement root;
  13539. float scale;
  13540. /* readonly */
  13541. StringHash type;
  13542. /* readonly */
  13543. String typeName;
  13544. bool useMutableGlyphs;
  13545. bool useScreenKeyboard;
  13546. bool useSystemClipboard;
  13547. /* readonly */
  13548. int weakRefs;
  13549. };
  13550. class UIElement
  13551. {
  13552. public:
  13553. UIElement();
  13554. UIElement(const String&in);
  13555. // Methods:
  13556. void AddChild(UIElement);
  13557. void AddTag(const String&);
  13558. void AddTags(const String&, int8 = ';');
  13559. void ApplyAttributes();
  13560. void BringToFront();
  13561. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13562. void DisableLayoutUpdate();
  13563. IntVector2 ElementToScreen(const IntVector2&);
  13564. void EnableLayoutUpdate();
  13565. uint FindChild(UIElement) const;
  13566. Variant GetAttribute(const String&) const;
  13567. ValueAnimation GetAttributeAnimation(const String&) const;
  13568. float GetAttributeAnimationSpeed(const String&) const;
  13569. float GetAttributeAnimationTime(const String&) const;
  13570. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13571. Variant GetAttributeDefault(const String&) const;
  13572. UIElement GetChild(const String&, bool = false) const;
  13573. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13574. Array<UIElement> GetChildren(bool = false) const;
  13575. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13576. UIElement GetElementEventSender() const;
  13577. bool GetInterceptNetworkUpdate(const String&) const;
  13578. uint GetNumChildren(bool) const;
  13579. bool HasSubscribedToEvent(Object, const String&);
  13580. bool HasSubscribedToEvent(const String&);
  13581. bool HasTag(const String&) const;
  13582. void InsertChild(uint, UIElement);
  13583. bool IsInside(IntVector2, bool);
  13584. bool IsInsideCombined(IntVector2, bool);
  13585. bool Load(File, bool = false);
  13586. bool Load(VectorBuffer&, bool = false);
  13587. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13588. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13589. bool LoadJSON(const JSONValue&, bool = false);
  13590. bool LoadXML(File);
  13591. bool LoadXML(VectorBuffer&);
  13592. bool LoadXML(XMLFile, XMLFile);
  13593. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13594. bool LoadXML(const XMLElement&, bool = false);
  13595. void MarkNetworkUpdate() const;
  13596. void Remove();
  13597. void RemoveAllChildren();
  13598. void RemoveAllTags();
  13599. void RemoveAttributeAnimation(const String&);
  13600. void RemoveChild(UIElement, uint = 0);
  13601. void RemoveChild(uint);
  13602. void RemoveInstanceDefault();
  13603. void RemoveObjectAnimation();
  13604. bool RemoveTag(const String&);
  13605. void ResetDeepEnabled();
  13606. void ResetToDefault();
  13607. bool Save(File) const;
  13608. bool Save(VectorBuffer&) const;
  13609. bool SaveJSON(JSONValue&) const;
  13610. bool SaveXML(File, const String& = "\t");
  13611. bool SaveXML(VectorBuffer&, const String& = "\t");
  13612. bool SaveXML(XMLElement&) const;
  13613. IntVector2 ScreenToElement(const IntVector2&);
  13614. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13615. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13616. void SetAnimationTime(float);
  13617. bool SetAttribute(const String&, const Variant&);
  13618. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13619. void SetAttributeAnimationSpeed(const String&, float);
  13620. void SetAttributeAnimationTime(const String&, float);
  13621. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13622. void SetDeepEnabled(bool);
  13623. void SetEnabledRecursive(bool);
  13624. void SetFixedHeight(int);
  13625. void SetFixedSize(int, int);
  13626. void SetFixedWidth(int);
  13627. void SetInterceptNetworkUpdate(const String&, bool);
  13628. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13629. void SetMaxAnchor(float, float);
  13630. void SetMaxSize(int, int);
  13631. void SetMinAnchor(float, float);
  13632. void SetMinSize(int, int);
  13633. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13634. void SetPivot(float, float);
  13635. void SetPosition(int, int);
  13636. void SetSize(int, int);
  13637. bool SetStyle(const String&, XMLFile = null);
  13638. bool SetStyle(const XMLElement&);
  13639. bool SetStyleAuto(XMLFile = null);
  13640. void UpdateLayout();
  13641. const Variant& GetVar(const StringHash&);
  13642. // Properties:
  13643. bool animationEnabled;
  13644. /* readonly */
  13645. Array<Variant> attributeDefaults;
  13646. /* readonly */
  13647. Array<AttributeInfo> attributeInfos;
  13648. Array<Variant> attributes;
  13649. bool bringToBack;
  13650. bool bringToFront;
  13651. /* readonly */
  13652. String category;
  13653. /* readonly */
  13654. IntVector2 childOffset;
  13655. /* readonly */
  13656. Array<UIElement> children;
  13657. IntRect clipBorder;
  13658. bool clipChildren;
  13659. /* writeonly */
  13660. Color color;
  13661. /* readonly */
  13662. bool colorGradient;
  13663. Array<Color> colors;
  13664. /* readonly */
  13665. IntRect combinedScreenRect;
  13666. XMLFile defaultStyle;
  13667. /* readonly */
  13668. float derivedOpacity;
  13669. /* readonly */
  13670. uint dragButtonCombo;
  13671. /* readonly */
  13672. int dragButtonCount;
  13673. uint dragDropMode;
  13674. bool editable;
  13675. bool elementEventSender;
  13676. bool enableAnchor;
  13677. bool enabled;
  13678. /* readonly */
  13679. bool enabledSelf;
  13680. /* readonly */
  13681. bool fixedHeight;
  13682. /* readonly */
  13683. bool fixedSize;
  13684. /* readonly */
  13685. bool fixedWidth;
  13686. bool focus;
  13687. FocusMode focusMode;
  13688. int height;
  13689. HorizontalAlignment horizontalAlignment;
  13690. /* readonly */
  13691. bool hovering;
  13692. int indent;
  13693. int indentSpacing;
  13694. /* readonly */
  13695. int indentWidth;
  13696. bool internal;
  13697. IntRect layoutBorder;
  13698. Vector2 layoutFlexScale;
  13699. LayoutMode layoutMode;
  13700. int layoutSpacing;
  13701. Vector2 maxAnchor;
  13702. int maxHeight;
  13703. IntVector2 maxOffset;
  13704. IntVector2 maxSize;
  13705. int maxWidth;
  13706. Vector2 minAnchor;
  13707. int minHeight;
  13708. IntVector2 minOffset;
  13709. IntVector2 minSize;
  13710. int minWidth;
  13711. String name;
  13712. /* readonly */
  13713. uint numAllChildren;
  13714. /* readonly */
  13715. uint numAttributes;
  13716. /* readonly */
  13717. uint numChildren;
  13718. ObjectAnimation objectAnimation;
  13719. float opacity;
  13720. UIElement parent;
  13721. Vector2 pivot;
  13722. IntVector2 position;
  13723. int priority;
  13724. /* readonly */
  13725. int refs;
  13726. /* readonly */
  13727. UIElement root;
  13728. /* readonly */
  13729. IntVector2 screenPosition;
  13730. bool selected;
  13731. IntVector2 size;
  13732. bool sortChildren;
  13733. String style;
  13734. /* readonly */
  13735. Array<String> tags;
  13736. bool temporary;
  13737. TraversalMode traversalMode;
  13738. /* readonly */
  13739. StringHash type;
  13740. /* readonly */
  13741. String typeName;
  13742. bool useDerivedOpacity;
  13743. /* readonly */
  13744. VariantMap vars;
  13745. VerticalAlignment verticalAlignment;
  13746. bool visible;
  13747. /* readonly */
  13748. bool visibleEffective;
  13749. /* readonly */
  13750. int weakRefs;
  13751. int width;
  13752. };
  13753. class ValueAnimation
  13754. {
  13755. public:
  13756. ValueAnimation();
  13757. ValueAnimation(const String&in);
  13758. // Methods:
  13759. bool HasSubscribedToEvent(Object, const String&);
  13760. bool HasSubscribedToEvent(const String&);
  13761. bool Load(File);
  13762. bool Load(VectorBuffer&);
  13763. bool Load(const String&);
  13764. bool Save(File) const;
  13765. bool Save(VectorBuffer&) const;
  13766. bool Save(const String&) const;
  13767. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13768. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  13769. void SetKeyFrame(float, const Variant&);
  13770. // Properties:
  13771. /* readonly */
  13772. String category;
  13773. InterpMethod interpolationMethod;
  13774. /* readonly */
  13775. uint memoryUse;
  13776. String name;
  13777. /* readonly */
  13778. int refs;
  13779. float splineTension;
  13780. /* readonly */
  13781. StringHash type;
  13782. /* readonly */
  13783. String typeName;
  13784. /* readonly */
  13785. uint useTimer;
  13786. VariantType valueType;
  13787. /* readonly */
  13788. int weakRefs;
  13789. };
  13790. class Variant
  13791. {
  13792. public:
  13793. ~Variant();
  13794. Variant();
  13795. Variant(const Variant&in);
  13796. Variant(int);
  13797. Variant(uint);
  13798. Variant(int64);
  13799. Variant(uint64);
  13800. Variant(const StringHash&in);
  13801. Variant(bool);
  13802. Variant(float);
  13803. Variant(double);
  13804. Variant(const Vector2&in);
  13805. Variant(const Vector3&in);
  13806. Variant(const Vector4&in);
  13807. Variant(const Quaternion&in);
  13808. Variant(const Color&in);
  13809. Variant(const String&in);
  13810. Variant(const ResourceRef&in);
  13811. Variant(const ResourceRefList&in);
  13812. Variant(const Variant[]@);
  13813. Variant(const String[]@);
  13814. Variant(const VariantMap&in);
  13815. Variant(const Rect&in);
  13816. Variant(const IntRect&in);
  13817. Variant(const IntVector2&in);
  13818. Variant(const IntVector3&in);
  13819. Variant(RefCounted@);
  13820. Variant(ScriptObject@);
  13821. Variant(const Matrix3&in);
  13822. Variant(const Matrix3x4&in);
  13823. Variant(const Matrix4&in);
  13824. Variant(const String&in, const String&in);
  13825. Variant(VariantType, const String&in);
  13826. Variant(const VectorBuffer&in);
  13827. // Methods:
  13828. void Clear();
  13829. const Color& GetColor() const;
  13830. void FromString(VariantType, const String&);
  13831. void FromString(const String&, const String&);
  13832. bool GetBool() const;
  13833. VectorBuffer GetBuffer() const;
  13834. double GetDouble() const;
  13835. float GetFloat() const;
  13836. int GetInt() const;
  13837. int GetInt64() const;
  13838. RefCounted GetPtr() const;
  13839. ScriptObject GetScriptObject() const;
  13840. StringHash GetStringHash() const;
  13841. Array<String> GetStringVector() const;
  13842. uint GetUInt() const;
  13843. uint64 GetUInt64() const;
  13844. Array<Variant> GetVariantVector() const;
  13845. const IntRect& GetIntRect() const;
  13846. const IntVector2& GetIntVector2() const;
  13847. const IntVector3& GetIntVector3() const;
  13848. const Matrix3& GetMatrix3() const;
  13849. const Matrix3x4& GetMatrix3x4() const;
  13850. const Matrix4& GetMatrix4() const;
  13851. const Quaternion& GetQuaternion() const;
  13852. const Rect& GetRect() const;
  13853. const ResourceRef& GetResourceRef() const;
  13854. const ResourceRefList& GetResourceRefList() const;
  13855. const String& GetString() const;
  13856. String ToString() const;
  13857. const VariantMap& GetVariantMap() const;
  13858. const Vector2& GetVector2() const;
  13859. const Vector3& GetVector3() const;
  13860. const Vector4& GetVector4() const;
  13861. // Properties:
  13862. /* readonly */
  13863. bool empty;
  13864. /* readonly */
  13865. VariantType type;
  13866. /* readonly */
  13867. String typeName;
  13868. /* readonly */
  13869. bool zero;
  13870. };
  13871. class VariantMap
  13872. {
  13873. public:
  13874. ~VariantMap();
  13875. VariantMap();
  13876. VariantMap(const VariantMap&in);
  13877. // Methods:
  13878. void Clear();
  13879. bool Contains(StringHash) const;
  13880. bool Contains(const String&) const;
  13881. bool Erase(StringHash);
  13882. bool Erase(const String&);
  13883. // Properties:
  13884. /* readonly */
  13885. Array<StringHash> keys;
  13886. /* readonly */
  13887. uint length;
  13888. /* readonly */
  13889. Array<Variant> values;
  13890. };
  13891. class Vector2
  13892. {
  13893. public:
  13894. Vector2();
  13895. Vector2(const Vector2&in);
  13896. Vector2(const IntVector2&in);
  13897. Vector2(float, float);
  13898. Vector2(float[]&inout);
  13899. // Methods:
  13900. Vector2 Abs() const;
  13901. float AbsDotProduct(const Vector2&) const;
  13902. float Angle(const Vector2&) const;
  13903. float DotProduct(const Vector2&) const;
  13904. bool Equals(const Vector2&) const;
  13905. bool IsNaN() const;
  13906. Vector2 Lerp(const Vector2&, float) const;
  13907. void Normalize();
  13908. Vector2 Normalized() const;
  13909. float ProjectOntoAxis(const Vector2&) const;
  13910. String ToString() const;
  13911. // Properties:
  13912. /* readonly */
  13913. Array<float> data;
  13914. /* readonly */
  13915. float length;
  13916. /* readonly */
  13917. float lengthSquared;
  13918. float x;
  13919. float y;
  13920. // Constants:
  13921. static const Vector2 DOWN;
  13922. static const Vector2 LEFT;
  13923. static const Vector2 ONE;
  13924. static const Vector2 RIGHT;
  13925. static const Vector2 UP;
  13926. static const Vector2 ZERO;
  13927. };
  13928. class Vector3
  13929. {
  13930. public:
  13931. Vector3();
  13932. Vector3(const Vector3&in);
  13933. Vector3(const Vector2&in, float);
  13934. Vector3(const Vector2&in);
  13935. Vector3(const IntVector3&in);
  13936. Vector3(float, float, float);
  13937. Vector3(float, float);
  13938. Vector3(float[]&inout);
  13939. // Methods:
  13940. Vector3 Abs() const;
  13941. float AbsDotProduct(const Vector3&) const;
  13942. float Angle(const Vector3&) const;
  13943. Vector3 CrossProduct(const Vector3&) const;
  13944. float DotProduct(const Vector3&) const;
  13945. bool Equals(const Vector3&) const;
  13946. bool IsNaN() const;
  13947. Vector3 Lerp(const Vector3&, float) const;
  13948. void Normalize();
  13949. Vector3 Normalized() const;
  13950. Vector3 Orthogonalize(const Vector3&) const;
  13951. float ProjectOntoAxis(const Vector3&) const;
  13952. String ToString() const;
  13953. // Properties:
  13954. /* readonly */
  13955. Array<float> data;
  13956. /* readonly */
  13957. float length;
  13958. /* readonly */
  13959. float lengthSquared;
  13960. float x;
  13961. float y;
  13962. float z;
  13963. // Constants:
  13964. static const Vector3 BACK;
  13965. static const Vector3 DOWN;
  13966. static const Vector3 FORWARD;
  13967. static const Vector3 LEFT;
  13968. static const Vector3 ONE;
  13969. static const Vector3 RIGHT;
  13970. static const Vector3 UP;
  13971. static const Vector3 ZERO;
  13972. };
  13973. class Vector4
  13974. {
  13975. public:
  13976. Vector4();
  13977. Vector4(const Vector4&in);
  13978. Vector4(float, float, float, float);
  13979. Vector4(const Vector3&in, float);
  13980. Vector4(float[]&inout);
  13981. // Methods:
  13982. Vector4 Abs() const;
  13983. float AbsDotProduct(const Vector4&) const;
  13984. float DotProduct(const Vector4&) const;
  13985. bool Equals(const Vector4&) const;
  13986. bool IsNaN() const;
  13987. Vector4 Lerp(const Vector4&, float) const;
  13988. float ProjectOntoAxis(const Vector3&) const;
  13989. String ToString() const;
  13990. // Properties:
  13991. /* readonly */
  13992. Array<float> data;
  13993. float w;
  13994. float x;
  13995. float y;
  13996. float z;
  13997. };
  13998. class VectorBuffer
  13999. {
  14000. public:
  14001. ~VectorBuffer();
  14002. VectorBuffer();
  14003. VectorBuffer(const VectorBuffer&in);
  14004. VectorBuffer(Deserializer@, uint);
  14005. // Methods:
  14006. void Clear();
  14007. Array<uint8> Read(uint);
  14008. bool ReadBool();
  14009. BoundingBox ReadBoundingBox();
  14010. int8 ReadByte();
  14011. Color ReadColor();
  14012. double ReadDouble();
  14013. String ReadFileID();
  14014. float ReadFloat();
  14015. int ReadInt();
  14016. int64 ReadInt64();
  14017. IntRect ReadIntRect();
  14018. IntVector2 ReadIntVector2();
  14019. String ReadLine();
  14020. Matrix3 ReadMatrix3();
  14021. Matrix3x4 ReadMatrix3x4();
  14022. Matrix4 ReadMatrix4();
  14023. uint ReadNetID();
  14024. Quaternion ReadPackedQuaternion();
  14025. Vector3 ReadPackedVector3(float);
  14026. Quaternion ReadQuaternion();
  14027. int16 ReadShort();
  14028. String ReadString();
  14029. StringHash ReadStringHash();
  14030. uint8 ReadUByte();
  14031. uint ReadUInt();
  14032. uint64 ReadUInt64();
  14033. uint16 ReadUShort();
  14034. uint ReadVLE();
  14035. Variant ReadVariant();
  14036. VariantMap ReadVariantMap();
  14037. Vector2 ReadVector2();
  14038. Vector3 ReadVector3();
  14039. Vector4 ReadVector4();
  14040. VectorBuffer ReadVectorBuffer(uint);
  14041. void Resize(uint);
  14042. uint Seek(uint);
  14043. void SetData(Deserializer, uint);
  14044. uint Write(Array<uint8>);
  14045. bool WriteBool(bool);
  14046. bool WriteBoundingBox(const BoundingBox&);
  14047. bool WriteByte(int8);
  14048. bool WriteColor(const Color&);
  14049. bool WriteDouble(double);
  14050. bool WriteFileID(const String&);
  14051. bool WriteFloat(float);
  14052. bool WriteInt(int);
  14053. bool WriteInt64(int64);
  14054. bool WriteIntRect(const IntRect&);
  14055. bool WriteIntVector2(const IntVector2&);
  14056. bool WriteLine(const String&);
  14057. bool WriteMatrix3(const Matrix3&);
  14058. bool WriteMatrix3x4(const Matrix3x4&);
  14059. bool WriteMatrix4(const Matrix4&);
  14060. bool WriteNetID(uint);
  14061. bool WritePackedQuaternion(const Quaternion&);
  14062. bool WritePackedVector3(const Vector3&, float);
  14063. bool WriteQuaternion(const Quaternion&);
  14064. bool WriteShort(int16);
  14065. bool WriteString(const String&);
  14066. bool WriteStringHash(const StringHash&);
  14067. bool WriteUByte(uint8);
  14068. bool WriteUInt(uint);
  14069. bool WriteUInt64(uint64);
  14070. bool WriteUShort(uint16);
  14071. bool WriteVLE(uint);
  14072. bool WriteVariant(const Variant&);
  14073. bool WriteVariantMap(const VariantMap&);
  14074. bool WriteVector2(const Vector2&);
  14075. bool WriteVector3(const Vector3&);
  14076. bool WriteVector4(const Vector4&);
  14077. bool WriteVectorBuffer(const VectorBuffer&);
  14078. // Properties:
  14079. /* readonly */
  14080. uint checksum;
  14081. /* readonly */
  14082. bool eof;
  14083. /* readonly */
  14084. String name;
  14085. /* readonly */
  14086. uint position;
  14087. /* readonly */
  14088. uint size;
  14089. };
  14090. class VertexBuffer
  14091. {
  14092. public:
  14093. VertexBuffer();
  14094. // Methods:
  14095. VectorBuffer GetData() const;
  14096. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  14097. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14098. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  14099. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14100. bool HasSubscribedToEvent(Object, const String&);
  14101. bool HasSubscribedToEvent(const String&);
  14102. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14103. bool SetData(VectorBuffer&);
  14104. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  14105. void SetSize(uint, Array<VertexElement>, bool = false);
  14106. void SetSize(uint, uint, bool = false);
  14107. // Properties:
  14108. /* readonly */
  14109. String category;
  14110. /* readonly */
  14111. bool dynamic;
  14112. /* readonly */
  14113. uint elementMask;
  14114. /* readonly */
  14115. Array<VertexElement> elements;
  14116. /* readonly */
  14117. int refs;
  14118. bool shadowed;
  14119. /* readonly */
  14120. StringHash type;
  14121. /* readonly */
  14122. String typeName;
  14123. /* readonly */
  14124. uint vertexCount;
  14125. /* readonly */
  14126. uint vertexSize;
  14127. /* readonly */
  14128. int weakRefs;
  14129. };
  14130. class VertexElement
  14131. {
  14132. public:
  14133. ~VertexElement();
  14134. VertexElement();
  14135. VertexElement(const VertexElement&in);
  14136. VertexElement(VertexElementType, VertexElementSemantic, uint8 index = 0, bool perInstance = false);
  14137. // Properties:
  14138. uint8 index;
  14139. uint offset;
  14140. bool perInstance;
  14141. VertexElementSemantic semantic;
  14142. VertexElementType type;
  14143. };
  14144. class View3D
  14145. {
  14146. public:
  14147. View3D();
  14148. View3D(const String&in);
  14149. // Methods:
  14150. void AddChild(UIElement);
  14151. void AddTag(const String&);
  14152. void AddTags(const String&, int8 = ';');
  14153. void ApplyAttributes();
  14154. void BringToFront();
  14155. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14156. void DisableLayoutUpdate();
  14157. IntVector2 ElementToScreen(const IntVector2&);
  14158. void EnableLayoutUpdate();
  14159. uint FindChild(UIElement) const;
  14160. Variant GetAttribute(const String&) const;
  14161. ValueAnimation GetAttributeAnimation(const String&) const;
  14162. float GetAttributeAnimationSpeed(const String&) const;
  14163. float GetAttributeAnimationTime(const String&) const;
  14164. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14165. Variant GetAttributeDefault(const String&) const;
  14166. UIElement GetChild(const String&, bool = false) const;
  14167. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14168. Array<UIElement> GetChildren(bool = false) const;
  14169. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14170. UIElement GetElementEventSender() const;
  14171. bool GetInterceptNetworkUpdate(const String&) const;
  14172. uint GetNumChildren(bool) const;
  14173. bool HasSubscribedToEvent(Object, const String&);
  14174. bool HasSubscribedToEvent(const String&);
  14175. bool HasTag(const String&) const;
  14176. void InsertChild(uint, UIElement);
  14177. bool IsInside(IntVector2, bool);
  14178. bool IsInsideCombined(IntVector2, bool);
  14179. bool Load(File, bool = false);
  14180. bool Load(VectorBuffer&, bool = false);
  14181. UIElement LoadChildXML(XMLFile, XMLFile = null);
  14182. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  14183. bool LoadJSON(const JSONValue&, bool = false);
  14184. bool LoadXML(File);
  14185. bool LoadXML(VectorBuffer&);
  14186. bool LoadXML(XMLFile, XMLFile);
  14187. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  14188. bool LoadXML(const XMLElement&, bool = false);
  14189. void MarkNetworkUpdate() const;
  14190. void QueueUpdate();
  14191. void Remove();
  14192. void RemoveAllChildren();
  14193. void RemoveAllTags();
  14194. void RemoveAttributeAnimation(const String&);
  14195. void RemoveChild(UIElement, uint = 0);
  14196. void RemoveChild(uint);
  14197. void RemoveInstanceDefault();
  14198. void RemoveObjectAnimation();
  14199. bool RemoveTag(const String&);
  14200. void ResetDeepEnabled();
  14201. void ResetToDefault();
  14202. bool Save(File) const;
  14203. bool Save(VectorBuffer&) const;
  14204. bool SaveJSON(JSONValue&) const;
  14205. bool SaveXML(File, const String& = "\t");
  14206. bool SaveXML(VectorBuffer&, const String& = "\t");
  14207. bool SaveXML(XMLElement&) const;
  14208. IntVector2 ScreenToElement(const IntVector2&);
  14209. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14210. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14211. void SetAnimationTime(float);
  14212. bool SetAttribute(const String&, const Variant&);
  14213. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14214. void SetAttributeAnimationSpeed(const String&, float);
  14215. void SetAttributeAnimationTime(const String&, float);
  14216. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14217. void SetDeepEnabled(bool);
  14218. void SetEnabledRecursive(bool);
  14219. void SetFixedHeight(int);
  14220. void SetFixedSize(int, int);
  14221. void SetFixedWidth(int);
  14222. void SetFullImageRect();
  14223. void SetHoverOffset(int, int);
  14224. void SetInterceptNetworkUpdate(const String&, bool);
  14225. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14226. void SetMaxAnchor(float, float);
  14227. void SetMaxSize(int, int);
  14228. void SetMinAnchor(float, float);
  14229. void SetMinSize(int, int);
  14230. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14231. void SetPivot(float, float);
  14232. void SetPosition(int, int);
  14233. void SetSize(int, int);
  14234. bool SetStyle(const String&, XMLFile = null);
  14235. bool SetStyle(const XMLElement&);
  14236. bool SetStyleAuto(XMLFile = null);
  14237. void SetView(Scene, Camera, bool = true);
  14238. void UpdateLayout();
  14239. const Variant& GetVar(const StringHash&);
  14240. // Properties:
  14241. bool animationEnabled;
  14242. /* readonly */
  14243. Array<Variant> attributeDefaults;
  14244. /* readonly */
  14245. Array<AttributeInfo> attributeInfos;
  14246. Array<Variant> attributes;
  14247. bool autoUpdate;
  14248. BlendMode blendMode;
  14249. IntRect border;
  14250. bool bringToBack;
  14251. bool bringToFront;
  14252. /* readonly */
  14253. Node cameraNode;
  14254. /* readonly */
  14255. String category;
  14256. /* readonly */
  14257. IntVector2 childOffset;
  14258. /* readonly */
  14259. Array<UIElement> children;
  14260. IntRect clipBorder;
  14261. bool clipChildren;
  14262. /* writeonly */
  14263. Color color;
  14264. /* readonly */
  14265. bool colorGradient;
  14266. Array<Color> colors;
  14267. /* readonly */
  14268. IntRect combinedScreenRect;
  14269. XMLFile defaultStyle;
  14270. /* readonly */
  14271. Texture2D depthTexture;
  14272. /* readonly */
  14273. float derivedOpacity;
  14274. /* readonly */
  14275. uint dragButtonCombo;
  14276. /* readonly */
  14277. int dragButtonCount;
  14278. uint dragDropMode;
  14279. bool editable;
  14280. bool elementEventSender;
  14281. bool enableAnchor;
  14282. bool enabled;
  14283. /* readonly */
  14284. bool enabledSelf;
  14285. /* readonly */
  14286. bool fixedHeight;
  14287. bool fixedHeightResizing;
  14288. /* readonly */
  14289. bool fixedSize;
  14290. /* readonly */
  14291. bool fixedWidth;
  14292. bool fixedWidthResizing;
  14293. bool focus;
  14294. FocusMode focusMode;
  14295. uint format;
  14296. int height;
  14297. HorizontalAlignment horizontalAlignment;
  14298. IntVector2 hoverOffset;
  14299. /* readonly */
  14300. bool hovering;
  14301. IntRect imageBorder;
  14302. IntRect imageRect;
  14303. int indent;
  14304. int indentSpacing;
  14305. /* readonly */
  14306. int indentWidth;
  14307. bool internal;
  14308. IntRect layoutBorder;
  14309. Vector2 layoutFlexScale;
  14310. LayoutMode layoutMode;
  14311. int layoutSpacing;
  14312. Vector2 maxAnchor;
  14313. int maxHeight;
  14314. IntVector2 maxOffset;
  14315. IntVector2 maxSize;
  14316. int maxWidth;
  14317. Vector2 minAnchor;
  14318. int minHeight;
  14319. IntVector2 minOffset;
  14320. IntVector2 minSize;
  14321. int minWidth;
  14322. bool modal;
  14323. bool modalAutoDismiss;
  14324. Color modalFrameColor;
  14325. IntVector2 modalFrameSize;
  14326. Color modalShadeColor;
  14327. bool movable;
  14328. String name;
  14329. /* readonly */
  14330. uint numAllChildren;
  14331. /* readonly */
  14332. uint numAttributes;
  14333. /* readonly */
  14334. uint numChildren;
  14335. ObjectAnimation objectAnimation;
  14336. float opacity;
  14337. UIElement parent;
  14338. Vector2 pivot;
  14339. IntVector2 position;
  14340. int priority;
  14341. /* readonly */
  14342. int refs;
  14343. /* readonly */
  14344. Texture2D renderTexture;
  14345. bool resizable;
  14346. IntRect resizeBorder;
  14347. /* readonly */
  14348. UIElement root;
  14349. /* readonly */
  14350. Scene scene;
  14351. /* readonly */
  14352. IntVector2 screenPosition;
  14353. bool selected;
  14354. IntVector2 size;
  14355. bool sortChildren;
  14356. String style;
  14357. /* readonly */
  14358. Array<String> tags;
  14359. bool temporary;
  14360. Texture texture;
  14361. bool tiled;
  14362. TraversalMode traversalMode;
  14363. /* readonly */
  14364. StringHash type;
  14365. /* readonly */
  14366. String typeName;
  14367. bool useDerivedOpacity;
  14368. /* readonly */
  14369. VariantMap vars;
  14370. VerticalAlignment verticalAlignment;
  14371. /* readonly */
  14372. Viewport viewport;
  14373. bool visible;
  14374. /* readonly */
  14375. bool visibleEffective;
  14376. /* readonly */
  14377. int weakRefs;
  14378. int width;
  14379. };
  14380. class Viewport
  14381. {
  14382. public:
  14383. Viewport();
  14384. Viewport(Scene&, Camera&, RenderPath& renderPath = null);
  14385. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& renderPath = null);
  14386. // Methods:
  14387. Ray GetScreenRay(int, int) const;
  14388. bool HasSubscribedToEvent(Object, const String&);
  14389. bool HasSubscribedToEvent(const String&);
  14390. Vector3 ScreenToWorldPoint(int, int, float) const;
  14391. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14392. void SetRenderPath(XMLFile);
  14393. IntVector2 WorldToScreenPoint(const Vector3&) const;
  14394. // Properties:
  14395. Camera camera;
  14396. /* readonly */
  14397. String category;
  14398. Camera cullCamera;
  14399. bool drawDebug;
  14400. IntRect rect;
  14401. /* readonly */
  14402. int refs;
  14403. RenderPath renderPath;
  14404. Scene scene;
  14405. /* readonly */
  14406. StringHash type;
  14407. /* readonly */
  14408. String typeName;
  14409. /* readonly */
  14410. int weakRefs;
  14411. };
  14412. class WeakHandle
  14413. {
  14414. public:
  14415. ~WeakHandle();
  14416. WeakHandle();
  14417. WeakHandle(const WeakHandle&in);
  14418. WeakHandle(RefCounted@);
  14419. // Methods:
  14420. RefCounted Get() const;
  14421. // Properties:
  14422. /* readonly */
  14423. bool expired;
  14424. /* readonly */
  14425. int refs;
  14426. /* readonly */
  14427. int weakRefs;
  14428. };
  14429. class Window
  14430. {
  14431. public:
  14432. Window();
  14433. Window(const String&in);
  14434. // Methods:
  14435. void AddChild(UIElement);
  14436. void AddTag(const String&);
  14437. void AddTags(const String&, int8 = ';');
  14438. void ApplyAttributes();
  14439. void BringToFront();
  14440. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14441. void DisableLayoutUpdate();
  14442. IntVector2 ElementToScreen(const IntVector2&);
  14443. void EnableLayoutUpdate();
  14444. uint FindChild(UIElement) const;
  14445. Variant GetAttribute(const String&) const;
  14446. ValueAnimation GetAttributeAnimation(const String&) const;
  14447. float GetAttributeAnimationSpeed(const String&) const;
  14448. float GetAttributeAnimationTime(const String&) const;
  14449. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14450. Variant GetAttributeDefault(const String&) const;
  14451. UIElement GetChild(const String&, bool = false) const;
  14452. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14453. Array<UIElement> GetChildren(bool = false) const;
  14454. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14455. UIElement GetElementEventSender() const;
  14456. bool GetInterceptNetworkUpdate(const String&) const;
  14457. uint GetNumChildren(bool) const;
  14458. bool HasSubscribedToEvent(Object, const String&);
  14459. bool HasSubscribedToEvent(const String&);
  14460. bool HasTag(const String&) const;
  14461. void InsertChild(uint, UIElement);
  14462. bool IsInside(IntVector2, bool);
  14463. bool IsInsideCombined(IntVector2, bool);
  14464. bool Load(File, bool = false);
  14465. bool Load(VectorBuffer&, bool = false);
  14466. UIElement LoadChildXML(XMLFile, XMLFile = null);
  14467. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  14468. bool LoadJSON(const JSONValue&, bool = false);
  14469. bool LoadXML(File);
  14470. bool LoadXML(VectorBuffer&);
  14471. bool LoadXML(XMLFile, XMLFile);
  14472. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  14473. bool LoadXML(const XMLElement&, bool = false);
  14474. void MarkNetworkUpdate() const;
  14475. void Remove();
  14476. void RemoveAllChildren();
  14477. void RemoveAllTags();
  14478. void RemoveAttributeAnimation(const String&);
  14479. void RemoveChild(UIElement, uint = 0);
  14480. void RemoveChild(uint);
  14481. void RemoveInstanceDefault();
  14482. void RemoveObjectAnimation();
  14483. bool RemoveTag(const String&);
  14484. void ResetDeepEnabled();
  14485. void ResetToDefault();
  14486. bool Save(File) const;
  14487. bool Save(VectorBuffer&) const;
  14488. bool SaveJSON(JSONValue&) const;
  14489. bool SaveXML(File, const String& = "\t");
  14490. bool SaveXML(VectorBuffer&, const String& = "\t");
  14491. bool SaveXML(XMLElement&) const;
  14492. IntVector2 ScreenToElement(const IntVector2&);
  14493. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14494. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14495. void SetAnimationTime(float);
  14496. bool SetAttribute(const String&, const Variant&);
  14497. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14498. void SetAttributeAnimationSpeed(const String&, float);
  14499. void SetAttributeAnimationTime(const String&, float);
  14500. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14501. void SetDeepEnabled(bool);
  14502. void SetEnabledRecursive(bool);
  14503. void SetFixedHeight(int);
  14504. void SetFixedSize(int, int);
  14505. void SetFixedWidth(int);
  14506. void SetFullImageRect();
  14507. void SetHoverOffset(int, int);
  14508. void SetInterceptNetworkUpdate(const String&, bool);
  14509. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14510. void SetMaxAnchor(float, float);
  14511. void SetMaxSize(int, int);
  14512. void SetMinAnchor(float, float);
  14513. void SetMinSize(int, int);
  14514. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14515. void SetPivot(float, float);
  14516. void SetPosition(int, int);
  14517. void SetSize(int, int);
  14518. bool SetStyle(const String&, XMLFile = null);
  14519. bool SetStyle(const XMLElement&);
  14520. bool SetStyleAuto(XMLFile = null);
  14521. void UpdateLayout();
  14522. const Variant& GetVar(const StringHash&);
  14523. // Properties:
  14524. bool animationEnabled;
  14525. /* readonly */
  14526. Array<Variant> attributeDefaults;
  14527. /* readonly */
  14528. Array<AttributeInfo> attributeInfos;
  14529. Array<Variant> attributes;
  14530. BlendMode blendMode;
  14531. IntRect border;
  14532. bool bringToBack;
  14533. bool bringToFront;
  14534. /* readonly */
  14535. String category;
  14536. /* readonly */
  14537. IntVector2 childOffset;
  14538. /* readonly */
  14539. Array<UIElement> children;
  14540. IntRect clipBorder;
  14541. bool clipChildren;
  14542. /* writeonly */
  14543. Color color;
  14544. /* readonly */
  14545. bool colorGradient;
  14546. Array<Color> colors;
  14547. /* readonly */
  14548. IntRect combinedScreenRect;
  14549. XMLFile defaultStyle;
  14550. /* readonly */
  14551. float derivedOpacity;
  14552. /* readonly */
  14553. uint dragButtonCombo;
  14554. /* readonly */
  14555. int dragButtonCount;
  14556. uint dragDropMode;
  14557. bool editable;
  14558. bool elementEventSender;
  14559. bool enableAnchor;
  14560. bool enabled;
  14561. /* readonly */
  14562. bool enabledSelf;
  14563. /* readonly */
  14564. bool fixedHeight;
  14565. bool fixedHeightResizing;
  14566. /* readonly */
  14567. bool fixedSize;
  14568. /* readonly */
  14569. bool fixedWidth;
  14570. bool fixedWidthResizing;
  14571. bool focus;
  14572. FocusMode focusMode;
  14573. int height;
  14574. HorizontalAlignment horizontalAlignment;
  14575. IntVector2 hoverOffset;
  14576. /* readonly */
  14577. bool hovering;
  14578. IntRect imageBorder;
  14579. IntRect imageRect;
  14580. int indent;
  14581. int indentSpacing;
  14582. /* readonly */
  14583. int indentWidth;
  14584. bool internal;
  14585. IntRect layoutBorder;
  14586. Vector2 layoutFlexScale;
  14587. LayoutMode layoutMode;
  14588. int layoutSpacing;
  14589. Vector2 maxAnchor;
  14590. int maxHeight;
  14591. IntVector2 maxOffset;
  14592. IntVector2 maxSize;
  14593. int maxWidth;
  14594. Vector2 minAnchor;
  14595. int minHeight;
  14596. IntVector2 minOffset;
  14597. IntVector2 minSize;
  14598. int minWidth;
  14599. bool modal;
  14600. bool modalAutoDismiss;
  14601. Color modalFrameColor;
  14602. IntVector2 modalFrameSize;
  14603. Color modalShadeColor;
  14604. bool movable;
  14605. String name;
  14606. /* readonly */
  14607. uint numAllChildren;
  14608. /* readonly */
  14609. uint numAttributes;
  14610. /* readonly */
  14611. uint numChildren;
  14612. ObjectAnimation objectAnimation;
  14613. float opacity;
  14614. UIElement parent;
  14615. Vector2 pivot;
  14616. IntVector2 position;
  14617. int priority;
  14618. /* readonly */
  14619. int refs;
  14620. bool resizable;
  14621. IntRect resizeBorder;
  14622. /* readonly */
  14623. UIElement root;
  14624. /* readonly */
  14625. IntVector2 screenPosition;
  14626. bool selected;
  14627. IntVector2 size;
  14628. bool sortChildren;
  14629. String style;
  14630. /* readonly */
  14631. Array<String> tags;
  14632. bool temporary;
  14633. Texture texture;
  14634. bool tiled;
  14635. TraversalMode traversalMode;
  14636. /* readonly */
  14637. StringHash type;
  14638. /* readonly */
  14639. String typeName;
  14640. bool useDerivedOpacity;
  14641. /* readonly */
  14642. VariantMap vars;
  14643. VerticalAlignment verticalAlignment;
  14644. bool visible;
  14645. /* readonly */
  14646. bool visibleEffective;
  14647. /* readonly */
  14648. int weakRefs;
  14649. int width;
  14650. };
  14651. class XMLElement
  14652. {
  14653. public:
  14654. ~XMLElement();
  14655. XMLElement();
  14656. XMLElement(const XMLElement&in);
  14657. // Methods:
  14658. XMLElement CreateChild(const String&);
  14659. String GetAttribute(const String& = String ( )) const;
  14660. String GetAttributeLower(const String&) const;
  14661. Array<String> GetAttributeNames() const;
  14662. String GetAttributeUpper(const String&) const;
  14663. bool GetBool(const String&) const;
  14664. BoundingBox GetBoundingBox() const;
  14665. XMLElement GetChild(const String& = String ( )) const;
  14666. Color GetColor(const String&) const;
  14667. double GetDouble(const String&) const;
  14668. float GetFloat(const String&) const;
  14669. int GetInt(const String&) const;
  14670. int64 GetInt64(const String&) const;
  14671. IntRect GetIntRect(const String&) const;
  14672. IntVector2 GetIntVector2(const String&) const;
  14673. IntVector3 GetIntVector3(const String&) const;
  14674. Matrix3 GetMatrix3(const String&) const;
  14675. Matrix3x4 GetMatrix3x4(const String&) const;
  14676. Matrix4 GetMatrix4(const String&) const;
  14677. XMLElement GetNext(const String& = String ( )) const;
  14678. XMLElement GetOrCreateChild(const String&);
  14679. Quaternion GetQuaternion(const String&) const;
  14680. ResourceRef GetResourceRef() const;
  14681. ResourceRefList GetResourceRefList() const;
  14682. uint GetUInt(const String&) const;
  14683. uint64 GetUInt64(const String&) const;
  14684. String GetValue() const;
  14685. Variant GetVariant() const;
  14686. VariantMap GetVariantMap() const;
  14687. Array<Variant> GetVariantVector() const;
  14688. Vector2 GetVector2(const String&) const;
  14689. Vector3 GetVector3(const String&) const;
  14690. Vector4 GetVector4(const String&) const;
  14691. Variant GetVectorVariant(const String&) const;
  14692. bool HasAttribute(const String&) const;
  14693. bool HasChild(const String&) const;
  14694. bool RemoveAttribute(const String& = String ( ));
  14695. bool RemoveChild(const String&);
  14696. bool RemoveChild(const XMLElement&);
  14697. bool RemoveChildren(const String& = String ( ));
  14698. XPathResultSet Select(const String&);
  14699. XPathResultSet SelectPrepared(const XPathQuery&);
  14700. XMLElement SelectSingle(const String&);
  14701. XMLElement SelectSinglePrepared(const XPathQuery&);
  14702. bool SetAttribute(const String&);
  14703. bool SetAttribute(const String&, const String&);
  14704. bool SetBool(const String&, bool);
  14705. bool SetBoundingBox(const BoundingBox&);
  14706. bool SetColor(const String&, const Color&);
  14707. bool SetDouble(const String&, double);
  14708. bool SetFloat(const String&, float);
  14709. bool SetInt(const String&, int);
  14710. bool SetInt64(const String&, int64);
  14711. bool SetIntRect(const String&, const IntRect&);
  14712. bool SetIntVector2(const String&, const IntVector2&);
  14713. bool SetIntVector3(const String&, const IntVector3&);
  14714. bool SetMatrix3(const String&, const Matrix3&);
  14715. bool SetMatrix3x4(const String&, const Matrix3x4&);
  14716. bool SetMatrix4(const String&, const Matrix4&);
  14717. bool SetQuaternion(const String&, const Quaternion&);
  14718. bool SetResourceRef(const String&, const ResourceRef&);
  14719. bool SetResourceRefList(const String&, const ResourceRefList&);
  14720. bool SetUInt(const String&, uint);
  14721. bool SetUInt64(const String&, uint64);
  14722. bool SetValue(const String&);
  14723. bool SetVariant(const Variant&);
  14724. bool SetVariantMap(const VariantMap&);
  14725. bool SetVariantVector(Array<Variant>);
  14726. bool SetVector2(const String&, const Vector2&);
  14727. bool SetVector3(const String&, const Vector3&);
  14728. bool SetVector4(const String&, const Vector4&);
  14729. bool SetVectorVariant(const String&, const Variant&);
  14730. // Properties:
  14731. /* readonly */
  14732. XMLFile file;
  14733. /* readonly */
  14734. bool isNull;
  14735. /* readonly */
  14736. String name;
  14737. /* readonly */
  14738. XMLElement nextResult;
  14739. /* readonly */
  14740. bool notNull;
  14741. /* readonly */
  14742. uint numAttributes;
  14743. /* readonly */
  14744. XMLElement parent;
  14745. String value;
  14746. };
  14747. class XMLFile
  14748. {
  14749. public:
  14750. XMLFile();
  14751. XMLFile(const String&in);
  14752. // Methods:
  14753. XMLElement CreateRoot(const String&);
  14754. bool FromString(const String&);
  14755. XMLElement GetOrCreateRoot(const String&);
  14756. XMLElement GetRoot(const String& = String ( ));
  14757. bool HasSubscribedToEvent(Object, const String&);
  14758. bool HasSubscribedToEvent(const String&);
  14759. bool Load(File);
  14760. bool Load(VectorBuffer&);
  14761. bool Load(const String&);
  14762. void Patch(XMLElement);
  14763. void Patch(XMLFile);
  14764. bool Save(File) const;
  14765. bool Save(File, const String&) const;
  14766. bool Save(VectorBuffer&) const;
  14767. bool Save(const String&) const;
  14768. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14769. String ToString(const String& = String ( "\t" )) const;
  14770. // Properties:
  14771. /* readonly */
  14772. String category;
  14773. /* readonly */
  14774. uint memoryUse;
  14775. String name;
  14776. /* readonly */
  14777. int refs;
  14778. /* readonly */
  14779. XMLElement root;
  14780. /* readonly */
  14781. StringHash type;
  14782. /* readonly */
  14783. String typeName;
  14784. /* readonly */
  14785. uint useTimer;
  14786. /* readonly */
  14787. int weakRefs;
  14788. };
  14789. class XPathQuery
  14790. {
  14791. public:
  14792. ~XPathQuery();
  14793. XPathQuery();
  14794. XPathQuery(const String&in, const String&inout arg1 = String ( ));
  14795. // Methods:
  14796. void Bind();
  14797. void Clear();
  14798. XPathResultSet Evaluate(XMLElement);
  14799. bool EvaluateToBool(XMLElement);
  14800. float EvaluateToFloat(XMLElement);
  14801. String EvaluateToString(XMLElement);
  14802. bool SetQuery(const String&, const String& = String ( ), bool = true);
  14803. bool SetVariable(const String&, bool);
  14804. bool SetVariable(const String&, const String&);
  14805. bool SetVariable(const String&, const XPathResultSet&);
  14806. bool SetVariable(const String&, float);
  14807. // Properties:
  14808. String query;
  14809. };
  14810. class XPathResultSet
  14811. {
  14812. public:
  14813. ~XPathResultSet();
  14814. XPathResultSet();
  14815. XPathResultSet(const XPathResultSet&in);
  14816. // Properties:
  14817. /* readonly */
  14818. bool empty;
  14819. /* readonly */
  14820. XMLElement firstResult;
  14821. /* readonly */
  14822. uint size;
  14823. };
  14824. class Zone
  14825. {
  14826. public:
  14827. // Methods:
  14828. void ApplyAttributes();
  14829. void DrawDebugGeometry(DebugRenderer, bool);
  14830. Variant GetAttribute(const String&) const;
  14831. ValueAnimation GetAttributeAnimation(const String&) const;
  14832. float GetAttributeAnimationSpeed(const String&) const;
  14833. float GetAttributeAnimationTime(const String&) const;
  14834. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14835. Variant GetAttributeDefault(const String&) const;
  14836. bool GetInterceptNetworkUpdate(const String&) const;
  14837. bool HasSubscribedToEvent(Object, const String&);
  14838. bool HasSubscribedToEvent(const String&);
  14839. bool IsInView(Camera) const;
  14840. bool Load(File, bool = false);
  14841. bool Load(VectorBuffer&, bool = false);
  14842. bool LoadJSON(const JSONValue&, bool = false);
  14843. bool LoadXML(const XMLElement&, bool = false);
  14844. void MarkNetworkUpdate() const;
  14845. void Remove();
  14846. void RemoveAttributeAnimation(const String&);
  14847. void RemoveInstanceDefault();
  14848. void RemoveObjectAnimation();
  14849. void ResetToDefault();
  14850. bool Save(File) const;
  14851. bool Save(VectorBuffer&) const;
  14852. bool SaveJSON(JSONValue&) const;
  14853. bool SaveXML(XMLElement&) const;
  14854. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14855. void SetAnimationTime(float);
  14856. bool SetAttribute(const String&, const Variant&);
  14857. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14858. void SetAttributeAnimationSpeed(const String&, float);
  14859. void SetAttributeAnimationTime(const String&, float);
  14860. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14861. void SetInterceptNetworkUpdate(const String&, bool);
  14862. // Properties:
  14863. Color ambientColor;
  14864. /* readonly */
  14865. Color ambientEndColor;
  14866. bool ambientGradient;
  14867. /* readonly */
  14868. Color ambientStartColor;
  14869. bool animationEnabled;
  14870. /* readonly */
  14871. Array<Variant> attributeDefaults;
  14872. /* readonly */
  14873. Array<AttributeInfo> attributeInfos;
  14874. Array<Variant> attributes;
  14875. BoundingBox boundingBox;
  14876. bool castShadows;
  14877. /* readonly */
  14878. String category;
  14879. float drawDistance;
  14880. bool enabled;
  14881. /* readonly */
  14882. bool enabledEffective;
  14883. Color fogColor;
  14884. float fogEnd;
  14885. float fogHeight;
  14886. float fogHeightScale;
  14887. float fogStart;
  14888. bool heightFog;
  14889. /* readonly */
  14890. uint id;
  14891. /* readonly */
  14892. bool inView;
  14893. /* readonly */
  14894. Matrix3x4 inverseWorldTransform;
  14895. uint lightMask;
  14896. float lodBias;
  14897. uint maxLights;
  14898. /* readonly */
  14899. Node node;
  14900. /* readonly */
  14901. uint numAttributes;
  14902. ObjectAnimation objectAnimation;
  14903. bool occludee;
  14904. bool occluder;
  14905. bool override;
  14906. int priority;
  14907. /* readonly */
  14908. int refs;
  14909. float shadowDistance;
  14910. uint shadowMask;
  14911. bool temporary;
  14912. /* readonly */
  14913. StringHash type;
  14914. /* readonly */
  14915. String typeName;
  14916. uint viewMask;
  14917. /* readonly */
  14918. int weakRefs;
  14919. /* readonly */
  14920. BoundingBox worldBoundingBox;
  14921. uint zoneMask;
  14922. Texture zoneTexture;
  14923. };
  14924. // Enumerations
  14925. enum AnimationBlendMode
  14926. {
  14927. ABM_LERP,
  14928. ABM_ADDITIVE,
  14929. };
  14930. enum AutoRemoveMode
  14931. {
  14932. REMOVE_DISABLED,
  14933. REMOVE_COMPONENT,
  14934. REMOVE_NODE,
  14935. };
  14936. enum BlendMode
  14937. {
  14938. BLEND_REPLACE,
  14939. BLEND_ADD,
  14940. BLEND_MULTIPLY,
  14941. BLEND_ALPHA,
  14942. BLEND_ADDALPHA,
  14943. BLEND_PREMULALPHA,
  14944. BLEND_INVDESTALPHA,
  14945. BLEND_SUBTRACT,
  14946. BLEND_SUBTRACTALPHA,
  14947. };
  14948. enum BodyType2D
  14949. {
  14950. BT_STATIC,
  14951. BT_KINEMATIC,
  14952. BT_DYNAMIC,
  14953. };
  14954. enum CollisionEventMode
  14955. {
  14956. COLLISION_NEVER,
  14957. COLLISION_ACTIVE,
  14958. COLLISION_ALWAYS,
  14959. };
  14960. enum CompareMode
  14961. {
  14962. CMP_ALWAYS,
  14963. CMP_EQUAL,
  14964. CMP_NOTEQUAL,
  14965. CMP_LESS,
  14966. CMP_LESSEQUAL,
  14967. CMP_GREATER,
  14968. CMP_GREATEREQUAL,
  14969. };
  14970. enum CompressedFormat
  14971. {
  14972. CF_NONE,
  14973. CF_RGBA,
  14974. CF_DXT1,
  14975. CF_DXT3,
  14976. CF_DXT5,
  14977. CF_ETC1,
  14978. CF_PVRTC_RGB_2BPP,
  14979. CF_PVRTC_RGBA_2BPP,
  14980. CF_PVRTC_RGB_4BPP,
  14981. CF_PVRTC_RGBA_4BPP,
  14982. };
  14983. enum ConstraintType
  14984. {
  14985. CONSTRAINT_POINT,
  14986. CONSTRAINT_HINGE,
  14987. CONSTRAINT_SLIDER,
  14988. CONSTRAINT_CONETWIST,
  14989. };
  14990. enum Corner
  14991. {
  14992. C_TOPLEFT,
  14993. C_TOPRIGHT,
  14994. C_BOTTOMLEFT,
  14995. C_BOTTOMRIGHT,
  14996. };
  14997. enum CreateMode
  14998. {
  14999. REPLICATED,
  15000. LOCAL,
  15001. };
  15002. enum CrowdAgentRequestedTarget
  15003. {
  15004. CA_REQUESTEDTARGET_NONE,
  15005. CA_REQUESTEDTARGET_POSITION,
  15006. CA_REQUESTEDTARGET_VELOCITY,
  15007. };
  15008. enum CrowdAgentState
  15009. {
  15010. CA_STATE_INVALID,
  15011. CA_STATE_WALKING,
  15012. CA_STATE_OFFMESH,
  15013. };
  15014. enum CrowdAgentTargetState
  15015. {
  15016. CA_TARGET_NONE,
  15017. CA_TARGET_FAILED,
  15018. CA_TARGET_VALID,
  15019. CA_TARGET_REQUESTING,
  15020. CA_TARGET_WAITINGFORQUEUE,
  15021. CA_TARGET_WAITINGFORPATH,
  15022. CA_TARGET_VELOCITY,
  15023. };
  15024. enum CubeMapFace
  15025. {
  15026. FACE_POSITIVE_X,
  15027. FACE_NEGATIVE_X,
  15028. FACE_POSITIVE_Y,
  15029. FACE_NEGATIVE_Y,
  15030. FACE_POSITIVE_Z,
  15031. FACE_NEGATIVE_Z,
  15032. };
  15033. enum CullMode
  15034. {
  15035. CULL_NONE,
  15036. CULL_CCW,
  15037. CULL_CW,
  15038. };
  15039. enum CursorShape
  15040. {
  15041. CS_NORMAL,
  15042. CS_IBEAM,
  15043. CS_CROSS,
  15044. CS_RESIZEVERTICAL,
  15045. CS_RESIZEDIAGONAL_TOPRIGHT,
  15046. CS_RESIZEHORIZONTAL,
  15047. CS_RESIZEDIAGONAL_TOPLEFT,
  15048. CS_RESIZE_ALL,
  15049. CS_ACCEPTDROP,
  15050. CS_REJECTDROP,
  15051. CS_BUSY,
  15052. CS_BUSY_ARROW,
  15053. };
  15054. enum DBAPI
  15055. {
  15056. DBAPI_SQLITE,
  15057. DBAPI_ODBC,
  15058. };
  15059. enum DumpMode
  15060. {
  15061. DOXYGEN,
  15062. C_HEADER,
  15063. };
  15064. enum EmitterType
  15065. {
  15066. EMITTER_SPHERE,
  15067. EMITTER_BOX,
  15068. };
  15069. enum EmitterType2D
  15070. {
  15071. EMITTER_TYPE_GRAVITY,
  15072. EMITTER_TYPE_RADIAL,
  15073. };
  15074. enum FaceCameraMode
  15075. {
  15076. FC_NONE,
  15077. FC_ROTATE_XYZ,
  15078. FC_ROTATE_Y,
  15079. FC_LOOKAT_XYZ,
  15080. FC_LOOKAT_Y,
  15081. FC_LOOKAT_MIXED,
  15082. FC_DIRECTION,
  15083. };
  15084. enum FileMode
  15085. {
  15086. FILE_READ,
  15087. FILE_WRITE,
  15088. FILE_READWRITE,
  15089. };
  15090. enum FillMode
  15091. {
  15092. FILL_SOLID,
  15093. FILL_WIREFRAME,
  15094. FILL_POINT,
  15095. };
  15096. enum FocusMode
  15097. {
  15098. FM_NOTFOCUSABLE,
  15099. FM_RESETFOCUS,
  15100. FM_FOCUSABLE,
  15101. FM_FOCUSABLE_DEFOCUSABLE,
  15102. };
  15103. enum FontHintLevel
  15104. {
  15105. FONT_HINT_LEVEL_NONE,
  15106. FONT_HINT_LEVEL_LIGHT,
  15107. FONT_HINT_LEVEL_NORMAL,
  15108. };
  15109. enum FontType
  15110. {
  15111. FONT_NONE,
  15112. FONT_FREETYPE,
  15113. FONT_BITMAP,
  15114. };
  15115. enum HighlightMode
  15116. {
  15117. HM_NEVER,
  15118. HM_FOCUS,
  15119. HM_ALWAYS,
  15120. };
  15121. enum HorizontalAlignment
  15122. {
  15123. HA_LEFT,
  15124. HA_CENTER,
  15125. HA_RIGHT,
  15126. HA_CUSTOM,
  15127. };
  15128. enum HttpRequestState
  15129. {
  15130. HTTP_INITIALIZING,
  15131. HTTP_ERROR,
  15132. HTTP_OPEN,
  15133. HTTP_CLOSED,
  15134. };
  15135. enum IKAlgorithm
  15136. {
  15137. FABRIK,
  15138. };
  15139. enum InterpMethod
  15140. {
  15141. IM_NONE,
  15142. IM_LINEAR,
  15143. IM_SPLINE,
  15144. };
  15145. enum InterpolationMode
  15146. {
  15147. BEZIER_CURVE,
  15148. CATMULL_ROM_CURVE,
  15149. LINEAR_CURVE,
  15150. CATMULL_ROM_FULL_CURVE,
  15151. };
  15152. enum Intersection
  15153. {
  15154. OUTSIDE,
  15155. INTERSECTS,
  15156. INSIDE,
  15157. };
  15158. enum JSONNumberType
  15159. {
  15160. JSONNT_NAN,
  15161. JSONNT_INT,
  15162. JSONNT_UINT,
  15163. JSONNT_FLOAT_DOUBLE,
  15164. };
  15165. enum JSONValueType
  15166. {
  15167. JSON_NULL,
  15168. JSON_BOOL,
  15169. JSON_NUMBER,
  15170. JSON_STRING,
  15171. JSON_ARRAY,
  15172. JSON_OBJECT,
  15173. };
  15174. enum LayoutMode
  15175. {
  15176. LM_FREE,
  15177. LM_HORIZONTAL,
  15178. LM_VERTICAL,
  15179. };
  15180. enum LightType
  15181. {
  15182. LIGHT_DIRECTIONAL,
  15183. LIGHT_SPOT,
  15184. LIGHT_POINT,
  15185. };
  15186. enum LoadMode
  15187. {
  15188. LOAD_RESOURCES_ONLY,
  15189. LOAD_SCENE,
  15190. LOAD_SCENE_AND_RESOURCES,
  15191. };
  15192. enum LoopMode2D
  15193. {
  15194. LM_DEFAULT,
  15195. LM_FORCE_LOOPED,
  15196. LM_FORCE_CLAMPED,
  15197. };
  15198. enum MouseMode
  15199. {
  15200. MM_ABSOLUTE,
  15201. MM_RELATIVE,
  15202. MM_WRAP,
  15203. MM_FREE,
  15204. };
  15205. enum NavigationPushiness
  15206. {
  15207. NAVIGATIONPUSHINESS_LOW,
  15208. NAVIGATIONPUSHINESS_MEDIUM,
  15209. NAVIGATIONPUSHINESS_HIGH,
  15210. NAVIGATIONPUSHINESS_NONE,
  15211. };
  15212. enum NavigationQuality
  15213. {
  15214. NAVIGATIONQUALITY_LOW,
  15215. NAVIGATIONQUALITY_MEDIUM,
  15216. NAVIGATIONQUALITY_HIGH,
  15217. };
  15218. enum NavmeshPartitionType
  15219. {
  15220. NAVMESH_PARTITION_WATERSHED,
  15221. NAVMESH_PARTITION_MONOTONE,
  15222. };
  15223. enum Orientation
  15224. {
  15225. O_HORIZONTAL,
  15226. O_VERTICAL,
  15227. };
  15228. enum Orientation2D
  15229. {
  15230. O_ORTHOGONAL,
  15231. O_ISOMETRIC,
  15232. O_STAGGERED,
  15233. O_HEXAGONAL,
  15234. };
  15235. enum PassLightingMode
  15236. {
  15237. LIGHTING_UNLIT,
  15238. LIGHTING_PERVERTEX,
  15239. LIGHTING_PERPIXEL,
  15240. };
  15241. enum PrimitiveType
  15242. {
  15243. TRIANGLE_LIST,
  15244. LINE_LIST,
  15245. POINT_LIST,
  15246. TRIANGLE_STRIP,
  15247. LINE_STRIP,
  15248. TRIANGLE_FAN,
  15249. };
  15250. enum RayQueryLevel
  15251. {
  15252. RAY_AABB,
  15253. RAY_OBB,
  15254. RAY_TRIANGLE,
  15255. RAY_TRIANGLE_UV,
  15256. };
  15257. enum RenderCommandSortMode
  15258. {
  15259. SORT_FRONTTOBACK,
  15260. SORT_BACKTOFRONT,
  15261. };
  15262. enum RenderCommandType
  15263. {
  15264. CMD_NONE,
  15265. CMD_CLEAR,
  15266. CMD_SCENEPASS,
  15267. CMD_QUAD,
  15268. CMD_FORWARDLIGHTS,
  15269. CMD_LIGHTVOLUMES,
  15270. CMD_RENDERUI,
  15271. CMD_SENDEVENT,
  15272. };
  15273. enum RenderSurfaceUpdateMode
  15274. {
  15275. SURFACE_MANUALUPDATE,
  15276. SURFACE_UPDATEVISIBLE,
  15277. SURFACE_UPDATEALWAYS,
  15278. };
  15279. enum RenderTargetSizeMode
  15280. {
  15281. SIZE_ABSOLUTE,
  15282. SIZE_VIEWPORTDIVISOR,
  15283. SIZE_VIEWPORTMULTIPLIER,
  15284. };
  15285. enum ShadowQuality
  15286. {
  15287. SHADOWQUALITY_SIMPLE_16BIT,
  15288. SHADOWQUALITY_SIMPLE_24BIT,
  15289. SHADOWQUALITY_PCF_16BIT,
  15290. SHADOWQUALITY_PCF_24BIT,
  15291. SHADOWQUALITY_VSM,
  15292. SHADOWQUALITY_BLUR_VSM,
  15293. };
  15294. enum ShapeType
  15295. {
  15296. SHAPE_BOX,
  15297. SHAPE_SPHERE,
  15298. SHAPE_STATICPLANE,
  15299. SHAPE_CYLINDER,
  15300. SHAPE_CAPSULE,
  15301. SHAPE_CONE,
  15302. SHAPE_TRIANGLEMESH,
  15303. SHAPE_CONVEXHULL,
  15304. SHAPE_TERRAIN,
  15305. };
  15306. enum TextEffect
  15307. {
  15308. TE_NONE,
  15309. TE_SHADOW,
  15310. TE_STROKE,
  15311. };
  15312. enum TextureAddressMode
  15313. {
  15314. ADDRESS_WRAP,
  15315. ADDRESS_MIRROR,
  15316. ADDRESS_CLAMP,
  15317. ADDRESS_BORDER,
  15318. };
  15319. enum TextureCoordinate
  15320. {
  15321. COORD_U,
  15322. COORD_V,
  15323. COORD_W,
  15324. };
  15325. enum TextureFilterMode
  15326. {
  15327. FILTER_NEAREST,
  15328. FILTER_BILINEAR,
  15329. FILTER_TRILINEAR,
  15330. FILTER_ANISOTROPIC,
  15331. FILTER_NEAREST_ANISOTROPIC,
  15332. FILTER_DEFAULT,
  15333. };
  15334. enum TextureUnit
  15335. {
  15336. TU_DIFFUSE,
  15337. TU_ALBEDOBUFFER,
  15338. TU_NORMAL,
  15339. TU_NORMALBUFFER,
  15340. TU_SPECULAR,
  15341. TU_EMISSIVE,
  15342. TU_ENVIRONMENT,
  15343. TU_LIGHTRAMP,
  15344. TU_LIGHTSHAPE,
  15345. TU_SHADOWMAP,
  15346. TU_CUSTOM1,
  15347. TU_CUSTOM2,
  15348. TU_VOLUMEMAP,
  15349. TU_FACESELECT,
  15350. TU_INDIRECTION,
  15351. TU_DEPTHBUFFER,
  15352. TU_LIGHTBUFFER,
  15353. TU_ZONE,
  15354. MAX_MATERIAL_TEXTURE_UNITS,
  15355. MAX_TEXTURE_UNITS,
  15356. };
  15357. enum TextureUsage
  15358. {
  15359. TEXTURE_STATIC,
  15360. TEXTURE_DYNAMIC,
  15361. TEXTURE_RENDERTARGET,
  15362. TEXTURE_DEPTHSTENCIL,
  15363. };
  15364. enum TileMapLayerType2D
  15365. {
  15366. LT_TILE_LAYER,
  15367. LT_OBJECT_GROUP,
  15368. LT_IMAGE_LAYER,
  15369. LT_INVALID,
  15370. };
  15371. enum TileObjectType2D
  15372. {
  15373. OT_RECTANGLE,
  15374. OT_ELLIPSE,
  15375. OT_POLYGON,
  15376. OT_POLYLINE,
  15377. OT_TILE,
  15378. OT_INVALID,
  15379. };
  15380. enum TrailType
  15381. {
  15382. TT_FACE_CAMERA,
  15383. TT_BONE,
  15384. };
  15385. enum TransformSpace
  15386. {
  15387. TS_LOCAL,
  15388. TS_PARENT,
  15389. TS_WORLD,
  15390. };
  15391. enum TraversalMode
  15392. {
  15393. TM_BREADTH_FIRST,
  15394. TM_DEPTH_FIRST,
  15395. };
  15396. enum VariantType
  15397. {
  15398. VAR_NONE,
  15399. VAR_INT,
  15400. VAR_BOOL,
  15401. VAR_FLOAT,
  15402. VAR_VECTOR2,
  15403. VAR_VECTOR3,
  15404. VAR_VECTOR4,
  15405. VAR_QUATERNION,
  15406. VAR_COLOR,
  15407. VAR_STRING,
  15408. VAR_BUFFER,
  15409. VAR_VOIDPTR,
  15410. VAR_RESOURCEREF,
  15411. VAR_RESOURCEREFLIST,
  15412. VAR_VARIANTVECTOR,
  15413. VAR_VARIANTMAP,
  15414. VAR_INTRECT,
  15415. VAR_INTVECTOR2,
  15416. VAR_INTVECTOR3,
  15417. VAR_PTR,
  15418. VAR_MATRIX3,
  15419. VAR_MATRIX3X4,
  15420. VAR_MATRIX4,
  15421. VAR_DOUBLE,
  15422. VAR_STRINGVECTOR,
  15423. VAR_RECT,
  15424. };
  15425. enum VertexElementSemantic
  15426. {
  15427. SEM_POSITION,
  15428. SEM_NORMAL,
  15429. SEM_BINORMAL,
  15430. SEM_TANGENT,
  15431. SEM_TEXCOORD,
  15432. SEM_COLOR,
  15433. SEM_BLENDWEIGHTS,
  15434. SEM_BLENDINDICES,
  15435. SEM_OBJECTINDEX,
  15436. MAX_VERTEX_ELEMENT_SEMANTICS,
  15437. };
  15438. enum VertexElementType
  15439. {
  15440. TYPE_INT,
  15441. TYPE_FLOAT,
  15442. TYPE_VECTOR2,
  15443. TYPE_VECTOR3,
  15444. TYPE_VECTOR4,
  15445. TYPE_UBYTE4,
  15446. TYPE_UBYTE4_NORM,
  15447. MAX_VERTEX_ELEMENT_TYPES,
  15448. };
  15449. enum VerticalAlignment
  15450. {
  15451. VA_TOP,
  15452. VA_CENTER,
  15453. VA_BOTTOM,
  15454. VA_CUSTOM,
  15455. };
  15456. enum WrapMode
  15457. {
  15458. WM_LOOP,
  15459. WM_ONCE,
  15460. WM_CLAMP,
  15461. };
  15462. // Global functions
  15463. float Abs(float);
  15464. float Acos(float);
  15465. String AddTrailingSlash(const String&);
  15466. float Asin(float);
  15467. float Atan(float);
  15468. float Atan2(float, float);
  15469. float Ceil(float);
  15470. int CeilToInt(float);
  15471. float Clamp(float, float, float);
  15472. int Clamp(int, int, int);
  15473. void ClearDelayedExecute(const String& = String ( ));
  15474. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  15475. float Cos(float);
  15476. uint CountSetBits(uint);
  15477. Object CreateObject(const String&);
  15478. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  15479. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  15480. bool Equals(float, float);
  15481. void ErrorDialog(const String&, const String&);
  15482. float Floor(float);
  15483. int FloorToInt(float);
  15484. float Fract(float);
  15485. uint GetAlphaFormat();
  15486. Array<String> GetArguments();
  15487. String GetConsoleInput();
  15488. uint GetDepthStencilFormat();
  15489. Object GetEventSender();
  15490. String GetExtension(const String&, bool = true);
  15491. String GetFileName(const String&);
  15492. String GetFileNameAndExtension(const String&, bool = false);
  15493. String GetFileSizeString(uint64);
  15494. uint GetFloat16Format();
  15495. uint GetFloat32Format();
  15496. uint GetFormat(const String&);
  15497. Variant GetGlobalVar(const String&);
  15498. String GetHostName();
  15499. String GetInternalPath(const String&);
  15500. uint GetLinearDepthFormat();
  15501. String GetLoginName();
  15502. uint GetLuminanceAlphaFormat();
  15503. uint GetLuminanceFormat();
  15504. uint GetMaxBones();
  15505. String GetMiniDumpDir();
  15506. uint GetNumLogicalCPUs();
  15507. uint GetNumPhysicalCPUs();
  15508. String GetOSVersion();
  15509. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  15510. Array<String> GetObjectCategories();
  15511. Array<String> GetObjectsByCategory(const String&);
  15512. String GetParentPath(const String&);
  15513. String GetPath(const String&);
  15514. String GetPlatform();
  15515. uint GetRG16Format();
  15516. uint GetRGBA16Format();
  15517. uint GetRGBAFloat16Format();
  15518. uint GetRGBAFloat32Format();
  15519. uint GetRGBAFormat();
  15520. uint GetRGBFormat();
  15521. uint GetRGFloat16Format();
  15522. uint GetRGFloat32Format();
  15523. uint GetRandomSeed();
  15524. uint GetReadableDepthFormat();
  15525. String GetTextureUnitName(TextureUnit);
  15526. uint64 GetTotalMemory();
  15527. VariantType GetVariantTypeFromName(const String&);
  15528. String GetVariantTypeName(VariantType);
  15529. bool HasSubscribedToEvent(Object, const String&);
  15530. bool HasSubscribedToEvent(const String&);
  15531. float InverseLerp(float, float, float);
  15532. bool IsAbsolutePath(const String&);
  15533. bool IsAlpha(uint);
  15534. bool IsDigit(uint);
  15535. bool IsNaN(float);
  15536. bool IsPowerOfTwo(uint);
  15537. String Join(Array<String>&, const String&);
  15538. float Lerp(float, float, float);
  15539. float Ln(float);
  15540. void MarkNetworkUpdate();
  15541. float Max(float, float);
  15542. int Max(int, int);
  15543. float Min(float, float);
  15544. int Min(int, int);
  15545. float Mod(float, float);
  15546. uint NextPowerOfTwo(uint);
  15547. void OpenConsoleWindow();
  15548. float Pow(float, float);
  15549. void Print(bool, bool = false);
  15550. void Print(const String&, bool = false);
  15551. void Print(const Variant&, bool = false);
  15552. void Print(float, bool = false);
  15553. void Print(int, bool = false);
  15554. void Print(int64, bool = false);
  15555. void Print(uint, bool = false);
  15556. void Print(uint64, bool = false);
  15557. void PrintCallStack(bool = false);
  15558. float Random();
  15559. float Random(float);
  15560. float Random(float, float);
  15561. int RandomInt();
  15562. int RandomInt(int);
  15563. int RandomInt(int, int);
  15564. float RandomNormal(float, float);
  15565. void RegisterEventName(const String&);
  15566. void Remove();
  15567. String RemoveTrailingSlash(const String&);
  15568. String ReplaceExtension(const String&, const String&);
  15569. float Round(float);
  15570. int RoundToInt(float);
  15571. uint SDBMHash(uint, uint8);
  15572. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15573. void SetGlobalVar(const String&, Variant&);
  15574. void SetMiniDumpDir(const String&);
  15575. void SetRandomSeed(uint);
  15576. float Sign(float);
  15577. float Sin(float);
  15578. float SmoothStep(float, float, float);
  15579. float Sqrt(float);
  15580. float StableRandom(const Vector2&);
  15581. float StableRandom(const Vector3&);
  15582. float StableRandom(float);
  15583. const String& GetTypeName(StringHash);
  15584. void SubscribeToEvent(Object, const String&, const String&);
  15585. void SubscribeToEvent(const String&, const String&);
  15586. float Tan(float);
  15587. uint ToLower(uint);
  15588. String ToStringHex(int);
  15589. uint ToUpper(uint);
  15590. void UnsubscribeFromAllEvents();
  15591. void UnsubscribeFromAllEventsExcept(Array<String>);
  15592. void UnsubscribeFromEvent(Object, const String&);
  15593. void UnsubscribeFromEvent(const String&);
  15594. void UnsubscribeFromEvents(Object);
  15595. Vector2 VectorCeil(const Vector2&);
  15596. Vector3 VectorCeil(const Vector3&);
  15597. Vector4 VectorCeil(const Vector4&);
  15598. IntVector2 VectorCeilToInt(const Vector2&);
  15599. IntVector3 VectorCeilToInt(const Vector3&);
  15600. Vector2 VectorFloor(const Vector2&);
  15601. Vector3 VectorFloor(const Vector3&);
  15602. Vector4 VectorFloor(const Vector4&);
  15603. IntVector2 VectorFloorToInt(const Vector2&);
  15604. IntVector3 VectorFloorToInt(const Vector3&);
  15605. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  15606. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  15607. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  15608. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  15609. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  15610. Vector2 VectorMax(const Vector2&, const Vector2&);
  15611. Vector3 VectorMax(const Vector3&, const Vector3&);
  15612. Vector4 VectorMax(const Vector4&, const Vector4&);
  15613. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  15614. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  15615. Vector2 VectorMin(const Vector2&, const Vector2&);
  15616. Vector3 VectorMin(const Vector3&, const Vector3&);
  15617. Vector4 VectorMin(const Vector4&, const Vector4&);
  15618. Vector2 VectorRound(const Vector2&);
  15619. Vector3 VectorRound(const Vector3&);
  15620. Vector4 VectorRound(const Vector4&);
  15621. IntVector2 VectorRoundToInt(const Vector2&);
  15622. IntVector3 VectorRoundToInt(const Vector3&);
  15623. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  15624. // Global properties
  15625. DBAPI DBAPI;
  15626. Audio audio;
  15627. ResourceCache cache;
  15628. Console console;
  15629. Database database;
  15630. DebugHud debugHud;
  15631. DebugRenderer debugRenderer;
  15632. Engine engine;
  15633. FileSystem fileSystem;
  15634. VariantMap globalVars;
  15635. Graphics graphics;
  15636. Input input;
  15637. Localization localization;
  15638. Log log;
  15639. Network network;
  15640. Node node;
  15641. Octree octree;
  15642. PhysicsWorld physicsWorld;
  15643. PhysicsWorld2D physicsWorld2D;
  15644. Renderer renderer;
  15645. ResourceCache resourceCache;
  15646. Scene scene;
  15647. Script script;
  15648. ScriptFile scriptFile;
  15649. ScriptInstance self;
  15650. Time time;
  15651. UI ui;
  15652. // Global constants
  15653. uint AM_COMPONENTID;
  15654. uint AM_DEFAULT;
  15655. uint AM_FILE;
  15656. uint AM_FILEREADONLY;
  15657. uint AM_LATESTDATA;
  15658. uint AM_NET;
  15659. uint AM_NODEID;
  15660. uint AM_NODEIDVECTOR;
  15661. uint AM_NOEDIT;
  15662. Color BLACK;
  15663. Color BLUE;
  15664. uint8 CHANNEL_POSITION;
  15665. uint8 CHANNEL_ROTATION;
  15666. uint8 CHANNEL_SCALE;
  15667. uint CLEAR_COLOR;
  15668. uint CLEAR_DEPTH;
  15669. uint CLEAR_STENCIL;
  15670. int CONTROLLER_AXIS_LEFTX;
  15671. int CONTROLLER_AXIS_LEFTY;
  15672. int CONTROLLER_AXIS_RIGHTX;
  15673. int CONTROLLER_AXIS_RIGHTY;
  15674. int CONTROLLER_AXIS_TRIGGERLEFT;
  15675. int CONTROLLER_AXIS_TRIGGERRIGHT;
  15676. int CONTROLLER_BUTTON_A;
  15677. int CONTROLLER_BUTTON_B;
  15678. int CONTROLLER_BUTTON_BACK;
  15679. int CONTROLLER_BUTTON_DPAD_DOWN;
  15680. int CONTROLLER_BUTTON_DPAD_LEFT;
  15681. int CONTROLLER_BUTTON_DPAD_RIGHT;
  15682. int CONTROLLER_BUTTON_DPAD_UP;
  15683. int CONTROLLER_BUTTON_GUIDE;
  15684. int CONTROLLER_BUTTON_LEFTSHOULDER;
  15685. int CONTROLLER_BUTTON_LEFTSTICK;
  15686. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  15687. int CONTROLLER_BUTTON_RIGHTSTICK;
  15688. int CONTROLLER_BUTTON_START;
  15689. int CONTROLLER_BUTTON_X;
  15690. int CONTROLLER_BUTTON_Y;
  15691. Color CYAN;
  15692. uint DD_DISABLED;
  15693. uint DD_SOURCE;
  15694. uint DD_SOURCE_AND_TARGET;
  15695. uint DD_TARGET;
  15696. uint DEBUGHUD_SHOW_ALL;
  15697. uint DEBUGHUD_SHOW_EVENTPROFILER;
  15698. uint DEBUGHUD_SHOW_MEMORY;
  15699. uint DEBUGHUD_SHOW_MODE;
  15700. uint DEBUGHUD_SHOW_NONE;
  15701. uint DEBUGHUD_SHOW_PROFILER;
  15702. uint DEBUGHUD_SHOW_STATS;
  15703. uint DEFAULT_LIGHTMASK;
  15704. uint DEFAULT_VIEWMASK;
  15705. uint DRAWABLE_ANY;
  15706. uint DRAWABLE_GEOMETRY;
  15707. uint DRAWABLE_GEOMETRY2D;
  15708. uint DRAWABLE_LIGHT;
  15709. uint DRAWABLE_ZONE;
  15710. uint FIRST_LOCAL_ID;
  15711. uint FIRST_REPLICATED_ID;
  15712. Color GRAY;
  15713. Color GREEN;
  15714. int HAT_CENTER;
  15715. int HAT_DOWN;
  15716. int HAT_LEFT;
  15717. int HAT_RIGHT;
  15718. int HAT_UP;
  15719. int KEY_0;
  15720. int KEY_1;
  15721. int KEY_2;
  15722. int KEY_3;
  15723. int KEY_4;
  15724. int KEY_5;
  15725. int KEY_6;
  15726. int KEY_7;
  15727. int KEY_8;
  15728. int KEY_9;
  15729. int KEY_A;
  15730. int KEY_ALT;
  15731. int KEY_APPLICATION;
  15732. int KEY_B;
  15733. int KEY_BACKSPACE;
  15734. int KEY_C;
  15735. int KEY_CAPSLOCK;
  15736. int KEY_CTRL;
  15737. int KEY_D;
  15738. int KEY_DELETE;
  15739. int KEY_DOWN;
  15740. int KEY_E;
  15741. int KEY_END;
  15742. int KEY_ESCAPE;
  15743. int KEY_F;
  15744. int KEY_F1;
  15745. int KEY_F10;
  15746. int KEY_F11;
  15747. int KEY_F12;
  15748. int KEY_F13;
  15749. int KEY_F14;
  15750. int KEY_F15;
  15751. int KEY_F16;
  15752. int KEY_F17;
  15753. int KEY_F18;
  15754. int KEY_F19;
  15755. int KEY_F2;
  15756. int KEY_F20;
  15757. int KEY_F21;
  15758. int KEY_F22;
  15759. int KEY_F23;
  15760. int KEY_F24;
  15761. int KEY_F3;
  15762. int KEY_F4;
  15763. int KEY_F5;
  15764. int KEY_F6;
  15765. int KEY_F7;
  15766. int KEY_F8;
  15767. int KEY_F9;
  15768. int KEY_G;
  15769. int KEY_GUI;
  15770. int KEY_H;
  15771. int KEY_HOME;
  15772. int KEY_I;
  15773. int KEY_INSERT;
  15774. int KEY_J;
  15775. int KEY_K;
  15776. int KEY_KP_0;
  15777. int KEY_KP_1;
  15778. int KEY_KP_2;
  15779. int KEY_KP_3;
  15780. int KEY_KP_4;
  15781. int KEY_KP_5;
  15782. int KEY_KP_6;
  15783. int KEY_KP_7;
  15784. int KEY_KP_8;
  15785. int KEY_KP_9;
  15786. int KEY_KP_DIVIDE;
  15787. int KEY_KP_ENTER;
  15788. int KEY_KP_MINUS;
  15789. int KEY_KP_MULTIPLY;
  15790. int KEY_KP_PERIOD;
  15791. int KEY_KP_PLUS;
  15792. int KEY_L;
  15793. int KEY_LALT;
  15794. int KEY_LCTRL;
  15795. int KEY_LEFT;
  15796. int KEY_LGUI;
  15797. int KEY_LSHIFT;
  15798. int KEY_M;
  15799. int KEY_N;
  15800. int KEY_NUMLOCKCLEAR;
  15801. int KEY_O;
  15802. int KEY_P;
  15803. int KEY_PAGEDOWN;
  15804. int KEY_PAGEUP;
  15805. int KEY_PAUSE;
  15806. int KEY_PRINTSCREEN;
  15807. int KEY_Q;
  15808. int KEY_R;
  15809. int KEY_RALT;
  15810. int KEY_RCTRL;
  15811. int KEY_RETURN;
  15812. int KEY_RETURN2;
  15813. int KEY_RGUI;
  15814. int KEY_RIGHT;
  15815. int KEY_RSHIFT;
  15816. int KEY_S;
  15817. int KEY_SCROLLLOCK;
  15818. int KEY_SELECT;
  15819. int KEY_SHIFT;
  15820. int KEY_SPACE;
  15821. int KEY_T;
  15822. int KEY_TAB;
  15823. int KEY_U;
  15824. int KEY_UNKNOWN;
  15825. int KEY_UP;
  15826. int KEY_V;
  15827. int KEY_W;
  15828. int KEY_X;
  15829. int KEY_Y;
  15830. int KEY_Z;
  15831. uint LAST_LOCAL_ID;
  15832. uint LAST_REPLICATED_ID;
  15833. int LOG_DEBUG;
  15834. int LOG_ERROR;
  15835. int LOG_INFO;
  15836. int LOG_NONE;
  15837. int LOG_WARNING;
  15838. Color MAGENTA;
  15839. uint MASK_BLENDINDICES;
  15840. uint MASK_BLENDWEIGHTS;
  15841. uint MASK_COLOR;
  15842. uint MASK_CUBETEXCOORD1;
  15843. uint MASK_CUBETEXCOORD2;
  15844. uint MASK_INSTANCEMATRIX1;
  15845. uint MASK_INSTANCEMATRIX2;
  15846. uint MASK_INSTANCEMATRIX3;
  15847. uint MASK_NONE;
  15848. uint MASK_NORMAL;
  15849. uint MASK_OBJECTINDEX;
  15850. uint MASK_POSITION;
  15851. uint MASK_TANGENT;
  15852. uint MASK_TEXCOORD1;
  15853. uint MASK_TEXCOORD2;
  15854. int MOUSEB_LEFT;
  15855. int MOUSEB_MIDDLE;
  15856. int MOUSEB_RIGHT;
  15857. float M_DEGTORAD;
  15858. float M_DEGTORAD_2;
  15859. float M_EPSILON;
  15860. float M_HALF_PI;
  15861. float M_INFINITY;
  15862. float M_LARGE_EPSILON;
  15863. float M_LARGE_VALUE;
  15864. int M_MAX_INT;
  15865. uint M_MAX_UNSIGNED;
  15866. int M_MIN_INT;
  15867. uint M_MIN_UNSIGNED;
  15868. float M_PI;
  15869. float M_RADTODEG;
  15870. uint NPOS;
  15871. float PIXEL_SIZE;
  15872. int QUALITY_HIGH;
  15873. int QUALITY_LOW;
  15874. int QUALITY_MAX;
  15875. int QUALITY_MEDIUM;
  15876. int QUAL_ALT;
  15877. int QUAL_ANY;
  15878. int QUAL_CTRL;
  15879. int QUAL_SHIFT;
  15880. Color RED;
  15881. int SCANCODE_0;
  15882. int SCANCODE_1;
  15883. int SCANCODE_2;
  15884. int SCANCODE_3;
  15885. int SCANCODE_4;
  15886. int SCANCODE_5;
  15887. int SCANCODE_6;
  15888. int SCANCODE_7;
  15889. int SCANCODE_8;
  15890. int SCANCODE_9;
  15891. int SCANCODE_A;
  15892. int SCANCODE_AC_BACK;
  15893. int SCANCODE_AC_BOOKMARKS;
  15894. int SCANCODE_AC_FORWARD;
  15895. int SCANCODE_AC_HOME;
  15896. int SCANCODE_AC_REFRESH;
  15897. int SCANCODE_AC_SEARCH;
  15898. int SCANCODE_AC_STOP;
  15899. int SCANCODE_AGAIN;
  15900. int SCANCODE_ALT;
  15901. int SCANCODE_ALTERASE;
  15902. int SCANCODE_APOSTROPHE;
  15903. int SCANCODE_APP1;
  15904. int SCANCODE_APP2;
  15905. int SCANCODE_APPLICATION;
  15906. int SCANCODE_AUDIOMUTE;
  15907. int SCANCODE_AUDIONEXT;
  15908. int SCANCODE_AUDIOPLAY;
  15909. int SCANCODE_AUDIOPREV;
  15910. int SCANCODE_AUDIOSTOP;
  15911. int SCANCODE_B;
  15912. int SCANCODE_BACKSLASH;
  15913. int SCANCODE_BACKSPACE;
  15914. int SCANCODE_BRIGHTNESSDOWN;
  15915. int SCANCODE_BRIGHTNESSUP;
  15916. int SCANCODE_C;
  15917. int SCANCODE_CALCULATOR;
  15918. int SCANCODE_CANCEL;
  15919. int SCANCODE_CAPSLOCK;
  15920. int SCANCODE_CLEAR;
  15921. int SCANCODE_CLEARAGAIN;
  15922. int SCANCODE_COMMA;
  15923. int SCANCODE_COMPUTER;
  15924. int SCANCODE_COPY;
  15925. int SCANCODE_CRSEL;
  15926. int SCANCODE_CTRL;
  15927. int SCANCODE_CURRENCYSUBUNIT;
  15928. int SCANCODE_CURRENCYUNIT;
  15929. int SCANCODE_CUT;
  15930. int SCANCODE_D;
  15931. int SCANCODE_DECIMALSEPARATOR;
  15932. int SCANCODE_DELETE;
  15933. int SCANCODE_DISPLAYSWITCH;
  15934. int SCANCODE_DOWN;
  15935. int SCANCODE_E;
  15936. int SCANCODE_EJECT;
  15937. int SCANCODE_END;
  15938. int SCANCODE_EQUALS;
  15939. int SCANCODE_ESCAPE;
  15940. int SCANCODE_EXECUTE;
  15941. int SCANCODE_EXSEL;
  15942. int SCANCODE_F;
  15943. int SCANCODE_F1;
  15944. int SCANCODE_F10;
  15945. int SCANCODE_F11;
  15946. int SCANCODE_F12;
  15947. int SCANCODE_F13;
  15948. int SCANCODE_F14;
  15949. int SCANCODE_F15;
  15950. int SCANCODE_F16;
  15951. int SCANCODE_F17;
  15952. int SCANCODE_F18;
  15953. int SCANCODE_F19;
  15954. int SCANCODE_F2;
  15955. int SCANCODE_F20;
  15956. int SCANCODE_F21;
  15957. int SCANCODE_F22;
  15958. int SCANCODE_F23;
  15959. int SCANCODE_F24;
  15960. int SCANCODE_F3;
  15961. int SCANCODE_F4;
  15962. int SCANCODE_F5;
  15963. int SCANCODE_F6;
  15964. int SCANCODE_F7;
  15965. int SCANCODE_F8;
  15966. int SCANCODE_F9;
  15967. int SCANCODE_FIND;
  15968. int SCANCODE_G;
  15969. int SCANCODE_GRAVE;
  15970. int SCANCODE_GUI;
  15971. int SCANCODE_H;
  15972. int SCANCODE_HELP;
  15973. int SCANCODE_HOME;
  15974. int SCANCODE_I;
  15975. int SCANCODE_INSERT;
  15976. int SCANCODE_INTERNATIONAL1;
  15977. int SCANCODE_INTERNATIONAL2;
  15978. int SCANCODE_INTERNATIONAL3;
  15979. int SCANCODE_INTERNATIONAL4;
  15980. int SCANCODE_INTERNATIONAL5;
  15981. int SCANCODE_INTERNATIONAL6;
  15982. int SCANCODE_INTERNATIONAL7;
  15983. int SCANCODE_INTERNATIONAL8;
  15984. int SCANCODE_INTERNATIONAL9;
  15985. int SCANCODE_J;
  15986. int SCANCODE_K;
  15987. int SCANCODE_KBDILLUMDOWN;
  15988. int SCANCODE_KBDILLUMTOGGLE;
  15989. int SCANCODE_KBDILLUMUP;
  15990. int SCANCODE_KP_0;
  15991. int SCANCODE_KP_00;
  15992. int SCANCODE_KP_000;
  15993. int SCANCODE_KP_1;
  15994. int SCANCODE_KP_2;
  15995. int SCANCODE_KP_3;
  15996. int SCANCODE_KP_4;
  15997. int SCANCODE_KP_5;
  15998. int SCANCODE_KP_6;
  15999. int SCANCODE_KP_7;
  16000. int SCANCODE_KP_8;
  16001. int SCANCODE_KP_9;
  16002. int SCANCODE_KP_A;
  16003. int SCANCODE_KP_AMPERSAND;
  16004. int SCANCODE_KP_AT;
  16005. int SCANCODE_KP_B;
  16006. int SCANCODE_KP_BACKSPACE;
  16007. int SCANCODE_KP_BINARY;
  16008. int SCANCODE_KP_C;
  16009. int SCANCODE_KP_CLEAR;
  16010. int SCANCODE_KP_CLEARENTRY;
  16011. int SCANCODE_KP_COLON;
  16012. int SCANCODE_KP_COMMA;
  16013. int SCANCODE_KP_D;
  16014. int SCANCODE_KP_DBLAMPERSAND;
  16015. int SCANCODE_KP_DBLVERTICALBAR;
  16016. int SCANCODE_KP_DECIMAL;
  16017. int SCANCODE_KP_DIVIDE;
  16018. int SCANCODE_KP_E;
  16019. int SCANCODE_KP_ENTER;
  16020. int SCANCODE_KP_EQUALS;
  16021. int SCANCODE_KP_EQUALSAS400;
  16022. int SCANCODE_KP_EXCLAM;
  16023. int SCANCODE_KP_F;
  16024. int SCANCODE_KP_GREATER;
  16025. int SCANCODE_KP_HASH;
  16026. int SCANCODE_KP_HEXADECIMAL;
  16027. int SCANCODE_KP_LEFTBRACE;
  16028. int SCANCODE_KP_LEFTPAREN;
  16029. int SCANCODE_KP_LESS;
  16030. int SCANCODE_KP_MEMADD;
  16031. int SCANCODE_KP_MEMCLEAR;
  16032. int SCANCODE_KP_MEMDIVIDE;
  16033. int SCANCODE_KP_MEMMULTIPLY;
  16034. int SCANCODE_KP_MEMRECALL;
  16035. int SCANCODE_KP_MEMSTORE;
  16036. int SCANCODE_KP_MEMSUBTRACT;
  16037. int SCANCODE_KP_MINUS;
  16038. int SCANCODE_KP_MULTIPLY;
  16039. int SCANCODE_KP_OCTAL;
  16040. int SCANCODE_KP_PERCENT;
  16041. int SCANCODE_KP_PERIOD;
  16042. int SCANCODE_KP_PLUS;
  16043. int SCANCODE_KP_PLUSMINUS;
  16044. int SCANCODE_KP_POWER;
  16045. int SCANCODE_KP_RIGHTBRACE;
  16046. int SCANCODE_KP_RIGHTPAREN;
  16047. int SCANCODE_KP_SPACE;
  16048. int SCANCODE_KP_TAB;
  16049. int SCANCODE_KP_VERTICALBAR;
  16050. int SCANCODE_KP_XOR;
  16051. int SCANCODE_L;
  16052. int SCANCODE_LALT;
  16053. int SCANCODE_LANG1;
  16054. int SCANCODE_LANG2;
  16055. int SCANCODE_LANG3;
  16056. int SCANCODE_LANG4;
  16057. int SCANCODE_LANG5;
  16058. int SCANCODE_LANG6;
  16059. int SCANCODE_LANG7;
  16060. int SCANCODE_LANG8;
  16061. int SCANCODE_LANG9;
  16062. int SCANCODE_LCTRL;
  16063. int SCANCODE_LEFT;
  16064. int SCANCODE_LEFTBRACKET;
  16065. int SCANCODE_LGUI;
  16066. int SCANCODE_LSHIFT;
  16067. int SCANCODE_M;
  16068. int SCANCODE_MAIL;
  16069. int SCANCODE_MEDIASELECT;
  16070. int SCANCODE_MENU;
  16071. int SCANCODE_MINUS;
  16072. int SCANCODE_MODE;
  16073. int SCANCODE_MUTE;
  16074. int SCANCODE_N;
  16075. int SCANCODE_NONUSBACKSLASH;
  16076. int SCANCODE_NONUSHASH;
  16077. int SCANCODE_NUMLOCKCLEAR;
  16078. int SCANCODE_O;
  16079. int SCANCODE_OPER;
  16080. int SCANCODE_OUT;
  16081. int SCANCODE_P;
  16082. int SCANCODE_PAGEDOWN;
  16083. int SCANCODE_PAGEUP;
  16084. int SCANCODE_PASTE;
  16085. int SCANCODE_PAUSE;
  16086. int SCANCODE_PERIOD;
  16087. int SCANCODE_POWER;
  16088. int SCANCODE_PRINTSCREEN;
  16089. int SCANCODE_PRIOR;
  16090. int SCANCODE_Q;
  16091. int SCANCODE_R;
  16092. int SCANCODE_RALT;
  16093. int SCANCODE_RCTRL;
  16094. int SCANCODE_RETURN;
  16095. int SCANCODE_RETURN2;
  16096. int SCANCODE_RGUI;
  16097. int SCANCODE_RIGHT;
  16098. int SCANCODE_RIGHTBRACKET;
  16099. int SCANCODE_RSHIFT;
  16100. int SCANCODE_S;
  16101. int SCANCODE_SCROLLLOCK;
  16102. int SCANCODE_SELECT;
  16103. int SCANCODE_SEMICOLON;
  16104. int SCANCODE_SEPARATOR;
  16105. int SCANCODE_SHIFT;
  16106. int SCANCODE_SLASH;
  16107. int SCANCODE_SLEEP;
  16108. int SCANCODE_SPACE;
  16109. int SCANCODE_STOP;
  16110. int SCANCODE_SYSREQ;
  16111. int SCANCODE_T;
  16112. int SCANCODE_TAB;
  16113. int SCANCODE_THOUSANDSSEPARATOR;
  16114. int SCANCODE_U;
  16115. int SCANCODE_UNDO;
  16116. int SCANCODE_UNKNOWN;
  16117. int SCANCODE_UP;
  16118. int SCANCODE_V;
  16119. int SCANCODE_VOLUMEDOWN;
  16120. int SCANCODE_VOLUMEUP;
  16121. int SCANCODE_W;
  16122. int SCANCODE_WWW;
  16123. int SCANCODE_X;
  16124. int SCANCODE_Y;
  16125. int SCANCODE_Z;
  16126. uint SCAN_DIRS;
  16127. uint SCAN_FILES;
  16128. uint SCAN_HIDDEN;
  16129. String SOUND_AMBIENT;
  16130. String SOUND_EFFECT;
  16131. String SOUND_MASTER;
  16132. String SOUND_MUSIC;
  16133. String SOUND_VOICE;
  16134. Color TRANSPARENT;
  16135. uint VO_DISABLE_OCCLUSION;
  16136. uint VO_DISABLE_SHADOWS;
  16137. uint VO_LOW_MATERIAL_QUALITY;
  16138. uint VO_NONE;
  16139. Color WHITE;
  16140. Color YELLOW;