AngelScriptAPI.h 323 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619
  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 CrowdAgent
  2964. {
  2965. // Methods:
  2966. void ApplyAttributes();
  2967. void DrawDebugGeometry(DebugRenderer, bool);
  2968. void DrawDebugGeometry(bool);
  2969. Variant GetAttribute(const String&) const;
  2970. ValueAnimation GetAttributeAnimation(const String&) const;
  2971. float GetAttributeAnimationSpeed(const String&) const;
  2972. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2973. Variant GetAttributeDefault(const String&) const;
  2974. bool GetInterceptNetworkUpdate(const String&) const;
  2975. bool Load(File, bool = false);
  2976. bool Load(VectorBuffer&, bool = false);
  2977. bool LoadXML(const XMLElement&, bool = false);
  2978. void MarkNetworkUpdate() const;
  2979. void Remove();
  2980. void RemoveInstanceDefault();
  2981. void ResetToDefault();
  2982. bool Save(File) const;
  2983. bool Save(VectorBuffer&) const;
  2984. bool SaveXML(XMLElement&) const;
  2985. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2986. bool SetAttribute(const String&, const Variant&);
  2987. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2988. void SetAttributeAnimationSpeed(const String&, float);
  2989. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2990. void SetInterceptNetworkUpdate(const String&, bool);
  2991. bool SetMoveTarget(const Vector3&);
  2992. bool SetMoveVelocity(const Vector3&);
  2993. // Properties:
  2994. /* readonly */
  2995. Vector3 actualVelocity;
  2996. /* readonly */
  2997. CrowdAgentState agentState;
  2998. bool animationEnabled;
  2999. /* readonly */
  3000. Array<Variant> attributeDefaults;
  3001. /* readonly */
  3002. Array<AttributeInfo> attributeInfos;
  3003. Array<Variant> attributes;
  3004. /* readonly */
  3005. StringHash baseType;
  3006. /* readonly */
  3007. String category;
  3008. /* readonly */
  3009. Vector3 desiredVelocity;
  3010. bool enabled;
  3011. /* readonly */
  3012. bool enabledEffective;
  3013. float height;
  3014. /* readonly */
  3015. uint id;
  3016. float maxAccel;
  3017. float maxSpeed;
  3018. uint navigationFilterType;
  3019. NavigationPushiness navigationPushiness;
  3020. NavigationAvoidanceQuality navigationQuality;
  3021. /* readonly */
  3022. Node node;
  3023. /* readonly */
  3024. uint numAttributes;
  3025. ObjectAnimation objectAnimation;
  3026. /* readonly */
  3027. Vector3 position;
  3028. float radius;
  3029. /* readonly */
  3030. int refs;
  3031. /* readonly */
  3032. Vector3 targetPosition;
  3033. /* readonly */
  3034. CrowdTargetState targetState;
  3035. bool temporary;
  3036. /* readonly */
  3037. StringHash type;
  3038. /* readonly */
  3039. String typeName;
  3040. bool updateNodePosition;
  3041. /* readonly */
  3042. int weakRefs;
  3043. };
  3044. class Cursor
  3045. {
  3046. // Methods:
  3047. void AddChild(UIElement);
  3048. void ApplyAttributes();
  3049. void BringToFront();
  3050. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3051. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3052. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3053. void DisableLayoutUpdate();
  3054. IntVector2 ElementToScreen(const IntVector2&);
  3055. void EnableLayoutUpdate();
  3056. uint FindChild(UIElement) const;
  3057. Variant GetAttribute(const String&) const;
  3058. ValueAnimation GetAttributeAnimation(const String&) const;
  3059. float GetAttributeAnimationSpeed(const String&) const;
  3060. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3061. Variant GetAttributeDefault(const String&) const;
  3062. UIElement GetChild(const String&, bool = false) const;
  3063. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3064. Array<UIElement> GetChildren(bool = false) const;
  3065. UIElement GetElementEventSender() const;
  3066. bool GetInterceptNetworkUpdate(const String&) const;
  3067. uint GetNumChildren(bool) const;
  3068. void InsertChild(uint, UIElement);
  3069. bool IsInside(IntVector2, bool);
  3070. bool IsInsideCombined(IntVector2, bool);
  3071. bool Load(File, bool = false);
  3072. bool Load(VectorBuffer&, bool = false);
  3073. bool LoadChildXML(XMLFile, XMLFile = null);
  3074. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3075. bool LoadXML(File);
  3076. bool LoadXML(VectorBuffer&);
  3077. bool LoadXML(XMLFile, XMLFile);
  3078. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3079. bool LoadXML(const XMLElement&, bool = false);
  3080. void MarkNetworkUpdate() const;
  3081. void Remove();
  3082. void RemoveAllChildren();
  3083. void RemoveChild(UIElement, uint = 0);
  3084. void RemoveChild(uint);
  3085. void RemoveInstanceDefault();
  3086. void ResetDeepEnabled();
  3087. void ResetToDefault();
  3088. bool Save(File) const;
  3089. bool Save(VectorBuffer&) const;
  3090. bool SaveXML(File, const String& = "\t");
  3091. bool SaveXML(VectorBuffer&, const String& = "\t");
  3092. bool SaveXML(XMLElement&) const;
  3093. IntVector2 ScreenToElement(const IntVector2&);
  3094. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3095. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3096. bool SetAttribute(const String&, const Variant&);
  3097. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3098. void SetAttributeAnimationSpeed(const String&, float);
  3099. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3100. void SetDeepEnabled(bool);
  3101. void SetEnabledRecursive(bool);
  3102. void SetFixedHeight(int);
  3103. void SetFixedSize(int, int);
  3104. void SetFixedWidth(int);
  3105. void SetFullImageRect();
  3106. void SetHoverOffset(int, int);
  3107. void SetInterceptNetworkUpdate(const String&, bool);
  3108. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3109. void SetMaxSize(int, int);
  3110. void SetMinSize(int, int);
  3111. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3112. void SetPosition(int, int);
  3113. void SetShape(CursorShape);
  3114. void SetShape(const String&);
  3115. void SetSize(int, int);
  3116. bool SetStyle(const String&, XMLFile = null);
  3117. bool SetStyle(const XMLElement&);
  3118. bool SetStyleAuto(XMLFile = null);
  3119. void UpdateLayout();
  3120. const Variant& GetVar(const StringHash&);
  3121. // Properties:
  3122. bool animationEnabled;
  3123. /* readonly */
  3124. Array<Variant> attributeDefaults;
  3125. /* readonly */
  3126. Array<AttributeInfo> attributeInfos;
  3127. Array<Variant> attributes;
  3128. /* readonly */
  3129. StringHash baseType;
  3130. BlendMode blendMode;
  3131. IntRect border;
  3132. bool bringToBack;
  3133. bool bringToFront;
  3134. /* readonly */
  3135. String category;
  3136. /* readonly */
  3137. IntVector2 childOffset;
  3138. /* readonly */
  3139. Array<UIElement> children;
  3140. IntRect clipBorder;
  3141. bool clipChildren;
  3142. /* writeonly */
  3143. Color color;
  3144. /* readonly */
  3145. bool colorGradient;
  3146. Array<Color> colors;
  3147. /* readonly */
  3148. IntRect combinedScreenRect;
  3149. XMLFile defaultStyle;
  3150. /* readonly */
  3151. float derivedOpacity;
  3152. /* readonly */
  3153. uint dragButtonCombo;
  3154. /* readonly */
  3155. int dragButtonCount;
  3156. uint dragDropMode;
  3157. bool editable;
  3158. bool elementEventSender;
  3159. bool enabled;
  3160. /* readonly */
  3161. bool enabledSelf;
  3162. /* readonly */
  3163. bool fixedHeight;
  3164. /* readonly */
  3165. bool fixedSize;
  3166. /* readonly */
  3167. bool fixedWidth;
  3168. bool focus;
  3169. FocusMode focusMode;
  3170. int height;
  3171. HorizontalAlignment horizontalAlignment;
  3172. IntVector2 hoverOffset;
  3173. /* readonly */
  3174. bool hovering;
  3175. IntRect imageBorder;
  3176. IntRect imageRect;
  3177. int indent;
  3178. int indentSpacing;
  3179. /* readonly */
  3180. int indentWidth;
  3181. bool internal;
  3182. IntRect layoutBorder;
  3183. Vector2 layoutFlexScale;
  3184. LayoutMode layoutMode;
  3185. int layoutSpacing;
  3186. int maxHeight;
  3187. IntVector2 maxSize;
  3188. int maxWidth;
  3189. int minHeight;
  3190. IntVector2 minSize;
  3191. int minWidth;
  3192. String name;
  3193. /* readonly */
  3194. uint numAllChildren;
  3195. /* readonly */
  3196. uint numAttributes;
  3197. /* readonly */
  3198. uint numChildren;
  3199. ObjectAnimation objectAnimation;
  3200. float opacity;
  3201. UIElement parent;
  3202. IntVector2 position;
  3203. int priority;
  3204. /* readonly */
  3205. int refs;
  3206. /* readonly */
  3207. UIElement root;
  3208. /* readonly */
  3209. IntVector2 screenPosition;
  3210. bool selected;
  3211. String shape;
  3212. IntVector2 size;
  3213. bool sortChildren;
  3214. String style;
  3215. bool temporary;
  3216. Texture texture;
  3217. bool tiled;
  3218. TraversalMode traversalMode;
  3219. /* readonly */
  3220. StringHash type;
  3221. /* readonly */
  3222. String typeName;
  3223. bool useDerivedOpacity;
  3224. bool useSystemShapes;
  3225. /* readonly */
  3226. VariantMap vars;
  3227. VerticalAlignment verticalAlignment;
  3228. bool visible;
  3229. /* readonly */
  3230. int weakRefs;
  3231. int width;
  3232. };
  3233. class CustomGeometry
  3234. {
  3235. // Methods:
  3236. void ApplyAttributes();
  3237. void BeginGeometry(uint, PrimitiveType);
  3238. void Clear();
  3239. void Commit();
  3240. void DefineColor(const Color&);
  3241. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3242. void DefineNormal(const Vector3&);
  3243. void DefineTangent(const Vector4&);
  3244. void DefineTexCoord(const Vector2&);
  3245. void DefineVertex(const Vector3&);
  3246. void DrawDebugGeometry(DebugRenderer, bool);
  3247. Variant GetAttribute(const String&) const;
  3248. ValueAnimation GetAttributeAnimation(const String&) const;
  3249. float GetAttributeAnimationSpeed(const String&) const;
  3250. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3251. Variant GetAttributeDefault(const String&) const;
  3252. bool GetInterceptNetworkUpdate(const String&) const;
  3253. CustomGeometryVertex GetVertex(uint, uint);
  3254. bool IsInView(Camera) const;
  3255. bool Load(File, bool = false);
  3256. bool Load(VectorBuffer&, bool = false);
  3257. bool LoadXML(const XMLElement&, bool = false);
  3258. void MarkNetworkUpdate() const;
  3259. void Remove();
  3260. void RemoveInstanceDefault();
  3261. void ResetToDefault();
  3262. bool Save(File) const;
  3263. bool Save(VectorBuffer&) const;
  3264. bool SaveXML(XMLElement&) const;
  3265. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3266. bool SetAttribute(const String&, const Variant&);
  3267. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3268. void SetAttributeAnimationSpeed(const String&, float);
  3269. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3270. void SetInterceptNetworkUpdate(const String&, bool);
  3271. // Properties:
  3272. bool animationEnabled;
  3273. /* readonly */
  3274. Array<Variant> attributeDefaults;
  3275. /* readonly */
  3276. Array<AttributeInfo> attributeInfos;
  3277. Array<Variant> attributes;
  3278. /* readonly */
  3279. StringHash baseType;
  3280. /* readonly */
  3281. BoundingBox boundingBox;
  3282. bool castShadows;
  3283. /* readonly */
  3284. String category;
  3285. float drawDistance;
  3286. bool dynamic;
  3287. bool enabled;
  3288. /* readonly */
  3289. bool enabledEffective;
  3290. /* readonly */
  3291. uint id;
  3292. /* readonly */
  3293. bool inView;
  3294. uint lightMask;
  3295. float lodBias;
  3296. /* writeonly */
  3297. Material material;
  3298. Array<Material> materials;
  3299. uint maxLights;
  3300. /* readonly */
  3301. Node node;
  3302. /* readonly */
  3303. uint numAttributes;
  3304. uint numGeometries;
  3305. /* readonly */
  3306. Array<uint> numVertices;
  3307. ObjectAnimation objectAnimation;
  3308. bool occludee;
  3309. bool occluder;
  3310. /* readonly */
  3311. int refs;
  3312. float shadowDistance;
  3313. uint shadowMask;
  3314. bool temporary;
  3315. /* readonly */
  3316. StringHash type;
  3317. /* readonly */
  3318. String typeName;
  3319. uint viewMask;
  3320. /* readonly */
  3321. int weakRefs;
  3322. /* readonly */
  3323. BoundingBox worldBoundingBox;
  3324. /* readonly */
  3325. Zone zone;
  3326. uint zoneMask;
  3327. };
  3328. class CustomGeometryVertex
  3329. {
  3330. // Properties:
  3331. uint color;
  3332. Vector3 normal;
  3333. Vector3 position;
  3334. Vector4 tangent;
  3335. Vector2 texCoord;
  3336. };
  3337. class DebugHud
  3338. {
  3339. // Methods:
  3340. void ClearAppStats();
  3341. void ResetAppStats(const String&);
  3342. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3343. void SetAppStats(const String&, const String&);
  3344. void SetAppStats(const String&, const Variant&);
  3345. void Toggle(uint);
  3346. void ToggleAll();
  3347. void Update();
  3348. // Properties:
  3349. /* readonly */
  3350. StringHash baseType;
  3351. /* readonly */
  3352. String category;
  3353. XMLFile defaultStyle;
  3354. uint mode;
  3355. /* readonly */
  3356. Text modeText;
  3357. float profilerInterval;
  3358. uint profilerMaxDepth;
  3359. /* readonly */
  3360. Text profilerText;
  3361. /* readonly */
  3362. int refs;
  3363. /* readonly */
  3364. Text statsText;
  3365. /* readonly */
  3366. StringHash type;
  3367. /* readonly */
  3368. String typeName;
  3369. bool useRendererStats;
  3370. /* readonly */
  3371. int weakRefs;
  3372. };
  3373. class DebugRenderer
  3374. {
  3375. // Methods:
  3376. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3377. void AddFrustum(const Frustum&, const Color&, bool = true);
  3378. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3379. void AddNode(Node, float = 1.0, bool = true);
  3380. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3381. void AddSkeleton(Skeleton, const Color&, bool = true);
  3382. void AddSphere(const Sphere&, const Color&, bool = true);
  3383. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3384. void ApplyAttributes();
  3385. void DrawDebugGeometry(DebugRenderer, bool);
  3386. Variant GetAttribute(const String&) const;
  3387. ValueAnimation GetAttributeAnimation(const String&) const;
  3388. float GetAttributeAnimationSpeed(const String&) const;
  3389. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3390. Variant GetAttributeDefault(const String&) const;
  3391. bool GetInterceptNetworkUpdate(const String&) const;
  3392. bool Load(File, bool = false);
  3393. bool Load(VectorBuffer&, bool = false);
  3394. bool LoadXML(const XMLElement&, bool = false);
  3395. void MarkNetworkUpdate() const;
  3396. void Remove();
  3397. void RemoveInstanceDefault();
  3398. void ResetToDefault();
  3399. bool Save(File) const;
  3400. bool Save(VectorBuffer&) const;
  3401. bool SaveXML(XMLElement&) const;
  3402. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3403. bool SetAttribute(const String&, const Variant&);
  3404. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3405. void SetAttributeAnimationSpeed(const String&, float);
  3406. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3407. void SetInterceptNetworkUpdate(const String&, bool);
  3408. // Properties:
  3409. bool animationEnabled;
  3410. /* readonly */
  3411. Array<Variant> attributeDefaults;
  3412. /* readonly */
  3413. Array<AttributeInfo> attributeInfos;
  3414. Array<Variant> attributes;
  3415. /* readonly */
  3416. StringHash baseType;
  3417. /* readonly */
  3418. String category;
  3419. bool enabled;
  3420. /* readonly */
  3421. bool enabledEffective;
  3422. /* readonly */
  3423. uint id;
  3424. /* readonly */
  3425. Node node;
  3426. /* readonly */
  3427. uint numAttributes;
  3428. ObjectAnimation objectAnimation;
  3429. /* readonly */
  3430. int refs;
  3431. bool temporary;
  3432. /* readonly */
  3433. StringHash type;
  3434. /* readonly */
  3435. String typeName;
  3436. /* readonly */
  3437. int weakRefs;
  3438. };
  3439. class DecalSet
  3440. {
  3441. // Methods:
  3442. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3443. void ApplyAttributes();
  3444. void DrawDebugGeometry(DebugRenderer, bool);
  3445. Variant GetAttribute(const String&) const;
  3446. ValueAnimation GetAttributeAnimation(const String&) const;
  3447. float GetAttributeAnimationSpeed(const String&) const;
  3448. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3449. Variant GetAttributeDefault(const String&) const;
  3450. bool GetInterceptNetworkUpdate(const String&) const;
  3451. bool IsInView(Camera) const;
  3452. bool Load(File, bool = false);
  3453. bool Load(VectorBuffer&, bool = false);
  3454. bool LoadXML(const XMLElement&, bool = false);
  3455. void MarkNetworkUpdate() const;
  3456. void Remove();
  3457. void RemoveAllDecals();
  3458. void RemoveDecals(uint);
  3459. void RemoveInstanceDefault();
  3460. void ResetToDefault();
  3461. bool Save(File) const;
  3462. bool Save(VectorBuffer&) const;
  3463. bool SaveXML(XMLElement&) const;
  3464. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3465. bool SetAttribute(const String&, const Variant&);
  3466. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3467. void SetAttributeAnimationSpeed(const String&, float);
  3468. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3469. void SetInterceptNetworkUpdate(const String&, bool);
  3470. // Properties:
  3471. bool animationEnabled;
  3472. /* readonly */
  3473. Array<Variant> attributeDefaults;
  3474. /* readonly */
  3475. Array<AttributeInfo> attributeInfos;
  3476. Array<Variant> attributes;
  3477. /* readonly */
  3478. StringHash baseType;
  3479. /* readonly */
  3480. BoundingBox boundingBox;
  3481. bool castShadows;
  3482. /* readonly */
  3483. String category;
  3484. float drawDistance;
  3485. bool enabled;
  3486. /* readonly */
  3487. bool enabledEffective;
  3488. /* readonly */
  3489. uint id;
  3490. /* readonly */
  3491. bool inView;
  3492. uint lightMask;
  3493. float lodBias;
  3494. Material material;
  3495. uint maxIndices;
  3496. uint maxLights;
  3497. uint maxVertices;
  3498. /* readonly */
  3499. Node node;
  3500. /* readonly */
  3501. uint numAttributes;
  3502. /* readonly */
  3503. uint numDecals;
  3504. /* readonly */
  3505. uint numIndices;
  3506. /* readonly */
  3507. uint numVertices;
  3508. ObjectAnimation objectAnimation;
  3509. bool occludee;
  3510. bool occluder;
  3511. /* readonly */
  3512. int refs;
  3513. float shadowDistance;
  3514. uint shadowMask;
  3515. bool temporary;
  3516. /* readonly */
  3517. StringHash type;
  3518. /* readonly */
  3519. String typeName;
  3520. uint viewMask;
  3521. /* readonly */
  3522. int weakRefs;
  3523. /* readonly */
  3524. BoundingBox worldBoundingBox;
  3525. /* readonly */
  3526. Zone zone;
  3527. uint zoneMask;
  3528. };
  3529. class Deserializer
  3530. {
  3531. // Methods:
  3532. Array<uint8> Read(uint);
  3533. bool ReadBool();
  3534. BoundingBox ReadBoundingBox();
  3535. int8 ReadByte();
  3536. Color ReadColor();
  3537. String ReadFileID();
  3538. float ReadFloat();
  3539. int ReadInt();
  3540. IntRect ReadIntRect();
  3541. IntVector2 ReadIntVector2();
  3542. String ReadLine();
  3543. Matrix3 ReadMatrix3();
  3544. Matrix3x4 ReadMatrix3x4();
  3545. Matrix4 ReadMatrix4();
  3546. uint ReadNetID();
  3547. Quaternion ReadPackedQuaternion();
  3548. Vector3 ReadPackedVector3(float);
  3549. Quaternion ReadQuaternion();
  3550. int16 ReadShort();
  3551. String ReadString();
  3552. StringHash ReadStringHash();
  3553. uint8 ReadUByte();
  3554. uint ReadUInt();
  3555. uint16 ReadUShort();
  3556. uint ReadVLE();
  3557. Variant ReadVariant();
  3558. VariantMap ReadVariantMap();
  3559. Vector2 ReadVector2();
  3560. Vector3 ReadVector3();
  3561. Vector4 ReadVector4();
  3562. VectorBuffer ReadVectorBuffer(uint);
  3563. uint Seek(uint);
  3564. // Properties:
  3565. /* readonly */
  3566. uint checksum;
  3567. /* readonly */
  3568. bool eof;
  3569. /* readonly */
  3570. String name;
  3571. /* readonly */
  3572. uint position;
  3573. /* readonly */
  3574. uint size;
  3575. };
  3576. class DetourCrowdManager
  3577. {
  3578. // Methods:
  3579. void ApplyAttributes();
  3580. void CreateCrowd();
  3581. void DrawDebugGeometry(DebugRenderer, bool);
  3582. Array<CrowdAgent> GetActiveAgents();
  3583. float GetAreaCost(uint, uint);
  3584. Variant GetAttribute(const String&) const;
  3585. ValueAnimation GetAttributeAnimation(const String&) const;
  3586. float GetAttributeAnimationSpeed(const String&) const;
  3587. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3588. Variant GetAttributeDefault(const String&) const;
  3589. bool GetInterceptNetworkUpdate(const String&) const;
  3590. bool Load(File, bool = false);
  3591. bool Load(VectorBuffer&, bool = false);
  3592. bool LoadXML(const XMLElement&, bool = false);
  3593. void MarkNetworkUpdate() const;
  3594. void Remove();
  3595. void RemoveInstanceDefault();
  3596. void ResetToDefault();
  3597. bool Save(File) const;
  3598. bool Save(VectorBuffer&) const;
  3599. bool SaveXML(XMLElement&) const;
  3600. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3601. void SetAreaCost(uint, uint, float);
  3602. bool SetAttribute(const String&, const Variant&);
  3603. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3604. void SetAttributeAnimationSpeed(const String&, float);
  3605. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3606. void SetInterceptNetworkUpdate(const String&, bool);
  3607. // Properties:
  3608. bool animationEnabled;
  3609. /* readonly */
  3610. Array<Variant> attributeDefaults;
  3611. /* readonly */
  3612. Array<AttributeInfo> attributeInfos;
  3613. Array<Variant> attributes;
  3614. /* readonly */
  3615. StringHash baseType;
  3616. /* readonly */
  3617. String category;
  3618. bool enabled;
  3619. /* readonly */
  3620. bool enabledEffective;
  3621. /* readonly */
  3622. uint id;
  3623. int maxAgents;
  3624. NavigationMesh navMesh;
  3625. /* readonly */
  3626. Node node;
  3627. /* readonly */
  3628. uint numAttributes;
  3629. ObjectAnimation objectAnimation;
  3630. /* readonly */
  3631. int refs;
  3632. bool temporary;
  3633. /* readonly */
  3634. StringHash type;
  3635. /* readonly */
  3636. String typeName;
  3637. /* readonly */
  3638. int weakRefs;
  3639. };
  3640. class Dictionary
  3641. {
  3642. // Methods:
  3643. void Clear();
  3644. void Erase(const String&);
  3645. bool Exists(const String&) const;
  3646. bool Get(const String&, void*) const;
  3647. bool Get(const String&, double&) const;
  3648. bool Get(const String&, int64&) const;
  3649. void Set(const String&, const void*);
  3650. void Set(const String&, const double&);
  3651. void Set(const String&, const int64&);
  3652. // Properties:
  3653. /* readonly */
  3654. bool empty;
  3655. /* readonly */
  3656. Array<String> keys;
  3657. /* readonly */
  3658. uint length;
  3659. };
  3660. class DictionaryValue
  3661. {
  3662. };
  3663. class Drawable
  3664. {
  3665. // Methods:
  3666. void ApplyAttributes();
  3667. void DrawDebugGeometry(DebugRenderer, bool);
  3668. Variant GetAttribute(const String&) const;
  3669. ValueAnimation GetAttributeAnimation(const String&) const;
  3670. float GetAttributeAnimationSpeed(const String&) const;
  3671. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3672. Variant GetAttributeDefault(const String&) const;
  3673. bool GetInterceptNetworkUpdate(const String&) const;
  3674. bool IsInView(Camera) const;
  3675. bool Load(File, bool = false);
  3676. bool Load(VectorBuffer&, bool = false);
  3677. bool LoadXML(const XMLElement&, bool = false);
  3678. void MarkNetworkUpdate() const;
  3679. void Remove();
  3680. void RemoveInstanceDefault();
  3681. void ResetToDefault();
  3682. bool Save(File) const;
  3683. bool Save(VectorBuffer&) const;
  3684. bool SaveXML(XMLElement&) const;
  3685. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3686. bool SetAttribute(const String&, const Variant&);
  3687. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3688. void SetAttributeAnimationSpeed(const String&, float);
  3689. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3690. void SetInterceptNetworkUpdate(const String&, bool);
  3691. // Properties:
  3692. bool animationEnabled;
  3693. /* readonly */
  3694. Array<Variant> attributeDefaults;
  3695. /* readonly */
  3696. Array<AttributeInfo> attributeInfos;
  3697. Array<Variant> attributes;
  3698. /* readonly */
  3699. StringHash baseType;
  3700. /* readonly */
  3701. BoundingBox boundingBox;
  3702. bool castShadows;
  3703. /* readonly */
  3704. String category;
  3705. float drawDistance;
  3706. bool enabled;
  3707. /* readonly */
  3708. bool enabledEffective;
  3709. /* readonly */
  3710. uint id;
  3711. /* readonly */
  3712. bool inView;
  3713. uint lightMask;
  3714. float lodBias;
  3715. uint maxLights;
  3716. /* readonly */
  3717. Node node;
  3718. /* readonly */
  3719. uint numAttributes;
  3720. ObjectAnimation objectAnimation;
  3721. bool occludee;
  3722. bool occluder;
  3723. /* readonly */
  3724. int refs;
  3725. float shadowDistance;
  3726. uint shadowMask;
  3727. bool temporary;
  3728. /* readonly */
  3729. StringHash type;
  3730. /* readonly */
  3731. String typeName;
  3732. uint viewMask;
  3733. /* readonly */
  3734. int weakRefs;
  3735. /* readonly */
  3736. BoundingBox worldBoundingBox;
  3737. uint zoneMask;
  3738. };
  3739. class Drawable2D
  3740. {
  3741. // Methods:
  3742. void ApplyAttributes();
  3743. void DrawDebugGeometry(DebugRenderer, bool);
  3744. Variant GetAttribute(const String&) const;
  3745. ValueAnimation GetAttributeAnimation(const String&) const;
  3746. float GetAttributeAnimationSpeed(const String&) const;
  3747. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3748. Variant GetAttributeDefault(const String&) const;
  3749. bool GetInterceptNetworkUpdate(const String&) const;
  3750. bool IsInView(Camera) const;
  3751. bool Load(File, bool = false);
  3752. bool Load(VectorBuffer&, bool = false);
  3753. bool LoadXML(const XMLElement&, bool = false);
  3754. void MarkNetworkUpdate() const;
  3755. void Remove();
  3756. void RemoveInstanceDefault();
  3757. void ResetToDefault();
  3758. bool Save(File) const;
  3759. bool Save(VectorBuffer&) const;
  3760. bool SaveXML(XMLElement&) const;
  3761. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3762. bool SetAttribute(const String&, const Variant&);
  3763. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3764. void SetAttributeAnimationSpeed(const String&, float);
  3765. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3766. void SetInterceptNetworkUpdate(const String&, bool);
  3767. // Properties:
  3768. bool animationEnabled;
  3769. /* readonly */
  3770. Array<Variant> attributeDefaults;
  3771. /* readonly */
  3772. Array<AttributeInfo> attributeInfos;
  3773. Array<Variant> attributes;
  3774. /* readonly */
  3775. StringHash baseType;
  3776. /* readonly */
  3777. BoundingBox boundingBox;
  3778. bool castShadows;
  3779. /* readonly */
  3780. String category;
  3781. float drawDistance;
  3782. bool enabled;
  3783. /* readonly */
  3784. bool enabledEffective;
  3785. /* readonly */
  3786. uint id;
  3787. /* readonly */
  3788. bool inView;
  3789. int layer;
  3790. uint lightMask;
  3791. float lodBias;
  3792. uint maxLights;
  3793. /* readonly */
  3794. Node node;
  3795. /* readonly */
  3796. uint numAttributes;
  3797. ObjectAnimation objectAnimation;
  3798. bool occludee;
  3799. bool occluder;
  3800. int orderInLayer;
  3801. /* readonly */
  3802. int refs;
  3803. float shadowDistance;
  3804. uint shadowMask;
  3805. bool temporary;
  3806. /* readonly */
  3807. StringHash type;
  3808. /* readonly */
  3809. String typeName;
  3810. uint viewMask;
  3811. /* readonly */
  3812. int weakRefs;
  3813. /* readonly */
  3814. BoundingBox worldBoundingBox;
  3815. uint zoneMask;
  3816. };
  3817. class DropDownList
  3818. {
  3819. // Methods:
  3820. void AddChild(UIElement);
  3821. void AddItem(UIElement);
  3822. void ApplyAttributes();
  3823. void BringToFront();
  3824. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3825. void DisableLayoutUpdate();
  3826. IntVector2 ElementToScreen(const IntVector2&);
  3827. void EnableLayoutUpdate();
  3828. uint FindChild(UIElement) const;
  3829. Variant GetAttribute(const String&) const;
  3830. ValueAnimation GetAttributeAnimation(const String&) const;
  3831. float GetAttributeAnimationSpeed(const String&) const;
  3832. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3833. Variant GetAttributeDefault(const String&) const;
  3834. UIElement GetChild(const String&, bool = false) const;
  3835. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3836. Array<UIElement> GetChildren(bool = false) const;
  3837. UIElement GetElementEventSender() const;
  3838. bool GetInterceptNetworkUpdate(const String&) const;
  3839. Array<UIElement> GetItems() const;
  3840. uint GetNumChildren(bool) const;
  3841. void InsertChild(uint, UIElement);
  3842. void InsertItem(uint, UIElement);
  3843. bool IsInside(IntVector2, bool);
  3844. bool IsInsideCombined(IntVector2, bool);
  3845. bool Load(File, bool = false);
  3846. bool Load(VectorBuffer&, bool = false);
  3847. bool LoadChildXML(XMLFile, XMLFile = null);
  3848. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3849. bool LoadXML(File);
  3850. bool LoadXML(VectorBuffer&);
  3851. bool LoadXML(XMLFile, XMLFile);
  3852. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3853. bool LoadXML(const XMLElement&, bool = false);
  3854. void MarkNetworkUpdate() const;
  3855. void Remove();
  3856. void RemoveAllChildren();
  3857. void RemoveAllItems();
  3858. void RemoveChild(UIElement, uint = 0);
  3859. void RemoveChild(uint);
  3860. void RemoveInstanceDefault();
  3861. void RemoveItem(UIElement);
  3862. void RemoveItem(uint);
  3863. void ResetDeepEnabled();
  3864. void ResetToDefault();
  3865. bool Save(File) const;
  3866. bool Save(VectorBuffer&) const;
  3867. bool SaveXML(File, const String& = "\t");
  3868. bool SaveXML(VectorBuffer&, const String& = "\t");
  3869. bool SaveXML(XMLElement&) const;
  3870. IntVector2 ScreenToElement(const IntVector2&);
  3871. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3872. void SetAccelerator(int, int);
  3873. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3874. bool SetAttribute(const String&, const Variant&);
  3875. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3876. void SetAttributeAnimationSpeed(const String&, float);
  3877. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3878. void SetDeepEnabled(bool);
  3879. void SetEnabledRecursive(bool);
  3880. void SetFixedHeight(int);
  3881. void SetFixedSize(int, int);
  3882. void SetFixedWidth(int);
  3883. void SetFullImageRect();
  3884. void SetHoverOffset(int, int);
  3885. void SetInterceptNetworkUpdate(const String&, bool);
  3886. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3887. void SetMaxSize(int, int);
  3888. void SetMinSize(int, int);
  3889. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3890. void SetPosition(int, int);
  3891. void SetPressedChildOffset(int, int);
  3892. void SetPressedOffset(int, int);
  3893. void SetRepeat(float, float);
  3894. void SetSize(int, int);
  3895. bool SetStyle(const String&, XMLFile = null);
  3896. bool SetStyle(const XMLElement&);
  3897. bool SetStyleAuto(XMLFile = null);
  3898. void UpdateLayout();
  3899. const Variant& GetVar(const StringHash&);
  3900. UIElement getPopup() const;
  3901. // Properties:
  3902. /* readonly */
  3903. int acceleratorKey;
  3904. /* readonly */
  3905. int acceleratorQualifiers;
  3906. bool animationEnabled;
  3907. /* readonly */
  3908. Array<Variant> attributeDefaults;
  3909. /* readonly */
  3910. Array<AttributeInfo> attributeInfos;
  3911. Array<Variant> attributes;
  3912. /* readonly */
  3913. StringHash baseType;
  3914. BlendMode blendMode;
  3915. IntRect border;
  3916. bool bringToBack;
  3917. bool bringToFront;
  3918. /* readonly */
  3919. String category;
  3920. /* readonly */
  3921. IntVector2 childOffset;
  3922. /* readonly */
  3923. Array<UIElement> children;
  3924. IntRect clipBorder;
  3925. bool clipChildren;
  3926. /* writeonly */
  3927. Color color;
  3928. /* readonly */
  3929. bool colorGradient;
  3930. Array<Color> colors;
  3931. /* readonly */
  3932. IntRect combinedScreenRect;
  3933. XMLFile defaultStyle;
  3934. /* readonly */
  3935. float derivedOpacity;
  3936. /* readonly */
  3937. uint dragButtonCombo;
  3938. /* readonly */
  3939. int dragButtonCount;
  3940. uint dragDropMode;
  3941. bool editable;
  3942. bool elementEventSender;
  3943. bool enabled;
  3944. /* readonly */
  3945. bool enabledSelf;
  3946. /* readonly */
  3947. bool fixedHeight;
  3948. /* readonly */
  3949. bool fixedSize;
  3950. /* readonly */
  3951. bool fixedWidth;
  3952. bool focus;
  3953. FocusMode focusMode;
  3954. int height;
  3955. HorizontalAlignment horizontalAlignment;
  3956. IntVector2 hoverOffset;
  3957. /* readonly */
  3958. bool hovering;
  3959. IntRect imageBorder;
  3960. IntRect imageRect;
  3961. int indent;
  3962. int indentSpacing;
  3963. /* readonly */
  3964. int indentWidth;
  3965. bool internal;
  3966. /* readonly */
  3967. Array<UIElement> items;
  3968. IntRect layoutBorder;
  3969. Vector2 layoutFlexScale;
  3970. LayoutMode layoutMode;
  3971. int layoutSpacing;
  3972. /* readonly */
  3973. ListView listView;
  3974. int maxHeight;
  3975. IntVector2 maxSize;
  3976. int maxWidth;
  3977. int minHeight;
  3978. IntVector2 minSize;
  3979. int minWidth;
  3980. String name;
  3981. /* readonly */
  3982. uint numAllChildren;
  3983. /* readonly */
  3984. uint numAttributes;
  3985. /* readonly */
  3986. uint numChildren;
  3987. /* readonly */
  3988. uint numItems;
  3989. ObjectAnimation objectAnimation;
  3990. float opacity;
  3991. UIElement parent;
  3992. /* readonly */
  3993. UIElement placeholder;
  3994. String placeholderText;
  3995. IntVector2 position;
  3996. /* readonly */
  3997. bool pressed;
  3998. IntVector2 pressedChildOffset;
  3999. IntVector2 pressedOffset;
  4000. int priority;
  4001. /* readonly */
  4002. int refs;
  4003. float repeatDelay;
  4004. float repeatRate;
  4005. bool resizePopup;
  4006. /* readonly */
  4007. UIElement root;
  4008. /* readonly */
  4009. IntVector2 screenPosition;
  4010. bool selected;
  4011. /* readonly */
  4012. UIElement selectedItem;
  4013. uint selection;
  4014. bool showPopup;
  4015. IntVector2 size;
  4016. bool sortChildren;
  4017. String style;
  4018. bool temporary;
  4019. Texture texture;
  4020. bool tiled;
  4021. TraversalMode traversalMode;
  4022. /* readonly */
  4023. StringHash type;
  4024. /* readonly */
  4025. String typeName;
  4026. bool useDerivedOpacity;
  4027. /* readonly */
  4028. VariantMap vars;
  4029. VerticalAlignment verticalAlignment;
  4030. bool visible;
  4031. /* readonly */
  4032. int weakRefs;
  4033. int width;
  4034. };
  4035. class DynamicNavigationMesh
  4036. {
  4037. // Methods:
  4038. void ApplyAttributes();
  4039. bool Build();
  4040. bool Build(const BoundingBox&);
  4041. void DrawDebugGeometry(DebugRenderer, bool);
  4042. void DrawDebugGeometry(bool);
  4043. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4044. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4045. float GetAreaCost(uint) const;
  4046. Variant GetAttribute(const String&) const;
  4047. ValueAnimation GetAttributeAnimation(const String&) const;
  4048. float GetAttributeAnimationSpeed(const String&) const;
  4049. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4050. Variant GetAttributeDefault(const String&) const;
  4051. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4052. bool GetInterceptNetworkUpdate(const String&) const;
  4053. Vector3 GetRandomPoint();
  4054. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4055. bool Load(File, bool = false);
  4056. bool Load(VectorBuffer&, bool = false);
  4057. bool LoadXML(const XMLElement&, bool = false);
  4058. void MarkNetworkUpdate() const;
  4059. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), uint = 3);
  4060. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4061. void Remove();
  4062. void RemoveInstanceDefault();
  4063. void ResetToDefault();
  4064. bool Save(File) const;
  4065. bool Save(VectorBuffer&) const;
  4066. bool SaveXML(XMLElement&) const;
  4067. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4068. void SetAreaCost(uint, float);
  4069. bool SetAttribute(const String&, const Variant&);
  4070. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4071. void SetAttributeAnimationSpeed(const String&, float);
  4072. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4073. void SetInterceptNetworkUpdate(const String&, bool);
  4074. // Properties:
  4075. float agentHeight;
  4076. float agentMaxClimb;
  4077. float agentMaxSlope;
  4078. float agentRadius;
  4079. bool animationEnabled;
  4080. /* readonly */
  4081. Array<Variant> attributeDefaults;
  4082. /* readonly */
  4083. Array<AttributeInfo> attributeInfos;
  4084. Array<Variant> attributes;
  4085. /* readonly */
  4086. StringHash baseType;
  4087. /* readonly */
  4088. BoundingBox boundingBox;
  4089. /* readonly */
  4090. String category;
  4091. float cellHeight;
  4092. float cellSize;
  4093. float detailSampleDistance;
  4094. float detailSampleMaxError;
  4095. float edgeMaxError;
  4096. float edgeMaxLength;
  4097. bool enabled;
  4098. /* readonly */
  4099. bool enabledEffective;
  4100. /* readonly */
  4101. uint id;
  4102. /* readonly */
  4103. bool initialized;
  4104. /* readonly */
  4105. Node node;
  4106. /* readonly */
  4107. uint numAttributes;
  4108. /* readonly */
  4109. IntVector2 numTiles;
  4110. ObjectAnimation objectAnimation;
  4111. Vector3 padding;
  4112. /* readonly */
  4113. int refs;
  4114. float regionMergeSize;
  4115. float regionMinSize;
  4116. bool temporary;
  4117. int tileSize;
  4118. /* readonly */
  4119. StringHash type;
  4120. /* readonly */
  4121. String typeName;
  4122. /* readonly */
  4123. int weakRefs;
  4124. /* readonly */
  4125. BoundingBox worldBoundingBox;
  4126. };
  4127. class Engine
  4128. {
  4129. // Methods:
  4130. Console CreateConsole();
  4131. DebugHud CreateDebugHud();
  4132. void DumpMemory();
  4133. void DumpProfiler();
  4134. void DumpResources(bool = false);
  4135. void Exit();
  4136. void RunFrame();
  4137. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4138. // Properties:
  4139. bool autoExit;
  4140. /* readonly */
  4141. StringHash baseType;
  4142. /* readonly */
  4143. String category;
  4144. /* readonly */
  4145. bool exiting;
  4146. /* readonly */
  4147. bool headless;
  4148. /* readonly */
  4149. bool initialized;
  4150. int maxFps;
  4151. int maxInactiveFps;
  4152. int minFps;
  4153. bool pauseMinimized;
  4154. /* readonly */
  4155. int refs;
  4156. int timeStepSmoothing;
  4157. /* readonly */
  4158. StringHash type;
  4159. /* readonly */
  4160. String typeName;
  4161. /* readonly */
  4162. int weakRefs;
  4163. };
  4164. class File
  4165. {
  4166. // Methods:
  4167. void Close();
  4168. bool Open(const String&, FileMode = FILE_READ);
  4169. Array<uint8> Read(uint);
  4170. bool ReadBool();
  4171. BoundingBox ReadBoundingBox();
  4172. int8 ReadByte();
  4173. Color ReadColor();
  4174. String ReadFileID();
  4175. float ReadFloat();
  4176. int ReadInt();
  4177. IntRect ReadIntRect();
  4178. IntVector2 ReadIntVector2();
  4179. String ReadLine();
  4180. Matrix3 ReadMatrix3();
  4181. Matrix3x4 ReadMatrix3x4();
  4182. Matrix4 ReadMatrix4();
  4183. uint ReadNetID();
  4184. Quaternion ReadPackedQuaternion();
  4185. Vector3 ReadPackedVector3(float);
  4186. Quaternion ReadQuaternion();
  4187. int16 ReadShort();
  4188. String ReadString();
  4189. StringHash ReadStringHash();
  4190. uint8 ReadUByte();
  4191. uint ReadUInt();
  4192. uint16 ReadUShort();
  4193. uint ReadVLE();
  4194. Variant ReadVariant();
  4195. VariantMap ReadVariantMap();
  4196. Vector2 ReadVector2();
  4197. Vector3 ReadVector3();
  4198. Vector4 ReadVector4();
  4199. VectorBuffer ReadVectorBuffer(uint);
  4200. uint Seek(uint);
  4201. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4202. uint Write(Array<uint8>);
  4203. bool WriteBool(bool);
  4204. bool WriteBoundingBox(const BoundingBox&);
  4205. bool WriteByte(int8);
  4206. bool WriteColor(const Color&);
  4207. bool WriteFileID(const String&);
  4208. bool WriteFloat(float);
  4209. bool WriteInt(int);
  4210. bool WriteIntRect(const IntRect&);
  4211. bool WriteIntVector2(const IntVector2&);
  4212. bool WriteLine(const String&);
  4213. bool WriteMatrix3(const Matrix3&);
  4214. bool WriteMatrix3x4(const Matrix3x4&);
  4215. bool WriteMatrix4(const Matrix4&);
  4216. bool WriteNetID(uint);
  4217. bool WritePackedQuaternion(const Quaternion&);
  4218. bool WritePackedVector3(const Vector3&, float);
  4219. bool WriteQuaternion(const Quaternion&);
  4220. bool WriteShort(int16);
  4221. bool WriteString(const String&);
  4222. bool WriteStringHash(const StringHash&);
  4223. bool WriteUByte(uint8);
  4224. bool WriteUInt(uint);
  4225. bool WriteUShort(uint16);
  4226. bool WriteVLE(uint);
  4227. bool WriteVariant(const Variant&);
  4228. bool WriteVariantMap(const VariantMap&);
  4229. bool WriteVector2(const Vector2&);
  4230. bool WriteVector3(const Vector3&);
  4231. bool WriteVector4(const Vector4&);
  4232. bool WriteVectorBuffer(const VectorBuffer&);
  4233. // Properties:
  4234. /* readonly */
  4235. StringHash baseType;
  4236. /* readonly */
  4237. String category;
  4238. /* readonly */
  4239. uint checksum;
  4240. /* readonly */
  4241. bool eof;
  4242. /* readonly */
  4243. FileMode mode;
  4244. /* readonly */
  4245. String name;
  4246. /* readonly */
  4247. bool open;
  4248. /* readonly */
  4249. bool packaged;
  4250. /* readonly */
  4251. uint position;
  4252. /* readonly */
  4253. int refs;
  4254. /* readonly */
  4255. uint size;
  4256. /* readonly */
  4257. StringHash type;
  4258. /* readonly */
  4259. String typeName;
  4260. /* readonly */
  4261. int weakRefs;
  4262. };
  4263. class FileSelector
  4264. {
  4265. // Methods:
  4266. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4267. void SetButtonTexts(const String&, const String&);
  4268. void SetFilters(Array<String>, uint);
  4269. void UpdateElements();
  4270. // Properties:
  4271. /* readonly */
  4272. StringHash baseType;
  4273. /* readonly */
  4274. Button cancelButton;
  4275. /* readonly */
  4276. String category;
  4277. XMLFile defaultStyle;
  4278. bool directoryMode;
  4279. /* readonly */
  4280. ListView fileList;
  4281. String fileName;
  4282. /* readonly */
  4283. LineEdit fileNameEdit;
  4284. /* readonly */
  4285. String filter;
  4286. /* readonly */
  4287. uint filterIndex;
  4288. /* readonly */
  4289. DropDownList filterList;
  4290. /* readonly */
  4291. Button okButton;
  4292. String path;
  4293. /* readonly */
  4294. LineEdit pathEdit;
  4295. /* readonly */
  4296. int refs;
  4297. String title;
  4298. /* readonly */
  4299. Text titleText;
  4300. /* readonly */
  4301. StringHash type;
  4302. /* readonly */
  4303. String typeName;
  4304. /* readonly */
  4305. int weakRefs;
  4306. /* readonly */
  4307. Window window;
  4308. };
  4309. class FileSystem
  4310. {
  4311. // Methods:
  4312. bool Copy(const String&, const String&);
  4313. bool CreateDir(const String&);
  4314. bool Delete(const String&);
  4315. bool DirExists(const String&) const;
  4316. bool FileExists(const String&) const;
  4317. String GetAppPreferencesDir(const String&, const String&) const;
  4318. uint GetLastModifiedTime(const String&) const;
  4319. bool Rename(const String&, const String&);
  4320. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4321. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4322. bool SetLastModifiedTime(const String&, uint);
  4323. int SystemCommand(const String&, bool = false);
  4324. uint SystemCommandAsync(const String&);
  4325. bool SystemOpen(const String&, const String&);
  4326. int SystemRun(const String&, Array<String>);
  4327. uint SystemRunAsync(const String&, Array<String>);
  4328. // Properties:
  4329. /* readonly */
  4330. StringHash baseType;
  4331. /* readonly */
  4332. String category;
  4333. String currentDir;
  4334. bool executeConsoleCommands;
  4335. /* readonly */
  4336. String programDir;
  4337. /* readonly */
  4338. int refs;
  4339. /* readonly */
  4340. StringHash type;
  4341. /* readonly */
  4342. String typeName;
  4343. /* readonly */
  4344. String userDocumentsDir;
  4345. /* readonly */
  4346. int weakRefs;
  4347. };
  4348. class FocusParameters
  4349. {
  4350. // Properties:
  4351. bool autoSize;
  4352. bool focus;
  4353. float minView;
  4354. bool nonUniform;
  4355. float quantize;
  4356. };
  4357. class Font
  4358. {
  4359. // Methods:
  4360. IntVector2 GetTotalGlyphOffset(int) const;
  4361. bool Load(File);
  4362. bool Load(VectorBuffer&);
  4363. bool Save(File) const;
  4364. bool Save(VectorBuffer&) const;
  4365. bool SaveXML(File, int, bool = false, const String& = "\t");
  4366. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4367. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4368. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4369. // Properties:
  4370. IntVector2 absoluteGlyphOffset;
  4371. /* readonly */
  4372. StringHash baseType;
  4373. /* readonly */
  4374. String category;
  4375. /* readonly */
  4376. uint memoryUse;
  4377. String name;
  4378. /* readonly */
  4379. int refs;
  4380. Vector2 scaledGlyphOffset;
  4381. /* readonly */
  4382. StringHash type;
  4383. /* readonly */
  4384. String typeName;
  4385. /* readonly */
  4386. uint useTimer;
  4387. /* readonly */
  4388. int weakRefs;
  4389. };
  4390. class Frustum
  4391. {
  4392. // Methods:
  4393. void Define(const BoundingBox&, const Matrix3x4&);
  4394. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4395. void Define(float, float, float, float, float, const Matrix3x4&);
  4396. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4397. float Distance(const Vector3&) const;
  4398. Intersection IsInside(const BoundingBox&);
  4399. Intersection IsInside(const Sphere&);
  4400. Intersection IsInside(const Vector3&);
  4401. void Transform(const Matrix3&);
  4402. void Transform(const Matrix3x4&);
  4403. Frustum Transformed(const Matrix3&) const;
  4404. Frustum Transformed(const Matrix3x4&) const;
  4405. // Properties:
  4406. /* readonly */
  4407. Array<Vector3> vertices;
  4408. };
  4409. class Geometry
  4410. {
  4411. // Methods:
  4412. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4413. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4414. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4415. void SetIndexBuffer(IndexBuffer);
  4416. bool SetVertexBuffer(uint, VertexBuffer, uint = MASK_DEFAULT);
  4417. // Properties:
  4418. /* readonly */
  4419. StringHash baseType;
  4420. /* readonly */
  4421. String category;
  4422. /* readonly */
  4423. bool empty;
  4424. IndexBuffer indexBuffer;
  4425. /* readonly */
  4426. uint indexCount;
  4427. /* readonly */
  4428. uint indexStart;
  4429. float lodDistance;
  4430. uint numVertexBuffers;
  4431. /* readonly */
  4432. PrimitiveType primitiveType;
  4433. /* readonly */
  4434. int refs;
  4435. /* readonly */
  4436. StringHash type;
  4437. /* readonly */
  4438. String typeName;
  4439. /* readonly */
  4440. Array<VertexBuffer> vertexBuffers;
  4441. /* readonly */
  4442. uint vertexCount;
  4443. /* readonly */
  4444. Array<uint> vertexElementMasks;
  4445. /* readonly */
  4446. uint vertexStart;
  4447. /* readonly */
  4448. int weakRefs;
  4449. };
  4450. class Graphics
  4451. {
  4452. // Methods:
  4453. void BeginDumpShaders(const String&);
  4454. void Close();
  4455. void EndDumpShaders();
  4456. void Maximize();
  4457. void Minimize();
  4458. void PrecacheShaders(File);
  4459. void PrecacheShaders(VectorBuffer&);
  4460. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4461. bool SetMode(int, int);
  4462. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4463. void SetWindowPosition(int, int);
  4464. bool TakeScreenShot(Image);
  4465. bool ToggleFullscreen();
  4466. // Properties:
  4467. /* readonly */
  4468. String apiName;
  4469. /* readonly */
  4470. StringHash baseType;
  4471. /* readonly */
  4472. bool borderless;
  4473. /* readonly */
  4474. String category;
  4475. /* readonly */
  4476. bool deferredSupport;
  4477. /* readonly */
  4478. IntVector2 desktopResolution;
  4479. /* readonly */
  4480. bool deviceLost;
  4481. bool flushGPU;
  4482. /* readonly */
  4483. bool fullscreen;
  4484. /* readonly */
  4485. bool hardwareShadowSupport;
  4486. /* readonly */
  4487. int height;
  4488. /* readonly */
  4489. bool initialized;
  4490. /* readonly */
  4491. bool instancingSupport;
  4492. /* readonly */
  4493. bool lightPrepassSupport;
  4494. /* readonly */
  4495. int multiSample;
  4496. /* readonly */
  4497. Array<int> multiSampleLevels;
  4498. /* readonly */
  4499. uint numBatches;
  4500. /* readonly */
  4501. uint numPrimitives;
  4502. String orientations;
  4503. /* readonly */
  4504. bool readableDepthSupport;
  4505. /* readonly */
  4506. int refs;
  4507. /* readonly */
  4508. bool resizable;
  4509. /* readonly */
  4510. Array<IntVector2> resolutions;
  4511. bool sRGB;
  4512. /* readonly */
  4513. bool sRGBSupport;
  4514. /* readonly */
  4515. bool sRGBWriteSupport;
  4516. /* readonly */
  4517. bool tripleBuffer;
  4518. /* readonly */
  4519. StringHash type;
  4520. /* readonly */
  4521. String typeName;
  4522. /* readonly */
  4523. bool vsync;
  4524. /* readonly */
  4525. int weakRefs;
  4526. /* readonly */
  4527. int width;
  4528. /* writeonly */
  4529. Image windowIcon;
  4530. IntVector2 windowPosition;
  4531. String windowTitle;
  4532. };
  4533. class HttpRequest
  4534. {
  4535. // Methods:
  4536. Array<uint8> Read(uint);
  4537. bool ReadBool();
  4538. BoundingBox ReadBoundingBox();
  4539. int8 ReadByte();
  4540. Color ReadColor();
  4541. String ReadFileID();
  4542. float ReadFloat();
  4543. int ReadInt();
  4544. IntRect ReadIntRect();
  4545. IntVector2 ReadIntVector2();
  4546. String ReadLine();
  4547. Matrix3 ReadMatrix3();
  4548. Matrix3x4 ReadMatrix3x4();
  4549. Matrix4 ReadMatrix4();
  4550. uint ReadNetID();
  4551. Quaternion ReadPackedQuaternion();
  4552. Vector3 ReadPackedVector3(float);
  4553. Quaternion ReadQuaternion();
  4554. int16 ReadShort();
  4555. String ReadString();
  4556. StringHash ReadStringHash();
  4557. uint8 ReadUByte();
  4558. uint ReadUInt();
  4559. uint16 ReadUShort();
  4560. uint ReadVLE();
  4561. Variant ReadVariant();
  4562. VariantMap ReadVariantMap();
  4563. Vector2 ReadVector2();
  4564. Vector3 ReadVector3();
  4565. Vector4 ReadVector4();
  4566. VectorBuffer ReadVectorBuffer(uint);
  4567. uint Seek(uint);
  4568. // Properties:
  4569. /* readonly */
  4570. uint availableSize;
  4571. /* readonly */
  4572. uint checksum;
  4573. /* readonly */
  4574. bool eof;
  4575. /* readonly */
  4576. String error;
  4577. /* readonly */
  4578. String name;
  4579. /* readonly */
  4580. bool open;
  4581. /* readonly */
  4582. uint position;
  4583. /* readonly */
  4584. int refs;
  4585. /* readonly */
  4586. uint size;
  4587. /* readonly */
  4588. HttpRequestState state;
  4589. /* readonly */
  4590. String url;
  4591. /* readonly */
  4592. String verb;
  4593. /* readonly */
  4594. int weakRefs;
  4595. };
  4596. class Image
  4597. {
  4598. // Methods:
  4599. void Clear(const Color&);
  4600. void ClearInt(uint);
  4601. bool FlipHorizontal();
  4602. bool FlipVertical();
  4603. Color GetPixel(int, int) const;
  4604. Color GetPixel(int, int, int) const;
  4605. Color GetPixelBilinear(float, float) const;
  4606. uint GetPixelInt(int, int) const;
  4607. uint GetPixelInt(int, int, int) const;
  4608. Color GetPixelTrilinear(float, float, float) const;
  4609. Image GetSubimage(const IntRect&) const;
  4610. bool Load(File);
  4611. bool Load(VectorBuffer&);
  4612. bool LoadColorLUT(File);
  4613. bool LoadColorLUT(VectorBuffer&);
  4614. bool Resize(int, int);
  4615. bool Save(File) const;
  4616. bool Save(VectorBuffer&) const;
  4617. void SaveBMP(const String&) const;
  4618. void SaveJPG(const String&, int) const;
  4619. void SavePNG(const String&) const;
  4620. void SaveTGA(const String&) const;
  4621. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4622. void SetPixel(int, int, const Color&);
  4623. void SetPixel(int, int, int, const Color&);
  4624. void SetPixelInt(int, int, int, uint);
  4625. void SetPixelInt(int, int, uint);
  4626. bool SetSize(int, int, int, uint);
  4627. bool SetSize(int, int, uint);
  4628. // Properties:
  4629. /* readonly */
  4630. StringHash baseType;
  4631. /* readonly */
  4632. String category;
  4633. /* readonly */
  4634. uint components;
  4635. /* readonly */
  4636. bool compressed;
  4637. /* readonly */
  4638. CompressedFormat compressedFormat;
  4639. /* readonly */
  4640. int depth;
  4641. /* readonly */
  4642. int height;
  4643. /* readonly */
  4644. uint memoryUse;
  4645. String name;
  4646. /* readonly */
  4647. uint numCompressedLevels;
  4648. /* readonly */
  4649. int refs;
  4650. /* readonly */
  4651. StringHash type;
  4652. /* readonly */
  4653. String typeName;
  4654. /* readonly */
  4655. uint useTimer;
  4656. /* readonly */
  4657. int weakRefs;
  4658. /* readonly */
  4659. int width;
  4660. };
  4661. class IndexBuffer
  4662. {
  4663. // Methods:
  4664. VectorBuffer GetData();
  4665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4666. bool SetData(VectorBuffer&);
  4667. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  4668. void SetSize(uint, bool, bool = false);
  4669. // Properties:
  4670. /* readonly */
  4671. StringHash baseType;
  4672. /* readonly */
  4673. String category;
  4674. /* readonly */
  4675. bool dynamic;
  4676. /* readonly */
  4677. uint indexCount;
  4678. /* readonly */
  4679. uint indexSize;
  4680. /* readonly */
  4681. int refs;
  4682. bool shadowed;
  4683. /* readonly */
  4684. StringHash type;
  4685. /* readonly */
  4686. String typeName;
  4687. /* readonly */
  4688. int weakRefs;
  4689. };
  4690. class Input
  4691. {
  4692. // Methods:
  4693. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  4694. int GetKeyFromName(const String&) const;
  4695. int GetKeyFromScancode(int) const;
  4696. String GetKeyName(int) const;
  4697. int GetScancodeFromKey(int) const;
  4698. int GetScancodeFromName(const String&) const;
  4699. String GetScancodeName(int) const;
  4700. uint LoadGestures(File);
  4701. uint LoadGestures(VectorBuffer&);
  4702. bool RecordGesture();
  4703. void RemoveAllGestures();
  4704. bool RemoveGesture(uint);
  4705. bool RemoveScreenJoystick(int);
  4706. void ResetMouseVisible();
  4707. bool SaveGesture(File, uint);
  4708. bool SaveGesture(VectorBuffer&, uint);
  4709. bool SaveGestures(File);
  4710. bool SaveGestures(VectorBuffer&);
  4711. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4712. void SetMouseVisible(bool, bool = false);
  4713. // Properties:
  4714. /* readonly */
  4715. StringHash baseType;
  4716. /* readonly */
  4717. String category;
  4718. /* readonly */
  4719. bool focus;
  4720. /* readonly */
  4721. Array<JoystickState> joysticks;
  4722. /* readonly */
  4723. Array<JoystickState> joysticksByIndex;
  4724. /* readonly */
  4725. Array<bool> keyDown;
  4726. /* readonly */
  4727. Array<bool> keyPress;
  4728. /* readonly */
  4729. bool minimized;
  4730. /* readonly */
  4731. Array<bool> mouseButtonDown;
  4732. /* readonly */
  4733. Array<bool> mouseButtonPress;
  4734. bool mouseGrabbed;
  4735. MouseMode mouseMode;
  4736. /* readonly */
  4737. IntVector2 mouseMove;
  4738. /* readonly */
  4739. int mouseMoveWheel;
  4740. /* readonly */
  4741. int mouseMoveX;
  4742. /* readonly */
  4743. int mouseMoveY;
  4744. /* readonly */
  4745. IntVector2 mousePosition;
  4746. bool mouseVisible;
  4747. /* readonly */
  4748. uint numJoysticks;
  4749. /* readonly */
  4750. uint numTouches;
  4751. /* readonly */
  4752. Array<bool> qualifierDown;
  4753. /* readonly */
  4754. Array<bool> qualifierPress;
  4755. /* readonly */
  4756. int qualifiers;
  4757. /* readonly */
  4758. int refs;
  4759. /* readonly */
  4760. Array<bool> scancodeDown;
  4761. /* readonly */
  4762. Array<bool> scancodePress;
  4763. Array<bool> screenJoystickVisible;
  4764. /* readonly */
  4765. bool screenKeyboardSupport;
  4766. bool screenKeyboardVisible;
  4767. bool toggleFullscreen;
  4768. bool touchEmulation;
  4769. /* readonly */
  4770. Array<TouchState> touches;
  4771. /* readonly */
  4772. StringHash type;
  4773. /* readonly */
  4774. String typeName;
  4775. /* readonly */
  4776. int weakRefs;
  4777. };
  4778. class IntRect
  4779. {
  4780. // Methods:
  4781. Intersection IsInside(const IntVector2&) const;
  4782. // Properties:
  4783. int bottom;
  4784. /* readonly */
  4785. Array<int> data;
  4786. /* readonly */
  4787. int height;
  4788. int left;
  4789. int right;
  4790. /* readonly */
  4791. IntVector2 size;
  4792. int top;
  4793. /* readonly */
  4794. int width;
  4795. };
  4796. class IntVector2
  4797. {
  4798. // Methods:
  4799. String ToString() const;
  4800. // Properties:
  4801. /* readonly */
  4802. Array<int> data;
  4803. int x;
  4804. int y;
  4805. };
  4806. class JSONFile
  4807. {
  4808. // Methods:
  4809. JSONValue CreateRoot(JSONValueType = JSON_ANY);
  4810. JSONValue GetRoot(JSONValueType = JSON_ANY);
  4811. bool Load(File);
  4812. bool Load(VectorBuffer&);
  4813. bool Save(File) const;
  4814. bool Save(File, const String&) const;
  4815. bool Save(VectorBuffer&) const;
  4816. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4817. // Properties:
  4818. /* readonly */
  4819. StringHash baseType;
  4820. /* readonly */
  4821. String category;
  4822. /* readonly */
  4823. uint memoryUse;
  4824. String name;
  4825. /* readonly */
  4826. int refs;
  4827. /* readonly */
  4828. StringHash type;
  4829. /* readonly */
  4830. String typeName;
  4831. /* readonly */
  4832. uint useTimer;
  4833. /* readonly */
  4834. int weakRefs;
  4835. };
  4836. class JSONValue
  4837. {
  4838. // Methods:
  4839. void AddBool(bool);
  4840. void AddColor(const Color&);
  4841. void AddFloat(float);
  4842. void AddInt(int);
  4843. void AddIntRect(const IntRect&);
  4844. void AddIntVector2(const IntVector2&);
  4845. void AddMatrix3(const Matrix3&);
  4846. void AddMatrix3x4(const Matrix3x4&);
  4847. void AddMatrix4(const Matrix4&);
  4848. void AddQuaternion(const Quaternion&);
  4849. void AddResourceRef(const ResourceRef&);
  4850. void AddResourceRefList(const ResourceRefList&);
  4851. void AddString(const String);
  4852. void AddVariant(const Variant&);
  4853. void AddVariantValue(const Variant&);
  4854. void AddVector2(const Vector2&);
  4855. void AddVector3(const Vector3&);
  4856. void AddVector4(const Vector4&);
  4857. void AddVectorVariant(const Variant&);
  4858. JSONValue CreateChild(JSONValueType = JSON_OBJECT);
  4859. JSONValue CreateChild(const String&, JSONValueType = JSON_OBJECT);
  4860. bool GetBool(const String&) const;
  4861. bool GetBool(uint) const;
  4862. JSONValue GetChild(const String&, JSONValueType = JSON_ANY) const;
  4863. JSONValue GetChild(uint, JSONValueType = JSON_ANY) const;
  4864. Array<String> GetChildNames() const;
  4865. Color GetColor(const String&) const;
  4866. Color GetColor(uint) const;
  4867. float GetFloat(const String&) const;
  4868. float GetFloat(uint) const;
  4869. int GetInt(const String&) const;
  4870. int GetInt(uint) const;
  4871. IntRect GetIntRect(const String&) const;
  4872. IntRect GetIntRect(uint) const;
  4873. IntVector2 GetIntVector2(const String&) const;
  4874. IntVector2 GetIntVector2(uint) const;
  4875. Matrix3 GetMatrix3(const String&) const;
  4876. Matrix3 GetMatrix3(uint) const;
  4877. Matrix3x4 GetMatrix3x4(const String&) const;
  4878. Matrix3x4 GetMatrix3x4(uint) const;
  4879. Matrix4 GetMatrix4(const String&) const;
  4880. Matrix4 GetMatrix4(uint) const;
  4881. Quaternion GetQuaternion(const String&) const;
  4882. Quaternion GetQuaternion(uint) const;
  4883. ResourceRef GetResourceRef(const String&) const;
  4884. ResourceRef GetResourceRef(uint) const;
  4885. ResourceRefList GetResourceRefList(const String&) const;
  4886. ResourceRefList GetResourceRefList(uint) const;
  4887. String GetString(const String&) const;
  4888. String GetString(uint) const;
  4889. Array<String> GetValueNames() const;
  4890. Variant GetVariant(const String&) const;
  4891. Variant GetVariant(uint) const;
  4892. Variant GetVariantValue(const String&, VariantType) const;
  4893. Variant GetVariantValue(uint, VariantType) const;
  4894. Vector2 GetVector2(const String&) const;
  4895. Vector2 GetVector2(uint) const;
  4896. Vector3 GetVector3(const String&) const;
  4897. Vector3 GetVector3(uint) const;
  4898. Vector4 GetVector4(const String&) const;
  4899. Vector4 GetVector4(uint) const;
  4900. Variant GetVectorVariant(const String&) const;
  4901. Variant GetVectorVariant(uint) const;
  4902. void SetBool(const String&, bool);
  4903. void SetColor(const String&, const Color&);
  4904. void SetFloat(const String&, float);
  4905. void SetInt(const String&, int);
  4906. void SetIntRect(const String&, const IntRect&);
  4907. void SetIntVector2(const String&, const IntVector2&);
  4908. void SetMatrix3(const String&, const Matrix3&);
  4909. void SetMatrix3x4(const String&, const Matrix3x4&);
  4910. void SetMatrix4(const String&, const Matrix4&);
  4911. void SetQuaternion(const String&, const Quaternion&);
  4912. void SetResourceRef(const String&, const ResourceRef&);
  4913. void SetResourceRefList(const String&, const ResourceRefList&);
  4914. void SetString(const String&, const String);
  4915. void SetVariant(const String&, const Variant&);
  4916. void SetVariantValue(const String&, const Variant&);
  4917. void SetVector2(const String&, const Vector2&);
  4918. void SetVector3(const String&, const Vector3&);
  4919. void SetVector4(const String&, const Vector4&);
  4920. void SetVectorVariant(const String&, const Variant&);
  4921. // Properties:
  4922. /* readonly */
  4923. bool isArray;
  4924. /* readonly */
  4925. bool isNull;
  4926. /* readonly */
  4927. bool isObject;
  4928. /* readonly */
  4929. bool notNull;
  4930. /* readonly */
  4931. uint size;
  4932. };
  4933. class JoystickState
  4934. {
  4935. // Properties:
  4936. /* readonly */
  4937. Array<float> axisPosition;
  4938. /* readonly */
  4939. Array<bool> buttonDown;
  4940. /* readonly */
  4941. Array<bool> buttonPress;
  4942. /* readonly */
  4943. bool controller;
  4944. /* readonly */
  4945. Array<int> hatPosition;
  4946. int joystickID;
  4947. String name;
  4948. /* readonly */
  4949. uint numAxes;
  4950. /* readonly */
  4951. uint numButtons;
  4952. /* readonly */
  4953. uint numHats;
  4954. };
  4955. class Light
  4956. {
  4957. // Methods:
  4958. void ApplyAttributes();
  4959. void DrawDebugGeometry(DebugRenderer, bool);
  4960. Variant GetAttribute(const String&) const;
  4961. ValueAnimation GetAttributeAnimation(const String&) const;
  4962. float GetAttributeAnimationSpeed(const String&) const;
  4963. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4964. Variant GetAttributeDefault(const String&) const;
  4965. bool GetInterceptNetworkUpdate(const String&) const;
  4966. bool IsInView(Camera) const;
  4967. bool Load(File, bool = false);
  4968. bool Load(VectorBuffer&, bool = false);
  4969. bool LoadXML(const XMLElement&, bool = false);
  4970. void MarkNetworkUpdate() const;
  4971. void Remove();
  4972. void RemoveInstanceDefault();
  4973. void ResetToDefault();
  4974. bool Save(File) const;
  4975. bool Save(VectorBuffer&) const;
  4976. bool SaveXML(XMLElement&) const;
  4977. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4978. bool SetAttribute(const String&, const Variant&);
  4979. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4980. void SetAttributeAnimationSpeed(const String&, float);
  4981. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4982. void SetInterceptNetworkUpdate(const String&, bool);
  4983. // Properties:
  4984. bool animationEnabled;
  4985. float aspectRatio;
  4986. /* readonly */
  4987. Array<Variant> attributeDefaults;
  4988. /* readonly */
  4989. Array<AttributeInfo> attributeInfos;
  4990. Array<Variant> attributes;
  4991. /* readonly */
  4992. StringHash baseType;
  4993. /* readonly */
  4994. BoundingBox boundingBox;
  4995. float brightness;
  4996. bool castShadows;
  4997. /* readonly */
  4998. String category;
  4999. Color color;
  5000. float drawDistance;
  5001. /* readonly */
  5002. Color effectiveColor;
  5003. /* readonly */
  5004. float effectiveSpecularIntensity;
  5005. bool enabled;
  5006. /* readonly */
  5007. bool enabledEffective;
  5008. float fadeDistance;
  5009. float fov;
  5010. /* readonly */
  5011. Frustum frustum;
  5012. /* readonly */
  5013. uint id;
  5014. /* readonly */
  5015. bool inView;
  5016. uint lightMask;
  5017. LightType lightType;
  5018. float lodBias;
  5019. uint maxLights;
  5020. /* readonly */
  5021. bool negative;
  5022. /* readonly */
  5023. Node node;
  5024. /* readonly */
  5025. uint numAttributes;
  5026. /* readonly */
  5027. int numShadowSplits;
  5028. ObjectAnimation objectAnimation;
  5029. bool occludee;
  5030. bool occluder;
  5031. bool perVertex;
  5032. Texture rampTexture;
  5033. float range;
  5034. /* readonly */
  5035. int refs;
  5036. BiasParameters shadowBias;
  5037. CascadeParameters shadowCascade;
  5038. float shadowDistance;
  5039. float shadowFadeDistance;
  5040. FocusParameters shadowFocus;
  5041. float shadowIntensity;
  5042. uint shadowMask;
  5043. float shadowNearFarRatio;
  5044. float shadowResolution;
  5045. Texture shapeTexture;
  5046. float specularIntensity;
  5047. bool temporary;
  5048. /* readonly */
  5049. StringHash type;
  5050. /* readonly */
  5051. String typeName;
  5052. uint viewMask;
  5053. /* readonly */
  5054. int weakRefs;
  5055. /* readonly */
  5056. BoundingBox worldBoundingBox;
  5057. uint zoneMask;
  5058. };
  5059. class LineEdit
  5060. {
  5061. // Methods:
  5062. void AddChild(UIElement);
  5063. void ApplyAttributes();
  5064. void BringToFront();
  5065. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5066. void DisableLayoutUpdate();
  5067. IntVector2 ElementToScreen(const IntVector2&);
  5068. void EnableLayoutUpdate();
  5069. uint FindChild(UIElement) const;
  5070. Variant GetAttribute(const String&) const;
  5071. ValueAnimation GetAttributeAnimation(const String&) const;
  5072. float GetAttributeAnimationSpeed(const String&) const;
  5073. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5074. Variant GetAttributeDefault(const String&) const;
  5075. UIElement GetChild(const String&, bool = false) const;
  5076. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5077. Array<UIElement> GetChildren(bool = false) const;
  5078. UIElement GetElementEventSender() const;
  5079. bool GetInterceptNetworkUpdate(const String&) const;
  5080. uint GetNumChildren(bool) const;
  5081. void InsertChild(uint, UIElement);
  5082. bool IsInside(IntVector2, bool);
  5083. bool IsInsideCombined(IntVector2, bool);
  5084. bool Load(File, bool = false);
  5085. bool Load(VectorBuffer&, bool = false);
  5086. bool LoadChildXML(XMLFile, XMLFile = null);
  5087. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5088. bool LoadXML(File);
  5089. bool LoadXML(VectorBuffer&);
  5090. bool LoadXML(XMLFile, XMLFile);
  5091. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5092. bool LoadXML(const XMLElement&, bool = false);
  5093. void MarkNetworkUpdate() const;
  5094. void Remove();
  5095. void RemoveAllChildren();
  5096. void RemoveChild(UIElement, uint = 0);
  5097. void RemoveChild(uint);
  5098. void RemoveInstanceDefault();
  5099. void ResetDeepEnabled();
  5100. void ResetToDefault();
  5101. bool Save(File) const;
  5102. bool Save(VectorBuffer&) const;
  5103. bool SaveXML(File, const String& = "\t");
  5104. bool SaveXML(VectorBuffer&, const String& = "\t");
  5105. bool SaveXML(XMLElement&) const;
  5106. IntVector2 ScreenToElement(const IntVector2&);
  5107. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5108. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5109. bool SetAttribute(const String&, const Variant&);
  5110. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5111. void SetAttributeAnimationSpeed(const String&, float);
  5112. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5113. void SetDeepEnabled(bool);
  5114. void SetEnabledRecursive(bool);
  5115. void SetFixedHeight(int);
  5116. void SetFixedSize(int, int);
  5117. void SetFixedWidth(int);
  5118. void SetFullImageRect();
  5119. void SetHoverOffset(int, int);
  5120. void SetInterceptNetworkUpdate(const String&, bool);
  5121. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5122. void SetMaxSize(int, int);
  5123. void SetMinSize(int, int);
  5124. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5125. void SetPosition(int, int);
  5126. void SetSize(int, int);
  5127. bool SetStyle(const String&, XMLFile = null);
  5128. bool SetStyle(const XMLElement&);
  5129. bool SetStyleAuto(XMLFile = null);
  5130. void UpdateLayout();
  5131. const Variant& GetVar(const StringHash&);
  5132. // Properties:
  5133. bool animationEnabled;
  5134. /* readonly */
  5135. Array<Variant> attributeDefaults;
  5136. /* readonly */
  5137. Array<AttributeInfo> attributeInfos;
  5138. Array<Variant> attributes;
  5139. /* readonly */
  5140. StringHash baseType;
  5141. BlendMode blendMode;
  5142. IntRect border;
  5143. bool bringToBack;
  5144. bool bringToFront;
  5145. /* readonly */
  5146. String category;
  5147. /* readonly */
  5148. IntVector2 childOffset;
  5149. /* readonly */
  5150. Array<UIElement> children;
  5151. IntRect clipBorder;
  5152. bool clipChildren;
  5153. /* writeonly */
  5154. Color color;
  5155. /* readonly */
  5156. bool colorGradient;
  5157. Array<Color> colors;
  5158. /* readonly */
  5159. IntRect combinedScreenRect;
  5160. /* readonly */
  5161. BorderImage cursor;
  5162. float cursorBlinkRate;
  5163. bool cursorMovable;
  5164. uint cursorPosition;
  5165. XMLFile defaultStyle;
  5166. /* readonly */
  5167. float derivedOpacity;
  5168. /* readonly */
  5169. uint dragButtonCombo;
  5170. /* readonly */
  5171. int dragButtonCount;
  5172. uint dragDropMode;
  5173. uint echoCharacter;
  5174. bool editable;
  5175. bool elementEventSender;
  5176. bool enabled;
  5177. /* readonly */
  5178. bool enabledSelf;
  5179. /* readonly */
  5180. bool fixedHeight;
  5181. /* readonly */
  5182. bool fixedSize;
  5183. /* readonly */
  5184. bool fixedWidth;
  5185. bool focus;
  5186. FocusMode focusMode;
  5187. int height;
  5188. HorizontalAlignment horizontalAlignment;
  5189. IntVector2 hoverOffset;
  5190. /* readonly */
  5191. bool hovering;
  5192. IntRect imageBorder;
  5193. IntRect imageRect;
  5194. int indent;
  5195. int indentSpacing;
  5196. /* readonly */
  5197. int indentWidth;
  5198. bool internal;
  5199. IntRect layoutBorder;
  5200. Vector2 layoutFlexScale;
  5201. LayoutMode layoutMode;
  5202. int layoutSpacing;
  5203. int maxHeight;
  5204. uint maxLength;
  5205. IntVector2 maxSize;
  5206. int maxWidth;
  5207. int minHeight;
  5208. IntVector2 minSize;
  5209. int minWidth;
  5210. String name;
  5211. /* readonly */
  5212. uint numAllChildren;
  5213. /* readonly */
  5214. uint numAttributes;
  5215. /* readonly */
  5216. uint numChildren;
  5217. ObjectAnimation objectAnimation;
  5218. float opacity;
  5219. UIElement parent;
  5220. IntVector2 position;
  5221. int priority;
  5222. /* readonly */
  5223. int refs;
  5224. /* readonly */
  5225. UIElement root;
  5226. /* readonly */
  5227. IntVector2 screenPosition;
  5228. bool selected;
  5229. IntVector2 size;
  5230. bool sortChildren;
  5231. String style;
  5232. bool temporary;
  5233. String text;
  5234. bool textCopyable;
  5235. /* readonly */
  5236. Text textElement;
  5237. bool textSelectable;
  5238. Texture texture;
  5239. bool tiled;
  5240. TraversalMode traversalMode;
  5241. /* readonly */
  5242. StringHash type;
  5243. /* readonly */
  5244. String typeName;
  5245. bool useDerivedOpacity;
  5246. /* readonly */
  5247. VariantMap vars;
  5248. VerticalAlignment verticalAlignment;
  5249. bool visible;
  5250. /* readonly */
  5251. int weakRefs;
  5252. int width;
  5253. };
  5254. class ListView
  5255. {
  5256. // Methods:
  5257. void AddChild(UIElement);
  5258. void AddItem(UIElement);
  5259. void AddSelection(uint);
  5260. void ApplyAttributes();
  5261. void BringToFront();
  5262. void ChangeSelection(int, bool);
  5263. void ClearSelection();
  5264. void CopySelectedItemsToClipboard();
  5265. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5266. void DisableLayoutUpdate();
  5267. IntVector2 ElementToScreen(const IntVector2&);
  5268. void EnableLayoutUpdate();
  5269. void Expand(uint, bool, bool = false);
  5270. uint FindChild(UIElement) const;
  5271. uint FindItem(UIElement);
  5272. Variant GetAttribute(const String&) const;
  5273. ValueAnimation GetAttributeAnimation(const String&) const;
  5274. float GetAttributeAnimationSpeed(const String&) const;
  5275. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5276. Variant GetAttributeDefault(const String&) const;
  5277. UIElement GetChild(const String&, bool = false) const;
  5278. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5279. Array<UIElement> GetChildren(bool = false) const;
  5280. UIElement GetElementEventSender() const;
  5281. bool GetInterceptNetworkUpdate(const String&) const;
  5282. Array<UIElement> GetItems() const;
  5283. uint GetNumChildren(bool) const;
  5284. void InsertChild(uint, UIElement);
  5285. void InsertItem(uint, UIElement, UIElement = null);
  5286. bool IsExpanded(uint) const;
  5287. bool IsInside(IntVector2, bool);
  5288. bool IsInsideCombined(IntVector2, bool);
  5289. bool IsSelected(uint) const;
  5290. bool Load(File, bool = false);
  5291. bool Load(VectorBuffer&, bool = false);
  5292. bool LoadChildXML(XMLFile, XMLFile = null);
  5293. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5294. bool LoadXML(File);
  5295. bool LoadXML(VectorBuffer&);
  5296. bool LoadXML(XMLFile, XMLFile);
  5297. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5298. bool LoadXML(const XMLElement&, bool = false);
  5299. void MarkNetworkUpdate() const;
  5300. void Remove();
  5301. void RemoveAllChildren();
  5302. void RemoveAllItems();
  5303. void RemoveChild(UIElement, uint = 0);
  5304. void RemoveChild(uint);
  5305. void RemoveInstanceDefault();
  5306. void RemoveItem(UIElement, uint = 0);
  5307. void RemoveItem(uint);
  5308. void RemoveSelection(uint);
  5309. void ResetDeepEnabled();
  5310. void ResetToDefault();
  5311. bool Save(File) const;
  5312. bool Save(VectorBuffer&) const;
  5313. bool SaveXML(File, const String& = "\t");
  5314. bool SaveXML(VectorBuffer&, const String& = "\t");
  5315. bool SaveXML(XMLElement&) const;
  5316. IntVector2 ScreenToElement(const IntVector2&);
  5317. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5318. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5319. bool SetAttribute(const String&, const Variant&);
  5320. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5321. void SetAttributeAnimationSpeed(const String&, float);
  5322. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5323. void SetDeepEnabled(bool);
  5324. void SetEnabledRecursive(bool);
  5325. void SetFixedHeight(int);
  5326. void SetFixedSize(int, int);
  5327. void SetFixedWidth(int);
  5328. void SetInterceptNetworkUpdate(const String&, bool);
  5329. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5330. void SetMaxSize(int, int);
  5331. void SetMinSize(int, int);
  5332. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5333. void SetPosition(int, int);
  5334. void SetScrollBarsVisible(bool, bool);
  5335. void SetSelections(Array<uint>);
  5336. void SetSize(int, int);
  5337. bool SetStyle(const String&, XMLFile = null);
  5338. bool SetStyle(const XMLElement&);
  5339. bool SetStyleAuto(XMLFile = null);
  5340. void SetViewPosition(int, int);
  5341. void ToggleExpand(uint, bool = false);
  5342. void ToggleSelection(uint);
  5343. void UpdateLayout();
  5344. const Variant& GetVar(const StringHash&);
  5345. // Properties:
  5346. bool animationEnabled;
  5347. /* readonly */
  5348. Array<Variant> attributeDefaults;
  5349. /* readonly */
  5350. Array<AttributeInfo> attributeInfos;
  5351. Array<Variant> attributes;
  5352. bool autoDisableChildren;
  5353. float autoDisableThreshold;
  5354. int baseIndent;
  5355. /* readonly */
  5356. StringHash baseType;
  5357. bool bringToBack;
  5358. bool bringToFront;
  5359. /* readonly */
  5360. String category;
  5361. /* readonly */
  5362. IntVector2 childOffset;
  5363. /* readonly */
  5364. Array<UIElement> children;
  5365. bool clearSelectionOnDefocus;
  5366. IntRect clipBorder;
  5367. bool clipChildren;
  5368. /* writeonly */
  5369. Color color;
  5370. /* readonly */
  5371. bool colorGradient;
  5372. Array<Color> colors;
  5373. /* readonly */
  5374. IntRect combinedScreenRect;
  5375. /* readonly */
  5376. UIElement contentElement;
  5377. XMLFile defaultStyle;
  5378. /* readonly */
  5379. float derivedOpacity;
  5380. /* readonly */
  5381. uint dragButtonCombo;
  5382. /* readonly */
  5383. int dragButtonCount;
  5384. uint dragDropMode;
  5385. bool editable;
  5386. bool elementEventSender;
  5387. bool enabled;
  5388. /* readonly */
  5389. bool enabledSelf;
  5390. /* readonly */
  5391. bool fixedHeight;
  5392. /* readonly */
  5393. bool fixedSize;
  5394. /* readonly */
  5395. bool fixedWidth;
  5396. bool focus;
  5397. FocusMode focusMode;
  5398. int height;
  5399. bool hierarchyMode;
  5400. HighlightMode highlightMode;
  5401. HorizontalAlignment horizontalAlignment;
  5402. /* readonly */
  5403. ScrollBar horizontalScrollBar;
  5404. /* readonly */
  5405. bool hovering;
  5406. int indent;
  5407. int indentSpacing;
  5408. /* readonly */
  5409. int indentWidth;
  5410. bool internal;
  5411. /* readonly */
  5412. Array<UIElement> items;
  5413. IntRect layoutBorder;
  5414. Vector2 layoutFlexScale;
  5415. LayoutMode layoutMode;
  5416. int layoutSpacing;
  5417. int maxHeight;
  5418. IntVector2 maxSize;
  5419. int maxWidth;
  5420. int minHeight;
  5421. IntVector2 minSize;
  5422. int minWidth;
  5423. bool multiselect;
  5424. String name;
  5425. /* readonly */
  5426. uint numAllChildren;
  5427. /* readonly */
  5428. uint numAttributes;
  5429. /* readonly */
  5430. uint numChildren;
  5431. /* readonly */
  5432. uint numItems;
  5433. ObjectAnimation objectAnimation;
  5434. float opacity;
  5435. float pageStep;
  5436. UIElement parent;
  5437. IntVector2 position;
  5438. int priority;
  5439. /* readonly */
  5440. int refs;
  5441. /* readonly */
  5442. UIElement root;
  5443. /* readonly */
  5444. IntVector2 screenPosition;
  5445. bool scrollBarsAutoVisible;
  5446. float scrollDeceleration;
  5447. /* readonly */
  5448. BorderImage scrollPanel;
  5449. float scrollSnapEpsilon;
  5450. float scrollStep;
  5451. bool selectOnClickEnd;
  5452. bool selected;
  5453. /* readonly */
  5454. UIElement selectedItem;
  5455. /* readonly */
  5456. Array<UIElement> selectedItems;
  5457. uint selection;
  5458. /* readonly */
  5459. Array<uint> selections;
  5460. IntVector2 size;
  5461. bool sortChildren;
  5462. String style;
  5463. bool temporary;
  5464. TraversalMode traversalMode;
  5465. /* readonly */
  5466. StringHash type;
  5467. /* readonly */
  5468. String typeName;
  5469. bool useDerivedOpacity;
  5470. /* readonly */
  5471. VariantMap vars;
  5472. VerticalAlignment verticalAlignment;
  5473. /* readonly */
  5474. ScrollBar verticalScrollBar;
  5475. IntVector2 viewPosition;
  5476. bool visible;
  5477. /* readonly */
  5478. int weakRefs;
  5479. int width;
  5480. };
  5481. class Log
  5482. {
  5483. // Methods:
  5484. void Close();
  5485. void Debug(const String&);
  5486. void Error(const String&);
  5487. void Info(const String&);
  5488. void Open(const String&);
  5489. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5490. void Warning(const String&);
  5491. void Write(const String&, bool = false);
  5492. // Properties:
  5493. /* readonly */
  5494. StringHash baseType;
  5495. /* readonly */
  5496. String category;
  5497. /* readonly */
  5498. String lastMessage;
  5499. int level;
  5500. bool quiet;
  5501. /* readonly */
  5502. int refs;
  5503. bool timeStamp;
  5504. /* readonly */
  5505. StringHash type;
  5506. /* readonly */
  5507. String typeName;
  5508. /* readonly */
  5509. int weakRefs;
  5510. };
  5511. class Material
  5512. {
  5513. // Methods:
  5514. Material Clone(const String& = String ( )) const;
  5515. Pass GetPass(uint, const String&);
  5516. ValueAnimation GetShaderParameterAnimation(const String&) const;
  5517. float GetShaderParameterAnimationSpeed(const String&) const;
  5518. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  5519. bool Load(File);
  5520. bool Load(VectorBuffer&);
  5521. bool Load(const XMLElement&);
  5522. void RemoveShaderParameter(const String&);
  5523. bool Save(File) const;
  5524. bool Save(VectorBuffer&) const;
  5525. bool Save(XMLElement&) const;
  5526. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5527. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5528. void SetShaderParameterAnimationSpeed(const String&, float);
  5529. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  5530. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  5531. void SetUVTransform(const Vector2&, float, const Vector2&);
  5532. void SetUVTransform(const Vector2&, float, float);
  5533. void SortTechniques();
  5534. // Properties:
  5535. /* readonly */
  5536. StringHash baseType;
  5537. /* readonly */
  5538. String category;
  5539. CullMode cullMode;
  5540. BiasParameters depthBias;
  5541. FillMode fillMode;
  5542. /* readonly */
  5543. uint memoryUse;
  5544. String name;
  5545. uint numTechniques;
  5546. /* readonly */
  5547. bool occlusion;
  5548. /* readonly */
  5549. int refs;
  5550. Scene scene;
  5551. /* readonly */
  5552. Array<String> shaderParameterNames;
  5553. Array<Variant> shaderParameters;
  5554. CullMode shadowCullMode;
  5555. /* readonly */
  5556. Array<TechniqueEntry> techniqueEntries;
  5557. /* readonly */
  5558. Array<Technique> techniques;
  5559. Array<Texture> textures;
  5560. /* readonly */
  5561. StringHash type;
  5562. /* readonly */
  5563. String typeName;
  5564. /* readonly */
  5565. uint useTimer;
  5566. /* readonly */
  5567. int weakRefs;
  5568. };
  5569. class Matrix3
  5570. {
  5571. // Methods:
  5572. bool Equals(const Matrix3&) const;
  5573. Matrix3 Inverse() const;
  5574. Vector3 Scale() const;
  5575. Matrix3 Scaled(const Vector3&) const;
  5576. void SetScale(const Vector3&);
  5577. void SetScale(float);
  5578. String ToString() const;
  5579. Matrix3 Transpose() const;
  5580. // Properties:
  5581. float m00;
  5582. float m01;
  5583. float m02;
  5584. float m10;
  5585. float m11;
  5586. float m12;
  5587. float m20;
  5588. float m21;
  5589. float m22;
  5590. };
  5591. class Matrix3x4
  5592. {
  5593. // Methods:
  5594. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5595. bool Equals(const Matrix3x4&) const;
  5596. Matrix3x4 Inverse() const;
  5597. Quaternion Rotation() const;
  5598. Matrix3 RotationMatrix() const;
  5599. Vector3 Scale() const;
  5600. void SetRotation(const Matrix3&);
  5601. void SetScale(const Vector3&);
  5602. void SetScale(float);
  5603. void SetTranslation(const Vector3&);
  5604. Matrix3 ToMatrix3() const;
  5605. Matrix4 ToMatrix4() const;
  5606. String ToString() const;
  5607. Vector3 Translation() const;
  5608. // Properties:
  5609. float m00;
  5610. float m01;
  5611. float m02;
  5612. float m03;
  5613. float m10;
  5614. float m11;
  5615. float m12;
  5616. float m13;
  5617. float m20;
  5618. float m21;
  5619. float m22;
  5620. float m23;
  5621. };
  5622. class Matrix4
  5623. {
  5624. // Methods:
  5625. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5626. bool Equals(const Matrix4&) const;
  5627. Matrix4 Inverse() const;
  5628. Quaternion Rotation() const;
  5629. Matrix3 RotationMatrix() const;
  5630. Vector3 Scale() const;
  5631. void SetRotation(const Matrix3&);
  5632. void SetScale(const Vector3&);
  5633. void SetScale(float);
  5634. void SetTranslation(const Vector3&);
  5635. Matrix3 ToMatrix3() const;
  5636. String ToString() const;
  5637. Vector3 Translation() const;
  5638. Matrix4 Transpose() const;
  5639. // Properties:
  5640. float m00;
  5641. float m01;
  5642. float m02;
  5643. float m03;
  5644. float m10;
  5645. float m11;
  5646. float m12;
  5647. float m13;
  5648. float m20;
  5649. float m21;
  5650. float m22;
  5651. float m23;
  5652. float m30;
  5653. float m31;
  5654. float m32;
  5655. float m33;
  5656. };
  5657. class Menu
  5658. {
  5659. // Methods:
  5660. void AddChild(UIElement);
  5661. void ApplyAttributes();
  5662. void BringToFront();
  5663. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5664. void DisableLayoutUpdate();
  5665. IntVector2 ElementToScreen(const IntVector2&);
  5666. void EnableLayoutUpdate();
  5667. uint FindChild(UIElement) const;
  5668. Variant GetAttribute(const String&) const;
  5669. ValueAnimation GetAttributeAnimation(const String&) const;
  5670. float GetAttributeAnimationSpeed(const String&) const;
  5671. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5672. Variant GetAttributeDefault(const String&) const;
  5673. UIElement GetChild(const String&, bool = false) const;
  5674. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5675. Array<UIElement> GetChildren(bool = false) const;
  5676. UIElement GetElementEventSender() const;
  5677. bool GetInterceptNetworkUpdate(const String&) const;
  5678. uint GetNumChildren(bool) const;
  5679. void InsertChild(uint, UIElement);
  5680. bool IsInside(IntVector2, bool);
  5681. bool IsInsideCombined(IntVector2, bool);
  5682. bool Load(File, bool = false);
  5683. bool Load(VectorBuffer&, bool = false);
  5684. bool LoadChildXML(XMLFile, XMLFile = null);
  5685. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5686. bool LoadXML(File);
  5687. bool LoadXML(VectorBuffer&);
  5688. bool LoadXML(XMLFile, XMLFile);
  5689. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5690. bool LoadXML(const XMLElement&, bool = false);
  5691. void MarkNetworkUpdate() const;
  5692. void Remove();
  5693. void RemoveAllChildren();
  5694. void RemoveChild(UIElement, uint = 0);
  5695. void RemoveChild(uint);
  5696. void RemoveInstanceDefault();
  5697. void ResetDeepEnabled();
  5698. void ResetToDefault();
  5699. bool Save(File) const;
  5700. bool Save(VectorBuffer&) const;
  5701. bool SaveXML(File, const String& = "\t");
  5702. bool SaveXML(VectorBuffer&, const String& = "\t");
  5703. bool SaveXML(XMLElement&) const;
  5704. IntVector2 ScreenToElement(const IntVector2&);
  5705. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5706. void SetAccelerator(int, int);
  5707. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5708. bool SetAttribute(const String&, const Variant&);
  5709. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5710. void SetAttributeAnimationSpeed(const String&, float);
  5711. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5712. void SetDeepEnabled(bool);
  5713. void SetEnabledRecursive(bool);
  5714. void SetFixedHeight(int);
  5715. void SetFixedSize(int, int);
  5716. void SetFixedWidth(int);
  5717. void SetFullImageRect();
  5718. void SetHoverOffset(int, int);
  5719. void SetInterceptNetworkUpdate(const String&, bool);
  5720. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5721. void SetMaxSize(int, int);
  5722. void SetMinSize(int, int);
  5723. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5724. void SetPopupOffset(int, int);
  5725. void SetPosition(int, int);
  5726. void SetPressedChildOffset(int, int);
  5727. void SetPressedOffset(int, int);
  5728. void SetRepeat(float, float);
  5729. void SetSize(int, int);
  5730. bool SetStyle(const String&, XMLFile = null);
  5731. bool SetStyle(const XMLElement&);
  5732. bool SetStyleAuto(XMLFile = null);
  5733. void UpdateLayout();
  5734. const Variant& GetVar(const StringHash&);
  5735. // Properties:
  5736. /* readonly */
  5737. int acceleratorKey;
  5738. /* readonly */
  5739. int acceleratorQualifiers;
  5740. bool animationEnabled;
  5741. /* readonly */
  5742. Array<Variant> attributeDefaults;
  5743. /* readonly */
  5744. Array<AttributeInfo> attributeInfos;
  5745. Array<Variant> attributes;
  5746. /* readonly */
  5747. StringHash baseType;
  5748. BlendMode blendMode;
  5749. IntRect border;
  5750. bool bringToBack;
  5751. bool bringToFront;
  5752. /* readonly */
  5753. String category;
  5754. /* readonly */
  5755. IntVector2 childOffset;
  5756. /* readonly */
  5757. Array<UIElement> children;
  5758. IntRect clipBorder;
  5759. bool clipChildren;
  5760. /* writeonly */
  5761. Color color;
  5762. /* readonly */
  5763. bool colorGradient;
  5764. Array<Color> colors;
  5765. /* readonly */
  5766. IntRect combinedScreenRect;
  5767. XMLFile defaultStyle;
  5768. /* readonly */
  5769. float derivedOpacity;
  5770. /* readonly */
  5771. uint dragButtonCombo;
  5772. /* readonly */
  5773. int dragButtonCount;
  5774. uint dragDropMode;
  5775. bool editable;
  5776. bool elementEventSender;
  5777. bool enabled;
  5778. /* readonly */
  5779. bool enabledSelf;
  5780. /* readonly */
  5781. bool fixedHeight;
  5782. /* readonly */
  5783. bool fixedSize;
  5784. /* readonly */
  5785. bool fixedWidth;
  5786. bool focus;
  5787. FocusMode focusMode;
  5788. int height;
  5789. HorizontalAlignment horizontalAlignment;
  5790. IntVector2 hoverOffset;
  5791. /* readonly */
  5792. bool hovering;
  5793. IntRect imageBorder;
  5794. IntRect imageRect;
  5795. int indent;
  5796. int indentSpacing;
  5797. /* readonly */
  5798. int indentWidth;
  5799. bool internal;
  5800. IntRect layoutBorder;
  5801. Vector2 layoutFlexScale;
  5802. LayoutMode layoutMode;
  5803. int layoutSpacing;
  5804. int maxHeight;
  5805. IntVector2 maxSize;
  5806. int maxWidth;
  5807. int minHeight;
  5808. IntVector2 minSize;
  5809. int minWidth;
  5810. String name;
  5811. /* readonly */
  5812. uint numAllChildren;
  5813. /* readonly */
  5814. uint numAttributes;
  5815. /* readonly */
  5816. uint numChildren;
  5817. ObjectAnimation objectAnimation;
  5818. float opacity;
  5819. UIElement parent;
  5820. UIElement popup;
  5821. IntVector2 popupOffset;
  5822. IntVector2 position;
  5823. /* readonly */
  5824. bool pressed;
  5825. IntVector2 pressedChildOffset;
  5826. IntVector2 pressedOffset;
  5827. int priority;
  5828. /* readonly */
  5829. int refs;
  5830. float repeatDelay;
  5831. float repeatRate;
  5832. /* readonly */
  5833. UIElement root;
  5834. /* readonly */
  5835. IntVector2 screenPosition;
  5836. bool selected;
  5837. bool showPopup;
  5838. IntVector2 size;
  5839. bool sortChildren;
  5840. String style;
  5841. bool temporary;
  5842. Texture texture;
  5843. bool tiled;
  5844. TraversalMode traversalMode;
  5845. /* readonly */
  5846. StringHash type;
  5847. /* readonly */
  5848. String typeName;
  5849. bool useDerivedOpacity;
  5850. /* readonly */
  5851. VariantMap vars;
  5852. VerticalAlignment verticalAlignment;
  5853. bool visible;
  5854. /* readonly */
  5855. int weakRefs;
  5856. int width;
  5857. };
  5858. class MessageBox
  5859. {
  5860. // Methods:
  5861. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5862. // Properties:
  5863. /* readonly */
  5864. StringHash baseType;
  5865. /* readonly */
  5866. String category;
  5867. String message;
  5868. /* readonly */
  5869. int refs;
  5870. String title;
  5871. /* readonly */
  5872. StringHash type;
  5873. /* readonly */
  5874. String typeName;
  5875. /* readonly */
  5876. int weakRefs;
  5877. /* readonly */
  5878. UIElement window;
  5879. };
  5880. class Model
  5881. {
  5882. // Methods:
  5883. Model Clone(const String& = String ( )) const;
  5884. Geometry GetGeometry(uint, uint) const;
  5885. bool Load(File);
  5886. bool Load(VectorBuffer&);
  5887. bool Save(File) const;
  5888. bool Save(VectorBuffer&) const;
  5889. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5890. bool SetGeometry(uint, uint, Geometry);
  5891. // Properties:
  5892. /* readonly */
  5893. StringHash baseType;
  5894. BoundingBox boundingBox;
  5895. /* readonly */
  5896. String category;
  5897. Array<Vector3> geometryCenters;
  5898. /* readonly */
  5899. uint memoryUse;
  5900. String name;
  5901. uint numGeometries;
  5902. Array<uint> numGeometryLodLevels;
  5903. /* readonly */
  5904. uint numMorphs;
  5905. /* readonly */
  5906. int refs;
  5907. /* readonly */
  5908. Skeleton skeleton;
  5909. /* readonly */
  5910. StringHash type;
  5911. /* readonly */
  5912. String typeName;
  5913. /* readonly */
  5914. uint useTimer;
  5915. /* readonly */
  5916. int weakRefs;
  5917. };
  5918. class NavArea
  5919. {
  5920. // Methods:
  5921. void ApplyAttributes();
  5922. void DrawDebugGeometry(DebugRenderer, bool);
  5923. Variant GetAttribute(const String&) const;
  5924. ValueAnimation GetAttributeAnimation(const String&) const;
  5925. float GetAttributeAnimationSpeed(const String&) const;
  5926. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5927. Variant GetAttributeDefault(const String&) const;
  5928. bool GetInterceptNetworkUpdate(const String&) const;
  5929. bool Load(File, bool = false);
  5930. bool Load(VectorBuffer&, bool = false);
  5931. bool LoadXML(const XMLElement&, bool = false);
  5932. void MarkNetworkUpdate() const;
  5933. void Remove();
  5934. void RemoveInstanceDefault();
  5935. void ResetToDefault();
  5936. bool Save(File) const;
  5937. bool Save(VectorBuffer&) const;
  5938. bool SaveXML(XMLElement&) const;
  5939. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5940. bool SetAttribute(const String&, const Variant&);
  5941. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5942. void SetAttributeAnimationSpeed(const String&, float);
  5943. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5944. void SetInterceptNetworkUpdate(const String&, bool);
  5945. // Properties:
  5946. bool animationEnabled;
  5947. uint areaID;
  5948. /* readonly */
  5949. Array<Variant> attributeDefaults;
  5950. /* readonly */
  5951. Array<AttributeInfo> attributeInfos;
  5952. Array<Variant> attributes;
  5953. /* readonly */
  5954. StringHash baseType;
  5955. BoundingBox boundingBox;
  5956. /* readonly */
  5957. String category;
  5958. bool enabled;
  5959. /* readonly */
  5960. bool enabledEffective;
  5961. /* readonly */
  5962. uint id;
  5963. /* readonly */
  5964. Node node;
  5965. /* readonly */
  5966. uint numAttributes;
  5967. ObjectAnimation objectAnimation;
  5968. /* readonly */
  5969. int refs;
  5970. bool temporary;
  5971. /* readonly */
  5972. StringHash type;
  5973. /* readonly */
  5974. String typeName;
  5975. /* readonly */
  5976. int weakRefs;
  5977. /* readonly */
  5978. BoundingBox worldBoundingBox;
  5979. };
  5980. class Navigable
  5981. {
  5982. // Methods:
  5983. void ApplyAttributes();
  5984. void DrawDebugGeometry(DebugRenderer, bool);
  5985. Variant GetAttribute(const String&) const;
  5986. ValueAnimation GetAttributeAnimation(const String&) const;
  5987. float GetAttributeAnimationSpeed(const String&) const;
  5988. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5989. Variant GetAttributeDefault(const String&) const;
  5990. bool GetInterceptNetworkUpdate(const String&) const;
  5991. bool Load(File, bool = false);
  5992. bool Load(VectorBuffer&, bool = false);
  5993. bool LoadXML(const XMLElement&, bool = false);
  5994. void MarkNetworkUpdate() const;
  5995. void Remove();
  5996. void RemoveInstanceDefault();
  5997. void ResetToDefault();
  5998. bool Save(File) const;
  5999. bool Save(VectorBuffer&) const;
  6000. bool SaveXML(XMLElement&) const;
  6001. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6002. bool SetAttribute(const String&, const Variant&);
  6003. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6004. void SetAttributeAnimationSpeed(const String&, float);
  6005. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6006. void SetInterceptNetworkUpdate(const String&, bool);
  6007. // Properties:
  6008. bool animationEnabled;
  6009. /* readonly */
  6010. Array<Variant> attributeDefaults;
  6011. /* readonly */
  6012. Array<AttributeInfo> attributeInfos;
  6013. Array<Variant> attributes;
  6014. /* readonly */
  6015. StringHash baseType;
  6016. /* readonly */
  6017. String category;
  6018. bool enabled;
  6019. /* readonly */
  6020. bool enabledEffective;
  6021. /* readonly */
  6022. uint id;
  6023. /* readonly */
  6024. Node node;
  6025. /* readonly */
  6026. uint numAttributes;
  6027. ObjectAnimation objectAnimation;
  6028. bool recursive;
  6029. /* readonly */
  6030. int refs;
  6031. bool temporary;
  6032. /* readonly */
  6033. StringHash type;
  6034. /* readonly */
  6035. String typeName;
  6036. /* readonly */
  6037. int weakRefs;
  6038. };
  6039. class NavigationMesh
  6040. {
  6041. // Methods:
  6042. void ApplyAttributes();
  6043. bool Build();
  6044. bool Build(const BoundingBox&);
  6045. void DrawDebugGeometry(DebugRenderer, bool);
  6046. void DrawDebugGeometry(bool);
  6047. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6048. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6049. float GetAreaCost(uint) const;
  6050. Variant GetAttribute(const String&) const;
  6051. ValueAnimation GetAttributeAnimation(const String&) const;
  6052. float GetAttributeAnimationSpeed(const String&) const;
  6053. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6054. Variant GetAttributeDefault(const String&) const;
  6055. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6056. bool GetInterceptNetworkUpdate(const String&) const;
  6057. Vector3 GetRandomPoint();
  6058. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6059. bool Load(File, bool = false);
  6060. bool Load(VectorBuffer&, bool = false);
  6061. bool LoadXML(const XMLElement&, bool = false);
  6062. void MarkNetworkUpdate() const;
  6063. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), uint = 3);
  6064. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6065. void Remove();
  6066. void RemoveInstanceDefault();
  6067. void ResetToDefault();
  6068. bool Save(File) const;
  6069. bool Save(VectorBuffer&) const;
  6070. bool SaveXML(XMLElement&) const;
  6071. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6072. void SetAreaCost(uint, float);
  6073. bool SetAttribute(const String&, const Variant&);
  6074. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6075. void SetAttributeAnimationSpeed(const String&, float);
  6076. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6077. void SetInterceptNetworkUpdate(const String&, bool);
  6078. // Properties:
  6079. float agentHeight;
  6080. float agentMaxClimb;
  6081. float agentMaxSlope;
  6082. float agentRadius;
  6083. bool animationEnabled;
  6084. /* readonly */
  6085. Array<Variant> attributeDefaults;
  6086. /* readonly */
  6087. Array<AttributeInfo> attributeInfos;
  6088. Array<Variant> attributes;
  6089. /* readonly */
  6090. StringHash baseType;
  6091. /* readonly */
  6092. BoundingBox boundingBox;
  6093. /* readonly */
  6094. String category;
  6095. float cellHeight;
  6096. float cellSize;
  6097. float detailSampleDistance;
  6098. float detailSampleMaxError;
  6099. float edgeMaxError;
  6100. float edgeMaxLength;
  6101. bool enabled;
  6102. /* readonly */
  6103. bool enabledEffective;
  6104. /* readonly */
  6105. uint id;
  6106. /* readonly */
  6107. bool initialized;
  6108. /* readonly */
  6109. Node node;
  6110. /* readonly */
  6111. uint numAttributes;
  6112. /* readonly */
  6113. IntVector2 numTiles;
  6114. ObjectAnimation objectAnimation;
  6115. Vector3 padding;
  6116. /* readonly */
  6117. int refs;
  6118. float regionMergeSize;
  6119. float regionMinSize;
  6120. bool temporary;
  6121. int tileSize;
  6122. /* readonly */
  6123. StringHash type;
  6124. /* readonly */
  6125. String typeName;
  6126. /* readonly */
  6127. int weakRefs;
  6128. /* readonly */
  6129. BoundingBox worldBoundingBox;
  6130. };
  6131. class Network
  6132. {
  6133. // Methods:
  6134. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6135. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6136. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6137. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6138. bool CheckRemoteEvent(const String&) const;
  6139. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6140. void Disconnect(int = 0);
  6141. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6142. void RegisterRemoteEvent(const String&) const;
  6143. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6144. void SendPackageToClients(Scene, PackageFile);
  6145. bool StartServer(uint16);
  6146. void StopServer();
  6147. void UnregisterAllRemoteEvents();
  6148. void UnregisterRemoteEvent(const String&) const;
  6149. // Properties:
  6150. /* readonly */
  6151. StringHash baseType;
  6152. /* readonly */
  6153. String category;
  6154. /* readonly */
  6155. Array<Connection> clientConnections;
  6156. String packageCacheDir;
  6157. /* readonly */
  6158. int refs;
  6159. /* readonly */
  6160. Connection serverConnection;
  6161. /* readonly */
  6162. bool serverRunning;
  6163. int simulatedLatency;
  6164. float simulatedPacketLoss;
  6165. /* readonly */
  6166. StringHash type;
  6167. /* readonly */
  6168. String typeName;
  6169. int updateFps;
  6170. /* readonly */
  6171. int weakRefs;
  6172. };
  6173. class NetworkPriority
  6174. {
  6175. // Methods:
  6176. void ApplyAttributes();
  6177. void DrawDebugGeometry(DebugRenderer, bool);
  6178. Variant GetAttribute(const String&) const;
  6179. ValueAnimation GetAttributeAnimation(const String&) const;
  6180. float GetAttributeAnimationSpeed(const String&) const;
  6181. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6182. Variant GetAttributeDefault(const String&) const;
  6183. bool GetInterceptNetworkUpdate(const String&) const;
  6184. bool Load(File, bool = false);
  6185. bool Load(VectorBuffer&, bool = false);
  6186. bool LoadXML(const XMLElement&, bool = false);
  6187. void MarkNetworkUpdate() const;
  6188. void Remove();
  6189. void RemoveInstanceDefault();
  6190. void ResetToDefault();
  6191. bool Save(File) const;
  6192. bool Save(VectorBuffer&) const;
  6193. bool SaveXML(XMLElement&) const;
  6194. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6195. bool SetAttribute(const String&, const Variant&);
  6196. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6197. void SetAttributeAnimationSpeed(const String&, float);
  6198. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6199. void SetInterceptNetworkUpdate(const String&, bool);
  6200. // Properties:
  6201. bool alwaysUpdateOwner;
  6202. bool animationEnabled;
  6203. /* readonly */
  6204. Array<Variant> attributeDefaults;
  6205. /* readonly */
  6206. Array<AttributeInfo> attributeInfos;
  6207. Array<Variant> attributes;
  6208. float basePriority;
  6209. /* readonly */
  6210. StringHash baseType;
  6211. /* readonly */
  6212. String category;
  6213. float distanceFactor;
  6214. bool enabled;
  6215. /* readonly */
  6216. bool enabledEffective;
  6217. /* readonly */
  6218. uint id;
  6219. float minPriority;
  6220. /* readonly */
  6221. Node node;
  6222. /* readonly */
  6223. uint numAttributes;
  6224. ObjectAnimation objectAnimation;
  6225. /* readonly */
  6226. int refs;
  6227. bool temporary;
  6228. /* readonly */
  6229. StringHash type;
  6230. /* readonly */
  6231. String typeName;
  6232. /* readonly */
  6233. int weakRefs;
  6234. };
  6235. class Node
  6236. {
  6237. // Methods:
  6238. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6239. void ApplyAttributes();
  6240. Node Clone(CreateMode = REPLICATED);
  6241. Component CloneComponent(Component, CreateMode, uint = 0);
  6242. Component CloneComponent(Component, uint = 0);
  6243. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6244. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6245. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6246. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6247. Variant GetAttribute(const String&) const;
  6248. ValueAnimation GetAttributeAnimation(const String&) const;
  6249. float GetAttributeAnimationSpeed(const String&) const;
  6250. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6251. Variant GetAttributeDefault(const String&) const;
  6252. Node GetChild(const String&, bool = false) const;
  6253. Array<Node> GetChildren(bool = false) const;
  6254. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6255. Array<Node> GetChildrenWithScript(bool = false) const;
  6256. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6257. Component GetComponent(const String&) const;
  6258. Array<Component> GetComponents() const;
  6259. Array<Component> GetComponents(const String&, bool = false) const;
  6260. bool GetInterceptNetworkUpdate(const String&) const;
  6261. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6262. ScriptObject GetScriptObject() const;
  6263. ScriptObject GetScriptObject(const String&) const;
  6264. bool HasComponent(const String&) const;
  6265. bool Load(File, bool = false);
  6266. bool Load(VectorBuffer&, bool = false);
  6267. bool LoadXML(const XMLElement&, bool = false);
  6268. Vector3 LocalToWorld(const Vector3&) const;
  6269. Vector3 LocalToWorld(const Vector4&) const;
  6270. Vector2 LocalToWorld2D(const Vector2&) const;
  6271. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6272. void MarkNetworkUpdate() const;
  6273. void Pitch(float, TransformSpace = TS_LOCAL);
  6274. void Remove();
  6275. void RemoveAllChildren();
  6276. void RemoveAllComponents();
  6277. void RemoveChild(Node);
  6278. void RemoveChildren(bool, bool, bool);
  6279. void RemoveComponent(Component);
  6280. void RemoveComponent(const String&);
  6281. void RemoveComponents(bool, bool);
  6282. void RemoveInstanceDefault();
  6283. void ResetDeepEnabled();
  6284. void ResetToDefault();
  6285. void Roll(float, TransformSpace = TS_LOCAL);
  6286. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6287. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6288. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6289. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6290. bool Save(File) const;
  6291. bool Save(VectorBuffer&) const;
  6292. bool SaveXML(File, const String& = "\t");
  6293. bool SaveXML(VectorBuffer&, const String& = "\t");
  6294. bool SaveXML(XMLElement&) const;
  6295. void Scale(const Vector3&);
  6296. void Scale(float);
  6297. void Scale2D(const Vector2&);
  6298. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6299. bool SetAttribute(const String&, const Variant&);
  6300. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6301. void SetAttributeAnimationSpeed(const String&, float);
  6302. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6303. void SetDeepEnabled(bool);
  6304. void SetEnabledRecursive(bool);
  6305. void SetInterceptNetworkUpdate(const String&, bool);
  6306. void SetPosition2D(float, float);
  6307. void SetScale(float);
  6308. void SetScale2D(float, float);
  6309. void SetTransform(const Vector3&, const Quaternion&);
  6310. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6311. void SetTransform(const Vector3&, const Quaternion&, float);
  6312. void SetTransform2D(const Vector2&, float);
  6313. void SetTransform2D(const Vector2&, float, const Vector2&);
  6314. void SetTransform2D(const Vector2&, float, float);
  6315. void SetWorldTransform(const Vector3&, const Quaternion&);
  6316. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6317. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6318. void SetWorldTransform2D(const Vector2&, float);
  6319. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6320. void SetWorldTransform2D(const Vector2&, float, float);
  6321. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6322. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6323. Vector3 WorldToLocal(const Vector3&) const;
  6324. Vector3 WorldToLocal(const Vector4&) const;
  6325. Vector2 WorldToLocal2D(const Vector2&) const;
  6326. void Yaw(float, TransformSpace = TS_LOCAL);
  6327. // Properties:
  6328. bool animationEnabled;
  6329. /* readonly */
  6330. Array<Variant> attributeDefaults;
  6331. /* readonly */
  6332. Array<AttributeInfo> attributeInfos;
  6333. Array<Variant> attributes;
  6334. /* readonly */
  6335. StringHash baseType;
  6336. /* readonly */
  6337. String category;
  6338. /* readonly */
  6339. Array<Node> children;
  6340. /* readonly */
  6341. Array<Component> components;
  6342. Vector3 direction;
  6343. bool enabled;
  6344. /* readonly */
  6345. bool enabledSelf;
  6346. /* readonly */
  6347. uint id;
  6348. String name;
  6349. /* readonly */
  6350. uint numAllChildren;
  6351. /* readonly */
  6352. uint numAttributes;
  6353. /* readonly */
  6354. uint numChildren;
  6355. /* readonly */
  6356. uint numComponents;
  6357. ObjectAnimation objectAnimation;
  6358. Connection owner;
  6359. Node parent;
  6360. Vector3 position;
  6361. Vector2 position2D;
  6362. /* readonly */
  6363. int refs;
  6364. /* readonly */
  6365. Vector3 right;
  6366. Quaternion rotation;
  6367. float rotation2D;
  6368. Vector3 scale;
  6369. Vector2 scale2D;
  6370. /* readonly */
  6371. Scene scene;
  6372. /* readonly */
  6373. ScriptObject scriptObject;
  6374. bool temporary;
  6375. /* readonly */
  6376. Matrix3x4 transform;
  6377. /* readonly */
  6378. StringHash type;
  6379. /* readonly */
  6380. String typeName;
  6381. /* readonly */
  6382. Vector3 up;
  6383. /* readonly */
  6384. VariantMap vars;
  6385. /* readonly */
  6386. int weakRefs;
  6387. Vector3 worldDirection;
  6388. Vector3 worldPosition;
  6389. Vector2 worldPosition2D;
  6390. /* readonly */
  6391. Vector3 worldRight;
  6392. Quaternion worldRotation;
  6393. float worldRotation2D;
  6394. Vector3 worldScale;
  6395. Vector2 worldScale2D;
  6396. /* readonly */
  6397. Matrix3x4 worldTransform;
  6398. /* readonly */
  6399. Vector3 worldUp;
  6400. };
  6401. class Object
  6402. {
  6403. // Methods:
  6404. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6405. // Properties:
  6406. /* readonly */
  6407. StringHash baseType;
  6408. /* readonly */
  6409. String category;
  6410. /* readonly */
  6411. int refs;
  6412. /* readonly */
  6413. StringHash type;
  6414. /* readonly */
  6415. String typeName;
  6416. /* readonly */
  6417. int weakRefs;
  6418. };
  6419. class ObjectAnimation
  6420. {
  6421. // Methods:
  6422. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6423. ValueAnimation GetAttributeAnimation(const String&) const;
  6424. float GetAttributeAnimationSpeed(const String&) const;
  6425. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6426. bool Load(File);
  6427. bool Load(VectorBuffer&);
  6428. void RemoveAttributeAnimation(ValueAnimation);
  6429. void RemoveAttributeAnimation(const String&);
  6430. bool Save(File) const;
  6431. bool Save(VectorBuffer&) const;
  6432. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6433. // Properties:
  6434. /* readonly */
  6435. Array<Variant> attributeAnimations;
  6436. /* readonly */
  6437. StringHash baseType;
  6438. /* readonly */
  6439. String category;
  6440. /* readonly */
  6441. uint memoryUse;
  6442. String name;
  6443. /* readonly */
  6444. int refs;
  6445. /* readonly */
  6446. Array<Variant> speeds;
  6447. /* readonly */
  6448. StringHash type;
  6449. /* readonly */
  6450. String typeName;
  6451. /* readonly */
  6452. uint useTimer;
  6453. /* readonly */
  6454. int weakRefs;
  6455. /* readonly */
  6456. Array<Variant> wrapModes;
  6457. };
  6458. class Obstacle
  6459. {
  6460. // Methods:
  6461. void ApplyAttributes();
  6462. void DrawDebugGeometry(DebugRenderer, bool);
  6463. void DrawDebugGeometry(bool);
  6464. Variant GetAttribute(const String&) const;
  6465. ValueAnimation GetAttributeAnimation(const String&) const;
  6466. float GetAttributeAnimationSpeed(const String&) const;
  6467. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6468. Variant GetAttributeDefault(const String&) const;
  6469. bool GetInterceptNetworkUpdate(const String&) const;
  6470. bool Load(File, bool = false);
  6471. bool Load(VectorBuffer&, bool = false);
  6472. bool LoadXML(const XMLElement&, bool = false);
  6473. void MarkNetworkUpdate() const;
  6474. void Remove();
  6475. void RemoveInstanceDefault();
  6476. void ResetToDefault();
  6477. bool Save(File) const;
  6478. bool Save(VectorBuffer&) const;
  6479. bool SaveXML(XMLElement&) const;
  6480. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6481. bool SetAttribute(const String&, const Variant&);
  6482. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6483. void SetAttributeAnimationSpeed(const String&, float);
  6484. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6485. void SetInterceptNetworkUpdate(const String&, bool);
  6486. // Properties:
  6487. bool animationEnabled;
  6488. /* readonly */
  6489. Array<Variant> attributeDefaults;
  6490. /* readonly */
  6491. Array<AttributeInfo> attributeInfos;
  6492. Array<Variant> attributes;
  6493. /* readonly */
  6494. StringHash baseType;
  6495. /* readonly */
  6496. String category;
  6497. bool enabled;
  6498. /* readonly */
  6499. bool enabledEffective;
  6500. float height;
  6501. /* readonly */
  6502. uint id;
  6503. /* readonly */
  6504. Node node;
  6505. /* readonly */
  6506. uint numAttributes;
  6507. ObjectAnimation objectAnimation;
  6508. /* readonly */
  6509. uint obstacleId;
  6510. float radius;
  6511. /* readonly */
  6512. int refs;
  6513. bool temporary;
  6514. /* readonly */
  6515. StringHash type;
  6516. /* readonly */
  6517. String typeName;
  6518. /* readonly */
  6519. int weakRefs;
  6520. };
  6521. class Octree
  6522. {
  6523. // Methods:
  6524. void AddManualDrawable(Drawable);
  6525. void ApplyAttributes();
  6526. void DrawDebugGeometry(DebugRenderer, bool);
  6527. void DrawDebugGeometry(bool) const;
  6528. Variant GetAttribute(const String&) const;
  6529. ValueAnimation GetAttributeAnimation(const String&) const;
  6530. float GetAttributeAnimationSpeed(const String&) const;
  6531. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6532. Variant GetAttributeDefault(const String&) const;
  6533. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6534. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6535. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6536. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6537. bool GetInterceptNetworkUpdate(const String&) const;
  6538. bool Load(File, bool = false);
  6539. bool Load(VectorBuffer&, bool = false);
  6540. bool LoadXML(const XMLElement&, bool = false);
  6541. void MarkNetworkUpdate() const;
  6542. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6543. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6544. void Remove();
  6545. void RemoveInstanceDefault();
  6546. void RemoveManualDrawable(Drawable);
  6547. void ResetToDefault();
  6548. bool Save(File) const;
  6549. bool Save(VectorBuffer&) const;
  6550. bool SaveXML(XMLElement&) const;
  6551. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6552. bool SetAttribute(const String&, const Variant&);
  6553. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6554. void SetAttributeAnimationSpeed(const String&, float);
  6555. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6556. void SetInterceptNetworkUpdate(const String&, bool);
  6557. void SetSize(const BoundingBox&, uint);
  6558. // Properties:
  6559. bool animationEnabled;
  6560. /* readonly */
  6561. Array<Variant> attributeDefaults;
  6562. /* readonly */
  6563. Array<AttributeInfo> attributeInfos;
  6564. Array<Variant> attributes;
  6565. /* readonly */
  6566. StringHash baseType;
  6567. /* readonly */
  6568. String category;
  6569. bool enabled;
  6570. /* readonly */
  6571. bool enabledEffective;
  6572. /* readonly */
  6573. uint id;
  6574. /* readonly */
  6575. Node node;
  6576. /* readonly */
  6577. uint numAttributes;
  6578. /* readonly */
  6579. uint numLevels;
  6580. ObjectAnimation objectAnimation;
  6581. /* readonly */
  6582. int refs;
  6583. bool temporary;
  6584. /* readonly */
  6585. StringHash type;
  6586. /* readonly */
  6587. String typeName;
  6588. /* readonly */
  6589. int weakRefs;
  6590. /* readonly */
  6591. BoundingBox worldBoundingBox;
  6592. };
  6593. class OffMeshConnection
  6594. {
  6595. // Methods:
  6596. void ApplyAttributes();
  6597. void DrawDebugGeometry(DebugRenderer, bool);
  6598. Variant GetAttribute(const String&) const;
  6599. ValueAnimation GetAttributeAnimation(const String&) const;
  6600. float GetAttributeAnimationSpeed(const String&) const;
  6601. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6602. Variant GetAttributeDefault(const String&) const;
  6603. bool GetInterceptNetworkUpdate(const String&) const;
  6604. bool Load(File, bool = false);
  6605. bool Load(VectorBuffer&, bool = false);
  6606. bool LoadXML(const XMLElement&, bool = false);
  6607. void MarkNetworkUpdate() const;
  6608. void Remove();
  6609. void RemoveInstanceDefault();
  6610. void ResetToDefault();
  6611. bool Save(File) const;
  6612. bool Save(VectorBuffer&) const;
  6613. bool SaveXML(XMLElement&) const;
  6614. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6615. bool SetAttribute(const String&, const Variant&);
  6616. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6617. void SetAttributeAnimationSpeed(const String&, float);
  6618. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6619. void SetInterceptNetworkUpdate(const String&, bool);
  6620. // Properties:
  6621. bool animationEnabled;
  6622. /* readonly */
  6623. Array<Variant> attributeDefaults;
  6624. /* readonly */
  6625. Array<AttributeInfo> attributeInfos;
  6626. Array<Variant> attributes;
  6627. /* readonly */
  6628. StringHash baseType;
  6629. bool bidirectional;
  6630. /* readonly */
  6631. String category;
  6632. bool enabled;
  6633. /* readonly */
  6634. bool enabledEffective;
  6635. Node endPoint;
  6636. /* readonly */
  6637. uint id;
  6638. /* readonly */
  6639. Node node;
  6640. /* readonly */
  6641. uint numAttributes;
  6642. ObjectAnimation objectAnimation;
  6643. float radius;
  6644. /* readonly */
  6645. int refs;
  6646. bool temporary;
  6647. /* readonly */
  6648. StringHash type;
  6649. /* readonly */
  6650. String typeName;
  6651. /* readonly */
  6652. int weakRefs;
  6653. };
  6654. class PackageFile
  6655. {
  6656. // Methods:
  6657. bool Exists(const String&) const;
  6658. Array<String> GetEntryNames() const;
  6659. bool Open(const String&, uint = 0) const;
  6660. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6661. bool compressed() const;
  6662. // Properties:
  6663. /* readonly */
  6664. StringHash baseType;
  6665. /* readonly */
  6666. String category;
  6667. /* readonly */
  6668. uint checksum;
  6669. /* readonly */
  6670. String name;
  6671. /* readonly */
  6672. uint numFiles;
  6673. /* readonly */
  6674. int refs;
  6675. /* readonly */
  6676. uint totalSize;
  6677. /* readonly */
  6678. StringHash type;
  6679. /* readonly */
  6680. String typeName;
  6681. /* readonly */
  6682. int weakRefs;
  6683. };
  6684. class ParticleEffect
  6685. {
  6686. // Methods:
  6687. void AddColorFrame(ColorFrame);
  6688. void AddColorTime(Color&, float);
  6689. void AddTextureFrame(TextureFrame);
  6690. void AddTextureTime(Rect&, float);
  6691. ColorFrame GetColorFrame(uint) const;
  6692. TextureFrame GetTextureFrame(uint) const;
  6693. bool Load(File);
  6694. bool Load(VectorBuffer&);
  6695. bool Load(const XMLElement&);
  6696. void RemoveColorFrame(uint);
  6697. void RemoveTextureFrame(uint);
  6698. bool Save(File) const;
  6699. bool Save(VectorBuffer&) const;
  6700. bool Save(XMLElement&) const;
  6701. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6702. void SetColorFrame(uint, ColorFrame);
  6703. void SetTextureFrame(uint, TextureFrame);
  6704. void SortColorFrames();
  6705. void SortTextureFrames();
  6706. // Properties:
  6707. float activeTime;
  6708. float animationLodBias;
  6709. /* readonly */
  6710. StringHash baseType;
  6711. /* readonly */
  6712. String category;
  6713. Vector3 constantForce;
  6714. float dampingForce;
  6715. Vector3 emitterSize;
  6716. EmitterType emitterType;
  6717. float inactiveTime;
  6718. Material material;
  6719. Vector3 maxDirection;
  6720. float maxEmissionRate;
  6721. Vector2 maxParticleSize;
  6722. float maxRotation;
  6723. float maxRotationSpeed;
  6724. float maxTimeToLive;
  6725. float maxVelocity;
  6726. /* readonly */
  6727. uint memoryUse;
  6728. Vector3 minDirection;
  6729. float minEmissionRate;
  6730. Vector2 minParticleSize;
  6731. float minRotation;
  6732. float minRotationSpeed;
  6733. float minTimeToLive;
  6734. float minVelocity;
  6735. String name;
  6736. uint numColorFrames;
  6737. uint numParticles;
  6738. uint numTextureFrames;
  6739. /* readonly */
  6740. int refs;
  6741. bool relative;
  6742. bool scaled;
  6743. float sizeAdd;
  6744. float sizeMul;
  6745. bool sorted;
  6746. /* readonly */
  6747. StringHash type;
  6748. /* readonly */
  6749. String typeName;
  6750. bool updateInvisible;
  6751. /* readonly */
  6752. uint useTimer;
  6753. /* readonly */
  6754. int weakRefs;
  6755. };
  6756. class ParticleEffect2D
  6757. {
  6758. // Methods:
  6759. bool Load(File);
  6760. bool Load(VectorBuffer&);
  6761. bool Save(File) const;
  6762. bool Save(VectorBuffer&) const;
  6763. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6764. // Properties:
  6765. /* readonly */
  6766. StringHash baseType;
  6767. /* readonly */
  6768. String category;
  6769. /* readonly */
  6770. uint memoryUse;
  6771. String name;
  6772. /* readonly */
  6773. int refs;
  6774. /* readonly */
  6775. StringHash type;
  6776. /* readonly */
  6777. String typeName;
  6778. /* readonly */
  6779. uint useTimer;
  6780. /* readonly */
  6781. int weakRefs;
  6782. };
  6783. class ParticleEmitter
  6784. {
  6785. // Methods:
  6786. void ApplyAttributes();
  6787. void ApplyEffect();
  6788. void Commit();
  6789. void DrawDebugGeometry(DebugRenderer, bool);
  6790. Variant GetAttribute(const String&) const;
  6791. ValueAnimation GetAttributeAnimation(const String&) const;
  6792. float GetAttributeAnimationSpeed(const String&) const;
  6793. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6794. Variant GetAttributeDefault(const String&) const;
  6795. bool GetInterceptNetworkUpdate(const String&) const;
  6796. bool IsInView(Camera) const;
  6797. bool Load(File, bool = false);
  6798. bool Load(VectorBuffer&, bool = false);
  6799. bool LoadXML(const XMLElement&, bool = false);
  6800. void MarkNetworkUpdate() const;
  6801. void Remove();
  6802. void RemoveAllParticles();
  6803. void RemoveInstanceDefault();
  6804. void Reset();
  6805. void ResetEmissionTimer();
  6806. void ResetToDefault();
  6807. bool Save(File) const;
  6808. bool Save(VectorBuffer&) const;
  6809. bool SaveXML(XMLElement&) const;
  6810. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6811. bool SetAttribute(const String&, const Variant&);
  6812. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6813. void SetAttributeAnimationSpeed(const String&, float);
  6814. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6815. void SetInterceptNetworkUpdate(const String&, bool);
  6816. // Properties:
  6817. bool animationEnabled;
  6818. float animationLodBias;
  6819. /* readonly */
  6820. Array<Variant> attributeDefaults;
  6821. /* readonly */
  6822. Array<AttributeInfo> attributeInfos;
  6823. Array<Variant> attributes;
  6824. /* readonly */
  6825. StringHash baseType;
  6826. /* readonly */
  6827. Array<Billboard> billboards;
  6828. /* readonly */
  6829. BoundingBox boundingBox;
  6830. bool castShadows;
  6831. /* readonly */
  6832. String category;
  6833. float drawDistance;
  6834. ParticleEffect effect;
  6835. bool emitting;
  6836. bool enabled;
  6837. /* readonly */
  6838. bool enabledEffective;
  6839. FaceCameraMode faceCameraMode;
  6840. /* readonly */
  6841. uint id;
  6842. /* readonly */
  6843. bool inView;
  6844. uint lightMask;
  6845. float lodBias;
  6846. Material material;
  6847. uint maxLights;
  6848. /* readonly */
  6849. Node node;
  6850. /* readonly */
  6851. uint numAttributes;
  6852. uint numBillboards;
  6853. uint numParticles;
  6854. ObjectAnimation objectAnimation;
  6855. bool occludee;
  6856. bool occluder;
  6857. /* readonly */
  6858. int refs;
  6859. bool relative;
  6860. bool scaled;
  6861. bool serializeParticles;
  6862. float shadowDistance;
  6863. uint shadowMask;
  6864. bool sorted;
  6865. bool temporary;
  6866. /* readonly */
  6867. StringHash type;
  6868. /* readonly */
  6869. String typeName;
  6870. uint viewMask;
  6871. /* readonly */
  6872. int weakRefs;
  6873. /* readonly */
  6874. BoundingBox worldBoundingBox;
  6875. /* readonly */
  6876. Zone zone;
  6877. uint zoneMask;
  6878. };
  6879. class ParticleEmitter2D
  6880. {
  6881. // Methods:
  6882. void ApplyAttributes();
  6883. void DrawDebugGeometry(DebugRenderer, bool);
  6884. Variant GetAttribute(const String&) const;
  6885. ValueAnimation GetAttributeAnimation(const String&) const;
  6886. float GetAttributeAnimationSpeed(const String&) const;
  6887. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6888. Variant GetAttributeDefault(const String&) const;
  6889. bool GetInterceptNetworkUpdate(const String&) const;
  6890. bool IsInView(Camera) const;
  6891. bool Load(File, bool = false);
  6892. bool Load(VectorBuffer&, bool = false);
  6893. bool LoadXML(const XMLElement&, bool = false);
  6894. void MarkNetworkUpdate() const;
  6895. void Remove();
  6896. void RemoveInstanceDefault();
  6897. void ResetToDefault();
  6898. bool Save(File) const;
  6899. bool Save(VectorBuffer&) const;
  6900. bool SaveXML(XMLElement&) const;
  6901. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6902. bool SetAttribute(const String&, const Variant&);
  6903. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6904. void SetAttributeAnimationSpeed(const String&, float);
  6905. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6906. void SetInterceptNetworkUpdate(const String&, bool);
  6907. // Properties:
  6908. bool animationEnabled;
  6909. /* readonly */
  6910. Array<Variant> attributeDefaults;
  6911. /* readonly */
  6912. Array<AttributeInfo> attributeInfos;
  6913. Array<Variant> attributes;
  6914. /* readonly */
  6915. StringHash baseType;
  6916. BlendMode blendMode;
  6917. /* readonly */
  6918. BoundingBox boundingBox;
  6919. bool castShadows;
  6920. /* readonly */
  6921. String category;
  6922. float drawDistance;
  6923. ParticleEffect2D effect;
  6924. bool enabled;
  6925. /* readonly */
  6926. bool enabledEffective;
  6927. /* readonly */
  6928. uint id;
  6929. /* readonly */
  6930. bool inView;
  6931. int layer;
  6932. uint lightMask;
  6933. float lodBias;
  6934. uint maxLights;
  6935. /* readonly */
  6936. Node node;
  6937. /* readonly */
  6938. uint numAttributes;
  6939. ObjectAnimation objectAnimation;
  6940. bool occludee;
  6941. bool occluder;
  6942. int orderInLayer;
  6943. /* readonly */
  6944. int refs;
  6945. float shadowDistance;
  6946. uint shadowMask;
  6947. Sprite2D sprite;
  6948. bool temporary;
  6949. /* readonly */
  6950. StringHash type;
  6951. /* readonly */
  6952. String typeName;
  6953. uint viewMask;
  6954. /* readonly */
  6955. int weakRefs;
  6956. /* readonly */
  6957. BoundingBox worldBoundingBox;
  6958. uint zoneMask;
  6959. };
  6960. class Pass
  6961. {
  6962. // Properties:
  6963. bool alphaMask;
  6964. BlendMode blendMode;
  6965. CompareMode depthTestMode;
  6966. bool depthWrite;
  6967. bool desktop;
  6968. PassLightingMode lightingMode;
  6969. String pixelShader;
  6970. String pixelShaderDefines;
  6971. /* readonly */
  6972. int refs;
  6973. String vertexShader;
  6974. String vertexShaderDefines;
  6975. /* readonly */
  6976. int weakRefs;
  6977. };
  6978. class PhysicsRaycastResult
  6979. {
  6980. // Properties:
  6981. /* readonly */
  6982. RigidBody body;
  6983. float distance;
  6984. Vector3 normal;
  6985. Vector3 position;
  6986. };
  6987. class PhysicsRaycastResult2D
  6988. {
  6989. // Properties:
  6990. /* readonly */
  6991. RigidBody2D body;
  6992. float distance;
  6993. Vector2 normal;
  6994. Vector2 position;
  6995. };
  6996. class PhysicsWorld
  6997. {
  6998. // Methods:
  6999. void ApplyAttributes();
  7000. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7001. void DrawDebugGeometry(DebugRenderer, bool);
  7002. void DrawDebugGeometry(bool);
  7003. Variant GetAttribute(const String&) const;
  7004. ValueAnimation GetAttributeAnimation(const String&) const;
  7005. float GetAttributeAnimationSpeed(const String&) const;
  7006. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7007. Variant GetAttributeDefault(const String&) const;
  7008. bool GetInterceptNetworkUpdate(const String&) const;
  7009. Array<RigidBody> GetRigidBodies(RigidBody);
  7010. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7011. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7012. bool Load(File, bool = false);
  7013. bool Load(VectorBuffer&, bool = false);
  7014. bool LoadXML(const XMLElement&, bool = false);
  7015. void MarkNetworkUpdate() const;
  7016. Array<PhysicsRaycastResult> Raycast(const Ray&, float = M_INFINITY, uint = 0xffff);
  7017. PhysicsRaycastResult RaycastSingle(const Ray&, float = M_INFINITY, uint = 0xffff);
  7018. void Remove();
  7019. void RemoveCachedGeometry(Model);
  7020. void RemoveInstanceDefault();
  7021. void ResetToDefault();
  7022. bool Save(File) const;
  7023. bool Save(VectorBuffer&) const;
  7024. bool SaveXML(XMLElement&) const;
  7025. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7026. bool SetAttribute(const String&, const Variant&);
  7027. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7028. void SetAttributeAnimationSpeed(const String&, float);
  7029. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7030. void SetInterceptNetworkUpdate(const String&, bool);
  7031. PhysicsRaycastResult SphereCast(const Ray&, float, float = M_INFINITY, uint = 0xffff);
  7032. void Update(float);
  7033. void UpdateCollisions();
  7034. // Properties:
  7035. bool animationEnabled;
  7036. /* readonly */
  7037. Array<Variant> attributeDefaults;
  7038. /* readonly */
  7039. Array<AttributeInfo> attributeInfos;
  7040. Array<Variant> attributes;
  7041. /* readonly */
  7042. StringHash baseType;
  7043. /* readonly */
  7044. String category;
  7045. bool enabled;
  7046. /* readonly */
  7047. bool enabledEffective;
  7048. int fps;
  7049. Vector3 gravity;
  7050. /* readonly */
  7051. uint id;
  7052. bool internalEdge;
  7053. bool interpolation;
  7054. int maxSubSteps;
  7055. /* readonly */
  7056. Node node;
  7057. /* readonly */
  7058. uint numAttributes;
  7059. int numIterations;
  7060. ObjectAnimation objectAnimation;
  7061. /* readonly */
  7062. int refs;
  7063. bool splitImpulse;
  7064. bool temporary;
  7065. /* readonly */
  7066. StringHash type;
  7067. /* readonly */
  7068. String typeName;
  7069. /* readonly */
  7070. int weakRefs;
  7071. };
  7072. class PhysicsWorld2D
  7073. {
  7074. // Methods:
  7075. void ApplyAttributes();
  7076. void DrawDebugGeometry() const;
  7077. void DrawDebugGeometry(DebugRenderer, bool);
  7078. Variant GetAttribute(const String&) const;
  7079. ValueAnimation GetAttributeAnimation(const String&) const;
  7080. float GetAttributeAnimationSpeed(const String&) const;
  7081. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7082. Variant GetAttributeDefault(const String&) const;
  7083. bool GetInterceptNetworkUpdate(const String&) const;
  7084. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7085. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7086. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7087. bool Load(File, bool = false);
  7088. bool Load(VectorBuffer&, bool = false);
  7089. bool LoadXML(const XMLElement&, bool = false);
  7090. void MarkNetworkUpdate() const;
  7091. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7092. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7093. void Remove();
  7094. void RemoveInstanceDefault();
  7095. void ResetToDefault();
  7096. bool Save(File) const;
  7097. bool Save(VectorBuffer&) const;
  7098. bool SaveXML(XMLElement&) const;
  7099. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7100. bool SetAttribute(const String&, const Variant&);
  7101. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7102. void SetAttributeAnimationSpeed(const String&, float);
  7103. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7104. void SetInterceptNetworkUpdate(const String&, bool);
  7105. // Properties:
  7106. bool allowSleeping;
  7107. bool animationEnabled;
  7108. /* readonly */
  7109. Array<Variant> attributeDefaults;
  7110. /* readonly */
  7111. Array<AttributeInfo> attributeInfos;
  7112. Array<Variant> attributes;
  7113. bool autoClearForces;
  7114. /* readonly */
  7115. StringHash baseType;
  7116. /* readonly */
  7117. String category;
  7118. bool continuousPhysics;
  7119. bool drawAabb;
  7120. bool drawCenterOfMass;
  7121. bool drawJoint;
  7122. bool drawPair;
  7123. bool drawShape;
  7124. bool enabled;
  7125. /* readonly */
  7126. bool enabledEffective;
  7127. Vector2 gravity;
  7128. /* readonly */
  7129. uint id;
  7130. /* readonly */
  7131. Node node;
  7132. /* readonly */
  7133. uint numAttributes;
  7134. ObjectAnimation objectAnimation;
  7135. uint positionIterations;
  7136. /* readonly */
  7137. int refs;
  7138. bool subStepping;
  7139. bool temporary;
  7140. /* readonly */
  7141. StringHash type;
  7142. /* readonly */
  7143. String typeName;
  7144. uint velocityIterations;
  7145. bool warmStarting;
  7146. /* readonly */
  7147. int weakRefs;
  7148. };
  7149. class Plane
  7150. {
  7151. // Methods:
  7152. void Define(const Vector3&, const Vector3&);
  7153. void Define(const Vector3&, const Vector3&, const Vector3&);
  7154. void Define(const Vector4&);
  7155. float Distance(const Vector3&) const;
  7156. Vector3 Project(const Vector3&) const;
  7157. Vector3 Reflect(const Vector3&) const;
  7158. Vector4 ToVector4() const;
  7159. void Transform(const Matrix3&);
  7160. void Transform(const Matrix3x4&);
  7161. void Transform(const Matrix4&);
  7162. Plane Transformed(const Matrix3&) const;
  7163. Plane Transformed(const Matrix3x4&) const;
  7164. Plane Transformed(const Matrix4&) const;
  7165. // Properties:
  7166. Vector3 absNormal;
  7167. float d;
  7168. Vector3 normal;
  7169. /* readonly */
  7170. Matrix3x4 reflectionMatrix;
  7171. };
  7172. class Polyhedron
  7173. {
  7174. // Methods:
  7175. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7176. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7177. void AddFace(const Array<Vector3>);
  7178. void Clear();
  7179. void Clip(const BoundingBox&);
  7180. void Clip(const Frustum&);
  7181. void Define(const BoundingBox&);
  7182. void Define(const Frustum&);
  7183. void Transform(const Matrix3&);
  7184. void Transform(const Matrix3x4&);
  7185. Polyhedron Transformed(const Matrix3&) const;
  7186. Polyhedron Transformed(const Matrix3x4&) const;
  7187. // Properties:
  7188. /* readonly */
  7189. Array<Array<Vector3>> face;
  7190. /* readonly */
  7191. uint numFaces;
  7192. };
  7193. class PropertySet2D
  7194. {
  7195. // Methods:
  7196. bool HasProperty(const String&) const;
  7197. const String& GetProperty(const String&) const;
  7198. // Properties:
  7199. /* readonly */
  7200. int refs;
  7201. /* readonly */
  7202. int weakRefs;
  7203. };
  7204. class Quaternion
  7205. {
  7206. // Methods:
  7207. float DotProduct(const Quaternion&) const;
  7208. bool Equals(const Quaternion&) const;
  7209. void FromAngleAxis(float, const Vector3&);
  7210. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7211. void FromEulerAngles(float, float, float);
  7212. bool FromLookRotation(const Vector3&, const Vector3&);
  7213. void FromRotationTo(const Vector3&, const Vector3&);
  7214. Quaternion Inverse() const;
  7215. bool IsNaN() const;
  7216. Quaternion Nlerp(Quaternion, float, bool) const;
  7217. void Normalize();
  7218. Quaternion Normalized() const;
  7219. Quaternion Slerp(Quaternion, float) const;
  7220. String ToString() const;
  7221. // Properties:
  7222. /* readonly */
  7223. Vector3 eulerAngles;
  7224. /* readonly */
  7225. float pitch;
  7226. /* readonly */
  7227. float roll;
  7228. float w;
  7229. float x;
  7230. float y;
  7231. /* readonly */
  7232. float yaw;
  7233. float z;
  7234. };
  7235. class Ray
  7236. {
  7237. // Methods:
  7238. Vector3 ClosestPoint(const Ray&) const;
  7239. void Define(const Vector3&, const Vector3&);
  7240. float Distance(const Vector3&) const;
  7241. float HitDistance(const BoundingBox&) const;
  7242. float HitDistance(const Frustum&, bool = true) const;
  7243. float HitDistance(const Plane&) const;
  7244. float HitDistance(const Sphere&) const;
  7245. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7246. Vector3 Project(const Vector3&) const;
  7247. Ray Transformed(const Matrix3x4&) const;
  7248. // Properties:
  7249. Vector3 direction;
  7250. Vector3 origin;
  7251. };
  7252. class RayQueryResult
  7253. {
  7254. // Properties:
  7255. float distance;
  7256. /* readonly */
  7257. Drawable drawable;
  7258. /* readonly */
  7259. Node node;
  7260. Vector3 normal;
  7261. Vector3 position;
  7262. uint subObject;
  7263. };
  7264. class Rect
  7265. {
  7266. // Methods:
  7267. void Clear();
  7268. void Clip(const Rect&);
  7269. void Define(const Vector2&);
  7270. void Define(const Vector2&, const Vector2&);
  7271. bool Equals(const Rect&) const;
  7272. Intersection IsInside(const Vector2&) const;
  7273. void Merge(const Rect&);
  7274. void Merge(const Vector2&);
  7275. Vector4 ToVector4() const;
  7276. // Properties:
  7277. float bottom;
  7278. /* readonly */
  7279. Vector2 center;
  7280. bool defined;
  7281. /* readonly */
  7282. Vector2 halfSize;
  7283. float left;
  7284. Vector2 max;
  7285. Vector2 min;
  7286. float right;
  7287. /* readonly */
  7288. Vector2 size;
  7289. float top;
  7290. };
  7291. class RefCounted
  7292. {
  7293. // Properties:
  7294. /* readonly */
  7295. int refs;
  7296. /* readonly */
  7297. int weakRefs;
  7298. };
  7299. class RenderPath
  7300. {
  7301. // Methods:
  7302. void AddCommand(const RenderPathCommand&);
  7303. void AddRenderTarget(const RenderTargetInfo&);
  7304. bool Append(XMLFile);
  7305. RenderPath Clone();
  7306. void InsertCommand(uint, const RenderPathCommand&);
  7307. bool Load(XMLFile);
  7308. void RemoveCommand(uint);
  7309. void RemoveCommands(const String&);
  7310. void RemoveRenderTarget(const String&);
  7311. void RemoveRenderTarget(uint);
  7312. void RemoveRenderTargts(const String&);
  7313. void SetEnabled(const String&, bool);
  7314. void ToggleEnabled(const String&);
  7315. // Properties:
  7316. Array<RenderPathCommand> commands;
  7317. /* readonly */
  7318. uint numCommands;
  7319. /* readonly */
  7320. uint numRenderTargets;
  7321. /* readonly */
  7322. int refs;
  7323. Array<RenderTargetInfo> renderTargets;
  7324. Array<Variant> shaderParameters;
  7325. /* readonly */
  7326. int weakRefs;
  7327. };
  7328. class RenderPathCommand
  7329. {
  7330. // Methods:
  7331. void RemoveShaderParameter(const String&);
  7332. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  7333. // Properties:
  7334. Color clearColor;
  7335. float clearDepth;
  7336. uint clearFlags;
  7337. uint clearStencil;
  7338. String depthStencilName;
  7339. bool enabled;
  7340. bool markToStencil;
  7341. String metadata;
  7342. uint numOutputs;
  7343. Array<CubeMapFace> outputFaces;
  7344. Array<String> outputNames;
  7345. String pass;
  7346. String pixelShaderDefines;
  7347. String pixelShaderName;
  7348. Array<Variant> shaderParameters;
  7349. RenderCommandSortMode sortMode;
  7350. String tag;
  7351. Array<String> textureNames;
  7352. RenderCommandType type;
  7353. bool useFogColor;
  7354. bool useLitBase;
  7355. bool vertexLights;
  7356. String vertexShaderDefines;
  7357. String vertexShaderName;
  7358. };
  7359. class RenderSurface
  7360. {
  7361. // Methods:
  7362. void QueueUpdate();
  7363. // Properties:
  7364. /* readonly */
  7365. int height;
  7366. RenderSurface linkedDepthStencil;
  7367. RenderSurface linkedRenderTarget;
  7368. uint numViewports;
  7369. /* readonly */
  7370. Texture parentTexture;
  7371. RenderSurfaceUpdateMode updateMode;
  7372. /* readonly */
  7373. TextureUsage usage;
  7374. Array<Viewport> viewports;
  7375. /* readonly */
  7376. int width;
  7377. };
  7378. class RenderTargetInfo
  7379. {
  7380. // Properties:
  7381. bool cubemap;
  7382. bool enabled;
  7383. bool filtered;
  7384. uint format;
  7385. String name;
  7386. bool persistent;
  7387. bool sRGB;
  7388. Vector2 size;
  7389. RenderTargetSizeMode sizeMode;
  7390. String tag;
  7391. };
  7392. class Renderer
  7393. {
  7394. // Methods:
  7395. void DrawDebugGeometry(bool) const;
  7396. void ReloadShaders() const;
  7397. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7398. void SetDefaultRenderPath(XMLFile);
  7399. // Properties:
  7400. /* readonly */
  7401. StringHash baseType;
  7402. /* readonly */
  7403. String category;
  7404. /* readonly */
  7405. Material defaultLightRamp;
  7406. /* readonly */
  7407. Material defaultLightSpot;
  7408. /* readonly */
  7409. Material defaultMaterial;
  7410. RenderPath defaultRenderPath;
  7411. /* readonly */
  7412. Zone defaultZone;
  7413. bool drawShadows;
  7414. bool dynamicInstancing;
  7415. bool hdrRendering;
  7416. int materialQuality;
  7417. int maxOccluderTriangles;
  7418. int maxShadowMaps;
  7419. int maxSortedInstances;
  7420. int minInstances;
  7421. float mobileShadowBiasAdd;
  7422. float mobileShadowBiasMul;
  7423. /* readonly */
  7424. uint numBatches;
  7425. /* readonly */
  7426. Array<uint> numGeometries;
  7427. /* readonly */
  7428. Array<uint> numLights;
  7429. /* readonly */
  7430. Array<uint> numOccluders;
  7431. /* readonly */
  7432. uint numPrimitives;
  7433. /* readonly */
  7434. Array<uint> numShadowMaps;
  7435. uint numViewports;
  7436. /* readonly */
  7437. uint numViews;
  7438. float occluderSizeThreshold;
  7439. int occlusionBufferSize;
  7440. /* readonly */
  7441. int refs;
  7442. bool reuseShadowMaps;
  7443. int shadowMapSize;
  7444. int shadowQuality;
  7445. bool specularLighting;
  7446. int textureAnisotropy;
  7447. TextureFilterMode textureFilterMode;
  7448. int textureQuality;
  7449. /* readonly */
  7450. StringHash type;
  7451. /* readonly */
  7452. String typeName;
  7453. Array<Viewport> viewports;
  7454. /* readonly */
  7455. int weakRefs;
  7456. };
  7457. class Resource
  7458. {
  7459. // Methods:
  7460. bool Load(File);
  7461. bool Load(VectorBuffer&);
  7462. bool Save(File) const;
  7463. bool Save(VectorBuffer&) const;
  7464. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7465. // Properties:
  7466. /* readonly */
  7467. StringHash baseType;
  7468. /* readonly */
  7469. String category;
  7470. /* readonly */
  7471. uint memoryUse;
  7472. String name;
  7473. /* readonly */
  7474. int refs;
  7475. /* readonly */
  7476. StringHash type;
  7477. /* readonly */
  7478. String typeName;
  7479. /* readonly */
  7480. uint useTimer;
  7481. /* readonly */
  7482. int weakRefs;
  7483. };
  7484. class ResourceCache
  7485. {
  7486. // Methods:
  7487. bool AddManualResource(Resource);
  7488. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  7489. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  7490. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  7491. bool BackgroundLoadResource(const String&, const String&, bool = true);
  7492. bool Exists(const String&) const;
  7493. Resource GetExistingResource(StringHash, const String&);
  7494. Resource GetExistingResource(const String&, const String&);
  7495. File GetFile(const String&);
  7496. String GetPreferredResourceDir(const String&) const;
  7497. Resource GetResource(StringHash, const String&, bool = true);
  7498. Resource GetResource(const String&, const String&, bool = true);
  7499. String GetResourceFileName(const String&) const;
  7500. void ReleaseAllResources(bool = false);
  7501. void ReleaseResource(const String&, const String&, bool = false);
  7502. void ReleaseResources(StringHash, bool = false);
  7503. void ReleaseResources(const String&, bool = false);
  7504. void ReleaseResources(const String&, const String&, bool = false);
  7505. bool ReloadResource(Resource);
  7506. void ReloadResourceWithDependencies(const String&);
  7507. void RemovePackageFile(PackageFile, bool = true, bool = false);
  7508. void RemovePackageFile(const String&, bool = true, bool = false);
  7509. void RemoveResourceDir(const String&);
  7510. String SanitateResourceDirName(const String&) const;
  7511. String SanitateResourceName(const String&) const;
  7512. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7513. // Properties:
  7514. bool autoReloadResources;
  7515. /* readonly */
  7516. StringHash baseType;
  7517. /* readonly */
  7518. String category;
  7519. int finishBackgroundResourcesMs;
  7520. Array<uint> memoryBudget;
  7521. /* readonly */
  7522. Array<uint> memoryUse;
  7523. /* readonly */
  7524. uint numBackgroundLoadResources;
  7525. /* readonly */
  7526. Array<PackageFile> packageFiles;
  7527. /* readonly */
  7528. int refs;
  7529. /* readonly */
  7530. Array<String> resourceDirs;
  7531. bool returnFailedResources;
  7532. /* readonly */
  7533. bool seachPackagesFirst;
  7534. /* writeonly */
  7535. bool searchPackagesFirst;
  7536. /* readonly */
  7537. uint totalMemoryUse;
  7538. /* readonly */
  7539. StringHash type;
  7540. /* readonly */
  7541. String typeName;
  7542. /* readonly */
  7543. int weakRefs;
  7544. };
  7545. class ResourceRef
  7546. {
  7547. // Properties:
  7548. String name;
  7549. StringHash type;
  7550. };
  7551. class ResourceRefList
  7552. {
  7553. // Methods:
  7554. void Resize(uint);
  7555. // Properties:
  7556. /* readonly */
  7557. bool empty;
  7558. /* readonly */
  7559. uint length;
  7560. Array<String> names;
  7561. StringHash type;
  7562. };
  7563. class RigidBody
  7564. {
  7565. // Methods:
  7566. void Activate();
  7567. void ApplyAttributes();
  7568. void ApplyForce(const Vector3&);
  7569. void ApplyForce(const Vector3&, const Vector3&);
  7570. void ApplyImpulse(const Vector3&);
  7571. void ApplyImpulse(const Vector3&, const Vector3&);
  7572. void ApplyTorque(const Vector3&);
  7573. void ApplyTorqueImpulse(const Vector3&);
  7574. void DisableMassUpdate();
  7575. void DrawDebugGeometry(DebugRenderer, bool);
  7576. void EnableMassUpdate();
  7577. Variant GetAttribute(const String&) const;
  7578. ValueAnimation GetAttributeAnimation(const String&) const;
  7579. float GetAttributeAnimationSpeed(const String&) const;
  7580. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7581. Variant GetAttributeDefault(const String&) const;
  7582. bool GetInterceptNetworkUpdate(const String&) const;
  7583. Vector3 GetVelocityAtPoint(const Vector3&) const;
  7584. bool Load(File, bool = false);
  7585. bool Load(VectorBuffer&, bool = false);
  7586. bool LoadXML(const XMLElement&, bool = false);
  7587. void MarkNetworkUpdate() const;
  7588. void ReAddBodyToWorld();
  7589. void Remove();
  7590. void RemoveInstanceDefault();
  7591. void ResetForces();
  7592. void ResetToDefault();
  7593. bool Save(File) const;
  7594. bool Save(VectorBuffer&) const;
  7595. bool SaveXML(XMLElement&) const;
  7596. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7597. bool SetAttribute(const String&, const Variant&);
  7598. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7599. void SetAttributeAnimationSpeed(const String&, float);
  7600. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7601. void SetCollisionLayerAndMask(uint, uint);
  7602. void SetInterceptNetworkUpdate(const String&, bool);
  7603. void SetTransform(const Vector3&, const Quaternion&);
  7604. // Properties:
  7605. /* readonly */
  7606. bool active;
  7607. float angularDamping;
  7608. Vector3 angularFactor;
  7609. float angularRestThreshold;
  7610. Vector3 angularVelocity;
  7611. bool animationEnabled;
  7612. Vector3 anisotropicFriction;
  7613. /* readonly */
  7614. Array<Variant> attributeDefaults;
  7615. /* readonly */
  7616. Array<AttributeInfo> attributeInfos;
  7617. Array<Variant> attributes;
  7618. /* readonly */
  7619. StringHash baseType;
  7620. /* readonly */
  7621. String category;
  7622. float ccdMotionThreshold;
  7623. float ccdRadius;
  7624. /* readonly */
  7625. Vector3 centerOfMass;
  7626. /* readonly */
  7627. Array<RigidBody> collidingBodies;
  7628. CollisionEventMode collisionEventMode;
  7629. uint collisionLayer;
  7630. uint collisionMask;
  7631. float contactProcessingThreshold;
  7632. bool enabled;
  7633. /* readonly */
  7634. bool enabledEffective;
  7635. float friction;
  7636. Vector3 gravityOverride;
  7637. /* readonly */
  7638. uint id;
  7639. bool kinematic;
  7640. float linearDamping;
  7641. Vector3 linearFactor;
  7642. float linearRestThreshold;
  7643. Vector3 linearVelocity;
  7644. float mass;
  7645. /* readonly */
  7646. Node node;
  7647. /* readonly */
  7648. uint numAttributes;
  7649. ObjectAnimation objectAnimation;
  7650. Vector3 position;
  7651. /* readonly */
  7652. int refs;
  7653. float restitution;
  7654. float rollingFriction;
  7655. Quaternion rotation;
  7656. bool temporary;
  7657. bool trigger;
  7658. /* readonly */
  7659. StringHash type;
  7660. /* readonly */
  7661. String typeName;
  7662. bool useGravity;
  7663. /* readonly */
  7664. int weakRefs;
  7665. };
  7666. class RigidBody2D
  7667. {
  7668. // Methods:
  7669. void ApplyAngularImpulse(float, bool);
  7670. void ApplyAttributes();
  7671. void ApplyForce(const Vector2&, const Vector2&, bool);
  7672. void ApplyForceToCenter(const Vector2&, bool);
  7673. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  7674. void ApplyTorque(float, bool);
  7675. void DrawDebugGeometry(DebugRenderer, bool);
  7676. Variant GetAttribute(const String&) const;
  7677. ValueAnimation GetAttributeAnimation(const String&) const;
  7678. float GetAttributeAnimationSpeed(const String&) const;
  7679. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7680. Variant GetAttributeDefault(const String&) const;
  7681. bool GetInterceptNetworkUpdate(const String&) const;
  7682. bool Load(File, bool = false);
  7683. bool Load(VectorBuffer&, bool = false);
  7684. bool LoadXML(const XMLElement&, bool = false);
  7685. void MarkNetworkUpdate() const;
  7686. void Remove();
  7687. void RemoveInstanceDefault();
  7688. void ResetToDefault();
  7689. bool Save(File) const;
  7690. bool Save(VectorBuffer&) const;
  7691. bool SaveXML(XMLElement&) const;
  7692. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7693. bool SetAttribute(const String&, const Variant&);
  7694. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7695. void SetAttributeAnimationSpeed(const String&, float);
  7696. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7697. void SetInterceptNetworkUpdate(const String&, bool);
  7698. // Properties:
  7699. bool allowSleep;
  7700. float angularDamping;
  7701. bool animationEnabled;
  7702. /* readonly */
  7703. Array<Variant> attributeDefaults;
  7704. /* readonly */
  7705. Array<AttributeInfo> attributeInfos;
  7706. Array<Variant> attributes;
  7707. bool awake;
  7708. /* readonly */
  7709. StringHash baseType;
  7710. BodyType2D bodyType;
  7711. bool bullet;
  7712. /* readonly */
  7713. String category;
  7714. bool enabled;
  7715. /* readonly */
  7716. bool enabledEffective;
  7717. bool fixedRotation;
  7718. float gravityScale;
  7719. /* readonly */
  7720. uint id;
  7721. float inertia;
  7722. float linearDamping;
  7723. Vector2 linearVelocity;
  7724. float mass;
  7725. Vector2 massCenter;
  7726. /* readonly */
  7727. Node node;
  7728. /* readonly */
  7729. uint numAttributes;
  7730. ObjectAnimation objectAnimation;
  7731. /* readonly */
  7732. int refs;
  7733. bool temporary;
  7734. /* readonly */
  7735. StringHash type;
  7736. /* readonly */
  7737. String typeName;
  7738. bool useFixtureMass;
  7739. /* readonly */
  7740. int weakRefs;
  7741. };
  7742. class Scene
  7743. {
  7744. // Methods:
  7745. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7746. void AddRequiredPackageFile(PackageFile);
  7747. void ApplyAttributes();
  7748. void Clear(bool = true, bool = true);
  7749. void ClearRequiredPackageFiles();
  7750. Component CloneComponent(Component, CreateMode, uint = 0);
  7751. Component CloneComponent(Component, uint = 0);
  7752. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7753. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7754. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7755. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7756. Variant GetAttribute(const String&) const;
  7757. ValueAnimation GetAttributeAnimation(const String&) const;
  7758. float GetAttributeAnimationSpeed(const String&) const;
  7759. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7760. Variant GetAttributeDefault(const String&) const;
  7761. Node GetChild(const String&, bool = false) const;
  7762. Array<Node> GetChildren(bool = false) const;
  7763. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7764. Array<Node> GetChildrenWithScript(bool = false) const;
  7765. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7766. Component GetComponent(const String&) const;
  7767. Component GetComponent(uint);
  7768. Array<Component> GetComponents() const;
  7769. Array<Component> GetComponents(const String&, bool = false) const;
  7770. bool GetInterceptNetworkUpdate(const String&) const;
  7771. Node GetNode(uint);
  7772. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7773. ScriptObject GetScriptObject() const;
  7774. ScriptObject GetScriptObject(const String&) const;
  7775. bool HasComponent(const String&) const;
  7776. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7777. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7778. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7779. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7780. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7781. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7782. bool Load(File, bool = false);
  7783. bool Load(VectorBuffer&, bool = false);
  7784. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  7785. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  7786. bool LoadXML(File);
  7787. bool LoadXML(VectorBuffer&);
  7788. bool LoadXML(const XMLElement&, bool = false);
  7789. Vector3 LocalToWorld(const Vector3&) const;
  7790. Vector3 LocalToWorld(const Vector4&) const;
  7791. Vector2 LocalToWorld2D(const Vector2&) const;
  7792. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7793. void MarkNetworkUpdate() const;
  7794. void Pitch(float, TransformSpace = TS_LOCAL);
  7795. void RegisterVar(const String&);
  7796. void Remove();
  7797. void RemoveAllChildren();
  7798. void RemoveAllComponents();
  7799. void RemoveChild(Node);
  7800. void RemoveChildren(bool, bool, bool);
  7801. void RemoveComponent(Component);
  7802. void RemoveComponent(const String&);
  7803. void RemoveComponents(bool, bool);
  7804. void RemoveInstanceDefault();
  7805. void ResetToDefault();
  7806. void Roll(float, TransformSpace = TS_LOCAL);
  7807. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7808. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7809. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7810. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7811. bool Save(File) const;
  7812. bool Save(VectorBuffer&) const;
  7813. bool SaveXML(File, const String& = "\t");
  7814. bool SaveXML(VectorBuffer&, const String& = "\t");
  7815. bool SaveXML(XMLElement&) const;
  7816. void Scale(const Vector3&);
  7817. void Scale(float);
  7818. void Scale2D(const Vector2&);
  7819. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7820. bool SetAttribute(const String&, const Variant&);
  7821. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7822. void SetAttributeAnimationSpeed(const String&, float);
  7823. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7824. void SetInterceptNetworkUpdate(const String&, bool);
  7825. void SetPosition2D(float, float);
  7826. void SetScale(float);
  7827. void SetScale2D(float, float);
  7828. void SetTransform(const Vector3&, const Quaternion&);
  7829. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7830. void SetTransform(const Vector3&, const Quaternion&, float);
  7831. void SetTransform2D(const Vector2&, float);
  7832. void SetTransform2D(const Vector2&, float, const Vector2&);
  7833. void SetTransform2D(const Vector2&, float, float);
  7834. void SetWorldTransform(const Vector3&, const Quaternion&);
  7835. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7836. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7837. void SetWorldTransform2D(const Vector2&, float);
  7838. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7839. void SetWorldTransform2D(const Vector2&, float, float);
  7840. void StopAsyncLoading();
  7841. const String& GetVarName(StringHash) const;
  7842. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7843. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7844. void UnregisterAllVars(const String&);
  7845. void UnregisterVar(const String&);
  7846. void Update(float);
  7847. Vector3 WorldToLocal(const Vector3&) const;
  7848. Vector3 WorldToLocal(const Vector4&) const;
  7849. Vector2 WorldToLocal2D(const Vector2&) const;
  7850. void Yaw(float, TransformSpace = TS_LOCAL);
  7851. // Properties:
  7852. bool animationEnabled;
  7853. /* readonly */
  7854. LoadMode asyncLoadMode;
  7855. /* readonly */
  7856. bool asyncLoading;
  7857. int asyncLoadingMs;
  7858. /* readonly */
  7859. float asyncProgress;
  7860. /* readonly */
  7861. Array<Variant> attributeDefaults;
  7862. /* readonly */
  7863. Array<AttributeInfo> attributeInfos;
  7864. Array<Variant> attributes;
  7865. /* readonly */
  7866. StringHash baseType;
  7867. /* readonly */
  7868. String category;
  7869. /* readonly */
  7870. uint checksum;
  7871. /* readonly */
  7872. Array<Node> children;
  7873. /* readonly */
  7874. Array<Component> components;
  7875. /* readonly */
  7876. DebugRenderer debugRenderer;
  7877. Vector3 direction;
  7878. float elapsedTime;
  7879. /* readonly */
  7880. String fileName;
  7881. /* readonly */
  7882. uint id;
  7883. String name;
  7884. /* readonly */
  7885. uint numAllChildren;
  7886. /* readonly */
  7887. uint numAttributes;
  7888. /* readonly */
  7889. uint numChildren;
  7890. /* readonly */
  7891. uint numComponents;
  7892. ObjectAnimation objectAnimation;
  7893. /* readonly */
  7894. Octree octree;
  7895. Node parent;
  7896. /* readonly */
  7897. PhysicsWorld physicsWorld;
  7898. /* readonly */
  7899. PhysicsWorld2D physicsWorld2D;
  7900. Vector3 position;
  7901. Vector2 position2D;
  7902. /* readonly */
  7903. int refs;
  7904. /* readonly */
  7905. Array<PackageFile> requiredPackageFiles;
  7906. /* readonly */
  7907. Vector3 right;
  7908. Quaternion rotation;
  7909. float rotation2D;
  7910. Vector3 scale;
  7911. Vector2 scale2D;
  7912. /* readonly */
  7913. ScriptObject scriptObject;
  7914. float smoothingConstant;
  7915. float snapThreshold;
  7916. bool temporary;
  7917. float timeScale;
  7918. /* readonly */
  7919. Matrix3x4 transform;
  7920. /* readonly */
  7921. StringHash type;
  7922. /* readonly */
  7923. String typeName;
  7924. /* readonly */
  7925. Vector3 up;
  7926. bool updateEnabled;
  7927. /* readonly */
  7928. VariantMap vars;
  7929. /* readonly */
  7930. int weakRefs;
  7931. Vector3 worldDirection;
  7932. Vector3 worldPosition;
  7933. Vector2 worldPosition2D;
  7934. /* readonly */
  7935. Vector3 worldRight;
  7936. Quaternion worldRotation;
  7937. float worldRotation2D;
  7938. Vector3 worldScale;
  7939. Vector2 worldScale2D;
  7940. /* readonly */
  7941. Matrix3x4 worldTransform;
  7942. /* readonly */
  7943. Vector3 worldUp;
  7944. };
  7945. class Script
  7946. {
  7947. // Methods:
  7948. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  7949. bool Execute(const String&);
  7950. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7951. // Properties:
  7952. /* readonly */
  7953. StringHash baseType;
  7954. /* readonly */
  7955. String category;
  7956. Scene defaultScene;
  7957. ScriptFile defaultScriptFile;
  7958. bool executeConsoleCommands;
  7959. /* readonly */
  7960. int refs;
  7961. /* readonly */
  7962. StringHash type;
  7963. /* readonly */
  7964. String typeName;
  7965. /* readonly */
  7966. int weakRefs;
  7967. };
  7968. class ScriptFile
  7969. {
  7970. // Methods:
  7971. void ClearDelayedExecute(const String& = String ( ));
  7972. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  7973. bool Execute(const String&, const Array<Variant> = null);
  7974. bool Load(File);
  7975. bool Load(VectorBuffer&);
  7976. bool Save(File) const;
  7977. bool Save(VectorBuffer&) const;
  7978. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7979. // Properties:
  7980. /* readonly */
  7981. StringHash baseType;
  7982. /* readonly */
  7983. String category;
  7984. /* readonly */
  7985. bool compiled;
  7986. /* readonly */
  7987. uint memoryUse;
  7988. String name;
  7989. /* readonly */
  7990. int refs;
  7991. /* readonly */
  7992. StringHash type;
  7993. /* readonly */
  7994. String typeName;
  7995. /* readonly */
  7996. uint useTimer;
  7997. /* readonly */
  7998. int weakRefs;
  7999. };
  8000. class ScriptInstance
  8001. {
  8002. // Methods:
  8003. void ApplyAttributes();
  8004. void ClearDelayedExecute(const String& = String ( ));
  8005. bool CreateObject(ScriptFile, const String&);
  8006. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8007. void DrawDebugGeometry(DebugRenderer, bool);
  8008. bool Execute(const String&, const Array<Variant> = null);
  8009. Variant GetAttribute(const String&) const;
  8010. ValueAnimation GetAttributeAnimation(const String&) const;
  8011. float GetAttributeAnimationSpeed(const String&) const;
  8012. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8013. Variant GetAttributeDefault(const String&) const;
  8014. bool GetInterceptNetworkUpdate(const String&) const;
  8015. bool Load(File, bool = false);
  8016. bool Load(VectorBuffer&, bool = false);
  8017. bool LoadXML(const XMLElement&, bool = false);
  8018. void MarkNetworkUpdate() const;
  8019. void Remove();
  8020. void RemoveInstanceDefault();
  8021. void ResetToDefault();
  8022. bool Save(File) const;
  8023. bool Save(VectorBuffer&) const;
  8024. bool SaveXML(XMLElement&) const;
  8025. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8026. bool SetAttribute(const String&, const Variant&);
  8027. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8028. void SetAttributeAnimationSpeed(const String&, float);
  8029. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8030. void SetInterceptNetworkUpdate(const String&, bool);
  8031. // Properties:
  8032. bool animationEnabled;
  8033. /* readonly */
  8034. Array<Variant> attributeDefaults;
  8035. /* readonly */
  8036. Array<AttributeInfo> attributeInfos;
  8037. Array<Variant> attributes;
  8038. /* readonly */
  8039. StringHash baseType;
  8040. /* readonly */
  8041. String category;
  8042. String className;
  8043. bool enabled;
  8044. /* readonly */
  8045. bool enabledEffective;
  8046. /* readonly */
  8047. uint id;
  8048. /* readonly */
  8049. Node node;
  8050. /* readonly */
  8051. uint numAttributes;
  8052. ObjectAnimation objectAnimation;
  8053. /* readonly */
  8054. int refs;
  8055. ScriptFile scriptFile;
  8056. /* readonly */
  8057. ScriptObject scriptObject;
  8058. bool temporary;
  8059. /* readonly */
  8060. StringHash type;
  8061. /* readonly */
  8062. String typeName;
  8063. /* readonly */
  8064. int weakRefs;
  8065. };
  8066. class ScriptObject
  8067. {
  8068. };
  8069. class ScrollBar
  8070. {
  8071. // Methods:
  8072. void AddChild(UIElement);
  8073. void ApplyAttributes();
  8074. void BringToFront();
  8075. void ChangeValue(float);
  8076. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8077. void DisableLayoutUpdate();
  8078. IntVector2 ElementToScreen(const IntVector2&);
  8079. void EnableLayoutUpdate();
  8080. uint FindChild(UIElement) const;
  8081. Variant GetAttribute(const String&) const;
  8082. ValueAnimation GetAttributeAnimation(const String&) const;
  8083. float GetAttributeAnimationSpeed(const String&) const;
  8084. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8085. Variant GetAttributeDefault(const String&) const;
  8086. UIElement GetChild(const String&, bool = false) const;
  8087. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8088. Array<UIElement> GetChildren(bool = false) const;
  8089. UIElement GetElementEventSender() const;
  8090. bool GetInterceptNetworkUpdate(const String&) const;
  8091. uint GetNumChildren(bool) const;
  8092. void InsertChild(uint, UIElement);
  8093. bool IsInside(IntVector2, bool);
  8094. bool IsInsideCombined(IntVector2, bool);
  8095. bool Load(File, bool = false);
  8096. bool Load(VectorBuffer&, bool = false);
  8097. bool LoadChildXML(XMLFile, XMLFile = null);
  8098. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8099. bool LoadXML(File);
  8100. bool LoadXML(VectorBuffer&);
  8101. bool LoadXML(XMLFile, XMLFile);
  8102. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8103. bool LoadXML(const XMLElement&, bool = false);
  8104. void MarkNetworkUpdate() const;
  8105. void Remove();
  8106. void RemoveAllChildren();
  8107. void RemoveChild(UIElement, uint = 0);
  8108. void RemoveChild(uint);
  8109. void RemoveInstanceDefault();
  8110. void ResetDeepEnabled();
  8111. void ResetToDefault();
  8112. bool Save(File) const;
  8113. bool Save(VectorBuffer&) const;
  8114. bool SaveXML(File, const String& = "\t");
  8115. bool SaveXML(VectorBuffer&, const String& = "\t");
  8116. bool SaveXML(XMLElement&) const;
  8117. IntVector2 ScreenToElement(const IntVector2&);
  8118. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8119. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8120. bool SetAttribute(const String&, const Variant&);
  8121. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8122. void SetAttributeAnimationSpeed(const String&, float);
  8123. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8124. void SetDeepEnabled(bool);
  8125. void SetEnabledRecursive(bool);
  8126. void SetFixedHeight(int);
  8127. void SetFixedSize(int, int);
  8128. void SetFixedWidth(int);
  8129. void SetInterceptNetworkUpdate(const String&, bool);
  8130. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8131. void SetMaxSize(int, int);
  8132. void SetMinSize(int, int);
  8133. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8134. void SetPosition(int, int);
  8135. void SetSize(int, int);
  8136. bool SetStyle(const String&, XMLFile = null);
  8137. bool SetStyle(const XMLElement&);
  8138. bool SetStyleAuto(XMLFile = null);
  8139. void StepBack();
  8140. void StepForward();
  8141. void UpdateLayout();
  8142. const Variant& GetVar(const StringHash&);
  8143. // Properties:
  8144. bool animationEnabled;
  8145. /* readonly */
  8146. Array<Variant> attributeDefaults;
  8147. /* readonly */
  8148. Array<AttributeInfo> attributeInfos;
  8149. Array<Variant> attributes;
  8150. /* readonly */
  8151. Button backButton;
  8152. /* readonly */
  8153. StringHash baseType;
  8154. bool bringToBack;
  8155. bool bringToFront;
  8156. /* readonly */
  8157. String category;
  8158. /* readonly */
  8159. IntVector2 childOffset;
  8160. /* readonly */
  8161. Array<UIElement> children;
  8162. IntRect clipBorder;
  8163. bool clipChildren;
  8164. /* writeonly */
  8165. Color color;
  8166. /* readonly */
  8167. bool colorGradient;
  8168. Array<Color> colors;
  8169. /* readonly */
  8170. IntRect combinedScreenRect;
  8171. XMLFile defaultStyle;
  8172. /* readonly */
  8173. float derivedOpacity;
  8174. /* readonly */
  8175. uint dragButtonCombo;
  8176. /* readonly */
  8177. int dragButtonCount;
  8178. uint dragDropMode;
  8179. bool editable;
  8180. /* readonly */
  8181. float effectiveScrollStep;
  8182. bool elementEventSender;
  8183. bool enabled;
  8184. /* readonly */
  8185. bool enabledSelf;
  8186. /* readonly */
  8187. bool fixedHeight;
  8188. /* readonly */
  8189. bool fixedSize;
  8190. /* readonly */
  8191. bool fixedWidth;
  8192. bool focus;
  8193. FocusMode focusMode;
  8194. /* readonly */
  8195. Button forwardButton;
  8196. int height;
  8197. HorizontalAlignment horizontalAlignment;
  8198. /* readonly */
  8199. bool hovering;
  8200. int indent;
  8201. int indentSpacing;
  8202. /* readonly */
  8203. int indentWidth;
  8204. bool internal;
  8205. IntRect layoutBorder;
  8206. Vector2 layoutFlexScale;
  8207. LayoutMode layoutMode;
  8208. int layoutSpacing;
  8209. int maxHeight;
  8210. IntVector2 maxSize;
  8211. int maxWidth;
  8212. int minHeight;
  8213. IntVector2 minSize;
  8214. int minWidth;
  8215. String name;
  8216. /* readonly */
  8217. uint numAllChildren;
  8218. /* readonly */
  8219. uint numAttributes;
  8220. /* readonly */
  8221. uint numChildren;
  8222. ObjectAnimation objectAnimation;
  8223. float opacity;
  8224. Orientation orientation;
  8225. UIElement parent;
  8226. IntVector2 position;
  8227. int priority;
  8228. float range;
  8229. /* readonly */
  8230. int refs;
  8231. /* readonly */
  8232. UIElement root;
  8233. /* readonly */
  8234. IntVector2 screenPosition;
  8235. float scrollStep;
  8236. bool selected;
  8237. IntVector2 size;
  8238. /* readonly */
  8239. Slider slider;
  8240. bool sortChildren;
  8241. float stepFactor;
  8242. String style;
  8243. bool temporary;
  8244. TraversalMode traversalMode;
  8245. /* readonly */
  8246. StringHash type;
  8247. /* readonly */
  8248. String typeName;
  8249. bool useDerivedOpacity;
  8250. float value;
  8251. /* readonly */
  8252. VariantMap vars;
  8253. VerticalAlignment verticalAlignment;
  8254. bool visible;
  8255. /* readonly */
  8256. int weakRefs;
  8257. int width;
  8258. };
  8259. class ScrollView
  8260. {
  8261. // Methods:
  8262. void AddChild(UIElement);
  8263. void ApplyAttributes();
  8264. void BringToFront();
  8265. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8266. void DisableLayoutUpdate();
  8267. IntVector2 ElementToScreen(const IntVector2&);
  8268. void EnableLayoutUpdate();
  8269. uint FindChild(UIElement) const;
  8270. Variant GetAttribute(const String&) const;
  8271. ValueAnimation GetAttributeAnimation(const String&) const;
  8272. float GetAttributeAnimationSpeed(const String&) const;
  8273. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8274. Variant GetAttributeDefault(const String&) const;
  8275. UIElement GetChild(const String&, bool = false) const;
  8276. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8277. Array<UIElement> GetChildren(bool = false) const;
  8278. UIElement GetElementEventSender() const;
  8279. bool GetInterceptNetworkUpdate(const String&) const;
  8280. uint GetNumChildren(bool) const;
  8281. void InsertChild(uint, UIElement);
  8282. bool IsInside(IntVector2, bool);
  8283. bool IsInsideCombined(IntVector2, bool);
  8284. bool Load(File, bool = false);
  8285. bool Load(VectorBuffer&, bool = false);
  8286. bool LoadChildXML(XMLFile, XMLFile = null);
  8287. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8288. bool LoadXML(File);
  8289. bool LoadXML(VectorBuffer&);
  8290. bool LoadXML(XMLFile, XMLFile);
  8291. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8292. bool LoadXML(const XMLElement&, bool = false);
  8293. void MarkNetworkUpdate() const;
  8294. void Remove();
  8295. void RemoveAllChildren();
  8296. void RemoveChild(UIElement, uint = 0);
  8297. void RemoveChild(uint);
  8298. void RemoveInstanceDefault();
  8299. void ResetDeepEnabled();
  8300. void ResetToDefault();
  8301. bool Save(File) const;
  8302. bool Save(VectorBuffer&) const;
  8303. bool SaveXML(File, const String& = "\t");
  8304. bool SaveXML(VectorBuffer&, const String& = "\t");
  8305. bool SaveXML(XMLElement&) const;
  8306. IntVector2 ScreenToElement(const IntVector2&);
  8307. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8308. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8309. bool SetAttribute(const String&, const Variant&);
  8310. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8311. void SetAttributeAnimationSpeed(const String&, float);
  8312. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8313. void SetDeepEnabled(bool);
  8314. void SetEnabledRecursive(bool);
  8315. void SetFixedHeight(int);
  8316. void SetFixedSize(int, int);
  8317. void SetFixedWidth(int);
  8318. void SetInterceptNetworkUpdate(const String&, bool);
  8319. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8320. void SetMaxSize(int, int);
  8321. void SetMinSize(int, int);
  8322. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8323. void SetPosition(int, int);
  8324. void SetScrollBarsVisible(bool, bool);
  8325. void SetSize(int, int);
  8326. bool SetStyle(const String&, XMLFile = null);
  8327. bool SetStyle(const XMLElement&);
  8328. bool SetStyleAuto(XMLFile = null);
  8329. void SetViewPosition(int, int);
  8330. void UpdateLayout();
  8331. const Variant& GetVar(const StringHash&);
  8332. // Properties:
  8333. bool animationEnabled;
  8334. /* readonly */
  8335. Array<Variant> attributeDefaults;
  8336. /* readonly */
  8337. Array<AttributeInfo> attributeInfos;
  8338. Array<Variant> attributes;
  8339. bool autoDisableChildren;
  8340. float autoDisableThreshold;
  8341. /* readonly */
  8342. StringHash baseType;
  8343. bool bringToBack;
  8344. bool bringToFront;
  8345. /* readonly */
  8346. String category;
  8347. /* readonly */
  8348. IntVector2 childOffset;
  8349. /* readonly */
  8350. Array<UIElement> children;
  8351. IntRect clipBorder;
  8352. bool clipChildren;
  8353. /* writeonly */
  8354. Color color;
  8355. /* readonly */
  8356. bool colorGradient;
  8357. Array<Color> colors;
  8358. /* readonly */
  8359. IntRect combinedScreenRect;
  8360. UIElement contentElement;
  8361. XMLFile defaultStyle;
  8362. /* readonly */
  8363. float derivedOpacity;
  8364. /* readonly */
  8365. uint dragButtonCombo;
  8366. /* readonly */
  8367. int dragButtonCount;
  8368. uint dragDropMode;
  8369. bool editable;
  8370. bool elementEventSender;
  8371. bool enabled;
  8372. /* readonly */
  8373. bool enabledSelf;
  8374. /* readonly */
  8375. bool fixedHeight;
  8376. /* readonly */
  8377. bool fixedSize;
  8378. /* readonly */
  8379. bool fixedWidth;
  8380. bool focus;
  8381. FocusMode focusMode;
  8382. int height;
  8383. HorizontalAlignment horizontalAlignment;
  8384. /* readonly */
  8385. ScrollBar horizontalScrollBar;
  8386. /* readonly */
  8387. bool hovering;
  8388. int indent;
  8389. int indentSpacing;
  8390. /* readonly */
  8391. int indentWidth;
  8392. bool internal;
  8393. IntRect layoutBorder;
  8394. Vector2 layoutFlexScale;
  8395. LayoutMode layoutMode;
  8396. int layoutSpacing;
  8397. int maxHeight;
  8398. IntVector2 maxSize;
  8399. int maxWidth;
  8400. int minHeight;
  8401. IntVector2 minSize;
  8402. int minWidth;
  8403. String name;
  8404. /* readonly */
  8405. uint numAllChildren;
  8406. /* readonly */
  8407. uint numAttributes;
  8408. /* readonly */
  8409. uint numChildren;
  8410. ObjectAnimation objectAnimation;
  8411. float opacity;
  8412. float pageStep;
  8413. UIElement parent;
  8414. IntVector2 position;
  8415. int priority;
  8416. /* readonly */
  8417. int refs;
  8418. /* readonly */
  8419. UIElement root;
  8420. /* readonly */
  8421. IntVector2 screenPosition;
  8422. bool scrollBarsAutoVisible;
  8423. float scrollDeceleration;
  8424. /* readonly */
  8425. BorderImage scrollPanel;
  8426. float scrollSnapEpsilon;
  8427. float scrollStep;
  8428. bool selected;
  8429. IntVector2 size;
  8430. bool sortChildren;
  8431. String style;
  8432. bool temporary;
  8433. TraversalMode traversalMode;
  8434. /* readonly */
  8435. StringHash type;
  8436. /* readonly */
  8437. String typeName;
  8438. bool useDerivedOpacity;
  8439. /* readonly */
  8440. VariantMap vars;
  8441. VerticalAlignment verticalAlignment;
  8442. /* readonly */
  8443. ScrollBar verticalScrollBar;
  8444. IntVector2 viewPosition;
  8445. bool visible;
  8446. /* readonly */
  8447. int weakRefs;
  8448. int width;
  8449. };
  8450. class Serializable
  8451. {
  8452. // Methods:
  8453. void ApplyAttributes();
  8454. Variant GetAttribute(const String&) const;
  8455. Variant GetAttributeDefault(const String&) const;
  8456. bool GetInterceptNetworkUpdate(const String&) const;
  8457. bool Load(File, bool = false);
  8458. bool Load(VectorBuffer&, bool = false);
  8459. bool LoadXML(const XMLElement&, bool = false);
  8460. void MarkNetworkUpdate() const;
  8461. void RemoveInstanceDefault();
  8462. void ResetToDefault();
  8463. bool Save(File) const;
  8464. bool Save(VectorBuffer&) const;
  8465. bool SaveXML(XMLElement&) const;
  8466. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8467. bool SetAttribute(const String&, const Variant&);
  8468. void SetInterceptNetworkUpdate(const String&, bool);
  8469. // Properties:
  8470. /* readonly */
  8471. Array<Variant> attributeDefaults;
  8472. /* readonly */
  8473. Array<AttributeInfo> attributeInfos;
  8474. Array<Variant> attributes;
  8475. /* readonly */
  8476. StringHash baseType;
  8477. /* readonly */
  8478. String category;
  8479. /* readonly */
  8480. uint numAttributes;
  8481. /* readonly */
  8482. int refs;
  8483. bool temporary;
  8484. /* readonly */
  8485. StringHash type;
  8486. /* readonly */
  8487. String typeName;
  8488. /* readonly */
  8489. int weakRefs;
  8490. };
  8491. class Serializer
  8492. {
  8493. // Methods:
  8494. uint Write(Array<uint8>);
  8495. bool WriteBool(bool);
  8496. bool WriteBoundingBox(const BoundingBox&);
  8497. bool WriteByte(int8);
  8498. bool WriteColor(const Color&);
  8499. bool WriteFileID(const String&);
  8500. bool WriteFloat(float);
  8501. bool WriteInt(int);
  8502. bool WriteIntRect(const IntRect&);
  8503. bool WriteIntVector2(const IntVector2&);
  8504. bool WriteLine(const String&);
  8505. bool WriteMatrix3(const Matrix3&);
  8506. bool WriteMatrix3x4(const Matrix3x4&);
  8507. bool WriteMatrix4(const Matrix4&);
  8508. bool WriteNetID(uint);
  8509. bool WritePackedQuaternion(const Quaternion&);
  8510. bool WritePackedVector3(const Vector3&, float);
  8511. bool WriteQuaternion(const Quaternion&);
  8512. bool WriteShort(int16);
  8513. bool WriteString(const String&);
  8514. bool WriteStringHash(const StringHash&);
  8515. bool WriteUByte(uint8);
  8516. bool WriteUInt(uint);
  8517. bool WriteUShort(uint16);
  8518. bool WriteVLE(uint);
  8519. bool WriteVariant(const Variant&);
  8520. bool WriteVariantMap(const VariantMap&);
  8521. bool WriteVector2(const Vector2&);
  8522. bool WriteVector3(const Vector3&);
  8523. bool WriteVector4(const Vector4&);
  8524. bool WriteVectorBuffer(const VectorBuffer&);
  8525. };
  8526. class Skeleton
  8527. {
  8528. // Methods:
  8529. Bone GetBone(const String&) const;
  8530. void Reset();
  8531. // Properties:
  8532. /* readonly */
  8533. Array<Bone> bones;
  8534. /* readonly */
  8535. uint numBones;
  8536. /* readonly */
  8537. Bone rootBone;
  8538. };
  8539. class Skybox
  8540. {
  8541. // Methods:
  8542. void ApplyAttributes();
  8543. void ApplyMaterialList(const String& = String ( ));
  8544. void DrawDebugGeometry(DebugRenderer, bool);
  8545. Variant GetAttribute(const String&) const;
  8546. ValueAnimation GetAttributeAnimation(const String&) const;
  8547. float GetAttributeAnimationSpeed(const String&) const;
  8548. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8549. Variant GetAttributeDefault(const String&) const;
  8550. bool GetInterceptNetworkUpdate(const String&) const;
  8551. bool IsInView(Camera) const;
  8552. bool Load(File, bool = false);
  8553. bool Load(VectorBuffer&, bool = false);
  8554. bool LoadXML(const XMLElement&, bool = false);
  8555. void MarkNetworkUpdate() const;
  8556. void Remove();
  8557. void RemoveInstanceDefault();
  8558. void ResetToDefault();
  8559. bool Save(File) const;
  8560. bool Save(VectorBuffer&) const;
  8561. bool SaveXML(XMLElement&) const;
  8562. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8563. bool SetAttribute(const String&, const Variant&);
  8564. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8565. void SetAttributeAnimationSpeed(const String&, float);
  8566. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8567. void SetInterceptNetworkUpdate(const String&, bool);
  8568. // Properties:
  8569. bool animationEnabled;
  8570. /* readonly */
  8571. Array<Variant> attributeDefaults;
  8572. /* readonly */
  8573. Array<AttributeInfo> attributeInfos;
  8574. Array<Variant> attributes;
  8575. /* readonly */
  8576. StringHash baseType;
  8577. /* readonly */
  8578. BoundingBox boundingBox;
  8579. bool castShadows;
  8580. /* readonly */
  8581. String category;
  8582. float drawDistance;
  8583. bool enabled;
  8584. /* readonly */
  8585. bool enabledEffective;
  8586. /* readonly */
  8587. uint id;
  8588. /* readonly */
  8589. bool inView;
  8590. uint lightMask;
  8591. float lodBias;
  8592. /* writeonly */
  8593. Material material;
  8594. Array<Material> materials;
  8595. uint maxLights;
  8596. Model model;
  8597. /* readonly */
  8598. Node node;
  8599. /* readonly */
  8600. uint numAttributes;
  8601. /* readonly */
  8602. uint numGeometries;
  8603. ObjectAnimation objectAnimation;
  8604. bool occludee;
  8605. bool occluder;
  8606. /* readonly */
  8607. int refs;
  8608. float shadowDistance;
  8609. uint shadowMask;
  8610. bool temporary;
  8611. /* readonly */
  8612. StringHash type;
  8613. /* readonly */
  8614. String typeName;
  8615. uint viewMask;
  8616. /* readonly */
  8617. int weakRefs;
  8618. /* readonly */
  8619. BoundingBox worldBoundingBox;
  8620. /* readonly */
  8621. Zone zone;
  8622. uint zoneMask;
  8623. };
  8624. class Slider
  8625. {
  8626. // Methods:
  8627. void AddChild(UIElement);
  8628. void ApplyAttributes();
  8629. void BringToFront();
  8630. void ChangeValue(float);
  8631. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8632. void DisableLayoutUpdate();
  8633. IntVector2 ElementToScreen(const IntVector2&);
  8634. void EnableLayoutUpdate();
  8635. uint FindChild(UIElement) const;
  8636. Variant GetAttribute(const String&) const;
  8637. ValueAnimation GetAttributeAnimation(const String&) const;
  8638. float GetAttributeAnimationSpeed(const String&) const;
  8639. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8640. Variant GetAttributeDefault(const String&) const;
  8641. UIElement GetChild(const String&, bool = false) const;
  8642. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8643. Array<UIElement> GetChildren(bool = false) const;
  8644. UIElement GetElementEventSender() const;
  8645. bool GetInterceptNetworkUpdate(const String&) const;
  8646. uint GetNumChildren(bool) const;
  8647. void InsertChild(uint, UIElement);
  8648. bool IsInside(IntVector2, bool);
  8649. bool IsInsideCombined(IntVector2, bool);
  8650. bool Load(File, bool = false);
  8651. bool Load(VectorBuffer&, bool = false);
  8652. bool LoadChildXML(XMLFile, XMLFile = null);
  8653. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8654. bool LoadXML(File);
  8655. bool LoadXML(VectorBuffer&);
  8656. bool LoadXML(XMLFile, XMLFile);
  8657. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8658. bool LoadXML(const XMLElement&, bool = false);
  8659. void MarkNetworkUpdate() const;
  8660. void Remove();
  8661. void RemoveAllChildren();
  8662. void RemoveChild(UIElement, uint = 0);
  8663. void RemoveChild(uint);
  8664. void RemoveInstanceDefault();
  8665. void ResetDeepEnabled();
  8666. void ResetToDefault();
  8667. bool Save(File) const;
  8668. bool Save(VectorBuffer&) const;
  8669. bool SaveXML(File, const String& = "\t");
  8670. bool SaveXML(VectorBuffer&, const String& = "\t");
  8671. bool SaveXML(XMLElement&) const;
  8672. IntVector2 ScreenToElement(const IntVector2&);
  8673. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8674. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8675. bool SetAttribute(const String&, const Variant&);
  8676. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8677. void SetAttributeAnimationSpeed(const String&, float);
  8678. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8679. void SetDeepEnabled(bool);
  8680. void SetEnabledRecursive(bool);
  8681. void SetFixedHeight(int);
  8682. void SetFixedSize(int, int);
  8683. void SetFixedWidth(int);
  8684. void SetFullImageRect();
  8685. void SetHoverOffset(int, int);
  8686. void SetInterceptNetworkUpdate(const String&, bool);
  8687. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8688. void SetMaxSize(int, int);
  8689. void SetMinSize(int, int);
  8690. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8691. void SetPosition(int, int);
  8692. void SetSize(int, int);
  8693. bool SetStyle(const String&, XMLFile = null);
  8694. bool SetStyle(const XMLElement&);
  8695. bool SetStyleAuto(XMLFile = null);
  8696. void UpdateLayout();
  8697. const Variant& GetVar(const StringHash&);
  8698. // Properties:
  8699. bool animationEnabled;
  8700. /* readonly */
  8701. Array<Variant> attributeDefaults;
  8702. /* readonly */
  8703. Array<AttributeInfo> attributeInfos;
  8704. Array<Variant> attributes;
  8705. /* readonly */
  8706. StringHash baseType;
  8707. BlendMode blendMode;
  8708. IntRect border;
  8709. bool bringToBack;
  8710. bool bringToFront;
  8711. /* readonly */
  8712. String category;
  8713. /* readonly */
  8714. IntVector2 childOffset;
  8715. /* readonly */
  8716. Array<UIElement> children;
  8717. IntRect clipBorder;
  8718. bool clipChildren;
  8719. /* writeonly */
  8720. Color color;
  8721. /* readonly */
  8722. bool colorGradient;
  8723. Array<Color> colors;
  8724. /* readonly */
  8725. IntRect combinedScreenRect;
  8726. XMLFile defaultStyle;
  8727. /* readonly */
  8728. float derivedOpacity;
  8729. /* readonly */
  8730. uint dragButtonCombo;
  8731. /* readonly */
  8732. int dragButtonCount;
  8733. uint dragDropMode;
  8734. bool editable;
  8735. bool elementEventSender;
  8736. bool enabled;
  8737. /* readonly */
  8738. bool enabledSelf;
  8739. /* readonly */
  8740. bool fixedHeight;
  8741. /* readonly */
  8742. bool fixedSize;
  8743. /* readonly */
  8744. bool fixedWidth;
  8745. bool focus;
  8746. FocusMode focusMode;
  8747. int height;
  8748. HorizontalAlignment horizontalAlignment;
  8749. IntVector2 hoverOffset;
  8750. /* readonly */
  8751. bool hovering;
  8752. IntRect imageBorder;
  8753. IntRect imageRect;
  8754. int indent;
  8755. int indentSpacing;
  8756. /* readonly */
  8757. int indentWidth;
  8758. bool internal;
  8759. /* readonly */
  8760. BorderImage knob;
  8761. IntRect layoutBorder;
  8762. Vector2 layoutFlexScale;
  8763. LayoutMode layoutMode;
  8764. int layoutSpacing;
  8765. int maxHeight;
  8766. IntVector2 maxSize;
  8767. int maxWidth;
  8768. int minHeight;
  8769. IntVector2 minSize;
  8770. int minWidth;
  8771. String name;
  8772. /* readonly */
  8773. uint numAllChildren;
  8774. /* readonly */
  8775. uint numAttributes;
  8776. /* readonly */
  8777. uint numChildren;
  8778. ObjectAnimation objectAnimation;
  8779. float opacity;
  8780. Orientation orientation;
  8781. UIElement parent;
  8782. IntVector2 position;
  8783. int priority;
  8784. float range;
  8785. /* readonly */
  8786. int refs;
  8787. float repeatRate;
  8788. /* readonly */
  8789. UIElement root;
  8790. /* readonly */
  8791. IntVector2 screenPosition;
  8792. bool selected;
  8793. IntVector2 size;
  8794. bool sortChildren;
  8795. String style;
  8796. bool temporary;
  8797. Texture texture;
  8798. bool tiled;
  8799. TraversalMode traversalMode;
  8800. /* readonly */
  8801. StringHash type;
  8802. /* readonly */
  8803. String typeName;
  8804. bool useDerivedOpacity;
  8805. float value;
  8806. /* readonly */
  8807. VariantMap vars;
  8808. VerticalAlignment verticalAlignment;
  8809. bool visible;
  8810. /* readonly */
  8811. int weakRefs;
  8812. int width;
  8813. };
  8814. class SmoothedTransform
  8815. {
  8816. // Methods:
  8817. void ApplyAttributes();
  8818. void DrawDebugGeometry(DebugRenderer, bool);
  8819. Variant GetAttribute(const String&) const;
  8820. ValueAnimation GetAttributeAnimation(const String&) const;
  8821. float GetAttributeAnimationSpeed(const String&) const;
  8822. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8823. Variant GetAttributeDefault(const String&) const;
  8824. bool GetInterceptNetworkUpdate(const String&) const;
  8825. bool Load(File, bool = false);
  8826. bool Load(VectorBuffer&, bool = false);
  8827. bool LoadXML(const XMLElement&, bool = false);
  8828. void MarkNetworkUpdate() const;
  8829. void Remove();
  8830. void RemoveInstanceDefault();
  8831. void ResetToDefault();
  8832. bool Save(File) const;
  8833. bool Save(VectorBuffer&) const;
  8834. bool SaveXML(XMLElement&) const;
  8835. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8836. bool SetAttribute(const String&, const Variant&);
  8837. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8838. void SetAttributeAnimationSpeed(const String&, float);
  8839. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8840. void SetInterceptNetworkUpdate(const String&, bool);
  8841. void Update(float, float);
  8842. // Properties:
  8843. bool animationEnabled;
  8844. /* readonly */
  8845. Array<Variant> attributeDefaults;
  8846. /* readonly */
  8847. Array<AttributeInfo> attributeInfos;
  8848. Array<Variant> attributes;
  8849. /* readonly */
  8850. StringHash baseType;
  8851. /* readonly */
  8852. String category;
  8853. bool enabled;
  8854. /* readonly */
  8855. bool enabledEffective;
  8856. /* readonly */
  8857. uint id;
  8858. /* readonly */
  8859. bool inProgress;
  8860. /* readonly */
  8861. Node node;
  8862. /* readonly */
  8863. uint numAttributes;
  8864. ObjectAnimation objectAnimation;
  8865. /* readonly */
  8866. int refs;
  8867. Vector3 targetPosition;
  8868. Quaternion targetRotation;
  8869. Vector3 targetWorldPosition;
  8870. Quaternion targetWorldRotation;
  8871. bool temporary;
  8872. /* readonly */
  8873. StringHash type;
  8874. /* readonly */
  8875. String typeName;
  8876. /* readonly */
  8877. int weakRefs;
  8878. };
  8879. class Sound
  8880. {
  8881. // Methods:
  8882. bool Load(File);
  8883. bool Load(VectorBuffer&);
  8884. bool Save(File) const;
  8885. bool Save(VectorBuffer&) const;
  8886. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8887. // Properties:
  8888. /* readonly */
  8889. StringHash baseType;
  8890. /* readonly */
  8891. String category;
  8892. /* readonly */
  8893. bool compressed;
  8894. /* readonly */
  8895. float frequency;
  8896. /* readonly */
  8897. float length;
  8898. bool looped;
  8899. /* readonly */
  8900. uint memoryUse;
  8901. String name;
  8902. /* readonly */
  8903. int refs;
  8904. /* readonly */
  8905. uint sampleSize;
  8906. /* readonly */
  8907. bool sixteenBit;
  8908. /* readonly */
  8909. bool stereo;
  8910. /* readonly */
  8911. StringHash type;
  8912. /* readonly */
  8913. String typeName;
  8914. /* readonly */
  8915. uint useTimer;
  8916. /* readonly */
  8917. int weakRefs;
  8918. };
  8919. class SoundListener
  8920. {
  8921. // Methods:
  8922. void ApplyAttributes();
  8923. void DrawDebugGeometry(DebugRenderer, bool);
  8924. Variant GetAttribute(const String&) const;
  8925. ValueAnimation GetAttributeAnimation(const String&) const;
  8926. float GetAttributeAnimationSpeed(const String&) const;
  8927. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8928. Variant GetAttributeDefault(const String&) const;
  8929. bool GetInterceptNetworkUpdate(const String&) const;
  8930. bool Load(File, bool = false);
  8931. bool Load(VectorBuffer&, bool = false);
  8932. bool LoadXML(const XMLElement&, bool = false);
  8933. void MarkNetworkUpdate() const;
  8934. void Remove();
  8935. void RemoveInstanceDefault();
  8936. void ResetToDefault();
  8937. bool Save(File) const;
  8938. bool Save(VectorBuffer&) const;
  8939. bool SaveXML(XMLElement&) const;
  8940. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8941. bool SetAttribute(const String&, const Variant&);
  8942. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8943. void SetAttributeAnimationSpeed(const String&, float);
  8944. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8945. void SetInterceptNetworkUpdate(const String&, bool);
  8946. // Properties:
  8947. bool animationEnabled;
  8948. /* readonly */
  8949. Array<Variant> attributeDefaults;
  8950. /* readonly */
  8951. Array<AttributeInfo> attributeInfos;
  8952. Array<Variant> attributes;
  8953. /* readonly */
  8954. StringHash baseType;
  8955. /* readonly */
  8956. String category;
  8957. bool enabled;
  8958. /* readonly */
  8959. bool enabledEffective;
  8960. /* readonly */
  8961. uint id;
  8962. /* readonly */
  8963. Node node;
  8964. /* readonly */
  8965. uint numAttributes;
  8966. ObjectAnimation objectAnimation;
  8967. /* readonly */
  8968. int refs;
  8969. bool temporary;
  8970. /* readonly */
  8971. StringHash type;
  8972. /* readonly */
  8973. String typeName;
  8974. /* readonly */
  8975. int weakRefs;
  8976. };
  8977. class SoundSource
  8978. {
  8979. // Methods:
  8980. void ApplyAttributes();
  8981. void DrawDebugGeometry(DebugRenderer, bool);
  8982. Variant GetAttribute(const String&) const;
  8983. ValueAnimation GetAttributeAnimation(const String&) const;
  8984. float GetAttributeAnimationSpeed(const String&) const;
  8985. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8986. Variant GetAttributeDefault(const String&) const;
  8987. bool GetInterceptNetworkUpdate(const String&) const;
  8988. bool Load(File, bool = false);
  8989. bool Load(VectorBuffer&, bool = false);
  8990. bool LoadXML(const XMLElement&, bool = false);
  8991. void MarkNetworkUpdate() const;
  8992. void Play(Sound);
  8993. void Play(Sound, float);
  8994. void Play(Sound, float, float);
  8995. void Play(Sound, float, float, float);
  8996. void Remove();
  8997. void RemoveInstanceDefault();
  8998. void ResetToDefault();
  8999. bool Save(File) const;
  9000. bool Save(VectorBuffer&) const;
  9001. bool SaveXML(XMLElement&) const;
  9002. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9003. bool SetAttribute(const String&, const Variant&);
  9004. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9005. void SetAttributeAnimationSpeed(const String&, float);
  9006. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9007. void SetInterceptNetworkUpdate(const String&, bool);
  9008. void Stop();
  9009. // Properties:
  9010. bool animationEnabled;
  9011. /* readonly */
  9012. float attenuation;
  9013. /* readonly */
  9014. Array<Variant> attributeDefaults;
  9015. /* readonly */
  9016. Array<AttributeInfo> attributeInfos;
  9017. Array<Variant> attributes;
  9018. bool autoRemove;
  9019. /* readonly */
  9020. StringHash baseType;
  9021. /* readonly */
  9022. String category;
  9023. bool enabled;
  9024. /* readonly */
  9025. bool enabledEffective;
  9026. float frequency;
  9027. float gain;
  9028. /* readonly */
  9029. uint id;
  9030. /* readonly */
  9031. Node node;
  9032. /* readonly */
  9033. uint numAttributes;
  9034. ObjectAnimation objectAnimation;
  9035. float panning;
  9036. /* readonly */
  9037. bool playing;
  9038. /* readonly */
  9039. int refs;
  9040. /* readonly */
  9041. Sound sound;
  9042. String soundType;
  9043. bool temporary;
  9044. /* readonly */
  9045. float timePosition;
  9046. /* readonly */
  9047. StringHash type;
  9048. /* readonly */
  9049. String typeName;
  9050. /* readonly */
  9051. int weakRefs;
  9052. };
  9053. class SoundSource3D
  9054. {
  9055. // Methods:
  9056. void ApplyAttributes();
  9057. void DrawDebugGeometry(DebugRenderer, bool);
  9058. Variant GetAttribute(const String&) const;
  9059. ValueAnimation GetAttributeAnimation(const String&) const;
  9060. float GetAttributeAnimationSpeed(const String&) const;
  9061. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9062. Variant GetAttributeDefault(const String&) const;
  9063. bool GetInterceptNetworkUpdate(const String&) const;
  9064. bool Load(File, bool = false);
  9065. bool Load(VectorBuffer&, bool = false);
  9066. bool LoadXML(const XMLElement&, bool = false);
  9067. void MarkNetworkUpdate() const;
  9068. void Play(Sound);
  9069. void Play(Sound, float);
  9070. void Play(Sound, float, float);
  9071. void Play(Sound, float, float, float);
  9072. void Remove();
  9073. void RemoveInstanceDefault();
  9074. void ResetToDefault();
  9075. bool Save(File) const;
  9076. bool Save(VectorBuffer&) const;
  9077. bool SaveXML(XMLElement&) const;
  9078. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9079. void SetAngleAttenuation(float, float);
  9080. bool SetAttribute(const String&, const Variant&);
  9081. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9082. void SetAttributeAnimationSpeed(const String&, float);
  9083. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9084. void SetDistanceAttenuation(float, float, float);
  9085. void SetInterceptNetworkUpdate(const String&, bool);
  9086. void Stop();
  9087. // Properties:
  9088. bool animationEnabled;
  9089. /* readonly */
  9090. float attenuation;
  9091. /* readonly */
  9092. Array<Variant> attributeDefaults;
  9093. /* readonly */
  9094. Array<AttributeInfo> attributeInfos;
  9095. Array<Variant> attributes;
  9096. bool autoRemove;
  9097. /* readonly */
  9098. StringHash baseType;
  9099. /* readonly */
  9100. String category;
  9101. bool enabled;
  9102. /* readonly */
  9103. bool enabledEffective;
  9104. float farDistance;
  9105. float frequency;
  9106. float gain;
  9107. /* readonly */
  9108. uint id;
  9109. float innerAngle;
  9110. float nearDistance;
  9111. /* readonly */
  9112. Node node;
  9113. /* readonly */
  9114. uint numAttributes;
  9115. ObjectAnimation objectAnimation;
  9116. float outerAngle;
  9117. float panning;
  9118. /* readonly */
  9119. bool playing;
  9120. /* readonly */
  9121. int refs;
  9122. float rolloffFactor;
  9123. /* readonly */
  9124. Sound sound;
  9125. String soundType;
  9126. bool temporary;
  9127. /* readonly */
  9128. float timePosition;
  9129. /* readonly */
  9130. StringHash type;
  9131. /* readonly */
  9132. String typeName;
  9133. /* readonly */
  9134. int weakRefs;
  9135. };
  9136. class Sphere
  9137. {
  9138. // Methods:
  9139. void Clear();
  9140. void Define(const BoundingBox&);
  9141. void Define(const Frustum&);
  9142. void Define(const Polyhedron&);
  9143. void Define(const Sphere&);
  9144. void Define(const Vector3&, float);
  9145. float Distance(const Vector3&) const;
  9146. Intersection IsInside(const BoundingBox&) const;
  9147. Intersection IsInside(const Sphere&) const;
  9148. Intersection IsInside(const Vector3&) const;
  9149. void Merge(const BoundingBox&);
  9150. void Merge(const Frustum&);
  9151. void Merge(const Sphere&);
  9152. void Merge(const Vector3&);
  9153. // Properties:
  9154. Vector3 center;
  9155. bool defined;
  9156. float radius;
  9157. };
  9158. class Spline
  9159. {
  9160. // Methods:
  9161. void AddKnot(const Variant&);
  9162. void AddKnot(const Variant&, uint);
  9163. void Clear();
  9164. Variant GetPoint(float);
  9165. void RemoveKnot();
  9166. void RemoveKnot(uint);
  9167. // Properties:
  9168. InterpolationMode interpolationMode;
  9169. Array<Variant> knot;
  9170. Array<Variant> knots;
  9171. };
  9172. class SplinePath
  9173. {
  9174. // Methods:
  9175. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9176. void ApplyAttributes();
  9177. void ClearControlPoints();
  9178. void DrawDebugGeometry(DebugRenderer, bool);
  9179. Variant GetAttribute(const String&) const;
  9180. ValueAnimation GetAttributeAnimation(const String&) const;
  9181. float GetAttributeAnimationSpeed(const String&) const;
  9182. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9183. Variant GetAttributeDefault(const String&) const;
  9184. bool GetInterceptNetworkUpdate(const String&) const;
  9185. Vector3 GetPoint(float) const;
  9186. bool Load(File, bool = false);
  9187. bool Load(VectorBuffer&, bool = false);
  9188. bool LoadXML(const XMLElement&, bool = false);
  9189. void MarkNetworkUpdate() const;
  9190. void Move(float);
  9191. void Remove();
  9192. void RemoveControlPoint(Node);
  9193. void RemoveInstanceDefault();
  9194. void Reset();
  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 SetInterceptNetworkUpdate(const String&, bool);
  9205. // Properties:
  9206. bool animationEnabled;
  9207. /* readonly */
  9208. Array<Variant> attributeDefaults;
  9209. /* readonly */
  9210. Array<AttributeInfo> attributeInfos;
  9211. Array<Variant> attributes;
  9212. /* readonly */
  9213. StringHash baseType;
  9214. /* readonly */
  9215. String category;
  9216. Node controlledNode;
  9217. bool enabled;
  9218. /* readonly */
  9219. bool enabledEffective;
  9220. /* readonly */
  9221. uint id;
  9222. InterpolationMode interpolationMode;
  9223. /* readonly */
  9224. bool isFinished;
  9225. /* readonly */
  9226. Node node;
  9227. /* readonly */
  9228. uint numAttributes;
  9229. ObjectAnimation objectAnimation;
  9230. Vector3 position;
  9231. /* readonly */
  9232. int refs;
  9233. float speed;
  9234. bool temporary;
  9235. /* readonly */
  9236. StringHash type;
  9237. /* readonly */
  9238. String typeName;
  9239. /* readonly */
  9240. int weakRefs;
  9241. };
  9242. class Sprite
  9243. {
  9244. // Methods:
  9245. void AddChild(UIElement);
  9246. void ApplyAttributes();
  9247. void BringToFront();
  9248. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9249. uint FindChild(UIElement) const;
  9250. Variant GetAttribute(const String&) const;
  9251. ValueAnimation GetAttributeAnimation(const String&) const;
  9252. float GetAttributeAnimationSpeed(const String&) const;
  9253. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9254. Variant GetAttributeDefault(const String&) const;
  9255. UIElement GetChild(const String&, bool = false) const;
  9256. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9257. Array<UIElement> GetChildren(bool = false) const;
  9258. UIElement GetElementEventSender() const;
  9259. bool GetInterceptNetworkUpdate(const String&) const;
  9260. uint GetNumChildren(bool) const;
  9261. void InsertChild(uint, UIElement);
  9262. bool Load(File, bool = false);
  9263. bool Load(VectorBuffer&, bool = false);
  9264. bool LoadChildXML(XMLFile, XMLFile = null);
  9265. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9266. bool LoadXML(File);
  9267. bool LoadXML(VectorBuffer&);
  9268. bool LoadXML(XMLFile, XMLFile);
  9269. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9270. bool LoadXML(const XMLElement&, bool = false);
  9271. void MarkNetworkUpdate() const;
  9272. void Remove();
  9273. void RemoveAllChildren();
  9274. void RemoveChild(UIElement, uint = 0);
  9275. void RemoveChild(uint);
  9276. void RemoveInstanceDefault();
  9277. void ResetToDefault();
  9278. bool Save(File) const;
  9279. bool Save(VectorBuffer&) const;
  9280. bool SaveXML(File, const String& = "\t");
  9281. bool SaveXML(VectorBuffer&, const String& = "\t");
  9282. bool SaveXML(XMLElement&) const;
  9283. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9284. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9285. bool SetAttribute(const String&, const Variant&);
  9286. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9287. void SetAttributeAnimationSpeed(const String&, float);
  9288. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9289. void SetFixedHeight(int);
  9290. void SetFixedSize(int, int);
  9291. void SetFixedWidth(int);
  9292. void SetFullImageRect();
  9293. void SetHotSpot(int, int);
  9294. void SetInterceptNetworkUpdate(const String&, bool);
  9295. void SetMaxSize(int, int);
  9296. void SetMinSize(int, int);
  9297. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9298. void SetPosition(float, float);
  9299. void SetScale(float);
  9300. void SetScale(float, float);
  9301. void SetSize(int, int);
  9302. bool SetStyle(const String&, XMLFile = null);
  9303. bool SetStyle(const XMLElement&);
  9304. bool SetStyleAuto(XMLFile = null);
  9305. const Variant& GetVar(const StringHash&);
  9306. // Properties:
  9307. bool animationEnabled;
  9308. /* readonly */
  9309. Array<Variant> attributeDefaults;
  9310. /* readonly */
  9311. Array<AttributeInfo> attributeInfos;
  9312. Array<Variant> attributes;
  9313. /* readonly */
  9314. StringHash baseType;
  9315. BlendMode blendMode;
  9316. bool bringToBack;
  9317. bool bringToFront;
  9318. /* readonly */
  9319. String category;
  9320. /* readonly */
  9321. Array<UIElement> children;
  9322. /* writeonly */
  9323. Color color;
  9324. /* readonly */
  9325. bool colorGradient;
  9326. Array<Color> colors;
  9327. XMLFile defaultStyle;
  9328. /* readonly */
  9329. float derivedOpacity;
  9330. /* readonly */
  9331. uint dragButtonCombo;
  9332. /* readonly */
  9333. int dragButtonCount;
  9334. bool elementEventSender;
  9335. int height;
  9336. HorizontalAlignment horizontalAlignment;
  9337. IntVector2 hotSpot;
  9338. IntRect imageRect;
  9339. String name;
  9340. /* readonly */
  9341. uint numAllChildren;
  9342. /* readonly */
  9343. uint numAttributes;
  9344. /* readonly */
  9345. uint numChildren;
  9346. ObjectAnimation objectAnimation;
  9347. float opacity;
  9348. UIElement parent;
  9349. Vector2 position;
  9350. int priority;
  9351. /* readonly */
  9352. int refs;
  9353. /* readonly */
  9354. UIElement root;
  9355. float rotation;
  9356. Vector2 scale;
  9357. IntVector2 size;
  9358. bool sortChildren;
  9359. String style;
  9360. bool temporary;
  9361. Texture texture;
  9362. /* readonly */
  9363. StringHash type;
  9364. /* readonly */
  9365. String typeName;
  9366. bool useDerivedOpacity;
  9367. /* readonly */
  9368. VariantMap vars;
  9369. VerticalAlignment verticalAlignment;
  9370. bool visible;
  9371. /* readonly */
  9372. int weakRefs;
  9373. int width;
  9374. };
  9375. class Sprite2D
  9376. {
  9377. // Methods:
  9378. bool Load(File);
  9379. bool Load(VectorBuffer&);
  9380. bool Save(File) const;
  9381. bool Save(VectorBuffer&) const;
  9382. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9383. // Properties:
  9384. /* readonly */
  9385. StringHash baseType;
  9386. /* readonly */
  9387. String category;
  9388. Vector2 hotSpot;
  9389. /* readonly */
  9390. uint memoryUse;
  9391. String name;
  9392. IntVector2 offset;
  9393. IntRect rectangle;
  9394. /* readonly */
  9395. int refs;
  9396. Texture2D texture;
  9397. /* readonly */
  9398. StringHash type;
  9399. /* readonly */
  9400. String typeName;
  9401. /* readonly */
  9402. uint useTimer;
  9403. /* readonly */
  9404. int weakRefs;
  9405. };
  9406. class SpriteSheet2D
  9407. {
  9408. // Methods:
  9409. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  9410. Sprite2D GetSprite(const String&);
  9411. bool Load(File);
  9412. bool Load(VectorBuffer&);
  9413. bool Save(File) const;
  9414. bool Save(VectorBuffer&) const;
  9415. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9416. // Properties:
  9417. /* readonly */
  9418. StringHash baseType;
  9419. /* readonly */
  9420. String category;
  9421. /* readonly */
  9422. uint memoryUse;
  9423. String name;
  9424. /* readonly */
  9425. int refs;
  9426. /* readonly */
  9427. Texture2D texture;
  9428. /* readonly */
  9429. StringHash type;
  9430. /* readonly */
  9431. String typeName;
  9432. /* readonly */
  9433. uint useTimer;
  9434. /* readonly */
  9435. int weakRefs;
  9436. };
  9437. class StaticModel
  9438. {
  9439. // Methods:
  9440. void ApplyAttributes();
  9441. void ApplyMaterialList(const String& = String ( ));
  9442. void DrawDebugGeometry(DebugRenderer, bool);
  9443. Variant GetAttribute(const String&) const;
  9444. ValueAnimation GetAttributeAnimation(const String&) const;
  9445. float GetAttributeAnimationSpeed(const String&) const;
  9446. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9447. Variant GetAttributeDefault(const String&) const;
  9448. bool GetInterceptNetworkUpdate(const String&) const;
  9449. bool IsInView(Camera) const;
  9450. bool IsInside(const Vector3&) const;
  9451. bool IsInsideLocal(const Vector3&) const;
  9452. bool Load(File, bool = false);
  9453. bool Load(VectorBuffer&, bool = false);
  9454. bool LoadXML(const XMLElement&, bool = false);
  9455. void MarkNetworkUpdate() const;
  9456. void Remove();
  9457. void RemoveInstanceDefault();
  9458. void ResetToDefault();
  9459. bool Save(File) const;
  9460. bool Save(VectorBuffer&) const;
  9461. bool SaveXML(XMLElement&) const;
  9462. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9463. bool SetAttribute(const String&, const Variant&);
  9464. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9465. void SetAttributeAnimationSpeed(const String&, float);
  9466. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9467. void SetInterceptNetworkUpdate(const String&, bool);
  9468. // Properties:
  9469. bool animationEnabled;
  9470. /* readonly */
  9471. Array<Variant> attributeDefaults;
  9472. /* readonly */
  9473. Array<AttributeInfo> attributeInfos;
  9474. Array<Variant> attributes;
  9475. /* readonly */
  9476. StringHash baseType;
  9477. /* readonly */
  9478. BoundingBox boundingBox;
  9479. bool castShadows;
  9480. /* readonly */
  9481. String category;
  9482. float drawDistance;
  9483. bool enabled;
  9484. /* readonly */
  9485. bool enabledEffective;
  9486. /* readonly */
  9487. uint id;
  9488. /* readonly */
  9489. bool inView;
  9490. uint lightMask;
  9491. float lodBias;
  9492. /* writeonly */
  9493. Material material;
  9494. Array<Material> materials;
  9495. uint maxLights;
  9496. Model model;
  9497. /* readonly */
  9498. Node node;
  9499. /* readonly */
  9500. uint numAttributes;
  9501. /* readonly */
  9502. uint numGeometries;
  9503. ObjectAnimation objectAnimation;
  9504. bool occludee;
  9505. bool occluder;
  9506. uint occlusionLodLevel;
  9507. /* readonly */
  9508. int refs;
  9509. float shadowDistance;
  9510. uint shadowMask;
  9511. bool temporary;
  9512. /* readonly */
  9513. StringHash type;
  9514. /* readonly */
  9515. String typeName;
  9516. uint viewMask;
  9517. /* readonly */
  9518. int weakRefs;
  9519. /* readonly */
  9520. BoundingBox worldBoundingBox;
  9521. uint zoneMask;
  9522. };
  9523. class StaticModelGroup
  9524. {
  9525. // Methods:
  9526. void AddInstanceNode(Node);
  9527. void ApplyAttributes();
  9528. void ApplyMaterialList(const String& = String ( ));
  9529. void DrawDebugGeometry(DebugRenderer, bool);
  9530. Variant GetAttribute(const String&) const;
  9531. ValueAnimation GetAttributeAnimation(const String&) const;
  9532. float GetAttributeAnimationSpeed(const String&) const;
  9533. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9534. Variant GetAttributeDefault(const String&) const;
  9535. bool GetInterceptNetworkUpdate(const String&) const;
  9536. bool IsInView(Camera) const;
  9537. bool Load(File, bool = false);
  9538. bool Load(VectorBuffer&, bool = false);
  9539. bool LoadXML(const XMLElement&, bool = false);
  9540. void MarkNetworkUpdate() const;
  9541. void Remove();
  9542. void RemoveAllInstanceNodes();
  9543. void RemoveInstanceDefault();
  9544. void RemoveInstanceNode(Node);
  9545. void ResetToDefault();
  9546. bool Save(File) const;
  9547. bool Save(VectorBuffer&) const;
  9548. bool SaveXML(XMLElement&) const;
  9549. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9550. bool SetAttribute(const String&, const Variant&);
  9551. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9552. void SetAttributeAnimationSpeed(const String&, float);
  9553. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9554. void SetInterceptNetworkUpdate(const String&, bool);
  9555. // Properties:
  9556. bool animationEnabled;
  9557. /* readonly */
  9558. Array<Variant> attributeDefaults;
  9559. /* readonly */
  9560. Array<AttributeInfo> attributeInfos;
  9561. Array<Variant> attributes;
  9562. /* readonly */
  9563. StringHash baseType;
  9564. /* readonly */
  9565. BoundingBox boundingBox;
  9566. bool castShadows;
  9567. /* readonly */
  9568. String category;
  9569. float drawDistance;
  9570. bool enabled;
  9571. /* readonly */
  9572. bool enabledEffective;
  9573. /* readonly */
  9574. uint id;
  9575. /* readonly */
  9576. bool inView;
  9577. /* readonly */
  9578. Array<Node> instanceNodes;
  9579. uint lightMask;
  9580. float lodBias;
  9581. /* writeonly */
  9582. Material material;
  9583. Array<Material> materials;
  9584. uint maxLights;
  9585. Model model;
  9586. /* readonly */
  9587. Node node;
  9588. /* readonly */
  9589. uint numAttributes;
  9590. /* readonly */
  9591. uint numGeometries;
  9592. /* readonly */
  9593. uint numInstanceNodes;
  9594. ObjectAnimation objectAnimation;
  9595. bool occludee;
  9596. bool occluder;
  9597. uint occlusionLodLevel;
  9598. /* readonly */
  9599. int refs;
  9600. float shadowDistance;
  9601. uint shadowMask;
  9602. bool temporary;
  9603. /* readonly */
  9604. StringHash type;
  9605. /* readonly */
  9606. String typeName;
  9607. uint viewMask;
  9608. /* readonly */
  9609. int weakRefs;
  9610. /* readonly */
  9611. BoundingBox worldBoundingBox;
  9612. /* readonly */
  9613. Zone zone;
  9614. uint zoneMask;
  9615. };
  9616. class StaticSprite2D
  9617. {
  9618. // Methods:
  9619. void ApplyAttributes();
  9620. void DrawDebugGeometry(DebugRenderer, bool);
  9621. Variant GetAttribute(const String&) const;
  9622. ValueAnimation GetAttributeAnimation(const String&) const;
  9623. float GetAttributeAnimationSpeed(const String&) const;
  9624. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9625. Variant GetAttributeDefault(const String&) const;
  9626. bool GetInterceptNetworkUpdate(const String&) const;
  9627. bool IsInView(Camera) const;
  9628. bool Load(File, bool = false);
  9629. bool Load(VectorBuffer&, bool = false);
  9630. bool LoadXML(const XMLElement&, bool = false);
  9631. void MarkNetworkUpdate() const;
  9632. void Remove();
  9633. void RemoveInstanceDefault();
  9634. void ResetToDefault();
  9635. bool Save(File) const;
  9636. bool Save(VectorBuffer&) const;
  9637. bool SaveXML(XMLElement&) const;
  9638. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9639. bool SetAttribute(const String&, const Variant&);
  9640. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9641. void SetAttributeAnimationSpeed(const String&, float);
  9642. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9643. void SetFlip(bool, bool);
  9644. void SetInterceptNetworkUpdate(const String&, bool);
  9645. // Properties:
  9646. float alpha;
  9647. bool animationEnabled;
  9648. /* readonly */
  9649. Array<Variant> attributeDefaults;
  9650. /* readonly */
  9651. Array<AttributeInfo> attributeInfos;
  9652. Array<Variant> attributes;
  9653. /* readonly */
  9654. StringHash baseType;
  9655. BlendMode blendMode;
  9656. /* readonly */
  9657. BoundingBox boundingBox;
  9658. bool castShadows;
  9659. /* readonly */
  9660. String category;
  9661. Color color;
  9662. Material customMaterial;
  9663. float drawDistance;
  9664. bool enabled;
  9665. /* readonly */
  9666. bool enabledEffective;
  9667. bool flipX;
  9668. bool flipY;
  9669. Vector2 hotSpot;
  9670. /* readonly */
  9671. uint id;
  9672. /* readonly */
  9673. bool inView;
  9674. int layer;
  9675. uint lightMask;
  9676. float lodBias;
  9677. uint maxLights;
  9678. /* readonly */
  9679. Node node;
  9680. /* readonly */
  9681. uint numAttributes;
  9682. ObjectAnimation objectAnimation;
  9683. bool occludee;
  9684. bool occluder;
  9685. int orderInLayer;
  9686. /* readonly */
  9687. int refs;
  9688. float shadowDistance;
  9689. uint shadowMask;
  9690. Sprite2D sprite;
  9691. bool temporary;
  9692. /* readonly */
  9693. StringHash type;
  9694. /* readonly */
  9695. String typeName;
  9696. bool useHotSpot;
  9697. uint viewMask;
  9698. /* readonly */
  9699. int weakRefs;
  9700. /* readonly */
  9701. BoundingBox worldBoundingBox;
  9702. uint zoneMask;
  9703. };
  9704. class String
  9705. {
  9706. // Methods:
  9707. void AppendUTF8(uint);
  9708. uint AtUTF8(uint) const;
  9709. uint ByteOffsetUTF8(uint) const;
  9710. void Clear();
  9711. int Compare(const String&, bool = true) const;
  9712. bool Contains(const String&, bool = true) const;
  9713. bool Contains(uint8, bool = true) const;
  9714. bool EndsWith(const String&, bool = true) const;
  9715. uint Find(const String&, uint = 0, bool = true) const;
  9716. uint Find(uint8, uint = 0, bool = true) const;
  9717. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  9718. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  9719. void Join(Array<String>&, const String&);
  9720. uint NextUTF8Char(uint&) const;
  9721. void Replace(const String&, const String&, bool = true);
  9722. void Replace(uint8, uint8, bool = true);
  9723. void ReplaceUTF8(uint, uint);
  9724. String Replaced(const String&, const String&, bool = true) const;
  9725. String Replaced(uint8, uint8, bool = true) const;
  9726. void Resize(uint);
  9727. void SetUTF8FromLatin1(const String&);
  9728. Array<String> Split(uint8) const;
  9729. bool StartsWith(const String&, bool = true) const;
  9730. String Substring(uint) const;
  9731. String Substring(uint, uint) const;
  9732. String SubstringUTF8(uint) const;
  9733. String SubstringUTF8(uint, uint) const;
  9734. bool ToBool() const;
  9735. Color ToColor() const;
  9736. float ToFloat() const;
  9737. int ToInt() const;
  9738. IntRect ToIntRect() const;
  9739. IntVector2 ToIntVector2() const;
  9740. String ToLower() const;
  9741. Matrix3 ToMatrix3() const;
  9742. Matrix3x4 ToMatrix3x4() const;
  9743. Matrix4 ToMatrix4() const;
  9744. Quaternion ToQuaternion() const;
  9745. uint ToUInt() const;
  9746. String ToUpper() const;
  9747. Vector2 ToVector2() const;
  9748. Vector3 ToVector3() const;
  9749. Vector4 ToVector4(bool = false) const;
  9750. Variant ToVectorVariant() const;
  9751. String Trimmed() const;
  9752. // Properties:
  9753. /* readonly */
  9754. bool empty;
  9755. /* readonly */
  9756. uint length;
  9757. /* readonly */
  9758. uint utf8Length;
  9759. };
  9760. class StringHash
  9761. {
  9762. // Methods:
  9763. String ToString() const;
  9764. // Properties:
  9765. /* readonly */
  9766. uint value;
  9767. };
  9768. class Technique
  9769. {
  9770. // Methods:
  9771. Pass CreatePass(const String&);
  9772. Pass GetPass(const String&);
  9773. Pass GetSupportedPass(const String&);
  9774. bool HasPass(const String&) const;
  9775. bool Load(File);
  9776. bool Load(VectorBuffer&);
  9777. void RemovePass(const String&);
  9778. bool Save(File) const;
  9779. bool Save(VectorBuffer&) const;
  9780. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9781. // Properties:
  9782. /* readonly */
  9783. StringHash baseType;
  9784. /* readonly */
  9785. String category;
  9786. bool desktop;
  9787. /* readonly */
  9788. uint memoryUse;
  9789. String name;
  9790. /* readonly */
  9791. uint numPasses;
  9792. /* readonly */
  9793. Array<String> passNames;
  9794. /* readonly */
  9795. Array<Pass> passes;
  9796. /* readonly */
  9797. int refs;
  9798. /* readonly */
  9799. bool supported;
  9800. /* readonly */
  9801. StringHash type;
  9802. /* readonly */
  9803. String typeName;
  9804. /* readonly */
  9805. uint useTimer;
  9806. /* readonly */
  9807. int weakRefs;
  9808. };
  9809. class TechniqueEntry
  9810. {
  9811. // Properties:
  9812. float lodDistance;
  9813. int qualityLevel;
  9814. Technique technique;
  9815. };
  9816. class Terrain
  9817. {
  9818. // Methods:
  9819. void ApplyAttributes();
  9820. void ApplyHeightMap();
  9821. void DrawDebugGeometry(DebugRenderer, bool);
  9822. Variant GetAttribute(const String&) const;
  9823. ValueAnimation GetAttributeAnimation(const String&) const;
  9824. float GetAttributeAnimationSpeed(const String&) const;
  9825. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9826. Variant GetAttributeDefault(const String&) const;
  9827. float GetHeight(const Vector3&) const;
  9828. bool GetInterceptNetworkUpdate(const String&) const;
  9829. Vector3 GetNormal(const Vector3&) const;
  9830. TerrainPatch GetPatch(int, int) const;
  9831. bool Load(File, bool = false);
  9832. bool Load(VectorBuffer&, bool = false);
  9833. bool LoadXML(const XMLElement&, bool = false);
  9834. void MarkNetworkUpdate() const;
  9835. void Remove();
  9836. void RemoveInstanceDefault();
  9837. void ResetToDefault();
  9838. bool Save(File) const;
  9839. bool Save(VectorBuffer&) const;
  9840. bool SaveXML(XMLElement&) const;
  9841. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9842. bool SetAttribute(const String&, const Variant&);
  9843. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9844. void SetAttributeAnimationSpeed(const String&, float);
  9845. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9846. void SetInterceptNetworkUpdate(const String&, bool);
  9847. IntVector2 WorldToHeightMap(const Vector3&) const;
  9848. // Properties:
  9849. bool animationEnabled;
  9850. /* readonly */
  9851. Array<Variant> attributeDefaults;
  9852. /* readonly */
  9853. Array<AttributeInfo> attributeInfos;
  9854. Array<Variant> attributes;
  9855. /* readonly */
  9856. StringHash baseType;
  9857. bool castShadows;
  9858. /* readonly */
  9859. String category;
  9860. float drawDistance;
  9861. bool enabled;
  9862. /* readonly */
  9863. bool enabledEffective;
  9864. Image heightMap;
  9865. /* readonly */
  9866. uint id;
  9867. uint lightMask;
  9868. float lodBias;
  9869. Material material;
  9870. uint maxLights;
  9871. /* readonly */
  9872. Node node;
  9873. /* readonly */
  9874. uint numAttributes;
  9875. /* readonly */
  9876. IntVector2 numPatches;
  9877. /* readonly */
  9878. IntVector2 numVertices;
  9879. ObjectAnimation objectAnimation;
  9880. bool occludee;
  9881. bool occluder;
  9882. int patchSize;
  9883. /* readonly */
  9884. Array<TerrainPatch> patches;
  9885. /* readonly */
  9886. int refs;
  9887. float shadowDistance;
  9888. uint shadowMask;
  9889. bool smoothing;
  9890. Vector3 spacing;
  9891. bool temporary;
  9892. /* readonly */
  9893. StringHash type;
  9894. /* readonly */
  9895. String typeName;
  9896. uint viewMask;
  9897. /* readonly */
  9898. int weakRefs;
  9899. uint zoneMask;
  9900. };
  9901. class TerrainPatch
  9902. {
  9903. // Methods:
  9904. void ApplyAttributes();
  9905. void DrawDebugGeometry(DebugRenderer, bool);
  9906. Variant GetAttribute(const String&) const;
  9907. ValueAnimation GetAttributeAnimation(const String&) const;
  9908. float GetAttributeAnimationSpeed(const String&) const;
  9909. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9910. Variant GetAttributeDefault(const String&) const;
  9911. bool GetInterceptNetworkUpdate(const String&) const;
  9912. bool IsInView(Camera) const;
  9913. bool Load(File, bool = false);
  9914. bool Load(VectorBuffer&, bool = false);
  9915. bool LoadXML(const XMLElement&, bool = false);
  9916. void MarkNetworkUpdate() const;
  9917. void Remove();
  9918. void RemoveInstanceDefault();
  9919. void ResetToDefault();
  9920. bool Save(File) const;
  9921. bool Save(VectorBuffer&) const;
  9922. bool SaveXML(XMLElement&) const;
  9923. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9924. bool SetAttribute(const String&, const Variant&);
  9925. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9926. void SetAttributeAnimationSpeed(const String&, float);
  9927. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9928. void SetInterceptNetworkUpdate(const String&, bool);
  9929. // Properties:
  9930. bool animationEnabled;
  9931. /* readonly */
  9932. Array<Variant> attributeDefaults;
  9933. /* readonly */
  9934. Array<AttributeInfo> attributeInfos;
  9935. Array<Variant> attributes;
  9936. /* readonly */
  9937. StringHash baseType;
  9938. /* readonly */
  9939. BoundingBox boundingBox;
  9940. bool castShadows;
  9941. /* readonly */
  9942. String category;
  9943. float drawDistance;
  9944. bool enabled;
  9945. /* readonly */
  9946. bool enabledEffective;
  9947. /* readonly */
  9948. uint id;
  9949. /* readonly */
  9950. bool inView;
  9951. uint lightMask;
  9952. float lodBias;
  9953. uint maxLights;
  9954. /* readonly */
  9955. Node node;
  9956. /* readonly */
  9957. uint numAttributes;
  9958. ObjectAnimation objectAnimation;
  9959. bool occludee;
  9960. bool occluder;
  9961. /* readonly */
  9962. int refs;
  9963. float shadowDistance;
  9964. uint shadowMask;
  9965. bool temporary;
  9966. /* readonly */
  9967. StringHash type;
  9968. /* readonly */
  9969. String typeName;
  9970. uint viewMask;
  9971. /* readonly */
  9972. int weakRefs;
  9973. /* readonly */
  9974. BoundingBox worldBoundingBox;
  9975. uint zoneMask;
  9976. };
  9977. class Text
  9978. {
  9979. // Methods:
  9980. void AddChild(UIElement);
  9981. void ApplyAttributes();
  9982. void BringToFront();
  9983. void ClearSelection();
  9984. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9985. void DisableLayoutUpdate();
  9986. IntVector2 ElementToScreen(const IntVector2&);
  9987. void EnableLayoutUpdate();
  9988. uint FindChild(UIElement) const;
  9989. Variant GetAttribute(const String&) const;
  9990. ValueAnimation GetAttributeAnimation(const String&) const;
  9991. float GetAttributeAnimationSpeed(const String&) const;
  9992. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9993. Variant GetAttributeDefault(const String&) const;
  9994. UIElement GetChild(const String&, bool = false) const;
  9995. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9996. Array<UIElement> GetChildren(bool = false) const;
  9997. UIElement GetElementEventSender() const;
  9998. bool GetInterceptNetworkUpdate(const String&) const;
  9999. uint GetNumChildren(bool) const;
  10000. void InsertChild(uint, UIElement);
  10001. bool IsInside(IntVector2, bool);
  10002. bool IsInsideCombined(IntVector2, bool);
  10003. bool Load(File, bool = false);
  10004. bool Load(VectorBuffer&, bool = false);
  10005. bool LoadChildXML(XMLFile, XMLFile = null);
  10006. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10007. bool LoadXML(File);
  10008. bool LoadXML(VectorBuffer&);
  10009. bool LoadXML(XMLFile, XMLFile);
  10010. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10011. bool LoadXML(const XMLElement&, bool = false);
  10012. void MarkNetworkUpdate() const;
  10013. void Remove();
  10014. void RemoveAllChildren();
  10015. void RemoveChild(UIElement, uint = 0);
  10016. void RemoveChild(uint);
  10017. void RemoveInstanceDefault();
  10018. void ResetDeepEnabled();
  10019. void ResetToDefault();
  10020. bool Save(File) const;
  10021. bool Save(VectorBuffer&) const;
  10022. bool SaveXML(File, const String& = "\t");
  10023. bool SaveXML(VectorBuffer&, const String& = "\t");
  10024. bool SaveXML(XMLElement&) const;
  10025. IntVector2 ScreenToElement(const IntVector2&);
  10026. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10027. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10028. bool SetAttribute(const String&, const Variant&);
  10029. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10030. void SetAttributeAnimationSpeed(const String&, float);
  10031. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10032. void SetDeepEnabled(bool);
  10033. void SetEnabledRecursive(bool);
  10034. void SetFixedHeight(int);
  10035. void SetFixedSize(int, int);
  10036. void SetFixedWidth(int);
  10037. bool SetFont(Font, int);
  10038. bool SetFont(const String&, int);
  10039. void SetInterceptNetworkUpdate(const String&, bool);
  10040. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10041. void SetMaxSize(int, int);
  10042. void SetMinSize(int, int);
  10043. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10044. void SetPosition(int, int);
  10045. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10046. void SetSize(int, int);
  10047. bool SetStyle(const String&, XMLFile = null);
  10048. bool SetStyle(const XMLElement&);
  10049. bool SetStyleAuto(XMLFile = null);
  10050. void UpdateLayout();
  10051. const Variant& GetVar(const StringHash&);
  10052. // Properties:
  10053. bool animationEnabled;
  10054. /* readonly */
  10055. Array<Variant> attributeDefaults;
  10056. /* readonly */
  10057. Array<AttributeInfo> attributeInfos;
  10058. Array<Variant> attributes;
  10059. /* readonly */
  10060. StringHash baseType;
  10061. bool bringToBack;
  10062. bool bringToFront;
  10063. /* readonly */
  10064. String category;
  10065. /* readonly */
  10066. Array<IntVector2> charPositions;
  10067. /* readonly */
  10068. Array<IntVector2> charSizes;
  10069. /* readonly */
  10070. IntVector2 childOffset;
  10071. /* readonly */
  10072. Array<UIElement> children;
  10073. IntRect clipBorder;
  10074. bool clipChildren;
  10075. /* writeonly */
  10076. Color color;
  10077. /* readonly */
  10078. bool colorGradient;
  10079. Array<Color> colors;
  10080. /* readonly */
  10081. IntRect combinedScreenRect;
  10082. XMLFile defaultStyle;
  10083. /* readonly */
  10084. float derivedOpacity;
  10085. /* readonly */
  10086. uint dragButtonCombo;
  10087. /* readonly */
  10088. int dragButtonCount;
  10089. uint dragDropMode;
  10090. bool editable;
  10091. Color effectColor;
  10092. bool elementEventSender;
  10093. bool enabled;
  10094. /* readonly */
  10095. bool enabledSelf;
  10096. /* readonly */
  10097. bool fixedHeight;
  10098. /* readonly */
  10099. bool fixedSize;
  10100. /* readonly */
  10101. bool fixedWidth;
  10102. bool focus;
  10103. FocusMode focusMode;
  10104. /* readonly */
  10105. Font font;
  10106. /* readonly */
  10107. int fontSize;
  10108. int height;
  10109. HorizontalAlignment horizontalAlignment;
  10110. Color hoverColor;
  10111. /* readonly */
  10112. bool hovering;
  10113. int indent;
  10114. int indentSpacing;
  10115. /* readonly */
  10116. int indentWidth;
  10117. bool internal;
  10118. IntRect layoutBorder;
  10119. Vector2 layoutFlexScale;
  10120. LayoutMode layoutMode;
  10121. int layoutSpacing;
  10122. int maxHeight;
  10123. IntVector2 maxSize;
  10124. int maxWidth;
  10125. int minHeight;
  10126. IntVector2 minSize;
  10127. int minWidth;
  10128. String name;
  10129. /* readonly */
  10130. uint numAllChildren;
  10131. /* readonly */
  10132. uint numAttributes;
  10133. /* readonly */
  10134. uint numChars;
  10135. /* readonly */
  10136. uint numChildren;
  10137. /* readonly */
  10138. uint numRows;
  10139. ObjectAnimation objectAnimation;
  10140. float opacity;
  10141. UIElement parent;
  10142. IntVector2 position;
  10143. int priority;
  10144. /* readonly */
  10145. int refs;
  10146. /* readonly */
  10147. UIElement root;
  10148. /* readonly */
  10149. int rowHeight;
  10150. float rowSpacing;
  10151. /* readonly */
  10152. Array<int> rowWidths;
  10153. /* readonly */
  10154. IntVector2 screenPosition;
  10155. bool selected;
  10156. Color selectionColor;
  10157. /* readonly */
  10158. uint selectionLength;
  10159. /* readonly */
  10160. uint selectionStart;
  10161. IntVector2 size;
  10162. bool sortChildren;
  10163. String style;
  10164. bool temporary;
  10165. String text;
  10166. HorizontalAlignment textAlignment;
  10167. TextEffect textEffect;
  10168. TraversalMode traversalMode;
  10169. /* readonly */
  10170. StringHash type;
  10171. /* readonly */
  10172. String typeName;
  10173. bool useDerivedOpacity;
  10174. /* readonly */
  10175. VariantMap vars;
  10176. VerticalAlignment verticalAlignment;
  10177. bool visible;
  10178. /* readonly */
  10179. int weakRefs;
  10180. int width;
  10181. bool wordwrap;
  10182. };
  10183. class Text3D
  10184. {
  10185. // Methods:
  10186. void ApplyAttributes();
  10187. void DrawDebugGeometry(DebugRenderer, bool);
  10188. Variant GetAttribute(const String&) const;
  10189. ValueAnimation GetAttributeAnimation(const String&) const;
  10190. float GetAttributeAnimationSpeed(const String&) const;
  10191. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10192. Variant GetAttributeDefault(const String&) const;
  10193. bool GetInterceptNetworkUpdate(const String&) const;
  10194. bool IsInView(Camera) 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. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10207. bool SetAttribute(const String&, const Variant&);
  10208. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10209. void SetAttributeAnimationSpeed(const String&, float);
  10210. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10211. bool SetFont(Font, int);
  10212. bool SetFont(const String&, int);
  10213. void SetInterceptNetworkUpdate(const String&, bool);
  10214. // Properties:
  10215. bool animationEnabled;
  10216. /* readonly */
  10217. Array<Variant> attributeDefaults;
  10218. /* readonly */
  10219. Array<AttributeInfo> attributeInfos;
  10220. Array<Variant> attributes;
  10221. /* readonly */
  10222. StringHash baseType;
  10223. /* readonly */
  10224. BoundingBox boundingBox;
  10225. bool castShadows;
  10226. /* readonly */
  10227. String category;
  10228. /* readonly */
  10229. Array<IntVector2> charPositions;
  10230. /* readonly */
  10231. Array<IntVector2> charSizes;
  10232. /* writeonly */
  10233. Color color;
  10234. Array<Color> colors;
  10235. float drawDistance;
  10236. Color effectColor;
  10237. float effectDepthBias;
  10238. bool enabled;
  10239. /* readonly */
  10240. bool enabledEffective;
  10241. FaceCameraMode faceCameraMode;
  10242. /* readonly */
  10243. Font font;
  10244. /* readonly */
  10245. int fontSize;
  10246. HorizontalAlignment horizontalAlignment;
  10247. /* readonly */
  10248. uint id;
  10249. /* readonly */
  10250. bool inView;
  10251. uint lightMask;
  10252. float lodBias;
  10253. Material material;
  10254. uint maxLights;
  10255. /* readonly */
  10256. Node node;
  10257. /* readonly */
  10258. uint numAttributes;
  10259. /* readonly */
  10260. uint numChars;
  10261. /* readonly */
  10262. uint numRows;
  10263. ObjectAnimation objectAnimation;
  10264. bool occludee;
  10265. bool occluder;
  10266. float opacity;
  10267. /* readonly */
  10268. int refs;
  10269. /* readonly */
  10270. int rowHeight;
  10271. float rowSpacing;
  10272. /* readonly */
  10273. Array<int> rowWidths;
  10274. float shadowDistance;
  10275. uint shadowMask;
  10276. bool temporary;
  10277. String text;
  10278. HorizontalAlignment textAlignment;
  10279. TextEffect textEffect;
  10280. /* readonly */
  10281. StringHash type;
  10282. /* readonly */
  10283. String typeName;
  10284. VerticalAlignment verticalAlignment;
  10285. uint viewMask;
  10286. /* readonly */
  10287. int weakRefs;
  10288. int width;
  10289. bool wordwrap;
  10290. /* readonly */
  10291. BoundingBox worldBoundingBox;
  10292. uint zoneMask;
  10293. };
  10294. class Texture
  10295. {
  10296. // Methods:
  10297. void ClearDataLost();
  10298. bool Load(File);
  10299. bool Load(VectorBuffer&);
  10300. bool Save(File) const;
  10301. bool Save(VectorBuffer&) const;
  10302. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10303. void SetNumLevels(uint);
  10304. // Properties:
  10305. Array<TextureAddressMode> addressMode;
  10306. Texture backupTexture;
  10307. /* readonly */
  10308. StringHash baseType;
  10309. Color borderColor;
  10310. /* readonly */
  10311. String category;
  10312. /* readonly */
  10313. bool compressed;
  10314. /* readonly */
  10315. bool dataLost;
  10316. TextureFilterMode filterMode;
  10317. /* readonly */
  10318. uint format;
  10319. /* readonly */
  10320. int height;
  10321. /* readonly */
  10322. Array<int> levelHeight;
  10323. /* readonly */
  10324. Array<int> levelWidth;
  10325. /* readonly */
  10326. uint levels;
  10327. /* readonly */
  10328. uint memoryUse;
  10329. Array<int> mipsToSkip;
  10330. String name;
  10331. /* readonly */
  10332. int refs;
  10333. bool sRGB;
  10334. /* readonly */
  10335. StringHash type;
  10336. /* readonly */
  10337. String typeName;
  10338. /* readonly */
  10339. TextureUsage usage;
  10340. /* readonly */
  10341. uint useTimer;
  10342. /* readonly */
  10343. int weakRefs;
  10344. /* readonly */
  10345. int width;
  10346. };
  10347. class Texture2D
  10348. {
  10349. // Methods:
  10350. void ClearDataLost();
  10351. bool Load(File);
  10352. bool Load(VectorBuffer&);
  10353. bool Save(File) const;
  10354. bool Save(VectorBuffer&) const;
  10355. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10356. bool SetData(Image, bool = false);
  10357. void SetNumLevels(uint);
  10358. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10359. // Properties:
  10360. Array<TextureAddressMode> addressMode;
  10361. Texture backupTexture;
  10362. /* readonly */
  10363. StringHash baseType;
  10364. Color borderColor;
  10365. /* readonly */
  10366. String category;
  10367. /* readonly */
  10368. bool compressed;
  10369. /* readonly */
  10370. bool dataLost;
  10371. TextureFilterMode filterMode;
  10372. /* readonly */
  10373. uint format;
  10374. /* readonly */
  10375. int height;
  10376. /* readonly */
  10377. Array<int> levelHeight;
  10378. /* readonly */
  10379. Array<int> levelWidth;
  10380. /* readonly */
  10381. uint levels;
  10382. /* readonly */
  10383. uint memoryUse;
  10384. Array<int> mipsToSkip;
  10385. String name;
  10386. /* readonly */
  10387. int refs;
  10388. /* readonly */
  10389. RenderSurface renderSurface;
  10390. bool sRGB;
  10391. /* readonly */
  10392. StringHash type;
  10393. /* readonly */
  10394. String typeName;
  10395. /* readonly */
  10396. TextureUsage usage;
  10397. /* readonly */
  10398. uint useTimer;
  10399. /* readonly */
  10400. int weakRefs;
  10401. /* readonly */
  10402. int width;
  10403. };
  10404. class Texture3D
  10405. {
  10406. // Methods:
  10407. void ClearDataLost();
  10408. bool Load(File);
  10409. bool Load(VectorBuffer&);
  10410. bool Save(File) const;
  10411. bool Save(VectorBuffer&) const;
  10412. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10413. bool SetData(Image, bool = false);
  10414. void SetNumLevels(uint);
  10415. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10416. // Properties:
  10417. Array<TextureAddressMode> addressMode;
  10418. Texture backupTexture;
  10419. /* readonly */
  10420. StringHash baseType;
  10421. Color borderColor;
  10422. /* readonly */
  10423. String category;
  10424. /* readonly */
  10425. bool compressed;
  10426. /* readonly */
  10427. bool dataLost;
  10428. TextureFilterMode filterMode;
  10429. /* readonly */
  10430. uint format;
  10431. /* readonly */
  10432. int height;
  10433. /* readonly */
  10434. Array<int> levelHeight;
  10435. /* readonly */
  10436. Array<int> levelWidth;
  10437. /* readonly */
  10438. uint levels;
  10439. /* readonly */
  10440. uint memoryUse;
  10441. Array<int> mipsToSkip;
  10442. String name;
  10443. /* readonly */
  10444. int refs;
  10445. /* readonly */
  10446. RenderSurface renderSurface;
  10447. bool sRGB;
  10448. /* readonly */
  10449. StringHash type;
  10450. /* readonly */
  10451. String typeName;
  10452. /* readonly */
  10453. TextureUsage usage;
  10454. /* readonly */
  10455. uint useTimer;
  10456. /* readonly */
  10457. int weakRefs;
  10458. /* readonly */
  10459. int width;
  10460. };
  10461. class TextureCube
  10462. {
  10463. // Methods:
  10464. void ClearDataLost();
  10465. bool Load(File);
  10466. bool Load(VectorBuffer&);
  10467. bool Save(File) const;
  10468. bool Save(VectorBuffer&) const;
  10469. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10470. bool SetData(CubeMapFace, Image, bool = false);
  10471. void SetNumLevels(uint);
  10472. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  10473. // Properties:
  10474. Array<TextureAddressMode> addressMode;
  10475. Texture backupTexture;
  10476. /* readonly */
  10477. StringHash baseType;
  10478. Color borderColor;
  10479. /* readonly */
  10480. String category;
  10481. /* readonly */
  10482. bool compressed;
  10483. /* readonly */
  10484. bool dataLost;
  10485. TextureFilterMode filterMode;
  10486. /* readonly */
  10487. uint format;
  10488. /* readonly */
  10489. int height;
  10490. /* readonly */
  10491. Array<int> levelHeight;
  10492. /* readonly */
  10493. Array<int> levelWidth;
  10494. /* readonly */
  10495. uint levels;
  10496. /* readonly */
  10497. uint memoryUse;
  10498. Array<int> mipsToSkip;
  10499. String name;
  10500. /* readonly */
  10501. int refs;
  10502. /* readonly */
  10503. Array<RenderSurface> renderSurfaces;
  10504. bool sRGB;
  10505. /* readonly */
  10506. StringHash type;
  10507. /* readonly */
  10508. String typeName;
  10509. /* readonly */
  10510. TextureUsage usage;
  10511. /* readonly */
  10512. uint useTimer;
  10513. /* readonly */
  10514. int weakRefs;
  10515. /* readonly */
  10516. int width;
  10517. };
  10518. class TextureFrame
  10519. {
  10520. // Properties:
  10521. float time;
  10522. Rect uv;
  10523. };
  10524. class Tile2D
  10525. {
  10526. // Methods:
  10527. bool HasProperty(const String&) const;
  10528. const String& GetProperty(const String&) const;
  10529. // Properties:
  10530. /* readonly */
  10531. int gid;
  10532. /* readonly */
  10533. int refs;
  10534. /* readonly */
  10535. Sprite2D sprite;
  10536. /* readonly */
  10537. int weakRefs;
  10538. };
  10539. class TileMap2D
  10540. {
  10541. // Methods:
  10542. void ApplyAttributes();
  10543. void DrawDebugGeometry(DebugRenderer, bool);
  10544. Variant GetAttribute(const String&) const;
  10545. ValueAnimation GetAttributeAnimation(const String&) const;
  10546. float GetAttributeAnimationSpeed(const String&) const;
  10547. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10548. Variant GetAttributeDefault(const String&) const;
  10549. bool GetInterceptNetworkUpdate(const String&) const;
  10550. TileMapLayer2D GetLayer(uint) const;
  10551. bool Load(File, bool = false);
  10552. bool Load(VectorBuffer&, bool = false);
  10553. bool LoadXML(const XMLElement&, bool = false);
  10554. void MarkNetworkUpdate() const;
  10555. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  10556. void Remove();
  10557. void RemoveInstanceDefault();
  10558. void ResetToDefault();
  10559. bool Save(File) const;
  10560. bool Save(VectorBuffer&) const;
  10561. bool SaveXML(XMLElement&) const;
  10562. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10563. bool SetAttribute(const String&, const Variant&);
  10564. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10565. void SetAttributeAnimationSpeed(const String&, float);
  10566. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10567. void SetInterceptNetworkUpdate(const String&, bool);
  10568. Vector2 TileIndexToPosition(int, int) const;
  10569. // Properties:
  10570. bool animationEnabled;
  10571. /* readonly */
  10572. Array<Variant> attributeDefaults;
  10573. /* readonly */
  10574. Array<AttributeInfo> attributeInfos;
  10575. Array<Variant> attributes;
  10576. /* readonly */
  10577. StringHash baseType;
  10578. /* readonly */
  10579. String category;
  10580. bool enabled;
  10581. /* readonly */
  10582. bool enabledEffective;
  10583. /* readonly */
  10584. uint id;
  10585. /* readonly */
  10586. TileMapInfo2D info;
  10587. /* readonly */
  10588. Node node;
  10589. /* readonly */
  10590. uint numAttributes;
  10591. /* readonly */
  10592. uint numLayers;
  10593. ObjectAnimation objectAnimation;
  10594. /* readonly */
  10595. int refs;
  10596. bool temporary;
  10597. TmxFile2D tmxFile;
  10598. /* readonly */
  10599. StringHash type;
  10600. /* readonly */
  10601. String typeName;
  10602. /* readonly */
  10603. int weakRefs;
  10604. };
  10605. class TileMapInfo2D
  10606. {
  10607. // Properties:
  10608. int height;
  10609. /* readonly */
  10610. float mapHeight;
  10611. /* readonly */
  10612. float mapWidth;
  10613. Orientation2D orientation;
  10614. float tileHeight;
  10615. float tileWidth;
  10616. int width;
  10617. };
  10618. class TileMapLayer2D
  10619. {
  10620. // Methods:
  10621. void ApplyAttributes();
  10622. void DrawDebugGeometry(DebugRenderer, bool);
  10623. Variant GetAttribute(const String&) const;
  10624. ValueAnimation GetAttributeAnimation(const String&) const;
  10625. float GetAttributeAnimationSpeed(const String&) const;
  10626. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10627. Variant GetAttributeDefault(const String&) const;
  10628. bool GetInterceptNetworkUpdate(const String&) const;
  10629. TileMapObject2D GetObject(uint) const;
  10630. Node GetObjectNode(uint) const;
  10631. Tile2D GetTile(int, int) const;
  10632. Node GetTileNode(int, int) const;
  10633. bool HasProperty(const String&) const;
  10634. bool Load(File, bool = false);
  10635. bool Load(VectorBuffer&, bool = false);
  10636. bool LoadXML(const XMLElement&, bool = false);
  10637. void MarkNetworkUpdate() const;
  10638. void Remove();
  10639. void RemoveInstanceDefault();
  10640. void ResetToDefault();
  10641. bool Save(File) const;
  10642. bool Save(VectorBuffer&) const;
  10643. bool SaveXML(XMLElement&) const;
  10644. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10645. bool SetAttribute(const String&, const Variant&);
  10646. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10647. void SetAttributeAnimationSpeed(const String&, float);
  10648. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10649. void SetInterceptNetworkUpdate(const String&, bool);
  10650. const String& GetProperty(const String&) const;
  10651. // Properties:
  10652. bool animationEnabled;
  10653. /* readonly */
  10654. Array<Variant> attributeDefaults;
  10655. /* readonly */
  10656. Array<AttributeInfo> attributeInfos;
  10657. Array<Variant> attributes;
  10658. /* readonly */
  10659. StringHash baseType;
  10660. /* readonly */
  10661. String category;
  10662. int drawOrder;
  10663. bool enabled;
  10664. /* readonly */
  10665. bool enabledEffective;
  10666. /* readonly */
  10667. int height;
  10668. /* readonly */
  10669. uint id;
  10670. /* readonly */
  10671. Node imageNode;
  10672. /* readonly */
  10673. TileMapLayerType2D layerType;
  10674. /* readonly */
  10675. Node node;
  10676. /* readonly */
  10677. uint numAttributes;
  10678. /* readonly */
  10679. uint numObjects;
  10680. ObjectAnimation objectAnimation;
  10681. /* readonly */
  10682. int refs;
  10683. bool temporary;
  10684. /* readonly */
  10685. StringHash type;
  10686. /* readonly */
  10687. String typeName;
  10688. bool visible;
  10689. /* readonly */
  10690. int weakRefs;
  10691. /* readonly */
  10692. int width;
  10693. };
  10694. class TileMapObject2D
  10695. {
  10696. // Methods:
  10697. bool HasProperty(const String&) const;
  10698. const String& GetProperty(const String&) const;
  10699. const Vector2& GetPoint(uint) const;
  10700. // Properties:
  10701. /* readonly */
  10702. String name;
  10703. /* readonly */
  10704. uint numPoints;
  10705. /* readonly */
  10706. TileObjectType2D objectType;
  10707. /* readonly */
  10708. Vector2 position;
  10709. /* readonly */
  10710. int refs;
  10711. /* readonly */
  10712. Vector2 size;
  10713. /* readonly */
  10714. int tileGid;
  10715. /* readonly */
  10716. Sprite2D tileSprite;
  10717. /* readonly */
  10718. String type;
  10719. /* readonly */
  10720. int weakRefs;
  10721. };
  10722. class Time
  10723. {
  10724. // Methods:
  10725. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10726. // Properties:
  10727. /* readonly */
  10728. StringHash baseType;
  10729. /* readonly */
  10730. String category;
  10731. /* readonly */
  10732. float elapsedTime;
  10733. /* readonly */
  10734. uint frameNumber;
  10735. /* readonly */
  10736. int refs;
  10737. /* readonly */
  10738. uint systemTime;
  10739. /* readonly */
  10740. uint timeSinceEpoch;
  10741. /* readonly */
  10742. String timeStamp;
  10743. /* readonly */
  10744. float timeStep;
  10745. /* readonly */
  10746. StringHash type;
  10747. /* readonly */
  10748. String typeName;
  10749. /* readonly */
  10750. int weakRefs;
  10751. };
  10752. class Timer
  10753. {
  10754. // Methods:
  10755. uint GetMSec(bool);
  10756. void Reset();
  10757. };
  10758. class TmxFile2D
  10759. {
  10760. // Methods:
  10761. bool Load(File);
  10762. bool Load(VectorBuffer&);
  10763. bool Save(File) const;
  10764. bool Save(VectorBuffer&) const;
  10765. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10766. // Properties:
  10767. /* readonly */
  10768. StringHash baseType;
  10769. /* readonly */
  10770. String category;
  10771. /* readonly */
  10772. uint memoryUse;
  10773. String name;
  10774. /* readonly */
  10775. int refs;
  10776. /* readonly */
  10777. StringHash type;
  10778. /* readonly */
  10779. String typeName;
  10780. /* readonly */
  10781. uint useTimer;
  10782. /* readonly */
  10783. int weakRefs;
  10784. };
  10785. class ToolTip
  10786. {
  10787. // Methods:
  10788. void AddChild(UIElement);
  10789. void ApplyAttributes();
  10790. void BringToFront();
  10791. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10792. void DisableLayoutUpdate();
  10793. IntVector2 ElementToScreen(const IntVector2&);
  10794. void EnableLayoutUpdate();
  10795. uint FindChild(UIElement) const;
  10796. Variant GetAttribute(const String&) const;
  10797. ValueAnimation GetAttributeAnimation(const String&) const;
  10798. float GetAttributeAnimationSpeed(const String&) const;
  10799. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10800. Variant GetAttributeDefault(const String&) const;
  10801. UIElement GetChild(const String&, bool = false) const;
  10802. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10803. Array<UIElement> GetChildren(bool = false) const;
  10804. UIElement GetElementEventSender() const;
  10805. bool GetInterceptNetworkUpdate(const String&) const;
  10806. uint GetNumChildren(bool) const;
  10807. void InsertChild(uint, UIElement);
  10808. bool IsInside(IntVector2, bool);
  10809. bool IsInsideCombined(IntVector2, bool);
  10810. bool Load(File, bool = false);
  10811. bool Load(VectorBuffer&, bool = false);
  10812. bool LoadChildXML(XMLFile, XMLFile = null);
  10813. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10814. bool LoadXML(File);
  10815. bool LoadXML(VectorBuffer&);
  10816. bool LoadXML(XMLFile, XMLFile);
  10817. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10818. bool LoadXML(const XMLElement&, bool = false);
  10819. void MarkNetworkUpdate() const;
  10820. void Remove();
  10821. void RemoveAllChildren();
  10822. void RemoveChild(UIElement, uint = 0);
  10823. void RemoveChild(uint);
  10824. void RemoveInstanceDefault();
  10825. void ResetDeepEnabled();
  10826. void ResetToDefault();
  10827. bool Save(File) const;
  10828. bool Save(VectorBuffer&) const;
  10829. bool SaveXML(File, const String& = "\t");
  10830. bool SaveXML(VectorBuffer&, const String& = "\t");
  10831. bool SaveXML(XMLElement&) const;
  10832. IntVector2 ScreenToElement(const IntVector2&);
  10833. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10834. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10835. bool SetAttribute(const String&, const Variant&);
  10836. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10837. void SetAttributeAnimationSpeed(const String&, float);
  10838. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10839. void SetDeepEnabled(bool);
  10840. void SetEnabledRecursive(bool);
  10841. void SetFixedHeight(int);
  10842. void SetFixedSize(int, int);
  10843. void SetFixedWidth(int);
  10844. void SetInterceptNetworkUpdate(const String&, bool);
  10845. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10846. void SetMaxSize(int, int);
  10847. void SetMinSize(int, int);
  10848. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10849. void SetPosition(int, int);
  10850. void SetSize(int, int);
  10851. bool SetStyle(const String&, XMLFile = null);
  10852. bool SetStyle(const XMLElement&);
  10853. bool SetStyleAuto(XMLFile = null);
  10854. void UpdateLayout();
  10855. const Variant& GetVar(const StringHash&);
  10856. // Properties:
  10857. bool animationEnabled;
  10858. /* readonly */
  10859. Array<Variant> attributeDefaults;
  10860. /* readonly */
  10861. Array<AttributeInfo> attributeInfos;
  10862. Array<Variant> attributes;
  10863. /* readonly */
  10864. StringHash baseType;
  10865. bool bringToBack;
  10866. bool bringToFront;
  10867. /* readonly */
  10868. String category;
  10869. /* readonly */
  10870. IntVector2 childOffset;
  10871. /* readonly */
  10872. Array<UIElement> children;
  10873. IntRect clipBorder;
  10874. bool clipChildren;
  10875. /* writeonly */
  10876. Color color;
  10877. /* readonly */
  10878. bool colorGradient;
  10879. Array<Color> colors;
  10880. /* readonly */
  10881. IntRect combinedScreenRect;
  10882. XMLFile defaultStyle;
  10883. float delay;
  10884. /* readonly */
  10885. float derivedOpacity;
  10886. /* readonly */
  10887. uint dragButtonCombo;
  10888. /* readonly */
  10889. int dragButtonCount;
  10890. uint dragDropMode;
  10891. bool editable;
  10892. bool elementEventSender;
  10893. bool enabled;
  10894. /* readonly */
  10895. bool enabledSelf;
  10896. /* readonly */
  10897. bool fixedHeight;
  10898. /* readonly */
  10899. bool fixedSize;
  10900. /* readonly */
  10901. bool fixedWidth;
  10902. bool focus;
  10903. FocusMode focusMode;
  10904. int height;
  10905. HorizontalAlignment horizontalAlignment;
  10906. /* readonly */
  10907. bool hovering;
  10908. int indent;
  10909. int indentSpacing;
  10910. /* readonly */
  10911. int indentWidth;
  10912. bool internal;
  10913. IntRect layoutBorder;
  10914. Vector2 layoutFlexScale;
  10915. LayoutMode layoutMode;
  10916. int layoutSpacing;
  10917. int maxHeight;
  10918. IntVector2 maxSize;
  10919. int maxWidth;
  10920. int minHeight;
  10921. IntVector2 minSize;
  10922. int minWidth;
  10923. String name;
  10924. /* readonly */
  10925. uint numAllChildren;
  10926. /* readonly */
  10927. uint numAttributes;
  10928. /* readonly */
  10929. uint numChildren;
  10930. ObjectAnimation objectAnimation;
  10931. float opacity;
  10932. UIElement parent;
  10933. IntVector2 position;
  10934. int priority;
  10935. /* readonly */
  10936. int refs;
  10937. /* readonly */
  10938. UIElement root;
  10939. /* readonly */
  10940. IntVector2 screenPosition;
  10941. bool selected;
  10942. IntVector2 size;
  10943. bool sortChildren;
  10944. String style;
  10945. bool temporary;
  10946. TraversalMode traversalMode;
  10947. /* readonly */
  10948. StringHash type;
  10949. /* readonly */
  10950. String typeName;
  10951. bool useDerivedOpacity;
  10952. /* readonly */
  10953. VariantMap vars;
  10954. VerticalAlignment verticalAlignment;
  10955. bool visible;
  10956. /* readonly */
  10957. int weakRefs;
  10958. int width;
  10959. };
  10960. class TouchState
  10961. {
  10962. // Properties:
  10963. IntVector2 delta;
  10964. IntVector2 lastPosition;
  10965. IntVector2 position;
  10966. float pressure;
  10967. int touchID;
  10968. /* readonly */
  10969. UIElement touchedElement;
  10970. };
  10971. class UI
  10972. {
  10973. // Methods:
  10974. void Clear();
  10975. void DebugDraw(UIElement);
  10976. UIElement GetElementAt(const IntVector2&, bool = true);
  10977. UIElement GetElementAt(int, int, bool = true);
  10978. bool HasModalElement() const;
  10979. bool IsDragging() const;
  10980. UIElement LoadLayout(File);
  10981. UIElement LoadLayout(File, XMLFile);
  10982. UIElement LoadLayout(VectorBuffer&);
  10983. UIElement LoadLayout(VectorBuffer&, XMLFile);
  10984. UIElement LoadLayout(XMLFile);
  10985. UIElement LoadLayout(XMLFile, XMLFile);
  10986. bool SaveLayout(File, UIElement);
  10987. bool SaveLayout(VectorBuffer&, UIElement);
  10988. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10989. void SetFocusElement(UIElement, bool = false);
  10990. const Array<UIElement> GetDragElements();
  10991. // Properties:
  10992. /* readonly */
  10993. StringHash baseType;
  10994. /* readonly */
  10995. String category;
  10996. String clipBoardText;
  10997. Cursor cursor;
  10998. /* readonly */
  10999. IntVector2 cursorPosition;
  11000. float defaultToolTipDelay;
  11001. float doubleClickInterval;
  11002. int dragBeginDistance;
  11003. float dragBeginInterval;
  11004. UIElement focusElement;
  11005. bool forceAutoHint;
  11006. /* readonly */
  11007. UIElement frontElement;
  11008. int maxFontTextureSize;
  11009. /* readonly */
  11010. UIElement modalRoot;
  11011. bool nonFocusedMouseWheel;
  11012. /* readonly */
  11013. int refs;
  11014. /* readonly */
  11015. UIElement root;
  11016. /* readonly */
  11017. StringHash type;
  11018. /* readonly */
  11019. String typeName;
  11020. bool useMutableGlyphs;
  11021. bool useScreenKeyboard;
  11022. bool useSystemClipboard;
  11023. /* readonly */
  11024. int weakRefs;
  11025. };
  11026. class UIElement
  11027. {
  11028. // Methods:
  11029. void AddChild(UIElement);
  11030. void ApplyAttributes();
  11031. void BringToFront();
  11032. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11033. void DisableLayoutUpdate();
  11034. IntVector2 ElementToScreen(const IntVector2&);
  11035. void EnableLayoutUpdate();
  11036. uint FindChild(UIElement) const;
  11037. Variant GetAttribute(const String&) const;
  11038. ValueAnimation GetAttributeAnimation(const String&) const;
  11039. float GetAttributeAnimationSpeed(const String&) const;
  11040. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11041. Variant GetAttributeDefault(const String&) const;
  11042. UIElement GetChild(const String&, bool = false) const;
  11043. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11044. Array<UIElement> GetChildren(bool = false) const;
  11045. UIElement GetElementEventSender() const;
  11046. bool GetInterceptNetworkUpdate(const String&) const;
  11047. uint GetNumChildren(bool) const;
  11048. void InsertChild(uint, UIElement);
  11049. bool IsInside(IntVector2, bool);
  11050. bool IsInsideCombined(IntVector2, bool);
  11051. bool Load(File, bool = false);
  11052. bool Load(VectorBuffer&, bool = false);
  11053. bool LoadChildXML(XMLFile, XMLFile = null);
  11054. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11055. bool LoadXML(File);
  11056. bool LoadXML(VectorBuffer&);
  11057. bool LoadXML(XMLFile, XMLFile);
  11058. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11059. bool LoadXML(const XMLElement&, bool = false);
  11060. void MarkNetworkUpdate() const;
  11061. void Remove();
  11062. void RemoveAllChildren();
  11063. void RemoveChild(UIElement, uint = 0);
  11064. void RemoveChild(uint);
  11065. void RemoveInstanceDefault();
  11066. void ResetDeepEnabled();
  11067. void ResetToDefault();
  11068. bool Save(File) const;
  11069. bool Save(VectorBuffer&) const;
  11070. bool SaveXML(File, const String& = "\t");
  11071. bool SaveXML(VectorBuffer&, const String& = "\t");
  11072. bool SaveXML(XMLElement&) const;
  11073. IntVector2 ScreenToElement(const IntVector2&);
  11074. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11075. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11076. bool SetAttribute(const String&, const Variant&);
  11077. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11078. void SetAttributeAnimationSpeed(const String&, float);
  11079. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11080. void SetDeepEnabled(bool);
  11081. void SetEnabledRecursive(bool);
  11082. void SetFixedHeight(int);
  11083. void SetFixedSize(int, int);
  11084. void SetFixedWidth(int);
  11085. void SetInterceptNetworkUpdate(const String&, bool);
  11086. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11087. void SetMaxSize(int, int);
  11088. void SetMinSize(int, int);
  11089. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11090. void SetPosition(int, int);
  11091. void SetSize(int, int);
  11092. bool SetStyle(const String&, XMLFile = null);
  11093. bool SetStyle(const XMLElement&);
  11094. bool SetStyleAuto(XMLFile = null);
  11095. void UpdateLayout();
  11096. const Variant& GetVar(const StringHash&);
  11097. // Properties:
  11098. bool animationEnabled;
  11099. /* readonly */
  11100. Array<Variant> attributeDefaults;
  11101. /* readonly */
  11102. Array<AttributeInfo> attributeInfos;
  11103. Array<Variant> attributes;
  11104. /* readonly */
  11105. StringHash baseType;
  11106. bool bringToBack;
  11107. bool bringToFront;
  11108. /* readonly */
  11109. String category;
  11110. /* readonly */
  11111. IntVector2 childOffset;
  11112. /* readonly */
  11113. Array<UIElement> children;
  11114. IntRect clipBorder;
  11115. bool clipChildren;
  11116. /* writeonly */
  11117. Color color;
  11118. /* readonly */
  11119. bool colorGradient;
  11120. Array<Color> colors;
  11121. /* readonly */
  11122. IntRect combinedScreenRect;
  11123. XMLFile defaultStyle;
  11124. /* readonly */
  11125. float derivedOpacity;
  11126. /* readonly */
  11127. uint dragButtonCombo;
  11128. /* readonly */
  11129. int dragButtonCount;
  11130. uint dragDropMode;
  11131. bool editable;
  11132. bool elementEventSender;
  11133. bool enabled;
  11134. /* readonly */
  11135. bool enabledSelf;
  11136. /* readonly */
  11137. bool fixedHeight;
  11138. /* readonly */
  11139. bool fixedSize;
  11140. /* readonly */
  11141. bool fixedWidth;
  11142. bool focus;
  11143. FocusMode focusMode;
  11144. int height;
  11145. HorizontalAlignment horizontalAlignment;
  11146. /* readonly */
  11147. bool hovering;
  11148. int indent;
  11149. int indentSpacing;
  11150. /* readonly */
  11151. int indentWidth;
  11152. bool internal;
  11153. IntRect layoutBorder;
  11154. Vector2 layoutFlexScale;
  11155. LayoutMode layoutMode;
  11156. int layoutSpacing;
  11157. int maxHeight;
  11158. IntVector2 maxSize;
  11159. int maxWidth;
  11160. int minHeight;
  11161. IntVector2 minSize;
  11162. int minWidth;
  11163. String name;
  11164. /* readonly */
  11165. uint numAllChildren;
  11166. /* readonly */
  11167. uint numAttributes;
  11168. /* readonly */
  11169. uint numChildren;
  11170. ObjectAnimation objectAnimation;
  11171. float opacity;
  11172. UIElement parent;
  11173. IntVector2 position;
  11174. int priority;
  11175. /* readonly */
  11176. int refs;
  11177. /* readonly */
  11178. UIElement root;
  11179. /* readonly */
  11180. IntVector2 screenPosition;
  11181. bool selected;
  11182. IntVector2 size;
  11183. bool sortChildren;
  11184. String style;
  11185. bool temporary;
  11186. TraversalMode traversalMode;
  11187. /* readonly */
  11188. StringHash type;
  11189. /* readonly */
  11190. String typeName;
  11191. bool useDerivedOpacity;
  11192. /* readonly */
  11193. VariantMap vars;
  11194. VerticalAlignment verticalAlignment;
  11195. bool visible;
  11196. /* readonly */
  11197. int weakRefs;
  11198. int width;
  11199. };
  11200. class ValueAnimation
  11201. {
  11202. // Methods:
  11203. bool Load(File);
  11204. bool Load(VectorBuffer&);
  11205. bool Save(File) const;
  11206. bool Save(VectorBuffer&) const;
  11207. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11208. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  11209. void SetKeyFrame(float, const Variant&);
  11210. // Properties:
  11211. /* readonly */
  11212. StringHash baseType;
  11213. /* readonly */
  11214. String category;
  11215. InterpMethod interpolationMethod;
  11216. /* readonly */
  11217. uint memoryUse;
  11218. String name;
  11219. /* readonly */
  11220. int refs;
  11221. float splineTension;
  11222. /* readonly */
  11223. StringHash type;
  11224. /* readonly */
  11225. String typeName;
  11226. /* readonly */
  11227. uint useTimer;
  11228. VariantType valueType;
  11229. /* readonly */
  11230. int weakRefs;
  11231. };
  11232. class Variant
  11233. {
  11234. // Methods:
  11235. void Clear();
  11236. const Color& GetColor() const;
  11237. void FromString(VariantType, const String&);
  11238. void FromString(const String&, const String&);
  11239. bool GetBool() const;
  11240. VectorBuffer GetBuffer() const;
  11241. float GetFloat() const;
  11242. int GetInt() const;
  11243. RefCounted GetPtr() const;
  11244. ScriptObject GetScriptObject() const;
  11245. StringHash GetStringHash() const;
  11246. uint GetUInt() const;
  11247. Array<Variant> GetVariantVector() const;
  11248. const IntRect& GetIntRect() const;
  11249. const IntVector2& GetIntVector2() const;
  11250. const Matrix3& GetMatrix3() const;
  11251. const Matrix3x4& GetMatrix3x4() const;
  11252. const Matrix4& GetMatrix4() const;
  11253. const Quaternion& GetQuaternion() const;
  11254. const ResourceRef& GetResourceRef() const;
  11255. const ResourceRefList& GetResourceRefList() const;
  11256. const String& GetString() const;
  11257. String ToString() const;
  11258. const VariantMap& GetVariantMap() const;
  11259. const Vector2& GetVector2() const;
  11260. const Vector3& GetVector3() const;
  11261. const Vector4& GetVector4() const;
  11262. // Properties:
  11263. /* readonly */
  11264. bool empty;
  11265. /* readonly */
  11266. VariantType type;
  11267. /* readonly */
  11268. String typeName;
  11269. /* readonly */
  11270. bool zero;
  11271. };
  11272. class VariantMap
  11273. {
  11274. // Methods:
  11275. void Clear();
  11276. bool Contains(StringHash) const;
  11277. bool Contains(const String&) const;
  11278. bool Erase(StringHash);
  11279. bool Erase(const String&);
  11280. // Properties:
  11281. /* readonly */
  11282. Array<StringHash> keys;
  11283. /* readonly */
  11284. uint length;
  11285. /* readonly */
  11286. Array<Variant> values;
  11287. };
  11288. class Vector2
  11289. {
  11290. // Methods:
  11291. float AbsDotProduct(const Vector2&) const;
  11292. float DotProduct(const Vector2&) const;
  11293. bool Equals(const Vector2&) const;
  11294. bool IsNaN() const;
  11295. Vector2 Lerp(const Vector2&, float) const;
  11296. void Normalize();
  11297. Vector2 Normalized() const;
  11298. String ToString() const;
  11299. // Properties:
  11300. /* readonly */
  11301. Array<float> data;
  11302. /* readonly */
  11303. float length;
  11304. /* readonly */
  11305. float lengthSquared;
  11306. float x;
  11307. float y;
  11308. };
  11309. class Vector3
  11310. {
  11311. // Methods:
  11312. float AbsDotProduct(const Vector3&) const;
  11313. float Angle(const Vector3&) const;
  11314. Vector3 CrossProduct(const Vector3&) const;
  11315. float DotProduct(const Vector3&) const;
  11316. bool Equals(const Vector3&) const;
  11317. bool IsNaN() const;
  11318. Vector3 Lerp(const Vector3&, float) const;
  11319. void Normalize();
  11320. Vector3 Normalized() const;
  11321. String ToString() const;
  11322. // Properties:
  11323. /* readonly */
  11324. Array<float> data;
  11325. /* readonly */
  11326. float length;
  11327. /* readonly */
  11328. float lengthSquared;
  11329. float x;
  11330. float y;
  11331. float z;
  11332. };
  11333. class Vector4
  11334. {
  11335. // Methods:
  11336. float AbsDotProduct(const Vector4&) const;
  11337. float DotProduct(const Vector4&) const;
  11338. bool Equals(const Vector4&) const;
  11339. bool IsNaN() const;
  11340. Vector4 Lerp(const Vector4&, float) const;
  11341. String ToString() const;
  11342. // Properties:
  11343. /* readonly */
  11344. Array<float> data;
  11345. float w;
  11346. float x;
  11347. float y;
  11348. float z;
  11349. };
  11350. class VectorBuffer
  11351. {
  11352. // Methods:
  11353. void Clear();
  11354. Array<uint8> Read(uint);
  11355. bool ReadBool();
  11356. BoundingBox ReadBoundingBox();
  11357. int8 ReadByte();
  11358. Color ReadColor();
  11359. String ReadFileID();
  11360. float ReadFloat();
  11361. int ReadInt();
  11362. IntRect ReadIntRect();
  11363. IntVector2 ReadIntVector2();
  11364. String ReadLine();
  11365. Matrix3 ReadMatrix3();
  11366. Matrix3x4 ReadMatrix3x4();
  11367. Matrix4 ReadMatrix4();
  11368. uint ReadNetID();
  11369. Quaternion ReadPackedQuaternion();
  11370. Vector3 ReadPackedVector3(float);
  11371. Quaternion ReadQuaternion();
  11372. int16 ReadShort();
  11373. String ReadString();
  11374. StringHash ReadStringHash();
  11375. uint8 ReadUByte();
  11376. uint ReadUInt();
  11377. uint16 ReadUShort();
  11378. uint ReadVLE();
  11379. Variant ReadVariant();
  11380. VariantMap ReadVariantMap();
  11381. Vector2 ReadVector2();
  11382. Vector3 ReadVector3();
  11383. Vector4 ReadVector4();
  11384. VectorBuffer ReadVectorBuffer(uint);
  11385. void Resize(uint);
  11386. uint Seek(uint);
  11387. void SetData(Deserializer, uint);
  11388. uint Write(Array<uint8>);
  11389. bool WriteBool(bool);
  11390. bool WriteBoundingBox(const BoundingBox&);
  11391. bool WriteByte(int8);
  11392. bool WriteColor(const Color&);
  11393. bool WriteFileID(const String&);
  11394. bool WriteFloat(float);
  11395. bool WriteInt(int);
  11396. bool WriteIntRect(const IntRect&);
  11397. bool WriteIntVector2(const IntVector2&);
  11398. bool WriteLine(const String&);
  11399. bool WriteMatrix3(const Matrix3&);
  11400. bool WriteMatrix3x4(const Matrix3x4&);
  11401. bool WriteMatrix4(const Matrix4&);
  11402. bool WriteNetID(uint);
  11403. bool WritePackedQuaternion(const Quaternion&);
  11404. bool WritePackedVector3(const Vector3&, float);
  11405. bool WriteQuaternion(const Quaternion&);
  11406. bool WriteShort(int16);
  11407. bool WriteString(const String&);
  11408. bool WriteStringHash(const StringHash&);
  11409. bool WriteUByte(uint8);
  11410. bool WriteUInt(uint);
  11411. bool WriteUShort(uint16);
  11412. bool WriteVLE(uint);
  11413. bool WriteVariant(const Variant&);
  11414. bool WriteVariantMap(const VariantMap&);
  11415. bool WriteVector2(const Vector2&);
  11416. bool WriteVector3(const Vector3&);
  11417. bool WriteVector4(const Vector4&);
  11418. bool WriteVectorBuffer(const VectorBuffer&);
  11419. // Properties:
  11420. /* readonly */
  11421. uint checksum;
  11422. /* readonly */
  11423. bool eof;
  11424. /* readonly */
  11425. String name;
  11426. /* readonly */
  11427. uint position;
  11428. /* readonly */
  11429. uint size;
  11430. };
  11431. class VertexBuffer
  11432. {
  11433. // Methods:
  11434. VectorBuffer GetData();
  11435. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11436. bool SetData(VectorBuffer&);
  11437. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  11438. void SetSize(uint, uint, bool = false);
  11439. // Properties:
  11440. /* readonly */
  11441. StringHash baseType;
  11442. /* readonly */
  11443. String category;
  11444. /* readonly */
  11445. bool dynamic;
  11446. /* readonly */
  11447. uint elementMask;
  11448. /* readonly */
  11449. int refs;
  11450. bool shadowed;
  11451. /* readonly */
  11452. StringHash type;
  11453. /* readonly */
  11454. String typeName;
  11455. /* readonly */
  11456. uint vertexCount;
  11457. /* readonly */
  11458. uint vertexSize;
  11459. /* readonly */
  11460. int weakRefs;
  11461. };
  11462. class View3D
  11463. {
  11464. // Methods:
  11465. void AddChild(UIElement);
  11466. void ApplyAttributes();
  11467. void BringToFront();
  11468. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11469. void DisableLayoutUpdate();
  11470. IntVector2 ElementToScreen(const IntVector2&);
  11471. void EnableLayoutUpdate();
  11472. uint FindChild(UIElement) const;
  11473. Variant GetAttribute(const String&) const;
  11474. ValueAnimation GetAttributeAnimation(const String&) const;
  11475. float GetAttributeAnimationSpeed(const String&) const;
  11476. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11477. Variant GetAttributeDefault(const String&) const;
  11478. UIElement GetChild(const String&, bool = false) const;
  11479. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11480. Array<UIElement> GetChildren(bool = false) const;
  11481. UIElement GetElementEventSender() const;
  11482. bool GetInterceptNetworkUpdate(const String&) const;
  11483. uint GetNumChildren(bool) const;
  11484. void InsertChild(uint, UIElement);
  11485. bool IsInside(IntVector2, bool);
  11486. bool IsInsideCombined(IntVector2, bool);
  11487. bool Load(File, bool = false);
  11488. bool Load(VectorBuffer&, bool = false);
  11489. bool LoadChildXML(XMLFile, XMLFile = null);
  11490. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11491. bool LoadXML(File);
  11492. bool LoadXML(VectorBuffer&);
  11493. bool LoadXML(XMLFile, XMLFile);
  11494. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11495. bool LoadXML(const XMLElement&, bool = false);
  11496. void MarkNetworkUpdate() const;
  11497. void QueueUpdate();
  11498. void Remove();
  11499. void RemoveAllChildren();
  11500. void RemoveChild(UIElement, uint = 0);
  11501. void RemoveChild(uint);
  11502. void RemoveInstanceDefault();
  11503. void ResetDeepEnabled();
  11504. void ResetToDefault();
  11505. bool Save(File) const;
  11506. bool Save(VectorBuffer&) const;
  11507. bool SaveXML(File, const String& = "\t");
  11508. bool SaveXML(VectorBuffer&, const String& = "\t");
  11509. bool SaveXML(XMLElement&) const;
  11510. IntVector2 ScreenToElement(const IntVector2&);
  11511. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11512. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11513. bool SetAttribute(const String&, const Variant&);
  11514. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11515. void SetAttributeAnimationSpeed(const String&, float);
  11516. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11517. void SetDeepEnabled(bool);
  11518. void SetEnabledRecursive(bool);
  11519. void SetFixedHeight(int);
  11520. void SetFixedSize(int, int);
  11521. void SetFixedWidth(int);
  11522. void SetInterceptNetworkUpdate(const String&, bool);
  11523. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11524. void SetMaxSize(int, int);
  11525. void SetMinSize(int, int);
  11526. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11527. void SetPosition(int, int);
  11528. void SetSize(int, int);
  11529. bool SetStyle(const String&, XMLFile = null);
  11530. bool SetStyle(const XMLElement&);
  11531. bool SetStyleAuto(XMLFile = null);
  11532. void SetView(Scene, Camera, bool = true);
  11533. void UpdateLayout();
  11534. const Variant& GetVar(const StringHash&);
  11535. // Properties:
  11536. bool animationEnabled;
  11537. /* readonly */
  11538. Array<Variant> attributeDefaults;
  11539. /* readonly */
  11540. Array<AttributeInfo> attributeInfos;
  11541. Array<Variant> attributes;
  11542. bool autoUpdate;
  11543. /* readonly */
  11544. StringHash baseType;
  11545. bool bringToBack;
  11546. bool bringToFront;
  11547. /* readonly */
  11548. Node cameraNode;
  11549. /* readonly */
  11550. String category;
  11551. /* readonly */
  11552. IntVector2 childOffset;
  11553. /* readonly */
  11554. Array<UIElement> children;
  11555. IntRect clipBorder;
  11556. bool clipChildren;
  11557. /* writeonly */
  11558. Color color;
  11559. /* readonly */
  11560. bool colorGradient;
  11561. Array<Color> colors;
  11562. /* readonly */
  11563. IntRect combinedScreenRect;
  11564. XMLFile defaultStyle;
  11565. /* readonly */
  11566. Texture2D depthTexture;
  11567. /* readonly */
  11568. float derivedOpacity;
  11569. /* readonly */
  11570. uint dragButtonCombo;
  11571. /* readonly */
  11572. int dragButtonCount;
  11573. uint dragDropMode;
  11574. bool editable;
  11575. bool elementEventSender;
  11576. bool enabled;
  11577. /* readonly */
  11578. bool enabledSelf;
  11579. /* readonly */
  11580. bool fixedHeight;
  11581. bool fixedHeightResizing;
  11582. /* readonly */
  11583. bool fixedSize;
  11584. /* readonly */
  11585. bool fixedWidth;
  11586. bool fixedWidthResizing;
  11587. bool focus;
  11588. FocusMode focusMode;
  11589. uint format;
  11590. int height;
  11591. HorizontalAlignment horizontalAlignment;
  11592. /* readonly */
  11593. bool hovering;
  11594. int indent;
  11595. int indentSpacing;
  11596. /* readonly */
  11597. int indentWidth;
  11598. bool internal;
  11599. IntRect layoutBorder;
  11600. Vector2 layoutFlexScale;
  11601. LayoutMode layoutMode;
  11602. int layoutSpacing;
  11603. int maxHeight;
  11604. IntVector2 maxSize;
  11605. int maxWidth;
  11606. int minHeight;
  11607. IntVector2 minSize;
  11608. int minWidth;
  11609. bool modal;
  11610. bool modalAutoDismiss;
  11611. Color modalFrameColor;
  11612. IntVector2 modalFrameSize;
  11613. Color modalShadeColor;
  11614. bool movable;
  11615. String name;
  11616. /* readonly */
  11617. uint numAllChildren;
  11618. /* readonly */
  11619. uint numAttributes;
  11620. /* readonly */
  11621. uint numChildren;
  11622. ObjectAnimation objectAnimation;
  11623. float opacity;
  11624. UIElement parent;
  11625. IntVector2 position;
  11626. int priority;
  11627. /* readonly */
  11628. int refs;
  11629. /* readonly */
  11630. Texture2D renderTexture;
  11631. bool resizable;
  11632. IntRect resizeBorder;
  11633. /* readonly */
  11634. UIElement root;
  11635. /* readonly */
  11636. Scene scene;
  11637. /* readonly */
  11638. IntVector2 screenPosition;
  11639. bool selected;
  11640. IntVector2 size;
  11641. bool sortChildren;
  11642. String style;
  11643. bool temporary;
  11644. TraversalMode traversalMode;
  11645. /* readonly */
  11646. StringHash type;
  11647. /* readonly */
  11648. String typeName;
  11649. bool useDerivedOpacity;
  11650. /* readonly */
  11651. VariantMap vars;
  11652. VerticalAlignment verticalAlignment;
  11653. /* readonly */
  11654. Viewport viewport;
  11655. bool visible;
  11656. /* readonly */
  11657. int weakRefs;
  11658. int width;
  11659. };
  11660. class Viewport
  11661. {
  11662. // Methods:
  11663. Ray GetScreenRay(int, int) const;
  11664. Vector3 ScreenToWorldPoint(int, int, float) const;
  11665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11666. void SetRenderPath(XMLFile);
  11667. Vector2 WorldToScreenPoint(const Vector3&) const;
  11668. // Properties:
  11669. /* readonly */
  11670. StringHash baseType;
  11671. Camera camera;
  11672. /* readonly */
  11673. String category;
  11674. bool drawDebug;
  11675. IntRect rect;
  11676. /* readonly */
  11677. int refs;
  11678. RenderPath renderPath;
  11679. Scene scene;
  11680. /* readonly */
  11681. StringHash type;
  11682. /* readonly */
  11683. String typeName;
  11684. /* readonly */
  11685. int weakRefs;
  11686. };
  11687. class WeakHandle
  11688. {
  11689. // Methods:
  11690. RefCounted Get() const;
  11691. // Properties:
  11692. /* readonly */
  11693. bool expired;
  11694. /* readonly */
  11695. int refs;
  11696. /* readonly */
  11697. int weakRefs;
  11698. };
  11699. class Window
  11700. {
  11701. // Methods:
  11702. void AddChild(UIElement);
  11703. void ApplyAttributes();
  11704. void BringToFront();
  11705. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11706. void DisableLayoutUpdate();
  11707. IntVector2 ElementToScreen(const IntVector2&);
  11708. void EnableLayoutUpdate();
  11709. uint FindChild(UIElement) const;
  11710. Variant GetAttribute(const String&) const;
  11711. ValueAnimation GetAttributeAnimation(const String&) const;
  11712. float GetAttributeAnimationSpeed(const String&) const;
  11713. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11714. Variant GetAttributeDefault(const String&) const;
  11715. UIElement GetChild(const String&, bool = false) const;
  11716. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11717. Array<UIElement> GetChildren(bool = false) const;
  11718. UIElement GetElementEventSender() const;
  11719. bool GetInterceptNetworkUpdate(const String&) const;
  11720. uint GetNumChildren(bool) const;
  11721. void InsertChild(uint, UIElement);
  11722. bool IsInside(IntVector2, bool);
  11723. bool IsInsideCombined(IntVector2, bool);
  11724. bool Load(File, bool = false);
  11725. bool Load(VectorBuffer&, bool = false);
  11726. bool LoadChildXML(XMLFile, XMLFile = null);
  11727. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11728. bool LoadXML(File);
  11729. bool LoadXML(VectorBuffer&);
  11730. bool LoadXML(XMLFile, XMLFile);
  11731. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11732. bool LoadXML(const XMLElement&, bool = false);
  11733. void MarkNetworkUpdate() const;
  11734. void Remove();
  11735. void RemoveAllChildren();
  11736. void RemoveChild(UIElement, uint = 0);
  11737. void RemoveChild(uint);
  11738. void RemoveInstanceDefault();
  11739. void ResetDeepEnabled();
  11740. void ResetToDefault();
  11741. bool Save(File) const;
  11742. bool Save(VectorBuffer&) const;
  11743. bool SaveXML(File, const String& = "\t");
  11744. bool SaveXML(VectorBuffer&, const String& = "\t");
  11745. bool SaveXML(XMLElement&) const;
  11746. IntVector2 ScreenToElement(const IntVector2&);
  11747. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11748. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11749. bool SetAttribute(const String&, const Variant&);
  11750. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11751. void SetAttributeAnimationSpeed(const String&, float);
  11752. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11753. void SetDeepEnabled(bool);
  11754. void SetEnabledRecursive(bool);
  11755. void SetFixedHeight(int);
  11756. void SetFixedSize(int, int);
  11757. void SetFixedWidth(int);
  11758. void SetInterceptNetworkUpdate(const String&, bool);
  11759. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11760. void SetMaxSize(int, int);
  11761. void SetMinSize(int, int);
  11762. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11763. void SetPosition(int, int);
  11764. void SetSize(int, int);
  11765. bool SetStyle(const String&, XMLFile = null);
  11766. bool SetStyle(const XMLElement&);
  11767. bool SetStyleAuto(XMLFile = null);
  11768. void UpdateLayout();
  11769. const Variant& GetVar(const StringHash&);
  11770. // Properties:
  11771. bool animationEnabled;
  11772. /* readonly */
  11773. Array<Variant> attributeDefaults;
  11774. /* readonly */
  11775. Array<AttributeInfo> attributeInfos;
  11776. Array<Variant> attributes;
  11777. /* readonly */
  11778. StringHash baseType;
  11779. bool bringToBack;
  11780. bool bringToFront;
  11781. /* readonly */
  11782. String category;
  11783. /* readonly */
  11784. IntVector2 childOffset;
  11785. /* readonly */
  11786. Array<UIElement> children;
  11787. IntRect clipBorder;
  11788. bool clipChildren;
  11789. /* writeonly */
  11790. Color color;
  11791. /* readonly */
  11792. bool colorGradient;
  11793. Array<Color> colors;
  11794. /* readonly */
  11795. IntRect combinedScreenRect;
  11796. XMLFile defaultStyle;
  11797. /* readonly */
  11798. float derivedOpacity;
  11799. /* readonly */
  11800. uint dragButtonCombo;
  11801. /* readonly */
  11802. int dragButtonCount;
  11803. uint dragDropMode;
  11804. bool editable;
  11805. bool elementEventSender;
  11806. bool enabled;
  11807. /* readonly */
  11808. bool enabledSelf;
  11809. /* readonly */
  11810. bool fixedHeight;
  11811. bool fixedHeightResizing;
  11812. /* readonly */
  11813. bool fixedSize;
  11814. /* readonly */
  11815. bool fixedWidth;
  11816. bool fixedWidthResizing;
  11817. bool focus;
  11818. FocusMode focusMode;
  11819. int height;
  11820. HorizontalAlignment horizontalAlignment;
  11821. /* readonly */
  11822. bool hovering;
  11823. int indent;
  11824. int indentSpacing;
  11825. /* readonly */
  11826. int indentWidth;
  11827. bool internal;
  11828. IntRect layoutBorder;
  11829. Vector2 layoutFlexScale;
  11830. LayoutMode layoutMode;
  11831. int layoutSpacing;
  11832. int maxHeight;
  11833. IntVector2 maxSize;
  11834. int maxWidth;
  11835. int minHeight;
  11836. IntVector2 minSize;
  11837. int minWidth;
  11838. bool modal;
  11839. bool modalAutoDismiss;
  11840. Color modalFrameColor;
  11841. IntVector2 modalFrameSize;
  11842. Color modalShadeColor;
  11843. bool movable;
  11844. String name;
  11845. /* readonly */
  11846. uint numAllChildren;
  11847. /* readonly */
  11848. uint numAttributes;
  11849. /* readonly */
  11850. uint numChildren;
  11851. ObjectAnimation objectAnimation;
  11852. float opacity;
  11853. UIElement parent;
  11854. IntVector2 position;
  11855. int priority;
  11856. /* readonly */
  11857. int refs;
  11858. bool resizable;
  11859. IntRect resizeBorder;
  11860. /* readonly */
  11861. UIElement root;
  11862. /* readonly */
  11863. IntVector2 screenPosition;
  11864. bool selected;
  11865. IntVector2 size;
  11866. bool sortChildren;
  11867. String style;
  11868. bool temporary;
  11869. TraversalMode traversalMode;
  11870. /* readonly */
  11871. StringHash type;
  11872. /* readonly */
  11873. String typeName;
  11874. bool useDerivedOpacity;
  11875. /* readonly */
  11876. VariantMap vars;
  11877. VerticalAlignment verticalAlignment;
  11878. bool visible;
  11879. /* readonly */
  11880. int weakRefs;
  11881. int width;
  11882. };
  11883. class XMLElement
  11884. {
  11885. // Methods:
  11886. XMLElement CreateChild(const String&);
  11887. String GetAttribute(const String& = String ( )) const;
  11888. String GetAttributeLower(const String&) const;
  11889. Array<String> GetAttributeNames() const;
  11890. String GetAttributeUpper(const String&) const;
  11891. bool GetBool(const String&) const;
  11892. BoundingBox GetBoundingBox() const;
  11893. XMLElement GetChild(const String& = String ( )) const;
  11894. Color GetColor(const String&) const;
  11895. float GetFloat(const String&) const;
  11896. int GetInt(const String&) const;
  11897. Matrix3 GetMatrix3(const String&) const;
  11898. Matrix3x4 GetMatrix3x4(const String&) const;
  11899. Matrix4 GetMatrix4(const String&) const;
  11900. XMLElement GetNext(const String& = String ( )) const;
  11901. Quaternion GetQuaternion(const String&) const;
  11902. ResourceRef GetResourceRef() const;
  11903. ResourceRefList GetResourceRefList() const;
  11904. uint GetUInt(const String&) const;
  11905. String GetValue() const;
  11906. Variant GetVariant() const;
  11907. VariantMap GetVariantMap() const;
  11908. Array<Variant> GetVariantVector() const;
  11909. Vector2 GetVector2(const String&) const;
  11910. Vector3 GetVector3(const String&) const;
  11911. Vector4 GetVector4(const String&) const;
  11912. Variant GetVectorVariant(const String&) const;
  11913. bool HasAttribute(const String&) const;
  11914. bool HasChild(const String&) const;
  11915. bool RemoveAttribute(const String& = String ( ));
  11916. bool RemoveChild(const String&);
  11917. bool RemoveChild(const XMLElement&);
  11918. bool RemoveChildren(const String& = String ( ));
  11919. XPathResultSet Select(const String&);
  11920. XPathResultSet SelectPrepared(const XPathQuery&);
  11921. XMLElement SelectSingle(const String&);
  11922. XMLElement SelectSinglePrepared(const XPathQuery&);
  11923. bool SetAttribute(const String&);
  11924. bool SetAttribute(const String&, const String&);
  11925. bool SetBool(const String&, bool);
  11926. bool SetBoundingBox(const BoundingBox&);
  11927. bool SetColor(const String&, const Color&);
  11928. bool SetFloat(const String&, float);
  11929. bool SetInt(const String&, int);
  11930. bool SetMatrix3(const String&, const Matrix3&);
  11931. bool SetMatrix3x4(const String&, const Matrix3x4&);
  11932. bool SetMatrix4(const String&, const Matrix4&);
  11933. bool SetQuaternion(const String&, const Quaternion&);
  11934. bool SetResourceRef(const String&, const ResourceRef&);
  11935. bool SetResourceRefList(const String&, const ResourceRefList&);
  11936. bool SetUInt(const String&, uint);
  11937. bool SetValue(const String&);
  11938. bool SetVariant(const Variant&);
  11939. bool SetVariantMap(const VariantMap&);
  11940. bool SetVariantVector(Array<Variant>);
  11941. bool SetVector2(const String&, const Vector2&);
  11942. bool SetVector3(const String&, const Vector3&);
  11943. bool SetVector4(const String&, const Vector4&);
  11944. bool SetVectorVariant(const String&, const Variant&);
  11945. // Properties:
  11946. /* readonly */
  11947. XMLFile file;
  11948. /* readonly */
  11949. bool isNull;
  11950. /* readonly */
  11951. String name;
  11952. /* readonly */
  11953. XMLElement nextResult;
  11954. /* readonly */
  11955. bool notNull;
  11956. /* readonly */
  11957. uint numAttributes;
  11958. /* readonly */
  11959. XMLElement parent;
  11960. String value;
  11961. };
  11962. class XMLFile
  11963. {
  11964. // Methods:
  11965. XMLElement CreateRoot(const String&);
  11966. bool FromString(const String&);
  11967. XMLElement GetRoot(const String& = String ( ));
  11968. bool Load(File);
  11969. bool Load(VectorBuffer&);
  11970. void Patch(XMLElement);
  11971. void Patch(XMLFile);
  11972. bool Save(File) const;
  11973. bool Save(File, const String&) const;
  11974. bool Save(VectorBuffer&) const;
  11975. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11976. String ToString(const String& = String ( "\t" )) const;
  11977. // Properties:
  11978. /* readonly */
  11979. StringHash baseType;
  11980. /* readonly */
  11981. String category;
  11982. /* readonly */
  11983. uint memoryUse;
  11984. String name;
  11985. /* readonly */
  11986. int refs;
  11987. /* readonly */
  11988. XMLElement root;
  11989. /* readonly */
  11990. StringHash type;
  11991. /* readonly */
  11992. String typeName;
  11993. /* readonly */
  11994. uint useTimer;
  11995. /* readonly */
  11996. int weakRefs;
  11997. };
  11998. class XPathQuery
  11999. {
  12000. // Methods:
  12001. void Bind();
  12002. void Clear();
  12003. XPathResultSet Evaluate(XMLElement);
  12004. bool EvaluateToBool(XMLElement);
  12005. float EvaluateToFloat(XMLElement);
  12006. String EvaluateToString(XMLElement);
  12007. bool SetQuery(const String&, const String& = String ( ), bool = true);
  12008. bool SetVariable(const String&, bool);
  12009. bool SetVariable(const String&, const String&);
  12010. bool SetVariable(const String&, const XPathResultSet&);
  12011. bool SetVariable(const String&, float);
  12012. // Properties:
  12013. String query;
  12014. };
  12015. class XPathResultSet
  12016. {
  12017. // Properties:
  12018. /* readonly */
  12019. bool empty;
  12020. /* readonly */
  12021. XMLElement firstResult;
  12022. /* readonly */
  12023. uint size;
  12024. };
  12025. class Zone
  12026. {
  12027. // Methods:
  12028. void ApplyAttributes();
  12029. void DrawDebugGeometry(DebugRenderer, bool);
  12030. Variant GetAttribute(const String&) const;
  12031. ValueAnimation GetAttributeAnimation(const String&) const;
  12032. float GetAttributeAnimationSpeed(const String&) const;
  12033. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12034. Variant GetAttributeDefault(const String&) const;
  12035. bool GetInterceptNetworkUpdate(const String&) const;
  12036. bool IsInView(Camera) const;
  12037. bool Load(File, bool = false);
  12038. bool Load(VectorBuffer&, bool = false);
  12039. bool LoadXML(const XMLElement&, bool = false);
  12040. void MarkNetworkUpdate() const;
  12041. void Remove();
  12042. void RemoveInstanceDefault();
  12043. void ResetToDefault();
  12044. bool Save(File) const;
  12045. bool Save(VectorBuffer&) const;
  12046. bool SaveXML(XMLElement&) const;
  12047. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12048. bool SetAttribute(const String&, const Variant&);
  12049. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12050. void SetAttributeAnimationSpeed(const String&, float);
  12051. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12052. void SetInterceptNetworkUpdate(const String&, bool);
  12053. // Properties:
  12054. Color ambientColor;
  12055. /* readonly */
  12056. Color ambientEndColor;
  12057. bool ambientGradient;
  12058. /* readonly */
  12059. Color ambientStartColor;
  12060. bool animationEnabled;
  12061. /* readonly */
  12062. Array<Variant> attributeDefaults;
  12063. /* readonly */
  12064. Array<AttributeInfo> attributeInfos;
  12065. Array<Variant> attributes;
  12066. /* readonly */
  12067. StringHash baseType;
  12068. BoundingBox boundingBox;
  12069. bool castShadows;
  12070. /* readonly */
  12071. String category;
  12072. float drawDistance;
  12073. bool enabled;
  12074. /* readonly */
  12075. bool enabledEffective;
  12076. Color fogColor;
  12077. float fogEnd;
  12078. float fogHeight;
  12079. float fogHeightScale;
  12080. float fogStart;
  12081. bool heightFog;
  12082. /* readonly */
  12083. uint id;
  12084. /* readonly */
  12085. bool inView;
  12086. /* readonly */
  12087. Matrix3x4 inverseWorldTransform;
  12088. uint lightMask;
  12089. float lodBias;
  12090. uint maxLights;
  12091. /* readonly */
  12092. Node node;
  12093. /* readonly */
  12094. uint numAttributes;
  12095. ObjectAnimation objectAnimation;
  12096. bool occludee;
  12097. bool occluder;
  12098. bool override;
  12099. int priority;
  12100. /* readonly */
  12101. int refs;
  12102. float shadowDistance;
  12103. uint shadowMask;
  12104. bool temporary;
  12105. /* readonly */
  12106. StringHash type;
  12107. /* readonly */
  12108. String typeName;
  12109. uint viewMask;
  12110. /* readonly */
  12111. int weakRefs;
  12112. /* readonly */
  12113. BoundingBox worldBoundingBox;
  12114. uint zoneMask;
  12115. Texture zoneTexture;
  12116. };
  12117. // Enumerations
  12118. enum BlendMode
  12119. {
  12120. BLEND_REPLACE,
  12121. BLEND_ADD,
  12122. BLEND_MULTIPLY,
  12123. BLEND_ALPHA,
  12124. BLEND_ADDALPHA,
  12125. BLEND_PREMULALPHA,
  12126. BLEND_INVDESTALPHA,
  12127. BLEND_SUBTRACT,
  12128. BLEND_SUBTRACTALPHA,
  12129. };
  12130. enum BodyType2D
  12131. {
  12132. BT_STATIC,
  12133. BT_DYNAMIC,
  12134. BT_KINEMATIC,
  12135. };
  12136. enum CollisionEventMode
  12137. {
  12138. COLLISION_NEVER,
  12139. COLLISION_ACTIVE,
  12140. COLLISION_ALWAYS,
  12141. };
  12142. enum CompareMode
  12143. {
  12144. CMP_ALWAYS,
  12145. CMP_EQUAL,
  12146. CMP_NOTEQUAL,
  12147. CMP_LESS,
  12148. CMP_LESSEQUAL,
  12149. CMP_GREATER,
  12150. CMP_GREATEREQUAL,
  12151. };
  12152. enum CompressedFormat
  12153. {
  12154. CF_NONE,
  12155. CF_RGBA,
  12156. CF_DXT1,
  12157. CF_DXT3,
  12158. CF_DXT5,
  12159. CF_ETC1,
  12160. CF_PVRTC_RGB_2BPP,
  12161. CF_PVRTC_RGBA_2BPP,
  12162. CF_PVRTC_RGB_4BPP,
  12163. CF_PVRTC_RGBA_4BPP,
  12164. };
  12165. enum ConstraintType
  12166. {
  12167. CONSTRAINT_POINT,
  12168. CONSTRAINT_HINGE,
  12169. CONSTRAINT_SLIDER,
  12170. CONSTRAINT_CONETWIST,
  12171. };
  12172. enum Corner
  12173. {
  12174. C_TOPLEFT,
  12175. C_TOPRIGHT,
  12176. C_BOTTOMLEFT,
  12177. C_BOTTOMRIGHT,
  12178. };
  12179. enum CreateMode
  12180. {
  12181. REPLICATED,
  12182. LOCAL,
  12183. };
  12184. enum CrowdAgentState
  12185. {
  12186. CROWD_AGENT_INVALID,
  12187. CROWD_AGENT_READY,
  12188. CROWD_AGENT_TRAVERSINGLINK,
  12189. };
  12190. enum CrowdTargetState
  12191. {
  12192. CROWD_AGENT_TARGET_NONE,
  12193. CROWD_AGENT_TARGET_FAILED,
  12194. CROWD_AGENT_TARGET_VALID,
  12195. CROWD_AGENT_TARGET_REQUESTING,
  12196. CROWD_AGENT_TARGET_WAITINGFORPATH,
  12197. CROWD_AGENT_TARGET_WAITINGFORQUEUE,
  12198. CROWD_AGENT_TARGET_VELOCITY,
  12199. CROWD_AGENT_TARGET_ARRIVED,
  12200. };
  12201. enum CubeMapFace
  12202. {
  12203. FACE_POSITIVE_X,
  12204. FACE_NEGATIVE_X,
  12205. FACE_POSITIVE_Y,
  12206. FACE_NEGATIVE_Y,
  12207. FACE_POSITIVE_Z,
  12208. FACE_NEGATIVE_Z,
  12209. };
  12210. enum CullMode
  12211. {
  12212. CULL_NONE,
  12213. CULL_CCW,
  12214. CULL_CW,
  12215. };
  12216. enum CursorShape
  12217. {
  12218. CS_NORMAL,
  12219. CS_IBEAM,
  12220. CS_CROSS,
  12221. CS_RESIZEVERTICAL,
  12222. CS_RESIZEDIAGONAL_TOPRIGHT,
  12223. CS_RESIZEHORIZONTAL,
  12224. CS_RESIZEDIAGONAL_TOPLEFT,
  12225. CS_RESIZE_ALL,
  12226. CS_ACCEPTDROP,
  12227. CS_REJECTDROP,
  12228. CS_BUSY,
  12229. CS_BUSY_ARROW,
  12230. };
  12231. enum DumpMode
  12232. {
  12233. DOXYGEN,
  12234. C_HEADER,
  12235. };
  12236. enum EmitterType
  12237. {
  12238. EMITTER_SPHERE,
  12239. EMITTER_BOX,
  12240. };
  12241. enum EmitterType2D
  12242. {
  12243. EMITTER_TYPE_GRAVITY,
  12244. EMITTER_TYPE_RADIAL,
  12245. };
  12246. enum FaceCameraMode
  12247. {
  12248. FC_NONE,
  12249. FC_ROTATE_XYZ,
  12250. FC_ROTATE_Y,
  12251. FC_LOOKAT_XYZ,
  12252. FC_LOOKAT_Y,
  12253. };
  12254. enum FileMode
  12255. {
  12256. FILE_READ,
  12257. FILE_WRITE,
  12258. FILE_READWRITE,
  12259. };
  12260. enum FillMode
  12261. {
  12262. FILL_SOLID,
  12263. FILL_WIREFRAME,
  12264. FILL_POINT,
  12265. };
  12266. enum FocusMode
  12267. {
  12268. FM_NOTFOCUSABLE,
  12269. FM_RESETFOCUS,
  12270. FM_FOCUSABLE,
  12271. FM_FOCUSABLE_DEFOCUSABLE,
  12272. };
  12273. enum HighlightMode
  12274. {
  12275. HM_NEVER,
  12276. HM_FOCUS,
  12277. HM_ALWAYS,
  12278. };
  12279. enum HorizontalAlignment
  12280. {
  12281. HA_LEFT,
  12282. HA_CENTER,
  12283. HA_RIGHT,
  12284. };
  12285. enum HttpRequestState
  12286. {
  12287. HTTP_INITIALIZING,
  12288. HTTP_ERROR,
  12289. HTTP_OPEN,
  12290. HTTP_CLOSED,
  12291. };
  12292. enum InterpMethod
  12293. {
  12294. IM_LINEAR,
  12295. IM_SPLINE,
  12296. };
  12297. enum InterpolationMode
  12298. {
  12299. BEZIER_CURVE,
  12300. };
  12301. enum Intersection
  12302. {
  12303. OUTSIDE,
  12304. INTERSECTS,
  12305. INSIDE,
  12306. };
  12307. enum JSONValueType
  12308. {
  12309. JSON_ANY,
  12310. JSON_OBJECT,
  12311. JSON_ARRAY,
  12312. };
  12313. enum LayoutMode
  12314. {
  12315. LM_FREE,
  12316. LM_HORIZONTAL,
  12317. LM_VERTICAL,
  12318. };
  12319. enum LightType
  12320. {
  12321. LIGHT_DIRECTIONAL,
  12322. LIGHT_SPOT,
  12323. LIGHT_POINT,
  12324. };
  12325. enum LoadMode
  12326. {
  12327. LOAD_RESOURCES_ONLY,
  12328. LOAD_SCENE,
  12329. LOAD_SCENE_AND_RESOURCES,
  12330. };
  12331. enum LoopMode2D
  12332. {
  12333. LM_DEFAULT,
  12334. LM_FORCE_LOOPED,
  12335. LM_FORCE_CLAMPED,
  12336. };
  12337. enum MouseMode
  12338. {
  12339. MM_ABSOLUTE,
  12340. MM_RELATIVE,
  12341. MM_WRAP,
  12342. };
  12343. enum NavigationAvoidanceQuality
  12344. {
  12345. NAVIGATIONQUALITY_LOW,
  12346. NAVIGATIONQUALITY_MEDIUM,
  12347. NAVIGATIONQUALITY_HIGH,
  12348. };
  12349. enum NavigationPushiness
  12350. {
  12351. PUSHINESS_LOW,
  12352. PUSHINESS_MEDIUM,
  12353. PUSHINESS_HIGH,
  12354. };
  12355. enum Orientation
  12356. {
  12357. O_HORIZONTAL,
  12358. O_VERTICAL,
  12359. };
  12360. enum Orientation2D
  12361. {
  12362. O_ORTHOGONAL,
  12363. O_ISOMETRIC,
  12364. O_STAGGERED,
  12365. };
  12366. enum PassLightingMode
  12367. {
  12368. LIGHTING_UNLIT,
  12369. LIGHTING_PERVERTEX,
  12370. LIGHTING_PERPIXEL,
  12371. };
  12372. enum PrimitiveType
  12373. {
  12374. TRIANGLE_LIST,
  12375. LINE_LIST,
  12376. POINT_LIST,
  12377. TRIANGLE_STRIP,
  12378. LINE_STRIP,
  12379. TRIANGLE_FAN,
  12380. };
  12381. enum RayQueryLevel
  12382. {
  12383. RAY_AABB,
  12384. RAY_OBB,
  12385. RAY_TRIANGLE,
  12386. };
  12387. enum RenderCommandSortMode
  12388. {
  12389. SORT_FRONTTOBACK,
  12390. SORT_BACKTOFRONT,
  12391. };
  12392. enum RenderCommandType
  12393. {
  12394. CMD_NONE,
  12395. CMD_CLEAR,
  12396. CMD_SCENEPASS,
  12397. CMD_QUAD,
  12398. CMD_FORWARDLIGHTS,
  12399. CMD_LIGHTVOLUMES,
  12400. CMD_RENDERUI,
  12401. };
  12402. enum RenderSurfaceUpdateMode
  12403. {
  12404. SURFACE_MANUALUPDATE,
  12405. SURFACE_UPDATEVISIBLE,
  12406. SURFACE_UPDATEALWAYS,
  12407. };
  12408. enum RenderTargetSizeMode
  12409. {
  12410. SIZE_ABSOLUTE,
  12411. SIZE_VIEWPORTDIVISOR,
  12412. SIZE_VIEWPORTMULTIPLIER,
  12413. };
  12414. enum ShapeType
  12415. {
  12416. SHAPE_BOX,
  12417. SHAPE_SPHERE,
  12418. SHAPE_STATICPLANE,
  12419. SHAPE_CYLINDER,
  12420. SHAPE_CAPSULE,
  12421. SHAPE_CONE,
  12422. SHAPE_TRIANGLEMESH,
  12423. SHAPE_CONVEXHULL,
  12424. SHAPE_TERRAIN,
  12425. };
  12426. enum TextEffect
  12427. {
  12428. TE_NONE,
  12429. TE_SHADOW,
  12430. TE_STROKE,
  12431. };
  12432. enum TextureAddressMode
  12433. {
  12434. ADDRESS_WRAP,
  12435. ADDRESS_MIRROR,
  12436. ADDRESS_CLAMP,
  12437. ADDRESS_BORDER,
  12438. };
  12439. enum TextureCoordinate
  12440. {
  12441. COORD_U,
  12442. COORD_V,
  12443. COORD_W,
  12444. };
  12445. enum TextureFilterMode
  12446. {
  12447. FILTER_NEAREST,
  12448. FILTER_BILINEAR,
  12449. FILTER_TRILINEAR,
  12450. FILTER_ANISOTROPIC,
  12451. FILTER_DEFAULT,
  12452. };
  12453. enum TextureUnit
  12454. {
  12455. TU_DIFFUSE,
  12456. TU_ALBEDOBUFFER,
  12457. TU_NORMAL,
  12458. TU_NORMALBUFFER,
  12459. TU_SPECULAR,
  12460. TU_EMISSIVE,
  12461. TU_ENVIRONMENT,
  12462. TU_LIGHTRAMP,
  12463. TU_LIGHTSHAPE,
  12464. TU_SHADOWMAP,
  12465. TU_CUSTOM1,
  12466. TU_CUSTOM2,
  12467. TU_VOLUMEMAP,
  12468. TU_FACESELECT,
  12469. TU_INDIRECTION,
  12470. TU_DEPTHBUFFER,
  12471. TU_LIGHTBUFFER,
  12472. TU_ZONE,
  12473. MAX_MATERIAL_TEXTURE_UNITS,
  12474. MAX_TEXTURE_UNITS,
  12475. };
  12476. enum TextureUsage
  12477. {
  12478. TEXTURE_STATIC,
  12479. TEXTURE_DYNAMIC,
  12480. TEXTURE_RENDERTARGET,
  12481. TEXTURE_DEPTHSTENCIL,
  12482. };
  12483. enum TileMapLayerType2D
  12484. {
  12485. LT_TILE_LAYER,
  12486. LT_OBJECT_GROUP,
  12487. LT_IMAGE_LAYER,
  12488. LT_INVALID,
  12489. };
  12490. enum TileObjectType2D
  12491. {
  12492. OT_RECTANGLE,
  12493. OT_ELLIPSE,
  12494. OT_POLYGON,
  12495. OT_POLYLINE,
  12496. OT_TILE,
  12497. OT_INVALID,
  12498. };
  12499. enum TransformSpace
  12500. {
  12501. TS_LOCAL,
  12502. TS_PARENT,
  12503. TS_WORLD,
  12504. };
  12505. enum TraversalMode
  12506. {
  12507. TM_BREADTH_FIRST,
  12508. TM_DEPTH_FIRST,
  12509. };
  12510. enum VariantType
  12511. {
  12512. VAR_NONE,
  12513. VAR_INT,
  12514. VAR_BOOL,
  12515. VAR_FLOAT,
  12516. VAR_VECTOR2,
  12517. VAR_VECTOR3,
  12518. VAR_VECTOR4,
  12519. VAR_QUATERNION,
  12520. VAR_COLOR,
  12521. VAR_STRING,
  12522. VAR_BUFFER,
  12523. VAR_VOIDPTR,
  12524. VAR_RESOURCEREF,
  12525. VAR_RESOURCEREFLIST,
  12526. VAR_VARIANTVECTOR,
  12527. VAR_VARIANTMAP,
  12528. VAR_INTRECT,
  12529. VAR_INTVECTOR2,
  12530. VAR_PTR,
  12531. VAR_MATRIX3,
  12532. VAR_MATRIX3X4,
  12533. VAR_MATRIX4,
  12534. };
  12535. enum VerticalAlignment
  12536. {
  12537. VA_TOP,
  12538. VA_CENTER,
  12539. VA_BOTTOM,
  12540. };
  12541. enum WrapMode
  12542. {
  12543. WM_LOOP,
  12544. WM_ONCE,
  12545. WM_CLAMP,
  12546. };
  12547. // Global functions
  12548. float Abs(float);
  12549. float Acos(float);
  12550. String AddTrailingSlash(const String&);
  12551. float Asin(float);
  12552. float Atan(float);
  12553. float Atan2(float, float);
  12554. float Ceil(float);
  12555. float Clamp(float, float, float);
  12556. int Clamp(int, int, int);
  12557. void ClearDelayedExecute(const String& = String ( ));
  12558. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  12559. float Cos(float);
  12560. uint CountSetBits(uint);
  12561. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  12562. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  12563. bool Equals(float, float);
  12564. void ErrorDialog(const String&, const String&);
  12565. float Floor(float);
  12566. uint GetAlphaFormat();
  12567. Array<String> GetArguments();
  12568. String GetConsoleInput();
  12569. uint GetDepthStencilFormat();
  12570. Object GetEventSender();
  12571. String GetExtension(const String&, bool = true);
  12572. String GetFileName(const String&);
  12573. String GetFileNameAndExtension(const String&, bool = false);
  12574. uint GetFloat16Format();
  12575. uint GetFloat32Format();
  12576. uint GetFormat(const String&);
  12577. String GetInternalPath(const String&);
  12578. uint GetLinearDepthFormat();
  12579. uint GetLuminanceAlphaFormat();
  12580. uint GetLuminanceFormat();
  12581. uint GetMaxBones();
  12582. uint GetNumLogicalCPUs();
  12583. uint GetNumPhysicalCPUs();
  12584. Array<String> GetObjectCategories();
  12585. Array<String> GetObjectsByCategory(const String&);
  12586. String GetParentPath(const String&);
  12587. String GetPath(const String&);
  12588. String GetPlatform();
  12589. uint GetRG16Format();
  12590. uint GetRGBA16Format();
  12591. uint GetRGBAFloat16Format();
  12592. uint GetRGBAFloat32Format();
  12593. uint GetRGBAFormat();
  12594. uint GetRGBFormat();
  12595. uint GetRGFloat16Format();
  12596. uint GetRGFloat32Format();
  12597. uint GetRandomSeed();
  12598. uint GetReadableDepthFormat();
  12599. String GetTextureUnitName(TextureUnit);
  12600. bool IsAbsolutePath(const String&);
  12601. bool IsAlpha(uint);
  12602. bool IsDigit(uint);
  12603. bool IsNaN(float);
  12604. bool IsPowerOfTwo(uint);
  12605. String Join(Array<String>&, const String&);
  12606. float Lerp(float, float, float);
  12607. void MarkNetworkUpdate();
  12608. float Max(float, float);
  12609. int Max(int, int);
  12610. float Min(float, float);
  12611. int Min(int, int);
  12612. float Mod(float, float);
  12613. uint NextPowerOfTwo(uint);
  12614. void OpenConsoleWindow();
  12615. float Pow(float, float);
  12616. void Print(bool, bool = false);
  12617. void Print(const String&, bool = false);
  12618. void Print(const Variant&, bool = false);
  12619. void Print(float, bool = false);
  12620. void Print(int, bool = false);
  12621. void Print(uint, bool = false);
  12622. void PrintCallStack(bool = false);
  12623. float Random();
  12624. float Random(float);
  12625. float Random(float, float);
  12626. int RandomInt();
  12627. int RandomInt(int);
  12628. int RandomInt(int, int);
  12629. float RandomNormal(float, float);
  12630. void Remove();
  12631. String RemoveTrailingSlash(const String&);
  12632. String ReplaceExtension(const String&, const String&);
  12633. uint SDBMHash(uint, uint8);
  12634. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12635. void SetRandomSeed(uint);
  12636. float Sign(float);
  12637. float Sin(float);
  12638. float SmoothStep(float, float, float);
  12639. float Sqrt(float);
  12640. const String& GetTypeName(StringHash);
  12641. void SubscribeToEvent(Object, const String&, const String&);
  12642. void SubscribeToEvent(const String&, const String&);
  12643. float Tan(float);
  12644. uint ToLower(uint);
  12645. String ToStringHex(int);
  12646. uint ToUpper(uint);
  12647. void UnsubscribeFromAllEvents();
  12648. void UnsubscribeFromAllEventsExcept(Array<String>);
  12649. void UnsubscribeFromEvent(Object, const String&);
  12650. void UnsubscribeFromEvent(const String&);
  12651. void UnsubscribeFromEvents(Object);
  12652. // Global properties
  12653. Audio audio;
  12654. ResourceCache cache;
  12655. Console console;
  12656. DebugHud debugHud;
  12657. DebugRenderer debugRenderer;
  12658. Engine engine;
  12659. FileSystem fileSystem;
  12660. Graphics graphics;
  12661. Input input;
  12662. Log log;
  12663. Network network;
  12664. Node node;
  12665. Octree octree;
  12666. PhysicsWorld physicsWorld;
  12667. PhysicsWorld2D physicsWorld2D;
  12668. Renderer renderer;
  12669. ResourceCache resourceCache;
  12670. Scene scene;
  12671. Script script;
  12672. ScriptFile scriptFile;
  12673. ScriptInstance self;
  12674. Time time;
  12675. UI ui;
  12676. // Global constants
  12677. uint AM_COMPONENTID;
  12678. uint AM_DEFAULT;
  12679. uint AM_FILE;
  12680. uint AM_LATESTDATA;
  12681. uint AM_NET;
  12682. uint AM_NODEID;
  12683. uint AM_NODEIDVECTOR;
  12684. uint AM_NOEDIT;
  12685. Color BLACK;
  12686. Color BLUE;
  12687. uint CLEAR_COLOR;
  12688. uint CLEAR_DEPTH;
  12689. uint CLEAR_STENCIL;
  12690. int CONTROLLER_AXIS_LEFTX;
  12691. int CONTROLLER_AXIS_LEFTY;
  12692. int CONTROLLER_AXIS_RIGHTX;
  12693. int CONTROLLER_AXIS_RIGHTY;
  12694. int CONTROLLER_AXIS_TRIGGERLEFT;
  12695. int CONTROLLER_AXIS_TRIGGERRIGHT;
  12696. int CONTROLLER_BUTTON_A;
  12697. int CONTROLLER_BUTTON_B;
  12698. int CONTROLLER_BUTTON_BACK;
  12699. int CONTROLLER_BUTTON_DPAD_DOWN;
  12700. int CONTROLLER_BUTTON_DPAD_LEFT;
  12701. int CONTROLLER_BUTTON_DPAD_RIGHT;
  12702. int CONTROLLER_BUTTON_DPAD_UP;
  12703. int CONTROLLER_BUTTON_GUIDE;
  12704. int CONTROLLER_BUTTON_LEFTSHOULDER;
  12705. int CONTROLLER_BUTTON_LEFTSTICK;
  12706. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  12707. int CONTROLLER_BUTTON_RIGHTSTICK;
  12708. int CONTROLLER_BUTTON_START;
  12709. int CONTROLLER_BUTTON_X;
  12710. int CONTROLLER_BUTTON_Y;
  12711. Color CYAN;
  12712. uint DD_DISABLED;
  12713. uint DD_SOURCE;
  12714. uint DD_SOURCE_AND_TARGET;
  12715. uint DD_TARGET;
  12716. uint DEBUGHUD_SHOW_ALL;
  12717. uint DEBUGHUD_SHOW_MODE;
  12718. uint DEBUGHUD_SHOW_NONE;
  12719. uint DEBUGHUD_SHOW_PROFILER;
  12720. uint DEBUGHUD_SHOW_STATS;
  12721. uint DEFAULT_LIGHTMASK;
  12722. uint DEFAULT_VIEWMASK;
  12723. uint DRAWABLE_ANY;
  12724. uint DRAWABLE_GEOMETRY;
  12725. uint DRAWABLE_GEOMETRY2D;
  12726. uint DRAWABLE_LIGHT;
  12727. uint DRAWABLE_ZONE;
  12728. uint FIRST_LOCAL_ID;
  12729. uint FIRST_REPLICATED_ID;
  12730. Color GRAY;
  12731. Color GREEN;
  12732. int HAT_CENTER;
  12733. int HAT_DOWN;
  12734. int HAT_LEFT;
  12735. int HAT_RIGHT;
  12736. int HAT_UP;
  12737. int KEY_0;
  12738. int KEY_1;
  12739. int KEY_2;
  12740. int KEY_3;
  12741. int KEY_4;
  12742. int KEY_5;
  12743. int KEY_6;
  12744. int KEY_7;
  12745. int KEY_8;
  12746. int KEY_9;
  12747. int KEY_A;
  12748. int KEY_ALT;
  12749. int KEY_APPLICATION;
  12750. int KEY_B;
  12751. int KEY_BACKSPACE;
  12752. int KEY_C;
  12753. int KEY_CAPSLOCK;
  12754. int KEY_CTRL;
  12755. int KEY_D;
  12756. int KEY_DELETE;
  12757. int KEY_DOWN;
  12758. int KEY_E;
  12759. int KEY_END;
  12760. int KEY_ESC;
  12761. int KEY_F;
  12762. int KEY_F1;
  12763. int KEY_F10;
  12764. int KEY_F11;
  12765. int KEY_F12;
  12766. int KEY_F13;
  12767. int KEY_F14;
  12768. int KEY_F15;
  12769. int KEY_F16;
  12770. int KEY_F17;
  12771. int KEY_F18;
  12772. int KEY_F19;
  12773. int KEY_F2;
  12774. int KEY_F20;
  12775. int KEY_F21;
  12776. int KEY_F22;
  12777. int KEY_F23;
  12778. int KEY_F24;
  12779. int KEY_F3;
  12780. int KEY_F4;
  12781. int KEY_F5;
  12782. int KEY_F6;
  12783. int KEY_F7;
  12784. int KEY_F8;
  12785. int KEY_F9;
  12786. int KEY_G;
  12787. int KEY_GUI;
  12788. int KEY_H;
  12789. int KEY_HOME;
  12790. int KEY_I;
  12791. int KEY_INSERT;
  12792. int KEY_J;
  12793. int KEY_K;
  12794. int KEY_KP_0;
  12795. int KEY_KP_1;
  12796. int KEY_KP_2;
  12797. int KEY_KP_3;
  12798. int KEY_KP_4;
  12799. int KEY_KP_5;
  12800. int KEY_KP_6;
  12801. int KEY_KP_7;
  12802. int KEY_KP_8;
  12803. int KEY_KP_9;
  12804. int KEY_KP_DIVIDE;
  12805. int KEY_KP_ENTER;
  12806. int KEY_KP_MINUS;
  12807. int KEY_KP_MULTIPLY;
  12808. int KEY_KP_PERIOD;
  12809. int KEY_KP_PLUS;
  12810. int KEY_L;
  12811. int KEY_LALT;
  12812. int KEY_LCTRL;
  12813. int KEY_LEFT;
  12814. int KEY_LGUI;
  12815. int KEY_LSHIFT;
  12816. int KEY_M;
  12817. int KEY_N;
  12818. int KEY_NUMLOCKCLEAR;
  12819. int KEY_O;
  12820. int KEY_P;
  12821. int KEY_PAGEDOWN;
  12822. int KEY_PAGEUP;
  12823. int KEY_PAUSE;
  12824. int KEY_PRINTSCREEN;
  12825. int KEY_Q;
  12826. int KEY_R;
  12827. int KEY_RALT;
  12828. int KEY_RCTRL;
  12829. int KEY_RETURN;
  12830. int KEY_RETURN2;
  12831. int KEY_RGUI;
  12832. int KEY_RIGHT;
  12833. int KEY_RSHIFT;
  12834. int KEY_S;
  12835. int KEY_SCROLLLOCK;
  12836. int KEY_SELECT;
  12837. int KEY_SHIFT;
  12838. int KEY_SPACE;
  12839. int KEY_T;
  12840. int KEY_TAB;
  12841. int KEY_U;
  12842. int KEY_UP;
  12843. int KEY_V;
  12844. int KEY_W;
  12845. int KEY_X;
  12846. int KEY_Y;
  12847. int KEY_Z;
  12848. uint LAST_LOCAL_ID;
  12849. uint LAST_REPLICATED_ID;
  12850. int LOG_DEBUG;
  12851. int LOG_ERROR;
  12852. int LOG_INFO;
  12853. int LOG_NONE;
  12854. int LOG_WARNING;
  12855. Color MAGENTA;
  12856. uint MASK_BLENDINDICES;
  12857. uint MASK_BLENDWEIGHTS;
  12858. uint MASK_COLOR;
  12859. uint MASK_CUBETEXCOORD1;
  12860. uint MASK_CUBETEXCOORD2;
  12861. uint MASK_DEFAULT;
  12862. uint MASK_INSTANCEMATRIX1;
  12863. uint MASK_INSTANCEMATRIX2;
  12864. uint MASK_INSTANCEMATRIX3;
  12865. uint MASK_NONE;
  12866. uint MASK_NORMAL;
  12867. uint MASK_POSITION;
  12868. uint MASK_TANGENT;
  12869. uint MASK_TEXCOORD1;
  12870. uint MASK_TEXCOORD2;
  12871. int MOUSEB_LEFT;
  12872. int MOUSEB_MIDDLE;
  12873. int MOUSEB_RIGHT;
  12874. float M_DEGTORAD;
  12875. float M_DEGTORAD_2;
  12876. float M_EPSILON;
  12877. float M_HALF_PI;
  12878. float M_INFINITY;
  12879. float M_LARGE_EPSILON;
  12880. float M_LARGE_VALUE;
  12881. int M_MAX_INT;
  12882. uint M_MAX_UNSIGNED;
  12883. int M_MIN_INT;
  12884. uint M_MIN_UNSIGNED;
  12885. float M_PI;
  12886. float M_RADTODEG;
  12887. float PIXEL_SIZE;
  12888. int QUALITY_HIGH;
  12889. int QUALITY_LOW;
  12890. int QUALITY_MAX;
  12891. int QUALITY_MEDIUM;
  12892. int QUAL_ALT;
  12893. int QUAL_ANY;
  12894. int QUAL_CTRL;
  12895. int QUAL_SHIFT;
  12896. Color RED;
  12897. int SCANCODE_0;
  12898. int SCANCODE_1;
  12899. int SCANCODE_2;
  12900. int SCANCODE_3;
  12901. int SCANCODE_4;
  12902. int SCANCODE_5;
  12903. int SCANCODE_6;
  12904. int SCANCODE_7;
  12905. int SCANCODE_8;
  12906. int SCANCODE_9;
  12907. int SCANCODE_A;
  12908. int SCANCODE_AC_BACK;
  12909. int SCANCODE_AC_BOOKMARKS;
  12910. int SCANCODE_AC_FORWARD;
  12911. int SCANCODE_AC_HOME;
  12912. int SCANCODE_AC_REFRESH;
  12913. int SCANCODE_AC_SEARCH;
  12914. int SCANCODE_AC_STOP;
  12915. int SCANCODE_AGAIN;
  12916. int SCANCODE_ALT;
  12917. int SCANCODE_ALTERASE;
  12918. int SCANCODE_APOSTROPHE;
  12919. int SCANCODE_APP1;
  12920. int SCANCODE_APP2;
  12921. int SCANCODE_APPLICATION;
  12922. int SCANCODE_AUDIOMUTE;
  12923. int SCANCODE_AUDIONEXT;
  12924. int SCANCODE_AUDIOPLAY;
  12925. int SCANCODE_AUDIOPREV;
  12926. int SCANCODE_AUDIOSTOP;
  12927. int SCANCODE_B;
  12928. int SCANCODE_BACKSLASH;
  12929. int SCANCODE_BACKSPACE;
  12930. int SCANCODE_BRIGHTNESSDOWN;
  12931. int SCANCODE_BRIGHTNESSUP;
  12932. int SCANCODE_C;
  12933. int SCANCODE_CALCULATOR;
  12934. int SCANCODE_CANCEL;
  12935. int SCANCODE_CAPSLOCK;
  12936. int SCANCODE_CLEAR;
  12937. int SCANCODE_CLEARAGAIN;
  12938. int SCANCODE_COMMA;
  12939. int SCANCODE_COMPUTER;
  12940. int SCANCODE_COPY;
  12941. int SCANCODE_CRSEL;
  12942. int SCANCODE_CTRL;
  12943. int SCANCODE_CURRENCYSUBUNIT;
  12944. int SCANCODE_CURRENCYUNIT;
  12945. int SCANCODE_CUT;
  12946. int SCANCODE_D;
  12947. int SCANCODE_DECIMALSEPARATOR;
  12948. int SCANCODE_DELETE;
  12949. int SCANCODE_DISPLAYSWITCH;
  12950. int SCANCODE_DOWN;
  12951. int SCANCODE_E;
  12952. int SCANCODE_EJECT;
  12953. int SCANCODE_END;
  12954. int SCANCODE_EQUALS;
  12955. int SCANCODE_ESCAPE;
  12956. int SCANCODE_EXECUTE;
  12957. int SCANCODE_EXSEL;
  12958. int SCANCODE_F;
  12959. int SCANCODE_F1;
  12960. int SCANCODE_F10;
  12961. int SCANCODE_F11;
  12962. int SCANCODE_F12;
  12963. int SCANCODE_F13;
  12964. int SCANCODE_F14;
  12965. int SCANCODE_F15;
  12966. int SCANCODE_F16;
  12967. int SCANCODE_F17;
  12968. int SCANCODE_F18;
  12969. int SCANCODE_F19;
  12970. int SCANCODE_F2;
  12971. int SCANCODE_F20;
  12972. int SCANCODE_F21;
  12973. int SCANCODE_F22;
  12974. int SCANCODE_F23;
  12975. int SCANCODE_F24;
  12976. int SCANCODE_F3;
  12977. int SCANCODE_F4;
  12978. int SCANCODE_F5;
  12979. int SCANCODE_F6;
  12980. int SCANCODE_F7;
  12981. int SCANCODE_F8;
  12982. int SCANCODE_F9;
  12983. int SCANCODE_FIND;
  12984. int SCANCODE_G;
  12985. int SCANCODE_GRAVE;
  12986. int SCANCODE_GUI;
  12987. int SCANCODE_H;
  12988. int SCANCODE_HELP;
  12989. int SCANCODE_HOME;
  12990. int SCANCODE_I;
  12991. int SCANCODE_INSERT;
  12992. int SCANCODE_INTERNATIONAL1;
  12993. int SCANCODE_INTERNATIONAL2;
  12994. int SCANCODE_INTERNATIONAL3;
  12995. int SCANCODE_INTERNATIONAL4;
  12996. int SCANCODE_INTERNATIONAL5;
  12997. int SCANCODE_INTERNATIONAL6;
  12998. int SCANCODE_INTERNATIONAL7;
  12999. int SCANCODE_INTERNATIONAL8;
  13000. int SCANCODE_INTERNATIONAL9;
  13001. int SCANCODE_J;
  13002. int SCANCODE_K;
  13003. int SCANCODE_KBDILLUMDOWN;
  13004. int SCANCODE_KBDILLUMTOGGLE;
  13005. int SCANCODE_KBDILLUMUP;
  13006. int SCANCODE_KP_0;
  13007. int SCANCODE_KP_00;
  13008. int SCANCODE_KP_000;
  13009. int SCANCODE_KP_1;
  13010. int SCANCODE_KP_2;
  13011. int SCANCODE_KP_3;
  13012. int SCANCODE_KP_4;
  13013. int SCANCODE_KP_5;
  13014. int SCANCODE_KP_6;
  13015. int SCANCODE_KP_7;
  13016. int SCANCODE_KP_8;
  13017. int SCANCODE_KP_9;
  13018. int SCANCODE_KP_A;
  13019. int SCANCODE_KP_AMPERSAND;
  13020. int SCANCODE_KP_AT;
  13021. int SCANCODE_KP_B;
  13022. int SCANCODE_KP_BACKSPACE;
  13023. int SCANCODE_KP_BINARY;
  13024. int SCANCODE_KP_C;
  13025. int SCANCODE_KP_CLEAR;
  13026. int SCANCODE_KP_CLEARENTRY;
  13027. int SCANCODE_KP_COLON;
  13028. int SCANCODE_KP_COMMA;
  13029. int SCANCODE_KP_D;
  13030. int SCANCODE_KP_DBLAMPERSAND;
  13031. int SCANCODE_KP_DBLVERTICALBAR;
  13032. int SCANCODE_KP_DECIMAL;
  13033. int SCANCODE_KP_DIVIDE;
  13034. int SCANCODE_KP_E;
  13035. int SCANCODE_KP_ENTER;
  13036. int SCANCODE_KP_EQUALS;
  13037. int SCANCODE_KP_EQUALSAS400;
  13038. int SCANCODE_KP_EXCLAM;
  13039. int SCANCODE_KP_F;
  13040. int SCANCODE_KP_GREATER;
  13041. int SCANCODE_KP_HASH;
  13042. int SCANCODE_KP_HEXADECIMAL;
  13043. int SCANCODE_KP_LEFTBRACE;
  13044. int SCANCODE_KP_LEFTPAREN;
  13045. int SCANCODE_KP_LESS;
  13046. int SCANCODE_KP_MEMADD;
  13047. int SCANCODE_KP_MEMCLEAR;
  13048. int SCANCODE_KP_MEMDIVIDE;
  13049. int SCANCODE_KP_MEMMULTIPLY;
  13050. int SCANCODE_KP_MEMRECALL;
  13051. int SCANCODE_KP_MEMSTORE;
  13052. int SCANCODE_KP_MEMSUBTRACT;
  13053. int SCANCODE_KP_MINUS;
  13054. int SCANCODE_KP_MULTIPLY;
  13055. int SCANCODE_KP_OCTAL;
  13056. int SCANCODE_KP_PERCENT;
  13057. int SCANCODE_KP_PERIOD;
  13058. int SCANCODE_KP_PLUS;
  13059. int SCANCODE_KP_PLUSMINUS;
  13060. int SCANCODE_KP_POWER;
  13061. int SCANCODE_KP_RIGHTBRACE;
  13062. int SCANCODE_KP_RIGHTPAREN;
  13063. int SCANCODE_KP_SPACE;
  13064. int SCANCODE_KP_TAB;
  13065. int SCANCODE_KP_VERTICALBAR;
  13066. int SCANCODE_KP_XOR;
  13067. int SCANCODE_L;
  13068. int SCANCODE_LALT;
  13069. int SCANCODE_LANG1;
  13070. int SCANCODE_LANG2;
  13071. int SCANCODE_LANG3;
  13072. int SCANCODE_LANG4;
  13073. int SCANCODE_LANG5;
  13074. int SCANCODE_LANG6;
  13075. int SCANCODE_LANG7;
  13076. int SCANCODE_LANG8;
  13077. int SCANCODE_LANG9;
  13078. int SCANCODE_LCTRL;
  13079. int SCANCODE_LEFT;
  13080. int SCANCODE_LEFTBRACKET;
  13081. int SCANCODE_LGUI;
  13082. int SCANCODE_LSHIFT;
  13083. int SCANCODE_M;
  13084. int SCANCODE_MAIL;
  13085. int SCANCODE_MEDIASELECT;
  13086. int SCANCODE_MENU;
  13087. int SCANCODE_MINUS;
  13088. int SCANCODE_MODE;
  13089. int SCANCODE_MUTE;
  13090. int SCANCODE_N;
  13091. int SCANCODE_NONUSBACKSLASH;
  13092. int SCANCODE_NONUSHASH;
  13093. int SCANCODE_NUMLOCKCLEAR;
  13094. int SCANCODE_O;
  13095. int SCANCODE_OPER;
  13096. int SCANCODE_OUT;
  13097. int SCANCODE_P;
  13098. int SCANCODE_PAGEDOWN;
  13099. int SCANCODE_PAGEUP;
  13100. int SCANCODE_PASTE;
  13101. int SCANCODE_PAUSE;
  13102. int SCANCODE_PERIOD;
  13103. int SCANCODE_POWER;
  13104. int SCANCODE_PRINTSCREEN;
  13105. int SCANCODE_PRIOR;
  13106. int SCANCODE_Q;
  13107. int SCANCODE_R;
  13108. int SCANCODE_RALT;
  13109. int SCANCODE_RCTRL;
  13110. int SCANCODE_RETURN;
  13111. int SCANCODE_RETURN2;
  13112. int SCANCODE_RGUI;
  13113. int SCANCODE_RIGHT;
  13114. int SCANCODE_RIGHTBRACKET;
  13115. int SCANCODE_RSHIFT;
  13116. int SCANCODE_S;
  13117. int SCANCODE_SCROLLLOCK;
  13118. int SCANCODE_SELECT;
  13119. int SCANCODE_SEMICOLON;
  13120. int SCANCODE_SEPARATOR;
  13121. int SCANCODE_SHIFT;
  13122. int SCANCODE_SLASH;
  13123. int SCANCODE_SLEEP;
  13124. int SCANCODE_SPACE;
  13125. int SCANCODE_STOP;
  13126. int SCANCODE_SYSREQ;
  13127. int SCANCODE_T;
  13128. int SCANCODE_TAB;
  13129. int SCANCODE_THOUSANDSSEPARATOR;
  13130. int SCANCODE_U;
  13131. int SCANCODE_UNDO;
  13132. int SCANCODE_UNKNOWN;
  13133. int SCANCODE_UP;
  13134. int SCANCODE_V;
  13135. int SCANCODE_VOLUMEDOWN;
  13136. int SCANCODE_VOLUMEUP;
  13137. int SCANCODE_W;
  13138. int SCANCODE_WWW;
  13139. int SCANCODE_X;
  13140. int SCANCODE_Y;
  13141. int SCANCODE_Z;
  13142. uint SCAN_DIRS;
  13143. uint SCAN_FILES;
  13144. uint SCAN_HIDDEN;
  13145. int SHADOWQUALITY_HIGH_16BIT;
  13146. int SHADOWQUALITY_HIGH_24BIT;
  13147. int SHADOWQUALITY_LOW_16BIT;
  13148. int SHADOWQUALITY_LOW_24BIT;
  13149. String SOUND_AMBIENT;
  13150. String SOUND_EFFECT;
  13151. String SOUND_MASTER;
  13152. String SOUND_MUSIC;
  13153. String SOUND_VOICE;
  13154. Color TRANSPARENT;
  13155. uint VO_DISABLE_OCCLUSION;
  13156. uint VO_DISABLE_SHADOWS;
  13157. uint VO_LOW_MATERIAL_QUALITY;
  13158. uint VO_NONE;
  13159. Color WHITE;
  13160. Color YELLOW;