AngelScriptAPI.h 309 KB

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