AngelScriptAPI.h 365 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685
  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. float GetFadeTarget(const String&) const;
  343. float GetFadeTime(const String&) const;
  344. bool GetInterceptNetworkUpdate(const String&) const;
  345. uint8 GetLayer(const String&) const;
  346. float GetLength(const String&) const;
  347. bool GetLooped(const String&) const;
  348. bool GetRemoveOnCompletion(const String&);
  349. float GetSpeed(const String&) const;
  350. float GetTime(const String&) const;
  351. float GetWeight(const String&) const;
  352. bool HasSubscribedToEvent(Object, const String&);
  353. bool HasSubscribedToEvent(const String&);
  354. bool IsAtEnd(const String&) const;
  355. bool IsFadingIn(const String&) const;
  356. bool IsFadingOut(const String&) const;
  357. bool IsPlaying(const String&) const;
  358. bool Load(File, bool = false);
  359. bool Load(VectorBuffer&, bool = false);
  360. bool LoadJSON(const JSONValue&, bool = false);
  361. bool LoadXML(const XMLElement&, bool = false);
  362. void MarkNetworkUpdate() const;
  363. bool Play(const String&, uint8, bool, float = 0.0f);
  364. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  365. void Remove();
  366. void RemoveAttributeAnimation(const String&);
  367. void RemoveInstanceDefault();
  368. void RemoveObjectAnimation();
  369. void ResetToDefault();
  370. bool Save(File) const;
  371. bool Save(VectorBuffer&) const;
  372. bool SaveJSON(JSONValue&) const;
  373. bool SaveXML(XMLElement&) const;
  374. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  375. void SetAnimationTime(float);
  376. bool SetAttribute(const String&, const Variant&);
  377. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  378. void SetAttributeAnimationSpeed(const String&, float);
  379. void SetAttributeAnimationTime(const String&, float);
  380. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  381. bool SetAutoFade(const String&, float);
  382. void SetInterceptNetworkUpdate(const String&, bool);
  383. bool SetLayer(const String&, uint8);
  384. bool SetLooped(const String&, bool);
  385. bool SetRemoveOnCompletion(const String&, bool);
  386. bool SetSpeed(const String&, float);
  387. bool SetStartBone(const String&, const String&);
  388. bool SetTime(const String&, float);
  389. bool SetWeight(const String&, float);
  390. void Stop(const String&, float = 0.0f);
  391. void StopAll(float = 0.0f);
  392. void StopLayer(uint8, float = 0.0f);
  393. const String& GetStartBone(const String&) const;
  394. // Properties:
  395. bool animationEnabled;
  396. /* readonly */
  397. Array<Variant> attributeDefaults;
  398. /* readonly */
  399. Array<AttributeInfo> attributeInfos;
  400. Array<Variant> attributes;
  401. /* readonly */
  402. String category;
  403. bool enabled;
  404. /* readonly */
  405. bool enabledEffective;
  406. /* readonly */
  407. uint id;
  408. /* readonly */
  409. Node node;
  410. /* readonly */
  411. uint numAttributes;
  412. ObjectAnimation objectAnimation;
  413. /* readonly */
  414. int refs;
  415. bool temporary;
  416. /* readonly */
  417. StringHash type;
  418. /* readonly */
  419. String typeName;
  420. /* readonly */
  421. int weakRefs;
  422. };
  423. class AnimationKeyFrame
  424. {
  425. // Properties:
  426. Vector3 position;
  427. Quaternion rotation;
  428. Vector3 scale;
  429. float time;
  430. };
  431. class AnimationSet2D
  432. {
  433. // Methods:
  434. String GetAnimation(uint) const;
  435. bool HasSubscribedToEvent(Object, const String&);
  436. bool HasSubscribedToEvent(const String&);
  437. bool Load(File);
  438. bool Load(VectorBuffer&);
  439. bool Save(File) const;
  440. bool Save(VectorBuffer&) const;
  441. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  442. // Properties:
  443. /* readonly */
  444. String category;
  445. /* readonly */
  446. uint memoryUse;
  447. String name;
  448. /* readonly */
  449. uint numAnimations;
  450. /* readonly */
  451. int refs;
  452. /* readonly */
  453. StringHash type;
  454. /* readonly */
  455. String typeName;
  456. /* readonly */
  457. uint useTimer;
  458. /* readonly */
  459. int weakRefs;
  460. };
  461. class AnimationState
  462. {
  463. // Methods:
  464. void AddTime(float);
  465. void AddWeight(float);
  466. void Apply();
  467. float GetBoneWeight(StringHash) const;
  468. float GetBoneWeight(uint) const;
  469. uint GetTrackIndex(StringHash) const;
  470. uint GetTrackIndex(const String&) const;
  471. void SetBoneWeight(StringHash, float, bool = false);
  472. void SetBoneWeight(const String&, float, bool = false);
  473. void SetBoneWeight(uint, float, bool = false);
  474. // Properties:
  475. /* readonly */
  476. Animation animation;
  477. Array<float> boneWeights;
  478. /* readonly */
  479. bool enabled;
  480. uint8 layer;
  481. /* readonly */
  482. float length;
  483. bool looped;
  484. /* readonly */
  485. AnimatedModel model;
  486. /* readonly */
  487. Node node;
  488. /* readonly */
  489. int refs;
  490. Bone startBone;
  491. float time;
  492. /* readonly */
  493. int weakRefs;
  494. float weight;
  495. };
  496. class AnimationTrack
  497. {
  498. // Methods:
  499. void AddKeyFrame(const AnimationKeyFrame&);
  500. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  501. void RemoveAllKeyFrames();
  502. void RemoveKeyFrame(uint);
  503. // Properties:
  504. uint8 channelMask;
  505. Array<AnimationKeyFrame> keyFrames;
  506. String name;
  507. StringHash nameHash;
  508. /* readonly */
  509. uint numKeyFrames;
  510. };
  511. class AnimationTriggerPoint
  512. {
  513. // Properties:
  514. Variant data;
  515. float time;
  516. };
  517. template <class T> class Array
  518. {
  519. // Methods:
  520. void Clear();
  521. void Erase(uint);
  522. int Find(const T&) const;
  523. int Find(uint, const T&) const;
  524. int FindByRef(const T&) const;
  525. int FindByRef(uint, const T&) const;
  526. void Insert(uint, const T&);
  527. void Pop();
  528. void Push(const T&);
  529. void Reserve(uint);
  530. void Resize(uint);
  531. void Reverse();
  532. void Sort();
  533. void Sort(uint, uint);
  534. void SortReverse();
  535. void SortReverse(uint, uint);
  536. // Properties:
  537. /* readonly */
  538. bool empty;
  539. uint length;
  540. };
  541. class AttributeInfo
  542. {
  543. // Properties:
  544. Variant defaultValue;
  545. /* readonly */
  546. Array<String> enumNames;
  547. uint mode;
  548. String name;
  549. VariantType type;
  550. };
  551. class Audio
  552. {
  553. // Methods:
  554. bool HasMasterGain(const String&) const;
  555. bool HasSubscribedToEvent(Object, const String&);
  556. bool HasSubscribedToEvent(const String&);
  557. bool Play();
  558. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  559. void SetMode(int, int, bool, bool = true);
  560. void Stop();
  561. // Properties:
  562. /* readonly */
  563. String category;
  564. /* readonly */
  565. bool initialized;
  566. /* readonly */
  567. bool interpolation;
  568. SoundListener listener;
  569. Array<float> masterGain;
  570. /* readonly */
  571. int mixRate;
  572. /* readonly */
  573. bool playing;
  574. /* readonly */
  575. int refs;
  576. /* readonly */
  577. uint sampleSize;
  578. /* readonly */
  579. bool stereo;
  580. /* readonly */
  581. StringHash type;
  582. /* readonly */
  583. String typeName;
  584. /* readonly */
  585. int weakRefs;
  586. };
  587. class BiasParameters
  588. {
  589. // Properties:
  590. float constantBias;
  591. float slopeScaledBias;
  592. };
  593. class Billboard
  594. {
  595. // Properties:
  596. Color color;
  597. Vector3 direction;
  598. bool enabled;
  599. Vector3 position;
  600. float rotation;
  601. Vector2 size;
  602. Rect uv;
  603. };
  604. class BillboardSet
  605. {
  606. // Methods:
  607. void ApplyAttributes();
  608. void Commit();
  609. void DrawDebugGeometry(DebugRenderer, bool);
  610. Variant GetAttribute(const String&) const;
  611. ValueAnimation GetAttributeAnimation(const String&) const;
  612. float GetAttributeAnimationSpeed(const String&) const;
  613. float GetAttributeAnimationTime(const String&) const;
  614. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  615. Variant GetAttributeDefault(const String&) const;
  616. bool GetInterceptNetworkUpdate(const String&) const;
  617. bool HasSubscribedToEvent(Object, const String&);
  618. bool HasSubscribedToEvent(const String&);
  619. bool IsInView(Camera) const;
  620. bool Load(File, bool = false);
  621. bool Load(VectorBuffer&, bool = false);
  622. bool LoadJSON(const JSONValue&, bool = false);
  623. bool LoadXML(const XMLElement&, bool = false);
  624. void MarkNetworkUpdate() const;
  625. void Remove();
  626. void RemoveAttributeAnimation(const String&);
  627. void RemoveInstanceDefault();
  628. void RemoveObjectAnimation();
  629. void ResetToDefault();
  630. bool Save(File) const;
  631. bool Save(VectorBuffer&) const;
  632. bool SaveJSON(JSONValue&) const;
  633. bool SaveXML(XMLElement&) const;
  634. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  635. void SetAnimationTime(float);
  636. bool SetAttribute(const String&, const Variant&);
  637. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  638. void SetAttributeAnimationSpeed(const String&, float);
  639. void SetAttributeAnimationTime(const String&, float);
  640. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  641. void SetInterceptNetworkUpdate(const String&, bool);
  642. // Properties:
  643. bool animationEnabled;
  644. float animationLodBias;
  645. /* readonly */
  646. Array<Variant> attributeDefaults;
  647. /* readonly */
  648. Array<AttributeInfo> attributeInfos;
  649. Array<Variant> attributes;
  650. /* readonly */
  651. Array<Billboard> billboards;
  652. /* readonly */
  653. BoundingBox boundingBox;
  654. bool castShadows;
  655. /* readonly */
  656. String category;
  657. float drawDistance;
  658. bool enabled;
  659. /* readonly */
  660. bool enabledEffective;
  661. FaceCameraMode faceCameraMode;
  662. /* readonly */
  663. uint id;
  664. /* readonly */
  665. bool inView;
  666. uint lightMask;
  667. float lodBias;
  668. Material material;
  669. uint maxLights;
  670. /* readonly */
  671. Node node;
  672. /* readonly */
  673. uint numAttributes;
  674. uint numBillboards;
  675. ObjectAnimation objectAnimation;
  676. bool occludee;
  677. bool occluder;
  678. /* readonly */
  679. int refs;
  680. bool relative;
  681. bool scaled;
  682. float shadowDistance;
  683. uint shadowMask;
  684. bool sorted;
  685. bool temporary;
  686. /* readonly */
  687. StringHash type;
  688. /* readonly */
  689. String typeName;
  690. uint viewMask;
  691. /* readonly */
  692. int weakRefs;
  693. /* readonly */
  694. BoundingBox worldBoundingBox;
  695. /* readonly */
  696. Zone zone;
  697. uint zoneMask;
  698. };
  699. class Bone
  700. {
  701. // Properties:
  702. bool animated;
  703. BoundingBox boundingBox;
  704. Vector3 initialPosition;
  705. Quaternion initialRotation;
  706. Vector3 initialScale;
  707. String name;
  708. Node node;
  709. float radius;
  710. };
  711. class BorderImage
  712. {
  713. // Methods:
  714. void AddChild(UIElement);
  715. void AddTag(const String&);
  716. void AddTags(const String&, int8 = ';');
  717. void ApplyAttributes();
  718. void BringToFront();
  719. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  720. void DisableLayoutUpdate();
  721. IntVector2 ElementToScreen(const IntVector2&);
  722. void EnableLayoutUpdate();
  723. uint FindChild(UIElement) const;
  724. Variant GetAttribute(const String&) const;
  725. ValueAnimation GetAttributeAnimation(const String&) const;
  726. float GetAttributeAnimationSpeed(const String&) const;
  727. float GetAttributeAnimationTime(const String&) const;
  728. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  729. Variant GetAttributeDefault(const String&) const;
  730. UIElement GetChild(const String&, bool = false) const;
  731. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  732. Array<UIElement> GetChildren(bool = false) const;
  733. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  734. UIElement GetElementEventSender() const;
  735. bool GetInterceptNetworkUpdate(const String&) const;
  736. uint GetNumChildren(bool) const;
  737. bool HasSubscribedToEvent(Object, const String&);
  738. bool HasSubscribedToEvent(const String&);
  739. bool HasTag(const String&) const;
  740. void InsertChild(uint, UIElement);
  741. bool IsInside(IntVector2, bool);
  742. bool IsInsideCombined(IntVector2, bool);
  743. bool Load(File, bool = false);
  744. bool Load(VectorBuffer&, bool = false);
  745. bool LoadChildXML(XMLFile, XMLFile = null);
  746. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  747. bool LoadJSON(const JSONValue&, bool = false);
  748. bool LoadXML(File);
  749. bool LoadXML(VectorBuffer&);
  750. bool LoadXML(XMLFile, XMLFile);
  751. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  752. bool LoadXML(const XMLElement&, bool = false);
  753. void MarkNetworkUpdate() const;
  754. void Remove();
  755. void RemoveAllChildren();
  756. void RemoveAllTags();
  757. void RemoveAttributeAnimation(const String&);
  758. void RemoveChild(UIElement, uint = 0);
  759. void RemoveChild(uint);
  760. void RemoveInstanceDefault();
  761. void RemoveObjectAnimation();
  762. bool RemoveTag(const String&);
  763. void ResetDeepEnabled();
  764. void ResetToDefault();
  765. bool Save(File) const;
  766. bool Save(VectorBuffer&) const;
  767. bool SaveJSON(JSONValue&) const;
  768. bool SaveXML(File, const String& = "\t");
  769. bool SaveXML(VectorBuffer&, const String& = "\t");
  770. bool SaveXML(XMLElement&) const;
  771. IntVector2 ScreenToElement(const IntVector2&);
  772. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  773. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  774. void SetAnimationTime(float);
  775. bool SetAttribute(const String&, const Variant&);
  776. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  777. void SetAttributeAnimationSpeed(const String&, float);
  778. void SetAttributeAnimationTime(const String&, float);
  779. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  780. void SetDeepEnabled(bool);
  781. void SetEnabledRecursive(bool);
  782. void SetFixedHeight(int);
  783. void SetFixedSize(int, int);
  784. void SetFixedWidth(int);
  785. void SetFullImageRect();
  786. void SetHoverOffset(int, int);
  787. void SetInterceptNetworkUpdate(const String&, bool);
  788. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  789. void SetMaxSize(int, int);
  790. void SetMinSize(int, int);
  791. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  792. void SetPosition(int, int);
  793. void SetSize(int, int);
  794. bool SetStyle(const String&, XMLFile = null);
  795. bool SetStyle(const XMLElement&);
  796. bool SetStyleAuto(XMLFile = null);
  797. void UpdateLayout();
  798. const Variant& GetVar(const StringHash&);
  799. // Properties:
  800. bool animationEnabled;
  801. /* readonly */
  802. Array<Variant> attributeDefaults;
  803. /* readonly */
  804. Array<AttributeInfo> attributeInfos;
  805. Array<Variant> attributes;
  806. BlendMode blendMode;
  807. IntRect border;
  808. bool bringToBack;
  809. bool bringToFront;
  810. /* readonly */
  811. String category;
  812. /* readonly */
  813. IntVector2 childOffset;
  814. /* readonly */
  815. Array<UIElement> children;
  816. IntRect clipBorder;
  817. bool clipChildren;
  818. /* writeonly */
  819. Color color;
  820. /* readonly */
  821. bool colorGradient;
  822. Array<Color> colors;
  823. /* readonly */
  824. IntRect combinedScreenRect;
  825. XMLFile defaultStyle;
  826. /* readonly */
  827. float derivedOpacity;
  828. /* readonly */
  829. uint dragButtonCombo;
  830. /* readonly */
  831. int dragButtonCount;
  832. uint dragDropMode;
  833. bool editable;
  834. bool elementEventSender;
  835. bool enabled;
  836. /* readonly */
  837. bool enabledSelf;
  838. /* readonly */
  839. bool fixedHeight;
  840. /* readonly */
  841. bool fixedSize;
  842. /* readonly */
  843. bool fixedWidth;
  844. bool focus;
  845. FocusMode focusMode;
  846. int height;
  847. HorizontalAlignment horizontalAlignment;
  848. IntVector2 hoverOffset;
  849. /* readonly */
  850. bool hovering;
  851. IntRect imageBorder;
  852. IntRect imageRect;
  853. int indent;
  854. int indentSpacing;
  855. /* readonly */
  856. int indentWidth;
  857. bool internal;
  858. IntRect layoutBorder;
  859. Vector2 layoutFlexScale;
  860. LayoutMode layoutMode;
  861. int layoutSpacing;
  862. int maxHeight;
  863. IntVector2 maxSize;
  864. int maxWidth;
  865. int minHeight;
  866. IntVector2 minSize;
  867. int minWidth;
  868. String name;
  869. /* readonly */
  870. uint numAllChildren;
  871. /* readonly */
  872. uint numAttributes;
  873. /* readonly */
  874. uint numChildren;
  875. ObjectAnimation objectAnimation;
  876. float opacity;
  877. UIElement parent;
  878. IntVector2 position;
  879. int priority;
  880. /* readonly */
  881. int refs;
  882. /* readonly */
  883. UIElement root;
  884. /* readonly */
  885. IntVector2 screenPosition;
  886. bool selected;
  887. IntVector2 size;
  888. bool sortChildren;
  889. String style;
  890. /* readonly */
  891. Array<String> tags;
  892. bool temporary;
  893. Texture texture;
  894. bool tiled;
  895. TraversalMode traversalMode;
  896. /* readonly */
  897. StringHash type;
  898. /* readonly */
  899. String typeName;
  900. bool useDerivedOpacity;
  901. /* readonly */
  902. VariantMap vars;
  903. VerticalAlignment verticalAlignment;
  904. bool visible;
  905. /* readonly */
  906. bool visibleEffective;
  907. /* readonly */
  908. int weakRefs;
  909. int width;
  910. };
  911. class BoundingBox
  912. {
  913. // Methods:
  914. void Clear();
  915. void Clip(const BoundingBox&);
  916. void Define(const BoundingBox&);
  917. void Define(const Frustum&);
  918. void Define(const Polyhedron&);
  919. void Define(const Sphere&);
  920. void Define(const Vector3&);
  921. void Define(const Vector3&, const Vector3&);
  922. void Define(float, float);
  923. bool Defined() const;
  924. Intersection IsInside(const BoundingBox&) const;
  925. Intersection IsInside(const Sphere&) const;
  926. Intersection IsInside(const Vector3&) const;
  927. Intersection IsInsideFast(const BoundingBox&) const;
  928. Intersection IsInsideFast(const Sphere&) const;
  929. void Merge(const BoundingBox&);
  930. void Merge(const Frustum&);
  931. void Merge(const Polyhedron&);
  932. void Merge(const Sphere&);
  933. void Merge(const Vector3&);
  934. Rect Projected(const Matrix4&) const;
  935. String ToString() const;
  936. void Transform(const Matrix3&);
  937. void Transform(const Matrix3x4&);
  938. BoundingBox Transformed(const Matrix3&) const;
  939. BoundingBox Transformed(const Matrix3x4&) const;
  940. // Properties:
  941. /* readonly */
  942. Vector3 center;
  943. /* readonly */
  944. Vector3 halfSize;
  945. Vector3 max;
  946. Vector3 min;
  947. /* readonly */
  948. Vector3 size;
  949. };
  950. class Button
  951. {
  952. // Methods:
  953. void AddChild(UIElement);
  954. void AddTag(const String&);
  955. void AddTags(const String&, int8 = ';');
  956. void ApplyAttributes();
  957. void BringToFront();
  958. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  959. void DisableLayoutUpdate();
  960. IntVector2 ElementToScreen(const IntVector2&);
  961. void EnableLayoutUpdate();
  962. uint FindChild(UIElement) const;
  963. Variant GetAttribute(const String&) const;
  964. ValueAnimation GetAttributeAnimation(const String&) const;
  965. float GetAttributeAnimationSpeed(const String&) const;
  966. float GetAttributeAnimationTime(const String&) const;
  967. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  968. Variant GetAttributeDefault(const String&) const;
  969. UIElement GetChild(const String&, bool = false) const;
  970. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  971. Array<UIElement> GetChildren(bool = false) const;
  972. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  973. UIElement GetElementEventSender() const;
  974. bool GetInterceptNetworkUpdate(const String&) const;
  975. uint GetNumChildren(bool) const;
  976. bool HasSubscribedToEvent(Object, const String&);
  977. bool HasSubscribedToEvent(const String&);
  978. bool HasTag(const String&) const;
  979. void InsertChild(uint, UIElement);
  980. bool IsInside(IntVector2, bool);
  981. bool IsInsideCombined(IntVector2, bool);
  982. bool Load(File, bool = false);
  983. bool Load(VectorBuffer&, bool = false);
  984. bool LoadChildXML(XMLFile, XMLFile = null);
  985. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  986. bool LoadJSON(const JSONValue&, bool = false);
  987. bool LoadXML(File);
  988. bool LoadXML(VectorBuffer&);
  989. bool LoadXML(XMLFile, XMLFile);
  990. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  991. bool LoadXML(const XMLElement&, bool = false);
  992. void MarkNetworkUpdate() const;
  993. void Remove();
  994. void RemoveAllChildren();
  995. void RemoveAllTags();
  996. void RemoveAttributeAnimation(const String&);
  997. void RemoveChild(UIElement, uint = 0);
  998. void RemoveChild(uint);
  999. void RemoveInstanceDefault();
  1000. void RemoveObjectAnimation();
  1001. bool RemoveTag(const String&);
  1002. void ResetDeepEnabled();
  1003. void ResetToDefault();
  1004. bool Save(File) const;
  1005. bool Save(VectorBuffer&) const;
  1006. bool SaveJSON(JSONValue&) const;
  1007. bool SaveXML(File, const String& = "\t");
  1008. bool SaveXML(VectorBuffer&, const String& = "\t");
  1009. bool SaveXML(XMLElement&) const;
  1010. IntVector2 ScreenToElement(const IntVector2&);
  1011. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1012. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1013. void SetAnimationTime(float);
  1014. bool SetAttribute(const String&, const Variant&);
  1015. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1016. void SetAttributeAnimationSpeed(const String&, float);
  1017. void SetAttributeAnimationTime(const String&, float);
  1018. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1019. void SetDeepEnabled(bool);
  1020. void SetEnabledRecursive(bool);
  1021. void SetFixedHeight(int);
  1022. void SetFixedSize(int, int);
  1023. void SetFixedWidth(int);
  1024. void SetFullImageRect();
  1025. void SetHoverOffset(int, int);
  1026. void SetInterceptNetworkUpdate(const String&, bool);
  1027. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1028. void SetMaxSize(int, int);
  1029. void SetMinSize(int, int);
  1030. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1031. void SetPosition(int, int);
  1032. void SetPressedChildOffset(int, int);
  1033. void SetPressedOffset(int, int);
  1034. void SetRepeat(float, float);
  1035. void SetSize(int, int);
  1036. bool SetStyle(const String&, XMLFile = null);
  1037. bool SetStyle(const XMLElement&);
  1038. bool SetStyleAuto(XMLFile = null);
  1039. void UpdateLayout();
  1040. const Variant& GetVar(const StringHash&);
  1041. // Properties:
  1042. bool animationEnabled;
  1043. /* readonly */
  1044. Array<Variant> attributeDefaults;
  1045. /* readonly */
  1046. Array<AttributeInfo> attributeInfos;
  1047. Array<Variant> attributes;
  1048. BlendMode blendMode;
  1049. IntRect border;
  1050. bool bringToBack;
  1051. bool bringToFront;
  1052. /* readonly */
  1053. String category;
  1054. /* readonly */
  1055. IntVector2 childOffset;
  1056. /* readonly */
  1057. Array<UIElement> children;
  1058. IntRect clipBorder;
  1059. bool clipChildren;
  1060. /* writeonly */
  1061. Color color;
  1062. /* readonly */
  1063. bool colorGradient;
  1064. Array<Color> colors;
  1065. /* readonly */
  1066. IntRect combinedScreenRect;
  1067. XMLFile defaultStyle;
  1068. /* readonly */
  1069. float derivedOpacity;
  1070. /* readonly */
  1071. uint dragButtonCombo;
  1072. /* readonly */
  1073. int dragButtonCount;
  1074. uint dragDropMode;
  1075. bool editable;
  1076. bool elementEventSender;
  1077. bool enabled;
  1078. /* readonly */
  1079. bool enabledSelf;
  1080. /* readonly */
  1081. bool fixedHeight;
  1082. /* readonly */
  1083. bool fixedSize;
  1084. /* readonly */
  1085. bool fixedWidth;
  1086. bool focus;
  1087. FocusMode focusMode;
  1088. int height;
  1089. HorizontalAlignment horizontalAlignment;
  1090. IntVector2 hoverOffset;
  1091. /* readonly */
  1092. bool hovering;
  1093. IntRect imageBorder;
  1094. IntRect imageRect;
  1095. int indent;
  1096. int indentSpacing;
  1097. /* readonly */
  1098. int indentWidth;
  1099. bool internal;
  1100. IntRect layoutBorder;
  1101. Vector2 layoutFlexScale;
  1102. LayoutMode layoutMode;
  1103. int layoutSpacing;
  1104. int maxHeight;
  1105. IntVector2 maxSize;
  1106. int maxWidth;
  1107. int minHeight;
  1108. IntVector2 minSize;
  1109. int minWidth;
  1110. String name;
  1111. /* readonly */
  1112. uint numAllChildren;
  1113. /* readonly */
  1114. uint numAttributes;
  1115. /* readonly */
  1116. uint numChildren;
  1117. ObjectAnimation objectAnimation;
  1118. float opacity;
  1119. UIElement parent;
  1120. IntVector2 position;
  1121. /* readonly */
  1122. bool pressed;
  1123. IntVector2 pressedChildOffset;
  1124. IntVector2 pressedOffset;
  1125. int priority;
  1126. /* readonly */
  1127. int refs;
  1128. float repeatDelay;
  1129. float repeatRate;
  1130. /* readonly */
  1131. UIElement root;
  1132. /* readonly */
  1133. IntVector2 screenPosition;
  1134. bool selected;
  1135. IntVector2 size;
  1136. bool sortChildren;
  1137. String style;
  1138. /* readonly */
  1139. Array<String> tags;
  1140. bool temporary;
  1141. Texture texture;
  1142. bool tiled;
  1143. TraversalMode traversalMode;
  1144. /* readonly */
  1145. StringHash type;
  1146. /* readonly */
  1147. String typeName;
  1148. bool useDerivedOpacity;
  1149. /* readonly */
  1150. VariantMap vars;
  1151. VerticalAlignment verticalAlignment;
  1152. bool visible;
  1153. /* readonly */
  1154. bool visibleEffective;
  1155. /* readonly */
  1156. int weakRefs;
  1157. int width;
  1158. };
  1159. class Camera
  1160. {
  1161. // Methods:
  1162. void ApplyAttributes();
  1163. void DrawDebugGeometry(DebugRenderer, bool);
  1164. Variant GetAttribute(const String&) const;
  1165. ValueAnimation GetAttributeAnimation(const String&) const;
  1166. float GetAttributeAnimationSpeed(const String&) const;
  1167. float GetAttributeAnimationTime(const String&) const;
  1168. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1169. Variant GetAttributeDefault(const String&) const;
  1170. float GetDistance(const Vector3&) const;
  1171. float GetDistanceSquared(const Vector3&) const;
  1172. bool GetInterceptNetworkUpdate(const String&) const;
  1173. Ray GetScreenRay(float, float) const;
  1174. Frustum GetSplitFrustum(float, float) const;
  1175. bool HasSubscribedToEvent(Object, const String&);
  1176. bool HasSubscribedToEvent(const String&);
  1177. bool Load(File, bool = false);
  1178. bool Load(VectorBuffer&, bool = false);
  1179. bool LoadJSON(const JSONValue&, bool = false);
  1180. bool LoadXML(const XMLElement&, bool = false);
  1181. void MarkNetworkUpdate() const;
  1182. void Remove();
  1183. void RemoveAttributeAnimation(const String&);
  1184. void RemoveInstanceDefault();
  1185. void RemoveObjectAnimation();
  1186. void ResetToDefault();
  1187. bool Save(File) const;
  1188. bool Save(VectorBuffer&) const;
  1189. bool SaveJSON(JSONValue&) const;
  1190. bool SaveXML(XMLElement&) const;
  1191. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1192. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1193. void SetAnimationTime(float);
  1194. bool SetAttribute(const String&, const Variant&);
  1195. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1196. void SetAttributeAnimationSpeed(const String&, float);
  1197. void SetAttributeAnimationTime(const String&, float);
  1198. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1199. void SetInterceptNetworkUpdate(const String&, bool);
  1200. void SetOrthoSize(const Vector2&);
  1201. Vector2 WorldToScreenPoint(const Vector3&) const;
  1202. // Properties:
  1203. bool animationEnabled;
  1204. float aspectRatio;
  1205. /* readonly */
  1206. Array<Variant> attributeDefaults;
  1207. /* readonly */
  1208. Array<AttributeInfo> attributeInfos;
  1209. Array<Variant> attributes;
  1210. bool autoAspectRatio;
  1211. /* readonly */
  1212. String category;
  1213. Plane clipPlane;
  1214. /* readonly */
  1215. Matrix3x4 effectiveWorldTransform;
  1216. bool enabled;
  1217. /* readonly */
  1218. bool enabledEffective;
  1219. float farClip;
  1220. FillMode fillMode;
  1221. float fov;
  1222. /* readonly */
  1223. Frustum frustum;
  1224. /* readonly */
  1225. float halfViewSize;
  1226. /* readonly */
  1227. uint id;
  1228. float lodBias;
  1229. float nearClip;
  1230. /* readonly */
  1231. Node node;
  1232. /* readonly */
  1233. uint numAttributes;
  1234. ObjectAnimation objectAnimation;
  1235. float orthoSize;
  1236. bool orthographic;
  1237. /* readonly */
  1238. Matrix4 projection;
  1239. Vector2 projectionOffset;
  1240. Plane reflectionPlane;
  1241. /* readonly */
  1242. int refs;
  1243. bool temporary;
  1244. /* readonly */
  1245. StringHash type;
  1246. /* readonly */
  1247. String typeName;
  1248. bool useClipping;
  1249. bool useReflection;
  1250. /* readonly */
  1251. Matrix3x4 view;
  1252. uint viewMask;
  1253. uint viewOverrideFlags;
  1254. /* readonly */
  1255. Frustum viewSpaceFrustum;
  1256. /* readonly */
  1257. int weakRefs;
  1258. float zoom;
  1259. };
  1260. class CascadeParameters
  1261. {
  1262. // Properties:
  1263. float biasAutoAdjust;
  1264. float fadeStart;
  1265. float split1;
  1266. float split2;
  1267. float split3;
  1268. float split4;
  1269. };
  1270. class CheckBox
  1271. {
  1272. // Methods:
  1273. void AddChild(UIElement);
  1274. void AddTag(const String&);
  1275. void AddTags(const String&, int8 = ';');
  1276. void ApplyAttributes();
  1277. void BringToFront();
  1278. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1279. void DisableLayoutUpdate();
  1280. IntVector2 ElementToScreen(const IntVector2&);
  1281. void EnableLayoutUpdate();
  1282. uint FindChild(UIElement) const;
  1283. Variant GetAttribute(const String&) const;
  1284. ValueAnimation GetAttributeAnimation(const String&) const;
  1285. float GetAttributeAnimationSpeed(const String&) const;
  1286. float GetAttributeAnimationTime(const String&) const;
  1287. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1288. Variant GetAttributeDefault(const String&) const;
  1289. UIElement GetChild(const String&, bool = false) const;
  1290. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1291. Array<UIElement> GetChildren(bool = false) const;
  1292. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1293. UIElement GetElementEventSender() const;
  1294. bool GetInterceptNetworkUpdate(const String&) const;
  1295. uint GetNumChildren(bool) const;
  1296. bool HasSubscribedToEvent(Object, const String&);
  1297. bool HasSubscribedToEvent(const String&);
  1298. bool HasTag(const String&) const;
  1299. void InsertChild(uint, UIElement);
  1300. bool IsInside(IntVector2, bool);
  1301. bool IsInsideCombined(IntVector2, bool);
  1302. bool Load(File, bool = false);
  1303. bool Load(VectorBuffer&, bool = false);
  1304. bool LoadChildXML(XMLFile, XMLFile = null);
  1305. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1306. bool LoadJSON(const JSONValue&, bool = false);
  1307. bool LoadXML(File);
  1308. bool LoadXML(VectorBuffer&);
  1309. bool LoadXML(XMLFile, XMLFile);
  1310. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1311. bool LoadXML(const XMLElement&, bool = false);
  1312. void MarkNetworkUpdate() const;
  1313. void Remove();
  1314. void RemoveAllChildren();
  1315. void RemoveAllTags();
  1316. void RemoveAttributeAnimation(const String&);
  1317. void RemoveChild(UIElement, uint = 0);
  1318. void RemoveChild(uint);
  1319. void RemoveInstanceDefault();
  1320. void RemoveObjectAnimation();
  1321. bool RemoveTag(const String&);
  1322. void ResetDeepEnabled();
  1323. void ResetToDefault();
  1324. bool Save(File) const;
  1325. bool Save(VectorBuffer&) const;
  1326. bool SaveJSON(JSONValue&) const;
  1327. bool SaveXML(File, const String& = "\t");
  1328. bool SaveXML(VectorBuffer&, const String& = "\t");
  1329. bool SaveXML(XMLElement&) const;
  1330. IntVector2 ScreenToElement(const IntVector2&);
  1331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1332. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1333. void SetAnimationTime(float);
  1334. bool SetAttribute(const String&, const Variant&);
  1335. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1336. void SetAttributeAnimationSpeed(const String&, float);
  1337. void SetAttributeAnimationTime(const String&, float);
  1338. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1339. void SetCheckedOffset(int, int);
  1340. void SetDeepEnabled(bool);
  1341. void SetEnabledRecursive(bool);
  1342. void SetFixedHeight(int);
  1343. void SetFixedSize(int, int);
  1344. void SetFixedWidth(int);
  1345. void SetFullImageRect();
  1346. void SetHoverOffset(int, int);
  1347. void SetInterceptNetworkUpdate(const String&, bool);
  1348. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1349. void SetMaxSize(int, int);
  1350. void SetMinSize(int, int);
  1351. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1352. void SetPosition(int, int);
  1353. void SetSize(int, int);
  1354. bool SetStyle(const String&, XMLFile = null);
  1355. bool SetStyle(const XMLElement&);
  1356. bool SetStyleAuto(XMLFile = null);
  1357. void UpdateLayout();
  1358. const Variant& GetVar(const StringHash&);
  1359. // Properties:
  1360. bool animationEnabled;
  1361. /* readonly */
  1362. Array<Variant> attributeDefaults;
  1363. /* readonly */
  1364. Array<AttributeInfo> attributeInfos;
  1365. Array<Variant> attributes;
  1366. BlendMode blendMode;
  1367. IntRect border;
  1368. bool bringToBack;
  1369. bool bringToFront;
  1370. /* readonly */
  1371. String category;
  1372. bool checked;
  1373. IntVector2 checkedOffset;
  1374. /* readonly */
  1375. IntVector2 childOffset;
  1376. /* readonly */
  1377. Array<UIElement> children;
  1378. IntRect clipBorder;
  1379. bool clipChildren;
  1380. /* writeonly */
  1381. Color color;
  1382. /* readonly */
  1383. bool colorGradient;
  1384. Array<Color> colors;
  1385. /* readonly */
  1386. IntRect combinedScreenRect;
  1387. XMLFile defaultStyle;
  1388. /* readonly */
  1389. float derivedOpacity;
  1390. /* readonly */
  1391. uint dragButtonCombo;
  1392. /* readonly */
  1393. int dragButtonCount;
  1394. uint dragDropMode;
  1395. bool editable;
  1396. bool elementEventSender;
  1397. bool enabled;
  1398. /* readonly */
  1399. bool enabledSelf;
  1400. /* readonly */
  1401. bool fixedHeight;
  1402. /* readonly */
  1403. bool fixedSize;
  1404. /* readonly */
  1405. bool fixedWidth;
  1406. bool focus;
  1407. FocusMode focusMode;
  1408. int height;
  1409. HorizontalAlignment horizontalAlignment;
  1410. IntVector2 hoverOffset;
  1411. /* readonly */
  1412. bool hovering;
  1413. IntRect imageBorder;
  1414. IntRect imageRect;
  1415. int indent;
  1416. int indentSpacing;
  1417. /* readonly */
  1418. int indentWidth;
  1419. bool internal;
  1420. IntRect layoutBorder;
  1421. Vector2 layoutFlexScale;
  1422. LayoutMode layoutMode;
  1423. int layoutSpacing;
  1424. int maxHeight;
  1425. IntVector2 maxSize;
  1426. int maxWidth;
  1427. int minHeight;
  1428. IntVector2 minSize;
  1429. int minWidth;
  1430. String name;
  1431. /* readonly */
  1432. uint numAllChildren;
  1433. /* readonly */
  1434. uint numAttributes;
  1435. /* readonly */
  1436. uint numChildren;
  1437. ObjectAnimation objectAnimation;
  1438. float opacity;
  1439. UIElement parent;
  1440. IntVector2 position;
  1441. int priority;
  1442. /* readonly */
  1443. int refs;
  1444. /* readonly */
  1445. UIElement root;
  1446. /* readonly */
  1447. IntVector2 screenPosition;
  1448. bool selected;
  1449. IntVector2 size;
  1450. bool sortChildren;
  1451. String style;
  1452. /* readonly */
  1453. Array<String> tags;
  1454. bool temporary;
  1455. Texture texture;
  1456. bool tiled;
  1457. TraversalMode traversalMode;
  1458. /* readonly */
  1459. StringHash type;
  1460. /* readonly */
  1461. String typeName;
  1462. bool useDerivedOpacity;
  1463. /* readonly */
  1464. VariantMap vars;
  1465. VerticalAlignment verticalAlignment;
  1466. bool visible;
  1467. /* readonly */
  1468. bool visibleEffective;
  1469. /* readonly */
  1470. int weakRefs;
  1471. int width;
  1472. };
  1473. class CollisionBox2D
  1474. {
  1475. // Methods:
  1476. void ApplyAttributes();
  1477. void DrawDebugGeometry(DebugRenderer, bool);
  1478. Variant GetAttribute(const String&) const;
  1479. ValueAnimation GetAttributeAnimation(const String&) const;
  1480. float GetAttributeAnimationSpeed(const String&) const;
  1481. float GetAttributeAnimationTime(const String&) const;
  1482. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1483. Variant GetAttributeDefault(const String&) const;
  1484. bool GetInterceptNetworkUpdate(const String&) const;
  1485. bool HasSubscribedToEvent(Object, const String&);
  1486. bool HasSubscribedToEvent(const String&);
  1487. bool Load(File, bool = false);
  1488. bool Load(VectorBuffer&, bool = false);
  1489. bool LoadJSON(const JSONValue&, bool = false);
  1490. bool LoadXML(const XMLElement&, bool = false);
  1491. void MarkNetworkUpdate() const;
  1492. void Remove();
  1493. void RemoveAttributeAnimation(const String&);
  1494. void RemoveInstanceDefault();
  1495. void RemoveObjectAnimation();
  1496. void ResetToDefault();
  1497. bool Save(File) const;
  1498. bool Save(VectorBuffer&) const;
  1499. bool SaveJSON(JSONValue&) const;
  1500. bool SaveXML(XMLElement&) const;
  1501. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1502. void SetAnimationTime(float);
  1503. bool SetAttribute(const String&, const Variant&);
  1504. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1505. void SetAttributeAnimationSpeed(const String&, float);
  1506. void SetAttributeAnimationTime(const String&, float);
  1507. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1508. void SetCenter(float, float);
  1509. void SetInterceptNetworkUpdate(const String&, bool);
  1510. void SetSize(float, float);
  1511. // Properties:
  1512. float angle;
  1513. bool animationEnabled;
  1514. /* readonly */
  1515. Array<Variant> attributeDefaults;
  1516. /* readonly */
  1517. Array<AttributeInfo> attributeInfos;
  1518. Array<Variant> attributes;
  1519. /* readonly */
  1520. String category;
  1521. int categoryBits;
  1522. Vector2 center;
  1523. float density;
  1524. bool enabled;
  1525. /* readonly */
  1526. bool enabledEffective;
  1527. float friction;
  1528. int groupIndex;
  1529. /* readonly */
  1530. uint id;
  1531. /* readonly */
  1532. float inertia;
  1533. int maskBits;
  1534. /* readonly */
  1535. float mass;
  1536. /* readonly */
  1537. Vector2 massCenter;
  1538. /* readonly */
  1539. Node node;
  1540. /* readonly */
  1541. uint numAttributes;
  1542. ObjectAnimation objectAnimation;
  1543. /* readonly */
  1544. int refs;
  1545. float restitution;
  1546. Vector2 size;
  1547. bool temporary;
  1548. bool trigger;
  1549. /* readonly */
  1550. StringHash type;
  1551. /* readonly */
  1552. String typeName;
  1553. /* readonly */
  1554. int weakRefs;
  1555. };
  1556. class CollisionChain2D
  1557. {
  1558. // Methods:
  1559. void ApplyAttributes();
  1560. void DrawDebugGeometry(DebugRenderer, bool);
  1561. Variant GetAttribute(const String&) const;
  1562. ValueAnimation GetAttributeAnimation(const String&) const;
  1563. float GetAttributeAnimationSpeed(const String&) const;
  1564. float GetAttributeAnimationTime(const String&) const;
  1565. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1566. Variant GetAttributeDefault(const String&) const;
  1567. bool GetInterceptNetworkUpdate(const String&) const;
  1568. Array<Vector2> GetVertices() const;
  1569. bool HasSubscribedToEvent(Object, const String&);
  1570. bool HasSubscribedToEvent(const String&);
  1571. bool Load(File, bool = false);
  1572. bool Load(VectorBuffer&, bool = false);
  1573. bool LoadJSON(const JSONValue&, bool = false);
  1574. bool LoadXML(const XMLElement&, bool = false);
  1575. void MarkNetworkUpdate() const;
  1576. void Remove();
  1577. void RemoveAttributeAnimation(const String&);
  1578. void RemoveInstanceDefault();
  1579. void RemoveObjectAnimation();
  1580. void ResetToDefault();
  1581. bool Save(File) const;
  1582. bool Save(VectorBuffer&) const;
  1583. bool SaveJSON(JSONValue&) const;
  1584. bool SaveXML(XMLElement&) const;
  1585. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1586. void SetAnimationTime(float);
  1587. bool SetAttribute(const String&, const Variant&);
  1588. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1589. void SetAttributeAnimationSpeed(const String&, float);
  1590. void SetAttributeAnimationTime(const String&, float);
  1591. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1592. void SetInterceptNetworkUpdate(const String&, bool);
  1593. void SetVertex(uint, const Vector2&);
  1594. void SetVertices(Array<Vector2>);
  1595. const Vector2& GetVertex(uint) const;
  1596. // Properties:
  1597. bool animationEnabled;
  1598. /* readonly */
  1599. Array<Variant> attributeDefaults;
  1600. /* readonly */
  1601. Array<AttributeInfo> attributeInfos;
  1602. Array<Variant> attributes;
  1603. /* readonly */
  1604. String category;
  1605. int categoryBits;
  1606. float density;
  1607. bool enabled;
  1608. /* readonly */
  1609. bool enabledEffective;
  1610. float friction;
  1611. int groupIndex;
  1612. /* readonly */
  1613. uint id;
  1614. /* readonly */
  1615. float inertia;
  1616. bool loop;
  1617. int maskBits;
  1618. /* readonly */
  1619. float mass;
  1620. /* readonly */
  1621. Vector2 massCenter;
  1622. /* readonly */
  1623. Node node;
  1624. /* readonly */
  1625. uint numAttributes;
  1626. ObjectAnimation objectAnimation;
  1627. /* readonly */
  1628. int refs;
  1629. float restitution;
  1630. bool temporary;
  1631. bool trigger;
  1632. /* readonly */
  1633. StringHash type;
  1634. /* readonly */
  1635. String typeName;
  1636. uint vertexCount;
  1637. /* readonly */
  1638. int weakRefs;
  1639. };
  1640. class CollisionCircle2D
  1641. {
  1642. // Methods:
  1643. void ApplyAttributes();
  1644. void DrawDebugGeometry(DebugRenderer, bool);
  1645. Variant GetAttribute(const String&) const;
  1646. ValueAnimation GetAttributeAnimation(const String&) const;
  1647. float GetAttributeAnimationSpeed(const String&) const;
  1648. float GetAttributeAnimationTime(const String&) const;
  1649. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1650. Variant GetAttributeDefault(const String&) const;
  1651. bool GetInterceptNetworkUpdate(const String&) const;
  1652. bool HasSubscribedToEvent(Object, const String&);
  1653. bool HasSubscribedToEvent(const String&);
  1654. bool Load(File, bool = false);
  1655. bool Load(VectorBuffer&, bool = false);
  1656. bool LoadJSON(const JSONValue&, bool = false);
  1657. bool LoadXML(const XMLElement&, bool = false);
  1658. void MarkNetworkUpdate() const;
  1659. void Remove();
  1660. void RemoveAttributeAnimation(const String&);
  1661. void RemoveInstanceDefault();
  1662. void RemoveObjectAnimation();
  1663. void ResetToDefault();
  1664. bool Save(File) const;
  1665. bool Save(VectorBuffer&) const;
  1666. bool SaveJSON(JSONValue&) const;
  1667. bool SaveXML(XMLElement&) const;
  1668. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1669. void SetAnimationTime(float);
  1670. bool SetAttribute(const String&, const Variant&);
  1671. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1672. void SetAttributeAnimationSpeed(const String&, float);
  1673. void SetAttributeAnimationTime(const String&, float);
  1674. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1675. void SetCenter(float, float);
  1676. void SetInterceptNetworkUpdate(const String&, bool);
  1677. // Properties:
  1678. bool animationEnabled;
  1679. /* readonly */
  1680. Array<Variant> attributeDefaults;
  1681. /* readonly */
  1682. Array<AttributeInfo> attributeInfos;
  1683. Array<Variant> attributes;
  1684. /* readonly */
  1685. String category;
  1686. int categoryBits;
  1687. Vector2 center;
  1688. float density;
  1689. bool enabled;
  1690. /* readonly */
  1691. bool enabledEffective;
  1692. float friction;
  1693. int groupIndex;
  1694. /* readonly */
  1695. uint id;
  1696. /* readonly */
  1697. float inertia;
  1698. int maskBits;
  1699. /* readonly */
  1700. float mass;
  1701. /* readonly */
  1702. Vector2 massCenter;
  1703. /* readonly */
  1704. Node node;
  1705. /* readonly */
  1706. uint numAttributes;
  1707. ObjectAnimation objectAnimation;
  1708. float radius;
  1709. /* readonly */
  1710. int refs;
  1711. float restitution;
  1712. bool temporary;
  1713. bool trigger;
  1714. /* readonly */
  1715. StringHash type;
  1716. /* readonly */
  1717. String typeName;
  1718. /* readonly */
  1719. int weakRefs;
  1720. };
  1721. class CollisionEdge2D
  1722. {
  1723. // Methods:
  1724. void ApplyAttributes();
  1725. void DrawDebugGeometry(DebugRenderer, bool);
  1726. Variant GetAttribute(const String&) const;
  1727. ValueAnimation GetAttributeAnimation(const String&) const;
  1728. float GetAttributeAnimationSpeed(const String&) const;
  1729. float GetAttributeAnimationTime(const String&) const;
  1730. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1731. Variant GetAttributeDefault(const String&) const;
  1732. bool GetInterceptNetworkUpdate(const String&) const;
  1733. bool HasSubscribedToEvent(Object, const String&);
  1734. bool HasSubscribedToEvent(const String&);
  1735. bool Load(File, bool = false);
  1736. bool Load(VectorBuffer&, bool = false);
  1737. bool LoadJSON(const JSONValue&, bool = false);
  1738. bool LoadXML(const XMLElement&, bool = false);
  1739. void MarkNetworkUpdate() const;
  1740. void Remove();
  1741. void RemoveAttributeAnimation(const String&);
  1742. void RemoveInstanceDefault();
  1743. void RemoveObjectAnimation();
  1744. void ResetToDefault();
  1745. bool Save(File) const;
  1746. bool Save(VectorBuffer&) const;
  1747. bool SaveJSON(JSONValue&) const;
  1748. bool SaveXML(XMLElement&) const;
  1749. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1750. void SetAnimationTime(float);
  1751. bool SetAttribute(const String&, const Variant&);
  1752. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1753. void SetAttributeAnimationSpeed(const String&, float);
  1754. void SetAttributeAnimationTime(const String&, float);
  1755. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1756. void SetInterceptNetworkUpdate(const String&, bool);
  1757. void SetVertices(const Vector2&, const Vector2&);
  1758. // Properties:
  1759. bool animationEnabled;
  1760. /* readonly */
  1761. Array<Variant> attributeDefaults;
  1762. /* readonly */
  1763. Array<AttributeInfo> attributeInfos;
  1764. Array<Variant> attributes;
  1765. /* readonly */
  1766. String category;
  1767. int categoryBits;
  1768. float density;
  1769. bool enabled;
  1770. /* readonly */
  1771. bool enabledEffective;
  1772. float friction;
  1773. int groupIndex;
  1774. /* readonly */
  1775. uint id;
  1776. /* readonly */
  1777. float inertia;
  1778. int maskBits;
  1779. /* readonly */
  1780. float mass;
  1781. /* readonly */
  1782. Vector2 massCenter;
  1783. /* readonly */
  1784. Node node;
  1785. /* readonly */
  1786. uint numAttributes;
  1787. ObjectAnimation objectAnimation;
  1788. /* readonly */
  1789. int refs;
  1790. float restitution;
  1791. bool temporary;
  1792. bool trigger;
  1793. /* readonly */
  1794. StringHash type;
  1795. /* readonly */
  1796. String typeName;
  1797. Vector2 vertex1;
  1798. Vector2 vertex2;
  1799. /* readonly */
  1800. int weakRefs;
  1801. };
  1802. class CollisionPolygon2D
  1803. {
  1804. // Methods:
  1805. void ApplyAttributes();
  1806. void DrawDebugGeometry(DebugRenderer, bool);
  1807. Variant GetAttribute(const String&) const;
  1808. ValueAnimation GetAttributeAnimation(const String&) const;
  1809. float GetAttributeAnimationSpeed(const String&) const;
  1810. float GetAttributeAnimationTime(const String&) const;
  1811. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1812. Variant GetAttributeDefault(const String&) const;
  1813. bool GetInterceptNetworkUpdate(const String&) const;
  1814. Array<Vector2> GetVertices() const;
  1815. bool HasSubscribedToEvent(Object, const String&);
  1816. bool HasSubscribedToEvent(const String&);
  1817. bool Load(File, bool = false);
  1818. bool Load(VectorBuffer&, bool = false);
  1819. bool LoadJSON(const JSONValue&, bool = false);
  1820. bool LoadXML(const XMLElement&, bool = false);
  1821. void MarkNetworkUpdate() const;
  1822. void Remove();
  1823. void RemoveAttributeAnimation(const String&);
  1824. void RemoveInstanceDefault();
  1825. void RemoveObjectAnimation();
  1826. void ResetToDefault();
  1827. bool Save(File) const;
  1828. bool Save(VectorBuffer&) const;
  1829. bool SaveJSON(JSONValue&) const;
  1830. bool SaveXML(XMLElement&) const;
  1831. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1832. void SetAnimationTime(float);
  1833. bool SetAttribute(const String&, const Variant&);
  1834. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1835. void SetAttributeAnimationSpeed(const String&, float);
  1836. void SetAttributeAnimationTime(const String&, float);
  1837. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1838. void SetInterceptNetworkUpdate(const String&, bool);
  1839. void SetVertex(uint, const Vector2&);
  1840. void SetVertices(Array<Vector2>);
  1841. const Vector2& GetVertex(uint) const;
  1842. // Properties:
  1843. bool animationEnabled;
  1844. /* readonly */
  1845. Array<Variant> attributeDefaults;
  1846. /* readonly */
  1847. Array<AttributeInfo> attributeInfos;
  1848. Array<Variant> attributes;
  1849. /* readonly */
  1850. String category;
  1851. int categoryBits;
  1852. float density;
  1853. bool enabled;
  1854. /* readonly */
  1855. bool enabledEffective;
  1856. float friction;
  1857. int groupIndex;
  1858. /* readonly */
  1859. uint id;
  1860. /* readonly */
  1861. float inertia;
  1862. int maskBits;
  1863. /* readonly */
  1864. float mass;
  1865. /* readonly */
  1866. Vector2 massCenter;
  1867. /* readonly */
  1868. Node node;
  1869. /* readonly */
  1870. uint numAttributes;
  1871. ObjectAnimation objectAnimation;
  1872. /* readonly */
  1873. int refs;
  1874. float restitution;
  1875. bool temporary;
  1876. bool trigger;
  1877. /* readonly */
  1878. StringHash type;
  1879. /* readonly */
  1880. String typeName;
  1881. uint vertexCount;
  1882. /* readonly */
  1883. int weakRefs;
  1884. };
  1885. class CollisionShape
  1886. {
  1887. // Methods:
  1888. void ApplyAttributes();
  1889. void DrawDebugGeometry(DebugRenderer, bool);
  1890. Variant GetAttribute(const String&) const;
  1891. ValueAnimation GetAttributeAnimation(const String&) const;
  1892. float GetAttributeAnimationSpeed(const String&) const;
  1893. float GetAttributeAnimationTime(const String&) const;
  1894. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1895. Variant GetAttributeDefault(const String&) const;
  1896. bool GetInterceptNetworkUpdate(const String&) const;
  1897. bool HasSubscribedToEvent(Object, const String&);
  1898. bool HasSubscribedToEvent(const String&);
  1899. bool Load(File, bool = false);
  1900. bool Load(VectorBuffer&, bool = false);
  1901. bool LoadJSON(const JSONValue&, bool = false);
  1902. bool LoadXML(const XMLElement&, bool = false);
  1903. void MarkNetworkUpdate() const;
  1904. void Remove();
  1905. void RemoveAttributeAnimation(const String&);
  1906. void RemoveInstanceDefault();
  1907. void RemoveObjectAnimation();
  1908. void ResetToDefault();
  1909. bool Save(File) const;
  1910. bool Save(VectorBuffer&) const;
  1911. bool SaveJSON(JSONValue&) const;
  1912. bool SaveXML(XMLElement&) const;
  1913. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1914. void SetAnimationTime(float);
  1915. bool SetAttribute(const String&, const Variant&);
  1916. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1917. void SetAttributeAnimationSpeed(const String&, float);
  1918. void SetAttributeAnimationTime(const String&, float);
  1919. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1920. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1921. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1922. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1923. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1924. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1925. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1926. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1927. void SetInterceptNetworkUpdate(const String&, bool);
  1928. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1929. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1930. void SetTerrain(uint = 0);
  1931. void SetTransform(const Vector3&, const Quaternion&);
  1932. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1933. // Properties:
  1934. bool animationEnabled;
  1935. /* readonly */
  1936. Array<Variant> attributeDefaults;
  1937. /* readonly */
  1938. Array<AttributeInfo> attributeInfos;
  1939. Array<Variant> attributes;
  1940. /* readonly */
  1941. String category;
  1942. bool enabled;
  1943. /* readonly */
  1944. bool enabledEffective;
  1945. /* readonly */
  1946. uint id;
  1947. uint lodLevel;
  1948. float margin;
  1949. Model model;
  1950. /* readonly */
  1951. Node node;
  1952. /* readonly */
  1953. uint numAttributes;
  1954. ObjectAnimation objectAnimation;
  1955. Vector3 position;
  1956. /* readonly */
  1957. int refs;
  1958. Quaternion rotation;
  1959. ShapeType shapeType;
  1960. Vector3 size;
  1961. bool temporary;
  1962. /* readonly */
  1963. StringHash type;
  1964. /* readonly */
  1965. String typeName;
  1966. /* readonly */
  1967. int weakRefs;
  1968. /* readonly */
  1969. BoundingBox worldBoundingBox;
  1970. };
  1971. class CollisionShape2D
  1972. {
  1973. // Methods:
  1974. void ApplyAttributes();
  1975. void DrawDebugGeometry(DebugRenderer, bool);
  1976. Variant GetAttribute(const String&) const;
  1977. ValueAnimation GetAttributeAnimation(const String&) const;
  1978. float GetAttributeAnimationSpeed(const String&) const;
  1979. float GetAttributeAnimationTime(const String&) const;
  1980. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1981. Variant GetAttributeDefault(const String&) const;
  1982. bool GetInterceptNetworkUpdate(const String&) const;
  1983. bool HasSubscribedToEvent(Object, const String&);
  1984. bool HasSubscribedToEvent(const String&);
  1985. bool Load(File, bool = false);
  1986. bool Load(VectorBuffer&, bool = false);
  1987. bool LoadJSON(const JSONValue&, bool = false);
  1988. bool LoadXML(const XMLElement&, bool = false);
  1989. void MarkNetworkUpdate() const;
  1990. void Remove();
  1991. void RemoveAttributeAnimation(const String&);
  1992. void RemoveInstanceDefault();
  1993. void RemoveObjectAnimation();
  1994. void ResetToDefault();
  1995. bool Save(File) const;
  1996. bool Save(VectorBuffer&) const;
  1997. bool SaveJSON(JSONValue&) const;
  1998. bool SaveXML(XMLElement&) const;
  1999. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2000. void SetAnimationTime(float);
  2001. bool SetAttribute(const String&, const Variant&);
  2002. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2003. void SetAttributeAnimationSpeed(const String&, float);
  2004. void SetAttributeAnimationTime(const String&, float);
  2005. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2006. void SetInterceptNetworkUpdate(const String&, bool);
  2007. // Properties:
  2008. bool animationEnabled;
  2009. /* readonly */
  2010. Array<Variant> attributeDefaults;
  2011. /* readonly */
  2012. Array<AttributeInfo> attributeInfos;
  2013. Array<Variant> attributes;
  2014. /* readonly */
  2015. String category;
  2016. int categoryBits;
  2017. float density;
  2018. bool enabled;
  2019. /* readonly */
  2020. bool enabledEffective;
  2021. float friction;
  2022. int groupIndex;
  2023. /* readonly */
  2024. uint id;
  2025. /* readonly */
  2026. float inertia;
  2027. int maskBits;
  2028. /* readonly */
  2029. float mass;
  2030. /* readonly */
  2031. Vector2 massCenter;
  2032. /* readonly */
  2033. Node node;
  2034. /* readonly */
  2035. uint numAttributes;
  2036. ObjectAnimation objectAnimation;
  2037. /* readonly */
  2038. int refs;
  2039. float restitution;
  2040. bool temporary;
  2041. bool trigger;
  2042. /* readonly */
  2043. StringHash type;
  2044. /* readonly */
  2045. String typeName;
  2046. /* readonly */
  2047. int weakRefs;
  2048. };
  2049. class Color
  2050. {
  2051. // Methods:
  2052. Color Abs() const;
  2053. float Average() const;
  2054. float Chroma() const;
  2055. void Clip(bool);
  2056. bool Equals() const;
  2057. void FromHSL(float, float, float, float);
  2058. void FromHSV(float, float, float, float);
  2059. float Hue() const;
  2060. void Invert(bool);
  2061. Color Lerp(const Color&, float) const;
  2062. float Lightness() const;
  2063. float Luma() const;
  2064. float MaxRGB() const;
  2065. float MinRGB() const;
  2066. float Range() const;
  2067. float SaturationHSL() const;
  2068. float SaturationHSV() const;
  2069. float SumRGB() const;
  2070. Vector3 ToHSL() const;
  2071. Vector3 ToHSV() const;
  2072. String ToString() const;
  2073. uint ToUInt() const;
  2074. float Value() const;
  2075. // Properties:
  2076. float a;
  2077. float b;
  2078. /* readonly */
  2079. Array<float> data;
  2080. float g;
  2081. float r;
  2082. /* readonly */
  2083. Vector3 rgb;
  2084. /* readonly */
  2085. Vector4 rgba;
  2086. };
  2087. class ColorFrame
  2088. {
  2089. // Properties:
  2090. Color color;
  2091. float time;
  2092. };
  2093. class Component
  2094. {
  2095. // Methods:
  2096. void ApplyAttributes();
  2097. void DrawDebugGeometry(DebugRenderer, bool);
  2098. Variant GetAttribute(const String&) const;
  2099. ValueAnimation GetAttributeAnimation(const String&) const;
  2100. float GetAttributeAnimationSpeed(const String&) const;
  2101. float GetAttributeAnimationTime(const String&) const;
  2102. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2103. Variant GetAttributeDefault(const String&) const;
  2104. bool GetInterceptNetworkUpdate(const String&) const;
  2105. bool HasSubscribedToEvent(Object, const String&);
  2106. bool HasSubscribedToEvent(const String&);
  2107. bool Load(File, bool = false);
  2108. bool Load(VectorBuffer&, bool = false);
  2109. bool LoadJSON(const JSONValue&, bool = false);
  2110. bool LoadXML(const XMLElement&, bool = false);
  2111. void MarkNetworkUpdate() const;
  2112. void Remove();
  2113. void RemoveAttributeAnimation(const String&);
  2114. void RemoveInstanceDefault();
  2115. void RemoveObjectAnimation();
  2116. void ResetToDefault();
  2117. bool Save(File) const;
  2118. bool Save(VectorBuffer&) const;
  2119. bool SaveJSON(JSONValue&) const;
  2120. bool SaveXML(XMLElement&) const;
  2121. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2122. void SetAnimationTime(float);
  2123. bool SetAttribute(const String&, const Variant&);
  2124. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2125. void SetAttributeAnimationSpeed(const String&, float);
  2126. void SetAttributeAnimationTime(const String&, float);
  2127. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2128. void SetInterceptNetworkUpdate(const String&, bool);
  2129. // Properties:
  2130. bool animationEnabled;
  2131. /* readonly */
  2132. Array<Variant> attributeDefaults;
  2133. /* readonly */
  2134. Array<AttributeInfo> attributeInfos;
  2135. Array<Variant> attributes;
  2136. /* readonly */
  2137. String category;
  2138. bool enabled;
  2139. /* readonly */
  2140. bool enabledEffective;
  2141. /* readonly */
  2142. uint id;
  2143. /* readonly */
  2144. Node node;
  2145. /* readonly */
  2146. uint numAttributes;
  2147. ObjectAnimation objectAnimation;
  2148. /* readonly */
  2149. int refs;
  2150. bool temporary;
  2151. /* readonly */
  2152. StringHash type;
  2153. /* readonly */
  2154. String typeName;
  2155. /* readonly */
  2156. int weakRefs;
  2157. };
  2158. class Connection
  2159. {
  2160. // Methods:
  2161. void Disconnect(int = 0);
  2162. bool HasSubscribedToEvent(Object, const String&);
  2163. bool HasSubscribedToEvent(const String&);
  2164. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2165. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2166. void SendPackageToClient(PackageFile);
  2167. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2168. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2169. String ToString() const;
  2170. // Properties:
  2171. /* readonly */
  2172. String address;
  2173. /* readonly */
  2174. float bytesInPerSec;
  2175. /* readonly */
  2176. float bytesOutPerSec;
  2177. /* readonly */
  2178. String category;
  2179. /* readonly */
  2180. bool client;
  2181. /* readonly */
  2182. bool connectPending;
  2183. /* readonly */
  2184. bool connected;
  2185. Controls controls;
  2186. /* readonly */
  2187. String downloadName;
  2188. /* readonly */
  2189. float downloadProgress;
  2190. VariantMap identity;
  2191. /* readonly */
  2192. float lastHeardTime;
  2193. bool logStatistics;
  2194. /* readonly */
  2195. uint numDownloads;
  2196. /* readonly */
  2197. float packetsInPerSec;
  2198. /* readonly */
  2199. float packetsOutPerSec;
  2200. /* readonly */
  2201. uint16 port;
  2202. Vector3 position;
  2203. /* readonly */
  2204. int refs;
  2205. Quaternion rotation;
  2206. /* readonly */
  2207. float roundTripTime;
  2208. Scene scene;
  2209. /* readonly */
  2210. bool sceneLoaded;
  2211. uint8 timeStamp;
  2212. /* readonly */
  2213. StringHash type;
  2214. /* readonly */
  2215. String typeName;
  2216. /* readonly */
  2217. int weakRefs;
  2218. };
  2219. class Console
  2220. {
  2221. // Methods:
  2222. void CopySelectedRows() const;
  2223. bool HasSubscribedToEvent(Object, const String&);
  2224. bool HasSubscribedToEvent(const String&);
  2225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2226. void Toggle();
  2227. void UpdateElements();
  2228. // Properties:
  2229. bool autoVisibleOnError;
  2230. /* readonly */
  2231. BorderImage background;
  2232. /* readonly */
  2233. String category;
  2234. /* readonly */
  2235. Button closeButton;
  2236. String commandInterpreter;
  2237. XMLFile defaultStyle;
  2238. bool focusOnShow;
  2239. /* readonly */
  2240. uint historyPosition;
  2241. /* readonly */
  2242. Array<String> historyRow;
  2243. /* readonly */
  2244. LineEdit lineEdit;
  2245. uint numBufferedRows;
  2246. uint numHistoryRows;
  2247. uint numRows;
  2248. /* readonly */
  2249. int refs;
  2250. /* readonly */
  2251. StringHash type;
  2252. /* readonly */
  2253. String typeName;
  2254. bool visible;
  2255. /* readonly */
  2256. int weakRefs;
  2257. };
  2258. class Constraint
  2259. {
  2260. // Methods:
  2261. void ApplyAttributes();
  2262. void DrawDebugGeometry(DebugRenderer, bool);
  2263. Variant GetAttribute(const String&) const;
  2264. ValueAnimation GetAttributeAnimation(const String&) const;
  2265. float GetAttributeAnimationSpeed(const String&) const;
  2266. float GetAttributeAnimationTime(const String&) const;
  2267. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2268. Variant GetAttributeDefault(const String&) const;
  2269. bool GetInterceptNetworkUpdate(const String&) const;
  2270. bool HasSubscribedToEvent(Object, const String&);
  2271. bool HasSubscribedToEvent(const String&);
  2272. bool Load(File, bool = false);
  2273. bool Load(VectorBuffer&, bool = false);
  2274. bool LoadJSON(const JSONValue&, bool = false);
  2275. bool LoadXML(const XMLElement&, bool = false);
  2276. void MarkNetworkUpdate() const;
  2277. void Remove();
  2278. void RemoveAttributeAnimation(const String&);
  2279. void RemoveInstanceDefault();
  2280. void RemoveObjectAnimation();
  2281. void ResetToDefault();
  2282. bool Save(File) const;
  2283. bool Save(VectorBuffer&) const;
  2284. bool SaveJSON(JSONValue&) const;
  2285. bool SaveXML(XMLElement&) const;
  2286. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2287. void SetAnimationTime(float);
  2288. bool SetAttribute(const String&, const Variant&);
  2289. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2290. void SetAttributeAnimationSpeed(const String&, float);
  2291. void SetAttributeAnimationTime(const String&, float);
  2292. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2293. void SetInterceptNetworkUpdate(const String&, bool);
  2294. // Properties:
  2295. bool animationEnabled;
  2296. /* readonly */
  2297. Array<Variant> attributeDefaults;
  2298. /* readonly */
  2299. Array<AttributeInfo> attributeInfos;
  2300. Array<Variant> attributes;
  2301. /* writeonly */
  2302. Vector3 axis;
  2303. /* readonly */
  2304. String category;
  2305. float cfm;
  2306. ConstraintType constraintType;
  2307. bool disableCollision;
  2308. bool enabled;
  2309. /* readonly */
  2310. bool enabledEffective;
  2311. float erp;
  2312. Vector2 highLimit;
  2313. /* readonly */
  2314. uint id;
  2315. Vector2 lowLimit;
  2316. /* readonly */
  2317. Node node;
  2318. /* readonly */
  2319. uint numAttributes;
  2320. ObjectAnimation objectAnimation;
  2321. /* writeonly */
  2322. Vector3 otherAxis;
  2323. RigidBody otherBody;
  2324. Vector3 otherPosition;
  2325. Quaternion otherRotation;
  2326. /* readonly */
  2327. RigidBody ownBody;
  2328. Vector3 position;
  2329. /* readonly */
  2330. int refs;
  2331. Quaternion rotation;
  2332. bool temporary;
  2333. /* readonly */
  2334. StringHash type;
  2335. /* readonly */
  2336. String typeName;
  2337. /* readonly */
  2338. int weakRefs;
  2339. Vector3 worldPosition;
  2340. };
  2341. class Constraint2D
  2342. {
  2343. // Methods:
  2344. void ApplyAttributes();
  2345. void DrawDebugGeometry(DebugRenderer, bool);
  2346. Variant GetAttribute(const String&) const;
  2347. ValueAnimation GetAttributeAnimation(const String&) const;
  2348. float GetAttributeAnimationSpeed(const String&) const;
  2349. float GetAttributeAnimationTime(const String&) const;
  2350. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2351. Variant GetAttributeDefault(const String&) const;
  2352. bool GetInterceptNetworkUpdate(const String&) const;
  2353. bool HasSubscribedToEvent(Object, const String&);
  2354. bool HasSubscribedToEvent(const String&);
  2355. bool Load(File, bool = false);
  2356. bool Load(VectorBuffer&, bool = false);
  2357. bool LoadJSON(const JSONValue&, bool = false);
  2358. bool LoadXML(const XMLElement&, bool = false);
  2359. void MarkNetworkUpdate() const;
  2360. void Remove();
  2361. void RemoveAttributeAnimation(const String&);
  2362. void RemoveInstanceDefault();
  2363. void RemoveObjectAnimation();
  2364. void ResetToDefault();
  2365. bool Save(File) const;
  2366. bool Save(VectorBuffer&) const;
  2367. bool SaveJSON(JSONValue&) const;
  2368. bool SaveXML(XMLElement&) const;
  2369. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2370. void SetAnimationTime(float);
  2371. bool SetAttribute(const String&, const Variant&);
  2372. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2373. void SetAttributeAnimationSpeed(const String&, float);
  2374. void SetAttributeAnimationTime(const String&, float);
  2375. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2376. void SetInterceptNetworkUpdate(const String&, bool);
  2377. // Properties:
  2378. bool animationEnabled;
  2379. /* readonly */
  2380. Array<Variant> attributeDefaults;
  2381. /* readonly */
  2382. Array<AttributeInfo> attributeInfos;
  2383. Array<Variant> attributes;
  2384. /* readonly */
  2385. String category;
  2386. bool collideConnected;
  2387. bool enabled;
  2388. /* readonly */
  2389. bool enabledEffective;
  2390. /* readonly */
  2391. uint id;
  2392. /* readonly */
  2393. Node node;
  2394. /* readonly */
  2395. uint numAttributes;
  2396. ObjectAnimation objectAnimation;
  2397. RigidBody2D otherBody;
  2398. /* readonly */
  2399. RigidBody2D ownerBody;
  2400. /* readonly */
  2401. int refs;
  2402. bool temporary;
  2403. /* readonly */
  2404. StringHash type;
  2405. /* readonly */
  2406. String typeName;
  2407. /* readonly */
  2408. int weakRefs;
  2409. };
  2410. class ConstraintDistance2D
  2411. {
  2412. // Methods:
  2413. void ApplyAttributes();
  2414. void DrawDebugGeometry(DebugRenderer, bool);
  2415. Variant GetAttribute(const String&) const;
  2416. ValueAnimation GetAttributeAnimation(const String&) const;
  2417. float GetAttributeAnimationSpeed(const String&) const;
  2418. float GetAttributeAnimationTime(const String&) const;
  2419. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2420. Variant GetAttributeDefault(const String&) const;
  2421. bool GetInterceptNetworkUpdate(const String&) const;
  2422. bool HasSubscribedToEvent(Object, const String&);
  2423. bool HasSubscribedToEvent(const String&);
  2424. bool Load(File, bool = false);
  2425. bool Load(VectorBuffer&, bool = false);
  2426. bool LoadJSON(const JSONValue&, bool = false);
  2427. bool LoadXML(const XMLElement&, bool = false);
  2428. void MarkNetworkUpdate() const;
  2429. void Remove();
  2430. void RemoveAttributeAnimation(const String&);
  2431. void RemoveInstanceDefault();
  2432. void RemoveObjectAnimation();
  2433. void ResetToDefault();
  2434. bool Save(File) const;
  2435. bool Save(VectorBuffer&) const;
  2436. bool SaveJSON(JSONValue&) const;
  2437. bool SaveXML(XMLElement&) const;
  2438. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2439. void SetAnimationTime(float);
  2440. bool SetAttribute(const String&, const Variant&);
  2441. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2442. void SetAttributeAnimationSpeed(const String&, float);
  2443. void SetAttributeAnimationTime(const String&, float);
  2444. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2445. void SetInterceptNetworkUpdate(const String&, bool);
  2446. // Properties:
  2447. bool animationEnabled;
  2448. /* readonly */
  2449. Array<Variant> attributeDefaults;
  2450. /* readonly */
  2451. Array<AttributeInfo> attributeInfos;
  2452. Array<Variant> attributes;
  2453. /* readonly */
  2454. String category;
  2455. bool collideConnected;
  2456. float dampingRatio;
  2457. bool enabled;
  2458. /* readonly */
  2459. bool enabledEffective;
  2460. float frequencyHz;
  2461. /* readonly */
  2462. uint id;
  2463. /* readonly */
  2464. Node node;
  2465. /* readonly */
  2466. uint numAttributes;
  2467. ObjectAnimation objectAnimation;
  2468. RigidBody2D otherBody;
  2469. Vector2 otherBodyAnchor;
  2470. /* readonly */
  2471. RigidBody2D ownerBody;
  2472. Vector2 ownerBodyAnchor;
  2473. /* readonly */
  2474. int refs;
  2475. bool temporary;
  2476. /* readonly */
  2477. StringHash type;
  2478. /* readonly */
  2479. String typeName;
  2480. /* readonly */
  2481. int weakRefs;
  2482. };
  2483. class ConstraintFriction2D
  2484. {
  2485. // Methods:
  2486. void ApplyAttributes();
  2487. void DrawDebugGeometry(DebugRenderer, bool);
  2488. Variant GetAttribute(const String&) const;
  2489. ValueAnimation GetAttributeAnimation(const String&) const;
  2490. float GetAttributeAnimationSpeed(const String&) const;
  2491. float GetAttributeAnimationTime(const String&) const;
  2492. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2493. Variant GetAttributeDefault(const String&) const;
  2494. bool GetInterceptNetworkUpdate(const String&) const;
  2495. bool HasSubscribedToEvent(Object, const String&);
  2496. bool HasSubscribedToEvent(const String&);
  2497. bool Load(File, bool = false);
  2498. bool Load(VectorBuffer&, bool = false);
  2499. bool LoadJSON(const JSONValue&, bool = false);
  2500. bool LoadXML(const XMLElement&, bool = false);
  2501. void MarkNetworkUpdate() const;
  2502. void Remove();
  2503. void RemoveAttributeAnimation(const String&);
  2504. void RemoveInstanceDefault();
  2505. void RemoveObjectAnimation();
  2506. void ResetToDefault();
  2507. bool Save(File) const;
  2508. bool Save(VectorBuffer&) const;
  2509. bool SaveJSON(JSONValue&) const;
  2510. bool SaveXML(XMLElement&) const;
  2511. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2512. void SetAnimationTime(float);
  2513. bool SetAttribute(const String&, const Variant&);
  2514. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2515. void SetAttributeAnimationSpeed(const String&, float);
  2516. void SetAttributeAnimationTime(const String&, float);
  2517. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2518. void SetInterceptNetworkUpdate(const String&, bool);
  2519. // Properties:
  2520. Vector2 anchor;
  2521. bool animationEnabled;
  2522. /* readonly */
  2523. Array<Variant> attributeDefaults;
  2524. /* readonly */
  2525. Array<AttributeInfo> attributeInfos;
  2526. Array<Variant> attributes;
  2527. /* readonly */
  2528. String category;
  2529. bool collideConnected;
  2530. bool enabled;
  2531. /* readonly */
  2532. bool enabledEffective;
  2533. /* readonly */
  2534. uint id;
  2535. float maxForce;
  2536. float maxTorque;
  2537. /* readonly */
  2538. Node node;
  2539. /* readonly */
  2540. uint numAttributes;
  2541. ObjectAnimation objectAnimation;
  2542. RigidBody2D otherBody;
  2543. /* readonly */
  2544. RigidBody2D ownerBody;
  2545. /* readonly */
  2546. int refs;
  2547. bool temporary;
  2548. /* readonly */
  2549. StringHash type;
  2550. /* readonly */
  2551. String typeName;
  2552. /* readonly */
  2553. int weakRefs;
  2554. };
  2555. class ConstraintGear2D
  2556. {
  2557. // Methods:
  2558. void ApplyAttributes();
  2559. void DrawDebugGeometry(DebugRenderer, bool);
  2560. Variant GetAttribute(const String&) const;
  2561. ValueAnimation GetAttributeAnimation(const String&) const;
  2562. float GetAttributeAnimationSpeed(const String&) const;
  2563. float GetAttributeAnimationTime(const String&) const;
  2564. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2565. Variant GetAttributeDefault(const String&) const;
  2566. bool GetInterceptNetworkUpdate(const String&) const;
  2567. bool HasSubscribedToEvent(Object, const String&);
  2568. bool HasSubscribedToEvent(const String&);
  2569. bool Load(File, bool = false);
  2570. bool Load(VectorBuffer&, bool = false);
  2571. bool LoadJSON(const JSONValue&, bool = false);
  2572. bool LoadXML(const XMLElement&, bool = false);
  2573. void MarkNetworkUpdate() const;
  2574. void Remove();
  2575. void RemoveAttributeAnimation(const String&);
  2576. void RemoveInstanceDefault();
  2577. void RemoveObjectAnimation();
  2578. void ResetToDefault();
  2579. bool Save(File) const;
  2580. bool Save(VectorBuffer&) const;
  2581. bool SaveJSON(JSONValue&) const;
  2582. bool SaveXML(XMLElement&) const;
  2583. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2584. void SetAnimationTime(float);
  2585. bool SetAttribute(const String&, const Variant&);
  2586. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2587. void SetAttributeAnimationSpeed(const String&, float);
  2588. void SetAttributeAnimationTime(const String&, float);
  2589. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2590. void SetInterceptNetworkUpdate(const String&, bool);
  2591. // Properties:
  2592. bool animationEnabled;
  2593. /* readonly */
  2594. Array<Variant> attributeDefaults;
  2595. /* readonly */
  2596. Array<AttributeInfo> attributeInfos;
  2597. Array<Variant> attributes;
  2598. /* readonly */
  2599. String category;
  2600. bool collideConnected;
  2601. bool enabled;
  2602. /* readonly */
  2603. bool enabledEffective;
  2604. /* readonly */
  2605. uint id;
  2606. /* readonly */
  2607. Node node;
  2608. /* readonly */
  2609. uint numAttributes;
  2610. ObjectAnimation objectAnimation;
  2611. RigidBody2D otherBody;
  2612. Constraint2D otherConstraint;
  2613. /* readonly */
  2614. RigidBody2D ownerBody;
  2615. Constraint2D ownerConstraint;
  2616. float ratio;
  2617. /* readonly */
  2618. int refs;
  2619. bool temporary;
  2620. /* readonly */
  2621. StringHash type;
  2622. /* readonly */
  2623. String typeName;
  2624. /* readonly */
  2625. int weakRefs;
  2626. };
  2627. class ConstraintMotor2D
  2628. {
  2629. // Methods:
  2630. void ApplyAttributes();
  2631. void DrawDebugGeometry(DebugRenderer, bool);
  2632. Variant GetAttribute(const String&) const;
  2633. ValueAnimation GetAttributeAnimation(const String&) const;
  2634. float GetAttributeAnimationSpeed(const String&) const;
  2635. float GetAttributeAnimationTime(const String&) const;
  2636. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2637. Variant GetAttributeDefault(const String&) const;
  2638. bool GetInterceptNetworkUpdate(const String&) const;
  2639. bool HasSubscribedToEvent(Object, const String&);
  2640. bool HasSubscribedToEvent(const String&);
  2641. bool Load(File, bool = false);
  2642. bool Load(VectorBuffer&, bool = false);
  2643. bool LoadJSON(const JSONValue&, bool = false);
  2644. bool LoadXML(const XMLElement&, bool = false);
  2645. void MarkNetworkUpdate() const;
  2646. void Remove();
  2647. void RemoveAttributeAnimation(const String&);
  2648. void RemoveInstanceDefault();
  2649. void RemoveObjectAnimation();
  2650. void ResetToDefault();
  2651. bool Save(File) const;
  2652. bool Save(VectorBuffer&) const;
  2653. bool SaveJSON(JSONValue&) const;
  2654. bool SaveXML(XMLElement&) const;
  2655. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2656. void SetAnimationTime(float);
  2657. bool SetAttribute(const String&, const Variant&);
  2658. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2659. void SetAttributeAnimationSpeed(const String&, float);
  2660. void SetAttributeAnimationTime(const String&, float);
  2661. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2662. void SetInterceptNetworkUpdate(const String&, bool);
  2663. // Properties:
  2664. float angularOffset;
  2665. bool animationEnabled;
  2666. /* readonly */
  2667. Array<Variant> attributeDefaults;
  2668. /* readonly */
  2669. Array<AttributeInfo> attributeInfos;
  2670. Array<Variant> attributes;
  2671. /* readonly */
  2672. String category;
  2673. bool collideConnected;
  2674. float correctionFactor;
  2675. bool enabled;
  2676. /* readonly */
  2677. bool enabledEffective;
  2678. /* readonly */
  2679. uint id;
  2680. Vector2 linearOffset;
  2681. float maxForce;
  2682. float maxTorque;
  2683. /* readonly */
  2684. Node node;
  2685. /* readonly */
  2686. uint numAttributes;
  2687. ObjectAnimation objectAnimation;
  2688. RigidBody2D otherBody;
  2689. /* readonly */
  2690. RigidBody2D ownerBody;
  2691. /* readonly */
  2692. int refs;
  2693. bool temporary;
  2694. /* readonly */
  2695. StringHash type;
  2696. /* readonly */
  2697. String typeName;
  2698. /* readonly */
  2699. int weakRefs;
  2700. };
  2701. class ConstraintMouse2D
  2702. {
  2703. // Methods:
  2704. void ApplyAttributes();
  2705. void DrawDebugGeometry(DebugRenderer, bool);
  2706. Variant GetAttribute(const String&) const;
  2707. ValueAnimation GetAttributeAnimation(const String&) const;
  2708. float GetAttributeAnimationSpeed(const String&) const;
  2709. float GetAttributeAnimationTime(const String&) const;
  2710. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2711. Variant GetAttributeDefault(const String&) const;
  2712. bool GetInterceptNetworkUpdate(const String&) const;
  2713. bool HasSubscribedToEvent(Object, const String&);
  2714. bool HasSubscribedToEvent(const String&);
  2715. bool Load(File, bool = false);
  2716. bool Load(VectorBuffer&, bool = false);
  2717. bool LoadJSON(const JSONValue&, bool = false);
  2718. bool LoadXML(const XMLElement&, bool = false);
  2719. void MarkNetworkUpdate() const;
  2720. void Remove();
  2721. void RemoveAttributeAnimation(const String&);
  2722. void RemoveInstanceDefault();
  2723. void RemoveObjectAnimation();
  2724. void ResetToDefault();
  2725. bool Save(File) const;
  2726. bool Save(VectorBuffer&) const;
  2727. bool SaveJSON(JSONValue&) const;
  2728. bool SaveXML(XMLElement&) const;
  2729. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2730. void SetAnimationTime(float);
  2731. bool SetAttribute(const String&, const Variant&);
  2732. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2733. void SetAttributeAnimationSpeed(const String&, float);
  2734. void SetAttributeAnimationTime(const String&, float);
  2735. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2736. void SetInterceptNetworkUpdate(const String&, bool);
  2737. // Properties:
  2738. bool animationEnabled;
  2739. /* readonly */
  2740. Array<Variant> attributeDefaults;
  2741. /* readonly */
  2742. Array<AttributeInfo> attributeInfos;
  2743. Array<Variant> attributes;
  2744. /* readonly */
  2745. String category;
  2746. bool collideConnected;
  2747. float dampingRatio;
  2748. bool enabled;
  2749. /* readonly */
  2750. bool enabledEffective;
  2751. float frequencyHz;
  2752. /* readonly */
  2753. uint id;
  2754. float maxForce;
  2755. /* readonly */
  2756. Node node;
  2757. /* readonly */
  2758. uint numAttributes;
  2759. ObjectAnimation objectAnimation;
  2760. RigidBody2D otherBody;
  2761. /* readonly */
  2762. RigidBody2D ownerBody;
  2763. /* readonly */
  2764. int refs;
  2765. Vector2 target;
  2766. bool temporary;
  2767. /* readonly */
  2768. StringHash type;
  2769. /* readonly */
  2770. String typeName;
  2771. /* readonly */
  2772. int weakRefs;
  2773. };
  2774. class ConstraintPrismatic2D
  2775. {
  2776. // Methods:
  2777. void ApplyAttributes();
  2778. void DrawDebugGeometry(DebugRenderer, bool);
  2779. Variant GetAttribute(const String&) const;
  2780. ValueAnimation GetAttributeAnimation(const String&) const;
  2781. float GetAttributeAnimationSpeed(const String&) const;
  2782. float GetAttributeAnimationTime(const String&) const;
  2783. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2784. Variant GetAttributeDefault(const String&) const;
  2785. bool GetInterceptNetworkUpdate(const String&) const;
  2786. bool HasSubscribedToEvent(Object, const String&);
  2787. bool HasSubscribedToEvent(const String&);
  2788. bool Load(File, bool = false);
  2789. bool Load(VectorBuffer&, bool = false);
  2790. bool LoadJSON(const JSONValue&, bool = false);
  2791. bool LoadXML(const XMLElement&, bool = false);
  2792. void MarkNetworkUpdate() const;
  2793. void Remove();
  2794. void RemoveAttributeAnimation(const String&);
  2795. void RemoveInstanceDefault();
  2796. void RemoveObjectAnimation();
  2797. void ResetToDefault();
  2798. bool Save(File) const;
  2799. bool Save(VectorBuffer&) const;
  2800. bool SaveJSON(JSONValue&) const;
  2801. bool SaveXML(XMLElement&) const;
  2802. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2803. void SetAnimationTime(float);
  2804. bool SetAttribute(const String&, const Variant&);
  2805. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2806. void SetAttributeAnimationSpeed(const String&, float);
  2807. void SetAttributeAnimationTime(const String&, float);
  2808. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2809. void SetInterceptNetworkUpdate(const String&, bool);
  2810. // Properties:
  2811. Vector2 anchor;
  2812. bool animationEnabled;
  2813. /* readonly */
  2814. Array<Variant> attributeDefaults;
  2815. /* readonly */
  2816. Array<AttributeInfo> attributeInfos;
  2817. Array<Variant> attributes;
  2818. Vector2 axis;
  2819. /* readonly */
  2820. String category;
  2821. bool collideConnected;
  2822. bool enableLimit;
  2823. bool enableMotor;
  2824. bool enabled;
  2825. /* readonly */
  2826. bool enabledEffective;
  2827. /* readonly */
  2828. uint id;
  2829. float lowerTranslation;
  2830. float maxMotorForce;
  2831. float motorSpeed;
  2832. /* readonly */
  2833. Node node;
  2834. /* readonly */
  2835. uint numAttributes;
  2836. ObjectAnimation objectAnimation;
  2837. RigidBody2D otherBody;
  2838. /* readonly */
  2839. RigidBody2D ownerBody;
  2840. /* readonly */
  2841. int refs;
  2842. bool temporary;
  2843. /* readonly */
  2844. StringHash type;
  2845. /* readonly */
  2846. String typeName;
  2847. float upperTranslation;
  2848. /* readonly */
  2849. int weakRefs;
  2850. };
  2851. class ConstraintPulley2D
  2852. {
  2853. // Methods:
  2854. void ApplyAttributes();
  2855. void DrawDebugGeometry(DebugRenderer, bool);
  2856. Variant GetAttribute(const String&) const;
  2857. ValueAnimation GetAttributeAnimation(const String&) const;
  2858. float GetAttributeAnimationSpeed(const String&) const;
  2859. float GetAttributeAnimationTime(const String&) const;
  2860. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2861. Variant GetAttributeDefault(const String&) const;
  2862. bool GetInterceptNetworkUpdate(const String&) const;
  2863. bool HasSubscribedToEvent(Object, const String&);
  2864. bool HasSubscribedToEvent(const String&);
  2865. bool Load(File, bool = false);
  2866. bool Load(VectorBuffer&, bool = false);
  2867. bool LoadJSON(const JSONValue&, bool = false);
  2868. bool LoadXML(const XMLElement&, bool = false);
  2869. void MarkNetworkUpdate() const;
  2870. void Remove();
  2871. void RemoveAttributeAnimation(const String&);
  2872. void RemoveInstanceDefault();
  2873. void RemoveObjectAnimation();
  2874. void ResetToDefault();
  2875. bool Save(File) const;
  2876. bool Save(VectorBuffer&) const;
  2877. bool SaveJSON(JSONValue&) const;
  2878. bool SaveXML(XMLElement&) const;
  2879. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2880. void SetAnimationTime(float);
  2881. bool SetAttribute(const String&, const Variant&);
  2882. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2883. void SetAttributeAnimationSpeed(const String&, float);
  2884. void SetAttributeAnimationTime(const String&, float);
  2885. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2886. void SetInterceptNetworkUpdate(const String&, bool);
  2887. // Properties:
  2888. bool animationEnabled;
  2889. /* readonly */
  2890. Array<Variant> attributeDefaults;
  2891. /* readonly */
  2892. Array<AttributeInfo> attributeInfos;
  2893. Array<Variant> attributes;
  2894. /* readonly */
  2895. String category;
  2896. bool collideConnected;
  2897. bool enabled;
  2898. /* readonly */
  2899. bool enabledEffective;
  2900. /* readonly */
  2901. uint id;
  2902. /* readonly */
  2903. Node node;
  2904. /* readonly */
  2905. uint numAttributes;
  2906. ObjectAnimation objectAnimation;
  2907. RigidBody2D otherBody;
  2908. Vector2 otherBodyAnchor;
  2909. Vector2 otherBodyGroundAnchor;
  2910. /* readonly */
  2911. RigidBody2D ownerBody;
  2912. Vector2 ownerBodyAnchor;
  2913. Vector2 ownerBodyGroundAnchor;
  2914. float ratio;
  2915. /* readonly */
  2916. int refs;
  2917. bool temporary;
  2918. /* readonly */
  2919. StringHash type;
  2920. /* readonly */
  2921. String typeName;
  2922. /* readonly */
  2923. int weakRefs;
  2924. };
  2925. class ConstraintRevolute2D
  2926. {
  2927. // Methods:
  2928. void ApplyAttributes();
  2929. void DrawDebugGeometry(DebugRenderer, bool);
  2930. Variant GetAttribute(const String&) const;
  2931. ValueAnimation GetAttributeAnimation(const String&) const;
  2932. float GetAttributeAnimationSpeed(const String&) const;
  2933. float GetAttributeAnimationTime(const String&) const;
  2934. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2935. Variant GetAttributeDefault(const String&) const;
  2936. bool GetInterceptNetworkUpdate(const String&) const;
  2937. bool HasSubscribedToEvent(Object, const String&);
  2938. bool HasSubscribedToEvent(const String&);
  2939. bool Load(File, bool = false);
  2940. bool Load(VectorBuffer&, bool = false);
  2941. bool LoadJSON(const JSONValue&, bool = false);
  2942. bool LoadXML(const XMLElement&, bool = false);
  2943. void MarkNetworkUpdate() const;
  2944. void Remove();
  2945. void RemoveAttributeAnimation(const String&);
  2946. void RemoveInstanceDefault();
  2947. void RemoveObjectAnimation();
  2948. void ResetToDefault();
  2949. bool Save(File) const;
  2950. bool Save(VectorBuffer&) const;
  2951. bool SaveJSON(JSONValue&) const;
  2952. bool SaveXML(XMLElement&) const;
  2953. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2954. void SetAnimationTime(float);
  2955. bool SetAttribute(const String&, const Variant&);
  2956. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2957. void SetAttributeAnimationSpeed(const String&, float);
  2958. void SetAttributeAnimationTime(const String&, float);
  2959. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2960. void SetInterceptNetworkUpdate(const String&, bool);
  2961. // Properties:
  2962. Vector2 anchor;
  2963. bool animationEnabled;
  2964. /* readonly */
  2965. Array<Variant> attributeDefaults;
  2966. /* readonly */
  2967. Array<AttributeInfo> attributeInfos;
  2968. Array<Variant> attributes;
  2969. /* readonly */
  2970. String category;
  2971. bool collideConnected;
  2972. bool enableLimit;
  2973. bool enableMotor;
  2974. bool enabled;
  2975. /* readonly */
  2976. bool enabledEffective;
  2977. /* readonly */
  2978. uint id;
  2979. float lowerAngle;
  2980. float maxMotorTorque;
  2981. float motorSpeed;
  2982. /* readonly */
  2983. Node node;
  2984. /* readonly */
  2985. uint numAttributes;
  2986. ObjectAnimation objectAnimation;
  2987. RigidBody2D otherBody;
  2988. /* readonly */
  2989. RigidBody2D ownerBody;
  2990. /* readonly */
  2991. int refs;
  2992. bool temporary;
  2993. /* readonly */
  2994. StringHash type;
  2995. /* readonly */
  2996. String typeName;
  2997. float upperAngle;
  2998. /* readonly */
  2999. int weakRefs;
  3000. };
  3001. class ConstraintRope2D
  3002. {
  3003. // Methods:
  3004. void ApplyAttributes();
  3005. void DrawDebugGeometry(DebugRenderer, bool);
  3006. Variant GetAttribute(const String&) const;
  3007. ValueAnimation GetAttributeAnimation(const String&) const;
  3008. float GetAttributeAnimationSpeed(const String&) const;
  3009. float GetAttributeAnimationTime(const String&) const;
  3010. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3011. Variant GetAttributeDefault(const String&) const;
  3012. bool GetInterceptNetworkUpdate(const String&) const;
  3013. bool HasSubscribedToEvent(Object, const String&);
  3014. bool HasSubscribedToEvent(const String&);
  3015. bool Load(File, bool = false);
  3016. bool Load(VectorBuffer&, bool = false);
  3017. bool LoadJSON(const JSONValue&, bool = false);
  3018. bool LoadXML(const XMLElement&, bool = false);
  3019. void MarkNetworkUpdate() const;
  3020. void Remove();
  3021. void RemoveAttributeAnimation(const String&);
  3022. void RemoveInstanceDefault();
  3023. void RemoveObjectAnimation();
  3024. void ResetToDefault();
  3025. bool Save(File) const;
  3026. bool Save(VectorBuffer&) const;
  3027. bool SaveJSON(JSONValue&) const;
  3028. bool SaveXML(XMLElement&) const;
  3029. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3030. void SetAnimationTime(float);
  3031. bool SetAttribute(const String&, const Variant&);
  3032. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3033. void SetAttributeAnimationSpeed(const String&, float);
  3034. void SetAttributeAnimationTime(const String&, float);
  3035. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3036. void SetInterceptNetworkUpdate(const String&, bool);
  3037. // Properties:
  3038. bool animationEnabled;
  3039. /* readonly */
  3040. Array<Variant> attributeDefaults;
  3041. /* readonly */
  3042. Array<AttributeInfo> attributeInfos;
  3043. Array<Variant> attributes;
  3044. /* readonly */
  3045. String category;
  3046. bool collideConnected;
  3047. bool enabled;
  3048. /* readonly */
  3049. bool enabledEffective;
  3050. /* readonly */
  3051. uint id;
  3052. float maxLength;
  3053. /* readonly */
  3054. Node node;
  3055. /* readonly */
  3056. uint numAttributes;
  3057. ObjectAnimation objectAnimation;
  3058. RigidBody2D otherBody;
  3059. Vector2 otherBodyAnchor;
  3060. /* readonly */
  3061. RigidBody2D ownerBody;
  3062. Vector2 ownerBodyAnchor;
  3063. /* readonly */
  3064. int refs;
  3065. bool temporary;
  3066. /* readonly */
  3067. StringHash type;
  3068. /* readonly */
  3069. String typeName;
  3070. /* readonly */
  3071. int weakRefs;
  3072. };
  3073. class ConstraintWeld2D
  3074. {
  3075. // Methods:
  3076. void ApplyAttributes();
  3077. void DrawDebugGeometry(DebugRenderer, bool);
  3078. Variant GetAttribute(const String&) const;
  3079. ValueAnimation GetAttributeAnimation(const String&) const;
  3080. float GetAttributeAnimationSpeed(const String&) const;
  3081. float GetAttributeAnimationTime(const String&) const;
  3082. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3083. Variant GetAttributeDefault(const String&) const;
  3084. bool GetInterceptNetworkUpdate(const String&) const;
  3085. bool HasSubscribedToEvent(Object, const String&);
  3086. bool HasSubscribedToEvent(const String&);
  3087. bool Load(File, bool = false);
  3088. bool Load(VectorBuffer&, bool = false);
  3089. bool LoadJSON(const JSONValue&, bool = false);
  3090. bool LoadXML(const XMLElement&, bool = false);
  3091. void MarkNetworkUpdate() const;
  3092. void Remove();
  3093. void RemoveAttributeAnimation(const String&);
  3094. void RemoveInstanceDefault();
  3095. void RemoveObjectAnimation();
  3096. void ResetToDefault();
  3097. bool Save(File) const;
  3098. bool Save(VectorBuffer&) const;
  3099. bool SaveJSON(JSONValue&) const;
  3100. bool SaveXML(XMLElement&) const;
  3101. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3102. void SetAnimationTime(float);
  3103. bool SetAttribute(const String&, const Variant&);
  3104. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3105. void SetAttributeAnimationSpeed(const String&, float);
  3106. void SetAttributeAnimationTime(const String&, float);
  3107. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3108. void SetInterceptNetworkUpdate(const String&, bool);
  3109. // Properties:
  3110. Vector2 anchor;
  3111. bool animationEnabled;
  3112. /* readonly */
  3113. Array<Variant> attributeDefaults;
  3114. /* readonly */
  3115. Array<AttributeInfo> attributeInfos;
  3116. Array<Variant> attributes;
  3117. /* readonly */
  3118. String category;
  3119. bool collideConnected;
  3120. float dampingRatio;
  3121. bool enabled;
  3122. /* readonly */
  3123. bool enabledEffective;
  3124. float frequencyHz;
  3125. /* readonly */
  3126. uint id;
  3127. /* readonly */
  3128. Node node;
  3129. /* readonly */
  3130. uint numAttributes;
  3131. ObjectAnimation objectAnimation;
  3132. RigidBody2D otherBody;
  3133. /* readonly */
  3134. RigidBody2D ownerBody;
  3135. /* readonly */
  3136. int refs;
  3137. bool temporary;
  3138. /* readonly */
  3139. StringHash type;
  3140. /* readonly */
  3141. String typeName;
  3142. /* readonly */
  3143. int weakRefs;
  3144. };
  3145. class ConstraintWheel2D
  3146. {
  3147. // Methods:
  3148. void ApplyAttributes();
  3149. void DrawDebugGeometry(DebugRenderer, bool);
  3150. Variant GetAttribute(const String&) const;
  3151. ValueAnimation GetAttributeAnimation(const String&) const;
  3152. float GetAttributeAnimationSpeed(const String&) const;
  3153. float GetAttributeAnimationTime(const String&) const;
  3154. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3155. Variant GetAttributeDefault(const String&) const;
  3156. bool GetInterceptNetworkUpdate(const String&) const;
  3157. bool HasSubscribedToEvent(Object, const String&);
  3158. bool HasSubscribedToEvent(const String&);
  3159. bool Load(File, bool = false);
  3160. bool Load(VectorBuffer&, bool = false);
  3161. bool LoadJSON(const JSONValue&, bool = false);
  3162. bool LoadXML(const XMLElement&, bool = false);
  3163. void MarkNetworkUpdate() const;
  3164. void Remove();
  3165. void RemoveAttributeAnimation(const String&);
  3166. void RemoveInstanceDefault();
  3167. void RemoveObjectAnimation();
  3168. void ResetToDefault();
  3169. bool Save(File) const;
  3170. bool Save(VectorBuffer&) const;
  3171. bool SaveJSON(JSONValue&) const;
  3172. bool SaveXML(XMLElement&) const;
  3173. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3174. void SetAnimationTime(float);
  3175. bool SetAttribute(const String&, const Variant&);
  3176. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3177. void SetAttributeAnimationSpeed(const String&, float);
  3178. void SetAttributeAnimationTime(const String&, float);
  3179. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3180. void SetInterceptNetworkUpdate(const String&, bool);
  3181. // Properties:
  3182. Vector2 anchor;
  3183. bool animationEnabled;
  3184. /* readonly */
  3185. Array<Variant> attributeDefaults;
  3186. /* readonly */
  3187. Array<AttributeInfo> attributeInfos;
  3188. Array<Variant> attributes;
  3189. Vector2 axis;
  3190. /* readonly */
  3191. String category;
  3192. bool collideConnected;
  3193. float dampingRatio;
  3194. bool enableMotor;
  3195. bool enabled;
  3196. /* readonly */
  3197. bool enabledEffective;
  3198. float frequencyHz;
  3199. /* readonly */
  3200. uint id;
  3201. float maxMotorTorque;
  3202. float motorSpeed;
  3203. /* readonly */
  3204. Node node;
  3205. /* readonly */
  3206. uint numAttributes;
  3207. ObjectAnimation objectAnimation;
  3208. RigidBody2D otherBody;
  3209. /* readonly */
  3210. RigidBody2D ownerBody;
  3211. /* readonly */
  3212. int refs;
  3213. bool temporary;
  3214. /* readonly */
  3215. StringHash type;
  3216. /* readonly */
  3217. String typeName;
  3218. /* readonly */
  3219. int weakRefs;
  3220. };
  3221. class Controls
  3222. {
  3223. // Methods:
  3224. bool IsDown(uint) const;
  3225. bool IsPressed(uint, const Controls&) const;
  3226. void Reset();
  3227. void Set(uint, bool);
  3228. // Properties:
  3229. uint buttons;
  3230. VariantMap extraData;
  3231. float pitch;
  3232. float yaw;
  3233. };
  3234. class CrowdAgent
  3235. {
  3236. // Methods:
  3237. void ApplyAttributes();
  3238. void DrawDebugGeometry(DebugRenderer, bool);
  3239. void DrawDebugGeometry(bool);
  3240. Variant GetAttribute(const String&) const;
  3241. ValueAnimation GetAttributeAnimation(const String&) const;
  3242. float GetAttributeAnimationSpeed(const String&) const;
  3243. float GetAttributeAnimationTime(const String&) const;
  3244. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3245. Variant GetAttributeDefault(const String&) const;
  3246. bool GetInterceptNetworkUpdate(const String&) const;
  3247. bool HasSubscribedToEvent(Object, const String&);
  3248. bool HasSubscribedToEvent(const String&);
  3249. bool Load(File, bool = false);
  3250. bool Load(VectorBuffer&, bool = false);
  3251. bool LoadJSON(const JSONValue&, bool = false);
  3252. bool LoadXML(const XMLElement&, bool = false);
  3253. void MarkNetworkUpdate() const;
  3254. void Remove();
  3255. void RemoveAttributeAnimation(const String&);
  3256. void RemoveInstanceDefault();
  3257. void RemoveObjectAnimation();
  3258. void ResetTarget();
  3259. void ResetToDefault();
  3260. bool Save(File) const;
  3261. bool Save(VectorBuffer&) const;
  3262. bool SaveJSON(JSONValue&) const;
  3263. bool SaveXML(XMLElement&) const;
  3264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3265. void SetAnimationTime(float);
  3266. bool SetAttribute(const String&, const Variant&);
  3267. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3268. void SetAttributeAnimationSpeed(const String&, float);
  3269. void SetAttributeAnimationTime(const String&, float);
  3270. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3271. void SetInterceptNetworkUpdate(const String&, bool);
  3272. // Properties:
  3273. /* readonly */
  3274. Vector3 actualVelocity;
  3275. /* readonly */
  3276. CrowdAgentState agentState;
  3277. bool animationEnabled;
  3278. /* readonly */
  3279. bool arrived;
  3280. /* readonly */
  3281. Array<Variant> attributeDefaults;
  3282. /* readonly */
  3283. Array<AttributeInfo> attributeInfos;
  3284. Array<Variant> attributes;
  3285. /* readonly */
  3286. String category;
  3287. /* readonly */
  3288. Vector3 desiredVelocity;
  3289. bool enabled;
  3290. /* readonly */
  3291. bool enabledEffective;
  3292. float height;
  3293. /* readonly */
  3294. uint id;
  3295. /* readonly */
  3296. bool inCrowd;
  3297. float maxAccel;
  3298. float maxSpeed;
  3299. NavigationPushiness navigationPushiness;
  3300. NavigationQuality navigationQuality;
  3301. /* readonly */
  3302. Node node;
  3303. /* readonly */
  3304. uint numAttributes;
  3305. ObjectAnimation objectAnimation;
  3306. uint obstacleAvoidanceType;
  3307. /* readonly */
  3308. Vector3 position;
  3309. uint queryFilterType;
  3310. float radius;
  3311. /* readonly */
  3312. int refs;
  3313. /* readonly */
  3314. bool requestedTarget;
  3315. /* readonly */
  3316. CrowdAgentRequestedTarget requestedTargetType;
  3317. Vector3 targetPosition;
  3318. /* readonly */
  3319. CrowdAgentTargetState targetState;
  3320. Vector3 targetVelocity;
  3321. bool temporary;
  3322. /* readonly */
  3323. StringHash type;
  3324. /* readonly */
  3325. String typeName;
  3326. bool updateNodePosition;
  3327. /* readonly */
  3328. int weakRefs;
  3329. };
  3330. class CrowdManager
  3331. {
  3332. // Methods:
  3333. void ApplyAttributes();
  3334. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3335. void DrawDebugGeometry(DebugRenderer, bool);
  3336. void DrawDebugGeometry(bool);
  3337. Vector3 FindNearestPoint(const Vector3&, int);
  3338. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3339. float GetAreaCost(uint, uint);
  3340. Variant GetAttribute(const String&) const;
  3341. ValueAnimation GetAttributeAnimation(const String&) const;
  3342. float GetAttributeAnimationSpeed(const String&) const;
  3343. float GetAttributeAnimationTime(const String&) const;
  3344. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3345. Variant GetAttributeDefault(const String&) const;
  3346. float GetDistanceToWall(const Vector3&, float, int);
  3347. uint16 GetExcludeFlags(uint);
  3348. uint16 GetIncludeFlags(uint);
  3349. bool GetInterceptNetworkUpdate(const String&) const;
  3350. Vector3 GetRandomPoint(int);
  3351. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3352. bool HasSubscribedToEvent(Object, const String&);
  3353. bool HasSubscribedToEvent(const String&);
  3354. bool Load(File, bool = false);
  3355. bool Load(VectorBuffer&, bool = false);
  3356. bool LoadJSON(const JSONValue&, bool = false);
  3357. bool LoadXML(const XMLElement&, bool = false);
  3358. void MarkNetworkUpdate() const;
  3359. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3360. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3361. void Remove();
  3362. void RemoveAttributeAnimation(const String&);
  3363. void RemoveInstanceDefault();
  3364. void RemoveObjectAnimation();
  3365. void ResetCrowdTarget(Node = null);
  3366. void ResetToDefault();
  3367. bool Save(File) const;
  3368. bool Save(VectorBuffer&) const;
  3369. bool SaveJSON(JSONValue&) const;
  3370. bool SaveXML(XMLElement&) const;
  3371. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3372. void SetAnimationTime(float);
  3373. void SetAreaCost(uint, uint, float);
  3374. bool SetAttribute(const String&, const Variant&);
  3375. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3376. void SetAttributeAnimationSpeed(const String&, float);
  3377. void SetAttributeAnimationTime(const String&, float);
  3378. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3379. void SetCrowdTarget(const Vector3&, Node = null);
  3380. void SetCrowdVelocity(const Vector3&, Node = null);
  3381. void SetExcludeFlags(uint, uint16);
  3382. void SetIncludeFlags(uint, uint16);
  3383. void SetInterceptNetworkUpdate(const String&, bool);
  3384. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3385. // Properties:
  3386. bool animationEnabled;
  3387. /* readonly */
  3388. Array<Variant> attributeDefaults;
  3389. /* readonly */
  3390. Array<AttributeInfo> attributeInfos;
  3391. Array<Variant> attributes;
  3392. /* readonly */
  3393. String category;
  3394. bool enabled;
  3395. /* readonly */
  3396. bool enabledEffective;
  3397. /* readonly */
  3398. uint id;
  3399. float maxAgentRadius;
  3400. int maxAgents;
  3401. NavigationMesh navMesh;
  3402. /* readonly */
  3403. Node node;
  3404. /* readonly */
  3405. Array<uint> numAreas;
  3406. /* readonly */
  3407. uint numAttributes;
  3408. /* readonly */
  3409. uint numObstacleAvoidanceTypes;
  3410. /* readonly */
  3411. uint numQueryFilterTypes;
  3412. ObjectAnimation objectAnimation;
  3413. /* readonly */
  3414. int refs;
  3415. bool temporary;
  3416. /* readonly */
  3417. StringHash type;
  3418. /* readonly */
  3419. String typeName;
  3420. /* readonly */
  3421. int weakRefs;
  3422. };
  3423. class CrowdObstacleAvoidanceParams
  3424. {
  3425. // Properties:
  3426. uint8 adaptiveDepth;
  3427. uint8 adaptiveDivs;
  3428. uint8 adaptiveRings;
  3429. uint8 gridSize;
  3430. float horizTime;
  3431. float velBias;
  3432. float weightCurVel;
  3433. float weightDesVel;
  3434. float weightSide;
  3435. float weightToi;
  3436. };
  3437. class Cursor
  3438. {
  3439. // Methods:
  3440. void AddChild(UIElement);
  3441. void AddTag(const String&);
  3442. void AddTags(const String&, int8 = ';');
  3443. void ApplyAttributes();
  3444. void BringToFront();
  3445. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3446. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3447. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3448. void DisableLayoutUpdate();
  3449. IntVector2 ElementToScreen(const IntVector2&);
  3450. void EnableLayoutUpdate();
  3451. uint FindChild(UIElement) const;
  3452. Variant GetAttribute(const String&) const;
  3453. ValueAnimation GetAttributeAnimation(const String&) const;
  3454. float GetAttributeAnimationSpeed(const String&) const;
  3455. float GetAttributeAnimationTime(const String&) const;
  3456. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3457. Variant GetAttributeDefault(const String&) const;
  3458. UIElement GetChild(const String&, bool = false) const;
  3459. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3460. Array<UIElement> GetChildren(bool = false) const;
  3461. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3462. UIElement GetElementEventSender() const;
  3463. bool GetInterceptNetworkUpdate(const String&) const;
  3464. uint GetNumChildren(bool) const;
  3465. bool HasSubscribedToEvent(Object, const String&);
  3466. bool HasSubscribedToEvent(const String&);
  3467. bool HasTag(const String&) const;
  3468. void InsertChild(uint, UIElement);
  3469. bool IsInside(IntVector2, bool);
  3470. bool IsInsideCombined(IntVector2, bool);
  3471. bool Load(File, bool = false);
  3472. bool Load(VectorBuffer&, bool = false);
  3473. bool LoadChildXML(XMLFile, XMLFile = null);
  3474. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3475. bool LoadJSON(const JSONValue&, bool = false);
  3476. bool LoadXML(File);
  3477. bool LoadXML(VectorBuffer&);
  3478. bool LoadXML(XMLFile, XMLFile);
  3479. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3480. bool LoadXML(const XMLElement&, bool = false);
  3481. void MarkNetworkUpdate() const;
  3482. void Remove();
  3483. void RemoveAllChildren();
  3484. void RemoveAllTags();
  3485. void RemoveAttributeAnimation(const String&);
  3486. void RemoveChild(UIElement, uint = 0);
  3487. void RemoveChild(uint);
  3488. void RemoveInstanceDefault();
  3489. void RemoveObjectAnimation();
  3490. bool RemoveTag(const String&);
  3491. void ResetDeepEnabled();
  3492. void ResetToDefault();
  3493. bool Save(File) const;
  3494. bool Save(VectorBuffer&) const;
  3495. bool SaveJSON(JSONValue&) const;
  3496. bool SaveXML(File, const String& = "\t");
  3497. bool SaveXML(VectorBuffer&, const String& = "\t");
  3498. bool SaveXML(XMLElement&) const;
  3499. IntVector2 ScreenToElement(const IntVector2&);
  3500. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3501. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3502. void SetAnimationTime(float);
  3503. bool SetAttribute(const String&, const Variant&);
  3504. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3505. void SetAttributeAnimationSpeed(const String&, float);
  3506. void SetAttributeAnimationTime(const String&, float);
  3507. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3508. void SetDeepEnabled(bool);
  3509. void SetEnabledRecursive(bool);
  3510. void SetFixedHeight(int);
  3511. void SetFixedSize(int, int);
  3512. void SetFixedWidth(int);
  3513. void SetFullImageRect();
  3514. void SetHoverOffset(int, int);
  3515. void SetInterceptNetworkUpdate(const String&, bool);
  3516. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3517. void SetMaxSize(int, int);
  3518. void SetMinSize(int, int);
  3519. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3520. void SetPosition(int, int);
  3521. void SetShape(CursorShape);
  3522. void SetShape(const String&);
  3523. void SetSize(int, int);
  3524. bool SetStyle(const String&, XMLFile = null);
  3525. bool SetStyle(const XMLElement&);
  3526. bool SetStyleAuto(XMLFile = null);
  3527. void UpdateLayout();
  3528. const Variant& GetVar(const StringHash&);
  3529. // Properties:
  3530. bool animationEnabled;
  3531. /* readonly */
  3532. Array<Variant> attributeDefaults;
  3533. /* readonly */
  3534. Array<AttributeInfo> attributeInfos;
  3535. Array<Variant> attributes;
  3536. BlendMode blendMode;
  3537. IntRect border;
  3538. bool bringToBack;
  3539. bool bringToFront;
  3540. /* readonly */
  3541. String category;
  3542. /* readonly */
  3543. IntVector2 childOffset;
  3544. /* readonly */
  3545. Array<UIElement> children;
  3546. IntRect clipBorder;
  3547. bool clipChildren;
  3548. /* writeonly */
  3549. Color color;
  3550. /* readonly */
  3551. bool colorGradient;
  3552. Array<Color> colors;
  3553. /* readonly */
  3554. IntRect combinedScreenRect;
  3555. XMLFile defaultStyle;
  3556. /* readonly */
  3557. float derivedOpacity;
  3558. /* readonly */
  3559. uint dragButtonCombo;
  3560. /* readonly */
  3561. int dragButtonCount;
  3562. uint dragDropMode;
  3563. bool editable;
  3564. bool elementEventSender;
  3565. bool enabled;
  3566. /* readonly */
  3567. bool enabledSelf;
  3568. /* readonly */
  3569. bool fixedHeight;
  3570. /* readonly */
  3571. bool fixedSize;
  3572. /* readonly */
  3573. bool fixedWidth;
  3574. bool focus;
  3575. FocusMode focusMode;
  3576. int height;
  3577. HorizontalAlignment horizontalAlignment;
  3578. IntVector2 hoverOffset;
  3579. /* readonly */
  3580. bool hovering;
  3581. IntRect imageBorder;
  3582. IntRect imageRect;
  3583. int indent;
  3584. int indentSpacing;
  3585. /* readonly */
  3586. int indentWidth;
  3587. bool internal;
  3588. IntRect layoutBorder;
  3589. Vector2 layoutFlexScale;
  3590. LayoutMode layoutMode;
  3591. int layoutSpacing;
  3592. int maxHeight;
  3593. IntVector2 maxSize;
  3594. int maxWidth;
  3595. int minHeight;
  3596. IntVector2 minSize;
  3597. int minWidth;
  3598. String name;
  3599. /* readonly */
  3600. uint numAllChildren;
  3601. /* readonly */
  3602. uint numAttributes;
  3603. /* readonly */
  3604. uint numChildren;
  3605. ObjectAnimation objectAnimation;
  3606. float opacity;
  3607. UIElement parent;
  3608. IntVector2 position;
  3609. int priority;
  3610. /* readonly */
  3611. int refs;
  3612. /* readonly */
  3613. UIElement root;
  3614. /* readonly */
  3615. IntVector2 screenPosition;
  3616. bool selected;
  3617. String shape;
  3618. IntVector2 size;
  3619. bool sortChildren;
  3620. String style;
  3621. /* readonly */
  3622. Array<String> tags;
  3623. bool temporary;
  3624. Texture texture;
  3625. bool tiled;
  3626. TraversalMode traversalMode;
  3627. /* readonly */
  3628. StringHash type;
  3629. /* readonly */
  3630. String typeName;
  3631. bool useDerivedOpacity;
  3632. bool useSystemShapes;
  3633. /* readonly */
  3634. VariantMap vars;
  3635. VerticalAlignment verticalAlignment;
  3636. bool visible;
  3637. /* readonly */
  3638. bool visibleEffective;
  3639. /* readonly */
  3640. int weakRefs;
  3641. int width;
  3642. };
  3643. class CustomGeometry
  3644. {
  3645. // Methods:
  3646. void ApplyAttributes();
  3647. void BeginGeometry(uint, PrimitiveType);
  3648. void Clear();
  3649. void Commit();
  3650. void DefineColor(const Color&);
  3651. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3652. void DefineNormal(const Vector3&);
  3653. void DefineTangent(const Vector4&);
  3654. void DefineTexCoord(const Vector2&);
  3655. void DefineVertex(const Vector3&);
  3656. void DrawDebugGeometry(DebugRenderer, bool);
  3657. Variant GetAttribute(const String&) const;
  3658. ValueAnimation GetAttributeAnimation(const String&) const;
  3659. float GetAttributeAnimationSpeed(const String&) const;
  3660. float GetAttributeAnimationTime(const String&) const;
  3661. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3662. Variant GetAttributeDefault(const String&) const;
  3663. bool GetInterceptNetworkUpdate(const String&) const;
  3664. CustomGeometryVertex GetVertex(uint, uint);
  3665. bool HasSubscribedToEvent(Object, const String&);
  3666. bool HasSubscribedToEvent(const String&);
  3667. bool IsInView(Camera) const;
  3668. bool Load(File, bool = false);
  3669. bool Load(VectorBuffer&, bool = false);
  3670. bool LoadJSON(const JSONValue&, bool = false);
  3671. bool LoadXML(const XMLElement&, bool = false);
  3672. void MarkNetworkUpdate() const;
  3673. void Remove();
  3674. void RemoveAttributeAnimation(const String&);
  3675. void RemoveInstanceDefault();
  3676. void RemoveObjectAnimation();
  3677. void ResetToDefault();
  3678. bool Save(File) const;
  3679. bool Save(VectorBuffer&) const;
  3680. bool SaveJSON(JSONValue&) const;
  3681. bool SaveXML(XMLElement&) const;
  3682. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3683. void SetAnimationTime(float);
  3684. bool SetAttribute(const String&, const Variant&);
  3685. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3686. void SetAttributeAnimationSpeed(const String&, float);
  3687. void SetAttributeAnimationTime(const String&, float);
  3688. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3689. void SetInterceptNetworkUpdate(const String&, bool);
  3690. // Properties:
  3691. bool animationEnabled;
  3692. /* readonly */
  3693. Array<Variant> attributeDefaults;
  3694. /* readonly */
  3695. Array<AttributeInfo> attributeInfos;
  3696. Array<Variant> attributes;
  3697. /* readonly */
  3698. BoundingBox boundingBox;
  3699. bool castShadows;
  3700. /* readonly */
  3701. String category;
  3702. float drawDistance;
  3703. bool dynamic;
  3704. bool enabled;
  3705. /* readonly */
  3706. bool enabledEffective;
  3707. /* readonly */
  3708. uint id;
  3709. /* readonly */
  3710. bool inView;
  3711. uint lightMask;
  3712. float lodBias;
  3713. /* writeonly */
  3714. Material material;
  3715. Array<Material> materials;
  3716. uint maxLights;
  3717. /* readonly */
  3718. Node node;
  3719. /* readonly */
  3720. uint numAttributes;
  3721. uint numGeometries;
  3722. /* readonly */
  3723. Array<uint> numVertices;
  3724. ObjectAnimation objectAnimation;
  3725. bool occludee;
  3726. bool occluder;
  3727. /* readonly */
  3728. int refs;
  3729. float shadowDistance;
  3730. uint shadowMask;
  3731. bool temporary;
  3732. /* readonly */
  3733. StringHash type;
  3734. /* readonly */
  3735. String typeName;
  3736. uint viewMask;
  3737. /* readonly */
  3738. int weakRefs;
  3739. /* readonly */
  3740. BoundingBox worldBoundingBox;
  3741. /* readonly */
  3742. Zone zone;
  3743. uint zoneMask;
  3744. };
  3745. class CustomGeometryVertex
  3746. {
  3747. // Properties:
  3748. uint color;
  3749. Vector3 normal;
  3750. Vector3 position;
  3751. Vector4 tangent;
  3752. Vector2 texCoord;
  3753. };
  3754. class Database
  3755. {
  3756. // Methods:
  3757. DbConnection Connect(const String&);
  3758. void Disconnect(DbConnection);
  3759. bool HasSubscribedToEvent(Object, const String&);
  3760. bool HasSubscribedToEvent(const String&);
  3761. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3762. // Properties:
  3763. /* readonly */
  3764. String category;
  3765. uint poolSize;
  3766. /* readonly */
  3767. bool pooling;
  3768. /* readonly */
  3769. int refs;
  3770. /* readonly */
  3771. StringHash type;
  3772. /* readonly */
  3773. String typeName;
  3774. /* readonly */
  3775. int weakRefs;
  3776. };
  3777. class DbConnection
  3778. {
  3779. // Methods:
  3780. DbResult Execute(const String&, bool = false);
  3781. bool HasSubscribedToEvent(Object, const String&);
  3782. bool HasSubscribedToEvent(const String&);
  3783. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3784. // Properties:
  3785. /* readonly */
  3786. String category;
  3787. /* readonly */
  3788. bool connected;
  3789. /* readonly */
  3790. String connectionString;
  3791. /* readonly */
  3792. int refs;
  3793. /* readonly */
  3794. StringHash type;
  3795. /* readonly */
  3796. String typeName;
  3797. /* readonly */
  3798. int weakRefs;
  3799. };
  3800. class DbResult
  3801. {
  3802. // Properties:
  3803. /* readonly */
  3804. Array<String> columns;
  3805. /* readonly */
  3806. int64 numAffectedRows;
  3807. /* readonly */
  3808. uint numColumns;
  3809. /* readonly */
  3810. uint numRows;
  3811. /* readonly */
  3812. Array<Array<Variant>> row;
  3813. };
  3814. class DebugHud
  3815. {
  3816. // Methods:
  3817. void ClearAppStats();
  3818. bool HasSubscribedToEvent(Object, const String&);
  3819. bool HasSubscribedToEvent(const String&);
  3820. void ResetAppStats(const String&);
  3821. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3822. void SetAppStats(const String&, const String&);
  3823. void SetAppStats(const String&, const Variant&);
  3824. void Toggle(uint);
  3825. void ToggleAll();
  3826. void Update();
  3827. // Properties:
  3828. /* readonly */
  3829. String category;
  3830. XMLFile defaultStyle;
  3831. /* readonly */
  3832. Text memoryText;
  3833. uint mode;
  3834. /* readonly */
  3835. Text modeText;
  3836. float profilerInterval;
  3837. uint profilerMaxDepth;
  3838. /* readonly */
  3839. Text profilerText;
  3840. /* readonly */
  3841. int refs;
  3842. /* readonly */
  3843. Text statsText;
  3844. /* readonly */
  3845. StringHash type;
  3846. /* readonly */
  3847. String typeName;
  3848. bool useRendererStats;
  3849. /* readonly */
  3850. int weakRefs;
  3851. };
  3852. class DebugRenderer
  3853. {
  3854. // Methods:
  3855. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3856. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3857. void AddCross(const Vector3&, float, const Color&, bool = true);
  3858. void AddFrustum(const Frustum&, const Color&, bool = true);
  3859. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3860. void AddNode(Node, float = 1.0, bool = true);
  3861. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3862. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3863. void AddSkeleton(Skeleton, const Color&, bool = true);
  3864. void AddSphere(const Sphere&, const Color&, bool = true);
  3865. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3866. void ApplyAttributes();
  3867. void DrawDebugGeometry(DebugRenderer, bool);
  3868. Variant GetAttribute(const String&) const;
  3869. ValueAnimation GetAttributeAnimation(const String&) const;
  3870. float GetAttributeAnimationSpeed(const String&) const;
  3871. float GetAttributeAnimationTime(const String&) const;
  3872. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3873. Variant GetAttributeDefault(const String&) const;
  3874. bool GetInterceptNetworkUpdate(const String&) const;
  3875. bool HasSubscribedToEvent(Object, const String&);
  3876. bool HasSubscribedToEvent(const String&);
  3877. bool Load(File, bool = false);
  3878. bool Load(VectorBuffer&, bool = false);
  3879. bool LoadJSON(const JSONValue&, bool = false);
  3880. bool LoadXML(const XMLElement&, bool = false);
  3881. void MarkNetworkUpdate() const;
  3882. void Remove();
  3883. void RemoveAttributeAnimation(const String&);
  3884. void RemoveInstanceDefault();
  3885. void RemoveObjectAnimation();
  3886. void ResetToDefault();
  3887. bool Save(File) const;
  3888. bool Save(VectorBuffer&) const;
  3889. bool SaveJSON(JSONValue&) const;
  3890. bool SaveXML(XMLElement&) const;
  3891. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3892. void SetAnimationTime(float);
  3893. bool SetAttribute(const String&, const Variant&);
  3894. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3895. void SetAttributeAnimationSpeed(const String&, float);
  3896. void SetAttributeAnimationTime(const String&, float);
  3897. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3898. void SetInterceptNetworkUpdate(const String&, bool);
  3899. // Properties:
  3900. bool animationEnabled;
  3901. /* readonly */
  3902. Array<Variant> attributeDefaults;
  3903. /* readonly */
  3904. Array<AttributeInfo> attributeInfos;
  3905. Array<Variant> attributes;
  3906. /* readonly */
  3907. String category;
  3908. bool enabled;
  3909. /* readonly */
  3910. bool enabledEffective;
  3911. /* readonly */
  3912. uint id;
  3913. /* readonly */
  3914. Node node;
  3915. /* readonly */
  3916. uint numAttributes;
  3917. ObjectAnimation objectAnimation;
  3918. /* readonly */
  3919. int refs;
  3920. bool temporary;
  3921. /* readonly */
  3922. StringHash type;
  3923. /* readonly */
  3924. String typeName;
  3925. /* readonly */
  3926. int weakRefs;
  3927. };
  3928. class DecalSet
  3929. {
  3930. // Methods:
  3931. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3932. void ApplyAttributes();
  3933. void DrawDebugGeometry(DebugRenderer, bool);
  3934. Variant GetAttribute(const String&) const;
  3935. ValueAnimation GetAttributeAnimation(const String&) const;
  3936. float GetAttributeAnimationSpeed(const String&) const;
  3937. float GetAttributeAnimationTime(const String&) const;
  3938. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3939. Variant GetAttributeDefault(const String&) const;
  3940. bool GetInterceptNetworkUpdate(const String&) const;
  3941. bool HasSubscribedToEvent(Object, const String&);
  3942. bool HasSubscribedToEvent(const String&);
  3943. bool IsInView(Camera) const;
  3944. bool Load(File, bool = false);
  3945. bool Load(VectorBuffer&, bool = false);
  3946. bool LoadJSON(const JSONValue&, bool = false);
  3947. bool LoadXML(const XMLElement&, bool = false);
  3948. void MarkNetworkUpdate() const;
  3949. void Remove();
  3950. void RemoveAllDecals();
  3951. void RemoveAttributeAnimation(const String&);
  3952. void RemoveDecals(uint);
  3953. void RemoveInstanceDefault();
  3954. void RemoveObjectAnimation();
  3955. void ResetToDefault();
  3956. bool Save(File) const;
  3957. bool Save(VectorBuffer&) const;
  3958. bool SaveJSON(JSONValue&) const;
  3959. bool SaveXML(XMLElement&) const;
  3960. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3961. void SetAnimationTime(float);
  3962. bool SetAttribute(const String&, const Variant&);
  3963. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3964. void SetAttributeAnimationSpeed(const String&, float);
  3965. void SetAttributeAnimationTime(const String&, float);
  3966. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3967. void SetInterceptNetworkUpdate(const String&, bool);
  3968. // Properties:
  3969. bool animationEnabled;
  3970. /* readonly */
  3971. Array<Variant> attributeDefaults;
  3972. /* readonly */
  3973. Array<AttributeInfo> attributeInfos;
  3974. Array<Variant> attributes;
  3975. /* readonly */
  3976. BoundingBox boundingBox;
  3977. bool castShadows;
  3978. /* readonly */
  3979. String category;
  3980. float drawDistance;
  3981. bool enabled;
  3982. /* readonly */
  3983. bool enabledEffective;
  3984. /* readonly */
  3985. uint id;
  3986. /* readonly */
  3987. bool inView;
  3988. uint lightMask;
  3989. float lodBias;
  3990. Material material;
  3991. uint maxIndices;
  3992. uint maxLights;
  3993. uint maxVertices;
  3994. /* readonly */
  3995. Node node;
  3996. /* readonly */
  3997. uint numAttributes;
  3998. /* readonly */
  3999. uint numDecals;
  4000. /* readonly */
  4001. uint numIndices;
  4002. /* readonly */
  4003. uint numVertices;
  4004. ObjectAnimation objectAnimation;
  4005. bool occludee;
  4006. bool occluder;
  4007. /* readonly */
  4008. int refs;
  4009. float shadowDistance;
  4010. uint shadowMask;
  4011. bool temporary;
  4012. /* readonly */
  4013. StringHash type;
  4014. /* readonly */
  4015. String typeName;
  4016. uint viewMask;
  4017. /* readonly */
  4018. int weakRefs;
  4019. /* readonly */
  4020. BoundingBox worldBoundingBox;
  4021. /* readonly */
  4022. Zone zone;
  4023. uint zoneMask;
  4024. };
  4025. class Deserializer
  4026. {
  4027. // Methods:
  4028. Array<uint8> Read(uint);
  4029. bool ReadBool();
  4030. BoundingBox ReadBoundingBox();
  4031. int8 ReadByte();
  4032. Color ReadColor();
  4033. double ReadDouble();
  4034. String ReadFileID();
  4035. float ReadFloat();
  4036. int ReadInt();
  4037. IntRect ReadIntRect();
  4038. IntVector2 ReadIntVector2();
  4039. String ReadLine();
  4040. Matrix3 ReadMatrix3();
  4041. Matrix3x4 ReadMatrix3x4();
  4042. Matrix4 ReadMatrix4();
  4043. uint ReadNetID();
  4044. Quaternion ReadPackedQuaternion();
  4045. Vector3 ReadPackedVector3(float);
  4046. Quaternion ReadQuaternion();
  4047. int16 ReadShort();
  4048. String ReadString();
  4049. StringHash ReadStringHash();
  4050. uint8 ReadUByte();
  4051. uint ReadUInt();
  4052. uint16 ReadUShort();
  4053. uint ReadVLE();
  4054. Variant ReadVariant();
  4055. VariantMap ReadVariantMap();
  4056. Vector2 ReadVector2();
  4057. Vector3 ReadVector3();
  4058. Vector4 ReadVector4();
  4059. VectorBuffer ReadVectorBuffer(uint);
  4060. uint Seek(uint);
  4061. // Properties:
  4062. /* readonly */
  4063. uint checksum;
  4064. /* readonly */
  4065. bool eof;
  4066. /* readonly */
  4067. String name;
  4068. /* readonly */
  4069. uint position;
  4070. /* readonly */
  4071. uint size;
  4072. };
  4073. class Dictionary
  4074. {
  4075. // Methods:
  4076. void Clear();
  4077. void Erase(const String&);
  4078. bool Exists(const String&) const;
  4079. bool Get(const String&, void*) const;
  4080. bool Get(const String&, double&) const;
  4081. bool Get(const String&, int64&) const;
  4082. void Set(const String&, const void*);
  4083. void Set(const String&, const double&);
  4084. void Set(const String&, const int64&);
  4085. // Properties:
  4086. /* readonly */
  4087. bool empty;
  4088. /* readonly */
  4089. Array<String> keys;
  4090. /* readonly */
  4091. uint length;
  4092. };
  4093. class DictionaryValue
  4094. {
  4095. };
  4096. class Drawable
  4097. {
  4098. // Methods:
  4099. void ApplyAttributes();
  4100. void DrawDebugGeometry(DebugRenderer, bool);
  4101. Variant GetAttribute(const String&) const;
  4102. ValueAnimation GetAttributeAnimation(const String&) const;
  4103. float GetAttributeAnimationSpeed(const String&) const;
  4104. float GetAttributeAnimationTime(const String&) const;
  4105. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4106. Variant GetAttributeDefault(const String&) const;
  4107. bool GetInterceptNetworkUpdate(const String&) const;
  4108. bool HasSubscribedToEvent(Object, const String&);
  4109. bool HasSubscribedToEvent(const String&);
  4110. bool IsInView(Camera) const;
  4111. bool Load(File, bool = false);
  4112. bool Load(VectorBuffer&, bool = false);
  4113. bool LoadJSON(const JSONValue&, bool = false);
  4114. bool LoadXML(const XMLElement&, bool = false);
  4115. void MarkNetworkUpdate() const;
  4116. void Remove();
  4117. void RemoveAttributeAnimation(const String&);
  4118. void RemoveInstanceDefault();
  4119. void RemoveObjectAnimation();
  4120. void ResetToDefault();
  4121. bool Save(File) const;
  4122. bool Save(VectorBuffer&) const;
  4123. bool SaveJSON(JSONValue&) const;
  4124. bool SaveXML(XMLElement&) const;
  4125. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4126. void SetAnimationTime(float);
  4127. bool SetAttribute(const String&, const Variant&);
  4128. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4129. void SetAttributeAnimationSpeed(const String&, float);
  4130. void SetAttributeAnimationTime(const String&, float);
  4131. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4132. void SetInterceptNetworkUpdate(const String&, bool);
  4133. // Properties:
  4134. bool animationEnabled;
  4135. /* readonly */
  4136. Array<Variant> attributeDefaults;
  4137. /* readonly */
  4138. Array<AttributeInfo> attributeInfos;
  4139. Array<Variant> attributes;
  4140. /* readonly */
  4141. BoundingBox boundingBox;
  4142. bool castShadows;
  4143. /* readonly */
  4144. String category;
  4145. float drawDistance;
  4146. bool enabled;
  4147. /* readonly */
  4148. bool enabledEffective;
  4149. /* readonly */
  4150. uint id;
  4151. /* readonly */
  4152. bool inView;
  4153. uint lightMask;
  4154. float lodBias;
  4155. uint maxLights;
  4156. /* readonly */
  4157. Node node;
  4158. /* readonly */
  4159. uint numAttributes;
  4160. ObjectAnimation objectAnimation;
  4161. bool occludee;
  4162. bool occluder;
  4163. /* readonly */
  4164. int refs;
  4165. float shadowDistance;
  4166. uint shadowMask;
  4167. bool temporary;
  4168. /* readonly */
  4169. StringHash type;
  4170. /* readonly */
  4171. String typeName;
  4172. uint viewMask;
  4173. /* readonly */
  4174. int weakRefs;
  4175. /* readonly */
  4176. BoundingBox worldBoundingBox;
  4177. uint zoneMask;
  4178. };
  4179. class Drawable2D
  4180. {
  4181. // Methods:
  4182. void ApplyAttributes();
  4183. void DrawDebugGeometry(DebugRenderer, bool);
  4184. Variant GetAttribute(const String&) const;
  4185. ValueAnimation GetAttributeAnimation(const String&) const;
  4186. float GetAttributeAnimationSpeed(const String&) const;
  4187. float GetAttributeAnimationTime(const String&) const;
  4188. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4189. Variant GetAttributeDefault(const String&) const;
  4190. bool GetInterceptNetworkUpdate(const String&) const;
  4191. bool HasSubscribedToEvent(Object, const String&);
  4192. bool HasSubscribedToEvent(const String&);
  4193. bool IsInView(Camera) const;
  4194. bool Load(File, bool = false);
  4195. bool Load(VectorBuffer&, bool = false);
  4196. bool LoadJSON(const JSONValue&, bool = false);
  4197. bool LoadXML(const XMLElement&, bool = false);
  4198. void MarkNetworkUpdate() const;
  4199. void Remove();
  4200. void RemoveAttributeAnimation(const String&);
  4201. void RemoveInstanceDefault();
  4202. void RemoveObjectAnimation();
  4203. void ResetToDefault();
  4204. bool Save(File) const;
  4205. bool Save(VectorBuffer&) const;
  4206. bool SaveJSON(JSONValue&) const;
  4207. bool SaveXML(XMLElement&) const;
  4208. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4209. void SetAnimationTime(float);
  4210. bool SetAttribute(const String&, const Variant&);
  4211. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4212. void SetAttributeAnimationSpeed(const String&, float);
  4213. void SetAttributeAnimationTime(const String&, float);
  4214. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4215. void SetInterceptNetworkUpdate(const String&, bool);
  4216. // Properties:
  4217. bool animationEnabled;
  4218. /* readonly */
  4219. Array<Variant> attributeDefaults;
  4220. /* readonly */
  4221. Array<AttributeInfo> attributeInfos;
  4222. Array<Variant> attributes;
  4223. /* readonly */
  4224. BoundingBox boundingBox;
  4225. bool castShadows;
  4226. /* readonly */
  4227. String category;
  4228. float drawDistance;
  4229. bool enabled;
  4230. /* readonly */
  4231. bool enabledEffective;
  4232. /* readonly */
  4233. uint id;
  4234. /* readonly */
  4235. bool inView;
  4236. int layer;
  4237. uint lightMask;
  4238. float lodBias;
  4239. uint maxLights;
  4240. /* readonly */
  4241. Node node;
  4242. /* readonly */
  4243. uint numAttributes;
  4244. ObjectAnimation objectAnimation;
  4245. bool occludee;
  4246. bool occluder;
  4247. int orderInLayer;
  4248. /* readonly */
  4249. int refs;
  4250. float shadowDistance;
  4251. uint shadowMask;
  4252. bool temporary;
  4253. /* readonly */
  4254. StringHash type;
  4255. /* readonly */
  4256. String typeName;
  4257. uint viewMask;
  4258. /* readonly */
  4259. int weakRefs;
  4260. /* readonly */
  4261. BoundingBox worldBoundingBox;
  4262. uint zoneMask;
  4263. };
  4264. class DropDownList
  4265. {
  4266. // Methods:
  4267. void AddChild(UIElement);
  4268. void AddItem(UIElement);
  4269. void AddTag(const String&);
  4270. void AddTags(const String&, int8 = ';');
  4271. void ApplyAttributes();
  4272. void BringToFront();
  4273. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4274. void DisableLayoutUpdate();
  4275. IntVector2 ElementToScreen(const IntVector2&);
  4276. void EnableLayoutUpdate();
  4277. uint FindChild(UIElement) const;
  4278. Variant GetAttribute(const String&) const;
  4279. ValueAnimation GetAttributeAnimation(const String&) const;
  4280. float GetAttributeAnimationSpeed(const String&) const;
  4281. float GetAttributeAnimationTime(const String&) const;
  4282. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4283. Variant GetAttributeDefault(const String&) const;
  4284. UIElement GetChild(const String&, bool = false) const;
  4285. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4286. Array<UIElement> GetChildren(bool = false) const;
  4287. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4288. UIElement GetElementEventSender() const;
  4289. bool GetInterceptNetworkUpdate(const String&) const;
  4290. Array<UIElement> GetItems() const;
  4291. uint GetNumChildren(bool) const;
  4292. bool HasSubscribedToEvent(Object, const String&);
  4293. bool HasSubscribedToEvent(const String&);
  4294. bool HasTag(const String&) const;
  4295. void InsertChild(uint, UIElement);
  4296. void InsertItem(uint, UIElement);
  4297. bool IsInside(IntVector2, bool);
  4298. bool IsInsideCombined(IntVector2, bool);
  4299. bool Load(File, bool = false);
  4300. bool Load(VectorBuffer&, bool = false);
  4301. bool LoadChildXML(XMLFile, XMLFile = null);
  4302. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4303. bool LoadJSON(const JSONValue&, bool = false);
  4304. bool LoadXML(File);
  4305. bool LoadXML(VectorBuffer&);
  4306. bool LoadXML(XMLFile, XMLFile);
  4307. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4308. bool LoadXML(const XMLElement&, bool = false);
  4309. void MarkNetworkUpdate() const;
  4310. void Remove();
  4311. void RemoveAllChildren();
  4312. void RemoveAllItems();
  4313. void RemoveAllTags();
  4314. void RemoveAttributeAnimation(const String&);
  4315. void RemoveChild(UIElement, uint = 0);
  4316. void RemoveChild(uint);
  4317. void RemoveInstanceDefault();
  4318. void RemoveItem(UIElement);
  4319. void RemoveItem(uint);
  4320. void RemoveObjectAnimation();
  4321. bool RemoveTag(const String&);
  4322. void ResetDeepEnabled();
  4323. void ResetToDefault();
  4324. bool Save(File) const;
  4325. bool Save(VectorBuffer&) const;
  4326. bool SaveJSON(JSONValue&) const;
  4327. bool SaveXML(File, const String& = "\t");
  4328. bool SaveXML(VectorBuffer&, const String& = "\t");
  4329. bool SaveXML(XMLElement&) const;
  4330. IntVector2 ScreenToElement(const IntVector2&);
  4331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4332. void SetAccelerator(int, int);
  4333. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4334. void SetAnimationTime(float);
  4335. bool SetAttribute(const String&, const Variant&);
  4336. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4337. void SetAttributeAnimationSpeed(const String&, float);
  4338. void SetAttributeAnimationTime(const String&, float);
  4339. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4340. void SetDeepEnabled(bool);
  4341. void SetEnabledRecursive(bool);
  4342. void SetFixedHeight(int);
  4343. void SetFixedSize(int, int);
  4344. void SetFixedWidth(int);
  4345. void SetFullImageRect();
  4346. void SetHoverOffset(int, int);
  4347. void SetInterceptNetworkUpdate(const String&, bool);
  4348. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4349. void SetMaxSize(int, int);
  4350. void SetMinSize(int, int);
  4351. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4352. void SetPosition(int, int);
  4353. void SetPressedChildOffset(int, int);
  4354. void SetPressedOffset(int, int);
  4355. void SetRepeat(float, float);
  4356. void SetSize(int, int);
  4357. bool SetStyle(const String&, XMLFile = null);
  4358. bool SetStyle(const XMLElement&);
  4359. bool SetStyleAuto(XMLFile = null);
  4360. void UpdateLayout();
  4361. const Variant& GetVar(const StringHash&);
  4362. UIElement getPopup() const;
  4363. // Properties:
  4364. /* readonly */
  4365. int acceleratorKey;
  4366. /* readonly */
  4367. int acceleratorQualifiers;
  4368. bool animationEnabled;
  4369. /* readonly */
  4370. Array<Variant> attributeDefaults;
  4371. /* readonly */
  4372. Array<AttributeInfo> attributeInfos;
  4373. Array<Variant> attributes;
  4374. BlendMode blendMode;
  4375. IntRect border;
  4376. bool bringToBack;
  4377. bool bringToFront;
  4378. /* readonly */
  4379. String category;
  4380. /* readonly */
  4381. IntVector2 childOffset;
  4382. /* readonly */
  4383. Array<UIElement> children;
  4384. IntRect clipBorder;
  4385. bool clipChildren;
  4386. /* writeonly */
  4387. Color color;
  4388. /* readonly */
  4389. bool colorGradient;
  4390. Array<Color> colors;
  4391. /* readonly */
  4392. IntRect combinedScreenRect;
  4393. XMLFile defaultStyle;
  4394. /* readonly */
  4395. float derivedOpacity;
  4396. /* readonly */
  4397. uint dragButtonCombo;
  4398. /* readonly */
  4399. int dragButtonCount;
  4400. uint dragDropMode;
  4401. bool editable;
  4402. bool elementEventSender;
  4403. bool enabled;
  4404. /* readonly */
  4405. bool enabledSelf;
  4406. /* readonly */
  4407. bool fixedHeight;
  4408. /* readonly */
  4409. bool fixedSize;
  4410. /* readonly */
  4411. bool fixedWidth;
  4412. bool focus;
  4413. FocusMode focusMode;
  4414. int height;
  4415. HorizontalAlignment horizontalAlignment;
  4416. IntVector2 hoverOffset;
  4417. /* readonly */
  4418. bool hovering;
  4419. IntRect imageBorder;
  4420. IntRect imageRect;
  4421. int indent;
  4422. int indentSpacing;
  4423. /* readonly */
  4424. int indentWidth;
  4425. bool internal;
  4426. /* readonly */
  4427. Array<UIElement> items;
  4428. IntRect layoutBorder;
  4429. Vector2 layoutFlexScale;
  4430. LayoutMode layoutMode;
  4431. int layoutSpacing;
  4432. /* readonly */
  4433. ListView listView;
  4434. int maxHeight;
  4435. IntVector2 maxSize;
  4436. int maxWidth;
  4437. int minHeight;
  4438. IntVector2 minSize;
  4439. int minWidth;
  4440. String name;
  4441. /* readonly */
  4442. uint numAllChildren;
  4443. /* readonly */
  4444. uint numAttributes;
  4445. /* readonly */
  4446. uint numChildren;
  4447. /* readonly */
  4448. uint numItems;
  4449. ObjectAnimation objectAnimation;
  4450. float opacity;
  4451. UIElement parent;
  4452. /* readonly */
  4453. UIElement placeholder;
  4454. String placeholderText;
  4455. IntVector2 position;
  4456. /* readonly */
  4457. bool pressed;
  4458. IntVector2 pressedChildOffset;
  4459. IntVector2 pressedOffset;
  4460. int priority;
  4461. /* readonly */
  4462. int refs;
  4463. float repeatDelay;
  4464. float repeatRate;
  4465. bool resizePopup;
  4466. /* readonly */
  4467. UIElement root;
  4468. /* readonly */
  4469. IntVector2 screenPosition;
  4470. bool selected;
  4471. /* readonly */
  4472. UIElement selectedItem;
  4473. uint selection;
  4474. bool showPopup;
  4475. IntVector2 size;
  4476. bool sortChildren;
  4477. String style;
  4478. /* readonly */
  4479. Array<String> tags;
  4480. bool temporary;
  4481. Texture texture;
  4482. bool tiled;
  4483. TraversalMode traversalMode;
  4484. /* readonly */
  4485. StringHash type;
  4486. /* readonly */
  4487. String typeName;
  4488. bool useDerivedOpacity;
  4489. /* readonly */
  4490. VariantMap vars;
  4491. VerticalAlignment verticalAlignment;
  4492. bool visible;
  4493. /* readonly */
  4494. bool visibleEffective;
  4495. /* readonly */
  4496. int weakRefs;
  4497. int width;
  4498. };
  4499. class DynamicNavigationMesh
  4500. {
  4501. // Methods:
  4502. void ApplyAttributes();
  4503. bool Build();
  4504. bool Build(const BoundingBox&);
  4505. void DrawDebugGeometry(DebugRenderer, bool);
  4506. void DrawDebugGeometry(bool);
  4507. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4508. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4509. float GetAreaCost(uint) const;
  4510. Variant GetAttribute(const String&) const;
  4511. ValueAnimation GetAttributeAnimation(const String&) const;
  4512. float GetAttributeAnimationSpeed(const String&) const;
  4513. float GetAttributeAnimationTime(const String&) const;
  4514. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4515. Variant GetAttributeDefault(const String&) const;
  4516. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4517. bool GetInterceptNetworkUpdate(const String&) const;
  4518. Vector3 GetRandomPoint();
  4519. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4520. bool HasSubscribedToEvent(Object, const String&);
  4521. bool HasSubscribedToEvent(const String&);
  4522. bool Load(File, bool = false);
  4523. bool Load(VectorBuffer&, bool = false);
  4524. bool LoadJSON(const JSONValue&, bool = false);
  4525. bool LoadXML(const XMLElement&, bool = false);
  4526. void MarkNetworkUpdate() const;
  4527. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4528. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4529. void Remove();
  4530. void RemoveAttributeAnimation(const String&);
  4531. void RemoveInstanceDefault();
  4532. void RemoveObjectAnimation();
  4533. void ResetToDefault();
  4534. bool Save(File) const;
  4535. bool Save(VectorBuffer&) const;
  4536. bool SaveJSON(JSONValue&) const;
  4537. bool SaveXML(XMLElement&) const;
  4538. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4539. void SetAnimationTime(float);
  4540. void SetAreaCost(uint, float);
  4541. bool SetAttribute(const String&, const Variant&);
  4542. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4543. void SetAttributeAnimationSpeed(const String&, float);
  4544. void SetAttributeAnimationTime(const String&, float);
  4545. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4546. void SetInterceptNetworkUpdate(const String&, bool);
  4547. // Properties:
  4548. float agentHeight;
  4549. float agentMaxClimb;
  4550. float agentMaxSlope;
  4551. float agentRadius;
  4552. bool animationEnabled;
  4553. /* readonly */
  4554. Array<Variant> attributeDefaults;
  4555. /* readonly */
  4556. Array<AttributeInfo> attributeInfos;
  4557. Array<Variant> attributes;
  4558. /* readonly */
  4559. BoundingBox boundingBox;
  4560. /* readonly */
  4561. String category;
  4562. float cellHeight;
  4563. float cellSize;
  4564. float detailSampleDistance;
  4565. float detailSampleMaxError;
  4566. bool drawNavAreas;
  4567. bool drawObstacles;
  4568. bool drawOffMeshConnections;
  4569. float edgeMaxError;
  4570. float edgeMaxLength;
  4571. bool enabled;
  4572. /* readonly */
  4573. bool enabledEffective;
  4574. /* readonly */
  4575. uint id;
  4576. /* readonly */
  4577. bool initialized;
  4578. bool maxLayers;
  4579. uint maxObstacles;
  4580. /* readonly */
  4581. Node node;
  4582. /* readonly */
  4583. uint numAttributes;
  4584. /* readonly */
  4585. IntVector2 numTiles;
  4586. ObjectAnimation objectAnimation;
  4587. Vector3 padding;
  4588. NavmeshPartitionType partitionType;
  4589. /* readonly */
  4590. int refs;
  4591. float regionMergeSize;
  4592. float regionMinSize;
  4593. bool temporary;
  4594. int tileSize;
  4595. /* readonly */
  4596. StringHash type;
  4597. /* readonly */
  4598. String typeName;
  4599. /* readonly */
  4600. int weakRefs;
  4601. /* readonly */
  4602. BoundingBox worldBoundingBox;
  4603. };
  4604. class Engine
  4605. {
  4606. // Methods:
  4607. Console CreateConsole();
  4608. DebugHud CreateDebugHud();
  4609. void DumpMemory();
  4610. void DumpProfiler();
  4611. void DumpResources(bool = false);
  4612. void Exit();
  4613. bool HasSubscribedToEvent(Object, const String&);
  4614. bool HasSubscribedToEvent(const String&);
  4615. void RunFrame();
  4616. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4617. // Properties:
  4618. bool autoExit;
  4619. /* readonly */
  4620. String category;
  4621. /* readonly */
  4622. bool exiting;
  4623. /* readonly */
  4624. bool headless;
  4625. /* readonly */
  4626. bool initialized;
  4627. int maxFps;
  4628. int maxInactiveFps;
  4629. int minFps;
  4630. bool pauseMinimized;
  4631. /* readonly */
  4632. int refs;
  4633. int timeStepSmoothing;
  4634. /* readonly */
  4635. StringHash type;
  4636. /* readonly */
  4637. String typeName;
  4638. /* readonly */
  4639. int weakRefs;
  4640. };
  4641. class File
  4642. {
  4643. // Methods:
  4644. void Close();
  4645. bool HasSubscribedToEvent(Object, const String&);
  4646. bool HasSubscribedToEvent(const String&);
  4647. bool Open(const String&, FileMode = FILE_READ);
  4648. Array<uint8> Read(uint);
  4649. bool ReadBool();
  4650. BoundingBox ReadBoundingBox();
  4651. int8 ReadByte();
  4652. Color ReadColor();
  4653. double ReadDouble();
  4654. String ReadFileID();
  4655. float ReadFloat();
  4656. int ReadInt();
  4657. IntRect ReadIntRect();
  4658. IntVector2 ReadIntVector2();
  4659. String ReadLine();
  4660. Matrix3 ReadMatrix3();
  4661. Matrix3x4 ReadMatrix3x4();
  4662. Matrix4 ReadMatrix4();
  4663. uint ReadNetID();
  4664. Quaternion ReadPackedQuaternion();
  4665. Vector3 ReadPackedVector3(float);
  4666. Quaternion ReadQuaternion();
  4667. int16 ReadShort();
  4668. String ReadString();
  4669. StringHash ReadStringHash();
  4670. uint8 ReadUByte();
  4671. uint ReadUInt();
  4672. uint16 ReadUShort();
  4673. uint ReadVLE();
  4674. Variant ReadVariant();
  4675. VariantMap ReadVariantMap();
  4676. Vector2 ReadVector2();
  4677. Vector3 ReadVector3();
  4678. Vector4 ReadVector4();
  4679. VectorBuffer ReadVectorBuffer(uint);
  4680. uint Seek(uint);
  4681. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4682. uint Write(Array<uint8>);
  4683. bool WriteBool(bool);
  4684. bool WriteBoundingBox(const BoundingBox&);
  4685. bool WriteByte(int8);
  4686. bool WriteColor(const Color&);
  4687. bool WriteDouble(double);
  4688. bool WriteFileID(const String&);
  4689. bool WriteFloat(float);
  4690. bool WriteInt(int);
  4691. bool WriteIntRect(const IntRect&);
  4692. bool WriteIntVector2(const IntVector2&);
  4693. bool WriteLine(const String&);
  4694. bool WriteMatrix3(const Matrix3&);
  4695. bool WriteMatrix3x4(const Matrix3x4&);
  4696. bool WriteMatrix4(const Matrix4&);
  4697. bool WriteNetID(uint);
  4698. bool WritePackedQuaternion(const Quaternion&);
  4699. bool WritePackedVector3(const Vector3&, float);
  4700. bool WriteQuaternion(const Quaternion&);
  4701. bool WriteShort(int16);
  4702. bool WriteString(const String&);
  4703. bool WriteStringHash(const StringHash&);
  4704. bool WriteUByte(uint8);
  4705. bool WriteUInt(uint);
  4706. bool WriteUShort(uint16);
  4707. bool WriteVLE(uint);
  4708. bool WriteVariant(const Variant&);
  4709. bool WriteVariantMap(const VariantMap&);
  4710. bool WriteVector2(const Vector2&);
  4711. bool WriteVector3(const Vector3&);
  4712. bool WriteVector4(const Vector4&);
  4713. bool WriteVectorBuffer(const VectorBuffer&);
  4714. // Properties:
  4715. /* readonly */
  4716. String category;
  4717. /* readonly */
  4718. uint checksum;
  4719. /* readonly */
  4720. bool eof;
  4721. /* readonly */
  4722. FileMode mode;
  4723. /* readonly */
  4724. String name;
  4725. /* readonly */
  4726. bool open;
  4727. /* readonly */
  4728. bool packaged;
  4729. /* readonly */
  4730. uint position;
  4731. /* readonly */
  4732. int refs;
  4733. /* readonly */
  4734. uint size;
  4735. /* readonly */
  4736. StringHash type;
  4737. /* readonly */
  4738. String typeName;
  4739. /* readonly */
  4740. int weakRefs;
  4741. };
  4742. class FileSelector
  4743. {
  4744. // Methods:
  4745. bool HasSubscribedToEvent(Object, const String&);
  4746. bool HasSubscribedToEvent(const String&);
  4747. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4748. void SetButtonTexts(const String&, const String&);
  4749. void SetFilters(Array<String>, uint);
  4750. void UpdateElements();
  4751. // Properties:
  4752. /* readonly */
  4753. Button cancelButton;
  4754. /* readonly */
  4755. String category;
  4756. XMLFile defaultStyle;
  4757. bool directoryMode;
  4758. /* readonly */
  4759. ListView fileList;
  4760. String fileName;
  4761. /* readonly */
  4762. LineEdit fileNameEdit;
  4763. /* readonly */
  4764. String filter;
  4765. /* readonly */
  4766. uint filterIndex;
  4767. /* readonly */
  4768. DropDownList filterList;
  4769. /* readonly */
  4770. Button okButton;
  4771. String path;
  4772. /* readonly */
  4773. LineEdit pathEdit;
  4774. /* readonly */
  4775. int refs;
  4776. String title;
  4777. /* readonly */
  4778. Text titleText;
  4779. /* readonly */
  4780. StringHash type;
  4781. /* readonly */
  4782. String typeName;
  4783. /* readonly */
  4784. int weakRefs;
  4785. /* readonly */
  4786. Window window;
  4787. };
  4788. class FileSystem
  4789. {
  4790. // Methods:
  4791. bool Copy(const String&, const String&);
  4792. bool CreateDir(const String&);
  4793. bool Delete(const String&);
  4794. bool DirExists(const String&) const;
  4795. bool FileExists(const String&) const;
  4796. String GetAppPreferencesDir(const String&, const String&) const;
  4797. uint GetLastModifiedTime(const String&) const;
  4798. bool HasSubscribedToEvent(Object, const String&);
  4799. bool HasSubscribedToEvent(const String&);
  4800. bool Rename(const String&, const String&);
  4801. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4802. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4803. bool SetLastModifiedTime(const String&, uint);
  4804. int SystemCommand(const String&, bool = false);
  4805. uint SystemCommandAsync(const String&);
  4806. bool SystemOpen(const String&, const String&);
  4807. int SystemRun(const String&, Array<String>);
  4808. uint SystemRunAsync(const String&, Array<String>);
  4809. // Properties:
  4810. /* readonly */
  4811. String category;
  4812. String currentDir;
  4813. bool executeConsoleCommands;
  4814. /* readonly */
  4815. String programDir;
  4816. /* readonly */
  4817. int refs;
  4818. /* readonly */
  4819. StringHash type;
  4820. /* readonly */
  4821. String typeName;
  4822. /* readonly */
  4823. String userDocumentsDir;
  4824. /* readonly */
  4825. int weakRefs;
  4826. };
  4827. class FocusParameters
  4828. {
  4829. // Properties:
  4830. bool autoSize;
  4831. bool focus;
  4832. float minView;
  4833. bool nonUniform;
  4834. float quantize;
  4835. };
  4836. class Font
  4837. {
  4838. // Methods:
  4839. IntVector2 GetTotalGlyphOffset(int) const;
  4840. bool HasSubscribedToEvent(Object, const String&);
  4841. bool HasSubscribedToEvent(const String&);
  4842. bool Load(File);
  4843. bool Load(VectorBuffer&);
  4844. bool Save(File) const;
  4845. bool Save(VectorBuffer&) const;
  4846. bool SaveXML(File, int, bool = false, const String& = "\t");
  4847. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4848. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4849. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4850. // Properties:
  4851. IntVector2 absoluteGlyphOffset;
  4852. /* readonly */
  4853. String category;
  4854. /* readonly */
  4855. uint memoryUse;
  4856. String name;
  4857. /* readonly */
  4858. int refs;
  4859. Vector2 scaledGlyphOffset;
  4860. /* readonly */
  4861. StringHash type;
  4862. /* readonly */
  4863. String typeName;
  4864. /* readonly */
  4865. uint useTimer;
  4866. /* readonly */
  4867. int weakRefs;
  4868. };
  4869. class Frustum
  4870. {
  4871. // Methods:
  4872. void Define(const BoundingBox&, const Matrix3x4&);
  4873. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4874. void Define(float, float, float, float, float, const Matrix3x4&);
  4875. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4876. float Distance(const Vector3&) const;
  4877. Intersection IsInside(const BoundingBox&);
  4878. Intersection IsInside(const Sphere&);
  4879. Intersection IsInside(const Vector3&);
  4880. Intersection IsInsideFast(const BoundingBox&) const;
  4881. Intersection IsInsideFast(const Sphere&) const;
  4882. void Transform(const Matrix3&);
  4883. void Transform(const Matrix3x4&);
  4884. Frustum Transformed(const Matrix3&) const;
  4885. Frustum Transformed(const Matrix3x4&) const;
  4886. // Properties:
  4887. /* readonly */
  4888. Array<Vector3> vertices;
  4889. };
  4890. class Geometry
  4891. {
  4892. // Methods:
  4893. bool HasSubscribedToEvent(Object, const String&);
  4894. bool HasSubscribedToEvent(const String&);
  4895. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4896. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4897. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4898. void SetIndexBuffer(IndexBuffer);
  4899. bool SetVertexBuffer(uint, VertexBuffer, uint = MASK_DEFAULT);
  4900. // Properties:
  4901. /* readonly */
  4902. String category;
  4903. /* readonly */
  4904. bool empty;
  4905. IndexBuffer indexBuffer;
  4906. /* readonly */
  4907. uint indexCount;
  4908. /* readonly */
  4909. uint indexStart;
  4910. float lodDistance;
  4911. uint numVertexBuffers;
  4912. /* readonly */
  4913. PrimitiveType primitiveType;
  4914. /* readonly */
  4915. int refs;
  4916. /* readonly */
  4917. StringHash type;
  4918. /* readonly */
  4919. String typeName;
  4920. /* readonly */
  4921. Array<VertexBuffer> vertexBuffers;
  4922. /* readonly */
  4923. uint vertexCount;
  4924. /* readonly */
  4925. Array<uint> vertexElementMasks;
  4926. /* readonly */
  4927. uint vertexStart;
  4928. /* readonly */
  4929. int weakRefs;
  4930. };
  4931. class Graphics
  4932. {
  4933. // Methods:
  4934. void BeginDumpShaders(const String&);
  4935. void Close();
  4936. void EndDumpShaders();
  4937. bool HasSubscribedToEvent(Object, const String&);
  4938. bool HasSubscribedToEvent(const String&);
  4939. void Maximize();
  4940. void Minimize();
  4941. void PrecacheShaders(File);
  4942. void PrecacheShaders(VectorBuffer&);
  4943. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4944. bool SetMode(int, int);
  4945. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4946. void SetWindowPosition(int, int);
  4947. bool TakeScreenShot(Image);
  4948. bool ToggleFullscreen();
  4949. // Properties:
  4950. /* readonly */
  4951. String apiName;
  4952. /* readonly */
  4953. bool borderless;
  4954. /* readonly */
  4955. String category;
  4956. /* readonly */
  4957. bool deferredSupport;
  4958. /* readonly */
  4959. IntVector2 desktopResolution;
  4960. /* readonly */
  4961. bool deviceLost;
  4962. bool flushGPU;
  4963. /* readonly */
  4964. bool fullscreen;
  4965. /* readonly */
  4966. bool hardwareShadowSupport;
  4967. /* readonly */
  4968. int height;
  4969. /* readonly */
  4970. bool initialized;
  4971. /* readonly */
  4972. bool instancingSupport;
  4973. /* readonly */
  4974. bool lightPrepassSupport;
  4975. /* readonly */
  4976. int multiSample;
  4977. /* readonly */
  4978. Array<int> multiSampleLevels;
  4979. /* readonly */
  4980. uint numBatches;
  4981. /* readonly */
  4982. uint numPrimitives;
  4983. String orientations;
  4984. /* readonly */
  4985. bool readableDepthSupport;
  4986. /* readonly */
  4987. int refs;
  4988. /* readonly */
  4989. bool resizable;
  4990. /* readonly */
  4991. Array<IntVector2> resolutions;
  4992. bool sRGB;
  4993. /* readonly */
  4994. bool sRGBSupport;
  4995. /* readonly */
  4996. bool sRGBWriteSupport;
  4997. /* readonly */
  4998. bool tripleBuffer;
  4999. /* readonly */
  5000. StringHash type;
  5001. /* readonly */
  5002. String typeName;
  5003. /* readonly */
  5004. bool vsync;
  5005. /* readonly */
  5006. int weakRefs;
  5007. /* readonly */
  5008. int width;
  5009. /* writeonly */
  5010. Image windowIcon;
  5011. IntVector2 windowPosition;
  5012. String windowTitle;
  5013. };
  5014. class HttpRequest
  5015. {
  5016. // Methods:
  5017. Array<uint8> Read(uint);
  5018. bool ReadBool();
  5019. BoundingBox ReadBoundingBox();
  5020. int8 ReadByte();
  5021. Color ReadColor();
  5022. double ReadDouble();
  5023. String ReadFileID();
  5024. float ReadFloat();
  5025. int ReadInt();
  5026. IntRect ReadIntRect();
  5027. IntVector2 ReadIntVector2();
  5028. String ReadLine();
  5029. Matrix3 ReadMatrix3();
  5030. Matrix3x4 ReadMatrix3x4();
  5031. Matrix4 ReadMatrix4();
  5032. uint ReadNetID();
  5033. Quaternion ReadPackedQuaternion();
  5034. Vector3 ReadPackedVector3(float);
  5035. Quaternion ReadQuaternion();
  5036. int16 ReadShort();
  5037. String ReadString();
  5038. StringHash ReadStringHash();
  5039. uint8 ReadUByte();
  5040. uint ReadUInt();
  5041. uint16 ReadUShort();
  5042. uint ReadVLE();
  5043. Variant ReadVariant();
  5044. VariantMap ReadVariantMap();
  5045. Vector2 ReadVector2();
  5046. Vector3 ReadVector3();
  5047. Vector4 ReadVector4();
  5048. VectorBuffer ReadVectorBuffer(uint);
  5049. uint Seek(uint);
  5050. // Properties:
  5051. /* readonly */
  5052. uint availableSize;
  5053. /* readonly */
  5054. uint checksum;
  5055. /* readonly */
  5056. bool eof;
  5057. /* readonly */
  5058. String error;
  5059. /* readonly */
  5060. String name;
  5061. /* readonly */
  5062. bool open;
  5063. /* readonly */
  5064. uint position;
  5065. /* readonly */
  5066. int refs;
  5067. /* readonly */
  5068. uint size;
  5069. /* readonly */
  5070. HttpRequestState state;
  5071. /* readonly */
  5072. String url;
  5073. /* readonly */
  5074. String verb;
  5075. /* readonly */
  5076. int weakRefs;
  5077. };
  5078. class Image
  5079. {
  5080. // Methods:
  5081. void Clear(const Color&);
  5082. void ClearInt(uint);
  5083. bool FlipHorizontal();
  5084. bool FlipVertical();
  5085. Color GetPixel(int, int) const;
  5086. Color GetPixel(int, int, int) const;
  5087. Color GetPixelBilinear(float, float) const;
  5088. uint GetPixelInt(int, int) const;
  5089. uint GetPixelInt(int, int, int) const;
  5090. Color GetPixelTrilinear(float, float, float) const;
  5091. Image GetSubimage(const IntRect&) const;
  5092. bool HasSubscribedToEvent(Object, const String&);
  5093. bool HasSubscribedToEvent(const String&);
  5094. bool Load(File);
  5095. bool Load(VectorBuffer&);
  5096. bool LoadColorLUT(File);
  5097. bool LoadColorLUT(VectorBuffer&);
  5098. bool Resize(int, int);
  5099. bool Save(File) const;
  5100. bool Save(VectorBuffer&) const;
  5101. bool SaveBMP(const String&) const;
  5102. bool SaveJPG(const String&, int) const;
  5103. bool SavePNG(const String&) const;
  5104. bool SaveTGA(const String&) const;
  5105. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5106. void SetPixel(int, int, const Color&);
  5107. void SetPixel(int, int, int, const Color&);
  5108. void SetPixelInt(int, int, int, uint);
  5109. void SetPixelInt(int, int, uint);
  5110. bool SetSize(int, int, int, uint);
  5111. bool SetSize(int, int, uint);
  5112. // Properties:
  5113. /* readonly */
  5114. bool array;
  5115. /* readonly */
  5116. String category;
  5117. /* readonly */
  5118. uint components;
  5119. /* readonly */
  5120. bool compressed;
  5121. /* readonly */
  5122. CompressedFormat compressedFormat;
  5123. /* readonly */
  5124. bool cubemap;
  5125. /* readonly */
  5126. int depth;
  5127. /* readonly */
  5128. int height;
  5129. /* readonly */
  5130. uint memoryUse;
  5131. String name;
  5132. /* readonly */
  5133. uint numCompressedLevels;
  5134. /* readonly */
  5135. int refs;
  5136. /* readonly */
  5137. bool sRGB;
  5138. /* readonly */
  5139. StringHash type;
  5140. /* readonly */
  5141. String typeName;
  5142. /* readonly */
  5143. uint useTimer;
  5144. /* readonly */
  5145. int weakRefs;
  5146. /* readonly */
  5147. int width;
  5148. };
  5149. class IndexBuffer
  5150. {
  5151. // Methods:
  5152. VectorBuffer GetData();
  5153. bool HasSubscribedToEvent(Object, const String&);
  5154. bool HasSubscribedToEvent(const String&);
  5155. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5156. bool SetData(VectorBuffer&);
  5157. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5158. void SetSize(uint, bool, bool = false);
  5159. // Properties:
  5160. /* readonly */
  5161. String category;
  5162. /* readonly */
  5163. bool dynamic;
  5164. /* readonly */
  5165. uint indexCount;
  5166. /* readonly */
  5167. uint indexSize;
  5168. /* readonly */
  5169. int refs;
  5170. bool shadowed;
  5171. /* readonly */
  5172. StringHash type;
  5173. /* readonly */
  5174. String typeName;
  5175. /* readonly */
  5176. int weakRefs;
  5177. };
  5178. class Input
  5179. {
  5180. // Methods:
  5181. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5182. int GetKeyFromName(const String&) const;
  5183. int GetKeyFromScancode(int) const;
  5184. String GetKeyName(int) const;
  5185. int GetScancodeFromKey(int) const;
  5186. int GetScancodeFromName(const String&) const;
  5187. String GetScancodeName(int) const;
  5188. bool HasSubscribedToEvent(Object, const String&);
  5189. bool HasSubscribedToEvent(const String&);
  5190. uint LoadGestures(File);
  5191. uint LoadGestures(VectorBuffer&);
  5192. bool RecordGesture();
  5193. void RemoveAllGestures();
  5194. bool RemoveGesture(uint);
  5195. bool RemoveScreenJoystick(int);
  5196. void ResetMouseVisible();
  5197. bool SaveGesture(File, uint);
  5198. bool SaveGesture(VectorBuffer&, uint);
  5199. bool SaveGestures(File);
  5200. bool SaveGestures(VectorBuffer&);
  5201. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5202. void SetMouseVisible(bool, bool = false);
  5203. // Properties:
  5204. /* readonly */
  5205. String category;
  5206. /* readonly */
  5207. bool focus;
  5208. /* readonly */
  5209. Array<JoystickState> joysticks;
  5210. /* readonly */
  5211. Array<JoystickState> joysticksByIndex;
  5212. /* readonly */
  5213. Array<bool> keyDown;
  5214. /* readonly */
  5215. Array<bool> keyPress;
  5216. /* readonly */
  5217. bool minimized;
  5218. /* readonly */
  5219. Array<bool> mouseButtonDown;
  5220. /* readonly */
  5221. Array<bool> mouseButtonPress;
  5222. bool mouseGrabbed;
  5223. MouseMode mouseMode;
  5224. /* readonly */
  5225. IntVector2 mouseMove;
  5226. /* readonly */
  5227. int mouseMoveWheel;
  5228. /* readonly */
  5229. int mouseMoveX;
  5230. /* readonly */
  5231. int mouseMoveY;
  5232. /* readonly */
  5233. IntVector2 mousePosition;
  5234. bool mouseVisible;
  5235. /* readonly */
  5236. uint numJoysticks;
  5237. /* readonly */
  5238. uint numTouches;
  5239. /* readonly */
  5240. Array<bool> qualifierDown;
  5241. /* readonly */
  5242. Array<bool> qualifierPress;
  5243. /* readonly */
  5244. int qualifiers;
  5245. /* readonly */
  5246. int refs;
  5247. /* readonly */
  5248. Array<bool> scancodeDown;
  5249. /* readonly */
  5250. Array<bool> scancodePress;
  5251. Array<bool> screenJoystickVisible;
  5252. /* readonly */
  5253. bool screenKeyboardSupport;
  5254. bool screenKeyboardVisible;
  5255. bool toggleFullscreen;
  5256. bool touchEmulation;
  5257. /* readonly */
  5258. Array<TouchState> touches;
  5259. /* readonly */
  5260. StringHash type;
  5261. /* readonly */
  5262. String typeName;
  5263. /* readonly */
  5264. int weakRefs;
  5265. };
  5266. class IntRect
  5267. {
  5268. // Methods:
  5269. Intersection IsInside(const IntVector2&) const;
  5270. // Properties:
  5271. int bottom;
  5272. /* readonly */
  5273. Array<int> data;
  5274. /* readonly */
  5275. int height;
  5276. int left;
  5277. int right;
  5278. /* readonly */
  5279. IntVector2 size;
  5280. int top;
  5281. /* readonly */
  5282. int width;
  5283. };
  5284. class IntVector2
  5285. {
  5286. // Methods:
  5287. String ToString() const;
  5288. // Properties:
  5289. /* readonly */
  5290. Array<int> data;
  5291. int x;
  5292. int y;
  5293. };
  5294. class JSONFile
  5295. {
  5296. // Methods:
  5297. JSONValue& GetRoot();
  5298. bool HasSubscribedToEvent(Object, const String&);
  5299. bool HasSubscribedToEvent(const String&);
  5300. bool Load(File);
  5301. bool Load(VectorBuffer&);
  5302. bool Save(File) const;
  5303. bool Save(File, const String&) const;
  5304. bool Save(VectorBuffer&) const;
  5305. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5306. // Properties:
  5307. /* readonly */
  5308. String category;
  5309. /* readonly */
  5310. uint memoryUse;
  5311. String name;
  5312. /* readonly */
  5313. int refs;
  5314. /* readonly */
  5315. JSONValue root;
  5316. /* readonly */
  5317. StringHash type;
  5318. /* readonly */
  5319. String typeName;
  5320. /* readonly */
  5321. uint useTimer;
  5322. /* readonly */
  5323. int weakRefs;
  5324. };
  5325. class JSONValue
  5326. {
  5327. // Methods:
  5328. void Clear();
  5329. bool Contains(const String&) const;
  5330. void Erase(const String&);
  5331. void Erase(uint, uint = 1);
  5332. bool GetBool() const;
  5333. double GetDouble() const;
  5334. float GetFloat() const;
  5335. int GetInt() const;
  5336. uint GetUInt() const;
  5337. void Insert(uint, const JSONValue&);
  5338. const JSONValue& Get(const String&) const;
  5339. void Pop();
  5340. void Push(const JSONValue&);
  5341. void Resize(uint);
  5342. void Set(const String&, const JSONValue&);
  5343. const String& GetString() const;
  5344. // Properties:
  5345. /* readonly */
  5346. bool isArray;
  5347. /* readonly */
  5348. bool isBool;
  5349. /* readonly */
  5350. bool isNull;
  5351. /* readonly */
  5352. bool isNumber;
  5353. /* readonly */
  5354. bool isObject;
  5355. /* readonly */
  5356. bool isString;
  5357. /* readonly */
  5358. uint size;
  5359. /* readonly */
  5360. JSONValueType valueType;
  5361. };
  5362. class JoystickState
  5363. {
  5364. // Properties:
  5365. /* readonly */
  5366. Array<float> axisPosition;
  5367. /* readonly */
  5368. Array<bool> buttonDown;
  5369. /* readonly */
  5370. Array<bool> buttonPress;
  5371. /* readonly */
  5372. bool controller;
  5373. /* readonly */
  5374. Array<int> hatPosition;
  5375. int joystickID;
  5376. String name;
  5377. /* readonly */
  5378. uint numAxes;
  5379. /* readonly */
  5380. uint numButtons;
  5381. /* readonly */
  5382. uint numHats;
  5383. };
  5384. class Light
  5385. {
  5386. // Methods:
  5387. void ApplyAttributes();
  5388. void DrawDebugGeometry(DebugRenderer, bool);
  5389. Variant GetAttribute(const String&) const;
  5390. ValueAnimation GetAttributeAnimation(const String&) const;
  5391. float GetAttributeAnimationSpeed(const String&) const;
  5392. float GetAttributeAnimationTime(const String&) const;
  5393. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5394. Variant GetAttributeDefault(const String&) const;
  5395. bool GetInterceptNetworkUpdate(const String&) const;
  5396. bool HasSubscribedToEvent(Object, const String&);
  5397. bool HasSubscribedToEvent(const String&);
  5398. bool IsInView(Camera) const;
  5399. bool Load(File, bool = false);
  5400. bool Load(VectorBuffer&, bool = false);
  5401. bool LoadJSON(const JSONValue&, bool = false);
  5402. bool LoadXML(const XMLElement&, bool = false);
  5403. void MarkNetworkUpdate() const;
  5404. void Remove();
  5405. void RemoveAttributeAnimation(const String&);
  5406. void RemoveInstanceDefault();
  5407. void RemoveObjectAnimation();
  5408. void ResetToDefault();
  5409. bool Save(File) const;
  5410. bool Save(VectorBuffer&) const;
  5411. bool SaveJSON(JSONValue&) const;
  5412. bool SaveXML(XMLElement&) const;
  5413. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5414. void SetAnimationTime(float);
  5415. bool SetAttribute(const String&, const Variant&);
  5416. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5417. void SetAttributeAnimationSpeed(const String&, float);
  5418. void SetAttributeAnimationTime(const String&, float);
  5419. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5420. void SetInterceptNetworkUpdate(const String&, bool);
  5421. // Properties:
  5422. bool animationEnabled;
  5423. float aspectRatio;
  5424. /* readonly */
  5425. Array<Variant> attributeDefaults;
  5426. /* readonly */
  5427. Array<AttributeInfo> attributeInfos;
  5428. Array<Variant> attributes;
  5429. /* readonly */
  5430. BoundingBox boundingBox;
  5431. float brightness;
  5432. bool castShadows;
  5433. /* readonly */
  5434. String category;
  5435. Color color;
  5436. float drawDistance;
  5437. /* readonly */
  5438. Color effectiveColor;
  5439. /* readonly */
  5440. float effectiveSpecularIntensity;
  5441. bool enabled;
  5442. /* readonly */
  5443. bool enabledEffective;
  5444. float fadeDistance;
  5445. float fov;
  5446. /* readonly */
  5447. Frustum frustum;
  5448. /* readonly */
  5449. uint id;
  5450. /* readonly */
  5451. bool inView;
  5452. uint lightMask;
  5453. LightType lightType;
  5454. float lodBias;
  5455. uint maxLights;
  5456. /* readonly */
  5457. bool negative;
  5458. /* readonly */
  5459. Node node;
  5460. /* readonly */
  5461. uint numAttributes;
  5462. /* readonly */
  5463. int numShadowSplits;
  5464. ObjectAnimation objectAnimation;
  5465. bool occludee;
  5466. bool occluder;
  5467. bool perVertex;
  5468. Texture rampTexture;
  5469. float range;
  5470. /* readonly */
  5471. int refs;
  5472. BiasParameters shadowBias;
  5473. CascadeParameters shadowCascade;
  5474. float shadowDistance;
  5475. float shadowFadeDistance;
  5476. FocusParameters shadowFocus;
  5477. float shadowIntensity;
  5478. uint shadowMask;
  5479. float shadowNearFarRatio;
  5480. float shadowResolution;
  5481. Texture shapeTexture;
  5482. float specularIntensity;
  5483. bool temporary;
  5484. /* readonly */
  5485. StringHash type;
  5486. /* readonly */
  5487. String typeName;
  5488. uint viewMask;
  5489. /* readonly */
  5490. int weakRefs;
  5491. /* readonly */
  5492. BoundingBox worldBoundingBox;
  5493. uint zoneMask;
  5494. };
  5495. class LineEdit
  5496. {
  5497. // Methods:
  5498. void AddChild(UIElement);
  5499. void AddTag(const String&);
  5500. void AddTags(const String&, int8 = ';');
  5501. void ApplyAttributes();
  5502. void BringToFront();
  5503. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5504. void DisableLayoutUpdate();
  5505. IntVector2 ElementToScreen(const IntVector2&);
  5506. void EnableLayoutUpdate();
  5507. uint FindChild(UIElement) const;
  5508. Variant GetAttribute(const String&) const;
  5509. ValueAnimation GetAttributeAnimation(const String&) const;
  5510. float GetAttributeAnimationSpeed(const String&) const;
  5511. float GetAttributeAnimationTime(const String&) const;
  5512. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5513. Variant GetAttributeDefault(const String&) const;
  5514. UIElement GetChild(const String&, bool = false) const;
  5515. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5516. Array<UIElement> GetChildren(bool = false) const;
  5517. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5518. UIElement GetElementEventSender() const;
  5519. bool GetInterceptNetworkUpdate(const String&) const;
  5520. uint GetNumChildren(bool) const;
  5521. bool HasSubscribedToEvent(Object, const String&);
  5522. bool HasSubscribedToEvent(const String&);
  5523. bool HasTag(const String&) const;
  5524. void InsertChild(uint, UIElement);
  5525. bool IsInside(IntVector2, bool);
  5526. bool IsInsideCombined(IntVector2, bool);
  5527. bool Load(File, bool = false);
  5528. bool Load(VectorBuffer&, bool = false);
  5529. bool LoadChildXML(XMLFile, XMLFile = null);
  5530. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5531. bool LoadJSON(const JSONValue&, bool = false);
  5532. bool LoadXML(File);
  5533. bool LoadXML(VectorBuffer&);
  5534. bool LoadXML(XMLFile, XMLFile);
  5535. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5536. bool LoadXML(const XMLElement&, bool = false);
  5537. void MarkNetworkUpdate() const;
  5538. void Remove();
  5539. void RemoveAllChildren();
  5540. void RemoveAllTags();
  5541. void RemoveAttributeAnimation(const String&);
  5542. void RemoveChild(UIElement, uint = 0);
  5543. void RemoveChild(uint);
  5544. void RemoveInstanceDefault();
  5545. void RemoveObjectAnimation();
  5546. bool RemoveTag(const String&);
  5547. void ResetDeepEnabled();
  5548. void ResetToDefault();
  5549. bool Save(File) const;
  5550. bool Save(VectorBuffer&) const;
  5551. bool SaveJSON(JSONValue&) const;
  5552. bool SaveXML(File, const String& = "\t");
  5553. bool SaveXML(VectorBuffer&, const String& = "\t");
  5554. bool SaveXML(XMLElement&) const;
  5555. IntVector2 ScreenToElement(const IntVector2&);
  5556. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5557. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5558. void SetAnimationTime(float);
  5559. bool SetAttribute(const String&, const Variant&);
  5560. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5561. void SetAttributeAnimationSpeed(const String&, float);
  5562. void SetAttributeAnimationTime(const String&, float);
  5563. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5564. void SetDeepEnabled(bool);
  5565. void SetEnabledRecursive(bool);
  5566. void SetFixedHeight(int);
  5567. void SetFixedSize(int, int);
  5568. void SetFixedWidth(int);
  5569. void SetFullImageRect();
  5570. void SetHoverOffset(int, int);
  5571. void SetInterceptNetworkUpdate(const String&, bool);
  5572. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5573. void SetMaxSize(int, int);
  5574. void SetMinSize(int, int);
  5575. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5576. void SetPosition(int, int);
  5577. void SetSize(int, int);
  5578. bool SetStyle(const String&, XMLFile = null);
  5579. bool SetStyle(const XMLElement&);
  5580. bool SetStyleAuto(XMLFile = null);
  5581. void UpdateLayout();
  5582. const Variant& GetVar(const StringHash&);
  5583. // Properties:
  5584. bool animationEnabled;
  5585. /* readonly */
  5586. Array<Variant> attributeDefaults;
  5587. /* readonly */
  5588. Array<AttributeInfo> attributeInfos;
  5589. Array<Variant> attributes;
  5590. BlendMode blendMode;
  5591. IntRect border;
  5592. bool bringToBack;
  5593. bool bringToFront;
  5594. /* readonly */
  5595. String category;
  5596. /* readonly */
  5597. IntVector2 childOffset;
  5598. /* readonly */
  5599. Array<UIElement> children;
  5600. IntRect clipBorder;
  5601. bool clipChildren;
  5602. /* writeonly */
  5603. Color color;
  5604. /* readonly */
  5605. bool colorGradient;
  5606. Array<Color> colors;
  5607. /* readonly */
  5608. IntRect combinedScreenRect;
  5609. /* readonly */
  5610. BorderImage cursor;
  5611. float cursorBlinkRate;
  5612. bool cursorMovable;
  5613. uint cursorPosition;
  5614. XMLFile defaultStyle;
  5615. /* readonly */
  5616. float derivedOpacity;
  5617. /* readonly */
  5618. uint dragButtonCombo;
  5619. /* readonly */
  5620. int dragButtonCount;
  5621. uint dragDropMode;
  5622. uint echoCharacter;
  5623. bool editable;
  5624. bool elementEventSender;
  5625. bool enabled;
  5626. /* readonly */
  5627. bool enabledSelf;
  5628. /* readonly */
  5629. bool fixedHeight;
  5630. /* readonly */
  5631. bool fixedSize;
  5632. /* readonly */
  5633. bool fixedWidth;
  5634. bool focus;
  5635. FocusMode focusMode;
  5636. int height;
  5637. HorizontalAlignment horizontalAlignment;
  5638. IntVector2 hoverOffset;
  5639. /* readonly */
  5640. bool hovering;
  5641. IntRect imageBorder;
  5642. IntRect imageRect;
  5643. int indent;
  5644. int indentSpacing;
  5645. /* readonly */
  5646. int indentWidth;
  5647. bool internal;
  5648. IntRect layoutBorder;
  5649. Vector2 layoutFlexScale;
  5650. LayoutMode layoutMode;
  5651. int layoutSpacing;
  5652. int maxHeight;
  5653. uint maxLength;
  5654. IntVector2 maxSize;
  5655. int maxWidth;
  5656. int minHeight;
  5657. IntVector2 minSize;
  5658. int minWidth;
  5659. String name;
  5660. /* readonly */
  5661. uint numAllChildren;
  5662. /* readonly */
  5663. uint numAttributes;
  5664. /* readonly */
  5665. uint numChildren;
  5666. ObjectAnimation objectAnimation;
  5667. float opacity;
  5668. UIElement parent;
  5669. IntVector2 position;
  5670. int priority;
  5671. /* readonly */
  5672. int refs;
  5673. /* readonly */
  5674. UIElement root;
  5675. /* readonly */
  5676. IntVector2 screenPosition;
  5677. bool selected;
  5678. IntVector2 size;
  5679. bool sortChildren;
  5680. String style;
  5681. /* readonly */
  5682. Array<String> tags;
  5683. bool temporary;
  5684. String text;
  5685. bool textCopyable;
  5686. /* readonly */
  5687. Text textElement;
  5688. bool textSelectable;
  5689. Texture texture;
  5690. bool tiled;
  5691. TraversalMode traversalMode;
  5692. /* readonly */
  5693. StringHash type;
  5694. /* readonly */
  5695. String typeName;
  5696. bool useDerivedOpacity;
  5697. /* readonly */
  5698. VariantMap vars;
  5699. VerticalAlignment verticalAlignment;
  5700. bool visible;
  5701. /* readonly */
  5702. bool visibleEffective;
  5703. /* readonly */
  5704. int weakRefs;
  5705. int width;
  5706. };
  5707. class ListView
  5708. {
  5709. // Methods:
  5710. void AddChild(UIElement);
  5711. void AddItem(UIElement);
  5712. void AddSelection(uint);
  5713. void AddTag(const String&);
  5714. void AddTags(const String&, int8 = ';');
  5715. void ApplyAttributes();
  5716. void BringToFront();
  5717. void ChangeSelection(int, bool);
  5718. void ClearSelection();
  5719. void CopySelectedItemsToClipboard();
  5720. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5721. void DisableLayoutUpdate();
  5722. IntVector2 ElementToScreen(const IntVector2&);
  5723. void EnableLayoutUpdate();
  5724. void Expand(uint, bool, bool = false);
  5725. uint FindChild(UIElement) const;
  5726. uint FindItem(UIElement);
  5727. Variant GetAttribute(const String&) const;
  5728. ValueAnimation GetAttributeAnimation(const String&) const;
  5729. float GetAttributeAnimationSpeed(const String&) const;
  5730. float GetAttributeAnimationTime(const String&) const;
  5731. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5732. Variant GetAttributeDefault(const String&) const;
  5733. UIElement GetChild(const String&, bool = false) const;
  5734. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5735. Array<UIElement> GetChildren(bool = false) const;
  5736. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5737. UIElement GetElementEventSender() const;
  5738. bool GetInterceptNetworkUpdate(const String&) const;
  5739. Array<UIElement> GetItems() const;
  5740. uint GetNumChildren(bool) const;
  5741. bool HasSubscribedToEvent(Object, const String&);
  5742. bool HasSubscribedToEvent(const String&);
  5743. bool HasTag(const String&) const;
  5744. void InsertChild(uint, UIElement);
  5745. void InsertItem(uint, UIElement, UIElement = null);
  5746. bool IsExpanded(uint) const;
  5747. bool IsInside(IntVector2, bool);
  5748. bool IsInsideCombined(IntVector2, bool);
  5749. bool IsSelected(uint) const;
  5750. bool Load(File, bool = false);
  5751. bool Load(VectorBuffer&, bool = false);
  5752. bool LoadChildXML(XMLFile, XMLFile = null);
  5753. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5754. bool LoadJSON(const JSONValue&, bool = false);
  5755. bool LoadXML(File);
  5756. bool LoadXML(VectorBuffer&);
  5757. bool LoadXML(XMLFile, XMLFile);
  5758. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5759. bool LoadXML(const XMLElement&, bool = false);
  5760. void MarkNetworkUpdate() const;
  5761. void Remove();
  5762. void RemoveAllChildren();
  5763. void RemoveAllItems();
  5764. void RemoveAllTags();
  5765. void RemoveAttributeAnimation(const String&);
  5766. void RemoveChild(UIElement, uint = 0);
  5767. void RemoveChild(uint);
  5768. void RemoveInstanceDefault();
  5769. void RemoveItem(UIElement, uint = 0);
  5770. void RemoveItem(uint);
  5771. void RemoveObjectAnimation();
  5772. void RemoveSelection(uint);
  5773. bool RemoveTag(const String&);
  5774. void ResetDeepEnabled();
  5775. void ResetToDefault();
  5776. bool Save(File) const;
  5777. bool Save(VectorBuffer&) const;
  5778. bool SaveJSON(JSONValue&) const;
  5779. bool SaveXML(File, const String& = "\t");
  5780. bool SaveXML(VectorBuffer&, const String& = "\t");
  5781. bool SaveXML(XMLElement&) const;
  5782. IntVector2 ScreenToElement(const IntVector2&);
  5783. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5784. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5785. void SetAnimationTime(float);
  5786. bool SetAttribute(const String&, const Variant&);
  5787. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5788. void SetAttributeAnimationSpeed(const String&, float);
  5789. void SetAttributeAnimationTime(const String&, float);
  5790. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5791. void SetDeepEnabled(bool);
  5792. void SetEnabledRecursive(bool);
  5793. void SetFixedHeight(int);
  5794. void SetFixedSize(int, int);
  5795. void SetFixedWidth(int);
  5796. void SetInterceptNetworkUpdate(const String&, bool);
  5797. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5798. void SetMaxSize(int, int);
  5799. void SetMinSize(int, int);
  5800. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5801. void SetPosition(int, int);
  5802. void SetScrollBarsVisible(bool, bool);
  5803. void SetSelections(Array<uint>);
  5804. void SetSize(int, int);
  5805. bool SetStyle(const String&, XMLFile = null);
  5806. bool SetStyle(const XMLElement&);
  5807. bool SetStyleAuto(XMLFile = null);
  5808. void SetViewPosition(int, int);
  5809. void ToggleExpand(uint, bool = false);
  5810. void ToggleSelection(uint);
  5811. void UpdateLayout();
  5812. const Variant& GetVar(const StringHash&);
  5813. // Properties:
  5814. bool animationEnabled;
  5815. /* readonly */
  5816. Array<Variant> attributeDefaults;
  5817. /* readonly */
  5818. Array<AttributeInfo> attributeInfos;
  5819. Array<Variant> attributes;
  5820. bool autoDisableChildren;
  5821. float autoDisableThreshold;
  5822. int baseIndent;
  5823. bool bringToBack;
  5824. bool bringToFront;
  5825. /* readonly */
  5826. String category;
  5827. /* readonly */
  5828. IntVector2 childOffset;
  5829. /* readonly */
  5830. Array<UIElement> children;
  5831. bool clearSelectionOnDefocus;
  5832. IntRect clipBorder;
  5833. bool clipChildren;
  5834. /* writeonly */
  5835. Color color;
  5836. /* readonly */
  5837. bool colorGradient;
  5838. Array<Color> colors;
  5839. /* readonly */
  5840. IntRect combinedScreenRect;
  5841. /* readonly */
  5842. UIElement contentElement;
  5843. XMLFile defaultStyle;
  5844. /* readonly */
  5845. float derivedOpacity;
  5846. /* readonly */
  5847. uint dragButtonCombo;
  5848. /* readonly */
  5849. int dragButtonCount;
  5850. uint dragDropMode;
  5851. bool editable;
  5852. bool elementEventSender;
  5853. bool enabled;
  5854. /* readonly */
  5855. bool enabledSelf;
  5856. /* readonly */
  5857. bool fixedHeight;
  5858. /* readonly */
  5859. bool fixedSize;
  5860. /* readonly */
  5861. bool fixedWidth;
  5862. bool focus;
  5863. FocusMode focusMode;
  5864. int height;
  5865. bool hierarchyMode;
  5866. HighlightMode highlightMode;
  5867. HorizontalAlignment horizontalAlignment;
  5868. /* readonly */
  5869. ScrollBar horizontalScrollBar;
  5870. /* readonly */
  5871. bool hovering;
  5872. int indent;
  5873. int indentSpacing;
  5874. /* readonly */
  5875. int indentWidth;
  5876. bool internal;
  5877. /* readonly */
  5878. Array<UIElement> items;
  5879. IntRect layoutBorder;
  5880. Vector2 layoutFlexScale;
  5881. LayoutMode layoutMode;
  5882. int layoutSpacing;
  5883. int maxHeight;
  5884. IntVector2 maxSize;
  5885. int maxWidth;
  5886. int minHeight;
  5887. IntVector2 minSize;
  5888. int minWidth;
  5889. bool multiselect;
  5890. String name;
  5891. /* readonly */
  5892. uint numAllChildren;
  5893. /* readonly */
  5894. uint numAttributes;
  5895. /* readonly */
  5896. uint numChildren;
  5897. /* readonly */
  5898. uint numItems;
  5899. ObjectAnimation objectAnimation;
  5900. float opacity;
  5901. float pageStep;
  5902. UIElement parent;
  5903. IntVector2 position;
  5904. int priority;
  5905. /* readonly */
  5906. int refs;
  5907. /* readonly */
  5908. UIElement root;
  5909. /* readonly */
  5910. IntVector2 screenPosition;
  5911. bool scrollBarsAutoVisible;
  5912. float scrollDeceleration;
  5913. /* readonly */
  5914. BorderImage scrollPanel;
  5915. float scrollSnapEpsilon;
  5916. float scrollStep;
  5917. bool selectOnClickEnd;
  5918. bool selected;
  5919. /* readonly */
  5920. UIElement selectedItem;
  5921. /* readonly */
  5922. Array<UIElement> selectedItems;
  5923. uint selection;
  5924. /* readonly */
  5925. Array<uint> selections;
  5926. IntVector2 size;
  5927. bool sortChildren;
  5928. String style;
  5929. /* readonly */
  5930. Array<String> tags;
  5931. bool temporary;
  5932. TraversalMode traversalMode;
  5933. /* readonly */
  5934. StringHash type;
  5935. /* readonly */
  5936. String typeName;
  5937. bool useDerivedOpacity;
  5938. /* readonly */
  5939. VariantMap vars;
  5940. VerticalAlignment verticalAlignment;
  5941. /* readonly */
  5942. ScrollBar verticalScrollBar;
  5943. IntVector2 viewPosition;
  5944. bool visible;
  5945. /* readonly */
  5946. bool visibleEffective;
  5947. /* readonly */
  5948. int weakRefs;
  5949. int width;
  5950. };
  5951. class Localization
  5952. {
  5953. // Methods:
  5954. String Get(const String&);
  5955. String GetLanguage(int);
  5956. int GetLanguageIndex(const String&);
  5957. bool HasSubscribedToEvent(Object, const String&);
  5958. bool HasSubscribedToEvent(const String&);
  5959. void LoadJSON(const JSONValue&);
  5960. void LoadJSONFile(const String&);
  5961. void Reset();
  5962. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5963. void SetLanguage(const String&);
  5964. void SetLanguage(int);
  5965. // Properties:
  5966. /* readonly */
  5967. String category;
  5968. /* readonly */
  5969. String language;
  5970. /* readonly */
  5971. int languageIndex;
  5972. /* readonly */
  5973. int numLanguages;
  5974. /* readonly */
  5975. int refs;
  5976. /* readonly */
  5977. StringHash type;
  5978. /* readonly */
  5979. String typeName;
  5980. /* readonly */
  5981. int weakRefs;
  5982. };
  5983. class Log
  5984. {
  5985. // Methods:
  5986. void Close();
  5987. void Debug(const String&);
  5988. void Error(const String&);
  5989. bool HasSubscribedToEvent(Object, const String&);
  5990. bool HasSubscribedToEvent(const String&);
  5991. void Info(const String&);
  5992. void Open(const String&);
  5993. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5994. void Warning(const String&);
  5995. void Write(const String&, bool = false);
  5996. // Properties:
  5997. /* readonly */
  5998. String category;
  5999. /* readonly */
  6000. String lastMessage;
  6001. int level;
  6002. bool quiet;
  6003. /* readonly */
  6004. int refs;
  6005. bool timeStamp;
  6006. /* readonly */
  6007. StringHash type;
  6008. /* readonly */
  6009. String typeName;
  6010. /* readonly */
  6011. int weakRefs;
  6012. };
  6013. class Material
  6014. {
  6015. // Methods:
  6016. Material Clone(const String& = String ( )) const;
  6017. Pass GetPass(uint, const String&);
  6018. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6019. float GetShaderParameterAnimationSpeed(const String&) const;
  6020. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6021. bool HasSubscribedToEvent(Object, const String&);
  6022. bool HasSubscribedToEvent(const String&);
  6023. bool Load(File);
  6024. bool Load(VectorBuffer&);
  6025. bool Load(const JSONValue&);
  6026. bool Load(const XMLElement&);
  6027. void RemoveShaderParameter(const String&);
  6028. bool Save(File) const;
  6029. bool Save(JSONValue&) const;
  6030. bool Save(VectorBuffer&) const;
  6031. bool Save(XMLElement&) const;
  6032. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6033. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6034. void SetShaderParameterAnimationSpeed(const String&, float);
  6035. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6036. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6037. void SetUVTransform(const Vector2&, float, const Vector2&);
  6038. void SetUVTransform(const Vector2&, float, float);
  6039. void SortTechniques();
  6040. // Properties:
  6041. /* readonly */
  6042. String category;
  6043. CullMode cullMode;
  6044. BiasParameters depthBias;
  6045. FillMode fillMode;
  6046. /* readonly */
  6047. uint memoryUse;
  6048. String name;
  6049. uint numTechniques;
  6050. /* readonly */
  6051. bool occlusion;
  6052. /* readonly */
  6053. int refs;
  6054. uint8 renderOrder;
  6055. Scene scene;
  6056. /* readonly */
  6057. Array<String> shaderParameterNames;
  6058. Array<Variant> shaderParameters;
  6059. CullMode shadowCullMode;
  6060. /* readonly */
  6061. Array<TechniqueEntry> techniqueEntries;
  6062. /* readonly */
  6063. Array<Technique> techniques;
  6064. Array<Texture> textures;
  6065. /* readonly */
  6066. StringHash type;
  6067. /* readonly */
  6068. String typeName;
  6069. /* readonly */
  6070. uint useTimer;
  6071. /* readonly */
  6072. int weakRefs;
  6073. };
  6074. class Matrix3
  6075. {
  6076. // Methods:
  6077. bool Equals(const Matrix3&) const;
  6078. Matrix3 Inverse() const;
  6079. Vector3 Scale() const;
  6080. Matrix3 Scaled(const Vector3&) const;
  6081. void SetScale(const Vector3&);
  6082. void SetScale(float);
  6083. String ToString() const;
  6084. Matrix3 Transpose() const;
  6085. // Properties:
  6086. float m00;
  6087. float m01;
  6088. float m02;
  6089. float m10;
  6090. float m11;
  6091. float m12;
  6092. float m20;
  6093. float m21;
  6094. float m22;
  6095. };
  6096. class Matrix3x4
  6097. {
  6098. // Methods:
  6099. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6100. bool Equals(const Matrix3x4&) const;
  6101. Matrix3x4 Inverse() const;
  6102. Quaternion Rotation() const;
  6103. Matrix3 RotationMatrix() const;
  6104. Vector3 Scale() const;
  6105. void SetRotation(const Matrix3&);
  6106. void SetScale(const Vector3&);
  6107. void SetScale(float);
  6108. void SetTranslation(const Vector3&);
  6109. Matrix3 ToMatrix3() const;
  6110. Matrix4 ToMatrix4() const;
  6111. String ToString() const;
  6112. Vector3 Translation() const;
  6113. // Properties:
  6114. float m00;
  6115. float m01;
  6116. float m02;
  6117. float m03;
  6118. float m10;
  6119. float m11;
  6120. float m12;
  6121. float m13;
  6122. float m20;
  6123. float m21;
  6124. float m22;
  6125. float m23;
  6126. };
  6127. class Matrix4
  6128. {
  6129. // Methods:
  6130. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6131. bool Equals(const Matrix4&) const;
  6132. Matrix4 Inverse() const;
  6133. Quaternion Rotation() const;
  6134. Matrix3 RotationMatrix() const;
  6135. Vector3 Scale() const;
  6136. void SetRotation(const Matrix3&);
  6137. void SetScale(const Vector3&);
  6138. void SetScale(float);
  6139. void SetTranslation(const Vector3&);
  6140. Matrix3 ToMatrix3() const;
  6141. String ToString() const;
  6142. Vector3 Translation() const;
  6143. Matrix4 Transpose() const;
  6144. // Properties:
  6145. float m00;
  6146. float m01;
  6147. float m02;
  6148. float m03;
  6149. float m10;
  6150. float m11;
  6151. float m12;
  6152. float m13;
  6153. float m20;
  6154. float m21;
  6155. float m22;
  6156. float m23;
  6157. float m30;
  6158. float m31;
  6159. float m32;
  6160. float m33;
  6161. };
  6162. class Menu
  6163. {
  6164. // Methods:
  6165. void AddChild(UIElement);
  6166. void AddTag(const String&);
  6167. void AddTags(const String&, int8 = ';');
  6168. void ApplyAttributes();
  6169. void BringToFront();
  6170. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6171. void DisableLayoutUpdate();
  6172. IntVector2 ElementToScreen(const IntVector2&);
  6173. void EnableLayoutUpdate();
  6174. uint FindChild(UIElement) const;
  6175. Variant GetAttribute(const String&) const;
  6176. ValueAnimation GetAttributeAnimation(const String&) const;
  6177. float GetAttributeAnimationSpeed(const String&) const;
  6178. float GetAttributeAnimationTime(const String&) const;
  6179. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6180. Variant GetAttributeDefault(const String&) const;
  6181. UIElement GetChild(const String&, bool = false) const;
  6182. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6183. Array<UIElement> GetChildren(bool = false) const;
  6184. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6185. UIElement GetElementEventSender() const;
  6186. bool GetInterceptNetworkUpdate(const String&) const;
  6187. uint GetNumChildren(bool) const;
  6188. bool HasSubscribedToEvent(Object, const String&);
  6189. bool HasSubscribedToEvent(const String&);
  6190. bool HasTag(const String&) const;
  6191. void InsertChild(uint, UIElement);
  6192. bool IsInside(IntVector2, bool);
  6193. bool IsInsideCombined(IntVector2, bool);
  6194. bool Load(File, bool = false);
  6195. bool Load(VectorBuffer&, bool = false);
  6196. bool LoadChildXML(XMLFile, XMLFile = null);
  6197. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6198. bool LoadJSON(const JSONValue&, bool = false);
  6199. bool LoadXML(File);
  6200. bool LoadXML(VectorBuffer&);
  6201. bool LoadXML(XMLFile, XMLFile);
  6202. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6203. bool LoadXML(const XMLElement&, bool = false);
  6204. void MarkNetworkUpdate() const;
  6205. void Remove();
  6206. void RemoveAllChildren();
  6207. void RemoveAllTags();
  6208. void RemoveAttributeAnimation(const String&);
  6209. void RemoveChild(UIElement, uint = 0);
  6210. void RemoveChild(uint);
  6211. void RemoveInstanceDefault();
  6212. void RemoveObjectAnimation();
  6213. bool RemoveTag(const String&);
  6214. void ResetDeepEnabled();
  6215. void ResetToDefault();
  6216. bool Save(File) const;
  6217. bool Save(VectorBuffer&) const;
  6218. bool SaveJSON(JSONValue&) const;
  6219. bool SaveXML(File, const String& = "\t");
  6220. bool SaveXML(VectorBuffer&, const String& = "\t");
  6221. bool SaveXML(XMLElement&) const;
  6222. IntVector2 ScreenToElement(const IntVector2&);
  6223. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6224. void SetAccelerator(int, int);
  6225. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6226. void SetAnimationTime(float);
  6227. bool SetAttribute(const String&, const Variant&);
  6228. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6229. void SetAttributeAnimationSpeed(const String&, float);
  6230. void SetAttributeAnimationTime(const String&, float);
  6231. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6232. void SetDeepEnabled(bool);
  6233. void SetEnabledRecursive(bool);
  6234. void SetFixedHeight(int);
  6235. void SetFixedSize(int, int);
  6236. void SetFixedWidth(int);
  6237. void SetFullImageRect();
  6238. void SetHoverOffset(int, int);
  6239. void SetInterceptNetworkUpdate(const String&, bool);
  6240. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6241. void SetMaxSize(int, int);
  6242. void SetMinSize(int, int);
  6243. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6244. void SetPopupOffset(int, int);
  6245. void SetPosition(int, int);
  6246. void SetPressedChildOffset(int, int);
  6247. void SetPressedOffset(int, int);
  6248. void SetRepeat(float, float);
  6249. void SetSize(int, int);
  6250. bool SetStyle(const String&, XMLFile = null);
  6251. bool SetStyle(const XMLElement&);
  6252. bool SetStyleAuto(XMLFile = null);
  6253. void UpdateLayout();
  6254. const Variant& GetVar(const StringHash&);
  6255. // Properties:
  6256. /* readonly */
  6257. int acceleratorKey;
  6258. /* readonly */
  6259. int acceleratorQualifiers;
  6260. bool animationEnabled;
  6261. /* readonly */
  6262. Array<Variant> attributeDefaults;
  6263. /* readonly */
  6264. Array<AttributeInfo> attributeInfos;
  6265. Array<Variant> attributes;
  6266. BlendMode blendMode;
  6267. IntRect border;
  6268. bool bringToBack;
  6269. bool bringToFront;
  6270. /* readonly */
  6271. String category;
  6272. /* readonly */
  6273. IntVector2 childOffset;
  6274. /* readonly */
  6275. Array<UIElement> children;
  6276. IntRect clipBorder;
  6277. bool clipChildren;
  6278. /* writeonly */
  6279. Color color;
  6280. /* readonly */
  6281. bool colorGradient;
  6282. Array<Color> colors;
  6283. /* readonly */
  6284. IntRect combinedScreenRect;
  6285. XMLFile defaultStyle;
  6286. /* readonly */
  6287. float derivedOpacity;
  6288. /* readonly */
  6289. uint dragButtonCombo;
  6290. /* readonly */
  6291. int dragButtonCount;
  6292. uint dragDropMode;
  6293. bool editable;
  6294. bool elementEventSender;
  6295. bool enabled;
  6296. /* readonly */
  6297. bool enabledSelf;
  6298. /* readonly */
  6299. bool fixedHeight;
  6300. /* readonly */
  6301. bool fixedSize;
  6302. /* readonly */
  6303. bool fixedWidth;
  6304. bool focus;
  6305. FocusMode focusMode;
  6306. int height;
  6307. HorizontalAlignment horizontalAlignment;
  6308. IntVector2 hoverOffset;
  6309. /* readonly */
  6310. bool hovering;
  6311. IntRect imageBorder;
  6312. IntRect imageRect;
  6313. int indent;
  6314. int indentSpacing;
  6315. /* readonly */
  6316. int indentWidth;
  6317. bool internal;
  6318. IntRect layoutBorder;
  6319. Vector2 layoutFlexScale;
  6320. LayoutMode layoutMode;
  6321. int layoutSpacing;
  6322. int maxHeight;
  6323. IntVector2 maxSize;
  6324. int maxWidth;
  6325. int minHeight;
  6326. IntVector2 minSize;
  6327. int minWidth;
  6328. String name;
  6329. /* readonly */
  6330. uint numAllChildren;
  6331. /* readonly */
  6332. uint numAttributes;
  6333. /* readonly */
  6334. uint numChildren;
  6335. ObjectAnimation objectAnimation;
  6336. float opacity;
  6337. UIElement parent;
  6338. UIElement popup;
  6339. IntVector2 popupOffset;
  6340. IntVector2 position;
  6341. /* readonly */
  6342. bool pressed;
  6343. IntVector2 pressedChildOffset;
  6344. IntVector2 pressedOffset;
  6345. int priority;
  6346. /* readonly */
  6347. int refs;
  6348. float repeatDelay;
  6349. float repeatRate;
  6350. /* readonly */
  6351. UIElement root;
  6352. /* readonly */
  6353. IntVector2 screenPosition;
  6354. bool selected;
  6355. bool showPopup;
  6356. IntVector2 size;
  6357. bool sortChildren;
  6358. String style;
  6359. /* readonly */
  6360. Array<String> tags;
  6361. bool temporary;
  6362. Texture texture;
  6363. bool tiled;
  6364. TraversalMode traversalMode;
  6365. /* readonly */
  6366. StringHash type;
  6367. /* readonly */
  6368. String typeName;
  6369. bool useDerivedOpacity;
  6370. /* readonly */
  6371. VariantMap vars;
  6372. VerticalAlignment verticalAlignment;
  6373. bool visible;
  6374. /* readonly */
  6375. bool visibleEffective;
  6376. /* readonly */
  6377. int weakRefs;
  6378. int width;
  6379. };
  6380. class MessageBox
  6381. {
  6382. // Methods:
  6383. bool HasSubscribedToEvent(Object, const String&);
  6384. bool HasSubscribedToEvent(const String&);
  6385. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6386. // Properties:
  6387. /* readonly */
  6388. String category;
  6389. String message;
  6390. /* readonly */
  6391. int refs;
  6392. String title;
  6393. /* readonly */
  6394. StringHash type;
  6395. /* readonly */
  6396. String typeName;
  6397. /* readonly */
  6398. int weakRefs;
  6399. /* readonly */
  6400. UIElement window;
  6401. };
  6402. class Model
  6403. {
  6404. // Methods:
  6405. Model Clone(const String& = String ( )) const;
  6406. Geometry GetGeometry(uint, uint) const;
  6407. bool HasSubscribedToEvent(Object, const String&);
  6408. bool HasSubscribedToEvent(const String&);
  6409. bool Load(File);
  6410. bool Load(VectorBuffer&);
  6411. bool Save(File) const;
  6412. bool Save(VectorBuffer&) const;
  6413. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6414. bool SetGeometry(uint, uint, Geometry);
  6415. // Properties:
  6416. BoundingBox boundingBox;
  6417. /* readonly */
  6418. String category;
  6419. Array<Vector3> geometryCenters;
  6420. /* readonly */
  6421. uint memoryUse;
  6422. String name;
  6423. uint numGeometries;
  6424. Array<uint> numGeometryLodLevels;
  6425. /* readonly */
  6426. uint numMorphs;
  6427. /* readonly */
  6428. int refs;
  6429. /* readonly */
  6430. Skeleton skeleton;
  6431. /* readonly */
  6432. StringHash type;
  6433. /* readonly */
  6434. String typeName;
  6435. /* readonly */
  6436. uint useTimer;
  6437. /* readonly */
  6438. int weakRefs;
  6439. };
  6440. class NavArea
  6441. {
  6442. // Methods:
  6443. void ApplyAttributes();
  6444. void DrawDebugGeometry(DebugRenderer, bool);
  6445. Variant GetAttribute(const String&) const;
  6446. ValueAnimation GetAttributeAnimation(const String&) const;
  6447. float GetAttributeAnimationSpeed(const String&) const;
  6448. float GetAttributeAnimationTime(const String&) const;
  6449. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6450. Variant GetAttributeDefault(const String&) const;
  6451. bool GetInterceptNetworkUpdate(const String&) const;
  6452. bool HasSubscribedToEvent(Object, const String&);
  6453. bool HasSubscribedToEvent(const String&);
  6454. bool Load(File, bool = false);
  6455. bool Load(VectorBuffer&, bool = false);
  6456. bool LoadJSON(const JSONValue&, bool = false);
  6457. bool LoadXML(const XMLElement&, bool = false);
  6458. void MarkNetworkUpdate() const;
  6459. void Remove();
  6460. void RemoveAttributeAnimation(const String&);
  6461. void RemoveInstanceDefault();
  6462. void RemoveObjectAnimation();
  6463. void ResetToDefault();
  6464. bool Save(File) const;
  6465. bool Save(VectorBuffer&) const;
  6466. bool SaveJSON(JSONValue&) const;
  6467. bool SaveXML(XMLElement&) const;
  6468. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6469. void SetAnimationTime(float);
  6470. bool SetAttribute(const String&, const Variant&);
  6471. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6472. void SetAttributeAnimationSpeed(const String&, float);
  6473. void SetAttributeAnimationTime(const String&, float);
  6474. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6475. void SetInterceptNetworkUpdate(const String&, bool);
  6476. // Properties:
  6477. bool animationEnabled;
  6478. uint areaID;
  6479. /* readonly */
  6480. Array<Variant> attributeDefaults;
  6481. /* readonly */
  6482. Array<AttributeInfo> attributeInfos;
  6483. Array<Variant> attributes;
  6484. BoundingBox boundingBox;
  6485. /* readonly */
  6486. String category;
  6487. bool enabled;
  6488. /* readonly */
  6489. bool enabledEffective;
  6490. /* readonly */
  6491. uint id;
  6492. /* readonly */
  6493. Node node;
  6494. /* readonly */
  6495. uint numAttributes;
  6496. ObjectAnimation objectAnimation;
  6497. /* readonly */
  6498. int refs;
  6499. bool temporary;
  6500. /* readonly */
  6501. StringHash type;
  6502. /* readonly */
  6503. String typeName;
  6504. /* readonly */
  6505. int weakRefs;
  6506. /* readonly */
  6507. BoundingBox worldBoundingBox;
  6508. };
  6509. class Navigable
  6510. {
  6511. // Methods:
  6512. void ApplyAttributes();
  6513. void DrawDebugGeometry(DebugRenderer, bool);
  6514. Variant GetAttribute(const String&) const;
  6515. ValueAnimation GetAttributeAnimation(const String&) const;
  6516. float GetAttributeAnimationSpeed(const String&) const;
  6517. float GetAttributeAnimationTime(const String&) const;
  6518. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6519. Variant GetAttributeDefault(const String&) const;
  6520. bool GetInterceptNetworkUpdate(const String&) const;
  6521. bool HasSubscribedToEvent(Object, const String&);
  6522. bool HasSubscribedToEvent(const String&);
  6523. bool Load(File, bool = false);
  6524. bool Load(VectorBuffer&, bool = false);
  6525. bool LoadJSON(const JSONValue&, bool = false);
  6526. bool LoadXML(const XMLElement&, bool = false);
  6527. void MarkNetworkUpdate() const;
  6528. void Remove();
  6529. void RemoveAttributeAnimation(const String&);
  6530. void RemoveInstanceDefault();
  6531. void RemoveObjectAnimation();
  6532. void ResetToDefault();
  6533. bool Save(File) const;
  6534. bool Save(VectorBuffer&) const;
  6535. bool SaveJSON(JSONValue&) const;
  6536. bool SaveXML(XMLElement&) const;
  6537. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6538. void SetAnimationTime(float);
  6539. bool SetAttribute(const String&, const Variant&);
  6540. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6541. void SetAttributeAnimationSpeed(const String&, float);
  6542. void SetAttributeAnimationTime(const String&, float);
  6543. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6544. void SetInterceptNetworkUpdate(const String&, bool);
  6545. // Properties:
  6546. bool animationEnabled;
  6547. /* readonly */
  6548. Array<Variant> attributeDefaults;
  6549. /* readonly */
  6550. Array<AttributeInfo> attributeInfos;
  6551. Array<Variant> attributes;
  6552. /* readonly */
  6553. String category;
  6554. bool enabled;
  6555. /* readonly */
  6556. bool enabledEffective;
  6557. /* readonly */
  6558. uint id;
  6559. /* readonly */
  6560. Node node;
  6561. /* readonly */
  6562. uint numAttributes;
  6563. ObjectAnimation objectAnimation;
  6564. bool recursive;
  6565. /* readonly */
  6566. int refs;
  6567. bool temporary;
  6568. /* readonly */
  6569. StringHash type;
  6570. /* readonly */
  6571. String typeName;
  6572. /* readonly */
  6573. int weakRefs;
  6574. };
  6575. class NavigationMesh
  6576. {
  6577. // Methods:
  6578. void ApplyAttributes();
  6579. bool Build();
  6580. bool Build(const BoundingBox&);
  6581. void DrawDebugGeometry(DebugRenderer, bool);
  6582. void DrawDebugGeometry(bool);
  6583. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6584. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6585. float GetAreaCost(uint) const;
  6586. Variant GetAttribute(const String&) const;
  6587. ValueAnimation GetAttributeAnimation(const String&) const;
  6588. float GetAttributeAnimationSpeed(const String&) const;
  6589. float GetAttributeAnimationTime(const String&) const;
  6590. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6591. Variant GetAttributeDefault(const String&) const;
  6592. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6593. bool GetInterceptNetworkUpdate(const String&) const;
  6594. Vector3 GetRandomPoint();
  6595. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6596. bool HasSubscribedToEvent(Object, const String&);
  6597. bool HasSubscribedToEvent(const String&);
  6598. bool Load(File, bool = false);
  6599. bool Load(VectorBuffer&, bool = false);
  6600. bool LoadJSON(const JSONValue&, bool = false);
  6601. bool LoadXML(const XMLElement&, bool = false);
  6602. void MarkNetworkUpdate() const;
  6603. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6604. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6605. void Remove();
  6606. void RemoveAttributeAnimation(const String&);
  6607. void RemoveInstanceDefault();
  6608. void RemoveObjectAnimation();
  6609. void ResetToDefault();
  6610. bool Save(File) const;
  6611. bool Save(VectorBuffer&) const;
  6612. bool SaveJSON(JSONValue&) const;
  6613. bool SaveXML(XMLElement&) const;
  6614. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6615. void SetAnimationTime(float);
  6616. void SetAreaCost(uint, float);
  6617. bool SetAttribute(const String&, const Variant&);
  6618. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6619. void SetAttributeAnimationSpeed(const String&, float);
  6620. void SetAttributeAnimationTime(const String&, float);
  6621. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6622. void SetInterceptNetworkUpdate(const String&, bool);
  6623. // Properties:
  6624. float agentHeight;
  6625. float agentMaxClimb;
  6626. float agentMaxSlope;
  6627. float agentRadius;
  6628. bool animationEnabled;
  6629. /* readonly */
  6630. Array<Variant> attributeDefaults;
  6631. /* readonly */
  6632. Array<AttributeInfo> attributeInfos;
  6633. Array<Variant> attributes;
  6634. /* readonly */
  6635. BoundingBox boundingBox;
  6636. /* readonly */
  6637. String category;
  6638. float cellHeight;
  6639. float cellSize;
  6640. float detailSampleDistance;
  6641. float detailSampleMaxError;
  6642. bool drawNavAreas;
  6643. bool drawOffMeshConnections;
  6644. float edgeMaxError;
  6645. float edgeMaxLength;
  6646. bool enabled;
  6647. /* readonly */
  6648. bool enabledEffective;
  6649. /* readonly */
  6650. uint id;
  6651. /* readonly */
  6652. bool initialized;
  6653. /* readonly */
  6654. Node node;
  6655. /* readonly */
  6656. uint numAttributes;
  6657. /* readonly */
  6658. IntVector2 numTiles;
  6659. ObjectAnimation objectAnimation;
  6660. Vector3 padding;
  6661. NavmeshPartitionType partitionType;
  6662. /* readonly */
  6663. int refs;
  6664. float regionMergeSize;
  6665. float regionMinSize;
  6666. bool temporary;
  6667. int tileSize;
  6668. /* readonly */
  6669. StringHash type;
  6670. /* readonly */
  6671. String typeName;
  6672. /* readonly */
  6673. int weakRefs;
  6674. /* readonly */
  6675. BoundingBox worldBoundingBox;
  6676. };
  6677. class Network
  6678. {
  6679. // Methods:
  6680. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6681. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6682. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6683. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6684. bool CheckRemoteEvent(const String&) const;
  6685. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6686. void Disconnect(int = 0);
  6687. bool HasSubscribedToEvent(Object, const String&);
  6688. bool HasSubscribedToEvent(const String&);
  6689. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6690. void RegisterRemoteEvent(const String&) const;
  6691. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6692. void SendPackageToClients(Scene, PackageFile);
  6693. bool StartServer(uint16);
  6694. void StopServer();
  6695. void UnregisterAllRemoteEvents();
  6696. void UnregisterRemoteEvent(const String&) const;
  6697. // Properties:
  6698. /* readonly */
  6699. String category;
  6700. /* readonly */
  6701. Array<Connection> clientConnections;
  6702. String packageCacheDir;
  6703. /* readonly */
  6704. int refs;
  6705. /* readonly */
  6706. Connection serverConnection;
  6707. /* readonly */
  6708. bool serverRunning;
  6709. int simulatedLatency;
  6710. float simulatedPacketLoss;
  6711. /* readonly */
  6712. StringHash type;
  6713. /* readonly */
  6714. String typeName;
  6715. int updateFps;
  6716. /* readonly */
  6717. int weakRefs;
  6718. };
  6719. class NetworkPriority
  6720. {
  6721. // Methods:
  6722. void ApplyAttributes();
  6723. void DrawDebugGeometry(DebugRenderer, bool);
  6724. Variant GetAttribute(const String&) const;
  6725. ValueAnimation GetAttributeAnimation(const String&) const;
  6726. float GetAttributeAnimationSpeed(const String&) const;
  6727. float GetAttributeAnimationTime(const String&) const;
  6728. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6729. Variant GetAttributeDefault(const String&) const;
  6730. bool GetInterceptNetworkUpdate(const String&) const;
  6731. bool HasSubscribedToEvent(Object, const String&);
  6732. bool HasSubscribedToEvent(const String&);
  6733. bool Load(File, bool = false);
  6734. bool Load(VectorBuffer&, bool = false);
  6735. bool LoadJSON(const JSONValue&, bool = false);
  6736. bool LoadXML(const XMLElement&, bool = false);
  6737. void MarkNetworkUpdate() const;
  6738. void Remove();
  6739. void RemoveAttributeAnimation(const String&);
  6740. void RemoveInstanceDefault();
  6741. void RemoveObjectAnimation();
  6742. void ResetToDefault();
  6743. bool Save(File) const;
  6744. bool Save(VectorBuffer&) const;
  6745. bool SaveJSON(JSONValue&) const;
  6746. bool SaveXML(XMLElement&) const;
  6747. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6748. void SetAnimationTime(float);
  6749. bool SetAttribute(const String&, const Variant&);
  6750. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6751. void SetAttributeAnimationSpeed(const String&, float);
  6752. void SetAttributeAnimationTime(const String&, float);
  6753. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6754. void SetInterceptNetworkUpdate(const String&, bool);
  6755. // Properties:
  6756. bool alwaysUpdateOwner;
  6757. bool animationEnabled;
  6758. /* readonly */
  6759. Array<Variant> attributeDefaults;
  6760. /* readonly */
  6761. Array<AttributeInfo> attributeInfos;
  6762. Array<Variant> attributes;
  6763. float basePriority;
  6764. /* readonly */
  6765. String category;
  6766. float distanceFactor;
  6767. bool enabled;
  6768. /* readonly */
  6769. bool enabledEffective;
  6770. /* readonly */
  6771. uint id;
  6772. float minPriority;
  6773. /* readonly */
  6774. Node node;
  6775. /* readonly */
  6776. uint numAttributes;
  6777. ObjectAnimation objectAnimation;
  6778. /* readonly */
  6779. int refs;
  6780. bool temporary;
  6781. /* readonly */
  6782. StringHash type;
  6783. /* readonly */
  6784. String typeName;
  6785. /* readonly */
  6786. int weakRefs;
  6787. };
  6788. class Node
  6789. {
  6790. // Methods:
  6791. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6792. void AddTag(const String&);
  6793. void AddTags(const String&, int8 = ';');
  6794. void ApplyAttributes();
  6795. Node Clone(CreateMode = REPLICATED);
  6796. Component CloneComponent(Component, CreateMode, uint = 0);
  6797. Component CloneComponent(Component, uint = 0);
  6798. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6799. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6800. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6801. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6802. Variant GetAttribute(const String&) const;
  6803. ValueAnimation GetAttributeAnimation(const String&) const;
  6804. float GetAttributeAnimationSpeed(const String&) const;
  6805. float GetAttributeAnimationTime(const String&) const;
  6806. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6807. Variant GetAttributeDefault(const String&) const;
  6808. Node GetChild(const String&, bool = false) const;
  6809. Array<Node> GetChildren(bool = false) const;
  6810. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6811. Array<Node> GetChildrenWithScript(bool = false) const;
  6812. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6813. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  6814. Component GetComponent(const String&, bool = false) const;
  6815. Array<Component> GetComponents() const;
  6816. Array<Component> GetComponents(const String&, bool = false) const;
  6817. bool GetInterceptNetworkUpdate(const String&) const;
  6818. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6819. Component GetParentComponent(const String&, bool = false) const;
  6820. ScriptObject GetScriptObject() const;
  6821. ScriptObject GetScriptObject(const String&) const;
  6822. bool HasComponent(const String&) const;
  6823. bool HasSubscribedToEvent(Object, const String&);
  6824. bool HasSubscribedToEvent(const String&);
  6825. bool HasTag(const String&);
  6826. bool Load(File, bool = false);
  6827. bool Load(VectorBuffer&, bool = false);
  6828. bool LoadJSON(const JSONValue&, bool = false);
  6829. bool LoadXML(const XMLElement&, bool = false);
  6830. Vector3 LocalToWorld(const Vector3&) const;
  6831. Vector3 LocalToWorld(const Vector4&) const;
  6832. Vector2 LocalToWorld2D(const Vector2&) const;
  6833. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6834. void MarkDirty();
  6835. void MarkNetworkUpdate() const;
  6836. void Pitch(float, TransformSpace = TS_LOCAL);
  6837. void Remove();
  6838. void RemoveAllChildren();
  6839. void RemoveAllComponents();
  6840. void RemoveAllTags();
  6841. void RemoveAttributeAnimation(const String&);
  6842. void RemoveChild(Node);
  6843. void RemoveChildren(bool, bool, bool);
  6844. void RemoveComponent(Component);
  6845. void RemoveComponent(const String&);
  6846. void RemoveComponents(bool, bool);
  6847. void RemoveComponents(const String&);
  6848. void RemoveInstanceDefault();
  6849. void RemoveObjectAnimation();
  6850. bool RemoveTag(const String&);
  6851. void ResetDeepEnabled();
  6852. void ResetToDefault();
  6853. void Roll(float, TransformSpace = TS_LOCAL);
  6854. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6855. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6856. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6857. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6858. bool Save(File) const;
  6859. bool Save(VectorBuffer&) const;
  6860. bool SaveJSON(File);
  6861. bool SaveJSON(JSONValue&) const;
  6862. bool SaveJSON(VectorBuffer&);
  6863. bool SaveXML(File, const String& = "\t");
  6864. bool SaveXML(VectorBuffer&, const String& = "\t");
  6865. bool SaveXML(XMLElement&) const;
  6866. void Scale(const Vector3&);
  6867. void Scale(float);
  6868. void Scale2D(const Vector2&);
  6869. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6870. void SetAnimationTime(float);
  6871. bool SetAttribute(const String&, const Variant&);
  6872. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6873. void SetAttributeAnimationSpeed(const String&, float);
  6874. void SetAttributeAnimationTime(const String&, float);
  6875. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6876. void SetDeepEnabled(bool);
  6877. void SetEnabledRecursive(bool);
  6878. void SetInterceptNetworkUpdate(const String&, bool);
  6879. void SetPosition2D(float, float);
  6880. void SetScale(float);
  6881. void SetScale2D(float, float);
  6882. void SetTransform(const Vector3&, const Quaternion&);
  6883. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6884. void SetTransform(const Vector3&, const Quaternion&, float);
  6885. void SetTransform2D(const Vector2&, float);
  6886. void SetTransform2D(const Vector2&, float, const Vector2&);
  6887. void SetTransform2D(const Vector2&, float, float);
  6888. void SetWorldTransform(const Vector3&, const Quaternion&);
  6889. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6890. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6891. void SetWorldTransform2D(const Vector2&, float);
  6892. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6893. void SetWorldTransform2D(const Vector2&, float, float);
  6894. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6895. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6896. Vector3 WorldToLocal(const Vector3&) const;
  6897. Vector3 WorldToLocal(const Vector4&) const;
  6898. Vector2 WorldToLocal2D(const Vector2&) const;
  6899. void Yaw(float, TransformSpace = TS_LOCAL);
  6900. // Properties:
  6901. bool animationEnabled;
  6902. /* readonly */
  6903. Array<Variant> attributeDefaults;
  6904. /* readonly */
  6905. Array<AttributeInfo> attributeInfos;
  6906. Array<Variant> attributes;
  6907. /* readonly */
  6908. String category;
  6909. /* readonly */
  6910. Array<Node> children;
  6911. /* readonly */
  6912. Array<Component> components;
  6913. Vector3 direction;
  6914. bool enabled;
  6915. /* readonly */
  6916. bool enabledSelf;
  6917. /* readonly */
  6918. uint id;
  6919. String name;
  6920. /* readonly */
  6921. uint numAllChildren;
  6922. /* readonly */
  6923. uint numAttributes;
  6924. /* readonly */
  6925. uint numChildren;
  6926. /* readonly */
  6927. uint numComponents;
  6928. ObjectAnimation objectAnimation;
  6929. Connection owner;
  6930. Node parent;
  6931. Vector3 position;
  6932. Vector2 position2D;
  6933. /* readonly */
  6934. int refs;
  6935. /* readonly */
  6936. Vector3 right;
  6937. Quaternion rotation;
  6938. float rotation2D;
  6939. Vector3 scale;
  6940. Vector2 scale2D;
  6941. /* readonly */
  6942. Scene scene;
  6943. /* readonly */
  6944. ScriptObject scriptObject;
  6945. /* readonly */
  6946. Array<String> tags;
  6947. bool temporary;
  6948. /* readonly */
  6949. Matrix3x4 transform;
  6950. /* readonly */
  6951. StringHash type;
  6952. /* readonly */
  6953. String typeName;
  6954. /* readonly */
  6955. Vector3 up;
  6956. /* readonly */
  6957. VariantMap vars;
  6958. /* readonly */
  6959. int weakRefs;
  6960. Vector3 worldDirection;
  6961. Vector3 worldPosition;
  6962. Vector2 worldPosition2D;
  6963. /* readonly */
  6964. Vector3 worldRight;
  6965. Quaternion worldRotation;
  6966. float worldRotation2D;
  6967. Vector3 worldScale;
  6968. Vector2 worldScale2D;
  6969. /* readonly */
  6970. Matrix3x4 worldTransform;
  6971. /* readonly */
  6972. Vector3 worldUp;
  6973. };
  6974. class Object
  6975. {
  6976. // Methods:
  6977. bool HasSubscribedToEvent(Object, const String&);
  6978. bool HasSubscribedToEvent(const String&);
  6979. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6980. // Properties:
  6981. /* readonly */
  6982. String category;
  6983. /* readonly */
  6984. int refs;
  6985. /* readonly */
  6986. StringHash type;
  6987. /* readonly */
  6988. String typeName;
  6989. /* readonly */
  6990. int weakRefs;
  6991. };
  6992. class ObjectAnimation
  6993. {
  6994. // Methods:
  6995. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6996. ValueAnimation GetAttributeAnimation(const String&) const;
  6997. float GetAttributeAnimationSpeed(const String&) const;
  6998. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6999. bool HasSubscribedToEvent(Object, const String&);
  7000. bool HasSubscribedToEvent(const String&);
  7001. bool Load(File);
  7002. bool Load(VectorBuffer&);
  7003. void RemoveAttributeAnimation(ValueAnimation);
  7004. void RemoveAttributeAnimation(const String&);
  7005. bool Save(File) const;
  7006. bool Save(VectorBuffer&) const;
  7007. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7008. // Properties:
  7009. /* readonly */
  7010. Array<Variant> attributeAnimations;
  7011. /* readonly */
  7012. String category;
  7013. /* readonly */
  7014. uint memoryUse;
  7015. String name;
  7016. /* readonly */
  7017. int refs;
  7018. /* readonly */
  7019. Array<Variant> speeds;
  7020. /* readonly */
  7021. StringHash type;
  7022. /* readonly */
  7023. String typeName;
  7024. /* readonly */
  7025. uint useTimer;
  7026. /* readonly */
  7027. int weakRefs;
  7028. /* readonly */
  7029. Array<Variant> wrapModes;
  7030. };
  7031. class Obstacle
  7032. {
  7033. // Methods:
  7034. void ApplyAttributes();
  7035. void DrawDebugGeometry(DebugRenderer, bool);
  7036. void DrawDebugGeometry(bool);
  7037. Variant GetAttribute(const String&) const;
  7038. ValueAnimation GetAttributeAnimation(const String&) const;
  7039. float GetAttributeAnimationSpeed(const String&) const;
  7040. float GetAttributeAnimationTime(const String&) const;
  7041. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7042. Variant GetAttributeDefault(const String&) const;
  7043. bool GetInterceptNetworkUpdate(const String&) const;
  7044. bool HasSubscribedToEvent(Object, const String&);
  7045. bool HasSubscribedToEvent(const String&);
  7046. bool Load(File, bool = false);
  7047. bool Load(VectorBuffer&, bool = false);
  7048. bool LoadJSON(const JSONValue&, bool = false);
  7049. bool LoadXML(const XMLElement&, bool = false);
  7050. void MarkNetworkUpdate() const;
  7051. void Remove();
  7052. void RemoveAttributeAnimation(const String&);
  7053. void RemoveInstanceDefault();
  7054. void RemoveObjectAnimation();
  7055. void ResetToDefault();
  7056. bool Save(File) const;
  7057. bool Save(VectorBuffer&) const;
  7058. bool SaveJSON(JSONValue&) const;
  7059. bool SaveXML(XMLElement&) const;
  7060. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7061. void SetAnimationTime(float);
  7062. bool SetAttribute(const String&, const Variant&);
  7063. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7064. void SetAttributeAnimationSpeed(const String&, float);
  7065. void SetAttributeAnimationTime(const String&, float);
  7066. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7067. void SetInterceptNetworkUpdate(const String&, bool);
  7068. // Properties:
  7069. bool animationEnabled;
  7070. /* readonly */
  7071. Array<Variant> attributeDefaults;
  7072. /* readonly */
  7073. Array<AttributeInfo> attributeInfos;
  7074. Array<Variant> attributes;
  7075. /* readonly */
  7076. String category;
  7077. bool enabled;
  7078. /* readonly */
  7079. bool enabledEffective;
  7080. float height;
  7081. /* readonly */
  7082. uint id;
  7083. /* readonly */
  7084. Node node;
  7085. /* readonly */
  7086. uint numAttributes;
  7087. ObjectAnimation objectAnimation;
  7088. /* readonly */
  7089. uint obstacleId;
  7090. float radius;
  7091. /* readonly */
  7092. int refs;
  7093. bool temporary;
  7094. /* readonly */
  7095. StringHash type;
  7096. /* readonly */
  7097. String typeName;
  7098. /* readonly */
  7099. int weakRefs;
  7100. };
  7101. class Octree
  7102. {
  7103. // Methods:
  7104. void AddManualDrawable(Drawable);
  7105. void ApplyAttributes();
  7106. void DrawDebugGeometry(DebugRenderer, bool);
  7107. void DrawDebugGeometry(bool) const;
  7108. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7109. Variant GetAttribute(const String&) const;
  7110. ValueAnimation GetAttributeAnimation(const String&) const;
  7111. float GetAttributeAnimationSpeed(const String&) const;
  7112. float GetAttributeAnimationTime(const String&) const;
  7113. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7114. Variant GetAttributeDefault(const String&) const;
  7115. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7116. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7117. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7118. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7119. bool GetInterceptNetworkUpdate(const String&) const;
  7120. bool HasSubscribedToEvent(Object, const String&);
  7121. bool HasSubscribedToEvent(const String&);
  7122. bool Load(File, bool = false);
  7123. bool Load(VectorBuffer&, bool = false);
  7124. bool LoadJSON(const JSONValue&, bool = false);
  7125. bool LoadXML(const XMLElement&, bool = false);
  7126. void MarkNetworkUpdate() const;
  7127. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7128. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7129. void Remove();
  7130. void RemoveAttributeAnimation(const String&);
  7131. void RemoveInstanceDefault();
  7132. void RemoveManualDrawable(Drawable);
  7133. void RemoveObjectAnimation();
  7134. void ResetToDefault();
  7135. bool Save(File) const;
  7136. bool Save(VectorBuffer&) const;
  7137. bool SaveJSON(JSONValue&) const;
  7138. bool SaveXML(XMLElement&) const;
  7139. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7140. void SetAnimationTime(float);
  7141. bool SetAttribute(const String&, const Variant&);
  7142. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7143. void SetAttributeAnimationSpeed(const String&, float);
  7144. void SetAttributeAnimationTime(const String&, float);
  7145. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7146. void SetInterceptNetworkUpdate(const String&, bool);
  7147. void SetSize(const BoundingBox&, uint);
  7148. // Properties:
  7149. bool animationEnabled;
  7150. /* readonly */
  7151. Array<Variant> attributeDefaults;
  7152. /* readonly */
  7153. Array<AttributeInfo> attributeInfos;
  7154. Array<Variant> attributes;
  7155. /* readonly */
  7156. String category;
  7157. bool enabled;
  7158. /* readonly */
  7159. bool enabledEffective;
  7160. /* readonly */
  7161. uint id;
  7162. /* readonly */
  7163. Node node;
  7164. /* readonly */
  7165. uint numAttributes;
  7166. /* readonly */
  7167. uint numLevels;
  7168. ObjectAnimation objectAnimation;
  7169. /* readonly */
  7170. int refs;
  7171. bool temporary;
  7172. /* readonly */
  7173. StringHash type;
  7174. /* readonly */
  7175. String typeName;
  7176. /* readonly */
  7177. int weakRefs;
  7178. /* readonly */
  7179. BoundingBox worldBoundingBox;
  7180. };
  7181. class OffMeshConnection
  7182. {
  7183. // Methods:
  7184. void ApplyAttributes();
  7185. void DrawDebugGeometry(DebugRenderer, bool);
  7186. Variant GetAttribute(const String&) const;
  7187. ValueAnimation GetAttributeAnimation(const String&) const;
  7188. float GetAttributeAnimationSpeed(const String&) const;
  7189. float GetAttributeAnimationTime(const String&) const;
  7190. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7191. Variant GetAttributeDefault(const String&) const;
  7192. bool GetInterceptNetworkUpdate(const String&) const;
  7193. bool HasSubscribedToEvent(Object, const String&);
  7194. bool HasSubscribedToEvent(const String&);
  7195. bool Load(File, bool = false);
  7196. bool Load(VectorBuffer&, bool = false);
  7197. bool LoadJSON(const JSONValue&, bool = false);
  7198. bool LoadXML(const XMLElement&, bool = false);
  7199. void MarkNetworkUpdate() const;
  7200. void Remove();
  7201. void RemoveAttributeAnimation(const String&);
  7202. void RemoveInstanceDefault();
  7203. void RemoveObjectAnimation();
  7204. void ResetToDefault();
  7205. bool Save(File) const;
  7206. bool Save(VectorBuffer&) const;
  7207. bool SaveJSON(JSONValue&) const;
  7208. bool SaveXML(XMLElement&) const;
  7209. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7210. void SetAnimationTime(float);
  7211. bool SetAttribute(const String&, const Variant&);
  7212. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7213. void SetAttributeAnimationSpeed(const String&, float);
  7214. void SetAttributeAnimationTime(const String&, float);
  7215. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7216. void SetInterceptNetworkUpdate(const String&, bool);
  7217. // Properties:
  7218. bool animationEnabled;
  7219. uint areaID;
  7220. /* readonly */
  7221. Array<Variant> attributeDefaults;
  7222. /* readonly */
  7223. Array<AttributeInfo> attributeInfos;
  7224. Array<Variant> attributes;
  7225. bool bidirectional;
  7226. /* readonly */
  7227. String category;
  7228. bool enabled;
  7229. /* readonly */
  7230. bool enabledEffective;
  7231. Node endPoint;
  7232. /* readonly */
  7233. uint id;
  7234. uint mask;
  7235. /* readonly */
  7236. Node node;
  7237. /* readonly */
  7238. uint numAttributes;
  7239. ObjectAnimation objectAnimation;
  7240. float radius;
  7241. /* readonly */
  7242. int refs;
  7243. bool temporary;
  7244. /* readonly */
  7245. StringHash type;
  7246. /* readonly */
  7247. String typeName;
  7248. /* readonly */
  7249. int weakRefs;
  7250. };
  7251. class PackageFile
  7252. {
  7253. // Methods:
  7254. bool Exists(const String&) const;
  7255. Array<String> GetEntryNames() const;
  7256. bool HasSubscribedToEvent(Object, const String&);
  7257. bool HasSubscribedToEvent(const String&);
  7258. bool Open(const String&, uint = 0) const;
  7259. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7260. bool compressed() const;
  7261. // Properties:
  7262. /* readonly */
  7263. String category;
  7264. /* readonly */
  7265. uint checksum;
  7266. /* readonly */
  7267. String name;
  7268. /* readonly */
  7269. uint numFiles;
  7270. /* readonly */
  7271. int refs;
  7272. /* readonly */
  7273. uint totalSize;
  7274. /* readonly */
  7275. StringHash type;
  7276. /* readonly */
  7277. String typeName;
  7278. /* readonly */
  7279. int weakRefs;
  7280. };
  7281. class ParticleEffect
  7282. {
  7283. // Methods:
  7284. void AddColorFrame(ColorFrame);
  7285. void AddColorTime(Color&, float);
  7286. void AddTextureFrame(TextureFrame);
  7287. void AddTextureTime(Rect&, float);
  7288. ColorFrame GetColorFrame(uint) const;
  7289. TextureFrame GetTextureFrame(uint) const;
  7290. bool HasSubscribedToEvent(Object, const String&);
  7291. bool HasSubscribedToEvent(const String&);
  7292. bool Load(File);
  7293. bool Load(VectorBuffer&);
  7294. bool Load(const XMLElement&);
  7295. void RemoveColorFrame(uint);
  7296. void RemoveTextureFrame(uint);
  7297. bool Save(File) const;
  7298. bool Save(VectorBuffer&) const;
  7299. bool Save(XMLElement&) const;
  7300. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7301. void SetColorFrame(uint, ColorFrame);
  7302. void SetTextureFrame(uint, TextureFrame);
  7303. void SortColorFrames();
  7304. void SortTextureFrames();
  7305. // Properties:
  7306. float activeTime;
  7307. float animationLodBias;
  7308. /* readonly */
  7309. String category;
  7310. Vector3 constantForce;
  7311. float dampingForce;
  7312. Vector3 emitterSize;
  7313. EmitterType emitterType;
  7314. FaceCameraMode faceCameraMode;
  7315. float inactiveTime;
  7316. Material material;
  7317. Vector3 maxDirection;
  7318. float maxEmissionRate;
  7319. Vector2 maxParticleSize;
  7320. float maxRotation;
  7321. float maxRotationSpeed;
  7322. float maxTimeToLive;
  7323. float maxVelocity;
  7324. /* readonly */
  7325. uint memoryUse;
  7326. Vector3 minDirection;
  7327. float minEmissionRate;
  7328. Vector2 minParticleSize;
  7329. float minRotation;
  7330. float minRotationSpeed;
  7331. float minTimeToLive;
  7332. float minVelocity;
  7333. String name;
  7334. uint numColorFrames;
  7335. uint numParticles;
  7336. uint numTextureFrames;
  7337. /* readonly */
  7338. int refs;
  7339. bool relative;
  7340. bool scaled;
  7341. float sizeAdd;
  7342. float sizeMul;
  7343. bool sorted;
  7344. /* readonly */
  7345. StringHash type;
  7346. /* readonly */
  7347. String typeName;
  7348. bool updateInvisible;
  7349. /* readonly */
  7350. uint useTimer;
  7351. /* readonly */
  7352. int weakRefs;
  7353. };
  7354. class ParticleEffect2D
  7355. {
  7356. // Methods:
  7357. bool HasSubscribedToEvent(Object, const String&);
  7358. bool HasSubscribedToEvent(const String&);
  7359. bool Load(File);
  7360. bool Load(VectorBuffer&);
  7361. bool Save(File) const;
  7362. bool Save(VectorBuffer&) const;
  7363. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7364. // Properties:
  7365. /* readonly */
  7366. String category;
  7367. /* readonly */
  7368. uint memoryUse;
  7369. String name;
  7370. /* readonly */
  7371. int refs;
  7372. /* readonly */
  7373. StringHash type;
  7374. /* readonly */
  7375. String typeName;
  7376. /* readonly */
  7377. uint useTimer;
  7378. /* readonly */
  7379. int weakRefs;
  7380. };
  7381. class ParticleEmitter
  7382. {
  7383. // Methods:
  7384. void ApplyAttributes();
  7385. void ApplyEffect();
  7386. void Commit();
  7387. void DrawDebugGeometry(DebugRenderer, bool);
  7388. Variant GetAttribute(const String&) const;
  7389. ValueAnimation GetAttributeAnimation(const String&) const;
  7390. float GetAttributeAnimationSpeed(const String&) const;
  7391. float GetAttributeAnimationTime(const String&) const;
  7392. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7393. Variant GetAttributeDefault(const String&) const;
  7394. bool GetInterceptNetworkUpdate(const String&) const;
  7395. bool HasSubscribedToEvent(Object, const String&);
  7396. bool HasSubscribedToEvent(const String&);
  7397. bool IsInView(Camera) const;
  7398. bool Load(File, bool = false);
  7399. bool Load(VectorBuffer&, bool = false);
  7400. bool LoadJSON(const JSONValue&, bool = false);
  7401. bool LoadXML(const XMLElement&, bool = false);
  7402. void MarkNetworkUpdate() const;
  7403. void Remove();
  7404. void RemoveAllParticles();
  7405. void RemoveAttributeAnimation(const String&);
  7406. void RemoveInstanceDefault();
  7407. void RemoveObjectAnimation();
  7408. void Reset();
  7409. void ResetEmissionTimer();
  7410. void ResetToDefault();
  7411. bool Save(File) const;
  7412. bool Save(VectorBuffer&) const;
  7413. bool SaveJSON(JSONValue&) const;
  7414. bool SaveXML(XMLElement&) const;
  7415. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7416. void SetAnimationTime(float);
  7417. bool SetAttribute(const String&, const Variant&);
  7418. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7419. void SetAttributeAnimationSpeed(const String&, float);
  7420. void SetAttributeAnimationTime(const String&, float);
  7421. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7422. void SetInterceptNetworkUpdate(const String&, bool);
  7423. // Properties:
  7424. bool animationEnabled;
  7425. float animationLodBias;
  7426. /* readonly */
  7427. Array<Variant> attributeDefaults;
  7428. /* readonly */
  7429. Array<AttributeInfo> attributeInfos;
  7430. Array<Variant> attributes;
  7431. /* readonly */
  7432. Array<Billboard> billboards;
  7433. /* readonly */
  7434. BoundingBox boundingBox;
  7435. bool castShadows;
  7436. /* readonly */
  7437. String category;
  7438. float drawDistance;
  7439. ParticleEffect effect;
  7440. bool emitting;
  7441. bool enabled;
  7442. /* readonly */
  7443. bool enabledEffective;
  7444. FaceCameraMode faceCameraMode;
  7445. /* readonly */
  7446. uint id;
  7447. /* readonly */
  7448. bool inView;
  7449. uint lightMask;
  7450. float lodBias;
  7451. Material material;
  7452. uint maxLights;
  7453. /* readonly */
  7454. Node node;
  7455. /* readonly */
  7456. uint numAttributes;
  7457. uint numBillboards;
  7458. uint numParticles;
  7459. ObjectAnimation objectAnimation;
  7460. bool occludee;
  7461. bool occluder;
  7462. /* readonly */
  7463. int refs;
  7464. bool relative;
  7465. bool scaled;
  7466. bool serializeParticles;
  7467. float shadowDistance;
  7468. uint shadowMask;
  7469. bool sorted;
  7470. bool temporary;
  7471. /* readonly */
  7472. StringHash type;
  7473. /* readonly */
  7474. String typeName;
  7475. uint viewMask;
  7476. /* readonly */
  7477. int weakRefs;
  7478. /* readonly */
  7479. BoundingBox worldBoundingBox;
  7480. /* readonly */
  7481. Zone zone;
  7482. uint zoneMask;
  7483. };
  7484. class ParticleEmitter2D
  7485. {
  7486. // Methods:
  7487. void ApplyAttributes();
  7488. void DrawDebugGeometry(DebugRenderer, bool);
  7489. Variant GetAttribute(const String&) const;
  7490. ValueAnimation GetAttributeAnimation(const String&) const;
  7491. float GetAttributeAnimationSpeed(const String&) const;
  7492. float GetAttributeAnimationTime(const String&) const;
  7493. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7494. Variant GetAttributeDefault(const String&) const;
  7495. bool GetInterceptNetworkUpdate(const String&) const;
  7496. bool HasSubscribedToEvent(Object, const String&);
  7497. bool HasSubscribedToEvent(const String&);
  7498. bool IsInView(Camera) const;
  7499. bool Load(File, bool = false);
  7500. bool Load(VectorBuffer&, bool = false);
  7501. bool LoadJSON(const JSONValue&, bool = false);
  7502. bool LoadXML(const XMLElement&, bool = false);
  7503. void MarkNetworkUpdate() const;
  7504. void Remove();
  7505. void RemoveAttributeAnimation(const String&);
  7506. void RemoveInstanceDefault();
  7507. void RemoveObjectAnimation();
  7508. void ResetToDefault();
  7509. bool Save(File) const;
  7510. bool Save(VectorBuffer&) const;
  7511. bool SaveJSON(JSONValue&) const;
  7512. bool SaveXML(XMLElement&) const;
  7513. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7514. void SetAnimationTime(float);
  7515. bool SetAttribute(const String&, const Variant&);
  7516. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7517. void SetAttributeAnimationSpeed(const String&, float);
  7518. void SetAttributeAnimationTime(const String&, float);
  7519. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7520. void SetInterceptNetworkUpdate(const String&, bool);
  7521. // Properties:
  7522. bool animationEnabled;
  7523. /* readonly */
  7524. Array<Variant> attributeDefaults;
  7525. /* readonly */
  7526. Array<AttributeInfo> attributeInfos;
  7527. Array<Variant> attributes;
  7528. BlendMode blendMode;
  7529. /* readonly */
  7530. BoundingBox boundingBox;
  7531. bool castShadows;
  7532. /* readonly */
  7533. String category;
  7534. float drawDistance;
  7535. ParticleEffect2D effect;
  7536. bool enabled;
  7537. /* readonly */
  7538. bool enabledEffective;
  7539. /* readonly */
  7540. uint id;
  7541. /* readonly */
  7542. bool inView;
  7543. int layer;
  7544. uint lightMask;
  7545. float lodBias;
  7546. uint maxLights;
  7547. /* readonly */
  7548. Node node;
  7549. /* readonly */
  7550. uint numAttributes;
  7551. ObjectAnimation objectAnimation;
  7552. bool occludee;
  7553. bool occluder;
  7554. int orderInLayer;
  7555. /* readonly */
  7556. int refs;
  7557. float shadowDistance;
  7558. uint shadowMask;
  7559. Sprite2D sprite;
  7560. bool temporary;
  7561. /* readonly */
  7562. StringHash type;
  7563. /* readonly */
  7564. String typeName;
  7565. uint viewMask;
  7566. /* readonly */
  7567. int weakRefs;
  7568. /* readonly */
  7569. BoundingBox worldBoundingBox;
  7570. uint zoneMask;
  7571. };
  7572. class Pass
  7573. {
  7574. // Properties:
  7575. bool alphaMask;
  7576. BlendMode blendMode;
  7577. CompareMode depthTestMode;
  7578. bool depthWrite;
  7579. bool desktop;
  7580. PassLightingMode lightingMode;
  7581. String pixelShader;
  7582. String pixelShaderDefines;
  7583. /* readonly */
  7584. int refs;
  7585. String vertexShader;
  7586. String vertexShaderDefines;
  7587. /* readonly */
  7588. int weakRefs;
  7589. };
  7590. class PhysicsRaycastResult
  7591. {
  7592. // Properties:
  7593. /* readonly */
  7594. RigidBody body;
  7595. float distance;
  7596. float hitFraction;
  7597. Vector3 normal;
  7598. Vector3 position;
  7599. };
  7600. class PhysicsRaycastResult2D
  7601. {
  7602. // Properties:
  7603. /* readonly */
  7604. RigidBody2D body;
  7605. float distance;
  7606. Vector2 normal;
  7607. Vector2 position;
  7608. };
  7609. class PhysicsWorld
  7610. {
  7611. // Methods:
  7612. void ApplyAttributes();
  7613. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7614. void DrawDebugGeometry(DebugRenderer, bool);
  7615. void DrawDebugGeometry(bool);
  7616. Variant GetAttribute(const String&) const;
  7617. ValueAnimation GetAttributeAnimation(const String&) const;
  7618. float GetAttributeAnimationSpeed(const String&) const;
  7619. float GetAttributeAnimationTime(const String&) const;
  7620. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7621. Variant GetAttributeDefault(const String&) const;
  7622. Array<RigidBody> GetCollidingBodies(RigidBody);
  7623. bool GetInterceptNetworkUpdate(const String&) const;
  7624. Array<RigidBody> GetRigidBodies(RigidBody);
  7625. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7626. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7627. bool HasSubscribedToEvent(Object, const String&);
  7628. bool HasSubscribedToEvent(const String&);
  7629. bool Load(File, bool = false);
  7630. bool Load(VectorBuffer&, bool = false);
  7631. bool LoadJSON(const JSONValue&, bool = false);
  7632. bool LoadXML(const XMLElement&, bool = false);
  7633. void MarkNetworkUpdate() const;
  7634. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7635. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7636. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7637. void Remove();
  7638. void RemoveAttributeAnimation(const String&);
  7639. void RemoveCachedGeometry(Model);
  7640. void RemoveInstanceDefault();
  7641. void RemoveObjectAnimation();
  7642. void ResetToDefault();
  7643. bool Save(File) const;
  7644. bool Save(VectorBuffer&) const;
  7645. bool SaveJSON(JSONValue&) const;
  7646. bool SaveXML(XMLElement&) const;
  7647. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7648. void SetAnimationTime(float);
  7649. bool SetAttribute(const String&, const Variant&);
  7650. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7651. void SetAttributeAnimationSpeed(const String&, float);
  7652. void SetAttributeAnimationTime(const String&, float);
  7653. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7654. void SetInterceptNetworkUpdate(const String&, bool);
  7655. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7656. void Update(float);
  7657. void UpdateCollisions();
  7658. // Properties:
  7659. bool animationEnabled;
  7660. /* readonly */
  7661. Array<Variant> attributeDefaults;
  7662. /* readonly */
  7663. Array<AttributeInfo> attributeInfos;
  7664. Array<Variant> attributes;
  7665. /* readonly */
  7666. String category;
  7667. bool enabled;
  7668. /* readonly */
  7669. bool enabledEffective;
  7670. int fps;
  7671. Vector3 gravity;
  7672. /* readonly */
  7673. uint id;
  7674. bool internalEdge;
  7675. bool interpolation;
  7676. int maxSubSteps;
  7677. /* readonly */
  7678. Node node;
  7679. /* readonly */
  7680. uint numAttributes;
  7681. int numIterations;
  7682. ObjectAnimation objectAnimation;
  7683. /* readonly */
  7684. int refs;
  7685. bool splitImpulse;
  7686. bool temporary;
  7687. /* readonly */
  7688. StringHash type;
  7689. /* readonly */
  7690. String typeName;
  7691. bool updateEnabled;
  7692. /* readonly */
  7693. int weakRefs;
  7694. };
  7695. class PhysicsWorld2D
  7696. {
  7697. // Methods:
  7698. void ApplyAttributes();
  7699. void DrawDebugGeometry() const;
  7700. void DrawDebugGeometry(DebugRenderer, bool);
  7701. Variant GetAttribute(const String&) const;
  7702. ValueAnimation GetAttributeAnimation(const String&) const;
  7703. float GetAttributeAnimationSpeed(const String&) const;
  7704. float GetAttributeAnimationTime(const String&) const;
  7705. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7706. Variant GetAttributeDefault(const String&) const;
  7707. bool GetInterceptNetworkUpdate(const String&) const;
  7708. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7709. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7710. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7711. bool HasSubscribedToEvent(Object, const String&);
  7712. bool HasSubscribedToEvent(const String&);
  7713. bool Load(File, bool = false);
  7714. bool Load(VectorBuffer&, bool = false);
  7715. bool LoadJSON(const JSONValue&, bool = false);
  7716. bool LoadXML(const XMLElement&, bool = false);
  7717. void MarkNetworkUpdate() const;
  7718. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7719. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7720. void Remove();
  7721. void RemoveAttributeAnimation(const String&);
  7722. void RemoveInstanceDefault();
  7723. void RemoveObjectAnimation();
  7724. void ResetToDefault();
  7725. bool Save(File) const;
  7726. bool Save(VectorBuffer&) const;
  7727. bool SaveJSON(JSONValue&) const;
  7728. bool SaveXML(XMLElement&) const;
  7729. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7730. void SetAnimationTime(float);
  7731. bool SetAttribute(const String&, const Variant&);
  7732. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7733. void SetAttributeAnimationSpeed(const String&, float);
  7734. void SetAttributeAnimationTime(const String&, float);
  7735. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7736. void SetInterceptNetworkUpdate(const String&, bool);
  7737. // Properties:
  7738. bool allowSleeping;
  7739. bool animationEnabled;
  7740. /* readonly */
  7741. Array<Variant> attributeDefaults;
  7742. /* readonly */
  7743. Array<AttributeInfo> attributeInfos;
  7744. Array<Variant> attributes;
  7745. bool autoClearForces;
  7746. /* readonly */
  7747. String category;
  7748. bool continuousPhysics;
  7749. bool drawAabb;
  7750. bool drawCenterOfMass;
  7751. bool drawJoint;
  7752. bool drawPair;
  7753. bool drawShape;
  7754. bool enabled;
  7755. /* readonly */
  7756. bool enabledEffective;
  7757. Vector2 gravity;
  7758. /* readonly */
  7759. uint id;
  7760. /* readonly */
  7761. Node node;
  7762. /* readonly */
  7763. uint numAttributes;
  7764. ObjectAnimation objectAnimation;
  7765. uint positionIterations;
  7766. /* readonly */
  7767. int refs;
  7768. bool subStepping;
  7769. bool temporary;
  7770. /* readonly */
  7771. StringHash type;
  7772. /* readonly */
  7773. String typeName;
  7774. bool updateEnabled;
  7775. uint velocityIterations;
  7776. bool warmStarting;
  7777. /* readonly */
  7778. int weakRefs;
  7779. };
  7780. class Plane
  7781. {
  7782. // Methods:
  7783. void Define(const Vector3&, const Vector3&);
  7784. void Define(const Vector3&, const Vector3&, const Vector3&);
  7785. void Define(const Vector4&);
  7786. float Distance(const Vector3&) const;
  7787. Vector3 Project(const Vector3&) const;
  7788. Vector3 Reflect(const Vector3&) const;
  7789. Vector4 ToVector4() const;
  7790. void Transform(const Matrix3&);
  7791. void Transform(const Matrix3x4&);
  7792. void Transform(const Matrix4&);
  7793. Plane Transformed(const Matrix3&) const;
  7794. Plane Transformed(const Matrix3x4&) const;
  7795. Plane Transformed(const Matrix4&) const;
  7796. // Properties:
  7797. Vector3 absNormal;
  7798. float d;
  7799. Vector3 normal;
  7800. /* readonly */
  7801. Matrix3x4 reflectionMatrix;
  7802. };
  7803. class Polyhedron
  7804. {
  7805. // Methods:
  7806. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7807. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7808. void AddFace(const Array<Vector3>);
  7809. void Clear();
  7810. void Clip(const BoundingBox&);
  7811. void Clip(const Frustum&);
  7812. void Define(const BoundingBox&);
  7813. void Define(const Frustum&);
  7814. void Transform(const Matrix3&);
  7815. void Transform(const Matrix3x4&);
  7816. Polyhedron Transformed(const Matrix3&) const;
  7817. Polyhedron Transformed(const Matrix3x4&) const;
  7818. // Properties:
  7819. /* readonly */
  7820. Array<Array<Vector3>> face;
  7821. /* readonly */
  7822. uint numFaces;
  7823. };
  7824. class PropertySet2D
  7825. {
  7826. // Methods:
  7827. bool HasProperty(const String&) const;
  7828. const String& GetProperty(const String&) const;
  7829. // Properties:
  7830. /* readonly */
  7831. int refs;
  7832. /* readonly */
  7833. int weakRefs;
  7834. };
  7835. class Quaternion
  7836. {
  7837. // Methods:
  7838. Quaternion Conjugate() const;
  7839. float DotProduct(const Quaternion&) const;
  7840. bool Equals(const Quaternion&) const;
  7841. void FromAngleAxis(float, const Vector3&);
  7842. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7843. void FromEulerAngles(float, float, float);
  7844. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  7845. void FromRotationMatrix(const Matrix3&);
  7846. void FromRotationTo(const Vector3&, const Vector3&);
  7847. Quaternion Inverse() const;
  7848. bool IsNaN() const;
  7849. float LengthSquared() const;
  7850. Quaternion Nlerp(Quaternion, float, bool) const;
  7851. void Normalize();
  7852. Quaternion Normalized() const;
  7853. Quaternion Slerp(Quaternion, float) const;
  7854. String ToString() const;
  7855. // Properties:
  7856. /* readonly */
  7857. Vector3 eulerAngles;
  7858. /* readonly */
  7859. float pitch;
  7860. /* readonly */
  7861. float roll;
  7862. /* readonly */
  7863. Matrix3 rotationMatrix;
  7864. float w;
  7865. float x;
  7866. float y;
  7867. /* readonly */
  7868. float yaw;
  7869. float z;
  7870. };
  7871. class Ray
  7872. {
  7873. // Methods:
  7874. Vector3 ClosestPoint(const Ray&) const;
  7875. void Define(const Vector3&, const Vector3&);
  7876. float Distance(const Vector3&) const;
  7877. float HitDistance(const BoundingBox&) const;
  7878. float HitDistance(const Frustum&, bool = true) const;
  7879. float HitDistance(const Plane&) const;
  7880. float HitDistance(const Sphere&) const;
  7881. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7882. Vector3 Project(const Vector3&) const;
  7883. Ray Transformed(const Matrix3x4&) const;
  7884. // Properties:
  7885. Vector3 direction;
  7886. Vector3 origin;
  7887. };
  7888. class RayQueryResult
  7889. {
  7890. // Properties:
  7891. float distance;
  7892. /* readonly */
  7893. Drawable drawable;
  7894. /* readonly */
  7895. Node node;
  7896. Vector3 normal;
  7897. Vector3 position;
  7898. uint subObject;
  7899. Vector2 textureUV;
  7900. };
  7901. class Rect
  7902. {
  7903. // Methods:
  7904. void Clear();
  7905. void Clip(const Rect&);
  7906. void Define(const Vector2&);
  7907. void Define(const Vector2&, const Vector2&);
  7908. bool Defined() const;
  7909. bool Equals(const Rect&) const;
  7910. Intersection IsInside(const Vector2&) const;
  7911. void Merge(const Rect&);
  7912. void Merge(const Vector2&);
  7913. Vector4 ToVector4() const;
  7914. // Properties:
  7915. float bottom;
  7916. /* readonly */
  7917. Vector2 center;
  7918. /* readonly */
  7919. Vector2 halfSize;
  7920. float left;
  7921. Vector2 max;
  7922. Vector2 min;
  7923. float right;
  7924. /* readonly */
  7925. Vector2 size;
  7926. float top;
  7927. };
  7928. class RefCounted
  7929. {
  7930. // Properties:
  7931. /* readonly */
  7932. int refs;
  7933. /* readonly */
  7934. int weakRefs;
  7935. };
  7936. class RenderPath
  7937. {
  7938. // Methods:
  7939. void AddCommand(const RenderPathCommand&);
  7940. void AddRenderTarget(const RenderTargetInfo&);
  7941. bool Append(XMLFile);
  7942. RenderPath Clone();
  7943. void InsertCommand(uint, const RenderPathCommand&);
  7944. bool Load(XMLFile);
  7945. void RemoveCommand(uint);
  7946. void RemoveCommands(const String&);
  7947. void RemoveRenderTarget(const String&);
  7948. void RemoveRenderTarget(uint);
  7949. void RemoveRenderTargts(const String&);
  7950. void SetEnabled(const String&, bool);
  7951. void ToggleEnabled(const String&);
  7952. // Properties:
  7953. Array<RenderPathCommand> commands;
  7954. /* readonly */
  7955. uint numCommands;
  7956. /* readonly */
  7957. uint numRenderTargets;
  7958. /* readonly */
  7959. int refs;
  7960. Array<RenderTargetInfo> renderTargets;
  7961. Array<Variant> shaderParameters;
  7962. /* readonly */
  7963. int weakRefs;
  7964. };
  7965. class RenderPathCommand
  7966. {
  7967. // Methods:
  7968. void RemoveShaderParameter(const String&);
  7969. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  7970. // Properties:
  7971. BlendMode blendMode;
  7972. Color clearColor;
  7973. float clearDepth;
  7974. uint clearFlags;
  7975. uint clearStencil;
  7976. String depthStencilName;
  7977. bool enabled;
  7978. bool markToStencil;
  7979. String metadata;
  7980. uint numOutputs;
  7981. Array<CubeMapFace> outputFaces;
  7982. Array<String> outputNames;
  7983. String pass;
  7984. String pixelShaderDefines;
  7985. String pixelShaderName;
  7986. Array<Variant> shaderParameters;
  7987. RenderCommandSortMode sortMode;
  7988. String tag;
  7989. Array<String> textureNames;
  7990. RenderCommandType type;
  7991. bool useFogColor;
  7992. bool useLitBase;
  7993. bool vertexLights;
  7994. String vertexShaderDefines;
  7995. String vertexShaderName;
  7996. };
  7997. class RenderSurface
  7998. {
  7999. // Methods:
  8000. void QueueUpdate();
  8001. // Properties:
  8002. /* readonly */
  8003. int height;
  8004. RenderSurface linkedDepthStencil;
  8005. RenderSurface linkedRenderTarget;
  8006. uint numViewports;
  8007. /* readonly */
  8008. Texture parentTexture;
  8009. RenderSurfaceUpdateMode updateMode;
  8010. /* readonly */
  8011. TextureUsage usage;
  8012. Array<Viewport> viewports;
  8013. /* readonly */
  8014. int width;
  8015. };
  8016. class RenderTargetInfo
  8017. {
  8018. // Properties:
  8019. bool cubemap;
  8020. bool enabled;
  8021. bool filtered;
  8022. uint format;
  8023. String name;
  8024. bool persistent;
  8025. bool sRGB;
  8026. Vector2 size;
  8027. RenderTargetSizeMode sizeMode;
  8028. String tag;
  8029. };
  8030. class Renderer
  8031. {
  8032. // Methods:
  8033. void DrawDebugGeometry(bool) const;
  8034. bool HasSubscribedToEvent(Object, const String&);
  8035. bool HasSubscribedToEvent(const String&);
  8036. void ReloadShaders() const;
  8037. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8038. void SetDefaultRenderPath(XMLFile);
  8039. void SetVSMShadowParameters(float, float);
  8040. // Properties:
  8041. /* readonly */
  8042. String category;
  8043. /* readonly */
  8044. Material defaultLightRamp;
  8045. /* readonly */
  8046. Material defaultLightSpot;
  8047. /* readonly */
  8048. Material defaultMaterial;
  8049. RenderPath defaultRenderPath;
  8050. /* readonly */
  8051. Zone defaultZone;
  8052. bool drawShadows;
  8053. bool dynamicInstancing;
  8054. bool hdrRendering;
  8055. int materialQuality;
  8056. int maxOccluderTriangles;
  8057. int maxShadowMaps;
  8058. int maxSortedInstances;
  8059. int minInstances;
  8060. float mobileShadowBiasAdd;
  8061. float mobileShadowBiasMul;
  8062. /* readonly */
  8063. uint numBatches;
  8064. /* readonly */
  8065. Array<uint> numGeometries;
  8066. /* readonly */
  8067. Array<uint> numLights;
  8068. /* readonly */
  8069. Array<uint> numOccluders;
  8070. /* readonly */
  8071. uint numPrimitives;
  8072. /* readonly */
  8073. Array<uint> numShadowMaps;
  8074. uint numViewports;
  8075. /* readonly */
  8076. uint numViews;
  8077. float occluderSizeThreshold;
  8078. int occlusionBufferSize;
  8079. /* readonly */
  8080. int refs;
  8081. bool reuseShadowMaps;
  8082. int shadowMapSize;
  8083. ShadowQuality shadowQuality;
  8084. float shadowSoftness;
  8085. bool specularLighting;
  8086. int textureAnisotropy;
  8087. TextureFilterMode textureFilterMode;
  8088. int textureQuality;
  8089. bool threadedOcclusion;
  8090. /* readonly */
  8091. StringHash type;
  8092. /* readonly */
  8093. String typeName;
  8094. Array<Viewport> viewports;
  8095. Vector2 vsmShadowParameters;
  8096. /* readonly */
  8097. int weakRefs;
  8098. };
  8099. class Resource
  8100. {
  8101. // Methods:
  8102. bool HasSubscribedToEvent(Object, const String&);
  8103. bool HasSubscribedToEvent(const String&);
  8104. bool Load(File);
  8105. bool Load(VectorBuffer&);
  8106. bool Save(File) const;
  8107. bool Save(VectorBuffer&) const;
  8108. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8109. // Properties:
  8110. /* readonly */
  8111. String category;
  8112. /* readonly */
  8113. uint memoryUse;
  8114. String name;
  8115. /* readonly */
  8116. int refs;
  8117. /* readonly */
  8118. StringHash type;
  8119. /* readonly */
  8120. String typeName;
  8121. /* readonly */
  8122. uint useTimer;
  8123. /* readonly */
  8124. int weakRefs;
  8125. };
  8126. class ResourceCache
  8127. {
  8128. // Methods:
  8129. bool AddManualResource(Resource);
  8130. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8131. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8132. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8133. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8134. bool Exists(const String&) const;
  8135. Resource GetExistingResource(StringHash, const String&);
  8136. Resource GetExistingResource(const String&, const String&);
  8137. File GetFile(const String&);
  8138. String GetPreferredResourceDir(const String&) const;
  8139. Resource GetResource(StringHash, const String&, bool = true);
  8140. Resource GetResource(const String&, const String&, bool = true);
  8141. String GetResourceFileName(const String&) const;
  8142. bool HasSubscribedToEvent(Object, const String&);
  8143. bool HasSubscribedToEvent(const String&);
  8144. void ReleaseAllResources(bool = false);
  8145. void ReleaseResource(const String&, const String&, bool = false);
  8146. void ReleaseResources(StringHash, bool = false);
  8147. void ReleaseResources(const String&, bool = false);
  8148. void ReleaseResources(const String&, const String&, bool = false);
  8149. bool ReloadResource(Resource);
  8150. void ReloadResourceWithDependencies(const String&);
  8151. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8152. void RemovePackageFile(const String&, bool = true, bool = false);
  8153. void RemoveResourceDir(const String&);
  8154. String SanitateResourceDirName(const String&) const;
  8155. String SanitateResourceName(const String&) const;
  8156. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8157. // Properties:
  8158. bool autoReloadResources;
  8159. /* readonly */
  8160. String category;
  8161. int finishBackgroundResourcesMs;
  8162. Array<uint64> memoryBudget;
  8163. /* readonly */
  8164. Array<uint64> memoryUse;
  8165. /* readonly */
  8166. uint numBackgroundLoadResources;
  8167. /* readonly */
  8168. Array<PackageFile> packageFiles;
  8169. /* readonly */
  8170. int refs;
  8171. /* readonly */
  8172. Array<String> resourceDirs;
  8173. bool returnFailedResources;
  8174. /* readonly */
  8175. bool seachPackagesFirst;
  8176. /* writeonly */
  8177. bool searchPackagesFirst;
  8178. /* readonly */
  8179. uint64 totalMemoryUse;
  8180. /* readonly */
  8181. StringHash type;
  8182. /* readonly */
  8183. String typeName;
  8184. /* readonly */
  8185. int weakRefs;
  8186. };
  8187. class ResourceRef
  8188. {
  8189. // Properties:
  8190. String name;
  8191. StringHash type;
  8192. };
  8193. class ResourceRefList
  8194. {
  8195. // Methods:
  8196. void Resize(uint);
  8197. // Properties:
  8198. /* readonly */
  8199. bool empty;
  8200. /* readonly */
  8201. uint length;
  8202. Array<String> names;
  8203. StringHash type;
  8204. };
  8205. class RigidBody
  8206. {
  8207. // Methods:
  8208. void Activate();
  8209. void ApplyAttributes();
  8210. void ApplyForce(const Vector3&);
  8211. void ApplyForce(const Vector3&, const Vector3&);
  8212. void ApplyImpulse(const Vector3&);
  8213. void ApplyImpulse(const Vector3&, const Vector3&);
  8214. void ApplyTorque(const Vector3&);
  8215. void ApplyTorqueImpulse(const Vector3&);
  8216. void DisableMassUpdate();
  8217. void DrawDebugGeometry(DebugRenderer, bool);
  8218. void EnableMassUpdate();
  8219. Variant GetAttribute(const String&) const;
  8220. ValueAnimation GetAttributeAnimation(const String&) const;
  8221. float GetAttributeAnimationSpeed(const String&) const;
  8222. float GetAttributeAnimationTime(const String&) const;
  8223. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8224. Variant GetAttributeDefault(const String&) const;
  8225. bool GetInterceptNetworkUpdate(const String&) const;
  8226. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8227. bool HasSubscribedToEvent(Object, const String&);
  8228. bool HasSubscribedToEvent(const String&);
  8229. bool Load(File, bool = false);
  8230. bool Load(VectorBuffer&, bool = false);
  8231. bool LoadJSON(const JSONValue&, bool = false);
  8232. bool LoadXML(const XMLElement&, bool = false);
  8233. void MarkNetworkUpdate() const;
  8234. void ReAddBodyToWorld();
  8235. void Remove();
  8236. void RemoveAttributeAnimation(const String&);
  8237. void RemoveInstanceDefault();
  8238. void RemoveObjectAnimation();
  8239. void ResetForces();
  8240. void ResetToDefault();
  8241. bool Save(File) const;
  8242. bool Save(VectorBuffer&) const;
  8243. bool SaveJSON(JSONValue&) const;
  8244. bool SaveXML(XMLElement&) const;
  8245. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8246. void SetAnimationTime(float);
  8247. bool SetAttribute(const String&, const Variant&);
  8248. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8249. void SetAttributeAnimationSpeed(const String&, float);
  8250. void SetAttributeAnimationTime(const String&, float);
  8251. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8252. void SetCollisionLayerAndMask(uint, uint);
  8253. void SetInterceptNetworkUpdate(const String&, bool);
  8254. void SetTransform(const Vector3&, const Quaternion&);
  8255. // Properties:
  8256. /* readonly */
  8257. bool active;
  8258. float angularDamping;
  8259. Vector3 angularFactor;
  8260. float angularRestThreshold;
  8261. Vector3 angularVelocity;
  8262. bool animationEnabled;
  8263. Vector3 anisotropicFriction;
  8264. /* readonly */
  8265. Array<Variant> attributeDefaults;
  8266. /* readonly */
  8267. Array<AttributeInfo> attributeInfos;
  8268. Array<Variant> attributes;
  8269. /* readonly */
  8270. String category;
  8271. float ccdMotionThreshold;
  8272. float ccdRadius;
  8273. /* readonly */
  8274. Vector3 centerOfMass;
  8275. /* readonly */
  8276. Array<RigidBody> collidingBodies;
  8277. CollisionEventMode collisionEventMode;
  8278. uint collisionLayer;
  8279. uint collisionMask;
  8280. float contactProcessingThreshold;
  8281. bool enabled;
  8282. /* readonly */
  8283. bool enabledEffective;
  8284. float friction;
  8285. Vector3 gravityOverride;
  8286. /* readonly */
  8287. uint id;
  8288. bool kinematic;
  8289. float linearDamping;
  8290. Vector3 linearFactor;
  8291. float linearRestThreshold;
  8292. Vector3 linearVelocity;
  8293. float mass;
  8294. /* readonly */
  8295. Node node;
  8296. /* readonly */
  8297. uint numAttributes;
  8298. ObjectAnimation objectAnimation;
  8299. Vector3 position;
  8300. /* readonly */
  8301. int refs;
  8302. float restitution;
  8303. float rollingFriction;
  8304. Quaternion rotation;
  8305. bool temporary;
  8306. bool trigger;
  8307. /* readonly */
  8308. StringHash type;
  8309. /* readonly */
  8310. String typeName;
  8311. bool useGravity;
  8312. /* readonly */
  8313. int weakRefs;
  8314. };
  8315. class RigidBody2D
  8316. {
  8317. // Methods:
  8318. void ApplyAngularImpulse(float, bool);
  8319. void ApplyAttributes();
  8320. void ApplyForce(const Vector2&, const Vector2&, bool);
  8321. void ApplyForceToCenter(const Vector2&, bool);
  8322. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8323. void ApplyTorque(float, bool);
  8324. void DrawDebugGeometry(DebugRenderer, bool);
  8325. Variant GetAttribute(const String&) const;
  8326. ValueAnimation GetAttributeAnimation(const String&) const;
  8327. float GetAttributeAnimationSpeed(const String&) const;
  8328. float GetAttributeAnimationTime(const String&) const;
  8329. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8330. Variant GetAttributeDefault(const String&) const;
  8331. bool GetInterceptNetworkUpdate(const String&) const;
  8332. bool HasSubscribedToEvent(Object, const String&);
  8333. bool HasSubscribedToEvent(const String&);
  8334. bool Load(File, bool = false);
  8335. bool Load(VectorBuffer&, bool = false);
  8336. bool LoadJSON(const JSONValue&, bool = false);
  8337. bool LoadXML(const XMLElement&, bool = false);
  8338. void MarkNetworkUpdate() const;
  8339. void Remove();
  8340. void RemoveAttributeAnimation(const String&);
  8341. void RemoveInstanceDefault();
  8342. void RemoveObjectAnimation();
  8343. void ResetToDefault();
  8344. bool Save(File) const;
  8345. bool Save(VectorBuffer&) const;
  8346. bool SaveJSON(JSONValue&) const;
  8347. bool SaveXML(XMLElement&) const;
  8348. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8349. void SetAnimationTime(float);
  8350. bool SetAttribute(const String&, const Variant&);
  8351. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8352. void SetAttributeAnimationSpeed(const String&, float);
  8353. void SetAttributeAnimationTime(const String&, float);
  8354. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8355. void SetInterceptNetworkUpdate(const String&, bool);
  8356. // Properties:
  8357. bool allowSleep;
  8358. float angularDamping;
  8359. bool animationEnabled;
  8360. /* readonly */
  8361. Array<Variant> attributeDefaults;
  8362. /* readonly */
  8363. Array<AttributeInfo> attributeInfos;
  8364. Array<Variant> attributes;
  8365. bool awake;
  8366. BodyType2D bodyType;
  8367. bool bullet;
  8368. /* readonly */
  8369. String category;
  8370. bool enabled;
  8371. /* readonly */
  8372. bool enabledEffective;
  8373. bool fixedRotation;
  8374. float gravityScale;
  8375. /* readonly */
  8376. uint id;
  8377. float inertia;
  8378. float linearDamping;
  8379. Vector2 linearVelocity;
  8380. float mass;
  8381. Vector2 massCenter;
  8382. /* readonly */
  8383. Node node;
  8384. /* readonly */
  8385. uint numAttributes;
  8386. ObjectAnimation objectAnimation;
  8387. /* readonly */
  8388. int refs;
  8389. bool temporary;
  8390. /* readonly */
  8391. StringHash type;
  8392. /* readonly */
  8393. String typeName;
  8394. bool useFixtureMass;
  8395. /* readonly */
  8396. int weakRefs;
  8397. };
  8398. class Scene
  8399. {
  8400. // Methods:
  8401. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8402. void AddRequiredPackageFile(PackageFile);
  8403. void AddTag(const String&);
  8404. void AddTags(const String&, int8 = ';');
  8405. void ApplyAttributes();
  8406. void Clear(bool = true, bool = true);
  8407. void ClearRequiredPackageFiles();
  8408. Component CloneComponent(Component, CreateMode, uint = 0);
  8409. Component CloneComponent(Component, uint = 0);
  8410. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8411. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8412. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8413. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8414. Variant GetAttribute(const String&) const;
  8415. ValueAnimation GetAttributeAnimation(const String&) const;
  8416. float GetAttributeAnimationSpeed(const String&) const;
  8417. float GetAttributeAnimationTime(const String&) const;
  8418. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8419. Variant GetAttributeDefault(const String&) const;
  8420. Node GetChild(const String&, bool = false) const;
  8421. Array<Node> GetChildren(bool = false) const;
  8422. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8423. Array<Node> GetChildrenWithScript(bool = false) const;
  8424. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8425. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8426. Component GetComponent(const String&, bool = false) const;
  8427. Component GetComponent(uint) const;
  8428. Array<Component> GetComponents() const;
  8429. Array<Component> GetComponents(const String&, bool = false) const;
  8430. bool GetInterceptNetworkUpdate(const String&) const;
  8431. Node GetNode(uint) const;
  8432. Array<Node> GetNodesWithTag(const String&) const;
  8433. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8434. Component GetParentComponent(const String&, bool = false) const;
  8435. ScriptObject GetScriptObject() const;
  8436. ScriptObject GetScriptObject(const String&) const;
  8437. bool HasComponent(const String&) const;
  8438. bool HasSubscribedToEvent(Object, const String&);
  8439. bool HasSubscribedToEvent(const String&);
  8440. bool HasTag(const String&);
  8441. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8442. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8443. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8444. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8445. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8446. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8447. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8448. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8449. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8450. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8451. bool Load(File, bool = false);
  8452. bool Load(VectorBuffer&, bool = false);
  8453. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8454. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8455. bool LoadJSON(File);
  8456. bool LoadJSON(VectorBuffer&);
  8457. bool LoadJSON(const JSONValue&, bool = false);
  8458. bool LoadXML(File);
  8459. bool LoadXML(VectorBuffer&);
  8460. bool LoadXML(const XMLElement&, bool = false);
  8461. Vector3 LocalToWorld(const Vector3&) const;
  8462. Vector3 LocalToWorld(const Vector4&) const;
  8463. Vector2 LocalToWorld2D(const Vector2&) const;
  8464. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8465. void MarkNetworkUpdate() const;
  8466. void Pitch(float, TransformSpace = TS_LOCAL);
  8467. void RegisterVar(const String&);
  8468. void Remove();
  8469. void RemoveAllChildren();
  8470. void RemoveAllComponents();
  8471. void RemoveAllTags();
  8472. void RemoveAttributeAnimation(const String&);
  8473. void RemoveChild(Node);
  8474. void RemoveChildren(bool, bool, bool);
  8475. void RemoveComponent(Component);
  8476. void RemoveComponent(const String&);
  8477. void RemoveComponents(bool, bool);
  8478. void RemoveComponents(const String&);
  8479. void RemoveInstanceDefault();
  8480. void RemoveObjectAnimation();
  8481. bool RemoveTag(const String&);
  8482. void ResetToDefault();
  8483. void Roll(float, TransformSpace = TS_LOCAL);
  8484. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8485. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8486. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8487. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8488. bool Save(File) const;
  8489. bool Save(VectorBuffer&) const;
  8490. bool SaveJSON(File, const String& = "\t");
  8491. bool SaveJSON(JSONValue&) const;
  8492. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8493. bool SaveXML(File, const String& = "\t");
  8494. bool SaveXML(VectorBuffer&, const String& = "\t");
  8495. bool SaveXML(XMLElement&) const;
  8496. void Scale(const Vector3&);
  8497. void Scale(float);
  8498. void Scale2D(const Vector2&);
  8499. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8500. void SetAnimationTime(float);
  8501. bool SetAttribute(const String&, const Variant&);
  8502. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8503. void SetAttributeAnimationSpeed(const String&, float);
  8504. void SetAttributeAnimationTime(const String&, float);
  8505. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8506. void SetInterceptNetworkUpdate(const String&, bool);
  8507. void SetPosition2D(float, float);
  8508. void SetScale(float);
  8509. void SetScale2D(float, float);
  8510. void SetTransform(const Vector3&, const Quaternion&);
  8511. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8512. void SetTransform(const Vector3&, const Quaternion&, float);
  8513. void SetTransform2D(const Vector2&, float);
  8514. void SetTransform2D(const Vector2&, float, const Vector2&);
  8515. void SetTransform2D(const Vector2&, float, float);
  8516. void SetWorldTransform(const Vector3&, const Quaternion&);
  8517. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8518. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8519. void SetWorldTransform2D(const Vector2&, float);
  8520. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8521. void SetWorldTransform2D(const Vector2&, float, float);
  8522. void StopAsyncLoading();
  8523. const String& GetVarName(StringHash) const;
  8524. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8525. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8526. void UnregisterAllVars(const String&);
  8527. void UnregisterVar(const String&);
  8528. void Update(float);
  8529. Vector3 WorldToLocal(const Vector3&) const;
  8530. Vector3 WorldToLocal(const Vector4&) const;
  8531. Vector2 WorldToLocal2D(const Vector2&) const;
  8532. void Yaw(float, TransformSpace = TS_LOCAL);
  8533. // Properties:
  8534. bool animationEnabled;
  8535. /* readonly */
  8536. LoadMode asyncLoadMode;
  8537. /* readonly */
  8538. bool asyncLoading;
  8539. int asyncLoadingMs;
  8540. /* readonly */
  8541. float asyncProgress;
  8542. /* readonly */
  8543. Array<Variant> attributeDefaults;
  8544. /* readonly */
  8545. Array<AttributeInfo> attributeInfos;
  8546. Array<Variant> attributes;
  8547. /* readonly */
  8548. String category;
  8549. /* readonly */
  8550. uint checksum;
  8551. /* readonly */
  8552. Array<Node> children;
  8553. /* readonly */
  8554. Array<Component> components;
  8555. /* readonly */
  8556. DebugRenderer debugRenderer;
  8557. Vector3 direction;
  8558. float elapsedTime;
  8559. /* readonly */
  8560. String fileName;
  8561. /* readonly */
  8562. uint id;
  8563. String name;
  8564. /* readonly */
  8565. uint numAllChildren;
  8566. /* readonly */
  8567. uint numAttributes;
  8568. /* readonly */
  8569. uint numChildren;
  8570. /* readonly */
  8571. uint numComponents;
  8572. ObjectAnimation objectAnimation;
  8573. /* readonly */
  8574. Octree octree;
  8575. Node parent;
  8576. /* readonly */
  8577. PhysicsWorld physicsWorld;
  8578. /* readonly */
  8579. PhysicsWorld2D physicsWorld2D;
  8580. Vector3 position;
  8581. Vector2 position2D;
  8582. /* readonly */
  8583. int refs;
  8584. /* readonly */
  8585. Array<PackageFile> requiredPackageFiles;
  8586. /* readonly */
  8587. Vector3 right;
  8588. Quaternion rotation;
  8589. float rotation2D;
  8590. Vector3 scale;
  8591. Vector2 scale2D;
  8592. /* readonly */
  8593. ScriptObject scriptObject;
  8594. float smoothingConstant;
  8595. float snapThreshold;
  8596. /* readonly */
  8597. Array<String> tags;
  8598. bool temporary;
  8599. float timeScale;
  8600. /* readonly */
  8601. Matrix3x4 transform;
  8602. /* readonly */
  8603. StringHash type;
  8604. /* readonly */
  8605. String typeName;
  8606. /* readonly */
  8607. Vector3 up;
  8608. bool updateEnabled;
  8609. /* readonly */
  8610. VariantMap vars;
  8611. /* readonly */
  8612. int weakRefs;
  8613. Vector3 worldDirection;
  8614. Vector3 worldPosition;
  8615. Vector2 worldPosition2D;
  8616. /* readonly */
  8617. Vector3 worldRight;
  8618. Quaternion worldRotation;
  8619. float worldRotation2D;
  8620. Vector3 worldScale;
  8621. Vector2 worldScale2D;
  8622. /* readonly */
  8623. Matrix3x4 worldTransform;
  8624. /* readonly */
  8625. Vector3 worldUp;
  8626. };
  8627. class Script
  8628. {
  8629. // Methods:
  8630. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8631. bool Execute(const String&);
  8632. bool HasSubscribedToEvent(Object, const String&);
  8633. bool HasSubscribedToEvent(const String&);
  8634. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8635. // Properties:
  8636. /* readonly */
  8637. String category;
  8638. Scene defaultScene;
  8639. ScriptFile defaultScriptFile;
  8640. bool executeConsoleCommands;
  8641. /* readonly */
  8642. int refs;
  8643. /* readonly */
  8644. StringHash type;
  8645. /* readonly */
  8646. String typeName;
  8647. /* readonly */
  8648. int weakRefs;
  8649. };
  8650. class ScriptFile
  8651. {
  8652. // Methods:
  8653. void ClearDelayedExecute(const String& = String ( ));
  8654. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8655. bool Execute(const String&, const Array<Variant> = null);
  8656. bool HasSubscribedToEvent(Object, const String&);
  8657. bool HasSubscribedToEvent(const String&);
  8658. bool Load(File);
  8659. bool Load(VectorBuffer&);
  8660. bool Save(File) const;
  8661. bool Save(VectorBuffer&) const;
  8662. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8663. // Properties:
  8664. /* readonly */
  8665. String category;
  8666. /* readonly */
  8667. bool compiled;
  8668. /* readonly */
  8669. uint memoryUse;
  8670. String name;
  8671. /* readonly */
  8672. int refs;
  8673. /* readonly */
  8674. StringHash type;
  8675. /* readonly */
  8676. String typeName;
  8677. /* readonly */
  8678. uint useTimer;
  8679. /* readonly */
  8680. int weakRefs;
  8681. };
  8682. class ScriptInstance
  8683. {
  8684. // Methods:
  8685. void ApplyAttributes();
  8686. void ClearDelayedExecute(const String& = String ( ));
  8687. bool CreateObject(ScriptFile, const String&);
  8688. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8689. void DrawDebugGeometry(DebugRenderer, bool);
  8690. bool Execute(const String&, const Array<Variant> = null);
  8691. Variant GetAttribute(const String&) const;
  8692. ValueAnimation GetAttributeAnimation(const String&) const;
  8693. float GetAttributeAnimationSpeed(const String&) const;
  8694. float GetAttributeAnimationTime(const String&) const;
  8695. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8696. Variant GetAttributeDefault(const String&) const;
  8697. bool GetInterceptNetworkUpdate(const String&) const;
  8698. bool HasMethod(const String&) const;
  8699. bool HasSubscribedToEvent(Object, const String&);
  8700. bool HasSubscribedToEvent(const String&);
  8701. bool IsA(const String&) const;
  8702. bool Load(File, bool = false);
  8703. bool Load(VectorBuffer&, bool = false);
  8704. bool LoadJSON(const JSONValue&, bool = false);
  8705. bool LoadXML(const XMLElement&, bool = false);
  8706. void MarkNetworkUpdate() const;
  8707. void Remove();
  8708. void RemoveAttributeAnimation(const String&);
  8709. void RemoveInstanceDefault();
  8710. void RemoveObjectAnimation();
  8711. void ResetToDefault();
  8712. bool Save(File) const;
  8713. bool Save(VectorBuffer&) const;
  8714. bool SaveJSON(JSONValue&) const;
  8715. bool SaveXML(XMLElement&) const;
  8716. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8717. void SetAnimationTime(float);
  8718. bool SetAttribute(const String&, const Variant&);
  8719. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8720. void SetAttributeAnimationSpeed(const String&, float);
  8721. void SetAttributeAnimationTime(const String&, float);
  8722. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8723. void SetInterceptNetworkUpdate(const String&, bool);
  8724. // Properties:
  8725. bool animationEnabled;
  8726. /* readonly */
  8727. Array<Variant> attributeDefaults;
  8728. /* readonly */
  8729. Array<AttributeInfo> attributeInfos;
  8730. Array<Variant> attributes;
  8731. /* readonly */
  8732. String category;
  8733. String className;
  8734. bool enabled;
  8735. /* readonly */
  8736. bool enabledEffective;
  8737. /* readonly */
  8738. uint id;
  8739. /* readonly */
  8740. Node node;
  8741. /* readonly */
  8742. uint numAttributes;
  8743. ObjectAnimation objectAnimation;
  8744. /* readonly */
  8745. int refs;
  8746. ScriptFile scriptFile;
  8747. /* readonly */
  8748. ScriptObject scriptObject;
  8749. bool temporary;
  8750. /* readonly */
  8751. StringHash type;
  8752. /* readonly */
  8753. String typeName;
  8754. /* readonly */
  8755. int weakRefs;
  8756. };
  8757. class ScriptObject
  8758. {
  8759. };
  8760. class ScrollBar
  8761. {
  8762. // Methods:
  8763. void AddChild(UIElement);
  8764. void AddTag(const String&);
  8765. void AddTags(const String&, int8 = ';');
  8766. void ApplyAttributes();
  8767. void BringToFront();
  8768. void ChangeValue(float);
  8769. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8770. void DisableLayoutUpdate();
  8771. IntVector2 ElementToScreen(const IntVector2&);
  8772. void EnableLayoutUpdate();
  8773. uint FindChild(UIElement) const;
  8774. Variant GetAttribute(const String&) const;
  8775. ValueAnimation GetAttributeAnimation(const String&) const;
  8776. float GetAttributeAnimationSpeed(const String&) const;
  8777. float GetAttributeAnimationTime(const String&) const;
  8778. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8779. Variant GetAttributeDefault(const String&) const;
  8780. UIElement GetChild(const String&, bool = false) const;
  8781. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8782. Array<UIElement> GetChildren(bool = false) const;
  8783. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8784. UIElement GetElementEventSender() const;
  8785. bool GetInterceptNetworkUpdate(const String&) const;
  8786. uint GetNumChildren(bool) const;
  8787. bool HasSubscribedToEvent(Object, const String&);
  8788. bool HasSubscribedToEvent(const String&);
  8789. bool HasTag(const String&) const;
  8790. void InsertChild(uint, UIElement);
  8791. bool IsInside(IntVector2, bool);
  8792. bool IsInsideCombined(IntVector2, bool);
  8793. bool Load(File, bool = false);
  8794. bool Load(VectorBuffer&, bool = false);
  8795. bool LoadChildXML(XMLFile, XMLFile = null);
  8796. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8797. bool LoadJSON(const JSONValue&, bool = false);
  8798. bool LoadXML(File);
  8799. bool LoadXML(VectorBuffer&);
  8800. bool LoadXML(XMLFile, XMLFile);
  8801. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8802. bool LoadXML(const XMLElement&, bool = false);
  8803. void MarkNetworkUpdate() const;
  8804. void Remove();
  8805. void RemoveAllChildren();
  8806. void RemoveAllTags();
  8807. void RemoveAttributeAnimation(const String&);
  8808. void RemoveChild(UIElement, uint = 0);
  8809. void RemoveChild(uint);
  8810. void RemoveInstanceDefault();
  8811. void RemoveObjectAnimation();
  8812. bool RemoveTag(const String&);
  8813. void ResetDeepEnabled();
  8814. void ResetToDefault();
  8815. bool Save(File) const;
  8816. bool Save(VectorBuffer&) const;
  8817. bool SaveJSON(JSONValue&) const;
  8818. bool SaveXML(File, const String& = "\t");
  8819. bool SaveXML(VectorBuffer&, const String& = "\t");
  8820. bool SaveXML(XMLElement&) const;
  8821. IntVector2 ScreenToElement(const IntVector2&);
  8822. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8823. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8824. void SetAnimationTime(float);
  8825. bool SetAttribute(const String&, const Variant&);
  8826. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8827. void SetAttributeAnimationSpeed(const String&, float);
  8828. void SetAttributeAnimationTime(const String&, float);
  8829. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8830. void SetDeepEnabled(bool);
  8831. void SetEnabledRecursive(bool);
  8832. void SetFixedHeight(int);
  8833. void SetFixedSize(int, int);
  8834. void SetFixedWidth(int);
  8835. void SetInterceptNetworkUpdate(const String&, bool);
  8836. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8837. void SetMaxSize(int, int);
  8838. void SetMinSize(int, int);
  8839. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8840. void SetPosition(int, int);
  8841. void SetSize(int, int);
  8842. bool SetStyle(const String&, XMLFile = null);
  8843. bool SetStyle(const XMLElement&);
  8844. bool SetStyleAuto(XMLFile = null);
  8845. void StepBack();
  8846. void StepForward();
  8847. void UpdateLayout();
  8848. const Variant& GetVar(const StringHash&);
  8849. // Properties:
  8850. bool animationEnabled;
  8851. /* readonly */
  8852. Array<Variant> attributeDefaults;
  8853. /* readonly */
  8854. Array<AttributeInfo> attributeInfos;
  8855. Array<Variant> attributes;
  8856. /* readonly */
  8857. Button backButton;
  8858. bool bringToBack;
  8859. bool bringToFront;
  8860. /* readonly */
  8861. String category;
  8862. /* readonly */
  8863. IntVector2 childOffset;
  8864. /* readonly */
  8865. Array<UIElement> children;
  8866. IntRect clipBorder;
  8867. bool clipChildren;
  8868. /* writeonly */
  8869. Color color;
  8870. /* readonly */
  8871. bool colorGradient;
  8872. Array<Color> colors;
  8873. /* readonly */
  8874. IntRect combinedScreenRect;
  8875. XMLFile defaultStyle;
  8876. /* readonly */
  8877. float derivedOpacity;
  8878. /* readonly */
  8879. uint dragButtonCombo;
  8880. /* readonly */
  8881. int dragButtonCount;
  8882. uint dragDropMode;
  8883. bool editable;
  8884. /* readonly */
  8885. float effectiveScrollStep;
  8886. bool elementEventSender;
  8887. bool enabled;
  8888. /* readonly */
  8889. bool enabledSelf;
  8890. /* readonly */
  8891. bool fixedHeight;
  8892. /* readonly */
  8893. bool fixedSize;
  8894. /* readonly */
  8895. bool fixedWidth;
  8896. bool focus;
  8897. FocusMode focusMode;
  8898. /* readonly */
  8899. Button forwardButton;
  8900. int height;
  8901. HorizontalAlignment horizontalAlignment;
  8902. /* readonly */
  8903. bool hovering;
  8904. int indent;
  8905. int indentSpacing;
  8906. /* readonly */
  8907. int indentWidth;
  8908. bool internal;
  8909. IntRect layoutBorder;
  8910. Vector2 layoutFlexScale;
  8911. LayoutMode layoutMode;
  8912. int layoutSpacing;
  8913. int maxHeight;
  8914. IntVector2 maxSize;
  8915. int maxWidth;
  8916. int minHeight;
  8917. IntVector2 minSize;
  8918. int minWidth;
  8919. String name;
  8920. /* readonly */
  8921. uint numAllChildren;
  8922. /* readonly */
  8923. uint numAttributes;
  8924. /* readonly */
  8925. uint numChildren;
  8926. ObjectAnimation objectAnimation;
  8927. float opacity;
  8928. Orientation orientation;
  8929. UIElement parent;
  8930. IntVector2 position;
  8931. int priority;
  8932. float range;
  8933. /* readonly */
  8934. int refs;
  8935. /* readonly */
  8936. UIElement root;
  8937. /* readonly */
  8938. IntVector2 screenPosition;
  8939. float scrollStep;
  8940. bool selected;
  8941. IntVector2 size;
  8942. /* readonly */
  8943. Slider slider;
  8944. bool sortChildren;
  8945. float stepFactor;
  8946. String style;
  8947. /* readonly */
  8948. Array<String> tags;
  8949. bool temporary;
  8950. TraversalMode traversalMode;
  8951. /* readonly */
  8952. StringHash type;
  8953. /* readonly */
  8954. String typeName;
  8955. bool useDerivedOpacity;
  8956. float value;
  8957. /* readonly */
  8958. VariantMap vars;
  8959. VerticalAlignment verticalAlignment;
  8960. bool visible;
  8961. /* readonly */
  8962. bool visibleEffective;
  8963. /* readonly */
  8964. int weakRefs;
  8965. int width;
  8966. };
  8967. class ScrollView
  8968. {
  8969. // Methods:
  8970. void AddChild(UIElement);
  8971. void AddTag(const String&);
  8972. void AddTags(const String&, int8 = ';');
  8973. void ApplyAttributes();
  8974. void BringToFront();
  8975. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8976. void DisableLayoutUpdate();
  8977. IntVector2 ElementToScreen(const IntVector2&);
  8978. void EnableLayoutUpdate();
  8979. uint FindChild(UIElement) const;
  8980. Variant GetAttribute(const String&) const;
  8981. ValueAnimation GetAttributeAnimation(const String&) const;
  8982. float GetAttributeAnimationSpeed(const String&) const;
  8983. float GetAttributeAnimationTime(const String&) const;
  8984. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8985. Variant GetAttributeDefault(const String&) const;
  8986. UIElement GetChild(const String&, bool = false) const;
  8987. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8988. Array<UIElement> GetChildren(bool = false) const;
  8989. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8990. UIElement GetElementEventSender() const;
  8991. bool GetInterceptNetworkUpdate(const String&) const;
  8992. uint GetNumChildren(bool) const;
  8993. bool HasSubscribedToEvent(Object, const String&);
  8994. bool HasSubscribedToEvent(const String&);
  8995. bool HasTag(const String&) const;
  8996. void InsertChild(uint, UIElement);
  8997. bool IsInside(IntVector2, bool);
  8998. bool IsInsideCombined(IntVector2, bool);
  8999. bool Load(File, bool = false);
  9000. bool Load(VectorBuffer&, bool = false);
  9001. bool LoadChildXML(XMLFile, XMLFile = null);
  9002. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9003. bool LoadJSON(const JSONValue&, bool = false);
  9004. bool LoadXML(File);
  9005. bool LoadXML(VectorBuffer&);
  9006. bool LoadXML(XMLFile, XMLFile);
  9007. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9008. bool LoadXML(const XMLElement&, bool = false);
  9009. void MarkNetworkUpdate() const;
  9010. void Remove();
  9011. void RemoveAllChildren();
  9012. void RemoveAllTags();
  9013. void RemoveAttributeAnimation(const String&);
  9014. void RemoveChild(UIElement, uint = 0);
  9015. void RemoveChild(uint);
  9016. void RemoveInstanceDefault();
  9017. void RemoveObjectAnimation();
  9018. bool RemoveTag(const String&);
  9019. void ResetDeepEnabled();
  9020. void ResetToDefault();
  9021. bool Save(File) const;
  9022. bool Save(VectorBuffer&) const;
  9023. bool SaveJSON(JSONValue&) const;
  9024. bool SaveXML(File, const String& = "\t");
  9025. bool SaveXML(VectorBuffer&, const String& = "\t");
  9026. bool SaveXML(XMLElement&) const;
  9027. IntVector2 ScreenToElement(const IntVector2&);
  9028. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9029. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9030. void SetAnimationTime(float);
  9031. bool SetAttribute(const String&, const Variant&);
  9032. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9033. void SetAttributeAnimationSpeed(const String&, float);
  9034. void SetAttributeAnimationTime(const String&, float);
  9035. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9036. void SetDeepEnabled(bool);
  9037. void SetEnabledRecursive(bool);
  9038. void SetFixedHeight(int);
  9039. void SetFixedSize(int, int);
  9040. void SetFixedWidth(int);
  9041. void SetInterceptNetworkUpdate(const String&, bool);
  9042. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9043. void SetMaxSize(int, int);
  9044. void SetMinSize(int, int);
  9045. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9046. void SetPosition(int, int);
  9047. void SetScrollBarsVisible(bool, bool);
  9048. void SetSize(int, int);
  9049. bool SetStyle(const String&, XMLFile = null);
  9050. bool SetStyle(const XMLElement&);
  9051. bool SetStyleAuto(XMLFile = null);
  9052. void SetViewPosition(int, int);
  9053. void UpdateLayout();
  9054. const Variant& GetVar(const StringHash&);
  9055. // Properties:
  9056. bool animationEnabled;
  9057. /* readonly */
  9058. Array<Variant> attributeDefaults;
  9059. /* readonly */
  9060. Array<AttributeInfo> attributeInfos;
  9061. Array<Variant> attributes;
  9062. bool autoDisableChildren;
  9063. float autoDisableThreshold;
  9064. bool bringToBack;
  9065. bool bringToFront;
  9066. /* readonly */
  9067. String category;
  9068. /* readonly */
  9069. IntVector2 childOffset;
  9070. /* readonly */
  9071. Array<UIElement> children;
  9072. IntRect clipBorder;
  9073. bool clipChildren;
  9074. /* writeonly */
  9075. Color color;
  9076. /* readonly */
  9077. bool colorGradient;
  9078. Array<Color> colors;
  9079. /* readonly */
  9080. IntRect combinedScreenRect;
  9081. UIElement contentElement;
  9082. XMLFile defaultStyle;
  9083. /* readonly */
  9084. float derivedOpacity;
  9085. /* readonly */
  9086. uint dragButtonCombo;
  9087. /* readonly */
  9088. int dragButtonCount;
  9089. uint dragDropMode;
  9090. bool editable;
  9091. bool elementEventSender;
  9092. bool enabled;
  9093. /* readonly */
  9094. bool enabledSelf;
  9095. /* readonly */
  9096. bool fixedHeight;
  9097. /* readonly */
  9098. bool fixedSize;
  9099. /* readonly */
  9100. bool fixedWidth;
  9101. bool focus;
  9102. FocusMode focusMode;
  9103. int height;
  9104. HorizontalAlignment horizontalAlignment;
  9105. /* readonly */
  9106. ScrollBar horizontalScrollBar;
  9107. /* readonly */
  9108. bool hovering;
  9109. int indent;
  9110. int indentSpacing;
  9111. /* readonly */
  9112. int indentWidth;
  9113. bool internal;
  9114. IntRect layoutBorder;
  9115. Vector2 layoutFlexScale;
  9116. LayoutMode layoutMode;
  9117. int layoutSpacing;
  9118. int maxHeight;
  9119. IntVector2 maxSize;
  9120. int maxWidth;
  9121. int minHeight;
  9122. IntVector2 minSize;
  9123. int minWidth;
  9124. String name;
  9125. /* readonly */
  9126. uint numAllChildren;
  9127. /* readonly */
  9128. uint numAttributes;
  9129. /* readonly */
  9130. uint numChildren;
  9131. ObjectAnimation objectAnimation;
  9132. float opacity;
  9133. float pageStep;
  9134. UIElement parent;
  9135. IntVector2 position;
  9136. int priority;
  9137. /* readonly */
  9138. int refs;
  9139. /* readonly */
  9140. UIElement root;
  9141. /* readonly */
  9142. IntVector2 screenPosition;
  9143. bool scrollBarsAutoVisible;
  9144. float scrollDeceleration;
  9145. /* readonly */
  9146. BorderImage scrollPanel;
  9147. float scrollSnapEpsilon;
  9148. float scrollStep;
  9149. bool selected;
  9150. IntVector2 size;
  9151. bool sortChildren;
  9152. String style;
  9153. /* readonly */
  9154. Array<String> tags;
  9155. bool temporary;
  9156. TraversalMode traversalMode;
  9157. /* readonly */
  9158. StringHash type;
  9159. /* readonly */
  9160. String typeName;
  9161. bool useDerivedOpacity;
  9162. /* readonly */
  9163. VariantMap vars;
  9164. VerticalAlignment verticalAlignment;
  9165. /* readonly */
  9166. ScrollBar verticalScrollBar;
  9167. IntVector2 viewPosition;
  9168. bool visible;
  9169. /* readonly */
  9170. bool visibleEffective;
  9171. /* readonly */
  9172. int weakRefs;
  9173. int width;
  9174. };
  9175. class Serializable
  9176. {
  9177. // Methods:
  9178. void ApplyAttributes();
  9179. Variant GetAttribute(const String&) const;
  9180. Variant GetAttributeDefault(const String&) const;
  9181. bool GetInterceptNetworkUpdate(const String&) const;
  9182. bool HasSubscribedToEvent(Object, const String&);
  9183. bool HasSubscribedToEvent(const String&);
  9184. bool Load(File, bool = false);
  9185. bool Load(VectorBuffer&, bool = false);
  9186. bool LoadJSON(const JSONValue&, bool = false);
  9187. bool LoadXML(const XMLElement&, bool = false);
  9188. void MarkNetworkUpdate() const;
  9189. void RemoveInstanceDefault();
  9190. void ResetToDefault();
  9191. bool Save(File) const;
  9192. bool Save(VectorBuffer&) const;
  9193. bool SaveJSON(JSONValue&) const;
  9194. bool SaveXML(XMLElement&) const;
  9195. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9196. bool SetAttribute(const String&, const Variant&);
  9197. void SetInterceptNetworkUpdate(const String&, bool);
  9198. // Properties:
  9199. /* readonly */
  9200. Array<Variant> attributeDefaults;
  9201. /* readonly */
  9202. Array<AttributeInfo> attributeInfos;
  9203. Array<Variant> attributes;
  9204. /* readonly */
  9205. String category;
  9206. /* readonly */
  9207. uint numAttributes;
  9208. /* readonly */
  9209. int refs;
  9210. bool temporary;
  9211. /* readonly */
  9212. StringHash type;
  9213. /* readonly */
  9214. String typeName;
  9215. /* readonly */
  9216. int weakRefs;
  9217. };
  9218. class Serializer
  9219. {
  9220. // Methods:
  9221. uint Write(Array<uint8>);
  9222. bool WriteBool(bool);
  9223. bool WriteBoundingBox(const BoundingBox&);
  9224. bool WriteByte(int8);
  9225. bool WriteColor(const Color&);
  9226. bool WriteDouble(double);
  9227. bool WriteFileID(const String&);
  9228. bool WriteFloat(float);
  9229. bool WriteInt(int);
  9230. bool WriteIntRect(const IntRect&);
  9231. bool WriteIntVector2(const IntVector2&);
  9232. bool WriteLine(const String&);
  9233. bool WriteMatrix3(const Matrix3&);
  9234. bool WriteMatrix3x4(const Matrix3x4&);
  9235. bool WriteMatrix4(const Matrix4&);
  9236. bool WriteNetID(uint);
  9237. bool WritePackedQuaternion(const Quaternion&);
  9238. bool WritePackedVector3(const Vector3&, float);
  9239. bool WriteQuaternion(const Quaternion&);
  9240. bool WriteShort(int16);
  9241. bool WriteString(const String&);
  9242. bool WriteStringHash(const StringHash&);
  9243. bool WriteUByte(uint8);
  9244. bool WriteUInt(uint);
  9245. bool WriteUShort(uint16);
  9246. bool WriteVLE(uint);
  9247. bool WriteVariant(const Variant&);
  9248. bool WriteVariantMap(const VariantMap&);
  9249. bool WriteVector2(const Vector2&);
  9250. bool WriteVector3(const Vector3&);
  9251. bool WriteVector4(const Vector4&);
  9252. bool WriteVectorBuffer(const VectorBuffer&);
  9253. };
  9254. class Skeleton
  9255. {
  9256. // Methods:
  9257. Bone GetBone(const String&) const;
  9258. void Reset();
  9259. // Properties:
  9260. /* readonly */
  9261. Array<Bone> bones;
  9262. /* readonly */
  9263. uint numBones;
  9264. /* readonly */
  9265. Bone rootBone;
  9266. };
  9267. class Skybox
  9268. {
  9269. // Methods:
  9270. void ApplyAttributes();
  9271. void ApplyMaterialList(const String& = String ( ));
  9272. void DrawDebugGeometry(DebugRenderer, bool);
  9273. Variant GetAttribute(const String&) const;
  9274. ValueAnimation GetAttributeAnimation(const String&) const;
  9275. float GetAttributeAnimationSpeed(const String&) const;
  9276. float GetAttributeAnimationTime(const String&) const;
  9277. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9278. Variant GetAttributeDefault(const String&) const;
  9279. bool GetInterceptNetworkUpdate(const String&) const;
  9280. bool HasSubscribedToEvent(Object, const String&);
  9281. bool HasSubscribedToEvent(const String&);
  9282. bool IsInView(Camera) const;
  9283. bool Load(File, bool = false);
  9284. bool Load(VectorBuffer&, bool = false);
  9285. bool LoadJSON(const JSONValue&, bool = false);
  9286. bool LoadXML(const XMLElement&, bool = false);
  9287. void MarkNetworkUpdate() const;
  9288. void Remove();
  9289. void RemoveAttributeAnimation(const String&);
  9290. void RemoveInstanceDefault();
  9291. void RemoveObjectAnimation();
  9292. void ResetToDefault();
  9293. bool Save(File) const;
  9294. bool Save(VectorBuffer&) const;
  9295. bool SaveJSON(JSONValue&) const;
  9296. bool SaveXML(XMLElement&) const;
  9297. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9298. void SetAnimationTime(float);
  9299. bool SetAttribute(const String&, const Variant&);
  9300. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9301. void SetAttributeAnimationSpeed(const String&, float);
  9302. void SetAttributeAnimationTime(const String&, float);
  9303. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9304. void SetInterceptNetworkUpdate(const String&, bool);
  9305. // Properties:
  9306. bool animationEnabled;
  9307. /* readonly */
  9308. Array<Variant> attributeDefaults;
  9309. /* readonly */
  9310. Array<AttributeInfo> attributeInfos;
  9311. Array<Variant> attributes;
  9312. /* readonly */
  9313. BoundingBox boundingBox;
  9314. bool castShadows;
  9315. /* readonly */
  9316. String category;
  9317. float drawDistance;
  9318. bool enabled;
  9319. /* readonly */
  9320. bool enabledEffective;
  9321. /* readonly */
  9322. uint id;
  9323. /* readonly */
  9324. bool inView;
  9325. uint lightMask;
  9326. float lodBias;
  9327. /* writeonly */
  9328. Material material;
  9329. Array<Material> materials;
  9330. uint maxLights;
  9331. Model model;
  9332. /* readonly */
  9333. Node node;
  9334. /* readonly */
  9335. uint numAttributes;
  9336. /* readonly */
  9337. uint numGeometries;
  9338. ObjectAnimation objectAnimation;
  9339. bool occludee;
  9340. bool occluder;
  9341. /* readonly */
  9342. int refs;
  9343. float shadowDistance;
  9344. uint shadowMask;
  9345. bool temporary;
  9346. /* readonly */
  9347. StringHash type;
  9348. /* readonly */
  9349. String typeName;
  9350. uint viewMask;
  9351. /* readonly */
  9352. int weakRefs;
  9353. /* readonly */
  9354. BoundingBox worldBoundingBox;
  9355. /* readonly */
  9356. Zone zone;
  9357. uint zoneMask;
  9358. };
  9359. class Slider
  9360. {
  9361. // Methods:
  9362. void AddChild(UIElement);
  9363. void AddTag(const String&);
  9364. void AddTags(const String&, int8 = ';');
  9365. void ApplyAttributes();
  9366. void BringToFront();
  9367. void ChangeValue(float);
  9368. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9369. void DisableLayoutUpdate();
  9370. IntVector2 ElementToScreen(const IntVector2&);
  9371. void EnableLayoutUpdate();
  9372. uint FindChild(UIElement) const;
  9373. Variant GetAttribute(const String&) const;
  9374. ValueAnimation GetAttributeAnimation(const String&) const;
  9375. float GetAttributeAnimationSpeed(const String&) const;
  9376. float GetAttributeAnimationTime(const String&) const;
  9377. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9378. Variant GetAttributeDefault(const String&) const;
  9379. UIElement GetChild(const String&, bool = false) const;
  9380. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9381. Array<UIElement> GetChildren(bool = false) const;
  9382. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9383. UIElement GetElementEventSender() const;
  9384. bool GetInterceptNetworkUpdate(const String&) const;
  9385. uint GetNumChildren(bool) const;
  9386. bool HasSubscribedToEvent(Object, const String&);
  9387. bool HasSubscribedToEvent(const String&);
  9388. bool HasTag(const String&) const;
  9389. void InsertChild(uint, UIElement);
  9390. bool IsInside(IntVector2, bool);
  9391. bool IsInsideCombined(IntVector2, bool);
  9392. bool Load(File, bool = false);
  9393. bool Load(VectorBuffer&, bool = false);
  9394. bool LoadChildXML(XMLFile, XMLFile = null);
  9395. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9396. bool LoadJSON(const JSONValue&, bool = false);
  9397. bool LoadXML(File);
  9398. bool LoadXML(VectorBuffer&);
  9399. bool LoadXML(XMLFile, XMLFile);
  9400. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9401. bool LoadXML(const XMLElement&, bool = false);
  9402. void MarkNetworkUpdate() const;
  9403. void Remove();
  9404. void RemoveAllChildren();
  9405. void RemoveAllTags();
  9406. void RemoveAttributeAnimation(const String&);
  9407. void RemoveChild(UIElement, uint = 0);
  9408. void RemoveChild(uint);
  9409. void RemoveInstanceDefault();
  9410. void RemoveObjectAnimation();
  9411. bool RemoveTag(const String&);
  9412. void ResetDeepEnabled();
  9413. void ResetToDefault();
  9414. bool Save(File) const;
  9415. bool Save(VectorBuffer&) const;
  9416. bool SaveJSON(JSONValue&) const;
  9417. bool SaveXML(File, const String& = "\t");
  9418. bool SaveXML(VectorBuffer&, const String& = "\t");
  9419. bool SaveXML(XMLElement&) const;
  9420. IntVector2 ScreenToElement(const IntVector2&);
  9421. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9422. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9423. void SetAnimationTime(float);
  9424. bool SetAttribute(const String&, const Variant&);
  9425. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9426. void SetAttributeAnimationSpeed(const String&, float);
  9427. void SetAttributeAnimationTime(const String&, float);
  9428. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9429. void SetDeepEnabled(bool);
  9430. void SetEnabledRecursive(bool);
  9431. void SetFixedHeight(int);
  9432. void SetFixedSize(int, int);
  9433. void SetFixedWidth(int);
  9434. void SetFullImageRect();
  9435. void SetHoverOffset(int, int);
  9436. void SetInterceptNetworkUpdate(const String&, bool);
  9437. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9438. void SetMaxSize(int, int);
  9439. void SetMinSize(int, int);
  9440. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9441. void SetPosition(int, int);
  9442. void SetSize(int, int);
  9443. bool SetStyle(const String&, XMLFile = null);
  9444. bool SetStyle(const XMLElement&);
  9445. bool SetStyleAuto(XMLFile = null);
  9446. void UpdateLayout();
  9447. const Variant& GetVar(const StringHash&);
  9448. // Properties:
  9449. bool animationEnabled;
  9450. /* readonly */
  9451. Array<Variant> attributeDefaults;
  9452. /* readonly */
  9453. Array<AttributeInfo> attributeInfos;
  9454. Array<Variant> attributes;
  9455. BlendMode blendMode;
  9456. IntRect border;
  9457. bool bringToBack;
  9458. bool bringToFront;
  9459. /* readonly */
  9460. String category;
  9461. /* readonly */
  9462. IntVector2 childOffset;
  9463. /* readonly */
  9464. Array<UIElement> children;
  9465. IntRect clipBorder;
  9466. bool clipChildren;
  9467. /* writeonly */
  9468. Color color;
  9469. /* readonly */
  9470. bool colorGradient;
  9471. Array<Color> colors;
  9472. /* readonly */
  9473. IntRect combinedScreenRect;
  9474. XMLFile defaultStyle;
  9475. /* readonly */
  9476. float derivedOpacity;
  9477. /* readonly */
  9478. uint dragButtonCombo;
  9479. /* readonly */
  9480. int dragButtonCount;
  9481. uint dragDropMode;
  9482. bool editable;
  9483. bool elementEventSender;
  9484. bool enabled;
  9485. /* readonly */
  9486. bool enabledSelf;
  9487. /* readonly */
  9488. bool fixedHeight;
  9489. /* readonly */
  9490. bool fixedSize;
  9491. /* readonly */
  9492. bool fixedWidth;
  9493. bool focus;
  9494. FocusMode focusMode;
  9495. int height;
  9496. HorizontalAlignment horizontalAlignment;
  9497. IntVector2 hoverOffset;
  9498. /* readonly */
  9499. bool hovering;
  9500. IntRect imageBorder;
  9501. IntRect imageRect;
  9502. int indent;
  9503. int indentSpacing;
  9504. /* readonly */
  9505. int indentWidth;
  9506. bool internal;
  9507. /* readonly */
  9508. BorderImage knob;
  9509. IntRect layoutBorder;
  9510. Vector2 layoutFlexScale;
  9511. LayoutMode layoutMode;
  9512. int layoutSpacing;
  9513. int maxHeight;
  9514. IntVector2 maxSize;
  9515. int maxWidth;
  9516. int minHeight;
  9517. IntVector2 minSize;
  9518. int minWidth;
  9519. String name;
  9520. /* readonly */
  9521. uint numAllChildren;
  9522. /* readonly */
  9523. uint numAttributes;
  9524. /* readonly */
  9525. uint numChildren;
  9526. ObjectAnimation objectAnimation;
  9527. float opacity;
  9528. Orientation orientation;
  9529. UIElement parent;
  9530. IntVector2 position;
  9531. int priority;
  9532. float range;
  9533. /* readonly */
  9534. int refs;
  9535. float repeatRate;
  9536. /* readonly */
  9537. UIElement root;
  9538. /* readonly */
  9539. IntVector2 screenPosition;
  9540. bool selected;
  9541. IntVector2 size;
  9542. bool sortChildren;
  9543. String style;
  9544. /* readonly */
  9545. Array<String> tags;
  9546. bool temporary;
  9547. Texture texture;
  9548. bool tiled;
  9549. TraversalMode traversalMode;
  9550. /* readonly */
  9551. StringHash type;
  9552. /* readonly */
  9553. String typeName;
  9554. bool useDerivedOpacity;
  9555. float value;
  9556. /* readonly */
  9557. VariantMap vars;
  9558. VerticalAlignment verticalAlignment;
  9559. bool visible;
  9560. /* readonly */
  9561. bool visibleEffective;
  9562. /* readonly */
  9563. int weakRefs;
  9564. int width;
  9565. };
  9566. class SmoothedTransform
  9567. {
  9568. // Methods:
  9569. void ApplyAttributes();
  9570. void DrawDebugGeometry(DebugRenderer, bool);
  9571. Variant GetAttribute(const String&) const;
  9572. ValueAnimation GetAttributeAnimation(const String&) const;
  9573. float GetAttributeAnimationSpeed(const String&) const;
  9574. float GetAttributeAnimationTime(const String&) const;
  9575. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9576. Variant GetAttributeDefault(const String&) const;
  9577. bool GetInterceptNetworkUpdate(const String&) const;
  9578. bool HasSubscribedToEvent(Object, const String&);
  9579. bool HasSubscribedToEvent(const String&);
  9580. bool Load(File, bool = false);
  9581. bool Load(VectorBuffer&, bool = false);
  9582. bool LoadJSON(const JSONValue&, bool = false);
  9583. bool LoadXML(const XMLElement&, bool = false);
  9584. void MarkNetworkUpdate() const;
  9585. void Remove();
  9586. void RemoveAttributeAnimation(const String&);
  9587. void RemoveInstanceDefault();
  9588. void RemoveObjectAnimation();
  9589. void ResetToDefault();
  9590. bool Save(File) const;
  9591. bool Save(VectorBuffer&) const;
  9592. bool SaveJSON(JSONValue&) const;
  9593. bool SaveXML(XMLElement&) const;
  9594. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9595. void SetAnimationTime(float);
  9596. bool SetAttribute(const String&, const Variant&);
  9597. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9598. void SetAttributeAnimationSpeed(const String&, float);
  9599. void SetAttributeAnimationTime(const String&, float);
  9600. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9601. void SetInterceptNetworkUpdate(const String&, bool);
  9602. void Update(float, float);
  9603. // Properties:
  9604. bool animationEnabled;
  9605. /* readonly */
  9606. Array<Variant> attributeDefaults;
  9607. /* readonly */
  9608. Array<AttributeInfo> attributeInfos;
  9609. Array<Variant> attributes;
  9610. /* readonly */
  9611. String category;
  9612. bool enabled;
  9613. /* readonly */
  9614. bool enabledEffective;
  9615. /* readonly */
  9616. uint id;
  9617. /* readonly */
  9618. bool inProgress;
  9619. /* readonly */
  9620. Node node;
  9621. /* readonly */
  9622. uint numAttributes;
  9623. ObjectAnimation objectAnimation;
  9624. /* readonly */
  9625. int refs;
  9626. Vector3 targetPosition;
  9627. Quaternion targetRotation;
  9628. Vector3 targetWorldPosition;
  9629. Quaternion targetWorldRotation;
  9630. bool temporary;
  9631. /* readonly */
  9632. StringHash type;
  9633. /* readonly */
  9634. String typeName;
  9635. /* readonly */
  9636. int weakRefs;
  9637. };
  9638. class Sound
  9639. {
  9640. // Methods:
  9641. bool HasSubscribedToEvent(Object, const String&);
  9642. bool HasSubscribedToEvent(const String&);
  9643. bool Load(File);
  9644. bool Load(VectorBuffer&);
  9645. bool Save(File) const;
  9646. bool Save(VectorBuffer&) const;
  9647. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9648. // Properties:
  9649. /* readonly */
  9650. String category;
  9651. /* readonly */
  9652. bool compressed;
  9653. /* readonly */
  9654. float frequency;
  9655. /* readonly */
  9656. float length;
  9657. bool looped;
  9658. /* readonly */
  9659. uint memoryUse;
  9660. String name;
  9661. /* readonly */
  9662. int refs;
  9663. /* readonly */
  9664. uint sampleSize;
  9665. /* readonly */
  9666. bool sixteenBit;
  9667. /* readonly */
  9668. bool stereo;
  9669. /* readonly */
  9670. StringHash type;
  9671. /* readonly */
  9672. String typeName;
  9673. /* readonly */
  9674. uint useTimer;
  9675. /* readonly */
  9676. int weakRefs;
  9677. };
  9678. class SoundListener
  9679. {
  9680. // Methods:
  9681. void ApplyAttributes();
  9682. void DrawDebugGeometry(DebugRenderer, bool);
  9683. Variant GetAttribute(const String&) const;
  9684. ValueAnimation GetAttributeAnimation(const String&) const;
  9685. float GetAttributeAnimationSpeed(const String&) const;
  9686. float GetAttributeAnimationTime(const String&) const;
  9687. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9688. Variant GetAttributeDefault(const String&) const;
  9689. bool GetInterceptNetworkUpdate(const String&) const;
  9690. bool HasSubscribedToEvent(Object, const String&);
  9691. bool HasSubscribedToEvent(const String&);
  9692. bool Load(File, bool = false);
  9693. bool Load(VectorBuffer&, bool = false);
  9694. bool LoadJSON(const JSONValue&, bool = false);
  9695. bool LoadXML(const XMLElement&, bool = false);
  9696. void MarkNetworkUpdate() const;
  9697. void Remove();
  9698. void RemoveAttributeAnimation(const String&);
  9699. void RemoveInstanceDefault();
  9700. void RemoveObjectAnimation();
  9701. void ResetToDefault();
  9702. bool Save(File) const;
  9703. bool Save(VectorBuffer&) const;
  9704. bool SaveJSON(JSONValue&) const;
  9705. bool SaveXML(XMLElement&) const;
  9706. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9707. void SetAnimationTime(float);
  9708. bool SetAttribute(const String&, const Variant&);
  9709. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9710. void SetAttributeAnimationSpeed(const String&, float);
  9711. void SetAttributeAnimationTime(const String&, float);
  9712. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9713. void SetInterceptNetworkUpdate(const String&, bool);
  9714. // Properties:
  9715. bool animationEnabled;
  9716. /* readonly */
  9717. Array<Variant> attributeDefaults;
  9718. /* readonly */
  9719. Array<AttributeInfo> attributeInfos;
  9720. Array<Variant> attributes;
  9721. /* readonly */
  9722. String category;
  9723. bool enabled;
  9724. /* readonly */
  9725. bool enabledEffective;
  9726. /* readonly */
  9727. uint id;
  9728. /* readonly */
  9729. Node node;
  9730. /* readonly */
  9731. uint numAttributes;
  9732. ObjectAnimation objectAnimation;
  9733. /* readonly */
  9734. int refs;
  9735. bool temporary;
  9736. /* readonly */
  9737. StringHash type;
  9738. /* readonly */
  9739. String typeName;
  9740. /* readonly */
  9741. int weakRefs;
  9742. };
  9743. class SoundSource
  9744. {
  9745. // Methods:
  9746. void ApplyAttributes();
  9747. void DrawDebugGeometry(DebugRenderer, bool);
  9748. Variant GetAttribute(const String&) const;
  9749. ValueAnimation GetAttributeAnimation(const String&) const;
  9750. float GetAttributeAnimationSpeed(const String&) const;
  9751. float GetAttributeAnimationTime(const String&) const;
  9752. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9753. Variant GetAttributeDefault(const String&) const;
  9754. bool GetInterceptNetworkUpdate(const String&) const;
  9755. bool HasSubscribedToEvent(Object, const String&);
  9756. bool HasSubscribedToEvent(const String&);
  9757. bool Load(File, bool = false);
  9758. bool Load(VectorBuffer&, bool = false);
  9759. bool LoadJSON(const JSONValue&, bool = false);
  9760. bool LoadXML(const XMLElement&, bool = false);
  9761. void MarkNetworkUpdate() const;
  9762. void Play(Sound);
  9763. void Play(Sound, float);
  9764. void Play(Sound, float, float);
  9765. void Play(Sound, float, float, float);
  9766. void Remove();
  9767. void RemoveAttributeAnimation(const String&);
  9768. void RemoveInstanceDefault();
  9769. void RemoveObjectAnimation();
  9770. void ResetToDefault();
  9771. bool Save(File) const;
  9772. bool Save(VectorBuffer&) const;
  9773. bool SaveJSON(JSONValue&) const;
  9774. bool SaveXML(XMLElement&) const;
  9775. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9776. void SetAnimationTime(float);
  9777. bool SetAttribute(const String&, const Variant&);
  9778. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9779. void SetAttributeAnimationSpeed(const String&, float);
  9780. void SetAttributeAnimationTime(const String&, float);
  9781. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9782. void SetInterceptNetworkUpdate(const String&, bool);
  9783. void Stop();
  9784. // Properties:
  9785. bool animationEnabled;
  9786. /* readonly */
  9787. float attenuation;
  9788. /* readonly */
  9789. Array<Variant> attributeDefaults;
  9790. /* readonly */
  9791. Array<AttributeInfo> attributeInfos;
  9792. Array<Variant> attributes;
  9793. bool autoRemove;
  9794. /* readonly */
  9795. String category;
  9796. bool enabled;
  9797. /* readonly */
  9798. bool enabledEffective;
  9799. float frequency;
  9800. float gain;
  9801. /* readonly */
  9802. uint id;
  9803. /* readonly */
  9804. Node node;
  9805. /* readonly */
  9806. uint numAttributes;
  9807. ObjectAnimation objectAnimation;
  9808. float panning;
  9809. /* readonly */
  9810. bool playing;
  9811. /* readonly */
  9812. int refs;
  9813. /* readonly */
  9814. Sound sound;
  9815. String soundType;
  9816. bool temporary;
  9817. /* readonly */
  9818. float timePosition;
  9819. /* readonly */
  9820. StringHash type;
  9821. /* readonly */
  9822. String typeName;
  9823. /* readonly */
  9824. int weakRefs;
  9825. };
  9826. class SoundSource3D
  9827. {
  9828. // Methods:
  9829. void ApplyAttributes();
  9830. void DrawDebugGeometry(DebugRenderer, bool);
  9831. Variant GetAttribute(const String&) const;
  9832. ValueAnimation GetAttributeAnimation(const String&) const;
  9833. float GetAttributeAnimationSpeed(const String&) const;
  9834. float GetAttributeAnimationTime(const String&) const;
  9835. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9836. Variant GetAttributeDefault(const String&) const;
  9837. bool GetInterceptNetworkUpdate(const String&) const;
  9838. bool HasSubscribedToEvent(Object, const String&);
  9839. bool HasSubscribedToEvent(const String&);
  9840. bool Load(File, bool = false);
  9841. bool Load(VectorBuffer&, bool = false);
  9842. bool LoadJSON(const JSONValue&, bool = false);
  9843. bool LoadXML(const XMLElement&, bool = false);
  9844. void MarkNetworkUpdate() const;
  9845. void Play(Sound);
  9846. void Play(Sound, float);
  9847. void Play(Sound, float, float);
  9848. void Play(Sound, float, float, float);
  9849. void Remove();
  9850. void RemoveAttributeAnimation(const String&);
  9851. void RemoveInstanceDefault();
  9852. void RemoveObjectAnimation();
  9853. void ResetToDefault();
  9854. bool Save(File) const;
  9855. bool Save(VectorBuffer&) const;
  9856. bool SaveJSON(JSONValue&) const;
  9857. bool SaveXML(XMLElement&) const;
  9858. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9859. void SetAngleAttenuation(float, float);
  9860. void SetAnimationTime(float);
  9861. bool SetAttribute(const String&, const Variant&);
  9862. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9863. void SetAttributeAnimationSpeed(const String&, float);
  9864. void SetAttributeAnimationTime(const String&, float);
  9865. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9866. void SetDistanceAttenuation(float, float, float);
  9867. void SetInterceptNetworkUpdate(const String&, bool);
  9868. void Stop();
  9869. // Properties:
  9870. bool animationEnabled;
  9871. /* readonly */
  9872. float attenuation;
  9873. /* readonly */
  9874. Array<Variant> attributeDefaults;
  9875. /* readonly */
  9876. Array<AttributeInfo> attributeInfos;
  9877. Array<Variant> attributes;
  9878. bool autoRemove;
  9879. /* readonly */
  9880. String category;
  9881. bool enabled;
  9882. /* readonly */
  9883. bool enabledEffective;
  9884. float farDistance;
  9885. float frequency;
  9886. float gain;
  9887. /* readonly */
  9888. uint id;
  9889. float innerAngle;
  9890. float nearDistance;
  9891. /* readonly */
  9892. Node node;
  9893. /* readonly */
  9894. uint numAttributes;
  9895. ObjectAnimation objectAnimation;
  9896. float outerAngle;
  9897. float panning;
  9898. /* readonly */
  9899. bool playing;
  9900. /* readonly */
  9901. int refs;
  9902. float rolloffFactor;
  9903. /* readonly */
  9904. Sound sound;
  9905. String soundType;
  9906. bool temporary;
  9907. /* readonly */
  9908. float timePosition;
  9909. /* readonly */
  9910. StringHash type;
  9911. /* readonly */
  9912. String typeName;
  9913. /* readonly */
  9914. int weakRefs;
  9915. };
  9916. class Sphere
  9917. {
  9918. // Methods:
  9919. void Clear();
  9920. void Define(const BoundingBox&);
  9921. void Define(const Frustum&);
  9922. void Define(const Polyhedron&);
  9923. void Define(const Sphere&);
  9924. void Define(const Vector3&, float);
  9925. bool Defined() const;
  9926. float Distance(const Vector3&) const;
  9927. Intersection IsInside(const BoundingBox&) const;
  9928. Intersection IsInside(const Sphere&) const;
  9929. Intersection IsInside(const Vector3&) const;
  9930. Intersection IsInsideFast(const BoundingBox&) const;
  9931. Intersection IsInsideFast(const Sphere&) const;
  9932. void Merge(const BoundingBox&);
  9933. void Merge(const Frustum&);
  9934. void Merge(const Sphere&);
  9935. void Merge(const Vector3&);
  9936. // Properties:
  9937. Vector3 center;
  9938. float radius;
  9939. };
  9940. class Spline
  9941. {
  9942. // Methods:
  9943. void AddKnot(const Variant&);
  9944. void AddKnot(const Variant&, uint);
  9945. void Clear();
  9946. Variant GetPoint(float);
  9947. void RemoveKnot();
  9948. void RemoveKnot(uint);
  9949. // Properties:
  9950. InterpolationMode interpolationMode;
  9951. Array<Variant> knot;
  9952. Array<Variant> knots;
  9953. };
  9954. class SplinePath
  9955. {
  9956. // Methods:
  9957. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9958. void ApplyAttributes();
  9959. void ClearControlPoints();
  9960. void DrawDebugGeometry(DebugRenderer, bool);
  9961. Variant GetAttribute(const String&) const;
  9962. ValueAnimation GetAttributeAnimation(const String&) const;
  9963. float GetAttributeAnimationSpeed(const String&) const;
  9964. float GetAttributeAnimationTime(const String&) const;
  9965. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9966. Variant GetAttributeDefault(const String&) const;
  9967. bool GetInterceptNetworkUpdate(const String&) const;
  9968. Vector3 GetPoint(float) const;
  9969. Vector3 GetPosition() const;
  9970. bool HasSubscribedToEvent(Object, const String&);
  9971. bool HasSubscribedToEvent(const String&);
  9972. bool Load(File, bool = false);
  9973. bool Load(VectorBuffer&, bool = false);
  9974. bool LoadJSON(const JSONValue&, bool = false);
  9975. bool LoadXML(const XMLElement&, bool = false);
  9976. void MarkNetworkUpdate() const;
  9977. void Move(float);
  9978. void Remove();
  9979. void RemoveAttributeAnimation(const String&);
  9980. void RemoveControlPoint(Node);
  9981. void RemoveInstanceDefault();
  9982. void RemoveObjectAnimation();
  9983. void Reset();
  9984. void ResetToDefault();
  9985. bool Save(File) const;
  9986. bool Save(VectorBuffer&) const;
  9987. bool SaveJSON(JSONValue&) const;
  9988. bool SaveXML(XMLElement&) const;
  9989. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9990. void SetAnimationTime(float);
  9991. bool SetAttribute(const String&, const Variant&);
  9992. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9993. void SetAttributeAnimationSpeed(const String&, float);
  9994. void SetAttributeAnimationTime(const String&, float);
  9995. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9996. void SetInterceptNetworkUpdate(const String&, bool);
  9997. void SetPosition(float);
  9998. // Properties:
  9999. bool animationEnabled;
  10000. /* readonly */
  10001. Array<Variant> attributeDefaults;
  10002. /* readonly */
  10003. Array<AttributeInfo> attributeInfos;
  10004. Array<Variant> attributes;
  10005. /* readonly */
  10006. String category;
  10007. Node controlledNode;
  10008. bool enabled;
  10009. /* readonly */
  10010. bool enabledEffective;
  10011. /* readonly */
  10012. uint id;
  10013. InterpolationMode interpolationMode;
  10014. /* readonly */
  10015. bool isFinished;
  10016. /* readonly */
  10017. float length;
  10018. /* readonly */
  10019. Node node;
  10020. /* readonly */
  10021. uint numAttributes;
  10022. ObjectAnimation objectAnimation;
  10023. /* readonly */
  10024. int refs;
  10025. float speed;
  10026. bool temporary;
  10027. /* readonly */
  10028. StringHash type;
  10029. /* readonly */
  10030. String typeName;
  10031. /* readonly */
  10032. int weakRefs;
  10033. };
  10034. class Sprite
  10035. {
  10036. // Methods:
  10037. void AddChild(UIElement);
  10038. void AddTag(const String&);
  10039. void AddTags(const String&, int8 = ';');
  10040. void ApplyAttributes();
  10041. void BringToFront();
  10042. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10043. uint FindChild(UIElement) const;
  10044. Variant GetAttribute(const String&) const;
  10045. ValueAnimation GetAttributeAnimation(const String&) const;
  10046. float GetAttributeAnimationSpeed(const String&) const;
  10047. float GetAttributeAnimationTime(const String&) const;
  10048. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10049. Variant GetAttributeDefault(const String&) const;
  10050. UIElement GetChild(const String&, bool = false) const;
  10051. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10052. Array<UIElement> GetChildren(bool = false) const;
  10053. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10054. UIElement GetElementEventSender() const;
  10055. bool GetInterceptNetworkUpdate(const String&) const;
  10056. uint GetNumChildren(bool) const;
  10057. bool HasSubscribedToEvent(Object, const String&);
  10058. bool HasSubscribedToEvent(const String&);
  10059. bool HasTag(const String&) const;
  10060. void InsertChild(uint, UIElement);
  10061. bool Load(File, bool = false);
  10062. bool Load(VectorBuffer&, bool = false);
  10063. bool LoadChildXML(XMLFile, XMLFile = null);
  10064. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10065. bool LoadJSON(const JSONValue&, bool = false);
  10066. bool LoadXML(File);
  10067. bool LoadXML(VectorBuffer&);
  10068. bool LoadXML(XMLFile, XMLFile);
  10069. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10070. bool LoadXML(const XMLElement&, bool = false);
  10071. void MarkNetworkUpdate() const;
  10072. void Remove();
  10073. void RemoveAllChildren();
  10074. void RemoveAllTags();
  10075. void RemoveAttributeAnimation(const String&);
  10076. void RemoveChild(UIElement, uint = 0);
  10077. void RemoveChild(uint);
  10078. void RemoveInstanceDefault();
  10079. void RemoveObjectAnimation();
  10080. bool RemoveTag(const String&);
  10081. void ResetToDefault();
  10082. bool Save(File) const;
  10083. bool Save(VectorBuffer&) const;
  10084. bool SaveJSON(JSONValue&) const;
  10085. bool SaveXML(File, const String& = "\t");
  10086. bool SaveXML(VectorBuffer&, const String& = "\t");
  10087. bool SaveXML(XMLElement&) const;
  10088. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10089. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10090. void SetAnimationTime(float);
  10091. bool SetAttribute(const String&, const Variant&);
  10092. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10093. void SetAttributeAnimationSpeed(const String&, float);
  10094. void SetAttributeAnimationTime(const String&, float);
  10095. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10096. void SetFixedHeight(int);
  10097. void SetFixedSize(int, int);
  10098. void SetFixedWidth(int);
  10099. void SetFullImageRect();
  10100. void SetHotSpot(int, int);
  10101. void SetInterceptNetworkUpdate(const String&, bool);
  10102. void SetMaxSize(int, int);
  10103. void SetMinSize(int, int);
  10104. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10105. void SetPosition(float, float);
  10106. void SetScale(float);
  10107. void SetScale(float, float);
  10108. void SetSize(int, int);
  10109. bool SetStyle(const String&, XMLFile = null);
  10110. bool SetStyle(const XMLElement&);
  10111. bool SetStyleAuto(XMLFile = null);
  10112. const Variant& GetVar(const StringHash&);
  10113. // Properties:
  10114. bool animationEnabled;
  10115. /* readonly */
  10116. Array<Variant> attributeDefaults;
  10117. /* readonly */
  10118. Array<AttributeInfo> attributeInfos;
  10119. Array<Variant> attributes;
  10120. BlendMode blendMode;
  10121. bool bringToBack;
  10122. bool bringToFront;
  10123. /* readonly */
  10124. String category;
  10125. /* readonly */
  10126. Array<UIElement> children;
  10127. /* writeonly */
  10128. Color color;
  10129. /* readonly */
  10130. bool colorGradient;
  10131. Array<Color> colors;
  10132. XMLFile defaultStyle;
  10133. /* readonly */
  10134. float derivedOpacity;
  10135. /* readonly */
  10136. uint dragButtonCombo;
  10137. /* readonly */
  10138. int dragButtonCount;
  10139. bool elementEventSender;
  10140. int height;
  10141. HorizontalAlignment horizontalAlignment;
  10142. IntVector2 hotSpot;
  10143. IntRect imageRect;
  10144. String name;
  10145. /* readonly */
  10146. uint numAllChildren;
  10147. /* readonly */
  10148. uint numAttributes;
  10149. /* readonly */
  10150. uint numChildren;
  10151. ObjectAnimation objectAnimation;
  10152. float opacity;
  10153. UIElement parent;
  10154. Vector2 position;
  10155. int priority;
  10156. /* readonly */
  10157. int refs;
  10158. /* readonly */
  10159. UIElement root;
  10160. float rotation;
  10161. Vector2 scale;
  10162. IntVector2 size;
  10163. bool sortChildren;
  10164. String style;
  10165. /* readonly */
  10166. Array<String> tags;
  10167. bool temporary;
  10168. Texture texture;
  10169. /* readonly */
  10170. StringHash type;
  10171. /* readonly */
  10172. String typeName;
  10173. bool useDerivedOpacity;
  10174. /* readonly */
  10175. VariantMap vars;
  10176. VerticalAlignment verticalAlignment;
  10177. bool visible;
  10178. /* readonly */
  10179. bool visibleEffective;
  10180. /* readonly */
  10181. int weakRefs;
  10182. int width;
  10183. };
  10184. class Sprite2D
  10185. {
  10186. // Methods:
  10187. bool HasSubscribedToEvent(Object, const String&);
  10188. bool HasSubscribedToEvent(const String&);
  10189. bool Load(File);
  10190. bool Load(VectorBuffer&);
  10191. bool Save(File) const;
  10192. bool Save(VectorBuffer&) const;
  10193. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10194. // Properties:
  10195. /* readonly */
  10196. String category;
  10197. Vector2 hotSpot;
  10198. /* readonly */
  10199. uint memoryUse;
  10200. String name;
  10201. IntVector2 offset;
  10202. IntRect rectangle;
  10203. /* readonly */
  10204. int refs;
  10205. Texture2D texture;
  10206. /* readonly */
  10207. StringHash type;
  10208. /* readonly */
  10209. String typeName;
  10210. /* readonly */
  10211. uint useTimer;
  10212. /* readonly */
  10213. int weakRefs;
  10214. };
  10215. class SpriteSheet2D
  10216. {
  10217. // Methods:
  10218. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10219. Sprite2D GetSprite(const String&);
  10220. bool HasSubscribedToEvent(Object, const String&);
  10221. bool HasSubscribedToEvent(const String&);
  10222. bool Load(File);
  10223. bool Load(VectorBuffer&);
  10224. bool Save(File) const;
  10225. bool Save(VectorBuffer&) const;
  10226. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10227. // Properties:
  10228. /* readonly */
  10229. String category;
  10230. /* readonly */
  10231. uint memoryUse;
  10232. String name;
  10233. /* readonly */
  10234. int refs;
  10235. /* readonly */
  10236. Texture2D texture;
  10237. /* readonly */
  10238. StringHash type;
  10239. /* readonly */
  10240. String typeName;
  10241. /* readonly */
  10242. uint useTimer;
  10243. /* readonly */
  10244. int weakRefs;
  10245. };
  10246. class StaticModel
  10247. {
  10248. // Methods:
  10249. void ApplyAttributes();
  10250. void ApplyMaterialList(const String& = String ( ));
  10251. void DrawDebugGeometry(DebugRenderer, bool);
  10252. Variant GetAttribute(const String&) const;
  10253. ValueAnimation GetAttributeAnimation(const String&) const;
  10254. float GetAttributeAnimationSpeed(const String&) const;
  10255. float GetAttributeAnimationTime(const String&) const;
  10256. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10257. Variant GetAttributeDefault(const String&) const;
  10258. bool GetInterceptNetworkUpdate(const String&) const;
  10259. bool HasSubscribedToEvent(Object, const String&);
  10260. bool HasSubscribedToEvent(const String&);
  10261. bool IsInView(Camera) const;
  10262. bool IsInside(const Vector3&) const;
  10263. bool IsInsideLocal(const Vector3&) const;
  10264. bool Load(File, bool = false);
  10265. bool Load(VectorBuffer&, bool = false);
  10266. bool LoadJSON(const JSONValue&, bool = false);
  10267. bool LoadXML(const XMLElement&, bool = false);
  10268. void MarkNetworkUpdate() const;
  10269. void Remove();
  10270. void RemoveAttributeAnimation(const String&);
  10271. void RemoveInstanceDefault();
  10272. void RemoveObjectAnimation();
  10273. void ResetToDefault();
  10274. bool Save(File) const;
  10275. bool Save(VectorBuffer&) const;
  10276. bool SaveJSON(JSONValue&) const;
  10277. bool SaveXML(XMLElement&) const;
  10278. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10279. void SetAnimationTime(float);
  10280. bool SetAttribute(const String&, const Variant&);
  10281. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10282. void SetAttributeAnimationSpeed(const String&, float);
  10283. void SetAttributeAnimationTime(const String&, float);
  10284. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10285. void SetInterceptNetworkUpdate(const String&, bool);
  10286. // Properties:
  10287. bool animationEnabled;
  10288. /* readonly */
  10289. Array<Variant> attributeDefaults;
  10290. /* readonly */
  10291. Array<AttributeInfo> attributeInfos;
  10292. Array<Variant> attributes;
  10293. /* readonly */
  10294. BoundingBox boundingBox;
  10295. bool castShadows;
  10296. /* readonly */
  10297. String category;
  10298. float drawDistance;
  10299. bool enabled;
  10300. /* readonly */
  10301. bool enabledEffective;
  10302. /* readonly */
  10303. uint id;
  10304. /* readonly */
  10305. bool inView;
  10306. uint lightMask;
  10307. float lodBias;
  10308. /* writeonly */
  10309. Material material;
  10310. Array<Material> materials;
  10311. uint maxLights;
  10312. Model model;
  10313. /* readonly */
  10314. Node node;
  10315. /* readonly */
  10316. uint numAttributes;
  10317. /* readonly */
  10318. uint numGeometries;
  10319. ObjectAnimation objectAnimation;
  10320. bool occludee;
  10321. bool occluder;
  10322. uint occlusionLodLevel;
  10323. /* readonly */
  10324. int refs;
  10325. float shadowDistance;
  10326. uint shadowMask;
  10327. bool temporary;
  10328. /* readonly */
  10329. StringHash type;
  10330. /* readonly */
  10331. String typeName;
  10332. uint viewMask;
  10333. /* readonly */
  10334. int weakRefs;
  10335. /* readonly */
  10336. BoundingBox worldBoundingBox;
  10337. uint zoneMask;
  10338. };
  10339. class StaticModelGroup
  10340. {
  10341. // Methods:
  10342. void AddInstanceNode(Node);
  10343. void ApplyAttributes();
  10344. void ApplyMaterialList(const String& = String ( ));
  10345. void DrawDebugGeometry(DebugRenderer, bool);
  10346. Variant GetAttribute(const String&) const;
  10347. ValueAnimation GetAttributeAnimation(const String&) const;
  10348. float GetAttributeAnimationSpeed(const String&) const;
  10349. float GetAttributeAnimationTime(const String&) const;
  10350. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10351. Variant GetAttributeDefault(const String&) const;
  10352. bool GetInterceptNetworkUpdate(const String&) const;
  10353. bool HasSubscribedToEvent(Object, const String&);
  10354. bool HasSubscribedToEvent(const String&);
  10355. bool IsInView(Camera) const;
  10356. bool Load(File, bool = false);
  10357. bool Load(VectorBuffer&, bool = false);
  10358. bool LoadJSON(const JSONValue&, bool = false);
  10359. bool LoadXML(const XMLElement&, bool = false);
  10360. void MarkNetworkUpdate() const;
  10361. void Remove();
  10362. void RemoveAllInstanceNodes();
  10363. void RemoveAttributeAnimation(const String&);
  10364. void RemoveInstanceDefault();
  10365. void RemoveInstanceNode(Node);
  10366. void RemoveObjectAnimation();
  10367. void ResetToDefault();
  10368. bool Save(File) const;
  10369. bool Save(VectorBuffer&) const;
  10370. bool SaveJSON(JSONValue&) const;
  10371. bool SaveXML(XMLElement&) const;
  10372. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10373. void SetAnimationTime(float);
  10374. bool SetAttribute(const String&, const Variant&);
  10375. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10376. void SetAttributeAnimationSpeed(const String&, float);
  10377. void SetAttributeAnimationTime(const String&, float);
  10378. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10379. void SetInterceptNetworkUpdate(const String&, bool);
  10380. // Properties:
  10381. bool animationEnabled;
  10382. /* readonly */
  10383. Array<Variant> attributeDefaults;
  10384. /* readonly */
  10385. Array<AttributeInfo> attributeInfos;
  10386. Array<Variant> attributes;
  10387. /* readonly */
  10388. BoundingBox boundingBox;
  10389. bool castShadows;
  10390. /* readonly */
  10391. String category;
  10392. float drawDistance;
  10393. bool enabled;
  10394. /* readonly */
  10395. bool enabledEffective;
  10396. /* readonly */
  10397. uint id;
  10398. /* readonly */
  10399. bool inView;
  10400. /* readonly */
  10401. Array<Node> instanceNodes;
  10402. uint lightMask;
  10403. float lodBias;
  10404. /* writeonly */
  10405. Material material;
  10406. Array<Material> materials;
  10407. uint maxLights;
  10408. Model model;
  10409. /* readonly */
  10410. Node node;
  10411. /* readonly */
  10412. uint numAttributes;
  10413. /* readonly */
  10414. uint numGeometries;
  10415. /* readonly */
  10416. uint numInstanceNodes;
  10417. ObjectAnimation objectAnimation;
  10418. bool occludee;
  10419. bool occluder;
  10420. uint occlusionLodLevel;
  10421. /* readonly */
  10422. int refs;
  10423. float shadowDistance;
  10424. uint shadowMask;
  10425. bool temporary;
  10426. /* readonly */
  10427. StringHash type;
  10428. /* readonly */
  10429. String typeName;
  10430. uint viewMask;
  10431. /* readonly */
  10432. int weakRefs;
  10433. /* readonly */
  10434. BoundingBox worldBoundingBox;
  10435. /* readonly */
  10436. Zone zone;
  10437. uint zoneMask;
  10438. };
  10439. class StaticSprite2D
  10440. {
  10441. // Methods:
  10442. void ApplyAttributes();
  10443. void DrawDebugGeometry(DebugRenderer, bool);
  10444. Variant GetAttribute(const String&) const;
  10445. ValueAnimation GetAttributeAnimation(const String&) const;
  10446. float GetAttributeAnimationSpeed(const String&) const;
  10447. float GetAttributeAnimationTime(const String&) const;
  10448. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10449. Variant GetAttributeDefault(const String&) const;
  10450. bool GetInterceptNetworkUpdate(const String&) const;
  10451. bool HasSubscribedToEvent(Object, const String&);
  10452. bool HasSubscribedToEvent(const String&);
  10453. bool IsInView(Camera) const;
  10454. bool Load(File, bool = false);
  10455. bool Load(VectorBuffer&, bool = false);
  10456. bool LoadJSON(const JSONValue&, bool = false);
  10457. bool LoadXML(const XMLElement&, bool = false);
  10458. void MarkNetworkUpdate() const;
  10459. void Remove();
  10460. void RemoveAttributeAnimation(const String&);
  10461. void RemoveInstanceDefault();
  10462. void RemoveObjectAnimation();
  10463. void ResetToDefault();
  10464. bool Save(File) const;
  10465. bool Save(VectorBuffer&) const;
  10466. bool SaveJSON(JSONValue&) const;
  10467. bool SaveXML(XMLElement&) const;
  10468. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10469. void SetAnimationTime(float);
  10470. bool SetAttribute(const String&, const Variant&);
  10471. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10472. void SetAttributeAnimationSpeed(const String&, float);
  10473. void SetAttributeAnimationTime(const String&, float);
  10474. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10475. void SetFlip(bool, bool);
  10476. void SetInterceptNetworkUpdate(const String&, bool);
  10477. // Properties:
  10478. float alpha;
  10479. bool animationEnabled;
  10480. /* readonly */
  10481. Array<Variant> attributeDefaults;
  10482. /* readonly */
  10483. Array<AttributeInfo> attributeInfos;
  10484. Array<Variant> attributes;
  10485. BlendMode blendMode;
  10486. /* readonly */
  10487. BoundingBox boundingBox;
  10488. bool castShadows;
  10489. /* readonly */
  10490. String category;
  10491. Color color;
  10492. Material customMaterial;
  10493. float drawDistance;
  10494. bool enabled;
  10495. /* readonly */
  10496. bool enabledEffective;
  10497. bool flipX;
  10498. bool flipY;
  10499. Vector2 hotSpot;
  10500. /* readonly */
  10501. uint id;
  10502. /* readonly */
  10503. bool inView;
  10504. int layer;
  10505. uint lightMask;
  10506. float lodBias;
  10507. uint maxLights;
  10508. /* readonly */
  10509. Node node;
  10510. /* readonly */
  10511. uint numAttributes;
  10512. ObjectAnimation objectAnimation;
  10513. bool occludee;
  10514. bool occluder;
  10515. int orderInLayer;
  10516. /* readonly */
  10517. int refs;
  10518. float shadowDistance;
  10519. uint shadowMask;
  10520. Sprite2D sprite;
  10521. bool temporary;
  10522. /* readonly */
  10523. StringHash type;
  10524. /* readonly */
  10525. String typeName;
  10526. bool useHotSpot;
  10527. uint viewMask;
  10528. /* readonly */
  10529. int weakRefs;
  10530. /* readonly */
  10531. BoundingBox worldBoundingBox;
  10532. uint zoneMask;
  10533. };
  10534. class String
  10535. {
  10536. // Methods:
  10537. void AppendUTF8(uint);
  10538. uint AtUTF8(uint) const;
  10539. uint ByteOffsetUTF8(uint) const;
  10540. void Clear();
  10541. int Compare(const String&, bool = true) const;
  10542. bool Contains(const String&, bool = true) const;
  10543. bool Contains(uint8, bool = true) const;
  10544. bool EndsWith(const String&, bool = true) const;
  10545. uint Find(const String&, uint = 0, bool = true) const;
  10546. uint Find(uint8, uint = 0, bool = true) const;
  10547. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10548. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10549. void Join(Array<String>&, const String&);
  10550. uint NextUTF8Char(uint&) const;
  10551. void Replace(const String&, const String&, bool = true);
  10552. void Replace(uint8, uint8, bool = true);
  10553. void ReplaceUTF8(uint, uint);
  10554. String Replaced(const String&, const String&, bool = true) const;
  10555. String Replaced(uint8, uint8, bool = true) const;
  10556. void Resize(uint);
  10557. void SetUTF8FromLatin1(const String&);
  10558. Array<String> Split(uint8, bool = false) const;
  10559. bool StartsWith(const String&, bool = true) const;
  10560. String Substring(uint) const;
  10561. String Substring(uint, uint) const;
  10562. String SubstringUTF8(uint) const;
  10563. String SubstringUTF8(uint, uint) const;
  10564. bool ToBool() const;
  10565. Color ToColor() const;
  10566. double ToDouble() const;
  10567. float ToFloat() const;
  10568. int ToInt() const;
  10569. IntRect ToIntRect() const;
  10570. IntVector2 ToIntVector2() const;
  10571. String ToLower() const;
  10572. Matrix3 ToMatrix3() const;
  10573. Matrix3x4 ToMatrix3x4() const;
  10574. Matrix4 ToMatrix4() const;
  10575. Quaternion ToQuaternion() const;
  10576. uint ToUInt() const;
  10577. String ToUpper() const;
  10578. Vector2 ToVector2() const;
  10579. Vector3 ToVector3() const;
  10580. Vector4 ToVector4(bool = false) const;
  10581. Variant ToVectorVariant() const;
  10582. String Trimmed() const;
  10583. // Properties:
  10584. /* readonly */
  10585. bool empty;
  10586. /* readonly */
  10587. uint length;
  10588. /* readonly */
  10589. uint utf8Length;
  10590. };
  10591. class StringHash
  10592. {
  10593. // Methods:
  10594. String ToString() const;
  10595. // Properties:
  10596. /* readonly */
  10597. uint value;
  10598. };
  10599. class Technique
  10600. {
  10601. // Methods:
  10602. Pass CreatePass(const String&);
  10603. Pass GetPass(const String&);
  10604. Pass GetSupportedPass(const String&);
  10605. bool HasPass(const String&) const;
  10606. bool HasSubscribedToEvent(Object, const String&);
  10607. bool HasSubscribedToEvent(const String&);
  10608. bool Load(File);
  10609. bool Load(VectorBuffer&);
  10610. void RemovePass(const String&);
  10611. bool Save(File) const;
  10612. bool Save(VectorBuffer&) const;
  10613. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10614. // Properties:
  10615. /* readonly */
  10616. String category;
  10617. bool desktop;
  10618. /* readonly */
  10619. uint memoryUse;
  10620. String name;
  10621. /* readonly */
  10622. uint numPasses;
  10623. /* readonly */
  10624. Array<String> passNames;
  10625. /* readonly */
  10626. Array<Pass> passes;
  10627. /* readonly */
  10628. int refs;
  10629. /* readonly */
  10630. bool supported;
  10631. /* readonly */
  10632. StringHash type;
  10633. /* readonly */
  10634. String typeName;
  10635. /* readonly */
  10636. uint useTimer;
  10637. /* readonly */
  10638. int weakRefs;
  10639. };
  10640. class TechniqueEntry
  10641. {
  10642. // Properties:
  10643. float lodDistance;
  10644. int qualityLevel;
  10645. Technique technique;
  10646. };
  10647. class Terrain
  10648. {
  10649. // Methods:
  10650. void ApplyAttributes();
  10651. void ApplyHeightMap();
  10652. void DrawDebugGeometry(DebugRenderer, bool);
  10653. Variant GetAttribute(const String&) const;
  10654. ValueAnimation GetAttributeAnimation(const String&) const;
  10655. float GetAttributeAnimationSpeed(const String&) const;
  10656. float GetAttributeAnimationTime(const String&) const;
  10657. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10658. Variant GetAttributeDefault(const String&) const;
  10659. float GetHeight(const Vector3&) const;
  10660. bool GetInterceptNetworkUpdate(const String&) const;
  10661. Vector3 GetNormal(const Vector3&) const;
  10662. TerrainPatch GetPatch(int, int) const;
  10663. bool HasSubscribedToEvent(Object, const String&);
  10664. bool HasSubscribedToEvent(const String&);
  10665. bool Load(File, bool = false);
  10666. bool Load(VectorBuffer&, bool = false);
  10667. bool LoadJSON(const JSONValue&, bool = false);
  10668. bool LoadXML(const XMLElement&, bool = false);
  10669. void MarkNetworkUpdate() const;
  10670. void Remove();
  10671. void RemoveAttributeAnimation(const String&);
  10672. void RemoveInstanceDefault();
  10673. void RemoveObjectAnimation();
  10674. void ResetToDefault();
  10675. bool Save(File) const;
  10676. bool Save(VectorBuffer&) const;
  10677. bool SaveJSON(JSONValue&) const;
  10678. bool SaveXML(XMLElement&) const;
  10679. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10680. void SetAnimationTime(float);
  10681. bool SetAttribute(const String&, const Variant&);
  10682. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10683. void SetAttributeAnimationSpeed(const String&, float);
  10684. void SetAttributeAnimationTime(const String&, float);
  10685. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10686. void SetInterceptNetworkUpdate(const String&, bool);
  10687. IntVector2 WorldToHeightMap(const Vector3&) const;
  10688. // Properties:
  10689. bool animationEnabled;
  10690. /* readonly */
  10691. Array<Variant> attributeDefaults;
  10692. /* readonly */
  10693. Array<AttributeInfo> attributeInfos;
  10694. Array<Variant> attributes;
  10695. bool castShadows;
  10696. /* readonly */
  10697. String category;
  10698. float drawDistance;
  10699. bool enabled;
  10700. /* readonly */
  10701. bool enabledEffective;
  10702. Image heightMap;
  10703. /* readonly */
  10704. uint id;
  10705. uint lightMask;
  10706. float lodBias;
  10707. Material material;
  10708. uint maxLights;
  10709. uint maxLodLevels;
  10710. /* readonly */
  10711. Node node;
  10712. /* readonly */
  10713. uint numAttributes;
  10714. /* readonly */
  10715. IntVector2 numPatches;
  10716. /* readonly */
  10717. IntVector2 numVertices;
  10718. ObjectAnimation objectAnimation;
  10719. bool occludee;
  10720. bool occluder;
  10721. uint occlusionLodLevel;
  10722. int patchSize;
  10723. /* readonly */
  10724. Array<TerrainPatch> patches;
  10725. /* readonly */
  10726. int refs;
  10727. float shadowDistance;
  10728. uint shadowMask;
  10729. bool smoothing;
  10730. Vector3 spacing;
  10731. bool temporary;
  10732. /* readonly */
  10733. StringHash type;
  10734. /* readonly */
  10735. String typeName;
  10736. uint viewMask;
  10737. /* readonly */
  10738. int weakRefs;
  10739. uint zoneMask;
  10740. };
  10741. class TerrainPatch
  10742. {
  10743. // Methods:
  10744. void ApplyAttributes();
  10745. void DrawDebugGeometry(DebugRenderer, bool);
  10746. Variant GetAttribute(const String&) const;
  10747. ValueAnimation GetAttributeAnimation(const String&) const;
  10748. float GetAttributeAnimationSpeed(const String&) const;
  10749. float GetAttributeAnimationTime(const String&) const;
  10750. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10751. Variant GetAttributeDefault(const String&) const;
  10752. bool GetInterceptNetworkUpdate(const String&) const;
  10753. bool HasSubscribedToEvent(Object, const String&);
  10754. bool HasSubscribedToEvent(const String&);
  10755. bool IsInView(Camera) const;
  10756. bool Load(File, bool = false);
  10757. bool Load(VectorBuffer&, bool = false);
  10758. bool LoadJSON(const JSONValue&, bool = false);
  10759. bool LoadXML(const XMLElement&, bool = false);
  10760. void MarkNetworkUpdate() const;
  10761. void Remove();
  10762. void RemoveAttributeAnimation(const String&);
  10763. void RemoveInstanceDefault();
  10764. void RemoveObjectAnimation();
  10765. void ResetToDefault();
  10766. bool Save(File) const;
  10767. bool Save(VectorBuffer&) const;
  10768. bool SaveJSON(JSONValue&) const;
  10769. bool SaveXML(XMLElement&) const;
  10770. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10771. void SetAnimationTime(float);
  10772. bool SetAttribute(const String&, const Variant&);
  10773. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10774. void SetAttributeAnimationSpeed(const String&, float);
  10775. void SetAttributeAnimationTime(const String&, float);
  10776. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10777. void SetInterceptNetworkUpdate(const String&, bool);
  10778. // Properties:
  10779. bool animationEnabled;
  10780. /* readonly */
  10781. Array<Variant> attributeDefaults;
  10782. /* readonly */
  10783. Array<AttributeInfo> attributeInfos;
  10784. Array<Variant> attributes;
  10785. /* readonly */
  10786. BoundingBox boundingBox;
  10787. bool castShadows;
  10788. /* readonly */
  10789. String category;
  10790. float drawDistance;
  10791. bool enabled;
  10792. /* readonly */
  10793. bool enabledEffective;
  10794. /* readonly */
  10795. uint id;
  10796. /* readonly */
  10797. bool inView;
  10798. uint lightMask;
  10799. float lodBias;
  10800. uint maxLights;
  10801. /* readonly */
  10802. Node node;
  10803. /* readonly */
  10804. uint numAttributes;
  10805. ObjectAnimation objectAnimation;
  10806. bool occludee;
  10807. bool occluder;
  10808. /* readonly */
  10809. int refs;
  10810. float shadowDistance;
  10811. uint shadowMask;
  10812. bool temporary;
  10813. /* readonly */
  10814. StringHash type;
  10815. /* readonly */
  10816. String typeName;
  10817. uint viewMask;
  10818. /* readonly */
  10819. int weakRefs;
  10820. /* readonly */
  10821. BoundingBox worldBoundingBox;
  10822. uint zoneMask;
  10823. };
  10824. class Text
  10825. {
  10826. // Methods:
  10827. void AddChild(UIElement);
  10828. void AddTag(const String&);
  10829. void AddTags(const String&, int8 = ';');
  10830. void ApplyAttributes();
  10831. void BringToFront();
  10832. void ClearSelection();
  10833. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10834. void DisableLayoutUpdate();
  10835. IntVector2 ElementToScreen(const IntVector2&);
  10836. void EnableLayoutUpdate();
  10837. uint FindChild(UIElement) const;
  10838. Variant GetAttribute(const String&) const;
  10839. ValueAnimation GetAttributeAnimation(const String&) const;
  10840. float GetAttributeAnimationSpeed(const String&) const;
  10841. float GetAttributeAnimationTime(const String&) const;
  10842. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10843. Variant GetAttributeDefault(const String&) const;
  10844. UIElement GetChild(const String&, bool = false) const;
  10845. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10846. Array<UIElement> GetChildren(bool = false) const;
  10847. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10848. UIElement GetElementEventSender() const;
  10849. bool GetInterceptNetworkUpdate(const String&) const;
  10850. uint GetNumChildren(bool) const;
  10851. bool HasSubscribedToEvent(Object, const String&);
  10852. bool HasSubscribedToEvent(const String&);
  10853. bool HasTag(const String&) const;
  10854. void InsertChild(uint, UIElement);
  10855. bool IsInside(IntVector2, bool);
  10856. bool IsInsideCombined(IntVector2, bool);
  10857. bool Load(File, bool = false);
  10858. bool Load(VectorBuffer&, bool = false);
  10859. bool LoadChildXML(XMLFile, XMLFile = null);
  10860. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10861. bool LoadJSON(const JSONValue&, bool = false);
  10862. bool LoadXML(File);
  10863. bool LoadXML(VectorBuffer&);
  10864. bool LoadXML(XMLFile, XMLFile);
  10865. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10866. bool LoadXML(const XMLElement&, bool = false);
  10867. void MarkNetworkUpdate() const;
  10868. void Remove();
  10869. void RemoveAllChildren();
  10870. void RemoveAllTags();
  10871. void RemoveAttributeAnimation(const String&);
  10872. void RemoveChild(UIElement, uint = 0);
  10873. void RemoveChild(uint);
  10874. void RemoveInstanceDefault();
  10875. void RemoveObjectAnimation();
  10876. bool RemoveTag(const String&);
  10877. void ResetDeepEnabled();
  10878. void ResetToDefault();
  10879. bool Save(File) const;
  10880. bool Save(VectorBuffer&) const;
  10881. bool SaveJSON(JSONValue&) const;
  10882. bool SaveXML(File, const String& = "\t");
  10883. bool SaveXML(VectorBuffer&, const String& = "\t");
  10884. bool SaveXML(XMLElement&) const;
  10885. IntVector2 ScreenToElement(const IntVector2&);
  10886. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10887. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10888. void SetAnimationTime(float);
  10889. bool SetAttribute(const String&, const Variant&);
  10890. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10891. void SetAttributeAnimationSpeed(const String&, float);
  10892. void SetAttributeAnimationTime(const String&, float);
  10893. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10894. void SetDeepEnabled(bool);
  10895. void SetEnabledRecursive(bool);
  10896. void SetFixedHeight(int);
  10897. void SetFixedSize(int, int);
  10898. void SetFixedWidth(int);
  10899. bool SetFont(Font, int);
  10900. bool SetFont(const String&, int);
  10901. void SetInterceptNetworkUpdate(const String&, bool);
  10902. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10903. void SetMaxSize(int, int);
  10904. void SetMinSize(int, int);
  10905. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10906. void SetPosition(int, int);
  10907. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10908. void SetSize(int, int);
  10909. bool SetStyle(const String&, XMLFile = null);
  10910. bool SetStyle(const XMLElement&);
  10911. bool SetStyleAuto(XMLFile = null);
  10912. void UpdateLayout();
  10913. const Variant& GetVar(const StringHash&);
  10914. // Properties:
  10915. bool animationEnabled;
  10916. /* readonly */
  10917. Array<Variant> attributeDefaults;
  10918. /* readonly */
  10919. Array<AttributeInfo> attributeInfos;
  10920. Array<Variant> attributes;
  10921. bool autoLocalizable;
  10922. bool bringToBack;
  10923. bool bringToFront;
  10924. /* readonly */
  10925. String category;
  10926. /* readonly */
  10927. Array<IntVector2> charPositions;
  10928. /* readonly */
  10929. Array<IntVector2> charSizes;
  10930. /* readonly */
  10931. IntVector2 childOffset;
  10932. /* readonly */
  10933. Array<UIElement> children;
  10934. IntRect clipBorder;
  10935. bool clipChildren;
  10936. /* writeonly */
  10937. Color color;
  10938. /* readonly */
  10939. bool colorGradient;
  10940. Array<Color> colors;
  10941. /* readonly */
  10942. IntRect combinedScreenRect;
  10943. XMLFile defaultStyle;
  10944. /* readonly */
  10945. float derivedOpacity;
  10946. /* readonly */
  10947. uint dragButtonCombo;
  10948. /* readonly */
  10949. int dragButtonCount;
  10950. uint dragDropMode;
  10951. bool editable;
  10952. Color effectColor;
  10953. bool elementEventSender;
  10954. bool enabled;
  10955. /* readonly */
  10956. bool enabledSelf;
  10957. /* readonly */
  10958. bool fixedHeight;
  10959. /* readonly */
  10960. bool fixedSize;
  10961. /* readonly */
  10962. bool fixedWidth;
  10963. bool focus;
  10964. FocusMode focusMode;
  10965. /* readonly */
  10966. Font font;
  10967. /* readonly */
  10968. int fontSize;
  10969. int height;
  10970. HorizontalAlignment horizontalAlignment;
  10971. Color hoverColor;
  10972. /* readonly */
  10973. bool hovering;
  10974. int indent;
  10975. int indentSpacing;
  10976. /* readonly */
  10977. int indentWidth;
  10978. bool internal;
  10979. IntRect layoutBorder;
  10980. Vector2 layoutFlexScale;
  10981. LayoutMode layoutMode;
  10982. int layoutSpacing;
  10983. int maxHeight;
  10984. IntVector2 maxSize;
  10985. int maxWidth;
  10986. int minHeight;
  10987. IntVector2 minSize;
  10988. int minWidth;
  10989. String name;
  10990. /* readonly */
  10991. uint numAllChildren;
  10992. /* readonly */
  10993. uint numAttributes;
  10994. /* readonly */
  10995. uint numChars;
  10996. /* readonly */
  10997. uint numChildren;
  10998. /* readonly */
  10999. uint numRows;
  11000. ObjectAnimation objectAnimation;
  11001. float opacity;
  11002. UIElement parent;
  11003. IntVector2 position;
  11004. int priority;
  11005. /* readonly */
  11006. int refs;
  11007. /* readonly */
  11008. UIElement root;
  11009. /* readonly */
  11010. int rowHeight;
  11011. float rowSpacing;
  11012. /* readonly */
  11013. Array<int> rowWidths;
  11014. /* readonly */
  11015. IntVector2 screenPosition;
  11016. bool selected;
  11017. Color selectionColor;
  11018. /* readonly */
  11019. uint selectionLength;
  11020. /* readonly */
  11021. uint selectionStart;
  11022. IntVector2 size;
  11023. bool sortChildren;
  11024. String style;
  11025. /* readonly */
  11026. Array<String> tags;
  11027. bool temporary;
  11028. String text;
  11029. HorizontalAlignment textAlignment;
  11030. TextEffect textEffect;
  11031. TraversalMode traversalMode;
  11032. /* readonly */
  11033. StringHash type;
  11034. /* readonly */
  11035. String typeName;
  11036. bool useDerivedOpacity;
  11037. /* readonly */
  11038. VariantMap vars;
  11039. VerticalAlignment verticalAlignment;
  11040. bool visible;
  11041. /* readonly */
  11042. bool visibleEffective;
  11043. /* readonly */
  11044. int weakRefs;
  11045. int width;
  11046. bool wordwrap;
  11047. };
  11048. class Text3D
  11049. {
  11050. // Methods:
  11051. void ApplyAttributes();
  11052. void DrawDebugGeometry(DebugRenderer, bool);
  11053. Variant GetAttribute(const String&) const;
  11054. ValueAnimation GetAttributeAnimation(const String&) const;
  11055. float GetAttributeAnimationSpeed(const String&) const;
  11056. float GetAttributeAnimationTime(const String&) const;
  11057. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11058. Variant GetAttributeDefault(const String&) const;
  11059. bool GetInterceptNetworkUpdate(const String&) const;
  11060. bool HasSubscribedToEvent(Object, const String&);
  11061. bool HasSubscribedToEvent(const String&);
  11062. bool IsInView(Camera) const;
  11063. bool Load(File, bool = false);
  11064. bool Load(VectorBuffer&, bool = false);
  11065. bool LoadJSON(const JSONValue&, bool = false);
  11066. bool LoadXML(const XMLElement&, bool = false);
  11067. void MarkNetworkUpdate() const;
  11068. void Remove();
  11069. void RemoveAttributeAnimation(const String&);
  11070. void RemoveInstanceDefault();
  11071. void RemoveObjectAnimation();
  11072. void ResetToDefault();
  11073. bool Save(File) const;
  11074. bool Save(VectorBuffer&) const;
  11075. bool SaveJSON(JSONValue&) const;
  11076. bool SaveXML(XMLElement&) const;
  11077. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11078. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11079. void SetAnimationTime(float);
  11080. bool SetAttribute(const String&, const Variant&);
  11081. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11082. void SetAttributeAnimationSpeed(const String&, float);
  11083. void SetAttributeAnimationTime(const String&, float);
  11084. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11085. bool SetFont(Font, int);
  11086. bool SetFont(const String&, int);
  11087. void SetInterceptNetworkUpdate(const String&, bool);
  11088. // Properties:
  11089. bool animationEnabled;
  11090. /* readonly */
  11091. Array<Variant> attributeDefaults;
  11092. /* readonly */
  11093. Array<AttributeInfo> attributeInfos;
  11094. Array<Variant> attributes;
  11095. /* readonly */
  11096. BoundingBox boundingBox;
  11097. bool castShadows;
  11098. /* readonly */
  11099. String category;
  11100. /* readonly */
  11101. Array<IntVector2> charPositions;
  11102. /* readonly */
  11103. Array<IntVector2> charSizes;
  11104. /* writeonly */
  11105. Color color;
  11106. Array<Color> colors;
  11107. float drawDistance;
  11108. Color effectColor;
  11109. float effectDepthBias;
  11110. bool enabled;
  11111. /* readonly */
  11112. bool enabledEffective;
  11113. FaceCameraMode faceCameraMode;
  11114. /* readonly */
  11115. Font font;
  11116. /* readonly */
  11117. int fontSize;
  11118. HorizontalAlignment horizontalAlignment;
  11119. /* readonly */
  11120. uint id;
  11121. /* readonly */
  11122. bool inView;
  11123. uint lightMask;
  11124. float lodBias;
  11125. Material material;
  11126. uint maxLights;
  11127. /* readonly */
  11128. Node node;
  11129. /* readonly */
  11130. uint numAttributes;
  11131. /* readonly */
  11132. uint numChars;
  11133. /* readonly */
  11134. uint numRows;
  11135. ObjectAnimation objectAnimation;
  11136. bool occludee;
  11137. bool occluder;
  11138. float opacity;
  11139. /* readonly */
  11140. int refs;
  11141. /* readonly */
  11142. int rowHeight;
  11143. float rowSpacing;
  11144. /* readonly */
  11145. Array<int> rowWidths;
  11146. float shadowDistance;
  11147. uint shadowMask;
  11148. bool temporary;
  11149. String text;
  11150. HorizontalAlignment textAlignment;
  11151. TextEffect textEffect;
  11152. /* readonly */
  11153. StringHash type;
  11154. /* readonly */
  11155. String typeName;
  11156. VerticalAlignment verticalAlignment;
  11157. uint viewMask;
  11158. /* readonly */
  11159. int weakRefs;
  11160. int width;
  11161. bool wordwrap;
  11162. /* readonly */
  11163. BoundingBox worldBoundingBox;
  11164. uint zoneMask;
  11165. };
  11166. class Texture
  11167. {
  11168. // Methods:
  11169. void ClearDataLost();
  11170. bool HasSubscribedToEvent(Object, const String&);
  11171. bool HasSubscribedToEvent(const String&);
  11172. bool Load(File);
  11173. bool Load(VectorBuffer&);
  11174. bool Save(File) const;
  11175. bool Save(VectorBuffer&) const;
  11176. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11177. void SetNumLevels(uint);
  11178. // Properties:
  11179. Array<TextureAddressMode> addressMode;
  11180. Texture backupTexture;
  11181. Color borderColor;
  11182. /* readonly */
  11183. String category;
  11184. /* readonly */
  11185. uint components;
  11186. /* readonly */
  11187. bool compressed;
  11188. /* readonly */
  11189. bool dataLost;
  11190. TextureFilterMode filterMode;
  11191. /* readonly */
  11192. uint format;
  11193. /* readonly */
  11194. int height;
  11195. /* readonly */
  11196. Array<int> levelHeight;
  11197. /* readonly */
  11198. Array<int> levelWidth;
  11199. /* readonly */
  11200. uint levels;
  11201. /* readonly */
  11202. uint memoryUse;
  11203. Array<int> mipsToSkip;
  11204. String name;
  11205. /* readonly */
  11206. int refs;
  11207. bool sRGB;
  11208. /* readonly */
  11209. StringHash type;
  11210. /* readonly */
  11211. String typeName;
  11212. /* readonly */
  11213. TextureUsage usage;
  11214. /* readonly */
  11215. uint useTimer;
  11216. /* readonly */
  11217. int weakRefs;
  11218. /* readonly */
  11219. int width;
  11220. };
  11221. class Texture2D
  11222. {
  11223. // Methods:
  11224. void ClearDataLost();
  11225. Image GetImage() const;
  11226. bool HasSubscribedToEvent(Object, const String&);
  11227. bool HasSubscribedToEvent(const String&);
  11228. bool Load(File);
  11229. bool Load(VectorBuffer&);
  11230. bool Save(File) const;
  11231. bool Save(VectorBuffer&) const;
  11232. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11233. bool SetData(Image, bool = false);
  11234. void SetNumLevels(uint);
  11235. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  11236. // Properties:
  11237. Array<TextureAddressMode> addressMode;
  11238. Texture backupTexture;
  11239. Color borderColor;
  11240. /* readonly */
  11241. String category;
  11242. /* readonly */
  11243. uint components;
  11244. /* readonly */
  11245. bool compressed;
  11246. /* readonly */
  11247. bool dataLost;
  11248. TextureFilterMode filterMode;
  11249. /* readonly */
  11250. uint format;
  11251. /* readonly */
  11252. int height;
  11253. /* readonly */
  11254. Array<int> levelHeight;
  11255. /* readonly */
  11256. Array<int> levelWidth;
  11257. /* readonly */
  11258. uint levels;
  11259. /* readonly */
  11260. uint memoryUse;
  11261. Array<int> mipsToSkip;
  11262. String name;
  11263. /* readonly */
  11264. int refs;
  11265. /* readonly */
  11266. RenderSurface renderSurface;
  11267. bool sRGB;
  11268. /* readonly */
  11269. StringHash type;
  11270. /* readonly */
  11271. String typeName;
  11272. /* readonly */
  11273. TextureUsage usage;
  11274. /* readonly */
  11275. uint useTimer;
  11276. /* readonly */
  11277. int weakRefs;
  11278. /* readonly */
  11279. int width;
  11280. };
  11281. class Texture3D
  11282. {
  11283. // Methods:
  11284. void ClearDataLost();
  11285. bool HasSubscribedToEvent(Object, const String&);
  11286. bool HasSubscribedToEvent(const String&);
  11287. bool Load(File);
  11288. bool Load(VectorBuffer&);
  11289. bool Save(File) const;
  11290. bool Save(VectorBuffer&) const;
  11291. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11292. bool SetData(Image, bool = false);
  11293. void SetNumLevels(uint);
  11294. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11295. // Properties:
  11296. Array<TextureAddressMode> addressMode;
  11297. Texture backupTexture;
  11298. Color borderColor;
  11299. /* readonly */
  11300. String category;
  11301. /* readonly */
  11302. uint components;
  11303. /* readonly */
  11304. bool compressed;
  11305. /* readonly */
  11306. bool dataLost;
  11307. TextureFilterMode filterMode;
  11308. /* readonly */
  11309. uint format;
  11310. /* readonly */
  11311. int height;
  11312. /* readonly */
  11313. Array<int> levelHeight;
  11314. /* readonly */
  11315. Array<int> levelWidth;
  11316. /* readonly */
  11317. uint levels;
  11318. /* readonly */
  11319. uint memoryUse;
  11320. Array<int> mipsToSkip;
  11321. String name;
  11322. /* readonly */
  11323. int refs;
  11324. bool sRGB;
  11325. /* readonly */
  11326. StringHash type;
  11327. /* readonly */
  11328. String typeName;
  11329. /* readonly */
  11330. TextureUsage usage;
  11331. /* readonly */
  11332. uint useTimer;
  11333. /* readonly */
  11334. int weakRefs;
  11335. /* readonly */
  11336. int width;
  11337. };
  11338. class TextureCube
  11339. {
  11340. // Methods:
  11341. void ClearDataLost();
  11342. bool HasSubscribedToEvent(Object, const String&);
  11343. bool HasSubscribedToEvent(const String&);
  11344. bool Load(File);
  11345. bool Load(VectorBuffer&);
  11346. bool Save(File) const;
  11347. bool Save(VectorBuffer&) const;
  11348. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11349. bool SetData(CubeMapFace, Image, bool = false);
  11350. void SetNumLevels(uint);
  11351. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  11352. // Properties:
  11353. Array<TextureAddressMode> addressMode;
  11354. Texture backupTexture;
  11355. Color borderColor;
  11356. /* readonly */
  11357. String category;
  11358. /* readonly */
  11359. uint components;
  11360. /* readonly */
  11361. bool compressed;
  11362. /* readonly */
  11363. bool dataLost;
  11364. TextureFilterMode filterMode;
  11365. /* readonly */
  11366. uint format;
  11367. /* readonly */
  11368. int height;
  11369. /* readonly */
  11370. Array<int> levelHeight;
  11371. /* readonly */
  11372. Array<int> levelWidth;
  11373. /* readonly */
  11374. uint levels;
  11375. /* readonly */
  11376. uint memoryUse;
  11377. Array<int> mipsToSkip;
  11378. String name;
  11379. /* readonly */
  11380. int refs;
  11381. /* readonly */
  11382. Array<RenderSurface> renderSurfaces;
  11383. bool sRGB;
  11384. /* readonly */
  11385. StringHash type;
  11386. /* readonly */
  11387. String typeName;
  11388. /* readonly */
  11389. TextureUsage usage;
  11390. /* readonly */
  11391. uint useTimer;
  11392. /* readonly */
  11393. int weakRefs;
  11394. /* readonly */
  11395. int width;
  11396. };
  11397. class TextureFrame
  11398. {
  11399. // Properties:
  11400. float time;
  11401. Rect uv;
  11402. };
  11403. class Tile2D
  11404. {
  11405. // Methods:
  11406. bool HasProperty(const String&) const;
  11407. const String& GetProperty(const String&) const;
  11408. // Properties:
  11409. /* readonly */
  11410. int gid;
  11411. /* readonly */
  11412. int refs;
  11413. /* readonly */
  11414. Sprite2D sprite;
  11415. /* readonly */
  11416. int weakRefs;
  11417. };
  11418. class TileMap2D
  11419. {
  11420. // Methods:
  11421. void ApplyAttributes();
  11422. void DrawDebugGeometry(DebugRenderer, bool);
  11423. Variant GetAttribute(const String&) const;
  11424. ValueAnimation GetAttributeAnimation(const String&) const;
  11425. float GetAttributeAnimationSpeed(const String&) const;
  11426. float GetAttributeAnimationTime(const String&) const;
  11427. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11428. Variant GetAttributeDefault(const String&) const;
  11429. bool GetInterceptNetworkUpdate(const String&) const;
  11430. TileMapLayer2D GetLayer(uint) const;
  11431. bool HasSubscribedToEvent(Object, const String&);
  11432. bool HasSubscribedToEvent(const String&);
  11433. bool Load(File, bool = false);
  11434. bool Load(VectorBuffer&, bool = false);
  11435. bool LoadJSON(const JSONValue&, bool = false);
  11436. bool LoadXML(const XMLElement&, bool = false);
  11437. void MarkNetworkUpdate() const;
  11438. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11439. void Remove();
  11440. void RemoveAttributeAnimation(const String&);
  11441. void RemoveInstanceDefault();
  11442. void RemoveObjectAnimation();
  11443. void ResetToDefault();
  11444. bool Save(File) const;
  11445. bool Save(VectorBuffer&) const;
  11446. bool SaveJSON(JSONValue&) const;
  11447. bool SaveXML(XMLElement&) const;
  11448. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11449. void SetAnimationTime(float);
  11450. bool SetAttribute(const String&, const Variant&);
  11451. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11452. void SetAttributeAnimationSpeed(const String&, float);
  11453. void SetAttributeAnimationTime(const String&, float);
  11454. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11455. void SetInterceptNetworkUpdate(const String&, bool);
  11456. Vector2 TileIndexToPosition(int, int) const;
  11457. // Properties:
  11458. bool animationEnabled;
  11459. /* readonly */
  11460. Array<Variant> attributeDefaults;
  11461. /* readonly */
  11462. Array<AttributeInfo> attributeInfos;
  11463. Array<Variant> attributes;
  11464. /* readonly */
  11465. String category;
  11466. bool enabled;
  11467. /* readonly */
  11468. bool enabledEffective;
  11469. /* readonly */
  11470. uint id;
  11471. /* readonly */
  11472. TileMapInfo2D info;
  11473. /* readonly */
  11474. Node node;
  11475. /* readonly */
  11476. uint numAttributes;
  11477. /* readonly */
  11478. uint numLayers;
  11479. ObjectAnimation objectAnimation;
  11480. /* readonly */
  11481. int refs;
  11482. bool temporary;
  11483. TmxFile2D tmxFile;
  11484. /* readonly */
  11485. StringHash type;
  11486. /* readonly */
  11487. String typeName;
  11488. /* readonly */
  11489. int weakRefs;
  11490. };
  11491. class TileMapInfo2D
  11492. {
  11493. // Properties:
  11494. int height;
  11495. /* readonly */
  11496. float mapHeight;
  11497. /* readonly */
  11498. float mapWidth;
  11499. Orientation2D orientation;
  11500. float tileHeight;
  11501. float tileWidth;
  11502. int width;
  11503. };
  11504. class TileMapLayer2D
  11505. {
  11506. // Methods:
  11507. void ApplyAttributes();
  11508. void DrawDebugGeometry(DebugRenderer, bool);
  11509. Variant GetAttribute(const String&) const;
  11510. ValueAnimation GetAttributeAnimation(const String&) const;
  11511. float GetAttributeAnimationSpeed(const String&) const;
  11512. float GetAttributeAnimationTime(const String&) const;
  11513. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11514. Variant GetAttributeDefault(const String&) const;
  11515. bool GetInterceptNetworkUpdate(const String&) const;
  11516. TileMapObject2D GetObject(uint) const;
  11517. Node GetObjectNode(uint) const;
  11518. Tile2D GetTile(int, int) const;
  11519. Node GetTileNode(int, int) const;
  11520. bool HasProperty(const String&) const;
  11521. bool HasSubscribedToEvent(Object, const String&);
  11522. bool HasSubscribedToEvent(const String&);
  11523. bool Load(File, bool = false);
  11524. bool Load(VectorBuffer&, bool = false);
  11525. bool LoadJSON(const JSONValue&, bool = false);
  11526. bool LoadXML(const XMLElement&, bool = false);
  11527. void MarkNetworkUpdate() const;
  11528. void Remove();
  11529. void RemoveAttributeAnimation(const String&);
  11530. void RemoveInstanceDefault();
  11531. void RemoveObjectAnimation();
  11532. void ResetToDefault();
  11533. bool Save(File) const;
  11534. bool Save(VectorBuffer&) const;
  11535. bool SaveJSON(JSONValue&) const;
  11536. bool SaveXML(XMLElement&) const;
  11537. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11538. void SetAnimationTime(float);
  11539. bool SetAttribute(const String&, const Variant&);
  11540. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11541. void SetAttributeAnimationSpeed(const String&, float);
  11542. void SetAttributeAnimationTime(const String&, float);
  11543. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11544. void SetInterceptNetworkUpdate(const String&, bool);
  11545. const String& GetProperty(const String&) const;
  11546. // Properties:
  11547. bool animationEnabled;
  11548. /* readonly */
  11549. Array<Variant> attributeDefaults;
  11550. /* readonly */
  11551. Array<AttributeInfo> attributeInfos;
  11552. Array<Variant> attributes;
  11553. /* readonly */
  11554. String category;
  11555. int drawOrder;
  11556. bool enabled;
  11557. /* readonly */
  11558. bool enabledEffective;
  11559. /* readonly */
  11560. int height;
  11561. /* readonly */
  11562. uint id;
  11563. /* readonly */
  11564. Node imageNode;
  11565. /* readonly */
  11566. TileMapLayerType2D layerType;
  11567. /* readonly */
  11568. Node node;
  11569. /* readonly */
  11570. uint numAttributes;
  11571. /* readonly */
  11572. uint numObjects;
  11573. ObjectAnimation objectAnimation;
  11574. /* readonly */
  11575. int refs;
  11576. bool temporary;
  11577. /* readonly */
  11578. StringHash type;
  11579. /* readonly */
  11580. String typeName;
  11581. bool visible;
  11582. /* readonly */
  11583. int weakRefs;
  11584. /* readonly */
  11585. int width;
  11586. };
  11587. class TileMapObject2D
  11588. {
  11589. // Methods:
  11590. bool HasProperty(const String&) const;
  11591. const String& GetProperty(const String&) const;
  11592. const Vector2& GetPoint(uint) const;
  11593. // Properties:
  11594. /* readonly */
  11595. String name;
  11596. /* readonly */
  11597. uint numPoints;
  11598. /* readonly */
  11599. TileObjectType2D objectType;
  11600. /* readonly */
  11601. Vector2 position;
  11602. /* readonly */
  11603. int refs;
  11604. /* readonly */
  11605. Vector2 size;
  11606. /* readonly */
  11607. int tileGid;
  11608. /* readonly */
  11609. Sprite2D tileSprite;
  11610. /* readonly */
  11611. String type;
  11612. /* readonly */
  11613. int weakRefs;
  11614. };
  11615. class Time
  11616. {
  11617. // Methods:
  11618. bool HasSubscribedToEvent(Object, const String&);
  11619. bool HasSubscribedToEvent(const String&);
  11620. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11621. // Properties:
  11622. /* readonly */
  11623. String category;
  11624. /* readonly */
  11625. float elapsedTime;
  11626. /* readonly */
  11627. uint frameNumber;
  11628. /* readonly */
  11629. int refs;
  11630. /* readonly */
  11631. uint systemTime;
  11632. /* readonly */
  11633. uint timeSinceEpoch;
  11634. /* readonly */
  11635. String timeStamp;
  11636. /* readonly */
  11637. float timeStep;
  11638. /* readonly */
  11639. StringHash type;
  11640. /* readonly */
  11641. String typeName;
  11642. /* readonly */
  11643. int weakRefs;
  11644. };
  11645. class Timer
  11646. {
  11647. // Methods:
  11648. uint GetMSec(bool);
  11649. void Reset();
  11650. };
  11651. class TmxFile2D
  11652. {
  11653. // Methods:
  11654. bool HasSubscribedToEvent(Object, const String&);
  11655. bool HasSubscribedToEvent(const String&);
  11656. bool Load(File);
  11657. bool Load(VectorBuffer&);
  11658. bool Save(File) const;
  11659. bool Save(VectorBuffer&) const;
  11660. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11661. // Properties:
  11662. /* readonly */
  11663. String category;
  11664. /* readonly */
  11665. uint memoryUse;
  11666. String name;
  11667. /* readonly */
  11668. int refs;
  11669. /* readonly */
  11670. StringHash type;
  11671. /* readonly */
  11672. String typeName;
  11673. /* readonly */
  11674. uint useTimer;
  11675. /* readonly */
  11676. int weakRefs;
  11677. };
  11678. class ToolTip
  11679. {
  11680. // Methods:
  11681. void AddChild(UIElement);
  11682. void AddTag(const String&);
  11683. void AddTags(const String&, int8 = ';');
  11684. void ApplyAttributes();
  11685. void BringToFront();
  11686. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11687. void DisableLayoutUpdate();
  11688. IntVector2 ElementToScreen(const IntVector2&);
  11689. void EnableLayoutUpdate();
  11690. uint FindChild(UIElement) const;
  11691. Variant GetAttribute(const String&) const;
  11692. ValueAnimation GetAttributeAnimation(const String&) const;
  11693. float GetAttributeAnimationSpeed(const String&) const;
  11694. float GetAttributeAnimationTime(const String&) const;
  11695. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11696. Variant GetAttributeDefault(const String&) const;
  11697. UIElement GetChild(const String&, bool = false) const;
  11698. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11699. Array<UIElement> GetChildren(bool = false) const;
  11700. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11701. UIElement GetElementEventSender() const;
  11702. bool GetInterceptNetworkUpdate(const String&) const;
  11703. uint GetNumChildren(bool) const;
  11704. bool HasSubscribedToEvent(Object, const String&);
  11705. bool HasSubscribedToEvent(const String&);
  11706. bool HasTag(const String&) const;
  11707. void InsertChild(uint, UIElement);
  11708. bool IsInside(IntVector2, bool);
  11709. bool IsInsideCombined(IntVector2, bool);
  11710. bool Load(File, bool = false);
  11711. bool Load(VectorBuffer&, bool = false);
  11712. bool LoadChildXML(XMLFile, XMLFile = null);
  11713. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11714. bool LoadJSON(const JSONValue&, bool = false);
  11715. bool LoadXML(File);
  11716. bool LoadXML(VectorBuffer&);
  11717. bool LoadXML(XMLFile, XMLFile);
  11718. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11719. bool LoadXML(const XMLElement&, bool = false);
  11720. void MarkNetworkUpdate() const;
  11721. void Remove();
  11722. void RemoveAllChildren();
  11723. void RemoveAllTags();
  11724. void RemoveAttributeAnimation(const String&);
  11725. void RemoveChild(UIElement, uint = 0);
  11726. void RemoveChild(uint);
  11727. void RemoveInstanceDefault();
  11728. void RemoveObjectAnimation();
  11729. bool RemoveTag(const String&);
  11730. void ResetDeepEnabled();
  11731. void ResetToDefault();
  11732. bool Save(File) const;
  11733. bool Save(VectorBuffer&) const;
  11734. bool SaveJSON(JSONValue&) const;
  11735. bool SaveXML(File, const String& = "\t");
  11736. bool SaveXML(VectorBuffer&, const String& = "\t");
  11737. bool SaveXML(XMLElement&) const;
  11738. IntVector2 ScreenToElement(const IntVector2&);
  11739. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11740. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11741. void SetAnimationTime(float);
  11742. bool SetAttribute(const String&, const Variant&);
  11743. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11744. void SetAttributeAnimationSpeed(const String&, float);
  11745. void SetAttributeAnimationTime(const String&, float);
  11746. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11747. void SetDeepEnabled(bool);
  11748. void SetEnabledRecursive(bool);
  11749. void SetFixedHeight(int);
  11750. void SetFixedSize(int, int);
  11751. void SetFixedWidth(int);
  11752. void SetInterceptNetworkUpdate(const String&, bool);
  11753. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11754. void SetMaxSize(int, int);
  11755. void SetMinSize(int, int);
  11756. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11757. void SetPosition(int, int);
  11758. void SetSize(int, int);
  11759. bool SetStyle(const String&, XMLFile = null);
  11760. bool SetStyle(const XMLElement&);
  11761. bool SetStyleAuto(XMLFile = null);
  11762. void UpdateLayout();
  11763. const Variant& GetVar(const StringHash&);
  11764. // Properties:
  11765. bool animationEnabled;
  11766. /* readonly */
  11767. Array<Variant> attributeDefaults;
  11768. /* readonly */
  11769. Array<AttributeInfo> attributeInfos;
  11770. Array<Variant> attributes;
  11771. bool bringToBack;
  11772. bool bringToFront;
  11773. /* readonly */
  11774. String category;
  11775. /* readonly */
  11776. IntVector2 childOffset;
  11777. /* readonly */
  11778. Array<UIElement> children;
  11779. IntRect clipBorder;
  11780. bool clipChildren;
  11781. /* writeonly */
  11782. Color color;
  11783. /* readonly */
  11784. bool colorGradient;
  11785. Array<Color> colors;
  11786. /* readonly */
  11787. IntRect combinedScreenRect;
  11788. XMLFile defaultStyle;
  11789. float delay;
  11790. /* readonly */
  11791. float derivedOpacity;
  11792. /* readonly */
  11793. uint dragButtonCombo;
  11794. /* readonly */
  11795. int dragButtonCount;
  11796. uint dragDropMode;
  11797. bool editable;
  11798. bool elementEventSender;
  11799. bool enabled;
  11800. /* readonly */
  11801. bool enabledSelf;
  11802. /* readonly */
  11803. bool fixedHeight;
  11804. /* readonly */
  11805. bool fixedSize;
  11806. /* readonly */
  11807. bool fixedWidth;
  11808. bool focus;
  11809. FocusMode focusMode;
  11810. int height;
  11811. HorizontalAlignment horizontalAlignment;
  11812. /* readonly */
  11813. bool hovering;
  11814. int indent;
  11815. int indentSpacing;
  11816. /* readonly */
  11817. int indentWidth;
  11818. bool internal;
  11819. IntRect layoutBorder;
  11820. Vector2 layoutFlexScale;
  11821. LayoutMode layoutMode;
  11822. int layoutSpacing;
  11823. int maxHeight;
  11824. IntVector2 maxSize;
  11825. int maxWidth;
  11826. int minHeight;
  11827. IntVector2 minSize;
  11828. int minWidth;
  11829. String name;
  11830. /* readonly */
  11831. uint numAllChildren;
  11832. /* readonly */
  11833. uint numAttributes;
  11834. /* readonly */
  11835. uint numChildren;
  11836. ObjectAnimation objectAnimation;
  11837. float opacity;
  11838. UIElement parent;
  11839. IntVector2 position;
  11840. int priority;
  11841. /* readonly */
  11842. int refs;
  11843. /* readonly */
  11844. UIElement root;
  11845. /* readonly */
  11846. IntVector2 screenPosition;
  11847. bool selected;
  11848. IntVector2 size;
  11849. bool sortChildren;
  11850. String style;
  11851. /* readonly */
  11852. Array<String> tags;
  11853. bool temporary;
  11854. TraversalMode traversalMode;
  11855. /* readonly */
  11856. StringHash type;
  11857. /* readonly */
  11858. String typeName;
  11859. bool useDerivedOpacity;
  11860. /* readonly */
  11861. VariantMap vars;
  11862. VerticalAlignment verticalAlignment;
  11863. bool visible;
  11864. /* readonly */
  11865. bool visibleEffective;
  11866. /* readonly */
  11867. int weakRefs;
  11868. int width;
  11869. };
  11870. class TouchState
  11871. {
  11872. // Properties:
  11873. IntVector2 delta;
  11874. IntVector2 lastPosition;
  11875. IntVector2 position;
  11876. float pressure;
  11877. int touchID;
  11878. /* readonly */
  11879. UIElement touchedElement;
  11880. };
  11881. class UI
  11882. {
  11883. // Methods:
  11884. void Clear();
  11885. void DebugDraw(UIElement);
  11886. UIElement GetElementAt(const IntVector2&, bool = true);
  11887. UIElement GetElementAt(int, int, bool = true);
  11888. bool HasModalElement() const;
  11889. bool HasSubscribedToEvent(Object, const String&);
  11890. bool HasSubscribedToEvent(const String&);
  11891. bool IsDragging() const;
  11892. UIElement LoadLayout(File);
  11893. UIElement LoadLayout(File, XMLFile);
  11894. UIElement LoadLayout(VectorBuffer&);
  11895. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11896. UIElement LoadLayout(XMLFile);
  11897. UIElement LoadLayout(XMLFile, XMLFile);
  11898. bool SaveLayout(File, UIElement);
  11899. bool SaveLayout(VectorBuffer&, UIElement);
  11900. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11901. void SetFocusElement(UIElement, bool = false);
  11902. void SetHeight(float);
  11903. void SetWidth(float);
  11904. const Array<UIElement> GetDragElements();
  11905. // Properties:
  11906. /* readonly */
  11907. String category;
  11908. String clipBoardText;
  11909. Cursor cursor;
  11910. /* readonly */
  11911. IntVector2 cursorPosition;
  11912. float defaultToolTipDelay;
  11913. float doubleClickInterval;
  11914. int dragBeginDistance;
  11915. float dragBeginInterval;
  11916. UIElement focusElement;
  11917. bool forceAutoHint;
  11918. /* readonly */
  11919. UIElement frontElement;
  11920. int maxFontTextureSize;
  11921. /* readonly */
  11922. UIElement modalRoot;
  11923. bool nonFocusedMouseWheel;
  11924. /* readonly */
  11925. int refs;
  11926. /* readonly */
  11927. UIElement root;
  11928. float scale;
  11929. /* readonly */
  11930. StringHash type;
  11931. /* readonly */
  11932. String typeName;
  11933. bool useMutableGlyphs;
  11934. bool useScreenKeyboard;
  11935. bool useSystemClipboard;
  11936. /* readonly */
  11937. int weakRefs;
  11938. };
  11939. class UIElement
  11940. {
  11941. // Methods:
  11942. void AddChild(UIElement);
  11943. void AddTag(const String&);
  11944. void AddTags(const String&, int8 = ';');
  11945. void ApplyAttributes();
  11946. void BringToFront();
  11947. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11948. void DisableLayoutUpdate();
  11949. IntVector2 ElementToScreen(const IntVector2&);
  11950. void EnableLayoutUpdate();
  11951. uint FindChild(UIElement) const;
  11952. Variant GetAttribute(const String&) const;
  11953. ValueAnimation GetAttributeAnimation(const String&) const;
  11954. float GetAttributeAnimationSpeed(const String&) const;
  11955. float GetAttributeAnimationTime(const String&) const;
  11956. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11957. Variant GetAttributeDefault(const String&) const;
  11958. UIElement GetChild(const String&, bool = false) const;
  11959. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11960. Array<UIElement> GetChildren(bool = false) const;
  11961. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11962. UIElement GetElementEventSender() const;
  11963. bool GetInterceptNetworkUpdate(const String&) const;
  11964. uint GetNumChildren(bool) const;
  11965. bool HasSubscribedToEvent(Object, const String&);
  11966. bool HasSubscribedToEvent(const String&);
  11967. bool HasTag(const String&) const;
  11968. void InsertChild(uint, UIElement);
  11969. bool IsInside(IntVector2, bool);
  11970. bool IsInsideCombined(IntVector2, bool);
  11971. bool Load(File, bool = false);
  11972. bool Load(VectorBuffer&, bool = false);
  11973. bool LoadChildXML(XMLFile, XMLFile = null);
  11974. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11975. bool LoadJSON(const JSONValue&, bool = false);
  11976. bool LoadXML(File);
  11977. bool LoadXML(VectorBuffer&);
  11978. bool LoadXML(XMLFile, XMLFile);
  11979. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11980. bool LoadXML(const XMLElement&, bool = false);
  11981. void MarkNetworkUpdate() const;
  11982. void Remove();
  11983. void RemoveAllChildren();
  11984. void RemoveAllTags();
  11985. void RemoveAttributeAnimation(const String&);
  11986. void RemoveChild(UIElement, uint = 0);
  11987. void RemoveChild(uint);
  11988. void RemoveInstanceDefault();
  11989. void RemoveObjectAnimation();
  11990. bool RemoveTag(const String&);
  11991. void ResetDeepEnabled();
  11992. void ResetToDefault();
  11993. bool Save(File) const;
  11994. bool Save(VectorBuffer&) const;
  11995. bool SaveJSON(JSONValue&) const;
  11996. bool SaveXML(File, const String& = "\t");
  11997. bool SaveXML(VectorBuffer&, const String& = "\t");
  11998. bool SaveXML(XMLElement&) const;
  11999. IntVector2 ScreenToElement(const IntVector2&);
  12000. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12001. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12002. void SetAnimationTime(float);
  12003. bool SetAttribute(const String&, const Variant&);
  12004. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12005. void SetAttributeAnimationSpeed(const String&, float);
  12006. void SetAttributeAnimationTime(const String&, float);
  12007. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12008. void SetDeepEnabled(bool);
  12009. void SetEnabledRecursive(bool);
  12010. void SetFixedHeight(int);
  12011. void SetFixedSize(int, int);
  12012. void SetFixedWidth(int);
  12013. void SetInterceptNetworkUpdate(const String&, bool);
  12014. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12015. void SetMaxSize(int, int);
  12016. void SetMinSize(int, int);
  12017. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12018. void SetPosition(int, int);
  12019. void SetSize(int, int);
  12020. bool SetStyle(const String&, XMLFile = null);
  12021. bool SetStyle(const XMLElement&);
  12022. bool SetStyleAuto(XMLFile = null);
  12023. void UpdateLayout();
  12024. const Variant& GetVar(const StringHash&);
  12025. // Properties:
  12026. bool animationEnabled;
  12027. /* readonly */
  12028. Array<Variant> attributeDefaults;
  12029. /* readonly */
  12030. Array<AttributeInfo> attributeInfos;
  12031. Array<Variant> attributes;
  12032. bool bringToBack;
  12033. bool bringToFront;
  12034. /* readonly */
  12035. String category;
  12036. /* readonly */
  12037. IntVector2 childOffset;
  12038. /* readonly */
  12039. Array<UIElement> children;
  12040. IntRect clipBorder;
  12041. bool clipChildren;
  12042. /* writeonly */
  12043. Color color;
  12044. /* readonly */
  12045. bool colorGradient;
  12046. Array<Color> colors;
  12047. /* readonly */
  12048. IntRect combinedScreenRect;
  12049. XMLFile defaultStyle;
  12050. /* readonly */
  12051. float derivedOpacity;
  12052. /* readonly */
  12053. uint dragButtonCombo;
  12054. /* readonly */
  12055. int dragButtonCount;
  12056. uint dragDropMode;
  12057. bool editable;
  12058. bool elementEventSender;
  12059. bool enabled;
  12060. /* readonly */
  12061. bool enabledSelf;
  12062. /* readonly */
  12063. bool fixedHeight;
  12064. /* readonly */
  12065. bool fixedSize;
  12066. /* readonly */
  12067. bool fixedWidth;
  12068. bool focus;
  12069. FocusMode focusMode;
  12070. int height;
  12071. HorizontalAlignment horizontalAlignment;
  12072. /* readonly */
  12073. bool hovering;
  12074. int indent;
  12075. int indentSpacing;
  12076. /* readonly */
  12077. int indentWidth;
  12078. bool internal;
  12079. IntRect layoutBorder;
  12080. Vector2 layoutFlexScale;
  12081. LayoutMode layoutMode;
  12082. int layoutSpacing;
  12083. int maxHeight;
  12084. IntVector2 maxSize;
  12085. int maxWidth;
  12086. int minHeight;
  12087. IntVector2 minSize;
  12088. int minWidth;
  12089. String name;
  12090. /* readonly */
  12091. uint numAllChildren;
  12092. /* readonly */
  12093. uint numAttributes;
  12094. /* readonly */
  12095. uint numChildren;
  12096. ObjectAnimation objectAnimation;
  12097. float opacity;
  12098. UIElement parent;
  12099. IntVector2 position;
  12100. int priority;
  12101. /* readonly */
  12102. int refs;
  12103. /* readonly */
  12104. UIElement root;
  12105. /* readonly */
  12106. IntVector2 screenPosition;
  12107. bool selected;
  12108. IntVector2 size;
  12109. bool sortChildren;
  12110. String style;
  12111. /* readonly */
  12112. Array<String> tags;
  12113. bool temporary;
  12114. TraversalMode traversalMode;
  12115. /* readonly */
  12116. StringHash type;
  12117. /* readonly */
  12118. String typeName;
  12119. bool useDerivedOpacity;
  12120. /* readonly */
  12121. VariantMap vars;
  12122. VerticalAlignment verticalAlignment;
  12123. bool visible;
  12124. /* readonly */
  12125. bool visibleEffective;
  12126. /* readonly */
  12127. int weakRefs;
  12128. int width;
  12129. };
  12130. class ValueAnimation
  12131. {
  12132. // Methods:
  12133. bool HasSubscribedToEvent(Object, const String&);
  12134. bool HasSubscribedToEvent(const String&);
  12135. bool Load(File);
  12136. bool Load(VectorBuffer&);
  12137. bool Save(File) const;
  12138. bool Save(VectorBuffer&) const;
  12139. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12140. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12141. void SetKeyFrame(float, const Variant&);
  12142. // Properties:
  12143. /* readonly */
  12144. String category;
  12145. InterpMethod interpolationMethod;
  12146. /* readonly */
  12147. uint memoryUse;
  12148. String name;
  12149. /* readonly */
  12150. int refs;
  12151. float splineTension;
  12152. /* readonly */
  12153. StringHash type;
  12154. /* readonly */
  12155. String typeName;
  12156. /* readonly */
  12157. uint useTimer;
  12158. VariantType valueType;
  12159. /* readonly */
  12160. int weakRefs;
  12161. };
  12162. class Variant
  12163. {
  12164. // Methods:
  12165. void Clear();
  12166. const Color& GetColor() const;
  12167. void FromString(VariantType, const String&);
  12168. void FromString(const String&, const String&);
  12169. bool GetBool() const;
  12170. double GetDouble() const;
  12171. float GetFloat() const;
  12172. int GetInt() const;
  12173. RefCounted GetPtr() const;
  12174. ScriptObject GetScriptObject() const;
  12175. StringHash GetStringHash() const;
  12176. Array<String> GetStringVector() const;
  12177. uint GetUInt() const;
  12178. Array<Variant> GetVariantVector() const;
  12179. const IntRect& GetIntRect() const;
  12180. const IntVector2& GetIntVector2() const;
  12181. const Matrix3& GetMatrix3() const;
  12182. const Matrix3x4& GetMatrix3x4() const;
  12183. const Matrix4& GetMatrix4() const;
  12184. const Quaternion& GetQuaternion() const;
  12185. const ResourceRef& GetResourceRef() const;
  12186. const ResourceRefList& GetResourceRefList() const;
  12187. const String& GetString() const;
  12188. String ToString() const;
  12189. const VariantMap& GetVariantMap() const;
  12190. const Vector2& GetVector2() const;
  12191. const Vector3& GetVector3() const;
  12192. const Vector4& GetVector4() const;
  12193. const VectorBuffer GetBuffer() const;
  12194. // Properties:
  12195. /* readonly */
  12196. bool empty;
  12197. /* readonly */
  12198. VariantType type;
  12199. /* readonly */
  12200. String typeName;
  12201. /* readonly */
  12202. bool zero;
  12203. };
  12204. class VariantMap
  12205. {
  12206. // Methods:
  12207. void Clear();
  12208. bool Contains(StringHash) const;
  12209. bool Contains(const String&) const;
  12210. bool Erase(StringHash);
  12211. bool Erase(const String&);
  12212. // Properties:
  12213. /* readonly */
  12214. Array<StringHash> keys;
  12215. /* readonly */
  12216. uint length;
  12217. /* readonly */
  12218. Array<Variant> values;
  12219. };
  12220. class Vector2
  12221. {
  12222. // Methods:
  12223. Vector2 Abs() const;
  12224. float AbsDotProduct(const Vector2&) const;
  12225. float DotProduct(const Vector2&) const;
  12226. bool Equals(const Vector2&) const;
  12227. bool IsNaN() const;
  12228. Vector2 Lerp(const Vector2&, float) const;
  12229. void Normalize();
  12230. Vector2 Normalized() const;
  12231. String ToString() const;
  12232. // Properties:
  12233. /* readonly */
  12234. Array<float> data;
  12235. /* readonly */
  12236. float length;
  12237. /* readonly */
  12238. float lengthSquared;
  12239. float x;
  12240. float y;
  12241. };
  12242. class Vector3
  12243. {
  12244. // Methods:
  12245. Vector3 Abs() const;
  12246. float AbsDotProduct(const Vector3&) const;
  12247. float Angle(const Vector3&) const;
  12248. Vector3 CrossProduct(const Vector3&) const;
  12249. float DotProduct(const Vector3&) const;
  12250. bool Equals(const Vector3&) const;
  12251. bool IsNaN() const;
  12252. Vector3 Lerp(const Vector3&, float) const;
  12253. void Normalize();
  12254. Vector3 Normalized() const;
  12255. String ToString() const;
  12256. // Properties:
  12257. /* readonly */
  12258. Array<float> data;
  12259. /* readonly */
  12260. float length;
  12261. /* readonly */
  12262. float lengthSquared;
  12263. float x;
  12264. float y;
  12265. float z;
  12266. };
  12267. class Vector4
  12268. {
  12269. // Methods:
  12270. Vector4 Abs() const;
  12271. float AbsDotProduct(const Vector4&) const;
  12272. float DotProduct(const Vector4&) const;
  12273. bool Equals(const Vector4&) const;
  12274. bool IsNaN() const;
  12275. Vector4 Lerp(const Vector4&, float) const;
  12276. String ToString() const;
  12277. // Properties:
  12278. /* readonly */
  12279. Array<float> data;
  12280. float w;
  12281. float x;
  12282. float y;
  12283. float z;
  12284. };
  12285. class VectorBuffer
  12286. {
  12287. // Methods:
  12288. void Clear();
  12289. Array<uint8> Read(uint);
  12290. bool ReadBool();
  12291. BoundingBox ReadBoundingBox();
  12292. int8 ReadByte();
  12293. Color ReadColor();
  12294. double ReadDouble();
  12295. String ReadFileID();
  12296. float ReadFloat();
  12297. int ReadInt();
  12298. IntRect ReadIntRect();
  12299. IntVector2 ReadIntVector2();
  12300. String ReadLine();
  12301. Matrix3 ReadMatrix3();
  12302. Matrix3x4 ReadMatrix3x4();
  12303. Matrix4 ReadMatrix4();
  12304. uint ReadNetID();
  12305. Quaternion ReadPackedQuaternion();
  12306. Vector3 ReadPackedVector3(float);
  12307. Quaternion ReadQuaternion();
  12308. int16 ReadShort();
  12309. String ReadString();
  12310. StringHash ReadStringHash();
  12311. uint8 ReadUByte();
  12312. uint ReadUInt();
  12313. uint16 ReadUShort();
  12314. uint ReadVLE();
  12315. Variant ReadVariant();
  12316. VariantMap ReadVariantMap();
  12317. Vector2 ReadVector2();
  12318. Vector3 ReadVector3();
  12319. Vector4 ReadVector4();
  12320. VectorBuffer ReadVectorBuffer(uint);
  12321. void Resize(uint);
  12322. uint Seek(uint);
  12323. void SetData(Deserializer, uint);
  12324. uint Write(Array<uint8>);
  12325. bool WriteBool(bool);
  12326. bool WriteBoundingBox(const BoundingBox&);
  12327. bool WriteByte(int8);
  12328. bool WriteColor(const Color&);
  12329. bool WriteDouble(double);
  12330. bool WriteFileID(const String&);
  12331. bool WriteFloat(float);
  12332. bool WriteInt(int);
  12333. bool WriteIntRect(const IntRect&);
  12334. bool WriteIntVector2(const IntVector2&);
  12335. bool WriteLine(const String&);
  12336. bool WriteMatrix3(const Matrix3&);
  12337. bool WriteMatrix3x4(const Matrix3x4&);
  12338. bool WriteMatrix4(const Matrix4&);
  12339. bool WriteNetID(uint);
  12340. bool WritePackedQuaternion(const Quaternion&);
  12341. bool WritePackedVector3(const Vector3&, float);
  12342. bool WriteQuaternion(const Quaternion&);
  12343. bool WriteShort(int16);
  12344. bool WriteString(const String&);
  12345. bool WriteStringHash(const StringHash&);
  12346. bool WriteUByte(uint8);
  12347. bool WriteUInt(uint);
  12348. bool WriteUShort(uint16);
  12349. bool WriteVLE(uint);
  12350. bool WriteVariant(const Variant&);
  12351. bool WriteVariantMap(const VariantMap&);
  12352. bool WriteVector2(const Vector2&);
  12353. bool WriteVector3(const Vector3&);
  12354. bool WriteVector4(const Vector4&);
  12355. bool WriteVectorBuffer(const VectorBuffer&);
  12356. // Properties:
  12357. /* readonly */
  12358. uint checksum;
  12359. /* readonly */
  12360. bool eof;
  12361. /* readonly */
  12362. String name;
  12363. /* readonly */
  12364. uint position;
  12365. /* readonly */
  12366. uint size;
  12367. };
  12368. class VertexBuffer
  12369. {
  12370. // Methods:
  12371. VectorBuffer GetData();
  12372. bool HasSubscribedToEvent(Object, const String&);
  12373. bool HasSubscribedToEvent(const String&);
  12374. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12375. bool SetData(VectorBuffer&);
  12376. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12377. void SetSize(uint, uint, bool = false);
  12378. // Properties:
  12379. /* readonly */
  12380. String category;
  12381. /* readonly */
  12382. bool dynamic;
  12383. /* readonly */
  12384. uint elementMask;
  12385. /* readonly */
  12386. int refs;
  12387. bool shadowed;
  12388. /* readonly */
  12389. StringHash type;
  12390. /* readonly */
  12391. String typeName;
  12392. /* readonly */
  12393. uint vertexCount;
  12394. /* readonly */
  12395. uint vertexSize;
  12396. /* readonly */
  12397. int weakRefs;
  12398. };
  12399. class View3D
  12400. {
  12401. // Methods:
  12402. void AddChild(UIElement);
  12403. void AddTag(const String&);
  12404. void AddTags(const String&, int8 = ';');
  12405. void ApplyAttributes();
  12406. void BringToFront();
  12407. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12408. void DisableLayoutUpdate();
  12409. IntVector2 ElementToScreen(const IntVector2&);
  12410. void EnableLayoutUpdate();
  12411. uint FindChild(UIElement) const;
  12412. Variant GetAttribute(const String&) const;
  12413. ValueAnimation GetAttributeAnimation(const String&) const;
  12414. float GetAttributeAnimationSpeed(const String&) const;
  12415. float GetAttributeAnimationTime(const String&) const;
  12416. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12417. Variant GetAttributeDefault(const String&) const;
  12418. UIElement GetChild(const String&, bool = false) const;
  12419. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12420. Array<UIElement> GetChildren(bool = false) const;
  12421. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12422. UIElement GetElementEventSender() const;
  12423. bool GetInterceptNetworkUpdate(const String&) const;
  12424. uint GetNumChildren(bool) const;
  12425. bool HasSubscribedToEvent(Object, const String&);
  12426. bool HasSubscribedToEvent(const String&);
  12427. bool HasTag(const String&) const;
  12428. void InsertChild(uint, UIElement);
  12429. bool IsInside(IntVector2, bool);
  12430. bool IsInsideCombined(IntVector2, bool);
  12431. bool Load(File, bool = false);
  12432. bool Load(VectorBuffer&, bool = false);
  12433. bool LoadChildXML(XMLFile, XMLFile = null);
  12434. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12435. bool LoadJSON(const JSONValue&, bool = false);
  12436. bool LoadXML(File);
  12437. bool LoadXML(VectorBuffer&);
  12438. bool LoadXML(XMLFile, XMLFile);
  12439. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12440. bool LoadXML(const XMLElement&, bool = false);
  12441. void MarkNetworkUpdate() const;
  12442. void QueueUpdate();
  12443. void Remove();
  12444. void RemoveAllChildren();
  12445. void RemoveAllTags();
  12446. void RemoveAttributeAnimation(const String&);
  12447. void RemoveChild(UIElement, uint = 0);
  12448. void RemoveChild(uint);
  12449. void RemoveInstanceDefault();
  12450. void RemoveObjectAnimation();
  12451. bool RemoveTag(const String&);
  12452. void ResetDeepEnabled();
  12453. void ResetToDefault();
  12454. bool Save(File) const;
  12455. bool Save(VectorBuffer&) const;
  12456. bool SaveJSON(JSONValue&) const;
  12457. bool SaveXML(File, const String& = "\t");
  12458. bool SaveXML(VectorBuffer&, const String& = "\t");
  12459. bool SaveXML(XMLElement&) const;
  12460. IntVector2 ScreenToElement(const IntVector2&);
  12461. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12462. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12463. void SetAnimationTime(float);
  12464. bool SetAttribute(const String&, const Variant&);
  12465. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12466. void SetAttributeAnimationSpeed(const String&, float);
  12467. void SetAttributeAnimationTime(const String&, float);
  12468. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12469. void SetDeepEnabled(bool);
  12470. void SetEnabledRecursive(bool);
  12471. void SetFixedHeight(int);
  12472. void SetFixedSize(int, int);
  12473. void SetFixedWidth(int);
  12474. void SetFullImageRect();
  12475. void SetHoverOffset(int, int);
  12476. void SetInterceptNetworkUpdate(const String&, bool);
  12477. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12478. void SetMaxSize(int, int);
  12479. void SetMinSize(int, int);
  12480. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12481. void SetPosition(int, int);
  12482. void SetSize(int, int);
  12483. bool SetStyle(const String&, XMLFile = null);
  12484. bool SetStyle(const XMLElement&);
  12485. bool SetStyleAuto(XMLFile = null);
  12486. void SetView(Scene, Camera, bool = true);
  12487. void UpdateLayout();
  12488. const Variant& GetVar(const StringHash&);
  12489. // Properties:
  12490. bool animationEnabled;
  12491. /* readonly */
  12492. Array<Variant> attributeDefaults;
  12493. /* readonly */
  12494. Array<AttributeInfo> attributeInfos;
  12495. Array<Variant> attributes;
  12496. bool autoUpdate;
  12497. BlendMode blendMode;
  12498. IntRect border;
  12499. bool bringToBack;
  12500. bool bringToFront;
  12501. /* readonly */
  12502. Node cameraNode;
  12503. /* readonly */
  12504. String category;
  12505. /* readonly */
  12506. IntVector2 childOffset;
  12507. /* readonly */
  12508. Array<UIElement> children;
  12509. IntRect clipBorder;
  12510. bool clipChildren;
  12511. /* writeonly */
  12512. Color color;
  12513. /* readonly */
  12514. bool colorGradient;
  12515. Array<Color> colors;
  12516. /* readonly */
  12517. IntRect combinedScreenRect;
  12518. XMLFile defaultStyle;
  12519. /* readonly */
  12520. Texture2D depthTexture;
  12521. /* readonly */
  12522. float derivedOpacity;
  12523. /* readonly */
  12524. uint dragButtonCombo;
  12525. /* readonly */
  12526. int dragButtonCount;
  12527. uint dragDropMode;
  12528. bool editable;
  12529. bool elementEventSender;
  12530. bool enabled;
  12531. /* readonly */
  12532. bool enabledSelf;
  12533. /* readonly */
  12534. bool fixedHeight;
  12535. bool fixedHeightResizing;
  12536. /* readonly */
  12537. bool fixedSize;
  12538. /* readonly */
  12539. bool fixedWidth;
  12540. bool fixedWidthResizing;
  12541. bool focus;
  12542. FocusMode focusMode;
  12543. uint format;
  12544. int height;
  12545. HorizontalAlignment horizontalAlignment;
  12546. IntVector2 hoverOffset;
  12547. /* readonly */
  12548. bool hovering;
  12549. IntRect imageBorder;
  12550. IntRect imageRect;
  12551. int indent;
  12552. int indentSpacing;
  12553. /* readonly */
  12554. int indentWidth;
  12555. bool internal;
  12556. IntRect layoutBorder;
  12557. Vector2 layoutFlexScale;
  12558. LayoutMode layoutMode;
  12559. int layoutSpacing;
  12560. int maxHeight;
  12561. IntVector2 maxSize;
  12562. int maxWidth;
  12563. int minHeight;
  12564. IntVector2 minSize;
  12565. int minWidth;
  12566. bool modal;
  12567. bool modalAutoDismiss;
  12568. Color modalFrameColor;
  12569. IntVector2 modalFrameSize;
  12570. Color modalShadeColor;
  12571. bool movable;
  12572. String name;
  12573. /* readonly */
  12574. uint numAllChildren;
  12575. /* readonly */
  12576. uint numAttributes;
  12577. /* readonly */
  12578. uint numChildren;
  12579. ObjectAnimation objectAnimation;
  12580. float opacity;
  12581. UIElement parent;
  12582. IntVector2 position;
  12583. int priority;
  12584. /* readonly */
  12585. int refs;
  12586. /* readonly */
  12587. Texture2D renderTexture;
  12588. bool resizable;
  12589. IntRect resizeBorder;
  12590. /* readonly */
  12591. UIElement root;
  12592. /* readonly */
  12593. Scene scene;
  12594. /* readonly */
  12595. IntVector2 screenPosition;
  12596. bool selected;
  12597. IntVector2 size;
  12598. bool sortChildren;
  12599. String style;
  12600. /* readonly */
  12601. Array<String> tags;
  12602. bool temporary;
  12603. Texture texture;
  12604. bool tiled;
  12605. TraversalMode traversalMode;
  12606. /* readonly */
  12607. StringHash type;
  12608. /* readonly */
  12609. String typeName;
  12610. bool useDerivedOpacity;
  12611. /* readonly */
  12612. VariantMap vars;
  12613. VerticalAlignment verticalAlignment;
  12614. /* readonly */
  12615. Viewport viewport;
  12616. bool visible;
  12617. /* readonly */
  12618. bool visibleEffective;
  12619. /* readonly */
  12620. int weakRefs;
  12621. int width;
  12622. };
  12623. class Viewport
  12624. {
  12625. // Methods:
  12626. Ray GetScreenRay(int, int) const;
  12627. bool HasSubscribedToEvent(Object, const String&);
  12628. bool HasSubscribedToEvent(const String&);
  12629. Vector3 ScreenToWorldPoint(int, int, float) const;
  12630. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12631. void SetRenderPath(XMLFile);
  12632. Vector2 WorldToScreenPoint(const Vector3&) const;
  12633. // Properties:
  12634. Camera camera;
  12635. /* readonly */
  12636. String category;
  12637. Camera cullCamera;
  12638. bool drawDebug;
  12639. IntRect rect;
  12640. /* readonly */
  12641. int refs;
  12642. RenderPath renderPath;
  12643. Scene scene;
  12644. /* readonly */
  12645. StringHash type;
  12646. /* readonly */
  12647. String typeName;
  12648. /* readonly */
  12649. int weakRefs;
  12650. };
  12651. class WeakHandle
  12652. {
  12653. // Methods:
  12654. RefCounted Get() const;
  12655. // Properties:
  12656. /* readonly */
  12657. bool expired;
  12658. /* readonly */
  12659. int refs;
  12660. /* readonly */
  12661. int weakRefs;
  12662. };
  12663. class Window
  12664. {
  12665. // Methods:
  12666. void AddChild(UIElement);
  12667. void AddTag(const String&);
  12668. void AddTags(const String&, int8 = ';');
  12669. void ApplyAttributes();
  12670. void BringToFront();
  12671. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12672. void DisableLayoutUpdate();
  12673. IntVector2 ElementToScreen(const IntVector2&);
  12674. void EnableLayoutUpdate();
  12675. uint FindChild(UIElement) const;
  12676. Variant GetAttribute(const String&) const;
  12677. ValueAnimation GetAttributeAnimation(const String&) const;
  12678. float GetAttributeAnimationSpeed(const String&) const;
  12679. float GetAttributeAnimationTime(const String&) const;
  12680. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12681. Variant GetAttributeDefault(const String&) const;
  12682. UIElement GetChild(const String&, bool = false) const;
  12683. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12684. Array<UIElement> GetChildren(bool = false) const;
  12685. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12686. UIElement GetElementEventSender() const;
  12687. bool GetInterceptNetworkUpdate(const String&) const;
  12688. uint GetNumChildren(bool) const;
  12689. bool HasSubscribedToEvent(Object, const String&);
  12690. bool HasSubscribedToEvent(const String&);
  12691. bool HasTag(const String&) const;
  12692. void InsertChild(uint, UIElement);
  12693. bool IsInside(IntVector2, bool);
  12694. bool IsInsideCombined(IntVector2, bool);
  12695. bool Load(File, bool = false);
  12696. bool Load(VectorBuffer&, bool = false);
  12697. bool LoadChildXML(XMLFile, XMLFile = null);
  12698. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12699. bool LoadJSON(const JSONValue&, bool = false);
  12700. bool LoadXML(File);
  12701. bool LoadXML(VectorBuffer&);
  12702. bool LoadXML(XMLFile, XMLFile);
  12703. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12704. bool LoadXML(const XMLElement&, bool = false);
  12705. void MarkNetworkUpdate() const;
  12706. void Remove();
  12707. void RemoveAllChildren();
  12708. void RemoveAllTags();
  12709. void RemoveAttributeAnimation(const String&);
  12710. void RemoveChild(UIElement, uint = 0);
  12711. void RemoveChild(uint);
  12712. void RemoveInstanceDefault();
  12713. void RemoveObjectAnimation();
  12714. bool RemoveTag(const String&);
  12715. void ResetDeepEnabled();
  12716. void ResetToDefault();
  12717. bool Save(File) const;
  12718. bool Save(VectorBuffer&) const;
  12719. bool SaveJSON(JSONValue&) const;
  12720. bool SaveXML(File, const String& = "\t");
  12721. bool SaveXML(VectorBuffer&, const String& = "\t");
  12722. bool SaveXML(XMLElement&) const;
  12723. IntVector2 ScreenToElement(const IntVector2&);
  12724. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12725. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12726. void SetAnimationTime(float);
  12727. bool SetAttribute(const String&, const Variant&);
  12728. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12729. void SetAttributeAnimationSpeed(const String&, float);
  12730. void SetAttributeAnimationTime(const String&, float);
  12731. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12732. void SetDeepEnabled(bool);
  12733. void SetEnabledRecursive(bool);
  12734. void SetFixedHeight(int);
  12735. void SetFixedSize(int, int);
  12736. void SetFixedWidth(int);
  12737. void SetFullImageRect();
  12738. void SetHoverOffset(int, int);
  12739. void SetInterceptNetworkUpdate(const String&, bool);
  12740. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12741. void SetMaxSize(int, int);
  12742. void SetMinSize(int, int);
  12743. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12744. void SetPosition(int, int);
  12745. void SetSize(int, int);
  12746. bool SetStyle(const String&, XMLFile = null);
  12747. bool SetStyle(const XMLElement&);
  12748. bool SetStyleAuto(XMLFile = null);
  12749. void UpdateLayout();
  12750. const Variant& GetVar(const StringHash&);
  12751. // Properties:
  12752. bool animationEnabled;
  12753. /* readonly */
  12754. Array<Variant> attributeDefaults;
  12755. /* readonly */
  12756. Array<AttributeInfo> attributeInfos;
  12757. Array<Variant> attributes;
  12758. BlendMode blendMode;
  12759. IntRect border;
  12760. bool bringToBack;
  12761. bool bringToFront;
  12762. /* readonly */
  12763. String category;
  12764. /* readonly */
  12765. IntVector2 childOffset;
  12766. /* readonly */
  12767. Array<UIElement> children;
  12768. IntRect clipBorder;
  12769. bool clipChildren;
  12770. /* writeonly */
  12771. Color color;
  12772. /* readonly */
  12773. bool colorGradient;
  12774. Array<Color> colors;
  12775. /* readonly */
  12776. IntRect combinedScreenRect;
  12777. XMLFile defaultStyle;
  12778. /* readonly */
  12779. float derivedOpacity;
  12780. /* readonly */
  12781. uint dragButtonCombo;
  12782. /* readonly */
  12783. int dragButtonCount;
  12784. uint dragDropMode;
  12785. bool editable;
  12786. bool elementEventSender;
  12787. bool enabled;
  12788. /* readonly */
  12789. bool enabledSelf;
  12790. /* readonly */
  12791. bool fixedHeight;
  12792. bool fixedHeightResizing;
  12793. /* readonly */
  12794. bool fixedSize;
  12795. /* readonly */
  12796. bool fixedWidth;
  12797. bool fixedWidthResizing;
  12798. bool focus;
  12799. FocusMode focusMode;
  12800. int height;
  12801. HorizontalAlignment horizontalAlignment;
  12802. IntVector2 hoverOffset;
  12803. /* readonly */
  12804. bool hovering;
  12805. IntRect imageBorder;
  12806. IntRect imageRect;
  12807. int indent;
  12808. int indentSpacing;
  12809. /* readonly */
  12810. int indentWidth;
  12811. bool internal;
  12812. IntRect layoutBorder;
  12813. Vector2 layoutFlexScale;
  12814. LayoutMode layoutMode;
  12815. int layoutSpacing;
  12816. int maxHeight;
  12817. IntVector2 maxSize;
  12818. int maxWidth;
  12819. int minHeight;
  12820. IntVector2 minSize;
  12821. int minWidth;
  12822. bool modal;
  12823. bool modalAutoDismiss;
  12824. Color modalFrameColor;
  12825. IntVector2 modalFrameSize;
  12826. Color modalShadeColor;
  12827. bool movable;
  12828. String name;
  12829. /* readonly */
  12830. uint numAllChildren;
  12831. /* readonly */
  12832. uint numAttributes;
  12833. /* readonly */
  12834. uint numChildren;
  12835. ObjectAnimation objectAnimation;
  12836. float opacity;
  12837. UIElement parent;
  12838. IntVector2 position;
  12839. int priority;
  12840. /* readonly */
  12841. int refs;
  12842. bool resizable;
  12843. IntRect resizeBorder;
  12844. /* readonly */
  12845. UIElement root;
  12846. /* readonly */
  12847. IntVector2 screenPosition;
  12848. bool selected;
  12849. IntVector2 size;
  12850. bool sortChildren;
  12851. String style;
  12852. /* readonly */
  12853. Array<String> tags;
  12854. bool temporary;
  12855. Texture texture;
  12856. bool tiled;
  12857. TraversalMode traversalMode;
  12858. /* readonly */
  12859. StringHash type;
  12860. /* readonly */
  12861. String typeName;
  12862. bool useDerivedOpacity;
  12863. /* readonly */
  12864. VariantMap vars;
  12865. VerticalAlignment verticalAlignment;
  12866. bool visible;
  12867. /* readonly */
  12868. bool visibleEffective;
  12869. /* readonly */
  12870. int weakRefs;
  12871. int width;
  12872. };
  12873. class XMLElement
  12874. {
  12875. // Methods:
  12876. XMLElement CreateChild(const String&);
  12877. String GetAttribute(const String& = String ( )) const;
  12878. String GetAttributeLower(const String&) const;
  12879. Array<String> GetAttributeNames() const;
  12880. String GetAttributeUpper(const String&) const;
  12881. bool GetBool(const String&) const;
  12882. BoundingBox GetBoundingBox() const;
  12883. XMLElement GetChild(const String& = String ( )) const;
  12884. Color GetColor(const String&) const;
  12885. double GetDouble(const String&) const;
  12886. float GetFloat(const String&) const;
  12887. int GetInt(const String&) const;
  12888. IntRect GetIntRect(const String&) const;
  12889. IntVector2 GetIntVector2(const String&) const;
  12890. Matrix3 GetMatrix3(const String&) const;
  12891. Matrix3x4 GetMatrix3x4(const String&) const;
  12892. Matrix4 GetMatrix4(const String&) const;
  12893. XMLElement GetNext(const String& = String ( )) const;
  12894. Quaternion GetQuaternion(const String&) const;
  12895. ResourceRef GetResourceRef() const;
  12896. ResourceRefList GetResourceRefList() const;
  12897. uint GetUInt(const String&) const;
  12898. String GetValue() const;
  12899. Variant GetVariant() const;
  12900. VariantMap GetVariantMap() const;
  12901. Array<Variant> GetVariantVector() const;
  12902. Vector2 GetVector2(const String&) const;
  12903. Vector3 GetVector3(const String&) const;
  12904. Vector4 GetVector4(const String&) const;
  12905. Variant GetVectorVariant(const String&) const;
  12906. bool HasAttribute(const String&) const;
  12907. bool HasChild(const String&) const;
  12908. bool RemoveAttribute(const String& = String ( ));
  12909. bool RemoveChild(const String&);
  12910. bool RemoveChild(const XMLElement&);
  12911. bool RemoveChildren(const String& = String ( ));
  12912. XPathResultSet Select(const String&);
  12913. XPathResultSet SelectPrepared(const XPathQuery&);
  12914. XMLElement SelectSingle(const String&);
  12915. XMLElement SelectSinglePrepared(const XPathQuery&);
  12916. bool SetAttribute(const String&);
  12917. bool SetAttribute(const String&, const String&);
  12918. bool SetBool(const String&, bool);
  12919. bool SetBoundingBox(const BoundingBox&);
  12920. bool SetColor(const String&, const Color&);
  12921. bool SetDouble(const String&, double);
  12922. bool SetFloat(const String&, float);
  12923. bool SetInt(const String&, int);
  12924. bool SetIntRect(const String&, const IntRect&);
  12925. bool SetIntVector2(const String&, const IntVector2&);
  12926. bool SetMatrix3(const String&, const Matrix3&);
  12927. bool SetMatrix3x4(const String&, const Matrix3x4&);
  12928. bool SetMatrix4(const String&, const Matrix4&);
  12929. bool SetQuaternion(const String&, const Quaternion&);
  12930. bool SetResourceRef(const String&, const ResourceRef&);
  12931. bool SetResourceRefList(const String&, const ResourceRefList&);
  12932. bool SetUInt(const String&, uint);
  12933. bool SetValue(const String&);
  12934. bool SetVariant(const Variant&);
  12935. bool SetVariantMap(const VariantMap&);
  12936. bool SetVariantVector(Array<Variant>);
  12937. bool SetVector2(const String&, const Vector2&);
  12938. bool SetVector3(const String&, const Vector3&);
  12939. bool SetVector4(const String&, const Vector4&);
  12940. bool SetVectorVariant(const String&, const Variant&);
  12941. // Properties:
  12942. /* readonly */
  12943. XMLFile file;
  12944. /* readonly */
  12945. bool isNull;
  12946. /* readonly */
  12947. String name;
  12948. /* readonly */
  12949. XMLElement nextResult;
  12950. /* readonly */
  12951. bool notNull;
  12952. /* readonly */
  12953. uint numAttributes;
  12954. /* readonly */
  12955. XMLElement parent;
  12956. String value;
  12957. };
  12958. class XMLFile
  12959. {
  12960. // Methods:
  12961. XMLElement CreateRoot(const String&);
  12962. bool FromString(const String&);
  12963. XMLElement GetRoot(const String& = String ( ));
  12964. bool HasSubscribedToEvent(Object, const String&);
  12965. bool HasSubscribedToEvent(const String&);
  12966. bool Load(File);
  12967. bool Load(VectorBuffer&);
  12968. void Patch(XMLElement);
  12969. void Patch(XMLFile);
  12970. bool Save(File) const;
  12971. bool Save(File, const String&) const;
  12972. bool Save(VectorBuffer&) const;
  12973. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12974. String ToString(const String& = String ( "\t" )) const;
  12975. // Properties:
  12976. /* readonly */
  12977. String category;
  12978. /* readonly */
  12979. uint memoryUse;
  12980. String name;
  12981. /* readonly */
  12982. int refs;
  12983. /* readonly */
  12984. XMLElement root;
  12985. /* readonly */
  12986. StringHash type;
  12987. /* readonly */
  12988. String typeName;
  12989. /* readonly */
  12990. uint useTimer;
  12991. /* readonly */
  12992. int weakRefs;
  12993. };
  12994. class XPathQuery
  12995. {
  12996. // Methods:
  12997. void Bind();
  12998. void Clear();
  12999. XPathResultSet Evaluate(XMLElement);
  13000. bool EvaluateToBool(XMLElement);
  13001. float EvaluateToFloat(XMLElement);
  13002. String EvaluateToString(XMLElement);
  13003. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13004. bool SetVariable(const String&, bool);
  13005. bool SetVariable(const String&, const String&);
  13006. bool SetVariable(const String&, const XPathResultSet&);
  13007. bool SetVariable(const String&, float);
  13008. // Properties:
  13009. String query;
  13010. };
  13011. class XPathResultSet
  13012. {
  13013. // Properties:
  13014. /* readonly */
  13015. bool empty;
  13016. /* readonly */
  13017. XMLElement firstResult;
  13018. /* readonly */
  13019. uint size;
  13020. };
  13021. class Zone
  13022. {
  13023. // Methods:
  13024. void ApplyAttributes();
  13025. void DrawDebugGeometry(DebugRenderer, bool);
  13026. Variant GetAttribute(const String&) const;
  13027. ValueAnimation GetAttributeAnimation(const String&) const;
  13028. float GetAttributeAnimationSpeed(const String&) const;
  13029. float GetAttributeAnimationTime(const String&) const;
  13030. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13031. Variant GetAttributeDefault(const String&) const;
  13032. bool GetInterceptNetworkUpdate(const String&) const;
  13033. bool HasSubscribedToEvent(Object, const String&);
  13034. bool HasSubscribedToEvent(const String&);
  13035. bool IsInView(Camera) const;
  13036. bool Load(File, bool = false);
  13037. bool Load(VectorBuffer&, bool = false);
  13038. bool LoadJSON(const JSONValue&, bool = false);
  13039. bool LoadXML(const XMLElement&, bool = false);
  13040. void MarkNetworkUpdate() const;
  13041. void Remove();
  13042. void RemoveAttributeAnimation(const String&);
  13043. void RemoveInstanceDefault();
  13044. void RemoveObjectAnimation();
  13045. void ResetToDefault();
  13046. bool Save(File) const;
  13047. bool Save(VectorBuffer&) const;
  13048. bool SaveJSON(JSONValue&) const;
  13049. bool SaveXML(XMLElement&) const;
  13050. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13051. void SetAnimationTime(float);
  13052. bool SetAttribute(const String&, const Variant&);
  13053. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13054. void SetAttributeAnimationSpeed(const String&, float);
  13055. void SetAttributeAnimationTime(const String&, float);
  13056. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13057. void SetInterceptNetworkUpdate(const String&, bool);
  13058. // Properties:
  13059. Color ambientColor;
  13060. /* readonly */
  13061. Color ambientEndColor;
  13062. bool ambientGradient;
  13063. /* readonly */
  13064. Color ambientStartColor;
  13065. bool animationEnabled;
  13066. /* readonly */
  13067. Array<Variant> attributeDefaults;
  13068. /* readonly */
  13069. Array<AttributeInfo> attributeInfos;
  13070. Array<Variant> attributes;
  13071. BoundingBox boundingBox;
  13072. bool castShadows;
  13073. /* readonly */
  13074. String category;
  13075. float drawDistance;
  13076. bool enabled;
  13077. /* readonly */
  13078. bool enabledEffective;
  13079. Color fogColor;
  13080. float fogEnd;
  13081. float fogHeight;
  13082. float fogHeightScale;
  13083. float fogStart;
  13084. bool heightFog;
  13085. /* readonly */
  13086. uint id;
  13087. /* readonly */
  13088. bool inView;
  13089. /* readonly */
  13090. Matrix3x4 inverseWorldTransform;
  13091. uint lightMask;
  13092. float lodBias;
  13093. uint maxLights;
  13094. /* readonly */
  13095. Node node;
  13096. /* readonly */
  13097. uint numAttributes;
  13098. ObjectAnimation objectAnimation;
  13099. bool occludee;
  13100. bool occluder;
  13101. bool override;
  13102. int priority;
  13103. /* readonly */
  13104. int refs;
  13105. float shadowDistance;
  13106. uint shadowMask;
  13107. bool temporary;
  13108. /* readonly */
  13109. StringHash type;
  13110. /* readonly */
  13111. String typeName;
  13112. uint viewMask;
  13113. /* readonly */
  13114. int weakRefs;
  13115. /* readonly */
  13116. BoundingBox worldBoundingBox;
  13117. uint zoneMask;
  13118. Texture zoneTexture;
  13119. };
  13120. // Enumerations
  13121. enum BlendMode
  13122. {
  13123. BLEND_REPLACE,
  13124. BLEND_ADD,
  13125. BLEND_MULTIPLY,
  13126. BLEND_ALPHA,
  13127. BLEND_ADDALPHA,
  13128. BLEND_PREMULALPHA,
  13129. BLEND_INVDESTALPHA,
  13130. BLEND_SUBTRACT,
  13131. BLEND_SUBTRACTALPHA,
  13132. };
  13133. enum BodyType2D
  13134. {
  13135. BT_STATIC,
  13136. BT_KINEMATIC,
  13137. BT_DYNAMIC,
  13138. };
  13139. enum CollisionEventMode
  13140. {
  13141. COLLISION_NEVER,
  13142. COLLISION_ACTIVE,
  13143. COLLISION_ALWAYS,
  13144. };
  13145. enum CompareMode
  13146. {
  13147. CMP_ALWAYS,
  13148. CMP_EQUAL,
  13149. CMP_NOTEQUAL,
  13150. CMP_LESS,
  13151. CMP_LESSEQUAL,
  13152. CMP_GREATER,
  13153. CMP_GREATEREQUAL,
  13154. };
  13155. enum CompressedFormat
  13156. {
  13157. CF_NONE,
  13158. CF_RGBA,
  13159. CF_DXT1,
  13160. CF_DXT3,
  13161. CF_DXT5,
  13162. CF_ETC1,
  13163. CF_PVRTC_RGB_2BPP,
  13164. CF_PVRTC_RGBA_2BPP,
  13165. CF_PVRTC_RGB_4BPP,
  13166. CF_PVRTC_RGBA_4BPP,
  13167. };
  13168. enum ConstraintType
  13169. {
  13170. CONSTRAINT_POINT,
  13171. CONSTRAINT_HINGE,
  13172. CONSTRAINT_SLIDER,
  13173. CONSTRAINT_CONETWIST,
  13174. };
  13175. enum Corner
  13176. {
  13177. C_TOPLEFT,
  13178. C_TOPRIGHT,
  13179. C_BOTTOMLEFT,
  13180. C_BOTTOMRIGHT,
  13181. };
  13182. enum CreateMode
  13183. {
  13184. REPLICATED,
  13185. LOCAL,
  13186. };
  13187. enum CrowdAgentRequestedTarget
  13188. {
  13189. CA_REQUESTEDTARGET_NONE,
  13190. CA_REQUESTEDTARGET_POSITION,
  13191. CA_REQUESTEDTARGET_VELOCITY,
  13192. };
  13193. enum CrowdAgentState
  13194. {
  13195. CA_STATE_INVALID,
  13196. CA_STATE_WALKING,
  13197. CA_STATE_OFFMESH,
  13198. };
  13199. enum CrowdAgentTargetState
  13200. {
  13201. CA_TARGET_NONE,
  13202. CA_TARGET_FAILED,
  13203. CA_TARGET_VALID,
  13204. CA_TARGET_REQUESTING,
  13205. CA_TARGET_WAITINGFORQUEUE,
  13206. CA_TARGET_WAITINGFORPATH,
  13207. CA_TARGET_VELOCITY,
  13208. };
  13209. enum CubeMapFace
  13210. {
  13211. FACE_POSITIVE_X,
  13212. FACE_NEGATIVE_X,
  13213. FACE_POSITIVE_Y,
  13214. FACE_NEGATIVE_Y,
  13215. FACE_POSITIVE_Z,
  13216. FACE_NEGATIVE_Z,
  13217. };
  13218. enum CullMode
  13219. {
  13220. CULL_NONE,
  13221. CULL_CCW,
  13222. CULL_CW,
  13223. };
  13224. enum CursorShape
  13225. {
  13226. CS_NORMAL,
  13227. CS_IBEAM,
  13228. CS_CROSS,
  13229. CS_RESIZEVERTICAL,
  13230. CS_RESIZEDIAGONAL_TOPRIGHT,
  13231. CS_RESIZEHORIZONTAL,
  13232. CS_RESIZEDIAGONAL_TOPLEFT,
  13233. CS_RESIZE_ALL,
  13234. CS_ACCEPTDROP,
  13235. CS_REJECTDROP,
  13236. CS_BUSY,
  13237. CS_BUSY_ARROW,
  13238. };
  13239. enum DBAPI
  13240. {
  13241. DBAPI_SQLITE,
  13242. DBAPI_ODBC,
  13243. };
  13244. enum DumpMode
  13245. {
  13246. DOXYGEN,
  13247. C_HEADER,
  13248. };
  13249. enum EmitterType
  13250. {
  13251. EMITTER_SPHERE,
  13252. EMITTER_BOX,
  13253. };
  13254. enum EmitterType2D
  13255. {
  13256. EMITTER_TYPE_GRAVITY,
  13257. EMITTER_TYPE_RADIAL,
  13258. };
  13259. enum FaceCameraMode
  13260. {
  13261. FC_NONE,
  13262. FC_ROTATE_XYZ,
  13263. FC_ROTATE_Y,
  13264. FC_LOOKAT_XYZ,
  13265. FC_LOOKAT_Y,
  13266. FC_DIRECTION,
  13267. };
  13268. enum FileMode
  13269. {
  13270. FILE_READ,
  13271. FILE_WRITE,
  13272. FILE_READWRITE,
  13273. };
  13274. enum FillMode
  13275. {
  13276. FILL_SOLID,
  13277. FILL_WIREFRAME,
  13278. FILL_POINT,
  13279. };
  13280. enum FocusMode
  13281. {
  13282. FM_NOTFOCUSABLE,
  13283. FM_RESETFOCUS,
  13284. FM_FOCUSABLE,
  13285. FM_FOCUSABLE_DEFOCUSABLE,
  13286. };
  13287. enum HighlightMode
  13288. {
  13289. HM_NEVER,
  13290. HM_FOCUS,
  13291. HM_ALWAYS,
  13292. };
  13293. enum HorizontalAlignment
  13294. {
  13295. HA_LEFT,
  13296. HA_CENTER,
  13297. HA_RIGHT,
  13298. };
  13299. enum HttpRequestState
  13300. {
  13301. HTTP_INITIALIZING,
  13302. HTTP_ERROR,
  13303. HTTP_OPEN,
  13304. HTTP_CLOSED,
  13305. };
  13306. enum InterpMethod
  13307. {
  13308. IM_LINEAR,
  13309. IM_SPLINE,
  13310. };
  13311. enum InterpolationMode
  13312. {
  13313. BEZIER_CURVE,
  13314. CATMULL_ROM_CURVE,
  13315. LINEAR_CURVE,
  13316. CATMULL_ROM_FULL_CURVE,
  13317. };
  13318. enum Intersection
  13319. {
  13320. OUTSIDE,
  13321. INTERSECTS,
  13322. INSIDE,
  13323. };
  13324. enum JSONValueType
  13325. {
  13326. JSON_NULL,
  13327. JSON_BOOL,
  13328. JSON_NUMBER,
  13329. JSON_STRING,
  13330. JSON_ARRAY,
  13331. JSON_OBJECT,
  13332. };
  13333. enum LayoutMode
  13334. {
  13335. LM_FREE,
  13336. LM_HORIZONTAL,
  13337. LM_VERTICAL,
  13338. };
  13339. enum LightType
  13340. {
  13341. LIGHT_DIRECTIONAL,
  13342. LIGHT_SPOT,
  13343. LIGHT_POINT,
  13344. };
  13345. enum LoadMode
  13346. {
  13347. LOAD_RESOURCES_ONLY,
  13348. LOAD_SCENE,
  13349. LOAD_SCENE_AND_RESOURCES,
  13350. };
  13351. enum LoopMode2D
  13352. {
  13353. LM_DEFAULT,
  13354. LM_FORCE_LOOPED,
  13355. LM_FORCE_CLAMPED,
  13356. };
  13357. enum MouseMode
  13358. {
  13359. MM_ABSOLUTE,
  13360. MM_RELATIVE,
  13361. MM_WRAP,
  13362. MM_FREE,
  13363. };
  13364. enum NavigationPushiness
  13365. {
  13366. NAVIGATIONPUSHINESS_LOW,
  13367. NAVIGATIONPUSHINESS_MEDIUM,
  13368. NAVIGATIONPUSHINESS_HIGH,
  13369. };
  13370. enum NavigationQuality
  13371. {
  13372. NAVIGATIONQUALITY_LOW,
  13373. NAVIGATIONQUALITY_MEDIUM,
  13374. NAVIGATIONQUALITY_HIGH,
  13375. };
  13376. enum NavmeshPartitionType
  13377. {
  13378. NAVMESH_PARTITION_WATERSHED,
  13379. NAVMESH_PARTITION_MONOTONE,
  13380. };
  13381. enum Orientation
  13382. {
  13383. O_HORIZONTAL,
  13384. O_VERTICAL,
  13385. };
  13386. enum Orientation2D
  13387. {
  13388. O_ORTHOGONAL,
  13389. O_ISOMETRIC,
  13390. O_STAGGERED,
  13391. };
  13392. enum PassLightingMode
  13393. {
  13394. LIGHTING_UNLIT,
  13395. LIGHTING_PERVERTEX,
  13396. LIGHTING_PERPIXEL,
  13397. };
  13398. enum PrimitiveType
  13399. {
  13400. TRIANGLE_LIST,
  13401. LINE_LIST,
  13402. POINT_LIST,
  13403. TRIANGLE_STRIP,
  13404. LINE_STRIP,
  13405. TRIANGLE_FAN,
  13406. };
  13407. enum RayQueryLevel
  13408. {
  13409. RAY_AABB,
  13410. RAY_OBB,
  13411. RAY_TRIANGLE,
  13412. RAY_TRIANGLE_UV,
  13413. };
  13414. enum RenderCommandSortMode
  13415. {
  13416. SORT_FRONTTOBACK,
  13417. SORT_BACKTOFRONT,
  13418. };
  13419. enum RenderCommandType
  13420. {
  13421. CMD_NONE,
  13422. CMD_CLEAR,
  13423. CMD_SCENEPASS,
  13424. CMD_QUAD,
  13425. CMD_FORWARDLIGHTS,
  13426. CMD_LIGHTVOLUMES,
  13427. CMD_RENDERUI,
  13428. };
  13429. enum RenderSurfaceUpdateMode
  13430. {
  13431. SURFACE_MANUALUPDATE,
  13432. SURFACE_UPDATEVISIBLE,
  13433. SURFACE_UPDATEALWAYS,
  13434. };
  13435. enum RenderTargetSizeMode
  13436. {
  13437. SIZE_ABSOLUTE,
  13438. SIZE_VIEWPORTDIVISOR,
  13439. SIZE_VIEWPORTMULTIPLIER,
  13440. };
  13441. enum ShadowQuality
  13442. {
  13443. SHADOWQUALITY_SIMPLE_16BIT,
  13444. SHADOWQUALITY_SIMPLE_24BIT,
  13445. SHADOWQUALITY_PCF_16BIT,
  13446. SHADOWQUALITY_PCF_24BIT,
  13447. SHADOWQUALITY_VSM,
  13448. SHADOWQUALITY_BLUR_VSM,
  13449. };
  13450. enum ShapeType
  13451. {
  13452. SHAPE_BOX,
  13453. SHAPE_SPHERE,
  13454. SHAPE_STATICPLANE,
  13455. SHAPE_CYLINDER,
  13456. SHAPE_CAPSULE,
  13457. SHAPE_CONE,
  13458. SHAPE_TRIANGLEMESH,
  13459. SHAPE_CONVEXHULL,
  13460. SHAPE_TERRAIN,
  13461. };
  13462. enum TextEffect
  13463. {
  13464. TE_NONE,
  13465. TE_SHADOW,
  13466. TE_STROKE,
  13467. };
  13468. enum TextureAddressMode
  13469. {
  13470. ADDRESS_WRAP,
  13471. ADDRESS_MIRROR,
  13472. ADDRESS_CLAMP,
  13473. ADDRESS_BORDER,
  13474. };
  13475. enum TextureCoordinate
  13476. {
  13477. COORD_U,
  13478. COORD_V,
  13479. COORD_W,
  13480. };
  13481. enum TextureFilterMode
  13482. {
  13483. FILTER_NEAREST,
  13484. FILTER_BILINEAR,
  13485. FILTER_TRILINEAR,
  13486. FILTER_ANISOTROPIC,
  13487. FILTER_DEFAULT,
  13488. };
  13489. enum TextureUnit
  13490. {
  13491. TU_DIFFUSE,
  13492. TU_ALBEDOBUFFER,
  13493. TU_NORMAL,
  13494. TU_NORMALBUFFER,
  13495. TU_SPECULAR,
  13496. TU_EMISSIVE,
  13497. TU_ENVIRONMENT,
  13498. TU_LIGHTRAMP,
  13499. TU_LIGHTSHAPE,
  13500. TU_SHADOWMAP,
  13501. TU_CUSTOM1,
  13502. TU_CUSTOM2,
  13503. TU_VOLUMEMAP,
  13504. TU_FACESELECT,
  13505. TU_INDIRECTION,
  13506. TU_DEPTHBUFFER,
  13507. TU_LIGHTBUFFER,
  13508. TU_ZONE,
  13509. MAX_MATERIAL_TEXTURE_UNITS,
  13510. MAX_TEXTURE_UNITS,
  13511. };
  13512. enum TextureUsage
  13513. {
  13514. TEXTURE_STATIC,
  13515. TEXTURE_DYNAMIC,
  13516. TEXTURE_RENDERTARGET,
  13517. TEXTURE_DEPTHSTENCIL,
  13518. };
  13519. enum TileMapLayerType2D
  13520. {
  13521. LT_TILE_LAYER,
  13522. LT_OBJECT_GROUP,
  13523. LT_IMAGE_LAYER,
  13524. LT_INVALID,
  13525. };
  13526. enum TileObjectType2D
  13527. {
  13528. OT_RECTANGLE,
  13529. OT_ELLIPSE,
  13530. OT_POLYGON,
  13531. OT_POLYLINE,
  13532. OT_TILE,
  13533. OT_INVALID,
  13534. };
  13535. enum TransformSpace
  13536. {
  13537. TS_LOCAL,
  13538. TS_PARENT,
  13539. TS_WORLD,
  13540. };
  13541. enum TraversalMode
  13542. {
  13543. TM_BREADTH_FIRST,
  13544. TM_DEPTH_FIRST,
  13545. };
  13546. enum VariantType
  13547. {
  13548. VAR_NONE,
  13549. VAR_INT,
  13550. VAR_BOOL,
  13551. VAR_FLOAT,
  13552. VAR_VECTOR2,
  13553. VAR_VECTOR3,
  13554. VAR_VECTOR4,
  13555. VAR_QUATERNION,
  13556. VAR_COLOR,
  13557. VAR_STRING,
  13558. VAR_BUFFER,
  13559. VAR_VOIDPTR,
  13560. VAR_RESOURCEREF,
  13561. VAR_RESOURCEREFLIST,
  13562. VAR_VARIANTVECTOR,
  13563. VAR_VARIANTMAP,
  13564. VAR_INTRECT,
  13565. VAR_INTVECTOR2,
  13566. VAR_PTR,
  13567. VAR_MATRIX3,
  13568. VAR_MATRIX3X4,
  13569. VAR_MATRIX4,
  13570. VAR_DOUBLE,
  13571. VAR_STRINGVECTOR,
  13572. };
  13573. enum VerticalAlignment
  13574. {
  13575. VA_TOP,
  13576. VA_CENTER,
  13577. VA_BOTTOM,
  13578. };
  13579. enum WrapMode
  13580. {
  13581. WM_LOOP,
  13582. WM_ONCE,
  13583. WM_CLAMP,
  13584. };
  13585. // Global functions
  13586. float Abs(float);
  13587. float Acos(float);
  13588. String AddTrailingSlash(const String&);
  13589. float Asin(float);
  13590. float Atan(float);
  13591. float Atan2(float, float);
  13592. float Ceil(float);
  13593. float Clamp(float, float, float);
  13594. int Clamp(int, int, int);
  13595. void ClearDelayedExecute(const String& = String ( ));
  13596. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  13597. float Cos(float);
  13598. uint CountSetBits(uint);
  13599. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  13600. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  13601. bool Equals(float, float);
  13602. void ErrorDialog(const String&, const String&);
  13603. float Floor(float);
  13604. uint GetAlphaFormat();
  13605. Array<String> GetArguments();
  13606. String GetConsoleInput();
  13607. uint GetDepthStencilFormat();
  13608. Object GetEventSender();
  13609. String GetExtension(const String&, bool = true);
  13610. String GetFileName(const String&);
  13611. String GetFileNameAndExtension(const String&, bool = false);
  13612. String GetFileSizeString(uint64);
  13613. uint GetFloat16Format();
  13614. uint GetFloat32Format();
  13615. uint GetFormat(const String&);
  13616. String GetInternalPath(const String&);
  13617. uint GetLinearDepthFormat();
  13618. uint GetLuminanceAlphaFormat();
  13619. uint GetLuminanceFormat();
  13620. uint GetMaxBones();
  13621. String GetMiniDumpDir();
  13622. uint GetNumLogicalCPUs();
  13623. uint GetNumPhysicalCPUs();
  13624. Array<String> GetObjectCategories();
  13625. Array<String> GetObjectsByCategory(const String&);
  13626. String GetParentPath(const String&);
  13627. String GetPath(const String&);
  13628. String GetPlatform();
  13629. uint GetRG16Format();
  13630. uint GetRGBA16Format();
  13631. uint GetRGBAFloat16Format();
  13632. uint GetRGBAFloat32Format();
  13633. uint GetRGBAFormat();
  13634. uint GetRGBFormat();
  13635. uint GetRGFloat16Format();
  13636. uint GetRGFloat32Format();
  13637. uint GetRandomSeed();
  13638. uint GetReadableDepthFormat();
  13639. String GetTextureUnitName(TextureUnit);
  13640. bool HasSubscribedToEvent(Object, const String&);
  13641. bool HasSubscribedToEvent(const String&);
  13642. bool IsAbsolutePath(const String&);
  13643. bool IsAlpha(uint);
  13644. bool IsDigit(uint);
  13645. bool IsNaN(float);
  13646. bool IsPowerOfTwo(uint);
  13647. String Join(Array<String>&, const String&);
  13648. float Lerp(float, float, float);
  13649. void MarkNetworkUpdate();
  13650. float Max(float, float);
  13651. int Max(int, int);
  13652. float Min(float, float);
  13653. int Min(int, int);
  13654. float Mod(float, float);
  13655. uint NextPowerOfTwo(uint);
  13656. void OpenConsoleWindow();
  13657. float Pow(float, float);
  13658. void Print(bool, bool = false);
  13659. void Print(const String&, bool = false);
  13660. void Print(const Variant&, bool = false);
  13661. void Print(float, bool = false);
  13662. void Print(int, bool = false);
  13663. void Print(uint, bool = false);
  13664. void PrintCallStack(bool = false);
  13665. float Random();
  13666. float Random(float);
  13667. float Random(float, float);
  13668. int RandomInt();
  13669. int RandomInt(int);
  13670. int RandomInt(int, int);
  13671. float RandomNormal(float, float);
  13672. void Remove();
  13673. String RemoveTrailingSlash(const String&);
  13674. String ReplaceExtension(const String&, const String&);
  13675. uint SDBMHash(uint, uint8);
  13676. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13677. void SetMiniDumpDir(const String&);
  13678. void SetRandomSeed(uint);
  13679. float Sign(float);
  13680. float Sin(float);
  13681. float SmoothStep(float, float, float);
  13682. float Sqrt(float);
  13683. const String& GetTypeName(StringHash);
  13684. void SubscribeToEvent(Object, const String&, const String&);
  13685. void SubscribeToEvent(const String&, const String&);
  13686. float Tan(float);
  13687. uint ToLower(uint);
  13688. String ToStringHex(int);
  13689. uint ToUpper(uint);
  13690. void UnsubscribeFromAllEvents();
  13691. void UnsubscribeFromAllEventsExcept(Array<String>);
  13692. void UnsubscribeFromEvent(Object, const String&);
  13693. void UnsubscribeFromEvent(const String&);
  13694. void UnsubscribeFromEvents(Object);
  13695. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13696. // Global properties
  13697. DBAPI DBAPI;
  13698. Audio audio;
  13699. ResourceCache cache;
  13700. Console console;
  13701. Database database;
  13702. DebugHud debugHud;
  13703. DebugRenderer debugRenderer;
  13704. Engine engine;
  13705. FileSystem fileSystem;
  13706. Graphics graphics;
  13707. Input input;
  13708. Localization localization;
  13709. Log log;
  13710. Network network;
  13711. Node node;
  13712. Octree octree;
  13713. PhysicsWorld physicsWorld;
  13714. PhysicsWorld2D physicsWorld2D;
  13715. Renderer renderer;
  13716. ResourceCache resourceCache;
  13717. Scene scene;
  13718. Script script;
  13719. ScriptFile scriptFile;
  13720. ScriptInstance self;
  13721. Time time;
  13722. UI ui;
  13723. // Global constants
  13724. uint AM_COMPONENTID;
  13725. uint AM_DEFAULT;
  13726. uint AM_FILE;
  13727. uint AM_LATESTDATA;
  13728. uint AM_NET;
  13729. uint AM_NODEID;
  13730. uint AM_NODEIDVECTOR;
  13731. uint AM_NOEDIT;
  13732. Color BLACK;
  13733. Color BLUE;
  13734. uint8 CHANNEL_POSITION;
  13735. uint8 CHANNEL_ROTATION;
  13736. uint8 CHANNEL_SCALE;
  13737. uint CLEAR_COLOR;
  13738. uint CLEAR_DEPTH;
  13739. uint CLEAR_STENCIL;
  13740. int CONTROLLER_AXIS_LEFTX;
  13741. int CONTROLLER_AXIS_LEFTY;
  13742. int CONTROLLER_AXIS_RIGHTX;
  13743. int CONTROLLER_AXIS_RIGHTY;
  13744. int CONTROLLER_AXIS_TRIGGERLEFT;
  13745. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13746. int CONTROLLER_BUTTON_A;
  13747. int CONTROLLER_BUTTON_B;
  13748. int CONTROLLER_BUTTON_BACK;
  13749. int CONTROLLER_BUTTON_DPAD_DOWN;
  13750. int CONTROLLER_BUTTON_DPAD_LEFT;
  13751. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13752. int CONTROLLER_BUTTON_DPAD_UP;
  13753. int CONTROLLER_BUTTON_GUIDE;
  13754. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13755. int CONTROLLER_BUTTON_LEFTSTICK;
  13756. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13757. int CONTROLLER_BUTTON_RIGHTSTICK;
  13758. int CONTROLLER_BUTTON_START;
  13759. int CONTROLLER_BUTTON_X;
  13760. int CONTROLLER_BUTTON_Y;
  13761. Color CYAN;
  13762. uint DD_DISABLED;
  13763. uint DD_SOURCE;
  13764. uint DD_SOURCE_AND_TARGET;
  13765. uint DD_TARGET;
  13766. uint DEBUGHUD_SHOW_ALL;
  13767. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13768. uint DEBUGHUD_SHOW_MEMORY;
  13769. uint DEBUGHUD_SHOW_MODE;
  13770. uint DEBUGHUD_SHOW_NONE;
  13771. uint DEBUGHUD_SHOW_PROFILER;
  13772. uint DEBUGHUD_SHOW_STATS;
  13773. uint DEFAULT_LIGHTMASK;
  13774. uint DEFAULT_VIEWMASK;
  13775. uint DRAWABLE_ANY;
  13776. uint DRAWABLE_GEOMETRY;
  13777. uint DRAWABLE_GEOMETRY2D;
  13778. uint DRAWABLE_LIGHT;
  13779. uint DRAWABLE_ZONE;
  13780. uint FIRST_LOCAL_ID;
  13781. uint FIRST_REPLICATED_ID;
  13782. Color GRAY;
  13783. Color GREEN;
  13784. int HAT_CENTER;
  13785. int HAT_DOWN;
  13786. int HAT_LEFT;
  13787. int HAT_RIGHT;
  13788. int HAT_UP;
  13789. int KEY_0;
  13790. int KEY_1;
  13791. int KEY_2;
  13792. int KEY_3;
  13793. int KEY_4;
  13794. int KEY_5;
  13795. int KEY_6;
  13796. int KEY_7;
  13797. int KEY_8;
  13798. int KEY_9;
  13799. int KEY_A;
  13800. int KEY_ALT;
  13801. int KEY_APPLICATION;
  13802. int KEY_B;
  13803. int KEY_BACKSPACE;
  13804. int KEY_C;
  13805. int KEY_CAPSLOCK;
  13806. int KEY_CTRL;
  13807. int KEY_D;
  13808. int KEY_DELETE;
  13809. int KEY_DOWN;
  13810. int KEY_E;
  13811. int KEY_END;
  13812. int KEY_ESC;
  13813. int KEY_F;
  13814. int KEY_F1;
  13815. int KEY_F10;
  13816. int KEY_F11;
  13817. int KEY_F12;
  13818. int KEY_F13;
  13819. int KEY_F14;
  13820. int KEY_F15;
  13821. int KEY_F16;
  13822. int KEY_F17;
  13823. int KEY_F18;
  13824. int KEY_F19;
  13825. int KEY_F2;
  13826. int KEY_F20;
  13827. int KEY_F21;
  13828. int KEY_F22;
  13829. int KEY_F23;
  13830. int KEY_F24;
  13831. int KEY_F3;
  13832. int KEY_F4;
  13833. int KEY_F5;
  13834. int KEY_F6;
  13835. int KEY_F7;
  13836. int KEY_F8;
  13837. int KEY_F9;
  13838. int KEY_G;
  13839. int KEY_GUI;
  13840. int KEY_H;
  13841. int KEY_HOME;
  13842. int KEY_I;
  13843. int KEY_INSERT;
  13844. int KEY_J;
  13845. int KEY_K;
  13846. int KEY_KP_0;
  13847. int KEY_KP_1;
  13848. int KEY_KP_2;
  13849. int KEY_KP_3;
  13850. int KEY_KP_4;
  13851. int KEY_KP_5;
  13852. int KEY_KP_6;
  13853. int KEY_KP_7;
  13854. int KEY_KP_8;
  13855. int KEY_KP_9;
  13856. int KEY_KP_DIVIDE;
  13857. int KEY_KP_ENTER;
  13858. int KEY_KP_MINUS;
  13859. int KEY_KP_MULTIPLY;
  13860. int KEY_KP_PERIOD;
  13861. int KEY_KP_PLUS;
  13862. int KEY_L;
  13863. int KEY_LALT;
  13864. int KEY_LCTRL;
  13865. int KEY_LEFT;
  13866. int KEY_LGUI;
  13867. int KEY_LSHIFT;
  13868. int KEY_M;
  13869. int KEY_N;
  13870. int KEY_NUMLOCKCLEAR;
  13871. int KEY_O;
  13872. int KEY_P;
  13873. int KEY_PAGEDOWN;
  13874. int KEY_PAGEUP;
  13875. int KEY_PAUSE;
  13876. int KEY_PRINTSCREEN;
  13877. int KEY_Q;
  13878. int KEY_R;
  13879. int KEY_RALT;
  13880. int KEY_RCTRL;
  13881. int KEY_RETURN;
  13882. int KEY_RETURN2;
  13883. int KEY_RGUI;
  13884. int KEY_RIGHT;
  13885. int KEY_RSHIFT;
  13886. int KEY_S;
  13887. int KEY_SCROLLLOCK;
  13888. int KEY_SELECT;
  13889. int KEY_SHIFT;
  13890. int KEY_SPACE;
  13891. int KEY_T;
  13892. int KEY_TAB;
  13893. int KEY_U;
  13894. int KEY_UP;
  13895. int KEY_V;
  13896. int KEY_W;
  13897. int KEY_X;
  13898. int KEY_Y;
  13899. int KEY_Z;
  13900. uint LAST_LOCAL_ID;
  13901. uint LAST_REPLICATED_ID;
  13902. int LOG_DEBUG;
  13903. int LOG_ERROR;
  13904. int LOG_INFO;
  13905. int LOG_NONE;
  13906. int LOG_WARNING;
  13907. Color MAGENTA;
  13908. uint MASK_BLENDINDICES;
  13909. uint MASK_BLENDWEIGHTS;
  13910. uint MASK_COLOR;
  13911. uint MASK_CUBETEXCOORD1;
  13912. uint MASK_CUBETEXCOORD2;
  13913. uint MASK_DEFAULT;
  13914. uint MASK_INSTANCEMATRIX1;
  13915. uint MASK_INSTANCEMATRIX2;
  13916. uint MASK_INSTANCEMATRIX3;
  13917. uint MASK_NONE;
  13918. uint MASK_NORMAL;
  13919. uint MASK_OBJECTINDEX;
  13920. uint MASK_POSITION;
  13921. uint MASK_TANGENT;
  13922. uint MASK_TEXCOORD1;
  13923. uint MASK_TEXCOORD2;
  13924. int MOUSEB_LEFT;
  13925. int MOUSEB_MIDDLE;
  13926. int MOUSEB_RIGHT;
  13927. float M_DEGTORAD;
  13928. float M_DEGTORAD_2;
  13929. float M_EPSILON;
  13930. float M_HALF_PI;
  13931. float M_INFINITY;
  13932. float M_LARGE_EPSILON;
  13933. float M_LARGE_VALUE;
  13934. int M_MAX_INT;
  13935. uint M_MAX_UNSIGNED;
  13936. int M_MIN_INT;
  13937. uint M_MIN_UNSIGNED;
  13938. float M_PI;
  13939. float M_RADTODEG;
  13940. float PIXEL_SIZE;
  13941. int QUALITY_HIGH;
  13942. int QUALITY_LOW;
  13943. int QUALITY_MAX;
  13944. int QUALITY_MEDIUM;
  13945. int QUAL_ALT;
  13946. int QUAL_ANY;
  13947. int QUAL_CTRL;
  13948. int QUAL_SHIFT;
  13949. Color RED;
  13950. int SCANCODE_0;
  13951. int SCANCODE_1;
  13952. int SCANCODE_2;
  13953. int SCANCODE_3;
  13954. int SCANCODE_4;
  13955. int SCANCODE_5;
  13956. int SCANCODE_6;
  13957. int SCANCODE_7;
  13958. int SCANCODE_8;
  13959. int SCANCODE_9;
  13960. int SCANCODE_A;
  13961. int SCANCODE_AC_BACK;
  13962. int SCANCODE_AC_BOOKMARKS;
  13963. int SCANCODE_AC_FORWARD;
  13964. int SCANCODE_AC_HOME;
  13965. int SCANCODE_AC_REFRESH;
  13966. int SCANCODE_AC_SEARCH;
  13967. int SCANCODE_AC_STOP;
  13968. int SCANCODE_AGAIN;
  13969. int SCANCODE_ALT;
  13970. int SCANCODE_ALTERASE;
  13971. int SCANCODE_APOSTROPHE;
  13972. int SCANCODE_APP1;
  13973. int SCANCODE_APP2;
  13974. int SCANCODE_APPLICATION;
  13975. int SCANCODE_AUDIOMUTE;
  13976. int SCANCODE_AUDIONEXT;
  13977. int SCANCODE_AUDIOPLAY;
  13978. int SCANCODE_AUDIOPREV;
  13979. int SCANCODE_AUDIOSTOP;
  13980. int SCANCODE_B;
  13981. int SCANCODE_BACKSLASH;
  13982. int SCANCODE_BACKSPACE;
  13983. int SCANCODE_BRIGHTNESSDOWN;
  13984. int SCANCODE_BRIGHTNESSUP;
  13985. int SCANCODE_C;
  13986. int SCANCODE_CALCULATOR;
  13987. int SCANCODE_CANCEL;
  13988. int SCANCODE_CAPSLOCK;
  13989. int SCANCODE_CLEAR;
  13990. int SCANCODE_CLEARAGAIN;
  13991. int SCANCODE_COMMA;
  13992. int SCANCODE_COMPUTER;
  13993. int SCANCODE_COPY;
  13994. int SCANCODE_CRSEL;
  13995. int SCANCODE_CTRL;
  13996. int SCANCODE_CURRENCYSUBUNIT;
  13997. int SCANCODE_CURRENCYUNIT;
  13998. int SCANCODE_CUT;
  13999. int SCANCODE_D;
  14000. int SCANCODE_DECIMALSEPARATOR;
  14001. int SCANCODE_DELETE;
  14002. int SCANCODE_DISPLAYSWITCH;
  14003. int SCANCODE_DOWN;
  14004. int SCANCODE_E;
  14005. int SCANCODE_EJECT;
  14006. int SCANCODE_END;
  14007. int SCANCODE_EQUALS;
  14008. int SCANCODE_ESCAPE;
  14009. int SCANCODE_EXECUTE;
  14010. int SCANCODE_EXSEL;
  14011. int SCANCODE_F;
  14012. int SCANCODE_F1;
  14013. int SCANCODE_F10;
  14014. int SCANCODE_F11;
  14015. int SCANCODE_F12;
  14016. int SCANCODE_F13;
  14017. int SCANCODE_F14;
  14018. int SCANCODE_F15;
  14019. int SCANCODE_F16;
  14020. int SCANCODE_F17;
  14021. int SCANCODE_F18;
  14022. int SCANCODE_F19;
  14023. int SCANCODE_F2;
  14024. int SCANCODE_F20;
  14025. int SCANCODE_F21;
  14026. int SCANCODE_F22;
  14027. int SCANCODE_F23;
  14028. int SCANCODE_F24;
  14029. int SCANCODE_F3;
  14030. int SCANCODE_F4;
  14031. int SCANCODE_F5;
  14032. int SCANCODE_F6;
  14033. int SCANCODE_F7;
  14034. int SCANCODE_F8;
  14035. int SCANCODE_F9;
  14036. int SCANCODE_FIND;
  14037. int SCANCODE_G;
  14038. int SCANCODE_GRAVE;
  14039. int SCANCODE_GUI;
  14040. int SCANCODE_H;
  14041. int SCANCODE_HELP;
  14042. int SCANCODE_HOME;
  14043. int SCANCODE_I;
  14044. int SCANCODE_INSERT;
  14045. int SCANCODE_INTERNATIONAL1;
  14046. int SCANCODE_INTERNATIONAL2;
  14047. int SCANCODE_INTERNATIONAL3;
  14048. int SCANCODE_INTERNATIONAL4;
  14049. int SCANCODE_INTERNATIONAL5;
  14050. int SCANCODE_INTERNATIONAL6;
  14051. int SCANCODE_INTERNATIONAL7;
  14052. int SCANCODE_INTERNATIONAL8;
  14053. int SCANCODE_INTERNATIONAL9;
  14054. int SCANCODE_J;
  14055. int SCANCODE_K;
  14056. int SCANCODE_KBDILLUMDOWN;
  14057. int SCANCODE_KBDILLUMTOGGLE;
  14058. int SCANCODE_KBDILLUMUP;
  14059. int SCANCODE_KP_0;
  14060. int SCANCODE_KP_00;
  14061. int SCANCODE_KP_000;
  14062. int SCANCODE_KP_1;
  14063. int SCANCODE_KP_2;
  14064. int SCANCODE_KP_3;
  14065. int SCANCODE_KP_4;
  14066. int SCANCODE_KP_5;
  14067. int SCANCODE_KP_6;
  14068. int SCANCODE_KP_7;
  14069. int SCANCODE_KP_8;
  14070. int SCANCODE_KP_9;
  14071. int SCANCODE_KP_A;
  14072. int SCANCODE_KP_AMPERSAND;
  14073. int SCANCODE_KP_AT;
  14074. int SCANCODE_KP_B;
  14075. int SCANCODE_KP_BACKSPACE;
  14076. int SCANCODE_KP_BINARY;
  14077. int SCANCODE_KP_C;
  14078. int SCANCODE_KP_CLEAR;
  14079. int SCANCODE_KP_CLEARENTRY;
  14080. int SCANCODE_KP_COLON;
  14081. int SCANCODE_KP_COMMA;
  14082. int SCANCODE_KP_D;
  14083. int SCANCODE_KP_DBLAMPERSAND;
  14084. int SCANCODE_KP_DBLVERTICALBAR;
  14085. int SCANCODE_KP_DECIMAL;
  14086. int SCANCODE_KP_DIVIDE;
  14087. int SCANCODE_KP_E;
  14088. int SCANCODE_KP_ENTER;
  14089. int SCANCODE_KP_EQUALS;
  14090. int SCANCODE_KP_EQUALSAS400;
  14091. int SCANCODE_KP_EXCLAM;
  14092. int SCANCODE_KP_F;
  14093. int SCANCODE_KP_GREATER;
  14094. int SCANCODE_KP_HASH;
  14095. int SCANCODE_KP_HEXADECIMAL;
  14096. int SCANCODE_KP_LEFTBRACE;
  14097. int SCANCODE_KP_LEFTPAREN;
  14098. int SCANCODE_KP_LESS;
  14099. int SCANCODE_KP_MEMADD;
  14100. int SCANCODE_KP_MEMCLEAR;
  14101. int SCANCODE_KP_MEMDIVIDE;
  14102. int SCANCODE_KP_MEMMULTIPLY;
  14103. int SCANCODE_KP_MEMRECALL;
  14104. int SCANCODE_KP_MEMSTORE;
  14105. int SCANCODE_KP_MEMSUBTRACT;
  14106. int SCANCODE_KP_MINUS;
  14107. int SCANCODE_KP_MULTIPLY;
  14108. int SCANCODE_KP_OCTAL;
  14109. int SCANCODE_KP_PERCENT;
  14110. int SCANCODE_KP_PERIOD;
  14111. int SCANCODE_KP_PLUS;
  14112. int SCANCODE_KP_PLUSMINUS;
  14113. int SCANCODE_KP_POWER;
  14114. int SCANCODE_KP_RIGHTBRACE;
  14115. int SCANCODE_KP_RIGHTPAREN;
  14116. int SCANCODE_KP_SPACE;
  14117. int SCANCODE_KP_TAB;
  14118. int SCANCODE_KP_VERTICALBAR;
  14119. int SCANCODE_KP_XOR;
  14120. int SCANCODE_L;
  14121. int SCANCODE_LALT;
  14122. int SCANCODE_LANG1;
  14123. int SCANCODE_LANG2;
  14124. int SCANCODE_LANG3;
  14125. int SCANCODE_LANG4;
  14126. int SCANCODE_LANG5;
  14127. int SCANCODE_LANG6;
  14128. int SCANCODE_LANG7;
  14129. int SCANCODE_LANG8;
  14130. int SCANCODE_LANG9;
  14131. int SCANCODE_LCTRL;
  14132. int SCANCODE_LEFT;
  14133. int SCANCODE_LEFTBRACKET;
  14134. int SCANCODE_LGUI;
  14135. int SCANCODE_LSHIFT;
  14136. int SCANCODE_M;
  14137. int SCANCODE_MAIL;
  14138. int SCANCODE_MEDIASELECT;
  14139. int SCANCODE_MENU;
  14140. int SCANCODE_MINUS;
  14141. int SCANCODE_MODE;
  14142. int SCANCODE_MUTE;
  14143. int SCANCODE_N;
  14144. int SCANCODE_NONUSBACKSLASH;
  14145. int SCANCODE_NONUSHASH;
  14146. int SCANCODE_NUMLOCKCLEAR;
  14147. int SCANCODE_O;
  14148. int SCANCODE_OPER;
  14149. int SCANCODE_OUT;
  14150. int SCANCODE_P;
  14151. int SCANCODE_PAGEDOWN;
  14152. int SCANCODE_PAGEUP;
  14153. int SCANCODE_PASTE;
  14154. int SCANCODE_PAUSE;
  14155. int SCANCODE_PERIOD;
  14156. int SCANCODE_POWER;
  14157. int SCANCODE_PRINTSCREEN;
  14158. int SCANCODE_PRIOR;
  14159. int SCANCODE_Q;
  14160. int SCANCODE_R;
  14161. int SCANCODE_RALT;
  14162. int SCANCODE_RCTRL;
  14163. int SCANCODE_RETURN;
  14164. int SCANCODE_RETURN2;
  14165. int SCANCODE_RGUI;
  14166. int SCANCODE_RIGHT;
  14167. int SCANCODE_RIGHTBRACKET;
  14168. int SCANCODE_RSHIFT;
  14169. int SCANCODE_S;
  14170. int SCANCODE_SCROLLLOCK;
  14171. int SCANCODE_SELECT;
  14172. int SCANCODE_SEMICOLON;
  14173. int SCANCODE_SEPARATOR;
  14174. int SCANCODE_SHIFT;
  14175. int SCANCODE_SLASH;
  14176. int SCANCODE_SLEEP;
  14177. int SCANCODE_SPACE;
  14178. int SCANCODE_STOP;
  14179. int SCANCODE_SYSREQ;
  14180. int SCANCODE_T;
  14181. int SCANCODE_TAB;
  14182. int SCANCODE_THOUSANDSSEPARATOR;
  14183. int SCANCODE_U;
  14184. int SCANCODE_UNDO;
  14185. int SCANCODE_UNKNOWN;
  14186. int SCANCODE_UP;
  14187. int SCANCODE_V;
  14188. int SCANCODE_VOLUMEDOWN;
  14189. int SCANCODE_VOLUMEUP;
  14190. int SCANCODE_W;
  14191. int SCANCODE_WWW;
  14192. int SCANCODE_X;
  14193. int SCANCODE_Y;
  14194. int SCANCODE_Z;
  14195. uint SCAN_DIRS;
  14196. uint SCAN_FILES;
  14197. uint SCAN_HIDDEN;
  14198. String SOUND_AMBIENT;
  14199. String SOUND_EFFECT;
  14200. String SOUND_MASTER;
  14201. String SOUND_MUSIC;
  14202. String SOUND_VOICE;
  14203. Color TRANSPARENT;
  14204. uint VO_DISABLE_OCCLUSION;
  14205. uint VO_DISABLE_SHADOWS;
  14206. uint VO_LOW_MATERIAL_QUALITY;
  14207. uint VO_NONE;
  14208. Color WHITE;
  14209. Color YELLOW;
  14210. VariantMap globalVars;