AngelScriptAPI.h 405 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437
  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. Array<JoystickState> joysticks;
  5709. /* readonly */
  5710. Array<JoystickState> joysticksByIndex;
  5711. /* readonly */
  5712. Array<JoystickState> joysticksByName;
  5713. /* readonly */
  5714. Array<bool> keyDown;
  5715. /* readonly */
  5716. Array<bool> keyPress;
  5717. /* readonly */
  5718. bool minimized;
  5719. /* readonly */
  5720. Array<bool> mouseButtonDown;
  5721. /* readonly */
  5722. Array<bool> mouseButtonPress;
  5723. bool mouseGrabbed;
  5724. /* readonly */
  5725. bool mouseLocked;
  5726. MouseMode mouseMode;
  5727. /* readonly */
  5728. IntVector2 mouseMove;
  5729. /* readonly */
  5730. int mouseMoveWheel;
  5731. /* readonly */
  5732. int mouseMoveX;
  5733. /* readonly */
  5734. int mouseMoveY;
  5735. IntVector2 mousePosition;
  5736. bool mouseVisible;
  5737. /* readonly */
  5738. uint numJoysticks;
  5739. /* readonly */
  5740. uint numTouches;
  5741. /* readonly */
  5742. Array<bool> qualifierDown;
  5743. /* readonly */
  5744. Array<bool> qualifierPress;
  5745. /* readonly */
  5746. int qualifiers;
  5747. /* readonly */
  5748. int refs;
  5749. /* readonly */
  5750. Array<bool> scancodeDown;
  5751. /* readonly */
  5752. Array<bool> scancodePress;
  5753. Array<bool> screenJoystickVisible;
  5754. /* readonly */
  5755. bool screenKeyboardSupport;
  5756. bool screenKeyboardVisible;
  5757. bool toggleFullscreen;
  5758. bool touchEmulation;
  5759. /* readonly */
  5760. Array<TouchState> touches;
  5761. /* readonly */
  5762. StringHash type;
  5763. /* readonly */
  5764. String typeName;
  5765. /* readonly */
  5766. int weakRefs;
  5767. };
  5768. class IntRect
  5769. {
  5770. public:
  5771. IntRect();
  5772. IntRect(const IntRect&in);
  5773. IntRect(int, int, int, int);
  5774. IntRect(int[]&inout);
  5775. // Methods:
  5776. Intersection IsInside(const IntVector2&) const;
  5777. // Properties:
  5778. int bottom;
  5779. /* readonly */
  5780. Array<int> data;
  5781. /* readonly */
  5782. int height;
  5783. int left;
  5784. int right;
  5785. /* readonly */
  5786. IntVector2 size;
  5787. int top;
  5788. /* readonly */
  5789. int width;
  5790. };
  5791. class IntVector2
  5792. {
  5793. public:
  5794. IntVector2();
  5795. IntVector2(const IntVector2&in);
  5796. IntVector2(int, int);
  5797. IntVector2(int[]&inout);
  5798. // Methods:
  5799. float Length() const;
  5800. uint ToHash() const;
  5801. String ToString() const;
  5802. // Properties:
  5803. /* readonly */
  5804. Array<int> data;
  5805. int x;
  5806. int y;
  5807. // Constants:
  5808. static const IntVector2 DOWN;
  5809. static const IntVector2 LEFT;
  5810. static const IntVector2 ONE;
  5811. static const IntVector2 RIGHT;
  5812. static const IntVector2 UP;
  5813. static const IntVector2 ZERO;
  5814. };
  5815. class IntVector3
  5816. {
  5817. public:
  5818. IntVector3();
  5819. IntVector3(const IntVector3&in);
  5820. IntVector3(int, int, int);
  5821. IntVector3(int[]&inout);
  5822. // Methods:
  5823. float Length() const;
  5824. uint ToHash() const;
  5825. String ToString() const;
  5826. // Properties:
  5827. /* readonly */
  5828. Array<int> data;
  5829. int x;
  5830. int y;
  5831. int z;
  5832. // Constants:
  5833. static const IntVector3 BACK;
  5834. static const IntVector3 DOWN;
  5835. static const IntVector3 FORWARD;
  5836. static const IntVector3 LEFT;
  5837. static const IntVector3 ONE;
  5838. static const IntVector3 RIGHT;
  5839. static const IntVector3 UP;
  5840. static const IntVector3 ZERO;
  5841. };
  5842. class JSONFile
  5843. {
  5844. public:
  5845. JSONFile();
  5846. JSONFile(const String&in);
  5847. // Methods:
  5848. bool FromString(const String&);
  5849. JSONValue& GetRoot();
  5850. bool HasSubscribedToEvent(Object, const String&);
  5851. bool HasSubscribedToEvent(const String&);
  5852. bool Load(File);
  5853. bool Load(VectorBuffer&);
  5854. bool Load(const String&);
  5855. bool Save(File) const;
  5856. bool Save(File, const String&) const;
  5857. bool Save(VectorBuffer&) const;
  5858. bool Save(const String&) const;
  5859. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5860. // Properties:
  5861. /* readonly */
  5862. String category;
  5863. /* readonly */
  5864. uint memoryUse;
  5865. String name;
  5866. /* readonly */
  5867. int refs;
  5868. /* readonly */
  5869. JSONValue root;
  5870. /* readonly */
  5871. StringHash type;
  5872. /* readonly */
  5873. String typeName;
  5874. /* readonly */
  5875. uint useTimer;
  5876. /* readonly */
  5877. int weakRefs;
  5878. };
  5879. class JSONValue
  5880. {
  5881. public:
  5882. ~JSONValue();
  5883. JSONValue();
  5884. JSONValue(bool);
  5885. JSONValue(int);
  5886. JSONValue(uint);
  5887. JSONValue(float);
  5888. JSONValue(double);
  5889. JSONValue(const String&in);
  5890. JSONValue(const JSONValue&in);
  5891. // Methods:
  5892. void Clear();
  5893. bool Contains(const String&) const;
  5894. void Erase(const String&);
  5895. void Erase(uint, uint = 1);
  5896. bool GetBool() const;
  5897. double GetDouble() const;
  5898. float GetFloat() const;
  5899. int GetInt() const;
  5900. uint GetUInt() const;
  5901. void Insert(uint, const JSONValue&);
  5902. const JSONValue& Get(const String&) const;
  5903. void Pop();
  5904. void Push(const JSONValue&);
  5905. void Resize(uint);
  5906. void Set(const String&, const JSONValue&);
  5907. const String& GetString() const;
  5908. // Properties:
  5909. /* readonly */
  5910. bool isArray;
  5911. /* readonly */
  5912. bool isBool;
  5913. /* readonly */
  5914. bool isNull;
  5915. /* readonly */
  5916. bool isNumber;
  5917. /* readonly */
  5918. bool isObject;
  5919. /* readonly */
  5920. bool isString;
  5921. /* readonly */
  5922. JSONNumberType numberType;
  5923. /* readonly */
  5924. String numberTypeName;
  5925. /* readonly */
  5926. uint size;
  5927. /* readonly */
  5928. JSONValueType valueType;
  5929. /* readonly */
  5930. String valueTypeName;
  5931. };
  5932. class JoystickState
  5933. {
  5934. public:
  5935. // Properties:
  5936. /* readonly */
  5937. Array<float> axisPosition;
  5938. /* readonly */
  5939. Array<bool> buttonDown;
  5940. /* readonly */
  5941. Array<bool> buttonPress;
  5942. /* readonly */
  5943. bool controller;
  5944. /* readonly */
  5945. Array<int> hatPosition;
  5946. int joystickID;
  5947. String name;
  5948. /* readonly */
  5949. uint numAxes;
  5950. /* readonly */
  5951. uint numButtons;
  5952. /* readonly */
  5953. uint numHats;
  5954. };
  5955. class Light
  5956. {
  5957. public:
  5958. // Methods:
  5959. void ApplyAttributes();
  5960. void DrawDebugGeometry(DebugRenderer, bool);
  5961. Variant GetAttribute(const String&) const;
  5962. ValueAnimation GetAttributeAnimation(const String&) const;
  5963. float GetAttributeAnimationSpeed(const String&) const;
  5964. float GetAttributeAnimationTime(const String&) const;
  5965. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5966. Variant GetAttributeDefault(const String&) const;
  5967. bool GetInterceptNetworkUpdate(const String&) const;
  5968. bool HasSubscribedToEvent(Object, const String&);
  5969. bool HasSubscribedToEvent(const String&);
  5970. bool IsInView(Camera) const;
  5971. bool Load(File, bool = false);
  5972. bool Load(VectorBuffer&, bool = false);
  5973. bool LoadJSON(const JSONValue&, bool = false);
  5974. bool LoadXML(const XMLElement&, bool = false);
  5975. void MarkNetworkUpdate() const;
  5976. void Remove();
  5977. void RemoveAttributeAnimation(const String&);
  5978. void RemoveInstanceDefault();
  5979. void RemoveObjectAnimation();
  5980. void ResetToDefault();
  5981. bool Save(File) const;
  5982. bool Save(VectorBuffer&) const;
  5983. bool SaveJSON(JSONValue&) const;
  5984. bool SaveXML(XMLElement&) const;
  5985. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5986. void SetAnimationTime(float);
  5987. bool SetAttribute(const String&, const Variant&);
  5988. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5989. void SetAttributeAnimationSpeed(const String&, float);
  5990. void SetAttributeAnimationTime(const String&, float);
  5991. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5992. void SetInterceptNetworkUpdate(const String&, bool);
  5993. // Properties:
  5994. bool animationEnabled;
  5995. float aspectRatio;
  5996. /* readonly */
  5997. Array<Variant> attributeDefaults;
  5998. /* readonly */
  5999. Array<AttributeInfo> attributeInfos;
  6000. Array<Variant> attributes;
  6001. /* readonly */
  6002. BoundingBox boundingBox;
  6003. float brightness;
  6004. bool castShadows;
  6005. /* readonly */
  6006. String category;
  6007. Color color;
  6008. /* readonly */
  6009. Color colorFromTemperature;
  6010. float drawDistance;
  6011. /* readonly */
  6012. Color effectiveColor;
  6013. /* readonly */
  6014. float effectiveSpecularIntensity;
  6015. bool enabled;
  6016. /* readonly */
  6017. bool enabledEffective;
  6018. float fadeDistance;
  6019. float fov;
  6020. /* readonly */
  6021. Frustum frustum;
  6022. /* readonly */
  6023. uint id;
  6024. /* readonly */
  6025. bool inView;
  6026. float length;
  6027. uint lightMask;
  6028. LightType lightType;
  6029. float lodBias;
  6030. uint maxLights;
  6031. /* readonly */
  6032. bool negative;
  6033. /* readonly */
  6034. Node node;
  6035. /* readonly */
  6036. uint numAttributes;
  6037. /* readonly */
  6038. int numShadowSplits;
  6039. ObjectAnimation objectAnimation;
  6040. bool occludee;
  6041. bool occluder;
  6042. bool perVertex;
  6043. float radius;
  6044. Texture rampTexture;
  6045. float range;
  6046. /* readonly */
  6047. int refs;
  6048. BiasParameters shadowBias;
  6049. CascadeParameters shadowCascade;
  6050. float shadowDistance;
  6051. float shadowFadeDistance;
  6052. FocusParameters shadowFocus;
  6053. float shadowIntensity;
  6054. uint shadowMask;
  6055. float shadowMaxExtrusion;
  6056. float shadowNearFarRatio;
  6057. float shadowResolution;
  6058. Texture shapeTexture;
  6059. float specularIntensity;
  6060. float temperature;
  6061. bool temporary;
  6062. /* readonly */
  6063. StringHash type;
  6064. /* readonly */
  6065. String typeName;
  6066. bool usePhysicalValues;
  6067. uint viewMask;
  6068. /* readonly */
  6069. int weakRefs;
  6070. /* readonly */
  6071. BoundingBox worldBoundingBox;
  6072. uint zoneMask;
  6073. };
  6074. class LineEdit
  6075. {
  6076. public:
  6077. LineEdit();
  6078. LineEdit(const String&in);
  6079. // Methods:
  6080. void AddChild(UIElement);
  6081. void AddTag(const String&);
  6082. void AddTags(const String&, int8 = ';');
  6083. void ApplyAttributes();
  6084. void BringToFront();
  6085. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6086. void DisableLayoutUpdate();
  6087. IntVector2 ElementToScreen(const IntVector2&);
  6088. void EnableLayoutUpdate();
  6089. uint FindChild(UIElement) const;
  6090. Variant GetAttribute(const String&) const;
  6091. ValueAnimation GetAttributeAnimation(const String&) const;
  6092. float GetAttributeAnimationSpeed(const String&) const;
  6093. float GetAttributeAnimationTime(const String&) const;
  6094. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6095. Variant GetAttributeDefault(const String&) const;
  6096. UIElement GetChild(const String&, bool = false) const;
  6097. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6098. Array<UIElement> GetChildren(bool = false) const;
  6099. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6100. UIElement GetElementEventSender() const;
  6101. bool GetInterceptNetworkUpdate(const String&) const;
  6102. uint GetNumChildren(bool) const;
  6103. bool HasSubscribedToEvent(Object, const String&);
  6104. bool HasSubscribedToEvent(const String&);
  6105. bool HasTag(const String&) const;
  6106. void InsertChild(uint, UIElement);
  6107. bool IsInside(IntVector2, bool);
  6108. bool IsInsideCombined(IntVector2, bool);
  6109. bool Load(File, bool = false);
  6110. bool Load(VectorBuffer&, bool = false);
  6111. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6112. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6113. bool LoadJSON(const JSONValue&, bool = false);
  6114. bool LoadXML(File);
  6115. bool LoadXML(VectorBuffer&);
  6116. bool LoadXML(XMLFile, XMLFile);
  6117. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6118. bool LoadXML(const XMLElement&, bool = false);
  6119. void MarkNetworkUpdate() const;
  6120. void Remove();
  6121. void RemoveAllChildren();
  6122. void RemoveAllTags();
  6123. void RemoveAttributeAnimation(const String&);
  6124. void RemoveChild(UIElement, uint = 0);
  6125. void RemoveChild(uint);
  6126. void RemoveInstanceDefault();
  6127. void RemoveObjectAnimation();
  6128. bool RemoveTag(const String&);
  6129. void ResetDeepEnabled();
  6130. void ResetToDefault();
  6131. bool Save(File) const;
  6132. bool Save(VectorBuffer&) const;
  6133. bool SaveJSON(JSONValue&) const;
  6134. bool SaveXML(File, const String& = "\t");
  6135. bool SaveXML(VectorBuffer&, const String& = "\t");
  6136. bool SaveXML(XMLElement&) const;
  6137. IntVector2 ScreenToElement(const IntVector2&);
  6138. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6139. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6140. void SetAnimationTime(float);
  6141. bool SetAttribute(const String&, const Variant&);
  6142. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6143. void SetAttributeAnimationSpeed(const String&, float);
  6144. void SetAttributeAnimationTime(const String&, float);
  6145. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6146. void SetDeepEnabled(bool);
  6147. void SetEnabledRecursive(bool);
  6148. void SetFixedHeight(int);
  6149. void SetFixedSize(int, int);
  6150. void SetFixedWidth(int);
  6151. void SetFullImageRect();
  6152. void SetHoverOffset(int, int);
  6153. void SetInterceptNetworkUpdate(const String&, bool);
  6154. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6155. void SetMaxAnchor(float, float);
  6156. void SetMaxSize(int, int);
  6157. void SetMinAnchor(float, float);
  6158. void SetMinSize(int, int);
  6159. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6160. void SetPivot(float, float);
  6161. void SetPosition(int, int);
  6162. void SetSize(int, int);
  6163. bool SetStyle(const String&, XMLFile = null);
  6164. bool SetStyle(const XMLElement&);
  6165. bool SetStyleAuto(XMLFile = null);
  6166. void UpdateLayout();
  6167. const Variant& GetVar(const StringHash&);
  6168. // Properties:
  6169. bool animationEnabled;
  6170. /* readonly */
  6171. Array<Variant> attributeDefaults;
  6172. /* readonly */
  6173. Array<AttributeInfo> attributeInfos;
  6174. Array<Variant> attributes;
  6175. BlendMode blendMode;
  6176. IntRect border;
  6177. bool bringToBack;
  6178. bool bringToFront;
  6179. /* readonly */
  6180. String category;
  6181. /* readonly */
  6182. IntVector2 childOffset;
  6183. /* readonly */
  6184. Array<UIElement> children;
  6185. IntRect clipBorder;
  6186. bool clipChildren;
  6187. /* writeonly */
  6188. Color color;
  6189. /* readonly */
  6190. bool colorGradient;
  6191. Array<Color> colors;
  6192. /* readonly */
  6193. IntRect combinedScreenRect;
  6194. /* readonly */
  6195. BorderImage cursor;
  6196. float cursorBlinkRate;
  6197. bool cursorMovable;
  6198. uint cursorPosition;
  6199. XMLFile defaultStyle;
  6200. /* readonly */
  6201. float derivedOpacity;
  6202. /* readonly */
  6203. uint dragButtonCombo;
  6204. /* readonly */
  6205. int dragButtonCount;
  6206. uint dragDropMode;
  6207. uint echoCharacter;
  6208. bool editable;
  6209. bool elementEventSender;
  6210. bool enableAnchor;
  6211. bool enabled;
  6212. /* readonly */
  6213. bool enabledSelf;
  6214. /* readonly */
  6215. bool fixedHeight;
  6216. /* readonly */
  6217. bool fixedSize;
  6218. /* readonly */
  6219. bool fixedWidth;
  6220. bool focus;
  6221. FocusMode focusMode;
  6222. int height;
  6223. HorizontalAlignment horizontalAlignment;
  6224. IntVector2 hoverOffset;
  6225. /* readonly */
  6226. bool hovering;
  6227. IntRect imageBorder;
  6228. IntRect imageRect;
  6229. int indent;
  6230. int indentSpacing;
  6231. /* readonly */
  6232. int indentWidth;
  6233. bool internal;
  6234. IntRect layoutBorder;
  6235. Vector2 layoutFlexScale;
  6236. LayoutMode layoutMode;
  6237. int layoutSpacing;
  6238. Vector2 maxAnchor;
  6239. int maxHeight;
  6240. uint maxLength;
  6241. IntVector2 maxOffset;
  6242. IntVector2 maxSize;
  6243. int maxWidth;
  6244. Vector2 minAnchor;
  6245. int minHeight;
  6246. IntVector2 minOffset;
  6247. IntVector2 minSize;
  6248. int minWidth;
  6249. String name;
  6250. /* readonly */
  6251. uint numAllChildren;
  6252. /* readonly */
  6253. uint numAttributes;
  6254. /* readonly */
  6255. uint numChildren;
  6256. ObjectAnimation objectAnimation;
  6257. float opacity;
  6258. UIElement parent;
  6259. Vector2 pivot;
  6260. IntVector2 position;
  6261. int priority;
  6262. /* readonly */
  6263. int refs;
  6264. /* readonly */
  6265. UIElement root;
  6266. /* readonly */
  6267. IntVector2 screenPosition;
  6268. bool selected;
  6269. IntVector2 size;
  6270. bool sortChildren;
  6271. String style;
  6272. /* readonly */
  6273. Array<String> tags;
  6274. bool temporary;
  6275. String text;
  6276. bool textCopyable;
  6277. /* readonly */
  6278. Text textElement;
  6279. bool textSelectable;
  6280. Texture texture;
  6281. bool tiled;
  6282. TraversalMode traversalMode;
  6283. /* readonly */
  6284. StringHash type;
  6285. /* readonly */
  6286. String typeName;
  6287. bool useDerivedOpacity;
  6288. /* readonly */
  6289. VariantMap vars;
  6290. VerticalAlignment verticalAlignment;
  6291. bool visible;
  6292. /* readonly */
  6293. bool visibleEffective;
  6294. /* readonly */
  6295. int weakRefs;
  6296. int width;
  6297. };
  6298. class ListView
  6299. {
  6300. public:
  6301. ListView();
  6302. ListView(const String&in);
  6303. // Methods:
  6304. void AddChild(UIElement);
  6305. void AddItem(UIElement);
  6306. void AddSelection(uint);
  6307. void AddTag(const String&);
  6308. void AddTags(const String&, int8 = ';');
  6309. void ApplyAttributes();
  6310. void BringToFront();
  6311. void ChangeSelection(int, bool);
  6312. void ClearSelection();
  6313. void CopySelectedItemsToClipboard();
  6314. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6315. void DisableLayoutUpdate();
  6316. IntVector2 ElementToScreen(const IntVector2&);
  6317. void EnableLayoutUpdate();
  6318. void Expand(uint, bool, bool = false);
  6319. uint FindChild(UIElement) const;
  6320. uint FindItem(UIElement);
  6321. Variant GetAttribute(const String&) const;
  6322. ValueAnimation GetAttributeAnimation(const String&) const;
  6323. float GetAttributeAnimationSpeed(const String&) const;
  6324. float GetAttributeAnimationTime(const String&) const;
  6325. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6326. Variant GetAttributeDefault(const String&) const;
  6327. UIElement GetChild(const String&, bool = false) const;
  6328. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6329. Array<UIElement> GetChildren(bool = false) const;
  6330. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6331. UIElement GetElementEventSender() const;
  6332. bool GetInterceptNetworkUpdate(const String&) const;
  6333. Array<UIElement> GetItems() const;
  6334. uint GetNumChildren(bool) const;
  6335. bool HasSubscribedToEvent(Object, const String&);
  6336. bool HasSubscribedToEvent(const String&);
  6337. bool HasTag(const String&) const;
  6338. void InsertChild(uint, UIElement);
  6339. void InsertItem(uint, UIElement, UIElement = null);
  6340. bool IsExpanded(uint) const;
  6341. bool IsInside(IntVector2, bool);
  6342. bool IsInsideCombined(IntVector2, bool);
  6343. bool IsSelected(uint) const;
  6344. bool Load(File, bool = false);
  6345. bool Load(VectorBuffer&, bool = false);
  6346. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6347. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6348. bool LoadJSON(const JSONValue&, bool = false);
  6349. bool LoadXML(File);
  6350. bool LoadXML(VectorBuffer&);
  6351. bool LoadXML(XMLFile, XMLFile);
  6352. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6353. bool LoadXML(const XMLElement&, bool = false);
  6354. void MarkNetworkUpdate() const;
  6355. void Remove();
  6356. void RemoveAllChildren();
  6357. void RemoveAllItems();
  6358. void RemoveAllTags();
  6359. void RemoveAttributeAnimation(const String&);
  6360. void RemoveChild(UIElement, uint = 0);
  6361. void RemoveChild(uint);
  6362. void RemoveInstanceDefault();
  6363. void RemoveItem(UIElement, uint = 0);
  6364. void RemoveItem(uint);
  6365. void RemoveObjectAnimation();
  6366. void RemoveSelection(uint);
  6367. bool RemoveTag(const String&);
  6368. void ResetDeepEnabled();
  6369. void ResetToDefault();
  6370. bool Save(File) const;
  6371. bool Save(VectorBuffer&) const;
  6372. bool SaveJSON(JSONValue&) const;
  6373. bool SaveXML(File, const String& = "\t");
  6374. bool SaveXML(VectorBuffer&, const String& = "\t");
  6375. bool SaveXML(XMLElement&) const;
  6376. IntVector2 ScreenToElement(const IntVector2&);
  6377. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6378. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6379. void SetAnimationTime(float);
  6380. bool SetAttribute(const String&, const Variant&);
  6381. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6382. void SetAttributeAnimationSpeed(const String&, float);
  6383. void SetAttributeAnimationTime(const String&, float);
  6384. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6385. void SetDeepEnabled(bool);
  6386. void SetEnabledRecursive(bool);
  6387. void SetFixedHeight(int);
  6388. void SetFixedSize(int, int);
  6389. void SetFixedWidth(int);
  6390. void SetInterceptNetworkUpdate(const String&, bool);
  6391. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6392. void SetMaxAnchor(float, float);
  6393. void SetMaxSize(int, int);
  6394. void SetMinAnchor(float, float);
  6395. void SetMinSize(int, int);
  6396. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6397. void SetPivot(float, float);
  6398. void SetPosition(int, int);
  6399. void SetScrollBarsVisible(bool, bool);
  6400. void SetSelections(Array<uint>);
  6401. void SetSize(int, int);
  6402. bool SetStyle(const String&, XMLFile = null);
  6403. bool SetStyle(const XMLElement&);
  6404. bool SetStyleAuto(XMLFile = null);
  6405. void SetViewPosition(int, int);
  6406. void ToggleExpand(uint, bool = false);
  6407. void ToggleSelection(uint);
  6408. void UpdateLayout();
  6409. const Variant& GetVar(const StringHash&);
  6410. // Properties:
  6411. bool animationEnabled;
  6412. /* readonly */
  6413. Array<Variant> attributeDefaults;
  6414. /* readonly */
  6415. Array<AttributeInfo> attributeInfos;
  6416. Array<Variant> attributes;
  6417. bool autoDisableChildren;
  6418. float autoDisableThreshold;
  6419. int baseIndent;
  6420. bool bringToBack;
  6421. bool bringToFront;
  6422. /* readonly */
  6423. String category;
  6424. /* readonly */
  6425. IntVector2 childOffset;
  6426. /* readonly */
  6427. Array<UIElement> children;
  6428. bool clearSelectionOnDefocus;
  6429. IntRect clipBorder;
  6430. bool clipChildren;
  6431. /* writeonly */
  6432. Color color;
  6433. /* readonly */
  6434. bool colorGradient;
  6435. Array<Color> colors;
  6436. /* readonly */
  6437. IntRect combinedScreenRect;
  6438. /* readonly */
  6439. UIElement contentElement;
  6440. XMLFile defaultStyle;
  6441. /* readonly */
  6442. float derivedOpacity;
  6443. /* readonly */
  6444. uint dragButtonCombo;
  6445. /* readonly */
  6446. int dragButtonCount;
  6447. uint dragDropMode;
  6448. bool editable;
  6449. bool elementEventSender;
  6450. bool enableAnchor;
  6451. bool enabled;
  6452. /* readonly */
  6453. bool enabledSelf;
  6454. /* readonly */
  6455. bool fixedHeight;
  6456. /* readonly */
  6457. bool fixedSize;
  6458. /* readonly */
  6459. bool fixedWidth;
  6460. bool focus;
  6461. FocusMode focusMode;
  6462. int height;
  6463. bool hierarchyMode;
  6464. HighlightMode highlightMode;
  6465. HorizontalAlignment horizontalAlignment;
  6466. /* readonly */
  6467. ScrollBar horizontalScrollBar;
  6468. /* readonly */
  6469. bool hovering;
  6470. int indent;
  6471. int indentSpacing;
  6472. /* readonly */
  6473. int indentWidth;
  6474. bool internal;
  6475. /* readonly */
  6476. Array<UIElement> items;
  6477. IntRect layoutBorder;
  6478. Vector2 layoutFlexScale;
  6479. LayoutMode layoutMode;
  6480. int layoutSpacing;
  6481. Vector2 maxAnchor;
  6482. int maxHeight;
  6483. IntVector2 maxOffset;
  6484. IntVector2 maxSize;
  6485. int maxWidth;
  6486. Vector2 minAnchor;
  6487. int minHeight;
  6488. IntVector2 minOffset;
  6489. IntVector2 minSize;
  6490. int minWidth;
  6491. bool multiselect;
  6492. String name;
  6493. /* readonly */
  6494. uint numAllChildren;
  6495. /* readonly */
  6496. uint numAttributes;
  6497. /* readonly */
  6498. uint numChildren;
  6499. /* readonly */
  6500. uint numItems;
  6501. ObjectAnimation objectAnimation;
  6502. float opacity;
  6503. float pageStep;
  6504. UIElement parent;
  6505. Vector2 pivot;
  6506. IntVector2 position;
  6507. int priority;
  6508. /* readonly */
  6509. int refs;
  6510. /* readonly */
  6511. UIElement root;
  6512. /* readonly */
  6513. IntVector2 screenPosition;
  6514. bool scrollBarsAutoVisible;
  6515. float scrollDeceleration;
  6516. /* readonly */
  6517. BorderImage scrollPanel;
  6518. float scrollSnapEpsilon;
  6519. float scrollStep;
  6520. bool selectOnClickEnd;
  6521. bool selected;
  6522. /* readonly */
  6523. UIElement selectedItem;
  6524. /* readonly */
  6525. Array<UIElement> selectedItems;
  6526. uint selection;
  6527. /* readonly */
  6528. Array<uint> selections;
  6529. IntVector2 size;
  6530. bool sortChildren;
  6531. String style;
  6532. /* readonly */
  6533. Array<String> tags;
  6534. bool temporary;
  6535. TraversalMode traversalMode;
  6536. /* readonly */
  6537. StringHash type;
  6538. /* readonly */
  6539. String typeName;
  6540. bool useDerivedOpacity;
  6541. /* readonly */
  6542. VariantMap vars;
  6543. VerticalAlignment verticalAlignment;
  6544. /* readonly */
  6545. ScrollBar verticalScrollBar;
  6546. IntVector2 viewPosition;
  6547. bool visible;
  6548. /* readonly */
  6549. bool visibleEffective;
  6550. /* readonly */
  6551. int weakRefs;
  6552. int width;
  6553. };
  6554. class Localization
  6555. {
  6556. public:
  6557. // Methods:
  6558. String Get(const String&);
  6559. String GetLanguage(int);
  6560. int GetLanguageIndex(const String&);
  6561. bool HasSubscribedToEvent(Object, const String&);
  6562. bool HasSubscribedToEvent(const String&);
  6563. void LoadJSON(const JSONValue&);
  6564. void LoadJSONFile(const String&);
  6565. void Reset();
  6566. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6567. void SetLanguage(const String&);
  6568. void SetLanguage(int);
  6569. // Properties:
  6570. /* readonly */
  6571. String category;
  6572. /* readonly */
  6573. String language;
  6574. /* readonly */
  6575. int languageIndex;
  6576. /* readonly */
  6577. int numLanguages;
  6578. /* readonly */
  6579. int refs;
  6580. /* readonly */
  6581. StringHash type;
  6582. /* readonly */
  6583. String typeName;
  6584. /* readonly */
  6585. int weakRefs;
  6586. };
  6587. class Log
  6588. {
  6589. public:
  6590. // Methods:
  6591. void Close();
  6592. void Debug(const String&);
  6593. void Error(const String&);
  6594. bool HasSubscribedToEvent(Object, const String&);
  6595. bool HasSubscribedToEvent(const String&);
  6596. void Info(const String&);
  6597. void Open(const String&);
  6598. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6599. void Warning(const String&);
  6600. void Write(const String&, bool = false);
  6601. // Properties:
  6602. /* readonly */
  6603. String category;
  6604. /* readonly */
  6605. String lastMessage;
  6606. int level;
  6607. bool quiet;
  6608. /* readonly */
  6609. int refs;
  6610. bool timeStamp;
  6611. /* readonly */
  6612. StringHash type;
  6613. /* readonly */
  6614. String typeName;
  6615. /* readonly */
  6616. int weakRefs;
  6617. };
  6618. class Material
  6619. {
  6620. public:
  6621. Material();
  6622. Material(const String&in);
  6623. // Methods:
  6624. Material Clone(const String& = String ( )) const;
  6625. Pass GetPass(uint, const String&);
  6626. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6627. float GetShaderParameterAnimationSpeed(const String&) const;
  6628. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6629. bool HasSubscribedToEvent(Object, const String&);
  6630. bool HasSubscribedToEvent(const String&);
  6631. bool Load(File);
  6632. bool Load(VectorBuffer&);
  6633. bool Load(const JSONValue&);
  6634. bool Load(const String&);
  6635. bool Load(const XMLElement&);
  6636. void RemoveShaderParameter(const String&);
  6637. bool Save(File) const;
  6638. bool Save(JSONValue&) const;
  6639. bool Save(VectorBuffer&) const;
  6640. bool Save(XMLElement&) const;
  6641. bool Save(const String&) const;
  6642. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6643. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6644. void SetShaderParameterAnimationSpeed(const String&, float);
  6645. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6646. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6647. void SetUVTransform(const Vector2&, float, const Vector2&);
  6648. void SetUVTransform(const Vector2&, float, float);
  6649. void SortTechniques();
  6650. // Properties:
  6651. bool alphaToCoverage;
  6652. /* readonly */
  6653. String category;
  6654. CullMode cullMode;
  6655. BiasParameters depthBias;
  6656. FillMode fillMode;
  6657. bool lineAntiAlias;
  6658. /* readonly */
  6659. uint memoryUse;
  6660. String name;
  6661. uint numTechniques;
  6662. bool occlusion;
  6663. String pixelShaderDefines;
  6664. /* readonly */
  6665. int refs;
  6666. uint8 renderOrder;
  6667. Scene scene;
  6668. /* readonly */
  6669. Array<String> shaderParameterNames;
  6670. Array<Variant> shaderParameters;
  6671. CullMode shadowCullMode;
  6672. /* readonly */
  6673. Array<TechniqueEntry> techniqueEntries;
  6674. /* readonly */
  6675. Array<Technique> techniques;
  6676. Array<Texture> textures;
  6677. /* readonly */
  6678. StringHash type;
  6679. /* readonly */
  6680. String typeName;
  6681. /* readonly */
  6682. uint useTimer;
  6683. String vertexShaderDefines;
  6684. /* readonly */
  6685. int weakRefs;
  6686. };
  6687. class Matrix2
  6688. {
  6689. public:
  6690. Matrix2();
  6691. Matrix2(const Matrix2&in);
  6692. Matrix2(float, float, float, float);
  6693. // Methods:
  6694. bool Equals(const Matrix2&) const;
  6695. Matrix2 Inverse() const;
  6696. Vector2 Scale() const;
  6697. Matrix2 Scaled(const Vector2&) const;
  6698. void SetScale(const Vector2&);
  6699. void SetScale(float);
  6700. String ToString() const;
  6701. Matrix2 Transpose() const;
  6702. // Properties:
  6703. float m00;
  6704. float m01;
  6705. float m10;
  6706. float m11;
  6707. };
  6708. class Matrix3
  6709. {
  6710. public:
  6711. Matrix3();
  6712. Matrix3(const Matrix3&in);
  6713. Matrix3(float, float, float, float, float, float, float, float, float);
  6714. // Methods:
  6715. bool Equals(const Matrix3&) const;
  6716. Matrix3 Inverse() const;
  6717. Vector3 Scale() const;
  6718. Matrix3 Scaled(const Vector3&) const;
  6719. void SetScale(const Vector3&);
  6720. void SetScale(float);
  6721. String ToString() const;
  6722. Matrix3 Transpose() const;
  6723. // Properties:
  6724. float m00;
  6725. float m01;
  6726. float m02;
  6727. float m10;
  6728. float m11;
  6729. float m12;
  6730. float m20;
  6731. float m21;
  6732. float m22;
  6733. };
  6734. class Matrix3x4
  6735. {
  6736. public:
  6737. Matrix3x4();
  6738. Matrix3x4(const Matrix3x4&in);
  6739. Matrix3x4(const Matrix3&in);
  6740. Matrix3x4(const Matrix4&in);
  6741. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  6742. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  6743. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  6744. // Methods:
  6745. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6746. bool Equals(const Matrix3x4&) const;
  6747. Matrix3x4 Inverse() const;
  6748. Quaternion Rotation() const;
  6749. Matrix3 RotationMatrix() const;
  6750. Vector3 Scale() const;
  6751. void SetRotation(const Matrix3&);
  6752. void SetScale(const Vector3&);
  6753. void SetScale(float);
  6754. void SetTranslation(const Vector3&);
  6755. Matrix3 ToMatrix3() const;
  6756. Matrix4 ToMatrix4() const;
  6757. String ToString() const;
  6758. Vector3 Translation() const;
  6759. // Properties:
  6760. float m00;
  6761. float m01;
  6762. float m02;
  6763. float m03;
  6764. float m10;
  6765. float m11;
  6766. float m12;
  6767. float m13;
  6768. float m20;
  6769. float m21;
  6770. float m22;
  6771. float m23;
  6772. };
  6773. class Matrix4
  6774. {
  6775. public:
  6776. Matrix4();
  6777. Matrix4(const Matrix4&in);
  6778. Matrix4(const Matrix3&in);
  6779. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  6780. // Methods:
  6781. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6782. bool Equals(const Matrix4&) const;
  6783. Matrix4 Inverse() const;
  6784. Quaternion Rotation() const;
  6785. Matrix3 RotationMatrix() const;
  6786. Vector3 Scale() const;
  6787. void SetRotation(const Matrix3&);
  6788. void SetScale(const Vector3&);
  6789. void SetScale(float);
  6790. void SetTranslation(const Vector3&);
  6791. Matrix3 ToMatrix3() const;
  6792. String ToString() const;
  6793. Vector3 Translation() const;
  6794. Matrix4 Transpose() const;
  6795. // Properties:
  6796. float m00;
  6797. float m01;
  6798. float m02;
  6799. float m03;
  6800. float m10;
  6801. float m11;
  6802. float m12;
  6803. float m13;
  6804. float m20;
  6805. float m21;
  6806. float m22;
  6807. float m23;
  6808. float m30;
  6809. float m31;
  6810. float m32;
  6811. float m33;
  6812. };
  6813. class Menu
  6814. {
  6815. public:
  6816. Menu();
  6817. Menu(const String&in);
  6818. // Methods:
  6819. void AddChild(UIElement);
  6820. void AddTag(const String&);
  6821. void AddTags(const String&, int8 = ';');
  6822. void ApplyAttributes();
  6823. void BringToFront();
  6824. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6825. void DisableLayoutUpdate();
  6826. IntVector2 ElementToScreen(const IntVector2&);
  6827. void EnableLayoutUpdate();
  6828. uint FindChild(UIElement) const;
  6829. Variant GetAttribute(const String&) const;
  6830. ValueAnimation GetAttributeAnimation(const String&) const;
  6831. float GetAttributeAnimationSpeed(const String&) const;
  6832. float GetAttributeAnimationTime(const String&) const;
  6833. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6834. Variant GetAttributeDefault(const String&) const;
  6835. UIElement GetChild(const String&, bool = false) const;
  6836. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6837. Array<UIElement> GetChildren(bool = false) const;
  6838. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6839. UIElement GetElementEventSender() const;
  6840. bool GetInterceptNetworkUpdate(const String&) const;
  6841. uint GetNumChildren(bool) const;
  6842. bool HasSubscribedToEvent(Object, const String&);
  6843. bool HasSubscribedToEvent(const String&);
  6844. bool HasTag(const String&) const;
  6845. void InsertChild(uint, UIElement);
  6846. bool IsInside(IntVector2, bool);
  6847. bool IsInsideCombined(IntVector2, bool);
  6848. bool Load(File, bool = false);
  6849. bool Load(VectorBuffer&, bool = false);
  6850. UIElement LoadChildXML(XMLFile, XMLFile = null);
  6851. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6852. bool LoadJSON(const JSONValue&, bool = false);
  6853. bool LoadXML(File);
  6854. bool LoadXML(VectorBuffer&);
  6855. bool LoadXML(XMLFile, XMLFile);
  6856. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6857. bool LoadXML(const XMLElement&, bool = false);
  6858. void MarkNetworkUpdate() const;
  6859. void Remove();
  6860. void RemoveAllChildren();
  6861. void RemoveAllTags();
  6862. void RemoveAttributeAnimation(const String&);
  6863. void RemoveChild(UIElement, uint = 0);
  6864. void RemoveChild(uint);
  6865. void RemoveInstanceDefault();
  6866. void RemoveObjectAnimation();
  6867. bool RemoveTag(const String&);
  6868. void ResetDeepEnabled();
  6869. void ResetToDefault();
  6870. bool Save(File) const;
  6871. bool Save(VectorBuffer&) const;
  6872. bool SaveJSON(JSONValue&) const;
  6873. bool SaveXML(File, const String& = "\t");
  6874. bool SaveXML(VectorBuffer&, const String& = "\t");
  6875. bool SaveXML(XMLElement&) const;
  6876. IntVector2 ScreenToElement(const IntVector2&);
  6877. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6878. void SetAccelerator(int, int);
  6879. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6880. void SetAnimationTime(float);
  6881. bool SetAttribute(const String&, const Variant&);
  6882. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6883. void SetAttributeAnimationSpeed(const String&, float);
  6884. void SetAttributeAnimationTime(const String&, float);
  6885. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6886. void SetDeepEnabled(bool);
  6887. void SetEnabledRecursive(bool);
  6888. void SetFixedHeight(int);
  6889. void SetFixedSize(int, int);
  6890. void SetFixedWidth(int);
  6891. void SetFullImageRect();
  6892. void SetHoverOffset(int, int);
  6893. void SetInterceptNetworkUpdate(const String&, bool);
  6894. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6895. void SetMaxAnchor(float, float);
  6896. void SetMaxSize(int, int);
  6897. void SetMinAnchor(float, float);
  6898. void SetMinSize(int, int);
  6899. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6900. void SetPivot(float, float);
  6901. void SetPopupOffset(int, int);
  6902. void SetPosition(int, int);
  6903. void SetPressedChildOffset(int, int);
  6904. void SetPressedOffset(int, int);
  6905. void SetRepeat(float, float);
  6906. void SetSize(int, int);
  6907. bool SetStyle(const String&, XMLFile = null);
  6908. bool SetStyle(const XMLElement&);
  6909. bool SetStyleAuto(XMLFile = null);
  6910. void UpdateLayout();
  6911. const Variant& GetVar(const StringHash&);
  6912. // Properties:
  6913. /* readonly */
  6914. int acceleratorKey;
  6915. /* readonly */
  6916. int acceleratorQualifiers;
  6917. bool animationEnabled;
  6918. /* readonly */
  6919. Array<Variant> attributeDefaults;
  6920. /* readonly */
  6921. Array<AttributeInfo> attributeInfos;
  6922. Array<Variant> attributes;
  6923. BlendMode blendMode;
  6924. IntRect border;
  6925. bool bringToBack;
  6926. bool bringToFront;
  6927. /* readonly */
  6928. String category;
  6929. /* readonly */
  6930. IntVector2 childOffset;
  6931. /* readonly */
  6932. Array<UIElement> children;
  6933. IntRect clipBorder;
  6934. bool clipChildren;
  6935. /* writeonly */
  6936. Color color;
  6937. /* readonly */
  6938. bool colorGradient;
  6939. Array<Color> colors;
  6940. /* readonly */
  6941. IntRect combinedScreenRect;
  6942. XMLFile defaultStyle;
  6943. /* readonly */
  6944. float derivedOpacity;
  6945. /* readonly */
  6946. uint dragButtonCombo;
  6947. /* readonly */
  6948. int dragButtonCount;
  6949. uint dragDropMode;
  6950. bool editable;
  6951. bool elementEventSender;
  6952. bool enableAnchor;
  6953. bool enabled;
  6954. /* readonly */
  6955. bool enabledSelf;
  6956. /* readonly */
  6957. bool fixedHeight;
  6958. /* readonly */
  6959. bool fixedSize;
  6960. /* readonly */
  6961. bool fixedWidth;
  6962. bool focus;
  6963. FocusMode focusMode;
  6964. int height;
  6965. HorizontalAlignment horizontalAlignment;
  6966. IntVector2 hoverOffset;
  6967. /* readonly */
  6968. bool hovering;
  6969. IntRect imageBorder;
  6970. IntRect imageRect;
  6971. int indent;
  6972. int indentSpacing;
  6973. /* readonly */
  6974. int indentWidth;
  6975. bool internal;
  6976. IntRect layoutBorder;
  6977. Vector2 layoutFlexScale;
  6978. LayoutMode layoutMode;
  6979. int layoutSpacing;
  6980. Vector2 maxAnchor;
  6981. int maxHeight;
  6982. IntVector2 maxOffset;
  6983. IntVector2 maxSize;
  6984. int maxWidth;
  6985. Vector2 minAnchor;
  6986. int minHeight;
  6987. IntVector2 minOffset;
  6988. IntVector2 minSize;
  6989. int minWidth;
  6990. String name;
  6991. /* readonly */
  6992. uint numAllChildren;
  6993. /* readonly */
  6994. uint numAttributes;
  6995. /* readonly */
  6996. uint numChildren;
  6997. ObjectAnimation objectAnimation;
  6998. float opacity;
  6999. UIElement parent;
  7000. Vector2 pivot;
  7001. UIElement popup;
  7002. IntVector2 popupOffset;
  7003. IntVector2 position;
  7004. /* readonly */
  7005. bool pressed;
  7006. IntVector2 pressedChildOffset;
  7007. IntVector2 pressedOffset;
  7008. int priority;
  7009. /* readonly */
  7010. int refs;
  7011. float repeatDelay;
  7012. float repeatRate;
  7013. /* readonly */
  7014. UIElement root;
  7015. /* readonly */
  7016. IntVector2 screenPosition;
  7017. bool selected;
  7018. bool showPopup;
  7019. IntVector2 size;
  7020. bool sortChildren;
  7021. String style;
  7022. /* readonly */
  7023. Array<String> tags;
  7024. bool temporary;
  7025. Texture texture;
  7026. bool tiled;
  7027. TraversalMode traversalMode;
  7028. /* readonly */
  7029. StringHash type;
  7030. /* readonly */
  7031. String typeName;
  7032. bool useDerivedOpacity;
  7033. /* readonly */
  7034. VariantMap vars;
  7035. VerticalAlignment verticalAlignment;
  7036. bool visible;
  7037. /* readonly */
  7038. bool visibleEffective;
  7039. /* readonly */
  7040. int weakRefs;
  7041. int width;
  7042. };
  7043. class MessageBox
  7044. {
  7045. public:
  7046. MessageBox(const String&in messageString = String ( ), const String&in titleString = String ( ), XMLFile& layoutFile = null, XMLFile& styleFile = null);
  7047. // Methods:
  7048. bool HasSubscribedToEvent(Object, const String&);
  7049. bool HasSubscribedToEvent(const String&);
  7050. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7051. // Properties:
  7052. /* readonly */
  7053. String category;
  7054. String message;
  7055. /* readonly */
  7056. int refs;
  7057. String title;
  7058. /* readonly */
  7059. StringHash type;
  7060. /* readonly */
  7061. String typeName;
  7062. /* readonly */
  7063. int weakRefs;
  7064. /* readonly */
  7065. UIElement window;
  7066. };
  7067. class Model
  7068. {
  7069. public:
  7070. Model();
  7071. Model(const String&in);
  7072. // Methods:
  7073. Model Clone(const String& = String ( )) const;
  7074. Geometry GetGeometry(uint, uint) const;
  7075. bool HasSubscribedToEvent(Object, const String&);
  7076. bool HasSubscribedToEvent(const String&);
  7077. bool Load(File);
  7078. bool Load(VectorBuffer&);
  7079. bool Load(const String&);
  7080. bool Save(File) const;
  7081. bool Save(VectorBuffer&) const;
  7082. bool Save(const String&) const;
  7083. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7084. bool SetGeometry(uint, uint, Geometry);
  7085. bool SetIndexBuffers(Array<IndexBuffer>);
  7086. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  7087. // Properties:
  7088. BoundingBox boundingBox;
  7089. /* readonly */
  7090. String category;
  7091. Array<Vector3> geometryCenters;
  7092. /* readonly */
  7093. uint memoryUse;
  7094. String name;
  7095. uint numGeometries;
  7096. Array<uint> numGeometryLodLevels;
  7097. /* readonly */
  7098. uint numMorphs;
  7099. /* readonly */
  7100. int refs;
  7101. /* readonly */
  7102. Skeleton skeleton;
  7103. /* readonly */
  7104. StringHash type;
  7105. /* readonly */
  7106. String typeName;
  7107. /* readonly */
  7108. uint useTimer;
  7109. /* readonly */
  7110. int weakRefs;
  7111. };
  7112. class NamedPipe
  7113. {
  7114. public:
  7115. NamedPipe();
  7116. NamedPipe(const String&in, bool);
  7117. // Methods:
  7118. void Close();
  7119. bool HasSubscribedToEvent(Object, const String&);
  7120. bool HasSubscribedToEvent(const String&);
  7121. bool Open(const String&, bool);
  7122. Array<uint8> Read(uint);
  7123. bool ReadBool();
  7124. BoundingBox ReadBoundingBox();
  7125. int8 ReadByte();
  7126. Color ReadColor();
  7127. double ReadDouble();
  7128. String ReadFileID();
  7129. float ReadFloat();
  7130. int ReadInt();
  7131. int64 ReadInt64();
  7132. IntRect ReadIntRect();
  7133. IntVector2 ReadIntVector2();
  7134. String ReadLine();
  7135. Matrix3 ReadMatrix3();
  7136. Matrix3x4 ReadMatrix3x4();
  7137. Matrix4 ReadMatrix4();
  7138. uint ReadNetID();
  7139. Quaternion ReadPackedQuaternion();
  7140. Vector3 ReadPackedVector3(float);
  7141. Quaternion ReadQuaternion();
  7142. int16 ReadShort();
  7143. String ReadString();
  7144. StringHash ReadStringHash();
  7145. uint8 ReadUByte();
  7146. uint ReadUInt();
  7147. uint64 ReadUInt64();
  7148. uint16 ReadUShort();
  7149. uint ReadVLE();
  7150. Variant ReadVariant();
  7151. VariantMap ReadVariantMap();
  7152. Vector2 ReadVector2();
  7153. Vector3 ReadVector3();
  7154. Vector4 ReadVector4();
  7155. VectorBuffer ReadVectorBuffer(uint);
  7156. uint Seek(uint);
  7157. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7158. uint Write(Array<uint8>);
  7159. bool WriteBool(bool);
  7160. bool WriteBoundingBox(const BoundingBox&);
  7161. bool WriteByte(int8);
  7162. bool WriteColor(const Color&);
  7163. bool WriteDouble(double);
  7164. bool WriteFileID(const String&);
  7165. bool WriteFloat(float);
  7166. bool WriteInt(int);
  7167. bool WriteInt64(int64);
  7168. bool WriteIntRect(const IntRect&);
  7169. bool WriteIntVector2(const IntVector2&);
  7170. bool WriteLine(const String&);
  7171. bool WriteMatrix3(const Matrix3&);
  7172. bool WriteMatrix3x4(const Matrix3x4&);
  7173. bool WriteMatrix4(const Matrix4&);
  7174. bool WriteNetID(uint);
  7175. bool WritePackedQuaternion(const Quaternion&);
  7176. bool WritePackedVector3(const Vector3&, float);
  7177. bool WriteQuaternion(const Quaternion&);
  7178. bool WriteShort(int16);
  7179. bool WriteString(const String&);
  7180. bool WriteStringHash(const StringHash&);
  7181. bool WriteUByte(uint8);
  7182. bool WriteUInt(uint);
  7183. bool WriteUInt64(uint64);
  7184. bool WriteUShort(uint16);
  7185. bool WriteVLE(uint);
  7186. bool WriteVariant(const Variant&);
  7187. bool WriteVariantMap(const VariantMap&);
  7188. bool WriteVector2(const Vector2&);
  7189. bool WriteVector3(const Vector3&);
  7190. bool WriteVector4(const Vector4&);
  7191. bool WriteVectorBuffer(const VectorBuffer&);
  7192. // Properties:
  7193. /* readonly */
  7194. String category;
  7195. /* readonly */
  7196. uint checksum;
  7197. /* readonly */
  7198. bool eof;
  7199. /* readonly */
  7200. String name;
  7201. /* readonly */
  7202. bool open;
  7203. /* readonly */
  7204. uint position;
  7205. /* readonly */
  7206. int refs;
  7207. /* readonly */
  7208. bool server;
  7209. /* readonly */
  7210. uint size;
  7211. /* readonly */
  7212. StringHash type;
  7213. /* readonly */
  7214. String typeName;
  7215. /* readonly */
  7216. int weakRefs;
  7217. };
  7218. class NavArea
  7219. {
  7220. public:
  7221. // Methods:
  7222. void ApplyAttributes();
  7223. void DrawDebugGeometry(DebugRenderer, bool);
  7224. Variant GetAttribute(const String&) const;
  7225. ValueAnimation GetAttributeAnimation(const String&) const;
  7226. float GetAttributeAnimationSpeed(const String&) const;
  7227. float GetAttributeAnimationTime(const String&) const;
  7228. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7229. Variant GetAttributeDefault(const String&) const;
  7230. bool GetInterceptNetworkUpdate(const String&) const;
  7231. bool HasSubscribedToEvent(Object, const String&);
  7232. bool HasSubscribedToEvent(const String&);
  7233. bool Load(File, bool = false);
  7234. bool Load(VectorBuffer&, bool = false);
  7235. bool LoadJSON(const JSONValue&, bool = false);
  7236. bool LoadXML(const XMLElement&, bool = false);
  7237. void MarkNetworkUpdate() const;
  7238. void Remove();
  7239. void RemoveAttributeAnimation(const String&);
  7240. void RemoveInstanceDefault();
  7241. void RemoveObjectAnimation();
  7242. void ResetToDefault();
  7243. bool Save(File) const;
  7244. bool Save(VectorBuffer&) const;
  7245. bool SaveJSON(JSONValue&) const;
  7246. bool SaveXML(XMLElement&) const;
  7247. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7248. void SetAnimationTime(float);
  7249. bool SetAttribute(const String&, const Variant&);
  7250. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7251. void SetAttributeAnimationSpeed(const String&, float);
  7252. void SetAttributeAnimationTime(const String&, float);
  7253. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7254. void SetInterceptNetworkUpdate(const String&, bool);
  7255. // Properties:
  7256. bool animationEnabled;
  7257. uint areaID;
  7258. /* readonly */
  7259. Array<Variant> attributeDefaults;
  7260. /* readonly */
  7261. Array<AttributeInfo> attributeInfos;
  7262. Array<Variant> attributes;
  7263. BoundingBox boundingBox;
  7264. /* readonly */
  7265. String category;
  7266. bool enabled;
  7267. /* readonly */
  7268. bool enabledEffective;
  7269. /* readonly */
  7270. uint id;
  7271. /* readonly */
  7272. Node node;
  7273. /* readonly */
  7274. uint numAttributes;
  7275. ObjectAnimation objectAnimation;
  7276. /* readonly */
  7277. int refs;
  7278. bool temporary;
  7279. /* readonly */
  7280. StringHash type;
  7281. /* readonly */
  7282. String typeName;
  7283. /* readonly */
  7284. int weakRefs;
  7285. /* readonly */
  7286. BoundingBox worldBoundingBox;
  7287. };
  7288. class Navigable
  7289. {
  7290. public:
  7291. // Methods:
  7292. void ApplyAttributes();
  7293. void DrawDebugGeometry(DebugRenderer, bool);
  7294. Variant GetAttribute(const String&) const;
  7295. ValueAnimation GetAttributeAnimation(const String&) const;
  7296. float GetAttributeAnimationSpeed(const String&) const;
  7297. float GetAttributeAnimationTime(const String&) const;
  7298. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7299. Variant GetAttributeDefault(const String&) const;
  7300. bool GetInterceptNetworkUpdate(const String&) const;
  7301. bool HasSubscribedToEvent(Object, const String&);
  7302. bool HasSubscribedToEvent(const String&);
  7303. bool Load(File, bool = false);
  7304. bool Load(VectorBuffer&, bool = false);
  7305. bool LoadJSON(const JSONValue&, bool = false);
  7306. bool LoadXML(const XMLElement&, bool = false);
  7307. void MarkNetworkUpdate() const;
  7308. void Remove();
  7309. void RemoveAttributeAnimation(const String&);
  7310. void RemoveInstanceDefault();
  7311. void RemoveObjectAnimation();
  7312. void ResetToDefault();
  7313. bool Save(File) const;
  7314. bool Save(VectorBuffer&) const;
  7315. bool SaveJSON(JSONValue&) const;
  7316. bool SaveXML(XMLElement&) const;
  7317. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7318. void SetAnimationTime(float);
  7319. bool SetAttribute(const String&, const Variant&);
  7320. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7321. void SetAttributeAnimationSpeed(const String&, float);
  7322. void SetAttributeAnimationTime(const String&, float);
  7323. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7324. void SetInterceptNetworkUpdate(const String&, bool);
  7325. // Properties:
  7326. bool animationEnabled;
  7327. /* readonly */
  7328. Array<Variant> attributeDefaults;
  7329. /* readonly */
  7330. Array<AttributeInfo> attributeInfos;
  7331. Array<Variant> attributes;
  7332. /* readonly */
  7333. String category;
  7334. bool enabled;
  7335. /* readonly */
  7336. bool enabledEffective;
  7337. /* readonly */
  7338. uint id;
  7339. /* readonly */
  7340. Node node;
  7341. /* readonly */
  7342. uint numAttributes;
  7343. ObjectAnimation objectAnimation;
  7344. bool recursive;
  7345. /* readonly */
  7346. int refs;
  7347. bool temporary;
  7348. /* readonly */
  7349. StringHash type;
  7350. /* readonly */
  7351. String typeName;
  7352. /* readonly */
  7353. int weakRefs;
  7354. };
  7355. class NavigationMesh
  7356. {
  7357. public:
  7358. // Methods:
  7359. void ApplyAttributes();
  7360. bool Build();
  7361. bool Build(const BoundingBox&);
  7362. void DrawDebugGeometry(DebugRenderer, bool);
  7363. void DrawDebugGeometry(bool);
  7364. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7365. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7366. float GetAreaCost(uint) const;
  7367. Variant GetAttribute(const String&) const;
  7368. ValueAnimation GetAttributeAnimation(const String&) const;
  7369. float GetAttributeAnimationSpeed(const String&) const;
  7370. float GetAttributeAnimationTime(const String&) const;
  7371. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7372. Variant GetAttributeDefault(const String&) const;
  7373. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7374. bool GetInterceptNetworkUpdate(const String&) const;
  7375. Vector3 GetRandomPoint();
  7376. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7377. bool HasSubscribedToEvent(Object, const String&);
  7378. bool HasSubscribedToEvent(const String&);
  7379. bool Load(File, bool = false);
  7380. bool Load(VectorBuffer&, bool = false);
  7381. bool LoadJSON(const JSONValue&, bool = false);
  7382. bool LoadXML(const XMLElement&, bool = false);
  7383. void MarkNetworkUpdate() const;
  7384. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  7385. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7386. void Remove();
  7387. void RemoveAttributeAnimation(const String&);
  7388. void RemoveInstanceDefault();
  7389. void RemoveObjectAnimation();
  7390. void ResetToDefault();
  7391. bool Save(File) const;
  7392. bool Save(VectorBuffer&) const;
  7393. bool SaveJSON(JSONValue&) const;
  7394. bool SaveXML(XMLElement&) const;
  7395. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7396. void SetAnimationTime(float);
  7397. void SetAreaCost(uint, float);
  7398. bool SetAttribute(const String&, const Variant&);
  7399. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7400. void SetAttributeAnimationSpeed(const String&, float);
  7401. void SetAttributeAnimationTime(const String&, float);
  7402. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7403. void SetInterceptNetworkUpdate(const String&, bool);
  7404. // Properties:
  7405. float agentHeight;
  7406. float agentMaxClimb;
  7407. float agentMaxSlope;
  7408. float agentRadius;
  7409. bool animationEnabled;
  7410. /* readonly */
  7411. Array<Variant> attributeDefaults;
  7412. /* readonly */
  7413. Array<AttributeInfo> attributeInfos;
  7414. Array<Variant> attributes;
  7415. /* readonly */
  7416. BoundingBox boundingBox;
  7417. /* readonly */
  7418. String category;
  7419. float cellHeight;
  7420. float cellSize;
  7421. float detailSampleDistance;
  7422. float detailSampleMaxError;
  7423. bool drawNavAreas;
  7424. bool drawOffMeshConnections;
  7425. float edgeMaxError;
  7426. float edgeMaxLength;
  7427. bool enabled;
  7428. /* readonly */
  7429. bool enabledEffective;
  7430. /* readonly */
  7431. uint id;
  7432. /* readonly */
  7433. bool initialized;
  7434. /* readonly */
  7435. Node node;
  7436. /* readonly */
  7437. uint numAttributes;
  7438. /* readonly */
  7439. IntVector2 numTiles;
  7440. ObjectAnimation objectAnimation;
  7441. Vector3 padding;
  7442. NavmeshPartitionType partitionType;
  7443. /* readonly */
  7444. int refs;
  7445. float regionMergeSize;
  7446. float regionMinSize;
  7447. bool temporary;
  7448. int tileSize;
  7449. /* readonly */
  7450. StringHash type;
  7451. /* readonly */
  7452. String typeName;
  7453. /* readonly */
  7454. int weakRefs;
  7455. /* readonly */
  7456. BoundingBox worldBoundingBox;
  7457. };
  7458. class Network
  7459. {
  7460. public:
  7461. // Methods:
  7462. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  7463. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  7464. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  7465. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  7466. bool CheckRemoteEvent(const String&) const;
  7467. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  7468. void Disconnect(int = 0);
  7469. bool HasSubscribedToEvent(Object, const String&);
  7470. bool HasSubscribedToEvent(const String&);
  7471. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  7472. void RegisterRemoteEvent(const String&) const;
  7473. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7474. void SendPackageToClients(Scene, PackageFile);
  7475. bool StartServer(uint16);
  7476. void StopServer();
  7477. void UnregisterAllRemoteEvents();
  7478. void UnregisterRemoteEvent(const String&) const;
  7479. // Properties:
  7480. /* readonly */
  7481. String category;
  7482. /* readonly */
  7483. Array<Connection> clientConnections;
  7484. String packageCacheDir;
  7485. /* readonly */
  7486. int refs;
  7487. /* readonly */
  7488. Connection serverConnection;
  7489. /* readonly */
  7490. bool serverRunning;
  7491. int simulatedLatency;
  7492. float simulatedPacketLoss;
  7493. /* readonly */
  7494. StringHash type;
  7495. /* readonly */
  7496. String typeName;
  7497. int updateFps;
  7498. /* readonly */
  7499. int weakRefs;
  7500. };
  7501. class NetworkPriority
  7502. {
  7503. public:
  7504. // Methods:
  7505. void ApplyAttributes();
  7506. void DrawDebugGeometry(DebugRenderer, bool);
  7507. Variant GetAttribute(const String&) const;
  7508. ValueAnimation GetAttributeAnimation(const String&) const;
  7509. float GetAttributeAnimationSpeed(const String&) const;
  7510. float GetAttributeAnimationTime(const String&) const;
  7511. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7512. Variant GetAttributeDefault(const String&) const;
  7513. bool GetInterceptNetworkUpdate(const String&) const;
  7514. bool HasSubscribedToEvent(Object, const String&);
  7515. bool HasSubscribedToEvent(const String&);
  7516. bool Load(File, bool = false);
  7517. bool Load(VectorBuffer&, bool = false);
  7518. bool LoadJSON(const JSONValue&, bool = false);
  7519. bool LoadXML(const XMLElement&, bool = false);
  7520. void MarkNetworkUpdate() const;
  7521. void Remove();
  7522. void RemoveAttributeAnimation(const String&);
  7523. void RemoveInstanceDefault();
  7524. void RemoveObjectAnimation();
  7525. void ResetToDefault();
  7526. bool Save(File) const;
  7527. bool Save(VectorBuffer&) const;
  7528. bool SaveJSON(JSONValue&) const;
  7529. bool SaveXML(XMLElement&) const;
  7530. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7531. void SetAnimationTime(float);
  7532. bool SetAttribute(const String&, const Variant&);
  7533. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7534. void SetAttributeAnimationSpeed(const String&, float);
  7535. void SetAttributeAnimationTime(const String&, float);
  7536. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7537. void SetInterceptNetworkUpdate(const String&, bool);
  7538. // Properties:
  7539. bool alwaysUpdateOwner;
  7540. bool animationEnabled;
  7541. /* readonly */
  7542. Array<Variant> attributeDefaults;
  7543. /* readonly */
  7544. Array<AttributeInfo> attributeInfos;
  7545. Array<Variant> attributes;
  7546. float basePriority;
  7547. /* readonly */
  7548. String category;
  7549. float distanceFactor;
  7550. bool enabled;
  7551. /* readonly */
  7552. bool enabledEffective;
  7553. /* readonly */
  7554. uint id;
  7555. float minPriority;
  7556. /* readonly */
  7557. Node node;
  7558. /* readonly */
  7559. uint numAttributes;
  7560. ObjectAnimation objectAnimation;
  7561. /* readonly */
  7562. int refs;
  7563. bool temporary;
  7564. /* readonly */
  7565. StringHash type;
  7566. /* readonly */
  7567. String typeName;
  7568. /* readonly */
  7569. int weakRefs;
  7570. };
  7571. class Node
  7572. {
  7573. public:
  7574. Node();
  7575. Node(const String&in);
  7576. // Methods:
  7577. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7578. void AddTag(const String&);
  7579. void AddTags(const String&, int8 = ';');
  7580. void ApplyAttributes();
  7581. Node Clone(CreateMode = REPLICATED);
  7582. Component CloneComponent(Component, CreateMode, uint = 0);
  7583. Component CloneComponent(Component, uint = 0);
  7584. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7585. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7586. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7587. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7588. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7589. Variant GetAttribute(const String&) const;
  7590. ValueAnimation GetAttributeAnimation(const String&) const;
  7591. float GetAttributeAnimationSpeed(const String&) const;
  7592. float GetAttributeAnimationTime(const String&) const;
  7593. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7594. Variant GetAttributeDefault(const String&) const;
  7595. Node GetChild(const String&, bool = false) const;
  7596. Array<Node> GetChildren(bool = false) const;
  7597. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7598. Array<Node> GetChildrenWithScript(bool = false) const;
  7599. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7600. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7601. Component GetComponent(const String&, bool = false) const;
  7602. Array<Component> GetComponents() const;
  7603. Array<Component> GetComponents(const String&, bool = false) const;
  7604. bool GetInterceptNetworkUpdate(const String&) const;
  7605. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7606. Component GetParentComponent(const String&, bool = false) const;
  7607. ScriptObject GetScriptObject() const;
  7608. ScriptObject GetScriptObject(const String&) const;
  7609. bool HasComponent(const String&) const;
  7610. bool HasSubscribedToEvent(Object, const String&);
  7611. bool HasSubscribedToEvent(const String&);
  7612. bool HasTag(const String&);
  7613. bool IsChildOf(Node) const;
  7614. bool Load(File, bool = false);
  7615. bool Load(VectorBuffer&, bool = false);
  7616. bool LoadJSON(const JSONValue&, bool = false);
  7617. bool LoadXML(const XMLElement&, bool = false);
  7618. Vector3 LocalToWorld(const Vector3&) const;
  7619. Vector3 LocalToWorld(const Vector4&) const;
  7620. Vector2 LocalToWorld2D(const Vector2&) const;
  7621. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7622. void MarkDirty();
  7623. void MarkNetworkUpdate() const;
  7624. void Pitch(float, TransformSpace = TS_LOCAL);
  7625. void Remove();
  7626. void RemoveAllChildren();
  7627. void RemoveAllComponents();
  7628. void RemoveAllTags();
  7629. void RemoveAttributeAnimation(const String&);
  7630. void RemoveChild(Node);
  7631. void RemoveChildren(bool, bool, bool);
  7632. void RemoveComponent(Component);
  7633. void RemoveComponent(const String&);
  7634. void RemoveComponents(bool, bool);
  7635. void RemoveComponents(const String&);
  7636. void RemoveInstanceDefault();
  7637. void RemoveObjectAnimation();
  7638. bool RemoveTag(const String&);
  7639. void ReorderComponent(Component, uint);
  7640. void ResetDeepEnabled();
  7641. void ResetToDefault();
  7642. void Roll(float, TransformSpace = TS_LOCAL);
  7643. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7644. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7645. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7646. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7647. bool Save(File) const;
  7648. bool Save(VectorBuffer&) const;
  7649. bool SaveJSON(File);
  7650. bool SaveJSON(JSONValue&) const;
  7651. bool SaveJSON(VectorBuffer&);
  7652. bool SaveXML(File, const String& = "\t");
  7653. bool SaveXML(VectorBuffer&, const String& = "\t");
  7654. bool SaveXML(XMLElement&) const;
  7655. void Scale(const Vector3&);
  7656. void Scale(float);
  7657. void Scale2D(const Vector2&);
  7658. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7659. void SetAnimationTime(float);
  7660. bool SetAttribute(const String&, const Variant&);
  7661. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7662. void SetAttributeAnimationSpeed(const String&, float);
  7663. void SetAttributeAnimationTime(const String&, float);
  7664. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7665. void SetDeepEnabled(bool);
  7666. void SetEnabledRecursive(bool);
  7667. void SetInterceptNetworkUpdate(const String&, bool);
  7668. void SetPosition2D(float, float);
  7669. void SetScale(float);
  7670. void SetScale2D(float, float);
  7671. void SetTransform(const Matrix3x4&);
  7672. void SetTransform(const Vector3&, const Quaternion&);
  7673. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7674. void SetTransform(const Vector3&, const Quaternion&, float);
  7675. void SetTransform2D(const Vector2&, float);
  7676. void SetTransform2D(const Vector2&, float, const Vector2&);
  7677. void SetTransform2D(const Vector2&, float, float);
  7678. void SetWorldTransform(const Vector3&, const Quaternion&);
  7679. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7680. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7681. void SetWorldTransform2D(const Vector2&, float);
  7682. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7683. void SetWorldTransform2D(const Vector2&, float, float);
  7684. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7685. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7686. Vector3 WorldToLocal(const Vector3&) const;
  7687. Vector3 WorldToLocal(const Vector4&) const;
  7688. Vector2 WorldToLocal2D(const Vector2&) const;
  7689. void Yaw(float, TransformSpace = TS_LOCAL);
  7690. // Properties:
  7691. bool animationEnabled;
  7692. /* readonly */
  7693. Array<Variant> attributeDefaults;
  7694. /* readonly */
  7695. Array<AttributeInfo> attributeInfos;
  7696. Array<Variant> attributes;
  7697. /* readonly */
  7698. String category;
  7699. /* readonly */
  7700. Array<Node> children;
  7701. /* readonly */
  7702. Array<Component> components;
  7703. Vector3 direction;
  7704. bool enabled;
  7705. /* readonly */
  7706. bool enabledSelf;
  7707. uint id;
  7708. String name;
  7709. /* readonly */
  7710. uint numAllChildren;
  7711. /* readonly */
  7712. uint numAttributes;
  7713. /* readonly */
  7714. uint numChildren;
  7715. /* readonly */
  7716. uint numComponents;
  7717. ObjectAnimation objectAnimation;
  7718. Connection owner;
  7719. Node parent;
  7720. Vector3 position;
  7721. Vector2 position2D;
  7722. /* readonly */
  7723. int refs;
  7724. /* readonly */
  7725. Vector3 right;
  7726. Quaternion rotation;
  7727. float rotation2D;
  7728. Vector3 scale;
  7729. Vector2 scale2D;
  7730. /* readonly */
  7731. Scene scene;
  7732. /* readonly */
  7733. ScriptObject scriptObject;
  7734. /* readonly */
  7735. Array<String> tags;
  7736. bool temporary;
  7737. /* readonly */
  7738. Matrix3x4 transform;
  7739. /* readonly */
  7740. StringHash type;
  7741. /* readonly */
  7742. String typeName;
  7743. /* readonly */
  7744. Vector3 up;
  7745. /* readonly */
  7746. VariantMap vars;
  7747. /* readonly */
  7748. int weakRefs;
  7749. Vector3 worldDirection;
  7750. Vector3 worldPosition;
  7751. Vector2 worldPosition2D;
  7752. /* readonly */
  7753. Vector3 worldRight;
  7754. Quaternion worldRotation;
  7755. float worldRotation2D;
  7756. Vector3 worldScale;
  7757. Vector2 worldScale2D;
  7758. /* readonly */
  7759. Matrix3x4 worldTransform;
  7760. /* readonly */
  7761. Vector3 worldUp;
  7762. };
  7763. class Object
  7764. {
  7765. public:
  7766. // Methods:
  7767. bool HasSubscribedToEvent(Object, const String&);
  7768. bool HasSubscribedToEvent(const String&);
  7769. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7770. // Properties:
  7771. /* readonly */
  7772. String category;
  7773. /* readonly */
  7774. int refs;
  7775. /* readonly */
  7776. StringHash type;
  7777. /* readonly */
  7778. String typeName;
  7779. /* readonly */
  7780. int weakRefs;
  7781. };
  7782. class ObjectAnimation
  7783. {
  7784. public:
  7785. ObjectAnimation();
  7786. ObjectAnimation(const String&in);
  7787. // Methods:
  7788. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7789. ValueAnimation GetAttributeAnimation(const String&) const;
  7790. float GetAttributeAnimationSpeed(const String&) const;
  7791. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7792. bool HasSubscribedToEvent(Object, const String&);
  7793. bool HasSubscribedToEvent(const String&);
  7794. bool Load(File);
  7795. bool Load(VectorBuffer&);
  7796. bool Load(const String&);
  7797. void RemoveAttributeAnimation(ValueAnimation);
  7798. void RemoveAttributeAnimation(const String&);
  7799. bool Save(File) const;
  7800. bool Save(VectorBuffer&) const;
  7801. bool Save(const String&) const;
  7802. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7803. // Properties:
  7804. /* readonly */
  7805. Array<Variant> attributeAnimations;
  7806. /* readonly */
  7807. String category;
  7808. /* readonly */
  7809. uint memoryUse;
  7810. String name;
  7811. /* readonly */
  7812. int refs;
  7813. /* readonly */
  7814. Array<Variant> speeds;
  7815. /* readonly */
  7816. StringHash type;
  7817. /* readonly */
  7818. String typeName;
  7819. /* readonly */
  7820. uint useTimer;
  7821. /* readonly */
  7822. int weakRefs;
  7823. /* readonly */
  7824. Array<Variant> wrapModes;
  7825. };
  7826. class Obstacle
  7827. {
  7828. public:
  7829. // Methods:
  7830. void ApplyAttributes();
  7831. void DrawDebugGeometry(DebugRenderer, bool);
  7832. void DrawDebugGeometry(bool);
  7833. Variant GetAttribute(const String&) const;
  7834. ValueAnimation GetAttributeAnimation(const String&) const;
  7835. float GetAttributeAnimationSpeed(const String&) const;
  7836. float GetAttributeAnimationTime(const String&) const;
  7837. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7838. Variant GetAttributeDefault(const String&) const;
  7839. bool GetInterceptNetworkUpdate(const String&) const;
  7840. bool HasSubscribedToEvent(Object, const String&);
  7841. bool HasSubscribedToEvent(const String&);
  7842. bool Load(File, bool = false);
  7843. bool Load(VectorBuffer&, bool = false);
  7844. bool LoadJSON(const JSONValue&, bool = false);
  7845. bool LoadXML(const XMLElement&, bool = false);
  7846. void MarkNetworkUpdate() const;
  7847. void Remove();
  7848. void RemoveAttributeAnimation(const String&);
  7849. void RemoveInstanceDefault();
  7850. void RemoveObjectAnimation();
  7851. void ResetToDefault();
  7852. bool Save(File) const;
  7853. bool Save(VectorBuffer&) const;
  7854. bool SaveJSON(JSONValue&) const;
  7855. bool SaveXML(XMLElement&) const;
  7856. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7857. void SetAnimationTime(float);
  7858. bool SetAttribute(const String&, const Variant&);
  7859. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7860. void SetAttributeAnimationSpeed(const String&, float);
  7861. void SetAttributeAnimationTime(const String&, float);
  7862. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7863. void SetInterceptNetworkUpdate(const String&, bool);
  7864. // Properties:
  7865. bool animationEnabled;
  7866. /* readonly */
  7867. Array<Variant> attributeDefaults;
  7868. /* readonly */
  7869. Array<AttributeInfo> attributeInfos;
  7870. Array<Variant> attributes;
  7871. /* readonly */
  7872. String category;
  7873. bool enabled;
  7874. /* readonly */
  7875. bool enabledEffective;
  7876. float height;
  7877. /* readonly */
  7878. uint id;
  7879. /* readonly */
  7880. Node node;
  7881. /* readonly */
  7882. uint numAttributes;
  7883. ObjectAnimation objectAnimation;
  7884. /* readonly */
  7885. uint obstacleId;
  7886. float radius;
  7887. /* readonly */
  7888. int refs;
  7889. bool temporary;
  7890. /* readonly */
  7891. StringHash type;
  7892. /* readonly */
  7893. String typeName;
  7894. /* readonly */
  7895. int weakRefs;
  7896. };
  7897. class Octree
  7898. {
  7899. public:
  7900. // Methods:
  7901. void AddManualDrawable(Drawable);
  7902. void ApplyAttributes();
  7903. void DrawDebugGeometry(DebugRenderer, bool);
  7904. void DrawDebugGeometry(bool) const;
  7905. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7906. Variant GetAttribute(const String&) const;
  7907. ValueAnimation GetAttributeAnimation(const String&) const;
  7908. float GetAttributeAnimationSpeed(const String&) const;
  7909. float GetAttributeAnimationTime(const String&) const;
  7910. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7911. Variant GetAttributeDefault(const String&) const;
  7912. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7913. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7914. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7915. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7916. bool GetInterceptNetworkUpdate(const String&) const;
  7917. bool HasSubscribedToEvent(Object, const String&);
  7918. bool HasSubscribedToEvent(const String&);
  7919. bool Load(File, bool = false);
  7920. bool Load(VectorBuffer&, bool = false);
  7921. bool LoadJSON(const JSONValue&, bool = false);
  7922. bool LoadXML(const XMLElement&, bool = false);
  7923. void MarkNetworkUpdate() const;
  7924. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7925. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7926. void Remove();
  7927. void RemoveAttributeAnimation(const String&);
  7928. void RemoveInstanceDefault();
  7929. void RemoveManualDrawable(Drawable);
  7930. void RemoveObjectAnimation();
  7931. void ResetToDefault();
  7932. bool Save(File) const;
  7933. bool Save(VectorBuffer&) const;
  7934. bool SaveJSON(JSONValue&) const;
  7935. bool SaveXML(XMLElement&) const;
  7936. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7937. void SetAnimationTime(float);
  7938. bool SetAttribute(const String&, const Variant&);
  7939. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7940. void SetAttributeAnimationSpeed(const String&, float);
  7941. void SetAttributeAnimationTime(const String&, float);
  7942. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7943. void SetInterceptNetworkUpdate(const String&, bool);
  7944. void SetSize(const BoundingBox&, uint);
  7945. // Properties:
  7946. bool animationEnabled;
  7947. /* readonly */
  7948. Array<Variant> attributeDefaults;
  7949. /* readonly */
  7950. Array<AttributeInfo> attributeInfos;
  7951. Array<Variant> attributes;
  7952. /* readonly */
  7953. String category;
  7954. bool enabled;
  7955. /* readonly */
  7956. bool enabledEffective;
  7957. /* readonly */
  7958. uint id;
  7959. /* readonly */
  7960. Node node;
  7961. /* readonly */
  7962. uint numAttributes;
  7963. /* readonly */
  7964. uint numLevels;
  7965. ObjectAnimation objectAnimation;
  7966. /* readonly */
  7967. int refs;
  7968. bool temporary;
  7969. /* readonly */
  7970. StringHash type;
  7971. /* readonly */
  7972. String typeName;
  7973. /* readonly */
  7974. int weakRefs;
  7975. /* readonly */
  7976. BoundingBox worldBoundingBox;
  7977. };
  7978. class OffMeshConnection
  7979. {
  7980. public:
  7981. // Methods:
  7982. void ApplyAttributes();
  7983. void DrawDebugGeometry(DebugRenderer, bool);
  7984. Variant GetAttribute(const String&) const;
  7985. ValueAnimation GetAttributeAnimation(const String&) const;
  7986. float GetAttributeAnimationSpeed(const String&) const;
  7987. float GetAttributeAnimationTime(const String&) const;
  7988. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7989. Variant GetAttributeDefault(const String&) const;
  7990. bool GetInterceptNetworkUpdate(const String&) const;
  7991. bool HasSubscribedToEvent(Object, const String&);
  7992. bool HasSubscribedToEvent(const String&);
  7993. bool Load(File, bool = false);
  7994. bool Load(VectorBuffer&, bool = false);
  7995. bool LoadJSON(const JSONValue&, bool = false);
  7996. bool LoadXML(const XMLElement&, bool = false);
  7997. void MarkNetworkUpdate() const;
  7998. void Remove();
  7999. void RemoveAttributeAnimation(const String&);
  8000. void RemoveInstanceDefault();
  8001. void RemoveObjectAnimation();
  8002. void ResetToDefault();
  8003. bool Save(File) const;
  8004. bool Save(VectorBuffer&) const;
  8005. bool SaveJSON(JSONValue&) const;
  8006. bool SaveXML(XMLElement&) const;
  8007. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8008. void SetAnimationTime(float);
  8009. bool SetAttribute(const String&, const Variant&);
  8010. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8011. void SetAttributeAnimationSpeed(const String&, float);
  8012. void SetAttributeAnimationTime(const String&, float);
  8013. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8014. void SetInterceptNetworkUpdate(const String&, bool);
  8015. // Properties:
  8016. bool animationEnabled;
  8017. uint areaID;
  8018. /* readonly */
  8019. Array<Variant> attributeDefaults;
  8020. /* readonly */
  8021. Array<AttributeInfo> attributeInfos;
  8022. Array<Variant> attributes;
  8023. bool bidirectional;
  8024. /* readonly */
  8025. String category;
  8026. bool enabled;
  8027. /* readonly */
  8028. bool enabledEffective;
  8029. Node endPoint;
  8030. /* readonly */
  8031. uint id;
  8032. uint mask;
  8033. /* readonly */
  8034. Node node;
  8035. /* readonly */
  8036. uint numAttributes;
  8037. ObjectAnimation objectAnimation;
  8038. float radius;
  8039. /* readonly */
  8040. int refs;
  8041. bool temporary;
  8042. /* readonly */
  8043. StringHash type;
  8044. /* readonly */
  8045. String typeName;
  8046. /* readonly */
  8047. int weakRefs;
  8048. };
  8049. class PackageFile
  8050. {
  8051. public:
  8052. PackageFile();
  8053. PackageFile(const String&in, uint startOffset = 0);
  8054. // Methods:
  8055. bool Exists(const String&) const;
  8056. Array<String> GetEntryNames() const;
  8057. bool HasSubscribedToEvent(Object, const String&);
  8058. bool HasSubscribedToEvent(const String&);
  8059. bool Open(const String&, uint = 0) const;
  8060. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8061. bool compressed() const;
  8062. // Properties:
  8063. /* readonly */
  8064. String category;
  8065. /* readonly */
  8066. uint checksum;
  8067. /* readonly */
  8068. String name;
  8069. /* readonly */
  8070. uint numFiles;
  8071. /* readonly */
  8072. int refs;
  8073. /* readonly */
  8074. uint totalDataSize;
  8075. /* readonly */
  8076. uint totalSize;
  8077. /* readonly */
  8078. StringHash type;
  8079. /* readonly */
  8080. String typeName;
  8081. /* readonly */
  8082. int weakRefs;
  8083. };
  8084. class ParticleEffect
  8085. {
  8086. public:
  8087. ParticleEffect();
  8088. ParticleEffect(const String&in);
  8089. // Methods:
  8090. void AddColorFrame(ColorFrame);
  8091. void AddColorTime(Color&, float);
  8092. void AddTextureFrame(TextureFrame);
  8093. void AddTextureTime(Rect&, float);
  8094. ParticleEffect Clone(const String& = String ( )) const;
  8095. ColorFrame GetColorFrame(uint) const;
  8096. TextureFrame GetTextureFrame(uint) const;
  8097. bool HasSubscribedToEvent(Object, const String&);
  8098. bool HasSubscribedToEvent(const String&);
  8099. bool Load(File);
  8100. bool Load(VectorBuffer&);
  8101. bool Load(const String&);
  8102. bool Load(const XMLElement&);
  8103. void RemoveColorFrame(uint);
  8104. void RemoveTextureFrame(uint);
  8105. bool Save(File) const;
  8106. bool Save(VectorBuffer&) const;
  8107. bool Save(XMLElement&) const;
  8108. bool Save(const String&) const;
  8109. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8110. void SetColorFrame(uint, ColorFrame);
  8111. void SetTextureFrame(uint, TextureFrame);
  8112. void SortColorFrames();
  8113. void SortTextureFrames();
  8114. // Properties:
  8115. float activeTime;
  8116. float animationLodBias;
  8117. /* readonly */
  8118. String category;
  8119. Vector3 constantForce;
  8120. float dampingForce;
  8121. Vector3 emitterSize;
  8122. EmitterType emitterType;
  8123. FaceCameraMode faceCameraMode;
  8124. bool fixedScreenSize;
  8125. float inactiveTime;
  8126. Material material;
  8127. Vector3 maxDirection;
  8128. float maxEmissionRate;
  8129. Vector2 maxParticleSize;
  8130. float maxRotation;
  8131. float maxRotationSpeed;
  8132. float maxTimeToLive;
  8133. float maxVelocity;
  8134. /* readonly */
  8135. uint memoryUse;
  8136. Vector3 minDirection;
  8137. float minEmissionRate;
  8138. Vector2 minParticleSize;
  8139. float minRotation;
  8140. float minRotationSpeed;
  8141. float minTimeToLive;
  8142. float minVelocity;
  8143. String name;
  8144. uint numColorFrames;
  8145. uint numParticles;
  8146. uint numTextureFrames;
  8147. /* readonly */
  8148. int refs;
  8149. bool relative;
  8150. bool scaled;
  8151. float sizeAdd;
  8152. float sizeMul;
  8153. bool sorted;
  8154. /* readonly */
  8155. StringHash type;
  8156. /* readonly */
  8157. String typeName;
  8158. bool updateInvisible;
  8159. /* readonly */
  8160. uint useTimer;
  8161. /* readonly */
  8162. int weakRefs;
  8163. };
  8164. class ParticleEffect2D
  8165. {
  8166. public:
  8167. ParticleEffect2D();
  8168. ParticleEffect2D(const String&in);
  8169. // Methods:
  8170. ParticleEffect2D Clone(const String& = String ( )) const;
  8171. bool HasSubscribedToEvent(Object, const String&);
  8172. bool HasSubscribedToEvent(const String&);
  8173. bool Load(File);
  8174. bool Load(VectorBuffer&);
  8175. bool Load(const String&);
  8176. bool Save(File) const;
  8177. bool Save(VectorBuffer&) const;
  8178. bool Save(const String&) const;
  8179. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8180. // Properties:
  8181. /* readonly */
  8182. String category;
  8183. /* readonly */
  8184. uint memoryUse;
  8185. String name;
  8186. /* readonly */
  8187. int refs;
  8188. /* readonly */
  8189. StringHash type;
  8190. /* readonly */
  8191. String typeName;
  8192. /* readonly */
  8193. uint useTimer;
  8194. /* readonly */
  8195. int weakRefs;
  8196. };
  8197. class ParticleEmitter
  8198. {
  8199. public:
  8200. // Methods:
  8201. void ApplyAttributes();
  8202. void ApplyEffect();
  8203. void Commit();
  8204. void DrawDebugGeometry(DebugRenderer, bool);
  8205. Variant GetAttribute(const String&) const;
  8206. ValueAnimation GetAttributeAnimation(const String&) const;
  8207. float GetAttributeAnimationSpeed(const String&) const;
  8208. float GetAttributeAnimationTime(const String&) const;
  8209. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8210. Variant GetAttributeDefault(const String&) const;
  8211. bool GetInterceptNetworkUpdate(const String&) const;
  8212. bool HasSubscribedToEvent(Object, const String&);
  8213. bool HasSubscribedToEvent(const String&);
  8214. bool IsInView(Camera) const;
  8215. bool Load(File, bool = false);
  8216. bool Load(VectorBuffer&, bool = false);
  8217. bool LoadJSON(const JSONValue&, bool = false);
  8218. bool LoadXML(const XMLElement&, bool = false);
  8219. void MarkNetworkUpdate() const;
  8220. void Remove();
  8221. void RemoveAllParticles();
  8222. void RemoveAttributeAnimation(const String&);
  8223. void RemoveInstanceDefault();
  8224. void RemoveObjectAnimation();
  8225. void Reset();
  8226. void ResetEmissionTimer();
  8227. void ResetToDefault();
  8228. bool Save(File) const;
  8229. bool Save(VectorBuffer&) const;
  8230. bool SaveJSON(JSONValue&) const;
  8231. bool SaveXML(XMLElement&) const;
  8232. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8233. void SetAnimationTime(float);
  8234. bool SetAttribute(const String&, const Variant&);
  8235. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8236. void SetAttributeAnimationSpeed(const String&, float);
  8237. void SetAttributeAnimationTime(const String&, float);
  8238. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8239. void SetInterceptNetworkUpdate(const String&, bool);
  8240. // Properties:
  8241. bool animationEnabled;
  8242. float animationLodBias;
  8243. /* readonly */
  8244. Array<Variant> attributeDefaults;
  8245. /* readonly */
  8246. Array<AttributeInfo> attributeInfos;
  8247. Array<Variant> attributes;
  8248. AutoRemoveMode autoRemoveMode;
  8249. /* readonly */
  8250. Array<Billboard> billboards;
  8251. /* readonly */
  8252. BoundingBox boundingBox;
  8253. bool castShadows;
  8254. /* readonly */
  8255. String category;
  8256. float drawDistance;
  8257. ParticleEffect effect;
  8258. bool emitting;
  8259. bool enabled;
  8260. /* readonly */
  8261. bool enabledEffective;
  8262. FaceCameraMode faceCameraMode;
  8263. bool fixedScreenSize;
  8264. /* readonly */
  8265. uint id;
  8266. /* readonly */
  8267. bool inView;
  8268. uint lightMask;
  8269. float lodBias;
  8270. Material material;
  8271. uint maxLights;
  8272. /* readonly */
  8273. Node node;
  8274. /* readonly */
  8275. uint numAttributes;
  8276. uint numBillboards;
  8277. uint numParticles;
  8278. ObjectAnimation objectAnimation;
  8279. bool occludee;
  8280. bool occluder;
  8281. /* readonly */
  8282. int refs;
  8283. bool relative;
  8284. bool scaled;
  8285. bool serializeParticles;
  8286. float shadowDistance;
  8287. uint shadowMask;
  8288. bool sorted;
  8289. bool temporary;
  8290. /* readonly */
  8291. StringHash type;
  8292. /* readonly */
  8293. String typeName;
  8294. uint viewMask;
  8295. /* readonly */
  8296. int weakRefs;
  8297. /* readonly */
  8298. BoundingBox worldBoundingBox;
  8299. /* readonly */
  8300. Zone zone;
  8301. uint zoneMask;
  8302. };
  8303. class ParticleEmitter2D
  8304. {
  8305. public:
  8306. // Methods:
  8307. void ApplyAttributes();
  8308. void DrawDebugGeometry(DebugRenderer, bool);
  8309. Variant GetAttribute(const String&) const;
  8310. ValueAnimation GetAttributeAnimation(const String&) const;
  8311. float GetAttributeAnimationSpeed(const String&) const;
  8312. float GetAttributeAnimationTime(const String&) const;
  8313. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8314. Variant GetAttributeDefault(const String&) const;
  8315. bool GetInterceptNetworkUpdate(const String&) const;
  8316. bool HasSubscribedToEvent(Object, const String&);
  8317. bool HasSubscribedToEvent(const String&);
  8318. bool IsInView(Camera) const;
  8319. bool Load(File, bool = false);
  8320. bool Load(VectorBuffer&, bool = false);
  8321. bool LoadJSON(const JSONValue&, bool = false);
  8322. bool LoadXML(const XMLElement&, bool = false);
  8323. void MarkNetworkUpdate() const;
  8324. void Remove();
  8325. void RemoveAttributeAnimation(const String&);
  8326. void RemoveInstanceDefault();
  8327. void RemoveObjectAnimation();
  8328. void ResetToDefault();
  8329. bool Save(File) const;
  8330. bool Save(VectorBuffer&) const;
  8331. bool SaveJSON(JSONValue&) const;
  8332. bool SaveXML(XMLElement&) const;
  8333. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8334. void SetAnimationTime(float);
  8335. bool SetAttribute(const String&, const Variant&);
  8336. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8337. void SetAttributeAnimationSpeed(const String&, float);
  8338. void SetAttributeAnimationTime(const String&, float);
  8339. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8340. void SetInterceptNetworkUpdate(const String&, bool);
  8341. // Properties:
  8342. bool animationEnabled;
  8343. /* readonly */
  8344. Array<Variant> attributeDefaults;
  8345. /* readonly */
  8346. Array<AttributeInfo> attributeInfos;
  8347. Array<Variant> attributes;
  8348. BlendMode blendMode;
  8349. /* readonly */
  8350. BoundingBox boundingBox;
  8351. bool castShadows;
  8352. /* readonly */
  8353. String category;
  8354. float drawDistance;
  8355. ParticleEffect2D effect;
  8356. bool enabled;
  8357. /* readonly */
  8358. bool enabledEffective;
  8359. /* readonly */
  8360. uint id;
  8361. /* readonly */
  8362. bool inView;
  8363. int layer;
  8364. uint lightMask;
  8365. float lodBias;
  8366. uint maxLights;
  8367. /* readonly */
  8368. Node node;
  8369. /* readonly */
  8370. uint numAttributes;
  8371. ObjectAnimation objectAnimation;
  8372. bool occludee;
  8373. bool occluder;
  8374. int orderInLayer;
  8375. /* readonly */
  8376. int refs;
  8377. float shadowDistance;
  8378. uint shadowMask;
  8379. Sprite2D sprite;
  8380. bool temporary;
  8381. /* readonly */
  8382. StringHash type;
  8383. /* readonly */
  8384. String typeName;
  8385. uint viewMask;
  8386. /* readonly */
  8387. int weakRefs;
  8388. /* readonly */
  8389. BoundingBox worldBoundingBox;
  8390. uint zoneMask;
  8391. };
  8392. class Pass
  8393. {
  8394. public:
  8395. // Properties:
  8396. bool alphaToCoverage;
  8397. BlendMode blendMode;
  8398. CullMode cullMode;
  8399. CompareMode depthTestMode;
  8400. bool depthWrite;
  8401. bool desktop;
  8402. PassLightingMode lightingMode;
  8403. String pixelShader;
  8404. String pixelShaderDefineExcludes;
  8405. String pixelShaderDefines;
  8406. /* readonly */
  8407. int refs;
  8408. String vertexShader;
  8409. String vertexShaderDefineExcludes;
  8410. String vertexShaderDefines;
  8411. /* readonly */
  8412. int weakRefs;
  8413. };
  8414. class PhysicsRaycastResult
  8415. {
  8416. public:
  8417. ~PhysicsRaycastResult();
  8418. PhysicsRaycastResult();
  8419. // Properties:
  8420. /* readonly */
  8421. RigidBody body;
  8422. float distance;
  8423. float hitFraction;
  8424. Vector3 normal;
  8425. Vector3 position;
  8426. };
  8427. class PhysicsRaycastResult2D
  8428. {
  8429. public:
  8430. ~PhysicsRaycastResult2D();
  8431. PhysicsRaycastResult2D();
  8432. // Properties:
  8433. /* readonly */
  8434. RigidBody2D body;
  8435. float distance;
  8436. Vector2 normal;
  8437. Vector2 position;
  8438. };
  8439. class PhysicsWorld
  8440. {
  8441. public:
  8442. // Methods:
  8443. void ApplyAttributes();
  8444. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  8445. void DrawDebugGeometry(DebugRenderer, bool);
  8446. void DrawDebugGeometry(bool);
  8447. Variant GetAttribute(const String&) const;
  8448. ValueAnimation GetAttributeAnimation(const String&) const;
  8449. float GetAttributeAnimationSpeed(const String&) const;
  8450. float GetAttributeAnimationTime(const String&) const;
  8451. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8452. Variant GetAttributeDefault(const String&) const;
  8453. Array<RigidBody> GetCollidingBodies(RigidBody);
  8454. bool GetInterceptNetworkUpdate(const String&) const;
  8455. Array<RigidBody> GetRigidBodies(RigidBody);
  8456. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  8457. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  8458. bool HasSubscribedToEvent(Object, const String&);
  8459. bool HasSubscribedToEvent(const String&);
  8460. bool Load(File, bool = false);
  8461. bool Load(VectorBuffer&, bool = false);
  8462. bool LoadJSON(const JSONValue&, bool = false);
  8463. bool LoadXML(const XMLElement&, bool = false);
  8464. void MarkNetworkUpdate() const;
  8465. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  8466. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  8467. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  8468. void Remove();
  8469. void RemoveAttributeAnimation(const String&);
  8470. void RemoveCachedGeometry(Model);
  8471. void RemoveInstanceDefault();
  8472. void RemoveObjectAnimation();
  8473. void ResetToDefault();
  8474. bool Save(File) const;
  8475. bool Save(VectorBuffer&) const;
  8476. bool SaveJSON(JSONValue&) const;
  8477. bool SaveXML(XMLElement&) const;
  8478. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8479. void SetAnimationTime(float);
  8480. bool SetAttribute(const String&, const Variant&);
  8481. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8482. void SetAttributeAnimationSpeed(const String&, float);
  8483. void SetAttributeAnimationTime(const String&, float);
  8484. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8485. void SetInterceptNetworkUpdate(const String&, bool);
  8486. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  8487. void Update(float);
  8488. void UpdateCollisions();
  8489. // Properties:
  8490. bool animationEnabled;
  8491. /* readonly */
  8492. Array<Variant> attributeDefaults;
  8493. /* readonly */
  8494. Array<AttributeInfo> attributeInfos;
  8495. Array<Variant> attributes;
  8496. /* readonly */
  8497. String category;
  8498. bool enabled;
  8499. /* readonly */
  8500. bool enabledEffective;
  8501. int fps;
  8502. Vector3 gravity;
  8503. /* readonly */
  8504. uint id;
  8505. bool internalEdge;
  8506. bool interpolation;
  8507. int maxSubSteps;
  8508. /* readonly */
  8509. Node node;
  8510. /* readonly */
  8511. uint numAttributes;
  8512. int numIterations;
  8513. ObjectAnimation objectAnimation;
  8514. /* readonly */
  8515. int refs;
  8516. bool splitImpulse;
  8517. bool temporary;
  8518. /* readonly */
  8519. StringHash type;
  8520. /* readonly */
  8521. String typeName;
  8522. bool updateEnabled;
  8523. /* readonly */
  8524. int weakRefs;
  8525. };
  8526. class PhysicsWorld2D
  8527. {
  8528. public:
  8529. // Methods:
  8530. void ApplyAttributes();
  8531. void DrawDebugGeometry() const;
  8532. void DrawDebugGeometry(DebugRenderer, bool);
  8533. Variant GetAttribute(const String&) const;
  8534. ValueAnimation GetAttributeAnimation(const String&) const;
  8535. float GetAttributeAnimationSpeed(const String&) const;
  8536. float GetAttributeAnimationTime(const String&) const;
  8537. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8538. Variant GetAttributeDefault(const String&) const;
  8539. bool GetInterceptNetworkUpdate(const String&) const;
  8540. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8541. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8542. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8543. bool HasSubscribedToEvent(Object, const String&);
  8544. bool HasSubscribedToEvent(const String&);
  8545. bool Load(File, bool = false);
  8546. bool Load(VectorBuffer&, bool = false);
  8547. bool LoadJSON(const JSONValue&, bool = false);
  8548. bool LoadXML(const XMLElement&, bool = false);
  8549. void MarkNetworkUpdate() const;
  8550. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8551. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8552. void Remove();
  8553. void RemoveAttributeAnimation(const String&);
  8554. void RemoveInstanceDefault();
  8555. void RemoveObjectAnimation();
  8556. void ResetToDefault();
  8557. bool Save(File) const;
  8558. bool Save(VectorBuffer&) const;
  8559. bool SaveJSON(JSONValue&) const;
  8560. bool SaveXML(XMLElement&) const;
  8561. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8562. void SetAnimationTime(float);
  8563. bool SetAttribute(const String&, const Variant&);
  8564. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8565. void SetAttributeAnimationSpeed(const String&, float);
  8566. void SetAttributeAnimationTime(const String&, float);
  8567. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8568. void SetInterceptNetworkUpdate(const String&, bool);
  8569. // Properties:
  8570. bool allowSleeping;
  8571. bool animationEnabled;
  8572. /* readonly */
  8573. Array<Variant> attributeDefaults;
  8574. /* readonly */
  8575. Array<AttributeInfo> attributeInfos;
  8576. Array<Variant> attributes;
  8577. bool autoClearForces;
  8578. /* readonly */
  8579. String category;
  8580. bool continuousPhysics;
  8581. bool drawAabb;
  8582. bool drawCenterOfMass;
  8583. bool drawJoint;
  8584. bool drawPair;
  8585. bool drawShape;
  8586. bool enabled;
  8587. /* readonly */
  8588. bool enabledEffective;
  8589. Vector2 gravity;
  8590. /* readonly */
  8591. uint id;
  8592. /* readonly */
  8593. Node node;
  8594. /* readonly */
  8595. uint numAttributes;
  8596. ObjectAnimation objectAnimation;
  8597. uint positionIterations;
  8598. /* readonly */
  8599. int refs;
  8600. bool subStepping;
  8601. bool temporary;
  8602. /* readonly */
  8603. StringHash type;
  8604. /* readonly */
  8605. String typeName;
  8606. bool updateEnabled;
  8607. uint velocityIterations;
  8608. bool warmStarting;
  8609. /* readonly */
  8610. int weakRefs;
  8611. };
  8612. class Plane
  8613. {
  8614. public:
  8615. Plane();
  8616. Plane(const Plane&in);
  8617. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  8618. Plane(const Vector3&in, const Vector3&in);
  8619. Plane(const Vector4&in);
  8620. // Methods:
  8621. void Define(const Vector3&, const Vector3&);
  8622. void Define(const Vector3&, const Vector3&, const Vector3&);
  8623. void Define(const Vector4&);
  8624. float Distance(const Vector3&) const;
  8625. Vector3 Project(const Vector3&) const;
  8626. Vector3 Reflect(const Vector3&) const;
  8627. Vector4 ToVector4() const;
  8628. void Transform(const Matrix3&);
  8629. void Transform(const Matrix3x4&);
  8630. void Transform(const Matrix4&);
  8631. Plane Transformed(const Matrix3&) const;
  8632. Plane Transformed(const Matrix3x4&) const;
  8633. Plane Transformed(const Matrix4&) const;
  8634. // Properties:
  8635. Vector3 absNormal;
  8636. float d;
  8637. Vector3 normal;
  8638. /* readonly */
  8639. Matrix3x4 reflectionMatrix;
  8640. };
  8641. class Polyhedron
  8642. {
  8643. public:
  8644. ~Polyhedron();
  8645. Polyhedron();
  8646. Polyhedron(const Polyhedron&in);
  8647. Polyhedron(const BoundingBox&in);
  8648. Polyhedron(const Frustum&in);
  8649. // Methods:
  8650. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8651. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8652. void AddFace(const Array<Vector3>);
  8653. void Clear();
  8654. void Clip(const BoundingBox&);
  8655. void Clip(const Frustum&);
  8656. void Define(const BoundingBox&);
  8657. void Define(const Frustum&);
  8658. void Transform(const Matrix3&);
  8659. void Transform(const Matrix3x4&);
  8660. Polyhedron Transformed(const Matrix3&) const;
  8661. Polyhedron Transformed(const Matrix3x4&) const;
  8662. // Properties:
  8663. /* readonly */
  8664. Array<Array<Vector3>> face;
  8665. /* readonly */
  8666. uint numFaces;
  8667. };
  8668. class ProgressBar
  8669. {
  8670. public:
  8671. // Methods:
  8672. void ChangeValue(float);
  8673. bool HasSubscribedToEvent(Object, const String&);
  8674. bool HasSubscribedToEvent(const String&);
  8675. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8676. void SetLoadingPercentStyle(const String&);
  8677. // Properties:
  8678. /* readonly */
  8679. String category;
  8680. /* readonly */
  8681. BorderImage knob;
  8682. Orientation orientation;
  8683. float range;
  8684. /* readonly */
  8685. int refs;
  8686. bool showPercentText;
  8687. /* readonly */
  8688. StringHash type;
  8689. /* readonly */
  8690. String typeName;
  8691. float value;
  8692. /* readonly */
  8693. int weakRefs;
  8694. };
  8695. class PropertySet2D
  8696. {
  8697. public:
  8698. // Methods:
  8699. bool HasProperty(const String&) const;
  8700. const String& GetProperty(const String&) const;
  8701. // Properties:
  8702. /* readonly */
  8703. int refs;
  8704. /* readonly */
  8705. int weakRefs;
  8706. };
  8707. class Quaternion
  8708. {
  8709. public:
  8710. Quaternion();
  8711. Quaternion(const Quaternion&in);
  8712. Quaternion(float, float, float, float);
  8713. Quaternion(float, const Vector3&in);
  8714. Quaternion(float);
  8715. Quaternion(float, float, float);
  8716. Quaternion(const Vector3&in);
  8717. Quaternion(const Vector3&in, const Vector3&in);
  8718. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  8719. Quaternion(const Matrix3&in);
  8720. // Methods:
  8721. Quaternion Conjugate() const;
  8722. float DotProduct(const Quaternion&) const;
  8723. bool Equals(const Quaternion&) const;
  8724. void FromAngleAxis(float, const Vector3&);
  8725. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8726. void FromEulerAngles(float, float, float);
  8727. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8728. void FromRotationMatrix(const Matrix3&);
  8729. void FromRotationTo(const Vector3&, const Vector3&);
  8730. Quaternion Inverse() const;
  8731. bool IsNaN() const;
  8732. float LengthSquared() const;
  8733. Quaternion Nlerp(const Quaternion&, float, bool) const;
  8734. void Normalize();
  8735. Quaternion Normalized() const;
  8736. Quaternion Slerp(const Quaternion&, float) const;
  8737. String ToString() const;
  8738. // Properties:
  8739. /* readonly */
  8740. Vector3 eulerAngles;
  8741. /* readonly */
  8742. float pitch;
  8743. /* readonly */
  8744. float roll;
  8745. /* readonly */
  8746. Matrix3 rotationMatrix;
  8747. float w;
  8748. float x;
  8749. float y;
  8750. /* readonly */
  8751. float yaw;
  8752. float z;
  8753. };
  8754. class Ray
  8755. {
  8756. public:
  8757. Ray();
  8758. Ray(const Ray&in);
  8759. Ray(const Vector3&in, const Vector3&in);
  8760. // Methods:
  8761. Vector3 ClosestPoint(const Ray&) const;
  8762. void Define(const Vector3&, const Vector3&);
  8763. float Distance(const Vector3&) const;
  8764. float HitDistance(const BoundingBox&) const;
  8765. float HitDistance(const Frustum&, bool = true) const;
  8766. float HitDistance(const Plane&) const;
  8767. float HitDistance(const Sphere&) const;
  8768. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8769. Vector3 Project(const Vector3&) const;
  8770. Ray Transformed(const Matrix3x4&) const;
  8771. // Properties:
  8772. Vector3 direction;
  8773. Vector3 origin;
  8774. };
  8775. class RayQueryResult
  8776. {
  8777. public:
  8778. RayQueryResult();
  8779. // Properties:
  8780. float distance;
  8781. /* readonly */
  8782. Drawable drawable;
  8783. /* readonly */
  8784. Node node;
  8785. Vector3 normal;
  8786. Vector3 position;
  8787. uint subObject;
  8788. Vector2 textureUV;
  8789. };
  8790. class Rect
  8791. {
  8792. public:
  8793. Rect();
  8794. Rect(const Rect&in);
  8795. Rect(float, float, float, float);
  8796. Rect(const Vector2&in, const Vector2&in);
  8797. Rect(const Vector4&in);
  8798. // Methods:
  8799. void Clear();
  8800. void Clip(const Rect&);
  8801. void Define(const Vector2&);
  8802. void Define(const Vector2&, const Vector2&);
  8803. bool Defined() const;
  8804. bool Equals(const Rect&) const;
  8805. Intersection IsInside(const Rect&) const;
  8806. Intersection IsInside(const Vector2&) const;
  8807. void Merge(const Rect&);
  8808. void Merge(const Vector2&);
  8809. Vector4 ToVector4() const;
  8810. // Properties:
  8811. float bottom;
  8812. /* readonly */
  8813. Vector2 center;
  8814. /* readonly */
  8815. Vector2 halfSize;
  8816. float left;
  8817. Vector2 max;
  8818. Vector2 min;
  8819. float right;
  8820. /* readonly */
  8821. Vector2 size;
  8822. float top;
  8823. };
  8824. class RefCounted
  8825. {
  8826. public:
  8827. // Properties:
  8828. /* readonly */
  8829. int refs;
  8830. /* readonly */
  8831. int weakRefs;
  8832. };
  8833. class RenderPath
  8834. {
  8835. public:
  8836. RenderPath();
  8837. // Methods:
  8838. void AddCommand(const RenderPathCommand&);
  8839. void AddRenderTarget(const RenderTargetInfo&);
  8840. bool Append(XMLFile);
  8841. RenderPath Clone();
  8842. void InsertCommand(uint, const RenderPathCommand&);
  8843. bool Load(XMLFile);
  8844. void RemoveCommand(uint);
  8845. void RemoveCommands(const String&);
  8846. void RemoveRenderTarget(const String&);
  8847. void RemoveRenderTarget(uint);
  8848. void RemoveRenderTargts(const String&);
  8849. void SetEnabled(const String&, bool);
  8850. void ToggleEnabled(const String&);
  8851. // Properties:
  8852. Array<RenderPathCommand> commands;
  8853. /* readonly */
  8854. uint numCommands;
  8855. /* readonly */
  8856. uint numRenderTargets;
  8857. /* readonly */
  8858. int refs;
  8859. Array<RenderTargetInfo> renderTargets;
  8860. Array<Variant> shaderParameters;
  8861. /* readonly */
  8862. int weakRefs;
  8863. };
  8864. class RenderPathCommand
  8865. {
  8866. public:
  8867. ~RenderPathCommand();
  8868. RenderPathCommand();
  8869. RenderPathCommand(const RenderPathCommand&in);
  8870. // Methods:
  8871. void RemoveShaderParameter(const String&);
  8872. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8873. // Properties:
  8874. BlendMode blendMode;
  8875. Color clearColor;
  8876. float clearDepth;
  8877. uint clearFlags;
  8878. uint clearStencil;
  8879. String depthStencilName;
  8880. bool enabled;
  8881. String eventName;
  8882. bool markToStencil;
  8883. String metadata;
  8884. uint numOutputs;
  8885. Array<CubeMapFace> outputFaces;
  8886. Array<String> outputNames;
  8887. String pass;
  8888. String pixelShaderDefines;
  8889. String pixelShaderName;
  8890. Array<Variant> shaderParameters;
  8891. RenderCommandSortMode sortMode;
  8892. String tag;
  8893. Array<String> textureNames;
  8894. RenderCommandType type;
  8895. bool useFogColor;
  8896. bool useLitBase;
  8897. bool vertexLights;
  8898. String vertexShaderDefines;
  8899. String vertexShaderName;
  8900. };
  8901. class RenderSurface
  8902. {
  8903. public:
  8904. // Methods:
  8905. void QueueUpdate();
  8906. // Properties:
  8907. /* readonly */
  8908. int height;
  8909. RenderSurface linkedDepthStencil;
  8910. RenderSurface linkedRenderTarget;
  8911. uint numViewports;
  8912. /* readonly */
  8913. Texture parentTexture;
  8914. /* readonly */
  8915. bool resolveDirty;
  8916. RenderSurfaceUpdateMode updateMode;
  8917. /* readonly */
  8918. TextureUsage usage;
  8919. Array<Viewport> viewports;
  8920. /* readonly */
  8921. int width;
  8922. };
  8923. class RenderTargetInfo
  8924. {
  8925. public:
  8926. ~RenderTargetInfo();
  8927. RenderTargetInfo();
  8928. RenderTargetInfo(const RenderTargetInfo&in);
  8929. // Properties:
  8930. bool autoResolve;
  8931. bool cubemap;
  8932. bool enabled;
  8933. bool filtered;
  8934. uint format;
  8935. int multiSample;
  8936. String name;
  8937. bool persistent;
  8938. bool sRGB;
  8939. Vector2 size;
  8940. RenderTargetSizeMode sizeMode;
  8941. String tag;
  8942. };
  8943. class Renderer
  8944. {
  8945. public:
  8946. // Methods:
  8947. void DrawDebugGeometry(bool) const;
  8948. bool HasSubscribedToEvent(Object, const String&);
  8949. bool HasSubscribedToEvent(const String&);
  8950. void ReloadShaders() const;
  8951. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8952. void SetDefaultRenderPath(XMLFile);
  8953. void SetVSMShadowParameters(float, float);
  8954. // Properties:
  8955. /* readonly */
  8956. String category;
  8957. /* readonly */
  8958. Material defaultLightRamp;
  8959. /* readonly */
  8960. Material defaultLightSpot;
  8961. /* readonly */
  8962. Material defaultMaterial;
  8963. RenderPath defaultRenderPath;
  8964. Technique defaultTechnique;
  8965. /* readonly */
  8966. Zone defaultZone;
  8967. bool drawShadows;
  8968. bool dynamicInstancing;
  8969. bool hdrRendering;
  8970. int materialQuality;
  8971. int maxOccluderTriangles;
  8972. int maxShadowMaps;
  8973. int maxSortedInstances;
  8974. int minInstances;
  8975. float mobileNormalOffsetMul;
  8976. float mobileShadowBiasAdd;
  8977. float mobileShadowBiasMul;
  8978. /* readonly */
  8979. uint numBatches;
  8980. int numExtraInstancingBufferElements;
  8981. /* readonly */
  8982. Array<uint> numGeometries;
  8983. /* readonly */
  8984. Array<uint> numLights;
  8985. /* readonly */
  8986. Array<uint> numOccluders;
  8987. /* readonly */
  8988. uint numPrimitives;
  8989. /* readonly */
  8990. Array<uint> numShadowMaps;
  8991. uint numViewports;
  8992. /* readonly */
  8993. uint numViews;
  8994. float occluderSizeThreshold;
  8995. int occlusionBufferSize;
  8996. /* readonly */
  8997. int refs;
  8998. bool reuseShadowMaps;
  8999. int shadowMapSize;
  9000. ShadowQuality shadowQuality;
  9001. float shadowSoftness;
  9002. bool specularLighting;
  9003. int textureAnisotropy;
  9004. TextureFilterMode textureFilterMode;
  9005. int textureQuality;
  9006. bool threadedOcclusion;
  9007. /* readonly */
  9008. StringHash type;
  9009. /* readonly */
  9010. String typeName;
  9011. Array<Viewport> viewports;
  9012. int vsmMultiSample;
  9013. Vector2 vsmShadowParameters;
  9014. /* readonly */
  9015. int weakRefs;
  9016. };
  9017. class Resource
  9018. {
  9019. public:
  9020. // Methods:
  9021. bool HasSubscribedToEvent(Object, const String&);
  9022. bool HasSubscribedToEvent(const String&);
  9023. bool Load(File);
  9024. bool Load(VectorBuffer&);
  9025. bool Load(const String&);
  9026. bool Save(File) const;
  9027. bool Save(VectorBuffer&) const;
  9028. bool Save(const String&) const;
  9029. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9030. // Properties:
  9031. /* readonly */
  9032. String category;
  9033. /* readonly */
  9034. uint memoryUse;
  9035. String name;
  9036. /* readonly */
  9037. int refs;
  9038. /* readonly */
  9039. StringHash type;
  9040. /* readonly */
  9041. String typeName;
  9042. /* readonly */
  9043. uint useTimer;
  9044. /* readonly */
  9045. int weakRefs;
  9046. };
  9047. class ResourceCache
  9048. {
  9049. public:
  9050. // Methods:
  9051. bool AddManualResource(Resource);
  9052. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  9053. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  9054. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  9055. bool BackgroundLoadResource(const String&, const String&, bool = true);
  9056. bool Exists(const String&) const;
  9057. Resource GetExistingResource(StringHash, const String&);
  9058. Resource GetExistingResource(const String&, const String&);
  9059. File GetFile(const String&);
  9060. String GetPreferredResourceDir(const String&) const;
  9061. Resource GetResource(StringHash, const String&, bool = true);
  9062. Resource GetResource(const String&, const String&, bool = true);
  9063. String GetResourceFileName(const String&) const;
  9064. Array<Resource> GetResources(StringHash);
  9065. Array<Resource> GetResources(const String&);
  9066. bool HasSubscribedToEvent(Object, const String&);
  9067. bool HasSubscribedToEvent(const String&);
  9068. void ReleaseAllResources(bool = false);
  9069. void ReleaseResource(const String&, const String&, bool = false);
  9070. void ReleaseResources(StringHash, bool = false);
  9071. void ReleaseResources(const String&, bool = false);
  9072. void ReleaseResources(const String&, const String&, bool = false);
  9073. bool ReloadResource(Resource);
  9074. void ReloadResourceWithDependencies(const String&);
  9075. void RemovePackageFile(PackageFile, bool = true, bool = false);
  9076. void RemovePackageFile(const String&, bool = true, bool = false);
  9077. void RemoveResourceDir(const String&);
  9078. String SanitateResourceDirName(const String&) const;
  9079. String SanitateResourceName(const String&) const;
  9080. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9081. // Properties:
  9082. bool autoReloadResources;
  9083. /* readonly */
  9084. String category;
  9085. int finishBackgroundResourcesMs;
  9086. Array<uint64> memoryBudget;
  9087. /* readonly */
  9088. Array<uint64> memoryUse;
  9089. /* readonly */
  9090. uint numBackgroundLoadResources;
  9091. /* readonly */
  9092. Array<PackageFile> packageFiles;
  9093. /* readonly */
  9094. int refs;
  9095. /* readonly */
  9096. Array<String> resourceDirs;
  9097. bool returnFailedResources;
  9098. /* readonly */
  9099. bool seachPackagesFirst;
  9100. /* writeonly */
  9101. bool searchPackagesFirst;
  9102. /* readonly */
  9103. uint64 totalMemoryUse;
  9104. /* readonly */
  9105. StringHash type;
  9106. /* readonly */
  9107. String typeName;
  9108. /* readonly */
  9109. int weakRefs;
  9110. };
  9111. class ResourceRef
  9112. {
  9113. public:
  9114. ~ResourceRef();
  9115. ResourceRef();
  9116. ResourceRef(const ResourceRef&in);
  9117. ResourceRef(const String&in, const String&in);
  9118. // Properties:
  9119. String name;
  9120. StringHash type;
  9121. };
  9122. class ResourceRefList
  9123. {
  9124. public:
  9125. ~ResourceRefList();
  9126. ResourceRefList();
  9127. ResourceRefList(const ResourceRefList&in);
  9128. // Methods:
  9129. void Resize(uint);
  9130. // Properties:
  9131. /* readonly */
  9132. bool empty;
  9133. /* readonly */
  9134. uint length;
  9135. Array<String> names;
  9136. StringHash type;
  9137. };
  9138. class RibbonTrail
  9139. {
  9140. public:
  9141. // Methods:
  9142. void ApplyAttributes();
  9143. void Commit();
  9144. void DrawDebugGeometry(DebugRenderer, bool);
  9145. Variant GetAttribute(const String&) const;
  9146. ValueAnimation GetAttributeAnimation(const String&) const;
  9147. float GetAttributeAnimationSpeed(const String&) const;
  9148. float GetAttributeAnimationTime(const String&) const;
  9149. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9150. Variant GetAttributeDefault(const String&) const;
  9151. bool GetInterceptNetworkUpdate(const String&) const;
  9152. bool HasSubscribedToEvent(Object, const String&);
  9153. bool HasSubscribedToEvent(const String&);
  9154. bool IsInView(Camera) const;
  9155. bool Load(File, bool = false);
  9156. bool Load(VectorBuffer&, bool = false);
  9157. bool LoadJSON(const JSONValue&, bool = false);
  9158. bool LoadXML(const XMLElement&, bool = false);
  9159. void MarkNetworkUpdate() const;
  9160. void Remove();
  9161. void RemoveAttributeAnimation(const String&);
  9162. void RemoveInstanceDefault();
  9163. void RemoveObjectAnimation();
  9164. void ResetToDefault();
  9165. bool Save(File) const;
  9166. bool Save(VectorBuffer&) const;
  9167. bool SaveJSON(JSONValue&) const;
  9168. bool SaveXML(XMLElement&) const;
  9169. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9170. void SetAnimationTime(float);
  9171. bool SetAttribute(const String&, const Variant&);
  9172. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9173. void SetAttributeAnimationSpeed(const String&, float);
  9174. void SetAttributeAnimationTime(const String&, float);
  9175. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9176. void SetInterceptNetworkUpdate(const String&, bool);
  9177. // Properties:
  9178. bool animationEnabled;
  9179. float animationLodBias;
  9180. /* readonly */
  9181. Array<Variant> attributeDefaults;
  9182. /* readonly */
  9183. Array<AttributeInfo> attributeInfos;
  9184. Array<Variant> attributes;
  9185. /* readonly */
  9186. BoundingBox boundingBox;
  9187. bool castShadows;
  9188. /* readonly */
  9189. String category;
  9190. float drawDistance;
  9191. bool emitting;
  9192. bool enabled;
  9193. /* readonly */
  9194. bool enabledEffective;
  9195. Color endColor;
  9196. float endScale;
  9197. /* readonly */
  9198. uint id;
  9199. /* readonly */
  9200. bool inView;
  9201. float lifetime;
  9202. uint lightMask;
  9203. float lodBias;
  9204. Material material;
  9205. uint maxLights;
  9206. /* readonly */
  9207. Node node;
  9208. /* readonly */
  9209. uint numAttributes;
  9210. ObjectAnimation objectAnimation;
  9211. bool occludee;
  9212. bool occluder;
  9213. /* readonly */
  9214. int refs;
  9215. float shadowDistance;
  9216. uint shadowMask;
  9217. bool sorted;
  9218. Color startColor;
  9219. float startScale;
  9220. uint tailColumn;
  9221. bool temporary;
  9222. TrailType trailType;
  9223. /* readonly */
  9224. StringHash type;
  9225. /* readonly */
  9226. String typeName;
  9227. bool updateInvisible;
  9228. float vertexDistance;
  9229. uint viewMask;
  9230. /* readonly */
  9231. int weakRefs;
  9232. float width;
  9233. /* readonly */
  9234. BoundingBox worldBoundingBox;
  9235. /* readonly */
  9236. Zone zone;
  9237. uint zoneMask;
  9238. };
  9239. class RigidBody
  9240. {
  9241. public:
  9242. // Methods:
  9243. void Activate();
  9244. void ApplyAttributes();
  9245. void ApplyForce(const Vector3&);
  9246. void ApplyForce(const Vector3&, const Vector3&);
  9247. void ApplyImpulse(const Vector3&);
  9248. void ApplyImpulse(const Vector3&, const Vector3&);
  9249. void ApplyTorque(const Vector3&);
  9250. void ApplyTorqueImpulse(const Vector3&);
  9251. void DisableMassUpdate();
  9252. void DrawDebugGeometry(DebugRenderer, bool);
  9253. void EnableMassUpdate();
  9254. Variant GetAttribute(const String&) const;
  9255. ValueAnimation GetAttributeAnimation(const String&) const;
  9256. float GetAttributeAnimationSpeed(const String&) const;
  9257. float GetAttributeAnimationTime(const String&) const;
  9258. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9259. Variant GetAttributeDefault(const String&) const;
  9260. bool GetInterceptNetworkUpdate(const String&) const;
  9261. Vector3 GetVelocityAtPoint(const Vector3&) const;
  9262. bool HasSubscribedToEvent(Object, const String&);
  9263. bool HasSubscribedToEvent(const String&);
  9264. bool Load(File, bool = false);
  9265. bool Load(VectorBuffer&, bool = false);
  9266. bool LoadJSON(const JSONValue&, bool = false);
  9267. bool LoadXML(const XMLElement&, bool = false);
  9268. void MarkNetworkUpdate() const;
  9269. void ReAddBodyToWorld();
  9270. void Remove();
  9271. void RemoveAttributeAnimation(const String&);
  9272. void RemoveInstanceDefault();
  9273. void RemoveObjectAnimation();
  9274. void ResetForces();
  9275. void ResetToDefault();
  9276. bool Save(File) const;
  9277. bool Save(VectorBuffer&) const;
  9278. bool SaveJSON(JSONValue&) const;
  9279. bool SaveXML(XMLElement&) const;
  9280. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9281. void SetAnimationTime(float);
  9282. bool SetAttribute(const String&, const Variant&);
  9283. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9284. void SetAttributeAnimationSpeed(const String&, float);
  9285. void SetAttributeAnimationTime(const String&, float);
  9286. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9287. void SetCollisionLayerAndMask(uint, uint);
  9288. void SetInterceptNetworkUpdate(const String&, bool);
  9289. void SetTransform(const Vector3&, const Quaternion&);
  9290. // Properties:
  9291. /* readonly */
  9292. bool active;
  9293. float angularDamping;
  9294. Vector3 angularFactor;
  9295. float angularRestThreshold;
  9296. Vector3 angularVelocity;
  9297. bool animationEnabled;
  9298. Vector3 anisotropicFriction;
  9299. /* readonly */
  9300. Array<Variant> attributeDefaults;
  9301. /* readonly */
  9302. Array<AttributeInfo> attributeInfos;
  9303. Array<Variant> attributes;
  9304. /* readonly */
  9305. String category;
  9306. float ccdMotionThreshold;
  9307. float ccdRadius;
  9308. /* readonly */
  9309. Vector3 centerOfMass;
  9310. /* readonly */
  9311. Array<RigidBody> collidingBodies;
  9312. CollisionEventMode collisionEventMode;
  9313. uint collisionLayer;
  9314. uint collisionMask;
  9315. float contactProcessingThreshold;
  9316. bool enabled;
  9317. /* readonly */
  9318. bool enabledEffective;
  9319. float friction;
  9320. Vector3 gravityOverride;
  9321. /* readonly */
  9322. uint id;
  9323. bool kinematic;
  9324. float linearDamping;
  9325. Vector3 linearFactor;
  9326. float linearRestThreshold;
  9327. Vector3 linearVelocity;
  9328. float mass;
  9329. /* readonly */
  9330. Node node;
  9331. /* readonly */
  9332. uint numAttributes;
  9333. ObjectAnimation objectAnimation;
  9334. Vector3 position;
  9335. /* readonly */
  9336. int refs;
  9337. float restitution;
  9338. float rollingFriction;
  9339. Quaternion rotation;
  9340. bool temporary;
  9341. bool trigger;
  9342. /* readonly */
  9343. StringHash type;
  9344. /* readonly */
  9345. String typeName;
  9346. bool useGravity;
  9347. /* readonly */
  9348. int weakRefs;
  9349. };
  9350. class RigidBody2D
  9351. {
  9352. public:
  9353. // Methods:
  9354. void ApplyAngularImpulse(float, bool);
  9355. void ApplyAttributes();
  9356. void ApplyForce(const Vector2&, const Vector2&, bool);
  9357. void ApplyForceToCenter(const Vector2&, bool);
  9358. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  9359. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  9360. void ApplyTorque(float, bool);
  9361. void DrawDebugGeometry(DebugRenderer, bool);
  9362. Variant GetAttribute(const String&) const;
  9363. ValueAnimation GetAttributeAnimation(const String&) const;
  9364. float GetAttributeAnimationSpeed(const String&) const;
  9365. float GetAttributeAnimationTime(const String&) const;
  9366. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9367. Variant GetAttributeDefault(const String&) const;
  9368. bool GetInterceptNetworkUpdate(const String&) const;
  9369. bool HasSubscribedToEvent(Object, const String&);
  9370. bool HasSubscribedToEvent(const String&);
  9371. bool Load(File, bool = false);
  9372. bool Load(VectorBuffer&, bool = false);
  9373. bool LoadJSON(const JSONValue&, bool = false);
  9374. bool LoadXML(const XMLElement&, bool = false);
  9375. void MarkNetworkUpdate() const;
  9376. void Remove();
  9377. void RemoveAttributeAnimation(const String&);
  9378. void RemoveInstanceDefault();
  9379. void RemoveObjectAnimation();
  9380. void ResetToDefault();
  9381. bool Save(File) const;
  9382. bool Save(VectorBuffer&) const;
  9383. bool SaveJSON(JSONValue&) const;
  9384. bool SaveXML(XMLElement&) const;
  9385. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9386. void SetAnimationTime(float);
  9387. bool SetAttribute(const String&, const Variant&);
  9388. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9389. void SetAttributeAnimationSpeed(const String&, float);
  9390. void SetAttributeAnimationTime(const String&, float);
  9391. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9392. void SetInterceptNetworkUpdate(const String&, bool);
  9393. // Properties:
  9394. bool allowSleep;
  9395. float angularDamping;
  9396. bool animationEnabled;
  9397. /* readonly */
  9398. Array<Variant> attributeDefaults;
  9399. /* readonly */
  9400. Array<AttributeInfo> attributeInfos;
  9401. Array<Variant> attributes;
  9402. bool awake;
  9403. BodyType2D bodyType;
  9404. bool bullet;
  9405. /* readonly */
  9406. String category;
  9407. bool enabled;
  9408. /* readonly */
  9409. bool enabledEffective;
  9410. bool fixedRotation;
  9411. float gravityScale;
  9412. /* readonly */
  9413. uint id;
  9414. float inertia;
  9415. float linearDamping;
  9416. Vector2 linearVelocity;
  9417. float mass;
  9418. Vector2 massCenter;
  9419. /* readonly */
  9420. Node node;
  9421. /* readonly */
  9422. uint numAttributes;
  9423. ObjectAnimation objectAnimation;
  9424. /* readonly */
  9425. int refs;
  9426. bool temporary;
  9427. /* readonly */
  9428. StringHash type;
  9429. /* readonly */
  9430. String typeName;
  9431. bool useFixtureMass;
  9432. /* readonly */
  9433. int weakRefs;
  9434. };
  9435. class Scene
  9436. {
  9437. public:
  9438. Scene();
  9439. Scene(const String&in);
  9440. // Methods:
  9441. void AddChild(Node, uint = M_MAX_UNSIGNED);
  9442. void AddRequiredPackageFile(PackageFile);
  9443. void AddTag(const String&);
  9444. void AddTags(const String&, int8 = ';');
  9445. void ApplyAttributes();
  9446. void Clear(bool = true, bool = true);
  9447. void ClearRequiredPackageFiles();
  9448. Component CloneComponent(Component, CreateMode, uint = 0);
  9449. Component CloneComponent(Component, uint = 0);
  9450. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  9451. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9452. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  9453. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  9454. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  9455. Variant GetAttribute(const String&) const;
  9456. ValueAnimation GetAttributeAnimation(const String&) const;
  9457. float GetAttributeAnimationSpeed(const String&) const;
  9458. float GetAttributeAnimationTime(const String&) const;
  9459. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9460. Variant GetAttributeDefault(const String&) const;
  9461. Node GetChild(const String&, bool = false) const;
  9462. Array<Node> GetChildren(bool = false) const;
  9463. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  9464. Array<Node> GetChildrenWithScript(bool = false) const;
  9465. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  9466. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  9467. Component GetComponent(const String&, bool = false) const;
  9468. Component GetComponent(uint) const;
  9469. Array<Component> GetComponents() const;
  9470. Array<Component> GetComponents(const String&, bool = false) const;
  9471. bool GetInterceptNetworkUpdate(const String&) const;
  9472. Node GetNode(uint) const;
  9473. Array<Node> GetNodesWithTag(const String&) const;
  9474. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9475. Component GetParentComponent(const String&, bool = false) const;
  9476. ScriptObject GetScriptObject() const;
  9477. ScriptObject GetScriptObject(const String&) const;
  9478. bool HasComponent(const String&) const;
  9479. bool HasSubscribedToEvent(Object, const String&);
  9480. bool HasSubscribedToEvent(const String&);
  9481. bool HasTag(const String&);
  9482. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9483. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9484. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9485. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9486. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9487. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9488. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9489. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9490. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9491. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9492. bool IsChildOf(Node) const;
  9493. bool Load(File, bool = false);
  9494. bool Load(VectorBuffer&, bool = false);
  9495. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9496. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9497. bool LoadJSON(File);
  9498. bool LoadJSON(VectorBuffer&);
  9499. bool LoadJSON(const JSONValue&, bool = false);
  9500. bool LoadXML(File);
  9501. bool LoadXML(VectorBuffer&);
  9502. bool LoadXML(const XMLElement&, bool = false);
  9503. Vector3 LocalToWorld(const Vector3&) const;
  9504. Vector3 LocalToWorld(const Vector4&) const;
  9505. Vector2 LocalToWorld2D(const Vector2&) const;
  9506. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  9507. void MarkNetworkUpdate() const;
  9508. void Pitch(float, TransformSpace = TS_LOCAL);
  9509. void RegisterVar(const String&);
  9510. void Remove();
  9511. void RemoveAllChildren();
  9512. void RemoveAllComponents();
  9513. void RemoveAllTags();
  9514. void RemoveAttributeAnimation(const String&);
  9515. void RemoveChild(Node);
  9516. void RemoveChildren(bool, bool, bool);
  9517. void RemoveComponent(Component);
  9518. void RemoveComponent(const String&);
  9519. void RemoveComponents(bool, bool);
  9520. void RemoveComponents(const String&);
  9521. void RemoveInstanceDefault();
  9522. void RemoveObjectAnimation();
  9523. bool RemoveTag(const String&);
  9524. void ReorderComponent(Component, uint);
  9525. void ResetToDefault();
  9526. void Roll(float, TransformSpace = TS_LOCAL);
  9527. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  9528. void Rotate2D(float, TransformSpace = TS_LOCAL);
  9529. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  9530. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  9531. bool Save(File) const;
  9532. bool Save(VectorBuffer&) const;
  9533. bool SaveJSON(File, const String& = "\t");
  9534. bool SaveJSON(JSONValue&) const;
  9535. bool SaveJSON(VectorBuffer&, const String& = "\t");
  9536. bool SaveXML(File, const String& = "\t");
  9537. bool SaveXML(VectorBuffer&, const String& = "\t");
  9538. bool SaveXML(XMLElement&) const;
  9539. void Scale(const Vector3&);
  9540. void Scale(float);
  9541. void Scale2D(const Vector2&);
  9542. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9543. void SetAnimationTime(float);
  9544. bool SetAttribute(const String&, const Variant&);
  9545. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9546. void SetAttributeAnimationSpeed(const String&, float);
  9547. void SetAttributeAnimationTime(const String&, float);
  9548. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9549. void SetInterceptNetworkUpdate(const String&, bool);
  9550. void SetPosition2D(float, float);
  9551. void SetScale(float);
  9552. void SetScale2D(float, float);
  9553. void SetTransform(const Matrix3x4&);
  9554. void SetTransform(const Vector3&, const Quaternion&);
  9555. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  9556. void SetTransform(const Vector3&, const Quaternion&, float);
  9557. void SetTransform2D(const Vector2&, float);
  9558. void SetTransform2D(const Vector2&, float, const Vector2&);
  9559. void SetTransform2D(const Vector2&, float, float);
  9560. void SetWorldTransform(const Vector3&, const Quaternion&);
  9561. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  9562. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  9563. void SetWorldTransform2D(const Vector2&, float);
  9564. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  9565. void SetWorldTransform2D(const Vector2&, float, float);
  9566. void StopAsyncLoading();
  9567. const String& GetVarName(StringHash) const;
  9568. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  9569. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  9570. void UnregisterAllVars(const String&);
  9571. void UnregisterVar(const String&);
  9572. void Update(float);
  9573. Vector3 WorldToLocal(const Vector3&) const;
  9574. Vector3 WorldToLocal(const Vector4&) const;
  9575. Vector2 WorldToLocal2D(const Vector2&) const;
  9576. void Yaw(float, TransformSpace = TS_LOCAL);
  9577. // Properties:
  9578. bool animationEnabled;
  9579. /* readonly */
  9580. LoadMode asyncLoadMode;
  9581. /* readonly */
  9582. bool asyncLoading;
  9583. int asyncLoadingMs;
  9584. /* readonly */
  9585. float asyncProgress;
  9586. /* readonly */
  9587. Array<Variant> attributeDefaults;
  9588. /* readonly */
  9589. Array<AttributeInfo> attributeInfos;
  9590. Array<Variant> attributes;
  9591. /* readonly */
  9592. String category;
  9593. /* readonly */
  9594. uint checksum;
  9595. /* readonly */
  9596. Array<Node> children;
  9597. /* readonly */
  9598. Array<Component> components;
  9599. /* readonly */
  9600. DebugRenderer debugRenderer;
  9601. Vector3 direction;
  9602. float elapsedTime;
  9603. /* readonly */
  9604. String fileName;
  9605. uint id;
  9606. String name;
  9607. /* readonly */
  9608. uint numAllChildren;
  9609. /* readonly */
  9610. uint numAttributes;
  9611. /* readonly */
  9612. uint numChildren;
  9613. /* readonly */
  9614. uint numComponents;
  9615. ObjectAnimation objectAnimation;
  9616. /* readonly */
  9617. Octree octree;
  9618. Node parent;
  9619. /* readonly */
  9620. PhysicsWorld physicsWorld;
  9621. /* readonly */
  9622. PhysicsWorld2D physicsWorld2D;
  9623. Vector3 position;
  9624. Vector2 position2D;
  9625. /* readonly */
  9626. int refs;
  9627. /* readonly */
  9628. Array<PackageFile> requiredPackageFiles;
  9629. /* readonly */
  9630. Vector3 right;
  9631. Quaternion rotation;
  9632. float rotation2D;
  9633. Vector3 scale;
  9634. Vector2 scale2D;
  9635. /* readonly */
  9636. ScriptObject scriptObject;
  9637. float smoothingConstant;
  9638. float snapThreshold;
  9639. /* readonly */
  9640. Array<String> tags;
  9641. bool temporary;
  9642. float timeScale;
  9643. /* readonly */
  9644. Matrix3x4 transform;
  9645. /* readonly */
  9646. StringHash type;
  9647. /* readonly */
  9648. String typeName;
  9649. /* readonly */
  9650. Vector3 up;
  9651. bool updateEnabled;
  9652. /* readonly */
  9653. VariantMap vars;
  9654. /* readonly */
  9655. int weakRefs;
  9656. Vector3 worldDirection;
  9657. Vector3 worldPosition;
  9658. Vector2 worldPosition2D;
  9659. /* readonly */
  9660. Vector3 worldRight;
  9661. Quaternion worldRotation;
  9662. float worldRotation2D;
  9663. Vector3 worldScale;
  9664. Vector2 worldScale2D;
  9665. /* readonly */
  9666. Matrix3x4 worldTransform;
  9667. /* readonly */
  9668. Vector3 worldUp;
  9669. };
  9670. class Script
  9671. {
  9672. public:
  9673. // Methods:
  9674. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9675. bool Execute(const String&);
  9676. bool HasSubscribedToEvent(Object, const String&);
  9677. bool HasSubscribedToEvent(const String&);
  9678. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9679. // Properties:
  9680. /* readonly */
  9681. String category;
  9682. Scene defaultScene;
  9683. ScriptFile defaultScriptFile;
  9684. bool executeConsoleCommands;
  9685. /* readonly */
  9686. int refs;
  9687. /* readonly */
  9688. StringHash type;
  9689. /* readonly */
  9690. String typeName;
  9691. /* readonly */
  9692. int weakRefs;
  9693. };
  9694. class ScriptFile
  9695. {
  9696. public:
  9697. ScriptFile();
  9698. ScriptFile(const String&in);
  9699. // Methods:
  9700. void ClearDelayedExecute(const String& = String ( ));
  9701. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9702. bool Execute(const String&, const Array<Variant> = null);
  9703. bool HasSubscribedToEvent(Object, const String&);
  9704. bool HasSubscribedToEvent(const String&);
  9705. bool Load(File);
  9706. bool Load(VectorBuffer&);
  9707. bool Load(const String&);
  9708. bool Save(File) const;
  9709. bool Save(VectorBuffer&) const;
  9710. bool Save(const String&) const;
  9711. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9712. // Properties:
  9713. /* readonly */
  9714. String category;
  9715. /* readonly */
  9716. bool compiled;
  9717. /* readonly */
  9718. uint memoryUse;
  9719. String name;
  9720. /* readonly */
  9721. int refs;
  9722. /* readonly */
  9723. StringHash type;
  9724. /* readonly */
  9725. String typeName;
  9726. /* readonly */
  9727. uint useTimer;
  9728. /* readonly */
  9729. int weakRefs;
  9730. };
  9731. class ScriptInstance
  9732. {
  9733. public:
  9734. // Methods:
  9735. void ApplyAttributes();
  9736. void ClearDelayedExecute(const String& = String ( ));
  9737. bool CreateObject(ScriptFile, const String&);
  9738. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9739. void DrawDebugGeometry(DebugRenderer, bool);
  9740. bool Execute(const String&, const Array<Variant> = null);
  9741. Variant GetAttribute(const String&) const;
  9742. ValueAnimation GetAttributeAnimation(const String&) const;
  9743. float GetAttributeAnimationSpeed(const String&) const;
  9744. float GetAttributeAnimationTime(const String&) const;
  9745. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9746. Variant GetAttributeDefault(const String&) const;
  9747. bool GetInterceptNetworkUpdate(const String&) const;
  9748. bool HasMethod(const String&) const;
  9749. bool HasSubscribedToEvent(Object, const String&);
  9750. bool HasSubscribedToEvent(const String&);
  9751. bool IsA(const String&) const;
  9752. bool Load(File, bool = false);
  9753. bool Load(VectorBuffer&, bool = false);
  9754. bool LoadJSON(const JSONValue&, bool = false);
  9755. bool LoadXML(const XMLElement&, bool = false);
  9756. void MarkNetworkUpdate() const;
  9757. void Remove();
  9758. void RemoveAttributeAnimation(const String&);
  9759. void RemoveInstanceDefault();
  9760. void RemoveObjectAnimation();
  9761. void ResetToDefault();
  9762. bool Save(File) const;
  9763. bool Save(VectorBuffer&) const;
  9764. bool SaveJSON(JSONValue&) const;
  9765. bool SaveXML(XMLElement&) const;
  9766. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9767. void SetAnimationTime(float);
  9768. bool SetAttribute(const String&, const Variant&);
  9769. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9770. void SetAttributeAnimationSpeed(const String&, float);
  9771. void SetAttributeAnimationTime(const String&, float);
  9772. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9773. void SetInterceptNetworkUpdate(const String&, bool);
  9774. // Properties:
  9775. bool animationEnabled;
  9776. /* readonly */
  9777. Array<Variant> attributeDefaults;
  9778. /* readonly */
  9779. Array<AttributeInfo> attributeInfos;
  9780. Array<Variant> attributes;
  9781. /* readonly */
  9782. String category;
  9783. String className;
  9784. bool enabled;
  9785. /* readonly */
  9786. bool enabledEffective;
  9787. /* readonly */
  9788. uint id;
  9789. /* readonly */
  9790. Node node;
  9791. /* readonly */
  9792. uint numAttributes;
  9793. ObjectAnimation objectAnimation;
  9794. /* readonly */
  9795. int refs;
  9796. ScriptFile scriptFile;
  9797. /* readonly */
  9798. ScriptObject scriptObject;
  9799. bool temporary;
  9800. /* readonly */
  9801. StringHash type;
  9802. /* readonly */
  9803. String typeName;
  9804. /* readonly */
  9805. int weakRefs;
  9806. };
  9807. class ScriptObject
  9808. {
  9809. public:
  9810. };
  9811. class ScrollBar
  9812. {
  9813. public:
  9814. ScrollBar();
  9815. ScrollBar(const String&in);
  9816. // Methods:
  9817. void AddChild(UIElement);
  9818. void AddTag(const String&);
  9819. void AddTags(const String&, int8 = ';');
  9820. void ApplyAttributes();
  9821. void BringToFront();
  9822. void ChangeValue(float);
  9823. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9824. void DisableLayoutUpdate();
  9825. IntVector2 ElementToScreen(const IntVector2&);
  9826. void EnableLayoutUpdate();
  9827. uint FindChild(UIElement) const;
  9828. Variant GetAttribute(const String&) const;
  9829. ValueAnimation GetAttributeAnimation(const String&) const;
  9830. float GetAttributeAnimationSpeed(const String&) const;
  9831. float GetAttributeAnimationTime(const String&) const;
  9832. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9833. Variant GetAttributeDefault(const String&) const;
  9834. UIElement GetChild(const String&, bool = false) const;
  9835. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9836. Array<UIElement> GetChildren(bool = false) const;
  9837. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9838. UIElement GetElementEventSender() const;
  9839. bool GetInterceptNetworkUpdate(const String&) const;
  9840. uint GetNumChildren(bool) const;
  9841. bool HasSubscribedToEvent(Object, const String&);
  9842. bool HasSubscribedToEvent(const String&);
  9843. bool HasTag(const String&) const;
  9844. void InsertChild(uint, UIElement);
  9845. bool IsInside(IntVector2, bool);
  9846. bool IsInsideCombined(IntVector2, bool);
  9847. bool Load(File, bool = false);
  9848. bool Load(VectorBuffer&, bool = false);
  9849. UIElement LoadChildXML(XMLFile, XMLFile = null);
  9850. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9851. bool LoadJSON(const JSONValue&, bool = false);
  9852. bool LoadXML(File);
  9853. bool LoadXML(VectorBuffer&);
  9854. bool LoadXML(XMLFile, XMLFile);
  9855. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9856. bool LoadXML(const XMLElement&, bool = false);
  9857. void MarkNetworkUpdate() const;
  9858. void Remove();
  9859. void RemoveAllChildren();
  9860. void RemoveAllTags();
  9861. void RemoveAttributeAnimation(const String&);
  9862. void RemoveChild(UIElement, uint = 0);
  9863. void RemoveChild(uint);
  9864. void RemoveInstanceDefault();
  9865. void RemoveObjectAnimation();
  9866. bool RemoveTag(const String&);
  9867. void ResetDeepEnabled();
  9868. void ResetToDefault();
  9869. bool Save(File) const;
  9870. bool Save(VectorBuffer&) const;
  9871. bool SaveJSON(JSONValue&) const;
  9872. bool SaveXML(File, const String& = "\t");
  9873. bool SaveXML(VectorBuffer&, const String& = "\t");
  9874. bool SaveXML(XMLElement&) const;
  9875. IntVector2 ScreenToElement(const IntVector2&);
  9876. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9877. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9878. void SetAnimationTime(float);
  9879. bool SetAttribute(const String&, const Variant&);
  9880. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9881. void SetAttributeAnimationSpeed(const String&, float);
  9882. void SetAttributeAnimationTime(const String&, float);
  9883. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9884. void SetDeepEnabled(bool);
  9885. void SetEnabledRecursive(bool);
  9886. void SetFixedHeight(int);
  9887. void SetFixedSize(int, int);
  9888. void SetFixedWidth(int);
  9889. void SetInterceptNetworkUpdate(const String&, bool);
  9890. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9891. void SetMaxAnchor(float, float);
  9892. void SetMaxSize(int, int);
  9893. void SetMinAnchor(float, float);
  9894. void SetMinSize(int, int);
  9895. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9896. void SetPivot(float, float);
  9897. void SetPosition(int, int);
  9898. void SetSize(int, int);
  9899. bool SetStyle(const String&, XMLFile = null);
  9900. bool SetStyle(const XMLElement&);
  9901. bool SetStyleAuto(XMLFile = null);
  9902. void StepBack();
  9903. void StepForward();
  9904. void UpdateLayout();
  9905. const Variant& GetVar(const StringHash&);
  9906. // Properties:
  9907. bool animationEnabled;
  9908. /* readonly */
  9909. Array<Variant> attributeDefaults;
  9910. /* readonly */
  9911. Array<AttributeInfo> attributeInfos;
  9912. Array<Variant> attributes;
  9913. /* readonly */
  9914. Button backButton;
  9915. bool bringToBack;
  9916. bool bringToFront;
  9917. /* readonly */
  9918. String category;
  9919. /* readonly */
  9920. IntVector2 childOffset;
  9921. /* readonly */
  9922. Array<UIElement> children;
  9923. IntRect clipBorder;
  9924. bool clipChildren;
  9925. /* writeonly */
  9926. Color color;
  9927. /* readonly */
  9928. bool colorGradient;
  9929. Array<Color> colors;
  9930. /* readonly */
  9931. IntRect combinedScreenRect;
  9932. XMLFile defaultStyle;
  9933. /* readonly */
  9934. float derivedOpacity;
  9935. /* readonly */
  9936. uint dragButtonCombo;
  9937. /* readonly */
  9938. int dragButtonCount;
  9939. uint dragDropMode;
  9940. bool editable;
  9941. /* readonly */
  9942. float effectiveScrollStep;
  9943. bool elementEventSender;
  9944. bool enableAnchor;
  9945. bool enabled;
  9946. /* readonly */
  9947. bool enabledSelf;
  9948. /* readonly */
  9949. bool fixedHeight;
  9950. /* readonly */
  9951. bool fixedSize;
  9952. /* readonly */
  9953. bool fixedWidth;
  9954. bool focus;
  9955. FocusMode focusMode;
  9956. /* readonly */
  9957. Button forwardButton;
  9958. int height;
  9959. HorizontalAlignment horizontalAlignment;
  9960. /* readonly */
  9961. bool hovering;
  9962. int indent;
  9963. int indentSpacing;
  9964. /* readonly */
  9965. int indentWidth;
  9966. bool internal;
  9967. IntRect layoutBorder;
  9968. Vector2 layoutFlexScale;
  9969. LayoutMode layoutMode;
  9970. int layoutSpacing;
  9971. Vector2 maxAnchor;
  9972. int maxHeight;
  9973. IntVector2 maxOffset;
  9974. IntVector2 maxSize;
  9975. int maxWidth;
  9976. Vector2 minAnchor;
  9977. int minHeight;
  9978. IntVector2 minOffset;
  9979. IntVector2 minSize;
  9980. int minWidth;
  9981. String name;
  9982. /* readonly */
  9983. uint numAllChildren;
  9984. /* readonly */
  9985. uint numAttributes;
  9986. /* readonly */
  9987. uint numChildren;
  9988. ObjectAnimation objectAnimation;
  9989. float opacity;
  9990. Orientation orientation;
  9991. UIElement parent;
  9992. Vector2 pivot;
  9993. IntVector2 position;
  9994. int priority;
  9995. float range;
  9996. /* readonly */
  9997. int refs;
  9998. /* readonly */
  9999. UIElement root;
  10000. /* readonly */
  10001. IntVector2 screenPosition;
  10002. float scrollStep;
  10003. bool selected;
  10004. IntVector2 size;
  10005. /* readonly */
  10006. Slider slider;
  10007. bool sortChildren;
  10008. float stepFactor;
  10009. String style;
  10010. /* readonly */
  10011. Array<String> tags;
  10012. bool temporary;
  10013. TraversalMode traversalMode;
  10014. /* readonly */
  10015. StringHash type;
  10016. /* readonly */
  10017. String typeName;
  10018. bool useDerivedOpacity;
  10019. float value;
  10020. /* readonly */
  10021. VariantMap vars;
  10022. VerticalAlignment verticalAlignment;
  10023. bool visible;
  10024. /* readonly */
  10025. bool visibleEffective;
  10026. /* readonly */
  10027. int weakRefs;
  10028. int width;
  10029. };
  10030. class ScrollView
  10031. {
  10032. public:
  10033. ScrollView();
  10034. ScrollView(const String&in);
  10035. // Methods:
  10036. void AddChild(UIElement);
  10037. void AddTag(const String&);
  10038. void AddTags(const String&, int8 = ';');
  10039. void ApplyAttributes();
  10040. void BringToFront();
  10041. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10042. void DisableLayoutUpdate();
  10043. IntVector2 ElementToScreen(const IntVector2&);
  10044. void EnableLayoutUpdate();
  10045. uint FindChild(UIElement) const;
  10046. Variant GetAttribute(const String&) const;
  10047. ValueAnimation GetAttributeAnimation(const String&) const;
  10048. float GetAttributeAnimationSpeed(const String&) const;
  10049. float GetAttributeAnimationTime(const String&) const;
  10050. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10051. Variant GetAttributeDefault(const String&) const;
  10052. UIElement GetChild(const String&, bool = false) const;
  10053. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10054. Array<UIElement> GetChildren(bool = false) const;
  10055. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10056. UIElement GetElementEventSender() const;
  10057. bool GetInterceptNetworkUpdate(const String&) const;
  10058. uint GetNumChildren(bool) const;
  10059. bool HasSubscribedToEvent(Object, const String&);
  10060. bool HasSubscribedToEvent(const String&);
  10061. bool HasTag(const String&) const;
  10062. void InsertChild(uint, UIElement);
  10063. bool IsInside(IntVector2, bool);
  10064. bool IsInsideCombined(IntVector2, bool);
  10065. bool Load(File, bool = false);
  10066. bool Load(VectorBuffer&, bool = false);
  10067. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10068. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10069. bool LoadJSON(const JSONValue&, bool = false);
  10070. bool LoadXML(File);
  10071. bool LoadXML(VectorBuffer&);
  10072. bool LoadXML(XMLFile, XMLFile);
  10073. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10074. bool LoadXML(const XMLElement&, bool = false);
  10075. void MarkNetworkUpdate() const;
  10076. void Remove();
  10077. void RemoveAllChildren();
  10078. void RemoveAllTags();
  10079. void RemoveAttributeAnimation(const String&);
  10080. void RemoveChild(UIElement, uint = 0);
  10081. void RemoveChild(uint);
  10082. void RemoveInstanceDefault();
  10083. void RemoveObjectAnimation();
  10084. bool RemoveTag(const String&);
  10085. void ResetDeepEnabled();
  10086. void ResetToDefault();
  10087. bool Save(File) const;
  10088. bool Save(VectorBuffer&) const;
  10089. bool SaveJSON(JSONValue&) const;
  10090. bool SaveXML(File, const String& = "\t");
  10091. bool SaveXML(VectorBuffer&, const String& = "\t");
  10092. bool SaveXML(XMLElement&) const;
  10093. IntVector2 ScreenToElement(const IntVector2&);
  10094. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10095. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10096. void SetAnimationTime(float);
  10097. bool SetAttribute(const String&, const Variant&);
  10098. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10099. void SetAttributeAnimationSpeed(const String&, float);
  10100. void SetAttributeAnimationTime(const String&, float);
  10101. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10102. void SetDeepEnabled(bool);
  10103. void SetEnabledRecursive(bool);
  10104. void SetFixedHeight(int);
  10105. void SetFixedSize(int, int);
  10106. void SetFixedWidth(int);
  10107. void SetInterceptNetworkUpdate(const String&, bool);
  10108. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10109. void SetMaxAnchor(float, float);
  10110. void SetMaxSize(int, int);
  10111. void SetMinAnchor(float, float);
  10112. void SetMinSize(int, int);
  10113. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10114. void SetPivot(float, float);
  10115. void SetPosition(int, int);
  10116. void SetScrollBarsVisible(bool, bool);
  10117. void SetSize(int, int);
  10118. bool SetStyle(const String&, XMLFile = null);
  10119. bool SetStyle(const XMLElement&);
  10120. bool SetStyleAuto(XMLFile = null);
  10121. void SetViewPosition(int, int);
  10122. void UpdateLayout();
  10123. const Variant& GetVar(const StringHash&);
  10124. // Properties:
  10125. bool animationEnabled;
  10126. /* readonly */
  10127. Array<Variant> attributeDefaults;
  10128. /* readonly */
  10129. Array<AttributeInfo> attributeInfos;
  10130. Array<Variant> attributes;
  10131. bool autoDisableChildren;
  10132. float autoDisableThreshold;
  10133. bool bringToBack;
  10134. bool bringToFront;
  10135. /* readonly */
  10136. String category;
  10137. /* readonly */
  10138. IntVector2 childOffset;
  10139. /* readonly */
  10140. Array<UIElement> children;
  10141. IntRect clipBorder;
  10142. bool clipChildren;
  10143. /* writeonly */
  10144. Color color;
  10145. /* readonly */
  10146. bool colorGradient;
  10147. Array<Color> colors;
  10148. /* readonly */
  10149. IntRect combinedScreenRect;
  10150. UIElement contentElement;
  10151. XMLFile defaultStyle;
  10152. /* readonly */
  10153. float derivedOpacity;
  10154. /* readonly */
  10155. uint dragButtonCombo;
  10156. /* readonly */
  10157. int dragButtonCount;
  10158. uint dragDropMode;
  10159. bool editable;
  10160. bool elementEventSender;
  10161. bool enableAnchor;
  10162. bool enabled;
  10163. /* readonly */
  10164. bool enabledSelf;
  10165. /* readonly */
  10166. bool fixedHeight;
  10167. /* readonly */
  10168. bool fixedSize;
  10169. /* readonly */
  10170. bool fixedWidth;
  10171. bool focus;
  10172. FocusMode focusMode;
  10173. int height;
  10174. HorizontalAlignment horizontalAlignment;
  10175. /* readonly */
  10176. ScrollBar horizontalScrollBar;
  10177. /* readonly */
  10178. bool hovering;
  10179. int indent;
  10180. int indentSpacing;
  10181. /* readonly */
  10182. int indentWidth;
  10183. bool internal;
  10184. IntRect layoutBorder;
  10185. Vector2 layoutFlexScale;
  10186. LayoutMode layoutMode;
  10187. int layoutSpacing;
  10188. Vector2 maxAnchor;
  10189. int maxHeight;
  10190. IntVector2 maxOffset;
  10191. IntVector2 maxSize;
  10192. int maxWidth;
  10193. Vector2 minAnchor;
  10194. int minHeight;
  10195. IntVector2 minOffset;
  10196. IntVector2 minSize;
  10197. int minWidth;
  10198. String name;
  10199. /* readonly */
  10200. uint numAllChildren;
  10201. /* readonly */
  10202. uint numAttributes;
  10203. /* readonly */
  10204. uint numChildren;
  10205. ObjectAnimation objectAnimation;
  10206. float opacity;
  10207. float pageStep;
  10208. UIElement parent;
  10209. Vector2 pivot;
  10210. IntVector2 position;
  10211. int priority;
  10212. /* readonly */
  10213. int refs;
  10214. /* readonly */
  10215. UIElement root;
  10216. /* readonly */
  10217. IntVector2 screenPosition;
  10218. bool scrollBarsAutoVisible;
  10219. float scrollDeceleration;
  10220. /* readonly */
  10221. BorderImage scrollPanel;
  10222. float scrollSnapEpsilon;
  10223. float scrollStep;
  10224. bool selected;
  10225. IntVector2 size;
  10226. bool sortChildren;
  10227. String style;
  10228. /* readonly */
  10229. Array<String> tags;
  10230. bool temporary;
  10231. TraversalMode traversalMode;
  10232. /* readonly */
  10233. StringHash type;
  10234. /* readonly */
  10235. String typeName;
  10236. bool useDerivedOpacity;
  10237. /* readonly */
  10238. VariantMap vars;
  10239. VerticalAlignment verticalAlignment;
  10240. /* readonly */
  10241. ScrollBar verticalScrollBar;
  10242. IntVector2 viewPosition;
  10243. bool visible;
  10244. /* readonly */
  10245. bool visibleEffective;
  10246. /* readonly */
  10247. int weakRefs;
  10248. int width;
  10249. };
  10250. class Serializable
  10251. {
  10252. public:
  10253. // Methods:
  10254. void ApplyAttributes();
  10255. Variant GetAttribute(const String&) const;
  10256. Variant GetAttributeDefault(const String&) const;
  10257. bool GetInterceptNetworkUpdate(const String&) const;
  10258. bool HasSubscribedToEvent(Object, const String&);
  10259. bool HasSubscribedToEvent(const String&);
  10260. bool Load(File, bool = false);
  10261. bool Load(VectorBuffer&, bool = false);
  10262. bool LoadJSON(const JSONValue&, bool = false);
  10263. bool LoadXML(const XMLElement&, bool = false);
  10264. void MarkNetworkUpdate() const;
  10265. void RemoveInstanceDefault();
  10266. void ResetToDefault();
  10267. bool Save(File) const;
  10268. bool Save(VectorBuffer&) const;
  10269. bool SaveJSON(JSONValue&) const;
  10270. bool SaveXML(XMLElement&) const;
  10271. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10272. bool SetAttribute(const String&, const Variant&);
  10273. void SetInterceptNetworkUpdate(const String&, bool);
  10274. // Properties:
  10275. /* readonly */
  10276. Array<Variant> attributeDefaults;
  10277. /* readonly */
  10278. Array<AttributeInfo> attributeInfos;
  10279. Array<Variant> attributes;
  10280. /* readonly */
  10281. String category;
  10282. /* readonly */
  10283. uint numAttributes;
  10284. /* readonly */
  10285. int refs;
  10286. bool temporary;
  10287. /* readonly */
  10288. StringHash type;
  10289. /* readonly */
  10290. String typeName;
  10291. /* readonly */
  10292. int weakRefs;
  10293. };
  10294. class Serializer
  10295. {
  10296. public:
  10297. // Methods:
  10298. uint Write(Array<uint8>);
  10299. bool WriteBool(bool);
  10300. bool WriteBoundingBox(const BoundingBox&);
  10301. bool WriteByte(int8);
  10302. bool WriteColor(const Color&);
  10303. bool WriteDouble(double);
  10304. bool WriteFileID(const String&);
  10305. bool WriteFloat(float);
  10306. bool WriteInt(int);
  10307. bool WriteInt64(int64);
  10308. bool WriteIntRect(const IntRect&);
  10309. bool WriteIntVector2(const IntVector2&);
  10310. bool WriteLine(const String&);
  10311. bool WriteMatrix3(const Matrix3&);
  10312. bool WriteMatrix3x4(const Matrix3x4&);
  10313. bool WriteMatrix4(const Matrix4&);
  10314. bool WriteNetID(uint);
  10315. bool WritePackedQuaternion(const Quaternion&);
  10316. bool WritePackedVector3(const Vector3&, float);
  10317. bool WriteQuaternion(const Quaternion&);
  10318. bool WriteShort(int16);
  10319. bool WriteString(const String&);
  10320. bool WriteStringHash(const StringHash&);
  10321. bool WriteUByte(uint8);
  10322. bool WriteUInt(uint);
  10323. bool WriteUInt64(uint64);
  10324. bool WriteUShort(uint16);
  10325. bool WriteVLE(uint);
  10326. bool WriteVariant(const Variant&);
  10327. bool WriteVariantMap(const VariantMap&);
  10328. bool WriteVector2(const Vector2&);
  10329. bool WriteVector3(const Vector3&);
  10330. bool WriteVector4(const Vector4&);
  10331. bool WriteVectorBuffer(const VectorBuffer&);
  10332. };
  10333. class Skeleton
  10334. {
  10335. public:
  10336. // Methods:
  10337. Bone GetBone(const String&) const;
  10338. void Reset();
  10339. // Properties:
  10340. /* readonly */
  10341. Array<Bone> bones;
  10342. /* readonly */
  10343. uint numBones;
  10344. /* readonly */
  10345. Bone rootBone;
  10346. };
  10347. class Skybox
  10348. {
  10349. public:
  10350. // Methods:
  10351. void ApplyAttributes();
  10352. void ApplyMaterialList(const String& = String ( ));
  10353. void DrawDebugGeometry(DebugRenderer, bool);
  10354. Variant GetAttribute(const String&) const;
  10355. ValueAnimation GetAttributeAnimation(const String&) const;
  10356. float GetAttributeAnimationSpeed(const String&) const;
  10357. float GetAttributeAnimationTime(const String&) const;
  10358. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10359. Variant GetAttributeDefault(const String&) const;
  10360. bool GetInterceptNetworkUpdate(const String&) const;
  10361. bool HasSubscribedToEvent(Object, const String&);
  10362. bool HasSubscribedToEvent(const String&);
  10363. bool IsInView(Camera) const;
  10364. bool Load(File, bool = false);
  10365. bool Load(VectorBuffer&, bool = false);
  10366. bool LoadJSON(const JSONValue&, bool = false);
  10367. bool LoadXML(const XMLElement&, bool = false);
  10368. void MarkNetworkUpdate() const;
  10369. void Remove();
  10370. void RemoveAttributeAnimation(const String&);
  10371. void RemoveInstanceDefault();
  10372. void RemoveObjectAnimation();
  10373. void ResetToDefault();
  10374. bool Save(File) const;
  10375. bool Save(VectorBuffer&) const;
  10376. bool SaveJSON(JSONValue&) const;
  10377. bool SaveXML(XMLElement&) const;
  10378. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10379. void SetAnimationTime(float);
  10380. bool SetAttribute(const String&, const Variant&);
  10381. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10382. void SetAttributeAnimationSpeed(const String&, float);
  10383. void SetAttributeAnimationTime(const String&, float);
  10384. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10385. void SetInterceptNetworkUpdate(const String&, bool);
  10386. // Properties:
  10387. bool animationEnabled;
  10388. /* readonly */
  10389. Array<Variant> attributeDefaults;
  10390. /* readonly */
  10391. Array<AttributeInfo> attributeInfos;
  10392. Array<Variant> attributes;
  10393. /* readonly */
  10394. BoundingBox boundingBox;
  10395. bool castShadows;
  10396. /* readonly */
  10397. String category;
  10398. float drawDistance;
  10399. bool enabled;
  10400. /* readonly */
  10401. bool enabledEffective;
  10402. /* readonly */
  10403. uint id;
  10404. /* readonly */
  10405. bool inView;
  10406. uint lightMask;
  10407. float lodBias;
  10408. /* writeonly */
  10409. Material material;
  10410. Array<Material> materials;
  10411. uint maxLights;
  10412. Model model;
  10413. /* readonly */
  10414. Node node;
  10415. /* readonly */
  10416. uint numAttributes;
  10417. /* readonly */
  10418. uint numGeometries;
  10419. ObjectAnimation objectAnimation;
  10420. bool occludee;
  10421. bool occluder;
  10422. /* readonly */
  10423. int refs;
  10424. float shadowDistance;
  10425. uint shadowMask;
  10426. bool temporary;
  10427. /* readonly */
  10428. StringHash type;
  10429. /* readonly */
  10430. String typeName;
  10431. uint viewMask;
  10432. /* readonly */
  10433. int weakRefs;
  10434. /* readonly */
  10435. BoundingBox worldBoundingBox;
  10436. /* readonly */
  10437. Zone zone;
  10438. uint zoneMask;
  10439. };
  10440. class Slider
  10441. {
  10442. public:
  10443. Slider();
  10444. Slider(const String&in);
  10445. // Methods:
  10446. void AddChild(UIElement);
  10447. void AddTag(const String&);
  10448. void AddTags(const String&, int8 = ';');
  10449. void ApplyAttributes();
  10450. void BringToFront();
  10451. void ChangeValue(float);
  10452. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10453. void DisableLayoutUpdate();
  10454. IntVector2 ElementToScreen(const IntVector2&);
  10455. void EnableLayoutUpdate();
  10456. uint FindChild(UIElement) const;
  10457. Variant GetAttribute(const String&) const;
  10458. ValueAnimation GetAttributeAnimation(const String&) const;
  10459. float GetAttributeAnimationSpeed(const String&) const;
  10460. float GetAttributeAnimationTime(const String&) const;
  10461. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10462. Variant GetAttributeDefault(const String&) const;
  10463. UIElement GetChild(const String&, bool = false) const;
  10464. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10465. Array<UIElement> GetChildren(bool = false) const;
  10466. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10467. UIElement GetElementEventSender() const;
  10468. bool GetInterceptNetworkUpdate(const String&) const;
  10469. uint GetNumChildren(bool) const;
  10470. bool HasSubscribedToEvent(Object, const String&);
  10471. bool HasSubscribedToEvent(const String&);
  10472. bool HasTag(const String&) const;
  10473. void InsertChild(uint, UIElement);
  10474. bool IsInside(IntVector2, bool);
  10475. bool IsInsideCombined(IntVector2, bool);
  10476. bool Load(File, bool = false);
  10477. bool Load(VectorBuffer&, bool = false);
  10478. UIElement LoadChildXML(XMLFile, XMLFile = null);
  10479. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10480. bool LoadJSON(const JSONValue&, bool = false);
  10481. bool LoadXML(File);
  10482. bool LoadXML(VectorBuffer&);
  10483. bool LoadXML(XMLFile, XMLFile);
  10484. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10485. bool LoadXML(const XMLElement&, bool = false);
  10486. void MarkNetworkUpdate() const;
  10487. void Remove();
  10488. void RemoveAllChildren();
  10489. void RemoveAllTags();
  10490. void RemoveAttributeAnimation(const String&);
  10491. void RemoveChild(UIElement, uint = 0);
  10492. void RemoveChild(uint);
  10493. void RemoveInstanceDefault();
  10494. void RemoveObjectAnimation();
  10495. bool RemoveTag(const String&);
  10496. void ResetDeepEnabled();
  10497. void ResetToDefault();
  10498. bool Save(File) const;
  10499. bool Save(VectorBuffer&) const;
  10500. bool SaveJSON(JSONValue&) const;
  10501. bool SaveXML(File, const String& = "\t");
  10502. bool SaveXML(VectorBuffer&, const String& = "\t");
  10503. bool SaveXML(XMLElement&) const;
  10504. IntVector2 ScreenToElement(const IntVector2&);
  10505. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10506. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10507. void SetAnimationTime(float);
  10508. bool SetAttribute(const String&, const Variant&);
  10509. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10510. void SetAttributeAnimationSpeed(const String&, float);
  10511. void SetAttributeAnimationTime(const String&, float);
  10512. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10513. void SetDeepEnabled(bool);
  10514. void SetEnabledRecursive(bool);
  10515. void SetFixedHeight(int);
  10516. void SetFixedSize(int, int);
  10517. void SetFixedWidth(int);
  10518. void SetFullImageRect();
  10519. void SetHoverOffset(int, int);
  10520. void SetInterceptNetworkUpdate(const String&, bool);
  10521. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10522. void SetMaxAnchor(float, float);
  10523. void SetMaxSize(int, int);
  10524. void SetMinAnchor(float, float);
  10525. void SetMinSize(int, int);
  10526. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10527. void SetPivot(float, float);
  10528. void SetPosition(int, int);
  10529. void SetSize(int, int);
  10530. bool SetStyle(const String&, XMLFile = null);
  10531. bool SetStyle(const XMLElement&);
  10532. bool SetStyleAuto(XMLFile = null);
  10533. void UpdateLayout();
  10534. const Variant& GetVar(const StringHash&);
  10535. // Properties:
  10536. bool animationEnabled;
  10537. /* readonly */
  10538. Array<Variant> attributeDefaults;
  10539. /* readonly */
  10540. Array<AttributeInfo> attributeInfos;
  10541. Array<Variant> attributes;
  10542. BlendMode blendMode;
  10543. IntRect border;
  10544. bool bringToBack;
  10545. bool bringToFront;
  10546. /* readonly */
  10547. String category;
  10548. /* readonly */
  10549. IntVector2 childOffset;
  10550. /* readonly */
  10551. Array<UIElement> children;
  10552. IntRect clipBorder;
  10553. bool clipChildren;
  10554. /* writeonly */
  10555. Color color;
  10556. /* readonly */
  10557. bool colorGradient;
  10558. Array<Color> colors;
  10559. /* readonly */
  10560. IntRect combinedScreenRect;
  10561. XMLFile defaultStyle;
  10562. /* readonly */
  10563. float derivedOpacity;
  10564. /* readonly */
  10565. uint dragButtonCombo;
  10566. /* readonly */
  10567. int dragButtonCount;
  10568. uint dragDropMode;
  10569. bool editable;
  10570. bool elementEventSender;
  10571. bool enableAnchor;
  10572. bool enabled;
  10573. /* readonly */
  10574. bool enabledSelf;
  10575. /* readonly */
  10576. bool fixedHeight;
  10577. /* readonly */
  10578. bool fixedSize;
  10579. /* readonly */
  10580. bool fixedWidth;
  10581. bool focus;
  10582. FocusMode focusMode;
  10583. int height;
  10584. HorizontalAlignment horizontalAlignment;
  10585. IntVector2 hoverOffset;
  10586. /* readonly */
  10587. bool hovering;
  10588. IntRect imageBorder;
  10589. IntRect imageRect;
  10590. int indent;
  10591. int indentSpacing;
  10592. /* readonly */
  10593. int indentWidth;
  10594. bool internal;
  10595. /* readonly */
  10596. BorderImage knob;
  10597. IntRect layoutBorder;
  10598. Vector2 layoutFlexScale;
  10599. LayoutMode layoutMode;
  10600. int layoutSpacing;
  10601. Vector2 maxAnchor;
  10602. int maxHeight;
  10603. IntVector2 maxOffset;
  10604. IntVector2 maxSize;
  10605. int maxWidth;
  10606. Vector2 minAnchor;
  10607. int minHeight;
  10608. IntVector2 minOffset;
  10609. IntVector2 minSize;
  10610. int minWidth;
  10611. String name;
  10612. /* readonly */
  10613. uint numAllChildren;
  10614. /* readonly */
  10615. uint numAttributes;
  10616. /* readonly */
  10617. uint numChildren;
  10618. ObjectAnimation objectAnimation;
  10619. float opacity;
  10620. Orientation orientation;
  10621. UIElement parent;
  10622. Vector2 pivot;
  10623. IntVector2 position;
  10624. int priority;
  10625. float range;
  10626. /* readonly */
  10627. int refs;
  10628. float repeatRate;
  10629. /* readonly */
  10630. UIElement root;
  10631. /* readonly */
  10632. IntVector2 screenPosition;
  10633. bool selected;
  10634. IntVector2 size;
  10635. bool sortChildren;
  10636. String style;
  10637. /* readonly */
  10638. Array<String> tags;
  10639. bool temporary;
  10640. Texture texture;
  10641. bool tiled;
  10642. TraversalMode traversalMode;
  10643. /* readonly */
  10644. StringHash type;
  10645. /* readonly */
  10646. String typeName;
  10647. bool useDerivedOpacity;
  10648. float value;
  10649. /* readonly */
  10650. VariantMap vars;
  10651. VerticalAlignment verticalAlignment;
  10652. bool visible;
  10653. /* readonly */
  10654. bool visibleEffective;
  10655. /* readonly */
  10656. int weakRefs;
  10657. int width;
  10658. };
  10659. class SmoothedTransform
  10660. {
  10661. public:
  10662. // Methods:
  10663. void ApplyAttributes();
  10664. void DrawDebugGeometry(DebugRenderer, bool);
  10665. Variant GetAttribute(const String&) const;
  10666. ValueAnimation GetAttributeAnimation(const String&) const;
  10667. float GetAttributeAnimationSpeed(const String&) const;
  10668. float GetAttributeAnimationTime(const String&) const;
  10669. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10670. Variant GetAttributeDefault(const String&) const;
  10671. bool GetInterceptNetworkUpdate(const String&) const;
  10672. bool HasSubscribedToEvent(Object, const String&);
  10673. bool HasSubscribedToEvent(const String&);
  10674. bool Load(File, bool = false);
  10675. bool Load(VectorBuffer&, bool = false);
  10676. bool LoadJSON(const JSONValue&, bool = false);
  10677. bool LoadXML(const XMLElement&, bool = false);
  10678. void MarkNetworkUpdate() const;
  10679. void Remove();
  10680. void RemoveAttributeAnimation(const String&);
  10681. void RemoveInstanceDefault();
  10682. void RemoveObjectAnimation();
  10683. void ResetToDefault();
  10684. bool Save(File) const;
  10685. bool Save(VectorBuffer&) const;
  10686. bool SaveJSON(JSONValue&) const;
  10687. bool SaveXML(XMLElement&) const;
  10688. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10689. void SetAnimationTime(float);
  10690. bool SetAttribute(const String&, const Variant&);
  10691. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10692. void SetAttributeAnimationSpeed(const String&, float);
  10693. void SetAttributeAnimationTime(const String&, float);
  10694. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10695. void SetInterceptNetworkUpdate(const String&, bool);
  10696. void Update(float, float);
  10697. // Properties:
  10698. bool animationEnabled;
  10699. /* readonly */
  10700. Array<Variant> attributeDefaults;
  10701. /* readonly */
  10702. Array<AttributeInfo> attributeInfos;
  10703. Array<Variant> attributes;
  10704. /* readonly */
  10705. String category;
  10706. bool enabled;
  10707. /* readonly */
  10708. bool enabledEffective;
  10709. /* readonly */
  10710. uint id;
  10711. /* readonly */
  10712. bool inProgress;
  10713. /* readonly */
  10714. Node node;
  10715. /* readonly */
  10716. uint numAttributes;
  10717. ObjectAnimation objectAnimation;
  10718. /* readonly */
  10719. int refs;
  10720. Vector3 targetPosition;
  10721. Quaternion targetRotation;
  10722. Vector3 targetWorldPosition;
  10723. Quaternion targetWorldRotation;
  10724. bool temporary;
  10725. /* readonly */
  10726. StringHash type;
  10727. /* readonly */
  10728. String typeName;
  10729. /* readonly */
  10730. int weakRefs;
  10731. };
  10732. class Sound
  10733. {
  10734. public:
  10735. Sound();
  10736. Sound(const String&in);
  10737. // Methods:
  10738. bool HasSubscribedToEvent(Object, const String&);
  10739. bool HasSubscribedToEvent(const String&);
  10740. bool Load(File);
  10741. bool Load(VectorBuffer&);
  10742. bool Load(const String&);
  10743. bool Save(File) const;
  10744. bool Save(VectorBuffer&) const;
  10745. bool Save(const String&) const;
  10746. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10747. // Properties:
  10748. /* readonly */
  10749. String category;
  10750. /* readonly */
  10751. bool compressed;
  10752. /* readonly */
  10753. float frequency;
  10754. /* readonly */
  10755. float length;
  10756. bool looped;
  10757. /* readonly */
  10758. uint memoryUse;
  10759. String name;
  10760. /* readonly */
  10761. int refs;
  10762. /* readonly */
  10763. uint sampleSize;
  10764. /* readonly */
  10765. bool sixteenBit;
  10766. /* readonly */
  10767. bool stereo;
  10768. /* readonly */
  10769. StringHash type;
  10770. /* readonly */
  10771. String typeName;
  10772. /* readonly */
  10773. uint useTimer;
  10774. /* readonly */
  10775. int weakRefs;
  10776. };
  10777. class SoundListener
  10778. {
  10779. public:
  10780. // Methods:
  10781. void ApplyAttributes();
  10782. void DrawDebugGeometry(DebugRenderer, bool);
  10783. Variant GetAttribute(const String&) const;
  10784. ValueAnimation GetAttributeAnimation(const String&) const;
  10785. float GetAttributeAnimationSpeed(const String&) const;
  10786. float GetAttributeAnimationTime(const String&) const;
  10787. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10788. Variant GetAttributeDefault(const String&) const;
  10789. bool GetInterceptNetworkUpdate(const String&) const;
  10790. bool HasSubscribedToEvent(Object, const String&);
  10791. bool HasSubscribedToEvent(const String&);
  10792. bool Load(File, bool = false);
  10793. bool Load(VectorBuffer&, bool = false);
  10794. bool LoadJSON(const JSONValue&, bool = false);
  10795. bool LoadXML(const XMLElement&, bool = false);
  10796. void MarkNetworkUpdate() const;
  10797. void Remove();
  10798. void RemoveAttributeAnimation(const String&);
  10799. void RemoveInstanceDefault();
  10800. void RemoveObjectAnimation();
  10801. void ResetToDefault();
  10802. bool Save(File) const;
  10803. bool Save(VectorBuffer&) const;
  10804. bool SaveJSON(JSONValue&) const;
  10805. bool SaveXML(XMLElement&) const;
  10806. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10807. void SetAnimationTime(float);
  10808. bool SetAttribute(const String&, const Variant&);
  10809. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10810. void SetAttributeAnimationSpeed(const String&, float);
  10811. void SetAttributeAnimationTime(const String&, float);
  10812. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10813. void SetInterceptNetworkUpdate(const String&, bool);
  10814. // Properties:
  10815. bool animationEnabled;
  10816. /* readonly */
  10817. Array<Variant> attributeDefaults;
  10818. /* readonly */
  10819. Array<AttributeInfo> attributeInfos;
  10820. Array<Variant> attributes;
  10821. /* readonly */
  10822. String category;
  10823. bool enabled;
  10824. /* readonly */
  10825. bool enabledEffective;
  10826. /* readonly */
  10827. uint id;
  10828. /* readonly */
  10829. Node node;
  10830. /* readonly */
  10831. uint numAttributes;
  10832. ObjectAnimation objectAnimation;
  10833. /* readonly */
  10834. int refs;
  10835. bool temporary;
  10836. /* readonly */
  10837. StringHash type;
  10838. /* readonly */
  10839. String typeName;
  10840. /* readonly */
  10841. int weakRefs;
  10842. };
  10843. class SoundSource
  10844. {
  10845. public:
  10846. SoundSource();
  10847. // Methods:
  10848. void ApplyAttributes();
  10849. void DrawDebugGeometry(DebugRenderer, bool);
  10850. Variant GetAttribute(const String&) const;
  10851. ValueAnimation GetAttributeAnimation(const String&) const;
  10852. float GetAttributeAnimationSpeed(const String&) const;
  10853. float GetAttributeAnimationTime(const String&) const;
  10854. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10855. Variant GetAttributeDefault(const String&) const;
  10856. bool GetInterceptNetworkUpdate(const String&) const;
  10857. bool HasSubscribedToEvent(Object, const String&);
  10858. bool HasSubscribedToEvent(const String&);
  10859. bool Load(File, bool = false);
  10860. bool Load(VectorBuffer&, bool = false);
  10861. bool LoadJSON(const JSONValue&, bool = false);
  10862. bool LoadXML(const XMLElement&, bool = false);
  10863. void MarkNetworkUpdate() const;
  10864. void Play(Sound);
  10865. void Play(Sound, float);
  10866. void Play(Sound, float, float);
  10867. void Play(Sound, float, float, float);
  10868. void Remove();
  10869. void RemoveAttributeAnimation(const String&);
  10870. void RemoveInstanceDefault();
  10871. void RemoveObjectAnimation();
  10872. void ResetToDefault();
  10873. bool Save(File) const;
  10874. bool Save(VectorBuffer&) const;
  10875. bool SaveJSON(JSONValue&) const;
  10876. bool SaveXML(XMLElement&) const;
  10877. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10878. void SetAnimationTime(float);
  10879. bool SetAttribute(const String&, const Variant&);
  10880. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10881. void SetAttributeAnimationSpeed(const String&, float);
  10882. void SetAttributeAnimationTime(const String&, float);
  10883. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10884. void SetInterceptNetworkUpdate(const String&, bool);
  10885. void Stop();
  10886. // Properties:
  10887. bool animationEnabled;
  10888. /* readonly */
  10889. float attenuation;
  10890. /* readonly */
  10891. Array<Variant> attributeDefaults;
  10892. /* readonly */
  10893. Array<AttributeInfo> attributeInfos;
  10894. Array<Variant> attributes;
  10895. AutoRemoveMode autoRemoveMode;
  10896. /* readonly */
  10897. String category;
  10898. bool enabled;
  10899. /* readonly */
  10900. bool enabledEffective;
  10901. float frequency;
  10902. float gain;
  10903. /* readonly */
  10904. uint id;
  10905. /* readonly */
  10906. Node node;
  10907. /* readonly */
  10908. uint numAttributes;
  10909. ObjectAnimation objectAnimation;
  10910. float panning;
  10911. /* readonly */
  10912. bool playing;
  10913. /* readonly */
  10914. int refs;
  10915. /* readonly */
  10916. Sound sound;
  10917. String soundType;
  10918. bool temporary;
  10919. /* readonly */
  10920. float timePosition;
  10921. /* readonly */
  10922. StringHash type;
  10923. /* readonly */
  10924. String typeName;
  10925. /* readonly */
  10926. int weakRefs;
  10927. };
  10928. class SoundSource3D
  10929. {
  10930. public:
  10931. // Methods:
  10932. void ApplyAttributes();
  10933. void DrawDebugGeometry(DebugRenderer, bool);
  10934. Variant GetAttribute(const String&) const;
  10935. ValueAnimation GetAttributeAnimation(const String&) const;
  10936. float GetAttributeAnimationSpeed(const String&) const;
  10937. float GetAttributeAnimationTime(const String&) const;
  10938. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10939. Variant GetAttributeDefault(const String&) const;
  10940. bool GetInterceptNetworkUpdate(const String&) const;
  10941. bool HasSubscribedToEvent(Object, const String&);
  10942. bool HasSubscribedToEvent(const String&);
  10943. bool Load(File, bool = false);
  10944. bool Load(VectorBuffer&, bool = false);
  10945. bool LoadJSON(const JSONValue&, bool = false);
  10946. bool LoadXML(const XMLElement&, bool = false);
  10947. void MarkNetworkUpdate() const;
  10948. void Play(Sound);
  10949. void Play(Sound, float);
  10950. void Play(Sound, float, float);
  10951. void Play(Sound, float, float, float);
  10952. void Remove();
  10953. void RemoveAttributeAnimation(const String&);
  10954. void RemoveInstanceDefault();
  10955. void RemoveObjectAnimation();
  10956. void ResetToDefault();
  10957. bool Save(File) const;
  10958. bool Save(VectorBuffer&) const;
  10959. bool SaveJSON(JSONValue&) const;
  10960. bool SaveXML(XMLElement&) const;
  10961. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10962. void SetAngleAttenuation(float, float);
  10963. void SetAnimationTime(float);
  10964. bool SetAttribute(const String&, const Variant&);
  10965. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10966. void SetAttributeAnimationSpeed(const String&, float);
  10967. void SetAttributeAnimationTime(const String&, float);
  10968. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10969. void SetDistanceAttenuation(float, float, float);
  10970. void SetInterceptNetworkUpdate(const String&, bool);
  10971. void Stop();
  10972. // Properties:
  10973. bool animationEnabled;
  10974. /* readonly */
  10975. float attenuation;
  10976. /* readonly */
  10977. Array<Variant> attributeDefaults;
  10978. /* readonly */
  10979. Array<AttributeInfo> attributeInfos;
  10980. Array<Variant> attributes;
  10981. AutoRemoveMode autoRemoveMode;
  10982. /* readonly */
  10983. String category;
  10984. bool enabled;
  10985. /* readonly */
  10986. bool enabledEffective;
  10987. float farDistance;
  10988. float frequency;
  10989. float gain;
  10990. /* readonly */
  10991. uint id;
  10992. float innerAngle;
  10993. float nearDistance;
  10994. /* readonly */
  10995. Node node;
  10996. /* readonly */
  10997. uint numAttributes;
  10998. ObjectAnimation objectAnimation;
  10999. float outerAngle;
  11000. float panning;
  11001. /* readonly */
  11002. bool playing;
  11003. /* readonly */
  11004. int refs;
  11005. float rolloffFactor;
  11006. /* readonly */
  11007. Sound sound;
  11008. String soundType;
  11009. bool temporary;
  11010. /* readonly */
  11011. float timePosition;
  11012. /* readonly */
  11013. StringHash type;
  11014. /* readonly */
  11015. String typeName;
  11016. /* readonly */
  11017. int weakRefs;
  11018. };
  11019. class Sphere
  11020. {
  11021. public:
  11022. Sphere();
  11023. Sphere(const Sphere&in);
  11024. Sphere(const Vector3&in, float);
  11025. Sphere(const BoundingBox&in);
  11026. Sphere(const Frustum&in);
  11027. Sphere(const Polyhedron&in);
  11028. // Methods:
  11029. void Clear();
  11030. void Define(const BoundingBox&);
  11031. void Define(const Frustum&);
  11032. void Define(const Polyhedron&);
  11033. void Define(const Sphere&);
  11034. void Define(const Vector3&, float);
  11035. bool Defined() const;
  11036. float Distance(const Vector3&) const;
  11037. Intersection IsInside(const BoundingBox&) const;
  11038. Intersection IsInside(const Sphere&) const;
  11039. Intersection IsInside(const Vector3&) const;
  11040. Intersection IsInsideFast(const BoundingBox&) const;
  11041. Intersection IsInsideFast(const Sphere&) const;
  11042. void Merge(const BoundingBox&);
  11043. void Merge(const Frustum&);
  11044. void Merge(const Sphere&);
  11045. void Merge(const Vector3&);
  11046. // Properties:
  11047. Vector3 center;
  11048. float radius;
  11049. };
  11050. class Spline
  11051. {
  11052. public:
  11053. Spline();
  11054. Spline(InterpolationMode);
  11055. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  11056. Spline(const Spline&in);
  11057. // Methods:
  11058. void AddKnot(const Variant&);
  11059. void AddKnot(const Variant&, uint);
  11060. void Clear();
  11061. Variant GetPoint(float);
  11062. void RemoveKnot();
  11063. void RemoveKnot(uint);
  11064. // Properties:
  11065. InterpolationMode interpolationMode;
  11066. Array<Variant> knot;
  11067. Array<Variant> knots;
  11068. };
  11069. class SplinePath
  11070. {
  11071. public:
  11072. // Methods:
  11073. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  11074. void ApplyAttributes();
  11075. void ClearControlPoints();
  11076. void DrawDebugGeometry(DebugRenderer, bool);
  11077. Variant GetAttribute(const String&) const;
  11078. ValueAnimation GetAttributeAnimation(const String&) const;
  11079. float GetAttributeAnimationSpeed(const String&) const;
  11080. float GetAttributeAnimationTime(const String&) const;
  11081. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11082. Variant GetAttributeDefault(const String&) const;
  11083. bool GetInterceptNetworkUpdate(const String&) const;
  11084. Vector3 GetPoint(float) const;
  11085. Vector3 GetPosition() const;
  11086. bool HasSubscribedToEvent(Object, const String&);
  11087. bool HasSubscribedToEvent(const String&);
  11088. bool Load(File, bool = false);
  11089. bool Load(VectorBuffer&, bool = false);
  11090. bool LoadJSON(const JSONValue&, bool = false);
  11091. bool LoadXML(const XMLElement&, bool = false);
  11092. void MarkNetworkUpdate() const;
  11093. void Move(float);
  11094. void Remove();
  11095. void RemoveAttributeAnimation(const String&);
  11096. void RemoveControlPoint(Node);
  11097. void RemoveInstanceDefault();
  11098. void RemoveObjectAnimation();
  11099. void Reset();
  11100. void ResetToDefault();
  11101. bool Save(File) const;
  11102. bool Save(VectorBuffer&) const;
  11103. bool SaveJSON(JSONValue&) const;
  11104. bool SaveXML(XMLElement&) const;
  11105. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11106. void SetAnimationTime(float);
  11107. bool SetAttribute(const String&, const Variant&);
  11108. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11109. void SetAttributeAnimationSpeed(const String&, float);
  11110. void SetAttributeAnimationTime(const String&, float);
  11111. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11112. void SetInterceptNetworkUpdate(const String&, bool);
  11113. void SetPosition(float);
  11114. // Properties:
  11115. bool animationEnabled;
  11116. /* readonly */
  11117. Array<Variant> attributeDefaults;
  11118. /* readonly */
  11119. Array<AttributeInfo> attributeInfos;
  11120. Array<Variant> attributes;
  11121. /* readonly */
  11122. String category;
  11123. Node controlledNode;
  11124. bool enabled;
  11125. /* readonly */
  11126. bool enabledEffective;
  11127. /* readonly */
  11128. uint id;
  11129. InterpolationMode interpolationMode;
  11130. /* readonly */
  11131. bool isFinished;
  11132. /* readonly */
  11133. float length;
  11134. /* readonly */
  11135. Node node;
  11136. /* readonly */
  11137. uint numAttributes;
  11138. ObjectAnimation objectAnimation;
  11139. /* readonly */
  11140. int refs;
  11141. float speed;
  11142. bool temporary;
  11143. /* readonly */
  11144. StringHash type;
  11145. /* readonly */
  11146. String typeName;
  11147. /* readonly */
  11148. int weakRefs;
  11149. };
  11150. class Sprite
  11151. {
  11152. public:
  11153. Sprite();
  11154. Sprite(const String&in);
  11155. // Methods:
  11156. void AddChild(UIElement);
  11157. void AddTag(const String&);
  11158. void AddTags(const String&, int8 = ';');
  11159. void ApplyAttributes();
  11160. void BringToFront();
  11161. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11162. void DisableLayoutUpdate();
  11163. IntVector2 ElementToScreen(const IntVector2&);
  11164. void EnableLayoutUpdate();
  11165. uint FindChild(UIElement) const;
  11166. Variant GetAttribute(const String&) const;
  11167. ValueAnimation GetAttributeAnimation(const String&) const;
  11168. float GetAttributeAnimationSpeed(const String&) const;
  11169. float GetAttributeAnimationTime(const String&) const;
  11170. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11171. Variant GetAttributeDefault(const String&) const;
  11172. UIElement GetChild(const String&, bool = false) const;
  11173. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11174. Array<UIElement> GetChildren(bool = false) const;
  11175. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11176. UIElement GetElementEventSender() const;
  11177. bool GetInterceptNetworkUpdate(const String&) const;
  11178. uint GetNumChildren(bool) const;
  11179. bool HasSubscribedToEvent(Object, const String&);
  11180. bool HasSubscribedToEvent(const String&);
  11181. bool HasTag(const String&) const;
  11182. void InsertChild(uint, UIElement);
  11183. bool IsInside(IntVector2, bool);
  11184. bool IsInsideCombined(IntVector2, bool);
  11185. bool Load(File, bool = false);
  11186. bool Load(VectorBuffer&, bool = false);
  11187. UIElement LoadChildXML(XMLFile, XMLFile = null);
  11188. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11189. bool LoadJSON(const JSONValue&, bool = false);
  11190. bool LoadXML(File);
  11191. bool LoadXML(VectorBuffer&);
  11192. bool LoadXML(XMLFile, XMLFile);
  11193. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11194. bool LoadXML(const XMLElement&, bool = false);
  11195. void MarkNetworkUpdate() const;
  11196. void Remove();
  11197. void RemoveAllChildren();
  11198. void RemoveAllTags();
  11199. void RemoveAttributeAnimation(const String&);
  11200. void RemoveChild(UIElement, uint = 0);
  11201. void RemoveChild(uint);
  11202. void RemoveInstanceDefault();
  11203. void RemoveObjectAnimation();
  11204. bool RemoveTag(const String&);
  11205. void ResetDeepEnabled();
  11206. void ResetToDefault();
  11207. bool Save(File) const;
  11208. bool Save(VectorBuffer&) const;
  11209. bool SaveJSON(JSONValue&) const;
  11210. bool SaveXML(File, const String& = "\t");
  11211. bool SaveXML(VectorBuffer&, const String& = "\t");
  11212. bool SaveXML(XMLElement&) const;
  11213. IntVector2 ScreenToElement(const IntVector2&);
  11214. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11215. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11216. void SetAnimationTime(float);
  11217. bool SetAttribute(const String&, const Variant&);
  11218. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11219. void SetAttributeAnimationSpeed(const String&, float);
  11220. void SetAttributeAnimationTime(const String&, float);
  11221. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11222. void SetDeepEnabled(bool);
  11223. void SetEnabledRecursive(bool);
  11224. void SetFixedHeight(int);
  11225. void SetFixedSize(int, int);
  11226. void SetFixedWidth(int);
  11227. void SetFullImageRect();
  11228. void SetHotSpot(int, int);
  11229. void SetInterceptNetworkUpdate(const String&, bool);
  11230. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11231. void SetMaxAnchor(float, float);
  11232. void SetMaxSize(int, int);
  11233. void SetMinAnchor(float, float);
  11234. void SetMinSize(int, int);
  11235. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11236. void SetPivot(float, float);
  11237. void SetPosition(float, float);
  11238. void SetScale(float);
  11239. void SetScale(float, float);
  11240. void SetSize(int, int);
  11241. bool SetStyle(const String&, XMLFile = null);
  11242. bool SetStyle(const XMLElement&);
  11243. bool SetStyleAuto(XMLFile = null);
  11244. void UpdateLayout();
  11245. const Variant& GetVar(const StringHash&);
  11246. // Properties:
  11247. bool animationEnabled;
  11248. /* readonly */
  11249. Array<Variant> attributeDefaults;
  11250. /* readonly */
  11251. Array<AttributeInfo> attributeInfos;
  11252. Array<Variant> attributes;
  11253. BlendMode blendMode;
  11254. bool bringToBack;
  11255. bool bringToFront;
  11256. /* readonly */
  11257. String category;
  11258. /* readonly */
  11259. IntVector2 childOffset;
  11260. /* readonly */
  11261. Array<UIElement> children;
  11262. IntRect clipBorder;
  11263. bool clipChildren;
  11264. /* writeonly */
  11265. Color color;
  11266. /* readonly */
  11267. bool colorGradient;
  11268. Array<Color> colors;
  11269. /* readonly */
  11270. IntRect combinedScreenRect;
  11271. XMLFile defaultStyle;
  11272. /* readonly */
  11273. float derivedOpacity;
  11274. /* readonly */
  11275. uint dragButtonCombo;
  11276. /* readonly */
  11277. int dragButtonCount;
  11278. uint dragDropMode;
  11279. bool editable;
  11280. bool elementEventSender;
  11281. bool enableAnchor;
  11282. bool enabled;
  11283. /* readonly */
  11284. bool enabledSelf;
  11285. /* readonly */
  11286. bool fixedHeight;
  11287. /* readonly */
  11288. bool fixedSize;
  11289. /* readonly */
  11290. bool fixedWidth;
  11291. bool focus;
  11292. FocusMode focusMode;
  11293. int height;
  11294. HorizontalAlignment horizontalAlignment;
  11295. IntVector2 hotSpot;
  11296. /* readonly */
  11297. bool hovering;
  11298. IntRect imageRect;
  11299. int indent;
  11300. int indentSpacing;
  11301. /* readonly */
  11302. int indentWidth;
  11303. bool internal;
  11304. IntRect layoutBorder;
  11305. Vector2 layoutFlexScale;
  11306. LayoutMode layoutMode;
  11307. int layoutSpacing;
  11308. Vector2 maxAnchor;
  11309. int maxHeight;
  11310. IntVector2 maxOffset;
  11311. IntVector2 maxSize;
  11312. int maxWidth;
  11313. Vector2 minAnchor;
  11314. int minHeight;
  11315. IntVector2 minOffset;
  11316. IntVector2 minSize;
  11317. int minWidth;
  11318. String name;
  11319. /* readonly */
  11320. uint numAllChildren;
  11321. /* readonly */
  11322. uint numAttributes;
  11323. /* readonly */
  11324. uint numChildren;
  11325. ObjectAnimation objectAnimation;
  11326. float opacity;
  11327. UIElement parent;
  11328. Vector2 pivot;
  11329. Vector2 position;
  11330. int priority;
  11331. /* readonly */
  11332. int refs;
  11333. /* readonly */
  11334. UIElement root;
  11335. float rotation;
  11336. Vector2 scale;
  11337. /* readonly */
  11338. IntVector2 screenPosition;
  11339. bool selected;
  11340. IntVector2 size;
  11341. bool sortChildren;
  11342. String style;
  11343. /* readonly */
  11344. Array<String> tags;
  11345. bool temporary;
  11346. Texture texture;
  11347. TraversalMode traversalMode;
  11348. /* readonly */
  11349. StringHash type;
  11350. /* readonly */
  11351. String typeName;
  11352. bool useDerivedOpacity;
  11353. /* readonly */
  11354. VariantMap vars;
  11355. VerticalAlignment verticalAlignment;
  11356. bool visible;
  11357. /* readonly */
  11358. bool visibleEffective;
  11359. /* readonly */
  11360. int weakRefs;
  11361. int width;
  11362. };
  11363. class Sprite2D
  11364. {
  11365. public:
  11366. Sprite2D();
  11367. Sprite2D(const String&in);
  11368. // Methods:
  11369. bool HasSubscribedToEvent(Object, const String&);
  11370. bool HasSubscribedToEvent(const String&);
  11371. bool Load(File);
  11372. bool Load(VectorBuffer&);
  11373. bool Load(const String&);
  11374. bool Save(File) const;
  11375. bool Save(VectorBuffer&) const;
  11376. bool Save(const String&) const;
  11377. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11378. // Properties:
  11379. /* readonly */
  11380. String category;
  11381. Vector2 hotSpot;
  11382. /* readonly */
  11383. uint memoryUse;
  11384. String name;
  11385. IntVector2 offset;
  11386. IntRect rectangle;
  11387. /* readonly */
  11388. int refs;
  11389. Texture2D texture;
  11390. float textureEdgeOffset;
  11391. /* readonly */
  11392. StringHash type;
  11393. /* readonly */
  11394. String typeName;
  11395. /* readonly */
  11396. uint useTimer;
  11397. /* readonly */
  11398. int weakRefs;
  11399. };
  11400. class SpriteSheet2D
  11401. {
  11402. public:
  11403. SpriteSheet2D();
  11404. SpriteSheet2D(const String&in);
  11405. // Methods:
  11406. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  11407. Sprite2D GetSprite(const String&);
  11408. bool HasSubscribedToEvent(Object, const String&);
  11409. bool HasSubscribedToEvent(const String&);
  11410. bool Load(File);
  11411. bool Load(VectorBuffer&);
  11412. bool Load(const String&);
  11413. bool Save(File) const;
  11414. bool Save(VectorBuffer&) const;
  11415. bool Save(const String&) const;
  11416. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11417. // Properties:
  11418. /* readonly */
  11419. String category;
  11420. /* readonly */
  11421. uint memoryUse;
  11422. String name;
  11423. /* readonly */
  11424. int refs;
  11425. Texture2D texture;
  11426. /* readonly */
  11427. StringHash type;
  11428. /* readonly */
  11429. String typeName;
  11430. /* readonly */
  11431. uint useTimer;
  11432. /* readonly */
  11433. int weakRefs;
  11434. };
  11435. class StaticModel
  11436. {
  11437. public:
  11438. // Methods:
  11439. void ApplyAttributes();
  11440. void ApplyMaterialList(const String& = String ( ));
  11441. void DrawDebugGeometry(DebugRenderer, bool);
  11442. Variant GetAttribute(const String&) const;
  11443. ValueAnimation GetAttributeAnimation(const String&) const;
  11444. float GetAttributeAnimationSpeed(const String&) const;
  11445. float GetAttributeAnimationTime(const String&) const;
  11446. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11447. Variant GetAttributeDefault(const String&) const;
  11448. bool GetInterceptNetworkUpdate(const String&) const;
  11449. bool HasSubscribedToEvent(Object, const String&);
  11450. bool HasSubscribedToEvent(const String&);
  11451. bool IsInView(Camera) const;
  11452. bool IsInside(const Vector3&) const;
  11453. bool IsInsideLocal(const Vector3&) const;
  11454. bool Load(File, bool = false);
  11455. bool Load(VectorBuffer&, bool = false);
  11456. bool LoadJSON(const JSONValue&, bool = false);
  11457. bool LoadXML(const XMLElement&, bool = false);
  11458. void MarkNetworkUpdate() const;
  11459. void Remove();
  11460. void RemoveAttributeAnimation(const String&);
  11461. void RemoveInstanceDefault();
  11462. void RemoveObjectAnimation();
  11463. void ResetToDefault();
  11464. bool Save(File) const;
  11465. bool Save(VectorBuffer&) const;
  11466. bool SaveJSON(JSONValue&) const;
  11467. bool SaveXML(XMLElement&) const;
  11468. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11469. void SetAnimationTime(float);
  11470. bool SetAttribute(const String&, const Variant&);
  11471. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11472. void SetAttributeAnimationSpeed(const String&, float);
  11473. void SetAttributeAnimationTime(const String&, float);
  11474. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11475. void SetInterceptNetworkUpdate(const String&, bool);
  11476. // Properties:
  11477. bool animationEnabled;
  11478. /* readonly */
  11479. Array<Variant> attributeDefaults;
  11480. /* readonly */
  11481. Array<AttributeInfo> attributeInfos;
  11482. Array<Variant> attributes;
  11483. /* readonly */
  11484. BoundingBox boundingBox;
  11485. bool castShadows;
  11486. /* readonly */
  11487. String category;
  11488. float drawDistance;
  11489. bool enabled;
  11490. /* readonly */
  11491. bool enabledEffective;
  11492. /* readonly */
  11493. uint id;
  11494. /* readonly */
  11495. bool inView;
  11496. uint lightMask;
  11497. float lodBias;
  11498. /* writeonly */
  11499. Material material;
  11500. Array<Material> materials;
  11501. uint maxLights;
  11502. Model model;
  11503. /* readonly */
  11504. Node node;
  11505. /* readonly */
  11506. uint numAttributes;
  11507. /* readonly */
  11508. uint numGeometries;
  11509. ObjectAnimation objectAnimation;
  11510. bool occludee;
  11511. bool occluder;
  11512. uint occlusionLodLevel;
  11513. /* readonly */
  11514. int refs;
  11515. float shadowDistance;
  11516. uint shadowMask;
  11517. bool temporary;
  11518. /* readonly */
  11519. StringHash type;
  11520. /* readonly */
  11521. String typeName;
  11522. uint viewMask;
  11523. /* readonly */
  11524. int weakRefs;
  11525. /* readonly */
  11526. BoundingBox worldBoundingBox;
  11527. uint zoneMask;
  11528. };
  11529. class StaticModelGroup
  11530. {
  11531. public:
  11532. // Methods:
  11533. void AddInstanceNode(Node);
  11534. void ApplyAttributes();
  11535. void ApplyMaterialList(const String& = String ( ));
  11536. void DrawDebugGeometry(DebugRenderer, bool);
  11537. Variant GetAttribute(const String&) const;
  11538. ValueAnimation GetAttributeAnimation(const String&) const;
  11539. float GetAttributeAnimationSpeed(const String&) const;
  11540. float GetAttributeAnimationTime(const String&) const;
  11541. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11542. Variant GetAttributeDefault(const String&) const;
  11543. bool GetInterceptNetworkUpdate(const String&) const;
  11544. bool HasSubscribedToEvent(Object, const String&);
  11545. bool HasSubscribedToEvent(const String&);
  11546. bool IsInView(Camera) const;
  11547. bool Load(File, bool = false);
  11548. bool Load(VectorBuffer&, bool = false);
  11549. bool LoadJSON(const JSONValue&, bool = false);
  11550. bool LoadXML(const XMLElement&, bool = false);
  11551. void MarkNetworkUpdate() const;
  11552. void Remove();
  11553. void RemoveAllInstanceNodes();
  11554. void RemoveAttributeAnimation(const String&);
  11555. void RemoveInstanceDefault();
  11556. void RemoveInstanceNode(Node);
  11557. void RemoveObjectAnimation();
  11558. void ResetToDefault();
  11559. bool Save(File) const;
  11560. bool Save(VectorBuffer&) const;
  11561. bool SaveJSON(JSONValue&) const;
  11562. bool SaveXML(XMLElement&) const;
  11563. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11564. void SetAnimationTime(float);
  11565. bool SetAttribute(const String&, const Variant&);
  11566. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11567. void SetAttributeAnimationSpeed(const String&, float);
  11568. void SetAttributeAnimationTime(const String&, float);
  11569. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11570. void SetInterceptNetworkUpdate(const String&, bool);
  11571. // Properties:
  11572. bool animationEnabled;
  11573. /* readonly */
  11574. Array<Variant> attributeDefaults;
  11575. /* readonly */
  11576. Array<AttributeInfo> attributeInfos;
  11577. Array<Variant> attributes;
  11578. /* readonly */
  11579. BoundingBox boundingBox;
  11580. bool castShadows;
  11581. /* readonly */
  11582. String category;
  11583. float drawDistance;
  11584. bool enabled;
  11585. /* readonly */
  11586. bool enabledEffective;
  11587. /* readonly */
  11588. uint id;
  11589. /* readonly */
  11590. bool inView;
  11591. /* readonly */
  11592. Array<Node> instanceNodes;
  11593. uint lightMask;
  11594. float lodBias;
  11595. /* writeonly */
  11596. Material material;
  11597. Array<Material> materials;
  11598. uint maxLights;
  11599. Model model;
  11600. /* readonly */
  11601. Node node;
  11602. /* readonly */
  11603. uint numAttributes;
  11604. /* readonly */
  11605. uint numGeometries;
  11606. /* readonly */
  11607. uint numInstanceNodes;
  11608. ObjectAnimation objectAnimation;
  11609. bool occludee;
  11610. bool occluder;
  11611. uint occlusionLodLevel;
  11612. /* readonly */
  11613. int refs;
  11614. float shadowDistance;
  11615. uint shadowMask;
  11616. bool temporary;
  11617. /* readonly */
  11618. StringHash type;
  11619. /* readonly */
  11620. String typeName;
  11621. uint viewMask;
  11622. /* readonly */
  11623. int weakRefs;
  11624. /* readonly */
  11625. BoundingBox worldBoundingBox;
  11626. /* readonly */
  11627. Zone zone;
  11628. uint zoneMask;
  11629. };
  11630. class StaticSprite2D
  11631. {
  11632. public:
  11633. // Methods:
  11634. void ApplyAttributes();
  11635. void DrawDebugGeometry(DebugRenderer, bool);
  11636. Variant GetAttribute(const String&) const;
  11637. ValueAnimation GetAttributeAnimation(const String&) const;
  11638. float GetAttributeAnimationSpeed(const String&) const;
  11639. float GetAttributeAnimationTime(const String&) const;
  11640. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11641. Variant GetAttributeDefault(const String&) const;
  11642. bool GetInterceptNetworkUpdate(const String&) const;
  11643. bool HasSubscribedToEvent(Object, const String&);
  11644. bool HasSubscribedToEvent(const String&);
  11645. bool IsInView(Camera) const;
  11646. bool Load(File, bool = false);
  11647. bool Load(VectorBuffer&, bool = false);
  11648. bool LoadJSON(const JSONValue&, bool = false);
  11649. bool LoadXML(const XMLElement&, bool = false);
  11650. void MarkNetworkUpdate() const;
  11651. void Remove();
  11652. void RemoveAttributeAnimation(const String&);
  11653. void RemoveInstanceDefault();
  11654. void RemoveObjectAnimation();
  11655. void ResetToDefault();
  11656. bool Save(File) const;
  11657. bool Save(VectorBuffer&) const;
  11658. bool SaveJSON(JSONValue&) const;
  11659. bool SaveXML(XMLElement&) const;
  11660. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11661. void SetAnimationTime(float);
  11662. bool SetAttribute(const String&, const Variant&);
  11663. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11664. void SetAttributeAnimationSpeed(const String&, float);
  11665. void SetAttributeAnimationTime(const String&, float);
  11666. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11667. void SetFlip(bool, bool);
  11668. void SetInterceptNetworkUpdate(const String&, bool);
  11669. // Properties:
  11670. float alpha;
  11671. bool animationEnabled;
  11672. /* readonly */
  11673. Array<Variant> attributeDefaults;
  11674. /* readonly */
  11675. Array<AttributeInfo> attributeInfos;
  11676. Array<Variant> attributes;
  11677. BlendMode blendMode;
  11678. /* readonly */
  11679. BoundingBox boundingBox;
  11680. bool castShadows;
  11681. /* readonly */
  11682. String category;
  11683. Color color;
  11684. Material customMaterial;
  11685. float drawDistance;
  11686. Rect drawRect;
  11687. bool enabled;
  11688. /* readonly */
  11689. bool enabledEffective;
  11690. bool flipX;
  11691. bool flipY;
  11692. Vector2 hotSpot;
  11693. /* readonly */
  11694. uint id;
  11695. /* readonly */
  11696. bool inView;
  11697. int layer;
  11698. uint lightMask;
  11699. float lodBias;
  11700. uint maxLights;
  11701. /* readonly */
  11702. Node node;
  11703. /* readonly */
  11704. uint numAttributes;
  11705. ObjectAnimation objectAnimation;
  11706. bool occludee;
  11707. bool occluder;
  11708. int orderInLayer;
  11709. /* readonly */
  11710. int refs;
  11711. float shadowDistance;
  11712. uint shadowMask;
  11713. Sprite2D sprite;
  11714. bool temporary;
  11715. Rect textureRect;
  11716. /* readonly */
  11717. StringHash type;
  11718. /* readonly */
  11719. String typeName;
  11720. bool useDrawRect;
  11721. bool useHotSpot;
  11722. bool useTextureRect;
  11723. uint viewMask;
  11724. /* readonly */
  11725. int weakRefs;
  11726. /* readonly */
  11727. BoundingBox worldBoundingBox;
  11728. uint zoneMask;
  11729. };
  11730. class String
  11731. {
  11732. public:
  11733. ~String();
  11734. String();
  11735. String(const String&in);
  11736. String(int);
  11737. String(uint);
  11738. String(float);
  11739. String(double);
  11740. String(bool);
  11741. String(const char*);
  11742. // Methods:
  11743. void AppendUTF8(uint);
  11744. uint AtUTF8(uint) const;
  11745. uint ByteOffsetUTF8(uint) const;
  11746. void Clear();
  11747. int Compare(const String&, bool = true) const;
  11748. bool Contains(const String&, bool = true) const;
  11749. bool Contains(uint8, bool = true) const;
  11750. bool EndsWith(const String&, bool = true) const;
  11751. uint Find(const String&, uint = 0, bool = true) const;
  11752. uint Find(uint8, uint = 0, bool = true) const;
  11753. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  11754. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  11755. void Join(Array<String>&, const String&);
  11756. uint NextUTF8Char(uint&) const;
  11757. void Replace(const String&, const String&, bool = true);
  11758. void Replace(uint8, uint8, bool = true);
  11759. void ReplaceUTF8(uint, uint);
  11760. String Replaced(const String&, const String&, bool = true) const;
  11761. String Replaced(uint8, uint8, bool = true) const;
  11762. void Resize(uint);
  11763. void SetUTF8FromLatin1(const String&);
  11764. Array<String> Split(uint8, bool = false) const;
  11765. bool StartsWith(const String&, bool = true) const;
  11766. String Substring(uint) const;
  11767. String Substring(uint, uint) const;
  11768. String SubstringUTF8(uint) const;
  11769. String SubstringUTF8(uint, uint) const;
  11770. bool ToBool() const;
  11771. Color ToColor() const;
  11772. double ToDouble() const;
  11773. float ToFloat() const;
  11774. int ToInt(int = 10) const;
  11775. int64 ToInt64(int = 10) const;
  11776. IntRect ToIntRect() const;
  11777. IntVector2 ToIntVector2() const;
  11778. IntVector3 ToIntVector3() const;
  11779. String ToLower() const;
  11780. Matrix3 ToMatrix3() const;
  11781. Matrix3x4 ToMatrix3x4() const;
  11782. Matrix4 ToMatrix4() const;
  11783. Quaternion ToQuaternion() const;
  11784. uint ToUInt(int = 10) const;
  11785. uint64 ToUInt64(int = 10) const;
  11786. String ToUpper() const;
  11787. Vector2 ToVector2() const;
  11788. Vector3 ToVector3() const;
  11789. Vector4 ToVector4(bool = false) const;
  11790. Variant ToVectorVariant() const;
  11791. String Trimmed() const;
  11792. // Properties:
  11793. /* readonly */
  11794. bool empty;
  11795. /* readonly */
  11796. uint length;
  11797. /* readonly */
  11798. uint utf8Length;
  11799. };
  11800. class StringHash
  11801. {
  11802. public:
  11803. StringHash();
  11804. StringHash(const StringHash&in);
  11805. StringHash(const String&in);
  11806. StringHash(uint);
  11807. // Methods:
  11808. String ToString() const;
  11809. // Properties:
  11810. /* readonly */
  11811. uint value;
  11812. };
  11813. class Technique
  11814. {
  11815. public:
  11816. Technique();
  11817. Technique(const String&in);
  11818. // Methods:
  11819. Technique Clone(const String& = String ( )) const;
  11820. Pass CreatePass(const String&);
  11821. Pass GetPass(const String&);
  11822. Pass GetSupportedPass(const String&);
  11823. bool HasPass(const String&) const;
  11824. bool HasSubscribedToEvent(Object, const String&);
  11825. bool HasSubscribedToEvent(const String&);
  11826. bool Load(File);
  11827. bool Load(VectorBuffer&);
  11828. bool Load(const String&);
  11829. void RemovePass(const String&);
  11830. bool Save(File) const;
  11831. bool Save(VectorBuffer&) const;
  11832. bool Save(const String&) const;
  11833. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11834. // Properties:
  11835. /* readonly */
  11836. String category;
  11837. bool desktop;
  11838. /* readonly */
  11839. uint memoryUse;
  11840. String name;
  11841. /* readonly */
  11842. uint numPasses;
  11843. /* readonly */
  11844. Array<String> passNames;
  11845. /* readonly */
  11846. Array<Pass> passes;
  11847. /* readonly */
  11848. int refs;
  11849. /* readonly */
  11850. bool supported;
  11851. /* readonly */
  11852. StringHash type;
  11853. /* readonly */
  11854. String typeName;
  11855. /* readonly */
  11856. uint useTimer;
  11857. /* readonly */
  11858. int weakRefs;
  11859. };
  11860. class TechniqueEntry
  11861. {
  11862. public:
  11863. ~TechniqueEntry();
  11864. TechniqueEntry();
  11865. TechniqueEntry(const TechniqueEntry&in);
  11866. // Properties:
  11867. float lodDistance;
  11868. int qualityLevel;
  11869. Technique technique;
  11870. };
  11871. class Terrain
  11872. {
  11873. public:
  11874. // Methods:
  11875. void ApplyAttributes();
  11876. void ApplyHeightMap();
  11877. void DrawDebugGeometry(DebugRenderer, bool);
  11878. Variant GetAttribute(const String&) const;
  11879. ValueAnimation GetAttributeAnimation(const String&) const;
  11880. float GetAttributeAnimationSpeed(const String&) const;
  11881. float GetAttributeAnimationTime(const String&) const;
  11882. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11883. Variant GetAttributeDefault(const String&) const;
  11884. float GetHeight(const Vector3&) const;
  11885. bool GetInterceptNetworkUpdate(const String&) const;
  11886. TerrainPatch GetNeighborPatch(int, int) const;
  11887. Vector3 GetNormal(const Vector3&) const;
  11888. TerrainPatch GetPatch(int, int) const;
  11889. bool HasSubscribedToEvent(Object, const String&);
  11890. bool HasSubscribedToEvent(const String&);
  11891. bool Load(File, bool = false);
  11892. bool Load(VectorBuffer&, bool = false);
  11893. bool LoadJSON(const JSONValue&, bool = false);
  11894. bool LoadXML(const XMLElement&, bool = false);
  11895. void MarkNetworkUpdate() const;
  11896. void Remove();
  11897. void RemoveAttributeAnimation(const String&);
  11898. void RemoveInstanceDefault();
  11899. void RemoveObjectAnimation();
  11900. void ResetToDefault();
  11901. bool Save(File) const;
  11902. bool Save(VectorBuffer&) const;
  11903. bool SaveJSON(JSONValue&) const;
  11904. bool SaveXML(XMLElement&) const;
  11905. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11906. void SetAnimationTime(float);
  11907. bool SetAttribute(const String&, const Variant&);
  11908. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11909. void SetAttributeAnimationSpeed(const String&, float);
  11910. void SetAttributeAnimationTime(const String&, float);
  11911. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11912. void SetInterceptNetworkUpdate(const String&, bool);
  11913. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  11914. IntVector2 WorldToHeightMap(const Vector3&) const;
  11915. // Properties:
  11916. bool animationEnabled;
  11917. /* readonly */
  11918. Array<Variant> attributeDefaults;
  11919. /* readonly */
  11920. Array<AttributeInfo> attributeInfos;
  11921. Array<Variant> attributes;
  11922. bool castShadows;
  11923. /* readonly */
  11924. String category;
  11925. float drawDistance;
  11926. Terrain eastNeighbor;
  11927. bool enabled;
  11928. /* readonly */
  11929. bool enabledEffective;
  11930. Image heightMap;
  11931. /* readonly */
  11932. uint id;
  11933. uint lightMask;
  11934. float lodBias;
  11935. Material material;
  11936. uint maxLights;
  11937. uint maxLodLevels;
  11938. /* readonly */
  11939. Node node;
  11940. Terrain northNeighbor;
  11941. /* readonly */
  11942. uint numAttributes;
  11943. /* readonly */
  11944. IntVector2 numPatches;
  11945. /* readonly */
  11946. IntVector2 numVertices;
  11947. ObjectAnimation objectAnimation;
  11948. bool occludee;
  11949. bool occluder;
  11950. uint occlusionLodLevel;
  11951. int patchSize;
  11952. /* readonly */
  11953. Array<TerrainPatch> patches;
  11954. /* readonly */
  11955. int refs;
  11956. float shadowDistance;
  11957. uint shadowMask;
  11958. bool smoothing;
  11959. Terrain southNeighbor;
  11960. Vector3 spacing;
  11961. bool temporary;
  11962. /* readonly */
  11963. StringHash type;
  11964. /* readonly */
  11965. String typeName;
  11966. uint viewMask;
  11967. /* readonly */
  11968. int weakRefs;
  11969. Terrain westNeighbor;
  11970. uint zoneMask;
  11971. };
  11972. class TerrainPatch
  11973. {
  11974. public:
  11975. // Methods:
  11976. void ApplyAttributes();
  11977. void DrawDebugGeometry(DebugRenderer, bool);
  11978. Variant GetAttribute(const String&) const;
  11979. ValueAnimation GetAttributeAnimation(const String&) const;
  11980. float GetAttributeAnimationSpeed(const String&) const;
  11981. float GetAttributeAnimationTime(const String&) const;
  11982. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11983. Variant GetAttributeDefault(const String&) const;
  11984. bool GetInterceptNetworkUpdate(const String&) const;
  11985. bool HasSubscribedToEvent(Object, const String&);
  11986. bool HasSubscribedToEvent(const String&);
  11987. bool IsInView(Camera) const;
  11988. bool Load(File, bool = false);
  11989. bool Load(VectorBuffer&, bool = false);
  11990. bool LoadJSON(const JSONValue&, bool = false);
  11991. bool LoadXML(const XMLElement&, bool = false);
  11992. void MarkNetworkUpdate() const;
  11993. void Remove();
  11994. void RemoveAttributeAnimation(const String&);
  11995. void RemoveInstanceDefault();
  11996. void RemoveObjectAnimation();
  11997. void ResetToDefault();
  11998. bool Save(File) const;
  11999. bool Save(VectorBuffer&) const;
  12000. bool SaveJSON(JSONValue&) const;
  12001. bool SaveXML(XMLElement&) const;
  12002. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12003. void SetAnimationTime(float);
  12004. bool SetAttribute(const String&, const Variant&);
  12005. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12006. void SetAttributeAnimationSpeed(const String&, float);
  12007. void SetAttributeAnimationTime(const String&, float);
  12008. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12009. void SetInterceptNetworkUpdate(const String&, bool);
  12010. // Properties:
  12011. bool animationEnabled;
  12012. /* readonly */
  12013. Array<Variant> attributeDefaults;
  12014. /* readonly */
  12015. Array<AttributeInfo> attributeInfos;
  12016. Array<Variant> attributes;
  12017. /* readonly */
  12018. BoundingBox boundingBox;
  12019. bool castShadows;
  12020. /* readonly */
  12021. String category;
  12022. float drawDistance;
  12023. bool enabled;
  12024. /* readonly */
  12025. bool enabledEffective;
  12026. /* readonly */
  12027. uint id;
  12028. /* readonly */
  12029. bool inView;
  12030. uint lightMask;
  12031. float lodBias;
  12032. uint maxLights;
  12033. /* readonly */
  12034. Node node;
  12035. /* readonly */
  12036. uint numAttributes;
  12037. ObjectAnimation objectAnimation;
  12038. bool occludee;
  12039. bool occluder;
  12040. /* readonly */
  12041. int refs;
  12042. float shadowDistance;
  12043. uint shadowMask;
  12044. bool temporary;
  12045. /* readonly */
  12046. StringHash type;
  12047. /* readonly */
  12048. String typeName;
  12049. uint viewMask;
  12050. /* readonly */
  12051. int weakRefs;
  12052. /* readonly */
  12053. BoundingBox worldBoundingBox;
  12054. uint zoneMask;
  12055. };
  12056. class Text
  12057. {
  12058. public:
  12059. Text();
  12060. Text(const String&in);
  12061. // Methods:
  12062. void AddChild(UIElement);
  12063. void AddTag(const String&);
  12064. void AddTags(const String&, int8 = ';');
  12065. void ApplyAttributes();
  12066. void BringToFront();
  12067. void ClearSelection();
  12068. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12069. void DisableLayoutUpdate();
  12070. IntVector2 ElementToScreen(const IntVector2&);
  12071. void EnableLayoutUpdate();
  12072. uint FindChild(UIElement) const;
  12073. Variant GetAttribute(const String&) const;
  12074. ValueAnimation GetAttributeAnimation(const String&) const;
  12075. float GetAttributeAnimationSpeed(const String&) const;
  12076. float GetAttributeAnimationTime(const String&) const;
  12077. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12078. Variant GetAttributeDefault(const String&) const;
  12079. UIElement GetChild(const String&, bool = false) const;
  12080. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12081. Array<UIElement> GetChildren(bool = false) const;
  12082. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12083. UIElement GetElementEventSender() const;
  12084. bool GetInterceptNetworkUpdate(const String&) const;
  12085. uint GetNumChildren(bool) const;
  12086. bool HasSubscribedToEvent(Object, const String&);
  12087. bool HasSubscribedToEvent(const String&);
  12088. bool HasTag(const String&) const;
  12089. void InsertChild(uint, UIElement);
  12090. bool IsInside(IntVector2, bool);
  12091. bool IsInsideCombined(IntVector2, bool);
  12092. bool Load(File, bool = false);
  12093. bool Load(VectorBuffer&, bool = false);
  12094. UIElement LoadChildXML(XMLFile, XMLFile = null);
  12095. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12096. bool LoadJSON(const JSONValue&, bool = false);
  12097. bool LoadXML(File);
  12098. bool LoadXML(VectorBuffer&);
  12099. bool LoadXML(XMLFile, XMLFile);
  12100. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12101. bool LoadXML(const XMLElement&, bool = false);
  12102. void MarkNetworkUpdate() const;
  12103. void Remove();
  12104. void RemoveAllChildren();
  12105. void RemoveAllTags();
  12106. void RemoveAttributeAnimation(const String&);
  12107. void RemoveChild(UIElement, uint = 0);
  12108. void RemoveChild(uint);
  12109. void RemoveInstanceDefault();
  12110. void RemoveObjectAnimation();
  12111. bool RemoveTag(const String&);
  12112. void ResetDeepEnabled();
  12113. void ResetToDefault();
  12114. bool Save(File) const;
  12115. bool Save(VectorBuffer&) const;
  12116. bool SaveJSON(JSONValue&) const;
  12117. bool SaveXML(File, const String& = "\t");
  12118. bool SaveXML(VectorBuffer&, const String& = "\t");
  12119. bool SaveXML(XMLElement&) const;
  12120. IntVector2 ScreenToElement(const IntVector2&);
  12121. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12122. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12123. void SetAnimationTime(float);
  12124. bool SetAttribute(const String&, const Variant&);
  12125. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12126. void SetAttributeAnimationSpeed(const String&, float);
  12127. void SetAttributeAnimationTime(const String&, float);
  12128. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12129. void SetDeepEnabled(bool);
  12130. void SetEnabledRecursive(bool);
  12131. void SetFixedHeight(int);
  12132. void SetFixedSize(int, int);
  12133. void SetFixedWidth(int);
  12134. bool SetFont(Font, int);
  12135. bool SetFont(const String&, int);
  12136. void SetInterceptNetworkUpdate(const String&, bool);
  12137. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12138. void SetMaxAnchor(float, float);
  12139. void SetMaxSize(int, int);
  12140. void SetMinAnchor(float, float);
  12141. void SetMinSize(int, int);
  12142. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12143. void SetPivot(float, float);
  12144. void SetPosition(int, int);
  12145. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  12146. void SetSize(int, int);
  12147. bool SetStyle(const String&, XMLFile = null);
  12148. bool SetStyle(const XMLElement&);
  12149. bool SetStyleAuto(XMLFile = null);
  12150. void UpdateLayout();
  12151. const Variant& GetVar(const StringHash&);
  12152. // Properties:
  12153. bool animationEnabled;
  12154. /* readonly */
  12155. Array<Variant> attributeDefaults;
  12156. /* readonly */
  12157. Array<AttributeInfo> attributeInfos;
  12158. Array<Variant> attributes;
  12159. bool autoLocalizable;
  12160. bool bringToBack;
  12161. bool bringToFront;
  12162. /* readonly */
  12163. String category;
  12164. /* readonly */
  12165. Array<IntVector2> charPositions;
  12166. /* readonly */
  12167. Array<IntVector2> charSizes;
  12168. /* readonly */
  12169. IntVector2 childOffset;
  12170. /* readonly */
  12171. Array<UIElement> children;
  12172. IntRect clipBorder;
  12173. bool clipChildren;
  12174. /* writeonly */
  12175. Color color;
  12176. /* readonly */
  12177. bool colorGradient;
  12178. Array<Color> colors;
  12179. /* readonly */
  12180. IntRect combinedScreenRect;
  12181. XMLFile defaultStyle;
  12182. /* readonly */
  12183. float derivedOpacity;
  12184. /* readonly */
  12185. uint dragButtonCombo;
  12186. /* readonly */
  12187. int dragButtonCount;
  12188. uint dragDropMode;
  12189. bool editable;
  12190. Color effectColor;
  12191. bool effectRoundStroke;
  12192. IntVector2 effectShadowOffset;
  12193. int effectStrokeThickness;
  12194. bool elementEventSender;
  12195. bool enableAnchor;
  12196. bool enabled;
  12197. /* readonly */
  12198. bool enabledSelf;
  12199. /* readonly */
  12200. bool fixedHeight;
  12201. /* readonly */
  12202. bool fixedSize;
  12203. /* readonly */
  12204. bool fixedWidth;
  12205. bool focus;
  12206. FocusMode focusMode;
  12207. /* readonly */
  12208. Font font;
  12209. int fontSize;
  12210. int height;
  12211. HorizontalAlignment horizontalAlignment;
  12212. Color hoverColor;
  12213. /* readonly */
  12214. bool hovering;
  12215. int indent;
  12216. int indentSpacing;
  12217. /* readonly */
  12218. int indentWidth;
  12219. bool internal;
  12220. IntRect layoutBorder;
  12221. Vector2 layoutFlexScale;
  12222. LayoutMode layoutMode;
  12223. int layoutSpacing;
  12224. Vector2 maxAnchor;
  12225. int maxHeight;
  12226. IntVector2 maxOffset;
  12227. IntVector2 maxSize;
  12228. int maxWidth;
  12229. Vector2 minAnchor;
  12230. int minHeight;
  12231. IntVector2 minOffset;
  12232. IntVector2 minSize;
  12233. int minWidth;
  12234. String name;
  12235. /* readonly */
  12236. uint numAllChildren;
  12237. /* readonly */
  12238. uint numAttributes;
  12239. /* readonly */
  12240. uint numChars;
  12241. /* readonly */
  12242. uint numChildren;
  12243. /* readonly */
  12244. uint numRows;
  12245. ObjectAnimation objectAnimation;
  12246. float opacity;
  12247. UIElement parent;
  12248. Vector2 pivot;
  12249. IntVector2 position;
  12250. int priority;
  12251. /* readonly */
  12252. int refs;
  12253. /* readonly */
  12254. UIElement root;
  12255. /* readonly */
  12256. int rowHeight;
  12257. float rowSpacing;
  12258. /* readonly */
  12259. Array<int> rowWidths;
  12260. /* readonly */
  12261. IntVector2 screenPosition;
  12262. bool selected;
  12263. Color selectionColor;
  12264. /* readonly */
  12265. uint selectionLength;
  12266. /* readonly */
  12267. uint selectionStart;
  12268. IntVector2 size;
  12269. bool sortChildren;
  12270. String style;
  12271. /* readonly */
  12272. Array<String> tags;
  12273. bool temporary;
  12274. String text;
  12275. HorizontalAlignment textAlignment;
  12276. TextEffect textEffect;
  12277. TraversalMode traversalMode;
  12278. /* readonly */
  12279. StringHash type;
  12280. /* readonly */
  12281. String typeName;
  12282. bool useDerivedOpacity;
  12283. /* readonly */
  12284. VariantMap vars;
  12285. VerticalAlignment verticalAlignment;
  12286. bool visible;
  12287. /* readonly */
  12288. bool visibleEffective;
  12289. /* readonly */
  12290. int weakRefs;
  12291. int width;
  12292. bool wordwrap;
  12293. };
  12294. class Text3D
  12295. {
  12296. public:
  12297. // Methods:
  12298. void ApplyAttributes();
  12299. void DrawDebugGeometry(DebugRenderer, bool);
  12300. Variant GetAttribute(const String&) const;
  12301. ValueAnimation GetAttributeAnimation(const String&) const;
  12302. float GetAttributeAnimationSpeed(const String&) const;
  12303. float GetAttributeAnimationTime(const String&) const;
  12304. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12305. Variant GetAttributeDefault(const String&) const;
  12306. bool GetInterceptNetworkUpdate(const String&) const;
  12307. bool HasSubscribedToEvent(Object, const String&);
  12308. bool HasSubscribedToEvent(const String&);
  12309. bool IsInView(Camera) const;
  12310. bool Load(File, bool = false);
  12311. bool Load(VectorBuffer&, bool = false);
  12312. bool LoadJSON(const JSONValue&, bool = false);
  12313. bool LoadXML(const XMLElement&, bool = false);
  12314. void MarkNetworkUpdate() const;
  12315. void Remove();
  12316. void RemoveAttributeAnimation(const String&);
  12317. void RemoveInstanceDefault();
  12318. void RemoveObjectAnimation();
  12319. void ResetToDefault();
  12320. bool Save(File) const;
  12321. bool Save(VectorBuffer&) const;
  12322. bool SaveJSON(JSONValue&) const;
  12323. bool SaveXML(XMLElement&) const;
  12324. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12325. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12326. void SetAnimationTime(float);
  12327. bool SetAttribute(const String&, const Variant&);
  12328. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12329. void SetAttributeAnimationSpeed(const String&, float);
  12330. void SetAttributeAnimationTime(const String&, float);
  12331. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12332. bool SetFont(Font, int);
  12333. bool SetFont(const String&, int);
  12334. void SetInterceptNetworkUpdate(const String&, bool);
  12335. // Properties:
  12336. bool animationEnabled;
  12337. /* readonly */
  12338. Array<Variant> attributeDefaults;
  12339. /* readonly */
  12340. Array<AttributeInfo> attributeInfos;
  12341. Array<Variant> attributes;
  12342. /* readonly */
  12343. BoundingBox boundingBox;
  12344. bool castShadows;
  12345. /* readonly */
  12346. String category;
  12347. /* readonly */
  12348. Array<IntVector2> charPositions;
  12349. /* readonly */
  12350. Array<IntVector2> charSizes;
  12351. /* writeonly */
  12352. Color color;
  12353. Array<Color> colors;
  12354. float drawDistance;
  12355. Color effectColor;
  12356. float effectDepthBias;
  12357. bool effectRoundStroke;
  12358. IntVector2 effectShadowOffset;
  12359. int effectStrokeThickness;
  12360. bool enabled;
  12361. /* readonly */
  12362. bool enabledEffective;
  12363. FaceCameraMode faceCameraMode;
  12364. bool fixedScreenSize;
  12365. /* readonly */
  12366. Font font;
  12367. int fontSize;
  12368. /* readonly */
  12369. int height;
  12370. HorizontalAlignment horizontalAlignment;
  12371. /* readonly */
  12372. uint id;
  12373. /* readonly */
  12374. bool inView;
  12375. uint lightMask;
  12376. float lodBias;
  12377. Material material;
  12378. uint maxLights;
  12379. /* readonly */
  12380. Node node;
  12381. /* readonly */
  12382. uint numAttributes;
  12383. /* readonly */
  12384. uint numChars;
  12385. /* readonly */
  12386. uint numRows;
  12387. ObjectAnimation objectAnimation;
  12388. bool occludee;
  12389. bool occluder;
  12390. float opacity;
  12391. /* readonly */
  12392. int refs;
  12393. /* readonly */
  12394. int rowHeight;
  12395. float rowSpacing;
  12396. /* readonly */
  12397. Array<int> rowWidths;
  12398. float shadowDistance;
  12399. uint shadowMask;
  12400. bool temporary;
  12401. String text;
  12402. HorizontalAlignment textAlignment;
  12403. TextEffect textEffect;
  12404. /* readonly */
  12405. StringHash type;
  12406. /* readonly */
  12407. String typeName;
  12408. VerticalAlignment verticalAlignment;
  12409. uint viewMask;
  12410. /* readonly */
  12411. int weakRefs;
  12412. int width;
  12413. bool wordwrap;
  12414. /* readonly */
  12415. BoundingBox worldBoundingBox;
  12416. uint zoneMask;
  12417. };
  12418. class Texture
  12419. {
  12420. public:
  12421. Texture();
  12422. Texture(const String&in);
  12423. // Methods:
  12424. void ClearDataLost();
  12425. bool HasSubscribedToEvent(Object, const String&);
  12426. bool HasSubscribedToEvent(const String&);
  12427. bool Load(File);
  12428. bool Load(VectorBuffer&);
  12429. bool Load(const String&);
  12430. bool Save(File) const;
  12431. bool Save(VectorBuffer&) const;
  12432. bool Save(const String&) const;
  12433. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12434. void SetNumLevels(uint);
  12435. // Properties:
  12436. Array<TextureAddressMode> addressMode;
  12437. uint anisotropy;
  12438. /* readonly */
  12439. bool autoResolve;
  12440. Texture backupTexture;
  12441. Color borderColor;
  12442. /* readonly */
  12443. String category;
  12444. /* readonly */
  12445. uint components;
  12446. /* readonly */
  12447. bool compressed;
  12448. /* readonly */
  12449. bool dataLost;
  12450. TextureFilterMode filterMode;
  12451. /* readonly */
  12452. uint format;
  12453. /* readonly */
  12454. int height;
  12455. /* readonly */
  12456. Array<int> levelHeight;
  12457. /* readonly */
  12458. Array<int> levelWidth;
  12459. /* readonly */
  12460. uint levels;
  12461. /* readonly */
  12462. bool levelsDirty;
  12463. /* readonly */
  12464. uint memoryUse;
  12465. Array<int> mipsToSkip;
  12466. /* readonly */
  12467. int multiSample;
  12468. String name;
  12469. /* readonly */
  12470. int refs;
  12471. /* readonly */
  12472. bool resolveDirty;
  12473. bool sRGB;
  12474. /* readonly */
  12475. StringHash type;
  12476. /* readonly */
  12477. String typeName;
  12478. /* readonly */
  12479. TextureUsage usage;
  12480. /* readonly */
  12481. uint useTimer;
  12482. /* readonly */
  12483. int weakRefs;
  12484. /* readonly */
  12485. int width;
  12486. };
  12487. class Texture2D
  12488. {
  12489. public:
  12490. Texture2D();
  12491. Texture2D(const String&in);
  12492. // Methods:
  12493. void ClearDataLost();
  12494. Image GetImage() const;
  12495. bool HasSubscribedToEvent(Object, const String&);
  12496. bool HasSubscribedToEvent(const String&);
  12497. bool Load(File);
  12498. bool Load(VectorBuffer&);
  12499. bool Load(const String&);
  12500. bool Save(File) const;
  12501. bool Save(VectorBuffer&) const;
  12502. bool Save(const String&) const;
  12503. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12504. bool SetData(Image, bool = false);
  12505. void SetNumLevels(uint);
  12506. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  12507. // Properties:
  12508. Array<TextureAddressMode> addressMode;
  12509. uint anisotropy;
  12510. /* readonly */
  12511. bool autoResolve;
  12512. Texture backupTexture;
  12513. Color borderColor;
  12514. /* readonly */
  12515. String category;
  12516. /* readonly */
  12517. uint components;
  12518. /* readonly */
  12519. bool compressed;
  12520. /* readonly */
  12521. bool dataLost;
  12522. TextureFilterMode filterMode;
  12523. /* readonly */
  12524. uint format;
  12525. /* readonly */
  12526. int height;
  12527. /* readonly */
  12528. Array<int> levelHeight;
  12529. /* readonly */
  12530. Array<int> levelWidth;
  12531. /* readonly */
  12532. uint levels;
  12533. /* readonly */
  12534. bool levelsDirty;
  12535. /* readonly */
  12536. uint memoryUse;
  12537. Array<int> mipsToSkip;
  12538. /* readonly */
  12539. int multiSample;
  12540. String name;
  12541. /* readonly */
  12542. int refs;
  12543. /* readonly */
  12544. RenderSurface renderSurface;
  12545. /* readonly */
  12546. bool resolveDirty;
  12547. bool sRGB;
  12548. /* readonly */
  12549. StringHash type;
  12550. /* readonly */
  12551. String typeName;
  12552. /* readonly */
  12553. TextureUsage usage;
  12554. /* readonly */
  12555. uint useTimer;
  12556. /* readonly */
  12557. int weakRefs;
  12558. /* readonly */
  12559. int width;
  12560. };
  12561. class Texture2DArray
  12562. {
  12563. public:
  12564. Texture2DArray();
  12565. Texture2DArray(const String&in);
  12566. // Methods:
  12567. void ClearDataLost();
  12568. bool HasSubscribedToEvent(Object, const String&);
  12569. bool HasSubscribedToEvent(const String&);
  12570. bool Load(File);
  12571. bool Load(VectorBuffer&);
  12572. bool Load(const String&);
  12573. bool Save(File) const;
  12574. bool Save(VectorBuffer&) const;
  12575. bool Save(const String&) const;
  12576. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12577. bool SetData(uint, Image, bool = false);
  12578. void SetNumLevels(uint);
  12579. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12580. // Properties:
  12581. Array<TextureAddressMode> addressMode;
  12582. uint anisotropy;
  12583. /* readonly */
  12584. bool autoResolve;
  12585. Texture backupTexture;
  12586. Color borderColor;
  12587. /* readonly */
  12588. String category;
  12589. /* readonly */
  12590. uint components;
  12591. /* readonly */
  12592. bool compressed;
  12593. /* readonly */
  12594. bool dataLost;
  12595. TextureFilterMode filterMode;
  12596. /* readonly */
  12597. uint format;
  12598. /* readonly */
  12599. int height;
  12600. uint layers;
  12601. /* readonly */
  12602. Array<int> levelHeight;
  12603. /* readonly */
  12604. Array<int> levelWidth;
  12605. /* readonly */
  12606. uint levels;
  12607. /* readonly */
  12608. bool levelsDirty;
  12609. /* readonly */
  12610. uint memoryUse;
  12611. Array<int> mipsToSkip;
  12612. /* readonly */
  12613. int multiSample;
  12614. String name;
  12615. /* readonly */
  12616. int refs;
  12617. /* readonly */
  12618. RenderSurface renderSurface;
  12619. /* readonly */
  12620. bool resolveDirty;
  12621. bool sRGB;
  12622. /* readonly */
  12623. StringHash type;
  12624. /* readonly */
  12625. String typeName;
  12626. /* readonly */
  12627. TextureUsage usage;
  12628. /* readonly */
  12629. uint useTimer;
  12630. /* readonly */
  12631. int weakRefs;
  12632. /* readonly */
  12633. int width;
  12634. };
  12635. class Texture3D
  12636. {
  12637. public:
  12638. Texture3D();
  12639. Texture3D(const String&in);
  12640. // Methods:
  12641. void ClearDataLost();
  12642. bool HasSubscribedToEvent(Object, const String&);
  12643. bool HasSubscribedToEvent(const String&);
  12644. bool Load(File);
  12645. bool Load(VectorBuffer&);
  12646. bool Load(const String&);
  12647. bool Save(File) const;
  12648. bool Save(VectorBuffer&) const;
  12649. bool Save(const String&) const;
  12650. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12651. bool SetData(Image, bool = false);
  12652. void SetNumLevels(uint);
  12653. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  12654. // Properties:
  12655. Array<TextureAddressMode> addressMode;
  12656. uint anisotropy;
  12657. /* readonly */
  12658. bool autoResolve;
  12659. Texture backupTexture;
  12660. Color borderColor;
  12661. /* readonly */
  12662. String category;
  12663. /* readonly */
  12664. uint components;
  12665. /* readonly */
  12666. bool compressed;
  12667. /* readonly */
  12668. bool dataLost;
  12669. TextureFilterMode filterMode;
  12670. /* readonly */
  12671. uint format;
  12672. /* readonly */
  12673. int height;
  12674. /* readonly */
  12675. Array<int> levelHeight;
  12676. /* readonly */
  12677. Array<int> levelWidth;
  12678. /* readonly */
  12679. uint levels;
  12680. /* readonly */
  12681. bool levelsDirty;
  12682. /* readonly */
  12683. uint memoryUse;
  12684. Array<int> mipsToSkip;
  12685. /* readonly */
  12686. int multiSample;
  12687. String name;
  12688. /* readonly */
  12689. int refs;
  12690. /* readonly */
  12691. bool resolveDirty;
  12692. bool sRGB;
  12693. /* readonly */
  12694. StringHash type;
  12695. /* readonly */
  12696. String typeName;
  12697. /* readonly */
  12698. TextureUsage usage;
  12699. /* readonly */
  12700. uint useTimer;
  12701. /* readonly */
  12702. int weakRefs;
  12703. /* readonly */
  12704. int width;
  12705. };
  12706. class TextureCube
  12707. {
  12708. public:
  12709. TextureCube();
  12710. TextureCube(const String&in);
  12711. // Methods:
  12712. void ClearDataLost();
  12713. Image GetImage(CubeMapFace) const;
  12714. bool HasSubscribedToEvent(Object, const String&);
  12715. bool HasSubscribedToEvent(const String&);
  12716. bool Load(File);
  12717. bool Load(VectorBuffer&);
  12718. bool Load(const String&);
  12719. bool Save(File) const;
  12720. bool Save(VectorBuffer&) const;
  12721. bool Save(const String&) const;
  12722. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12723. bool SetData(CubeMapFace, Image, bool = false);
  12724. void SetNumLevels(uint);
  12725. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  12726. // Properties:
  12727. Array<TextureAddressMode> addressMode;
  12728. uint anisotropy;
  12729. /* readonly */
  12730. bool autoResolve;
  12731. Texture backupTexture;
  12732. Color borderColor;
  12733. /* readonly */
  12734. String category;
  12735. /* readonly */
  12736. uint components;
  12737. /* readonly */
  12738. bool compressed;
  12739. /* readonly */
  12740. bool dataLost;
  12741. TextureFilterMode filterMode;
  12742. /* readonly */
  12743. uint format;
  12744. /* readonly */
  12745. int height;
  12746. /* readonly */
  12747. Array<int> levelHeight;
  12748. /* readonly */
  12749. Array<int> levelWidth;
  12750. /* readonly */
  12751. uint levels;
  12752. /* readonly */
  12753. bool levelsDirty;
  12754. /* readonly */
  12755. uint memoryUse;
  12756. Array<int> mipsToSkip;
  12757. /* readonly */
  12758. int multiSample;
  12759. String name;
  12760. /* readonly */
  12761. int refs;
  12762. /* readonly */
  12763. Array<RenderSurface> renderSurfaces;
  12764. /* readonly */
  12765. bool resolveDirty;
  12766. bool sRGB;
  12767. /* readonly */
  12768. StringHash type;
  12769. /* readonly */
  12770. String typeName;
  12771. /* readonly */
  12772. TextureUsage usage;
  12773. /* readonly */
  12774. uint useTimer;
  12775. /* readonly */
  12776. int weakRefs;
  12777. /* readonly */
  12778. int width;
  12779. };
  12780. class TextureFrame
  12781. {
  12782. public:
  12783. // Properties:
  12784. float time;
  12785. Rect uv;
  12786. };
  12787. class Tile2D
  12788. {
  12789. public:
  12790. // Methods:
  12791. bool HasProperty(const String&) const;
  12792. const String& GetProperty(const String&) const;
  12793. // Properties:
  12794. /* readonly */
  12795. int gid;
  12796. /* readonly */
  12797. int refs;
  12798. /* readonly */
  12799. Sprite2D sprite;
  12800. /* readonly */
  12801. int weakRefs;
  12802. };
  12803. class TileMap2D
  12804. {
  12805. public:
  12806. // Methods:
  12807. void ApplyAttributes();
  12808. void DrawDebugGeometry(DebugRenderer, bool);
  12809. Variant GetAttribute(const String&) const;
  12810. ValueAnimation GetAttributeAnimation(const String&) const;
  12811. float GetAttributeAnimationSpeed(const String&) const;
  12812. float GetAttributeAnimationTime(const String&) const;
  12813. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12814. Variant GetAttributeDefault(const String&) const;
  12815. bool GetInterceptNetworkUpdate(const String&) const;
  12816. TileMapLayer2D GetLayer(uint) const;
  12817. bool HasSubscribedToEvent(Object, const String&);
  12818. bool HasSubscribedToEvent(const String&);
  12819. bool Load(File, bool = false);
  12820. bool Load(VectorBuffer&, bool = false);
  12821. bool LoadJSON(const JSONValue&, bool = false);
  12822. bool LoadXML(const XMLElement&, bool = false);
  12823. void MarkNetworkUpdate() const;
  12824. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  12825. void Remove();
  12826. void RemoveAttributeAnimation(const String&);
  12827. void RemoveInstanceDefault();
  12828. void RemoveObjectAnimation();
  12829. void ResetToDefault();
  12830. bool Save(File) const;
  12831. bool Save(VectorBuffer&) const;
  12832. bool SaveJSON(JSONValue&) const;
  12833. bool SaveXML(XMLElement&) const;
  12834. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12835. void SetAnimationTime(float);
  12836. bool SetAttribute(const String&, const Variant&);
  12837. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12838. void SetAttributeAnimationSpeed(const String&, float);
  12839. void SetAttributeAnimationTime(const String&, float);
  12840. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12841. void SetInterceptNetworkUpdate(const String&, bool);
  12842. Vector2 TileIndexToPosition(int, int) const;
  12843. // Properties:
  12844. bool animationEnabled;
  12845. /* readonly */
  12846. Array<Variant> attributeDefaults;
  12847. /* readonly */
  12848. Array<AttributeInfo> attributeInfos;
  12849. Array<Variant> attributes;
  12850. /* readonly */
  12851. String category;
  12852. bool enabled;
  12853. /* readonly */
  12854. bool enabledEffective;
  12855. /* readonly */
  12856. uint id;
  12857. /* readonly */
  12858. TileMapInfo2D info;
  12859. /* readonly */
  12860. Node node;
  12861. /* readonly */
  12862. uint numAttributes;
  12863. /* readonly */
  12864. uint numLayers;
  12865. ObjectAnimation objectAnimation;
  12866. /* readonly */
  12867. int refs;
  12868. bool temporary;
  12869. TmxFile2D tmxFile;
  12870. /* readonly */
  12871. StringHash type;
  12872. /* readonly */
  12873. String typeName;
  12874. /* readonly */
  12875. int weakRefs;
  12876. };
  12877. class TileMapInfo2D
  12878. {
  12879. public:
  12880. // Properties:
  12881. int height;
  12882. /* readonly */
  12883. float mapHeight;
  12884. /* readonly */
  12885. float mapWidth;
  12886. Orientation2D orientation;
  12887. float tileHeight;
  12888. float tileWidth;
  12889. int width;
  12890. };
  12891. class TileMapLayer2D
  12892. {
  12893. public:
  12894. // Methods:
  12895. void ApplyAttributes();
  12896. void DrawDebugGeometry(DebugRenderer, bool);
  12897. Variant GetAttribute(const String&) const;
  12898. ValueAnimation GetAttributeAnimation(const String&) const;
  12899. float GetAttributeAnimationSpeed(const String&) const;
  12900. float GetAttributeAnimationTime(const String&) const;
  12901. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12902. Variant GetAttributeDefault(const String&) const;
  12903. bool GetInterceptNetworkUpdate(const String&) const;
  12904. TileMapObject2D GetObject(uint) const;
  12905. Node GetObjectNode(uint) const;
  12906. Tile2D GetTile(int, int) const;
  12907. Node GetTileNode(int, int) const;
  12908. bool HasProperty(const String&) const;
  12909. bool HasSubscribedToEvent(Object, const String&);
  12910. bool HasSubscribedToEvent(const String&);
  12911. bool Load(File, bool = false);
  12912. bool Load(VectorBuffer&, bool = false);
  12913. bool LoadJSON(const JSONValue&, bool = false);
  12914. bool LoadXML(const XMLElement&, bool = false);
  12915. void MarkNetworkUpdate() const;
  12916. void Remove();
  12917. void RemoveAttributeAnimation(const String&);
  12918. void RemoveInstanceDefault();
  12919. void RemoveObjectAnimation();
  12920. void ResetToDefault();
  12921. bool Save(File) const;
  12922. bool Save(VectorBuffer&) const;
  12923. bool SaveJSON(JSONValue&) const;
  12924. bool SaveXML(XMLElement&) const;
  12925. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12926. void SetAnimationTime(float);
  12927. bool SetAttribute(const String&, const Variant&);
  12928. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12929. void SetAttributeAnimationSpeed(const String&, float);
  12930. void SetAttributeAnimationTime(const String&, float);
  12931. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12932. void SetInterceptNetworkUpdate(const String&, bool);
  12933. const String& GetProperty(const String&) const;
  12934. // Properties:
  12935. bool animationEnabled;
  12936. /* readonly */
  12937. Array<Variant> attributeDefaults;
  12938. /* readonly */
  12939. Array<AttributeInfo> attributeInfos;
  12940. Array<Variant> attributes;
  12941. /* readonly */
  12942. String category;
  12943. int drawOrder;
  12944. bool enabled;
  12945. /* readonly */
  12946. bool enabledEffective;
  12947. /* readonly */
  12948. int height;
  12949. /* readonly */
  12950. uint id;
  12951. /* readonly */
  12952. Node imageNode;
  12953. /* readonly */
  12954. TileMapLayerType2D layerType;
  12955. /* readonly */
  12956. Node node;
  12957. /* readonly */
  12958. uint numAttributes;
  12959. /* readonly */
  12960. uint numObjects;
  12961. ObjectAnimation objectAnimation;
  12962. /* readonly */
  12963. int refs;
  12964. bool temporary;
  12965. /* readonly */
  12966. StringHash type;
  12967. /* readonly */
  12968. String typeName;
  12969. bool visible;
  12970. /* readonly */
  12971. int weakRefs;
  12972. /* readonly */
  12973. int width;
  12974. };
  12975. class TileMapObject2D
  12976. {
  12977. public:
  12978. // Methods:
  12979. bool HasProperty(const String&) const;
  12980. const String& GetProperty(const String&) const;
  12981. const Vector2& GetPoint(uint) const;
  12982. // Properties:
  12983. /* readonly */
  12984. String name;
  12985. /* readonly */
  12986. uint numPoints;
  12987. /* readonly */
  12988. TileObjectType2D objectType;
  12989. /* readonly */
  12990. Vector2 position;
  12991. /* readonly */
  12992. int refs;
  12993. /* readonly */
  12994. Vector2 size;
  12995. /* readonly */
  12996. int tileGid;
  12997. /* readonly */
  12998. Sprite2D tileSprite;
  12999. /* readonly */
  13000. String type;
  13001. /* readonly */
  13002. int weakRefs;
  13003. };
  13004. class Time
  13005. {
  13006. public:
  13007. // Methods:
  13008. bool HasSubscribedToEvent(Object, const String&);
  13009. bool HasSubscribedToEvent(const String&);
  13010. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13011. // Properties:
  13012. /* readonly */
  13013. String category;
  13014. /* readonly */
  13015. float elapsedTime;
  13016. /* readonly */
  13017. uint frameNumber;
  13018. /* readonly */
  13019. int refs;
  13020. /* readonly */
  13021. uint systemTime;
  13022. /* readonly */
  13023. uint timeSinceEpoch;
  13024. /* readonly */
  13025. String timeStamp;
  13026. /* readonly */
  13027. float timeStep;
  13028. /* readonly */
  13029. StringHash type;
  13030. /* readonly */
  13031. String typeName;
  13032. /* readonly */
  13033. int weakRefs;
  13034. };
  13035. class Timer
  13036. {
  13037. public:
  13038. Timer();
  13039. // Methods:
  13040. uint GetMSec(bool);
  13041. void Reset();
  13042. };
  13043. class TmxFile2D
  13044. {
  13045. public:
  13046. TmxFile2D();
  13047. TmxFile2D(const String&in);
  13048. // Methods:
  13049. bool HasSubscribedToEvent(Object, const String&);
  13050. bool HasSubscribedToEvent(const String&);
  13051. bool Load(File);
  13052. bool Load(VectorBuffer&);
  13053. bool Load(const String&);
  13054. bool Save(File) const;
  13055. bool Save(VectorBuffer&) const;
  13056. bool Save(const String&) const;
  13057. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13058. // Properties:
  13059. /* readonly */
  13060. String category;
  13061. /* readonly */
  13062. uint memoryUse;
  13063. String name;
  13064. /* readonly */
  13065. int refs;
  13066. /* readonly */
  13067. StringHash type;
  13068. /* readonly */
  13069. String typeName;
  13070. /* readonly */
  13071. uint useTimer;
  13072. /* readonly */
  13073. int weakRefs;
  13074. };
  13075. class ToolTip
  13076. {
  13077. public:
  13078. ToolTip();
  13079. ToolTip(const String&in);
  13080. // Methods:
  13081. void AddChild(UIElement);
  13082. void AddTag(const String&);
  13083. void AddTags(const String&, int8 = ';');
  13084. void ApplyAttributes();
  13085. void BringToFront();
  13086. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13087. void DisableLayoutUpdate();
  13088. IntVector2 ElementToScreen(const IntVector2&);
  13089. void EnableLayoutUpdate();
  13090. uint FindChild(UIElement) const;
  13091. Variant GetAttribute(const String&) const;
  13092. ValueAnimation GetAttributeAnimation(const String&) const;
  13093. float GetAttributeAnimationSpeed(const String&) const;
  13094. float GetAttributeAnimationTime(const String&) const;
  13095. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13096. Variant GetAttributeDefault(const String&) const;
  13097. UIElement GetChild(const String&, bool = false) const;
  13098. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13099. Array<UIElement> GetChildren(bool = false) const;
  13100. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13101. UIElement GetElementEventSender() const;
  13102. bool GetInterceptNetworkUpdate(const String&) const;
  13103. uint GetNumChildren(bool) const;
  13104. bool HasSubscribedToEvent(Object, const String&);
  13105. bool HasSubscribedToEvent(const String&);
  13106. bool HasTag(const String&) const;
  13107. void InsertChild(uint, UIElement);
  13108. bool IsInside(IntVector2, bool);
  13109. bool IsInsideCombined(IntVector2, bool);
  13110. bool Load(File, bool = false);
  13111. bool Load(VectorBuffer&, bool = false);
  13112. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13113. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13114. bool LoadJSON(const JSONValue&, bool = false);
  13115. bool LoadXML(File);
  13116. bool LoadXML(VectorBuffer&);
  13117. bool LoadXML(XMLFile, XMLFile);
  13118. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13119. bool LoadXML(const XMLElement&, bool = false);
  13120. void MarkNetworkUpdate() const;
  13121. void Remove();
  13122. void RemoveAllChildren();
  13123. void RemoveAllTags();
  13124. void RemoveAttributeAnimation(const String&);
  13125. void RemoveChild(UIElement, uint = 0);
  13126. void RemoveChild(uint);
  13127. void RemoveInstanceDefault();
  13128. void RemoveObjectAnimation();
  13129. bool RemoveTag(const String&);
  13130. void ResetDeepEnabled();
  13131. void ResetToDefault();
  13132. bool Save(File) const;
  13133. bool Save(VectorBuffer&) const;
  13134. bool SaveJSON(JSONValue&) const;
  13135. bool SaveXML(File, const String& = "\t");
  13136. bool SaveXML(VectorBuffer&, const String& = "\t");
  13137. bool SaveXML(XMLElement&) const;
  13138. IntVector2 ScreenToElement(const IntVector2&);
  13139. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13140. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13141. void SetAnimationTime(float);
  13142. bool SetAttribute(const String&, const Variant&);
  13143. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13144. void SetAttributeAnimationSpeed(const String&, float);
  13145. void SetAttributeAnimationTime(const String&, float);
  13146. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13147. void SetDeepEnabled(bool);
  13148. void SetEnabledRecursive(bool);
  13149. void SetFixedHeight(int);
  13150. void SetFixedSize(int, int);
  13151. void SetFixedWidth(int);
  13152. void SetInterceptNetworkUpdate(const String&, bool);
  13153. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13154. void SetMaxAnchor(float, float);
  13155. void SetMaxSize(int, int);
  13156. void SetMinAnchor(float, float);
  13157. void SetMinSize(int, int);
  13158. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13159. void SetPivot(float, float);
  13160. void SetPosition(int, int);
  13161. void SetSize(int, int);
  13162. bool SetStyle(const String&, XMLFile = null);
  13163. bool SetStyle(const XMLElement&);
  13164. bool SetStyleAuto(XMLFile = null);
  13165. void UpdateLayout();
  13166. const Variant& GetVar(const StringHash&);
  13167. // Properties:
  13168. bool animationEnabled;
  13169. /* readonly */
  13170. Array<Variant> attributeDefaults;
  13171. /* readonly */
  13172. Array<AttributeInfo> attributeInfos;
  13173. Array<Variant> attributes;
  13174. bool bringToBack;
  13175. bool bringToFront;
  13176. /* readonly */
  13177. String category;
  13178. /* readonly */
  13179. IntVector2 childOffset;
  13180. /* readonly */
  13181. Array<UIElement> children;
  13182. IntRect clipBorder;
  13183. bool clipChildren;
  13184. /* writeonly */
  13185. Color color;
  13186. /* readonly */
  13187. bool colorGradient;
  13188. Array<Color> colors;
  13189. /* readonly */
  13190. IntRect combinedScreenRect;
  13191. XMLFile defaultStyle;
  13192. float delay;
  13193. /* readonly */
  13194. float derivedOpacity;
  13195. /* readonly */
  13196. uint dragButtonCombo;
  13197. /* readonly */
  13198. int dragButtonCount;
  13199. uint dragDropMode;
  13200. bool editable;
  13201. bool elementEventSender;
  13202. bool enableAnchor;
  13203. bool enabled;
  13204. /* readonly */
  13205. bool enabledSelf;
  13206. /* readonly */
  13207. bool fixedHeight;
  13208. /* readonly */
  13209. bool fixedSize;
  13210. /* readonly */
  13211. bool fixedWidth;
  13212. bool focus;
  13213. FocusMode focusMode;
  13214. int height;
  13215. HorizontalAlignment horizontalAlignment;
  13216. /* readonly */
  13217. bool hovering;
  13218. int indent;
  13219. int indentSpacing;
  13220. /* readonly */
  13221. int indentWidth;
  13222. bool internal;
  13223. IntRect layoutBorder;
  13224. Vector2 layoutFlexScale;
  13225. LayoutMode layoutMode;
  13226. int layoutSpacing;
  13227. Vector2 maxAnchor;
  13228. int maxHeight;
  13229. IntVector2 maxOffset;
  13230. IntVector2 maxSize;
  13231. int maxWidth;
  13232. Vector2 minAnchor;
  13233. int minHeight;
  13234. IntVector2 minOffset;
  13235. IntVector2 minSize;
  13236. int minWidth;
  13237. String name;
  13238. /* readonly */
  13239. uint numAllChildren;
  13240. /* readonly */
  13241. uint numAttributes;
  13242. /* readonly */
  13243. uint numChildren;
  13244. ObjectAnimation objectAnimation;
  13245. float opacity;
  13246. UIElement parent;
  13247. Vector2 pivot;
  13248. IntVector2 position;
  13249. int priority;
  13250. /* readonly */
  13251. int refs;
  13252. /* readonly */
  13253. UIElement root;
  13254. /* readonly */
  13255. IntVector2 screenPosition;
  13256. bool selected;
  13257. IntVector2 size;
  13258. bool sortChildren;
  13259. String style;
  13260. /* readonly */
  13261. Array<String> tags;
  13262. bool temporary;
  13263. TraversalMode traversalMode;
  13264. /* readonly */
  13265. StringHash type;
  13266. /* readonly */
  13267. String typeName;
  13268. bool useDerivedOpacity;
  13269. /* readonly */
  13270. VariantMap vars;
  13271. VerticalAlignment verticalAlignment;
  13272. bool visible;
  13273. /* readonly */
  13274. bool visibleEffective;
  13275. /* readonly */
  13276. int weakRefs;
  13277. int width;
  13278. };
  13279. class TouchState
  13280. {
  13281. public:
  13282. // Properties:
  13283. IntVector2 delta;
  13284. IntVector2 lastPosition;
  13285. IntVector2 position;
  13286. float pressure;
  13287. int touchID;
  13288. /* readonly */
  13289. UIElement touchedElement;
  13290. };
  13291. class UI
  13292. {
  13293. public:
  13294. // Methods:
  13295. void Clear();
  13296. void DebugDraw(UIElement);
  13297. UIElement GetElementAt(const IntVector2&, bool = true);
  13298. UIElement GetElementAt(int, int, bool = true);
  13299. bool HasModalElement() const;
  13300. bool HasSubscribedToEvent(Object, const String&);
  13301. bool HasSubscribedToEvent(const String&);
  13302. bool IsDragging() const;
  13303. UIElement LoadLayout(File);
  13304. UIElement LoadLayout(File, XMLFile);
  13305. UIElement LoadLayout(VectorBuffer&);
  13306. UIElement LoadLayout(VectorBuffer&, XMLFile);
  13307. UIElement LoadLayout(XMLFile);
  13308. UIElement LoadLayout(XMLFile, XMLFile);
  13309. bool SaveLayout(File, UIElement);
  13310. bool SaveLayout(VectorBuffer&, UIElement);
  13311. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13312. void SetCustomSize(int, int);
  13313. void SetFocusElement(UIElement, bool = false);
  13314. void SetHeight(float);
  13315. void SetWidth(float);
  13316. const Array<UIElement> GetDragElements();
  13317. // Properties:
  13318. /* readonly */
  13319. String category;
  13320. String clipBoardText;
  13321. Cursor cursor;
  13322. /* readonly */
  13323. IntVector2 cursorPosition;
  13324. IntVector2 customSize;
  13325. float defaultToolTipDelay;
  13326. float doubleClickInterval;
  13327. int dragBeginDistance;
  13328. float dragBeginInterval;
  13329. UIElement focusElement;
  13330. bool forceAutoHint;
  13331. /* readonly */
  13332. UIElement frontElement;
  13333. int maxFontTextureSize;
  13334. /* readonly */
  13335. UIElement modalRoot;
  13336. bool nonFocusedMouseWheel;
  13337. /* readonly */
  13338. int refs;
  13339. /* readonly */
  13340. UIElement root;
  13341. float scale;
  13342. /* readonly */
  13343. StringHash type;
  13344. /* readonly */
  13345. String typeName;
  13346. bool useMutableGlyphs;
  13347. bool useScreenKeyboard;
  13348. bool useSystemClipboard;
  13349. /* readonly */
  13350. int weakRefs;
  13351. };
  13352. class UIElement
  13353. {
  13354. public:
  13355. UIElement();
  13356. UIElement(const String&in);
  13357. // Methods:
  13358. void AddChild(UIElement);
  13359. void AddTag(const String&);
  13360. void AddTags(const String&, int8 = ';');
  13361. void ApplyAttributes();
  13362. void BringToFront();
  13363. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13364. void DisableLayoutUpdate();
  13365. IntVector2 ElementToScreen(const IntVector2&);
  13366. void EnableLayoutUpdate();
  13367. uint FindChild(UIElement) const;
  13368. Variant GetAttribute(const String&) const;
  13369. ValueAnimation GetAttributeAnimation(const String&) const;
  13370. float GetAttributeAnimationSpeed(const String&) const;
  13371. float GetAttributeAnimationTime(const String&) const;
  13372. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13373. Variant GetAttributeDefault(const String&) const;
  13374. UIElement GetChild(const String&, bool = false) const;
  13375. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13376. Array<UIElement> GetChildren(bool = false) const;
  13377. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13378. UIElement GetElementEventSender() const;
  13379. bool GetInterceptNetworkUpdate(const String&) const;
  13380. uint GetNumChildren(bool) const;
  13381. bool HasSubscribedToEvent(Object, const String&);
  13382. bool HasSubscribedToEvent(const String&);
  13383. bool HasTag(const String&) const;
  13384. void InsertChild(uint, UIElement);
  13385. bool IsInside(IntVector2, bool);
  13386. bool IsInsideCombined(IntVector2, bool);
  13387. bool Load(File, bool = false);
  13388. bool Load(VectorBuffer&, bool = false);
  13389. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13390. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13391. bool LoadJSON(const JSONValue&, bool = false);
  13392. bool LoadXML(File);
  13393. bool LoadXML(VectorBuffer&);
  13394. bool LoadXML(XMLFile, XMLFile);
  13395. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13396. bool LoadXML(const XMLElement&, bool = false);
  13397. void MarkNetworkUpdate() const;
  13398. void Remove();
  13399. void RemoveAllChildren();
  13400. void RemoveAllTags();
  13401. void RemoveAttributeAnimation(const String&);
  13402. void RemoveChild(UIElement, uint = 0);
  13403. void RemoveChild(uint);
  13404. void RemoveInstanceDefault();
  13405. void RemoveObjectAnimation();
  13406. bool RemoveTag(const String&);
  13407. void ResetDeepEnabled();
  13408. void ResetToDefault();
  13409. bool Save(File) const;
  13410. bool Save(VectorBuffer&) const;
  13411. bool SaveJSON(JSONValue&) const;
  13412. bool SaveXML(File, const String& = "\t");
  13413. bool SaveXML(VectorBuffer&, const String& = "\t");
  13414. bool SaveXML(XMLElement&) const;
  13415. IntVector2 ScreenToElement(const IntVector2&);
  13416. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13417. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13418. void SetAnimationTime(float);
  13419. bool SetAttribute(const String&, const Variant&);
  13420. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13421. void SetAttributeAnimationSpeed(const String&, float);
  13422. void SetAttributeAnimationTime(const String&, float);
  13423. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13424. void SetDeepEnabled(bool);
  13425. void SetEnabledRecursive(bool);
  13426. void SetFixedHeight(int);
  13427. void SetFixedSize(int, int);
  13428. void SetFixedWidth(int);
  13429. void SetInterceptNetworkUpdate(const String&, bool);
  13430. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13431. void SetMaxAnchor(float, float);
  13432. void SetMaxSize(int, int);
  13433. void SetMinAnchor(float, float);
  13434. void SetMinSize(int, int);
  13435. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13436. void SetPivot(float, float);
  13437. void SetPosition(int, int);
  13438. void SetSize(int, int);
  13439. bool SetStyle(const String&, XMLFile = null);
  13440. bool SetStyle(const XMLElement&);
  13441. bool SetStyleAuto(XMLFile = null);
  13442. void UpdateLayout();
  13443. const Variant& GetVar(const StringHash&);
  13444. // Properties:
  13445. bool animationEnabled;
  13446. /* readonly */
  13447. Array<Variant> attributeDefaults;
  13448. /* readonly */
  13449. Array<AttributeInfo> attributeInfos;
  13450. Array<Variant> attributes;
  13451. bool bringToBack;
  13452. bool bringToFront;
  13453. /* readonly */
  13454. String category;
  13455. /* readonly */
  13456. IntVector2 childOffset;
  13457. /* readonly */
  13458. Array<UIElement> children;
  13459. IntRect clipBorder;
  13460. bool clipChildren;
  13461. /* writeonly */
  13462. Color color;
  13463. /* readonly */
  13464. bool colorGradient;
  13465. Array<Color> colors;
  13466. /* readonly */
  13467. IntRect combinedScreenRect;
  13468. XMLFile defaultStyle;
  13469. /* readonly */
  13470. float derivedOpacity;
  13471. /* readonly */
  13472. uint dragButtonCombo;
  13473. /* readonly */
  13474. int dragButtonCount;
  13475. uint dragDropMode;
  13476. bool editable;
  13477. bool elementEventSender;
  13478. bool enableAnchor;
  13479. bool enabled;
  13480. /* readonly */
  13481. bool enabledSelf;
  13482. /* readonly */
  13483. bool fixedHeight;
  13484. /* readonly */
  13485. bool fixedSize;
  13486. /* readonly */
  13487. bool fixedWidth;
  13488. bool focus;
  13489. FocusMode focusMode;
  13490. int height;
  13491. HorizontalAlignment horizontalAlignment;
  13492. /* readonly */
  13493. bool hovering;
  13494. int indent;
  13495. int indentSpacing;
  13496. /* readonly */
  13497. int indentWidth;
  13498. bool internal;
  13499. IntRect layoutBorder;
  13500. Vector2 layoutFlexScale;
  13501. LayoutMode layoutMode;
  13502. int layoutSpacing;
  13503. Vector2 maxAnchor;
  13504. int maxHeight;
  13505. IntVector2 maxOffset;
  13506. IntVector2 maxSize;
  13507. int maxWidth;
  13508. Vector2 minAnchor;
  13509. int minHeight;
  13510. IntVector2 minOffset;
  13511. IntVector2 minSize;
  13512. int minWidth;
  13513. String name;
  13514. /* readonly */
  13515. uint numAllChildren;
  13516. /* readonly */
  13517. uint numAttributes;
  13518. /* readonly */
  13519. uint numChildren;
  13520. ObjectAnimation objectAnimation;
  13521. float opacity;
  13522. UIElement parent;
  13523. Vector2 pivot;
  13524. IntVector2 position;
  13525. int priority;
  13526. /* readonly */
  13527. int refs;
  13528. /* readonly */
  13529. UIElement root;
  13530. /* readonly */
  13531. IntVector2 screenPosition;
  13532. bool selected;
  13533. IntVector2 size;
  13534. bool sortChildren;
  13535. String style;
  13536. /* readonly */
  13537. Array<String> tags;
  13538. bool temporary;
  13539. TraversalMode traversalMode;
  13540. /* readonly */
  13541. StringHash type;
  13542. /* readonly */
  13543. String typeName;
  13544. bool useDerivedOpacity;
  13545. /* readonly */
  13546. VariantMap vars;
  13547. VerticalAlignment verticalAlignment;
  13548. bool visible;
  13549. /* readonly */
  13550. bool visibleEffective;
  13551. /* readonly */
  13552. int weakRefs;
  13553. int width;
  13554. };
  13555. class ValueAnimation
  13556. {
  13557. public:
  13558. ValueAnimation();
  13559. ValueAnimation(const String&in);
  13560. // Methods:
  13561. bool HasSubscribedToEvent(Object, const String&);
  13562. bool HasSubscribedToEvent(const String&);
  13563. bool Load(File);
  13564. bool Load(VectorBuffer&);
  13565. bool Load(const String&);
  13566. bool Save(File) const;
  13567. bool Save(VectorBuffer&) const;
  13568. bool Save(const String&) const;
  13569. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13570. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  13571. void SetKeyFrame(float, const Variant&);
  13572. // Properties:
  13573. /* readonly */
  13574. String category;
  13575. InterpMethod interpolationMethod;
  13576. /* readonly */
  13577. uint memoryUse;
  13578. String name;
  13579. /* readonly */
  13580. int refs;
  13581. float splineTension;
  13582. /* readonly */
  13583. StringHash type;
  13584. /* readonly */
  13585. String typeName;
  13586. /* readonly */
  13587. uint useTimer;
  13588. VariantType valueType;
  13589. /* readonly */
  13590. int weakRefs;
  13591. };
  13592. class Variant
  13593. {
  13594. public:
  13595. ~Variant();
  13596. Variant();
  13597. Variant(const Variant&in);
  13598. Variant(int);
  13599. Variant(uint);
  13600. Variant(int64);
  13601. Variant(uint64);
  13602. Variant(const StringHash&in);
  13603. Variant(bool);
  13604. Variant(float);
  13605. Variant(double);
  13606. Variant(const Vector2&in);
  13607. Variant(const Vector3&in);
  13608. Variant(const Vector4&in);
  13609. Variant(const Quaternion&in);
  13610. Variant(const Color&in);
  13611. Variant(const String&in);
  13612. Variant(const ResourceRef&in);
  13613. Variant(const ResourceRefList&in);
  13614. Variant(const Variant[]@);
  13615. Variant(const String[]@);
  13616. Variant(const VariantMap&in);
  13617. Variant(const Rect&in);
  13618. Variant(const IntRect&in);
  13619. Variant(const IntVector2&in);
  13620. Variant(const IntVector3&in);
  13621. Variant(RefCounted@);
  13622. Variant(ScriptObject@);
  13623. Variant(const Matrix3&in);
  13624. Variant(const Matrix3x4&in);
  13625. Variant(const Matrix4&in);
  13626. Variant(const String&in, const String&in);
  13627. Variant(VariantType, const String&in);
  13628. Variant(const VectorBuffer&in);
  13629. // Methods:
  13630. void Clear();
  13631. const Color& GetColor() const;
  13632. void FromString(VariantType, const String&);
  13633. void FromString(const String&, const String&);
  13634. bool GetBool() const;
  13635. VectorBuffer GetBuffer() const;
  13636. double GetDouble() const;
  13637. float GetFloat() const;
  13638. int GetInt() const;
  13639. int GetInt64() const;
  13640. RefCounted GetPtr() const;
  13641. ScriptObject GetScriptObject() const;
  13642. StringHash GetStringHash() const;
  13643. Array<String> GetStringVector() const;
  13644. uint GetUInt() const;
  13645. uint64 GetUInt64() const;
  13646. Array<Variant> GetVariantVector() const;
  13647. const IntRect& GetIntRect() const;
  13648. const IntVector2& GetIntVector2() const;
  13649. const IntVector3& GetIntVector3() const;
  13650. const Matrix3& GetMatrix3() const;
  13651. const Matrix3x4& GetMatrix3x4() const;
  13652. const Matrix4& GetMatrix4() const;
  13653. const Quaternion& GetQuaternion() const;
  13654. const Rect& GetRect() const;
  13655. const ResourceRef& GetResourceRef() const;
  13656. const ResourceRefList& GetResourceRefList() const;
  13657. const String& GetString() const;
  13658. String ToString() const;
  13659. const VariantMap& GetVariantMap() const;
  13660. const Vector2& GetVector2() const;
  13661. const Vector3& GetVector3() const;
  13662. const Vector4& GetVector4() const;
  13663. // Properties:
  13664. /* readonly */
  13665. bool empty;
  13666. /* readonly */
  13667. VariantType type;
  13668. /* readonly */
  13669. String typeName;
  13670. /* readonly */
  13671. bool zero;
  13672. };
  13673. class VariantMap
  13674. {
  13675. public:
  13676. ~VariantMap();
  13677. VariantMap();
  13678. VariantMap(const VariantMap&in);
  13679. // Methods:
  13680. void Clear();
  13681. bool Contains(StringHash) const;
  13682. bool Contains(const String&) const;
  13683. bool Erase(StringHash);
  13684. bool Erase(const String&);
  13685. // Properties:
  13686. /* readonly */
  13687. Array<StringHash> keys;
  13688. /* readonly */
  13689. uint length;
  13690. /* readonly */
  13691. Array<Variant> values;
  13692. };
  13693. class Vector2
  13694. {
  13695. public:
  13696. Vector2();
  13697. Vector2(const Vector2&in);
  13698. Vector2(const IntVector2&in);
  13699. Vector2(float, float);
  13700. Vector2(float[]&inout);
  13701. // Methods:
  13702. Vector2 Abs() const;
  13703. float AbsDotProduct(const Vector2&) const;
  13704. float Angle(const Vector2&) const;
  13705. float DotProduct(const Vector2&) const;
  13706. bool Equals(const Vector2&) const;
  13707. bool IsNaN() const;
  13708. Vector2 Lerp(const Vector2&, float) const;
  13709. void Normalize();
  13710. Vector2 Normalized() const;
  13711. float ProjectOntoAxis(const Vector2&) const;
  13712. String ToString() const;
  13713. // Properties:
  13714. /* readonly */
  13715. Array<float> data;
  13716. /* readonly */
  13717. float length;
  13718. /* readonly */
  13719. float lengthSquared;
  13720. float x;
  13721. float y;
  13722. // Constants:
  13723. static const Vector2 DOWN;
  13724. static const Vector2 LEFT;
  13725. static const Vector2 ONE;
  13726. static const Vector2 RIGHT;
  13727. static const Vector2 UP;
  13728. static const Vector2 ZERO;
  13729. };
  13730. class Vector3
  13731. {
  13732. public:
  13733. Vector3();
  13734. Vector3(const Vector3&in);
  13735. Vector3(const Vector2&in, float);
  13736. Vector3(const Vector2&in);
  13737. Vector3(const IntVector3&in);
  13738. Vector3(float, float, float);
  13739. Vector3(float, float);
  13740. Vector3(float[]&inout);
  13741. // Methods:
  13742. Vector3 Abs() const;
  13743. float AbsDotProduct(const Vector3&) const;
  13744. float Angle(const Vector3&) const;
  13745. Vector3 CrossProduct(const Vector3&) const;
  13746. float DotProduct(const Vector3&) const;
  13747. bool Equals(const Vector3&) const;
  13748. bool IsNaN() const;
  13749. Vector3 Lerp(const Vector3&, float) const;
  13750. void Normalize();
  13751. Vector3 Normalized() const;
  13752. float ProjectOntoAxis(const Vector3&) const;
  13753. String ToString() const;
  13754. // Properties:
  13755. /* readonly */
  13756. Array<float> data;
  13757. /* readonly */
  13758. float length;
  13759. /* readonly */
  13760. float lengthSquared;
  13761. float x;
  13762. float y;
  13763. float z;
  13764. // Constants:
  13765. static const Vector3 BACK;
  13766. static const Vector3 DOWN;
  13767. static const Vector3 FORWARD;
  13768. static const Vector3 LEFT;
  13769. static const Vector3 ONE;
  13770. static const Vector3 RIGHT;
  13771. static const Vector3 UP;
  13772. static const Vector3 ZERO;
  13773. };
  13774. class Vector4
  13775. {
  13776. public:
  13777. Vector4();
  13778. Vector4(const Vector4&in);
  13779. Vector4(float, float, float, float);
  13780. Vector4(const Vector3&in, float);
  13781. Vector4(float[]&inout);
  13782. // Methods:
  13783. Vector4 Abs() const;
  13784. float AbsDotProduct(const Vector4&) const;
  13785. float DotProduct(const Vector4&) const;
  13786. bool Equals(const Vector4&) const;
  13787. bool IsNaN() const;
  13788. Vector4 Lerp(const Vector4&, float) const;
  13789. float ProjectOntoAxis(const Vector3&) const;
  13790. String ToString() const;
  13791. // Properties:
  13792. /* readonly */
  13793. Array<float> data;
  13794. float w;
  13795. float x;
  13796. float y;
  13797. float z;
  13798. };
  13799. class VectorBuffer
  13800. {
  13801. public:
  13802. ~VectorBuffer();
  13803. VectorBuffer();
  13804. VectorBuffer(const VectorBuffer&in);
  13805. VectorBuffer(Deserializer@, uint);
  13806. // Methods:
  13807. void Clear();
  13808. Array<uint8> Read(uint);
  13809. bool ReadBool();
  13810. BoundingBox ReadBoundingBox();
  13811. int8 ReadByte();
  13812. Color ReadColor();
  13813. double ReadDouble();
  13814. String ReadFileID();
  13815. float ReadFloat();
  13816. int ReadInt();
  13817. int64 ReadInt64();
  13818. IntRect ReadIntRect();
  13819. IntVector2 ReadIntVector2();
  13820. String ReadLine();
  13821. Matrix3 ReadMatrix3();
  13822. Matrix3x4 ReadMatrix3x4();
  13823. Matrix4 ReadMatrix4();
  13824. uint ReadNetID();
  13825. Quaternion ReadPackedQuaternion();
  13826. Vector3 ReadPackedVector3(float);
  13827. Quaternion ReadQuaternion();
  13828. int16 ReadShort();
  13829. String ReadString();
  13830. StringHash ReadStringHash();
  13831. uint8 ReadUByte();
  13832. uint ReadUInt();
  13833. uint64 ReadUInt64();
  13834. uint16 ReadUShort();
  13835. uint ReadVLE();
  13836. Variant ReadVariant();
  13837. VariantMap ReadVariantMap();
  13838. Vector2 ReadVector2();
  13839. Vector3 ReadVector3();
  13840. Vector4 ReadVector4();
  13841. VectorBuffer ReadVectorBuffer(uint);
  13842. void Resize(uint);
  13843. uint Seek(uint);
  13844. void SetData(Deserializer, uint);
  13845. uint Write(Array<uint8>);
  13846. bool WriteBool(bool);
  13847. bool WriteBoundingBox(const BoundingBox&);
  13848. bool WriteByte(int8);
  13849. bool WriteColor(const Color&);
  13850. bool WriteDouble(double);
  13851. bool WriteFileID(const String&);
  13852. bool WriteFloat(float);
  13853. bool WriteInt(int);
  13854. bool WriteInt64(int64);
  13855. bool WriteIntRect(const IntRect&);
  13856. bool WriteIntVector2(const IntVector2&);
  13857. bool WriteLine(const String&);
  13858. bool WriteMatrix3(const Matrix3&);
  13859. bool WriteMatrix3x4(const Matrix3x4&);
  13860. bool WriteMatrix4(const Matrix4&);
  13861. bool WriteNetID(uint);
  13862. bool WritePackedQuaternion(const Quaternion&);
  13863. bool WritePackedVector3(const Vector3&, float);
  13864. bool WriteQuaternion(const Quaternion&);
  13865. bool WriteShort(int16);
  13866. bool WriteString(const String&);
  13867. bool WriteStringHash(const StringHash&);
  13868. bool WriteUByte(uint8);
  13869. bool WriteUInt(uint);
  13870. bool WriteUInt64(uint64);
  13871. bool WriteUShort(uint16);
  13872. bool WriteVLE(uint);
  13873. bool WriteVariant(const Variant&);
  13874. bool WriteVariantMap(const VariantMap&);
  13875. bool WriteVector2(const Vector2&);
  13876. bool WriteVector3(const Vector3&);
  13877. bool WriteVector4(const Vector4&);
  13878. bool WriteVectorBuffer(const VectorBuffer&);
  13879. // Properties:
  13880. /* readonly */
  13881. uint checksum;
  13882. /* readonly */
  13883. bool eof;
  13884. /* readonly */
  13885. String name;
  13886. /* readonly */
  13887. uint position;
  13888. /* readonly */
  13889. uint size;
  13890. };
  13891. class VertexBuffer
  13892. {
  13893. public:
  13894. VertexBuffer();
  13895. // Methods:
  13896. VectorBuffer GetData() const;
  13897. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  13898. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  13899. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  13900. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  13901. bool HasSubscribedToEvent(Object, const String&);
  13902. bool HasSubscribedToEvent(const String&);
  13903. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13904. bool SetData(VectorBuffer&);
  13905. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  13906. void SetSize(uint, Array<VertexElement>, bool = false);
  13907. void SetSize(uint, uint, bool = false);
  13908. // Properties:
  13909. /* readonly */
  13910. String category;
  13911. /* readonly */
  13912. bool dynamic;
  13913. /* readonly */
  13914. uint elementMask;
  13915. /* readonly */
  13916. Array<VertexElement> elements;
  13917. /* readonly */
  13918. int refs;
  13919. bool shadowed;
  13920. /* readonly */
  13921. StringHash type;
  13922. /* readonly */
  13923. String typeName;
  13924. /* readonly */
  13925. uint vertexCount;
  13926. /* readonly */
  13927. uint vertexSize;
  13928. /* readonly */
  13929. int weakRefs;
  13930. };
  13931. class VertexElement
  13932. {
  13933. public:
  13934. ~VertexElement();
  13935. VertexElement();
  13936. VertexElement(const VertexElement&in);
  13937. VertexElement(VertexElementType, VertexElementSemantic, uint8 index = 0, bool perInstance = false);
  13938. // Properties:
  13939. uint8 index;
  13940. uint offset;
  13941. bool perInstance;
  13942. VertexElementSemantic semantic;
  13943. VertexElementType type;
  13944. };
  13945. class View3D
  13946. {
  13947. public:
  13948. View3D();
  13949. View3D(const String&in);
  13950. // Methods:
  13951. void AddChild(UIElement);
  13952. void AddTag(const String&);
  13953. void AddTags(const String&, int8 = ';');
  13954. void ApplyAttributes();
  13955. void BringToFront();
  13956. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13957. void DisableLayoutUpdate();
  13958. IntVector2 ElementToScreen(const IntVector2&);
  13959. void EnableLayoutUpdate();
  13960. uint FindChild(UIElement) const;
  13961. Variant GetAttribute(const String&) const;
  13962. ValueAnimation GetAttributeAnimation(const String&) const;
  13963. float GetAttributeAnimationSpeed(const String&) const;
  13964. float GetAttributeAnimationTime(const String&) const;
  13965. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13966. Variant GetAttributeDefault(const String&) const;
  13967. UIElement GetChild(const String&, bool = false) const;
  13968. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13969. Array<UIElement> GetChildren(bool = false) const;
  13970. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13971. UIElement GetElementEventSender() const;
  13972. bool GetInterceptNetworkUpdate(const String&) const;
  13973. uint GetNumChildren(bool) const;
  13974. bool HasSubscribedToEvent(Object, const String&);
  13975. bool HasSubscribedToEvent(const String&);
  13976. bool HasTag(const String&) const;
  13977. void InsertChild(uint, UIElement);
  13978. bool IsInside(IntVector2, bool);
  13979. bool IsInsideCombined(IntVector2, bool);
  13980. bool Load(File, bool = false);
  13981. bool Load(VectorBuffer&, bool = false);
  13982. UIElement LoadChildXML(XMLFile, XMLFile = null);
  13983. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13984. bool LoadJSON(const JSONValue&, bool = false);
  13985. bool LoadXML(File);
  13986. bool LoadXML(VectorBuffer&);
  13987. bool LoadXML(XMLFile, XMLFile);
  13988. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13989. bool LoadXML(const XMLElement&, bool = false);
  13990. void MarkNetworkUpdate() const;
  13991. void QueueUpdate();
  13992. void Remove();
  13993. void RemoveAllChildren();
  13994. void RemoveAllTags();
  13995. void RemoveAttributeAnimation(const String&);
  13996. void RemoveChild(UIElement, uint = 0);
  13997. void RemoveChild(uint);
  13998. void RemoveInstanceDefault();
  13999. void RemoveObjectAnimation();
  14000. bool RemoveTag(const String&);
  14001. void ResetDeepEnabled();
  14002. void ResetToDefault();
  14003. bool Save(File) const;
  14004. bool Save(VectorBuffer&) const;
  14005. bool SaveJSON(JSONValue&) const;
  14006. bool SaveXML(File, const String& = "\t");
  14007. bool SaveXML(VectorBuffer&, const String& = "\t");
  14008. bool SaveXML(XMLElement&) const;
  14009. IntVector2 ScreenToElement(const IntVector2&);
  14010. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14011. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14012. void SetAnimationTime(float);
  14013. bool SetAttribute(const String&, const Variant&);
  14014. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14015. void SetAttributeAnimationSpeed(const String&, float);
  14016. void SetAttributeAnimationTime(const String&, float);
  14017. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14018. void SetDeepEnabled(bool);
  14019. void SetEnabledRecursive(bool);
  14020. void SetFixedHeight(int);
  14021. void SetFixedSize(int, int);
  14022. void SetFixedWidth(int);
  14023. void SetFullImageRect();
  14024. void SetHoverOffset(int, int);
  14025. void SetInterceptNetworkUpdate(const String&, bool);
  14026. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14027. void SetMaxAnchor(float, float);
  14028. void SetMaxSize(int, int);
  14029. void SetMinAnchor(float, float);
  14030. void SetMinSize(int, int);
  14031. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14032. void SetPivot(float, float);
  14033. void SetPosition(int, int);
  14034. void SetSize(int, int);
  14035. bool SetStyle(const String&, XMLFile = null);
  14036. bool SetStyle(const XMLElement&);
  14037. bool SetStyleAuto(XMLFile = null);
  14038. void SetView(Scene, Camera, bool = true);
  14039. void UpdateLayout();
  14040. const Variant& GetVar(const StringHash&);
  14041. // Properties:
  14042. bool animationEnabled;
  14043. /* readonly */
  14044. Array<Variant> attributeDefaults;
  14045. /* readonly */
  14046. Array<AttributeInfo> attributeInfos;
  14047. Array<Variant> attributes;
  14048. bool autoUpdate;
  14049. BlendMode blendMode;
  14050. IntRect border;
  14051. bool bringToBack;
  14052. bool bringToFront;
  14053. /* readonly */
  14054. Node cameraNode;
  14055. /* readonly */
  14056. String category;
  14057. /* readonly */
  14058. IntVector2 childOffset;
  14059. /* readonly */
  14060. Array<UIElement> children;
  14061. IntRect clipBorder;
  14062. bool clipChildren;
  14063. /* writeonly */
  14064. Color color;
  14065. /* readonly */
  14066. bool colorGradient;
  14067. Array<Color> colors;
  14068. /* readonly */
  14069. IntRect combinedScreenRect;
  14070. XMLFile defaultStyle;
  14071. /* readonly */
  14072. Texture2D depthTexture;
  14073. /* readonly */
  14074. float derivedOpacity;
  14075. /* readonly */
  14076. uint dragButtonCombo;
  14077. /* readonly */
  14078. int dragButtonCount;
  14079. uint dragDropMode;
  14080. bool editable;
  14081. bool elementEventSender;
  14082. bool enableAnchor;
  14083. bool enabled;
  14084. /* readonly */
  14085. bool enabledSelf;
  14086. /* readonly */
  14087. bool fixedHeight;
  14088. bool fixedHeightResizing;
  14089. /* readonly */
  14090. bool fixedSize;
  14091. /* readonly */
  14092. bool fixedWidth;
  14093. bool fixedWidthResizing;
  14094. bool focus;
  14095. FocusMode focusMode;
  14096. uint format;
  14097. int height;
  14098. HorizontalAlignment horizontalAlignment;
  14099. IntVector2 hoverOffset;
  14100. /* readonly */
  14101. bool hovering;
  14102. IntRect imageBorder;
  14103. IntRect imageRect;
  14104. int indent;
  14105. int indentSpacing;
  14106. /* readonly */
  14107. int indentWidth;
  14108. bool internal;
  14109. IntRect layoutBorder;
  14110. Vector2 layoutFlexScale;
  14111. LayoutMode layoutMode;
  14112. int layoutSpacing;
  14113. Vector2 maxAnchor;
  14114. int maxHeight;
  14115. IntVector2 maxOffset;
  14116. IntVector2 maxSize;
  14117. int maxWidth;
  14118. Vector2 minAnchor;
  14119. int minHeight;
  14120. IntVector2 minOffset;
  14121. IntVector2 minSize;
  14122. int minWidth;
  14123. bool modal;
  14124. bool modalAutoDismiss;
  14125. Color modalFrameColor;
  14126. IntVector2 modalFrameSize;
  14127. Color modalShadeColor;
  14128. bool movable;
  14129. String name;
  14130. /* readonly */
  14131. uint numAllChildren;
  14132. /* readonly */
  14133. uint numAttributes;
  14134. /* readonly */
  14135. uint numChildren;
  14136. ObjectAnimation objectAnimation;
  14137. float opacity;
  14138. UIElement parent;
  14139. Vector2 pivot;
  14140. IntVector2 position;
  14141. int priority;
  14142. /* readonly */
  14143. int refs;
  14144. /* readonly */
  14145. Texture2D renderTexture;
  14146. bool resizable;
  14147. IntRect resizeBorder;
  14148. /* readonly */
  14149. UIElement root;
  14150. /* readonly */
  14151. Scene scene;
  14152. /* readonly */
  14153. IntVector2 screenPosition;
  14154. bool selected;
  14155. IntVector2 size;
  14156. bool sortChildren;
  14157. String style;
  14158. /* readonly */
  14159. Array<String> tags;
  14160. bool temporary;
  14161. Texture texture;
  14162. bool tiled;
  14163. TraversalMode traversalMode;
  14164. /* readonly */
  14165. StringHash type;
  14166. /* readonly */
  14167. String typeName;
  14168. bool useDerivedOpacity;
  14169. /* readonly */
  14170. VariantMap vars;
  14171. VerticalAlignment verticalAlignment;
  14172. /* readonly */
  14173. Viewport viewport;
  14174. bool visible;
  14175. /* readonly */
  14176. bool visibleEffective;
  14177. /* readonly */
  14178. int weakRefs;
  14179. int width;
  14180. };
  14181. class Viewport
  14182. {
  14183. public:
  14184. Viewport();
  14185. Viewport(Scene&, Camera&, RenderPath& renderPath = null);
  14186. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& renderPath = null);
  14187. // Methods:
  14188. Ray GetScreenRay(int, int) const;
  14189. bool HasSubscribedToEvent(Object, const String&);
  14190. bool HasSubscribedToEvent(const String&);
  14191. Vector3 ScreenToWorldPoint(int, int, float) const;
  14192. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14193. void SetRenderPath(XMLFile);
  14194. IntVector2 WorldToScreenPoint(const Vector3&) const;
  14195. // Properties:
  14196. Camera camera;
  14197. /* readonly */
  14198. String category;
  14199. Camera cullCamera;
  14200. bool drawDebug;
  14201. IntRect rect;
  14202. /* readonly */
  14203. int refs;
  14204. RenderPath renderPath;
  14205. Scene scene;
  14206. /* readonly */
  14207. StringHash type;
  14208. /* readonly */
  14209. String typeName;
  14210. /* readonly */
  14211. int weakRefs;
  14212. };
  14213. class WeakHandle
  14214. {
  14215. public:
  14216. ~WeakHandle();
  14217. WeakHandle();
  14218. WeakHandle(const WeakHandle&in);
  14219. WeakHandle(RefCounted@);
  14220. // Methods:
  14221. RefCounted Get() const;
  14222. // Properties:
  14223. /* readonly */
  14224. bool expired;
  14225. /* readonly */
  14226. int refs;
  14227. /* readonly */
  14228. int weakRefs;
  14229. };
  14230. class Window
  14231. {
  14232. public:
  14233. Window();
  14234. Window(const String&in);
  14235. // Methods:
  14236. void AddChild(UIElement);
  14237. void AddTag(const String&);
  14238. void AddTags(const String&, int8 = ';');
  14239. void ApplyAttributes();
  14240. void BringToFront();
  14241. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14242. void DisableLayoutUpdate();
  14243. IntVector2 ElementToScreen(const IntVector2&);
  14244. void EnableLayoutUpdate();
  14245. uint FindChild(UIElement) const;
  14246. Variant GetAttribute(const String&) const;
  14247. ValueAnimation GetAttributeAnimation(const String&) const;
  14248. float GetAttributeAnimationSpeed(const String&) const;
  14249. float GetAttributeAnimationTime(const String&) const;
  14250. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14251. Variant GetAttributeDefault(const String&) const;
  14252. UIElement GetChild(const String&, bool = false) const;
  14253. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14254. Array<UIElement> GetChildren(bool = false) const;
  14255. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14256. UIElement GetElementEventSender() const;
  14257. bool GetInterceptNetworkUpdate(const String&) const;
  14258. uint GetNumChildren(bool) const;
  14259. bool HasSubscribedToEvent(Object, const String&);
  14260. bool HasSubscribedToEvent(const String&);
  14261. bool HasTag(const String&) const;
  14262. void InsertChild(uint, UIElement);
  14263. bool IsInside(IntVector2, bool);
  14264. bool IsInsideCombined(IntVector2, bool);
  14265. bool Load(File, bool = false);
  14266. bool Load(VectorBuffer&, bool = false);
  14267. UIElement LoadChildXML(XMLFile, XMLFile = null);
  14268. UIElement LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  14269. bool LoadJSON(const JSONValue&, bool = false);
  14270. bool LoadXML(File);
  14271. bool LoadXML(VectorBuffer&);
  14272. bool LoadXML(XMLFile, XMLFile);
  14273. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  14274. bool LoadXML(const XMLElement&, bool = false);
  14275. void MarkNetworkUpdate() const;
  14276. void Remove();
  14277. void RemoveAllChildren();
  14278. void RemoveAllTags();
  14279. void RemoveAttributeAnimation(const String&);
  14280. void RemoveChild(UIElement, uint = 0);
  14281. void RemoveChild(uint);
  14282. void RemoveInstanceDefault();
  14283. void RemoveObjectAnimation();
  14284. bool RemoveTag(const String&);
  14285. void ResetDeepEnabled();
  14286. void ResetToDefault();
  14287. bool Save(File) const;
  14288. bool Save(VectorBuffer&) const;
  14289. bool SaveJSON(JSONValue&) const;
  14290. bool SaveXML(File, const String& = "\t");
  14291. bool SaveXML(VectorBuffer&, const String& = "\t");
  14292. bool SaveXML(XMLElement&) const;
  14293. IntVector2 ScreenToElement(const IntVector2&);
  14294. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14295. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14296. void SetAnimationTime(float);
  14297. bool SetAttribute(const String&, const Variant&);
  14298. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14299. void SetAttributeAnimationSpeed(const String&, float);
  14300. void SetAttributeAnimationTime(const String&, float);
  14301. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14302. void SetDeepEnabled(bool);
  14303. void SetEnabledRecursive(bool);
  14304. void SetFixedHeight(int);
  14305. void SetFixedSize(int, int);
  14306. void SetFixedWidth(int);
  14307. void SetFullImageRect();
  14308. void SetHoverOffset(int, int);
  14309. void SetInterceptNetworkUpdate(const String&, bool);
  14310. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14311. void SetMaxAnchor(float, float);
  14312. void SetMaxSize(int, int);
  14313. void SetMinAnchor(float, float);
  14314. void SetMinSize(int, int);
  14315. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14316. void SetPivot(float, float);
  14317. void SetPosition(int, int);
  14318. void SetSize(int, int);
  14319. bool SetStyle(const String&, XMLFile = null);
  14320. bool SetStyle(const XMLElement&);
  14321. bool SetStyleAuto(XMLFile = null);
  14322. void UpdateLayout();
  14323. const Variant& GetVar(const StringHash&);
  14324. // Properties:
  14325. bool animationEnabled;
  14326. /* readonly */
  14327. Array<Variant> attributeDefaults;
  14328. /* readonly */
  14329. Array<AttributeInfo> attributeInfos;
  14330. Array<Variant> attributes;
  14331. BlendMode blendMode;
  14332. IntRect border;
  14333. bool bringToBack;
  14334. bool bringToFront;
  14335. /* readonly */
  14336. String category;
  14337. /* readonly */
  14338. IntVector2 childOffset;
  14339. /* readonly */
  14340. Array<UIElement> children;
  14341. IntRect clipBorder;
  14342. bool clipChildren;
  14343. /* writeonly */
  14344. Color color;
  14345. /* readonly */
  14346. bool colorGradient;
  14347. Array<Color> colors;
  14348. /* readonly */
  14349. IntRect combinedScreenRect;
  14350. XMLFile defaultStyle;
  14351. /* readonly */
  14352. float derivedOpacity;
  14353. /* readonly */
  14354. uint dragButtonCombo;
  14355. /* readonly */
  14356. int dragButtonCount;
  14357. uint dragDropMode;
  14358. bool editable;
  14359. bool elementEventSender;
  14360. bool enableAnchor;
  14361. bool enabled;
  14362. /* readonly */
  14363. bool enabledSelf;
  14364. /* readonly */
  14365. bool fixedHeight;
  14366. bool fixedHeightResizing;
  14367. /* readonly */
  14368. bool fixedSize;
  14369. /* readonly */
  14370. bool fixedWidth;
  14371. bool fixedWidthResizing;
  14372. bool focus;
  14373. FocusMode focusMode;
  14374. int height;
  14375. HorizontalAlignment horizontalAlignment;
  14376. IntVector2 hoverOffset;
  14377. /* readonly */
  14378. bool hovering;
  14379. IntRect imageBorder;
  14380. IntRect imageRect;
  14381. int indent;
  14382. int indentSpacing;
  14383. /* readonly */
  14384. int indentWidth;
  14385. bool internal;
  14386. IntRect layoutBorder;
  14387. Vector2 layoutFlexScale;
  14388. LayoutMode layoutMode;
  14389. int layoutSpacing;
  14390. Vector2 maxAnchor;
  14391. int maxHeight;
  14392. IntVector2 maxOffset;
  14393. IntVector2 maxSize;
  14394. int maxWidth;
  14395. Vector2 minAnchor;
  14396. int minHeight;
  14397. IntVector2 minOffset;
  14398. IntVector2 minSize;
  14399. int minWidth;
  14400. bool modal;
  14401. bool modalAutoDismiss;
  14402. Color modalFrameColor;
  14403. IntVector2 modalFrameSize;
  14404. Color modalShadeColor;
  14405. bool movable;
  14406. String name;
  14407. /* readonly */
  14408. uint numAllChildren;
  14409. /* readonly */
  14410. uint numAttributes;
  14411. /* readonly */
  14412. uint numChildren;
  14413. ObjectAnimation objectAnimation;
  14414. float opacity;
  14415. UIElement parent;
  14416. Vector2 pivot;
  14417. IntVector2 position;
  14418. int priority;
  14419. /* readonly */
  14420. int refs;
  14421. bool resizable;
  14422. IntRect resizeBorder;
  14423. /* readonly */
  14424. UIElement root;
  14425. /* readonly */
  14426. IntVector2 screenPosition;
  14427. bool selected;
  14428. IntVector2 size;
  14429. bool sortChildren;
  14430. String style;
  14431. /* readonly */
  14432. Array<String> tags;
  14433. bool temporary;
  14434. Texture texture;
  14435. bool tiled;
  14436. TraversalMode traversalMode;
  14437. /* readonly */
  14438. StringHash type;
  14439. /* readonly */
  14440. String typeName;
  14441. bool useDerivedOpacity;
  14442. /* readonly */
  14443. VariantMap vars;
  14444. VerticalAlignment verticalAlignment;
  14445. bool visible;
  14446. /* readonly */
  14447. bool visibleEffective;
  14448. /* readonly */
  14449. int weakRefs;
  14450. int width;
  14451. };
  14452. class XMLElement
  14453. {
  14454. public:
  14455. ~XMLElement();
  14456. XMLElement();
  14457. XMLElement(const XMLElement&in);
  14458. // Methods:
  14459. XMLElement CreateChild(const String&);
  14460. String GetAttribute(const String& = String ( )) const;
  14461. String GetAttributeLower(const String&) const;
  14462. Array<String> GetAttributeNames() const;
  14463. String GetAttributeUpper(const String&) const;
  14464. bool GetBool(const String&) const;
  14465. BoundingBox GetBoundingBox() const;
  14466. XMLElement GetChild(const String& = String ( )) const;
  14467. Color GetColor(const String&) const;
  14468. double GetDouble(const String&) const;
  14469. float GetFloat(const String&) const;
  14470. int GetInt(const String&) const;
  14471. int64 GetInt64(const String&) const;
  14472. IntRect GetIntRect(const String&) const;
  14473. IntVector2 GetIntVector2(const String&) const;
  14474. IntVector3 GetIntVector3(const String&) const;
  14475. Matrix3 GetMatrix3(const String&) const;
  14476. Matrix3x4 GetMatrix3x4(const String&) const;
  14477. Matrix4 GetMatrix4(const String&) const;
  14478. XMLElement GetNext(const String& = String ( )) const;
  14479. XMLElement GetOrCreateChild(const String&);
  14480. Quaternion GetQuaternion(const String&) const;
  14481. ResourceRef GetResourceRef() const;
  14482. ResourceRefList GetResourceRefList() const;
  14483. uint GetUInt(const String&) const;
  14484. uint64 GetUInt64(const String&) const;
  14485. String GetValue() const;
  14486. Variant GetVariant() const;
  14487. VariantMap GetVariantMap() const;
  14488. Array<Variant> GetVariantVector() const;
  14489. Vector2 GetVector2(const String&) const;
  14490. Vector3 GetVector3(const String&) const;
  14491. Vector4 GetVector4(const String&) const;
  14492. Variant GetVectorVariant(const String&) const;
  14493. bool HasAttribute(const String&) const;
  14494. bool HasChild(const String&) const;
  14495. bool RemoveAttribute(const String& = String ( ));
  14496. bool RemoveChild(const String&);
  14497. bool RemoveChild(const XMLElement&);
  14498. bool RemoveChildren(const String& = String ( ));
  14499. XPathResultSet Select(const String&);
  14500. XPathResultSet SelectPrepared(const XPathQuery&);
  14501. XMLElement SelectSingle(const String&);
  14502. XMLElement SelectSinglePrepared(const XPathQuery&);
  14503. bool SetAttribute(const String&);
  14504. bool SetAttribute(const String&, const String&);
  14505. bool SetBool(const String&, bool);
  14506. bool SetBoundingBox(const BoundingBox&);
  14507. bool SetColor(const String&, const Color&);
  14508. bool SetDouble(const String&, double);
  14509. bool SetFloat(const String&, float);
  14510. bool SetInt(const String&, int);
  14511. bool SetInt64(const String&, int64);
  14512. bool SetIntRect(const String&, const IntRect&);
  14513. bool SetIntVector2(const String&, const IntVector2&);
  14514. bool SetIntVector3(const String&, const IntVector3&);
  14515. bool SetMatrix3(const String&, const Matrix3&);
  14516. bool SetMatrix3x4(const String&, const Matrix3x4&);
  14517. bool SetMatrix4(const String&, const Matrix4&);
  14518. bool SetQuaternion(const String&, const Quaternion&);
  14519. bool SetResourceRef(const String&, const ResourceRef&);
  14520. bool SetResourceRefList(const String&, const ResourceRefList&);
  14521. bool SetUInt(const String&, uint);
  14522. bool SetUInt64(const String&, uint64);
  14523. bool SetValue(const String&);
  14524. bool SetVariant(const Variant&);
  14525. bool SetVariantMap(const VariantMap&);
  14526. bool SetVariantVector(Array<Variant>);
  14527. bool SetVector2(const String&, const Vector2&);
  14528. bool SetVector3(const String&, const Vector3&);
  14529. bool SetVector4(const String&, const Vector4&);
  14530. bool SetVectorVariant(const String&, const Variant&);
  14531. // Properties:
  14532. /* readonly */
  14533. XMLFile file;
  14534. /* readonly */
  14535. bool isNull;
  14536. /* readonly */
  14537. String name;
  14538. /* readonly */
  14539. XMLElement nextResult;
  14540. /* readonly */
  14541. bool notNull;
  14542. /* readonly */
  14543. uint numAttributes;
  14544. /* readonly */
  14545. XMLElement parent;
  14546. String value;
  14547. };
  14548. class XMLFile
  14549. {
  14550. public:
  14551. XMLFile();
  14552. XMLFile(const String&in);
  14553. // Methods:
  14554. XMLElement CreateRoot(const String&);
  14555. bool FromString(const String&);
  14556. XMLElement GetOrCreateRoot(const String&);
  14557. XMLElement GetRoot(const String& = String ( ));
  14558. bool HasSubscribedToEvent(Object, const String&);
  14559. bool HasSubscribedToEvent(const String&);
  14560. bool Load(File);
  14561. bool Load(VectorBuffer&);
  14562. bool Load(const String&);
  14563. void Patch(XMLElement);
  14564. void Patch(XMLFile);
  14565. bool Save(File) const;
  14566. bool Save(File, const String&) const;
  14567. bool Save(VectorBuffer&) const;
  14568. bool Save(const String&) const;
  14569. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14570. String ToString(const String& = String ( "\t" )) const;
  14571. // Properties:
  14572. /* readonly */
  14573. String category;
  14574. /* readonly */
  14575. uint memoryUse;
  14576. String name;
  14577. /* readonly */
  14578. int refs;
  14579. /* readonly */
  14580. XMLElement root;
  14581. /* readonly */
  14582. StringHash type;
  14583. /* readonly */
  14584. String typeName;
  14585. /* readonly */
  14586. uint useTimer;
  14587. /* readonly */
  14588. int weakRefs;
  14589. };
  14590. class XPathQuery
  14591. {
  14592. public:
  14593. ~XPathQuery();
  14594. XPathQuery();
  14595. XPathQuery(const String&in, const String&inout arg1 = String ( ));
  14596. // Methods:
  14597. void Bind();
  14598. void Clear();
  14599. XPathResultSet Evaluate(XMLElement);
  14600. bool EvaluateToBool(XMLElement);
  14601. float EvaluateToFloat(XMLElement);
  14602. String EvaluateToString(XMLElement);
  14603. bool SetQuery(const String&, const String& = String ( ), bool = true);
  14604. bool SetVariable(const String&, bool);
  14605. bool SetVariable(const String&, const String&);
  14606. bool SetVariable(const String&, const XPathResultSet&);
  14607. bool SetVariable(const String&, float);
  14608. // Properties:
  14609. String query;
  14610. };
  14611. class XPathResultSet
  14612. {
  14613. public:
  14614. ~XPathResultSet();
  14615. XPathResultSet();
  14616. XPathResultSet(const XPathResultSet&in);
  14617. // Properties:
  14618. /* readonly */
  14619. bool empty;
  14620. /* readonly */
  14621. XMLElement firstResult;
  14622. /* readonly */
  14623. uint size;
  14624. };
  14625. class Zone
  14626. {
  14627. public:
  14628. // Methods:
  14629. void ApplyAttributes();
  14630. void DrawDebugGeometry(DebugRenderer, bool);
  14631. Variant GetAttribute(const String&) const;
  14632. ValueAnimation GetAttributeAnimation(const String&) const;
  14633. float GetAttributeAnimationSpeed(const String&) const;
  14634. float GetAttributeAnimationTime(const String&) const;
  14635. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14636. Variant GetAttributeDefault(const String&) const;
  14637. bool GetInterceptNetworkUpdate(const String&) const;
  14638. bool HasSubscribedToEvent(Object, const String&);
  14639. bool HasSubscribedToEvent(const String&);
  14640. bool IsInView(Camera) const;
  14641. bool Load(File, bool = false);
  14642. bool Load(VectorBuffer&, bool = false);
  14643. bool LoadJSON(const JSONValue&, bool = false);
  14644. bool LoadXML(const XMLElement&, bool = false);
  14645. void MarkNetworkUpdate() const;
  14646. void Remove();
  14647. void RemoveAttributeAnimation(const String&);
  14648. void RemoveInstanceDefault();
  14649. void RemoveObjectAnimation();
  14650. void ResetToDefault();
  14651. bool Save(File) const;
  14652. bool Save(VectorBuffer&) const;
  14653. bool SaveJSON(JSONValue&) const;
  14654. bool SaveXML(XMLElement&) const;
  14655. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14656. void SetAnimationTime(float);
  14657. bool SetAttribute(const String&, const Variant&);
  14658. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14659. void SetAttributeAnimationSpeed(const String&, float);
  14660. void SetAttributeAnimationTime(const String&, float);
  14661. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14662. void SetInterceptNetworkUpdate(const String&, bool);
  14663. // Properties:
  14664. Color ambientColor;
  14665. /* readonly */
  14666. Color ambientEndColor;
  14667. bool ambientGradient;
  14668. /* readonly */
  14669. Color ambientStartColor;
  14670. bool animationEnabled;
  14671. /* readonly */
  14672. Array<Variant> attributeDefaults;
  14673. /* readonly */
  14674. Array<AttributeInfo> attributeInfos;
  14675. Array<Variant> attributes;
  14676. BoundingBox boundingBox;
  14677. bool castShadows;
  14678. /* readonly */
  14679. String category;
  14680. float drawDistance;
  14681. bool enabled;
  14682. /* readonly */
  14683. bool enabledEffective;
  14684. Color fogColor;
  14685. float fogEnd;
  14686. float fogHeight;
  14687. float fogHeightScale;
  14688. float fogStart;
  14689. bool heightFog;
  14690. /* readonly */
  14691. uint id;
  14692. /* readonly */
  14693. bool inView;
  14694. /* readonly */
  14695. Matrix3x4 inverseWorldTransform;
  14696. uint lightMask;
  14697. float lodBias;
  14698. uint maxLights;
  14699. /* readonly */
  14700. Node node;
  14701. /* readonly */
  14702. uint numAttributes;
  14703. ObjectAnimation objectAnimation;
  14704. bool occludee;
  14705. bool occluder;
  14706. bool override;
  14707. int priority;
  14708. /* readonly */
  14709. int refs;
  14710. float shadowDistance;
  14711. uint shadowMask;
  14712. bool temporary;
  14713. /* readonly */
  14714. StringHash type;
  14715. /* readonly */
  14716. String typeName;
  14717. uint viewMask;
  14718. /* readonly */
  14719. int weakRefs;
  14720. /* readonly */
  14721. BoundingBox worldBoundingBox;
  14722. uint zoneMask;
  14723. Texture zoneTexture;
  14724. };
  14725. // Enumerations
  14726. enum AnimationBlendMode
  14727. {
  14728. ABM_LERP,
  14729. ABM_ADDITIVE,
  14730. };
  14731. enum AutoRemoveMode
  14732. {
  14733. REMOVE_DISABLED,
  14734. REMOVE_COMPONENT,
  14735. REMOVE_NODE,
  14736. };
  14737. enum BlendMode
  14738. {
  14739. BLEND_REPLACE,
  14740. BLEND_ADD,
  14741. BLEND_MULTIPLY,
  14742. BLEND_ALPHA,
  14743. BLEND_ADDALPHA,
  14744. BLEND_PREMULALPHA,
  14745. BLEND_INVDESTALPHA,
  14746. BLEND_SUBTRACT,
  14747. BLEND_SUBTRACTALPHA,
  14748. };
  14749. enum BodyType2D
  14750. {
  14751. BT_STATIC,
  14752. BT_KINEMATIC,
  14753. BT_DYNAMIC,
  14754. };
  14755. enum CollisionEventMode
  14756. {
  14757. COLLISION_NEVER,
  14758. COLLISION_ACTIVE,
  14759. COLLISION_ALWAYS,
  14760. };
  14761. enum CompareMode
  14762. {
  14763. CMP_ALWAYS,
  14764. CMP_EQUAL,
  14765. CMP_NOTEQUAL,
  14766. CMP_LESS,
  14767. CMP_LESSEQUAL,
  14768. CMP_GREATER,
  14769. CMP_GREATEREQUAL,
  14770. };
  14771. enum CompressedFormat
  14772. {
  14773. CF_NONE,
  14774. CF_RGBA,
  14775. CF_DXT1,
  14776. CF_DXT3,
  14777. CF_DXT5,
  14778. CF_ETC1,
  14779. CF_PVRTC_RGB_2BPP,
  14780. CF_PVRTC_RGBA_2BPP,
  14781. CF_PVRTC_RGB_4BPP,
  14782. CF_PVRTC_RGBA_4BPP,
  14783. };
  14784. enum ConstraintType
  14785. {
  14786. CONSTRAINT_POINT,
  14787. CONSTRAINT_HINGE,
  14788. CONSTRAINT_SLIDER,
  14789. CONSTRAINT_CONETWIST,
  14790. };
  14791. enum Corner
  14792. {
  14793. C_TOPLEFT,
  14794. C_TOPRIGHT,
  14795. C_BOTTOMLEFT,
  14796. C_BOTTOMRIGHT,
  14797. };
  14798. enum CreateMode
  14799. {
  14800. REPLICATED,
  14801. LOCAL,
  14802. };
  14803. enum CrowdAgentRequestedTarget
  14804. {
  14805. CA_REQUESTEDTARGET_NONE,
  14806. CA_REQUESTEDTARGET_POSITION,
  14807. CA_REQUESTEDTARGET_VELOCITY,
  14808. };
  14809. enum CrowdAgentState
  14810. {
  14811. CA_STATE_INVALID,
  14812. CA_STATE_WALKING,
  14813. CA_STATE_OFFMESH,
  14814. };
  14815. enum CrowdAgentTargetState
  14816. {
  14817. CA_TARGET_NONE,
  14818. CA_TARGET_FAILED,
  14819. CA_TARGET_VALID,
  14820. CA_TARGET_REQUESTING,
  14821. CA_TARGET_WAITINGFORQUEUE,
  14822. CA_TARGET_WAITINGFORPATH,
  14823. CA_TARGET_VELOCITY,
  14824. };
  14825. enum CubeMapFace
  14826. {
  14827. FACE_POSITIVE_X,
  14828. FACE_NEGATIVE_X,
  14829. FACE_POSITIVE_Y,
  14830. FACE_NEGATIVE_Y,
  14831. FACE_POSITIVE_Z,
  14832. FACE_NEGATIVE_Z,
  14833. };
  14834. enum CullMode
  14835. {
  14836. CULL_NONE,
  14837. CULL_CCW,
  14838. CULL_CW,
  14839. };
  14840. enum CursorShape
  14841. {
  14842. CS_NORMAL,
  14843. CS_IBEAM,
  14844. CS_CROSS,
  14845. CS_RESIZEVERTICAL,
  14846. CS_RESIZEDIAGONAL_TOPRIGHT,
  14847. CS_RESIZEHORIZONTAL,
  14848. CS_RESIZEDIAGONAL_TOPLEFT,
  14849. CS_RESIZE_ALL,
  14850. CS_ACCEPTDROP,
  14851. CS_REJECTDROP,
  14852. CS_BUSY,
  14853. CS_BUSY_ARROW,
  14854. };
  14855. enum DBAPI
  14856. {
  14857. DBAPI_SQLITE,
  14858. DBAPI_ODBC,
  14859. };
  14860. enum DumpMode
  14861. {
  14862. DOXYGEN,
  14863. C_HEADER,
  14864. };
  14865. enum EmitterType
  14866. {
  14867. EMITTER_SPHERE,
  14868. EMITTER_BOX,
  14869. };
  14870. enum EmitterType2D
  14871. {
  14872. EMITTER_TYPE_GRAVITY,
  14873. EMITTER_TYPE_RADIAL,
  14874. };
  14875. enum FaceCameraMode
  14876. {
  14877. FC_NONE,
  14878. FC_ROTATE_XYZ,
  14879. FC_ROTATE_Y,
  14880. FC_LOOKAT_XYZ,
  14881. FC_LOOKAT_Y,
  14882. FC_LOOKAT_MIXED,
  14883. FC_DIRECTION,
  14884. };
  14885. enum FileMode
  14886. {
  14887. FILE_READ,
  14888. FILE_WRITE,
  14889. FILE_READWRITE,
  14890. };
  14891. enum FillMode
  14892. {
  14893. FILL_SOLID,
  14894. FILL_WIREFRAME,
  14895. FILL_POINT,
  14896. };
  14897. enum FocusMode
  14898. {
  14899. FM_NOTFOCUSABLE,
  14900. FM_RESETFOCUS,
  14901. FM_FOCUSABLE,
  14902. FM_FOCUSABLE_DEFOCUSABLE,
  14903. };
  14904. enum FontType
  14905. {
  14906. FONT_NONE,
  14907. FONT_FREETYPE,
  14908. FONT_BITMAP,
  14909. };
  14910. enum HighlightMode
  14911. {
  14912. HM_NEVER,
  14913. HM_FOCUS,
  14914. HM_ALWAYS,
  14915. };
  14916. enum HorizontalAlignment
  14917. {
  14918. HA_LEFT,
  14919. HA_CENTER,
  14920. HA_RIGHT,
  14921. HA_CUSTOM,
  14922. };
  14923. enum HttpRequestState
  14924. {
  14925. HTTP_INITIALIZING,
  14926. HTTP_ERROR,
  14927. HTTP_OPEN,
  14928. HTTP_CLOSED,
  14929. };
  14930. enum IKAlgorithm
  14931. {
  14932. FABRIK,
  14933. };
  14934. enum InterpMethod
  14935. {
  14936. IM_NONE,
  14937. IM_LINEAR,
  14938. IM_SPLINE,
  14939. };
  14940. enum InterpolationMode
  14941. {
  14942. BEZIER_CURVE,
  14943. CATMULL_ROM_CURVE,
  14944. LINEAR_CURVE,
  14945. CATMULL_ROM_FULL_CURVE,
  14946. };
  14947. enum Intersection
  14948. {
  14949. OUTSIDE,
  14950. INTERSECTS,
  14951. INSIDE,
  14952. };
  14953. enum JSONNumberType
  14954. {
  14955. JSONNT_NAN,
  14956. JSONNT_INT,
  14957. JSONNT_UINT,
  14958. JSONNT_FLOAT_DOUBLE,
  14959. };
  14960. enum JSONValueType
  14961. {
  14962. JSON_NULL,
  14963. JSON_BOOL,
  14964. JSON_NUMBER,
  14965. JSON_STRING,
  14966. JSON_ARRAY,
  14967. JSON_OBJECT,
  14968. };
  14969. enum LayoutMode
  14970. {
  14971. LM_FREE,
  14972. LM_HORIZONTAL,
  14973. LM_VERTICAL,
  14974. };
  14975. enum LightType
  14976. {
  14977. LIGHT_DIRECTIONAL,
  14978. LIGHT_SPOT,
  14979. LIGHT_POINT,
  14980. };
  14981. enum LoadMode
  14982. {
  14983. LOAD_RESOURCES_ONLY,
  14984. LOAD_SCENE,
  14985. LOAD_SCENE_AND_RESOURCES,
  14986. };
  14987. enum LoopMode2D
  14988. {
  14989. LM_DEFAULT,
  14990. LM_FORCE_LOOPED,
  14991. LM_FORCE_CLAMPED,
  14992. };
  14993. enum MouseMode
  14994. {
  14995. MM_ABSOLUTE,
  14996. MM_RELATIVE,
  14997. MM_WRAP,
  14998. MM_FREE,
  14999. };
  15000. enum NavigationPushiness
  15001. {
  15002. NAVIGATIONPUSHINESS_LOW,
  15003. NAVIGATIONPUSHINESS_MEDIUM,
  15004. NAVIGATIONPUSHINESS_HIGH,
  15005. NAVIGATIONPUSHINESS_NONE,
  15006. };
  15007. enum NavigationQuality
  15008. {
  15009. NAVIGATIONQUALITY_LOW,
  15010. NAVIGATIONQUALITY_MEDIUM,
  15011. NAVIGATIONQUALITY_HIGH,
  15012. };
  15013. enum NavmeshPartitionType
  15014. {
  15015. NAVMESH_PARTITION_WATERSHED,
  15016. NAVMESH_PARTITION_MONOTONE,
  15017. };
  15018. enum Orientation
  15019. {
  15020. O_HORIZONTAL,
  15021. O_VERTICAL,
  15022. };
  15023. enum Orientation2D
  15024. {
  15025. O_ORTHOGONAL,
  15026. O_ISOMETRIC,
  15027. O_STAGGERED,
  15028. O_HEXAGONAL,
  15029. };
  15030. enum PassLightingMode
  15031. {
  15032. LIGHTING_UNLIT,
  15033. LIGHTING_PERVERTEX,
  15034. LIGHTING_PERPIXEL,
  15035. };
  15036. enum PrimitiveType
  15037. {
  15038. TRIANGLE_LIST,
  15039. LINE_LIST,
  15040. POINT_LIST,
  15041. TRIANGLE_STRIP,
  15042. LINE_STRIP,
  15043. TRIANGLE_FAN,
  15044. };
  15045. enum RayQueryLevel
  15046. {
  15047. RAY_AABB,
  15048. RAY_OBB,
  15049. RAY_TRIANGLE,
  15050. RAY_TRIANGLE_UV,
  15051. };
  15052. enum RenderCommandSortMode
  15053. {
  15054. SORT_FRONTTOBACK,
  15055. SORT_BACKTOFRONT,
  15056. };
  15057. enum RenderCommandType
  15058. {
  15059. CMD_NONE,
  15060. CMD_CLEAR,
  15061. CMD_SCENEPASS,
  15062. CMD_QUAD,
  15063. CMD_FORWARDLIGHTS,
  15064. CMD_LIGHTVOLUMES,
  15065. CMD_RENDERUI,
  15066. CMD_SENDEVENT,
  15067. };
  15068. enum RenderSurfaceUpdateMode
  15069. {
  15070. SURFACE_MANUALUPDATE,
  15071. SURFACE_UPDATEVISIBLE,
  15072. SURFACE_UPDATEALWAYS,
  15073. };
  15074. enum RenderTargetSizeMode
  15075. {
  15076. SIZE_ABSOLUTE,
  15077. SIZE_VIEWPORTDIVISOR,
  15078. SIZE_VIEWPORTMULTIPLIER,
  15079. };
  15080. enum ShadowQuality
  15081. {
  15082. SHADOWQUALITY_SIMPLE_16BIT,
  15083. SHADOWQUALITY_SIMPLE_24BIT,
  15084. SHADOWQUALITY_PCF_16BIT,
  15085. SHADOWQUALITY_PCF_24BIT,
  15086. SHADOWQUALITY_VSM,
  15087. SHADOWQUALITY_BLUR_VSM,
  15088. };
  15089. enum ShapeType
  15090. {
  15091. SHAPE_BOX,
  15092. SHAPE_SPHERE,
  15093. SHAPE_STATICPLANE,
  15094. SHAPE_CYLINDER,
  15095. SHAPE_CAPSULE,
  15096. SHAPE_CONE,
  15097. SHAPE_TRIANGLEMESH,
  15098. SHAPE_CONVEXHULL,
  15099. SHAPE_TERRAIN,
  15100. };
  15101. enum TextEffect
  15102. {
  15103. TE_NONE,
  15104. TE_SHADOW,
  15105. TE_STROKE,
  15106. };
  15107. enum TextureAddressMode
  15108. {
  15109. ADDRESS_WRAP,
  15110. ADDRESS_MIRROR,
  15111. ADDRESS_CLAMP,
  15112. ADDRESS_BORDER,
  15113. };
  15114. enum TextureCoordinate
  15115. {
  15116. COORD_U,
  15117. COORD_V,
  15118. COORD_W,
  15119. };
  15120. enum TextureFilterMode
  15121. {
  15122. FILTER_NEAREST,
  15123. FILTER_BILINEAR,
  15124. FILTER_TRILINEAR,
  15125. FILTER_ANISOTROPIC,
  15126. FILTER_NEAREST_ANISOTROPIC,
  15127. FILTER_DEFAULT,
  15128. };
  15129. enum TextureUnit
  15130. {
  15131. TU_DIFFUSE,
  15132. TU_ALBEDOBUFFER,
  15133. TU_NORMAL,
  15134. TU_NORMALBUFFER,
  15135. TU_SPECULAR,
  15136. TU_EMISSIVE,
  15137. TU_ENVIRONMENT,
  15138. TU_LIGHTRAMP,
  15139. TU_LIGHTSHAPE,
  15140. TU_SHADOWMAP,
  15141. TU_CUSTOM1,
  15142. TU_CUSTOM2,
  15143. TU_VOLUMEMAP,
  15144. TU_FACESELECT,
  15145. TU_INDIRECTION,
  15146. TU_DEPTHBUFFER,
  15147. TU_LIGHTBUFFER,
  15148. TU_ZONE,
  15149. MAX_MATERIAL_TEXTURE_UNITS,
  15150. MAX_TEXTURE_UNITS,
  15151. };
  15152. enum TextureUsage
  15153. {
  15154. TEXTURE_STATIC,
  15155. TEXTURE_DYNAMIC,
  15156. TEXTURE_RENDERTARGET,
  15157. TEXTURE_DEPTHSTENCIL,
  15158. };
  15159. enum TileMapLayerType2D
  15160. {
  15161. LT_TILE_LAYER,
  15162. LT_OBJECT_GROUP,
  15163. LT_IMAGE_LAYER,
  15164. LT_INVALID,
  15165. };
  15166. enum TileObjectType2D
  15167. {
  15168. OT_RECTANGLE,
  15169. OT_ELLIPSE,
  15170. OT_POLYGON,
  15171. OT_POLYLINE,
  15172. OT_TILE,
  15173. OT_INVALID,
  15174. };
  15175. enum TrailType
  15176. {
  15177. TT_FACE_CAMERA,
  15178. TT_BONE,
  15179. };
  15180. enum TransformSpace
  15181. {
  15182. TS_LOCAL,
  15183. TS_PARENT,
  15184. TS_WORLD,
  15185. };
  15186. enum TraversalMode
  15187. {
  15188. TM_BREADTH_FIRST,
  15189. TM_DEPTH_FIRST,
  15190. };
  15191. enum VariantType
  15192. {
  15193. VAR_NONE,
  15194. VAR_INT,
  15195. VAR_BOOL,
  15196. VAR_FLOAT,
  15197. VAR_VECTOR2,
  15198. VAR_VECTOR3,
  15199. VAR_VECTOR4,
  15200. VAR_QUATERNION,
  15201. VAR_COLOR,
  15202. VAR_STRING,
  15203. VAR_BUFFER,
  15204. VAR_VOIDPTR,
  15205. VAR_RESOURCEREF,
  15206. VAR_RESOURCEREFLIST,
  15207. VAR_VARIANTVECTOR,
  15208. VAR_VARIANTMAP,
  15209. VAR_INTRECT,
  15210. VAR_INTVECTOR2,
  15211. VAR_INTVECTOR3,
  15212. VAR_PTR,
  15213. VAR_MATRIX3,
  15214. VAR_MATRIX3X4,
  15215. VAR_MATRIX4,
  15216. VAR_DOUBLE,
  15217. VAR_STRINGVECTOR,
  15218. VAR_RECT,
  15219. };
  15220. enum VertexElementSemantic
  15221. {
  15222. SEM_POSITION,
  15223. SEM_NORMAL,
  15224. SEM_BINORMAL,
  15225. SEM_TANGENT,
  15226. SEM_TEXCOORD,
  15227. SEM_COLOR,
  15228. SEM_BLENDWEIGHTS,
  15229. SEM_BLENDINDICES,
  15230. SEM_OBJECTINDEX,
  15231. MAX_VERTEX_ELEMENT_SEMANTICS,
  15232. };
  15233. enum VertexElementType
  15234. {
  15235. TYPE_INT,
  15236. TYPE_FLOAT,
  15237. TYPE_VECTOR2,
  15238. TYPE_VECTOR3,
  15239. TYPE_VECTOR4,
  15240. TYPE_UBYTE4,
  15241. TYPE_UBYTE4_NORM,
  15242. MAX_VERTEX_ELEMENT_TYPES,
  15243. };
  15244. enum VerticalAlignment
  15245. {
  15246. VA_TOP,
  15247. VA_CENTER,
  15248. VA_BOTTOM,
  15249. VA_CUSTOM,
  15250. };
  15251. enum WrapMode
  15252. {
  15253. WM_LOOP,
  15254. WM_ONCE,
  15255. WM_CLAMP,
  15256. };
  15257. // Global functions
  15258. float Abs(float);
  15259. float Acos(float);
  15260. String AddTrailingSlash(const String&);
  15261. float Asin(float);
  15262. float Atan(float);
  15263. float Atan2(float, float);
  15264. float Ceil(float);
  15265. int CeilToInt(float);
  15266. float Clamp(float, float, float);
  15267. int Clamp(int, int, int);
  15268. void ClearDelayedExecute(const String& = String ( ));
  15269. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  15270. float Cos(float);
  15271. uint CountSetBits(uint);
  15272. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  15273. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  15274. bool Equals(float, float);
  15275. void ErrorDialog(const String&, const String&);
  15276. float Floor(float);
  15277. int FloorToInt(float);
  15278. float Fract(float);
  15279. uint GetAlphaFormat();
  15280. Array<String> GetArguments();
  15281. String GetConsoleInput();
  15282. uint GetDepthStencilFormat();
  15283. Object GetEventSender();
  15284. String GetExtension(const String&, bool = true);
  15285. String GetFileName(const String&);
  15286. String GetFileNameAndExtension(const String&, bool = false);
  15287. String GetFileSizeString(uint64);
  15288. uint GetFloat16Format();
  15289. uint GetFloat32Format();
  15290. uint GetFormat(const String&);
  15291. Variant GetGlobalVar(const String&);
  15292. String GetInternalPath(const String&);
  15293. uint GetLinearDepthFormat();
  15294. uint GetLuminanceAlphaFormat();
  15295. uint GetLuminanceFormat();
  15296. uint GetMaxBones();
  15297. String GetMiniDumpDir();
  15298. uint GetNumLogicalCPUs();
  15299. uint GetNumPhysicalCPUs();
  15300. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  15301. Array<String> GetObjectCategories();
  15302. Array<String> GetObjectsByCategory(const String&);
  15303. String GetParentPath(const String&);
  15304. String GetPath(const String&);
  15305. String GetPlatform();
  15306. uint GetRG16Format();
  15307. uint GetRGBA16Format();
  15308. uint GetRGBAFloat16Format();
  15309. uint GetRGBAFloat32Format();
  15310. uint GetRGBAFormat();
  15311. uint GetRGBFormat();
  15312. uint GetRGFloat16Format();
  15313. uint GetRGFloat32Format();
  15314. uint GetRandomSeed();
  15315. uint GetReadableDepthFormat();
  15316. String GetTextureUnitName(TextureUnit);
  15317. VariantType GetVariantTypeFromName(const String&);
  15318. String GetVariantTypeName(VariantType);
  15319. bool HasSubscribedToEvent(Object, const String&);
  15320. bool HasSubscribedToEvent(const String&);
  15321. float InverseLerp(float, float, float);
  15322. bool IsAbsolutePath(const String&);
  15323. bool IsAlpha(uint);
  15324. bool IsDigit(uint);
  15325. bool IsNaN(float);
  15326. bool IsPowerOfTwo(uint);
  15327. String Join(Array<String>&, const String&);
  15328. float Lerp(float, float, float);
  15329. float Ln(float);
  15330. void MarkNetworkUpdate();
  15331. float Max(float, float);
  15332. int Max(int, int);
  15333. float Min(float, float);
  15334. int Min(int, int);
  15335. float Mod(float, float);
  15336. uint NextPowerOfTwo(uint);
  15337. void OpenConsoleWindow();
  15338. float Pow(float, float);
  15339. void Print(bool, bool = false);
  15340. void Print(const String&, bool = false);
  15341. void Print(const Variant&, bool = false);
  15342. void Print(float, bool = false);
  15343. void Print(int, bool = false);
  15344. void Print(uint, bool = false);
  15345. void PrintCallStack(bool = false);
  15346. float Random();
  15347. float Random(float);
  15348. float Random(float, float);
  15349. int RandomInt();
  15350. int RandomInt(int);
  15351. int RandomInt(int, int);
  15352. float RandomNormal(float, float);
  15353. void RegisterEventName(const String&);
  15354. void Remove();
  15355. String RemoveTrailingSlash(const String&);
  15356. String ReplaceExtension(const String&, const String&);
  15357. float Round(float);
  15358. int RoundToInt(float);
  15359. uint SDBMHash(uint, uint8);
  15360. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15361. void SetGlobalVar(const String&, Variant&);
  15362. void SetMiniDumpDir(const String&);
  15363. void SetRandomSeed(uint);
  15364. float Sign(float);
  15365. float Sin(float);
  15366. float SmoothStep(float, float, float);
  15367. float Sqrt(float);
  15368. float StableRandom(const Vector2&);
  15369. float StableRandom(const Vector3&);
  15370. float StableRandom(float);
  15371. const String& GetTypeName(StringHash);
  15372. void SubscribeToEvent(Object, const String&, const String&);
  15373. void SubscribeToEvent(const String&, const String&);
  15374. float Tan(float);
  15375. uint ToLower(uint);
  15376. String ToStringHex(int);
  15377. uint ToUpper(uint);
  15378. void UnsubscribeFromAllEvents();
  15379. void UnsubscribeFromAllEventsExcept(Array<String>);
  15380. void UnsubscribeFromEvent(Object, const String&);
  15381. void UnsubscribeFromEvent(const String&);
  15382. void UnsubscribeFromEvents(Object);
  15383. Vector2 VectorCeil(const Vector2&);
  15384. Vector3 VectorCeil(const Vector3&);
  15385. Vector4 VectorCeil(const Vector4&);
  15386. IntVector2 VectorCeilToInt(const Vector2&);
  15387. IntVector3 VectorCeilToInt(const Vector3&);
  15388. Vector2 VectorFloor(const Vector2&);
  15389. Vector3 VectorFloor(const Vector3&);
  15390. Vector4 VectorFloor(const Vector4&);
  15391. IntVector2 VectorFloorToInt(const Vector2&);
  15392. IntVector3 VectorFloorToInt(const Vector3&);
  15393. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  15394. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  15395. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  15396. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  15397. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  15398. Vector2 VectorMax(const Vector2&, const Vector2&);
  15399. Vector3 VectorMax(const Vector3&, const Vector3&);
  15400. Vector4 VectorMax(const Vector4&, const Vector4&);
  15401. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  15402. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  15403. Vector2 VectorMin(const Vector2&, const Vector2&);
  15404. Vector3 VectorMin(const Vector3&, const Vector3&);
  15405. Vector4 VectorMin(const Vector4&, const Vector4&);
  15406. Vector2 VectorRound(const Vector2&);
  15407. Vector3 VectorRound(const Vector3&);
  15408. Vector4 VectorRound(const Vector4&);
  15409. IntVector2 VectorRoundToInt(const Vector2&);
  15410. IntVector3 VectorRoundToInt(const Vector3&);
  15411. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  15412. // Global properties
  15413. DBAPI DBAPI;
  15414. Audio audio;
  15415. ResourceCache cache;
  15416. Console console;
  15417. Database database;
  15418. DebugHud debugHud;
  15419. DebugRenderer debugRenderer;
  15420. Engine engine;
  15421. FileSystem fileSystem;
  15422. VariantMap globalVars;
  15423. Graphics graphics;
  15424. Input input;
  15425. Localization localization;
  15426. Log log;
  15427. Network network;
  15428. Node node;
  15429. Octree octree;
  15430. PhysicsWorld physicsWorld;
  15431. PhysicsWorld2D physicsWorld2D;
  15432. Renderer renderer;
  15433. ResourceCache resourceCache;
  15434. Scene scene;
  15435. Script script;
  15436. ScriptFile scriptFile;
  15437. ScriptInstance self;
  15438. Time time;
  15439. UI ui;
  15440. // Global constants
  15441. uint AM_COMPONENTID;
  15442. uint AM_DEFAULT;
  15443. uint AM_FILE;
  15444. uint AM_FILEREADONLY;
  15445. uint AM_LATESTDATA;
  15446. uint AM_NET;
  15447. uint AM_NODEID;
  15448. uint AM_NODEIDVECTOR;
  15449. uint AM_NOEDIT;
  15450. Color BLACK;
  15451. Color BLUE;
  15452. uint8 CHANNEL_POSITION;
  15453. uint8 CHANNEL_ROTATION;
  15454. uint8 CHANNEL_SCALE;
  15455. uint CLEAR_COLOR;
  15456. uint CLEAR_DEPTH;
  15457. uint CLEAR_STENCIL;
  15458. int CONTROLLER_AXIS_LEFTX;
  15459. int CONTROLLER_AXIS_LEFTY;
  15460. int CONTROLLER_AXIS_RIGHTX;
  15461. int CONTROLLER_AXIS_RIGHTY;
  15462. int CONTROLLER_AXIS_TRIGGERLEFT;
  15463. int CONTROLLER_AXIS_TRIGGERRIGHT;
  15464. int CONTROLLER_BUTTON_A;
  15465. int CONTROLLER_BUTTON_B;
  15466. int CONTROLLER_BUTTON_BACK;
  15467. int CONTROLLER_BUTTON_DPAD_DOWN;
  15468. int CONTROLLER_BUTTON_DPAD_LEFT;
  15469. int CONTROLLER_BUTTON_DPAD_RIGHT;
  15470. int CONTROLLER_BUTTON_DPAD_UP;
  15471. int CONTROLLER_BUTTON_GUIDE;
  15472. int CONTROLLER_BUTTON_LEFTSHOULDER;
  15473. int CONTROLLER_BUTTON_LEFTSTICK;
  15474. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  15475. int CONTROLLER_BUTTON_RIGHTSTICK;
  15476. int CONTROLLER_BUTTON_START;
  15477. int CONTROLLER_BUTTON_X;
  15478. int CONTROLLER_BUTTON_Y;
  15479. Color CYAN;
  15480. uint DD_DISABLED;
  15481. uint DD_SOURCE;
  15482. uint DD_SOURCE_AND_TARGET;
  15483. uint DD_TARGET;
  15484. uint DEBUGHUD_SHOW_ALL;
  15485. uint DEBUGHUD_SHOW_EVENTPROFILER;
  15486. uint DEBUGHUD_SHOW_MEMORY;
  15487. uint DEBUGHUD_SHOW_MODE;
  15488. uint DEBUGHUD_SHOW_NONE;
  15489. uint DEBUGHUD_SHOW_PROFILER;
  15490. uint DEBUGHUD_SHOW_STATS;
  15491. uint DEFAULT_LIGHTMASK;
  15492. uint DEFAULT_VIEWMASK;
  15493. uint DRAWABLE_ANY;
  15494. uint DRAWABLE_GEOMETRY;
  15495. uint DRAWABLE_GEOMETRY2D;
  15496. uint DRAWABLE_LIGHT;
  15497. uint DRAWABLE_ZONE;
  15498. uint FIRST_LOCAL_ID;
  15499. uint FIRST_REPLICATED_ID;
  15500. Color GRAY;
  15501. Color GREEN;
  15502. int HAT_CENTER;
  15503. int HAT_DOWN;
  15504. int HAT_LEFT;
  15505. int HAT_RIGHT;
  15506. int HAT_UP;
  15507. int KEY_0;
  15508. int KEY_1;
  15509. int KEY_2;
  15510. int KEY_3;
  15511. int KEY_4;
  15512. int KEY_5;
  15513. int KEY_6;
  15514. int KEY_7;
  15515. int KEY_8;
  15516. int KEY_9;
  15517. int KEY_A;
  15518. int KEY_ALT;
  15519. int KEY_APPLICATION;
  15520. int KEY_B;
  15521. int KEY_BACKSPACE;
  15522. int KEY_C;
  15523. int KEY_CAPSLOCK;
  15524. int KEY_CTRL;
  15525. int KEY_D;
  15526. int KEY_DELETE;
  15527. int KEY_DOWN;
  15528. int KEY_E;
  15529. int KEY_END;
  15530. int KEY_ESCAPE;
  15531. int KEY_F;
  15532. int KEY_F1;
  15533. int KEY_F10;
  15534. int KEY_F11;
  15535. int KEY_F12;
  15536. int KEY_F13;
  15537. int KEY_F14;
  15538. int KEY_F15;
  15539. int KEY_F16;
  15540. int KEY_F17;
  15541. int KEY_F18;
  15542. int KEY_F19;
  15543. int KEY_F2;
  15544. int KEY_F20;
  15545. int KEY_F21;
  15546. int KEY_F22;
  15547. int KEY_F23;
  15548. int KEY_F24;
  15549. int KEY_F3;
  15550. int KEY_F4;
  15551. int KEY_F5;
  15552. int KEY_F6;
  15553. int KEY_F7;
  15554. int KEY_F8;
  15555. int KEY_F9;
  15556. int KEY_G;
  15557. int KEY_GUI;
  15558. int KEY_H;
  15559. int KEY_HOME;
  15560. int KEY_I;
  15561. int KEY_INSERT;
  15562. int KEY_J;
  15563. int KEY_K;
  15564. int KEY_KP_0;
  15565. int KEY_KP_1;
  15566. int KEY_KP_2;
  15567. int KEY_KP_3;
  15568. int KEY_KP_4;
  15569. int KEY_KP_5;
  15570. int KEY_KP_6;
  15571. int KEY_KP_7;
  15572. int KEY_KP_8;
  15573. int KEY_KP_9;
  15574. int KEY_KP_DIVIDE;
  15575. int KEY_KP_ENTER;
  15576. int KEY_KP_MINUS;
  15577. int KEY_KP_MULTIPLY;
  15578. int KEY_KP_PERIOD;
  15579. int KEY_KP_PLUS;
  15580. int KEY_L;
  15581. int KEY_LALT;
  15582. int KEY_LCTRL;
  15583. int KEY_LEFT;
  15584. int KEY_LGUI;
  15585. int KEY_LSHIFT;
  15586. int KEY_M;
  15587. int KEY_N;
  15588. int KEY_NUMLOCKCLEAR;
  15589. int KEY_O;
  15590. int KEY_P;
  15591. int KEY_PAGEDOWN;
  15592. int KEY_PAGEUP;
  15593. int KEY_PAUSE;
  15594. int KEY_PRINTSCREEN;
  15595. int KEY_Q;
  15596. int KEY_R;
  15597. int KEY_RALT;
  15598. int KEY_RCTRL;
  15599. int KEY_RETURN;
  15600. int KEY_RETURN2;
  15601. int KEY_RGUI;
  15602. int KEY_RIGHT;
  15603. int KEY_RSHIFT;
  15604. int KEY_S;
  15605. int KEY_SCROLLLOCK;
  15606. int KEY_SELECT;
  15607. int KEY_SHIFT;
  15608. int KEY_SPACE;
  15609. int KEY_T;
  15610. int KEY_TAB;
  15611. int KEY_U;
  15612. int KEY_UNKNOWN;
  15613. int KEY_UP;
  15614. int KEY_V;
  15615. int KEY_W;
  15616. int KEY_X;
  15617. int KEY_Y;
  15618. int KEY_Z;
  15619. uint LAST_LOCAL_ID;
  15620. uint LAST_REPLICATED_ID;
  15621. int LOG_DEBUG;
  15622. int LOG_ERROR;
  15623. int LOG_INFO;
  15624. int LOG_NONE;
  15625. int LOG_WARNING;
  15626. Color MAGENTA;
  15627. uint MASK_BLENDINDICES;
  15628. uint MASK_BLENDWEIGHTS;
  15629. uint MASK_COLOR;
  15630. uint MASK_CUBETEXCOORD1;
  15631. uint MASK_CUBETEXCOORD2;
  15632. uint MASK_INSTANCEMATRIX1;
  15633. uint MASK_INSTANCEMATRIX2;
  15634. uint MASK_INSTANCEMATRIX3;
  15635. uint MASK_NONE;
  15636. uint MASK_NORMAL;
  15637. uint MASK_OBJECTINDEX;
  15638. uint MASK_POSITION;
  15639. uint MASK_TANGENT;
  15640. uint MASK_TEXCOORD1;
  15641. uint MASK_TEXCOORD2;
  15642. int MOUSEB_LEFT;
  15643. int MOUSEB_MIDDLE;
  15644. int MOUSEB_RIGHT;
  15645. float M_DEGTORAD;
  15646. float M_DEGTORAD_2;
  15647. float M_EPSILON;
  15648. float M_HALF_PI;
  15649. float M_INFINITY;
  15650. float M_LARGE_EPSILON;
  15651. float M_LARGE_VALUE;
  15652. int M_MAX_INT;
  15653. uint M_MAX_UNSIGNED;
  15654. int M_MIN_INT;
  15655. uint M_MIN_UNSIGNED;
  15656. float M_PI;
  15657. float M_RADTODEG;
  15658. uint NPOS;
  15659. float PIXEL_SIZE;
  15660. int QUALITY_HIGH;
  15661. int QUALITY_LOW;
  15662. int QUALITY_MAX;
  15663. int QUALITY_MEDIUM;
  15664. int QUAL_ALT;
  15665. int QUAL_ANY;
  15666. int QUAL_CTRL;
  15667. int QUAL_SHIFT;
  15668. Color RED;
  15669. int SCANCODE_0;
  15670. int SCANCODE_1;
  15671. int SCANCODE_2;
  15672. int SCANCODE_3;
  15673. int SCANCODE_4;
  15674. int SCANCODE_5;
  15675. int SCANCODE_6;
  15676. int SCANCODE_7;
  15677. int SCANCODE_8;
  15678. int SCANCODE_9;
  15679. int SCANCODE_A;
  15680. int SCANCODE_AC_BACK;
  15681. int SCANCODE_AC_BOOKMARKS;
  15682. int SCANCODE_AC_FORWARD;
  15683. int SCANCODE_AC_HOME;
  15684. int SCANCODE_AC_REFRESH;
  15685. int SCANCODE_AC_SEARCH;
  15686. int SCANCODE_AC_STOP;
  15687. int SCANCODE_AGAIN;
  15688. int SCANCODE_ALT;
  15689. int SCANCODE_ALTERASE;
  15690. int SCANCODE_APOSTROPHE;
  15691. int SCANCODE_APP1;
  15692. int SCANCODE_APP2;
  15693. int SCANCODE_APPLICATION;
  15694. int SCANCODE_AUDIOMUTE;
  15695. int SCANCODE_AUDIONEXT;
  15696. int SCANCODE_AUDIOPLAY;
  15697. int SCANCODE_AUDIOPREV;
  15698. int SCANCODE_AUDIOSTOP;
  15699. int SCANCODE_B;
  15700. int SCANCODE_BACKSLASH;
  15701. int SCANCODE_BACKSPACE;
  15702. int SCANCODE_BRIGHTNESSDOWN;
  15703. int SCANCODE_BRIGHTNESSUP;
  15704. int SCANCODE_C;
  15705. int SCANCODE_CALCULATOR;
  15706. int SCANCODE_CANCEL;
  15707. int SCANCODE_CAPSLOCK;
  15708. int SCANCODE_CLEAR;
  15709. int SCANCODE_CLEARAGAIN;
  15710. int SCANCODE_COMMA;
  15711. int SCANCODE_COMPUTER;
  15712. int SCANCODE_COPY;
  15713. int SCANCODE_CRSEL;
  15714. int SCANCODE_CTRL;
  15715. int SCANCODE_CURRENCYSUBUNIT;
  15716. int SCANCODE_CURRENCYUNIT;
  15717. int SCANCODE_CUT;
  15718. int SCANCODE_D;
  15719. int SCANCODE_DECIMALSEPARATOR;
  15720. int SCANCODE_DELETE;
  15721. int SCANCODE_DISPLAYSWITCH;
  15722. int SCANCODE_DOWN;
  15723. int SCANCODE_E;
  15724. int SCANCODE_EJECT;
  15725. int SCANCODE_END;
  15726. int SCANCODE_EQUALS;
  15727. int SCANCODE_ESCAPE;
  15728. int SCANCODE_EXECUTE;
  15729. int SCANCODE_EXSEL;
  15730. int SCANCODE_F;
  15731. int SCANCODE_F1;
  15732. int SCANCODE_F10;
  15733. int SCANCODE_F11;
  15734. int SCANCODE_F12;
  15735. int SCANCODE_F13;
  15736. int SCANCODE_F14;
  15737. int SCANCODE_F15;
  15738. int SCANCODE_F16;
  15739. int SCANCODE_F17;
  15740. int SCANCODE_F18;
  15741. int SCANCODE_F19;
  15742. int SCANCODE_F2;
  15743. int SCANCODE_F20;
  15744. int SCANCODE_F21;
  15745. int SCANCODE_F22;
  15746. int SCANCODE_F23;
  15747. int SCANCODE_F24;
  15748. int SCANCODE_F3;
  15749. int SCANCODE_F4;
  15750. int SCANCODE_F5;
  15751. int SCANCODE_F6;
  15752. int SCANCODE_F7;
  15753. int SCANCODE_F8;
  15754. int SCANCODE_F9;
  15755. int SCANCODE_FIND;
  15756. int SCANCODE_G;
  15757. int SCANCODE_GRAVE;
  15758. int SCANCODE_GUI;
  15759. int SCANCODE_H;
  15760. int SCANCODE_HELP;
  15761. int SCANCODE_HOME;
  15762. int SCANCODE_I;
  15763. int SCANCODE_INSERT;
  15764. int SCANCODE_INTERNATIONAL1;
  15765. int SCANCODE_INTERNATIONAL2;
  15766. int SCANCODE_INTERNATIONAL3;
  15767. int SCANCODE_INTERNATIONAL4;
  15768. int SCANCODE_INTERNATIONAL5;
  15769. int SCANCODE_INTERNATIONAL6;
  15770. int SCANCODE_INTERNATIONAL7;
  15771. int SCANCODE_INTERNATIONAL8;
  15772. int SCANCODE_INTERNATIONAL9;
  15773. int SCANCODE_J;
  15774. int SCANCODE_K;
  15775. int SCANCODE_KBDILLUMDOWN;
  15776. int SCANCODE_KBDILLUMTOGGLE;
  15777. int SCANCODE_KBDILLUMUP;
  15778. int SCANCODE_KP_0;
  15779. int SCANCODE_KP_00;
  15780. int SCANCODE_KP_000;
  15781. int SCANCODE_KP_1;
  15782. int SCANCODE_KP_2;
  15783. int SCANCODE_KP_3;
  15784. int SCANCODE_KP_4;
  15785. int SCANCODE_KP_5;
  15786. int SCANCODE_KP_6;
  15787. int SCANCODE_KP_7;
  15788. int SCANCODE_KP_8;
  15789. int SCANCODE_KP_9;
  15790. int SCANCODE_KP_A;
  15791. int SCANCODE_KP_AMPERSAND;
  15792. int SCANCODE_KP_AT;
  15793. int SCANCODE_KP_B;
  15794. int SCANCODE_KP_BACKSPACE;
  15795. int SCANCODE_KP_BINARY;
  15796. int SCANCODE_KP_C;
  15797. int SCANCODE_KP_CLEAR;
  15798. int SCANCODE_KP_CLEARENTRY;
  15799. int SCANCODE_KP_COLON;
  15800. int SCANCODE_KP_COMMA;
  15801. int SCANCODE_KP_D;
  15802. int SCANCODE_KP_DBLAMPERSAND;
  15803. int SCANCODE_KP_DBLVERTICALBAR;
  15804. int SCANCODE_KP_DECIMAL;
  15805. int SCANCODE_KP_DIVIDE;
  15806. int SCANCODE_KP_E;
  15807. int SCANCODE_KP_ENTER;
  15808. int SCANCODE_KP_EQUALS;
  15809. int SCANCODE_KP_EQUALSAS400;
  15810. int SCANCODE_KP_EXCLAM;
  15811. int SCANCODE_KP_F;
  15812. int SCANCODE_KP_GREATER;
  15813. int SCANCODE_KP_HASH;
  15814. int SCANCODE_KP_HEXADECIMAL;
  15815. int SCANCODE_KP_LEFTBRACE;
  15816. int SCANCODE_KP_LEFTPAREN;
  15817. int SCANCODE_KP_LESS;
  15818. int SCANCODE_KP_MEMADD;
  15819. int SCANCODE_KP_MEMCLEAR;
  15820. int SCANCODE_KP_MEMDIVIDE;
  15821. int SCANCODE_KP_MEMMULTIPLY;
  15822. int SCANCODE_KP_MEMRECALL;
  15823. int SCANCODE_KP_MEMSTORE;
  15824. int SCANCODE_KP_MEMSUBTRACT;
  15825. int SCANCODE_KP_MINUS;
  15826. int SCANCODE_KP_MULTIPLY;
  15827. int SCANCODE_KP_OCTAL;
  15828. int SCANCODE_KP_PERCENT;
  15829. int SCANCODE_KP_PERIOD;
  15830. int SCANCODE_KP_PLUS;
  15831. int SCANCODE_KP_PLUSMINUS;
  15832. int SCANCODE_KP_POWER;
  15833. int SCANCODE_KP_RIGHTBRACE;
  15834. int SCANCODE_KP_RIGHTPAREN;
  15835. int SCANCODE_KP_SPACE;
  15836. int SCANCODE_KP_TAB;
  15837. int SCANCODE_KP_VERTICALBAR;
  15838. int SCANCODE_KP_XOR;
  15839. int SCANCODE_L;
  15840. int SCANCODE_LALT;
  15841. int SCANCODE_LANG1;
  15842. int SCANCODE_LANG2;
  15843. int SCANCODE_LANG3;
  15844. int SCANCODE_LANG4;
  15845. int SCANCODE_LANG5;
  15846. int SCANCODE_LANG6;
  15847. int SCANCODE_LANG7;
  15848. int SCANCODE_LANG8;
  15849. int SCANCODE_LANG9;
  15850. int SCANCODE_LCTRL;
  15851. int SCANCODE_LEFT;
  15852. int SCANCODE_LEFTBRACKET;
  15853. int SCANCODE_LGUI;
  15854. int SCANCODE_LSHIFT;
  15855. int SCANCODE_M;
  15856. int SCANCODE_MAIL;
  15857. int SCANCODE_MEDIASELECT;
  15858. int SCANCODE_MENU;
  15859. int SCANCODE_MINUS;
  15860. int SCANCODE_MODE;
  15861. int SCANCODE_MUTE;
  15862. int SCANCODE_N;
  15863. int SCANCODE_NONUSBACKSLASH;
  15864. int SCANCODE_NONUSHASH;
  15865. int SCANCODE_NUMLOCKCLEAR;
  15866. int SCANCODE_O;
  15867. int SCANCODE_OPER;
  15868. int SCANCODE_OUT;
  15869. int SCANCODE_P;
  15870. int SCANCODE_PAGEDOWN;
  15871. int SCANCODE_PAGEUP;
  15872. int SCANCODE_PASTE;
  15873. int SCANCODE_PAUSE;
  15874. int SCANCODE_PERIOD;
  15875. int SCANCODE_POWER;
  15876. int SCANCODE_PRINTSCREEN;
  15877. int SCANCODE_PRIOR;
  15878. int SCANCODE_Q;
  15879. int SCANCODE_R;
  15880. int SCANCODE_RALT;
  15881. int SCANCODE_RCTRL;
  15882. int SCANCODE_RETURN;
  15883. int SCANCODE_RETURN2;
  15884. int SCANCODE_RGUI;
  15885. int SCANCODE_RIGHT;
  15886. int SCANCODE_RIGHTBRACKET;
  15887. int SCANCODE_RSHIFT;
  15888. int SCANCODE_S;
  15889. int SCANCODE_SCROLLLOCK;
  15890. int SCANCODE_SELECT;
  15891. int SCANCODE_SEMICOLON;
  15892. int SCANCODE_SEPARATOR;
  15893. int SCANCODE_SHIFT;
  15894. int SCANCODE_SLASH;
  15895. int SCANCODE_SLEEP;
  15896. int SCANCODE_SPACE;
  15897. int SCANCODE_STOP;
  15898. int SCANCODE_SYSREQ;
  15899. int SCANCODE_T;
  15900. int SCANCODE_TAB;
  15901. int SCANCODE_THOUSANDSSEPARATOR;
  15902. int SCANCODE_U;
  15903. int SCANCODE_UNDO;
  15904. int SCANCODE_UNKNOWN;
  15905. int SCANCODE_UP;
  15906. int SCANCODE_V;
  15907. int SCANCODE_VOLUMEDOWN;
  15908. int SCANCODE_VOLUMEUP;
  15909. int SCANCODE_W;
  15910. int SCANCODE_WWW;
  15911. int SCANCODE_X;
  15912. int SCANCODE_Y;
  15913. int SCANCODE_Z;
  15914. uint SCAN_DIRS;
  15915. uint SCAN_FILES;
  15916. uint SCAN_HIDDEN;
  15917. String SOUND_AMBIENT;
  15918. String SOUND_EFFECT;
  15919. String SOUND_MASTER;
  15920. String SOUND_MUSIC;
  15921. String SOUND_VOICE;
  15922. Color TRANSPARENT;
  15923. uint VO_DISABLE_OCCLUSION;
  15924. uint VO_DISABLE_SHADOWS;
  15925. uint VO_LOW_MATERIAL_QUALITY;
  15926. uint VO_NONE;
  15927. Color WHITE;
  15928. Color YELLOW;