AngelScriptAPI.h 300 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915
  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. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18. Variant GetAttributeDefault(const String&) const;
  19. bool Load(File, bool = false);
  20. bool Load(VectorBuffer&, bool = false);
  21. bool LoadXML(const XMLElement&, bool = false);
  22. void MarkNetworkUpdate() const;
  23. void RemoveInstanceDefault();
  24. void ResetToDefault();
  25. bool Save(File) const;
  26. bool Save(VectorBuffer&) const;
  27. bool SaveXML(XMLElement&) const;
  28. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  29. bool SetAttribute(const String&, const Variant&);
  30. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  31. void SetAttributeAnimationSpeed(const String&, float);
  32. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33. // Properties:
  34. bool animationEnabled;
  35. /* readonly */
  36. Array<Variant> attributeDefaults;
  37. /* readonly */
  38. Array<AttributeInfo> attributeInfos;
  39. Array<Variant> attributes;
  40. /* readonly */
  41. StringHash baseType;
  42. /* readonly */
  43. String category;
  44. /* readonly */
  45. uint numAttributes;
  46. ObjectAnimation objectAnimation;
  47. /* readonly */
  48. int refs;
  49. bool temporary;
  50. /* readonly */
  51. StringHash type;
  52. /* readonly */
  53. String typeName;
  54. /* readonly */
  55. int weakRefs;
  56. };
  57. class AnimatedModel
  58. {
  59. // Methods:
  60. AnimationState AddAnimationState(Animation);
  61. void ApplyAttributes();
  62. void ApplyMaterialList(const String& = String ( ));
  63. void DrawDebugGeometry(DebugRenderer, bool);
  64. AnimationState GetAnimationState(Animation) const;
  65. AnimationState GetAnimationState(uint) const;
  66. Variant GetAttribute(const String&) const;
  67. ValueAnimation GetAttributeAnimation(const String&) const;
  68. float GetAttributeAnimationSpeed(const String&) const;
  69. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  70. Variant GetAttributeDefault(const String&) const;
  71. float GetMorphWeight(uint) const;
  72. bool IsInView(Camera) const;
  73. bool Load(File, bool = false);
  74. bool Load(VectorBuffer&, bool = false);
  75. bool LoadXML(const XMLElement&, bool = false);
  76. void MarkNetworkUpdate() const;
  77. void Remove();
  78. void RemoveAllAnimationStates();
  79. void RemoveAnimationState(Animation);
  80. void RemoveAnimationState(AnimationState);
  81. void RemoveAnimationState(const String&);
  82. void RemoveAnimationState(uint);
  83. void RemoveInstanceDefault();
  84. void ResetMorphWeights();
  85. void ResetToDefault();
  86. bool Save(File) const;
  87. bool Save(VectorBuffer&) const;
  88. bool SaveXML(XMLElement&) const;
  89. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  90. bool SetAttribute(const String&, const Variant&);
  91. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  92. void SetAttributeAnimationSpeed(const String&, float);
  93. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  94. void SetMorphWeight(uint, float);
  95. // Properties:
  96. bool animationEnabled;
  97. float animationLodBias;
  98. /* readonly */
  99. Array<AnimationState> animationStates;
  100. /* readonly */
  101. Array<Variant> attributeDefaults;
  102. /* readonly */
  103. Array<AttributeInfo> attributeInfos;
  104. Array<Variant> attributes;
  105. /* readonly */
  106. StringHash baseType;
  107. /* readonly */
  108. BoundingBox boundingBox;
  109. bool castShadows;
  110. /* readonly */
  111. String category;
  112. float drawDistance;
  113. bool enabled;
  114. /* readonly */
  115. bool enabledEffective;
  116. /* readonly */
  117. uint id;
  118. /* readonly */
  119. bool inView;
  120. uint lightMask;
  121. float lodBias;
  122. /* writeonly */
  123. Material material;
  124. Array<Material> materials;
  125. uint maxLights;
  126. Model model;
  127. /* readonly */
  128. Array<String> morphNames;
  129. Array<float> morphWeights;
  130. /* readonly */
  131. Node node;
  132. /* readonly */
  133. uint numAnimationStates;
  134. /* readonly */
  135. uint numAttributes;
  136. /* readonly */
  137. uint numGeometries;
  138. /* readonly */
  139. uint numMorphs;
  140. ObjectAnimation objectAnimation;
  141. bool occludee;
  142. bool occluder;
  143. /* readonly */
  144. int refs;
  145. float shadowDistance;
  146. uint shadowMask;
  147. /* readonly */
  148. Skeleton skeleton;
  149. bool temporary;
  150. /* readonly */
  151. StringHash type;
  152. /* readonly */
  153. String typeName;
  154. bool updateInvisible;
  155. uint viewMask;
  156. /* readonly */
  157. int weakRefs;
  158. /* readonly */
  159. BoundingBox worldBoundingBox;
  160. /* readonly */
  161. Zone zone;
  162. uint zoneMask;
  163. };
  164. class AnimatedSprite2D
  165. {
  166. // Methods:
  167. void ApplyAttributes();
  168. void DrawDebugGeometry(DebugRenderer, bool);
  169. Variant GetAttribute(const String&) const;
  170. ValueAnimation GetAttributeAnimation(const String&) const;
  171. float GetAttributeAnimationSpeed(const String&) const;
  172. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  173. Variant GetAttributeDefault(const String&) const;
  174. bool IsInView(Camera) const;
  175. bool Load(File, bool = false);
  176. bool Load(VectorBuffer&, bool = false);
  177. bool LoadXML(const XMLElement&, bool = false);
  178. void MarkNetworkUpdate() const;
  179. void Remove();
  180. void RemoveInstanceDefault();
  181. void ResetToDefault();
  182. bool Save(File) const;
  183. bool Save(VectorBuffer&) const;
  184. bool SaveXML(XMLElement&) const;
  185. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  186. void SetAnimation(AnimationSet2D, const String&, LoopMode2D = LM_DEFAULT);
  187. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  188. bool SetAttribute(const String&, const Variant&);
  189. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  190. void SetAttributeAnimationSpeed(const String&, float);
  191. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  192. void SetFlip(bool, bool);
  193. // Properties:
  194. String animation;
  195. bool animationEnabled;
  196. AnimationSet2D animationSet;
  197. /* readonly */
  198. Array<Variant> attributeDefaults;
  199. /* readonly */
  200. Array<AttributeInfo> attributeInfos;
  201. Array<Variant> attributes;
  202. /* readonly */
  203. StringHash baseType;
  204. BlendMode blendMode;
  205. /* readonly */
  206. BoundingBox boundingBox;
  207. bool castShadows;
  208. /* readonly */
  209. String category;
  210. Color color;
  211. float drawDistance;
  212. bool enabled;
  213. /* readonly */
  214. bool enabledEffective;
  215. bool flipX;
  216. bool flipY;
  217. /* readonly */
  218. uint id;
  219. /* readonly */
  220. bool inView;
  221. int layer;
  222. uint lightMask;
  223. float lodBias;
  224. LoopMode2D loopMode;
  225. uint maxLights;
  226. /* readonly */
  227. Node node;
  228. /* readonly */
  229. uint numAttributes;
  230. ObjectAnimation objectAnimation;
  231. bool occludee;
  232. bool occluder;
  233. int orderInLayer;
  234. /* readonly */
  235. int refs;
  236. float shadowDistance;
  237. uint shadowMask;
  238. float speed;
  239. Sprite2D sprite;
  240. bool temporary;
  241. Texture2D texture;
  242. /* readonly */
  243. StringHash type;
  244. /* readonly */
  245. String typeName;
  246. uint viewMask;
  247. /* readonly */
  248. int weakRefs;
  249. /* readonly */
  250. BoundingBox worldBoundingBox;
  251. uint zoneMask;
  252. };
  253. class Animation
  254. {
  255. // Methods:
  256. void AddTrigger(float, bool, const Variant&);
  257. bool Load(File);
  258. bool Load(VectorBuffer&);
  259. void RemoveAllTriggers();
  260. void RemoveTrigger(uint);
  261. bool Save(File) const;
  262. bool Save(VectorBuffer&) const;
  263. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  264. // Properties:
  265. /* readonly */
  266. String animationName;
  267. /* readonly */
  268. StringHash baseType;
  269. /* readonly */
  270. String category;
  271. /* readonly */
  272. float length;
  273. /* readonly */
  274. uint memoryUse;
  275. String name;
  276. /* readonly */
  277. uint numTracks;
  278. uint numTriggers;
  279. /* readonly */
  280. int refs;
  281. /* readonly */
  282. Array<AnimationTriggerPoint> triggers;
  283. /* readonly */
  284. StringHash type;
  285. /* readonly */
  286. String typeName;
  287. /* readonly */
  288. uint useTimer;
  289. /* readonly */
  290. int weakRefs;
  291. };
  292. class Animation2D
  293. {
  294. // Properties:
  295. /* readonly */
  296. float length;
  297. /* readonly */
  298. bool looped;
  299. /* readonly */
  300. String name;
  301. /* readonly */
  302. int refs;
  303. /* readonly */
  304. int weakRefs;
  305. };
  306. class AnimationController
  307. {
  308. // Methods:
  309. void ApplyAttributes();
  310. void DrawDebugGeometry(DebugRenderer, bool);
  311. bool Fade(const String&, float, float);
  312. bool FadeOthers(const String&, float, float);
  313. AnimationState GetAnimationState(StringHash) const;
  314. AnimationState GetAnimationState(const String&) const;
  315. Variant GetAttribute(const String&) const;
  316. ValueAnimation GetAttributeAnimation(const String&) const;
  317. float GetAttributeAnimationSpeed(const String&) const;
  318. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  319. Variant GetAttributeDefault(const String&) const;
  320. float GetAutoFade(const String&) const;
  321. float GetFadeTarget(const String&) const;
  322. uint8 GetLayer(const String&) const;
  323. float GetLength(const String&) const;
  324. bool GetLooped(const String&) const;
  325. float GetSpeed(const String&) const;
  326. float GetTime(const String&) const;
  327. float GetWeight(const String&) const;
  328. bool IsFadingIn(const String&) const;
  329. bool IsFadingOut(const String&) const;
  330. bool IsPlaying(const String&) const;
  331. bool Load(File, bool = false);
  332. bool Load(VectorBuffer&, bool = false);
  333. bool LoadXML(const XMLElement&, bool = false);
  334. void MarkNetworkUpdate() const;
  335. bool Play(const String&, uint8, bool, float = 0.0f);
  336. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  337. void Remove();
  338. void RemoveInstanceDefault();
  339. void ResetToDefault();
  340. bool Save(File) const;
  341. bool Save(VectorBuffer&) const;
  342. bool SaveXML(XMLElement&) const;
  343. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  344. bool SetAttribute(const String&, const Variant&);
  345. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  346. void SetAttributeAnimationSpeed(const String&, float);
  347. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  348. bool SetAutoFade(const String&, float);
  349. bool SetLayer(const String&, uint8);
  350. bool SetLooped(const String&, bool);
  351. bool SetSpeed(const String&, float);
  352. bool SetStartBone(const String&, const String&);
  353. bool SetTime(const String&, float);
  354. bool SetWeight(const String&, float);
  355. void Stop(const String&, float = 0.0f);
  356. void StopAll(float = 0.0f);
  357. void StopLayer(uint8, float = 0.0f);
  358. const String& GetStartBone(const String&) const;
  359. // Properties:
  360. bool animationEnabled;
  361. /* readonly */
  362. Array<Variant> attributeDefaults;
  363. /* readonly */
  364. Array<AttributeInfo> attributeInfos;
  365. Array<Variant> attributes;
  366. /* readonly */
  367. StringHash baseType;
  368. /* readonly */
  369. String category;
  370. bool enabled;
  371. /* readonly */
  372. bool enabledEffective;
  373. /* readonly */
  374. uint id;
  375. /* readonly */
  376. Node node;
  377. /* readonly */
  378. uint numAttributes;
  379. ObjectAnimation objectAnimation;
  380. /* readonly */
  381. int refs;
  382. bool temporary;
  383. /* readonly */
  384. StringHash type;
  385. /* readonly */
  386. String typeName;
  387. /* readonly */
  388. int weakRefs;
  389. };
  390. class AnimationSet2D
  391. {
  392. // Methods:
  393. Animation2D GetAnimation(const String&) const;
  394. Animation2D GetAnimation(uint) const;
  395. bool Load(File);
  396. bool Load(VectorBuffer&);
  397. bool Save(File) const;
  398. bool Save(VectorBuffer&) const;
  399. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  400. // Properties:
  401. /* readonly */
  402. StringHash baseType;
  403. /* readonly */
  404. String category;
  405. /* readonly */
  406. uint memoryUse;
  407. String name;
  408. /* readonly */
  409. uint numAnimations;
  410. /* readonly */
  411. int refs;
  412. /* readonly */
  413. StringHash type;
  414. /* readonly */
  415. String typeName;
  416. /* readonly */
  417. uint useTimer;
  418. /* readonly */
  419. int weakRefs;
  420. };
  421. class AnimationState
  422. {
  423. // Methods:
  424. void AddTime(float);
  425. void AddWeight(float);
  426. void Apply();
  427. float GetBoneWeight(StringHash) const;
  428. float GetBoneWeight(uint) const;
  429. uint GetTrackIndex(StringHash) const;
  430. uint GetTrackIndex(const String&) const;
  431. void SetBoneWeight(StringHash, float, bool = false);
  432. void SetBoneWeight(const String&, float, bool = false);
  433. void SetBoneWeight(uint, float, bool = false);
  434. // Properties:
  435. /* readonly */
  436. Animation animation;
  437. Array<float> boneWeights;
  438. /* readonly */
  439. bool enabled;
  440. uint8 layer;
  441. /* readonly */
  442. float length;
  443. bool looped;
  444. /* readonly */
  445. AnimatedModel model;
  446. /* readonly */
  447. Node node;
  448. /* readonly */
  449. int refs;
  450. Bone startBone;
  451. float time;
  452. /* readonly */
  453. int weakRefs;
  454. float weight;
  455. };
  456. class AnimationTriggerPoint
  457. {
  458. // Properties:
  459. Variant data;
  460. float time;
  461. };
  462. template <class T> class Array
  463. {
  464. // Methods:
  465. void Clear();
  466. void Erase(uint);
  467. int Find(const T&) const;
  468. int Find(uint, const T&) const;
  469. int FindByRef(const T&) const;
  470. int FindByRef(uint, const T&) const;
  471. void Insert(uint, const T&);
  472. void Pop();
  473. void Push(const T&);
  474. void Reserve(uint);
  475. void Resize(uint);
  476. void Reverse();
  477. void Sort();
  478. void Sort(uint, uint);
  479. void SortReverse();
  480. void SortReverse(uint, uint);
  481. // Properties:
  482. /* readonly */
  483. bool empty;
  484. uint length;
  485. };
  486. class AttributeInfo
  487. {
  488. // Properties:
  489. Variant defaultValue;
  490. /* readonly */
  491. Array<String> enumNames;
  492. uint mode;
  493. String name;
  494. VariantType type;
  495. };
  496. class Audio
  497. {
  498. // Methods:
  499. bool HasMasterGain(const String&) const;
  500. bool Play();
  501. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  502. void SetMode(int, int, bool, bool = true);
  503. void Stop();
  504. // Properties:
  505. /* readonly */
  506. StringHash baseType;
  507. /* readonly */
  508. String category;
  509. /* readonly */
  510. bool initialized;
  511. /* readonly */
  512. bool interpolation;
  513. SoundListener listener;
  514. Array<float> masterGain;
  515. /* readonly */
  516. int mixRate;
  517. /* readonly */
  518. bool playing;
  519. /* readonly */
  520. int refs;
  521. /* readonly */
  522. uint sampleSize;
  523. /* readonly */
  524. bool stereo;
  525. /* readonly */
  526. StringHash type;
  527. /* readonly */
  528. String typeName;
  529. /* readonly */
  530. int weakRefs;
  531. };
  532. class BiasParameters
  533. {
  534. // Properties:
  535. float constantBias;
  536. float slopeScaledBias;
  537. };
  538. class Billboard
  539. {
  540. // Properties:
  541. Color color;
  542. bool enabled;
  543. Vector3 position;
  544. float rotation;
  545. Vector2 size;
  546. Rect uv;
  547. };
  548. class BillboardSet
  549. {
  550. // Methods:
  551. void ApplyAttributes();
  552. void Commit();
  553. void DrawDebugGeometry(DebugRenderer, bool);
  554. Variant GetAttribute(const String&) const;
  555. ValueAnimation GetAttributeAnimation(const String&) const;
  556. float GetAttributeAnimationSpeed(const String&) const;
  557. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  558. Variant GetAttributeDefault(const String&) const;
  559. bool IsInView(Camera) const;
  560. bool Load(File, bool = false);
  561. bool Load(VectorBuffer&, bool = false);
  562. bool LoadXML(const XMLElement&, bool = false);
  563. void MarkNetworkUpdate() const;
  564. void Remove();
  565. void RemoveInstanceDefault();
  566. void ResetToDefault();
  567. bool Save(File) const;
  568. bool Save(VectorBuffer&) const;
  569. bool SaveXML(XMLElement&) const;
  570. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  571. bool SetAttribute(const String&, const Variant&);
  572. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  573. void SetAttributeAnimationSpeed(const String&, float);
  574. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  575. // Properties:
  576. bool animationEnabled;
  577. float animationLodBias;
  578. /* readonly */
  579. Array<Variant> attributeDefaults;
  580. /* readonly */
  581. Array<AttributeInfo> attributeInfos;
  582. Array<Variant> attributes;
  583. /* readonly */
  584. StringHash baseType;
  585. /* readonly */
  586. Array<Billboard> billboards;
  587. /* readonly */
  588. BoundingBox boundingBox;
  589. bool castShadows;
  590. /* readonly */
  591. String category;
  592. float drawDistance;
  593. bool enabled;
  594. /* readonly */
  595. bool enabledEffective;
  596. FaceCameraMode faceCameraMode;
  597. /* readonly */
  598. uint id;
  599. /* readonly */
  600. bool inView;
  601. uint lightMask;
  602. float lodBias;
  603. Material material;
  604. uint maxLights;
  605. /* readonly */
  606. Node node;
  607. /* readonly */
  608. uint numAttributes;
  609. uint numBillboards;
  610. ObjectAnimation objectAnimation;
  611. bool occludee;
  612. bool occluder;
  613. /* readonly */
  614. int refs;
  615. bool relative;
  616. bool scaled;
  617. float shadowDistance;
  618. uint shadowMask;
  619. bool sorted;
  620. bool temporary;
  621. /* readonly */
  622. StringHash type;
  623. /* readonly */
  624. String typeName;
  625. uint viewMask;
  626. /* readonly */
  627. int weakRefs;
  628. /* readonly */
  629. BoundingBox worldBoundingBox;
  630. /* readonly */
  631. Zone zone;
  632. uint zoneMask;
  633. };
  634. class Bone
  635. {
  636. // Properties:
  637. bool animated;
  638. BoundingBox boundingBox;
  639. Vector3 initialPosition;
  640. Quaternion initialRotation;
  641. Vector3 initialScale;
  642. String name;
  643. Node node;
  644. float radius;
  645. };
  646. class BorderImage
  647. {
  648. // Methods:
  649. void AddChild(UIElement);
  650. void ApplyAttributes();
  651. void BringToFront();
  652. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  653. void DisableLayoutUpdate();
  654. IntVector2 ElementToScreen(const IntVector2&);
  655. void EnableLayoutUpdate();
  656. uint FindChild(UIElement) const;
  657. Variant GetAttribute(const String&) const;
  658. ValueAnimation GetAttributeAnimation(const String&) const;
  659. float GetAttributeAnimationSpeed(const String&) const;
  660. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  661. Variant GetAttributeDefault(const String&) const;
  662. UIElement GetChild(const String&, bool = false) const;
  663. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  664. Array<UIElement> GetChildren(bool = false) const;
  665. UIElement GetElementEventSender() const;
  666. uint GetNumChildren(bool) const;
  667. void InsertChild(uint, UIElement);
  668. bool IsInside(IntVector2, bool);
  669. bool IsInsideCombined(IntVector2, bool);
  670. bool Load(File, bool = false);
  671. bool Load(VectorBuffer&, bool = false);
  672. bool LoadChildXML(XMLFile, XMLFile = null);
  673. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  674. bool LoadXML(File);
  675. bool LoadXML(VectorBuffer&);
  676. bool LoadXML(XMLFile, XMLFile);
  677. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  678. bool LoadXML(const XMLElement&, bool = false);
  679. void MarkNetworkUpdate() const;
  680. void Remove();
  681. void RemoveAllChildren();
  682. void RemoveChild(UIElement, uint = 0);
  683. void RemoveChild(uint);
  684. void RemoveInstanceDefault();
  685. void ResetDeepEnabled();
  686. void ResetToDefault();
  687. bool Save(File) const;
  688. bool Save(VectorBuffer&) const;
  689. bool SaveXML(File);
  690. bool SaveXML(VectorBuffer&);
  691. bool SaveXML(XMLElement&) const;
  692. IntVector2 ScreenToElement(const IntVector2&);
  693. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  694. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  695. bool SetAttribute(const String&, const Variant&);
  696. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  697. void SetAttributeAnimationSpeed(const String&, float);
  698. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  699. void SetDeepEnabled(bool);
  700. void SetEnabledRecursive(bool);
  701. void SetFixedHeight(int);
  702. void SetFixedSize(int, int);
  703. void SetFixedWidth(int);
  704. void SetFullImageRect();
  705. void SetHoverOffset(int, int);
  706. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  707. void SetMaxSize(int, int);
  708. void SetMinSize(int, int);
  709. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  710. void SetPosition(int, int);
  711. void SetSize(int, int);
  712. bool SetStyle(const String&, XMLFile = null);
  713. bool SetStyle(const XMLElement&);
  714. bool SetStyleAuto(XMLFile = null);
  715. void UpdateLayout();
  716. const Variant& GetVar(const StringHash&);
  717. // Properties:
  718. bool animationEnabled;
  719. /* readonly */
  720. Array<Variant> attributeDefaults;
  721. /* readonly */
  722. Array<AttributeInfo> attributeInfos;
  723. Array<Variant> attributes;
  724. /* readonly */
  725. StringHash baseType;
  726. BlendMode blendMode;
  727. IntRect border;
  728. bool bringToBack;
  729. bool bringToFront;
  730. /* readonly */
  731. String category;
  732. /* readonly */
  733. IntVector2 childOffset;
  734. /* readonly */
  735. Array<UIElement> children;
  736. IntRect clipBorder;
  737. bool clipChildren;
  738. /* writeonly */
  739. Color color;
  740. /* readonly */
  741. bool colorGradient;
  742. Array<Color> colors;
  743. /* readonly */
  744. IntRect combinedScreenRect;
  745. XMLFile defaultStyle;
  746. /* readonly */
  747. float derivedOpacity;
  748. /* readonly */
  749. uint dragButtonCombo;
  750. /* readonly */
  751. int dragButtonCount;
  752. uint dragDropMode;
  753. bool editable;
  754. bool elementEventSender;
  755. bool enabled;
  756. /* readonly */
  757. bool enabledSelf;
  758. /* readonly */
  759. bool fixedHeight;
  760. /* readonly */
  761. bool fixedSize;
  762. /* readonly */
  763. bool fixedWidth;
  764. bool focus;
  765. FocusMode focusMode;
  766. int height;
  767. HorizontalAlignment horizontalAlignment;
  768. IntVector2 hoverOffset;
  769. /* readonly */
  770. bool hovering;
  771. IntRect imageBorder;
  772. IntRect imageRect;
  773. int indent;
  774. int indentSpacing;
  775. /* readonly */
  776. int indentWidth;
  777. bool internal;
  778. IntRect layoutBorder;
  779. Vector2 layoutFlexScale;
  780. LayoutMode layoutMode;
  781. int layoutSpacing;
  782. int maxHeight;
  783. IntVector2 maxSize;
  784. int maxWidth;
  785. int minHeight;
  786. IntVector2 minSize;
  787. int minWidth;
  788. String name;
  789. /* readonly */
  790. uint numAllChildren;
  791. /* readonly */
  792. uint numAttributes;
  793. /* readonly */
  794. uint numChildren;
  795. ObjectAnimation objectAnimation;
  796. float opacity;
  797. UIElement parent;
  798. IntVector2 position;
  799. int priority;
  800. /* readonly */
  801. int refs;
  802. /* readonly */
  803. UIElement root;
  804. /* readonly */
  805. IntVector2 screenPosition;
  806. bool selected;
  807. IntVector2 size;
  808. bool sortChildren;
  809. String style;
  810. bool temporary;
  811. Texture texture;
  812. bool tiled;
  813. TraversalMode traversalMode;
  814. /* readonly */
  815. StringHash type;
  816. /* readonly */
  817. String typeName;
  818. bool useDerivedOpacity;
  819. /* readonly */
  820. VariantMap vars;
  821. VerticalAlignment verticalAlignment;
  822. bool visible;
  823. /* readonly */
  824. int weakRefs;
  825. int width;
  826. };
  827. class BoundingBox
  828. {
  829. // Methods:
  830. void Clear();
  831. void Clip(const BoundingBox&);
  832. void Define(const BoundingBox&);
  833. void Define(const Frustum&);
  834. void Define(const Polyhedron&);
  835. void Define(const Sphere&);
  836. void Define(const Vector3&);
  837. void Define(const Vector3&, const Vector3&);
  838. void Define(float, float);
  839. Intersection IsInside(const BoundingBox&) const;
  840. Intersection IsInside(const Sphere&) const;
  841. Intersection IsInside(const Vector3&) const;
  842. void Merge(const BoundingBox&);
  843. void Merge(const Frustum&);
  844. void Merge(const Polyhedron&);
  845. void Merge(const Sphere&);
  846. void Merge(const Vector3&);
  847. Rect Projected(const Matrix4&) const;
  848. String ToString() const;
  849. void Transform(const Matrix3&);
  850. void Transform(const Matrix3x4&);
  851. BoundingBox Transformed(const Matrix3&) const;
  852. BoundingBox Transformed(const Matrix3x4&) const;
  853. // Properties:
  854. /* readonly */
  855. Vector3 center;
  856. bool defined;
  857. /* readonly */
  858. Vector3 halfSize;
  859. Vector3 max;
  860. Vector3 min;
  861. /* readonly */
  862. Vector3 size;
  863. };
  864. class Button
  865. {
  866. // Methods:
  867. void AddChild(UIElement);
  868. void ApplyAttributes();
  869. void BringToFront();
  870. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  871. void DisableLayoutUpdate();
  872. IntVector2 ElementToScreen(const IntVector2&);
  873. void EnableLayoutUpdate();
  874. uint FindChild(UIElement) const;
  875. Variant GetAttribute(const String&) const;
  876. ValueAnimation GetAttributeAnimation(const String&) const;
  877. float GetAttributeAnimationSpeed(const String&) const;
  878. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  879. Variant GetAttributeDefault(const String&) const;
  880. UIElement GetChild(const String&, bool = false) const;
  881. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  882. Array<UIElement> GetChildren(bool = false) const;
  883. UIElement GetElementEventSender() const;
  884. uint GetNumChildren(bool) const;
  885. void InsertChild(uint, UIElement);
  886. bool IsInside(IntVector2, bool);
  887. bool IsInsideCombined(IntVector2, bool);
  888. bool Load(File, bool = false);
  889. bool Load(VectorBuffer&, bool = false);
  890. bool LoadChildXML(XMLFile, XMLFile = null);
  891. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  892. bool LoadXML(File);
  893. bool LoadXML(VectorBuffer&);
  894. bool LoadXML(XMLFile, XMLFile);
  895. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  896. bool LoadXML(const XMLElement&, bool = false);
  897. void MarkNetworkUpdate() const;
  898. void Remove();
  899. void RemoveAllChildren();
  900. void RemoveChild(UIElement, uint = 0);
  901. void RemoveChild(uint);
  902. void RemoveInstanceDefault();
  903. void ResetDeepEnabled();
  904. void ResetToDefault();
  905. bool Save(File) const;
  906. bool Save(VectorBuffer&) const;
  907. bool SaveXML(File);
  908. bool SaveXML(VectorBuffer&);
  909. bool SaveXML(XMLElement&) const;
  910. IntVector2 ScreenToElement(const IntVector2&);
  911. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  912. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  913. bool SetAttribute(const String&, const Variant&);
  914. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  915. void SetAttributeAnimationSpeed(const String&, float);
  916. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  917. void SetDeepEnabled(bool);
  918. void SetEnabledRecursive(bool);
  919. void SetFixedHeight(int);
  920. void SetFixedSize(int, int);
  921. void SetFixedWidth(int);
  922. void SetFullImageRect();
  923. void SetHoverOffset(int, int);
  924. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  925. void SetMaxSize(int, int);
  926. void SetMinSize(int, int);
  927. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  928. void SetPosition(int, int);
  929. void SetPressedChildOffset(int, int);
  930. void SetPressedOffset(int, int);
  931. void SetRepeat(float, float);
  932. void SetSize(int, int);
  933. bool SetStyle(const String&, XMLFile = null);
  934. bool SetStyle(const XMLElement&);
  935. bool SetStyleAuto(XMLFile = null);
  936. void UpdateLayout();
  937. const Variant& GetVar(const StringHash&);
  938. // Properties:
  939. bool animationEnabled;
  940. /* readonly */
  941. Array<Variant> attributeDefaults;
  942. /* readonly */
  943. Array<AttributeInfo> attributeInfos;
  944. Array<Variant> attributes;
  945. /* readonly */
  946. StringHash baseType;
  947. BlendMode blendMode;
  948. IntRect border;
  949. bool bringToBack;
  950. bool bringToFront;
  951. /* readonly */
  952. String category;
  953. /* readonly */
  954. IntVector2 childOffset;
  955. /* readonly */
  956. Array<UIElement> children;
  957. IntRect clipBorder;
  958. bool clipChildren;
  959. /* writeonly */
  960. Color color;
  961. /* readonly */
  962. bool colorGradient;
  963. Array<Color> colors;
  964. /* readonly */
  965. IntRect combinedScreenRect;
  966. XMLFile defaultStyle;
  967. /* readonly */
  968. float derivedOpacity;
  969. /* readonly */
  970. uint dragButtonCombo;
  971. /* readonly */
  972. int dragButtonCount;
  973. uint dragDropMode;
  974. bool editable;
  975. bool elementEventSender;
  976. bool enabled;
  977. /* readonly */
  978. bool enabledSelf;
  979. /* readonly */
  980. bool fixedHeight;
  981. /* readonly */
  982. bool fixedSize;
  983. /* readonly */
  984. bool fixedWidth;
  985. bool focus;
  986. FocusMode focusMode;
  987. int height;
  988. HorizontalAlignment horizontalAlignment;
  989. IntVector2 hoverOffset;
  990. /* readonly */
  991. bool hovering;
  992. IntRect imageBorder;
  993. IntRect imageRect;
  994. int indent;
  995. int indentSpacing;
  996. /* readonly */
  997. int indentWidth;
  998. bool internal;
  999. IntRect layoutBorder;
  1000. Vector2 layoutFlexScale;
  1001. LayoutMode layoutMode;
  1002. int layoutSpacing;
  1003. int maxHeight;
  1004. IntVector2 maxSize;
  1005. int maxWidth;
  1006. int minHeight;
  1007. IntVector2 minSize;
  1008. int minWidth;
  1009. String name;
  1010. /* readonly */
  1011. uint numAllChildren;
  1012. /* readonly */
  1013. uint numAttributes;
  1014. /* readonly */
  1015. uint numChildren;
  1016. ObjectAnimation objectAnimation;
  1017. float opacity;
  1018. UIElement parent;
  1019. IntVector2 position;
  1020. /* readonly */
  1021. bool pressed;
  1022. IntVector2 pressedChildOffset;
  1023. IntVector2 pressedOffset;
  1024. int priority;
  1025. /* readonly */
  1026. int refs;
  1027. float repeatDelay;
  1028. float repeatRate;
  1029. /* readonly */
  1030. UIElement root;
  1031. /* readonly */
  1032. IntVector2 screenPosition;
  1033. bool selected;
  1034. IntVector2 size;
  1035. bool sortChildren;
  1036. String style;
  1037. bool temporary;
  1038. Texture texture;
  1039. bool tiled;
  1040. TraversalMode traversalMode;
  1041. /* readonly */
  1042. StringHash type;
  1043. /* readonly */
  1044. String typeName;
  1045. bool useDerivedOpacity;
  1046. /* readonly */
  1047. VariantMap vars;
  1048. VerticalAlignment verticalAlignment;
  1049. bool visible;
  1050. /* readonly */
  1051. int weakRefs;
  1052. int width;
  1053. };
  1054. class Camera
  1055. {
  1056. // Methods:
  1057. void ApplyAttributes();
  1058. void DrawDebugGeometry(DebugRenderer, bool);
  1059. Variant GetAttribute(const String&) const;
  1060. ValueAnimation GetAttributeAnimation(const String&) const;
  1061. float GetAttributeAnimationSpeed(const String&) const;
  1062. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1063. Variant GetAttributeDefault(const String&) const;
  1064. float GetDistance(const Vector3&) const;
  1065. float GetDistanceSquared(const Vector3&) const;
  1066. Ray GetScreenRay(float, float) const;
  1067. Frustum GetSplitFrustum(float, float) const;
  1068. bool Load(File, bool = false);
  1069. bool Load(VectorBuffer&, bool = false);
  1070. bool LoadXML(const XMLElement&, bool = false);
  1071. void MarkNetworkUpdate() const;
  1072. void Remove();
  1073. void RemoveInstanceDefault();
  1074. void ResetToDefault();
  1075. bool Save(File) const;
  1076. bool Save(VectorBuffer&) const;
  1077. bool SaveXML(XMLElement&) const;
  1078. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1079. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1080. bool SetAttribute(const String&, const Variant&);
  1081. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1082. void SetAttributeAnimationSpeed(const String&, float);
  1083. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1084. void SetOrthoSize(const Vector2&);
  1085. Vector2 WorldToScreenPoint(const Vector3&) const;
  1086. // Properties:
  1087. bool animationEnabled;
  1088. float aspectRatio;
  1089. /* readonly */
  1090. Array<Variant> attributeDefaults;
  1091. /* readonly */
  1092. Array<AttributeInfo> attributeInfos;
  1093. Array<Variant> attributes;
  1094. bool autoAspectRatio;
  1095. /* readonly */
  1096. StringHash baseType;
  1097. /* readonly */
  1098. String category;
  1099. Plane clipPlane;
  1100. /* readonly */
  1101. Matrix3x4 effectiveWorldTransform;
  1102. bool enabled;
  1103. /* readonly */
  1104. bool enabledEffective;
  1105. float farClip;
  1106. FillMode fillMode;
  1107. float fov;
  1108. /* readonly */
  1109. Frustum frustum;
  1110. /* readonly */
  1111. float halfViewSize;
  1112. /* readonly */
  1113. uint id;
  1114. float lodBias;
  1115. float nearClip;
  1116. /* readonly */
  1117. Node node;
  1118. /* readonly */
  1119. uint numAttributes;
  1120. ObjectAnimation objectAnimation;
  1121. float orthoSize;
  1122. bool orthographic;
  1123. /* readonly */
  1124. Matrix4 projection;
  1125. Vector2 projectionOffset;
  1126. Plane reflectionPlane;
  1127. /* readonly */
  1128. int refs;
  1129. bool temporary;
  1130. /* readonly */
  1131. StringHash type;
  1132. /* readonly */
  1133. String typeName;
  1134. bool useClipping;
  1135. bool useReflection;
  1136. /* readonly */
  1137. Matrix3x4 view;
  1138. uint viewMask;
  1139. uint viewOverrideFlags;
  1140. /* readonly */
  1141. Frustum viewSpaceFrustum;
  1142. /* readonly */
  1143. int weakRefs;
  1144. float zoom;
  1145. };
  1146. class CascadeParameters
  1147. {
  1148. // Properties:
  1149. float biasAutoAdjust;
  1150. float fadeStart;
  1151. float split1;
  1152. float split2;
  1153. float split3;
  1154. float split4;
  1155. };
  1156. class CheckBox
  1157. {
  1158. // Methods:
  1159. void AddChild(UIElement);
  1160. void ApplyAttributes();
  1161. void BringToFront();
  1162. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1163. void DisableLayoutUpdate();
  1164. IntVector2 ElementToScreen(const IntVector2&);
  1165. void EnableLayoutUpdate();
  1166. uint FindChild(UIElement) const;
  1167. Variant GetAttribute(const String&) const;
  1168. ValueAnimation GetAttributeAnimation(const String&) const;
  1169. float GetAttributeAnimationSpeed(const String&) const;
  1170. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1171. Variant GetAttributeDefault(const String&) const;
  1172. UIElement GetChild(const String&, bool = false) const;
  1173. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1174. Array<UIElement> GetChildren(bool = false) const;
  1175. UIElement GetElementEventSender() const;
  1176. uint GetNumChildren(bool) const;
  1177. void InsertChild(uint, UIElement);
  1178. bool IsInside(IntVector2, bool);
  1179. bool IsInsideCombined(IntVector2, bool);
  1180. bool Load(File, bool = false);
  1181. bool Load(VectorBuffer&, bool = false);
  1182. bool LoadChildXML(XMLFile, XMLFile = null);
  1183. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1184. bool LoadXML(File);
  1185. bool LoadXML(VectorBuffer&);
  1186. bool LoadXML(XMLFile, XMLFile);
  1187. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1188. bool LoadXML(const XMLElement&, bool = false);
  1189. void MarkNetworkUpdate() const;
  1190. void Remove();
  1191. void RemoveAllChildren();
  1192. void RemoveChild(UIElement, uint = 0);
  1193. void RemoveChild(uint);
  1194. void RemoveInstanceDefault();
  1195. void ResetDeepEnabled();
  1196. void ResetToDefault();
  1197. bool Save(File) const;
  1198. bool Save(VectorBuffer&) const;
  1199. bool SaveXML(File);
  1200. bool SaveXML(VectorBuffer&);
  1201. bool SaveXML(XMLElement&) const;
  1202. IntVector2 ScreenToElement(const IntVector2&);
  1203. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1204. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1205. bool SetAttribute(const String&, const Variant&);
  1206. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1207. void SetAttributeAnimationSpeed(const String&, float);
  1208. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1209. void SetCheckedOffset(int, int);
  1210. void SetDeepEnabled(bool);
  1211. void SetEnabledRecursive(bool);
  1212. void SetFixedHeight(int);
  1213. void SetFixedSize(int, int);
  1214. void SetFixedWidth(int);
  1215. void SetFullImageRect();
  1216. void SetHoverOffset(int, int);
  1217. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1218. void SetMaxSize(int, int);
  1219. void SetMinSize(int, int);
  1220. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1221. void SetPosition(int, int);
  1222. void SetSize(int, int);
  1223. bool SetStyle(const String&, XMLFile = null);
  1224. bool SetStyle(const XMLElement&);
  1225. bool SetStyleAuto(XMLFile = null);
  1226. void UpdateLayout();
  1227. const Variant& GetVar(const StringHash&);
  1228. // Properties:
  1229. bool animationEnabled;
  1230. /* readonly */
  1231. Array<Variant> attributeDefaults;
  1232. /* readonly */
  1233. Array<AttributeInfo> attributeInfos;
  1234. Array<Variant> attributes;
  1235. /* readonly */
  1236. StringHash baseType;
  1237. BlendMode blendMode;
  1238. IntRect border;
  1239. bool bringToBack;
  1240. bool bringToFront;
  1241. /* readonly */
  1242. String category;
  1243. bool checked;
  1244. IntVector2 checkedOffset;
  1245. /* readonly */
  1246. IntVector2 childOffset;
  1247. /* readonly */
  1248. Array<UIElement> children;
  1249. IntRect clipBorder;
  1250. bool clipChildren;
  1251. /* writeonly */
  1252. Color color;
  1253. /* readonly */
  1254. bool colorGradient;
  1255. Array<Color> colors;
  1256. /* readonly */
  1257. IntRect combinedScreenRect;
  1258. XMLFile defaultStyle;
  1259. /* readonly */
  1260. float derivedOpacity;
  1261. /* readonly */
  1262. uint dragButtonCombo;
  1263. /* readonly */
  1264. int dragButtonCount;
  1265. uint dragDropMode;
  1266. bool editable;
  1267. bool elementEventSender;
  1268. bool enabled;
  1269. /* readonly */
  1270. bool enabledSelf;
  1271. /* readonly */
  1272. bool fixedHeight;
  1273. /* readonly */
  1274. bool fixedSize;
  1275. /* readonly */
  1276. bool fixedWidth;
  1277. bool focus;
  1278. FocusMode focusMode;
  1279. int height;
  1280. HorizontalAlignment horizontalAlignment;
  1281. IntVector2 hoverOffset;
  1282. /* readonly */
  1283. bool hovering;
  1284. IntRect imageBorder;
  1285. IntRect imageRect;
  1286. int indent;
  1287. int indentSpacing;
  1288. /* readonly */
  1289. int indentWidth;
  1290. bool internal;
  1291. IntRect layoutBorder;
  1292. Vector2 layoutFlexScale;
  1293. LayoutMode layoutMode;
  1294. int layoutSpacing;
  1295. int maxHeight;
  1296. IntVector2 maxSize;
  1297. int maxWidth;
  1298. int minHeight;
  1299. IntVector2 minSize;
  1300. int minWidth;
  1301. String name;
  1302. /* readonly */
  1303. uint numAllChildren;
  1304. /* readonly */
  1305. uint numAttributes;
  1306. /* readonly */
  1307. uint numChildren;
  1308. ObjectAnimation objectAnimation;
  1309. float opacity;
  1310. UIElement parent;
  1311. IntVector2 position;
  1312. int priority;
  1313. /* readonly */
  1314. int refs;
  1315. /* readonly */
  1316. UIElement root;
  1317. /* readonly */
  1318. IntVector2 screenPosition;
  1319. bool selected;
  1320. IntVector2 size;
  1321. bool sortChildren;
  1322. String style;
  1323. bool temporary;
  1324. Texture texture;
  1325. bool tiled;
  1326. TraversalMode traversalMode;
  1327. /* readonly */
  1328. StringHash type;
  1329. /* readonly */
  1330. String typeName;
  1331. bool useDerivedOpacity;
  1332. /* readonly */
  1333. VariantMap vars;
  1334. VerticalAlignment verticalAlignment;
  1335. bool visible;
  1336. /* readonly */
  1337. int weakRefs;
  1338. int width;
  1339. };
  1340. class CollisionBox2D
  1341. {
  1342. // Methods:
  1343. void ApplyAttributes();
  1344. void DrawDebugGeometry(DebugRenderer, bool);
  1345. Variant GetAttribute(const String&) const;
  1346. ValueAnimation GetAttributeAnimation(const String&) const;
  1347. float GetAttributeAnimationSpeed(const String&) const;
  1348. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1349. Variant GetAttributeDefault(const String&) const;
  1350. bool Load(File, bool = false);
  1351. bool Load(VectorBuffer&, bool = false);
  1352. bool LoadXML(const XMLElement&, bool = false);
  1353. void MarkNetworkUpdate() const;
  1354. void Remove();
  1355. void RemoveInstanceDefault();
  1356. void ResetToDefault();
  1357. bool Save(File) const;
  1358. bool Save(VectorBuffer&) const;
  1359. bool SaveXML(XMLElement&) const;
  1360. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1361. bool SetAttribute(const String&, const Variant&);
  1362. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1363. void SetAttributeAnimationSpeed(const String&, float);
  1364. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1365. void SetCenter(float, float);
  1366. void SetSize(float, float);
  1367. // Properties:
  1368. float angle;
  1369. bool animationEnabled;
  1370. /* readonly */
  1371. Array<Variant> attributeDefaults;
  1372. /* readonly */
  1373. Array<AttributeInfo> attributeInfos;
  1374. Array<Variant> attributes;
  1375. /* readonly */
  1376. StringHash baseType;
  1377. /* readonly */
  1378. String category;
  1379. int categoryBits;
  1380. Vector2 center;
  1381. float density;
  1382. bool enabled;
  1383. /* readonly */
  1384. bool enabledEffective;
  1385. float friction;
  1386. int groupIndex;
  1387. /* readonly */
  1388. uint id;
  1389. /* readonly */
  1390. float inertia;
  1391. int maskBits;
  1392. /* readonly */
  1393. float mass;
  1394. /* readonly */
  1395. Vector2 massCenter;
  1396. /* readonly */
  1397. Node node;
  1398. /* readonly */
  1399. uint numAttributes;
  1400. ObjectAnimation objectAnimation;
  1401. /* readonly */
  1402. int refs;
  1403. float restitution;
  1404. Vector2 size;
  1405. bool temporary;
  1406. bool trigger;
  1407. /* readonly */
  1408. StringHash type;
  1409. /* readonly */
  1410. String typeName;
  1411. /* readonly */
  1412. int weakRefs;
  1413. };
  1414. class CollisionChain2D
  1415. {
  1416. // Methods:
  1417. void ApplyAttributes();
  1418. void DrawDebugGeometry(DebugRenderer, bool);
  1419. Variant GetAttribute(const String&) const;
  1420. ValueAnimation GetAttributeAnimation(const String&) const;
  1421. float GetAttributeAnimationSpeed(const String&) const;
  1422. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1423. Variant GetAttributeDefault(const String&) const;
  1424. Array<Vector2> GetVertices() const;
  1425. bool Load(File, bool = false);
  1426. bool Load(VectorBuffer&, bool = false);
  1427. bool LoadXML(const XMLElement&, bool = false);
  1428. void MarkNetworkUpdate() const;
  1429. void Remove();
  1430. void RemoveInstanceDefault();
  1431. void ResetToDefault();
  1432. bool Save(File) const;
  1433. bool Save(VectorBuffer&) const;
  1434. bool SaveXML(XMLElement&) const;
  1435. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1436. bool SetAttribute(const String&, const Variant&);
  1437. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1438. void SetAttributeAnimationSpeed(const String&, float);
  1439. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1440. void SetVertex(uint, const Vector2&);
  1441. void SetVertices(Array<Vector2>);
  1442. const Vector2& GetVertex(uint) const;
  1443. // Properties:
  1444. bool animationEnabled;
  1445. /* readonly */
  1446. Array<Variant> attributeDefaults;
  1447. /* readonly */
  1448. Array<AttributeInfo> attributeInfos;
  1449. Array<Variant> attributes;
  1450. /* readonly */
  1451. StringHash baseType;
  1452. /* readonly */
  1453. String category;
  1454. int categoryBits;
  1455. float density;
  1456. bool enabled;
  1457. /* readonly */
  1458. bool enabledEffective;
  1459. float friction;
  1460. int groupIndex;
  1461. /* readonly */
  1462. uint id;
  1463. /* readonly */
  1464. float inertia;
  1465. bool loop;
  1466. int maskBits;
  1467. /* readonly */
  1468. float mass;
  1469. /* readonly */
  1470. Vector2 massCenter;
  1471. /* readonly */
  1472. Node node;
  1473. /* readonly */
  1474. uint numAttributes;
  1475. ObjectAnimation objectAnimation;
  1476. /* readonly */
  1477. int refs;
  1478. float restitution;
  1479. bool temporary;
  1480. bool trigger;
  1481. /* readonly */
  1482. StringHash type;
  1483. /* readonly */
  1484. String typeName;
  1485. uint vertexCount;
  1486. /* readonly */
  1487. int weakRefs;
  1488. };
  1489. class CollisionCircle2D
  1490. {
  1491. // Methods:
  1492. void ApplyAttributes();
  1493. void DrawDebugGeometry(DebugRenderer, bool);
  1494. Variant GetAttribute(const String&) const;
  1495. ValueAnimation GetAttributeAnimation(const String&) const;
  1496. float GetAttributeAnimationSpeed(const String&) const;
  1497. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1498. Variant GetAttributeDefault(const String&) const;
  1499. bool Load(File, bool = false);
  1500. bool Load(VectorBuffer&, bool = false);
  1501. bool LoadXML(const XMLElement&, bool = false);
  1502. void MarkNetworkUpdate() const;
  1503. void Remove();
  1504. void RemoveInstanceDefault();
  1505. void ResetToDefault();
  1506. bool Save(File) const;
  1507. bool Save(VectorBuffer&) const;
  1508. bool SaveXML(XMLElement&) const;
  1509. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1510. bool SetAttribute(const String&, const Variant&);
  1511. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1512. void SetAttributeAnimationSpeed(const String&, float);
  1513. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1514. void SetCenter(float, float);
  1515. // Properties:
  1516. bool animationEnabled;
  1517. /* readonly */
  1518. Array<Variant> attributeDefaults;
  1519. /* readonly */
  1520. Array<AttributeInfo> attributeInfos;
  1521. Array<Variant> attributes;
  1522. /* readonly */
  1523. StringHash baseType;
  1524. /* readonly */
  1525. String category;
  1526. int categoryBits;
  1527. Vector2 center;
  1528. float density;
  1529. bool enabled;
  1530. /* readonly */
  1531. bool enabledEffective;
  1532. float friction;
  1533. int groupIndex;
  1534. /* readonly */
  1535. uint id;
  1536. /* readonly */
  1537. float inertia;
  1538. int maskBits;
  1539. /* readonly */
  1540. float mass;
  1541. /* readonly */
  1542. Vector2 massCenter;
  1543. /* readonly */
  1544. Node node;
  1545. /* readonly */
  1546. uint numAttributes;
  1547. ObjectAnimation objectAnimation;
  1548. float radius;
  1549. /* readonly */
  1550. int refs;
  1551. float restitution;
  1552. bool temporary;
  1553. bool trigger;
  1554. /* readonly */
  1555. StringHash type;
  1556. /* readonly */
  1557. String typeName;
  1558. /* readonly */
  1559. int weakRefs;
  1560. };
  1561. class CollisionEdge2D
  1562. {
  1563. // Methods:
  1564. void ApplyAttributes();
  1565. void DrawDebugGeometry(DebugRenderer, bool);
  1566. Variant GetAttribute(const String&) const;
  1567. ValueAnimation GetAttributeAnimation(const String&) const;
  1568. float GetAttributeAnimationSpeed(const String&) const;
  1569. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1570. Variant GetAttributeDefault(const String&) const;
  1571. bool Load(File, bool = false);
  1572. bool Load(VectorBuffer&, bool = false);
  1573. bool LoadXML(const XMLElement&, bool = false);
  1574. void MarkNetworkUpdate() const;
  1575. void Remove();
  1576. void RemoveInstanceDefault();
  1577. void ResetToDefault();
  1578. bool Save(File) const;
  1579. bool Save(VectorBuffer&) const;
  1580. bool SaveXML(XMLElement&) const;
  1581. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1582. bool SetAttribute(const String&, const Variant&);
  1583. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1584. void SetAttributeAnimationSpeed(const String&, float);
  1585. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1586. void SetVertices(const Vector2&, const Vector2&);
  1587. // Properties:
  1588. bool animationEnabled;
  1589. /* readonly */
  1590. Array<Variant> attributeDefaults;
  1591. /* readonly */
  1592. Array<AttributeInfo> attributeInfos;
  1593. Array<Variant> attributes;
  1594. /* readonly */
  1595. StringHash baseType;
  1596. /* readonly */
  1597. String category;
  1598. int categoryBits;
  1599. float density;
  1600. bool enabled;
  1601. /* readonly */
  1602. bool enabledEffective;
  1603. float friction;
  1604. int groupIndex;
  1605. /* readonly */
  1606. uint id;
  1607. /* readonly */
  1608. float inertia;
  1609. int maskBits;
  1610. /* readonly */
  1611. float mass;
  1612. /* readonly */
  1613. Vector2 massCenter;
  1614. /* readonly */
  1615. Node node;
  1616. /* readonly */
  1617. uint numAttributes;
  1618. ObjectAnimation objectAnimation;
  1619. /* readonly */
  1620. int refs;
  1621. float restitution;
  1622. bool temporary;
  1623. bool trigger;
  1624. /* readonly */
  1625. StringHash type;
  1626. /* readonly */
  1627. String typeName;
  1628. Vector2 vertex1;
  1629. Vector2 vertex2;
  1630. /* readonly */
  1631. int weakRefs;
  1632. };
  1633. class CollisionPolygon2D
  1634. {
  1635. // Methods:
  1636. void ApplyAttributes();
  1637. void DrawDebugGeometry(DebugRenderer, bool);
  1638. Variant GetAttribute(const String&) const;
  1639. ValueAnimation GetAttributeAnimation(const String&) const;
  1640. float GetAttributeAnimationSpeed(const String&) const;
  1641. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1642. Variant GetAttributeDefault(const String&) const;
  1643. Array<Vector2> GetVertices() const;
  1644. bool Load(File, bool = false);
  1645. bool Load(VectorBuffer&, bool = false);
  1646. bool LoadXML(const XMLElement&, bool = false);
  1647. void MarkNetworkUpdate() const;
  1648. void Remove();
  1649. void RemoveInstanceDefault();
  1650. void ResetToDefault();
  1651. bool Save(File) const;
  1652. bool Save(VectorBuffer&) const;
  1653. bool SaveXML(XMLElement&) const;
  1654. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1655. bool SetAttribute(const String&, const Variant&);
  1656. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1657. void SetAttributeAnimationSpeed(const String&, float);
  1658. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1659. void SetVertex(uint, const Vector2&);
  1660. void SetVertices(Array<Vector2>);
  1661. const Vector2& GetVertex(uint) const;
  1662. // Properties:
  1663. bool animationEnabled;
  1664. /* readonly */
  1665. Array<Variant> attributeDefaults;
  1666. /* readonly */
  1667. Array<AttributeInfo> attributeInfos;
  1668. Array<Variant> attributes;
  1669. /* readonly */
  1670. StringHash baseType;
  1671. /* readonly */
  1672. String category;
  1673. int categoryBits;
  1674. float density;
  1675. bool enabled;
  1676. /* readonly */
  1677. bool enabledEffective;
  1678. float friction;
  1679. int groupIndex;
  1680. /* readonly */
  1681. uint id;
  1682. /* readonly */
  1683. float inertia;
  1684. int maskBits;
  1685. /* readonly */
  1686. float mass;
  1687. /* readonly */
  1688. Vector2 massCenter;
  1689. /* readonly */
  1690. Node node;
  1691. /* readonly */
  1692. uint numAttributes;
  1693. ObjectAnimation objectAnimation;
  1694. /* readonly */
  1695. int refs;
  1696. float restitution;
  1697. bool temporary;
  1698. bool trigger;
  1699. /* readonly */
  1700. StringHash type;
  1701. /* readonly */
  1702. String typeName;
  1703. uint vertexCount;
  1704. /* readonly */
  1705. int weakRefs;
  1706. };
  1707. class CollisionShape
  1708. {
  1709. // Methods:
  1710. void ApplyAttributes();
  1711. void DrawDebugGeometry(DebugRenderer, bool);
  1712. Variant GetAttribute(const String&) const;
  1713. ValueAnimation GetAttributeAnimation(const String&) const;
  1714. float GetAttributeAnimationSpeed(const String&) const;
  1715. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1716. Variant GetAttributeDefault(const String&) const;
  1717. bool Load(File, bool = false);
  1718. bool Load(VectorBuffer&, bool = false);
  1719. bool LoadXML(const XMLElement&, bool = false);
  1720. void MarkNetworkUpdate() const;
  1721. void Remove();
  1722. void RemoveInstanceDefault();
  1723. void ResetToDefault();
  1724. bool Save(File) const;
  1725. bool Save(VectorBuffer&) const;
  1726. bool SaveXML(XMLElement&) const;
  1727. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1728. bool SetAttribute(const String&, const Variant&);
  1729. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1730. void SetAttributeAnimationSpeed(const String&, float);
  1731. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1732. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1733. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1734. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1735. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1736. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1737. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1738. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1739. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1740. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1741. void SetTerrain(uint = 0);
  1742. void SetTransform(const Vector3&, const Quaternion&);
  1743. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1744. // Properties:
  1745. bool animationEnabled;
  1746. /* readonly */
  1747. Array<Variant> attributeDefaults;
  1748. /* readonly */
  1749. Array<AttributeInfo> attributeInfos;
  1750. Array<Variant> attributes;
  1751. /* readonly */
  1752. StringHash baseType;
  1753. /* readonly */
  1754. String category;
  1755. bool enabled;
  1756. /* readonly */
  1757. bool enabledEffective;
  1758. /* readonly */
  1759. uint id;
  1760. uint lodLevel;
  1761. float margin;
  1762. Model model;
  1763. /* readonly */
  1764. Node node;
  1765. /* readonly */
  1766. uint numAttributes;
  1767. ObjectAnimation objectAnimation;
  1768. Vector3 position;
  1769. /* readonly */
  1770. int refs;
  1771. Quaternion rotation;
  1772. ShapeType shapeType;
  1773. Vector3 size;
  1774. bool temporary;
  1775. /* readonly */
  1776. StringHash type;
  1777. /* readonly */
  1778. String typeName;
  1779. /* readonly */
  1780. int weakRefs;
  1781. /* readonly */
  1782. BoundingBox worldBoundingBox;
  1783. };
  1784. class CollisionShape2D
  1785. {
  1786. // Methods:
  1787. void ApplyAttributes();
  1788. void DrawDebugGeometry(DebugRenderer, bool);
  1789. Variant GetAttribute(const String&) const;
  1790. ValueAnimation GetAttributeAnimation(const String&) const;
  1791. float GetAttributeAnimationSpeed(const String&) const;
  1792. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1793. Variant GetAttributeDefault(const String&) const;
  1794. bool Load(File, bool = false);
  1795. bool Load(VectorBuffer&, bool = false);
  1796. bool LoadXML(const XMLElement&, bool = false);
  1797. void MarkNetworkUpdate() const;
  1798. void Remove();
  1799. void RemoveInstanceDefault();
  1800. void ResetToDefault();
  1801. bool Save(File) const;
  1802. bool Save(VectorBuffer&) const;
  1803. bool SaveXML(XMLElement&) const;
  1804. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1805. bool SetAttribute(const String&, const Variant&);
  1806. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1807. void SetAttributeAnimationSpeed(const String&, float);
  1808. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1809. // Properties:
  1810. bool animationEnabled;
  1811. /* readonly */
  1812. Array<Variant> attributeDefaults;
  1813. /* readonly */
  1814. Array<AttributeInfo> attributeInfos;
  1815. Array<Variant> attributes;
  1816. /* readonly */
  1817. StringHash baseType;
  1818. /* readonly */
  1819. String category;
  1820. int categoryBits;
  1821. float density;
  1822. bool enabled;
  1823. /* readonly */
  1824. bool enabledEffective;
  1825. float friction;
  1826. int groupIndex;
  1827. /* readonly */
  1828. uint id;
  1829. /* readonly */
  1830. float inertia;
  1831. int maskBits;
  1832. /* readonly */
  1833. float mass;
  1834. /* readonly */
  1835. Vector2 massCenter;
  1836. /* readonly */
  1837. Node node;
  1838. /* readonly */
  1839. uint numAttributes;
  1840. ObjectAnimation objectAnimation;
  1841. /* readonly */
  1842. int refs;
  1843. float restitution;
  1844. bool temporary;
  1845. bool trigger;
  1846. /* readonly */
  1847. StringHash type;
  1848. /* readonly */
  1849. String typeName;
  1850. /* readonly */
  1851. int weakRefs;
  1852. };
  1853. class Color
  1854. {
  1855. // Methods:
  1856. Color Abs() const;
  1857. float Average() const;
  1858. float Chroma() const;
  1859. void Clip(bool);
  1860. bool Equals() const;
  1861. void FromHSL(float, float, float, float);
  1862. void FromHSV(float, float, float, float);
  1863. float Hue() const;
  1864. void Invert(bool);
  1865. Color Lerp(const Color&, float) const;
  1866. float Lightness() const;
  1867. float Luma() const;
  1868. float MaxRGB() const;
  1869. float MinRGB() const;
  1870. float Range() const;
  1871. float SaturationHSL() const;
  1872. float SaturationHSV() const;
  1873. float SumRGB() const;
  1874. Vector3 ToHSL() const;
  1875. Vector3 ToHSV() const;
  1876. String ToString() const;
  1877. uint ToUInt() const;
  1878. float Value() const;
  1879. // Properties:
  1880. float a;
  1881. float b;
  1882. /* readonly */
  1883. Array<float> data;
  1884. float g;
  1885. float r;
  1886. /* readonly */
  1887. Vector3 rgb;
  1888. /* readonly */
  1889. Vector4 rgba;
  1890. };
  1891. class ColorFrame
  1892. {
  1893. // Properties:
  1894. Color color;
  1895. float time;
  1896. };
  1897. class Component
  1898. {
  1899. // Methods:
  1900. void ApplyAttributes();
  1901. void DrawDebugGeometry(DebugRenderer, bool);
  1902. Variant GetAttribute(const String&) const;
  1903. ValueAnimation GetAttributeAnimation(const String&) const;
  1904. float GetAttributeAnimationSpeed(const String&) const;
  1905. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1906. Variant GetAttributeDefault(const String&) const;
  1907. bool Load(File, bool = false);
  1908. bool Load(VectorBuffer&, bool = false);
  1909. bool LoadXML(const XMLElement&, bool = false);
  1910. void MarkNetworkUpdate() const;
  1911. void Remove();
  1912. void RemoveInstanceDefault();
  1913. void ResetToDefault();
  1914. bool Save(File) const;
  1915. bool Save(VectorBuffer&) const;
  1916. bool SaveXML(XMLElement&) const;
  1917. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1918. bool SetAttribute(const String&, const Variant&);
  1919. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1920. void SetAttributeAnimationSpeed(const String&, float);
  1921. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1922. // Properties:
  1923. bool animationEnabled;
  1924. /* readonly */
  1925. Array<Variant> attributeDefaults;
  1926. /* readonly */
  1927. Array<AttributeInfo> attributeInfos;
  1928. Array<Variant> attributes;
  1929. /* readonly */
  1930. StringHash baseType;
  1931. /* readonly */
  1932. String category;
  1933. bool enabled;
  1934. /* readonly */
  1935. bool enabledEffective;
  1936. /* readonly */
  1937. uint id;
  1938. /* readonly */
  1939. Node node;
  1940. /* readonly */
  1941. uint numAttributes;
  1942. ObjectAnimation objectAnimation;
  1943. /* readonly */
  1944. int refs;
  1945. bool temporary;
  1946. /* readonly */
  1947. StringHash type;
  1948. /* readonly */
  1949. String typeName;
  1950. /* readonly */
  1951. int weakRefs;
  1952. };
  1953. class Connection
  1954. {
  1955. // Methods:
  1956. void Disconnect(int = 0);
  1957. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1958. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  1959. void SendPackageToClient(PackageFile);
  1960. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  1961. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  1962. String ToString() const;
  1963. // Properties:
  1964. /* readonly */
  1965. String address;
  1966. /* readonly */
  1967. StringHash baseType;
  1968. /* readonly */
  1969. String category;
  1970. /* readonly */
  1971. bool client;
  1972. /* readonly */
  1973. bool connectPending;
  1974. /* readonly */
  1975. bool connected;
  1976. Controls controls;
  1977. /* readonly */
  1978. String downloadName;
  1979. /* readonly */
  1980. float downloadProgress;
  1981. VariantMap identity;
  1982. bool logStatistics;
  1983. /* readonly */
  1984. uint numDownloads;
  1985. /* readonly */
  1986. uint16 port;
  1987. Vector3 position;
  1988. /* readonly */
  1989. int refs;
  1990. Quaternion rotation;
  1991. Scene scene;
  1992. /* readonly */
  1993. bool sceneLoaded;
  1994. /* readonly */
  1995. StringHash type;
  1996. /* readonly */
  1997. String typeName;
  1998. /* readonly */
  1999. int weakRefs;
  2000. };
  2001. class Console
  2002. {
  2003. // Methods:
  2004. void CopySelectedRows() const;
  2005. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2006. void Toggle();
  2007. void UpdateElements();
  2008. // Properties:
  2009. bool autoVisibleOnError;
  2010. /* readonly */
  2011. BorderImage background;
  2012. /* readonly */
  2013. StringHash baseType;
  2014. /* readonly */
  2015. String category;
  2016. /* readonly */
  2017. Button closeButton;
  2018. String commandInterpreter;
  2019. XMLFile defaultStyle;
  2020. bool focusOnShow;
  2021. /* readonly */
  2022. uint historyPosition;
  2023. /* readonly */
  2024. Array<String> historyRow;
  2025. /* readonly */
  2026. LineEdit lineEdit;
  2027. uint numBufferedRows;
  2028. uint numHistoryRows;
  2029. uint numRows;
  2030. /* readonly */
  2031. int refs;
  2032. /* readonly */
  2033. StringHash type;
  2034. /* readonly */
  2035. String typeName;
  2036. bool visible;
  2037. /* readonly */
  2038. int weakRefs;
  2039. };
  2040. class Constraint
  2041. {
  2042. // Methods:
  2043. void ApplyAttributes();
  2044. void DrawDebugGeometry(DebugRenderer, bool);
  2045. Variant GetAttribute(const String&) const;
  2046. ValueAnimation GetAttributeAnimation(const String&) const;
  2047. float GetAttributeAnimationSpeed(const String&) const;
  2048. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2049. Variant GetAttributeDefault(const String&) const;
  2050. bool Load(File, bool = false);
  2051. bool Load(VectorBuffer&, bool = false);
  2052. bool LoadXML(const XMLElement&, bool = false);
  2053. void MarkNetworkUpdate() const;
  2054. void Remove();
  2055. void RemoveInstanceDefault();
  2056. void ResetToDefault();
  2057. bool Save(File) const;
  2058. bool Save(VectorBuffer&) const;
  2059. bool SaveXML(XMLElement&) const;
  2060. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2061. bool SetAttribute(const String&, const Variant&);
  2062. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2063. void SetAttributeAnimationSpeed(const String&, float);
  2064. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2065. // Properties:
  2066. bool animationEnabled;
  2067. /* readonly */
  2068. Array<Variant> attributeDefaults;
  2069. /* readonly */
  2070. Array<AttributeInfo> attributeInfos;
  2071. Array<Variant> attributes;
  2072. /* writeonly */
  2073. Vector3 axis;
  2074. /* readonly */
  2075. StringHash baseType;
  2076. /* readonly */
  2077. String category;
  2078. float cfm;
  2079. ConstraintType constraintType;
  2080. bool disableCollision;
  2081. bool enabled;
  2082. /* readonly */
  2083. bool enabledEffective;
  2084. float erp;
  2085. Vector2 highLimit;
  2086. /* readonly */
  2087. uint id;
  2088. Vector2 lowLimit;
  2089. /* readonly */
  2090. Node node;
  2091. /* readonly */
  2092. uint numAttributes;
  2093. ObjectAnimation objectAnimation;
  2094. /* writeonly */
  2095. Vector3 otherAxis;
  2096. RigidBody otherBody;
  2097. Vector3 otherPosition;
  2098. Quaternion otherRotation;
  2099. /* readonly */
  2100. RigidBody ownBody;
  2101. Vector3 position;
  2102. /* readonly */
  2103. int refs;
  2104. Quaternion rotation;
  2105. bool temporary;
  2106. /* readonly */
  2107. StringHash type;
  2108. /* readonly */
  2109. String typeName;
  2110. /* readonly */
  2111. int weakRefs;
  2112. Vector3 worldPosition;
  2113. };
  2114. class Constraint2D
  2115. {
  2116. // Methods:
  2117. void ApplyAttributes();
  2118. void DrawDebugGeometry(DebugRenderer, bool);
  2119. Variant GetAttribute(const String&) const;
  2120. ValueAnimation GetAttributeAnimation(const String&) const;
  2121. float GetAttributeAnimationSpeed(const String&) const;
  2122. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2123. Variant GetAttributeDefault(const String&) const;
  2124. bool Load(File, bool = false);
  2125. bool Load(VectorBuffer&, bool = false);
  2126. bool LoadXML(const XMLElement&, bool = false);
  2127. void MarkNetworkUpdate() const;
  2128. void Remove();
  2129. void RemoveInstanceDefault();
  2130. void ResetToDefault();
  2131. bool Save(File) const;
  2132. bool Save(VectorBuffer&) const;
  2133. bool SaveXML(XMLElement&) const;
  2134. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2135. bool SetAttribute(const String&, const Variant&);
  2136. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2137. void SetAttributeAnimationSpeed(const String&, float);
  2138. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2139. // Properties:
  2140. bool animationEnabled;
  2141. /* readonly */
  2142. Array<Variant> attributeDefaults;
  2143. /* readonly */
  2144. Array<AttributeInfo> attributeInfos;
  2145. Array<Variant> attributes;
  2146. /* readonly */
  2147. StringHash baseType;
  2148. /* readonly */
  2149. String category;
  2150. bool collideConnected;
  2151. bool enabled;
  2152. /* readonly */
  2153. bool enabledEffective;
  2154. /* readonly */
  2155. uint id;
  2156. /* readonly */
  2157. Node node;
  2158. /* readonly */
  2159. uint numAttributes;
  2160. ObjectAnimation objectAnimation;
  2161. RigidBody2D otherBody;
  2162. /* readonly */
  2163. RigidBody2D ownerBody;
  2164. /* readonly */
  2165. int refs;
  2166. bool temporary;
  2167. /* readonly */
  2168. StringHash type;
  2169. /* readonly */
  2170. String typeName;
  2171. /* readonly */
  2172. int weakRefs;
  2173. };
  2174. class ConstraintDistance2D
  2175. {
  2176. // Methods:
  2177. void ApplyAttributes();
  2178. void DrawDebugGeometry(DebugRenderer, bool);
  2179. Variant GetAttribute(const String&) const;
  2180. ValueAnimation GetAttributeAnimation(const String&) const;
  2181. float GetAttributeAnimationSpeed(const String&) const;
  2182. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2183. Variant GetAttributeDefault(const String&) const;
  2184. bool Load(File, bool = false);
  2185. bool Load(VectorBuffer&, bool = false);
  2186. bool LoadXML(const XMLElement&, bool = false);
  2187. void MarkNetworkUpdate() const;
  2188. void Remove();
  2189. void RemoveInstanceDefault();
  2190. void ResetToDefault();
  2191. bool Save(File) const;
  2192. bool Save(VectorBuffer&) const;
  2193. bool SaveXML(XMLElement&) const;
  2194. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2195. bool SetAttribute(const String&, const Variant&);
  2196. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2197. void SetAttributeAnimationSpeed(const String&, float);
  2198. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2199. // Properties:
  2200. bool animationEnabled;
  2201. /* readonly */
  2202. Array<Variant> attributeDefaults;
  2203. /* readonly */
  2204. Array<AttributeInfo> attributeInfos;
  2205. Array<Variant> attributes;
  2206. /* readonly */
  2207. StringHash baseType;
  2208. /* readonly */
  2209. String category;
  2210. bool collideConnected;
  2211. float dampingRatio;
  2212. bool enabled;
  2213. /* readonly */
  2214. bool enabledEffective;
  2215. float frequencyHz;
  2216. /* readonly */
  2217. uint id;
  2218. /* readonly */
  2219. Node node;
  2220. /* readonly */
  2221. uint numAttributes;
  2222. ObjectAnimation objectAnimation;
  2223. RigidBody2D otherBody;
  2224. Vector2 otherBodyAnchor;
  2225. /* readonly */
  2226. RigidBody2D ownerBody;
  2227. Vector2 ownerBodyAnchor;
  2228. /* readonly */
  2229. int refs;
  2230. bool temporary;
  2231. /* readonly */
  2232. StringHash type;
  2233. /* readonly */
  2234. String typeName;
  2235. /* readonly */
  2236. int weakRefs;
  2237. };
  2238. class ConstraintFriction2D
  2239. {
  2240. // Methods:
  2241. void ApplyAttributes();
  2242. void DrawDebugGeometry(DebugRenderer, bool);
  2243. Variant GetAttribute(const String&) const;
  2244. ValueAnimation GetAttributeAnimation(const String&) const;
  2245. float GetAttributeAnimationSpeed(const String&) const;
  2246. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2247. Variant GetAttributeDefault(const String&) const;
  2248. bool Load(File, bool = false);
  2249. bool Load(VectorBuffer&, bool = false);
  2250. bool LoadXML(const XMLElement&, bool = false);
  2251. void MarkNetworkUpdate() const;
  2252. void Remove();
  2253. void RemoveInstanceDefault();
  2254. void ResetToDefault();
  2255. bool Save(File) const;
  2256. bool Save(VectorBuffer&) const;
  2257. bool SaveXML(XMLElement&) const;
  2258. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2259. bool SetAttribute(const String&, const Variant&);
  2260. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2261. void SetAttributeAnimationSpeed(const String&, float);
  2262. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2263. // Properties:
  2264. Vector2 anchor;
  2265. bool animationEnabled;
  2266. /* readonly */
  2267. Array<Variant> attributeDefaults;
  2268. /* readonly */
  2269. Array<AttributeInfo> attributeInfos;
  2270. Array<Variant> attributes;
  2271. /* readonly */
  2272. StringHash baseType;
  2273. /* readonly */
  2274. String category;
  2275. bool collideConnected;
  2276. bool enabled;
  2277. /* readonly */
  2278. bool enabledEffective;
  2279. /* readonly */
  2280. uint id;
  2281. float maxForce;
  2282. float maxTorque;
  2283. /* readonly */
  2284. Node node;
  2285. /* readonly */
  2286. uint numAttributes;
  2287. ObjectAnimation objectAnimation;
  2288. RigidBody2D otherBody;
  2289. /* readonly */
  2290. RigidBody2D ownerBody;
  2291. /* readonly */
  2292. int refs;
  2293. bool temporary;
  2294. /* readonly */
  2295. StringHash type;
  2296. /* readonly */
  2297. String typeName;
  2298. /* readonly */
  2299. int weakRefs;
  2300. };
  2301. class ConstraintGear2D
  2302. {
  2303. // Methods:
  2304. void ApplyAttributes();
  2305. void DrawDebugGeometry(DebugRenderer, bool);
  2306. Variant GetAttribute(const String&) const;
  2307. ValueAnimation GetAttributeAnimation(const String&) const;
  2308. float GetAttributeAnimationSpeed(const String&) const;
  2309. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2310. Variant GetAttributeDefault(const String&) const;
  2311. bool Load(File, bool = false);
  2312. bool Load(VectorBuffer&, bool = false);
  2313. bool LoadXML(const XMLElement&, bool = false);
  2314. void MarkNetworkUpdate() const;
  2315. void Remove();
  2316. void RemoveInstanceDefault();
  2317. void ResetToDefault();
  2318. bool Save(File) const;
  2319. bool Save(VectorBuffer&) const;
  2320. bool SaveXML(XMLElement&) const;
  2321. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2322. bool SetAttribute(const String&, const Variant&);
  2323. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2324. void SetAttributeAnimationSpeed(const String&, float);
  2325. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2326. // Properties:
  2327. bool animationEnabled;
  2328. /* readonly */
  2329. Array<Variant> attributeDefaults;
  2330. /* readonly */
  2331. Array<AttributeInfo> attributeInfos;
  2332. Array<Variant> attributes;
  2333. /* readonly */
  2334. StringHash baseType;
  2335. /* readonly */
  2336. String category;
  2337. bool collideConnected;
  2338. bool enabled;
  2339. /* readonly */
  2340. bool enabledEffective;
  2341. /* readonly */
  2342. uint id;
  2343. /* readonly */
  2344. Node node;
  2345. /* readonly */
  2346. uint numAttributes;
  2347. ObjectAnimation objectAnimation;
  2348. RigidBody2D otherBody;
  2349. Constraint2D otherConstraint;
  2350. /* readonly */
  2351. RigidBody2D ownerBody;
  2352. Constraint2D ownerConstraint;
  2353. float ratio;
  2354. /* readonly */
  2355. int refs;
  2356. bool temporary;
  2357. /* readonly */
  2358. StringHash type;
  2359. /* readonly */
  2360. String typeName;
  2361. /* readonly */
  2362. int weakRefs;
  2363. };
  2364. class ConstraintMotor2D
  2365. {
  2366. // Methods:
  2367. void ApplyAttributes();
  2368. void DrawDebugGeometry(DebugRenderer, bool);
  2369. Variant GetAttribute(const String&) const;
  2370. ValueAnimation GetAttributeAnimation(const String&) const;
  2371. float GetAttributeAnimationSpeed(const String&) const;
  2372. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2373. Variant GetAttributeDefault(const String&) const;
  2374. bool Load(File, bool = false);
  2375. bool Load(VectorBuffer&, bool = false);
  2376. bool LoadXML(const XMLElement&, bool = false);
  2377. void MarkNetworkUpdate() const;
  2378. void Remove();
  2379. void RemoveInstanceDefault();
  2380. void ResetToDefault();
  2381. bool Save(File) const;
  2382. bool Save(VectorBuffer&) const;
  2383. bool SaveXML(XMLElement&) const;
  2384. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2385. bool SetAttribute(const String&, const Variant&);
  2386. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2387. void SetAttributeAnimationSpeed(const String&, float);
  2388. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2389. // Properties:
  2390. float angularOffset;
  2391. bool animationEnabled;
  2392. /* readonly */
  2393. Array<Variant> attributeDefaults;
  2394. /* readonly */
  2395. Array<AttributeInfo> attributeInfos;
  2396. Array<Variant> attributes;
  2397. /* readonly */
  2398. StringHash baseType;
  2399. /* readonly */
  2400. String category;
  2401. bool collideConnected;
  2402. float correctionFactor;
  2403. bool enabled;
  2404. /* readonly */
  2405. bool enabledEffective;
  2406. /* readonly */
  2407. uint id;
  2408. Vector2 linearOffset;
  2409. float maxForce;
  2410. float maxTorque;
  2411. /* readonly */
  2412. Node node;
  2413. /* readonly */
  2414. uint numAttributes;
  2415. ObjectAnimation objectAnimation;
  2416. RigidBody2D otherBody;
  2417. /* readonly */
  2418. RigidBody2D ownerBody;
  2419. /* readonly */
  2420. int refs;
  2421. bool temporary;
  2422. /* readonly */
  2423. StringHash type;
  2424. /* readonly */
  2425. String typeName;
  2426. /* readonly */
  2427. int weakRefs;
  2428. };
  2429. class ConstraintMouse2D
  2430. {
  2431. // Methods:
  2432. void ApplyAttributes();
  2433. void DrawDebugGeometry(DebugRenderer, bool);
  2434. Variant GetAttribute(const String&) const;
  2435. ValueAnimation GetAttributeAnimation(const String&) const;
  2436. float GetAttributeAnimationSpeed(const String&) const;
  2437. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2438. Variant GetAttributeDefault(const String&) const;
  2439. bool Load(File, bool = false);
  2440. bool Load(VectorBuffer&, bool = false);
  2441. bool LoadXML(const XMLElement&, bool = false);
  2442. void MarkNetworkUpdate() const;
  2443. void Remove();
  2444. void RemoveInstanceDefault();
  2445. void ResetToDefault();
  2446. bool Save(File) const;
  2447. bool Save(VectorBuffer&) const;
  2448. bool SaveXML(XMLElement&) const;
  2449. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2450. bool SetAttribute(const String&, const Variant&);
  2451. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2452. void SetAttributeAnimationSpeed(const String&, float);
  2453. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2454. // Properties:
  2455. bool animationEnabled;
  2456. /* readonly */
  2457. Array<Variant> attributeDefaults;
  2458. /* readonly */
  2459. Array<AttributeInfo> attributeInfos;
  2460. Array<Variant> attributes;
  2461. /* readonly */
  2462. StringHash baseType;
  2463. /* readonly */
  2464. String category;
  2465. bool collideConnected;
  2466. float dampingRatio;
  2467. bool enabled;
  2468. /* readonly */
  2469. bool enabledEffective;
  2470. float frequencyHz;
  2471. /* readonly */
  2472. uint id;
  2473. float maxForce;
  2474. /* readonly */
  2475. Node node;
  2476. /* readonly */
  2477. uint numAttributes;
  2478. ObjectAnimation objectAnimation;
  2479. RigidBody2D otherBody;
  2480. /* readonly */
  2481. RigidBody2D ownerBody;
  2482. /* readonly */
  2483. int refs;
  2484. Vector2 target;
  2485. bool temporary;
  2486. /* readonly */
  2487. StringHash type;
  2488. /* readonly */
  2489. String typeName;
  2490. /* readonly */
  2491. int weakRefs;
  2492. };
  2493. class ConstraintPrismatic2D
  2494. {
  2495. // Methods:
  2496. void ApplyAttributes();
  2497. void DrawDebugGeometry(DebugRenderer, bool);
  2498. Variant GetAttribute(const String&) const;
  2499. ValueAnimation GetAttributeAnimation(const String&) const;
  2500. float GetAttributeAnimationSpeed(const String&) const;
  2501. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2502. Variant GetAttributeDefault(const String&) const;
  2503. bool Load(File, bool = false);
  2504. bool Load(VectorBuffer&, bool = false);
  2505. bool LoadXML(const XMLElement&, bool = false);
  2506. void MarkNetworkUpdate() const;
  2507. void Remove();
  2508. void RemoveInstanceDefault();
  2509. void ResetToDefault();
  2510. bool Save(File) const;
  2511. bool Save(VectorBuffer&) const;
  2512. bool SaveXML(XMLElement&) const;
  2513. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2514. bool SetAttribute(const String&, const Variant&);
  2515. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2516. void SetAttributeAnimationSpeed(const String&, float);
  2517. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2518. // Properties:
  2519. Vector2 anchor;
  2520. bool animationEnabled;
  2521. /* readonly */
  2522. Array<Variant> attributeDefaults;
  2523. /* readonly */
  2524. Array<AttributeInfo> attributeInfos;
  2525. Array<Variant> attributes;
  2526. Vector2 axis;
  2527. /* readonly */
  2528. StringHash baseType;
  2529. /* readonly */
  2530. String category;
  2531. bool collideConnected;
  2532. bool enableLimit;
  2533. bool enableMotor;
  2534. bool enabled;
  2535. /* readonly */
  2536. bool enabledEffective;
  2537. /* readonly */
  2538. uint id;
  2539. float lowerTranslation;
  2540. float maxMotorForce;
  2541. float motorSpeed;
  2542. /* readonly */
  2543. Node node;
  2544. /* readonly */
  2545. uint numAttributes;
  2546. ObjectAnimation objectAnimation;
  2547. RigidBody2D otherBody;
  2548. /* readonly */
  2549. RigidBody2D ownerBody;
  2550. /* readonly */
  2551. int refs;
  2552. bool temporary;
  2553. /* readonly */
  2554. StringHash type;
  2555. /* readonly */
  2556. String typeName;
  2557. float upperTranslation;
  2558. /* readonly */
  2559. int weakRefs;
  2560. };
  2561. class ConstraintPulley2D
  2562. {
  2563. // Methods:
  2564. void ApplyAttributes();
  2565. void DrawDebugGeometry(DebugRenderer, bool);
  2566. Variant GetAttribute(const String&) const;
  2567. ValueAnimation GetAttributeAnimation(const String&) const;
  2568. float GetAttributeAnimationSpeed(const String&) const;
  2569. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2570. Variant GetAttributeDefault(const String&) const;
  2571. bool Load(File, bool = false);
  2572. bool Load(VectorBuffer&, bool = false);
  2573. bool LoadXML(const XMLElement&, bool = false);
  2574. void MarkNetworkUpdate() const;
  2575. void Remove();
  2576. void RemoveInstanceDefault();
  2577. void ResetToDefault();
  2578. bool Save(File) const;
  2579. bool Save(VectorBuffer&) const;
  2580. bool SaveXML(XMLElement&) const;
  2581. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2582. bool SetAttribute(const String&, const Variant&);
  2583. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2584. void SetAttributeAnimationSpeed(const String&, float);
  2585. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2586. // Properties:
  2587. bool animationEnabled;
  2588. /* readonly */
  2589. Array<Variant> attributeDefaults;
  2590. /* readonly */
  2591. Array<AttributeInfo> attributeInfos;
  2592. Array<Variant> attributes;
  2593. /* readonly */
  2594. StringHash baseType;
  2595. /* readonly */
  2596. String category;
  2597. bool collideConnected;
  2598. bool enabled;
  2599. /* readonly */
  2600. bool enabledEffective;
  2601. /* readonly */
  2602. uint id;
  2603. /* readonly */
  2604. Node node;
  2605. /* readonly */
  2606. uint numAttributes;
  2607. ObjectAnimation objectAnimation;
  2608. RigidBody2D otherBody;
  2609. Vector2 otherBodyAnchor;
  2610. Vector2 otherBodyGroundAnchor;
  2611. /* readonly */
  2612. RigidBody2D ownerBody;
  2613. Vector2 ownerBodyAnchor;
  2614. Vector2 ownerBodyGroundAnchor;
  2615. float ratio;
  2616. /* readonly */
  2617. int refs;
  2618. bool temporary;
  2619. /* readonly */
  2620. StringHash type;
  2621. /* readonly */
  2622. String typeName;
  2623. /* readonly */
  2624. int weakRefs;
  2625. };
  2626. class ConstraintRevolute2D
  2627. {
  2628. // Methods:
  2629. void ApplyAttributes();
  2630. void DrawDebugGeometry(DebugRenderer, bool);
  2631. Variant GetAttribute(const String&) const;
  2632. ValueAnimation GetAttributeAnimation(const String&) const;
  2633. float GetAttributeAnimationSpeed(const String&) const;
  2634. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2635. Variant GetAttributeDefault(const String&) const;
  2636. bool Load(File, bool = false);
  2637. bool Load(VectorBuffer&, bool = false);
  2638. bool LoadXML(const XMLElement&, bool = false);
  2639. void MarkNetworkUpdate() const;
  2640. void Remove();
  2641. void RemoveInstanceDefault();
  2642. void ResetToDefault();
  2643. bool Save(File) const;
  2644. bool Save(VectorBuffer&) const;
  2645. bool SaveXML(XMLElement&) const;
  2646. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2647. bool SetAttribute(const String&, const Variant&);
  2648. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2649. void SetAttributeAnimationSpeed(const String&, float);
  2650. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2651. // Properties:
  2652. Vector2 anchor;
  2653. bool animationEnabled;
  2654. /* readonly */
  2655. Array<Variant> attributeDefaults;
  2656. /* readonly */
  2657. Array<AttributeInfo> attributeInfos;
  2658. Array<Variant> attributes;
  2659. /* readonly */
  2660. StringHash baseType;
  2661. /* readonly */
  2662. String category;
  2663. bool collideConnected;
  2664. bool enableLimit;
  2665. bool enableMotor;
  2666. bool enabled;
  2667. /* readonly */
  2668. bool enabledEffective;
  2669. /* readonly */
  2670. uint id;
  2671. float lowerAngle;
  2672. float maxMotorTorque;
  2673. float motorSpeed;
  2674. /* readonly */
  2675. Node node;
  2676. /* readonly */
  2677. uint numAttributes;
  2678. ObjectAnimation objectAnimation;
  2679. RigidBody2D otherBody;
  2680. /* readonly */
  2681. RigidBody2D ownerBody;
  2682. /* readonly */
  2683. int refs;
  2684. bool temporary;
  2685. /* readonly */
  2686. StringHash type;
  2687. /* readonly */
  2688. String typeName;
  2689. float upperAngle;
  2690. /* readonly */
  2691. int weakRefs;
  2692. };
  2693. class ConstraintRope2D
  2694. {
  2695. // Methods:
  2696. void ApplyAttributes();
  2697. void DrawDebugGeometry(DebugRenderer, bool);
  2698. Variant GetAttribute(const String&) const;
  2699. ValueAnimation GetAttributeAnimation(const String&) const;
  2700. float GetAttributeAnimationSpeed(const String&) const;
  2701. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2702. Variant GetAttributeDefault(const String&) const;
  2703. bool Load(File, bool = false);
  2704. bool Load(VectorBuffer&, bool = false);
  2705. bool LoadXML(const XMLElement&, bool = false);
  2706. void MarkNetworkUpdate() const;
  2707. void Remove();
  2708. void RemoveInstanceDefault();
  2709. void ResetToDefault();
  2710. bool Save(File) const;
  2711. bool Save(VectorBuffer&) const;
  2712. bool SaveXML(XMLElement&) const;
  2713. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2714. bool SetAttribute(const String&, const Variant&);
  2715. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2716. void SetAttributeAnimationSpeed(const String&, float);
  2717. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2718. // Properties:
  2719. bool animationEnabled;
  2720. /* readonly */
  2721. Array<Variant> attributeDefaults;
  2722. /* readonly */
  2723. Array<AttributeInfo> attributeInfos;
  2724. Array<Variant> attributes;
  2725. /* readonly */
  2726. StringHash baseType;
  2727. /* readonly */
  2728. String category;
  2729. bool collideConnected;
  2730. bool enabled;
  2731. /* readonly */
  2732. bool enabledEffective;
  2733. /* readonly */
  2734. uint id;
  2735. float maxLength;
  2736. /* readonly */
  2737. Node node;
  2738. /* readonly */
  2739. uint numAttributes;
  2740. ObjectAnimation objectAnimation;
  2741. RigidBody2D otherBody;
  2742. Vector2 otherBodyAnchor;
  2743. /* readonly */
  2744. RigidBody2D ownerBody;
  2745. Vector2 ownerBodyAnchor;
  2746. /* readonly */
  2747. int refs;
  2748. bool temporary;
  2749. /* readonly */
  2750. StringHash type;
  2751. /* readonly */
  2752. String typeName;
  2753. /* readonly */
  2754. int weakRefs;
  2755. };
  2756. class ConstraintWeld2D
  2757. {
  2758. // Methods:
  2759. void ApplyAttributes();
  2760. void DrawDebugGeometry(DebugRenderer, bool);
  2761. Variant GetAttribute(const String&) const;
  2762. ValueAnimation GetAttributeAnimation(const String&) const;
  2763. float GetAttributeAnimationSpeed(const String&) const;
  2764. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2765. Variant GetAttributeDefault(const String&) const;
  2766. bool Load(File, bool = false);
  2767. bool Load(VectorBuffer&, bool = false);
  2768. bool LoadXML(const XMLElement&, bool = false);
  2769. void MarkNetworkUpdate() const;
  2770. void Remove();
  2771. void RemoveInstanceDefault();
  2772. void ResetToDefault();
  2773. bool Save(File) const;
  2774. bool Save(VectorBuffer&) const;
  2775. bool SaveXML(XMLElement&) const;
  2776. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2777. bool SetAttribute(const String&, const Variant&);
  2778. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2779. void SetAttributeAnimationSpeed(const String&, float);
  2780. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2781. // Properties:
  2782. Vector2 anchor;
  2783. bool animationEnabled;
  2784. /* readonly */
  2785. Array<Variant> attributeDefaults;
  2786. /* readonly */
  2787. Array<AttributeInfo> attributeInfos;
  2788. Array<Variant> attributes;
  2789. /* readonly */
  2790. StringHash baseType;
  2791. /* readonly */
  2792. String category;
  2793. bool collideConnected;
  2794. float dampingRatio;
  2795. bool enabled;
  2796. /* readonly */
  2797. bool enabledEffective;
  2798. float frequencyHz;
  2799. /* readonly */
  2800. uint id;
  2801. /* readonly */
  2802. Node node;
  2803. /* readonly */
  2804. uint numAttributes;
  2805. ObjectAnimation objectAnimation;
  2806. RigidBody2D otherBody;
  2807. /* readonly */
  2808. RigidBody2D ownerBody;
  2809. /* readonly */
  2810. int refs;
  2811. bool temporary;
  2812. /* readonly */
  2813. StringHash type;
  2814. /* readonly */
  2815. String typeName;
  2816. /* readonly */
  2817. int weakRefs;
  2818. };
  2819. class ConstraintWheel2D
  2820. {
  2821. // Methods:
  2822. void ApplyAttributes();
  2823. void DrawDebugGeometry(DebugRenderer, bool);
  2824. Variant GetAttribute(const String&) const;
  2825. ValueAnimation GetAttributeAnimation(const String&) const;
  2826. float GetAttributeAnimationSpeed(const String&) const;
  2827. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2828. Variant GetAttributeDefault(const String&) const;
  2829. bool Load(File, bool = false);
  2830. bool Load(VectorBuffer&, bool = false);
  2831. bool LoadXML(const XMLElement&, bool = false);
  2832. void MarkNetworkUpdate() const;
  2833. void Remove();
  2834. void RemoveInstanceDefault();
  2835. void ResetToDefault();
  2836. bool Save(File) const;
  2837. bool Save(VectorBuffer&) const;
  2838. bool SaveXML(XMLElement&) const;
  2839. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2840. bool SetAttribute(const String&, const Variant&);
  2841. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2842. void SetAttributeAnimationSpeed(const String&, float);
  2843. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2844. // Properties:
  2845. Vector2 anchor;
  2846. bool animationEnabled;
  2847. /* readonly */
  2848. Array<Variant> attributeDefaults;
  2849. /* readonly */
  2850. Array<AttributeInfo> attributeInfos;
  2851. Array<Variant> attributes;
  2852. Vector2 axis;
  2853. /* readonly */
  2854. StringHash baseType;
  2855. /* readonly */
  2856. String category;
  2857. bool collideConnected;
  2858. float dampingRatio;
  2859. bool enableMotor;
  2860. bool enabled;
  2861. /* readonly */
  2862. bool enabledEffective;
  2863. float frequencyHz;
  2864. /* readonly */
  2865. uint id;
  2866. float maxMotorTorque;
  2867. float motorSpeed;
  2868. /* readonly */
  2869. Node node;
  2870. /* readonly */
  2871. uint numAttributes;
  2872. ObjectAnimation objectAnimation;
  2873. RigidBody2D otherBody;
  2874. /* readonly */
  2875. RigidBody2D ownerBody;
  2876. /* readonly */
  2877. int refs;
  2878. bool temporary;
  2879. /* readonly */
  2880. StringHash type;
  2881. /* readonly */
  2882. String typeName;
  2883. /* readonly */
  2884. int weakRefs;
  2885. };
  2886. class Controls
  2887. {
  2888. // Methods:
  2889. bool IsDown(uint) const;
  2890. bool IsPressed(uint, const Controls&) const;
  2891. void Reset();
  2892. void Set(uint, bool);
  2893. // Properties:
  2894. uint buttons;
  2895. VariantMap extraData;
  2896. float pitch;
  2897. float yaw;
  2898. };
  2899. class Cursor
  2900. {
  2901. // Methods:
  2902. void AddChild(UIElement);
  2903. void ApplyAttributes();
  2904. void BringToFront();
  2905. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  2906. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  2907. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  2908. void DisableLayoutUpdate();
  2909. IntVector2 ElementToScreen(const IntVector2&);
  2910. void EnableLayoutUpdate();
  2911. uint FindChild(UIElement) const;
  2912. Variant GetAttribute(const String&) const;
  2913. ValueAnimation GetAttributeAnimation(const String&) const;
  2914. float GetAttributeAnimationSpeed(const String&) const;
  2915. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2916. Variant GetAttributeDefault(const String&) const;
  2917. UIElement GetChild(const String&, bool = false) const;
  2918. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  2919. Array<UIElement> GetChildren(bool = false) const;
  2920. UIElement GetElementEventSender() const;
  2921. uint GetNumChildren(bool) const;
  2922. void InsertChild(uint, UIElement);
  2923. bool IsInside(IntVector2, bool);
  2924. bool IsInsideCombined(IntVector2, bool);
  2925. bool Load(File, bool = false);
  2926. bool Load(VectorBuffer&, bool = false);
  2927. bool LoadChildXML(XMLFile, XMLFile = null);
  2928. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  2929. bool LoadXML(File);
  2930. bool LoadXML(VectorBuffer&);
  2931. bool LoadXML(XMLFile, XMLFile);
  2932. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  2933. bool LoadXML(const XMLElement&, bool = false);
  2934. void MarkNetworkUpdate() const;
  2935. void Remove();
  2936. void RemoveAllChildren();
  2937. void RemoveChild(UIElement, uint = 0);
  2938. void RemoveChild(uint);
  2939. void RemoveInstanceDefault();
  2940. void ResetDeepEnabled();
  2941. void ResetToDefault();
  2942. bool Save(File) const;
  2943. bool Save(VectorBuffer&) const;
  2944. bool SaveXML(File);
  2945. bool SaveXML(VectorBuffer&);
  2946. bool SaveXML(XMLElement&) const;
  2947. IntVector2 ScreenToElement(const IntVector2&);
  2948. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2949. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  2950. bool SetAttribute(const String&, const Variant&);
  2951. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2952. void SetAttributeAnimationSpeed(const String&, float);
  2953. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2954. void SetDeepEnabled(bool);
  2955. void SetEnabledRecursive(bool);
  2956. void SetFixedHeight(int);
  2957. void SetFixedSize(int, int);
  2958. void SetFixedWidth(int);
  2959. void SetFullImageRect();
  2960. void SetHoverOffset(int, int);
  2961. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  2962. void SetMaxSize(int, int);
  2963. void SetMinSize(int, int);
  2964. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  2965. void SetPosition(int, int);
  2966. void SetShape(CursorShape);
  2967. void SetShape(const String&);
  2968. void SetSize(int, int);
  2969. bool SetStyle(const String&, XMLFile = null);
  2970. bool SetStyle(const XMLElement&);
  2971. bool SetStyleAuto(XMLFile = null);
  2972. void UpdateLayout();
  2973. const Variant& GetVar(const StringHash&);
  2974. // Properties:
  2975. bool animationEnabled;
  2976. /* readonly */
  2977. Array<Variant> attributeDefaults;
  2978. /* readonly */
  2979. Array<AttributeInfo> attributeInfos;
  2980. Array<Variant> attributes;
  2981. /* readonly */
  2982. StringHash baseType;
  2983. BlendMode blendMode;
  2984. IntRect border;
  2985. bool bringToBack;
  2986. bool bringToFront;
  2987. /* readonly */
  2988. String category;
  2989. /* readonly */
  2990. IntVector2 childOffset;
  2991. /* readonly */
  2992. Array<UIElement> children;
  2993. IntRect clipBorder;
  2994. bool clipChildren;
  2995. /* writeonly */
  2996. Color color;
  2997. /* readonly */
  2998. bool colorGradient;
  2999. Array<Color> colors;
  3000. /* readonly */
  3001. IntRect combinedScreenRect;
  3002. XMLFile defaultStyle;
  3003. /* readonly */
  3004. float derivedOpacity;
  3005. /* readonly */
  3006. uint dragButtonCombo;
  3007. /* readonly */
  3008. int dragButtonCount;
  3009. uint dragDropMode;
  3010. bool editable;
  3011. bool elementEventSender;
  3012. bool enabled;
  3013. /* readonly */
  3014. bool enabledSelf;
  3015. /* readonly */
  3016. bool fixedHeight;
  3017. /* readonly */
  3018. bool fixedSize;
  3019. /* readonly */
  3020. bool fixedWidth;
  3021. bool focus;
  3022. FocusMode focusMode;
  3023. int height;
  3024. HorizontalAlignment horizontalAlignment;
  3025. IntVector2 hoverOffset;
  3026. /* readonly */
  3027. bool hovering;
  3028. IntRect imageBorder;
  3029. IntRect imageRect;
  3030. int indent;
  3031. int indentSpacing;
  3032. /* readonly */
  3033. int indentWidth;
  3034. bool internal;
  3035. IntRect layoutBorder;
  3036. Vector2 layoutFlexScale;
  3037. LayoutMode layoutMode;
  3038. int layoutSpacing;
  3039. int maxHeight;
  3040. IntVector2 maxSize;
  3041. int maxWidth;
  3042. int minHeight;
  3043. IntVector2 minSize;
  3044. int minWidth;
  3045. String name;
  3046. /* readonly */
  3047. uint numAllChildren;
  3048. /* readonly */
  3049. uint numAttributes;
  3050. /* readonly */
  3051. uint numChildren;
  3052. ObjectAnimation objectAnimation;
  3053. float opacity;
  3054. UIElement parent;
  3055. IntVector2 position;
  3056. int priority;
  3057. /* readonly */
  3058. int refs;
  3059. /* readonly */
  3060. UIElement root;
  3061. /* readonly */
  3062. IntVector2 screenPosition;
  3063. bool selected;
  3064. String shape;
  3065. IntVector2 size;
  3066. bool sortChildren;
  3067. String style;
  3068. bool temporary;
  3069. Texture texture;
  3070. bool tiled;
  3071. TraversalMode traversalMode;
  3072. /* readonly */
  3073. StringHash type;
  3074. /* readonly */
  3075. String typeName;
  3076. bool useDerivedOpacity;
  3077. bool useSystemShapes;
  3078. /* readonly */
  3079. VariantMap vars;
  3080. VerticalAlignment verticalAlignment;
  3081. bool visible;
  3082. /* readonly */
  3083. int weakRefs;
  3084. int width;
  3085. };
  3086. class CustomGeometry
  3087. {
  3088. // Methods:
  3089. void ApplyAttributes();
  3090. void BeginGeometry(uint, PrimitiveType);
  3091. void Clear();
  3092. void Commit();
  3093. void DefineColor(const Color&);
  3094. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3095. void DefineNormal(const Vector3&);
  3096. void DefineTangent(const Vector4&);
  3097. void DefineTexCoord(const Vector2&);
  3098. void DefineVertex(const Vector3&);
  3099. void DrawDebugGeometry(DebugRenderer, bool);
  3100. Variant GetAttribute(const String&) const;
  3101. ValueAnimation GetAttributeAnimation(const String&) const;
  3102. float GetAttributeAnimationSpeed(const String&) const;
  3103. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3104. Variant GetAttributeDefault(const String&) const;
  3105. CustomGeometryVertex GetVertex(uint, uint);
  3106. bool IsInView(Camera) const;
  3107. bool Load(File, bool = false);
  3108. bool Load(VectorBuffer&, bool = false);
  3109. bool LoadXML(const XMLElement&, bool = false);
  3110. void MarkNetworkUpdate() const;
  3111. void Remove();
  3112. void RemoveInstanceDefault();
  3113. void ResetToDefault();
  3114. bool Save(File) const;
  3115. bool Save(VectorBuffer&) const;
  3116. bool SaveXML(XMLElement&) const;
  3117. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3118. bool SetAttribute(const String&, const Variant&);
  3119. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3120. void SetAttributeAnimationSpeed(const String&, float);
  3121. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3122. // Properties:
  3123. bool animationEnabled;
  3124. /* readonly */
  3125. Array<Variant> attributeDefaults;
  3126. /* readonly */
  3127. Array<AttributeInfo> attributeInfos;
  3128. Array<Variant> attributes;
  3129. /* readonly */
  3130. StringHash baseType;
  3131. /* readonly */
  3132. BoundingBox boundingBox;
  3133. bool castShadows;
  3134. /* readonly */
  3135. String category;
  3136. float drawDistance;
  3137. bool dynamic;
  3138. bool enabled;
  3139. /* readonly */
  3140. bool enabledEffective;
  3141. /* readonly */
  3142. uint id;
  3143. /* readonly */
  3144. bool inView;
  3145. uint lightMask;
  3146. float lodBias;
  3147. /* writeonly */
  3148. Material material;
  3149. Array<Material> materials;
  3150. uint maxLights;
  3151. /* readonly */
  3152. Node node;
  3153. /* readonly */
  3154. uint numAttributes;
  3155. uint numGeometries;
  3156. /* readonly */
  3157. Array<uint> numVertices;
  3158. ObjectAnimation objectAnimation;
  3159. bool occludee;
  3160. bool occluder;
  3161. /* readonly */
  3162. int refs;
  3163. float shadowDistance;
  3164. uint shadowMask;
  3165. bool temporary;
  3166. /* readonly */
  3167. StringHash type;
  3168. /* readonly */
  3169. String typeName;
  3170. uint viewMask;
  3171. /* readonly */
  3172. int weakRefs;
  3173. /* readonly */
  3174. BoundingBox worldBoundingBox;
  3175. /* readonly */
  3176. Zone zone;
  3177. uint zoneMask;
  3178. };
  3179. class CustomGeometryVertex
  3180. {
  3181. // Properties:
  3182. uint color;
  3183. Vector3 normal;
  3184. Vector3 position;
  3185. Vector4 tangent;
  3186. Vector2 texCoord;
  3187. };
  3188. class DebugHud
  3189. {
  3190. // Methods:
  3191. void ClearAppStats();
  3192. void ResetAppStats(const String&);
  3193. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3194. void SetAppStats(const String&, const String&);
  3195. void SetAppStats(const String&, const Variant&);
  3196. void Toggle(uint);
  3197. void ToggleAll();
  3198. void Update();
  3199. // Properties:
  3200. /* readonly */
  3201. StringHash baseType;
  3202. /* readonly */
  3203. String category;
  3204. XMLFile defaultStyle;
  3205. uint mode;
  3206. /* readonly */
  3207. Text modeText;
  3208. float profilerInterval;
  3209. uint profilerMaxDepth;
  3210. /* readonly */
  3211. Text profilerText;
  3212. /* readonly */
  3213. int refs;
  3214. /* readonly */
  3215. Text statsText;
  3216. /* readonly */
  3217. StringHash type;
  3218. /* readonly */
  3219. String typeName;
  3220. bool useRendererStats;
  3221. /* readonly */
  3222. int weakRefs;
  3223. };
  3224. class DebugRenderer
  3225. {
  3226. // Methods:
  3227. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3228. void AddFrustum(const Frustum&, const Color&, bool = true);
  3229. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3230. void AddNode(Node, float = 1.0, bool = true);
  3231. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3232. void AddSkeleton(Skeleton, const Color&, bool = true);
  3233. void AddSphere(const Sphere&, const Color&, bool = true);
  3234. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3235. void ApplyAttributes();
  3236. void DrawDebugGeometry(DebugRenderer, bool);
  3237. Variant GetAttribute(const String&) const;
  3238. ValueAnimation GetAttributeAnimation(const String&) const;
  3239. float GetAttributeAnimationSpeed(const String&) const;
  3240. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3241. Variant GetAttributeDefault(const String&) const;
  3242. bool Load(File, bool = false);
  3243. bool Load(VectorBuffer&, bool = false);
  3244. bool LoadXML(const XMLElement&, bool = false);
  3245. void MarkNetworkUpdate() const;
  3246. void Remove();
  3247. void RemoveInstanceDefault();
  3248. void ResetToDefault();
  3249. bool Save(File) const;
  3250. bool Save(VectorBuffer&) const;
  3251. bool SaveXML(XMLElement&) const;
  3252. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3253. bool SetAttribute(const String&, const Variant&);
  3254. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3255. void SetAttributeAnimationSpeed(const String&, float);
  3256. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3257. // Properties:
  3258. bool animationEnabled;
  3259. /* readonly */
  3260. Array<Variant> attributeDefaults;
  3261. /* readonly */
  3262. Array<AttributeInfo> attributeInfos;
  3263. Array<Variant> attributes;
  3264. /* readonly */
  3265. StringHash baseType;
  3266. /* readonly */
  3267. String category;
  3268. bool enabled;
  3269. /* readonly */
  3270. bool enabledEffective;
  3271. /* readonly */
  3272. uint id;
  3273. /* readonly */
  3274. Node node;
  3275. /* readonly */
  3276. uint numAttributes;
  3277. ObjectAnimation objectAnimation;
  3278. /* readonly */
  3279. int refs;
  3280. bool temporary;
  3281. /* readonly */
  3282. StringHash type;
  3283. /* readonly */
  3284. String typeName;
  3285. /* readonly */
  3286. int weakRefs;
  3287. };
  3288. class DecalSet
  3289. {
  3290. // Methods:
  3291. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3292. void ApplyAttributes();
  3293. void DrawDebugGeometry(DebugRenderer, bool);
  3294. Variant GetAttribute(const String&) const;
  3295. ValueAnimation GetAttributeAnimation(const String&) const;
  3296. float GetAttributeAnimationSpeed(const String&) const;
  3297. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3298. Variant GetAttributeDefault(const String&) const;
  3299. bool IsInView(Camera) const;
  3300. bool Load(File, bool = false);
  3301. bool Load(VectorBuffer&, bool = false);
  3302. bool LoadXML(const XMLElement&, bool = false);
  3303. void MarkNetworkUpdate() const;
  3304. void Remove();
  3305. void RemoveAllDecals();
  3306. void RemoveDecals(uint);
  3307. void RemoveInstanceDefault();
  3308. void ResetToDefault();
  3309. bool Save(File) const;
  3310. bool Save(VectorBuffer&) const;
  3311. bool SaveXML(XMLElement&) const;
  3312. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3313. bool SetAttribute(const String&, const Variant&);
  3314. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3315. void SetAttributeAnimationSpeed(const String&, float);
  3316. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3317. // Properties:
  3318. bool animationEnabled;
  3319. /* readonly */
  3320. Array<Variant> attributeDefaults;
  3321. /* readonly */
  3322. Array<AttributeInfo> attributeInfos;
  3323. Array<Variant> attributes;
  3324. /* readonly */
  3325. StringHash baseType;
  3326. /* readonly */
  3327. BoundingBox boundingBox;
  3328. bool castShadows;
  3329. /* readonly */
  3330. String category;
  3331. float drawDistance;
  3332. bool enabled;
  3333. /* readonly */
  3334. bool enabledEffective;
  3335. /* readonly */
  3336. uint id;
  3337. /* readonly */
  3338. bool inView;
  3339. uint lightMask;
  3340. float lodBias;
  3341. Material material;
  3342. uint maxIndices;
  3343. uint maxLights;
  3344. uint maxVertices;
  3345. /* readonly */
  3346. Node node;
  3347. /* readonly */
  3348. uint numAttributes;
  3349. /* readonly */
  3350. uint numDecals;
  3351. /* readonly */
  3352. uint numIndices;
  3353. /* readonly */
  3354. uint numVertices;
  3355. ObjectAnimation objectAnimation;
  3356. bool occludee;
  3357. bool occluder;
  3358. /* readonly */
  3359. int refs;
  3360. float shadowDistance;
  3361. uint shadowMask;
  3362. bool temporary;
  3363. /* readonly */
  3364. StringHash type;
  3365. /* readonly */
  3366. String typeName;
  3367. uint viewMask;
  3368. /* readonly */
  3369. int weakRefs;
  3370. /* readonly */
  3371. BoundingBox worldBoundingBox;
  3372. /* readonly */
  3373. Zone zone;
  3374. uint zoneMask;
  3375. };
  3376. class Deserializer
  3377. {
  3378. // Methods:
  3379. Array<uint8> Read(uint);
  3380. bool ReadBool();
  3381. BoundingBox ReadBoundingBox();
  3382. int8 ReadByte();
  3383. Color ReadColor();
  3384. String ReadFileID();
  3385. float ReadFloat();
  3386. int ReadInt();
  3387. IntRect ReadIntRect();
  3388. IntVector2 ReadIntVector2();
  3389. String ReadLine();
  3390. Matrix3 ReadMatrix3();
  3391. Matrix3x4 ReadMatrix3x4();
  3392. Matrix4 ReadMatrix4();
  3393. uint ReadNetID();
  3394. Quaternion ReadPackedQuaternion();
  3395. Vector3 ReadPackedVector3(float);
  3396. Quaternion ReadQuaternion();
  3397. int16 ReadShort();
  3398. String ReadString();
  3399. StringHash ReadStringHash();
  3400. uint8 ReadUByte();
  3401. uint ReadUInt();
  3402. uint16 ReadUShort();
  3403. uint ReadVLE();
  3404. Variant ReadVariant();
  3405. VariantMap ReadVariantMap();
  3406. Vector2 ReadVector2();
  3407. Vector3 ReadVector3();
  3408. Vector4 ReadVector4();
  3409. VectorBuffer ReadVectorBuffer(uint);
  3410. uint Seek(uint);
  3411. // Properties:
  3412. /* readonly */
  3413. uint checksum;
  3414. /* readonly */
  3415. bool eof;
  3416. /* readonly */
  3417. String name;
  3418. /* readonly */
  3419. uint position;
  3420. /* readonly */
  3421. uint size;
  3422. };
  3423. class Dictionary
  3424. {
  3425. // Methods:
  3426. void Clear();
  3427. void Erase(const String&);
  3428. bool Exists(const String&) const;
  3429. bool Get(const String&, void*) const;
  3430. bool Get(const String&, double&) const;
  3431. bool Get(const String&, int64&) const;
  3432. void Set(const String&, const void*);
  3433. void Set(const String&, const double&);
  3434. void Set(const String&, const int64&);
  3435. // Properties:
  3436. /* readonly */
  3437. bool empty;
  3438. /* readonly */
  3439. Array<String> keys;
  3440. /* readonly */
  3441. uint length;
  3442. };
  3443. class DictionaryValue
  3444. {
  3445. };
  3446. class Drawable
  3447. {
  3448. // Methods:
  3449. void ApplyAttributes();
  3450. void DrawDebugGeometry(DebugRenderer, bool);
  3451. Variant GetAttribute(const String&) const;
  3452. ValueAnimation GetAttributeAnimation(const String&) const;
  3453. float GetAttributeAnimationSpeed(const String&) const;
  3454. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3455. Variant GetAttributeDefault(const String&) const;
  3456. bool IsInView(Camera) const;
  3457. bool Load(File, bool = false);
  3458. bool Load(VectorBuffer&, bool = false);
  3459. bool LoadXML(const XMLElement&, bool = false);
  3460. void MarkNetworkUpdate() const;
  3461. void Remove();
  3462. void RemoveInstanceDefault();
  3463. void ResetToDefault();
  3464. bool Save(File) const;
  3465. bool Save(VectorBuffer&) const;
  3466. bool SaveXML(XMLElement&) const;
  3467. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3468. bool SetAttribute(const String&, const Variant&);
  3469. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3470. void SetAttributeAnimationSpeed(const String&, float);
  3471. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3472. // Properties:
  3473. bool animationEnabled;
  3474. /* readonly */
  3475. Array<Variant> attributeDefaults;
  3476. /* readonly */
  3477. Array<AttributeInfo> attributeInfos;
  3478. Array<Variant> attributes;
  3479. /* readonly */
  3480. StringHash baseType;
  3481. /* readonly */
  3482. BoundingBox boundingBox;
  3483. bool castShadows;
  3484. /* readonly */
  3485. String category;
  3486. float drawDistance;
  3487. bool enabled;
  3488. /* readonly */
  3489. bool enabledEffective;
  3490. /* readonly */
  3491. uint id;
  3492. /* readonly */
  3493. bool inView;
  3494. uint lightMask;
  3495. float lodBias;
  3496. uint maxLights;
  3497. /* readonly */
  3498. Node node;
  3499. /* readonly */
  3500. uint numAttributes;
  3501. ObjectAnimation objectAnimation;
  3502. bool occludee;
  3503. bool occluder;
  3504. /* readonly */
  3505. int refs;
  3506. float shadowDistance;
  3507. uint shadowMask;
  3508. bool temporary;
  3509. /* readonly */
  3510. StringHash type;
  3511. /* readonly */
  3512. String typeName;
  3513. uint viewMask;
  3514. /* readonly */
  3515. int weakRefs;
  3516. /* readonly */
  3517. BoundingBox worldBoundingBox;
  3518. uint zoneMask;
  3519. };
  3520. class Drawable2D
  3521. {
  3522. // Methods:
  3523. void ApplyAttributes();
  3524. void DrawDebugGeometry(DebugRenderer, bool);
  3525. Variant GetAttribute(const String&) const;
  3526. ValueAnimation GetAttributeAnimation(const String&) const;
  3527. float GetAttributeAnimationSpeed(const String&) const;
  3528. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3529. Variant GetAttributeDefault(const String&) const;
  3530. bool IsInView(Camera) const;
  3531. bool Load(File, bool = false);
  3532. bool Load(VectorBuffer&, bool = false);
  3533. bool LoadXML(const XMLElement&, bool = false);
  3534. void MarkNetworkUpdate() const;
  3535. void Remove();
  3536. void RemoveInstanceDefault();
  3537. void ResetToDefault();
  3538. bool Save(File) const;
  3539. bool Save(VectorBuffer&) const;
  3540. bool SaveXML(XMLElement&) const;
  3541. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3542. bool SetAttribute(const String&, const Variant&);
  3543. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3544. void SetAttributeAnimationSpeed(const String&, float);
  3545. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3546. // Properties:
  3547. bool animationEnabled;
  3548. /* readonly */
  3549. Array<Variant> attributeDefaults;
  3550. /* readonly */
  3551. Array<AttributeInfo> attributeInfos;
  3552. Array<Variant> attributes;
  3553. /* readonly */
  3554. StringHash baseType;
  3555. BlendMode blendMode;
  3556. /* readonly */
  3557. BoundingBox boundingBox;
  3558. bool castShadows;
  3559. /* readonly */
  3560. String category;
  3561. float drawDistance;
  3562. bool enabled;
  3563. /* readonly */
  3564. bool enabledEffective;
  3565. /* readonly */
  3566. uint id;
  3567. /* readonly */
  3568. bool inView;
  3569. int layer;
  3570. uint lightMask;
  3571. float lodBias;
  3572. uint maxLights;
  3573. /* readonly */
  3574. Node node;
  3575. /* readonly */
  3576. uint numAttributes;
  3577. ObjectAnimation objectAnimation;
  3578. bool occludee;
  3579. bool occluder;
  3580. int orderInLayer;
  3581. /* readonly */
  3582. int refs;
  3583. float shadowDistance;
  3584. uint shadowMask;
  3585. bool temporary;
  3586. Texture2D texture;
  3587. /* readonly */
  3588. StringHash type;
  3589. /* readonly */
  3590. String typeName;
  3591. uint viewMask;
  3592. /* readonly */
  3593. int weakRefs;
  3594. /* readonly */
  3595. BoundingBox worldBoundingBox;
  3596. uint zoneMask;
  3597. };
  3598. class DropDownList
  3599. {
  3600. // Methods:
  3601. void AddChild(UIElement);
  3602. void AddItem(UIElement);
  3603. void ApplyAttributes();
  3604. void BringToFront();
  3605. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3606. void DisableLayoutUpdate();
  3607. IntVector2 ElementToScreen(const IntVector2&);
  3608. void EnableLayoutUpdate();
  3609. uint FindChild(UIElement) const;
  3610. Variant GetAttribute(const String&) const;
  3611. ValueAnimation GetAttributeAnimation(const String&) const;
  3612. float GetAttributeAnimationSpeed(const String&) const;
  3613. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3614. Variant GetAttributeDefault(const String&) const;
  3615. UIElement GetChild(const String&, bool = false) const;
  3616. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3617. Array<UIElement> GetChildren(bool = false) const;
  3618. UIElement GetElementEventSender() const;
  3619. Array<UIElement> GetItems() const;
  3620. uint GetNumChildren(bool) const;
  3621. void InsertChild(uint, UIElement);
  3622. void InsertItem(uint, UIElement);
  3623. bool IsInside(IntVector2, bool);
  3624. bool IsInsideCombined(IntVector2, bool);
  3625. bool Load(File, bool = false);
  3626. bool Load(VectorBuffer&, bool = false);
  3627. bool LoadChildXML(XMLFile, XMLFile = null);
  3628. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3629. bool LoadXML(File);
  3630. bool LoadXML(VectorBuffer&);
  3631. bool LoadXML(XMLFile, XMLFile);
  3632. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3633. bool LoadXML(const XMLElement&, bool = false);
  3634. void MarkNetworkUpdate() const;
  3635. void Remove();
  3636. void RemoveAllChildren();
  3637. void RemoveAllItems();
  3638. void RemoveChild(UIElement, uint = 0);
  3639. void RemoveChild(uint);
  3640. void RemoveInstanceDefault();
  3641. void RemoveItem(UIElement);
  3642. void RemoveItem(uint);
  3643. void ResetDeepEnabled();
  3644. void ResetToDefault();
  3645. bool Save(File) const;
  3646. bool Save(VectorBuffer&) const;
  3647. bool SaveXML(File);
  3648. bool SaveXML(VectorBuffer&);
  3649. bool SaveXML(XMLElement&) const;
  3650. IntVector2 ScreenToElement(const IntVector2&);
  3651. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3652. void SetAccelerator(int, int);
  3653. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3654. bool SetAttribute(const String&, const Variant&);
  3655. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3656. void SetAttributeAnimationSpeed(const String&, float);
  3657. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3658. void SetDeepEnabled(bool);
  3659. void SetEnabledRecursive(bool);
  3660. void SetFixedHeight(int);
  3661. void SetFixedSize(int, int);
  3662. void SetFixedWidth(int);
  3663. void SetFullImageRect();
  3664. void SetHoverOffset(int, int);
  3665. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3666. void SetMaxSize(int, int);
  3667. void SetMinSize(int, int);
  3668. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3669. void SetPosition(int, int);
  3670. void SetPressedChildOffset(int, int);
  3671. void SetPressedOffset(int, int);
  3672. void SetRepeat(float, float);
  3673. void SetSize(int, int);
  3674. bool SetStyle(const String&, XMLFile = null);
  3675. bool SetStyle(const XMLElement&);
  3676. bool SetStyleAuto(XMLFile = null);
  3677. void UpdateLayout();
  3678. const Variant& GetVar(const StringHash&);
  3679. UIElement getPopup() const;
  3680. // Properties:
  3681. /* readonly */
  3682. int acceleratorKey;
  3683. /* readonly */
  3684. int acceleratorQualifiers;
  3685. bool animationEnabled;
  3686. /* readonly */
  3687. Array<Variant> attributeDefaults;
  3688. /* readonly */
  3689. Array<AttributeInfo> attributeInfos;
  3690. Array<Variant> attributes;
  3691. /* readonly */
  3692. StringHash baseType;
  3693. BlendMode blendMode;
  3694. IntRect border;
  3695. bool bringToBack;
  3696. bool bringToFront;
  3697. /* readonly */
  3698. String category;
  3699. /* readonly */
  3700. IntVector2 childOffset;
  3701. /* readonly */
  3702. Array<UIElement> children;
  3703. IntRect clipBorder;
  3704. bool clipChildren;
  3705. /* writeonly */
  3706. Color color;
  3707. /* readonly */
  3708. bool colorGradient;
  3709. Array<Color> colors;
  3710. /* readonly */
  3711. IntRect combinedScreenRect;
  3712. XMLFile defaultStyle;
  3713. /* readonly */
  3714. float derivedOpacity;
  3715. /* readonly */
  3716. uint dragButtonCombo;
  3717. /* readonly */
  3718. int dragButtonCount;
  3719. uint dragDropMode;
  3720. bool editable;
  3721. bool elementEventSender;
  3722. bool enabled;
  3723. /* readonly */
  3724. bool enabledSelf;
  3725. /* readonly */
  3726. bool fixedHeight;
  3727. /* readonly */
  3728. bool fixedSize;
  3729. /* readonly */
  3730. bool fixedWidth;
  3731. bool focus;
  3732. FocusMode focusMode;
  3733. int height;
  3734. HorizontalAlignment horizontalAlignment;
  3735. IntVector2 hoverOffset;
  3736. /* readonly */
  3737. bool hovering;
  3738. IntRect imageBorder;
  3739. IntRect imageRect;
  3740. int indent;
  3741. int indentSpacing;
  3742. /* readonly */
  3743. int indentWidth;
  3744. bool internal;
  3745. /* readonly */
  3746. Array<UIElement> items;
  3747. IntRect layoutBorder;
  3748. Vector2 layoutFlexScale;
  3749. LayoutMode layoutMode;
  3750. int layoutSpacing;
  3751. /* readonly */
  3752. ListView listView;
  3753. int maxHeight;
  3754. IntVector2 maxSize;
  3755. int maxWidth;
  3756. int minHeight;
  3757. IntVector2 minSize;
  3758. int minWidth;
  3759. String name;
  3760. /* readonly */
  3761. uint numAllChildren;
  3762. /* readonly */
  3763. uint numAttributes;
  3764. /* readonly */
  3765. uint numChildren;
  3766. /* readonly */
  3767. uint numItems;
  3768. ObjectAnimation objectAnimation;
  3769. float opacity;
  3770. UIElement parent;
  3771. /* readonly */
  3772. UIElement placeholder;
  3773. String placeholderText;
  3774. IntVector2 position;
  3775. /* readonly */
  3776. bool pressed;
  3777. IntVector2 pressedChildOffset;
  3778. IntVector2 pressedOffset;
  3779. int priority;
  3780. /* readonly */
  3781. int refs;
  3782. float repeatDelay;
  3783. float repeatRate;
  3784. bool resizePopup;
  3785. /* readonly */
  3786. UIElement root;
  3787. /* readonly */
  3788. IntVector2 screenPosition;
  3789. bool selected;
  3790. /* readonly */
  3791. UIElement selectedItem;
  3792. uint selection;
  3793. bool showPopup;
  3794. IntVector2 size;
  3795. bool sortChildren;
  3796. String style;
  3797. bool temporary;
  3798. Texture texture;
  3799. bool tiled;
  3800. TraversalMode traversalMode;
  3801. /* readonly */
  3802. StringHash type;
  3803. /* readonly */
  3804. String typeName;
  3805. bool useDerivedOpacity;
  3806. /* readonly */
  3807. VariantMap vars;
  3808. VerticalAlignment verticalAlignment;
  3809. bool visible;
  3810. /* readonly */
  3811. int weakRefs;
  3812. int width;
  3813. };
  3814. class Engine
  3815. {
  3816. // Methods:
  3817. Console CreateConsole();
  3818. DebugHud CreateDebugHud();
  3819. void DumpMemory();
  3820. void DumpProfiler();
  3821. void DumpResources(bool = false);
  3822. void Exit();
  3823. void RunFrame();
  3824. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3825. // Properties:
  3826. bool autoExit;
  3827. /* readonly */
  3828. StringHash baseType;
  3829. /* readonly */
  3830. String category;
  3831. /* readonly */
  3832. bool exiting;
  3833. /* readonly */
  3834. bool headless;
  3835. /* readonly */
  3836. bool initialized;
  3837. int maxFps;
  3838. int maxInactiveFps;
  3839. int minFps;
  3840. bool pauseMinimized;
  3841. /* readonly */
  3842. int refs;
  3843. int timeStepSmoothing;
  3844. /* readonly */
  3845. StringHash type;
  3846. /* readonly */
  3847. String typeName;
  3848. /* readonly */
  3849. int weakRefs;
  3850. };
  3851. class File
  3852. {
  3853. // Methods:
  3854. void Close();
  3855. bool Open(const String&, FileMode = FILE_READ);
  3856. Array<uint8> Read(uint);
  3857. bool ReadBool();
  3858. BoundingBox ReadBoundingBox();
  3859. int8 ReadByte();
  3860. Color ReadColor();
  3861. String ReadFileID();
  3862. float ReadFloat();
  3863. int ReadInt();
  3864. IntRect ReadIntRect();
  3865. IntVector2 ReadIntVector2();
  3866. String ReadLine();
  3867. Matrix3 ReadMatrix3();
  3868. Matrix3x4 ReadMatrix3x4();
  3869. Matrix4 ReadMatrix4();
  3870. uint ReadNetID();
  3871. Quaternion ReadPackedQuaternion();
  3872. Vector3 ReadPackedVector3(float);
  3873. Quaternion ReadQuaternion();
  3874. int16 ReadShort();
  3875. String ReadString();
  3876. StringHash ReadStringHash();
  3877. uint8 ReadUByte();
  3878. uint ReadUInt();
  3879. uint16 ReadUShort();
  3880. uint ReadVLE();
  3881. Variant ReadVariant();
  3882. VariantMap ReadVariantMap();
  3883. Vector2 ReadVector2();
  3884. Vector3 ReadVector3();
  3885. Vector4 ReadVector4();
  3886. VectorBuffer ReadVectorBuffer(uint);
  3887. uint Seek(uint);
  3888. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3889. uint Write(Array<uint8>);
  3890. bool WriteBool(bool);
  3891. bool WriteBoundingBox(const BoundingBox&);
  3892. bool WriteByte(int8);
  3893. bool WriteColor(const Color&);
  3894. bool WriteFileID(const String&);
  3895. bool WriteFloat(float);
  3896. bool WriteInt(int);
  3897. bool WriteIntRect(const IntRect&);
  3898. bool WriteIntVector2(const IntVector2&);
  3899. bool WriteLine(const String&);
  3900. bool WriteMatrix3(const Matrix3&);
  3901. bool WriteMatrix3x4(const Matrix3x4&);
  3902. bool WriteMatrix4(const Matrix4&);
  3903. bool WriteNetID(uint);
  3904. bool WritePackedQuaternion(const Quaternion&);
  3905. bool WritePackedVector3(const Vector3&, float);
  3906. bool WriteQuaternion(const Quaternion&);
  3907. bool WriteShort(int16);
  3908. bool WriteString(const String&);
  3909. bool WriteStringHash(const StringHash&);
  3910. bool WriteUByte(uint8);
  3911. bool WriteUInt(uint);
  3912. bool WriteUShort(uint16);
  3913. bool WriteVLE(uint);
  3914. bool WriteVariant(const Variant&);
  3915. bool WriteVariantMap(const VariantMap&);
  3916. bool WriteVector2(const Vector2&);
  3917. bool WriteVector3(const Vector3&);
  3918. bool WriteVector4(const Vector4&);
  3919. bool WriteVectorBuffer(const VectorBuffer&);
  3920. // Properties:
  3921. /* readonly */
  3922. StringHash baseType;
  3923. /* readonly */
  3924. String category;
  3925. /* readonly */
  3926. uint checksum;
  3927. /* readonly */
  3928. bool eof;
  3929. /* readonly */
  3930. FileMode mode;
  3931. /* readonly */
  3932. String name;
  3933. /* readonly */
  3934. bool open;
  3935. /* readonly */
  3936. bool packaged;
  3937. /* readonly */
  3938. uint position;
  3939. /* readonly */
  3940. int refs;
  3941. /* readonly */
  3942. uint size;
  3943. /* readonly */
  3944. StringHash type;
  3945. /* readonly */
  3946. String typeName;
  3947. /* readonly */
  3948. int weakRefs;
  3949. };
  3950. class FileSelector
  3951. {
  3952. // Methods:
  3953. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3954. void SetButtonTexts(const String&, const String&);
  3955. void SetFilters(Array<String>, uint);
  3956. void UpdateElements();
  3957. // Properties:
  3958. /* readonly */
  3959. StringHash baseType;
  3960. /* readonly */
  3961. Button cancelButton;
  3962. /* readonly */
  3963. String category;
  3964. XMLFile defaultStyle;
  3965. bool directoryMode;
  3966. /* readonly */
  3967. ListView fileList;
  3968. String fileName;
  3969. /* readonly */
  3970. LineEdit fileNameEdit;
  3971. /* readonly */
  3972. String filter;
  3973. /* readonly */
  3974. uint filterIndex;
  3975. /* readonly */
  3976. DropDownList filterList;
  3977. /* readonly */
  3978. Button okButton;
  3979. String path;
  3980. /* readonly */
  3981. LineEdit pathEdit;
  3982. /* readonly */
  3983. int refs;
  3984. String title;
  3985. /* readonly */
  3986. Text titleText;
  3987. /* readonly */
  3988. StringHash type;
  3989. /* readonly */
  3990. String typeName;
  3991. /* readonly */
  3992. int weakRefs;
  3993. /* readonly */
  3994. Window window;
  3995. };
  3996. class FileSystem
  3997. {
  3998. // Methods:
  3999. bool Copy(const String&, const String&);
  4000. bool CreateDir(const String&);
  4001. bool Delete(const String&);
  4002. bool DirExists(const String&) const;
  4003. bool FileExists(const String&) const;
  4004. String GetAppPreferencesDir(const String&, const String&) const;
  4005. uint GetLastModifiedTime(const String&) const;
  4006. bool Rename(const String&, const String&);
  4007. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4008. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4009. bool SetLastModifiedTime(const String&, uint);
  4010. int SystemCommand(const String&, bool = false);
  4011. uint SystemCommandAsync(const String&);
  4012. bool SystemOpen(const String&, const String&);
  4013. int SystemRun(const String&, Array<String>);
  4014. uint SystemRunAsync(const String&, Array<String>);
  4015. // Properties:
  4016. /* readonly */
  4017. StringHash baseType;
  4018. /* readonly */
  4019. String category;
  4020. String currentDir;
  4021. bool executeConsoleCommands;
  4022. /* readonly */
  4023. String programDir;
  4024. /* readonly */
  4025. int refs;
  4026. /* readonly */
  4027. StringHash type;
  4028. /* readonly */
  4029. String typeName;
  4030. /* readonly */
  4031. String userDocumentsDir;
  4032. /* readonly */
  4033. int weakRefs;
  4034. };
  4035. class FocusParameters
  4036. {
  4037. // Properties:
  4038. bool autoSize;
  4039. bool focus;
  4040. float minView;
  4041. bool nonUniform;
  4042. float quantize;
  4043. };
  4044. class Font
  4045. {
  4046. // Methods:
  4047. IntVector2 GetTotalGlyphOffset(int) const;
  4048. bool Load(File);
  4049. bool Load(VectorBuffer&);
  4050. bool Save(File) const;
  4051. bool Save(VectorBuffer&) const;
  4052. bool SaveXML(File, int, bool = false);
  4053. bool SaveXML(VectorBuffer&, int, bool = false);
  4054. bool SaveXML(const String&, int, bool = false);
  4055. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4056. // Properties:
  4057. IntVector2 absoluteGlyphOffset;
  4058. /* readonly */
  4059. StringHash baseType;
  4060. /* readonly */
  4061. String category;
  4062. /* readonly */
  4063. uint memoryUse;
  4064. String name;
  4065. /* readonly */
  4066. int refs;
  4067. Vector2 scaledGlyphOffset;
  4068. /* readonly */
  4069. StringHash type;
  4070. /* readonly */
  4071. String typeName;
  4072. /* readonly */
  4073. uint useTimer;
  4074. /* readonly */
  4075. int weakRefs;
  4076. };
  4077. class Frustum
  4078. {
  4079. // Methods:
  4080. void Define(const BoundingBox&, const Matrix3x4&);
  4081. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4082. void Define(float, float, float, float, float, const Matrix3x4&);
  4083. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4084. float Distance(const Vector3&) const;
  4085. Intersection IsInside(const BoundingBox&);
  4086. Intersection IsInside(const Sphere&);
  4087. Intersection IsInside(const Vector3&);
  4088. void Transform(const Matrix3&);
  4089. void Transform(const Matrix3x4&);
  4090. Frustum Transformed(const Matrix3&) const;
  4091. Frustum Transformed(const Matrix3x4&) const;
  4092. // Properties:
  4093. /* readonly */
  4094. Array<Vector3> vertices;
  4095. };
  4096. class Graphics
  4097. {
  4098. // Methods:
  4099. void BeginDumpShaders(const String&);
  4100. void Close();
  4101. void EndDumpShaders();
  4102. void Maximize();
  4103. void Minimize();
  4104. void PrecacheShaders(File);
  4105. void PrecacheShaders(VectorBuffer&);
  4106. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4107. bool SetMode(int, int);
  4108. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4109. void SetWindowPosition(int, int);
  4110. bool TakeScreenShot(Image);
  4111. bool ToggleFullscreen();
  4112. // Properties:
  4113. /* readonly */
  4114. StringHash baseType;
  4115. /* readonly */
  4116. bool borderless;
  4117. /* readonly */
  4118. String category;
  4119. /* readonly */
  4120. bool deferredSupport;
  4121. /* readonly */
  4122. IntVector2 desktopResolution;
  4123. /* readonly */
  4124. bool deviceLost;
  4125. bool flushGPU;
  4126. bool forceSM2;
  4127. /* readonly */
  4128. bool fullscreen;
  4129. /* readonly */
  4130. bool hardwareShadowSupport;
  4131. /* readonly */
  4132. int height;
  4133. /* readonly */
  4134. bool initialized;
  4135. /* readonly */
  4136. bool instancingSupport;
  4137. /* readonly */
  4138. bool lightPrepassSupport;
  4139. /* readonly */
  4140. int multiSample;
  4141. /* readonly */
  4142. Array<int> multiSampleLevels;
  4143. /* readonly */
  4144. uint numBatches;
  4145. /* readonly */
  4146. uint numPrimitives;
  4147. String orientations;
  4148. /* readonly */
  4149. bool readableDepthSupport;
  4150. /* readonly */
  4151. int refs;
  4152. /* readonly */
  4153. bool resizable;
  4154. /* readonly */
  4155. Array<IntVector2> resolutions;
  4156. bool sRGB;
  4157. /* readonly */
  4158. bool sRGBSupport;
  4159. /* readonly */
  4160. bool sRGBWriteSupport;
  4161. /* readonly */
  4162. bool sm3Support;
  4163. /* readonly */
  4164. bool tripleBuffer;
  4165. /* readonly */
  4166. StringHash type;
  4167. /* readonly */
  4168. String typeName;
  4169. /* readonly */
  4170. bool vsync;
  4171. /* readonly */
  4172. int weakRefs;
  4173. /* readonly */
  4174. int width;
  4175. /* writeonly */
  4176. Image windowIcon;
  4177. IntVector2 windowPosition;
  4178. String windowTitle;
  4179. };
  4180. class HttpRequest
  4181. {
  4182. // Methods:
  4183. Array<uint8> Read(uint);
  4184. bool ReadBool();
  4185. BoundingBox ReadBoundingBox();
  4186. int8 ReadByte();
  4187. Color ReadColor();
  4188. String ReadFileID();
  4189. float ReadFloat();
  4190. int ReadInt();
  4191. IntRect ReadIntRect();
  4192. IntVector2 ReadIntVector2();
  4193. String ReadLine();
  4194. Matrix3 ReadMatrix3();
  4195. Matrix3x4 ReadMatrix3x4();
  4196. Matrix4 ReadMatrix4();
  4197. uint ReadNetID();
  4198. Quaternion ReadPackedQuaternion();
  4199. Vector3 ReadPackedVector3(float);
  4200. Quaternion ReadQuaternion();
  4201. int16 ReadShort();
  4202. String ReadString();
  4203. StringHash ReadStringHash();
  4204. uint8 ReadUByte();
  4205. uint ReadUInt();
  4206. uint16 ReadUShort();
  4207. uint ReadVLE();
  4208. Variant ReadVariant();
  4209. VariantMap ReadVariantMap();
  4210. Vector2 ReadVector2();
  4211. Vector3 ReadVector3();
  4212. Vector4 ReadVector4();
  4213. VectorBuffer ReadVectorBuffer(uint);
  4214. uint Seek(uint);
  4215. // Properties:
  4216. /* readonly */
  4217. uint availableSize;
  4218. /* readonly */
  4219. uint checksum;
  4220. /* readonly */
  4221. bool eof;
  4222. /* readonly */
  4223. String error;
  4224. /* readonly */
  4225. String name;
  4226. /* readonly */
  4227. bool open;
  4228. /* readonly */
  4229. uint position;
  4230. /* readonly */
  4231. int refs;
  4232. /* readonly */
  4233. uint size;
  4234. /* readonly */
  4235. HttpRequestState state;
  4236. /* readonly */
  4237. String url;
  4238. /* readonly */
  4239. String verb;
  4240. /* readonly */
  4241. int weakRefs;
  4242. };
  4243. class Image
  4244. {
  4245. // Methods:
  4246. void Clear(const Color&);
  4247. void ClearInt(uint);
  4248. bool FlipHorizontal();
  4249. bool FlipVertical();
  4250. Color GetPixel(int, int) const;
  4251. Color GetPixel(int, int, int) const;
  4252. Color GetPixelBilinear(float, float) const;
  4253. uint GetPixelInt(int, int) const;
  4254. uint GetPixelInt(int, int, int) const;
  4255. Color GetPixelTrilinear(float, float, float) const;
  4256. Image GetSubimage(const IntRect&) const;
  4257. bool Load(File);
  4258. bool Load(VectorBuffer&);
  4259. bool LoadColorLUT(File);
  4260. bool LoadColorLUT(VectorBuffer&);
  4261. bool Resize(int, int);
  4262. bool Save(File) const;
  4263. bool Save(VectorBuffer&) const;
  4264. void SaveBMP(const String&) const;
  4265. void SaveJPG(const String&, int) const;
  4266. void SavePNG(const String&) const;
  4267. void SaveTGA(const String&) const;
  4268. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4269. void SetPixel(int, int, const Color&);
  4270. void SetPixel(int, int, int, const Color&);
  4271. void SetPixelInt(int, int, int, uint);
  4272. void SetPixelInt(int, int, uint);
  4273. bool SetSize(int, int, int, uint);
  4274. bool SetSize(int, int, uint);
  4275. // Properties:
  4276. /* readonly */
  4277. StringHash baseType;
  4278. /* readonly */
  4279. String category;
  4280. /* readonly */
  4281. uint components;
  4282. /* readonly */
  4283. bool compressed;
  4284. /* readonly */
  4285. CompressedFormat compressedFormat;
  4286. /* readonly */
  4287. int depth;
  4288. /* readonly */
  4289. int height;
  4290. /* readonly */
  4291. uint memoryUse;
  4292. String name;
  4293. /* readonly */
  4294. uint numCompressedLevels;
  4295. /* readonly */
  4296. int refs;
  4297. /* readonly */
  4298. StringHash type;
  4299. /* readonly */
  4300. String typeName;
  4301. /* readonly */
  4302. uint useTimer;
  4303. /* readonly */
  4304. int weakRefs;
  4305. /* readonly */
  4306. int width;
  4307. };
  4308. class Input
  4309. {
  4310. // Methods:
  4311. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  4312. int GetKeyFromName(const String&) const;
  4313. int GetKeyFromScancode(int) const;
  4314. String GetKeyName(int) const;
  4315. int GetScancodeFromKey(int) const;
  4316. int GetScancodeFromName(const String&) const;
  4317. String GetScancodeName(int) const;
  4318. uint LoadGestures(File);
  4319. uint LoadGestures(VectorBuffer&);
  4320. bool RecordGesture();
  4321. void RemoveAllGestures();
  4322. bool RemoveGesture(uint);
  4323. bool RemoveScreenJoystick(int);
  4324. void ResetMouseVisible();
  4325. bool SaveGesture(File, uint);
  4326. bool SaveGesture(VectorBuffer&, uint);
  4327. bool SaveGestures(File);
  4328. bool SaveGestures(VectorBuffer&);
  4329. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4330. void SetMouseVisible(bool, bool = false);
  4331. // Properties:
  4332. /* readonly */
  4333. StringHash baseType;
  4334. /* readonly */
  4335. String category;
  4336. /* readonly */
  4337. bool focus;
  4338. /* readonly */
  4339. Array<JoystickState> joysticks;
  4340. /* readonly */
  4341. Array<JoystickState> joysticksByIndex;
  4342. /* readonly */
  4343. Array<bool> keyDown;
  4344. /* readonly */
  4345. Array<bool> keyPress;
  4346. /* readonly */
  4347. bool minimized;
  4348. /* readonly */
  4349. Array<bool> mouseButtonDown;
  4350. /* readonly */
  4351. Array<bool> mouseButtonPress;
  4352. bool mouseGrabbed;
  4353. MouseMode mouseMode;
  4354. /* readonly */
  4355. IntVector2 mouseMove;
  4356. /* readonly */
  4357. int mouseMoveWheel;
  4358. /* readonly */
  4359. int mouseMoveX;
  4360. /* readonly */
  4361. int mouseMoveY;
  4362. /* readonly */
  4363. IntVector2 mousePosition;
  4364. bool mouseVisible;
  4365. /* readonly */
  4366. uint numJoysticks;
  4367. /* readonly */
  4368. uint numTouches;
  4369. /* readonly */
  4370. Array<bool> qualifierDown;
  4371. /* readonly */
  4372. Array<bool> qualifierPress;
  4373. /* readonly */
  4374. int qualifiers;
  4375. /* readonly */
  4376. int refs;
  4377. /* readonly */
  4378. Array<bool> scancodeDown;
  4379. /* readonly */
  4380. Array<bool> scancodePress;
  4381. Array<bool> screenJoystickVisible;
  4382. /* readonly */
  4383. bool screenKeyboardSupport;
  4384. bool screenKeyboardVisible;
  4385. bool toggleFullscreen;
  4386. bool touchEmulation;
  4387. /* readonly */
  4388. Array<TouchState> touches;
  4389. /* readonly */
  4390. StringHash type;
  4391. /* readonly */
  4392. String typeName;
  4393. /* readonly */
  4394. int weakRefs;
  4395. };
  4396. class IntRect
  4397. {
  4398. // Methods:
  4399. Intersection IsInside(const IntVector2&) const;
  4400. // Properties:
  4401. int bottom;
  4402. /* readonly */
  4403. Array<int> data;
  4404. /* readonly */
  4405. int height;
  4406. int left;
  4407. int right;
  4408. /* readonly */
  4409. IntVector2 size;
  4410. int top;
  4411. /* readonly */
  4412. int width;
  4413. };
  4414. class IntVector2
  4415. {
  4416. // Methods:
  4417. String ToString() const;
  4418. // Properties:
  4419. /* readonly */
  4420. Array<int> data;
  4421. int x;
  4422. int y;
  4423. };
  4424. class JSONFile
  4425. {
  4426. // Methods:
  4427. JSONValue CreateRoot(JSONValueType = JSON_ANY);
  4428. JSONValue GetRoot(JSONValueType = JSON_ANY);
  4429. bool Load(File);
  4430. bool Load(VectorBuffer&);
  4431. bool Save(File) const;
  4432. bool Save(VectorBuffer&) const;
  4433. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4434. // Properties:
  4435. /* readonly */
  4436. StringHash baseType;
  4437. /* readonly */
  4438. String category;
  4439. /* readonly */
  4440. uint memoryUse;
  4441. String name;
  4442. /* readonly */
  4443. int refs;
  4444. /* readonly */
  4445. StringHash type;
  4446. /* readonly */
  4447. String typeName;
  4448. /* readonly */
  4449. uint useTimer;
  4450. /* readonly */
  4451. int weakRefs;
  4452. };
  4453. class JSONValue
  4454. {
  4455. // Methods:
  4456. void AddBool(bool);
  4457. void AddColor(const Color&);
  4458. void AddFloat(float);
  4459. void AddInt(int);
  4460. void AddIntRect(const IntRect&);
  4461. void AddIntVector2(const IntVector2&);
  4462. void AddMatrix3(const Matrix3&);
  4463. void AddMatrix3x4(const Matrix3x4&);
  4464. void AddMatrix4(const Matrix4&);
  4465. void AddQuaternion(const Quaternion&);
  4466. void AddResourceRef(const ResourceRef&);
  4467. void AddResourceRefList(const ResourceRefList&);
  4468. void AddString(const String);
  4469. void AddVariant(const Variant&);
  4470. void AddVariantValue(const Variant&);
  4471. void AddVector2(const Vector2&);
  4472. void AddVector3(const Vector3&);
  4473. void AddVector4(const Vector4&);
  4474. void AddVectorVariant(const Variant&);
  4475. JSONValue CreateChild(JSONValueType = JSON_OBJECT);
  4476. JSONValue CreateChild(const String&, JSONValueType = JSON_OBJECT);
  4477. bool GetBool(const String&) const;
  4478. bool GetBool(uint) const;
  4479. JSONValue GetChild(const String&, JSONValueType = JSON_ANY) const;
  4480. JSONValue GetChild(uint, JSONValueType = JSON_ANY) const;
  4481. Array<String> GetChildNames() const;
  4482. Color GetColor(const String&) const;
  4483. Color GetColor(uint) const;
  4484. float GetFloat(const String&) const;
  4485. float GetFloat(uint) const;
  4486. int GetInt(const String&) const;
  4487. int GetInt(uint) const;
  4488. IntRect GetIntRect(const String&) const;
  4489. IntRect GetIntRect(uint) const;
  4490. IntVector2 GetIntVector2(const String&) const;
  4491. IntVector2 GetIntVector2(uint) const;
  4492. Matrix3 GetMatrix3(const String&) const;
  4493. Matrix3 GetMatrix3(uint) const;
  4494. Matrix3x4 GetMatrix3x4(const String&) const;
  4495. Matrix3x4 GetMatrix3x4(uint) const;
  4496. Matrix4 GetMatrix4(const String&) const;
  4497. Matrix4 GetMatrix4(uint) const;
  4498. Quaternion GetQuaternion(const String&) const;
  4499. Quaternion GetQuaternion(uint) const;
  4500. ResourceRef GetResourceRef(const String&) const;
  4501. ResourceRef GetResourceRef(uint) const;
  4502. ResourceRefList GetResourceRefList(const String&) const;
  4503. ResourceRefList GetResourceRefList(uint) const;
  4504. String GetString(const String&) const;
  4505. String GetString(uint) const;
  4506. Array<String> GetValueNames() const;
  4507. Variant GetVariant(const String&) const;
  4508. Variant GetVariant(uint) const;
  4509. Variant GetVariantValue(const String&, VariantType) const;
  4510. Variant GetVariantValue(uint, VariantType) const;
  4511. Vector2 GetVector2(const String&) const;
  4512. Vector2 GetVector2(uint) const;
  4513. Vector3 GetVector3(const String&) const;
  4514. Vector3 GetVector3(uint) const;
  4515. Vector4 GetVector4(const String&) const;
  4516. Vector4 GetVector4(uint) const;
  4517. Variant GetVectorVariant(const String&) const;
  4518. Variant GetVectorVariant(uint) const;
  4519. void SetBool(const String&, bool);
  4520. void SetColor(const String&, const Color&);
  4521. void SetFloat(const String&, float);
  4522. void SetInt(const String&, int);
  4523. void SetIntRect(const String&, const IntRect&);
  4524. void SetIntVector2(const String&, const IntVector2&);
  4525. void SetMatrix3(const String&, const Matrix3&);
  4526. void SetMatrix3x4(const String&, const Matrix3x4&);
  4527. void SetMatrix4(const String&, const Matrix4&);
  4528. void SetQuaternion(const String&, const Quaternion&);
  4529. void SetResourceRef(const String&, const ResourceRef&);
  4530. void SetResourceRefList(const String&, const ResourceRefList&);
  4531. void SetString(const String&, const String);
  4532. void SetVariant(const String&, const Variant&);
  4533. void SetVariantValue(const String&, const Variant&);
  4534. void SetVector2(const String&, const Vector2&);
  4535. void SetVector3(const String&, const Vector3&);
  4536. void SetVector4(const String&, const Vector4&);
  4537. void SetVectorVariant(const String&, const Variant&);
  4538. // Properties:
  4539. /* readonly */
  4540. bool isArray;
  4541. /* readonly */
  4542. bool isNull;
  4543. /* readonly */
  4544. bool isObject;
  4545. /* readonly */
  4546. bool notNull;
  4547. /* readonly */
  4548. uint size;
  4549. };
  4550. class JoystickState
  4551. {
  4552. // Properties:
  4553. /* readonly */
  4554. Array<float> axisPosition;
  4555. /* readonly */
  4556. Array<bool> buttonDown;
  4557. /* readonly */
  4558. Array<bool> buttonPress;
  4559. /* readonly */
  4560. bool controller;
  4561. /* readonly */
  4562. Array<int> hatPosition;
  4563. int joystickID;
  4564. String name;
  4565. /* readonly */
  4566. uint numAxes;
  4567. /* readonly */
  4568. uint numButtons;
  4569. /* readonly */
  4570. uint numHats;
  4571. };
  4572. class Light
  4573. {
  4574. // Methods:
  4575. void ApplyAttributes();
  4576. void DrawDebugGeometry(DebugRenderer, bool);
  4577. Variant GetAttribute(const String&) const;
  4578. ValueAnimation GetAttributeAnimation(const String&) const;
  4579. float GetAttributeAnimationSpeed(const String&) const;
  4580. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4581. Variant GetAttributeDefault(const String&) const;
  4582. bool IsInView(Camera) const;
  4583. bool Load(File, bool = false);
  4584. bool Load(VectorBuffer&, bool = false);
  4585. bool LoadXML(const XMLElement&, bool = false);
  4586. void MarkNetworkUpdate() const;
  4587. void Remove();
  4588. void RemoveInstanceDefault();
  4589. void ResetToDefault();
  4590. bool Save(File) const;
  4591. bool Save(VectorBuffer&) const;
  4592. bool SaveXML(XMLElement&) const;
  4593. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4594. bool SetAttribute(const String&, const Variant&);
  4595. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4596. void SetAttributeAnimationSpeed(const String&, float);
  4597. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4598. // Properties:
  4599. bool animationEnabled;
  4600. float aspectRatio;
  4601. /* readonly */
  4602. Array<Variant> attributeDefaults;
  4603. /* readonly */
  4604. Array<AttributeInfo> attributeInfos;
  4605. Array<Variant> attributes;
  4606. /* readonly */
  4607. StringHash baseType;
  4608. /* readonly */
  4609. BoundingBox boundingBox;
  4610. float brightness;
  4611. bool castShadows;
  4612. /* readonly */
  4613. String category;
  4614. Color color;
  4615. float drawDistance;
  4616. /* readonly */
  4617. Color effectiveColor;
  4618. /* readonly */
  4619. float effectiveSpecularIntensity;
  4620. bool enabled;
  4621. /* readonly */
  4622. bool enabledEffective;
  4623. float fadeDistance;
  4624. float fov;
  4625. /* readonly */
  4626. Frustum frustum;
  4627. /* readonly */
  4628. uint id;
  4629. /* readonly */
  4630. bool inView;
  4631. uint lightMask;
  4632. LightType lightType;
  4633. float lodBias;
  4634. uint maxLights;
  4635. /* readonly */
  4636. bool negative;
  4637. /* readonly */
  4638. Node node;
  4639. /* readonly */
  4640. uint numAttributes;
  4641. /* readonly */
  4642. int numShadowSplits;
  4643. ObjectAnimation objectAnimation;
  4644. bool occludee;
  4645. bool occluder;
  4646. bool perVertex;
  4647. Texture rampTexture;
  4648. float range;
  4649. /* readonly */
  4650. int refs;
  4651. BiasParameters shadowBias;
  4652. CascadeParameters shadowCascade;
  4653. float shadowDistance;
  4654. float shadowFadeDistance;
  4655. FocusParameters shadowFocus;
  4656. float shadowIntensity;
  4657. uint shadowMask;
  4658. float shadowNearFarRatio;
  4659. float shadowResolution;
  4660. Texture shapeTexture;
  4661. float specularIntensity;
  4662. bool temporary;
  4663. /* readonly */
  4664. StringHash type;
  4665. /* readonly */
  4666. String typeName;
  4667. uint viewMask;
  4668. /* readonly */
  4669. int weakRefs;
  4670. /* readonly */
  4671. BoundingBox worldBoundingBox;
  4672. uint zoneMask;
  4673. };
  4674. class LineEdit
  4675. {
  4676. // Methods:
  4677. void AddChild(UIElement);
  4678. void ApplyAttributes();
  4679. void BringToFront();
  4680. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4681. void DisableLayoutUpdate();
  4682. IntVector2 ElementToScreen(const IntVector2&);
  4683. void EnableLayoutUpdate();
  4684. uint FindChild(UIElement) const;
  4685. Variant GetAttribute(const String&) const;
  4686. ValueAnimation GetAttributeAnimation(const String&) const;
  4687. float GetAttributeAnimationSpeed(const String&) const;
  4688. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4689. Variant GetAttributeDefault(const String&) const;
  4690. UIElement GetChild(const String&, bool = false) const;
  4691. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4692. Array<UIElement> GetChildren(bool = false) const;
  4693. UIElement GetElementEventSender() const;
  4694. uint GetNumChildren(bool) const;
  4695. void InsertChild(uint, UIElement);
  4696. bool IsInside(IntVector2, bool);
  4697. bool IsInsideCombined(IntVector2, bool);
  4698. bool Load(File, bool = false);
  4699. bool Load(VectorBuffer&, bool = false);
  4700. bool LoadChildXML(XMLFile, XMLFile = null);
  4701. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4702. bool LoadXML(File);
  4703. bool LoadXML(VectorBuffer&);
  4704. bool LoadXML(XMLFile, XMLFile);
  4705. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4706. bool LoadXML(const XMLElement&, bool = false);
  4707. void MarkNetworkUpdate() const;
  4708. void Remove();
  4709. void RemoveAllChildren();
  4710. void RemoveChild(UIElement, uint = 0);
  4711. void RemoveChild(uint);
  4712. void RemoveInstanceDefault();
  4713. void ResetDeepEnabled();
  4714. void ResetToDefault();
  4715. bool Save(File) const;
  4716. bool Save(VectorBuffer&) const;
  4717. bool SaveXML(File);
  4718. bool SaveXML(VectorBuffer&);
  4719. bool SaveXML(XMLElement&) const;
  4720. IntVector2 ScreenToElement(const IntVector2&);
  4721. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4722. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4723. bool SetAttribute(const String&, const Variant&);
  4724. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4725. void SetAttributeAnimationSpeed(const String&, float);
  4726. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4727. void SetDeepEnabled(bool);
  4728. void SetEnabledRecursive(bool);
  4729. void SetFixedHeight(int);
  4730. void SetFixedSize(int, int);
  4731. void SetFixedWidth(int);
  4732. void SetFullImageRect();
  4733. void SetHoverOffset(int, int);
  4734. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4735. void SetMaxSize(int, int);
  4736. void SetMinSize(int, int);
  4737. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4738. void SetPosition(int, int);
  4739. void SetSize(int, int);
  4740. bool SetStyle(const String&, XMLFile = null);
  4741. bool SetStyle(const XMLElement&);
  4742. bool SetStyleAuto(XMLFile = null);
  4743. void UpdateLayout();
  4744. const Variant& GetVar(const StringHash&);
  4745. // Properties:
  4746. bool animationEnabled;
  4747. /* readonly */
  4748. Array<Variant> attributeDefaults;
  4749. /* readonly */
  4750. Array<AttributeInfo> attributeInfos;
  4751. Array<Variant> attributes;
  4752. /* readonly */
  4753. StringHash baseType;
  4754. BlendMode blendMode;
  4755. IntRect border;
  4756. bool bringToBack;
  4757. bool bringToFront;
  4758. /* readonly */
  4759. String category;
  4760. /* readonly */
  4761. IntVector2 childOffset;
  4762. /* readonly */
  4763. Array<UIElement> children;
  4764. IntRect clipBorder;
  4765. bool clipChildren;
  4766. /* writeonly */
  4767. Color color;
  4768. /* readonly */
  4769. bool colorGradient;
  4770. Array<Color> colors;
  4771. /* readonly */
  4772. IntRect combinedScreenRect;
  4773. /* readonly */
  4774. BorderImage cursor;
  4775. float cursorBlinkRate;
  4776. bool cursorMovable;
  4777. uint cursorPosition;
  4778. XMLFile defaultStyle;
  4779. /* readonly */
  4780. float derivedOpacity;
  4781. /* readonly */
  4782. uint dragButtonCombo;
  4783. /* readonly */
  4784. int dragButtonCount;
  4785. uint dragDropMode;
  4786. uint echoCharacter;
  4787. bool editable;
  4788. bool elementEventSender;
  4789. bool enabled;
  4790. /* readonly */
  4791. bool enabledSelf;
  4792. /* readonly */
  4793. bool fixedHeight;
  4794. /* readonly */
  4795. bool fixedSize;
  4796. /* readonly */
  4797. bool fixedWidth;
  4798. bool focus;
  4799. FocusMode focusMode;
  4800. int height;
  4801. HorizontalAlignment horizontalAlignment;
  4802. IntVector2 hoverOffset;
  4803. /* readonly */
  4804. bool hovering;
  4805. IntRect imageBorder;
  4806. IntRect imageRect;
  4807. int indent;
  4808. int indentSpacing;
  4809. /* readonly */
  4810. int indentWidth;
  4811. bool internal;
  4812. IntRect layoutBorder;
  4813. Vector2 layoutFlexScale;
  4814. LayoutMode layoutMode;
  4815. int layoutSpacing;
  4816. int maxHeight;
  4817. uint maxLength;
  4818. IntVector2 maxSize;
  4819. int maxWidth;
  4820. int minHeight;
  4821. IntVector2 minSize;
  4822. int minWidth;
  4823. String name;
  4824. /* readonly */
  4825. uint numAllChildren;
  4826. /* readonly */
  4827. uint numAttributes;
  4828. /* readonly */
  4829. uint numChildren;
  4830. ObjectAnimation objectAnimation;
  4831. float opacity;
  4832. UIElement parent;
  4833. IntVector2 position;
  4834. int priority;
  4835. /* readonly */
  4836. int refs;
  4837. /* readonly */
  4838. UIElement root;
  4839. /* readonly */
  4840. IntVector2 screenPosition;
  4841. bool selected;
  4842. IntVector2 size;
  4843. bool sortChildren;
  4844. String style;
  4845. bool temporary;
  4846. String text;
  4847. bool textCopyable;
  4848. /* readonly */
  4849. Text textElement;
  4850. bool textSelectable;
  4851. Texture texture;
  4852. bool tiled;
  4853. TraversalMode traversalMode;
  4854. /* readonly */
  4855. StringHash type;
  4856. /* readonly */
  4857. String typeName;
  4858. bool useDerivedOpacity;
  4859. /* readonly */
  4860. VariantMap vars;
  4861. VerticalAlignment verticalAlignment;
  4862. bool visible;
  4863. /* readonly */
  4864. int weakRefs;
  4865. int width;
  4866. };
  4867. class ListView
  4868. {
  4869. // Methods:
  4870. void AddChild(UIElement);
  4871. void AddItem(UIElement);
  4872. void AddSelection(uint);
  4873. void ApplyAttributes();
  4874. void BringToFront();
  4875. void ChangeSelection(int, bool);
  4876. void ClearSelection();
  4877. void CopySelectedItemsToClipboard();
  4878. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4879. void DisableLayoutUpdate();
  4880. IntVector2 ElementToScreen(const IntVector2&);
  4881. void EnableLayoutUpdate();
  4882. void Expand(uint, bool, bool = false);
  4883. uint FindChild(UIElement) const;
  4884. uint FindItem(UIElement);
  4885. Variant GetAttribute(const String&) const;
  4886. ValueAnimation GetAttributeAnimation(const String&) const;
  4887. float GetAttributeAnimationSpeed(const String&) const;
  4888. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4889. Variant GetAttributeDefault(const String&) const;
  4890. UIElement GetChild(const String&, bool = false) const;
  4891. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4892. Array<UIElement> GetChildren(bool = false) const;
  4893. UIElement GetElementEventSender() const;
  4894. Array<UIElement> GetItems() const;
  4895. uint GetNumChildren(bool) const;
  4896. void InsertChild(uint, UIElement);
  4897. void InsertItem(uint, UIElement, UIElement = null);
  4898. bool IsExpanded(uint) const;
  4899. bool IsInside(IntVector2, bool);
  4900. bool IsInsideCombined(IntVector2, bool);
  4901. bool IsSelected(uint) const;
  4902. bool Load(File, bool = false);
  4903. bool Load(VectorBuffer&, bool = false);
  4904. bool LoadChildXML(XMLFile, XMLFile = null);
  4905. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4906. bool LoadXML(File);
  4907. bool LoadXML(VectorBuffer&);
  4908. bool LoadXML(XMLFile, XMLFile);
  4909. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4910. bool LoadXML(const XMLElement&, bool = false);
  4911. void MarkNetworkUpdate() const;
  4912. void Remove();
  4913. void RemoveAllChildren();
  4914. void RemoveAllItems();
  4915. void RemoveChild(UIElement, uint = 0);
  4916. void RemoveChild(uint);
  4917. void RemoveInstanceDefault();
  4918. void RemoveItem(UIElement, uint = 0);
  4919. void RemoveItem(uint);
  4920. void RemoveSelection(uint);
  4921. void ResetDeepEnabled();
  4922. void ResetToDefault();
  4923. bool Save(File) const;
  4924. bool Save(VectorBuffer&) const;
  4925. bool SaveXML(File);
  4926. bool SaveXML(VectorBuffer&);
  4927. bool SaveXML(XMLElement&) const;
  4928. IntVector2 ScreenToElement(const IntVector2&);
  4929. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4930. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4931. bool SetAttribute(const String&, const Variant&);
  4932. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4933. void SetAttributeAnimationSpeed(const String&, float);
  4934. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4935. void SetDeepEnabled(bool);
  4936. void SetEnabledRecursive(bool);
  4937. void SetFixedHeight(int);
  4938. void SetFixedSize(int, int);
  4939. void SetFixedWidth(int);
  4940. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4941. void SetMaxSize(int, int);
  4942. void SetMinSize(int, int);
  4943. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4944. void SetPosition(int, int);
  4945. void SetScrollBarsVisible(bool, bool);
  4946. void SetSelections(Array<uint>);
  4947. void SetSize(int, int);
  4948. bool SetStyle(const String&, XMLFile = null);
  4949. bool SetStyle(const XMLElement&);
  4950. bool SetStyleAuto(XMLFile = null);
  4951. void SetViewPosition(int, int);
  4952. void ToggleExpand(uint, bool = false);
  4953. void ToggleSelection(uint);
  4954. void UpdateLayout();
  4955. const Variant& GetVar(const StringHash&);
  4956. // Properties:
  4957. bool animationEnabled;
  4958. /* readonly */
  4959. Array<Variant> attributeDefaults;
  4960. /* readonly */
  4961. Array<AttributeInfo> attributeInfos;
  4962. Array<Variant> attributes;
  4963. bool autoDisableChildren;
  4964. float autoDisableThreshold;
  4965. int baseIndent;
  4966. /* readonly */
  4967. StringHash baseType;
  4968. bool bringToBack;
  4969. bool bringToFront;
  4970. /* readonly */
  4971. String category;
  4972. /* readonly */
  4973. IntVector2 childOffset;
  4974. /* readonly */
  4975. Array<UIElement> children;
  4976. bool clearSelectionOnDefocus;
  4977. IntRect clipBorder;
  4978. bool clipChildren;
  4979. /* writeonly */
  4980. Color color;
  4981. /* readonly */
  4982. bool colorGradient;
  4983. Array<Color> colors;
  4984. /* readonly */
  4985. IntRect combinedScreenRect;
  4986. /* readonly */
  4987. UIElement contentElement;
  4988. XMLFile defaultStyle;
  4989. /* readonly */
  4990. float derivedOpacity;
  4991. /* readonly */
  4992. uint dragButtonCombo;
  4993. /* readonly */
  4994. int dragButtonCount;
  4995. uint dragDropMode;
  4996. bool editable;
  4997. bool elementEventSender;
  4998. bool enabled;
  4999. /* readonly */
  5000. bool enabledSelf;
  5001. /* readonly */
  5002. bool fixedHeight;
  5003. /* readonly */
  5004. bool fixedSize;
  5005. /* readonly */
  5006. bool fixedWidth;
  5007. bool focus;
  5008. FocusMode focusMode;
  5009. int height;
  5010. bool hierarchyMode;
  5011. HighlightMode highlightMode;
  5012. HorizontalAlignment horizontalAlignment;
  5013. /* readonly */
  5014. ScrollBar horizontalScrollBar;
  5015. /* readonly */
  5016. bool hovering;
  5017. int indent;
  5018. int indentSpacing;
  5019. /* readonly */
  5020. int indentWidth;
  5021. bool internal;
  5022. /* readonly */
  5023. Array<UIElement> items;
  5024. IntRect layoutBorder;
  5025. Vector2 layoutFlexScale;
  5026. LayoutMode layoutMode;
  5027. int layoutSpacing;
  5028. int maxHeight;
  5029. IntVector2 maxSize;
  5030. int maxWidth;
  5031. int minHeight;
  5032. IntVector2 minSize;
  5033. int minWidth;
  5034. bool multiselect;
  5035. String name;
  5036. /* readonly */
  5037. uint numAllChildren;
  5038. /* readonly */
  5039. uint numAttributes;
  5040. /* readonly */
  5041. uint numChildren;
  5042. /* readonly */
  5043. uint numItems;
  5044. ObjectAnimation objectAnimation;
  5045. float opacity;
  5046. float pageStep;
  5047. UIElement parent;
  5048. IntVector2 position;
  5049. int priority;
  5050. /* readonly */
  5051. int refs;
  5052. /* readonly */
  5053. UIElement root;
  5054. /* readonly */
  5055. IntVector2 screenPosition;
  5056. bool scrollBarsAutoVisible;
  5057. float scrollDeceleration;
  5058. /* readonly */
  5059. BorderImage scrollPanel;
  5060. float scrollSnapEpsilon;
  5061. float scrollStep;
  5062. bool selectOnClickEnd;
  5063. bool selected;
  5064. /* readonly */
  5065. UIElement selectedItem;
  5066. /* readonly */
  5067. Array<UIElement> selectedItems;
  5068. uint selection;
  5069. /* readonly */
  5070. Array<uint> selections;
  5071. IntVector2 size;
  5072. bool sortChildren;
  5073. String style;
  5074. bool temporary;
  5075. TraversalMode traversalMode;
  5076. /* readonly */
  5077. StringHash type;
  5078. /* readonly */
  5079. String typeName;
  5080. bool useDerivedOpacity;
  5081. /* readonly */
  5082. VariantMap vars;
  5083. VerticalAlignment verticalAlignment;
  5084. /* readonly */
  5085. ScrollBar verticalScrollBar;
  5086. IntVector2 viewPosition;
  5087. bool visible;
  5088. /* readonly */
  5089. int weakRefs;
  5090. int width;
  5091. };
  5092. class Log
  5093. {
  5094. // Methods:
  5095. void Close();
  5096. void Debug(const String&);
  5097. void Error(const String&);
  5098. void Info(const String&);
  5099. void Open(const String&);
  5100. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5101. void Warning(const String&);
  5102. void Write(const String&, bool = false);
  5103. // Properties:
  5104. /* readonly */
  5105. StringHash baseType;
  5106. /* readonly */
  5107. String category;
  5108. /* readonly */
  5109. String lastMessage;
  5110. int level;
  5111. bool quiet;
  5112. /* readonly */
  5113. int refs;
  5114. bool timeStamp;
  5115. /* readonly */
  5116. StringHash type;
  5117. /* readonly */
  5118. String typeName;
  5119. /* readonly */
  5120. int weakRefs;
  5121. };
  5122. class Material
  5123. {
  5124. // Methods:
  5125. Material Clone(const String& = String ( )) const;
  5126. ValueAnimation GetShaderParameterAnimation(const String&) const;
  5127. float GetShaderParameterAnimationSpeed(const String&) const;
  5128. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  5129. bool Load(File);
  5130. bool Load(VectorBuffer&);
  5131. bool Load(const XMLElement&);
  5132. void RemoveShaderParameter(const String&);
  5133. bool Save(File) const;
  5134. bool Save(VectorBuffer&) const;
  5135. bool Save(XMLElement&) const;
  5136. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5137. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5138. void SetShaderParameterAnimationSpeed(const String&, float);
  5139. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  5140. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  5141. void SetUVTransform(const Vector2&, float, const Vector2&);
  5142. void SetUVTransform(const Vector2&, float, float);
  5143. void SortTechniques();
  5144. // Properties:
  5145. /* readonly */
  5146. StringHash baseType;
  5147. /* readonly */
  5148. String category;
  5149. CullMode cullMode;
  5150. BiasParameters depthBias;
  5151. /* readonly */
  5152. uint memoryUse;
  5153. String name;
  5154. uint numTechniques;
  5155. /* readonly */
  5156. uint numUsedTextureUnits;
  5157. /* readonly */
  5158. bool occlusion;
  5159. /* readonly */
  5160. int refs;
  5161. Scene scene;
  5162. /* readonly */
  5163. Array<String> shaderParameterNames;
  5164. Array<Variant> shaderParameters;
  5165. CullMode shadowCullMode;
  5166. /* readonly */
  5167. Array<TechniqueEntry> techniqueEntries;
  5168. /* readonly */
  5169. Array<Technique> techniques;
  5170. Array<Texture> textures;
  5171. /* readonly */
  5172. StringHash type;
  5173. /* readonly */
  5174. String typeName;
  5175. /* readonly */
  5176. uint useTimer;
  5177. /* readonly */
  5178. int weakRefs;
  5179. };
  5180. class Matrix3
  5181. {
  5182. // Methods:
  5183. bool Equals(const Matrix3&) const;
  5184. Matrix3 Inverse() const;
  5185. Vector3 Scale() const;
  5186. Matrix3 Scaled(const Vector3&) const;
  5187. void SetScale(const Vector3&);
  5188. void SetScale(float);
  5189. String ToString() const;
  5190. Matrix3 Transpose() const;
  5191. // Properties:
  5192. float m00;
  5193. float m01;
  5194. float m02;
  5195. float m10;
  5196. float m11;
  5197. float m12;
  5198. float m20;
  5199. float m21;
  5200. float m22;
  5201. };
  5202. class Matrix3x4
  5203. {
  5204. // Methods:
  5205. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5206. bool Equals(const Matrix3x4&) const;
  5207. Matrix3x4 Inverse() const;
  5208. Quaternion Rotation() const;
  5209. Matrix3 RotationMatrix() const;
  5210. Vector3 Scale() const;
  5211. void SetRotation(const Matrix3&);
  5212. void SetScale(const Vector3&);
  5213. void SetScale(float);
  5214. void SetTranslation(const Vector3&);
  5215. Matrix3 ToMatrix3() const;
  5216. Matrix4 ToMatrix4() const;
  5217. String ToString() const;
  5218. Vector3 Translation() const;
  5219. // Properties:
  5220. float m00;
  5221. float m01;
  5222. float m02;
  5223. float m03;
  5224. float m10;
  5225. float m11;
  5226. float m12;
  5227. float m13;
  5228. float m20;
  5229. float m21;
  5230. float m22;
  5231. float m23;
  5232. };
  5233. class Matrix4
  5234. {
  5235. // Methods:
  5236. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5237. bool Equals(const Matrix4&) const;
  5238. Matrix4 Inverse() const;
  5239. Quaternion Rotation() const;
  5240. Matrix3 RotationMatrix() const;
  5241. Vector3 Scale() const;
  5242. void SetRotation(const Matrix3&);
  5243. void SetScale(const Vector3&);
  5244. void SetScale(float);
  5245. void SetTranslation(const Vector3&);
  5246. Matrix3 ToMatrix3() const;
  5247. String ToString() const;
  5248. Vector3 Translation() const;
  5249. Matrix4 Transpose() const;
  5250. // Properties:
  5251. float m00;
  5252. float m01;
  5253. float m02;
  5254. float m03;
  5255. float m10;
  5256. float m11;
  5257. float m12;
  5258. float m13;
  5259. float m20;
  5260. float m21;
  5261. float m22;
  5262. float m23;
  5263. float m30;
  5264. float m31;
  5265. float m32;
  5266. float m33;
  5267. };
  5268. class Menu
  5269. {
  5270. // Methods:
  5271. void AddChild(UIElement);
  5272. void ApplyAttributes();
  5273. void BringToFront();
  5274. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5275. void DisableLayoutUpdate();
  5276. IntVector2 ElementToScreen(const IntVector2&);
  5277. void EnableLayoutUpdate();
  5278. uint FindChild(UIElement) const;
  5279. Variant GetAttribute(const String&) const;
  5280. ValueAnimation GetAttributeAnimation(const String&) const;
  5281. float GetAttributeAnimationSpeed(const String&) const;
  5282. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5283. Variant GetAttributeDefault(const String&) const;
  5284. UIElement GetChild(const String&, bool = false) const;
  5285. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5286. Array<UIElement> GetChildren(bool = false) const;
  5287. UIElement GetElementEventSender() const;
  5288. uint GetNumChildren(bool) const;
  5289. void InsertChild(uint, UIElement);
  5290. bool IsInside(IntVector2, bool);
  5291. bool IsInsideCombined(IntVector2, bool);
  5292. bool Load(File, bool = false);
  5293. bool Load(VectorBuffer&, bool = false);
  5294. bool LoadChildXML(XMLFile, XMLFile = null);
  5295. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5296. bool LoadXML(File);
  5297. bool LoadXML(VectorBuffer&);
  5298. bool LoadXML(XMLFile, XMLFile);
  5299. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5300. bool LoadXML(const XMLElement&, bool = false);
  5301. void MarkNetworkUpdate() const;
  5302. void Remove();
  5303. void RemoveAllChildren();
  5304. void RemoveChild(UIElement, uint = 0);
  5305. void RemoveChild(uint);
  5306. void RemoveInstanceDefault();
  5307. void ResetDeepEnabled();
  5308. void ResetToDefault();
  5309. bool Save(File) const;
  5310. bool Save(VectorBuffer&) const;
  5311. bool SaveXML(File);
  5312. bool SaveXML(VectorBuffer&);
  5313. bool SaveXML(XMLElement&) const;
  5314. IntVector2 ScreenToElement(const IntVector2&);
  5315. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5316. void SetAccelerator(int, int);
  5317. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5318. bool SetAttribute(const String&, const Variant&);
  5319. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5320. void SetAttributeAnimationSpeed(const String&, float);
  5321. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5322. void SetDeepEnabled(bool);
  5323. void SetEnabledRecursive(bool);
  5324. void SetFixedHeight(int);
  5325. void SetFixedSize(int, int);
  5326. void SetFixedWidth(int);
  5327. void SetFullImageRect();
  5328. void SetHoverOffset(int, int);
  5329. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5330. void SetMaxSize(int, int);
  5331. void SetMinSize(int, int);
  5332. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5333. void SetPopupOffset(int, int);
  5334. void SetPosition(int, int);
  5335. void SetPressedChildOffset(int, int);
  5336. void SetPressedOffset(int, int);
  5337. void SetRepeat(float, float);
  5338. void SetSize(int, int);
  5339. bool SetStyle(const String&, XMLFile = null);
  5340. bool SetStyle(const XMLElement&);
  5341. bool SetStyleAuto(XMLFile = null);
  5342. void UpdateLayout();
  5343. const Variant& GetVar(const StringHash&);
  5344. // Properties:
  5345. /* readonly */
  5346. int acceleratorKey;
  5347. /* readonly */
  5348. int acceleratorQualifiers;
  5349. bool animationEnabled;
  5350. /* readonly */
  5351. Array<Variant> attributeDefaults;
  5352. /* readonly */
  5353. Array<AttributeInfo> attributeInfos;
  5354. Array<Variant> attributes;
  5355. /* readonly */
  5356. StringHash baseType;
  5357. BlendMode blendMode;
  5358. IntRect border;
  5359. bool bringToBack;
  5360. bool bringToFront;
  5361. /* readonly */
  5362. String category;
  5363. /* readonly */
  5364. IntVector2 childOffset;
  5365. /* readonly */
  5366. Array<UIElement> children;
  5367. IntRect clipBorder;
  5368. bool clipChildren;
  5369. /* writeonly */
  5370. Color color;
  5371. /* readonly */
  5372. bool colorGradient;
  5373. Array<Color> colors;
  5374. /* readonly */
  5375. IntRect combinedScreenRect;
  5376. XMLFile defaultStyle;
  5377. /* readonly */
  5378. float derivedOpacity;
  5379. /* readonly */
  5380. uint dragButtonCombo;
  5381. /* readonly */
  5382. int dragButtonCount;
  5383. uint dragDropMode;
  5384. bool editable;
  5385. bool elementEventSender;
  5386. bool enabled;
  5387. /* readonly */
  5388. bool enabledSelf;
  5389. /* readonly */
  5390. bool fixedHeight;
  5391. /* readonly */
  5392. bool fixedSize;
  5393. /* readonly */
  5394. bool fixedWidth;
  5395. bool focus;
  5396. FocusMode focusMode;
  5397. int height;
  5398. HorizontalAlignment horizontalAlignment;
  5399. IntVector2 hoverOffset;
  5400. /* readonly */
  5401. bool hovering;
  5402. IntRect imageBorder;
  5403. IntRect imageRect;
  5404. int indent;
  5405. int indentSpacing;
  5406. /* readonly */
  5407. int indentWidth;
  5408. bool internal;
  5409. IntRect layoutBorder;
  5410. Vector2 layoutFlexScale;
  5411. LayoutMode layoutMode;
  5412. int layoutSpacing;
  5413. int maxHeight;
  5414. IntVector2 maxSize;
  5415. int maxWidth;
  5416. int minHeight;
  5417. IntVector2 minSize;
  5418. int minWidth;
  5419. String name;
  5420. /* readonly */
  5421. uint numAllChildren;
  5422. /* readonly */
  5423. uint numAttributes;
  5424. /* readonly */
  5425. uint numChildren;
  5426. ObjectAnimation objectAnimation;
  5427. float opacity;
  5428. UIElement parent;
  5429. UIElement popup;
  5430. IntVector2 popupOffset;
  5431. IntVector2 position;
  5432. /* readonly */
  5433. bool pressed;
  5434. IntVector2 pressedChildOffset;
  5435. IntVector2 pressedOffset;
  5436. int priority;
  5437. /* readonly */
  5438. int refs;
  5439. float repeatDelay;
  5440. float repeatRate;
  5441. /* readonly */
  5442. UIElement root;
  5443. /* readonly */
  5444. IntVector2 screenPosition;
  5445. bool selected;
  5446. bool showPopup;
  5447. IntVector2 size;
  5448. bool sortChildren;
  5449. String style;
  5450. bool temporary;
  5451. Texture texture;
  5452. bool tiled;
  5453. TraversalMode traversalMode;
  5454. /* readonly */
  5455. StringHash type;
  5456. /* readonly */
  5457. String typeName;
  5458. bool useDerivedOpacity;
  5459. /* readonly */
  5460. VariantMap vars;
  5461. VerticalAlignment verticalAlignment;
  5462. bool visible;
  5463. /* readonly */
  5464. int weakRefs;
  5465. int width;
  5466. };
  5467. class MessageBox
  5468. {
  5469. // Methods:
  5470. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5471. // Properties:
  5472. /* readonly */
  5473. StringHash baseType;
  5474. /* readonly */
  5475. String category;
  5476. String message;
  5477. /* readonly */
  5478. int refs;
  5479. String title;
  5480. /* readonly */
  5481. StringHash type;
  5482. /* readonly */
  5483. String typeName;
  5484. /* readonly */
  5485. int weakRefs;
  5486. /* readonly */
  5487. UIElement window;
  5488. };
  5489. class Model
  5490. {
  5491. // Methods:
  5492. Model Clone(const String& = String ( )) const;
  5493. bool Load(File);
  5494. bool Load(VectorBuffer&);
  5495. bool Save(File) const;
  5496. bool Save(VectorBuffer&) const;
  5497. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5498. // Properties:
  5499. /* readonly */
  5500. StringHash baseType;
  5501. /* readonly */
  5502. BoundingBox boundingBox;
  5503. /* readonly */
  5504. String category;
  5505. /* readonly */
  5506. uint memoryUse;
  5507. String name;
  5508. /* readonly */
  5509. uint numGeometries;
  5510. /* readonly */
  5511. Array<uint> numGeometryLodLevels;
  5512. /* readonly */
  5513. uint numMorphs;
  5514. /* readonly */
  5515. int refs;
  5516. /* readonly */
  5517. Skeleton skeleton;
  5518. /* readonly */
  5519. StringHash type;
  5520. /* readonly */
  5521. String typeName;
  5522. /* readonly */
  5523. uint useTimer;
  5524. /* readonly */
  5525. int weakRefs;
  5526. };
  5527. class Navigable
  5528. {
  5529. // Methods:
  5530. void ApplyAttributes();
  5531. void DrawDebugGeometry(DebugRenderer, bool);
  5532. Variant GetAttribute(const String&) const;
  5533. ValueAnimation GetAttributeAnimation(const String&) const;
  5534. float GetAttributeAnimationSpeed(const String&) const;
  5535. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5536. Variant GetAttributeDefault(const String&) const;
  5537. bool Load(File, bool = false);
  5538. bool Load(VectorBuffer&, bool = false);
  5539. bool LoadXML(const XMLElement&, bool = false);
  5540. void MarkNetworkUpdate() const;
  5541. void Remove();
  5542. void RemoveInstanceDefault();
  5543. void ResetToDefault();
  5544. bool Save(File) const;
  5545. bool Save(VectorBuffer&) const;
  5546. bool SaveXML(XMLElement&) const;
  5547. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5548. bool SetAttribute(const String&, const Variant&);
  5549. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5550. void SetAttributeAnimationSpeed(const String&, float);
  5551. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5552. // Properties:
  5553. bool animationEnabled;
  5554. /* readonly */
  5555. Array<Variant> attributeDefaults;
  5556. /* readonly */
  5557. Array<AttributeInfo> attributeInfos;
  5558. Array<Variant> attributes;
  5559. /* readonly */
  5560. StringHash baseType;
  5561. /* readonly */
  5562. String category;
  5563. bool enabled;
  5564. /* readonly */
  5565. bool enabledEffective;
  5566. /* readonly */
  5567. uint id;
  5568. /* readonly */
  5569. Node node;
  5570. /* readonly */
  5571. uint numAttributes;
  5572. ObjectAnimation objectAnimation;
  5573. bool recursive;
  5574. /* readonly */
  5575. int refs;
  5576. bool temporary;
  5577. /* readonly */
  5578. StringHash type;
  5579. /* readonly */
  5580. String typeName;
  5581. /* readonly */
  5582. int weakRefs;
  5583. };
  5584. class NavigationMesh
  5585. {
  5586. // Methods:
  5587. void ApplyAttributes();
  5588. bool Build();
  5589. bool Build(const BoundingBox&);
  5590. void DrawDebugGeometry(DebugRenderer, bool);
  5591. void DrawDebugGeometry(bool);
  5592. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5593. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5594. Variant GetAttribute(const String&) const;
  5595. ValueAnimation GetAttributeAnimation(const String&) const;
  5596. float GetAttributeAnimationSpeed(const String&) const;
  5597. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5598. Variant GetAttributeDefault(const String&) const;
  5599. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5600. Vector3 GetRandomPoint();
  5601. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5602. bool Load(File, bool = false);
  5603. bool Load(VectorBuffer&, bool = false);
  5604. bool LoadXML(const XMLElement&, bool = false);
  5605. void MarkNetworkUpdate() const;
  5606. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), uint = 3);
  5607. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5608. void Remove();
  5609. void RemoveInstanceDefault();
  5610. void ResetToDefault();
  5611. bool Save(File) const;
  5612. bool Save(VectorBuffer&) const;
  5613. bool SaveXML(XMLElement&) const;
  5614. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5615. bool SetAttribute(const String&, const Variant&);
  5616. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5617. void SetAttributeAnimationSpeed(const String&, float);
  5618. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5619. // Properties:
  5620. float agentHeight;
  5621. float agentMaxClimb;
  5622. float agentMaxSlope;
  5623. float agentRadius;
  5624. bool animationEnabled;
  5625. /* readonly */
  5626. Array<Variant> attributeDefaults;
  5627. /* readonly */
  5628. Array<AttributeInfo> attributeInfos;
  5629. Array<Variant> attributes;
  5630. /* readonly */
  5631. StringHash baseType;
  5632. /* readonly */
  5633. BoundingBox boundingBox;
  5634. /* readonly */
  5635. String category;
  5636. float cellHeight;
  5637. float cellSize;
  5638. float detailSampleDistance;
  5639. float detailSampleMaxError;
  5640. float edgeMaxError;
  5641. float edgeMaxLength;
  5642. bool enabled;
  5643. /* readonly */
  5644. bool enabledEffective;
  5645. /* readonly */
  5646. uint id;
  5647. /* readonly */
  5648. bool initialized;
  5649. /* readonly */
  5650. Node node;
  5651. /* readonly */
  5652. uint numAttributes;
  5653. /* readonly */
  5654. IntVector2 numTiles;
  5655. ObjectAnimation objectAnimation;
  5656. Vector3 padding;
  5657. /* readonly */
  5658. int refs;
  5659. float regionMergeSize;
  5660. float regionMinSize;
  5661. bool temporary;
  5662. int tileSize;
  5663. /* readonly */
  5664. StringHash type;
  5665. /* readonly */
  5666. String typeName;
  5667. /* readonly */
  5668. int weakRefs;
  5669. /* readonly */
  5670. BoundingBox worldBoundingBox;
  5671. };
  5672. class Network
  5673. {
  5674. // Methods:
  5675. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  5676. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  5677. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  5678. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  5679. bool CheckRemoteEvent(const String&) const;
  5680. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  5681. void Disconnect(int = 0);
  5682. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  5683. void RegisterRemoteEvent(const String&) const;
  5684. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5685. void SendPackageToClients(Scene, PackageFile);
  5686. bool StartServer(uint16);
  5687. void StopServer();
  5688. void UnregisterAllRemoteEvents();
  5689. void UnregisterRemoteEvent(const String&) const;
  5690. // Properties:
  5691. /* readonly */
  5692. StringHash baseType;
  5693. /* readonly */
  5694. String category;
  5695. /* readonly */
  5696. Array<Connection> clientConnections;
  5697. String packageCacheDir;
  5698. /* readonly */
  5699. int refs;
  5700. /* readonly */
  5701. Connection serverConnection;
  5702. /* readonly */
  5703. bool serverRunning;
  5704. /* readonly */
  5705. StringHash type;
  5706. /* readonly */
  5707. String typeName;
  5708. int updateFps;
  5709. /* readonly */
  5710. int weakRefs;
  5711. };
  5712. class NetworkPriority
  5713. {
  5714. // Methods:
  5715. void ApplyAttributes();
  5716. void DrawDebugGeometry(DebugRenderer, bool);
  5717. Variant GetAttribute(const String&) const;
  5718. ValueAnimation GetAttributeAnimation(const String&) const;
  5719. float GetAttributeAnimationSpeed(const String&) const;
  5720. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5721. Variant GetAttributeDefault(const String&) const;
  5722. bool Load(File, bool = false);
  5723. bool Load(VectorBuffer&, bool = false);
  5724. bool LoadXML(const XMLElement&, bool = false);
  5725. void MarkNetworkUpdate() const;
  5726. void Remove();
  5727. void RemoveInstanceDefault();
  5728. void ResetToDefault();
  5729. bool Save(File) const;
  5730. bool Save(VectorBuffer&) const;
  5731. bool SaveXML(XMLElement&) const;
  5732. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5733. bool SetAttribute(const String&, const Variant&);
  5734. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5735. void SetAttributeAnimationSpeed(const String&, float);
  5736. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5737. // Properties:
  5738. bool alwaysUpdateOwner;
  5739. bool animationEnabled;
  5740. /* readonly */
  5741. Array<Variant> attributeDefaults;
  5742. /* readonly */
  5743. Array<AttributeInfo> attributeInfos;
  5744. Array<Variant> attributes;
  5745. float basePriority;
  5746. /* readonly */
  5747. StringHash baseType;
  5748. /* readonly */
  5749. String category;
  5750. float distanceFactor;
  5751. bool enabled;
  5752. /* readonly */
  5753. bool enabledEffective;
  5754. /* readonly */
  5755. uint id;
  5756. float minPriority;
  5757. /* readonly */
  5758. Node node;
  5759. /* readonly */
  5760. uint numAttributes;
  5761. ObjectAnimation objectAnimation;
  5762. /* readonly */
  5763. int refs;
  5764. bool temporary;
  5765. /* readonly */
  5766. StringHash type;
  5767. /* readonly */
  5768. String typeName;
  5769. /* readonly */
  5770. int weakRefs;
  5771. };
  5772. class Node
  5773. {
  5774. // Methods:
  5775. void AddChild(Node, uint = M_MAX_UNSIGNED);
  5776. void ApplyAttributes();
  5777. Node Clone(CreateMode = REPLICATED);
  5778. Component CloneComponent(Component, CreateMode, uint = 0);
  5779. Component CloneComponent(Component, uint = 0);
  5780. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  5781. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  5782. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  5783. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  5784. Variant GetAttribute(const String&) const;
  5785. ValueAnimation GetAttributeAnimation(const String&) const;
  5786. float GetAttributeAnimationSpeed(const String&) const;
  5787. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5788. Variant GetAttributeDefault(const String&) const;
  5789. Node GetChild(const String&, bool = false) const;
  5790. Array<Node> GetChildren(bool = false) const;
  5791. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  5792. Array<Node> GetChildrenWithScript(bool = false) const;
  5793. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  5794. Component GetComponent(const String&) const;
  5795. Array<Component> GetComponents() const;
  5796. Array<Component> GetComponents(const String&, bool = false) const;
  5797. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  5798. ScriptObject GetScriptObject() const;
  5799. ScriptObject GetScriptObject(const String&) const;
  5800. bool HasComponent(const String&) const;
  5801. bool Load(File, bool = false);
  5802. bool Load(VectorBuffer&, bool = false);
  5803. bool LoadXML(const XMLElement&, bool = false);
  5804. Vector3 LocalToWorld(const Vector3&) const;
  5805. Vector3 LocalToWorld(const Vector4&) const;
  5806. Vector2 LocalToWorld2D(const Vector2&) const;
  5807. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  5808. void MarkNetworkUpdate() const;
  5809. void Pitch(float, TransformSpace = TS_LOCAL);
  5810. void Remove();
  5811. void RemoveAllChildren();
  5812. void RemoveAllComponents();
  5813. void RemoveChild(Node);
  5814. void RemoveChildren(bool, bool, bool);
  5815. void RemoveComponent(Component);
  5816. void RemoveComponent(const String&);
  5817. void RemoveComponents(bool, bool);
  5818. void RemoveInstanceDefault();
  5819. void ResetDeepEnabled();
  5820. void ResetToDefault();
  5821. void Roll(float, TransformSpace = TS_LOCAL);
  5822. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  5823. void Rotate2D(float, TransformSpace = TS_LOCAL);
  5824. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  5825. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  5826. bool Save(File) const;
  5827. bool Save(VectorBuffer&) const;
  5828. bool SaveXML(File);
  5829. bool SaveXML(VectorBuffer&);
  5830. bool SaveXML(XMLElement&) const;
  5831. void Scale(const Vector3&);
  5832. void Scale(float);
  5833. void Scale2D(const Vector2&);
  5834. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5835. bool SetAttribute(const String&, const Variant&);
  5836. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5837. void SetAttributeAnimationSpeed(const String&, float);
  5838. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5839. void SetDeepEnabled(bool);
  5840. void SetEnabledRecursive(bool);
  5841. void SetPosition2D(float, float);
  5842. void SetScale(float);
  5843. void SetScale2D(float, float);
  5844. void SetTransform(const Vector3&, const Quaternion&);
  5845. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  5846. void SetTransform(const Vector3&, const Quaternion&, float);
  5847. void SetTransform2D(const Vector2&, float);
  5848. void SetTransform2D(const Vector2&, float, const Vector2&);
  5849. void SetTransform2D(const Vector2&, float, float);
  5850. void SetWorldTransform(const Vector3&, const Quaternion&);
  5851. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  5852. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  5853. void SetWorldTransform2D(const Vector2&, float);
  5854. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  5855. void SetWorldTransform2D(const Vector2&, float, float);
  5856. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  5857. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  5858. Vector3 WorldToLocal(const Vector3&) const;
  5859. Vector3 WorldToLocal(const Vector4&) const;
  5860. Vector2 WorldToLocal2D(const Vector2&) const;
  5861. void Yaw(float, TransformSpace = TS_LOCAL);
  5862. // Properties:
  5863. bool animationEnabled;
  5864. /* readonly */
  5865. Array<Variant> attributeDefaults;
  5866. /* readonly */
  5867. Array<AttributeInfo> attributeInfos;
  5868. Array<Variant> attributes;
  5869. /* readonly */
  5870. StringHash baseType;
  5871. /* readonly */
  5872. String category;
  5873. /* readonly */
  5874. Array<Node> children;
  5875. /* readonly */
  5876. Array<Component> components;
  5877. Vector3 direction;
  5878. bool enabled;
  5879. /* readonly */
  5880. bool enabledSelf;
  5881. /* readonly */
  5882. uint id;
  5883. String name;
  5884. /* readonly */
  5885. uint numAllChildren;
  5886. /* readonly */
  5887. uint numAttributes;
  5888. /* readonly */
  5889. uint numChildren;
  5890. /* readonly */
  5891. uint numComponents;
  5892. ObjectAnimation objectAnimation;
  5893. Connection owner;
  5894. Node parent;
  5895. Vector3 position;
  5896. Vector2 position2D;
  5897. /* readonly */
  5898. int refs;
  5899. /* readonly */
  5900. Vector3 right;
  5901. Quaternion rotation;
  5902. float rotation2D;
  5903. Vector3 scale;
  5904. Vector2 scale2D;
  5905. /* readonly */
  5906. Scene scene;
  5907. /* readonly */
  5908. ScriptObject scriptObject;
  5909. bool temporary;
  5910. /* readonly */
  5911. Matrix3x4 transform;
  5912. /* readonly */
  5913. StringHash type;
  5914. /* readonly */
  5915. String typeName;
  5916. /* readonly */
  5917. Vector3 up;
  5918. /* readonly */
  5919. VariantMap vars;
  5920. /* readonly */
  5921. int weakRefs;
  5922. Vector3 worldDirection;
  5923. Vector3 worldPosition;
  5924. Vector2 worldPosition2D;
  5925. /* readonly */
  5926. Vector3 worldRight;
  5927. Quaternion worldRotation;
  5928. float worldRotation2D;
  5929. Vector3 worldScale;
  5930. Vector2 worldScale2D;
  5931. /* readonly */
  5932. Matrix3x4 worldTransform;
  5933. /* readonly */
  5934. Vector3 worldUp;
  5935. };
  5936. class Object
  5937. {
  5938. // Methods:
  5939. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5940. // Properties:
  5941. /* readonly */
  5942. StringHash baseType;
  5943. /* readonly */
  5944. String category;
  5945. /* readonly */
  5946. int refs;
  5947. /* readonly */
  5948. StringHash type;
  5949. /* readonly */
  5950. String typeName;
  5951. /* readonly */
  5952. int weakRefs;
  5953. };
  5954. class ObjectAnimation
  5955. {
  5956. // Methods:
  5957. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5958. ValueAnimation GetAttributeAnimation(const String&) const;
  5959. float GetAttributeAnimationSpeed(const String&) const;
  5960. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5961. bool Load(File);
  5962. bool Load(VectorBuffer&);
  5963. void RemoveAttributeAnimation(ValueAnimation);
  5964. void RemoveAttributeAnimation(const String&);
  5965. bool Save(File) const;
  5966. bool Save(VectorBuffer&) const;
  5967. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5968. // Properties:
  5969. /* readonly */
  5970. Array<Variant> attributeAnimations;
  5971. /* readonly */
  5972. StringHash baseType;
  5973. /* readonly */
  5974. String category;
  5975. /* readonly */
  5976. uint memoryUse;
  5977. String name;
  5978. /* readonly */
  5979. int refs;
  5980. /* readonly */
  5981. Array<Variant> speeds;
  5982. /* readonly */
  5983. StringHash type;
  5984. /* readonly */
  5985. String typeName;
  5986. /* readonly */
  5987. uint useTimer;
  5988. /* readonly */
  5989. int weakRefs;
  5990. /* readonly */
  5991. Array<Variant> wrapModes;
  5992. };
  5993. class Octree
  5994. {
  5995. // Methods:
  5996. void AddManualDrawable(Drawable);
  5997. void ApplyAttributes();
  5998. void DrawDebugGeometry(DebugRenderer, bool);
  5999. void DrawDebugGeometry(bool) const;
  6000. Variant GetAttribute(const String&) const;
  6001. ValueAnimation GetAttributeAnimation(const String&) const;
  6002. float GetAttributeAnimationSpeed(const String&) const;
  6003. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6004. Variant GetAttributeDefault(const String&) const;
  6005. Array<Node> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6006. Array<Node> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6007. Array<Node> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6008. Array<Node> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6009. bool Load(File, bool = false);
  6010. bool Load(VectorBuffer&, bool = false);
  6011. bool LoadXML(const XMLElement&, bool = false);
  6012. void MarkNetworkUpdate() const;
  6013. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6014. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6015. void Remove();
  6016. void RemoveInstanceDefault();
  6017. void RemoveManualDrawable(Drawable);
  6018. void ResetToDefault();
  6019. bool Save(File) const;
  6020. bool Save(VectorBuffer&) const;
  6021. bool SaveXML(XMLElement&) const;
  6022. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6023. bool SetAttribute(const String&, const Variant&);
  6024. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6025. void SetAttributeAnimationSpeed(const String&, float);
  6026. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6027. void SetSize(const BoundingBox&, uint);
  6028. // Properties:
  6029. bool animationEnabled;
  6030. /* readonly */
  6031. Array<Variant> attributeDefaults;
  6032. /* readonly */
  6033. Array<AttributeInfo> attributeInfos;
  6034. Array<Variant> attributes;
  6035. /* readonly */
  6036. StringHash baseType;
  6037. /* readonly */
  6038. String category;
  6039. bool enabled;
  6040. /* readonly */
  6041. bool enabledEffective;
  6042. /* readonly */
  6043. uint id;
  6044. /* readonly */
  6045. Node node;
  6046. /* readonly */
  6047. uint numAttributes;
  6048. /* readonly */
  6049. uint numLevels;
  6050. ObjectAnimation objectAnimation;
  6051. /* readonly */
  6052. int refs;
  6053. bool temporary;
  6054. /* readonly */
  6055. StringHash type;
  6056. /* readonly */
  6057. String typeName;
  6058. /* readonly */
  6059. int weakRefs;
  6060. /* readonly */
  6061. BoundingBox worldBoundingBox;
  6062. };
  6063. class OffMeshConnection
  6064. {
  6065. // Methods:
  6066. void ApplyAttributes();
  6067. void DrawDebugGeometry(DebugRenderer, bool);
  6068. Variant GetAttribute(const String&) const;
  6069. ValueAnimation GetAttributeAnimation(const String&) const;
  6070. float GetAttributeAnimationSpeed(const String&) const;
  6071. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6072. Variant GetAttributeDefault(const String&) const;
  6073. bool Load(File, bool = false);
  6074. bool Load(VectorBuffer&, bool = false);
  6075. bool LoadXML(const XMLElement&, bool = false);
  6076. void MarkNetworkUpdate() const;
  6077. void Remove();
  6078. void RemoveInstanceDefault();
  6079. void ResetToDefault();
  6080. bool Save(File) const;
  6081. bool Save(VectorBuffer&) const;
  6082. bool SaveXML(XMLElement&) const;
  6083. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6084. bool SetAttribute(const String&, const Variant&);
  6085. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6086. void SetAttributeAnimationSpeed(const String&, float);
  6087. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6088. // Properties:
  6089. bool animationEnabled;
  6090. /* readonly */
  6091. Array<Variant> attributeDefaults;
  6092. /* readonly */
  6093. Array<AttributeInfo> attributeInfos;
  6094. Array<Variant> attributes;
  6095. /* readonly */
  6096. StringHash baseType;
  6097. bool bidirectional;
  6098. /* readonly */
  6099. String category;
  6100. bool enabled;
  6101. /* readonly */
  6102. bool enabledEffective;
  6103. Node endPoint;
  6104. /* readonly */
  6105. uint id;
  6106. /* readonly */
  6107. Node node;
  6108. /* readonly */
  6109. uint numAttributes;
  6110. ObjectAnimation objectAnimation;
  6111. float radius;
  6112. /* readonly */
  6113. int refs;
  6114. bool temporary;
  6115. /* readonly */
  6116. StringHash type;
  6117. /* readonly */
  6118. String typeName;
  6119. /* readonly */
  6120. int weakRefs;
  6121. };
  6122. class PackageFile
  6123. {
  6124. // Methods:
  6125. bool Exists(const String&) const;
  6126. Array<String> GetEntryNames() const;
  6127. bool Open(const String&, uint = 0) const;
  6128. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6129. bool compressed() const;
  6130. // Properties:
  6131. /* readonly */
  6132. StringHash baseType;
  6133. /* readonly */
  6134. String category;
  6135. /* readonly */
  6136. uint checksum;
  6137. /* readonly */
  6138. String name;
  6139. /* readonly */
  6140. uint numFiles;
  6141. /* readonly */
  6142. int refs;
  6143. /* readonly */
  6144. uint totalSize;
  6145. /* readonly */
  6146. StringHash type;
  6147. /* readonly */
  6148. String typeName;
  6149. /* readonly */
  6150. int weakRefs;
  6151. };
  6152. class ParticleEffect
  6153. {
  6154. // Methods:
  6155. void AddColorFrame(ColorFrame);
  6156. void AddColorTime(Color&, float);
  6157. void AddTextureFrame(TextureFrame);
  6158. void AddTextureTime(Rect&, float);
  6159. ColorFrame GetColorFrame(uint) const;
  6160. TextureFrame GetTextureFrame(uint) const;
  6161. bool Load(File);
  6162. bool Load(VectorBuffer&);
  6163. bool Load(const XMLElement&);
  6164. void RemoveColorFrame(uint);
  6165. void RemoveTextureFrame(uint);
  6166. bool Save(File) const;
  6167. bool Save(VectorBuffer&) const;
  6168. bool Save(XMLElement&) const;
  6169. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6170. void SetColorFrame(uint, ColorFrame);
  6171. void SetTextureFrame(uint, TextureFrame);
  6172. void SortColorFrames();
  6173. void SortTextureFrames();
  6174. // Properties:
  6175. float activeTime;
  6176. float animationLodBias;
  6177. /* readonly */
  6178. StringHash baseType;
  6179. /* readonly */
  6180. String category;
  6181. Vector3 constantForce;
  6182. float dampingForce;
  6183. Vector3 emitterSize;
  6184. EmitterType emitterType;
  6185. float inactiveTime;
  6186. Material material;
  6187. Vector3 maxDirection;
  6188. float maxEmissionRate;
  6189. Vector2 maxParticleSize;
  6190. float maxRotation;
  6191. float maxRotationSpeed;
  6192. float maxTimeToLive;
  6193. float maxVelocity;
  6194. /* readonly */
  6195. uint memoryUse;
  6196. Vector3 minDirection;
  6197. float minEmissionRate;
  6198. Vector2 minParticleSize;
  6199. float minRotation;
  6200. float minRotationSpeed;
  6201. float minTimeToLive;
  6202. float minVelocity;
  6203. String name;
  6204. uint numColorFrames;
  6205. uint numParticles;
  6206. uint numTextureFrames;
  6207. /* readonly */
  6208. int refs;
  6209. bool relative;
  6210. bool scaled;
  6211. float sizeAdd;
  6212. float sizeMul;
  6213. bool sorted;
  6214. /* readonly */
  6215. StringHash type;
  6216. /* readonly */
  6217. String typeName;
  6218. bool updateInvisible;
  6219. /* readonly */
  6220. uint useTimer;
  6221. /* readonly */
  6222. int weakRefs;
  6223. };
  6224. class ParticleEffect2D
  6225. {
  6226. // Methods:
  6227. bool Load(File);
  6228. bool Load(VectorBuffer&);
  6229. bool Save(File) const;
  6230. bool Save(VectorBuffer&) const;
  6231. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6232. // Properties:
  6233. /* readonly */
  6234. StringHash baseType;
  6235. /* readonly */
  6236. String category;
  6237. /* readonly */
  6238. uint memoryUse;
  6239. String name;
  6240. /* readonly */
  6241. int refs;
  6242. /* readonly */
  6243. StringHash type;
  6244. /* readonly */
  6245. String typeName;
  6246. /* readonly */
  6247. uint useTimer;
  6248. /* readonly */
  6249. int weakRefs;
  6250. };
  6251. class ParticleEmitter
  6252. {
  6253. // Methods:
  6254. void ApplyAttributes();
  6255. void ApplyEffect();
  6256. void Commit();
  6257. void DrawDebugGeometry(DebugRenderer, bool);
  6258. Variant GetAttribute(const String&) const;
  6259. ValueAnimation GetAttributeAnimation(const String&) const;
  6260. float GetAttributeAnimationSpeed(const String&) const;
  6261. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6262. Variant GetAttributeDefault(const String&) const;
  6263. bool IsInView(Camera) const;
  6264. bool Load(File, bool = false);
  6265. bool Load(VectorBuffer&, bool = false);
  6266. bool LoadXML(const XMLElement&, bool = false);
  6267. void MarkNetworkUpdate() const;
  6268. void Remove();
  6269. void RemoveAllParticles();
  6270. void RemoveInstanceDefault();
  6271. void Reset();
  6272. void ResetEmissionTimer();
  6273. void ResetToDefault();
  6274. bool Save(File) const;
  6275. bool Save(VectorBuffer&) const;
  6276. bool SaveXML(XMLElement&) const;
  6277. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6278. bool SetAttribute(const String&, const Variant&);
  6279. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6280. void SetAttributeAnimationSpeed(const String&, float);
  6281. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6282. // Properties:
  6283. bool animationEnabled;
  6284. float animationLodBias;
  6285. /* readonly */
  6286. Array<Variant> attributeDefaults;
  6287. /* readonly */
  6288. Array<AttributeInfo> attributeInfos;
  6289. Array<Variant> attributes;
  6290. /* readonly */
  6291. StringHash baseType;
  6292. /* readonly */
  6293. Array<Billboard> billboards;
  6294. /* readonly */
  6295. BoundingBox boundingBox;
  6296. bool castShadows;
  6297. /* readonly */
  6298. String category;
  6299. float drawDistance;
  6300. ParticleEffect effect;
  6301. bool emitting;
  6302. bool enabled;
  6303. /* readonly */
  6304. bool enabledEffective;
  6305. FaceCameraMode faceCameraMode;
  6306. /* readonly */
  6307. uint id;
  6308. /* readonly */
  6309. bool inView;
  6310. uint lightMask;
  6311. float lodBias;
  6312. Material material;
  6313. uint maxLights;
  6314. /* readonly */
  6315. Node node;
  6316. /* readonly */
  6317. uint numAttributes;
  6318. uint numBillboards;
  6319. uint numParticles;
  6320. ObjectAnimation objectAnimation;
  6321. bool occludee;
  6322. bool occluder;
  6323. /* readonly */
  6324. int refs;
  6325. bool relative;
  6326. bool scaled;
  6327. bool serializeParticles;
  6328. float shadowDistance;
  6329. uint shadowMask;
  6330. bool sorted;
  6331. bool temporary;
  6332. /* readonly */
  6333. StringHash type;
  6334. /* readonly */
  6335. String typeName;
  6336. uint viewMask;
  6337. /* readonly */
  6338. int weakRefs;
  6339. /* readonly */
  6340. BoundingBox worldBoundingBox;
  6341. /* readonly */
  6342. Zone zone;
  6343. uint zoneMask;
  6344. };
  6345. class ParticleEmitter2D
  6346. {
  6347. // Methods:
  6348. void ApplyAttributes();
  6349. void DrawDebugGeometry(DebugRenderer, bool);
  6350. Variant GetAttribute(const String&) const;
  6351. ValueAnimation GetAttributeAnimation(const String&) const;
  6352. float GetAttributeAnimationSpeed(const String&) const;
  6353. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6354. Variant GetAttributeDefault(const String&) const;
  6355. bool IsInView(Camera) const;
  6356. bool Load(File, bool = false);
  6357. bool Load(VectorBuffer&, bool = false);
  6358. bool LoadXML(const XMLElement&, bool = false);
  6359. void MarkNetworkUpdate() const;
  6360. void Remove();
  6361. void RemoveInstanceDefault();
  6362. void ResetToDefault();
  6363. bool Save(File) const;
  6364. bool Save(VectorBuffer&) const;
  6365. bool SaveXML(XMLElement&) const;
  6366. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6367. bool SetAttribute(const String&, const Variant&);
  6368. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6369. void SetAttributeAnimationSpeed(const String&, float);
  6370. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6371. // Properties:
  6372. bool animationEnabled;
  6373. /* readonly */
  6374. Array<Variant> attributeDefaults;
  6375. /* readonly */
  6376. Array<AttributeInfo> attributeInfos;
  6377. Array<Variant> attributes;
  6378. /* readonly */
  6379. StringHash baseType;
  6380. BlendMode blendMode;
  6381. /* readonly */
  6382. BoundingBox boundingBox;
  6383. bool castShadows;
  6384. /* readonly */
  6385. String category;
  6386. float drawDistance;
  6387. ParticleEffect2D effect;
  6388. bool enabled;
  6389. /* readonly */
  6390. bool enabledEffective;
  6391. /* readonly */
  6392. uint id;
  6393. /* readonly */
  6394. bool inView;
  6395. int layer;
  6396. uint lightMask;
  6397. float lodBias;
  6398. uint maxLights;
  6399. /* readonly */
  6400. Node node;
  6401. /* readonly */
  6402. uint numAttributes;
  6403. ObjectAnimation objectAnimation;
  6404. bool occludee;
  6405. bool occluder;
  6406. int orderInLayer;
  6407. /* readonly */
  6408. int refs;
  6409. float shadowDistance;
  6410. uint shadowMask;
  6411. Sprite2D sprite;
  6412. bool temporary;
  6413. Texture2D texture;
  6414. /* readonly */
  6415. StringHash type;
  6416. /* readonly */
  6417. String typeName;
  6418. uint viewMask;
  6419. /* readonly */
  6420. int weakRefs;
  6421. /* readonly */
  6422. BoundingBox worldBoundingBox;
  6423. uint zoneMask;
  6424. };
  6425. class Pass
  6426. {
  6427. // Properties:
  6428. bool alphaMask;
  6429. BlendMode blendMode;
  6430. CompareMode depthTestMode;
  6431. bool depthWrite;
  6432. bool desktop;
  6433. PassLightingMode lightingMode;
  6434. String pixelShader;
  6435. String pixelShaderDefines;
  6436. /* readonly */
  6437. int refs;
  6438. bool sm3;
  6439. String vertexShader;
  6440. String vertexShaderDefines;
  6441. /* readonly */
  6442. int weakRefs;
  6443. };
  6444. class PhysicsRaycastResult
  6445. {
  6446. // Properties:
  6447. /* readonly */
  6448. RigidBody body;
  6449. float distance;
  6450. Vector3 normal;
  6451. Vector3 position;
  6452. };
  6453. class PhysicsRaycastResult2D
  6454. {
  6455. // Properties:
  6456. /* readonly */
  6457. RigidBody2D body;
  6458. float distance;
  6459. Vector2 normal;
  6460. Vector2 position;
  6461. };
  6462. class PhysicsWorld
  6463. {
  6464. // Methods:
  6465. void ApplyAttributes();
  6466. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  6467. void DrawDebugGeometry(DebugRenderer, bool);
  6468. void DrawDebugGeometry(bool);
  6469. Variant GetAttribute(const String&) const;
  6470. ValueAnimation GetAttributeAnimation(const String&) const;
  6471. float GetAttributeAnimationSpeed(const String&) const;
  6472. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6473. Variant GetAttributeDefault(const String&) const;
  6474. Array<RigidBody> GetRigidBodies(RigidBody);
  6475. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  6476. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  6477. bool Load(File, bool = false);
  6478. bool Load(VectorBuffer&, bool = false);
  6479. bool LoadXML(const XMLElement&, bool = false);
  6480. void MarkNetworkUpdate() const;
  6481. Array<PhysicsRaycastResult> Raycast(const Ray&, float = M_INFINITY, uint = 0xffff);
  6482. PhysicsRaycastResult RaycastSingle(const Ray&, float = M_INFINITY, uint = 0xffff);
  6483. void Remove();
  6484. void RemoveCachedGeometry(Model);
  6485. void RemoveInstanceDefault();
  6486. void ResetToDefault();
  6487. bool Save(File) const;
  6488. bool Save(VectorBuffer&) const;
  6489. bool SaveXML(XMLElement&) const;
  6490. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6491. bool SetAttribute(const String&, const Variant&);
  6492. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6493. void SetAttributeAnimationSpeed(const String&, float);
  6494. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6495. PhysicsRaycastResult SphereCast(const Ray&, float, float = M_INFINITY, uint = 0xffff);
  6496. void Update(float);
  6497. void UpdateCollisions();
  6498. // Properties:
  6499. bool animationEnabled;
  6500. /* readonly */
  6501. Array<Variant> attributeDefaults;
  6502. /* readonly */
  6503. Array<AttributeInfo> attributeInfos;
  6504. Array<Variant> attributes;
  6505. /* readonly */
  6506. StringHash baseType;
  6507. /* readonly */
  6508. String category;
  6509. bool enabled;
  6510. /* readonly */
  6511. bool enabledEffective;
  6512. int fps;
  6513. Vector3 gravity;
  6514. /* readonly */
  6515. uint id;
  6516. bool internalEdge;
  6517. bool interpolation;
  6518. int maxSubSteps;
  6519. /* readonly */
  6520. Node node;
  6521. /* readonly */
  6522. uint numAttributes;
  6523. int numIterations;
  6524. ObjectAnimation objectAnimation;
  6525. /* readonly */
  6526. int refs;
  6527. bool splitImpulse;
  6528. bool temporary;
  6529. /* readonly */
  6530. StringHash type;
  6531. /* readonly */
  6532. String typeName;
  6533. /* readonly */
  6534. int weakRefs;
  6535. };
  6536. class PhysicsWorld2D
  6537. {
  6538. // Methods:
  6539. void ApplyAttributes();
  6540. void DrawDebugGeometry() const;
  6541. void DrawDebugGeometry(DebugRenderer, bool);
  6542. Variant GetAttribute(const String&) const;
  6543. ValueAnimation GetAttributeAnimation(const String&) const;
  6544. float GetAttributeAnimationSpeed(const String&) const;
  6545. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6546. Variant GetAttributeDefault(const String&) const;
  6547. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  6548. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  6549. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  6550. bool Load(File, bool = false);
  6551. bool Load(VectorBuffer&, bool = false);
  6552. bool LoadXML(const XMLElement&, bool = false);
  6553. void MarkNetworkUpdate() const;
  6554. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  6555. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  6556. void Remove();
  6557. void RemoveInstanceDefault();
  6558. void ResetToDefault();
  6559. bool Save(File) const;
  6560. bool Save(VectorBuffer&) const;
  6561. bool SaveXML(XMLElement&) const;
  6562. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6563. bool SetAttribute(const String&, const Variant&);
  6564. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6565. void SetAttributeAnimationSpeed(const String&, float);
  6566. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6567. // Properties:
  6568. bool allowSleeping;
  6569. bool animationEnabled;
  6570. /* readonly */
  6571. Array<Variant> attributeDefaults;
  6572. /* readonly */
  6573. Array<AttributeInfo> attributeInfos;
  6574. Array<Variant> attributes;
  6575. bool autoClearForces;
  6576. /* readonly */
  6577. StringHash baseType;
  6578. /* readonly */
  6579. String category;
  6580. bool continuousPhysics;
  6581. bool drawAabb;
  6582. bool drawCenterOfMass;
  6583. bool drawJoint;
  6584. bool drawPair;
  6585. bool drawShape;
  6586. bool enabled;
  6587. /* readonly */
  6588. bool enabledEffective;
  6589. Vector2 gravity;
  6590. /* readonly */
  6591. uint id;
  6592. /* readonly */
  6593. Node node;
  6594. /* readonly */
  6595. uint numAttributes;
  6596. ObjectAnimation objectAnimation;
  6597. uint positionIterations;
  6598. /* readonly */
  6599. int refs;
  6600. bool subStepping;
  6601. bool temporary;
  6602. /* readonly */
  6603. StringHash type;
  6604. /* readonly */
  6605. String typeName;
  6606. uint velocityIterations;
  6607. bool warmStarting;
  6608. /* readonly */
  6609. int weakRefs;
  6610. };
  6611. class Plane
  6612. {
  6613. // Methods:
  6614. void Define(const Vector3&, const Vector3&);
  6615. void Define(const Vector3&, const Vector3&, const Vector3&);
  6616. void Define(const Vector4&);
  6617. float Distance(const Vector3&) const;
  6618. Vector3 Project(const Vector3&) const;
  6619. Vector3 Reflect(const Vector3&) const;
  6620. Vector4 ToVector4() const;
  6621. void Transform(const Matrix3&);
  6622. void Transform(const Matrix3x4&);
  6623. void Transform(const Matrix4&);
  6624. Plane Transformed(const Matrix3&) const;
  6625. Plane Transformed(const Matrix3x4&) const;
  6626. Plane Transformed(const Matrix4&) const;
  6627. // Properties:
  6628. Vector3 absNormal;
  6629. float d;
  6630. Vector3 normal;
  6631. /* readonly */
  6632. Matrix3x4 reflectionMatrix;
  6633. };
  6634. class Polyhedron
  6635. {
  6636. // Methods:
  6637. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  6638. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  6639. void AddFace(const Array<Vector3>);
  6640. void Clear();
  6641. void Clip(const BoundingBox&);
  6642. void Clip(const Frustum&);
  6643. void Define(const BoundingBox&);
  6644. void Define(const Frustum&);
  6645. void Transform(const Matrix3&);
  6646. void Transform(const Matrix3x4&);
  6647. Polyhedron Transformed(const Matrix3&) const;
  6648. Polyhedron Transformed(const Matrix3x4&) const;
  6649. // Properties:
  6650. /* readonly */
  6651. Array<Array<Vector3>> face;
  6652. /* readonly */
  6653. uint numFaces;
  6654. };
  6655. class PropertySet2D
  6656. {
  6657. // Methods:
  6658. bool HasProperty(const String&) const;
  6659. const String& GetProperty(const String&) const;
  6660. // Properties:
  6661. /* readonly */
  6662. int refs;
  6663. /* readonly */
  6664. int weakRefs;
  6665. };
  6666. class Quaternion
  6667. {
  6668. // Methods:
  6669. float DotProduct(const Quaternion&) const;
  6670. bool Equals(const Quaternion&) const;
  6671. void FromAngleAxis(float, const Vector3&);
  6672. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  6673. void FromEulerAngles(float, float, float);
  6674. bool FromLookRotation(const Vector3&, const Vector3&);
  6675. void FromRotationTo(const Vector3&, const Vector3&);
  6676. Quaternion Inverse() const;
  6677. bool IsNaN() const;
  6678. Quaternion Nlerp(Quaternion, float, bool) const;
  6679. void Normalize();
  6680. Quaternion Normalized() const;
  6681. Quaternion Slerp(Quaternion, float) const;
  6682. String ToString() const;
  6683. // Properties:
  6684. /* readonly */
  6685. Vector3 eulerAngles;
  6686. /* readonly */
  6687. float pitch;
  6688. /* readonly */
  6689. float roll;
  6690. float w;
  6691. float x;
  6692. float y;
  6693. /* readonly */
  6694. float yaw;
  6695. float z;
  6696. };
  6697. class Ray
  6698. {
  6699. // Methods:
  6700. Vector3 ClosestPoint(const Ray&) const;
  6701. void Define(const Vector3&, const Vector3&);
  6702. float Distance(const Vector3&) const;
  6703. float HitDistance(const BoundingBox&) const;
  6704. float HitDistance(const Frustum&, bool = true) const;
  6705. float HitDistance(const Plane&) const;
  6706. float HitDistance(const Sphere&) const;
  6707. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  6708. Vector3 Project(const Vector3&) const;
  6709. Ray Transformed(const Matrix3x4&) const;
  6710. // Properties:
  6711. Vector3 direction;
  6712. Vector3 origin;
  6713. };
  6714. class RayQueryResult
  6715. {
  6716. // Properties:
  6717. float distance;
  6718. /* readonly */
  6719. Drawable drawable;
  6720. /* readonly */
  6721. Node node;
  6722. Vector3 normal;
  6723. Vector3 position;
  6724. uint subObject;
  6725. };
  6726. class Rect
  6727. {
  6728. // Methods:
  6729. void Clear();
  6730. void Clip(const Rect&);
  6731. void Define(const Vector2&);
  6732. void Define(const Vector2&, const Vector2&);
  6733. bool Equals(const Rect&) const;
  6734. Intersection IsInside(const Vector2&) const;
  6735. void Merge(const Rect&);
  6736. void Merge(const Vector2&);
  6737. Vector4 ToVector4() const;
  6738. // Properties:
  6739. float bottom;
  6740. /* readonly */
  6741. Vector2 center;
  6742. bool defined;
  6743. /* readonly */
  6744. Vector2 halfSize;
  6745. float left;
  6746. Vector2 max;
  6747. Vector2 min;
  6748. float right;
  6749. /* readonly */
  6750. Vector2 size;
  6751. float top;
  6752. };
  6753. class RefCounted
  6754. {
  6755. // Properties:
  6756. /* readonly */
  6757. int refs;
  6758. /* readonly */
  6759. int weakRefs;
  6760. };
  6761. class RenderPath
  6762. {
  6763. // Methods:
  6764. void AddCommand(const RenderPathCommand&);
  6765. void AddRenderTarget(const RenderTargetInfo&);
  6766. bool Append(XMLFile);
  6767. RenderPath Clone();
  6768. void InsertCommand(uint, const RenderPathCommand&);
  6769. bool Load(XMLFile);
  6770. void RemoveCommand(uint);
  6771. void RemoveCommands(const String&);
  6772. void RemoveRenderTarget(const String&);
  6773. void RemoveRenderTarget(uint);
  6774. void RemoveRenderTargts(const String&);
  6775. void SetEnabled(const String&, bool);
  6776. void ToggleEnabled(const String&);
  6777. // Properties:
  6778. Array<RenderPathCommand> commands;
  6779. /* readonly */
  6780. uint numCommands;
  6781. /* readonly */
  6782. uint numRenderTargets;
  6783. /* readonly */
  6784. int refs;
  6785. Array<RenderTargetInfo> renderTargets;
  6786. Array<Variant> shaderParameters;
  6787. /* readonly */
  6788. int weakRefs;
  6789. };
  6790. class RenderPathCommand
  6791. {
  6792. // Methods:
  6793. void RemoveShaderParameter(const String&);
  6794. // Properties:
  6795. Color clearColor;
  6796. float clearDepth;
  6797. uint clearFlags;
  6798. uint clearStencil;
  6799. String depthStencilName;
  6800. bool enabled;
  6801. bool markToStencil;
  6802. String metadata;
  6803. uint numOutputs;
  6804. Array<String> outputNames;
  6805. String pass;
  6806. String pixelShaderDefines;
  6807. String pixelShaderName;
  6808. Array<Variant> shaderParameters;
  6809. RenderCommandSortMode sortMode;
  6810. String tag;
  6811. Array<String> textureNames;
  6812. RenderCommandType type;
  6813. bool useFogColor;
  6814. bool useLitBase;
  6815. bool vertexLights;
  6816. String vertexShaderDefines;
  6817. String vertexShaderName;
  6818. };
  6819. class RenderSurface
  6820. {
  6821. // Methods:
  6822. void QueueUpdate();
  6823. // Properties:
  6824. /* readonly */
  6825. int height;
  6826. RenderSurface linkedDepthStencil;
  6827. RenderSurface linkedRenderTarget;
  6828. uint numViewports;
  6829. /* readonly */
  6830. Texture parentTexture;
  6831. RenderSurfaceUpdateMode updateMode;
  6832. /* readonly */
  6833. TextureUsage usage;
  6834. Array<Viewport> viewports;
  6835. /* readonly */
  6836. int width;
  6837. };
  6838. class RenderTargetInfo
  6839. {
  6840. // Properties:
  6841. bool enabled;
  6842. bool filtered;
  6843. uint format;
  6844. String name;
  6845. bool persistent;
  6846. bool sRGB;
  6847. Vector2 size;
  6848. RenderTargetSizeMode sizeMode;
  6849. String tag;
  6850. };
  6851. class Renderer
  6852. {
  6853. // Methods:
  6854. void DrawDebugGeometry(bool) const;
  6855. void ReloadShaders() const;
  6856. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6857. void SetDefaultRenderPath(XMLFile);
  6858. // Properties:
  6859. /* readonly */
  6860. StringHash baseType;
  6861. /* readonly */
  6862. String category;
  6863. /* readonly */
  6864. Material defaultLightRamp;
  6865. /* readonly */
  6866. Material defaultLightSpot;
  6867. /* readonly */
  6868. Material defaultMaterial;
  6869. RenderPath defaultRenderPath;
  6870. /* readonly */
  6871. Zone defaultZone;
  6872. bool drawShadows;
  6873. bool dynamicInstancing;
  6874. bool hdrRendering;
  6875. int materialQuality;
  6876. int maxInstanceTriangles;
  6877. int maxOccluderTriangles;
  6878. int maxShadowMaps;
  6879. int maxSortedInstances;
  6880. int minInstances;
  6881. float mobileShadowBiasAdd;
  6882. float mobileShadowBiasMul;
  6883. /* readonly */
  6884. uint numBatches;
  6885. /* readonly */
  6886. Array<uint> numGeometries;
  6887. /* readonly */
  6888. Array<uint> numLights;
  6889. /* readonly */
  6890. Array<uint> numOccluders;
  6891. /* readonly */
  6892. uint numPrimitives;
  6893. /* readonly */
  6894. Array<uint> numShadowMaps;
  6895. uint numViewports;
  6896. /* readonly */
  6897. uint numViews;
  6898. float occluderSizeThreshold;
  6899. int occlusionBufferSize;
  6900. /* readonly */
  6901. int refs;
  6902. bool reuseShadowMaps;
  6903. int shadowMapSize;
  6904. int shadowQuality;
  6905. bool specularLighting;
  6906. int textureAnisotropy;
  6907. TextureFilterMode textureFilterMode;
  6908. int textureQuality;
  6909. /* readonly */
  6910. StringHash type;
  6911. /* readonly */
  6912. String typeName;
  6913. Array<Viewport> viewports;
  6914. /* readonly */
  6915. int weakRefs;
  6916. };
  6917. class Resource
  6918. {
  6919. // Methods:
  6920. bool Load(File);
  6921. bool Load(VectorBuffer&);
  6922. bool Save(File) const;
  6923. bool Save(VectorBuffer&) const;
  6924. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6925. // Properties:
  6926. /* readonly */
  6927. StringHash baseType;
  6928. /* readonly */
  6929. String category;
  6930. /* readonly */
  6931. uint memoryUse;
  6932. String name;
  6933. /* readonly */
  6934. int refs;
  6935. /* readonly */
  6936. StringHash type;
  6937. /* readonly */
  6938. String typeName;
  6939. /* readonly */
  6940. uint useTimer;
  6941. /* readonly */
  6942. int weakRefs;
  6943. };
  6944. class ResourceCache
  6945. {
  6946. // Methods:
  6947. bool AddManualResource(Resource);
  6948. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  6949. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  6950. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  6951. bool BackgroundLoadResource(const String&, const String&, bool = true);
  6952. bool Exists(const String&) const;
  6953. File GetFile(const String&);
  6954. String GetPreferredResourceDir(const String&) const;
  6955. Resource GetResource(StringHash, const String&, bool = true);
  6956. Resource GetResource(const String&, const String&, bool = true);
  6957. String GetResourceFileName(const String&) const;
  6958. void ReleaseAllResources(bool = false);
  6959. void ReleaseResource(const String&, const String&, bool = false);
  6960. void ReleaseResources(StringHash, bool = false);
  6961. void ReleaseResources(const String&, bool = false);
  6962. void ReleaseResources(const String&, const String&, bool = false);
  6963. bool ReloadResource(Resource);
  6964. void ReloadResourceWithDependencies(const String&);
  6965. void RemovePackageFile(PackageFile, bool = true, bool = false);
  6966. void RemovePackageFile(const String&, bool = true, bool = false);
  6967. void RemoveResourceDir(const String&);
  6968. String SanitateResourceDirName(const String&) const;
  6969. String SanitateResourceName(const String&) const;
  6970. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6971. // Properties:
  6972. bool autoReloadResources;
  6973. /* readonly */
  6974. StringHash baseType;
  6975. /* readonly */
  6976. String category;
  6977. int finishBackgroundResourcesMs;
  6978. Array<uint> memoryBudget;
  6979. /* readonly */
  6980. Array<uint> memoryUse;
  6981. /* readonly */
  6982. uint numBackgroundLoadResources;
  6983. /* readonly */
  6984. Array<PackageFile> packageFiles;
  6985. /* readonly */
  6986. int refs;
  6987. /* readonly */
  6988. Array<String> resourceDirs;
  6989. bool returnFailedResources;
  6990. /* readonly */
  6991. bool seachPackagesFirst;
  6992. /* writeonly */
  6993. bool searchPackagesFirst;
  6994. /* readonly */
  6995. uint totalMemoryUse;
  6996. /* readonly */
  6997. StringHash type;
  6998. /* readonly */
  6999. String typeName;
  7000. /* readonly */
  7001. int weakRefs;
  7002. };
  7003. class ResourceRef
  7004. {
  7005. // Properties:
  7006. String name;
  7007. StringHash type;
  7008. };
  7009. class ResourceRefList
  7010. {
  7011. // Methods:
  7012. void Resize(uint);
  7013. // Properties:
  7014. /* readonly */
  7015. bool empty;
  7016. /* readonly */
  7017. uint length;
  7018. Array<String> names;
  7019. StringHash type;
  7020. };
  7021. class RigidBody
  7022. {
  7023. // Methods:
  7024. void Activate();
  7025. void ApplyAttributes();
  7026. void ApplyForce(const Vector3&);
  7027. void ApplyForce(const Vector3&, const Vector3&);
  7028. void ApplyImpulse(const Vector3&);
  7029. void ApplyImpulse(const Vector3&, const Vector3&);
  7030. void ApplyTorque(const Vector3&);
  7031. void ApplyTorqueImpulse(const Vector3&);
  7032. void DisableMassUpdate();
  7033. void DrawDebugGeometry(DebugRenderer, bool);
  7034. void EnableMassUpdate();
  7035. Variant GetAttribute(const String&) const;
  7036. ValueAnimation GetAttributeAnimation(const String&) const;
  7037. float GetAttributeAnimationSpeed(const String&) const;
  7038. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7039. Variant GetAttributeDefault(const String&) const;
  7040. Vector3 GetVelocityAtPoint(const Vector3&) const;
  7041. bool Load(File, bool = false);
  7042. bool Load(VectorBuffer&, bool = false);
  7043. bool LoadXML(const XMLElement&, bool = false);
  7044. void MarkNetworkUpdate() const;
  7045. void ReAddBodyToWorld();
  7046. void Remove();
  7047. void RemoveInstanceDefault();
  7048. void ResetForces();
  7049. void ResetToDefault();
  7050. bool Save(File) const;
  7051. bool Save(VectorBuffer&) const;
  7052. bool SaveXML(XMLElement&) const;
  7053. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7054. bool SetAttribute(const String&, const Variant&);
  7055. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7056. void SetAttributeAnimationSpeed(const String&, float);
  7057. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7058. void SetCollisionLayerAndMask(uint, uint);
  7059. void SetTransform(const Vector3&, const Quaternion&);
  7060. // Properties:
  7061. /* readonly */
  7062. bool active;
  7063. float angularDamping;
  7064. Vector3 angularFactor;
  7065. float angularRestThreshold;
  7066. Vector3 angularVelocity;
  7067. bool animationEnabled;
  7068. Vector3 anisotropicFriction;
  7069. /* readonly */
  7070. Array<Variant> attributeDefaults;
  7071. /* readonly */
  7072. Array<AttributeInfo> attributeInfos;
  7073. Array<Variant> attributes;
  7074. /* readonly */
  7075. StringHash baseType;
  7076. /* readonly */
  7077. String category;
  7078. float ccdMotionThreshold;
  7079. float ccdRadius;
  7080. /* readonly */
  7081. Vector3 centerOfMass;
  7082. /* readonly */
  7083. Array<RigidBody> collidingBodies;
  7084. CollisionEventMode collisionEventMode;
  7085. uint collisionLayer;
  7086. uint collisionMask;
  7087. float contactProcessingThreshold;
  7088. bool enabled;
  7089. /* readonly */
  7090. bool enabledEffective;
  7091. float friction;
  7092. Vector3 gravityOverride;
  7093. /* readonly */
  7094. uint id;
  7095. bool kinematic;
  7096. float linearDamping;
  7097. Vector3 linearFactor;
  7098. float linearRestThreshold;
  7099. Vector3 linearVelocity;
  7100. float mass;
  7101. /* readonly */
  7102. Node node;
  7103. /* readonly */
  7104. uint numAttributes;
  7105. ObjectAnimation objectAnimation;
  7106. Vector3 position;
  7107. /* readonly */
  7108. int refs;
  7109. float restitution;
  7110. float rollingFriction;
  7111. Quaternion rotation;
  7112. bool temporary;
  7113. bool trigger;
  7114. /* readonly */
  7115. StringHash type;
  7116. /* readonly */
  7117. String typeName;
  7118. bool useGravity;
  7119. /* readonly */
  7120. int weakRefs;
  7121. };
  7122. class RigidBody2D
  7123. {
  7124. // Methods:
  7125. void ApplyAngularImpulse(float, bool);
  7126. void ApplyAttributes();
  7127. void ApplyForce(const Vector2&, const Vector2&, bool);
  7128. void ApplyForceToCenter(const Vector2&, bool);
  7129. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  7130. void ApplyTorque(float, bool);
  7131. void DrawDebugGeometry(DebugRenderer, bool);
  7132. Variant GetAttribute(const String&) const;
  7133. ValueAnimation GetAttributeAnimation(const String&) const;
  7134. float GetAttributeAnimationSpeed(const String&) const;
  7135. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7136. Variant GetAttributeDefault(const String&) const;
  7137. bool Load(File, bool = false);
  7138. bool Load(VectorBuffer&, bool = false);
  7139. bool LoadXML(const XMLElement&, bool = false);
  7140. void MarkNetworkUpdate() const;
  7141. void Remove();
  7142. void RemoveInstanceDefault();
  7143. void ResetToDefault();
  7144. bool Save(File) const;
  7145. bool Save(VectorBuffer&) const;
  7146. bool SaveXML(XMLElement&) const;
  7147. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7148. bool SetAttribute(const String&, const Variant&);
  7149. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7150. void SetAttributeAnimationSpeed(const String&, float);
  7151. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7152. // Properties:
  7153. bool allowSleep;
  7154. float angularDamping;
  7155. bool animationEnabled;
  7156. /* readonly */
  7157. Array<Variant> attributeDefaults;
  7158. /* readonly */
  7159. Array<AttributeInfo> attributeInfos;
  7160. Array<Variant> attributes;
  7161. bool awake;
  7162. /* readonly */
  7163. StringHash baseType;
  7164. BodyType2D bodyType;
  7165. bool bullet;
  7166. /* readonly */
  7167. String category;
  7168. bool enabled;
  7169. /* readonly */
  7170. bool enabledEffective;
  7171. bool fixedRotation;
  7172. float gravityScale;
  7173. /* readonly */
  7174. uint id;
  7175. float inertia;
  7176. float linearDamping;
  7177. Vector2 linearVelocity;
  7178. float mass;
  7179. Vector2 massCenter;
  7180. /* readonly */
  7181. Node node;
  7182. /* readonly */
  7183. uint numAttributes;
  7184. ObjectAnimation objectAnimation;
  7185. /* readonly */
  7186. int refs;
  7187. bool temporary;
  7188. /* readonly */
  7189. StringHash type;
  7190. /* readonly */
  7191. String typeName;
  7192. bool useFixtureMass;
  7193. /* readonly */
  7194. int weakRefs;
  7195. };
  7196. class Scene
  7197. {
  7198. // Methods:
  7199. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7200. void AddRequiredPackageFile(PackageFile);
  7201. void ApplyAttributes();
  7202. void Clear(bool = true, bool = true);
  7203. void ClearRequiredPackageFiles();
  7204. Component CloneComponent(Component, CreateMode, uint = 0);
  7205. Component CloneComponent(Component, uint = 0);
  7206. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7207. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7208. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7209. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7210. Variant GetAttribute(const String&) const;
  7211. ValueAnimation GetAttributeAnimation(const String&) const;
  7212. float GetAttributeAnimationSpeed(const String&) const;
  7213. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7214. Variant GetAttributeDefault(const String&) const;
  7215. Node GetChild(const String&, bool = false) const;
  7216. Array<Node> GetChildren(bool = false) const;
  7217. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7218. Array<Node> GetChildrenWithScript(bool = false) const;
  7219. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7220. Component GetComponent(const String&) const;
  7221. Component GetComponent(uint);
  7222. Array<Component> GetComponents() const;
  7223. Array<Component> GetComponents(const String&, bool = false) const;
  7224. Node GetNode(uint);
  7225. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7226. ScriptObject GetScriptObject() const;
  7227. ScriptObject GetScriptObject(const String&) const;
  7228. bool HasComponent(const String&) const;
  7229. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7230. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7231. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7232. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7233. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7234. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7235. bool Load(File, bool = false);
  7236. bool Load(VectorBuffer&, bool = false);
  7237. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  7238. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  7239. bool LoadXML(File);
  7240. bool LoadXML(VectorBuffer&);
  7241. bool LoadXML(const XMLElement&, bool = false);
  7242. Vector3 LocalToWorld(const Vector3&) const;
  7243. Vector3 LocalToWorld(const Vector4&) const;
  7244. Vector2 LocalToWorld2D(const Vector2&) const;
  7245. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7246. void MarkNetworkUpdate() const;
  7247. void Pitch(float, TransformSpace = TS_LOCAL);
  7248. void RegisterVar(const String&);
  7249. void Remove();
  7250. void RemoveAllChildren();
  7251. void RemoveAllComponents();
  7252. void RemoveChild(Node);
  7253. void RemoveChildren(bool, bool, bool);
  7254. void RemoveComponent(Component);
  7255. void RemoveComponent(const String&);
  7256. void RemoveComponents(bool, bool);
  7257. void RemoveInstanceDefault();
  7258. void ResetToDefault();
  7259. void Roll(float, TransformSpace = TS_LOCAL);
  7260. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7261. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7262. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7263. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7264. bool Save(File) const;
  7265. bool Save(VectorBuffer&) const;
  7266. bool SaveXML(File);
  7267. bool SaveXML(VectorBuffer&);
  7268. bool SaveXML(XMLElement&) const;
  7269. void Scale(const Vector3&);
  7270. void Scale(float);
  7271. void Scale2D(const Vector2&);
  7272. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7273. bool SetAttribute(const String&, const Variant&);
  7274. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7275. void SetAttributeAnimationSpeed(const String&, float);
  7276. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7277. void SetPosition2D(float, float);
  7278. void SetScale(float);
  7279. void SetScale2D(float, float);
  7280. void SetTransform(const Vector3&, const Quaternion&);
  7281. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7282. void SetTransform(const Vector3&, const Quaternion&, float);
  7283. void SetTransform2D(const Vector2&, float);
  7284. void SetTransform2D(const Vector2&, float, const Vector2&);
  7285. void SetTransform2D(const Vector2&, float, float);
  7286. void SetWorldTransform(const Vector3&, const Quaternion&);
  7287. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7288. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7289. void SetWorldTransform2D(const Vector2&, float);
  7290. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7291. void SetWorldTransform2D(const Vector2&, float, float);
  7292. void StopAsyncLoading();
  7293. const String& GetVarName(StringHash) const;
  7294. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7295. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7296. void UnregisterAllVars(const String&);
  7297. void UnregisterVar(const String&);
  7298. void Update(float);
  7299. Vector3 WorldToLocal(const Vector3&) const;
  7300. Vector3 WorldToLocal(const Vector4&) const;
  7301. Vector2 WorldToLocal2D(const Vector2&) const;
  7302. void Yaw(float, TransformSpace = TS_LOCAL);
  7303. // Properties:
  7304. bool animationEnabled;
  7305. /* readonly */
  7306. LoadMode asyncLoadMode;
  7307. /* readonly */
  7308. bool asyncLoading;
  7309. int asyncLoadingMs;
  7310. /* readonly */
  7311. float asyncProgress;
  7312. /* readonly */
  7313. Array<Variant> attributeDefaults;
  7314. /* readonly */
  7315. Array<AttributeInfo> attributeInfos;
  7316. Array<Variant> attributes;
  7317. /* readonly */
  7318. StringHash baseType;
  7319. /* readonly */
  7320. String category;
  7321. /* readonly */
  7322. uint checksum;
  7323. /* readonly */
  7324. Array<Node> children;
  7325. /* readonly */
  7326. Array<Component> components;
  7327. /* readonly */
  7328. DebugRenderer debugRenderer;
  7329. Vector3 direction;
  7330. float elapsedTime;
  7331. /* readonly */
  7332. String fileName;
  7333. /* readonly */
  7334. uint id;
  7335. String name;
  7336. /* readonly */
  7337. uint numAllChildren;
  7338. /* readonly */
  7339. uint numAttributes;
  7340. /* readonly */
  7341. uint numChildren;
  7342. /* readonly */
  7343. uint numComponents;
  7344. ObjectAnimation objectAnimation;
  7345. /* readonly */
  7346. Octree octree;
  7347. Node parent;
  7348. /* readonly */
  7349. PhysicsWorld physicsWorld;
  7350. /* readonly */
  7351. PhysicsWorld2D physicsWorld2D;
  7352. Vector3 position;
  7353. Vector2 position2D;
  7354. /* readonly */
  7355. int refs;
  7356. /* readonly */
  7357. Array<PackageFile> requiredPackageFiles;
  7358. /* readonly */
  7359. Vector3 right;
  7360. Quaternion rotation;
  7361. float rotation2D;
  7362. Vector3 scale;
  7363. Vector2 scale2D;
  7364. /* readonly */
  7365. ScriptObject scriptObject;
  7366. float smoothingConstant;
  7367. float snapThreshold;
  7368. bool temporary;
  7369. float timeScale;
  7370. /* readonly */
  7371. Matrix3x4 transform;
  7372. /* readonly */
  7373. StringHash type;
  7374. /* readonly */
  7375. String typeName;
  7376. /* readonly */
  7377. Vector3 up;
  7378. bool updateEnabled;
  7379. /* readonly */
  7380. VariantMap vars;
  7381. /* readonly */
  7382. int weakRefs;
  7383. Vector3 worldDirection;
  7384. Vector3 worldPosition;
  7385. Vector2 worldPosition2D;
  7386. /* readonly */
  7387. Vector3 worldRight;
  7388. Quaternion worldRotation;
  7389. float worldRotation2D;
  7390. Vector3 worldScale;
  7391. Vector2 worldScale2D;
  7392. /* readonly */
  7393. Matrix3x4 worldTransform;
  7394. /* readonly */
  7395. Vector3 worldUp;
  7396. };
  7397. class Script
  7398. {
  7399. // Methods:
  7400. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  7401. bool Execute(const String&);
  7402. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7403. // Properties:
  7404. /* readonly */
  7405. StringHash baseType;
  7406. /* readonly */
  7407. String category;
  7408. Scene defaultScene;
  7409. ScriptFile defaultScriptFile;
  7410. bool executeConsoleCommands;
  7411. /* readonly */
  7412. int refs;
  7413. /* readonly */
  7414. StringHash type;
  7415. /* readonly */
  7416. String typeName;
  7417. /* readonly */
  7418. int weakRefs;
  7419. };
  7420. class ScriptFile
  7421. {
  7422. // Methods:
  7423. void ClearDelayedExecute(const String& = String ( ));
  7424. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  7425. bool Execute(const String&, const Array<Variant> = null);
  7426. bool Load(File);
  7427. bool Load(VectorBuffer&);
  7428. bool Save(File) const;
  7429. bool Save(VectorBuffer&) const;
  7430. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7431. // Properties:
  7432. /* readonly */
  7433. StringHash baseType;
  7434. /* readonly */
  7435. String category;
  7436. /* readonly */
  7437. bool compiled;
  7438. /* readonly */
  7439. uint memoryUse;
  7440. String name;
  7441. /* readonly */
  7442. int refs;
  7443. /* readonly */
  7444. StringHash type;
  7445. /* readonly */
  7446. String typeName;
  7447. /* readonly */
  7448. uint useTimer;
  7449. /* readonly */
  7450. int weakRefs;
  7451. };
  7452. class ScriptInstance
  7453. {
  7454. // Methods:
  7455. void ApplyAttributes();
  7456. void ClearDelayedExecute(const String& = String ( ));
  7457. bool CreateObject(ScriptFile, const String&);
  7458. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  7459. void DrawDebugGeometry(DebugRenderer, bool);
  7460. bool Execute(const String&, const Array<Variant> = null);
  7461. Variant GetAttribute(const String&) const;
  7462. ValueAnimation GetAttributeAnimation(const String&) const;
  7463. float GetAttributeAnimationSpeed(const String&) const;
  7464. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7465. Variant GetAttributeDefault(const String&) const;
  7466. bool Load(File, bool = false);
  7467. bool Load(VectorBuffer&, bool = false);
  7468. bool LoadXML(const XMLElement&, bool = false);
  7469. void MarkNetworkUpdate() const;
  7470. void Remove();
  7471. void RemoveInstanceDefault();
  7472. void ResetToDefault();
  7473. bool Save(File) const;
  7474. bool Save(VectorBuffer&) const;
  7475. bool SaveXML(XMLElement&) const;
  7476. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7477. bool SetAttribute(const String&, const Variant&);
  7478. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7479. void SetAttributeAnimationSpeed(const String&, float);
  7480. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7481. // Properties:
  7482. bool animationEnabled;
  7483. /* readonly */
  7484. Array<Variant> attributeDefaults;
  7485. /* readonly */
  7486. Array<AttributeInfo> attributeInfos;
  7487. Array<Variant> attributes;
  7488. /* readonly */
  7489. StringHash baseType;
  7490. /* readonly */
  7491. String category;
  7492. String className;
  7493. bool enabled;
  7494. /* readonly */
  7495. bool enabledEffective;
  7496. /* readonly */
  7497. uint id;
  7498. /* readonly */
  7499. Node node;
  7500. /* readonly */
  7501. uint numAttributes;
  7502. ObjectAnimation objectAnimation;
  7503. /* readonly */
  7504. int refs;
  7505. ScriptFile scriptFile;
  7506. /* readonly */
  7507. ScriptObject scriptObject;
  7508. bool temporary;
  7509. /* readonly */
  7510. StringHash type;
  7511. /* readonly */
  7512. String typeName;
  7513. /* readonly */
  7514. int weakRefs;
  7515. };
  7516. class ScriptObject
  7517. {
  7518. };
  7519. class ScrollBar
  7520. {
  7521. // Methods:
  7522. void AddChild(UIElement);
  7523. void ApplyAttributes();
  7524. void BringToFront();
  7525. void ChangeValue(float);
  7526. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7527. void DisableLayoutUpdate();
  7528. IntVector2 ElementToScreen(const IntVector2&);
  7529. void EnableLayoutUpdate();
  7530. uint FindChild(UIElement) const;
  7531. Variant GetAttribute(const String&) const;
  7532. ValueAnimation GetAttributeAnimation(const String&) const;
  7533. float GetAttributeAnimationSpeed(const String&) const;
  7534. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7535. Variant GetAttributeDefault(const String&) const;
  7536. UIElement GetChild(const String&, bool = false) const;
  7537. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  7538. Array<UIElement> GetChildren(bool = false) const;
  7539. UIElement GetElementEventSender() const;
  7540. uint GetNumChildren(bool) const;
  7541. void InsertChild(uint, UIElement);
  7542. bool IsInside(IntVector2, bool);
  7543. bool IsInsideCombined(IntVector2, bool);
  7544. bool Load(File, bool = false);
  7545. bool Load(VectorBuffer&, bool = false);
  7546. bool LoadChildXML(XMLFile, XMLFile = null);
  7547. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7548. bool LoadXML(File);
  7549. bool LoadXML(VectorBuffer&);
  7550. bool LoadXML(XMLFile, XMLFile);
  7551. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7552. bool LoadXML(const XMLElement&, bool = false);
  7553. void MarkNetworkUpdate() const;
  7554. void Remove();
  7555. void RemoveAllChildren();
  7556. void RemoveChild(UIElement, uint = 0);
  7557. void RemoveChild(uint);
  7558. void RemoveInstanceDefault();
  7559. void ResetDeepEnabled();
  7560. void ResetToDefault();
  7561. bool Save(File) const;
  7562. bool Save(VectorBuffer&) const;
  7563. bool SaveXML(File);
  7564. bool SaveXML(VectorBuffer&);
  7565. bool SaveXML(XMLElement&) const;
  7566. IntVector2 ScreenToElement(const IntVector2&);
  7567. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7568. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7569. bool SetAttribute(const String&, const Variant&);
  7570. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7571. void SetAttributeAnimationSpeed(const String&, float);
  7572. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7573. void SetDeepEnabled(bool);
  7574. void SetEnabledRecursive(bool);
  7575. void SetFixedHeight(int);
  7576. void SetFixedSize(int, int);
  7577. void SetFixedWidth(int);
  7578. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7579. void SetMaxSize(int, int);
  7580. void SetMinSize(int, int);
  7581. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7582. void SetPosition(int, int);
  7583. void SetSize(int, int);
  7584. bool SetStyle(const String&, XMLFile = null);
  7585. bool SetStyle(const XMLElement&);
  7586. bool SetStyleAuto(XMLFile = null);
  7587. void StepBack();
  7588. void StepForward();
  7589. void UpdateLayout();
  7590. const Variant& GetVar(const StringHash&);
  7591. // Properties:
  7592. bool animationEnabled;
  7593. /* readonly */
  7594. Array<Variant> attributeDefaults;
  7595. /* readonly */
  7596. Array<AttributeInfo> attributeInfos;
  7597. Array<Variant> attributes;
  7598. /* readonly */
  7599. Button backButton;
  7600. /* readonly */
  7601. StringHash baseType;
  7602. bool bringToBack;
  7603. bool bringToFront;
  7604. /* readonly */
  7605. String category;
  7606. /* readonly */
  7607. IntVector2 childOffset;
  7608. /* readonly */
  7609. Array<UIElement> children;
  7610. IntRect clipBorder;
  7611. bool clipChildren;
  7612. /* writeonly */
  7613. Color color;
  7614. /* readonly */
  7615. bool colorGradient;
  7616. Array<Color> colors;
  7617. /* readonly */
  7618. IntRect combinedScreenRect;
  7619. XMLFile defaultStyle;
  7620. /* readonly */
  7621. float derivedOpacity;
  7622. /* readonly */
  7623. uint dragButtonCombo;
  7624. /* readonly */
  7625. int dragButtonCount;
  7626. uint dragDropMode;
  7627. bool editable;
  7628. /* readonly */
  7629. float effectiveScrollStep;
  7630. bool elementEventSender;
  7631. bool enabled;
  7632. /* readonly */
  7633. bool enabledSelf;
  7634. /* readonly */
  7635. bool fixedHeight;
  7636. /* readonly */
  7637. bool fixedSize;
  7638. /* readonly */
  7639. bool fixedWidth;
  7640. bool focus;
  7641. FocusMode focusMode;
  7642. /* readonly */
  7643. Button forwardButton;
  7644. int height;
  7645. HorizontalAlignment horizontalAlignment;
  7646. /* readonly */
  7647. bool hovering;
  7648. int indent;
  7649. int indentSpacing;
  7650. /* readonly */
  7651. int indentWidth;
  7652. bool internal;
  7653. IntRect layoutBorder;
  7654. Vector2 layoutFlexScale;
  7655. LayoutMode layoutMode;
  7656. int layoutSpacing;
  7657. int maxHeight;
  7658. IntVector2 maxSize;
  7659. int maxWidth;
  7660. int minHeight;
  7661. IntVector2 minSize;
  7662. int minWidth;
  7663. String name;
  7664. /* readonly */
  7665. uint numAllChildren;
  7666. /* readonly */
  7667. uint numAttributes;
  7668. /* readonly */
  7669. uint numChildren;
  7670. ObjectAnimation objectAnimation;
  7671. float opacity;
  7672. Orientation orientation;
  7673. UIElement parent;
  7674. IntVector2 position;
  7675. int priority;
  7676. float range;
  7677. /* readonly */
  7678. int refs;
  7679. /* readonly */
  7680. UIElement root;
  7681. /* readonly */
  7682. IntVector2 screenPosition;
  7683. float scrollStep;
  7684. bool selected;
  7685. IntVector2 size;
  7686. /* readonly */
  7687. Slider slider;
  7688. bool sortChildren;
  7689. float stepFactor;
  7690. String style;
  7691. bool temporary;
  7692. TraversalMode traversalMode;
  7693. /* readonly */
  7694. StringHash type;
  7695. /* readonly */
  7696. String typeName;
  7697. bool useDerivedOpacity;
  7698. float value;
  7699. /* readonly */
  7700. VariantMap vars;
  7701. VerticalAlignment verticalAlignment;
  7702. bool visible;
  7703. /* readonly */
  7704. int weakRefs;
  7705. int width;
  7706. };
  7707. class ScrollView
  7708. {
  7709. // Methods:
  7710. void AddChild(UIElement);
  7711. void ApplyAttributes();
  7712. void BringToFront();
  7713. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7714. void DisableLayoutUpdate();
  7715. IntVector2 ElementToScreen(const IntVector2&);
  7716. void EnableLayoutUpdate();
  7717. uint FindChild(UIElement) const;
  7718. Variant GetAttribute(const String&) const;
  7719. ValueAnimation GetAttributeAnimation(const String&) const;
  7720. float GetAttributeAnimationSpeed(const String&) const;
  7721. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7722. Variant GetAttributeDefault(const String&) const;
  7723. UIElement GetChild(const String&, bool = false) const;
  7724. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  7725. Array<UIElement> GetChildren(bool = false) const;
  7726. UIElement GetElementEventSender() const;
  7727. uint GetNumChildren(bool) const;
  7728. void InsertChild(uint, UIElement);
  7729. bool IsInside(IntVector2, bool);
  7730. bool IsInsideCombined(IntVector2, bool);
  7731. bool Load(File, bool = false);
  7732. bool Load(VectorBuffer&, bool = false);
  7733. bool LoadChildXML(XMLFile, XMLFile = null);
  7734. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7735. bool LoadXML(File);
  7736. bool LoadXML(VectorBuffer&);
  7737. bool LoadXML(XMLFile, XMLFile);
  7738. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7739. bool LoadXML(const XMLElement&, bool = false);
  7740. void MarkNetworkUpdate() const;
  7741. void Remove();
  7742. void RemoveAllChildren();
  7743. void RemoveChild(UIElement, uint = 0);
  7744. void RemoveChild(uint);
  7745. void RemoveInstanceDefault();
  7746. void ResetDeepEnabled();
  7747. void ResetToDefault();
  7748. bool Save(File) const;
  7749. bool Save(VectorBuffer&) const;
  7750. bool SaveXML(File);
  7751. bool SaveXML(VectorBuffer&);
  7752. bool SaveXML(XMLElement&) const;
  7753. IntVector2 ScreenToElement(const IntVector2&);
  7754. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7755. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7756. bool SetAttribute(const String&, const Variant&);
  7757. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7758. void SetAttributeAnimationSpeed(const String&, float);
  7759. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7760. void SetDeepEnabled(bool);
  7761. void SetEnabledRecursive(bool);
  7762. void SetFixedHeight(int);
  7763. void SetFixedSize(int, int);
  7764. void SetFixedWidth(int);
  7765. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7766. void SetMaxSize(int, int);
  7767. void SetMinSize(int, int);
  7768. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7769. void SetPosition(int, int);
  7770. void SetScrollBarsVisible(bool, bool);
  7771. void SetSize(int, int);
  7772. bool SetStyle(const String&, XMLFile = null);
  7773. bool SetStyle(const XMLElement&);
  7774. bool SetStyleAuto(XMLFile = null);
  7775. void SetViewPosition(int, int);
  7776. void UpdateLayout();
  7777. const Variant& GetVar(const StringHash&);
  7778. // Properties:
  7779. bool animationEnabled;
  7780. /* readonly */
  7781. Array<Variant> attributeDefaults;
  7782. /* readonly */
  7783. Array<AttributeInfo> attributeInfos;
  7784. Array<Variant> attributes;
  7785. bool autoDisableChildren;
  7786. float autoDisableThreshold;
  7787. /* readonly */
  7788. StringHash baseType;
  7789. bool bringToBack;
  7790. bool bringToFront;
  7791. /* readonly */
  7792. String category;
  7793. /* readonly */
  7794. IntVector2 childOffset;
  7795. /* readonly */
  7796. Array<UIElement> children;
  7797. IntRect clipBorder;
  7798. bool clipChildren;
  7799. /* writeonly */
  7800. Color color;
  7801. /* readonly */
  7802. bool colorGradient;
  7803. Array<Color> colors;
  7804. /* readonly */
  7805. IntRect combinedScreenRect;
  7806. UIElement contentElement;
  7807. XMLFile defaultStyle;
  7808. /* readonly */
  7809. float derivedOpacity;
  7810. /* readonly */
  7811. uint dragButtonCombo;
  7812. /* readonly */
  7813. int dragButtonCount;
  7814. uint dragDropMode;
  7815. bool editable;
  7816. bool elementEventSender;
  7817. bool enabled;
  7818. /* readonly */
  7819. bool enabledSelf;
  7820. /* readonly */
  7821. bool fixedHeight;
  7822. /* readonly */
  7823. bool fixedSize;
  7824. /* readonly */
  7825. bool fixedWidth;
  7826. bool focus;
  7827. FocusMode focusMode;
  7828. int height;
  7829. HorizontalAlignment horizontalAlignment;
  7830. /* readonly */
  7831. ScrollBar horizontalScrollBar;
  7832. /* readonly */
  7833. bool hovering;
  7834. int indent;
  7835. int indentSpacing;
  7836. /* readonly */
  7837. int indentWidth;
  7838. bool internal;
  7839. IntRect layoutBorder;
  7840. Vector2 layoutFlexScale;
  7841. LayoutMode layoutMode;
  7842. int layoutSpacing;
  7843. int maxHeight;
  7844. IntVector2 maxSize;
  7845. int maxWidth;
  7846. int minHeight;
  7847. IntVector2 minSize;
  7848. int minWidth;
  7849. String name;
  7850. /* readonly */
  7851. uint numAllChildren;
  7852. /* readonly */
  7853. uint numAttributes;
  7854. /* readonly */
  7855. uint numChildren;
  7856. ObjectAnimation objectAnimation;
  7857. float opacity;
  7858. float pageStep;
  7859. UIElement parent;
  7860. IntVector2 position;
  7861. int priority;
  7862. /* readonly */
  7863. int refs;
  7864. /* readonly */
  7865. UIElement root;
  7866. /* readonly */
  7867. IntVector2 screenPosition;
  7868. bool scrollBarsAutoVisible;
  7869. float scrollDeceleration;
  7870. /* readonly */
  7871. BorderImage scrollPanel;
  7872. float scrollSnapEpsilon;
  7873. float scrollStep;
  7874. bool selected;
  7875. IntVector2 size;
  7876. bool sortChildren;
  7877. String style;
  7878. bool temporary;
  7879. TraversalMode traversalMode;
  7880. /* readonly */
  7881. StringHash type;
  7882. /* readonly */
  7883. String typeName;
  7884. bool useDerivedOpacity;
  7885. /* readonly */
  7886. VariantMap vars;
  7887. VerticalAlignment verticalAlignment;
  7888. /* readonly */
  7889. ScrollBar verticalScrollBar;
  7890. IntVector2 viewPosition;
  7891. bool visible;
  7892. /* readonly */
  7893. int weakRefs;
  7894. int width;
  7895. };
  7896. class Serializable
  7897. {
  7898. // Methods:
  7899. void ApplyAttributes();
  7900. Variant GetAttribute(const String&) const;
  7901. Variant GetAttributeDefault(const String&) const;
  7902. bool Load(File, bool = false);
  7903. bool Load(VectorBuffer&, bool = false);
  7904. bool LoadXML(const XMLElement&, bool = false);
  7905. void MarkNetworkUpdate() const;
  7906. void RemoveInstanceDefault();
  7907. void ResetToDefault();
  7908. bool Save(File) const;
  7909. bool Save(VectorBuffer&) const;
  7910. bool SaveXML(XMLElement&) const;
  7911. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7912. bool SetAttribute(const String&, const Variant&);
  7913. // Properties:
  7914. /* readonly */
  7915. Array<Variant> attributeDefaults;
  7916. /* readonly */
  7917. Array<AttributeInfo> attributeInfos;
  7918. Array<Variant> attributes;
  7919. /* readonly */
  7920. StringHash baseType;
  7921. /* readonly */
  7922. String category;
  7923. /* readonly */
  7924. uint numAttributes;
  7925. /* readonly */
  7926. int refs;
  7927. bool temporary;
  7928. /* readonly */
  7929. StringHash type;
  7930. /* readonly */
  7931. String typeName;
  7932. /* readonly */
  7933. int weakRefs;
  7934. };
  7935. class Serializer
  7936. {
  7937. // Methods:
  7938. uint Write(Array<uint8>);
  7939. bool WriteBool(bool);
  7940. bool WriteBoundingBox(const BoundingBox&);
  7941. bool WriteByte(int8);
  7942. bool WriteColor(const Color&);
  7943. bool WriteFileID(const String&);
  7944. bool WriteFloat(float);
  7945. bool WriteInt(int);
  7946. bool WriteIntRect(const IntRect&);
  7947. bool WriteIntVector2(const IntVector2&);
  7948. bool WriteLine(const String&);
  7949. bool WriteMatrix3(const Matrix3&);
  7950. bool WriteMatrix3x4(const Matrix3x4&);
  7951. bool WriteMatrix4(const Matrix4&);
  7952. bool WriteNetID(uint);
  7953. bool WritePackedQuaternion(const Quaternion&);
  7954. bool WritePackedVector3(const Vector3&, float);
  7955. bool WriteQuaternion(const Quaternion&);
  7956. bool WriteShort(int16);
  7957. bool WriteString(const String&);
  7958. bool WriteStringHash(const StringHash&);
  7959. bool WriteUByte(uint8);
  7960. bool WriteUInt(uint);
  7961. bool WriteUShort(uint16);
  7962. bool WriteVLE(uint);
  7963. bool WriteVariant(const Variant&);
  7964. bool WriteVariantMap(const VariantMap&);
  7965. bool WriteVector2(const Vector2&);
  7966. bool WriteVector3(const Vector3&);
  7967. bool WriteVector4(const Vector4&);
  7968. bool WriteVectorBuffer(const VectorBuffer&);
  7969. };
  7970. class Skeleton
  7971. {
  7972. // Methods:
  7973. Bone GetBone(const String&) const;
  7974. void Reset();
  7975. // Properties:
  7976. /* readonly */
  7977. Array<Bone> bones;
  7978. /* readonly */
  7979. uint numBones;
  7980. /* readonly */
  7981. Bone rootBone;
  7982. };
  7983. class Skybox
  7984. {
  7985. // Methods:
  7986. void ApplyAttributes();
  7987. void ApplyMaterialList(const String& = String ( ));
  7988. void DrawDebugGeometry(DebugRenderer, bool);
  7989. Variant GetAttribute(const String&) const;
  7990. ValueAnimation GetAttributeAnimation(const String&) const;
  7991. float GetAttributeAnimationSpeed(const String&) const;
  7992. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7993. Variant GetAttributeDefault(const String&) const;
  7994. bool IsInView(Camera) const;
  7995. bool Load(File, bool = false);
  7996. bool Load(VectorBuffer&, bool = false);
  7997. bool LoadXML(const XMLElement&, bool = false);
  7998. void MarkNetworkUpdate() const;
  7999. void Remove();
  8000. void RemoveInstanceDefault();
  8001. void ResetToDefault();
  8002. bool Save(File) const;
  8003. bool Save(VectorBuffer&) const;
  8004. bool SaveXML(XMLElement&) const;
  8005. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8006. bool SetAttribute(const String&, const Variant&);
  8007. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8008. void SetAttributeAnimationSpeed(const String&, float);
  8009. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8010. // Properties:
  8011. bool animationEnabled;
  8012. /* readonly */
  8013. Array<Variant> attributeDefaults;
  8014. /* readonly */
  8015. Array<AttributeInfo> attributeInfos;
  8016. Array<Variant> attributes;
  8017. /* readonly */
  8018. StringHash baseType;
  8019. /* readonly */
  8020. BoundingBox boundingBox;
  8021. bool castShadows;
  8022. /* readonly */
  8023. String category;
  8024. float drawDistance;
  8025. bool enabled;
  8026. /* readonly */
  8027. bool enabledEffective;
  8028. /* readonly */
  8029. uint id;
  8030. /* readonly */
  8031. bool inView;
  8032. uint lightMask;
  8033. float lodBias;
  8034. /* writeonly */
  8035. Material material;
  8036. Array<Material> materials;
  8037. uint maxLights;
  8038. Model model;
  8039. /* readonly */
  8040. Node node;
  8041. /* readonly */
  8042. uint numAttributes;
  8043. /* readonly */
  8044. uint numGeometries;
  8045. ObjectAnimation objectAnimation;
  8046. bool occludee;
  8047. bool occluder;
  8048. /* readonly */
  8049. int refs;
  8050. float shadowDistance;
  8051. uint shadowMask;
  8052. bool temporary;
  8053. /* readonly */
  8054. StringHash type;
  8055. /* readonly */
  8056. String typeName;
  8057. uint viewMask;
  8058. /* readonly */
  8059. int weakRefs;
  8060. /* readonly */
  8061. BoundingBox worldBoundingBox;
  8062. /* readonly */
  8063. Zone zone;
  8064. uint zoneMask;
  8065. };
  8066. class Slider
  8067. {
  8068. // Methods:
  8069. void AddChild(UIElement);
  8070. void ApplyAttributes();
  8071. void BringToFront();
  8072. void ChangeValue(float);
  8073. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8074. void DisableLayoutUpdate();
  8075. IntVector2 ElementToScreen(const IntVector2&);
  8076. void EnableLayoutUpdate();
  8077. uint FindChild(UIElement) const;
  8078. Variant GetAttribute(const String&) const;
  8079. ValueAnimation GetAttributeAnimation(const String&) const;
  8080. float GetAttributeAnimationSpeed(const String&) const;
  8081. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8082. Variant GetAttributeDefault(const String&) const;
  8083. UIElement GetChild(const String&, bool = false) const;
  8084. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8085. Array<UIElement> GetChildren(bool = false) const;
  8086. UIElement GetElementEventSender() const;
  8087. uint GetNumChildren(bool) const;
  8088. void InsertChild(uint, UIElement);
  8089. bool IsInside(IntVector2, bool);
  8090. bool IsInsideCombined(IntVector2, bool);
  8091. bool Load(File, bool = false);
  8092. bool Load(VectorBuffer&, bool = false);
  8093. bool LoadChildXML(XMLFile, XMLFile = null);
  8094. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8095. bool LoadXML(File);
  8096. bool LoadXML(VectorBuffer&);
  8097. bool LoadXML(XMLFile, XMLFile);
  8098. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8099. bool LoadXML(const XMLElement&, bool = false);
  8100. void MarkNetworkUpdate() const;
  8101. void Remove();
  8102. void RemoveAllChildren();
  8103. void RemoveChild(UIElement, uint = 0);
  8104. void RemoveChild(uint);
  8105. void RemoveInstanceDefault();
  8106. void ResetDeepEnabled();
  8107. void ResetToDefault();
  8108. bool Save(File) const;
  8109. bool Save(VectorBuffer&) const;
  8110. bool SaveXML(File);
  8111. bool SaveXML(VectorBuffer&);
  8112. bool SaveXML(XMLElement&) const;
  8113. IntVector2 ScreenToElement(const IntVector2&);
  8114. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8115. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8116. bool SetAttribute(const String&, const Variant&);
  8117. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8118. void SetAttributeAnimationSpeed(const String&, float);
  8119. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8120. void SetDeepEnabled(bool);
  8121. void SetEnabledRecursive(bool);
  8122. void SetFixedHeight(int);
  8123. void SetFixedSize(int, int);
  8124. void SetFixedWidth(int);
  8125. void SetFullImageRect();
  8126. void SetHoverOffset(int, int);
  8127. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8128. void SetMaxSize(int, int);
  8129. void SetMinSize(int, int);
  8130. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8131. void SetPosition(int, int);
  8132. void SetSize(int, int);
  8133. bool SetStyle(const String&, XMLFile = null);
  8134. bool SetStyle(const XMLElement&);
  8135. bool SetStyleAuto(XMLFile = null);
  8136. void UpdateLayout();
  8137. const Variant& GetVar(const StringHash&);
  8138. // Properties:
  8139. bool animationEnabled;
  8140. /* readonly */
  8141. Array<Variant> attributeDefaults;
  8142. /* readonly */
  8143. Array<AttributeInfo> attributeInfos;
  8144. Array<Variant> attributes;
  8145. /* readonly */
  8146. StringHash baseType;
  8147. BlendMode blendMode;
  8148. IntRect border;
  8149. bool bringToBack;
  8150. bool bringToFront;
  8151. /* readonly */
  8152. String category;
  8153. /* readonly */
  8154. IntVector2 childOffset;
  8155. /* readonly */
  8156. Array<UIElement> children;
  8157. IntRect clipBorder;
  8158. bool clipChildren;
  8159. /* writeonly */
  8160. Color color;
  8161. /* readonly */
  8162. bool colorGradient;
  8163. Array<Color> colors;
  8164. /* readonly */
  8165. IntRect combinedScreenRect;
  8166. XMLFile defaultStyle;
  8167. /* readonly */
  8168. float derivedOpacity;
  8169. /* readonly */
  8170. uint dragButtonCombo;
  8171. /* readonly */
  8172. int dragButtonCount;
  8173. uint dragDropMode;
  8174. bool editable;
  8175. bool elementEventSender;
  8176. bool enabled;
  8177. /* readonly */
  8178. bool enabledSelf;
  8179. /* readonly */
  8180. bool fixedHeight;
  8181. /* readonly */
  8182. bool fixedSize;
  8183. /* readonly */
  8184. bool fixedWidth;
  8185. bool focus;
  8186. FocusMode focusMode;
  8187. int height;
  8188. HorizontalAlignment horizontalAlignment;
  8189. IntVector2 hoverOffset;
  8190. /* readonly */
  8191. bool hovering;
  8192. IntRect imageBorder;
  8193. IntRect imageRect;
  8194. int indent;
  8195. int indentSpacing;
  8196. /* readonly */
  8197. int indentWidth;
  8198. bool internal;
  8199. /* readonly */
  8200. BorderImage knob;
  8201. IntRect layoutBorder;
  8202. Vector2 layoutFlexScale;
  8203. LayoutMode layoutMode;
  8204. int layoutSpacing;
  8205. int maxHeight;
  8206. IntVector2 maxSize;
  8207. int maxWidth;
  8208. int minHeight;
  8209. IntVector2 minSize;
  8210. int minWidth;
  8211. String name;
  8212. /* readonly */
  8213. uint numAllChildren;
  8214. /* readonly */
  8215. uint numAttributes;
  8216. /* readonly */
  8217. uint numChildren;
  8218. ObjectAnimation objectAnimation;
  8219. float opacity;
  8220. Orientation orientation;
  8221. UIElement parent;
  8222. IntVector2 position;
  8223. int priority;
  8224. float range;
  8225. /* readonly */
  8226. int refs;
  8227. float repeatRate;
  8228. /* readonly */
  8229. UIElement root;
  8230. /* readonly */
  8231. IntVector2 screenPosition;
  8232. bool selected;
  8233. IntVector2 size;
  8234. bool sortChildren;
  8235. String style;
  8236. bool temporary;
  8237. Texture texture;
  8238. bool tiled;
  8239. TraversalMode traversalMode;
  8240. /* readonly */
  8241. StringHash type;
  8242. /* readonly */
  8243. String typeName;
  8244. bool useDerivedOpacity;
  8245. float value;
  8246. /* readonly */
  8247. VariantMap vars;
  8248. VerticalAlignment verticalAlignment;
  8249. bool visible;
  8250. /* readonly */
  8251. int weakRefs;
  8252. int width;
  8253. };
  8254. class SmoothedTransform
  8255. {
  8256. // Methods:
  8257. void ApplyAttributes();
  8258. void DrawDebugGeometry(DebugRenderer, bool);
  8259. Variant GetAttribute(const String&) const;
  8260. ValueAnimation GetAttributeAnimation(const String&) const;
  8261. float GetAttributeAnimationSpeed(const String&) const;
  8262. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8263. Variant GetAttributeDefault(const String&) const;
  8264. bool Load(File, bool = false);
  8265. bool Load(VectorBuffer&, bool = false);
  8266. bool LoadXML(const XMLElement&, bool = false);
  8267. void MarkNetworkUpdate() const;
  8268. void Remove();
  8269. void RemoveInstanceDefault();
  8270. void ResetToDefault();
  8271. bool Save(File) const;
  8272. bool Save(VectorBuffer&) const;
  8273. bool SaveXML(XMLElement&) const;
  8274. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8275. bool SetAttribute(const String&, const Variant&);
  8276. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8277. void SetAttributeAnimationSpeed(const String&, float);
  8278. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8279. void Update(float, float);
  8280. // Properties:
  8281. bool animationEnabled;
  8282. /* readonly */
  8283. Array<Variant> attributeDefaults;
  8284. /* readonly */
  8285. Array<AttributeInfo> attributeInfos;
  8286. Array<Variant> attributes;
  8287. /* readonly */
  8288. StringHash baseType;
  8289. /* readonly */
  8290. String category;
  8291. bool enabled;
  8292. /* readonly */
  8293. bool enabledEffective;
  8294. /* readonly */
  8295. uint id;
  8296. /* readonly */
  8297. bool inProgress;
  8298. /* readonly */
  8299. Node node;
  8300. /* readonly */
  8301. uint numAttributes;
  8302. ObjectAnimation objectAnimation;
  8303. /* readonly */
  8304. int refs;
  8305. Vector3 targetPosition;
  8306. Quaternion targetRotation;
  8307. Vector3 targetWorldPosition;
  8308. Quaternion targetWorldRotation;
  8309. bool temporary;
  8310. /* readonly */
  8311. StringHash type;
  8312. /* readonly */
  8313. String typeName;
  8314. /* readonly */
  8315. int weakRefs;
  8316. };
  8317. class Sound
  8318. {
  8319. // Methods:
  8320. bool Load(File);
  8321. bool Load(VectorBuffer&);
  8322. bool Save(File) const;
  8323. bool Save(VectorBuffer&) const;
  8324. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8325. // Properties:
  8326. /* readonly */
  8327. StringHash baseType;
  8328. /* readonly */
  8329. String category;
  8330. /* readonly */
  8331. bool compressed;
  8332. /* readonly */
  8333. float frequency;
  8334. /* readonly */
  8335. float length;
  8336. bool looped;
  8337. /* readonly */
  8338. uint memoryUse;
  8339. String name;
  8340. /* readonly */
  8341. int refs;
  8342. /* readonly */
  8343. uint sampleSize;
  8344. /* readonly */
  8345. bool sixteenBit;
  8346. /* readonly */
  8347. bool stereo;
  8348. /* readonly */
  8349. StringHash type;
  8350. /* readonly */
  8351. String typeName;
  8352. /* readonly */
  8353. uint useTimer;
  8354. /* readonly */
  8355. int weakRefs;
  8356. };
  8357. class SoundListener
  8358. {
  8359. // Methods:
  8360. void ApplyAttributes();
  8361. void DrawDebugGeometry(DebugRenderer, bool);
  8362. Variant GetAttribute(const String&) const;
  8363. ValueAnimation GetAttributeAnimation(const String&) const;
  8364. float GetAttributeAnimationSpeed(const String&) const;
  8365. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8366. Variant GetAttributeDefault(const String&) const;
  8367. bool Load(File, bool = false);
  8368. bool Load(VectorBuffer&, bool = false);
  8369. bool LoadXML(const XMLElement&, bool = false);
  8370. void MarkNetworkUpdate() const;
  8371. void Remove();
  8372. void RemoveInstanceDefault();
  8373. void ResetToDefault();
  8374. bool Save(File) const;
  8375. bool Save(VectorBuffer&) const;
  8376. bool SaveXML(XMLElement&) const;
  8377. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8378. bool SetAttribute(const String&, const Variant&);
  8379. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8380. void SetAttributeAnimationSpeed(const String&, float);
  8381. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8382. // Properties:
  8383. bool animationEnabled;
  8384. /* readonly */
  8385. Array<Variant> attributeDefaults;
  8386. /* readonly */
  8387. Array<AttributeInfo> attributeInfos;
  8388. Array<Variant> attributes;
  8389. /* readonly */
  8390. StringHash baseType;
  8391. /* readonly */
  8392. String category;
  8393. bool enabled;
  8394. /* readonly */
  8395. bool enabledEffective;
  8396. /* readonly */
  8397. uint id;
  8398. /* readonly */
  8399. Node node;
  8400. /* readonly */
  8401. uint numAttributes;
  8402. ObjectAnimation objectAnimation;
  8403. /* readonly */
  8404. int refs;
  8405. bool temporary;
  8406. /* readonly */
  8407. StringHash type;
  8408. /* readonly */
  8409. String typeName;
  8410. /* readonly */
  8411. int weakRefs;
  8412. };
  8413. class SoundSource
  8414. {
  8415. // Methods:
  8416. void ApplyAttributes();
  8417. void DrawDebugGeometry(DebugRenderer, bool);
  8418. Variant GetAttribute(const String&) const;
  8419. ValueAnimation GetAttributeAnimation(const String&) const;
  8420. float GetAttributeAnimationSpeed(const String&) const;
  8421. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8422. Variant GetAttributeDefault(const String&) const;
  8423. bool Load(File, bool = false);
  8424. bool Load(VectorBuffer&, bool = false);
  8425. bool LoadXML(const XMLElement&, bool = false);
  8426. void MarkNetworkUpdate() const;
  8427. void Play(Sound);
  8428. void Play(Sound, float);
  8429. void Play(Sound, float, float);
  8430. void Play(Sound, float, float, float);
  8431. void Remove();
  8432. void RemoveInstanceDefault();
  8433. void ResetToDefault();
  8434. bool Save(File) const;
  8435. bool Save(VectorBuffer&) const;
  8436. bool SaveXML(XMLElement&) const;
  8437. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8438. bool SetAttribute(const String&, const Variant&);
  8439. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8440. void SetAttributeAnimationSpeed(const String&, float);
  8441. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8442. void Stop();
  8443. // Properties:
  8444. bool animationEnabled;
  8445. /* readonly */
  8446. float attenuation;
  8447. /* readonly */
  8448. Array<Variant> attributeDefaults;
  8449. /* readonly */
  8450. Array<AttributeInfo> attributeInfos;
  8451. Array<Variant> attributes;
  8452. bool autoRemove;
  8453. /* readonly */
  8454. StringHash baseType;
  8455. /* readonly */
  8456. String category;
  8457. bool enabled;
  8458. /* readonly */
  8459. bool enabledEffective;
  8460. float frequency;
  8461. float gain;
  8462. /* readonly */
  8463. uint id;
  8464. /* readonly */
  8465. Node node;
  8466. /* readonly */
  8467. uint numAttributes;
  8468. ObjectAnimation objectAnimation;
  8469. float panning;
  8470. /* readonly */
  8471. bool playing;
  8472. /* readonly */
  8473. int refs;
  8474. /* readonly */
  8475. Sound sound;
  8476. String soundType;
  8477. bool temporary;
  8478. /* readonly */
  8479. float timePosition;
  8480. /* readonly */
  8481. StringHash type;
  8482. /* readonly */
  8483. String typeName;
  8484. /* readonly */
  8485. int weakRefs;
  8486. };
  8487. class SoundSource3D
  8488. {
  8489. // Methods:
  8490. void ApplyAttributes();
  8491. void DrawDebugGeometry(DebugRenderer, bool);
  8492. Variant GetAttribute(const String&) const;
  8493. ValueAnimation GetAttributeAnimation(const String&) const;
  8494. float GetAttributeAnimationSpeed(const String&) const;
  8495. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8496. Variant GetAttributeDefault(const String&) const;
  8497. bool Load(File, bool = false);
  8498. bool Load(VectorBuffer&, bool = false);
  8499. bool LoadXML(const XMLElement&, bool = false);
  8500. void MarkNetworkUpdate() const;
  8501. void Play(Sound);
  8502. void Play(Sound, float);
  8503. void Play(Sound, float, float);
  8504. void Play(Sound, float, float, float);
  8505. void Remove();
  8506. void RemoveInstanceDefault();
  8507. void ResetToDefault();
  8508. bool Save(File) const;
  8509. bool Save(VectorBuffer&) const;
  8510. bool SaveXML(XMLElement&) const;
  8511. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8512. void SetAngleAttenuation(float, float);
  8513. bool SetAttribute(const String&, const Variant&);
  8514. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8515. void SetAttributeAnimationSpeed(const String&, float);
  8516. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8517. void SetDistanceAttenuation(float, float, float);
  8518. void Stop();
  8519. // Properties:
  8520. bool animationEnabled;
  8521. /* readonly */
  8522. float attenuation;
  8523. /* readonly */
  8524. Array<Variant> attributeDefaults;
  8525. /* readonly */
  8526. Array<AttributeInfo> attributeInfos;
  8527. Array<Variant> attributes;
  8528. bool autoRemove;
  8529. /* readonly */
  8530. StringHash baseType;
  8531. /* readonly */
  8532. String category;
  8533. bool enabled;
  8534. /* readonly */
  8535. bool enabledEffective;
  8536. float farDistance;
  8537. float frequency;
  8538. float gain;
  8539. /* readonly */
  8540. uint id;
  8541. float innerAngle;
  8542. float nearDistance;
  8543. /* readonly */
  8544. Node node;
  8545. /* readonly */
  8546. uint numAttributes;
  8547. ObjectAnimation objectAnimation;
  8548. float outerAngle;
  8549. float panning;
  8550. /* readonly */
  8551. bool playing;
  8552. /* readonly */
  8553. int refs;
  8554. float rolloffFactor;
  8555. /* readonly */
  8556. Sound sound;
  8557. String soundType;
  8558. bool temporary;
  8559. /* readonly */
  8560. float timePosition;
  8561. /* readonly */
  8562. StringHash type;
  8563. /* readonly */
  8564. String typeName;
  8565. /* readonly */
  8566. int weakRefs;
  8567. };
  8568. class Sphere
  8569. {
  8570. // Methods:
  8571. void Clear();
  8572. void Define(const BoundingBox&);
  8573. void Define(const Frustum&);
  8574. void Define(const Polyhedron&);
  8575. void Define(const Sphere&);
  8576. void Define(const Vector3&, float);
  8577. float Distance(const Vector3&) const;
  8578. Intersection IsInside(const BoundingBox&) const;
  8579. Intersection IsInside(const Sphere&) const;
  8580. Intersection IsInside(const Vector3&) const;
  8581. void Merge(const BoundingBox&);
  8582. void Merge(const Frustum&);
  8583. void Merge(const Sphere&);
  8584. void Merge(const Vector3&);
  8585. // Properties:
  8586. Vector3 center;
  8587. bool defined;
  8588. float radius;
  8589. };
  8590. class Spline
  8591. {
  8592. // Methods:
  8593. void AddKnot(const Variant&);
  8594. void AddKnot(const Variant&, uint);
  8595. void Clear();
  8596. Variant GetPoint(float);
  8597. void RemoveKnot();
  8598. void RemoveKnot(uint);
  8599. // Properties:
  8600. InterpolationMode interpolationMode;
  8601. Array<Variant> knot;
  8602. Array<Variant> knots;
  8603. };
  8604. class SplinePath
  8605. {
  8606. // Methods:
  8607. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  8608. void ApplyAttributes();
  8609. void ClearControlPoints();
  8610. void DrawDebugGeometry(DebugRenderer, bool);
  8611. Variant GetAttribute(const String&) const;
  8612. ValueAnimation GetAttributeAnimation(const String&) const;
  8613. float GetAttributeAnimationSpeed(const String&) const;
  8614. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8615. Variant GetAttributeDefault(const String&) const;
  8616. Vector3 GetPoint(float) const;
  8617. bool Load(File, bool = false);
  8618. bool Load(VectorBuffer&, bool = false);
  8619. bool LoadXML(const XMLElement&, bool = false);
  8620. void MarkNetworkUpdate() const;
  8621. void Move(float);
  8622. void Remove();
  8623. void RemoveControlPoint(Node);
  8624. void RemoveInstanceDefault();
  8625. void Reset();
  8626. void ResetToDefault();
  8627. bool Save(File) const;
  8628. bool Save(VectorBuffer&) const;
  8629. bool SaveXML(XMLElement&) const;
  8630. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8631. bool SetAttribute(const String&, const Variant&);
  8632. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8633. void SetAttributeAnimationSpeed(const String&, float);
  8634. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8635. // Properties:
  8636. bool animationEnabled;
  8637. /* readonly */
  8638. Array<Variant> attributeDefaults;
  8639. /* readonly */
  8640. Array<AttributeInfo> attributeInfos;
  8641. Array<Variant> attributes;
  8642. /* readonly */
  8643. StringHash baseType;
  8644. /* readonly */
  8645. String category;
  8646. Node controlledNode;
  8647. bool enabled;
  8648. /* readonly */
  8649. bool enabledEffective;
  8650. /* readonly */
  8651. uint id;
  8652. InterpolationMode interpolationMode;
  8653. /* readonly */
  8654. bool isFinished;
  8655. /* readonly */
  8656. Node node;
  8657. /* readonly */
  8658. uint numAttributes;
  8659. ObjectAnimation objectAnimation;
  8660. Vector3 position;
  8661. /* readonly */
  8662. int refs;
  8663. float speed;
  8664. bool temporary;
  8665. /* readonly */
  8666. StringHash type;
  8667. /* readonly */
  8668. String typeName;
  8669. /* readonly */
  8670. int weakRefs;
  8671. };
  8672. class Sprite
  8673. {
  8674. // Methods:
  8675. void AddChild(UIElement);
  8676. void ApplyAttributes();
  8677. void BringToFront();
  8678. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8679. uint FindChild(UIElement) const;
  8680. Variant GetAttribute(const String&) const;
  8681. ValueAnimation GetAttributeAnimation(const String&) const;
  8682. float GetAttributeAnimationSpeed(const String&) const;
  8683. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8684. Variant GetAttributeDefault(const String&) const;
  8685. UIElement GetChild(const String&, bool = false) const;
  8686. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8687. Array<UIElement> GetChildren(bool = false) const;
  8688. UIElement GetElementEventSender() const;
  8689. uint GetNumChildren(bool) const;
  8690. void InsertChild(uint, UIElement);
  8691. bool Load(File, bool = false);
  8692. bool Load(VectorBuffer&, bool = false);
  8693. bool LoadChildXML(XMLFile, XMLFile = null);
  8694. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8695. bool LoadXML(File);
  8696. bool LoadXML(VectorBuffer&);
  8697. bool LoadXML(XMLFile, XMLFile);
  8698. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8699. bool LoadXML(const XMLElement&, bool = false);
  8700. void MarkNetworkUpdate() const;
  8701. void Remove();
  8702. void RemoveAllChildren();
  8703. void RemoveChild(UIElement, uint = 0);
  8704. void RemoveChild(uint);
  8705. void RemoveInstanceDefault();
  8706. void ResetToDefault();
  8707. bool Save(File) const;
  8708. bool Save(VectorBuffer&) const;
  8709. bool SaveXML(File);
  8710. bool SaveXML(VectorBuffer&);
  8711. bool SaveXML(XMLElement&) const;
  8712. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8713. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8714. bool SetAttribute(const String&, const Variant&);
  8715. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8716. void SetAttributeAnimationSpeed(const String&, float);
  8717. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8718. void SetFixedHeight(int);
  8719. void SetFixedSize(int, int);
  8720. void SetFixedWidth(int);
  8721. void SetFullImageRect();
  8722. void SetHotSpot(int, int);
  8723. void SetMaxSize(int, int);
  8724. void SetMinSize(int, int);
  8725. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8726. void SetPosition(float, float);
  8727. void SetScale(float);
  8728. void SetScale(float, float);
  8729. void SetSize(int, int);
  8730. bool SetStyle(const String&, XMLFile = null);
  8731. bool SetStyle(const XMLElement&);
  8732. bool SetStyleAuto(XMLFile = null);
  8733. const Variant& GetVar(const StringHash&);
  8734. // Properties:
  8735. bool animationEnabled;
  8736. /* readonly */
  8737. Array<Variant> attributeDefaults;
  8738. /* readonly */
  8739. Array<AttributeInfo> attributeInfos;
  8740. Array<Variant> attributes;
  8741. /* readonly */
  8742. StringHash baseType;
  8743. BlendMode blendMode;
  8744. bool bringToBack;
  8745. bool bringToFront;
  8746. /* readonly */
  8747. String category;
  8748. /* readonly */
  8749. Array<UIElement> children;
  8750. /* writeonly */
  8751. Color color;
  8752. /* readonly */
  8753. bool colorGradient;
  8754. Array<Color> colors;
  8755. XMLFile defaultStyle;
  8756. /* readonly */
  8757. float derivedOpacity;
  8758. /* readonly */
  8759. uint dragButtonCombo;
  8760. /* readonly */
  8761. int dragButtonCount;
  8762. bool elementEventSender;
  8763. int height;
  8764. HorizontalAlignment horizontalAlignment;
  8765. IntVector2 hotSpot;
  8766. IntRect imageRect;
  8767. String name;
  8768. /* readonly */
  8769. uint numAllChildren;
  8770. /* readonly */
  8771. uint numAttributes;
  8772. /* readonly */
  8773. uint numChildren;
  8774. ObjectAnimation objectAnimation;
  8775. float opacity;
  8776. UIElement parent;
  8777. Vector2 position;
  8778. int priority;
  8779. /* readonly */
  8780. int refs;
  8781. /* readonly */
  8782. UIElement root;
  8783. float rotation;
  8784. Vector2 scale;
  8785. IntVector2 size;
  8786. bool sortChildren;
  8787. String style;
  8788. bool temporary;
  8789. Texture texture;
  8790. /* readonly */
  8791. StringHash type;
  8792. /* readonly */
  8793. String typeName;
  8794. bool useDerivedOpacity;
  8795. /* readonly */
  8796. VariantMap vars;
  8797. VerticalAlignment verticalAlignment;
  8798. bool visible;
  8799. /* readonly */
  8800. int weakRefs;
  8801. int width;
  8802. };
  8803. class Sprite2D
  8804. {
  8805. // Methods:
  8806. bool Load(File);
  8807. bool Load(VectorBuffer&);
  8808. bool Save(File) const;
  8809. bool Save(VectorBuffer&) const;
  8810. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8811. // Properties:
  8812. /* readonly */
  8813. StringHash baseType;
  8814. /* readonly */
  8815. String category;
  8816. Vector2 hotSpot;
  8817. /* readonly */
  8818. uint memoryUse;
  8819. String name;
  8820. IntVector2 offset;
  8821. IntRect rectangle;
  8822. /* readonly */
  8823. int refs;
  8824. Texture2D texture;
  8825. /* readonly */
  8826. StringHash type;
  8827. /* readonly */
  8828. String typeName;
  8829. /* readonly */
  8830. uint useTimer;
  8831. /* readonly */
  8832. int weakRefs;
  8833. };
  8834. class SpriteSheet2D
  8835. {
  8836. // Methods:
  8837. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  8838. Sprite2D GetSprite(const String&);
  8839. bool Load(File);
  8840. bool Load(VectorBuffer&);
  8841. bool Save(File) const;
  8842. bool Save(VectorBuffer&) const;
  8843. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8844. // Properties:
  8845. /* readonly */
  8846. StringHash baseType;
  8847. /* readonly */
  8848. String category;
  8849. /* readonly */
  8850. uint memoryUse;
  8851. String name;
  8852. /* readonly */
  8853. int refs;
  8854. /* readonly */
  8855. Texture2D texture;
  8856. /* readonly */
  8857. StringHash type;
  8858. /* readonly */
  8859. String typeName;
  8860. /* readonly */
  8861. uint useTimer;
  8862. /* readonly */
  8863. int weakRefs;
  8864. };
  8865. class StaticModel
  8866. {
  8867. // Methods:
  8868. void ApplyAttributes();
  8869. void ApplyMaterialList(const String& = String ( ));
  8870. void DrawDebugGeometry(DebugRenderer, bool);
  8871. Variant GetAttribute(const String&) const;
  8872. ValueAnimation GetAttributeAnimation(const String&) const;
  8873. float GetAttributeAnimationSpeed(const String&) const;
  8874. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8875. Variant GetAttributeDefault(const String&) const;
  8876. bool IsInView(Camera) const;
  8877. bool IsInside(const Vector3&) const;
  8878. bool IsInsideLocal(const Vector3&) const;
  8879. bool Load(File, bool = false);
  8880. bool Load(VectorBuffer&, bool = false);
  8881. bool LoadXML(const XMLElement&, bool = false);
  8882. void MarkNetworkUpdate() const;
  8883. void Remove();
  8884. void RemoveInstanceDefault();
  8885. void ResetToDefault();
  8886. bool Save(File) const;
  8887. bool Save(VectorBuffer&) const;
  8888. bool SaveXML(XMLElement&) const;
  8889. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8890. bool SetAttribute(const String&, const Variant&);
  8891. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8892. void SetAttributeAnimationSpeed(const String&, float);
  8893. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8894. // Properties:
  8895. bool animationEnabled;
  8896. /* readonly */
  8897. Array<Variant> attributeDefaults;
  8898. /* readonly */
  8899. Array<AttributeInfo> attributeInfos;
  8900. Array<Variant> attributes;
  8901. /* readonly */
  8902. StringHash baseType;
  8903. /* readonly */
  8904. BoundingBox boundingBox;
  8905. bool castShadows;
  8906. /* readonly */
  8907. String category;
  8908. float drawDistance;
  8909. bool enabled;
  8910. /* readonly */
  8911. bool enabledEffective;
  8912. /* readonly */
  8913. uint id;
  8914. /* readonly */
  8915. bool inView;
  8916. uint lightMask;
  8917. float lodBias;
  8918. /* writeonly */
  8919. Material material;
  8920. Array<Material> materials;
  8921. uint maxLights;
  8922. Model model;
  8923. /* readonly */
  8924. Node node;
  8925. /* readonly */
  8926. uint numAttributes;
  8927. /* readonly */
  8928. uint numGeometries;
  8929. ObjectAnimation objectAnimation;
  8930. bool occludee;
  8931. bool occluder;
  8932. uint occlusionLodLevel;
  8933. /* readonly */
  8934. int refs;
  8935. float shadowDistance;
  8936. uint shadowMask;
  8937. bool temporary;
  8938. /* readonly */
  8939. StringHash type;
  8940. /* readonly */
  8941. String typeName;
  8942. uint viewMask;
  8943. /* readonly */
  8944. int weakRefs;
  8945. /* readonly */
  8946. BoundingBox worldBoundingBox;
  8947. uint zoneMask;
  8948. };
  8949. class StaticModelGroup
  8950. {
  8951. // Methods:
  8952. void AddInstanceNode(Node);
  8953. void ApplyAttributes();
  8954. void ApplyMaterialList(const String& = String ( ));
  8955. void DrawDebugGeometry(DebugRenderer, bool);
  8956. Variant GetAttribute(const String&) const;
  8957. ValueAnimation GetAttributeAnimation(const String&) const;
  8958. float GetAttributeAnimationSpeed(const String&) const;
  8959. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8960. Variant GetAttributeDefault(const String&) const;
  8961. bool IsInView(Camera) const;
  8962. bool Load(File, bool = false);
  8963. bool Load(VectorBuffer&, bool = false);
  8964. bool LoadXML(const XMLElement&, bool = false);
  8965. void MarkNetworkUpdate() const;
  8966. void Remove();
  8967. void RemoveAllInstanceNodes();
  8968. void RemoveInstanceDefault();
  8969. void RemoveInstanceNode(Node);
  8970. void ResetToDefault();
  8971. bool Save(File) const;
  8972. bool Save(VectorBuffer&) const;
  8973. bool SaveXML(XMLElement&) const;
  8974. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8975. bool SetAttribute(const String&, const Variant&);
  8976. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8977. void SetAttributeAnimationSpeed(const String&, float);
  8978. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8979. // Properties:
  8980. bool animationEnabled;
  8981. /* readonly */
  8982. Array<Variant> attributeDefaults;
  8983. /* readonly */
  8984. Array<AttributeInfo> attributeInfos;
  8985. Array<Variant> attributes;
  8986. /* readonly */
  8987. StringHash baseType;
  8988. /* readonly */
  8989. BoundingBox boundingBox;
  8990. bool castShadows;
  8991. /* readonly */
  8992. String category;
  8993. float drawDistance;
  8994. bool enabled;
  8995. /* readonly */
  8996. bool enabledEffective;
  8997. /* readonly */
  8998. uint id;
  8999. /* readonly */
  9000. bool inView;
  9001. /* readonly */
  9002. Array<Node> instanceNodes;
  9003. uint lightMask;
  9004. float lodBias;
  9005. /* writeonly */
  9006. Material material;
  9007. Array<Material> materials;
  9008. uint maxLights;
  9009. Model model;
  9010. /* readonly */
  9011. Node node;
  9012. /* readonly */
  9013. uint numAttributes;
  9014. /* readonly */
  9015. uint numGeometries;
  9016. /* readonly */
  9017. uint numInstanceNodes;
  9018. ObjectAnimation objectAnimation;
  9019. bool occludee;
  9020. bool occluder;
  9021. uint occlusionLodLevel;
  9022. /* readonly */
  9023. int refs;
  9024. float shadowDistance;
  9025. uint shadowMask;
  9026. bool temporary;
  9027. /* readonly */
  9028. StringHash type;
  9029. /* readonly */
  9030. String typeName;
  9031. uint viewMask;
  9032. /* readonly */
  9033. int weakRefs;
  9034. /* readonly */
  9035. BoundingBox worldBoundingBox;
  9036. /* readonly */
  9037. Zone zone;
  9038. uint zoneMask;
  9039. };
  9040. class StaticSprite2D
  9041. {
  9042. // Methods:
  9043. void ApplyAttributes();
  9044. void DrawDebugGeometry(DebugRenderer, bool);
  9045. Variant GetAttribute(const String&) const;
  9046. ValueAnimation GetAttributeAnimation(const String&) const;
  9047. float GetAttributeAnimationSpeed(const String&) const;
  9048. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9049. Variant GetAttributeDefault(const String&) const;
  9050. bool IsInView(Camera) const;
  9051. bool Load(File, bool = false);
  9052. bool Load(VectorBuffer&, bool = false);
  9053. bool LoadXML(const XMLElement&, bool = false);
  9054. void MarkNetworkUpdate() const;
  9055. void Remove();
  9056. void RemoveInstanceDefault();
  9057. void ResetToDefault();
  9058. bool Save(File) const;
  9059. bool Save(VectorBuffer&) const;
  9060. bool SaveXML(XMLElement&) const;
  9061. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9062. bool SetAttribute(const String&, const Variant&);
  9063. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9064. void SetAttributeAnimationSpeed(const String&, float);
  9065. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9066. void SetFlip(bool, bool);
  9067. // Properties:
  9068. bool animationEnabled;
  9069. /* readonly */
  9070. Array<Variant> attributeDefaults;
  9071. /* readonly */
  9072. Array<AttributeInfo> attributeInfos;
  9073. Array<Variant> attributes;
  9074. /* readonly */
  9075. StringHash baseType;
  9076. BlendMode blendMode;
  9077. /* readonly */
  9078. BoundingBox boundingBox;
  9079. bool castShadows;
  9080. /* readonly */
  9081. String category;
  9082. Color color;
  9083. float drawDistance;
  9084. bool enabled;
  9085. /* readonly */
  9086. bool enabledEffective;
  9087. bool flipX;
  9088. bool flipY;
  9089. /* readonly */
  9090. uint id;
  9091. /* readonly */
  9092. bool inView;
  9093. int layer;
  9094. uint lightMask;
  9095. float lodBias;
  9096. uint maxLights;
  9097. /* readonly */
  9098. Node node;
  9099. /* readonly */
  9100. uint numAttributes;
  9101. ObjectAnimation objectAnimation;
  9102. bool occludee;
  9103. bool occluder;
  9104. int orderInLayer;
  9105. /* readonly */
  9106. int refs;
  9107. float shadowDistance;
  9108. uint shadowMask;
  9109. Sprite2D sprite;
  9110. bool temporary;
  9111. Texture2D texture;
  9112. /* readonly */
  9113. StringHash type;
  9114. /* readonly */
  9115. String typeName;
  9116. uint viewMask;
  9117. /* readonly */
  9118. int weakRefs;
  9119. /* readonly */
  9120. BoundingBox worldBoundingBox;
  9121. uint zoneMask;
  9122. };
  9123. class String
  9124. {
  9125. // Methods:
  9126. void AppendUTF8(uint);
  9127. uint AtUTF8(uint) const;
  9128. uint ByteOffsetUTF8(uint) const;
  9129. void Clear();
  9130. int Compare(const String&, bool = true) const;
  9131. bool Contains(const String&, bool = true) const;
  9132. bool Contains(uint8, bool = true) const;
  9133. bool EndsWith(const String&, bool = true) const;
  9134. uint Find(const String&, uint = 0, bool = true) const;
  9135. uint Find(uint8, uint = 0, bool = true) const;
  9136. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  9137. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  9138. void Join(Array<String>&, const String&);
  9139. uint NextUTF8Char(uint&) const;
  9140. void Replace(const String&, const String&, bool = true);
  9141. void Replace(uint8, uint8, bool = true);
  9142. void ReplaceUTF8(uint, uint);
  9143. String Replaced(const String&, const String&, bool = true) const;
  9144. String Replaced(uint8, uint8, bool = true) const;
  9145. void Resize(uint);
  9146. void SetUTF8FromLatin1(const String&);
  9147. Array<String> Split(uint8) const;
  9148. bool StartsWith(const String&, bool = true) const;
  9149. String Substring(uint) const;
  9150. String Substring(uint, uint) const;
  9151. String SubstringUTF8(uint) const;
  9152. String SubstringUTF8(uint, uint) const;
  9153. bool ToBool() const;
  9154. Color ToColor() const;
  9155. float ToFloat() const;
  9156. int ToInt() const;
  9157. IntRect ToIntRect() const;
  9158. IntVector2 ToIntVector2() const;
  9159. String ToLower() const;
  9160. Matrix3 ToMatrix3() const;
  9161. Matrix3x4 ToMatrix3x4() const;
  9162. Matrix4 ToMatrix4() const;
  9163. Quaternion ToQuaternion() const;
  9164. uint ToUInt() const;
  9165. String ToUpper() const;
  9166. Vector2 ToVector2() const;
  9167. Vector3 ToVector3() const;
  9168. Vector4 ToVector4(bool = false) const;
  9169. Variant ToVectorVariant() const;
  9170. String Trimmed() const;
  9171. // Properties:
  9172. /* readonly */
  9173. bool empty;
  9174. /* readonly */
  9175. uint length;
  9176. /* readonly */
  9177. uint utf8Length;
  9178. };
  9179. class StringHash
  9180. {
  9181. // Methods:
  9182. String ToString() const;
  9183. // Properties:
  9184. /* readonly */
  9185. uint value;
  9186. };
  9187. class Technique
  9188. {
  9189. // Methods:
  9190. Pass CreatePass(StringHash);
  9191. Pass GetPass(StringHash);
  9192. Pass GetSupportedPass(StringHash);
  9193. bool HasPass(StringHash) const;
  9194. bool Load(File);
  9195. bool Load(VectorBuffer&);
  9196. void RemovePass(StringHash);
  9197. bool Save(File) const;
  9198. bool Save(VectorBuffer&) const;
  9199. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9200. // Properties:
  9201. /* readonly */
  9202. StringHash baseType;
  9203. /* readonly */
  9204. String category;
  9205. bool desktop;
  9206. /* readonly */
  9207. uint memoryUse;
  9208. String name;
  9209. /* readonly */
  9210. uint numPasses;
  9211. /* readonly */
  9212. Array<StringHash> passTypes;
  9213. /* readonly */
  9214. Array<Pass> passes;
  9215. /* readonly */
  9216. int refs;
  9217. bool sm3;
  9218. /* readonly */
  9219. bool supported;
  9220. /* readonly */
  9221. StringHash type;
  9222. /* readonly */
  9223. String typeName;
  9224. /* readonly */
  9225. uint useTimer;
  9226. /* readonly */
  9227. int weakRefs;
  9228. };
  9229. class TechniqueEntry
  9230. {
  9231. // Properties:
  9232. float lodDistance;
  9233. int qualityLevel;
  9234. Technique technique;
  9235. };
  9236. class Terrain
  9237. {
  9238. // Methods:
  9239. void ApplyAttributes();
  9240. void ApplyHeightMap();
  9241. void DrawDebugGeometry(DebugRenderer, bool);
  9242. Variant GetAttribute(const String&) const;
  9243. ValueAnimation GetAttributeAnimation(const String&) const;
  9244. float GetAttributeAnimationSpeed(const String&) const;
  9245. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9246. Variant GetAttributeDefault(const String&) const;
  9247. float GetHeight(const Vector3&) const;
  9248. Vector3 GetNormal(const Vector3&) const;
  9249. TerrainPatch GetPatch(int, int) const;
  9250. bool Load(File, bool = false);
  9251. bool Load(VectorBuffer&, bool = false);
  9252. bool LoadXML(const XMLElement&, bool = false);
  9253. void MarkNetworkUpdate() const;
  9254. void Remove();
  9255. void RemoveInstanceDefault();
  9256. void ResetToDefault();
  9257. bool Save(File) const;
  9258. bool Save(VectorBuffer&) const;
  9259. bool SaveXML(XMLElement&) const;
  9260. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9261. bool SetAttribute(const String&, const Variant&);
  9262. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9263. void SetAttributeAnimationSpeed(const String&, float);
  9264. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9265. IntVector2 WorldToHeightMap(const Vector3&) const;
  9266. // Properties:
  9267. bool animationEnabled;
  9268. /* readonly */
  9269. Array<Variant> attributeDefaults;
  9270. /* readonly */
  9271. Array<AttributeInfo> attributeInfos;
  9272. Array<Variant> attributes;
  9273. /* readonly */
  9274. StringHash baseType;
  9275. bool castShadows;
  9276. /* readonly */
  9277. String category;
  9278. float drawDistance;
  9279. bool enabled;
  9280. /* readonly */
  9281. bool enabledEffective;
  9282. Image heightMap;
  9283. /* readonly */
  9284. uint id;
  9285. uint lightMask;
  9286. float lodBias;
  9287. Material material;
  9288. uint maxLights;
  9289. /* readonly */
  9290. Node node;
  9291. /* readonly */
  9292. uint numAttributes;
  9293. /* readonly */
  9294. IntVector2 numPatches;
  9295. /* readonly */
  9296. IntVector2 numVertices;
  9297. ObjectAnimation objectAnimation;
  9298. bool occludee;
  9299. bool occluder;
  9300. int patchSize;
  9301. /* readonly */
  9302. Array<TerrainPatch> patches;
  9303. /* readonly */
  9304. int refs;
  9305. float shadowDistance;
  9306. uint shadowMask;
  9307. bool smoothing;
  9308. Vector3 spacing;
  9309. bool temporary;
  9310. /* readonly */
  9311. StringHash type;
  9312. /* readonly */
  9313. String typeName;
  9314. uint viewMask;
  9315. /* readonly */
  9316. int weakRefs;
  9317. uint zoneMask;
  9318. };
  9319. class TerrainPatch
  9320. {
  9321. // Methods:
  9322. void ApplyAttributes();
  9323. void DrawDebugGeometry(DebugRenderer, bool);
  9324. Variant GetAttribute(const String&) const;
  9325. ValueAnimation GetAttributeAnimation(const String&) const;
  9326. float GetAttributeAnimationSpeed(const String&) const;
  9327. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9328. Variant GetAttributeDefault(const String&) const;
  9329. bool IsInView(Camera) const;
  9330. bool Load(File, bool = false);
  9331. bool Load(VectorBuffer&, bool = false);
  9332. bool LoadXML(const XMLElement&, bool = false);
  9333. void MarkNetworkUpdate() const;
  9334. void Remove();
  9335. void RemoveInstanceDefault();
  9336. void ResetToDefault();
  9337. bool Save(File) const;
  9338. bool Save(VectorBuffer&) const;
  9339. bool SaveXML(XMLElement&) const;
  9340. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9341. bool SetAttribute(const String&, const Variant&);
  9342. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9343. void SetAttributeAnimationSpeed(const String&, float);
  9344. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9345. // Properties:
  9346. bool animationEnabled;
  9347. /* readonly */
  9348. Array<Variant> attributeDefaults;
  9349. /* readonly */
  9350. Array<AttributeInfo> attributeInfos;
  9351. Array<Variant> attributes;
  9352. /* readonly */
  9353. StringHash baseType;
  9354. /* readonly */
  9355. BoundingBox boundingBox;
  9356. bool castShadows;
  9357. /* readonly */
  9358. String category;
  9359. float drawDistance;
  9360. bool enabled;
  9361. /* readonly */
  9362. bool enabledEffective;
  9363. /* readonly */
  9364. uint id;
  9365. /* readonly */
  9366. bool inView;
  9367. uint lightMask;
  9368. float lodBias;
  9369. uint maxLights;
  9370. /* readonly */
  9371. Node node;
  9372. /* readonly */
  9373. uint numAttributes;
  9374. ObjectAnimation objectAnimation;
  9375. bool occludee;
  9376. bool occluder;
  9377. /* readonly */
  9378. int refs;
  9379. float shadowDistance;
  9380. uint shadowMask;
  9381. bool temporary;
  9382. /* readonly */
  9383. StringHash type;
  9384. /* readonly */
  9385. String typeName;
  9386. uint viewMask;
  9387. /* readonly */
  9388. int weakRefs;
  9389. /* readonly */
  9390. BoundingBox worldBoundingBox;
  9391. uint zoneMask;
  9392. };
  9393. class Text
  9394. {
  9395. // Methods:
  9396. void AddChild(UIElement);
  9397. void ApplyAttributes();
  9398. void BringToFront();
  9399. void ClearSelection();
  9400. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9401. void DisableLayoutUpdate();
  9402. IntVector2 ElementToScreen(const IntVector2&);
  9403. void EnableLayoutUpdate();
  9404. uint FindChild(UIElement) const;
  9405. Variant GetAttribute(const String&) const;
  9406. ValueAnimation GetAttributeAnimation(const String&) const;
  9407. float GetAttributeAnimationSpeed(const String&) const;
  9408. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9409. Variant GetAttributeDefault(const String&) const;
  9410. UIElement GetChild(const String&, bool = false) const;
  9411. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9412. Array<UIElement> GetChildren(bool = false) const;
  9413. UIElement GetElementEventSender() const;
  9414. uint GetNumChildren(bool) const;
  9415. void InsertChild(uint, UIElement);
  9416. bool IsInside(IntVector2, bool);
  9417. bool IsInsideCombined(IntVector2, bool);
  9418. bool Load(File, bool = false);
  9419. bool Load(VectorBuffer&, bool = false);
  9420. bool LoadChildXML(XMLFile, XMLFile = null);
  9421. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9422. bool LoadXML(File);
  9423. bool LoadXML(VectorBuffer&);
  9424. bool LoadXML(XMLFile, XMLFile);
  9425. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9426. bool LoadXML(const XMLElement&, bool = false);
  9427. void MarkNetworkUpdate() const;
  9428. void Remove();
  9429. void RemoveAllChildren();
  9430. void RemoveChild(UIElement, uint = 0);
  9431. void RemoveChild(uint);
  9432. void RemoveInstanceDefault();
  9433. void ResetDeepEnabled();
  9434. void ResetToDefault();
  9435. bool Save(File) const;
  9436. bool Save(VectorBuffer&) const;
  9437. bool SaveXML(File);
  9438. bool SaveXML(VectorBuffer&);
  9439. bool SaveXML(XMLElement&) const;
  9440. IntVector2 ScreenToElement(const IntVector2&);
  9441. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9442. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9443. bool SetAttribute(const String&, const Variant&);
  9444. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9445. void SetAttributeAnimationSpeed(const String&, float);
  9446. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9447. void SetDeepEnabled(bool);
  9448. void SetEnabledRecursive(bool);
  9449. void SetFixedHeight(int);
  9450. void SetFixedSize(int, int);
  9451. void SetFixedWidth(int);
  9452. bool SetFont(Font, int);
  9453. bool SetFont(const String&, int);
  9454. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9455. void SetMaxSize(int, int);
  9456. void SetMinSize(int, int);
  9457. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9458. void SetPosition(int, int);
  9459. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  9460. void SetSize(int, int);
  9461. bool SetStyle(const String&, XMLFile = null);
  9462. bool SetStyle(const XMLElement&);
  9463. bool SetStyleAuto(XMLFile = null);
  9464. void UpdateLayout();
  9465. const Variant& GetVar(const StringHash&);
  9466. // Properties:
  9467. bool animationEnabled;
  9468. /* readonly */
  9469. Array<Variant> attributeDefaults;
  9470. /* readonly */
  9471. Array<AttributeInfo> attributeInfos;
  9472. Array<Variant> attributes;
  9473. /* readonly */
  9474. StringHash baseType;
  9475. bool bringToBack;
  9476. bool bringToFront;
  9477. /* readonly */
  9478. String category;
  9479. /* readonly */
  9480. Array<IntVector2> charPositions;
  9481. /* readonly */
  9482. Array<IntVector2> charSizes;
  9483. /* readonly */
  9484. IntVector2 childOffset;
  9485. /* readonly */
  9486. Array<UIElement> children;
  9487. IntRect clipBorder;
  9488. bool clipChildren;
  9489. /* writeonly */
  9490. Color color;
  9491. /* readonly */
  9492. bool colorGradient;
  9493. Array<Color> colors;
  9494. /* readonly */
  9495. IntRect combinedScreenRect;
  9496. XMLFile defaultStyle;
  9497. /* readonly */
  9498. float derivedOpacity;
  9499. /* readonly */
  9500. uint dragButtonCombo;
  9501. /* readonly */
  9502. int dragButtonCount;
  9503. uint dragDropMode;
  9504. bool editable;
  9505. Color effectColor;
  9506. bool elementEventSender;
  9507. bool enabled;
  9508. /* readonly */
  9509. bool enabledSelf;
  9510. /* readonly */
  9511. bool fixedHeight;
  9512. /* readonly */
  9513. bool fixedSize;
  9514. /* readonly */
  9515. bool fixedWidth;
  9516. bool focus;
  9517. FocusMode focusMode;
  9518. /* readonly */
  9519. Font font;
  9520. /* readonly */
  9521. int fontSize;
  9522. int height;
  9523. HorizontalAlignment horizontalAlignment;
  9524. Color hoverColor;
  9525. /* readonly */
  9526. bool hovering;
  9527. int indent;
  9528. int indentSpacing;
  9529. /* readonly */
  9530. int indentWidth;
  9531. bool internal;
  9532. IntRect layoutBorder;
  9533. Vector2 layoutFlexScale;
  9534. LayoutMode layoutMode;
  9535. int layoutSpacing;
  9536. int maxHeight;
  9537. IntVector2 maxSize;
  9538. int maxWidth;
  9539. int minHeight;
  9540. IntVector2 minSize;
  9541. int minWidth;
  9542. String name;
  9543. /* readonly */
  9544. uint numAllChildren;
  9545. /* readonly */
  9546. uint numAttributes;
  9547. /* readonly */
  9548. uint numChars;
  9549. /* readonly */
  9550. uint numChildren;
  9551. /* readonly */
  9552. uint numRows;
  9553. ObjectAnimation objectAnimation;
  9554. float opacity;
  9555. UIElement parent;
  9556. IntVector2 position;
  9557. int priority;
  9558. /* readonly */
  9559. int refs;
  9560. /* readonly */
  9561. UIElement root;
  9562. /* readonly */
  9563. int rowHeight;
  9564. float rowSpacing;
  9565. /* readonly */
  9566. Array<int> rowWidths;
  9567. /* readonly */
  9568. IntVector2 screenPosition;
  9569. bool selected;
  9570. Color selectionColor;
  9571. /* readonly */
  9572. uint selectionLength;
  9573. /* readonly */
  9574. uint selectionStart;
  9575. IntVector2 size;
  9576. bool sortChildren;
  9577. String style;
  9578. bool temporary;
  9579. String text;
  9580. HorizontalAlignment textAlignment;
  9581. TextEffect textEffect;
  9582. TraversalMode traversalMode;
  9583. /* readonly */
  9584. StringHash type;
  9585. /* readonly */
  9586. String typeName;
  9587. bool useDerivedOpacity;
  9588. /* readonly */
  9589. VariantMap vars;
  9590. VerticalAlignment verticalAlignment;
  9591. bool visible;
  9592. /* readonly */
  9593. int weakRefs;
  9594. int width;
  9595. bool wordwrap;
  9596. };
  9597. class Text3D
  9598. {
  9599. // Methods:
  9600. void ApplyAttributes();
  9601. void DrawDebugGeometry(DebugRenderer, bool);
  9602. Variant GetAttribute(const String&) const;
  9603. ValueAnimation GetAttributeAnimation(const String&) const;
  9604. float GetAttributeAnimationSpeed(const String&) const;
  9605. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9606. Variant GetAttributeDefault(const String&) const;
  9607. bool IsInView(Camera) const;
  9608. bool Load(File, bool = false);
  9609. bool Load(VectorBuffer&, bool = false);
  9610. bool LoadXML(const XMLElement&, bool = false);
  9611. void MarkNetworkUpdate() const;
  9612. void Remove();
  9613. void RemoveInstanceDefault();
  9614. void ResetToDefault();
  9615. bool Save(File) const;
  9616. bool Save(VectorBuffer&) const;
  9617. bool SaveXML(XMLElement&) const;
  9618. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9619. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9620. bool SetAttribute(const String&, const Variant&);
  9621. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9622. void SetAttributeAnimationSpeed(const String&, float);
  9623. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9624. bool SetFont(Font, int);
  9625. bool SetFont(const String&, int);
  9626. // Properties:
  9627. bool animationEnabled;
  9628. /* readonly */
  9629. Array<Variant> attributeDefaults;
  9630. /* readonly */
  9631. Array<AttributeInfo> attributeInfos;
  9632. Array<Variant> attributes;
  9633. /* readonly */
  9634. StringHash baseType;
  9635. /* readonly */
  9636. BoundingBox boundingBox;
  9637. bool castShadows;
  9638. /* readonly */
  9639. String category;
  9640. /* readonly */
  9641. Array<IntVector2> charPositions;
  9642. /* readonly */
  9643. Array<IntVector2> charSizes;
  9644. /* writeonly */
  9645. Color color;
  9646. Array<Color> colors;
  9647. float drawDistance;
  9648. Color effectColor;
  9649. float effectDepthBias;
  9650. bool enabled;
  9651. /* readonly */
  9652. bool enabledEffective;
  9653. FaceCameraMode faceCameraMode;
  9654. /* readonly */
  9655. Font font;
  9656. /* readonly */
  9657. int fontSize;
  9658. HorizontalAlignment horizontalAlignment;
  9659. /* readonly */
  9660. uint id;
  9661. /* readonly */
  9662. bool inView;
  9663. uint lightMask;
  9664. float lodBias;
  9665. Material material;
  9666. uint maxLights;
  9667. /* readonly */
  9668. Node node;
  9669. /* readonly */
  9670. uint numAttributes;
  9671. /* readonly */
  9672. uint numChars;
  9673. /* readonly */
  9674. uint numRows;
  9675. ObjectAnimation objectAnimation;
  9676. bool occludee;
  9677. bool occluder;
  9678. float opacity;
  9679. /* readonly */
  9680. int refs;
  9681. /* readonly */
  9682. int rowHeight;
  9683. float rowSpacing;
  9684. /* readonly */
  9685. Array<int> rowWidths;
  9686. float shadowDistance;
  9687. uint shadowMask;
  9688. bool temporary;
  9689. String text;
  9690. HorizontalAlignment textAlignment;
  9691. TextEffect textEffect;
  9692. /* readonly */
  9693. StringHash type;
  9694. /* readonly */
  9695. String typeName;
  9696. VerticalAlignment verticalAlignment;
  9697. uint viewMask;
  9698. /* readonly */
  9699. int weakRefs;
  9700. int width;
  9701. bool wordwrap;
  9702. /* readonly */
  9703. BoundingBox worldBoundingBox;
  9704. uint zoneMask;
  9705. };
  9706. class Texture
  9707. {
  9708. // Methods:
  9709. void ClearDataLost();
  9710. bool Load(File);
  9711. bool Load(VectorBuffer&);
  9712. bool Save(File) const;
  9713. bool Save(VectorBuffer&) const;
  9714. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9715. void SetNumLevels(uint);
  9716. // Properties:
  9717. Array<TextureAddressMode> addressMode;
  9718. Texture backupTexture;
  9719. /* readonly */
  9720. StringHash baseType;
  9721. Color borderColor;
  9722. /* readonly */
  9723. String category;
  9724. /* readonly */
  9725. bool compressed;
  9726. /* readonly */
  9727. bool dataLost;
  9728. TextureFilterMode filterMode;
  9729. /* readonly */
  9730. uint format;
  9731. /* readonly */
  9732. int height;
  9733. /* readonly */
  9734. Array<int> levelHeight;
  9735. /* readonly */
  9736. Array<int> levelWidth;
  9737. /* readonly */
  9738. uint levels;
  9739. /* readonly */
  9740. uint memoryUse;
  9741. Array<int> mipsToSkip;
  9742. String name;
  9743. /* readonly */
  9744. int refs;
  9745. bool sRGB;
  9746. /* readonly */
  9747. StringHash type;
  9748. /* readonly */
  9749. String typeName;
  9750. /* readonly */
  9751. TextureUsage usage;
  9752. /* readonly */
  9753. uint useTimer;
  9754. /* readonly */
  9755. int weakRefs;
  9756. /* readonly */
  9757. int width;
  9758. };
  9759. class Texture2D
  9760. {
  9761. // Methods:
  9762. void ClearDataLost();
  9763. bool Load(File);
  9764. bool Load(VectorBuffer&);
  9765. bool Save(File) const;
  9766. bool Save(VectorBuffer&) const;
  9767. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9768. bool SetData(Image, bool = false);
  9769. void SetNumLevels(uint);
  9770. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  9771. // Properties:
  9772. Array<TextureAddressMode> addressMode;
  9773. Texture backupTexture;
  9774. /* readonly */
  9775. StringHash baseType;
  9776. Color borderColor;
  9777. /* readonly */
  9778. String category;
  9779. /* readonly */
  9780. bool compressed;
  9781. /* readonly */
  9782. bool dataLost;
  9783. TextureFilterMode filterMode;
  9784. /* readonly */
  9785. uint format;
  9786. /* readonly */
  9787. int height;
  9788. /* readonly */
  9789. Array<int> levelHeight;
  9790. /* readonly */
  9791. Array<int> levelWidth;
  9792. /* readonly */
  9793. uint levels;
  9794. /* readonly */
  9795. uint memoryUse;
  9796. Array<int> mipsToSkip;
  9797. String name;
  9798. /* readonly */
  9799. int refs;
  9800. /* readonly */
  9801. RenderSurface renderSurface;
  9802. bool sRGB;
  9803. /* readonly */
  9804. StringHash type;
  9805. /* readonly */
  9806. String typeName;
  9807. /* readonly */
  9808. TextureUsage usage;
  9809. /* readonly */
  9810. uint useTimer;
  9811. /* readonly */
  9812. int weakRefs;
  9813. /* readonly */
  9814. int width;
  9815. };
  9816. class Texture3D
  9817. {
  9818. // Methods:
  9819. void ClearDataLost();
  9820. bool Load(File);
  9821. bool Load(VectorBuffer&);
  9822. bool Save(File) const;
  9823. bool Save(VectorBuffer&) const;
  9824. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9825. bool SetData(Image, bool = false);
  9826. void SetNumLevels(uint);
  9827. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  9828. // Properties:
  9829. Array<TextureAddressMode> addressMode;
  9830. Texture backupTexture;
  9831. /* readonly */
  9832. StringHash baseType;
  9833. Color borderColor;
  9834. /* readonly */
  9835. String category;
  9836. /* readonly */
  9837. bool compressed;
  9838. /* readonly */
  9839. bool dataLost;
  9840. TextureFilterMode filterMode;
  9841. /* readonly */
  9842. uint format;
  9843. /* readonly */
  9844. int height;
  9845. /* readonly */
  9846. Array<int> levelHeight;
  9847. /* readonly */
  9848. Array<int> levelWidth;
  9849. /* readonly */
  9850. uint levels;
  9851. /* readonly */
  9852. uint memoryUse;
  9853. Array<int> mipsToSkip;
  9854. String name;
  9855. /* readonly */
  9856. int refs;
  9857. /* readonly */
  9858. RenderSurface renderSurface;
  9859. bool sRGB;
  9860. /* readonly */
  9861. StringHash type;
  9862. /* readonly */
  9863. String typeName;
  9864. /* readonly */
  9865. TextureUsage usage;
  9866. /* readonly */
  9867. uint useTimer;
  9868. /* readonly */
  9869. int weakRefs;
  9870. /* readonly */
  9871. int width;
  9872. };
  9873. class TextureCube
  9874. {
  9875. // Methods:
  9876. void ClearDataLost();
  9877. bool Load(File);
  9878. bool Load(VectorBuffer&);
  9879. bool Save(File) const;
  9880. bool Save(VectorBuffer&) const;
  9881. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9882. bool SetData(CubeMapFace, Image, bool = false);
  9883. void SetNumLevels(uint);
  9884. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  9885. // Properties:
  9886. Array<TextureAddressMode> addressMode;
  9887. Texture backupTexture;
  9888. /* readonly */
  9889. StringHash baseType;
  9890. Color borderColor;
  9891. /* readonly */
  9892. String category;
  9893. /* readonly */
  9894. bool compressed;
  9895. /* readonly */
  9896. bool dataLost;
  9897. TextureFilterMode filterMode;
  9898. /* readonly */
  9899. uint format;
  9900. /* readonly */
  9901. int height;
  9902. /* readonly */
  9903. Array<int> levelHeight;
  9904. /* readonly */
  9905. Array<int> levelWidth;
  9906. /* readonly */
  9907. uint levels;
  9908. /* readonly */
  9909. uint memoryUse;
  9910. Array<int> mipsToSkip;
  9911. String name;
  9912. /* readonly */
  9913. int refs;
  9914. /* readonly */
  9915. Array<RenderSurface> renderSurfaces;
  9916. bool sRGB;
  9917. /* readonly */
  9918. StringHash type;
  9919. /* readonly */
  9920. String typeName;
  9921. /* readonly */
  9922. TextureUsage usage;
  9923. /* readonly */
  9924. uint useTimer;
  9925. /* readonly */
  9926. int weakRefs;
  9927. /* readonly */
  9928. int width;
  9929. };
  9930. class TextureFrame
  9931. {
  9932. // Properties:
  9933. float time;
  9934. Rect uv;
  9935. };
  9936. class Tile2D
  9937. {
  9938. // Methods:
  9939. bool HasProperty(const String&) const;
  9940. const String& GetProperty(const String&) const;
  9941. // Properties:
  9942. /* readonly */
  9943. int gid;
  9944. /* readonly */
  9945. int refs;
  9946. /* readonly */
  9947. Sprite2D sprite;
  9948. /* readonly */
  9949. int weakRefs;
  9950. };
  9951. class TileMap2D
  9952. {
  9953. // Methods:
  9954. void ApplyAttributes();
  9955. void DrawDebugGeometry(DebugRenderer, bool);
  9956. Variant GetAttribute(const String&) const;
  9957. ValueAnimation GetAttributeAnimation(const String&) const;
  9958. float GetAttributeAnimationSpeed(const String&) const;
  9959. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9960. Variant GetAttributeDefault(const String&) const;
  9961. TileMapLayer2D GetLayer(uint) const;
  9962. bool Load(File, bool = false);
  9963. bool Load(VectorBuffer&, bool = false);
  9964. bool LoadXML(const XMLElement&, bool = false);
  9965. void MarkNetworkUpdate() const;
  9966. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  9967. void Remove();
  9968. void RemoveInstanceDefault();
  9969. void ResetToDefault();
  9970. bool Save(File) const;
  9971. bool Save(VectorBuffer&) const;
  9972. bool SaveXML(XMLElement&) const;
  9973. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9974. bool SetAttribute(const String&, const Variant&);
  9975. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9976. void SetAttributeAnimationSpeed(const String&, float);
  9977. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9978. Vector2 TileIndexToPosition(int, int) const;
  9979. // Properties:
  9980. bool animationEnabled;
  9981. /* readonly */
  9982. Array<Variant> attributeDefaults;
  9983. /* readonly */
  9984. Array<AttributeInfo> attributeInfos;
  9985. Array<Variant> attributes;
  9986. /* readonly */
  9987. StringHash baseType;
  9988. /* readonly */
  9989. String category;
  9990. bool enabled;
  9991. /* readonly */
  9992. bool enabledEffective;
  9993. /* readonly */
  9994. uint id;
  9995. /* readonly */
  9996. TileMapInfo2D info;
  9997. /* readonly */
  9998. Node node;
  9999. /* readonly */
  10000. uint numAttributes;
  10001. /* readonly */
  10002. uint numLayers;
  10003. ObjectAnimation objectAnimation;
  10004. /* readonly */
  10005. int refs;
  10006. bool temporary;
  10007. TmxFile2D tmxFile;
  10008. /* readonly */
  10009. StringHash type;
  10010. /* readonly */
  10011. String typeName;
  10012. /* readonly */
  10013. int weakRefs;
  10014. };
  10015. class TileMapInfo2D
  10016. {
  10017. // Properties:
  10018. int height;
  10019. /* readonly */
  10020. float mapHeight;
  10021. /* readonly */
  10022. float mapWidth;
  10023. Orientation2D orientation;
  10024. float tileHeight;
  10025. float tileWidth;
  10026. int width;
  10027. };
  10028. class TileMapLayer2D
  10029. {
  10030. // Methods:
  10031. void ApplyAttributes();
  10032. void DrawDebugGeometry(DebugRenderer, bool);
  10033. Variant GetAttribute(const String&) const;
  10034. ValueAnimation GetAttributeAnimation(const String&) const;
  10035. float GetAttributeAnimationSpeed(const String&) const;
  10036. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10037. Variant GetAttributeDefault(const String&) const;
  10038. TileMapObject2D GetObject(uint) const;
  10039. Node GetObjectNode(uint) const;
  10040. Tile2D GetTile(int, int) const;
  10041. Node GetTileNode(int, int) const;
  10042. bool HasProperty(const String&) const;
  10043. bool Load(File, bool = false);
  10044. bool Load(VectorBuffer&, bool = false);
  10045. bool LoadXML(const XMLElement&, bool = false);
  10046. void MarkNetworkUpdate() const;
  10047. void Remove();
  10048. void RemoveInstanceDefault();
  10049. void ResetToDefault();
  10050. bool Save(File) const;
  10051. bool Save(VectorBuffer&) const;
  10052. bool SaveXML(XMLElement&) const;
  10053. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10054. bool SetAttribute(const String&, const Variant&);
  10055. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10056. void SetAttributeAnimationSpeed(const String&, float);
  10057. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10058. const String& GetProperty(const String&) const;
  10059. // Properties:
  10060. bool animationEnabled;
  10061. /* readonly */
  10062. Array<Variant> attributeDefaults;
  10063. /* readonly */
  10064. Array<AttributeInfo> attributeInfos;
  10065. Array<Variant> attributes;
  10066. /* readonly */
  10067. StringHash baseType;
  10068. /* readonly */
  10069. String category;
  10070. int drawOrder;
  10071. bool enabled;
  10072. /* readonly */
  10073. bool enabledEffective;
  10074. /* readonly */
  10075. int height;
  10076. /* readonly */
  10077. uint id;
  10078. /* readonly */
  10079. Node imageNode;
  10080. /* readonly */
  10081. TileMapLayerType2D layerType;
  10082. /* readonly */
  10083. Node node;
  10084. /* readonly */
  10085. uint numAttributes;
  10086. /* readonly */
  10087. uint numObjects;
  10088. ObjectAnimation objectAnimation;
  10089. /* readonly */
  10090. int refs;
  10091. bool temporary;
  10092. /* readonly */
  10093. StringHash type;
  10094. /* readonly */
  10095. String typeName;
  10096. bool visible;
  10097. /* readonly */
  10098. int weakRefs;
  10099. /* readonly */
  10100. int width;
  10101. };
  10102. class TileMapObject2D
  10103. {
  10104. // Methods:
  10105. bool HasProperty(const String&) const;
  10106. const String& GetProperty(const String&) const;
  10107. const Vector2& GetPoint(uint) const;
  10108. // Properties:
  10109. /* readonly */
  10110. String name;
  10111. /* readonly */
  10112. uint numPoints;
  10113. /* readonly */
  10114. TileObjectType2D objectType;
  10115. /* readonly */
  10116. Vector2 position;
  10117. /* readonly */
  10118. int refs;
  10119. /* readonly */
  10120. Vector2 size;
  10121. /* readonly */
  10122. int tileGid;
  10123. /* readonly */
  10124. Sprite2D tileSprite;
  10125. /* readonly */
  10126. String type;
  10127. /* readonly */
  10128. int weakRefs;
  10129. };
  10130. class Time
  10131. {
  10132. // Methods:
  10133. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10134. // Properties:
  10135. /* readonly */
  10136. StringHash baseType;
  10137. /* readonly */
  10138. String category;
  10139. /* readonly */
  10140. float elapsedTime;
  10141. /* readonly */
  10142. uint frameNumber;
  10143. /* readonly */
  10144. int refs;
  10145. /* readonly */
  10146. uint systemTime;
  10147. /* readonly */
  10148. uint timeSinceEpoch;
  10149. /* readonly */
  10150. String timeStamp;
  10151. /* readonly */
  10152. float timeStep;
  10153. /* readonly */
  10154. StringHash type;
  10155. /* readonly */
  10156. String typeName;
  10157. /* readonly */
  10158. int weakRefs;
  10159. };
  10160. class Timer
  10161. {
  10162. // Methods:
  10163. uint GetMSec(bool);
  10164. void Reset();
  10165. };
  10166. class TmxFile2D
  10167. {
  10168. // Methods:
  10169. bool Load(File);
  10170. bool Load(VectorBuffer&);
  10171. bool Save(File) const;
  10172. bool Save(VectorBuffer&) const;
  10173. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10174. // Properties:
  10175. /* readonly */
  10176. StringHash baseType;
  10177. /* readonly */
  10178. String category;
  10179. /* readonly */
  10180. uint memoryUse;
  10181. String name;
  10182. /* readonly */
  10183. int refs;
  10184. /* readonly */
  10185. StringHash type;
  10186. /* readonly */
  10187. String typeName;
  10188. /* readonly */
  10189. uint useTimer;
  10190. /* readonly */
  10191. int weakRefs;
  10192. };
  10193. class ToolTip
  10194. {
  10195. // Methods:
  10196. void AddChild(UIElement);
  10197. void ApplyAttributes();
  10198. void BringToFront();
  10199. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10200. void DisableLayoutUpdate();
  10201. IntVector2 ElementToScreen(const IntVector2&);
  10202. void EnableLayoutUpdate();
  10203. uint FindChild(UIElement) const;
  10204. Variant GetAttribute(const String&) const;
  10205. ValueAnimation GetAttributeAnimation(const String&) const;
  10206. float GetAttributeAnimationSpeed(const String&) const;
  10207. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10208. Variant GetAttributeDefault(const String&) const;
  10209. UIElement GetChild(const String&, bool = false) const;
  10210. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10211. Array<UIElement> GetChildren(bool = false) const;
  10212. UIElement GetElementEventSender() const;
  10213. uint GetNumChildren(bool) const;
  10214. void InsertChild(uint, UIElement);
  10215. bool IsInside(IntVector2, bool);
  10216. bool IsInsideCombined(IntVector2, bool);
  10217. bool Load(File, bool = false);
  10218. bool Load(VectorBuffer&, bool = false);
  10219. bool LoadChildXML(XMLFile, XMLFile = null);
  10220. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10221. bool LoadXML(File);
  10222. bool LoadXML(VectorBuffer&);
  10223. bool LoadXML(XMLFile, XMLFile);
  10224. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10225. bool LoadXML(const XMLElement&, bool = false);
  10226. void MarkNetworkUpdate() const;
  10227. void Remove();
  10228. void RemoveAllChildren();
  10229. void RemoveChild(UIElement, uint = 0);
  10230. void RemoveChild(uint);
  10231. void RemoveInstanceDefault();
  10232. void ResetDeepEnabled();
  10233. void ResetToDefault();
  10234. bool Save(File) const;
  10235. bool Save(VectorBuffer&) const;
  10236. bool SaveXML(File);
  10237. bool SaveXML(VectorBuffer&);
  10238. bool SaveXML(XMLElement&) const;
  10239. IntVector2 ScreenToElement(const IntVector2&);
  10240. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10241. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10242. bool SetAttribute(const String&, const Variant&);
  10243. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10244. void SetAttributeAnimationSpeed(const String&, float);
  10245. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10246. void SetDeepEnabled(bool);
  10247. void SetEnabledRecursive(bool);
  10248. void SetFixedHeight(int);
  10249. void SetFixedSize(int, int);
  10250. void SetFixedWidth(int);
  10251. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10252. void SetMaxSize(int, int);
  10253. void SetMinSize(int, int);
  10254. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10255. void SetPosition(int, int);
  10256. void SetSize(int, int);
  10257. bool SetStyle(const String&, XMLFile = null);
  10258. bool SetStyle(const XMLElement&);
  10259. bool SetStyleAuto(XMLFile = null);
  10260. void UpdateLayout();
  10261. const Variant& GetVar(const StringHash&);
  10262. // Properties:
  10263. bool animationEnabled;
  10264. /* readonly */
  10265. Array<Variant> attributeDefaults;
  10266. /* readonly */
  10267. Array<AttributeInfo> attributeInfos;
  10268. Array<Variant> attributes;
  10269. /* readonly */
  10270. StringHash baseType;
  10271. bool bringToBack;
  10272. bool bringToFront;
  10273. /* readonly */
  10274. String category;
  10275. /* readonly */
  10276. IntVector2 childOffset;
  10277. /* readonly */
  10278. Array<UIElement> children;
  10279. IntRect clipBorder;
  10280. bool clipChildren;
  10281. /* writeonly */
  10282. Color color;
  10283. /* readonly */
  10284. bool colorGradient;
  10285. Array<Color> colors;
  10286. /* readonly */
  10287. IntRect combinedScreenRect;
  10288. XMLFile defaultStyle;
  10289. float delay;
  10290. /* readonly */
  10291. float derivedOpacity;
  10292. /* readonly */
  10293. uint dragButtonCombo;
  10294. /* readonly */
  10295. int dragButtonCount;
  10296. uint dragDropMode;
  10297. bool editable;
  10298. bool elementEventSender;
  10299. bool enabled;
  10300. /* readonly */
  10301. bool enabledSelf;
  10302. /* readonly */
  10303. bool fixedHeight;
  10304. /* readonly */
  10305. bool fixedSize;
  10306. /* readonly */
  10307. bool fixedWidth;
  10308. bool focus;
  10309. FocusMode focusMode;
  10310. int height;
  10311. HorizontalAlignment horizontalAlignment;
  10312. /* readonly */
  10313. bool hovering;
  10314. int indent;
  10315. int indentSpacing;
  10316. /* readonly */
  10317. int indentWidth;
  10318. bool internal;
  10319. IntRect layoutBorder;
  10320. Vector2 layoutFlexScale;
  10321. LayoutMode layoutMode;
  10322. int layoutSpacing;
  10323. int maxHeight;
  10324. IntVector2 maxSize;
  10325. int maxWidth;
  10326. int minHeight;
  10327. IntVector2 minSize;
  10328. int minWidth;
  10329. String name;
  10330. /* readonly */
  10331. uint numAllChildren;
  10332. /* readonly */
  10333. uint numAttributes;
  10334. /* readonly */
  10335. uint numChildren;
  10336. ObjectAnimation objectAnimation;
  10337. float opacity;
  10338. UIElement parent;
  10339. IntVector2 position;
  10340. int priority;
  10341. /* readonly */
  10342. int refs;
  10343. /* readonly */
  10344. UIElement root;
  10345. /* readonly */
  10346. IntVector2 screenPosition;
  10347. bool selected;
  10348. IntVector2 size;
  10349. bool sortChildren;
  10350. String style;
  10351. bool temporary;
  10352. TraversalMode traversalMode;
  10353. /* readonly */
  10354. StringHash type;
  10355. /* readonly */
  10356. String typeName;
  10357. bool useDerivedOpacity;
  10358. /* readonly */
  10359. VariantMap vars;
  10360. VerticalAlignment verticalAlignment;
  10361. bool visible;
  10362. /* readonly */
  10363. int weakRefs;
  10364. int width;
  10365. };
  10366. class TouchState
  10367. {
  10368. // Properties:
  10369. IntVector2 delta;
  10370. IntVector2 lastPosition;
  10371. IntVector2 position;
  10372. float pressure;
  10373. int touchID;
  10374. /* readonly */
  10375. UIElement touchedElement;
  10376. };
  10377. class UI
  10378. {
  10379. // Methods:
  10380. void Clear();
  10381. void DebugDraw(UIElement);
  10382. UIElement GetElementAt(const IntVector2&, bool = true);
  10383. UIElement GetElementAt(int, int, bool = true);
  10384. bool HasModalElement() const;
  10385. bool IsDragging() const;
  10386. UIElement LoadLayout(File);
  10387. UIElement LoadLayout(File, XMLFile);
  10388. UIElement LoadLayout(VectorBuffer&);
  10389. UIElement LoadLayout(VectorBuffer&, XMLFile);
  10390. UIElement LoadLayout(XMLFile);
  10391. UIElement LoadLayout(XMLFile, XMLFile);
  10392. bool SaveLayout(File, UIElement);
  10393. bool SaveLayout(VectorBuffer&, UIElement);
  10394. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10395. void SetFocusElement(UIElement, bool = false);
  10396. const Array<UIElement> GetDragElements();
  10397. // Properties:
  10398. /* readonly */
  10399. StringHash baseType;
  10400. /* readonly */
  10401. String category;
  10402. String clipBoardText;
  10403. Cursor cursor;
  10404. /* readonly */
  10405. IntVector2 cursorPosition;
  10406. float defaultToolTipDelay;
  10407. float doubleClickInterval;
  10408. int dragBeginDistance;
  10409. float dragBeginInterval;
  10410. UIElement focusElement;
  10411. bool forceAutoHint;
  10412. /* readonly */
  10413. UIElement frontElement;
  10414. int maxFontTextureSize;
  10415. /* readonly */
  10416. UIElement modalRoot;
  10417. bool nonFocusedMouseWheel;
  10418. /* readonly */
  10419. int refs;
  10420. /* readonly */
  10421. UIElement root;
  10422. /* readonly */
  10423. StringHash type;
  10424. /* readonly */
  10425. String typeName;
  10426. bool useMutableGlyphs;
  10427. bool useScreenKeyboard;
  10428. bool useSystemClipboard;
  10429. /* readonly */
  10430. int weakRefs;
  10431. };
  10432. class UIElement
  10433. {
  10434. // Methods:
  10435. void AddChild(UIElement);
  10436. void ApplyAttributes();
  10437. void BringToFront();
  10438. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10439. void DisableLayoutUpdate();
  10440. IntVector2 ElementToScreen(const IntVector2&);
  10441. void EnableLayoutUpdate();
  10442. uint FindChild(UIElement) const;
  10443. Variant GetAttribute(const String&) const;
  10444. ValueAnimation GetAttributeAnimation(const String&) const;
  10445. float GetAttributeAnimationSpeed(const String&) const;
  10446. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10447. Variant GetAttributeDefault(const String&) const;
  10448. UIElement GetChild(const String&, bool = false) const;
  10449. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10450. Array<UIElement> GetChildren(bool = false) const;
  10451. UIElement GetElementEventSender() const;
  10452. uint GetNumChildren(bool) const;
  10453. void InsertChild(uint, UIElement);
  10454. bool IsInside(IntVector2, bool);
  10455. bool IsInsideCombined(IntVector2, bool);
  10456. bool Load(File, bool = false);
  10457. bool Load(VectorBuffer&, bool = false);
  10458. bool LoadChildXML(XMLFile, XMLFile = null);
  10459. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10460. bool LoadXML(File);
  10461. bool LoadXML(VectorBuffer&);
  10462. bool LoadXML(XMLFile, XMLFile);
  10463. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10464. bool LoadXML(const XMLElement&, bool = false);
  10465. void MarkNetworkUpdate() const;
  10466. void Remove();
  10467. void RemoveAllChildren();
  10468. void RemoveChild(UIElement, uint = 0);
  10469. void RemoveChild(uint);
  10470. void RemoveInstanceDefault();
  10471. void ResetDeepEnabled();
  10472. void ResetToDefault();
  10473. bool Save(File) const;
  10474. bool Save(VectorBuffer&) const;
  10475. bool SaveXML(File);
  10476. bool SaveXML(VectorBuffer&);
  10477. bool SaveXML(XMLElement&) const;
  10478. IntVector2 ScreenToElement(const IntVector2&);
  10479. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10480. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10481. bool SetAttribute(const String&, const Variant&);
  10482. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10483. void SetAttributeAnimationSpeed(const String&, float);
  10484. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10485. void SetDeepEnabled(bool);
  10486. void SetEnabledRecursive(bool);
  10487. void SetFixedHeight(int);
  10488. void SetFixedSize(int, int);
  10489. void SetFixedWidth(int);
  10490. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10491. void SetMaxSize(int, int);
  10492. void SetMinSize(int, int);
  10493. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10494. void SetPosition(int, int);
  10495. void SetSize(int, int);
  10496. bool SetStyle(const String&, XMLFile = null);
  10497. bool SetStyle(const XMLElement&);
  10498. bool SetStyleAuto(XMLFile = null);
  10499. void UpdateLayout();
  10500. const Variant& GetVar(const StringHash&);
  10501. // Properties:
  10502. bool animationEnabled;
  10503. /* readonly */
  10504. Array<Variant> attributeDefaults;
  10505. /* readonly */
  10506. Array<AttributeInfo> attributeInfos;
  10507. Array<Variant> attributes;
  10508. /* readonly */
  10509. StringHash baseType;
  10510. bool bringToBack;
  10511. bool bringToFront;
  10512. /* readonly */
  10513. String category;
  10514. /* readonly */
  10515. IntVector2 childOffset;
  10516. /* readonly */
  10517. Array<UIElement> children;
  10518. IntRect clipBorder;
  10519. bool clipChildren;
  10520. /* writeonly */
  10521. Color color;
  10522. /* readonly */
  10523. bool colorGradient;
  10524. Array<Color> colors;
  10525. /* readonly */
  10526. IntRect combinedScreenRect;
  10527. XMLFile defaultStyle;
  10528. /* readonly */
  10529. float derivedOpacity;
  10530. /* readonly */
  10531. uint dragButtonCombo;
  10532. /* readonly */
  10533. int dragButtonCount;
  10534. uint dragDropMode;
  10535. bool editable;
  10536. bool elementEventSender;
  10537. bool enabled;
  10538. /* readonly */
  10539. bool enabledSelf;
  10540. /* readonly */
  10541. bool fixedHeight;
  10542. /* readonly */
  10543. bool fixedSize;
  10544. /* readonly */
  10545. bool fixedWidth;
  10546. bool focus;
  10547. FocusMode focusMode;
  10548. int height;
  10549. HorizontalAlignment horizontalAlignment;
  10550. /* readonly */
  10551. bool hovering;
  10552. int indent;
  10553. int indentSpacing;
  10554. /* readonly */
  10555. int indentWidth;
  10556. bool internal;
  10557. IntRect layoutBorder;
  10558. Vector2 layoutFlexScale;
  10559. LayoutMode layoutMode;
  10560. int layoutSpacing;
  10561. int maxHeight;
  10562. IntVector2 maxSize;
  10563. int maxWidth;
  10564. int minHeight;
  10565. IntVector2 minSize;
  10566. int minWidth;
  10567. String name;
  10568. /* readonly */
  10569. uint numAllChildren;
  10570. /* readonly */
  10571. uint numAttributes;
  10572. /* readonly */
  10573. uint numChildren;
  10574. ObjectAnimation objectAnimation;
  10575. float opacity;
  10576. UIElement parent;
  10577. IntVector2 position;
  10578. int priority;
  10579. /* readonly */
  10580. int refs;
  10581. /* readonly */
  10582. UIElement root;
  10583. /* readonly */
  10584. IntVector2 screenPosition;
  10585. bool selected;
  10586. IntVector2 size;
  10587. bool sortChildren;
  10588. String style;
  10589. bool temporary;
  10590. TraversalMode traversalMode;
  10591. /* readonly */
  10592. StringHash type;
  10593. /* readonly */
  10594. String typeName;
  10595. bool useDerivedOpacity;
  10596. /* readonly */
  10597. VariantMap vars;
  10598. VerticalAlignment verticalAlignment;
  10599. bool visible;
  10600. /* readonly */
  10601. int weakRefs;
  10602. int width;
  10603. };
  10604. class ValueAnimation
  10605. {
  10606. // Methods:
  10607. bool Load(File);
  10608. bool Load(VectorBuffer&);
  10609. bool Save(File) const;
  10610. bool Save(VectorBuffer&) const;
  10611. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10612. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  10613. void SetKeyFrame(float, const Variant&);
  10614. // Properties:
  10615. /* readonly */
  10616. StringHash baseType;
  10617. /* readonly */
  10618. String category;
  10619. InterpMethod interpolationMethod;
  10620. /* readonly */
  10621. uint memoryUse;
  10622. String name;
  10623. /* readonly */
  10624. int refs;
  10625. float splineTension;
  10626. /* readonly */
  10627. StringHash type;
  10628. /* readonly */
  10629. String typeName;
  10630. /* readonly */
  10631. uint useTimer;
  10632. VariantType valueType;
  10633. /* readonly */
  10634. int weakRefs;
  10635. };
  10636. class Variant
  10637. {
  10638. // Methods:
  10639. void Clear();
  10640. const Color& GetColor() const;
  10641. void FromString(VariantType, const String&);
  10642. void FromString(const String&, const String&);
  10643. bool GetBool() const;
  10644. VectorBuffer GetBuffer() const;
  10645. float GetFloat() const;
  10646. int GetInt() const;
  10647. RefCounted GetPtr() const;
  10648. ScriptObject GetScriptObject() const;
  10649. StringHash GetStringHash() const;
  10650. uint GetUInt() const;
  10651. Array<Variant> GetVariantVector() const;
  10652. const IntRect& GetIntRect() const;
  10653. const IntVector2& GetIntVector2() const;
  10654. const Matrix3& GetMatrix3() const;
  10655. const Matrix3x4& GetMatrix3x4() const;
  10656. const Matrix4& GetMatrix4() const;
  10657. const Quaternion& GetQuaternion() const;
  10658. const ResourceRef& GetResourceRef() const;
  10659. const ResourceRefList& GetResourceRefList() const;
  10660. const String& GetString() const;
  10661. String ToString() const;
  10662. const VariantMap& GetVariantMap() const;
  10663. const Vector2& GetVector2() const;
  10664. const Vector3& GetVector3() const;
  10665. const Vector4& GetVector4() const;
  10666. // Properties:
  10667. /* readonly */
  10668. bool empty;
  10669. /* readonly */
  10670. VariantType type;
  10671. /* readonly */
  10672. String typeName;
  10673. /* readonly */
  10674. bool zero;
  10675. };
  10676. class VariantMap
  10677. {
  10678. // Methods:
  10679. void Clear();
  10680. bool Contains(StringHash) const;
  10681. bool Contains(const String&) const;
  10682. bool Erase(StringHash);
  10683. bool Erase(const String&);
  10684. // Properties:
  10685. /* readonly */
  10686. Array<StringHash> keys;
  10687. /* readonly */
  10688. uint length;
  10689. /* readonly */
  10690. Array<Variant> values;
  10691. };
  10692. class Vector2
  10693. {
  10694. // Methods:
  10695. float AbsDotProduct(const Vector2&) const;
  10696. float DotProduct(const Vector2&) const;
  10697. bool Equals(const Vector2&) const;
  10698. bool IsNaN() const;
  10699. Vector2 Lerp(const Vector2&, float) const;
  10700. void Normalize();
  10701. Vector2 Normalized() const;
  10702. String ToString() const;
  10703. // Properties:
  10704. /* readonly */
  10705. Array<float> data;
  10706. /* readonly */
  10707. float length;
  10708. /* readonly */
  10709. float lengthSquared;
  10710. float x;
  10711. float y;
  10712. };
  10713. class Vector3
  10714. {
  10715. // Methods:
  10716. float AbsDotProduct(const Vector3&) const;
  10717. float Angle(const Vector3&) const;
  10718. Vector3 CrossProduct(const Vector3&) const;
  10719. float DotProduct(const Vector3&) const;
  10720. bool Equals(const Vector3&) const;
  10721. bool IsNaN() const;
  10722. Vector3 Lerp(const Vector3&, float) const;
  10723. void Normalize();
  10724. Vector3 Normalized() const;
  10725. String ToString() const;
  10726. // Properties:
  10727. /* readonly */
  10728. Array<float> data;
  10729. /* readonly */
  10730. float length;
  10731. /* readonly */
  10732. float lengthSquared;
  10733. float x;
  10734. float y;
  10735. float z;
  10736. };
  10737. class Vector4
  10738. {
  10739. // Methods:
  10740. float AbsDotProduct(const Vector4&) const;
  10741. float DotProduct(const Vector4&) const;
  10742. bool Equals(const Vector4&) const;
  10743. bool IsNaN() const;
  10744. Vector4 Lerp(const Vector4&, float) const;
  10745. String ToString() const;
  10746. // Properties:
  10747. /* readonly */
  10748. Array<float> data;
  10749. float w;
  10750. float x;
  10751. float y;
  10752. float z;
  10753. };
  10754. class VectorBuffer
  10755. {
  10756. // Methods:
  10757. void Clear();
  10758. Array<uint8> Read(uint);
  10759. bool ReadBool();
  10760. BoundingBox ReadBoundingBox();
  10761. int8 ReadByte();
  10762. Color ReadColor();
  10763. String ReadFileID();
  10764. float ReadFloat();
  10765. int ReadInt();
  10766. IntRect ReadIntRect();
  10767. IntVector2 ReadIntVector2();
  10768. String ReadLine();
  10769. Matrix3 ReadMatrix3();
  10770. Matrix3x4 ReadMatrix3x4();
  10771. Matrix4 ReadMatrix4();
  10772. uint ReadNetID();
  10773. Quaternion ReadPackedQuaternion();
  10774. Vector3 ReadPackedVector3(float);
  10775. Quaternion ReadQuaternion();
  10776. int16 ReadShort();
  10777. String ReadString();
  10778. StringHash ReadStringHash();
  10779. uint8 ReadUByte();
  10780. uint ReadUInt();
  10781. uint16 ReadUShort();
  10782. uint ReadVLE();
  10783. Variant ReadVariant();
  10784. VariantMap ReadVariantMap();
  10785. Vector2 ReadVector2();
  10786. Vector3 ReadVector3();
  10787. Vector4 ReadVector4();
  10788. VectorBuffer ReadVectorBuffer(uint);
  10789. void Resize(uint);
  10790. uint Seek(uint);
  10791. void SetData(Deserializer, uint);
  10792. uint Write(Array<uint8>);
  10793. bool WriteBool(bool);
  10794. bool WriteBoundingBox(const BoundingBox&);
  10795. bool WriteByte(int8);
  10796. bool WriteColor(const Color&);
  10797. bool WriteFileID(const String&);
  10798. bool WriteFloat(float);
  10799. bool WriteInt(int);
  10800. bool WriteIntRect(const IntRect&);
  10801. bool WriteIntVector2(const IntVector2&);
  10802. bool WriteLine(const String&);
  10803. bool WriteMatrix3(const Matrix3&);
  10804. bool WriteMatrix3x4(const Matrix3x4&);
  10805. bool WriteMatrix4(const Matrix4&);
  10806. bool WriteNetID(uint);
  10807. bool WritePackedQuaternion(const Quaternion&);
  10808. bool WritePackedVector3(const Vector3&, float);
  10809. bool WriteQuaternion(const Quaternion&);
  10810. bool WriteShort(int16);
  10811. bool WriteString(const String&);
  10812. bool WriteStringHash(const StringHash&);
  10813. bool WriteUByte(uint8);
  10814. bool WriteUInt(uint);
  10815. bool WriteUShort(uint16);
  10816. bool WriteVLE(uint);
  10817. bool WriteVariant(const Variant&);
  10818. bool WriteVariantMap(const VariantMap&);
  10819. bool WriteVector2(const Vector2&);
  10820. bool WriteVector3(const Vector3&);
  10821. bool WriteVector4(const Vector4&);
  10822. bool WriteVectorBuffer(const VectorBuffer&);
  10823. // Properties:
  10824. /* readonly */
  10825. uint checksum;
  10826. /* readonly */
  10827. bool eof;
  10828. /* readonly */
  10829. String name;
  10830. /* readonly */
  10831. uint position;
  10832. /* readonly */
  10833. uint size;
  10834. };
  10835. class View3D
  10836. {
  10837. // Methods:
  10838. void AddChild(UIElement);
  10839. void ApplyAttributes();
  10840. void BringToFront();
  10841. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10842. void DisableLayoutUpdate();
  10843. IntVector2 ElementToScreen(const IntVector2&);
  10844. void EnableLayoutUpdate();
  10845. uint FindChild(UIElement) const;
  10846. Variant GetAttribute(const String&) const;
  10847. ValueAnimation GetAttributeAnimation(const String&) const;
  10848. float GetAttributeAnimationSpeed(const String&) const;
  10849. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10850. Variant GetAttributeDefault(const String&) const;
  10851. UIElement GetChild(const String&, bool = false) const;
  10852. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10853. Array<UIElement> GetChildren(bool = false) const;
  10854. UIElement GetElementEventSender() const;
  10855. uint GetNumChildren(bool) const;
  10856. void InsertChild(uint, UIElement);
  10857. bool IsInside(IntVector2, bool);
  10858. bool IsInsideCombined(IntVector2, bool);
  10859. bool Load(File, bool = false);
  10860. bool Load(VectorBuffer&, bool = false);
  10861. bool LoadChildXML(XMLFile, XMLFile = null);
  10862. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10863. bool LoadXML(File);
  10864. bool LoadXML(VectorBuffer&);
  10865. bool LoadXML(XMLFile, XMLFile);
  10866. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10867. bool LoadXML(const XMLElement&, bool = false);
  10868. void MarkNetworkUpdate() const;
  10869. void QueueUpdate();
  10870. void Remove();
  10871. void RemoveAllChildren();
  10872. void RemoveChild(UIElement, uint = 0);
  10873. void RemoveChild(uint);
  10874. void RemoveInstanceDefault();
  10875. void ResetDeepEnabled();
  10876. void ResetToDefault();
  10877. bool Save(File) const;
  10878. bool Save(VectorBuffer&) const;
  10879. bool SaveXML(File);
  10880. bool SaveXML(VectorBuffer&);
  10881. bool SaveXML(XMLElement&) const;
  10882. IntVector2 ScreenToElement(const IntVector2&);
  10883. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10884. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10885. bool SetAttribute(const String&, const Variant&);
  10886. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10887. void SetAttributeAnimationSpeed(const String&, float);
  10888. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10889. void SetDeepEnabled(bool);
  10890. void SetEnabledRecursive(bool);
  10891. void SetFixedHeight(int);
  10892. void SetFixedSize(int, int);
  10893. void SetFixedWidth(int);
  10894. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10895. void SetMaxSize(int, int);
  10896. void SetMinSize(int, int);
  10897. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10898. void SetPosition(int, int);
  10899. void SetSize(int, int);
  10900. bool SetStyle(const String&, XMLFile = null);
  10901. bool SetStyle(const XMLElement&);
  10902. bool SetStyleAuto(XMLFile = null);
  10903. void SetView(Scene, Camera, bool = true);
  10904. void UpdateLayout();
  10905. const Variant& GetVar(const StringHash&);
  10906. // Properties:
  10907. bool animationEnabled;
  10908. /* readonly */
  10909. Array<Variant> attributeDefaults;
  10910. /* readonly */
  10911. Array<AttributeInfo> attributeInfos;
  10912. Array<Variant> attributes;
  10913. bool autoUpdate;
  10914. /* readonly */
  10915. StringHash baseType;
  10916. bool bringToBack;
  10917. bool bringToFront;
  10918. /* readonly */
  10919. Node cameraNode;
  10920. /* readonly */
  10921. String category;
  10922. /* readonly */
  10923. IntVector2 childOffset;
  10924. /* readonly */
  10925. Array<UIElement> children;
  10926. IntRect clipBorder;
  10927. bool clipChildren;
  10928. /* writeonly */
  10929. Color color;
  10930. /* readonly */
  10931. bool colorGradient;
  10932. Array<Color> colors;
  10933. /* readonly */
  10934. IntRect combinedScreenRect;
  10935. XMLFile defaultStyle;
  10936. /* readonly */
  10937. Texture2D depthTexture;
  10938. /* readonly */
  10939. float derivedOpacity;
  10940. /* readonly */
  10941. uint dragButtonCombo;
  10942. /* readonly */
  10943. int dragButtonCount;
  10944. uint dragDropMode;
  10945. bool editable;
  10946. bool elementEventSender;
  10947. bool enabled;
  10948. /* readonly */
  10949. bool enabledSelf;
  10950. /* readonly */
  10951. bool fixedHeight;
  10952. bool fixedHeightResizing;
  10953. /* readonly */
  10954. bool fixedSize;
  10955. /* readonly */
  10956. bool fixedWidth;
  10957. bool fixedWidthResizing;
  10958. bool focus;
  10959. FocusMode focusMode;
  10960. uint format;
  10961. int height;
  10962. HorizontalAlignment horizontalAlignment;
  10963. /* readonly */
  10964. bool hovering;
  10965. int indent;
  10966. int indentSpacing;
  10967. /* readonly */
  10968. int indentWidth;
  10969. bool internal;
  10970. IntRect layoutBorder;
  10971. Vector2 layoutFlexScale;
  10972. LayoutMode layoutMode;
  10973. int layoutSpacing;
  10974. int maxHeight;
  10975. IntVector2 maxSize;
  10976. int maxWidth;
  10977. int minHeight;
  10978. IntVector2 minSize;
  10979. int minWidth;
  10980. bool modal;
  10981. bool modalAutoDismiss;
  10982. Color modalFrameColor;
  10983. IntVector2 modalFrameSize;
  10984. Color modalShadeColor;
  10985. bool movable;
  10986. String name;
  10987. /* readonly */
  10988. uint numAllChildren;
  10989. /* readonly */
  10990. uint numAttributes;
  10991. /* readonly */
  10992. uint numChildren;
  10993. ObjectAnimation objectAnimation;
  10994. float opacity;
  10995. UIElement parent;
  10996. IntVector2 position;
  10997. int priority;
  10998. /* readonly */
  10999. int refs;
  11000. /* readonly */
  11001. Texture2D renderTexture;
  11002. bool resizable;
  11003. IntRect resizeBorder;
  11004. /* readonly */
  11005. UIElement root;
  11006. /* readonly */
  11007. Scene scene;
  11008. /* readonly */
  11009. IntVector2 screenPosition;
  11010. bool selected;
  11011. IntVector2 size;
  11012. bool sortChildren;
  11013. String style;
  11014. bool temporary;
  11015. TraversalMode traversalMode;
  11016. /* readonly */
  11017. StringHash type;
  11018. /* readonly */
  11019. String typeName;
  11020. bool useDerivedOpacity;
  11021. /* readonly */
  11022. VariantMap vars;
  11023. VerticalAlignment verticalAlignment;
  11024. /* readonly */
  11025. Viewport viewport;
  11026. bool visible;
  11027. /* readonly */
  11028. int weakRefs;
  11029. int width;
  11030. };
  11031. class Viewport
  11032. {
  11033. // Methods:
  11034. Ray GetScreenRay(int, int) const;
  11035. Vector3 ScreenToWorldPoint(int, int, float) const;
  11036. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11037. void SetRenderPath(XMLFile);
  11038. Vector2 WorldToScreenPoint(const Vector3&) const;
  11039. // Properties:
  11040. /* readonly */
  11041. StringHash baseType;
  11042. Camera camera;
  11043. /* readonly */
  11044. String category;
  11045. bool drawDebug;
  11046. IntRect rect;
  11047. /* readonly */
  11048. int refs;
  11049. RenderPath renderPath;
  11050. Scene scene;
  11051. /* readonly */
  11052. StringHash type;
  11053. /* readonly */
  11054. String typeName;
  11055. /* readonly */
  11056. int weakRefs;
  11057. };
  11058. class WeakHandle
  11059. {
  11060. // Methods:
  11061. RefCounted Get() const;
  11062. // Properties:
  11063. /* readonly */
  11064. bool expired;
  11065. /* readonly */
  11066. int refs;
  11067. /* readonly */
  11068. int weakRefs;
  11069. };
  11070. class Window
  11071. {
  11072. // Methods:
  11073. void AddChild(UIElement);
  11074. void ApplyAttributes();
  11075. void BringToFront();
  11076. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11077. void DisableLayoutUpdate();
  11078. IntVector2 ElementToScreen(const IntVector2&);
  11079. void EnableLayoutUpdate();
  11080. uint FindChild(UIElement) const;
  11081. Variant GetAttribute(const String&) const;
  11082. ValueAnimation GetAttributeAnimation(const String&) const;
  11083. float GetAttributeAnimationSpeed(const String&) const;
  11084. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11085. Variant GetAttributeDefault(const String&) const;
  11086. UIElement GetChild(const String&, bool = false) const;
  11087. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11088. Array<UIElement> GetChildren(bool = false) const;
  11089. UIElement GetElementEventSender() const;
  11090. uint GetNumChildren(bool) const;
  11091. void InsertChild(uint, UIElement);
  11092. bool IsInside(IntVector2, bool);
  11093. bool IsInsideCombined(IntVector2, bool);
  11094. bool Load(File, bool = false);
  11095. bool Load(VectorBuffer&, bool = false);
  11096. bool LoadChildXML(XMLFile, XMLFile = null);
  11097. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11098. bool LoadXML(File);
  11099. bool LoadXML(VectorBuffer&);
  11100. bool LoadXML(XMLFile, XMLFile);
  11101. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11102. bool LoadXML(const XMLElement&, bool = false);
  11103. void MarkNetworkUpdate() const;
  11104. void Remove();
  11105. void RemoveAllChildren();
  11106. void RemoveChild(UIElement, uint = 0);
  11107. void RemoveChild(uint);
  11108. void RemoveInstanceDefault();
  11109. void ResetDeepEnabled();
  11110. void ResetToDefault();
  11111. bool Save(File) const;
  11112. bool Save(VectorBuffer&) const;
  11113. bool SaveXML(File);
  11114. bool SaveXML(VectorBuffer&);
  11115. bool SaveXML(XMLElement&) const;
  11116. IntVector2 ScreenToElement(const IntVector2&);
  11117. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11118. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11119. bool SetAttribute(const String&, const Variant&);
  11120. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11121. void SetAttributeAnimationSpeed(const String&, float);
  11122. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11123. void SetDeepEnabled(bool);
  11124. void SetEnabledRecursive(bool);
  11125. void SetFixedHeight(int);
  11126. void SetFixedSize(int, int);
  11127. void SetFixedWidth(int);
  11128. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11129. void SetMaxSize(int, int);
  11130. void SetMinSize(int, int);
  11131. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11132. void SetPosition(int, int);
  11133. void SetSize(int, int);
  11134. bool SetStyle(const String&, XMLFile = null);
  11135. bool SetStyle(const XMLElement&);
  11136. bool SetStyleAuto(XMLFile = null);
  11137. void UpdateLayout();
  11138. const Variant& GetVar(const StringHash&);
  11139. // Properties:
  11140. bool animationEnabled;
  11141. /* readonly */
  11142. Array<Variant> attributeDefaults;
  11143. /* readonly */
  11144. Array<AttributeInfo> attributeInfos;
  11145. Array<Variant> attributes;
  11146. /* readonly */
  11147. StringHash baseType;
  11148. bool bringToBack;
  11149. bool bringToFront;
  11150. /* readonly */
  11151. String category;
  11152. /* readonly */
  11153. IntVector2 childOffset;
  11154. /* readonly */
  11155. Array<UIElement> children;
  11156. IntRect clipBorder;
  11157. bool clipChildren;
  11158. /* writeonly */
  11159. Color color;
  11160. /* readonly */
  11161. bool colorGradient;
  11162. Array<Color> colors;
  11163. /* readonly */
  11164. IntRect combinedScreenRect;
  11165. XMLFile defaultStyle;
  11166. /* readonly */
  11167. float derivedOpacity;
  11168. /* readonly */
  11169. uint dragButtonCombo;
  11170. /* readonly */
  11171. int dragButtonCount;
  11172. uint dragDropMode;
  11173. bool editable;
  11174. bool elementEventSender;
  11175. bool enabled;
  11176. /* readonly */
  11177. bool enabledSelf;
  11178. /* readonly */
  11179. bool fixedHeight;
  11180. bool fixedHeightResizing;
  11181. /* readonly */
  11182. bool fixedSize;
  11183. /* readonly */
  11184. bool fixedWidth;
  11185. bool fixedWidthResizing;
  11186. bool focus;
  11187. FocusMode focusMode;
  11188. int height;
  11189. HorizontalAlignment horizontalAlignment;
  11190. /* readonly */
  11191. bool hovering;
  11192. int indent;
  11193. int indentSpacing;
  11194. /* readonly */
  11195. int indentWidth;
  11196. bool internal;
  11197. IntRect layoutBorder;
  11198. Vector2 layoutFlexScale;
  11199. LayoutMode layoutMode;
  11200. int layoutSpacing;
  11201. int maxHeight;
  11202. IntVector2 maxSize;
  11203. int maxWidth;
  11204. int minHeight;
  11205. IntVector2 minSize;
  11206. int minWidth;
  11207. bool modal;
  11208. bool modalAutoDismiss;
  11209. Color modalFrameColor;
  11210. IntVector2 modalFrameSize;
  11211. Color modalShadeColor;
  11212. bool movable;
  11213. String name;
  11214. /* readonly */
  11215. uint numAllChildren;
  11216. /* readonly */
  11217. uint numAttributes;
  11218. /* readonly */
  11219. uint numChildren;
  11220. ObjectAnimation objectAnimation;
  11221. float opacity;
  11222. UIElement parent;
  11223. IntVector2 position;
  11224. int priority;
  11225. /* readonly */
  11226. int refs;
  11227. bool resizable;
  11228. IntRect resizeBorder;
  11229. /* readonly */
  11230. UIElement root;
  11231. /* readonly */
  11232. IntVector2 screenPosition;
  11233. bool selected;
  11234. IntVector2 size;
  11235. bool sortChildren;
  11236. String style;
  11237. bool temporary;
  11238. TraversalMode traversalMode;
  11239. /* readonly */
  11240. StringHash type;
  11241. /* readonly */
  11242. String typeName;
  11243. bool useDerivedOpacity;
  11244. /* readonly */
  11245. VariantMap vars;
  11246. VerticalAlignment verticalAlignment;
  11247. bool visible;
  11248. /* readonly */
  11249. int weakRefs;
  11250. int width;
  11251. };
  11252. class XMLElement
  11253. {
  11254. // Methods:
  11255. XMLElement CreateChild(const String&);
  11256. String GetAttribute(const String& = String ( )) const;
  11257. String GetAttributeLower(const String&) const;
  11258. Array<String> GetAttributeNames() const;
  11259. String GetAttributeUpper(const String&) const;
  11260. bool GetBool(const String&) const;
  11261. BoundingBox GetBoundingBox() const;
  11262. XMLElement GetChild(const String& = String ( )) const;
  11263. Color GetColor(const String&) const;
  11264. float GetFloat(const String&) const;
  11265. int GetInt(const String&) const;
  11266. Matrix3 GetMatrix3(const String&) const;
  11267. Matrix3x4 GetMatrix3x4(const String&) const;
  11268. Matrix4 GetMatrix4(const String&) const;
  11269. XMLElement GetNext(const String& = String ( )) const;
  11270. Quaternion GetQuaternion(const String&) const;
  11271. ResourceRef GetResourceRef() const;
  11272. ResourceRefList GetResourceRefList() const;
  11273. uint GetUInt(const String&) const;
  11274. String GetValue() const;
  11275. Variant GetVariant() const;
  11276. VariantMap GetVariantMap() const;
  11277. Array<Variant> GetVariantVector() const;
  11278. Vector2 GetVector2(const String&) const;
  11279. Vector3 GetVector3(const String&) const;
  11280. Vector4 GetVector4(const String&) const;
  11281. Variant GetVectorVariant(const String&) const;
  11282. bool HasAttribute(const String&) const;
  11283. bool HasChild(const String&) const;
  11284. bool RemoveAttribute(const String& = String ( ));
  11285. bool RemoveChild(const String&);
  11286. bool RemoveChild(const XMLElement&);
  11287. bool RemoveChildren(const String& = String ( ));
  11288. XPathResultSet Select(const String&);
  11289. XPathResultSet SelectPrepared(const XPathQuery&);
  11290. XMLElement SelectSingle(const String&);
  11291. XMLElement SelectSinglePrepared(const XPathQuery&);
  11292. bool SetAttribute(const String&);
  11293. bool SetAttribute(const String&, const String&);
  11294. bool SetBool(const String&, bool);
  11295. bool SetBoundingBox(const BoundingBox&);
  11296. bool SetColor(const String&, const Color&);
  11297. bool SetFloat(const String&, float);
  11298. bool SetInt(const String&, int);
  11299. bool SetMatrix3(const String&, const Matrix3&);
  11300. bool SetMatrix3x4(const String&, const Matrix3x4&);
  11301. bool SetMatrix4(const String&, const Matrix4&);
  11302. bool SetQuaternion(const String&, const Quaternion&);
  11303. bool SetResourceRef(const String&, const ResourceRef&);
  11304. bool SetResourceRefList(const String&, const ResourceRefList&);
  11305. bool SetUInt(const String&, uint);
  11306. bool SetValue(const String&);
  11307. bool SetVariant(const Variant&);
  11308. bool SetVariantMap(const VariantMap&);
  11309. bool SetVariantVector(Array<Variant>);
  11310. bool SetVector2(const String&, const Vector2&);
  11311. bool SetVector3(const String&, const Vector3&);
  11312. bool SetVector4(const String&, const Vector4&);
  11313. bool SetVectorVariant(const String&, const Variant&);
  11314. // Properties:
  11315. /* readonly */
  11316. XMLFile file;
  11317. /* readonly */
  11318. bool isNull;
  11319. /* readonly */
  11320. String name;
  11321. /* readonly */
  11322. XMLElement nextResult;
  11323. /* readonly */
  11324. bool notNull;
  11325. /* readonly */
  11326. uint numAttributes;
  11327. /* readonly */
  11328. XMLElement parent;
  11329. String value;
  11330. };
  11331. class XMLFile
  11332. {
  11333. // Methods:
  11334. XMLElement CreateRoot(const String&);
  11335. bool FromString(const String&);
  11336. XMLElement GetRoot(const String& = String ( ));
  11337. bool Load(File);
  11338. bool Load(VectorBuffer&);
  11339. void Patch(XMLElement);
  11340. void Patch(XMLFile);
  11341. bool Save(File) const;
  11342. bool Save(VectorBuffer&) const;
  11343. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11344. String ToString() const;
  11345. // Properties:
  11346. /* readonly */
  11347. StringHash baseType;
  11348. /* readonly */
  11349. String category;
  11350. /* readonly */
  11351. uint memoryUse;
  11352. String name;
  11353. /* readonly */
  11354. int refs;
  11355. /* readonly */
  11356. XMLElement root;
  11357. /* readonly */
  11358. StringHash type;
  11359. /* readonly */
  11360. String typeName;
  11361. /* readonly */
  11362. uint useTimer;
  11363. /* readonly */
  11364. int weakRefs;
  11365. };
  11366. class XPathQuery
  11367. {
  11368. // Methods:
  11369. void Bind();
  11370. void Clear();
  11371. XPathResultSet Evaluate(XMLElement);
  11372. bool EvaluateToBool(XMLElement);
  11373. float EvaluateToFloat(XMLElement);
  11374. String EvaluateToString(XMLElement);
  11375. bool SetQuery(const String&, const String& = String ( ), bool = true);
  11376. bool SetVariable(const String&, bool);
  11377. bool SetVariable(const String&, const String&);
  11378. bool SetVariable(const String&, const XPathResultSet&);
  11379. bool SetVariable(const String&, float);
  11380. // Properties:
  11381. String query;
  11382. };
  11383. class XPathResultSet
  11384. {
  11385. // Properties:
  11386. /* readonly */
  11387. bool empty;
  11388. /* readonly */
  11389. XMLElement firstResult;
  11390. /* readonly */
  11391. uint size;
  11392. };
  11393. class Zone
  11394. {
  11395. // Methods:
  11396. void ApplyAttributes();
  11397. void DrawDebugGeometry(DebugRenderer, bool);
  11398. Variant GetAttribute(const String&) const;
  11399. ValueAnimation GetAttributeAnimation(const String&) const;
  11400. float GetAttributeAnimationSpeed(const String&) const;
  11401. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11402. Variant GetAttributeDefault(const String&) const;
  11403. bool IsInView(Camera) const;
  11404. bool Load(File, bool = false);
  11405. bool Load(VectorBuffer&, bool = false);
  11406. bool LoadXML(const XMLElement&, bool = false);
  11407. void MarkNetworkUpdate() const;
  11408. void Remove();
  11409. void RemoveInstanceDefault();
  11410. void ResetToDefault();
  11411. bool Save(File) const;
  11412. bool Save(VectorBuffer&) const;
  11413. bool SaveXML(XMLElement&) const;
  11414. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11415. bool SetAttribute(const String&, const Variant&);
  11416. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11417. void SetAttributeAnimationSpeed(const String&, float);
  11418. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11419. // Properties:
  11420. Color ambientColor;
  11421. /* readonly */
  11422. Color ambientEndColor;
  11423. bool ambientGradient;
  11424. /* readonly */
  11425. Color ambientStartColor;
  11426. bool animationEnabled;
  11427. /* readonly */
  11428. Array<Variant> attributeDefaults;
  11429. /* readonly */
  11430. Array<AttributeInfo> attributeInfos;
  11431. Array<Variant> attributes;
  11432. /* readonly */
  11433. StringHash baseType;
  11434. BoundingBox boundingBox;
  11435. bool castShadows;
  11436. /* readonly */
  11437. String category;
  11438. float drawDistance;
  11439. bool enabled;
  11440. /* readonly */
  11441. bool enabledEffective;
  11442. Color fogColor;
  11443. float fogEnd;
  11444. float fogHeight;
  11445. float fogHeightScale;
  11446. float fogStart;
  11447. bool heightFog;
  11448. /* readonly */
  11449. uint id;
  11450. /* readonly */
  11451. bool inView;
  11452. /* readonly */
  11453. Matrix3x4 inverseWorldTransform;
  11454. uint lightMask;
  11455. float lodBias;
  11456. uint maxLights;
  11457. /* readonly */
  11458. Node node;
  11459. /* readonly */
  11460. uint numAttributes;
  11461. ObjectAnimation objectAnimation;
  11462. bool occludee;
  11463. bool occluder;
  11464. bool override;
  11465. int priority;
  11466. /* readonly */
  11467. int refs;
  11468. float shadowDistance;
  11469. uint shadowMask;
  11470. bool temporary;
  11471. /* readonly */
  11472. StringHash type;
  11473. /* readonly */
  11474. String typeName;
  11475. uint viewMask;
  11476. /* readonly */
  11477. int weakRefs;
  11478. /* readonly */
  11479. BoundingBox worldBoundingBox;
  11480. uint zoneMask;
  11481. Texture zoneTexture;
  11482. };
  11483. // Enumerations
  11484. enum BlendMode
  11485. {
  11486. BLEND_REPLACE,
  11487. BLEND_ADD,
  11488. BLEND_MULTIPLY,
  11489. BLEND_ALPHA,
  11490. BLEND_ADDALPHA,
  11491. BLEND_PREMULALPHA,
  11492. BLEND_INVDESTALPHA,
  11493. BLEND_SUBTRACT,
  11494. BLEND_SUBTRACTALPHA,
  11495. };
  11496. enum BodyType2D
  11497. {
  11498. BT_STATIC,
  11499. BT_DYNAMIC,
  11500. BT_KINEMATIC,
  11501. };
  11502. enum CollisionEventMode
  11503. {
  11504. COLLISION_NEVER,
  11505. COLLISION_ACTIVE,
  11506. COLLISION_ALWAYS,
  11507. };
  11508. enum CompareMode
  11509. {
  11510. CMP_ALWAYS,
  11511. CMP_EQUAL,
  11512. CMP_NOTEQUAL,
  11513. CMP_LESS,
  11514. CMP_LESSEQUAL,
  11515. CMP_GREATER,
  11516. CMP_GREATEREQUAL,
  11517. };
  11518. enum CompressedFormat
  11519. {
  11520. CF_NONE,
  11521. CF_RGBA,
  11522. CF_DXT1,
  11523. CF_DXT3,
  11524. CF_DXT5,
  11525. CF_ETC1,
  11526. CF_PVRTC_RGB_2BPP,
  11527. CF_PVRTC_RGBA_2BPP,
  11528. CF_PVRTC_RGB_4BPP,
  11529. CF_PVRTC_RGBA_4BPP,
  11530. };
  11531. enum ConstraintType
  11532. {
  11533. CONSTRAINT_POINT,
  11534. CONSTRAINT_HINGE,
  11535. CONSTRAINT_SLIDER,
  11536. CONSTRAINT_CONETWIST,
  11537. };
  11538. enum Corner
  11539. {
  11540. C_TOPLEFT,
  11541. C_TOPRIGHT,
  11542. C_BOTTOMLEFT,
  11543. C_BOTTOMRIGHT,
  11544. };
  11545. enum CreateMode
  11546. {
  11547. REPLICATED,
  11548. LOCAL,
  11549. };
  11550. enum CubeMapFace
  11551. {
  11552. FACE_POSITIVE_X,
  11553. FACE_NEGATIVE_X,
  11554. FACE_POSITIVE_Y,
  11555. FACE_NEGATIVE_Y,
  11556. FACE_POSITIVE_Z,
  11557. FACE_NEGATIVE_Z,
  11558. };
  11559. enum CullMode
  11560. {
  11561. CULL_NONE,
  11562. CULL_CCW,
  11563. CULL_CW,
  11564. };
  11565. enum CursorShape
  11566. {
  11567. CS_NORMAL,
  11568. CS_IBEAM,
  11569. CS_CROSS,
  11570. CS_RESIZEVERTICAL,
  11571. CS_RESIZEDIAGONAL_TOPRIGHT,
  11572. CS_RESIZEHORIZONTAL,
  11573. CS_RESIZEDIAGONAL_TOPLEFT,
  11574. CS_RESIZE_ALL,
  11575. CS_ACCEPTDROP,
  11576. CS_REJECTDROP,
  11577. CS_BUSY,
  11578. CS_BUSY_ARROW,
  11579. };
  11580. enum DumpMode
  11581. {
  11582. DOXYGEN,
  11583. C_HEADER,
  11584. };
  11585. enum EmitterType
  11586. {
  11587. EMITTER_SPHERE,
  11588. EMITTER_BOX,
  11589. };
  11590. enum EmitterType2D
  11591. {
  11592. EMITTER_TYPE_GRAVITY,
  11593. EMITTER_TYPE_RADIAL,
  11594. };
  11595. enum FaceCameraMode
  11596. {
  11597. FC_NONE,
  11598. FC_ROTATE_XYZ,
  11599. FC_ROTATE_Y,
  11600. FC_LOOKAT_XYZ,
  11601. FC_LOOKAT_Y,
  11602. };
  11603. enum FileMode
  11604. {
  11605. FILE_READ,
  11606. FILE_WRITE,
  11607. FILE_READWRITE,
  11608. };
  11609. enum FillMode
  11610. {
  11611. FILL_SOLID,
  11612. FILL_WIREFRAME,
  11613. FILL_POINT,
  11614. };
  11615. enum FocusMode
  11616. {
  11617. FM_NOTFOCUSABLE,
  11618. FM_RESETFOCUS,
  11619. FM_FOCUSABLE,
  11620. FM_FOCUSABLE_DEFOCUSABLE,
  11621. };
  11622. enum HighlightMode
  11623. {
  11624. HM_NEVER,
  11625. HM_FOCUS,
  11626. HM_ALWAYS,
  11627. };
  11628. enum HorizontalAlignment
  11629. {
  11630. HA_LEFT,
  11631. HA_CENTER,
  11632. HA_RIGHT,
  11633. };
  11634. enum HttpRequestState
  11635. {
  11636. HTTP_INITIALIZING,
  11637. HTTP_ERROR,
  11638. HTTP_OPEN,
  11639. HTTP_CLOSED,
  11640. };
  11641. enum InterpMethod
  11642. {
  11643. IM_LINEAR,
  11644. IM_SPLINE,
  11645. };
  11646. enum InterpolationMode
  11647. {
  11648. BEZIER_CURVE,
  11649. };
  11650. enum Intersection
  11651. {
  11652. OUTSIDE,
  11653. INTERSECTS,
  11654. INSIDE,
  11655. };
  11656. enum JSONValueType
  11657. {
  11658. JSON_ANY,
  11659. JSON_OBJECT,
  11660. JSON_ARRAY,
  11661. };
  11662. enum LayoutMode
  11663. {
  11664. LM_FREE,
  11665. LM_HORIZONTAL,
  11666. LM_VERTICAL,
  11667. };
  11668. enum LightType
  11669. {
  11670. LIGHT_DIRECTIONAL,
  11671. LIGHT_SPOT,
  11672. LIGHT_POINT,
  11673. };
  11674. enum LoadMode
  11675. {
  11676. LOAD_RESOURCES_ONLY,
  11677. LOAD_SCENE,
  11678. LOAD_SCENE_AND_RESOURCES,
  11679. };
  11680. enum LoopMode2D
  11681. {
  11682. LM_DEFAULT,
  11683. LM_FORCE_LOOPED,
  11684. LM_FORCE_CLAMPED,
  11685. };
  11686. enum MouseMode
  11687. {
  11688. MM_ABSOLUTE,
  11689. MM_RELATIVE,
  11690. MM_WRAP,
  11691. };
  11692. enum Orientation
  11693. {
  11694. O_HORIZONTAL,
  11695. O_VERTICAL,
  11696. };
  11697. enum Orientation2D
  11698. {
  11699. O_ORTHOGONAL,
  11700. O_ISOMETRIC,
  11701. O_STAGGERED,
  11702. };
  11703. enum PassLightingMode
  11704. {
  11705. LIGHTING_UNLIT,
  11706. LIGHTING_PERVERTEX,
  11707. LIGHTING_PERPIXEL,
  11708. };
  11709. enum PrimitiveType
  11710. {
  11711. TRIANGLE_LIST,
  11712. LINE_LIST,
  11713. POINT_LIST,
  11714. TRIANGLE_STRIP,
  11715. LINE_STRIP,
  11716. TRIANGLE_FAN,
  11717. };
  11718. enum RayQueryLevel
  11719. {
  11720. RAY_AABB,
  11721. RAY_OBB,
  11722. RAY_TRIANGLE,
  11723. };
  11724. enum RenderCommandSortMode
  11725. {
  11726. SORT_FRONTTOBACK,
  11727. SORT_BACKTOFRONT,
  11728. };
  11729. enum RenderCommandType
  11730. {
  11731. CMD_NONE,
  11732. CMD_CLEAR,
  11733. CMD_SCENEPASS,
  11734. CMD_QUAD,
  11735. CMD_FORWARDLIGHTS,
  11736. CMD_LIGHTVOLUMES,
  11737. CMD_RENDERUI,
  11738. };
  11739. enum RenderSurfaceUpdateMode
  11740. {
  11741. SURFACE_MANUALUPDATE,
  11742. SURFACE_UPDATEVISIBLE,
  11743. SURFACE_UPDATEALWAYS,
  11744. };
  11745. enum RenderTargetSizeMode
  11746. {
  11747. SIZE_ABSOLUTE,
  11748. SIZE_VIEWPORTDIVISOR,
  11749. SIZE_VIEWPORTMULTIPLIER,
  11750. };
  11751. enum ShapeType
  11752. {
  11753. SHAPE_BOX,
  11754. SHAPE_SPHERE,
  11755. SHAPE_STATICPLANE,
  11756. SHAPE_CYLINDER,
  11757. SHAPE_CAPSULE,
  11758. SHAPE_CONE,
  11759. SHAPE_TRIANGLEMESH,
  11760. SHAPE_CONVEXHULL,
  11761. SHAPE_TERRAIN,
  11762. };
  11763. enum TextEffect
  11764. {
  11765. TE_NONE,
  11766. TE_SHADOW,
  11767. TE_STROKE,
  11768. };
  11769. enum TextureAddressMode
  11770. {
  11771. ADDRESS_WRAP,
  11772. ADDRESS_MIRROR,
  11773. ADDRESS_CLAMP,
  11774. ADDRESS_BORDER,
  11775. };
  11776. enum TextureCoordinate
  11777. {
  11778. COORD_U,
  11779. COORD_V,
  11780. COORD_W,
  11781. };
  11782. enum TextureFilterMode
  11783. {
  11784. FILTER_NEAREST,
  11785. FILTER_BILINEAR,
  11786. FILTER_TRILINEAR,
  11787. FILTER_ANISOTROPIC,
  11788. FILTER_DEFAULT,
  11789. };
  11790. enum TextureUnit
  11791. {
  11792. TU_DIFFUSE,
  11793. TU_NORMAL,
  11794. TU_SPECULAR,
  11795. TU_EMISSIVE,
  11796. TU_ENVIRONMENT,
  11797. TU_LIGHTRAMP,
  11798. TU_LIGHTSHAPE,
  11799. TU_SHADOWMAP,
  11800. TU_FACESELECT,
  11801. TU_INDIRECTION,
  11802. TU_ALBEDOBUFFER,
  11803. TU_NORMALBUFFER,
  11804. TU_DEPTHBUFFER,
  11805. TU_LIGHTBUFFER,
  11806. TU_VOLUMEMAP,
  11807. TU_ZONE,
  11808. MAX_MATERIAL_TEXTURE_UNITS,
  11809. MAX_NAMED_TEXTURE_UNITS,
  11810. MAX_TEXTURE_UNITS,
  11811. };
  11812. enum TextureUsage
  11813. {
  11814. TEXTURE_STATIC,
  11815. TEXTURE_DYNAMIC,
  11816. TEXTURE_RENDERTARGET,
  11817. TEXTURE_DEPTHSTENCIL,
  11818. };
  11819. enum TileMapLayerType2D
  11820. {
  11821. LT_TILE_LAYER,
  11822. LT_OBJECT_GROUP,
  11823. LT_IMAGE_LAYER,
  11824. LT_INVALID,
  11825. };
  11826. enum TileObjectType2D
  11827. {
  11828. OT_RECTANGLE,
  11829. OT_ELLIPSE,
  11830. OT_POLYGON,
  11831. OT_POLYLINE,
  11832. OT_TILE,
  11833. OT_INVALID,
  11834. };
  11835. enum TransformSpace
  11836. {
  11837. TS_LOCAL,
  11838. TS_PARENT,
  11839. TS_WORLD,
  11840. };
  11841. enum TraversalMode
  11842. {
  11843. TM_BREADTH_FIRST,
  11844. TM_DEPTH_FIRST,
  11845. };
  11846. enum VariantType
  11847. {
  11848. VAR_NONE,
  11849. VAR_INT,
  11850. VAR_BOOL,
  11851. VAR_FLOAT,
  11852. VAR_VECTOR2,
  11853. VAR_VECTOR3,
  11854. VAR_VECTOR4,
  11855. VAR_QUATERNION,
  11856. VAR_COLOR,
  11857. VAR_STRING,
  11858. VAR_BUFFER,
  11859. VAR_VOIDPTR,
  11860. VAR_RESOURCEREF,
  11861. VAR_RESOURCEREFLIST,
  11862. VAR_VARIANTVECTOR,
  11863. VAR_VARIANTMAP,
  11864. VAR_INTRECT,
  11865. VAR_INTVECTOR2,
  11866. VAR_PTR,
  11867. VAR_MATRIX3,
  11868. VAR_MATRIX3X4,
  11869. VAR_MATRIX4,
  11870. };
  11871. enum VerticalAlignment
  11872. {
  11873. VA_TOP,
  11874. VA_CENTER,
  11875. VA_BOTTOM,
  11876. };
  11877. enum WrapMode
  11878. {
  11879. WM_LOOP,
  11880. WM_ONCE,
  11881. WM_CLAMP,
  11882. };
  11883. // Global functions
  11884. float Abs(float);
  11885. float Acos(float);
  11886. String AddTrailingSlash(const String&);
  11887. float Asin(float);
  11888. float Atan(float);
  11889. float Atan2(float, float);
  11890. float Ceil(float);
  11891. float Clamp(float, float, float);
  11892. int Clamp(int, int, int);
  11893. void ClearDelayedExecute(const String& = String ( ));
  11894. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  11895. float Cos(float);
  11896. uint CountSetBits(uint);
  11897. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  11898. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  11899. bool Equals(float, float);
  11900. void ErrorDialog(const String&, const String&);
  11901. float Floor(float);
  11902. uint GetAlphaFormat();
  11903. Array<String> GetArguments();
  11904. String GetConsoleInput();
  11905. uint GetDepthStencilFormat();
  11906. Object GetEventSender();
  11907. String GetExtension(const String&, bool = true);
  11908. String GetFileName(const String&);
  11909. String GetFileNameAndExtension(const String&, bool = false);
  11910. uint GetFloat16Format();
  11911. uint GetFloat32Format();
  11912. uint GetFormat(const String&);
  11913. String GetInternalPath(const String&);
  11914. uint GetLuminanceAlphaFormat();
  11915. uint GetLuminanceFormat();
  11916. uint GetNumLogicalCPUs();
  11917. uint GetNumPhysicalCPUs();
  11918. Array<String> GetObjectCategories();
  11919. Array<String> GetObjectsByCategory(const String&);
  11920. String GetParentPath(const String&);
  11921. String GetPath(const String&);
  11922. String GetPlatform();
  11923. uint GetRG16Format();
  11924. uint GetRGBA16Format();
  11925. uint GetRGBAFloat16Format();
  11926. uint GetRGBAFloat32Format();
  11927. uint GetRGBAFormat();
  11928. uint GetRGBFormat();
  11929. uint GetRGFloat16Format();
  11930. uint GetRGFloat32Format();
  11931. uint GetRandomSeed();
  11932. uint GetReadableDepthFormat();
  11933. String GetTextureUnitName(TextureUnit);
  11934. bool IsAbsolutePath(const String&);
  11935. bool IsAlpha(uint);
  11936. bool IsDigit(uint);
  11937. bool IsNaN(float);
  11938. bool IsPowerOfTwo(uint);
  11939. String Join(Array<String>&, const String&);
  11940. float Lerp(float, float, float);
  11941. void MarkNetworkUpdate();
  11942. float Max(float, float);
  11943. int Max(int, int);
  11944. float Min(float, float);
  11945. int Min(int, int);
  11946. float Mod(float, float);
  11947. uint NextPowerOfTwo(uint);
  11948. void OpenConsoleWindow();
  11949. float Pow(float, float);
  11950. void Print(bool, bool = false);
  11951. void Print(const String&, bool = false);
  11952. void Print(const Variant&, bool = false);
  11953. void Print(float, bool = false);
  11954. void Print(int, bool = false);
  11955. void Print(uint, bool = false);
  11956. void PrintCallStack(bool = false);
  11957. float Random();
  11958. float Random(float);
  11959. float Random(float, float);
  11960. int RandomInt();
  11961. int RandomInt(int);
  11962. int RandomInt(int, int);
  11963. float RandomNormal(float, float);
  11964. void Remove();
  11965. String RemoveTrailingSlash(const String&);
  11966. String ReplaceExtension(const String&, const String&);
  11967. uint SDBMHash(uint, uint8);
  11968. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11969. void SetRandomSeed(uint);
  11970. float Sign(float);
  11971. float Sin(float);
  11972. float SmoothStep(float, float, float);
  11973. float Sqrt(float);
  11974. const String& GetTypeName(StringHash);
  11975. void SubscribeToEvent(Object, const String&, const String&);
  11976. void SubscribeToEvent(const String&, const String&);
  11977. float Tan(float);
  11978. uint ToLower(uint);
  11979. String ToStringHex(int);
  11980. uint ToUpper(uint);
  11981. void UnsubscribeFromAllEvents();
  11982. void UnsubscribeFromAllEventsExcept(Array<String>);
  11983. void UnsubscribeFromEvent(Object, const String&);
  11984. void UnsubscribeFromEvent(const String&);
  11985. void UnsubscribeFromEvents(Object);
  11986. // Global properties
  11987. Audio audio;
  11988. ResourceCache cache;
  11989. Console console;
  11990. DebugHud debugHud;
  11991. DebugRenderer debugRenderer;
  11992. Engine engine;
  11993. FileSystem fileSystem;
  11994. Graphics graphics;
  11995. Input input;
  11996. Log log;
  11997. Network network;
  11998. Node node;
  11999. Octree octree;
  12000. PhysicsWorld physicsWorld;
  12001. PhysicsWorld2D physicsWorld2D;
  12002. Renderer renderer;
  12003. ResourceCache resourceCache;
  12004. Scene scene;
  12005. Script script;
  12006. ScriptFile scriptFile;
  12007. ScriptInstance self;
  12008. Time time;
  12009. UI ui;
  12010. // Global constants
  12011. uint AM_COMPONENTID;
  12012. uint AM_DEFAULT;
  12013. uint AM_FILE;
  12014. uint AM_LATESTDATA;
  12015. uint AM_NET;
  12016. uint AM_NODEID;
  12017. uint AM_NODEIDVECTOR;
  12018. uint AM_NOEDIT;
  12019. Color BLACK;
  12020. Color BLUE;
  12021. int CONTROLLER_AXIS_LEFTX;
  12022. int CONTROLLER_AXIS_LEFTY;
  12023. int CONTROLLER_AXIS_RIGHTX;
  12024. int CONTROLLER_AXIS_RIGHTY;
  12025. int CONTROLLER_AXIS_TRIGGERLEFT;
  12026. int CONTROLLER_AXIS_TRIGGERRIGHT;
  12027. int CONTROLLER_BUTTON_A;
  12028. int CONTROLLER_BUTTON_B;
  12029. int CONTROLLER_BUTTON_BACK;
  12030. int CONTROLLER_BUTTON_DPAD_DOWN;
  12031. int CONTROLLER_BUTTON_DPAD_LEFT;
  12032. int CONTROLLER_BUTTON_DPAD_RIGHT;
  12033. int CONTROLLER_BUTTON_DPAD_UP;
  12034. int CONTROLLER_BUTTON_GUIDE;
  12035. int CONTROLLER_BUTTON_LEFTSHOULDER;
  12036. int CONTROLLER_BUTTON_LEFTSTICK;
  12037. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  12038. int CONTROLLER_BUTTON_RIGHTSTICK;
  12039. int CONTROLLER_BUTTON_START;
  12040. int CONTROLLER_BUTTON_X;
  12041. int CONTROLLER_BUTTON_Y;
  12042. Color CYAN;
  12043. uint DD_DISABLED;
  12044. uint DD_SOURCE;
  12045. uint DD_SOURCE_AND_TARGET;
  12046. uint DD_TARGET;
  12047. uint DEBUGHUD_SHOW_ALL;
  12048. uint DEBUGHUD_SHOW_MODE;
  12049. uint DEBUGHUD_SHOW_NONE;
  12050. uint DEBUGHUD_SHOW_PROFILER;
  12051. uint DEBUGHUD_SHOW_STATS;
  12052. uint DEFAULT_LIGHTMASK;
  12053. uint DEFAULT_VIEWMASK;
  12054. uint DRAWABLE_ANY;
  12055. uint DRAWABLE_GEOMETRY;
  12056. uint DRAWABLE_GEOMETRY2D;
  12057. uint DRAWABLE_LIGHT;
  12058. uint DRAWABLE_ZONE;
  12059. uint FIRST_LOCAL_ID;
  12060. uint FIRST_REPLICATED_ID;
  12061. Color GRAY;
  12062. Color GREEN;
  12063. int HAT_CENTER;
  12064. int HAT_DOWN;
  12065. int HAT_LEFT;
  12066. int HAT_RIGHT;
  12067. int HAT_UP;
  12068. int KEY_0;
  12069. int KEY_1;
  12070. int KEY_2;
  12071. int KEY_3;
  12072. int KEY_4;
  12073. int KEY_5;
  12074. int KEY_6;
  12075. int KEY_7;
  12076. int KEY_8;
  12077. int KEY_9;
  12078. int KEY_A;
  12079. int KEY_ALT;
  12080. int KEY_APPLICATION;
  12081. int KEY_B;
  12082. int KEY_BACKSPACE;
  12083. int KEY_C;
  12084. int KEY_CAPSLOCK;
  12085. int KEY_CTRL;
  12086. int KEY_D;
  12087. int KEY_DELETE;
  12088. int KEY_DOWN;
  12089. int KEY_E;
  12090. int KEY_END;
  12091. int KEY_ESC;
  12092. int KEY_F;
  12093. int KEY_F1;
  12094. int KEY_F10;
  12095. int KEY_F11;
  12096. int KEY_F12;
  12097. int KEY_F13;
  12098. int KEY_F14;
  12099. int KEY_F15;
  12100. int KEY_F16;
  12101. int KEY_F17;
  12102. int KEY_F18;
  12103. int KEY_F19;
  12104. int KEY_F2;
  12105. int KEY_F20;
  12106. int KEY_F21;
  12107. int KEY_F22;
  12108. int KEY_F23;
  12109. int KEY_F24;
  12110. int KEY_F3;
  12111. int KEY_F4;
  12112. int KEY_F5;
  12113. int KEY_F6;
  12114. int KEY_F7;
  12115. int KEY_F8;
  12116. int KEY_F9;
  12117. int KEY_G;
  12118. int KEY_GUI;
  12119. int KEY_H;
  12120. int KEY_HOME;
  12121. int KEY_I;
  12122. int KEY_INSERT;
  12123. int KEY_J;
  12124. int KEY_K;
  12125. int KEY_KP_0;
  12126. int KEY_KP_1;
  12127. int KEY_KP_2;
  12128. int KEY_KP_3;
  12129. int KEY_KP_4;
  12130. int KEY_KP_5;
  12131. int KEY_KP_6;
  12132. int KEY_KP_7;
  12133. int KEY_KP_8;
  12134. int KEY_KP_9;
  12135. int KEY_KP_DIVIDE;
  12136. int KEY_KP_ENTER;
  12137. int KEY_KP_MINUS;
  12138. int KEY_KP_MULTIPLY;
  12139. int KEY_KP_PERIOD;
  12140. int KEY_KP_PLUS;
  12141. int KEY_L;
  12142. int KEY_LALT;
  12143. int KEY_LCTRL;
  12144. int KEY_LEFT;
  12145. int KEY_LGUI;
  12146. int KEY_LSHIFT;
  12147. int KEY_M;
  12148. int KEY_N;
  12149. int KEY_NUMLOCKCLEAR;
  12150. int KEY_O;
  12151. int KEY_P;
  12152. int KEY_PAGEDOWN;
  12153. int KEY_PAGEUP;
  12154. int KEY_PAUSE;
  12155. int KEY_PRINTSCREEN;
  12156. int KEY_Q;
  12157. int KEY_R;
  12158. int KEY_RALT;
  12159. int KEY_RCTRL;
  12160. int KEY_RETURN;
  12161. int KEY_RETURN2;
  12162. int KEY_RGUI;
  12163. int KEY_RIGHT;
  12164. int KEY_RSHIFT;
  12165. int KEY_S;
  12166. int KEY_SCROLLLOCK;
  12167. int KEY_SELECT;
  12168. int KEY_SHIFT;
  12169. int KEY_SPACE;
  12170. int KEY_T;
  12171. int KEY_TAB;
  12172. int KEY_U;
  12173. int KEY_UP;
  12174. int KEY_V;
  12175. int KEY_W;
  12176. int KEY_X;
  12177. int KEY_Y;
  12178. int KEY_Z;
  12179. uint LAST_LOCAL_ID;
  12180. uint LAST_REPLICATED_ID;
  12181. int LOG_DEBUG;
  12182. int LOG_ERROR;
  12183. int LOG_INFO;
  12184. int LOG_NONE;
  12185. int LOG_WARNING;
  12186. Color MAGENTA;
  12187. int MOUSEB_LEFT;
  12188. int MOUSEB_MIDDLE;
  12189. int MOUSEB_RIGHT;
  12190. float M_DEGTORAD;
  12191. float M_DEGTORAD_2;
  12192. float M_EPSILON;
  12193. float M_HALF_PI;
  12194. float M_INFINITY;
  12195. float M_LARGE_EPSILON;
  12196. float M_LARGE_VALUE;
  12197. int M_MAX_INT;
  12198. uint M_MAX_UNSIGNED;
  12199. int M_MIN_INT;
  12200. uint M_MIN_UNSIGNED;
  12201. float M_PI;
  12202. float M_RADTODEG;
  12203. float PIXEL_SIZE;
  12204. int QUALITY_HIGH;
  12205. int QUALITY_LOW;
  12206. int QUALITY_MAX;
  12207. int QUALITY_MEDIUM;
  12208. int QUAL_ALT;
  12209. int QUAL_ANY;
  12210. int QUAL_CTRL;
  12211. int QUAL_SHIFT;
  12212. Color RED;
  12213. int SCANCODE_0;
  12214. int SCANCODE_1;
  12215. int SCANCODE_2;
  12216. int SCANCODE_3;
  12217. int SCANCODE_4;
  12218. int SCANCODE_5;
  12219. int SCANCODE_6;
  12220. int SCANCODE_7;
  12221. int SCANCODE_8;
  12222. int SCANCODE_9;
  12223. int SCANCODE_A;
  12224. int SCANCODE_AC_BACK;
  12225. int SCANCODE_AC_BOOKMARKS;
  12226. int SCANCODE_AC_FORWARD;
  12227. int SCANCODE_AC_HOME;
  12228. int SCANCODE_AC_REFRESH;
  12229. int SCANCODE_AC_SEARCH;
  12230. int SCANCODE_AC_STOP;
  12231. int SCANCODE_AGAIN;
  12232. int SCANCODE_ALT;
  12233. int SCANCODE_ALTERASE;
  12234. int SCANCODE_APOSTROPHE;
  12235. int SCANCODE_APP1;
  12236. int SCANCODE_APP2;
  12237. int SCANCODE_APPLICATION;
  12238. int SCANCODE_AUDIOMUTE;
  12239. int SCANCODE_AUDIONEXT;
  12240. int SCANCODE_AUDIOPLAY;
  12241. int SCANCODE_AUDIOPREV;
  12242. int SCANCODE_AUDIOSTOP;
  12243. int SCANCODE_B;
  12244. int SCANCODE_BACKSLASH;
  12245. int SCANCODE_BACKSPACE;
  12246. int SCANCODE_BRIGHTNESSDOWN;
  12247. int SCANCODE_BRIGHTNESSUP;
  12248. int SCANCODE_C;
  12249. int SCANCODE_CALCULATOR;
  12250. int SCANCODE_CANCEL;
  12251. int SCANCODE_CAPSLOCK;
  12252. int SCANCODE_CLEAR;
  12253. int SCANCODE_CLEARAGAIN;
  12254. int SCANCODE_COMMA;
  12255. int SCANCODE_COMPUTER;
  12256. int SCANCODE_COPY;
  12257. int SCANCODE_CRSEL;
  12258. int SCANCODE_CTRL;
  12259. int SCANCODE_CURRENCYSUBUNIT;
  12260. int SCANCODE_CURRENCYUNIT;
  12261. int SCANCODE_CUT;
  12262. int SCANCODE_D;
  12263. int SCANCODE_DECIMALSEPARATOR;
  12264. int SCANCODE_DELETE;
  12265. int SCANCODE_DISPLAYSWITCH;
  12266. int SCANCODE_DOWN;
  12267. int SCANCODE_E;
  12268. int SCANCODE_EJECT;
  12269. int SCANCODE_END;
  12270. int SCANCODE_EQUALS;
  12271. int SCANCODE_ESCAPE;
  12272. int SCANCODE_EXECUTE;
  12273. int SCANCODE_EXSEL;
  12274. int SCANCODE_F;
  12275. int SCANCODE_F1;
  12276. int SCANCODE_F10;
  12277. int SCANCODE_F11;
  12278. int SCANCODE_F12;
  12279. int SCANCODE_F13;
  12280. int SCANCODE_F14;
  12281. int SCANCODE_F15;
  12282. int SCANCODE_F16;
  12283. int SCANCODE_F17;
  12284. int SCANCODE_F18;
  12285. int SCANCODE_F19;
  12286. int SCANCODE_F2;
  12287. int SCANCODE_F20;
  12288. int SCANCODE_F21;
  12289. int SCANCODE_F22;
  12290. int SCANCODE_F23;
  12291. int SCANCODE_F24;
  12292. int SCANCODE_F3;
  12293. int SCANCODE_F4;
  12294. int SCANCODE_F5;
  12295. int SCANCODE_F6;
  12296. int SCANCODE_F7;
  12297. int SCANCODE_F8;
  12298. int SCANCODE_F9;
  12299. int SCANCODE_FIND;
  12300. int SCANCODE_G;
  12301. int SCANCODE_GRAVE;
  12302. int SCANCODE_GUI;
  12303. int SCANCODE_H;
  12304. int SCANCODE_HELP;
  12305. int SCANCODE_HOME;
  12306. int SCANCODE_I;
  12307. int SCANCODE_INSERT;
  12308. int SCANCODE_INTERNATIONAL1;
  12309. int SCANCODE_INTERNATIONAL2;
  12310. int SCANCODE_INTERNATIONAL3;
  12311. int SCANCODE_INTERNATIONAL4;
  12312. int SCANCODE_INTERNATIONAL5;
  12313. int SCANCODE_INTERNATIONAL6;
  12314. int SCANCODE_INTERNATIONAL7;
  12315. int SCANCODE_INTERNATIONAL8;
  12316. int SCANCODE_INTERNATIONAL9;
  12317. int SCANCODE_J;
  12318. int SCANCODE_K;
  12319. int SCANCODE_KBDILLUMDOWN;
  12320. int SCANCODE_KBDILLUMTOGGLE;
  12321. int SCANCODE_KBDILLUMUP;
  12322. int SCANCODE_KP_0;
  12323. int SCANCODE_KP_00;
  12324. int SCANCODE_KP_000;
  12325. int SCANCODE_KP_1;
  12326. int SCANCODE_KP_2;
  12327. int SCANCODE_KP_3;
  12328. int SCANCODE_KP_4;
  12329. int SCANCODE_KP_5;
  12330. int SCANCODE_KP_6;
  12331. int SCANCODE_KP_7;
  12332. int SCANCODE_KP_8;
  12333. int SCANCODE_KP_9;
  12334. int SCANCODE_KP_A;
  12335. int SCANCODE_KP_AMPERSAND;
  12336. int SCANCODE_KP_AT;
  12337. int SCANCODE_KP_B;
  12338. int SCANCODE_KP_BACKSPACE;
  12339. int SCANCODE_KP_BINARY;
  12340. int SCANCODE_KP_C;
  12341. int SCANCODE_KP_CLEAR;
  12342. int SCANCODE_KP_CLEARENTRY;
  12343. int SCANCODE_KP_COLON;
  12344. int SCANCODE_KP_COMMA;
  12345. int SCANCODE_KP_D;
  12346. int SCANCODE_KP_DBLAMPERSAND;
  12347. int SCANCODE_KP_DBLVERTICALBAR;
  12348. int SCANCODE_KP_DECIMAL;
  12349. int SCANCODE_KP_DIVIDE;
  12350. int SCANCODE_KP_E;
  12351. int SCANCODE_KP_ENTER;
  12352. int SCANCODE_KP_EQUALS;
  12353. int SCANCODE_KP_EQUALSAS400;
  12354. int SCANCODE_KP_EXCLAM;
  12355. int SCANCODE_KP_F;
  12356. int SCANCODE_KP_GREATER;
  12357. int SCANCODE_KP_HASH;
  12358. int SCANCODE_KP_HEXADECIMAL;
  12359. int SCANCODE_KP_LEFTBRACE;
  12360. int SCANCODE_KP_LEFTPAREN;
  12361. int SCANCODE_KP_LESS;
  12362. int SCANCODE_KP_MEMADD;
  12363. int SCANCODE_KP_MEMCLEAR;
  12364. int SCANCODE_KP_MEMDIVIDE;
  12365. int SCANCODE_KP_MEMMULTIPLY;
  12366. int SCANCODE_KP_MEMRECALL;
  12367. int SCANCODE_KP_MEMSTORE;
  12368. int SCANCODE_KP_MEMSUBTRACT;
  12369. int SCANCODE_KP_MINUS;
  12370. int SCANCODE_KP_MULTIPLY;
  12371. int SCANCODE_KP_OCTAL;
  12372. int SCANCODE_KP_PERCENT;
  12373. int SCANCODE_KP_PERIOD;
  12374. int SCANCODE_KP_PLUS;
  12375. int SCANCODE_KP_PLUSMINUS;
  12376. int SCANCODE_KP_POWER;
  12377. int SCANCODE_KP_RIGHTBRACE;
  12378. int SCANCODE_KP_RIGHTPAREN;
  12379. int SCANCODE_KP_SPACE;
  12380. int SCANCODE_KP_TAB;
  12381. int SCANCODE_KP_VERTICALBAR;
  12382. int SCANCODE_KP_XOR;
  12383. int SCANCODE_L;
  12384. int SCANCODE_LALT;
  12385. int SCANCODE_LANG1;
  12386. int SCANCODE_LANG2;
  12387. int SCANCODE_LANG3;
  12388. int SCANCODE_LANG4;
  12389. int SCANCODE_LANG5;
  12390. int SCANCODE_LANG6;
  12391. int SCANCODE_LANG7;
  12392. int SCANCODE_LANG8;
  12393. int SCANCODE_LANG9;
  12394. int SCANCODE_LCTRL;
  12395. int SCANCODE_LEFT;
  12396. int SCANCODE_LEFTBRACKET;
  12397. int SCANCODE_LGUI;
  12398. int SCANCODE_LSHIFT;
  12399. int SCANCODE_M;
  12400. int SCANCODE_MAIL;
  12401. int SCANCODE_MEDIASELECT;
  12402. int SCANCODE_MENU;
  12403. int SCANCODE_MINUS;
  12404. int SCANCODE_MODE;
  12405. int SCANCODE_MUTE;
  12406. int SCANCODE_N;
  12407. int SCANCODE_NONUSBACKSLASH;
  12408. int SCANCODE_NONUSHASH;
  12409. int SCANCODE_NUMLOCKCLEAR;
  12410. int SCANCODE_O;
  12411. int SCANCODE_OPER;
  12412. int SCANCODE_OUT;
  12413. int SCANCODE_P;
  12414. int SCANCODE_PAGEDOWN;
  12415. int SCANCODE_PAGEUP;
  12416. int SCANCODE_PASTE;
  12417. int SCANCODE_PAUSE;
  12418. int SCANCODE_PERIOD;
  12419. int SCANCODE_POWER;
  12420. int SCANCODE_PRINTSCREEN;
  12421. int SCANCODE_PRIOR;
  12422. int SCANCODE_Q;
  12423. int SCANCODE_R;
  12424. int SCANCODE_RALT;
  12425. int SCANCODE_RCTRL;
  12426. int SCANCODE_RETURN;
  12427. int SCANCODE_RETURN2;
  12428. int SCANCODE_RGUI;
  12429. int SCANCODE_RIGHT;
  12430. int SCANCODE_RIGHTBRACKET;
  12431. int SCANCODE_RSHIFT;
  12432. int SCANCODE_S;
  12433. int SCANCODE_SCROLLLOCK;
  12434. int SCANCODE_SELECT;
  12435. int SCANCODE_SEMICOLON;
  12436. int SCANCODE_SEPARATOR;
  12437. int SCANCODE_SHIFT;
  12438. int SCANCODE_SLASH;
  12439. int SCANCODE_SLEEP;
  12440. int SCANCODE_SPACE;
  12441. int SCANCODE_STOP;
  12442. int SCANCODE_SYSREQ;
  12443. int SCANCODE_T;
  12444. int SCANCODE_TAB;
  12445. int SCANCODE_THOUSANDSSEPARATOR;
  12446. int SCANCODE_U;
  12447. int SCANCODE_UNDO;
  12448. int SCANCODE_UNKNOWN;
  12449. int SCANCODE_UP;
  12450. int SCANCODE_V;
  12451. int SCANCODE_VOLUMEDOWN;
  12452. int SCANCODE_VOLUMEUP;
  12453. int SCANCODE_W;
  12454. int SCANCODE_WWW;
  12455. int SCANCODE_X;
  12456. int SCANCODE_Y;
  12457. int SCANCODE_Z;
  12458. uint SCAN_DIRS;
  12459. uint SCAN_FILES;
  12460. uint SCAN_HIDDEN;
  12461. int SHADOWQUALITY_HIGH_16BIT;
  12462. int SHADOWQUALITY_HIGH_24BIT;
  12463. int SHADOWQUALITY_LOW_16BIT;
  12464. int SHADOWQUALITY_LOW_24BIT;
  12465. String SOUND_AMBIENT;
  12466. String SOUND_EFFECT;
  12467. String SOUND_MASTER;
  12468. String SOUND_MUSIC;
  12469. String SOUND_VOICE;
  12470. Color TRANSPARENT;
  12471. uint VO_DISABLE_OCCLUSION;
  12472. uint VO_DISABLE_SHADOWS;
  12473. uint VO_LOW_MATERIAL_QUALITY;
  12474. uint VO_NONE;
  12475. Color WHITE;
  12476. Color YELLOW;