AngelScriptAPI.h 368 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835
  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. // Classes
  10. class Animatable
  11. {
  12. // Methods:
  13. void ApplyAttributes();
  14. Variant GetAttribute(const String&) const;
  15. ValueAnimation GetAttributeAnimation(const String&) const;
  16. float GetAttributeAnimationSpeed(const String&) const;
  17. float GetAttributeAnimationTime(const String&) const;
  18. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19. Variant GetAttributeDefault(const String&) const;
  20. bool GetInterceptNetworkUpdate(const String&) const;
  21. bool HasSubscribedToEvent(Object, const String&);
  22. bool HasSubscribedToEvent(const String&);
  23. bool Load(File, bool = false);
  24. bool Load(VectorBuffer&, bool = false);
  25. bool LoadJSON(const JSONValue&, bool = false);
  26. bool LoadXML(const XMLElement&, bool = false);
  27. void MarkNetworkUpdate() const;
  28. void RemoveAttributeAnimation(const String&);
  29. void RemoveInstanceDefault();
  30. void RemoveObjectAnimation();
  31. void ResetToDefault();
  32. bool Save(File) const;
  33. bool Save(VectorBuffer&) const;
  34. bool SaveJSON(JSONValue&) const;
  35. bool SaveXML(XMLElement&) const;
  36. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  37. void SetAnimationTime(float);
  38. bool SetAttribute(const String&, const Variant&);
  39. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  40. void SetAttributeAnimationSpeed(const String&, float);
  41. void SetAttributeAnimationTime(const String&, float);
  42. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  43. void SetInterceptNetworkUpdate(const String&, bool);
  44. // Properties:
  45. bool animationEnabled;
  46. /* readonly */
  47. Array<Variant> attributeDefaults;
  48. /* readonly */
  49. Array<AttributeInfo> attributeInfos;
  50. Array<Variant> attributes;
  51. /* readonly */
  52. String category;
  53. /* readonly */
  54. uint numAttributes;
  55. ObjectAnimation objectAnimation;
  56. /* readonly */
  57. int refs;
  58. bool temporary;
  59. /* readonly */
  60. StringHash type;
  61. /* readonly */
  62. String typeName;
  63. /* readonly */
  64. int weakRefs;
  65. };
  66. class AnimatedModel
  67. {
  68. // Methods:
  69. AnimationState AddAnimationState(Animation);
  70. void ApplyAttributes();
  71. void ApplyMaterialList(const String& = String ( ));
  72. void DrawDebugGeometry(DebugRenderer, bool);
  73. AnimationState GetAnimationState(Animation) const;
  74. AnimationState GetAnimationState(uint) const;
  75. Variant GetAttribute(const String&) const;
  76. ValueAnimation GetAttributeAnimation(const String&) const;
  77. float GetAttributeAnimationSpeed(const String&) const;
  78. float GetAttributeAnimationTime(const String&) const;
  79. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  80. Variant GetAttributeDefault(const String&) const;
  81. bool GetInterceptNetworkUpdate(const String&) const;
  82. float GetMorphWeight(uint) const;
  83. bool HasSubscribedToEvent(Object, const String&);
  84. bool HasSubscribedToEvent(const String&);
  85. bool IsInView(Camera) const;
  86. bool Load(File, bool = false);
  87. bool Load(VectorBuffer&, bool = false);
  88. bool LoadJSON(const JSONValue&, bool = false);
  89. bool LoadXML(const XMLElement&, bool = false);
  90. void MarkNetworkUpdate() const;
  91. void Remove();
  92. void RemoveAllAnimationStates();
  93. void RemoveAnimationState(Animation);
  94. void RemoveAnimationState(AnimationState);
  95. void RemoveAnimationState(const String&);
  96. void RemoveAnimationState(uint);
  97. void RemoveAttributeAnimation(const String&);
  98. void RemoveInstanceDefault();
  99. void RemoveObjectAnimation();
  100. void ResetMorphWeights();
  101. void ResetToDefault();
  102. bool Save(File) const;
  103. bool Save(VectorBuffer&) const;
  104. bool SaveJSON(JSONValue&) const;
  105. bool SaveXML(XMLElement&) const;
  106. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  107. void SetAnimationTime(float);
  108. bool SetAttribute(const String&, const Variant&);
  109. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  110. void SetAttributeAnimationSpeed(const String&, float);
  111. void SetAttributeAnimationTime(const String&, float);
  112. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  113. void SetInterceptNetworkUpdate(const String&, bool);
  114. void SetMorphWeight(uint, float);
  115. void UpdateBoneBoundingBox();
  116. // Properties:
  117. bool animationEnabled;
  118. float animationLodBias;
  119. /* readonly */
  120. Array<AnimationState> animationStates;
  121. /* readonly */
  122. Array<Variant> attributeDefaults;
  123. /* readonly */
  124. Array<AttributeInfo> attributeInfos;
  125. Array<Variant> attributes;
  126. /* readonly */
  127. BoundingBox boundingBox;
  128. bool castShadows;
  129. /* readonly */
  130. String category;
  131. float drawDistance;
  132. bool enabled;
  133. /* readonly */
  134. bool enabledEffective;
  135. /* readonly */
  136. uint id;
  137. /* readonly */
  138. bool inView;
  139. uint lightMask;
  140. float lodBias;
  141. /* writeonly */
  142. Material material;
  143. Array<Material> materials;
  144. uint maxLights;
  145. Model model;
  146. /* readonly */
  147. Array<String> morphNames;
  148. Array<float> morphWeights;
  149. /* readonly */
  150. Node node;
  151. /* readonly */
  152. uint numAnimationStates;
  153. /* readonly */
  154. uint numAttributes;
  155. /* readonly */
  156. uint numGeometries;
  157. /* readonly */
  158. uint numMorphs;
  159. ObjectAnimation objectAnimation;
  160. bool occludee;
  161. bool occluder;
  162. /* readonly */
  163. int refs;
  164. float shadowDistance;
  165. uint shadowMask;
  166. /* readonly */
  167. Skeleton skeleton;
  168. bool temporary;
  169. /* readonly */
  170. StringHash type;
  171. /* readonly */
  172. String typeName;
  173. bool updateInvisible;
  174. uint viewMask;
  175. /* readonly */
  176. int weakRefs;
  177. /* readonly */
  178. BoundingBox worldBoundingBox;
  179. /* readonly */
  180. Zone zone;
  181. uint zoneMask;
  182. };
  183. class AnimatedSprite2D
  184. {
  185. // Methods:
  186. void ApplyAttributes();
  187. void DrawDebugGeometry(DebugRenderer, bool);
  188. Variant GetAttribute(const String&) const;
  189. ValueAnimation GetAttributeAnimation(const String&) const;
  190. float GetAttributeAnimationSpeed(const String&) const;
  191. float GetAttributeAnimationTime(const String&) const;
  192. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  193. Variant GetAttributeDefault(const String&) const;
  194. bool GetInterceptNetworkUpdate(const String&) const;
  195. bool HasSubscribedToEvent(Object, const String&);
  196. bool HasSubscribedToEvent(const String&);
  197. bool IsInView(Camera) const;
  198. bool Load(File, bool = false);
  199. bool Load(VectorBuffer&, bool = false);
  200. bool LoadJSON(const JSONValue&, bool = false);
  201. bool LoadXML(const XMLElement&, bool = false);
  202. void MarkNetworkUpdate() const;
  203. void Remove();
  204. void RemoveAttributeAnimation(const String&);
  205. void RemoveInstanceDefault();
  206. void RemoveObjectAnimation();
  207. void ResetToDefault();
  208. bool Save(File) const;
  209. bool Save(VectorBuffer&) const;
  210. bool SaveJSON(JSONValue&) const;
  211. bool SaveXML(XMLElement&) const;
  212. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  213. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  214. void SetAnimationTime(float);
  215. bool SetAttribute(const String&, const Variant&);
  216. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  217. void SetAttributeAnimationSpeed(const String&, float);
  218. void SetAttributeAnimationTime(const String&, float);
  219. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  220. void SetFlip(bool, bool);
  221. void SetInterceptNetworkUpdate(const String&, bool);
  222. // Properties:
  223. float alpha;
  224. String animation;
  225. bool animationEnabled;
  226. AnimationSet2D animationSet;
  227. /* readonly */
  228. Array<Variant> attributeDefaults;
  229. /* readonly */
  230. Array<AttributeInfo> attributeInfos;
  231. Array<Variant> attributes;
  232. BlendMode blendMode;
  233. /* readonly */
  234. BoundingBox boundingBox;
  235. bool castShadows;
  236. /* readonly */
  237. String category;
  238. Color color;
  239. Material customMaterial;
  240. float drawDistance;
  241. bool enabled;
  242. /* readonly */
  243. bool enabledEffective;
  244. String entity;
  245. bool flipX;
  246. bool flipY;
  247. Vector2 hotSpot;
  248. /* readonly */
  249. uint id;
  250. /* readonly */
  251. bool inView;
  252. int layer;
  253. uint lightMask;
  254. float lodBias;
  255. LoopMode2D loopMode;
  256. uint maxLights;
  257. /* readonly */
  258. Node node;
  259. /* readonly */
  260. uint numAttributes;
  261. ObjectAnimation objectAnimation;
  262. bool occludee;
  263. bool occluder;
  264. int orderInLayer;
  265. /* readonly */
  266. int refs;
  267. float shadowDistance;
  268. uint shadowMask;
  269. float speed;
  270. Sprite2D sprite;
  271. bool temporary;
  272. /* readonly */
  273. StringHash type;
  274. /* readonly */
  275. String typeName;
  276. bool useHotSpot;
  277. uint viewMask;
  278. /* readonly */
  279. int weakRefs;
  280. /* readonly */
  281. BoundingBox worldBoundingBox;
  282. uint zoneMask;
  283. };
  284. class Animation
  285. {
  286. // Methods:
  287. void AddTrigger(const AnimationTriggerPoint&);
  288. void AddTrigger(float, bool, const Variant&);
  289. AnimationTrack CreateTrack(const String&);
  290. bool HasSubscribedToEvent(Object, const String&);
  291. bool HasSubscribedToEvent(const String&);
  292. bool Load(File);
  293. bool Load(VectorBuffer&);
  294. bool RemoveAllTracks();
  295. void RemoveAllTriggers();
  296. bool RemoveTrack(const String&);
  297. void RemoveTrigger(uint);
  298. bool Save(File) const;
  299. bool Save(VectorBuffer&) const;
  300. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  301. // Properties:
  302. String animationName;
  303. /* readonly */
  304. String category;
  305. float length;
  306. /* readonly */
  307. uint memoryUse;
  308. String name;
  309. /* readonly */
  310. uint numTracks;
  311. uint numTriggers;
  312. /* readonly */
  313. int refs;
  314. /* readonly */
  315. Array<AnimationTrack> tracks;
  316. Array<AnimationTriggerPoint> triggers;
  317. /* readonly */
  318. StringHash type;
  319. /* readonly */
  320. String typeName;
  321. /* readonly */
  322. uint useTimer;
  323. /* readonly */
  324. int weakRefs;
  325. };
  326. class AnimationController
  327. {
  328. // Methods:
  329. void ApplyAttributes();
  330. void DrawDebugGeometry(DebugRenderer, bool);
  331. bool Fade(const String&, float, float);
  332. bool FadeOthers(const String&, float, float);
  333. AnimationState GetAnimationState(StringHash) const;
  334. AnimationState GetAnimationState(const String&) const;
  335. Variant GetAttribute(const String&) const;
  336. ValueAnimation GetAttributeAnimation(const String&) const;
  337. float GetAttributeAnimationSpeed(const String&) const;
  338. float GetAttributeAnimationTime(const String&) const;
  339. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  340. Variant GetAttributeDefault(const String&) const;
  341. float GetAutoFade(const String&) const;
  342. AnimationBlendMode GetBlendMode(const String&) const;
  343. float GetFadeTarget(const String&) const;
  344. float GetFadeTime(const String&) const;
  345. bool GetInterceptNetworkUpdate(const String&) const;
  346. uint8 GetLayer(const String&) const;
  347. float GetLength(const String&) const;
  348. bool GetLooped(const String&) const;
  349. bool GetRemoveOnCompletion(const String&);
  350. float GetSpeed(const String&) const;
  351. float GetTime(const String&) const;
  352. float GetWeight(const String&) const;
  353. bool HasSubscribedToEvent(Object, const String&);
  354. bool HasSubscribedToEvent(const String&);
  355. bool IsAtEnd(const String&) const;
  356. bool IsFadingIn(const String&) const;
  357. bool IsFadingOut(const String&) const;
  358. bool IsPlaying(const String&) const;
  359. bool Load(File, bool = false);
  360. bool Load(VectorBuffer&, bool = false);
  361. bool LoadJSON(const JSONValue&, bool = false);
  362. bool LoadXML(const XMLElement&, bool = false);
  363. void MarkNetworkUpdate() const;
  364. bool Play(const String&, uint8, bool, float = 0.0f);
  365. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  366. void Remove();
  367. void RemoveAttributeAnimation(const String&);
  368. void RemoveInstanceDefault();
  369. void RemoveObjectAnimation();
  370. void ResetToDefault();
  371. bool Save(File) const;
  372. bool Save(VectorBuffer&) const;
  373. bool SaveJSON(JSONValue&) const;
  374. bool SaveXML(XMLElement&) const;
  375. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  376. void SetAnimationTime(float);
  377. bool SetAttribute(const String&, const Variant&);
  378. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  379. void SetAttributeAnimationSpeed(const String&, float);
  380. void SetAttributeAnimationTime(const String&, float);
  381. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  382. bool SetAutoFade(const String&, float);
  383. bool SetBlendMode(const String&, AnimationBlendMode);
  384. void SetInterceptNetworkUpdate(const String&, bool);
  385. bool SetLayer(const String&, uint8);
  386. bool SetLooped(const String&, bool);
  387. bool SetRemoveOnCompletion(const String&, bool);
  388. bool SetSpeed(const String&, float);
  389. bool SetStartBone(const String&, const String&);
  390. bool SetTime(const String&, float);
  391. bool SetWeight(const String&, float);
  392. void Stop(const String&, float = 0.0f);
  393. void StopAll(float = 0.0f);
  394. void StopLayer(uint8, float = 0.0f);
  395. const String& GetStartBone(const String&) const;
  396. // Properties:
  397. bool animationEnabled;
  398. /* readonly */
  399. Array<Variant> attributeDefaults;
  400. /* readonly */
  401. Array<AttributeInfo> attributeInfos;
  402. Array<Variant> attributes;
  403. /* readonly */
  404. String category;
  405. bool enabled;
  406. /* readonly */
  407. bool enabledEffective;
  408. /* readonly */
  409. uint id;
  410. /* readonly */
  411. Node node;
  412. /* readonly */
  413. uint numAttributes;
  414. ObjectAnimation objectAnimation;
  415. /* readonly */
  416. int refs;
  417. bool temporary;
  418. /* readonly */
  419. StringHash type;
  420. /* readonly */
  421. String typeName;
  422. /* readonly */
  423. int weakRefs;
  424. };
  425. class AnimationKeyFrame
  426. {
  427. // Properties:
  428. Vector3 position;
  429. Quaternion rotation;
  430. Vector3 scale;
  431. float time;
  432. };
  433. class AnimationSet2D
  434. {
  435. // Methods:
  436. String GetAnimation(uint) const;
  437. bool HasSubscribedToEvent(Object, const String&);
  438. bool HasSubscribedToEvent(const String&);
  439. bool Load(File);
  440. bool Load(VectorBuffer&);
  441. bool Save(File) const;
  442. bool Save(VectorBuffer&) const;
  443. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  444. // Properties:
  445. /* readonly */
  446. String category;
  447. /* readonly */
  448. uint memoryUse;
  449. String name;
  450. /* readonly */
  451. uint numAnimations;
  452. /* readonly */
  453. int refs;
  454. /* readonly */
  455. StringHash type;
  456. /* readonly */
  457. String typeName;
  458. /* readonly */
  459. uint useTimer;
  460. /* readonly */
  461. int weakRefs;
  462. };
  463. class AnimationState
  464. {
  465. // Methods:
  466. void AddTime(float);
  467. void AddWeight(float);
  468. void Apply();
  469. float GetBoneWeight(StringHash) const;
  470. float GetBoneWeight(uint) const;
  471. uint GetTrackIndex(StringHash) const;
  472. uint GetTrackIndex(const String&) const;
  473. void SetBoneWeight(StringHash, float, bool = false);
  474. void SetBoneWeight(const String&, float, bool = false);
  475. void SetBoneWeight(uint, float, bool = false);
  476. // Properties:
  477. /* readonly */
  478. Animation animation;
  479. AnimationBlendMode blendMode;
  480. Array<float> boneWeights;
  481. /* readonly */
  482. bool enabled;
  483. uint8 layer;
  484. /* readonly */
  485. float length;
  486. bool looped;
  487. /* readonly */
  488. AnimatedModel model;
  489. /* readonly */
  490. Node node;
  491. /* readonly */
  492. int refs;
  493. Bone startBone;
  494. float time;
  495. /* readonly */
  496. int weakRefs;
  497. float weight;
  498. };
  499. class AnimationTrack
  500. {
  501. // Methods:
  502. void AddKeyFrame(const AnimationKeyFrame&);
  503. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  504. void RemoveAllKeyFrames();
  505. void RemoveKeyFrame(uint);
  506. // Properties:
  507. uint8 channelMask;
  508. Array<AnimationKeyFrame> keyFrames;
  509. String name;
  510. StringHash nameHash;
  511. /* readonly */
  512. uint numKeyFrames;
  513. };
  514. class AnimationTriggerPoint
  515. {
  516. // Properties:
  517. Variant data;
  518. float time;
  519. };
  520. template <class T> class Array
  521. {
  522. // Methods:
  523. void Clear();
  524. void Erase(uint);
  525. int Find(const T&) const;
  526. int Find(uint, const T&) const;
  527. int FindByRef(const T&) const;
  528. int FindByRef(uint, const T&) const;
  529. void Insert(uint, const T&);
  530. void Pop();
  531. void Push(const T&);
  532. void Reserve(uint);
  533. void Resize(uint);
  534. void Reverse();
  535. void Sort();
  536. void Sort(uint, uint);
  537. void SortReverse();
  538. void SortReverse(uint, uint);
  539. // Properties:
  540. /* readonly */
  541. bool empty;
  542. uint length;
  543. };
  544. class AttributeInfo
  545. {
  546. // Properties:
  547. Variant defaultValue;
  548. /* readonly */
  549. Array<String> enumNames;
  550. uint mode;
  551. String name;
  552. VariantType type;
  553. };
  554. class Audio
  555. {
  556. // Methods:
  557. bool HasMasterGain(const String&) const;
  558. bool HasSubscribedToEvent(Object, const String&);
  559. bool HasSubscribedToEvent(const String&);
  560. bool IsSoundTypePaused(const String&);
  561. void PauseSoundType(const String&);
  562. bool Play();
  563. void ResumeAll();
  564. void ResumeSoundType(const String&);
  565. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  566. void SetMode(int, int, bool, bool = true);
  567. void Stop();
  568. // Properties:
  569. /* readonly */
  570. String category;
  571. /* readonly */
  572. bool initialized;
  573. /* readonly */
  574. bool interpolation;
  575. SoundListener listener;
  576. Array<float> masterGain;
  577. /* readonly */
  578. int mixRate;
  579. /* readonly */
  580. bool playing;
  581. /* readonly */
  582. int refs;
  583. /* readonly */
  584. uint sampleSize;
  585. /* readonly */
  586. bool stereo;
  587. /* readonly */
  588. StringHash type;
  589. /* readonly */
  590. String typeName;
  591. /* readonly */
  592. int weakRefs;
  593. };
  594. class BiasParameters
  595. {
  596. // Properties:
  597. float constantBias;
  598. float slopeScaledBias;
  599. };
  600. class Billboard
  601. {
  602. // Properties:
  603. Color color;
  604. Vector3 direction;
  605. bool enabled;
  606. Vector3 position;
  607. float rotation;
  608. Vector2 size;
  609. Rect uv;
  610. };
  611. class BillboardSet
  612. {
  613. // Methods:
  614. void ApplyAttributes();
  615. void Commit();
  616. void DrawDebugGeometry(DebugRenderer, bool);
  617. Variant GetAttribute(const String&) const;
  618. ValueAnimation GetAttributeAnimation(const String&) const;
  619. float GetAttributeAnimationSpeed(const String&) const;
  620. float GetAttributeAnimationTime(const String&) const;
  621. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  622. Variant GetAttributeDefault(const String&) const;
  623. bool GetInterceptNetworkUpdate(const String&) const;
  624. bool HasSubscribedToEvent(Object, const String&);
  625. bool HasSubscribedToEvent(const String&);
  626. bool IsInView(Camera) const;
  627. bool Load(File, bool = false);
  628. bool Load(VectorBuffer&, bool = false);
  629. bool LoadJSON(const JSONValue&, bool = false);
  630. bool LoadXML(const XMLElement&, bool = false);
  631. void MarkNetworkUpdate() const;
  632. void Remove();
  633. void RemoveAttributeAnimation(const String&);
  634. void RemoveInstanceDefault();
  635. void RemoveObjectAnimation();
  636. void ResetToDefault();
  637. bool Save(File) const;
  638. bool Save(VectorBuffer&) const;
  639. bool SaveJSON(JSONValue&) const;
  640. bool SaveXML(XMLElement&) const;
  641. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  642. void SetAnimationTime(float);
  643. bool SetAttribute(const String&, const Variant&);
  644. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  645. void SetAttributeAnimationSpeed(const String&, float);
  646. void SetAttributeAnimationTime(const String&, float);
  647. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  648. void SetInterceptNetworkUpdate(const String&, bool);
  649. // Properties:
  650. bool animationEnabled;
  651. float animationLodBias;
  652. /* readonly */
  653. Array<Variant> attributeDefaults;
  654. /* readonly */
  655. Array<AttributeInfo> attributeInfos;
  656. Array<Variant> attributes;
  657. /* readonly */
  658. Array<Billboard> billboards;
  659. /* readonly */
  660. BoundingBox boundingBox;
  661. bool castShadows;
  662. /* readonly */
  663. String category;
  664. float drawDistance;
  665. bool enabled;
  666. /* readonly */
  667. bool enabledEffective;
  668. FaceCameraMode faceCameraMode;
  669. /* readonly */
  670. uint id;
  671. /* readonly */
  672. bool inView;
  673. uint lightMask;
  674. float lodBias;
  675. Material material;
  676. uint maxLights;
  677. /* readonly */
  678. Node node;
  679. /* readonly */
  680. uint numAttributes;
  681. uint numBillboards;
  682. ObjectAnimation objectAnimation;
  683. bool occludee;
  684. bool occluder;
  685. /* readonly */
  686. int refs;
  687. bool relative;
  688. bool scaled;
  689. float shadowDistance;
  690. uint shadowMask;
  691. bool sorted;
  692. bool temporary;
  693. /* readonly */
  694. StringHash type;
  695. /* readonly */
  696. String typeName;
  697. uint viewMask;
  698. /* readonly */
  699. int weakRefs;
  700. /* readonly */
  701. BoundingBox worldBoundingBox;
  702. /* readonly */
  703. Zone zone;
  704. uint zoneMask;
  705. };
  706. class Bone
  707. {
  708. // Properties:
  709. bool animated;
  710. BoundingBox boundingBox;
  711. Vector3 initialPosition;
  712. Quaternion initialRotation;
  713. Vector3 initialScale;
  714. String name;
  715. Node node;
  716. float radius;
  717. };
  718. class BorderImage
  719. {
  720. // Methods:
  721. void AddChild(UIElement);
  722. void AddTag(const String&);
  723. void AddTags(const String&, int8 = ';');
  724. void ApplyAttributes();
  725. void BringToFront();
  726. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  727. void DisableLayoutUpdate();
  728. IntVector2 ElementToScreen(const IntVector2&);
  729. void EnableLayoutUpdate();
  730. uint FindChild(UIElement) const;
  731. Variant GetAttribute(const String&) const;
  732. ValueAnimation GetAttributeAnimation(const String&) const;
  733. float GetAttributeAnimationSpeed(const String&) const;
  734. float GetAttributeAnimationTime(const String&) const;
  735. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  736. Variant GetAttributeDefault(const String&) const;
  737. UIElement GetChild(const String&, bool = false) const;
  738. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  739. Array<UIElement> GetChildren(bool = false) const;
  740. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  741. UIElement GetElementEventSender() const;
  742. bool GetInterceptNetworkUpdate(const String&) const;
  743. uint GetNumChildren(bool) const;
  744. bool HasSubscribedToEvent(Object, const String&);
  745. bool HasSubscribedToEvent(const String&);
  746. bool HasTag(const String&) const;
  747. void InsertChild(uint, UIElement);
  748. bool IsInside(IntVector2, bool);
  749. bool IsInsideCombined(IntVector2, bool);
  750. bool Load(File, bool = false);
  751. bool Load(VectorBuffer&, bool = false);
  752. bool LoadChildXML(XMLFile, XMLFile = null);
  753. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  754. bool LoadJSON(const JSONValue&, bool = false);
  755. bool LoadXML(File);
  756. bool LoadXML(VectorBuffer&);
  757. bool LoadXML(XMLFile, XMLFile);
  758. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  759. bool LoadXML(const XMLElement&, bool = false);
  760. void MarkNetworkUpdate() const;
  761. void Remove();
  762. void RemoveAllChildren();
  763. void RemoveAllTags();
  764. void RemoveAttributeAnimation(const String&);
  765. void RemoveChild(UIElement, uint = 0);
  766. void RemoveChild(uint);
  767. void RemoveInstanceDefault();
  768. void RemoveObjectAnimation();
  769. bool RemoveTag(const String&);
  770. void ResetDeepEnabled();
  771. void ResetToDefault();
  772. bool Save(File) const;
  773. bool Save(VectorBuffer&) const;
  774. bool SaveJSON(JSONValue&) const;
  775. bool SaveXML(File, const String& = "\t");
  776. bool SaveXML(VectorBuffer&, const String& = "\t");
  777. bool SaveXML(XMLElement&) const;
  778. IntVector2 ScreenToElement(const IntVector2&);
  779. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  780. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  781. void SetAnimationTime(float);
  782. bool SetAttribute(const String&, const Variant&);
  783. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  784. void SetAttributeAnimationSpeed(const String&, float);
  785. void SetAttributeAnimationTime(const String&, float);
  786. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  787. void SetDeepEnabled(bool);
  788. void SetEnabledRecursive(bool);
  789. void SetFixedHeight(int);
  790. void SetFixedSize(int, int);
  791. void SetFixedWidth(int);
  792. void SetFullImageRect();
  793. void SetHoverOffset(int, int);
  794. void SetInterceptNetworkUpdate(const String&, bool);
  795. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  796. void SetMaxSize(int, int);
  797. void SetMinSize(int, int);
  798. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  799. void SetPosition(int, int);
  800. void SetSize(int, int);
  801. bool SetStyle(const String&, XMLFile = null);
  802. bool SetStyle(const XMLElement&);
  803. bool SetStyleAuto(XMLFile = null);
  804. void UpdateLayout();
  805. const Variant& GetVar(const StringHash&);
  806. // Properties:
  807. bool animationEnabled;
  808. /* readonly */
  809. Array<Variant> attributeDefaults;
  810. /* readonly */
  811. Array<AttributeInfo> attributeInfos;
  812. Array<Variant> attributes;
  813. BlendMode blendMode;
  814. IntRect border;
  815. bool bringToBack;
  816. bool bringToFront;
  817. /* readonly */
  818. String category;
  819. /* readonly */
  820. IntVector2 childOffset;
  821. /* readonly */
  822. Array<UIElement> children;
  823. IntRect clipBorder;
  824. bool clipChildren;
  825. /* writeonly */
  826. Color color;
  827. /* readonly */
  828. bool colorGradient;
  829. Array<Color> colors;
  830. /* readonly */
  831. IntRect combinedScreenRect;
  832. XMLFile defaultStyle;
  833. /* readonly */
  834. float derivedOpacity;
  835. /* readonly */
  836. uint dragButtonCombo;
  837. /* readonly */
  838. int dragButtonCount;
  839. uint dragDropMode;
  840. bool editable;
  841. bool elementEventSender;
  842. bool enabled;
  843. /* readonly */
  844. bool enabledSelf;
  845. /* readonly */
  846. bool fixedHeight;
  847. /* readonly */
  848. bool fixedSize;
  849. /* readonly */
  850. bool fixedWidth;
  851. bool focus;
  852. FocusMode focusMode;
  853. int height;
  854. HorizontalAlignment horizontalAlignment;
  855. IntVector2 hoverOffset;
  856. /* readonly */
  857. bool hovering;
  858. IntRect imageBorder;
  859. IntRect imageRect;
  860. int indent;
  861. int indentSpacing;
  862. /* readonly */
  863. int indentWidth;
  864. bool internal;
  865. IntRect layoutBorder;
  866. Vector2 layoutFlexScale;
  867. LayoutMode layoutMode;
  868. int layoutSpacing;
  869. int maxHeight;
  870. IntVector2 maxSize;
  871. int maxWidth;
  872. int minHeight;
  873. IntVector2 minSize;
  874. int minWidth;
  875. String name;
  876. /* readonly */
  877. uint numAllChildren;
  878. /* readonly */
  879. uint numAttributes;
  880. /* readonly */
  881. uint numChildren;
  882. ObjectAnimation objectAnimation;
  883. float opacity;
  884. UIElement parent;
  885. IntVector2 position;
  886. int priority;
  887. /* readonly */
  888. int refs;
  889. /* readonly */
  890. UIElement root;
  891. /* readonly */
  892. IntVector2 screenPosition;
  893. bool selected;
  894. IntVector2 size;
  895. bool sortChildren;
  896. String style;
  897. /* readonly */
  898. Array<String> tags;
  899. bool temporary;
  900. Texture texture;
  901. bool tiled;
  902. TraversalMode traversalMode;
  903. /* readonly */
  904. StringHash type;
  905. /* readonly */
  906. String typeName;
  907. bool useDerivedOpacity;
  908. /* readonly */
  909. VariantMap vars;
  910. VerticalAlignment verticalAlignment;
  911. bool visible;
  912. /* readonly */
  913. bool visibleEffective;
  914. /* readonly */
  915. int weakRefs;
  916. int width;
  917. };
  918. class BoundingBox
  919. {
  920. // Methods:
  921. void Clear();
  922. void Clip(const BoundingBox&);
  923. void Define(const BoundingBox&);
  924. void Define(const Frustum&);
  925. void Define(const Polyhedron&);
  926. void Define(const Sphere&);
  927. void Define(const Vector3&);
  928. void Define(const Vector3&, const Vector3&);
  929. void Define(float, float);
  930. bool Defined() const;
  931. Intersection IsInside(const BoundingBox&) const;
  932. Intersection IsInside(const Sphere&) const;
  933. Intersection IsInside(const Vector3&) const;
  934. Intersection IsInsideFast(const BoundingBox&) const;
  935. Intersection IsInsideFast(const Sphere&) const;
  936. void Merge(const BoundingBox&);
  937. void Merge(const Frustum&);
  938. void Merge(const Polyhedron&);
  939. void Merge(const Sphere&);
  940. void Merge(const Vector3&);
  941. Rect Projected(const Matrix4&) const;
  942. String ToString() const;
  943. void Transform(const Matrix3&);
  944. void Transform(const Matrix3x4&);
  945. BoundingBox Transformed(const Matrix3&) const;
  946. BoundingBox Transformed(const Matrix3x4&) const;
  947. // Properties:
  948. /* readonly */
  949. Vector3 center;
  950. /* readonly */
  951. Vector3 halfSize;
  952. Vector3 max;
  953. Vector3 min;
  954. /* readonly */
  955. Vector3 size;
  956. };
  957. class Button
  958. {
  959. // Methods:
  960. void AddChild(UIElement);
  961. void AddTag(const String&);
  962. void AddTags(const String&, int8 = ';');
  963. void ApplyAttributes();
  964. void BringToFront();
  965. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  966. void DisableLayoutUpdate();
  967. IntVector2 ElementToScreen(const IntVector2&);
  968. void EnableLayoutUpdate();
  969. uint FindChild(UIElement) const;
  970. Variant GetAttribute(const String&) const;
  971. ValueAnimation GetAttributeAnimation(const String&) const;
  972. float GetAttributeAnimationSpeed(const String&) const;
  973. float GetAttributeAnimationTime(const String&) const;
  974. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  975. Variant GetAttributeDefault(const String&) const;
  976. UIElement GetChild(const String&, bool = false) const;
  977. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  978. Array<UIElement> GetChildren(bool = false) const;
  979. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  980. UIElement GetElementEventSender() const;
  981. bool GetInterceptNetworkUpdate(const String&) const;
  982. uint GetNumChildren(bool) const;
  983. bool HasSubscribedToEvent(Object, const String&);
  984. bool HasSubscribedToEvent(const String&);
  985. bool HasTag(const String&) const;
  986. void InsertChild(uint, UIElement);
  987. bool IsInside(IntVector2, bool);
  988. bool IsInsideCombined(IntVector2, bool);
  989. bool Load(File, bool = false);
  990. bool Load(VectorBuffer&, bool = false);
  991. bool LoadChildXML(XMLFile, XMLFile = null);
  992. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  993. bool LoadJSON(const JSONValue&, bool = false);
  994. bool LoadXML(File);
  995. bool LoadXML(VectorBuffer&);
  996. bool LoadXML(XMLFile, XMLFile);
  997. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  998. bool LoadXML(const XMLElement&, bool = false);
  999. void MarkNetworkUpdate() const;
  1000. void Remove();
  1001. void RemoveAllChildren();
  1002. void RemoveAllTags();
  1003. void RemoveAttributeAnimation(const String&);
  1004. void RemoveChild(UIElement, uint = 0);
  1005. void RemoveChild(uint);
  1006. void RemoveInstanceDefault();
  1007. void RemoveObjectAnimation();
  1008. bool RemoveTag(const String&);
  1009. void ResetDeepEnabled();
  1010. void ResetToDefault();
  1011. bool Save(File) const;
  1012. bool Save(VectorBuffer&) const;
  1013. bool SaveJSON(JSONValue&) const;
  1014. bool SaveXML(File, const String& = "\t");
  1015. bool SaveXML(VectorBuffer&, const String& = "\t");
  1016. bool SaveXML(XMLElement&) const;
  1017. IntVector2 ScreenToElement(const IntVector2&);
  1018. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1019. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1020. void SetAnimationTime(float);
  1021. bool SetAttribute(const String&, const Variant&);
  1022. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1023. void SetAttributeAnimationSpeed(const String&, float);
  1024. void SetAttributeAnimationTime(const String&, float);
  1025. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1026. void SetDeepEnabled(bool);
  1027. void SetEnabledRecursive(bool);
  1028. void SetFixedHeight(int);
  1029. void SetFixedSize(int, int);
  1030. void SetFixedWidth(int);
  1031. void SetFullImageRect();
  1032. void SetHoverOffset(int, int);
  1033. void SetInterceptNetworkUpdate(const String&, bool);
  1034. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1035. void SetMaxSize(int, int);
  1036. void SetMinSize(int, int);
  1037. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1038. void SetPosition(int, int);
  1039. void SetPressedChildOffset(int, int);
  1040. void SetPressedOffset(int, int);
  1041. void SetRepeat(float, float);
  1042. void SetSize(int, int);
  1043. bool SetStyle(const String&, XMLFile = null);
  1044. bool SetStyle(const XMLElement&);
  1045. bool SetStyleAuto(XMLFile = null);
  1046. void UpdateLayout();
  1047. const Variant& GetVar(const StringHash&);
  1048. // Properties:
  1049. bool animationEnabled;
  1050. /* readonly */
  1051. Array<Variant> attributeDefaults;
  1052. /* readonly */
  1053. Array<AttributeInfo> attributeInfos;
  1054. Array<Variant> attributes;
  1055. BlendMode blendMode;
  1056. IntRect border;
  1057. bool bringToBack;
  1058. bool bringToFront;
  1059. /* readonly */
  1060. String category;
  1061. /* readonly */
  1062. IntVector2 childOffset;
  1063. /* readonly */
  1064. Array<UIElement> children;
  1065. IntRect clipBorder;
  1066. bool clipChildren;
  1067. /* writeonly */
  1068. Color color;
  1069. /* readonly */
  1070. bool colorGradient;
  1071. Array<Color> colors;
  1072. /* readonly */
  1073. IntRect combinedScreenRect;
  1074. XMLFile defaultStyle;
  1075. /* readonly */
  1076. float derivedOpacity;
  1077. /* readonly */
  1078. uint dragButtonCombo;
  1079. /* readonly */
  1080. int dragButtonCount;
  1081. uint dragDropMode;
  1082. bool editable;
  1083. bool elementEventSender;
  1084. bool enabled;
  1085. /* readonly */
  1086. bool enabledSelf;
  1087. /* readonly */
  1088. bool fixedHeight;
  1089. /* readonly */
  1090. bool fixedSize;
  1091. /* readonly */
  1092. bool fixedWidth;
  1093. bool focus;
  1094. FocusMode focusMode;
  1095. int height;
  1096. HorizontalAlignment horizontalAlignment;
  1097. IntVector2 hoverOffset;
  1098. /* readonly */
  1099. bool hovering;
  1100. IntRect imageBorder;
  1101. IntRect imageRect;
  1102. int indent;
  1103. int indentSpacing;
  1104. /* readonly */
  1105. int indentWidth;
  1106. bool internal;
  1107. IntRect layoutBorder;
  1108. Vector2 layoutFlexScale;
  1109. LayoutMode layoutMode;
  1110. int layoutSpacing;
  1111. int maxHeight;
  1112. IntVector2 maxSize;
  1113. int maxWidth;
  1114. int minHeight;
  1115. IntVector2 minSize;
  1116. int minWidth;
  1117. String name;
  1118. /* readonly */
  1119. uint numAllChildren;
  1120. /* readonly */
  1121. uint numAttributes;
  1122. /* readonly */
  1123. uint numChildren;
  1124. ObjectAnimation objectAnimation;
  1125. float opacity;
  1126. UIElement parent;
  1127. IntVector2 position;
  1128. /* readonly */
  1129. bool pressed;
  1130. IntVector2 pressedChildOffset;
  1131. IntVector2 pressedOffset;
  1132. int priority;
  1133. /* readonly */
  1134. int refs;
  1135. float repeatDelay;
  1136. float repeatRate;
  1137. /* readonly */
  1138. UIElement root;
  1139. /* readonly */
  1140. IntVector2 screenPosition;
  1141. bool selected;
  1142. IntVector2 size;
  1143. bool sortChildren;
  1144. String style;
  1145. /* readonly */
  1146. Array<String> tags;
  1147. bool temporary;
  1148. Texture texture;
  1149. bool tiled;
  1150. TraversalMode traversalMode;
  1151. /* readonly */
  1152. StringHash type;
  1153. /* readonly */
  1154. String typeName;
  1155. bool useDerivedOpacity;
  1156. /* readonly */
  1157. VariantMap vars;
  1158. VerticalAlignment verticalAlignment;
  1159. bool visible;
  1160. /* readonly */
  1161. bool visibleEffective;
  1162. /* readonly */
  1163. int weakRefs;
  1164. int width;
  1165. };
  1166. class Camera
  1167. {
  1168. // Methods:
  1169. void ApplyAttributes();
  1170. void DrawDebugGeometry(DebugRenderer, bool);
  1171. Variant GetAttribute(const String&) const;
  1172. ValueAnimation GetAttributeAnimation(const String&) const;
  1173. float GetAttributeAnimationSpeed(const String&) const;
  1174. float GetAttributeAnimationTime(const String&) const;
  1175. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1176. Variant GetAttributeDefault(const String&) const;
  1177. float GetDistance(const Vector3&) const;
  1178. float GetDistanceSquared(const Vector3&) const;
  1179. bool GetInterceptNetworkUpdate(const String&) const;
  1180. Ray GetScreenRay(float, float) const;
  1181. Frustum GetSplitFrustum(float, float) const;
  1182. bool HasSubscribedToEvent(Object, const String&);
  1183. bool HasSubscribedToEvent(const String&);
  1184. bool Load(File, bool = false);
  1185. bool Load(VectorBuffer&, bool = false);
  1186. bool LoadJSON(const JSONValue&, bool = false);
  1187. bool LoadXML(const XMLElement&, bool = false);
  1188. void MarkNetworkUpdate() const;
  1189. void Remove();
  1190. void RemoveAttributeAnimation(const String&);
  1191. void RemoveInstanceDefault();
  1192. void RemoveObjectAnimation();
  1193. void ResetToDefault();
  1194. bool Save(File) const;
  1195. bool Save(VectorBuffer&) const;
  1196. bool SaveJSON(JSONValue&) const;
  1197. bool SaveXML(XMLElement&) const;
  1198. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1199. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1200. void SetAnimationTime(float);
  1201. bool SetAttribute(const String&, const Variant&);
  1202. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1203. void SetAttributeAnimationSpeed(const String&, float);
  1204. void SetAttributeAnimationTime(const String&, float);
  1205. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1206. void SetInterceptNetworkUpdate(const String&, bool);
  1207. void SetOrthoSize(const Vector2&);
  1208. Vector2 WorldToScreenPoint(const Vector3&) const;
  1209. // Properties:
  1210. bool animationEnabled;
  1211. float aspectRatio;
  1212. /* readonly */
  1213. Array<Variant> attributeDefaults;
  1214. /* readonly */
  1215. Array<AttributeInfo> attributeInfos;
  1216. Array<Variant> attributes;
  1217. bool autoAspectRatio;
  1218. /* readonly */
  1219. String category;
  1220. Plane clipPlane;
  1221. /* readonly */
  1222. Matrix3x4 effectiveWorldTransform;
  1223. bool enabled;
  1224. /* readonly */
  1225. bool enabledEffective;
  1226. float farClip;
  1227. FillMode fillMode;
  1228. float fov;
  1229. /* readonly */
  1230. Frustum frustum;
  1231. /* readonly */
  1232. float halfViewSize;
  1233. /* readonly */
  1234. uint id;
  1235. float lodBias;
  1236. float nearClip;
  1237. /* readonly */
  1238. Node node;
  1239. /* readonly */
  1240. uint numAttributes;
  1241. ObjectAnimation objectAnimation;
  1242. float orthoSize;
  1243. bool orthographic;
  1244. /* readonly */
  1245. Matrix4 projection;
  1246. Vector2 projectionOffset;
  1247. Plane reflectionPlane;
  1248. /* readonly */
  1249. int refs;
  1250. bool temporary;
  1251. /* readonly */
  1252. StringHash type;
  1253. /* readonly */
  1254. String typeName;
  1255. bool useClipping;
  1256. bool useReflection;
  1257. /* readonly */
  1258. Matrix3x4 view;
  1259. uint viewMask;
  1260. uint viewOverrideFlags;
  1261. /* readonly */
  1262. Frustum viewSpaceFrustum;
  1263. /* readonly */
  1264. int weakRefs;
  1265. float zoom;
  1266. };
  1267. class CascadeParameters
  1268. {
  1269. // Properties:
  1270. float biasAutoAdjust;
  1271. float fadeStart;
  1272. float split1;
  1273. float split2;
  1274. float split3;
  1275. float split4;
  1276. };
  1277. class CheckBox
  1278. {
  1279. // Methods:
  1280. void AddChild(UIElement);
  1281. void AddTag(const String&);
  1282. void AddTags(const String&, int8 = ';');
  1283. void ApplyAttributes();
  1284. void BringToFront();
  1285. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1286. void DisableLayoutUpdate();
  1287. IntVector2 ElementToScreen(const IntVector2&);
  1288. void EnableLayoutUpdate();
  1289. uint FindChild(UIElement) const;
  1290. Variant GetAttribute(const String&) const;
  1291. ValueAnimation GetAttributeAnimation(const String&) const;
  1292. float GetAttributeAnimationSpeed(const String&) const;
  1293. float GetAttributeAnimationTime(const String&) const;
  1294. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1295. Variant GetAttributeDefault(const String&) const;
  1296. UIElement GetChild(const String&, bool = false) const;
  1297. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1298. Array<UIElement> GetChildren(bool = false) const;
  1299. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1300. UIElement GetElementEventSender() const;
  1301. bool GetInterceptNetworkUpdate(const String&) const;
  1302. uint GetNumChildren(bool) const;
  1303. bool HasSubscribedToEvent(Object, const String&);
  1304. bool HasSubscribedToEvent(const String&);
  1305. bool HasTag(const String&) const;
  1306. void InsertChild(uint, UIElement);
  1307. bool IsInside(IntVector2, bool);
  1308. bool IsInsideCombined(IntVector2, bool);
  1309. bool Load(File, bool = false);
  1310. bool Load(VectorBuffer&, bool = false);
  1311. bool LoadChildXML(XMLFile, XMLFile = null);
  1312. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1313. bool LoadJSON(const JSONValue&, bool = false);
  1314. bool LoadXML(File);
  1315. bool LoadXML(VectorBuffer&);
  1316. bool LoadXML(XMLFile, XMLFile);
  1317. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1318. bool LoadXML(const XMLElement&, bool = false);
  1319. void MarkNetworkUpdate() const;
  1320. void Remove();
  1321. void RemoveAllChildren();
  1322. void RemoveAllTags();
  1323. void RemoveAttributeAnimation(const String&);
  1324. void RemoveChild(UIElement, uint = 0);
  1325. void RemoveChild(uint);
  1326. void RemoveInstanceDefault();
  1327. void RemoveObjectAnimation();
  1328. bool RemoveTag(const String&);
  1329. void ResetDeepEnabled();
  1330. void ResetToDefault();
  1331. bool Save(File) const;
  1332. bool Save(VectorBuffer&) const;
  1333. bool SaveJSON(JSONValue&) const;
  1334. bool SaveXML(File, const String& = "\t");
  1335. bool SaveXML(VectorBuffer&, const String& = "\t");
  1336. bool SaveXML(XMLElement&) const;
  1337. IntVector2 ScreenToElement(const IntVector2&);
  1338. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1339. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1340. void SetAnimationTime(float);
  1341. bool SetAttribute(const String&, const Variant&);
  1342. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1343. void SetAttributeAnimationSpeed(const String&, float);
  1344. void SetAttributeAnimationTime(const String&, float);
  1345. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1346. void SetCheckedOffset(int, int);
  1347. void SetDeepEnabled(bool);
  1348. void SetEnabledRecursive(bool);
  1349. void SetFixedHeight(int);
  1350. void SetFixedSize(int, int);
  1351. void SetFixedWidth(int);
  1352. void SetFullImageRect();
  1353. void SetHoverOffset(int, int);
  1354. void SetInterceptNetworkUpdate(const String&, bool);
  1355. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1356. void SetMaxSize(int, int);
  1357. void SetMinSize(int, int);
  1358. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1359. void SetPosition(int, int);
  1360. void SetSize(int, int);
  1361. bool SetStyle(const String&, XMLFile = null);
  1362. bool SetStyle(const XMLElement&);
  1363. bool SetStyleAuto(XMLFile = null);
  1364. void UpdateLayout();
  1365. const Variant& GetVar(const StringHash&);
  1366. // Properties:
  1367. bool animationEnabled;
  1368. /* readonly */
  1369. Array<Variant> attributeDefaults;
  1370. /* readonly */
  1371. Array<AttributeInfo> attributeInfos;
  1372. Array<Variant> attributes;
  1373. BlendMode blendMode;
  1374. IntRect border;
  1375. bool bringToBack;
  1376. bool bringToFront;
  1377. /* readonly */
  1378. String category;
  1379. bool checked;
  1380. IntVector2 checkedOffset;
  1381. /* readonly */
  1382. IntVector2 childOffset;
  1383. /* readonly */
  1384. Array<UIElement> children;
  1385. IntRect clipBorder;
  1386. bool clipChildren;
  1387. /* writeonly */
  1388. Color color;
  1389. /* readonly */
  1390. bool colorGradient;
  1391. Array<Color> colors;
  1392. /* readonly */
  1393. IntRect combinedScreenRect;
  1394. XMLFile defaultStyle;
  1395. /* readonly */
  1396. float derivedOpacity;
  1397. /* readonly */
  1398. uint dragButtonCombo;
  1399. /* readonly */
  1400. int dragButtonCount;
  1401. uint dragDropMode;
  1402. bool editable;
  1403. bool elementEventSender;
  1404. bool enabled;
  1405. /* readonly */
  1406. bool enabledSelf;
  1407. /* readonly */
  1408. bool fixedHeight;
  1409. /* readonly */
  1410. bool fixedSize;
  1411. /* readonly */
  1412. bool fixedWidth;
  1413. bool focus;
  1414. FocusMode focusMode;
  1415. int height;
  1416. HorizontalAlignment horizontalAlignment;
  1417. IntVector2 hoverOffset;
  1418. /* readonly */
  1419. bool hovering;
  1420. IntRect imageBorder;
  1421. IntRect imageRect;
  1422. int indent;
  1423. int indentSpacing;
  1424. /* readonly */
  1425. int indentWidth;
  1426. bool internal;
  1427. IntRect layoutBorder;
  1428. Vector2 layoutFlexScale;
  1429. LayoutMode layoutMode;
  1430. int layoutSpacing;
  1431. int maxHeight;
  1432. IntVector2 maxSize;
  1433. int maxWidth;
  1434. int minHeight;
  1435. IntVector2 minSize;
  1436. int minWidth;
  1437. String name;
  1438. /* readonly */
  1439. uint numAllChildren;
  1440. /* readonly */
  1441. uint numAttributes;
  1442. /* readonly */
  1443. uint numChildren;
  1444. ObjectAnimation objectAnimation;
  1445. float opacity;
  1446. UIElement parent;
  1447. IntVector2 position;
  1448. int priority;
  1449. /* readonly */
  1450. int refs;
  1451. /* readonly */
  1452. UIElement root;
  1453. /* readonly */
  1454. IntVector2 screenPosition;
  1455. bool selected;
  1456. IntVector2 size;
  1457. bool sortChildren;
  1458. String style;
  1459. /* readonly */
  1460. Array<String> tags;
  1461. bool temporary;
  1462. Texture texture;
  1463. bool tiled;
  1464. TraversalMode traversalMode;
  1465. /* readonly */
  1466. StringHash type;
  1467. /* readonly */
  1468. String typeName;
  1469. bool useDerivedOpacity;
  1470. /* readonly */
  1471. VariantMap vars;
  1472. VerticalAlignment verticalAlignment;
  1473. bool visible;
  1474. /* readonly */
  1475. bool visibleEffective;
  1476. /* readonly */
  1477. int weakRefs;
  1478. int width;
  1479. };
  1480. class CollisionBox2D
  1481. {
  1482. // Methods:
  1483. void ApplyAttributes();
  1484. void DrawDebugGeometry(DebugRenderer, bool);
  1485. Variant GetAttribute(const String&) const;
  1486. ValueAnimation GetAttributeAnimation(const String&) const;
  1487. float GetAttributeAnimationSpeed(const String&) const;
  1488. float GetAttributeAnimationTime(const String&) const;
  1489. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1490. Variant GetAttributeDefault(const String&) const;
  1491. bool GetInterceptNetworkUpdate(const String&) const;
  1492. bool HasSubscribedToEvent(Object, const String&);
  1493. bool HasSubscribedToEvent(const String&);
  1494. bool Load(File, bool = false);
  1495. bool Load(VectorBuffer&, bool = false);
  1496. bool LoadJSON(const JSONValue&, bool = false);
  1497. bool LoadXML(const XMLElement&, bool = false);
  1498. void MarkNetworkUpdate() const;
  1499. void Remove();
  1500. void RemoveAttributeAnimation(const String&);
  1501. void RemoveInstanceDefault();
  1502. void RemoveObjectAnimation();
  1503. void ResetToDefault();
  1504. bool Save(File) const;
  1505. bool Save(VectorBuffer&) const;
  1506. bool SaveJSON(JSONValue&) const;
  1507. bool SaveXML(XMLElement&) const;
  1508. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1509. void SetAnimationTime(float);
  1510. bool SetAttribute(const String&, const Variant&);
  1511. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1512. void SetAttributeAnimationSpeed(const String&, float);
  1513. void SetAttributeAnimationTime(const String&, float);
  1514. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1515. void SetCenter(float, float);
  1516. void SetInterceptNetworkUpdate(const String&, bool);
  1517. void SetSize(float, float);
  1518. // Properties:
  1519. float angle;
  1520. bool animationEnabled;
  1521. /* readonly */
  1522. Array<Variant> attributeDefaults;
  1523. /* readonly */
  1524. Array<AttributeInfo> attributeInfos;
  1525. Array<Variant> attributes;
  1526. /* readonly */
  1527. String category;
  1528. int categoryBits;
  1529. Vector2 center;
  1530. float density;
  1531. bool enabled;
  1532. /* readonly */
  1533. bool enabledEffective;
  1534. float friction;
  1535. int groupIndex;
  1536. /* readonly */
  1537. uint id;
  1538. /* readonly */
  1539. float inertia;
  1540. int maskBits;
  1541. /* readonly */
  1542. float mass;
  1543. /* readonly */
  1544. Vector2 massCenter;
  1545. /* readonly */
  1546. Node node;
  1547. /* readonly */
  1548. uint numAttributes;
  1549. ObjectAnimation objectAnimation;
  1550. /* readonly */
  1551. int refs;
  1552. float restitution;
  1553. Vector2 size;
  1554. bool temporary;
  1555. bool trigger;
  1556. /* readonly */
  1557. StringHash type;
  1558. /* readonly */
  1559. String typeName;
  1560. /* readonly */
  1561. int weakRefs;
  1562. };
  1563. class CollisionChain2D
  1564. {
  1565. // Methods:
  1566. void ApplyAttributes();
  1567. void DrawDebugGeometry(DebugRenderer, bool);
  1568. Variant GetAttribute(const String&) const;
  1569. ValueAnimation GetAttributeAnimation(const String&) const;
  1570. float GetAttributeAnimationSpeed(const String&) const;
  1571. float GetAttributeAnimationTime(const String&) const;
  1572. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1573. Variant GetAttributeDefault(const String&) const;
  1574. bool GetInterceptNetworkUpdate(const String&) const;
  1575. Array<Vector2> GetVertices() const;
  1576. bool HasSubscribedToEvent(Object, const String&);
  1577. bool HasSubscribedToEvent(const String&);
  1578. bool Load(File, bool = false);
  1579. bool Load(VectorBuffer&, bool = false);
  1580. bool LoadJSON(const JSONValue&, bool = false);
  1581. bool LoadXML(const XMLElement&, bool = false);
  1582. void MarkNetworkUpdate() const;
  1583. void Remove();
  1584. void RemoveAttributeAnimation(const String&);
  1585. void RemoveInstanceDefault();
  1586. void RemoveObjectAnimation();
  1587. void ResetToDefault();
  1588. bool Save(File) const;
  1589. bool Save(VectorBuffer&) const;
  1590. bool SaveJSON(JSONValue&) const;
  1591. bool SaveXML(XMLElement&) const;
  1592. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1593. void SetAnimationTime(float);
  1594. bool SetAttribute(const String&, const Variant&);
  1595. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1596. void SetAttributeAnimationSpeed(const String&, float);
  1597. void SetAttributeAnimationTime(const String&, float);
  1598. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1599. void SetInterceptNetworkUpdate(const String&, bool);
  1600. void SetVertex(uint, const Vector2&);
  1601. void SetVertices(Array<Vector2>);
  1602. const Vector2& GetVertex(uint) const;
  1603. // Properties:
  1604. bool animationEnabled;
  1605. /* readonly */
  1606. Array<Variant> attributeDefaults;
  1607. /* readonly */
  1608. Array<AttributeInfo> attributeInfos;
  1609. Array<Variant> attributes;
  1610. /* readonly */
  1611. String category;
  1612. int categoryBits;
  1613. float density;
  1614. bool enabled;
  1615. /* readonly */
  1616. bool enabledEffective;
  1617. float friction;
  1618. int groupIndex;
  1619. /* readonly */
  1620. uint id;
  1621. /* readonly */
  1622. float inertia;
  1623. bool loop;
  1624. int maskBits;
  1625. /* readonly */
  1626. float mass;
  1627. /* readonly */
  1628. Vector2 massCenter;
  1629. /* readonly */
  1630. Node node;
  1631. /* readonly */
  1632. uint numAttributes;
  1633. ObjectAnimation objectAnimation;
  1634. /* readonly */
  1635. int refs;
  1636. float restitution;
  1637. bool temporary;
  1638. bool trigger;
  1639. /* readonly */
  1640. StringHash type;
  1641. /* readonly */
  1642. String typeName;
  1643. uint vertexCount;
  1644. /* readonly */
  1645. int weakRefs;
  1646. };
  1647. class CollisionCircle2D
  1648. {
  1649. // Methods:
  1650. void ApplyAttributes();
  1651. void DrawDebugGeometry(DebugRenderer, bool);
  1652. Variant GetAttribute(const String&) const;
  1653. ValueAnimation GetAttributeAnimation(const String&) const;
  1654. float GetAttributeAnimationSpeed(const String&) const;
  1655. float GetAttributeAnimationTime(const String&) const;
  1656. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1657. Variant GetAttributeDefault(const String&) const;
  1658. bool GetInterceptNetworkUpdate(const String&) const;
  1659. bool HasSubscribedToEvent(Object, const String&);
  1660. bool HasSubscribedToEvent(const String&);
  1661. bool Load(File, bool = false);
  1662. bool Load(VectorBuffer&, bool = false);
  1663. bool LoadJSON(const JSONValue&, bool = false);
  1664. bool LoadXML(const XMLElement&, bool = false);
  1665. void MarkNetworkUpdate() const;
  1666. void Remove();
  1667. void RemoveAttributeAnimation(const String&);
  1668. void RemoveInstanceDefault();
  1669. void RemoveObjectAnimation();
  1670. void ResetToDefault();
  1671. bool Save(File) const;
  1672. bool Save(VectorBuffer&) const;
  1673. bool SaveJSON(JSONValue&) const;
  1674. bool SaveXML(XMLElement&) const;
  1675. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1676. void SetAnimationTime(float);
  1677. bool SetAttribute(const String&, const Variant&);
  1678. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1679. void SetAttributeAnimationSpeed(const String&, float);
  1680. void SetAttributeAnimationTime(const String&, float);
  1681. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1682. void SetCenter(float, float);
  1683. void SetInterceptNetworkUpdate(const String&, bool);
  1684. // Properties:
  1685. bool animationEnabled;
  1686. /* readonly */
  1687. Array<Variant> attributeDefaults;
  1688. /* readonly */
  1689. Array<AttributeInfo> attributeInfos;
  1690. Array<Variant> attributes;
  1691. /* readonly */
  1692. String category;
  1693. int categoryBits;
  1694. Vector2 center;
  1695. float density;
  1696. bool enabled;
  1697. /* readonly */
  1698. bool enabledEffective;
  1699. float friction;
  1700. int groupIndex;
  1701. /* readonly */
  1702. uint id;
  1703. /* readonly */
  1704. float inertia;
  1705. int maskBits;
  1706. /* readonly */
  1707. float mass;
  1708. /* readonly */
  1709. Vector2 massCenter;
  1710. /* readonly */
  1711. Node node;
  1712. /* readonly */
  1713. uint numAttributes;
  1714. ObjectAnimation objectAnimation;
  1715. float radius;
  1716. /* readonly */
  1717. int refs;
  1718. float restitution;
  1719. bool temporary;
  1720. bool trigger;
  1721. /* readonly */
  1722. StringHash type;
  1723. /* readonly */
  1724. String typeName;
  1725. /* readonly */
  1726. int weakRefs;
  1727. };
  1728. class CollisionEdge2D
  1729. {
  1730. // Methods:
  1731. void ApplyAttributes();
  1732. void DrawDebugGeometry(DebugRenderer, bool);
  1733. Variant GetAttribute(const String&) const;
  1734. ValueAnimation GetAttributeAnimation(const String&) const;
  1735. float GetAttributeAnimationSpeed(const String&) const;
  1736. float GetAttributeAnimationTime(const String&) const;
  1737. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1738. Variant GetAttributeDefault(const String&) const;
  1739. bool GetInterceptNetworkUpdate(const String&) const;
  1740. bool HasSubscribedToEvent(Object, const String&);
  1741. bool HasSubscribedToEvent(const String&);
  1742. bool Load(File, bool = false);
  1743. bool Load(VectorBuffer&, bool = false);
  1744. bool LoadJSON(const JSONValue&, bool = false);
  1745. bool LoadXML(const XMLElement&, bool = false);
  1746. void MarkNetworkUpdate() const;
  1747. void Remove();
  1748. void RemoveAttributeAnimation(const String&);
  1749. void RemoveInstanceDefault();
  1750. void RemoveObjectAnimation();
  1751. void ResetToDefault();
  1752. bool Save(File) const;
  1753. bool Save(VectorBuffer&) const;
  1754. bool SaveJSON(JSONValue&) const;
  1755. bool SaveXML(XMLElement&) const;
  1756. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1757. void SetAnimationTime(float);
  1758. bool SetAttribute(const String&, const Variant&);
  1759. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1760. void SetAttributeAnimationSpeed(const String&, float);
  1761. void SetAttributeAnimationTime(const String&, float);
  1762. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1763. void SetInterceptNetworkUpdate(const String&, bool);
  1764. void SetVertices(const Vector2&, const Vector2&);
  1765. // Properties:
  1766. bool animationEnabled;
  1767. /* readonly */
  1768. Array<Variant> attributeDefaults;
  1769. /* readonly */
  1770. Array<AttributeInfo> attributeInfos;
  1771. Array<Variant> attributes;
  1772. /* readonly */
  1773. String category;
  1774. int categoryBits;
  1775. float density;
  1776. bool enabled;
  1777. /* readonly */
  1778. bool enabledEffective;
  1779. float friction;
  1780. int groupIndex;
  1781. /* readonly */
  1782. uint id;
  1783. /* readonly */
  1784. float inertia;
  1785. int maskBits;
  1786. /* readonly */
  1787. float mass;
  1788. /* readonly */
  1789. Vector2 massCenter;
  1790. /* readonly */
  1791. Node node;
  1792. /* readonly */
  1793. uint numAttributes;
  1794. ObjectAnimation objectAnimation;
  1795. /* readonly */
  1796. int refs;
  1797. float restitution;
  1798. bool temporary;
  1799. bool trigger;
  1800. /* readonly */
  1801. StringHash type;
  1802. /* readonly */
  1803. String typeName;
  1804. Vector2 vertex1;
  1805. Vector2 vertex2;
  1806. /* readonly */
  1807. int weakRefs;
  1808. };
  1809. class CollisionPolygon2D
  1810. {
  1811. // Methods:
  1812. void ApplyAttributes();
  1813. void DrawDebugGeometry(DebugRenderer, bool);
  1814. Variant GetAttribute(const String&) const;
  1815. ValueAnimation GetAttributeAnimation(const String&) const;
  1816. float GetAttributeAnimationSpeed(const String&) const;
  1817. float GetAttributeAnimationTime(const String&) const;
  1818. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1819. Variant GetAttributeDefault(const String&) const;
  1820. bool GetInterceptNetworkUpdate(const String&) const;
  1821. Array<Vector2> GetVertices() const;
  1822. bool HasSubscribedToEvent(Object, const String&);
  1823. bool HasSubscribedToEvent(const String&);
  1824. bool Load(File, bool = false);
  1825. bool Load(VectorBuffer&, bool = false);
  1826. bool LoadJSON(const JSONValue&, bool = false);
  1827. bool LoadXML(const XMLElement&, bool = false);
  1828. void MarkNetworkUpdate() const;
  1829. void Remove();
  1830. void RemoveAttributeAnimation(const String&);
  1831. void RemoveInstanceDefault();
  1832. void RemoveObjectAnimation();
  1833. void ResetToDefault();
  1834. bool Save(File) const;
  1835. bool Save(VectorBuffer&) const;
  1836. bool SaveJSON(JSONValue&) const;
  1837. bool SaveXML(XMLElement&) const;
  1838. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1839. void SetAnimationTime(float);
  1840. bool SetAttribute(const String&, const Variant&);
  1841. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1842. void SetAttributeAnimationSpeed(const String&, float);
  1843. void SetAttributeAnimationTime(const String&, float);
  1844. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1845. void SetInterceptNetworkUpdate(const String&, bool);
  1846. void SetVertex(uint, const Vector2&);
  1847. void SetVertices(Array<Vector2>);
  1848. const Vector2& GetVertex(uint) const;
  1849. // Properties:
  1850. bool animationEnabled;
  1851. /* readonly */
  1852. Array<Variant> attributeDefaults;
  1853. /* readonly */
  1854. Array<AttributeInfo> attributeInfos;
  1855. Array<Variant> attributes;
  1856. /* readonly */
  1857. String category;
  1858. int categoryBits;
  1859. float density;
  1860. bool enabled;
  1861. /* readonly */
  1862. bool enabledEffective;
  1863. float friction;
  1864. int groupIndex;
  1865. /* readonly */
  1866. uint id;
  1867. /* readonly */
  1868. float inertia;
  1869. int maskBits;
  1870. /* readonly */
  1871. float mass;
  1872. /* readonly */
  1873. Vector2 massCenter;
  1874. /* readonly */
  1875. Node node;
  1876. /* readonly */
  1877. uint numAttributes;
  1878. ObjectAnimation objectAnimation;
  1879. /* readonly */
  1880. int refs;
  1881. float restitution;
  1882. bool temporary;
  1883. bool trigger;
  1884. /* readonly */
  1885. StringHash type;
  1886. /* readonly */
  1887. String typeName;
  1888. uint vertexCount;
  1889. /* readonly */
  1890. int weakRefs;
  1891. };
  1892. class CollisionShape
  1893. {
  1894. // Methods:
  1895. void ApplyAttributes();
  1896. void DrawDebugGeometry(DebugRenderer, bool);
  1897. Variant GetAttribute(const String&) const;
  1898. ValueAnimation GetAttributeAnimation(const String&) const;
  1899. float GetAttributeAnimationSpeed(const String&) const;
  1900. float GetAttributeAnimationTime(const String&) const;
  1901. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1902. Variant GetAttributeDefault(const String&) const;
  1903. bool GetInterceptNetworkUpdate(const String&) const;
  1904. bool HasSubscribedToEvent(Object, const String&);
  1905. bool HasSubscribedToEvent(const String&);
  1906. bool Load(File, bool = false);
  1907. bool Load(VectorBuffer&, bool = false);
  1908. bool LoadJSON(const JSONValue&, bool = false);
  1909. bool LoadXML(const XMLElement&, bool = false);
  1910. void MarkNetworkUpdate() const;
  1911. void Remove();
  1912. void RemoveAttributeAnimation(const String&);
  1913. void RemoveInstanceDefault();
  1914. void RemoveObjectAnimation();
  1915. void ResetToDefault();
  1916. bool Save(File) const;
  1917. bool Save(VectorBuffer&) const;
  1918. bool SaveJSON(JSONValue&) const;
  1919. bool SaveXML(XMLElement&) const;
  1920. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1921. void SetAnimationTime(float);
  1922. bool SetAttribute(const String&, const Variant&);
  1923. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1924. void SetAttributeAnimationSpeed(const String&, float);
  1925. void SetAttributeAnimationTime(const String&, float);
  1926. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1927. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1928. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1929. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1930. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1931. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1932. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1933. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1934. void SetInterceptNetworkUpdate(const String&, bool);
  1935. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1936. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1937. void SetTerrain(uint = 0);
  1938. void SetTransform(const Vector3&, const Quaternion&);
  1939. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1940. // Properties:
  1941. bool animationEnabled;
  1942. /* readonly */
  1943. Array<Variant> attributeDefaults;
  1944. /* readonly */
  1945. Array<AttributeInfo> attributeInfos;
  1946. Array<Variant> attributes;
  1947. /* readonly */
  1948. String category;
  1949. bool enabled;
  1950. /* readonly */
  1951. bool enabledEffective;
  1952. /* readonly */
  1953. uint id;
  1954. uint lodLevel;
  1955. float margin;
  1956. Model model;
  1957. /* readonly */
  1958. Node node;
  1959. /* readonly */
  1960. uint numAttributes;
  1961. ObjectAnimation objectAnimation;
  1962. Vector3 position;
  1963. /* readonly */
  1964. int refs;
  1965. Quaternion rotation;
  1966. ShapeType shapeType;
  1967. Vector3 size;
  1968. bool temporary;
  1969. /* readonly */
  1970. StringHash type;
  1971. /* readonly */
  1972. String typeName;
  1973. /* readonly */
  1974. int weakRefs;
  1975. /* readonly */
  1976. BoundingBox worldBoundingBox;
  1977. };
  1978. class CollisionShape2D
  1979. {
  1980. // Methods:
  1981. void ApplyAttributes();
  1982. void DrawDebugGeometry(DebugRenderer, bool);
  1983. Variant GetAttribute(const String&) const;
  1984. ValueAnimation GetAttributeAnimation(const String&) const;
  1985. float GetAttributeAnimationSpeed(const String&) const;
  1986. float GetAttributeAnimationTime(const String&) const;
  1987. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1988. Variant GetAttributeDefault(const String&) const;
  1989. bool GetInterceptNetworkUpdate(const String&) const;
  1990. bool HasSubscribedToEvent(Object, const String&);
  1991. bool HasSubscribedToEvent(const String&);
  1992. bool Load(File, bool = false);
  1993. bool Load(VectorBuffer&, bool = false);
  1994. bool LoadJSON(const JSONValue&, bool = false);
  1995. bool LoadXML(const XMLElement&, bool = false);
  1996. void MarkNetworkUpdate() const;
  1997. void Remove();
  1998. void RemoveAttributeAnimation(const String&);
  1999. void RemoveInstanceDefault();
  2000. void RemoveObjectAnimation();
  2001. void ResetToDefault();
  2002. bool Save(File) const;
  2003. bool Save(VectorBuffer&) const;
  2004. bool SaveJSON(JSONValue&) const;
  2005. bool SaveXML(XMLElement&) const;
  2006. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2007. void SetAnimationTime(float);
  2008. bool SetAttribute(const String&, const Variant&);
  2009. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2010. void SetAttributeAnimationSpeed(const String&, float);
  2011. void SetAttributeAnimationTime(const String&, float);
  2012. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2013. void SetInterceptNetworkUpdate(const String&, bool);
  2014. // Properties:
  2015. bool animationEnabled;
  2016. /* readonly */
  2017. Array<Variant> attributeDefaults;
  2018. /* readonly */
  2019. Array<AttributeInfo> attributeInfos;
  2020. Array<Variant> attributes;
  2021. /* readonly */
  2022. String category;
  2023. int categoryBits;
  2024. float density;
  2025. bool enabled;
  2026. /* readonly */
  2027. bool enabledEffective;
  2028. float friction;
  2029. int groupIndex;
  2030. /* readonly */
  2031. uint id;
  2032. /* readonly */
  2033. float inertia;
  2034. int maskBits;
  2035. /* readonly */
  2036. float mass;
  2037. /* readonly */
  2038. Vector2 massCenter;
  2039. /* readonly */
  2040. Node node;
  2041. /* readonly */
  2042. uint numAttributes;
  2043. ObjectAnimation objectAnimation;
  2044. /* readonly */
  2045. int refs;
  2046. float restitution;
  2047. bool temporary;
  2048. bool trigger;
  2049. /* readonly */
  2050. StringHash type;
  2051. /* readonly */
  2052. String typeName;
  2053. /* readonly */
  2054. int weakRefs;
  2055. };
  2056. class Color
  2057. {
  2058. // Methods:
  2059. Color Abs() const;
  2060. float Average() const;
  2061. float Chroma() const;
  2062. void Clip(bool);
  2063. bool Equals() const;
  2064. void FromHSL(float, float, float, float);
  2065. void FromHSV(float, float, float, float);
  2066. float Hue() const;
  2067. void Invert(bool);
  2068. Color Lerp(const Color&, float) const;
  2069. float Lightness() const;
  2070. float Luma() const;
  2071. float MaxRGB() const;
  2072. float MinRGB() const;
  2073. float Range() const;
  2074. float SaturationHSL() const;
  2075. float SaturationHSV() const;
  2076. float SumRGB() const;
  2077. Vector3 ToHSL() const;
  2078. Vector3 ToHSV() const;
  2079. String ToString() const;
  2080. uint ToUInt() const;
  2081. float Value() const;
  2082. // Properties:
  2083. float a;
  2084. float b;
  2085. /* readonly */
  2086. Array<float> data;
  2087. float g;
  2088. float r;
  2089. /* readonly */
  2090. Vector3 rgb;
  2091. /* readonly */
  2092. Vector4 rgba;
  2093. };
  2094. class ColorFrame
  2095. {
  2096. // Properties:
  2097. Color color;
  2098. float time;
  2099. };
  2100. class Component
  2101. {
  2102. // Methods:
  2103. void ApplyAttributes();
  2104. void DrawDebugGeometry(DebugRenderer, bool);
  2105. Variant GetAttribute(const String&) const;
  2106. ValueAnimation GetAttributeAnimation(const String&) const;
  2107. float GetAttributeAnimationSpeed(const String&) const;
  2108. float GetAttributeAnimationTime(const String&) const;
  2109. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2110. Variant GetAttributeDefault(const String&) const;
  2111. bool GetInterceptNetworkUpdate(const String&) const;
  2112. bool HasSubscribedToEvent(Object, const String&);
  2113. bool HasSubscribedToEvent(const String&);
  2114. bool Load(File, bool = false);
  2115. bool Load(VectorBuffer&, bool = false);
  2116. bool LoadJSON(const JSONValue&, bool = false);
  2117. bool LoadXML(const XMLElement&, bool = false);
  2118. void MarkNetworkUpdate() const;
  2119. void Remove();
  2120. void RemoveAttributeAnimation(const String&);
  2121. void RemoveInstanceDefault();
  2122. void RemoveObjectAnimation();
  2123. void ResetToDefault();
  2124. bool Save(File) const;
  2125. bool Save(VectorBuffer&) const;
  2126. bool SaveJSON(JSONValue&) const;
  2127. bool SaveXML(XMLElement&) const;
  2128. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2129. void SetAnimationTime(float);
  2130. bool SetAttribute(const String&, const Variant&);
  2131. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2132. void SetAttributeAnimationSpeed(const String&, float);
  2133. void SetAttributeAnimationTime(const String&, float);
  2134. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2135. void SetInterceptNetworkUpdate(const String&, bool);
  2136. // Properties:
  2137. bool animationEnabled;
  2138. /* readonly */
  2139. Array<Variant> attributeDefaults;
  2140. /* readonly */
  2141. Array<AttributeInfo> attributeInfos;
  2142. Array<Variant> attributes;
  2143. /* readonly */
  2144. String category;
  2145. bool enabled;
  2146. /* readonly */
  2147. bool enabledEffective;
  2148. /* readonly */
  2149. uint id;
  2150. /* readonly */
  2151. Node node;
  2152. /* readonly */
  2153. uint numAttributes;
  2154. ObjectAnimation objectAnimation;
  2155. /* readonly */
  2156. int refs;
  2157. bool temporary;
  2158. /* readonly */
  2159. StringHash type;
  2160. /* readonly */
  2161. String typeName;
  2162. /* readonly */
  2163. int weakRefs;
  2164. };
  2165. class Connection
  2166. {
  2167. // Methods:
  2168. void Disconnect(int = 0);
  2169. bool HasSubscribedToEvent(Object, const String&);
  2170. bool HasSubscribedToEvent(const String&);
  2171. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2172. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2173. void SendPackageToClient(PackageFile);
  2174. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2175. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2176. String ToString() const;
  2177. // Properties:
  2178. /* readonly */
  2179. String address;
  2180. /* readonly */
  2181. float bytesInPerSec;
  2182. /* readonly */
  2183. float bytesOutPerSec;
  2184. /* readonly */
  2185. String category;
  2186. /* readonly */
  2187. bool client;
  2188. /* readonly */
  2189. bool connectPending;
  2190. /* readonly */
  2191. bool connected;
  2192. Controls controls;
  2193. /* readonly */
  2194. String downloadName;
  2195. /* readonly */
  2196. float downloadProgress;
  2197. VariantMap identity;
  2198. /* readonly */
  2199. float lastHeardTime;
  2200. bool logStatistics;
  2201. /* readonly */
  2202. uint numDownloads;
  2203. /* readonly */
  2204. float packetsInPerSec;
  2205. /* readonly */
  2206. float packetsOutPerSec;
  2207. /* readonly */
  2208. uint16 port;
  2209. Vector3 position;
  2210. /* readonly */
  2211. int refs;
  2212. Quaternion rotation;
  2213. /* readonly */
  2214. float roundTripTime;
  2215. Scene scene;
  2216. /* readonly */
  2217. bool sceneLoaded;
  2218. uint8 timeStamp;
  2219. /* readonly */
  2220. StringHash type;
  2221. /* readonly */
  2222. String typeName;
  2223. /* readonly */
  2224. int weakRefs;
  2225. };
  2226. class Console
  2227. {
  2228. // Methods:
  2229. void CopySelectedRows() const;
  2230. bool HasSubscribedToEvent(Object, const String&);
  2231. bool HasSubscribedToEvent(const String&);
  2232. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2233. void Toggle();
  2234. void UpdateElements();
  2235. // Properties:
  2236. bool autoVisibleOnError;
  2237. /* readonly */
  2238. BorderImage background;
  2239. /* readonly */
  2240. String category;
  2241. /* readonly */
  2242. Button closeButton;
  2243. String commandInterpreter;
  2244. XMLFile defaultStyle;
  2245. bool focusOnShow;
  2246. /* readonly */
  2247. uint historyPosition;
  2248. /* readonly */
  2249. Array<String> historyRow;
  2250. /* readonly */
  2251. LineEdit lineEdit;
  2252. uint numBufferedRows;
  2253. uint numHistoryRows;
  2254. uint numRows;
  2255. /* readonly */
  2256. int refs;
  2257. /* readonly */
  2258. StringHash type;
  2259. /* readonly */
  2260. String typeName;
  2261. bool visible;
  2262. /* readonly */
  2263. int weakRefs;
  2264. };
  2265. class Constraint
  2266. {
  2267. // Methods:
  2268. void ApplyAttributes();
  2269. void DrawDebugGeometry(DebugRenderer, bool);
  2270. Variant GetAttribute(const String&) const;
  2271. ValueAnimation GetAttributeAnimation(const String&) const;
  2272. float GetAttributeAnimationSpeed(const String&) const;
  2273. float GetAttributeAnimationTime(const String&) const;
  2274. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2275. Variant GetAttributeDefault(const String&) const;
  2276. bool GetInterceptNetworkUpdate(const String&) const;
  2277. bool HasSubscribedToEvent(Object, const String&);
  2278. bool HasSubscribedToEvent(const String&);
  2279. bool Load(File, bool = false);
  2280. bool Load(VectorBuffer&, bool = false);
  2281. bool LoadJSON(const JSONValue&, bool = false);
  2282. bool LoadXML(const XMLElement&, bool = false);
  2283. void MarkNetworkUpdate() const;
  2284. void Remove();
  2285. void RemoveAttributeAnimation(const String&);
  2286. void RemoveInstanceDefault();
  2287. void RemoveObjectAnimation();
  2288. void ResetToDefault();
  2289. bool Save(File) const;
  2290. bool Save(VectorBuffer&) const;
  2291. bool SaveJSON(JSONValue&) const;
  2292. bool SaveXML(XMLElement&) const;
  2293. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2294. void SetAnimationTime(float);
  2295. bool SetAttribute(const String&, const Variant&);
  2296. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2297. void SetAttributeAnimationSpeed(const String&, float);
  2298. void SetAttributeAnimationTime(const String&, float);
  2299. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2300. void SetInterceptNetworkUpdate(const String&, bool);
  2301. // Properties:
  2302. bool animationEnabled;
  2303. /* readonly */
  2304. Array<Variant> attributeDefaults;
  2305. /* readonly */
  2306. Array<AttributeInfo> attributeInfos;
  2307. Array<Variant> attributes;
  2308. /* writeonly */
  2309. Vector3 axis;
  2310. /* readonly */
  2311. String category;
  2312. float cfm;
  2313. ConstraintType constraintType;
  2314. bool disableCollision;
  2315. bool enabled;
  2316. /* readonly */
  2317. bool enabledEffective;
  2318. float erp;
  2319. Vector2 highLimit;
  2320. /* readonly */
  2321. uint id;
  2322. Vector2 lowLimit;
  2323. /* readonly */
  2324. Node node;
  2325. /* readonly */
  2326. uint numAttributes;
  2327. ObjectAnimation objectAnimation;
  2328. /* writeonly */
  2329. Vector3 otherAxis;
  2330. RigidBody otherBody;
  2331. Vector3 otherPosition;
  2332. Quaternion otherRotation;
  2333. /* readonly */
  2334. RigidBody ownBody;
  2335. Vector3 position;
  2336. /* readonly */
  2337. int refs;
  2338. Quaternion rotation;
  2339. bool temporary;
  2340. /* readonly */
  2341. StringHash type;
  2342. /* readonly */
  2343. String typeName;
  2344. /* readonly */
  2345. int weakRefs;
  2346. Vector3 worldPosition;
  2347. };
  2348. class Constraint2D
  2349. {
  2350. // Methods:
  2351. void ApplyAttributes();
  2352. void DrawDebugGeometry(DebugRenderer, bool);
  2353. Variant GetAttribute(const String&) const;
  2354. ValueAnimation GetAttributeAnimation(const String&) const;
  2355. float GetAttributeAnimationSpeed(const String&) const;
  2356. float GetAttributeAnimationTime(const String&) const;
  2357. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2358. Variant GetAttributeDefault(const String&) const;
  2359. bool GetInterceptNetworkUpdate(const String&) const;
  2360. bool HasSubscribedToEvent(Object, const String&);
  2361. bool HasSubscribedToEvent(const String&);
  2362. bool Load(File, bool = false);
  2363. bool Load(VectorBuffer&, bool = false);
  2364. bool LoadJSON(const JSONValue&, bool = false);
  2365. bool LoadXML(const XMLElement&, bool = false);
  2366. void MarkNetworkUpdate() const;
  2367. void Remove();
  2368. void RemoveAttributeAnimation(const String&);
  2369. void RemoveInstanceDefault();
  2370. void RemoveObjectAnimation();
  2371. void ResetToDefault();
  2372. bool Save(File) const;
  2373. bool Save(VectorBuffer&) const;
  2374. bool SaveJSON(JSONValue&) const;
  2375. bool SaveXML(XMLElement&) const;
  2376. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2377. void SetAnimationTime(float);
  2378. bool SetAttribute(const String&, const Variant&);
  2379. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2380. void SetAttributeAnimationSpeed(const String&, float);
  2381. void SetAttributeAnimationTime(const String&, float);
  2382. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2383. void SetInterceptNetworkUpdate(const String&, bool);
  2384. // Properties:
  2385. bool animationEnabled;
  2386. /* readonly */
  2387. Array<Variant> attributeDefaults;
  2388. /* readonly */
  2389. Array<AttributeInfo> attributeInfos;
  2390. Array<Variant> attributes;
  2391. /* readonly */
  2392. String category;
  2393. bool collideConnected;
  2394. bool enabled;
  2395. /* readonly */
  2396. bool enabledEffective;
  2397. /* readonly */
  2398. uint id;
  2399. /* readonly */
  2400. Node node;
  2401. /* readonly */
  2402. uint numAttributes;
  2403. ObjectAnimation objectAnimation;
  2404. RigidBody2D otherBody;
  2405. /* readonly */
  2406. RigidBody2D ownerBody;
  2407. /* readonly */
  2408. int refs;
  2409. bool temporary;
  2410. /* readonly */
  2411. StringHash type;
  2412. /* readonly */
  2413. String typeName;
  2414. /* readonly */
  2415. int weakRefs;
  2416. };
  2417. class ConstraintDistance2D
  2418. {
  2419. // Methods:
  2420. void ApplyAttributes();
  2421. void DrawDebugGeometry(DebugRenderer, bool);
  2422. Variant GetAttribute(const String&) const;
  2423. ValueAnimation GetAttributeAnimation(const String&) const;
  2424. float GetAttributeAnimationSpeed(const String&) const;
  2425. float GetAttributeAnimationTime(const String&) const;
  2426. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2427. Variant GetAttributeDefault(const String&) const;
  2428. bool GetInterceptNetworkUpdate(const String&) const;
  2429. bool HasSubscribedToEvent(Object, const String&);
  2430. bool HasSubscribedToEvent(const String&);
  2431. bool Load(File, bool = false);
  2432. bool Load(VectorBuffer&, bool = false);
  2433. bool LoadJSON(const JSONValue&, bool = false);
  2434. bool LoadXML(const XMLElement&, bool = false);
  2435. void MarkNetworkUpdate() const;
  2436. void Remove();
  2437. void RemoveAttributeAnimation(const String&);
  2438. void RemoveInstanceDefault();
  2439. void RemoveObjectAnimation();
  2440. void ResetToDefault();
  2441. bool Save(File) const;
  2442. bool Save(VectorBuffer&) const;
  2443. bool SaveJSON(JSONValue&) const;
  2444. bool SaveXML(XMLElement&) const;
  2445. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2446. void SetAnimationTime(float);
  2447. bool SetAttribute(const String&, const Variant&);
  2448. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2449. void SetAttributeAnimationSpeed(const String&, float);
  2450. void SetAttributeAnimationTime(const String&, float);
  2451. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2452. void SetInterceptNetworkUpdate(const String&, bool);
  2453. // Properties:
  2454. bool animationEnabled;
  2455. /* readonly */
  2456. Array<Variant> attributeDefaults;
  2457. /* readonly */
  2458. Array<AttributeInfo> attributeInfos;
  2459. Array<Variant> attributes;
  2460. /* readonly */
  2461. String category;
  2462. bool collideConnected;
  2463. float dampingRatio;
  2464. bool enabled;
  2465. /* readonly */
  2466. bool enabledEffective;
  2467. float frequencyHz;
  2468. /* readonly */
  2469. uint id;
  2470. /* readonly */
  2471. Node node;
  2472. /* readonly */
  2473. uint numAttributes;
  2474. ObjectAnimation objectAnimation;
  2475. RigidBody2D otherBody;
  2476. Vector2 otherBodyAnchor;
  2477. /* readonly */
  2478. RigidBody2D ownerBody;
  2479. Vector2 ownerBodyAnchor;
  2480. /* readonly */
  2481. int refs;
  2482. bool temporary;
  2483. /* readonly */
  2484. StringHash type;
  2485. /* readonly */
  2486. String typeName;
  2487. /* readonly */
  2488. int weakRefs;
  2489. };
  2490. class ConstraintFriction2D
  2491. {
  2492. // Methods:
  2493. void ApplyAttributes();
  2494. void DrawDebugGeometry(DebugRenderer, bool);
  2495. Variant GetAttribute(const String&) const;
  2496. ValueAnimation GetAttributeAnimation(const String&) const;
  2497. float GetAttributeAnimationSpeed(const String&) const;
  2498. float GetAttributeAnimationTime(const String&) const;
  2499. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2500. Variant GetAttributeDefault(const String&) const;
  2501. bool GetInterceptNetworkUpdate(const String&) const;
  2502. bool HasSubscribedToEvent(Object, const String&);
  2503. bool HasSubscribedToEvent(const String&);
  2504. bool Load(File, bool = false);
  2505. bool Load(VectorBuffer&, bool = false);
  2506. bool LoadJSON(const JSONValue&, bool = false);
  2507. bool LoadXML(const XMLElement&, bool = false);
  2508. void MarkNetworkUpdate() const;
  2509. void Remove();
  2510. void RemoveAttributeAnimation(const String&);
  2511. void RemoveInstanceDefault();
  2512. void RemoveObjectAnimation();
  2513. void ResetToDefault();
  2514. bool Save(File) const;
  2515. bool Save(VectorBuffer&) const;
  2516. bool SaveJSON(JSONValue&) const;
  2517. bool SaveXML(XMLElement&) const;
  2518. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2519. void SetAnimationTime(float);
  2520. bool SetAttribute(const String&, const Variant&);
  2521. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2522. void SetAttributeAnimationSpeed(const String&, float);
  2523. void SetAttributeAnimationTime(const String&, float);
  2524. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2525. void SetInterceptNetworkUpdate(const String&, bool);
  2526. // Properties:
  2527. Vector2 anchor;
  2528. bool animationEnabled;
  2529. /* readonly */
  2530. Array<Variant> attributeDefaults;
  2531. /* readonly */
  2532. Array<AttributeInfo> attributeInfos;
  2533. Array<Variant> attributes;
  2534. /* readonly */
  2535. String category;
  2536. bool collideConnected;
  2537. bool enabled;
  2538. /* readonly */
  2539. bool enabledEffective;
  2540. /* readonly */
  2541. uint id;
  2542. float maxForce;
  2543. float maxTorque;
  2544. /* readonly */
  2545. Node node;
  2546. /* readonly */
  2547. uint numAttributes;
  2548. ObjectAnimation objectAnimation;
  2549. RigidBody2D otherBody;
  2550. /* readonly */
  2551. RigidBody2D ownerBody;
  2552. /* readonly */
  2553. int refs;
  2554. bool temporary;
  2555. /* readonly */
  2556. StringHash type;
  2557. /* readonly */
  2558. String typeName;
  2559. /* readonly */
  2560. int weakRefs;
  2561. };
  2562. class ConstraintGear2D
  2563. {
  2564. // Methods:
  2565. void ApplyAttributes();
  2566. void DrawDebugGeometry(DebugRenderer, bool);
  2567. Variant GetAttribute(const String&) const;
  2568. ValueAnimation GetAttributeAnimation(const String&) const;
  2569. float GetAttributeAnimationSpeed(const String&) const;
  2570. float GetAttributeAnimationTime(const String&) const;
  2571. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2572. Variant GetAttributeDefault(const String&) const;
  2573. bool GetInterceptNetworkUpdate(const String&) const;
  2574. bool HasSubscribedToEvent(Object, const String&);
  2575. bool HasSubscribedToEvent(const String&);
  2576. bool Load(File, bool = false);
  2577. bool Load(VectorBuffer&, bool = false);
  2578. bool LoadJSON(const JSONValue&, bool = false);
  2579. bool LoadXML(const XMLElement&, bool = false);
  2580. void MarkNetworkUpdate() const;
  2581. void Remove();
  2582. void RemoveAttributeAnimation(const String&);
  2583. void RemoveInstanceDefault();
  2584. void RemoveObjectAnimation();
  2585. void ResetToDefault();
  2586. bool Save(File) const;
  2587. bool Save(VectorBuffer&) const;
  2588. bool SaveJSON(JSONValue&) const;
  2589. bool SaveXML(XMLElement&) const;
  2590. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2591. void SetAnimationTime(float);
  2592. bool SetAttribute(const String&, const Variant&);
  2593. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2594. void SetAttributeAnimationSpeed(const String&, float);
  2595. void SetAttributeAnimationTime(const String&, float);
  2596. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2597. void SetInterceptNetworkUpdate(const String&, bool);
  2598. // Properties:
  2599. bool animationEnabled;
  2600. /* readonly */
  2601. Array<Variant> attributeDefaults;
  2602. /* readonly */
  2603. Array<AttributeInfo> attributeInfos;
  2604. Array<Variant> attributes;
  2605. /* readonly */
  2606. String category;
  2607. bool collideConnected;
  2608. bool enabled;
  2609. /* readonly */
  2610. bool enabledEffective;
  2611. /* readonly */
  2612. uint id;
  2613. /* readonly */
  2614. Node node;
  2615. /* readonly */
  2616. uint numAttributes;
  2617. ObjectAnimation objectAnimation;
  2618. RigidBody2D otherBody;
  2619. Constraint2D otherConstraint;
  2620. /* readonly */
  2621. RigidBody2D ownerBody;
  2622. Constraint2D ownerConstraint;
  2623. float ratio;
  2624. /* readonly */
  2625. int refs;
  2626. bool temporary;
  2627. /* readonly */
  2628. StringHash type;
  2629. /* readonly */
  2630. String typeName;
  2631. /* readonly */
  2632. int weakRefs;
  2633. };
  2634. class ConstraintMotor2D
  2635. {
  2636. // Methods:
  2637. void ApplyAttributes();
  2638. void DrawDebugGeometry(DebugRenderer, bool);
  2639. Variant GetAttribute(const String&) const;
  2640. ValueAnimation GetAttributeAnimation(const String&) const;
  2641. float GetAttributeAnimationSpeed(const String&) const;
  2642. float GetAttributeAnimationTime(const String&) const;
  2643. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2644. Variant GetAttributeDefault(const String&) const;
  2645. bool GetInterceptNetworkUpdate(const String&) const;
  2646. bool HasSubscribedToEvent(Object, const String&);
  2647. bool HasSubscribedToEvent(const String&);
  2648. bool Load(File, bool = false);
  2649. bool Load(VectorBuffer&, bool = false);
  2650. bool LoadJSON(const JSONValue&, bool = false);
  2651. bool LoadXML(const XMLElement&, bool = false);
  2652. void MarkNetworkUpdate() const;
  2653. void Remove();
  2654. void RemoveAttributeAnimation(const String&);
  2655. void RemoveInstanceDefault();
  2656. void RemoveObjectAnimation();
  2657. void ResetToDefault();
  2658. bool Save(File) const;
  2659. bool Save(VectorBuffer&) const;
  2660. bool SaveJSON(JSONValue&) const;
  2661. bool SaveXML(XMLElement&) const;
  2662. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2663. void SetAnimationTime(float);
  2664. bool SetAttribute(const String&, const Variant&);
  2665. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2666. void SetAttributeAnimationSpeed(const String&, float);
  2667. void SetAttributeAnimationTime(const String&, float);
  2668. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2669. void SetInterceptNetworkUpdate(const String&, bool);
  2670. // Properties:
  2671. float angularOffset;
  2672. bool animationEnabled;
  2673. /* readonly */
  2674. Array<Variant> attributeDefaults;
  2675. /* readonly */
  2676. Array<AttributeInfo> attributeInfos;
  2677. Array<Variant> attributes;
  2678. /* readonly */
  2679. String category;
  2680. bool collideConnected;
  2681. float correctionFactor;
  2682. bool enabled;
  2683. /* readonly */
  2684. bool enabledEffective;
  2685. /* readonly */
  2686. uint id;
  2687. Vector2 linearOffset;
  2688. float maxForce;
  2689. float maxTorque;
  2690. /* readonly */
  2691. Node node;
  2692. /* readonly */
  2693. uint numAttributes;
  2694. ObjectAnimation objectAnimation;
  2695. RigidBody2D otherBody;
  2696. /* readonly */
  2697. RigidBody2D ownerBody;
  2698. /* readonly */
  2699. int refs;
  2700. bool temporary;
  2701. /* readonly */
  2702. StringHash type;
  2703. /* readonly */
  2704. String typeName;
  2705. /* readonly */
  2706. int weakRefs;
  2707. };
  2708. class ConstraintMouse2D
  2709. {
  2710. // Methods:
  2711. void ApplyAttributes();
  2712. void DrawDebugGeometry(DebugRenderer, bool);
  2713. Variant GetAttribute(const String&) const;
  2714. ValueAnimation GetAttributeAnimation(const String&) const;
  2715. float GetAttributeAnimationSpeed(const String&) const;
  2716. float GetAttributeAnimationTime(const String&) const;
  2717. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2718. Variant GetAttributeDefault(const String&) const;
  2719. bool GetInterceptNetworkUpdate(const String&) const;
  2720. bool HasSubscribedToEvent(Object, const String&);
  2721. bool HasSubscribedToEvent(const String&);
  2722. bool Load(File, bool = false);
  2723. bool Load(VectorBuffer&, bool = false);
  2724. bool LoadJSON(const JSONValue&, bool = false);
  2725. bool LoadXML(const XMLElement&, bool = false);
  2726. void MarkNetworkUpdate() const;
  2727. void Remove();
  2728. void RemoveAttributeAnimation(const String&);
  2729. void RemoveInstanceDefault();
  2730. void RemoveObjectAnimation();
  2731. void ResetToDefault();
  2732. bool Save(File) const;
  2733. bool Save(VectorBuffer&) const;
  2734. bool SaveJSON(JSONValue&) const;
  2735. bool SaveXML(XMLElement&) const;
  2736. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2737. void SetAnimationTime(float);
  2738. bool SetAttribute(const String&, const Variant&);
  2739. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2740. void SetAttributeAnimationSpeed(const String&, float);
  2741. void SetAttributeAnimationTime(const String&, float);
  2742. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2743. void SetInterceptNetworkUpdate(const String&, bool);
  2744. // Properties:
  2745. bool animationEnabled;
  2746. /* readonly */
  2747. Array<Variant> attributeDefaults;
  2748. /* readonly */
  2749. Array<AttributeInfo> attributeInfos;
  2750. Array<Variant> attributes;
  2751. /* readonly */
  2752. String category;
  2753. bool collideConnected;
  2754. float dampingRatio;
  2755. bool enabled;
  2756. /* readonly */
  2757. bool enabledEffective;
  2758. float frequencyHz;
  2759. /* readonly */
  2760. uint id;
  2761. float maxForce;
  2762. /* readonly */
  2763. Node node;
  2764. /* readonly */
  2765. uint numAttributes;
  2766. ObjectAnimation objectAnimation;
  2767. RigidBody2D otherBody;
  2768. /* readonly */
  2769. RigidBody2D ownerBody;
  2770. /* readonly */
  2771. int refs;
  2772. Vector2 target;
  2773. bool temporary;
  2774. /* readonly */
  2775. StringHash type;
  2776. /* readonly */
  2777. String typeName;
  2778. /* readonly */
  2779. int weakRefs;
  2780. };
  2781. class ConstraintPrismatic2D
  2782. {
  2783. // Methods:
  2784. void ApplyAttributes();
  2785. void DrawDebugGeometry(DebugRenderer, bool);
  2786. Variant GetAttribute(const String&) const;
  2787. ValueAnimation GetAttributeAnimation(const String&) const;
  2788. float GetAttributeAnimationSpeed(const String&) const;
  2789. float GetAttributeAnimationTime(const String&) const;
  2790. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2791. Variant GetAttributeDefault(const String&) const;
  2792. bool GetInterceptNetworkUpdate(const String&) const;
  2793. bool HasSubscribedToEvent(Object, const String&);
  2794. bool HasSubscribedToEvent(const String&);
  2795. bool Load(File, bool = false);
  2796. bool Load(VectorBuffer&, bool = false);
  2797. bool LoadJSON(const JSONValue&, bool = false);
  2798. bool LoadXML(const XMLElement&, bool = false);
  2799. void MarkNetworkUpdate() const;
  2800. void Remove();
  2801. void RemoveAttributeAnimation(const String&);
  2802. void RemoveInstanceDefault();
  2803. void RemoveObjectAnimation();
  2804. void ResetToDefault();
  2805. bool Save(File) const;
  2806. bool Save(VectorBuffer&) const;
  2807. bool SaveJSON(JSONValue&) const;
  2808. bool SaveXML(XMLElement&) const;
  2809. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2810. void SetAnimationTime(float);
  2811. bool SetAttribute(const String&, const Variant&);
  2812. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2813. void SetAttributeAnimationSpeed(const String&, float);
  2814. void SetAttributeAnimationTime(const String&, float);
  2815. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2816. void SetInterceptNetworkUpdate(const String&, bool);
  2817. // Properties:
  2818. Vector2 anchor;
  2819. bool animationEnabled;
  2820. /* readonly */
  2821. Array<Variant> attributeDefaults;
  2822. /* readonly */
  2823. Array<AttributeInfo> attributeInfos;
  2824. Array<Variant> attributes;
  2825. Vector2 axis;
  2826. /* readonly */
  2827. String category;
  2828. bool collideConnected;
  2829. bool enableLimit;
  2830. bool enableMotor;
  2831. bool enabled;
  2832. /* readonly */
  2833. bool enabledEffective;
  2834. /* readonly */
  2835. uint id;
  2836. float lowerTranslation;
  2837. float maxMotorForce;
  2838. float motorSpeed;
  2839. /* readonly */
  2840. Node node;
  2841. /* readonly */
  2842. uint numAttributes;
  2843. ObjectAnimation objectAnimation;
  2844. RigidBody2D otherBody;
  2845. /* readonly */
  2846. RigidBody2D ownerBody;
  2847. /* readonly */
  2848. int refs;
  2849. bool temporary;
  2850. /* readonly */
  2851. StringHash type;
  2852. /* readonly */
  2853. String typeName;
  2854. float upperTranslation;
  2855. /* readonly */
  2856. int weakRefs;
  2857. };
  2858. class ConstraintPulley2D
  2859. {
  2860. // Methods:
  2861. void ApplyAttributes();
  2862. void DrawDebugGeometry(DebugRenderer, bool);
  2863. Variant GetAttribute(const String&) const;
  2864. ValueAnimation GetAttributeAnimation(const String&) const;
  2865. float GetAttributeAnimationSpeed(const String&) const;
  2866. float GetAttributeAnimationTime(const String&) const;
  2867. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2868. Variant GetAttributeDefault(const String&) const;
  2869. bool GetInterceptNetworkUpdate(const String&) const;
  2870. bool HasSubscribedToEvent(Object, const String&);
  2871. bool HasSubscribedToEvent(const String&);
  2872. bool Load(File, bool = false);
  2873. bool Load(VectorBuffer&, bool = false);
  2874. bool LoadJSON(const JSONValue&, bool = false);
  2875. bool LoadXML(const XMLElement&, bool = false);
  2876. void MarkNetworkUpdate() const;
  2877. void Remove();
  2878. void RemoveAttributeAnimation(const String&);
  2879. void RemoveInstanceDefault();
  2880. void RemoveObjectAnimation();
  2881. void ResetToDefault();
  2882. bool Save(File) const;
  2883. bool Save(VectorBuffer&) const;
  2884. bool SaveJSON(JSONValue&) const;
  2885. bool SaveXML(XMLElement&) const;
  2886. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2887. void SetAnimationTime(float);
  2888. bool SetAttribute(const String&, const Variant&);
  2889. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2890. void SetAttributeAnimationSpeed(const String&, float);
  2891. void SetAttributeAnimationTime(const String&, float);
  2892. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2893. void SetInterceptNetworkUpdate(const String&, bool);
  2894. // Properties:
  2895. bool animationEnabled;
  2896. /* readonly */
  2897. Array<Variant> attributeDefaults;
  2898. /* readonly */
  2899. Array<AttributeInfo> attributeInfos;
  2900. Array<Variant> attributes;
  2901. /* readonly */
  2902. String category;
  2903. bool collideConnected;
  2904. bool enabled;
  2905. /* readonly */
  2906. bool enabledEffective;
  2907. /* readonly */
  2908. uint id;
  2909. /* readonly */
  2910. Node node;
  2911. /* readonly */
  2912. uint numAttributes;
  2913. ObjectAnimation objectAnimation;
  2914. RigidBody2D otherBody;
  2915. Vector2 otherBodyAnchor;
  2916. Vector2 otherBodyGroundAnchor;
  2917. /* readonly */
  2918. RigidBody2D ownerBody;
  2919. Vector2 ownerBodyAnchor;
  2920. Vector2 ownerBodyGroundAnchor;
  2921. float ratio;
  2922. /* readonly */
  2923. int refs;
  2924. bool temporary;
  2925. /* readonly */
  2926. StringHash type;
  2927. /* readonly */
  2928. String typeName;
  2929. /* readonly */
  2930. int weakRefs;
  2931. };
  2932. class ConstraintRevolute2D
  2933. {
  2934. // Methods:
  2935. void ApplyAttributes();
  2936. void DrawDebugGeometry(DebugRenderer, bool);
  2937. Variant GetAttribute(const String&) const;
  2938. ValueAnimation GetAttributeAnimation(const String&) const;
  2939. float GetAttributeAnimationSpeed(const String&) const;
  2940. float GetAttributeAnimationTime(const String&) const;
  2941. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2942. Variant GetAttributeDefault(const String&) const;
  2943. bool GetInterceptNetworkUpdate(const String&) const;
  2944. bool HasSubscribedToEvent(Object, const String&);
  2945. bool HasSubscribedToEvent(const String&);
  2946. bool Load(File, bool = false);
  2947. bool Load(VectorBuffer&, bool = false);
  2948. bool LoadJSON(const JSONValue&, bool = false);
  2949. bool LoadXML(const XMLElement&, bool = false);
  2950. void MarkNetworkUpdate() const;
  2951. void Remove();
  2952. void RemoveAttributeAnimation(const String&);
  2953. void RemoveInstanceDefault();
  2954. void RemoveObjectAnimation();
  2955. void ResetToDefault();
  2956. bool Save(File) const;
  2957. bool Save(VectorBuffer&) const;
  2958. bool SaveJSON(JSONValue&) const;
  2959. bool SaveXML(XMLElement&) const;
  2960. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2961. void SetAnimationTime(float);
  2962. bool SetAttribute(const String&, const Variant&);
  2963. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2964. void SetAttributeAnimationSpeed(const String&, float);
  2965. void SetAttributeAnimationTime(const String&, float);
  2966. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2967. void SetInterceptNetworkUpdate(const String&, bool);
  2968. // Properties:
  2969. Vector2 anchor;
  2970. bool animationEnabled;
  2971. /* readonly */
  2972. Array<Variant> attributeDefaults;
  2973. /* readonly */
  2974. Array<AttributeInfo> attributeInfos;
  2975. Array<Variant> attributes;
  2976. /* readonly */
  2977. String category;
  2978. bool collideConnected;
  2979. bool enableLimit;
  2980. bool enableMotor;
  2981. bool enabled;
  2982. /* readonly */
  2983. bool enabledEffective;
  2984. /* readonly */
  2985. uint id;
  2986. float lowerAngle;
  2987. float maxMotorTorque;
  2988. float motorSpeed;
  2989. /* readonly */
  2990. Node node;
  2991. /* readonly */
  2992. uint numAttributes;
  2993. ObjectAnimation objectAnimation;
  2994. RigidBody2D otherBody;
  2995. /* readonly */
  2996. RigidBody2D ownerBody;
  2997. /* readonly */
  2998. int refs;
  2999. bool temporary;
  3000. /* readonly */
  3001. StringHash type;
  3002. /* readonly */
  3003. String typeName;
  3004. float upperAngle;
  3005. /* readonly */
  3006. int weakRefs;
  3007. };
  3008. class ConstraintRope2D
  3009. {
  3010. // Methods:
  3011. void ApplyAttributes();
  3012. void DrawDebugGeometry(DebugRenderer, bool);
  3013. Variant GetAttribute(const String&) const;
  3014. ValueAnimation GetAttributeAnimation(const String&) const;
  3015. float GetAttributeAnimationSpeed(const String&) const;
  3016. float GetAttributeAnimationTime(const String&) const;
  3017. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3018. Variant GetAttributeDefault(const String&) const;
  3019. bool GetInterceptNetworkUpdate(const String&) const;
  3020. bool HasSubscribedToEvent(Object, const String&);
  3021. bool HasSubscribedToEvent(const String&);
  3022. bool Load(File, bool = false);
  3023. bool Load(VectorBuffer&, bool = false);
  3024. bool LoadJSON(const JSONValue&, bool = false);
  3025. bool LoadXML(const XMLElement&, bool = false);
  3026. void MarkNetworkUpdate() const;
  3027. void Remove();
  3028. void RemoveAttributeAnimation(const String&);
  3029. void RemoveInstanceDefault();
  3030. void RemoveObjectAnimation();
  3031. void ResetToDefault();
  3032. bool Save(File) const;
  3033. bool Save(VectorBuffer&) const;
  3034. bool SaveJSON(JSONValue&) const;
  3035. bool SaveXML(XMLElement&) const;
  3036. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3037. void SetAnimationTime(float);
  3038. bool SetAttribute(const String&, const Variant&);
  3039. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3040. void SetAttributeAnimationSpeed(const String&, float);
  3041. void SetAttributeAnimationTime(const String&, float);
  3042. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3043. void SetInterceptNetworkUpdate(const String&, bool);
  3044. // Properties:
  3045. bool animationEnabled;
  3046. /* readonly */
  3047. Array<Variant> attributeDefaults;
  3048. /* readonly */
  3049. Array<AttributeInfo> attributeInfos;
  3050. Array<Variant> attributes;
  3051. /* readonly */
  3052. String category;
  3053. bool collideConnected;
  3054. bool enabled;
  3055. /* readonly */
  3056. bool enabledEffective;
  3057. /* readonly */
  3058. uint id;
  3059. float maxLength;
  3060. /* readonly */
  3061. Node node;
  3062. /* readonly */
  3063. uint numAttributes;
  3064. ObjectAnimation objectAnimation;
  3065. RigidBody2D otherBody;
  3066. Vector2 otherBodyAnchor;
  3067. /* readonly */
  3068. RigidBody2D ownerBody;
  3069. Vector2 ownerBodyAnchor;
  3070. /* readonly */
  3071. int refs;
  3072. bool temporary;
  3073. /* readonly */
  3074. StringHash type;
  3075. /* readonly */
  3076. String typeName;
  3077. /* readonly */
  3078. int weakRefs;
  3079. };
  3080. class ConstraintWeld2D
  3081. {
  3082. // Methods:
  3083. void ApplyAttributes();
  3084. void DrawDebugGeometry(DebugRenderer, bool);
  3085. Variant GetAttribute(const String&) const;
  3086. ValueAnimation GetAttributeAnimation(const String&) const;
  3087. float GetAttributeAnimationSpeed(const String&) const;
  3088. float GetAttributeAnimationTime(const String&) const;
  3089. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3090. Variant GetAttributeDefault(const String&) const;
  3091. bool GetInterceptNetworkUpdate(const String&) const;
  3092. bool HasSubscribedToEvent(Object, const String&);
  3093. bool HasSubscribedToEvent(const String&);
  3094. bool Load(File, bool = false);
  3095. bool Load(VectorBuffer&, bool = false);
  3096. bool LoadJSON(const JSONValue&, bool = false);
  3097. bool LoadXML(const XMLElement&, bool = false);
  3098. void MarkNetworkUpdate() const;
  3099. void Remove();
  3100. void RemoveAttributeAnimation(const String&);
  3101. void RemoveInstanceDefault();
  3102. void RemoveObjectAnimation();
  3103. void ResetToDefault();
  3104. bool Save(File) const;
  3105. bool Save(VectorBuffer&) const;
  3106. bool SaveJSON(JSONValue&) const;
  3107. bool SaveXML(XMLElement&) const;
  3108. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3109. void SetAnimationTime(float);
  3110. bool SetAttribute(const String&, const Variant&);
  3111. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3112. void SetAttributeAnimationSpeed(const String&, float);
  3113. void SetAttributeAnimationTime(const String&, float);
  3114. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3115. void SetInterceptNetworkUpdate(const String&, bool);
  3116. // Properties:
  3117. Vector2 anchor;
  3118. bool animationEnabled;
  3119. /* readonly */
  3120. Array<Variant> attributeDefaults;
  3121. /* readonly */
  3122. Array<AttributeInfo> attributeInfos;
  3123. Array<Variant> attributes;
  3124. /* readonly */
  3125. String category;
  3126. bool collideConnected;
  3127. float dampingRatio;
  3128. bool enabled;
  3129. /* readonly */
  3130. bool enabledEffective;
  3131. float frequencyHz;
  3132. /* readonly */
  3133. uint id;
  3134. /* readonly */
  3135. Node node;
  3136. /* readonly */
  3137. uint numAttributes;
  3138. ObjectAnimation objectAnimation;
  3139. RigidBody2D otherBody;
  3140. /* readonly */
  3141. RigidBody2D ownerBody;
  3142. /* readonly */
  3143. int refs;
  3144. bool temporary;
  3145. /* readonly */
  3146. StringHash type;
  3147. /* readonly */
  3148. String typeName;
  3149. /* readonly */
  3150. int weakRefs;
  3151. };
  3152. class ConstraintWheel2D
  3153. {
  3154. // Methods:
  3155. void ApplyAttributes();
  3156. void DrawDebugGeometry(DebugRenderer, bool);
  3157. Variant GetAttribute(const String&) const;
  3158. ValueAnimation GetAttributeAnimation(const String&) const;
  3159. float GetAttributeAnimationSpeed(const String&) const;
  3160. float GetAttributeAnimationTime(const String&) const;
  3161. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3162. Variant GetAttributeDefault(const String&) const;
  3163. bool GetInterceptNetworkUpdate(const String&) const;
  3164. bool HasSubscribedToEvent(Object, const String&);
  3165. bool HasSubscribedToEvent(const String&);
  3166. bool Load(File, bool = false);
  3167. bool Load(VectorBuffer&, bool = false);
  3168. bool LoadJSON(const JSONValue&, bool = false);
  3169. bool LoadXML(const XMLElement&, bool = false);
  3170. void MarkNetworkUpdate() const;
  3171. void Remove();
  3172. void RemoveAttributeAnimation(const String&);
  3173. void RemoveInstanceDefault();
  3174. void RemoveObjectAnimation();
  3175. void ResetToDefault();
  3176. bool Save(File) const;
  3177. bool Save(VectorBuffer&) const;
  3178. bool SaveJSON(JSONValue&) const;
  3179. bool SaveXML(XMLElement&) const;
  3180. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3181. void SetAnimationTime(float);
  3182. bool SetAttribute(const String&, const Variant&);
  3183. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3184. void SetAttributeAnimationSpeed(const String&, float);
  3185. void SetAttributeAnimationTime(const String&, float);
  3186. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3187. void SetInterceptNetworkUpdate(const String&, bool);
  3188. // Properties:
  3189. Vector2 anchor;
  3190. bool animationEnabled;
  3191. /* readonly */
  3192. Array<Variant> attributeDefaults;
  3193. /* readonly */
  3194. Array<AttributeInfo> attributeInfos;
  3195. Array<Variant> attributes;
  3196. Vector2 axis;
  3197. /* readonly */
  3198. String category;
  3199. bool collideConnected;
  3200. float dampingRatio;
  3201. bool enableMotor;
  3202. bool enabled;
  3203. /* readonly */
  3204. bool enabledEffective;
  3205. float frequencyHz;
  3206. /* readonly */
  3207. uint id;
  3208. float maxMotorTorque;
  3209. float motorSpeed;
  3210. /* readonly */
  3211. Node node;
  3212. /* readonly */
  3213. uint numAttributes;
  3214. ObjectAnimation objectAnimation;
  3215. RigidBody2D otherBody;
  3216. /* readonly */
  3217. RigidBody2D ownerBody;
  3218. /* readonly */
  3219. int refs;
  3220. bool temporary;
  3221. /* readonly */
  3222. StringHash type;
  3223. /* readonly */
  3224. String typeName;
  3225. /* readonly */
  3226. int weakRefs;
  3227. };
  3228. class Controls
  3229. {
  3230. // Methods:
  3231. bool IsDown(uint) const;
  3232. bool IsPressed(uint, const Controls&) const;
  3233. void Reset();
  3234. void Set(uint, bool);
  3235. // Properties:
  3236. uint buttons;
  3237. VariantMap extraData;
  3238. float pitch;
  3239. float yaw;
  3240. };
  3241. class CrowdAgent
  3242. {
  3243. // Methods:
  3244. void ApplyAttributes();
  3245. void DrawDebugGeometry(DebugRenderer, bool);
  3246. void DrawDebugGeometry(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 ResetTarget();
  3266. void ResetToDefault();
  3267. bool Save(File) const;
  3268. bool Save(VectorBuffer&) const;
  3269. bool SaveJSON(JSONValue&) const;
  3270. bool SaveXML(XMLElement&) const;
  3271. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3272. void SetAnimationTime(float);
  3273. bool SetAttribute(const String&, const Variant&);
  3274. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3275. void SetAttributeAnimationSpeed(const String&, float);
  3276. void SetAttributeAnimationTime(const String&, float);
  3277. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3278. void SetInterceptNetworkUpdate(const String&, bool);
  3279. // Properties:
  3280. /* readonly */
  3281. Vector3 actualVelocity;
  3282. /* readonly */
  3283. CrowdAgentState agentState;
  3284. bool animationEnabled;
  3285. /* readonly */
  3286. bool arrived;
  3287. /* readonly */
  3288. Array<Variant> attributeDefaults;
  3289. /* readonly */
  3290. Array<AttributeInfo> attributeInfos;
  3291. Array<Variant> attributes;
  3292. /* readonly */
  3293. String category;
  3294. /* readonly */
  3295. Vector3 desiredVelocity;
  3296. bool enabled;
  3297. /* readonly */
  3298. bool enabledEffective;
  3299. float height;
  3300. /* readonly */
  3301. uint id;
  3302. /* readonly */
  3303. bool inCrowd;
  3304. float maxAccel;
  3305. float maxSpeed;
  3306. NavigationPushiness navigationPushiness;
  3307. NavigationQuality navigationQuality;
  3308. /* readonly */
  3309. Node node;
  3310. /* readonly */
  3311. uint numAttributes;
  3312. ObjectAnimation objectAnimation;
  3313. uint obstacleAvoidanceType;
  3314. /* readonly */
  3315. Vector3 position;
  3316. uint queryFilterType;
  3317. float radius;
  3318. /* readonly */
  3319. int refs;
  3320. /* readonly */
  3321. bool requestedTarget;
  3322. /* readonly */
  3323. CrowdAgentRequestedTarget requestedTargetType;
  3324. Vector3 targetPosition;
  3325. /* readonly */
  3326. CrowdAgentTargetState targetState;
  3327. Vector3 targetVelocity;
  3328. bool temporary;
  3329. /* readonly */
  3330. StringHash type;
  3331. /* readonly */
  3332. String typeName;
  3333. bool updateNodePosition;
  3334. /* readonly */
  3335. int weakRefs;
  3336. };
  3337. class CrowdManager
  3338. {
  3339. // Methods:
  3340. void ApplyAttributes();
  3341. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3342. void DrawDebugGeometry(DebugRenderer, bool);
  3343. void DrawDebugGeometry(bool);
  3344. Vector3 FindNearestPoint(const Vector3&, int);
  3345. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3346. float GetAreaCost(uint, uint);
  3347. Variant GetAttribute(const String&) const;
  3348. ValueAnimation GetAttributeAnimation(const String&) const;
  3349. float GetAttributeAnimationSpeed(const String&) const;
  3350. float GetAttributeAnimationTime(const String&) const;
  3351. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3352. Variant GetAttributeDefault(const String&) const;
  3353. float GetDistanceToWall(const Vector3&, float, int);
  3354. uint16 GetExcludeFlags(uint);
  3355. uint16 GetIncludeFlags(uint);
  3356. bool GetInterceptNetworkUpdate(const String&) const;
  3357. Vector3 GetRandomPoint(int);
  3358. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3359. bool HasSubscribedToEvent(Object, const String&);
  3360. bool HasSubscribedToEvent(const String&);
  3361. bool Load(File, bool = false);
  3362. bool Load(VectorBuffer&, bool = false);
  3363. bool LoadJSON(const JSONValue&, bool = false);
  3364. bool LoadXML(const XMLElement&, bool = false);
  3365. void MarkNetworkUpdate() const;
  3366. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3367. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3368. void Remove();
  3369. void RemoveAttributeAnimation(const String&);
  3370. void RemoveInstanceDefault();
  3371. void RemoveObjectAnimation();
  3372. void ResetCrowdTarget(Node = null);
  3373. void ResetToDefault();
  3374. bool Save(File) const;
  3375. bool Save(VectorBuffer&) const;
  3376. bool SaveJSON(JSONValue&) const;
  3377. bool SaveXML(XMLElement&) const;
  3378. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3379. void SetAnimationTime(float);
  3380. void SetAreaCost(uint, uint, float);
  3381. bool SetAttribute(const String&, const Variant&);
  3382. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3383. void SetAttributeAnimationSpeed(const String&, float);
  3384. void SetAttributeAnimationTime(const String&, float);
  3385. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3386. void SetCrowdTarget(const Vector3&, Node = null);
  3387. void SetCrowdVelocity(const Vector3&, Node = null);
  3388. void SetExcludeFlags(uint, uint16);
  3389. void SetIncludeFlags(uint, uint16);
  3390. void SetInterceptNetworkUpdate(const String&, bool);
  3391. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3392. // Properties:
  3393. bool animationEnabled;
  3394. /* readonly */
  3395. Array<Variant> attributeDefaults;
  3396. /* readonly */
  3397. Array<AttributeInfo> attributeInfos;
  3398. Array<Variant> attributes;
  3399. /* readonly */
  3400. String category;
  3401. bool enabled;
  3402. /* readonly */
  3403. bool enabledEffective;
  3404. /* readonly */
  3405. uint id;
  3406. float maxAgentRadius;
  3407. int maxAgents;
  3408. NavigationMesh navMesh;
  3409. /* readonly */
  3410. Node node;
  3411. /* readonly */
  3412. Array<uint> numAreas;
  3413. /* readonly */
  3414. uint numAttributes;
  3415. /* readonly */
  3416. uint numObstacleAvoidanceTypes;
  3417. /* readonly */
  3418. uint numQueryFilterTypes;
  3419. ObjectAnimation objectAnimation;
  3420. /* readonly */
  3421. int refs;
  3422. bool temporary;
  3423. /* readonly */
  3424. StringHash type;
  3425. /* readonly */
  3426. String typeName;
  3427. /* readonly */
  3428. int weakRefs;
  3429. };
  3430. class CrowdObstacleAvoidanceParams
  3431. {
  3432. // Properties:
  3433. uint8 adaptiveDepth;
  3434. uint8 adaptiveDivs;
  3435. uint8 adaptiveRings;
  3436. uint8 gridSize;
  3437. float horizTime;
  3438. float velBias;
  3439. float weightCurVel;
  3440. float weightDesVel;
  3441. float weightSide;
  3442. float weightToi;
  3443. };
  3444. class Cursor
  3445. {
  3446. // Methods:
  3447. void AddChild(UIElement);
  3448. void AddTag(const String&);
  3449. void AddTags(const String&, int8 = ';');
  3450. void ApplyAttributes();
  3451. void BringToFront();
  3452. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3453. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3454. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3455. void DisableLayoutUpdate();
  3456. IntVector2 ElementToScreen(const IntVector2&);
  3457. void EnableLayoutUpdate();
  3458. uint FindChild(UIElement) const;
  3459. Variant GetAttribute(const String&) const;
  3460. ValueAnimation GetAttributeAnimation(const String&) const;
  3461. float GetAttributeAnimationSpeed(const String&) const;
  3462. float GetAttributeAnimationTime(const String&) const;
  3463. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3464. Variant GetAttributeDefault(const String&) const;
  3465. UIElement GetChild(const String&, bool = false) const;
  3466. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3467. Array<UIElement> GetChildren(bool = false) const;
  3468. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3469. UIElement GetElementEventSender() const;
  3470. bool GetInterceptNetworkUpdate(const String&) const;
  3471. uint GetNumChildren(bool) const;
  3472. bool HasSubscribedToEvent(Object, const String&);
  3473. bool HasSubscribedToEvent(const String&);
  3474. bool HasTag(const String&) const;
  3475. void InsertChild(uint, UIElement);
  3476. bool IsInside(IntVector2, bool);
  3477. bool IsInsideCombined(IntVector2, bool);
  3478. bool Load(File, bool = false);
  3479. bool Load(VectorBuffer&, bool = false);
  3480. bool LoadChildXML(XMLFile, XMLFile = null);
  3481. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3482. bool LoadJSON(const JSONValue&, bool = false);
  3483. bool LoadXML(File);
  3484. bool LoadXML(VectorBuffer&);
  3485. bool LoadXML(XMLFile, XMLFile);
  3486. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3487. bool LoadXML(const XMLElement&, bool = false);
  3488. void MarkNetworkUpdate() const;
  3489. void Remove();
  3490. void RemoveAllChildren();
  3491. void RemoveAllTags();
  3492. void RemoveAttributeAnimation(const String&);
  3493. void RemoveChild(UIElement, uint = 0);
  3494. void RemoveChild(uint);
  3495. void RemoveInstanceDefault();
  3496. void RemoveObjectAnimation();
  3497. bool RemoveTag(const String&);
  3498. void ResetDeepEnabled();
  3499. void ResetToDefault();
  3500. bool Save(File) const;
  3501. bool Save(VectorBuffer&) const;
  3502. bool SaveJSON(JSONValue&) const;
  3503. bool SaveXML(File, const String& = "\t");
  3504. bool SaveXML(VectorBuffer&, const String& = "\t");
  3505. bool SaveXML(XMLElement&) const;
  3506. IntVector2 ScreenToElement(const IntVector2&);
  3507. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3508. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3509. void SetAnimationTime(float);
  3510. bool SetAttribute(const String&, const Variant&);
  3511. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3512. void SetAttributeAnimationSpeed(const String&, float);
  3513. void SetAttributeAnimationTime(const String&, float);
  3514. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3515. void SetDeepEnabled(bool);
  3516. void SetEnabledRecursive(bool);
  3517. void SetFixedHeight(int);
  3518. void SetFixedSize(int, int);
  3519. void SetFixedWidth(int);
  3520. void SetFullImageRect();
  3521. void SetHoverOffset(int, int);
  3522. void SetInterceptNetworkUpdate(const String&, bool);
  3523. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3524. void SetMaxSize(int, int);
  3525. void SetMinSize(int, int);
  3526. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3527. void SetPosition(int, int);
  3528. void SetShape(CursorShape);
  3529. void SetShape(const String&);
  3530. void SetSize(int, int);
  3531. bool SetStyle(const String&, XMLFile = null);
  3532. bool SetStyle(const XMLElement&);
  3533. bool SetStyleAuto(XMLFile = null);
  3534. void UpdateLayout();
  3535. const Variant& GetVar(const StringHash&);
  3536. // Properties:
  3537. bool animationEnabled;
  3538. /* readonly */
  3539. Array<Variant> attributeDefaults;
  3540. /* readonly */
  3541. Array<AttributeInfo> attributeInfos;
  3542. Array<Variant> attributes;
  3543. BlendMode blendMode;
  3544. IntRect border;
  3545. bool bringToBack;
  3546. bool bringToFront;
  3547. /* readonly */
  3548. String category;
  3549. /* readonly */
  3550. IntVector2 childOffset;
  3551. /* readonly */
  3552. Array<UIElement> children;
  3553. IntRect clipBorder;
  3554. bool clipChildren;
  3555. /* writeonly */
  3556. Color color;
  3557. /* readonly */
  3558. bool colorGradient;
  3559. Array<Color> colors;
  3560. /* readonly */
  3561. IntRect combinedScreenRect;
  3562. XMLFile defaultStyle;
  3563. /* readonly */
  3564. float derivedOpacity;
  3565. /* readonly */
  3566. uint dragButtonCombo;
  3567. /* readonly */
  3568. int dragButtonCount;
  3569. uint dragDropMode;
  3570. bool editable;
  3571. bool elementEventSender;
  3572. bool enabled;
  3573. /* readonly */
  3574. bool enabledSelf;
  3575. /* readonly */
  3576. bool fixedHeight;
  3577. /* readonly */
  3578. bool fixedSize;
  3579. /* readonly */
  3580. bool fixedWidth;
  3581. bool focus;
  3582. FocusMode focusMode;
  3583. int height;
  3584. HorizontalAlignment horizontalAlignment;
  3585. IntVector2 hoverOffset;
  3586. /* readonly */
  3587. bool hovering;
  3588. IntRect imageBorder;
  3589. IntRect imageRect;
  3590. int indent;
  3591. int indentSpacing;
  3592. /* readonly */
  3593. int indentWidth;
  3594. bool internal;
  3595. IntRect layoutBorder;
  3596. Vector2 layoutFlexScale;
  3597. LayoutMode layoutMode;
  3598. int layoutSpacing;
  3599. int maxHeight;
  3600. IntVector2 maxSize;
  3601. int maxWidth;
  3602. int minHeight;
  3603. IntVector2 minSize;
  3604. int minWidth;
  3605. String name;
  3606. /* readonly */
  3607. uint numAllChildren;
  3608. /* readonly */
  3609. uint numAttributes;
  3610. /* readonly */
  3611. uint numChildren;
  3612. ObjectAnimation objectAnimation;
  3613. float opacity;
  3614. UIElement parent;
  3615. IntVector2 position;
  3616. int priority;
  3617. /* readonly */
  3618. int refs;
  3619. /* readonly */
  3620. UIElement root;
  3621. /* readonly */
  3622. IntVector2 screenPosition;
  3623. bool selected;
  3624. String shape;
  3625. IntVector2 size;
  3626. bool sortChildren;
  3627. String style;
  3628. /* readonly */
  3629. Array<String> tags;
  3630. bool temporary;
  3631. Texture texture;
  3632. bool tiled;
  3633. TraversalMode traversalMode;
  3634. /* readonly */
  3635. StringHash type;
  3636. /* readonly */
  3637. String typeName;
  3638. bool useDerivedOpacity;
  3639. bool useSystemShapes;
  3640. /* readonly */
  3641. VariantMap vars;
  3642. VerticalAlignment verticalAlignment;
  3643. bool visible;
  3644. /* readonly */
  3645. bool visibleEffective;
  3646. /* readonly */
  3647. int weakRefs;
  3648. int width;
  3649. };
  3650. class CustomGeometry
  3651. {
  3652. // Methods:
  3653. void ApplyAttributes();
  3654. void BeginGeometry(uint, PrimitiveType);
  3655. void Clear();
  3656. void Commit();
  3657. void DefineColor(const Color&);
  3658. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3659. void DefineNormal(const Vector3&);
  3660. void DefineTangent(const Vector4&);
  3661. void DefineTexCoord(const Vector2&);
  3662. void DefineVertex(const Vector3&);
  3663. void DrawDebugGeometry(DebugRenderer, bool);
  3664. Variant GetAttribute(const String&) const;
  3665. ValueAnimation GetAttributeAnimation(const String&) const;
  3666. float GetAttributeAnimationSpeed(const String&) const;
  3667. float GetAttributeAnimationTime(const String&) const;
  3668. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3669. Variant GetAttributeDefault(const String&) const;
  3670. bool GetInterceptNetworkUpdate(const String&) const;
  3671. CustomGeometryVertex GetVertex(uint, uint);
  3672. bool HasSubscribedToEvent(Object, const String&);
  3673. bool HasSubscribedToEvent(const String&);
  3674. bool IsInView(Camera) const;
  3675. bool Load(File, bool = false);
  3676. bool Load(VectorBuffer&, bool = false);
  3677. bool LoadJSON(const JSONValue&, bool = false);
  3678. bool LoadXML(const XMLElement&, bool = false);
  3679. void MarkNetworkUpdate() const;
  3680. void Remove();
  3681. void RemoveAttributeAnimation(const String&);
  3682. void RemoveInstanceDefault();
  3683. void RemoveObjectAnimation();
  3684. void ResetToDefault();
  3685. bool Save(File) const;
  3686. bool Save(VectorBuffer&) const;
  3687. bool SaveJSON(JSONValue&) const;
  3688. bool SaveXML(XMLElement&) const;
  3689. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3690. void SetAnimationTime(float);
  3691. bool SetAttribute(const String&, const Variant&);
  3692. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3693. void SetAttributeAnimationSpeed(const String&, float);
  3694. void SetAttributeAnimationTime(const String&, float);
  3695. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3696. void SetInterceptNetworkUpdate(const String&, bool);
  3697. // Properties:
  3698. bool animationEnabled;
  3699. /* readonly */
  3700. Array<Variant> attributeDefaults;
  3701. /* readonly */
  3702. Array<AttributeInfo> attributeInfos;
  3703. Array<Variant> attributes;
  3704. /* readonly */
  3705. BoundingBox boundingBox;
  3706. bool castShadows;
  3707. /* readonly */
  3708. String category;
  3709. float drawDistance;
  3710. bool dynamic;
  3711. bool enabled;
  3712. /* readonly */
  3713. bool enabledEffective;
  3714. /* readonly */
  3715. uint id;
  3716. /* readonly */
  3717. bool inView;
  3718. uint lightMask;
  3719. float lodBias;
  3720. /* writeonly */
  3721. Material material;
  3722. Array<Material> materials;
  3723. uint maxLights;
  3724. /* readonly */
  3725. Node node;
  3726. /* readonly */
  3727. uint numAttributes;
  3728. uint numGeometries;
  3729. /* readonly */
  3730. Array<uint> numVertices;
  3731. ObjectAnimation objectAnimation;
  3732. bool occludee;
  3733. bool occluder;
  3734. /* readonly */
  3735. int refs;
  3736. float shadowDistance;
  3737. uint shadowMask;
  3738. bool temporary;
  3739. /* readonly */
  3740. StringHash type;
  3741. /* readonly */
  3742. String typeName;
  3743. uint viewMask;
  3744. /* readonly */
  3745. int weakRefs;
  3746. /* readonly */
  3747. BoundingBox worldBoundingBox;
  3748. /* readonly */
  3749. Zone zone;
  3750. uint zoneMask;
  3751. };
  3752. class CustomGeometryVertex
  3753. {
  3754. // Properties:
  3755. uint color;
  3756. Vector3 normal;
  3757. Vector3 position;
  3758. Vector4 tangent;
  3759. Vector2 texCoord;
  3760. };
  3761. class Database
  3762. {
  3763. // Methods:
  3764. DbConnection Connect(const String&);
  3765. void Disconnect(DbConnection);
  3766. bool HasSubscribedToEvent(Object, const String&);
  3767. bool HasSubscribedToEvent(const String&);
  3768. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3769. // Properties:
  3770. /* readonly */
  3771. String category;
  3772. uint poolSize;
  3773. /* readonly */
  3774. bool pooling;
  3775. /* readonly */
  3776. int refs;
  3777. /* readonly */
  3778. StringHash type;
  3779. /* readonly */
  3780. String typeName;
  3781. /* readonly */
  3782. int weakRefs;
  3783. };
  3784. class DbConnection
  3785. {
  3786. // Methods:
  3787. DbResult Execute(const String&, bool = false);
  3788. bool HasSubscribedToEvent(Object, const String&);
  3789. bool HasSubscribedToEvent(const String&);
  3790. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3791. // Properties:
  3792. /* readonly */
  3793. String category;
  3794. /* readonly */
  3795. bool connected;
  3796. /* readonly */
  3797. String connectionString;
  3798. /* readonly */
  3799. int refs;
  3800. /* readonly */
  3801. StringHash type;
  3802. /* readonly */
  3803. String typeName;
  3804. /* readonly */
  3805. int weakRefs;
  3806. };
  3807. class DbResult
  3808. {
  3809. // Properties:
  3810. /* readonly */
  3811. Array<String> columns;
  3812. /* readonly */
  3813. int64 numAffectedRows;
  3814. /* readonly */
  3815. uint numColumns;
  3816. /* readonly */
  3817. uint numRows;
  3818. /* readonly */
  3819. Array<Array<Variant>> row;
  3820. };
  3821. class DebugHud
  3822. {
  3823. // Methods:
  3824. void ClearAppStats();
  3825. bool HasSubscribedToEvent(Object, const String&);
  3826. bool HasSubscribedToEvent(const String&);
  3827. void ResetAppStats(const String&);
  3828. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3829. void SetAppStats(const String&, const String&);
  3830. void SetAppStats(const String&, const Variant&);
  3831. void Toggle(uint);
  3832. void ToggleAll();
  3833. void Update();
  3834. // Properties:
  3835. /* readonly */
  3836. String category;
  3837. XMLFile defaultStyle;
  3838. /* readonly */
  3839. Text memoryText;
  3840. uint mode;
  3841. /* readonly */
  3842. Text modeText;
  3843. float profilerInterval;
  3844. uint profilerMaxDepth;
  3845. /* readonly */
  3846. Text profilerText;
  3847. /* readonly */
  3848. int refs;
  3849. /* readonly */
  3850. Text statsText;
  3851. /* readonly */
  3852. StringHash type;
  3853. /* readonly */
  3854. String typeName;
  3855. bool useRendererStats;
  3856. /* readonly */
  3857. int weakRefs;
  3858. };
  3859. class DebugRenderer
  3860. {
  3861. // Methods:
  3862. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3863. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3864. void AddCross(const Vector3&, float, const Color&, bool = true);
  3865. void AddFrustum(const Frustum&, const Color&, bool = true);
  3866. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3867. void AddNode(Node, float = 1.0, bool = true);
  3868. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3869. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3870. void AddSkeleton(Skeleton, const Color&, bool = true);
  3871. void AddSphere(const Sphere&, const Color&, bool = true);
  3872. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3873. void ApplyAttributes();
  3874. void DrawDebugGeometry(DebugRenderer, bool);
  3875. Variant GetAttribute(const String&) const;
  3876. ValueAnimation GetAttributeAnimation(const String&) const;
  3877. float GetAttributeAnimationSpeed(const String&) const;
  3878. float GetAttributeAnimationTime(const String&) const;
  3879. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3880. Variant GetAttributeDefault(const String&) const;
  3881. bool GetInterceptNetworkUpdate(const String&) const;
  3882. bool HasSubscribedToEvent(Object, const String&);
  3883. bool HasSubscribedToEvent(const String&);
  3884. bool Load(File, bool = false);
  3885. bool Load(VectorBuffer&, bool = false);
  3886. bool LoadJSON(const JSONValue&, bool = false);
  3887. bool LoadXML(const XMLElement&, bool = false);
  3888. void MarkNetworkUpdate() const;
  3889. void Remove();
  3890. void RemoveAttributeAnimation(const String&);
  3891. void RemoveInstanceDefault();
  3892. void RemoveObjectAnimation();
  3893. void ResetToDefault();
  3894. bool Save(File) const;
  3895. bool Save(VectorBuffer&) const;
  3896. bool SaveJSON(JSONValue&) const;
  3897. bool SaveXML(XMLElement&) const;
  3898. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3899. void SetAnimationTime(float);
  3900. bool SetAttribute(const String&, const Variant&);
  3901. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3902. void SetAttributeAnimationSpeed(const String&, float);
  3903. void SetAttributeAnimationTime(const String&, float);
  3904. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3905. void SetInterceptNetworkUpdate(const String&, bool);
  3906. // Properties:
  3907. bool animationEnabled;
  3908. /* readonly */
  3909. Array<Variant> attributeDefaults;
  3910. /* readonly */
  3911. Array<AttributeInfo> attributeInfos;
  3912. Array<Variant> attributes;
  3913. /* readonly */
  3914. String category;
  3915. bool enabled;
  3916. /* readonly */
  3917. bool enabledEffective;
  3918. /* readonly */
  3919. uint id;
  3920. /* readonly */
  3921. Node node;
  3922. /* readonly */
  3923. uint numAttributes;
  3924. ObjectAnimation objectAnimation;
  3925. /* readonly */
  3926. int refs;
  3927. bool temporary;
  3928. /* readonly */
  3929. StringHash type;
  3930. /* readonly */
  3931. String typeName;
  3932. /* readonly */
  3933. int weakRefs;
  3934. };
  3935. class DecalSet
  3936. {
  3937. // Methods:
  3938. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3939. void ApplyAttributes();
  3940. void DrawDebugGeometry(DebugRenderer, bool);
  3941. Variant GetAttribute(const String&) const;
  3942. ValueAnimation GetAttributeAnimation(const String&) const;
  3943. float GetAttributeAnimationSpeed(const String&) const;
  3944. float GetAttributeAnimationTime(const String&) const;
  3945. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3946. Variant GetAttributeDefault(const String&) const;
  3947. bool GetInterceptNetworkUpdate(const String&) const;
  3948. bool HasSubscribedToEvent(Object, const String&);
  3949. bool HasSubscribedToEvent(const String&);
  3950. bool IsInView(Camera) const;
  3951. bool Load(File, bool = false);
  3952. bool Load(VectorBuffer&, bool = false);
  3953. bool LoadJSON(const JSONValue&, bool = false);
  3954. bool LoadXML(const XMLElement&, bool = false);
  3955. void MarkNetworkUpdate() const;
  3956. void Remove();
  3957. void RemoveAllDecals();
  3958. void RemoveAttributeAnimation(const String&);
  3959. void RemoveDecals(uint);
  3960. void RemoveInstanceDefault();
  3961. void RemoveObjectAnimation();
  3962. void ResetToDefault();
  3963. bool Save(File) const;
  3964. bool Save(VectorBuffer&) const;
  3965. bool SaveJSON(JSONValue&) const;
  3966. bool SaveXML(XMLElement&) const;
  3967. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3968. void SetAnimationTime(float);
  3969. bool SetAttribute(const String&, const Variant&);
  3970. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3971. void SetAttributeAnimationSpeed(const String&, float);
  3972. void SetAttributeAnimationTime(const String&, float);
  3973. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3974. void SetInterceptNetworkUpdate(const String&, bool);
  3975. // Properties:
  3976. bool animationEnabled;
  3977. /* readonly */
  3978. Array<Variant> attributeDefaults;
  3979. /* readonly */
  3980. Array<AttributeInfo> attributeInfos;
  3981. Array<Variant> attributes;
  3982. /* readonly */
  3983. BoundingBox boundingBox;
  3984. bool castShadows;
  3985. /* readonly */
  3986. String category;
  3987. float drawDistance;
  3988. bool enabled;
  3989. /* readonly */
  3990. bool enabledEffective;
  3991. /* readonly */
  3992. uint id;
  3993. /* readonly */
  3994. bool inView;
  3995. uint lightMask;
  3996. float lodBias;
  3997. Material material;
  3998. uint maxIndices;
  3999. uint maxLights;
  4000. uint maxVertices;
  4001. /* readonly */
  4002. Node node;
  4003. /* readonly */
  4004. uint numAttributes;
  4005. /* readonly */
  4006. uint numDecals;
  4007. /* readonly */
  4008. uint numIndices;
  4009. /* readonly */
  4010. uint numVertices;
  4011. ObjectAnimation objectAnimation;
  4012. bool occludee;
  4013. bool occluder;
  4014. /* readonly */
  4015. int refs;
  4016. float shadowDistance;
  4017. uint shadowMask;
  4018. bool temporary;
  4019. /* readonly */
  4020. StringHash type;
  4021. /* readonly */
  4022. String typeName;
  4023. uint viewMask;
  4024. /* readonly */
  4025. int weakRefs;
  4026. /* readonly */
  4027. BoundingBox worldBoundingBox;
  4028. /* readonly */
  4029. Zone zone;
  4030. uint zoneMask;
  4031. };
  4032. class Deserializer
  4033. {
  4034. // Methods:
  4035. Array<uint8> Read(uint);
  4036. bool ReadBool();
  4037. BoundingBox ReadBoundingBox();
  4038. int8 ReadByte();
  4039. Color ReadColor();
  4040. double ReadDouble();
  4041. String ReadFileID();
  4042. float ReadFloat();
  4043. int ReadInt();
  4044. IntRect ReadIntRect();
  4045. IntVector2 ReadIntVector2();
  4046. String ReadLine();
  4047. Matrix3 ReadMatrix3();
  4048. Matrix3x4 ReadMatrix3x4();
  4049. Matrix4 ReadMatrix4();
  4050. uint ReadNetID();
  4051. Quaternion ReadPackedQuaternion();
  4052. Vector3 ReadPackedVector3(float);
  4053. Quaternion ReadQuaternion();
  4054. int16 ReadShort();
  4055. String ReadString();
  4056. StringHash ReadStringHash();
  4057. uint8 ReadUByte();
  4058. uint ReadUInt();
  4059. uint16 ReadUShort();
  4060. uint ReadVLE();
  4061. Variant ReadVariant();
  4062. VariantMap ReadVariantMap();
  4063. Vector2 ReadVector2();
  4064. Vector3 ReadVector3();
  4065. Vector4 ReadVector4();
  4066. VectorBuffer ReadVectorBuffer(uint);
  4067. uint Seek(uint);
  4068. // Properties:
  4069. /* readonly */
  4070. uint checksum;
  4071. /* readonly */
  4072. bool eof;
  4073. /* readonly */
  4074. String name;
  4075. /* readonly */
  4076. uint position;
  4077. /* readonly */
  4078. uint size;
  4079. };
  4080. class Dictionary
  4081. {
  4082. // Methods:
  4083. void Clear();
  4084. void Erase(const String&);
  4085. bool Exists(const String&) const;
  4086. bool Get(const String&, void*) const;
  4087. bool Get(const String&, double&) const;
  4088. bool Get(const String&, int64&) const;
  4089. void Set(const String&, const void*);
  4090. void Set(const String&, const double&);
  4091. void Set(const String&, const int64&);
  4092. // Properties:
  4093. /* readonly */
  4094. bool empty;
  4095. /* readonly */
  4096. Array<String> keys;
  4097. /* readonly */
  4098. uint length;
  4099. };
  4100. class DictionaryValue
  4101. {
  4102. };
  4103. class Drawable
  4104. {
  4105. // Methods:
  4106. void ApplyAttributes();
  4107. void DrawDebugGeometry(DebugRenderer, bool);
  4108. Variant GetAttribute(const String&) const;
  4109. ValueAnimation GetAttributeAnimation(const String&) const;
  4110. float GetAttributeAnimationSpeed(const String&) const;
  4111. float GetAttributeAnimationTime(const String&) const;
  4112. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4113. Variant GetAttributeDefault(const String&) const;
  4114. bool GetInterceptNetworkUpdate(const String&) const;
  4115. bool HasSubscribedToEvent(Object, const String&);
  4116. bool HasSubscribedToEvent(const String&);
  4117. bool IsInView(Camera) const;
  4118. bool Load(File, bool = false);
  4119. bool Load(VectorBuffer&, bool = false);
  4120. bool LoadJSON(const JSONValue&, bool = false);
  4121. bool LoadXML(const XMLElement&, bool = false);
  4122. void MarkNetworkUpdate() const;
  4123. void Remove();
  4124. void RemoveAttributeAnimation(const String&);
  4125. void RemoveInstanceDefault();
  4126. void RemoveObjectAnimation();
  4127. void ResetToDefault();
  4128. bool Save(File) const;
  4129. bool Save(VectorBuffer&) const;
  4130. bool SaveJSON(JSONValue&) const;
  4131. bool SaveXML(XMLElement&) const;
  4132. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4133. void SetAnimationTime(float);
  4134. bool SetAttribute(const String&, const Variant&);
  4135. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4136. void SetAttributeAnimationSpeed(const String&, float);
  4137. void SetAttributeAnimationTime(const String&, float);
  4138. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4139. void SetInterceptNetworkUpdate(const String&, bool);
  4140. // Properties:
  4141. bool animationEnabled;
  4142. /* readonly */
  4143. Array<Variant> attributeDefaults;
  4144. /* readonly */
  4145. Array<AttributeInfo> attributeInfos;
  4146. Array<Variant> attributes;
  4147. /* readonly */
  4148. BoundingBox boundingBox;
  4149. bool castShadows;
  4150. /* readonly */
  4151. String category;
  4152. float drawDistance;
  4153. bool enabled;
  4154. /* readonly */
  4155. bool enabledEffective;
  4156. /* readonly */
  4157. uint id;
  4158. /* readonly */
  4159. bool inView;
  4160. uint lightMask;
  4161. float lodBias;
  4162. uint maxLights;
  4163. /* readonly */
  4164. Node node;
  4165. /* readonly */
  4166. uint numAttributes;
  4167. ObjectAnimation objectAnimation;
  4168. bool occludee;
  4169. bool occluder;
  4170. /* readonly */
  4171. int refs;
  4172. float shadowDistance;
  4173. uint shadowMask;
  4174. bool temporary;
  4175. /* readonly */
  4176. StringHash type;
  4177. /* readonly */
  4178. String typeName;
  4179. uint viewMask;
  4180. /* readonly */
  4181. int weakRefs;
  4182. /* readonly */
  4183. BoundingBox worldBoundingBox;
  4184. uint zoneMask;
  4185. };
  4186. class Drawable2D
  4187. {
  4188. // Methods:
  4189. void ApplyAttributes();
  4190. void DrawDebugGeometry(DebugRenderer, bool);
  4191. Variant GetAttribute(const String&) const;
  4192. ValueAnimation GetAttributeAnimation(const String&) const;
  4193. float GetAttributeAnimationSpeed(const String&) const;
  4194. float GetAttributeAnimationTime(const String&) const;
  4195. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4196. Variant GetAttributeDefault(const String&) const;
  4197. bool GetInterceptNetworkUpdate(const String&) const;
  4198. bool HasSubscribedToEvent(Object, const String&);
  4199. bool HasSubscribedToEvent(const String&);
  4200. bool IsInView(Camera) const;
  4201. bool Load(File, bool = false);
  4202. bool Load(VectorBuffer&, bool = false);
  4203. bool LoadJSON(const JSONValue&, bool = false);
  4204. bool LoadXML(const XMLElement&, bool = false);
  4205. void MarkNetworkUpdate() const;
  4206. void Remove();
  4207. void RemoveAttributeAnimation(const String&);
  4208. void RemoveInstanceDefault();
  4209. void RemoveObjectAnimation();
  4210. void ResetToDefault();
  4211. bool Save(File) const;
  4212. bool Save(VectorBuffer&) const;
  4213. bool SaveJSON(JSONValue&) const;
  4214. bool SaveXML(XMLElement&) const;
  4215. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4216. void SetAnimationTime(float);
  4217. bool SetAttribute(const String&, const Variant&);
  4218. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4219. void SetAttributeAnimationSpeed(const String&, float);
  4220. void SetAttributeAnimationTime(const String&, float);
  4221. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4222. void SetInterceptNetworkUpdate(const String&, bool);
  4223. // Properties:
  4224. bool animationEnabled;
  4225. /* readonly */
  4226. Array<Variant> attributeDefaults;
  4227. /* readonly */
  4228. Array<AttributeInfo> attributeInfos;
  4229. Array<Variant> attributes;
  4230. /* readonly */
  4231. BoundingBox boundingBox;
  4232. bool castShadows;
  4233. /* readonly */
  4234. String category;
  4235. float drawDistance;
  4236. bool enabled;
  4237. /* readonly */
  4238. bool enabledEffective;
  4239. /* readonly */
  4240. uint id;
  4241. /* readonly */
  4242. bool inView;
  4243. int layer;
  4244. uint lightMask;
  4245. float lodBias;
  4246. uint maxLights;
  4247. /* readonly */
  4248. Node node;
  4249. /* readonly */
  4250. uint numAttributes;
  4251. ObjectAnimation objectAnimation;
  4252. bool occludee;
  4253. bool occluder;
  4254. int orderInLayer;
  4255. /* readonly */
  4256. int refs;
  4257. float shadowDistance;
  4258. uint shadowMask;
  4259. bool temporary;
  4260. /* readonly */
  4261. StringHash type;
  4262. /* readonly */
  4263. String typeName;
  4264. uint viewMask;
  4265. /* readonly */
  4266. int weakRefs;
  4267. /* readonly */
  4268. BoundingBox worldBoundingBox;
  4269. uint zoneMask;
  4270. };
  4271. class DropDownList
  4272. {
  4273. // Methods:
  4274. void AddChild(UIElement);
  4275. void AddItem(UIElement);
  4276. void AddTag(const String&);
  4277. void AddTags(const String&, int8 = ';');
  4278. void ApplyAttributes();
  4279. void BringToFront();
  4280. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4281. void DisableLayoutUpdate();
  4282. IntVector2 ElementToScreen(const IntVector2&);
  4283. void EnableLayoutUpdate();
  4284. uint FindChild(UIElement) const;
  4285. Variant GetAttribute(const String&) const;
  4286. ValueAnimation GetAttributeAnimation(const String&) const;
  4287. float GetAttributeAnimationSpeed(const String&) const;
  4288. float GetAttributeAnimationTime(const String&) const;
  4289. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4290. Variant GetAttributeDefault(const String&) const;
  4291. UIElement GetChild(const String&, bool = false) const;
  4292. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4293. Array<UIElement> GetChildren(bool = false) const;
  4294. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4295. UIElement GetElementEventSender() const;
  4296. bool GetInterceptNetworkUpdate(const String&) const;
  4297. Array<UIElement> GetItems() const;
  4298. uint GetNumChildren(bool) const;
  4299. bool HasSubscribedToEvent(Object, const String&);
  4300. bool HasSubscribedToEvent(const String&);
  4301. bool HasTag(const String&) const;
  4302. void InsertChild(uint, UIElement);
  4303. void InsertItem(uint, UIElement);
  4304. bool IsInside(IntVector2, bool);
  4305. bool IsInsideCombined(IntVector2, bool);
  4306. bool Load(File, bool = false);
  4307. bool Load(VectorBuffer&, bool = false);
  4308. bool LoadChildXML(XMLFile, XMLFile = null);
  4309. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4310. bool LoadJSON(const JSONValue&, bool = false);
  4311. bool LoadXML(File);
  4312. bool LoadXML(VectorBuffer&);
  4313. bool LoadXML(XMLFile, XMLFile);
  4314. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4315. bool LoadXML(const XMLElement&, bool = false);
  4316. void MarkNetworkUpdate() const;
  4317. void Remove();
  4318. void RemoveAllChildren();
  4319. void RemoveAllItems();
  4320. void RemoveAllTags();
  4321. void RemoveAttributeAnimation(const String&);
  4322. void RemoveChild(UIElement, uint = 0);
  4323. void RemoveChild(uint);
  4324. void RemoveInstanceDefault();
  4325. void RemoveItem(UIElement);
  4326. void RemoveItem(uint);
  4327. void RemoveObjectAnimation();
  4328. bool RemoveTag(const String&);
  4329. void ResetDeepEnabled();
  4330. void ResetToDefault();
  4331. bool Save(File) const;
  4332. bool Save(VectorBuffer&) const;
  4333. bool SaveJSON(JSONValue&) const;
  4334. bool SaveXML(File, const String& = "\t");
  4335. bool SaveXML(VectorBuffer&, const String& = "\t");
  4336. bool SaveXML(XMLElement&) const;
  4337. IntVector2 ScreenToElement(const IntVector2&);
  4338. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4339. void SetAccelerator(int, int);
  4340. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4341. void SetAnimationTime(float);
  4342. bool SetAttribute(const String&, const Variant&);
  4343. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4344. void SetAttributeAnimationSpeed(const String&, float);
  4345. void SetAttributeAnimationTime(const String&, float);
  4346. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4347. void SetDeepEnabled(bool);
  4348. void SetEnabledRecursive(bool);
  4349. void SetFixedHeight(int);
  4350. void SetFixedSize(int, int);
  4351. void SetFixedWidth(int);
  4352. void SetFullImageRect();
  4353. void SetHoverOffset(int, int);
  4354. void SetInterceptNetworkUpdate(const String&, bool);
  4355. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4356. void SetMaxSize(int, int);
  4357. void SetMinSize(int, int);
  4358. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4359. void SetPosition(int, int);
  4360. void SetPressedChildOffset(int, int);
  4361. void SetPressedOffset(int, int);
  4362. void SetRepeat(float, float);
  4363. void SetSize(int, int);
  4364. bool SetStyle(const String&, XMLFile = null);
  4365. bool SetStyle(const XMLElement&);
  4366. bool SetStyleAuto(XMLFile = null);
  4367. void UpdateLayout();
  4368. const Variant& GetVar(const StringHash&);
  4369. UIElement getPopup() const;
  4370. // Properties:
  4371. /* readonly */
  4372. int acceleratorKey;
  4373. /* readonly */
  4374. int acceleratorQualifiers;
  4375. bool animationEnabled;
  4376. /* readonly */
  4377. Array<Variant> attributeDefaults;
  4378. /* readonly */
  4379. Array<AttributeInfo> attributeInfos;
  4380. Array<Variant> attributes;
  4381. BlendMode blendMode;
  4382. IntRect border;
  4383. bool bringToBack;
  4384. bool bringToFront;
  4385. /* readonly */
  4386. String category;
  4387. /* readonly */
  4388. IntVector2 childOffset;
  4389. /* readonly */
  4390. Array<UIElement> children;
  4391. IntRect clipBorder;
  4392. bool clipChildren;
  4393. /* writeonly */
  4394. Color color;
  4395. /* readonly */
  4396. bool colorGradient;
  4397. Array<Color> colors;
  4398. /* readonly */
  4399. IntRect combinedScreenRect;
  4400. XMLFile defaultStyle;
  4401. /* readonly */
  4402. float derivedOpacity;
  4403. /* readonly */
  4404. uint dragButtonCombo;
  4405. /* readonly */
  4406. int dragButtonCount;
  4407. uint dragDropMode;
  4408. bool editable;
  4409. bool elementEventSender;
  4410. bool enabled;
  4411. /* readonly */
  4412. bool enabledSelf;
  4413. /* readonly */
  4414. bool fixedHeight;
  4415. /* readonly */
  4416. bool fixedSize;
  4417. /* readonly */
  4418. bool fixedWidth;
  4419. bool focus;
  4420. FocusMode focusMode;
  4421. int height;
  4422. HorizontalAlignment horizontalAlignment;
  4423. IntVector2 hoverOffset;
  4424. /* readonly */
  4425. bool hovering;
  4426. IntRect imageBorder;
  4427. IntRect imageRect;
  4428. int indent;
  4429. int indentSpacing;
  4430. /* readonly */
  4431. int indentWidth;
  4432. bool internal;
  4433. /* readonly */
  4434. Array<UIElement> items;
  4435. IntRect layoutBorder;
  4436. Vector2 layoutFlexScale;
  4437. LayoutMode layoutMode;
  4438. int layoutSpacing;
  4439. /* readonly */
  4440. ListView listView;
  4441. int maxHeight;
  4442. IntVector2 maxSize;
  4443. int maxWidth;
  4444. int minHeight;
  4445. IntVector2 minSize;
  4446. int minWidth;
  4447. String name;
  4448. /* readonly */
  4449. uint numAllChildren;
  4450. /* readonly */
  4451. uint numAttributes;
  4452. /* readonly */
  4453. uint numChildren;
  4454. /* readonly */
  4455. uint numItems;
  4456. ObjectAnimation objectAnimation;
  4457. float opacity;
  4458. UIElement parent;
  4459. /* readonly */
  4460. UIElement placeholder;
  4461. String placeholderText;
  4462. IntVector2 position;
  4463. /* readonly */
  4464. bool pressed;
  4465. IntVector2 pressedChildOffset;
  4466. IntVector2 pressedOffset;
  4467. int priority;
  4468. /* readonly */
  4469. int refs;
  4470. float repeatDelay;
  4471. float repeatRate;
  4472. bool resizePopup;
  4473. /* readonly */
  4474. UIElement root;
  4475. /* readonly */
  4476. IntVector2 screenPosition;
  4477. bool selected;
  4478. /* readonly */
  4479. UIElement selectedItem;
  4480. uint selection;
  4481. bool showPopup;
  4482. IntVector2 size;
  4483. bool sortChildren;
  4484. String style;
  4485. /* readonly */
  4486. Array<String> tags;
  4487. bool temporary;
  4488. Texture texture;
  4489. bool tiled;
  4490. TraversalMode traversalMode;
  4491. /* readonly */
  4492. StringHash type;
  4493. /* readonly */
  4494. String typeName;
  4495. bool useDerivedOpacity;
  4496. /* readonly */
  4497. VariantMap vars;
  4498. VerticalAlignment verticalAlignment;
  4499. bool visible;
  4500. /* readonly */
  4501. bool visibleEffective;
  4502. /* readonly */
  4503. int weakRefs;
  4504. int width;
  4505. };
  4506. class DynamicNavigationMesh
  4507. {
  4508. // Methods:
  4509. void ApplyAttributes();
  4510. bool Build();
  4511. bool Build(const BoundingBox&);
  4512. void DrawDebugGeometry(DebugRenderer, bool);
  4513. void DrawDebugGeometry(bool);
  4514. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4515. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4516. float GetAreaCost(uint) const;
  4517. Variant GetAttribute(const String&) const;
  4518. ValueAnimation GetAttributeAnimation(const String&) const;
  4519. float GetAttributeAnimationSpeed(const String&) const;
  4520. float GetAttributeAnimationTime(const String&) const;
  4521. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4522. Variant GetAttributeDefault(const String&) const;
  4523. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4524. bool GetInterceptNetworkUpdate(const String&) const;
  4525. Vector3 GetRandomPoint();
  4526. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4527. bool HasSubscribedToEvent(Object, const String&);
  4528. bool HasSubscribedToEvent(const String&);
  4529. bool Load(File, bool = false);
  4530. bool Load(VectorBuffer&, bool = false);
  4531. bool LoadJSON(const JSONValue&, bool = false);
  4532. bool LoadXML(const XMLElement&, bool = false);
  4533. void MarkNetworkUpdate() const;
  4534. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4535. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4536. void Remove();
  4537. void RemoveAttributeAnimation(const String&);
  4538. void RemoveInstanceDefault();
  4539. void RemoveObjectAnimation();
  4540. void ResetToDefault();
  4541. bool Save(File) const;
  4542. bool Save(VectorBuffer&) const;
  4543. bool SaveJSON(JSONValue&) const;
  4544. bool SaveXML(XMLElement&) const;
  4545. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4546. void SetAnimationTime(float);
  4547. void SetAreaCost(uint, float);
  4548. bool SetAttribute(const String&, const Variant&);
  4549. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4550. void SetAttributeAnimationSpeed(const String&, float);
  4551. void SetAttributeAnimationTime(const String&, float);
  4552. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4553. void SetInterceptNetworkUpdate(const String&, bool);
  4554. // Properties:
  4555. float agentHeight;
  4556. float agentMaxClimb;
  4557. float agentMaxSlope;
  4558. float agentRadius;
  4559. bool animationEnabled;
  4560. /* readonly */
  4561. Array<Variant> attributeDefaults;
  4562. /* readonly */
  4563. Array<AttributeInfo> attributeInfos;
  4564. Array<Variant> attributes;
  4565. /* readonly */
  4566. BoundingBox boundingBox;
  4567. /* readonly */
  4568. String category;
  4569. float cellHeight;
  4570. float cellSize;
  4571. float detailSampleDistance;
  4572. float detailSampleMaxError;
  4573. bool drawNavAreas;
  4574. bool drawObstacles;
  4575. bool drawOffMeshConnections;
  4576. float edgeMaxError;
  4577. float edgeMaxLength;
  4578. bool enabled;
  4579. /* readonly */
  4580. bool enabledEffective;
  4581. /* readonly */
  4582. uint id;
  4583. /* readonly */
  4584. bool initialized;
  4585. bool maxLayers;
  4586. uint maxObstacles;
  4587. /* readonly */
  4588. Node node;
  4589. /* readonly */
  4590. uint numAttributes;
  4591. /* readonly */
  4592. IntVector2 numTiles;
  4593. ObjectAnimation objectAnimation;
  4594. Vector3 padding;
  4595. NavmeshPartitionType partitionType;
  4596. /* readonly */
  4597. int refs;
  4598. float regionMergeSize;
  4599. float regionMinSize;
  4600. bool temporary;
  4601. int tileSize;
  4602. /* readonly */
  4603. StringHash type;
  4604. /* readonly */
  4605. String typeName;
  4606. /* readonly */
  4607. int weakRefs;
  4608. /* readonly */
  4609. BoundingBox worldBoundingBox;
  4610. };
  4611. class Engine
  4612. {
  4613. // Methods:
  4614. Console CreateConsole();
  4615. DebugHud CreateDebugHud();
  4616. void DumpMemory();
  4617. void DumpProfiler();
  4618. void DumpResources(bool = false);
  4619. void Exit();
  4620. bool HasSubscribedToEvent(Object, const String&);
  4621. bool HasSubscribedToEvent(const String&);
  4622. void RunFrame();
  4623. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4624. // Properties:
  4625. bool autoExit;
  4626. /* readonly */
  4627. String category;
  4628. /* readonly */
  4629. bool exiting;
  4630. /* readonly */
  4631. bool headless;
  4632. /* readonly */
  4633. bool initialized;
  4634. int maxFps;
  4635. int maxInactiveFps;
  4636. int minFps;
  4637. bool pauseMinimized;
  4638. /* readonly */
  4639. int refs;
  4640. int timeStepSmoothing;
  4641. /* readonly */
  4642. StringHash type;
  4643. /* readonly */
  4644. String typeName;
  4645. /* readonly */
  4646. int weakRefs;
  4647. };
  4648. class File
  4649. {
  4650. // Methods:
  4651. void Close();
  4652. bool HasSubscribedToEvent(Object, const String&);
  4653. bool HasSubscribedToEvent(const String&);
  4654. bool Open(const String&, FileMode = FILE_READ);
  4655. Array<uint8> Read(uint);
  4656. bool ReadBool();
  4657. BoundingBox ReadBoundingBox();
  4658. int8 ReadByte();
  4659. Color ReadColor();
  4660. double ReadDouble();
  4661. String ReadFileID();
  4662. float ReadFloat();
  4663. int ReadInt();
  4664. IntRect ReadIntRect();
  4665. IntVector2 ReadIntVector2();
  4666. String ReadLine();
  4667. Matrix3 ReadMatrix3();
  4668. Matrix3x4 ReadMatrix3x4();
  4669. Matrix4 ReadMatrix4();
  4670. uint ReadNetID();
  4671. Quaternion ReadPackedQuaternion();
  4672. Vector3 ReadPackedVector3(float);
  4673. Quaternion ReadQuaternion();
  4674. int16 ReadShort();
  4675. String ReadString();
  4676. StringHash ReadStringHash();
  4677. uint8 ReadUByte();
  4678. uint ReadUInt();
  4679. uint16 ReadUShort();
  4680. uint ReadVLE();
  4681. Variant ReadVariant();
  4682. VariantMap ReadVariantMap();
  4683. Vector2 ReadVector2();
  4684. Vector3 ReadVector3();
  4685. Vector4 ReadVector4();
  4686. VectorBuffer ReadVectorBuffer(uint);
  4687. uint Seek(uint);
  4688. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4689. uint Write(Array<uint8>);
  4690. bool WriteBool(bool);
  4691. bool WriteBoundingBox(const BoundingBox&);
  4692. bool WriteByte(int8);
  4693. bool WriteColor(const Color&);
  4694. bool WriteDouble(double);
  4695. bool WriteFileID(const String&);
  4696. bool WriteFloat(float);
  4697. bool WriteInt(int);
  4698. bool WriteIntRect(const IntRect&);
  4699. bool WriteIntVector2(const IntVector2&);
  4700. bool WriteLine(const String&);
  4701. bool WriteMatrix3(const Matrix3&);
  4702. bool WriteMatrix3x4(const Matrix3x4&);
  4703. bool WriteMatrix4(const Matrix4&);
  4704. bool WriteNetID(uint);
  4705. bool WritePackedQuaternion(const Quaternion&);
  4706. bool WritePackedVector3(const Vector3&, float);
  4707. bool WriteQuaternion(const Quaternion&);
  4708. bool WriteShort(int16);
  4709. bool WriteString(const String&);
  4710. bool WriteStringHash(const StringHash&);
  4711. bool WriteUByte(uint8);
  4712. bool WriteUInt(uint);
  4713. bool WriteUShort(uint16);
  4714. bool WriteVLE(uint);
  4715. bool WriteVariant(const Variant&);
  4716. bool WriteVariantMap(const VariantMap&);
  4717. bool WriteVector2(const Vector2&);
  4718. bool WriteVector3(const Vector3&);
  4719. bool WriteVector4(const Vector4&);
  4720. bool WriteVectorBuffer(const VectorBuffer&);
  4721. // Properties:
  4722. /* readonly */
  4723. String category;
  4724. /* readonly */
  4725. uint checksum;
  4726. /* readonly */
  4727. bool eof;
  4728. /* readonly */
  4729. FileMode mode;
  4730. /* readonly */
  4731. String name;
  4732. /* readonly */
  4733. bool open;
  4734. /* readonly */
  4735. bool packaged;
  4736. /* readonly */
  4737. uint position;
  4738. /* readonly */
  4739. int refs;
  4740. /* readonly */
  4741. uint size;
  4742. /* readonly */
  4743. StringHash type;
  4744. /* readonly */
  4745. String typeName;
  4746. /* readonly */
  4747. int weakRefs;
  4748. };
  4749. class FileSelector
  4750. {
  4751. // Methods:
  4752. bool HasSubscribedToEvent(Object, const String&);
  4753. bool HasSubscribedToEvent(const String&);
  4754. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4755. void SetButtonTexts(const String&, const String&);
  4756. void SetFilters(Array<String>, uint);
  4757. void UpdateElements();
  4758. // Properties:
  4759. /* readonly */
  4760. Button cancelButton;
  4761. /* readonly */
  4762. String category;
  4763. XMLFile defaultStyle;
  4764. bool directoryMode;
  4765. /* readonly */
  4766. ListView fileList;
  4767. String fileName;
  4768. /* readonly */
  4769. LineEdit fileNameEdit;
  4770. /* readonly */
  4771. String filter;
  4772. /* readonly */
  4773. uint filterIndex;
  4774. /* readonly */
  4775. DropDownList filterList;
  4776. /* readonly */
  4777. Button okButton;
  4778. String path;
  4779. /* readonly */
  4780. LineEdit pathEdit;
  4781. /* readonly */
  4782. int refs;
  4783. String title;
  4784. /* readonly */
  4785. Text titleText;
  4786. /* readonly */
  4787. StringHash type;
  4788. /* readonly */
  4789. String typeName;
  4790. /* readonly */
  4791. int weakRefs;
  4792. /* readonly */
  4793. Window window;
  4794. };
  4795. class FileSystem
  4796. {
  4797. // Methods:
  4798. bool Copy(const String&, const String&);
  4799. bool CreateDir(const String&);
  4800. bool Delete(const String&);
  4801. bool DirExists(const String&) const;
  4802. bool FileExists(const String&) const;
  4803. String GetAppPreferencesDir(const String&, const String&) const;
  4804. uint GetLastModifiedTime(const String&) const;
  4805. bool HasSubscribedToEvent(Object, const String&);
  4806. bool HasSubscribedToEvent(const String&);
  4807. bool Rename(const String&, const String&);
  4808. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4809. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4810. bool SetLastModifiedTime(const String&, uint);
  4811. int SystemCommand(const String&, bool = false);
  4812. uint SystemCommandAsync(const String&);
  4813. bool SystemOpen(const String&, const String&);
  4814. int SystemRun(const String&, Array<String>);
  4815. uint SystemRunAsync(const String&, Array<String>);
  4816. // Properties:
  4817. /* readonly */
  4818. String category;
  4819. String currentDir;
  4820. bool executeConsoleCommands;
  4821. /* readonly */
  4822. String programDir;
  4823. /* readonly */
  4824. int refs;
  4825. /* readonly */
  4826. StringHash type;
  4827. /* readonly */
  4828. String typeName;
  4829. /* readonly */
  4830. String userDocumentsDir;
  4831. /* readonly */
  4832. int weakRefs;
  4833. };
  4834. class FocusParameters
  4835. {
  4836. // Properties:
  4837. bool autoSize;
  4838. bool focus;
  4839. float minView;
  4840. bool nonUniform;
  4841. float quantize;
  4842. };
  4843. class Font
  4844. {
  4845. // Methods:
  4846. IntVector2 GetTotalGlyphOffset(int) const;
  4847. bool HasSubscribedToEvent(Object, const String&);
  4848. bool HasSubscribedToEvent(const String&);
  4849. bool Load(File);
  4850. bool Load(VectorBuffer&);
  4851. bool Save(File) const;
  4852. bool Save(VectorBuffer&) const;
  4853. bool SaveXML(File, int, bool = false, const String& = "\t");
  4854. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4855. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4856. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4857. // Properties:
  4858. IntVector2 absoluteGlyphOffset;
  4859. /* readonly */
  4860. String category;
  4861. /* readonly */
  4862. uint memoryUse;
  4863. String name;
  4864. /* readonly */
  4865. int refs;
  4866. Vector2 scaledGlyphOffset;
  4867. /* readonly */
  4868. StringHash type;
  4869. /* readonly */
  4870. String typeName;
  4871. /* readonly */
  4872. uint useTimer;
  4873. /* readonly */
  4874. int weakRefs;
  4875. };
  4876. class Frustum
  4877. {
  4878. // Methods:
  4879. void Define(const BoundingBox&, const Matrix3x4&);
  4880. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4881. void Define(float, float, float, float, float, const Matrix3x4&);
  4882. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4883. float Distance(const Vector3&) const;
  4884. Intersection IsInside(const BoundingBox&);
  4885. Intersection IsInside(const Sphere&);
  4886. Intersection IsInside(const Vector3&);
  4887. Intersection IsInsideFast(const BoundingBox&) const;
  4888. Intersection IsInsideFast(const Sphere&) const;
  4889. void Transform(const Matrix3&);
  4890. void Transform(const Matrix3x4&);
  4891. Frustum Transformed(const Matrix3&) const;
  4892. Frustum Transformed(const Matrix3x4&) const;
  4893. // Properties:
  4894. /* readonly */
  4895. Array<Vector3> vertices;
  4896. };
  4897. class Geometry
  4898. {
  4899. // Methods:
  4900. bool HasSubscribedToEvent(Object, const String&);
  4901. bool HasSubscribedToEvent(const String&);
  4902. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4903. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4904. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4905. void SetIndexBuffer(IndexBuffer);
  4906. bool SetVertexBuffer(uint, VertexBuffer);
  4907. // Properties:
  4908. /* readonly */
  4909. String category;
  4910. /* readonly */
  4911. bool empty;
  4912. IndexBuffer indexBuffer;
  4913. /* readonly */
  4914. uint indexCount;
  4915. /* readonly */
  4916. uint indexStart;
  4917. float lodDistance;
  4918. uint numVertexBuffers;
  4919. /* readonly */
  4920. PrimitiveType primitiveType;
  4921. /* readonly */
  4922. int refs;
  4923. /* readonly */
  4924. StringHash type;
  4925. /* readonly */
  4926. String typeName;
  4927. /* readonly */
  4928. Array<VertexBuffer> vertexBuffers;
  4929. /* readonly */
  4930. uint vertexCount;
  4931. /* readonly */
  4932. uint vertexStart;
  4933. /* readonly */
  4934. int weakRefs;
  4935. };
  4936. class Graphics
  4937. {
  4938. // Methods:
  4939. void BeginDumpShaders(const String&);
  4940. void Close();
  4941. void EndDumpShaders();
  4942. bool HasSubscribedToEvent(Object, const String&);
  4943. bool HasSubscribedToEvent(const String&);
  4944. void Maximize();
  4945. void Minimize();
  4946. void PrecacheShaders(File);
  4947. void PrecacheShaders(VectorBuffer&);
  4948. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4949. bool SetMode(int, int);
  4950. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int);
  4951. void SetWindowPosition(int, int);
  4952. bool TakeScreenShot(Image);
  4953. bool ToggleFullscreen();
  4954. // Properties:
  4955. /* readonly */
  4956. String apiName;
  4957. /* readonly */
  4958. bool borderless;
  4959. /* readonly */
  4960. String category;
  4961. /* readonly */
  4962. bool deferredSupport;
  4963. /* readonly */
  4964. IntVector2 desktopResolution;
  4965. /* readonly */
  4966. bool deviceLost;
  4967. bool flushGPU;
  4968. /* readonly */
  4969. bool fullscreen;
  4970. /* readonly */
  4971. bool hardwareShadowSupport;
  4972. /* readonly */
  4973. int height;
  4974. /* readonly */
  4975. bool initialized;
  4976. /* readonly */
  4977. bool instancingSupport;
  4978. /* readonly */
  4979. bool lightPrepassSupport;
  4980. /* readonly */
  4981. int multiSample;
  4982. /* readonly */
  4983. Array<int> multiSampleLevels;
  4984. /* readonly */
  4985. uint numBatches;
  4986. /* readonly */
  4987. uint numPrimitives;
  4988. String orientations;
  4989. /* readonly */
  4990. bool readableDepthSupport;
  4991. /* readonly */
  4992. int refs;
  4993. /* readonly */
  4994. bool resizable;
  4995. /* readonly */
  4996. Array<IntVector2> resolutions;
  4997. bool sRGB;
  4998. /* readonly */
  4999. bool sRGBSupport;
  5000. /* readonly */
  5001. bool sRGBWriteSupport;
  5002. /* readonly */
  5003. bool tripleBuffer;
  5004. /* readonly */
  5005. StringHash type;
  5006. /* readonly */
  5007. String typeName;
  5008. /* readonly */
  5009. bool vsync;
  5010. /* readonly */
  5011. int weakRefs;
  5012. /* readonly */
  5013. int width;
  5014. /* writeonly */
  5015. Image windowIcon;
  5016. IntVector2 windowPosition;
  5017. String windowTitle;
  5018. };
  5019. class HttpRequest
  5020. {
  5021. // Methods:
  5022. Array<uint8> Read(uint);
  5023. bool ReadBool();
  5024. BoundingBox ReadBoundingBox();
  5025. int8 ReadByte();
  5026. Color ReadColor();
  5027. double ReadDouble();
  5028. String ReadFileID();
  5029. float ReadFloat();
  5030. int ReadInt();
  5031. IntRect ReadIntRect();
  5032. IntVector2 ReadIntVector2();
  5033. String ReadLine();
  5034. Matrix3 ReadMatrix3();
  5035. Matrix3x4 ReadMatrix3x4();
  5036. Matrix4 ReadMatrix4();
  5037. uint ReadNetID();
  5038. Quaternion ReadPackedQuaternion();
  5039. Vector3 ReadPackedVector3(float);
  5040. Quaternion ReadQuaternion();
  5041. int16 ReadShort();
  5042. String ReadString();
  5043. StringHash ReadStringHash();
  5044. uint8 ReadUByte();
  5045. uint ReadUInt();
  5046. uint16 ReadUShort();
  5047. uint ReadVLE();
  5048. Variant ReadVariant();
  5049. VariantMap ReadVariantMap();
  5050. Vector2 ReadVector2();
  5051. Vector3 ReadVector3();
  5052. Vector4 ReadVector4();
  5053. VectorBuffer ReadVectorBuffer(uint);
  5054. uint Seek(uint);
  5055. // Properties:
  5056. /* readonly */
  5057. uint availableSize;
  5058. /* readonly */
  5059. uint checksum;
  5060. /* readonly */
  5061. bool eof;
  5062. /* readonly */
  5063. String error;
  5064. /* readonly */
  5065. String name;
  5066. /* readonly */
  5067. bool open;
  5068. /* readonly */
  5069. uint position;
  5070. /* readonly */
  5071. int refs;
  5072. /* readonly */
  5073. uint size;
  5074. /* readonly */
  5075. HttpRequestState state;
  5076. /* readonly */
  5077. String url;
  5078. /* readonly */
  5079. String verb;
  5080. /* readonly */
  5081. int weakRefs;
  5082. };
  5083. class Image
  5084. {
  5085. // Methods:
  5086. void Clear(const Color&);
  5087. void ClearInt(uint);
  5088. bool FlipHorizontal();
  5089. bool FlipVertical();
  5090. Color GetPixel(int, int) const;
  5091. Color GetPixel(int, int, int) const;
  5092. Color GetPixelBilinear(float, float) const;
  5093. uint GetPixelInt(int, int) const;
  5094. uint GetPixelInt(int, int, int) const;
  5095. Color GetPixelTrilinear(float, float, float) const;
  5096. Image GetSubimage(const IntRect&) const;
  5097. bool HasSubscribedToEvent(Object, const String&);
  5098. bool HasSubscribedToEvent(const String&);
  5099. bool Load(File);
  5100. bool Load(VectorBuffer&);
  5101. bool LoadColorLUT(File);
  5102. bool LoadColorLUT(VectorBuffer&);
  5103. bool Resize(int, int);
  5104. bool Save(File) const;
  5105. bool Save(VectorBuffer&) const;
  5106. bool SaveBMP(const String&) const;
  5107. bool SaveJPG(const String&, int) const;
  5108. bool SavePNG(const String&) const;
  5109. bool SaveTGA(const String&) const;
  5110. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5111. void SetPixel(int, int, const Color&);
  5112. void SetPixel(int, int, int, const Color&);
  5113. void SetPixelInt(int, int, int, uint);
  5114. void SetPixelInt(int, int, uint);
  5115. bool SetSize(int, int, int, uint);
  5116. bool SetSize(int, int, uint);
  5117. // Properties:
  5118. /* readonly */
  5119. bool array;
  5120. /* readonly */
  5121. String category;
  5122. /* readonly */
  5123. uint components;
  5124. /* readonly */
  5125. bool compressed;
  5126. /* readonly */
  5127. CompressedFormat compressedFormat;
  5128. /* readonly */
  5129. bool cubemap;
  5130. /* readonly */
  5131. int depth;
  5132. /* readonly */
  5133. int height;
  5134. /* readonly */
  5135. uint memoryUse;
  5136. String name;
  5137. /* readonly */
  5138. uint numCompressedLevels;
  5139. /* readonly */
  5140. int refs;
  5141. /* readonly */
  5142. bool sRGB;
  5143. /* readonly */
  5144. StringHash type;
  5145. /* readonly */
  5146. String typeName;
  5147. /* readonly */
  5148. uint useTimer;
  5149. /* readonly */
  5150. int weakRefs;
  5151. /* readonly */
  5152. int width;
  5153. };
  5154. class IndexBuffer
  5155. {
  5156. // Methods:
  5157. VectorBuffer GetData();
  5158. bool HasSubscribedToEvent(Object, const String&);
  5159. bool HasSubscribedToEvent(const String&);
  5160. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5161. bool SetData(VectorBuffer&);
  5162. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5163. void SetSize(uint, bool, bool = false);
  5164. // Properties:
  5165. /* readonly */
  5166. String category;
  5167. /* readonly */
  5168. bool dynamic;
  5169. /* readonly */
  5170. uint indexCount;
  5171. /* readonly */
  5172. uint indexSize;
  5173. /* readonly */
  5174. int refs;
  5175. bool shadowed;
  5176. /* readonly */
  5177. StringHash type;
  5178. /* readonly */
  5179. String typeName;
  5180. /* readonly */
  5181. int weakRefs;
  5182. };
  5183. class Input
  5184. {
  5185. // Methods:
  5186. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5187. int GetKeyFromName(const String&) const;
  5188. int GetKeyFromScancode(int) const;
  5189. String GetKeyName(int) const;
  5190. int GetScancodeFromKey(int) const;
  5191. int GetScancodeFromName(const String&) const;
  5192. String GetScancodeName(int) const;
  5193. bool HasSubscribedToEvent(Object, const String&);
  5194. bool HasSubscribedToEvent(const String&);
  5195. uint LoadGestures(File);
  5196. uint LoadGestures(VectorBuffer&);
  5197. bool RecordGesture();
  5198. void RemoveAllGestures();
  5199. bool RemoveGesture(uint);
  5200. bool RemoveScreenJoystick(int);
  5201. void ResetMouseGrabbed();
  5202. void ResetMouseMode();
  5203. void ResetMouseVisible();
  5204. bool SaveGesture(File, uint);
  5205. bool SaveGesture(VectorBuffer&, uint);
  5206. bool SaveGestures(File);
  5207. bool SaveGestures(VectorBuffer&);
  5208. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5209. void SetMouseGrabbed(bool, bool = false);
  5210. void SetMouseMode(MouseMode, bool = false);
  5211. void SetMouseVisible(bool, bool = false);
  5212. // Properties:
  5213. /* readonly */
  5214. String category;
  5215. /* readonly */
  5216. bool focus;
  5217. /* readonly */
  5218. Array<JoystickState> joysticks;
  5219. /* readonly */
  5220. Array<JoystickState> joysticksByIndex;
  5221. /* readonly */
  5222. Array<JoystickState> joysticksByName;
  5223. /* readonly */
  5224. Array<bool> keyDown;
  5225. /* readonly */
  5226. Array<bool> keyPress;
  5227. /* readonly */
  5228. bool minimized;
  5229. /* readonly */
  5230. Array<bool> mouseButtonDown;
  5231. /* readonly */
  5232. Array<bool> mouseButtonPress;
  5233. bool mouseGrabbed;
  5234. /* readonly */
  5235. bool mouseLocked;
  5236. MouseMode mouseMode;
  5237. /* readonly */
  5238. IntVector2 mouseMove;
  5239. /* readonly */
  5240. int mouseMoveWheel;
  5241. /* readonly */
  5242. int mouseMoveX;
  5243. /* readonly */
  5244. int mouseMoveY;
  5245. /* readonly */
  5246. IntVector2 mousePosition;
  5247. bool mouseVisible;
  5248. /* readonly */
  5249. uint numJoysticks;
  5250. /* readonly */
  5251. uint numTouches;
  5252. /* readonly */
  5253. Array<bool> qualifierDown;
  5254. /* readonly */
  5255. Array<bool> qualifierPress;
  5256. /* readonly */
  5257. int qualifiers;
  5258. /* readonly */
  5259. int refs;
  5260. /* readonly */
  5261. Array<bool> scancodeDown;
  5262. /* readonly */
  5263. Array<bool> scancodePress;
  5264. Array<bool> screenJoystickVisible;
  5265. /* readonly */
  5266. bool screenKeyboardSupport;
  5267. bool screenKeyboardVisible;
  5268. bool toggleFullscreen;
  5269. bool touchEmulation;
  5270. /* readonly */
  5271. Array<TouchState> touches;
  5272. /* readonly */
  5273. StringHash type;
  5274. /* readonly */
  5275. String typeName;
  5276. /* readonly */
  5277. int weakRefs;
  5278. };
  5279. class IntRect
  5280. {
  5281. // Methods:
  5282. Intersection IsInside(const IntVector2&) const;
  5283. // Properties:
  5284. int bottom;
  5285. /* readonly */
  5286. Array<int> data;
  5287. /* readonly */
  5288. int height;
  5289. int left;
  5290. int right;
  5291. /* readonly */
  5292. IntVector2 size;
  5293. int top;
  5294. /* readonly */
  5295. int width;
  5296. };
  5297. class IntVector2
  5298. {
  5299. // Methods:
  5300. String ToString() const;
  5301. // Properties:
  5302. /* readonly */
  5303. Array<int> data;
  5304. int x;
  5305. int y;
  5306. };
  5307. class JSONFile
  5308. {
  5309. // Methods:
  5310. JSONValue& GetRoot();
  5311. bool HasSubscribedToEvent(Object, const String&);
  5312. bool HasSubscribedToEvent(const String&);
  5313. bool Load(File);
  5314. bool Load(VectorBuffer&);
  5315. bool Save(File) const;
  5316. bool Save(File, const String&) const;
  5317. bool Save(VectorBuffer&) const;
  5318. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5319. // Properties:
  5320. /* readonly */
  5321. String category;
  5322. /* readonly */
  5323. uint memoryUse;
  5324. String name;
  5325. /* readonly */
  5326. int refs;
  5327. /* readonly */
  5328. JSONValue root;
  5329. /* readonly */
  5330. StringHash type;
  5331. /* readonly */
  5332. String typeName;
  5333. /* readonly */
  5334. uint useTimer;
  5335. /* readonly */
  5336. int weakRefs;
  5337. };
  5338. class JSONValue
  5339. {
  5340. // Methods:
  5341. void Clear();
  5342. bool Contains(const String&) const;
  5343. void Erase(const String&);
  5344. void Erase(uint, uint = 1);
  5345. bool GetBool() const;
  5346. double GetDouble() const;
  5347. float GetFloat() const;
  5348. int GetInt() const;
  5349. uint GetUInt() const;
  5350. void Insert(uint, const JSONValue&);
  5351. const JSONValue& Get(const String&) const;
  5352. void Pop();
  5353. void Push(const JSONValue&);
  5354. void Resize(uint);
  5355. void Set(const String&, const JSONValue&);
  5356. const String& GetString() const;
  5357. // Properties:
  5358. /* readonly */
  5359. bool isArray;
  5360. /* readonly */
  5361. bool isBool;
  5362. /* readonly */
  5363. bool isNull;
  5364. /* readonly */
  5365. bool isNumber;
  5366. /* readonly */
  5367. bool isObject;
  5368. /* readonly */
  5369. bool isString;
  5370. /* readonly */
  5371. uint size;
  5372. /* readonly */
  5373. JSONValueType valueType;
  5374. };
  5375. class JoystickState
  5376. {
  5377. // Properties:
  5378. /* readonly */
  5379. Array<float> axisPosition;
  5380. /* readonly */
  5381. Array<bool> buttonDown;
  5382. /* readonly */
  5383. Array<bool> buttonPress;
  5384. /* readonly */
  5385. bool controller;
  5386. /* readonly */
  5387. Array<int> hatPosition;
  5388. int joystickID;
  5389. String name;
  5390. /* readonly */
  5391. uint numAxes;
  5392. /* readonly */
  5393. uint numButtons;
  5394. /* readonly */
  5395. uint numHats;
  5396. };
  5397. class Light
  5398. {
  5399. // Methods:
  5400. void ApplyAttributes();
  5401. void DrawDebugGeometry(DebugRenderer, bool);
  5402. Variant GetAttribute(const String&) const;
  5403. ValueAnimation GetAttributeAnimation(const String&) const;
  5404. float GetAttributeAnimationSpeed(const String&) const;
  5405. float GetAttributeAnimationTime(const String&) const;
  5406. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5407. Variant GetAttributeDefault(const String&) const;
  5408. bool GetInterceptNetworkUpdate(const String&) const;
  5409. bool HasSubscribedToEvent(Object, const String&);
  5410. bool HasSubscribedToEvent(const String&);
  5411. bool IsInView(Camera) const;
  5412. bool Load(File, bool = false);
  5413. bool Load(VectorBuffer&, bool = false);
  5414. bool LoadJSON(const JSONValue&, bool = false);
  5415. bool LoadXML(const XMLElement&, bool = false);
  5416. void MarkNetworkUpdate() const;
  5417. void Remove();
  5418. void RemoveAttributeAnimation(const String&);
  5419. void RemoveInstanceDefault();
  5420. void RemoveObjectAnimation();
  5421. void ResetToDefault();
  5422. bool Save(File) const;
  5423. bool Save(VectorBuffer&) const;
  5424. bool SaveJSON(JSONValue&) const;
  5425. bool SaveXML(XMLElement&) const;
  5426. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5427. void SetAnimationTime(float);
  5428. bool SetAttribute(const String&, const Variant&);
  5429. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5430. void SetAttributeAnimationSpeed(const String&, float);
  5431. void SetAttributeAnimationTime(const String&, float);
  5432. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5433. void SetInterceptNetworkUpdate(const String&, bool);
  5434. // Properties:
  5435. bool animationEnabled;
  5436. float aspectRatio;
  5437. /* readonly */
  5438. Array<Variant> attributeDefaults;
  5439. /* readonly */
  5440. Array<AttributeInfo> attributeInfos;
  5441. Array<Variant> attributes;
  5442. /* readonly */
  5443. BoundingBox boundingBox;
  5444. float brightness;
  5445. bool castShadows;
  5446. /* readonly */
  5447. String category;
  5448. Color color;
  5449. float drawDistance;
  5450. /* readonly */
  5451. Color effectiveColor;
  5452. /* readonly */
  5453. float effectiveSpecularIntensity;
  5454. bool enabled;
  5455. /* readonly */
  5456. bool enabledEffective;
  5457. float fadeDistance;
  5458. float fov;
  5459. /* readonly */
  5460. Frustum frustum;
  5461. /* readonly */
  5462. uint id;
  5463. /* readonly */
  5464. bool inView;
  5465. uint lightMask;
  5466. LightType lightType;
  5467. float lodBias;
  5468. uint maxLights;
  5469. /* readonly */
  5470. bool negative;
  5471. /* readonly */
  5472. Node node;
  5473. /* readonly */
  5474. uint numAttributes;
  5475. /* readonly */
  5476. int numShadowSplits;
  5477. ObjectAnimation objectAnimation;
  5478. bool occludee;
  5479. bool occluder;
  5480. bool perVertex;
  5481. Texture rampTexture;
  5482. float range;
  5483. /* readonly */
  5484. int refs;
  5485. BiasParameters shadowBias;
  5486. CascadeParameters shadowCascade;
  5487. float shadowDistance;
  5488. float shadowFadeDistance;
  5489. FocusParameters shadowFocus;
  5490. float shadowIntensity;
  5491. uint shadowMask;
  5492. float shadowNearFarRatio;
  5493. float shadowResolution;
  5494. Texture shapeTexture;
  5495. float specularIntensity;
  5496. bool temporary;
  5497. /* readonly */
  5498. StringHash type;
  5499. /* readonly */
  5500. String typeName;
  5501. uint viewMask;
  5502. /* readonly */
  5503. int weakRefs;
  5504. /* readonly */
  5505. BoundingBox worldBoundingBox;
  5506. uint zoneMask;
  5507. };
  5508. class LineEdit
  5509. {
  5510. // Methods:
  5511. void AddChild(UIElement);
  5512. void AddTag(const String&);
  5513. void AddTags(const String&, int8 = ';');
  5514. void ApplyAttributes();
  5515. void BringToFront();
  5516. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5517. void DisableLayoutUpdate();
  5518. IntVector2 ElementToScreen(const IntVector2&);
  5519. void EnableLayoutUpdate();
  5520. uint FindChild(UIElement) const;
  5521. Variant GetAttribute(const String&) const;
  5522. ValueAnimation GetAttributeAnimation(const String&) const;
  5523. float GetAttributeAnimationSpeed(const String&) const;
  5524. float GetAttributeAnimationTime(const String&) const;
  5525. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5526. Variant GetAttributeDefault(const String&) const;
  5527. UIElement GetChild(const String&, bool = false) const;
  5528. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5529. Array<UIElement> GetChildren(bool = false) const;
  5530. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5531. UIElement GetElementEventSender() const;
  5532. bool GetInterceptNetworkUpdate(const String&) const;
  5533. uint GetNumChildren(bool) const;
  5534. bool HasSubscribedToEvent(Object, const String&);
  5535. bool HasSubscribedToEvent(const String&);
  5536. bool HasTag(const String&) const;
  5537. void InsertChild(uint, UIElement);
  5538. bool IsInside(IntVector2, bool);
  5539. bool IsInsideCombined(IntVector2, bool);
  5540. bool Load(File, bool = false);
  5541. bool Load(VectorBuffer&, bool = false);
  5542. bool LoadChildXML(XMLFile, XMLFile = null);
  5543. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5544. bool LoadJSON(const JSONValue&, bool = false);
  5545. bool LoadXML(File);
  5546. bool LoadXML(VectorBuffer&);
  5547. bool LoadXML(XMLFile, XMLFile);
  5548. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5549. bool LoadXML(const XMLElement&, bool = false);
  5550. void MarkNetworkUpdate() const;
  5551. void Remove();
  5552. void RemoveAllChildren();
  5553. void RemoveAllTags();
  5554. void RemoveAttributeAnimation(const String&);
  5555. void RemoveChild(UIElement, uint = 0);
  5556. void RemoveChild(uint);
  5557. void RemoveInstanceDefault();
  5558. void RemoveObjectAnimation();
  5559. bool RemoveTag(const String&);
  5560. void ResetDeepEnabled();
  5561. void ResetToDefault();
  5562. bool Save(File) const;
  5563. bool Save(VectorBuffer&) const;
  5564. bool SaveJSON(JSONValue&) const;
  5565. bool SaveXML(File, const String& = "\t");
  5566. bool SaveXML(VectorBuffer&, const String& = "\t");
  5567. bool SaveXML(XMLElement&) const;
  5568. IntVector2 ScreenToElement(const IntVector2&);
  5569. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5570. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5571. void SetAnimationTime(float);
  5572. bool SetAttribute(const String&, const Variant&);
  5573. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5574. void SetAttributeAnimationSpeed(const String&, float);
  5575. void SetAttributeAnimationTime(const String&, float);
  5576. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5577. void SetDeepEnabled(bool);
  5578. void SetEnabledRecursive(bool);
  5579. void SetFixedHeight(int);
  5580. void SetFixedSize(int, int);
  5581. void SetFixedWidth(int);
  5582. void SetFullImageRect();
  5583. void SetHoverOffset(int, int);
  5584. void SetInterceptNetworkUpdate(const String&, bool);
  5585. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5586. void SetMaxSize(int, int);
  5587. void SetMinSize(int, int);
  5588. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5589. void SetPosition(int, int);
  5590. void SetSize(int, int);
  5591. bool SetStyle(const String&, XMLFile = null);
  5592. bool SetStyle(const XMLElement&);
  5593. bool SetStyleAuto(XMLFile = null);
  5594. void UpdateLayout();
  5595. const Variant& GetVar(const StringHash&);
  5596. // Properties:
  5597. bool animationEnabled;
  5598. /* readonly */
  5599. Array<Variant> attributeDefaults;
  5600. /* readonly */
  5601. Array<AttributeInfo> attributeInfos;
  5602. Array<Variant> attributes;
  5603. BlendMode blendMode;
  5604. IntRect border;
  5605. bool bringToBack;
  5606. bool bringToFront;
  5607. /* readonly */
  5608. String category;
  5609. /* readonly */
  5610. IntVector2 childOffset;
  5611. /* readonly */
  5612. Array<UIElement> children;
  5613. IntRect clipBorder;
  5614. bool clipChildren;
  5615. /* writeonly */
  5616. Color color;
  5617. /* readonly */
  5618. bool colorGradient;
  5619. Array<Color> colors;
  5620. /* readonly */
  5621. IntRect combinedScreenRect;
  5622. /* readonly */
  5623. BorderImage cursor;
  5624. float cursorBlinkRate;
  5625. bool cursorMovable;
  5626. uint cursorPosition;
  5627. XMLFile defaultStyle;
  5628. /* readonly */
  5629. float derivedOpacity;
  5630. /* readonly */
  5631. uint dragButtonCombo;
  5632. /* readonly */
  5633. int dragButtonCount;
  5634. uint dragDropMode;
  5635. uint echoCharacter;
  5636. bool editable;
  5637. bool elementEventSender;
  5638. bool enabled;
  5639. /* readonly */
  5640. bool enabledSelf;
  5641. /* readonly */
  5642. bool fixedHeight;
  5643. /* readonly */
  5644. bool fixedSize;
  5645. /* readonly */
  5646. bool fixedWidth;
  5647. bool focus;
  5648. FocusMode focusMode;
  5649. int height;
  5650. HorizontalAlignment horizontalAlignment;
  5651. IntVector2 hoverOffset;
  5652. /* readonly */
  5653. bool hovering;
  5654. IntRect imageBorder;
  5655. IntRect imageRect;
  5656. int indent;
  5657. int indentSpacing;
  5658. /* readonly */
  5659. int indentWidth;
  5660. bool internal;
  5661. IntRect layoutBorder;
  5662. Vector2 layoutFlexScale;
  5663. LayoutMode layoutMode;
  5664. int layoutSpacing;
  5665. int maxHeight;
  5666. uint maxLength;
  5667. IntVector2 maxSize;
  5668. int maxWidth;
  5669. int minHeight;
  5670. IntVector2 minSize;
  5671. int minWidth;
  5672. String name;
  5673. /* readonly */
  5674. uint numAllChildren;
  5675. /* readonly */
  5676. uint numAttributes;
  5677. /* readonly */
  5678. uint numChildren;
  5679. ObjectAnimation objectAnimation;
  5680. float opacity;
  5681. UIElement parent;
  5682. IntVector2 position;
  5683. int priority;
  5684. /* readonly */
  5685. int refs;
  5686. /* readonly */
  5687. UIElement root;
  5688. /* readonly */
  5689. IntVector2 screenPosition;
  5690. bool selected;
  5691. IntVector2 size;
  5692. bool sortChildren;
  5693. String style;
  5694. /* readonly */
  5695. Array<String> tags;
  5696. bool temporary;
  5697. String text;
  5698. bool textCopyable;
  5699. /* readonly */
  5700. Text textElement;
  5701. bool textSelectable;
  5702. Texture texture;
  5703. bool tiled;
  5704. TraversalMode traversalMode;
  5705. /* readonly */
  5706. StringHash type;
  5707. /* readonly */
  5708. String typeName;
  5709. bool useDerivedOpacity;
  5710. /* readonly */
  5711. VariantMap vars;
  5712. VerticalAlignment verticalAlignment;
  5713. bool visible;
  5714. /* readonly */
  5715. bool visibleEffective;
  5716. /* readonly */
  5717. int weakRefs;
  5718. int width;
  5719. };
  5720. class ListView
  5721. {
  5722. // Methods:
  5723. void AddChild(UIElement);
  5724. void AddItem(UIElement);
  5725. void AddSelection(uint);
  5726. void AddTag(const String&);
  5727. void AddTags(const String&, int8 = ';');
  5728. void ApplyAttributes();
  5729. void BringToFront();
  5730. void ChangeSelection(int, bool);
  5731. void ClearSelection();
  5732. void CopySelectedItemsToClipboard();
  5733. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5734. void DisableLayoutUpdate();
  5735. IntVector2 ElementToScreen(const IntVector2&);
  5736. void EnableLayoutUpdate();
  5737. void Expand(uint, bool, bool = false);
  5738. uint FindChild(UIElement) const;
  5739. uint FindItem(UIElement);
  5740. Variant GetAttribute(const String&) const;
  5741. ValueAnimation GetAttributeAnimation(const String&) const;
  5742. float GetAttributeAnimationSpeed(const String&) const;
  5743. float GetAttributeAnimationTime(const String&) const;
  5744. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5745. Variant GetAttributeDefault(const String&) const;
  5746. UIElement GetChild(const String&, bool = false) const;
  5747. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5748. Array<UIElement> GetChildren(bool = false) const;
  5749. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5750. UIElement GetElementEventSender() const;
  5751. bool GetInterceptNetworkUpdate(const String&) const;
  5752. Array<UIElement> GetItems() const;
  5753. uint GetNumChildren(bool) const;
  5754. bool HasSubscribedToEvent(Object, const String&);
  5755. bool HasSubscribedToEvent(const String&);
  5756. bool HasTag(const String&) const;
  5757. void InsertChild(uint, UIElement);
  5758. void InsertItem(uint, UIElement, UIElement = null);
  5759. bool IsExpanded(uint) const;
  5760. bool IsInside(IntVector2, bool);
  5761. bool IsInsideCombined(IntVector2, bool);
  5762. bool IsSelected(uint) const;
  5763. bool Load(File, bool = false);
  5764. bool Load(VectorBuffer&, bool = false);
  5765. bool LoadChildXML(XMLFile, XMLFile = null);
  5766. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5767. bool LoadJSON(const JSONValue&, bool = false);
  5768. bool LoadXML(File);
  5769. bool LoadXML(VectorBuffer&);
  5770. bool LoadXML(XMLFile, XMLFile);
  5771. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5772. bool LoadXML(const XMLElement&, bool = false);
  5773. void MarkNetworkUpdate() const;
  5774. void Remove();
  5775. void RemoveAllChildren();
  5776. void RemoveAllItems();
  5777. void RemoveAllTags();
  5778. void RemoveAttributeAnimation(const String&);
  5779. void RemoveChild(UIElement, uint = 0);
  5780. void RemoveChild(uint);
  5781. void RemoveInstanceDefault();
  5782. void RemoveItem(UIElement, uint = 0);
  5783. void RemoveItem(uint);
  5784. void RemoveObjectAnimation();
  5785. void RemoveSelection(uint);
  5786. bool RemoveTag(const String&);
  5787. void ResetDeepEnabled();
  5788. void ResetToDefault();
  5789. bool Save(File) const;
  5790. bool Save(VectorBuffer&) const;
  5791. bool SaveJSON(JSONValue&) const;
  5792. bool SaveXML(File, const String& = "\t");
  5793. bool SaveXML(VectorBuffer&, const String& = "\t");
  5794. bool SaveXML(XMLElement&) const;
  5795. IntVector2 ScreenToElement(const IntVector2&);
  5796. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5797. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5798. void SetAnimationTime(float);
  5799. bool SetAttribute(const String&, const Variant&);
  5800. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5801. void SetAttributeAnimationSpeed(const String&, float);
  5802. void SetAttributeAnimationTime(const String&, float);
  5803. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5804. void SetDeepEnabled(bool);
  5805. void SetEnabledRecursive(bool);
  5806. void SetFixedHeight(int);
  5807. void SetFixedSize(int, int);
  5808. void SetFixedWidth(int);
  5809. void SetInterceptNetworkUpdate(const String&, bool);
  5810. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5811. void SetMaxSize(int, int);
  5812. void SetMinSize(int, int);
  5813. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5814. void SetPosition(int, int);
  5815. void SetScrollBarsVisible(bool, bool);
  5816. void SetSelections(Array<uint>);
  5817. void SetSize(int, int);
  5818. bool SetStyle(const String&, XMLFile = null);
  5819. bool SetStyle(const XMLElement&);
  5820. bool SetStyleAuto(XMLFile = null);
  5821. void SetViewPosition(int, int);
  5822. void ToggleExpand(uint, bool = false);
  5823. void ToggleSelection(uint);
  5824. void UpdateLayout();
  5825. const Variant& GetVar(const StringHash&);
  5826. // Properties:
  5827. bool animationEnabled;
  5828. /* readonly */
  5829. Array<Variant> attributeDefaults;
  5830. /* readonly */
  5831. Array<AttributeInfo> attributeInfos;
  5832. Array<Variant> attributes;
  5833. bool autoDisableChildren;
  5834. float autoDisableThreshold;
  5835. int baseIndent;
  5836. bool bringToBack;
  5837. bool bringToFront;
  5838. /* readonly */
  5839. String category;
  5840. /* readonly */
  5841. IntVector2 childOffset;
  5842. /* readonly */
  5843. Array<UIElement> children;
  5844. bool clearSelectionOnDefocus;
  5845. IntRect clipBorder;
  5846. bool clipChildren;
  5847. /* writeonly */
  5848. Color color;
  5849. /* readonly */
  5850. bool colorGradient;
  5851. Array<Color> colors;
  5852. /* readonly */
  5853. IntRect combinedScreenRect;
  5854. /* readonly */
  5855. UIElement contentElement;
  5856. XMLFile defaultStyle;
  5857. /* readonly */
  5858. float derivedOpacity;
  5859. /* readonly */
  5860. uint dragButtonCombo;
  5861. /* readonly */
  5862. int dragButtonCount;
  5863. uint dragDropMode;
  5864. bool editable;
  5865. bool elementEventSender;
  5866. bool enabled;
  5867. /* readonly */
  5868. bool enabledSelf;
  5869. /* readonly */
  5870. bool fixedHeight;
  5871. /* readonly */
  5872. bool fixedSize;
  5873. /* readonly */
  5874. bool fixedWidth;
  5875. bool focus;
  5876. FocusMode focusMode;
  5877. int height;
  5878. bool hierarchyMode;
  5879. HighlightMode highlightMode;
  5880. HorizontalAlignment horizontalAlignment;
  5881. /* readonly */
  5882. ScrollBar horizontalScrollBar;
  5883. /* readonly */
  5884. bool hovering;
  5885. int indent;
  5886. int indentSpacing;
  5887. /* readonly */
  5888. int indentWidth;
  5889. bool internal;
  5890. /* readonly */
  5891. Array<UIElement> items;
  5892. IntRect layoutBorder;
  5893. Vector2 layoutFlexScale;
  5894. LayoutMode layoutMode;
  5895. int layoutSpacing;
  5896. int maxHeight;
  5897. IntVector2 maxSize;
  5898. int maxWidth;
  5899. int minHeight;
  5900. IntVector2 minSize;
  5901. int minWidth;
  5902. bool multiselect;
  5903. String name;
  5904. /* readonly */
  5905. uint numAllChildren;
  5906. /* readonly */
  5907. uint numAttributes;
  5908. /* readonly */
  5909. uint numChildren;
  5910. /* readonly */
  5911. uint numItems;
  5912. ObjectAnimation objectAnimation;
  5913. float opacity;
  5914. float pageStep;
  5915. UIElement parent;
  5916. IntVector2 position;
  5917. int priority;
  5918. /* readonly */
  5919. int refs;
  5920. /* readonly */
  5921. UIElement root;
  5922. /* readonly */
  5923. IntVector2 screenPosition;
  5924. bool scrollBarsAutoVisible;
  5925. float scrollDeceleration;
  5926. /* readonly */
  5927. BorderImage scrollPanel;
  5928. float scrollSnapEpsilon;
  5929. float scrollStep;
  5930. bool selectOnClickEnd;
  5931. bool selected;
  5932. /* readonly */
  5933. UIElement selectedItem;
  5934. /* readonly */
  5935. Array<UIElement> selectedItems;
  5936. uint selection;
  5937. /* readonly */
  5938. Array<uint> selections;
  5939. IntVector2 size;
  5940. bool sortChildren;
  5941. String style;
  5942. /* readonly */
  5943. Array<String> tags;
  5944. bool temporary;
  5945. TraversalMode traversalMode;
  5946. /* readonly */
  5947. StringHash type;
  5948. /* readonly */
  5949. String typeName;
  5950. bool useDerivedOpacity;
  5951. /* readonly */
  5952. VariantMap vars;
  5953. VerticalAlignment verticalAlignment;
  5954. /* readonly */
  5955. ScrollBar verticalScrollBar;
  5956. IntVector2 viewPosition;
  5957. bool visible;
  5958. /* readonly */
  5959. bool visibleEffective;
  5960. /* readonly */
  5961. int weakRefs;
  5962. int width;
  5963. };
  5964. class Localization
  5965. {
  5966. // Methods:
  5967. String Get(const String&);
  5968. String GetLanguage(int);
  5969. int GetLanguageIndex(const String&);
  5970. bool HasSubscribedToEvent(Object, const String&);
  5971. bool HasSubscribedToEvent(const String&);
  5972. void LoadJSON(const JSONValue&);
  5973. void LoadJSONFile(const String&);
  5974. void Reset();
  5975. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5976. void SetLanguage(const String&);
  5977. void SetLanguage(int);
  5978. // Properties:
  5979. /* readonly */
  5980. String category;
  5981. /* readonly */
  5982. String language;
  5983. /* readonly */
  5984. int languageIndex;
  5985. /* readonly */
  5986. int numLanguages;
  5987. /* readonly */
  5988. int refs;
  5989. /* readonly */
  5990. StringHash type;
  5991. /* readonly */
  5992. String typeName;
  5993. /* readonly */
  5994. int weakRefs;
  5995. };
  5996. class Log
  5997. {
  5998. // Methods:
  5999. void Close();
  6000. void Debug(const String&);
  6001. void Error(const String&);
  6002. bool HasSubscribedToEvent(Object, const String&);
  6003. bool HasSubscribedToEvent(const String&);
  6004. void Info(const String&);
  6005. void Open(const String&);
  6006. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6007. void Warning(const String&);
  6008. void Write(const String&, bool = false);
  6009. // Properties:
  6010. /* readonly */
  6011. String category;
  6012. /* readonly */
  6013. String lastMessage;
  6014. int level;
  6015. bool quiet;
  6016. /* readonly */
  6017. int refs;
  6018. bool timeStamp;
  6019. /* readonly */
  6020. StringHash type;
  6021. /* readonly */
  6022. String typeName;
  6023. /* readonly */
  6024. int weakRefs;
  6025. };
  6026. class Material
  6027. {
  6028. // Methods:
  6029. Material Clone(const String& = String ( )) const;
  6030. Pass GetPass(uint, const String&);
  6031. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6032. float GetShaderParameterAnimationSpeed(const String&) const;
  6033. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6034. bool HasSubscribedToEvent(Object, const String&);
  6035. bool HasSubscribedToEvent(const String&);
  6036. bool Load(File);
  6037. bool Load(VectorBuffer&);
  6038. bool Load(const JSONValue&);
  6039. bool Load(const XMLElement&);
  6040. void RemoveShaderParameter(const String&);
  6041. bool Save(File) const;
  6042. bool Save(JSONValue&) const;
  6043. bool Save(VectorBuffer&) const;
  6044. bool Save(XMLElement&) const;
  6045. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6046. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6047. void SetShaderParameterAnimationSpeed(const String&, float);
  6048. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6049. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6050. void SetUVTransform(const Vector2&, float, const Vector2&);
  6051. void SetUVTransform(const Vector2&, float, float);
  6052. void SortTechniques();
  6053. // Properties:
  6054. /* readonly */
  6055. String category;
  6056. CullMode cullMode;
  6057. BiasParameters depthBias;
  6058. FillMode fillMode;
  6059. /* readonly */
  6060. uint memoryUse;
  6061. String name;
  6062. uint numTechniques;
  6063. /* readonly */
  6064. bool occlusion;
  6065. /* readonly */
  6066. int refs;
  6067. uint8 renderOrder;
  6068. Scene scene;
  6069. /* readonly */
  6070. Array<String> shaderParameterNames;
  6071. Array<Variant> shaderParameters;
  6072. CullMode shadowCullMode;
  6073. /* readonly */
  6074. Array<TechniqueEntry> techniqueEntries;
  6075. /* readonly */
  6076. Array<Technique> techniques;
  6077. Array<Texture> textures;
  6078. /* readonly */
  6079. StringHash type;
  6080. /* readonly */
  6081. String typeName;
  6082. /* readonly */
  6083. uint useTimer;
  6084. /* readonly */
  6085. int weakRefs;
  6086. };
  6087. class Matrix2
  6088. {
  6089. // Methods:
  6090. bool Equals(const Matrix2&) const;
  6091. Matrix2 Inverse() const;
  6092. Vector2 Scale() const;
  6093. Matrix2 Scaled(const Vector2&) const;
  6094. void SetScale(const Vector2&);
  6095. void SetScale(float);
  6096. String ToString() const;
  6097. Matrix2 Transpose() const;
  6098. // Properties:
  6099. float m00;
  6100. float m01;
  6101. float m10;
  6102. float m11;
  6103. };
  6104. class Matrix3
  6105. {
  6106. // Methods:
  6107. bool Equals(const Matrix3&) const;
  6108. Matrix3 Inverse() const;
  6109. Vector3 Scale() const;
  6110. Matrix3 Scaled(const Vector3&) const;
  6111. void SetScale(const Vector3&);
  6112. void SetScale(float);
  6113. String ToString() const;
  6114. Matrix3 Transpose() const;
  6115. // Properties:
  6116. float m00;
  6117. float m01;
  6118. float m02;
  6119. float m10;
  6120. float m11;
  6121. float m12;
  6122. float m20;
  6123. float m21;
  6124. float m22;
  6125. };
  6126. class Matrix3x4
  6127. {
  6128. // Methods:
  6129. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6130. bool Equals(const Matrix3x4&) const;
  6131. Matrix3x4 Inverse() const;
  6132. Quaternion Rotation() const;
  6133. Matrix3 RotationMatrix() const;
  6134. Vector3 Scale() const;
  6135. void SetRotation(const Matrix3&);
  6136. void SetScale(const Vector3&);
  6137. void SetScale(float);
  6138. void SetTranslation(const Vector3&);
  6139. Matrix3 ToMatrix3() const;
  6140. Matrix4 ToMatrix4() const;
  6141. String ToString() const;
  6142. Vector3 Translation() const;
  6143. // Properties:
  6144. float m00;
  6145. float m01;
  6146. float m02;
  6147. float m03;
  6148. float m10;
  6149. float m11;
  6150. float m12;
  6151. float m13;
  6152. float m20;
  6153. float m21;
  6154. float m22;
  6155. float m23;
  6156. };
  6157. class Matrix4
  6158. {
  6159. // Methods:
  6160. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6161. bool Equals(const Matrix4&) const;
  6162. Matrix4 Inverse() const;
  6163. Quaternion Rotation() const;
  6164. Matrix3 RotationMatrix() const;
  6165. Vector3 Scale() const;
  6166. void SetRotation(const Matrix3&);
  6167. void SetScale(const Vector3&);
  6168. void SetScale(float);
  6169. void SetTranslation(const Vector3&);
  6170. Matrix3 ToMatrix3() const;
  6171. String ToString() const;
  6172. Vector3 Translation() const;
  6173. Matrix4 Transpose() const;
  6174. // Properties:
  6175. float m00;
  6176. float m01;
  6177. float m02;
  6178. float m03;
  6179. float m10;
  6180. float m11;
  6181. float m12;
  6182. float m13;
  6183. float m20;
  6184. float m21;
  6185. float m22;
  6186. float m23;
  6187. float m30;
  6188. float m31;
  6189. float m32;
  6190. float m33;
  6191. };
  6192. class Menu
  6193. {
  6194. // Methods:
  6195. void AddChild(UIElement);
  6196. void AddTag(const String&);
  6197. void AddTags(const String&, int8 = ';');
  6198. void ApplyAttributes();
  6199. void BringToFront();
  6200. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6201. void DisableLayoutUpdate();
  6202. IntVector2 ElementToScreen(const IntVector2&);
  6203. void EnableLayoutUpdate();
  6204. uint FindChild(UIElement) const;
  6205. Variant GetAttribute(const String&) const;
  6206. ValueAnimation GetAttributeAnimation(const String&) const;
  6207. float GetAttributeAnimationSpeed(const String&) const;
  6208. float GetAttributeAnimationTime(const String&) const;
  6209. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6210. Variant GetAttributeDefault(const String&) const;
  6211. UIElement GetChild(const String&, bool = false) const;
  6212. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6213. Array<UIElement> GetChildren(bool = false) const;
  6214. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6215. UIElement GetElementEventSender() const;
  6216. bool GetInterceptNetworkUpdate(const String&) const;
  6217. uint GetNumChildren(bool) const;
  6218. bool HasSubscribedToEvent(Object, const String&);
  6219. bool HasSubscribedToEvent(const String&);
  6220. bool HasTag(const String&) const;
  6221. void InsertChild(uint, UIElement);
  6222. bool IsInside(IntVector2, bool);
  6223. bool IsInsideCombined(IntVector2, bool);
  6224. bool Load(File, bool = false);
  6225. bool Load(VectorBuffer&, bool = false);
  6226. bool LoadChildXML(XMLFile, XMLFile = null);
  6227. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6228. bool LoadJSON(const JSONValue&, bool = false);
  6229. bool LoadXML(File);
  6230. bool LoadXML(VectorBuffer&);
  6231. bool LoadXML(XMLFile, XMLFile);
  6232. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6233. bool LoadXML(const XMLElement&, bool = false);
  6234. void MarkNetworkUpdate() const;
  6235. void Remove();
  6236. void RemoveAllChildren();
  6237. void RemoveAllTags();
  6238. void RemoveAttributeAnimation(const String&);
  6239. void RemoveChild(UIElement, uint = 0);
  6240. void RemoveChild(uint);
  6241. void RemoveInstanceDefault();
  6242. void RemoveObjectAnimation();
  6243. bool RemoveTag(const String&);
  6244. void ResetDeepEnabled();
  6245. void ResetToDefault();
  6246. bool Save(File) const;
  6247. bool Save(VectorBuffer&) const;
  6248. bool SaveJSON(JSONValue&) const;
  6249. bool SaveXML(File, const String& = "\t");
  6250. bool SaveXML(VectorBuffer&, const String& = "\t");
  6251. bool SaveXML(XMLElement&) const;
  6252. IntVector2 ScreenToElement(const IntVector2&);
  6253. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6254. void SetAccelerator(int, int);
  6255. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6256. void SetAnimationTime(float);
  6257. bool SetAttribute(const String&, const Variant&);
  6258. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6259. void SetAttributeAnimationSpeed(const String&, float);
  6260. void SetAttributeAnimationTime(const String&, float);
  6261. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6262. void SetDeepEnabled(bool);
  6263. void SetEnabledRecursive(bool);
  6264. void SetFixedHeight(int);
  6265. void SetFixedSize(int, int);
  6266. void SetFixedWidth(int);
  6267. void SetFullImageRect();
  6268. void SetHoverOffset(int, int);
  6269. void SetInterceptNetworkUpdate(const String&, bool);
  6270. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6271. void SetMaxSize(int, int);
  6272. void SetMinSize(int, int);
  6273. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6274. void SetPopupOffset(int, int);
  6275. void SetPosition(int, int);
  6276. void SetPressedChildOffset(int, int);
  6277. void SetPressedOffset(int, int);
  6278. void SetRepeat(float, float);
  6279. void SetSize(int, int);
  6280. bool SetStyle(const String&, XMLFile = null);
  6281. bool SetStyle(const XMLElement&);
  6282. bool SetStyleAuto(XMLFile = null);
  6283. void UpdateLayout();
  6284. const Variant& GetVar(const StringHash&);
  6285. // Properties:
  6286. /* readonly */
  6287. int acceleratorKey;
  6288. /* readonly */
  6289. int acceleratorQualifiers;
  6290. bool animationEnabled;
  6291. /* readonly */
  6292. Array<Variant> attributeDefaults;
  6293. /* readonly */
  6294. Array<AttributeInfo> attributeInfos;
  6295. Array<Variant> attributes;
  6296. BlendMode blendMode;
  6297. IntRect border;
  6298. bool bringToBack;
  6299. bool bringToFront;
  6300. /* readonly */
  6301. String category;
  6302. /* readonly */
  6303. IntVector2 childOffset;
  6304. /* readonly */
  6305. Array<UIElement> children;
  6306. IntRect clipBorder;
  6307. bool clipChildren;
  6308. /* writeonly */
  6309. Color color;
  6310. /* readonly */
  6311. bool colorGradient;
  6312. Array<Color> colors;
  6313. /* readonly */
  6314. IntRect combinedScreenRect;
  6315. XMLFile defaultStyle;
  6316. /* readonly */
  6317. float derivedOpacity;
  6318. /* readonly */
  6319. uint dragButtonCombo;
  6320. /* readonly */
  6321. int dragButtonCount;
  6322. uint dragDropMode;
  6323. bool editable;
  6324. bool elementEventSender;
  6325. bool enabled;
  6326. /* readonly */
  6327. bool enabledSelf;
  6328. /* readonly */
  6329. bool fixedHeight;
  6330. /* readonly */
  6331. bool fixedSize;
  6332. /* readonly */
  6333. bool fixedWidth;
  6334. bool focus;
  6335. FocusMode focusMode;
  6336. int height;
  6337. HorizontalAlignment horizontalAlignment;
  6338. IntVector2 hoverOffset;
  6339. /* readonly */
  6340. bool hovering;
  6341. IntRect imageBorder;
  6342. IntRect imageRect;
  6343. int indent;
  6344. int indentSpacing;
  6345. /* readonly */
  6346. int indentWidth;
  6347. bool internal;
  6348. IntRect layoutBorder;
  6349. Vector2 layoutFlexScale;
  6350. LayoutMode layoutMode;
  6351. int layoutSpacing;
  6352. int maxHeight;
  6353. IntVector2 maxSize;
  6354. int maxWidth;
  6355. int minHeight;
  6356. IntVector2 minSize;
  6357. int minWidth;
  6358. String name;
  6359. /* readonly */
  6360. uint numAllChildren;
  6361. /* readonly */
  6362. uint numAttributes;
  6363. /* readonly */
  6364. uint numChildren;
  6365. ObjectAnimation objectAnimation;
  6366. float opacity;
  6367. UIElement parent;
  6368. UIElement popup;
  6369. IntVector2 popupOffset;
  6370. IntVector2 position;
  6371. /* readonly */
  6372. bool pressed;
  6373. IntVector2 pressedChildOffset;
  6374. IntVector2 pressedOffset;
  6375. int priority;
  6376. /* readonly */
  6377. int refs;
  6378. float repeatDelay;
  6379. float repeatRate;
  6380. /* readonly */
  6381. UIElement root;
  6382. /* readonly */
  6383. IntVector2 screenPosition;
  6384. bool selected;
  6385. bool showPopup;
  6386. IntVector2 size;
  6387. bool sortChildren;
  6388. String style;
  6389. /* readonly */
  6390. Array<String> tags;
  6391. bool temporary;
  6392. Texture texture;
  6393. bool tiled;
  6394. TraversalMode traversalMode;
  6395. /* readonly */
  6396. StringHash type;
  6397. /* readonly */
  6398. String typeName;
  6399. bool useDerivedOpacity;
  6400. /* readonly */
  6401. VariantMap vars;
  6402. VerticalAlignment verticalAlignment;
  6403. bool visible;
  6404. /* readonly */
  6405. bool visibleEffective;
  6406. /* readonly */
  6407. int weakRefs;
  6408. int width;
  6409. };
  6410. class MessageBox
  6411. {
  6412. // Methods:
  6413. bool HasSubscribedToEvent(Object, const String&);
  6414. bool HasSubscribedToEvent(const String&);
  6415. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6416. // Properties:
  6417. /* readonly */
  6418. String category;
  6419. String message;
  6420. /* readonly */
  6421. int refs;
  6422. String title;
  6423. /* readonly */
  6424. StringHash type;
  6425. /* readonly */
  6426. String typeName;
  6427. /* readonly */
  6428. int weakRefs;
  6429. /* readonly */
  6430. UIElement window;
  6431. };
  6432. class Model
  6433. {
  6434. // Methods:
  6435. Model Clone(const String& = String ( )) const;
  6436. Geometry GetGeometry(uint, uint) const;
  6437. bool HasSubscribedToEvent(Object, const String&);
  6438. bool HasSubscribedToEvent(const String&);
  6439. bool Load(File);
  6440. bool Load(VectorBuffer&);
  6441. bool Save(File) const;
  6442. bool Save(VectorBuffer&) const;
  6443. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6444. bool SetGeometry(uint, uint, Geometry);
  6445. // Properties:
  6446. BoundingBox boundingBox;
  6447. /* readonly */
  6448. String category;
  6449. Array<Vector3> geometryCenters;
  6450. /* readonly */
  6451. uint memoryUse;
  6452. String name;
  6453. uint numGeometries;
  6454. Array<uint> numGeometryLodLevels;
  6455. /* readonly */
  6456. uint numMorphs;
  6457. /* readonly */
  6458. int refs;
  6459. /* readonly */
  6460. Skeleton skeleton;
  6461. /* readonly */
  6462. StringHash type;
  6463. /* readonly */
  6464. String typeName;
  6465. /* readonly */
  6466. uint useTimer;
  6467. /* readonly */
  6468. int weakRefs;
  6469. };
  6470. class NavArea
  6471. {
  6472. // Methods:
  6473. void ApplyAttributes();
  6474. void DrawDebugGeometry(DebugRenderer, bool);
  6475. Variant GetAttribute(const String&) const;
  6476. ValueAnimation GetAttributeAnimation(const String&) const;
  6477. float GetAttributeAnimationSpeed(const String&) const;
  6478. float GetAttributeAnimationTime(const String&) const;
  6479. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6480. Variant GetAttributeDefault(const String&) const;
  6481. bool GetInterceptNetworkUpdate(const String&) const;
  6482. bool HasSubscribedToEvent(Object, const String&);
  6483. bool HasSubscribedToEvent(const String&);
  6484. bool Load(File, bool = false);
  6485. bool Load(VectorBuffer&, bool = false);
  6486. bool LoadJSON(const JSONValue&, bool = false);
  6487. bool LoadXML(const XMLElement&, bool = false);
  6488. void MarkNetworkUpdate() const;
  6489. void Remove();
  6490. void RemoveAttributeAnimation(const String&);
  6491. void RemoveInstanceDefault();
  6492. void RemoveObjectAnimation();
  6493. void ResetToDefault();
  6494. bool Save(File) const;
  6495. bool Save(VectorBuffer&) const;
  6496. bool SaveJSON(JSONValue&) const;
  6497. bool SaveXML(XMLElement&) const;
  6498. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6499. void SetAnimationTime(float);
  6500. bool SetAttribute(const String&, const Variant&);
  6501. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6502. void SetAttributeAnimationSpeed(const String&, float);
  6503. void SetAttributeAnimationTime(const String&, float);
  6504. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6505. void SetInterceptNetworkUpdate(const String&, bool);
  6506. // Properties:
  6507. bool animationEnabled;
  6508. uint areaID;
  6509. /* readonly */
  6510. Array<Variant> attributeDefaults;
  6511. /* readonly */
  6512. Array<AttributeInfo> attributeInfos;
  6513. Array<Variant> attributes;
  6514. BoundingBox boundingBox;
  6515. /* readonly */
  6516. String category;
  6517. bool enabled;
  6518. /* readonly */
  6519. bool enabledEffective;
  6520. /* readonly */
  6521. uint id;
  6522. /* readonly */
  6523. Node node;
  6524. /* readonly */
  6525. uint numAttributes;
  6526. ObjectAnimation objectAnimation;
  6527. /* readonly */
  6528. int refs;
  6529. bool temporary;
  6530. /* readonly */
  6531. StringHash type;
  6532. /* readonly */
  6533. String typeName;
  6534. /* readonly */
  6535. int weakRefs;
  6536. /* readonly */
  6537. BoundingBox worldBoundingBox;
  6538. };
  6539. class Navigable
  6540. {
  6541. // Methods:
  6542. void ApplyAttributes();
  6543. void DrawDebugGeometry(DebugRenderer, bool);
  6544. Variant GetAttribute(const String&) const;
  6545. ValueAnimation GetAttributeAnimation(const String&) const;
  6546. float GetAttributeAnimationSpeed(const String&) const;
  6547. float GetAttributeAnimationTime(const String&) const;
  6548. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6549. Variant GetAttributeDefault(const String&) const;
  6550. bool GetInterceptNetworkUpdate(const String&) const;
  6551. bool HasSubscribedToEvent(Object, const String&);
  6552. bool HasSubscribedToEvent(const String&);
  6553. bool Load(File, bool = false);
  6554. bool Load(VectorBuffer&, bool = false);
  6555. bool LoadJSON(const JSONValue&, bool = false);
  6556. bool LoadXML(const XMLElement&, bool = false);
  6557. void MarkNetworkUpdate() const;
  6558. void Remove();
  6559. void RemoveAttributeAnimation(const String&);
  6560. void RemoveInstanceDefault();
  6561. void RemoveObjectAnimation();
  6562. void ResetToDefault();
  6563. bool Save(File) const;
  6564. bool Save(VectorBuffer&) const;
  6565. bool SaveJSON(JSONValue&) const;
  6566. bool SaveXML(XMLElement&) const;
  6567. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6568. void SetAnimationTime(float);
  6569. bool SetAttribute(const String&, const Variant&);
  6570. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6571. void SetAttributeAnimationSpeed(const String&, float);
  6572. void SetAttributeAnimationTime(const String&, float);
  6573. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6574. void SetInterceptNetworkUpdate(const String&, bool);
  6575. // Properties:
  6576. bool animationEnabled;
  6577. /* readonly */
  6578. Array<Variant> attributeDefaults;
  6579. /* readonly */
  6580. Array<AttributeInfo> attributeInfos;
  6581. Array<Variant> attributes;
  6582. /* readonly */
  6583. String category;
  6584. bool enabled;
  6585. /* readonly */
  6586. bool enabledEffective;
  6587. /* readonly */
  6588. uint id;
  6589. /* readonly */
  6590. Node node;
  6591. /* readonly */
  6592. uint numAttributes;
  6593. ObjectAnimation objectAnimation;
  6594. bool recursive;
  6595. /* readonly */
  6596. int refs;
  6597. bool temporary;
  6598. /* readonly */
  6599. StringHash type;
  6600. /* readonly */
  6601. String typeName;
  6602. /* readonly */
  6603. int weakRefs;
  6604. };
  6605. class NavigationMesh
  6606. {
  6607. // Methods:
  6608. void ApplyAttributes();
  6609. bool Build();
  6610. bool Build(const BoundingBox&);
  6611. void DrawDebugGeometry(DebugRenderer, bool);
  6612. void DrawDebugGeometry(bool);
  6613. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6614. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6615. float GetAreaCost(uint) const;
  6616. Variant GetAttribute(const String&) const;
  6617. ValueAnimation GetAttributeAnimation(const String&) const;
  6618. float GetAttributeAnimationSpeed(const String&) const;
  6619. float GetAttributeAnimationTime(const String&) const;
  6620. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6621. Variant GetAttributeDefault(const String&) const;
  6622. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6623. bool GetInterceptNetworkUpdate(const String&) const;
  6624. Vector3 GetRandomPoint();
  6625. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6626. bool HasSubscribedToEvent(Object, const String&);
  6627. bool HasSubscribedToEvent(const String&);
  6628. bool Load(File, bool = false);
  6629. bool Load(VectorBuffer&, bool = false);
  6630. bool LoadJSON(const JSONValue&, bool = false);
  6631. bool LoadXML(const XMLElement&, bool = false);
  6632. void MarkNetworkUpdate() const;
  6633. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6634. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6635. void Remove();
  6636. void RemoveAttributeAnimation(const String&);
  6637. void RemoveInstanceDefault();
  6638. void RemoveObjectAnimation();
  6639. void ResetToDefault();
  6640. bool Save(File) const;
  6641. bool Save(VectorBuffer&) const;
  6642. bool SaveJSON(JSONValue&) const;
  6643. bool SaveXML(XMLElement&) const;
  6644. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6645. void SetAnimationTime(float);
  6646. void SetAreaCost(uint, float);
  6647. bool SetAttribute(const String&, const Variant&);
  6648. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6649. void SetAttributeAnimationSpeed(const String&, float);
  6650. void SetAttributeAnimationTime(const String&, float);
  6651. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6652. void SetInterceptNetworkUpdate(const String&, bool);
  6653. // Properties:
  6654. float agentHeight;
  6655. float agentMaxClimb;
  6656. float agentMaxSlope;
  6657. float agentRadius;
  6658. bool animationEnabled;
  6659. /* readonly */
  6660. Array<Variant> attributeDefaults;
  6661. /* readonly */
  6662. Array<AttributeInfo> attributeInfos;
  6663. Array<Variant> attributes;
  6664. /* readonly */
  6665. BoundingBox boundingBox;
  6666. /* readonly */
  6667. String category;
  6668. float cellHeight;
  6669. float cellSize;
  6670. float detailSampleDistance;
  6671. float detailSampleMaxError;
  6672. bool drawNavAreas;
  6673. bool drawOffMeshConnections;
  6674. float edgeMaxError;
  6675. float edgeMaxLength;
  6676. bool enabled;
  6677. /* readonly */
  6678. bool enabledEffective;
  6679. /* readonly */
  6680. uint id;
  6681. /* readonly */
  6682. bool initialized;
  6683. /* readonly */
  6684. Node node;
  6685. /* readonly */
  6686. uint numAttributes;
  6687. /* readonly */
  6688. IntVector2 numTiles;
  6689. ObjectAnimation objectAnimation;
  6690. Vector3 padding;
  6691. NavmeshPartitionType partitionType;
  6692. /* readonly */
  6693. int refs;
  6694. float regionMergeSize;
  6695. float regionMinSize;
  6696. bool temporary;
  6697. int tileSize;
  6698. /* readonly */
  6699. StringHash type;
  6700. /* readonly */
  6701. String typeName;
  6702. /* readonly */
  6703. int weakRefs;
  6704. /* readonly */
  6705. BoundingBox worldBoundingBox;
  6706. };
  6707. class Network
  6708. {
  6709. // Methods:
  6710. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6711. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6712. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6713. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6714. bool CheckRemoteEvent(const String&) const;
  6715. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6716. void Disconnect(int = 0);
  6717. bool HasSubscribedToEvent(Object, const String&);
  6718. bool HasSubscribedToEvent(const String&);
  6719. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6720. void RegisterRemoteEvent(const String&) const;
  6721. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6722. void SendPackageToClients(Scene, PackageFile);
  6723. bool StartServer(uint16);
  6724. void StopServer();
  6725. void UnregisterAllRemoteEvents();
  6726. void UnregisterRemoteEvent(const String&) const;
  6727. // Properties:
  6728. /* readonly */
  6729. String category;
  6730. /* readonly */
  6731. Array<Connection> clientConnections;
  6732. String packageCacheDir;
  6733. /* readonly */
  6734. int refs;
  6735. /* readonly */
  6736. Connection serverConnection;
  6737. /* readonly */
  6738. bool serverRunning;
  6739. int simulatedLatency;
  6740. float simulatedPacketLoss;
  6741. /* readonly */
  6742. StringHash type;
  6743. /* readonly */
  6744. String typeName;
  6745. int updateFps;
  6746. /* readonly */
  6747. int weakRefs;
  6748. };
  6749. class NetworkPriority
  6750. {
  6751. // Methods:
  6752. void ApplyAttributes();
  6753. void DrawDebugGeometry(DebugRenderer, bool);
  6754. Variant GetAttribute(const String&) const;
  6755. ValueAnimation GetAttributeAnimation(const String&) const;
  6756. float GetAttributeAnimationSpeed(const String&) const;
  6757. float GetAttributeAnimationTime(const String&) const;
  6758. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6759. Variant GetAttributeDefault(const String&) const;
  6760. bool GetInterceptNetworkUpdate(const String&) const;
  6761. bool HasSubscribedToEvent(Object, const String&);
  6762. bool HasSubscribedToEvent(const String&);
  6763. bool Load(File, bool = false);
  6764. bool Load(VectorBuffer&, bool = false);
  6765. bool LoadJSON(const JSONValue&, bool = false);
  6766. bool LoadXML(const XMLElement&, bool = false);
  6767. void MarkNetworkUpdate() const;
  6768. void Remove();
  6769. void RemoveAttributeAnimation(const String&);
  6770. void RemoveInstanceDefault();
  6771. void RemoveObjectAnimation();
  6772. void ResetToDefault();
  6773. bool Save(File) const;
  6774. bool Save(VectorBuffer&) const;
  6775. bool SaveJSON(JSONValue&) const;
  6776. bool SaveXML(XMLElement&) const;
  6777. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6778. void SetAnimationTime(float);
  6779. bool SetAttribute(const String&, const Variant&);
  6780. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6781. void SetAttributeAnimationSpeed(const String&, float);
  6782. void SetAttributeAnimationTime(const String&, float);
  6783. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6784. void SetInterceptNetworkUpdate(const String&, bool);
  6785. // Properties:
  6786. bool alwaysUpdateOwner;
  6787. bool animationEnabled;
  6788. /* readonly */
  6789. Array<Variant> attributeDefaults;
  6790. /* readonly */
  6791. Array<AttributeInfo> attributeInfos;
  6792. Array<Variant> attributes;
  6793. float basePriority;
  6794. /* readonly */
  6795. String category;
  6796. float distanceFactor;
  6797. bool enabled;
  6798. /* readonly */
  6799. bool enabledEffective;
  6800. /* readonly */
  6801. uint id;
  6802. float minPriority;
  6803. /* readonly */
  6804. Node node;
  6805. /* readonly */
  6806. uint numAttributes;
  6807. ObjectAnimation objectAnimation;
  6808. /* readonly */
  6809. int refs;
  6810. bool temporary;
  6811. /* readonly */
  6812. StringHash type;
  6813. /* readonly */
  6814. String typeName;
  6815. /* readonly */
  6816. int weakRefs;
  6817. };
  6818. class Node
  6819. {
  6820. // Methods:
  6821. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6822. void AddTag(const String&);
  6823. void AddTags(const String&, int8 = ';');
  6824. void ApplyAttributes();
  6825. Node Clone(CreateMode = REPLICATED);
  6826. Component CloneComponent(Component, CreateMode, uint = 0);
  6827. Component CloneComponent(Component, uint = 0);
  6828. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6829. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6830. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6831. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6832. Variant GetAttribute(const String&) const;
  6833. ValueAnimation GetAttributeAnimation(const String&) const;
  6834. float GetAttributeAnimationSpeed(const String&) const;
  6835. float GetAttributeAnimationTime(const String&) const;
  6836. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6837. Variant GetAttributeDefault(const String&) const;
  6838. Node GetChild(const String&, bool = false) const;
  6839. Array<Node> GetChildren(bool = false) const;
  6840. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6841. Array<Node> GetChildrenWithScript(bool = false) const;
  6842. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6843. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  6844. Component GetComponent(const String&, bool = false) const;
  6845. Array<Component> GetComponents() const;
  6846. Array<Component> GetComponents(const String&, bool = false) const;
  6847. bool GetInterceptNetworkUpdate(const String&) const;
  6848. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6849. Component GetParentComponent(const String&, bool = false) const;
  6850. ScriptObject GetScriptObject() const;
  6851. ScriptObject GetScriptObject(const String&) const;
  6852. bool HasComponent(const String&) const;
  6853. bool HasSubscribedToEvent(Object, const String&);
  6854. bool HasSubscribedToEvent(const String&);
  6855. bool HasTag(const String&);
  6856. bool Load(File, bool = false);
  6857. bool Load(VectorBuffer&, bool = false);
  6858. bool LoadJSON(const JSONValue&, bool = false);
  6859. bool LoadXML(const XMLElement&, bool = false);
  6860. Vector3 LocalToWorld(const Vector3&) const;
  6861. Vector3 LocalToWorld(const Vector4&) const;
  6862. Vector2 LocalToWorld2D(const Vector2&) const;
  6863. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6864. void MarkDirty();
  6865. void MarkNetworkUpdate() const;
  6866. void Pitch(float, TransformSpace = TS_LOCAL);
  6867. void Remove();
  6868. void RemoveAllChildren();
  6869. void RemoveAllComponents();
  6870. void RemoveAllTags();
  6871. void RemoveAttributeAnimation(const String&);
  6872. void RemoveChild(Node);
  6873. void RemoveChildren(bool, bool, bool);
  6874. void RemoveComponent(Component);
  6875. void RemoveComponent(const String&);
  6876. void RemoveComponents(bool, bool);
  6877. void RemoveComponents(const String&);
  6878. void RemoveInstanceDefault();
  6879. void RemoveObjectAnimation();
  6880. bool RemoveTag(const String&);
  6881. void ResetDeepEnabled();
  6882. void ResetToDefault();
  6883. void Roll(float, TransformSpace = TS_LOCAL);
  6884. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6885. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6886. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6887. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6888. bool Save(File) const;
  6889. bool Save(VectorBuffer&) const;
  6890. bool SaveJSON(File);
  6891. bool SaveJSON(JSONValue&) const;
  6892. bool SaveJSON(VectorBuffer&);
  6893. bool SaveXML(File, const String& = "\t");
  6894. bool SaveXML(VectorBuffer&, const String& = "\t");
  6895. bool SaveXML(XMLElement&) const;
  6896. void Scale(const Vector3&);
  6897. void Scale(float);
  6898. void Scale2D(const Vector2&);
  6899. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6900. void SetAnimationTime(float);
  6901. bool SetAttribute(const String&, const Variant&);
  6902. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6903. void SetAttributeAnimationSpeed(const String&, float);
  6904. void SetAttributeAnimationTime(const String&, float);
  6905. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6906. void SetDeepEnabled(bool);
  6907. void SetEnabledRecursive(bool);
  6908. void SetInterceptNetworkUpdate(const String&, bool);
  6909. void SetPosition2D(float, float);
  6910. void SetScale(float);
  6911. void SetScale2D(float, float);
  6912. void SetTransform(const Vector3&, const Quaternion&);
  6913. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6914. void SetTransform(const Vector3&, const Quaternion&, float);
  6915. void SetTransform2D(const Vector2&, float);
  6916. void SetTransform2D(const Vector2&, float, const Vector2&);
  6917. void SetTransform2D(const Vector2&, float, float);
  6918. void SetWorldTransform(const Vector3&, const Quaternion&);
  6919. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6920. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6921. void SetWorldTransform2D(const Vector2&, float);
  6922. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6923. void SetWorldTransform2D(const Vector2&, float, float);
  6924. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6925. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6926. Vector3 WorldToLocal(const Vector3&) const;
  6927. Vector3 WorldToLocal(const Vector4&) const;
  6928. Vector2 WorldToLocal2D(const Vector2&) const;
  6929. void Yaw(float, TransformSpace = TS_LOCAL);
  6930. // Properties:
  6931. bool animationEnabled;
  6932. /* readonly */
  6933. Array<Variant> attributeDefaults;
  6934. /* readonly */
  6935. Array<AttributeInfo> attributeInfos;
  6936. Array<Variant> attributes;
  6937. /* readonly */
  6938. String category;
  6939. /* readonly */
  6940. Array<Node> children;
  6941. /* readonly */
  6942. Array<Component> components;
  6943. Vector3 direction;
  6944. bool enabled;
  6945. /* readonly */
  6946. bool enabledSelf;
  6947. /* readonly */
  6948. uint id;
  6949. String name;
  6950. /* readonly */
  6951. uint numAllChildren;
  6952. /* readonly */
  6953. uint numAttributes;
  6954. /* readonly */
  6955. uint numChildren;
  6956. /* readonly */
  6957. uint numComponents;
  6958. ObjectAnimation objectAnimation;
  6959. Connection owner;
  6960. Node parent;
  6961. Vector3 position;
  6962. Vector2 position2D;
  6963. /* readonly */
  6964. int refs;
  6965. /* readonly */
  6966. Vector3 right;
  6967. Quaternion rotation;
  6968. float rotation2D;
  6969. Vector3 scale;
  6970. Vector2 scale2D;
  6971. /* readonly */
  6972. Scene scene;
  6973. /* readonly */
  6974. ScriptObject scriptObject;
  6975. /* readonly */
  6976. Array<String> tags;
  6977. bool temporary;
  6978. /* readonly */
  6979. Matrix3x4 transform;
  6980. /* readonly */
  6981. StringHash type;
  6982. /* readonly */
  6983. String typeName;
  6984. /* readonly */
  6985. Vector3 up;
  6986. /* readonly */
  6987. VariantMap vars;
  6988. /* readonly */
  6989. int weakRefs;
  6990. Vector3 worldDirection;
  6991. Vector3 worldPosition;
  6992. Vector2 worldPosition2D;
  6993. /* readonly */
  6994. Vector3 worldRight;
  6995. Quaternion worldRotation;
  6996. float worldRotation2D;
  6997. Vector3 worldScale;
  6998. Vector2 worldScale2D;
  6999. /* readonly */
  7000. Matrix3x4 worldTransform;
  7001. /* readonly */
  7002. Vector3 worldUp;
  7003. };
  7004. class Object
  7005. {
  7006. // Methods:
  7007. bool HasSubscribedToEvent(Object, const String&);
  7008. bool HasSubscribedToEvent(const String&);
  7009. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7010. // Properties:
  7011. /* readonly */
  7012. String category;
  7013. /* readonly */
  7014. int refs;
  7015. /* readonly */
  7016. StringHash type;
  7017. /* readonly */
  7018. String typeName;
  7019. /* readonly */
  7020. int weakRefs;
  7021. };
  7022. class ObjectAnimation
  7023. {
  7024. // Methods:
  7025. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7026. ValueAnimation GetAttributeAnimation(const String&) const;
  7027. float GetAttributeAnimationSpeed(const String&) const;
  7028. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7029. bool HasSubscribedToEvent(Object, const String&);
  7030. bool HasSubscribedToEvent(const String&);
  7031. bool Load(File);
  7032. bool Load(VectorBuffer&);
  7033. void RemoveAttributeAnimation(ValueAnimation);
  7034. void RemoveAttributeAnimation(const String&);
  7035. bool Save(File) const;
  7036. bool Save(VectorBuffer&) const;
  7037. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7038. // Properties:
  7039. /* readonly */
  7040. Array<Variant> attributeAnimations;
  7041. /* readonly */
  7042. String category;
  7043. /* readonly */
  7044. uint memoryUse;
  7045. String name;
  7046. /* readonly */
  7047. int refs;
  7048. /* readonly */
  7049. Array<Variant> speeds;
  7050. /* readonly */
  7051. StringHash type;
  7052. /* readonly */
  7053. String typeName;
  7054. /* readonly */
  7055. uint useTimer;
  7056. /* readonly */
  7057. int weakRefs;
  7058. /* readonly */
  7059. Array<Variant> wrapModes;
  7060. };
  7061. class Obstacle
  7062. {
  7063. // Methods:
  7064. void ApplyAttributes();
  7065. void DrawDebugGeometry(DebugRenderer, bool);
  7066. void DrawDebugGeometry(bool);
  7067. Variant GetAttribute(const String&) const;
  7068. ValueAnimation GetAttributeAnimation(const String&) const;
  7069. float GetAttributeAnimationSpeed(const String&) const;
  7070. float GetAttributeAnimationTime(const String&) const;
  7071. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7072. Variant GetAttributeDefault(const String&) const;
  7073. bool GetInterceptNetworkUpdate(const String&) const;
  7074. bool HasSubscribedToEvent(Object, const String&);
  7075. bool HasSubscribedToEvent(const String&);
  7076. bool Load(File, bool = false);
  7077. bool Load(VectorBuffer&, bool = false);
  7078. bool LoadJSON(const JSONValue&, bool = false);
  7079. bool LoadXML(const XMLElement&, bool = false);
  7080. void MarkNetworkUpdate() const;
  7081. void Remove();
  7082. void RemoveAttributeAnimation(const String&);
  7083. void RemoveInstanceDefault();
  7084. void RemoveObjectAnimation();
  7085. void ResetToDefault();
  7086. bool Save(File) const;
  7087. bool Save(VectorBuffer&) const;
  7088. bool SaveJSON(JSONValue&) const;
  7089. bool SaveXML(XMLElement&) const;
  7090. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7091. void SetAnimationTime(float);
  7092. bool SetAttribute(const String&, const Variant&);
  7093. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7094. void SetAttributeAnimationSpeed(const String&, float);
  7095. void SetAttributeAnimationTime(const String&, float);
  7096. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7097. void SetInterceptNetworkUpdate(const String&, bool);
  7098. // Properties:
  7099. bool animationEnabled;
  7100. /* readonly */
  7101. Array<Variant> attributeDefaults;
  7102. /* readonly */
  7103. Array<AttributeInfo> attributeInfos;
  7104. Array<Variant> attributes;
  7105. /* readonly */
  7106. String category;
  7107. bool enabled;
  7108. /* readonly */
  7109. bool enabledEffective;
  7110. float height;
  7111. /* readonly */
  7112. uint id;
  7113. /* readonly */
  7114. Node node;
  7115. /* readonly */
  7116. uint numAttributes;
  7117. ObjectAnimation objectAnimation;
  7118. /* readonly */
  7119. uint obstacleId;
  7120. float radius;
  7121. /* readonly */
  7122. int refs;
  7123. bool temporary;
  7124. /* readonly */
  7125. StringHash type;
  7126. /* readonly */
  7127. String typeName;
  7128. /* readonly */
  7129. int weakRefs;
  7130. };
  7131. class Octree
  7132. {
  7133. // Methods:
  7134. void AddManualDrawable(Drawable);
  7135. void ApplyAttributes();
  7136. void DrawDebugGeometry(DebugRenderer, bool);
  7137. void DrawDebugGeometry(bool) const;
  7138. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7139. Variant GetAttribute(const String&) const;
  7140. ValueAnimation GetAttributeAnimation(const String&) const;
  7141. float GetAttributeAnimationSpeed(const String&) const;
  7142. float GetAttributeAnimationTime(const String&) const;
  7143. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7144. Variant GetAttributeDefault(const String&) const;
  7145. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7146. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7147. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7148. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7149. bool GetInterceptNetworkUpdate(const String&) const;
  7150. bool HasSubscribedToEvent(Object, const String&);
  7151. bool HasSubscribedToEvent(const String&);
  7152. bool Load(File, bool = false);
  7153. bool Load(VectorBuffer&, bool = false);
  7154. bool LoadJSON(const JSONValue&, bool = false);
  7155. bool LoadXML(const XMLElement&, bool = false);
  7156. void MarkNetworkUpdate() const;
  7157. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7158. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7159. void Remove();
  7160. void RemoveAttributeAnimation(const String&);
  7161. void RemoveInstanceDefault();
  7162. void RemoveManualDrawable(Drawable);
  7163. void RemoveObjectAnimation();
  7164. void ResetToDefault();
  7165. bool Save(File) const;
  7166. bool Save(VectorBuffer&) const;
  7167. bool SaveJSON(JSONValue&) const;
  7168. bool SaveXML(XMLElement&) const;
  7169. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7170. void SetAnimationTime(float);
  7171. bool SetAttribute(const String&, const Variant&);
  7172. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7173. void SetAttributeAnimationSpeed(const String&, float);
  7174. void SetAttributeAnimationTime(const String&, float);
  7175. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7176. void SetInterceptNetworkUpdate(const String&, bool);
  7177. void SetSize(const BoundingBox&, uint);
  7178. // Properties:
  7179. bool animationEnabled;
  7180. /* readonly */
  7181. Array<Variant> attributeDefaults;
  7182. /* readonly */
  7183. Array<AttributeInfo> attributeInfos;
  7184. Array<Variant> attributes;
  7185. /* readonly */
  7186. String category;
  7187. bool enabled;
  7188. /* readonly */
  7189. bool enabledEffective;
  7190. /* readonly */
  7191. uint id;
  7192. /* readonly */
  7193. Node node;
  7194. /* readonly */
  7195. uint numAttributes;
  7196. /* readonly */
  7197. uint numLevels;
  7198. ObjectAnimation objectAnimation;
  7199. /* readonly */
  7200. int refs;
  7201. bool temporary;
  7202. /* readonly */
  7203. StringHash type;
  7204. /* readonly */
  7205. String typeName;
  7206. /* readonly */
  7207. int weakRefs;
  7208. /* readonly */
  7209. BoundingBox worldBoundingBox;
  7210. };
  7211. class OffMeshConnection
  7212. {
  7213. // Methods:
  7214. void ApplyAttributes();
  7215. void DrawDebugGeometry(DebugRenderer, bool);
  7216. Variant GetAttribute(const String&) const;
  7217. ValueAnimation GetAttributeAnimation(const String&) const;
  7218. float GetAttributeAnimationSpeed(const String&) const;
  7219. float GetAttributeAnimationTime(const String&) const;
  7220. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7221. Variant GetAttributeDefault(const String&) const;
  7222. bool GetInterceptNetworkUpdate(const String&) const;
  7223. bool HasSubscribedToEvent(Object, const String&);
  7224. bool HasSubscribedToEvent(const String&);
  7225. bool Load(File, bool = false);
  7226. bool Load(VectorBuffer&, bool = false);
  7227. bool LoadJSON(const JSONValue&, bool = false);
  7228. bool LoadXML(const XMLElement&, bool = false);
  7229. void MarkNetworkUpdate() const;
  7230. void Remove();
  7231. void RemoveAttributeAnimation(const String&);
  7232. void RemoveInstanceDefault();
  7233. void RemoveObjectAnimation();
  7234. void ResetToDefault();
  7235. bool Save(File) const;
  7236. bool Save(VectorBuffer&) const;
  7237. bool SaveJSON(JSONValue&) const;
  7238. bool SaveXML(XMLElement&) const;
  7239. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7240. void SetAnimationTime(float);
  7241. bool SetAttribute(const String&, const Variant&);
  7242. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7243. void SetAttributeAnimationSpeed(const String&, float);
  7244. void SetAttributeAnimationTime(const String&, float);
  7245. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7246. void SetInterceptNetworkUpdate(const String&, bool);
  7247. // Properties:
  7248. bool animationEnabled;
  7249. uint areaID;
  7250. /* readonly */
  7251. Array<Variant> attributeDefaults;
  7252. /* readonly */
  7253. Array<AttributeInfo> attributeInfos;
  7254. Array<Variant> attributes;
  7255. bool bidirectional;
  7256. /* readonly */
  7257. String category;
  7258. bool enabled;
  7259. /* readonly */
  7260. bool enabledEffective;
  7261. Node endPoint;
  7262. /* readonly */
  7263. uint id;
  7264. uint mask;
  7265. /* readonly */
  7266. Node node;
  7267. /* readonly */
  7268. uint numAttributes;
  7269. ObjectAnimation objectAnimation;
  7270. float radius;
  7271. /* readonly */
  7272. int refs;
  7273. bool temporary;
  7274. /* readonly */
  7275. StringHash type;
  7276. /* readonly */
  7277. String typeName;
  7278. /* readonly */
  7279. int weakRefs;
  7280. };
  7281. class PackageFile
  7282. {
  7283. // Methods:
  7284. bool Exists(const String&) const;
  7285. Array<String> GetEntryNames() const;
  7286. bool HasSubscribedToEvent(Object, const String&);
  7287. bool HasSubscribedToEvent(const String&);
  7288. bool Open(const String&, uint = 0) const;
  7289. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7290. bool compressed() const;
  7291. // Properties:
  7292. /* readonly */
  7293. String category;
  7294. /* readonly */
  7295. uint checksum;
  7296. /* readonly */
  7297. String name;
  7298. /* readonly */
  7299. uint numFiles;
  7300. /* readonly */
  7301. int refs;
  7302. /* readonly */
  7303. uint totalSize;
  7304. /* readonly */
  7305. StringHash type;
  7306. /* readonly */
  7307. String typeName;
  7308. /* readonly */
  7309. int weakRefs;
  7310. };
  7311. class ParticleEffect
  7312. {
  7313. // Methods:
  7314. void AddColorFrame(ColorFrame);
  7315. void AddColorTime(Color&, float);
  7316. void AddTextureFrame(TextureFrame);
  7317. void AddTextureTime(Rect&, float);
  7318. ColorFrame GetColorFrame(uint) const;
  7319. TextureFrame GetTextureFrame(uint) const;
  7320. bool HasSubscribedToEvent(Object, const String&);
  7321. bool HasSubscribedToEvent(const String&);
  7322. bool Load(File);
  7323. bool Load(VectorBuffer&);
  7324. bool Load(const XMLElement&);
  7325. void RemoveColorFrame(uint);
  7326. void RemoveTextureFrame(uint);
  7327. bool Save(File) const;
  7328. bool Save(VectorBuffer&) const;
  7329. bool Save(XMLElement&) const;
  7330. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7331. void SetColorFrame(uint, ColorFrame);
  7332. void SetTextureFrame(uint, TextureFrame);
  7333. void SortColorFrames();
  7334. void SortTextureFrames();
  7335. // Properties:
  7336. float activeTime;
  7337. float animationLodBias;
  7338. /* readonly */
  7339. String category;
  7340. Vector3 constantForce;
  7341. float dampingForce;
  7342. Vector3 emitterSize;
  7343. EmitterType emitterType;
  7344. FaceCameraMode faceCameraMode;
  7345. float inactiveTime;
  7346. Material material;
  7347. Vector3 maxDirection;
  7348. float maxEmissionRate;
  7349. Vector2 maxParticleSize;
  7350. float maxRotation;
  7351. float maxRotationSpeed;
  7352. float maxTimeToLive;
  7353. float maxVelocity;
  7354. /* readonly */
  7355. uint memoryUse;
  7356. Vector3 minDirection;
  7357. float minEmissionRate;
  7358. Vector2 minParticleSize;
  7359. float minRotation;
  7360. float minRotationSpeed;
  7361. float minTimeToLive;
  7362. float minVelocity;
  7363. String name;
  7364. uint numColorFrames;
  7365. uint numParticles;
  7366. uint numTextureFrames;
  7367. /* readonly */
  7368. int refs;
  7369. bool relative;
  7370. bool scaled;
  7371. float sizeAdd;
  7372. float sizeMul;
  7373. bool sorted;
  7374. /* readonly */
  7375. StringHash type;
  7376. /* readonly */
  7377. String typeName;
  7378. bool updateInvisible;
  7379. /* readonly */
  7380. uint useTimer;
  7381. /* readonly */
  7382. int weakRefs;
  7383. };
  7384. class ParticleEffect2D
  7385. {
  7386. // Methods:
  7387. bool HasSubscribedToEvent(Object, const String&);
  7388. bool HasSubscribedToEvent(const String&);
  7389. bool Load(File);
  7390. bool Load(VectorBuffer&);
  7391. bool Save(File) const;
  7392. bool Save(VectorBuffer&) const;
  7393. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7394. // Properties:
  7395. /* readonly */
  7396. String category;
  7397. /* readonly */
  7398. uint memoryUse;
  7399. String name;
  7400. /* readonly */
  7401. int refs;
  7402. /* readonly */
  7403. StringHash type;
  7404. /* readonly */
  7405. String typeName;
  7406. /* readonly */
  7407. uint useTimer;
  7408. /* readonly */
  7409. int weakRefs;
  7410. };
  7411. class ParticleEmitter
  7412. {
  7413. // Methods:
  7414. void ApplyAttributes();
  7415. void ApplyEffect();
  7416. void Commit();
  7417. void DrawDebugGeometry(DebugRenderer, bool);
  7418. Variant GetAttribute(const String&) const;
  7419. ValueAnimation GetAttributeAnimation(const String&) const;
  7420. float GetAttributeAnimationSpeed(const String&) const;
  7421. float GetAttributeAnimationTime(const String&) const;
  7422. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7423. Variant GetAttributeDefault(const String&) const;
  7424. bool GetInterceptNetworkUpdate(const String&) const;
  7425. bool HasSubscribedToEvent(Object, const String&);
  7426. bool HasSubscribedToEvent(const String&);
  7427. bool IsInView(Camera) const;
  7428. bool Load(File, bool = false);
  7429. bool Load(VectorBuffer&, bool = false);
  7430. bool LoadJSON(const JSONValue&, bool = false);
  7431. bool LoadXML(const XMLElement&, bool = false);
  7432. void MarkNetworkUpdate() const;
  7433. void Remove();
  7434. void RemoveAllParticles();
  7435. void RemoveAttributeAnimation(const String&);
  7436. void RemoveInstanceDefault();
  7437. void RemoveObjectAnimation();
  7438. void Reset();
  7439. void ResetEmissionTimer();
  7440. void ResetToDefault();
  7441. bool Save(File) const;
  7442. bool Save(VectorBuffer&) const;
  7443. bool SaveJSON(JSONValue&) const;
  7444. bool SaveXML(XMLElement&) const;
  7445. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7446. void SetAnimationTime(float);
  7447. bool SetAttribute(const String&, const Variant&);
  7448. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7449. void SetAttributeAnimationSpeed(const String&, float);
  7450. void SetAttributeAnimationTime(const String&, float);
  7451. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7452. void SetInterceptNetworkUpdate(const String&, bool);
  7453. // Properties:
  7454. bool animationEnabled;
  7455. float animationLodBias;
  7456. /* readonly */
  7457. Array<Variant> attributeDefaults;
  7458. /* readonly */
  7459. Array<AttributeInfo> attributeInfos;
  7460. Array<Variant> attributes;
  7461. /* readonly */
  7462. Array<Billboard> billboards;
  7463. /* readonly */
  7464. BoundingBox boundingBox;
  7465. bool castShadows;
  7466. /* readonly */
  7467. String category;
  7468. float drawDistance;
  7469. ParticleEffect effect;
  7470. bool emitting;
  7471. bool enabled;
  7472. /* readonly */
  7473. bool enabledEffective;
  7474. FaceCameraMode faceCameraMode;
  7475. /* readonly */
  7476. uint id;
  7477. /* readonly */
  7478. bool inView;
  7479. uint lightMask;
  7480. float lodBias;
  7481. Material material;
  7482. uint maxLights;
  7483. /* readonly */
  7484. Node node;
  7485. /* readonly */
  7486. uint numAttributes;
  7487. uint numBillboards;
  7488. uint numParticles;
  7489. ObjectAnimation objectAnimation;
  7490. bool occludee;
  7491. bool occluder;
  7492. /* readonly */
  7493. int refs;
  7494. bool relative;
  7495. bool scaled;
  7496. bool serializeParticles;
  7497. float shadowDistance;
  7498. uint shadowMask;
  7499. bool sorted;
  7500. bool temporary;
  7501. /* readonly */
  7502. StringHash type;
  7503. /* readonly */
  7504. String typeName;
  7505. uint viewMask;
  7506. /* readonly */
  7507. int weakRefs;
  7508. /* readonly */
  7509. BoundingBox worldBoundingBox;
  7510. /* readonly */
  7511. Zone zone;
  7512. uint zoneMask;
  7513. };
  7514. class ParticleEmitter2D
  7515. {
  7516. // Methods:
  7517. void ApplyAttributes();
  7518. void DrawDebugGeometry(DebugRenderer, bool);
  7519. Variant GetAttribute(const String&) const;
  7520. ValueAnimation GetAttributeAnimation(const String&) const;
  7521. float GetAttributeAnimationSpeed(const String&) const;
  7522. float GetAttributeAnimationTime(const String&) const;
  7523. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7524. Variant GetAttributeDefault(const String&) const;
  7525. bool GetInterceptNetworkUpdate(const String&) const;
  7526. bool HasSubscribedToEvent(Object, const String&);
  7527. bool HasSubscribedToEvent(const String&);
  7528. bool IsInView(Camera) const;
  7529. bool Load(File, bool = false);
  7530. bool Load(VectorBuffer&, bool = false);
  7531. bool LoadJSON(const JSONValue&, bool = false);
  7532. bool LoadXML(const XMLElement&, bool = false);
  7533. void MarkNetworkUpdate() const;
  7534. void Remove();
  7535. void RemoveAttributeAnimation(const String&);
  7536. void RemoveInstanceDefault();
  7537. void RemoveObjectAnimation();
  7538. void ResetToDefault();
  7539. bool Save(File) const;
  7540. bool Save(VectorBuffer&) const;
  7541. bool SaveJSON(JSONValue&) const;
  7542. bool SaveXML(XMLElement&) const;
  7543. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7544. void SetAnimationTime(float);
  7545. bool SetAttribute(const String&, const Variant&);
  7546. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7547. void SetAttributeAnimationSpeed(const String&, float);
  7548. void SetAttributeAnimationTime(const String&, float);
  7549. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7550. void SetInterceptNetworkUpdate(const String&, bool);
  7551. // Properties:
  7552. bool animationEnabled;
  7553. /* readonly */
  7554. Array<Variant> attributeDefaults;
  7555. /* readonly */
  7556. Array<AttributeInfo> attributeInfos;
  7557. Array<Variant> attributes;
  7558. BlendMode blendMode;
  7559. /* readonly */
  7560. BoundingBox boundingBox;
  7561. bool castShadows;
  7562. /* readonly */
  7563. String category;
  7564. float drawDistance;
  7565. ParticleEffect2D effect;
  7566. bool enabled;
  7567. /* readonly */
  7568. bool enabledEffective;
  7569. /* readonly */
  7570. uint id;
  7571. /* readonly */
  7572. bool inView;
  7573. int layer;
  7574. uint lightMask;
  7575. float lodBias;
  7576. uint maxLights;
  7577. /* readonly */
  7578. Node node;
  7579. /* readonly */
  7580. uint numAttributes;
  7581. ObjectAnimation objectAnimation;
  7582. bool occludee;
  7583. bool occluder;
  7584. int orderInLayer;
  7585. /* readonly */
  7586. int refs;
  7587. float shadowDistance;
  7588. uint shadowMask;
  7589. Sprite2D sprite;
  7590. bool temporary;
  7591. /* readonly */
  7592. StringHash type;
  7593. /* readonly */
  7594. String typeName;
  7595. uint viewMask;
  7596. /* readonly */
  7597. int weakRefs;
  7598. /* readonly */
  7599. BoundingBox worldBoundingBox;
  7600. uint zoneMask;
  7601. };
  7602. class Pass
  7603. {
  7604. // Properties:
  7605. bool alphaMask;
  7606. BlendMode blendMode;
  7607. CompareMode depthTestMode;
  7608. bool depthWrite;
  7609. bool desktop;
  7610. PassLightingMode lightingMode;
  7611. String pixelShader;
  7612. String pixelShaderDefines;
  7613. /* readonly */
  7614. int refs;
  7615. String vertexShader;
  7616. String vertexShaderDefines;
  7617. /* readonly */
  7618. int weakRefs;
  7619. };
  7620. class PhysicsRaycastResult
  7621. {
  7622. // Properties:
  7623. /* readonly */
  7624. RigidBody body;
  7625. float distance;
  7626. float hitFraction;
  7627. Vector3 normal;
  7628. Vector3 position;
  7629. };
  7630. class PhysicsRaycastResult2D
  7631. {
  7632. // Properties:
  7633. /* readonly */
  7634. RigidBody2D body;
  7635. float distance;
  7636. Vector2 normal;
  7637. Vector2 position;
  7638. };
  7639. class PhysicsWorld
  7640. {
  7641. // Methods:
  7642. void ApplyAttributes();
  7643. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7644. void DrawDebugGeometry(DebugRenderer, bool);
  7645. void DrawDebugGeometry(bool);
  7646. Variant GetAttribute(const String&) const;
  7647. ValueAnimation GetAttributeAnimation(const String&) const;
  7648. float GetAttributeAnimationSpeed(const String&) const;
  7649. float GetAttributeAnimationTime(const String&) const;
  7650. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7651. Variant GetAttributeDefault(const String&) const;
  7652. Array<RigidBody> GetCollidingBodies(RigidBody);
  7653. bool GetInterceptNetworkUpdate(const String&) const;
  7654. Array<RigidBody> GetRigidBodies(RigidBody);
  7655. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7656. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7657. bool HasSubscribedToEvent(Object, const String&);
  7658. bool HasSubscribedToEvent(const String&);
  7659. bool Load(File, bool = false);
  7660. bool Load(VectorBuffer&, bool = false);
  7661. bool LoadJSON(const JSONValue&, bool = false);
  7662. bool LoadXML(const XMLElement&, bool = false);
  7663. void MarkNetworkUpdate() const;
  7664. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7665. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7666. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7667. void Remove();
  7668. void RemoveAttributeAnimation(const String&);
  7669. void RemoveCachedGeometry(Model);
  7670. void RemoveInstanceDefault();
  7671. void RemoveObjectAnimation();
  7672. void ResetToDefault();
  7673. bool Save(File) const;
  7674. bool Save(VectorBuffer&) const;
  7675. bool SaveJSON(JSONValue&) const;
  7676. bool SaveXML(XMLElement&) const;
  7677. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7678. void SetAnimationTime(float);
  7679. bool SetAttribute(const String&, const Variant&);
  7680. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7681. void SetAttributeAnimationSpeed(const String&, float);
  7682. void SetAttributeAnimationTime(const String&, float);
  7683. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7684. void SetInterceptNetworkUpdate(const String&, bool);
  7685. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7686. void Update(float);
  7687. void UpdateCollisions();
  7688. // Properties:
  7689. bool animationEnabled;
  7690. /* readonly */
  7691. Array<Variant> attributeDefaults;
  7692. /* readonly */
  7693. Array<AttributeInfo> attributeInfos;
  7694. Array<Variant> attributes;
  7695. /* readonly */
  7696. String category;
  7697. bool enabled;
  7698. /* readonly */
  7699. bool enabledEffective;
  7700. int fps;
  7701. Vector3 gravity;
  7702. /* readonly */
  7703. uint id;
  7704. bool internalEdge;
  7705. bool interpolation;
  7706. int maxSubSteps;
  7707. /* readonly */
  7708. Node node;
  7709. /* readonly */
  7710. uint numAttributes;
  7711. int numIterations;
  7712. ObjectAnimation objectAnimation;
  7713. /* readonly */
  7714. int refs;
  7715. bool splitImpulse;
  7716. bool temporary;
  7717. /* readonly */
  7718. StringHash type;
  7719. /* readonly */
  7720. String typeName;
  7721. bool updateEnabled;
  7722. /* readonly */
  7723. int weakRefs;
  7724. };
  7725. class PhysicsWorld2D
  7726. {
  7727. // Methods:
  7728. void ApplyAttributes();
  7729. void DrawDebugGeometry() const;
  7730. void DrawDebugGeometry(DebugRenderer, bool);
  7731. Variant GetAttribute(const String&) const;
  7732. ValueAnimation GetAttributeAnimation(const String&) const;
  7733. float GetAttributeAnimationSpeed(const String&) const;
  7734. float GetAttributeAnimationTime(const String&) const;
  7735. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7736. Variant GetAttributeDefault(const String&) const;
  7737. bool GetInterceptNetworkUpdate(const String&) const;
  7738. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7739. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7740. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7741. bool HasSubscribedToEvent(Object, const String&);
  7742. bool HasSubscribedToEvent(const String&);
  7743. bool Load(File, bool = false);
  7744. bool Load(VectorBuffer&, bool = false);
  7745. bool LoadJSON(const JSONValue&, bool = false);
  7746. bool LoadXML(const XMLElement&, bool = false);
  7747. void MarkNetworkUpdate() const;
  7748. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7749. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7750. void Remove();
  7751. void RemoveAttributeAnimation(const String&);
  7752. void RemoveInstanceDefault();
  7753. void RemoveObjectAnimation();
  7754. void ResetToDefault();
  7755. bool Save(File) const;
  7756. bool Save(VectorBuffer&) const;
  7757. bool SaveJSON(JSONValue&) const;
  7758. bool SaveXML(XMLElement&) const;
  7759. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7760. void SetAnimationTime(float);
  7761. bool SetAttribute(const String&, const Variant&);
  7762. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7763. void SetAttributeAnimationSpeed(const String&, float);
  7764. void SetAttributeAnimationTime(const String&, float);
  7765. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7766. void SetInterceptNetworkUpdate(const String&, bool);
  7767. // Properties:
  7768. bool allowSleeping;
  7769. bool animationEnabled;
  7770. /* readonly */
  7771. Array<Variant> attributeDefaults;
  7772. /* readonly */
  7773. Array<AttributeInfo> attributeInfos;
  7774. Array<Variant> attributes;
  7775. bool autoClearForces;
  7776. /* readonly */
  7777. String category;
  7778. bool continuousPhysics;
  7779. bool drawAabb;
  7780. bool drawCenterOfMass;
  7781. bool drawJoint;
  7782. bool drawPair;
  7783. bool drawShape;
  7784. bool enabled;
  7785. /* readonly */
  7786. bool enabledEffective;
  7787. Vector2 gravity;
  7788. /* readonly */
  7789. uint id;
  7790. /* readonly */
  7791. Node node;
  7792. /* readonly */
  7793. uint numAttributes;
  7794. ObjectAnimation objectAnimation;
  7795. uint positionIterations;
  7796. /* readonly */
  7797. int refs;
  7798. bool subStepping;
  7799. bool temporary;
  7800. /* readonly */
  7801. StringHash type;
  7802. /* readonly */
  7803. String typeName;
  7804. bool updateEnabled;
  7805. uint velocityIterations;
  7806. bool warmStarting;
  7807. /* readonly */
  7808. int weakRefs;
  7809. };
  7810. class Plane
  7811. {
  7812. // Methods:
  7813. void Define(const Vector3&, const Vector3&);
  7814. void Define(const Vector3&, const Vector3&, const Vector3&);
  7815. void Define(const Vector4&);
  7816. float Distance(const Vector3&) const;
  7817. Vector3 Project(const Vector3&) const;
  7818. Vector3 Reflect(const Vector3&) const;
  7819. Vector4 ToVector4() const;
  7820. void Transform(const Matrix3&);
  7821. void Transform(const Matrix3x4&);
  7822. void Transform(const Matrix4&);
  7823. Plane Transformed(const Matrix3&) const;
  7824. Plane Transformed(const Matrix3x4&) const;
  7825. Plane Transformed(const Matrix4&) const;
  7826. // Properties:
  7827. Vector3 absNormal;
  7828. float d;
  7829. Vector3 normal;
  7830. /* readonly */
  7831. Matrix3x4 reflectionMatrix;
  7832. };
  7833. class Polyhedron
  7834. {
  7835. // Methods:
  7836. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7837. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7838. void AddFace(const Array<Vector3>);
  7839. void Clear();
  7840. void Clip(const BoundingBox&);
  7841. void Clip(const Frustum&);
  7842. void Define(const BoundingBox&);
  7843. void Define(const Frustum&);
  7844. void Transform(const Matrix3&);
  7845. void Transform(const Matrix3x4&);
  7846. Polyhedron Transformed(const Matrix3&) const;
  7847. Polyhedron Transformed(const Matrix3x4&) const;
  7848. // Properties:
  7849. /* readonly */
  7850. Array<Array<Vector3>> face;
  7851. /* readonly */
  7852. uint numFaces;
  7853. };
  7854. class PropertySet2D
  7855. {
  7856. // Methods:
  7857. bool HasProperty(const String&) const;
  7858. const String& GetProperty(const String&) const;
  7859. // Properties:
  7860. /* readonly */
  7861. int refs;
  7862. /* readonly */
  7863. int weakRefs;
  7864. };
  7865. class Quaternion
  7866. {
  7867. // Methods:
  7868. Quaternion Conjugate() const;
  7869. float DotProduct(const Quaternion&) const;
  7870. bool Equals(const Quaternion&) const;
  7871. void FromAngleAxis(float, const Vector3&);
  7872. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7873. void FromEulerAngles(float, float, float);
  7874. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  7875. void FromRotationMatrix(const Matrix3&);
  7876. void FromRotationTo(const Vector3&, const Vector3&);
  7877. Quaternion Inverse() const;
  7878. bool IsNaN() const;
  7879. float LengthSquared() const;
  7880. Quaternion Nlerp(Quaternion, float, bool) const;
  7881. void Normalize();
  7882. Quaternion Normalized() const;
  7883. Quaternion Slerp(Quaternion, float) const;
  7884. String ToString() const;
  7885. // Properties:
  7886. /* readonly */
  7887. Vector3 eulerAngles;
  7888. /* readonly */
  7889. float pitch;
  7890. /* readonly */
  7891. float roll;
  7892. /* readonly */
  7893. Matrix3 rotationMatrix;
  7894. float w;
  7895. float x;
  7896. float y;
  7897. /* readonly */
  7898. float yaw;
  7899. float z;
  7900. };
  7901. class Ray
  7902. {
  7903. // Methods:
  7904. Vector3 ClosestPoint(const Ray&) const;
  7905. void Define(const Vector3&, const Vector3&);
  7906. float Distance(const Vector3&) const;
  7907. float HitDistance(const BoundingBox&) const;
  7908. float HitDistance(const Frustum&, bool = true) const;
  7909. float HitDistance(const Plane&) const;
  7910. float HitDistance(const Sphere&) const;
  7911. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7912. Vector3 Project(const Vector3&) const;
  7913. Ray Transformed(const Matrix3x4&) const;
  7914. // Properties:
  7915. Vector3 direction;
  7916. Vector3 origin;
  7917. };
  7918. class RayQueryResult
  7919. {
  7920. // Properties:
  7921. float distance;
  7922. /* readonly */
  7923. Drawable drawable;
  7924. /* readonly */
  7925. Node node;
  7926. Vector3 normal;
  7927. Vector3 position;
  7928. uint subObject;
  7929. Vector2 textureUV;
  7930. };
  7931. class Rect
  7932. {
  7933. // Methods:
  7934. void Clear();
  7935. void Clip(const Rect&);
  7936. void Define(const Vector2&);
  7937. void Define(const Vector2&, const Vector2&);
  7938. bool Defined() const;
  7939. bool Equals(const Rect&) const;
  7940. Intersection IsInside(const Vector2&) const;
  7941. void Merge(const Rect&);
  7942. void Merge(const Vector2&);
  7943. Vector4 ToVector4() const;
  7944. // Properties:
  7945. float bottom;
  7946. /* readonly */
  7947. Vector2 center;
  7948. /* readonly */
  7949. Vector2 halfSize;
  7950. float left;
  7951. Vector2 max;
  7952. Vector2 min;
  7953. float right;
  7954. /* readonly */
  7955. Vector2 size;
  7956. float top;
  7957. };
  7958. class RefCounted
  7959. {
  7960. // Properties:
  7961. /* readonly */
  7962. int refs;
  7963. /* readonly */
  7964. int weakRefs;
  7965. };
  7966. class RenderPath
  7967. {
  7968. // Methods:
  7969. void AddCommand(const RenderPathCommand&);
  7970. void AddRenderTarget(const RenderTargetInfo&);
  7971. bool Append(XMLFile);
  7972. RenderPath Clone();
  7973. void InsertCommand(uint, const RenderPathCommand&);
  7974. bool Load(XMLFile);
  7975. void RemoveCommand(uint);
  7976. void RemoveCommands(const String&);
  7977. void RemoveRenderTarget(const String&);
  7978. void RemoveRenderTarget(uint);
  7979. void RemoveRenderTargts(const String&);
  7980. void SetEnabled(const String&, bool);
  7981. void ToggleEnabled(const String&);
  7982. // Properties:
  7983. Array<RenderPathCommand> commands;
  7984. /* readonly */
  7985. uint numCommands;
  7986. /* readonly */
  7987. uint numRenderTargets;
  7988. /* readonly */
  7989. int refs;
  7990. Array<RenderTargetInfo> renderTargets;
  7991. Array<Variant> shaderParameters;
  7992. /* readonly */
  7993. int weakRefs;
  7994. };
  7995. class RenderPathCommand
  7996. {
  7997. // Methods:
  7998. void RemoveShaderParameter(const String&);
  7999. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8000. // Properties:
  8001. BlendMode blendMode;
  8002. Color clearColor;
  8003. float clearDepth;
  8004. uint clearFlags;
  8005. uint clearStencil;
  8006. String depthStencilName;
  8007. bool enabled;
  8008. bool markToStencil;
  8009. String metadata;
  8010. uint numOutputs;
  8011. Array<CubeMapFace> outputFaces;
  8012. Array<String> outputNames;
  8013. String pass;
  8014. String pixelShaderDefines;
  8015. String pixelShaderName;
  8016. Array<Variant> shaderParameters;
  8017. RenderCommandSortMode sortMode;
  8018. String tag;
  8019. Array<String> textureNames;
  8020. RenderCommandType type;
  8021. bool useFogColor;
  8022. bool useLitBase;
  8023. bool vertexLights;
  8024. String vertexShaderDefines;
  8025. String vertexShaderName;
  8026. };
  8027. class RenderSurface
  8028. {
  8029. // Methods:
  8030. void QueueUpdate();
  8031. // Properties:
  8032. /* readonly */
  8033. int height;
  8034. RenderSurface linkedDepthStencil;
  8035. RenderSurface linkedRenderTarget;
  8036. uint numViewports;
  8037. /* readonly */
  8038. Texture parentTexture;
  8039. RenderSurfaceUpdateMode updateMode;
  8040. /* readonly */
  8041. TextureUsage usage;
  8042. Array<Viewport> viewports;
  8043. /* readonly */
  8044. int width;
  8045. };
  8046. class RenderTargetInfo
  8047. {
  8048. // Properties:
  8049. bool cubemap;
  8050. bool enabled;
  8051. bool filtered;
  8052. uint format;
  8053. String name;
  8054. bool persistent;
  8055. bool sRGB;
  8056. Vector2 size;
  8057. RenderTargetSizeMode sizeMode;
  8058. String tag;
  8059. };
  8060. class Renderer
  8061. {
  8062. // Methods:
  8063. void DrawDebugGeometry(bool) const;
  8064. bool HasSubscribedToEvent(Object, const String&);
  8065. bool HasSubscribedToEvent(const String&);
  8066. void ReloadShaders() const;
  8067. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8068. void SetDefaultRenderPath(XMLFile);
  8069. void SetVSMShadowParameters(float, float);
  8070. // Properties:
  8071. /* readonly */
  8072. String category;
  8073. /* readonly */
  8074. Material defaultLightRamp;
  8075. /* readonly */
  8076. Material defaultLightSpot;
  8077. /* readonly */
  8078. Material defaultMaterial;
  8079. RenderPath defaultRenderPath;
  8080. Technique defaultTechnique;
  8081. /* readonly */
  8082. Zone defaultZone;
  8083. bool drawShadows;
  8084. bool dynamicInstancing;
  8085. bool hdrRendering;
  8086. int materialQuality;
  8087. int maxOccluderTriangles;
  8088. int maxShadowMaps;
  8089. int maxSortedInstances;
  8090. int minInstances;
  8091. float mobileShadowBiasAdd;
  8092. float mobileShadowBiasMul;
  8093. /* readonly */
  8094. uint numBatches;
  8095. /* readonly */
  8096. Array<uint> numGeometries;
  8097. /* readonly */
  8098. Array<uint> numLights;
  8099. /* readonly */
  8100. Array<uint> numOccluders;
  8101. /* readonly */
  8102. uint numPrimitives;
  8103. /* readonly */
  8104. Array<uint> numShadowMaps;
  8105. uint numViewports;
  8106. /* readonly */
  8107. uint numViews;
  8108. float occluderSizeThreshold;
  8109. int occlusionBufferSize;
  8110. /* readonly */
  8111. int refs;
  8112. bool reuseShadowMaps;
  8113. int shadowMapSize;
  8114. ShadowQuality shadowQuality;
  8115. float shadowSoftness;
  8116. bool specularLighting;
  8117. int textureAnisotropy;
  8118. TextureFilterMode textureFilterMode;
  8119. int textureQuality;
  8120. bool threadedOcclusion;
  8121. /* readonly */
  8122. StringHash type;
  8123. /* readonly */
  8124. String typeName;
  8125. Array<Viewport> viewports;
  8126. Vector2 vsmShadowParameters;
  8127. /* readonly */
  8128. int weakRefs;
  8129. };
  8130. class Resource
  8131. {
  8132. // Methods:
  8133. bool HasSubscribedToEvent(Object, const String&);
  8134. bool HasSubscribedToEvent(const String&);
  8135. bool Load(File);
  8136. bool Load(VectorBuffer&);
  8137. bool Save(File) const;
  8138. bool Save(VectorBuffer&) const;
  8139. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8140. // Properties:
  8141. /* readonly */
  8142. String category;
  8143. /* readonly */
  8144. uint memoryUse;
  8145. String name;
  8146. /* readonly */
  8147. int refs;
  8148. /* readonly */
  8149. StringHash type;
  8150. /* readonly */
  8151. String typeName;
  8152. /* readonly */
  8153. uint useTimer;
  8154. /* readonly */
  8155. int weakRefs;
  8156. };
  8157. class ResourceCache
  8158. {
  8159. // Methods:
  8160. bool AddManualResource(Resource);
  8161. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8162. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8163. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8164. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8165. bool Exists(const String&) const;
  8166. Resource GetExistingResource(StringHash, const String&);
  8167. Resource GetExistingResource(const String&, const String&);
  8168. File GetFile(const String&);
  8169. String GetPreferredResourceDir(const String&) const;
  8170. Resource GetResource(StringHash, const String&, bool = true);
  8171. Resource GetResource(const String&, const String&, bool = true);
  8172. String GetResourceFileName(const String&) const;
  8173. bool HasSubscribedToEvent(Object, const String&);
  8174. bool HasSubscribedToEvent(const String&);
  8175. void ReleaseAllResources(bool = false);
  8176. void ReleaseResource(const String&, const String&, bool = false);
  8177. void ReleaseResources(StringHash, bool = false);
  8178. void ReleaseResources(const String&, bool = false);
  8179. void ReleaseResources(const String&, const String&, bool = false);
  8180. bool ReloadResource(Resource);
  8181. void ReloadResourceWithDependencies(const String&);
  8182. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8183. void RemovePackageFile(const String&, bool = true, bool = false);
  8184. void RemoveResourceDir(const String&);
  8185. String SanitateResourceDirName(const String&) const;
  8186. String SanitateResourceName(const String&) const;
  8187. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8188. // Properties:
  8189. bool autoReloadResources;
  8190. /* readonly */
  8191. String category;
  8192. int finishBackgroundResourcesMs;
  8193. Array<uint64> memoryBudget;
  8194. /* readonly */
  8195. Array<uint64> memoryUse;
  8196. /* readonly */
  8197. uint numBackgroundLoadResources;
  8198. /* readonly */
  8199. Array<PackageFile> packageFiles;
  8200. /* readonly */
  8201. int refs;
  8202. /* readonly */
  8203. Array<String> resourceDirs;
  8204. bool returnFailedResources;
  8205. /* readonly */
  8206. bool seachPackagesFirst;
  8207. /* writeonly */
  8208. bool searchPackagesFirst;
  8209. /* readonly */
  8210. uint64 totalMemoryUse;
  8211. /* readonly */
  8212. StringHash type;
  8213. /* readonly */
  8214. String typeName;
  8215. /* readonly */
  8216. int weakRefs;
  8217. };
  8218. class ResourceRef
  8219. {
  8220. // Properties:
  8221. String name;
  8222. StringHash type;
  8223. };
  8224. class ResourceRefList
  8225. {
  8226. // Methods:
  8227. void Resize(uint);
  8228. // Properties:
  8229. /* readonly */
  8230. bool empty;
  8231. /* readonly */
  8232. uint length;
  8233. Array<String> names;
  8234. StringHash type;
  8235. };
  8236. class RigidBody
  8237. {
  8238. // Methods:
  8239. void Activate();
  8240. void ApplyAttributes();
  8241. void ApplyForce(const Vector3&);
  8242. void ApplyForce(const Vector3&, const Vector3&);
  8243. void ApplyImpulse(const Vector3&);
  8244. void ApplyImpulse(const Vector3&, const Vector3&);
  8245. void ApplyTorque(const Vector3&);
  8246. void ApplyTorqueImpulse(const Vector3&);
  8247. void DisableMassUpdate();
  8248. void DrawDebugGeometry(DebugRenderer, bool);
  8249. void EnableMassUpdate();
  8250. Variant GetAttribute(const String&) const;
  8251. ValueAnimation GetAttributeAnimation(const String&) const;
  8252. float GetAttributeAnimationSpeed(const String&) const;
  8253. float GetAttributeAnimationTime(const String&) const;
  8254. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8255. Variant GetAttributeDefault(const String&) const;
  8256. bool GetInterceptNetworkUpdate(const String&) const;
  8257. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8258. bool HasSubscribedToEvent(Object, const String&);
  8259. bool HasSubscribedToEvent(const String&);
  8260. bool Load(File, bool = false);
  8261. bool Load(VectorBuffer&, bool = false);
  8262. bool LoadJSON(const JSONValue&, bool = false);
  8263. bool LoadXML(const XMLElement&, bool = false);
  8264. void MarkNetworkUpdate() const;
  8265. void ReAddBodyToWorld();
  8266. void Remove();
  8267. void RemoveAttributeAnimation(const String&);
  8268. void RemoveInstanceDefault();
  8269. void RemoveObjectAnimation();
  8270. void ResetForces();
  8271. void ResetToDefault();
  8272. bool Save(File) const;
  8273. bool Save(VectorBuffer&) const;
  8274. bool SaveJSON(JSONValue&) const;
  8275. bool SaveXML(XMLElement&) const;
  8276. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8277. void SetAnimationTime(float);
  8278. bool SetAttribute(const String&, const Variant&);
  8279. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8280. void SetAttributeAnimationSpeed(const String&, float);
  8281. void SetAttributeAnimationTime(const String&, float);
  8282. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8283. void SetCollisionLayerAndMask(uint, uint);
  8284. void SetInterceptNetworkUpdate(const String&, bool);
  8285. void SetTransform(const Vector3&, const Quaternion&);
  8286. // Properties:
  8287. /* readonly */
  8288. bool active;
  8289. float angularDamping;
  8290. Vector3 angularFactor;
  8291. float angularRestThreshold;
  8292. Vector3 angularVelocity;
  8293. bool animationEnabled;
  8294. Vector3 anisotropicFriction;
  8295. /* readonly */
  8296. Array<Variant> attributeDefaults;
  8297. /* readonly */
  8298. Array<AttributeInfo> attributeInfos;
  8299. Array<Variant> attributes;
  8300. /* readonly */
  8301. String category;
  8302. float ccdMotionThreshold;
  8303. float ccdRadius;
  8304. /* readonly */
  8305. Vector3 centerOfMass;
  8306. /* readonly */
  8307. Array<RigidBody> collidingBodies;
  8308. CollisionEventMode collisionEventMode;
  8309. uint collisionLayer;
  8310. uint collisionMask;
  8311. float contactProcessingThreshold;
  8312. bool enabled;
  8313. /* readonly */
  8314. bool enabledEffective;
  8315. float friction;
  8316. Vector3 gravityOverride;
  8317. /* readonly */
  8318. uint id;
  8319. bool kinematic;
  8320. float linearDamping;
  8321. Vector3 linearFactor;
  8322. float linearRestThreshold;
  8323. Vector3 linearVelocity;
  8324. float mass;
  8325. /* readonly */
  8326. Node node;
  8327. /* readonly */
  8328. uint numAttributes;
  8329. ObjectAnimation objectAnimation;
  8330. Vector3 position;
  8331. /* readonly */
  8332. int refs;
  8333. float restitution;
  8334. float rollingFriction;
  8335. Quaternion rotation;
  8336. bool temporary;
  8337. bool trigger;
  8338. /* readonly */
  8339. StringHash type;
  8340. /* readonly */
  8341. String typeName;
  8342. bool useGravity;
  8343. /* readonly */
  8344. int weakRefs;
  8345. };
  8346. class RigidBody2D
  8347. {
  8348. // Methods:
  8349. void ApplyAngularImpulse(float, bool);
  8350. void ApplyAttributes();
  8351. void ApplyForce(const Vector2&, const Vector2&, bool);
  8352. void ApplyForceToCenter(const Vector2&, bool);
  8353. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8354. void ApplyTorque(float, bool);
  8355. void DrawDebugGeometry(DebugRenderer, bool);
  8356. Variant GetAttribute(const String&) const;
  8357. ValueAnimation GetAttributeAnimation(const String&) const;
  8358. float GetAttributeAnimationSpeed(const String&) const;
  8359. float GetAttributeAnimationTime(const String&) const;
  8360. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8361. Variant GetAttributeDefault(const String&) const;
  8362. bool GetInterceptNetworkUpdate(const String&) const;
  8363. bool HasSubscribedToEvent(Object, const String&);
  8364. bool HasSubscribedToEvent(const String&);
  8365. bool Load(File, bool = false);
  8366. bool Load(VectorBuffer&, bool = false);
  8367. bool LoadJSON(const JSONValue&, bool = false);
  8368. bool LoadXML(const XMLElement&, bool = false);
  8369. void MarkNetworkUpdate() const;
  8370. void Remove();
  8371. void RemoveAttributeAnimation(const String&);
  8372. void RemoveInstanceDefault();
  8373. void RemoveObjectAnimation();
  8374. void ResetToDefault();
  8375. bool Save(File) const;
  8376. bool Save(VectorBuffer&) const;
  8377. bool SaveJSON(JSONValue&) const;
  8378. bool SaveXML(XMLElement&) const;
  8379. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8380. void SetAnimationTime(float);
  8381. bool SetAttribute(const String&, const Variant&);
  8382. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8383. void SetAttributeAnimationSpeed(const String&, float);
  8384. void SetAttributeAnimationTime(const String&, float);
  8385. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8386. void SetInterceptNetworkUpdate(const String&, bool);
  8387. // Properties:
  8388. bool allowSleep;
  8389. float angularDamping;
  8390. bool animationEnabled;
  8391. /* readonly */
  8392. Array<Variant> attributeDefaults;
  8393. /* readonly */
  8394. Array<AttributeInfo> attributeInfos;
  8395. Array<Variant> attributes;
  8396. bool awake;
  8397. BodyType2D bodyType;
  8398. bool bullet;
  8399. /* readonly */
  8400. String category;
  8401. bool enabled;
  8402. /* readonly */
  8403. bool enabledEffective;
  8404. bool fixedRotation;
  8405. float gravityScale;
  8406. /* readonly */
  8407. uint id;
  8408. float inertia;
  8409. float linearDamping;
  8410. Vector2 linearVelocity;
  8411. float mass;
  8412. Vector2 massCenter;
  8413. /* readonly */
  8414. Node node;
  8415. /* readonly */
  8416. uint numAttributes;
  8417. ObjectAnimation objectAnimation;
  8418. /* readonly */
  8419. int refs;
  8420. bool temporary;
  8421. /* readonly */
  8422. StringHash type;
  8423. /* readonly */
  8424. String typeName;
  8425. bool useFixtureMass;
  8426. /* readonly */
  8427. int weakRefs;
  8428. };
  8429. class Scene
  8430. {
  8431. // Methods:
  8432. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8433. void AddRequiredPackageFile(PackageFile);
  8434. void AddTag(const String&);
  8435. void AddTags(const String&, int8 = ';');
  8436. void ApplyAttributes();
  8437. void Clear(bool = true, bool = true);
  8438. void ClearRequiredPackageFiles();
  8439. Component CloneComponent(Component, CreateMode, uint = 0);
  8440. Component CloneComponent(Component, uint = 0);
  8441. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8442. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8443. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8444. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8445. Variant GetAttribute(const String&) const;
  8446. ValueAnimation GetAttributeAnimation(const String&) const;
  8447. float GetAttributeAnimationSpeed(const String&) const;
  8448. float GetAttributeAnimationTime(const String&) const;
  8449. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8450. Variant GetAttributeDefault(const String&) const;
  8451. Node GetChild(const String&, bool = false) const;
  8452. Array<Node> GetChildren(bool = false) const;
  8453. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8454. Array<Node> GetChildrenWithScript(bool = false) const;
  8455. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8456. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8457. Component GetComponent(const String&, bool = false) const;
  8458. Component GetComponent(uint) const;
  8459. Array<Component> GetComponents() const;
  8460. Array<Component> GetComponents(const String&, bool = false) const;
  8461. bool GetInterceptNetworkUpdate(const String&) const;
  8462. Node GetNode(uint) const;
  8463. Array<Node> GetNodesWithTag(const String&) const;
  8464. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8465. Component GetParentComponent(const String&, bool = false) const;
  8466. ScriptObject GetScriptObject() const;
  8467. ScriptObject GetScriptObject(const String&) const;
  8468. bool HasComponent(const String&) const;
  8469. bool HasSubscribedToEvent(Object, const String&);
  8470. bool HasSubscribedToEvent(const String&);
  8471. bool HasTag(const String&);
  8472. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8473. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8474. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8475. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8476. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8477. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8478. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8479. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8480. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8481. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8482. bool Load(File, bool = false);
  8483. bool Load(VectorBuffer&, bool = false);
  8484. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8485. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8486. bool LoadJSON(File);
  8487. bool LoadJSON(VectorBuffer&);
  8488. bool LoadJSON(const JSONValue&, bool = false);
  8489. bool LoadXML(File);
  8490. bool LoadXML(VectorBuffer&);
  8491. bool LoadXML(const XMLElement&, bool = false);
  8492. Vector3 LocalToWorld(const Vector3&) const;
  8493. Vector3 LocalToWorld(const Vector4&) const;
  8494. Vector2 LocalToWorld2D(const Vector2&) const;
  8495. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8496. void MarkNetworkUpdate() const;
  8497. void Pitch(float, TransformSpace = TS_LOCAL);
  8498. void RegisterVar(const String&);
  8499. void Remove();
  8500. void RemoveAllChildren();
  8501. void RemoveAllComponents();
  8502. void RemoveAllTags();
  8503. void RemoveAttributeAnimation(const String&);
  8504. void RemoveChild(Node);
  8505. void RemoveChildren(bool, bool, bool);
  8506. void RemoveComponent(Component);
  8507. void RemoveComponent(const String&);
  8508. void RemoveComponents(bool, bool);
  8509. void RemoveComponents(const String&);
  8510. void RemoveInstanceDefault();
  8511. void RemoveObjectAnimation();
  8512. bool RemoveTag(const String&);
  8513. void ResetToDefault();
  8514. void Roll(float, TransformSpace = TS_LOCAL);
  8515. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8516. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8517. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8518. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8519. bool Save(File) const;
  8520. bool Save(VectorBuffer&) const;
  8521. bool SaveJSON(File, const String& = "\t");
  8522. bool SaveJSON(JSONValue&) const;
  8523. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8524. bool SaveXML(File, const String& = "\t");
  8525. bool SaveXML(VectorBuffer&, const String& = "\t");
  8526. bool SaveXML(XMLElement&) const;
  8527. void Scale(const Vector3&);
  8528. void Scale(float);
  8529. void Scale2D(const Vector2&);
  8530. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8531. void SetAnimationTime(float);
  8532. bool SetAttribute(const String&, const Variant&);
  8533. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8534. void SetAttributeAnimationSpeed(const String&, float);
  8535. void SetAttributeAnimationTime(const String&, float);
  8536. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8537. void SetInterceptNetworkUpdate(const String&, bool);
  8538. void SetPosition2D(float, float);
  8539. void SetScale(float);
  8540. void SetScale2D(float, float);
  8541. void SetTransform(const Vector3&, const Quaternion&);
  8542. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8543. void SetTransform(const Vector3&, const Quaternion&, float);
  8544. void SetTransform2D(const Vector2&, float);
  8545. void SetTransform2D(const Vector2&, float, const Vector2&);
  8546. void SetTransform2D(const Vector2&, float, float);
  8547. void SetWorldTransform(const Vector3&, const Quaternion&);
  8548. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8549. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8550. void SetWorldTransform2D(const Vector2&, float);
  8551. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8552. void SetWorldTransform2D(const Vector2&, float, float);
  8553. void StopAsyncLoading();
  8554. const String& GetVarName(StringHash) const;
  8555. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8556. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8557. void UnregisterAllVars(const String&);
  8558. void UnregisterVar(const String&);
  8559. void Update(float);
  8560. Vector3 WorldToLocal(const Vector3&) const;
  8561. Vector3 WorldToLocal(const Vector4&) const;
  8562. Vector2 WorldToLocal2D(const Vector2&) const;
  8563. void Yaw(float, TransformSpace = TS_LOCAL);
  8564. // Properties:
  8565. bool animationEnabled;
  8566. /* readonly */
  8567. LoadMode asyncLoadMode;
  8568. /* readonly */
  8569. bool asyncLoading;
  8570. int asyncLoadingMs;
  8571. /* readonly */
  8572. float asyncProgress;
  8573. /* readonly */
  8574. Array<Variant> attributeDefaults;
  8575. /* readonly */
  8576. Array<AttributeInfo> attributeInfos;
  8577. Array<Variant> attributes;
  8578. /* readonly */
  8579. String category;
  8580. /* readonly */
  8581. uint checksum;
  8582. /* readonly */
  8583. Array<Node> children;
  8584. /* readonly */
  8585. Array<Component> components;
  8586. /* readonly */
  8587. DebugRenderer debugRenderer;
  8588. Vector3 direction;
  8589. float elapsedTime;
  8590. /* readonly */
  8591. String fileName;
  8592. /* readonly */
  8593. uint id;
  8594. String name;
  8595. /* readonly */
  8596. uint numAllChildren;
  8597. /* readonly */
  8598. uint numAttributes;
  8599. /* readonly */
  8600. uint numChildren;
  8601. /* readonly */
  8602. uint numComponents;
  8603. ObjectAnimation objectAnimation;
  8604. /* readonly */
  8605. Octree octree;
  8606. Node parent;
  8607. /* readonly */
  8608. PhysicsWorld physicsWorld;
  8609. /* readonly */
  8610. PhysicsWorld2D physicsWorld2D;
  8611. Vector3 position;
  8612. Vector2 position2D;
  8613. /* readonly */
  8614. int refs;
  8615. /* readonly */
  8616. Array<PackageFile> requiredPackageFiles;
  8617. /* readonly */
  8618. Vector3 right;
  8619. Quaternion rotation;
  8620. float rotation2D;
  8621. Vector3 scale;
  8622. Vector2 scale2D;
  8623. /* readonly */
  8624. ScriptObject scriptObject;
  8625. float smoothingConstant;
  8626. float snapThreshold;
  8627. /* readonly */
  8628. Array<String> tags;
  8629. bool temporary;
  8630. float timeScale;
  8631. /* readonly */
  8632. Matrix3x4 transform;
  8633. /* readonly */
  8634. StringHash type;
  8635. /* readonly */
  8636. String typeName;
  8637. /* readonly */
  8638. Vector3 up;
  8639. bool updateEnabled;
  8640. /* readonly */
  8641. VariantMap vars;
  8642. /* readonly */
  8643. int weakRefs;
  8644. Vector3 worldDirection;
  8645. Vector3 worldPosition;
  8646. Vector2 worldPosition2D;
  8647. /* readonly */
  8648. Vector3 worldRight;
  8649. Quaternion worldRotation;
  8650. float worldRotation2D;
  8651. Vector3 worldScale;
  8652. Vector2 worldScale2D;
  8653. /* readonly */
  8654. Matrix3x4 worldTransform;
  8655. /* readonly */
  8656. Vector3 worldUp;
  8657. };
  8658. class Script
  8659. {
  8660. // Methods:
  8661. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8662. bool Execute(const String&);
  8663. bool HasSubscribedToEvent(Object, const String&);
  8664. bool HasSubscribedToEvent(const String&);
  8665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8666. // Properties:
  8667. /* readonly */
  8668. String category;
  8669. Scene defaultScene;
  8670. ScriptFile defaultScriptFile;
  8671. bool executeConsoleCommands;
  8672. /* readonly */
  8673. int refs;
  8674. /* readonly */
  8675. StringHash type;
  8676. /* readonly */
  8677. String typeName;
  8678. /* readonly */
  8679. int weakRefs;
  8680. };
  8681. class ScriptFile
  8682. {
  8683. // Methods:
  8684. void ClearDelayedExecute(const String& = String ( ));
  8685. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8686. bool Execute(const String&, const Array<Variant> = null);
  8687. bool HasSubscribedToEvent(Object, const String&);
  8688. bool HasSubscribedToEvent(const String&);
  8689. bool Load(File);
  8690. bool Load(VectorBuffer&);
  8691. bool Save(File) const;
  8692. bool Save(VectorBuffer&) const;
  8693. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8694. // Properties:
  8695. /* readonly */
  8696. String category;
  8697. /* readonly */
  8698. bool compiled;
  8699. /* readonly */
  8700. uint memoryUse;
  8701. String name;
  8702. /* readonly */
  8703. int refs;
  8704. /* readonly */
  8705. StringHash type;
  8706. /* readonly */
  8707. String typeName;
  8708. /* readonly */
  8709. uint useTimer;
  8710. /* readonly */
  8711. int weakRefs;
  8712. };
  8713. class ScriptInstance
  8714. {
  8715. // Methods:
  8716. void ApplyAttributes();
  8717. void ClearDelayedExecute(const String& = String ( ));
  8718. bool CreateObject(ScriptFile, const String&);
  8719. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8720. void DrawDebugGeometry(DebugRenderer, bool);
  8721. bool Execute(const String&, const Array<Variant> = null);
  8722. Variant GetAttribute(const String&) const;
  8723. ValueAnimation GetAttributeAnimation(const String&) const;
  8724. float GetAttributeAnimationSpeed(const String&) const;
  8725. float GetAttributeAnimationTime(const String&) const;
  8726. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8727. Variant GetAttributeDefault(const String&) const;
  8728. bool GetInterceptNetworkUpdate(const String&) const;
  8729. bool HasMethod(const String&) const;
  8730. bool HasSubscribedToEvent(Object, const String&);
  8731. bool HasSubscribedToEvent(const String&);
  8732. bool IsA(const String&) const;
  8733. bool Load(File, bool = false);
  8734. bool Load(VectorBuffer&, bool = false);
  8735. bool LoadJSON(const JSONValue&, bool = false);
  8736. bool LoadXML(const XMLElement&, bool = false);
  8737. void MarkNetworkUpdate() const;
  8738. void Remove();
  8739. void RemoveAttributeAnimation(const String&);
  8740. void RemoveInstanceDefault();
  8741. void RemoveObjectAnimation();
  8742. void ResetToDefault();
  8743. bool Save(File) const;
  8744. bool Save(VectorBuffer&) const;
  8745. bool SaveJSON(JSONValue&) const;
  8746. bool SaveXML(XMLElement&) const;
  8747. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8748. void SetAnimationTime(float);
  8749. bool SetAttribute(const String&, const Variant&);
  8750. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8751. void SetAttributeAnimationSpeed(const String&, float);
  8752. void SetAttributeAnimationTime(const String&, float);
  8753. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8754. void SetInterceptNetworkUpdate(const String&, bool);
  8755. // Properties:
  8756. bool animationEnabled;
  8757. /* readonly */
  8758. Array<Variant> attributeDefaults;
  8759. /* readonly */
  8760. Array<AttributeInfo> attributeInfos;
  8761. Array<Variant> attributes;
  8762. /* readonly */
  8763. String category;
  8764. String className;
  8765. bool enabled;
  8766. /* readonly */
  8767. bool enabledEffective;
  8768. /* readonly */
  8769. uint id;
  8770. /* readonly */
  8771. Node node;
  8772. /* readonly */
  8773. uint numAttributes;
  8774. ObjectAnimation objectAnimation;
  8775. /* readonly */
  8776. int refs;
  8777. ScriptFile scriptFile;
  8778. /* readonly */
  8779. ScriptObject scriptObject;
  8780. bool temporary;
  8781. /* readonly */
  8782. StringHash type;
  8783. /* readonly */
  8784. String typeName;
  8785. /* readonly */
  8786. int weakRefs;
  8787. };
  8788. class ScriptObject
  8789. {
  8790. };
  8791. class ScrollBar
  8792. {
  8793. // Methods:
  8794. void AddChild(UIElement);
  8795. void AddTag(const String&);
  8796. void AddTags(const String&, int8 = ';');
  8797. void ApplyAttributes();
  8798. void BringToFront();
  8799. void ChangeValue(float);
  8800. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8801. void DisableLayoutUpdate();
  8802. IntVector2 ElementToScreen(const IntVector2&);
  8803. void EnableLayoutUpdate();
  8804. uint FindChild(UIElement) const;
  8805. Variant GetAttribute(const String&) const;
  8806. ValueAnimation GetAttributeAnimation(const String&) const;
  8807. float GetAttributeAnimationSpeed(const String&) const;
  8808. float GetAttributeAnimationTime(const String&) const;
  8809. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8810. Variant GetAttributeDefault(const String&) const;
  8811. UIElement GetChild(const String&, bool = false) const;
  8812. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8813. Array<UIElement> GetChildren(bool = false) const;
  8814. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8815. UIElement GetElementEventSender() const;
  8816. bool GetInterceptNetworkUpdate(const String&) const;
  8817. uint GetNumChildren(bool) const;
  8818. bool HasSubscribedToEvent(Object, const String&);
  8819. bool HasSubscribedToEvent(const String&);
  8820. bool HasTag(const String&) const;
  8821. void InsertChild(uint, UIElement);
  8822. bool IsInside(IntVector2, bool);
  8823. bool IsInsideCombined(IntVector2, bool);
  8824. bool Load(File, bool = false);
  8825. bool Load(VectorBuffer&, bool = false);
  8826. bool LoadChildXML(XMLFile, XMLFile = null);
  8827. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8828. bool LoadJSON(const JSONValue&, bool = false);
  8829. bool LoadXML(File);
  8830. bool LoadXML(VectorBuffer&);
  8831. bool LoadXML(XMLFile, XMLFile);
  8832. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8833. bool LoadXML(const XMLElement&, bool = false);
  8834. void MarkNetworkUpdate() const;
  8835. void Remove();
  8836. void RemoveAllChildren();
  8837. void RemoveAllTags();
  8838. void RemoveAttributeAnimation(const String&);
  8839. void RemoveChild(UIElement, uint = 0);
  8840. void RemoveChild(uint);
  8841. void RemoveInstanceDefault();
  8842. void RemoveObjectAnimation();
  8843. bool RemoveTag(const String&);
  8844. void ResetDeepEnabled();
  8845. void ResetToDefault();
  8846. bool Save(File) const;
  8847. bool Save(VectorBuffer&) const;
  8848. bool SaveJSON(JSONValue&) const;
  8849. bool SaveXML(File, const String& = "\t");
  8850. bool SaveXML(VectorBuffer&, const String& = "\t");
  8851. bool SaveXML(XMLElement&) const;
  8852. IntVector2 ScreenToElement(const IntVector2&);
  8853. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8854. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8855. void SetAnimationTime(float);
  8856. bool SetAttribute(const String&, const Variant&);
  8857. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8858. void SetAttributeAnimationSpeed(const String&, float);
  8859. void SetAttributeAnimationTime(const String&, float);
  8860. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8861. void SetDeepEnabled(bool);
  8862. void SetEnabledRecursive(bool);
  8863. void SetFixedHeight(int);
  8864. void SetFixedSize(int, int);
  8865. void SetFixedWidth(int);
  8866. void SetInterceptNetworkUpdate(const String&, bool);
  8867. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8868. void SetMaxSize(int, int);
  8869. void SetMinSize(int, int);
  8870. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8871. void SetPosition(int, int);
  8872. void SetSize(int, int);
  8873. bool SetStyle(const String&, XMLFile = null);
  8874. bool SetStyle(const XMLElement&);
  8875. bool SetStyleAuto(XMLFile = null);
  8876. void StepBack();
  8877. void StepForward();
  8878. void UpdateLayout();
  8879. const Variant& GetVar(const StringHash&);
  8880. // Properties:
  8881. bool animationEnabled;
  8882. /* readonly */
  8883. Array<Variant> attributeDefaults;
  8884. /* readonly */
  8885. Array<AttributeInfo> attributeInfos;
  8886. Array<Variant> attributes;
  8887. /* readonly */
  8888. Button backButton;
  8889. bool bringToBack;
  8890. bool bringToFront;
  8891. /* readonly */
  8892. String category;
  8893. /* readonly */
  8894. IntVector2 childOffset;
  8895. /* readonly */
  8896. Array<UIElement> children;
  8897. IntRect clipBorder;
  8898. bool clipChildren;
  8899. /* writeonly */
  8900. Color color;
  8901. /* readonly */
  8902. bool colorGradient;
  8903. Array<Color> colors;
  8904. /* readonly */
  8905. IntRect combinedScreenRect;
  8906. XMLFile defaultStyle;
  8907. /* readonly */
  8908. float derivedOpacity;
  8909. /* readonly */
  8910. uint dragButtonCombo;
  8911. /* readonly */
  8912. int dragButtonCount;
  8913. uint dragDropMode;
  8914. bool editable;
  8915. /* readonly */
  8916. float effectiveScrollStep;
  8917. bool elementEventSender;
  8918. bool enabled;
  8919. /* readonly */
  8920. bool enabledSelf;
  8921. /* readonly */
  8922. bool fixedHeight;
  8923. /* readonly */
  8924. bool fixedSize;
  8925. /* readonly */
  8926. bool fixedWidth;
  8927. bool focus;
  8928. FocusMode focusMode;
  8929. /* readonly */
  8930. Button forwardButton;
  8931. int height;
  8932. HorizontalAlignment horizontalAlignment;
  8933. /* readonly */
  8934. bool hovering;
  8935. int indent;
  8936. int indentSpacing;
  8937. /* readonly */
  8938. int indentWidth;
  8939. bool internal;
  8940. IntRect layoutBorder;
  8941. Vector2 layoutFlexScale;
  8942. LayoutMode layoutMode;
  8943. int layoutSpacing;
  8944. int maxHeight;
  8945. IntVector2 maxSize;
  8946. int maxWidth;
  8947. int minHeight;
  8948. IntVector2 minSize;
  8949. int minWidth;
  8950. String name;
  8951. /* readonly */
  8952. uint numAllChildren;
  8953. /* readonly */
  8954. uint numAttributes;
  8955. /* readonly */
  8956. uint numChildren;
  8957. ObjectAnimation objectAnimation;
  8958. float opacity;
  8959. Orientation orientation;
  8960. UIElement parent;
  8961. IntVector2 position;
  8962. int priority;
  8963. float range;
  8964. /* readonly */
  8965. int refs;
  8966. /* readonly */
  8967. UIElement root;
  8968. /* readonly */
  8969. IntVector2 screenPosition;
  8970. float scrollStep;
  8971. bool selected;
  8972. IntVector2 size;
  8973. /* readonly */
  8974. Slider slider;
  8975. bool sortChildren;
  8976. float stepFactor;
  8977. String style;
  8978. /* readonly */
  8979. Array<String> tags;
  8980. bool temporary;
  8981. TraversalMode traversalMode;
  8982. /* readonly */
  8983. StringHash type;
  8984. /* readonly */
  8985. String typeName;
  8986. bool useDerivedOpacity;
  8987. float value;
  8988. /* readonly */
  8989. VariantMap vars;
  8990. VerticalAlignment verticalAlignment;
  8991. bool visible;
  8992. /* readonly */
  8993. bool visibleEffective;
  8994. /* readonly */
  8995. int weakRefs;
  8996. int width;
  8997. };
  8998. class ScrollView
  8999. {
  9000. // Methods:
  9001. void AddChild(UIElement);
  9002. void AddTag(const String&);
  9003. void AddTags(const String&, int8 = ';');
  9004. void ApplyAttributes();
  9005. void BringToFront();
  9006. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9007. void DisableLayoutUpdate();
  9008. IntVector2 ElementToScreen(const IntVector2&);
  9009. void EnableLayoutUpdate();
  9010. uint FindChild(UIElement) const;
  9011. Variant GetAttribute(const String&) const;
  9012. ValueAnimation GetAttributeAnimation(const String&) const;
  9013. float GetAttributeAnimationSpeed(const String&) const;
  9014. float GetAttributeAnimationTime(const String&) const;
  9015. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9016. Variant GetAttributeDefault(const String&) const;
  9017. UIElement GetChild(const String&, bool = false) const;
  9018. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9019. Array<UIElement> GetChildren(bool = false) const;
  9020. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9021. UIElement GetElementEventSender() const;
  9022. bool GetInterceptNetworkUpdate(const String&) const;
  9023. uint GetNumChildren(bool) const;
  9024. bool HasSubscribedToEvent(Object, const String&);
  9025. bool HasSubscribedToEvent(const String&);
  9026. bool HasTag(const String&) const;
  9027. void InsertChild(uint, UIElement);
  9028. bool IsInside(IntVector2, bool);
  9029. bool IsInsideCombined(IntVector2, bool);
  9030. bool Load(File, bool = false);
  9031. bool Load(VectorBuffer&, bool = false);
  9032. bool LoadChildXML(XMLFile, XMLFile = null);
  9033. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9034. bool LoadJSON(const JSONValue&, bool = false);
  9035. bool LoadXML(File);
  9036. bool LoadXML(VectorBuffer&);
  9037. bool LoadXML(XMLFile, XMLFile);
  9038. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9039. bool LoadXML(const XMLElement&, bool = false);
  9040. void MarkNetworkUpdate() const;
  9041. void Remove();
  9042. void RemoveAllChildren();
  9043. void RemoveAllTags();
  9044. void RemoveAttributeAnimation(const String&);
  9045. void RemoveChild(UIElement, uint = 0);
  9046. void RemoveChild(uint);
  9047. void RemoveInstanceDefault();
  9048. void RemoveObjectAnimation();
  9049. bool RemoveTag(const String&);
  9050. void ResetDeepEnabled();
  9051. void ResetToDefault();
  9052. bool Save(File) const;
  9053. bool Save(VectorBuffer&) const;
  9054. bool SaveJSON(JSONValue&) const;
  9055. bool SaveXML(File, const String& = "\t");
  9056. bool SaveXML(VectorBuffer&, const String& = "\t");
  9057. bool SaveXML(XMLElement&) const;
  9058. IntVector2 ScreenToElement(const IntVector2&);
  9059. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9060. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9061. void SetAnimationTime(float);
  9062. bool SetAttribute(const String&, const Variant&);
  9063. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9064. void SetAttributeAnimationSpeed(const String&, float);
  9065. void SetAttributeAnimationTime(const String&, float);
  9066. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9067. void SetDeepEnabled(bool);
  9068. void SetEnabledRecursive(bool);
  9069. void SetFixedHeight(int);
  9070. void SetFixedSize(int, int);
  9071. void SetFixedWidth(int);
  9072. void SetInterceptNetworkUpdate(const String&, bool);
  9073. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9074. void SetMaxSize(int, int);
  9075. void SetMinSize(int, int);
  9076. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9077. void SetPosition(int, int);
  9078. void SetScrollBarsVisible(bool, bool);
  9079. void SetSize(int, int);
  9080. bool SetStyle(const String&, XMLFile = null);
  9081. bool SetStyle(const XMLElement&);
  9082. bool SetStyleAuto(XMLFile = null);
  9083. void SetViewPosition(int, int);
  9084. void UpdateLayout();
  9085. const Variant& GetVar(const StringHash&);
  9086. // Properties:
  9087. bool animationEnabled;
  9088. /* readonly */
  9089. Array<Variant> attributeDefaults;
  9090. /* readonly */
  9091. Array<AttributeInfo> attributeInfos;
  9092. Array<Variant> attributes;
  9093. bool autoDisableChildren;
  9094. float autoDisableThreshold;
  9095. bool bringToBack;
  9096. bool bringToFront;
  9097. /* readonly */
  9098. String category;
  9099. /* readonly */
  9100. IntVector2 childOffset;
  9101. /* readonly */
  9102. Array<UIElement> children;
  9103. IntRect clipBorder;
  9104. bool clipChildren;
  9105. /* writeonly */
  9106. Color color;
  9107. /* readonly */
  9108. bool colorGradient;
  9109. Array<Color> colors;
  9110. /* readonly */
  9111. IntRect combinedScreenRect;
  9112. UIElement contentElement;
  9113. XMLFile defaultStyle;
  9114. /* readonly */
  9115. float derivedOpacity;
  9116. /* readonly */
  9117. uint dragButtonCombo;
  9118. /* readonly */
  9119. int dragButtonCount;
  9120. uint dragDropMode;
  9121. bool editable;
  9122. bool elementEventSender;
  9123. bool enabled;
  9124. /* readonly */
  9125. bool enabledSelf;
  9126. /* readonly */
  9127. bool fixedHeight;
  9128. /* readonly */
  9129. bool fixedSize;
  9130. /* readonly */
  9131. bool fixedWidth;
  9132. bool focus;
  9133. FocusMode focusMode;
  9134. int height;
  9135. HorizontalAlignment horizontalAlignment;
  9136. /* readonly */
  9137. ScrollBar horizontalScrollBar;
  9138. /* readonly */
  9139. bool hovering;
  9140. int indent;
  9141. int indentSpacing;
  9142. /* readonly */
  9143. int indentWidth;
  9144. bool internal;
  9145. IntRect layoutBorder;
  9146. Vector2 layoutFlexScale;
  9147. LayoutMode layoutMode;
  9148. int layoutSpacing;
  9149. int maxHeight;
  9150. IntVector2 maxSize;
  9151. int maxWidth;
  9152. int minHeight;
  9153. IntVector2 minSize;
  9154. int minWidth;
  9155. String name;
  9156. /* readonly */
  9157. uint numAllChildren;
  9158. /* readonly */
  9159. uint numAttributes;
  9160. /* readonly */
  9161. uint numChildren;
  9162. ObjectAnimation objectAnimation;
  9163. float opacity;
  9164. float pageStep;
  9165. UIElement parent;
  9166. IntVector2 position;
  9167. int priority;
  9168. /* readonly */
  9169. int refs;
  9170. /* readonly */
  9171. UIElement root;
  9172. /* readonly */
  9173. IntVector2 screenPosition;
  9174. bool scrollBarsAutoVisible;
  9175. float scrollDeceleration;
  9176. /* readonly */
  9177. BorderImage scrollPanel;
  9178. float scrollSnapEpsilon;
  9179. float scrollStep;
  9180. bool selected;
  9181. IntVector2 size;
  9182. bool sortChildren;
  9183. String style;
  9184. /* readonly */
  9185. Array<String> tags;
  9186. bool temporary;
  9187. TraversalMode traversalMode;
  9188. /* readonly */
  9189. StringHash type;
  9190. /* readonly */
  9191. String typeName;
  9192. bool useDerivedOpacity;
  9193. /* readonly */
  9194. VariantMap vars;
  9195. VerticalAlignment verticalAlignment;
  9196. /* readonly */
  9197. ScrollBar verticalScrollBar;
  9198. IntVector2 viewPosition;
  9199. bool visible;
  9200. /* readonly */
  9201. bool visibleEffective;
  9202. /* readonly */
  9203. int weakRefs;
  9204. int width;
  9205. };
  9206. class Serializable
  9207. {
  9208. // Methods:
  9209. void ApplyAttributes();
  9210. Variant GetAttribute(const String&) const;
  9211. Variant GetAttributeDefault(const String&) const;
  9212. bool GetInterceptNetworkUpdate(const String&) const;
  9213. bool HasSubscribedToEvent(Object, const String&);
  9214. bool HasSubscribedToEvent(const String&);
  9215. bool Load(File, bool = false);
  9216. bool Load(VectorBuffer&, bool = false);
  9217. bool LoadJSON(const JSONValue&, bool = false);
  9218. bool LoadXML(const XMLElement&, bool = false);
  9219. void MarkNetworkUpdate() const;
  9220. void RemoveInstanceDefault();
  9221. void ResetToDefault();
  9222. bool Save(File) const;
  9223. bool Save(VectorBuffer&) const;
  9224. bool SaveJSON(JSONValue&) const;
  9225. bool SaveXML(XMLElement&) const;
  9226. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9227. bool SetAttribute(const String&, const Variant&);
  9228. void SetInterceptNetworkUpdate(const String&, bool);
  9229. // Properties:
  9230. /* readonly */
  9231. Array<Variant> attributeDefaults;
  9232. /* readonly */
  9233. Array<AttributeInfo> attributeInfos;
  9234. Array<Variant> attributes;
  9235. /* readonly */
  9236. String category;
  9237. /* readonly */
  9238. uint numAttributes;
  9239. /* readonly */
  9240. int refs;
  9241. bool temporary;
  9242. /* readonly */
  9243. StringHash type;
  9244. /* readonly */
  9245. String typeName;
  9246. /* readonly */
  9247. int weakRefs;
  9248. };
  9249. class Serializer
  9250. {
  9251. // Methods:
  9252. uint Write(Array<uint8>);
  9253. bool WriteBool(bool);
  9254. bool WriteBoundingBox(const BoundingBox&);
  9255. bool WriteByte(int8);
  9256. bool WriteColor(const Color&);
  9257. bool WriteDouble(double);
  9258. bool WriteFileID(const String&);
  9259. bool WriteFloat(float);
  9260. bool WriteInt(int);
  9261. bool WriteIntRect(const IntRect&);
  9262. bool WriteIntVector2(const IntVector2&);
  9263. bool WriteLine(const String&);
  9264. bool WriteMatrix3(const Matrix3&);
  9265. bool WriteMatrix3x4(const Matrix3x4&);
  9266. bool WriteMatrix4(const Matrix4&);
  9267. bool WriteNetID(uint);
  9268. bool WritePackedQuaternion(const Quaternion&);
  9269. bool WritePackedVector3(const Vector3&, float);
  9270. bool WriteQuaternion(const Quaternion&);
  9271. bool WriteShort(int16);
  9272. bool WriteString(const String&);
  9273. bool WriteStringHash(const StringHash&);
  9274. bool WriteUByte(uint8);
  9275. bool WriteUInt(uint);
  9276. bool WriteUShort(uint16);
  9277. bool WriteVLE(uint);
  9278. bool WriteVariant(const Variant&);
  9279. bool WriteVariantMap(const VariantMap&);
  9280. bool WriteVector2(const Vector2&);
  9281. bool WriteVector3(const Vector3&);
  9282. bool WriteVector4(const Vector4&);
  9283. bool WriteVectorBuffer(const VectorBuffer&);
  9284. };
  9285. class Skeleton
  9286. {
  9287. // Methods:
  9288. Bone GetBone(const String&) const;
  9289. void Reset();
  9290. // Properties:
  9291. /* readonly */
  9292. Array<Bone> bones;
  9293. /* readonly */
  9294. uint numBones;
  9295. /* readonly */
  9296. Bone rootBone;
  9297. };
  9298. class Skybox
  9299. {
  9300. // Methods:
  9301. void ApplyAttributes();
  9302. void ApplyMaterialList(const String& = String ( ));
  9303. void DrawDebugGeometry(DebugRenderer, bool);
  9304. Variant GetAttribute(const String&) const;
  9305. ValueAnimation GetAttributeAnimation(const String&) const;
  9306. float GetAttributeAnimationSpeed(const String&) const;
  9307. float GetAttributeAnimationTime(const String&) const;
  9308. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9309. Variant GetAttributeDefault(const String&) const;
  9310. bool GetInterceptNetworkUpdate(const String&) const;
  9311. bool HasSubscribedToEvent(Object, const String&);
  9312. bool HasSubscribedToEvent(const String&);
  9313. bool IsInView(Camera) const;
  9314. bool Load(File, bool = false);
  9315. bool Load(VectorBuffer&, bool = false);
  9316. bool LoadJSON(const JSONValue&, bool = false);
  9317. bool LoadXML(const XMLElement&, bool = false);
  9318. void MarkNetworkUpdate() const;
  9319. void Remove();
  9320. void RemoveAttributeAnimation(const String&);
  9321. void RemoveInstanceDefault();
  9322. void RemoveObjectAnimation();
  9323. void ResetToDefault();
  9324. bool Save(File) const;
  9325. bool Save(VectorBuffer&) const;
  9326. bool SaveJSON(JSONValue&) const;
  9327. bool SaveXML(XMLElement&) const;
  9328. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9329. void SetAnimationTime(float);
  9330. bool SetAttribute(const String&, const Variant&);
  9331. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9332. void SetAttributeAnimationSpeed(const String&, float);
  9333. void SetAttributeAnimationTime(const String&, float);
  9334. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9335. void SetInterceptNetworkUpdate(const String&, bool);
  9336. // Properties:
  9337. bool animationEnabled;
  9338. /* readonly */
  9339. Array<Variant> attributeDefaults;
  9340. /* readonly */
  9341. Array<AttributeInfo> attributeInfos;
  9342. Array<Variant> attributes;
  9343. /* readonly */
  9344. BoundingBox boundingBox;
  9345. bool castShadows;
  9346. /* readonly */
  9347. String category;
  9348. float drawDistance;
  9349. bool enabled;
  9350. /* readonly */
  9351. bool enabledEffective;
  9352. /* readonly */
  9353. uint id;
  9354. /* readonly */
  9355. bool inView;
  9356. uint lightMask;
  9357. float lodBias;
  9358. /* writeonly */
  9359. Material material;
  9360. Array<Material> materials;
  9361. uint maxLights;
  9362. Model model;
  9363. /* readonly */
  9364. Node node;
  9365. /* readonly */
  9366. uint numAttributes;
  9367. /* readonly */
  9368. uint numGeometries;
  9369. ObjectAnimation objectAnimation;
  9370. bool occludee;
  9371. bool occluder;
  9372. /* readonly */
  9373. int refs;
  9374. float shadowDistance;
  9375. uint shadowMask;
  9376. bool temporary;
  9377. /* readonly */
  9378. StringHash type;
  9379. /* readonly */
  9380. String typeName;
  9381. uint viewMask;
  9382. /* readonly */
  9383. int weakRefs;
  9384. /* readonly */
  9385. BoundingBox worldBoundingBox;
  9386. /* readonly */
  9387. Zone zone;
  9388. uint zoneMask;
  9389. };
  9390. class Slider
  9391. {
  9392. // Methods:
  9393. void AddChild(UIElement);
  9394. void AddTag(const String&);
  9395. void AddTags(const String&, int8 = ';');
  9396. void ApplyAttributes();
  9397. void BringToFront();
  9398. void ChangeValue(float);
  9399. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9400. void DisableLayoutUpdate();
  9401. IntVector2 ElementToScreen(const IntVector2&);
  9402. void EnableLayoutUpdate();
  9403. uint FindChild(UIElement) const;
  9404. Variant GetAttribute(const String&) const;
  9405. ValueAnimation GetAttributeAnimation(const String&) const;
  9406. float GetAttributeAnimationSpeed(const String&) const;
  9407. float GetAttributeAnimationTime(const String&) const;
  9408. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9409. Variant GetAttributeDefault(const String&) const;
  9410. UIElement GetChild(const String&, bool = false) const;
  9411. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9412. Array<UIElement> GetChildren(bool = false) const;
  9413. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9414. UIElement GetElementEventSender() const;
  9415. bool GetInterceptNetworkUpdate(const String&) const;
  9416. uint GetNumChildren(bool) const;
  9417. bool HasSubscribedToEvent(Object, const String&);
  9418. bool HasSubscribedToEvent(const String&);
  9419. bool HasTag(const String&) const;
  9420. void InsertChild(uint, UIElement);
  9421. bool IsInside(IntVector2, bool);
  9422. bool IsInsideCombined(IntVector2, bool);
  9423. bool Load(File, bool = false);
  9424. bool Load(VectorBuffer&, bool = false);
  9425. bool LoadChildXML(XMLFile, XMLFile = null);
  9426. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9427. bool LoadJSON(const JSONValue&, bool = false);
  9428. bool LoadXML(File);
  9429. bool LoadXML(VectorBuffer&);
  9430. bool LoadXML(XMLFile, XMLFile);
  9431. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9432. bool LoadXML(const XMLElement&, bool = false);
  9433. void MarkNetworkUpdate() const;
  9434. void Remove();
  9435. void RemoveAllChildren();
  9436. void RemoveAllTags();
  9437. void RemoveAttributeAnimation(const String&);
  9438. void RemoveChild(UIElement, uint = 0);
  9439. void RemoveChild(uint);
  9440. void RemoveInstanceDefault();
  9441. void RemoveObjectAnimation();
  9442. bool RemoveTag(const String&);
  9443. void ResetDeepEnabled();
  9444. void ResetToDefault();
  9445. bool Save(File) const;
  9446. bool Save(VectorBuffer&) const;
  9447. bool SaveJSON(JSONValue&) const;
  9448. bool SaveXML(File, const String& = "\t");
  9449. bool SaveXML(VectorBuffer&, const String& = "\t");
  9450. bool SaveXML(XMLElement&) const;
  9451. IntVector2 ScreenToElement(const IntVector2&);
  9452. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9453. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9454. void SetAnimationTime(float);
  9455. bool SetAttribute(const String&, const Variant&);
  9456. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9457. void SetAttributeAnimationSpeed(const String&, float);
  9458. void SetAttributeAnimationTime(const String&, float);
  9459. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9460. void SetDeepEnabled(bool);
  9461. void SetEnabledRecursive(bool);
  9462. void SetFixedHeight(int);
  9463. void SetFixedSize(int, int);
  9464. void SetFixedWidth(int);
  9465. void SetFullImageRect();
  9466. void SetHoverOffset(int, int);
  9467. void SetInterceptNetworkUpdate(const String&, bool);
  9468. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9469. void SetMaxSize(int, int);
  9470. void SetMinSize(int, int);
  9471. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9472. void SetPosition(int, int);
  9473. void SetSize(int, int);
  9474. bool SetStyle(const String&, XMLFile = null);
  9475. bool SetStyle(const XMLElement&);
  9476. bool SetStyleAuto(XMLFile = null);
  9477. void UpdateLayout();
  9478. const Variant& GetVar(const StringHash&);
  9479. // Properties:
  9480. bool animationEnabled;
  9481. /* readonly */
  9482. Array<Variant> attributeDefaults;
  9483. /* readonly */
  9484. Array<AttributeInfo> attributeInfos;
  9485. Array<Variant> attributes;
  9486. BlendMode blendMode;
  9487. IntRect border;
  9488. bool bringToBack;
  9489. bool bringToFront;
  9490. /* readonly */
  9491. String category;
  9492. /* readonly */
  9493. IntVector2 childOffset;
  9494. /* readonly */
  9495. Array<UIElement> children;
  9496. IntRect clipBorder;
  9497. bool clipChildren;
  9498. /* writeonly */
  9499. Color color;
  9500. /* readonly */
  9501. bool colorGradient;
  9502. Array<Color> colors;
  9503. /* readonly */
  9504. IntRect combinedScreenRect;
  9505. XMLFile defaultStyle;
  9506. /* readonly */
  9507. float derivedOpacity;
  9508. /* readonly */
  9509. uint dragButtonCombo;
  9510. /* readonly */
  9511. int dragButtonCount;
  9512. uint dragDropMode;
  9513. bool editable;
  9514. bool elementEventSender;
  9515. bool enabled;
  9516. /* readonly */
  9517. bool enabledSelf;
  9518. /* readonly */
  9519. bool fixedHeight;
  9520. /* readonly */
  9521. bool fixedSize;
  9522. /* readonly */
  9523. bool fixedWidth;
  9524. bool focus;
  9525. FocusMode focusMode;
  9526. int height;
  9527. HorizontalAlignment horizontalAlignment;
  9528. IntVector2 hoverOffset;
  9529. /* readonly */
  9530. bool hovering;
  9531. IntRect imageBorder;
  9532. IntRect imageRect;
  9533. int indent;
  9534. int indentSpacing;
  9535. /* readonly */
  9536. int indentWidth;
  9537. bool internal;
  9538. /* readonly */
  9539. BorderImage knob;
  9540. IntRect layoutBorder;
  9541. Vector2 layoutFlexScale;
  9542. LayoutMode layoutMode;
  9543. int layoutSpacing;
  9544. int maxHeight;
  9545. IntVector2 maxSize;
  9546. int maxWidth;
  9547. int minHeight;
  9548. IntVector2 minSize;
  9549. int minWidth;
  9550. String name;
  9551. /* readonly */
  9552. uint numAllChildren;
  9553. /* readonly */
  9554. uint numAttributes;
  9555. /* readonly */
  9556. uint numChildren;
  9557. ObjectAnimation objectAnimation;
  9558. float opacity;
  9559. Orientation orientation;
  9560. UIElement parent;
  9561. IntVector2 position;
  9562. int priority;
  9563. float range;
  9564. /* readonly */
  9565. int refs;
  9566. float repeatRate;
  9567. /* readonly */
  9568. UIElement root;
  9569. /* readonly */
  9570. IntVector2 screenPosition;
  9571. bool selected;
  9572. IntVector2 size;
  9573. bool sortChildren;
  9574. String style;
  9575. /* readonly */
  9576. Array<String> tags;
  9577. bool temporary;
  9578. Texture texture;
  9579. bool tiled;
  9580. TraversalMode traversalMode;
  9581. /* readonly */
  9582. StringHash type;
  9583. /* readonly */
  9584. String typeName;
  9585. bool useDerivedOpacity;
  9586. float value;
  9587. /* readonly */
  9588. VariantMap vars;
  9589. VerticalAlignment verticalAlignment;
  9590. bool visible;
  9591. /* readonly */
  9592. bool visibleEffective;
  9593. /* readonly */
  9594. int weakRefs;
  9595. int width;
  9596. };
  9597. class SmoothedTransform
  9598. {
  9599. // Methods:
  9600. void ApplyAttributes();
  9601. void DrawDebugGeometry(DebugRenderer, bool);
  9602. Variant GetAttribute(const String&) const;
  9603. ValueAnimation GetAttributeAnimation(const String&) const;
  9604. float GetAttributeAnimationSpeed(const String&) const;
  9605. float GetAttributeAnimationTime(const String&) const;
  9606. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9607. Variant GetAttributeDefault(const String&) const;
  9608. bool GetInterceptNetworkUpdate(const String&) const;
  9609. bool HasSubscribedToEvent(Object, const String&);
  9610. bool HasSubscribedToEvent(const String&);
  9611. bool Load(File, bool = false);
  9612. bool Load(VectorBuffer&, bool = false);
  9613. bool LoadJSON(const JSONValue&, bool = false);
  9614. bool LoadXML(const XMLElement&, bool = false);
  9615. void MarkNetworkUpdate() const;
  9616. void Remove();
  9617. void RemoveAttributeAnimation(const String&);
  9618. void RemoveInstanceDefault();
  9619. void RemoveObjectAnimation();
  9620. void ResetToDefault();
  9621. bool Save(File) const;
  9622. bool Save(VectorBuffer&) const;
  9623. bool SaveJSON(JSONValue&) const;
  9624. bool SaveXML(XMLElement&) const;
  9625. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9626. void SetAnimationTime(float);
  9627. bool SetAttribute(const String&, const Variant&);
  9628. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9629. void SetAttributeAnimationSpeed(const String&, float);
  9630. void SetAttributeAnimationTime(const String&, float);
  9631. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9632. void SetInterceptNetworkUpdate(const String&, bool);
  9633. void Update(float, float);
  9634. // Properties:
  9635. bool animationEnabled;
  9636. /* readonly */
  9637. Array<Variant> attributeDefaults;
  9638. /* readonly */
  9639. Array<AttributeInfo> attributeInfos;
  9640. Array<Variant> attributes;
  9641. /* readonly */
  9642. String category;
  9643. bool enabled;
  9644. /* readonly */
  9645. bool enabledEffective;
  9646. /* readonly */
  9647. uint id;
  9648. /* readonly */
  9649. bool inProgress;
  9650. /* readonly */
  9651. Node node;
  9652. /* readonly */
  9653. uint numAttributes;
  9654. ObjectAnimation objectAnimation;
  9655. /* readonly */
  9656. int refs;
  9657. Vector3 targetPosition;
  9658. Quaternion targetRotation;
  9659. Vector3 targetWorldPosition;
  9660. Quaternion targetWorldRotation;
  9661. bool temporary;
  9662. /* readonly */
  9663. StringHash type;
  9664. /* readonly */
  9665. String typeName;
  9666. /* readonly */
  9667. int weakRefs;
  9668. };
  9669. class Sound
  9670. {
  9671. // Methods:
  9672. bool HasSubscribedToEvent(Object, const String&);
  9673. bool HasSubscribedToEvent(const String&);
  9674. bool Load(File);
  9675. bool Load(VectorBuffer&);
  9676. bool Save(File) const;
  9677. bool Save(VectorBuffer&) const;
  9678. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9679. // Properties:
  9680. /* readonly */
  9681. String category;
  9682. /* readonly */
  9683. bool compressed;
  9684. /* readonly */
  9685. float frequency;
  9686. /* readonly */
  9687. float length;
  9688. bool looped;
  9689. /* readonly */
  9690. uint memoryUse;
  9691. String name;
  9692. /* readonly */
  9693. int refs;
  9694. /* readonly */
  9695. uint sampleSize;
  9696. /* readonly */
  9697. bool sixteenBit;
  9698. /* readonly */
  9699. bool stereo;
  9700. /* readonly */
  9701. StringHash type;
  9702. /* readonly */
  9703. String typeName;
  9704. /* readonly */
  9705. uint useTimer;
  9706. /* readonly */
  9707. int weakRefs;
  9708. };
  9709. class SoundListener
  9710. {
  9711. // Methods:
  9712. void ApplyAttributes();
  9713. void DrawDebugGeometry(DebugRenderer, bool);
  9714. Variant GetAttribute(const String&) const;
  9715. ValueAnimation GetAttributeAnimation(const String&) const;
  9716. float GetAttributeAnimationSpeed(const String&) const;
  9717. float GetAttributeAnimationTime(const String&) const;
  9718. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9719. Variant GetAttributeDefault(const String&) const;
  9720. bool GetInterceptNetworkUpdate(const String&) const;
  9721. bool HasSubscribedToEvent(Object, const String&);
  9722. bool HasSubscribedToEvent(const String&);
  9723. bool Load(File, bool = false);
  9724. bool Load(VectorBuffer&, bool = false);
  9725. bool LoadJSON(const JSONValue&, bool = false);
  9726. bool LoadXML(const XMLElement&, bool = false);
  9727. void MarkNetworkUpdate() const;
  9728. void Remove();
  9729. void RemoveAttributeAnimation(const String&);
  9730. void RemoveInstanceDefault();
  9731. void RemoveObjectAnimation();
  9732. void ResetToDefault();
  9733. bool Save(File) const;
  9734. bool Save(VectorBuffer&) const;
  9735. bool SaveJSON(JSONValue&) const;
  9736. bool SaveXML(XMLElement&) const;
  9737. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9738. void SetAnimationTime(float);
  9739. bool SetAttribute(const String&, const Variant&);
  9740. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9741. void SetAttributeAnimationSpeed(const String&, float);
  9742. void SetAttributeAnimationTime(const String&, float);
  9743. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9744. void SetInterceptNetworkUpdate(const String&, bool);
  9745. // Properties:
  9746. bool animationEnabled;
  9747. /* readonly */
  9748. Array<Variant> attributeDefaults;
  9749. /* readonly */
  9750. Array<AttributeInfo> attributeInfos;
  9751. Array<Variant> attributes;
  9752. /* readonly */
  9753. String category;
  9754. bool enabled;
  9755. /* readonly */
  9756. bool enabledEffective;
  9757. /* readonly */
  9758. uint id;
  9759. /* readonly */
  9760. Node node;
  9761. /* readonly */
  9762. uint numAttributes;
  9763. ObjectAnimation objectAnimation;
  9764. /* readonly */
  9765. int refs;
  9766. bool temporary;
  9767. /* readonly */
  9768. StringHash type;
  9769. /* readonly */
  9770. String typeName;
  9771. /* readonly */
  9772. int weakRefs;
  9773. };
  9774. class SoundSource
  9775. {
  9776. // Methods:
  9777. void ApplyAttributes();
  9778. void DrawDebugGeometry(DebugRenderer, bool);
  9779. Variant GetAttribute(const String&) const;
  9780. ValueAnimation GetAttributeAnimation(const String&) const;
  9781. float GetAttributeAnimationSpeed(const String&) const;
  9782. float GetAttributeAnimationTime(const String&) const;
  9783. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9784. Variant GetAttributeDefault(const String&) const;
  9785. bool GetInterceptNetworkUpdate(const String&) const;
  9786. bool HasSubscribedToEvent(Object, const String&);
  9787. bool HasSubscribedToEvent(const String&);
  9788. bool Load(File, bool = false);
  9789. bool Load(VectorBuffer&, bool = false);
  9790. bool LoadJSON(const JSONValue&, bool = false);
  9791. bool LoadXML(const XMLElement&, bool = false);
  9792. void MarkNetworkUpdate() const;
  9793. void Play(Sound);
  9794. void Play(Sound, float);
  9795. void Play(Sound, float, float);
  9796. void Play(Sound, float, float, float);
  9797. void Remove();
  9798. void RemoveAttributeAnimation(const String&);
  9799. void RemoveInstanceDefault();
  9800. void RemoveObjectAnimation();
  9801. void ResetToDefault();
  9802. bool Save(File) const;
  9803. bool Save(VectorBuffer&) const;
  9804. bool SaveJSON(JSONValue&) const;
  9805. bool SaveXML(XMLElement&) const;
  9806. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9807. void SetAnimationTime(float);
  9808. bool SetAttribute(const String&, const Variant&);
  9809. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9810. void SetAttributeAnimationSpeed(const String&, float);
  9811. void SetAttributeAnimationTime(const String&, float);
  9812. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9813. void SetInterceptNetworkUpdate(const String&, bool);
  9814. void Stop();
  9815. // Properties:
  9816. bool animationEnabled;
  9817. /* readonly */
  9818. float attenuation;
  9819. /* readonly */
  9820. Array<Variant> attributeDefaults;
  9821. /* readonly */
  9822. Array<AttributeInfo> attributeInfos;
  9823. Array<Variant> attributes;
  9824. bool autoRemove;
  9825. /* readonly */
  9826. String category;
  9827. bool enabled;
  9828. /* readonly */
  9829. bool enabledEffective;
  9830. float frequency;
  9831. float gain;
  9832. /* readonly */
  9833. uint id;
  9834. /* readonly */
  9835. Node node;
  9836. /* readonly */
  9837. uint numAttributes;
  9838. ObjectAnimation objectAnimation;
  9839. float panning;
  9840. /* readonly */
  9841. bool playing;
  9842. /* readonly */
  9843. int refs;
  9844. /* readonly */
  9845. Sound sound;
  9846. String soundType;
  9847. bool temporary;
  9848. /* readonly */
  9849. float timePosition;
  9850. /* readonly */
  9851. StringHash type;
  9852. /* readonly */
  9853. String typeName;
  9854. /* readonly */
  9855. int weakRefs;
  9856. };
  9857. class SoundSource3D
  9858. {
  9859. // Methods:
  9860. void ApplyAttributes();
  9861. void DrawDebugGeometry(DebugRenderer, bool);
  9862. Variant GetAttribute(const String&) const;
  9863. ValueAnimation GetAttributeAnimation(const String&) const;
  9864. float GetAttributeAnimationSpeed(const String&) const;
  9865. float GetAttributeAnimationTime(const String&) const;
  9866. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9867. Variant GetAttributeDefault(const String&) const;
  9868. bool GetInterceptNetworkUpdate(const String&) const;
  9869. bool HasSubscribedToEvent(Object, const String&);
  9870. bool HasSubscribedToEvent(const String&);
  9871. bool Load(File, bool = false);
  9872. bool Load(VectorBuffer&, bool = false);
  9873. bool LoadJSON(const JSONValue&, bool = false);
  9874. bool LoadXML(const XMLElement&, bool = false);
  9875. void MarkNetworkUpdate() const;
  9876. void Play(Sound);
  9877. void Play(Sound, float);
  9878. void Play(Sound, float, float);
  9879. void Play(Sound, float, float, float);
  9880. void Remove();
  9881. void RemoveAttributeAnimation(const String&);
  9882. void RemoveInstanceDefault();
  9883. void RemoveObjectAnimation();
  9884. void ResetToDefault();
  9885. bool Save(File) const;
  9886. bool Save(VectorBuffer&) const;
  9887. bool SaveJSON(JSONValue&) const;
  9888. bool SaveXML(XMLElement&) const;
  9889. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9890. void SetAngleAttenuation(float, float);
  9891. void SetAnimationTime(float);
  9892. bool SetAttribute(const String&, const Variant&);
  9893. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9894. void SetAttributeAnimationSpeed(const String&, float);
  9895. void SetAttributeAnimationTime(const String&, float);
  9896. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9897. void SetDistanceAttenuation(float, float, float);
  9898. void SetInterceptNetworkUpdate(const String&, bool);
  9899. void Stop();
  9900. // Properties:
  9901. bool animationEnabled;
  9902. /* readonly */
  9903. float attenuation;
  9904. /* readonly */
  9905. Array<Variant> attributeDefaults;
  9906. /* readonly */
  9907. Array<AttributeInfo> attributeInfos;
  9908. Array<Variant> attributes;
  9909. bool autoRemove;
  9910. /* readonly */
  9911. String category;
  9912. bool enabled;
  9913. /* readonly */
  9914. bool enabledEffective;
  9915. float farDistance;
  9916. float frequency;
  9917. float gain;
  9918. /* readonly */
  9919. uint id;
  9920. float innerAngle;
  9921. float nearDistance;
  9922. /* readonly */
  9923. Node node;
  9924. /* readonly */
  9925. uint numAttributes;
  9926. ObjectAnimation objectAnimation;
  9927. float outerAngle;
  9928. float panning;
  9929. /* readonly */
  9930. bool playing;
  9931. /* readonly */
  9932. int refs;
  9933. float rolloffFactor;
  9934. /* readonly */
  9935. Sound sound;
  9936. String soundType;
  9937. bool temporary;
  9938. /* readonly */
  9939. float timePosition;
  9940. /* readonly */
  9941. StringHash type;
  9942. /* readonly */
  9943. String typeName;
  9944. /* readonly */
  9945. int weakRefs;
  9946. };
  9947. class Sphere
  9948. {
  9949. // Methods:
  9950. void Clear();
  9951. void Define(const BoundingBox&);
  9952. void Define(const Frustum&);
  9953. void Define(const Polyhedron&);
  9954. void Define(const Sphere&);
  9955. void Define(const Vector3&, float);
  9956. bool Defined() const;
  9957. float Distance(const Vector3&) const;
  9958. Intersection IsInside(const BoundingBox&) const;
  9959. Intersection IsInside(const Sphere&) const;
  9960. Intersection IsInside(const Vector3&) const;
  9961. Intersection IsInsideFast(const BoundingBox&) const;
  9962. Intersection IsInsideFast(const Sphere&) const;
  9963. void Merge(const BoundingBox&);
  9964. void Merge(const Frustum&);
  9965. void Merge(const Sphere&);
  9966. void Merge(const Vector3&);
  9967. // Properties:
  9968. Vector3 center;
  9969. float radius;
  9970. };
  9971. class Spline
  9972. {
  9973. // Methods:
  9974. void AddKnot(const Variant&);
  9975. void AddKnot(const Variant&, uint);
  9976. void Clear();
  9977. Variant GetPoint(float);
  9978. void RemoveKnot();
  9979. void RemoveKnot(uint);
  9980. // Properties:
  9981. InterpolationMode interpolationMode;
  9982. Array<Variant> knot;
  9983. Array<Variant> knots;
  9984. };
  9985. class SplinePath
  9986. {
  9987. // Methods:
  9988. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9989. void ApplyAttributes();
  9990. void ClearControlPoints();
  9991. void DrawDebugGeometry(DebugRenderer, bool);
  9992. Variant GetAttribute(const String&) const;
  9993. ValueAnimation GetAttributeAnimation(const String&) const;
  9994. float GetAttributeAnimationSpeed(const String&) const;
  9995. float GetAttributeAnimationTime(const String&) const;
  9996. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9997. Variant GetAttributeDefault(const String&) const;
  9998. bool GetInterceptNetworkUpdate(const String&) const;
  9999. Vector3 GetPoint(float) const;
  10000. Vector3 GetPosition() const;
  10001. bool HasSubscribedToEvent(Object, const String&);
  10002. bool HasSubscribedToEvent(const String&);
  10003. bool Load(File, bool = false);
  10004. bool Load(VectorBuffer&, bool = false);
  10005. bool LoadJSON(const JSONValue&, bool = false);
  10006. bool LoadXML(const XMLElement&, bool = false);
  10007. void MarkNetworkUpdate() const;
  10008. void Move(float);
  10009. void Remove();
  10010. void RemoveAttributeAnimation(const String&);
  10011. void RemoveControlPoint(Node);
  10012. void RemoveInstanceDefault();
  10013. void RemoveObjectAnimation();
  10014. void Reset();
  10015. void ResetToDefault();
  10016. bool Save(File) const;
  10017. bool Save(VectorBuffer&) const;
  10018. bool SaveJSON(JSONValue&) const;
  10019. bool SaveXML(XMLElement&) const;
  10020. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10021. void SetAnimationTime(float);
  10022. bool SetAttribute(const String&, const Variant&);
  10023. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10024. void SetAttributeAnimationSpeed(const String&, float);
  10025. void SetAttributeAnimationTime(const String&, float);
  10026. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10027. void SetInterceptNetworkUpdate(const String&, bool);
  10028. void SetPosition(float);
  10029. // Properties:
  10030. bool animationEnabled;
  10031. /* readonly */
  10032. Array<Variant> attributeDefaults;
  10033. /* readonly */
  10034. Array<AttributeInfo> attributeInfos;
  10035. Array<Variant> attributes;
  10036. /* readonly */
  10037. String category;
  10038. Node controlledNode;
  10039. bool enabled;
  10040. /* readonly */
  10041. bool enabledEffective;
  10042. /* readonly */
  10043. uint id;
  10044. InterpolationMode interpolationMode;
  10045. /* readonly */
  10046. bool isFinished;
  10047. /* readonly */
  10048. float length;
  10049. /* readonly */
  10050. Node node;
  10051. /* readonly */
  10052. uint numAttributes;
  10053. ObjectAnimation objectAnimation;
  10054. /* readonly */
  10055. int refs;
  10056. float speed;
  10057. bool temporary;
  10058. /* readonly */
  10059. StringHash type;
  10060. /* readonly */
  10061. String typeName;
  10062. /* readonly */
  10063. int weakRefs;
  10064. };
  10065. class Sprite
  10066. {
  10067. // Methods:
  10068. void AddChild(UIElement);
  10069. void AddTag(const String&);
  10070. void AddTags(const String&, int8 = ';');
  10071. void ApplyAttributes();
  10072. void BringToFront();
  10073. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10074. uint FindChild(UIElement) const;
  10075. Variant GetAttribute(const String&) const;
  10076. ValueAnimation GetAttributeAnimation(const String&) const;
  10077. float GetAttributeAnimationSpeed(const String&) const;
  10078. float GetAttributeAnimationTime(const String&) const;
  10079. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10080. Variant GetAttributeDefault(const String&) const;
  10081. UIElement GetChild(const String&, bool = false) const;
  10082. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10083. Array<UIElement> GetChildren(bool = false) const;
  10084. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10085. UIElement GetElementEventSender() const;
  10086. bool GetInterceptNetworkUpdate(const String&) const;
  10087. uint GetNumChildren(bool) const;
  10088. bool HasSubscribedToEvent(Object, const String&);
  10089. bool HasSubscribedToEvent(const String&);
  10090. bool HasTag(const String&) const;
  10091. void InsertChild(uint, UIElement);
  10092. bool Load(File, bool = false);
  10093. bool Load(VectorBuffer&, bool = false);
  10094. bool LoadChildXML(XMLFile, XMLFile = null);
  10095. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10096. bool LoadJSON(const JSONValue&, bool = false);
  10097. bool LoadXML(File);
  10098. bool LoadXML(VectorBuffer&);
  10099. bool LoadXML(XMLFile, XMLFile);
  10100. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10101. bool LoadXML(const XMLElement&, bool = false);
  10102. void MarkNetworkUpdate() const;
  10103. void Remove();
  10104. void RemoveAllChildren();
  10105. void RemoveAllTags();
  10106. void RemoveAttributeAnimation(const String&);
  10107. void RemoveChild(UIElement, uint = 0);
  10108. void RemoveChild(uint);
  10109. void RemoveInstanceDefault();
  10110. void RemoveObjectAnimation();
  10111. bool RemoveTag(const String&);
  10112. void ResetToDefault();
  10113. bool Save(File) const;
  10114. bool Save(VectorBuffer&) const;
  10115. bool SaveJSON(JSONValue&) const;
  10116. bool SaveXML(File, const String& = "\t");
  10117. bool SaveXML(VectorBuffer&, const String& = "\t");
  10118. bool SaveXML(XMLElement&) const;
  10119. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10120. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10121. void SetAnimationTime(float);
  10122. bool SetAttribute(const String&, const Variant&);
  10123. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10124. void SetAttributeAnimationSpeed(const String&, float);
  10125. void SetAttributeAnimationTime(const String&, float);
  10126. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10127. void SetFixedHeight(int);
  10128. void SetFixedSize(int, int);
  10129. void SetFixedWidth(int);
  10130. void SetFullImageRect();
  10131. void SetHotSpot(int, int);
  10132. void SetInterceptNetworkUpdate(const String&, bool);
  10133. void SetMaxSize(int, int);
  10134. void SetMinSize(int, int);
  10135. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10136. void SetPosition(float, float);
  10137. void SetScale(float);
  10138. void SetScale(float, float);
  10139. void SetSize(int, int);
  10140. bool SetStyle(const String&, XMLFile = null);
  10141. bool SetStyle(const XMLElement&);
  10142. bool SetStyleAuto(XMLFile = null);
  10143. const Variant& GetVar(const StringHash&);
  10144. // Properties:
  10145. bool animationEnabled;
  10146. /* readonly */
  10147. Array<Variant> attributeDefaults;
  10148. /* readonly */
  10149. Array<AttributeInfo> attributeInfos;
  10150. Array<Variant> attributes;
  10151. BlendMode blendMode;
  10152. bool bringToBack;
  10153. bool bringToFront;
  10154. /* readonly */
  10155. String category;
  10156. /* readonly */
  10157. Array<UIElement> children;
  10158. /* writeonly */
  10159. Color color;
  10160. /* readonly */
  10161. bool colorGradient;
  10162. Array<Color> colors;
  10163. XMLFile defaultStyle;
  10164. /* readonly */
  10165. float derivedOpacity;
  10166. /* readonly */
  10167. uint dragButtonCombo;
  10168. /* readonly */
  10169. int dragButtonCount;
  10170. bool elementEventSender;
  10171. int height;
  10172. HorizontalAlignment horizontalAlignment;
  10173. IntVector2 hotSpot;
  10174. IntRect imageRect;
  10175. String name;
  10176. /* readonly */
  10177. uint numAllChildren;
  10178. /* readonly */
  10179. uint numAttributes;
  10180. /* readonly */
  10181. uint numChildren;
  10182. ObjectAnimation objectAnimation;
  10183. float opacity;
  10184. UIElement parent;
  10185. Vector2 position;
  10186. int priority;
  10187. /* readonly */
  10188. int refs;
  10189. /* readonly */
  10190. UIElement root;
  10191. float rotation;
  10192. Vector2 scale;
  10193. IntVector2 size;
  10194. bool sortChildren;
  10195. String style;
  10196. /* readonly */
  10197. Array<String> tags;
  10198. bool temporary;
  10199. Texture texture;
  10200. /* readonly */
  10201. StringHash type;
  10202. /* readonly */
  10203. String typeName;
  10204. bool useDerivedOpacity;
  10205. /* readonly */
  10206. VariantMap vars;
  10207. VerticalAlignment verticalAlignment;
  10208. bool visible;
  10209. /* readonly */
  10210. bool visibleEffective;
  10211. /* readonly */
  10212. int weakRefs;
  10213. int width;
  10214. };
  10215. class Sprite2D
  10216. {
  10217. // Methods:
  10218. bool HasSubscribedToEvent(Object, const String&);
  10219. bool HasSubscribedToEvent(const String&);
  10220. bool Load(File);
  10221. bool Load(VectorBuffer&);
  10222. bool Save(File) const;
  10223. bool Save(VectorBuffer&) const;
  10224. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10225. // Properties:
  10226. /* readonly */
  10227. String category;
  10228. Vector2 hotSpot;
  10229. /* readonly */
  10230. uint memoryUse;
  10231. String name;
  10232. IntVector2 offset;
  10233. IntRect rectangle;
  10234. /* readonly */
  10235. int refs;
  10236. Texture2D texture;
  10237. float textureEdgeOffset;
  10238. /* readonly */
  10239. StringHash type;
  10240. /* readonly */
  10241. String typeName;
  10242. /* readonly */
  10243. uint useTimer;
  10244. /* readonly */
  10245. int weakRefs;
  10246. };
  10247. class SpriteSheet2D
  10248. {
  10249. // Methods:
  10250. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10251. Sprite2D GetSprite(const String&);
  10252. bool HasSubscribedToEvent(Object, const String&);
  10253. bool HasSubscribedToEvent(const String&);
  10254. bool Load(File);
  10255. bool Load(VectorBuffer&);
  10256. bool Save(File) const;
  10257. bool Save(VectorBuffer&) const;
  10258. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10259. // Properties:
  10260. /* readonly */
  10261. String category;
  10262. /* readonly */
  10263. uint memoryUse;
  10264. String name;
  10265. /* readonly */
  10266. int refs;
  10267. Texture2D texture;
  10268. /* readonly */
  10269. StringHash type;
  10270. /* readonly */
  10271. String typeName;
  10272. /* readonly */
  10273. uint useTimer;
  10274. /* readonly */
  10275. int weakRefs;
  10276. };
  10277. class StaticModel
  10278. {
  10279. // Methods:
  10280. void ApplyAttributes();
  10281. void ApplyMaterialList(const String& = String ( ));
  10282. void DrawDebugGeometry(DebugRenderer, bool);
  10283. Variant GetAttribute(const String&) const;
  10284. ValueAnimation GetAttributeAnimation(const String&) const;
  10285. float GetAttributeAnimationSpeed(const String&) const;
  10286. float GetAttributeAnimationTime(const String&) const;
  10287. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10288. Variant GetAttributeDefault(const String&) const;
  10289. bool GetInterceptNetworkUpdate(const String&) const;
  10290. bool HasSubscribedToEvent(Object, const String&);
  10291. bool HasSubscribedToEvent(const String&);
  10292. bool IsInView(Camera) const;
  10293. bool IsInside(const Vector3&) const;
  10294. bool IsInsideLocal(const Vector3&) const;
  10295. bool Load(File, bool = false);
  10296. bool Load(VectorBuffer&, bool = false);
  10297. bool LoadJSON(const JSONValue&, bool = false);
  10298. bool LoadXML(const XMLElement&, bool = false);
  10299. void MarkNetworkUpdate() const;
  10300. void Remove();
  10301. void RemoveAttributeAnimation(const String&);
  10302. void RemoveInstanceDefault();
  10303. void RemoveObjectAnimation();
  10304. void ResetToDefault();
  10305. bool Save(File) const;
  10306. bool Save(VectorBuffer&) const;
  10307. bool SaveJSON(JSONValue&) const;
  10308. bool SaveXML(XMLElement&) const;
  10309. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10310. void SetAnimationTime(float);
  10311. bool SetAttribute(const String&, const Variant&);
  10312. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10313. void SetAttributeAnimationSpeed(const String&, float);
  10314. void SetAttributeAnimationTime(const String&, float);
  10315. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10316. void SetInterceptNetworkUpdate(const String&, bool);
  10317. // Properties:
  10318. bool animationEnabled;
  10319. /* readonly */
  10320. Array<Variant> attributeDefaults;
  10321. /* readonly */
  10322. Array<AttributeInfo> attributeInfos;
  10323. Array<Variant> attributes;
  10324. /* readonly */
  10325. BoundingBox boundingBox;
  10326. bool castShadows;
  10327. /* readonly */
  10328. String category;
  10329. float drawDistance;
  10330. bool enabled;
  10331. /* readonly */
  10332. bool enabledEffective;
  10333. /* readonly */
  10334. uint id;
  10335. /* readonly */
  10336. bool inView;
  10337. uint lightMask;
  10338. float lodBias;
  10339. /* writeonly */
  10340. Material material;
  10341. Array<Material> materials;
  10342. uint maxLights;
  10343. Model model;
  10344. /* readonly */
  10345. Node node;
  10346. /* readonly */
  10347. uint numAttributes;
  10348. /* readonly */
  10349. uint numGeometries;
  10350. ObjectAnimation objectAnimation;
  10351. bool occludee;
  10352. bool occluder;
  10353. uint occlusionLodLevel;
  10354. /* readonly */
  10355. int refs;
  10356. float shadowDistance;
  10357. uint shadowMask;
  10358. bool temporary;
  10359. /* readonly */
  10360. StringHash type;
  10361. /* readonly */
  10362. String typeName;
  10363. uint viewMask;
  10364. /* readonly */
  10365. int weakRefs;
  10366. /* readonly */
  10367. BoundingBox worldBoundingBox;
  10368. uint zoneMask;
  10369. };
  10370. class StaticModelGroup
  10371. {
  10372. // Methods:
  10373. void AddInstanceNode(Node);
  10374. void ApplyAttributes();
  10375. void ApplyMaterialList(const String& = String ( ));
  10376. void DrawDebugGeometry(DebugRenderer, bool);
  10377. Variant GetAttribute(const String&) const;
  10378. ValueAnimation GetAttributeAnimation(const String&) const;
  10379. float GetAttributeAnimationSpeed(const String&) const;
  10380. float GetAttributeAnimationTime(const String&) const;
  10381. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10382. Variant GetAttributeDefault(const String&) const;
  10383. bool GetInterceptNetworkUpdate(const String&) const;
  10384. bool HasSubscribedToEvent(Object, const String&);
  10385. bool HasSubscribedToEvent(const String&);
  10386. bool IsInView(Camera) const;
  10387. bool Load(File, bool = false);
  10388. bool Load(VectorBuffer&, bool = false);
  10389. bool LoadJSON(const JSONValue&, bool = false);
  10390. bool LoadXML(const XMLElement&, bool = false);
  10391. void MarkNetworkUpdate() const;
  10392. void Remove();
  10393. void RemoveAllInstanceNodes();
  10394. void RemoveAttributeAnimation(const String&);
  10395. void RemoveInstanceDefault();
  10396. void RemoveInstanceNode(Node);
  10397. void RemoveObjectAnimation();
  10398. void ResetToDefault();
  10399. bool Save(File) const;
  10400. bool Save(VectorBuffer&) const;
  10401. bool SaveJSON(JSONValue&) const;
  10402. bool SaveXML(XMLElement&) const;
  10403. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10404. void SetAnimationTime(float);
  10405. bool SetAttribute(const String&, const Variant&);
  10406. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10407. void SetAttributeAnimationSpeed(const String&, float);
  10408. void SetAttributeAnimationTime(const String&, float);
  10409. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10410. void SetInterceptNetworkUpdate(const String&, bool);
  10411. // Properties:
  10412. bool animationEnabled;
  10413. /* readonly */
  10414. Array<Variant> attributeDefaults;
  10415. /* readonly */
  10416. Array<AttributeInfo> attributeInfos;
  10417. Array<Variant> attributes;
  10418. /* readonly */
  10419. BoundingBox boundingBox;
  10420. bool castShadows;
  10421. /* readonly */
  10422. String category;
  10423. float drawDistance;
  10424. bool enabled;
  10425. /* readonly */
  10426. bool enabledEffective;
  10427. /* readonly */
  10428. uint id;
  10429. /* readonly */
  10430. bool inView;
  10431. /* readonly */
  10432. Array<Node> instanceNodes;
  10433. uint lightMask;
  10434. float lodBias;
  10435. /* writeonly */
  10436. Material material;
  10437. Array<Material> materials;
  10438. uint maxLights;
  10439. Model model;
  10440. /* readonly */
  10441. Node node;
  10442. /* readonly */
  10443. uint numAttributes;
  10444. /* readonly */
  10445. uint numGeometries;
  10446. /* readonly */
  10447. uint numInstanceNodes;
  10448. ObjectAnimation objectAnimation;
  10449. bool occludee;
  10450. bool occluder;
  10451. uint occlusionLodLevel;
  10452. /* readonly */
  10453. int refs;
  10454. float shadowDistance;
  10455. uint shadowMask;
  10456. bool temporary;
  10457. /* readonly */
  10458. StringHash type;
  10459. /* readonly */
  10460. String typeName;
  10461. uint viewMask;
  10462. /* readonly */
  10463. int weakRefs;
  10464. /* readonly */
  10465. BoundingBox worldBoundingBox;
  10466. /* readonly */
  10467. Zone zone;
  10468. uint zoneMask;
  10469. };
  10470. class StaticSprite2D
  10471. {
  10472. // Methods:
  10473. void ApplyAttributes();
  10474. void DrawDebugGeometry(DebugRenderer, bool);
  10475. Variant GetAttribute(const String&) const;
  10476. ValueAnimation GetAttributeAnimation(const String&) const;
  10477. float GetAttributeAnimationSpeed(const String&) const;
  10478. float GetAttributeAnimationTime(const String&) const;
  10479. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10480. Variant GetAttributeDefault(const String&) const;
  10481. bool GetInterceptNetworkUpdate(const String&) const;
  10482. bool HasSubscribedToEvent(Object, const String&);
  10483. bool HasSubscribedToEvent(const String&);
  10484. bool IsInView(Camera) const;
  10485. bool Load(File, bool = false);
  10486. bool Load(VectorBuffer&, bool = false);
  10487. bool LoadJSON(const JSONValue&, bool = false);
  10488. bool LoadXML(const XMLElement&, bool = false);
  10489. void MarkNetworkUpdate() const;
  10490. void Remove();
  10491. void RemoveAttributeAnimation(const String&);
  10492. void RemoveInstanceDefault();
  10493. void RemoveObjectAnimation();
  10494. void ResetToDefault();
  10495. bool Save(File) const;
  10496. bool Save(VectorBuffer&) const;
  10497. bool SaveJSON(JSONValue&) const;
  10498. bool SaveXML(XMLElement&) const;
  10499. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10500. void SetAnimationTime(float);
  10501. bool SetAttribute(const String&, const Variant&);
  10502. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10503. void SetAttributeAnimationSpeed(const String&, float);
  10504. void SetAttributeAnimationTime(const String&, float);
  10505. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10506. void SetFlip(bool, bool);
  10507. void SetInterceptNetworkUpdate(const String&, bool);
  10508. // Properties:
  10509. float alpha;
  10510. bool animationEnabled;
  10511. /* readonly */
  10512. Array<Variant> attributeDefaults;
  10513. /* readonly */
  10514. Array<AttributeInfo> attributeInfos;
  10515. Array<Variant> attributes;
  10516. BlendMode blendMode;
  10517. /* readonly */
  10518. BoundingBox boundingBox;
  10519. bool castShadows;
  10520. /* readonly */
  10521. String category;
  10522. Color color;
  10523. Material customMaterial;
  10524. float drawDistance;
  10525. bool enabled;
  10526. /* readonly */
  10527. bool enabledEffective;
  10528. bool flipX;
  10529. bool flipY;
  10530. Vector2 hotSpot;
  10531. /* readonly */
  10532. uint id;
  10533. /* readonly */
  10534. bool inView;
  10535. int layer;
  10536. uint lightMask;
  10537. float lodBias;
  10538. uint maxLights;
  10539. /* readonly */
  10540. Node node;
  10541. /* readonly */
  10542. uint numAttributes;
  10543. ObjectAnimation objectAnimation;
  10544. bool occludee;
  10545. bool occluder;
  10546. int orderInLayer;
  10547. /* readonly */
  10548. int refs;
  10549. float shadowDistance;
  10550. uint shadowMask;
  10551. Sprite2D sprite;
  10552. bool temporary;
  10553. /* readonly */
  10554. StringHash type;
  10555. /* readonly */
  10556. String typeName;
  10557. bool useHotSpot;
  10558. uint viewMask;
  10559. /* readonly */
  10560. int weakRefs;
  10561. /* readonly */
  10562. BoundingBox worldBoundingBox;
  10563. uint zoneMask;
  10564. };
  10565. class String
  10566. {
  10567. // Methods:
  10568. void AppendUTF8(uint);
  10569. uint AtUTF8(uint) const;
  10570. uint ByteOffsetUTF8(uint) const;
  10571. void Clear();
  10572. int Compare(const String&, bool = true) const;
  10573. bool Contains(const String&, bool = true) const;
  10574. bool Contains(uint8, bool = true) const;
  10575. bool EndsWith(const String&, bool = true) const;
  10576. uint Find(const String&, uint = 0, bool = true) const;
  10577. uint Find(uint8, uint = 0, bool = true) const;
  10578. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10579. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10580. void Join(Array<String>&, const String&);
  10581. uint NextUTF8Char(uint&) const;
  10582. void Replace(const String&, const String&, bool = true);
  10583. void Replace(uint8, uint8, bool = true);
  10584. void ReplaceUTF8(uint, uint);
  10585. String Replaced(const String&, const String&, bool = true) const;
  10586. String Replaced(uint8, uint8, bool = true) const;
  10587. void Resize(uint);
  10588. void SetUTF8FromLatin1(const String&);
  10589. Array<String> Split(uint8, bool = false) const;
  10590. bool StartsWith(const String&, bool = true) const;
  10591. String Substring(uint) const;
  10592. String Substring(uint, uint) const;
  10593. String SubstringUTF8(uint) const;
  10594. String SubstringUTF8(uint, uint) const;
  10595. bool ToBool() const;
  10596. Color ToColor() const;
  10597. double ToDouble() const;
  10598. float ToFloat() const;
  10599. int ToInt() const;
  10600. IntRect ToIntRect() const;
  10601. IntVector2 ToIntVector2() const;
  10602. String ToLower() const;
  10603. Matrix3 ToMatrix3() const;
  10604. Matrix3x4 ToMatrix3x4() const;
  10605. Matrix4 ToMatrix4() const;
  10606. Quaternion ToQuaternion() const;
  10607. uint ToUInt() const;
  10608. String ToUpper() const;
  10609. Vector2 ToVector2() const;
  10610. Vector3 ToVector3() const;
  10611. Vector4 ToVector4(bool = false) const;
  10612. Variant ToVectorVariant() const;
  10613. String Trimmed() const;
  10614. // Properties:
  10615. /* readonly */
  10616. bool empty;
  10617. /* readonly */
  10618. uint length;
  10619. /* readonly */
  10620. uint utf8Length;
  10621. };
  10622. class StringHash
  10623. {
  10624. // Methods:
  10625. String ToString() const;
  10626. // Properties:
  10627. /* readonly */
  10628. uint value;
  10629. };
  10630. class Technique
  10631. {
  10632. // Methods:
  10633. Technique Clone(const String& = String ( )) const;
  10634. Pass CreatePass(const String&);
  10635. Pass GetPass(const String&);
  10636. Pass GetSupportedPass(const String&);
  10637. bool HasPass(const String&) const;
  10638. bool HasSubscribedToEvent(Object, const String&);
  10639. bool HasSubscribedToEvent(const String&);
  10640. bool Load(File);
  10641. bool Load(VectorBuffer&);
  10642. void RemovePass(const String&);
  10643. bool Save(File) const;
  10644. bool Save(VectorBuffer&) const;
  10645. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10646. // Properties:
  10647. /* readonly */
  10648. String category;
  10649. bool desktop;
  10650. /* readonly */
  10651. uint memoryUse;
  10652. String name;
  10653. /* readonly */
  10654. uint numPasses;
  10655. /* readonly */
  10656. Array<String> passNames;
  10657. /* readonly */
  10658. Array<Pass> passes;
  10659. /* readonly */
  10660. int refs;
  10661. /* readonly */
  10662. bool supported;
  10663. /* readonly */
  10664. StringHash type;
  10665. /* readonly */
  10666. String typeName;
  10667. /* readonly */
  10668. uint useTimer;
  10669. /* readonly */
  10670. int weakRefs;
  10671. };
  10672. class TechniqueEntry
  10673. {
  10674. // Properties:
  10675. float lodDistance;
  10676. int qualityLevel;
  10677. Technique technique;
  10678. };
  10679. class Terrain
  10680. {
  10681. // Methods:
  10682. void ApplyAttributes();
  10683. void ApplyHeightMap();
  10684. void DrawDebugGeometry(DebugRenderer, bool);
  10685. Variant GetAttribute(const String&) const;
  10686. ValueAnimation GetAttributeAnimation(const String&) const;
  10687. float GetAttributeAnimationSpeed(const String&) const;
  10688. float GetAttributeAnimationTime(const String&) const;
  10689. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10690. Variant GetAttributeDefault(const String&) const;
  10691. float GetHeight(const Vector3&) const;
  10692. bool GetInterceptNetworkUpdate(const String&) const;
  10693. Vector3 GetNormal(const Vector3&) const;
  10694. TerrainPatch GetPatch(int, int) const;
  10695. bool HasSubscribedToEvent(Object, const String&);
  10696. bool HasSubscribedToEvent(const String&);
  10697. bool Load(File, bool = false);
  10698. bool Load(VectorBuffer&, bool = false);
  10699. bool LoadJSON(const JSONValue&, bool = false);
  10700. bool LoadXML(const XMLElement&, bool = false);
  10701. void MarkNetworkUpdate() const;
  10702. void Remove();
  10703. void RemoveAttributeAnimation(const String&);
  10704. void RemoveInstanceDefault();
  10705. void RemoveObjectAnimation();
  10706. void ResetToDefault();
  10707. bool Save(File) const;
  10708. bool Save(VectorBuffer&) const;
  10709. bool SaveJSON(JSONValue&) const;
  10710. bool SaveXML(XMLElement&) const;
  10711. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10712. void SetAnimationTime(float);
  10713. bool SetAttribute(const String&, const Variant&);
  10714. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10715. void SetAttributeAnimationSpeed(const String&, float);
  10716. void SetAttributeAnimationTime(const String&, float);
  10717. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10718. void SetInterceptNetworkUpdate(const String&, bool);
  10719. IntVector2 WorldToHeightMap(const Vector3&) const;
  10720. // Properties:
  10721. bool animationEnabled;
  10722. /* readonly */
  10723. Array<Variant> attributeDefaults;
  10724. /* readonly */
  10725. Array<AttributeInfo> attributeInfos;
  10726. Array<Variant> attributes;
  10727. bool castShadows;
  10728. /* readonly */
  10729. String category;
  10730. float drawDistance;
  10731. bool enabled;
  10732. /* readonly */
  10733. bool enabledEffective;
  10734. Image heightMap;
  10735. /* readonly */
  10736. uint id;
  10737. uint lightMask;
  10738. float lodBias;
  10739. Material material;
  10740. uint maxLights;
  10741. uint maxLodLevels;
  10742. /* readonly */
  10743. Node node;
  10744. /* readonly */
  10745. uint numAttributes;
  10746. /* readonly */
  10747. IntVector2 numPatches;
  10748. /* readonly */
  10749. IntVector2 numVertices;
  10750. ObjectAnimation objectAnimation;
  10751. bool occludee;
  10752. bool occluder;
  10753. uint occlusionLodLevel;
  10754. int patchSize;
  10755. /* readonly */
  10756. Array<TerrainPatch> patches;
  10757. /* readonly */
  10758. int refs;
  10759. float shadowDistance;
  10760. uint shadowMask;
  10761. bool smoothing;
  10762. Vector3 spacing;
  10763. bool temporary;
  10764. /* readonly */
  10765. StringHash type;
  10766. /* readonly */
  10767. String typeName;
  10768. uint viewMask;
  10769. /* readonly */
  10770. int weakRefs;
  10771. uint zoneMask;
  10772. };
  10773. class TerrainPatch
  10774. {
  10775. // Methods:
  10776. void ApplyAttributes();
  10777. void DrawDebugGeometry(DebugRenderer, bool);
  10778. Variant GetAttribute(const String&) const;
  10779. ValueAnimation GetAttributeAnimation(const String&) const;
  10780. float GetAttributeAnimationSpeed(const String&) const;
  10781. float GetAttributeAnimationTime(const String&) const;
  10782. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10783. Variant GetAttributeDefault(const String&) const;
  10784. bool GetInterceptNetworkUpdate(const String&) const;
  10785. bool HasSubscribedToEvent(Object, const String&);
  10786. bool HasSubscribedToEvent(const String&);
  10787. bool IsInView(Camera) const;
  10788. bool Load(File, bool = false);
  10789. bool Load(VectorBuffer&, bool = false);
  10790. bool LoadJSON(const JSONValue&, bool = false);
  10791. bool LoadXML(const XMLElement&, bool = false);
  10792. void MarkNetworkUpdate() const;
  10793. void Remove();
  10794. void RemoveAttributeAnimation(const String&);
  10795. void RemoveInstanceDefault();
  10796. void RemoveObjectAnimation();
  10797. void ResetToDefault();
  10798. bool Save(File) const;
  10799. bool Save(VectorBuffer&) const;
  10800. bool SaveJSON(JSONValue&) const;
  10801. bool SaveXML(XMLElement&) const;
  10802. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10803. void SetAnimationTime(float);
  10804. bool SetAttribute(const String&, const Variant&);
  10805. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10806. void SetAttributeAnimationSpeed(const String&, float);
  10807. void SetAttributeAnimationTime(const String&, float);
  10808. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10809. void SetInterceptNetworkUpdate(const String&, bool);
  10810. // Properties:
  10811. bool animationEnabled;
  10812. /* readonly */
  10813. Array<Variant> attributeDefaults;
  10814. /* readonly */
  10815. Array<AttributeInfo> attributeInfos;
  10816. Array<Variant> attributes;
  10817. /* readonly */
  10818. BoundingBox boundingBox;
  10819. bool castShadows;
  10820. /* readonly */
  10821. String category;
  10822. float drawDistance;
  10823. bool enabled;
  10824. /* readonly */
  10825. bool enabledEffective;
  10826. /* readonly */
  10827. uint id;
  10828. /* readonly */
  10829. bool inView;
  10830. uint lightMask;
  10831. float lodBias;
  10832. uint maxLights;
  10833. /* readonly */
  10834. Node node;
  10835. /* readonly */
  10836. uint numAttributes;
  10837. ObjectAnimation objectAnimation;
  10838. bool occludee;
  10839. bool occluder;
  10840. /* readonly */
  10841. int refs;
  10842. float shadowDistance;
  10843. uint shadowMask;
  10844. bool temporary;
  10845. /* readonly */
  10846. StringHash type;
  10847. /* readonly */
  10848. String typeName;
  10849. uint viewMask;
  10850. /* readonly */
  10851. int weakRefs;
  10852. /* readonly */
  10853. BoundingBox worldBoundingBox;
  10854. uint zoneMask;
  10855. };
  10856. class Text
  10857. {
  10858. // Methods:
  10859. void AddChild(UIElement);
  10860. void AddTag(const String&);
  10861. void AddTags(const String&, int8 = ';');
  10862. void ApplyAttributes();
  10863. void BringToFront();
  10864. void ClearSelection();
  10865. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10866. void DisableLayoutUpdate();
  10867. IntVector2 ElementToScreen(const IntVector2&);
  10868. void EnableLayoutUpdate();
  10869. uint FindChild(UIElement) const;
  10870. Variant GetAttribute(const String&) const;
  10871. ValueAnimation GetAttributeAnimation(const String&) const;
  10872. float GetAttributeAnimationSpeed(const String&) const;
  10873. float GetAttributeAnimationTime(const String&) const;
  10874. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10875. Variant GetAttributeDefault(const String&) const;
  10876. UIElement GetChild(const String&, bool = false) const;
  10877. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10878. Array<UIElement> GetChildren(bool = false) const;
  10879. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10880. UIElement GetElementEventSender() const;
  10881. bool GetInterceptNetworkUpdate(const String&) const;
  10882. uint GetNumChildren(bool) const;
  10883. bool HasSubscribedToEvent(Object, const String&);
  10884. bool HasSubscribedToEvent(const String&);
  10885. bool HasTag(const String&) const;
  10886. void InsertChild(uint, UIElement);
  10887. bool IsInside(IntVector2, bool);
  10888. bool IsInsideCombined(IntVector2, bool);
  10889. bool Load(File, bool = false);
  10890. bool Load(VectorBuffer&, bool = false);
  10891. bool LoadChildXML(XMLFile, XMLFile = null);
  10892. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10893. bool LoadJSON(const JSONValue&, bool = false);
  10894. bool LoadXML(File);
  10895. bool LoadXML(VectorBuffer&);
  10896. bool LoadXML(XMLFile, XMLFile);
  10897. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10898. bool LoadXML(const XMLElement&, bool = false);
  10899. void MarkNetworkUpdate() const;
  10900. void Remove();
  10901. void RemoveAllChildren();
  10902. void RemoveAllTags();
  10903. void RemoveAttributeAnimation(const String&);
  10904. void RemoveChild(UIElement, uint = 0);
  10905. void RemoveChild(uint);
  10906. void RemoveInstanceDefault();
  10907. void RemoveObjectAnimation();
  10908. bool RemoveTag(const String&);
  10909. void ResetDeepEnabled();
  10910. void ResetToDefault();
  10911. bool Save(File) const;
  10912. bool Save(VectorBuffer&) const;
  10913. bool SaveJSON(JSONValue&) const;
  10914. bool SaveXML(File, const String& = "\t");
  10915. bool SaveXML(VectorBuffer&, const String& = "\t");
  10916. bool SaveXML(XMLElement&) const;
  10917. IntVector2 ScreenToElement(const IntVector2&);
  10918. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10919. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10920. void SetAnimationTime(float);
  10921. bool SetAttribute(const String&, const Variant&);
  10922. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10923. void SetAttributeAnimationSpeed(const String&, float);
  10924. void SetAttributeAnimationTime(const String&, float);
  10925. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10926. void SetDeepEnabled(bool);
  10927. void SetEnabledRecursive(bool);
  10928. void SetFixedHeight(int);
  10929. void SetFixedSize(int, int);
  10930. void SetFixedWidth(int);
  10931. bool SetFont(Font, int);
  10932. bool SetFont(const String&, int);
  10933. void SetInterceptNetworkUpdate(const String&, bool);
  10934. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10935. void SetMaxSize(int, int);
  10936. void SetMinSize(int, int);
  10937. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10938. void SetPosition(int, int);
  10939. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10940. void SetSize(int, int);
  10941. bool SetStyle(const String&, XMLFile = null);
  10942. bool SetStyle(const XMLElement&);
  10943. bool SetStyleAuto(XMLFile = null);
  10944. void UpdateLayout();
  10945. const Variant& GetVar(const StringHash&);
  10946. // Properties:
  10947. bool animationEnabled;
  10948. /* readonly */
  10949. Array<Variant> attributeDefaults;
  10950. /* readonly */
  10951. Array<AttributeInfo> attributeInfos;
  10952. Array<Variant> attributes;
  10953. bool autoLocalizable;
  10954. bool bringToBack;
  10955. bool bringToFront;
  10956. /* readonly */
  10957. String category;
  10958. /* readonly */
  10959. Array<IntVector2> charPositions;
  10960. /* readonly */
  10961. Array<IntVector2> charSizes;
  10962. /* readonly */
  10963. IntVector2 childOffset;
  10964. /* readonly */
  10965. Array<UIElement> children;
  10966. IntRect clipBorder;
  10967. bool clipChildren;
  10968. /* writeonly */
  10969. Color color;
  10970. /* readonly */
  10971. bool colorGradient;
  10972. Array<Color> colors;
  10973. /* readonly */
  10974. IntRect combinedScreenRect;
  10975. XMLFile defaultStyle;
  10976. /* readonly */
  10977. float derivedOpacity;
  10978. /* readonly */
  10979. uint dragButtonCombo;
  10980. /* readonly */
  10981. int dragButtonCount;
  10982. uint dragDropMode;
  10983. bool editable;
  10984. Color effectColor;
  10985. bool elementEventSender;
  10986. bool enabled;
  10987. /* readonly */
  10988. bool enabledSelf;
  10989. /* readonly */
  10990. bool fixedHeight;
  10991. /* readonly */
  10992. bool fixedSize;
  10993. /* readonly */
  10994. bool fixedWidth;
  10995. bool focus;
  10996. FocusMode focusMode;
  10997. /* readonly */
  10998. Font font;
  10999. /* readonly */
  11000. int fontSize;
  11001. int height;
  11002. HorizontalAlignment horizontalAlignment;
  11003. Color hoverColor;
  11004. /* readonly */
  11005. bool hovering;
  11006. int indent;
  11007. int indentSpacing;
  11008. /* readonly */
  11009. int indentWidth;
  11010. bool internal;
  11011. IntRect layoutBorder;
  11012. Vector2 layoutFlexScale;
  11013. LayoutMode layoutMode;
  11014. int layoutSpacing;
  11015. int maxHeight;
  11016. IntVector2 maxSize;
  11017. int maxWidth;
  11018. int minHeight;
  11019. IntVector2 minSize;
  11020. int minWidth;
  11021. String name;
  11022. /* readonly */
  11023. uint numAllChildren;
  11024. /* readonly */
  11025. uint numAttributes;
  11026. /* readonly */
  11027. uint numChars;
  11028. /* readonly */
  11029. uint numChildren;
  11030. /* readonly */
  11031. uint numRows;
  11032. ObjectAnimation objectAnimation;
  11033. float opacity;
  11034. UIElement parent;
  11035. IntVector2 position;
  11036. int priority;
  11037. /* readonly */
  11038. int refs;
  11039. /* readonly */
  11040. UIElement root;
  11041. /* readonly */
  11042. int rowHeight;
  11043. float rowSpacing;
  11044. /* readonly */
  11045. Array<int> rowWidths;
  11046. /* readonly */
  11047. IntVector2 screenPosition;
  11048. bool selected;
  11049. Color selectionColor;
  11050. /* readonly */
  11051. uint selectionLength;
  11052. /* readonly */
  11053. uint selectionStart;
  11054. IntVector2 size;
  11055. bool sortChildren;
  11056. String style;
  11057. /* readonly */
  11058. Array<String> tags;
  11059. bool temporary;
  11060. String text;
  11061. HorizontalAlignment textAlignment;
  11062. TextEffect textEffect;
  11063. TraversalMode traversalMode;
  11064. /* readonly */
  11065. StringHash type;
  11066. /* readonly */
  11067. String typeName;
  11068. bool useDerivedOpacity;
  11069. /* readonly */
  11070. VariantMap vars;
  11071. VerticalAlignment verticalAlignment;
  11072. bool visible;
  11073. /* readonly */
  11074. bool visibleEffective;
  11075. /* readonly */
  11076. int weakRefs;
  11077. int width;
  11078. bool wordwrap;
  11079. };
  11080. class Text3D
  11081. {
  11082. // Methods:
  11083. void ApplyAttributes();
  11084. void DrawDebugGeometry(DebugRenderer, bool);
  11085. Variant GetAttribute(const String&) const;
  11086. ValueAnimation GetAttributeAnimation(const String&) const;
  11087. float GetAttributeAnimationSpeed(const String&) const;
  11088. float GetAttributeAnimationTime(const String&) const;
  11089. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11090. Variant GetAttributeDefault(const String&) const;
  11091. bool GetInterceptNetworkUpdate(const String&) const;
  11092. bool HasSubscribedToEvent(Object, const String&);
  11093. bool HasSubscribedToEvent(const String&);
  11094. bool IsInView(Camera) const;
  11095. bool Load(File, bool = false);
  11096. bool Load(VectorBuffer&, bool = false);
  11097. bool LoadJSON(const JSONValue&, bool = false);
  11098. bool LoadXML(const XMLElement&, bool = false);
  11099. void MarkNetworkUpdate() const;
  11100. void Remove();
  11101. void RemoveAttributeAnimation(const String&);
  11102. void RemoveInstanceDefault();
  11103. void RemoveObjectAnimation();
  11104. void ResetToDefault();
  11105. bool Save(File) const;
  11106. bool Save(VectorBuffer&) const;
  11107. bool SaveJSON(JSONValue&) const;
  11108. bool SaveXML(XMLElement&) const;
  11109. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11110. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11111. void SetAnimationTime(float);
  11112. bool SetAttribute(const String&, const Variant&);
  11113. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11114. void SetAttributeAnimationSpeed(const String&, float);
  11115. void SetAttributeAnimationTime(const String&, float);
  11116. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11117. bool SetFont(Font, int);
  11118. bool SetFont(const String&, int);
  11119. void SetInterceptNetworkUpdate(const String&, bool);
  11120. // Properties:
  11121. bool animationEnabled;
  11122. /* readonly */
  11123. Array<Variant> attributeDefaults;
  11124. /* readonly */
  11125. Array<AttributeInfo> attributeInfos;
  11126. Array<Variant> attributes;
  11127. /* readonly */
  11128. BoundingBox boundingBox;
  11129. bool castShadows;
  11130. /* readonly */
  11131. String category;
  11132. /* readonly */
  11133. Array<IntVector2> charPositions;
  11134. /* readonly */
  11135. Array<IntVector2> charSizes;
  11136. /* writeonly */
  11137. Color color;
  11138. Array<Color> colors;
  11139. float drawDistance;
  11140. Color effectColor;
  11141. float effectDepthBias;
  11142. bool enabled;
  11143. /* readonly */
  11144. bool enabledEffective;
  11145. FaceCameraMode faceCameraMode;
  11146. /* readonly */
  11147. Font font;
  11148. /* readonly */
  11149. int fontSize;
  11150. HorizontalAlignment horizontalAlignment;
  11151. /* readonly */
  11152. uint id;
  11153. /* readonly */
  11154. bool inView;
  11155. uint lightMask;
  11156. float lodBias;
  11157. Material material;
  11158. uint maxLights;
  11159. /* readonly */
  11160. Node node;
  11161. /* readonly */
  11162. uint numAttributes;
  11163. /* readonly */
  11164. uint numChars;
  11165. /* readonly */
  11166. uint numRows;
  11167. ObjectAnimation objectAnimation;
  11168. bool occludee;
  11169. bool occluder;
  11170. float opacity;
  11171. /* readonly */
  11172. int refs;
  11173. /* readonly */
  11174. int rowHeight;
  11175. float rowSpacing;
  11176. /* readonly */
  11177. Array<int> rowWidths;
  11178. float shadowDistance;
  11179. uint shadowMask;
  11180. bool temporary;
  11181. String text;
  11182. HorizontalAlignment textAlignment;
  11183. TextEffect textEffect;
  11184. /* readonly */
  11185. StringHash type;
  11186. /* readonly */
  11187. String typeName;
  11188. VerticalAlignment verticalAlignment;
  11189. uint viewMask;
  11190. /* readonly */
  11191. int weakRefs;
  11192. int width;
  11193. bool wordwrap;
  11194. /* readonly */
  11195. BoundingBox worldBoundingBox;
  11196. uint zoneMask;
  11197. };
  11198. class Texture
  11199. {
  11200. // Methods:
  11201. void ClearDataLost();
  11202. bool HasSubscribedToEvent(Object, const String&);
  11203. bool HasSubscribedToEvent(const String&);
  11204. bool Load(File);
  11205. bool Load(VectorBuffer&);
  11206. bool Save(File) const;
  11207. bool Save(VectorBuffer&) const;
  11208. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11209. void SetNumLevels(uint);
  11210. // Properties:
  11211. Array<TextureAddressMode> addressMode;
  11212. Texture backupTexture;
  11213. Color borderColor;
  11214. /* readonly */
  11215. String category;
  11216. /* readonly */
  11217. uint components;
  11218. /* readonly */
  11219. bool compressed;
  11220. /* readonly */
  11221. bool dataLost;
  11222. TextureFilterMode filterMode;
  11223. /* readonly */
  11224. uint format;
  11225. /* readonly */
  11226. int height;
  11227. /* readonly */
  11228. Array<int> levelHeight;
  11229. /* readonly */
  11230. Array<int> levelWidth;
  11231. /* readonly */
  11232. uint levels;
  11233. /* readonly */
  11234. uint memoryUse;
  11235. Array<int> mipsToSkip;
  11236. String name;
  11237. /* readonly */
  11238. int refs;
  11239. bool sRGB;
  11240. /* readonly */
  11241. StringHash type;
  11242. /* readonly */
  11243. String typeName;
  11244. /* readonly */
  11245. TextureUsage usage;
  11246. /* readonly */
  11247. uint useTimer;
  11248. /* readonly */
  11249. int weakRefs;
  11250. /* readonly */
  11251. int width;
  11252. };
  11253. class Texture2D
  11254. {
  11255. // Methods:
  11256. void ClearDataLost();
  11257. Image GetImage() const;
  11258. bool HasSubscribedToEvent(Object, const String&);
  11259. bool HasSubscribedToEvent(const String&);
  11260. bool Load(File);
  11261. bool Load(VectorBuffer&);
  11262. bool Save(File) const;
  11263. bool Save(VectorBuffer&) const;
  11264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11265. bool SetData(Image, bool = false);
  11266. void SetNumLevels(uint);
  11267. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  11268. // Properties:
  11269. Array<TextureAddressMode> addressMode;
  11270. Texture backupTexture;
  11271. Color borderColor;
  11272. /* readonly */
  11273. String category;
  11274. /* readonly */
  11275. uint components;
  11276. /* readonly */
  11277. bool compressed;
  11278. /* readonly */
  11279. bool dataLost;
  11280. TextureFilterMode filterMode;
  11281. /* readonly */
  11282. uint format;
  11283. /* readonly */
  11284. int height;
  11285. /* readonly */
  11286. Array<int> levelHeight;
  11287. /* readonly */
  11288. Array<int> levelWidth;
  11289. /* readonly */
  11290. uint levels;
  11291. /* readonly */
  11292. uint memoryUse;
  11293. Array<int> mipsToSkip;
  11294. String name;
  11295. /* readonly */
  11296. int refs;
  11297. /* readonly */
  11298. RenderSurface renderSurface;
  11299. bool sRGB;
  11300. /* readonly */
  11301. StringHash type;
  11302. /* readonly */
  11303. String typeName;
  11304. /* readonly */
  11305. TextureUsage usage;
  11306. /* readonly */
  11307. uint useTimer;
  11308. /* readonly */
  11309. int weakRefs;
  11310. /* readonly */
  11311. int width;
  11312. };
  11313. class Texture2DArray
  11314. {
  11315. // Methods:
  11316. void ClearDataLost();
  11317. bool HasSubscribedToEvent(Object, const String&);
  11318. bool HasSubscribedToEvent(const String&);
  11319. bool Load(File);
  11320. bool Load(VectorBuffer&);
  11321. bool Save(File) const;
  11322. bool Save(VectorBuffer&) const;
  11323. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11324. bool SetData(uint, Image, bool = false);
  11325. void SetNumLevels(uint);
  11326. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11327. // Properties:
  11328. Array<TextureAddressMode> addressMode;
  11329. Texture backupTexture;
  11330. Color borderColor;
  11331. /* readonly */
  11332. String category;
  11333. /* readonly */
  11334. uint components;
  11335. /* readonly */
  11336. bool compressed;
  11337. /* readonly */
  11338. bool dataLost;
  11339. TextureFilterMode filterMode;
  11340. /* readonly */
  11341. uint format;
  11342. /* readonly */
  11343. int height;
  11344. uint layers;
  11345. /* readonly */
  11346. Array<int> levelHeight;
  11347. /* readonly */
  11348. Array<int> levelWidth;
  11349. /* readonly */
  11350. uint levels;
  11351. /* readonly */
  11352. uint memoryUse;
  11353. Array<int> mipsToSkip;
  11354. String name;
  11355. /* readonly */
  11356. int refs;
  11357. /* readonly */
  11358. RenderSurface renderSurface;
  11359. bool sRGB;
  11360. /* readonly */
  11361. StringHash type;
  11362. /* readonly */
  11363. String typeName;
  11364. /* readonly */
  11365. TextureUsage usage;
  11366. /* readonly */
  11367. uint useTimer;
  11368. /* readonly */
  11369. int weakRefs;
  11370. /* readonly */
  11371. int width;
  11372. };
  11373. class Texture3D
  11374. {
  11375. // Methods:
  11376. void ClearDataLost();
  11377. bool HasSubscribedToEvent(Object, const String&);
  11378. bool HasSubscribedToEvent(const String&);
  11379. bool Load(File);
  11380. bool Load(VectorBuffer&);
  11381. bool Save(File) const;
  11382. bool Save(VectorBuffer&) const;
  11383. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11384. bool SetData(Image, bool = false);
  11385. void SetNumLevels(uint);
  11386. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11387. // Properties:
  11388. Array<TextureAddressMode> addressMode;
  11389. Texture backupTexture;
  11390. Color borderColor;
  11391. /* readonly */
  11392. String category;
  11393. /* readonly */
  11394. uint components;
  11395. /* readonly */
  11396. bool compressed;
  11397. /* readonly */
  11398. bool dataLost;
  11399. TextureFilterMode filterMode;
  11400. /* readonly */
  11401. uint format;
  11402. /* readonly */
  11403. int height;
  11404. /* readonly */
  11405. Array<int> levelHeight;
  11406. /* readonly */
  11407. Array<int> levelWidth;
  11408. /* readonly */
  11409. uint levels;
  11410. /* readonly */
  11411. uint memoryUse;
  11412. Array<int> mipsToSkip;
  11413. String name;
  11414. /* readonly */
  11415. int refs;
  11416. bool sRGB;
  11417. /* readonly */
  11418. StringHash type;
  11419. /* readonly */
  11420. String typeName;
  11421. /* readonly */
  11422. TextureUsage usage;
  11423. /* readonly */
  11424. uint useTimer;
  11425. /* readonly */
  11426. int weakRefs;
  11427. /* readonly */
  11428. int width;
  11429. };
  11430. class TextureCube
  11431. {
  11432. // Methods:
  11433. void ClearDataLost();
  11434. Image GetImage(CubeMapFace) const;
  11435. bool HasSubscribedToEvent(Object, const String&);
  11436. bool HasSubscribedToEvent(const String&);
  11437. bool Load(File);
  11438. bool Load(VectorBuffer&);
  11439. bool Save(File) const;
  11440. bool Save(VectorBuffer&) const;
  11441. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11442. bool SetData(CubeMapFace, Image, bool = false);
  11443. void SetNumLevels(uint);
  11444. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  11445. // Properties:
  11446. Array<TextureAddressMode> addressMode;
  11447. Texture backupTexture;
  11448. Color borderColor;
  11449. /* readonly */
  11450. String category;
  11451. /* readonly */
  11452. uint components;
  11453. /* readonly */
  11454. bool compressed;
  11455. /* readonly */
  11456. bool dataLost;
  11457. TextureFilterMode filterMode;
  11458. /* readonly */
  11459. uint format;
  11460. /* readonly */
  11461. int height;
  11462. /* readonly */
  11463. Array<int> levelHeight;
  11464. /* readonly */
  11465. Array<int> levelWidth;
  11466. /* readonly */
  11467. uint levels;
  11468. /* readonly */
  11469. uint memoryUse;
  11470. Array<int> mipsToSkip;
  11471. String name;
  11472. /* readonly */
  11473. int refs;
  11474. /* readonly */
  11475. Array<RenderSurface> renderSurfaces;
  11476. bool sRGB;
  11477. /* readonly */
  11478. StringHash type;
  11479. /* readonly */
  11480. String typeName;
  11481. /* readonly */
  11482. TextureUsage usage;
  11483. /* readonly */
  11484. uint useTimer;
  11485. /* readonly */
  11486. int weakRefs;
  11487. /* readonly */
  11488. int width;
  11489. };
  11490. class TextureFrame
  11491. {
  11492. // Properties:
  11493. float time;
  11494. Rect uv;
  11495. };
  11496. class Tile2D
  11497. {
  11498. // Methods:
  11499. bool HasProperty(const String&) const;
  11500. const String& GetProperty(const String&) const;
  11501. // Properties:
  11502. /* readonly */
  11503. int gid;
  11504. /* readonly */
  11505. int refs;
  11506. /* readonly */
  11507. Sprite2D sprite;
  11508. /* readonly */
  11509. int weakRefs;
  11510. };
  11511. class TileMap2D
  11512. {
  11513. // Methods:
  11514. void ApplyAttributes();
  11515. void DrawDebugGeometry(DebugRenderer, bool);
  11516. Variant GetAttribute(const String&) const;
  11517. ValueAnimation GetAttributeAnimation(const String&) const;
  11518. float GetAttributeAnimationSpeed(const String&) const;
  11519. float GetAttributeAnimationTime(const String&) const;
  11520. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11521. Variant GetAttributeDefault(const String&) const;
  11522. bool GetInterceptNetworkUpdate(const String&) const;
  11523. TileMapLayer2D GetLayer(uint) const;
  11524. bool HasSubscribedToEvent(Object, const String&);
  11525. bool HasSubscribedToEvent(const String&);
  11526. bool Load(File, bool = false);
  11527. bool Load(VectorBuffer&, bool = false);
  11528. bool LoadJSON(const JSONValue&, bool = false);
  11529. bool LoadXML(const XMLElement&, bool = false);
  11530. void MarkNetworkUpdate() const;
  11531. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11532. void Remove();
  11533. void RemoveAttributeAnimation(const String&);
  11534. void RemoveInstanceDefault();
  11535. void RemoveObjectAnimation();
  11536. void ResetToDefault();
  11537. bool Save(File) const;
  11538. bool Save(VectorBuffer&) const;
  11539. bool SaveJSON(JSONValue&) const;
  11540. bool SaveXML(XMLElement&) const;
  11541. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11542. void SetAnimationTime(float);
  11543. bool SetAttribute(const String&, const Variant&);
  11544. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11545. void SetAttributeAnimationSpeed(const String&, float);
  11546. void SetAttributeAnimationTime(const String&, float);
  11547. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11548. void SetInterceptNetworkUpdate(const String&, bool);
  11549. Vector2 TileIndexToPosition(int, int) const;
  11550. // Properties:
  11551. bool animationEnabled;
  11552. /* readonly */
  11553. Array<Variant> attributeDefaults;
  11554. /* readonly */
  11555. Array<AttributeInfo> attributeInfos;
  11556. Array<Variant> attributes;
  11557. /* readonly */
  11558. String category;
  11559. bool enabled;
  11560. /* readonly */
  11561. bool enabledEffective;
  11562. /* readonly */
  11563. uint id;
  11564. /* readonly */
  11565. TileMapInfo2D info;
  11566. /* readonly */
  11567. Node node;
  11568. /* readonly */
  11569. uint numAttributes;
  11570. /* readonly */
  11571. uint numLayers;
  11572. ObjectAnimation objectAnimation;
  11573. /* readonly */
  11574. int refs;
  11575. bool temporary;
  11576. TmxFile2D tmxFile;
  11577. /* readonly */
  11578. StringHash type;
  11579. /* readonly */
  11580. String typeName;
  11581. /* readonly */
  11582. int weakRefs;
  11583. };
  11584. class TileMapInfo2D
  11585. {
  11586. // Properties:
  11587. int height;
  11588. /* readonly */
  11589. float mapHeight;
  11590. /* readonly */
  11591. float mapWidth;
  11592. Orientation2D orientation;
  11593. float tileHeight;
  11594. float tileWidth;
  11595. int width;
  11596. };
  11597. class TileMapLayer2D
  11598. {
  11599. // Methods:
  11600. void ApplyAttributes();
  11601. void DrawDebugGeometry(DebugRenderer, bool);
  11602. Variant GetAttribute(const String&) const;
  11603. ValueAnimation GetAttributeAnimation(const String&) const;
  11604. float GetAttributeAnimationSpeed(const String&) const;
  11605. float GetAttributeAnimationTime(const String&) const;
  11606. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11607. Variant GetAttributeDefault(const String&) const;
  11608. bool GetInterceptNetworkUpdate(const String&) const;
  11609. TileMapObject2D GetObject(uint) const;
  11610. Node GetObjectNode(uint) const;
  11611. Tile2D GetTile(int, int) const;
  11612. Node GetTileNode(int, int) const;
  11613. bool HasProperty(const String&) const;
  11614. bool HasSubscribedToEvent(Object, const String&);
  11615. bool HasSubscribedToEvent(const String&);
  11616. bool Load(File, bool = false);
  11617. bool Load(VectorBuffer&, bool = false);
  11618. bool LoadJSON(const JSONValue&, bool = false);
  11619. bool LoadXML(const XMLElement&, bool = false);
  11620. void MarkNetworkUpdate() const;
  11621. void Remove();
  11622. void RemoveAttributeAnimation(const String&);
  11623. void RemoveInstanceDefault();
  11624. void RemoveObjectAnimation();
  11625. void ResetToDefault();
  11626. bool Save(File) const;
  11627. bool Save(VectorBuffer&) const;
  11628. bool SaveJSON(JSONValue&) const;
  11629. bool SaveXML(XMLElement&) const;
  11630. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11631. void SetAnimationTime(float);
  11632. bool SetAttribute(const String&, const Variant&);
  11633. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11634. void SetAttributeAnimationSpeed(const String&, float);
  11635. void SetAttributeAnimationTime(const String&, float);
  11636. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11637. void SetInterceptNetworkUpdate(const String&, bool);
  11638. const String& GetProperty(const String&) const;
  11639. // Properties:
  11640. bool animationEnabled;
  11641. /* readonly */
  11642. Array<Variant> attributeDefaults;
  11643. /* readonly */
  11644. Array<AttributeInfo> attributeInfos;
  11645. Array<Variant> attributes;
  11646. /* readonly */
  11647. String category;
  11648. int drawOrder;
  11649. bool enabled;
  11650. /* readonly */
  11651. bool enabledEffective;
  11652. /* readonly */
  11653. int height;
  11654. /* readonly */
  11655. uint id;
  11656. /* readonly */
  11657. Node imageNode;
  11658. /* readonly */
  11659. TileMapLayerType2D layerType;
  11660. /* readonly */
  11661. Node node;
  11662. /* readonly */
  11663. uint numAttributes;
  11664. /* readonly */
  11665. uint numObjects;
  11666. ObjectAnimation objectAnimation;
  11667. /* readonly */
  11668. int refs;
  11669. bool temporary;
  11670. /* readonly */
  11671. StringHash type;
  11672. /* readonly */
  11673. String typeName;
  11674. bool visible;
  11675. /* readonly */
  11676. int weakRefs;
  11677. /* readonly */
  11678. int width;
  11679. };
  11680. class TileMapObject2D
  11681. {
  11682. // Methods:
  11683. bool HasProperty(const String&) const;
  11684. const String& GetProperty(const String&) const;
  11685. const Vector2& GetPoint(uint) const;
  11686. // Properties:
  11687. /* readonly */
  11688. String name;
  11689. /* readonly */
  11690. uint numPoints;
  11691. /* readonly */
  11692. TileObjectType2D objectType;
  11693. /* readonly */
  11694. Vector2 position;
  11695. /* readonly */
  11696. int refs;
  11697. /* readonly */
  11698. Vector2 size;
  11699. /* readonly */
  11700. int tileGid;
  11701. /* readonly */
  11702. Sprite2D tileSprite;
  11703. /* readonly */
  11704. String type;
  11705. /* readonly */
  11706. int weakRefs;
  11707. };
  11708. class Time
  11709. {
  11710. // Methods:
  11711. bool HasSubscribedToEvent(Object, const String&);
  11712. bool HasSubscribedToEvent(const String&);
  11713. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11714. // Properties:
  11715. /* readonly */
  11716. String category;
  11717. /* readonly */
  11718. float elapsedTime;
  11719. /* readonly */
  11720. uint frameNumber;
  11721. /* readonly */
  11722. int refs;
  11723. /* readonly */
  11724. uint systemTime;
  11725. /* readonly */
  11726. uint timeSinceEpoch;
  11727. /* readonly */
  11728. String timeStamp;
  11729. /* readonly */
  11730. float timeStep;
  11731. /* readonly */
  11732. StringHash type;
  11733. /* readonly */
  11734. String typeName;
  11735. /* readonly */
  11736. int weakRefs;
  11737. };
  11738. class Timer
  11739. {
  11740. // Methods:
  11741. uint GetMSec(bool);
  11742. void Reset();
  11743. };
  11744. class TmxFile2D
  11745. {
  11746. // Methods:
  11747. bool HasSubscribedToEvent(Object, const String&);
  11748. bool HasSubscribedToEvent(const String&);
  11749. bool Load(File);
  11750. bool Load(VectorBuffer&);
  11751. bool Save(File) const;
  11752. bool Save(VectorBuffer&) const;
  11753. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11754. // Properties:
  11755. /* readonly */
  11756. String category;
  11757. /* readonly */
  11758. uint memoryUse;
  11759. String name;
  11760. /* readonly */
  11761. int refs;
  11762. /* readonly */
  11763. StringHash type;
  11764. /* readonly */
  11765. String typeName;
  11766. /* readonly */
  11767. uint useTimer;
  11768. /* readonly */
  11769. int weakRefs;
  11770. };
  11771. class ToolTip
  11772. {
  11773. // Methods:
  11774. void AddChild(UIElement);
  11775. void AddTag(const String&);
  11776. void AddTags(const String&, int8 = ';');
  11777. void ApplyAttributes();
  11778. void BringToFront();
  11779. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11780. void DisableLayoutUpdate();
  11781. IntVector2 ElementToScreen(const IntVector2&);
  11782. void EnableLayoutUpdate();
  11783. uint FindChild(UIElement) const;
  11784. Variant GetAttribute(const String&) const;
  11785. ValueAnimation GetAttributeAnimation(const String&) const;
  11786. float GetAttributeAnimationSpeed(const String&) const;
  11787. float GetAttributeAnimationTime(const String&) const;
  11788. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11789. Variant GetAttributeDefault(const String&) const;
  11790. UIElement GetChild(const String&, bool = false) const;
  11791. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11792. Array<UIElement> GetChildren(bool = false) const;
  11793. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11794. UIElement GetElementEventSender() const;
  11795. bool GetInterceptNetworkUpdate(const String&) const;
  11796. uint GetNumChildren(bool) const;
  11797. bool HasSubscribedToEvent(Object, const String&);
  11798. bool HasSubscribedToEvent(const String&);
  11799. bool HasTag(const String&) const;
  11800. void InsertChild(uint, UIElement);
  11801. bool IsInside(IntVector2, bool);
  11802. bool IsInsideCombined(IntVector2, bool);
  11803. bool Load(File, bool = false);
  11804. bool Load(VectorBuffer&, bool = false);
  11805. bool LoadChildXML(XMLFile, XMLFile = null);
  11806. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11807. bool LoadJSON(const JSONValue&, bool = false);
  11808. bool LoadXML(File);
  11809. bool LoadXML(VectorBuffer&);
  11810. bool LoadXML(XMLFile, XMLFile);
  11811. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11812. bool LoadXML(const XMLElement&, bool = false);
  11813. void MarkNetworkUpdate() const;
  11814. void Remove();
  11815. void RemoveAllChildren();
  11816. void RemoveAllTags();
  11817. void RemoveAttributeAnimation(const String&);
  11818. void RemoveChild(UIElement, uint = 0);
  11819. void RemoveChild(uint);
  11820. void RemoveInstanceDefault();
  11821. void RemoveObjectAnimation();
  11822. bool RemoveTag(const String&);
  11823. void ResetDeepEnabled();
  11824. void ResetToDefault();
  11825. bool Save(File) const;
  11826. bool Save(VectorBuffer&) const;
  11827. bool SaveJSON(JSONValue&) const;
  11828. bool SaveXML(File, const String& = "\t");
  11829. bool SaveXML(VectorBuffer&, const String& = "\t");
  11830. bool SaveXML(XMLElement&) const;
  11831. IntVector2 ScreenToElement(const IntVector2&);
  11832. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11833. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11834. void SetAnimationTime(float);
  11835. bool SetAttribute(const String&, const Variant&);
  11836. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11837. void SetAttributeAnimationSpeed(const String&, float);
  11838. void SetAttributeAnimationTime(const String&, float);
  11839. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11840. void SetDeepEnabled(bool);
  11841. void SetEnabledRecursive(bool);
  11842. void SetFixedHeight(int);
  11843. void SetFixedSize(int, int);
  11844. void SetFixedWidth(int);
  11845. void SetInterceptNetworkUpdate(const String&, bool);
  11846. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11847. void SetMaxSize(int, int);
  11848. void SetMinSize(int, int);
  11849. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11850. void SetPosition(int, int);
  11851. void SetSize(int, int);
  11852. bool SetStyle(const String&, XMLFile = null);
  11853. bool SetStyle(const XMLElement&);
  11854. bool SetStyleAuto(XMLFile = null);
  11855. void UpdateLayout();
  11856. const Variant& GetVar(const StringHash&);
  11857. // Properties:
  11858. bool animationEnabled;
  11859. /* readonly */
  11860. Array<Variant> attributeDefaults;
  11861. /* readonly */
  11862. Array<AttributeInfo> attributeInfos;
  11863. Array<Variant> attributes;
  11864. bool bringToBack;
  11865. bool bringToFront;
  11866. /* readonly */
  11867. String category;
  11868. /* readonly */
  11869. IntVector2 childOffset;
  11870. /* readonly */
  11871. Array<UIElement> children;
  11872. IntRect clipBorder;
  11873. bool clipChildren;
  11874. /* writeonly */
  11875. Color color;
  11876. /* readonly */
  11877. bool colorGradient;
  11878. Array<Color> colors;
  11879. /* readonly */
  11880. IntRect combinedScreenRect;
  11881. XMLFile defaultStyle;
  11882. float delay;
  11883. /* readonly */
  11884. float derivedOpacity;
  11885. /* readonly */
  11886. uint dragButtonCombo;
  11887. /* readonly */
  11888. int dragButtonCount;
  11889. uint dragDropMode;
  11890. bool editable;
  11891. bool elementEventSender;
  11892. bool enabled;
  11893. /* readonly */
  11894. bool enabledSelf;
  11895. /* readonly */
  11896. bool fixedHeight;
  11897. /* readonly */
  11898. bool fixedSize;
  11899. /* readonly */
  11900. bool fixedWidth;
  11901. bool focus;
  11902. FocusMode focusMode;
  11903. int height;
  11904. HorizontalAlignment horizontalAlignment;
  11905. /* readonly */
  11906. bool hovering;
  11907. int indent;
  11908. int indentSpacing;
  11909. /* readonly */
  11910. int indentWidth;
  11911. bool internal;
  11912. IntRect layoutBorder;
  11913. Vector2 layoutFlexScale;
  11914. LayoutMode layoutMode;
  11915. int layoutSpacing;
  11916. int maxHeight;
  11917. IntVector2 maxSize;
  11918. int maxWidth;
  11919. int minHeight;
  11920. IntVector2 minSize;
  11921. int minWidth;
  11922. String name;
  11923. /* readonly */
  11924. uint numAllChildren;
  11925. /* readonly */
  11926. uint numAttributes;
  11927. /* readonly */
  11928. uint numChildren;
  11929. ObjectAnimation objectAnimation;
  11930. float opacity;
  11931. UIElement parent;
  11932. IntVector2 position;
  11933. int priority;
  11934. /* readonly */
  11935. int refs;
  11936. /* readonly */
  11937. UIElement root;
  11938. /* readonly */
  11939. IntVector2 screenPosition;
  11940. bool selected;
  11941. IntVector2 size;
  11942. bool sortChildren;
  11943. String style;
  11944. /* readonly */
  11945. Array<String> tags;
  11946. bool temporary;
  11947. TraversalMode traversalMode;
  11948. /* readonly */
  11949. StringHash type;
  11950. /* readonly */
  11951. String typeName;
  11952. bool useDerivedOpacity;
  11953. /* readonly */
  11954. VariantMap vars;
  11955. VerticalAlignment verticalAlignment;
  11956. bool visible;
  11957. /* readonly */
  11958. bool visibleEffective;
  11959. /* readonly */
  11960. int weakRefs;
  11961. int width;
  11962. };
  11963. class TouchState
  11964. {
  11965. // Properties:
  11966. IntVector2 delta;
  11967. IntVector2 lastPosition;
  11968. IntVector2 position;
  11969. float pressure;
  11970. int touchID;
  11971. /* readonly */
  11972. UIElement touchedElement;
  11973. };
  11974. class UI
  11975. {
  11976. // Methods:
  11977. void Clear();
  11978. void DebugDraw(UIElement);
  11979. UIElement GetElementAt(const IntVector2&, bool = true);
  11980. UIElement GetElementAt(int, int, bool = true);
  11981. bool HasModalElement() const;
  11982. bool HasSubscribedToEvent(Object, const String&);
  11983. bool HasSubscribedToEvent(const String&);
  11984. bool IsDragging() const;
  11985. UIElement LoadLayout(File);
  11986. UIElement LoadLayout(File, XMLFile);
  11987. UIElement LoadLayout(VectorBuffer&);
  11988. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11989. UIElement LoadLayout(XMLFile);
  11990. UIElement LoadLayout(XMLFile, XMLFile);
  11991. bool SaveLayout(File, UIElement);
  11992. bool SaveLayout(VectorBuffer&, UIElement);
  11993. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11994. void SetFocusElement(UIElement, bool = false);
  11995. void SetHeight(float);
  11996. void SetWidth(float);
  11997. const Array<UIElement> GetDragElements();
  11998. // Properties:
  11999. /* readonly */
  12000. String category;
  12001. String clipBoardText;
  12002. Cursor cursor;
  12003. /* readonly */
  12004. IntVector2 cursorPosition;
  12005. float defaultToolTipDelay;
  12006. float doubleClickInterval;
  12007. int dragBeginDistance;
  12008. float dragBeginInterval;
  12009. UIElement focusElement;
  12010. bool forceAutoHint;
  12011. /* readonly */
  12012. UIElement frontElement;
  12013. int maxFontTextureSize;
  12014. /* readonly */
  12015. UIElement modalRoot;
  12016. bool nonFocusedMouseWheel;
  12017. /* readonly */
  12018. int refs;
  12019. /* readonly */
  12020. UIElement root;
  12021. float scale;
  12022. /* readonly */
  12023. StringHash type;
  12024. /* readonly */
  12025. String typeName;
  12026. bool useMutableGlyphs;
  12027. bool useScreenKeyboard;
  12028. bool useSystemClipboard;
  12029. /* readonly */
  12030. int weakRefs;
  12031. };
  12032. class UIElement
  12033. {
  12034. // Methods:
  12035. void AddChild(UIElement);
  12036. void AddTag(const String&);
  12037. void AddTags(const String&, int8 = ';');
  12038. void ApplyAttributes();
  12039. void BringToFront();
  12040. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12041. void DisableLayoutUpdate();
  12042. IntVector2 ElementToScreen(const IntVector2&);
  12043. void EnableLayoutUpdate();
  12044. uint FindChild(UIElement) const;
  12045. Variant GetAttribute(const String&) const;
  12046. ValueAnimation GetAttributeAnimation(const String&) const;
  12047. float GetAttributeAnimationSpeed(const String&) const;
  12048. float GetAttributeAnimationTime(const String&) const;
  12049. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12050. Variant GetAttributeDefault(const String&) const;
  12051. UIElement GetChild(const String&, bool = false) const;
  12052. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12053. Array<UIElement> GetChildren(bool = false) const;
  12054. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12055. UIElement GetElementEventSender() const;
  12056. bool GetInterceptNetworkUpdate(const String&) const;
  12057. uint GetNumChildren(bool) const;
  12058. bool HasSubscribedToEvent(Object, const String&);
  12059. bool HasSubscribedToEvent(const String&);
  12060. bool HasTag(const String&) const;
  12061. void InsertChild(uint, UIElement);
  12062. bool IsInside(IntVector2, bool);
  12063. bool IsInsideCombined(IntVector2, bool);
  12064. bool Load(File, bool = false);
  12065. bool Load(VectorBuffer&, bool = false);
  12066. bool LoadChildXML(XMLFile, XMLFile = null);
  12067. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12068. bool LoadJSON(const JSONValue&, bool = false);
  12069. bool LoadXML(File);
  12070. bool LoadXML(VectorBuffer&);
  12071. bool LoadXML(XMLFile, XMLFile);
  12072. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12073. bool LoadXML(const XMLElement&, bool = false);
  12074. void MarkNetworkUpdate() const;
  12075. void Remove();
  12076. void RemoveAllChildren();
  12077. void RemoveAllTags();
  12078. void RemoveAttributeAnimation(const String&);
  12079. void RemoveChild(UIElement, uint = 0);
  12080. void RemoveChild(uint);
  12081. void RemoveInstanceDefault();
  12082. void RemoveObjectAnimation();
  12083. bool RemoveTag(const String&);
  12084. void ResetDeepEnabled();
  12085. void ResetToDefault();
  12086. bool Save(File) const;
  12087. bool Save(VectorBuffer&) const;
  12088. bool SaveJSON(JSONValue&) const;
  12089. bool SaveXML(File, const String& = "\t");
  12090. bool SaveXML(VectorBuffer&, const String& = "\t");
  12091. bool SaveXML(XMLElement&) const;
  12092. IntVector2 ScreenToElement(const IntVector2&);
  12093. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12094. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12095. void SetAnimationTime(float);
  12096. bool SetAttribute(const String&, const Variant&);
  12097. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12098. void SetAttributeAnimationSpeed(const String&, float);
  12099. void SetAttributeAnimationTime(const String&, float);
  12100. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12101. void SetDeepEnabled(bool);
  12102. void SetEnabledRecursive(bool);
  12103. void SetFixedHeight(int);
  12104. void SetFixedSize(int, int);
  12105. void SetFixedWidth(int);
  12106. void SetInterceptNetworkUpdate(const String&, bool);
  12107. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12108. void SetMaxSize(int, int);
  12109. void SetMinSize(int, int);
  12110. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12111. void SetPosition(int, int);
  12112. void SetSize(int, int);
  12113. bool SetStyle(const String&, XMLFile = null);
  12114. bool SetStyle(const XMLElement&);
  12115. bool SetStyleAuto(XMLFile = null);
  12116. void UpdateLayout();
  12117. const Variant& GetVar(const StringHash&);
  12118. // Properties:
  12119. bool animationEnabled;
  12120. /* readonly */
  12121. Array<Variant> attributeDefaults;
  12122. /* readonly */
  12123. Array<AttributeInfo> attributeInfos;
  12124. Array<Variant> attributes;
  12125. bool bringToBack;
  12126. bool bringToFront;
  12127. /* readonly */
  12128. String category;
  12129. /* readonly */
  12130. IntVector2 childOffset;
  12131. /* readonly */
  12132. Array<UIElement> children;
  12133. IntRect clipBorder;
  12134. bool clipChildren;
  12135. /* writeonly */
  12136. Color color;
  12137. /* readonly */
  12138. bool colorGradient;
  12139. Array<Color> colors;
  12140. /* readonly */
  12141. IntRect combinedScreenRect;
  12142. XMLFile defaultStyle;
  12143. /* readonly */
  12144. float derivedOpacity;
  12145. /* readonly */
  12146. uint dragButtonCombo;
  12147. /* readonly */
  12148. int dragButtonCount;
  12149. uint dragDropMode;
  12150. bool editable;
  12151. bool elementEventSender;
  12152. bool enabled;
  12153. /* readonly */
  12154. bool enabledSelf;
  12155. /* readonly */
  12156. bool fixedHeight;
  12157. /* readonly */
  12158. bool fixedSize;
  12159. /* readonly */
  12160. bool fixedWidth;
  12161. bool focus;
  12162. FocusMode focusMode;
  12163. int height;
  12164. HorizontalAlignment horizontalAlignment;
  12165. /* readonly */
  12166. bool hovering;
  12167. int indent;
  12168. int indentSpacing;
  12169. /* readonly */
  12170. int indentWidth;
  12171. bool internal;
  12172. IntRect layoutBorder;
  12173. Vector2 layoutFlexScale;
  12174. LayoutMode layoutMode;
  12175. int layoutSpacing;
  12176. int maxHeight;
  12177. IntVector2 maxSize;
  12178. int maxWidth;
  12179. int minHeight;
  12180. IntVector2 minSize;
  12181. int minWidth;
  12182. String name;
  12183. /* readonly */
  12184. uint numAllChildren;
  12185. /* readonly */
  12186. uint numAttributes;
  12187. /* readonly */
  12188. uint numChildren;
  12189. ObjectAnimation objectAnimation;
  12190. float opacity;
  12191. UIElement parent;
  12192. IntVector2 position;
  12193. int priority;
  12194. /* readonly */
  12195. int refs;
  12196. /* readonly */
  12197. UIElement root;
  12198. /* readonly */
  12199. IntVector2 screenPosition;
  12200. bool selected;
  12201. IntVector2 size;
  12202. bool sortChildren;
  12203. String style;
  12204. /* readonly */
  12205. Array<String> tags;
  12206. bool temporary;
  12207. TraversalMode traversalMode;
  12208. /* readonly */
  12209. StringHash type;
  12210. /* readonly */
  12211. String typeName;
  12212. bool useDerivedOpacity;
  12213. /* readonly */
  12214. VariantMap vars;
  12215. VerticalAlignment verticalAlignment;
  12216. bool visible;
  12217. /* readonly */
  12218. bool visibleEffective;
  12219. /* readonly */
  12220. int weakRefs;
  12221. int width;
  12222. };
  12223. class ValueAnimation
  12224. {
  12225. // Methods:
  12226. bool HasSubscribedToEvent(Object, const String&);
  12227. bool HasSubscribedToEvent(const String&);
  12228. bool Load(File);
  12229. bool Load(VectorBuffer&);
  12230. bool Save(File) const;
  12231. bool Save(VectorBuffer&) const;
  12232. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12233. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12234. void SetKeyFrame(float, const Variant&);
  12235. // Properties:
  12236. /* readonly */
  12237. String category;
  12238. InterpMethod interpolationMethod;
  12239. /* readonly */
  12240. uint memoryUse;
  12241. String name;
  12242. /* readonly */
  12243. int refs;
  12244. float splineTension;
  12245. /* readonly */
  12246. StringHash type;
  12247. /* readonly */
  12248. String typeName;
  12249. /* readonly */
  12250. uint useTimer;
  12251. VariantType valueType;
  12252. /* readonly */
  12253. int weakRefs;
  12254. };
  12255. class Variant
  12256. {
  12257. // Methods:
  12258. void Clear();
  12259. const Color& GetColor() const;
  12260. void FromString(VariantType, const String&);
  12261. void FromString(const String&, const String&);
  12262. bool GetBool() const;
  12263. VectorBuffer GetBuffer() const;
  12264. double GetDouble() const;
  12265. float GetFloat() const;
  12266. int GetInt() const;
  12267. RefCounted GetPtr() const;
  12268. ScriptObject GetScriptObject() const;
  12269. StringHash GetStringHash() const;
  12270. Array<String> GetStringVector() const;
  12271. uint GetUInt() const;
  12272. Array<Variant> GetVariantVector() const;
  12273. const IntRect& GetIntRect() const;
  12274. const IntVector2& GetIntVector2() const;
  12275. const Matrix3& GetMatrix3() const;
  12276. const Matrix3x4& GetMatrix3x4() const;
  12277. const Matrix4& GetMatrix4() const;
  12278. const Quaternion& GetQuaternion() const;
  12279. const ResourceRef& GetResourceRef() const;
  12280. const ResourceRefList& GetResourceRefList() const;
  12281. const String& GetString() const;
  12282. String ToString() const;
  12283. const VariantMap& GetVariantMap() const;
  12284. const Vector2& GetVector2() const;
  12285. const Vector3& GetVector3() const;
  12286. const Vector4& GetVector4() const;
  12287. // Properties:
  12288. /* readonly */
  12289. bool empty;
  12290. /* readonly */
  12291. VariantType type;
  12292. /* readonly */
  12293. String typeName;
  12294. /* readonly */
  12295. bool zero;
  12296. };
  12297. class VariantMap
  12298. {
  12299. // Methods:
  12300. void Clear();
  12301. bool Contains(StringHash) const;
  12302. bool Contains(const String&) const;
  12303. bool Erase(StringHash);
  12304. bool Erase(const String&);
  12305. // Properties:
  12306. /* readonly */
  12307. Array<StringHash> keys;
  12308. /* readonly */
  12309. uint length;
  12310. /* readonly */
  12311. Array<Variant> values;
  12312. };
  12313. class Vector2
  12314. {
  12315. // Methods:
  12316. Vector2 Abs() const;
  12317. float AbsDotProduct(const Vector2&) const;
  12318. float Angle(const Vector2&) const;
  12319. float DotProduct(const Vector2&) const;
  12320. bool Equals(const Vector2&) const;
  12321. bool IsNaN() const;
  12322. Vector2 Lerp(const Vector2&, float) const;
  12323. void Normalize();
  12324. Vector2 Normalized() const;
  12325. String ToString() const;
  12326. // Properties:
  12327. /* readonly */
  12328. Array<float> data;
  12329. /* readonly */
  12330. float length;
  12331. /* readonly */
  12332. float lengthSquared;
  12333. float x;
  12334. float y;
  12335. };
  12336. class Vector3
  12337. {
  12338. // Methods:
  12339. Vector3 Abs() const;
  12340. float AbsDotProduct(const Vector3&) const;
  12341. float Angle(const Vector3&) const;
  12342. Vector3 CrossProduct(const Vector3&) const;
  12343. float DotProduct(const Vector3&) const;
  12344. bool Equals(const Vector3&) const;
  12345. bool IsNaN() const;
  12346. Vector3 Lerp(const Vector3&, float) const;
  12347. void Normalize();
  12348. Vector3 Normalized() const;
  12349. String ToString() const;
  12350. // Properties:
  12351. /* readonly */
  12352. Array<float> data;
  12353. /* readonly */
  12354. float length;
  12355. /* readonly */
  12356. float lengthSquared;
  12357. float x;
  12358. float y;
  12359. float z;
  12360. };
  12361. class Vector4
  12362. {
  12363. // Methods:
  12364. Vector4 Abs() const;
  12365. float AbsDotProduct(const Vector4&) const;
  12366. float DotProduct(const Vector4&) const;
  12367. bool Equals(const Vector4&) const;
  12368. bool IsNaN() const;
  12369. Vector4 Lerp(const Vector4&, float) const;
  12370. String ToString() const;
  12371. // Properties:
  12372. /* readonly */
  12373. Array<float> data;
  12374. float w;
  12375. float x;
  12376. float y;
  12377. float z;
  12378. };
  12379. class VectorBuffer
  12380. {
  12381. // Methods:
  12382. void Clear();
  12383. Array<uint8> Read(uint);
  12384. bool ReadBool();
  12385. BoundingBox ReadBoundingBox();
  12386. int8 ReadByte();
  12387. Color ReadColor();
  12388. double ReadDouble();
  12389. String ReadFileID();
  12390. float ReadFloat();
  12391. int ReadInt();
  12392. IntRect ReadIntRect();
  12393. IntVector2 ReadIntVector2();
  12394. String ReadLine();
  12395. Matrix3 ReadMatrix3();
  12396. Matrix3x4 ReadMatrix3x4();
  12397. Matrix4 ReadMatrix4();
  12398. uint ReadNetID();
  12399. Quaternion ReadPackedQuaternion();
  12400. Vector3 ReadPackedVector3(float);
  12401. Quaternion ReadQuaternion();
  12402. int16 ReadShort();
  12403. String ReadString();
  12404. StringHash ReadStringHash();
  12405. uint8 ReadUByte();
  12406. uint ReadUInt();
  12407. uint16 ReadUShort();
  12408. uint ReadVLE();
  12409. Variant ReadVariant();
  12410. VariantMap ReadVariantMap();
  12411. Vector2 ReadVector2();
  12412. Vector3 ReadVector3();
  12413. Vector4 ReadVector4();
  12414. VectorBuffer ReadVectorBuffer(uint);
  12415. void Resize(uint);
  12416. uint Seek(uint);
  12417. void SetData(Deserializer, uint);
  12418. uint Write(Array<uint8>);
  12419. bool WriteBool(bool);
  12420. bool WriteBoundingBox(const BoundingBox&);
  12421. bool WriteByte(int8);
  12422. bool WriteColor(const Color&);
  12423. bool WriteDouble(double);
  12424. bool WriteFileID(const String&);
  12425. bool WriteFloat(float);
  12426. bool WriteInt(int);
  12427. bool WriteIntRect(const IntRect&);
  12428. bool WriteIntVector2(const IntVector2&);
  12429. bool WriteLine(const String&);
  12430. bool WriteMatrix3(const Matrix3&);
  12431. bool WriteMatrix3x4(const Matrix3x4&);
  12432. bool WriteMatrix4(const Matrix4&);
  12433. bool WriteNetID(uint);
  12434. bool WritePackedQuaternion(const Quaternion&);
  12435. bool WritePackedVector3(const Vector3&, float);
  12436. bool WriteQuaternion(const Quaternion&);
  12437. bool WriteShort(int16);
  12438. bool WriteString(const String&);
  12439. bool WriteStringHash(const StringHash&);
  12440. bool WriteUByte(uint8);
  12441. bool WriteUInt(uint);
  12442. bool WriteUShort(uint16);
  12443. bool WriteVLE(uint);
  12444. bool WriteVariant(const Variant&);
  12445. bool WriteVariantMap(const VariantMap&);
  12446. bool WriteVector2(const Vector2&);
  12447. bool WriteVector3(const Vector3&);
  12448. bool WriteVector4(const Vector4&);
  12449. bool WriteVectorBuffer(const VectorBuffer&);
  12450. // Properties:
  12451. /* readonly */
  12452. uint checksum;
  12453. /* readonly */
  12454. bool eof;
  12455. /* readonly */
  12456. String name;
  12457. /* readonly */
  12458. uint position;
  12459. /* readonly */
  12460. uint size;
  12461. };
  12462. class VertexBuffer
  12463. {
  12464. // Methods:
  12465. VectorBuffer GetData() const;
  12466. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  12467. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12468. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  12469. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12470. bool HasSubscribedToEvent(Object, const String&);
  12471. bool HasSubscribedToEvent(const String&);
  12472. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12473. bool SetData(VectorBuffer&);
  12474. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12475. void SetSize(uint, Array<VertexElement>, bool = false);
  12476. void SetSize(uint, uint, bool = false);
  12477. // Properties:
  12478. /* readonly */
  12479. String category;
  12480. /* readonly */
  12481. bool dynamic;
  12482. /* readonly */
  12483. uint elementMask;
  12484. /* readonly */
  12485. Array<VertexElement> elements;
  12486. /* readonly */
  12487. int refs;
  12488. bool shadowed;
  12489. /* readonly */
  12490. StringHash type;
  12491. /* readonly */
  12492. String typeName;
  12493. /* readonly */
  12494. uint vertexCount;
  12495. /* readonly */
  12496. uint vertexSize;
  12497. /* readonly */
  12498. int weakRefs;
  12499. };
  12500. class VertexElement
  12501. {
  12502. // Properties:
  12503. uint8 index;
  12504. uint offset;
  12505. bool perInstance;
  12506. VertexElementSemantic semantic;
  12507. VertexElementType type;
  12508. };
  12509. class View3D
  12510. {
  12511. // Methods:
  12512. void AddChild(UIElement);
  12513. void AddTag(const String&);
  12514. void AddTags(const String&, int8 = ';');
  12515. void ApplyAttributes();
  12516. void BringToFront();
  12517. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12518. void DisableLayoutUpdate();
  12519. IntVector2 ElementToScreen(const IntVector2&);
  12520. void EnableLayoutUpdate();
  12521. uint FindChild(UIElement) const;
  12522. Variant GetAttribute(const String&) const;
  12523. ValueAnimation GetAttributeAnimation(const String&) const;
  12524. float GetAttributeAnimationSpeed(const String&) const;
  12525. float GetAttributeAnimationTime(const String&) const;
  12526. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12527. Variant GetAttributeDefault(const String&) const;
  12528. UIElement GetChild(const String&, bool = false) const;
  12529. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12530. Array<UIElement> GetChildren(bool = false) const;
  12531. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12532. UIElement GetElementEventSender() const;
  12533. bool GetInterceptNetworkUpdate(const String&) const;
  12534. uint GetNumChildren(bool) const;
  12535. bool HasSubscribedToEvent(Object, const String&);
  12536. bool HasSubscribedToEvent(const String&);
  12537. bool HasTag(const String&) const;
  12538. void InsertChild(uint, UIElement);
  12539. bool IsInside(IntVector2, bool);
  12540. bool IsInsideCombined(IntVector2, bool);
  12541. bool Load(File, bool = false);
  12542. bool Load(VectorBuffer&, bool = false);
  12543. bool LoadChildXML(XMLFile, XMLFile = null);
  12544. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12545. bool LoadJSON(const JSONValue&, bool = false);
  12546. bool LoadXML(File);
  12547. bool LoadXML(VectorBuffer&);
  12548. bool LoadXML(XMLFile, XMLFile);
  12549. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12550. bool LoadXML(const XMLElement&, bool = false);
  12551. void MarkNetworkUpdate() const;
  12552. void QueueUpdate();
  12553. void Remove();
  12554. void RemoveAllChildren();
  12555. void RemoveAllTags();
  12556. void RemoveAttributeAnimation(const String&);
  12557. void RemoveChild(UIElement, uint = 0);
  12558. void RemoveChild(uint);
  12559. void RemoveInstanceDefault();
  12560. void RemoveObjectAnimation();
  12561. bool RemoveTag(const String&);
  12562. void ResetDeepEnabled();
  12563. void ResetToDefault();
  12564. bool Save(File) const;
  12565. bool Save(VectorBuffer&) const;
  12566. bool SaveJSON(JSONValue&) const;
  12567. bool SaveXML(File, const String& = "\t");
  12568. bool SaveXML(VectorBuffer&, const String& = "\t");
  12569. bool SaveXML(XMLElement&) const;
  12570. IntVector2 ScreenToElement(const IntVector2&);
  12571. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12572. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12573. void SetAnimationTime(float);
  12574. bool SetAttribute(const String&, const Variant&);
  12575. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12576. void SetAttributeAnimationSpeed(const String&, float);
  12577. void SetAttributeAnimationTime(const String&, float);
  12578. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12579. void SetDeepEnabled(bool);
  12580. void SetEnabledRecursive(bool);
  12581. void SetFixedHeight(int);
  12582. void SetFixedSize(int, int);
  12583. void SetFixedWidth(int);
  12584. void SetFullImageRect();
  12585. void SetHoverOffset(int, int);
  12586. void SetInterceptNetworkUpdate(const String&, bool);
  12587. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12588. void SetMaxSize(int, int);
  12589. void SetMinSize(int, int);
  12590. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12591. void SetPosition(int, int);
  12592. void SetSize(int, int);
  12593. bool SetStyle(const String&, XMLFile = null);
  12594. bool SetStyle(const XMLElement&);
  12595. bool SetStyleAuto(XMLFile = null);
  12596. void SetView(Scene, Camera, bool = true);
  12597. void UpdateLayout();
  12598. const Variant& GetVar(const StringHash&);
  12599. // Properties:
  12600. bool animationEnabled;
  12601. /* readonly */
  12602. Array<Variant> attributeDefaults;
  12603. /* readonly */
  12604. Array<AttributeInfo> attributeInfos;
  12605. Array<Variant> attributes;
  12606. bool autoUpdate;
  12607. BlendMode blendMode;
  12608. IntRect border;
  12609. bool bringToBack;
  12610. bool bringToFront;
  12611. /* readonly */
  12612. Node cameraNode;
  12613. /* readonly */
  12614. String category;
  12615. /* readonly */
  12616. IntVector2 childOffset;
  12617. /* readonly */
  12618. Array<UIElement> children;
  12619. IntRect clipBorder;
  12620. bool clipChildren;
  12621. /* writeonly */
  12622. Color color;
  12623. /* readonly */
  12624. bool colorGradient;
  12625. Array<Color> colors;
  12626. /* readonly */
  12627. IntRect combinedScreenRect;
  12628. XMLFile defaultStyle;
  12629. /* readonly */
  12630. Texture2D depthTexture;
  12631. /* readonly */
  12632. float derivedOpacity;
  12633. /* readonly */
  12634. uint dragButtonCombo;
  12635. /* readonly */
  12636. int dragButtonCount;
  12637. uint dragDropMode;
  12638. bool editable;
  12639. bool elementEventSender;
  12640. bool enabled;
  12641. /* readonly */
  12642. bool enabledSelf;
  12643. /* readonly */
  12644. bool fixedHeight;
  12645. bool fixedHeightResizing;
  12646. /* readonly */
  12647. bool fixedSize;
  12648. /* readonly */
  12649. bool fixedWidth;
  12650. bool fixedWidthResizing;
  12651. bool focus;
  12652. FocusMode focusMode;
  12653. uint format;
  12654. int height;
  12655. HorizontalAlignment horizontalAlignment;
  12656. IntVector2 hoverOffset;
  12657. /* readonly */
  12658. bool hovering;
  12659. IntRect imageBorder;
  12660. IntRect imageRect;
  12661. int indent;
  12662. int indentSpacing;
  12663. /* readonly */
  12664. int indentWidth;
  12665. bool internal;
  12666. IntRect layoutBorder;
  12667. Vector2 layoutFlexScale;
  12668. LayoutMode layoutMode;
  12669. int layoutSpacing;
  12670. int maxHeight;
  12671. IntVector2 maxSize;
  12672. int maxWidth;
  12673. int minHeight;
  12674. IntVector2 minSize;
  12675. int minWidth;
  12676. bool modal;
  12677. bool modalAutoDismiss;
  12678. Color modalFrameColor;
  12679. IntVector2 modalFrameSize;
  12680. Color modalShadeColor;
  12681. bool movable;
  12682. String name;
  12683. /* readonly */
  12684. uint numAllChildren;
  12685. /* readonly */
  12686. uint numAttributes;
  12687. /* readonly */
  12688. uint numChildren;
  12689. ObjectAnimation objectAnimation;
  12690. float opacity;
  12691. UIElement parent;
  12692. IntVector2 position;
  12693. int priority;
  12694. /* readonly */
  12695. int refs;
  12696. /* readonly */
  12697. Texture2D renderTexture;
  12698. bool resizable;
  12699. IntRect resizeBorder;
  12700. /* readonly */
  12701. UIElement root;
  12702. /* readonly */
  12703. Scene scene;
  12704. /* readonly */
  12705. IntVector2 screenPosition;
  12706. bool selected;
  12707. IntVector2 size;
  12708. bool sortChildren;
  12709. String style;
  12710. /* readonly */
  12711. Array<String> tags;
  12712. bool temporary;
  12713. Texture texture;
  12714. bool tiled;
  12715. TraversalMode traversalMode;
  12716. /* readonly */
  12717. StringHash type;
  12718. /* readonly */
  12719. String typeName;
  12720. bool useDerivedOpacity;
  12721. /* readonly */
  12722. VariantMap vars;
  12723. VerticalAlignment verticalAlignment;
  12724. /* readonly */
  12725. Viewport viewport;
  12726. bool visible;
  12727. /* readonly */
  12728. bool visibleEffective;
  12729. /* readonly */
  12730. int weakRefs;
  12731. int width;
  12732. };
  12733. class Viewport
  12734. {
  12735. // Methods:
  12736. Ray GetScreenRay(int, int) const;
  12737. bool HasSubscribedToEvent(Object, const String&);
  12738. bool HasSubscribedToEvent(const String&);
  12739. Vector3 ScreenToWorldPoint(int, int, float) const;
  12740. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12741. void SetRenderPath(XMLFile);
  12742. Vector2 WorldToScreenPoint(const Vector3&) const;
  12743. // Properties:
  12744. Camera camera;
  12745. /* readonly */
  12746. String category;
  12747. Camera cullCamera;
  12748. bool drawDebug;
  12749. IntRect rect;
  12750. /* readonly */
  12751. int refs;
  12752. RenderPath renderPath;
  12753. Scene scene;
  12754. /* readonly */
  12755. StringHash type;
  12756. /* readonly */
  12757. String typeName;
  12758. /* readonly */
  12759. int weakRefs;
  12760. };
  12761. class WeakHandle
  12762. {
  12763. // Methods:
  12764. RefCounted Get() const;
  12765. // Properties:
  12766. /* readonly */
  12767. bool expired;
  12768. /* readonly */
  12769. int refs;
  12770. /* readonly */
  12771. int weakRefs;
  12772. };
  12773. class Window
  12774. {
  12775. // Methods:
  12776. void AddChild(UIElement);
  12777. void AddTag(const String&);
  12778. void AddTags(const String&, int8 = ';');
  12779. void ApplyAttributes();
  12780. void BringToFront();
  12781. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12782. void DisableLayoutUpdate();
  12783. IntVector2 ElementToScreen(const IntVector2&);
  12784. void EnableLayoutUpdate();
  12785. uint FindChild(UIElement) const;
  12786. Variant GetAttribute(const String&) const;
  12787. ValueAnimation GetAttributeAnimation(const String&) const;
  12788. float GetAttributeAnimationSpeed(const String&) const;
  12789. float GetAttributeAnimationTime(const String&) const;
  12790. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12791. Variant GetAttributeDefault(const String&) const;
  12792. UIElement GetChild(const String&, bool = false) const;
  12793. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12794. Array<UIElement> GetChildren(bool = false) const;
  12795. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12796. UIElement GetElementEventSender() const;
  12797. bool GetInterceptNetworkUpdate(const String&) const;
  12798. uint GetNumChildren(bool) const;
  12799. bool HasSubscribedToEvent(Object, const String&);
  12800. bool HasSubscribedToEvent(const String&);
  12801. bool HasTag(const String&) const;
  12802. void InsertChild(uint, UIElement);
  12803. bool IsInside(IntVector2, bool);
  12804. bool IsInsideCombined(IntVector2, bool);
  12805. bool Load(File, bool = false);
  12806. bool Load(VectorBuffer&, bool = false);
  12807. bool LoadChildXML(XMLFile, XMLFile = null);
  12808. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12809. bool LoadJSON(const JSONValue&, bool = false);
  12810. bool LoadXML(File);
  12811. bool LoadXML(VectorBuffer&);
  12812. bool LoadXML(XMLFile, XMLFile);
  12813. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12814. bool LoadXML(const XMLElement&, bool = false);
  12815. void MarkNetworkUpdate() const;
  12816. void Remove();
  12817. void RemoveAllChildren();
  12818. void RemoveAllTags();
  12819. void RemoveAttributeAnimation(const String&);
  12820. void RemoveChild(UIElement, uint = 0);
  12821. void RemoveChild(uint);
  12822. void RemoveInstanceDefault();
  12823. void RemoveObjectAnimation();
  12824. bool RemoveTag(const String&);
  12825. void ResetDeepEnabled();
  12826. void ResetToDefault();
  12827. bool Save(File) const;
  12828. bool Save(VectorBuffer&) const;
  12829. bool SaveJSON(JSONValue&) const;
  12830. bool SaveXML(File, const String& = "\t");
  12831. bool SaveXML(VectorBuffer&, const String& = "\t");
  12832. bool SaveXML(XMLElement&) const;
  12833. IntVector2 ScreenToElement(const IntVector2&);
  12834. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12835. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12836. void SetAnimationTime(float);
  12837. bool SetAttribute(const String&, const Variant&);
  12838. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12839. void SetAttributeAnimationSpeed(const String&, float);
  12840. void SetAttributeAnimationTime(const String&, float);
  12841. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12842. void SetDeepEnabled(bool);
  12843. void SetEnabledRecursive(bool);
  12844. void SetFixedHeight(int);
  12845. void SetFixedSize(int, int);
  12846. void SetFixedWidth(int);
  12847. void SetFullImageRect();
  12848. void SetHoverOffset(int, int);
  12849. void SetInterceptNetworkUpdate(const String&, bool);
  12850. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12851. void SetMaxSize(int, int);
  12852. void SetMinSize(int, int);
  12853. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12854. void SetPosition(int, int);
  12855. void SetSize(int, int);
  12856. bool SetStyle(const String&, XMLFile = null);
  12857. bool SetStyle(const XMLElement&);
  12858. bool SetStyleAuto(XMLFile = null);
  12859. void UpdateLayout();
  12860. const Variant& GetVar(const StringHash&);
  12861. // Properties:
  12862. bool animationEnabled;
  12863. /* readonly */
  12864. Array<Variant> attributeDefaults;
  12865. /* readonly */
  12866. Array<AttributeInfo> attributeInfos;
  12867. Array<Variant> attributes;
  12868. BlendMode blendMode;
  12869. IntRect border;
  12870. bool bringToBack;
  12871. bool bringToFront;
  12872. /* readonly */
  12873. String category;
  12874. /* readonly */
  12875. IntVector2 childOffset;
  12876. /* readonly */
  12877. Array<UIElement> children;
  12878. IntRect clipBorder;
  12879. bool clipChildren;
  12880. /* writeonly */
  12881. Color color;
  12882. /* readonly */
  12883. bool colorGradient;
  12884. Array<Color> colors;
  12885. /* readonly */
  12886. IntRect combinedScreenRect;
  12887. XMLFile defaultStyle;
  12888. /* readonly */
  12889. float derivedOpacity;
  12890. /* readonly */
  12891. uint dragButtonCombo;
  12892. /* readonly */
  12893. int dragButtonCount;
  12894. uint dragDropMode;
  12895. bool editable;
  12896. bool elementEventSender;
  12897. bool enabled;
  12898. /* readonly */
  12899. bool enabledSelf;
  12900. /* readonly */
  12901. bool fixedHeight;
  12902. bool fixedHeightResizing;
  12903. /* readonly */
  12904. bool fixedSize;
  12905. /* readonly */
  12906. bool fixedWidth;
  12907. bool fixedWidthResizing;
  12908. bool focus;
  12909. FocusMode focusMode;
  12910. int height;
  12911. HorizontalAlignment horizontalAlignment;
  12912. IntVector2 hoverOffset;
  12913. /* readonly */
  12914. bool hovering;
  12915. IntRect imageBorder;
  12916. IntRect imageRect;
  12917. int indent;
  12918. int indentSpacing;
  12919. /* readonly */
  12920. int indentWidth;
  12921. bool internal;
  12922. IntRect layoutBorder;
  12923. Vector2 layoutFlexScale;
  12924. LayoutMode layoutMode;
  12925. int layoutSpacing;
  12926. int maxHeight;
  12927. IntVector2 maxSize;
  12928. int maxWidth;
  12929. int minHeight;
  12930. IntVector2 minSize;
  12931. int minWidth;
  12932. bool modal;
  12933. bool modalAutoDismiss;
  12934. Color modalFrameColor;
  12935. IntVector2 modalFrameSize;
  12936. Color modalShadeColor;
  12937. bool movable;
  12938. String name;
  12939. /* readonly */
  12940. uint numAllChildren;
  12941. /* readonly */
  12942. uint numAttributes;
  12943. /* readonly */
  12944. uint numChildren;
  12945. ObjectAnimation objectAnimation;
  12946. float opacity;
  12947. UIElement parent;
  12948. IntVector2 position;
  12949. int priority;
  12950. /* readonly */
  12951. int refs;
  12952. bool resizable;
  12953. IntRect resizeBorder;
  12954. /* readonly */
  12955. UIElement root;
  12956. /* readonly */
  12957. IntVector2 screenPosition;
  12958. bool selected;
  12959. IntVector2 size;
  12960. bool sortChildren;
  12961. String style;
  12962. /* readonly */
  12963. Array<String> tags;
  12964. bool temporary;
  12965. Texture texture;
  12966. bool tiled;
  12967. TraversalMode traversalMode;
  12968. /* readonly */
  12969. StringHash type;
  12970. /* readonly */
  12971. String typeName;
  12972. bool useDerivedOpacity;
  12973. /* readonly */
  12974. VariantMap vars;
  12975. VerticalAlignment verticalAlignment;
  12976. bool visible;
  12977. /* readonly */
  12978. bool visibleEffective;
  12979. /* readonly */
  12980. int weakRefs;
  12981. int width;
  12982. };
  12983. class XMLElement
  12984. {
  12985. // Methods:
  12986. XMLElement CreateChild(const String&);
  12987. String GetAttribute(const String& = String ( )) const;
  12988. String GetAttributeLower(const String&) const;
  12989. Array<String> GetAttributeNames() const;
  12990. String GetAttributeUpper(const String&) const;
  12991. bool GetBool(const String&) const;
  12992. BoundingBox GetBoundingBox() const;
  12993. XMLElement GetChild(const String& = String ( )) const;
  12994. Color GetColor(const String&) const;
  12995. double GetDouble(const String&) const;
  12996. float GetFloat(const String&) const;
  12997. int GetInt(const String&) const;
  12998. IntRect GetIntRect(const String&) const;
  12999. IntVector2 GetIntVector2(const String&) const;
  13000. Matrix3 GetMatrix3(const String&) const;
  13001. Matrix3x4 GetMatrix3x4(const String&) const;
  13002. Matrix4 GetMatrix4(const String&) const;
  13003. XMLElement GetNext(const String& = String ( )) const;
  13004. Quaternion GetQuaternion(const String&) const;
  13005. ResourceRef GetResourceRef() const;
  13006. ResourceRefList GetResourceRefList() const;
  13007. uint GetUInt(const String&) const;
  13008. String GetValue() const;
  13009. Variant GetVariant() const;
  13010. VariantMap GetVariantMap() const;
  13011. Array<Variant> GetVariantVector() const;
  13012. Vector2 GetVector2(const String&) const;
  13013. Vector3 GetVector3(const String&) const;
  13014. Vector4 GetVector4(const String&) const;
  13015. Variant GetVectorVariant(const String&) const;
  13016. bool HasAttribute(const String&) const;
  13017. bool HasChild(const String&) const;
  13018. bool RemoveAttribute(const String& = String ( ));
  13019. bool RemoveChild(const String&);
  13020. bool RemoveChild(const XMLElement&);
  13021. bool RemoveChildren(const String& = String ( ));
  13022. XPathResultSet Select(const String&);
  13023. XPathResultSet SelectPrepared(const XPathQuery&);
  13024. XMLElement SelectSingle(const String&);
  13025. XMLElement SelectSinglePrepared(const XPathQuery&);
  13026. bool SetAttribute(const String&);
  13027. bool SetAttribute(const String&, const String&);
  13028. bool SetBool(const String&, bool);
  13029. bool SetBoundingBox(const BoundingBox&);
  13030. bool SetColor(const String&, const Color&);
  13031. bool SetDouble(const String&, double);
  13032. bool SetFloat(const String&, float);
  13033. bool SetInt(const String&, int);
  13034. bool SetIntRect(const String&, const IntRect&);
  13035. bool SetIntVector2(const String&, const IntVector2&);
  13036. bool SetMatrix3(const String&, const Matrix3&);
  13037. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13038. bool SetMatrix4(const String&, const Matrix4&);
  13039. bool SetQuaternion(const String&, const Quaternion&);
  13040. bool SetResourceRef(const String&, const ResourceRef&);
  13041. bool SetResourceRefList(const String&, const ResourceRefList&);
  13042. bool SetUInt(const String&, uint);
  13043. bool SetValue(const String&);
  13044. bool SetVariant(const Variant&);
  13045. bool SetVariantMap(const VariantMap&);
  13046. bool SetVariantVector(Array<Variant>);
  13047. bool SetVector2(const String&, const Vector2&);
  13048. bool SetVector3(const String&, const Vector3&);
  13049. bool SetVector4(const String&, const Vector4&);
  13050. bool SetVectorVariant(const String&, const Variant&);
  13051. // Properties:
  13052. /* readonly */
  13053. XMLFile file;
  13054. /* readonly */
  13055. bool isNull;
  13056. /* readonly */
  13057. String name;
  13058. /* readonly */
  13059. XMLElement nextResult;
  13060. /* readonly */
  13061. bool notNull;
  13062. /* readonly */
  13063. uint numAttributes;
  13064. /* readonly */
  13065. XMLElement parent;
  13066. String value;
  13067. };
  13068. class XMLFile
  13069. {
  13070. // Methods:
  13071. XMLElement CreateRoot(const String&);
  13072. bool FromString(const String&);
  13073. XMLElement GetRoot(const String& = String ( ));
  13074. bool HasSubscribedToEvent(Object, const String&);
  13075. bool HasSubscribedToEvent(const String&);
  13076. bool Load(File);
  13077. bool Load(VectorBuffer&);
  13078. void Patch(XMLElement);
  13079. void Patch(XMLFile);
  13080. bool Save(File) const;
  13081. bool Save(File, const String&) const;
  13082. bool Save(VectorBuffer&) const;
  13083. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13084. String ToString(const String& = String ( "\t" )) const;
  13085. // Properties:
  13086. /* readonly */
  13087. String category;
  13088. /* readonly */
  13089. uint memoryUse;
  13090. String name;
  13091. /* readonly */
  13092. int refs;
  13093. /* readonly */
  13094. XMLElement root;
  13095. /* readonly */
  13096. StringHash type;
  13097. /* readonly */
  13098. String typeName;
  13099. /* readonly */
  13100. uint useTimer;
  13101. /* readonly */
  13102. int weakRefs;
  13103. };
  13104. class XPathQuery
  13105. {
  13106. // Methods:
  13107. void Bind();
  13108. void Clear();
  13109. XPathResultSet Evaluate(XMLElement);
  13110. bool EvaluateToBool(XMLElement);
  13111. float EvaluateToFloat(XMLElement);
  13112. String EvaluateToString(XMLElement);
  13113. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13114. bool SetVariable(const String&, bool);
  13115. bool SetVariable(const String&, const String&);
  13116. bool SetVariable(const String&, const XPathResultSet&);
  13117. bool SetVariable(const String&, float);
  13118. // Properties:
  13119. String query;
  13120. };
  13121. class XPathResultSet
  13122. {
  13123. // Properties:
  13124. /* readonly */
  13125. bool empty;
  13126. /* readonly */
  13127. XMLElement firstResult;
  13128. /* readonly */
  13129. uint size;
  13130. };
  13131. class Zone
  13132. {
  13133. // Methods:
  13134. void ApplyAttributes();
  13135. void DrawDebugGeometry(DebugRenderer, bool);
  13136. Variant GetAttribute(const String&) const;
  13137. ValueAnimation GetAttributeAnimation(const String&) const;
  13138. float GetAttributeAnimationSpeed(const String&) const;
  13139. float GetAttributeAnimationTime(const String&) const;
  13140. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13141. Variant GetAttributeDefault(const String&) const;
  13142. bool GetInterceptNetworkUpdate(const String&) const;
  13143. bool HasSubscribedToEvent(Object, const String&);
  13144. bool HasSubscribedToEvent(const String&);
  13145. bool IsInView(Camera) const;
  13146. bool Load(File, bool = false);
  13147. bool Load(VectorBuffer&, bool = false);
  13148. bool LoadJSON(const JSONValue&, bool = false);
  13149. bool LoadXML(const XMLElement&, bool = false);
  13150. void MarkNetworkUpdate() const;
  13151. void Remove();
  13152. void RemoveAttributeAnimation(const String&);
  13153. void RemoveInstanceDefault();
  13154. void RemoveObjectAnimation();
  13155. void ResetToDefault();
  13156. bool Save(File) const;
  13157. bool Save(VectorBuffer&) const;
  13158. bool SaveJSON(JSONValue&) const;
  13159. bool SaveXML(XMLElement&) const;
  13160. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13161. void SetAnimationTime(float);
  13162. bool SetAttribute(const String&, const Variant&);
  13163. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13164. void SetAttributeAnimationSpeed(const String&, float);
  13165. void SetAttributeAnimationTime(const String&, float);
  13166. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13167. void SetInterceptNetworkUpdate(const String&, bool);
  13168. // Properties:
  13169. Color ambientColor;
  13170. /* readonly */
  13171. Color ambientEndColor;
  13172. bool ambientGradient;
  13173. /* readonly */
  13174. Color ambientStartColor;
  13175. bool animationEnabled;
  13176. /* readonly */
  13177. Array<Variant> attributeDefaults;
  13178. /* readonly */
  13179. Array<AttributeInfo> attributeInfos;
  13180. Array<Variant> attributes;
  13181. BoundingBox boundingBox;
  13182. bool castShadows;
  13183. /* readonly */
  13184. String category;
  13185. float drawDistance;
  13186. bool enabled;
  13187. /* readonly */
  13188. bool enabledEffective;
  13189. Color fogColor;
  13190. float fogEnd;
  13191. float fogHeight;
  13192. float fogHeightScale;
  13193. float fogStart;
  13194. bool heightFog;
  13195. /* readonly */
  13196. uint id;
  13197. /* readonly */
  13198. bool inView;
  13199. /* readonly */
  13200. Matrix3x4 inverseWorldTransform;
  13201. uint lightMask;
  13202. float lodBias;
  13203. uint maxLights;
  13204. /* readonly */
  13205. Node node;
  13206. /* readonly */
  13207. uint numAttributes;
  13208. ObjectAnimation objectAnimation;
  13209. bool occludee;
  13210. bool occluder;
  13211. bool override;
  13212. int priority;
  13213. /* readonly */
  13214. int refs;
  13215. float shadowDistance;
  13216. uint shadowMask;
  13217. bool temporary;
  13218. /* readonly */
  13219. StringHash type;
  13220. /* readonly */
  13221. String typeName;
  13222. uint viewMask;
  13223. /* readonly */
  13224. int weakRefs;
  13225. /* readonly */
  13226. BoundingBox worldBoundingBox;
  13227. uint zoneMask;
  13228. Texture zoneTexture;
  13229. };
  13230. // Enumerations
  13231. enum AnimationBlendMode
  13232. {
  13233. ABM_LERP,
  13234. ABM_ADDITIVE,
  13235. };
  13236. enum BlendMode
  13237. {
  13238. BLEND_REPLACE,
  13239. BLEND_ADD,
  13240. BLEND_MULTIPLY,
  13241. BLEND_ALPHA,
  13242. BLEND_ADDALPHA,
  13243. BLEND_PREMULALPHA,
  13244. BLEND_INVDESTALPHA,
  13245. BLEND_SUBTRACT,
  13246. BLEND_SUBTRACTALPHA,
  13247. };
  13248. enum BodyType2D
  13249. {
  13250. BT_STATIC,
  13251. BT_KINEMATIC,
  13252. BT_DYNAMIC,
  13253. };
  13254. enum CollisionEventMode
  13255. {
  13256. COLLISION_NEVER,
  13257. COLLISION_ACTIVE,
  13258. COLLISION_ALWAYS,
  13259. };
  13260. enum CompareMode
  13261. {
  13262. CMP_ALWAYS,
  13263. CMP_EQUAL,
  13264. CMP_NOTEQUAL,
  13265. CMP_LESS,
  13266. CMP_LESSEQUAL,
  13267. CMP_GREATER,
  13268. CMP_GREATEREQUAL,
  13269. };
  13270. enum CompressedFormat
  13271. {
  13272. CF_NONE,
  13273. CF_RGBA,
  13274. CF_DXT1,
  13275. CF_DXT3,
  13276. CF_DXT5,
  13277. CF_ETC1,
  13278. CF_PVRTC_RGB_2BPP,
  13279. CF_PVRTC_RGBA_2BPP,
  13280. CF_PVRTC_RGB_4BPP,
  13281. CF_PVRTC_RGBA_4BPP,
  13282. };
  13283. enum ConstraintType
  13284. {
  13285. CONSTRAINT_POINT,
  13286. CONSTRAINT_HINGE,
  13287. CONSTRAINT_SLIDER,
  13288. CONSTRAINT_CONETWIST,
  13289. };
  13290. enum Corner
  13291. {
  13292. C_TOPLEFT,
  13293. C_TOPRIGHT,
  13294. C_BOTTOMLEFT,
  13295. C_BOTTOMRIGHT,
  13296. };
  13297. enum CreateMode
  13298. {
  13299. REPLICATED,
  13300. LOCAL,
  13301. };
  13302. enum CrowdAgentRequestedTarget
  13303. {
  13304. CA_REQUESTEDTARGET_NONE,
  13305. CA_REQUESTEDTARGET_POSITION,
  13306. CA_REQUESTEDTARGET_VELOCITY,
  13307. };
  13308. enum CrowdAgentState
  13309. {
  13310. CA_STATE_INVALID,
  13311. CA_STATE_WALKING,
  13312. CA_STATE_OFFMESH,
  13313. };
  13314. enum CrowdAgentTargetState
  13315. {
  13316. CA_TARGET_NONE,
  13317. CA_TARGET_FAILED,
  13318. CA_TARGET_VALID,
  13319. CA_TARGET_REQUESTING,
  13320. CA_TARGET_WAITINGFORQUEUE,
  13321. CA_TARGET_WAITINGFORPATH,
  13322. CA_TARGET_VELOCITY,
  13323. };
  13324. enum CubeMapFace
  13325. {
  13326. FACE_POSITIVE_X,
  13327. FACE_NEGATIVE_X,
  13328. FACE_POSITIVE_Y,
  13329. FACE_NEGATIVE_Y,
  13330. FACE_POSITIVE_Z,
  13331. FACE_NEGATIVE_Z,
  13332. };
  13333. enum CullMode
  13334. {
  13335. CULL_NONE,
  13336. CULL_CCW,
  13337. CULL_CW,
  13338. };
  13339. enum CursorShape
  13340. {
  13341. CS_NORMAL,
  13342. CS_IBEAM,
  13343. CS_CROSS,
  13344. CS_RESIZEVERTICAL,
  13345. CS_RESIZEDIAGONAL_TOPRIGHT,
  13346. CS_RESIZEHORIZONTAL,
  13347. CS_RESIZEDIAGONAL_TOPLEFT,
  13348. CS_RESIZE_ALL,
  13349. CS_ACCEPTDROP,
  13350. CS_REJECTDROP,
  13351. CS_BUSY,
  13352. CS_BUSY_ARROW,
  13353. };
  13354. enum DBAPI
  13355. {
  13356. DBAPI_SQLITE,
  13357. DBAPI_ODBC,
  13358. };
  13359. enum DumpMode
  13360. {
  13361. DOXYGEN,
  13362. C_HEADER,
  13363. };
  13364. enum EmitterType
  13365. {
  13366. EMITTER_SPHERE,
  13367. EMITTER_BOX,
  13368. };
  13369. enum EmitterType2D
  13370. {
  13371. EMITTER_TYPE_GRAVITY,
  13372. EMITTER_TYPE_RADIAL,
  13373. };
  13374. enum FaceCameraMode
  13375. {
  13376. FC_NONE,
  13377. FC_ROTATE_XYZ,
  13378. FC_ROTATE_Y,
  13379. FC_LOOKAT_XYZ,
  13380. FC_LOOKAT_Y,
  13381. FC_DIRECTION,
  13382. };
  13383. enum FileMode
  13384. {
  13385. FILE_READ,
  13386. FILE_WRITE,
  13387. FILE_READWRITE,
  13388. };
  13389. enum FillMode
  13390. {
  13391. FILL_SOLID,
  13392. FILL_WIREFRAME,
  13393. FILL_POINT,
  13394. };
  13395. enum FocusMode
  13396. {
  13397. FM_NOTFOCUSABLE,
  13398. FM_RESETFOCUS,
  13399. FM_FOCUSABLE,
  13400. FM_FOCUSABLE_DEFOCUSABLE,
  13401. };
  13402. enum HighlightMode
  13403. {
  13404. HM_NEVER,
  13405. HM_FOCUS,
  13406. HM_ALWAYS,
  13407. };
  13408. enum HorizontalAlignment
  13409. {
  13410. HA_LEFT,
  13411. HA_CENTER,
  13412. HA_RIGHT,
  13413. };
  13414. enum HttpRequestState
  13415. {
  13416. HTTP_INITIALIZING,
  13417. HTTP_ERROR,
  13418. HTTP_OPEN,
  13419. HTTP_CLOSED,
  13420. };
  13421. enum InterpMethod
  13422. {
  13423. IM_LINEAR,
  13424. IM_SPLINE,
  13425. };
  13426. enum InterpolationMode
  13427. {
  13428. BEZIER_CURVE,
  13429. CATMULL_ROM_CURVE,
  13430. LINEAR_CURVE,
  13431. CATMULL_ROM_FULL_CURVE,
  13432. };
  13433. enum Intersection
  13434. {
  13435. OUTSIDE,
  13436. INTERSECTS,
  13437. INSIDE,
  13438. };
  13439. enum JSONValueType
  13440. {
  13441. JSON_NULL,
  13442. JSON_BOOL,
  13443. JSON_NUMBER,
  13444. JSON_STRING,
  13445. JSON_ARRAY,
  13446. JSON_OBJECT,
  13447. };
  13448. enum LayoutMode
  13449. {
  13450. LM_FREE,
  13451. LM_HORIZONTAL,
  13452. LM_VERTICAL,
  13453. };
  13454. enum LightType
  13455. {
  13456. LIGHT_DIRECTIONAL,
  13457. LIGHT_SPOT,
  13458. LIGHT_POINT,
  13459. };
  13460. enum LoadMode
  13461. {
  13462. LOAD_RESOURCES_ONLY,
  13463. LOAD_SCENE,
  13464. LOAD_SCENE_AND_RESOURCES,
  13465. };
  13466. enum LoopMode2D
  13467. {
  13468. LM_DEFAULT,
  13469. LM_FORCE_LOOPED,
  13470. LM_FORCE_CLAMPED,
  13471. };
  13472. enum MouseMode
  13473. {
  13474. MM_ABSOLUTE,
  13475. MM_RELATIVE,
  13476. MM_WRAP,
  13477. MM_FREE,
  13478. };
  13479. enum NavigationPushiness
  13480. {
  13481. NAVIGATIONPUSHINESS_LOW,
  13482. NAVIGATIONPUSHINESS_MEDIUM,
  13483. NAVIGATIONPUSHINESS_HIGH,
  13484. };
  13485. enum NavigationQuality
  13486. {
  13487. NAVIGATIONQUALITY_LOW,
  13488. NAVIGATIONQUALITY_MEDIUM,
  13489. NAVIGATIONQUALITY_HIGH,
  13490. };
  13491. enum NavmeshPartitionType
  13492. {
  13493. NAVMESH_PARTITION_WATERSHED,
  13494. NAVMESH_PARTITION_MONOTONE,
  13495. };
  13496. enum Orientation
  13497. {
  13498. O_HORIZONTAL,
  13499. O_VERTICAL,
  13500. };
  13501. enum Orientation2D
  13502. {
  13503. O_ORTHOGONAL,
  13504. O_ISOMETRIC,
  13505. O_STAGGERED,
  13506. };
  13507. enum PassLightingMode
  13508. {
  13509. LIGHTING_UNLIT,
  13510. LIGHTING_PERVERTEX,
  13511. LIGHTING_PERPIXEL,
  13512. };
  13513. enum PrimitiveType
  13514. {
  13515. TRIANGLE_LIST,
  13516. LINE_LIST,
  13517. POINT_LIST,
  13518. TRIANGLE_STRIP,
  13519. LINE_STRIP,
  13520. TRIANGLE_FAN,
  13521. };
  13522. enum RayQueryLevel
  13523. {
  13524. RAY_AABB,
  13525. RAY_OBB,
  13526. RAY_TRIANGLE,
  13527. RAY_TRIANGLE_UV,
  13528. };
  13529. enum RenderCommandSortMode
  13530. {
  13531. SORT_FRONTTOBACK,
  13532. SORT_BACKTOFRONT,
  13533. };
  13534. enum RenderCommandType
  13535. {
  13536. CMD_NONE,
  13537. CMD_CLEAR,
  13538. CMD_SCENEPASS,
  13539. CMD_QUAD,
  13540. CMD_FORWARDLIGHTS,
  13541. CMD_LIGHTVOLUMES,
  13542. CMD_RENDERUI,
  13543. };
  13544. enum RenderSurfaceUpdateMode
  13545. {
  13546. SURFACE_MANUALUPDATE,
  13547. SURFACE_UPDATEVISIBLE,
  13548. SURFACE_UPDATEALWAYS,
  13549. };
  13550. enum RenderTargetSizeMode
  13551. {
  13552. SIZE_ABSOLUTE,
  13553. SIZE_VIEWPORTDIVISOR,
  13554. SIZE_VIEWPORTMULTIPLIER,
  13555. };
  13556. enum ShadowQuality
  13557. {
  13558. SHADOWQUALITY_SIMPLE_16BIT,
  13559. SHADOWQUALITY_SIMPLE_24BIT,
  13560. SHADOWQUALITY_PCF_16BIT,
  13561. SHADOWQUALITY_PCF_24BIT,
  13562. SHADOWQUALITY_VSM,
  13563. SHADOWQUALITY_BLUR_VSM,
  13564. };
  13565. enum ShapeType
  13566. {
  13567. SHAPE_BOX,
  13568. SHAPE_SPHERE,
  13569. SHAPE_STATICPLANE,
  13570. SHAPE_CYLINDER,
  13571. SHAPE_CAPSULE,
  13572. SHAPE_CONE,
  13573. SHAPE_TRIANGLEMESH,
  13574. SHAPE_CONVEXHULL,
  13575. SHAPE_TERRAIN,
  13576. };
  13577. enum TextEffect
  13578. {
  13579. TE_NONE,
  13580. TE_SHADOW,
  13581. TE_STROKE,
  13582. };
  13583. enum TextureAddressMode
  13584. {
  13585. ADDRESS_WRAP,
  13586. ADDRESS_MIRROR,
  13587. ADDRESS_CLAMP,
  13588. ADDRESS_BORDER,
  13589. };
  13590. enum TextureCoordinate
  13591. {
  13592. COORD_U,
  13593. COORD_V,
  13594. COORD_W,
  13595. };
  13596. enum TextureFilterMode
  13597. {
  13598. FILTER_NEAREST,
  13599. FILTER_BILINEAR,
  13600. FILTER_TRILINEAR,
  13601. FILTER_ANISOTROPIC,
  13602. FILTER_DEFAULT,
  13603. };
  13604. enum TextureUnit
  13605. {
  13606. TU_DIFFUSE,
  13607. TU_ALBEDOBUFFER,
  13608. TU_NORMAL,
  13609. TU_NORMALBUFFER,
  13610. TU_SPECULAR,
  13611. TU_EMISSIVE,
  13612. TU_ENVIRONMENT,
  13613. TU_LIGHTRAMP,
  13614. TU_LIGHTSHAPE,
  13615. TU_SHADOWMAP,
  13616. TU_CUSTOM1,
  13617. TU_CUSTOM2,
  13618. TU_VOLUMEMAP,
  13619. TU_FACESELECT,
  13620. TU_INDIRECTION,
  13621. TU_DEPTHBUFFER,
  13622. TU_LIGHTBUFFER,
  13623. TU_ZONE,
  13624. MAX_MATERIAL_TEXTURE_UNITS,
  13625. MAX_TEXTURE_UNITS,
  13626. };
  13627. enum TextureUsage
  13628. {
  13629. TEXTURE_STATIC,
  13630. TEXTURE_DYNAMIC,
  13631. TEXTURE_RENDERTARGET,
  13632. TEXTURE_DEPTHSTENCIL,
  13633. };
  13634. enum TileMapLayerType2D
  13635. {
  13636. LT_TILE_LAYER,
  13637. LT_OBJECT_GROUP,
  13638. LT_IMAGE_LAYER,
  13639. LT_INVALID,
  13640. };
  13641. enum TileObjectType2D
  13642. {
  13643. OT_RECTANGLE,
  13644. OT_ELLIPSE,
  13645. OT_POLYGON,
  13646. OT_POLYLINE,
  13647. OT_TILE,
  13648. OT_INVALID,
  13649. };
  13650. enum TransformSpace
  13651. {
  13652. TS_LOCAL,
  13653. TS_PARENT,
  13654. TS_WORLD,
  13655. };
  13656. enum TraversalMode
  13657. {
  13658. TM_BREADTH_FIRST,
  13659. TM_DEPTH_FIRST,
  13660. };
  13661. enum VariantType
  13662. {
  13663. VAR_NONE,
  13664. VAR_INT,
  13665. VAR_BOOL,
  13666. VAR_FLOAT,
  13667. VAR_VECTOR2,
  13668. VAR_VECTOR3,
  13669. VAR_VECTOR4,
  13670. VAR_QUATERNION,
  13671. VAR_COLOR,
  13672. VAR_STRING,
  13673. VAR_BUFFER,
  13674. VAR_VOIDPTR,
  13675. VAR_RESOURCEREF,
  13676. VAR_RESOURCEREFLIST,
  13677. VAR_VARIANTVECTOR,
  13678. VAR_VARIANTMAP,
  13679. VAR_INTRECT,
  13680. VAR_INTVECTOR2,
  13681. VAR_PTR,
  13682. VAR_MATRIX3,
  13683. VAR_MATRIX3X4,
  13684. VAR_MATRIX4,
  13685. VAR_DOUBLE,
  13686. VAR_STRINGVECTOR,
  13687. };
  13688. enum VertexElementSemantic
  13689. {
  13690. SEM_POSITION,
  13691. SEM_NORMAL,
  13692. SEM_BINORMAL,
  13693. SEM_TANGENT,
  13694. SEM_TEXCOORD,
  13695. SEM_COLOR,
  13696. SEM_BLENDWEIGHTS,
  13697. SEM_BLENDINDICES,
  13698. SEM_OBJECTINDEX,
  13699. MAX_VERTEX_ELEMENT_SEMANTICS,
  13700. };
  13701. enum VertexElementType
  13702. {
  13703. TYPE_INT,
  13704. TYPE_FLOAT,
  13705. TYPE_VECTOR2,
  13706. TYPE_VECTOR3,
  13707. TYPE_VECTOR4,
  13708. TYPE_UBYTE4,
  13709. TYPE_UBYTE4_NORM,
  13710. MAX_VERTEX_ELEMENT_TYPES,
  13711. };
  13712. enum VerticalAlignment
  13713. {
  13714. VA_TOP,
  13715. VA_CENTER,
  13716. VA_BOTTOM,
  13717. };
  13718. enum WrapMode
  13719. {
  13720. WM_LOOP,
  13721. WM_ONCE,
  13722. WM_CLAMP,
  13723. };
  13724. // Global functions
  13725. float Abs(float);
  13726. float Acos(float);
  13727. String AddTrailingSlash(const String&);
  13728. float Asin(float);
  13729. float Atan(float);
  13730. float Atan2(float, float);
  13731. float Ceil(float);
  13732. float Clamp(float, float, float);
  13733. int Clamp(int, int, int);
  13734. void ClearDelayedExecute(const String& = String ( ));
  13735. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  13736. float Cos(float);
  13737. uint CountSetBits(uint);
  13738. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  13739. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  13740. bool Equals(float, float);
  13741. void ErrorDialog(const String&, const String&);
  13742. float Floor(float);
  13743. uint GetAlphaFormat();
  13744. Array<String> GetArguments();
  13745. String GetConsoleInput();
  13746. uint GetDepthStencilFormat();
  13747. Object GetEventSender();
  13748. String GetExtension(const String&, bool = true);
  13749. String GetFileName(const String&);
  13750. String GetFileNameAndExtension(const String&, bool = false);
  13751. String GetFileSizeString(uint64);
  13752. uint GetFloat16Format();
  13753. uint GetFloat32Format();
  13754. uint GetFormat(const String&);
  13755. Variant GetGlobalVar(const String&);
  13756. String GetInternalPath(const String&);
  13757. uint GetLinearDepthFormat();
  13758. uint GetLuminanceAlphaFormat();
  13759. uint GetLuminanceFormat();
  13760. uint GetMaxBones();
  13761. String GetMiniDumpDir();
  13762. uint GetNumLogicalCPUs();
  13763. uint GetNumPhysicalCPUs();
  13764. Array<String> GetObjectCategories();
  13765. Array<String> GetObjectsByCategory(const String&);
  13766. String GetParentPath(const String&);
  13767. String GetPath(const String&);
  13768. String GetPlatform();
  13769. uint GetRG16Format();
  13770. uint GetRGBA16Format();
  13771. uint GetRGBAFloat16Format();
  13772. uint GetRGBAFloat32Format();
  13773. uint GetRGBAFormat();
  13774. uint GetRGBFormat();
  13775. uint GetRGFloat16Format();
  13776. uint GetRGFloat32Format();
  13777. uint GetRandomSeed();
  13778. uint GetReadableDepthFormat();
  13779. String GetTextureUnitName(TextureUnit);
  13780. bool HasSubscribedToEvent(Object, const String&);
  13781. bool HasSubscribedToEvent(const String&);
  13782. bool IsAbsolutePath(const String&);
  13783. bool IsAlpha(uint);
  13784. bool IsDigit(uint);
  13785. bool IsNaN(float);
  13786. bool IsPowerOfTwo(uint);
  13787. String Join(Array<String>&, const String&);
  13788. float Lerp(float, float, float);
  13789. void MarkNetworkUpdate();
  13790. float Max(float, float);
  13791. int Max(int, int);
  13792. float Min(float, float);
  13793. int Min(int, int);
  13794. float Mod(float, float);
  13795. uint NextPowerOfTwo(uint);
  13796. void OpenConsoleWindow();
  13797. float Pow(float, float);
  13798. void Print(bool, bool = false);
  13799. void Print(const String&, bool = false);
  13800. void Print(const Variant&, bool = false);
  13801. void Print(float, bool = false);
  13802. void Print(int, bool = false);
  13803. void Print(uint, bool = false);
  13804. void PrintCallStack(bool = false);
  13805. float Random();
  13806. float Random(float);
  13807. float Random(float, float);
  13808. int RandomInt();
  13809. int RandomInt(int);
  13810. int RandomInt(int, int);
  13811. float RandomNormal(float, float);
  13812. void Remove();
  13813. String RemoveTrailingSlash(const String&);
  13814. String ReplaceExtension(const String&, const String&);
  13815. uint SDBMHash(uint, uint8);
  13816. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13817. void SetGlobalVar(const String&, Variant&);
  13818. void SetMiniDumpDir(const String&);
  13819. void SetRandomSeed(uint);
  13820. float Sign(float);
  13821. float Sin(float);
  13822. float SmoothStep(float, float, float);
  13823. float Sqrt(float);
  13824. const String& GetTypeName(StringHash);
  13825. void SubscribeToEvent(Object, const String&, const String&);
  13826. void SubscribeToEvent(const String&, const String&);
  13827. float Tan(float);
  13828. uint ToLower(uint);
  13829. String ToStringHex(int);
  13830. uint ToUpper(uint);
  13831. void UnsubscribeFromAllEvents();
  13832. void UnsubscribeFromAllEventsExcept(Array<String>);
  13833. void UnsubscribeFromEvent(Object, const String&);
  13834. void UnsubscribeFromEvent(const String&);
  13835. void UnsubscribeFromEvents(Object);
  13836. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13837. // Global properties
  13838. DBAPI DBAPI;
  13839. Audio audio;
  13840. ResourceCache cache;
  13841. Console console;
  13842. Database database;
  13843. DebugHud debugHud;
  13844. DebugRenderer debugRenderer;
  13845. Engine engine;
  13846. FileSystem fileSystem;
  13847. VariantMap globalVars;
  13848. Graphics graphics;
  13849. Input input;
  13850. Localization localization;
  13851. Log log;
  13852. Network network;
  13853. Node node;
  13854. Octree octree;
  13855. PhysicsWorld physicsWorld;
  13856. PhysicsWorld2D physicsWorld2D;
  13857. Renderer renderer;
  13858. ResourceCache resourceCache;
  13859. Scene scene;
  13860. Script script;
  13861. ScriptFile scriptFile;
  13862. ScriptInstance self;
  13863. Time time;
  13864. UI ui;
  13865. // Global constants
  13866. uint AM_COMPONENTID;
  13867. uint AM_DEFAULT;
  13868. uint AM_FILE;
  13869. uint AM_LATESTDATA;
  13870. uint AM_NET;
  13871. uint AM_NODEID;
  13872. uint AM_NODEIDVECTOR;
  13873. uint AM_NOEDIT;
  13874. Color BLACK;
  13875. Color BLUE;
  13876. uint8 CHANNEL_POSITION;
  13877. uint8 CHANNEL_ROTATION;
  13878. uint8 CHANNEL_SCALE;
  13879. uint CLEAR_COLOR;
  13880. uint CLEAR_DEPTH;
  13881. uint CLEAR_STENCIL;
  13882. int CONTROLLER_AXIS_LEFTX;
  13883. int CONTROLLER_AXIS_LEFTY;
  13884. int CONTROLLER_AXIS_RIGHTX;
  13885. int CONTROLLER_AXIS_RIGHTY;
  13886. int CONTROLLER_AXIS_TRIGGERLEFT;
  13887. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13888. int CONTROLLER_BUTTON_A;
  13889. int CONTROLLER_BUTTON_B;
  13890. int CONTROLLER_BUTTON_BACK;
  13891. int CONTROLLER_BUTTON_DPAD_DOWN;
  13892. int CONTROLLER_BUTTON_DPAD_LEFT;
  13893. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13894. int CONTROLLER_BUTTON_DPAD_UP;
  13895. int CONTROLLER_BUTTON_GUIDE;
  13896. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13897. int CONTROLLER_BUTTON_LEFTSTICK;
  13898. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13899. int CONTROLLER_BUTTON_RIGHTSTICK;
  13900. int CONTROLLER_BUTTON_START;
  13901. int CONTROLLER_BUTTON_X;
  13902. int CONTROLLER_BUTTON_Y;
  13903. Color CYAN;
  13904. uint DD_DISABLED;
  13905. uint DD_SOURCE;
  13906. uint DD_SOURCE_AND_TARGET;
  13907. uint DD_TARGET;
  13908. uint DEBUGHUD_SHOW_ALL;
  13909. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13910. uint DEBUGHUD_SHOW_MEMORY;
  13911. uint DEBUGHUD_SHOW_MODE;
  13912. uint DEBUGHUD_SHOW_NONE;
  13913. uint DEBUGHUD_SHOW_PROFILER;
  13914. uint DEBUGHUD_SHOW_STATS;
  13915. uint DEFAULT_LIGHTMASK;
  13916. uint DEFAULT_VIEWMASK;
  13917. uint DRAWABLE_ANY;
  13918. uint DRAWABLE_GEOMETRY;
  13919. uint DRAWABLE_GEOMETRY2D;
  13920. uint DRAWABLE_LIGHT;
  13921. uint DRAWABLE_ZONE;
  13922. uint FIRST_LOCAL_ID;
  13923. uint FIRST_REPLICATED_ID;
  13924. Color GRAY;
  13925. Color GREEN;
  13926. int HAT_CENTER;
  13927. int HAT_DOWN;
  13928. int HAT_LEFT;
  13929. int HAT_RIGHT;
  13930. int HAT_UP;
  13931. int KEY_0;
  13932. int KEY_1;
  13933. int KEY_2;
  13934. int KEY_3;
  13935. int KEY_4;
  13936. int KEY_5;
  13937. int KEY_6;
  13938. int KEY_7;
  13939. int KEY_8;
  13940. int KEY_9;
  13941. int KEY_A;
  13942. int KEY_ALT;
  13943. int KEY_APPLICATION;
  13944. int KEY_B;
  13945. int KEY_BACKSPACE;
  13946. int KEY_C;
  13947. int KEY_CAPSLOCK;
  13948. int KEY_CTRL;
  13949. int KEY_D;
  13950. int KEY_DELETE;
  13951. int KEY_DOWN;
  13952. int KEY_E;
  13953. int KEY_END;
  13954. int KEY_ESC;
  13955. int KEY_F;
  13956. int KEY_F1;
  13957. int KEY_F10;
  13958. int KEY_F11;
  13959. int KEY_F12;
  13960. int KEY_F13;
  13961. int KEY_F14;
  13962. int KEY_F15;
  13963. int KEY_F16;
  13964. int KEY_F17;
  13965. int KEY_F18;
  13966. int KEY_F19;
  13967. int KEY_F2;
  13968. int KEY_F20;
  13969. int KEY_F21;
  13970. int KEY_F22;
  13971. int KEY_F23;
  13972. int KEY_F24;
  13973. int KEY_F3;
  13974. int KEY_F4;
  13975. int KEY_F5;
  13976. int KEY_F6;
  13977. int KEY_F7;
  13978. int KEY_F8;
  13979. int KEY_F9;
  13980. int KEY_G;
  13981. int KEY_GUI;
  13982. int KEY_H;
  13983. int KEY_HOME;
  13984. int KEY_I;
  13985. int KEY_INSERT;
  13986. int KEY_J;
  13987. int KEY_K;
  13988. int KEY_KP_0;
  13989. int KEY_KP_1;
  13990. int KEY_KP_2;
  13991. int KEY_KP_3;
  13992. int KEY_KP_4;
  13993. int KEY_KP_5;
  13994. int KEY_KP_6;
  13995. int KEY_KP_7;
  13996. int KEY_KP_8;
  13997. int KEY_KP_9;
  13998. int KEY_KP_DIVIDE;
  13999. int KEY_KP_ENTER;
  14000. int KEY_KP_MINUS;
  14001. int KEY_KP_MULTIPLY;
  14002. int KEY_KP_PERIOD;
  14003. int KEY_KP_PLUS;
  14004. int KEY_L;
  14005. int KEY_LALT;
  14006. int KEY_LCTRL;
  14007. int KEY_LEFT;
  14008. int KEY_LGUI;
  14009. int KEY_LSHIFT;
  14010. int KEY_M;
  14011. int KEY_N;
  14012. int KEY_NUMLOCKCLEAR;
  14013. int KEY_O;
  14014. int KEY_P;
  14015. int KEY_PAGEDOWN;
  14016. int KEY_PAGEUP;
  14017. int KEY_PAUSE;
  14018. int KEY_PRINTSCREEN;
  14019. int KEY_Q;
  14020. int KEY_R;
  14021. int KEY_RALT;
  14022. int KEY_RCTRL;
  14023. int KEY_RETURN;
  14024. int KEY_RETURN2;
  14025. int KEY_RGUI;
  14026. int KEY_RIGHT;
  14027. int KEY_RSHIFT;
  14028. int KEY_S;
  14029. int KEY_SCROLLLOCK;
  14030. int KEY_SELECT;
  14031. int KEY_SHIFT;
  14032. int KEY_SPACE;
  14033. int KEY_T;
  14034. int KEY_TAB;
  14035. int KEY_U;
  14036. int KEY_UP;
  14037. int KEY_V;
  14038. int KEY_W;
  14039. int KEY_X;
  14040. int KEY_Y;
  14041. int KEY_Z;
  14042. uint LAST_LOCAL_ID;
  14043. uint LAST_REPLICATED_ID;
  14044. int LOG_DEBUG;
  14045. int LOG_ERROR;
  14046. int LOG_INFO;
  14047. int LOG_NONE;
  14048. int LOG_WARNING;
  14049. Color MAGENTA;
  14050. uint MASK_BLENDINDICES;
  14051. uint MASK_BLENDWEIGHTS;
  14052. uint MASK_COLOR;
  14053. uint MASK_CUBETEXCOORD1;
  14054. uint MASK_CUBETEXCOORD2;
  14055. uint MASK_INSTANCEMATRIX1;
  14056. uint MASK_INSTANCEMATRIX2;
  14057. uint MASK_INSTANCEMATRIX3;
  14058. uint MASK_NONE;
  14059. uint MASK_NORMAL;
  14060. uint MASK_OBJECTINDEX;
  14061. uint MASK_POSITION;
  14062. uint MASK_TANGENT;
  14063. uint MASK_TEXCOORD1;
  14064. uint MASK_TEXCOORD2;
  14065. int MOUSEB_LEFT;
  14066. int MOUSEB_MIDDLE;
  14067. int MOUSEB_RIGHT;
  14068. float M_DEGTORAD;
  14069. float M_DEGTORAD_2;
  14070. float M_EPSILON;
  14071. float M_HALF_PI;
  14072. float M_INFINITY;
  14073. float M_LARGE_EPSILON;
  14074. float M_LARGE_VALUE;
  14075. int M_MAX_INT;
  14076. uint M_MAX_UNSIGNED;
  14077. int M_MIN_INT;
  14078. uint M_MIN_UNSIGNED;
  14079. float M_PI;
  14080. float M_RADTODEG;
  14081. uint NPOS;
  14082. float PIXEL_SIZE;
  14083. int QUALITY_HIGH;
  14084. int QUALITY_LOW;
  14085. int QUALITY_MAX;
  14086. int QUALITY_MEDIUM;
  14087. int QUAL_ALT;
  14088. int QUAL_ANY;
  14089. int QUAL_CTRL;
  14090. int QUAL_SHIFT;
  14091. Color RED;
  14092. int SCANCODE_0;
  14093. int SCANCODE_1;
  14094. int SCANCODE_2;
  14095. int SCANCODE_3;
  14096. int SCANCODE_4;
  14097. int SCANCODE_5;
  14098. int SCANCODE_6;
  14099. int SCANCODE_7;
  14100. int SCANCODE_8;
  14101. int SCANCODE_9;
  14102. int SCANCODE_A;
  14103. int SCANCODE_AC_BACK;
  14104. int SCANCODE_AC_BOOKMARKS;
  14105. int SCANCODE_AC_FORWARD;
  14106. int SCANCODE_AC_HOME;
  14107. int SCANCODE_AC_REFRESH;
  14108. int SCANCODE_AC_SEARCH;
  14109. int SCANCODE_AC_STOP;
  14110. int SCANCODE_AGAIN;
  14111. int SCANCODE_ALT;
  14112. int SCANCODE_ALTERASE;
  14113. int SCANCODE_APOSTROPHE;
  14114. int SCANCODE_APP1;
  14115. int SCANCODE_APP2;
  14116. int SCANCODE_APPLICATION;
  14117. int SCANCODE_AUDIOMUTE;
  14118. int SCANCODE_AUDIONEXT;
  14119. int SCANCODE_AUDIOPLAY;
  14120. int SCANCODE_AUDIOPREV;
  14121. int SCANCODE_AUDIOSTOP;
  14122. int SCANCODE_B;
  14123. int SCANCODE_BACKSLASH;
  14124. int SCANCODE_BACKSPACE;
  14125. int SCANCODE_BRIGHTNESSDOWN;
  14126. int SCANCODE_BRIGHTNESSUP;
  14127. int SCANCODE_C;
  14128. int SCANCODE_CALCULATOR;
  14129. int SCANCODE_CANCEL;
  14130. int SCANCODE_CAPSLOCK;
  14131. int SCANCODE_CLEAR;
  14132. int SCANCODE_CLEARAGAIN;
  14133. int SCANCODE_COMMA;
  14134. int SCANCODE_COMPUTER;
  14135. int SCANCODE_COPY;
  14136. int SCANCODE_CRSEL;
  14137. int SCANCODE_CTRL;
  14138. int SCANCODE_CURRENCYSUBUNIT;
  14139. int SCANCODE_CURRENCYUNIT;
  14140. int SCANCODE_CUT;
  14141. int SCANCODE_D;
  14142. int SCANCODE_DECIMALSEPARATOR;
  14143. int SCANCODE_DELETE;
  14144. int SCANCODE_DISPLAYSWITCH;
  14145. int SCANCODE_DOWN;
  14146. int SCANCODE_E;
  14147. int SCANCODE_EJECT;
  14148. int SCANCODE_END;
  14149. int SCANCODE_EQUALS;
  14150. int SCANCODE_ESCAPE;
  14151. int SCANCODE_EXECUTE;
  14152. int SCANCODE_EXSEL;
  14153. int SCANCODE_F;
  14154. int SCANCODE_F1;
  14155. int SCANCODE_F10;
  14156. int SCANCODE_F11;
  14157. int SCANCODE_F12;
  14158. int SCANCODE_F13;
  14159. int SCANCODE_F14;
  14160. int SCANCODE_F15;
  14161. int SCANCODE_F16;
  14162. int SCANCODE_F17;
  14163. int SCANCODE_F18;
  14164. int SCANCODE_F19;
  14165. int SCANCODE_F2;
  14166. int SCANCODE_F20;
  14167. int SCANCODE_F21;
  14168. int SCANCODE_F22;
  14169. int SCANCODE_F23;
  14170. int SCANCODE_F24;
  14171. int SCANCODE_F3;
  14172. int SCANCODE_F4;
  14173. int SCANCODE_F5;
  14174. int SCANCODE_F6;
  14175. int SCANCODE_F7;
  14176. int SCANCODE_F8;
  14177. int SCANCODE_F9;
  14178. int SCANCODE_FIND;
  14179. int SCANCODE_G;
  14180. int SCANCODE_GRAVE;
  14181. int SCANCODE_GUI;
  14182. int SCANCODE_H;
  14183. int SCANCODE_HELP;
  14184. int SCANCODE_HOME;
  14185. int SCANCODE_I;
  14186. int SCANCODE_INSERT;
  14187. int SCANCODE_INTERNATIONAL1;
  14188. int SCANCODE_INTERNATIONAL2;
  14189. int SCANCODE_INTERNATIONAL3;
  14190. int SCANCODE_INTERNATIONAL4;
  14191. int SCANCODE_INTERNATIONAL5;
  14192. int SCANCODE_INTERNATIONAL6;
  14193. int SCANCODE_INTERNATIONAL7;
  14194. int SCANCODE_INTERNATIONAL8;
  14195. int SCANCODE_INTERNATIONAL9;
  14196. int SCANCODE_J;
  14197. int SCANCODE_K;
  14198. int SCANCODE_KBDILLUMDOWN;
  14199. int SCANCODE_KBDILLUMTOGGLE;
  14200. int SCANCODE_KBDILLUMUP;
  14201. int SCANCODE_KP_0;
  14202. int SCANCODE_KP_00;
  14203. int SCANCODE_KP_000;
  14204. int SCANCODE_KP_1;
  14205. int SCANCODE_KP_2;
  14206. int SCANCODE_KP_3;
  14207. int SCANCODE_KP_4;
  14208. int SCANCODE_KP_5;
  14209. int SCANCODE_KP_6;
  14210. int SCANCODE_KP_7;
  14211. int SCANCODE_KP_8;
  14212. int SCANCODE_KP_9;
  14213. int SCANCODE_KP_A;
  14214. int SCANCODE_KP_AMPERSAND;
  14215. int SCANCODE_KP_AT;
  14216. int SCANCODE_KP_B;
  14217. int SCANCODE_KP_BACKSPACE;
  14218. int SCANCODE_KP_BINARY;
  14219. int SCANCODE_KP_C;
  14220. int SCANCODE_KP_CLEAR;
  14221. int SCANCODE_KP_CLEARENTRY;
  14222. int SCANCODE_KP_COLON;
  14223. int SCANCODE_KP_COMMA;
  14224. int SCANCODE_KP_D;
  14225. int SCANCODE_KP_DBLAMPERSAND;
  14226. int SCANCODE_KP_DBLVERTICALBAR;
  14227. int SCANCODE_KP_DECIMAL;
  14228. int SCANCODE_KP_DIVIDE;
  14229. int SCANCODE_KP_E;
  14230. int SCANCODE_KP_ENTER;
  14231. int SCANCODE_KP_EQUALS;
  14232. int SCANCODE_KP_EQUALSAS400;
  14233. int SCANCODE_KP_EXCLAM;
  14234. int SCANCODE_KP_F;
  14235. int SCANCODE_KP_GREATER;
  14236. int SCANCODE_KP_HASH;
  14237. int SCANCODE_KP_HEXADECIMAL;
  14238. int SCANCODE_KP_LEFTBRACE;
  14239. int SCANCODE_KP_LEFTPAREN;
  14240. int SCANCODE_KP_LESS;
  14241. int SCANCODE_KP_MEMADD;
  14242. int SCANCODE_KP_MEMCLEAR;
  14243. int SCANCODE_KP_MEMDIVIDE;
  14244. int SCANCODE_KP_MEMMULTIPLY;
  14245. int SCANCODE_KP_MEMRECALL;
  14246. int SCANCODE_KP_MEMSTORE;
  14247. int SCANCODE_KP_MEMSUBTRACT;
  14248. int SCANCODE_KP_MINUS;
  14249. int SCANCODE_KP_MULTIPLY;
  14250. int SCANCODE_KP_OCTAL;
  14251. int SCANCODE_KP_PERCENT;
  14252. int SCANCODE_KP_PERIOD;
  14253. int SCANCODE_KP_PLUS;
  14254. int SCANCODE_KP_PLUSMINUS;
  14255. int SCANCODE_KP_POWER;
  14256. int SCANCODE_KP_RIGHTBRACE;
  14257. int SCANCODE_KP_RIGHTPAREN;
  14258. int SCANCODE_KP_SPACE;
  14259. int SCANCODE_KP_TAB;
  14260. int SCANCODE_KP_VERTICALBAR;
  14261. int SCANCODE_KP_XOR;
  14262. int SCANCODE_L;
  14263. int SCANCODE_LALT;
  14264. int SCANCODE_LANG1;
  14265. int SCANCODE_LANG2;
  14266. int SCANCODE_LANG3;
  14267. int SCANCODE_LANG4;
  14268. int SCANCODE_LANG5;
  14269. int SCANCODE_LANG6;
  14270. int SCANCODE_LANG7;
  14271. int SCANCODE_LANG8;
  14272. int SCANCODE_LANG9;
  14273. int SCANCODE_LCTRL;
  14274. int SCANCODE_LEFT;
  14275. int SCANCODE_LEFTBRACKET;
  14276. int SCANCODE_LGUI;
  14277. int SCANCODE_LSHIFT;
  14278. int SCANCODE_M;
  14279. int SCANCODE_MAIL;
  14280. int SCANCODE_MEDIASELECT;
  14281. int SCANCODE_MENU;
  14282. int SCANCODE_MINUS;
  14283. int SCANCODE_MODE;
  14284. int SCANCODE_MUTE;
  14285. int SCANCODE_N;
  14286. int SCANCODE_NONUSBACKSLASH;
  14287. int SCANCODE_NONUSHASH;
  14288. int SCANCODE_NUMLOCKCLEAR;
  14289. int SCANCODE_O;
  14290. int SCANCODE_OPER;
  14291. int SCANCODE_OUT;
  14292. int SCANCODE_P;
  14293. int SCANCODE_PAGEDOWN;
  14294. int SCANCODE_PAGEUP;
  14295. int SCANCODE_PASTE;
  14296. int SCANCODE_PAUSE;
  14297. int SCANCODE_PERIOD;
  14298. int SCANCODE_POWER;
  14299. int SCANCODE_PRINTSCREEN;
  14300. int SCANCODE_PRIOR;
  14301. int SCANCODE_Q;
  14302. int SCANCODE_R;
  14303. int SCANCODE_RALT;
  14304. int SCANCODE_RCTRL;
  14305. int SCANCODE_RETURN;
  14306. int SCANCODE_RETURN2;
  14307. int SCANCODE_RGUI;
  14308. int SCANCODE_RIGHT;
  14309. int SCANCODE_RIGHTBRACKET;
  14310. int SCANCODE_RSHIFT;
  14311. int SCANCODE_S;
  14312. int SCANCODE_SCROLLLOCK;
  14313. int SCANCODE_SELECT;
  14314. int SCANCODE_SEMICOLON;
  14315. int SCANCODE_SEPARATOR;
  14316. int SCANCODE_SHIFT;
  14317. int SCANCODE_SLASH;
  14318. int SCANCODE_SLEEP;
  14319. int SCANCODE_SPACE;
  14320. int SCANCODE_STOP;
  14321. int SCANCODE_SYSREQ;
  14322. int SCANCODE_T;
  14323. int SCANCODE_TAB;
  14324. int SCANCODE_THOUSANDSSEPARATOR;
  14325. int SCANCODE_U;
  14326. int SCANCODE_UNDO;
  14327. int SCANCODE_UNKNOWN;
  14328. int SCANCODE_UP;
  14329. int SCANCODE_V;
  14330. int SCANCODE_VOLUMEDOWN;
  14331. int SCANCODE_VOLUMEUP;
  14332. int SCANCODE_W;
  14333. int SCANCODE_WWW;
  14334. int SCANCODE_X;
  14335. int SCANCODE_Y;
  14336. int SCANCODE_Z;
  14337. uint SCAN_DIRS;
  14338. uint SCAN_FILES;
  14339. uint SCAN_HIDDEN;
  14340. String SOUND_AMBIENT;
  14341. String SOUND_EFFECT;
  14342. String SOUND_MASTER;
  14343. String SOUND_MUSIC;
  14344. String SOUND_VOICE;
  14345. Color TRANSPARENT;
  14346. uint VO_DISABLE_OCCLUSION;
  14347. uint VO_DISABLE_SHADOWS;
  14348. uint VO_LOW_MATERIAL_QUALITY;
  14349. uint VO_NONE;
  14350. Color WHITE;
  14351. Color YELLOW;