AngelScriptAPI.h 326 KB

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