AngelScriptAPI.h 299 KB

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