AngelScriptAPI.h 408 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577
  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 AddTrigger(const AnimationTriggerPoint&);
  307. void AddTrigger(float, bool, const Variant&);
  308. Animation Clone(const String& = String ( )) const;
  309. AnimationTrack CreateTrack(const String&);
  310. AnimationTrack GetTrack(uint);
  311. bool HasSubscribedToEvent(Object, const String&);
  312. bool HasSubscribedToEvent(const String&);
  313. bool Load(File);
  314. bool Load(VectorBuffer&);
  315. bool Load(const String&);
  316. bool RemoveAllTracks();
  317. void RemoveAllTriggers();
  318. bool RemoveTrack(const String&);
  319. void RemoveTrigger(uint);
  320. bool Save(File) const;
  321. bool Save(VectorBuffer&) const;
  322. bool Save(const String&) const;
  323. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  324. // Properties:
  325. String animationName;
  326. /* readonly */
  327. String category;
  328. float length;
  329. /* readonly */
  330. uint memoryUse;
  331. String name;
  332. /* readonly */
  333. uint numTracks;
  334. uint numTriggers;
  335. /* readonly */
  336. int refs;
  337. /* readonly */
  338. Array<AnimationTrack> tracks;
  339. Array<AnimationTriggerPoint> triggers;
  340. /* readonly */
  341. StringHash type;
  342. /* readonly */
  343. String typeName;
  344. /* readonly */
  345. uint useTimer;
  346. /* readonly */
  347. int weakRefs;
  348. };
  349. class AnimationControl
  350. {
  351. public:
  352. // Properties:
  353. float autoFadeTime;
  354. float fadeTime;
  355. StringHash hash;
  356. String name;
  357. bool removeOnCompletion;
  358. float speed;
  359. float targetWeight;
  360. };
  361. class AnimationController
  362. {
  363. public:
  364. // Methods:
  365. void ApplyAttributes();
  366. void DrawDebugGeometry(DebugRenderer, bool);
  367. bool Fade(const String&, float, float);
  368. bool FadeOthers(const String&, float, float);
  369. AnimationState GetAnimationState(StringHash) const;
  370. AnimationState GetAnimationState(const String&) const;
  371. Variant GetAttribute(const String&) const;
  372. ValueAnimation GetAttributeAnimation(const String&) const;
  373. float GetAttributeAnimationSpeed(const String&) const;
  374. float GetAttributeAnimationTime(const String&) const;
  375. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  376. Variant GetAttributeDefault(const String&) const;
  377. float GetAutoFade(const String&) const;
  378. AnimationBlendMode GetBlendMode(const String&) const;
  379. float GetFadeTarget(const String&) const;
  380. float GetFadeTime(const String&) const;
  381. bool GetInterceptNetworkUpdate(const String&) const;
  382. uint8 GetLayer(const String&) const;
  383. float GetLength(const String&) const;
  384. bool GetLooped(const String&) const;
  385. bool GetRemoveOnCompletion(const String&);
  386. float GetSpeed(const String&) const;
  387. float GetTime(const String&) const;
  388. float GetWeight(const String&) const;
  389. bool HasSubscribedToEvent(Object, const String&);
  390. bool HasSubscribedToEvent(const String&);
  391. bool IsAtEnd(const String&) const;
  392. bool IsFadingIn(const String&) const;
  393. bool IsFadingOut(const String&) const;
  394. bool IsPlaying(const String&) const;
  395. bool IsPlaying(uint8) const;
  396. bool Load(File, bool = false);
  397. bool Load(VectorBuffer&, bool = false);
  398. bool LoadJSON(const JSONValue&, bool = false);
  399. bool LoadXML(const XMLElement&, bool = false);
  400. void MarkNetworkUpdate() const;
  401. bool Play(const String&, uint8, bool, float = 0.0f);
  402. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  403. void Remove();
  404. void RemoveAttributeAnimation(const String&);
  405. void RemoveInstanceDefault();
  406. void RemoveObjectAnimation();
  407. void ResetToDefault();
  408. bool Save(File) const;
  409. bool Save(VectorBuffer&) const;
  410. bool SaveJSON(JSONValue&) const;
  411. bool SaveXML(XMLElement&) const;
  412. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  413. void SetAnimationTime(float);
  414. bool SetAttribute(const String&, const Variant&);
  415. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  416. void SetAttributeAnimationSpeed(const String&, float);
  417. void SetAttributeAnimationTime(const String&, float);
  418. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  419. bool SetAutoFade(const String&, float);
  420. bool SetBlendMode(const String&, AnimationBlendMode);
  421. void SetInterceptNetworkUpdate(const String&, bool);
  422. bool SetLayer(const String&, uint8);
  423. bool SetLooped(const String&, bool);
  424. bool SetRemoveOnCompletion(const String&, bool);
  425. bool SetSpeed(const String&, float);
  426. bool SetStartBone(const String&, const String&);
  427. bool SetTime(const String&, float);
  428. bool SetWeight(const String&, float);
  429. void Stop(const String&, float = 0.0f);
  430. void StopAll(float = 0.0f);
  431. void StopLayer(uint8, float = 0.0f);
  432. const String& GetStartBone(const String&) const;
  433. // Properties:
  434. bool animationEnabled;
  435. /* readonly */
  436. Array<AnimationControl> animations;
  437. /* readonly */
  438. Array<Variant> attributeDefaults;
  439. /* readonly */
  440. Array<AttributeInfo> attributeInfos;
  441. Array<Variant> attributes;
  442. /* readonly */
  443. String category;
  444. bool enabled;
  445. /* readonly */
  446. bool enabledEffective;
  447. /* readonly */
  448. uint id;
  449. /* readonly */
  450. Node node;
  451. /* readonly */
  452. uint numAnimations;
  453. /* readonly */
  454. uint numAttributes;
  455. ObjectAnimation objectAnimation;
  456. /* readonly */
  457. int refs;
  458. bool temporary;
  459. /* readonly */
  460. StringHash type;
  461. /* readonly */
  462. String typeName;
  463. /* readonly */
  464. int weakRefs;
  465. };
  466. class AnimationKeyFrame
  467. {
  468. public:
  469. ~AnimationKeyFrame();
  470. AnimationKeyFrame();
  471. AnimationKeyFrame(const AnimationKeyFrame&in);
  472. // Properties:
  473. Vector3 position;
  474. Quaternion rotation;
  475. Vector3 scale;
  476. float time;
  477. };
  478. class AnimationSet2D
  479. {
  480. public:
  481. AnimationSet2D();
  482. AnimationSet2D(const String&in);
  483. // Methods:
  484. String GetAnimation(uint) const;
  485. bool HasSubscribedToEvent(Object, const String&);
  486. bool HasSubscribedToEvent(const String&);
  487. bool Load(File);
  488. bool Load(VectorBuffer&);
  489. bool Load(const String&);
  490. bool Save(File) const;
  491. bool Save(VectorBuffer&) const;
  492. bool Save(const String&) const;
  493. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  494. // Properties:
  495. /* readonly */
  496. String category;
  497. /* readonly */
  498. uint memoryUse;
  499. String name;
  500. /* readonly */
  501. uint numAnimations;
  502. /* readonly */
  503. int refs;
  504. /* readonly */
  505. StringHash type;
  506. /* readonly */
  507. String typeName;
  508. /* readonly */
  509. uint useTimer;
  510. /* readonly */
  511. int weakRefs;
  512. };
  513. class AnimationState
  514. {
  515. public:
  516. AnimationState(Node&, Animation&);
  517. // Methods:
  518. void AddTime(float);
  519. void AddWeight(float);
  520. void Apply();
  521. float GetBoneWeight(StringHash) const;
  522. float GetBoneWeight(uint) const;
  523. uint GetTrackIndex(StringHash) const;
  524. uint GetTrackIndex(const String&) const;
  525. void SetBoneWeight(StringHash, float, bool = false);
  526. void SetBoneWeight(const String&, float, bool = false);
  527. void SetBoneWeight(uint, float, bool = false);
  528. // Properties:
  529. /* readonly */
  530. Animation animation;
  531. AnimationBlendMode blendMode;
  532. Array<float> boneWeights;
  533. /* readonly */
  534. bool enabled;
  535. uint8 layer;
  536. /* readonly */
  537. float length;
  538. bool looped;
  539. /* readonly */
  540. AnimatedModel model;
  541. /* readonly */
  542. Node node;
  543. /* readonly */
  544. int refs;
  545. Bone startBone;
  546. float time;
  547. /* readonly */
  548. int weakRefs;
  549. float weight;
  550. };
  551. class AnimationTrack
  552. {
  553. public:
  554. // Methods:
  555. void AddKeyFrame(const AnimationKeyFrame&);
  556. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  557. void RemoveAllKeyFrames();
  558. void RemoveKeyFrame(uint);
  559. // Properties:
  560. uint8 channelMask;
  561. Array<AnimationKeyFrame> keyFrames;
  562. String name;
  563. StringHash nameHash;
  564. /* readonly */
  565. uint numKeyFrames;
  566. };
  567. class AnimationTriggerPoint
  568. {
  569. public:
  570. ~AnimationTriggerPoint();
  571. AnimationTriggerPoint();
  572. AnimationTriggerPoint(const AnimationTriggerPoint&in);
  573. // Properties:
  574. Variant data;
  575. float time;
  576. };
  577. template <class T>
  578. class Array
  579. {
  580. public:
  581. Array(int&in);
  582. Array(int&in, uint);
  583. Array(int&in, uint, const T&in);
  584. // Methods:
  585. void Clear();
  586. void Erase(uint);
  587. int Find(const T&) const;
  588. int Find(uint, const T&) const;
  589. int FindByRef(const T&) const;
  590. int FindByRef(uint, const T&) const;
  591. void Insert(uint, const T&);
  592. void Pop();
  593. void Push(const T&);
  594. void Reserve(uint);
  595. void Resize(uint);
  596. void Reverse();
  597. void Sort();
  598. void Sort(uint, uint);
  599. void SortReverse();
  600. void SortReverse(uint, uint);
  601. // Properties:
  602. /* readonly */
  603. bool empty;
  604. uint length;
  605. };
  606. class AttributeInfo
  607. {
  608. public:
  609. ~AttributeInfo();
  610. AttributeInfo();
  611. AttributeInfo(const AttributeInfo&in);
  612. // Properties:
  613. Variant defaultValue;
  614. /* readonly */
  615. Array<String> enumNames;
  616. uint mode;
  617. String name;
  618. VariantType type;
  619. /* readonly */
  620. Array<String> variantStructureElementNames;
  621. };
  622. class Audio
  623. {
  624. public:
  625. // Methods:
  626. bool HasMasterGain(const String&) const;
  627. bool HasSubscribedToEvent(Object, const String&);
  628. bool HasSubscribedToEvent(const String&);
  629. bool IsSoundTypePaused(const String&);
  630. void PauseSoundType(const String&);
  631. bool Play();
  632. void ResumeAll();
  633. void ResumeSoundType(const String&);
  634. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  635. void SetMode(int, int, bool, bool = true);
  636. void Stop();
  637. // Properties:
  638. /* readonly */
  639. String category;
  640. /* readonly */
  641. bool initialized;
  642. /* readonly */
  643. bool interpolation;
  644. SoundListener listener;
  645. Array<float> masterGain;
  646. /* readonly */
  647. int mixRate;
  648. /* readonly */
  649. bool playing;
  650. /* readonly */
  651. int refs;
  652. /* readonly */
  653. uint sampleSize;
  654. /* readonly */
  655. bool stereo;
  656. /* readonly */
  657. StringHash type;
  658. /* readonly */
  659. String typeName;
  660. /* readonly */
  661. int weakRefs;
  662. };
  663. class BiasParameters
  664. {
  665. public:
  666. BiasParameters();
  667. BiasParameters(const BiasParameters&in);
  668. BiasParameters(float, float, float normalOffset = 0.0f);
  669. // Properties:
  670. float constantBias;
  671. float normalOffset;
  672. float slopeScaledBias;
  673. };
  674. class Billboard
  675. {
  676. public:
  677. // Properties:
  678. Color color;
  679. Vector3 direction;
  680. bool enabled;
  681. Vector3 position;
  682. float rotation;
  683. Vector2 size;
  684. Rect uv;
  685. };
  686. class BillboardSet
  687. {
  688. public:
  689. // Methods:
  690. void ApplyAttributes();
  691. void Commit();
  692. void DrawDebugGeometry(DebugRenderer, bool);
  693. Variant GetAttribute(const String&) const;
  694. ValueAnimation GetAttributeAnimation(const String&) const;
  695. float GetAttributeAnimationSpeed(const String&) const;
  696. float GetAttributeAnimationTime(const String&) const;
  697. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  698. Variant GetAttributeDefault(const String&) const;
  699. bool GetInterceptNetworkUpdate(const String&) const;
  700. bool HasSubscribedToEvent(Object, const String&);
  701. bool HasSubscribedToEvent(const String&);
  702. bool IsInView(Camera) const;
  703. bool Load(File, bool = false);
  704. bool Load(VectorBuffer&, bool = false);
  705. bool LoadJSON(const JSONValue&, bool = false);
  706. bool LoadXML(const XMLElement&, bool = false);
  707. void MarkNetworkUpdate() const;
  708. void Remove();
  709. void RemoveAttributeAnimation(const String&);
  710. void RemoveInstanceDefault();
  711. void RemoveObjectAnimation();
  712. void ResetToDefault();
  713. bool Save(File) const;
  714. bool Save(VectorBuffer&) const;
  715. bool SaveJSON(JSONValue&) const;
  716. bool SaveXML(XMLElement&) const;
  717. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  718. void SetAnimationTime(float);
  719. bool SetAttribute(const String&, const Variant&);
  720. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  721. void SetAttributeAnimationSpeed(const String&, float);
  722. void SetAttributeAnimationTime(const String&, float);
  723. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  724. void SetInterceptNetworkUpdate(const String&, bool);
  725. // Properties:
  726. bool animationEnabled;
  727. float animationLodBias;
  728. /* readonly */
  729. Array<Variant> attributeDefaults;
  730. /* readonly */
  731. Array<AttributeInfo> attributeInfos;
  732. Array<Variant> attributes;
  733. /* readonly */
  734. Array<Billboard> billboards;
  735. /* readonly */
  736. BoundingBox boundingBox;
  737. bool castShadows;
  738. /* readonly */
  739. String category;
  740. float drawDistance;
  741. bool enabled;
  742. /* readonly */
  743. bool enabledEffective;
  744. FaceCameraMode faceCameraMode;
  745. bool fixedScreenSize;
  746. /* readonly */
  747. uint id;
  748. /* readonly */
  749. bool inView;
  750. uint lightMask;
  751. float lodBias;
  752. Material material;
  753. uint maxLights;
  754. float minAngle;
  755. /* readonly */
  756. Node node;
  757. /* readonly */
  758. uint numAttributes;
  759. uint numBillboards;
  760. ObjectAnimation objectAnimation;
  761. bool occludee;
  762. bool occluder;
  763. /* readonly */
  764. int refs;
  765. bool relative;
  766. bool scaled;
  767. float shadowDistance;
  768. uint shadowMask;
  769. bool sorted;
  770. bool temporary;
  771. /* readonly */
  772. StringHash type;
  773. /* readonly */
  774. String typeName;
  775. uint viewMask;
  776. /* readonly */
  777. int weakRefs;
  778. /* readonly */
  779. BoundingBox worldBoundingBox;
  780. /* readonly */
  781. Zone zone;
  782. uint zoneMask;
  783. };
  784. class Bone
  785. {
  786. public:
  787. // Properties:
  788. bool animated;
  789. BoundingBox boundingBox;
  790. Vector3 initialPosition;
  791. Quaternion initialRotation;
  792. Vector3 initialScale;
  793. String name;
  794. Node node;
  795. float radius;
  796. };
  797. class BorderImage
  798. {
  799. public:
  800. BorderImage();
  801. BorderImage(const String&in);
  802. // Methods:
  803. void AddChild(UIElement);
  804. void AddTag(const String&);
  805. void AddTags(const String&, int8 = ';');
  806. void ApplyAttributes();
  807. void BringToFront();
  808. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  809. void DisableLayoutUpdate();
  810. IntVector2 ElementToScreen(const IntVector2&);
  811. void EnableLayoutUpdate();
  812. uint FindChild(UIElement) const;
  813. Variant GetAttribute(const String&) const;
  814. ValueAnimation GetAttributeAnimation(const String&) const;
  815. float GetAttributeAnimationSpeed(const String&) const;
  816. float GetAttributeAnimationTime(const String&) const;
  817. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  818. Variant GetAttributeDefault(const String&) const;
  819. UIElement GetChild(const String&, bool = false) const;
  820. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  821. Array<UIElement> GetChildren(bool = false) const;
  822. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  823. UIElement GetElementEventSender() const;
  824. bool GetInterceptNetworkUpdate(const String&) const;
  825. uint GetNumChildren(bool) const;
  826. bool HasSubscribedToEvent(Object, const String&);
  827. bool HasSubscribedToEvent(const String&);
  828. bool HasTag(const String&) const;
  829. void InsertChild(uint, UIElement);
  830. bool IsInside(IntVector2, bool);
  831. bool IsInsideCombined(IntVector2, bool);
  832. bool Load(File, bool = false);
  833. bool Load(VectorBuffer&, bool = false);
  834. UIElement LoadChildXML(XMLFile, XMLFile = null);
  835. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  836. bool LoadJSON(const JSONValue&, bool = false);
  837. bool LoadXML(File);
  838. bool LoadXML(VectorBuffer&);
  839. bool LoadXML(XMLFile, XMLFile);
  840. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  841. bool LoadXML(const XMLElement&, bool = false);
  842. void MarkNetworkUpdate() const;
  843. void Remove();
  844. void RemoveAllChildren();
  845. void RemoveAllTags();
  846. void RemoveAttributeAnimation(const String&);
  847. void RemoveChild(UIElement, uint = 0);
  848. void RemoveChild(uint);
  849. void RemoveInstanceDefault();
  850. void RemoveObjectAnimation();
  851. bool RemoveTag(const String&);
  852. void ResetDeepEnabled();
  853. void ResetToDefault();
  854. bool Save(File) const;
  855. bool Save(VectorBuffer&) const;
  856. bool SaveJSON(JSONValue&) const;
  857. bool SaveXML(File, const String& = "\t");
  858. bool SaveXML(VectorBuffer&, const String& = "\t");
  859. bool SaveXML(XMLElement&) const;
  860. IntVector2 ScreenToElement(const IntVector2&);
  861. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  862. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  863. void SetAnimationTime(float);
  864. bool SetAttribute(const String&, const Variant&);
  865. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  866. void SetAttributeAnimationSpeed(const String&, float);
  867. void SetAttributeAnimationTime(const String&, float);
  868. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  869. void SetDeepEnabled(bool);
  870. void SetEnabledRecursive(bool);
  871. void SetFixedHeight(int);
  872. void SetFixedSize(int, int);
  873. void SetFixedWidth(int);
  874. void SetFullImageRect();
  875. void SetHoverOffset(int, int);
  876. void SetInterceptNetworkUpdate(const String&, bool);
  877. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  878. void SetMaxAnchor(float, float);
  879. void SetMaxSize(int, int);
  880. void SetMinAnchor(float, float);
  881. void SetMinSize(int, int);
  882. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  883. void SetPivot(float, float);
  884. void SetPosition(int, int);
  885. void SetSize(int, int);
  886. bool SetStyle(const String&, XMLFile = null);
  887. bool SetStyle(const XMLElement&);
  888. bool SetStyleAuto(XMLFile = null);
  889. void UpdateLayout();
  890. const Variant& GetVar(const StringHash&);
  891. // Properties:
  892. bool animationEnabled;
  893. /* readonly */
  894. Array<Variant> attributeDefaults;
  895. /* readonly */
  896. Array<AttributeInfo> attributeInfos;
  897. Array<Variant> attributes;
  898. BlendMode blendMode;
  899. IntRect border;
  900. bool bringToBack;
  901. bool bringToFront;
  902. /* readonly */
  903. String category;
  904. /* readonly */
  905. IntVector2 childOffset;
  906. /* readonly */
  907. Array<UIElement> children;
  908. IntRect clipBorder;
  909. bool clipChildren;
  910. /* writeonly */
  911. Color color;
  912. /* readonly */
  913. bool colorGradient;
  914. Array<Color> colors;
  915. /* readonly */
  916. IntRect combinedScreenRect;
  917. XMLFile defaultStyle;
  918. /* readonly */
  919. float derivedOpacity;
  920. /* readonly */
  921. uint dragButtonCombo;
  922. /* readonly */
  923. int dragButtonCount;
  924. uint dragDropMode;
  925. bool editable;
  926. bool elementEventSender;
  927. bool enableAnchor;
  928. bool enabled;
  929. /* readonly */
  930. bool enabledSelf;
  931. /* readonly */
  932. bool fixedHeight;
  933. /* readonly */
  934. bool fixedSize;
  935. /* readonly */
  936. bool fixedWidth;
  937. bool focus;
  938. FocusMode focusMode;
  939. int height;
  940. HorizontalAlignment horizontalAlignment;
  941. IntVector2 hoverOffset;
  942. /* readonly */
  943. bool hovering;
  944. IntRect imageBorder;
  945. IntRect imageRect;
  946. int indent;
  947. int indentSpacing;
  948. /* readonly */
  949. int indentWidth;
  950. bool internal;
  951. IntRect layoutBorder;
  952. Vector2 layoutFlexScale;
  953. LayoutMode layoutMode;
  954. int layoutSpacing;
  955. Vector2 maxAnchor;
  956. int maxHeight;
  957. IntVector2 maxOffset;
  958. IntVector2 maxSize;
  959. int maxWidth;
  960. Vector2 minAnchor;
  961. int minHeight;
  962. IntVector2 minOffset;
  963. IntVector2 minSize;
  964. int minWidth;
  965. String name;
  966. /* readonly */
  967. uint numAllChildren;
  968. /* readonly */
  969. uint numAttributes;
  970. /* readonly */
  971. uint numChildren;
  972. ObjectAnimation objectAnimation;
  973. float opacity;
  974. UIElement parent;
  975. Vector2 pivot;
  976. IntVector2 position;
  977. int priority;
  978. /* readonly */
  979. int refs;
  980. /* readonly */
  981. UIElement root;
  982. /* readonly */
  983. IntVector2 screenPosition;
  984. bool selected;
  985. IntVector2 size;
  986. bool sortChildren;
  987. String style;
  988. /* readonly */
  989. Array<String> tags;
  990. bool temporary;
  991. Texture texture;
  992. bool tiled;
  993. TraversalMode traversalMode;
  994. /* readonly */
  995. StringHash type;
  996. /* readonly */
  997. String typeName;
  998. bool useDerivedOpacity;
  999. /* readonly */
  1000. VariantMap vars;
  1001. VerticalAlignment verticalAlignment;
  1002. bool visible;
  1003. /* readonly */
  1004. bool visibleEffective;
  1005. /* readonly */
  1006. int weakRefs;
  1007. int width;
  1008. };
  1009. class BoundingBox
  1010. {
  1011. public:
  1012. BoundingBox();
  1013. BoundingBox(const BoundingBox&in);
  1014. BoundingBox(const Rect&in);
  1015. BoundingBox(const Vector3&in, const Vector3&in);
  1016. BoundingBox(float, float);
  1017. BoundingBox(const Frustum&in);
  1018. BoundingBox(const Polyhedron&in);
  1019. BoundingBox(const Sphere&in);
  1020. // Methods:
  1021. void Clear();
  1022. void Clip(const BoundingBox&);
  1023. void Define(const BoundingBox&);
  1024. void Define(const Frustum&);
  1025. void Define(const Polyhedron&);
  1026. void Define(const Sphere&);
  1027. void Define(const Vector3&);
  1028. void Define(const Vector3&, const Vector3&);
  1029. void Define(float, float);
  1030. bool Defined() const;
  1031. Intersection IsInside(const BoundingBox&) const;
  1032. Intersection IsInside(const Sphere&) const;
  1033. Intersection IsInside(const Vector3&) const;
  1034. Intersection IsInsideFast(const BoundingBox&) const;
  1035. Intersection IsInsideFast(const Sphere&) const;
  1036. void Merge(const BoundingBox&);
  1037. void Merge(const Frustum&);
  1038. void Merge(const Polyhedron&);
  1039. void Merge(const Sphere&);
  1040. void Merge(const Vector3&);
  1041. Rect Projected(const Matrix4&) const;
  1042. String ToString() const;
  1043. void Transform(const Matrix3&);
  1044. void Transform(const Matrix3x4&);
  1045. BoundingBox Transformed(const Matrix3&) const;
  1046. BoundingBox Transformed(const Matrix3x4&) const;
  1047. // Properties:
  1048. /* readonly */
  1049. Vector3 center;
  1050. /* readonly */
  1051. Vector3 halfSize;
  1052. Vector3 max;
  1053. Vector3 min;
  1054. /* readonly */
  1055. Vector3 size;
  1056. };
  1057. class Button
  1058. {
  1059. public:
  1060. Button();
  1061. Button(const String&in);
  1062. // Methods:
  1063. void AddChild(UIElement);
  1064. void AddTag(const String&);
  1065. void AddTags(const String&, int8 = ';');
  1066. void ApplyAttributes();
  1067. void BringToFront();
  1068. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1069. void DisableLayoutUpdate();
  1070. IntVector2 ElementToScreen(const IntVector2&);
  1071. void EnableLayoutUpdate();
  1072. uint FindChild(UIElement) const;
  1073. Variant GetAttribute(const String&) const;
  1074. ValueAnimation GetAttributeAnimation(const String&) const;
  1075. float GetAttributeAnimationSpeed(const String&) const;
  1076. float GetAttributeAnimationTime(const String&) const;
  1077. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1078. Variant GetAttributeDefault(const String&) const;
  1079. UIElement GetChild(const String&, bool = false) const;
  1080. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1081. Array<UIElement> GetChildren(bool = false) const;
  1082. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1083. UIElement GetElementEventSender() const;
  1084. bool GetInterceptNetworkUpdate(const String&) const;
  1085. uint GetNumChildren(bool) const;
  1086. bool HasSubscribedToEvent(Object, const String&);
  1087. bool HasSubscribedToEvent(const String&);
  1088. bool HasTag(const String&) const;
  1089. void InsertChild(uint, UIElement);
  1090. bool IsInside(IntVector2, bool);
  1091. bool IsInsideCombined(IntVector2, bool);
  1092. bool Load(File, bool = false);
  1093. bool Load(VectorBuffer&, bool = false);
  1094. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1095. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1096. bool LoadJSON(const JSONValue&, bool = false);
  1097. bool LoadXML(File);
  1098. bool LoadXML(VectorBuffer&);
  1099. bool LoadXML(XMLFile, XMLFile);
  1100. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1101. bool LoadXML(const XMLElement&, bool = false);
  1102. void MarkNetworkUpdate() const;
  1103. void Remove();
  1104. void RemoveAllChildren();
  1105. void RemoveAllTags();
  1106. void RemoveAttributeAnimation(const String&);
  1107. void RemoveChild(UIElement, uint = 0);
  1108. void RemoveChild(uint);
  1109. void RemoveInstanceDefault();
  1110. void RemoveObjectAnimation();
  1111. bool RemoveTag(const String&);
  1112. void ResetDeepEnabled();
  1113. void ResetToDefault();
  1114. bool Save(File) const;
  1115. bool Save(VectorBuffer&) const;
  1116. bool SaveJSON(JSONValue&) const;
  1117. bool SaveXML(File, const String& = "\t");
  1118. bool SaveXML(VectorBuffer&, const String& = "\t");
  1119. bool SaveXML(XMLElement&) const;
  1120. IntVector2 ScreenToElement(const IntVector2&);
  1121. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1122. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1123. void SetAnimationTime(float);
  1124. bool SetAttribute(const String&, const Variant&);
  1125. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1126. void SetAttributeAnimationSpeed(const String&, float);
  1127. void SetAttributeAnimationTime(const String&, float);
  1128. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1129. void SetDeepEnabled(bool);
  1130. void SetEnabledRecursive(bool);
  1131. void SetFixedHeight(int);
  1132. void SetFixedSize(int, int);
  1133. void SetFixedWidth(int);
  1134. void SetFullImageRect();
  1135. void SetHoverOffset(int, int);
  1136. void SetInterceptNetworkUpdate(const String&, bool);
  1137. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1138. void SetMaxAnchor(float, float);
  1139. void SetMaxSize(int, int);
  1140. void SetMinAnchor(float, float);
  1141. void SetMinSize(int, int);
  1142. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1143. void SetPivot(float, float);
  1144. void SetPosition(int, int);
  1145. void SetPressedChildOffset(int, int);
  1146. void SetPressedOffset(int, int);
  1147. void SetRepeat(float, float);
  1148. void SetSize(int, int);
  1149. bool SetStyle(const String&, XMLFile = null);
  1150. bool SetStyle(const XMLElement&);
  1151. bool SetStyleAuto(XMLFile = null);
  1152. void UpdateLayout();
  1153. const Variant& GetVar(const StringHash&);
  1154. // Properties:
  1155. bool animationEnabled;
  1156. /* readonly */
  1157. Array<Variant> attributeDefaults;
  1158. /* readonly */
  1159. Array<AttributeInfo> attributeInfos;
  1160. Array<Variant> attributes;
  1161. BlendMode blendMode;
  1162. IntRect border;
  1163. bool bringToBack;
  1164. bool bringToFront;
  1165. /* readonly */
  1166. String category;
  1167. /* readonly */
  1168. IntVector2 childOffset;
  1169. /* readonly */
  1170. Array<UIElement> children;
  1171. IntRect clipBorder;
  1172. bool clipChildren;
  1173. /* writeonly */
  1174. Color color;
  1175. /* readonly */
  1176. bool colorGradient;
  1177. Array<Color> colors;
  1178. /* readonly */
  1179. IntRect combinedScreenRect;
  1180. XMLFile defaultStyle;
  1181. /* readonly */
  1182. float derivedOpacity;
  1183. /* readonly */
  1184. uint dragButtonCombo;
  1185. /* readonly */
  1186. int dragButtonCount;
  1187. uint dragDropMode;
  1188. bool editable;
  1189. bool elementEventSender;
  1190. bool enableAnchor;
  1191. bool enabled;
  1192. /* readonly */
  1193. bool enabledSelf;
  1194. /* readonly */
  1195. bool fixedHeight;
  1196. /* readonly */
  1197. bool fixedSize;
  1198. /* readonly */
  1199. bool fixedWidth;
  1200. bool focus;
  1201. FocusMode focusMode;
  1202. int height;
  1203. HorizontalAlignment horizontalAlignment;
  1204. IntVector2 hoverOffset;
  1205. /* readonly */
  1206. bool hovering;
  1207. IntRect imageBorder;
  1208. IntRect imageRect;
  1209. int indent;
  1210. int indentSpacing;
  1211. /* readonly */
  1212. int indentWidth;
  1213. bool internal;
  1214. IntRect layoutBorder;
  1215. Vector2 layoutFlexScale;
  1216. LayoutMode layoutMode;
  1217. int layoutSpacing;
  1218. Vector2 maxAnchor;
  1219. int maxHeight;
  1220. IntVector2 maxOffset;
  1221. IntVector2 maxSize;
  1222. int maxWidth;
  1223. Vector2 minAnchor;
  1224. int minHeight;
  1225. IntVector2 minOffset;
  1226. IntVector2 minSize;
  1227. int minWidth;
  1228. String name;
  1229. /* readonly */
  1230. uint numAllChildren;
  1231. /* readonly */
  1232. uint numAttributes;
  1233. /* readonly */
  1234. uint numChildren;
  1235. ObjectAnimation objectAnimation;
  1236. float opacity;
  1237. UIElement parent;
  1238. Vector2 pivot;
  1239. IntVector2 position;
  1240. /* readonly */
  1241. bool pressed;
  1242. IntVector2 pressedChildOffset;
  1243. IntVector2 pressedOffset;
  1244. int priority;
  1245. /* readonly */
  1246. int refs;
  1247. float repeatDelay;
  1248. float repeatRate;
  1249. /* readonly */
  1250. UIElement root;
  1251. /* readonly */
  1252. IntVector2 screenPosition;
  1253. bool selected;
  1254. IntVector2 size;
  1255. bool sortChildren;
  1256. String style;
  1257. /* readonly */
  1258. Array<String> tags;
  1259. bool temporary;
  1260. Texture texture;
  1261. bool tiled;
  1262. TraversalMode traversalMode;
  1263. /* readonly */
  1264. StringHash type;
  1265. /* readonly */
  1266. String typeName;
  1267. bool useDerivedOpacity;
  1268. /* readonly */
  1269. VariantMap vars;
  1270. VerticalAlignment verticalAlignment;
  1271. bool visible;
  1272. /* readonly */
  1273. bool visibleEffective;
  1274. /* readonly */
  1275. int weakRefs;
  1276. int width;
  1277. };
  1278. class Camera
  1279. {
  1280. public:
  1281. // Methods:
  1282. void ApplyAttributes();
  1283. void DrawDebugGeometry(DebugRenderer, bool);
  1284. Variant GetAttribute(const String&) const;
  1285. ValueAnimation GetAttributeAnimation(const String&) const;
  1286. float GetAttributeAnimationSpeed(const String&) const;
  1287. float GetAttributeAnimationTime(const String&) const;
  1288. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1289. Variant GetAttributeDefault(const String&) const;
  1290. float GetDistance(const Vector3&) const;
  1291. float GetDistanceSquared(const Vector3&) const;
  1292. bool GetInterceptNetworkUpdate(const String&) const;
  1293. Ray GetScreenRay(float, float) const;
  1294. Frustum GetSplitFrustum(float, float) const;
  1295. bool HasSubscribedToEvent(Object, const String&);
  1296. bool HasSubscribedToEvent(const String&);
  1297. bool Load(File, bool = false);
  1298. bool Load(VectorBuffer&, bool = false);
  1299. bool LoadJSON(const JSONValue&, bool = false);
  1300. bool LoadXML(const XMLElement&, bool = false);
  1301. void MarkNetworkUpdate() const;
  1302. void Remove();
  1303. void RemoveAttributeAnimation(const String&);
  1304. void RemoveInstanceDefault();
  1305. void RemoveObjectAnimation();
  1306. void ResetToDefault();
  1307. bool Save(File) const;
  1308. bool Save(VectorBuffer&) const;
  1309. bool SaveJSON(JSONValue&) const;
  1310. bool SaveXML(XMLElement&) const;
  1311. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1312. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1313. void SetAnimationTime(float);
  1314. bool SetAttribute(const String&, const Variant&);
  1315. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1316. void SetAttributeAnimationSpeed(const String&, float);
  1317. void SetAttributeAnimationTime(const String&, float);
  1318. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1319. void SetInterceptNetworkUpdate(const String&, bool);
  1320. void SetOrthoSize(const Vector2&);
  1321. Vector2 WorldToScreenPoint(const Vector3&) const;
  1322. // Properties:
  1323. bool animationEnabled;
  1324. float aspectRatio;
  1325. /* readonly */
  1326. Array<Variant> attributeDefaults;
  1327. /* readonly */
  1328. Array<AttributeInfo> attributeInfos;
  1329. Array<Variant> attributes;
  1330. bool autoAspectRatio;
  1331. /* readonly */
  1332. String category;
  1333. Plane clipPlane;
  1334. /* readonly */
  1335. Matrix3x4 effectiveWorldTransform;
  1336. bool enabled;
  1337. /* readonly */
  1338. bool enabledEffective;
  1339. float farClip;
  1340. FillMode fillMode;
  1341. float fov;
  1342. /* readonly */
  1343. Frustum frustum;
  1344. /* readonly */
  1345. Matrix4 gpuProjection;
  1346. /* readonly */
  1347. float halfViewSize;
  1348. /* readonly */
  1349. uint id;
  1350. float lodBias;
  1351. float nearClip;
  1352. /* readonly */
  1353. Node node;
  1354. /* readonly */
  1355. uint numAttributes;
  1356. ObjectAnimation objectAnimation;
  1357. float orthoSize;
  1358. bool orthographic;
  1359. Matrix4 projection;
  1360. Vector2 projectionOffset;
  1361. Plane reflectionPlane;
  1362. /* readonly */
  1363. int refs;
  1364. bool temporary;
  1365. /* readonly */
  1366. StringHash type;
  1367. /* readonly */
  1368. String typeName;
  1369. bool useClipping;
  1370. bool useReflection;
  1371. /* readonly */
  1372. Matrix3x4 view;
  1373. uint viewMask;
  1374. uint viewOverrideFlags;
  1375. /* readonly */
  1376. Frustum viewSpaceFrustum;
  1377. /* readonly */
  1378. int weakRefs;
  1379. float zoom;
  1380. };
  1381. class CascadeParameters
  1382. {
  1383. public:
  1384. CascadeParameters();
  1385. CascadeParameters(const CascadeParameters&in);
  1386. CascadeParameters(float, float, float, float, float, float biasAutoAdjust = 1.0);
  1387. // Properties:
  1388. float biasAutoAdjust;
  1389. float fadeStart;
  1390. float split1;
  1391. float split2;
  1392. float split3;
  1393. float split4;
  1394. };
  1395. class CheckBox
  1396. {
  1397. public:
  1398. CheckBox();
  1399. CheckBox(const String&in);
  1400. // Methods:
  1401. void AddChild(UIElement);
  1402. void AddTag(const String&);
  1403. void AddTags(const String&, int8 = ';');
  1404. void ApplyAttributes();
  1405. void BringToFront();
  1406. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1407. void DisableLayoutUpdate();
  1408. IntVector2 ElementToScreen(const IntVector2&);
  1409. void EnableLayoutUpdate();
  1410. uint FindChild(UIElement) const;
  1411. Variant GetAttribute(const String&) const;
  1412. ValueAnimation GetAttributeAnimation(const String&) const;
  1413. float GetAttributeAnimationSpeed(const String&) const;
  1414. float GetAttributeAnimationTime(const String&) const;
  1415. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1416. Variant GetAttributeDefault(const String&) const;
  1417. UIElement GetChild(const String&, bool = false) const;
  1418. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1419. Array<UIElement> GetChildren(bool = false) const;
  1420. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1421. UIElement GetElementEventSender() const;
  1422. bool GetInterceptNetworkUpdate(const String&) const;
  1423. uint GetNumChildren(bool) const;
  1424. bool HasSubscribedToEvent(Object, const String&);
  1425. bool HasSubscribedToEvent(const String&);
  1426. bool HasTag(const String&) const;
  1427. void InsertChild(uint, UIElement);
  1428. bool IsInside(IntVector2, bool);
  1429. bool IsInsideCombined(IntVector2, bool);
  1430. bool Load(File, bool = false);
  1431. bool Load(VectorBuffer&, bool = false);
  1432. UIElement LoadChildXML(XMLFile, XMLFile = null);
  1433. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1434. bool LoadJSON(const JSONValue&, bool = false);
  1435. bool LoadXML(File);
  1436. bool LoadXML(VectorBuffer&);
  1437. bool LoadXML(XMLFile, XMLFile);
  1438. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1439. bool LoadXML(const XMLElement&, bool = false);
  1440. void MarkNetworkUpdate() const;
  1441. void Remove();
  1442. void RemoveAllChildren();
  1443. void RemoveAllTags();
  1444. void RemoveAttributeAnimation(const String&);
  1445. void RemoveChild(UIElement, uint = 0);
  1446. void RemoveChild(uint);
  1447. void RemoveInstanceDefault();
  1448. void RemoveObjectAnimation();
  1449. bool RemoveTag(const String&);
  1450. void ResetDeepEnabled();
  1451. void ResetToDefault();
  1452. bool Save(File) const;
  1453. bool Save(VectorBuffer&) const;
  1454. bool SaveJSON(JSONValue&) const;
  1455. bool SaveXML(File, const String& = "\t");
  1456. bool SaveXML(VectorBuffer&, const String& = "\t");
  1457. bool SaveXML(XMLElement&) const;
  1458. IntVector2 ScreenToElement(const IntVector2&);
  1459. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1460. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1461. void SetAnimationTime(float);
  1462. bool SetAttribute(const String&, const Variant&);
  1463. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1464. void SetAttributeAnimationSpeed(const String&, float);
  1465. void SetAttributeAnimationTime(const String&, float);
  1466. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1467. void SetCheckedOffset(int, int);
  1468. void SetDeepEnabled(bool);
  1469. void SetEnabledRecursive(bool);
  1470. void SetFixedHeight(int);
  1471. void SetFixedSize(int, int);
  1472. void SetFixedWidth(int);
  1473. void SetFullImageRect();
  1474. void SetHoverOffset(int, int);
  1475. void SetInterceptNetworkUpdate(const String&, bool);
  1476. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1477. void SetMaxAnchor(float, float);
  1478. void SetMaxSize(int, int);
  1479. void SetMinAnchor(float, float);
  1480. void SetMinSize(int, int);
  1481. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1482. void SetPivot(float, float);
  1483. void SetPosition(int, int);
  1484. void SetSize(int, int);
  1485. bool SetStyle(const String&, XMLFile = null);
  1486. bool SetStyle(const XMLElement&);
  1487. bool SetStyleAuto(XMLFile = null);
  1488. void UpdateLayout();
  1489. const Variant& GetVar(const StringHash&);
  1490. // Properties:
  1491. bool animationEnabled;
  1492. /* readonly */
  1493. Array<Variant> attributeDefaults;
  1494. /* readonly */
  1495. Array<AttributeInfo> attributeInfos;
  1496. Array<Variant> attributes;
  1497. BlendMode blendMode;
  1498. IntRect border;
  1499. bool bringToBack;
  1500. bool bringToFront;
  1501. /* readonly */
  1502. String category;
  1503. bool checked;
  1504. IntVector2 checkedOffset;
  1505. /* readonly */
  1506. IntVector2 childOffset;
  1507. /* readonly */
  1508. Array<UIElement> children;
  1509. IntRect clipBorder;
  1510. bool clipChildren;
  1511. /* writeonly */
  1512. Color color;
  1513. /* readonly */
  1514. bool colorGradient;
  1515. Array<Color> colors;
  1516. /* readonly */
  1517. IntRect combinedScreenRect;
  1518. XMLFile defaultStyle;
  1519. /* readonly */
  1520. float derivedOpacity;
  1521. /* readonly */
  1522. uint dragButtonCombo;
  1523. /* readonly */
  1524. int dragButtonCount;
  1525. uint dragDropMode;
  1526. bool editable;
  1527. bool elementEventSender;
  1528. bool enableAnchor;
  1529. bool enabled;
  1530. /* readonly */
  1531. bool enabledSelf;
  1532. /* readonly */
  1533. bool fixedHeight;
  1534. /* readonly */
  1535. bool fixedSize;
  1536. /* readonly */
  1537. bool fixedWidth;
  1538. bool focus;
  1539. FocusMode focusMode;
  1540. int height;
  1541. HorizontalAlignment horizontalAlignment;
  1542. IntVector2 hoverOffset;
  1543. /* readonly */
  1544. bool hovering;
  1545. IntRect imageBorder;
  1546. IntRect imageRect;
  1547. int indent;
  1548. int indentSpacing;
  1549. /* readonly */
  1550. int indentWidth;
  1551. bool internal;
  1552. IntRect layoutBorder;
  1553. Vector2 layoutFlexScale;
  1554. LayoutMode layoutMode;
  1555. int layoutSpacing;
  1556. Vector2 maxAnchor;
  1557. int maxHeight;
  1558. IntVector2 maxOffset;
  1559. IntVector2 maxSize;
  1560. int maxWidth;
  1561. Vector2 minAnchor;
  1562. int minHeight;
  1563. IntVector2 minOffset;
  1564. IntVector2 minSize;
  1565. int minWidth;
  1566. String name;
  1567. /* readonly */
  1568. uint numAllChildren;
  1569. /* readonly */
  1570. uint numAttributes;
  1571. /* readonly */
  1572. uint numChildren;
  1573. ObjectAnimation objectAnimation;
  1574. float opacity;
  1575. UIElement parent;
  1576. Vector2 pivot;
  1577. IntVector2 position;
  1578. int priority;
  1579. /* readonly */
  1580. int refs;
  1581. /* readonly */
  1582. UIElement root;
  1583. /* readonly */
  1584. IntVector2 screenPosition;
  1585. bool selected;
  1586. IntVector2 size;
  1587. bool sortChildren;
  1588. String style;
  1589. /* readonly */
  1590. Array<String> tags;
  1591. bool temporary;
  1592. Texture texture;
  1593. bool tiled;
  1594. TraversalMode traversalMode;
  1595. /* readonly */
  1596. StringHash type;
  1597. /* readonly */
  1598. String typeName;
  1599. bool useDerivedOpacity;
  1600. /* readonly */
  1601. VariantMap vars;
  1602. VerticalAlignment verticalAlignment;
  1603. bool visible;
  1604. /* readonly */
  1605. bool visibleEffective;
  1606. /* readonly */
  1607. int weakRefs;
  1608. int width;
  1609. };
  1610. class CollisionBox2D
  1611. {
  1612. public:
  1613. // Methods:
  1614. void ApplyAttributes();
  1615. void DrawDebugGeometry(DebugRenderer, bool);
  1616. Variant GetAttribute(const String&) const;
  1617. ValueAnimation GetAttributeAnimation(const String&) const;
  1618. float GetAttributeAnimationSpeed(const String&) const;
  1619. float GetAttributeAnimationTime(const String&) const;
  1620. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1621. Variant GetAttributeDefault(const String&) const;
  1622. bool GetInterceptNetworkUpdate(const String&) const;
  1623. bool HasSubscribedToEvent(Object, const String&);
  1624. bool HasSubscribedToEvent(const String&);
  1625. bool Load(File, bool = false);
  1626. bool Load(VectorBuffer&, bool = false);
  1627. bool LoadJSON(const JSONValue&, bool = false);
  1628. bool LoadXML(const XMLElement&, bool = false);
  1629. void MarkNetworkUpdate() const;
  1630. void Remove();
  1631. void RemoveAttributeAnimation(const String&);
  1632. void RemoveInstanceDefault();
  1633. void RemoveObjectAnimation();
  1634. void ResetToDefault();
  1635. bool Save(File) const;
  1636. bool Save(VectorBuffer&) const;
  1637. bool SaveJSON(JSONValue&) const;
  1638. bool SaveXML(XMLElement&) const;
  1639. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1640. void SetAnimationTime(float);
  1641. bool SetAttribute(const String&, const Variant&);
  1642. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1643. void SetAttributeAnimationSpeed(const String&, float);
  1644. void SetAttributeAnimationTime(const String&, float);
  1645. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1646. void SetCenter(float, float);
  1647. void SetInterceptNetworkUpdate(const String&, bool);
  1648. void SetSize(float, float);
  1649. // Properties:
  1650. float angle;
  1651. bool animationEnabled;
  1652. /* readonly */
  1653. Array<Variant> attributeDefaults;
  1654. /* readonly */
  1655. Array<AttributeInfo> attributeInfos;
  1656. Array<Variant> attributes;
  1657. /* readonly */
  1658. String category;
  1659. int categoryBits;
  1660. Vector2 center;
  1661. float density;
  1662. bool enabled;
  1663. /* readonly */
  1664. bool enabledEffective;
  1665. float friction;
  1666. int groupIndex;
  1667. /* readonly */
  1668. uint id;
  1669. /* readonly */
  1670. float inertia;
  1671. int maskBits;
  1672. /* readonly */
  1673. float mass;
  1674. /* readonly */
  1675. Vector2 massCenter;
  1676. /* readonly */
  1677. Node node;
  1678. /* readonly */
  1679. uint numAttributes;
  1680. ObjectAnimation objectAnimation;
  1681. /* readonly */
  1682. int refs;
  1683. float restitution;
  1684. Vector2 size;
  1685. bool temporary;
  1686. bool trigger;
  1687. /* readonly */
  1688. StringHash type;
  1689. /* readonly */
  1690. String typeName;
  1691. /* readonly */
  1692. int weakRefs;
  1693. };
  1694. class CollisionChain2D
  1695. {
  1696. public:
  1697. // Methods:
  1698. void ApplyAttributes();
  1699. void DrawDebugGeometry(DebugRenderer, bool);
  1700. Variant GetAttribute(const String&) const;
  1701. ValueAnimation GetAttributeAnimation(const String&) const;
  1702. float GetAttributeAnimationSpeed(const String&) const;
  1703. float GetAttributeAnimationTime(const String&) const;
  1704. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1705. Variant GetAttributeDefault(const String&) const;
  1706. bool GetInterceptNetworkUpdate(const String&) const;
  1707. Array<Vector2> GetVertices() const;
  1708. bool HasSubscribedToEvent(Object, const String&);
  1709. bool HasSubscribedToEvent(const String&);
  1710. bool Load(File, bool = false);
  1711. bool Load(VectorBuffer&, bool = false);
  1712. bool LoadJSON(const JSONValue&, bool = false);
  1713. bool LoadXML(const XMLElement&, bool = false);
  1714. void MarkNetworkUpdate() const;
  1715. void Remove();
  1716. void RemoveAttributeAnimation(const String&);
  1717. void RemoveInstanceDefault();
  1718. void RemoveObjectAnimation();
  1719. void ResetToDefault();
  1720. bool Save(File) const;
  1721. bool Save(VectorBuffer&) const;
  1722. bool SaveJSON(JSONValue&) const;
  1723. bool SaveXML(XMLElement&) const;
  1724. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1725. void SetAnimationTime(float);
  1726. bool SetAttribute(const String&, const Variant&);
  1727. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1728. void SetAttributeAnimationSpeed(const String&, float);
  1729. void SetAttributeAnimationTime(const String&, float);
  1730. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1731. void SetInterceptNetworkUpdate(const String&, bool);
  1732. void SetVertex(uint, const Vector2&);
  1733. void SetVertices(Array<Vector2>);
  1734. const Vector2& GetVertex(uint) const;
  1735. // Properties:
  1736. bool animationEnabled;
  1737. /* readonly */
  1738. Array<Variant> attributeDefaults;
  1739. /* readonly */
  1740. Array<AttributeInfo> attributeInfos;
  1741. Array<Variant> attributes;
  1742. /* readonly */
  1743. String category;
  1744. int categoryBits;
  1745. float density;
  1746. bool enabled;
  1747. /* readonly */
  1748. bool enabledEffective;
  1749. float friction;
  1750. int groupIndex;
  1751. /* readonly */
  1752. uint id;
  1753. /* readonly */
  1754. float inertia;
  1755. bool loop;
  1756. int maskBits;
  1757. /* readonly */
  1758. float mass;
  1759. /* readonly */
  1760. Vector2 massCenter;
  1761. /* readonly */
  1762. Node node;
  1763. /* readonly */
  1764. uint numAttributes;
  1765. ObjectAnimation objectAnimation;
  1766. /* readonly */
  1767. int refs;
  1768. float restitution;
  1769. bool temporary;
  1770. bool trigger;
  1771. /* readonly */
  1772. StringHash type;
  1773. /* readonly */
  1774. String typeName;
  1775. uint vertexCount;
  1776. /* readonly */
  1777. int weakRefs;
  1778. };
  1779. class CollisionCircle2D
  1780. {
  1781. public:
  1782. // Methods:
  1783. void ApplyAttributes();
  1784. void DrawDebugGeometry(DebugRenderer, bool);
  1785. Variant GetAttribute(const String&) const;
  1786. ValueAnimation GetAttributeAnimation(const String&) const;
  1787. float GetAttributeAnimationSpeed(const String&) const;
  1788. float GetAttributeAnimationTime(const String&) const;
  1789. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1790. Variant GetAttributeDefault(const String&) const;
  1791. bool GetInterceptNetworkUpdate(const String&) const;
  1792. bool HasSubscribedToEvent(Object, const String&);
  1793. bool HasSubscribedToEvent(const String&);
  1794. bool Load(File, bool = false);
  1795. bool Load(VectorBuffer&, bool = false);
  1796. bool LoadJSON(const JSONValue&, bool = false);
  1797. bool LoadXML(const XMLElement&, bool = false);
  1798. void MarkNetworkUpdate() const;
  1799. void Remove();
  1800. void RemoveAttributeAnimation(const String&);
  1801. void RemoveInstanceDefault();
  1802. void RemoveObjectAnimation();
  1803. void ResetToDefault();
  1804. bool Save(File) const;
  1805. bool Save(VectorBuffer&) const;
  1806. bool SaveJSON(JSONValue&) const;
  1807. bool SaveXML(XMLElement&) const;
  1808. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1809. void SetAnimationTime(float);
  1810. bool SetAttribute(const String&, const Variant&);
  1811. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1812. void SetAttributeAnimationSpeed(const String&, float);
  1813. void SetAttributeAnimationTime(const String&, float);
  1814. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1815. void SetCenter(float, float);
  1816. void SetInterceptNetworkUpdate(const String&, bool);
  1817. // Properties:
  1818. bool animationEnabled;
  1819. /* readonly */
  1820. Array<Variant> attributeDefaults;
  1821. /* readonly */
  1822. Array<AttributeInfo> attributeInfos;
  1823. Array<Variant> attributes;
  1824. /* readonly */
  1825. String category;
  1826. int categoryBits;
  1827. Vector2 center;
  1828. float density;
  1829. bool enabled;
  1830. /* readonly */
  1831. bool enabledEffective;
  1832. float friction;
  1833. int groupIndex;
  1834. /* readonly */
  1835. uint id;
  1836. /* readonly */
  1837. float inertia;
  1838. int maskBits;
  1839. /* readonly */
  1840. float mass;
  1841. /* readonly */
  1842. Vector2 massCenter;
  1843. /* readonly */
  1844. Node node;
  1845. /* readonly */
  1846. uint numAttributes;
  1847. ObjectAnimation objectAnimation;
  1848. float radius;
  1849. /* readonly */
  1850. int refs;
  1851. float restitution;
  1852. bool temporary;
  1853. bool trigger;
  1854. /* readonly */
  1855. StringHash type;
  1856. /* readonly */
  1857. String typeName;
  1858. /* readonly */
  1859. int weakRefs;
  1860. };
  1861. class CollisionEdge2D
  1862. {
  1863. public:
  1864. // Methods:
  1865. void ApplyAttributes();
  1866. void DrawDebugGeometry(DebugRenderer, bool);
  1867. Variant GetAttribute(const String&) const;
  1868. ValueAnimation GetAttributeAnimation(const String&) const;
  1869. float GetAttributeAnimationSpeed(const String&) const;
  1870. float GetAttributeAnimationTime(const String&) const;
  1871. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1872. Variant GetAttributeDefault(const String&) const;
  1873. bool GetInterceptNetworkUpdate(const String&) const;
  1874. bool HasSubscribedToEvent(Object, const String&);
  1875. bool HasSubscribedToEvent(const String&);
  1876. bool Load(File, bool = false);
  1877. bool Load(VectorBuffer&, bool = false);
  1878. bool LoadJSON(const JSONValue&, bool = false);
  1879. bool LoadXML(const XMLElement&, bool = false);
  1880. void MarkNetworkUpdate() const;
  1881. void Remove();
  1882. void RemoveAttributeAnimation(const String&);
  1883. void RemoveInstanceDefault();
  1884. void RemoveObjectAnimation();
  1885. void ResetToDefault();
  1886. bool Save(File) const;
  1887. bool Save(VectorBuffer&) const;
  1888. bool SaveJSON(JSONValue&) const;
  1889. bool SaveXML(XMLElement&) const;
  1890. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1891. void SetAnimationTime(float);
  1892. bool SetAttribute(const String&, const Variant&);
  1893. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1894. void SetAttributeAnimationSpeed(const String&, float);
  1895. void SetAttributeAnimationTime(const String&, float);
  1896. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1897. void SetInterceptNetworkUpdate(const String&, bool);
  1898. void SetVertices(const Vector2&, const Vector2&);
  1899. // Properties:
  1900. bool animationEnabled;
  1901. /* readonly */
  1902. Array<Variant> attributeDefaults;
  1903. /* readonly */
  1904. Array<AttributeInfo> attributeInfos;
  1905. Array<Variant> attributes;
  1906. /* readonly */
  1907. String category;
  1908. int categoryBits;
  1909. float density;
  1910. bool enabled;
  1911. /* readonly */
  1912. bool enabledEffective;
  1913. float friction;
  1914. int groupIndex;
  1915. /* readonly */
  1916. uint id;
  1917. /* readonly */
  1918. float inertia;
  1919. int maskBits;
  1920. /* readonly */
  1921. float mass;
  1922. /* readonly */
  1923. Vector2 massCenter;
  1924. /* readonly */
  1925. Node node;
  1926. /* readonly */
  1927. uint numAttributes;
  1928. ObjectAnimation objectAnimation;
  1929. /* readonly */
  1930. int refs;
  1931. float restitution;
  1932. bool temporary;
  1933. bool trigger;
  1934. /* readonly */
  1935. StringHash type;
  1936. /* readonly */
  1937. String typeName;
  1938. Vector2 vertex1;
  1939. Vector2 vertex2;
  1940. /* readonly */
  1941. int weakRefs;
  1942. };
  1943. class CollisionPolygon2D
  1944. {
  1945. public:
  1946. // Methods:
  1947. void ApplyAttributes();
  1948. void DrawDebugGeometry(DebugRenderer, bool);
  1949. Variant GetAttribute(const String&) const;
  1950. ValueAnimation GetAttributeAnimation(const String&) const;
  1951. float GetAttributeAnimationSpeed(const String&) const;
  1952. float GetAttributeAnimationTime(const String&) const;
  1953. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1954. Variant GetAttributeDefault(const String&) const;
  1955. bool GetInterceptNetworkUpdate(const String&) const;
  1956. Array<Vector2> GetVertices() const;
  1957. bool HasSubscribedToEvent(Object, const String&);
  1958. bool HasSubscribedToEvent(const String&);
  1959. bool Load(File, bool = false);
  1960. bool Load(VectorBuffer&, bool = false);
  1961. bool LoadJSON(const JSONValue&, bool = false);
  1962. bool LoadXML(const XMLElement&, bool = false);
  1963. void MarkNetworkUpdate() const;
  1964. void Remove();
  1965. void RemoveAttributeAnimation(const String&);
  1966. void RemoveInstanceDefault();
  1967. void RemoveObjectAnimation();
  1968. void ResetToDefault();
  1969. bool Save(File) const;
  1970. bool Save(VectorBuffer&) const;
  1971. bool SaveJSON(JSONValue&) const;
  1972. bool SaveXML(XMLElement&) const;
  1973. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1974. void SetAnimationTime(float);
  1975. bool SetAttribute(const String&, const Variant&);
  1976. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1977. void SetAttributeAnimationSpeed(const String&, float);
  1978. void SetAttributeAnimationTime(const String&, float);
  1979. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1980. void SetInterceptNetworkUpdate(const String&, bool);
  1981. void SetVertex(uint, const Vector2&);
  1982. void SetVertices(Array<Vector2>);
  1983. const Vector2& GetVertex(uint) const;
  1984. // Properties:
  1985. bool animationEnabled;
  1986. /* readonly */
  1987. Array<Variant> attributeDefaults;
  1988. /* readonly */
  1989. Array<AttributeInfo> attributeInfos;
  1990. Array<Variant> attributes;
  1991. /* readonly */
  1992. String category;
  1993. int categoryBits;
  1994. float density;
  1995. bool enabled;
  1996. /* readonly */
  1997. bool enabledEffective;
  1998. float friction;
  1999. int groupIndex;
  2000. /* readonly */
  2001. uint id;
  2002. /* readonly */
  2003. float inertia;
  2004. int maskBits;
  2005. /* readonly */
  2006. float mass;
  2007. /* readonly */
  2008. Vector2 massCenter;
  2009. /* readonly */
  2010. Node node;
  2011. /* readonly */
  2012. uint numAttributes;
  2013. ObjectAnimation objectAnimation;
  2014. /* readonly */
  2015. int refs;
  2016. float restitution;
  2017. bool temporary;
  2018. bool trigger;
  2019. /* readonly */
  2020. StringHash type;
  2021. /* readonly */
  2022. String typeName;
  2023. uint vertexCount;
  2024. /* readonly */
  2025. int weakRefs;
  2026. };
  2027. class CollisionShape
  2028. {
  2029. public:
  2030. // Methods:
  2031. void ApplyAttributes();
  2032. void DrawDebugGeometry(DebugRenderer, bool);
  2033. Variant GetAttribute(const String&) const;
  2034. ValueAnimation GetAttributeAnimation(const String&) const;
  2035. float GetAttributeAnimationSpeed(const String&) const;
  2036. float GetAttributeAnimationTime(const String&) const;
  2037. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2038. Variant GetAttributeDefault(const String&) const;
  2039. bool GetInterceptNetworkUpdate(const String&) const;
  2040. bool HasSubscribedToEvent(Object, const String&);
  2041. bool HasSubscribedToEvent(const String&);
  2042. bool Load(File, bool = false);
  2043. bool Load(VectorBuffer&, bool = false);
  2044. bool LoadJSON(const JSONValue&, bool = false);
  2045. bool LoadXML(const XMLElement&, bool = false);
  2046. void MarkNetworkUpdate() const;
  2047. void Remove();
  2048. void RemoveAttributeAnimation(const String&);
  2049. void RemoveInstanceDefault();
  2050. void RemoveObjectAnimation();
  2051. void ResetToDefault();
  2052. bool Save(File) const;
  2053. bool Save(VectorBuffer&) const;
  2054. bool SaveJSON(JSONValue&) const;
  2055. bool SaveXML(XMLElement&) const;
  2056. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2057. void SetAnimationTime(float);
  2058. bool SetAttribute(const String&, const Variant&);
  2059. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2060. void SetAttributeAnimationSpeed(const String&, float);
  2061. void SetAttributeAnimationTime(const String&, float);
  2062. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2063. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2064. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2065. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2066. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2067. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2068. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2069. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2070. void SetInterceptNetworkUpdate(const String&, bool);
  2071. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2072. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2073. void SetTerrain(uint = 0);
  2074. void SetTransform(const Vector3&, const Quaternion&);
  2075. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2076. // Properties:
  2077. bool animationEnabled;
  2078. /* readonly */
  2079. Array<Variant> attributeDefaults;
  2080. /* readonly */
  2081. Array<AttributeInfo> attributeInfos;
  2082. Array<Variant> attributes;
  2083. /* readonly */
  2084. String category;
  2085. bool enabled;
  2086. /* readonly */
  2087. bool enabledEffective;
  2088. /* readonly */
  2089. uint id;
  2090. uint lodLevel;
  2091. float margin;
  2092. Model model;
  2093. /* readonly */
  2094. Node node;
  2095. /* readonly */
  2096. uint numAttributes;
  2097. ObjectAnimation objectAnimation;
  2098. Vector3 position;
  2099. /* readonly */
  2100. int refs;
  2101. Quaternion rotation;
  2102. ShapeType shapeType;
  2103. Vector3 size;
  2104. bool temporary;
  2105. /* readonly */
  2106. StringHash type;
  2107. /* readonly */
  2108. String typeName;
  2109. /* readonly */
  2110. int weakRefs;
  2111. /* readonly */
  2112. BoundingBox worldBoundingBox;
  2113. };
  2114. class CollisionShape2D
  2115. {
  2116. public:
  2117. // Methods:
  2118. void ApplyAttributes();
  2119. void DrawDebugGeometry(DebugRenderer, bool);
  2120. Variant GetAttribute(const String&) const;
  2121. ValueAnimation GetAttributeAnimation(const String&) const;
  2122. float GetAttributeAnimationSpeed(const String&) const;
  2123. float GetAttributeAnimationTime(const String&) const;
  2124. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2125. Variant GetAttributeDefault(const String&) const;
  2126. bool GetInterceptNetworkUpdate(const String&) const;
  2127. bool HasSubscribedToEvent(Object, const String&);
  2128. bool HasSubscribedToEvent(const String&);
  2129. bool Load(File, bool = false);
  2130. bool Load(VectorBuffer&, bool = false);
  2131. bool LoadJSON(const JSONValue&, bool = false);
  2132. bool LoadXML(const XMLElement&, bool = false);
  2133. void MarkNetworkUpdate() const;
  2134. void Remove();
  2135. void RemoveAttributeAnimation(const String&);
  2136. void RemoveInstanceDefault();
  2137. void RemoveObjectAnimation();
  2138. void ResetToDefault();
  2139. bool Save(File) const;
  2140. bool Save(VectorBuffer&) const;
  2141. bool SaveJSON(JSONValue&) const;
  2142. bool SaveXML(XMLElement&) const;
  2143. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2144. void SetAnimationTime(float);
  2145. bool SetAttribute(const String&, const Variant&);
  2146. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2147. void SetAttributeAnimationSpeed(const String&, float);
  2148. void SetAttributeAnimationTime(const String&, float);
  2149. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2150. void SetInterceptNetworkUpdate(const String&, bool);
  2151. // Properties:
  2152. bool animationEnabled;
  2153. /* readonly */
  2154. Array<Variant> attributeDefaults;
  2155. /* readonly */
  2156. Array<AttributeInfo> attributeInfos;
  2157. Array<Variant> attributes;
  2158. /* readonly */
  2159. String category;
  2160. int categoryBits;
  2161. float density;
  2162. bool enabled;
  2163. /* readonly */
  2164. bool enabledEffective;
  2165. float friction;
  2166. int groupIndex;
  2167. /* readonly */
  2168. uint id;
  2169. /* readonly */
  2170. float inertia;
  2171. int maskBits;
  2172. /* readonly */
  2173. float mass;
  2174. /* readonly */
  2175. Vector2 massCenter;
  2176. /* readonly */
  2177. Node node;
  2178. /* readonly */
  2179. uint numAttributes;
  2180. ObjectAnimation objectAnimation;
  2181. /* readonly */
  2182. int refs;
  2183. float restitution;
  2184. bool temporary;
  2185. bool trigger;
  2186. /* readonly */
  2187. StringHash type;
  2188. /* readonly */
  2189. String typeName;
  2190. /* readonly */
  2191. int weakRefs;
  2192. };
  2193. class Color
  2194. {
  2195. public:
  2196. Color();
  2197. Color(const Color&in);
  2198. Color(float, float, float, float);
  2199. Color(float, float, float);
  2200. Color(float[]&inout);
  2201. // Methods:
  2202. Color Abs() const;
  2203. float Average() const;
  2204. float Chroma() const;
  2205. void Clip(bool);
  2206. bool Equals() const;
  2207. void FromHSL(float, float, float, float);
  2208. void FromHSV(float, float, float, float);
  2209. float Hue() const;
  2210. void Invert(bool);
  2211. Color Lerp(const Color&, float) const;
  2212. float Lightness() const;
  2213. float Luma() const;
  2214. float MaxRGB() const;
  2215. float MinRGB() const;
  2216. float Range() const;
  2217. float SaturationHSL() const;
  2218. float SaturationHSV() const;
  2219. float SumRGB() const;
  2220. Vector3 ToHSL() const;
  2221. Vector3 ToHSV() const;
  2222. String ToString() const;
  2223. uint ToUInt() const;
  2224. float Value() const;
  2225. // Properties:
  2226. float a;
  2227. float b;
  2228. /* readonly */
  2229. Array<float> data;
  2230. float g;
  2231. float r;
  2232. /* readonly */
  2233. Vector3 rgb;
  2234. /* readonly */
  2235. Vector4 rgba;
  2236. };
  2237. class ColorFrame
  2238. {
  2239. public:
  2240. // Properties:
  2241. Color color;
  2242. float time;
  2243. };
  2244. class Component
  2245. {
  2246. public:
  2247. // Methods:
  2248. void ApplyAttributes();
  2249. void DrawDebugGeometry(DebugRenderer, bool);
  2250. Variant GetAttribute(const String&) const;
  2251. ValueAnimation GetAttributeAnimation(const String&) const;
  2252. float GetAttributeAnimationSpeed(const String&) const;
  2253. float GetAttributeAnimationTime(const String&) const;
  2254. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2255. Variant GetAttributeDefault(const String&) const;
  2256. bool GetInterceptNetworkUpdate(const String&) const;
  2257. bool HasSubscribedToEvent(Object, const String&);
  2258. bool HasSubscribedToEvent(const String&);
  2259. bool Load(File, bool = false);
  2260. bool Load(VectorBuffer&, bool = false);
  2261. bool LoadJSON(const JSONValue&, bool = false);
  2262. bool LoadXML(const XMLElement&, bool = false);
  2263. void MarkNetworkUpdate() const;
  2264. void Remove();
  2265. void RemoveAttributeAnimation(const String&);
  2266. void RemoveInstanceDefault();
  2267. void RemoveObjectAnimation();
  2268. void ResetToDefault();
  2269. bool Save(File) const;
  2270. bool Save(VectorBuffer&) const;
  2271. bool SaveJSON(JSONValue&) const;
  2272. bool SaveXML(XMLElement&) const;
  2273. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2274. void SetAnimationTime(float);
  2275. bool SetAttribute(const String&, const Variant&);
  2276. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2277. void SetAttributeAnimationSpeed(const String&, float);
  2278. void SetAttributeAnimationTime(const String&, float);
  2279. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2280. void SetInterceptNetworkUpdate(const String&, bool);
  2281. // Properties:
  2282. bool animationEnabled;
  2283. /* readonly */
  2284. Array<Variant> attributeDefaults;
  2285. /* readonly */
  2286. Array<AttributeInfo> attributeInfos;
  2287. Array<Variant> attributes;
  2288. /* readonly */
  2289. String category;
  2290. bool enabled;
  2291. /* readonly */
  2292. bool enabledEffective;
  2293. /* readonly */
  2294. uint id;
  2295. /* readonly */
  2296. Node node;
  2297. /* readonly */
  2298. uint numAttributes;
  2299. ObjectAnimation objectAnimation;
  2300. /* readonly */
  2301. int refs;
  2302. bool temporary;
  2303. /* readonly */
  2304. StringHash type;
  2305. /* readonly */
  2306. String typeName;
  2307. /* readonly */
  2308. int weakRefs;
  2309. };
  2310. class Connection
  2311. {
  2312. public:
  2313. // Methods:
  2314. void Disconnect(int = 0);
  2315. bool HasSubscribedToEvent(Object, const String&);
  2316. bool HasSubscribedToEvent(const String&);
  2317. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2318. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2319. void SendPackageToClient(PackageFile);
  2320. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2321. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2322. String ToString() const;
  2323. // Properties:
  2324. /* readonly */
  2325. String address;
  2326. /* readonly */
  2327. float bytesInPerSec;
  2328. /* readonly */
  2329. float bytesOutPerSec;
  2330. /* readonly */
  2331. String category;
  2332. /* readonly */
  2333. bool client;
  2334. /* readonly */
  2335. bool connectPending;
  2336. /* readonly */
  2337. bool connected;
  2338. Controls controls;
  2339. /* readonly */
  2340. String downloadName;
  2341. /* readonly */
  2342. float downloadProgress;
  2343. VariantMap identity;
  2344. /* readonly */
  2345. float lastHeardTime;
  2346. bool logStatistics;
  2347. /* readonly */
  2348. uint numDownloads;
  2349. /* readonly */
  2350. float packetsInPerSec;
  2351. /* readonly */
  2352. float packetsOutPerSec;
  2353. /* readonly */
  2354. uint16 port;
  2355. Vector3 position;
  2356. /* readonly */
  2357. int refs;
  2358. Quaternion rotation;
  2359. /* readonly */
  2360. float roundTripTime;
  2361. Scene scene;
  2362. /* readonly */
  2363. bool sceneLoaded;
  2364. uint8 timeStamp;
  2365. /* readonly */
  2366. StringHash type;
  2367. /* readonly */
  2368. String typeName;
  2369. /* readonly */
  2370. int weakRefs;
  2371. };
  2372. class Console
  2373. {
  2374. public:
  2375. // Methods:
  2376. void AddAutoComplete(const String&);
  2377. void CopySelectedRows() const;
  2378. bool HasSubscribedToEvent(Object, const String&);
  2379. bool HasSubscribedToEvent(const String&);
  2380. void RemoveAutoComplete(const String&);
  2381. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2382. void Toggle();
  2383. void UpdateElements();
  2384. // Properties:
  2385. bool autoVisibleOnError;
  2386. /* readonly */
  2387. BorderImage background;
  2388. /* readonly */
  2389. String category;
  2390. /* readonly */
  2391. Button closeButton;
  2392. String commandInterpreter;
  2393. XMLFile defaultStyle;
  2394. bool focusOnShow;
  2395. /* readonly */
  2396. uint historyPosition;
  2397. /* readonly */
  2398. Array<String> historyRow;
  2399. /* readonly */
  2400. LineEdit lineEdit;
  2401. uint numBufferedRows;
  2402. uint numHistoryRows;
  2403. uint numRows;
  2404. /* readonly */
  2405. int refs;
  2406. /* readonly */
  2407. StringHash type;
  2408. /* readonly */
  2409. String typeName;
  2410. bool visible;
  2411. /* readonly */
  2412. int weakRefs;
  2413. };
  2414. class Constraint
  2415. {
  2416. public:
  2417. // Methods:
  2418. void ApplyAttributes();
  2419. void DrawDebugGeometry(DebugRenderer, bool);
  2420. Variant GetAttribute(const String&) const;
  2421. ValueAnimation GetAttributeAnimation(const String&) const;
  2422. float GetAttributeAnimationSpeed(const String&) const;
  2423. float GetAttributeAnimationTime(const String&) const;
  2424. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2425. Variant GetAttributeDefault(const String&) const;
  2426. bool GetInterceptNetworkUpdate(const String&) const;
  2427. bool HasSubscribedToEvent(Object, const String&);
  2428. bool HasSubscribedToEvent(const String&);
  2429. bool Load(File, bool = false);
  2430. bool Load(VectorBuffer&, bool = false);
  2431. bool LoadJSON(const JSONValue&, bool = false);
  2432. bool LoadXML(const XMLElement&, bool = false);
  2433. void MarkNetworkUpdate() const;
  2434. void Remove();
  2435. void RemoveAttributeAnimation(const String&);
  2436. void RemoveInstanceDefault();
  2437. void RemoveObjectAnimation();
  2438. void ResetToDefault();
  2439. bool Save(File) const;
  2440. bool Save(VectorBuffer&) const;
  2441. bool SaveJSON(JSONValue&) const;
  2442. bool SaveXML(XMLElement&) const;
  2443. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2444. void SetAnimationTime(float);
  2445. bool SetAttribute(const String&, const Variant&);
  2446. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2447. void SetAttributeAnimationSpeed(const String&, float);
  2448. void SetAttributeAnimationTime(const String&, float);
  2449. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2450. void SetInterceptNetworkUpdate(const String&, bool);
  2451. // Properties:
  2452. bool animationEnabled;
  2453. /* readonly */
  2454. Array<Variant> attributeDefaults;
  2455. /* readonly */
  2456. Array<AttributeInfo> attributeInfos;
  2457. Array<Variant> attributes;
  2458. /* writeonly */
  2459. Vector3 axis;
  2460. /* readonly */
  2461. String category;
  2462. float cfm;
  2463. ConstraintType constraintType;
  2464. bool disableCollision;
  2465. bool enabled;
  2466. /* readonly */
  2467. bool enabledEffective;
  2468. float erp;
  2469. Vector2 highLimit;
  2470. /* readonly */
  2471. uint id;
  2472. Vector2 lowLimit;
  2473. /* readonly */
  2474. Node node;
  2475. /* readonly */
  2476. uint numAttributes;
  2477. ObjectAnimation objectAnimation;
  2478. /* writeonly */
  2479. Vector3 otherAxis;
  2480. RigidBody otherBody;
  2481. Vector3 otherPosition;
  2482. Quaternion otherRotation;
  2483. /* readonly */
  2484. RigidBody ownBody;
  2485. Vector3 position;
  2486. /* readonly */
  2487. int refs;
  2488. Quaternion rotation;
  2489. bool temporary;
  2490. /* readonly */
  2491. StringHash type;
  2492. /* readonly */
  2493. String typeName;
  2494. /* readonly */
  2495. int weakRefs;
  2496. Vector3 worldPosition;
  2497. };
  2498. class Constraint2D
  2499. {
  2500. public:
  2501. // Methods:
  2502. void ApplyAttributes();
  2503. void DrawDebugGeometry(DebugRenderer, bool);
  2504. Variant GetAttribute(const String&) const;
  2505. ValueAnimation GetAttributeAnimation(const String&) const;
  2506. float GetAttributeAnimationSpeed(const String&) const;
  2507. float GetAttributeAnimationTime(const String&) const;
  2508. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2509. Variant GetAttributeDefault(const String&) const;
  2510. bool GetInterceptNetworkUpdate(const String&) const;
  2511. bool HasSubscribedToEvent(Object, const String&);
  2512. bool HasSubscribedToEvent(const String&);
  2513. bool Load(File, bool = false);
  2514. bool Load(VectorBuffer&, bool = false);
  2515. bool LoadJSON(const JSONValue&, bool = false);
  2516. bool LoadXML(const XMLElement&, bool = false);
  2517. void MarkNetworkUpdate() const;
  2518. void Remove();
  2519. void RemoveAttributeAnimation(const String&);
  2520. void RemoveInstanceDefault();
  2521. void RemoveObjectAnimation();
  2522. void ResetToDefault();
  2523. bool Save(File) const;
  2524. bool Save(VectorBuffer&) const;
  2525. bool SaveJSON(JSONValue&) const;
  2526. bool SaveXML(XMLElement&) const;
  2527. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2528. void SetAnimationTime(float);
  2529. bool SetAttribute(const String&, const Variant&);
  2530. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2531. void SetAttributeAnimationSpeed(const String&, float);
  2532. void SetAttributeAnimationTime(const String&, float);
  2533. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2534. void SetInterceptNetworkUpdate(const String&, bool);
  2535. // Properties:
  2536. bool animationEnabled;
  2537. /* readonly */
  2538. Array<Variant> attributeDefaults;
  2539. /* readonly */
  2540. Array<AttributeInfo> attributeInfos;
  2541. Array<Variant> attributes;
  2542. /* readonly */
  2543. String category;
  2544. bool collideConnected;
  2545. bool enabled;
  2546. /* readonly */
  2547. bool enabledEffective;
  2548. /* readonly */
  2549. uint id;
  2550. /* readonly */
  2551. Node node;
  2552. /* readonly */
  2553. uint numAttributes;
  2554. ObjectAnimation objectAnimation;
  2555. RigidBody2D otherBody;
  2556. /* readonly */
  2557. RigidBody2D ownerBody;
  2558. /* readonly */
  2559. int refs;
  2560. bool temporary;
  2561. /* readonly */
  2562. StringHash type;
  2563. /* readonly */
  2564. String typeName;
  2565. /* readonly */
  2566. int weakRefs;
  2567. };
  2568. class ConstraintDistance2D
  2569. {
  2570. public:
  2571. // Methods:
  2572. void ApplyAttributes();
  2573. void DrawDebugGeometry(DebugRenderer, bool);
  2574. Variant GetAttribute(const String&) const;
  2575. ValueAnimation GetAttributeAnimation(const String&) const;
  2576. float GetAttributeAnimationSpeed(const String&) const;
  2577. float GetAttributeAnimationTime(const String&) const;
  2578. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2579. Variant GetAttributeDefault(const String&) const;
  2580. bool GetInterceptNetworkUpdate(const String&) const;
  2581. bool HasSubscribedToEvent(Object, const String&);
  2582. bool HasSubscribedToEvent(const String&);
  2583. bool Load(File, bool = false);
  2584. bool Load(VectorBuffer&, bool = false);
  2585. bool LoadJSON(const JSONValue&, bool = false);
  2586. bool LoadXML(const XMLElement&, bool = false);
  2587. void MarkNetworkUpdate() const;
  2588. void Remove();
  2589. void RemoveAttributeAnimation(const String&);
  2590. void RemoveInstanceDefault();
  2591. void RemoveObjectAnimation();
  2592. void ResetToDefault();
  2593. bool Save(File) const;
  2594. bool Save(VectorBuffer&) const;
  2595. bool SaveJSON(JSONValue&) const;
  2596. bool SaveXML(XMLElement&) const;
  2597. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2598. void SetAnimationTime(float);
  2599. bool SetAttribute(const String&, const Variant&);
  2600. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2601. void SetAttributeAnimationSpeed(const String&, float);
  2602. void SetAttributeAnimationTime(const String&, float);
  2603. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2604. void SetInterceptNetworkUpdate(const String&, bool);
  2605. // Properties:
  2606. bool animationEnabled;
  2607. /* readonly */
  2608. Array<Variant> attributeDefaults;
  2609. /* readonly */
  2610. Array<AttributeInfo> attributeInfos;
  2611. Array<Variant> attributes;
  2612. /* readonly */
  2613. String category;
  2614. bool collideConnected;
  2615. float dampingRatio;
  2616. bool enabled;
  2617. /* readonly */
  2618. bool enabledEffective;
  2619. float frequencyHz;
  2620. /* readonly */
  2621. uint id;
  2622. float length;
  2623. /* readonly */
  2624. Node node;
  2625. /* readonly */
  2626. uint numAttributes;
  2627. ObjectAnimation objectAnimation;
  2628. RigidBody2D otherBody;
  2629. Vector2 otherBodyAnchor;
  2630. /* readonly */
  2631. RigidBody2D ownerBody;
  2632. Vector2 ownerBodyAnchor;
  2633. /* readonly */
  2634. int refs;
  2635. bool temporary;
  2636. /* readonly */
  2637. StringHash type;
  2638. /* readonly */
  2639. String typeName;
  2640. /* readonly */
  2641. int weakRefs;
  2642. };
  2643. class ConstraintFriction2D
  2644. {
  2645. public:
  2646. // Methods:
  2647. void ApplyAttributes();
  2648. void DrawDebugGeometry(DebugRenderer, bool);
  2649. Variant GetAttribute(const String&) const;
  2650. ValueAnimation GetAttributeAnimation(const String&) const;
  2651. float GetAttributeAnimationSpeed(const String&) const;
  2652. float GetAttributeAnimationTime(const String&) const;
  2653. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2654. Variant GetAttributeDefault(const String&) const;
  2655. bool GetInterceptNetworkUpdate(const String&) const;
  2656. bool HasSubscribedToEvent(Object, const String&);
  2657. bool HasSubscribedToEvent(const String&);
  2658. bool Load(File, bool = false);
  2659. bool Load(VectorBuffer&, bool = false);
  2660. bool LoadJSON(const JSONValue&, bool = false);
  2661. bool LoadXML(const XMLElement&, bool = false);
  2662. void MarkNetworkUpdate() const;
  2663. void Remove();
  2664. void RemoveAttributeAnimation(const String&);
  2665. void RemoveInstanceDefault();
  2666. void RemoveObjectAnimation();
  2667. void ResetToDefault();
  2668. bool Save(File) const;
  2669. bool Save(VectorBuffer&) const;
  2670. bool SaveJSON(JSONValue&) const;
  2671. bool SaveXML(XMLElement&) const;
  2672. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2673. void SetAnimationTime(float);
  2674. bool SetAttribute(const String&, const Variant&);
  2675. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2676. void SetAttributeAnimationSpeed(const String&, float);
  2677. void SetAttributeAnimationTime(const String&, float);
  2678. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2679. void SetInterceptNetworkUpdate(const String&, bool);
  2680. // Properties:
  2681. Vector2 anchor;
  2682. bool animationEnabled;
  2683. /* readonly */
  2684. Array<Variant> attributeDefaults;
  2685. /* readonly */
  2686. Array<AttributeInfo> attributeInfos;
  2687. Array<Variant> attributes;
  2688. /* readonly */
  2689. String category;
  2690. bool collideConnected;
  2691. bool enabled;
  2692. /* readonly */
  2693. bool enabledEffective;
  2694. /* readonly */
  2695. uint id;
  2696. float maxForce;
  2697. float maxTorque;
  2698. /* readonly */
  2699. Node node;
  2700. /* readonly */
  2701. uint numAttributes;
  2702. ObjectAnimation objectAnimation;
  2703. RigidBody2D otherBody;
  2704. /* readonly */
  2705. RigidBody2D ownerBody;
  2706. /* readonly */
  2707. int refs;
  2708. bool temporary;
  2709. /* readonly */
  2710. StringHash type;
  2711. /* readonly */
  2712. String typeName;
  2713. /* readonly */
  2714. int weakRefs;
  2715. };
  2716. class ConstraintGear2D
  2717. {
  2718. public:
  2719. // Methods:
  2720. void ApplyAttributes();
  2721. void DrawDebugGeometry(DebugRenderer, bool);
  2722. Variant GetAttribute(const String&) const;
  2723. ValueAnimation GetAttributeAnimation(const String&) const;
  2724. float GetAttributeAnimationSpeed(const String&) const;
  2725. float GetAttributeAnimationTime(const String&) const;
  2726. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2727. Variant GetAttributeDefault(const String&) const;
  2728. bool GetInterceptNetworkUpdate(const String&) const;
  2729. bool HasSubscribedToEvent(Object, const String&);
  2730. bool HasSubscribedToEvent(const String&);
  2731. bool Load(File, bool = false);
  2732. bool Load(VectorBuffer&, bool = false);
  2733. bool LoadJSON(const JSONValue&, bool = false);
  2734. bool LoadXML(const XMLElement&, bool = false);
  2735. void MarkNetworkUpdate() const;
  2736. void Remove();
  2737. void RemoveAttributeAnimation(const String&);
  2738. void RemoveInstanceDefault();
  2739. void RemoveObjectAnimation();
  2740. void ResetToDefault();
  2741. bool Save(File) const;
  2742. bool Save(VectorBuffer&) const;
  2743. bool SaveJSON(JSONValue&) const;
  2744. bool SaveXML(XMLElement&) const;
  2745. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2746. void SetAnimationTime(float);
  2747. bool SetAttribute(const String&, const Variant&);
  2748. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2749. void SetAttributeAnimationSpeed(const String&, float);
  2750. void SetAttributeAnimationTime(const String&, float);
  2751. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2752. void SetInterceptNetworkUpdate(const String&, bool);
  2753. // Properties:
  2754. bool animationEnabled;
  2755. /* readonly */
  2756. Array<Variant> attributeDefaults;
  2757. /* readonly */
  2758. Array<AttributeInfo> attributeInfos;
  2759. Array<Variant> attributes;
  2760. /* readonly */
  2761. String category;
  2762. bool collideConnected;
  2763. bool enabled;
  2764. /* readonly */
  2765. bool enabledEffective;
  2766. /* readonly */
  2767. uint id;
  2768. /* readonly */
  2769. Node node;
  2770. /* readonly */
  2771. uint numAttributes;
  2772. ObjectAnimation objectAnimation;
  2773. RigidBody2D otherBody;
  2774. Constraint2D otherConstraint;
  2775. /* readonly */
  2776. RigidBody2D ownerBody;
  2777. Constraint2D ownerConstraint;
  2778. float ratio;
  2779. /* readonly */
  2780. int refs;
  2781. bool temporary;
  2782. /* readonly */
  2783. StringHash type;
  2784. /* readonly */
  2785. String typeName;
  2786. /* readonly */
  2787. int weakRefs;
  2788. };
  2789. class ConstraintMotor2D
  2790. {
  2791. public:
  2792. // Methods:
  2793. void ApplyAttributes();
  2794. void DrawDebugGeometry(DebugRenderer, bool);
  2795. Variant GetAttribute(const String&) const;
  2796. ValueAnimation GetAttributeAnimation(const String&) const;
  2797. float GetAttributeAnimationSpeed(const String&) const;
  2798. float GetAttributeAnimationTime(const String&) const;
  2799. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2800. Variant GetAttributeDefault(const String&) const;
  2801. bool GetInterceptNetworkUpdate(const String&) const;
  2802. bool HasSubscribedToEvent(Object, const String&);
  2803. bool HasSubscribedToEvent(const String&);
  2804. bool Load(File, bool = false);
  2805. bool Load(VectorBuffer&, bool = false);
  2806. bool LoadJSON(const JSONValue&, bool = false);
  2807. bool LoadXML(const XMLElement&, bool = false);
  2808. void MarkNetworkUpdate() const;
  2809. void Remove();
  2810. void RemoveAttributeAnimation(const String&);
  2811. void RemoveInstanceDefault();
  2812. void RemoveObjectAnimation();
  2813. void ResetToDefault();
  2814. bool Save(File) const;
  2815. bool Save(VectorBuffer&) const;
  2816. bool SaveJSON(JSONValue&) const;
  2817. bool SaveXML(XMLElement&) const;
  2818. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2819. void SetAnimationTime(float);
  2820. bool SetAttribute(const String&, const Variant&);
  2821. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2822. void SetAttributeAnimationSpeed(const String&, float);
  2823. void SetAttributeAnimationTime(const String&, float);
  2824. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2825. void SetInterceptNetworkUpdate(const String&, bool);
  2826. // Properties:
  2827. float angularOffset;
  2828. bool animationEnabled;
  2829. /* readonly */
  2830. Array<Variant> attributeDefaults;
  2831. /* readonly */
  2832. Array<AttributeInfo> attributeInfos;
  2833. Array<Variant> attributes;
  2834. /* readonly */
  2835. String category;
  2836. bool collideConnected;
  2837. float correctionFactor;
  2838. bool enabled;
  2839. /* readonly */
  2840. bool enabledEffective;
  2841. /* readonly */
  2842. uint id;
  2843. Vector2 linearOffset;
  2844. float maxForce;
  2845. float maxTorque;
  2846. /* readonly */
  2847. Node node;
  2848. /* readonly */
  2849. uint numAttributes;
  2850. ObjectAnimation objectAnimation;
  2851. RigidBody2D otherBody;
  2852. /* readonly */
  2853. RigidBody2D ownerBody;
  2854. /* readonly */
  2855. int refs;
  2856. bool temporary;
  2857. /* readonly */
  2858. StringHash type;
  2859. /* readonly */
  2860. String typeName;
  2861. /* readonly */
  2862. int weakRefs;
  2863. };
  2864. class ConstraintMouse2D
  2865. {
  2866. public:
  2867. // Methods:
  2868. void ApplyAttributes();
  2869. void DrawDebugGeometry(DebugRenderer, bool);
  2870. Variant GetAttribute(const String&) const;
  2871. ValueAnimation GetAttributeAnimation(const String&) const;
  2872. float GetAttributeAnimationSpeed(const String&) const;
  2873. float GetAttributeAnimationTime(const String&) const;
  2874. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2875. Variant GetAttributeDefault(const String&) const;
  2876. bool GetInterceptNetworkUpdate(const String&) const;
  2877. bool HasSubscribedToEvent(Object, const String&);
  2878. bool HasSubscribedToEvent(const String&);
  2879. bool Load(File, bool = false);
  2880. bool Load(VectorBuffer&, bool = false);
  2881. bool LoadJSON(const JSONValue&, bool = false);
  2882. bool LoadXML(const XMLElement&, bool = false);
  2883. void MarkNetworkUpdate() const;
  2884. void Remove();
  2885. void RemoveAttributeAnimation(const String&);
  2886. void RemoveInstanceDefault();
  2887. void RemoveObjectAnimation();
  2888. void ResetToDefault();
  2889. bool Save(File) const;
  2890. bool Save(VectorBuffer&) const;
  2891. bool SaveJSON(JSONValue&) const;
  2892. bool SaveXML(XMLElement&) const;
  2893. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2894. void SetAnimationTime(float);
  2895. bool SetAttribute(const String&, const Variant&);
  2896. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2897. void SetAttributeAnimationSpeed(const String&, float);
  2898. void SetAttributeAnimationTime(const String&, float);
  2899. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2900. void SetInterceptNetworkUpdate(const String&, bool);
  2901. // Properties:
  2902. bool animationEnabled;
  2903. /* readonly */
  2904. Array<Variant> attributeDefaults;
  2905. /* readonly */
  2906. Array<AttributeInfo> attributeInfos;
  2907. Array<Variant> attributes;
  2908. /* readonly */
  2909. String category;
  2910. bool collideConnected;
  2911. float dampingRatio;
  2912. bool enabled;
  2913. /* readonly */
  2914. bool enabledEffective;
  2915. float frequencyHz;
  2916. /* readonly */
  2917. uint id;
  2918. float maxForce;
  2919. /* readonly */
  2920. Node node;
  2921. /* readonly */
  2922. uint numAttributes;
  2923. ObjectAnimation objectAnimation;
  2924. RigidBody2D otherBody;
  2925. /* readonly */
  2926. RigidBody2D ownerBody;
  2927. /* readonly */
  2928. int refs;
  2929. Vector2 target;
  2930. bool temporary;
  2931. /* readonly */
  2932. StringHash type;
  2933. /* readonly */
  2934. String typeName;
  2935. /* readonly */
  2936. int weakRefs;
  2937. };
  2938. class ConstraintPrismatic2D
  2939. {
  2940. public:
  2941. // Methods:
  2942. void ApplyAttributes();
  2943. void DrawDebugGeometry(DebugRenderer, bool);
  2944. Variant GetAttribute(const String&) const;
  2945. ValueAnimation GetAttributeAnimation(const String&) const;
  2946. float GetAttributeAnimationSpeed(const String&) const;
  2947. float GetAttributeAnimationTime(const String&) const;
  2948. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2949. Variant GetAttributeDefault(const String&) const;
  2950. bool GetInterceptNetworkUpdate(const String&) const;
  2951. bool HasSubscribedToEvent(Object, const String&);
  2952. bool HasSubscribedToEvent(const String&);
  2953. bool Load(File, bool = false);
  2954. bool Load(VectorBuffer&, bool = false);
  2955. bool LoadJSON(const JSONValue&, bool = false);
  2956. bool LoadXML(const XMLElement&, bool = false);
  2957. void MarkNetworkUpdate() const;
  2958. void Remove();
  2959. void RemoveAttributeAnimation(const String&);
  2960. void RemoveInstanceDefault();
  2961. void RemoveObjectAnimation();
  2962. void ResetToDefault();
  2963. bool Save(File) const;
  2964. bool Save(VectorBuffer&) const;
  2965. bool SaveJSON(JSONValue&) const;
  2966. bool SaveXML(XMLElement&) const;
  2967. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2968. void SetAnimationTime(float);
  2969. bool SetAttribute(const String&, const Variant&);
  2970. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2971. void SetAttributeAnimationSpeed(const String&, float);
  2972. void SetAttributeAnimationTime(const String&, float);
  2973. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2974. void SetInterceptNetworkUpdate(const String&, bool);
  2975. // Properties:
  2976. Vector2 anchor;
  2977. bool animationEnabled;
  2978. /* readonly */
  2979. Array<Variant> attributeDefaults;
  2980. /* readonly */
  2981. Array<AttributeInfo> attributeInfos;
  2982. Array<Variant> attributes;
  2983. Vector2 axis;
  2984. /* readonly */
  2985. String category;
  2986. bool collideConnected;
  2987. bool enableLimit;
  2988. bool enableMotor;
  2989. bool enabled;
  2990. /* readonly */
  2991. bool enabledEffective;
  2992. /* readonly */
  2993. uint id;
  2994. float lowerTranslation;
  2995. float maxMotorForce;
  2996. float motorSpeed;
  2997. /* readonly */
  2998. Node node;
  2999. /* readonly */
  3000. uint numAttributes;
  3001. ObjectAnimation objectAnimation;
  3002. RigidBody2D otherBody;
  3003. /* readonly */
  3004. RigidBody2D ownerBody;
  3005. /* readonly */
  3006. int refs;
  3007. bool temporary;
  3008. /* readonly */
  3009. StringHash type;
  3010. /* readonly */
  3011. String typeName;
  3012. float upperTranslation;
  3013. /* readonly */
  3014. int weakRefs;
  3015. };
  3016. class ConstraintPulley2D
  3017. {
  3018. public:
  3019. // Methods:
  3020. void ApplyAttributes();
  3021. void DrawDebugGeometry(DebugRenderer, bool);
  3022. Variant GetAttribute(const String&) const;
  3023. ValueAnimation GetAttributeAnimation(const String&) const;
  3024. float GetAttributeAnimationSpeed(const String&) const;
  3025. float GetAttributeAnimationTime(const String&) const;
  3026. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3027. Variant GetAttributeDefault(const String&) const;
  3028. bool GetInterceptNetworkUpdate(const String&) const;
  3029. bool HasSubscribedToEvent(Object, const String&);
  3030. bool HasSubscribedToEvent(const String&);
  3031. bool Load(File, bool = false);
  3032. bool Load(VectorBuffer&, bool = false);
  3033. bool LoadJSON(const JSONValue&, bool = false);
  3034. bool LoadXML(const XMLElement&, bool = false);
  3035. void MarkNetworkUpdate() const;
  3036. void Remove();
  3037. void RemoveAttributeAnimation(const String&);
  3038. void RemoveInstanceDefault();
  3039. void RemoveObjectAnimation();
  3040. void ResetToDefault();
  3041. bool Save(File) const;
  3042. bool Save(VectorBuffer&) const;
  3043. bool SaveJSON(JSONValue&) const;
  3044. bool SaveXML(XMLElement&) const;
  3045. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3046. void SetAnimationTime(float);
  3047. bool SetAttribute(const String&, const Variant&);
  3048. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3049. void SetAttributeAnimationSpeed(const String&, float);
  3050. void SetAttributeAnimationTime(const String&, float);
  3051. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3052. void SetInterceptNetworkUpdate(const String&, bool);
  3053. // Properties:
  3054. bool animationEnabled;
  3055. /* readonly */
  3056. Array<Variant> attributeDefaults;
  3057. /* readonly */
  3058. Array<AttributeInfo> attributeInfos;
  3059. Array<Variant> attributes;
  3060. /* readonly */
  3061. String category;
  3062. bool collideConnected;
  3063. bool enabled;
  3064. /* readonly */
  3065. bool enabledEffective;
  3066. /* readonly */
  3067. uint id;
  3068. /* readonly */
  3069. Node node;
  3070. /* readonly */
  3071. uint numAttributes;
  3072. ObjectAnimation objectAnimation;
  3073. RigidBody2D otherBody;
  3074. Vector2 otherBodyAnchor;
  3075. Vector2 otherBodyGroundAnchor;
  3076. /* readonly */
  3077. RigidBody2D ownerBody;
  3078. Vector2 ownerBodyAnchor;
  3079. Vector2 ownerBodyGroundAnchor;
  3080. float ratio;
  3081. /* readonly */
  3082. int refs;
  3083. bool temporary;
  3084. /* readonly */
  3085. StringHash type;
  3086. /* readonly */
  3087. String typeName;
  3088. /* readonly */
  3089. int weakRefs;
  3090. };
  3091. class ConstraintRevolute2D
  3092. {
  3093. public:
  3094. // Methods:
  3095. void ApplyAttributes();
  3096. void DrawDebugGeometry(DebugRenderer, bool);
  3097. Variant GetAttribute(const String&) const;
  3098. ValueAnimation GetAttributeAnimation(const String&) const;
  3099. float GetAttributeAnimationSpeed(const String&) const;
  3100. float GetAttributeAnimationTime(const String&) const;
  3101. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3102. Variant GetAttributeDefault(const String&) const;
  3103. bool GetInterceptNetworkUpdate(const String&) const;
  3104. bool HasSubscribedToEvent(Object, const String&);
  3105. bool HasSubscribedToEvent(const String&);
  3106. bool Load(File, bool = false);
  3107. bool Load(VectorBuffer&, bool = false);
  3108. bool LoadJSON(const JSONValue&, bool = false);
  3109. bool LoadXML(const XMLElement&, bool = false);
  3110. void MarkNetworkUpdate() const;
  3111. void Remove();
  3112. void RemoveAttributeAnimation(const String&);
  3113. void RemoveInstanceDefault();
  3114. void RemoveObjectAnimation();
  3115. void ResetToDefault();
  3116. bool Save(File) const;
  3117. bool Save(VectorBuffer&) const;
  3118. bool SaveJSON(JSONValue&) const;
  3119. bool SaveXML(XMLElement&) const;
  3120. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3121. void SetAnimationTime(float);
  3122. bool SetAttribute(const String&, const Variant&);
  3123. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3124. void SetAttributeAnimationSpeed(const String&, float);
  3125. void SetAttributeAnimationTime(const String&, float);
  3126. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3127. void SetInterceptNetworkUpdate(const String&, bool);
  3128. // Properties:
  3129. Vector2 anchor;
  3130. bool animationEnabled;
  3131. /* readonly */
  3132. Array<Variant> attributeDefaults;
  3133. /* readonly */
  3134. Array<AttributeInfo> attributeInfos;
  3135. Array<Variant> attributes;
  3136. /* readonly */
  3137. String category;
  3138. bool collideConnected;
  3139. bool enableLimit;
  3140. bool enableMotor;
  3141. bool enabled;
  3142. /* readonly */
  3143. bool enabledEffective;
  3144. /* readonly */
  3145. uint id;
  3146. float lowerAngle;
  3147. float maxMotorTorque;
  3148. float motorSpeed;
  3149. /* readonly */
  3150. Node node;
  3151. /* readonly */
  3152. uint numAttributes;
  3153. ObjectAnimation objectAnimation;
  3154. RigidBody2D otherBody;
  3155. /* readonly */
  3156. RigidBody2D ownerBody;
  3157. /* readonly */
  3158. int refs;
  3159. bool temporary;
  3160. /* readonly */
  3161. StringHash type;
  3162. /* readonly */
  3163. String typeName;
  3164. float upperAngle;
  3165. /* readonly */
  3166. int weakRefs;
  3167. };
  3168. class ConstraintRope2D
  3169. {
  3170. public:
  3171. // Methods:
  3172. void ApplyAttributes();
  3173. void DrawDebugGeometry(DebugRenderer, bool);
  3174. Variant GetAttribute(const String&) const;
  3175. ValueAnimation GetAttributeAnimation(const String&) const;
  3176. float GetAttributeAnimationSpeed(const String&) const;
  3177. float GetAttributeAnimationTime(const String&) const;
  3178. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3179. Variant GetAttributeDefault(const String&) const;
  3180. bool GetInterceptNetworkUpdate(const String&) const;
  3181. bool HasSubscribedToEvent(Object, const String&);
  3182. bool HasSubscribedToEvent(const String&);
  3183. bool Load(File, bool = false);
  3184. bool Load(VectorBuffer&, bool = false);
  3185. bool LoadJSON(const JSONValue&, bool = false);
  3186. bool LoadXML(const XMLElement&, bool = false);
  3187. void MarkNetworkUpdate() const;
  3188. void Remove();
  3189. void RemoveAttributeAnimation(const String&);
  3190. void RemoveInstanceDefault();
  3191. void RemoveObjectAnimation();
  3192. void ResetToDefault();
  3193. bool Save(File) const;
  3194. bool Save(VectorBuffer&) const;
  3195. bool SaveJSON(JSONValue&) const;
  3196. bool SaveXML(XMLElement&) const;
  3197. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3198. void SetAnimationTime(float);
  3199. bool SetAttribute(const String&, const Variant&);
  3200. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3201. void SetAttributeAnimationSpeed(const String&, float);
  3202. void SetAttributeAnimationTime(const String&, float);
  3203. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3204. void SetInterceptNetworkUpdate(const String&, bool);
  3205. // Properties:
  3206. bool animationEnabled;
  3207. /* readonly */
  3208. Array<Variant> attributeDefaults;
  3209. /* readonly */
  3210. Array<AttributeInfo> attributeInfos;
  3211. Array<Variant> attributes;
  3212. /* readonly */
  3213. String category;
  3214. bool collideConnected;
  3215. bool enabled;
  3216. /* readonly */
  3217. bool enabledEffective;
  3218. /* readonly */
  3219. uint id;
  3220. float maxLength;
  3221. /* readonly */
  3222. Node node;
  3223. /* readonly */
  3224. uint numAttributes;
  3225. ObjectAnimation objectAnimation;
  3226. RigidBody2D otherBody;
  3227. Vector2 otherBodyAnchor;
  3228. /* readonly */
  3229. RigidBody2D ownerBody;
  3230. Vector2 ownerBodyAnchor;
  3231. /* readonly */
  3232. int refs;
  3233. bool temporary;
  3234. /* readonly */
  3235. StringHash type;
  3236. /* readonly */
  3237. String typeName;
  3238. /* readonly */
  3239. int weakRefs;
  3240. };
  3241. class ConstraintWeld2D
  3242. {
  3243. public:
  3244. // Methods:
  3245. void ApplyAttributes();
  3246. void DrawDebugGeometry(DebugRenderer, bool);
  3247. Variant GetAttribute(const String&) const;
  3248. ValueAnimation GetAttributeAnimation(const String&) const;
  3249. float GetAttributeAnimationSpeed(const String&) const;
  3250. float GetAttributeAnimationTime(const String&) const;
  3251. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3252. Variant GetAttributeDefault(const String&) const;
  3253. bool GetInterceptNetworkUpdate(const String&) const;
  3254. bool HasSubscribedToEvent(Object, const String&);
  3255. bool HasSubscribedToEvent(const String&);
  3256. bool Load(File, bool = false);
  3257. bool Load(VectorBuffer&, bool = false);
  3258. bool LoadJSON(const JSONValue&, bool = false);
  3259. bool LoadXML(const XMLElement&, bool = false);
  3260. void MarkNetworkUpdate() const;
  3261. void Remove();
  3262. void RemoveAttributeAnimation(const String&);
  3263. void RemoveInstanceDefault();
  3264. void RemoveObjectAnimation();
  3265. void ResetToDefault();
  3266. bool Save(File) const;
  3267. bool Save(VectorBuffer&) const;
  3268. bool SaveJSON(JSONValue&) const;
  3269. bool SaveXML(XMLElement&) const;
  3270. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3271. void SetAnimationTime(float);
  3272. bool SetAttribute(const String&, const Variant&);
  3273. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3274. void SetAttributeAnimationSpeed(const String&, float);
  3275. void SetAttributeAnimationTime(const String&, float);
  3276. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3277. void SetInterceptNetworkUpdate(const String&, bool);
  3278. // Properties:
  3279. Vector2 anchor;
  3280. bool animationEnabled;
  3281. /* readonly */
  3282. Array<Variant> attributeDefaults;
  3283. /* readonly */
  3284. Array<AttributeInfo> attributeInfos;
  3285. Array<Variant> attributes;
  3286. /* readonly */
  3287. String category;
  3288. bool collideConnected;
  3289. float dampingRatio;
  3290. bool enabled;
  3291. /* readonly */
  3292. bool enabledEffective;
  3293. float frequencyHz;
  3294. /* readonly */
  3295. uint id;
  3296. /* readonly */
  3297. Node node;
  3298. /* readonly */
  3299. uint numAttributes;
  3300. ObjectAnimation objectAnimation;
  3301. RigidBody2D otherBody;
  3302. /* readonly */
  3303. RigidBody2D ownerBody;
  3304. /* readonly */
  3305. int refs;
  3306. bool temporary;
  3307. /* readonly */
  3308. StringHash type;
  3309. /* readonly */
  3310. String typeName;
  3311. /* readonly */
  3312. int weakRefs;
  3313. };
  3314. class ConstraintWheel2D
  3315. {
  3316. public:
  3317. // Methods:
  3318. void ApplyAttributes();
  3319. void DrawDebugGeometry(DebugRenderer, bool);
  3320. Variant GetAttribute(const String&) const;
  3321. ValueAnimation GetAttributeAnimation(const String&) const;
  3322. float GetAttributeAnimationSpeed(const String&) const;
  3323. float GetAttributeAnimationTime(const String&) const;
  3324. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3325. Variant GetAttributeDefault(const String&) const;
  3326. bool GetInterceptNetworkUpdate(const String&) const;
  3327. bool HasSubscribedToEvent(Object, const String&);
  3328. bool HasSubscribedToEvent(const String&);
  3329. bool Load(File, bool = false);
  3330. bool Load(VectorBuffer&, bool = false);
  3331. bool LoadJSON(const JSONValue&, bool = false);
  3332. bool LoadXML(const XMLElement&, bool = false);
  3333. void MarkNetworkUpdate() const;
  3334. void Remove();
  3335. void RemoveAttributeAnimation(const String&);
  3336. void RemoveInstanceDefault();
  3337. void RemoveObjectAnimation();
  3338. void ResetToDefault();
  3339. bool Save(File) const;
  3340. bool Save(VectorBuffer&) const;
  3341. bool SaveJSON(JSONValue&) const;
  3342. bool SaveXML(XMLElement&) const;
  3343. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3344. void SetAnimationTime(float);
  3345. bool SetAttribute(const String&, const Variant&);
  3346. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3347. void SetAttributeAnimationSpeed(const String&, float);
  3348. void SetAttributeAnimationTime(const String&, float);
  3349. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3350. void SetInterceptNetworkUpdate(const String&, bool);
  3351. // Properties:
  3352. Vector2 anchor;
  3353. bool animationEnabled;
  3354. /* readonly */
  3355. Array<Variant> attributeDefaults;
  3356. /* readonly */
  3357. Array<AttributeInfo> attributeInfos;
  3358. Array<Variant> attributes;
  3359. Vector2 axis;
  3360. /* readonly */
  3361. String category;
  3362. bool collideConnected;
  3363. float dampingRatio;
  3364. bool enableMotor;
  3365. bool enabled;
  3366. /* readonly */
  3367. bool enabledEffective;
  3368. float frequencyHz;
  3369. /* readonly */
  3370. uint id;
  3371. float maxMotorTorque;
  3372. float motorSpeed;
  3373. /* readonly */
  3374. Node node;
  3375. /* readonly */
  3376. uint numAttributes;
  3377. ObjectAnimation objectAnimation;
  3378. RigidBody2D otherBody;
  3379. /* readonly */
  3380. RigidBody2D ownerBody;
  3381. /* readonly */
  3382. int refs;
  3383. bool temporary;
  3384. /* readonly */
  3385. StringHash type;
  3386. /* readonly */
  3387. String typeName;
  3388. /* readonly */
  3389. int weakRefs;
  3390. };
  3391. class Controls
  3392. {
  3393. public:
  3394. ~Controls();
  3395. Controls();
  3396. Controls(const Controls&in);
  3397. // Methods:
  3398. bool IsDown(uint) const;
  3399. bool IsPressed(uint, const Controls&) const;
  3400. void Reset();
  3401. void Set(uint, bool);
  3402. // Properties:
  3403. uint buttons;
  3404. VariantMap extraData;
  3405. float pitch;
  3406. float yaw;
  3407. };
  3408. class CrowdAgent
  3409. {
  3410. public:
  3411. // Methods:
  3412. void ApplyAttributes();
  3413. void DrawDebugGeometry(DebugRenderer, bool);
  3414. void DrawDebugGeometry(bool);
  3415. Variant GetAttribute(const String&) const;
  3416. ValueAnimation GetAttributeAnimation(const String&) const;
  3417. float GetAttributeAnimationSpeed(const String&) const;
  3418. float GetAttributeAnimationTime(const String&) const;
  3419. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3420. Variant GetAttributeDefault(const String&) const;
  3421. bool GetInterceptNetworkUpdate(const String&) const;
  3422. bool HasSubscribedToEvent(Object, const String&);
  3423. bool HasSubscribedToEvent(const String&);
  3424. bool Load(File, bool = false);
  3425. bool Load(VectorBuffer&, bool = false);
  3426. bool LoadJSON(const JSONValue&, bool = false);
  3427. bool LoadXML(const XMLElement&, bool = false);
  3428. void MarkNetworkUpdate() const;
  3429. void Remove();
  3430. void RemoveAttributeAnimation(const String&);
  3431. void RemoveInstanceDefault();
  3432. void RemoveObjectAnimation();
  3433. void ResetTarget();
  3434. void ResetToDefault();
  3435. bool Save(File) const;
  3436. bool Save(VectorBuffer&) const;
  3437. bool SaveJSON(JSONValue&) const;
  3438. bool SaveXML(XMLElement&) const;
  3439. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3440. void SetAnimationTime(float);
  3441. bool SetAttribute(const String&, const Variant&);
  3442. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3443. void SetAttributeAnimationSpeed(const String&, float);
  3444. void SetAttributeAnimationTime(const String&, float);
  3445. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3446. void SetInterceptNetworkUpdate(const String&, bool);
  3447. // Properties:
  3448. /* readonly */
  3449. Vector3 actualVelocity;
  3450. /* readonly */
  3451. CrowdAgentState agentState;
  3452. bool animationEnabled;
  3453. /* readonly */
  3454. bool arrived;
  3455. /* readonly */
  3456. Array<Variant> attributeDefaults;
  3457. /* readonly */
  3458. Array<AttributeInfo> attributeInfos;
  3459. Array<Variant> attributes;
  3460. /* readonly */
  3461. String category;
  3462. /* readonly */
  3463. Vector3 desiredVelocity;
  3464. bool enabled;
  3465. /* readonly */
  3466. bool enabledEffective;
  3467. float height;
  3468. /* readonly */
  3469. uint id;
  3470. /* readonly */
  3471. bool inCrowd;
  3472. float maxAccel;
  3473. float maxSpeed;
  3474. NavigationPushiness navigationPushiness;
  3475. NavigationQuality navigationQuality;
  3476. /* readonly */
  3477. Node node;
  3478. /* readonly */
  3479. uint numAttributes;
  3480. ObjectAnimation objectAnimation;
  3481. uint obstacleAvoidanceType;
  3482. /* readonly */
  3483. Vector3 position;
  3484. uint queryFilterType;
  3485. float radius;
  3486. /* readonly */
  3487. int refs;
  3488. /* readonly */
  3489. bool requestedTarget;
  3490. /* readonly */
  3491. CrowdAgentRequestedTarget requestedTargetType;
  3492. Vector3 targetPosition;
  3493. /* readonly */
  3494. CrowdAgentTargetState targetState;
  3495. Vector3 targetVelocity;
  3496. bool temporary;
  3497. /* readonly */
  3498. StringHash type;
  3499. /* readonly */
  3500. String typeName;
  3501. bool updateNodePosition;
  3502. /* readonly */
  3503. int weakRefs;
  3504. };
  3505. class CrowdManager
  3506. {
  3507. public:
  3508. // Methods:
  3509. void ApplyAttributes();
  3510. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3511. void DrawDebugGeometry(DebugRenderer, bool);
  3512. void DrawDebugGeometry(bool);
  3513. Vector3 FindNearestPoint(const Vector3&, int);
  3514. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3515. float GetAreaCost(uint, uint);
  3516. Variant GetAttribute(const String&) const;
  3517. ValueAnimation GetAttributeAnimation(const String&) const;
  3518. float GetAttributeAnimationSpeed(const String&) const;
  3519. float GetAttributeAnimationTime(const String&) const;
  3520. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3521. Variant GetAttributeDefault(const String&) const;
  3522. float GetDistanceToWall(const Vector3&, float, int);
  3523. uint16 GetExcludeFlags(uint);
  3524. uint16 GetIncludeFlags(uint);
  3525. bool GetInterceptNetworkUpdate(const String&) const;
  3526. Vector3 GetRandomPoint(int);
  3527. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3528. bool HasSubscribedToEvent(Object, const String&);
  3529. bool HasSubscribedToEvent(const String&);
  3530. bool Load(File, bool = false);
  3531. bool Load(VectorBuffer&, bool = false);
  3532. bool LoadJSON(const JSONValue&, bool = false);
  3533. bool LoadXML(const XMLElement&, bool = false);
  3534. void MarkNetworkUpdate() const;
  3535. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3536. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3537. void Remove();
  3538. void RemoveAttributeAnimation(const String&);
  3539. void RemoveInstanceDefault();
  3540. void RemoveObjectAnimation();
  3541. void ResetCrowdTarget(Node = null);
  3542. void ResetToDefault();
  3543. bool Save(File) const;
  3544. bool Save(VectorBuffer&) const;
  3545. bool SaveJSON(JSONValue&) const;
  3546. bool SaveXML(XMLElement&) const;
  3547. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3548. void SetAnimationTime(float);
  3549. void SetAreaCost(uint, uint, float);
  3550. bool SetAttribute(const String&, const Variant&);
  3551. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3552. void SetAttributeAnimationSpeed(const String&, float);
  3553. void SetAttributeAnimationTime(const String&, float);
  3554. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3555. void SetCrowdTarget(const Vector3&, Node = null);
  3556. void SetCrowdVelocity(const Vector3&, Node = null);
  3557. void SetExcludeFlags(uint, uint16);
  3558. void SetIncludeFlags(uint, uint16);
  3559. void SetInterceptNetworkUpdate(const String&, bool);
  3560. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3561. // Properties:
  3562. bool animationEnabled;
  3563. /* readonly */
  3564. Array<Variant> attributeDefaults;
  3565. /* readonly */
  3566. Array<AttributeInfo> attributeInfos;
  3567. Array<Variant> attributes;
  3568. /* readonly */
  3569. String category;
  3570. bool enabled;
  3571. /* readonly */
  3572. bool enabledEffective;
  3573. /* readonly */
  3574. uint id;
  3575. float maxAgentRadius;
  3576. int maxAgents;
  3577. NavigationMesh navMesh;
  3578. /* readonly */
  3579. Node node;
  3580. /* readonly */
  3581. Array<uint> numAreas;
  3582. /* readonly */
  3583. uint numAttributes;
  3584. /* readonly */
  3585. uint numObstacleAvoidanceTypes;
  3586. /* readonly */
  3587. uint numQueryFilterTypes;
  3588. ObjectAnimation objectAnimation;
  3589. /* readonly */
  3590. int refs;
  3591. bool temporary;
  3592. /* readonly */
  3593. StringHash type;
  3594. /* readonly */
  3595. String typeName;
  3596. /* readonly */
  3597. int weakRefs;
  3598. };
  3599. class CrowdObstacleAvoidanceParams
  3600. {
  3601. public:
  3602. // Properties:
  3603. uint8 adaptiveDepth;
  3604. uint8 adaptiveDivs;
  3605. uint8 adaptiveRings;
  3606. uint8 gridSize;
  3607. float horizTime;
  3608. float velBias;
  3609. float weightCurVel;
  3610. float weightDesVel;
  3611. float weightSide;
  3612. float weightToi;
  3613. };
  3614. class Cursor
  3615. {
  3616. public:
  3617. Cursor();
  3618. Cursor(const String&in);
  3619. // Methods:
  3620. void AddChild(UIElement);
  3621. void AddTag(const String&);
  3622. void AddTags(const String&, int8 = ';');
  3623. void ApplyAttributes();
  3624. void BringToFront();
  3625. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3626. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3627. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3628. void DisableLayoutUpdate();
  3629. IntVector2 ElementToScreen(const IntVector2&);
  3630. void EnableLayoutUpdate();
  3631. uint FindChild(UIElement) const;
  3632. Variant GetAttribute(const String&) const;
  3633. ValueAnimation GetAttributeAnimation(const String&) const;
  3634. float GetAttributeAnimationSpeed(const String&) const;
  3635. float GetAttributeAnimationTime(const String&) const;
  3636. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3637. Variant GetAttributeDefault(const String&) const;
  3638. UIElement GetChild(const String&, bool = false) const;
  3639. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3640. Array<UIElement> GetChildren(bool = false) const;
  3641. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3642. UIElement GetElementEventSender() const;
  3643. bool GetInterceptNetworkUpdate(const String&) const;
  3644. uint GetNumChildren(bool) const;
  3645. bool HasSubscribedToEvent(Object, const String&);
  3646. bool HasSubscribedToEvent(const String&);
  3647. bool HasTag(const String&) const;
  3648. void InsertChild(uint, UIElement);
  3649. bool IsInside(IntVector2, bool);
  3650. bool IsInsideCombined(IntVector2, bool);
  3651. bool Load(File, bool = false);
  3652. bool Load(VectorBuffer&, bool = false);
  3653. UIElement LoadChildXML(XMLFile, XMLFile = null);
  3654. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3655. bool LoadJSON(const JSONValue&, bool = false);
  3656. bool LoadXML(File);
  3657. bool LoadXML(VectorBuffer&);
  3658. bool LoadXML(XMLFile, XMLFile);
  3659. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3660. bool LoadXML(const XMLElement&, bool = false);
  3661. void MarkNetworkUpdate() const;
  3662. void Remove();
  3663. void RemoveAllChildren();
  3664. void RemoveAllTags();
  3665. void RemoveAttributeAnimation(const String&);
  3666. void RemoveChild(UIElement, uint = 0);
  3667. void RemoveChild(uint);
  3668. void RemoveInstanceDefault();
  3669. void RemoveObjectAnimation();
  3670. bool RemoveTag(const String&);
  3671. void ResetDeepEnabled();
  3672. void ResetToDefault();
  3673. bool Save(File) const;
  3674. bool Save(VectorBuffer&) const;
  3675. bool SaveJSON(JSONValue&) const;
  3676. bool SaveXML(File, const String& = "\t");
  3677. bool SaveXML(VectorBuffer&, const String& = "\t");
  3678. bool SaveXML(XMLElement&) const;
  3679. IntVector2 ScreenToElement(const IntVector2&);
  3680. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3681. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3682. void SetAnimationTime(float);
  3683. bool SetAttribute(const String&, const Variant&);
  3684. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3685. void SetAttributeAnimationSpeed(const String&, float);
  3686. void SetAttributeAnimationTime(const String&, float);
  3687. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3688. void SetDeepEnabled(bool);
  3689. void SetEnabledRecursive(bool);
  3690. void SetFixedHeight(int);
  3691. void SetFixedSize(int, int);
  3692. void SetFixedWidth(int);
  3693. void SetFullImageRect();
  3694. void SetHoverOffset(int, int);
  3695. void SetInterceptNetworkUpdate(const String&, bool);
  3696. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3697. void SetMaxAnchor(float, float);
  3698. void SetMaxSize(int, int);
  3699. void SetMinAnchor(float, float);
  3700. void SetMinSize(int, int);
  3701. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3702. void SetPivot(float, float);
  3703. void SetPosition(int, int);
  3704. void SetShape(CursorShape);
  3705. void SetShape(const String&);
  3706. void SetSize(int, int);
  3707. bool SetStyle(const String&, XMLFile = null);
  3708. bool SetStyle(const XMLElement&);
  3709. bool SetStyleAuto(XMLFile = null);
  3710. void UpdateLayout();
  3711. const Variant& GetVar(const StringHash&);
  3712. // Properties:
  3713. bool animationEnabled;
  3714. /* readonly */
  3715. Array<Variant> attributeDefaults;
  3716. /* readonly */
  3717. Array<AttributeInfo> attributeInfos;
  3718. Array<Variant> attributes;
  3719. BlendMode blendMode;
  3720. IntRect border;
  3721. bool bringToBack;
  3722. bool bringToFront;
  3723. /* readonly */
  3724. String category;
  3725. /* readonly */
  3726. IntVector2 childOffset;
  3727. /* readonly */
  3728. Array<UIElement> children;
  3729. IntRect clipBorder;
  3730. bool clipChildren;
  3731. /* writeonly */
  3732. Color color;
  3733. /* readonly */
  3734. bool colorGradient;
  3735. Array<Color> colors;
  3736. /* readonly */
  3737. IntRect combinedScreenRect;
  3738. XMLFile defaultStyle;
  3739. /* readonly */
  3740. float derivedOpacity;
  3741. /* readonly */
  3742. uint dragButtonCombo;
  3743. /* readonly */
  3744. int dragButtonCount;
  3745. uint dragDropMode;
  3746. bool editable;
  3747. bool elementEventSender;
  3748. bool enableAnchor;
  3749. bool enabled;
  3750. /* readonly */
  3751. bool enabledSelf;
  3752. /* readonly */
  3753. bool fixedHeight;
  3754. /* readonly */
  3755. bool fixedSize;
  3756. /* readonly */
  3757. bool fixedWidth;
  3758. bool focus;
  3759. FocusMode focusMode;
  3760. int height;
  3761. HorizontalAlignment horizontalAlignment;
  3762. IntVector2 hoverOffset;
  3763. /* readonly */
  3764. bool hovering;
  3765. IntRect imageBorder;
  3766. IntRect imageRect;
  3767. int indent;
  3768. int indentSpacing;
  3769. /* readonly */
  3770. int indentWidth;
  3771. bool internal;
  3772. IntRect layoutBorder;
  3773. Vector2 layoutFlexScale;
  3774. LayoutMode layoutMode;
  3775. int layoutSpacing;
  3776. Vector2 maxAnchor;
  3777. int maxHeight;
  3778. IntVector2 maxOffset;
  3779. IntVector2 maxSize;
  3780. int maxWidth;
  3781. Vector2 minAnchor;
  3782. int minHeight;
  3783. IntVector2 minOffset;
  3784. IntVector2 minSize;
  3785. int minWidth;
  3786. String name;
  3787. /* readonly */
  3788. uint numAllChildren;
  3789. /* readonly */
  3790. uint numAttributes;
  3791. /* readonly */
  3792. uint numChildren;
  3793. ObjectAnimation objectAnimation;
  3794. float opacity;
  3795. UIElement parent;
  3796. Vector2 pivot;
  3797. IntVector2 position;
  3798. int priority;
  3799. /* readonly */
  3800. int refs;
  3801. /* readonly */
  3802. UIElement root;
  3803. /* readonly */
  3804. IntVector2 screenPosition;
  3805. bool selected;
  3806. String shape;
  3807. IntVector2 size;
  3808. bool sortChildren;
  3809. String style;
  3810. /* readonly */
  3811. Array<String> tags;
  3812. bool temporary;
  3813. Texture texture;
  3814. bool tiled;
  3815. TraversalMode traversalMode;
  3816. /* readonly */
  3817. StringHash type;
  3818. /* readonly */
  3819. String typeName;
  3820. bool useDerivedOpacity;
  3821. bool useSystemShapes;
  3822. /* readonly */
  3823. VariantMap vars;
  3824. VerticalAlignment verticalAlignment;
  3825. bool visible;
  3826. /* readonly */
  3827. bool visibleEffective;
  3828. /* readonly */
  3829. int weakRefs;
  3830. int width;
  3831. };
  3832. class CustomGeometry
  3833. {
  3834. public:
  3835. // Methods:
  3836. void ApplyAttributes();
  3837. void BeginGeometry(uint, PrimitiveType);
  3838. void Clear();
  3839. void Commit();
  3840. void DefineColor(const Color&);
  3841. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3842. void DefineNormal(const Vector3&);
  3843. void DefineTangent(const Vector4&);
  3844. void DefineTexCoord(const Vector2&);
  3845. void DefineVertex(const Vector3&);
  3846. void DrawDebugGeometry(DebugRenderer, bool);
  3847. Variant GetAttribute(const String&) const;
  3848. ValueAnimation GetAttributeAnimation(const String&) const;
  3849. float GetAttributeAnimationSpeed(const String&) const;
  3850. float GetAttributeAnimationTime(const String&) const;
  3851. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3852. Variant GetAttributeDefault(const String&) const;
  3853. bool GetInterceptNetworkUpdate(const String&) const;
  3854. CustomGeometryVertex GetVertex(uint, uint);
  3855. bool HasSubscribedToEvent(Object, const String&);
  3856. bool HasSubscribedToEvent(const String&);
  3857. bool IsInView(Camera) const;
  3858. bool Load(File, bool = false);
  3859. bool Load(VectorBuffer&, bool = false);
  3860. bool LoadJSON(const JSONValue&, bool = false);
  3861. bool LoadXML(const XMLElement&, bool = false);
  3862. void MarkNetworkUpdate() const;
  3863. void Remove();
  3864. void RemoveAttributeAnimation(const String&);
  3865. void RemoveInstanceDefault();
  3866. void RemoveObjectAnimation();
  3867. void ResetToDefault();
  3868. bool Save(File) const;
  3869. bool Save(VectorBuffer&) const;
  3870. bool SaveJSON(JSONValue&) const;
  3871. bool SaveXML(XMLElement&) const;
  3872. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3873. void SetAnimationTime(float);
  3874. bool SetAttribute(const String&, const Variant&);
  3875. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3876. void SetAttributeAnimationSpeed(const String&, float);
  3877. void SetAttributeAnimationTime(const String&, float);
  3878. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3879. void SetInterceptNetworkUpdate(const String&, bool);
  3880. // Properties:
  3881. bool animationEnabled;
  3882. /* readonly */
  3883. Array<Variant> attributeDefaults;
  3884. /* readonly */
  3885. Array<AttributeInfo> attributeInfos;
  3886. Array<Variant> attributes;
  3887. /* readonly */
  3888. BoundingBox boundingBox;
  3889. bool castShadows;
  3890. /* readonly */
  3891. String category;
  3892. float drawDistance;
  3893. bool dynamic;
  3894. bool enabled;
  3895. /* readonly */
  3896. bool enabledEffective;
  3897. /* readonly */
  3898. uint id;
  3899. /* readonly */
  3900. bool inView;
  3901. uint lightMask;
  3902. float lodBias;
  3903. /* writeonly */
  3904. Material material;
  3905. Array<Material> materials;
  3906. uint maxLights;
  3907. /* readonly */
  3908. Node node;
  3909. /* readonly */
  3910. uint numAttributes;
  3911. uint numGeometries;
  3912. /* readonly */
  3913. Array<uint> numVertices;
  3914. ObjectAnimation objectAnimation;
  3915. bool occludee;
  3916. bool occluder;
  3917. /* readonly */
  3918. int refs;
  3919. float shadowDistance;
  3920. uint shadowMask;
  3921. bool temporary;
  3922. /* readonly */
  3923. StringHash type;
  3924. /* readonly */
  3925. String typeName;
  3926. uint viewMask;
  3927. /* readonly */
  3928. int weakRefs;
  3929. /* readonly */
  3930. BoundingBox worldBoundingBox;
  3931. /* readonly */
  3932. Zone zone;
  3933. uint zoneMask;
  3934. };
  3935. class CustomGeometryVertex
  3936. {
  3937. public:
  3938. // Properties:
  3939. uint color;
  3940. Vector3 normal;
  3941. Vector3 position;
  3942. Vector4 tangent;
  3943. Vector2 texCoord;
  3944. };
  3945. class Database
  3946. {
  3947. public:
  3948. // Methods:
  3949. DbConnection Connect(const String&);
  3950. void Disconnect(DbConnection);
  3951. bool HasSubscribedToEvent(Object, const String&);
  3952. bool HasSubscribedToEvent(const String&);
  3953. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3954. // Properties:
  3955. /* readonly */
  3956. String category;
  3957. uint poolSize;
  3958. /* readonly */
  3959. bool pooling;
  3960. /* readonly */
  3961. int refs;
  3962. /* readonly */
  3963. StringHash type;
  3964. /* readonly */
  3965. String typeName;
  3966. /* readonly */
  3967. int weakRefs;
  3968. };
  3969. class DbConnection
  3970. {
  3971. public:
  3972. // Methods:
  3973. DbResult Execute(const String&, bool = false);
  3974. bool HasSubscribedToEvent(Object, const String&);
  3975. bool HasSubscribedToEvent(const String&);
  3976. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3977. // Properties:
  3978. /* readonly */
  3979. String category;
  3980. /* readonly */
  3981. bool connected;
  3982. /* readonly */
  3983. String connectionString;
  3984. /* readonly */
  3985. int refs;
  3986. /* readonly */
  3987. StringHash type;
  3988. /* readonly */
  3989. String typeName;
  3990. /* readonly */
  3991. int weakRefs;
  3992. };
  3993. class DbResult
  3994. {
  3995. public:
  3996. ~DbResult();
  3997. DbResult();
  3998. DbResult(const DbResult&in);
  3999. // Properties:
  4000. /* readonly */
  4001. Array<String> columns;
  4002. /* readonly */
  4003. int64 numAffectedRows;
  4004. /* readonly */
  4005. uint numColumns;
  4006. /* readonly */
  4007. uint numRows;
  4008. /* readonly */
  4009. Array<Array<Variant>> row;
  4010. };
  4011. class DebugHud
  4012. {
  4013. public:
  4014. // Methods:
  4015. void ClearAppStats();
  4016. bool HasSubscribedToEvent(Object, const String&);
  4017. bool HasSubscribedToEvent(const String&);
  4018. void ResetAppStats(const String&);
  4019. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4020. void SetAppStats(const String&, const String&);
  4021. void SetAppStats(const String&, const Variant&);
  4022. void Toggle(uint);
  4023. void ToggleAll();
  4024. void Update();
  4025. // Properties:
  4026. /* readonly */
  4027. String category;
  4028. XMLFile defaultStyle;
  4029. /* readonly */
  4030. Text memoryText;
  4031. uint mode;
  4032. /* readonly */
  4033. Text modeText;
  4034. float profilerInterval;
  4035. uint profilerMaxDepth;
  4036. /* readonly */
  4037. Text profilerText;
  4038. /* readonly */
  4039. int refs;
  4040. /* readonly */
  4041. Text statsText;
  4042. /* readonly */
  4043. StringHash type;
  4044. /* readonly */
  4045. String typeName;
  4046. bool useRendererStats;
  4047. /* readonly */
  4048. int weakRefs;
  4049. };
  4050. class DebugRenderer
  4051. {
  4052. public:
  4053. // Methods:
  4054. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  4055. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  4056. void AddCross(const Vector3&, float, const Color&, bool = true);
  4057. void AddFrustum(const Frustum&, const Color&, bool = true);
  4058. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  4059. void AddNode(Node, float = 1.0, bool = true);
  4060. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4061. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  4062. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  4063. void AddSkeleton(Skeleton, const Color&, bool = true);
  4064. void AddSphere(const Sphere&, const Color&, bool = true);
  4065. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4066. void ApplyAttributes();
  4067. void DrawDebugGeometry(DebugRenderer, bool);
  4068. Variant GetAttribute(const String&) const;
  4069. ValueAnimation GetAttributeAnimation(const String&) const;
  4070. float GetAttributeAnimationSpeed(const String&) const;
  4071. float GetAttributeAnimationTime(const String&) const;
  4072. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4073. Variant GetAttributeDefault(const String&) const;
  4074. bool GetInterceptNetworkUpdate(const String&) const;
  4075. bool HasSubscribedToEvent(Object, const String&);
  4076. bool HasSubscribedToEvent(const String&);
  4077. bool Load(File, bool = false);
  4078. bool Load(VectorBuffer&, bool = false);
  4079. bool LoadJSON(const JSONValue&, bool = false);
  4080. bool LoadXML(const XMLElement&, bool = false);
  4081. void MarkNetworkUpdate() const;
  4082. void Remove();
  4083. void RemoveAttributeAnimation(const String&);
  4084. void RemoveInstanceDefault();
  4085. void RemoveObjectAnimation();
  4086. void ResetToDefault();
  4087. bool Save(File) const;
  4088. bool Save(VectorBuffer&) const;
  4089. bool SaveJSON(JSONValue&) const;
  4090. bool SaveXML(XMLElement&) const;
  4091. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4092. void SetAnimationTime(float);
  4093. bool SetAttribute(const String&, const Variant&);
  4094. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4095. void SetAttributeAnimationSpeed(const String&, float);
  4096. void SetAttributeAnimationTime(const String&, float);
  4097. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4098. void SetInterceptNetworkUpdate(const String&, bool);
  4099. // Properties:
  4100. bool animationEnabled;
  4101. /* readonly */
  4102. Array<Variant> attributeDefaults;
  4103. /* readonly */
  4104. Array<AttributeInfo> attributeInfos;
  4105. Array<Variant> attributes;
  4106. /* readonly */
  4107. String category;
  4108. bool enabled;
  4109. /* readonly */
  4110. bool enabledEffective;
  4111. /* readonly */
  4112. uint id;
  4113. bool lineAntiAlias;
  4114. /* readonly */
  4115. Node node;
  4116. /* readonly */
  4117. uint numAttributes;
  4118. ObjectAnimation objectAnimation;
  4119. /* readonly */
  4120. int refs;
  4121. bool temporary;
  4122. /* readonly */
  4123. StringHash type;
  4124. /* readonly */
  4125. String typeName;
  4126. /* readonly */
  4127. int weakRefs;
  4128. };
  4129. class DecalSet
  4130. {
  4131. public:
  4132. // Methods:
  4133. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4134. void ApplyAttributes();
  4135. void DrawDebugGeometry(DebugRenderer, bool);
  4136. Variant GetAttribute(const String&) const;
  4137. ValueAnimation GetAttributeAnimation(const String&) const;
  4138. float GetAttributeAnimationSpeed(const String&) const;
  4139. float GetAttributeAnimationTime(const String&) const;
  4140. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4141. Variant GetAttributeDefault(const String&) const;
  4142. bool GetInterceptNetworkUpdate(const String&) const;
  4143. bool HasSubscribedToEvent(Object, const String&);
  4144. bool HasSubscribedToEvent(const String&);
  4145. bool IsInView(Camera) const;
  4146. bool Load(File, bool = false);
  4147. bool Load(VectorBuffer&, bool = false);
  4148. bool LoadJSON(const JSONValue&, bool = false);
  4149. bool LoadXML(const XMLElement&, bool = false);
  4150. void MarkNetworkUpdate() const;
  4151. void Remove();
  4152. void RemoveAllDecals();
  4153. void RemoveAttributeAnimation(const String&);
  4154. void RemoveDecals(uint);
  4155. void RemoveInstanceDefault();
  4156. void RemoveObjectAnimation();
  4157. void ResetToDefault();
  4158. bool Save(File) const;
  4159. bool Save(VectorBuffer&) const;
  4160. bool SaveJSON(JSONValue&) const;
  4161. bool SaveXML(XMLElement&) const;
  4162. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4163. void SetAnimationTime(float);
  4164. bool SetAttribute(const String&, const Variant&);
  4165. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4166. void SetAttributeAnimationSpeed(const String&, float);
  4167. void SetAttributeAnimationTime(const String&, float);
  4168. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4169. void SetInterceptNetworkUpdate(const String&, bool);
  4170. // Properties:
  4171. bool animationEnabled;
  4172. /* readonly */
  4173. Array<Variant> attributeDefaults;
  4174. /* readonly */
  4175. Array<AttributeInfo> attributeInfos;
  4176. Array<Variant> attributes;
  4177. /* readonly */
  4178. BoundingBox boundingBox;
  4179. bool castShadows;
  4180. /* readonly */
  4181. String category;
  4182. float drawDistance;
  4183. bool enabled;
  4184. /* readonly */
  4185. bool enabledEffective;
  4186. /* readonly */
  4187. uint id;
  4188. /* readonly */
  4189. bool inView;
  4190. uint lightMask;
  4191. float lodBias;
  4192. Material material;
  4193. uint maxIndices;
  4194. uint maxLights;
  4195. uint maxVertices;
  4196. /* readonly */
  4197. Node node;
  4198. /* readonly */
  4199. uint numAttributes;
  4200. /* readonly */
  4201. uint numDecals;
  4202. /* readonly */
  4203. uint numIndices;
  4204. /* readonly */
  4205. uint numVertices;
  4206. ObjectAnimation objectAnimation;
  4207. bool occludee;
  4208. bool occluder;
  4209. bool optimizeBufferSize;
  4210. /* readonly */
  4211. int refs;
  4212. float shadowDistance;
  4213. uint shadowMask;
  4214. bool temporary;
  4215. /* readonly */
  4216. StringHash type;
  4217. /* readonly */
  4218. String typeName;
  4219. uint viewMask;
  4220. /* readonly */
  4221. int weakRefs;
  4222. /* readonly */
  4223. BoundingBox worldBoundingBox;
  4224. /* readonly */
  4225. Zone zone;
  4226. uint zoneMask;
  4227. };
  4228. class Deserializer
  4229. {
  4230. public:
  4231. // Methods:
  4232. Array<uint8> Read(uint);
  4233. bool ReadBool();
  4234. BoundingBox ReadBoundingBox();
  4235. int8 ReadByte();
  4236. Color ReadColor();
  4237. double ReadDouble();
  4238. String ReadFileID();
  4239. float ReadFloat();
  4240. int ReadInt();
  4241. int64 ReadInt64();
  4242. IntRect ReadIntRect();
  4243. IntVector2 ReadIntVector2();
  4244. String ReadLine();
  4245. Matrix3 ReadMatrix3();
  4246. Matrix3x4 ReadMatrix3x4();
  4247. Matrix4 ReadMatrix4();
  4248. uint ReadNetID();
  4249. Quaternion ReadPackedQuaternion();
  4250. Vector3 ReadPackedVector3(float);
  4251. Quaternion ReadQuaternion();
  4252. int16 ReadShort();
  4253. String ReadString();
  4254. StringHash ReadStringHash();
  4255. uint8 ReadUByte();
  4256. uint ReadUInt();
  4257. uint64 ReadUInt64();
  4258. uint16 ReadUShort();
  4259. uint ReadVLE();
  4260. Variant ReadVariant();
  4261. VariantMap ReadVariantMap();
  4262. Vector2 ReadVector2();
  4263. Vector3 ReadVector3();
  4264. Vector4 ReadVector4();
  4265. VectorBuffer ReadVectorBuffer(uint);
  4266. uint Seek(uint);
  4267. // Properties:
  4268. /* readonly */
  4269. uint checksum;
  4270. /* readonly */
  4271. bool eof;
  4272. /* readonly */
  4273. String name;
  4274. /* readonly */
  4275. uint position;
  4276. /* readonly */
  4277. uint size;
  4278. };
  4279. class Dictionary
  4280. {
  4281. public:
  4282. Dictionary();
  4283. // Methods:
  4284. void Clear();
  4285. void Erase(const String&);
  4286. bool Exists(const String&) const;
  4287. bool Get(const String&, void*) const;
  4288. bool Get(const String&, double&) const;
  4289. bool Get(const String&, int64&) const;
  4290. void Set(const String&, const void*);
  4291. void Set(const String&, const double&);
  4292. void Set(const String&, const int64&);
  4293. // Properties:
  4294. /* readonly */
  4295. bool empty;
  4296. /* readonly */
  4297. Array<String> keys;
  4298. /* readonly */
  4299. uint length;
  4300. };
  4301. class DictionaryValue
  4302. {
  4303. public:
  4304. ~DictionaryValue();
  4305. DictionaryValue();
  4306. };
  4307. class Drawable
  4308. {
  4309. public:
  4310. // Methods:
  4311. void ApplyAttributes();
  4312. void DrawDebugGeometry(DebugRenderer, bool);
  4313. Variant GetAttribute(const String&) const;
  4314. ValueAnimation GetAttributeAnimation(const String&) const;
  4315. float GetAttributeAnimationSpeed(const String&) const;
  4316. float GetAttributeAnimationTime(const String&) const;
  4317. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4318. Variant GetAttributeDefault(const String&) const;
  4319. bool GetInterceptNetworkUpdate(const String&) const;
  4320. bool HasSubscribedToEvent(Object, const String&);
  4321. bool HasSubscribedToEvent(const String&);
  4322. bool IsInView(Camera) const;
  4323. bool Load(File, bool = false);
  4324. bool Load(VectorBuffer&, bool = false);
  4325. bool LoadJSON(const JSONValue&, bool = false);
  4326. bool LoadXML(const XMLElement&, bool = false);
  4327. void MarkNetworkUpdate() const;
  4328. void Remove();
  4329. void RemoveAttributeAnimation(const String&);
  4330. void RemoveInstanceDefault();
  4331. void RemoveObjectAnimation();
  4332. void ResetToDefault();
  4333. bool Save(File) const;
  4334. bool Save(VectorBuffer&) const;
  4335. bool SaveJSON(JSONValue&) const;
  4336. bool SaveXML(XMLElement&) const;
  4337. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4338. void SetAnimationTime(float);
  4339. bool SetAttribute(const String&, const Variant&);
  4340. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4341. void SetAttributeAnimationSpeed(const String&, float);
  4342. void SetAttributeAnimationTime(const String&, float);
  4343. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4344. void SetInterceptNetworkUpdate(const String&, bool);
  4345. // Properties:
  4346. bool animationEnabled;
  4347. /* readonly */
  4348. Array<Variant> attributeDefaults;
  4349. /* readonly */
  4350. Array<AttributeInfo> attributeInfos;
  4351. Array<Variant> attributes;
  4352. /* readonly */
  4353. BoundingBox boundingBox;
  4354. bool castShadows;
  4355. /* readonly */
  4356. String category;
  4357. float drawDistance;
  4358. bool enabled;
  4359. /* readonly */
  4360. bool enabledEffective;
  4361. /* readonly */
  4362. uint id;
  4363. /* readonly */
  4364. bool inView;
  4365. uint lightMask;
  4366. float lodBias;
  4367. uint maxLights;
  4368. /* readonly */
  4369. Node node;
  4370. /* readonly */
  4371. uint numAttributes;
  4372. ObjectAnimation objectAnimation;
  4373. bool occludee;
  4374. bool occluder;
  4375. /* readonly */
  4376. int refs;
  4377. float shadowDistance;
  4378. uint shadowMask;
  4379. bool temporary;
  4380. /* readonly */
  4381. StringHash type;
  4382. /* readonly */
  4383. String typeName;
  4384. uint viewMask;
  4385. /* readonly */
  4386. int weakRefs;
  4387. /* readonly */
  4388. BoundingBox worldBoundingBox;
  4389. uint zoneMask;
  4390. };
  4391. class Drawable2D
  4392. {
  4393. public:
  4394. // Methods:
  4395. void ApplyAttributes();
  4396. void DrawDebugGeometry(DebugRenderer, bool);
  4397. Variant GetAttribute(const String&) const;
  4398. ValueAnimation GetAttributeAnimation(const String&) const;
  4399. float GetAttributeAnimationSpeed(const String&) const;
  4400. float GetAttributeAnimationTime(const String&) const;
  4401. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4402. Variant GetAttributeDefault(const String&) const;
  4403. bool GetInterceptNetworkUpdate(const String&) const;
  4404. bool HasSubscribedToEvent(Object, const String&);
  4405. bool HasSubscribedToEvent(const String&);
  4406. bool IsInView(Camera) const;
  4407. bool Load(File, bool = false);
  4408. bool Load(VectorBuffer&, bool = false);
  4409. bool LoadJSON(const JSONValue&, bool = false);
  4410. bool LoadXML(const XMLElement&, bool = false);
  4411. void MarkNetworkUpdate() const;
  4412. void Remove();
  4413. void RemoveAttributeAnimation(const String&);
  4414. void RemoveInstanceDefault();
  4415. void RemoveObjectAnimation();
  4416. void ResetToDefault();
  4417. bool Save(File) const;
  4418. bool Save(VectorBuffer&) const;
  4419. bool SaveJSON(JSONValue&) const;
  4420. bool SaveXML(XMLElement&) const;
  4421. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4422. void SetAnimationTime(float);
  4423. bool SetAttribute(const String&, const Variant&);
  4424. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4425. void SetAttributeAnimationSpeed(const String&, float);
  4426. void SetAttributeAnimationTime(const String&, float);
  4427. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4428. void SetInterceptNetworkUpdate(const String&, bool);
  4429. // Properties:
  4430. bool animationEnabled;
  4431. /* readonly */
  4432. Array<Variant> attributeDefaults;
  4433. /* readonly */
  4434. Array<AttributeInfo> attributeInfos;
  4435. Array<Variant> attributes;
  4436. /* readonly */
  4437. BoundingBox boundingBox;
  4438. bool castShadows;
  4439. /* readonly */
  4440. String category;
  4441. float drawDistance;
  4442. bool enabled;
  4443. /* readonly */
  4444. bool enabledEffective;
  4445. /* readonly */
  4446. uint id;
  4447. /* readonly */
  4448. bool inView;
  4449. int layer;
  4450. uint lightMask;
  4451. float lodBias;
  4452. uint maxLights;
  4453. /* readonly */
  4454. Node node;
  4455. /* readonly */
  4456. uint numAttributes;
  4457. ObjectAnimation objectAnimation;
  4458. bool occludee;
  4459. bool occluder;
  4460. int orderInLayer;
  4461. /* readonly */
  4462. int refs;
  4463. float shadowDistance;
  4464. uint shadowMask;
  4465. bool temporary;
  4466. /* readonly */
  4467. StringHash type;
  4468. /* readonly */
  4469. String typeName;
  4470. uint viewMask;
  4471. /* readonly */
  4472. int weakRefs;
  4473. /* readonly */
  4474. BoundingBox worldBoundingBox;
  4475. uint zoneMask;
  4476. };
  4477. class DropDownList
  4478. {
  4479. public:
  4480. DropDownList();
  4481. DropDownList(const String&in);
  4482. // Methods:
  4483. void AddChild(UIElement);
  4484. void AddItem(UIElement);
  4485. void AddTag(const String&);
  4486. void AddTags(const String&, int8 = ';');
  4487. void ApplyAttributes();
  4488. void BringToFront();
  4489. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4490. void DisableLayoutUpdate();
  4491. IntVector2 ElementToScreen(const IntVector2&);
  4492. void EnableLayoutUpdate();
  4493. uint FindChild(UIElement) const;
  4494. Variant GetAttribute(const String&) const;
  4495. ValueAnimation GetAttributeAnimation(const String&) const;
  4496. float GetAttributeAnimationSpeed(const String&) const;
  4497. float GetAttributeAnimationTime(const String&) const;
  4498. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4499. Variant GetAttributeDefault(const String&) const;
  4500. UIElement GetChild(const String&, bool = false) const;
  4501. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4502. Array<UIElement> GetChildren(bool = false) const;
  4503. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4504. UIElement GetElementEventSender() const;
  4505. bool GetInterceptNetworkUpdate(const String&) const;
  4506. Array<UIElement> GetItems() const;
  4507. uint GetNumChildren(bool) const;
  4508. bool HasSubscribedToEvent(Object, const String&);
  4509. bool HasSubscribedToEvent(const String&);
  4510. bool HasTag(const String&) const;
  4511. void InsertChild(uint, UIElement);
  4512. void InsertItem(uint, UIElement);
  4513. bool IsInside(IntVector2, bool);
  4514. bool IsInsideCombined(IntVector2, bool);
  4515. bool Load(File, bool = false);
  4516. bool Load(VectorBuffer&, bool = false);
  4517. UIElement LoadChildXML(XMLFile, XMLFile = null);
  4518. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4519. bool LoadJSON(const JSONValue&, bool = false);
  4520. bool LoadXML(File);
  4521. bool LoadXML(VectorBuffer&);
  4522. bool LoadXML(XMLFile, XMLFile);
  4523. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4524. bool LoadXML(const XMLElement&, bool = false);
  4525. void MarkNetworkUpdate() const;
  4526. void Remove();
  4527. void RemoveAllChildren();
  4528. void RemoveAllItems();
  4529. void RemoveAllTags();
  4530. void RemoveAttributeAnimation(const String&);
  4531. void RemoveChild(UIElement, uint = 0);
  4532. void RemoveChild(uint);
  4533. void RemoveInstanceDefault();
  4534. void RemoveItem(UIElement);
  4535. void RemoveItem(uint);
  4536. void RemoveObjectAnimation();
  4537. bool RemoveTag(const String&);
  4538. void ResetDeepEnabled();
  4539. void ResetToDefault();
  4540. bool Save(File) const;
  4541. bool Save(VectorBuffer&) const;
  4542. bool SaveJSON(JSONValue&) const;
  4543. bool SaveXML(File, const String& = "\t");
  4544. bool SaveXML(VectorBuffer&, const String& = "\t");
  4545. bool SaveXML(XMLElement&) const;
  4546. IntVector2 ScreenToElement(const IntVector2&);
  4547. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4548. void SetAccelerator(int, int);
  4549. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4550. void SetAnimationTime(float);
  4551. bool SetAttribute(const String&, const Variant&);
  4552. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4553. void SetAttributeAnimationSpeed(const String&, float);
  4554. void SetAttributeAnimationTime(const String&, float);
  4555. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4556. void SetDeepEnabled(bool);
  4557. void SetEnabledRecursive(bool);
  4558. void SetFixedHeight(int);
  4559. void SetFixedSize(int, int);
  4560. void SetFixedWidth(int);
  4561. void SetFullImageRect();
  4562. void SetHoverOffset(int, int);
  4563. void SetInterceptNetworkUpdate(const String&, bool);
  4564. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4565. void SetMaxAnchor(float, float);
  4566. void SetMaxSize(int, int);
  4567. void SetMinAnchor(float, float);
  4568. void SetMinSize(int, int);
  4569. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4570. void SetPivot(float, float);
  4571. void SetPosition(int, int);
  4572. void SetPressedChildOffset(int, int);
  4573. void SetPressedOffset(int, int);
  4574. void SetRepeat(float, float);
  4575. void SetSize(int, int);
  4576. bool SetStyle(const String&, XMLFile = null);
  4577. bool SetStyle(const XMLElement&);
  4578. bool SetStyleAuto(XMLFile = null);
  4579. void UpdateLayout();
  4580. const Variant& GetVar(const StringHash&);
  4581. UIElement getPopup() const;
  4582. // Properties:
  4583. /* readonly */
  4584. int acceleratorKey;
  4585. /* readonly */
  4586. int acceleratorQualifiers;
  4587. bool animationEnabled;
  4588. /* readonly */
  4589. Array<Variant> attributeDefaults;
  4590. /* readonly */
  4591. Array<AttributeInfo> attributeInfos;
  4592. Array<Variant> attributes;
  4593. BlendMode blendMode;
  4594. IntRect border;
  4595. bool bringToBack;
  4596. bool bringToFront;
  4597. /* readonly */
  4598. String category;
  4599. /* readonly */
  4600. IntVector2 childOffset;
  4601. /* readonly */
  4602. Array<UIElement> children;
  4603. IntRect clipBorder;
  4604. bool clipChildren;
  4605. /* writeonly */
  4606. Color color;
  4607. /* readonly */
  4608. bool colorGradient;
  4609. Array<Color> colors;
  4610. /* readonly */
  4611. IntRect combinedScreenRect;
  4612. XMLFile defaultStyle;
  4613. /* readonly */
  4614. float derivedOpacity;
  4615. /* readonly */
  4616. uint dragButtonCombo;
  4617. /* readonly */
  4618. int dragButtonCount;
  4619. uint dragDropMode;
  4620. bool editable;
  4621. bool elementEventSender;
  4622. bool enableAnchor;
  4623. bool enabled;
  4624. /* readonly */
  4625. bool enabledSelf;
  4626. /* readonly */
  4627. bool fixedHeight;
  4628. /* readonly */
  4629. bool fixedSize;
  4630. /* readonly */
  4631. bool fixedWidth;
  4632. bool focus;
  4633. FocusMode focusMode;
  4634. int height;
  4635. HorizontalAlignment horizontalAlignment;
  4636. IntVector2 hoverOffset;
  4637. /* readonly */
  4638. bool hovering;
  4639. IntRect imageBorder;
  4640. IntRect imageRect;
  4641. int indent;
  4642. int indentSpacing;
  4643. /* readonly */
  4644. int indentWidth;
  4645. bool internal;
  4646. /* readonly */
  4647. Array<UIElement> items;
  4648. IntRect layoutBorder;
  4649. Vector2 layoutFlexScale;
  4650. LayoutMode layoutMode;
  4651. int layoutSpacing;
  4652. /* readonly */
  4653. ListView listView;
  4654. Vector2 maxAnchor;
  4655. int maxHeight;
  4656. IntVector2 maxOffset;
  4657. IntVector2 maxSize;
  4658. int maxWidth;
  4659. Vector2 minAnchor;
  4660. int minHeight;
  4661. IntVector2 minOffset;
  4662. IntVector2 minSize;
  4663. int minWidth;
  4664. String name;
  4665. /* readonly */
  4666. uint numAllChildren;
  4667. /* readonly */
  4668. uint numAttributes;
  4669. /* readonly */
  4670. uint numChildren;
  4671. /* readonly */
  4672. uint numItems;
  4673. ObjectAnimation objectAnimation;
  4674. float opacity;
  4675. UIElement parent;
  4676. Vector2 pivot;
  4677. /* readonly */
  4678. UIElement placeholder;
  4679. String placeholderText;
  4680. IntVector2 position;
  4681. /* readonly */
  4682. bool pressed;
  4683. IntVector2 pressedChildOffset;
  4684. IntVector2 pressedOffset;
  4685. int priority;
  4686. /* readonly */
  4687. int refs;
  4688. float repeatDelay;
  4689. float repeatRate;
  4690. bool resizePopup;
  4691. /* readonly */
  4692. UIElement root;
  4693. /* readonly */
  4694. IntVector2 screenPosition;
  4695. bool selected;
  4696. /* readonly */
  4697. UIElement selectedItem;
  4698. uint selection;
  4699. bool showPopup;
  4700. IntVector2 size;
  4701. bool sortChildren;
  4702. String style;
  4703. /* readonly */
  4704. Array<String> tags;
  4705. bool temporary;
  4706. Texture texture;
  4707. bool tiled;
  4708. TraversalMode traversalMode;
  4709. /* readonly */
  4710. StringHash type;
  4711. /* readonly */
  4712. String typeName;
  4713. bool useDerivedOpacity;
  4714. /* readonly */
  4715. VariantMap vars;
  4716. VerticalAlignment verticalAlignment;
  4717. bool visible;
  4718. /* readonly */
  4719. bool visibleEffective;
  4720. /* readonly */
  4721. int weakRefs;
  4722. int width;
  4723. };
  4724. class DynamicNavigationMesh
  4725. {
  4726. public:
  4727. // Methods:
  4728. void ApplyAttributes();
  4729. bool Build();
  4730. bool Build(const BoundingBox&);
  4731. void DrawDebugGeometry(DebugRenderer, bool);
  4732. void DrawDebugGeometry(bool);
  4733. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4734. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4735. float GetAreaCost(uint) const;
  4736. Variant GetAttribute(const String&) const;
  4737. ValueAnimation GetAttributeAnimation(const String&) const;
  4738. float GetAttributeAnimationSpeed(const String&) const;
  4739. float GetAttributeAnimationTime(const String&) const;
  4740. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4741. Variant GetAttributeDefault(const String&) const;
  4742. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4743. bool GetInterceptNetworkUpdate(const String&) const;
  4744. Vector3 GetRandomPoint();
  4745. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4746. bool HasSubscribedToEvent(Object, const String&);
  4747. bool HasSubscribedToEvent(const String&);
  4748. bool Load(File, bool = false);
  4749. bool Load(VectorBuffer&, bool = false);
  4750. bool LoadJSON(const JSONValue&, bool = false);
  4751. bool LoadXML(const XMLElement&, bool = false);
  4752. void MarkNetworkUpdate() const;
  4753. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4754. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4755. void Remove();
  4756. void RemoveAttributeAnimation(const String&);
  4757. void RemoveInstanceDefault();
  4758. void RemoveObjectAnimation();
  4759. void ResetToDefault();
  4760. bool Save(File) const;
  4761. bool Save(VectorBuffer&) const;
  4762. bool SaveJSON(JSONValue&) const;
  4763. bool SaveXML(XMLElement&) const;
  4764. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4765. void SetAnimationTime(float);
  4766. void SetAreaCost(uint, float);
  4767. bool SetAttribute(const String&, const Variant&);
  4768. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4769. void SetAttributeAnimationSpeed(const String&, float);
  4770. void SetAttributeAnimationTime(const String&, float);
  4771. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4772. void SetInterceptNetworkUpdate(const String&, bool);
  4773. // Properties:
  4774. float agentHeight;
  4775. float agentMaxClimb;
  4776. float agentMaxSlope;
  4777. float agentRadius;
  4778. bool animationEnabled;
  4779. /* readonly */
  4780. Array<Variant> attributeDefaults;
  4781. /* readonly */
  4782. Array<AttributeInfo> attributeInfos;
  4783. Array<Variant> attributes;
  4784. /* readonly */
  4785. BoundingBox boundingBox;
  4786. /* readonly */
  4787. String category;
  4788. float cellHeight;
  4789. float cellSize;
  4790. float detailSampleDistance;
  4791. float detailSampleMaxError;
  4792. bool drawNavAreas;
  4793. bool drawObstacles;
  4794. bool drawOffMeshConnections;
  4795. float edgeMaxError;
  4796. float edgeMaxLength;
  4797. bool enabled;
  4798. /* readonly */
  4799. bool enabledEffective;
  4800. /* readonly */
  4801. uint id;
  4802. /* readonly */
  4803. bool initialized;
  4804. bool maxLayers;
  4805. uint maxObstacles;
  4806. /* readonly */
  4807. Node node;
  4808. /* readonly */
  4809. uint numAttributes;
  4810. /* readonly */
  4811. IntVector2 numTiles;
  4812. ObjectAnimation objectAnimation;
  4813. Vector3 padding;
  4814. NavmeshPartitionType partitionType;
  4815. /* readonly */
  4816. int refs;
  4817. float regionMergeSize;
  4818. float regionMinSize;
  4819. bool temporary;
  4820. int tileSize;
  4821. /* readonly */
  4822. StringHash type;
  4823. /* readonly */
  4824. String typeName;
  4825. /* readonly */
  4826. int weakRefs;
  4827. /* readonly */
  4828. BoundingBox worldBoundingBox;
  4829. };
  4830. class Engine
  4831. {
  4832. public:
  4833. // Methods:
  4834. Console CreateConsole();
  4835. DebugHud CreateDebugHud();
  4836. void DumpMemory();
  4837. void DumpProfiler();
  4838. void DumpResources(bool = false);
  4839. void Exit();
  4840. bool HasSubscribedToEvent(Object, const String&);
  4841. bool HasSubscribedToEvent(const String&);
  4842. void RunFrame();
  4843. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4844. // Properties:
  4845. bool autoExit;
  4846. /* readonly */
  4847. String category;
  4848. /* readonly */
  4849. bool exiting;
  4850. /* readonly */
  4851. bool headless;
  4852. /* readonly */
  4853. bool initialized;
  4854. int maxFps;
  4855. int maxInactiveFps;
  4856. int minFps;
  4857. bool pauseMinimized;
  4858. /* readonly */
  4859. int refs;
  4860. int timeStepSmoothing;
  4861. /* readonly */
  4862. StringHash type;
  4863. /* readonly */
  4864. String typeName;
  4865. /* readonly */
  4866. int weakRefs;
  4867. };
  4868. class File
  4869. {
  4870. public:
  4871. File();
  4872. File(const String&in, FileMode mode = FILE_READ);
  4873. // Methods:
  4874. void Close();
  4875. bool HasSubscribedToEvent(Object, const String&);
  4876. bool HasSubscribedToEvent(const String&);
  4877. bool Open(const String&, FileMode = FILE_READ);
  4878. Array<uint8> Read(uint);
  4879. bool ReadBool();
  4880. BoundingBox ReadBoundingBox();
  4881. int8 ReadByte();
  4882. Color ReadColor();
  4883. double ReadDouble();
  4884. String ReadFileID();
  4885. float ReadFloat();
  4886. int ReadInt();
  4887. int64 ReadInt64();
  4888. IntRect ReadIntRect();
  4889. IntVector2 ReadIntVector2();
  4890. String ReadLine();
  4891. Matrix3 ReadMatrix3();
  4892. Matrix3x4 ReadMatrix3x4();
  4893. Matrix4 ReadMatrix4();
  4894. uint ReadNetID();
  4895. Quaternion ReadPackedQuaternion();
  4896. Vector3 ReadPackedVector3(float);
  4897. Quaternion ReadQuaternion();
  4898. int16 ReadShort();
  4899. String ReadString();
  4900. StringHash ReadStringHash();
  4901. uint8 ReadUByte();
  4902. uint ReadUInt();
  4903. uint64 ReadUInt64();
  4904. uint16 ReadUShort();
  4905. uint ReadVLE();
  4906. Variant ReadVariant();
  4907. VariantMap ReadVariantMap();
  4908. Vector2 ReadVector2();
  4909. Vector3 ReadVector3();
  4910. Vector4 ReadVector4();
  4911. VectorBuffer ReadVectorBuffer(uint);
  4912. uint Seek(uint);
  4913. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4914. uint Write(Array<uint8>);
  4915. bool WriteBool(bool);
  4916. bool WriteBoundingBox(const BoundingBox&);
  4917. bool WriteByte(int8);
  4918. bool WriteColor(const Color&);
  4919. bool WriteDouble(double);
  4920. bool WriteFileID(const String&);
  4921. bool WriteFloat(float);
  4922. bool WriteInt(int);
  4923. bool WriteInt64(int64);
  4924. bool WriteIntRect(const IntRect&);
  4925. bool WriteIntVector2(const IntVector2&);
  4926. bool WriteLine(const String&);
  4927. bool WriteMatrix3(const Matrix3&);
  4928. bool WriteMatrix3x4(const Matrix3x4&);
  4929. bool WriteMatrix4(const Matrix4&);
  4930. bool WriteNetID(uint);
  4931. bool WritePackedQuaternion(const Quaternion&);
  4932. bool WritePackedVector3(const Vector3&, float);
  4933. bool WriteQuaternion(const Quaternion&);
  4934. bool WriteShort(int16);
  4935. bool WriteString(const String&);
  4936. bool WriteStringHash(const StringHash&);
  4937. bool WriteUByte(uint8);
  4938. bool WriteUInt(uint);
  4939. bool WriteUInt64(uint64);
  4940. bool WriteUShort(uint16);
  4941. bool WriteVLE(uint);
  4942. bool WriteVariant(const Variant&);
  4943. bool WriteVariantMap(const VariantMap&);
  4944. bool WriteVector2(const Vector2&);
  4945. bool WriteVector3(const Vector3&);
  4946. bool WriteVector4(const Vector4&);
  4947. bool WriteVectorBuffer(const VectorBuffer&);
  4948. // Properties:
  4949. /* readonly */
  4950. String category;
  4951. /* readonly */
  4952. uint checksum;
  4953. /* readonly */
  4954. bool eof;
  4955. /* readonly */
  4956. FileMode mode;
  4957. /* readonly */
  4958. String name;
  4959. /* readonly */
  4960. bool open;
  4961. /* readonly */
  4962. bool packaged;
  4963. /* readonly */
  4964. uint position;
  4965. /* readonly */
  4966. int refs;
  4967. /* readonly */
  4968. uint size;
  4969. /* readonly */
  4970. StringHash type;
  4971. /* readonly */
  4972. String typeName;
  4973. /* readonly */
  4974. int weakRefs;
  4975. };
  4976. class FileSelector
  4977. {
  4978. public:
  4979. FileSelector();
  4980. // Methods:
  4981. bool HasSubscribedToEvent(Object, const String&);
  4982. bool HasSubscribedToEvent(const String&);
  4983. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4984. void SetButtonTexts(const String&, const String&);
  4985. void SetFilters(Array<String>, uint);
  4986. void UpdateElements();
  4987. // Properties:
  4988. /* readonly */
  4989. Button cancelButton;
  4990. /* readonly */
  4991. String category;
  4992. XMLFile defaultStyle;
  4993. bool directoryMode;
  4994. /* readonly */
  4995. ListView fileList;
  4996. String fileName;
  4997. /* readonly */
  4998. LineEdit fileNameEdit;
  4999. /* readonly */
  5000. String filter;
  5001. /* readonly */
  5002. uint filterIndex;
  5003. /* readonly */
  5004. DropDownList filterList;
  5005. /* readonly */
  5006. Button okButton;
  5007. String path;
  5008. /* readonly */
  5009. LineEdit pathEdit;
  5010. /* readonly */
  5011. int refs;
  5012. String title;
  5013. /* readonly */
  5014. Text titleText;
  5015. /* readonly */
  5016. StringHash type;
  5017. /* readonly */
  5018. String typeName;
  5019. /* readonly */
  5020. int weakRefs;
  5021. /* readonly */
  5022. Window window;
  5023. };
  5024. class FileSystem
  5025. {
  5026. public:
  5027. // Methods:
  5028. bool Copy(const String&, const String&);
  5029. bool CreateDir(const String&);
  5030. bool Delete(const String&);
  5031. bool DirExists(const String&) const;
  5032. bool FileExists(const String&) const;
  5033. String GetAppPreferencesDir(const String&, const String&) const;
  5034. uint GetLastModifiedTime(const String&) const;
  5035. bool HasSubscribedToEvent(Object, const String&);
  5036. bool HasSubscribedToEvent(const String&);
  5037. bool Rename(const String&, const String&);
  5038. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  5039. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5040. bool SetLastModifiedTime(const String&, uint);
  5041. int SystemCommand(const String&, bool = false);
  5042. uint SystemCommandAsync(const String&);
  5043. bool SystemOpen(const String&, const String&);
  5044. int SystemRun(const String&, Array<String>);
  5045. uint SystemRunAsync(const String&, Array<String>);
  5046. // Properties:
  5047. /* readonly */
  5048. String category;
  5049. String currentDir;
  5050. bool executeConsoleCommands;
  5051. /* readonly */
  5052. String programDir;
  5053. /* readonly */
  5054. int refs;
  5055. /* readonly */
  5056. StringHash type;
  5057. /* readonly */
  5058. String typeName;
  5059. /* readonly */
  5060. String userDocumentsDir;
  5061. /* readonly */
  5062. int weakRefs;
  5063. };
  5064. class FocusParameters
  5065. {
  5066. public:
  5067. FocusParameters();
  5068. FocusParameters(const FocusParameters&in);
  5069. FocusParameters(bool, bool, bool, float, float);
  5070. // Properties:
  5071. bool autoSize;
  5072. bool focus;
  5073. float minView;
  5074. bool nonUniform;
  5075. float quantize;
  5076. };
  5077. class Font
  5078. {
  5079. public:
  5080. Font();
  5081. Font(const String&in);
  5082. // Methods:
  5083. IntVector2 GetTotalGlyphOffset(int) const;
  5084. bool HasSubscribedToEvent(Object, const String&);
  5085. bool HasSubscribedToEvent(const String&);
  5086. bool Load(File);
  5087. bool Load(VectorBuffer&);
  5088. bool Load(const String&);
  5089. bool Save(File) const;
  5090. bool Save(VectorBuffer&) const;
  5091. bool Save(const String&) const;
  5092. bool SaveXML(File, int, bool = false, const String& = "\t");
  5093. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  5094. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  5095. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5096. // Properties:
  5097. IntVector2 absoluteGlyphOffset;
  5098. /* readonly */
  5099. String category;
  5100. /* readonly */
  5101. FontType fontType;
  5102. /* readonly */
  5103. uint memoryUse;
  5104. String name;
  5105. /* readonly */
  5106. int refs;
  5107. Vector2 scaledGlyphOffset;
  5108. /* readonly */
  5109. StringHash type;
  5110. /* readonly */
  5111. String typeName;
  5112. /* readonly */
  5113. uint useTimer;
  5114. /* readonly */
  5115. int weakRefs;
  5116. };
  5117. class Frustum
  5118. {
  5119. public:
  5120. ~Frustum();
  5121. Frustum();
  5122. Frustum(const Frustum&in);
  5123. // Methods:
  5124. void Define(const BoundingBox&, const Matrix3x4&);
  5125. void Define(const Matrix4&);
  5126. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  5127. void Define(float, float, float, float, float, const Matrix3x4&);
  5128. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  5129. void DefineSplit(const Matrix4&, float, float);
  5130. float Distance(const Vector3&) const;
  5131. Intersection IsInside(const BoundingBox&);
  5132. Intersection IsInside(const Sphere&);
  5133. Intersection IsInside(const Vector3&);
  5134. Intersection IsInsideFast(const BoundingBox&) const;
  5135. Intersection IsInsideFast(const Sphere&) const;
  5136. void Transform(const Matrix3&);
  5137. void Transform(const Matrix3x4&);
  5138. Frustum Transformed(const Matrix3&) const;
  5139. Frustum Transformed(const Matrix3x4&) const;
  5140. // Properties:
  5141. /* readonly */
  5142. Array<Vector3> vertices;
  5143. };
  5144. class Geometry
  5145. {
  5146. public:
  5147. Geometry();
  5148. // Methods:
  5149. bool HasSubscribedToEvent(Object, const String&);
  5150. bool HasSubscribedToEvent(const String&);
  5151. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5152. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  5153. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  5154. void SetIndexBuffer(IndexBuffer);
  5155. bool SetVertexBuffer(uint, VertexBuffer);
  5156. // Properties:
  5157. /* readonly */
  5158. String category;
  5159. /* readonly */
  5160. bool empty;
  5161. IndexBuffer indexBuffer;
  5162. /* readonly */
  5163. uint indexCount;
  5164. /* readonly */
  5165. uint indexStart;
  5166. float lodDistance;
  5167. uint numVertexBuffers;
  5168. /* readonly */
  5169. PrimitiveType primitiveType;
  5170. /* readonly */
  5171. int refs;
  5172. /* readonly */
  5173. StringHash type;
  5174. /* readonly */
  5175. String typeName;
  5176. /* readonly */
  5177. Array<VertexBuffer> vertexBuffers;
  5178. /* readonly */
  5179. uint vertexCount;
  5180. /* readonly */
  5181. uint vertexStart;
  5182. /* readonly */
  5183. int weakRefs;
  5184. };
  5185. class Graphics
  5186. {
  5187. public:
  5188. // Methods:
  5189. void BeginDumpShaders(const String&);
  5190. void Close();
  5191. void EndDumpShaders();
  5192. bool HasSubscribedToEvent(Object, const String&);
  5193. bool HasSubscribedToEvent(const String&);
  5194. void Maximize();
  5195. void Minimize();
  5196. void PrecacheShaders(File);
  5197. void PrecacheShaders(VectorBuffer&);
  5198. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5199. bool SetMode(int, int);
  5200. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  5201. void SetWindowPosition(int, int);
  5202. bool TakeScreenShot(Image);
  5203. bool ToggleFullscreen();
  5204. // Properties:
  5205. /* readonly */
  5206. String apiName;
  5207. /* readonly */
  5208. bool borderless;
  5209. /* readonly */
  5210. String category;
  5211. /* readonly */
  5212. bool deferredSupport;
  5213. /* readonly */
  5214. Array<IntVector2> desktopResolution;
  5215. /* readonly */
  5216. bool deviceLost;
  5217. bool dither;
  5218. bool flushGPU;
  5219. /* readonly */
  5220. bool fullscreen;
  5221. /* readonly */
  5222. bool hardwareShadowSupport;
  5223. /* readonly */
  5224. int height;
  5225. /* readonly */
  5226. bool initialized;
  5227. /* readonly */
  5228. bool instancingSupport;
  5229. /* readonly */
  5230. bool lightPrepassSupport;
  5231. /* readonly */
  5232. int monitorCount;
  5233. /* readonly */
  5234. int multiSample;
  5235. /* readonly */
  5236. Array<int> multiSampleLevels;
  5237. /* readonly */
  5238. uint numBatches;
  5239. /* readonly */
  5240. uint numPrimitives;
  5241. String orientations;
  5242. /* readonly */
  5243. bool readableDepthSupport;
  5244. /* readonly */
  5245. int refs;
  5246. /* readonly */
  5247. bool resizable;
  5248. /* readonly */
  5249. Array<Array<IntVector3>> resolutions;
  5250. bool sRGB;
  5251. /* readonly */
  5252. bool sRGBSupport;
  5253. /* readonly */
  5254. bool sRGBWriteSupport;
  5255. String shaderCacheDir;
  5256. /* readonly */
  5257. IntVector2 size;
  5258. /* readonly */
  5259. bool tripleBuffer;
  5260. /* readonly */
  5261. StringHash type;
  5262. /* readonly */
  5263. String typeName;
  5264. /* readonly */
  5265. bool vsync;
  5266. /* readonly */
  5267. int weakRefs;
  5268. /* readonly */
  5269. int width;
  5270. /* writeonly */
  5271. Image windowIcon;
  5272. IntVector2 windowPosition;
  5273. String windowTitle;
  5274. };
  5275. class HttpRequest
  5276. {
  5277. public:
  5278. // Methods:
  5279. Array<uint8> Read(uint);
  5280. bool ReadBool();
  5281. BoundingBox ReadBoundingBox();
  5282. int8 ReadByte();
  5283. Color ReadColor();
  5284. double ReadDouble();
  5285. String ReadFileID();
  5286. float ReadFloat();
  5287. int ReadInt();
  5288. int64 ReadInt64();
  5289. IntRect ReadIntRect();
  5290. IntVector2 ReadIntVector2();
  5291. String ReadLine();
  5292. Matrix3 ReadMatrix3();
  5293. Matrix3x4 ReadMatrix3x4();
  5294. Matrix4 ReadMatrix4();
  5295. uint ReadNetID();
  5296. Quaternion ReadPackedQuaternion();
  5297. Vector3 ReadPackedVector3(float);
  5298. Quaternion ReadQuaternion();
  5299. int16 ReadShort();
  5300. String ReadString();
  5301. StringHash ReadStringHash();
  5302. uint8 ReadUByte();
  5303. uint ReadUInt();
  5304. uint64 ReadUInt64();
  5305. uint16 ReadUShort();
  5306. uint ReadVLE();
  5307. Variant ReadVariant();
  5308. VariantMap ReadVariantMap();
  5309. Vector2 ReadVector2();
  5310. Vector3 ReadVector3();
  5311. Vector4 ReadVector4();
  5312. VectorBuffer ReadVectorBuffer(uint);
  5313. uint Seek(uint);
  5314. // Properties:
  5315. /* readonly */
  5316. uint availableSize;
  5317. /* readonly */
  5318. uint checksum;
  5319. /* readonly */
  5320. bool eof;
  5321. /* readonly */
  5322. String error;
  5323. /* readonly */
  5324. String name;
  5325. /* readonly */
  5326. bool open;
  5327. /* readonly */
  5328. uint position;
  5329. /* readonly */
  5330. int refs;
  5331. /* readonly */
  5332. uint size;
  5333. /* readonly */
  5334. HttpRequestState state;
  5335. /* readonly */
  5336. String url;
  5337. /* readonly */
  5338. String verb;
  5339. /* readonly */
  5340. int weakRefs;
  5341. };
  5342. class IKConstraint
  5343. {
  5344. public:
  5345. // Methods:
  5346. void ApplyAttributes();
  5347. void DrawDebugGeometry(DebugRenderer, bool);
  5348. Variant GetAttribute(const String&) const;
  5349. ValueAnimation GetAttributeAnimation(const String&) const;
  5350. float GetAttributeAnimationSpeed(const String&) const;
  5351. float GetAttributeAnimationTime(const String&) const;
  5352. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5353. Variant GetAttributeDefault(const String&) const;
  5354. bool GetInterceptNetworkUpdate(const String&) const;
  5355. bool HasSubscribedToEvent(Object, const String&);
  5356. bool HasSubscribedToEvent(const String&);
  5357. bool Load(File, bool = false);
  5358. bool Load(VectorBuffer&, bool = false);
  5359. bool LoadJSON(const JSONValue&, bool = false);
  5360. bool LoadXML(const XMLElement&, bool = false);
  5361. void MarkNetworkUpdate() const;
  5362. void Remove();
  5363. void RemoveAttributeAnimation(const String&);
  5364. void RemoveInstanceDefault();
  5365. void RemoveObjectAnimation();
  5366. void ResetToDefault();
  5367. bool Save(File) const;
  5368. bool Save(VectorBuffer&) const;
  5369. bool SaveJSON(JSONValue&) const;
  5370. bool SaveXML(XMLElement&) const;
  5371. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5372. void SetAnimationTime(float);
  5373. bool SetAttribute(const String&, const Variant&);
  5374. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5375. void SetAttributeAnimationSpeed(const String&, float);
  5376. void SetAttributeAnimationTime(const String&, float);
  5377. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5378. void SetInterceptNetworkUpdate(const String&, bool);
  5379. // Properties:
  5380. bool animationEnabled;
  5381. /* readonly */
  5382. Array<Variant> attributeDefaults;
  5383. /* readonly */
  5384. Array<AttributeInfo> attributeInfos;
  5385. Array<Variant> attributes;
  5386. /* readonly */
  5387. String category;
  5388. bool enabled;
  5389. /* readonly */
  5390. bool enabledEffective;
  5391. /* readonly */
  5392. uint id;
  5393. /* readonly */
  5394. Node node;
  5395. /* readonly */
  5396. uint numAttributes;
  5397. ObjectAnimation objectAnimation;
  5398. /* readonly */
  5399. int refs;
  5400. bool temporary;
  5401. /* readonly */
  5402. StringHash type;
  5403. /* readonly */
  5404. String typeName;
  5405. /* readonly */
  5406. int weakRefs;
  5407. };
  5408. class IKEffector
  5409. {
  5410. public:
  5411. // Methods:
  5412. void ApplyAttributes();
  5413. void DrawDebugGeometry(DebugRenderer, bool);
  5414. void DrawDebugGeometry(bool);
  5415. Variant GetAttribute(const String&) const;
  5416. ValueAnimation GetAttributeAnimation(const String&) const;
  5417. float GetAttributeAnimationSpeed(const String&) const;
  5418. float GetAttributeAnimationTime(const String&) const;
  5419. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5420. Variant GetAttributeDefault(const String&) const;
  5421. bool GetInterceptNetworkUpdate(const String&) const;
  5422. bool HasSubscribedToEvent(Object, const String&);
  5423. bool HasSubscribedToEvent(const String&);
  5424. bool Load(File, bool = false);
  5425. bool Load(VectorBuffer&, bool = false);
  5426. bool LoadJSON(const JSONValue&, bool = false);
  5427. bool LoadXML(const XMLElement&, bool = false);
  5428. void MarkNetworkUpdate() const;
  5429. void Remove();
  5430. void RemoveAttributeAnimation(const String&);
  5431. void RemoveInstanceDefault();
  5432. void RemoveObjectAnimation();
  5433. void ResetToDefault();
  5434. bool Save(File) const;
  5435. bool Save(VectorBuffer&) const;
  5436. bool SaveJSON(JSONValue&) const;
  5437. bool SaveXML(XMLElement&) const;
  5438. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5439. void SetAnimationTime(float);
  5440. bool SetAttribute(const String&, const Variant&);
  5441. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5442. void SetAttributeAnimationSpeed(const String&, float);
  5443. void SetAttributeAnimationTime(const String&, float);
  5444. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5445. void SetInterceptNetworkUpdate(const String&, bool);
  5446. // Properties:
  5447. bool animationEnabled;
  5448. /* readonly */
  5449. Array<Variant> attributeDefaults;
  5450. /* readonly */
  5451. Array<AttributeInfo> attributeInfos;
  5452. Array<Variant> attributes;
  5453. /* readonly */
  5454. String category;
  5455. uint chainLength;
  5456. bool enabled;
  5457. /* readonly */
  5458. bool enabledEffective;
  5459. /* readonly */
  5460. uint id;
  5461. bool inheritParentRotation;
  5462. /* readonly */
  5463. Node node;
  5464. /* readonly */
  5465. uint numAttributes;
  5466. ObjectAnimation objectAnimation;
  5467. /* readonly */
  5468. int refs;
  5469. float rotationDecay;
  5470. float rotationWeight;
  5471. String targetName;
  5472. Node targetNode;
  5473. Vector3 targetPosition;
  5474. Quaternion targetRotation;
  5475. bool temporary;
  5476. /* readonly */
  5477. StringHash type;
  5478. /* readonly */
  5479. String typeName;
  5480. /* readonly */
  5481. int weakRefs;
  5482. float weight;
  5483. bool weightedNlerp;
  5484. };
  5485. class IKSolver
  5486. {
  5487. public:
  5488. // Methods:
  5489. void ApplyAttributes();
  5490. void DrawDebugGeometry(DebugRenderer, bool);
  5491. void DrawDebugGeometry(bool);
  5492. Variant GetAttribute(const String&) const;
  5493. ValueAnimation GetAttributeAnimation(const String&) const;
  5494. float GetAttributeAnimationSpeed(const String&) const;
  5495. float GetAttributeAnimationTime(const String&) const;
  5496. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5497. Variant GetAttributeDefault(const String&) const;
  5498. bool GetInterceptNetworkUpdate(const String&) const;
  5499. bool HasSubscribedToEvent(Object, const String&);
  5500. bool HasSubscribedToEvent(const String&);
  5501. bool Load(File, bool = false);
  5502. bool Load(VectorBuffer&, bool = false);
  5503. bool LoadJSON(const JSONValue&, bool = false);
  5504. bool LoadXML(const XMLElement&, bool = false);
  5505. void MarkNetworkUpdate() const;
  5506. void Remove();
  5507. void RemoveAttributeAnimation(const String&);
  5508. void RemoveInstanceDefault();
  5509. void RemoveObjectAnimation();
  5510. void ResetToDefault();
  5511. void ResetToInitialPose();
  5512. bool Save(File) const;
  5513. bool Save(VectorBuffer&) const;
  5514. bool SaveJSON(JSONValue&) const;
  5515. bool SaveXML(XMLElement&) const;
  5516. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5517. void SetAnimationTime(float);
  5518. bool SetAttribute(const String&, const Variant&);
  5519. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5520. void SetAttributeAnimationSpeed(const String&, float);
  5521. void SetAttributeAnimationTime(const String&, float);
  5522. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5523. void SetInterceptNetworkUpdate(const String&, bool);
  5524. void Solve();
  5525. void UpdateInitialPose();
  5526. // Properties:
  5527. IKAlgorithm algorithm;
  5528. bool animationEnabled;
  5529. /* readonly */
  5530. Array<Variant> attributeDefaults;
  5531. /* readonly */
  5532. Array<AttributeInfo> attributeInfos;
  5533. Array<Variant> attributes;
  5534. bool autoSolve;
  5535. bool boneRotations;
  5536. /* readonly */
  5537. String category;
  5538. bool continuousSolving;
  5539. bool enabled;
  5540. /* readonly */
  5541. bool enabledEffective;
  5542. /* readonly */
  5543. uint id;
  5544. uint maximumIterations;
  5545. /* readonly */
  5546. Node node;
  5547. /* readonly */
  5548. uint numAttributes;
  5549. ObjectAnimation objectAnimation;
  5550. /* readonly */
  5551. int refs;
  5552. bool targetRotation;
  5553. bool temporary;
  5554. float tolerance;
  5555. /* readonly */
  5556. StringHash type;
  5557. /* readonly */
  5558. String typeName;
  5559. bool updatePose;
  5560. /* readonly */
  5561. int weakRefs;
  5562. };
  5563. class Image
  5564. {
  5565. public:
  5566. Image();
  5567. Image(const String&in);
  5568. // Methods:
  5569. void Clear(const Color&);
  5570. void ClearInt(uint);
  5571. bool FlipHorizontal();
  5572. bool FlipVertical();
  5573. Color GetPixel(int, int) const;
  5574. Color GetPixel(int, int, int) const;
  5575. Color GetPixelBilinear(float, float) const;
  5576. uint GetPixelInt(int, int) const;
  5577. uint GetPixelInt(int, int, int) const;
  5578. Color GetPixelTrilinear(float, float, float) const;
  5579. Image GetSubimage(const IntRect&) const;
  5580. bool HasSubscribedToEvent(Object, const String&);
  5581. bool HasSubscribedToEvent(const String&);
  5582. bool Load(File);
  5583. bool Load(VectorBuffer&);
  5584. bool Load(const String&);
  5585. bool LoadColorLUT(File);
  5586. bool LoadColorLUT(VectorBuffer&);
  5587. bool Resize(int, int);
  5588. bool Save(File) const;
  5589. bool Save(VectorBuffer&) const;
  5590. bool Save(const String&) const;
  5591. bool SaveBMP(const String&) const;
  5592. bool SaveDDS(const String&) const;
  5593. bool SaveJPG(const String&, int) const;
  5594. bool SavePNG(const String&) const;
  5595. bool SaveTGA(const String&) const;
  5596. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5597. void SetPixel(int, int, const Color&);
  5598. void SetPixel(int, int, int, const Color&);
  5599. void SetPixelInt(int, int, int, uint);
  5600. void SetPixelInt(int, int, uint);
  5601. bool SetSize(int, int, int, uint);
  5602. bool SetSize(int, int, uint);
  5603. // Properties:
  5604. /* readonly */
  5605. bool array;
  5606. /* readonly */
  5607. String category;
  5608. /* readonly */
  5609. uint components;
  5610. /* readonly */
  5611. bool compressed;
  5612. /* readonly */
  5613. CompressedFormat compressedFormat;
  5614. /* readonly */
  5615. bool cubemap;
  5616. /* readonly */
  5617. int depth;
  5618. /* readonly */
  5619. int height;
  5620. /* readonly */
  5621. uint memoryUse;
  5622. String name;
  5623. /* readonly */
  5624. uint numCompressedLevels;
  5625. /* readonly */
  5626. int refs;
  5627. /* readonly */
  5628. bool sRGB;
  5629. /* readonly */
  5630. StringHash type;
  5631. /* readonly */
  5632. String typeName;
  5633. /* readonly */
  5634. uint useTimer;
  5635. /* readonly */
  5636. int weakRefs;
  5637. /* readonly */
  5638. int width;
  5639. };
  5640. class IndexBuffer
  5641. {
  5642. public:
  5643. IndexBuffer();
  5644. // Methods:
  5645. VectorBuffer GetData();
  5646. bool HasSubscribedToEvent(Object, const String&);
  5647. bool HasSubscribedToEvent(const String&);
  5648. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5649. bool SetData(VectorBuffer&);
  5650. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5651. void SetSize(uint, bool, bool = false);
  5652. // Properties:
  5653. /* readonly */
  5654. String category;
  5655. /* readonly */
  5656. bool dynamic;
  5657. /* readonly */
  5658. uint indexCount;
  5659. /* readonly */
  5660. uint indexSize;
  5661. /* readonly */
  5662. int refs;
  5663. bool shadowed;
  5664. /* readonly */
  5665. StringHash type;
  5666. /* readonly */
  5667. String typeName;
  5668. /* readonly */
  5669. int weakRefs;
  5670. };
  5671. class Input
  5672. {
  5673. public:
  5674. // Methods:
  5675. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5676. void CenterMousePosition();
  5677. int GetKeyFromName(const String&) const;
  5678. int GetKeyFromScancode(int) const;
  5679. String GetKeyName(int) const;
  5680. int GetScancodeFromKey(int) const;
  5681. int GetScancodeFromName(const String&) const;
  5682. String GetScancodeName(int) const;
  5683. bool HasSubscribedToEvent(Object, const String&);
  5684. bool HasSubscribedToEvent(const String&);
  5685. uint LoadGestures(File);
  5686. uint LoadGestures(VectorBuffer&);
  5687. bool RecordGesture();
  5688. void RemoveAllGestures();
  5689. bool RemoveGesture(uint);
  5690. bool RemoveScreenJoystick(int);
  5691. void ResetMouseGrabbed();
  5692. void ResetMouseMode();
  5693. void ResetMouseVisible();
  5694. bool SaveGesture(File, uint);
  5695. bool SaveGesture(VectorBuffer&, uint);
  5696. bool SaveGestures(File);
  5697. bool SaveGestures(VectorBuffer&);
  5698. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5699. void SetMouseGrabbed(bool, bool = false);
  5700. void SetMouseMode(MouseMode, bool = false);
  5701. void SetMouseVisible(bool, bool = false);
  5702. // Properties:
  5703. /* readonly */
  5704. String category;
  5705. /* readonly */
  5706. bool focus;
  5707. /* readonly */
  5708. Vector2 inputScale;
  5709. /* readonly */
  5710. Array<JoystickState> joysticks;
  5711. /* readonly */
  5712. Array<JoystickState> joysticksByIndex;
  5713. /* readonly */
  5714. Array<JoystickState> joysticksByName;
  5715. /* readonly */
  5716. Array<bool> keyDown;
  5717. /* readonly */
  5718. Array<bool> keyPress;
  5719. /* readonly */
  5720. bool minimized;
  5721. /* readonly */
  5722. Array<bool> mouseButtonDown;
  5723. /* readonly */
  5724. Array<bool> mouseButtonPress;
  5725. bool mouseGrabbed;
  5726. /* readonly */
  5727. bool mouseLocked;
  5728. MouseMode mouseMode;
  5729. /* readonly */
  5730. IntVector2 mouseMove;
  5731. /* readonly */
  5732. int mouseMoveWheel;
  5733. /* readonly */
  5734. int mouseMoveX;
  5735. /* readonly */
  5736. int mouseMoveY;
  5737. IntVector2 mousePosition;
  5738. bool mouseVisible;
  5739. /* readonly */
  5740. uint numJoysticks;
  5741. /* readonly */
  5742. uint numTouches;
  5743. /* readonly */
  5744. Array<bool> qualifierDown;
  5745. /* readonly */
  5746. Array<bool> qualifierPress;
  5747. /* readonly */
  5748. int qualifiers;
  5749. /* readonly */
  5750. int refs;
  5751. /* readonly */
  5752. Array<bool> scancodeDown;
  5753. /* readonly */
  5754. Array<bool> scancodePress;
  5755. Array<bool> screenJoystickVisible;
  5756. /* readonly */
  5757. bool screenKeyboardSupport;
  5758. bool screenKeyboardVisible;
  5759. bool toggleFullscreen;
  5760. bool touchEmulation;
  5761. /* readonly */
  5762. Array<TouchState> touches;
  5763. /* readonly */
  5764. StringHash type;
  5765. /* readonly */
  5766. String typeName;
  5767. /* readonly */
  5768. int weakRefs;
  5769. };
  5770. class IntRect
  5771. {
  5772. public:
  5773. IntRect();
  5774. IntRect(const IntRect&in);
  5775. IntRect(int, int, int, int);
  5776. IntRect(int[]&inout);
  5777. // Methods:
  5778. Intersection IsInside(const IntVector2&) const;
  5779. // Properties:
  5780. int bottom;
  5781. /* readonly */
  5782. Array<int> data;
  5783. /* readonly */
  5784. int height;
  5785. int left;
  5786. int right;
  5787. /* readonly */
  5788. IntVector2 size;
  5789. int top;
  5790. /* readonly */
  5791. int width;
  5792. };
  5793. class IntVector2
  5794. {
  5795. public:
  5796. IntVector2();
  5797. IntVector2(const IntVector2&in);
  5798. IntVector2(int, int);
  5799. IntVector2(int[]&inout);
  5800. // Methods:
  5801. float Length() const;
  5802. uint ToHash() const;
  5803. String ToString() const;
  5804. // Properties:
  5805. /* readonly */
  5806. Array<int> data;
  5807. int x;
  5808. int y;
  5809. // Constants:
  5810. static const IntVector2 DOWN;
  5811. static const IntVector2 LEFT;
  5812. static const IntVector2 ONE;
  5813. static const IntVector2 RIGHT;
  5814. static const IntVector2 UP;
  5815. static const IntVector2 ZERO;
  5816. };
  5817. class IntVector3
  5818. {
  5819. public:
  5820. IntVector3();
  5821. IntVector3(const IntVector3&in);
  5822. IntVector3(int, int, int);
  5823. IntVector3(int[]&inout);
  5824. // Methods:
  5825. float Length() const;
  5826. uint ToHash() const;
  5827. String ToString() const;
  5828. // Properties:
  5829. /* readonly */
  5830. Array<int> data;
  5831. int x;
  5832. int y;
  5833. int z;
  5834. // Constants:
  5835. static const IntVector3 BACK;
  5836. static const IntVector3 DOWN;
  5837. static const IntVector3 FORWARD;
  5838. static const IntVector3 LEFT;
  5839. static const IntVector3 ONE;
  5840. static const IntVector3 RIGHT;
  5841. static const IntVector3 UP;
  5842. static const IntVector3 ZERO;
  5843. };
  5844. class JSONFile
  5845. {
  5846. public:
  5847. JSONFile();
  5848. JSONFile(const String&in);
  5849. // Methods:
  5850. bool FromString(const String&);
  5851. JSONValue& GetRoot();
  5852. bool HasSubscribedToEvent(Object, const String&);
  5853. bool HasSubscribedToEvent(const String&);
  5854. bool Load(File);
  5855. bool Load(VectorBuffer&);
  5856. bool Load(const String&);
  5857. bool Save(File) const;
  5858. bool Save(File, const String&) const;
  5859. bool Save(VectorBuffer&) const;
  5860. bool Save(const String&) const;
  5861. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5862. // Properties:
  5863. /* readonly */
  5864. String category;
  5865. /* readonly */
  5866. uint memoryUse;
  5867. String name;
  5868. /* readonly */
  5869. int refs;
  5870. /* readonly */
  5871. JSONValue root;
  5872. /* readonly */
  5873. StringHash type;
  5874. /* readonly */
  5875. String typeName;
  5876. /* readonly */
  5877. uint useTimer;
  5878. /* readonly */
  5879. int weakRefs;
  5880. };
  5881. class JSONValue
  5882. {
  5883. public:
  5884. ~JSONValue();
  5885. JSONValue();
  5886. JSONValue(bool);
  5887. JSONValue(int);
  5888. JSONValue(uint);
  5889. JSONValue(float);
  5890. JSONValue(double);
  5891. JSONValue(const String&in);
  5892. JSONValue(const JSONValue&in);
  5893. // Methods:
  5894. void Clear();
  5895. bool Contains(const String&) const;
  5896. void Erase(const String&);
  5897. void Erase(uint, uint = 1);
  5898. bool GetBool() const;
  5899. double GetDouble() const;
  5900. float GetFloat() const;
  5901. int GetInt() const;
  5902. uint GetUInt() const;
  5903. Variant GetVariant() const;
  5904. VariantMap GetVariantMap() const;
  5905. void Insert(uint, const JSONValue&);
  5906. const JSONValue& Get(const String&) const;
  5907. void Pop();
  5908. void Push(const JSONValue&);
  5909. void Resize(uint);
  5910. void Set(const String&, const JSONValue&);
  5911. void SetVariant(const Variant&);
  5912. void SetVariantMap(const VariantMap&);
  5913. const String& GetString() const;
  5914. // Properties:
  5915. /* readonly */
  5916. bool isArray;
  5917. /* readonly */
  5918. bool isBool;
  5919. /* readonly */
  5920. bool isNull;
  5921. /* readonly */
  5922. bool isNumber;
  5923. /* readonly */
  5924. bool isObject;
  5925. /* readonly */
  5926. bool isString;
  5927. /* readonly */
  5928. Array<String> keys;
  5929. /* readonly */
  5930. JSONNumberType numberType;
  5931. /* readonly */
  5932. String numberTypeName;
  5933. /* readonly */
  5934. uint size;
  5935. /* readonly */
  5936. JSONValueType valueType;
  5937. /* readonly */
  5938. String valueTypeName;
  5939. /* readonly */
  5940. Array<JSONValue> values;
  5941. };
  5942. class JoystickState
  5943. {
  5944. public:
  5945. // Properties:
  5946. /* readonly */
  5947. Array<float> axisPosition;
  5948. /* readonly */
  5949. Array<bool> buttonDown;
  5950. /* readonly */
  5951. Array<bool> buttonPress;
  5952. /* readonly */
  5953. bool controller;
  5954. /* readonly */
  5955. Array<int> hatPosition;
  5956. int joystickID;
  5957. String name;
  5958. /* readonly */
  5959. uint numAxes;
  5960. /* readonly */
  5961. uint numButtons;
  5962. /* readonly */
  5963. uint numHats;
  5964. };
  5965. class Light
  5966. {
  5967. public:
  5968. // Methods:
  5969. void ApplyAttributes();
  5970. void DrawDebugGeometry(DebugRenderer, bool);
  5971. Variant GetAttribute(const String&) const;
  5972. ValueAnimation GetAttributeAnimation(const String&) const;
  5973. float GetAttributeAnimationSpeed(const String&) const;
  5974. float GetAttributeAnimationTime(const String&) const;
  5975. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5976. Variant GetAttributeDefault(const String&) const;
  5977. bool GetInterceptNetworkUpdate(const String&) const;
  5978. bool HasSubscribedToEvent(Object, const String&);
  5979. bool HasSubscribedToEvent(const String&);
  5980. bool IsInView(Camera) const;
  5981. bool Load(File, bool = false);
  5982. bool Load(VectorBuffer&, bool = false);
  5983. bool LoadJSON(const JSONValue&, bool = false);
  5984. bool LoadXML(const XMLElement&, bool = false);
  5985. void MarkNetworkUpdate() const;
  5986. void Remove();
  5987. void RemoveAttributeAnimation(const String&);
  5988. void RemoveInstanceDefault();
  5989. void RemoveObjectAnimation();
  5990. void ResetToDefault();
  5991. bool Save(File) const;
  5992. bool Save(VectorBuffer&) const;
  5993. bool SaveJSON(JSONValue&) const;
  5994. bool SaveXML(XMLElement&) const;
  5995. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5996. void SetAnimationTime(float);
  5997. bool SetAttribute(const String&, const Variant&);
  5998. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5999. void SetAttributeAnimationSpeed(const String&, float);
  6000. void SetAttributeAnimationTime(const String&, float);
  6001. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6002. void SetInterceptNetworkUpdate(const String&, bool);
  6003. // Properties:
  6004. bool animationEnabled;
  6005. float aspectRatio;
  6006. /* readonly */
  6007. Array<Variant> attributeDefaults;
  6008. /* readonly */
  6009. Array<AttributeInfo> attributeInfos;
  6010. Array<Variant> attributes;
  6011. /* readonly */
  6012. BoundingBox boundingBox;
  6013. float brightness;
  6014. bool castShadows;
  6015. /* readonly */
  6016. String category;
  6017. Color color;
  6018. /* readonly */
  6019. Color colorFromTemperature;
  6020. float drawDistance;
  6021. /* readonly */
  6022. Color effectiveColor;
  6023. /* readonly */
  6024. float effectiveSpecularIntensity;
  6025. bool enabled;
  6026. /* readonly */
  6027. bool enabledEffective;
  6028. float fadeDistance;
  6029. float fov;
  6030. /* readonly */
  6031. Frustum frustum;
  6032. /* readonly */
  6033. uint id;
  6034. /* readonly */
  6035. bool inView;
  6036. float length;
  6037. uint lightMask;
  6038. LightType lightType;
  6039. float lodBias;
  6040. uint maxLights;
  6041. /* readonly */
  6042. bool negative;
  6043. /* readonly */
  6044. Node node;
  6045. /* readonly */
  6046. uint numAttributes;
  6047. /* readonly */
  6048. int numShadowSplits;
  6049. ObjectAnimation objectAnimation;
  6050. bool occludee;
  6051. bool occluder;
  6052. bool perVertex;
  6053. float radius;
  6054. Texture rampTexture;
  6055. float range;
  6056. /* readonly */
  6057. int refs;
  6058. BiasParameters shadowBias;
  6059. CascadeParameters shadowCascade;
  6060. float shadowDistance;
  6061. float shadowFadeDistance;
  6062. FocusParameters shadowFocus;
  6063. float shadowIntensity;
  6064. uint shadowMask;
  6065. float shadowMaxExtrusion;
  6066. float shadowNearFarRatio;
  6067. float shadowResolution;
  6068. Texture shapeTexture;
  6069. float specularIntensity;
  6070. float temperature;
  6071. bool temporary;
  6072. /* readonly */
  6073. StringHash type;
  6074. /* readonly */
  6075. String typeName;
  6076. bool usePhysicalValues;
  6077. uint viewMask;
  6078. /* readonly */
  6079. int weakRefs;
  6080. /* readonly */
  6081. BoundingBox worldBoundingBox;
  6082. uint zoneMask;
  6083. };
  6084. class LineEdit
  6085. {
  6086. public:
  6087. LineEdit();
  6088. LineEdit(const String&in);
  6089. // Methods:
  6090. void AddChild(UIElement);
  6091. void AddTag(const String&);
  6092. void AddTags(const String&, int8 = ';');
  6093. void ApplyAttributes();
  6094. void BringToFront();
  6095. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6096. void DisableLayoutUpdate();
  6097. IntVector2 ElementToScreen(const IntVector2&);
  6098. void EnableLayoutUpdate();
  6099. uint FindChild(UIElement) const;
  6100. Variant GetAttribute(const String&) const;
  6101. ValueAnimation GetAttributeAnimation(const String&) const;
  6102. float GetAttributeAnimationSpeed(const String&) const;
  6103. float GetAttributeAnimationTime(const String&) const;
  6104. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6105. Variant GetAttributeDefault(const String&) const;
  6106. UIElement GetChild(const String&, bool = false) const;
  6107. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6108. Array<UIElement> GetChildren(bool = false) const;
  6109. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6110. UIElement GetElementEventSender() const;
  6111. bool GetInterceptNetworkUpdate(const String&) const;
  6112. uint GetNumChildren(bool) const;
  6113. bool HasSubscribedToEvent(Object, const String&);
  6114. bool HasSubscribedToEvent(const String&);
  6115. bool HasTag(const String&) const;
  6116. void InsertChild(uint, UIElement);
  6117. bool IsInside(IntVector2, bool);
  6118. bool IsInsideCombined(IntVector2, bool);
  6119. bool Load(File, bool = false);
  6120. bool Load(VectorBuffer&, bool = false);
  6121. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6122. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6123. bool LoadJSON(const JSONValue&, bool = false);
  6124. bool LoadXML(File);
  6125. bool LoadXML(VectorBuffer&);
  6126. bool LoadXML(XMLFile, XMLFile);
  6127. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6128. bool LoadXML(const XMLElement&, bool = false);
  6129. void MarkNetworkUpdate() const;
  6130. void Remove();
  6131. void RemoveAllChildren();
  6132. void RemoveAllTags();
  6133. void RemoveAttributeAnimation(const String&);
  6134. void RemoveChild(UIElement, uint = 0);
  6135. void RemoveChild(uint);
  6136. void RemoveInstanceDefault();
  6137. void RemoveObjectAnimation();
  6138. bool RemoveTag(const String&);
  6139. void ResetDeepEnabled();
  6140. void ResetToDefault();
  6141. bool Save(File) const;
  6142. bool Save(VectorBuffer&) const;
  6143. bool SaveJSON(JSONValue&) const;
  6144. bool SaveXML(File, const String& = "\t");
  6145. bool SaveXML(VectorBuffer&, const String& = "\t");
  6146. bool SaveXML(XMLElement&) const;
  6147. IntVector2 ScreenToElement(const IntVector2&);
  6148. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6149. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6150. void SetAnimationTime(float);
  6151. bool SetAttribute(const String&, const Variant&);
  6152. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6153. void SetAttributeAnimationSpeed(const String&, float);
  6154. void SetAttributeAnimationTime(const String&, float);
  6155. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6156. void SetDeepEnabled(bool);
  6157. void SetEnabledRecursive(bool);
  6158. void SetFixedHeight(int);
  6159. void SetFixedSize(int, int);
  6160. void SetFixedWidth(int);
  6161. void SetFullImageRect();
  6162. void SetHoverOffset(int, int);
  6163. void SetInterceptNetworkUpdate(const String&, bool);
  6164. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6165. void SetMaxAnchor(float, float);
  6166. void SetMaxSize(int, int);
  6167. void SetMinAnchor(float, float);
  6168. void SetMinSize(int, int);
  6169. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6170. void SetPivot(float, float);
  6171. void SetPosition(int, int);
  6172. void SetSize(int, int);
  6173. bool SetStyle(const String&, XMLFile = null);
  6174. bool SetStyle(const XMLElement&);
  6175. bool SetStyleAuto(XMLFile = null);
  6176. void UpdateLayout();
  6177. const Variant& GetVar(const StringHash&);
  6178. // Properties:
  6179. bool animationEnabled;
  6180. /* readonly */
  6181. Array<Variant> attributeDefaults;
  6182. /* readonly */
  6183. Array<AttributeInfo> attributeInfos;
  6184. Array<Variant> attributes;
  6185. BlendMode blendMode;
  6186. IntRect border;
  6187. bool bringToBack;
  6188. bool bringToFront;
  6189. /* readonly */
  6190. String category;
  6191. /* readonly */
  6192. IntVector2 childOffset;
  6193. /* readonly */
  6194. Array<UIElement> children;
  6195. IntRect clipBorder;
  6196. bool clipChildren;
  6197. /* writeonly */
  6198. Color color;
  6199. /* readonly */
  6200. bool colorGradient;
  6201. Array<Color> colors;
  6202. /* readonly */
  6203. IntRect combinedScreenRect;
  6204. /* readonly */
  6205. BorderImage cursor;
  6206. float cursorBlinkRate;
  6207. bool cursorMovable;
  6208. uint cursorPosition;
  6209. XMLFile defaultStyle;
  6210. /* readonly */
  6211. float derivedOpacity;
  6212. /* readonly */
  6213. uint dragButtonCombo;
  6214. /* readonly */
  6215. int dragButtonCount;
  6216. uint dragDropMode;
  6217. uint echoCharacter;
  6218. bool editable;
  6219. bool elementEventSender;
  6220. bool enableAnchor;
  6221. bool enabled;
  6222. /* readonly */
  6223. bool enabledSelf;
  6224. /* readonly */
  6225. bool fixedHeight;
  6226. /* readonly */
  6227. bool fixedSize;
  6228. /* readonly */
  6229. bool fixedWidth;
  6230. bool focus;
  6231. FocusMode focusMode;
  6232. int height;
  6233. HorizontalAlignment horizontalAlignment;
  6234. IntVector2 hoverOffset;
  6235. /* readonly */
  6236. bool hovering;
  6237. IntRect imageBorder;
  6238. IntRect imageRect;
  6239. int indent;
  6240. int indentSpacing;
  6241. /* readonly */
  6242. int indentWidth;
  6243. bool internal;
  6244. IntRect layoutBorder;
  6245. Vector2 layoutFlexScale;
  6246. LayoutMode layoutMode;
  6247. int layoutSpacing;
  6248. Vector2 maxAnchor;
  6249. int maxHeight;
  6250. uint maxLength;
  6251. IntVector2 maxOffset;
  6252. IntVector2 maxSize;
  6253. int maxWidth;
  6254. Vector2 minAnchor;
  6255. int minHeight;
  6256. IntVector2 minOffset;
  6257. IntVector2 minSize;
  6258. int minWidth;
  6259. String name;
  6260. /* readonly */
  6261. uint numAllChildren;
  6262. /* readonly */
  6263. uint numAttributes;
  6264. /* readonly */
  6265. uint numChildren;
  6266. ObjectAnimation objectAnimation;
  6267. float opacity;
  6268. UIElement parent;
  6269. Vector2 pivot;
  6270. IntVector2 position;
  6271. int priority;
  6272. /* readonly */
  6273. int refs;
  6274. /* readonly */
  6275. UIElement root;
  6276. /* readonly */
  6277. IntVector2 screenPosition;
  6278. bool selected;
  6279. IntVector2 size;
  6280. bool sortChildren;
  6281. String style;
  6282. /* readonly */
  6283. Array<String> tags;
  6284. bool temporary;
  6285. String text;
  6286. bool textCopyable;
  6287. /* readonly */
  6288. Text textElement;
  6289. bool textSelectable;
  6290. Texture texture;
  6291. bool tiled;
  6292. TraversalMode traversalMode;
  6293. /* readonly */
  6294. StringHash type;
  6295. /* readonly */
  6296. String typeName;
  6297. bool useDerivedOpacity;
  6298. /* readonly */
  6299. VariantMap vars;
  6300. VerticalAlignment verticalAlignment;
  6301. bool visible;
  6302. /* readonly */
  6303. bool visibleEffective;
  6304. /* readonly */
  6305. int weakRefs;
  6306. int width;
  6307. };
  6308. class ListView
  6309. {
  6310. public:
  6311. ListView();
  6312. ListView(const String&in);
  6313. // Methods:
  6314. void AddChild(UIElement);
  6315. void AddItem(UIElement);
  6316. void AddSelection(uint);
  6317. void AddTag(const String&);
  6318. void AddTags(const String&, int8 = ';');
  6319. void ApplyAttributes();
  6320. void BringToFront();
  6321. void ChangeSelection(int, bool);
  6322. void ClearSelection();
  6323. void CopySelectedItemsToClipboard();
  6324. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6325. void DisableLayoutUpdate();
  6326. IntVector2 ElementToScreen(const IntVector2&);
  6327. void EnableLayoutUpdate();
  6328. void Expand(uint, bool, bool = false);
  6329. uint FindChild(UIElement) const;
  6330. uint FindItem(UIElement);
  6331. Variant GetAttribute(const String&) const;
  6332. ValueAnimation GetAttributeAnimation(const String&) const;
  6333. float GetAttributeAnimationSpeed(const String&) const;
  6334. float GetAttributeAnimationTime(const String&) const;
  6335. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6336. Variant GetAttributeDefault(const String&) const;
  6337. UIElement GetChild(const String&, bool = false) const;
  6338. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6339. Array<UIElement> GetChildren(bool = false) const;
  6340. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6341. UIElement GetElementEventSender() const;
  6342. bool GetInterceptNetworkUpdate(const String&) const;
  6343. Array<UIElement> GetItems() const;
  6344. uint GetNumChildren(bool) const;
  6345. bool HasSubscribedToEvent(Object, const String&);
  6346. bool HasSubscribedToEvent(const String&);
  6347. bool HasTag(const String&) const;
  6348. void InsertChild(uint, UIElement);
  6349. void InsertItem(uint, UIElement, UIElement = null);
  6350. bool IsExpanded(uint) const;
  6351. bool IsInside(IntVector2, bool);
  6352. bool IsInsideCombined(IntVector2, bool);
  6353. bool IsSelected(uint) const;
  6354. bool Load(File, bool = false);
  6355. bool Load(VectorBuffer&, bool = false);
  6356. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6357. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6358. bool LoadJSON(const JSONValue&, bool = false);
  6359. bool LoadXML(File);
  6360. bool LoadXML(VectorBuffer&);
  6361. bool LoadXML(XMLFile, XMLFile);
  6362. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6363. bool LoadXML(const XMLElement&, bool = false);
  6364. void MarkNetworkUpdate() const;
  6365. void Remove();
  6366. void RemoveAllChildren();
  6367. void RemoveAllItems();
  6368. void RemoveAllTags();
  6369. void RemoveAttributeAnimation(const String&);
  6370. void RemoveChild(UIElement, uint = 0);
  6371. void RemoveChild(uint);
  6372. void RemoveInstanceDefault();
  6373. void RemoveItem(UIElement, uint = 0);
  6374. void RemoveItem(uint);
  6375. void RemoveObjectAnimation();
  6376. void RemoveSelection(uint);
  6377. bool RemoveTag(const String&);
  6378. void ResetDeepEnabled();
  6379. void ResetToDefault();
  6380. bool Save(File) const;
  6381. bool Save(VectorBuffer&) const;
  6382. bool SaveJSON(JSONValue&) const;
  6383. bool SaveXML(File, const String& = "\t");
  6384. bool SaveXML(VectorBuffer&, const String& = "\t");
  6385. bool SaveXML(XMLElement&) const;
  6386. IntVector2 ScreenToElement(const IntVector2&);
  6387. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6388. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6389. void SetAnimationTime(float);
  6390. bool SetAttribute(const String&, const Variant&);
  6391. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6392. void SetAttributeAnimationSpeed(const String&, float);
  6393. void SetAttributeAnimationTime(const String&, float);
  6394. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6395. void SetDeepEnabled(bool);
  6396. void SetEnabledRecursive(bool);
  6397. void SetFixedHeight(int);
  6398. void SetFixedSize(int, int);
  6399. void SetFixedWidth(int);
  6400. void SetInterceptNetworkUpdate(const String&, bool);
  6401. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6402. void SetMaxAnchor(float, float);
  6403. void SetMaxSize(int, int);
  6404. void SetMinAnchor(float, float);
  6405. void SetMinSize(int, int);
  6406. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6407. void SetPivot(float, float);
  6408. void SetPosition(int, int);
  6409. void SetScrollBarsVisible(bool, bool);
  6410. void SetSelections(Array<uint>);
  6411. void SetSize(int, int);
  6412. bool SetStyle(const String&, XMLFile = null);
  6413. bool SetStyle(const XMLElement&);
  6414. bool SetStyleAuto(XMLFile = null);
  6415. void SetViewPosition(int, int);
  6416. void ToggleExpand(uint, bool = false);
  6417. void ToggleSelection(uint);
  6418. void UpdateLayout();
  6419. const Variant& GetVar(const StringHash&);
  6420. // Properties:
  6421. bool animationEnabled;
  6422. /* readonly */
  6423. Array<Variant> attributeDefaults;
  6424. /* readonly */
  6425. Array<AttributeInfo> attributeInfos;
  6426. Array<Variant> attributes;
  6427. bool autoDisableChildren;
  6428. float autoDisableThreshold;
  6429. int baseIndent;
  6430. bool bringToBack;
  6431. bool bringToFront;
  6432. /* readonly */
  6433. String category;
  6434. /* readonly */
  6435. IntVector2 childOffset;
  6436. /* readonly */
  6437. Array<UIElement> children;
  6438. bool clearSelectionOnDefocus;
  6439. IntRect clipBorder;
  6440. bool clipChildren;
  6441. /* writeonly */
  6442. Color color;
  6443. /* readonly */
  6444. bool colorGradient;
  6445. Array<Color> colors;
  6446. /* readonly */
  6447. IntRect combinedScreenRect;
  6448. /* readonly */
  6449. UIElement contentElement;
  6450. XMLFile defaultStyle;
  6451. /* readonly */
  6452. float derivedOpacity;
  6453. /* readonly */
  6454. uint dragButtonCombo;
  6455. /* readonly */
  6456. int dragButtonCount;
  6457. uint dragDropMode;
  6458. bool editable;
  6459. bool elementEventSender;
  6460. bool enableAnchor;
  6461. bool enabled;
  6462. /* readonly */
  6463. bool enabledSelf;
  6464. /* readonly */
  6465. bool fixedHeight;
  6466. /* readonly */
  6467. bool fixedSize;
  6468. /* readonly */
  6469. bool fixedWidth;
  6470. bool focus;
  6471. FocusMode focusMode;
  6472. int height;
  6473. bool hierarchyMode;
  6474. HighlightMode highlightMode;
  6475. HorizontalAlignment horizontalAlignment;
  6476. /* readonly */
  6477. ScrollBar horizontalScrollBar;
  6478. /* readonly */
  6479. bool hovering;
  6480. int indent;
  6481. int indentSpacing;
  6482. /* readonly */
  6483. int indentWidth;
  6484. bool internal;
  6485. /* readonly */
  6486. Array<UIElement> items;
  6487. IntRect layoutBorder;
  6488. Vector2 layoutFlexScale;
  6489. LayoutMode layoutMode;
  6490. int layoutSpacing;
  6491. Vector2 maxAnchor;
  6492. int maxHeight;
  6493. IntVector2 maxOffset;
  6494. IntVector2 maxSize;
  6495. int maxWidth;
  6496. Vector2 minAnchor;
  6497. int minHeight;
  6498. IntVector2 minOffset;
  6499. IntVector2 minSize;
  6500. int minWidth;
  6501. bool multiselect;
  6502. String name;
  6503. /* readonly */
  6504. uint numAllChildren;
  6505. /* readonly */
  6506. uint numAttributes;
  6507. /* readonly */
  6508. uint numChildren;
  6509. /* readonly */
  6510. uint numItems;
  6511. ObjectAnimation objectAnimation;
  6512. float opacity;
  6513. float pageStep;
  6514. UIElement parent;
  6515. Vector2 pivot;
  6516. IntVector2 position;
  6517. int priority;
  6518. /* readonly */
  6519. int refs;
  6520. /* readonly */
  6521. UIElement root;
  6522. /* readonly */
  6523. IntVector2 screenPosition;
  6524. bool scrollBarsAutoVisible;
  6525. float scrollDeceleration;
  6526. /* readonly */
  6527. BorderImage scrollPanel;
  6528. float scrollSnapEpsilon;
  6529. float scrollStep;
  6530. bool selectOnClickEnd;
  6531. bool selected;
  6532. /* readonly */
  6533. UIElement selectedItem;
  6534. /* readonly */
  6535. Array<UIElement> selectedItems;
  6536. uint selection;
  6537. /* readonly */
  6538. Array<uint> selections;
  6539. IntVector2 size;
  6540. bool sortChildren;
  6541. String style;
  6542. /* readonly */
  6543. Array<String> tags;
  6544. bool temporary;
  6545. TraversalMode traversalMode;
  6546. /* readonly */
  6547. StringHash type;
  6548. /* readonly */
  6549. String typeName;
  6550. bool useDerivedOpacity;
  6551. /* readonly */
  6552. VariantMap vars;
  6553. VerticalAlignment verticalAlignment;
  6554. /* readonly */
  6555. ScrollBar verticalScrollBar;
  6556. IntVector2 viewPosition;
  6557. bool visible;
  6558. /* readonly */
  6559. bool visibleEffective;
  6560. /* readonly */
  6561. int weakRefs;
  6562. int width;
  6563. };
  6564. class Localization
  6565. {
  6566. public:
  6567. // Methods:
  6568. String Get(const String&);
  6569. String GetLanguage(int);
  6570. int GetLanguageIndex(const String&);
  6571. bool HasSubscribedToEvent(Object, const String&);
  6572. bool HasSubscribedToEvent(const String&);
  6573. void LoadJSON(const JSONValue&);
  6574. void LoadJSONFile(const String&);
  6575. void Reset();
  6576. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6577. void SetLanguage(const String&);
  6578. void SetLanguage(int);
  6579. // Properties:
  6580. /* readonly */
  6581. String category;
  6582. /* readonly */
  6583. String language;
  6584. /* readonly */
  6585. int languageIndex;
  6586. /* readonly */
  6587. int numLanguages;
  6588. /* readonly */
  6589. int refs;
  6590. /* readonly */
  6591. StringHash type;
  6592. /* readonly */
  6593. String typeName;
  6594. /* readonly */
  6595. int weakRefs;
  6596. };
  6597. class Log
  6598. {
  6599. public:
  6600. // Methods:
  6601. void Close();
  6602. void Debug(const String&);
  6603. void Error(const String&);
  6604. bool HasSubscribedToEvent(Object, const String&);
  6605. bool HasSubscribedToEvent(const String&);
  6606. void Info(const String&);
  6607. void Open(const String&);
  6608. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6609. void Warning(const String&);
  6610. void Write(const String&, bool = false);
  6611. // Properties:
  6612. /* readonly */
  6613. String category;
  6614. /* readonly */
  6615. String lastMessage;
  6616. int level;
  6617. bool quiet;
  6618. /* readonly */
  6619. int refs;
  6620. bool timeStamp;
  6621. /* readonly */
  6622. StringHash type;
  6623. /* readonly */
  6624. String typeName;
  6625. /* readonly */
  6626. int weakRefs;
  6627. };
  6628. class Material
  6629. {
  6630. public:
  6631. Material();
  6632. Material(const String&in);
  6633. // Methods:
  6634. Material Clone(const String& = String ( )) const;
  6635. Pass GetPass(uint, const String&);
  6636. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6637. float GetShaderParameterAnimationSpeed(const String&) const;
  6638. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6639. bool HasSubscribedToEvent(Object, const String&);
  6640. bool HasSubscribedToEvent(const String&);
  6641. bool Load(File);
  6642. bool Load(VectorBuffer&);
  6643. bool Load(const JSONValue&);
  6644. bool Load(const String&);
  6645. bool Load(const XMLElement&);
  6646. void RemoveShaderParameter(const String&);
  6647. bool Save(File) const;
  6648. bool Save(JSONValue&) const;
  6649. bool Save(VectorBuffer&) const;
  6650. bool Save(XMLElement&) const;
  6651. bool Save(const String&) const;
  6652. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6653. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6654. void SetShaderParameterAnimationSpeed(const String&, float);
  6655. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6656. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6657. void SetUVTransform(const Vector2&, float, const Vector2&);
  6658. void SetUVTransform(const Vector2&, float, float);
  6659. void SortTechniques();
  6660. // Properties:
  6661. bool alphaToCoverage;
  6662. /* readonly */
  6663. String category;
  6664. CullMode cullMode;
  6665. BiasParameters depthBias;
  6666. FillMode fillMode;
  6667. bool lineAntiAlias;
  6668. /* readonly */
  6669. uint memoryUse;
  6670. String name;
  6671. uint numTechniques;
  6672. bool occlusion;
  6673. String pixelShaderDefines;
  6674. /* readonly */
  6675. int refs;
  6676. uint8 renderOrder;
  6677. Scene scene;
  6678. /* readonly */
  6679. Array<String> shaderParameterNames;
  6680. Array<Variant> shaderParameters;
  6681. CullMode shadowCullMode;
  6682. /* readonly */
  6683. Array<TechniqueEntry> techniqueEntries;
  6684. /* readonly */
  6685. Array<Technique> techniques;
  6686. Array<Texture> textures;
  6687. /* readonly */
  6688. StringHash type;
  6689. /* readonly */
  6690. String typeName;
  6691. /* readonly */
  6692. uint useTimer;
  6693. String vertexShaderDefines;
  6694. /* readonly */
  6695. int weakRefs;
  6696. };
  6697. class Matrix2
  6698. {
  6699. public:
  6700. Matrix2();
  6701. Matrix2(const Matrix2&in);
  6702. Matrix2(float, float, float, float);
  6703. // Methods:
  6704. bool Equals(const Matrix2&) const;
  6705. Matrix2 Inverse() const;
  6706. Vector2 Scale() const;
  6707. Matrix2 Scaled(const Vector2&) const;
  6708. void SetScale(const Vector2&);
  6709. void SetScale(float);
  6710. String ToString() const;
  6711. Matrix2 Transpose() const;
  6712. // Properties:
  6713. float m00;
  6714. float m01;
  6715. float m10;
  6716. float m11;
  6717. };
  6718. class Matrix3
  6719. {
  6720. public:
  6721. Matrix3();
  6722. Matrix3(const Matrix3&in);
  6723. Matrix3(float, float, float, float, float, float, float, float, float);
  6724. // Methods:
  6725. bool Equals(const Matrix3&) const;
  6726. Matrix3 Inverse() const;
  6727. Vector3 Scale() const;
  6728. Matrix3 Scaled(const Vector3&) const;
  6729. void SetScale(const Vector3&);
  6730. void SetScale(float);
  6731. String ToString() const;
  6732. Matrix3 Transpose() const;
  6733. // Properties:
  6734. float m00;
  6735. float m01;
  6736. float m02;
  6737. float m10;
  6738. float m11;
  6739. float m12;
  6740. float m20;
  6741. float m21;
  6742. float m22;
  6743. };
  6744. class Matrix3x4
  6745. {
  6746. public:
  6747. Matrix3x4();
  6748. Matrix3x4(const Matrix3x4&in);
  6749. Matrix3x4(const Matrix3&in);
  6750. Matrix3x4(const Matrix4&in);
  6751. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  6752. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  6753. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  6754. // Methods:
  6755. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6756. bool Equals(const Matrix3x4&) const;
  6757. Matrix3x4 Inverse() const;
  6758. Quaternion Rotation() const;
  6759. Matrix3 RotationMatrix() const;
  6760. Vector3 Scale() const;
  6761. void SetRotation(const Matrix3&);
  6762. void SetScale(const Vector3&);
  6763. void SetScale(float);
  6764. void SetTranslation(const Vector3&);
  6765. Matrix3 ToMatrix3() const;
  6766. Matrix4 ToMatrix4() const;
  6767. String ToString() const;
  6768. Vector3 Translation() const;
  6769. // Properties:
  6770. float m00;
  6771. float m01;
  6772. float m02;
  6773. float m03;
  6774. float m10;
  6775. float m11;
  6776. float m12;
  6777. float m13;
  6778. float m20;
  6779. float m21;
  6780. float m22;
  6781. float m23;
  6782. };
  6783. class Matrix4
  6784. {
  6785. public:
  6786. Matrix4();
  6787. Matrix4(const Matrix4&in);
  6788. Matrix4(const Matrix3&in);
  6789. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  6790. // Methods:
  6791. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6792. bool Equals(const Matrix4&) const;
  6793. Matrix4 Inverse() const;
  6794. Quaternion Rotation() const;
  6795. Matrix3 RotationMatrix() const;
  6796. Vector3 Scale() const;
  6797. void SetRotation(const Matrix3&);
  6798. void SetScale(const Vector3&);
  6799. void SetScale(float);
  6800. void SetTranslation(const Vector3&);
  6801. Matrix3 ToMatrix3() const;
  6802. String ToString() const;
  6803. Vector3 Translation() const;
  6804. Matrix4 Transpose() const;
  6805. // Properties:
  6806. float m00;
  6807. float m01;
  6808. float m02;
  6809. float m03;
  6810. float m10;
  6811. float m11;
  6812. float m12;
  6813. float m13;
  6814. float m20;
  6815. float m21;
  6816. float m22;
  6817. float m23;
  6818. float m30;
  6819. float m31;
  6820. float m32;
  6821. float m33;
  6822. };
  6823. class Menu
  6824. {
  6825. public:
  6826. Menu();
  6827. Menu(const String&in);
  6828. // Methods:
  6829. void AddChild(UIElement);
  6830. void AddTag(const String&);
  6831. void AddTags(const String&, int8 = ';');
  6832. void ApplyAttributes();
  6833. void BringToFront();
  6834. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6835. void DisableLayoutUpdate();
  6836. IntVector2 ElementToScreen(const IntVector2&);
  6837. void EnableLayoutUpdate();
  6838. uint FindChild(UIElement) const;
  6839. Variant GetAttribute(const String&) const;
  6840. ValueAnimation GetAttributeAnimation(const String&) const;
  6841. float GetAttributeAnimationSpeed(const String&) const;
  6842. float GetAttributeAnimationTime(const String&) const;
  6843. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6844. Variant GetAttributeDefault(const String&) const;
  6845. UIElement GetChild(const String&, bool = false) const;
  6846. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6847. Array<UIElement> GetChildren(bool = false) const;
  6848. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6849. UIElement GetElementEventSender() const;
  6850. bool GetInterceptNetworkUpdate(const String&) const;
  6851. uint GetNumChildren(bool) const;
  6852. bool HasSubscribedToEvent(Object, const String&);
  6853. bool HasSubscribedToEvent(const String&);
  6854. bool HasTag(const String&) const;
  6855. void InsertChild(uint, UIElement);
  6856. bool IsInside(IntVector2, bool);
  6857. bool IsInsideCombined(IntVector2, bool);
  6858. bool Load(File, bool = false);
  6859. bool Load(VectorBuffer&, bool = false);
  6860. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6861. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6862. bool LoadJSON(const JSONValue&, bool = false);
  6863. bool LoadXML(File);
  6864. bool LoadXML(VectorBuffer&);
  6865. bool LoadXML(XMLFile, XMLFile);
  6866. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6867. bool LoadXML(const XMLElement&, bool = false);
  6868. void MarkNetworkUpdate() const;
  6869. void Remove();
  6870. void RemoveAllChildren();
  6871. void RemoveAllTags();
  6872. void RemoveAttributeAnimation(const String&);
  6873. void RemoveChild(UIElement, uint = 0);
  6874. void RemoveChild(uint);
  6875. void RemoveInstanceDefault();
  6876. void RemoveObjectAnimation();
  6877. bool RemoveTag(const String&);
  6878. void ResetDeepEnabled();
  6879. void ResetToDefault();
  6880. bool Save(File) const;
  6881. bool Save(VectorBuffer&) const;
  6882. bool SaveJSON(JSONValue&) const;
  6883. bool SaveXML(File, const String& = "\t");
  6884. bool SaveXML(VectorBuffer&, const String& = "\t");
  6885. bool SaveXML(XMLElement&) const;
  6886. IntVector2 ScreenToElement(const IntVector2&);
  6887. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6888. void SetAccelerator(int, int);
  6889. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6890. void SetAnimationTime(float);
  6891. bool SetAttribute(const String&, const Variant&);
  6892. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6893. void SetAttributeAnimationSpeed(const String&, float);
  6894. void SetAttributeAnimationTime(const String&, float);
  6895. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6896. void SetDeepEnabled(bool);
  6897. void SetEnabledRecursive(bool);
  6898. void SetFixedHeight(int);
  6899. void SetFixedSize(int, int);
  6900. void SetFixedWidth(int);
  6901. void SetFullImageRect();
  6902. void SetHoverOffset(int, int);
  6903. void SetInterceptNetworkUpdate(const String&, bool);
  6904. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6905. void SetMaxAnchor(float, float);
  6906. void SetMaxSize(int, int);
  6907. void SetMinAnchor(float, float);
  6908. void SetMinSize(int, int);
  6909. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6910. void SetPivot(float, float);
  6911. void SetPopupOffset(int, int);
  6912. void SetPosition(int, int);
  6913. void SetPressedChildOffset(int, int);
  6914. void SetPressedOffset(int, int);
  6915. void SetRepeat(float, float);
  6916. void SetSize(int, int);
  6917. bool SetStyle(const String&, XMLFile = null);
  6918. bool SetStyle(const XMLElement&);
  6919. bool SetStyleAuto(XMLFile = null);
  6920. void UpdateLayout();
  6921. const Variant& GetVar(const StringHash&);
  6922. // Properties:
  6923. /* readonly */
  6924. int acceleratorKey;
  6925. /* readonly */
  6926. int acceleratorQualifiers;
  6927. bool animationEnabled;
  6928. /* readonly */
  6929. Array<Variant> attributeDefaults;
  6930. /* readonly */
  6931. Array<AttributeInfo> attributeInfos;
  6932. Array<Variant> attributes;
  6933. BlendMode blendMode;
  6934. IntRect border;
  6935. bool bringToBack;
  6936. bool bringToFront;
  6937. /* readonly */
  6938. String category;
  6939. /* readonly */
  6940. IntVector2 childOffset;
  6941. /* readonly */
  6942. Array<UIElement> children;
  6943. IntRect clipBorder;
  6944. bool clipChildren;
  6945. /* writeonly */
  6946. Color color;
  6947. /* readonly */
  6948. bool colorGradient;
  6949. Array<Color> colors;
  6950. /* readonly */
  6951. IntRect combinedScreenRect;
  6952. XMLFile defaultStyle;
  6953. /* readonly */
  6954. float derivedOpacity;
  6955. /* readonly */
  6956. uint dragButtonCombo;
  6957. /* readonly */
  6958. int dragButtonCount;
  6959. uint dragDropMode;
  6960. bool editable;
  6961. bool elementEventSender;
  6962. bool enableAnchor;
  6963. bool enabled;
  6964. /* readonly */
  6965. bool enabledSelf;
  6966. /* readonly */
  6967. bool fixedHeight;
  6968. /* readonly */
  6969. bool fixedSize;
  6970. /* readonly */
  6971. bool fixedWidth;
  6972. bool focus;
  6973. FocusMode focusMode;
  6974. int height;
  6975. HorizontalAlignment horizontalAlignment;
  6976. IntVector2 hoverOffset;
  6977. /* readonly */
  6978. bool hovering;
  6979. IntRect imageBorder;
  6980. IntRect imageRect;
  6981. int indent;
  6982. int indentSpacing;
  6983. /* readonly */
  6984. int indentWidth;
  6985. bool internal;
  6986. IntRect layoutBorder;
  6987. Vector2 layoutFlexScale;
  6988. LayoutMode layoutMode;
  6989. int layoutSpacing;
  6990. Vector2 maxAnchor;
  6991. int maxHeight;
  6992. IntVector2 maxOffset;
  6993. IntVector2 maxSize;
  6994. int maxWidth;
  6995. Vector2 minAnchor;
  6996. int minHeight;
  6997. IntVector2 minOffset;
  6998. IntVector2 minSize;
  6999. int minWidth;
  7000. String name;
  7001. /* readonly */
  7002. uint numAllChildren;
  7003. /* readonly */
  7004. uint numAttributes;
  7005. /* readonly */
  7006. uint numChildren;
  7007. ObjectAnimation objectAnimation;
  7008. float opacity;
  7009. UIElement parent;
  7010. Vector2 pivot;
  7011. UIElement popup;
  7012. IntVector2 popupOffset;
  7013. IntVector2 position;
  7014. /* readonly */
  7015. bool pressed;
  7016. IntVector2 pressedChildOffset;
  7017. IntVector2 pressedOffset;
  7018. int priority;
  7019. /* readonly */
  7020. int refs;
  7021. float repeatDelay;
  7022. float repeatRate;
  7023. /* readonly */
  7024. UIElement root;
  7025. /* readonly */
  7026. IntVector2 screenPosition;
  7027. bool selected;
  7028. bool showPopup;
  7029. IntVector2 size;
  7030. bool sortChildren;
  7031. String style;
  7032. /* readonly */
  7033. Array<String> tags;
  7034. bool temporary;
  7035. Texture texture;
  7036. bool tiled;
  7037. TraversalMode traversalMode;
  7038. /* readonly */
  7039. StringHash type;
  7040. /* readonly */
  7041. String typeName;
  7042. bool useDerivedOpacity;
  7043. /* readonly */
  7044. VariantMap vars;
  7045. VerticalAlignment verticalAlignment;
  7046. bool visible;
  7047. /* readonly */
  7048. bool visibleEffective;
  7049. /* readonly */
  7050. int weakRefs;
  7051. int width;
  7052. };
  7053. class MessageBox
  7054. {
  7055. public:
  7056. MessageBox(const String&in messageString = String ( ), const String&in titleString = String ( ), XMLFile& layoutFile = null, XMLFile& styleFile = null);
  7057. // Methods:
  7058. bool HasSubscribedToEvent(Object, const String&);
  7059. bool HasSubscribedToEvent(const String&);
  7060. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7061. // Properties:
  7062. /* readonly */
  7063. String category;
  7064. String message;
  7065. /* readonly */
  7066. int refs;
  7067. String title;
  7068. /* readonly */
  7069. StringHash type;
  7070. /* readonly */
  7071. String typeName;
  7072. /* readonly */
  7073. int weakRefs;
  7074. /* readonly */
  7075. UIElement window;
  7076. };
  7077. class Model
  7078. {
  7079. public:
  7080. Model();
  7081. Model(const String&in);
  7082. // Methods:
  7083. Model Clone(const String& = String ( )) const;
  7084. Geometry GetGeometry(uint, uint) const;
  7085. bool HasSubscribedToEvent(Object, const String&);
  7086. bool HasSubscribedToEvent(const String&);
  7087. bool Load(File);
  7088. bool Load(VectorBuffer&);
  7089. bool Load(const String&);
  7090. bool Save(File) const;
  7091. bool Save(VectorBuffer&) const;
  7092. bool Save(const String&) const;
  7093. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7094. bool SetGeometry(uint, uint, Geometry);
  7095. bool SetIndexBuffers(Array<IndexBuffer>);
  7096. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  7097. // Properties:
  7098. BoundingBox boundingBox;
  7099. /* readonly */
  7100. String category;
  7101. Array<Vector3> geometryCenters;
  7102. /* readonly */
  7103. uint memoryUse;
  7104. String name;
  7105. uint numGeometries;
  7106. Array<uint> numGeometryLodLevels;
  7107. /* readonly */
  7108. uint numMorphs;
  7109. /* readonly */
  7110. int refs;
  7111. /* readonly */
  7112. Skeleton skeleton;
  7113. /* readonly */
  7114. StringHash type;
  7115. /* readonly */
  7116. String typeName;
  7117. /* readonly */
  7118. uint useTimer;
  7119. /* readonly */
  7120. int weakRefs;
  7121. };
  7122. class NamedPipe
  7123. {
  7124. public:
  7125. NamedPipe();
  7126. NamedPipe(const String&in, bool);
  7127. // Methods:
  7128. void Close();
  7129. bool HasSubscribedToEvent(Object, const String&);
  7130. bool HasSubscribedToEvent(const String&);
  7131. bool Open(const String&, bool);
  7132. Array<uint8> Read(uint);
  7133. bool ReadBool();
  7134. BoundingBox ReadBoundingBox();
  7135. int8 ReadByte();
  7136. Color ReadColor();
  7137. double ReadDouble();
  7138. String ReadFileID();
  7139. float ReadFloat();
  7140. int ReadInt();
  7141. int64 ReadInt64();
  7142. IntRect ReadIntRect();
  7143. IntVector2 ReadIntVector2();
  7144. String ReadLine();
  7145. Matrix3 ReadMatrix3();
  7146. Matrix3x4 ReadMatrix3x4();
  7147. Matrix4 ReadMatrix4();
  7148. uint ReadNetID();
  7149. Quaternion ReadPackedQuaternion();
  7150. Vector3 ReadPackedVector3(float);
  7151. Quaternion ReadQuaternion();
  7152. int16 ReadShort();
  7153. String ReadString();
  7154. StringHash ReadStringHash();
  7155. uint8 ReadUByte();
  7156. uint ReadUInt();
  7157. uint64 ReadUInt64();
  7158. uint16 ReadUShort();
  7159. uint ReadVLE();
  7160. Variant ReadVariant();
  7161. VariantMap ReadVariantMap();
  7162. Vector2 ReadVector2();
  7163. Vector3 ReadVector3();
  7164. Vector4 ReadVector4();
  7165. VectorBuffer ReadVectorBuffer(uint);
  7166. uint Seek(uint);
  7167. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7168. uint Write(Array<uint8>);
  7169. bool WriteBool(bool);
  7170. bool WriteBoundingBox(const BoundingBox&);
  7171. bool WriteByte(int8);
  7172. bool WriteColor(const Color&);
  7173. bool WriteDouble(double);
  7174. bool WriteFileID(const String&);
  7175. bool WriteFloat(float);
  7176. bool WriteInt(int);
  7177. bool WriteInt64(int64);
  7178. bool WriteIntRect(const IntRect&);
  7179. bool WriteIntVector2(const IntVector2&);
  7180. bool WriteLine(const String&);
  7181. bool WriteMatrix3(const Matrix3&);
  7182. bool WriteMatrix3x4(const Matrix3x4&);
  7183. bool WriteMatrix4(const Matrix4&);
  7184. bool WriteNetID(uint);
  7185. bool WritePackedQuaternion(const Quaternion&);
  7186. bool WritePackedVector3(const Vector3&, float);
  7187. bool WriteQuaternion(const Quaternion&);
  7188. bool WriteShort(int16);
  7189. bool WriteString(const String&);
  7190. bool WriteStringHash(const StringHash&);
  7191. bool WriteUByte(uint8);
  7192. bool WriteUInt(uint);
  7193. bool WriteUInt64(uint64);
  7194. bool WriteUShort(uint16);
  7195. bool WriteVLE(uint);
  7196. bool WriteVariant(const Variant&);
  7197. bool WriteVariantMap(const VariantMap&);
  7198. bool WriteVector2(const Vector2&);
  7199. bool WriteVector3(const Vector3&);
  7200. bool WriteVector4(const Vector4&);
  7201. bool WriteVectorBuffer(const VectorBuffer&);
  7202. // Properties:
  7203. /* readonly */
  7204. String category;
  7205. /* readonly */
  7206. uint checksum;
  7207. /* readonly */
  7208. bool eof;
  7209. /* readonly */
  7210. String name;
  7211. /* readonly */
  7212. bool open;
  7213. /* readonly */
  7214. uint position;
  7215. /* readonly */
  7216. int refs;
  7217. /* readonly */
  7218. bool server;
  7219. /* readonly */
  7220. uint size;
  7221. /* readonly */
  7222. StringHash type;
  7223. /* readonly */
  7224. String typeName;
  7225. /* readonly */
  7226. int weakRefs;
  7227. };
  7228. class NavArea
  7229. {
  7230. public:
  7231. // Methods:
  7232. void ApplyAttributes();
  7233. void DrawDebugGeometry(DebugRenderer, bool);
  7234. Variant GetAttribute(const String&) const;
  7235. ValueAnimation GetAttributeAnimation(const String&) const;
  7236. float GetAttributeAnimationSpeed(const String&) const;
  7237. float GetAttributeAnimationTime(const String&) const;
  7238. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7239. Variant GetAttributeDefault(const String&) const;
  7240. bool GetInterceptNetworkUpdate(const String&) const;
  7241. bool HasSubscribedToEvent(Object, const String&);
  7242. bool HasSubscribedToEvent(const String&);
  7243. bool Load(File, bool = false);
  7244. bool Load(VectorBuffer&, bool = false);
  7245. bool LoadJSON(const JSONValue&, bool = false);
  7246. bool LoadXML(const XMLElement&, bool = false);
  7247. void MarkNetworkUpdate() const;
  7248. void Remove();
  7249. void RemoveAttributeAnimation(const String&);
  7250. void RemoveInstanceDefault();
  7251. void RemoveObjectAnimation();
  7252. void ResetToDefault();
  7253. bool Save(File) const;
  7254. bool Save(VectorBuffer&) const;
  7255. bool SaveJSON(JSONValue&) const;
  7256. bool SaveXML(XMLElement&) const;
  7257. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7258. void SetAnimationTime(float);
  7259. bool SetAttribute(const String&, const Variant&);
  7260. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7261. void SetAttributeAnimationSpeed(const String&, float);
  7262. void SetAttributeAnimationTime(const String&, float);
  7263. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7264. void SetInterceptNetworkUpdate(const String&, bool);
  7265. // Properties:
  7266. bool animationEnabled;
  7267. uint areaID;
  7268. /* readonly */
  7269. Array<Variant> attributeDefaults;
  7270. /* readonly */
  7271. Array<AttributeInfo> attributeInfos;
  7272. Array<Variant> attributes;
  7273. BoundingBox boundingBox;
  7274. /* readonly */
  7275. String category;
  7276. bool enabled;
  7277. /* readonly */
  7278. bool enabledEffective;
  7279. /* readonly */
  7280. uint id;
  7281. /* readonly */
  7282. Node node;
  7283. /* readonly */
  7284. uint numAttributes;
  7285. ObjectAnimation objectAnimation;
  7286. /* readonly */
  7287. int refs;
  7288. bool temporary;
  7289. /* readonly */
  7290. StringHash type;
  7291. /* readonly */
  7292. String typeName;
  7293. /* readonly */
  7294. int weakRefs;
  7295. /* readonly */
  7296. BoundingBox worldBoundingBox;
  7297. };
  7298. class Navigable
  7299. {
  7300. public:
  7301. // Methods:
  7302. void ApplyAttributes();
  7303. void DrawDebugGeometry(DebugRenderer, bool);
  7304. Variant GetAttribute(const String&) const;
  7305. ValueAnimation GetAttributeAnimation(const String&) const;
  7306. float GetAttributeAnimationSpeed(const String&) const;
  7307. float GetAttributeAnimationTime(const String&) const;
  7308. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7309. Variant GetAttributeDefault(const String&) const;
  7310. bool GetInterceptNetworkUpdate(const String&) const;
  7311. bool HasSubscribedToEvent(Object, const String&);
  7312. bool HasSubscribedToEvent(const String&);
  7313. bool Load(File, bool = false);
  7314. bool Load(VectorBuffer&, bool = false);
  7315. bool LoadJSON(const JSONValue&, bool = false);
  7316. bool LoadXML(const XMLElement&, bool = false);
  7317. void MarkNetworkUpdate() const;
  7318. void Remove();
  7319. void RemoveAttributeAnimation(const String&);
  7320. void RemoveInstanceDefault();
  7321. void RemoveObjectAnimation();
  7322. void ResetToDefault();
  7323. bool Save(File) const;
  7324. bool Save(VectorBuffer&) const;
  7325. bool SaveJSON(JSONValue&) const;
  7326. bool SaveXML(XMLElement&) const;
  7327. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7328. void SetAnimationTime(float);
  7329. bool SetAttribute(const String&, const Variant&);
  7330. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7331. void SetAttributeAnimationSpeed(const String&, float);
  7332. void SetAttributeAnimationTime(const String&, float);
  7333. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7334. void SetInterceptNetworkUpdate(const String&, bool);
  7335. // Properties:
  7336. bool animationEnabled;
  7337. /* readonly */
  7338. Array<Variant> attributeDefaults;
  7339. /* readonly */
  7340. Array<AttributeInfo> attributeInfos;
  7341. Array<Variant> attributes;
  7342. /* readonly */
  7343. String category;
  7344. bool enabled;
  7345. /* readonly */
  7346. bool enabledEffective;
  7347. /* readonly */
  7348. uint id;
  7349. /* readonly */
  7350. Node node;
  7351. /* readonly */
  7352. uint numAttributes;
  7353. ObjectAnimation objectAnimation;
  7354. bool recursive;
  7355. /* readonly */
  7356. int refs;
  7357. bool temporary;
  7358. /* readonly */
  7359. StringHash type;
  7360. /* readonly */
  7361. String typeName;
  7362. /* readonly */
  7363. int weakRefs;
  7364. };
  7365. class NavigationMesh
  7366. {
  7367. public:
  7368. // Methods:
  7369. void ApplyAttributes();
  7370. bool Build();
  7371. bool Build(const BoundingBox&);
  7372. void DrawDebugGeometry(DebugRenderer, bool);
  7373. void DrawDebugGeometry(bool);
  7374. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7375. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7376. float GetAreaCost(uint) const;
  7377. Variant GetAttribute(const String&) const;
  7378. ValueAnimation GetAttributeAnimation(const String&) const;
  7379. float GetAttributeAnimationSpeed(const String&) const;
  7380. float GetAttributeAnimationTime(const String&) const;
  7381. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7382. Variant GetAttributeDefault(const String&) const;
  7383. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7384. bool GetInterceptNetworkUpdate(const String&) const;
  7385. Vector3 GetRandomPoint();
  7386. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7387. bool HasSubscribedToEvent(Object, const String&);
  7388. bool HasSubscribedToEvent(const String&);
  7389. bool Load(File, bool = false);
  7390. bool Load(VectorBuffer&, bool = false);
  7391. bool LoadJSON(const JSONValue&, bool = false);
  7392. bool LoadXML(const XMLElement&, bool = false);
  7393. void MarkNetworkUpdate() const;
  7394. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  7395. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7396. void Remove();
  7397. void RemoveAttributeAnimation(const String&);
  7398. void RemoveInstanceDefault();
  7399. void RemoveObjectAnimation();
  7400. void ResetToDefault();
  7401. bool Save(File) const;
  7402. bool Save(VectorBuffer&) const;
  7403. bool SaveJSON(JSONValue&) const;
  7404. bool SaveXML(XMLElement&) const;
  7405. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7406. void SetAnimationTime(float);
  7407. void SetAreaCost(uint, float);
  7408. bool SetAttribute(const String&, const Variant&);
  7409. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7410. void SetAttributeAnimationSpeed(const String&, float);
  7411. void SetAttributeAnimationTime(const String&, float);
  7412. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7413. void SetInterceptNetworkUpdate(const String&, bool);
  7414. // Properties:
  7415. float agentHeight;
  7416. float agentMaxClimb;
  7417. float agentMaxSlope;
  7418. float agentRadius;
  7419. bool animationEnabled;
  7420. /* readonly */
  7421. Array<Variant> attributeDefaults;
  7422. /* readonly */
  7423. Array<AttributeInfo> attributeInfos;
  7424. Array<Variant> attributes;
  7425. /* readonly */
  7426. BoundingBox boundingBox;
  7427. /* readonly */
  7428. String category;
  7429. float cellHeight;
  7430. float cellSize;
  7431. float detailSampleDistance;
  7432. float detailSampleMaxError;
  7433. bool drawNavAreas;
  7434. bool drawOffMeshConnections;
  7435. float edgeMaxError;
  7436. float edgeMaxLength;
  7437. bool enabled;
  7438. /* readonly */
  7439. bool enabledEffective;
  7440. /* readonly */
  7441. uint id;
  7442. /* readonly */
  7443. bool initialized;
  7444. /* readonly */
  7445. Node node;
  7446. /* readonly */
  7447. uint numAttributes;
  7448. /* readonly */
  7449. IntVector2 numTiles;
  7450. ObjectAnimation objectAnimation;
  7451. Vector3 padding;
  7452. NavmeshPartitionType partitionType;
  7453. /* readonly */
  7454. int refs;
  7455. float regionMergeSize;
  7456. float regionMinSize;
  7457. bool temporary;
  7458. int tileSize;
  7459. /* readonly */
  7460. StringHash type;
  7461. /* readonly */
  7462. String typeName;
  7463. /* readonly */
  7464. int weakRefs;
  7465. /* readonly */
  7466. BoundingBox worldBoundingBox;
  7467. };
  7468. class Network
  7469. {
  7470. public:
  7471. // Methods:
  7472. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  7473. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  7474. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  7475. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  7476. bool CheckRemoteEvent(const String&) const;
  7477. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  7478. void Disconnect(int = 0);
  7479. bool HasSubscribedToEvent(Object, const String&);
  7480. bool HasSubscribedToEvent(const String&);
  7481. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  7482. void RegisterRemoteEvent(const String&) const;
  7483. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7484. void SendPackageToClients(Scene, PackageFile);
  7485. bool StartServer(uint16);
  7486. void StopServer();
  7487. void UnregisterAllRemoteEvents();
  7488. void UnregisterRemoteEvent(const String&) const;
  7489. // Properties:
  7490. /* readonly */
  7491. String category;
  7492. /* readonly */
  7493. Array<Connection> clientConnections;
  7494. String packageCacheDir;
  7495. /* readonly */
  7496. int refs;
  7497. /* readonly */
  7498. Connection serverConnection;
  7499. /* readonly */
  7500. bool serverRunning;
  7501. int simulatedLatency;
  7502. float simulatedPacketLoss;
  7503. /* readonly */
  7504. StringHash type;
  7505. /* readonly */
  7506. String typeName;
  7507. int updateFps;
  7508. /* readonly */
  7509. int weakRefs;
  7510. };
  7511. class NetworkPriority
  7512. {
  7513. public:
  7514. // Methods:
  7515. void ApplyAttributes();
  7516. void DrawDebugGeometry(DebugRenderer, bool);
  7517. Variant GetAttribute(const String&) const;
  7518. ValueAnimation GetAttributeAnimation(const String&) const;
  7519. float GetAttributeAnimationSpeed(const String&) const;
  7520. float GetAttributeAnimationTime(const String&) const;
  7521. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7522. Variant GetAttributeDefault(const String&) const;
  7523. bool GetInterceptNetworkUpdate(const String&) const;
  7524. bool HasSubscribedToEvent(Object, const String&);
  7525. bool HasSubscribedToEvent(const String&);
  7526. bool Load(File, bool = false);
  7527. bool Load(VectorBuffer&, bool = false);
  7528. bool LoadJSON(const JSONValue&, bool = false);
  7529. bool LoadXML(const XMLElement&, bool = false);
  7530. void MarkNetworkUpdate() const;
  7531. void Remove();
  7532. void RemoveAttributeAnimation(const String&);
  7533. void RemoveInstanceDefault();
  7534. void RemoveObjectAnimation();
  7535. void ResetToDefault();
  7536. bool Save(File) const;
  7537. bool Save(VectorBuffer&) const;
  7538. bool SaveJSON(JSONValue&) const;
  7539. bool SaveXML(XMLElement&) const;
  7540. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7541. void SetAnimationTime(float);
  7542. bool SetAttribute(const String&, const Variant&);
  7543. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7544. void SetAttributeAnimationSpeed(const String&, float);
  7545. void SetAttributeAnimationTime(const String&, float);
  7546. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7547. void SetInterceptNetworkUpdate(const String&, bool);
  7548. // Properties:
  7549. bool alwaysUpdateOwner;
  7550. bool animationEnabled;
  7551. /* readonly */
  7552. Array<Variant> attributeDefaults;
  7553. /* readonly */
  7554. Array<AttributeInfo> attributeInfos;
  7555. Array<Variant> attributes;
  7556. float basePriority;
  7557. /* readonly */
  7558. String category;
  7559. float distanceFactor;
  7560. bool enabled;
  7561. /* readonly */
  7562. bool enabledEffective;
  7563. /* readonly */
  7564. uint id;
  7565. float minPriority;
  7566. /* readonly */
  7567. Node node;
  7568. /* readonly */
  7569. uint numAttributes;
  7570. ObjectAnimation objectAnimation;
  7571. /* readonly */
  7572. int refs;
  7573. bool temporary;
  7574. /* readonly */
  7575. StringHash type;
  7576. /* readonly */
  7577. String typeName;
  7578. /* readonly */
  7579. int weakRefs;
  7580. };
  7581. class Node
  7582. {
  7583. public:
  7584. Node();
  7585. Node(const String&in);
  7586. // Methods:
  7587. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7588. void AddTag(const String&);
  7589. void AddTags(const String&, int8 = ';');
  7590. void ApplyAttributes();
  7591. Node Clone(CreateMode = REPLICATED);
  7592. Component CloneComponent(Component, CreateMode, uint = 0);
  7593. Component CloneComponent(Component, uint = 0);
  7594. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7595. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7596. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7597. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7598. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7599. Variant GetAttribute(const String&) const;
  7600. ValueAnimation GetAttributeAnimation(const String&) const;
  7601. float GetAttributeAnimationSpeed(const String&) const;
  7602. float GetAttributeAnimationTime(const String&) const;
  7603. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7604. Variant GetAttributeDefault(const String&) const;
  7605. Node GetChild(const String&, bool = false) const;
  7606. Array<Node> GetChildren(bool = false) const;
  7607. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7608. Array<Node> GetChildrenWithScript(bool = false) const;
  7609. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7610. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7611. Component GetComponent(const String&, bool = false) const;
  7612. Array<Component> GetComponents() const;
  7613. Array<Component> GetComponents(const String&, bool = false) const;
  7614. bool GetInterceptNetworkUpdate(const String&) const;
  7615. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7616. Component GetParentComponent(const String&, bool = false) const;
  7617. ScriptObject GetScriptObject() const;
  7618. ScriptObject GetScriptObject(const String&) const;
  7619. bool HasComponent(const String&) const;
  7620. bool HasSubscribedToEvent(Object, const String&);
  7621. bool HasSubscribedToEvent(const String&);
  7622. bool HasTag(const String&);
  7623. bool IsChildOf(Node) const;
  7624. bool Load(File, bool = false);
  7625. bool Load(VectorBuffer&, bool = false);
  7626. bool LoadJSON(const JSONValue&, bool = false);
  7627. bool LoadXML(const XMLElement&, bool = false);
  7628. Vector3 LocalToWorld(const Vector3&) const;
  7629. Vector3 LocalToWorld(const Vector4&) const;
  7630. Vector2 LocalToWorld2D(const Vector2&) const;
  7631. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7632. void MarkDirty();
  7633. void MarkNetworkUpdate() const;
  7634. void Pitch(float, TransformSpace = TS_LOCAL);
  7635. void Remove();
  7636. void RemoveAllChildren();
  7637. void RemoveAllComponents();
  7638. void RemoveAllTags();
  7639. void RemoveAttributeAnimation(const String&);
  7640. void RemoveChild(Node);
  7641. void RemoveChildren(bool, bool, bool);
  7642. void RemoveComponent(Component);
  7643. void RemoveComponent(const String&);
  7644. void RemoveComponents(bool, bool);
  7645. void RemoveComponents(const String&);
  7646. void RemoveInstanceDefault();
  7647. void RemoveObjectAnimation();
  7648. bool RemoveTag(const String&);
  7649. void ReorderComponent(Component, uint);
  7650. void ResetDeepEnabled();
  7651. void ResetToDefault();
  7652. void Roll(float, TransformSpace = TS_LOCAL);
  7653. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7654. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7655. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7656. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7657. bool Save(File) const;
  7658. bool Save(VectorBuffer&) const;
  7659. bool SaveJSON(File);
  7660. bool SaveJSON(JSONValue&) const;
  7661. bool SaveJSON(VectorBuffer&);
  7662. bool SaveXML(File, const String& = "\t");
  7663. bool SaveXML(VectorBuffer&, const String& = "\t");
  7664. bool SaveXML(XMLElement&) const;
  7665. void Scale(const Vector3&);
  7666. void Scale(float);
  7667. void Scale2D(const Vector2&);
  7668. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7669. void SetAnimationTime(float);
  7670. bool SetAttribute(const String&, const Variant&);
  7671. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7672. void SetAttributeAnimationSpeed(const String&, float);
  7673. void SetAttributeAnimationTime(const String&, float);
  7674. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7675. void SetDeepEnabled(bool);
  7676. void SetEnabledRecursive(bool);
  7677. void SetInterceptNetworkUpdate(const String&, bool);
  7678. void SetPosition2D(float, float);
  7679. void SetScale(float);
  7680. void SetScale2D(float, float);
  7681. void SetTransform(const Matrix3x4&);
  7682. void SetTransform(const Vector3&, const Quaternion&);
  7683. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7684. void SetTransform(const Vector3&, const Quaternion&, float);
  7685. void SetTransform2D(const Vector2&, float);
  7686. void SetTransform2D(const Vector2&, float, const Vector2&);
  7687. void SetTransform2D(const Vector2&, float, float);
  7688. void SetWorldTransform(const Vector3&, const Quaternion&);
  7689. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7690. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7691. void SetWorldTransform2D(const Vector2&, float);
  7692. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7693. void SetWorldTransform2D(const Vector2&, float, float);
  7694. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7695. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7696. Vector3 WorldToLocal(const Vector3&) const;
  7697. Vector3 WorldToLocal(const Vector4&) const;
  7698. Vector2 WorldToLocal2D(const Vector2&) const;
  7699. void Yaw(float, TransformSpace = TS_LOCAL);
  7700. // Properties:
  7701. bool animationEnabled;
  7702. /* readonly */
  7703. Array<Variant> attributeDefaults;
  7704. /* readonly */
  7705. Array<AttributeInfo> attributeInfos;
  7706. Array<Variant> attributes;
  7707. /* readonly */
  7708. String category;
  7709. /* readonly */
  7710. Array<Node> children;
  7711. /* readonly */
  7712. Array<Component> components;
  7713. Vector3 direction;
  7714. bool enabled;
  7715. /* readonly */
  7716. bool enabledSelf;
  7717. uint id;
  7718. String name;
  7719. /* readonly */
  7720. uint numAllChildren;
  7721. /* readonly */
  7722. uint numAttributes;
  7723. /* readonly */
  7724. uint numChildren;
  7725. /* readonly */
  7726. uint numComponents;
  7727. ObjectAnimation objectAnimation;
  7728. Connection owner;
  7729. Node parent;
  7730. Vector3 position;
  7731. Vector2 position2D;
  7732. /* readonly */
  7733. int refs;
  7734. /* readonly */
  7735. Vector3 right;
  7736. Quaternion rotation;
  7737. float rotation2D;
  7738. Vector3 scale;
  7739. Vector2 scale2D;
  7740. /* readonly */
  7741. Scene scene;
  7742. /* readonly */
  7743. ScriptObject scriptObject;
  7744. /* readonly */
  7745. Vector3 signedWorldScale;
  7746. /* readonly */
  7747. Array<String> tags;
  7748. bool temporary;
  7749. /* readonly */
  7750. Matrix3x4 transform;
  7751. /* readonly */
  7752. StringHash type;
  7753. /* readonly */
  7754. String typeName;
  7755. /* readonly */
  7756. Vector3 up;
  7757. /* readonly */
  7758. VariantMap vars;
  7759. /* readonly */
  7760. int weakRefs;
  7761. Vector3 worldDirection;
  7762. Vector3 worldPosition;
  7763. Vector2 worldPosition2D;
  7764. /* readonly */
  7765. Vector3 worldRight;
  7766. Quaternion worldRotation;
  7767. float worldRotation2D;
  7768. Vector3 worldScale;
  7769. Vector2 worldScale2D;
  7770. /* readonly */
  7771. Matrix3x4 worldTransform;
  7772. /* readonly */
  7773. Vector3 worldUp;
  7774. };
  7775. class Object
  7776. {
  7777. public:
  7778. // Methods:
  7779. bool HasSubscribedToEvent(Object, const String&);
  7780. bool HasSubscribedToEvent(const String&);
  7781. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7782. // Properties:
  7783. /* readonly */
  7784. String category;
  7785. /* readonly */
  7786. int refs;
  7787. /* readonly */
  7788. StringHash type;
  7789. /* readonly */
  7790. String typeName;
  7791. /* readonly */
  7792. int weakRefs;
  7793. };
  7794. class ObjectAnimation
  7795. {
  7796. public:
  7797. ObjectAnimation();
  7798. ObjectAnimation(const String&in);
  7799. // Methods:
  7800. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7801. ValueAnimation GetAttributeAnimation(const String&) const;
  7802. float GetAttributeAnimationSpeed(const String&) const;
  7803. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7804. bool HasSubscribedToEvent(Object, const String&);
  7805. bool HasSubscribedToEvent(const String&);
  7806. bool Load(File);
  7807. bool Load(VectorBuffer&);
  7808. bool Load(const String&);
  7809. void RemoveAttributeAnimation(ValueAnimation);
  7810. void RemoveAttributeAnimation(const String&);
  7811. bool Save(File) const;
  7812. bool Save(VectorBuffer&) const;
  7813. bool Save(const String&) const;
  7814. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7815. // Properties:
  7816. /* readonly */
  7817. Array<Variant> attributeAnimations;
  7818. /* readonly */
  7819. String category;
  7820. /* readonly */
  7821. uint memoryUse;
  7822. String name;
  7823. /* readonly */
  7824. int refs;
  7825. /* readonly */
  7826. Array<Variant> speeds;
  7827. /* readonly */
  7828. StringHash type;
  7829. /* readonly */
  7830. String typeName;
  7831. /* readonly */
  7832. uint useTimer;
  7833. /* readonly */
  7834. int weakRefs;
  7835. /* readonly */
  7836. Array<Variant> wrapModes;
  7837. };
  7838. class Obstacle
  7839. {
  7840. public:
  7841. // Methods:
  7842. void ApplyAttributes();
  7843. void DrawDebugGeometry(DebugRenderer, bool);
  7844. void DrawDebugGeometry(bool);
  7845. Variant GetAttribute(const String&) const;
  7846. ValueAnimation GetAttributeAnimation(const String&) const;
  7847. float GetAttributeAnimationSpeed(const String&) const;
  7848. float GetAttributeAnimationTime(const String&) const;
  7849. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7850. Variant GetAttributeDefault(const String&) const;
  7851. bool GetInterceptNetworkUpdate(const String&) const;
  7852. bool HasSubscribedToEvent(Object, const String&);
  7853. bool HasSubscribedToEvent(const String&);
  7854. bool Load(File, bool = false);
  7855. bool Load(VectorBuffer&, bool = false);
  7856. bool LoadJSON(const JSONValue&, bool = false);
  7857. bool LoadXML(const XMLElement&, bool = false);
  7858. void MarkNetworkUpdate() const;
  7859. void Remove();
  7860. void RemoveAttributeAnimation(const String&);
  7861. void RemoveInstanceDefault();
  7862. void RemoveObjectAnimation();
  7863. void ResetToDefault();
  7864. bool Save(File) const;
  7865. bool Save(VectorBuffer&) const;
  7866. bool SaveJSON(JSONValue&) const;
  7867. bool SaveXML(XMLElement&) const;
  7868. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7869. void SetAnimationTime(float);
  7870. bool SetAttribute(const String&, const Variant&);
  7871. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7872. void SetAttributeAnimationSpeed(const String&, float);
  7873. void SetAttributeAnimationTime(const String&, float);
  7874. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7875. void SetInterceptNetworkUpdate(const String&, bool);
  7876. // Properties:
  7877. bool animationEnabled;
  7878. /* readonly */
  7879. Array<Variant> attributeDefaults;
  7880. /* readonly */
  7881. Array<AttributeInfo> attributeInfos;
  7882. Array<Variant> attributes;
  7883. /* readonly */
  7884. String category;
  7885. bool enabled;
  7886. /* readonly */
  7887. bool enabledEffective;
  7888. float height;
  7889. /* readonly */
  7890. uint id;
  7891. /* readonly */
  7892. Node node;
  7893. /* readonly */
  7894. uint numAttributes;
  7895. ObjectAnimation objectAnimation;
  7896. /* readonly */
  7897. uint obstacleId;
  7898. float radius;
  7899. /* readonly */
  7900. int refs;
  7901. bool temporary;
  7902. /* readonly */
  7903. StringHash type;
  7904. /* readonly */
  7905. String typeName;
  7906. /* readonly */
  7907. int weakRefs;
  7908. };
  7909. class Octree
  7910. {
  7911. public:
  7912. // Methods:
  7913. void AddManualDrawable(Drawable);
  7914. void ApplyAttributes();
  7915. void DrawDebugGeometry(DebugRenderer, bool);
  7916. void DrawDebugGeometry(bool) const;
  7917. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7918. Variant GetAttribute(const String&) const;
  7919. ValueAnimation GetAttributeAnimation(const String&) const;
  7920. float GetAttributeAnimationSpeed(const String&) const;
  7921. float GetAttributeAnimationTime(const String&) const;
  7922. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7923. Variant GetAttributeDefault(const String&) const;
  7924. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7925. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7926. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7927. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7928. bool GetInterceptNetworkUpdate(const String&) const;
  7929. bool HasSubscribedToEvent(Object, const String&);
  7930. bool HasSubscribedToEvent(const String&);
  7931. bool Load(File, bool = false);
  7932. bool Load(VectorBuffer&, bool = false);
  7933. bool LoadJSON(const JSONValue&, bool = false);
  7934. bool LoadXML(const XMLElement&, bool = false);
  7935. void MarkNetworkUpdate() const;
  7936. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7937. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7938. void Remove();
  7939. void RemoveAttributeAnimation(const String&);
  7940. void RemoveInstanceDefault();
  7941. void RemoveManualDrawable(Drawable);
  7942. void RemoveObjectAnimation();
  7943. void ResetToDefault();
  7944. bool Save(File) const;
  7945. bool Save(VectorBuffer&) const;
  7946. bool SaveJSON(JSONValue&) const;
  7947. bool SaveXML(XMLElement&) const;
  7948. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7949. void SetAnimationTime(float);
  7950. bool SetAttribute(const String&, const Variant&);
  7951. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7952. void SetAttributeAnimationSpeed(const String&, float);
  7953. void SetAttributeAnimationTime(const String&, float);
  7954. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7955. void SetInterceptNetworkUpdate(const String&, bool);
  7956. void SetSize(const BoundingBox&, uint);
  7957. // Properties:
  7958. bool animationEnabled;
  7959. /* readonly */
  7960. Array<Variant> attributeDefaults;
  7961. /* readonly */
  7962. Array<AttributeInfo> attributeInfos;
  7963. Array<Variant> attributes;
  7964. /* readonly */
  7965. String category;
  7966. bool enabled;
  7967. /* readonly */
  7968. bool enabledEffective;
  7969. /* readonly */
  7970. uint id;
  7971. /* readonly */
  7972. Node node;
  7973. /* readonly */
  7974. uint numAttributes;
  7975. /* readonly */
  7976. uint numLevels;
  7977. ObjectAnimation objectAnimation;
  7978. /* readonly */
  7979. int refs;
  7980. bool temporary;
  7981. /* readonly */
  7982. StringHash type;
  7983. /* readonly */
  7984. String typeName;
  7985. /* readonly */
  7986. int weakRefs;
  7987. /* readonly */
  7988. BoundingBox worldBoundingBox;
  7989. };
  7990. class OffMeshConnection
  7991. {
  7992. public:
  7993. // Methods:
  7994. void ApplyAttributes();
  7995. void DrawDebugGeometry(DebugRenderer, bool);
  7996. Variant GetAttribute(const String&) const;
  7997. ValueAnimation GetAttributeAnimation(const String&) const;
  7998. float GetAttributeAnimationSpeed(const String&) const;
  7999. float GetAttributeAnimationTime(const String&) const;
  8000. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8001. Variant GetAttributeDefault(const String&) const;
  8002. bool GetInterceptNetworkUpdate(const String&) const;
  8003. bool HasSubscribedToEvent(Object, const String&);
  8004. bool HasSubscribedToEvent(const String&);
  8005. bool Load(File, bool = false);
  8006. bool Load(VectorBuffer&, bool = false);
  8007. bool LoadJSON(const JSONValue&, bool = false);
  8008. bool LoadXML(const XMLElement&, bool = false);
  8009. void MarkNetworkUpdate() const;
  8010. void Remove();
  8011. void RemoveAttributeAnimation(const String&);
  8012. void RemoveInstanceDefault();
  8013. void RemoveObjectAnimation();
  8014. void ResetToDefault();
  8015. bool Save(File) const;
  8016. bool Save(VectorBuffer&) const;
  8017. bool SaveJSON(JSONValue&) const;
  8018. bool SaveXML(XMLElement&) const;
  8019. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8020. void SetAnimationTime(float);
  8021. bool SetAttribute(const String&, const Variant&);
  8022. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8023. void SetAttributeAnimationSpeed(const String&, float);
  8024. void SetAttributeAnimationTime(const String&, float);
  8025. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8026. void SetInterceptNetworkUpdate(const String&, bool);
  8027. // Properties:
  8028. bool animationEnabled;
  8029. uint areaID;
  8030. /* readonly */
  8031. Array<Variant> attributeDefaults;
  8032. /* readonly */
  8033. Array<AttributeInfo> attributeInfos;
  8034. Array<Variant> attributes;
  8035. bool bidirectional;
  8036. /* readonly */
  8037. String category;
  8038. bool enabled;
  8039. /* readonly */
  8040. bool enabledEffective;
  8041. Node endPoint;
  8042. /* readonly */
  8043. uint id;
  8044. uint mask;
  8045. /* readonly */
  8046. Node node;
  8047. /* readonly */
  8048. uint numAttributes;
  8049. ObjectAnimation objectAnimation;
  8050. float radius;
  8051. /* readonly */
  8052. int refs;
  8053. bool temporary;
  8054. /* readonly */
  8055. StringHash type;
  8056. /* readonly */
  8057. String typeName;
  8058. /* readonly */
  8059. int weakRefs;
  8060. };
  8061. class PackageFile
  8062. {
  8063. public:
  8064. PackageFile();
  8065. PackageFile(const String&in, uint startOffset = 0);
  8066. // Methods:
  8067. bool Exists(const String&) const;
  8068. Array<String> GetEntryNames() const;
  8069. bool HasSubscribedToEvent(Object, const String&);
  8070. bool HasSubscribedToEvent(const String&);
  8071. bool Open(const String&, uint = 0) const;
  8072. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8073. bool compressed() const;
  8074. // Properties:
  8075. /* readonly */
  8076. String category;
  8077. /* readonly */
  8078. uint checksum;
  8079. /* readonly */
  8080. String name;
  8081. /* readonly */
  8082. uint numFiles;
  8083. /* readonly */
  8084. int refs;
  8085. /* readonly */
  8086. uint totalDataSize;
  8087. /* readonly */
  8088. uint totalSize;
  8089. /* readonly */
  8090. StringHash type;
  8091. /* readonly */
  8092. String typeName;
  8093. /* readonly */
  8094. int weakRefs;
  8095. };
  8096. class ParticleEffect
  8097. {
  8098. public:
  8099. ParticleEffect();
  8100. ParticleEffect(const String&in);
  8101. // Methods:
  8102. void AddColorFrame(ColorFrame);
  8103. void AddColorTime(Color&, float);
  8104. void AddTextureFrame(TextureFrame);
  8105. void AddTextureTime(Rect&, float);
  8106. ParticleEffect Clone(const String& = String ( )) const;
  8107. ColorFrame GetColorFrame(uint) const;
  8108. TextureFrame GetTextureFrame(uint) const;
  8109. bool HasSubscribedToEvent(Object, const String&);
  8110. bool HasSubscribedToEvent(const String&);
  8111. bool Load(File);
  8112. bool Load(VectorBuffer&);
  8113. bool Load(const String&);
  8114. bool Load(const XMLElement&);
  8115. void RemoveColorFrame(uint);
  8116. void RemoveTextureFrame(uint);
  8117. bool Save(File) const;
  8118. bool Save(VectorBuffer&) const;
  8119. bool Save(XMLElement&) const;
  8120. bool Save(const String&) const;
  8121. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8122. void SetColorFrame(uint, ColorFrame);
  8123. void SetTextureFrame(uint, TextureFrame);
  8124. void SortColorFrames();
  8125. void SortTextureFrames();
  8126. // Properties:
  8127. float activeTime;
  8128. float animationLodBias;
  8129. /* readonly */
  8130. String category;
  8131. Vector3 constantForce;
  8132. float dampingForce;
  8133. Vector3 emitterSize;
  8134. EmitterType emitterType;
  8135. FaceCameraMode faceCameraMode;
  8136. bool fixedScreenSize;
  8137. float inactiveTime;
  8138. Material material;
  8139. Vector3 maxDirection;
  8140. float maxEmissionRate;
  8141. Vector2 maxParticleSize;
  8142. float maxRotation;
  8143. float maxRotationSpeed;
  8144. float maxTimeToLive;
  8145. float maxVelocity;
  8146. /* readonly */
  8147. uint memoryUse;
  8148. Vector3 minDirection;
  8149. float minEmissionRate;
  8150. Vector2 minParticleSize;
  8151. float minRotation;
  8152. float minRotationSpeed;
  8153. float minTimeToLive;
  8154. float minVelocity;
  8155. String name;
  8156. uint numColorFrames;
  8157. uint numParticles;
  8158. uint numTextureFrames;
  8159. /* readonly */
  8160. int refs;
  8161. bool relative;
  8162. bool scaled;
  8163. float sizeAdd;
  8164. float sizeMul;
  8165. bool sorted;
  8166. /* readonly */
  8167. StringHash type;
  8168. /* readonly */
  8169. String typeName;
  8170. bool updateInvisible;
  8171. /* readonly */
  8172. uint useTimer;
  8173. /* readonly */
  8174. int weakRefs;
  8175. };
  8176. class ParticleEffect2D
  8177. {
  8178. public:
  8179. ParticleEffect2D();
  8180. ParticleEffect2D(const String&in);
  8181. // Methods:
  8182. ParticleEffect2D Clone(const String& = String ( )) const;
  8183. bool HasSubscribedToEvent(Object, const String&);
  8184. bool HasSubscribedToEvent(const String&);
  8185. bool Load(File);
  8186. bool Load(VectorBuffer&);
  8187. bool Load(const String&);
  8188. bool Save(File) const;
  8189. bool Save(VectorBuffer&) const;
  8190. bool Save(const String&) const;
  8191. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8192. // Properties:
  8193. /* readonly */
  8194. String category;
  8195. /* readonly */
  8196. uint memoryUse;
  8197. String name;
  8198. /* readonly */
  8199. int refs;
  8200. /* readonly */
  8201. StringHash type;
  8202. /* readonly */
  8203. String typeName;
  8204. /* readonly */
  8205. uint useTimer;
  8206. /* readonly */
  8207. int weakRefs;
  8208. };
  8209. class ParticleEmitter
  8210. {
  8211. public:
  8212. // Methods:
  8213. void ApplyAttributes();
  8214. void ApplyEffect();
  8215. void Commit();
  8216. void DrawDebugGeometry(DebugRenderer, bool);
  8217. Variant GetAttribute(const String&) const;
  8218. ValueAnimation GetAttributeAnimation(const String&) const;
  8219. float GetAttributeAnimationSpeed(const String&) const;
  8220. float GetAttributeAnimationTime(const String&) const;
  8221. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8222. Variant GetAttributeDefault(const String&) const;
  8223. bool GetInterceptNetworkUpdate(const String&) const;
  8224. bool HasSubscribedToEvent(Object, const String&);
  8225. bool HasSubscribedToEvent(const String&);
  8226. bool IsInView(Camera) const;
  8227. bool Load(File, bool = false);
  8228. bool Load(VectorBuffer&, bool = false);
  8229. bool LoadJSON(const JSONValue&, bool = false);
  8230. bool LoadXML(const XMLElement&, bool = false);
  8231. void MarkNetworkUpdate() const;
  8232. void Remove();
  8233. void RemoveAllParticles();
  8234. void RemoveAttributeAnimation(const String&);
  8235. void RemoveInstanceDefault();
  8236. void RemoveObjectAnimation();
  8237. void Reset();
  8238. void ResetEmissionTimer();
  8239. void ResetToDefault();
  8240. bool Save(File) const;
  8241. bool Save(VectorBuffer&) const;
  8242. bool SaveJSON(JSONValue&) const;
  8243. bool SaveXML(XMLElement&) const;
  8244. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8245. void SetAnimationTime(float);
  8246. bool SetAttribute(const String&, const Variant&);
  8247. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8248. void SetAttributeAnimationSpeed(const String&, float);
  8249. void SetAttributeAnimationTime(const String&, float);
  8250. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8251. void SetInterceptNetworkUpdate(const String&, bool);
  8252. // Properties:
  8253. bool animationEnabled;
  8254. float animationLodBias;
  8255. /* readonly */
  8256. Array<Variant> attributeDefaults;
  8257. /* readonly */
  8258. Array<AttributeInfo> attributeInfos;
  8259. Array<Variant> attributes;
  8260. AutoRemoveMode autoRemoveMode;
  8261. /* readonly */
  8262. Array<Billboard> billboards;
  8263. /* readonly */
  8264. BoundingBox boundingBox;
  8265. bool castShadows;
  8266. /* readonly */
  8267. String category;
  8268. float drawDistance;
  8269. ParticleEffect effect;
  8270. bool emitting;
  8271. bool enabled;
  8272. /* readonly */
  8273. bool enabledEffective;
  8274. FaceCameraMode faceCameraMode;
  8275. bool fixedScreenSize;
  8276. /* readonly */
  8277. uint id;
  8278. /* readonly */
  8279. bool inView;
  8280. uint lightMask;
  8281. float lodBias;
  8282. Material material;
  8283. uint maxLights;
  8284. /* readonly */
  8285. Node node;
  8286. /* readonly */
  8287. uint numAttributes;
  8288. uint numBillboards;
  8289. uint numParticles;
  8290. ObjectAnimation objectAnimation;
  8291. bool occludee;
  8292. bool occluder;
  8293. /* readonly */
  8294. int refs;
  8295. bool relative;
  8296. bool scaled;
  8297. bool serializeParticles;
  8298. float shadowDistance;
  8299. uint shadowMask;
  8300. bool sorted;
  8301. bool temporary;
  8302. /* readonly */
  8303. StringHash type;
  8304. /* readonly */
  8305. String typeName;
  8306. uint viewMask;
  8307. /* readonly */
  8308. int weakRefs;
  8309. /* readonly */
  8310. BoundingBox worldBoundingBox;
  8311. /* readonly */
  8312. Zone zone;
  8313. uint zoneMask;
  8314. };
  8315. class ParticleEmitter2D
  8316. {
  8317. public:
  8318. // Methods:
  8319. void ApplyAttributes();
  8320. void DrawDebugGeometry(DebugRenderer, bool);
  8321. Variant GetAttribute(const String&) const;
  8322. ValueAnimation GetAttributeAnimation(const String&) const;
  8323. float GetAttributeAnimationSpeed(const String&) const;
  8324. float GetAttributeAnimationTime(const String&) const;
  8325. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8326. Variant GetAttributeDefault(const String&) const;
  8327. bool GetInterceptNetworkUpdate(const String&) const;
  8328. bool HasSubscribedToEvent(Object, const String&);
  8329. bool HasSubscribedToEvent(const String&);
  8330. bool IsInView(Camera) const;
  8331. bool Load(File, bool = false);
  8332. bool Load(VectorBuffer&, bool = false);
  8333. bool LoadJSON(const JSONValue&, bool = false);
  8334. bool LoadXML(const XMLElement&, bool = false);
  8335. void MarkNetworkUpdate() const;
  8336. void Remove();
  8337. void RemoveAttributeAnimation(const String&);
  8338. void RemoveInstanceDefault();
  8339. void RemoveObjectAnimation();
  8340. void ResetToDefault();
  8341. bool Save(File) const;
  8342. bool Save(VectorBuffer&) const;
  8343. bool SaveJSON(JSONValue&) const;
  8344. bool SaveXML(XMLElement&) const;
  8345. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8346. void SetAnimationTime(float);
  8347. bool SetAttribute(const String&, const Variant&);
  8348. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8349. void SetAttributeAnimationSpeed(const String&, float);
  8350. void SetAttributeAnimationTime(const String&, float);
  8351. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8352. void SetInterceptNetworkUpdate(const String&, bool);
  8353. // Properties:
  8354. bool animationEnabled;
  8355. /* readonly */
  8356. Array<Variant> attributeDefaults;
  8357. /* readonly */
  8358. Array<AttributeInfo> attributeInfos;
  8359. Array<Variant> attributes;
  8360. BlendMode blendMode;
  8361. /* readonly */
  8362. BoundingBox boundingBox;
  8363. bool castShadows;
  8364. /* readonly */
  8365. String category;
  8366. float drawDistance;
  8367. ParticleEffect2D effect;
  8368. bool enabled;
  8369. /* readonly */
  8370. bool enabledEffective;
  8371. /* readonly */
  8372. uint id;
  8373. /* readonly */
  8374. bool inView;
  8375. int layer;
  8376. uint lightMask;
  8377. float lodBias;
  8378. uint maxLights;
  8379. /* readonly */
  8380. Node node;
  8381. /* readonly */
  8382. uint numAttributes;
  8383. ObjectAnimation objectAnimation;
  8384. bool occludee;
  8385. bool occluder;
  8386. int orderInLayer;
  8387. /* readonly */
  8388. int refs;
  8389. float shadowDistance;
  8390. uint shadowMask;
  8391. Sprite2D sprite;
  8392. bool temporary;
  8393. /* readonly */
  8394. StringHash type;
  8395. /* readonly */
  8396. String typeName;
  8397. uint viewMask;
  8398. /* readonly */
  8399. int weakRefs;
  8400. /* readonly */
  8401. BoundingBox worldBoundingBox;
  8402. uint zoneMask;
  8403. };
  8404. class Pass
  8405. {
  8406. public:
  8407. // Properties:
  8408. bool alphaToCoverage;
  8409. BlendMode blendMode;
  8410. CullMode cullMode;
  8411. CompareMode depthTestMode;
  8412. bool depthWrite;
  8413. bool desktop;
  8414. PassLightingMode lightingMode;
  8415. String pixelShader;
  8416. String pixelShaderDefineExcludes;
  8417. String pixelShaderDefines;
  8418. /* readonly */
  8419. int refs;
  8420. String vertexShader;
  8421. String vertexShaderDefineExcludes;
  8422. String vertexShaderDefines;
  8423. /* readonly */
  8424. int weakRefs;
  8425. };
  8426. class PhysicsRaycastResult
  8427. {
  8428. public:
  8429. ~PhysicsRaycastResult();
  8430. PhysicsRaycastResult();
  8431. // Properties:
  8432. /* readonly */
  8433. RigidBody body;
  8434. float distance;
  8435. float hitFraction;
  8436. Vector3 normal;
  8437. Vector3 position;
  8438. };
  8439. class PhysicsRaycastResult2D
  8440. {
  8441. public:
  8442. ~PhysicsRaycastResult2D();
  8443. PhysicsRaycastResult2D();
  8444. // Properties:
  8445. /* readonly */
  8446. RigidBody2D body;
  8447. float distance;
  8448. Vector2 normal;
  8449. Vector2 position;
  8450. };
  8451. class PhysicsWorld
  8452. {
  8453. public:
  8454. // Methods:
  8455. void ApplyAttributes();
  8456. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  8457. void DrawDebugGeometry(DebugRenderer, bool);
  8458. void DrawDebugGeometry(bool);
  8459. Variant GetAttribute(const String&) const;
  8460. ValueAnimation GetAttributeAnimation(const String&) const;
  8461. float GetAttributeAnimationSpeed(const String&) const;
  8462. float GetAttributeAnimationTime(const String&) const;
  8463. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8464. Variant GetAttributeDefault(const String&) const;
  8465. Array<RigidBody> GetCollidingBodies(RigidBody);
  8466. bool GetInterceptNetworkUpdate(const String&) const;
  8467. Array<RigidBody> GetRigidBodies(RigidBody);
  8468. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  8469. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  8470. bool HasSubscribedToEvent(Object, const String&);
  8471. bool HasSubscribedToEvent(const String&);
  8472. bool Load(File, bool = false);
  8473. bool Load(VectorBuffer&, bool = false);
  8474. bool LoadJSON(const JSONValue&, bool = false);
  8475. bool LoadXML(const XMLElement&, bool = false);
  8476. void MarkNetworkUpdate() const;
  8477. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  8478. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  8479. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  8480. void Remove();
  8481. void RemoveAttributeAnimation(const String&);
  8482. void RemoveCachedGeometry(Model);
  8483. void RemoveInstanceDefault();
  8484. void RemoveObjectAnimation();
  8485. void ResetToDefault();
  8486. bool Save(File) const;
  8487. bool Save(VectorBuffer&) const;
  8488. bool SaveJSON(JSONValue&) const;
  8489. bool SaveXML(XMLElement&) const;
  8490. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8491. void SetAnimationTime(float);
  8492. bool SetAttribute(const String&, const Variant&);
  8493. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8494. void SetAttributeAnimationSpeed(const String&, float);
  8495. void SetAttributeAnimationTime(const String&, float);
  8496. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8497. void SetInterceptNetworkUpdate(const String&, bool);
  8498. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  8499. void Update(float);
  8500. void UpdateCollisions();
  8501. // Properties:
  8502. bool animationEnabled;
  8503. /* readonly */
  8504. Array<Variant> attributeDefaults;
  8505. /* readonly */
  8506. Array<AttributeInfo> attributeInfos;
  8507. Array<Variant> attributes;
  8508. /* readonly */
  8509. String category;
  8510. bool enabled;
  8511. /* readonly */
  8512. bool enabledEffective;
  8513. int fps;
  8514. Vector3 gravity;
  8515. /* readonly */
  8516. uint id;
  8517. bool internalEdge;
  8518. bool interpolation;
  8519. int maxSubSteps;
  8520. /* readonly */
  8521. Node node;
  8522. /* readonly */
  8523. uint numAttributes;
  8524. int numIterations;
  8525. ObjectAnimation objectAnimation;
  8526. /* readonly */
  8527. int refs;
  8528. bool splitImpulse;
  8529. bool temporary;
  8530. /* readonly */
  8531. StringHash type;
  8532. /* readonly */
  8533. String typeName;
  8534. bool updateEnabled;
  8535. /* readonly */
  8536. int weakRefs;
  8537. };
  8538. class PhysicsWorld2D
  8539. {
  8540. public:
  8541. // Methods:
  8542. void ApplyAttributes();
  8543. void DrawDebugGeometry() const;
  8544. void DrawDebugGeometry(DebugRenderer, bool);
  8545. Variant GetAttribute(const String&) const;
  8546. ValueAnimation GetAttributeAnimation(const String&) const;
  8547. float GetAttributeAnimationSpeed(const String&) const;
  8548. float GetAttributeAnimationTime(const String&) const;
  8549. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8550. Variant GetAttributeDefault(const String&) const;
  8551. bool GetInterceptNetworkUpdate(const String&) const;
  8552. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8553. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8554. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8555. bool HasSubscribedToEvent(Object, const String&);
  8556. bool HasSubscribedToEvent(const String&);
  8557. bool Load(File, bool = false);
  8558. bool Load(VectorBuffer&, bool = false);
  8559. bool LoadJSON(const JSONValue&, bool = false);
  8560. bool LoadXML(const XMLElement&, bool = false);
  8561. void MarkNetworkUpdate() const;
  8562. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8563. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8564. void Remove();
  8565. void RemoveAttributeAnimation(const String&);
  8566. void RemoveInstanceDefault();
  8567. void RemoveObjectAnimation();
  8568. void ResetToDefault();
  8569. bool Save(File) const;
  8570. bool Save(VectorBuffer&) const;
  8571. bool SaveJSON(JSONValue&) const;
  8572. bool SaveXML(XMLElement&) const;
  8573. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8574. void SetAnimationTime(float);
  8575. bool SetAttribute(const String&, const Variant&);
  8576. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8577. void SetAttributeAnimationSpeed(const String&, float);
  8578. void SetAttributeAnimationTime(const String&, float);
  8579. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8580. void SetInterceptNetworkUpdate(const String&, bool);
  8581. // Properties:
  8582. bool allowSleeping;
  8583. bool animationEnabled;
  8584. /* readonly */
  8585. Array<Variant> attributeDefaults;
  8586. /* readonly */
  8587. Array<AttributeInfo> attributeInfos;
  8588. Array<Variant> attributes;
  8589. bool autoClearForces;
  8590. /* readonly */
  8591. String category;
  8592. bool continuousPhysics;
  8593. bool drawAabb;
  8594. bool drawCenterOfMass;
  8595. bool drawJoint;
  8596. bool drawPair;
  8597. bool drawShape;
  8598. bool enabled;
  8599. /* readonly */
  8600. bool enabledEffective;
  8601. Vector2 gravity;
  8602. /* readonly */
  8603. uint id;
  8604. /* readonly */
  8605. Node node;
  8606. /* readonly */
  8607. uint numAttributes;
  8608. ObjectAnimation objectAnimation;
  8609. uint positionIterations;
  8610. /* readonly */
  8611. int refs;
  8612. bool subStepping;
  8613. bool temporary;
  8614. /* readonly */
  8615. StringHash type;
  8616. /* readonly */
  8617. String typeName;
  8618. bool updateEnabled;
  8619. uint velocityIterations;
  8620. bool warmStarting;
  8621. /* readonly */
  8622. int weakRefs;
  8623. };
  8624. class Plane
  8625. {
  8626. public:
  8627. Plane();
  8628. Plane(const Plane&in);
  8629. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  8630. Plane(const Vector3&in, const Vector3&in);
  8631. Plane(const Vector4&in);
  8632. // Methods:
  8633. void Define(const Vector3&, const Vector3&);
  8634. void Define(const Vector3&, const Vector3&, const Vector3&);
  8635. void Define(const Vector4&);
  8636. float Distance(const Vector3&) const;
  8637. Vector3 Project(const Vector3&) const;
  8638. Vector3 Reflect(const Vector3&) const;
  8639. Vector4 ToVector4() const;
  8640. void Transform(const Matrix3&);
  8641. void Transform(const Matrix3x4&);
  8642. void Transform(const Matrix4&);
  8643. Plane Transformed(const Matrix3&) const;
  8644. Plane Transformed(const Matrix3x4&) const;
  8645. Plane Transformed(const Matrix4&) const;
  8646. // Properties:
  8647. Vector3 absNormal;
  8648. float d;
  8649. Vector3 normal;
  8650. /* readonly */
  8651. Matrix3x4 reflectionMatrix;
  8652. };
  8653. class Polyhedron
  8654. {
  8655. public:
  8656. ~Polyhedron();
  8657. Polyhedron();
  8658. Polyhedron(const Polyhedron&in);
  8659. Polyhedron(const BoundingBox&in);
  8660. Polyhedron(const Frustum&in);
  8661. // Methods:
  8662. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8663. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8664. void AddFace(const Array<Vector3>);
  8665. void Clear();
  8666. void Clip(const BoundingBox&);
  8667. void Clip(const Frustum&);
  8668. void Define(const BoundingBox&);
  8669. void Define(const Frustum&);
  8670. void Transform(const Matrix3&);
  8671. void Transform(const Matrix3x4&);
  8672. Polyhedron Transformed(const Matrix3&) const;
  8673. Polyhedron Transformed(const Matrix3x4&) const;
  8674. // Properties:
  8675. /* readonly */
  8676. Array<Array<Vector3>> face;
  8677. /* readonly */
  8678. uint numFaces;
  8679. };
  8680. class ProgressBar
  8681. {
  8682. public:
  8683. // Methods:
  8684. void ChangeValue(float);
  8685. bool HasSubscribedToEvent(Object, const String&);
  8686. bool HasSubscribedToEvent(const String&);
  8687. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8688. void SetLoadingPercentStyle(const String&);
  8689. // Properties:
  8690. /* readonly */
  8691. String category;
  8692. /* readonly */
  8693. BorderImage knob;
  8694. Orientation orientation;
  8695. float range;
  8696. /* readonly */
  8697. int refs;
  8698. bool showPercentText;
  8699. /* readonly */
  8700. StringHash type;
  8701. /* readonly */
  8702. String typeName;
  8703. float value;
  8704. /* readonly */
  8705. int weakRefs;
  8706. };
  8707. class PropertySet2D
  8708. {
  8709. public:
  8710. // Methods:
  8711. bool HasProperty(const String&) const;
  8712. const String& GetProperty(const String&) const;
  8713. // Properties:
  8714. /* readonly */
  8715. int refs;
  8716. /* readonly */
  8717. int weakRefs;
  8718. };
  8719. class Quaternion
  8720. {
  8721. public:
  8722. Quaternion();
  8723. Quaternion(const Quaternion&in);
  8724. Quaternion(float, float, float, float);
  8725. Quaternion(float, const Vector3&in);
  8726. Quaternion(float);
  8727. Quaternion(float, float, float);
  8728. Quaternion(const Vector3&in);
  8729. Quaternion(const Vector3&in, const Vector3&in);
  8730. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  8731. Quaternion(const Matrix3&in);
  8732. // Methods:
  8733. Quaternion Conjugate() const;
  8734. float DotProduct(const Quaternion&) const;
  8735. bool Equals(const Quaternion&) const;
  8736. void FromAngleAxis(float, const Vector3&);
  8737. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8738. void FromEulerAngles(float, float, float);
  8739. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8740. void FromRotationMatrix(const Matrix3&);
  8741. void FromRotationTo(const Vector3&, const Vector3&);
  8742. Quaternion Inverse() const;
  8743. bool IsNaN() const;
  8744. float LengthSquared() const;
  8745. Quaternion Nlerp(const Quaternion&, float, bool) const;
  8746. void Normalize();
  8747. Quaternion Normalized() const;
  8748. Quaternion Slerp(const Quaternion&, float) const;
  8749. String ToString() const;
  8750. // Properties:
  8751. /* readonly */
  8752. float angle;
  8753. /* readonly */
  8754. Vector3 axis;
  8755. /* readonly */
  8756. Vector3 eulerAngles;
  8757. /* readonly */
  8758. float pitch;
  8759. /* readonly */
  8760. float roll;
  8761. /* readonly */
  8762. Matrix3 rotationMatrix;
  8763. float w;
  8764. float x;
  8765. float y;
  8766. /* readonly */
  8767. float yaw;
  8768. float z;
  8769. };
  8770. class Ray
  8771. {
  8772. public:
  8773. Ray();
  8774. Ray(const Ray&in);
  8775. Ray(const Vector3&in, const Vector3&in);
  8776. // Methods:
  8777. Vector3 ClosestPoint(const Ray&) const;
  8778. void Define(const Vector3&, const Vector3&);
  8779. float Distance(const Vector3&) const;
  8780. float HitDistance(const BoundingBox&) const;
  8781. float HitDistance(const Frustum&, bool = true) const;
  8782. float HitDistance(const Plane&) const;
  8783. float HitDistance(const Sphere&) const;
  8784. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8785. Vector3 Project(const Vector3&) const;
  8786. Ray Transformed(const Matrix3x4&) const;
  8787. // Properties:
  8788. Vector3 direction;
  8789. Vector3 origin;
  8790. };
  8791. class RayQueryResult
  8792. {
  8793. public:
  8794. RayQueryResult();
  8795. // Properties:
  8796. float distance;
  8797. /* readonly */
  8798. Drawable drawable;
  8799. /* readonly */
  8800. Node node;
  8801. Vector3 normal;
  8802. Vector3 position;
  8803. uint subObject;
  8804. Vector2 textureUV;
  8805. };
  8806. class RaycastVehicle
  8807. {
  8808. public:
  8809. // Methods:
  8810. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  8811. void ApplyAttributes();
  8812. void DrawDebugGeometry(DebugRenderer, bool);
  8813. Variant GetAttribute(const String&) const;
  8814. ValueAnimation GetAttributeAnimation(const String&) const;
  8815. float GetAttributeAnimationSpeed(const String&) const;
  8816. float GetAttributeAnimationTime(const String&) const;
  8817. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8818. Variant GetAttributeDefault(const String&) const;
  8819. float GetBrake(int);
  8820. Vector3 GetContactNormal(int);
  8821. Vector3 GetContactPosition(int);
  8822. float GetEngineForce(int);
  8823. bool GetInterceptNetworkUpdate(const String&) const;
  8824. float GetMaxSuspensionTravel(int);
  8825. float GetSteeringValue(int);
  8826. Vector3 GetWheelAxle(int);
  8827. Vector3 GetWheelConnectionPoint(int);
  8828. float GetWheelDampingCompression(int);
  8829. float GetWheelDampingRelaxation(int);
  8830. Vector3 GetWheelDirection(int);
  8831. float GetWheelFrictionSlip(int);
  8832. Node GetWheelNode(int);
  8833. Vector3 GetWheelPosition(int);
  8834. float GetWheelRadius(int);
  8835. float GetWheelRestLength(int);
  8836. float GetWheelRollInfluence(int);
  8837. Vector3 GetWheelRotation(int);
  8838. float GetWheelSideSlipSpeed(int);
  8839. float GetWheelSkidInfo(int);
  8840. float GetWheelSkidInfoCumulative(int);
  8841. float GetWheelSuspensionStiffness(int);
  8842. bool HasSubscribedToEvent(Object, const String&);
  8843. bool HasSubscribedToEvent(const String&);
  8844. void Init();
  8845. bool IsFrontWheel(int);
  8846. bool Load(File, bool = false);
  8847. bool Load(VectorBuffer&, bool = false);
  8848. bool LoadJSON(const JSONValue&, bool = false);
  8849. bool LoadXML(const XMLElement&, bool = false);
  8850. void MarkNetworkUpdate() const;
  8851. void Remove();
  8852. void RemoveAttributeAnimation(const String&);
  8853. void RemoveInstanceDefault();
  8854. void RemoveObjectAnimation();
  8855. void ResetSuspension();
  8856. void ResetToDefault();
  8857. void ResetWheels();
  8858. bool Save(File) const;
  8859. bool Save(VectorBuffer&) const;
  8860. bool SaveJSON(JSONValue&) const;
  8861. bool SaveXML(XMLElement&) const;
  8862. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8863. void SetAnimationTime(float);
  8864. bool SetAttribute(const String&, const Variant&);
  8865. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8866. void SetAttributeAnimationSpeed(const String&, float);
  8867. void SetAttributeAnimationTime(const String&, float);
  8868. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8869. void SetBrake(int, float);
  8870. void SetEngineForce(int, float);
  8871. void SetInterceptNetworkUpdate(const String&, bool);
  8872. void SetMaxSuspensionTravel(int, float);
  8873. void SetSteeringValue(int, float);
  8874. void SetWheelAxle(int, Vector3);
  8875. void SetWheelDampingCompression(int, float);
  8876. void SetWheelDampingRelaxation(int, float);
  8877. void SetWheelDirection(int, Vector3);
  8878. void SetWheelFrictionSlip(int, float);
  8879. void SetWheelRadius(int, float);
  8880. void SetWheelRestLength(int, float);
  8881. void SetWheelRollInfluence(int, float);
  8882. void SetWheelSkidInfo(int, float);
  8883. void SetWheelSkidInfoCumulative(int, float);
  8884. void SetWheelSuspensionStiffness(int, float);
  8885. void UpdateWheelTransform(int, bool);
  8886. bool WheelIsGrounded(int);
  8887. // Properties:
  8888. bool animationEnabled;
  8889. /* readonly */
  8890. Array<Variant> attributeDefaults;
  8891. /* readonly */
  8892. Array<AttributeInfo> attributeInfos;
  8893. Array<Variant> attributes;
  8894. /* readonly */
  8895. String category;
  8896. bool enabled;
  8897. /* readonly */
  8898. bool enabledEffective;
  8899. /* readonly */
  8900. uint id;
  8901. float inAirRPM;
  8902. float maxSideSlipSpeed;
  8903. /* readonly */
  8904. Node node;
  8905. /* readonly */
  8906. uint numAttributes;
  8907. /* readonly */
  8908. int numWheels;
  8909. ObjectAnimation objectAnimation;
  8910. /* readonly */
  8911. int refs;
  8912. bool temporary;
  8913. /* readonly */
  8914. StringHash type;
  8915. /* readonly */
  8916. String typeName;
  8917. /* readonly */
  8918. int weakRefs;
  8919. };
  8920. class Rect
  8921. {
  8922. public:
  8923. Rect();
  8924. Rect(const Rect&in);
  8925. Rect(float, float, float, float);
  8926. Rect(const Vector2&in, const Vector2&in);
  8927. Rect(const Vector4&in);
  8928. // Methods:
  8929. void Clear();
  8930. void Clip(const Rect&);
  8931. void Define(const Vector2&);
  8932. void Define(const Vector2&, const Vector2&);
  8933. bool Defined() const;
  8934. bool Equals(const Rect&) const;
  8935. Intersection IsInside(const Rect&) const;
  8936. Intersection IsInside(const Vector2&) const;
  8937. void Merge(const Rect&);
  8938. void Merge(const Vector2&);
  8939. Vector4 ToVector4() const;
  8940. // Properties:
  8941. float bottom;
  8942. /* readonly */
  8943. Vector2 center;
  8944. /* readonly */
  8945. Vector2 halfSize;
  8946. float left;
  8947. Vector2 max;
  8948. Vector2 min;
  8949. float right;
  8950. /* readonly */
  8951. Vector2 size;
  8952. float top;
  8953. };
  8954. class RefCounted
  8955. {
  8956. public:
  8957. // Properties:
  8958. /* readonly */
  8959. int refs;
  8960. /* readonly */
  8961. int weakRefs;
  8962. };
  8963. class RenderPath
  8964. {
  8965. public:
  8966. RenderPath();
  8967. // Methods:
  8968. void AddCommand(const RenderPathCommand&);
  8969. void AddRenderTarget(const RenderTargetInfo&);
  8970. bool Append(XMLFile);
  8971. RenderPath Clone();
  8972. void InsertCommand(uint, const RenderPathCommand&);
  8973. bool Load(XMLFile);
  8974. void RemoveCommand(uint);
  8975. void RemoveCommands(const String&);
  8976. void RemoveRenderTarget(const String&);
  8977. void RemoveRenderTarget(uint);
  8978. void RemoveRenderTargts(const String&);
  8979. void SetEnabled(const String&, bool);
  8980. void ToggleEnabled(const String&);
  8981. // Properties:
  8982. Array<RenderPathCommand> commands;
  8983. /* readonly */
  8984. uint numCommands;
  8985. /* readonly */
  8986. uint numRenderTargets;
  8987. /* readonly */
  8988. int refs;
  8989. Array<RenderTargetInfo> renderTargets;
  8990. Array<Variant> shaderParameters;
  8991. /* readonly */
  8992. int weakRefs;
  8993. };
  8994. class RenderPathCommand
  8995. {
  8996. public:
  8997. ~RenderPathCommand();
  8998. RenderPathCommand();
  8999. RenderPathCommand(const RenderPathCommand&in);
  9000. // Methods:
  9001. void RemoveShaderParameter(const String&);
  9002. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  9003. // Properties:
  9004. BlendMode blendMode;
  9005. Color clearColor;
  9006. float clearDepth;
  9007. uint clearFlags;
  9008. uint clearStencil;
  9009. String depthStencilName;
  9010. bool enabled;
  9011. String eventName;
  9012. bool markToStencil;
  9013. String metadata;
  9014. uint numOutputs;
  9015. Array<CubeMapFace> outputFaces;
  9016. Array<String> outputNames;
  9017. String pass;
  9018. String pixelShaderDefines;
  9019. String pixelShaderName;
  9020. Array<Variant> shaderParameters;
  9021. RenderCommandSortMode sortMode;
  9022. String tag;
  9023. Array<String> textureNames;
  9024. RenderCommandType type;
  9025. bool useFogColor;
  9026. bool useLitBase;
  9027. bool vertexLights;
  9028. String vertexShaderDefines;
  9029. String vertexShaderName;
  9030. };
  9031. class RenderSurface
  9032. {
  9033. public:
  9034. // Methods:
  9035. void QueueUpdate();
  9036. // Properties:
  9037. /* readonly */
  9038. int height;
  9039. RenderSurface linkedDepthStencil;
  9040. RenderSurface linkedRenderTarget;
  9041. uint numViewports;
  9042. /* readonly */
  9043. Texture parentTexture;
  9044. /* readonly */
  9045. bool resolveDirty;
  9046. RenderSurfaceUpdateMode updateMode;
  9047. /* readonly */
  9048. TextureUsage usage;
  9049. Array<Viewport> viewports;
  9050. /* readonly */
  9051. int width;
  9052. };
  9053. class RenderTargetInfo
  9054. {
  9055. public:
  9056. ~RenderTargetInfo();
  9057. RenderTargetInfo();
  9058. RenderTargetInfo(const RenderTargetInfo&in);
  9059. // Properties:
  9060. bool autoResolve;
  9061. bool cubemap;
  9062. bool enabled;
  9063. bool filtered;
  9064. uint format;
  9065. int multiSample;
  9066. String name;
  9067. bool persistent;
  9068. bool sRGB;
  9069. Vector2 size;
  9070. RenderTargetSizeMode sizeMode;
  9071. String tag;
  9072. };
  9073. class Renderer
  9074. {
  9075. public:
  9076. // Methods:
  9077. void DrawDebugGeometry(bool) const;
  9078. bool HasSubscribedToEvent(Object, const String&);
  9079. bool HasSubscribedToEvent(const String&);
  9080. void ReloadShaders() const;
  9081. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9082. void SetDefaultRenderPath(XMLFile);
  9083. void SetVSMShadowParameters(float, float);
  9084. // Properties:
  9085. /* readonly */
  9086. String category;
  9087. /* readonly */
  9088. Material defaultLightRamp;
  9089. /* readonly */
  9090. Material defaultLightSpot;
  9091. /* readonly */
  9092. Material defaultMaterial;
  9093. RenderPath defaultRenderPath;
  9094. Technique defaultTechnique;
  9095. /* readonly */
  9096. Zone defaultZone;
  9097. bool drawShadows;
  9098. bool dynamicInstancing;
  9099. bool hdrRendering;
  9100. int materialQuality;
  9101. int maxOccluderTriangles;
  9102. int maxShadowMaps;
  9103. int maxSortedInstances;
  9104. int minInstances;
  9105. float mobileNormalOffsetMul;
  9106. float mobileShadowBiasAdd;
  9107. float mobileShadowBiasMul;
  9108. /* readonly */
  9109. uint numBatches;
  9110. int numExtraInstancingBufferElements;
  9111. /* readonly */
  9112. Array<uint> numGeometries;
  9113. /* readonly */
  9114. Array<uint> numLights;
  9115. /* readonly */
  9116. Array<uint> numOccluders;
  9117. /* readonly */
  9118. uint numPrimitives;
  9119. /* readonly */
  9120. Array<uint> numShadowMaps;
  9121. uint numViewports;
  9122. /* readonly */
  9123. uint numViews;
  9124. float occluderSizeThreshold;
  9125. int occlusionBufferSize;
  9126. /* readonly */
  9127. int refs;
  9128. bool reuseShadowMaps;
  9129. int shadowMapSize;
  9130. ShadowQuality shadowQuality;
  9131. float shadowSoftness;
  9132. bool specularLighting;
  9133. int textureAnisotropy;
  9134. TextureFilterMode textureFilterMode;
  9135. int textureQuality;
  9136. bool threadedOcclusion;
  9137. /* readonly */
  9138. StringHash type;
  9139. /* readonly */
  9140. String typeName;
  9141. Array<Viewport> viewports;
  9142. int vsmMultiSample;
  9143. Vector2 vsmShadowParameters;
  9144. /* readonly */
  9145. int weakRefs;
  9146. };
  9147. class Resource
  9148. {
  9149. public:
  9150. // Methods:
  9151. bool HasSubscribedToEvent(Object, const String&);
  9152. bool HasSubscribedToEvent(const String&);
  9153. bool Load(File);
  9154. bool Load(VectorBuffer&);
  9155. bool Load(const String&);
  9156. bool Save(File) const;
  9157. bool Save(VectorBuffer&) const;
  9158. bool Save(const String&) const;
  9159. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9160. // Properties:
  9161. /* readonly */
  9162. String category;
  9163. /* readonly */
  9164. uint memoryUse;
  9165. String name;
  9166. /* readonly */
  9167. int refs;
  9168. /* readonly */
  9169. StringHash type;
  9170. /* readonly */
  9171. String typeName;
  9172. /* readonly */
  9173. uint useTimer;
  9174. /* readonly */
  9175. int weakRefs;
  9176. };
  9177. class ResourceCache
  9178. {
  9179. public:
  9180. // Methods:
  9181. bool AddManualResource(Resource);
  9182. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  9183. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  9184. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  9185. bool BackgroundLoadResource(const String&, const String&, bool = true);
  9186. bool Exists(const String&) const;
  9187. Resource GetExistingResource(StringHash, const String&);
  9188. Resource GetExistingResource(const String&, const String&);
  9189. File GetFile(const String&);
  9190. String GetPreferredResourceDir(const String&) const;
  9191. Resource GetResource(StringHash, const String&, bool = true);
  9192. Resource GetResource(const String&, const String&, bool = true);
  9193. String GetResourceFileName(const String&) const;
  9194. Array<Resource> GetResources(StringHash);
  9195. Array<Resource> GetResources(const String&);
  9196. bool HasSubscribedToEvent(Object, const String&);
  9197. bool HasSubscribedToEvent(const String&);
  9198. void ReleaseAllResources(bool = false);
  9199. void ReleaseResource(const String&, const String&, bool = false);
  9200. void ReleaseResources(StringHash, bool = false);
  9201. void ReleaseResources(const String&, bool = false);
  9202. void ReleaseResources(const String&, const String&, bool = false);
  9203. bool ReloadResource(Resource);
  9204. void ReloadResourceWithDependencies(const String&);
  9205. void RemovePackageFile(PackageFile, bool = true, bool = false);
  9206. void RemovePackageFile(const String&, bool = true, bool = false);
  9207. void RemoveResourceDir(const String&);
  9208. String SanitateResourceDirName(const String&) const;
  9209. String SanitateResourceName(const String&) const;
  9210. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9211. // Properties:
  9212. bool autoReloadResources;
  9213. /* readonly */
  9214. String category;
  9215. int finishBackgroundResourcesMs;
  9216. Array<uint64> memoryBudget;
  9217. /* readonly */
  9218. Array<uint64> memoryUse;
  9219. /* readonly */
  9220. uint numBackgroundLoadResources;
  9221. /* readonly */
  9222. Array<PackageFile> packageFiles;
  9223. /* readonly */
  9224. int refs;
  9225. /* readonly */
  9226. Array<String> resourceDirs;
  9227. bool returnFailedResources;
  9228. /* readonly */
  9229. bool seachPackagesFirst;
  9230. /* writeonly */
  9231. bool searchPackagesFirst;
  9232. /* readonly */
  9233. uint64 totalMemoryUse;
  9234. /* readonly */
  9235. StringHash type;
  9236. /* readonly */
  9237. String typeName;
  9238. /* readonly */
  9239. int weakRefs;
  9240. };
  9241. class ResourceRef
  9242. {
  9243. public:
  9244. ~ResourceRef();
  9245. ResourceRef();
  9246. ResourceRef(const ResourceRef&in);
  9247. ResourceRef(const String&in, const String&in);
  9248. // Properties:
  9249. String name;
  9250. StringHash type;
  9251. };
  9252. class ResourceRefList
  9253. {
  9254. public:
  9255. ~ResourceRefList();
  9256. ResourceRefList();
  9257. ResourceRefList(const ResourceRefList&in);
  9258. // Methods:
  9259. void Resize(uint);
  9260. // Properties:
  9261. /* readonly */
  9262. bool empty;
  9263. /* readonly */
  9264. uint length;
  9265. Array<String> names;
  9266. StringHash type;
  9267. };
  9268. class RibbonTrail
  9269. {
  9270. public:
  9271. // Methods:
  9272. void ApplyAttributes();
  9273. void Commit();
  9274. void DrawDebugGeometry(DebugRenderer, bool);
  9275. Variant GetAttribute(const String&) const;
  9276. ValueAnimation GetAttributeAnimation(const String&) const;
  9277. float GetAttributeAnimationSpeed(const String&) const;
  9278. float GetAttributeAnimationTime(const String&) const;
  9279. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9280. Variant GetAttributeDefault(const String&) const;
  9281. bool GetInterceptNetworkUpdate(const String&) const;
  9282. bool HasSubscribedToEvent(Object, const String&);
  9283. bool HasSubscribedToEvent(const String&);
  9284. bool IsInView(Camera) const;
  9285. bool Load(File, bool = false);
  9286. bool Load(VectorBuffer&, bool = false);
  9287. bool LoadJSON(const JSONValue&, bool = false);
  9288. bool LoadXML(const XMLElement&, bool = false);
  9289. void MarkNetworkUpdate() const;
  9290. void Remove();
  9291. void RemoveAttributeAnimation(const String&);
  9292. void RemoveInstanceDefault();
  9293. void RemoveObjectAnimation();
  9294. void ResetToDefault();
  9295. bool Save(File) const;
  9296. bool Save(VectorBuffer&) const;
  9297. bool SaveJSON(JSONValue&) const;
  9298. bool SaveXML(XMLElement&) const;
  9299. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9300. void SetAnimationTime(float);
  9301. bool SetAttribute(const String&, const Variant&);
  9302. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9303. void SetAttributeAnimationSpeed(const String&, float);
  9304. void SetAttributeAnimationTime(const String&, float);
  9305. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9306. void SetInterceptNetworkUpdate(const String&, bool);
  9307. // Properties:
  9308. bool animationEnabled;
  9309. float animationLodBias;
  9310. /* readonly */
  9311. Array<Variant> attributeDefaults;
  9312. /* readonly */
  9313. Array<AttributeInfo> attributeInfos;
  9314. Array<Variant> attributes;
  9315. /* readonly */
  9316. BoundingBox boundingBox;
  9317. bool castShadows;
  9318. /* readonly */
  9319. String category;
  9320. float drawDistance;
  9321. bool emitting;
  9322. bool enabled;
  9323. /* readonly */
  9324. bool enabledEffective;
  9325. Color endColor;
  9326. float endScale;
  9327. /* readonly */
  9328. uint id;
  9329. /* readonly */
  9330. bool inView;
  9331. float lifetime;
  9332. uint lightMask;
  9333. float lodBias;
  9334. Material material;
  9335. uint maxLights;
  9336. /* readonly */
  9337. Node node;
  9338. /* readonly */
  9339. uint numAttributes;
  9340. ObjectAnimation objectAnimation;
  9341. bool occludee;
  9342. bool occluder;
  9343. /* readonly */
  9344. int refs;
  9345. float shadowDistance;
  9346. uint shadowMask;
  9347. bool sorted;
  9348. Color startColor;
  9349. float startScale;
  9350. uint tailColumn;
  9351. bool temporary;
  9352. TrailType trailType;
  9353. /* readonly */
  9354. StringHash type;
  9355. /* readonly */
  9356. String typeName;
  9357. bool updateInvisible;
  9358. float vertexDistance;
  9359. uint viewMask;
  9360. /* readonly */
  9361. int weakRefs;
  9362. float width;
  9363. /* readonly */
  9364. BoundingBox worldBoundingBox;
  9365. /* readonly */
  9366. Zone zone;
  9367. uint zoneMask;
  9368. };
  9369. class RigidBody
  9370. {
  9371. public:
  9372. // Methods:
  9373. void Activate();
  9374. void ApplyAttributes();
  9375. void ApplyForce(const Vector3&);
  9376. void ApplyForce(const Vector3&, const Vector3&);
  9377. void ApplyImpulse(const Vector3&);
  9378. void ApplyImpulse(const Vector3&, const Vector3&);
  9379. void ApplyTorque(const Vector3&);
  9380. void ApplyTorqueImpulse(const Vector3&);
  9381. void DisableMassUpdate();
  9382. void DrawDebugGeometry(DebugRenderer, bool);
  9383. void EnableMassUpdate();
  9384. Variant GetAttribute(const String&) const;
  9385. ValueAnimation GetAttributeAnimation(const String&) const;
  9386. float GetAttributeAnimationSpeed(const String&) const;
  9387. float GetAttributeAnimationTime(const String&) const;
  9388. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9389. Variant GetAttributeDefault(const String&) const;
  9390. bool GetInterceptNetworkUpdate(const String&) const;
  9391. Vector3 GetVelocityAtPoint(const Vector3&) const;
  9392. bool HasSubscribedToEvent(Object, const String&);
  9393. bool HasSubscribedToEvent(const String&);
  9394. bool Load(File, bool = false);
  9395. bool Load(VectorBuffer&, bool = false);
  9396. bool LoadJSON(const JSONValue&, bool = false);
  9397. bool LoadXML(const XMLElement&, bool = false);
  9398. void MarkNetworkUpdate() const;
  9399. void ReAddBodyToWorld();
  9400. void Remove();
  9401. void RemoveAttributeAnimation(const String&);
  9402. void RemoveInstanceDefault();
  9403. void RemoveObjectAnimation();
  9404. void ResetForces();
  9405. void ResetToDefault();
  9406. bool Save(File) const;
  9407. bool Save(VectorBuffer&) const;
  9408. bool SaveJSON(JSONValue&) const;
  9409. bool SaveXML(XMLElement&) const;
  9410. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9411. void SetAnimationTime(float);
  9412. bool SetAttribute(const String&, const Variant&);
  9413. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9414. void SetAttributeAnimationSpeed(const String&, float);
  9415. void SetAttributeAnimationTime(const String&, float);
  9416. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9417. void SetCollisionLayerAndMask(uint, uint);
  9418. void SetInterceptNetworkUpdate(const String&, bool);
  9419. void SetTransform(const Vector3&, const Quaternion&);
  9420. // Properties:
  9421. /* readonly */
  9422. bool active;
  9423. float angularDamping;
  9424. Vector3 angularFactor;
  9425. float angularRestThreshold;
  9426. Vector3 angularVelocity;
  9427. bool animationEnabled;
  9428. Vector3 anisotropicFriction;
  9429. /* readonly */
  9430. Array<Variant> attributeDefaults;
  9431. /* readonly */
  9432. Array<AttributeInfo> attributeInfos;
  9433. Array<Variant> attributes;
  9434. /* readonly */
  9435. String category;
  9436. float ccdMotionThreshold;
  9437. float ccdRadius;
  9438. /* readonly */
  9439. Vector3 centerOfMass;
  9440. /* readonly */
  9441. Array<RigidBody> collidingBodies;
  9442. CollisionEventMode collisionEventMode;
  9443. uint collisionLayer;
  9444. uint collisionMask;
  9445. float contactProcessingThreshold;
  9446. bool enabled;
  9447. /* readonly */
  9448. bool enabledEffective;
  9449. float friction;
  9450. Vector3 gravityOverride;
  9451. /* readonly */
  9452. uint id;
  9453. bool kinematic;
  9454. float linearDamping;
  9455. Vector3 linearFactor;
  9456. float linearRestThreshold;
  9457. Vector3 linearVelocity;
  9458. float mass;
  9459. /* readonly */
  9460. Node node;
  9461. /* readonly */
  9462. uint numAttributes;
  9463. ObjectAnimation objectAnimation;
  9464. Vector3 position;
  9465. /* readonly */
  9466. int refs;
  9467. float restitution;
  9468. float rollingFriction;
  9469. Quaternion rotation;
  9470. bool temporary;
  9471. bool trigger;
  9472. /* readonly */
  9473. StringHash type;
  9474. /* readonly */
  9475. String typeName;
  9476. bool useGravity;
  9477. /* readonly */
  9478. int weakRefs;
  9479. };
  9480. class RigidBody2D
  9481. {
  9482. public:
  9483. // Methods:
  9484. void ApplyAngularImpulse(float, bool);
  9485. void ApplyAttributes();
  9486. void ApplyForce(const Vector2&, const Vector2&, bool);
  9487. void ApplyForceToCenter(const Vector2&, bool);
  9488. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  9489. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  9490. void ApplyTorque(float, bool);
  9491. void DrawDebugGeometry(DebugRenderer, bool);
  9492. Variant GetAttribute(const String&) const;
  9493. ValueAnimation GetAttributeAnimation(const String&) const;
  9494. float GetAttributeAnimationSpeed(const String&) const;
  9495. float GetAttributeAnimationTime(const String&) const;
  9496. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9497. Variant GetAttributeDefault(const String&) const;
  9498. bool GetInterceptNetworkUpdate(const String&) const;
  9499. bool HasSubscribedToEvent(Object, const String&);
  9500. bool HasSubscribedToEvent(const String&);
  9501. bool Load(File, bool = false);
  9502. bool Load(VectorBuffer&, bool = false);
  9503. bool LoadJSON(const JSONValue&, bool = false);
  9504. bool LoadXML(const XMLElement&, bool = false);
  9505. void MarkNetworkUpdate() const;
  9506. void Remove();
  9507. void RemoveAttributeAnimation(const String&);
  9508. void RemoveInstanceDefault();
  9509. void RemoveObjectAnimation();
  9510. void ResetToDefault();
  9511. bool Save(File) const;
  9512. bool Save(VectorBuffer&) const;
  9513. bool SaveJSON(JSONValue&) const;
  9514. bool SaveXML(XMLElement&) const;
  9515. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9516. void SetAnimationTime(float);
  9517. bool SetAttribute(const String&, const Variant&);
  9518. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9519. void SetAttributeAnimationSpeed(const String&, float);
  9520. void SetAttributeAnimationTime(const String&, float);
  9521. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9522. void SetInterceptNetworkUpdate(const String&, bool);
  9523. // Properties:
  9524. bool allowSleep;
  9525. float angularDamping;
  9526. bool animationEnabled;
  9527. /* readonly */
  9528. Array<Variant> attributeDefaults;
  9529. /* readonly */
  9530. Array<AttributeInfo> attributeInfos;
  9531. Array<Variant> attributes;
  9532. bool awake;
  9533. BodyType2D bodyType;
  9534. bool bullet;
  9535. /* readonly */
  9536. String category;
  9537. bool enabled;
  9538. /* readonly */
  9539. bool enabledEffective;
  9540. bool fixedRotation;
  9541. float gravityScale;
  9542. /* readonly */
  9543. uint id;
  9544. float inertia;
  9545. float linearDamping;
  9546. Vector2 linearVelocity;
  9547. float mass;
  9548. Vector2 massCenter;
  9549. /* readonly */
  9550. Node node;
  9551. /* readonly */
  9552. uint numAttributes;
  9553. ObjectAnimation objectAnimation;
  9554. /* readonly */
  9555. int refs;
  9556. bool temporary;
  9557. /* readonly */
  9558. StringHash type;
  9559. /* readonly */
  9560. String typeName;
  9561. bool useFixtureMass;
  9562. /* readonly */
  9563. int weakRefs;
  9564. };
  9565. class Scene
  9566. {
  9567. public:
  9568. Scene();
  9569. Scene(const String&in);
  9570. // Methods:
  9571. void AddChild(Node, uint = M_MAX_UNSIGNED);
  9572. void AddRequiredPackageFile(PackageFile);
  9573. void AddTag(const String&);
  9574. void AddTags(const String&, int8 = ';');
  9575. void ApplyAttributes();
  9576. void Clear(bool = true, bool = true);
  9577. void ClearRequiredPackageFiles();
  9578. Component CloneComponent(Component, CreateMode, uint = 0);
  9579. Component CloneComponent(Component, uint = 0);
  9580. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  9581. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9582. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  9583. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  9584. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  9585. Variant GetAttribute(const String&) const;
  9586. ValueAnimation GetAttributeAnimation(const String&) const;
  9587. float GetAttributeAnimationSpeed(const String&) const;
  9588. float GetAttributeAnimationTime(const String&) const;
  9589. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9590. Variant GetAttributeDefault(const String&) const;
  9591. Node GetChild(const String&, bool = false) const;
  9592. Array<Node> GetChildren(bool = false) const;
  9593. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  9594. Array<Node> GetChildrenWithScript(bool = false) const;
  9595. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  9596. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  9597. Component GetComponent(const String&, bool = false) const;
  9598. Component GetComponent(uint) const;
  9599. Array<Component> GetComponents() const;
  9600. Array<Component> GetComponents(const String&, bool = false) const;
  9601. bool GetInterceptNetworkUpdate(const String&) const;
  9602. Node GetNode(uint) const;
  9603. Array<Node> GetNodesWithTag(const String&) const;
  9604. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9605. Component GetParentComponent(const String&, bool = false) const;
  9606. ScriptObject GetScriptObject() const;
  9607. ScriptObject GetScriptObject(const String&) const;
  9608. bool HasComponent(const String&) const;
  9609. bool HasSubscribedToEvent(Object, const String&);
  9610. bool HasSubscribedToEvent(const String&);
  9611. bool HasTag(const String&);
  9612. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9613. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9614. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9615. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9616. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9617. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9618. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9619. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9620. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9621. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9622. bool IsChildOf(Node) const;
  9623. bool Load(File, bool = false);
  9624. bool Load(VectorBuffer&, bool = false);
  9625. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9626. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9627. bool LoadJSON(File);
  9628. bool LoadJSON(VectorBuffer&);
  9629. bool LoadJSON(const JSONValue&, bool = false);
  9630. bool LoadXML(File);
  9631. bool LoadXML(VectorBuffer&);
  9632. bool LoadXML(const XMLElement&, bool = false);
  9633. Vector3 LocalToWorld(const Vector3&) const;
  9634. Vector3 LocalToWorld(const Vector4&) const;
  9635. Vector2 LocalToWorld2D(const Vector2&) const;
  9636. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  9637. void MarkNetworkUpdate() const;
  9638. void Pitch(float, TransformSpace = TS_LOCAL);
  9639. void RegisterVar(const String&);
  9640. void Remove();
  9641. void RemoveAllChildren();
  9642. void RemoveAllComponents();
  9643. void RemoveAllTags();
  9644. void RemoveAttributeAnimation(const String&);
  9645. void RemoveChild(Node);
  9646. void RemoveChildren(bool, bool, bool);
  9647. void RemoveComponent(Component);
  9648. void RemoveComponent(const String&);
  9649. void RemoveComponents(bool, bool);
  9650. void RemoveComponents(const String&);
  9651. void RemoveInstanceDefault();
  9652. void RemoveObjectAnimation();
  9653. bool RemoveTag(const String&);
  9654. void ReorderComponent(Component, uint);
  9655. void ResetToDefault();
  9656. void Roll(float, TransformSpace = TS_LOCAL);
  9657. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  9658. void Rotate2D(float, TransformSpace = TS_LOCAL);
  9659. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  9660. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  9661. bool Save(File) const;
  9662. bool Save(VectorBuffer&) const;
  9663. bool SaveJSON(File, const String& = "\t");
  9664. bool SaveJSON(JSONValue&) const;
  9665. bool SaveJSON(VectorBuffer&, const String& = "\t");
  9666. bool SaveXML(File, const String& = "\t");
  9667. bool SaveXML(VectorBuffer&, const String& = "\t");
  9668. bool SaveXML(XMLElement&) const;
  9669. void Scale(const Vector3&);
  9670. void Scale(float);
  9671. void Scale2D(const Vector2&);
  9672. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9673. void SetAnimationTime(float);
  9674. bool SetAttribute(const String&, const Variant&);
  9675. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9676. void SetAttributeAnimationSpeed(const String&, float);
  9677. void SetAttributeAnimationTime(const String&, float);
  9678. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9679. void SetInterceptNetworkUpdate(const String&, bool);
  9680. void SetPosition2D(float, float);
  9681. void SetScale(float);
  9682. void SetScale2D(float, float);
  9683. void SetTransform(const Matrix3x4&);
  9684. void SetTransform(const Vector3&, const Quaternion&);
  9685. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  9686. void SetTransform(const Vector3&, const Quaternion&, float);
  9687. void SetTransform2D(const Vector2&, float);
  9688. void SetTransform2D(const Vector2&, float, const Vector2&);
  9689. void SetTransform2D(const Vector2&, float, float);
  9690. void SetWorldTransform(const Vector3&, const Quaternion&);
  9691. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  9692. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  9693. void SetWorldTransform2D(const Vector2&, float);
  9694. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  9695. void SetWorldTransform2D(const Vector2&, float, float);
  9696. void StopAsyncLoading();
  9697. const String& GetVarName(StringHash) const;
  9698. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  9699. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  9700. void UnregisterAllVars(const String&);
  9701. void UnregisterVar(const String&);
  9702. void Update(float);
  9703. Vector3 WorldToLocal(const Vector3&) const;
  9704. Vector3 WorldToLocal(const Vector4&) const;
  9705. Vector2 WorldToLocal2D(const Vector2&) const;
  9706. void Yaw(float, TransformSpace = TS_LOCAL);
  9707. // Properties:
  9708. bool animationEnabled;
  9709. /* readonly */
  9710. LoadMode asyncLoadMode;
  9711. /* readonly */
  9712. bool asyncLoading;
  9713. int asyncLoadingMs;
  9714. /* readonly */
  9715. float asyncProgress;
  9716. /* readonly */
  9717. Array<Variant> attributeDefaults;
  9718. /* readonly */
  9719. Array<AttributeInfo> attributeInfos;
  9720. Array<Variant> attributes;
  9721. /* readonly */
  9722. String category;
  9723. /* readonly */
  9724. uint checksum;
  9725. /* readonly */
  9726. Array<Node> children;
  9727. /* readonly */
  9728. Array<Component> components;
  9729. /* readonly */
  9730. DebugRenderer debugRenderer;
  9731. Vector3 direction;
  9732. float elapsedTime;
  9733. /* readonly */
  9734. String fileName;
  9735. uint id;
  9736. String name;
  9737. /* readonly */
  9738. uint numAllChildren;
  9739. /* readonly */
  9740. uint numAttributes;
  9741. /* readonly */
  9742. uint numChildren;
  9743. /* readonly */
  9744. uint numComponents;
  9745. ObjectAnimation objectAnimation;
  9746. /* readonly */
  9747. Octree octree;
  9748. Node parent;
  9749. /* readonly */
  9750. PhysicsWorld physicsWorld;
  9751. /* readonly */
  9752. PhysicsWorld2D physicsWorld2D;
  9753. Vector3 position;
  9754. Vector2 position2D;
  9755. /* readonly */
  9756. int refs;
  9757. /* readonly */
  9758. Array<PackageFile> requiredPackageFiles;
  9759. /* readonly */
  9760. Vector3 right;
  9761. Quaternion rotation;
  9762. float rotation2D;
  9763. Vector3 scale;
  9764. Vector2 scale2D;
  9765. /* readonly */
  9766. ScriptObject scriptObject;
  9767. /* readonly */
  9768. Vector3 signedWorldScale;
  9769. float smoothingConstant;
  9770. float snapThreshold;
  9771. /* readonly */
  9772. Array<String> tags;
  9773. bool temporary;
  9774. float timeScale;
  9775. /* readonly */
  9776. Matrix3x4 transform;
  9777. /* readonly */
  9778. StringHash type;
  9779. /* readonly */
  9780. String typeName;
  9781. /* readonly */
  9782. Vector3 up;
  9783. bool updateEnabled;
  9784. /* readonly */
  9785. VariantMap vars;
  9786. /* readonly */
  9787. int weakRefs;
  9788. Vector3 worldDirection;
  9789. Vector3 worldPosition;
  9790. Vector2 worldPosition2D;
  9791. /* readonly */
  9792. Vector3 worldRight;
  9793. Quaternion worldRotation;
  9794. float worldRotation2D;
  9795. Vector3 worldScale;
  9796. Vector2 worldScale2D;
  9797. /* readonly */
  9798. Matrix3x4 worldTransform;
  9799. /* readonly */
  9800. Vector3 worldUp;
  9801. };
  9802. class Script
  9803. {
  9804. public:
  9805. // Methods:
  9806. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9807. bool Execute(const String&);
  9808. bool HasSubscribedToEvent(Object, const String&);
  9809. bool HasSubscribedToEvent(const String&);
  9810. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9811. // Properties:
  9812. /* readonly */
  9813. String category;
  9814. Scene defaultScene;
  9815. ScriptFile defaultScriptFile;
  9816. bool executeConsoleCommands;
  9817. /* readonly */
  9818. int refs;
  9819. /* readonly */
  9820. StringHash type;
  9821. /* readonly */
  9822. String typeName;
  9823. /* readonly */
  9824. int weakRefs;
  9825. };
  9826. class ScriptFile
  9827. {
  9828. public:
  9829. ScriptFile();
  9830. ScriptFile(const String&in);
  9831. // Methods:
  9832. void ClearDelayedExecute(const String& = String ( ));
  9833. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9834. bool Execute(const String&, const Array<Variant> = null);
  9835. bool HasSubscribedToEvent(Object, const String&);
  9836. bool HasSubscribedToEvent(const String&);
  9837. bool Load(File);
  9838. bool Load(VectorBuffer&);
  9839. bool Load(const String&);
  9840. bool Save(File) const;
  9841. bool Save(VectorBuffer&) const;
  9842. bool Save(const String&) const;
  9843. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9844. // Properties:
  9845. /* readonly */
  9846. String category;
  9847. /* readonly */
  9848. bool compiled;
  9849. /* readonly */
  9850. uint memoryUse;
  9851. String name;
  9852. /* readonly */
  9853. int refs;
  9854. /* readonly */
  9855. StringHash type;
  9856. /* readonly */
  9857. String typeName;
  9858. /* readonly */
  9859. uint useTimer;
  9860. /* readonly */
  9861. int weakRefs;
  9862. };
  9863. class ScriptInstance
  9864. {
  9865. public:
  9866. // Methods:
  9867. void ApplyAttributes();
  9868. void ClearDelayedExecute(const String& = String ( ));
  9869. bool CreateObject(ScriptFile, const String&);
  9870. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9871. void DrawDebugGeometry(DebugRenderer, bool);
  9872. bool Execute(const String&, const Array<Variant> = null);
  9873. Variant GetAttribute(const String&) const;
  9874. ValueAnimation GetAttributeAnimation(const String&) const;
  9875. float GetAttributeAnimationSpeed(const String&) const;
  9876. float GetAttributeAnimationTime(const String&) const;
  9877. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9878. Variant GetAttributeDefault(const String&) const;
  9879. bool GetInterceptNetworkUpdate(const String&) const;
  9880. bool HasMethod(const String&) const;
  9881. bool HasSubscribedToEvent(Object, const String&);
  9882. bool HasSubscribedToEvent(const String&);
  9883. bool IsA(const String&) const;
  9884. bool Load(File, bool = false);
  9885. bool Load(VectorBuffer&, bool = false);
  9886. bool LoadJSON(const JSONValue&, bool = false);
  9887. bool LoadXML(const XMLElement&, bool = false);
  9888. void MarkNetworkUpdate() const;
  9889. void Remove();
  9890. void RemoveAttributeAnimation(const String&);
  9891. void RemoveInstanceDefault();
  9892. void RemoveObjectAnimation();
  9893. void ResetToDefault();
  9894. bool Save(File) const;
  9895. bool Save(VectorBuffer&) const;
  9896. bool SaveJSON(JSONValue&) const;
  9897. bool SaveXML(XMLElement&) const;
  9898. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9899. void SetAnimationTime(float);
  9900. bool SetAttribute(const String&, const Variant&);
  9901. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9902. void SetAttributeAnimationSpeed(const String&, float);
  9903. void SetAttributeAnimationTime(const String&, float);
  9904. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9905. void SetInterceptNetworkUpdate(const String&, bool);
  9906. // Properties:
  9907. bool animationEnabled;
  9908. /* readonly */
  9909. Array<Variant> attributeDefaults;
  9910. /* readonly */
  9911. Array<AttributeInfo> attributeInfos;
  9912. Array<Variant> attributes;
  9913. /* readonly */
  9914. String category;
  9915. String className;
  9916. bool enabled;
  9917. /* readonly */
  9918. bool enabledEffective;
  9919. /* readonly */
  9920. uint id;
  9921. /* readonly */
  9922. Node node;
  9923. /* readonly */
  9924. uint numAttributes;
  9925. ObjectAnimation objectAnimation;
  9926. /* readonly */
  9927. int refs;
  9928. ScriptFile scriptFile;
  9929. /* readonly */
  9930. ScriptObject scriptObject;
  9931. bool temporary;
  9932. /* readonly */
  9933. StringHash type;
  9934. /* readonly */
  9935. String typeName;
  9936. /* readonly */
  9937. int weakRefs;
  9938. };
  9939. class ScriptObject
  9940. {
  9941. public:
  9942. };
  9943. class ScrollBar
  9944. {
  9945. public:
  9946. ScrollBar();
  9947. ScrollBar(const String&in);
  9948. // Methods:
  9949. void AddChild(UIElement);
  9950. void AddTag(const String&);
  9951. void AddTags(const String&, int8 = ';');
  9952. void ApplyAttributes();
  9953. void BringToFront();
  9954. void ChangeValue(float);
  9955. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9956. void DisableLayoutUpdate();
  9957. IntVector2 ElementToScreen(const IntVector2&);
  9958. void EnableLayoutUpdate();
  9959. uint FindChild(UIElement) const;
  9960. Variant GetAttribute(const String&) const;
  9961. ValueAnimation GetAttributeAnimation(const String&) const;
  9962. float GetAttributeAnimationSpeed(const String&) const;
  9963. float GetAttributeAnimationTime(const String&) const;
  9964. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9965. Variant GetAttributeDefault(const String&) const;
  9966. UIElement GetChild(const String&, bool = false) const;
  9967. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9968. Array<UIElement> GetChildren(bool = false) const;
  9969. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9970. UIElement GetElementEventSender() const;
  9971. bool GetInterceptNetworkUpdate(const String&) const;
  9972. uint GetNumChildren(bool) const;
  9973. bool HasSubscribedToEvent(Object, const String&);
  9974. bool HasSubscribedToEvent(const String&);
  9975. bool HasTag(const String&) const;
  9976. void InsertChild(uint, UIElement);
  9977. bool IsInside(IntVector2, bool);
  9978. bool IsInsideCombined(IntVector2, bool);
  9979. bool Load(File, bool = false);
  9980. bool Load(VectorBuffer&, bool = false);
  9981. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9982. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9983. bool LoadJSON(const JSONValue&, bool = false);
  9984. bool LoadXML(File);
  9985. bool LoadXML(VectorBuffer&);
  9986. bool LoadXML(XMLFile, XMLFile);
  9987. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9988. bool LoadXML(const XMLElement&, bool = false);
  9989. void MarkNetworkUpdate() const;
  9990. void Remove();
  9991. void RemoveAllChildren();
  9992. void RemoveAllTags();
  9993. void RemoveAttributeAnimation(const String&);
  9994. void RemoveChild(UIElement, uint = 0);
  9995. void RemoveChild(uint);
  9996. void RemoveInstanceDefault();
  9997. void RemoveObjectAnimation();
  9998. bool RemoveTag(const String&);
  9999. void ResetDeepEnabled();
  10000. void ResetToDefault();
  10001. bool Save(File) const;
  10002. bool Save(VectorBuffer&) const;
  10003. bool SaveJSON(JSONValue&) const;
  10004. bool SaveXML(File, const String& = "\t");
  10005. bool SaveXML(VectorBuffer&, const String& = "\t");
  10006. bool SaveXML(XMLElement&) const;
  10007. IntVector2 ScreenToElement(const IntVector2&);
  10008. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10009. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10010. void SetAnimationTime(float);
  10011. bool SetAttribute(const String&, const Variant&);
  10012. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10013. void SetAttributeAnimationSpeed(const String&, float);
  10014. void SetAttributeAnimationTime(const String&, float);
  10015. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10016. void SetDeepEnabled(bool);
  10017. void SetEnabledRecursive(bool);
  10018. void SetFixedHeight(int);
  10019. void SetFixedSize(int, int);
  10020. void SetFixedWidth(int);
  10021. void SetInterceptNetworkUpdate(const String&, bool);
  10022. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10023. void SetMaxAnchor(float, float);
  10024. void SetMaxSize(int, int);
  10025. void SetMinAnchor(float, float);
  10026. void SetMinSize(int, int);
  10027. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10028. void SetPivot(float, float);
  10029. void SetPosition(int, int);
  10030. void SetSize(int, int);
  10031. bool SetStyle(const String&, XMLFile = null);
  10032. bool SetStyle(const XMLElement&);
  10033. bool SetStyleAuto(XMLFile = null);
  10034. void StepBack();
  10035. void StepForward();
  10036. void UpdateLayout();
  10037. const Variant& GetVar(const StringHash&);
  10038. // Properties:
  10039. bool animationEnabled;
  10040. /* readonly */
  10041. Array<Variant> attributeDefaults;
  10042. /* readonly */
  10043. Array<AttributeInfo> attributeInfos;
  10044. Array<Variant> attributes;
  10045. /* readonly */
  10046. Button backButton;
  10047. bool bringToBack;
  10048. bool bringToFront;
  10049. /* readonly */
  10050. String category;
  10051. /* readonly */
  10052. IntVector2 childOffset;
  10053. /* readonly */
  10054. Array<UIElement> children;
  10055. IntRect clipBorder;
  10056. bool clipChildren;
  10057. /* writeonly */
  10058. Color color;
  10059. /* readonly */
  10060. bool colorGradient;
  10061. Array<Color> colors;
  10062. /* readonly */
  10063. IntRect combinedScreenRect;
  10064. XMLFile defaultStyle;
  10065. /* readonly */
  10066. float derivedOpacity;
  10067. /* readonly */
  10068. uint dragButtonCombo;
  10069. /* readonly */
  10070. int dragButtonCount;
  10071. uint dragDropMode;
  10072. bool editable;
  10073. /* readonly */
  10074. float effectiveScrollStep;
  10075. bool elementEventSender;
  10076. bool enableAnchor;
  10077. bool enabled;
  10078. /* readonly */
  10079. bool enabledSelf;
  10080. /* readonly */
  10081. bool fixedHeight;
  10082. /* readonly */
  10083. bool fixedSize;
  10084. /* readonly */
  10085. bool fixedWidth;
  10086. bool focus;
  10087. FocusMode focusMode;
  10088. /* readonly */
  10089. Button forwardButton;
  10090. int height;
  10091. HorizontalAlignment horizontalAlignment;
  10092. /* readonly */
  10093. bool hovering;
  10094. int indent;
  10095. int indentSpacing;
  10096. /* readonly */
  10097. int indentWidth;
  10098. bool internal;
  10099. IntRect layoutBorder;
  10100. Vector2 layoutFlexScale;
  10101. LayoutMode layoutMode;
  10102. int layoutSpacing;
  10103. Vector2 maxAnchor;
  10104. int maxHeight;
  10105. IntVector2 maxOffset;
  10106. IntVector2 maxSize;
  10107. int maxWidth;
  10108. Vector2 minAnchor;
  10109. int minHeight;
  10110. IntVector2 minOffset;
  10111. IntVector2 minSize;
  10112. int minWidth;
  10113. String name;
  10114. /* readonly */
  10115. uint numAllChildren;
  10116. /* readonly */
  10117. uint numAttributes;
  10118. /* readonly */
  10119. uint numChildren;
  10120. ObjectAnimation objectAnimation;
  10121. float opacity;
  10122. Orientation orientation;
  10123. UIElement parent;
  10124. Vector2 pivot;
  10125. IntVector2 position;
  10126. int priority;
  10127. float range;
  10128. /* readonly */
  10129. int refs;
  10130. /* readonly */
  10131. UIElement root;
  10132. /* readonly */
  10133. IntVector2 screenPosition;
  10134. float scrollStep;
  10135. bool selected;
  10136. IntVector2 size;
  10137. /* readonly */
  10138. Slider slider;
  10139. bool sortChildren;
  10140. float stepFactor;
  10141. String style;
  10142. /* readonly */
  10143. Array<String> tags;
  10144. bool temporary;
  10145. TraversalMode traversalMode;
  10146. /* readonly */
  10147. StringHash type;
  10148. /* readonly */
  10149. String typeName;
  10150. bool useDerivedOpacity;
  10151. float value;
  10152. /* readonly */
  10153. VariantMap vars;
  10154. VerticalAlignment verticalAlignment;
  10155. bool visible;
  10156. /* readonly */
  10157. bool visibleEffective;
  10158. /* readonly */
  10159. int weakRefs;
  10160. int width;
  10161. };
  10162. class ScrollView
  10163. {
  10164. public:
  10165. ScrollView();
  10166. ScrollView(const String&in);
  10167. // Methods:
  10168. void AddChild(UIElement);
  10169. void AddTag(const String&);
  10170. void AddTags(const String&, int8 = ';');
  10171. void ApplyAttributes();
  10172. void BringToFront();
  10173. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10174. void DisableLayoutUpdate();
  10175. IntVector2 ElementToScreen(const IntVector2&);
  10176. void EnableLayoutUpdate();
  10177. uint FindChild(UIElement) const;
  10178. Variant GetAttribute(const String&) const;
  10179. ValueAnimation GetAttributeAnimation(const String&) const;
  10180. float GetAttributeAnimationSpeed(const String&) const;
  10181. float GetAttributeAnimationTime(const String&) const;
  10182. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10183. Variant GetAttributeDefault(const String&) const;
  10184. UIElement GetChild(const String&, bool = false) const;
  10185. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10186. Array<UIElement> GetChildren(bool = false) const;
  10187. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10188. UIElement GetElementEventSender() const;
  10189. bool GetInterceptNetworkUpdate(const String&) const;
  10190. uint GetNumChildren(bool) const;
  10191. bool HasSubscribedToEvent(Object, const String&);
  10192. bool HasSubscribedToEvent(const String&);
  10193. bool HasTag(const String&) const;
  10194. void InsertChild(uint, UIElement);
  10195. bool IsInside(IntVector2, bool);
  10196. bool IsInsideCombined(IntVector2, bool);
  10197. bool Load(File, bool = false);
  10198. bool Load(VectorBuffer&, bool = false);
  10199. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10200. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10201. bool LoadJSON(const JSONValue&, bool = false);
  10202. bool LoadXML(File);
  10203. bool LoadXML(VectorBuffer&);
  10204. bool LoadXML(XMLFile, XMLFile);
  10205. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10206. bool LoadXML(const XMLElement&, bool = false);
  10207. void MarkNetworkUpdate() const;
  10208. void Remove();
  10209. void RemoveAllChildren();
  10210. void RemoveAllTags();
  10211. void RemoveAttributeAnimation(const String&);
  10212. void RemoveChild(UIElement, uint = 0);
  10213. void RemoveChild(uint);
  10214. void RemoveInstanceDefault();
  10215. void RemoveObjectAnimation();
  10216. bool RemoveTag(const String&);
  10217. void ResetDeepEnabled();
  10218. void ResetToDefault();
  10219. bool Save(File) const;
  10220. bool Save(VectorBuffer&) const;
  10221. bool SaveJSON(JSONValue&) const;
  10222. bool SaveXML(File, const String& = "\t");
  10223. bool SaveXML(VectorBuffer&, const String& = "\t");
  10224. bool SaveXML(XMLElement&) const;
  10225. IntVector2 ScreenToElement(const IntVector2&);
  10226. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10227. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10228. void SetAnimationTime(float);
  10229. bool SetAttribute(const String&, const Variant&);
  10230. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10231. void SetAttributeAnimationSpeed(const String&, float);
  10232. void SetAttributeAnimationTime(const String&, float);
  10233. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10234. void SetDeepEnabled(bool);
  10235. void SetEnabledRecursive(bool);
  10236. void SetFixedHeight(int);
  10237. void SetFixedSize(int, int);
  10238. void SetFixedWidth(int);
  10239. void SetInterceptNetworkUpdate(const String&, bool);
  10240. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10241. void SetMaxAnchor(float, float);
  10242. void SetMaxSize(int, int);
  10243. void SetMinAnchor(float, float);
  10244. void SetMinSize(int, int);
  10245. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10246. void SetPivot(float, float);
  10247. void SetPosition(int, int);
  10248. void SetScrollBarsVisible(bool, bool);
  10249. void SetSize(int, int);
  10250. bool SetStyle(const String&, XMLFile = null);
  10251. bool SetStyle(const XMLElement&);
  10252. bool SetStyleAuto(XMLFile = null);
  10253. void SetViewPosition(int, int);
  10254. void UpdateLayout();
  10255. const Variant& GetVar(const StringHash&);
  10256. // Properties:
  10257. bool animationEnabled;
  10258. /* readonly */
  10259. Array<Variant> attributeDefaults;
  10260. /* readonly */
  10261. Array<AttributeInfo> attributeInfos;
  10262. Array<Variant> attributes;
  10263. bool autoDisableChildren;
  10264. float autoDisableThreshold;
  10265. bool bringToBack;
  10266. bool bringToFront;
  10267. /* readonly */
  10268. String category;
  10269. /* readonly */
  10270. IntVector2 childOffset;
  10271. /* readonly */
  10272. Array<UIElement> children;
  10273. IntRect clipBorder;
  10274. bool clipChildren;
  10275. /* writeonly */
  10276. Color color;
  10277. /* readonly */
  10278. bool colorGradient;
  10279. Array<Color> colors;
  10280. /* readonly */
  10281. IntRect combinedScreenRect;
  10282. UIElement contentElement;
  10283. XMLFile defaultStyle;
  10284. /* readonly */
  10285. float derivedOpacity;
  10286. /* readonly */
  10287. uint dragButtonCombo;
  10288. /* readonly */
  10289. int dragButtonCount;
  10290. uint dragDropMode;
  10291. bool editable;
  10292. bool elementEventSender;
  10293. bool enableAnchor;
  10294. bool enabled;
  10295. /* readonly */
  10296. bool enabledSelf;
  10297. /* readonly */
  10298. bool fixedHeight;
  10299. /* readonly */
  10300. bool fixedSize;
  10301. /* readonly */
  10302. bool fixedWidth;
  10303. bool focus;
  10304. FocusMode focusMode;
  10305. int height;
  10306. HorizontalAlignment horizontalAlignment;
  10307. /* readonly */
  10308. ScrollBar horizontalScrollBar;
  10309. /* readonly */
  10310. bool hovering;
  10311. int indent;
  10312. int indentSpacing;
  10313. /* readonly */
  10314. int indentWidth;
  10315. bool internal;
  10316. IntRect layoutBorder;
  10317. Vector2 layoutFlexScale;
  10318. LayoutMode layoutMode;
  10319. int layoutSpacing;
  10320. Vector2 maxAnchor;
  10321. int maxHeight;
  10322. IntVector2 maxOffset;
  10323. IntVector2 maxSize;
  10324. int maxWidth;
  10325. Vector2 minAnchor;
  10326. int minHeight;
  10327. IntVector2 minOffset;
  10328. IntVector2 minSize;
  10329. int minWidth;
  10330. String name;
  10331. /* readonly */
  10332. uint numAllChildren;
  10333. /* readonly */
  10334. uint numAttributes;
  10335. /* readonly */
  10336. uint numChildren;
  10337. ObjectAnimation objectAnimation;
  10338. float opacity;
  10339. float pageStep;
  10340. UIElement parent;
  10341. Vector2 pivot;
  10342. IntVector2 position;
  10343. int priority;
  10344. /* readonly */
  10345. int refs;
  10346. /* readonly */
  10347. UIElement root;
  10348. /* readonly */
  10349. IntVector2 screenPosition;
  10350. bool scrollBarsAutoVisible;
  10351. float scrollDeceleration;
  10352. /* readonly */
  10353. BorderImage scrollPanel;
  10354. float scrollSnapEpsilon;
  10355. float scrollStep;
  10356. bool selected;
  10357. IntVector2 size;
  10358. bool sortChildren;
  10359. String style;
  10360. /* readonly */
  10361. Array<String> tags;
  10362. bool temporary;
  10363. TraversalMode traversalMode;
  10364. /* readonly */
  10365. StringHash type;
  10366. /* readonly */
  10367. String typeName;
  10368. bool useDerivedOpacity;
  10369. /* readonly */
  10370. VariantMap vars;
  10371. VerticalAlignment verticalAlignment;
  10372. /* readonly */
  10373. ScrollBar verticalScrollBar;
  10374. IntVector2 viewPosition;
  10375. bool visible;
  10376. /* readonly */
  10377. bool visibleEffective;
  10378. /* readonly */
  10379. int weakRefs;
  10380. int width;
  10381. };
  10382. class Serializable
  10383. {
  10384. public:
  10385. // Methods:
  10386. void ApplyAttributes();
  10387. Variant GetAttribute(const String&) const;
  10388. Variant GetAttributeDefault(const String&) const;
  10389. bool GetInterceptNetworkUpdate(const String&) const;
  10390. bool HasSubscribedToEvent(Object, const String&);
  10391. bool HasSubscribedToEvent(const String&);
  10392. bool Load(File, bool = false);
  10393. bool Load(VectorBuffer&, bool = false);
  10394. bool LoadJSON(const JSONValue&, bool = false);
  10395. bool LoadXML(const XMLElement&, bool = false);
  10396. void MarkNetworkUpdate() const;
  10397. void RemoveInstanceDefault();
  10398. void ResetToDefault();
  10399. bool Save(File) const;
  10400. bool Save(VectorBuffer&) const;
  10401. bool SaveJSON(JSONValue&) const;
  10402. bool SaveXML(XMLElement&) const;
  10403. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10404. bool SetAttribute(const String&, const Variant&);
  10405. void SetInterceptNetworkUpdate(const String&, bool);
  10406. // Properties:
  10407. /* readonly */
  10408. Array<Variant> attributeDefaults;
  10409. /* readonly */
  10410. Array<AttributeInfo> attributeInfos;
  10411. Array<Variant> attributes;
  10412. /* readonly */
  10413. String category;
  10414. /* readonly */
  10415. uint numAttributes;
  10416. /* readonly */
  10417. int refs;
  10418. bool temporary;
  10419. /* readonly */
  10420. StringHash type;
  10421. /* readonly */
  10422. String typeName;
  10423. /* readonly */
  10424. int weakRefs;
  10425. };
  10426. class Serializer
  10427. {
  10428. public:
  10429. // Methods:
  10430. uint Write(Array<uint8>);
  10431. bool WriteBool(bool);
  10432. bool WriteBoundingBox(const BoundingBox&);
  10433. bool WriteByte(int8);
  10434. bool WriteColor(const Color&);
  10435. bool WriteDouble(double);
  10436. bool WriteFileID(const String&);
  10437. bool WriteFloat(float);
  10438. bool WriteInt(int);
  10439. bool WriteInt64(int64);
  10440. bool WriteIntRect(const IntRect&);
  10441. bool WriteIntVector2(const IntVector2&);
  10442. bool WriteLine(const String&);
  10443. bool WriteMatrix3(const Matrix3&);
  10444. bool WriteMatrix3x4(const Matrix3x4&);
  10445. bool WriteMatrix4(const Matrix4&);
  10446. bool WriteNetID(uint);
  10447. bool WritePackedQuaternion(const Quaternion&);
  10448. bool WritePackedVector3(const Vector3&, float);
  10449. bool WriteQuaternion(const Quaternion&);
  10450. bool WriteShort(int16);
  10451. bool WriteString(const String&);
  10452. bool WriteStringHash(const StringHash&);
  10453. bool WriteUByte(uint8);
  10454. bool WriteUInt(uint);
  10455. bool WriteUInt64(uint64);
  10456. bool WriteUShort(uint16);
  10457. bool WriteVLE(uint);
  10458. bool WriteVariant(const Variant&);
  10459. bool WriteVariantMap(const VariantMap&);
  10460. bool WriteVector2(const Vector2&);
  10461. bool WriteVector3(const Vector3&);
  10462. bool WriteVector4(const Vector4&);
  10463. bool WriteVectorBuffer(const VectorBuffer&);
  10464. };
  10465. class Skeleton
  10466. {
  10467. public:
  10468. // Methods:
  10469. Bone GetBone(const String&) const;
  10470. void Reset();
  10471. // Properties:
  10472. /* readonly */
  10473. Array<Bone> bones;
  10474. /* readonly */
  10475. uint numBones;
  10476. /* readonly */
  10477. Bone rootBone;
  10478. };
  10479. class Skybox
  10480. {
  10481. public:
  10482. // Methods:
  10483. void ApplyAttributes();
  10484. void ApplyMaterialList(const String& = String ( ));
  10485. void DrawDebugGeometry(DebugRenderer, bool);
  10486. Variant GetAttribute(const String&) const;
  10487. ValueAnimation GetAttributeAnimation(const String&) const;
  10488. float GetAttributeAnimationSpeed(const String&) const;
  10489. float GetAttributeAnimationTime(const String&) const;
  10490. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10491. Variant GetAttributeDefault(const String&) const;
  10492. bool GetInterceptNetworkUpdate(const String&) const;
  10493. bool HasSubscribedToEvent(Object, const String&);
  10494. bool HasSubscribedToEvent(const String&);
  10495. bool IsInView(Camera) const;
  10496. bool Load(File, bool = false);
  10497. bool Load(VectorBuffer&, bool = false);
  10498. bool LoadJSON(const JSONValue&, bool = false);
  10499. bool LoadXML(const XMLElement&, bool = false);
  10500. void MarkNetworkUpdate() const;
  10501. void Remove();
  10502. void RemoveAttributeAnimation(const String&);
  10503. void RemoveInstanceDefault();
  10504. void RemoveObjectAnimation();
  10505. void ResetToDefault();
  10506. bool Save(File) const;
  10507. bool Save(VectorBuffer&) const;
  10508. bool SaveJSON(JSONValue&) const;
  10509. bool SaveXML(XMLElement&) const;
  10510. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10511. void SetAnimationTime(float);
  10512. bool SetAttribute(const String&, const Variant&);
  10513. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10514. void SetAttributeAnimationSpeed(const String&, float);
  10515. void SetAttributeAnimationTime(const String&, float);
  10516. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10517. void SetInterceptNetworkUpdate(const String&, bool);
  10518. // Properties:
  10519. bool animationEnabled;
  10520. /* readonly */
  10521. Array<Variant> attributeDefaults;
  10522. /* readonly */
  10523. Array<AttributeInfo> attributeInfos;
  10524. Array<Variant> attributes;
  10525. /* readonly */
  10526. BoundingBox boundingBox;
  10527. bool castShadows;
  10528. /* readonly */
  10529. String category;
  10530. float drawDistance;
  10531. bool enabled;
  10532. /* readonly */
  10533. bool enabledEffective;
  10534. /* readonly */
  10535. uint id;
  10536. /* readonly */
  10537. bool inView;
  10538. uint lightMask;
  10539. float lodBias;
  10540. /* writeonly */
  10541. Material material;
  10542. Array<Material> materials;
  10543. uint maxLights;
  10544. Model model;
  10545. /* readonly */
  10546. Node node;
  10547. /* readonly */
  10548. uint numAttributes;
  10549. /* readonly */
  10550. uint numGeometries;
  10551. ObjectAnimation objectAnimation;
  10552. bool occludee;
  10553. bool occluder;
  10554. /* readonly */
  10555. int refs;
  10556. float shadowDistance;
  10557. uint shadowMask;
  10558. bool temporary;
  10559. /* readonly */
  10560. StringHash type;
  10561. /* readonly */
  10562. String typeName;
  10563. uint viewMask;
  10564. /* readonly */
  10565. int weakRefs;
  10566. /* readonly */
  10567. BoundingBox worldBoundingBox;
  10568. /* readonly */
  10569. Zone zone;
  10570. uint zoneMask;
  10571. };
  10572. class Slider
  10573. {
  10574. public:
  10575. Slider();
  10576. Slider(const String&in);
  10577. // Methods:
  10578. void AddChild(UIElement);
  10579. void AddTag(const String&);
  10580. void AddTags(const String&, int8 = ';');
  10581. void ApplyAttributes();
  10582. void BringToFront();
  10583. void ChangeValue(float);
  10584. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10585. void DisableLayoutUpdate();
  10586. IntVector2 ElementToScreen(const IntVector2&);
  10587. void EnableLayoutUpdate();
  10588. uint FindChild(UIElement) const;
  10589. Variant GetAttribute(const String&) const;
  10590. ValueAnimation GetAttributeAnimation(const String&) const;
  10591. float GetAttributeAnimationSpeed(const String&) const;
  10592. float GetAttributeAnimationTime(const String&) const;
  10593. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10594. Variant GetAttributeDefault(const String&) const;
  10595. UIElement GetChild(const String&, bool = false) const;
  10596. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10597. Array<UIElement> GetChildren(bool = false) const;
  10598. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10599. UIElement GetElementEventSender() const;
  10600. bool GetInterceptNetworkUpdate(const String&) const;
  10601. uint GetNumChildren(bool) const;
  10602. bool HasSubscribedToEvent(Object, const String&);
  10603. bool HasSubscribedToEvent(const String&);
  10604. bool HasTag(const String&) const;
  10605. void InsertChild(uint, UIElement);
  10606. bool IsInside(IntVector2, bool);
  10607. bool IsInsideCombined(IntVector2, bool);
  10608. bool Load(File, bool = false);
  10609. bool Load(VectorBuffer&, bool = false);
  10610. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10611. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10612. bool LoadJSON(const JSONValue&, bool = false);
  10613. bool LoadXML(File);
  10614. bool LoadXML(VectorBuffer&);
  10615. bool LoadXML(XMLFile, XMLFile);
  10616. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10617. bool LoadXML(const XMLElement&, bool = false);
  10618. void MarkNetworkUpdate() const;
  10619. void Remove();
  10620. void RemoveAllChildren();
  10621. void RemoveAllTags();
  10622. void RemoveAttributeAnimation(const String&);
  10623. void RemoveChild(UIElement, uint = 0);
  10624. void RemoveChild(uint);
  10625. void RemoveInstanceDefault();
  10626. void RemoveObjectAnimation();
  10627. bool RemoveTag(const String&);
  10628. void ResetDeepEnabled();
  10629. void ResetToDefault();
  10630. bool Save(File) const;
  10631. bool Save(VectorBuffer&) const;
  10632. bool SaveJSON(JSONValue&) const;
  10633. bool SaveXML(File, const String& = "\t");
  10634. bool SaveXML(VectorBuffer&, const String& = "\t");
  10635. bool SaveXML(XMLElement&) const;
  10636. IntVector2 ScreenToElement(const IntVector2&);
  10637. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10638. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10639. void SetAnimationTime(float);
  10640. bool SetAttribute(const String&, const Variant&);
  10641. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10642. void SetAttributeAnimationSpeed(const String&, float);
  10643. void SetAttributeAnimationTime(const String&, float);
  10644. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10645. void SetDeepEnabled(bool);
  10646. void SetEnabledRecursive(bool);
  10647. void SetFixedHeight(int);
  10648. void SetFixedSize(int, int);
  10649. void SetFixedWidth(int);
  10650. void SetFullImageRect();
  10651. void SetHoverOffset(int, int);
  10652. void SetInterceptNetworkUpdate(const String&, bool);
  10653. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10654. void SetMaxAnchor(float, float);
  10655. void SetMaxSize(int, int);
  10656. void SetMinAnchor(float, float);
  10657. void SetMinSize(int, int);
  10658. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10659. void SetPivot(float, float);
  10660. void SetPosition(int, int);
  10661. void SetSize(int, int);
  10662. bool SetStyle(const String&, XMLFile = null);
  10663. bool SetStyle(const XMLElement&);
  10664. bool SetStyleAuto(XMLFile = null);
  10665. void UpdateLayout();
  10666. const Variant& GetVar(const StringHash&);
  10667. // Properties:
  10668. bool animationEnabled;
  10669. /* readonly */
  10670. Array<Variant> attributeDefaults;
  10671. /* readonly */
  10672. Array<AttributeInfo> attributeInfos;
  10673. Array<Variant> attributes;
  10674. BlendMode blendMode;
  10675. IntRect border;
  10676. bool bringToBack;
  10677. bool bringToFront;
  10678. /* readonly */
  10679. String category;
  10680. /* readonly */
  10681. IntVector2 childOffset;
  10682. /* readonly */
  10683. Array<UIElement> children;
  10684. IntRect clipBorder;
  10685. bool clipChildren;
  10686. /* writeonly */
  10687. Color color;
  10688. /* readonly */
  10689. bool colorGradient;
  10690. Array<Color> colors;
  10691. /* readonly */
  10692. IntRect combinedScreenRect;
  10693. XMLFile defaultStyle;
  10694. /* readonly */
  10695. float derivedOpacity;
  10696. /* readonly */
  10697. uint dragButtonCombo;
  10698. /* readonly */
  10699. int dragButtonCount;
  10700. uint dragDropMode;
  10701. bool editable;
  10702. bool elementEventSender;
  10703. bool enableAnchor;
  10704. bool enabled;
  10705. /* readonly */
  10706. bool enabledSelf;
  10707. /* readonly */
  10708. bool fixedHeight;
  10709. /* readonly */
  10710. bool fixedSize;
  10711. /* readonly */
  10712. bool fixedWidth;
  10713. bool focus;
  10714. FocusMode focusMode;
  10715. int height;
  10716. HorizontalAlignment horizontalAlignment;
  10717. IntVector2 hoverOffset;
  10718. /* readonly */
  10719. bool hovering;
  10720. IntRect imageBorder;
  10721. IntRect imageRect;
  10722. int indent;
  10723. int indentSpacing;
  10724. /* readonly */
  10725. int indentWidth;
  10726. bool internal;
  10727. /* readonly */
  10728. BorderImage knob;
  10729. IntRect layoutBorder;
  10730. Vector2 layoutFlexScale;
  10731. LayoutMode layoutMode;
  10732. int layoutSpacing;
  10733. Vector2 maxAnchor;
  10734. int maxHeight;
  10735. IntVector2 maxOffset;
  10736. IntVector2 maxSize;
  10737. int maxWidth;
  10738. Vector2 minAnchor;
  10739. int minHeight;
  10740. IntVector2 minOffset;
  10741. IntVector2 minSize;
  10742. int minWidth;
  10743. String name;
  10744. /* readonly */
  10745. uint numAllChildren;
  10746. /* readonly */
  10747. uint numAttributes;
  10748. /* readonly */
  10749. uint numChildren;
  10750. ObjectAnimation objectAnimation;
  10751. float opacity;
  10752. Orientation orientation;
  10753. UIElement parent;
  10754. Vector2 pivot;
  10755. IntVector2 position;
  10756. int priority;
  10757. float range;
  10758. /* readonly */
  10759. int refs;
  10760. float repeatRate;
  10761. /* readonly */
  10762. UIElement root;
  10763. /* readonly */
  10764. IntVector2 screenPosition;
  10765. bool selected;
  10766. IntVector2 size;
  10767. bool sortChildren;
  10768. String style;
  10769. /* readonly */
  10770. Array<String> tags;
  10771. bool temporary;
  10772. Texture texture;
  10773. bool tiled;
  10774. TraversalMode traversalMode;
  10775. /* readonly */
  10776. StringHash type;
  10777. /* readonly */
  10778. String typeName;
  10779. bool useDerivedOpacity;
  10780. float value;
  10781. /* readonly */
  10782. VariantMap vars;
  10783. VerticalAlignment verticalAlignment;
  10784. bool visible;
  10785. /* readonly */
  10786. bool visibleEffective;
  10787. /* readonly */
  10788. int weakRefs;
  10789. int width;
  10790. };
  10791. class SmoothedTransform
  10792. {
  10793. public:
  10794. // Methods:
  10795. void ApplyAttributes();
  10796. void DrawDebugGeometry(DebugRenderer, bool);
  10797. Variant GetAttribute(const String&) const;
  10798. ValueAnimation GetAttributeAnimation(const String&) const;
  10799. float GetAttributeAnimationSpeed(const String&) const;
  10800. float GetAttributeAnimationTime(const String&) const;
  10801. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10802. Variant GetAttributeDefault(const String&) const;
  10803. bool GetInterceptNetworkUpdate(const String&) const;
  10804. bool HasSubscribedToEvent(Object, const String&);
  10805. bool HasSubscribedToEvent(const String&);
  10806. bool Load(File, bool = false);
  10807. bool Load(VectorBuffer&, bool = false);
  10808. bool LoadJSON(const JSONValue&, bool = false);
  10809. bool LoadXML(const XMLElement&, bool = false);
  10810. void MarkNetworkUpdate() const;
  10811. void Remove();
  10812. void RemoveAttributeAnimation(const String&);
  10813. void RemoveInstanceDefault();
  10814. void RemoveObjectAnimation();
  10815. void ResetToDefault();
  10816. bool Save(File) const;
  10817. bool Save(VectorBuffer&) const;
  10818. bool SaveJSON(JSONValue&) const;
  10819. bool SaveXML(XMLElement&) const;
  10820. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10821. void SetAnimationTime(float);
  10822. bool SetAttribute(const String&, const Variant&);
  10823. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10824. void SetAttributeAnimationSpeed(const String&, float);
  10825. void SetAttributeAnimationTime(const String&, float);
  10826. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10827. void SetInterceptNetworkUpdate(const String&, bool);
  10828. void Update(float, float);
  10829. // Properties:
  10830. bool animationEnabled;
  10831. /* readonly */
  10832. Array<Variant> attributeDefaults;
  10833. /* readonly */
  10834. Array<AttributeInfo> attributeInfos;
  10835. Array<Variant> attributes;
  10836. /* readonly */
  10837. String category;
  10838. bool enabled;
  10839. /* readonly */
  10840. bool enabledEffective;
  10841. /* readonly */
  10842. uint id;
  10843. /* readonly */
  10844. bool inProgress;
  10845. /* readonly */
  10846. Node node;
  10847. /* readonly */
  10848. uint numAttributes;
  10849. ObjectAnimation objectAnimation;
  10850. /* readonly */
  10851. int refs;
  10852. Vector3 targetPosition;
  10853. Quaternion targetRotation;
  10854. Vector3 targetWorldPosition;
  10855. Quaternion targetWorldRotation;
  10856. bool temporary;
  10857. /* readonly */
  10858. StringHash type;
  10859. /* readonly */
  10860. String typeName;
  10861. /* readonly */
  10862. int weakRefs;
  10863. };
  10864. class Sound
  10865. {
  10866. public:
  10867. Sound();
  10868. Sound(const String&in);
  10869. // Methods:
  10870. bool HasSubscribedToEvent(Object, const String&);
  10871. bool HasSubscribedToEvent(const String&);
  10872. bool Load(File);
  10873. bool Load(VectorBuffer&);
  10874. bool Load(const String&);
  10875. bool Save(File) const;
  10876. bool Save(VectorBuffer&) const;
  10877. bool Save(const String&) const;
  10878. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10879. // Properties:
  10880. /* readonly */
  10881. String category;
  10882. /* readonly */
  10883. bool compressed;
  10884. /* readonly */
  10885. float frequency;
  10886. /* readonly */
  10887. float length;
  10888. bool looped;
  10889. /* readonly */
  10890. uint memoryUse;
  10891. String name;
  10892. /* readonly */
  10893. int refs;
  10894. /* readonly */
  10895. uint sampleSize;
  10896. /* readonly */
  10897. bool sixteenBit;
  10898. /* readonly */
  10899. bool stereo;
  10900. /* readonly */
  10901. StringHash type;
  10902. /* readonly */
  10903. String typeName;
  10904. /* readonly */
  10905. uint useTimer;
  10906. /* readonly */
  10907. int weakRefs;
  10908. };
  10909. class SoundListener
  10910. {
  10911. public:
  10912. // Methods:
  10913. void ApplyAttributes();
  10914. void DrawDebugGeometry(DebugRenderer, bool);
  10915. Variant GetAttribute(const String&) const;
  10916. ValueAnimation GetAttributeAnimation(const String&) const;
  10917. float GetAttributeAnimationSpeed(const String&) const;
  10918. float GetAttributeAnimationTime(const String&) const;
  10919. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10920. Variant GetAttributeDefault(const String&) const;
  10921. bool GetInterceptNetworkUpdate(const String&) const;
  10922. bool HasSubscribedToEvent(Object, const String&);
  10923. bool HasSubscribedToEvent(const String&);
  10924. bool Load(File, bool = false);
  10925. bool Load(VectorBuffer&, bool = false);
  10926. bool LoadJSON(const JSONValue&, bool = false);
  10927. bool LoadXML(const XMLElement&, bool = false);
  10928. void MarkNetworkUpdate() const;
  10929. void Remove();
  10930. void RemoveAttributeAnimation(const String&);
  10931. void RemoveInstanceDefault();
  10932. void RemoveObjectAnimation();
  10933. void ResetToDefault();
  10934. bool Save(File) const;
  10935. bool Save(VectorBuffer&) const;
  10936. bool SaveJSON(JSONValue&) const;
  10937. bool SaveXML(XMLElement&) const;
  10938. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10939. void SetAnimationTime(float);
  10940. bool SetAttribute(const String&, const Variant&);
  10941. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10942. void SetAttributeAnimationSpeed(const String&, float);
  10943. void SetAttributeAnimationTime(const String&, float);
  10944. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10945. void SetInterceptNetworkUpdate(const String&, bool);
  10946. // Properties:
  10947. bool animationEnabled;
  10948. /* readonly */
  10949. Array<Variant> attributeDefaults;
  10950. /* readonly */
  10951. Array<AttributeInfo> attributeInfos;
  10952. Array<Variant> attributes;
  10953. /* readonly */
  10954. String category;
  10955. bool enabled;
  10956. /* readonly */
  10957. bool enabledEffective;
  10958. /* readonly */
  10959. uint id;
  10960. /* readonly */
  10961. Node node;
  10962. /* readonly */
  10963. uint numAttributes;
  10964. ObjectAnimation objectAnimation;
  10965. /* readonly */
  10966. int refs;
  10967. bool temporary;
  10968. /* readonly */
  10969. StringHash type;
  10970. /* readonly */
  10971. String typeName;
  10972. /* readonly */
  10973. int weakRefs;
  10974. };
  10975. class SoundSource
  10976. {
  10977. public:
  10978. SoundSource();
  10979. // Methods:
  10980. void ApplyAttributes();
  10981. void DrawDebugGeometry(DebugRenderer, bool);
  10982. Variant GetAttribute(const String&) const;
  10983. ValueAnimation GetAttributeAnimation(const String&) const;
  10984. float GetAttributeAnimationSpeed(const String&) const;
  10985. float GetAttributeAnimationTime(const String&) const;
  10986. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10987. Variant GetAttributeDefault(const String&) const;
  10988. bool GetInterceptNetworkUpdate(const String&) const;
  10989. bool HasSubscribedToEvent(Object, const String&);
  10990. bool HasSubscribedToEvent(const String&);
  10991. bool Load(File, bool = false);
  10992. bool Load(VectorBuffer&, bool = false);
  10993. bool LoadJSON(const JSONValue&, bool = false);
  10994. bool LoadXML(const XMLElement&, bool = false);
  10995. void MarkNetworkUpdate() const;
  10996. void Play(Sound);
  10997. void Play(Sound, float);
  10998. void Play(Sound, float, float);
  10999. void Play(Sound, float, float, float);
  11000. void Remove();
  11001. void RemoveAttributeAnimation(const String&);
  11002. void RemoveInstanceDefault();
  11003. void RemoveObjectAnimation();
  11004. void ResetToDefault();
  11005. bool Save(File) const;
  11006. bool Save(VectorBuffer&) const;
  11007. bool SaveJSON(JSONValue&) const;
  11008. bool SaveXML(XMLElement&) const;
  11009. void Seek(float);
  11010. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11011. void SetAnimationTime(float);
  11012. bool SetAttribute(const String&, const Variant&);
  11013. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11014. void SetAttributeAnimationSpeed(const String&, float);
  11015. void SetAttributeAnimationTime(const String&, float);
  11016. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11017. void SetInterceptNetworkUpdate(const String&, bool);
  11018. void Stop();
  11019. // Properties:
  11020. bool animationEnabled;
  11021. /* readonly */
  11022. float attenuation;
  11023. /* readonly */
  11024. Array<Variant> attributeDefaults;
  11025. /* readonly */
  11026. Array<AttributeInfo> attributeInfos;
  11027. Array<Variant> attributes;
  11028. AutoRemoveMode autoRemoveMode;
  11029. /* readonly */
  11030. String category;
  11031. bool enabled;
  11032. /* readonly */
  11033. bool enabledEffective;
  11034. float frequency;
  11035. float gain;
  11036. /* readonly */
  11037. uint id;
  11038. /* readonly */
  11039. Node node;
  11040. /* readonly */
  11041. uint numAttributes;
  11042. ObjectAnimation objectAnimation;
  11043. float panning;
  11044. /* readonly */
  11045. bool playing;
  11046. /* readonly */
  11047. int refs;
  11048. /* readonly */
  11049. Sound sound;
  11050. String soundType;
  11051. bool temporary;
  11052. /* readonly */
  11053. float timePosition;
  11054. /* readonly */
  11055. StringHash type;
  11056. /* readonly */
  11057. String typeName;
  11058. /* readonly */
  11059. int weakRefs;
  11060. };
  11061. class SoundSource3D
  11062. {
  11063. public:
  11064. // Methods:
  11065. void ApplyAttributes();
  11066. void DrawDebugGeometry(DebugRenderer, bool);
  11067. Variant GetAttribute(const String&) const;
  11068. ValueAnimation GetAttributeAnimation(const String&) const;
  11069. float GetAttributeAnimationSpeed(const String&) const;
  11070. float GetAttributeAnimationTime(const String&) const;
  11071. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11072. Variant GetAttributeDefault(const String&) const;
  11073. bool GetInterceptNetworkUpdate(const String&) const;
  11074. bool HasSubscribedToEvent(Object, const String&);
  11075. bool HasSubscribedToEvent(const String&);
  11076. bool Load(File, bool = false);
  11077. bool Load(VectorBuffer&, bool = false);
  11078. bool LoadJSON(const JSONValue&, bool = false);
  11079. bool LoadXML(const XMLElement&, bool = false);
  11080. void MarkNetworkUpdate() const;
  11081. void Play(Sound);
  11082. void Play(Sound, float);
  11083. void Play(Sound, float, float);
  11084. void Play(Sound, float, float, float);
  11085. void Remove();
  11086. void RemoveAttributeAnimation(const String&);
  11087. void RemoveInstanceDefault();
  11088. void RemoveObjectAnimation();
  11089. void ResetToDefault();
  11090. bool Save(File) const;
  11091. bool Save(VectorBuffer&) const;
  11092. bool SaveJSON(JSONValue&) const;
  11093. bool SaveXML(XMLElement&) const;
  11094. void Seek(float);
  11095. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11096. void SetAngleAttenuation(float, float);
  11097. void SetAnimationTime(float);
  11098. bool SetAttribute(const String&, const Variant&);
  11099. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11100. void SetAttributeAnimationSpeed(const String&, float);
  11101. void SetAttributeAnimationTime(const String&, float);
  11102. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11103. void SetDistanceAttenuation(float, float, float);
  11104. void SetInterceptNetworkUpdate(const String&, bool);
  11105. void Stop();
  11106. // Properties:
  11107. bool animationEnabled;
  11108. /* readonly */
  11109. float attenuation;
  11110. /* readonly */
  11111. Array<Variant> attributeDefaults;
  11112. /* readonly */
  11113. Array<AttributeInfo> attributeInfos;
  11114. Array<Variant> attributes;
  11115. AutoRemoveMode autoRemoveMode;
  11116. /* readonly */
  11117. String category;
  11118. bool enabled;
  11119. /* readonly */
  11120. bool enabledEffective;
  11121. float farDistance;
  11122. float frequency;
  11123. float gain;
  11124. /* readonly */
  11125. uint id;
  11126. float innerAngle;
  11127. float nearDistance;
  11128. /* readonly */
  11129. Node node;
  11130. /* readonly */
  11131. uint numAttributes;
  11132. ObjectAnimation objectAnimation;
  11133. float outerAngle;
  11134. float panning;
  11135. /* readonly */
  11136. bool playing;
  11137. /* readonly */
  11138. int refs;
  11139. float rolloffFactor;
  11140. /* readonly */
  11141. Sound sound;
  11142. String soundType;
  11143. bool temporary;
  11144. /* readonly */
  11145. float timePosition;
  11146. /* readonly */
  11147. StringHash type;
  11148. /* readonly */
  11149. String typeName;
  11150. /* readonly */
  11151. int weakRefs;
  11152. };
  11153. class Sphere
  11154. {
  11155. public:
  11156. Sphere();
  11157. Sphere(const Sphere&in);
  11158. Sphere(const Vector3&in, float);
  11159. Sphere(const BoundingBox&in);
  11160. Sphere(const Frustum&in);
  11161. Sphere(const Polyhedron&in);
  11162. // Methods:
  11163. void Clear();
  11164. void Define(const BoundingBox&);
  11165. void Define(const Frustum&);
  11166. void Define(const Polyhedron&);
  11167. void Define(const Sphere&);
  11168. void Define(const Vector3&, float);
  11169. bool Defined() const;
  11170. float Distance(const Vector3&) const;
  11171. Intersection IsInside(const BoundingBox&) const;
  11172. Intersection IsInside(const Sphere&) const;
  11173. Intersection IsInside(const Vector3&) const;
  11174. Intersection IsInsideFast(const BoundingBox&) const;
  11175. Intersection IsInsideFast(const Sphere&) const;
  11176. void Merge(const BoundingBox&);
  11177. void Merge(const Frustum&);
  11178. void Merge(const Sphere&);
  11179. void Merge(const Vector3&);
  11180. // Properties:
  11181. Vector3 center;
  11182. float radius;
  11183. };
  11184. class Spline
  11185. {
  11186. public:
  11187. Spline();
  11188. Spline(InterpolationMode);
  11189. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  11190. Spline(const Spline&in);
  11191. // Methods:
  11192. void AddKnot(const Variant&);
  11193. void AddKnot(const Variant&, uint);
  11194. void Clear();
  11195. Variant GetPoint(float);
  11196. void RemoveKnot();
  11197. void RemoveKnot(uint);
  11198. // Properties:
  11199. InterpolationMode interpolationMode;
  11200. Array<Variant> knot;
  11201. Array<Variant> knots;
  11202. };
  11203. class SplinePath
  11204. {
  11205. public:
  11206. // Methods:
  11207. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  11208. void ApplyAttributes();
  11209. void ClearControlPoints();
  11210. void DrawDebugGeometry(DebugRenderer, bool);
  11211. Variant GetAttribute(const String&) const;
  11212. ValueAnimation GetAttributeAnimation(const String&) const;
  11213. float GetAttributeAnimationSpeed(const String&) const;
  11214. float GetAttributeAnimationTime(const String&) const;
  11215. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11216. Variant GetAttributeDefault(const String&) const;
  11217. bool GetInterceptNetworkUpdate(const String&) const;
  11218. Vector3 GetPoint(float) const;
  11219. Vector3 GetPosition() const;
  11220. bool HasSubscribedToEvent(Object, const String&);
  11221. bool HasSubscribedToEvent(const String&);
  11222. bool Load(File, bool = false);
  11223. bool Load(VectorBuffer&, bool = false);
  11224. bool LoadJSON(const JSONValue&, bool = false);
  11225. bool LoadXML(const XMLElement&, bool = false);
  11226. void MarkNetworkUpdate() const;
  11227. void Move(float);
  11228. void Remove();
  11229. void RemoveAttributeAnimation(const String&);
  11230. void RemoveControlPoint(Node);
  11231. void RemoveInstanceDefault();
  11232. void RemoveObjectAnimation();
  11233. void Reset();
  11234. void ResetToDefault();
  11235. bool Save(File) const;
  11236. bool Save(VectorBuffer&) const;
  11237. bool SaveJSON(JSONValue&) const;
  11238. bool SaveXML(XMLElement&) const;
  11239. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11240. void SetAnimationTime(float);
  11241. bool SetAttribute(const String&, const Variant&);
  11242. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11243. void SetAttributeAnimationSpeed(const String&, float);
  11244. void SetAttributeAnimationTime(const String&, float);
  11245. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11246. void SetInterceptNetworkUpdate(const String&, bool);
  11247. void SetPosition(float);
  11248. // Properties:
  11249. bool animationEnabled;
  11250. /* readonly */
  11251. Array<Variant> attributeDefaults;
  11252. /* readonly */
  11253. Array<AttributeInfo> attributeInfos;
  11254. Array<Variant> attributes;
  11255. /* readonly */
  11256. String category;
  11257. Node controlledNode;
  11258. bool enabled;
  11259. /* readonly */
  11260. bool enabledEffective;
  11261. /* readonly */
  11262. uint id;
  11263. InterpolationMode interpolationMode;
  11264. /* readonly */
  11265. bool isFinished;
  11266. /* readonly */
  11267. float length;
  11268. /* readonly */
  11269. Node node;
  11270. /* readonly */
  11271. uint numAttributes;
  11272. ObjectAnimation objectAnimation;
  11273. /* readonly */
  11274. int refs;
  11275. float speed;
  11276. bool temporary;
  11277. /* readonly */
  11278. StringHash type;
  11279. /* readonly */
  11280. String typeName;
  11281. /* readonly */
  11282. int weakRefs;
  11283. };
  11284. class Sprite
  11285. {
  11286. public:
  11287. Sprite();
  11288. Sprite(const String&in);
  11289. // Methods:
  11290. void AddChild(UIElement);
  11291. void AddTag(const String&);
  11292. void AddTags(const String&, int8 = ';');
  11293. void ApplyAttributes();
  11294. void BringToFront();
  11295. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11296. void DisableLayoutUpdate();
  11297. IntVector2 ElementToScreen(const IntVector2&);
  11298. void EnableLayoutUpdate();
  11299. uint FindChild(UIElement) const;
  11300. Variant GetAttribute(const String&) const;
  11301. ValueAnimation GetAttributeAnimation(const String&) const;
  11302. float GetAttributeAnimationSpeed(const String&) const;
  11303. float GetAttributeAnimationTime(const String&) const;
  11304. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11305. Variant GetAttributeDefault(const String&) const;
  11306. UIElement GetChild(const String&, bool = false) const;
  11307. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11308. Array<UIElement> GetChildren(bool = false) const;
  11309. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11310. UIElement GetElementEventSender() const;
  11311. bool GetInterceptNetworkUpdate(const String&) const;
  11312. uint GetNumChildren(bool) const;
  11313. bool HasSubscribedToEvent(Object, const String&);
  11314. bool HasSubscribedToEvent(const String&);
  11315. bool HasTag(const String&) const;
  11316. void InsertChild(uint, UIElement);
  11317. bool IsInside(IntVector2, bool);
  11318. bool IsInsideCombined(IntVector2, bool);
  11319. bool Load(File, bool = false);
  11320. bool Load(VectorBuffer&, bool = false);
  11321. UIElement LoadChildXML(XMLFile, XMLFile = null);
  11322. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11323. bool LoadJSON(const JSONValue&, bool = false);
  11324. bool LoadXML(File);
  11325. bool LoadXML(VectorBuffer&);
  11326. bool LoadXML(XMLFile, XMLFile);
  11327. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11328. bool LoadXML(const XMLElement&, bool = false);
  11329. void MarkNetworkUpdate() const;
  11330. void Remove();
  11331. void RemoveAllChildren();
  11332. void RemoveAllTags();
  11333. void RemoveAttributeAnimation(const String&);
  11334. void RemoveChild(UIElement, uint = 0);
  11335. void RemoveChild(uint);
  11336. void RemoveInstanceDefault();
  11337. void RemoveObjectAnimation();
  11338. bool RemoveTag(const String&);
  11339. void ResetDeepEnabled();
  11340. void ResetToDefault();
  11341. bool Save(File) const;
  11342. bool Save(VectorBuffer&) const;
  11343. bool SaveJSON(JSONValue&) const;
  11344. bool SaveXML(File, const String& = "\t");
  11345. bool SaveXML(VectorBuffer&, const String& = "\t");
  11346. bool SaveXML(XMLElement&) const;
  11347. IntVector2 ScreenToElement(const IntVector2&);
  11348. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11349. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11350. void SetAnimationTime(float);
  11351. bool SetAttribute(const String&, const Variant&);
  11352. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11353. void SetAttributeAnimationSpeed(const String&, float);
  11354. void SetAttributeAnimationTime(const String&, float);
  11355. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11356. void SetDeepEnabled(bool);
  11357. void SetEnabledRecursive(bool);
  11358. void SetFixedHeight(int);
  11359. void SetFixedSize(int, int);
  11360. void SetFixedWidth(int);
  11361. void SetFullImageRect();
  11362. void SetHotSpot(int, int);
  11363. void SetInterceptNetworkUpdate(const String&, bool);
  11364. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11365. void SetMaxAnchor(float, float);
  11366. void SetMaxSize(int, int);
  11367. void SetMinAnchor(float, float);
  11368. void SetMinSize(int, int);
  11369. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11370. void SetPivot(float, float);
  11371. void SetPosition(float, float);
  11372. void SetScale(float);
  11373. void SetScale(float, float);
  11374. void SetSize(int, int);
  11375. bool SetStyle(const String&, XMLFile = null);
  11376. bool SetStyle(const XMLElement&);
  11377. bool SetStyleAuto(XMLFile = null);
  11378. void UpdateLayout();
  11379. const Variant& GetVar(const StringHash&);
  11380. // Properties:
  11381. bool animationEnabled;
  11382. /* readonly */
  11383. Array<Variant> attributeDefaults;
  11384. /* readonly */
  11385. Array<AttributeInfo> attributeInfos;
  11386. Array<Variant> attributes;
  11387. BlendMode blendMode;
  11388. bool bringToBack;
  11389. bool bringToFront;
  11390. /* readonly */
  11391. String category;
  11392. /* readonly */
  11393. IntVector2 childOffset;
  11394. /* readonly */
  11395. Array<UIElement> children;
  11396. IntRect clipBorder;
  11397. bool clipChildren;
  11398. /* writeonly */
  11399. Color color;
  11400. /* readonly */
  11401. bool colorGradient;
  11402. Array<Color> colors;
  11403. /* readonly */
  11404. IntRect combinedScreenRect;
  11405. XMLFile defaultStyle;
  11406. /* readonly */
  11407. float derivedOpacity;
  11408. /* readonly */
  11409. uint dragButtonCombo;
  11410. /* readonly */
  11411. int dragButtonCount;
  11412. uint dragDropMode;
  11413. bool editable;
  11414. bool elementEventSender;
  11415. bool enableAnchor;
  11416. bool enabled;
  11417. /* readonly */
  11418. bool enabledSelf;
  11419. /* readonly */
  11420. bool fixedHeight;
  11421. /* readonly */
  11422. bool fixedSize;
  11423. /* readonly */
  11424. bool fixedWidth;
  11425. bool focus;
  11426. FocusMode focusMode;
  11427. int height;
  11428. HorizontalAlignment horizontalAlignment;
  11429. IntVector2 hotSpot;
  11430. /* readonly */
  11431. bool hovering;
  11432. IntRect imageRect;
  11433. int indent;
  11434. int indentSpacing;
  11435. /* readonly */
  11436. int indentWidth;
  11437. bool internal;
  11438. IntRect layoutBorder;
  11439. Vector2 layoutFlexScale;
  11440. LayoutMode layoutMode;
  11441. int layoutSpacing;
  11442. Vector2 maxAnchor;
  11443. int maxHeight;
  11444. IntVector2 maxOffset;
  11445. IntVector2 maxSize;
  11446. int maxWidth;
  11447. Vector2 minAnchor;
  11448. int minHeight;
  11449. IntVector2 minOffset;
  11450. IntVector2 minSize;
  11451. int minWidth;
  11452. String name;
  11453. /* readonly */
  11454. uint numAllChildren;
  11455. /* readonly */
  11456. uint numAttributes;
  11457. /* readonly */
  11458. uint numChildren;
  11459. ObjectAnimation objectAnimation;
  11460. float opacity;
  11461. UIElement parent;
  11462. Vector2 pivot;
  11463. Vector2 position;
  11464. int priority;
  11465. /* readonly */
  11466. int refs;
  11467. /* readonly */
  11468. UIElement root;
  11469. float rotation;
  11470. Vector2 scale;
  11471. /* readonly */
  11472. IntVector2 screenPosition;
  11473. bool selected;
  11474. IntVector2 size;
  11475. bool sortChildren;
  11476. String style;
  11477. /* readonly */
  11478. Array<String> tags;
  11479. bool temporary;
  11480. Texture texture;
  11481. TraversalMode traversalMode;
  11482. /* readonly */
  11483. StringHash type;
  11484. /* readonly */
  11485. String typeName;
  11486. bool useDerivedOpacity;
  11487. /* readonly */
  11488. VariantMap vars;
  11489. VerticalAlignment verticalAlignment;
  11490. bool visible;
  11491. /* readonly */
  11492. bool visibleEffective;
  11493. /* readonly */
  11494. int weakRefs;
  11495. int width;
  11496. };
  11497. class Sprite2D
  11498. {
  11499. public:
  11500. Sprite2D();
  11501. Sprite2D(const String&in);
  11502. // Methods:
  11503. bool HasSubscribedToEvent(Object, const String&);
  11504. bool HasSubscribedToEvent(const String&);
  11505. bool Load(File);
  11506. bool Load(VectorBuffer&);
  11507. bool Load(const String&);
  11508. bool Save(File) const;
  11509. bool Save(VectorBuffer&) const;
  11510. bool Save(const String&) const;
  11511. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11512. // Properties:
  11513. /* readonly */
  11514. String category;
  11515. Vector2 hotSpot;
  11516. /* readonly */
  11517. uint memoryUse;
  11518. String name;
  11519. IntVector2 offset;
  11520. IntRect rectangle;
  11521. /* readonly */
  11522. int refs;
  11523. Texture2D texture;
  11524. float textureEdgeOffset;
  11525. /* readonly */
  11526. StringHash type;
  11527. /* readonly */
  11528. String typeName;
  11529. /* readonly */
  11530. uint useTimer;
  11531. /* readonly */
  11532. int weakRefs;
  11533. };
  11534. class SpriteSheet2D
  11535. {
  11536. public:
  11537. SpriteSheet2D();
  11538. SpriteSheet2D(const String&in);
  11539. // Methods:
  11540. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  11541. Sprite2D GetSprite(const String&);
  11542. bool HasSubscribedToEvent(Object, const String&);
  11543. bool HasSubscribedToEvent(const String&);
  11544. bool Load(File);
  11545. bool Load(VectorBuffer&);
  11546. bool Load(const String&);
  11547. bool Save(File) const;
  11548. bool Save(VectorBuffer&) const;
  11549. bool Save(const String&) const;
  11550. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11551. // Properties:
  11552. /* readonly */
  11553. String category;
  11554. /* readonly */
  11555. uint memoryUse;
  11556. String name;
  11557. /* readonly */
  11558. int refs;
  11559. Texture2D texture;
  11560. /* readonly */
  11561. StringHash type;
  11562. /* readonly */
  11563. String typeName;
  11564. /* readonly */
  11565. uint useTimer;
  11566. /* readonly */
  11567. int weakRefs;
  11568. };
  11569. class StaticModel
  11570. {
  11571. public:
  11572. // Methods:
  11573. void ApplyAttributes();
  11574. void ApplyMaterialList(const String& = String ( ));
  11575. void DrawDebugGeometry(DebugRenderer, bool);
  11576. Variant GetAttribute(const String&) const;
  11577. ValueAnimation GetAttributeAnimation(const String&) const;
  11578. float GetAttributeAnimationSpeed(const String&) const;
  11579. float GetAttributeAnimationTime(const String&) const;
  11580. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11581. Variant GetAttributeDefault(const String&) const;
  11582. bool GetInterceptNetworkUpdate(const String&) const;
  11583. bool HasSubscribedToEvent(Object, const String&);
  11584. bool HasSubscribedToEvent(const String&);
  11585. bool IsInView(Camera) const;
  11586. bool IsInside(const Vector3&) const;
  11587. bool IsInsideLocal(const Vector3&) const;
  11588. bool Load(File, bool = false);
  11589. bool Load(VectorBuffer&, bool = false);
  11590. bool LoadJSON(const JSONValue&, bool = false);
  11591. bool LoadXML(const XMLElement&, bool = false);
  11592. void MarkNetworkUpdate() const;
  11593. void Remove();
  11594. void RemoveAttributeAnimation(const String&);
  11595. void RemoveInstanceDefault();
  11596. void RemoveObjectAnimation();
  11597. void ResetToDefault();
  11598. bool Save(File) const;
  11599. bool Save(VectorBuffer&) const;
  11600. bool SaveJSON(JSONValue&) const;
  11601. bool SaveXML(XMLElement&) const;
  11602. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11603. void SetAnimationTime(float);
  11604. bool SetAttribute(const String&, const Variant&);
  11605. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11606. void SetAttributeAnimationSpeed(const String&, float);
  11607. void SetAttributeAnimationTime(const String&, float);
  11608. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11609. void SetInterceptNetworkUpdate(const String&, bool);
  11610. // Properties:
  11611. bool animationEnabled;
  11612. /* readonly */
  11613. Array<Variant> attributeDefaults;
  11614. /* readonly */
  11615. Array<AttributeInfo> attributeInfos;
  11616. Array<Variant> attributes;
  11617. /* readonly */
  11618. BoundingBox boundingBox;
  11619. bool castShadows;
  11620. /* readonly */
  11621. String category;
  11622. float drawDistance;
  11623. bool enabled;
  11624. /* readonly */
  11625. bool enabledEffective;
  11626. /* readonly */
  11627. uint id;
  11628. /* readonly */
  11629. bool inView;
  11630. uint lightMask;
  11631. float lodBias;
  11632. /* writeonly */
  11633. Material material;
  11634. Array<Material> materials;
  11635. uint maxLights;
  11636. Model model;
  11637. /* readonly */
  11638. Node node;
  11639. /* readonly */
  11640. uint numAttributes;
  11641. /* readonly */
  11642. uint numGeometries;
  11643. ObjectAnimation objectAnimation;
  11644. bool occludee;
  11645. bool occluder;
  11646. uint occlusionLodLevel;
  11647. /* readonly */
  11648. int refs;
  11649. float shadowDistance;
  11650. uint shadowMask;
  11651. bool temporary;
  11652. /* readonly */
  11653. StringHash type;
  11654. /* readonly */
  11655. String typeName;
  11656. uint viewMask;
  11657. /* readonly */
  11658. int weakRefs;
  11659. /* readonly */
  11660. BoundingBox worldBoundingBox;
  11661. uint zoneMask;
  11662. };
  11663. class StaticModelGroup
  11664. {
  11665. public:
  11666. // Methods:
  11667. void AddInstanceNode(Node);
  11668. void ApplyAttributes();
  11669. void ApplyMaterialList(const String& = String ( ));
  11670. void DrawDebugGeometry(DebugRenderer, bool);
  11671. Variant GetAttribute(const String&) const;
  11672. ValueAnimation GetAttributeAnimation(const String&) const;
  11673. float GetAttributeAnimationSpeed(const String&) const;
  11674. float GetAttributeAnimationTime(const String&) const;
  11675. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11676. Variant GetAttributeDefault(const String&) const;
  11677. bool GetInterceptNetworkUpdate(const String&) const;
  11678. bool HasSubscribedToEvent(Object, const String&);
  11679. bool HasSubscribedToEvent(const String&);
  11680. bool IsInView(Camera) const;
  11681. bool Load(File, bool = false);
  11682. bool Load(VectorBuffer&, bool = false);
  11683. bool LoadJSON(const JSONValue&, bool = false);
  11684. bool LoadXML(const XMLElement&, bool = false);
  11685. void MarkNetworkUpdate() const;
  11686. void Remove();
  11687. void RemoveAllInstanceNodes();
  11688. void RemoveAttributeAnimation(const String&);
  11689. void RemoveInstanceDefault();
  11690. void RemoveInstanceNode(Node);
  11691. void RemoveObjectAnimation();
  11692. void ResetToDefault();
  11693. bool Save(File) const;
  11694. bool Save(VectorBuffer&) const;
  11695. bool SaveJSON(JSONValue&) const;
  11696. bool SaveXML(XMLElement&) const;
  11697. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11698. void SetAnimationTime(float);
  11699. bool SetAttribute(const String&, const Variant&);
  11700. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11701. void SetAttributeAnimationSpeed(const String&, float);
  11702. void SetAttributeAnimationTime(const String&, float);
  11703. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11704. void SetInterceptNetworkUpdate(const String&, bool);
  11705. // Properties:
  11706. bool animationEnabled;
  11707. /* readonly */
  11708. Array<Variant> attributeDefaults;
  11709. /* readonly */
  11710. Array<AttributeInfo> attributeInfos;
  11711. Array<Variant> attributes;
  11712. /* readonly */
  11713. BoundingBox boundingBox;
  11714. bool castShadows;
  11715. /* readonly */
  11716. String category;
  11717. float drawDistance;
  11718. bool enabled;
  11719. /* readonly */
  11720. bool enabledEffective;
  11721. /* readonly */
  11722. uint id;
  11723. /* readonly */
  11724. bool inView;
  11725. /* readonly */
  11726. Array<Node> instanceNodes;
  11727. uint lightMask;
  11728. float lodBias;
  11729. /* writeonly */
  11730. Material material;
  11731. Array<Material> materials;
  11732. uint maxLights;
  11733. Model model;
  11734. /* readonly */
  11735. Node node;
  11736. /* readonly */
  11737. uint numAttributes;
  11738. /* readonly */
  11739. uint numGeometries;
  11740. /* readonly */
  11741. uint numInstanceNodes;
  11742. ObjectAnimation objectAnimation;
  11743. bool occludee;
  11744. bool occluder;
  11745. uint occlusionLodLevel;
  11746. /* readonly */
  11747. int refs;
  11748. float shadowDistance;
  11749. uint shadowMask;
  11750. bool temporary;
  11751. /* readonly */
  11752. StringHash type;
  11753. /* readonly */
  11754. String typeName;
  11755. uint viewMask;
  11756. /* readonly */
  11757. int weakRefs;
  11758. /* readonly */
  11759. BoundingBox worldBoundingBox;
  11760. /* readonly */
  11761. Zone zone;
  11762. uint zoneMask;
  11763. };
  11764. class StaticSprite2D
  11765. {
  11766. public:
  11767. // Methods:
  11768. void ApplyAttributes();
  11769. void DrawDebugGeometry(DebugRenderer, bool);
  11770. Variant GetAttribute(const String&) const;
  11771. ValueAnimation GetAttributeAnimation(const String&) const;
  11772. float GetAttributeAnimationSpeed(const String&) const;
  11773. float GetAttributeAnimationTime(const String&) const;
  11774. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11775. Variant GetAttributeDefault(const String&) const;
  11776. bool GetInterceptNetworkUpdate(const String&) const;
  11777. bool HasSubscribedToEvent(Object, const String&);
  11778. bool HasSubscribedToEvent(const String&);
  11779. bool IsInView(Camera) const;
  11780. bool Load(File, bool = false);
  11781. bool Load(VectorBuffer&, bool = false);
  11782. bool LoadJSON(const JSONValue&, bool = false);
  11783. bool LoadXML(const XMLElement&, bool = false);
  11784. void MarkNetworkUpdate() const;
  11785. void Remove();
  11786. void RemoveAttributeAnimation(const String&);
  11787. void RemoveInstanceDefault();
  11788. void RemoveObjectAnimation();
  11789. void ResetToDefault();
  11790. bool Save(File) const;
  11791. bool Save(VectorBuffer&) const;
  11792. bool SaveJSON(JSONValue&) const;
  11793. bool SaveXML(XMLElement&) const;
  11794. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11795. void SetAnimationTime(float);
  11796. bool SetAttribute(const String&, const Variant&);
  11797. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11798. void SetAttributeAnimationSpeed(const String&, float);
  11799. void SetAttributeAnimationTime(const String&, float);
  11800. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11801. void SetFlip(bool, bool);
  11802. void SetInterceptNetworkUpdate(const String&, bool);
  11803. // Properties:
  11804. float alpha;
  11805. bool animationEnabled;
  11806. /* readonly */
  11807. Array<Variant> attributeDefaults;
  11808. /* readonly */
  11809. Array<AttributeInfo> attributeInfos;
  11810. Array<Variant> attributes;
  11811. BlendMode blendMode;
  11812. /* readonly */
  11813. BoundingBox boundingBox;
  11814. bool castShadows;
  11815. /* readonly */
  11816. String category;
  11817. Color color;
  11818. Material customMaterial;
  11819. float drawDistance;
  11820. Rect drawRect;
  11821. bool enabled;
  11822. /* readonly */
  11823. bool enabledEffective;
  11824. bool flipX;
  11825. bool flipY;
  11826. Vector2 hotSpot;
  11827. /* readonly */
  11828. uint id;
  11829. /* readonly */
  11830. bool inView;
  11831. int layer;
  11832. uint lightMask;
  11833. float lodBias;
  11834. uint maxLights;
  11835. /* readonly */
  11836. Node node;
  11837. /* readonly */
  11838. uint numAttributes;
  11839. ObjectAnimation objectAnimation;
  11840. bool occludee;
  11841. bool occluder;
  11842. int orderInLayer;
  11843. /* readonly */
  11844. int refs;
  11845. float shadowDistance;
  11846. uint shadowMask;
  11847. Sprite2D sprite;
  11848. bool temporary;
  11849. Rect textureRect;
  11850. /* readonly */
  11851. StringHash type;
  11852. /* readonly */
  11853. String typeName;
  11854. bool useDrawRect;
  11855. bool useHotSpot;
  11856. bool useTextureRect;
  11857. uint viewMask;
  11858. /* readonly */
  11859. int weakRefs;
  11860. /* readonly */
  11861. BoundingBox worldBoundingBox;
  11862. uint zoneMask;
  11863. };
  11864. class String
  11865. {
  11866. public:
  11867. ~String();
  11868. String();
  11869. String(const String&in);
  11870. String(int);
  11871. String(uint);
  11872. String(float);
  11873. String(double);
  11874. String(bool);
  11875. String(const char*);
  11876. // Methods:
  11877. void AppendUTF8(uint);
  11878. uint AtUTF8(uint) const;
  11879. uint ByteOffsetUTF8(uint) const;
  11880. void Clear();
  11881. int Compare(const String&, bool = true) const;
  11882. bool Contains(const String&, bool = true) const;
  11883. bool Contains(uint8, bool = true) const;
  11884. bool EndsWith(const String&, bool = true) const;
  11885. uint Find(const String&, uint = 0, bool = true) const;
  11886. uint Find(uint8, uint = 0, bool = true) const;
  11887. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  11888. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  11889. void Join(Array<String>&, const String&);
  11890. uint NextUTF8Char(uint&) const;
  11891. void Replace(const String&, const String&, bool = true);
  11892. void Replace(uint8, uint8, bool = true);
  11893. void ReplaceUTF8(uint, uint);
  11894. String Replaced(const String&, const String&, bool = true) const;
  11895. String Replaced(uint8, uint8, bool = true) const;
  11896. void Resize(uint);
  11897. void SetUTF8FromLatin1(const String&);
  11898. Array<String> Split(uint8, bool = false) const;
  11899. bool StartsWith(const String&, bool = true) const;
  11900. String Substring(uint) const;
  11901. String Substring(uint, uint) const;
  11902. String SubstringUTF8(uint) const;
  11903. String SubstringUTF8(uint, uint) const;
  11904. bool ToBool() const;
  11905. Color ToColor() const;
  11906. double ToDouble() const;
  11907. float ToFloat() const;
  11908. int ToInt(int = 10) const;
  11909. int64 ToInt64(int = 10) const;
  11910. IntRect ToIntRect() const;
  11911. IntVector2 ToIntVector2() const;
  11912. IntVector3 ToIntVector3() const;
  11913. String ToLower() const;
  11914. Matrix3 ToMatrix3() const;
  11915. Matrix3x4 ToMatrix3x4() const;
  11916. Matrix4 ToMatrix4() const;
  11917. Quaternion ToQuaternion() const;
  11918. uint ToUInt(int = 10) const;
  11919. uint64 ToUInt64(int = 10) const;
  11920. String ToUpper() const;
  11921. Vector2 ToVector2() const;
  11922. Vector3 ToVector3() const;
  11923. Vector4 ToVector4(bool = false) const;
  11924. Variant ToVectorVariant() const;
  11925. String Trimmed() const;
  11926. // Properties:
  11927. /* readonly */
  11928. bool empty;
  11929. /* readonly */
  11930. uint length;
  11931. /* readonly */
  11932. uint utf8Length;
  11933. };
  11934. class StringHash
  11935. {
  11936. public:
  11937. StringHash();
  11938. StringHash(const StringHash&in);
  11939. StringHash(const String&in);
  11940. StringHash(uint);
  11941. // Methods:
  11942. String ToString() const;
  11943. // Properties:
  11944. /* readonly */
  11945. uint value;
  11946. };
  11947. class Technique
  11948. {
  11949. public:
  11950. Technique();
  11951. Technique(const String&in);
  11952. // Methods:
  11953. Technique Clone(const String& = String ( )) const;
  11954. Pass CreatePass(const String&);
  11955. Pass GetPass(const String&);
  11956. Pass GetSupportedPass(const String&);
  11957. bool HasPass(const String&) const;
  11958. bool HasSubscribedToEvent(Object, const String&);
  11959. bool HasSubscribedToEvent(const String&);
  11960. bool Load(File);
  11961. bool Load(VectorBuffer&);
  11962. bool Load(const String&);
  11963. void RemovePass(const String&);
  11964. bool Save(File) const;
  11965. bool Save(VectorBuffer&) const;
  11966. bool Save(const String&) const;
  11967. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11968. // Properties:
  11969. /* readonly */
  11970. String category;
  11971. bool desktop;
  11972. /* readonly */
  11973. uint memoryUse;
  11974. String name;
  11975. /* readonly */
  11976. uint numPasses;
  11977. /* readonly */
  11978. Array<String> passNames;
  11979. /* readonly */
  11980. Array<Pass> passes;
  11981. /* readonly */
  11982. int refs;
  11983. /* readonly */
  11984. bool supported;
  11985. /* readonly */
  11986. StringHash type;
  11987. /* readonly */
  11988. String typeName;
  11989. /* readonly */
  11990. uint useTimer;
  11991. /* readonly */
  11992. int weakRefs;
  11993. };
  11994. class TechniqueEntry
  11995. {
  11996. public:
  11997. ~TechniqueEntry();
  11998. TechniqueEntry();
  11999. TechniqueEntry(const TechniqueEntry&in);
  12000. // Properties:
  12001. float lodDistance;
  12002. int qualityLevel;
  12003. Technique technique;
  12004. };
  12005. class Terrain
  12006. {
  12007. public:
  12008. // Methods:
  12009. void ApplyAttributes();
  12010. void ApplyHeightMap();
  12011. void DrawDebugGeometry(DebugRenderer, bool);
  12012. Variant GetAttribute(const String&) const;
  12013. ValueAnimation GetAttributeAnimation(const String&) const;
  12014. float GetAttributeAnimationSpeed(const String&) const;
  12015. float GetAttributeAnimationTime(const String&) const;
  12016. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12017. Variant GetAttributeDefault(const String&) const;
  12018. float GetHeight(const Vector3&) const;
  12019. bool GetInterceptNetworkUpdate(const String&) const;
  12020. TerrainPatch GetNeighborPatch(int, int) const;
  12021. Vector3 GetNormal(const Vector3&) const;
  12022. TerrainPatch GetPatch(int, int) const;
  12023. bool HasSubscribedToEvent(Object, const String&);
  12024. bool HasSubscribedToEvent(const String&);
  12025. bool Load(File, bool = false);
  12026. bool Load(VectorBuffer&, bool = false);
  12027. bool LoadJSON(const JSONValue&, bool = false);
  12028. bool LoadXML(const XMLElement&, bool = false);
  12029. void MarkNetworkUpdate() const;
  12030. void Remove();
  12031. void RemoveAttributeAnimation(const String&);
  12032. void RemoveInstanceDefault();
  12033. void RemoveObjectAnimation();
  12034. void ResetToDefault();
  12035. bool Save(File) const;
  12036. bool Save(VectorBuffer&) const;
  12037. bool SaveJSON(JSONValue&) const;
  12038. bool SaveXML(XMLElement&) const;
  12039. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12040. void SetAnimationTime(float);
  12041. bool SetAttribute(const String&, const Variant&);
  12042. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12043. void SetAttributeAnimationSpeed(const String&, float);
  12044. void SetAttributeAnimationTime(const String&, float);
  12045. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12046. void SetInterceptNetworkUpdate(const String&, bool);
  12047. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  12048. IntVector2 WorldToHeightMap(const Vector3&) const;
  12049. // Properties:
  12050. bool animationEnabled;
  12051. /* readonly */
  12052. Array<Variant> attributeDefaults;
  12053. /* readonly */
  12054. Array<AttributeInfo> attributeInfos;
  12055. Array<Variant> attributes;
  12056. bool castShadows;
  12057. /* readonly */
  12058. String category;
  12059. float drawDistance;
  12060. Terrain eastNeighbor;
  12061. bool enabled;
  12062. /* readonly */
  12063. bool enabledEffective;
  12064. Image heightMap;
  12065. /* readonly */
  12066. uint id;
  12067. uint lightMask;
  12068. float lodBias;
  12069. Material material;
  12070. uint maxLights;
  12071. uint maxLodLevels;
  12072. /* readonly */
  12073. Node node;
  12074. Terrain northNeighbor;
  12075. /* readonly */
  12076. uint numAttributes;
  12077. /* readonly */
  12078. IntVector2 numPatches;
  12079. /* readonly */
  12080. IntVector2 numVertices;
  12081. ObjectAnimation objectAnimation;
  12082. bool occludee;
  12083. bool occluder;
  12084. uint occlusionLodLevel;
  12085. int patchSize;
  12086. /* readonly */
  12087. Array<TerrainPatch> patches;
  12088. /* readonly */
  12089. int refs;
  12090. float shadowDistance;
  12091. uint shadowMask;
  12092. bool smoothing;
  12093. Terrain southNeighbor;
  12094. Vector3 spacing;
  12095. bool temporary;
  12096. /* readonly */
  12097. StringHash type;
  12098. /* readonly */
  12099. String typeName;
  12100. uint viewMask;
  12101. /* readonly */
  12102. int weakRefs;
  12103. Terrain westNeighbor;
  12104. uint zoneMask;
  12105. };
  12106. class TerrainPatch
  12107. {
  12108. public:
  12109. // Methods:
  12110. void ApplyAttributes();
  12111. void DrawDebugGeometry(DebugRenderer, bool);
  12112. Variant GetAttribute(const String&) const;
  12113. ValueAnimation GetAttributeAnimation(const String&) const;
  12114. float GetAttributeAnimationSpeed(const String&) const;
  12115. float GetAttributeAnimationTime(const String&) const;
  12116. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12117. Variant GetAttributeDefault(const String&) const;
  12118. bool GetInterceptNetworkUpdate(const String&) const;
  12119. bool HasSubscribedToEvent(Object, const String&);
  12120. bool HasSubscribedToEvent(const String&);
  12121. bool IsInView(Camera) const;
  12122. bool Load(File, bool = false);
  12123. bool Load(VectorBuffer&, bool = false);
  12124. bool LoadJSON(const JSONValue&, bool = false);
  12125. bool LoadXML(const XMLElement&, bool = false);
  12126. void MarkNetworkUpdate() const;
  12127. void Remove();
  12128. void RemoveAttributeAnimation(const String&);
  12129. void RemoveInstanceDefault();
  12130. void RemoveObjectAnimation();
  12131. void ResetToDefault();
  12132. bool Save(File) const;
  12133. bool Save(VectorBuffer&) const;
  12134. bool SaveJSON(JSONValue&) const;
  12135. bool SaveXML(XMLElement&) const;
  12136. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12137. void SetAnimationTime(float);
  12138. bool SetAttribute(const String&, const Variant&);
  12139. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12140. void SetAttributeAnimationSpeed(const String&, float);
  12141. void SetAttributeAnimationTime(const String&, float);
  12142. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12143. void SetInterceptNetworkUpdate(const String&, bool);
  12144. // Properties:
  12145. bool animationEnabled;
  12146. /* readonly */
  12147. Array<Variant> attributeDefaults;
  12148. /* readonly */
  12149. Array<AttributeInfo> attributeInfos;
  12150. Array<Variant> attributes;
  12151. /* readonly */
  12152. BoundingBox boundingBox;
  12153. bool castShadows;
  12154. /* readonly */
  12155. String category;
  12156. float drawDistance;
  12157. bool enabled;
  12158. /* readonly */
  12159. bool enabledEffective;
  12160. /* readonly */
  12161. uint id;
  12162. /* readonly */
  12163. bool inView;
  12164. uint lightMask;
  12165. float lodBias;
  12166. uint maxLights;
  12167. /* readonly */
  12168. Node node;
  12169. /* readonly */
  12170. uint numAttributes;
  12171. ObjectAnimation objectAnimation;
  12172. bool occludee;
  12173. bool occluder;
  12174. /* readonly */
  12175. int refs;
  12176. float shadowDistance;
  12177. uint shadowMask;
  12178. bool temporary;
  12179. /* readonly */
  12180. StringHash type;
  12181. /* readonly */
  12182. String typeName;
  12183. uint viewMask;
  12184. /* readonly */
  12185. int weakRefs;
  12186. /* readonly */
  12187. BoundingBox worldBoundingBox;
  12188. uint zoneMask;
  12189. };
  12190. class Text
  12191. {
  12192. public:
  12193. Text();
  12194. Text(const String&in);
  12195. // Methods:
  12196. void AddChild(UIElement);
  12197. void AddTag(const String&);
  12198. void AddTags(const String&, int8 = ';');
  12199. void ApplyAttributes();
  12200. void BringToFront();
  12201. void ClearSelection();
  12202. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12203. void DisableLayoutUpdate();
  12204. IntVector2 ElementToScreen(const IntVector2&);
  12205. void EnableLayoutUpdate();
  12206. uint FindChild(UIElement) const;
  12207. Variant GetAttribute(const String&) const;
  12208. ValueAnimation GetAttributeAnimation(const String&) const;
  12209. float GetAttributeAnimationSpeed(const String&) const;
  12210. float GetAttributeAnimationTime(const String&) const;
  12211. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12212. Variant GetAttributeDefault(const String&) const;
  12213. UIElement GetChild(const String&, bool = false) const;
  12214. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12215. Array<UIElement> GetChildren(bool = false) const;
  12216. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12217. UIElement GetElementEventSender() const;
  12218. bool GetInterceptNetworkUpdate(const String&) const;
  12219. uint GetNumChildren(bool) const;
  12220. bool HasSubscribedToEvent(Object, const String&);
  12221. bool HasSubscribedToEvent(const String&);
  12222. bool HasTag(const String&) const;
  12223. void InsertChild(uint, UIElement);
  12224. bool IsInside(IntVector2, bool);
  12225. bool IsInsideCombined(IntVector2, bool);
  12226. bool Load(File, bool = false);
  12227. bool Load(VectorBuffer&, bool = false);
  12228. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12229. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12230. bool LoadJSON(const JSONValue&, bool = false);
  12231. bool LoadXML(File);
  12232. bool LoadXML(VectorBuffer&);
  12233. bool LoadXML(XMLFile, XMLFile);
  12234. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12235. bool LoadXML(const XMLElement&, bool = false);
  12236. void MarkNetworkUpdate() const;
  12237. void Remove();
  12238. void RemoveAllChildren();
  12239. void RemoveAllTags();
  12240. void RemoveAttributeAnimation(const String&);
  12241. void RemoveChild(UIElement, uint = 0);
  12242. void RemoveChild(uint);
  12243. void RemoveInstanceDefault();
  12244. void RemoveObjectAnimation();
  12245. bool RemoveTag(const String&);
  12246. void ResetDeepEnabled();
  12247. void ResetToDefault();
  12248. bool Save(File) const;
  12249. bool Save(VectorBuffer&) const;
  12250. bool SaveJSON(JSONValue&) const;
  12251. bool SaveXML(File, const String& = "\t");
  12252. bool SaveXML(VectorBuffer&, const String& = "\t");
  12253. bool SaveXML(XMLElement&) const;
  12254. IntVector2 ScreenToElement(const IntVector2&);
  12255. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12256. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12257. void SetAnimationTime(float);
  12258. bool SetAttribute(const String&, const Variant&);
  12259. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12260. void SetAttributeAnimationSpeed(const String&, float);
  12261. void SetAttributeAnimationTime(const String&, float);
  12262. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12263. void SetDeepEnabled(bool);
  12264. void SetEnabledRecursive(bool);
  12265. void SetFixedHeight(int);
  12266. void SetFixedSize(int, int);
  12267. void SetFixedWidth(int);
  12268. bool SetFont(Font, int);
  12269. bool SetFont(const String&, int);
  12270. void SetInterceptNetworkUpdate(const String&, bool);
  12271. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12272. void SetMaxAnchor(float, float);
  12273. void SetMaxSize(int, int);
  12274. void SetMinAnchor(float, float);
  12275. void SetMinSize(int, int);
  12276. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12277. void SetPivot(float, float);
  12278. void SetPosition(int, int);
  12279. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  12280. void SetSize(int, int);
  12281. bool SetStyle(const String&, XMLFile = null);
  12282. bool SetStyle(const XMLElement&);
  12283. bool SetStyleAuto(XMLFile = null);
  12284. void UpdateLayout();
  12285. const Variant& GetVar(const StringHash&);
  12286. // Properties:
  12287. bool animationEnabled;
  12288. /* readonly */
  12289. Array<Variant> attributeDefaults;
  12290. /* readonly */
  12291. Array<AttributeInfo> attributeInfos;
  12292. Array<Variant> attributes;
  12293. bool autoLocalizable;
  12294. bool bringToBack;
  12295. bool bringToFront;
  12296. /* readonly */
  12297. String category;
  12298. /* readonly */
  12299. Array<IntVector2> charPositions;
  12300. /* readonly */
  12301. Array<IntVector2> charSizes;
  12302. /* readonly */
  12303. IntVector2 childOffset;
  12304. /* readonly */
  12305. Array<UIElement> children;
  12306. IntRect clipBorder;
  12307. bool clipChildren;
  12308. /* writeonly */
  12309. Color color;
  12310. /* readonly */
  12311. bool colorGradient;
  12312. Array<Color> colors;
  12313. /* readonly */
  12314. IntRect combinedScreenRect;
  12315. XMLFile defaultStyle;
  12316. /* readonly */
  12317. float derivedOpacity;
  12318. /* readonly */
  12319. uint dragButtonCombo;
  12320. /* readonly */
  12321. int dragButtonCount;
  12322. uint dragDropMode;
  12323. bool editable;
  12324. Color effectColor;
  12325. bool effectRoundStroke;
  12326. IntVector2 effectShadowOffset;
  12327. int effectStrokeThickness;
  12328. bool elementEventSender;
  12329. bool enableAnchor;
  12330. bool enabled;
  12331. /* readonly */
  12332. bool enabledSelf;
  12333. /* readonly */
  12334. bool fixedHeight;
  12335. /* readonly */
  12336. bool fixedSize;
  12337. /* readonly */
  12338. bool fixedWidth;
  12339. bool focus;
  12340. FocusMode focusMode;
  12341. /* readonly */
  12342. Font font;
  12343. int fontSize;
  12344. int height;
  12345. HorizontalAlignment horizontalAlignment;
  12346. Color hoverColor;
  12347. /* readonly */
  12348. bool hovering;
  12349. int indent;
  12350. int indentSpacing;
  12351. /* readonly */
  12352. int indentWidth;
  12353. bool internal;
  12354. IntRect layoutBorder;
  12355. Vector2 layoutFlexScale;
  12356. LayoutMode layoutMode;
  12357. int layoutSpacing;
  12358. Vector2 maxAnchor;
  12359. int maxHeight;
  12360. IntVector2 maxOffset;
  12361. IntVector2 maxSize;
  12362. int maxWidth;
  12363. Vector2 minAnchor;
  12364. int minHeight;
  12365. IntVector2 minOffset;
  12366. IntVector2 minSize;
  12367. int minWidth;
  12368. String name;
  12369. /* readonly */
  12370. uint numAllChildren;
  12371. /* readonly */
  12372. uint numAttributes;
  12373. /* readonly */
  12374. uint numChars;
  12375. /* readonly */
  12376. uint numChildren;
  12377. /* readonly */
  12378. uint numRows;
  12379. ObjectAnimation objectAnimation;
  12380. float opacity;
  12381. UIElement parent;
  12382. Vector2 pivot;
  12383. IntVector2 position;
  12384. int priority;
  12385. /* readonly */
  12386. int refs;
  12387. /* readonly */
  12388. UIElement root;
  12389. /* readonly */
  12390. int rowHeight;
  12391. float rowSpacing;
  12392. /* readonly */
  12393. Array<int> rowWidths;
  12394. /* readonly */
  12395. IntVector2 screenPosition;
  12396. bool selected;
  12397. Color selectionColor;
  12398. /* readonly */
  12399. uint selectionLength;
  12400. /* readonly */
  12401. uint selectionStart;
  12402. IntVector2 size;
  12403. bool sortChildren;
  12404. String style;
  12405. /* readonly */
  12406. Array<String> tags;
  12407. bool temporary;
  12408. String text;
  12409. HorizontalAlignment textAlignment;
  12410. TextEffect textEffect;
  12411. TraversalMode traversalMode;
  12412. /* readonly */
  12413. StringHash type;
  12414. /* readonly */
  12415. String typeName;
  12416. bool useDerivedOpacity;
  12417. /* readonly */
  12418. VariantMap vars;
  12419. VerticalAlignment verticalAlignment;
  12420. bool visible;
  12421. /* readonly */
  12422. bool visibleEffective;
  12423. /* readonly */
  12424. int weakRefs;
  12425. int width;
  12426. bool wordwrap;
  12427. };
  12428. class Text3D
  12429. {
  12430. public:
  12431. // Methods:
  12432. void ApplyAttributes();
  12433. void DrawDebugGeometry(DebugRenderer, bool);
  12434. Variant GetAttribute(const String&) const;
  12435. ValueAnimation GetAttributeAnimation(const String&) const;
  12436. float GetAttributeAnimationSpeed(const String&) const;
  12437. float GetAttributeAnimationTime(const String&) const;
  12438. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12439. Variant GetAttributeDefault(const String&) const;
  12440. bool GetInterceptNetworkUpdate(const String&) const;
  12441. bool HasSubscribedToEvent(Object, const String&);
  12442. bool HasSubscribedToEvent(const String&);
  12443. bool IsInView(Camera) const;
  12444. bool Load(File, bool = false);
  12445. bool Load(VectorBuffer&, bool = false);
  12446. bool LoadJSON(const JSONValue&, bool = false);
  12447. bool LoadXML(const XMLElement&, bool = false);
  12448. void MarkNetworkUpdate() const;
  12449. void Remove();
  12450. void RemoveAttributeAnimation(const String&);
  12451. void RemoveInstanceDefault();
  12452. void RemoveObjectAnimation();
  12453. void ResetToDefault();
  12454. bool Save(File) const;
  12455. bool Save(VectorBuffer&) const;
  12456. bool SaveJSON(JSONValue&) const;
  12457. bool SaveXML(XMLElement&) const;
  12458. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12459. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12460. void SetAnimationTime(float);
  12461. bool SetAttribute(const String&, const Variant&);
  12462. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12463. void SetAttributeAnimationSpeed(const String&, float);
  12464. void SetAttributeAnimationTime(const String&, float);
  12465. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12466. bool SetFont(Font, int);
  12467. bool SetFont(const String&, int);
  12468. void SetInterceptNetworkUpdate(const String&, bool);
  12469. // Properties:
  12470. bool animationEnabled;
  12471. /* readonly */
  12472. Array<Variant> attributeDefaults;
  12473. /* readonly */
  12474. Array<AttributeInfo> attributeInfos;
  12475. Array<Variant> attributes;
  12476. /* readonly */
  12477. BoundingBox boundingBox;
  12478. bool castShadows;
  12479. /* readonly */
  12480. String category;
  12481. /* readonly */
  12482. Array<IntVector2> charPositions;
  12483. /* readonly */
  12484. Array<IntVector2> charSizes;
  12485. /* writeonly */
  12486. Color color;
  12487. Array<Color> colors;
  12488. float drawDistance;
  12489. Color effectColor;
  12490. float effectDepthBias;
  12491. bool effectRoundStroke;
  12492. IntVector2 effectShadowOffset;
  12493. int effectStrokeThickness;
  12494. bool enabled;
  12495. /* readonly */
  12496. bool enabledEffective;
  12497. FaceCameraMode faceCameraMode;
  12498. bool fixedScreenSize;
  12499. /* readonly */
  12500. Font font;
  12501. int fontSize;
  12502. /* readonly */
  12503. int height;
  12504. HorizontalAlignment horizontalAlignment;
  12505. /* readonly */
  12506. uint id;
  12507. /* readonly */
  12508. bool inView;
  12509. uint lightMask;
  12510. float lodBias;
  12511. Material material;
  12512. uint maxLights;
  12513. /* readonly */
  12514. Node node;
  12515. /* readonly */
  12516. uint numAttributes;
  12517. /* readonly */
  12518. uint numChars;
  12519. /* readonly */
  12520. uint numRows;
  12521. ObjectAnimation objectAnimation;
  12522. bool occludee;
  12523. bool occluder;
  12524. float opacity;
  12525. /* readonly */
  12526. int refs;
  12527. /* readonly */
  12528. int rowHeight;
  12529. float rowSpacing;
  12530. /* readonly */
  12531. Array<int> rowWidths;
  12532. float shadowDistance;
  12533. uint shadowMask;
  12534. bool temporary;
  12535. String text;
  12536. HorizontalAlignment textAlignment;
  12537. TextEffect textEffect;
  12538. /* readonly */
  12539. StringHash type;
  12540. /* readonly */
  12541. String typeName;
  12542. VerticalAlignment verticalAlignment;
  12543. uint viewMask;
  12544. /* readonly */
  12545. int weakRefs;
  12546. int width;
  12547. bool wordwrap;
  12548. /* readonly */
  12549. BoundingBox worldBoundingBox;
  12550. uint zoneMask;
  12551. };
  12552. class Texture
  12553. {
  12554. public:
  12555. Texture();
  12556. Texture(const String&in);
  12557. // Methods:
  12558. void ClearDataLost();
  12559. bool HasSubscribedToEvent(Object, const String&);
  12560. bool HasSubscribedToEvent(const String&);
  12561. bool Load(File);
  12562. bool Load(VectorBuffer&);
  12563. bool Load(const String&);
  12564. bool Save(File) const;
  12565. bool Save(VectorBuffer&) const;
  12566. bool Save(const String&) const;
  12567. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12568. void SetNumLevels(uint);
  12569. // Properties:
  12570. Array<TextureAddressMode> addressMode;
  12571. uint anisotropy;
  12572. /* readonly */
  12573. bool autoResolve;
  12574. Texture backupTexture;
  12575. Color borderColor;
  12576. /* readonly */
  12577. String category;
  12578. /* readonly */
  12579. uint components;
  12580. /* readonly */
  12581. bool compressed;
  12582. /* readonly */
  12583. bool dataLost;
  12584. TextureFilterMode filterMode;
  12585. /* readonly */
  12586. uint format;
  12587. /* readonly */
  12588. int height;
  12589. /* readonly */
  12590. Array<int> levelHeight;
  12591. /* readonly */
  12592. Array<int> levelWidth;
  12593. /* readonly */
  12594. uint levels;
  12595. /* readonly */
  12596. bool levelsDirty;
  12597. /* readonly */
  12598. uint memoryUse;
  12599. Array<int> mipsToSkip;
  12600. /* readonly */
  12601. int multiSample;
  12602. String name;
  12603. /* readonly */
  12604. int refs;
  12605. /* readonly */
  12606. bool resolveDirty;
  12607. bool sRGB;
  12608. /* readonly */
  12609. StringHash type;
  12610. /* readonly */
  12611. String typeName;
  12612. /* readonly */
  12613. TextureUsage usage;
  12614. /* readonly */
  12615. uint useTimer;
  12616. /* readonly */
  12617. int weakRefs;
  12618. /* readonly */
  12619. int width;
  12620. };
  12621. class Texture2D
  12622. {
  12623. public:
  12624. Texture2D();
  12625. Texture2D(const String&in);
  12626. // Methods:
  12627. void ClearDataLost();
  12628. Image GetImage() const;
  12629. bool HasSubscribedToEvent(Object, const String&);
  12630. bool HasSubscribedToEvent(const String&);
  12631. bool Load(File);
  12632. bool Load(VectorBuffer&);
  12633. bool Load(const String&);
  12634. bool Save(File) const;
  12635. bool Save(VectorBuffer&) const;
  12636. bool Save(const String&) const;
  12637. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12638. bool SetData(Image, bool = false);
  12639. void SetNumLevels(uint);
  12640. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  12641. // Properties:
  12642. Array<TextureAddressMode> addressMode;
  12643. uint anisotropy;
  12644. /* readonly */
  12645. bool autoResolve;
  12646. Texture backupTexture;
  12647. Color borderColor;
  12648. /* readonly */
  12649. String category;
  12650. /* readonly */
  12651. uint components;
  12652. /* readonly */
  12653. bool compressed;
  12654. /* readonly */
  12655. bool dataLost;
  12656. TextureFilterMode filterMode;
  12657. /* readonly */
  12658. uint format;
  12659. /* readonly */
  12660. int height;
  12661. /* readonly */
  12662. Array<int> levelHeight;
  12663. /* readonly */
  12664. Array<int> levelWidth;
  12665. /* readonly */
  12666. uint levels;
  12667. /* readonly */
  12668. bool levelsDirty;
  12669. /* readonly */
  12670. uint memoryUse;
  12671. Array<int> mipsToSkip;
  12672. /* readonly */
  12673. int multiSample;
  12674. String name;
  12675. /* readonly */
  12676. int refs;
  12677. /* readonly */
  12678. RenderSurface renderSurface;
  12679. /* readonly */
  12680. bool resolveDirty;
  12681. bool sRGB;
  12682. /* readonly */
  12683. StringHash type;
  12684. /* readonly */
  12685. String typeName;
  12686. /* readonly */
  12687. TextureUsage usage;
  12688. /* readonly */
  12689. uint useTimer;
  12690. /* readonly */
  12691. int weakRefs;
  12692. /* readonly */
  12693. int width;
  12694. };
  12695. class Texture2DArray
  12696. {
  12697. public:
  12698. Texture2DArray();
  12699. Texture2DArray(const String&in);
  12700. // Methods:
  12701. void ClearDataLost();
  12702. bool HasSubscribedToEvent(Object, const String&);
  12703. bool HasSubscribedToEvent(const String&);
  12704. bool Load(File);
  12705. bool Load(VectorBuffer&);
  12706. bool Load(const String&);
  12707. bool Save(File) const;
  12708. bool Save(VectorBuffer&) const;
  12709. bool Save(const String&) const;
  12710. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12711. bool SetData(uint, Image, bool = false);
  12712. void SetNumLevels(uint);
  12713. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12714. // Properties:
  12715. Array<TextureAddressMode> addressMode;
  12716. uint anisotropy;
  12717. /* readonly */
  12718. bool autoResolve;
  12719. Texture backupTexture;
  12720. Color borderColor;
  12721. /* readonly */
  12722. String category;
  12723. /* readonly */
  12724. uint components;
  12725. /* readonly */
  12726. bool compressed;
  12727. /* readonly */
  12728. bool dataLost;
  12729. TextureFilterMode filterMode;
  12730. /* readonly */
  12731. uint format;
  12732. /* readonly */
  12733. int height;
  12734. uint layers;
  12735. /* readonly */
  12736. Array<int> levelHeight;
  12737. /* readonly */
  12738. Array<int> levelWidth;
  12739. /* readonly */
  12740. uint levels;
  12741. /* readonly */
  12742. bool levelsDirty;
  12743. /* readonly */
  12744. uint memoryUse;
  12745. Array<int> mipsToSkip;
  12746. /* readonly */
  12747. int multiSample;
  12748. String name;
  12749. /* readonly */
  12750. int refs;
  12751. /* readonly */
  12752. RenderSurface renderSurface;
  12753. /* readonly */
  12754. bool resolveDirty;
  12755. bool sRGB;
  12756. /* readonly */
  12757. StringHash type;
  12758. /* readonly */
  12759. String typeName;
  12760. /* readonly */
  12761. TextureUsage usage;
  12762. /* readonly */
  12763. uint useTimer;
  12764. /* readonly */
  12765. int weakRefs;
  12766. /* readonly */
  12767. int width;
  12768. };
  12769. class Texture3D
  12770. {
  12771. public:
  12772. Texture3D();
  12773. Texture3D(const String&in);
  12774. // Methods:
  12775. void ClearDataLost();
  12776. bool HasSubscribedToEvent(Object, const String&);
  12777. bool HasSubscribedToEvent(const String&);
  12778. bool Load(File);
  12779. bool Load(VectorBuffer&);
  12780. bool Load(const String&);
  12781. bool Save(File) const;
  12782. bool Save(VectorBuffer&) const;
  12783. bool Save(const String&) const;
  12784. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12785. bool SetData(Image, bool = false);
  12786. void SetNumLevels(uint);
  12787. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12788. // Properties:
  12789. Array<TextureAddressMode> addressMode;
  12790. uint anisotropy;
  12791. /* readonly */
  12792. bool autoResolve;
  12793. Texture backupTexture;
  12794. Color borderColor;
  12795. /* readonly */
  12796. String category;
  12797. /* readonly */
  12798. uint components;
  12799. /* readonly */
  12800. bool compressed;
  12801. /* readonly */
  12802. bool dataLost;
  12803. TextureFilterMode filterMode;
  12804. /* readonly */
  12805. uint format;
  12806. /* readonly */
  12807. int height;
  12808. /* readonly */
  12809. Array<int> levelHeight;
  12810. /* readonly */
  12811. Array<int> levelWidth;
  12812. /* readonly */
  12813. uint levels;
  12814. /* readonly */
  12815. bool levelsDirty;
  12816. /* readonly */
  12817. uint memoryUse;
  12818. Array<int> mipsToSkip;
  12819. /* readonly */
  12820. int multiSample;
  12821. String name;
  12822. /* readonly */
  12823. int refs;
  12824. /* readonly */
  12825. bool resolveDirty;
  12826. bool sRGB;
  12827. /* readonly */
  12828. StringHash type;
  12829. /* readonly */
  12830. String typeName;
  12831. /* readonly */
  12832. TextureUsage usage;
  12833. /* readonly */
  12834. uint useTimer;
  12835. /* readonly */
  12836. int weakRefs;
  12837. /* readonly */
  12838. int width;
  12839. };
  12840. class TextureCube
  12841. {
  12842. public:
  12843. TextureCube();
  12844. TextureCube(const String&in);
  12845. // Methods:
  12846. void ClearDataLost();
  12847. Image GetImage(CubeMapFace) const;
  12848. bool HasSubscribedToEvent(Object, const String&);
  12849. bool HasSubscribedToEvent(const String&);
  12850. bool Load(File);
  12851. bool Load(VectorBuffer&);
  12852. bool Load(const String&);
  12853. bool Save(File) const;
  12854. bool Save(VectorBuffer&) const;
  12855. bool Save(const String&) const;
  12856. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12857. bool SetData(CubeMapFace, Image, bool = false);
  12858. void SetNumLevels(uint);
  12859. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  12860. // Properties:
  12861. Array<TextureAddressMode> addressMode;
  12862. uint anisotropy;
  12863. /* readonly */
  12864. bool autoResolve;
  12865. Texture backupTexture;
  12866. Color borderColor;
  12867. /* readonly */
  12868. String category;
  12869. /* readonly */
  12870. uint components;
  12871. /* readonly */
  12872. bool compressed;
  12873. /* readonly */
  12874. bool dataLost;
  12875. TextureFilterMode filterMode;
  12876. /* readonly */
  12877. uint format;
  12878. /* readonly */
  12879. int height;
  12880. /* readonly */
  12881. Array<int> levelHeight;
  12882. /* readonly */
  12883. Array<int> levelWidth;
  12884. /* readonly */
  12885. uint levels;
  12886. /* readonly */
  12887. bool levelsDirty;
  12888. /* readonly */
  12889. uint memoryUse;
  12890. Array<int> mipsToSkip;
  12891. /* readonly */
  12892. int multiSample;
  12893. String name;
  12894. /* readonly */
  12895. int refs;
  12896. /* readonly */
  12897. Array<RenderSurface> renderSurfaces;
  12898. /* readonly */
  12899. bool resolveDirty;
  12900. bool sRGB;
  12901. /* readonly */
  12902. StringHash type;
  12903. /* readonly */
  12904. String typeName;
  12905. /* readonly */
  12906. TextureUsage usage;
  12907. /* readonly */
  12908. uint useTimer;
  12909. /* readonly */
  12910. int weakRefs;
  12911. /* readonly */
  12912. int width;
  12913. };
  12914. class TextureFrame
  12915. {
  12916. public:
  12917. // Properties:
  12918. float time;
  12919. Rect uv;
  12920. };
  12921. class Tile2D
  12922. {
  12923. public:
  12924. // Methods:
  12925. bool HasProperty(const String&) const;
  12926. const String& GetProperty(const String&) const;
  12927. // Properties:
  12928. /* readonly */
  12929. int gid;
  12930. /* readonly */
  12931. int refs;
  12932. /* readonly */
  12933. Sprite2D sprite;
  12934. /* readonly */
  12935. int weakRefs;
  12936. };
  12937. class TileMap2D
  12938. {
  12939. public:
  12940. // Methods:
  12941. void ApplyAttributes();
  12942. void DrawDebugGeometry(DebugRenderer, bool);
  12943. Variant GetAttribute(const String&) const;
  12944. ValueAnimation GetAttributeAnimation(const String&) const;
  12945. float GetAttributeAnimationSpeed(const String&) const;
  12946. float GetAttributeAnimationTime(const String&) const;
  12947. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12948. Variant GetAttributeDefault(const String&) const;
  12949. bool GetInterceptNetworkUpdate(const String&) const;
  12950. TileMapLayer2D GetLayer(uint) const;
  12951. bool HasSubscribedToEvent(Object, const String&);
  12952. bool HasSubscribedToEvent(const String&);
  12953. bool Load(File, bool = false);
  12954. bool Load(VectorBuffer&, bool = false);
  12955. bool LoadJSON(const JSONValue&, bool = false);
  12956. bool LoadXML(const XMLElement&, bool = false);
  12957. void MarkNetworkUpdate() const;
  12958. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  12959. void Remove();
  12960. void RemoveAttributeAnimation(const String&);
  12961. void RemoveInstanceDefault();
  12962. void RemoveObjectAnimation();
  12963. void ResetToDefault();
  12964. bool Save(File) const;
  12965. bool Save(VectorBuffer&) const;
  12966. bool SaveJSON(JSONValue&) const;
  12967. bool SaveXML(XMLElement&) const;
  12968. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12969. void SetAnimationTime(float);
  12970. bool SetAttribute(const String&, const Variant&);
  12971. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12972. void SetAttributeAnimationSpeed(const String&, float);
  12973. void SetAttributeAnimationTime(const String&, float);
  12974. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12975. void SetInterceptNetworkUpdate(const String&, bool);
  12976. Vector2 TileIndexToPosition(int, int) const;
  12977. // Properties:
  12978. bool animationEnabled;
  12979. /* readonly */
  12980. Array<Variant> attributeDefaults;
  12981. /* readonly */
  12982. Array<AttributeInfo> attributeInfos;
  12983. Array<Variant> attributes;
  12984. /* readonly */
  12985. String category;
  12986. bool enabled;
  12987. /* readonly */
  12988. bool enabledEffective;
  12989. /* readonly */
  12990. uint id;
  12991. /* readonly */
  12992. TileMapInfo2D info;
  12993. /* readonly */
  12994. Node node;
  12995. /* readonly */
  12996. uint numAttributes;
  12997. /* readonly */
  12998. uint numLayers;
  12999. ObjectAnimation objectAnimation;
  13000. /* readonly */
  13001. int refs;
  13002. bool temporary;
  13003. TmxFile2D tmxFile;
  13004. /* readonly */
  13005. StringHash type;
  13006. /* readonly */
  13007. String typeName;
  13008. /* readonly */
  13009. int weakRefs;
  13010. };
  13011. class TileMapInfo2D
  13012. {
  13013. public:
  13014. // Properties:
  13015. int height;
  13016. /* readonly */
  13017. float mapHeight;
  13018. /* readonly */
  13019. float mapWidth;
  13020. Orientation2D orientation;
  13021. float tileHeight;
  13022. float tileWidth;
  13023. int width;
  13024. };
  13025. class TileMapLayer2D
  13026. {
  13027. public:
  13028. // Methods:
  13029. void ApplyAttributes();
  13030. void DrawDebugGeometry(DebugRenderer, bool);
  13031. Variant GetAttribute(const String&) const;
  13032. ValueAnimation GetAttributeAnimation(const String&) const;
  13033. float GetAttributeAnimationSpeed(const String&) const;
  13034. float GetAttributeAnimationTime(const String&) const;
  13035. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13036. Variant GetAttributeDefault(const String&) const;
  13037. bool GetInterceptNetworkUpdate(const String&) const;
  13038. TileMapObject2D GetObject(uint) const;
  13039. Node GetObjectNode(uint) const;
  13040. Tile2D GetTile(int, int) const;
  13041. Node GetTileNode(int, int) const;
  13042. bool HasProperty(const String&) const;
  13043. bool HasSubscribedToEvent(Object, const String&);
  13044. bool HasSubscribedToEvent(const String&);
  13045. bool Load(File, bool = false);
  13046. bool Load(VectorBuffer&, bool = false);
  13047. bool LoadJSON(const JSONValue&, bool = false);
  13048. bool LoadXML(const XMLElement&, bool = false);
  13049. void MarkNetworkUpdate() const;
  13050. void Remove();
  13051. void RemoveAttributeAnimation(const String&);
  13052. void RemoveInstanceDefault();
  13053. void RemoveObjectAnimation();
  13054. void ResetToDefault();
  13055. bool Save(File) const;
  13056. bool Save(VectorBuffer&) const;
  13057. bool SaveJSON(JSONValue&) const;
  13058. bool SaveXML(XMLElement&) const;
  13059. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13060. void SetAnimationTime(float);
  13061. bool SetAttribute(const String&, const Variant&);
  13062. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13063. void SetAttributeAnimationSpeed(const String&, float);
  13064. void SetAttributeAnimationTime(const String&, float);
  13065. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13066. void SetInterceptNetworkUpdate(const String&, bool);
  13067. const String& GetProperty(const String&) const;
  13068. // Properties:
  13069. bool animationEnabled;
  13070. /* readonly */
  13071. Array<Variant> attributeDefaults;
  13072. /* readonly */
  13073. Array<AttributeInfo> attributeInfos;
  13074. Array<Variant> attributes;
  13075. /* readonly */
  13076. String category;
  13077. int drawOrder;
  13078. bool enabled;
  13079. /* readonly */
  13080. bool enabledEffective;
  13081. /* readonly */
  13082. int height;
  13083. /* readonly */
  13084. uint id;
  13085. /* readonly */
  13086. Node imageNode;
  13087. /* readonly */
  13088. TileMapLayerType2D layerType;
  13089. /* readonly */
  13090. Node node;
  13091. /* readonly */
  13092. uint numAttributes;
  13093. /* readonly */
  13094. uint numObjects;
  13095. ObjectAnimation objectAnimation;
  13096. /* readonly */
  13097. int refs;
  13098. bool temporary;
  13099. /* readonly */
  13100. StringHash type;
  13101. /* readonly */
  13102. String typeName;
  13103. bool visible;
  13104. /* readonly */
  13105. int weakRefs;
  13106. /* readonly */
  13107. int width;
  13108. };
  13109. class TileMapObject2D
  13110. {
  13111. public:
  13112. // Methods:
  13113. bool HasProperty(const String&) const;
  13114. const String& GetProperty(const String&) const;
  13115. const Vector2& GetPoint(uint) const;
  13116. // Properties:
  13117. /* readonly */
  13118. String name;
  13119. /* readonly */
  13120. uint numPoints;
  13121. /* readonly */
  13122. TileObjectType2D objectType;
  13123. /* readonly */
  13124. Vector2 position;
  13125. /* readonly */
  13126. int refs;
  13127. /* readonly */
  13128. Vector2 size;
  13129. /* readonly */
  13130. int tileGid;
  13131. /* readonly */
  13132. Sprite2D tileSprite;
  13133. /* readonly */
  13134. String type;
  13135. /* readonly */
  13136. int weakRefs;
  13137. };
  13138. class Time
  13139. {
  13140. public:
  13141. // Methods:
  13142. bool HasSubscribedToEvent(Object, const String&);
  13143. bool HasSubscribedToEvent(const String&);
  13144. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13145. // Properties:
  13146. /* readonly */
  13147. String category;
  13148. /* readonly */
  13149. float elapsedTime;
  13150. /* readonly */
  13151. uint frameNumber;
  13152. /* readonly */
  13153. int refs;
  13154. /* readonly */
  13155. uint systemTime;
  13156. /* readonly */
  13157. uint timeSinceEpoch;
  13158. /* readonly */
  13159. String timeStamp;
  13160. /* readonly */
  13161. float timeStep;
  13162. /* readonly */
  13163. StringHash type;
  13164. /* readonly */
  13165. String typeName;
  13166. /* readonly */
  13167. int weakRefs;
  13168. };
  13169. class Timer
  13170. {
  13171. public:
  13172. Timer();
  13173. // Methods:
  13174. uint GetMSec(bool);
  13175. void Reset();
  13176. };
  13177. class TmxFile2D
  13178. {
  13179. public:
  13180. TmxFile2D();
  13181. TmxFile2D(const String&in);
  13182. // Methods:
  13183. bool HasSubscribedToEvent(Object, const String&);
  13184. bool HasSubscribedToEvent(const String&);
  13185. bool Load(File);
  13186. bool Load(VectorBuffer&);
  13187. bool Load(const String&);
  13188. bool Save(File) const;
  13189. bool Save(VectorBuffer&) const;
  13190. bool Save(const String&) const;
  13191. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13192. // Properties:
  13193. /* readonly */
  13194. String category;
  13195. /* readonly */
  13196. uint memoryUse;
  13197. String name;
  13198. /* readonly */
  13199. int refs;
  13200. /* readonly */
  13201. StringHash type;
  13202. /* readonly */
  13203. String typeName;
  13204. /* readonly */
  13205. uint useTimer;
  13206. /* readonly */
  13207. int weakRefs;
  13208. };
  13209. class ToolTip
  13210. {
  13211. public:
  13212. ToolTip();
  13213. ToolTip(const String&in);
  13214. // Methods:
  13215. void AddChild(UIElement);
  13216. void AddTag(const String&);
  13217. void AddTags(const String&, int8 = ';');
  13218. void ApplyAttributes();
  13219. void BringToFront();
  13220. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13221. void DisableLayoutUpdate();
  13222. IntVector2 ElementToScreen(const IntVector2&);
  13223. void EnableLayoutUpdate();
  13224. uint FindChild(UIElement) const;
  13225. Variant GetAttribute(const String&) const;
  13226. ValueAnimation GetAttributeAnimation(const String&) const;
  13227. float GetAttributeAnimationSpeed(const String&) const;
  13228. float GetAttributeAnimationTime(const String&) const;
  13229. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13230. Variant GetAttributeDefault(const String&) const;
  13231. UIElement GetChild(const String&, bool = false) const;
  13232. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13233. Array<UIElement> GetChildren(bool = false) const;
  13234. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13235. UIElement GetElementEventSender() const;
  13236. bool GetInterceptNetworkUpdate(const String&) const;
  13237. uint GetNumChildren(bool) const;
  13238. bool HasSubscribedToEvent(Object, const String&);
  13239. bool HasSubscribedToEvent(const String&);
  13240. bool HasTag(const String&) const;
  13241. void InsertChild(uint, UIElement);
  13242. bool IsInside(IntVector2, bool);
  13243. bool IsInsideCombined(IntVector2, bool);
  13244. bool Load(File, bool = false);
  13245. bool Load(VectorBuffer&, bool = false);
  13246. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13247. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13248. bool LoadJSON(const JSONValue&, bool = false);
  13249. bool LoadXML(File);
  13250. bool LoadXML(VectorBuffer&);
  13251. bool LoadXML(XMLFile, XMLFile);
  13252. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13253. bool LoadXML(const XMLElement&, bool = false);
  13254. void MarkNetworkUpdate() const;
  13255. void Remove();
  13256. void RemoveAllChildren();
  13257. void RemoveAllTags();
  13258. void RemoveAttributeAnimation(const String&);
  13259. void RemoveChild(UIElement, uint = 0);
  13260. void RemoveChild(uint);
  13261. void RemoveInstanceDefault();
  13262. void RemoveObjectAnimation();
  13263. bool RemoveTag(const String&);
  13264. void ResetDeepEnabled();
  13265. void ResetToDefault();
  13266. bool Save(File) const;
  13267. bool Save(VectorBuffer&) const;
  13268. bool SaveJSON(JSONValue&) const;
  13269. bool SaveXML(File, const String& = "\t");
  13270. bool SaveXML(VectorBuffer&, const String& = "\t");
  13271. bool SaveXML(XMLElement&) const;
  13272. IntVector2 ScreenToElement(const IntVector2&);
  13273. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13274. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13275. void SetAnimationTime(float);
  13276. bool SetAttribute(const String&, const Variant&);
  13277. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13278. void SetAttributeAnimationSpeed(const String&, float);
  13279. void SetAttributeAnimationTime(const String&, float);
  13280. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13281. void SetDeepEnabled(bool);
  13282. void SetEnabledRecursive(bool);
  13283. void SetFixedHeight(int);
  13284. void SetFixedSize(int, int);
  13285. void SetFixedWidth(int);
  13286. void SetInterceptNetworkUpdate(const String&, bool);
  13287. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13288. void SetMaxAnchor(float, float);
  13289. void SetMaxSize(int, int);
  13290. void SetMinAnchor(float, float);
  13291. void SetMinSize(int, int);
  13292. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13293. void SetPivot(float, float);
  13294. void SetPosition(int, int);
  13295. void SetSize(int, int);
  13296. bool SetStyle(const String&, XMLFile = null);
  13297. bool SetStyle(const XMLElement&);
  13298. bool SetStyleAuto(XMLFile = null);
  13299. void UpdateLayout();
  13300. const Variant& GetVar(const StringHash&);
  13301. // Properties:
  13302. bool animationEnabled;
  13303. /* readonly */
  13304. Array<Variant> attributeDefaults;
  13305. /* readonly */
  13306. Array<AttributeInfo> attributeInfos;
  13307. Array<Variant> attributes;
  13308. bool bringToBack;
  13309. bool bringToFront;
  13310. /* readonly */
  13311. String category;
  13312. /* readonly */
  13313. IntVector2 childOffset;
  13314. /* readonly */
  13315. Array<UIElement> children;
  13316. IntRect clipBorder;
  13317. bool clipChildren;
  13318. /* writeonly */
  13319. Color color;
  13320. /* readonly */
  13321. bool colorGradient;
  13322. Array<Color> colors;
  13323. /* readonly */
  13324. IntRect combinedScreenRect;
  13325. XMLFile defaultStyle;
  13326. float delay;
  13327. /* readonly */
  13328. float derivedOpacity;
  13329. /* readonly */
  13330. uint dragButtonCombo;
  13331. /* readonly */
  13332. int dragButtonCount;
  13333. uint dragDropMode;
  13334. bool editable;
  13335. bool elementEventSender;
  13336. bool enableAnchor;
  13337. bool enabled;
  13338. /* readonly */
  13339. bool enabledSelf;
  13340. /* readonly */
  13341. bool fixedHeight;
  13342. /* readonly */
  13343. bool fixedSize;
  13344. /* readonly */
  13345. bool fixedWidth;
  13346. bool focus;
  13347. FocusMode focusMode;
  13348. int height;
  13349. HorizontalAlignment horizontalAlignment;
  13350. /* readonly */
  13351. bool hovering;
  13352. int indent;
  13353. int indentSpacing;
  13354. /* readonly */
  13355. int indentWidth;
  13356. bool internal;
  13357. IntRect layoutBorder;
  13358. Vector2 layoutFlexScale;
  13359. LayoutMode layoutMode;
  13360. int layoutSpacing;
  13361. Vector2 maxAnchor;
  13362. int maxHeight;
  13363. IntVector2 maxOffset;
  13364. IntVector2 maxSize;
  13365. int maxWidth;
  13366. Vector2 minAnchor;
  13367. int minHeight;
  13368. IntVector2 minOffset;
  13369. IntVector2 minSize;
  13370. int minWidth;
  13371. String name;
  13372. /* readonly */
  13373. uint numAllChildren;
  13374. /* readonly */
  13375. uint numAttributes;
  13376. /* readonly */
  13377. uint numChildren;
  13378. ObjectAnimation objectAnimation;
  13379. float opacity;
  13380. UIElement parent;
  13381. Vector2 pivot;
  13382. IntVector2 position;
  13383. int priority;
  13384. /* readonly */
  13385. int refs;
  13386. /* readonly */
  13387. UIElement root;
  13388. /* readonly */
  13389. IntVector2 screenPosition;
  13390. bool selected;
  13391. IntVector2 size;
  13392. bool sortChildren;
  13393. String style;
  13394. /* readonly */
  13395. Array<String> tags;
  13396. bool temporary;
  13397. TraversalMode traversalMode;
  13398. /* readonly */
  13399. StringHash type;
  13400. /* readonly */
  13401. String typeName;
  13402. bool useDerivedOpacity;
  13403. /* readonly */
  13404. VariantMap vars;
  13405. VerticalAlignment verticalAlignment;
  13406. bool visible;
  13407. /* readonly */
  13408. bool visibleEffective;
  13409. /* readonly */
  13410. int weakRefs;
  13411. int width;
  13412. };
  13413. class TouchState
  13414. {
  13415. public:
  13416. // Properties:
  13417. IntVector2 delta;
  13418. IntVector2 lastPosition;
  13419. IntVector2 position;
  13420. float pressure;
  13421. int touchID;
  13422. /* readonly */
  13423. UIElement touchedElement;
  13424. };
  13425. class UI
  13426. {
  13427. public:
  13428. // Methods:
  13429. void Clear();
  13430. void DebugDraw(UIElement);
  13431. UIElement GetElementAt(const IntVector2&, bool = true);
  13432. UIElement GetElementAt(int, int, bool = true);
  13433. bool HasModalElement() const;
  13434. bool HasSubscribedToEvent(Object, const String&);
  13435. bool HasSubscribedToEvent(const String&);
  13436. bool IsDragging() const;
  13437. UIElement LoadLayout(File);
  13438. UIElement LoadLayout(File, XMLFile);
  13439. UIElement LoadLayout(VectorBuffer&);
  13440. UIElement LoadLayout(VectorBuffer&, XMLFile);
  13441. UIElement LoadLayout(XMLFile);
  13442. UIElement LoadLayout(XMLFile, XMLFile);
  13443. bool SaveLayout(File, UIElement);
  13444. bool SaveLayout(VectorBuffer&, UIElement);
  13445. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13446. void SetCustomSize(int, int);
  13447. void SetFocusElement(UIElement, bool = false);
  13448. void SetHeight(float);
  13449. void SetWidth(float);
  13450. const Array<UIElement> GetDragElements();
  13451. // Properties:
  13452. /* readonly */
  13453. String category;
  13454. String clipBoardText;
  13455. Cursor cursor;
  13456. /* readonly */
  13457. IntVector2 cursorPosition;
  13458. IntVector2 customSize;
  13459. float defaultToolTipDelay;
  13460. float doubleClickInterval;
  13461. int dragBeginDistance;
  13462. float dragBeginInterval;
  13463. UIElement focusElement;
  13464. bool forceAutoHint;
  13465. /* readonly */
  13466. UIElement frontElement;
  13467. int maxFontTextureSize;
  13468. /* readonly */
  13469. UIElement modalRoot;
  13470. bool nonFocusedMouseWheel;
  13471. /* readonly */
  13472. int refs;
  13473. /* readonly */
  13474. UIElement root;
  13475. float scale;
  13476. /* readonly */
  13477. StringHash type;
  13478. /* readonly */
  13479. String typeName;
  13480. bool useMutableGlyphs;
  13481. bool useScreenKeyboard;
  13482. bool useSystemClipboard;
  13483. /* readonly */
  13484. int weakRefs;
  13485. };
  13486. class UIElement
  13487. {
  13488. public:
  13489. UIElement();
  13490. UIElement(const String&in);
  13491. // Methods:
  13492. void AddChild(UIElement);
  13493. void AddTag(const String&);
  13494. void AddTags(const String&, int8 = ';');
  13495. void ApplyAttributes();
  13496. void BringToFront();
  13497. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13498. void DisableLayoutUpdate();
  13499. IntVector2 ElementToScreen(const IntVector2&);
  13500. void EnableLayoutUpdate();
  13501. uint FindChild(UIElement) const;
  13502. Variant GetAttribute(const String&) const;
  13503. ValueAnimation GetAttributeAnimation(const String&) const;
  13504. float GetAttributeAnimationSpeed(const String&) const;
  13505. float GetAttributeAnimationTime(const String&) const;
  13506. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13507. Variant GetAttributeDefault(const String&) const;
  13508. UIElement GetChild(const String&, bool = false) const;
  13509. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13510. Array<UIElement> GetChildren(bool = false) const;
  13511. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13512. UIElement GetElementEventSender() const;
  13513. bool GetInterceptNetworkUpdate(const String&) const;
  13514. uint GetNumChildren(bool) const;
  13515. bool HasSubscribedToEvent(Object, const String&);
  13516. bool HasSubscribedToEvent(const String&);
  13517. bool HasTag(const String&) const;
  13518. void InsertChild(uint, UIElement);
  13519. bool IsInside(IntVector2, bool);
  13520. bool IsInsideCombined(IntVector2, bool);
  13521. bool Load(File, bool = false);
  13522. bool Load(VectorBuffer&, bool = false);
  13523. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13524. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13525. bool LoadJSON(const JSONValue&, bool = false);
  13526. bool LoadXML(File);
  13527. bool LoadXML(VectorBuffer&);
  13528. bool LoadXML(XMLFile, XMLFile);
  13529. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13530. bool LoadXML(const XMLElement&, bool = false);
  13531. void MarkNetworkUpdate() const;
  13532. void Remove();
  13533. void RemoveAllChildren();
  13534. void RemoveAllTags();
  13535. void RemoveAttributeAnimation(const String&);
  13536. void RemoveChild(UIElement, uint = 0);
  13537. void RemoveChild(uint);
  13538. void RemoveInstanceDefault();
  13539. void RemoveObjectAnimation();
  13540. bool RemoveTag(const String&);
  13541. void ResetDeepEnabled();
  13542. void ResetToDefault();
  13543. bool Save(File) const;
  13544. bool Save(VectorBuffer&) const;
  13545. bool SaveJSON(JSONValue&) const;
  13546. bool SaveXML(File, const String& = "\t");
  13547. bool SaveXML(VectorBuffer&, const String& = "\t");
  13548. bool SaveXML(XMLElement&) const;
  13549. IntVector2 ScreenToElement(const IntVector2&);
  13550. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13551. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13552. void SetAnimationTime(float);
  13553. bool SetAttribute(const String&, const Variant&);
  13554. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13555. void SetAttributeAnimationSpeed(const String&, float);
  13556. void SetAttributeAnimationTime(const String&, float);
  13557. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13558. void SetDeepEnabled(bool);
  13559. void SetEnabledRecursive(bool);
  13560. void SetFixedHeight(int);
  13561. void SetFixedSize(int, int);
  13562. void SetFixedWidth(int);
  13563. void SetInterceptNetworkUpdate(const String&, bool);
  13564. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13565. void SetMaxAnchor(float, float);
  13566. void SetMaxSize(int, int);
  13567. void SetMinAnchor(float, float);
  13568. void SetMinSize(int, int);
  13569. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13570. void SetPivot(float, float);
  13571. void SetPosition(int, int);
  13572. void SetSize(int, int);
  13573. bool SetStyle(const String&, XMLFile = null);
  13574. bool SetStyle(const XMLElement&);
  13575. bool SetStyleAuto(XMLFile = null);
  13576. void UpdateLayout();
  13577. const Variant& GetVar(const StringHash&);
  13578. // Properties:
  13579. bool animationEnabled;
  13580. /* readonly */
  13581. Array<Variant> attributeDefaults;
  13582. /* readonly */
  13583. Array<AttributeInfo> attributeInfos;
  13584. Array<Variant> attributes;
  13585. bool bringToBack;
  13586. bool bringToFront;
  13587. /* readonly */
  13588. String category;
  13589. /* readonly */
  13590. IntVector2 childOffset;
  13591. /* readonly */
  13592. Array<UIElement> children;
  13593. IntRect clipBorder;
  13594. bool clipChildren;
  13595. /* writeonly */
  13596. Color color;
  13597. /* readonly */
  13598. bool colorGradient;
  13599. Array<Color> colors;
  13600. /* readonly */
  13601. IntRect combinedScreenRect;
  13602. XMLFile defaultStyle;
  13603. /* readonly */
  13604. float derivedOpacity;
  13605. /* readonly */
  13606. uint dragButtonCombo;
  13607. /* readonly */
  13608. int dragButtonCount;
  13609. uint dragDropMode;
  13610. bool editable;
  13611. bool elementEventSender;
  13612. bool enableAnchor;
  13613. bool enabled;
  13614. /* readonly */
  13615. bool enabledSelf;
  13616. /* readonly */
  13617. bool fixedHeight;
  13618. /* readonly */
  13619. bool fixedSize;
  13620. /* readonly */
  13621. bool fixedWidth;
  13622. bool focus;
  13623. FocusMode focusMode;
  13624. int height;
  13625. HorizontalAlignment horizontalAlignment;
  13626. /* readonly */
  13627. bool hovering;
  13628. int indent;
  13629. int indentSpacing;
  13630. /* readonly */
  13631. int indentWidth;
  13632. bool internal;
  13633. IntRect layoutBorder;
  13634. Vector2 layoutFlexScale;
  13635. LayoutMode layoutMode;
  13636. int layoutSpacing;
  13637. Vector2 maxAnchor;
  13638. int maxHeight;
  13639. IntVector2 maxOffset;
  13640. IntVector2 maxSize;
  13641. int maxWidth;
  13642. Vector2 minAnchor;
  13643. int minHeight;
  13644. IntVector2 minOffset;
  13645. IntVector2 minSize;
  13646. int minWidth;
  13647. String name;
  13648. /* readonly */
  13649. uint numAllChildren;
  13650. /* readonly */
  13651. uint numAttributes;
  13652. /* readonly */
  13653. uint numChildren;
  13654. ObjectAnimation objectAnimation;
  13655. float opacity;
  13656. UIElement parent;
  13657. Vector2 pivot;
  13658. IntVector2 position;
  13659. int priority;
  13660. /* readonly */
  13661. int refs;
  13662. /* readonly */
  13663. UIElement root;
  13664. /* readonly */
  13665. IntVector2 screenPosition;
  13666. bool selected;
  13667. IntVector2 size;
  13668. bool sortChildren;
  13669. String style;
  13670. /* readonly */
  13671. Array<String> tags;
  13672. bool temporary;
  13673. TraversalMode traversalMode;
  13674. /* readonly */
  13675. StringHash type;
  13676. /* readonly */
  13677. String typeName;
  13678. bool useDerivedOpacity;
  13679. /* readonly */
  13680. VariantMap vars;
  13681. VerticalAlignment verticalAlignment;
  13682. bool visible;
  13683. /* readonly */
  13684. bool visibleEffective;
  13685. /* readonly */
  13686. int weakRefs;
  13687. int width;
  13688. };
  13689. class ValueAnimation
  13690. {
  13691. public:
  13692. ValueAnimation();
  13693. ValueAnimation(const String&in);
  13694. // Methods:
  13695. bool HasSubscribedToEvent(Object, const String&);
  13696. bool HasSubscribedToEvent(const String&);
  13697. bool Load(File);
  13698. bool Load(VectorBuffer&);
  13699. bool Load(const String&);
  13700. bool Save(File) const;
  13701. bool Save(VectorBuffer&) const;
  13702. bool Save(const String&) const;
  13703. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13704. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  13705. void SetKeyFrame(float, const Variant&);
  13706. // Properties:
  13707. /* readonly */
  13708. String category;
  13709. InterpMethod interpolationMethod;
  13710. /* readonly */
  13711. uint memoryUse;
  13712. String name;
  13713. /* readonly */
  13714. int refs;
  13715. float splineTension;
  13716. /* readonly */
  13717. StringHash type;
  13718. /* readonly */
  13719. String typeName;
  13720. /* readonly */
  13721. uint useTimer;
  13722. VariantType valueType;
  13723. /* readonly */
  13724. int weakRefs;
  13725. };
  13726. class Variant
  13727. {
  13728. public:
  13729. ~Variant();
  13730. Variant();
  13731. Variant(const Variant&in);
  13732. Variant(int);
  13733. Variant(uint);
  13734. Variant(int64);
  13735. Variant(uint64);
  13736. Variant(const StringHash&in);
  13737. Variant(bool);
  13738. Variant(float);
  13739. Variant(double);
  13740. Variant(const Vector2&in);
  13741. Variant(const Vector3&in);
  13742. Variant(const Vector4&in);
  13743. Variant(const Quaternion&in);
  13744. Variant(const Color&in);
  13745. Variant(const String&in);
  13746. Variant(const ResourceRef&in);
  13747. Variant(const ResourceRefList&in);
  13748. Variant(const Variant[]@);
  13749. Variant(const String[]@);
  13750. Variant(const VariantMap&in);
  13751. Variant(const Rect&in);
  13752. Variant(const IntRect&in);
  13753. Variant(const IntVector2&in);
  13754. Variant(const IntVector3&in);
  13755. Variant(RefCounted@);
  13756. Variant(ScriptObject@);
  13757. Variant(const Matrix3&in);
  13758. Variant(const Matrix3x4&in);
  13759. Variant(const Matrix4&in);
  13760. Variant(const String&in, const String&in);
  13761. Variant(VariantType, const String&in);
  13762. Variant(const VectorBuffer&in);
  13763. // Methods:
  13764. void Clear();
  13765. const Color& GetColor() const;
  13766. void FromString(VariantType, const String&);
  13767. void FromString(const String&, const String&);
  13768. bool GetBool() const;
  13769. VectorBuffer GetBuffer() const;
  13770. double GetDouble() const;
  13771. float GetFloat() const;
  13772. int GetInt() const;
  13773. int GetInt64() const;
  13774. RefCounted GetPtr() const;
  13775. ScriptObject GetScriptObject() const;
  13776. StringHash GetStringHash() const;
  13777. Array<String> GetStringVector() const;
  13778. uint GetUInt() const;
  13779. uint64 GetUInt64() const;
  13780. Array<Variant> GetVariantVector() const;
  13781. const IntRect& GetIntRect() const;
  13782. const IntVector2& GetIntVector2() const;
  13783. const IntVector3& GetIntVector3() const;
  13784. const Matrix3& GetMatrix3() const;
  13785. const Matrix3x4& GetMatrix3x4() const;
  13786. const Matrix4& GetMatrix4() const;
  13787. const Quaternion& GetQuaternion() const;
  13788. const Rect& GetRect() const;
  13789. const ResourceRef& GetResourceRef() const;
  13790. const ResourceRefList& GetResourceRefList() const;
  13791. const String& GetString() const;
  13792. String ToString() const;
  13793. const VariantMap& GetVariantMap() const;
  13794. const Vector2& GetVector2() const;
  13795. const Vector3& GetVector3() const;
  13796. const Vector4& GetVector4() const;
  13797. // Properties:
  13798. /* readonly */
  13799. bool empty;
  13800. /* readonly */
  13801. VariantType type;
  13802. /* readonly */
  13803. String typeName;
  13804. /* readonly */
  13805. bool zero;
  13806. };
  13807. class VariantMap
  13808. {
  13809. public:
  13810. ~VariantMap();
  13811. VariantMap();
  13812. VariantMap(const VariantMap&in);
  13813. // Methods:
  13814. void Clear();
  13815. bool Contains(StringHash) const;
  13816. bool Contains(const String&) const;
  13817. bool Erase(StringHash);
  13818. bool Erase(const String&);
  13819. // Properties:
  13820. /* readonly */
  13821. Array<StringHash> keys;
  13822. /* readonly */
  13823. uint length;
  13824. /* readonly */
  13825. Array<Variant> values;
  13826. };
  13827. class Vector2
  13828. {
  13829. public:
  13830. Vector2();
  13831. Vector2(const Vector2&in);
  13832. Vector2(const IntVector2&in);
  13833. Vector2(float, float);
  13834. Vector2(float[]&inout);
  13835. // Methods:
  13836. Vector2 Abs() const;
  13837. float AbsDotProduct(const Vector2&) const;
  13838. float Angle(const Vector2&) const;
  13839. float DotProduct(const Vector2&) const;
  13840. bool Equals(const Vector2&) const;
  13841. bool IsNaN() const;
  13842. Vector2 Lerp(const Vector2&, float) const;
  13843. void Normalize();
  13844. Vector2 Normalized() const;
  13845. float ProjectOntoAxis(const Vector2&) const;
  13846. String ToString() const;
  13847. // Properties:
  13848. /* readonly */
  13849. Array<float> data;
  13850. /* readonly */
  13851. float length;
  13852. /* readonly */
  13853. float lengthSquared;
  13854. float x;
  13855. float y;
  13856. // Constants:
  13857. static const Vector2 DOWN;
  13858. static const Vector2 LEFT;
  13859. static const Vector2 ONE;
  13860. static const Vector2 RIGHT;
  13861. static const Vector2 UP;
  13862. static const Vector2 ZERO;
  13863. };
  13864. class Vector3
  13865. {
  13866. public:
  13867. Vector3();
  13868. Vector3(const Vector3&in);
  13869. Vector3(const Vector2&in, float);
  13870. Vector3(const Vector2&in);
  13871. Vector3(const IntVector3&in);
  13872. Vector3(float, float, float);
  13873. Vector3(float, float);
  13874. Vector3(float[]&inout);
  13875. // Methods:
  13876. Vector3 Abs() const;
  13877. float AbsDotProduct(const Vector3&) const;
  13878. float Angle(const Vector3&) const;
  13879. Vector3 CrossProduct(const Vector3&) const;
  13880. float DotProduct(const Vector3&) const;
  13881. bool Equals(const Vector3&) const;
  13882. bool IsNaN() const;
  13883. Vector3 Lerp(const Vector3&, float) const;
  13884. void Normalize();
  13885. Vector3 Normalized() const;
  13886. float ProjectOntoAxis(const Vector3&) const;
  13887. String ToString() const;
  13888. // Properties:
  13889. /* readonly */
  13890. Array<float> data;
  13891. /* readonly */
  13892. float length;
  13893. /* readonly */
  13894. float lengthSquared;
  13895. float x;
  13896. float y;
  13897. float z;
  13898. // Constants:
  13899. static const Vector3 BACK;
  13900. static const Vector3 DOWN;
  13901. static const Vector3 FORWARD;
  13902. static const Vector3 LEFT;
  13903. static const Vector3 ONE;
  13904. static const Vector3 RIGHT;
  13905. static const Vector3 UP;
  13906. static const Vector3 ZERO;
  13907. };
  13908. class Vector4
  13909. {
  13910. public:
  13911. Vector4();
  13912. Vector4(const Vector4&in);
  13913. Vector4(float, float, float, float);
  13914. Vector4(const Vector3&in, float);
  13915. Vector4(float[]&inout);
  13916. // Methods:
  13917. Vector4 Abs() const;
  13918. float AbsDotProduct(const Vector4&) const;
  13919. float DotProduct(const Vector4&) const;
  13920. bool Equals(const Vector4&) const;
  13921. bool IsNaN() const;
  13922. Vector4 Lerp(const Vector4&, float) const;
  13923. float ProjectOntoAxis(const Vector3&) const;
  13924. String ToString() const;
  13925. // Properties:
  13926. /* readonly */
  13927. Array<float> data;
  13928. float w;
  13929. float x;
  13930. float y;
  13931. float z;
  13932. };
  13933. class VectorBuffer
  13934. {
  13935. public:
  13936. ~VectorBuffer();
  13937. VectorBuffer();
  13938. VectorBuffer(const VectorBuffer&in);
  13939. VectorBuffer(Deserializer@, uint);
  13940. // Methods:
  13941. void Clear();
  13942. Array<uint8> Read(uint);
  13943. bool ReadBool();
  13944. BoundingBox ReadBoundingBox();
  13945. int8 ReadByte();
  13946. Color ReadColor();
  13947. double ReadDouble();
  13948. String ReadFileID();
  13949. float ReadFloat();
  13950. int ReadInt();
  13951. int64 ReadInt64();
  13952. IntRect ReadIntRect();
  13953. IntVector2 ReadIntVector2();
  13954. String ReadLine();
  13955. Matrix3 ReadMatrix3();
  13956. Matrix3x4 ReadMatrix3x4();
  13957. Matrix4 ReadMatrix4();
  13958. uint ReadNetID();
  13959. Quaternion ReadPackedQuaternion();
  13960. Vector3 ReadPackedVector3(float);
  13961. Quaternion ReadQuaternion();
  13962. int16 ReadShort();
  13963. String ReadString();
  13964. StringHash ReadStringHash();
  13965. uint8 ReadUByte();
  13966. uint ReadUInt();
  13967. uint64 ReadUInt64();
  13968. uint16 ReadUShort();
  13969. uint ReadVLE();
  13970. Variant ReadVariant();
  13971. VariantMap ReadVariantMap();
  13972. Vector2 ReadVector2();
  13973. Vector3 ReadVector3();
  13974. Vector4 ReadVector4();
  13975. VectorBuffer ReadVectorBuffer(uint);
  13976. void Resize(uint);
  13977. uint Seek(uint);
  13978. void SetData(Deserializer, uint);
  13979. uint Write(Array<uint8>);
  13980. bool WriteBool(bool);
  13981. bool WriteBoundingBox(const BoundingBox&);
  13982. bool WriteByte(int8);
  13983. bool WriteColor(const Color&);
  13984. bool WriteDouble(double);
  13985. bool WriteFileID(const String&);
  13986. bool WriteFloat(float);
  13987. bool WriteInt(int);
  13988. bool WriteInt64(int64);
  13989. bool WriteIntRect(const IntRect&);
  13990. bool WriteIntVector2(const IntVector2&);
  13991. bool WriteLine(const String&);
  13992. bool WriteMatrix3(const Matrix3&);
  13993. bool WriteMatrix3x4(const Matrix3x4&);
  13994. bool WriteMatrix4(const Matrix4&);
  13995. bool WriteNetID(uint);
  13996. bool WritePackedQuaternion(const Quaternion&);
  13997. bool WritePackedVector3(const Vector3&, float);
  13998. bool WriteQuaternion(const Quaternion&);
  13999. bool WriteShort(int16);
  14000. bool WriteString(const String&);
  14001. bool WriteStringHash(const StringHash&);
  14002. bool WriteUByte(uint8);
  14003. bool WriteUInt(uint);
  14004. bool WriteUInt64(uint64);
  14005. bool WriteUShort(uint16);
  14006. bool WriteVLE(uint);
  14007. bool WriteVariant(const Variant&);
  14008. bool WriteVariantMap(const VariantMap&);
  14009. bool WriteVector2(const Vector2&);
  14010. bool WriteVector3(const Vector3&);
  14011. bool WriteVector4(const Vector4&);
  14012. bool WriteVectorBuffer(const VectorBuffer&);
  14013. // Properties:
  14014. /* readonly */
  14015. uint checksum;
  14016. /* readonly */
  14017. bool eof;
  14018. /* readonly */
  14019. String name;
  14020. /* readonly */
  14021. uint position;
  14022. /* readonly */
  14023. uint size;
  14024. };
  14025. class VertexBuffer
  14026. {
  14027. public:
  14028. VertexBuffer();
  14029. // Methods:
  14030. VectorBuffer GetData() const;
  14031. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  14032. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14033. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  14034. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14035. bool HasSubscribedToEvent(Object, const String&);
  14036. bool HasSubscribedToEvent(const String&);
  14037. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14038. bool SetData(VectorBuffer&);
  14039. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  14040. void SetSize(uint, Array<VertexElement>, bool = false);
  14041. void SetSize(uint, uint, bool = false);
  14042. // Properties:
  14043. /* readonly */
  14044. String category;
  14045. /* readonly */
  14046. bool dynamic;
  14047. /* readonly */
  14048. uint elementMask;
  14049. /* readonly */
  14050. Array<VertexElement> elements;
  14051. /* readonly */
  14052. int refs;
  14053. bool shadowed;
  14054. /* readonly */
  14055. StringHash type;
  14056. /* readonly */
  14057. String typeName;
  14058. /* readonly */
  14059. uint vertexCount;
  14060. /* readonly */
  14061. uint vertexSize;
  14062. /* readonly */
  14063. int weakRefs;
  14064. };
  14065. class VertexElement
  14066. {
  14067. public:
  14068. ~VertexElement();
  14069. VertexElement();
  14070. VertexElement(const VertexElement&in);
  14071. VertexElement(VertexElementType, VertexElementSemantic, uint8 index = 0, bool perInstance = false);
  14072. // Properties:
  14073. uint8 index;
  14074. uint offset;
  14075. bool perInstance;
  14076. VertexElementSemantic semantic;
  14077. VertexElementType type;
  14078. };
  14079. class View3D
  14080. {
  14081. public:
  14082. View3D();
  14083. View3D(const String&in);
  14084. // Methods:
  14085. void AddChild(UIElement);
  14086. void AddTag(const String&);
  14087. void AddTags(const String&, int8 = ';');
  14088. void ApplyAttributes();
  14089. void BringToFront();
  14090. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14091. void DisableLayoutUpdate();
  14092. IntVector2 ElementToScreen(const IntVector2&);
  14093. void EnableLayoutUpdate();
  14094. uint FindChild(UIElement) const;
  14095. Variant GetAttribute(const String&) const;
  14096. ValueAnimation GetAttributeAnimation(const String&) const;
  14097. float GetAttributeAnimationSpeed(const String&) const;
  14098. float GetAttributeAnimationTime(const String&) const;
  14099. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14100. Variant GetAttributeDefault(const String&) const;
  14101. UIElement GetChild(const String&, bool = false) const;
  14102. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14103. Array<UIElement> GetChildren(bool = false) const;
  14104. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14105. UIElement GetElementEventSender() const;
  14106. bool GetInterceptNetworkUpdate(const String&) const;
  14107. uint GetNumChildren(bool) const;
  14108. bool HasSubscribedToEvent(Object, const String&);
  14109. bool HasSubscribedToEvent(const String&);
  14110. bool HasTag(const String&) const;
  14111. void InsertChild(uint, UIElement);
  14112. bool IsInside(IntVector2, bool);
  14113. bool IsInsideCombined(IntVector2, bool);
  14114. bool Load(File, bool = false);
  14115. bool Load(VectorBuffer&, bool = false);
  14116. UIElement LoadChildXML(XMLFile, XMLFile = null);
  14117. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  14118. bool LoadJSON(const JSONValue&, bool = false);
  14119. bool LoadXML(File);
  14120. bool LoadXML(VectorBuffer&);
  14121. bool LoadXML(XMLFile, XMLFile);
  14122. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  14123. bool LoadXML(const XMLElement&, bool = false);
  14124. void MarkNetworkUpdate() const;
  14125. void QueueUpdate();
  14126. void Remove();
  14127. void RemoveAllChildren();
  14128. void RemoveAllTags();
  14129. void RemoveAttributeAnimation(const String&);
  14130. void RemoveChild(UIElement, uint = 0);
  14131. void RemoveChild(uint);
  14132. void RemoveInstanceDefault();
  14133. void RemoveObjectAnimation();
  14134. bool RemoveTag(const String&);
  14135. void ResetDeepEnabled();
  14136. void ResetToDefault();
  14137. bool Save(File) const;
  14138. bool Save(VectorBuffer&) const;
  14139. bool SaveJSON(JSONValue&) const;
  14140. bool SaveXML(File, const String& = "\t");
  14141. bool SaveXML(VectorBuffer&, const String& = "\t");
  14142. bool SaveXML(XMLElement&) const;
  14143. IntVector2 ScreenToElement(const IntVector2&);
  14144. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14145. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14146. void SetAnimationTime(float);
  14147. bool SetAttribute(const String&, const Variant&);
  14148. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14149. void SetAttributeAnimationSpeed(const String&, float);
  14150. void SetAttributeAnimationTime(const String&, float);
  14151. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14152. void SetDeepEnabled(bool);
  14153. void SetEnabledRecursive(bool);
  14154. void SetFixedHeight(int);
  14155. void SetFixedSize(int, int);
  14156. void SetFixedWidth(int);
  14157. void SetFullImageRect();
  14158. void SetHoverOffset(int, int);
  14159. void SetInterceptNetworkUpdate(const String&, bool);
  14160. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14161. void SetMaxAnchor(float, float);
  14162. void SetMaxSize(int, int);
  14163. void SetMinAnchor(float, float);
  14164. void SetMinSize(int, int);
  14165. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14166. void SetPivot(float, float);
  14167. void SetPosition(int, int);
  14168. void SetSize(int, int);
  14169. bool SetStyle(const String&, XMLFile = null);
  14170. bool SetStyle(const XMLElement&);
  14171. bool SetStyleAuto(XMLFile = null);
  14172. void SetView(Scene, Camera, bool = true);
  14173. void UpdateLayout();
  14174. const Variant& GetVar(const StringHash&);
  14175. // Properties:
  14176. bool animationEnabled;
  14177. /* readonly */
  14178. Array<Variant> attributeDefaults;
  14179. /* readonly */
  14180. Array<AttributeInfo> attributeInfos;
  14181. Array<Variant> attributes;
  14182. bool autoUpdate;
  14183. BlendMode blendMode;
  14184. IntRect border;
  14185. bool bringToBack;
  14186. bool bringToFront;
  14187. /* readonly */
  14188. Node cameraNode;
  14189. /* readonly */
  14190. String category;
  14191. /* readonly */
  14192. IntVector2 childOffset;
  14193. /* readonly */
  14194. Array<UIElement> children;
  14195. IntRect clipBorder;
  14196. bool clipChildren;
  14197. /* writeonly */
  14198. Color color;
  14199. /* readonly */
  14200. bool colorGradient;
  14201. Array<Color> colors;
  14202. /* readonly */
  14203. IntRect combinedScreenRect;
  14204. XMLFile defaultStyle;
  14205. /* readonly */
  14206. Texture2D depthTexture;
  14207. /* readonly */
  14208. float derivedOpacity;
  14209. /* readonly */
  14210. uint dragButtonCombo;
  14211. /* readonly */
  14212. int dragButtonCount;
  14213. uint dragDropMode;
  14214. bool editable;
  14215. bool elementEventSender;
  14216. bool enableAnchor;
  14217. bool enabled;
  14218. /* readonly */
  14219. bool enabledSelf;
  14220. /* readonly */
  14221. bool fixedHeight;
  14222. bool fixedHeightResizing;
  14223. /* readonly */
  14224. bool fixedSize;
  14225. /* readonly */
  14226. bool fixedWidth;
  14227. bool fixedWidthResizing;
  14228. bool focus;
  14229. FocusMode focusMode;
  14230. uint format;
  14231. int height;
  14232. HorizontalAlignment horizontalAlignment;
  14233. IntVector2 hoverOffset;
  14234. /* readonly */
  14235. bool hovering;
  14236. IntRect imageBorder;
  14237. IntRect imageRect;
  14238. int indent;
  14239. int indentSpacing;
  14240. /* readonly */
  14241. int indentWidth;
  14242. bool internal;
  14243. IntRect layoutBorder;
  14244. Vector2 layoutFlexScale;
  14245. LayoutMode layoutMode;
  14246. int layoutSpacing;
  14247. Vector2 maxAnchor;
  14248. int maxHeight;
  14249. IntVector2 maxOffset;
  14250. IntVector2 maxSize;
  14251. int maxWidth;
  14252. Vector2 minAnchor;
  14253. int minHeight;
  14254. IntVector2 minOffset;
  14255. IntVector2 minSize;
  14256. int minWidth;
  14257. bool modal;
  14258. bool modalAutoDismiss;
  14259. Color modalFrameColor;
  14260. IntVector2 modalFrameSize;
  14261. Color modalShadeColor;
  14262. bool movable;
  14263. String name;
  14264. /* readonly */
  14265. uint numAllChildren;
  14266. /* readonly */
  14267. uint numAttributes;
  14268. /* readonly */
  14269. uint numChildren;
  14270. ObjectAnimation objectAnimation;
  14271. float opacity;
  14272. UIElement parent;
  14273. Vector2 pivot;
  14274. IntVector2 position;
  14275. int priority;
  14276. /* readonly */
  14277. int refs;
  14278. /* readonly */
  14279. Texture2D renderTexture;
  14280. bool resizable;
  14281. IntRect resizeBorder;
  14282. /* readonly */
  14283. UIElement root;
  14284. /* readonly */
  14285. Scene scene;
  14286. /* readonly */
  14287. IntVector2 screenPosition;
  14288. bool selected;
  14289. IntVector2 size;
  14290. bool sortChildren;
  14291. String style;
  14292. /* readonly */
  14293. Array<String> tags;
  14294. bool temporary;
  14295. Texture texture;
  14296. bool tiled;
  14297. TraversalMode traversalMode;
  14298. /* readonly */
  14299. StringHash type;
  14300. /* readonly */
  14301. String typeName;
  14302. bool useDerivedOpacity;
  14303. /* readonly */
  14304. VariantMap vars;
  14305. VerticalAlignment verticalAlignment;
  14306. /* readonly */
  14307. Viewport viewport;
  14308. bool visible;
  14309. /* readonly */
  14310. bool visibleEffective;
  14311. /* readonly */
  14312. int weakRefs;
  14313. int width;
  14314. };
  14315. class Viewport
  14316. {
  14317. public:
  14318. Viewport();
  14319. Viewport(Scene&, Camera&, RenderPath& renderPath = null);
  14320. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& renderPath = null);
  14321. // Methods:
  14322. Ray GetScreenRay(int, int) const;
  14323. bool HasSubscribedToEvent(Object, const String&);
  14324. bool HasSubscribedToEvent(const String&);
  14325. Vector3 ScreenToWorldPoint(int, int, float) const;
  14326. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14327. void SetRenderPath(XMLFile);
  14328. IntVector2 WorldToScreenPoint(const Vector3&) const;
  14329. // Properties:
  14330. Camera camera;
  14331. /* readonly */
  14332. String category;
  14333. Camera cullCamera;
  14334. bool drawDebug;
  14335. IntRect rect;
  14336. /* readonly */
  14337. int refs;
  14338. RenderPath renderPath;
  14339. Scene scene;
  14340. /* readonly */
  14341. StringHash type;
  14342. /* readonly */
  14343. String typeName;
  14344. /* readonly */
  14345. int weakRefs;
  14346. };
  14347. class WeakHandle
  14348. {
  14349. public:
  14350. ~WeakHandle();
  14351. WeakHandle();
  14352. WeakHandle(const WeakHandle&in);
  14353. WeakHandle(RefCounted@);
  14354. // Methods:
  14355. RefCounted Get() const;
  14356. // Properties:
  14357. /* readonly */
  14358. bool expired;
  14359. /* readonly */
  14360. int refs;
  14361. /* readonly */
  14362. int weakRefs;
  14363. };
  14364. class Window
  14365. {
  14366. public:
  14367. Window();
  14368. Window(const String&in);
  14369. // Methods:
  14370. void AddChild(UIElement);
  14371. void AddTag(const String&);
  14372. void AddTags(const String&, int8 = ';');
  14373. void ApplyAttributes();
  14374. void BringToFront();
  14375. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14376. void DisableLayoutUpdate();
  14377. IntVector2 ElementToScreen(const IntVector2&);
  14378. void EnableLayoutUpdate();
  14379. uint FindChild(UIElement) const;
  14380. Variant GetAttribute(const String&) const;
  14381. ValueAnimation GetAttributeAnimation(const String&) const;
  14382. float GetAttributeAnimationSpeed(const String&) const;
  14383. float GetAttributeAnimationTime(const String&) const;
  14384. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14385. Variant GetAttributeDefault(const String&) const;
  14386. UIElement GetChild(const String&, bool = false) const;
  14387. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14388. Array<UIElement> GetChildren(bool = false) const;
  14389. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14390. UIElement GetElementEventSender() const;
  14391. bool GetInterceptNetworkUpdate(const String&) const;
  14392. uint GetNumChildren(bool) const;
  14393. bool HasSubscribedToEvent(Object, const String&);
  14394. bool HasSubscribedToEvent(const String&);
  14395. bool HasTag(const String&) const;
  14396. void InsertChild(uint, UIElement);
  14397. bool IsInside(IntVector2, bool);
  14398. bool IsInsideCombined(IntVector2, bool);
  14399. bool Load(File, bool = false);
  14400. bool Load(VectorBuffer&, bool = false);
  14401. UIElement LoadChildXML(XMLFile, XMLFile = null);
  14402. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  14403. bool LoadJSON(const JSONValue&, bool = false);
  14404. bool LoadXML(File);
  14405. bool LoadXML(VectorBuffer&);
  14406. bool LoadXML(XMLFile, XMLFile);
  14407. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  14408. bool LoadXML(const XMLElement&, bool = false);
  14409. void MarkNetworkUpdate() const;
  14410. void Remove();
  14411. void RemoveAllChildren();
  14412. void RemoveAllTags();
  14413. void RemoveAttributeAnimation(const String&);
  14414. void RemoveChild(UIElement, uint = 0);
  14415. void RemoveChild(uint);
  14416. void RemoveInstanceDefault();
  14417. void RemoveObjectAnimation();
  14418. bool RemoveTag(const String&);
  14419. void ResetDeepEnabled();
  14420. void ResetToDefault();
  14421. bool Save(File) const;
  14422. bool Save(VectorBuffer&) const;
  14423. bool SaveJSON(JSONValue&) const;
  14424. bool SaveXML(File, const String& = "\t");
  14425. bool SaveXML(VectorBuffer&, const String& = "\t");
  14426. bool SaveXML(XMLElement&) const;
  14427. IntVector2 ScreenToElement(const IntVector2&);
  14428. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14429. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14430. void SetAnimationTime(float);
  14431. bool SetAttribute(const String&, const Variant&);
  14432. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14433. void SetAttributeAnimationSpeed(const String&, float);
  14434. void SetAttributeAnimationTime(const String&, float);
  14435. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14436. void SetDeepEnabled(bool);
  14437. void SetEnabledRecursive(bool);
  14438. void SetFixedHeight(int);
  14439. void SetFixedSize(int, int);
  14440. void SetFixedWidth(int);
  14441. void SetFullImageRect();
  14442. void SetHoverOffset(int, int);
  14443. void SetInterceptNetworkUpdate(const String&, bool);
  14444. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14445. void SetMaxAnchor(float, float);
  14446. void SetMaxSize(int, int);
  14447. void SetMinAnchor(float, float);
  14448. void SetMinSize(int, int);
  14449. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14450. void SetPivot(float, float);
  14451. void SetPosition(int, int);
  14452. void SetSize(int, int);
  14453. bool SetStyle(const String&, XMLFile = null);
  14454. bool SetStyle(const XMLElement&);
  14455. bool SetStyleAuto(XMLFile = null);
  14456. void UpdateLayout();
  14457. const Variant& GetVar(const StringHash&);
  14458. // Properties:
  14459. bool animationEnabled;
  14460. /* readonly */
  14461. Array<Variant> attributeDefaults;
  14462. /* readonly */
  14463. Array<AttributeInfo> attributeInfos;
  14464. Array<Variant> attributes;
  14465. BlendMode blendMode;
  14466. IntRect border;
  14467. bool bringToBack;
  14468. bool bringToFront;
  14469. /* readonly */
  14470. String category;
  14471. /* readonly */
  14472. IntVector2 childOffset;
  14473. /* readonly */
  14474. Array<UIElement> children;
  14475. IntRect clipBorder;
  14476. bool clipChildren;
  14477. /* writeonly */
  14478. Color color;
  14479. /* readonly */
  14480. bool colorGradient;
  14481. Array<Color> colors;
  14482. /* readonly */
  14483. IntRect combinedScreenRect;
  14484. XMLFile defaultStyle;
  14485. /* readonly */
  14486. float derivedOpacity;
  14487. /* readonly */
  14488. uint dragButtonCombo;
  14489. /* readonly */
  14490. int dragButtonCount;
  14491. uint dragDropMode;
  14492. bool editable;
  14493. bool elementEventSender;
  14494. bool enableAnchor;
  14495. bool enabled;
  14496. /* readonly */
  14497. bool enabledSelf;
  14498. /* readonly */
  14499. bool fixedHeight;
  14500. bool fixedHeightResizing;
  14501. /* readonly */
  14502. bool fixedSize;
  14503. /* readonly */
  14504. bool fixedWidth;
  14505. bool fixedWidthResizing;
  14506. bool focus;
  14507. FocusMode focusMode;
  14508. int height;
  14509. HorizontalAlignment horizontalAlignment;
  14510. IntVector2 hoverOffset;
  14511. /* readonly */
  14512. bool hovering;
  14513. IntRect imageBorder;
  14514. IntRect imageRect;
  14515. int indent;
  14516. int indentSpacing;
  14517. /* readonly */
  14518. int indentWidth;
  14519. bool internal;
  14520. IntRect layoutBorder;
  14521. Vector2 layoutFlexScale;
  14522. LayoutMode layoutMode;
  14523. int layoutSpacing;
  14524. Vector2 maxAnchor;
  14525. int maxHeight;
  14526. IntVector2 maxOffset;
  14527. IntVector2 maxSize;
  14528. int maxWidth;
  14529. Vector2 minAnchor;
  14530. int minHeight;
  14531. IntVector2 minOffset;
  14532. IntVector2 minSize;
  14533. int minWidth;
  14534. bool modal;
  14535. bool modalAutoDismiss;
  14536. Color modalFrameColor;
  14537. IntVector2 modalFrameSize;
  14538. Color modalShadeColor;
  14539. bool movable;
  14540. String name;
  14541. /* readonly */
  14542. uint numAllChildren;
  14543. /* readonly */
  14544. uint numAttributes;
  14545. /* readonly */
  14546. uint numChildren;
  14547. ObjectAnimation objectAnimation;
  14548. float opacity;
  14549. UIElement parent;
  14550. Vector2 pivot;
  14551. IntVector2 position;
  14552. int priority;
  14553. /* readonly */
  14554. int refs;
  14555. bool resizable;
  14556. IntRect resizeBorder;
  14557. /* readonly */
  14558. UIElement root;
  14559. /* readonly */
  14560. IntVector2 screenPosition;
  14561. bool selected;
  14562. IntVector2 size;
  14563. bool sortChildren;
  14564. String style;
  14565. /* readonly */
  14566. Array<String> tags;
  14567. bool temporary;
  14568. Texture texture;
  14569. bool tiled;
  14570. TraversalMode traversalMode;
  14571. /* readonly */
  14572. StringHash type;
  14573. /* readonly */
  14574. String typeName;
  14575. bool useDerivedOpacity;
  14576. /* readonly */
  14577. VariantMap vars;
  14578. VerticalAlignment verticalAlignment;
  14579. bool visible;
  14580. /* readonly */
  14581. bool visibleEffective;
  14582. /* readonly */
  14583. int weakRefs;
  14584. int width;
  14585. };
  14586. class XMLElement
  14587. {
  14588. public:
  14589. ~XMLElement();
  14590. XMLElement();
  14591. XMLElement(const XMLElement&in);
  14592. // Methods:
  14593. XMLElement CreateChild(const String&);
  14594. String GetAttribute(const String& = String ( )) const;
  14595. String GetAttributeLower(const String&) const;
  14596. Array<String> GetAttributeNames() const;
  14597. String GetAttributeUpper(const String&) const;
  14598. bool GetBool(const String&) const;
  14599. BoundingBox GetBoundingBox() const;
  14600. XMLElement GetChild(const String& = String ( )) const;
  14601. Color GetColor(const String&) const;
  14602. double GetDouble(const String&) const;
  14603. float GetFloat(const String&) const;
  14604. int GetInt(const String&) const;
  14605. int64 GetInt64(const String&) const;
  14606. IntRect GetIntRect(const String&) const;
  14607. IntVector2 GetIntVector2(const String&) const;
  14608. IntVector3 GetIntVector3(const String&) const;
  14609. Matrix3 GetMatrix3(const String&) const;
  14610. Matrix3x4 GetMatrix3x4(const String&) const;
  14611. Matrix4 GetMatrix4(const String&) const;
  14612. XMLElement GetNext(const String& = String ( )) const;
  14613. XMLElement GetOrCreateChild(const String&);
  14614. Quaternion GetQuaternion(const String&) const;
  14615. ResourceRef GetResourceRef() const;
  14616. ResourceRefList GetResourceRefList() const;
  14617. uint GetUInt(const String&) const;
  14618. uint64 GetUInt64(const String&) const;
  14619. String GetValue() const;
  14620. Variant GetVariant() const;
  14621. VariantMap GetVariantMap() const;
  14622. Array<Variant> GetVariantVector() const;
  14623. Vector2 GetVector2(const String&) const;
  14624. Vector3 GetVector3(const String&) const;
  14625. Vector4 GetVector4(const String&) const;
  14626. Variant GetVectorVariant(const String&) const;
  14627. bool HasAttribute(const String&) const;
  14628. bool HasChild(const String&) const;
  14629. bool RemoveAttribute(const String& = String ( ));
  14630. bool RemoveChild(const String&);
  14631. bool RemoveChild(const XMLElement&);
  14632. bool RemoveChildren(const String& = String ( ));
  14633. XPathResultSet Select(const String&);
  14634. XPathResultSet SelectPrepared(const XPathQuery&);
  14635. XMLElement SelectSingle(const String&);
  14636. XMLElement SelectSinglePrepared(const XPathQuery&);
  14637. bool SetAttribute(const String&);
  14638. bool SetAttribute(const String&, const String&);
  14639. bool SetBool(const String&, bool);
  14640. bool SetBoundingBox(const BoundingBox&);
  14641. bool SetColor(const String&, const Color&);
  14642. bool SetDouble(const String&, double);
  14643. bool SetFloat(const String&, float);
  14644. bool SetInt(const String&, int);
  14645. bool SetInt64(const String&, int64);
  14646. bool SetIntRect(const String&, const IntRect&);
  14647. bool SetIntVector2(const String&, const IntVector2&);
  14648. bool SetIntVector3(const String&, const IntVector3&);
  14649. bool SetMatrix3(const String&, const Matrix3&);
  14650. bool SetMatrix3x4(const String&, const Matrix3x4&);
  14651. bool SetMatrix4(const String&, const Matrix4&);
  14652. bool SetQuaternion(const String&, const Quaternion&);
  14653. bool SetResourceRef(const String&, const ResourceRef&);
  14654. bool SetResourceRefList(const String&, const ResourceRefList&);
  14655. bool SetUInt(const String&, uint);
  14656. bool SetUInt64(const String&, uint64);
  14657. bool SetValue(const String&);
  14658. bool SetVariant(const Variant&);
  14659. bool SetVariantMap(const VariantMap&);
  14660. bool SetVariantVector(Array<Variant>);
  14661. bool SetVector2(const String&, const Vector2&);
  14662. bool SetVector3(const String&, const Vector3&);
  14663. bool SetVector4(const String&, const Vector4&);
  14664. bool SetVectorVariant(const String&, const Variant&);
  14665. // Properties:
  14666. /* readonly */
  14667. XMLFile file;
  14668. /* readonly */
  14669. bool isNull;
  14670. /* readonly */
  14671. String name;
  14672. /* readonly */
  14673. XMLElement nextResult;
  14674. /* readonly */
  14675. bool notNull;
  14676. /* readonly */
  14677. uint numAttributes;
  14678. /* readonly */
  14679. XMLElement parent;
  14680. String value;
  14681. };
  14682. class XMLFile
  14683. {
  14684. public:
  14685. XMLFile();
  14686. XMLFile(const String&in);
  14687. // Methods:
  14688. XMLElement CreateRoot(const String&);
  14689. bool FromString(const String&);
  14690. XMLElement GetOrCreateRoot(const String&);
  14691. XMLElement GetRoot(const String& = String ( ));
  14692. bool HasSubscribedToEvent(Object, const String&);
  14693. bool HasSubscribedToEvent(const String&);
  14694. bool Load(File);
  14695. bool Load(VectorBuffer&);
  14696. bool Load(const String&);
  14697. void Patch(XMLElement);
  14698. void Patch(XMLFile);
  14699. bool Save(File) const;
  14700. bool Save(File, const String&) const;
  14701. bool Save(VectorBuffer&) const;
  14702. bool Save(const String&) const;
  14703. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14704. String ToString(const String& = String ( "\t" )) const;
  14705. // Properties:
  14706. /* readonly */
  14707. String category;
  14708. /* readonly */
  14709. uint memoryUse;
  14710. String name;
  14711. /* readonly */
  14712. int refs;
  14713. /* readonly */
  14714. XMLElement root;
  14715. /* readonly */
  14716. StringHash type;
  14717. /* readonly */
  14718. String typeName;
  14719. /* readonly */
  14720. uint useTimer;
  14721. /* readonly */
  14722. int weakRefs;
  14723. };
  14724. class XPathQuery
  14725. {
  14726. public:
  14727. ~XPathQuery();
  14728. XPathQuery();
  14729. XPathQuery(const String&in, const String&inout arg1 = String ( ));
  14730. // Methods:
  14731. void Bind();
  14732. void Clear();
  14733. XPathResultSet Evaluate(XMLElement);
  14734. bool EvaluateToBool(XMLElement);
  14735. float EvaluateToFloat(XMLElement);
  14736. String EvaluateToString(XMLElement);
  14737. bool SetQuery(const String&, const String& = String ( ), bool = true);
  14738. bool SetVariable(const String&, bool);
  14739. bool SetVariable(const String&, const String&);
  14740. bool SetVariable(const String&, const XPathResultSet&);
  14741. bool SetVariable(const String&, float);
  14742. // Properties:
  14743. String query;
  14744. };
  14745. class XPathResultSet
  14746. {
  14747. public:
  14748. ~XPathResultSet();
  14749. XPathResultSet();
  14750. XPathResultSet(const XPathResultSet&in);
  14751. // Properties:
  14752. /* readonly */
  14753. bool empty;
  14754. /* readonly */
  14755. XMLElement firstResult;
  14756. /* readonly */
  14757. uint size;
  14758. };
  14759. class Zone
  14760. {
  14761. public:
  14762. // Methods:
  14763. void ApplyAttributes();
  14764. void DrawDebugGeometry(DebugRenderer, bool);
  14765. Variant GetAttribute(const String&) const;
  14766. ValueAnimation GetAttributeAnimation(const String&) const;
  14767. float GetAttributeAnimationSpeed(const String&) const;
  14768. float GetAttributeAnimationTime(const String&) const;
  14769. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14770. Variant GetAttributeDefault(const String&) const;
  14771. bool GetInterceptNetworkUpdate(const String&) const;
  14772. bool HasSubscribedToEvent(Object, const String&);
  14773. bool HasSubscribedToEvent(const String&);
  14774. bool IsInView(Camera) const;
  14775. bool Load(File, bool = false);
  14776. bool Load(VectorBuffer&, bool = false);
  14777. bool LoadJSON(const JSONValue&, bool = false);
  14778. bool LoadXML(const XMLElement&, bool = false);
  14779. void MarkNetworkUpdate() const;
  14780. void Remove();
  14781. void RemoveAttributeAnimation(const String&);
  14782. void RemoveInstanceDefault();
  14783. void RemoveObjectAnimation();
  14784. void ResetToDefault();
  14785. bool Save(File) const;
  14786. bool Save(VectorBuffer&) const;
  14787. bool SaveJSON(JSONValue&) const;
  14788. bool SaveXML(XMLElement&) const;
  14789. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14790. void SetAnimationTime(float);
  14791. bool SetAttribute(const String&, const Variant&);
  14792. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14793. void SetAttributeAnimationSpeed(const String&, float);
  14794. void SetAttributeAnimationTime(const String&, float);
  14795. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14796. void SetInterceptNetworkUpdate(const String&, bool);
  14797. // Properties:
  14798. Color ambientColor;
  14799. /* readonly */
  14800. Color ambientEndColor;
  14801. bool ambientGradient;
  14802. /* readonly */
  14803. Color ambientStartColor;
  14804. bool animationEnabled;
  14805. /* readonly */
  14806. Array<Variant> attributeDefaults;
  14807. /* readonly */
  14808. Array<AttributeInfo> attributeInfos;
  14809. Array<Variant> attributes;
  14810. BoundingBox boundingBox;
  14811. bool castShadows;
  14812. /* readonly */
  14813. String category;
  14814. float drawDistance;
  14815. bool enabled;
  14816. /* readonly */
  14817. bool enabledEffective;
  14818. Color fogColor;
  14819. float fogEnd;
  14820. float fogHeight;
  14821. float fogHeightScale;
  14822. float fogStart;
  14823. bool heightFog;
  14824. /* readonly */
  14825. uint id;
  14826. /* readonly */
  14827. bool inView;
  14828. /* readonly */
  14829. Matrix3x4 inverseWorldTransform;
  14830. uint lightMask;
  14831. float lodBias;
  14832. uint maxLights;
  14833. /* readonly */
  14834. Node node;
  14835. /* readonly */
  14836. uint numAttributes;
  14837. ObjectAnimation objectAnimation;
  14838. bool occludee;
  14839. bool occluder;
  14840. bool override;
  14841. int priority;
  14842. /* readonly */
  14843. int refs;
  14844. float shadowDistance;
  14845. uint shadowMask;
  14846. bool temporary;
  14847. /* readonly */
  14848. StringHash type;
  14849. /* readonly */
  14850. String typeName;
  14851. uint viewMask;
  14852. /* readonly */
  14853. int weakRefs;
  14854. /* readonly */
  14855. BoundingBox worldBoundingBox;
  14856. uint zoneMask;
  14857. Texture zoneTexture;
  14858. };
  14859. // Enumerations
  14860. enum AnimationBlendMode
  14861. {
  14862. ABM_LERP,
  14863. ABM_ADDITIVE,
  14864. };
  14865. enum AutoRemoveMode
  14866. {
  14867. REMOVE_DISABLED,
  14868. REMOVE_COMPONENT,
  14869. REMOVE_NODE,
  14870. };
  14871. enum BlendMode
  14872. {
  14873. BLEND_REPLACE,
  14874. BLEND_ADD,
  14875. BLEND_MULTIPLY,
  14876. BLEND_ALPHA,
  14877. BLEND_ADDALPHA,
  14878. BLEND_PREMULALPHA,
  14879. BLEND_INVDESTALPHA,
  14880. BLEND_SUBTRACT,
  14881. BLEND_SUBTRACTALPHA,
  14882. };
  14883. enum BodyType2D
  14884. {
  14885. BT_STATIC,
  14886. BT_KINEMATIC,
  14887. BT_DYNAMIC,
  14888. };
  14889. enum CollisionEventMode
  14890. {
  14891. COLLISION_NEVER,
  14892. COLLISION_ACTIVE,
  14893. COLLISION_ALWAYS,
  14894. };
  14895. enum CompareMode
  14896. {
  14897. CMP_ALWAYS,
  14898. CMP_EQUAL,
  14899. CMP_NOTEQUAL,
  14900. CMP_LESS,
  14901. CMP_LESSEQUAL,
  14902. CMP_GREATER,
  14903. CMP_GREATEREQUAL,
  14904. };
  14905. enum CompressedFormat
  14906. {
  14907. CF_NONE,
  14908. CF_RGBA,
  14909. CF_DXT1,
  14910. CF_DXT3,
  14911. CF_DXT5,
  14912. CF_ETC1,
  14913. CF_PVRTC_RGB_2BPP,
  14914. CF_PVRTC_RGBA_2BPP,
  14915. CF_PVRTC_RGB_4BPP,
  14916. CF_PVRTC_RGBA_4BPP,
  14917. };
  14918. enum ConstraintType
  14919. {
  14920. CONSTRAINT_POINT,
  14921. CONSTRAINT_HINGE,
  14922. CONSTRAINT_SLIDER,
  14923. CONSTRAINT_CONETWIST,
  14924. };
  14925. enum Corner
  14926. {
  14927. C_TOPLEFT,
  14928. C_TOPRIGHT,
  14929. C_BOTTOMLEFT,
  14930. C_BOTTOMRIGHT,
  14931. };
  14932. enum CreateMode
  14933. {
  14934. REPLICATED,
  14935. LOCAL,
  14936. };
  14937. enum CrowdAgentRequestedTarget
  14938. {
  14939. CA_REQUESTEDTARGET_NONE,
  14940. CA_REQUESTEDTARGET_POSITION,
  14941. CA_REQUESTEDTARGET_VELOCITY,
  14942. };
  14943. enum CrowdAgentState
  14944. {
  14945. CA_STATE_INVALID,
  14946. CA_STATE_WALKING,
  14947. CA_STATE_OFFMESH,
  14948. };
  14949. enum CrowdAgentTargetState
  14950. {
  14951. CA_TARGET_NONE,
  14952. CA_TARGET_FAILED,
  14953. CA_TARGET_VALID,
  14954. CA_TARGET_REQUESTING,
  14955. CA_TARGET_WAITINGFORQUEUE,
  14956. CA_TARGET_WAITINGFORPATH,
  14957. CA_TARGET_VELOCITY,
  14958. };
  14959. enum CubeMapFace
  14960. {
  14961. FACE_POSITIVE_X,
  14962. FACE_NEGATIVE_X,
  14963. FACE_POSITIVE_Y,
  14964. FACE_NEGATIVE_Y,
  14965. FACE_POSITIVE_Z,
  14966. FACE_NEGATIVE_Z,
  14967. };
  14968. enum CullMode
  14969. {
  14970. CULL_NONE,
  14971. CULL_CCW,
  14972. CULL_CW,
  14973. };
  14974. enum CursorShape
  14975. {
  14976. CS_NORMAL,
  14977. CS_IBEAM,
  14978. CS_CROSS,
  14979. CS_RESIZEVERTICAL,
  14980. CS_RESIZEDIAGONAL_TOPRIGHT,
  14981. CS_RESIZEHORIZONTAL,
  14982. CS_RESIZEDIAGONAL_TOPLEFT,
  14983. CS_RESIZE_ALL,
  14984. CS_ACCEPTDROP,
  14985. CS_REJECTDROP,
  14986. CS_BUSY,
  14987. CS_BUSY_ARROW,
  14988. };
  14989. enum DBAPI
  14990. {
  14991. DBAPI_SQLITE,
  14992. DBAPI_ODBC,
  14993. };
  14994. enum DumpMode
  14995. {
  14996. DOXYGEN,
  14997. C_HEADER,
  14998. };
  14999. enum EmitterType
  15000. {
  15001. EMITTER_SPHERE,
  15002. EMITTER_BOX,
  15003. };
  15004. enum EmitterType2D
  15005. {
  15006. EMITTER_TYPE_GRAVITY,
  15007. EMITTER_TYPE_RADIAL,
  15008. };
  15009. enum FaceCameraMode
  15010. {
  15011. FC_NONE,
  15012. FC_ROTATE_XYZ,
  15013. FC_ROTATE_Y,
  15014. FC_LOOKAT_XYZ,
  15015. FC_LOOKAT_Y,
  15016. FC_LOOKAT_MIXED,
  15017. FC_DIRECTION,
  15018. };
  15019. enum FileMode
  15020. {
  15021. FILE_READ,
  15022. FILE_WRITE,
  15023. FILE_READWRITE,
  15024. };
  15025. enum FillMode
  15026. {
  15027. FILL_SOLID,
  15028. FILL_WIREFRAME,
  15029. FILL_POINT,
  15030. };
  15031. enum FocusMode
  15032. {
  15033. FM_NOTFOCUSABLE,
  15034. FM_RESETFOCUS,
  15035. FM_FOCUSABLE,
  15036. FM_FOCUSABLE_DEFOCUSABLE,
  15037. };
  15038. enum FontType
  15039. {
  15040. FONT_NONE,
  15041. FONT_FREETYPE,
  15042. FONT_BITMAP,
  15043. };
  15044. enum HighlightMode
  15045. {
  15046. HM_NEVER,
  15047. HM_FOCUS,
  15048. HM_ALWAYS,
  15049. };
  15050. enum HorizontalAlignment
  15051. {
  15052. HA_LEFT,
  15053. HA_CENTER,
  15054. HA_RIGHT,
  15055. HA_CUSTOM,
  15056. };
  15057. enum HttpRequestState
  15058. {
  15059. HTTP_INITIALIZING,
  15060. HTTP_ERROR,
  15061. HTTP_OPEN,
  15062. HTTP_CLOSED,
  15063. };
  15064. enum IKAlgorithm
  15065. {
  15066. FABRIK,
  15067. };
  15068. enum InterpMethod
  15069. {
  15070. IM_NONE,
  15071. IM_LINEAR,
  15072. IM_SPLINE,
  15073. };
  15074. enum InterpolationMode
  15075. {
  15076. BEZIER_CURVE,
  15077. CATMULL_ROM_CURVE,
  15078. LINEAR_CURVE,
  15079. CATMULL_ROM_FULL_CURVE,
  15080. };
  15081. enum Intersection
  15082. {
  15083. OUTSIDE,
  15084. INTERSECTS,
  15085. INSIDE,
  15086. };
  15087. enum JSONNumberType
  15088. {
  15089. JSONNT_NAN,
  15090. JSONNT_INT,
  15091. JSONNT_UINT,
  15092. JSONNT_FLOAT_DOUBLE,
  15093. };
  15094. enum JSONValueType
  15095. {
  15096. JSON_NULL,
  15097. JSON_BOOL,
  15098. JSON_NUMBER,
  15099. JSON_STRING,
  15100. JSON_ARRAY,
  15101. JSON_OBJECT,
  15102. };
  15103. enum LayoutMode
  15104. {
  15105. LM_FREE,
  15106. LM_HORIZONTAL,
  15107. LM_VERTICAL,
  15108. };
  15109. enum LightType
  15110. {
  15111. LIGHT_DIRECTIONAL,
  15112. LIGHT_SPOT,
  15113. LIGHT_POINT,
  15114. };
  15115. enum LoadMode
  15116. {
  15117. LOAD_RESOURCES_ONLY,
  15118. LOAD_SCENE,
  15119. LOAD_SCENE_AND_RESOURCES,
  15120. };
  15121. enum LoopMode2D
  15122. {
  15123. LM_DEFAULT,
  15124. LM_FORCE_LOOPED,
  15125. LM_FORCE_CLAMPED,
  15126. };
  15127. enum MouseMode
  15128. {
  15129. MM_ABSOLUTE,
  15130. MM_RELATIVE,
  15131. MM_WRAP,
  15132. MM_FREE,
  15133. };
  15134. enum NavigationPushiness
  15135. {
  15136. NAVIGATIONPUSHINESS_LOW,
  15137. NAVIGATIONPUSHINESS_MEDIUM,
  15138. NAVIGATIONPUSHINESS_HIGH,
  15139. NAVIGATIONPUSHINESS_NONE,
  15140. };
  15141. enum NavigationQuality
  15142. {
  15143. NAVIGATIONQUALITY_LOW,
  15144. NAVIGATIONQUALITY_MEDIUM,
  15145. NAVIGATIONQUALITY_HIGH,
  15146. };
  15147. enum NavmeshPartitionType
  15148. {
  15149. NAVMESH_PARTITION_WATERSHED,
  15150. NAVMESH_PARTITION_MONOTONE,
  15151. };
  15152. enum Orientation
  15153. {
  15154. O_HORIZONTAL,
  15155. O_VERTICAL,
  15156. };
  15157. enum Orientation2D
  15158. {
  15159. O_ORTHOGONAL,
  15160. O_ISOMETRIC,
  15161. O_STAGGERED,
  15162. O_HEXAGONAL,
  15163. };
  15164. enum PassLightingMode
  15165. {
  15166. LIGHTING_UNLIT,
  15167. LIGHTING_PERVERTEX,
  15168. LIGHTING_PERPIXEL,
  15169. };
  15170. enum PrimitiveType
  15171. {
  15172. TRIANGLE_LIST,
  15173. LINE_LIST,
  15174. POINT_LIST,
  15175. TRIANGLE_STRIP,
  15176. LINE_STRIP,
  15177. TRIANGLE_FAN,
  15178. };
  15179. enum RayQueryLevel
  15180. {
  15181. RAY_AABB,
  15182. RAY_OBB,
  15183. RAY_TRIANGLE,
  15184. RAY_TRIANGLE_UV,
  15185. };
  15186. enum RenderCommandSortMode
  15187. {
  15188. SORT_FRONTTOBACK,
  15189. SORT_BACKTOFRONT,
  15190. };
  15191. enum RenderCommandType
  15192. {
  15193. CMD_NONE,
  15194. CMD_CLEAR,
  15195. CMD_SCENEPASS,
  15196. CMD_QUAD,
  15197. CMD_FORWARDLIGHTS,
  15198. CMD_LIGHTVOLUMES,
  15199. CMD_RENDERUI,
  15200. CMD_SENDEVENT,
  15201. };
  15202. enum RenderSurfaceUpdateMode
  15203. {
  15204. SURFACE_MANUALUPDATE,
  15205. SURFACE_UPDATEVISIBLE,
  15206. SURFACE_UPDATEALWAYS,
  15207. };
  15208. enum RenderTargetSizeMode
  15209. {
  15210. SIZE_ABSOLUTE,
  15211. SIZE_VIEWPORTDIVISOR,
  15212. SIZE_VIEWPORTMULTIPLIER,
  15213. };
  15214. enum ShadowQuality
  15215. {
  15216. SHADOWQUALITY_SIMPLE_16BIT,
  15217. SHADOWQUALITY_SIMPLE_24BIT,
  15218. SHADOWQUALITY_PCF_16BIT,
  15219. SHADOWQUALITY_PCF_24BIT,
  15220. SHADOWQUALITY_VSM,
  15221. SHADOWQUALITY_BLUR_VSM,
  15222. };
  15223. enum ShapeType
  15224. {
  15225. SHAPE_BOX,
  15226. SHAPE_SPHERE,
  15227. SHAPE_STATICPLANE,
  15228. SHAPE_CYLINDER,
  15229. SHAPE_CAPSULE,
  15230. SHAPE_CONE,
  15231. SHAPE_TRIANGLEMESH,
  15232. SHAPE_CONVEXHULL,
  15233. SHAPE_TERRAIN,
  15234. };
  15235. enum TextEffect
  15236. {
  15237. TE_NONE,
  15238. TE_SHADOW,
  15239. TE_STROKE,
  15240. };
  15241. enum TextureAddressMode
  15242. {
  15243. ADDRESS_WRAP,
  15244. ADDRESS_MIRROR,
  15245. ADDRESS_CLAMP,
  15246. ADDRESS_BORDER,
  15247. };
  15248. enum TextureCoordinate
  15249. {
  15250. COORD_U,
  15251. COORD_V,
  15252. COORD_W,
  15253. };
  15254. enum TextureFilterMode
  15255. {
  15256. FILTER_NEAREST,
  15257. FILTER_BILINEAR,
  15258. FILTER_TRILINEAR,
  15259. FILTER_ANISOTROPIC,
  15260. FILTER_NEAREST_ANISOTROPIC,
  15261. FILTER_DEFAULT,
  15262. };
  15263. enum TextureUnit
  15264. {
  15265. TU_DIFFUSE,
  15266. TU_ALBEDOBUFFER,
  15267. TU_NORMAL,
  15268. TU_NORMALBUFFER,
  15269. TU_SPECULAR,
  15270. TU_EMISSIVE,
  15271. TU_ENVIRONMENT,
  15272. TU_LIGHTRAMP,
  15273. TU_LIGHTSHAPE,
  15274. TU_SHADOWMAP,
  15275. TU_CUSTOM1,
  15276. TU_CUSTOM2,
  15277. TU_VOLUMEMAP,
  15278. TU_FACESELECT,
  15279. TU_INDIRECTION,
  15280. TU_DEPTHBUFFER,
  15281. TU_LIGHTBUFFER,
  15282. TU_ZONE,
  15283. MAX_MATERIAL_TEXTURE_UNITS,
  15284. MAX_TEXTURE_UNITS,
  15285. };
  15286. enum TextureUsage
  15287. {
  15288. TEXTURE_STATIC,
  15289. TEXTURE_DYNAMIC,
  15290. TEXTURE_RENDERTARGET,
  15291. TEXTURE_DEPTHSTENCIL,
  15292. };
  15293. enum TileMapLayerType2D
  15294. {
  15295. LT_TILE_LAYER,
  15296. LT_OBJECT_GROUP,
  15297. LT_IMAGE_LAYER,
  15298. LT_INVALID,
  15299. };
  15300. enum TileObjectType2D
  15301. {
  15302. OT_RECTANGLE,
  15303. OT_ELLIPSE,
  15304. OT_POLYGON,
  15305. OT_POLYLINE,
  15306. OT_TILE,
  15307. OT_INVALID,
  15308. };
  15309. enum TrailType
  15310. {
  15311. TT_FACE_CAMERA,
  15312. TT_BONE,
  15313. };
  15314. enum TransformSpace
  15315. {
  15316. TS_LOCAL,
  15317. TS_PARENT,
  15318. TS_WORLD,
  15319. };
  15320. enum TraversalMode
  15321. {
  15322. TM_BREADTH_FIRST,
  15323. TM_DEPTH_FIRST,
  15324. };
  15325. enum VariantType
  15326. {
  15327. VAR_NONE,
  15328. VAR_INT,
  15329. VAR_BOOL,
  15330. VAR_FLOAT,
  15331. VAR_VECTOR2,
  15332. VAR_VECTOR3,
  15333. VAR_VECTOR4,
  15334. VAR_QUATERNION,
  15335. VAR_COLOR,
  15336. VAR_STRING,
  15337. VAR_BUFFER,
  15338. VAR_VOIDPTR,
  15339. VAR_RESOURCEREF,
  15340. VAR_RESOURCEREFLIST,
  15341. VAR_VARIANTVECTOR,
  15342. VAR_VARIANTMAP,
  15343. VAR_INTRECT,
  15344. VAR_INTVECTOR2,
  15345. VAR_INTVECTOR3,
  15346. VAR_PTR,
  15347. VAR_MATRIX3,
  15348. VAR_MATRIX3X4,
  15349. VAR_MATRIX4,
  15350. VAR_DOUBLE,
  15351. VAR_STRINGVECTOR,
  15352. VAR_RECT,
  15353. };
  15354. enum VertexElementSemantic
  15355. {
  15356. SEM_POSITION,
  15357. SEM_NORMAL,
  15358. SEM_BINORMAL,
  15359. SEM_TANGENT,
  15360. SEM_TEXCOORD,
  15361. SEM_COLOR,
  15362. SEM_BLENDWEIGHTS,
  15363. SEM_BLENDINDICES,
  15364. SEM_OBJECTINDEX,
  15365. MAX_VERTEX_ELEMENT_SEMANTICS,
  15366. };
  15367. enum VertexElementType
  15368. {
  15369. TYPE_INT,
  15370. TYPE_FLOAT,
  15371. TYPE_VECTOR2,
  15372. TYPE_VECTOR3,
  15373. TYPE_VECTOR4,
  15374. TYPE_UBYTE4,
  15375. TYPE_UBYTE4_NORM,
  15376. MAX_VERTEX_ELEMENT_TYPES,
  15377. };
  15378. enum VerticalAlignment
  15379. {
  15380. VA_TOP,
  15381. VA_CENTER,
  15382. VA_BOTTOM,
  15383. VA_CUSTOM,
  15384. };
  15385. enum WrapMode
  15386. {
  15387. WM_LOOP,
  15388. WM_ONCE,
  15389. WM_CLAMP,
  15390. };
  15391. // Global functions
  15392. float Abs(float);
  15393. float Acos(float);
  15394. String AddTrailingSlash(const String&);
  15395. float Asin(float);
  15396. float Atan(float);
  15397. float Atan2(float, float);
  15398. float Ceil(float);
  15399. int CeilToInt(float);
  15400. float Clamp(float, float, float);
  15401. int Clamp(int, int, int);
  15402. void ClearDelayedExecute(const String& = String ( ));
  15403. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  15404. float Cos(float);
  15405. uint CountSetBits(uint);
  15406. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  15407. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  15408. bool Equals(float, float);
  15409. void ErrorDialog(const String&, const String&);
  15410. float Floor(float);
  15411. int FloorToInt(float);
  15412. float Fract(float);
  15413. uint GetAlphaFormat();
  15414. Array<String> GetArguments();
  15415. String GetConsoleInput();
  15416. uint GetDepthStencilFormat();
  15417. Object GetEventSender();
  15418. String GetExtension(const String&, bool = true);
  15419. String GetFileName(const String&);
  15420. String GetFileNameAndExtension(const String&, bool = false);
  15421. String GetFileSizeString(uint64);
  15422. uint GetFloat16Format();
  15423. uint GetFloat32Format();
  15424. uint GetFormat(const String&);
  15425. Variant GetGlobalVar(const String&);
  15426. String GetInternalPath(const String&);
  15427. uint GetLinearDepthFormat();
  15428. uint GetLuminanceAlphaFormat();
  15429. uint GetLuminanceFormat();
  15430. uint GetMaxBones();
  15431. String GetMiniDumpDir();
  15432. uint GetNumLogicalCPUs();
  15433. uint GetNumPhysicalCPUs();
  15434. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  15435. Array<String> GetObjectCategories();
  15436. Array<String> GetObjectsByCategory(const String&);
  15437. String GetParentPath(const String&);
  15438. String GetPath(const String&);
  15439. String GetPlatform();
  15440. uint64 GetTotalMemory();
  15441. String GetLoginName();
  15442. String GetHostName();
  15443. String GetOSVersion();
  15444. uint GetRG16Format();
  15445. uint GetRGBA16Format();
  15446. uint GetRGBAFloat16Format();
  15447. uint GetRGBAFloat32Format();
  15448. uint GetRGBAFormat();
  15449. uint GetRGBFormat();
  15450. uint GetRGFloat16Format();
  15451. uint GetRGFloat32Format();
  15452. uint GetRandomSeed();
  15453. uint GetReadableDepthFormat();
  15454. String GetTextureUnitName(TextureUnit);
  15455. VariantType GetVariantTypeFromName(const String&);
  15456. String GetVariantTypeName(VariantType);
  15457. bool HasSubscribedToEvent(Object, const String&);
  15458. bool HasSubscribedToEvent(const String&);
  15459. float InverseLerp(float, float, float);
  15460. bool IsAbsolutePath(const String&);
  15461. bool IsAlpha(uint);
  15462. bool IsDigit(uint);
  15463. bool IsNaN(float);
  15464. bool IsPowerOfTwo(uint);
  15465. String Join(Array<String>&, const String&);
  15466. float Lerp(float, float, float);
  15467. float Ln(float);
  15468. void MarkNetworkUpdate();
  15469. float Max(float, float);
  15470. int Max(int, int);
  15471. float Min(float, float);
  15472. int Min(int, int);
  15473. float Mod(float, float);
  15474. uint NextPowerOfTwo(uint);
  15475. void OpenConsoleWindow();
  15476. float Pow(float, float);
  15477. void Print(bool, bool = false);
  15478. void Print(const String&, bool = false);
  15479. void Print(const Variant&, bool = false);
  15480. void Print(float, bool = false);
  15481. void Print(int, bool = false);
  15482. void Print(uint, bool = false);
  15483. void PrintCallStack(bool = false);
  15484. float Random();
  15485. float Random(float);
  15486. float Random(float, float);
  15487. int RandomInt();
  15488. int RandomInt(int);
  15489. int RandomInt(int, int);
  15490. float RandomNormal(float, float);
  15491. void RegisterEventName(const String&);
  15492. void Remove();
  15493. String RemoveTrailingSlash(const String&);
  15494. String ReplaceExtension(const String&, const String&);
  15495. float Round(float);
  15496. int RoundToInt(float);
  15497. uint SDBMHash(uint, uint8);
  15498. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15499. void SetGlobalVar(const String&, Variant&);
  15500. void SetMiniDumpDir(const String&);
  15501. void SetRandomSeed(uint);
  15502. float Sign(float);
  15503. float Sin(float);
  15504. float SmoothStep(float, float, float);
  15505. float Sqrt(float);
  15506. float StableRandom(const Vector2&);
  15507. float StableRandom(const Vector3&);
  15508. float StableRandom(float);
  15509. const String& GetTypeName(StringHash);
  15510. void SubscribeToEvent(Object, const String&, const String&);
  15511. void SubscribeToEvent(const String&, const String&);
  15512. float Tan(float);
  15513. uint ToLower(uint);
  15514. String ToStringHex(int);
  15515. uint ToUpper(uint);
  15516. void UnsubscribeFromAllEvents();
  15517. void UnsubscribeFromAllEventsExcept(Array<String>);
  15518. void UnsubscribeFromEvent(Object, const String&);
  15519. void UnsubscribeFromEvent(const String&);
  15520. void UnsubscribeFromEvents(Object);
  15521. Vector2 VectorCeil(const Vector2&);
  15522. Vector3 VectorCeil(const Vector3&);
  15523. Vector4 VectorCeil(const Vector4&);
  15524. IntVector2 VectorCeilToInt(const Vector2&);
  15525. IntVector3 VectorCeilToInt(const Vector3&);
  15526. Vector2 VectorFloor(const Vector2&);
  15527. Vector3 VectorFloor(const Vector3&);
  15528. Vector4 VectorFloor(const Vector4&);
  15529. IntVector2 VectorFloorToInt(const Vector2&);
  15530. IntVector3 VectorFloorToInt(const Vector3&);
  15531. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  15532. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  15533. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  15534. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  15535. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  15536. Vector2 VectorMax(const Vector2&, const Vector2&);
  15537. Vector3 VectorMax(const Vector3&, const Vector3&);
  15538. Vector4 VectorMax(const Vector4&, const Vector4&);
  15539. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  15540. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  15541. Vector2 VectorMin(const Vector2&, const Vector2&);
  15542. Vector3 VectorMin(const Vector3&, const Vector3&);
  15543. Vector4 VectorMin(const Vector4&, const Vector4&);
  15544. Vector2 VectorRound(const Vector2&);
  15545. Vector3 VectorRound(const Vector3&);
  15546. Vector4 VectorRound(const Vector4&);
  15547. IntVector2 VectorRoundToInt(const Vector2&);
  15548. IntVector3 VectorRoundToInt(const Vector3&);
  15549. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  15550. // Global properties
  15551. DBAPI DBAPI;
  15552. Audio audio;
  15553. ResourceCache cache;
  15554. Console console;
  15555. Database database;
  15556. DebugHud debugHud;
  15557. DebugRenderer debugRenderer;
  15558. Engine engine;
  15559. FileSystem fileSystem;
  15560. VariantMap globalVars;
  15561. Graphics graphics;
  15562. Input input;
  15563. Localization localization;
  15564. Log log;
  15565. Network network;
  15566. Node node;
  15567. Octree octree;
  15568. PhysicsWorld physicsWorld;
  15569. PhysicsWorld2D physicsWorld2D;
  15570. Renderer renderer;
  15571. ResourceCache resourceCache;
  15572. Scene scene;
  15573. Script script;
  15574. ScriptFile scriptFile;
  15575. ScriptInstance self;
  15576. Time time;
  15577. UI ui;
  15578. // Global constants
  15579. uint AM_COMPONENTID;
  15580. uint AM_DEFAULT;
  15581. uint AM_FILE;
  15582. uint AM_FILEREADONLY;
  15583. uint AM_LATESTDATA;
  15584. uint AM_NET;
  15585. uint AM_NODEID;
  15586. uint AM_NODEIDVECTOR;
  15587. uint AM_NOEDIT;
  15588. Color BLACK;
  15589. Color BLUE;
  15590. uint8 CHANNEL_POSITION;
  15591. uint8 CHANNEL_ROTATION;
  15592. uint8 CHANNEL_SCALE;
  15593. uint CLEAR_COLOR;
  15594. uint CLEAR_DEPTH;
  15595. uint CLEAR_STENCIL;
  15596. int CONTROLLER_AXIS_LEFTX;
  15597. int CONTROLLER_AXIS_LEFTY;
  15598. int CONTROLLER_AXIS_RIGHTX;
  15599. int CONTROLLER_AXIS_RIGHTY;
  15600. int CONTROLLER_AXIS_TRIGGERLEFT;
  15601. int CONTROLLER_AXIS_TRIGGERRIGHT;
  15602. int CONTROLLER_BUTTON_A;
  15603. int CONTROLLER_BUTTON_B;
  15604. int CONTROLLER_BUTTON_BACK;
  15605. int CONTROLLER_BUTTON_DPAD_DOWN;
  15606. int CONTROLLER_BUTTON_DPAD_LEFT;
  15607. int CONTROLLER_BUTTON_DPAD_RIGHT;
  15608. int CONTROLLER_BUTTON_DPAD_UP;
  15609. int CONTROLLER_BUTTON_GUIDE;
  15610. int CONTROLLER_BUTTON_LEFTSHOULDER;
  15611. int CONTROLLER_BUTTON_LEFTSTICK;
  15612. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  15613. int CONTROLLER_BUTTON_RIGHTSTICK;
  15614. int CONTROLLER_BUTTON_START;
  15615. int CONTROLLER_BUTTON_X;
  15616. int CONTROLLER_BUTTON_Y;
  15617. Color CYAN;
  15618. uint DD_DISABLED;
  15619. uint DD_SOURCE;
  15620. uint DD_SOURCE_AND_TARGET;
  15621. uint DD_TARGET;
  15622. uint DEBUGHUD_SHOW_ALL;
  15623. uint DEBUGHUD_SHOW_EVENTPROFILER;
  15624. uint DEBUGHUD_SHOW_MEMORY;
  15625. uint DEBUGHUD_SHOW_MODE;
  15626. uint DEBUGHUD_SHOW_NONE;
  15627. uint DEBUGHUD_SHOW_PROFILER;
  15628. uint DEBUGHUD_SHOW_STATS;
  15629. uint DEFAULT_LIGHTMASK;
  15630. uint DEFAULT_VIEWMASK;
  15631. uint DRAWABLE_ANY;
  15632. uint DRAWABLE_GEOMETRY;
  15633. uint DRAWABLE_GEOMETRY2D;
  15634. uint DRAWABLE_LIGHT;
  15635. uint DRAWABLE_ZONE;
  15636. uint FIRST_LOCAL_ID;
  15637. uint FIRST_REPLICATED_ID;
  15638. Color GRAY;
  15639. Color GREEN;
  15640. int HAT_CENTER;
  15641. int HAT_DOWN;
  15642. int HAT_LEFT;
  15643. int HAT_RIGHT;
  15644. int HAT_UP;
  15645. int KEY_0;
  15646. int KEY_1;
  15647. int KEY_2;
  15648. int KEY_3;
  15649. int KEY_4;
  15650. int KEY_5;
  15651. int KEY_6;
  15652. int KEY_7;
  15653. int KEY_8;
  15654. int KEY_9;
  15655. int KEY_A;
  15656. int KEY_ALT;
  15657. int KEY_APPLICATION;
  15658. int KEY_B;
  15659. int KEY_BACKSPACE;
  15660. int KEY_C;
  15661. int KEY_CAPSLOCK;
  15662. int KEY_CTRL;
  15663. int KEY_D;
  15664. int KEY_DELETE;
  15665. int KEY_DOWN;
  15666. int KEY_E;
  15667. int KEY_END;
  15668. int KEY_ESCAPE;
  15669. int KEY_F;
  15670. int KEY_F1;
  15671. int KEY_F10;
  15672. int KEY_F11;
  15673. int KEY_F12;
  15674. int KEY_F13;
  15675. int KEY_F14;
  15676. int KEY_F15;
  15677. int KEY_F16;
  15678. int KEY_F17;
  15679. int KEY_F18;
  15680. int KEY_F19;
  15681. int KEY_F2;
  15682. int KEY_F20;
  15683. int KEY_F21;
  15684. int KEY_F22;
  15685. int KEY_F23;
  15686. int KEY_F24;
  15687. int KEY_F3;
  15688. int KEY_F4;
  15689. int KEY_F5;
  15690. int KEY_F6;
  15691. int KEY_F7;
  15692. int KEY_F8;
  15693. int KEY_F9;
  15694. int KEY_G;
  15695. int KEY_GUI;
  15696. int KEY_H;
  15697. int KEY_HOME;
  15698. int KEY_I;
  15699. int KEY_INSERT;
  15700. int KEY_J;
  15701. int KEY_K;
  15702. int KEY_KP_0;
  15703. int KEY_KP_1;
  15704. int KEY_KP_2;
  15705. int KEY_KP_3;
  15706. int KEY_KP_4;
  15707. int KEY_KP_5;
  15708. int KEY_KP_6;
  15709. int KEY_KP_7;
  15710. int KEY_KP_8;
  15711. int KEY_KP_9;
  15712. int KEY_KP_DIVIDE;
  15713. int KEY_KP_ENTER;
  15714. int KEY_KP_MINUS;
  15715. int KEY_KP_MULTIPLY;
  15716. int KEY_KP_PERIOD;
  15717. int KEY_KP_PLUS;
  15718. int KEY_L;
  15719. int KEY_LALT;
  15720. int KEY_LCTRL;
  15721. int KEY_LEFT;
  15722. int KEY_LGUI;
  15723. int KEY_LSHIFT;
  15724. int KEY_M;
  15725. int KEY_N;
  15726. int KEY_NUMLOCKCLEAR;
  15727. int KEY_O;
  15728. int KEY_P;
  15729. int KEY_PAGEDOWN;
  15730. int KEY_PAGEUP;
  15731. int KEY_PAUSE;
  15732. int KEY_PRINTSCREEN;
  15733. int KEY_Q;
  15734. int KEY_R;
  15735. int KEY_RALT;
  15736. int KEY_RCTRL;
  15737. int KEY_RETURN;
  15738. int KEY_RETURN2;
  15739. int KEY_RGUI;
  15740. int KEY_RIGHT;
  15741. int KEY_RSHIFT;
  15742. int KEY_S;
  15743. int KEY_SCROLLLOCK;
  15744. int KEY_SELECT;
  15745. int KEY_SHIFT;
  15746. int KEY_SPACE;
  15747. int KEY_T;
  15748. int KEY_TAB;
  15749. int KEY_U;
  15750. int KEY_UNKNOWN;
  15751. int KEY_UP;
  15752. int KEY_V;
  15753. int KEY_W;
  15754. int KEY_X;
  15755. int KEY_Y;
  15756. int KEY_Z;
  15757. uint LAST_LOCAL_ID;
  15758. uint LAST_REPLICATED_ID;
  15759. int LOG_DEBUG;
  15760. int LOG_ERROR;
  15761. int LOG_INFO;
  15762. int LOG_NONE;
  15763. int LOG_WARNING;
  15764. Color MAGENTA;
  15765. uint MASK_BLENDINDICES;
  15766. uint MASK_BLENDWEIGHTS;
  15767. uint MASK_COLOR;
  15768. uint MASK_CUBETEXCOORD1;
  15769. uint MASK_CUBETEXCOORD2;
  15770. uint MASK_INSTANCEMATRIX1;
  15771. uint MASK_INSTANCEMATRIX2;
  15772. uint MASK_INSTANCEMATRIX3;
  15773. uint MASK_NONE;
  15774. uint MASK_NORMAL;
  15775. uint MASK_OBJECTINDEX;
  15776. uint MASK_POSITION;
  15777. uint MASK_TANGENT;
  15778. uint MASK_TEXCOORD1;
  15779. uint MASK_TEXCOORD2;
  15780. int MOUSEB_LEFT;
  15781. int MOUSEB_MIDDLE;
  15782. int MOUSEB_RIGHT;
  15783. float M_DEGTORAD;
  15784. float M_DEGTORAD_2;
  15785. float M_EPSILON;
  15786. float M_HALF_PI;
  15787. float M_INFINITY;
  15788. float M_LARGE_EPSILON;
  15789. float M_LARGE_VALUE;
  15790. int M_MAX_INT;
  15791. uint M_MAX_UNSIGNED;
  15792. int M_MIN_INT;
  15793. uint M_MIN_UNSIGNED;
  15794. float M_PI;
  15795. float M_RADTODEG;
  15796. uint NPOS;
  15797. float PIXEL_SIZE;
  15798. int QUALITY_HIGH;
  15799. int QUALITY_LOW;
  15800. int QUALITY_MAX;
  15801. int QUALITY_MEDIUM;
  15802. int QUAL_ALT;
  15803. int QUAL_ANY;
  15804. int QUAL_CTRL;
  15805. int QUAL_SHIFT;
  15806. Color RED;
  15807. int SCANCODE_0;
  15808. int SCANCODE_1;
  15809. int SCANCODE_2;
  15810. int SCANCODE_3;
  15811. int SCANCODE_4;
  15812. int SCANCODE_5;
  15813. int SCANCODE_6;
  15814. int SCANCODE_7;
  15815. int SCANCODE_8;
  15816. int SCANCODE_9;
  15817. int SCANCODE_A;
  15818. int SCANCODE_AC_BACK;
  15819. int SCANCODE_AC_BOOKMARKS;
  15820. int SCANCODE_AC_FORWARD;
  15821. int SCANCODE_AC_HOME;
  15822. int SCANCODE_AC_REFRESH;
  15823. int SCANCODE_AC_SEARCH;
  15824. int SCANCODE_AC_STOP;
  15825. int SCANCODE_AGAIN;
  15826. int SCANCODE_ALT;
  15827. int SCANCODE_ALTERASE;
  15828. int SCANCODE_APOSTROPHE;
  15829. int SCANCODE_APP1;
  15830. int SCANCODE_APP2;
  15831. int SCANCODE_APPLICATION;
  15832. int SCANCODE_AUDIOMUTE;
  15833. int SCANCODE_AUDIONEXT;
  15834. int SCANCODE_AUDIOPLAY;
  15835. int SCANCODE_AUDIOPREV;
  15836. int SCANCODE_AUDIOSTOP;
  15837. int SCANCODE_B;
  15838. int SCANCODE_BACKSLASH;
  15839. int SCANCODE_BACKSPACE;
  15840. int SCANCODE_BRIGHTNESSDOWN;
  15841. int SCANCODE_BRIGHTNESSUP;
  15842. int SCANCODE_C;
  15843. int SCANCODE_CALCULATOR;
  15844. int SCANCODE_CANCEL;
  15845. int SCANCODE_CAPSLOCK;
  15846. int SCANCODE_CLEAR;
  15847. int SCANCODE_CLEARAGAIN;
  15848. int SCANCODE_COMMA;
  15849. int SCANCODE_COMPUTER;
  15850. int SCANCODE_COPY;
  15851. int SCANCODE_CRSEL;
  15852. int SCANCODE_CTRL;
  15853. int SCANCODE_CURRENCYSUBUNIT;
  15854. int SCANCODE_CURRENCYUNIT;
  15855. int SCANCODE_CUT;
  15856. int SCANCODE_D;
  15857. int SCANCODE_DECIMALSEPARATOR;
  15858. int SCANCODE_DELETE;
  15859. int SCANCODE_DISPLAYSWITCH;
  15860. int SCANCODE_DOWN;
  15861. int SCANCODE_E;
  15862. int SCANCODE_EJECT;
  15863. int SCANCODE_END;
  15864. int SCANCODE_EQUALS;
  15865. int SCANCODE_ESCAPE;
  15866. int SCANCODE_EXECUTE;
  15867. int SCANCODE_EXSEL;
  15868. int SCANCODE_F;
  15869. int SCANCODE_F1;
  15870. int SCANCODE_F10;
  15871. int SCANCODE_F11;
  15872. int SCANCODE_F12;
  15873. int SCANCODE_F13;
  15874. int SCANCODE_F14;
  15875. int SCANCODE_F15;
  15876. int SCANCODE_F16;
  15877. int SCANCODE_F17;
  15878. int SCANCODE_F18;
  15879. int SCANCODE_F19;
  15880. int SCANCODE_F2;
  15881. int SCANCODE_F20;
  15882. int SCANCODE_F21;
  15883. int SCANCODE_F22;
  15884. int SCANCODE_F23;
  15885. int SCANCODE_F24;
  15886. int SCANCODE_F3;
  15887. int SCANCODE_F4;
  15888. int SCANCODE_F5;
  15889. int SCANCODE_F6;
  15890. int SCANCODE_F7;
  15891. int SCANCODE_F8;
  15892. int SCANCODE_F9;
  15893. int SCANCODE_FIND;
  15894. int SCANCODE_G;
  15895. int SCANCODE_GRAVE;
  15896. int SCANCODE_GUI;
  15897. int SCANCODE_H;
  15898. int SCANCODE_HELP;
  15899. int SCANCODE_HOME;
  15900. int SCANCODE_I;
  15901. int SCANCODE_INSERT;
  15902. int SCANCODE_INTERNATIONAL1;
  15903. int SCANCODE_INTERNATIONAL2;
  15904. int SCANCODE_INTERNATIONAL3;
  15905. int SCANCODE_INTERNATIONAL4;
  15906. int SCANCODE_INTERNATIONAL5;
  15907. int SCANCODE_INTERNATIONAL6;
  15908. int SCANCODE_INTERNATIONAL7;
  15909. int SCANCODE_INTERNATIONAL8;
  15910. int SCANCODE_INTERNATIONAL9;
  15911. int SCANCODE_J;
  15912. int SCANCODE_K;
  15913. int SCANCODE_KBDILLUMDOWN;
  15914. int SCANCODE_KBDILLUMTOGGLE;
  15915. int SCANCODE_KBDILLUMUP;
  15916. int SCANCODE_KP_0;
  15917. int SCANCODE_KP_00;
  15918. int SCANCODE_KP_000;
  15919. int SCANCODE_KP_1;
  15920. int SCANCODE_KP_2;
  15921. int SCANCODE_KP_3;
  15922. int SCANCODE_KP_4;
  15923. int SCANCODE_KP_5;
  15924. int SCANCODE_KP_6;
  15925. int SCANCODE_KP_7;
  15926. int SCANCODE_KP_8;
  15927. int SCANCODE_KP_9;
  15928. int SCANCODE_KP_A;
  15929. int SCANCODE_KP_AMPERSAND;
  15930. int SCANCODE_KP_AT;
  15931. int SCANCODE_KP_B;
  15932. int SCANCODE_KP_BACKSPACE;
  15933. int SCANCODE_KP_BINARY;
  15934. int SCANCODE_KP_C;
  15935. int SCANCODE_KP_CLEAR;
  15936. int SCANCODE_KP_CLEARENTRY;
  15937. int SCANCODE_KP_COLON;
  15938. int SCANCODE_KP_COMMA;
  15939. int SCANCODE_KP_D;
  15940. int SCANCODE_KP_DBLAMPERSAND;
  15941. int SCANCODE_KP_DBLVERTICALBAR;
  15942. int SCANCODE_KP_DECIMAL;
  15943. int SCANCODE_KP_DIVIDE;
  15944. int SCANCODE_KP_E;
  15945. int SCANCODE_KP_ENTER;
  15946. int SCANCODE_KP_EQUALS;
  15947. int SCANCODE_KP_EQUALSAS400;
  15948. int SCANCODE_KP_EXCLAM;
  15949. int SCANCODE_KP_F;
  15950. int SCANCODE_KP_GREATER;
  15951. int SCANCODE_KP_HASH;
  15952. int SCANCODE_KP_HEXADECIMAL;
  15953. int SCANCODE_KP_LEFTBRACE;
  15954. int SCANCODE_KP_LEFTPAREN;
  15955. int SCANCODE_KP_LESS;
  15956. int SCANCODE_KP_MEMADD;
  15957. int SCANCODE_KP_MEMCLEAR;
  15958. int SCANCODE_KP_MEMDIVIDE;
  15959. int SCANCODE_KP_MEMMULTIPLY;
  15960. int SCANCODE_KP_MEMRECALL;
  15961. int SCANCODE_KP_MEMSTORE;
  15962. int SCANCODE_KP_MEMSUBTRACT;
  15963. int SCANCODE_KP_MINUS;
  15964. int SCANCODE_KP_MULTIPLY;
  15965. int SCANCODE_KP_OCTAL;
  15966. int SCANCODE_KP_PERCENT;
  15967. int SCANCODE_KP_PERIOD;
  15968. int SCANCODE_KP_PLUS;
  15969. int SCANCODE_KP_PLUSMINUS;
  15970. int SCANCODE_KP_POWER;
  15971. int SCANCODE_KP_RIGHTBRACE;
  15972. int SCANCODE_KP_RIGHTPAREN;
  15973. int SCANCODE_KP_SPACE;
  15974. int SCANCODE_KP_TAB;
  15975. int SCANCODE_KP_VERTICALBAR;
  15976. int SCANCODE_KP_XOR;
  15977. int SCANCODE_L;
  15978. int SCANCODE_LALT;
  15979. int SCANCODE_LANG1;
  15980. int SCANCODE_LANG2;
  15981. int SCANCODE_LANG3;
  15982. int SCANCODE_LANG4;
  15983. int SCANCODE_LANG5;
  15984. int SCANCODE_LANG6;
  15985. int SCANCODE_LANG7;
  15986. int SCANCODE_LANG8;
  15987. int SCANCODE_LANG9;
  15988. int SCANCODE_LCTRL;
  15989. int SCANCODE_LEFT;
  15990. int SCANCODE_LEFTBRACKET;
  15991. int SCANCODE_LGUI;
  15992. int SCANCODE_LSHIFT;
  15993. int SCANCODE_M;
  15994. int SCANCODE_MAIL;
  15995. int SCANCODE_MEDIASELECT;
  15996. int SCANCODE_MENU;
  15997. int SCANCODE_MINUS;
  15998. int SCANCODE_MODE;
  15999. int SCANCODE_MUTE;
  16000. int SCANCODE_N;
  16001. int SCANCODE_NONUSBACKSLASH;
  16002. int SCANCODE_NONUSHASH;
  16003. int SCANCODE_NUMLOCKCLEAR;
  16004. int SCANCODE_O;
  16005. int SCANCODE_OPER;
  16006. int SCANCODE_OUT;
  16007. int SCANCODE_P;
  16008. int SCANCODE_PAGEDOWN;
  16009. int SCANCODE_PAGEUP;
  16010. int SCANCODE_PASTE;
  16011. int SCANCODE_PAUSE;
  16012. int SCANCODE_PERIOD;
  16013. int SCANCODE_POWER;
  16014. int SCANCODE_PRINTSCREEN;
  16015. int SCANCODE_PRIOR;
  16016. int SCANCODE_Q;
  16017. int SCANCODE_R;
  16018. int SCANCODE_RALT;
  16019. int SCANCODE_RCTRL;
  16020. int SCANCODE_RETURN;
  16021. int SCANCODE_RETURN2;
  16022. int SCANCODE_RGUI;
  16023. int SCANCODE_RIGHT;
  16024. int SCANCODE_RIGHTBRACKET;
  16025. int SCANCODE_RSHIFT;
  16026. int SCANCODE_S;
  16027. int SCANCODE_SCROLLLOCK;
  16028. int SCANCODE_SELECT;
  16029. int SCANCODE_SEMICOLON;
  16030. int SCANCODE_SEPARATOR;
  16031. int SCANCODE_SHIFT;
  16032. int SCANCODE_SLASH;
  16033. int SCANCODE_SLEEP;
  16034. int SCANCODE_SPACE;
  16035. int SCANCODE_STOP;
  16036. int SCANCODE_SYSREQ;
  16037. int SCANCODE_T;
  16038. int SCANCODE_TAB;
  16039. int SCANCODE_THOUSANDSSEPARATOR;
  16040. int SCANCODE_U;
  16041. int SCANCODE_UNDO;
  16042. int SCANCODE_UNKNOWN;
  16043. int SCANCODE_UP;
  16044. int SCANCODE_V;
  16045. int SCANCODE_VOLUMEDOWN;
  16046. int SCANCODE_VOLUMEUP;
  16047. int SCANCODE_W;
  16048. int SCANCODE_WWW;
  16049. int SCANCODE_X;
  16050. int SCANCODE_Y;
  16051. int SCANCODE_Z;
  16052. uint SCAN_DIRS;
  16053. uint SCAN_FILES;
  16054. uint SCAN_HIDDEN;
  16055. String SOUND_AMBIENT;
  16056. String SOUND_EFFECT;
  16057. String SOUND_MASTER;
  16058. String SOUND_MUSIC;
  16059. String SOUND_VOICE;
  16060. Color TRANSPARENT;
  16061. uint VO_DISABLE_OCCLUSION;
  16062. uint VO_DISABLE_SHADOWS;
  16063. uint VO_LOW_MATERIAL_QUALITY;
  16064. uint VO_NONE;
  16065. Color WHITE;
  16066. Color YELLOW;