AngelScriptAPI.h 340 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051
  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. float GetAttributeAnimationTime(const String&) const;
  18. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19. Variant GetAttributeDefault(const String&) const;
  20. bool GetInterceptNetworkUpdate(const String&) const;
  21. bool Load(File, bool = false);
  22. bool Load(VectorBuffer&, bool = false);
  23. bool LoadXML(const XMLElement&, bool = false);
  24. void MarkNetworkUpdate() const;
  25. void RemoveAttributeAnimation(const String&);
  26. void RemoveInstanceDefault();
  27. void RemoveObjectAnimation();
  28. void ResetToDefault();
  29. bool Save(File) const;
  30. bool Save(VectorBuffer&) const;
  31. bool SaveXML(XMLElement&) const;
  32. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  33. void SetAnimationTime(float);
  34. bool SetAttribute(const String&, const Variant&);
  35. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  36. void SetAttributeAnimationSpeed(const String&, float);
  37. void SetAttributeAnimationTime(const String&, float);
  38. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  39. void SetInterceptNetworkUpdate(const String&, bool);
  40. // Properties:
  41. bool animationEnabled;
  42. /* readonly */
  43. Array<Variant> attributeDefaults;
  44. /* readonly */
  45. Array<AttributeInfo> attributeInfos;
  46. Array<Variant> attributes;
  47. /* readonly */
  48. String category;
  49. /* readonly */
  50. uint numAttributes;
  51. ObjectAnimation objectAnimation;
  52. /* readonly */
  53. int refs;
  54. bool temporary;
  55. /* readonly */
  56. StringHash type;
  57. /* readonly */
  58. String typeName;
  59. /* readonly */
  60. int weakRefs;
  61. };
  62. class AnimatedModel
  63. {
  64. // Methods:
  65. AnimationState AddAnimationState(Animation);
  66. void ApplyAttributes();
  67. void ApplyMaterialList(const String& = String ( ));
  68. void DrawDebugGeometry(DebugRenderer, bool);
  69. AnimationState GetAnimationState(Animation) const;
  70. AnimationState GetAnimationState(uint) const;
  71. Variant GetAttribute(const String&) const;
  72. ValueAnimation GetAttributeAnimation(const String&) const;
  73. float GetAttributeAnimationSpeed(const String&) const;
  74. float GetAttributeAnimationTime(const String&) const;
  75. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  76. Variant GetAttributeDefault(const String&) const;
  77. bool GetInterceptNetworkUpdate(const String&) const;
  78. float GetMorphWeight(uint) const;
  79. bool IsInView(Camera) const;
  80. bool Load(File, bool = false);
  81. bool Load(VectorBuffer&, bool = false);
  82. bool LoadXML(const XMLElement&, bool = false);
  83. void MarkNetworkUpdate() const;
  84. void Remove();
  85. void RemoveAllAnimationStates();
  86. void RemoveAnimationState(Animation);
  87. void RemoveAnimationState(AnimationState);
  88. void RemoveAnimationState(const String&);
  89. void RemoveAnimationState(uint);
  90. void RemoveAttributeAnimation(const String&);
  91. void RemoveInstanceDefault();
  92. void RemoveObjectAnimation();
  93. void ResetMorphWeights();
  94. void ResetToDefault();
  95. bool Save(File) const;
  96. bool Save(VectorBuffer&) const;
  97. bool SaveXML(XMLElement&) const;
  98. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  99. void SetAnimationTime(float);
  100. bool SetAttribute(const String&, const Variant&);
  101. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  102. void SetAttributeAnimationSpeed(const String&, float);
  103. void SetAttributeAnimationTime(const String&, float);
  104. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  105. void SetInterceptNetworkUpdate(const String&, bool);
  106. void SetMorphWeight(uint, float);
  107. // Properties:
  108. bool animationEnabled;
  109. float animationLodBias;
  110. /* readonly */
  111. Array<AnimationState> animationStates;
  112. /* readonly */
  113. Array<Variant> attributeDefaults;
  114. /* readonly */
  115. Array<AttributeInfo> attributeInfos;
  116. Array<Variant> attributes;
  117. /* readonly */
  118. BoundingBox boundingBox;
  119. bool castShadows;
  120. /* readonly */
  121. String category;
  122. float drawDistance;
  123. bool enabled;
  124. /* readonly */
  125. bool enabledEffective;
  126. /* readonly */
  127. uint id;
  128. /* readonly */
  129. bool inView;
  130. uint lightMask;
  131. float lodBias;
  132. /* writeonly */
  133. Material material;
  134. Array<Material> materials;
  135. uint maxLights;
  136. Model model;
  137. /* readonly */
  138. Array<String> morphNames;
  139. Array<float> morphWeights;
  140. /* readonly */
  141. Node node;
  142. /* readonly */
  143. uint numAnimationStates;
  144. /* readonly */
  145. uint numAttributes;
  146. /* readonly */
  147. uint numGeometries;
  148. /* readonly */
  149. uint numMorphs;
  150. ObjectAnimation objectAnimation;
  151. bool occludee;
  152. bool occluder;
  153. /* readonly */
  154. int refs;
  155. float shadowDistance;
  156. uint shadowMask;
  157. /* readonly */
  158. Skeleton skeleton;
  159. bool temporary;
  160. /* readonly */
  161. StringHash type;
  162. /* readonly */
  163. String typeName;
  164. bool updateInvisible;
  165. uint viewMask;
  166. /* readonly */
  167. int weakRefs;
  168. /* readonly */
  169. BoundingBox worldBoundingBox;
  170. /* readonly */
  171. Zone zone;
  172. uint zoneMask;
  173. };
  174. class AnimatedSprite2D
  175. {
  176. // Methods:
  177. void ApplyAttributes();
  178. void DrawDebugGeometry(DebugRenderer, bool);
  179. Variant GetAttribute(const String&) const;
  180. ValueAnimation GetAttributeAnimation(const String&) const;
  181. float GetAttributeAnimationSpeed(const String&) const;
  182. float GetAttributeAnimationTime(const String&) const;
  183. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  184. Variant GetAttributeDefault(const String&) const;
  185. bool GetInterceptNetworkUpdate(const String&) const;
  186. bool IsInView(Camera) const;
  187. bool Load(File, bool = false);
  188. bool Load(VectorBuffer&, bool = false);
  189. bool LoadXML(const XMLElement&, bool = false);
  190. void MarkNetworkUpdate() const;
  191. void Remove();
  192. void RemoveAttributeAnimation(const String&);
  193. void RemoveInstanceDefault();
  194. void RemoveObjectAnimation();
  195. void ResetToDefault();
  196. bool Save(File) const;
  197. bool Save(VectorBuffer&) const;
  198. bool SaveXML(XMLElement&) const;
  199. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  200. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  201. void SetAnimationTime(float);
  202. bool SetAttribute(const String&, const Variant&);
  203. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  204. void SetAttributeAnimationSpeed(const String&, float);
  205. void SetAttributeAnimationTime(const String&, float);
  206. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  207. void SetFlip(bool, bool);
  208. void SetInterceptNetworkUpdate(const String&, bool);
  209. // Properties:
  210. float alpha;
  211. String animation;
  212. bool animationEnabled;
  213. AnimationSet2D animationSet;
  214. /* readonly */
  215. Array<Variant> attributeDefaults;
  216. /* readonly */
  217. Array<AttributeInfo> attributeInfos;
  218. Array<Variant> attributes;
  219. BlendMode blendMode;
  220. /* readonly */
  221. BoundingBox boundingBox;
  222. bool castShadows;
  223. /* readonly */
  224. String category;
  225. Color color;
  226. Material customMaterial;
  227. float drawDistance;
  228. bool enabled;
  229. /* readonly */
  230. bool enabledEffective;
  231. String entity;
  232. bool flipX;
  233. bool flipY;
  234. Vector2 hotSpot;
  235. /* readonly */
  236. uint id;
  237. /* readonly */
  238. bool inView;
  239. int layer;
  240. uint lightMask;
  241. float lodBias;
  242. LoopMode2D loopMode;
  243. uint maxLights;
  244. /* readonly */
  245. Node node;
  246. /* readonly */
  247. uint numAttributes;
  248. ObjectAnimation objectAnimation;
  249. bool occludee;
  250. bool occluder;
  251. int orderInLayer;
  252. /* readonly */
  253. int refs;
  254. float shadowDistance;
  255. uint shadowMask;
  256. float speed;
  257. Sprite2D sprite;
  258. bool temporary;
  259. /* readonly */
  260. StringHash type;
  261. /* readonly */
  262. String typeName;
  263. bool useHotSpot;
  264. uint viewMask;
  265. /* readonly */
  266. int weakRefs;
  267. /* readonly */
  268. BoundingBox worldBoundingBox;
  269. uint zoneMask;
  270. };
  271. class Animation
  272. {
  273. // Methods:
  274. void AddTrigger(const AnimationTriggerPoint&);
  275. void AddTrigger(float, bool, const Variant&);
  276. AnimationTrack CreateTrack(const String&);
  277. bool Load(File);
  278. bool Load(VectorBuffer&);
  279. bool RemoveAllTracks();
  280. void RemoveAllTriggers();
  281. bool RemoveTrack(const String&);
  282. void RemoveTrigger(uint);
  283. bool Save(File) const;
  284. bool Save(VectorBuffer&) const;
  285. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  286. // Properties:
  287. String animationName;
  288. /* readonly */
  289. String category;
  290. float length;
  291. /* readonly */
  292. uint memoryUse;
  293. String name;
  294. /* readonly */
  295. uint numTracks;
  296. uint numTriggers;
  297. /* readonly */
  298. int refs;
  299. /* readonly */
  300. Array<AnimationTrack> tracks;
  301. Array<AnimationTriggerPoint> triggers;
  302. /* readonly */
  303. StringHash type;
  304. /* readonly */
  305. String typeName;
  306. /* readonly */
  307. uint useTimer;
  308. /* readonly */
  309. int weakRefs;
  310. };
  311. class AnimationController
  312. {
  313. // Methods:
  314. void ApplyAttributes();
  315. void DrawDebugGeometry(DebugRenderer, bool);
  316. bool Fade(const String&, float, float);
  317. bool FadeOthers(const String&, float, float);
  318. AnimationState GetAnimationState(StringHash) const;
  319. AnimationState GetAnimationState(const String&) const;
  320. Variant GetAttribute(const String&) const;
  321. ValueAnimation GetAttributeAnimation(const String&) const;
  322. float GetAttributeAnimationSpeed(const String&) const;
  323. float GetAttributeAnimationTime(const String&) const;
  324. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  325. Variant GetAttributeDefault(const String&) const;
  326. float GetAutoFade(const String&) const;
  327. float GetFadeTarget(const String&) const;
  328. float GetFadeTime(const String&) const;
  329. bool GetInterceptNetworkUpdate(const String&) const;
  330. uint8 GetLayer(const String&) const;
  331. float GetLength(const String&) const;
  332. bool GetLooped(const String&) const;
  333. bool GetRemoveOnCompletion(const String&);
  334. float GetSpeed(const String&) const;
  335. float GetTime(const String&) const;
  336. float GetWeight(const String&) const;
  337. bool IsAtEnd(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 RemoveAttributeAnimation(const String&);
  349. void RemoveInstanceDefault();
  350. void RemoveObjectAnimation();
  351. void ResetToDefault();
  352. bool Save(File) const;
  353. bool Save(VectorBuffer&) const;
  354. bool SaveXML(XMLElement&) const;
  355. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  356. void SetAnimationTime(float);
  357. bool SetAttribute(const String&, const Variant&);
  358. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  359. void SetAttributeAnimationSpeed(const String&, float);
  360. void SetAttributeAnimationTime(const String&, float);
  361. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  362. bool SetAutoFade(const String&, float);
  363. void SetInterceptNetworkUpdate(const String&, bool);
  364. bool SetLayer(const String&, uint8);
  365. bool SetLooped(const String&, bool);
  366. bool SetRemoveOnCompletion(const String&, bool);
  367. bool SetSpeed(const String&, float);
  368. bool SetStartBone(const String&, const String&);
  369. bool SetTime(const String&, float);
  370. bool SetWeight(const String&, float);
  371. void Stop(const String&, float = 0.0f);
  372. void StopAll(float = 0.0f);
  373. void StopLayer(uint8, float = 0.0f);
  374. const String& GetStartBone(const String&) const;
  375. // Properties:
  376. bool animationEnabled;
  377. /* readonly */
  378. Array<Variant> attributeDefaults;
  379. /* readonly */
  380. Array<AttributeInfo> attributeInfos;
  381. Array<Variant> attributes;
  382. /* readonly */
  383. String category;
  384. bool enabled;
  385. /* readonly */
  386. bool enabledEffective;
  387. /* readonly */
  388. uint id;
  389. /* readonly */
  390. Node node;
  391. /* readonly */
  392. uint numAttributes;
  393. ObjectAnimation objectAnimation;
  394. /* readonly */
  395. int refs;
  396. bool temporary;
  397. /* readonly */
  398. StringHash type;
  399. /* readonly */
  400. String typeName;
  401. /* readonly */
  402. int weakRefs;
  403. };
  404. class AnimationKeyFrame
  405. {
  406. // Properties:
  407. Vector3 position;
  408. Quaternion rotation;
  409. Vector3 scale;
  410. float time;
  411. };
  412. class AnimationSet2D
  413. {
  414. // Methods:
  415. String GetAnimation(uint) const;
  416. bool Load(File);
  417. bool Load(VectorBuffer&);
  418. bool Save(File) const;
  419. bool Save(VectorBuffer&) const;
  420. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  421. // Properties:
  422. /* readonly */
  423. String category;
  424. /* readonly */
  425. uint memoryUse;
  426. String name;
  427. /* readonly */
  428. uint numAnimations;
  429. /* readonly */
  430. int refs;
  431. /* readonly */
  432. StringHash type;
  433. /* readonly */
  434. String typeName;
  435. /* readonly */
  436. uint useTimer;
  437. /* readonly */
  438. int weakRefs;
  439. };
  440. class AnimationState
  441. {
  442. // Methods:
  443. void AddTime(float);
  444. void AddWeight(float);
  445. void Apply();
  446. float GetBoneWeight(StringHash) const;
  447. float GetBoneWeight(uint) const;
  448. uint GetTrackIndex(StringHash) const;
  449. uint GetTrackIndex(const String&) const;
  450. void SetBoneWeight(StringHash, float, bool = false);
  451. void SetBoneWeight(const String&, float, bool = false);
  452. void SetBoneWeight(uint, float, bool = false);
  453. // Properties:
  454. /* readonly */
  455. Animation animation;
  456. Array<float> boneWeights;
  457. /* readonly */
  458. bool enabled;
  459. uint8 layer;
  460. /* readonly */
  461. float length;
  462. bool looped;
  463. /* readonly */
  464. AnimatedModel model;
  465. /* readonly */
  466. Node node;
  467. /* readonly */
  468. int refs;
  469. Bone startBone;
  470. float time;
  471. /* readonly */
  472. int weakRefs;
  473. float weight;
  474. };
  475. class AnimationTrack
  476. {
  477. // Methods:
  478. void AddKeyFrame(const AnimationKeyFrame&);
  479. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  480. void RemoveAllKeyFrames();
  481. void RemoveKeyFrame(uint);
  482. // Properties:
  483. uint8 channelMask;
  484. Array<AnimationKeyFrame> keyFrames;
  485. String name;
  486. StringHash nameHash;
  487. /* readonly */
  488. uint numKeyFrames;
  489. };
  490. class AnimationTriggerPoint
  491. {
  492. // Properties:
  493. Variant data;
  494. float time;
  495. };
  496. template <class T> class Array
  497. {
  498. // Methods:
  499. void Clear();
  500. void Erase(uint);
  501. int Find(const T&) const;
  502. int Find(uint, const T&) const;
  503. int FindByRef(const T&) const;
  504. int FindByRef(uint, const T&) const;
  505. void Insert(uint, const T&);
  506. void Pop();
  507. void Push(const T&);
  508. void Reserve(uint);
  509. void Resize(uint);
  510. void Reverse();
  511. void Sort();
  512. void Sort(uint, uint);
  513. void SortReverse();
  514. void SortReverse(uint, uint);
  515. // Properties:
  516. /* readonly */
  517. bool empty;
  518. uint length;
  519. };
  520. class AttributeInfo
  521. {
  522. // Properties:
  523. Variant defaultValue;
  524. /* readonly */
  525. Array<String> enumNames;
  526. uint mode;
  527. String name;
  528. VariantType type;
  529. };
  530. class Audio
  531. {
  532. // Methods:
  533. bool HasMasterGain(const String&) const;
  534. bool Play();
  535. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  536. void SetMode(int, int, bool, bool = true);
  537. void Stop();
  538. // Properties:
  539. /* readonly */
  540. String category;
  541. /* readonly */
  542. bool initialized;
  543. /* readonly */
  544. bool interpolation;
  545. SoundListener listener;
  546. Array<float> masterGain;
  547. /* readonly */
  548. int mixRate;
  549. /* readonly */
  550. bool playing;
  551. /* readonly */
  552. int refs;
  553. /* readonly */
  554. uint sampleSize;
  555. /* readonly */
  556. bool stereo;
  557. /* readonly */
  558. StringHash type;
  559. /* readonly */
  560. String typeName;
  561. /* readonly */
  562. int weakRefs;
  563. };
  564. class BiasParameters
  565. {
  566. // Properties:
  567. float constantBias;
  568. float slopeScaledBias;
  569. };
  570. class Billboard
  571. {
  572. // Properties:
  573. Color color;
  574. bool enabled;
  575. Vector3 position;
  576. float rotation;
  577. Vector2 size;
  578. Rect uv;
  579. };
  580. class BillboardSet
  581. {
  582. // Methods:
  583. void ApplyAttributes();
  584. void Commit();
  585. void DrawDebugGeometry(DebugRenderer, bool);
  586. Variant GetAttribute(const String&) const;
  587. ValueAnimation GetAttributeAnimation(const String&) const;
  588. float GetAttributeAnimationSpeed(const String&) const;
  589. float GetAttributeAnimationTime(const String&) const;
  590. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  591. Variant GetAttributeDefault(const String&) const;
  592. bool GetInterceptNetworkUpdate(const String&) const;
  593. bool IsInView(Camera) const;
  594. bool Load(File, bool = false);
  595. bool Load(VectorBuffer&, bool = false);
  596. bool LoadXML(const XMLElement&, bool = false);
  597. void MarkNetworkUpdate() const;
  598. void Remove();
  599. void RemoveAttributeAnimation(const String&);
  600. void RemoveInstanceDefault();
  601. void RemoveObjectAnimation();
  602. void ResetToDefault();
  603. bool Save(File) const;
  604. bool Save(VectorBuffer&) const;
  605. bool SaveXML(XMLElement&) const;
  606. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  607. void SetAnimationTime(float);
  608. bool SetAttribute(const String&, const Variant&);
  609. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  610. void SetAttributeAnimationSpeed(const String&, float);
  611. void SetAttributeAnimationTime(const String&, float);
  612. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  613. void SetInterceptNetworkUpdate(const String&, bool);
  614. // Properties:
  615. bool animationEnabled;
  616. float animationLodBias;
  617. /* readonly */
  618. Array<Variant> attributeDefaults;
  619. /* readonly */
  620. Array<AttributeInfo> attributeInfos;
  621. Array<Variant> attributes;
  622. /* readonly */
  623. Array<Billboard> billboards;
  624. /* readonly */
  625. BoundingBox boundingBox;
  626. bool castShadows;
  627. /* readonly */
  628. String category;
  629. float drawDistance;
  630. bool enabled;
  631. /* readonly */
  632. bool enabledEffective;
  633. FaceCameraMode faceCameraMode;
  634. /* readonly */
  635. uint id;
  636. /* readonly */
  637. bool inView;
  638. uint lightMask;
  639. float lodBias;
  640. Material material;
  641. uint maxLights;
  642. /* readonly */
  643. Node node;
  644. /* readonly */
  645. uint numAttributes;
  646. uint numBillboards;
  647. ObjectAnimation objectAnimation;
  648. bool occludee;
  649. bool occluder;
  650. /* readonly */
  651. int refs;
  652. bool relative;
  653. bool scaled;
  654. float shadowDistance;
  655. uint shadowMask;
  656. bool sorted;
  657. bool temporary;
  658. /* readonly */
  659. StringHash type;
  660. /* readonly */
  661. String typeName;
  662. uint viewMask;
  663. /* readonly */
  664. int weakRefs;
  665. /* readonly */
  666. BoundingBox worldBoundingBox;
  667. /* readonly */
  668. Zone zone;
  669. uint zoneMask;
  670. };
  671. class Bone
  672. {
  673. // Properties:
  674. bool animated;
  675. BoundingBox boundingBox;
  676. Vector3 initialPosition;
  677. Quaternion initialRotation;
  678. Vector3 initialScale;
  679. String name;
  680. Node node;
  681. float radius;
  682. };
  683. class BorderImage
  684. {
  685. // Methods:
  686. void AddChild(UIElement);
  687. void ApplyAttributes();
  688. void BringToFront();
  689. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  690. void DisableLayoutUpdate();
  691. IntVector2 ElementToScreen(const IntVector2&);
  692. void EnableLayoutUpdate();
  693. uint FindChild(UIElement) const;
  694. Variant GetAttribute(const String&) const;
  695. ValueAnimation GetAttributeAnimation(const String&) const;
  696. float GetAttributeAnimationSpeed(const String&) const;
  697. float GetAttributeAnimationTime(const String&) const;
  698. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  699. Variant GetAttributeDefault(const String&) const;
  700. UIElement GetChild(const String&, bool = false) const;
  701. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  702. Array<UIElement> GetChildren(bool = false) const;
  703. UIElement GetElementEventSender() const;
  704. bool GetInterceptNetworkUpdate(const String&) const;
  705. uint GetNumChildren(bool) const;
  706. void InsertChild(uint, UIElement);
  707. bool IsInside(IntVector2, bool);
  708. bool IsInsideCombined(IntVector2, bool);
  709. bool Load(File, bool = false);
  710. bool Load(VectorBuffer&, bool = false);
  711. bool LoadChildXML(XMLFile, XMLFile = null);
  712. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  713. bool LoadXML(File);
  714. bool LoadXML(VectorBuffer&);
  715. bool LoadXML(XMLFile, XMLFile);
  716. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  717. bool LoadXML(const XMLElement&, bool = false);
  718. void MarkNetworkUpdate() const;
  719. void Remove();
  720. void RemoveAllChildren();
  721. void RemoveAttributeAnimation(const String&);
  722. void RemoveChild(UIElement, uint = 0);
  723. void RemoveChild(uint);
  724. void RemoveInstanceDefault();
  725. void RemoveObjectAnimation();
  726. void ResetDeepEnabled();
  727. void ResetToDefault();
  728. bool Save(File) const;
  729. bool Save(VectorBuffer&) const;
  730. bool SaveXML(File, const String& = "\t");
  731. bool SaveXML(VectorBuffer&, const String& = "\t");
  732. bool SaveXML(XMLElement&) const;
  733. IntVector2 ScreenToElement(const IntVector2&);
  734. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  735. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  736. void SetAnimationTime(float);
  737. bool SetAttribute(const String&, const Variant&);
  738. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  739. void SetAttributeAnimationSpeed(const String&, float);
  740. void SetAttributeAnimationTime(const String&, float);
  741. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  742. void SetDeepEnabled(bool);
  743. void SetEnabledRecursive(bool);
  744. void SetFixedHeight(int);
  745. void SetFixedSize(int, int);
  746. void SetFixedWidth(int);
  747. void SetFullImageRect();
  748. void SetHoverOffset(int, int);
  749. void SetInterceptNetworkUpdate(const String&, bool);
  750. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  751. void SetMaxSize(int, int);
  752. void SetMinSize(int, int);
  753. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  754. void SetPosition(int, int);
  755. void SetSize(int, int);
  756. bool SetStyle(const String&, XMLFile = null);
  757. bool SetStyle(const XMLElement&);
  758. bool SetStyleAuto(XMLFile = null);
  759. void UpdateLayout();
  760. const Variant& GetVar(const StringHash&);
  761. // Properties:
  762. bool animationEnabled;
  763. /* readonly */
  764. Array<Variant> attributeDefaults;
  765. /* readonly */
  766. Array<AttributeInfo> attributeInfos;
  767. Array<Variant> attributes;
  768. BlendMode blendMode;
  769. IntRect border;
  770. bool bringToBack;
  771. bool bringToFront;
  772. /* readonly */
  773. String category;
  774. /* readonly */
  775. IntVector2 childOffset;
  776. /* readonly */
  777. Array<UIElement> children;
  778. IntRect clipBorder;
  779. bool clipChildren;
  780. /* writeonly */
  781. Color color;
  782. /* readonly */
  783. bool colorGradient;
  784. Array<Color> colors;
  785. /* readonly */
  786. IntRect combinedScreenRect;
  787. XMLFile defaultStyle;
  788. /* readonly */
  789. float derivedOpacity;
  790. /* readonly */
  791. uint dragButtonCombo;
  792. /* readonly */
  793. int dragButtonCount;
  794. uint dragDropMode;
  795. bool editable;
  796. bool elementEventSender;
  797. bool enabled;
  798. /* readonly */
  799. bool enabledSelf;
  800. /* readonly */
  801. bool fixedHeight;
  802. /* readonly */
  803. bool fixedSize;
  804. /* readonly */
  805. bool fixedWidth;
  806. bool focus;
  807. FocusMode focusMode;
  808. int height;
  809. HorizontalAlignment horizontalAlignment;
  810. IntVector2 hoverOffset;
  811. /* readonly */
  812. bool hovering;
  813. IntRect imageBorder;
  814. IntRect imageRect;
  815. int indent;
  816. int indentSpacing;
  817. /* readonly */
  818. int indentWidth;
  819. bool internal;
  820. IntRect layoutBorder;
  821. Vector2 layoutFlexScale;
  822. LayoutMode layoutMode;
  823. int layoutSpacing;
  824. int maxHeight;
  825. IntVector2 maxSize;
  826. int maxWidth;
  827. int minHeight;
  828. IntVector2 minSize;
  829. int minWidth;
  830. String name;
  831. /* readonly */
  832. uint numAllChildren;
  833. /* readonly */
  834. uint numAttributes;
  835. /* readonly */
  836. uint numChildren;
  837. ObjectAnimation objectAnimation;
  838. float opacity;
  839. UIElement parent;
  840. IntVector2 position;
  841. int priority;
  842. /* readonly */
  843. int refs;
  844. /* readonly */
  845. UIElement root;
  846. /* readonly */
  847. IntVector2 screenPosition;
  848. bool selected;
  849. IntVector2 size;
  850. bool sortChildren;
  851. String style;
  852. bool temporary;
  853. Texture texture;
  854. bool tiled;
  855. TraversalMode traversalMode;
  856. /* readonly */
  857. StringHash type;
  858. /* readonly */
  859. String typeName;
  860. bool useDerivedOpacity;
  861. /* readonly */
  862. VariantMap vars;
  863. VerticalAlignment verticalAlignment;
  864. bool visible;
  865. /* readonly */
  866. bool visibleEffective;
  867. /* readonly */
  868. int weakRefs;
  869. int width;
  870. };
  871. class BoundingBox
  872. {
  873. // Methods:
  874. void Clear();
  875. void Clip(const BoundingBox&);
  876. void Define(const BoundingBox&);
  877. void Define(const Frustum&);
  878. void Define(const Polyhedron&);
  879. void Define(const Sphere&);
  880. void Define(const Vector3&);
  881. void Define(const Vector3&, const Vector3&);
  882. void Define(float, float);
  883. bool Defined() const;
  884. Intersection IsInside(const BoundingBox&) const;
  885. Intersection IsInside(const Sphere&) const;
  886. Intersection IsInside(const Vector3&) const;
  887. Intersection IsInsideFast(const BoundingBox&) const;
  888. Intersection IsInsideFast(const Sphere&) const;
  889. void Merge(const BoundingBox&);
  890. void Merge(const Frustum&);
  891. void Merge(const Polyhedron&);
  892. void Merge(const Sphere&);
  893. void Merge(const Vector3&);
  894. Rect Projected(const Matrix4&) const;
  895. String ToString() const;
  896. void Transform(const Matrix3&);
  897. void Transform(const Matrix3x4&);
  898. BoundingBox Transformed(const Matrix3&) const;
  899. BoundingBox Transformed(const Matrix3x4&) const;
  900. // Properties:
  901. /* readonly */
  902. Vector3 center;
  903. /* readonly */
  904. Vector3 halfSize;
  905. Vector3 max;
  906. Vector3 min;
  907. /* readonly */
  908. Vector3 size;
  909. };
  910. class Button
  911. {
  912. // Methods:
  913. void AddChild(UIElement);
  914. void ApplyAttributes();
  915. void BringToFront();
  916. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  917. void DisableLayoutUpdate();
  918. IntVector2 ElementToScreen(const IntVector2&);
  919. void EnableLayoutUpdate();
  920. uint FindChild(UIElement) const;
  921. Variant GetAttribute(const String&) const;
  922. ValueAnimation GetAttributeAnimation(const String&) const;
  923. float GetAttributeAnimationSpeed(const String&) const;
  924. float GetAttributeAnimationTime(const String&) const;
  925. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  926. Variant GetAttributeDefault(const String&) const;
  927. UIElement GetChild(const String&, bool = false) const;
  928. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  929. Array<UIElement> GetChildren(bool = false) const;
  930. UIElement GetElementEventSender() const;
  931. bool GetInterceptNetworkUpdate(const String&) const;
  932. uint GetNumChildren(bool) const;
  933. void InsertChild(uint, UIElement);
  934. bool IsInside(IntVector2, bool);
  935. bool IsInsideCombined(IntVector2, bool);
  936. bool Load(File, bool = false);
  937. bool Load(VectorBuffer&, bool = false);
  938. bool LoadChildXML(XMLFile, XMLFile = null);
  939. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  940. bool LoadXML(File);
  941. bool LoadXML(VectorBuffer&);
  942. bool LoadXML(XMLFile, XMLFile);
  943. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  944. bool LoadXML(const XMLElement&, bool = false);
  945. void MarkNetworkUpdate() const;
  946. void Remove();
  947. void RemoveAllChildren();
  948. void RemoveAttributeAnimation(const String&);
  949. void RemoveChild(UIElement, uint = 0);
  950. void RemoveChild(uint);
  951. void RemoveInstanceDefault();
  952. void RemoveObjectAnimation();
  953. void ResetDeepEnabled();
  954. void ResetToDefault();
  955. bool Save(File) const;
  956. bool Save(VectorBuffer&) const;
  957. bool SaveXML(File, const String& = "\t");
  958. bool SaveXML(VectorBuffer&, const String& = "\t");
  959. bool SaveXML(XMLElement&) const;
  960. IntVector2 ScreenToElement(const IntVector2&);
  961. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  962. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  963. void SetAnimationTime(float);
  964. bool SetAttribute(const String&, const Variant&);
  965. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  966. void SetAttributeAnimationSpeed(const String&, float);
  967. void SetAttributeAnimationTime(const String&, float);
  968. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  969. void SetDeepEnabled(bool);
  970. void SetEnabledRecursive(bool);
  971. void SetFixedHeight(int);
  972. void SetFixedSize(int, int);
  973. void SetFixedWidth(int);
  974. void SetFullImageRect();
  975. void SetHoverOffset(int, int);
  976. void SetInterceptNetworkUpdate(const String&, bool);
  977. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  978. void SetMaxSize(int, int);
  979. void SetMinSize(int, int);
  980. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  981. void SetPosition(int, int);
  982. void SetPressedChildOffset(int, int);
  983. void SetPressedOffset(int, int);
  984. void SetRepeat(float, float);
  985. void SetSize(int, int);
  986. bool SetStyle(const String&, XMLFile = null);
  987. bool SetStyle(const XMLElement&);
  988. bool SetStyleAuto(XMLFile = null);
  989. void UpdateLayout();
  990. const Variant& GetVar(const StringHash&);
  991. // Properties:
  992. bool animationEnabled;
  993. /* readonly */
  994. Array<Variant> attributeDefaults;
  995. /* readonly */
  996. Array<AttributeInfo> attributeInfos;
  997. Array<Variant> attributes;
  998. BlendMode blendMode;
  999. IntRect border;
  1000. bool bringToBack;
  1001. bool bringToFront;
  1002. /* readonly */
  1003. String category;
  1004. /* readonly */
  1005. IntVector2 childOffset;
  1006. /* readonly */
  1007. Array<UIElement> children;
  1008. IntRect clipBorder;
  1009. bool clipChildren;
  1010. /* writeonly */
  1011. Color color;
  1012. /* readonly */
  1013. bool colorGradient;
  1014. Array<Color> colors;
  1015. /* readonly */
  1016. IntRect combinedScreenRect;
  1017. XMLFile defaultStyle;
  1018. /* readonly */
  1019. float derivedOpacity;
  1020. /* readonly */
  1021. uint dragButtonCombo;
  1022. /* readonly */
  1023. int dragButtonCount;
  1024. uint dragDropMode;
  1025. bool editable;
  1026. bool elementEventSender;
  1027. bool enabled;
  1028. /* readonly */
  1029. bool enabledSelf;
  1030. /* readonly */
  1031. bool fixedHeight;
  1032. /* readonly */
  1033. bool fixedSize;
  1034. /* readonly */
  1035. bool fixedWidth;
  1036. bool focus;
  1037. FocusMode focusMode;
  1038. int height;
  1039. HorizontalAlignment horizontalAlignment;
  1040. IntVector2 hoverOffset;
  1041. /* readonly */
  1042. bool hovering;
  1043. IntRect imageBorder;
  1044. IntRect imageRect;
  1045. int indent;
  1046. int indentSpacing;
  1047. /* readonly */
  1048. int indentWidth;
  1049. bool internal;
  1050. IntRect layoutBorder;
  1051. Vector2 layoutFlexScale;
  1052. LayoutMode layoutMode;
  1053. int layoutSpacing;
  1054. int maxHeight;
  1055. IntVector2 maxSize;
  1056. int maxWidth;
  1057. int minHeight;
  1058. IntVector2 minSize;
  1059. int minWidth;
  1060. String name;
  1061. /* readonly */
  1062. uint numAllChildren;
  1063. /* readonly */
  1064. uint numAttributes;
  1065. /* readonly */
  1066. uint numChildren;
  1067. ObjectAnimation objectAnimation;
  1068. float opacity;
  1069. UIElement parent;
  1070. IntVector2 position;
  1071. /* readonly */
  1072. bool pressed;
  1073. IntVector2 pressedChildOffset;
  1074. IntVector2 pressedOffset;
  1075. int priority;
  1076. /* readonly */
  1077. int refs;
  1078. float repeatDelay;
  1079. float repeatRate;
  1080. /* readonly */
  1081. UIElement root;
  1082. /* readonly */
  1083. IntVector2 screenPosition;
  1084. bool selected;
  1085. IntVector2 size;
  1086. bool sortChildren;
  1087. String style;
  1088. bool temporary;
  1089. Texture texture;
  1090. bool tiled;
  1091. TraversalMode traversalMode;
  1092. /* readonly */
  1093. StringHash type;
  1094. /* readonly */
  1095. String typeName;
  1096. bool useDerivedOpacity;
  1097. /* readonly */
  1098. VariantMap vars;
  1099. VerticalAlignment verticalAlignment;
  1100. bool visible;
  1101. /* readonly */
  1102. bool visibleEffective;
  1103. /* readonly */
  1104. int weakRefs;
  1105. int width;
  1106. };
  1107. class Camera
  1108. {
  1109. // Methods:
  1110. void ApplyAttributes();
  1111. void DrawDebugGeometry(DebugRenderer, bool);
  1112. Variant GetAttribute(const String&) const;
  1113. ValueAnimation GetAttributeAnimation(const String&) const;
  1114. float GetAttributeAnimationSpeed(const String&) const;
  1115. float GetAttributeAnimationTime(const String&) const;
  1116. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1117. Variant GetAttributeDefault(const String&) const;
  1118. float GetDistance(const Vector3&) const;
  1119. float GetDistanceSquared(const Vector3&) const;
  1120. bool GetInterceptNetworkUpdate(const String&) const;
  1121. Ray GetScreenRay(float, float) const;
  1122. Frustum GetSplitFrustum(float, float) const;
  1123. bool Load(File, bool = false);
  1124. bool Load(VectorBuffer&, bool = false);
  1125. bool LoadXML(const XMLElement&, bool = false);
  1126. void MarkNetworkUpdate() const;
  1127. void Remove();
  1128. void RemoveAttributeAnimation(const String&);
  1129. void RemoveInstanceDefault();
  1130. void RemoveObjectAnimation();
  1131. void ResetToDefault();
  1132. bool Save(File) const;
  1133. bool Save(VectorBuffer&) const;
  1134. bool SaveXML(XMLElement&) const;
  1135. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1136. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1137. void SetAnimationTime(float);
  1138. bool SetAttribute(const String&, const Variant&);
  1139. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1140. void SetAttributeAnimationSpeed(const String&, float);
  1141. void SetAttributeAnimationTime(const String&, float);
  1142. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1143. void SetInterceptNetworkUpdate(const String&, bool);
  1144. void SetOrthoSize(const Vector2&);
  1145. Vector2 WorldToScreenPoint(const Vector3&) const;
  1146. // Properties:
  1147. bool animationEnabled;
  1148. float aspectRatio;
  1149. /* readonly */
  1150. Array<Variant> attributeDefaults;
  1151. /* readonly */
  1152. Array<AttributeInfo> attributeInfos;
  1153. Array<Variant> attributes;
  1154. bool autoAspectRatio;
  1155. /* readonly */
  1156. String category;
  1157. Plane clipPlane;
  1158. /* readonly */
  1159. Matrix3x4 effectiveWorldTransform;
  1160. bool enabled;
  1161. /* readonly */
  1162. bool enabledEffective;
  1163. float farClip;
  1164. FillMode fillMode;
  1165. float fov;
  1166. /* readonly */
  1167. Frustum frustum;
  1168. /* readonly */
  1169. float halfViewSize;
  1170. /* readonly */
  1171. uint id;
  1172. float lodBias;
  1173. float nearClip;
  1174. /* readonly */
  1175. Node node;
  1176. /* readonly */
  1177. uint numAttributes;
  1178. ObjectAnimation objectAnimation;
  1179. float orthoSize;
  1180. bool orthographic;
  1181. /* readonly */
  1182. Matrix4 projection;
  1183. Vector2 projectionOffset;
  1184. Plane reflectionPlane;
  1185. /* readonly */
  1186. int refs;
  1187. bool temporary;
  1188. /* readonly */
  1189. StringHash type;
  1190. /* readonly */
  1191. String typeName;
  1192. bool useClipping;
  1193. bool useReflection;
  1194. /* readonly */
  1195. Matrix3x4 view;
  1196. uint viewMask;
  1197. uint viewOverrideFlags;
  1198. /* readonly */
  1199. Frustum viewSpaceFrustum;
  1200. /* readonly */
  1201. int weakRefs;
  1202. float zoom;
  1203. };
  1204. class CascadeParameters
  1205. {
  1206. // Properties:
  1207. float biasAutoAdjust;
  1208. float fadeStart;
  1209. float split1;
  1210. float split2;
  1211. float split3;
  1212. float split4;
  1213. };
  1214. class CheckBox
  1215. {
  1216. // Methods:
  1217. void AddChild(UIElement);
  1218. void ApplyAttributes();
  1219. void BringToFront();
  1220. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1221. void DisableLayoutUpdate();
  1222. IntVector2 ElementToScreen(const IntVector2&);
  1223. void EnableLayoutUpdate();
  1224. uint FindChild(UIElement) const;
  1225. Variant GetAttribute(const String&) const;
  1226. ValueAnimation GetAttributeAnimation(const String&) const;
  1227. float GetAttributeAnimationSpeed(const String&) const;
  1228. float GetAttributeAnimationTime(const String&) const;
  1229. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1230. Variant GetAttributeDefault(const String&) const;
  1231. UIElement GetChild(const String&, bool = false) const;
  1232. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1233. Array<UIElement> GetChildren(bool = false) const;
  1234. UIElement GetElementEventSender() const;
  1235. bool GetInterceptNetworkUpdate(const String&) const;
  1236. uint GetNumChildren(bool) const;
  1237. void InsertChild(uint, UIElement);
  1238. bool IsInside(IntVector2, bool);
  1239. bool IsInsideCombined(IntVector2, bool);
  1240. bool Load(File, bool = false);
  1241. bool Load(VectorBuffer&, bool = false);
  1242. bool LoadChildXML(XMLFile, XMLFile = null);
  1243. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1244. bool LoadXML(File);
  1245. bool LoadXML(VectorBuffer&);
  1246. bool LoadXML(XMLFile, XMLFile);
  1247. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1248. bool LoadXML(const XMLElement&, bool = false);
  1249. void MarkNetworkUpdate() const;
  1250. void Remove();
  1251. void RemoveAllChildren();
  1252. void RemoveAttributeAnimation(const String&);
  1253. void RemoveChild(UIElement, uint = 0);
  1254. void RemoveChild(uint);
  1255. void RemoveInstanceDefault();
  1256. void RemoveObjectAnimation();
  1257. void ResetDeepEnabled();
  1258. void ResetToDefault();
  1259. bool Save(File) const;
  1260. bool Save(VectorBuffer&) const;
  1261. bool SaveXML(File, const String& = "\t");
  1262. bool SaveXML(VectorBuffer&, const String& = "\t");
  1263. bool SaveXML(XMLElement&) const;
  1264. IntVector2 ScreenToElement(const IntVector2&);
  1265. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1266. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1267. void SetAnimationTime(float);
  1268. bool SetAttribute(const String&, const Variant&);
  1269. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1270. void SetAttributeAnimationSpeed(const String&, float);
  1271. void SetAttributeAnimationTime(const String&, float);
  1272. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1273. void SetCheckedOffset(int, int);
  1274. void SetDeepEnabled(bool);
  1275. void SetEnabledRecursive(bool);
  1276. void SetFixedHeight(int);
  1277. void SetFixedSize(int, int);
  1278. void SetFixedWidth(int);
  1279. void SetFullImageRect();
  1280. void SetHoverOffset(int, int);
  1281. void SetInterceptNetworkUpdate(const String&, bool);
  1282. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1283. void SetMaxSize(int, int);
  1284. void SetMinSize(int, int);
  1285. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1286. void SetPosition(int, int);
  1287. void SetSize(int, int);
  1288. bool SetStyle(const String&, XMLFile = null);
  1289. bool SetStyle(const XMLElement&);
  1290. bool SetStyleAuto(XMLFile = null);
  1291. void UpdateLayout();
  1292. const Variant& GetVar(const StringHash&);
  1293. // Properties:
  1294. bool animationEnabled;
  1295. /* readonly */
  1296. Array<Variant> attributeDefaults;
  1297. /* readonly */
  1298. Array<AttributeInfo> attributeInfos;
  1299. Array<Variant> attributes;
  1300. BlendMode blendMode;
  1301. IntRect border;
  1302. bool bringToBack;
  1303. bool bringToFront;
  1304. /* readonly */
  1305. String category;
  1306. bool checked;
  1307. IntVector2 checkedOffset;
  1308. /* readonly */
  1309. IntVector2 childOffset;
  1310. /* readonly */
  1311. Array<UIElement> children;
  1312. IntRect clipBorder;
  1313. bool clipChildren;
  1314. /* writeonly */
  1315. Color color;
  1316. /* readonly */
  1317. bool colorGradient;
  1318. Array<Color> colors;
  1319. /* readonly */
  1320. IntRect combinedScreenRect;
  1321. XMLFile defaultStyle;
  1322. /* readonly */
  1323. float derivedOpacity;
  1324. /* readonly */
  1325. uint dragButtonCombo;
  1326. /* readonly */
  1327. int dragButtonCount;
  1328. uint dragDropMode;
  1329. bool editable;
  1330. bool elementEventSender;
  1331. bool enabled;
  1332. /* readonly */
  1333. bool enabledSelf;
  1334. /* readonly */
  1335. bool fixedHeight;
  1336. /* readonly */
  1337. bool fixedSize;
  1338. /* readonly */
  1339. bool fixedWidth;
  1340. bool focus;
  1341. FocusMode focusMode;
  1342. int height;
  1343. HorizontalAlignment horizontalAlignment;
  1344. IntVector2 hoverOffset;
  1345. /* readonly */
  1346. bool hovering;
  1347. IntRect imageBorder;
  1348. IntRect imageRect;
  1349. int indent;
  1350. int indentSpacing;
  1351. /* readonly */
  1352. int indentWidth;
  1353. bool internal;
  1354. IntRect layoutBorder;
  1355. Vector2 layoutFlexScale;
  1356. LayoutMode layoutMode;
  1357. int layoutSpacing;
  1358. int maxHeight;
  1359. IntVector2 maxSize;
  1360. int maxWidth;
  1361. int minHeight;
  1362. IntVector2 minSize;
  1363. int minWidth;
  1364. String name;
  1365. /* readonly */
  1366. uint numAllChildren;
  1367. /* readonly */
  1368. uint numAttributes;
  1369. /* readonly */
  1370. uint numChildren;
  1371. ObjectAnimation objectAnimation;
  1372. float opacity;
  1373. UIElement parent;
  1374. IntVector2 position;
  1375. int priority;
  1376. /* readonly */
  1377. int refs;
  1378. /* readonly */
  1379. UIElement root;
  1380. /* readonly */
  1381. IntVector2 screenPosition;
  1382. bool selected;
  1383. IntVector2 size;
  1384. bool sortChildren;
  1385. String style;
  1386. bool temporary;
  1387. Texture texture;
  1388. bool tiled;
  1389. TraversalMode traversalMode;
  1390. /* readonly */
  1391. StringHash type;
  1392. /* readonly */
  1393. String typeName;
  1394. bool useDerivedOpacity;
  1395. /* readonly */
  1396. VariantMap vars;
  1397. VerticalAlignment verticalAlignment;
  1398. bool visible;
  1399. /* readonly */
  1400. bool visibleEffective;
  1401. /* readonly */
  1402. int weakRefs;
  1403. int width;
  1404. };
  1405. class CollisionBox2D
  1406. {
  1407. // Methods:
  1408. void ApplyAttributes();
  1409. void DrawDebugGeometry(DebugRenderer, bool);
  1410. Variant GetAttribute(const String&) const;
  1411. ValueAnimation GetAttributeAnimation(const String&) const;
  1412. float GetAttributeAnimationSpeed(const String&) const;
  1413. float GetAttributeAnimationTime(const String&) const;
  1414. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1415. Variant GetAttributeDefault(const String&) const;
  1416. bool GetInterceptNetworkUpdate(const String&) const;
  1417. bool Load(File, bool = false);
  1418. bool Load(VectorBuffer&, bool = false);
  1419. bool LoadXML(const XMLElement&, bool = false);
  1420. void MarkNetworkUpdate() const;
  1421. void Remove();
  1422. void RemoveAttributeAnimation(const String&);
  1423. void RemoveInstanceDefault();
  1424. void RemoveObjectAnimation();
  1425. void ResetToDefault();
  1426. bool Save(File) const;
  1427. bool Save(VectorBuffer&) const;
  1428. bool SaveXML(XMLElement&) const;
  1429. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1430. void SetAnimationTime(float);
  1431. bool SetAttribute(const String&, const Variant&);
  1432. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1433. void SetAttributeAnimationSpeed(const String&, float);
  1434. void SetAttributeAnimationTime(const String&, float);
  1435. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1436. void SetCenter(float, float);
  1437. void SetInterceptNetworkUpdate(const String&, bool);
  1438. void SetSize(float, float);
  1439. // Properties:
  1440. float angle;
  1441. bool animationEnabled;
  1442. /* readonly */
  1443. Array<Variant> attributeDefaults;
  1444. /* readonly */
  1445. Array<AttributeInfo> attributeInfos;
  1446. Array<Variant> attributes;
  1447. /* readonly */
  1448. String category;
  1449. int categoryBits;
  1450. Vector2 center;
  1451. float density;
  1452. bool enabled;
  1453. /* readonly */
  1454. bool enabledEffective;
  1455. float friction;
  1456. int groupIndex;
  1457. /* readonly */
  1458. uint id;
  1459. /* readonly */
  1460. float inertia;
  1461. int maskBits;
  1462. /* readonly */
  1463. float mass;
  1464. /* readonly */
  1465. Vector2 massCenter;
  1466. /* readonly */
  1467. Node node;
  1468. /* readonly */
  1469. uint numAttributes;
  1470. ObjectAnimation objectAnimation;
  1471. /* readonly */
  1472. int refs;
  1473. float restitution;
  1474. Vector2 size;
  1475. bool temporary;
  1476. bool trigger;
  1477. /* readonly */
  1478. StringHash type;
  1479. /* readonly */
  1480. String typeName;
  1481. /* readonly */
  1482. int weakRefs;
  1483. };
  1484. class CollisionChain2D
  1485. {
  1486. // Methods:
  1487. void ApplyAttributes();
  1488. void DrawDebugGeometry(DebugRenderer, bool);
  1489. Variant GetAttribute(const String&) const;
  1490. ValueAnimation GetAttributeAnimation(const String&) const;
  1491. float GetAttributeAnimationSpeed(const String&) const;
  1492. float GetAttributeAnimationTime(const String&) const;
  1493. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1494. Variant GetAttributeDefault(const String&) const;
  1495. bool GetInterceptNetworkUpdate(const String&) const;
  1496. Array<Vector2> GetVertices() const;
  1497. bool Load(File, bool = false);
  1498. bool Load(VectorBuffer&, bool = false);
  1499. bool LoadXML(const XMLElement&, bool = false);
  1500. void MarkNetworkUpdate() const;
  1501. void Remove();
  1502. void RemoveAttributeAnimation(const String&);
  1503. void RemoveInstanceDefault();
  1504. void RemoveObjectAnimation();
  1505. void ResetToDefault();
  1506. bool Save(File) const;
  1507. bool Save(VectorBuffer&) const;
  1508. bool SaveXML(XMLElement&) const;
  1509. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1510. void SetAnimationTime(float);
  1511. bool SetAttribute(const String&, const Variant&);
  1512. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1513. void SetAttributeAnimationSpeed(const String&, float);
  1514. void SetAttributeAnimationTime(const String&, float);
  1515. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1516. void SetInterceptNetworkUpdate(const String&, bool);
  1517. void SetVertex(uint, const Vector2&);
  1518. void SetVertices(Array<Vector2>);
  1519. const Vector2& GetVertex(uint) const;
  1520. // Properties:
  1521. bool animationEnabled;
  1522. /* readonly */
  1523. Array<Variant> attributeDefaults;
  1524. /* readonly */
  1525. Array<AttributeInfo> attributeInfos;
  1526. Array<Variant> attributes;
  1527. /* readonly */
  1528. String category;
  1529. int categoryBits;
  1530. float density;
  1531. bool enabled;
  1532. /* readonly */
  1533. bool enabledEffective;
  1534. float friction;
  1535. int groupIndex;
  1536. /* readonly */
  1537. uint id;
  1538. /* readonly */
  1539. float inertia;
  1540. bool loop;
  1541. int maskBits;
  1542. /* readonly */
  1543. float mass;
  1544. /* readonly */
  1545. Vector2 massCenter;
  1546. /* readonly */
  1547. Node node;
  1548. /* readonly */
  1549. uint numAttributes;
  1550. ObjectAnimation objectAnimation;
  1551. /* readonly */
  1552. int refs;
  1553. float restitution;
  1554. bool temporary;
  1555. bool trigger;
  1556. /* readonly */
  1557. StringHash type;
  1558. /* readonly */
  1559. String typeName;
  1560. uint vertexCount;
  1561. /* readonly */
  1562. int weakRefs;
  1563. };
  1564. class CollisionCircle2D
  1565. {
  1566. // Methods:
  1567. void ApplyAttributes();
  1568. void DrawDebugGeometry(DebugRenderer, bool);
  1569. Variant GetAttribute(const String&) const;
  1570. ValueAnimation GetAttributeAnimation(const String&) const;
  1571. float GetAttributeAnimationSpeed(const String&) const;
  1572. float GetAttributeAnimationTime(const String&) const;
  1573. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1574. Variant GetAttributeDefault(const String&) const;
  1575. bool GetInterceptNetworkUpdate(const String&) const;
  1576. bool Load(File, bool = false);
  1577. bool Load(VectorBuffer&, bool = false);
  1578. bool LoadXML(const XMLElement&, bool = false);
  1579. void MarkNetworkUpdate() const;
  1580. void Remove();
  1581. void RemoveAttributeAnimation(const String&);
  1582. void RemoveInstanceDefault();
  1583. void RemoveObjectAnimation();
  1584. void ResetToDefault();
  1585. bool Save(File) const;
  1586. bool Save(VectorBuffer&) const;
  1587. bool SaveXML(XMLElement&) const;
  1588. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1589. void SetAnimationTime(float);
  1590. bool SetAttribute(const String&, const Variant&);
  1591. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1592. void SetAttributeAnimationSpeed(const String&, float);
  1593. void SetAttributeAnimationTime(const String&, float);
  1594. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1595. void SetCenter(float, float);
  1596. void SetInterceptNetworkUpdate(const String&, bool);
  1597. // Properties:
  1598. bool animationEnabled;
  1599. /* readonly */
  1600. Array<Variant> attributeDefaults;
  1601. /* readonly */
  1602. Array<AttributeInfo> attributeInfos;
  1603. Array<Variant> attributes;
  1604. /* readonly */
  1605. String category;
  1606. int categoryBits;
  1607. Vector2 center;
  1608. float density;
  1609. bool enabled;
  1610. /* readonly */
  1611. bool enabledEffective;
  1612. float friction;
  1613. int groupIndex;
  1614. /* readonly */
  1615. uint id;
  1616. /* readonly */
  1617. float inertia;
  1618. int maskBits;
  1619. /* readonly */
  1620. float mass;
  1621. /* readonly */
  1622. Vector2 massCenter;
  1623. /* readonly */
  1624. Node node;
  1625. /* readonly */
  1626. uint numAttributes;
  1627. ObjectAnimation objectAnimation;
  1628. float radius;
  1629. /* readonly */
  1630. int refs;
  1631. float restitution;
  1632. bool temporary;
  1633. bool trigger;
  1634. /* readonly */
  1635. StringHash type;
  1636. /* readonly */
  1637. String typeName;
  1638. /* readonly */
  1639. int weakRefs;
  1640. };
  1641. class CollisionEdge2D
  1642. {
  1643. // Methods:
  1644. void ApplyAttributes();
  1645. void DrawDebugGeometry(DebugRenderer, bool);
  1646. Variant GetAttribute(const String&) const;
  1647. ValueAnimation GetAttributeAnimation(const String&) const;
  1648. float GetAttributeAnimationSpeed(const String&) const;
  1649. float GetAttributeAnimationTime(const String&) const;
  1650. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1651. Variant GetAttributeDefault(const String&) const;
  1652. bool GetInterceptNetworkUpdate(const String&) const;
  1653. bool Load(File, bool = false);
  1654. bool Load(VectorBuffer&, bool = false);
  1655. bool LoadXML(const XMLElement&, bool = false);
  1656. void MarkNetworkUpdate() const;
  1657. void Remove();
  1658. void RemoveAttributeAnimation(const String&);
  1659. void RemoveInstanceDefault();
  1660. void RemoveObjectAnimation();
  1661. void ResetToDefault();
  1662. bool Save(File) const;
  1663. bool Save(VectorBuffer&) const;
  1664. bool SaveXML(XMLElement&) const;
  1665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1666. void SetAnimationTime(float);
  1667. bool SetAttribute(const String&, const Variant&);
  1668. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1669. void SetAttributeAnimationSpeed(const String&, float);
  1670. void SetAttributeAnimationTime(const String&, float);
  1671. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1672. void SetInterceptNetworkUpdate(const String&, bool);
  1673. void SetVertices(const Vector2&, const Vector2&);
  1674. // Properties:
  1675. bool animationEnabled;
  1676. /* readonly */
  1677. Array<Variant> attributeDefaults;
  1678. /* readonly */
  1679. Array<AttributeInfo> attributeInfos;
  1680. Array<Variant> attributes;
  1681. /* readonly */
  1682. String category;
  1683. int categoryBits;
  1684. float density;
  1685. bool enabled;
  1686. /* readonly */
  1687. bool enabledEffective;
  1688. float friction;
  1689. int groupIndex;
  1690. /* readonly */
  1691. uint id;
  1692. /* readonly */
  1693. float inertia;
  1694. int maskBits;
  1695. /* readonly */
  1696. float mass;
  1697. /* readonly */
  1698. Vector2 massCenter;
  1699. /* readonly */
  1700. Node node;
  1701. /* readonly */
  1702. uint numAttributes;
  1703. ObjectAnimation objectAnimation;
  1704. /* readonly */
  1705. int refs;
  1706. float restitution;
  1707. bool temporary;
  1708. bool trigger;
  1709. /* readonly */
  1710. StringHash type;
  1711. /* readonly */
  1712. String typeName;
  1713. Vector2 vertex1;
  1714. Vector2 vertex2;
  1715. /* readonly */
  1716. int weakRefs;
  1717. };
  1718. class CollisionPolygon2D
  1719. {
  1720. // Methods:
  1721. void ApplyAttributes();
  1722. void DrawDebugGeometry(DebugRenderer, bool);
  1723. Variant GetAttribute(const String&) const;
  1724. ValueAnimation GetAttributeAnimation(const String&) const;
  1725. float GetAttributeAnimationSpeed(const String&) const;
  1726. float GetAttributeAnimationTime(const String&) const;
  1727. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1728. Variant GetAttributeDefault(const String&) const;
  1729. bool GetInterceptNetworkUpdate(const String&) const;
  1730. Array<Vector2> GetVertices() const;
  1731. bool Load(File, bool = false);
  1732. bool Load(VectorBuffer&, bool = false);
  1733. bool LoadXML(const XMLElement&, bool = false);
  1734. void MarkNetworkUpdate() const;
  1735. void Remove();
  1736. void RemoveAttributeAnimation(const String&);
  1737. void RemoveInstanceDefault();
  1738. void RemoveObjectAnimation();
  1739. void ResetToDefault();
  1740. bool Save(File) const;
  1741. bool Save(VectorBuffer&) const;
  1742. bool SaveXML(XMLElement&) const;
  1743. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1744. void SetAnimationTime(float);
  1745. bool SetAttribute(const String&, const Variant&);
  1746. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1747. void SetAttributeAnimationSpeed(const String&, float);
  1748. void SetAttributeAnimationTime(const String&, float);
  1749. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1750. void SetInterceptNetworkUpdate(const String&, bool);
  1751. void SetVertex(uint, const Vector2&);
  1752. void SetVertices(Array<Vector2>);
  1753. const Vector2& GetVertex(uint) const;
  1754. // Properties:
  1755. bool animationEnabled;
  1756. /* readonly */
  1757. Array<Variant> attributeDefaults;
  1758. /* readonly */
  1759. Array<AttributeInfo> attributeInfos;
  1760. Array<Variant> attributes;
  1761. /* readonly */
  1762. String category;
  1763. int categoryBits;
  1764. float density;
  1765. bool enabled;
  1766. /* readonly */
  1767. bool enabledEffective;
  1768. float friction;
  1769. int groupIndex;
  1770. /* readonly */
  1771. uint id;
  1772. /* readonly */
  1773. float inertia;
  1774. int maskBits;
  1775. /* readonly */
  1776. float mass;
  1777. /* readonly */
  1778. Vector2 massCenter;
  1779. /* readonly */
  1780. Node node;
  1781. /* readonly */
  1782. uint numAttributes;
  1783. ObjectAnimation objectAnimation;
  1784. /* readonly */
  1785. int refs;
  1786. float restitution;
  1787. bool temporary;
  1788. bool trigger;
  1789. /* readonly */
  1790. StringHash type;
  1791. /* readonly */
  1792. String typeName;
  1793. uint vertexCount;
  1794. /* readonly */
  1795. int weakRefs;
  1796. };
  1797. class CollisionShape
  1798. {
  1799. // Methods:
  1800. void ApplyAttributes();
  1801. void DrawDebugGeometry(DebugRenderer, bool);
  1802. Variant GetAttribute(const String&) const;
  1803. ValueAnimation GetAttributeAnimation(const String&) const;
  1804. float GetAttributeAnimationSpeed(const String&) const;
  1805. float GetAttributeAnimationTime(const String&) const;
  1806. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1807. Variant GetAttributeDefault(const String&) const;
  1808. bool GetInterceptNetworkUpdate(const String&) const;
  1809. bool Load(File, bool = false);
  1810. bool Load(VectorBuffer&, bool = false);
  1811. bool LoadXML(const XMLElement&, bool = false);
  1812. void MarkNetworkUpdate() const;
  1813. void Remove();
  1814. void RemoveAttributeAnimation(const String&);
  1815. void RemoveInstanceDefault();
  1816. void RemoveObjectAnimation();
  1817. void ResetToDefault();
  1818. bool Save(File) const;
  1819. bool Save(VectorBuffer&) const;
  1820. bool SaveXML(XMLElement&) const;
  1821. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1822. void SetAnimationTime(float);
  1823. bool SetAttribute(const String&, const Variant&);
  1824. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1825. void SetAttributeAnimationSpeed(const String&, float);
  1826. void SetAttributeAnimationTime(const String&, float);
  1827. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1828. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1829. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1830. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1831. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1832. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1833. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1834. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1835. void SetInterceptNetworkUpdate(const String&, bool);
  1836. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1837. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1838. void SetTerrain(uint = 0);
  1839. void SetTransform(const Vector3&, const Quaternion&);
  1840. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1841. // Properties:
  1842. bool animationEnabled;
  1843. /* readonly */
  1844. Array<Variant> attributeDefaults;
  1845. /* readonly */
  1846. Array<AttributeInfo> attributeInfos;
  1847. Array<Variant> attributes;
  1848. /* readonly */
  1849. String category;
  1850. bool enabled;
  1851. /* readonly */
  1852. bool enabledEffective;
  1853. /* readonly */
  1854. uint id;
  1855. uint lodLevel;
  1856. float margin;
  1857. Model model;
  1858. /* readonly */
  1859. Node node;
  1860. /* readonly */
  1861. uint numAttributes;
  1862. ObjectAnimation objectAnimation;
  1863. Vector3 position;
  1864. /* readonly */
  1865. int refs;
  1866. Quaternion rotation;
  1867. ShapeType shapeType;
  1868. Vector3 size;
  1869. bool temporary;
  1870. /* readonly */
  1871. StringHash type;
  1872. /* readonly */
  1873. String typeName;
  1874. /* readonly */
  1875. int weakRefs;
  1876. /* readonly */
  1877. BoundingBox worldBoundingBox;
  1878. };
  1879. class CollisionShape2D
  1880. {
  1881. // Methods:
  1882. void ApplyAttributes();
  1883. void DrawDebugGeometry(DebugRenderer, bool);
  1884. Variant GetAttribute(const String&) const;
  1885. ValueAnimation GetAttributeAnimation(const String&) const;
  1886. float GetAttributeAnimationSpeed(const String&) const;
  1887. float GetAttributeAnimationTime(const String&) const;
  1888. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1889. Variant GetAttributeDefault(const String&) const;
  1890. bool GetInterceptNetworkUpdate(const String&) const;
  1891. bool Load(File, bool = false);
  1892. bool Load(VectorBuffer&, bool = false);
  1893. bool LoadXML(const XMLElement&, bool = false);
  1894. void MarkNetworkUpdate() const;
  1895. void Remove();
  1896. void RemoveAttributeAnimation(const String&);
  1897. void RemoveInstanceDefault();
  1898. void RemoveObjectAnimation();
  1899. void ResetToDefault();
  1900. bool Save(File) const;
  1901. bool Save(VectorBuffer&) const;
  1902. bool SaveXML(XMLElement&) const;
  1903. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1904. void SetAnimationTime(float);
  1905. bool SetAttribute(const String&, const Variant&);
  1906. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1907. void SetAttributeAnimationSpeed(const String&, float);
  1908. void SetAttributeAnimationTime(const String&, float);
  1909. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1910. void SetInterceptNetworkUpdate(const String&, bool);
  1911. // Properties:
  1912. bool animationEnabled;
  1913. /* readonly */
  1914. Array<Variant> attributeDefaults;
  1915. /* readonly */
  1916. Array<AttributeInfo> attributeInfos;
  1917. Array<Variant> attributes;
  1918. /* readonly */
  1919. String category;
  1920. int categoryBits;
  1921. float density;
  1922. bool enabled;
  1923. /* readonly */
  1924. bool enabledEffective;
  1925. float friction;
  1926. int groupIndex;
  1927. /* readonly */
  1928. uint id;
  1929. /* readonly */
  1930. float inertia;
  1931. int maskBits;
  1932. /* readonly */
  1933. float mass;
  1934. /* readonly */
  1935. Vector2 massCenter;
  1936. /* readonly */
  1937. Node node;
  1938. /* readonly */
  1939. uint numAttributes;
  1940. ObjectAnimation objectAnimation;
  1941. /* readonly */
  1942. int refs;
  1943. float restitution;
  1944. bool temporary;
  1945. bool trigger;
  1946. /* readonly */
  1947. StringHash type;
  1948. /* readonly */
  1949. String typeName;
  1950. /* readonly */
  1951. int weakRefs;
  1952. };
  1953. class Color
  1954. {
  1955. // Methods:
  1956. Color Abs() const;
  1957. float Average() const;
  1958. float Chroma() const;
  1959. void Clip(bool);
  1960. bool Equals() const;
  1961. void FromHSL(float, float, float, float);
  1962. void FromHSV(float, float, float, float);
  1963. float Hue() const;
  1964. void Invert(bool);
  1965. Color Lerp(const Color&, float) const;
  1966. float Lightness() const;
  1967. float Luma() const;
  1968. float MaxRGB() const;
  1969. float MinRGB() const;
  1970. float Range() const;
  1971. float SaturationHSL() const;
  1972. float SaturationHSV() const;
  1973. float SumRGB() const;
  1974. Vector3 ToHSL() const;
  1975. Vector3 ToHSV() const;
  1976. String ToString() const;
  1977. uint ToUInt() const;
  1978. float Value() const;
  1979. // Properties:
  1980. float a;
  1981. float b;
  1982. /* readonly */
  1983. Array<float> data;
  1984. float g;
  1985. float r;
  1986. /* readonly */
  1987. Vector3 rgb;
  1988. /* readonly */
  1989. Vector4 rgba;
  1990. };
  1991. class ColorFrame
  1992. {
  1993. // Properties:
  1994. Color color;
  1995. float time;
  1996. };
  1997. class Component
  1998. {
  1999. // Methods:
  2000. void ApplyAttributes();
  2001. void DrawDebugGeometry(DebugRenderer, bool);
  2002. Variant GetAttribute(const String&) const;
  2003. ValueAnimation GetAttributeAnimation(const String&) const;
  2004. float GetAttributeAnimationSpeed(const String&) const;
  2005. float GetAttributeAnimationTime(const String&) const;
  2006. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2007. Variant GetAttributeDefault(const String&) const;
  2008. bool GetInterceptNetworkUpdate(const String&) const;
  2009. bool Load(File, bool = false);
  2010. bool Load(VectorBuffer&, bool = false);
  2011. bool LoadXML(const XMLElement&, bool = false);
  2012. void MarkNetworkUpdate() const;
  2013. void Remove();
  2014. void RemoveAttributeAnimation(const String&);
  2015. void RemoveInstanceDefault();
  2016. void RemoveObjectAnimation();
  2017. void ResetToDefault();
  2018. bool Save(File) const;
  2019. bool Save(VectorBuffer&) const;
  2020. bool SaveXML(XMLElement&) const;
  2021. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2022. void SetAnimationTime(float);
  2023. bool SetAttribute(const String&, const Variant&);
  2024. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2025. void SetAttributeAnimationSpeed(const String&, float);
  2026. void SetAttributeAnimationTime(const String&, float);
  2027. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2028. void SetInterceptNetworkUpdate(const String&, bool);
  2029. // Properties:
  2030. bool animationEnabled;
  2031. /* readonly */
  2032. Array<Variant> attributeDefaults;
  2033. /* readonly */
  2034. Array<AttributeInfo> attributeInfos;
  2035. Array<Variant> attributes;
  2036. /* readonly */
  2037. String category;
  2038. bool enabled;
  2039. /* readonly */
  2040. bool enabledEffective;
  2041. /* readonly */
  2042. uint id;
  2043. /* readonly */
  2044. Node node;
  2045. /* readonly */
  2046. uint numAttributes;
  2047. ObjectAnimation objectAnimation;
  2048. /* readonly */
  2049. int refs;
  2050. bool temporary;
  2051. /* readonly */
  2052. StringHash type;
  2053. /* readonly */
  2054. String typeName;
  2055. /* readonly */
  2056. int weakRefs;
  2057. };
  2058. class Connection
  2059. {
  2060. // Methods:
  2061. void Disconnect(int = 0);
  2062. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2063. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2064. void SendPackageToClient(PackageFile);
  2065. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2066. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2067. String ToString() const;
  2068. // Properties:
  2069. /* readonly */
  2070. String address;
  2071. /* readonly */
  2072. float bytesInPerSec;
  2073. /* readonly */
  2074. float bytesOutPerSec;
  2075. /* readonly */
  2076. String category;
  2077. /* readonly */
  2078. bool client;
  2079. /* readonly */
  2080. bool connectPending;
  2081. /* readonly */
  2082. bool connected;
  2083. Controls controls;
  2084. /* readonly */
  2085. String downloadName;
  2086. /* readonly */
  2087. float downloadProgress;
  2088. VariantMap identity;
  2089. /* readonly */
  2090. float lastHeardTime;
  2091. bool logStatistics;
  2092. /* readonly */
  2093. uint numDownloads;
  2094. /* readonly */
  2095. float packetsInPerSec;
  2096. /* readonly */
  2097. float packetsOutPerSec;
  2098. /* readonly */
  2099. uint16 port;
  2100. Vector3 position;
  2101. /* readonly */
  2102. int refs;
  2103. Quaternion rotation;
  2104. /* readonly */
  2105. float roundTripTime;
  2106. Scene scene;
  2107. /* readonly */
  2108. bool sceneLoaded;
  2109. uint8 timeStamp;
  2110. /* readonly */
  2111. StringHash type;
  2112. /* readonly */
  2113. String typeName;
  2114. /* readonly */
  2115. int weakRefs;
  2116. };
  2117. class Console
  2118. {
  2119. // Methods:
  2120. void CopySelectedRows() const;
  2121. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2122. void Toggle();
  2123. void UpdateElements();
  2124. // Properties:
  2125. bool autoVisibleOnError;
  2126. /* readonly */
  2127. BorderImage background;
  2128. /* readonly */
  2129. String category;
  2130. /* readonly */
  2131. Button closeButton;
  2132. String commandInterpreter;
  2133. XMLFile defaultStyle;
  2134. bool focusOnShow;
  2135. /* readonly */
  2136. uint historyPosition;
  2137. /* readonly */
  2138. Array<String> historyRow;
  2139. /* readonly */
  2140. LineEdit lineEdit;
  2141. uint numBufferedRows;
  2142. uint numHistoryRows;
  2143. uint numRows;
  2144. /* readonly */
  2145. int refs;
  2146. /* readonly */
  2147. StringHash type;
  2148. /* readonly */
  2149. String typeName;
  2150. bool visible;
  2151. /* readonly */
  2152. int weakRefs;
  2153. };
  2154. class Constraint
  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. float GetAttributeAnimationTime(const String&) const;
  2163. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2164. Variant GetAttributeDefault(const String&) const;
  2165. bool GetInterceptNetworkUpdate(const String&) const;
  2166. bool Load(File, bool = false);
  2167. bool Load(VectorBuffer&, bool = false);
  2168. bool LoadXML(const XMLElement&, bool = false);
  2169. void MarkNetworkUpdate() const;
  2170. void Remove();
  2171. void RemoveAttributeAnimation(const String&);
  2172. void RemoveInstanceDefault();
  2173. void RemoveObjectAnimation();
  2174. void ResetToDefault();
  2175. bool Save(File) const;
  2176. bool Save(VectorBuffer&) const;
  2177. bool SaveXML(XMLElement&) const;
  2178. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2179. void SetAnimationTime(float);
  2180. bool SetAttribute(const String&, const Variant&);
  2181. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2182. void SetAttributeAnimationSpeed(const String&, float);
  2183. void SetAttributeAnimationTime(const String&, float);
  2184. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2185. void SetInterceptNetworkUpdate(const String&, bool);
  2186. // Properties:
  2187. bool animationEnabled;
  2188. /* readonly */
  2189. Array<Variant> attributeDefaults;
  2190. /* readonly */
  2191. Array<AttributeInfo> attributeInfos;
  2192. Array<Variant> attributes;
  2193. /* writeonly */
  2194. Vector3 axis;
  2195. /* readonly */
  2196. String category;
  2197. float cfm;
  2198. ConstraintType constraintType;
  2199. bool disableCollision;
  2200. bool enabled;
  2201. /* readonly */
  2202. bool enabledEffective;
  2203. float erp;
  2204. Vector2 highLimit;
  2205. /* readonly */
  2206. uint id;
  2207. Vector2 lowLimit;
  2208. /* readonly */
  2209. Node node;
  2210. /* readonly */
  2211. uint numAttributes;
  2212. ObjectAnimation objectAnimation;
  2213. /* writeonly */
  2214. Vector3 otherAxis;
  2215. RigidBody otherBody;
  2216. Vector3 otherPosition;
  2217. Quaternion otherRotation;
  2218. /* readonly */
  2219. RigidBody ownBody;
  2220. Vector3 position;
  2221. /* readonly */
  2222. int refs;
  2223. Quaternion rotation;
  2224. bool temporary;
  2225. /* readonly */
  2226. StringHash type;
  2227. /* readonly */
  2228. String typeName;
  2229. /* readonly */
  2230. int weakRefs;
  2231. Vector3 worldPosition;
  2232. };
  2233. class Constraint2D
  2234. {
  2235. // Methods:
  2236. void ApplyAttributes();
  2237. void DrawDebugGeometry(DebugRenderer, bool);
  2238. Variant GetAttribute(const String&) const;
  2239. ValueAnimation GetAttributeAnimation(const String&) const;
  2240. float GetAttributeAnimationSpeed(const String&) const;
  2241. float GetAttributeAnimationTime(const String&) const;
  2242. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2243. Variant GetAttributeDefault(const String&) const;
  2244. bool GetInterceptNetworkUpdate(const String&) const;
  2245. bool Load(File, bool = false);
  2246. bool Load(VectorBuffer&, bool = false);
  2247. bool LoadXML(const XMLElement&, bool = false);
  2248. void MarkNetworkUpdate() const;
  2249. void Remove();
  2250. void RemoveAttributeAnimation(const String&);
  2251. void RemoveInstanceDefault();
  2252. void RemoveObjectAnimation();
  2253. void ResetToDefault();
  2254. bool Save(File) const;
  2255. bool Save(VectorBuffer&) const;
  2256. bool SaveXML(XMLElement&) const;
  2257. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2258. void SetAnimationTime(float);
  2259. bool SetAttribute(const String&, const Variant&);
  2260. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2261. void SetAttributeAnimationSpeed(const String&, float);
  2262. void SetAttributeAnimationTime(const String&, float);
  2263. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2264. void SetInterceptNetworkUpdate(const String&, bool);
  2265. // Properties:
  2266. bool animationEnabled;
  2267. /* readonly */
  2268. Array<Variant> attributeDefaults;
  2269. /* readonly */
  2270. Array<AttributeInfo> attributeInfos;
  2271. Array<Variant> attributes;
  2272. /* readonly */
  2273. String category;
  2274. bool collideConnected;
  2275. bool enabled;
  2276. /* readonly */
  2277. bool enabledEffective;
  2278. /* readonly */
  2279. uint id;
  2280. /* readonly */
  2281. Node node;
  2282. /* readonly */
  2283. uint numAttributes;
  2284. ObjectAnimation objectAnimation;
  2285. RigidBody2D otherBody;
  2286. /* readonly */
  2287. RigidBody2D ownerBody;
  2288. /* readonly */
  2289. int refs;
  2290. bool temporary;
  2291. /* readonly */
  2292. StringHash type;
  2293. /* readonly */
  2294. String typeName;
  2295. /* readonly */
  2296. int weakRefs;
  2297. };
  2298. class ConstraintDistance2D
  2299. {
  2300. // Methods:
  2301. void ApplyAttributes();
  2302. void DrawDebugGeometry(DebugRenderer, bool);
  2303. Variant GetAttribute(const String&) const;
  2304. ValueAnimation GetAttributeAnimation(const String&) const;
  2305. float GetAttributeAnimationSpeed(const String&) const;
  2306. float GetAttributeAnimationTime(const String&) const;
  2307. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2308. Variant GetAttributeDefault(const String&) const;
  2309. bool GetInterceptNetworkUpdate(const String&) const;
  2310. bool Load(File, bool = false);
  2311. bool Load(VectorBuffer&, bool = false);
  2312. bool LoadXML(const XMLElement&, bool = false);
  2313. void MarkNetworkUpdate() const;
  2314. void Remove();
  2315. void RemoveAttributeAnimation(const String&);
  2316. void RemoveInstanceDefault();
  2317. void RemoveObjectAnimation();
  2318. void ResetToDefault();
  2319. bool Save(File) const;
  2320. bool Save(VectorBuffer&) const;
  2321. bool SaveXML(XMLElement&) const;
  2322. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2323. void SetAnimationTime(float);
  2324. bool SetAttribute(const String&, const Variant&);
  2325. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2326. void SetAttributeAnimationSpeed(const String&, float);
  2327. void SetAttributeAnimationTime(const String&, float);
  2328. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2329. void SetInterceptNetworkUpdate(const String&, bool);
  2330. // Properties:
  2331. bool animationEnabled;
  2332. /* readonly */
  2333. Array<Variant> attributeDefaults;
  2334. /* readonly */
  2335. Array<AttributeInfo> attributeInfos;
  2336. Array<Variant> attributes;
  2337. /* readonly */
  2338. String category;
  2339. bool collideConnected;
  2340. float dampingRatio;
  2341. bool enabled;
  2342. /* readonly */
  2343. bool enabledEffective;
  2344. float frequencyHz;
  2345. /* readonly */
  2346. uint id;
  2347. /* readonly */
  2348. Node node;
  2349. /* readonly */
  2350. uint numAttributes;
  2351. ObjectAnimation objectAnimation;
  2352. RigidBody2D otherBody;
  2353. Vector2 otherBodyAnchor;
  2354. /* readonly */
  2355. RigidBody2D ownerBody;
  2356. Vector2 ownerBodyAnchor;
  2357. /* readonly */
  2358. int refs;
  2359. bool temporary;
  2360. /* readonly */
  2361. StringHash type;
  2362. /* readonly */
  2363. String typeName;
  2364. /* readonly */
  2365. int weakRefs;
  2366. };
  2367. class ConstraintFriction2D
  2368. {
  2369. // Methods:
  2370. void ApplyAttributes();
  2371. void DrawDebugGeometry(DebugRenderer, bool);
  2372. Variant GetAttribute(const String&) const;
  2373. ValueAnimation GetAttributeAnimation(const String&) const;
  2374. float GetAttributeAnimationSpeed(const String&) const;
  2375. float GetAttributeAnimationTime(const String&) const;
  2376. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2377. Variant GetAttributeDefault(const String&) const;
  2378. bool GetInterceptNetworkUpdate(const String&) const;
  2379. bool Load(File, bool = false);
  2380. bool Load(VectorBuffer&, bool = false);
  2381. bool LoadXML(const XMLElement&, bool = false);
  2382. void MarkNetworkUpdate() const;
  2383. void Remove();
  2384. void RemoveAttributeAnimation(const String&);
  2385. void RemoveInstanceDefault();
  2386. void RemoveObjectAnimation();
  2387. void ResetToDefault();
  2388. bool Save(File) const;
  2389. bool Save(VectorBuffer&) const;
  2390. bool SaveXML(XMLElement&) const;
  2391. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2392. void SetAnimationTime(float);
  2393. bool SetAttribute(const String&, const Variant&);
  2394. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2395. void SetAttributeAnimationSpeed(const String&, float);
  2396. void SetAttributeAnimationTime(const String&, float);
  2397. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2398. void SetInterceptNetworkUpdate(const String&, bool);
  2399. // Properties:
  2400. Vector2 anchor;
  2401. bool animationEnabled;
  2402. /* readonly */
  2403. Array<Variant> attributeDefaults;
  2404. /* readonly */
  2405. Array<AttributeInfo> attributeInfos;
  2406. Array<Variant> attributes;
  2407. /* readonly */
  2408. String category;
  2409. bool collideConnected;
  2410. bool enabled;
  2411. /* readonly */
  2412. bool enabledEffective;
  2413. /* readonly */
  2414. uint id;
  2415. float maxForce;
  2416. float maxTorque;
  2417. /* readonly */
  2418. Node node;
  2419. /* readonly */
  2420. uint numAttributes;
  2421. ObjectAnimation objectAnimation;
  2422. RigidBody2D otherBody;
  2423. /* readonly */
  2424. RigidBody2D ownerBody;
  2425. /* readonly */
  2426. int refs;
  2427. bool temporary;
  2428. /* readonly */
  2429. StringHash type;
  2430. /* readonly */
  2431. String typeName;
  2432. /* readonly */
  2433. int weakRefs;
  2434. };
  2435. class ConstraintGear2D
  2436. {
  2437. // Methods:
  2438. void ApplyAttributes();
  2439. void DrawDebugGeometry(DebugRenderer, bool);
  2440. Variant GetAttribute(const String&) const;
  2441. ValueAnimation GetAttributeAnimation(const String&) const;
  2442. float GetAttributeAnimationSpeed(const String&) const;
  2443. float GetAttributeAnimationTime(const String&) const;
  2444. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2445. Variant GetAttributeDefault(const String&) const;
  2446. bool GetInterceptNetworkUpdate(const String&) const;
  2447. bool Load(File, bool = false);
  2448. bool Load(VectorBuffer&, bool = false);
  2449. bool LoadXML(const XMLElement&, bool = false);
  2450. void MarkNetworkUpdate() const;
  2451. void Remove();
  2452. void RemoveAttributeAnimation(const String&);
  2453. void RemoveInstanceDefault();
  2454. void RemoveObjectAnimation();
  2455. void ResetToDefault();
  2456. bool Save(File) const;
  2457. bool Save(VectorBuffer&) const;
  2458. bool SaveXML(XMLElement&) const;
  2459. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2460. void SetAnimationTime(float);
  2461. bool SetAttribute(const String&, const Variant&);
  2462. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2463. void SetAttributeAnimationSpeed(const String&, float);
  2464. void SetAttributeAnimationTime(const String&, float);
  2465. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2466. void SetInterceptNetworkUpdate(const String&, bool);
  2467. // Properties:
  2468. bool animationEnabled;
  2469. /* readonly */
  2470. Array<Variant> attributeDefaults;
  2471. /* readonly */
  2472. Array<AttributeInfo> attributeInfos;
  2473. Array<Variant> attributes;
  2474. /* readonly */
  2475. String category;
  2476. bool collideConnected;
  2477. bool enabled;
  2478. /* readonly */
  2479. bool enabledEffective;
  2480. /* readonly */
  2481. uint id;
  2482. /* readonly */
  2483. Node node;
  2484. /* readonly */
  2485. uint numAttributes;
  2486. ObjectAnimation objectAnimation;
  2487. RigidBody2D otherBody;
  2488. Constraint2D otherConstraint;
  2489. /* readonly */
  2490. RigidBody2D ownerBody;
  2491. Constraint2D ownerConstraint;
  2492. float ratio;
  2493. /* readonly */
  2494. int refs;
  2495. bool temporary;
  2496. /* readonly */
  2497. StringHash type;
  2498. /* readonly */
  2499. String typeName;
  2500. /* readonly */
  2501. int weakRefs;
  2502. };
  2503. class ConstraintMotor2D
  2504. {
  2505. // Methods:
  2506. void ApplyAttributes();
  2507. void DrawDebugGeometry(DebugRenderer, bool);
  2508. Variant GetAttribute(const String&) const;
  2509. ValueAnimation GetAttributeAnimation(const String&) const;
  2510. float GetAttributeAnimationSpeed(const String&) const;
  2511. float GetAttributeAnimationTime(const String&) const;
  2512. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2513. Variant GetAttributeDefault(const String&) const;
  2514. bool GetInterceptNetworkUpdate(const String&) const;
  2515. bool Load(File, bool = false);
  2516. bool Load(VectorBuffer&, bool = false);
  2517. bool LoadXML(const XMLElement&, bool = false);
  2518. void MarkNetworkUpdate() const;
  2519. void Remove();
  2520. void RemoveAttributeAnimation(const String&);
  2521. void RemoveInstanceDefault();
  2522. void RemoveObjectAnimation();
  2523. void ResetToDefault();
  2524. bool Save(File) const;
  2525. bool Save(VectorBuffer&) const;
  2526. bool SaveXML(XMLElement&) const;
  2527. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2528. void SetAnimationTime(float);
  2529. bool SetAttribute(const String&, const Variant&);
  2530. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2531. void SetAttributeAnimationSpeed(const String&, float);
  2532. void SetAttributeAnimationTime(const String&, float);
  2533. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2534. void SetInterceptNetworkUpdate(const String&, bool);
  2535. // Properties:
  2536. float angularOffset;
  2537. bool animationEnabled;
  2538. /* readonly */
  2539. Array<Variant> attributeDefaults;
  2540. /* readonly */
  2541. Array<AttributeInfo> attributeInfos;
  2542. Array<Variant> attributes;
  2543. /* readonly */
  2544. String category;
  2545. bool collideConnected;
  2546. float correctionFactor;
  2547. bool enabled;
  2548. /* readonly */
  2549. bool enabledEffective;
  2550. /* readonly */
  2551. uint id;
  2552. Vector2 linearOffset;
  2553. float maxForce;
  2554. float maxTorque;
  2555. /* readonly */
  2556. Node node;
  2557. /* readonly */
  2558. uint numAttributes;
  2559. ObjectAnimation objectAnimation;
  2560. RigidBody2D otherBody;
  2561. /* readonly */
  2562. RigidBody2D ownerBody;
  2563. /* readonly */
  2564. int refs;
  2565. bool temporary;
  2566. /* readonly */
  2567. StringHash type;
  2568. /* readonly */
  2569. String typeName;
  2570. /* readonly */
  2571. int weakRefs;
  2572. };
  2573. class ConstraintMouse2D
  2574. {
  2575. // Methods:
  2576. void ApplyAttributes();
  2577. void DrawDebugGeometry(DebugRenderer, bool);
  2578. Variant GetAttribute(const String&) const;
  2579. ValueAnimation GetAttributeAnimation(const String&) const;
  2580. float GetAttributeAnimationSpeed(const String&) const;
  2581. float GetAttributeAnimationTime(const String&) const;
  2582. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2583. Variant GetAttributeDefault(const String&) const;
  2584. bool GetInterceptNetworkUpdate(const String&) const;
  2585. bool Load(File, bool = false);
  2586. bool Load(VectorBuffer&, bool = false);
  2587. bool LoadXML(const XMLElement&, bool = false);
  2588. void MarkNetworkUpdate() const;
  2589. void Remove();
  2590. void RemoveAttributeAnimation(const String&);
  2591. void RemoveInstanceDefault();
  2592. void RemoveObjectAnimation();
  2593. void ResetToDefault();
  2594. bool Save(File) const;
  2595. bool Save(VectorBuffer&) const;
  2596. bool SaveXML(XMLElement&) const;
  2597. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2598. void SetAnimationTime(float);
  2599. bool SetAttribute(const String&, const Variant&);
  2600. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2601. void SetAttributeAnimationSpeed(const String&, float);
  2602. void SetAttributeAnimationTime(const String&, float);
  2603. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2604. void SetInterceptNetworkUpdate(const String&, bool);
  2605. // Properties:
  2606. bool animationEnabled;
  2607. /* readonly */
  2608. Array<Variant> attributeDefaults;
  2609. /* readonly */
  2610. Array<AttributeInfo> attributeInfos;
  2611. Array<Variant> attributes;
  2612. /* readonly */
  2613. String category;
  2614. bool collideConnected;
  2615. float dampingRatio;
  2616. bool enabled;
  2617. /* readonly */
  2618. bool enabledEffective;
  2619. float frequencyHz;
  2620. /* readonly */
  2621. uint id;
  2622. float maxForce;
  2623. /* readonly */
  2624. Node node;
  2625. /* readonly */
  2626. uint numAttributes;
  2627. ObjectAnimation objectAnimation;
  2628. RigidBody2D otherBody;
  2629. /* readonly */
  2630. RigidBody2D ownerBody;
  2631. /* readonly */
  2632. int refs;
  2633. Vector2 target;
  2634. bool temporary;
  2635. /* readonly */
  2636. StringHash type;
  2637. /* readonly */
  2638. String typeName;
  2639. /* readonly */
  2640. int weakRefs;
  2641. };
  2642. class ConstraintPrismatic2D
  2643. {
  2644. // Methods:
  2645. void ApplyAttributes();
  2646. void DrawDebugGeometry(DebugRenderer, bool);
  2647. Variant GetAttribute(const String&) const;
  2648. ValueAnimation GetAttributeAnimation(const String&) const;
  2649. float GetAttributeAnimationSpeed(const String&) const;
  2650. float GetAttributeAnimationTime(const String&) const;
  2651. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2652. Variant GetAttributeDefault(const String&) const;
  2653. bool GetInterceptNetworkUpdate(const String&) const;
  2654. bool Load(File, bool = false);
  2655. bool Load(VectorBuffer&, bool = false);
  2656. bool LoadXML(const XMLElement&, bool = false);
  2657. void MarkNetworkUpdate() const;
  2658. void Remove();
  2659. void RemoveAttributeAnimation(const String&);
  2660. void RemoveInstanceDefault();
  2661. void RemoveObjectAnimation();
  2662. void ResetToDefault();
  2663. bool Save(File) const;
  2664. bool Save(VectorBuffer&) const;
  2665. bool SaveXML(XMLElement&) const;
  2666. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2667. void SetAnimationTime(float);
  2668. bool SetAttribute(const String&, const Variant&);
  2669. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2670. void SetAttributeAnimationSpeed(const String&, float);
  2671. void SetAttributeAnimationTime(const String&, float);
  2672. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2673. void SetInterceptNetworkUpdate(const String&, bool);
  2674. // Properties:
  2675. Vector2 anchor;
  2676. bool animationEnabled;
  2677. /* readonly */
  2678. Array<Variant> attributeDefaults;
  2679. /* readonly */
  2680. Array<AttributeInfo> attributeInfos;
  2681. Array<Variant> attributes;
  2682. Vector2 axis;
  2683. /* readonly */
  2684. String category;
  2685. bool collideConnected;
  2686. bool enableLimit;
  2687. bool enableMotor;
  2688. bool enabled;
  2689. /* readonly */
  2690. bool enabledEffective;
  2691. /* readonly */
  2692. uint id;
  2693. float lowerTranslation;
  2694. float maxMotorForce;
  2695. float motorSpeed;
  2696. /* readonly */
  2697. Node node;
  2698. /* readonly */
  2699. uint numAttributes;
  2700. ObjectAnimation objectAnimation;
  2701. RigidBody2D otherBody;
  2702. /* readonly */
  2703. RigidBody2D ownerBody;
  2704. /* readonly */
  2705. int refs;
  2706. bool temporary;
  2707. /* readonly */
  2708. StringHash type;
  2709. /* readonly */
  2710. String typeName;
  2711. float upperTranslation;
  2712. /* readonly */
  2713. int weakRefs;
  2714. };
  2715. class ConstraintPulley2D
  2716. {
  2717. // Methods:
  2718. void ApplyAttributes();
  2719. void DrawDebugGeometry(DebugRenderer, bool);
  2720. Variant GetAttribute(const String&) const;
  2721. ValueAnimation GetAttributeAnimation(const String&) const;
  2722. float GetAttributeAnimationSpeed(const String&) const;
  2723. float GetAttributeAnimationTime(const String&) const;
  2724. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2725. Variant GetAttributeDefault(const String&) const;
  2726. bool GetInterceptNetworkUpdate(const String&) const;
  2727. bool Load(File, bool = false);
  2728. bool Load(VectorBuffer&, bool = false);
  2729. bool LoadXML(const XMLElement&, bool = false);
  2730. void MarkNetworkUpdate() const;
  2731. void Remove();
  2732. void RemoveAttributeAnimation(const String&);
  2733. void RemoveInstanceDefault();
  2734. void RemoveObjectAnimation();
  2735. void ResetToDefault();
  2736. bool Save(File) const;
  2737. bool Save(VectorBuffer&) const;
  2738. bool SaveXML(XMLElement&) const;
  2739. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2740. void SetAnimationTime(float);
  2741. bool SetAttribute(const String&, const Variant&);
  2742. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2743. void SetAttributeAnimationSpeed(const String&, float);
  2744. void SetAttributeAnimationTime(const String&, float);
  2745. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2746. void SetInterceptNetworkUpdate(const String&, bool);
  2747. // Properties:
  2748. bool animationEnabled;
  2749. /* readonly */
  2750. Array<Variant> attributeDefaults;
  2751. /* readonly */
  2752. Array<AttributeInfo> attributeInfos;
  2753. Array<Variant> attributes;
  2754. /* readonly */
  2755. String category;
  2756. bool collideConnected;
  2757. bool enabled;
  2758. /* readonly */
  2759. bool enabledEffective;
  2760. /* readonly */
  2761. uint id;
  2762. /* readonly */
  2763. Node node;
  2764. /* readonly */
  2765. uint numAttributes;
  2766. ObjectAnimation objectAnimation;
  2767. RigidBody2D otherBody;
  2768. Vector2 otherBodyAnchor;
  2769. Vector2 otherBodyGroundAnchor;
  2770. /* readonly */
  2771. RigidBody2D ownerBody;
  2772. Vector2 ownerBodyAnchor;
  2773. Vector2 ownerBodyGroundAnchor;
  2774. float ratio;
  2775. /* readonly */
  2776. int refs;
  2777. bool temporary;
  2778. /* readonly */
  2779. StringHash type;
  2780. /* readonly */
  2781. String typeName;
  2782. /* readonly */
  2783. int weakRefs;
  2784. };
  2785. class ConstraintRevolute2D
  2786. {
  2787. // Methods:
  2788. void ApplyAttributes();
  2789. void DrawDebugGeometry(DebugRenderer, bool);
  2790. Variant GetAttribute(const String&) const;
  2791. ValueAnimation GetAttributeAnimation(const String&) const;
  2792. float GetAttributeAnimationSpeed(const String&) const;
  2793. float GetAttributeAnimationTime(const String&) const;
  2794. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2795. Variant GetAttributeDefault(const String&) const;
  2796. bool GetInterceptNetworkUpdate(const String&) const;
  2797. bool Load(File, bool = false);
  2798. bool Load(VectorBuffer&, bool = false);
  2799. bool LoadXML(const XMLElement&, bool = false);
  2800. void MarkNetworkUpdate() const;
  2801. void Remove();
  2802. void RemoveAttributeAnimation(const String&);
  2803. void RemoveInstanceDefault();
  2804. void RemoveObjectAnimation();
  2805. void ResetToDefault();
  2806. bool Save(File) const;
  2807. bool Save(VectorBuffer&) const;
  2808. bool SaveXML(XMLElement&) const;
  2809. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2810. void SetAnimationTime(float);
  2811. bool SetAttribute(const String&, const Variant&);
  2812. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2813. void SetAttributeAnimationSpeed(const String&, float);
  2814. void SetAttributeAnimationTime(const String&, float);
  2815. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2816. void SetInterceptNetworkUpdate(const String&, bool);
  2817. // Properties:
  2818. Vector2 anchor;
  2819. bool animationEnabled;
  2820. /* readonly */
  2821. Array<Variant> attributeDefaults;
  2822. /* readonly */
  2823. Array<AttributeInfo> attributeInfos;
  2824. Array<Variant> attributes;
  2825. /* readonly */
  2826. String category;
  2827. bool collideConnected;
  2828. bool enableLimit;
  2829. bool enableMotor;
  2830. bool enabled;
  2831. /* readonly */
  2832. bool enabledEffective;
  2833. /* readonly */
  2834. uint id;
  2835. float lowerAngle;
  2836. float maxMotorTorque;
  2837. float motorSpeed;
  2838. /* readonly */
  2839. Node node;
  2840. /* readonly */
  2841. uint numAttributes;
  2842. ObjectAnimation objectAnimation;
  2843. RigidBody2D otherBody;
  2844. /* readonly */
  2845. RigidBody2D ownerBody;
  2846. /* readonly */
  2847. int refs;
  2848. bool temporary;
  2849. /* readonly */
  2850. StringHash type;
  2851. /* readonly */
  2852. String typeName;
  2853. float upperAngle;
  2854. /* readonly */
  2855. int weakRefs;
  2856. };
  2857. class ConstraintRope2D
  2858. {
  2859. // Methods:
  2860. void ApplyAttributes();
  2861. void DrawDebugGeometry(DebugRenderer, bool);
  2862. Variant GetAttribute(const String&) const;
  2863. ValueAnimation GetAttributeAnimation(const String&) const;
  2864. float GetAttributeAnimationSpeed(const String&) const;
  2865. float GetAttributeAnimationTime(const String&) const;
  2866. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2867. Variant GetAttributeDefault(const String&) const;
  2868. bool GetInterceptNetworkUpdate(const String&) const;
  2869. bool Load(File, bool = false);
  2870. bool Load(VectorBuffer&, bool = false);
  2871. bool LoadXML(const XMLElement&, bool = false);
  2872. void MarkNetworkUpdate() const;
  2873. void Remove();
  2874. void RemoveAttributeAnimation(const String&);
  2875. void RemoveInstanceDefault();
  2876. void RemoveObjectAnimation();
  2877. void ResetToDefault();
  2878. bool Save(File) const;
  2879. bool Save(VectorBuffer&) const;
  2880. bool SaveXML(XMLElement&) const;
  2881. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2882. void SetAnimationTime(float);
  2883. bool SetAttribute(const String&, const Variant&);
  2884. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2885. void SetAttributeAnimationSpeed(const String&, float);
  2886. void SetAttributeAnimationTime(const String&, float);
  2887. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2888. void SetInterceptNetworkUpdate(const String&, bool);
  2889. // Properties:
  2890. bool animationEnabled;
  2891. /* readonly */
  2892. Array<Variant> attributeDefaults;
  2893. /* readonly */
  2894. Array<AttributeInfo> attributeInfos;
  2895. Array<Variant> attributes;
  2896. /* readonly */
  2897. String category;
  2898. bool collideConnected;
  2899. bool enabled;
  2900. /* readonly */
  2901. bool enabledEffective;
  2902. /* readonly */
  2903. uint id;
  2904. float maxLength;
  2905. /* readonly */
  2906. Node node;
  2907. /* readonly */
  2908. uint numAttributes;
  2909. ObjectAnimation objectAnimation;
  2910. RigidBody2D otherBody;
  2911. Vector2 otherBodyAnchor;
  2912. /* readonly */
  2913. RigidBody2D ownerBody;
  2914. Vector2 ownerBodyAnchor;
  2915. /* readonly */
  2916. int refs;
  2917. bool temporary;
  2918. /* readonly */
  2919. StringHash type;
  2920. /* readonly */
  2921. String typeName;
  2922. /* readonly */
  2923. int weakRefs;
  2924. };
  2925. class ConstraintWeld2D
  2926. {
  2927. // Methods:
  2928. void ApplyAttributes();
  2929. void DrawDebugGeometry(DebugRenderer, bool);
  2930. Variant GetAttribute(const String&) const;
  2931. ValueAnimation GetAttributeAnimation(const String&) const;
  2932. float GetAttributeAnimationSpeed(const String&) const;
  2933. float GetAttributeAnimationTime(const String&) const;
  2934. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2935. Variant GetAttributeDefault(const String&) const;
  2936. bool GetInterceptNetworkUpdate(const String&) const;
  2937. bool Load(File, bool = false);
  2938. bool Load(VectorBuffer&, bool = false);
  2939. bool LoadXML(const XMLElement&, bool = false);
  2940. void MarkNetworkUpdate() const;
  2941. void Remove();
  2942. void RemoveAttributeAnimation(const String&);
  2943. void RemoveInstanceDefault();
  2944. void RemoveObjectAnimation();
  2945. void ResetToDefault();
  2946. bool Save(File) const;
  2947. bool Save(VectorBuffer&) const;
  2948. bool SaveXML(XMLElement&) const;
  2949. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2950. void SetAnimationTime(float);
  2951. bool SetAttribute(const String&, const Variant&);
  2952. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2953. void SetAttributeAnimationSpeed(const String&, float);
  2954. void SetAttributeAnimationTime(const String&, float);
  2955. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2956. void SetInterceptNetworkUpdate(const String&, bool);
  2957. // Properties:
  2958. Vector2 anchor;
  2959. bool animationEnabled;
  2960. /* readonly */
  2961. Array<Variant> attributeDefaults;
  2962. /* readonly */
  2963. Array<AttributeInfo> attributeInfos;
  2964. Array<Variant> attributes;
  2965. /* readonly */
  2966. String category;
  2967. bool collideConnected;
  2968. float dampingRatio;
  2969. bool enabled;
  2970. /* readonly */
  2971. bool enabledEffective;
  2972. float frequencyHz;
  2973. /* readonly */
  2974. uint id;
  2975. /* readonly */
  2976. Node node;
  2977. /* readonly */
  2978. uint numAttributes;
  2979. ObjectAnimation objectAnimation;
  2980. RigidBody2D otherBody;
  2981. /* readonly */
  2982. RigidBody2D ownerBody;
  2983. /* readonly */
  2984. int refs;
  2985. bool temporary;
  2986. /* readonly */
  2987. StringHash type;
  2988. /* readonly */
  2989. String typeName;
  2990. /* readonly */
  2991. int weakRefs;
  2992. };
  2993. class ConstraintWheel2D
  2994. {
  2995. // Methods:
  2996. void ApplyAttributes();
  2997. void DrawDebugGeometry(DebugRenderer, bool);
  2998. Variant GetAttribute(const String&) const;
  2999. ValueAnimation GetAttributeAnimation(const String&) const;
  3000. float GetAttributeAnimationSpeed(const String&) const;
  3001. float GetAttributeAnimationTime(const String&) const;
  3002. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3003. Variant GetAttributeDefault(const String&) const;
  3004. bool GetInterceptNetworkUpdate(const String&) const;
  3005. bool Load(File, bool = false);
  3006. bool Load(VectorBuffer&, bool = false);
  3007. bool LoadXML(const XMLElement&, bool = false);
  3008. void MarkNetworkUpdate() const;
  3009. void Remove();
  3010. void RemoveAttributeAnimation(const String&);
  3011. void RemoveInstanceDefault();
  3012. void RemoveObjectAnimation();
  3013. void ResetToDefault();
  3014. bool Save(File) const;
  3015. bool Save(VectorBuffer&) const;
  3016. bool SaveXML(XMLElement&) const;
  3017. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3018. void SetAnimationTime(float);
  3019. bool SetAttribute(const String&, const Variant&);
  3020. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3021. void SetAttributeAnimationSpeed(const String&, float);
  3022. void SetAttributeAnimationTime(const String&, float);
  3023. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3024. void SetInterceptNetworkUpdate(const String&, bool);
  3025. // Properties:
  3026. Vector2 anchor;
  3027. bool animationEnabled;
  3028. /* readonly */
  3029. Array<Variant> attributeDefaults;
  3030. /* readonly */
  3031. Array<AttributeInfo> attributeInfos;
  3032. Array<Variant> attributes;
  3033. Vector2 axis;
  3034. /* readonly */
  3035. String category;
  3036. bool collideConnected;
  3037. float dampingRatio;
  3038. bool enableMotor;
  3039. bool enabled;
  3040. /* readonly */
  3041. bool enabledEffective;
  3042. float frequencyHz;
  3043. /* readonly */
  3044. uint id;
  3045. float maxMotorTorque;
  3046. float motorSpeed;
  3047. /* readonly */
  3048. Node node;
  3049. /* readonly */
  3050. uint numAttributes;
  3051. ObjectAnimation objectAnimation;
  3052. RigidBody2D otherBody;
  3053. /* readonly */
  3054. RigidBody2D ownerBody;
  3055. /* readonly */
  3056. int refs;
  3057. bool temporary;
  3058. /* readonly */
  3059. StringHash type;
  3060. /* readonly */
  3061. String typeName;
  3062. /* readonly */
  3063. int weakRefs;
  3064. };
  3065. class Controls
  3066. {
  3067. // Methods:
  3068. bool IsDown(uint) const;
  3069. bool IsPressed(uint, const Controls&) const;
  3070. void Reset();
  3071. void Set(uint, bool);
  3072. // Properties:
  3073. uint buttons;
  3074. VariantMap extraData;
  3075. float pitch;
  3076. float yaw;
  3077. };
  3078. class CrowdAgent
  3079. {
  3080. // Methods:
  3081. void ApplyAttributes();
  3082. void DrawDebugGeometry(DebugRenderer, bool);
  3083. void DrawDebugGeometry(bool);
  3084. Variant GetAttribute(const String&) const;
  3085. ValueAnimation GetAttributeAnimation(const String&) const;
  3086. float GetAttributeAnimationSpeed(const String&) const;
  3087. float GetAttributeAnimationTime(const String&) const;
  3088. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3089. Variant GetAttributeDefault(const String&) const;
  3090. bool GetInterceptNetworkUpdate(const String&) const;
  3091. bool Load(File, bool = false);
  3092. bool Load(VectorBuffer&, bool = false);
  3093. bool LoadXML(const XMLElement&, bool = false);
  3094. void MarkNetworkUpdate() const;
  3095. void Remove();
  3096. void RemoveAttributeAnimation(const String&);
  3097. void RemoveInstanceDefault();
  3098. void RemoveObjectAnimation();
  3099. void ResetTarget();
  3100. void ResetToDefault();
  3101. bool Save(File) const;
  3102. bool Save(VectorBuffer&) const;
  3103. bool SaveXML(XMLElement&) const;
  3104. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3105. void SetAnimationTime(float);
  3106. bool SetAttribute(const String&, const Variant&);
  3107. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3108. void SetAttributeAnimationSpeed(const String&, float);
  3109. void SetAttributeAnimationTime(const String&, float);
  3110. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3111. void SetInterceptNetworkUpdate(const String&, bool);
  3112. // Properties:
  3113. /* readonly */
  3114. Vector3 actualVelocity;
  3115. /* readonly */
  3116. CrowdAgentState agentState;
  3117. bool animationEnabled;
  3118. /* readonly */
  3119. bool arrived;
  3120. /* readonly */
  3121. Array<Variant> attributeDefaults;
  3122. /* readonly */
  3123. Array<AttributeInfo> attributeInfos;
  3124. Array<Variant> attributes;
  3125. /* readonly */
  3126. String category;
  3127. /* readonly */
  3128. Vector3 desiredVelocity;
  3129. bool enabled;
  3130. /* readonly */
  3131. bool enabledEffective;
  3132. float height;
  3133. /* readonly */
  3134. uint id;
  3135. /* readonly */
  3136. bool inCrowd;
  3137. float maxAccel;
  3138. float maxSpeed;
  3139. NavigationPushiness navigationPushiness;
  3140. NavigationQuality navigationQuality;
  3141. /* readonly */
  3142. Node node;
  3143. /* readonly */
  3144. uint numAttributes;
  3145. ObjectAnimation objectAnimation;
  3146. uint obstacleAvoidanceType;
  3147. /* readonly */
  3148. Vector3 position;
  3149. uint queryFilterType;
  3150. float radius;
  3151. /* readonly */
  3152. int refs;
  3153. /* readonly */
  3154. bool requestedTarget;
  3155. /* readonly */
  3156. CrowdAgentRequestedTarget requestedTargetType;
  3157. Vector3 targetPosition;
  3158. /* readonly */
  3159. CrowdAgentTargetState targetState;
  3160. Vector3 targetVelocity;
  3161. bool temporary;
  3162. /* readonly */
  3163. StringHash type;
  3164. /* readonly */
  3165. String typeName;
  3166. bool updateNodePosition;
  3167. /* readonly */
  3168. int weakRefs;
  3169. };
  3170. class CrowdManager
  3171. {
  3172. // Methods:
  3173. void ApplyAttributes();
  3174. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3175. void DrawDebugGeometry(DebugRenderer, bool);
  3176. void DrawDebugGeometry(bool);
  3177. Vector3 FindNearestPoint(const Vector3&, int);
  3178. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3179. float GetAreaCost(uint, uint);
  3180. Variant GetAttribute(const String&) const;
  3181. ValueAnimation GetAttributeAnimation(const String&) const;
  3182. float GetAttributeAnimationSpeed(const String&) const;
  3183. float GetAttributeAnimationTime(const String&) const;
  3184. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3185. Variant GetAttributeDefault(const String&) const;
  3186. float GetDistanceToWall(const Vector3&, float, int);
  3187. uint16 GetExcludeFlags(uint);
  3188. uint16 GetIncludeFlags(uint);
  3189. bool GetInterceptNetworkUpdate(const String&) const;
  3190. Vector3 GetRandomPoint(int);
  3191. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3192. bool Load(File, bool = false);
  3193. bool Load(VectorBuffer&, bool = false);
  3194. bool LoadXML(const XMLElement&, bool = false);
  3195. void MarkNetworkUpdate() const;
  3196. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3197. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3198. void Remove();
  3199. void RemoveAttributeAnimation(const String&);
  3200. void RemoveInstanceDefault();
  3201. void RemoveObjectAnimation();
  3202. void ResetCrowdTarget(Node = null);
  3203. void ResetToDefault();
  3204. bool Save(File) const;
  3205. bool Save(VectorBuffer&) const;
  3206. bool SaveXML(XMLElement&) const;
  3207. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3208. void SetAnimationTime(float);
  3209. void SetAreaCost(uint, uint, float);
  3210. bool SetAttribute(const String&, const Variant&);
  3211. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3212. void SetAttributeAnimationSpeed(const String&, float);
  3213. void SetAttributeAnimationTime(const String&, float);
  3214. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3215. void SetCrowdTarget(const Vector3&, Node = null);
  3216. void SetCrowdVelocity(const Vector3&, Node = null);
  3217. void SetExcludeFlags(uint, uint16);
  3218. void SetIncludeFlags(uint, uint16);
  3219. void SetInterceptNetworkUpdate(const String&, bool);
  3220. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3221. // Properties:
  3222. bool animationEnabled;
  3223. /* readonly */
  3224. Array<Variant> attributeDefaults;
  3225. /* readonly */
  3226. Array<AttributeInfo> attributeInfos;
  3227. Array<Variant> attributes;
  3228. /* readonly */
  3229. String category;
  3230. bool enabled;
  3231. /* readonly */
  3232. bool enabledEffective;
  3233. /* readonly */
  3234. uint id;
  3235. float maxAgentRadius;
  3236. int maxAgents;
  3237. NavigationMesh navMesh;
  3238. /* readonly */
  3239. Node node;
  3240. /* readonly */
  3241. Array<uint> numAreas;
  3242. /* readonly */
  3243. uint numAttributes;
  3244. /* readonly */
  3245. uint numObstacleAvoidanceTypes;
  3246. /* readonly */
  3247. uint numQueryFilterTypes;
  3248. ObjectAnimation objectAnimation;
  3249. /* readonly */
  3250. int refs;
  3251. bool temporary;
  3252. /* readonly */
  3253. StringHash type;
  3254. /* readonly */
  3255. String typeName;
  3256. /* readonly */
  3257. int weakRefs;
  3258. };
  3259. class CrowdObstacleAvoidanceParams
  3260. {
  3261. // Properties:
  3262. uint8 adaptiveDepth;
  3263. uint8 adaptiveDivs;
  3264. uint8 adaptiveRings;
  3265. uint8 gridSize;
  3266. float horizTime;
  3267. float velBias;
  3268. float weightCurVel;
  3269. float weightDesVel;
  3270. float weightSide;
  3271. float weightToi;
  3272. };
  3273. class Cursor
  3274. {
  3275. // Methods:
  3276. void AddChild(UIElement);
  3277. void ApplyAttributes();
  3278. void BringToFront();
  3279. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3280. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3281. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3282. void DisableLayoutUpdate();
  3283. IntVector2 ElementToScreen(const IntVector2&);
  3284. void EnableLayoutUpdate();
  3285. uint FindChild(UIElement) const;
  3286. Variant GetAttribute(const String&) const;
  3287. ValueAnimation GetAttributeAnimation(const String&) const;
  3288. float GetAttributeAnimationSpeed(const String&) const;
  3289. float GetAttributeAnimationTime(const String&) const;
  3290. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3291. Variant GetAttributeDefault(const String&) const;
  3292. UIElement GetChild(const String&, bool = false) const;
  3293. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3294. Array<UIElement> GetChildren(bool = false) const;
  3295. UIElement GetElementEventSender() const;
  3296. bool GetInterceptNetworkUpdate(const String&) const;
  3297. uint GetNumChildren(bool) const;
  3298. void InsertChild(uint, UIElement);
  3299. bool IsInside(IntVector2, bool);
  3300. bool IsInsideCombined(IntVector2, bool);
  3301. bool Load(File, bool = false);
  3302. bool Load(VectorBuffer&, bool = false);
  3303. bool LoadChildXML(XMLFile, XMLFile = null);
  3304. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3305. bool LoadXML(File);
  3306. bool LoadXML(VectorBuffer&);
  3307. bool LoadXML(XMLFile, XMLFile);
  3308. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3309. bool LoadXML(const XMLElement&, bool = false);
  3310. void MarkNetworkUpdate() const;
  3311. void Remove();
  3312. void RemoveAllChildren();
  3313. void RemoveAttributeAnimation(const String&);
  3314. void RemoveChild(UIElement, uint = 0);
  3315. void RemoveChild(uint);
  3316. void RemoveInstanceDefault();
  3317. void RemoveObjectAnimation();
  3318. void ResetDeepEnabled();
  3319. void ResetToDefault();
  3320. bool Save(File) const;
  3321. bool Save(VectorBuffer&) const;
  3322. bool SaveXML(File, const String& = "\t");
  3323. bool SaveXML(VectorBuffer&, const String& = "\t");
  3324. bool SaveXML(XMLElement&) const;
  3325. IntVector2 ScreenToElement(const IntVector2&);
  3326. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3327. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3328. void SetAnimationTime(float);
  3329. bool SetAttribute(const String&, const Variant&);
  3330. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3331. void SetAttributeAnimationSpeed(const String&, float);
  3332. void SetAttributeAnimationTime(const String&, float);
  3333. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3334. void SetDeepEnabled(bool);
  3335. void SetEnabledRecursive(bool);
  3336. void SetFixedHeight(int);
  3337. void SetFixedSize(int, int);
  3338. void SetFixedWidth(int);
  3339. void SetFullImageRect();
  3340. void SetHoverOffset(int, int);
  3341. void SetInterceptNetworkUpdate(const String&, bool);
  3342. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3343. void SetMaxSize(int, int);
  3344. void SetMinSize(int, int);
  3345. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3346. void SetPosition(int, int);
  3347. void SetShape(CursorShape);
  3348. void SetShape(const String&);
  3349. void SetSize(int, int);
  3350. bool SetStyle(const String&, XMLFile = null);
  3351. bool SetStyle(const XMLElement&);
  3352. bool SetStyleAuto(XMLFile = null);
  3353. void UpdateLayout();
  3354. const Variant& GetVar(const StringHash&);
  3355. // Properties:
  3356. bool animationEnabled;
  3357. /* readonly */
  3358. Array<Variant> attributeDefaults;
  3359. /* readonly */
  3360. Array<AttributeInfo> attributeInfos;
  3361. Array<Variant> attributes;
  3362. BlendMode blendMode;
  3363. IntRect border;
  3364. bool bringToBack;
  3365. bool bringToFront;
  3366. /* readonly */
  3367. String category;
  3368. /* readonly */
  3369. IntVector2 childOffset;
  3370. /* readonly */
  3371. Array<UIElement> children;
  3372. IntRect clipBorder;
  3373. bool clipChildren;
  3374. /* writeonly */
  3375. Color color;
  3376. /* readonly */
  3377. bool colorGradient;
  3378. Array<Color> colors;
  3379. /* readonly */
  3380. IntRect combinedScreenRect;
  3381. XMLFile defaultStyle;
  3382. /* readonly */
  3383. float derivedOpacity;
  3384. /* readonly */
  3385. uint dragButtonCombo;
  3386. /* readonly */
  3387. int dragButtonCount;
  3388. uint dragDropMode;
  3389. bool editable;
  3390. bool elementEventSender;
  3391. bool enabled;
  3392. /* readonly */
  3393. bool enabledSelf;
  3394. /* readonly */
  3395. bool fixedHeight;
  3396. /* readonly */
  3397. bool fixedSize;
  3398. /* readonly */
  3399. bool fixedWidth;
  3400. bool focus;
  3401. FocusMode focusMode;
  3402. int height;
  3403. HorizontalAlignment horizontalAlignment;
  3404. IntVector2 hoverOffset;
  3405. /* readonly */
  3406. bool hovering;
  3407. IntRect imageBorder;
  3408. IntRect imageRect;
  3409. int indent;
  3410. int indentSpacing;
  3411. /* readonly */
  3412. int indentWidth;
  3413. bool internal;
  3414. IntRect layoutBorder;
  3415. Vector2 layoutFlexScale;
  3416. LayoutMode layoutMode;
  3417. int layoutSpacing;
  3418. int maxHeight;
  3419. IntVector2 maxSize;
  3420. int maxWidth;
  3421. int minHeight;
  3422. IntVector2 minSize;
  3423. int minWidth;
  3424. String name;
  3425. /* readonly */
  3426. uint numAllChildren;
  3427. /* readonly */
  3428. uint numAttributes;
  3429. /* readonly */
  3430. uint numChildren;
  3431. ObjectAnimation objectAnimation;
  3432. float opacity;
  3433. UIElement parent;
  3434. IntVector2 position;
  3435. int priority;
  3436. /* readonly */
  3437. int refs;
  3438. /* readonly */
  3439. UIElement root;
  3440. /* readonly */
  3441. IntVector2 screenPosition;
  3442. bool selected;
  3443. String shape;
  3444. IntVector2 size;
  3445. bool sortChildren;
  3446. String style;
  3447. bool temporary;
  3448. Texture texture;
  3449. bool tiled;
  3450. TraversalMode traversalMode;
  3451. /* readonly */
  3452. StringHash type;
  3453. /* readonly */
  3454. String typeName;
  3455. bool useDerivedOpacity;
  3456. bool useSystemShapes;
  3457. /* readonly */
  3458. VariantMap vars;
  3459. VerticalAlignment verticalAlignment;
  3460. bool visible;
  3461. /* readonly */
  3462. bool visibleEffective;
  3463. /* readonly */
  3464. int weakRefs;
  3465. int width;
  3466. };
  3467. class CustomGeometry
  3468. {
  3469. // Methods:
  3470. void ApplyAttributes();
  3471. void BeginGeometry(uint, PrimitiveType);
  3472. void Clear();
  3473. void Commit();
  3474. void DefineColor(const Color&);
  3475. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3476. void DefineNormal(const Vector3&);
  3477. void DefineTangent(const Vector4&);
  3478. void DefineTexCoord(const Vector2&);
  3479. void DefineVertex(const Vector3&);
  3480. void DrawDebugGeometry(DebugRenderer, bool);
  3481. Variant GetAttribute(const String&) const;
  3482. ValueAnimation GetAttributeAnimation(const String&) const;
  3483. float GetAttributeAnimationSpeed(const String&) const;
  3484. float GetAttributeAnimationTime(const String&) const;
  3485. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3486. Variant GetAttributeDefault(const String&) const;
  3487. bool GetInterceptNetworkUpdate(const String&) const;
  3488. CustomGeometryVertex GetVertex(uint, uint);
  3489. bool IsInView(Camera) const;
  3490. bool Load(File, bool = false);
  3491. bool Load(VectorBuffer&, bool = false);
  3492. bool LoadXML(const XMLElement&, bool = false);
  3493. void MarkNetworkUpdate() const;
  3494. void Remove();
  3495. void RemoveAttributeAnimation(const String&);
  3496. void RemoveInstanceDefault();
  3497. void RemoveObjectAnimation();
  3498. void ResetToDefault();
  3499. bool Save(File) const;
  3500. bool Save(VectorBuffer&) const;
  3501. bool SaveXML(XMLElement&) const;
  3502. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3503. void SetAnimationTime(float);
  3504. bool SetAttribute(const String&, const Variant&);
  3505. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3506. void SetAttributeAnimationSpeed(const String&, float);
  3507. void SetAttributeAnimationTime(const String&, float);
  3508. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3509. void SetInterceptNetworkUpdate(const String&, bool);
  3510. // Properties:
  3511. bool animationEnabled;
  3512. /* readonly */
  3513. Array<Variant> attributeDefaults;
  3514. /* readonly */
  3515. Array<AttributeInfo> attributeInfos;
  3516. Array<Variant> attributes;
  3517. /* readonly */
  3518. BoundingBox boundingBox;
  3519. bool castShadows;
  3520. /* readonly */
  3521. String category;
  3522. float drawDistance;
  3523. bool dynamic;
  3524. bool enabled;
  3525. /* readonly */
  3526. bool enabledEffective;
  3527. /* readonly */
  3528. uint id;
  3529. /* readonly */
  3530. bool inView;
  3531. uint lightMask;
  3532. float lodBias;
  3533. /* writeonly */
  3534. Material material;
  3535. Array<Material> materials;
  3536. uint maxLights;
  3537. /* readonly */
  3538. Node node;
  3539. /* readonly */
  3540. uint numAttributes;
  3541. uint numGeometries;
  3542. /* readonly */
  3543. Array<uint> numVertices;
  3544. ObjectAnimation objectAnimation;
  3545. bool occludee;
  3546. bool occluder;
  3547. /* readonly */
  3548. int refs;
  3549. float shadowDistance;
  3550. uint shadowMask;
  3551. bool temporary;
  3552. /* readonly */
  3553. StringHash type;
  3554. /* readonly */
  3555. String typeName;
  3556. uint viewMask;
  3557. /* readonly */
  3558. int weakRefs;
  3559. /* readonly */
  3560. BoundingBox worldBoundingBox;
  3561. /* readonly */
  3562. Zone zone;
  3563. uint zoneMask;
  3564. };
  3565. class CustomGeometryVertex
  3566. {
  3567. // Properties:
  3568. uint color;
  3569. Vector3 normal;
  3570. Vector3 position;
  3571. Vector4 tangent;
  3572. Vector2 texCoord;
  3573. };
  3574. class Database
  3575. {
  3576. // Methods:
  3577. DbConnection Connect(const String&);
  3578. void Disconnect(DbConnection);
  3579. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3580. // Properties:
  3581. /* readonly */
  3582. String category;
  3583. uint poolSize;
  3584. /* readonly */
  3585. bool pooling;
  3586. /* readonly */
  3587. int refs;
  3588. /* readonly */
  3589. StringHash type;
  3590. /* readonly */
  3591. String typeName;
  3592. /* readonly */
  3593. int weakRefs;
  3594. };
  3595. class DbConnection
  3596. {
  3597. // Methods:
  3598. DbResult Execute(const String&, bool = false);
  3599. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3600. // Properties:
  3601. /* readonly */
  3602. String category;
  3603. /* readonly */
  3604. bool connected;
  3605. /* readonly */
  3606. String connectionString;
  3607. /* readonly */
  3608. int refs;
  3609. /* readonly */
  3610. StringHash type;
  3611. /* readonly */
  3612. String typeName;
  3613. /* readonly */
  3614. int weakRefs;
  3615. };
  3616. class DbResult
  3617. {
  3618. // Properties:
  3619. /* readonly */
  3620. Array<String> columns;
  3621. /* readonly */
  3622. int64 numAffectedRows;
  3623. /* readonly */
  3624. uint numColumns;
  3625. /* readonly */
  3626. uint numRows;
  3627. /* readonly */
  3628. Array<Array<Variant>> row;
  3629. };
  3630. class DebugHud
  3631. {
  3632. // Methods:
  3633. void ClearAppStats();
  3634. void ResetAppStats(const String&);
  3635. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3636. void SetAppStats(const String&, const String&);
  3637. void SetAppStats(const String&, const Variant&);
  3638. void Toggle(uint);
  3639. void ToggleAll();
  3640. void Update();
  3641. // Properties:
  3642. /* readonly */
  3643. String category;
  3644. XMLFile defaultStyle;
  3645. /* readonly */
  3646. Text memoryText;
  3647. uint mode;
  3648. /* readonly */
  3649. Text modeText;
  3650. float profilerInterval;
  3651. uint profilerMaxDepth;
  3652. /* readonly */
  3653. Text profilerText;
  3654. /* readonly */
  3655. int refs;
  3656. /* readonly */
  3657. Text statsText;
  3658. /* readonly */
  3659. StringHash type;
  3660. /* readonly */
  3661. String typeName;
  3662. bool useRendererStats;
  3663. /* readonly */
  3664. int weakRefs;
  3665. };
  3666. class DebugRenderer
  3667. {
  3668. // Methods:
  3669. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3670. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3671. void AddCross(const Vector3&, float, const Color&, bool = true);
  3672. void AddFrustum(const Frustum&, const Color&, bool = true);
  3673. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3674. void AddNode(Node, float = 1.0, bool = true);
  3675. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3676. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3677. void AddSkeleton(Skeleton, const Color&, bool = true);
  3678. void AddSphere(const Sphere&, const Color&, bool = true);
  3679. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3680. void ApplyAttributes();
  3681. void DrawDebugGeometry(DebugRenderer, bool);
  3682. Variant GetAttribute(const String&) const;
  3683. ValueAnimation GetAttributeAnimation(const String&) const;
  3684. float GetAttributeAnimationSpeed(const String&) const;
  3685. float GetAttributeAnimationTime(const String&) const;
  3686. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3687. Variant GetAttributeDefault(const String&) const;
  3688. bool GetInterceptNetworkUpdate(const String&) const;
  3689. bool Load(File, bool = false);
  3690. bool Load(VectorBuffer&, bool = false);
  3691. bool LoadXML(const XMLElement&, bool = false);
  3692. void MarkNetworkUpdate() const;
  3693. void Remove();
  3694. void RemoveAttributeAnimation(const String&);
  3695. void RemoveInstanceDefault();
  3696. void RemoveObjectAnimation();
  3697. void ResetToDefault();
  3698. bool Save(File) const;
  3699. bool Save(VectorBuffer&) const;
  3700. bool SaveXML(XMLElement&) const;
  3701. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3702. void SetAnimationTime(float);
  3703. bool SetAttribute(const String&, const Variant&);
  3704. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3705. void SetAttributeAnimationSpeed(const String&, float);
  3706. void SetAttributeAnimationTime(const String&, float);
  3707. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3708. void SetInterceptNetworkUpdate(const String&, bool);
  3709. // Properties:
  3710. bool animationEnabled;
  3711. /* readonly */
  3712. Array<Variant> attributeDefaults;
  3713. /* readonly */
  3714. Array<AttributeInfo> attributeInfos;
  3715. Array<Variant> attributes;
  3716. /* readonly */
  3717. String category;
  3718. bool enabled;
  3719. /* readonly */
  3720. bool enabledEffective;
  3721. /* readonly */
  3722. uint id;
  3723. /* readonly */
  3724. Node node;
  3725. /* readonly */
  3726. uint numAttributes;
  3727. ObjectAnimation objectAnimation;
  3728. /* readonly */
  3729. int refs;
  3730. bool temporary;
  3731. /* readonly */
  3732. StringHash type;
  3733. /* readonly */
  3734. String typeName;
  3735. /* readonly */
  3736. int weakRefs;
  3737. };
  3738. class DecalSet
  3739. {
  3740. // Methods:
  3741. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  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. float GetAttributeAnimationTime(const String&) const;
  3748. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3749. Variant GetAttributeDefault(const String&) const;
  3750. bool GetInterceptNetworkUpdate(const String&) const;
  3751. bool IsInView(Camera) const;
  3752. bool Load(File, bool = false);
  3753. bool Load(VectorBuffer&, bool = false);
  3754. bool LoadXML(const XMLElement&, bool = false);
  3755. void MarkNetworkUpdate() const;
  3756. void Remove();
  3757. void RemoveAllDecals();
  3758. void RemoveAttributeAnimation(const String&);
  3759. void RemoveDecals(uint);
  3760. void RemoveInstanceDefault();
  3761. void RemoveObjectAnimation();
  3762. void ResetToDefault();
  3763. bool Save(File) const;
  3764. bool Save(VectorBuffer&) const;
  3765. bool SaveXML(XMLElement&) const;
  3766. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3767. void SetAnimationTime(float);
  3768. bool SetAttribute(const String&, const Variant&);
  3769. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3770. void SetAttributeAnimationSpeed(const String&, float);
  3771. void SetAttributeAnimationTime(const String&, float);
  3772. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3773. void SetInterceptNetworkUpdate(const String&, bool);
  3774. // Properties:
  3775. bool animationEnabled;
  3776. /* readonly */
  3777. Array<Variant> attributeDefaults;
  3778. /* readonly */
  3779. Array<AttributeInfo> attributeInfos;
  3780. Array<Variant> attributes;
  3781. /* readonly */
  3782. BoundingBox boundingBox;
  3783. bool castShadows;
  3784. /* readonly */
  3785. String category;
  3786. float drawDistance;
  3787. bool enabled;
  3788. /* readonly */
  3789. bool enabledEffective;
  3790. /* readonly */
  3791. uint id;
  3792. /* readonly */
  3793. bool inView;
  3794. uint lightMask;
  3795. float lodBias;
  3796. Material material;
  3797. uint maxIndices;
  3798. uint maxLights;
  3799. uint maxVertices;
  3800. /* readonly */
  3801. Node node;
  3802. /* readonly */
  3803. uint numAttributes;
  3804. /* readonly */
  3805. uint numDecals;
  3806. /* readonly */
  3807. uint numIndices;
  3808. /* readonly */
  3809. uint numVertices;
  3810. ObjectAnimation objectAnimation;
  3811. bool occludee;
  3812. bool occluder;
  3813. /* readonly */
  3814. int refs;
  3815. float shadowDistance;
  3816. uint shadowMask;
  3817. bool temporary;
  3818. /* readonly */
  3819. StringHash type;
  3820. /* readonly */
  3821. String typeName;
  3822. uint viewMask;
  3823. /* readonly */
  3824. int weakRefs;
  3825. /* readonly */
  3826. BoundingBox worldBoundingBox;
  3827. /* readonly */
  3828. Zone zone;
  3829. uint zoneMask;
  3830. };
  3831. class Deserializer
  3832. {
  3833. // Methods:
  3834. Array<uint8> Read(uint);
  3835. bool ReadBool();
  3836. BoundingBox ReadBoundingBox();
  3837. int8 ReadByte();
  3838. Color ReadColor();
  3839. double ReadDouble();
  3840. String ReadFileID();
  3841. float ReadFloat();
  3842. int ReadInt();
  3843. IntRect ReadIntRect();
  3844. IntVector2 ReadIntVector2();
  3845. String ReadLine();
  3846. Matrix3 ReadMatrix3();
  3847. Matrix3x4 ReadMatrix3x4();
  3848. Matrix4 ReadMatrix4();
  3849. uint ReadNetID();
  3850. Quaternion ReadPackedQuaternion();
  3851. Vector3 ReadPackedVector3(float);
  3852. Quaternion ReadQuaternion();
  3853. int16 ReadShort();
  3854. String ReadString();
  3855. StringHash ReadStringHash();
  3856. uint8 ReadUByte();
  3857. uint ReadUInt();
  3858. uint16 ReadUShort();
  3859. uint ReadVLE();
  3860. Variant ReadVariant();
  3861. VariantMap ReadVariantMap();
  3862. Vector2 ReadVector2();
  3863. Vector3 ReadVector3();
  3864. Vector4 ReadVector4();
  3865. VectorBuffer ReadVectorBuffer(uint);
  3866. uint Seek(uint);
  3867. // Properties:
  3868. /* readonly */
  3869. uint checksum;
  3870. /* readonly */
  3871. bool eof;
  3872. /* readonly */
  3873. String name;
  3874. /* readonly */
  3875. uint position;
  3876. /* readonly */
  3877. uint size;
  3878. };
  3879. class Dictionary
  3880. {
  3881. // Methods:
  3882. void Clear();
  3883. void Erase(const String&);
  3884. bool Exists(const String&) const;
  3885. bool Get(const String&, void*) const;
  3886. bool Get(const String&, double&) const;
  3887. bool Get(const String&, int64&) const;
  3888. void Set(const String&, const void*);
  3889. void Set(const String&, const double&);
  3890. void Set(const String&, const int64&);
  3891. // Properties:
  3892. /* readonly */
  3893. bool empty;
  3894. /* readonly */
  3895. Array<String> keys;
  3896. /* readonly */
  3897. uint length;
  3898. };
  3899. class DictionaryValue
  3900. {
  3901. };
  3902. class Drawable
  3903. {
  3904. // Methods:
  3905. void ApplyAttributes();
  3906. void DrawDebugGeometry(DebugRenderer, bool);
  3907. Variant GetAttribute(const String&) const;
  3908. ValueAnimation GetAttributeAnimation(const String&) const;
  3909. float GetAttributeAnimationSpeed(const String&) const;
  3910. float GetAttributeAnimationTime(const String&) const;
  3911. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3912. Variant GetAttributeDefault(const String&) const;
  3913. bool GetInterceptNetworkUpdate(const String&) const;
  3914. bool IsInView(Camera) const;
  3915. bool Load(File, bool = false);
  3916. bool Load(VectorBuffer&, bool = false);
  3917. bool LoadXML(const XMLElement&, bool = false);
  3918. void MarkNetworkUpdate() const;
  3919. void Remove();
  3920. void RemoveAttributeAnimation(const String&);
  3921. void RemoveInstanceDefault();
  3922. void RemoveObjectAnimation();
  3923. void ResetToDefault();
  3924. bool Save(File) const;
  3925. bool Save(VectorBuffer&) const;
  3926. bool SaveXML(XMLElement&) const;
  3927. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3928. void SetAnimationTime(float);
  3929. bool SetAttribute(const String&, const Variant&);
  3930. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3931. void SetAttributeAnimationSpeed(const String&, float);
  3932. void SetAttributeAnimationTime(const String&, float);
  3933. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3934. void SetInterceptNetworkUpdate(const String&, bool);
  3935. // Properties:
  3936. bool animationEnabled;
  3937. /* readonly */
  3938. Array<Variant> attributeDefaults;
  3939. /* readonly */
  3940. Array<AttributeInfo> attributeInfos;
  3941. Array<Variant> attributes;
  3942. /* readonly */
  3943. BoundingBox boundingBox;
  3944. bool castShadows;
  3945. /* readonly */
  3946. String category;
  3947. float drawDistance;
  3948. bool enabled;
  3949. /* readonly */
  3950. bool enabledEffective;
  3951. /* readonly */
  3952. uint id;
  3953. /* readonly */
  3954. bool inView;
  3955. uint lightMask;
  3956. float lodBias;
  3957. uint maxLights;
  3958. /* readonly */
  3959. Node node;
  3960. /* readonly */
  3961. uint numAttributes;
  3962. ObjectAnimation objectAnimation;
  3963. bool occludee;
  3964. bool occluder;
  3965. /* readonly */
  3966. int refs;
  3967. float shadowDistance;
  3968. uint shadowMask;
  3969. bool temporary;
  3970. /* readonly */
  3971. StringHash type;
  3972. /* readonly */
  3973. String typeName;
  3974. uint viewMask;
  3975. /* readonly */
  3976. int weakRefs;
  3977. /* readonly */
  3978. BoundingBox worldBoundingBox;
  3979. uint zoneMask;
  3980. };
  3981. class Drawable2D
  3982. {
  3983. // Methods:
  3984. void ApplyAttributes();
  3985. void DrawDebugGeometry(DebugRenderer, bool);
  3986. Variant GetAttribute(const String&) const;
  3987. ValueAnimation GetAttributeAnimation(const String&) const;
  3988. float GetAttributeAnimationSpeed(const String&) const;
  3989. float GetAttributeAnimationTime(const String&) const;
  3990. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3991. Variant GetAttributeDefault(const String&) const;
  3992. bool GetInterceptNetworkUpdate(const String&) const;
  3993. bool IsInView(Camera) const;
  3994. bool Load(File, bool = false);
  3995. bool Load(VectorBuffer&, bool = false);
  3996. bool LoadXML(const XMLElement&, bool = false);
  3997. void MarkNetworkUpdate() const;
  3998. void Remove();
  3999. void RemoveAttributeAnimation(const String&);
  4000. void RemoveInstanceDefault();
  4001. void RemoveObjectAnimation();
  4002. void ResetToDefault();
  4003. bool Save(File) const;
  4004. bool Save(VectorBuffer&) const;
  4005. bool SaveXML(XMLElement&) const;
  4006. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4007. void SetAnimationTime(float);
  4008. bool SetAttribute(const String&, const Variant&);
  4009. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4010. void SetAttributeAnimationSpeed(const String&, float);
  4011. void SetAttributeAnimationTime(const String&, float);
  4012. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4013. void SetInterceptNetworkUpdate(const String&, bool);
  4014. // Properties:
  4015. bool animationEnabled;
  4016. /* readonly */
  4017. Array<Variant> attributeDefaults;
  4018. /* readonly */
  4019. Array<AttributeInfo> attributeInfos;
  4020. Array<Variant> attributes;
  4021. /* readonly */
  4022. BoundingBox boundingBox;
  4023. bool castShadows;
  4024. /* readonly */
  4025. String category;
  4026. float drawDistance;
  4027. bool enabled;
  4028. /* readonly */
  4029. bool enabledEffective;
  4030. /* readonly */
  4031. uint id;
  4032. /* readonly */
  4033. bool inView;
  4034. int layer;
  4035. uint lightMask;
  4036. float lodBias;
  4037. uint maxLights;
  4038. /* readonly */
  4039. Node node;
  4040. /* readonly */
  4041. uint numAttributes;
  4042. ObjectAnimation objectAnimation;
  4043. bool occludee;
  4044. bool occluder;
  4045. int orderInLayer;
  4046. /* readonly */
  4047. int refs;
  4048. float shadowDistance;
  4049. uint shadowMask;
  4050. bool temporary;
  4051. /* readonly */
  4052. StringHash type;
  4053. /* readonly */
  4054. String typeName;
  4055. uint viewMask;
  4056. /* readonly */
  4057. int weakRefs;
  4058. /* readonly */
  4059. BoundingBox worldBoundingBox;
  4060. uint zoneMask;
  4061. };
  4062. class DropDownList
  4063. {
  4064. // Methods:
  4065. void AddChild(UIElement);
  4066. void AddItem(UIElement);
  4067. void ApplyAttributes();
  4068. void BringToFront();
  4069. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4070. void DisableLayoutUpdate();
  4071. IntVector2 ElementToScreen(const IntVector2&);
  4072. void EnableLayoutUpdate();
  4073. uint FindChild(UIElement) const;
  4074. Variant GetAttribute(const String&) const;
  4075. ValueAnimation GetAttributeAnimation(const String&) const;
  4076. float GetAttributeAnimationSpeed(const String&) const;
  4077. float GetAttributeAnimationTime(const String&) const;
  4078. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4079. Variant GetAttributeDefault(const String&) const;
  4080. UIElement GetChild(const String&, bool = false) const;
  4081. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4082. Array<UIElement> GetChildren(bool = false) const;
  4083. UIElement GetElementEventSender() const;
  4084. bool GetInterceptNetworkUpdate(const String&) const;
  4085. Array<UIElement> GetItems() const;
  4086. uint GetNumChildren(bool) const;
  4087. void InsertChild(uint, UIElement);
  4088. void InsertItem(uint, UIElement);
  4089. bool IsInside(IntVector2, bool);
  4090. bool IsInsideCombined(IntVector2, bool);
  4091. bool Load(File, bool = false);
  4092. bool Load(VectorBuffer&, bool = false);
  4093. bool LoadChildXML(XMLFile, XMLFile = null);
  4094. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4095. bool LoadXML(File);
  4096. bool LoadXML(VectorBuffer&);
  4097. bool LoadXML(XMLFile, XMLFile);
  4098. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4099. bool LoadXML(const XMLElement&, bool = false);
  4100. void MarkNetworkUpdate() const;
  4101. void Remove();
  4102. void RemoveAllChildren();
  4103. void RemoveAllItems();
  4104. void RemoveAttributeAnimation(const String&);
  4105. void RemoveChild(UIElement, uint = 0);
  4106. void RemoveChild(uint);
  4107. void RemoveInstanceDefault();
  4108. void RemoveItem(UIElement);
  4109. void RemoveItem(uint);
  4110. void RemoveObjectAnimation();
  4111. void ResetDeepEnabled();
  4112. void ResetToDefault();
  4113. bool Save(File) const;
  4114. bool Save(VectorBuffer&) const;
  4115. bool SaveXML(File, const String& = "\t");
  4116. bool SaveXML(VectorBuffer&, const String& = "\t");
  4117. bool SaveXML(XMLElement&) const;
  4118. IntVector2 ScreenToElement(const IntVector2&);
  4119. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4120. void SetAccelerator(int, int);
  4121. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4122. void SetAnimationTime(float);
  4123. bool SetAttribute(const String&, const Variant&);
  4124. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4125. void SetAttributeAnimationSpeed(const String&, float);
  4126. void SetAttributeAnimationTime(const String&, float);
  4127. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4128. void SetDeepEnabled(bool);
  4129. void SetEnabledRecursive(bool);
  4130. void SetFixedHeight(int);
  4131. void SetFixedSize(int, int);
  4132. void SetFixedWidth(int);
  4133. void SetFullImageRect();
  4134. void SetHoverOffset(int, int);
  4135. void SetInterceptNetworkUpdate(const String&, bool);
  4136. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4137. void SetMaxSize(int, int);
  4138. void SetMinSize(int, int);
  4139. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4140. void SetPosition(int, int);
  4141. void SetPressedChildOffset(int, int);
  4142. void SetPressedOffset(int, int);
  4143. void SetRepeat(float, float);
  4144. void SetSize(int, int);
  4145. bool SetStyle(const String&, XMLFile = null);
  4146. bool SetStyle(const XMLElement&);
  4147. bool SetStyleAuto(XMLFile = null);
  4148. void UpdateLayout();
  4149. const Variant& GetVar(const StringHash&);
  4150. UIElement getPopup() const;
  4151. // Properties:
  4152. /* readonly */
  4153. int acceleratorKey;
  4154. /* readonly */
  4155. int acceleratorQualifiers;
  4156. bool animationEnabled;
  4157. /* readonly */
  4158. Array<Variant> attributeDefaults;
  4159. /* readonly */
  4160. Array<AttributeInfo> attributeInfos;
  4161. Array<Variant> attributes;
  4162. BlendMode blendMode;
  4163. IntRect border;
  4164. bool bringToBack;
  4165. bool bringToFront;
  4166. /* readonly */
  4167. String category;
  4168. /* readonly */
  4169. IntVector2 childOffset;
  4170. /* readonly */
  4171. Array<UIElement> children;
  4172. IntRect clipBorder;
  4173. bool clipChildren;
  4174. /* writeonly */
  4175. Color color;
  4176. /* readonly */
  4177. bool colorGradient;
  4178. Array<Color> colors;
  4179. /* readonly */
  4180. IntRect combinedScreenRect;
  4181. XMLFile defaultStyle;
  4182. /* readonly */
  4183. float derivedOpacity;
  4184. /* readonly */
  4185. uint dragButtonCombo;
  4186. /* readonly */
  4187. int dragButtonCount;
  4188. uint dragDropMode;
  4189. bool editable;
  4190. bool elementEventSender;
  4191. bool enabled;
  4192. /* readonly */
  4193. bool enabledSelf;
  4194. /* readonly */
  4195. bool fixedHeight;
  4196. /* readonly */
  4197. bool fixedSize;
  4198. /* readonly */
  4199. bool fixedWidth;
  4200. bool focus;
  4201. FocusMode focusMode;
  4202. int height;
  4203. HorizontalAlignment horizontalAlignment;
  4204. IntVector2 hoverOffset;
  4205. /* readonly */
  4206. bool hovering;
  4207. IntRect imageBorder;
  4208. IntRect imageRect;
  4209. int indent;
  4210. int indentSpacing;
  4211. /* readonly */
  4212. int indentWidth;
  4213. bool internal;
  4214. /* readonly */
  4215. Array<UIElement> items;
  4216. IntRect layoutBorder;
  4217. Vector2 layoutFlexScale;
  4218. LayoutMode layoutMode;
  4219. int layoutSpacing;
  4220. /* readonly */
  4221. ListView listView;
  4222. int maxHeight;
  4223. IntVector2 maxSize;
  4224. int maxWidth;
  4225. int minHeight;
  4226. IntVector2 minSize;
  4227. int minWidth;
  4228. String name;
  4229. /* readonly */
  4230. uint numAllChildren;
  4231. /* readonly */
  4232. uint numAttributes;
  4233. /* readonly */
  4234. uint numChildren;
  4235. /* readonly */
  4236. uint numItems;
  4237. ObjectAnimation objectAnimation;
  4238. float opacity;
  4239. UIElement parent;
  4240. /* readonly */
  4241. UIElement placeholder;
  4242. String placeholderText;
  4243. IntVector2 position;
  4244. /* readonly */
  4245. bool pressed;
  4246. IntVector2 pressedChildOffset;
  4247. IntVector2 pressedOffset;
  4248. int priority;
  4249. /* readonly */
  4250. int refs;
  4251. float repeatDelay;
  4252. float repeatRate;
  4253. bool resizePopup;
  4254. /* readonly */
  4255. UIElement root;
  4256. /* readonly */
  4257. IntVector2 screenPosition;
  4258. bool selected;
  4259. /* readonly */
  4260. UIElement selectedItem;
  4261. uint selection;
  4262. bool showPopup;
  4263. IntVector2 size;
  4264. bool sortChildren;
  4265. String style;
  4266. bool temporary;
  4267. Texture texture;
  4268. bool tiled;
  4269. TraversalMode traversalMode;
  4270. /* readonly */
  4271. StringHash type;
  4272. /* readonly */
  4273. String typeName;
  4274. bool useDerivedOpacity;
  4275. /* readonly */
  4276. VariantMap vars;
  4277. VerticalAlignment verticalAlignment;
  4278. bool visible;
  4279. /* readonly */
  4280. bool visibleEffective;
  4281. /* readonly */
  4282. int weakRefs;
  4283. int width;
  4284. };
  4285. class DynamicNavigationMesh
  4286. {
  4287. // Methods:
  4288. void ApplyAttributes();
  4289. bool Build();
  4290. bool Build(const BoundingBox&);
  4291. void DrawDebugGeometry(DebugRenderer, bool);
  4292. void DrawDebugGeometry(bool);
  4293. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4294. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4295. float GetAreaCost(uint) const;
  4296. Variant GetAttribute(const String&) const;
  4297. ValueAnimation GetAttributeAnimation(const String&) const;
  4298. float GetAttributeAnimationSpeed(const String&) const;
  4299. float GetAttributeAnimationTime(const String&) const;
  4300. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4301. Variant GetAttributeDefault(const String&) const;
  4302. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4303. bool GetInterceptNetworkUpdate(const String&) const;
  4304. Vector3 GetRandomPoint();
  4305. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4306. bool Load(File, bool = false);
  4307. bool Load(VectorBuffer&, bool = false);
  4308. bool LoadXML(const XMLElement&, bool = false);
  4309. void MarkNetworkUpdate() const;
  4310. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4311. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4312. void Remove();
  4313. void RemoveAttributeAnimation(const String&);
  4314. void RemoveInstanceDefault();
  4315. void RemoveObjectAnimation();
  4316. void ResetToDefault();
  4317. bool Save(File) const;
  4318. bool Save(VectorBuffer&) const;
  4319. bool SaveXML(XMLElement&) const;
  4320. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4321. void SetAnimationTime(float);
  4322. void SetAreaCost(uint, float);
  4323. bool SetAttribute(const String&, const Variant&);
  4324. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4325. void SetAttributeAnimationSpeed(const String&, float);
  4326. void SetAttributeAnimationTime(const String&, float);
  4327. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4328. void SetInterceptNetworkUpdate(const String&, bool);
  4329. // Properties:
  4330. float agentHeight;
  4331. float agentMaxClimb;
  4332. float agentMaxSlope;
  4333. float agentRadius;
  4334. bool animationEnabled;
  4335. /* readonly */
  4336. Array<Variant> attributeDefaults;
  4337. /* readonly */
  4338. Array<AttributeInfo> attributeInfos;
  4339. Array<Variant> attributes;
  4340. /* readonly */
  4341. BoundingBox boundingBox;
  4342. /* readonly */
  4343. String category;
  4344. float cellHeight;
  4345. float cellSize;
  4346. float detailSampleDistance;
  4347. float detailSampleMaxError;
  4348. bool drawNavAreas;
  4349. bool drawObstacles;
  4350. bool drawOffMeshConnections;
  4351. float edgeMaxError;
  4352. float edgeMaxLength;
  4353. bool enabled;
  4354. /* readonly */
  4355. bool enabledEffective;
  4356. /* readonly */
  4357. uint id;
  4358. /* readonly */
  4359. bool initialized;
  4360. bool maxLayers;
  4361. uint maxObstacles;
  4362. /* readonly */
  4363. Node node;
  4364. /* readonly */
  4365. uint numAttributes;
  4366. /* readonly */
  4367. IntVector2 numTiles;
  4368. ObjectAnimation objectAnimation;
  4369. Vector3 padding;
  4370. NavmeshPartitionType partitionType;
  4371. /* readonly */
  4372. int refs;
  4373. float regionMergeSize;
  4374. float regionMinSize;
  4375. bool temporary;
  4376. int tileSize;
  4377. /* readonly */
  4378. StringHash type;
  4379. /* readonly */
  4380. String typeName;
  4381. /* readonly */
  4382. int weakRefs;
  4383. /* readonly */
  4384. BoundingBox worldBoundingBox;
  4385. };
  4386. class Engine
  4387. {
  4388. // Methods:
  4389. Console CreateConsole();
  4390. DebugHud CreateDebugHud();
  4391. void DumpMemory();
  4392. void DumpProfiler();
  4393. void DumpResources(bool = false);
  4394. void Exit();
  4395. void RunFrame();
  4396. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4397. // Properties:
  4398. bool autoExit;
  4399. /* readonly */
  4400. String category;
  4401. /* readonly */
  4402. bool exiting;
  4403. /* readonly */
  4404. bool headless;
  4405. /* readonly */
  4406. bool initialized;
  4407. int maxFps;
  4408. int maxInactiveFps;
  4409. int minFps;
  4410. bool pauseMinimized;
  4411. /* readonly */
  4412. int refs;
  4413. int timeStepSmoothing;
  4414. /* readonly */
  4415. StringHash type;
  4416. /* readonly */
  4417. String typeName;
  4418. /* readonly */
  4419. int weakRefs;
  4420. };
  4421. class File
  4422. {
  4423. // Methods:
  4424. void Close();
  4425. bool Open(const String&, FileMode = FILE_READ);
  4426. Array<uint8> Read(uint);
  4427. bool ReadBool();
  4428. BoundingBox ReadBoundingBox();
  4429. int8 ReadByte();
  4430. Color ReadColor();
  4431. double ReadDouble();
  4432. String ReadFileID();
  4433. float ReadFloat();
  4434. int ReadInt();
  4435. IntRect ReadIntRect();
  4436. IntVector2 ReadIntVector2();
  4437. String ReadLine();
  4438. Matrix3 ReadMatrix3();
  4439. Matrix3x4 ReadMatrix3x4();
  4440. Matrix4 ReadMatrix4();
  4441. uint ReadNetID();
  4442. Quaternion ReadPackedQuaternion();
  4443. Vector3 ReadPackedVector3(float);
  4444. Quaternion ReadQuaternion();
  4445. int16 ReadShort();
  4446. String ReadString();
  4447. StringHash ReadStringHash();
  4448. uint8 ReadUByte();
  4449. uint ReadUInt();
  4450. uint16 ReadUShort();
  4451. uint ReadVLE();
  4452. Variant ReadVariant();
  4453. VariantMap ReadVariantMap();
  4454. Vector2 ReadVector2();
  4455. Vector3 ReadVector3();
  4456. Vector4 ReadVector4();
  4457. VectorBuffer ReadVectorBuffer(uint);
  4458. uint Seek(uint);
  4459. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4460. uint Write(Array<uint8>);
  4461. bool WriteBool(bool);
  4462. bool WriteBoundingBox(const BoundingBox&);
  4463. bool WriteByte(int8);
  4464. bool WriteColor(const Color&);
  4465. bool WriteDouble(double);
  4466. bool WriteFileID(const String&);
  4467. bool WriteFloat(float);
  4468. bool WriteInt(int);
  4469. bool WriteIntRect(const IntRect&);
  4470. bool WriteIntVector2(const IntVector2&);
  4471. bool WriteLine(const String&);
  4472. bool WriteMatrix3(const Matrix3&);
  4473. bool WriteMatrix3x4(const Matrix3x4&);
  4474. bool WriteMatrix4(const Matrix4&);
  4475. bool WriteNetID(uint);
  4476. bool WritePackedQuaternion(const Quaternion&);
  4477. bool WritePackedVector3(const Vector3&, float);
  4478. bool WriteQuaternion(const Quaternion&);
  4479. bool WriteShort(int16);
  4480. bool WriteString(const String&);
  4481. bool WriteStringHash(const StringHash&);
  4482. bool WriteUByte(uint8);
  4483. bool WriteUInt(uint);
  4484. bool WriteUShort(uint16);
  4485. bool WriteVLE(uint);
  4486. bool WriteVariant(const Variant&);
  4487. bool WriteVariantMap(const VariantMap&);
  4488. bool WriteVector2(const Vector2&);
  4489. bool WriteVector3(const Vector3&);
  4490. bool WriteVector4(const Vector4&);
  4491. bool WriteVectorBuffer(const VectorBuffer&);
  4492. // Properties:
  4493. /* readonly */
  4494. String category;
  4495. /* readonly */
  4496. uint checksum;
  4497. /* readonly */
  4498. bool eof;
  4499. /* readonly */
  4500. FileMode mode;
  4501. /* readonly */
  4502. String name;
  4503. /* readonly */
  4504. bool open;
  4505. /* readonly */
  4506. bool packaged;
  4507. /* readonly */
  4508. uint position;
  4509. /* readonly */
  4510. int refs;
  4511. /* readonly */
  4512. uint size;
  4513. /* readonly */
  4514. StringHash type;
  4515. /* readonly */
  4516. String typeName;
  4517. /* readonly */
  4518. int weakRefs;
  4519. };
  4520. class FileSelector
  4521. {
  4522. // Methods:
  4523. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4524. void SetButtonTexts(const String&, const String&);
  4525. void SetFilters(Array<String>, uint);
  4526. void UpdateElements();
  4527. // Properties:
  4528. /* readonly */
  4529. Button cancelButton;
  4530. /* readonly */
  4531. String category;
  4532. XMLFile defaultStyle;
  4533. bool directoryMode;
  4534. /* readonly */
  4535. ListView fileList;
  4536. String fileName;
  4537. /* readonly */
  4538. LineEdit fileNameEdit;
  4539. /* readonly */
  4540. String filter;
  4541. /* readonly */
  4542. uint filterIndex;
  4543. /* readonly */
  4544. DropDownList filterList;
  4545. /* readonly */
  4546. Button okButton;
  4547. String path;
  4548. /* readonly */
  4549. LineEdit pathEdit;
  4550. /* readonly */
  4551. int refs;
  4552. String title;
  4553. /* readonly */
  4554. Text titleText;
  4555. /* readonly */
  4556. StringHash type;
  4557. /* readonly */
  4558. String typeName;
  4559. /* readonly */
  4560. int weakRefs;
  4561. /* readonly */
  4562. Window window;
  4563. };
  4564. class FileSystem
  4565. {
  4566. // Methods:
  4567. bool Copy(const String&, const String&);
  4568. bool CreateDir(const String&);
  4569. bool Delete(const String&);
  4570. bool DirExists(const String&) const;
  4571. bool FileExists(const String&) const;
  4572. String GetAppPreferencesDir(const String&, const String&) const;
  4573. uint GetLastModifiedTime(const String&) const;
  4574. bool Rename(const String&, const String&);
  4575. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4576. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4577. bool SetLastModifiedTime(const String&, uint);
  4578. int SystemCommand(const String&, bool = false);
  4579. uint SystemCommandAsync(const String&);
  4580. bool SystemOpen(const String&, const String&);
  4581. int SystemRun(const String&, Array<String>);
  4582. uint SystemRunAsync(const String&, Array<String>);
  4583. // Properties:
  4584. /* readonly */
  4585. String category;
  4586. String currentDir;
  4587. bool executeConsoleCommands;
  4588. /* readonly */
  4589. String programDir;
  4590. /* readonly */
  4591. int refs;
  4592. /* readonly */
  4593. StringHash type;
  4594. /* readonly */
  4595. String typeName;
  4596. /* readonly */
  4597. String userDocumentsDir;
  4598. /* readonly */
  4599. int weakRefs;
  4600. };
  4601. class FocusParameters
  4602. {
  4603. // Properties:
  4604. bool autoSize;
  4605. bool focus;
  4606. float minView;
  4607. bool nonUniform;
  4608. float quantize;
  4609. };
  4610. class Font
  4611. {
  4612. // Methods:
  4613. IntVector2 GetTotalGlyphOffset(int) const;
  4614. bool Load(File);
  4615. bool Load(VectorBuffer&);
  4616. bool Save(File) const;
  4617. bool Save(VectorBuffer&) const;
  4618. bool SaveXML(File, int, bool = false, const String& = "\t");
  4619. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4620. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4621. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4622. // Properties:
  4623. IntVector2 absoluteGlyphOffset;
  4624. /* readonly */
  4625. String category;
  4626. /* readonly */
  4627. uint memoryUse;
  4628. String name;
  4629. /* readonly */
  4630. int refs;
  4631. Vector2 scaledGlyphOffset;
  4632. /* readonly */
  4633. StringHash type;
  4634. /* readonly */
  4635. String typeName;
  4636. /* readonly */
  4637. uint useTimer;
  4638. /* readonly */
  4639. int weakRefs;
  4640. };
  4641. class Frustum
  4642. {
  4643. // Methods:
  4644. void Define(const BoundingBox&, const Matrix3x4&);
  4645. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4646. void Define(float, float, float, float, float, const Matrix3x4&);
  4647. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4648. float Distance(const Vector3&) const;
  4649. Intersection IsInside(const BoundingBox&);
  4650. Intersection IsInside(const Sphere&);
  4651. Intersection IsInside(const Vector3&);
  4652. Intersection IsInsideFast(const BoundingBox&) const;
  4653. Intersection IsInsideFast(const Sphere&) const;
  4654. void Transform(const Matrix3&);
  4655. void Transform(const Matrix3x4&);
  4656. Frustum Transformed(const Matrix3&) const;
  4657. Frustum Transformed(const Matrix3x4&) const;
  4658. // Properties:
  4659. /* readonly */
  4660. Array<Vector3> vertices;
  4661. };
  4662. class Geometry
  4663. {
  4664. // Methods:
  4665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4666. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4667. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4668. void SetIndexBuffer(IndexBuffer);
  4669. bool SetVertexBuffer(uint, VertexBuffer, uint = MASK_DEFAULT);
  4670. // Properties:
  4671. /* readonly */
  4672. String category;
  4673. /* readonly */
  4674. bool empty;
  4675. IndexBuffer indexBuffer;
  4676. /* readonly */
  4677. uint indexCount;
  4678. /* readonly */
  4679. uint indexStart;
  4680. float lodDistance;
  4681. uint numVertexBuffers;
  4682. /* readonly */
  4683. PrimitiveType primitiveType;
  4684. /* readonly */
  4685. int refs;
  4686. /* readonly */
  4687. StringHash type;
  4688. /* readonly */
  4689. String typeName;
  4690. /* readonly */
  4691. Array<VertexBuffer> vertexBuffers;
  4692. /* readonly */
  4693. uint vertexCount;
  4694. /* readonly */
  4695. Array<uint> vertexElementMasks;
  4696. /* readonly */
  4697. uint vertexStart;
  4698. /* readonly */
  4699. int weakRefs;
  4700. };
  4701. class Graphics
  4702. {
  4703. // Methods:
  4704. void BeginDumpShaders(const String&);
  4705. void Close();
  4706. void EndDumpShaders();
  4707. void Maximize();
  4708. void Minimize();
  4709. void PrecacheShaders(File);
  4710. void PrecacheShaders(VectorBuffer&);
  4711. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4712. bool SetMode(int, int);
  4713. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4714. void SetWindowPosition(int, int);
  4715. bool TakeScreenShot(Image);
  4716. bool ToggleFullscreen();
  4717. // Properties:
  4718. /* readonly */
  4719. String apiName;
  4720. /* readonly */
  4721. bool borderless;
  4722. /* readonly */
  4723. String category;
  4724. /* readonly */
  4725. bool deferredSupport;
  4726. /* readonly */
  4727. IntVector2 desktopResolution;
  4728. /* readonly */
  4729. bool deviceLost;
  4730. bool flushGPU;
  4731. /* readonly */
  4732. bool fullscreen;
  4733. /* readonly */
  4734. bool hardwareShadowSupport;
  4735. /* readonly */
  4736. int height;
  4737. /* readonly */
  4738. bool initialized;
  4739. /* readonly */
  4740. bool instancingSupport;
  4741. /* readonly */
  4742. bool lightPrepassSupport;
  4743. /* readonly */
  4744. int multiSample;
  4745. /* readonly */
  4746. Array<int> multiSampleLevels;
  4747. /* readonly */
  4748. uint numBatches;
  4749. /* readonly */
  4750. uint numPrimitives;
  4751. String orientations;
  4752. /* readonly */
  4753. bool readableDepthSupport;
  4754. /* readonly */
  4755. int refs;
  4756. /* readonly */
  4757. bool resizable;
  4758. /* readonly */
  4759. Array<IntVector2> resolutions;
  4760. bool sRGB;
  4761. /* readonly */
  4762. bool sRGBSupport;
  4763. /* readonly */
  4764. bool sRGBWriteSupport;
  4765. /* readonly */
  4766. bool tripleBuffer;
  4767. /* readonly */
  4768. StringHash type;
  4769. /* readonly */
  4770. String typeName;
  4771. /* readonly */
  4772. bool vsync;
  4773. /* readonly */
  4774. int weakRefs;
  4775. /* readonly */
  4776. int width;
  4777. /* writeonly */
  4778. Image windowIcon;
  4779. IntVector2 windowPosition;
  4780. String windowTitle;
  4781. };
  4782. class HttpRequest
  4783. {
  4784. // Methods:
  4785. Array<uint8> Read(uint);
  4786. bool ReadBool();
  4787. BoundingBox ReadBoundingBox();
  4788. int8 ReadByte();
  4789. Color ReadColor();
  4790. double ReadDouble();
  4791. String ReadFileID();
  4792. float ReadFloat();
  4793. int ReadInt();
  4794. IntRect ReadIntRect();
  4795. IntVector2 ReadIntVector2();
  4796. String ReadLine();
  4797. Matrix3 ReadMatrix3();
  4798. Matrix3x4 ReadMatrix3x4();
  4799. Matrix4 ReadMatrix4();
  4800. uint ReadNetID();
  4801. Quaternion ReadPackedQuaternion();
  4802. Vector3 ReadPackedVector3(float);
  4803. Quaternion ReadQuaternion();
  4804. int16 ReadShort();
  4805. String ReadString();
  4806. StringHash ReadStringHash();
  4807. uint8 ReadUByte();
  4808. uint ReadUInt();
  4809. uint16 ReadUShort();
  4810. uint ReadVLE();
  4811. Variant ReadVariant();
  4812. VariantMap ReadVariantMap();
  4813. Vector2 ReadVector2();
  4814. Vector3 ReadVector3();
  4815. Vector4 ReadVector4();
  4816. VectorBuffer ReadVectorBuffer(uint);
  4817. uint Seek(uint);
  4818. // Properties:
  4819. /* readonly */
  4820. uint availableSize;
  4821. /* readonly */
  4822. uint checksum;
  4823. /* readonly */
  4824. bool eof;
  4825. /* readonly */
  4826. String error;
  4827. /* readonly */
  4828. String name;
  4829. /* readonly */
  4830. bool open;
  4831. /* readonly */
  4832. uint position;
  4833. /* readonly */
  4834. int refs;
  4835. /* readonly */
  4836. uint size;
  4837. /* readonly */
  4838. HttpRequestState state;
  4839. /* readonly */
  4840. String url;
  4841. /* readonly */
  4842. String verb;
  4843. /* readonly */
  4844. int weakRefs;
  4845. };
  4846. class Image
  4847. {
  4848. // Methods:
  4849. void Clear(const Color&);
  4850. void ClearInt(uint);
  4851. bool FlipHorizontal();
  4852. bool FlipVertical();
  4853. Color GetPixel(int, int) const;
  4854. Color GetPixel(int, int, int) const;
  4855. Color GetPixelBilinear(float, float) const;
  4856. uint GetPixelInt(int, int) const;
  4857. uint GetPixelInt(int, int, int) const;
  4858. Color GetPixelTrilinear(float, float, float) const;
  4859. Image GetSubimage(const IntRect&) const;
  4860. bool Load(File);
  4861. bool Load(VectorBuffer&);
  4862. bool LoadColorLUT(File);
  4863. bool LoadColorLUT(VectorBuffer&);
  4864. bool Resize(int, int);
  4865. bool Save(File) const;
  4866. bool Save(VectorBuffer&) const;
  4867. bool SaveBMP(const String&) const;
  4868. bool SaveJPG(const String&, int) const;
  4869. bool SavePNG(const String&) const;
  4870. bool SaveTGA(const String&) const;
  4871. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4872. void SetPixel(int, int, const Color&);
  4873. void SetPixel(int, int, int, const Color&);
  4874. void SetPixelInt(int, int, int, uint);
  4875. void SetPixelInt(int, int, uint);
  4876. bool SetSize(int, int, int, uint);
  4877. bool SetSize(int, int, uint);
  4878. // Properties:
  4879. /* readonly */
  4880. bool array;
  4881. /* readonly */
  4882. String category;
  4883. /* readonly */
  4884. uint components;
  4885. /* readonly */
  4886. bool compressed;
  4887. /* readonly */
  4888. CompressedFormat compressedFormat;
  4889. /* readonly */
  4890. bool cubemap;
  4891. /* readonly */
  4892. int depth;
  4893. /* readonly */
  4894. int height;
  4895. /* readonly */
  4896. uint memoryUse;
  4897. String name;
  4898. /* readonly */
  4899. uint numCompressedLevels;
  4900. /* readonly */
  4901. int refs;
  4902. /* readonly */
  4903. bool sRGB;
  4904. /* readonly */
  4905. StringHash type;
  4906. /* readonly */
  4907. String typeName;
  4908. /* readonly */
  4909. uint useTimer;
  4910. /* readonly */
  4911. int weakRefs;
  4912. /* readonly */
  4913. int width;
  4914. };
  4915. class IndexBuffer
  4916. {
  4917. // Methods:
  4918. VectorBuffer GetData();
  4919. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4920. bool SetData(VectorBuffer&);
  4921. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  4922. void SetSize(uint, bool, bool = false);
  4923. // Properties:
  4924. /* readonly */
  4925. String category;
  4926. /* readonly */
  4927. bool dynamic;
  4928. /* readonly */
  4929. uint indexCount;
  4930. /* readonly */
  4931. uint indexSize;
  4932. /* readonly */
  4933. int refs;
  4934. bool shadowed;
  4935. /* readonly */
  4936. StringHash type;
  4937. /* readonly */
  4938. String typeName;
  4939. /* readonly */
  4940. int weakRefs;
  4941. };
  4942. class Input
  4943. {
  4944. // Methods:
  4945. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  4946. int GetKeyFromName(const String&) const;
  4947. int GetKeyFromScancode(int) const;
  4948. String GetKeyName(int) const;
  4949. int GetScancodeFromKey(int) const;
  4950. int GetScancodeFromName(const String&) const;
  4951. String GetScancodeName(int) const;
  4952. uint LoadGestures(File);
  4953. uint LoadGestures(VectorBuffer&);
  4954. bool RecordGesture();
  4955. void RemoveAllGestures();
  4956. bool RemoveGesture(uint);
  4957. bool RemoveScreenJoystick(int);
  4958. void ResetMouseVisible();
  4959. bool SaveGesture(File, uint);
  4960. bool SaveGesture(VectorBuffer&, uint);
  4961. bool SaveGestures(File);
  4962. bool SaveGestures(VectorBuffer&);
  4963. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4964. void SetMouseVisible(bool, bool = false);
  4965. // Properties:
  4966. /* readonly */
  4967. String category;
  4968. /* readonly */
  4969. bool focus;
  4970. /* readonly */
  4971. Array<JoystickState> joysticks;
  4972. /* readonly */
  4973. Array<JoystickState> joysticksByIndex;
  4974. /* readonly */
  4975. Array<bool> keyDown;
  4976. /* readonly */
  4977. Array<bool> keyPress;
  4978. /* readonly */
  4979. bool minimized;
  4980. /* readonly */
  4981. Array<bool> mouseButtonDown;
  4982. /* readonly */
  4983. Array<bool> mouseButtonPress;
  4984. bool mouseGrabbed;
  4985. MouseMode mouseMode;
  4986. /* readonly */
  4987. IntVector2 mouseMove;
  4988. /* readonly */
  4989. int mouseMoveWheel;
  4990. /* readonly */
  4991. int mouseMoveX;
  4992. /* readonly */
  4993. int mouseMoveY;
  4994. /* readonly */
  4995. IntVector2 mousePosition;
  4996. bool mouseVisible;
  4997. /* readonly */
  4998. uint numJoysticks;
  4999. /* readonly */
  5000. uint numTouches;
  5001. /* readonly */
  5002. Array<bool> qualifierDown;
  5003. /* readonly */
  5004. Array<bool> qualifierPress;
  5005. /* readonly */
  5006. int qualifiers;
  5007. /* readonly */
  5008. int refs;
  5009. /* readonly */
  5010. Array<bool> scancodeDown;
  5011. /* readonly */
  5012. Array<bool> scancodePress;
  5013. Array<bool> screenJoystickVisible;
  5014. /* readonly */
  5015. bool screenKeyboardSupport;
  5016. bool screenKeyboardVisible;
  5017. bool toggleFullscreen;
  5018. bool touchEmulation;
  5019. /* readonly */
  5020. Array<TouchState> touches;
  5021. /* readonly */
  5022. StringHash type;
  5023. /* readonly */
  5024. String typeName;
  5025. /* readonly */
  5026. int weakRefs;
  5027. };
  5028. class IntRect
  5029. {
  5030. // Methods:
  5031. Intersection IsInside(const IntVector2&) const;
  5032. // Properties:
  5033. int bottom;
  5034. /* readonly */
  5035. Array<int> data;
  5036. /* readonly */
  5037. int height;
  5038. int left;
  5039. int right;
  5040. /* readonly */
  5041. IntVector2 size;
  5042. int top;
  5043. /* readonly */
  5044. int width;
  5045. };
  5046. class IntVector2
  5047. {
  5048. // Methods:
  5049. String ToString() const;
  5050. // Properties:
  5051. /* readonly */
  5052. Array<int> data;
  5053. int x;
  5054. int y;
  5055. };
  5056. class JSONFile
  5057. {
  5058. // Methods:
  5059. const JSONValue& GetRoot() const;
  5060. bool Load(File);
  5061. bool Load(VectorBuffer&);
  5062. bool Save(File) const;
  5063. bool Save(File, const String&) const;
  5064. bool Save(VectorBuffer&) const;
  5065. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5066. // Properties:
  5067. /* readonly */
  5068. String category;
  5069. /* readonly */
  5070. uint memoryUse;
  5071. String name;
  5072. /* readonly */
  5073. int refs;
  5074. /* readonly */
  5075. StringHash type;
  5076. /* readonly */
  5077. String typeName;
  5078. /* readonly */
  5079. uint useTimer;
  5080. /* readonly */
  5081. int weakRefs;
  5082. };
  5083. class JSONValue
  5084. {
  5085. // Methods:
  5086. void Clear();
  5087. bool Contains(const String&) const;
  5088. void Erase(const String&);
  5089. void Erase(uint, uint = 1);
  5090. bool GetBool() const;
  5091. double GetDouble() const;
  5092. float GetFloat() const;
  5093. int GetInt() const;
  5094. uint GetUInt() const;
  5095. void Insert(uint, const JSONValue&);
  5096. const JSONValue& Get(const String&) const;
  5097. void Pop();
  5098. void Push(const JSONValue&);
  5099. void Resize(uint);
  5100. void Set(const String&, const JSONValue&);
  5101. const String& GetString() const;
  5102. // Properties:
  5103. /* readonly */
  5104. bool isArray;
  5105. /* readonly */
  5106. bool isBool;
  5107. /* readonly */
  5108. bool isNull;
  5109. /* readonly */
  5110. bool isNumber;
  5111. /* readonly */
  5112. bool isObject;
  5113. /* readonly */
  5114. bool isString;
  5115. /* readonly */
  5116. uint size;
  5117. /* readonly */
  5118. JSONValueType valueType;
  5119. };
  5120. class JoystickState
  5121. {
  5122. // Properties:
  5123. /* readonly */
  5124. Array<float> axisPosition;
  5125. /* readonly */
  5126. Array<bool> buttonDown;
  5127. /* readonly */
  5128. Array<bool> buttonPress;
  5129. /* readonly */
  5130. bool controller;
  5131. /* readonly */
  5132. Array<int> hatPosition;
  5133. int joystickID;
  5134. String name;
  5135. /* readonly */
  5136. uint numAxes;
  5137. /* readonly */
  5138. uint numButtons;
  5139. /* readonly */
  5140. uint numHats;
  5141. };
  5142. class Light
  5143. {
  5144. // Methods:
  5145. void ApplyAttributes();
  5146. void DrawDebugGeometry(DebugRenderer, bool);
  5147. Variant GetAttribute(const String&) const;
  5148. ValueAnimation GetAttributeAnimation(const String&) const;
  5149. float GetAttributeAnimationSpeed(const String&) const;
  5150. float GetAttributeAnimationTime(const String&) const;
  5151. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5152. Variant GetAttributeDefault(const String&) const;
  5153. bool GetInterceptNetworkUpdate(const String&) const;
  5154. bool IsInView(Camera) const;
  5155. bool Load(File, bool = false);
  5156. bool Load(VectorBuffer&, bool = false);
  5157. bool LoadXML(const XMLElement&, bool = false);
  5158. void MarkNetworkUpdate() const;
  5159. void Remove();
  5160. void RemoveAttributeAnimation(const String&);
  5161. void RemoveInstanceDefault();
  5162. void RemoveObjectAnimation();
  5163. void ResetToDefault();
  5164. bool Save(File) const;
  5165. bool Save(VectorBuffer&) const;
  5166. bool SaveXML(XMLElement&) const;
  5167. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5168. void SetAnimationTime(float);
  5169. bool SetAttribute(const String&, const Variant&);
  5170. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5171. void SetAttributeAnimationSpeed(const String&, float);
  5172. void SetAttributeAnimationTime(const String&, float);
  5173. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5174. void SetInterceptNetworkUpdate(const String&, bool);
  5175. // Properties:
  5176. bool animationEnabled;
  5177. float aspectRatio;
  5178. /* readonly */
  5179. Array<Variant> attributeDefaults;
  5180. /* readonly */
  5181. Array<AttributeInfo> attributeInfos;
  5182. Array<Variant> attributes;
  5183. /* readonly */
  5184. BoundingBox boundingBox;
  5185. float brightness;
  5186. bool castShadows;
  5187. /* readonly */
  5188. String category;
  5189. Color color;
  5190. float drawDistance;
  5191. /* readonly */
  5192. Color effectiveColor;
  5193. /* readonly */
  5194. float effectiveSpecularIntensity;
  5195. bool enabled;
  5196. /* readonly */
  5197. bool enabledEffective;
  5198. float fadeDistance;
  5199. float fov;
  5200. /* readonly */
  5201. Frustum frustum;
  5202. /* readonly */
  5203. uint id;
  5204. /* readonly */
  5205. bool inView;
  5206. uint lightMask;
  5207. LightType lightType;
  5208. float lodBias;
  5209. uint maxLights;
  5210. /* readonly */
  5211. bool negative;
  5212. /* readonly */
  5213. Node node;
  5214. /* readonly */
  5215. uint numAttributes;
  5216. /* readonly */
  5217. int numShadowSplits;
  5218. ObjectAnimation objectAnimation;
  5219. bool occludee;
  5220. bool occluder;
  5221. bool perVertex;
  5222. Texture rampTexture;
  5223. float range;
  5224. /* readonly */
  5225. int refs;
  5226. BiasParameters shadowBias;
  5227. CascadeParameters shadowCascade;
  5228. float shadowDistance;
  5229. float shadowFadeDistance;
  5230. FocusParameters shadowFocus;
  5231. float shadowIntensity;
  5232. uint shadowMask;
  5233. float shadowNearFarRatio;
  5234. float shadowResolution;
  5235. Texture shapeTexture;
  5236. float specularIntensity;
  5237. bool temporary;
  5238. /* readonly */
  5239. StringHash type;
  5240. /* readonly */
  5241. String typeName;
  5242. uint viewMask;
  5243. /* readonly */
  5244. int weakRefs;
  5245. /* readonly */
  5246. BoundingBox worldBoundingBox;
  5247. uint zoneMask;
  5248. };
  5249. class LineEdit
  5250. {
  5251. // Methods:
  5252. void AddChild(UIElement);
  5253. void ApplyAttributes();
  5254. void BringToFront();
  5255. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5256. void DisableLayoutUpdate();
  5257. IntVector2 ElementToScreen(const IntVector2&);
  5258. void EnableLayoutUpdate();
  5259. uint FindChild(UIElement) const;
  5260. Variant GetAttribute(const String&) const;
  5261. ValueAnimation GetAttributeAnimation(const String&) const;
  5262. float GetAttributeAnimationSpeed(const String&) const;
  5263. float GetAttributeAnimationTime(const String&) const;
  5264. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5265. Variant GetAttributeDefault(const String&) const;
  5266. UIElement GetChild(const String&, bool = false) const;
  5267. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5268. Array<UIElement> GetChildren(bool = false) const;
  5269. UIElement GetElementEventSender() const;
  5270. bool GetInterceptNetworkUpdate(const String&) const;
  5271. uint GetNumChildren(bool) const;
  5272. void InsertChild(uint, UIElement);
  5273. bool IsInside(IntVector2, bool);
  5274. bool IsInsideCombined(IntVector2, bool);
  5275. bool Load(File, bool = false);
  5276. bool Load(VectorBuffer&, bool = false);
  5277. bool LoadChildXML(XMLFile, XMLFile = null);
  5278. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5279. bool LoadXML(File);
  5280. bool LoadXML(VectorBuffer&);
  5281. bool LoadXML(XMLFile, XMLFile);
  5282. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5283. bool LoadXML(const XMLElement&, bool = false);
  5284. void MarkNetworkUpdate() const;
  5285. void Remove();
  5286. void RemoveAllChildren();
  5287. void RemoveAttributeAnimation(const String&);
  5288. void RemoveChild(UIElement, uint = 0);
  5289. void RemoveChild(uint);
  5290. void RemoveInstanceDefault();
  5291. void RemoveObjectAnimation();
  5292. void ResetDeepEnabled();
  5293. void ResetToDefault();
  5294. bool Save(File) const;
  5295. bool Save(VectorBuffer&) const;
  5296. bool SaveXML(File, const String& = "\t");
  5297. bool SaveXML(VectorBuffer&, const String& = "\t");
  5298. bool SaveXML(XMLElement&) const;
  5299. IntVector2 ScreenToElement(const IntVector2&);
  5300. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5301. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5302. void SetAnimationTime(float);
  5303. bool SetAttribute(const String&, const Variant&);
  5304. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5305. void SetAttributeAnimationSpeed(const String&, float);
  5306. void SetAttributeAnimationTime(const String&, float);
  5307. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5308. void SetDeepEnabled(bool);
  5309. void SetEnabledRecursive(bool);
  5310. void SetFixedHeight(int);
  5311. void SetFixedSize(int, int);
  5312. void SetFixedWidth(int);
  5313. void SetFullImageRect();
  5314. void SetHoverOffset(int, int);
  5315. void SetInterceptNetworkUpdate(const String&, bool);
  5316. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5317. void SetMaxSize(int, int);
  5318. void SetMinSize(int, int);
  5319. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5320. void SetPosition(int, int);
  5321. void SetSize(int, int);
  5322. bool SetStyle(const String&, XMLFile = null);
  5323. bool SetStyle(const XMLElement&);
  5324. bool SetStyleAuto(XMLFile = null);
  5325. void UpdateLayout();
  5326. const Variant& GetVar(const StringHash&);
  5327. // Properties:
  5328. bool animationEnabled;
  5329. /* readonly */
  5330. Array<Variant> attributeDefaults;
  5331. /* readonly */
  5332. Array<AttributeInfo> attributeInfos;
  5333. Array<Variant> attributes;
  5334. BlendMode blendMode;
  5335. IntRect border;
  5336. bool bringToBack;
  5337. bool bringToFront;
  5338. /* readonly */
  5339. String category;
  5340. /* readonly */
  5341. IntVector2 childOffset;
  5342. /* readonly */
  5343. Array<UIElement> children;
  5344. IntRect clipBorder;
  5345. bool clipChildren;
  5346. /* writeonly */
  5347. Color color;
  5348. /* readonly */
  5349. bool colorGradient;
  5350. Array<Color> colors;
  5351. /* readonly */
  5352. IntRect combinedScreenRect;
  5353. /* readonly */
  5354. BorderImage cursor;
  5355. float cursorBlinkRate;
  5356. bool cursorMovable;
  5357. uint cursorPosition;
  5358. XMLFile defaultStyle;
  5359. /* readonly */
  5360. float derivedOpacity;
  5361. /* readonly */
  5362. uint dragButtonCombo;
  5363. /* readonly */
  5364. int dragButtonCount;
  5365. uint dragDropMode;
  5366. uint echoCharacter;
  5367. bool editable;
  5368. bool elementEventSender;
  5369. bool enabled;
  5370. /* readonly */
  5371. bool enabledSelf;
  5372. /* readonly */
  5373. bool fixedHeight;
  5374. /* readonly */
  5375. bool fixedSize;
  5376. /* readonly */
  5377. bool fixedWidth;
  5378. bool focus;
  5379. FocusMode focusMode;
  5380. int height;
  5381. HorizontalAlignment horizontalAlignment;
  5382. IntVector2 hoverOffset;
  5383. /* readonly */
  5384. bool hovering;
  5385. IntRect imageBorder;
  5386. IntRect imageRect;
  5387. int indent;
  5388. int indentSpacing;
  5389. /* readonly */
  5390. int indentWidth;
  5391. bool internal;
  5392. IntRect layoutBorder;
  5393. Vector2 layoutFlexScale;
  5394. LayoutMode layoutMode;
  5395. int layoutSpacing;
  5396. int maxHeight;
  5397. uint maxLength;
  5398. IntVector2 maxSize;
  5399. int maxWidth;
  5400. int minHeight;
  5401. IntVector2 minSize;
  5402. int minWidth;
  5403. String name;
  5404. /* readonly */
  5405. uint numAllChildren;
  5406. /* readonly */
  5407. uint numAttributes;
  5408. /* readonly */
  5409. uint numChildren;
  5410. ObjectAnimation objectAnimation;
  5411. float opacity;
  5412. UIElement parent;
  5413. IntVector2 position;
  5414. int priority;
  5415. /* readonly */
  5416. int refs;
  5417. /* readonly */
  5418. UIElement root;
  5419. /* readonly */
  5420. IntVector2 screenPosition;
  5421. bool selected;
  5422. IntVector2 size;
  5423. bool sortChildren;
  5424. String style;
  5425. bool temporary;
  5426. String text;
  5427. bool textCopyable;
  5428. /* readonly */
  5429. Text textElement;
  5430. bool textSelectable;
  5431. Texture texture;
  5432. bool tiled;
  5433. TraversalMode traversalMode;
  5434. /* readonly */
  5435. StringHash type;
  5436. /* readonly */
  5437. String typeName;
  5438. bool useDerivedOpacity;
  5439. /* readonly */
  5440. VariantMap vars;
  5441. VerticalAlignment verticalAlignment;
  5442. bool visible;
  5443. /* readonly */
  5444. bool visibleEffective;
  5445. /* readonly */
  5446. int weakRefs;
  5447. int width;
  5448. };
  5449. class ListView
  5450. {
  5451. // Methods:
  5452. void AddChild(UIElement);
  5453. void AddItem(UIElement);
  5454. void AddSelection(uint);
  5455. void ApplyAttributes();
  5456. void BringToFront();
  5457. void ChangeSelection(int, bool);
  5458. void ClearSelection();
  5459. void CopySelectedItemsToClipboard();
  5460. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5461. void DisableLayoutUpdate();
  5462. IntVector2 ElementToScreen(const IntVector2&);
  5463. void EnableLayoutUpdate();
  5464. void Expand(uint, bool, bool = false);
  5465. uint FindChild(UIElement) const;
  5466. uint FindItem(UIElement);
  5467. Variant GetAttribute(const String&) const;
  5468. ValueAnimation GetAttributeAnimation(const String&) const;
  5469. float GetAttributeAnimationSpeed(const String&) const;
  5470. float GetAttributeAnimationTime(const String&) const;
  5471. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5472. Variant GetAttributeDefault(const String&) const;
  5473. UIElement GetChild(const String&, bool = false) const;
  5474. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5475. Array<UIElement> GetChildren(bool = false) const;
  5476. UIElement GetElementEventSender() const;
  5477. bool GetInterceptNetworkUpdate(const String&) const;
  5478. Array<UIElement> GetItems() const;
  5479. uint GetNumChildren(bool) const;
  5480. void InsertChild(uint, UIElement);
  5481. void InsertItem(uint, UIElement, UIElement = null);
  5482. bool IsExpanded(uint) const;
  5483. bool IsInside(IntVector2, bool);
  5484. bool IsInsideCombined(IntVector2, bool);
  5485. bool IsSelected(uint) const;
  5486. bool Load(File, bool = false);
  5487. bool Load(VectorBuffer&, bool = false);
  5488. bool LoadChildXML(XMLFile, XMLFile = null);
  5489. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5490. bool LoadXML(File);
  5491. bool LoadXML(VectorBuffer&);
  5492. bool LoadXML(XMLFile, XMLFile);
  5493. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5494. bool LoadXML(const XMLElement&, bool = false);
  5495. void MarkNetworkUpdate() const;
  5496. void Remove();
  5497. void RemoveAllChildren();
  5498. void RemoveAllItems();
  5499. void RemoveAttributeAnimation(const String&);
  5500. void RemoveChild(UIElement, uint = 0);
  5501. void RemoveChild(uint);
  5502. void RemoveInstanceDefault();
  5503. void RemoveItem(UIElement, uint = 0);
  5504. void RemoveItem(uint);
  5505. void RemoveObjectAnimation();
  5506. void RemoveSelection(uint);
  5507. void ResetDeepEnabled();
  5508. void ResetToDefault();
  5509. bool Save(File) const;
  5510. bool Save(VectorBuffer&) const;
  5511. bool SaveXML(File, const String& = "\t");
  5512. bool SaveXML(VectorBuffer&, const String& = "\t");
  5513. bool SaveXML(XMLElement&) const;
  5514. IntVector2 ScreenToElement(const IntVector2&);
  5515. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5516. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5517. void SetAnimationTime(float);
  5518. bool SetAttribute(const String&, const Variant&);
  5519. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5520. void SetAttributeAnimationSpeed(const String&, float);
  5521. void SetAttributeAnimationTime(const String&, float);
  5522. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5523. void SetDeepEnabled(bool);
  5524. void SetEnabledRecursive(bool);
  5525. void SetFixedHeight(int);
  5526. void SetFixedSize(int, int);
  5527. void SetFixedWidth(int);
  5528. void SetInterceptNetworkUpdate(const String&, bool);
  5529. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5530. void SetMaxSize(int, int);
  5531. void SetMinSize(int, int);
  5532. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5533. void SetPosition(int, int);
  5534. void SetScrollBarsVisible(bool, bool);
  5535. void SetSelections(Array<uint>);
  5536. void SetSize(int, int);
  5537. bool SetStyle(const String&, XMLFile = null);
  5538. bool SetStyle(const XMLElement&);
  5539. bool SetStyleAuto(XMLFile = null);
  5540. void SetViewPosition(int, int);
  5541. void ToggleExpand(uint, bool = false);
  5542. void ToggleSelection(uint);
  5543. void UpdateLayout();
  5544. const Variant& GetVar(const StringHash&);
  5545. // Properties:
  5546. bool animationEnabled;
  5547. /* readonly */
  5548. Array<Variant> attributeDefaults;
  5549. /* readonly */
  5550. Array<AttributeInfo> attributeInfos;
  5551. Array<Variant> attributes;
  5552. bool autoDisableChildren;
  5553. float autoDisableThreshold;
  5554. int baseIndent;
  5555. bool bringToBack;
  5556. bool bringToFront;
  5557. /* readonly */
  5558. String category;
  5559. /* readonly */
  5560. IntVector2 childOffset;
  5561. /* readonly */
  5562. Array<UIElement> children;
  5563. bool clearSelectionOnDefocus;
  5564. IntRect clipBorder;
  5565. bool clipChildren;
  5566. /* writeonly */
  5567. Color color;
  5568. /* readonly */
  5569. bool colorGradient;
  5570. Array<Color> colors;
  5571. /* readonly */
  5572. IntRect combinedScreenRect;
  5573. /* readonly */
  5574. UIElement contentElement;
  5575. XMLFile defaultStyle;
  5576. /* readonly */
  5577. float derivedOpacity;
  5578. /* readonly */
  5579. uint dragButtonCombo;
  5580. /* readonly */
  5581. int dragButtonCount;
  5582. uint dragDropMode;
  5583. bool editable;
  5584. bool elementEventSender;
  5585. bool enabled;
  5586. /* readonly */
  5587. bool enabledSelf;
  5588. /* readonly */
  5589. bool fixedHeight;
  5590. /* readonly */
  5591. bool fixedSize;
  5592. /* readonly */
  5593. bool fixedWidth;
  5594. bool focus;
  5595. FocusMode focusMode;
  5596. int height;
  5597. bool hierarchyMode;
  5598. HighlightMode highlightMode;
  5599. HorizontalAlignment horizontalAlignment;
  5600. /* readonly */
  5601. ScrollBar horizontalScrollBar;
  5602. /* readonly */
  5603. bool hovering;
  5604. int indent;
  5605. int indentSpacing;
  5606. /* readonly */
  5607. int indentWidth;
  5608. bool internal;
  5609. /* readonly */
  5610. Array<UIElement> items;
  5611. IntRect layoutBorder;
  5612. Vector2 layoutFlexScale;
  5613. LayoutMode layoutMode;
  5614. int layoutSpacing;
  5615. int maxHeight;
  5616. IntVector2 maxSize;
  5617. int maxWidth;
  5618. int minHeight;
  5619. IntVector2 minSize;
  5620. int minWidth;
  5621. bool multiselect;
  5622. String name;
  5623. /* readonly */
  5624. uint numAllChildren;
  5625. /* readonly */
  5626. uint numAttributes;
  5627. /* readonly */
  5628. uint numChildren;
  5629. /* readonly */
  5630. uint numItems;
  5631. ObjectAnimation objectAnimation;
  5632. float opacity;
  5633. float pageStep;
  5634. UIElement parent;
  5635. IntVector2 position;
  5636. int priority;
  5637. /* readonly */
  5638. int refs;
  5639. /* readonly */
  5640. UIElement root;
  5641. /* readonly */
  5642. IntVector2 screenPosition;
  5643. bool scrollBarsAutoVisible;
  5644. float scrollDeceleration;
  5645. /* readonly */
  5646. BorderImage scrollPanel;
  5647. float scrollSnapEpsilon;
  5648. float scrollStep;
  5649. bool selectOnClickEnd;
  5650. bool selected;
  5651. /* readonly */
  5652. UIElement selectedItem;
  5653. /* readonly */
  5654. Array<UIElement> selectedItems;
  5655. uint selection;
  5656. /* readonly */
  5657. Array<uint> selections;
  5658. IntVector2 size;
  5659. bool sortChildren;
  5660. String style;
  5661. bool temporary;
  5662. TraversalMode traversalMode;
  5663. /* readonly */
  5664. StringHash type;
  5665. /* readonly */
  5666. String typeName;
  5667. bool useDerivedOpacity;
  5668. /* readonly */
  5669. VariantMap vars;
  5670. VerticalAlignment verticalAlignment;
  5671. /* readonly */
  5672. ScrollBar verticalScrollBar;
  5673. IntVector2 viewPosition;
  5674. bool visible;
  5675. /* readonly */
  5676. bool visibleEffective;
  5677. /* readonly */
  5678. int weakRefs;
  5679. int width;
  5680. };
  5681. class Localization
  5682. {
  5683. // Methods:
  5684. String Get(const String&);
  5685. String GetLanguage(int);
  5686. int GetLanguageIndex(const String&);
  5687. void LoadJSON(const JSONValue&);
  5688. void LoadJSONFile(const String&);
  5689. void Reset();
  5690. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5691. void SetLanguage(const String&);
  5692. void SetLanguage(int);
  5693. // Properties:
  5694. /* readonly */
  5695. String category;
  5696. /* readonly */
  5697. String language;
  5698. /* readonly */
  5699. int languageIndex;
  5700. /* readonly */
  5701. int numLanguages;
  5702. /* readonly */
  5703. int refs;
  5704. /* readonly */
  5705. StringHash type;
  5706. /* readonly */
  5707. String typeName;
  5708. /* readonly */
  5709. int weakRefs;
  5710. };
  5711. class Log
  5712. {
  5713. // Methods:
  5714. void Close();
  5715. void Debug(const String&);
  5716. void Error(const String&);
  5717. void Info(const String&);
  5718. void Open(const String&);
  5719. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5720. void Warning(const String&);
  5721. void Write(const String&, bool = false);
  5722. // Properties:
  5723. /* readonly */
  5724. String category;
  5725. /* readonly */
  5726. String lastMessage;
  5727. int level;
  5728. bool quiet;
  5729. /* readonly */
  5730. int refs;
  5731. bool timeStamp;
  5732. /* readonly */
  5733. StringHash type;
  5734. /* readonly */
  5735. String typeName;
  5736. /* readonly */
  5737. int weakRefs;
  5738. };
  5739. class Material
  5740. {
  5741. // Methods:
  5742. Material Clone(const String& = String ( )) const;
  5743. Pass GetPass(uint, const String&);
  5744. ValueAnimation GetShaderParameterAnimation(const String&) const;
  5745. float GetShaderParameterAnimationSpeed(const String&) const;
  5746. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  5747. bool Load(File);
  5748. bool Load(VectorBuffer&);
  5749. bool Load(const XMLElement&);
  5750. void RemoveShaderParameter(const String&);
  5751. bool Save(File) const;
  5752. bool Save(VectorBuffer&) const;
  5753. bool Save(XMLElement&) const;
  5754. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5755. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5756. void SetShaderParameterAnimationSpeed(const String&, float);
  5757. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  5758. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  5759. void SetUVTransform(const Vector2&, float, const Vector2&);
  5760. void SetUVTransform(const Vector2&, float, float);
  5761. void SortTechniques();
  5762. // Properties:
  5763. /* readonly */
  5764. String category;
  5765. CullMode cullMode;
  5766. BiasParameters depthBias;
  5767. FillMode fillMode;
  5768. /* readonly */
  5769. uint memoryUse;
  5770. String name;
  5771. uint numTechniques;
  5772. /* readonly */
  5773. bool occlusion;
  5774. /* readonly */
  5775. int refs;
  5776. uint8 renderOrder;
  5777. Scene scene;
  5778. /* readonly */
  5779. Array<String> shaderParameterNames;
  5780. Array<Variant> shaderParameters;
  5781. CullMode shadowCullMode;
  5782. /* readonly */
  5783. Array<TechniqueEntry> techniqueEntries;
  5784. /* readonly */
  5785. Array<Technique> techniques;
  5786. Array<Texture> textures;
  5787. /* readonly */
  5788. StringHash type;
  5789. /* readonly */
  5790. String typeName;
  5791. /* readonly */
  5792. uint useTimer;
  5793. /* readonly */
  5794. int weakRefs;
  5795. };
  5796. class Matrix3
  5797. {
  5798. // Methods:
  5799. bool Equals(const Matrix3&) const;
  5800. Matrix3 Inverse() const;
  5801. Vector3 Scale() const;
  5802. Matrix3 Scaled(const Vector3&) const;
  5803. void SetScale(const Vector3&);
  5804. void SetScale(float);
  5805. String ToString() const;
  5806. Matrix3 Transpose() const;
  5807. // Properties:
  5808. float m00;
  5809. float m01;
  5810. float m02;
  5811. float m10;
  5812. float m11;
  5813. float m12;
  5814. float m20;
  5815. float m21;
  5816. float m22;
  5817. };
  5818. class Matrix3x4
  5819. {
  5820. // Methods:
  5821. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5822. bool Equals(const Matrix3x4&) const;
  5823. Matrix3x4 Inverse() const;
  5824. Quaternion Rotation() const;
  5825. Matrix3 RotationMatrix() const;
  5826. Vector3 Scale() const;
  5827. void SetRotation(const Matrix3&);
  5828. void SetScale(const Vector3&);
  5829. void SetScale(float);
  5830. void SetTranslation(const Vector3&);
  5831. Matrix3 ToMatrix3() const;
  5832. Matrix4 ToMatrix4() const;
  5833. String ToString() const;
  5834. Vector3 Translation() const;
  5835. // Properties:
  5836. float m00;
  5837. float m01;
  5838. float m02;
  5839. float m03;
  5840. float m10;
  5841. float m11;
  5842. float m12;
  5843. float m13;
  5844. float m20;
  5845. float m21;
  5846. float m22;
  5847. float m23;
  5848. };
  5849. class Matrix4
  5850. {
  5851. // Methods:
  5852. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5853. bool Equals(const Matrix4&) const;
  5854. Matrix4 Inverse() const;
  5855. Quaternion Rotation() const;
  5856. Matrix3 RotationMatrix() const;
  5857. Vector3 Scale() const;
  5858. void SetRotation(const Matrix3&);
  5859. void SetScale(const Vector3&);
  5860. void SetScale(float);
  5861. void SetTranslation(const Vector3&);
  5862. Matrix3 ToMatrix3() const;
  5863. String ToString() const;
  5864. Vector3 Translation() const;
  5865. Matrix4 Transpose() const;
  5866. // Properties:
  5867. float m00;
  5868. float m01;
  5869. float m02;
  5870. float m03;
  5871. float m10;
  5872. float m11;
  5873. float m12;
  5874. float m13;
  5875. float m20;
  5876. float m21;
  5877. float m22;
  5878. float m23;
  5879. float m30;
  5880. float m31;
  5881. float m32;
  5882. float m33;
  5883. };
  5884. class Menu
  5885. {
  5886. // Methods:
  5887. void AddChild(UIElement);
  5888. void ApplyAttributes();
  5889. void BringToFront();
  5890. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5891. void DisableLayoutUpdate();
  5892. IntVector2 ElementToScreen(const IntVector2&);
  5893. void EnableLayoutUpdate();
  5894. uint FindChild(UIElement) const;
  5895. Variant GetAttribute(const String&) const;
  5896. ValueAnimation GetAttributeAnimation(const String&) const;
  5897. float GetAttributeAnimationSpeed(const String&) const;
  5898. float GetAttributeAnimationTime(const String&) const;
  5899. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5900. Variant GetAttributeDefault(const String&) const;
  5901. UIElement GetChild(const String&, bool = false) const;
  5902. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5903. Array<UIElement> GetChildren(bool = false) const;
  5904. UIElement GetElementEventSender() const;
  5905. bool GetInterceptNetworkUpdate(const String&) const;
  5906. uint GetNumChildren(bool) const;
  5907. void InsertChild(uint, UIElement);
  5908. bool IsInside(IntVector2, bool);
  5909. bool IsInsideCombined(IntVector2, bool);
  5910. bool Load(File, bool = false);
  5911. bool Load(VectorBuffer&, bool = false);
  5912. bool LoadChildXML(XMLFile, XMLFile = null);
  5913. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5914. bool LoadXML(File);
  5915. bool LoadXML(VectorBuffer&);
  5916. bool LoadXML(XMLFile, XMLFile);
  5917. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5918. bool LoadXML(const XMLElement&, bool = false);
  5919. void MarkNetworkUpdate() const;
  5920. void Remove();
  5921. void RemoveAllChildren();
  5922. void RemoveAttributeAnimation(const String&);
  5923. void RemoveChild(UIElement, uint = 0);
  5924. void RemoveChild(uint);
  5925. void RemoveInstanceDefault();
  5926. void RemoveObjectAnimation();
  5927. void ResetDeepEnabled();
  5928. void ResetToDefault();
  5929. bool Save(File) const;
  5930. bool Save(VectorBuffer&) const;
  5931. bool SaveXML(File, const String& = "\t");
  5932. bool SaveXML(VectorBuffer&, const String& = "\t");
  5933. bool SaveXML(XMLElement&) const;
  5934. IntVector2 ScreenToElement(const IntVector2&);
  5935. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5936. void SetAccelerator(int, int);
  5937. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5938. void SetAnimationTime(float);
  5939. bool SetAttribute(const String&, const Variant&);
  5940. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5941. void SetAttributeAnimationSpeed(const String&, float);
  5942. void SetAttributeAnimationTime(const String&, float);
  5943. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5944. void SetDeepEnabled(bool);
  5945. void SetEnabledRecursive(bool);
  5946. void SetFixedHeight(int);
  5947. void SetFixedSize(int, int);
  5948. void SetFixedWidth(int);
  5949. void SetFullImageRect();
  5950. void SetHoverOffset(int, int);
  5951. void SetInterceptNetworkUpdate(const String&, bool);
  5952. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5953. void SetMaxSize(int, int);
  5954. void SetMinSize(int, int);
  5955. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5956. void SetPopupOffset(int, int);
  5957. void SetPosition(int, int);
  5958. void SetPressedChildOffset(int, int);
  5959. void SetPressedOffset(int, int);
  5960. void SetRepeat(float, float);
  5961. void SetSize(int, int);
  5962. bool SetStyle(const String&, XMLFile = null);
  5963. bool SetStyle(const XMLElement&);
  5964. bool SetStyleAuto(XMLFile = null);
  5965. void UpdateLayout();
  5966. const Variant& GetVar(const StringHash&);
  5967. // Properties:
  5968. /* readonly */
  5969. int acceleratorKey;
  5970. /* readonly */
  5971. int acceleratorQualifiers;
  5972. bool animationEnabled;
  5973. /* readonly */
  5974. Array<Variant> attributeDefaults;
  5975. /* readonly */
  5976. Array<AttributeInfo> attributeInfos;
  5977. Array<Variant> attributes;
  5978. BlendMode blendMode;
  5979. IntRect border;
  5980. bool bringToBack;
  5981. bool bringToFront;
  5982. /* readonly */
  5983. String category;
  5984. /* readonly */
  5985. IntVector2 childOffset;
  5986. /* readonly */
  5987. Array<UIElement> children;
  5988. IntRect clipBorder;
  5989. bool clipChildren;
  5990. /* writeonly */
  5991. Color color;
  5992. /* readonly */
  5993. bool colorGradient;
  5994. Array<Color> colors;
  5995. /* readonly */
  5996. IntRect combinedScreenRect;
  5997. XMLFile defaultStyle;
  5998. /* readonly */
  5999. float derivedOpacity;
  6000. /* readonly */
  6001. uint dragButtonCombo;
  6002. /* readonly */
  6003. int dragButtonCount;
  6004. uint dragDropMode;
  6005. bool editable;
  6006. bool elementEventSender;
  6007. bool enabled;
  6008. /* readonly */
  6009. bool enabledSelf;
  6010. /* readonly */
  6011. bool fixedHeight;
  6012. /* readonly */
  6013. bool fixedSize;
  6014. /* readonly */
  6015. bool fixedWidth;
  6016. bool focus;
  6017. FocusMode focusMode;
  6018. int height;
  6019. HorizontalAlignment horizontalAlignment;
  6020. IntVector2 hoverOffset;
  6021. /* readonly */
  6022. bool hovering;
  6023. IntRect imageBorder;
  6024. IntRect imageRect;
  6025. int indent;
  6026. int indentSpacing;
  6027. /* readonly */
  6028. int indentWidth;
  6029. bool internal;
  6030. IntRect layoutBorder;
  6031. Vector2 layoutFlexScale;
  6032. LayoutMode layoutMode;
  6033. int layoutSpacing;
  6034. int maxHeight;
  6035. IntVector2 maxSize;
  6036. int maxWidth;
  6037. int minHeight;
  6038. IntVector2 minSize;
  6039. int minWidth;
  6040. String name;
  6041. /* readonly */
  6042. uint numAllChildren;
  6043. /* readonly */
  6044. uint numAttributes;
  6045. /* readonly */
  6046. uint numChildren;
  6047. ObjectAnimation objectAnimation;
  6048. float opacity;
  6049. UIElement parent;
  6050. UIElement popup;
  6051. IntVector2 popupOffset;
  6052. IntVector2 position;
  6053. /* readonly */
  6054. bool pressed;
  6055. IntVector2 pressedChildOffset;
  6056. IntVector2 pressedOffset;
  6057. int priority;
  6058. /* readonly */
  6059. int refs;
  6060. float repeatDelay;
  6061. float repeatRate;
  6062. /* readonly */
  6063. UIElement root;
  6064. /* readonly */
  6065. IntVector2 screenPosition;
  6066. bool selected;
  6067. bool showPopup;
  6068. IntVector2 size;
  6069. bool sortChildren;
  6070. String style;
  6071. bool temporary;
  6072. Texture texture;
  6073. bool tiled;
  6074. TraversalMode traversalMode;
  6075. /* readonly */
  6076. StringHash type;
  6077. /* readonly */
  6078. String typeName;
  6079. bool useDerivedOpacity;
  6080. /* readonly */
  6081. VariantMap vars;
  6082. VerticalAlignment verticalAlignment;
  6083. bool visible;
  6084. /* readonly */
  6085. bool visibleEffective;
  6086. /* readonly */
  6087. int weakRefs;
  6088. int width;
  6089. };
  6090. class MessageBox
  6091. {
  6092. // Methods:
  6093. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6094. // Properties:
  6095. /* readonly */
  6096. String category;
  6097. String message;
  6098. /* readonly */
  6099. int refs;
  6100. String title;
  6101. /* readonly */
  6102. StringHash type;
  6103. /* readonly */
  6104. String typeName;
  6105. /* readonly */
  6106. int weakRefs;
  6107. /* readonly */
  6108. UIElement window;
  6109. };
  6110. class Model
  6111. {
  6112. // Methods:
  6113. Model Clone(const String& = String ( )) const;
  6114. Geometry GetGeometry(uint, uint) const;
  6115. bool Load(File);
  6116. bool Load(VectorBuffer&);
  6117. bool Save(File) const;
  6118. bool Save(VectorBuffer&) const;
  6119. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6120. bool SetGeometry(uint, uint, Geometry);
  6121. // Properties:
  6122. BoundingBox boundingBox;
  6123. /* readonly */
  6124. String category;
  6125. Array<Vector3> geometryCenters;
  6126. /* readonly */
  6127. uint memoryUse;
  6128. String name;
  6129. uint numGeometries;
  6130. Array<uint> numGeometryLodLevels;
  6131. /* readonly */
  6132. uint numMorphs;
  6133. /* readonly */
  6134. int refs;
  6135. /* readonly */
  6136. Skeleton skeleton;
  6137. /* readonly */
  6138. StringHash type;
  6139. /* readonly */
  6140. String typeName;
  6141. /* readonly */
  6142. uint useTimer;
  6143. /* readonly */
  6144. int weakRefs;
  6145. };
  6146. class NavArea
  6147. {
  6148. // Methods:
  6149. void ApplyAttributes();
  6150. void DrawDebugGeometry(DebugRenderer, bool);
  6151. Variant GetAttribute(const String&) const;
  6152. ValueAnimation GetAttributeAnimation(const String&) const;
  6153. float GetAttributeAnimationSpeed(const String&) const;
  6154. float GetAttributeAnimationTime(const String&) const;
  6155. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6156. Variant GetAttributeDefault(const String&) const;
  6157. bool GetInterceptNetworkUpdate(const String&) const;
  6158. bool Load(File, bool = false);
  6159. bool Load(VectorBuffer&, bool = false);
  6160. bool LoadXML(const XMLElement&, bool = false);
  6161. void MarkNetworkUpdate() const;
  6162. void Remove();
  6163. void RemoveAttributeAnimation(const String&);
  6164. void RemoveInstanceDefault();
  6165. void RemoveObjectAnimation();
  6166. void ResetToDefault();
  6167. bool Save(File) const;
  6168. bool Save(VectorBuffer&) const;
  6169. bool SaveXML(XMLElement&) const;
  6170. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6171. void SetAnimationTime(float);
  6172. bool SetAttribute(const String&, const Variant&);
  6173. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6174. void SetAttributeAnimationSpeed(const String&, float);
  6175. void SetAttributeAnimationTime(const String&, float);
  6176. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6177. void SetInterceptNetworkUpdate(const String&, bool);
  6178. // Properties:
  6179. bool animationEnabled;
  6180. uint areaID;
  6181. /* readonly */
  6182. Array<Variant> attributeDefaults;
  6183. /* readonly */
  6184. Array<AttributeInfo> attributeInfos;
  6185. Array<Variant> attributes;
  6186. BoundingBox boundingBox;
  6187. /* readonly */
  6188. String category;
  6189. bool enabled;
  6190. /* readonly */
  6191. bool enabledEffective;
  6192. /* readonly */
  6193. uint id;
  6194. /* readonly */
  6195. Node node;
  6196. /* readonly */
  6197. uint numAttributes;
  6198. ObjectAnimation objectAnimation;
  6199. /* readonly */
  6200. int refs;
  6201. bool temporary;
  6202. /* readonly */
  6203. StringHash type;
  6204. /* readonly */
  6205. String typeName;
  6206. /* readonly */
  6207. int weakRefs;
  6208. /* readonly */
  6209. BoundingBox worldBoundingBox;
  6210. };
  6211. class Navigable
  6212. {
  6213. // Methods:
  6214. void ApplyAttributes();
  6215. void DrawDebugGeometry(DebugRenderer, bool);
  6216. Variant GetAttribute(const String&) const;
  6217. ValueAnimation GetAttributeAnimation(const String&) const;
  6218. float GetAttributeAnimationSpeed(const String&) const;
  6219. float GetAttributeAnimationTime(const String&) const;
  6220. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6221. Variant GetAttributeDefault(const String&) const;
  6222. bool GetInterceptNetworkUpdate(const String&) const;
  6223. bool Load(File, bool = false);
  6224. bool Load(VectorBuffer&, bool = false);
  6225. bool LoadXML(const XMLElement&, bool = false);
  6226. void MarkNetworkUpdate() const;
  6227. void Remove();
  6228. void RemoveAttributeAnimation(const String&);
  6229. void RemoveInstanceDefault();
  6230. void RemoveObjectAnimation();
  6231. void ResetToDefault();
  6232. bool Save(File) const;
  6233. bool Save(VectorBuffer&) const;
  6234. bool SaveXML(XMLElement&) const;
  6235. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6236. void SetAnimationTime(float);
  6237. bool SetAttribute(const String&, const Variant&);
  6238. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6239. void SetAttributeAnimationSpeed(const String&, float);
  6240. void SetAttributeAnimationTime(const String&, float);
  6241. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6242. void SetInterceptNetworkUpdate(const String&, bool);
  6243. // Properties:
  6244. bool animationEnabled;
  6245. /* readonly */
  6246. Array<Variant> attributeDefaults;
  6247. /* readonly */
  6248. Array<AttributeInfo> attributeInfos;
  6249. Array<Variant> attributes;
  6250. /* readonly */
  6251. String category;
  6252. bool enabled;
  6253. /* readonly */
  6254. bool enabledEffective;
  6255. /* readonly */
  6256. uint id;
  6257. /* readonly */
  6258. Node node;
  6259. /* readonly */
  6260. uint numAttributes;
  6261. ObjectAnimation objectAnimation;
  6262. bool recursive;
  6263. /* readonly */
  6264. int refs;
  6265. bool temporary;
  6266. /* readonly */
  6267. StringHash type;
  6268. /* readonly */
  6269. String typeName;
  6270. /* readonly */
  6271. int weakRefs;
  6272. };
  6273. class NavigationMesh
  6274. {
  6275. // Methods:
  6276. void ApplyAttributes();
  6277. bool Build();
  6278. bool Build(const BoundingBox&);
  6279. void DrawDebugGeometry(DebugRenderer, bool);
  6280. void DrawDebugGeometry(bool);
  6281. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6282. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6283. float GetAreaCost(uint) const;
  6284. Variant GetAttribute(const String&) const;
  6285. ValueAnimation GetAttributeAnimation(const String&) const;
  6286. float GetAttributeAnimationSpeed(const String&) const;
  6287. float GetAttributeAnimationTime(const String&) const;
  6288. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6289. Variant GetAttributeDefault(const String&) const;
  6290. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6291. bool GetInterceptNetworkUpdate(const String&) const;
  6292. Vector3 GetRandomPoint();
  6293. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6294. bool Load(File, bool = false);
  6295. bool Load(VectorBuffer&, bool = false);
  6296. bool LoadXML(const XMLElement&, bool = false);
  6297. void MarkNetworkUpdate() const;
  6298. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6299. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6300. void Remove();
  6301. void RemoveAttributeAnimation(const String&);
  6302. void RemoveInstanceDefault();
  6303. void RemoveObjectAnimation();
  6304. void ResetToDefault();
  6305. bool Save(File) const;
  6306. bool Save(VectorBuffer&) const;
  6307. bool SaveXML(XMLElement&) const;
  6308. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6309. void SetAnimationTime(float);
  6310. void SetAreaCost(uint, float);
  6311. bool SetAttribute(const String&, const Variant&);
  6312. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6313. void SetAttributeAnimationSpeed(const String&, float);
  6314. void SetAttributeAnimationTime(const String&, float);
  6315. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6316. void SetInterceptNetworkUpdate(const String&, bool);
  6317. // Properties:
  6318. float agentHeight;
  6319. float agentMaxClimb;
  6320. float agentMaxSlope;
  6321. float agentRadius;
  6322. bool animationEnabled;
  6323. /* readonly */
  6324. Array<Variant> attributeDefaults;
  6325. /* readonly */
  6326. Array<AttributeInfo> attributeInfos;
  6327. Array<Variant> attributes;
  6328. /* readonly */
  6329. BoundingBox boundingBox;
  6330. /* readonly */
  6331. String category;
  6332. float cellHeight;
  6333. float cellSize;
  6334. float detailSampleDistance;
  6335. float detailSampleMaxError;
  6336. bool drawNavAreas;
  6337. bool drawOffMeshConnections;
  6338. float edgeMaxError;
  6339. float edgeMaxLength;
  6340. bool enabled;
  6341. /* readonly */
  6342. bool enabledEffective;
  6343. /* readonly */
  6344. uint id;
  6345. /* readonly */
  6346. bool initialized;
  6347. /* readonly */
  6348. Node node;
  6349. /* readonly */
  6350. uint numAttributes;
  6351. /* readonly */
  6352. IntVector2 numTiles;
  6353. ObjectAnimation objectAnimation;
  6354. Vector3 padding;
  6355. NavmeshPartitionType partitionType;
  6356. /* readonly */
  6357. int refs;
  6358. float regionMergeSize;
  6359. float regionMinSize;
  6360. bool temporary;
  6361. int tileSize;
  6362. /* readonly */
  6363. StringHash type;
  6364. /* readonly */
  6365. String typeName;
  6366. /* readonly */
  6367. int weakRefs;
  6368. /* readonly */
  6369. BoundingBox worldBoundingBox;
  6370. };
  6371. class Network
  6372. {
  6373. // Methods:
  6374. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6375. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6376. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6377. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6378. bool CheckRemoteEvent(const String&) const;
  6379. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6380. void Disconnect(int = 0);
  6381. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6382. void RegisterRemoteEvent(const String&) const;
  6383. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6384. void SendPackageToClients(Scene, PackageFile);
  6385. bool StartServer(uint16);
  6386. void StopServer();
  6387. void UnregisterAllRemoteEvents();
  6388. void UnregisterRemoteEvent(const String&) const;
  6389. // Properties:
  6390. /* readonly */
  6391. String category;
  6392. /* readonly */
  6393. Array<Connection> clientConnections;
  6394. String packageCacheDir;
  6395. /* readonly */
  6396. int refs;
  6397. /* readonly */
  6398. Connection serverConnection;
  6399. /* readonly */
  6400. bool serverRunning;
  6401. int simulatedLatency;
  6402. float simulatedPacketLoss;
  6403. /* readonly */
  6404. StringHash type;
  6405. /* readonly */
  6406. String typeName;
  6407. int updateFps;
  6408. /* readonly */
  6409. int weakRefs;
  6410. };
  6411. class NetworkPriority
  6412. {
  6413. // Methods:
  6414. void ApplyAttributes();
  6415. void DrawDebugGeometry(DebugRenderer, bool);
  6416. Variant GetAttribute(const String&) const;
  6417. ValueAnimation GetAttributeAnimation(const String&) const;
  6418. float GetAttributeAnimationSpeed(const String&) const;
  6419. float GetAttributeAnimationTime(const String&) const;
  6420. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6421. Variant GetAttributeDefault(const String&) const;
  6422. bool GetInterceptNetworkUpdate(const String&) const;
  6423. bool Load(File, bool = false);
  6424. bool Load(VectorBuffer&, bool = false);
  6425. bool LoadXML(const XMLElement&, bool = false);
  6426. void MarkNetworkUpdate() const;
  6427. void Remove();
  6428. void RemoveAttributeAnimation(const String&);
  6429. void RemoveInstanceDefault();
  6430. void RemoveObjectAnimation();
  6431. void ResetToDefault();
  6432. bool Save(File) const;
  6433. bool Save(VectorBuffer&) const;
  6434. bool SaveXML(XMLElement&) const;
  6435. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6436. void SetAnimationTime(float);
  6437. bool SetAttribute(const String&, const Variant&);
  6438. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6439. void SetAttributeAnimationSpeed(const String&, float);
  6440. void SetAttributeAnimationTime(const String&, float);
  6441. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6442. void SetInterceptNetworkUpdate(const String&, bool);
  6443. // Properties:
  6444. bool alwaysUpdateOwner;
  6445. bool animationEnabled;
  6446. /* readonly */
  6447. Array<Variant> attributeDefaults;
  6448. /* readonly */
  6449. Array<AttributeInfo> attributeInfos;
  6450. Array<Variant> attributes;
  6451. float basePriority;
  6452. /* readonly */
  6453. String category;
  6454. float distanceFactor;
  6455. bool enabled;
  6456. /* readonly */
  6457. bool enabledEffective;
  6458. /* readonly */
  6459. uint id;
  6460. float minPriority;
  6461. /* readonly */
  6462. Node node;
  6463. /* readonly */
  6464. uint numAttributes;
  6465. ObjectAnimation objectAnimation;
  6466. /* readonly */
  6467. int refs;
  6468. bool temporary;
  6469. /* readonly */
  6470. StringHash type;
  6471. /* readonly */
  6472. String typeName;
  6473. /* readonly */
  6474. int weakRefs;
  6475. };
  6476. class Node
  6477. {
  6478. // Methods:
  6479. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6480. void ApplyAttributes();
  6481. Node Clone(CreateMode = REPLICATED);
  6482. Component CloneComponent(Component, CreateMode, uint = 0);
  6483. Component CloneComponent(Component, uint = 0);
  6484. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6485. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6486. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6487. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6488. Variant GetAttribute(const String&) const;
  6489. ValueAnimation GetAttributeAnimation(const String&) const;
  6490. float GetAttributeAnimationSpeed(const String&) const;
  6491. float GetAttributeAnimationTime(const String&) const;
  6492. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6493. Variant GetAttributeDefault(const String&) const;
  6494. Node GetChild(const String&, bool = false) const;
  6495. Array<Node> GetChildren(bool = false) const;
  6496. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6497. Array<Node> GetChildrenWithScript(bool = false) const;
  6498. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6499. Component GetComponent(const String&, bool = false) const;
  6500. Array<Component> GetComponents() const;
  6501. Array<Component> GetComponents(const String&, bool = false) const;
  6502. bool GetInterceptNetworkUpdate(const String&) const;
  6503. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6504. Component GetParentComponent(const String&, bool = false) const;
  6505. ScriptObject GetScriptObject() const;
  6506. ScriptObject GetScriptObject(const String&) const;
  6507. bool HasComponent(const String&) const;
  6508. bool Load(File, bool = false);
  6509. bool Load(VectorBuffer&, bool = false);
  6510. bool LoadXML(const XMLElement&, bool = false);
  6511. Vector3 LocalToWorld(const Vector3&) const;
  6512. Vector3 LocalToWorld(const Vector4&) const;
  6513. Vector2 LocalToWorld2D(const Vector2&) const;
  6514. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6515. void MarkDirty();
  6516. void MarkNetworkUpdate() const;
  6517. void Pitch(float, TransformSpace = TS_LOCAL);
  6518. void Remove();
  6519. void RemoveAllChildren();
  6520. void RemoveAllComponents();
  6521. void RemoveAttributeAnimation(const String&);
  6522. void RemoveChild(Node);
  6523. void RemoveChildren(bool, bool, bool);
  6524. void RemoveComponent(Component);
  6525. void RemoveComponent(const String&);
  6526. void RemoveComponents(bool, bool);
  6527. void RemoveComponents(const String&);
  6528. void RemoveInstanceDefault();
  6529. void RemoveObjectAnimation();
  6530. void ResetDeepEnabled();
  6531. void ResetToDefault();
  6532. void Roll(float, TransformSpace = TS_LOCAL);
  6533. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6534. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6535. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6536. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6537. bool Save(File) const;
  6538. bool Save(VectorBuffer&) const;
  6539. bool SaveXML(File, const String& = "\t");
  6540. bool SaveXML(VectorBuffer&, const String& = "\t");
  6541. bool SaveXML(XMLElement&) const;
  6542. void Scale(const Vector3&);
  6543. void Scale(float);
  6544. void Scale2D(const Vector2&);
  6545. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6546. void SetAnimationTime(float);
  6547. bool SetAttribute(const String&, const Variant&);
  6548. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6549. void SetAttributeAnimationSpeed(const String&, float);
  6550. void SetAttributeAnimationTime(const String&, float);
  6551. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6552. void SetDeepEnabled(bool);
  6553. void SetEnabledRecursive(bool);
  6554. void SetInterceptNetworkUpdate(const String&, bool);
  6555. void SetPosition2D(float, float);
  6556. void SetScale(float);
  6557. void SetScale2D(float, float);
  6558. void SetTransform(const Vector3&, const Quaternion&);
  6559. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6560. void SetTransform(const Vector3&, const Quaternion&, float);
  6561. void SetTransform2D(const Vector2&, float);
  6562. void SetTransform2D(const Vector2&, float, const Vector2&);
  6563. void SetTransform2D(const Vector2&, float, float);
  6564. void SetWorldTransform(const Vector3&, const Quaternion&);
  6565. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6566. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6567. void SetWorldTransform2D(const Vector2&, float);
  6568. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6569. void SetWorldTransform2D(const Vector2&, float, float);
  6570. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6571. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6572. Vector3 WorldToLocal(const Vector3&) const;
  6573. Vector3 WorldToLocal(const Vector4&) const;
  6574. Vector2 WorldToLocal2D(const Vector2&) const;
  6575. void Yaw(float, TransformSpace = TS_LOCAL);
  6576. // Properties:
  6577. bool animationEnabled;
  6578. /* readonly */
  6579. Array<Variant> attributeDefaults;
  6580. /* readonly */
  6581. Array<AttributeInfo> attributeInfos;
  6582. Array<Variant> attributes;
  6583. /* readonly */
  6584. String category;
  6585. /* readonly */
  6586. Array<Node> children;
  6587. /* readonly */
  6588. Array<Component> components;
  6589. Vector3 direction;
  6590. bool enabled;
  6591. /* readonly */
  6592. bool enabledSelf;
  6593. /* readonly */
  6594. uint id;
  6595. String name;
  6596. /* readonly */
  6597. uint numAllChildren;
  6598. /* readonly */
  6599. uint numAttributes;
  6600. /* readonly */
  6601. uint numChildren;
  6602. /* readonly */
  6603. uint numComponents;
  6604. ObjectAnimation objectAnimation;
  6605. Connection owner;
  6606. Node parent;
  6607. Vector3 position;
  6608. Vector2 position2D;
  6609. /* readonly */
  6610. int refs;
  6611. /* readonly */
  6612. Vector3 right;
  6613. Quaternion rotation;
  6614. float rotation2D;
  6615. Vector3 scale;
  6616. Vector2 scale2D;
  6617. /* readonly */
  6618. Scene scene;
  6619. /* readonly */
  6620. ScriptObject scriptObject;
  6621. bool temporary;
  6622. /* readonly */
  6623. Matrix3x4 transform;
  6624. /* readonly */
  6625. StringHash type;
  6626. /* readonly */
  6627. String typeName;
  6628. /* readonly */
  6629. Vector3 up;
  6630. /* readonly */
  6631. VariantMap vars;
  6632. /* readonly */
  6633. int weakRefs;
  6634. Vector3 worldDirection;
  6635. Vector3 worldPosition;
  6636. Vector2 worldPosition2D;
  6637. /* readonly */
  6638. Vector3 worldRight;
  6639. Quaternion worldRotation;
  6640. float worldRotation2D;
  6641. Vector3 worldScale;
  6642. Vector2 worldScale2D;
  6643. /* readonly */
  6644. Matrix3x4 worldTransform;
  6645. /* readonly */
  6646. Vector3 worldUp;
  6647. };
  6648. class Object
  6649. {
  6650. // Methods:
  6651. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6652. // Properties:
  6653. /* readonly */
  6654. String category;
  6655. /* readonly */
  6656. int refs;
  6657. /* readonly */
  6658. StringHash type;
  6659. /* readonly */
  6660. String typeName;
  6661. /* readonly */
  6662. int weakRefs;
  6663. };
  6664. class ObjectAnimation
  6665. {
  6666. // Methods:
  6667. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6668. ValueAnimation GetAttributeAnimation(const String&) const;
  6669. float GetAttributeAnimationSpeed(const String&) const;
  6670. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6671. bool Load(File);
  6672. bool Load(VectorBuffer&);
  6673. void RemoveAttributeAnimation(ValueAnimation);
  6674. void RemoveAttributeAnimation(const String&);
  6675. bool Save(File) const;
  6676. bool Save(VectorBuffer&) const;
  6677. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6678. // Properties:
  6679. /* readonly */
  6680. Array<Variant> attributeAnimations;
  6681. /* readonly */
  6682. String category;
  6683. /* readonly */
  6684. uint memoryUse;
  6685. String name;
  6686. /* readonly */
  6687. int refs;
  6688. /* readonly */
  6689. Array<Variant> speeds;
  6690. /* readonly */
  6691. StringHash type;
  6692. /* readonly */
  6693. String typeName;
  6694. /* readonly */
  6695. uint useTimer;
  6696. /* readonly */
  6697. int weakRefs;
  6698. /* readonly */
  6699. Array<Variant> wrapModes;
  6700. };
  6701. class Obstacle
  6702. {
  6703. // Methods:
  6704. void ApplyAttributes();
  6705. void DrawDebugGeometry(DebugRenderer, bool);
  6706. void DrawDebugGeometry(bool);
  6707. Variant GetAttribute(const String&) const;
  6708. ValueAnimation GetAttributeAnimation(const String&) const;
  6709. float GetAttributeAnimationSpeed(const String&) const;
  6710. float GetAttributeAnimationTime(const String&) const;
  6711. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6712. Variant GetAttributeDefault(const String&) const;
  6713. bool GetInterceptNetworkUpdate(const String&) const;
  6714. bool Load(File, bool = false);
  6715. bool Load(VectorBuffer&, bool = false);
  6716. bool LoadXML(const XMLElement&, bool = false);
  6717. void MarkNetworkUpdate() const;
  6718. void Remove();
  6719. void RemoveAttributeAnimation(const String&);
  6720. void RemoveInstanceDefault();
  6721. void RemoveObjectAnimation();
  6722. void ResetToDefault();
  6723. bool Save(File) const;
  6724. bool Save(VectorBuffer&) const;
  6725. bool SaveXML(XMLElement&) const;
  6726. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6727. void SetAnimationTime(float);
  6728. bool SetAttribute(const String&, const Variant&);
  6729. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6730. void SetAttributeAnimationSpeed(const String&, float);
  6731. void SetAttributeAnimationTime(const String&, float);
  6732. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6733. void SetInterceptNetworkUpdate(const String&, bool);
  6734. // Properties:
  6735. bool animationEnabled;
  6736. /* readonly */
  6737. Array<Variant> attributeDefaults;
  6738. /* readonly */
  6739. Array<AttributeInfo> attributeInfos;
  6740. Array<Variant> attributes;
  6741. /* readonly */
  6742. String category;
  6743. bool enabled;
  6744. /* readonly */
  6745. bool enabledEffective;
  6746. float height;
  6747. /* readonly */
  6748. uint id;
  6749. /* readonly */
  6750. Node node;
  6751. /* readonly */
  6752. uint numAttributes;
  6753. ObjectAnimation objectAnimation;
  6754. /* readonly */
  6755. uint obstacleId;
  6756. float radius;
  6757. /* readonly */
  6758. int refs;
  6759. bool temporary;
  6760. /* readonly */
  6761. StringHash type;
  6762. /* readonly */
  6763. String typeName;
  6764. /* readonly */
  6765. int weakRefs;
  6766. };
  6767. class Octree
  6768. {
  6769. // Methods:
  6770. void AddManualDrawable(Drawable);
  6771. void ApplyAttributes();
  6772. void DrawDebugGeometry(DebugRenderer, bool);
  6773. void DrawDebugGeometry(bool) const;
  6774. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6775. Variant GetAttribute(const String&) const;
  6776. ValueAnimation GetAttributeAnimation(const String&) const;
  6777. float GetAttributeAnimationSpeed(const String&) const;
  6778. float GetAttributeAnimationTime(const String&) const;
  6779. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6780. Variant GetAttributeDefault(const String&) const;
  6781. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6782. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6783. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6784. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6785. bool GetInterceptNetworkUpdate(const String&) const;
  6786. bool Load(File, bool = false);
  6787. bool Load(VectorBuffer&, bool = false);
  6788. bool LoadXML(const XMLElement&, bool = false);
  6789. void MarkNetworkUpdate() const;
  6790. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6791. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6792. void Remove();
  6793. void RemoveAttributeAnimation(const String&);
  6794. void RemoveInstanceDefault();
  6795. void RemoveManualDrawable(Drawable);
  6796. void RemoveObjectAnimation();
  6797. void ResetToDefault();
  6798. bool Save(File) const;
  6799. bool Save(VectorBuffer&) const;
  6800. bool SaveXML(XMLElement&) const;
  6801. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6802. void SetAnimationTime(float);
  6803. bool SetAttribute(const String&, const Variant&);
  6804. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6805. void SetAttributeAnimationSpeed(const String&, float);
  6806. void SetAttributeAnimationTime(const String&, float);
  6807. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6808. void SetInterceptNetworkUpdate(const String&, bool);
  6809. void SetSize(const BoundingBox&, uint);
  6810. // Properties:
  6811. bool animationEnabled;
  6812. /* readonly */
  6813. Array<Variant> attributeDefaults;
  6814. /* readonly */
  6815. Array<AttributeInfo> attributeInfos;
  6816. Array<Variant> attributes;
  6817. /* readonly */
  6818. String category;
  6819. bool enabled;
  6820. /* readonly */
  6821. bool enabledEffective;
  6822. /* readonly */
  6823. uint id;
  6824. /* readonly */
  6825. Node node;
  6826. /* readonly */
  6827. uint numAttributes;
  6828. /* readonly */
  6829. uint numLevels;
  6830. ObjectAnimation objectAnimation;
  6831. /* readonly */
  6832. int refs;
  6833. bool temporary;
  6834. /* readonly */
  6835. StringHash type;
  6836. /* readonly */
  6837. String typeName;
  6838. /* readonly */
  6839. int weakRefs;
  6840. /* readonly */
  6841. BoundingBox worldBoundingBox;
  6842. };
  6843. class OffMeshConnection
  6844. {
  6845. // Methods:
  6846. void ApplyAttributes();
  6847. void DrawDebugGeometry(DebugRenderer, bool);
  6848. Variant GetAttribute(const String&) const;
  6849. ValueAnimation GetAttributeAnimation(const String&) const;
  6850. float GetAttributeAnimationSpeed(const String&) const;
  6851. float GetAttributeAnimationTime(const String&) const;
  6852. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6853. Variant GetAttributeDefault(const String&) const;
  6854. bool GetInterceptNetworkUpdate(const String&) const;
  6855. bool Load(File, bool = false);
  6856. bool Load(VectorBuffer&, bool = false);
  6857. bool LoadXML(const XMLElement&, bool = false);
  6858. void MarkNetworkUpdate() const;
  6859. void Remove();
  6860. void RemoveAttributeAnimation(const String&);
  6861. void RemoveInstanceDefault();
  6862. void RemoveObjectAnimation();
  6863. void ResetToDefault();
  6864. bool Save(File) const;
  6865. bool Save(VectorBuffer&) const;
  6866. bool SaveXML(XMLElement&) const;
  6867. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6868. void SetAnimationTime(float);
  6869. bool SetAttribute(const String&, const Variant&);
  6870. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6871. void SetAttributeAnimationSpeed(const String&, float);
  6872. void SetAttributeAnimationTime(const String&, float);
  6873. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6874. void SetInterceptNetworkUpdate(const String&, bool);
  6875. // Properties:
  6876. bool animationEnabled;
  6877. uint areaID;
  6878. /* readonly */
  6879. Array<Variant> attributeDefaults;
  6880. /* readonly */
  6881. Array<AttributeInfo> attributeInfos;
  6882. Array<Variant> attributes;
  6883. bool bidirectional;
  6884. /* readonly */
  6885. String category;
  6886. bool enabled;
  6887. /* readonly */
  6888. bool enabledEffective;
  6889. Node endPoint;
  6890. /* readonly */
  6891. uint id;
  6892. uint mask;
  6893. /* readonly */
  6894. Node node;
  6895. /* readonly */
  6896. uint numAttributes;
  6897. ObjectAnimation objectAnimation;
  6898. float radius;
  6899. /* readonly */
  6900. int refs;
  6901. bool temporary;
  6902. /* readonly */
  6903. StringHash type;
  6904. /* readonly */
  6905. String typeName;
  6906. /* readonly */
  6907. int weakRefs;
  6908. };
  6909. class PackageFile
  6910. {
  6911. // Methods:
  6912. bool Exists(const String&) const;
  6913. Array<String> GetEntryNames() const;
  6914. bool Open(const String&, uint = 0) const;
  6915. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6916. bool compressed() const;
  6917. // Properties:
  6918. /* readonly */
  6919. String category;
  6920. /* readonly */
  6921. uint checksum;
  6922. /* readonly */
  6923. String name;
  6924. /* readonly */
  6925. uint numFiles;
  6926. /* readonly */
  6927. int refs;
  6928. /* readonly */
  6929. uint totalSize;
  6930. /* readonly */
  6931. StringHash type;
  6932. /* readonly */
  6933. String typeName;
  6934. /* readonly */
  6935. int weakRefs;
  6936. };
  6937. class ParticleEffect
  6938. {
  6939. // Methods:
  6940. void AddColorFrame(ColorFrame);
  6941. void AddColorTime(Color&, float);
  6942. void AddTextureFrame(TextureFrame);
  6943. void AddTextureTime(Rect&, float);
  6944. ColorFrame GetColorFrame(uint) const;
  6945. TextureFrame GetTextureFrame(uint) const;
  6946. bool Load(File);
  6947. bool Load(VectorBuffer&);
  6948. bool Load(const XMLElement&);
  6949. void RemoveColorFrame(uint);
  6950. void RemoveTextureFrame(uint);
  6951. bool Save(File) const;
  6952. bool Save(VectorBuffer&) const;
  6953. bool Save(XMLElement&) const;
  6954. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6955. void SetColorFrame(uint, ColorFrame);
  6956. void SetTextureFrame(uint, TextureFrame);
  6957. void SortColorFrames();
  6958. void SortTextureFrames();
  6959. // Properties:
  6960. float activeTime;
  6961. float animationLodBias;
  6962. /* readonly */
  6963. String category;
  6964. Vector3 constantForce;
  6965. float dampingForce;
  6966. Vector3 emitterSize;
  6967. EmitterType emitterType;
  6968. float inactiveTime;
  6969. Material material;
  6970. Vector3 maxDirection;
  6971. float maxEmissionRate;
  6972. Vector2 maxParticleSize;
  6973. float maxRotation;
  6974. float maxRotationSpeed;
  6975. float maxTimeToLive;
  6976. float maxVelocity;
  6977. /* readonly */
  6978. uint memoryUse;
  6979. Vector3 minDirection;
  6980. float minEmissionRate;
  6981. Vector2 minParticleSize;
  6982. float minRotation;
  6983. float minRotationSpeed;
  6984. float minTimeToLive;
  6985. float minVelocity;
  6986. String name;
  6987. uint numColorFrames;
  6988. uint numParticles;
  6989. uint numTextureFrames;
  6990. /* readonly */
  6991. int refs;
  6992. bool relative;
  6993. bool scaled;
  6994. float sizeAdd;
  6995. float sizeMul;
  6996. bool sorted;
  6997. /* readonly */
  6998. StringHash type;
  6999. /* readonly */
  7000. String typeName;
  7001. bool updateInvisible;
  7002. /* readonly */
  7003. uint useTimer;
  7004. /* readonly */
  7005. int weakRefs;
  7006. };
  7007. class ParticleEffect2D
  7008. {
  7009. // Methods:
  7010. bool Load(File);
  7011. bool Load(VectorBuffer&);
  7012. bool Save(File) const;
  7013. bool Save(VectorBuffer&) const;
  7014. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7015. // Properties:
  7016. /* readonly */
  7017. String category;
  7018. /* readonly */
  7019. uint memoryUse;
  7020. String name;
  7021. /* readonly */
  7022. int refs;
  7023. /* readonly */
  7024. StringHash type;
  7025. /* readonly */
  7026. String typeName;
  7027. /* readonly */
  7028. uint useTimer;
  7029. /* readonly */
  7030. int weakRefs;
  7031. };
  7032. class ParticleEmitter
  7033. {
  7034. // Methods:
  7035. void ApplyAttributes();
  7036. void ApplyEffect();
  7037. void Commit();
  7038. void DrawDebugGeometry(DebugRenderer, bool);
  7039. Variant GetAttribute(const String&) const;
  7040. ValueAnimation GetAttributeAnimation(const String&) const;
  7041. float GetAttributeAnimationSpeed(const String&) const;
  7042. float GetAttributeAnimationTime(const String&) const;
  7043. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7044. Variant GetAttributeDefault(const String&) const;
  7045. bool GetInterceptNetworkUpdate(const String&) const;
  7046. bool IsInView(Camera) const;
  7047. bool Load(File, bool = false);
  7048. bool Load(VectorBuffer&, bool = false);
  7049. bool LoadXML(const XMLElement&, bool = false);
  7050. void MarkNetworkUpdate() const;
  7051. void Remove();
  7052. void RemoveAllParticles();
  7053. void RemoveAttributeAnimation(const String&);
  7054. void RemoveInstanceDefault();
  7055. void RemoveObjectAnimation();
  7056. void Reset();
  7057. void ResetEmissionTimer();
  7058. void ResetToDefault();
  7059. bool Save(File) const;
  7060. bool Save(VectorBuffer&) const;
  7061. bool SaveXML(XMLElement&) const;
  7062. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7063. void SetAnimationTime(float);
  7064. bool SetAttribute(const String&, const Variant&);
  7065. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7066. void SetAttributeAnimationSpeed(const String&, float);
  7067. void SetAttributeAnimationTime(const String&, float);
  7068. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7069. void SetInterceptNetworkUpdate(const String&, bool);
  7070. // Properties:
  7071. bool animationEnabled;
  7072. float animationLodBias;
  7073. /* readonly */
  7074. Array<Variant> attributeDefaults;
  7075. /* readonly */
  7076. Array<AttributeInfo> attributeInfos;
  7077. Array<Variant> attributes;
  7078. /* readonly */
  7079. Array<Billboard> billboards;
  7080. /* readonly */
  7081. BoundingBox boundingBox;
  7082. bool castShadows;
  7083. /* readonly */
  7084. String category;
  7085. float drawDistance;
  7086. ParticleEffect effect;
  7087. bool emitting;
  7088. bool enabled;
  7089. /* readonly */
  7090. bool enabledEffective;
  7091. FaceCameraMode faceCameraMode;
  7092. /* readonly */
  7093. uint id;
  7094. /* readonly */
  7095. bool inView;
  7096. uint lightMask;
  7097. float lodBias;
  7098. Material material;
  7099. uint maxLights;
  7100. /* readonly */
  7101. Node node;
  7102. /* readonly */
  7103. uint numAttributes;
  7104. uint numBillboards;
  7105. uint numParticles;
  7106. ObjectAnimation objectAnimation;
  7107. bool occludee;
  7108. bool occluder;
  7109. /* readonly */
  7110. int refs;
  7111. bool relative;
  7112. bool scaled;
  7113. bool serializeParticles;
  7114. float shadowDistance;
  7115. uint shadowMask;
  7116. bool sorted;
  7117. bool temporary;
  7118. /* readonly */
  7119. StringHash type;
  7120. /* readonly */
  7121. String typeName;
  7122. uint viewMask;
  7123. /* readonly */
  7124. int weakRefs;
  7125. /* readonly */
  7126. BoundingBox worldBoundingBox;
  7127. /* readonly */
  7128. Zone zone;
  7129. uint zoneMask;
  7130. };
  7131. class ParticleEmitter2D
  7132. {
  7133. // Methods:
  7134. void ApplyAttributes();
  7135. void DrawDebugGeometry(DebugRenderer, bool);
  7136. Variant GetAttribute(const String&) const;
  7137. ValueAnimation GetAttributeAnimation(const String&) const;
  7138. float GetAttributeAnimationSpeed(const String&) const;
  7139. float GetAttributeAnimationTime(const String&) const;
  7140. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7141. Variant GetAttributeDefault(const String&) const;
  7142. bool GetInterceptNetworkUpdate(const String&) const;
  7143. bool IsInView(Camera) const;
  7144. bool Load(File, bool = false);
  7145. bool Load(VectorBuffer&, bool = false);
  7146. bool LoadXML(const XMLElement&, bool = false);
  7147. void MarkNetworkUpdate() const;
  7148. void Remove();
  7149. void RemoveAttributeAnimation(const String&);
  7150. void RemoveInstanceDefault();
  7151. void RemoveObjectAnimation();
  7152. void ResetToDefault();
  7153. bool Save(File) const;
  7154. bool Save(VectorBuffer&) const;
  7155. bool SaveXML(XMLElement&) const;
  7156. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7157. void SetAnimationTime(float);
  7158. bool SetAttribute(const String&, const Variant&);
  7159. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7160. void SetAttributeAnimationSpeed(const String&, float);
  7161. void SetAttributeAnimationTime(const String&, float);
  7162. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7163. void SetInterceptNetworkUpdate(const String&, bool);
  7164. // Properties:
  7165. bool animationEnabled;
  7166. /* readonly */
  7167. Array<Variant> attributeDefaults;
  7168. /* readonly */
  7169. Array<AttributeInfo> attributeInfos;
  7170. Array<Variant> attributes;
  7171. BlendMode blendMode;
  7172. /* readonly */
  7173. BoundingBox boundingBox;
  7174. bool castShadows;
  7175. /* readonly */
  7176. String category;
  7177. float drawDistance;
  7178. ParticleEffect2D effect;
  7179. bool enabled;
  7180. /* readonly */
  7181. bool enabledEffective;
  7182. /* readonly */
  7183. uint id;
  7184. /* readonly */
  7185. bool inView;
  7186. int layer;
  7187. uint lightMask;
  7188. float lodBias;
  7189. uint maxLights;
  7190. /* readonly */
  7191. Node node;
  7192. /* readonly */
  7193. uint numAttributes;
  7194. ObjectAnimation objectAnimation;
  7195. bool occludee;
  7196. bool occluder;
  7197. int orderInLayer;
  7198. /* readonly */
  7199. int refs;
  7200. float shadowDistance;
  7201. uint shadowMask;
  7202. Sprite2D sprite;
  7203. bool temporary;
  7204. /* readonly */
  7205. StringHash type;
  7206. /* readonly */
  7207. String typeName;
  7208. uint viewMask;
  7209. /* readonly */
  7210. int weakRefs;
  7211. /* readonly */
  7212. BoundingBox worldBoundingBox;
  7213. uint zoneMask;
  7214. };
  7215. class Pass
  7216. {
  7217. // Properties:
  7218. bool alphaMask;
  7219. BlendMode blendMode;
  7220. CompareMode depthTestMode;
  7221. bool depthWrite;
  7222. bool desktop;
  7223. PassLightingMode lightingMode;
  7224. String pixelShader;
  7225. String pixelShaderDefines;
  7226. /* readonly */
  7227. int refs;
  7228. String vertexShader;
  7229. String vertexShaderDefines;
  7230. /* readonly */
  7231. int weakRefs;
  7232. };
  7233. class PhysicsRaycastResult
  7234. {
  7235. // Properties:
  7236. /* readonly */
  7237. RigidBody body;
  7238. float distance;
  7239. Vector3 normal;
  7240. Vector3 position;
  7241. };
  7242. class PhysicsRaycastResult2D
  7243. {
  7244. // Properties:
  7245. /* readonly */
  7246. RigidBody2D body;
  7247. float distance;
  7248. Vector2 normal;
  7249. Vector2 position;
  7250. };
  7251. class PhysicsWorld
  7252. {
  7253. // Methods:
  7254. void ApplyAttributes();
  7255. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7256. void DrawDebugGeometry(DebugRenderer, bool);
  7257. void DrawDebugGeometry(bool);
  7258. Variant GetAttribute(const String&) const;
  7259. ValueAnimation GetAttributeAnimation(const String&) const;
  7260. float GetAttributeAnimationSpeed(const String&) const;
  7261. float GetAttributeAnimationTime(const String&) const;
  7262. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7263. Variant GetAttributeDefault(const String&) const;
  7264. bool GetInterceptNetworkUpdate(const String&) const;
  7265. Array<RigidBody> GetRigidBodies(RigidBody);
  7266. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7267. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7268. bool Load(File, bool = false);
  7269. bool Load(VectorBuffer&, bool = false);
  7270. bool LoadXML(const XMLElement&, bool = false);
  7271. void MarkNetworkUpdate() const;
  7272. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7273. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7274. void Remove();
  7275. void RemoveAttributeAnimation(const String&);
  7276. void RemoveCachedGeometry(Model);
  7277. void RemoveInstanceDefault();
  7278. void RemoveObjectAnimation();
  7279. void ResetToDefault();
  7280. bool Save(File) const;
  7281. bool Save(VectorBuffer&) const;
  7282. bool SaveXML(XMLElement&) const;
  7283. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7284. void SetAnimationTime(float);
  7285. bool SetAttribute(const String&, const Variant&);
  7286. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7287. void SetAttributeAnimationSpeed(const String&, float);
  7288. void SetAttributeAnimationTime(const String&, float);
  7289. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7290. void SetInterceptNetworkUpdate(const String&, bool);
  7291. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7292. void Update(float);
  7293. void UpdateCollisions();
  7294. // Properties:
  7295. bool animationEnabled;
  7296. /* readonly */
  7297. Array<Variant> attributeDefaults;
  7298. /* readonly */
  7299. Array<AttributeInfo> attributeInfos;
  7300. Array<Variant> attributes;
  7301. /* readonly */
  7302. String category;
  7303. bool enabled;
  7304. /* readonly */
  7305. bool enabledEffective;
  7306. int fps;
  7307. Vector3 gravity;
  7308. /* readonly */
  7309. uint id;
  7310. bool internalEdge;
  7311. bool interpolation;
  7312. int maxSubSteps;
  7313. /* readonly */
  7314. Node node;
  7315. /* readonly */
  7316. uint numAttributes;
  7317. int numIterations;
  7318. ObjectAnimation objectAnimation;
  7319. /* readonly */
  7320. int refs;
  7321. bool splitImpulse;
  7322. bool temporary;
  7323. /* readonly */
  7324. StringHash type;
  7325. /* readonly */
  7326. String typeName;
  7327. bool updateEnabled;
  7328. /* readonly */
  7329. int weakRefs;
  7330. };
  7331. class PhysicsWorld2D
  7332. {
  7333. // Methods:
  7334. void ApplyAttributes();
  7335. void DrawDebugGeometry() const;
  7336. void DrawDebugGeometry(DebugRenderer, bool);
  7337. Variant GetAttribute(const String&) const;
  7338. ValueAnimation GetAttributeAnimation(const String&) const;
  7339. float GetAttributeAnimationSpeed(const String&) const;
  7340. float GetAttributeAnimationTime(const String&) const;
  7341. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7342. Variant GetAttributeDefault(const String&) const;
  7343. bool GetInterceptNetworkUpdate(const String&) const;
  7344. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7345. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7346. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7347. bool Load(File, bool = false);
  7348. bool Load(VectorBuffer&, bool = false);
  7349. bool LoadXML(const XMLElement&, bool = false);
  7350. void MarkNetworkUpdate() const;
  7351. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7352. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7353. void Remove();
  7354. void RemoveAttributeAnimation(const String&);
  7355. void RemoveInstanceDefault();
  7356. void RemoveObjectAnimation();
  7357. void ResetToDefault();
  7358. bool Save(File) const;
  7359. bool Save(VectorBuffer&) const;
  7360. bool SaveXML(XMLElement&) const;
  7361. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7362. void SetAnimationTime(float);
  7363. bool SetAttribute(const String&, const Variant&);
  7364. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7365. void SetAttributeAnimationSpeed(const String&, float);
  7366. void SetAttributeAnimationTime(const String&, float);
  7367. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7368. void SetInterceptNetworkUpdate(const String&, bool);
  7369. // Properties:
  7370. bool allowSleeping;
  7371. bool animationEnabled;
  7372. /* readonly */
  7373. Array<Variant> attributeDefaults;
  7374. /* readonly */
  7375. Array<AttributeInfo> attributeInfos;
  7376. Array<Variant> attributes;
  7377. bool autoClearForces;
  7378. /* readonly */
  7379. String category;
  7380. bool continuousPhysics;
  7381. bool drawAabb;
  7382. bool drawCenterOfMass;
  7383. bool drawJoint;
  7384. bool drawPair;
  7385. bool drawShape;
  7386. bool enabled;
  7387. /* readonly */
  7388. bool enabledEffective;
  7389. Vector2 gravity;
  7390. /* readonly */
  7391. uint id;
  7392. /* readonly */
  7393. Node node;
  7394. /* readonly */
  7395. uint numAttributes;
  7396. ObjectAnimation objectAnimation;
  7397. uint positionIterations;
  7398. /* readonly */
  7399. int refs;
  7400. bool subStepping;
  7401. bool temporary;
  7402. /* readonly */
  7403. StringHash type;
  7404. /* readonly */
  7405. String typeName;
  7406. bool updateEnabled;
  7407. uint velocityIterations;
  7408. bool warmStarting;
  7409. /* readonly */
  7410. int weakRefs;
  7411. };
  7412. class Plane
  7413. {
  7414. // Methods:
  7415. void Define(const Vector3&, const Vector3&);
  7416. void Define(const Vector3&, const Vector3&, const Vector3&);
  7417. void Define(const Vector4&);
  7418. float Distance(const Vector3&) const;
  7419. Vector3 Project(const Vector3&) const;
  7420. Vector3 Reflect(const Vector3&) const;
  7421. Vector4 ToVector4() const;
  7422. void Transform(const Matrix3&);
  7423. void Transform(const Matrix3x4&);
  7424. void Transform(const Matrix4&);
  7425. Plane Transformed(const Matrix3&) const;
  7426. Plane Transformed(const Matrix3x4&) const;
  7427. Plane Transformed(const Matrix4&) const;
  7428. // Properties:
  7429. Vector3 absNormal;
  7430. float d;
  7431. Vector3 normal;
  7432. /* readonly */
  7433. Matrix3x4 reflectionMatrix;
  7434. };
  7435. class Polyhedron
  7436. {
  7437. // Methods:
  7438. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7439. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7440. void AddFace(const Array<Vector3>);
  7441. void Clear();
  7442. void Clip(const BoundingBox&);
  7443. void Clip(const Frustum&);
  7444. void Define(const BoundingBox&);
  7445. void Define(const Frustum&);
  7446. void Transform(const Matrix3&);
  7447. void Transform(const Matrix3x4&);
  7448. Polyhedron Transformed(const Matrix3&) const;
  7449. Polyhedron Transformed(const Matrix3x4&) const;
  7450. // Properties:
  7451. /* readonly */
  7452. Array<Array<Vector3>> face;
  7453. /* readonly */
  7454. uint numFaces;
  7455. };
  7456. class PropertySet2D
  7457. {
  7458. // Methods:
  7459. bool HasProperty(const String&) const;
  7460. const String& GetProperty(const String&) const;
  7461. // Properties:
  7462. /* readonly */
  7463. int refs;
  7464. /* readonly */
  7465. int weakRefs;
  7466. };
  7467. class Quaternion
  7468. {
  7469. // Methods:
  7470. float DotProduct(const Quaternion&) const;
  7471. bool Equals(const Quaternion&) const;
  7472. void FromAngleAxis(float, const Vector3&);
  7473. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7474. void FromEulerAngles(float, float, float);
  7475. bool FromLookRotation(const Vector3&, const Vector3&);
  7476. void FromRotationTo(const Vector3&, const Vector3&);
  7477. Quaternion Inverse() const;
  7478. bool IsNaN() const;
  7479. Quaternion Nlerp(Quaternion, float, bool) const;
  7480. void Normalize();
  7481. Quaternion Normalized() const;
  7482. Quaternion Slerp(Quaternion, float) const;
  7483. String ToString() const;
  7484. // Properties:
  7485. /* readonly */
  7486. Vector3 eulerAngles;
  7487. /* readonly */
  7488. float pitch;
  7489. /* readonly */
  7490. float roll;
  7491. float w;
  7492. float x;
  7493. float y;
  7494. /* readonly */
  7495. float yaw;
  7496. float z;
  7497. };
  7498. class Ray
  7499. {
  7500. // Methods:
  7501. Vector3 ClosestPoint(const Ray&) const;
  7502. void Define(const Vector3&, const Vector3&);
  7503. float Distance(const Vector3&) const;
  7504. float HitDistance(const BoundingBox&) const;
  7505. float HitDistance(const Frustum&, bool = true) const;
  7506. float HitDistance(const Plane&) const;
  7507. float HitDistance(const Sphere&) const;
  7508. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7509. Vector3 Project(const Vector3&) const;
  7510. Ray Transformed(const Matrix3x4&) const;
  7511. // Properties:
  7512. Vector3 direction;
  7513. Vector3 origin;
  7514. };
  7515. class RayQueryResult
  7516. {
  7517. // Properties:
  7518. float distance;
  7519. /* readonly */
  7520. Drawable drawable;
  7521. /* readonly */
  7522. Node node;
  7523. Vector3 normal;
  7524. Vector3 position;
  7525. uint subObject;
  7526. Vector2 textureUV;
  7527. };
  7528. class Rect
  7529. {
  7530. // Methods:
  7531. void Clear();
  7532. void Clip(const Rect&);
  7533. void Define(const Vector2&);
  7534. void Define(const Vector2&, const Vector2&);
  7535. bool Defined() const;
  7536. bool Equals(const Rect&) const;
  7537. Intersection IsInside(const Vector2&) const;
  7538. void Merge(const Rect&);
  7539. void Merge(const Vector2&);
  7540. Vector4 ToVector4() const;
  7541. // Properties:
  7542. float bottom;
  7543. /* readonly */
  7544. Vector2 center;
  7545. /* readonly */
  7546. Vector2 halfSize;
  7547. float left;
  7548. Vector2 max;
  7549. Vector2 min;
  7550. float right;
  7551. /* readonly */
  7552. Vector2 size;
  7553. float top;
  7554. };
  7555. class RefCounted
  7556. {
  7557. // Properties:
  7558. /* readonly */
  7559. int refs;
  7560. /* readonly */
  7561. int weakRefs;
  7562. };
  7563. class RenderPath
  7564. {
  7565. // Methods:
  7566. void AddCommand(const RenderPathCommand&);
  7567. void AddRenderTarget(const RenderTargetInfo&);
  7568. bool Append(XMLFile);
  7569. RenderPath Clone();
  7570. void InsertCommand(uint, const RenderPathCommand&);
  7571. bool Load(XMLFile);
  7572. void RemoveCommand(uint);
  7573. void RemoveCommands(const String&);
  7574. void RemoveRenderTarget(const String&);
  7575. void RemoveRenderTarget(uint);
  7576. void RemoveRenderTargts(const String&);
  7577. void SetEnabled(const String&, bool);
  7578. void ToggleEnabled(const String&);
  7579. // Properties:
  7580. Array<RenderPathCommand> commands;
  7581. /* readonly */
  7582. uint numCommands;
  7583. /* readonly */
  7584. uint numRenderTargets;
  7585. /* readonly */
  7586. int refs;
  7587. Array<RenderTargetInfo> renderTargets;
  7588. Array<Variant> shaderParameters;
  7589. /* readonly */
  7590. int weakRefs;
  7591. };
  7592. class RenderPathCommand
  7593. {
  7594. // Methods:
  7595. void RemoveShaderParameter(const String&);
  7596. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  7597. // Properties:
  7598. BlendMode blendMode;
  7599. Color clearColor;
  7600. float clearDepth;
  7601. uint clearFlags;
  7602. uint clearStencil;
  7603. String depthStencilName;
  7604. bool enabled;
  7605. bool markToStencil;
  7606. String metadata;
  7607. uint numOutputs;
  7608. Array<CubeMapFace> outputFaces;
  7609. Array<String> outputNames;
  7610. String pass;
  7611. String pixelShaderDefines;
  7612. String pixelShaderName;
  7613. Array<Variant> shaderParameters;
  7614. RenderCommandSortMode sortMode;
  7615. String tag;
  7616. Array<String> textureNames;
  7617. RenderCommandType type;
  7618. bool useFogColor;
  7619. bool useLitBase;
  7620. bool vertexLights;
  7621. String vertexShaderDefines;
  7622. String vertexShaderName;
  7623. };
  7624. class RenderSurface
  7625. {
  7626. // Methods:
  7627. void QueueUpdate();
  7628. // Properties:
  7629. /* readonly */
  7630. int height;
  7631. RenderSurface linkedDepthStencil;
  7632. RenderSurface linkedRenderTarget;
  7633. uint numViewports;
  7634. /* readonly */
  7635. Texture parentTexture;
  7636. RenderSurfaceUpdateMode updateMode;
  7637. /* readonly */
  7638. TextureUsage usage;
  7639. Array<Viewport> viewports;
  7640. /* readonly */
  7641. int width;
  7642. };
  7643. class RenderTargetInfo
  7644. {
  7645. // Properties:
  7646. bool cubemap;
  7647. bool enabled;
  7648. bool filtered;
  7649. uint format;
  7650. String name;
  7651. bool persistent;
  7652. bool sRGB;
  7653. Vector2 size;
  7654. RenderTargetSizeMode sizeMode;
  7655. String tag;
  7656. };
  7657. class Renderer
  7658. {
  7659. // Methods:
  7660. void DrawDebugGeometry(bool) const;
  7661. void ReloadShaders() const;
  7662. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7663. void SetDefaultRenderPath(XMLFile);
  7664. // Properties:
  7665. /* readonly */
  7666. String category;
  7667. /* readonly */
  7668. Material defaultLightRamp;
  7669. /* readonly */
  7670. Material defaultLightSpot;
  7671. /* readonly */
  7672. Material defaultMaterial;
  7673. RenderPath defaultRenderPath;
  7674. /* readonly */
  7675. Zone defaultZone;
  7676. bool drawShadows;
  7677. bool dynamicInstancing;
  7678. bool hdrRendering;
  7679. int materialQuality;
  7680. int maxOccluderTriangles;
  7681. int maxShadowMaps;
  7682. int maxSortedInstances;
  7683. int minInstances;
  7684. float mobileShadowBiasAdd;
  7685. float mobileShadowBiasMul;
  7686. /* readonly */
  7687. uint numBatches;
  7688. /* readonly */
  7689. Array<uint> numGeometries;
  7690. /* readonly */
  7691. Array<uint> numLights;
  7692. /* readonly */
  7693. Array<uint> numOccluders;
  7694. /* readonly */
  7695. uint numPrimitives;
  7696. /* readonly */
  7697. Array<uint> numShadowMaps;
  7698. uint numViewports;
  7699. /* readonly */
  7700. uint numViews;
  7701. float occluderSizeThreshold;
  7702. int occlusionBufferSize;
  7703. /* readonly */
  7704. int refs;
  7705. bool reuseShadowMaps;
  7706. int shadowMapSize;
  7707. int shadowQuality;
  7708. bool specularLighting;
  7709. int textureAnisotropy;
  7710. TextureFilterMode textureFilterMode;
  7711. int textureQuality;
  7712. bool threadedOcclusion;
  7713. /* readonly */
  7714. StringHash type;
  7715. /* readonly */
  7716. String typeName;
  7717. Array<Viewport> viewports;
  7718. /* readonly */
  7719. int weakRefs;
  7720. };
  7721. class Resource
  7722. {
  7723. // Methods:
  7724. bool Load(File);
  7725. bool Load(VectorBuffer&);
  7726. bool Save(File) const;
  7727. bool Save(VectorBuffer&) const;
  7728. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7729. // Properties:
  7730. /* readonly */
  7731. String category;
  7732. /* readonly */
  7733. uint memoryUse;
  7734. String name;
  7735. /* readonly */
  7736. int refs;
  7737. /* readonly */
  7738. StringHash type;
  7739. /* readonly */
  7740. String typeName;
  7741. /* readonly */
  7742. uint useTimer;
  7743. /* readonly */
  7744. int weakRefs;
  7745. };
  7746. class ResourceCache
  7747. {
  7748. // Methods:
  7749. bool AddManualResource(Resource);
  7750. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  7751. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  7752. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  7753. bool BackgroundLoadResource(const String&, const String&, bool = true);
  7754. bool Exists(const String&) const;
  7755. Resource GetExistingResource(StringHash, const String&);
  7756. Resource GetExistingResource(const String&, const String&);
  7757. File GetFile(const String&);
  7758. String GetPreferredResourceDir(const String&) const;
  7759. Resource GetResource(StringHash, const String&, bool = true);
  7760. Resource GetResource(const String&, const String&, bool = true);
  7761. String GetResourceFileName(const String&) const;
  7762. void ReleaseAllResources(bool = false);
  7763. void ReleaseResource(const String&, const String&, bool = false);
  7764. void ReleaseResources(StringHash, bool = false);
  7765. void ReleaseResources(const String&, bool = false);
  7766. void ReleaseResources(const String&, const String&, bool = false);
  7767. bool ReloadResource(Resource);
  7768. void ReloadResourceWithDependencies(const String&);
  7769. void RemovePackageFile(PackageFile, bool = true, bool = false);
  7770. void RemovePackageFile(const String&, bool = true, bool = false);
  7771. void RemoveResourceDir(const String&);
  7772. String SanitateResourceDirName(const String&) const;
  7773. String SanitateResourceName(const String&) const;
  7774. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7775. // Properties:
  7776. bool autoReloadResources;
  7777. /* readonly */
  7778. String category;
  7779. int finishBackgroundResourcesMs;
  7780. Array<uint64> memoryBudget;
  7781. /* readonly */
  7782. Array<uint64> memoryUse;
  7783. /* readonly */
  7784. uint numBackgroundLoadResources;
  7785. /* readonly */
  7786. Array<PackageFile> packageFiles;
  7787. /* readonly */
  7788. int refs;
  7789. /* readonly */
  7790. Array<String> resourceDirs;
  7791. bool returnFailedResources;
  7792. /* readonly */
  7793. bool seachPackagesFirst;
  7794. /* writeonly */
  7795. bool searchPackagesFirst;
  7796. /* readonly */
  7797. uint64 totalMemoryUse;
  7798. /* readonly */
  7799. StringHash type;
  7800. /* readonly */
  7801. String typeName;
  7802. /* readonly */
  7803. int weakRefs;
  7804. };
  7805. class ResourceRef
  7806. {
  7807. // Properties:
  7808. String name;
  7809. StringHash type;
  7810. };
  7811. class ResourceRefList
  7812. {
  7813. // Methods:
  7814. void Resize(uint);
  7815. // Properties:
  7816. /* readonly */
  7817. bool empty;
  7818. /* readonly */
  7819. uint length;
  7820. Array<String> names;
  7821. StringHash type;
  7822. };
  7823. class RigidBody
  7824. {
  7825. // Methods:
  7826. void Activate();
  7827. void ApplyAttributes();
  7828. void ApplyForce(const Vector3&);
  7829. void ApplyForce(const Vector3&, const Vector3&);
  7830. void ApplyImpulse(const Vector3&);
  7831. void ApplyImpulse(const Vector3&, const Vector3&);
  7832. void ApplyTorque(const Vector3&);
  7833. void ApplyTorqueImpulse(const Vector3&);
  7834. void DisableMassUpdate();
  7835. void DrawDebugGeometry(DebugRenderer, bool);
  7836. void EnableMassUpdate();
  7837. Variant GetAttribute(const String&) const;
  7838. ValueAnimation GetAttributeAnimation(const String&) const;
  7839. float GetAttributeAnimationSpeed(const String&) const;
  7840. float GetAttributeAnimationTime(const String&) const;
  7841. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7842. Variant GetAttributeDefault(const String&) const;
  7843. bool GetInterceptNetworkUpdate(const String&) const;
  7844. Vector3 GetVelocityAtPoint(const Vector3&) const;
  7845. bool Load(File, bool = false);
  7846. bool Load(VectorBuffer&, bool = false);
  7847. bool LoadXML(const XMLElement&, bool = false);
  7848. void MarkNetworkUpdate() const;
  7849. void ReAddBodyToWorld();
  7850. void Remove();
  7851. void RemoveAttributeAnimation(const String&);
  7852. void RemoveInstanceDefault();
  7853. void RemoveObjectAnimation();
  7854. void ResetForces();
  7855. void ResetToDefault();
  7856. bool Save(File) const;
  7857. bool Save(VectorBuffer&) const;
  7858. bool SaveXML(XMLElement&) const;
  7859. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7860. void SetAnimationTime(float);
  7861. bool SetAttribute(const String&, const Variant&);
  7862. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7863. void SetAttributeAnimationSpeed(const String&, float);
  7864. void SetAttributeAnimationTime(const String&, float);
  7865. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7866. void SetCollisionLayerAndMask(uint, uint);
  7867. void SetInterceptNetworkUpdate(const String&, bool);
  7868. void SetTransform(const Vector3&, const Quaternion&);
  7869. // Properties:
  7870. /* readonly */
  7871. bool active;
  7872. float angularDamping;
  7873. Vector3 angularFactor;
  7874. float angularRestThreshold;
  7875. Vector3 angularVelocity;
  7876. bool animationEnabled;
  7877. Vector3 anisotropicFriction;
  7878. /* readonly */
  7879. Array<Variant> attributeDefaults;
  7880. /* readonly */
  7881. Array<AttributeInfo> attributeInfos;
  7882. Array<Variant> attributes;
  7883. /* readonly */
  7884. String category;
  7885. float ccdMotionThreshold;
  7886. float ccdRadius;
  7887. /* readonly */
  7888. Vector3 centerOfMass;
  7889. /* readonly */
  7890. Array<RigidBody> collidingBodies;
  7891. CollisionEventMode collisionEventMode;
  7892. uint collisionLayer;
  7893. uint collisionMask;
  7894. float contactProcessingThreshold;
  7895. bool enabled;
  7896. /* readonly */
  7897. bool enabledEffective;
  7898. float friction;
  7899. Vector3 gravityOverride;
  7900. /* readonly */
  7901. uint id;
  7902. bool kinematic;
  7903. float linearDamping;
  7904. Vector3 linearFactor;
  7905. float linearRestThreshold;
  7906. Vector3 linearVelocity;
  7907. float mass;
  7908. /* readonly */
  7909. Node node;
  7910. /* readonly */
  7911. uint numAttributes;
  7912. ObjectAnimation objectAnimation;
  7913. Vector3 position;
  7914. /* readonly */
  7915. int refs;
  7916. float restitution;
  7917. float rollingFriction;
  7918. Quaternion rotation;
  7919. bool temporary;
  7920. bool trigger;
  7921. /* readonly */
  7922. StringHash type;
  7923. /* readonly */
  7924. String typeName;
  7925. bool useGravity;
  7926. /* readonly */
  7927. int weakRefs;
  7928. };
  7929. class RigidBody2D
  7930. {
  7931. // Methods:
  7932. void ApplyAngularImpulse(float, bool);
  7933. void ApplyAttributes();
  7934. void ApplyForce(const Vector2&, const Vector2&, bool);
  7935. void ApplyForceToCenter(const Vector2&, bool);
  7936. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  7937. void ApplyTorque(float, bool);
  7938. void DrawDebugGeometry(DebugRenderer, bool);
  7939. Variant GetAttribute(const String&) const;
  7940. ValueAnimation GetAttributeAnimation(const String&) const;
  7941. float GetAttributeAnimationSpeed(const String&) const;
  7942. float GetAttributeAnimationTime(const String&) const;
  7943. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7944. Variant GetAttributeDefault(const String&) const;
  7945. bool GetInterceptNetworkUpdate(const String&) const;
  7946. bool Load(File, bool = false);
  7947. bool Load(VectorBuffer&, bool = false);
  7948. bool LoadXML(const XMLElement&, bool = false);
  7949. void MarkNetworkUpdate() const;
  7950. void Remove();
  7951. void RemoveAttributeAnimation(const String&);
  7952. void RemoveInstanceDefault();
  7953. void RemoveObjectAnimation();
  7954. void ResetToDefault();
  7955. bool Save(File) const;
  7956. bool Save(VectorBuffer&) const;
  7957. bool SaveXML(XMLElement&) const;
  7958. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7959. void SetAnimationTime(float);
  7960. bool SetAttribute(const String&, const Variant&);
  7961. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7962. void SetAttributeAnimationSpeed(const String&, float);
  7963. void SetAttributeAnimationTime(const String&, float);
  7964. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7965. void SetInterceptNetworkUpdate(const String&, bool);
  7966. // Properties:
  7967. bool allowSleep;
  7968. float angularDamping;
  7969. bool animationEnabled;
  7970. /* readonly */
  7971. Array<Variant> attributeDefaults;
  7972. /* readonly */
  7973. Array<AttributeInfo> attributeInfos;
  7974. Array<Variant> attributes;
  7975. bool awake;
  7976. BodyType2D bodyType;
  7977. bool bullet;
  7978. /* readonly */
  7979. String category;
  7980. bool enabled;
  7981. /* readonly */
  7982. bool enabledEffective;
  7983. bool fixedRotation;
  7984. float gravityScale;
  7985. /* readonly */
  7986. uint id;
  7987. float inertia;
  7988. float linearDamping;
  7989. Vector2 linearVelocity;
  7990. float mass;
  7991. Vector2 massCenter;
  7992. /* readonly */
  7993. Node node;
  7994. /* readonly */
  7995. uint numAttributes;
  7996. ObjectAnimation objectAnimation;
  7997. /* readonly */
  7998. int refs;
  7999. bool temporary;
  8000. /* readonly */
  8001. StringHash type;
  8002. /* readonly */
  8003. String typeName;
  8004. bool useFixtureMass;
  8005. /* readonly */
  8006. int weakRefs;
  8007. };
  8008. class Scene
  8009. {
  8010. // Methods:
  8011. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8012. void AddRequiredPackageFile(PackageFile);
  8013. void ApplyAttributes();
  8014. void Clear(bool = true, bool = true);
  8015. void ClearRequiredPackageFiles();
  8016. Component CloneComponent(Component, CreateMode, uint = 0);
  8017. Component CloneComponent(Component, uint = 0);
  8018. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8019. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8020. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8021. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8022. Variant GetAttribute(const String&) const;
  8023. ValueAnimation GetAttributeAnimation(const String&) const;
  8024. float GetAttributeAnimationSpeed(const String&) const;
  8025. float GetAttributeAnimationTime(const String&) const;
  8026. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8027. Variant GetAttributeDefault(const String&) const;
  8028. Node GetChild(const String&, bool = false) const;
  8029. Array<Node> GetChildren(bool = false) const;
  8030. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8031. Array<Node> GetChildrenWithScript(bool = false) const;
  8032. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8033. Component GetComponent(const String&, bool = false) const;
  8034. Component GetComponent(uint) const;
  8035. Array<Component> GetComponents() const;
  8036. Array<Component> GetComponents(const String&, bool = false) const;
  8037. bool GetInterceptNetworkUpdate(const String&) const;
  8038. Node GetNode(uint) const;
  8039. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8040. Component GetParentComponent(const String&, bool = false) const;
  8041. ScriptObject GetScriptObject() const;
  8042. ScriptObject GetScriptObject(const String&) const;
  8043. bool HasComponent(const String&) const;
  8044. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8045. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8046. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8047. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8048. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8049. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8050. bool Load(File, bool = false);
  8051. bool Load(VectorBuffer&, bool = false);
  8052. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8053. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8054. bool LoadXML(File);
  8055. bool LoadXML(VectorBuffer&);
  8056. bool LoadXML(const XMLElement&, bool = false);
  8057. Vector3 LocalToWorld(const Vector3&) const;
  8058. Vector3 LocalToWorld(const Vector4&) const;
  8059. Vector2 LocalToWorld2D(const Vector2&) const;
  8060. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8061. void MarkNetworkUpdate() const;
  8062. void Pitch(float, TransformSpace = TS_LOCAL);
  8063. void RegisterVar(const String&);
  8064. void Remove();
  8065. void RemoveAllChildren();
  8066. void RemoveAllComponents();
  8067. void RemoveAttributeAnimation(const String&);
  8068. void RemoveChild(Node);
  8069. void RemoveChildren(bool, bool, bool);
  8070. void RemoveComponent(Component);
  8071. void RemoveComponent(const String&);
  8072. void RemoveComponents(bool, bool);
  8073. void RemoveComponents(const String&);
  8074. void RemoveInstanceDefault();
  8075. void RemoveObjectAnimation();
  8076. void ResetToDefault();
  8077. void Roll(float, TransformSpace = TS_LOCAL);
  8078. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8079. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8080. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8081. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8082. bool Save(File) const;
  8083. bool Save(VectorBuffer&) const;
  8084. bool SaveXML(File, const String& = "\t");
  8085. bool SaveXML(VectorBuffer&, const String& = "\t");
  8086. bool SaveXML(XMLElement&) const;
  8087. void Scale(const Vector3&);
  8088. void Scale(float);
  8089. void Scale2D(const Vector2&);
  8090. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8091. void SetAnimationTime(float);
  8092. bool SetAttribute(const String&, const Variant&);
  8093. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8094. void SetAttributeAnimationSpeed(const String&, float);
  8095. void SetAttributeAnimationTime(const String&, float);
  8096. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8097. void SetInterceptNetworkUpdate(const String&, bool);
  8098. void SetPosition2D(float, float);
  8099. void SetScale(float);
  8100. void SetScale2D(float, float);
  8101. void SetTransform(const Vector3&, const Quaternion&);
  8102. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8103. void SetTransform(const Vector3&, const Quaternion&, float);
  8104. void SetTransform2D(const Vector2&, float);
  8105. void SetTransform2D(const Vector2&, float, const Vector2&);
  8106. void SetTransform2D(const Vector2&, float, float);
  8107. void SetWorldTransform(const Vector3&, const Quaternion&);
  8108. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8109. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8110. void SetWorldTransform2D(const Vector2&, float);
  8111. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8112. void SetWorldTransform2D(const Vector2&, float, float);
  8113. void StopAsyncLoading();
  8114. const String& GetVarName(StringHash) const;
  8115. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8116. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8117. void UnregisterAllVars(const String&);
  8118. void UnregisterVar(const String&);
  8119. void Update(float);
  8120. Vector3 WorldToLocal(const Vector3&) const;
  8121. Vector3 WorldToLocal(const Vector4&) const;
  8122. Vector2 WorldToLocal2D(const Vector2&) const;
  8123. void Yaw(float, TransformSpace = TS_LOCAL);
  8124. // Properties:
  8125. bool animationEnabled;
  8126. /* readonly */
  8127. LoadMode asyncLoadMode;
  8128. /* readonly */
  8129. bool asyncLoading;
  8130. int asyncLoadingMs;
  8131. /* readonly */
  8132. float asyncProgress;
  8133. /* readonly */
  8134. Array<Variant> attributeDefaults;
  8135. /* readonly */
  8136. Array<AttributeInfo> attributeInfos;
  8137. Array<Variant> attributes;
  8138. /* readonly */
  8139. String category;
  8140. /* readonly */
  8141. uint checksum;
  8142. /* readonly */
  8143. Array<Node> children;
  8144. /* readonly */
  8145. Array<Component> components;
  8146. /* readonly */
  8147. DebugRenderer debugRenderer;
  8148. Vector3 direction;
  8149. float elapsedTime;
  8150. /* readonly */
  8151. String fileName;
  8152. /* readonly */
  8153. uint id;
  8154. String name;
  8155. /* readonly */
  8156. uint numAllChildren;
  8157. /* readonly */
  8158. uint numAttributes;
  8159. /* readonly */
  8160. uint numChildren;
  8161. /* readonly */
  8162. uint numComponents;
  8163. ObjectAnimation objectAnimation;
  8164. /* readonly */
  8165. Octree octree;
  8166. Node parent;
  8167. /* readonly */
  8168. PhysicsWorld physicsWorld;
  8169. /* readonly */
  8170. PhysicsWorld2D physicsWorld2D;
  8171. Vector3 position;
  8172. Vector2 position2D;
  8173. /* readonly */
  8174. int refs;
  8175. /* readonly */
  8176. Array<PackageFile> requiredPackageFiles;
  8177. /* readonly */
  8178. Vector3 right;
  8179. Quaternion rotation;
  8180. float rotation2D;
  8181. Vector3 scale;
  8182. Vector2 scale2D;
  8183. /* readonly */
  8184. ScriptObject scriptObject;
  8185. float smoothingConstant;
  8186. float snapThreshold;
  8187. bool temporary;
  8188. float timeScale;
  8189. /* readonly */
  8190. Matrix3x4 transform;
  8191. /* readonly */
  8192. StringHash type;
  8193. /* readonly */
  8194. String typeName;
  8195. /* readonly */
  8196. Vector3 up;
  8197. bool updateEnabled;
  8198. /* readonly */
  8199. VariantMap vars;
  8200. /* readonly */
  8201. int weakRefs;
  8202. Vector3 worldDirection;
  8203. Vector3 worldPosition;
  8204. Vector2 worldPosition2D;
  8205. /* readonly */
  8206. Vector3 worldRight;
  8207. Quaternion worldRotation;
  8208. float worldRotation2D;
  8209. Vector3 worldScale;
  8210. Vector2 worldScale2D;
  8211. /* readonly */
  8212. Matrix3x4 worldTransform;
  8213. /* readonly */
  8214. Vector3 worldUp;
  8215. };
  8216. class Script
  8217. {
  8218. // Methods:
  8219. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8220. bool Execute(const String&);
  8221. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8222. // Properties:
  8223. /* readonly */
  8224. String category;
  8225. Scene defaultScene;
  8226. ScriptFile defaultScriptFile;
  8227. bool executeConsoleCommands;
  8228. /* readonly */
  8229. int refs;
  8230. /* readonly */
  8231. StringHash type;
  8232. /* readonly */
  8233. String typeName;
  8234. /* readonly */
  8235. int weakRefs;
  8236. };
  8237. class ScriptFile
  8238. {
  8239. // Methods:
  8240. void ClearDelayedExecute(const String& = String ( ));
  8241. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8242. bool Execute(const String&, const Array<Variant> = null);
  8243. bool Load(File);
  8244. bool Load(VectorBuffer&);
  8245. bool Save(File) const;
  8246. bool Save(VectorBuffer&) const;
  8247. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8248. // Properties:
  8249. /* readonly */
  8250. String category;
  8251. /* readonly */
  8252. bool compiled;
  8253. /* readonly */
  8254. uint memoryUse;
  8255. String name;
  8256. /* readonly */
  8257. int refs;
  8258. /* readonly */
  8259. StringHash type;
  8260. /* readonly */
  8261. String typeName;
  8262. /* readonly */
  8263. uint useTimer;
  8264. /* readonly */
  8265. int weakRefs;
  8266. };
  8267. class ScriptInstance
  8268. {
  8269. // Methods:
  8270. void ApplyAttributes();
  8271. void ClearDelayedExecute(const String& = String ( ));
  8272. bool CreateObject(ScriptFile, const String&);
  8273. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8274. void DrawDebugGeometry(DebugRenderer, bool);
  8275. bool Execute(const String&, const Array<Variant> = null);
  8276. Variant GetAttribute(const String&) const;
  8277. ValueAnimation GetAttributeAnimation(const String&) const;
  8278. float GetAttributeAnimationSpeed(const String&) const;
  8279. float GetAttributeAnimationTime(const String&) const;
  8280. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8281. Variant GetAttributeDefault(const String&) const;
  8282. bool GetInterceptNetworkUpdate(const String&) const;
  8283. bool HasMethod(const String&) const;
  8284. bool IsA(const String&) const;
  8285. bool Load(File, bool = false);
  8286. bool Load(VectorBuffer&, bool = false);
  8287. bool LoadXML(const XMLElement&, bool = false);
  8288. void MarkNetworkUpdate() const;
  8289. void Remove();
  8290. void RemoveAttributeAnimation(const String&);
  8291. void RemoveInstanceDefault();
  8292. void RemoveObjectAnimation();
  8293. void ResetToDefault();
  8294. bool Save(File) const;
  8295. bool Save(VectorBuffer&) const;
  8296. bool SaveXML(XMLElement&) const;
  8297. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8298. void SetAnimationTime(float);
  8299. bool SetAttribute(const String&, const Variant&);
  8300. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8301. void SetAttributeAnimationSpeed(const String&, float);
  8302. void SetAttributeAnimationTime(const String&, float);
  8303. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8304. void SetInterceptNetworkUpdate(const String&, bool);
  8305. // Properties:
  8306. bool animationEnabled;
  8307. /* readonly */
  8308. Array<Variant> attributeDefaults;
  8309. /* readonly */
  8310. Array<AttributeInfo> attributeInfos;
  8311. Array<Variant> attributes;
  8312. /* readonly */
  8313. String category;
  8314. String className;
  8315. bool enabled;
  8316. /* readonly */
  8317. bool enabledEffective;
  8318. /* readonly */
  8319. uint id;
  8320. /* readonly */
  8321. Node node;
  8322. /* readonly */
  8323. uint numAttributes;
  8324. ObjectAnimation objectAnimation;
  8325. /* readonly */
  8326. int refs;
  8327. ScriptFile scriptFile;
  8328. /* readonly */
  8329. ScriptObject scriptObject;
  8330. bool temporary;
  8331. /* readonly */
  8332. StringHash type;
  8333. /* readonly */
  8334. String typeName;
  8335. /* readonly */
  8336. int weakRefs;
  8337. };
  8338. class ScriptObject
  8339. {
  8340. };
  8341. class ScrollBar
  8342. {
  8343. // Methods:
  8344. void AddChild(UIElement);
  8345. void ApplyAttributes();
  8346. void BringToFront();
  8347. void ChangeValue(float);
  8348. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8349. void DisableLayoutUpdate();
  8350. IntVector2 ElementToScreen(const IntVector2&);
  8351. void EnableLayoutUpdate();
  8352. uint FindChild(UIElement) const;
  8353. Variant GetAttribute(const String&) const;
  8354. ValueAnimation GetAttributeAnimation(const String&) const;
  8355. float GetAttributeAnimationSpeed(const String&) const;
  8356. float GetAttributeAnimationTime(const String&) const;
  8357. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8358. Variant GetAttributeDefault(const String&) const;
  8359. UIElement GetChild(const String&, bool = false) const;
  8360. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8361. Array<UIElement> GetChildren(bool = false) const;
  8362. UIElement GetElementEventSender() const;
  8363. bool GetInterceptNetworkUpdate(const String&) const;
  8364. uint GetNumChildren(bool) const;
  8365. void InsertChild(uint, UIElement);
  8366. bool IsInside(IntVector2, bool);
  8367. bool IsInsideCombined(IntVector2, bool);
  8368. bool Load(File, bool = false);
  8369. bool Load(VectorBuffer&, bool = false);
  8370. bool LoadChildXML(XMLFile, XMLFile = null);
  8371. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8372. bool LoadXML(File);
  8373. bool LoadXML(VectorBuffer&);
  8374. bool LoadXML(XMLFile, XMLFile);
  8375. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8376. bool LoadXML(const XMLElement&, bool = false);
  8377. void MarkNetworkUpdate() const;
  8378. void Remove();
  8379. void RemoveAllChildren();
  8380. void RemoveAttributeAnimation(const String&);
  8381. void RemoveChild(UIElement, uint = 0);
  8382. void RemoveChild(uint);
  8383. void RemoveInstanceDefault();
  8384. void RemoveObjectAnimation();
  8385. void ResetDeepEnabled();
  8386. void ResetToDefault();
  8387. bool Save(File) const;
  8388. bool Save(VectorBuffer&) const;
  8389. bool SaveXML(File, const String& = "\t");
  8390. bool SaveXML(VectorBuffer&, const String& = "\t");
  8391. bool SaveXML(XMLElement&) const;
  8392. IntVector2 ScreenToElement(const IntVector2&);
  8393. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8394. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8395. void SetAnimationTime(float);
  8396. bool SetAttribute(const String&, const Variant&);
  8397. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8398. void SetAttributeAnimationSpeed(const String&, float);
  8399. void SetAttributeAnimationTime(const String&, float);
  8400. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8401. void SetDeepEnabled(bool);
  8402. void SetEnabledRecursive(bool);
  8403. void SetFixedHeight(int);
  8404. void SetFixedSize(int, int);
  8405. void SetFixedWidth(int);
  8406. void SetInterceptNetworkUpdate(const String&, bool);
  8407. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8408. void SetMaxSize(int, int);
  8409. void SetMinSize(int, int);
  8410. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8411. void SetPosition(int, int);
  8412. void SetSize(int, int);
  8413. bool SetStyle(const String&, XMLFile = null);
  8414. bool SetStyle(const XMLElement&);
  8415. bool SetStyleAuto(XMLFile = null);
  8416. void StepBack();
  8417. void StepForward();
  8418. void UpdateLayout();
  8419. const Variant& GetVar(const StringHash&);
  8420. // Properties:
  8421. bool animationEnabled;
  8422. /* readonly */
  8423. Array<Variant> attributeDefaults;
  8424. /* readonly */
  8425. Array<AttributeInfo> attributeInfos;
  8426. Array<Variant> attributes;
  8427. /* readonly */
  8428. Button backButton;
  8429. bool bringToBack;
  8430. bool bringToFront;
  8431. /* readonly */
  8432. String category;
  8433. /* readonly */
  8434. IntVector2 childOffset;
  8435. /* readonly */
  8436. Array<UIElement> children;
  8437. IntRect clipBorder;
  8438. bool clipChildren;
  8439. /* writeonly */
  8440. Color color;
  8441. /* readonly */
  8442. bool colorGradient;
  8443. Array<Color> colors;
  8444. /* readonly */
  8445. IntRect combinedScreenRect;
  8446. XMLFile defaultStyle;
  8447. /* readonly */
  8448. float derivedOpacity;
  8449. /* readonly */
  8450. uint dragButtonCombo;
  8451. /* readonly */
  8452. int dragButtonCount;
  8453. uint dragDropMode;
  8454. bool editable;
  8455. /* readonly */
  8456. float effectiveScrollStep;
  8457. bool elementEventSender;
  8458. bool enabled;
  8459. /* readonly */
  8460. bool enabledSelf;
  8461. /* readonly */
  8462. bool fixedHeight;
  8463. /* readonly */
  8464. bool fixedSize;
  8465. /* readonly */
  8466. bool fixedWidth;
  8467. bool focus;
  8468. FocusMode focusMode;
  8469. /* readonly */
  8470. Button forwardButton;
  8471. int height;
  8472. HorizontalAlignment horizontalAlignment;
  8473. /* readonly */
  8474. bool hovering;
  8475. int indent;
  8476. int indentSpacing;
  8477. /* readonly */
  8478. int indentWidth;
  8479. bool internal;
  8480. IntRect layoutBorder;
  8481. Vector2 layoutFlexScale;
  8482. LayoutMode layoutMode;
  8483. int layoutSpacing;
  8484. int maxHeight;
  8485. IntVector2 maxSize;
  8486. int maxWidth;
  8487. int minHeight;
  8488. IntVector2 minSize;
  8489. int minWidth;
  8490. String name;
  8491. /* readonly */
  8492. uint numAllChildren;
  8493. /* readonly */
  8494. uint numAttributes;
  8495. /* readonly */
  8496. uint numChildren;
  8497. ObjectAnimation objectAnimation;
  8498. float opacity;
  8499. Orientation orientation;
  8500. UIElement parent;
  8501. IntVector2 position;
  8502. int priority;
  8503. float range;
  8504. /* readonly */
  8505. int refs;
  8506. /* readonly */
  8507. UIElement root;
  8508. /* readonly */
  8509. IntVector2 screenPosition;
  8510. float scrollStep;
  8511. bool selected;
  8512. IntVector2 size;
  8513. /* readonly */
  8514. Slider slider;
  8515. bool sortChildren;
  8516. float stepFactor;
  8517. String style;
  8518. bool temporary;
  8519. TraversalMode traversalMode;
  8520. /* readonly */
  8521. StringHash type;
  8522. /* readonly */
  8523. String typeName;
  8524. bool useDerivedOpacity;
  8525. float value;
  8526. /* readonly */
  8527. VariantMap vars;
  8528. VerticalAlignment verticalAlignment;
  8529. bool visible;
  8530. /* readonly */
  8531. bool visibleEffective;
  8532. /* readonly */
  8533. int weakRefs;
  8534. int width;
  8535. };
  8536. class ScrollView
  8537. {
  8538. // Methods:
  8539. void AddChild(UIElement);
  8540. void ApplyAttributes();
  8541. void BringToFront();
  8542. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8543. void DisableLayoutUpdate();
  8544. IntVector2 ElementToScreen(const IntVector2&);
  8545. void EnableLayoutUpdate();
  8546. uint FindChild(UIElement) const;
  8547. Variant GetAttribute(const String&) const;
  8548. ValueAnimation GetAttributeAnimation(const String&) const;
  8549. float GetAttributeAnimationSpeed(const String&) const;
  8550. float GetAttributeAnimationTime(const String&) const;
  8551. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8552. Variant GetAttributeDefault(const String&) const;
  8553. UIElement GetChild(const String&, bool = false) const;
  8554. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8555. Array<UIElement> GetChildren(bool = false) const;
  8556. UIElement GetElementEventSender() const;
  8557. bool GetInterceptNetworkUpdate(const String&) const;
  8558. uint GetNumChildren(bool) const;
  8559. void InsertChild(uint, UIElement);
  8560. bool IsInside(IntVector2, bool);
  8561. bool IsInsideCombined(IntVector2, bool);
  8562. bool Load(File, bool = false);
  8563. bool Load(VectorBuffer&, bool = false);
  8564. bool LoadChildXML(XMLFile, XMLFile = null);
  8565. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8566. bool LoadXML(File);
  8567. bool LoadXML(VectorBuffer&);
  8568. bool LoadXML(XMLFile, XMLFile);
  8569. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8570. bool LoadXML(const XMLElement&, bool = false);
  8571. void MarkNetworkUpdate() const;
  8572. void Remove();
  8573. void RemoveAllChildren();
  8574. void RemoveAttributeAnimation(const String&);
  8575. void RemoveChild(UIElement, uint = 0);
  8576. void RemoveChild(uint);
  8577. void RemoveInstanceDefault();
  8578. void RemoveObjectAnimation();
  8579. void ResetDeepEnabled();
  8580. void ResetToDefault();
  8581. bool Save(File) const;
  8582. bool Save(VectorBuffer&) const;
  8583. bool SaveXML(File, const String& = "\t");
  8584. bool SaveXML(VectorBuffer&, const String& = "\t");
  8585. bool SaveXML(XMLElement&) const;
  8586. IntVector2 ScreenToElement(const IntVector2&);
  8587. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8588. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8589. void SetAnimationTime(float);
  8590. bool SetAttribute(const String&, const Variant&);
  8591. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8592. void SetAttributeAnimationSpeed(const String&, float);
  8593. void SetAttributeAnimationTime(const String&, float);
  8594. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8595. void SetDeepEnabled(bool);
  8596. void SetEnabledRecursive(bool);
  8597. void SetFixedHeight(int);
  8598. void SetFixedSize(int, int);
  8599. void SetFixedWidth(int);
  8600. void SetInterceptNetworkUpdate(const String&, bool);
  8601. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8602. void SetMaxSize(int, int);
  8603. void SetMinSize(int, int);
  8604. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8605. void SetPosition(int, int);
  8606. void SetScrollBarsVisible(bool, bool);
  8607. void SetSize(int, int);
  8608. bool SetStyle(const String&, XMLFile = null);
  8609. bool SetStyle(const XMLElement&);
  8610. bool SetStyleAuto(XMLFile = null);
  8611. void SetViewPosition(int, int);
  8612. void UpdateLayout();
  8613. const Variant& GetVar(const StringHash&);
  8614. // Properties:
  8615. bool animationEnabled;
  8616. /* readonly */
  8617. Array<Variant> attributeDefaults;
  8618. /* readonly */
  8619. Array<AttributeInfo> attributeInfos;
  8620. Array<Variant> attributes;
  8621. bool autoDisableChildren;
  8622. float autoDisableThreshold;
  8623. bool bringToBack;
  8624. bool bringToFront;
  8625. /* readonly */
  8626. String category;
  8627. /* readonly */
  8628. IntVector2 childOffset;
  8629. /* readonly */
  8630. Array<UIElement> children;
  8631. IntRect clipBorder;
  8632. bool clipChildren;
  8633. /* writeonly */
  8634. Color color;
  8635. /* readonly */
  8636. bool colorGradient;
  8637. Array<Color> colors;
  8638. /* readonly */
  8639. IntRect combinedScreenRect;
  8640. UIElement contentElement;
  8641. XMLFile defaultStyle;
  8642. /* readonly */
  8643. float derivedOpacity;
  8644. /* readonly */
  8645. uint dragButtonCombo;
  8646. /* readonly */
  8647. int dragButtonCount;
  8648. uint dragDropMode;
  8649. bool editable;
  8650. bool elementEventSender;
  8651. bool enabled;
  8652. /* readonly */
  8653. bool enabledSelf;
  8654. /* readonly */
  8655. bool fixedHeight;
  8656. /* readonly */
  8657. bool fixedSize;
  8658. /* readonly */
  8659. bool fixedWidth;
  8660. bool focus;
  8661. FocusMode focusMode;
  8662. int height;
  8663. HorizontalAlignment horizontalAlignment;
  8664. /* readonly */
  8665. ScrollBar horizontalScrollBar;
  8666. /* readonly */
  8667. bool hovering;
  8668. int indent;
  8669. int indentSpacing;
  8670. /* readonly */
  8671. int indentWidth;
  8672. bool internal;
  8673. IntRect layoutBorder;
  8674. Vector2 layoutFlexScale;
  8675. LayoutMode layoutMode;
  8676. int layoutSpacing;
  8677. int maxHeight;
  8678. IntVector2 maxSize;
  8679. int maxWidth;
  8680. int minHeight;
  8681. IntVector2 minSize;
  8682. int minWidth;
  8683. String name;
  8684. /* readonly */
  8685. uint numAllChildren;
  8686. /* readonly */
  8687. uint numAttributes;
  8688. /* readonly */
  8689. uint numChildren;
  8690. ObjectAnimation objectAnimation;
  8691. float opacity;
  8692. float pageStep;
  8693. UIElement parent;
  8694. IntVector2 position;
  8695. int priority;
  8696. /* readonly */
  8697. int refs;
  8698. /* readonly */
  8699. UIElement root;
  8700. /* readonly */
  8701. IntVector2 screenPosition;
  8702. bool scrollBarsAutoVisible;
  8703. float scrollDeceleration;
  8704. /* readonly */
  8705. BorderImage scrollPanel;
  8706. float scrollSnapEpsilon;
  8707. float scrollStep;
  8708. bool selected;
  8709. IntVector2 size;
  8710. bool sortChildren;
  8711. String style;
  8712. bool temporary;
  8713. TraversalMode traversalMode;
  8714. /* readonly */
  8715. StringHash type;
  8716. /* readonly */
  8717. String typeName;
  8718. bool useDerivedOpacity;
  8719. /* readonly */
  8720. VariantMap vars;
  8721. VerticalAlignment verticalAlignment;
  8722. /* readonly */
  8723. ScrollBar verticalScrollBar;
  8724. IntVector2 viewPosition;
  8725. bool visible;
  8726. /* readonly */
  8727. bool visibleEffective;
  8728. /* readonly */
  8729. int weakRefs;
  8730. int width;
  8731. };
  8732. class Serializable
  8733. {
  8734. // Methods:
  8735. void ApplyAttributes();
  8736. Variant GetAttribute(const String&) const;
  8737. Variant GetAttributeDefault(const String&) const;
  8738. bool GetInterceptNetworkUpdate(const String&) const;
  8739. bool Load(File, bool = false);
  8740. bool Load(VectorBuffer&, bool = false);
  8741. bool LoadXML(const XMLElement&, bool = false);
  8742. void MarkNetworkUpdate() const;
  8743. void RemoveInstanceDefault();
  8744. void ResetToDefault();
  8745. bool Save(File) const;
  8746. bool Save(VectorBuffer&) const;
  8747. bool SaveXML(XMLElement&) const;
  8748. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8749. bool SetAttribute(const String&, const Variant&);
  8750. void SetInterceptNetworkUpdate(const String&, bool);
  8751. // Properties:
  8752. /* readonly */
  8753. Array<Variant> attributeDefaults;
  8754. /* readonly */
  8755. Array<AttributeInfo> attributeInfos;
  8756. Array<Variant> attributes;
  8757. /* readonly */
  8758. String category;
  8759. /* readonly */
  8760. uint numAttributes;
  8761. /* readonly */
  8762. int refs;
  8763. bool temporary;
  8764. /* readonly */
  8765. StringHash type;
  8766. /* readonly */
  8767. String typeName;
  8768. /* readonly */
  8769. int weakRefs;
  8770. };
  8771. class Serializer
  8772. {
  8773. // Methods:
  8774. uint Write(Array<uint8>);
  8775. bool WriteBool(bool);
  8776. bool WriteBoundingBox(const BoundingBox&);
  8777. bool WriteByte(int8);
  8778. bool WriteColor(const Color&);
  8779. bool WriteDouble(double);
  8780. bool WriteFileID(const String&);
  8781. bool WriteFloat(float);
  8782. bool WriteInt(int);
  8783. bool WriteIntRect(const IntRect&);
  8784. bool WriteIntVector2(const IntVector2&);
  8785. bool WriteLine(const String&);
  8786. bool WriteMatrix3(const Matrix3&);
  8787. bool WriteMatrix3x4(const Matrix3x4&);
  8788. bool WriteMatrix4(const Matrix4&);
  8789. bool WriteNetID(uint);
  8790. bool WritePackedQuaternion(const Quaternion&);
  8791. bool WritePackedVector3(const Vector3&, float);
  8792. bool WriteQuaternion(const Quaternion&);
  8793. bool WriteShort(int16);
  8794. bool WriteString(const String&);
  8795. bool WriteStringHash(const StringHash&);
  8796. bool WriteUByte(uint8);
  8797. bool WriteUInt(uint);
  8798. bool WriteUShort(uint16);
  8799. bool WriteVLE(uint);
  8800. bool WriteVariant(const Variant&);
  8801. bool WriteVariantMap(const VariantMap&);
  8802. bool WriteVector2(const Vector2&);
  8803. bool WriteVector3(const Vector3&);
  8804. bool WriteVector4(const Vector4&);
  8805. bool WriteVectorBuffer(const VectorBuffer&);
  8806. };
  8807. class Skeleton
  8808. {
  8809. // Methods:
  8810. Bone GetBone(const String&) const;
  8811. void Reset();
  8812. // Properties:
  8813. /* readonly */
  8814. Array<Bone> bones;
  8815. /* readonly */
  8816. uint numBones;
  8817. /* readonly */
  8818. Bone rootBone;
  8819. };
  8820. class Skybox
  8821. {
  8822. // Methods:
  8823. void ApplyAttributes();
  8824. void ApplyMaterialList(const String& = String ( ));
  8825. void DrawDebugGeometry(DebugRenderer, bool);
  8826. Variant GetAttribute(const String&) const;
  8827. ValueAnimation GetAttributeAnimation(const String&) const;
  8828. float GetAttributeAnimationSpeed(const String&) const;
  8829. float GetAttributeAnimationTime(const String&) const;
  8830. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8831. Variant GetAttributeDefault(const String&) const;
  8832. bool GetInterceptNetworkUpdate(const String&) const;
  8833. bool IsInView(Camera) const;
  8834. bool Load(File, bool = false);
  8835. bool Load(VectorBuffer&, bool = false);
  8836. bool LoadXML(const XMLElement&, bool = false);
  8837. void MarkNetworkUpdate() const;
  8838. void Remove();
  8839. void RemoveAttributeAnimation(const String&);
  8840. void RemoveInstanceDefault();
  8841. void RemoveObjectAnimation();
  8842. void ResetToDefault();
  8843. bool Save(File) const;
  8844. bool Save(VectorBuffer&) const;
  8845. bool SaveXML(XMLElement&) const;
  8846. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8847. void SetAnimationTime(float);
  8848. bool SetAttribute(const String&, const Variant&);
  8849. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8850. void SetAttributeAnimationSpeed(const String&, float);
  8851. void SetAttributeAnimationTime(const String&, float);
  8852. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8853. void SetInterceptNetworkUpdate(const String&, bool);
  8854. // Properties:
  8855. bool animationEnabled;
  8856. /* readonly */
  8857. Array<Variant> attributeDefaults;
  8858. /* readonly */
  8859. Array<AttributeInfo> attributeInfos;
  8860. Array<Variant> attributes;
  8861. /* readonly */
  8862. BoundingBox boundingBox;
  8863. bool castShadows;
  8864. /* readonly */
  8865. String category;
  8866. float drawDistance;
  8867. bool enabled;
  8868. /* readonly */
  8869. bool enabledEffective;
  8870. /* readonly */
  8871. uint id;
  8872. /* readonly */
  8873. bool inView;
  8874. uint lightMask;
  8875. float lodBias;
  8876. /* writeonly */
  8877. Material material;
  8878. Array<Material> materials;
  8879. uint maxLights;
  8880. Model model;
  8881. /* readonly */
  8882. Node node;
  8883. /* readonly */
  8884. uint numAttributes;
  8885. /* readonly */
  8886. uint numGeometries;
  8887. ObjectAnimation objectAnimation;
  8888. bool occludee;
  8889. bool occluder;
  8890. /* readonly */
  8891. int refs;
  8892. float shadowDistance;
  8893. uint shadowMask;
  8894. bool temporary;
  8895. /* readonly */
  8896. StringHash type;
  8897. /* readonly */
  8898. String typeName;
  8899. uint viewMask;
  8900. /* readonly */
  8901. int weakRefs;
  8902. /* readonly */
  8903. BoundingBox worldBoundingBox;
  8904. /* readonly */
  8905. Zone zone;
  8906. uint zoneMask;
  8907. };
  8908. class Slider
  8909. {
  8910. // Methods:
  8911. void AddChild(UIElement);
  8912. void ApplyAttributes();
  8913. void BringToFront();
  8914. void ChangeValue(float);
  8915. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8916. void DisableLayoutUpdate();
  8917. IntVector2 ElementToScreen(const IntVector2&);
  8918. void EnableLayoutUpdate();
  8919. uint FindChild(UIElement) const;
  8920. Variant GetAttribute(const String&) const;
  8921. ValueAnimation GetAttributeAnimation(const String&) const;
  8922. float GetAttributeAnimationSpeed(const String&) const;
  8923. float GetAttributeAnimationTime(const String&) const;
  8924. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8925. Variant GetAttributeDefault(const String&) const;
  8926. UIElement GetChild(const String&, bool = false) const;
  8927. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8928. Array<UIElement> GetChildren(bool = false) const;
  8929. UIElement GetElementEventSender() const;
  8930. bool GetInterceptNetworkUpdate(const String&) const;
  8931. uint GetNumChildren(bool) const;
  8932. void InsertChild(uint, UIElement);
  8933. bool IsInside(IntVector2, bool);
  8934. bool IsInsideCombined(IntVector2, bool);
  8935. bool Load(File, bool = false);
  8936. bool Load(VectorBuffer&, bool = false);
  8937. bool LoadChildXML(XMLFile, XMLFile = null);
  8938. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8939. bool LoadXML(File);
  8940. bool LoadXML(VectorBuffer&);
  8941. bool LoadXML(XMLFile, XMLFile);
  8942. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8943. bool LoadXML(const XMLElement&, bool = false);
  8944. void MarkNetworkUpdate() const;
  8945. void Remove();
  8946. void RemoveAllChildren();
  8947. void RemoveAttributeAnimation(const String&);
  8948. void RemoveChild(UIElement, uint = 0);
  8949. void RemoveChild(uint);
  8950. void RemoveInstanceDefault();
  8951. void RemoveObjectAnimation();
  8952. void ResetDeepEnabled();
  8953. void ResetToDefault();
  8954. bool Save(File) const;
  8955. bool Save(VectorBuffer&) const;
  8956. bool SaveXML(File, const String& = "\t");
  8957. bool SaveXML(VectorBuffer&, const String& = "\t");
  8958. bool SaveXML(XMLElement&) const;
  8959. IntVector2 ScreenToElement(const IntVector2&);
  8960. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8961. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8962. void SetAnimationTime(float);
  8963. bool SetAttribute(const String&, const Variant&);
  8964. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8965. void SetAttributeAnimationSpeed(const String&, float);
  8966. void SetAttributeAnimationTime(const String&, float);
  8967. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8968. void SetDeepEnabled(bool);
  8969. void SetEnabledRecursive(bool);
  8970. void SetFixedHeight(int);
  8971. void SetFixedSize(int, int);
  8972. void SetFixedWidth(int);
  8973. void SetFullImageRect();
  8974. void SetHoverOffset(int, int);
  8975. void SetInterceptNetworkUpdate(const String&, bool);
  8976. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8977. void SetMaxSize(int, int);
  8978. void SetMinSize(int, int);
  8979. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8980. void SetPosition(int, int);
  8981. void SetSize(int, int);
  8982. bool SetStyle(const String&, XMLFile = null);
  8983. bool SetStyle(const XMLElement&);
  8984. bool SetStyleAuto(XMLFile = null);
  8985. void UpdateLayout();
  8986. const Variant& GetVar(const StringHash&);
  8987. // Properties:
  8988. bool animationEnabled;
  8989. /* readonly */
  8990. Array<Variant> attributeDefaults;
  8991. /* readonly */
  8992. Array<AttributeInfo> attributeInfos;
  8993. Array<Variant> attributes;
  8994. BlendMode blendMode;
  8995. IntRect border;
  8996. bool bringToBack;
  8997. bool bringToFront;
  8998. /* readonly */
  8999. String category;
  9000. /* readonly */
  9001. IntVector2 childOffset;
  9002. /* readonly */
  9003. Array<UIElement> children;
  9004. IntRect clipBorder;
  9005. bool clipChildren;
  9006. /* writeonly */
  9007. Color color;
  9008. /* readonly */
  9009. bool colorGradient;
  9010. Array<Color> colors;
  9011. /* readonly */
  9012. IntRect combinedScreenRect;
  9013. XMLFile defaultStyle;
  9014. /* readonly */
  9015. float derivedOpacity;
  9016. /* readonly */
  9017. uint dragButtonCombo;
  9018. /* readonly */
  9019. int dragButtonCount;
  9020. uint dragDropMode;
  9021. bool editable;
  9022. bool elementEventSender;
  9023. bool enabled;
  9024. /* readonly */
  9025. bool enabledSelf;
  9026. /* readonly */
  9027. bool fixedHeight;
  9028. /* readonly */
  9029. bool fixedSize;
  9030. /* readonly */
  9031. bool fixedWidth;
  9032. bool focus;
  9033. FocusMode focusMode;
  9034. int height;
  9035. HorizontalAlignment horizontalAlignment;
  9036. IntVector2 hoverOffset;
  9037. /* readonly */
  9038. bool hovering;
  9039. IntRect imageBorder;
  9040. IntRect imageRect;
  9041. int indent;
  9042. int indentSpacing;
  9043. /* readonly */
  9044. int indentWidth;
  9045. bool internal;
  9046. /* readonly */
  9047. BorderImage knob;
  9048. IntRect layoutBorder;
  9049. Vector2 layoutFlexScale;
  9050. LayoutMode layoutMode;
  9051. int layoutSpacing;
  9052. int maxHeight;
  9053. IntVector2 maxSize;
  9054. int maxWidth;
  9055. int minHeight;
  9056. IntVector2 minSize;
  9057. int minWidth;
  9058. String name;
  9059. /* readonly */
  9060. uint numAllChildren;
  9061. /* readonly */
  9062. uint numAttributes;
  9063. /* readonly */
  9064. uint numChildren;
  9065. ObjectAnimation objectAnimation;
  9066. float opacity;
  9067. Orientation orientation;
  9068. UIElement parent;
  9069. IntVector2 position;
  9070. int priority;
  9071. float range;
  9072. /* readonly */
  9073. int refs;
  9074. float repeatRate;
  9075. /* readonly */
  9076. UIElement root;
  9077. /* readonly */
  9078. IntVector2 screenPosition;
  9079. bool selected;
  9080. IntVector2 size;
  9081. bool sortChildren;
  9082. String style;
  9083. bool temporary;
  9084. Texture texture;
  9085. bool tiled;
  9086. TraversalMode traversalMode;
  9087. /* readonly */
  9088. StringHash type;
  9089. /* readonly */
  9090. String typeName;
  9091. bool useDerivedOpacity;
  9092. float value;
  9093. /* readonly */
  9094. VariantMap vars;
  9095. VerticalAlignment verticalAlignment;
  9096. bool visible;
  9097. /* readonly */
  9098. bool visibleEffective;
  9099. /* readonly */
  9100. int weakRefs;
  9101. int width;
  9102. };
  9103. class SmoothedTransform
  9104. {
  9105. // Methods:
  9106. void ApplyAttributes();
  9107. void DrawDebugGeometry(DebugRenderer, bool);
  9108. Variant GetAttribute(const String&) const;
  9109. ValueAnimation GetAttributeAnimation(const String&) const;
  9110. float GetAttributeAnimationSpeed(const String&) const;
  9111. float GetAttributeAnimationTime(const String&) const;
  9112. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9113. Variant GetAttributeDefault(const String&) const;
  9114. bool GetInterceptNetworkUpdate(const String&) const;
  9115. bool Load(File, bool = false);
  9116. bool Load(VectorBuffer&, bool = false);
  9117. bool LoadXML(const XMLElement&, bool = false);
  9118. void MarkNetworkUpdate() const;
  9119. void Remove();
  9120. void RemoveAttributeAnimation(const String&);
  9121. void RemoveInstanceDefault();
  9122. void RemoveObjectAnimation();
  9123. void ResetToDefault();
  9124. bool Save(File) const;
  9125. bool Save(VectorBuffer&) const;
  9126. bool SaveXML(XMLElement&) const;
  9127. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9128. void SetAnimationTime(float);
  9129. bool SetAttribute(const String&, const Variant&);
  9130. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9131. void SetAttributeAnimationSpeed(const String&, float);
  9132. void SetAttributeAnimationTime(const String&, float);
  9133. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9134. void SetInterceptNetworkUpdate(const String&, bool);
  9135. void Update(float, float);
  9136. // Properties:
  9137. bool animationEnabled;
  9138. /* readonly */
  9139. Array<Variant> attributeDefaults;
  9140. /* readonly */
  9141. Array<AttributeInfo> attributeInfos;
  9142. Array<Variant> attributes;
  9143. /* readonly */
  9144. String category;
  9145. bool enabled;
  9146. /* readonly */
  9147. bool enabledEffective;
  9148. /* readonly */
  9149. uint id;
  9150. /* readonly */
  9151. bool inProgress;
  9152. /* readonly */
  9153. Node node;
  9154. /* readonly */
  9155. uint numAttributes;
  9156. ObjectAnimation objectAnimation;
  9157. /* readonly */
  9158. int refs;
  9159. Vector3 targetPosition;
  9160. Quaternion targetRotation;
  9161. Vector3 targetWorldPosition;
  9162. Quaternion targetWorldRotation;
  9163. bool temporary;
  9164. /* readonly */
  9165. StringHash type;
  9166. /* readonly */
  9167. String typeName;
  9168. /* readonly */
  9169. int weakRefs;
  9170. };
  9171. class Sound
  9172. {
  9173. // Methods:
  9174. bool Load(File);
  9175. bool Load(VectorBuffer&);
  9176. bool Save(File) const;
  9177. bool Save(VectorBuffer&) const;
  9178. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9179. // Properties:
  9180. /* readonly */
  9181. String category;
  9182. /* readonly */
  9183. bool compressed;
  9184. /* readonly */
  9185. float frequency;
  9186. /* readonly */
  9187. float length;
  9188. bool looped;
  9189. /* readonly */
  9190. uint memoryUse;
  9191. String name;
  9192. /* readonly */
  9193. int refs;
  9194. /* readonly */
  9195. uint sampleSize;
  9196. /* readonly */
  9197. bool sixteenBit;
  9198. /* readonly */
  9199. bool stereo;
  9200. /* readonly */
  9201. StringHash type;
  9202. /* readonly */
  9203. String typeName;
  9204. /* readonly */
  9205. uint useTimer;
  9206. /* readonly */
  9207. int weakRefs;
  9208. };
  9209. class SoundListener
  9210. {
  9211. // Methods:
  9212. void ApplyAttributes();
  9213. void DrawDebugGeometry(DebugRenderer, bool);
  9214. Variant GetAttribute(const String&) const;
  9215. ValueAnimation GetAttributeAnimation(const String&) const;
  9216. float GetAttributeAnimationSpeed(const String&) const;
  9217. float GetAttributeAnimationTime(const String&) const;
  9218. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9219. Variant GetAttributeDefault(const String&) const;
  9220. bool GetInterceptNetworkUpdate(const String&) const;
  9221. bool Load(File, bool = false);
  9222. bool Load(VectorBuffer&, bool = false);
  9223. bool LoadXML(const XMLElement&, bool = false);
  9224. void MarkNetworkUpdate() const;
  9225. void Remove();
  9226. void RemoveAttributeAnimation(const String&);
  9227. void RemoveInstanceDefault();
  9228. void RemoveObjectAnimation();
  9229. void ResetToDefault();
  9230. bool Save(File) const;
  9231. bool Save(VectorBuffer&) const;
  9232. bool SaveXML(XMLElement&) const;
  9233. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9234. void SetAnimationTime(float);
  9235. bool SetAttribute(const String&, const Variant&);
  9236. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9237. void SetAttributeAnimationSpeed(const String&, float);
  9238. void SetAttributeAnimationTime(const String&, float);
  9239. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9240. void SetInterceptNetworkUpdate(const String&, bool);
  9241. // Properties:
  9242. bool animationEnabled;
  9243. /* readonly */
  9244. Array<Variant> attributeDefaults;
  9245. /* readonly */
  9246. Array<AttributeInfo> attributeInfos;
  9247. Array<Variant> attributes;
  9248. /* readonly */
  9249. String category;
  9250. bool enabled;
  9251. /* readonly */
  9252. bool enabledEffective;
  9253. /* readonly */
  9254. uint id;
  9255. /* readonly */
  9256. Node node;
  9257. /* readonly */
  9258. uint numAttributes;
  9259. ObjectAnimation objectAnimation;
  9260. /* readonly */
  9261. int refs;
  9262. bool temporary;
  9263. /* readonly */
  9264. StringHash type;
  9265. /* readonly */
  9266. String typeName;
  9267. /* readonly */
  9268. int weakRefs;
  9269. };
  9270. class SoundSource
  9271. {
  9272. // Methods:
  9273. void ApplyAttributes();
  9274. void DrawDebugGeometry(DebugRenderer, bool);
  9275. Variant GetAttribute(const String&) const;
  9276. ValueAnimation GetAttributeAnimation(const String&) const;
  9277. float GetAttributeAnimationSpeed(const String&) const;
  9278. float GetAttributeAnimationTime(const String&) const;
  9279. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9280. Variant GetAttributeDefault(const String&) const;
  9281. bool GetInterceptNetworkUpdate(const String&) const;
  9282. bool Load(File, bool = false);
  9283. bool Load(VectorBuffer&, bool = false);
  9284. bool LoadXML(const XMLElement&, bool = false);
  9285. void MarkNetworkUpdate() const;
  9286. void Play(Sound);
  9287. void Play(Sound, float);
  9288. void Play(Sound, float, float);
  9289. void Play(Sound, float, float, float);
  9290. void Remove();
  9291. void RemoveAttributeAnimation(const String&);
  9292. void RemoveInstanceDefault();
  9293. void RemoveObjectAnimation();
  9294. void ResetToDefault();
  9295. bool Save(File) const;
  9296. bool Save(VectorBuffer&) const;
  9297. bool SaveXML(XMLElement&) const;
  9298. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9299. void SetAnimationTime(float);
  9300. bool SetAttribute(const String&, const Variant&);
  9301. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9302. void SetAttributeAnimationSpeed(const String&, float);
  9303. void SetAttributeAnimationTime(const String&, float);
  9304. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9305. void SetInterceptNetworkUpdate(const String&, bool);
  9306. void Stop();
  9307. // Properties:
  9308. bool animationEnabled;
  9309. /* readonly */
  9310. float attenuation;
  9311. /* readonly */
  9312. Array<Variant> attributeDefaults;
  9313. /* readonly */
  9314. Array<AttributeInfo> attributeInfos;
  9315. Array<Variant> attributes;
  9316. bool autoRemove;
  9317. /* readonly */
  9318. String category;
  9319. bool enabled;
  9320. /* readonly */
  9321. bool enabledEffective;
  9322. float frequency;
  9323. float gain;
  9324. /* readonly */
  9325. uint id;
  9326. /* readonly */
  9327. Node node;
  9328. /* readonly */
  9329. uint numAttributes;
  9330. ObjectAnimation objectAnimation;
  9331. float panning;
  9332. /* readonly */
  9333. bool playing;
  9334. /* readonly */
  9335. int refs;
  9336. /* readonly */
  9337. Sound sound;
  9338. String soundType;
  9339. bool temporary;
  9340. /* readonly */
  9341. float timePosition;
  9342. /* readonly */
  9343. StringHash type;
  9344. /* readonly */
  9345. String typeName;
  9346. /* readonly */
  9347. int weakRefs;
  9348. };
  9349. class SoundSource3D
  9350. {
  9351. // Methods:
  9352. void ApplyAttributes();
  9353. void DrawDebugGeometry(DebugRenderer, bool);
  9354. Variant GetAttribute(const String&) const;
  9355. ValueAnimation GetAttributeAnimation(const String&) const;
  9356. float GetAttributeAnimationSpeed(const String&) const;
  9357. float GetAttributeAnimationTime(const String&) const;
  9358. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9359. Variant GetAttributeDefault(const String&) const;
  9360. bool GetInterceptNetworkUpdate(const String&) const;
  9361. bool Load(File, bool = false);
  9362. bool Load(VectorBuffer&, bool = false);
  9363. bool LoadXML(const XMLElement&, bool = false);
  9364. void MarkNetworkUpdate() const;
  9365. void Play(Sound);
  9366. void Play(Sound, float);
  9367. void Play(Sound, float, float);
  9368. void Play(Sound, float, float, float);
  9369. void Remove();
  9370. void RemoveAttributeAnimation(const String&);
  9371. void RemoveInstanceDefault();
  9372. void RemoveObjectAnimation();
  9373. void ResetToDefault();
  9374. bool Save(File) const;
  9375. bool Save(VectorBuffer&) const;
  9376. bool SaveXML(XMLElement&) const;
  9377. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9378. void SetAngleAttenuation(float, float);
  9379. void SetAnimationTime(float);
  9380. bool SetAttribute(const String&, const Variant&);
  9381. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9382. void SetAttributeAnimationSpeed(const String&, float);
  9383. void SetAttributeAnimationTime(const String&, float);
  9384. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9385. void SetDistanceAttenuation(float, float, float);
  9386. void SetInterceptNetworkUpdate(const String&, bool);
  9387. void Stop();
  9388. // Properties:
  9389. bool animationEnabled;
  9390. /* readonly */
  9391. float attenuation;
  9392. /* readonly */
  9393. Array<Variant> attributeDefaults;
  9394. /* readonly */
  9395. Array<AttributeInfo> attributeInfos;
  9396. Array<Variant> attributes;
  9397. bool autoRemove;
  9398. /* readonly */
  9399. String category;
  9400. bool enabled;
  9401. /* readonly */
  9402. bool enabledEffective;
  9403. float farDistance;
  9404. float frequency;
  9405. float gain;
  9406. /* readonly */
  9407. uint id;
  9408. float innerAngle;
  9409. float nearDistance;
  9410. /* readonly */
  9411. Node node;
  9412. /* readonly */
  9413. uint numAttributes;
  9414. ObjectAnimation objectAnimation;
  9415. float outerAngle;
  9416. float panning;
  9417. /* readonly */
  9418. bool playing;
  9419. /* readonly */
  9420. int refs;
  9421. float rolloffFactor;
  9422. /* readonly */
  9423. Sound sound;
  9424. String soundType;
  9425. bool temporary;
  9426. /* readonly */
  9427. float timePosition;
  9428. /* readonly */
  9429. StringHash type;
  9430. /* readonly */
  9431. String typeName;
  9432. /* readonly */
  9433. int weakRefs;
  9434. };
  9435. class Sphere
  9436. {
  9437. // Methods:
  9438. void Clear();
  9439. void Define(const BoundingBox&);
  9440. void Define(const Frustum&);
  9441. void Define(const Polyhedron&);
  9442. void Define(const Sphere&);
  9443. void Define(const Vector3&, float);
  9444. bool Defined() const;
  9445. float Distance(const Vector3&) const;
  9446. Intersection IsInside(const BoundingBox&) const;
  9447. Intersection IsInside(const Sphere&) const;
  9448. Intersection IsInside(const Vector3&) const;
  9449. Intersection IsInsideFast(const BoundingBox&) const;
  9450. Intersection IsInsideFast(const Sphere&) const;
  9451. void Merge(const BoundingBox&);
  9452. void Merge(const Frustum&);
  9453. void Merge(const Sphere&);
  9454. void Merge(const Vector3&);
  9455. // Properties:
  9456. Vector3 center;
  9457. float radius;
  9458. };
  9459. class Spline
  9460. {
  9461. // Methods:
  9462. void AddKnot(const Variant&);
  9463. void AddKnot(const Variant&, uint);
  9464. void Clear();
  9465. Variant GetPoint(float);
  9466. void RemoveKnot();
  9467. void RemoveKnot(uint);
  9468. // Properties:
  9469. InterpolationMode interpolationMode;
  9470. Array<Variant> knot;
  9471. Array<Variant> knots;
  9472. };
  9473. class SplinePath
  9474. {
  9475. // Methods:
  9476. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9477. void ApplyAttributes();
  9478. void ClearControlPoints();
  9479. void DrawDebugGeometry(DebugRenderer, bool);
  9480. Variant GetAttribute(const String&) const;
  9481. ValueAnimation GetAttributeAnimation(const String&) const;
  9482. float GetAttributeAnimationSpeed(const String&) const;
  9483. float GetAttributeAnimationTime(const String&) const;
  9484. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9485. Variant GetAttributeDefault(const String&) const;
  9486. bool GetInterceptNetworkUpdate(const String&) const;
  9487. Vector3 GetPoint(float) const;
  9488. Vector3 GetPosition() const;
  9489. bool Load(File, bool = false);
  9490. bool Load(VectorBuffer&, bool = false);
  9491. bool LoadXML(const XMLElement&, bool = false);
  9492. void MarkNetworkUpdate() const;
  9493. void Move(float);
  9494. void Remove();
  9495. void RemoveAttributeAnimation(const String&);
  9496. void RemoveControlPoint(Node);
  9497. void RemoveInstanceDefault();
  9498. void RemoveObjectAnimation();
  9499. void Reset();
  9500. void ResetToDefault();
  9501. bool Save(File) const;
  9502. bool Save(VectorBuffer&) const;
  9503. bool SaveXML(XMLElement&) const;
  9504. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9505. void SetAnimationTime(float);
  9506. bool SetAttribute(const String&, const Variant&);
  9507. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9508. void SetAttributeAnimationSpeed(const String&, float);
  9509. void SetAttributeAnimationTime(const String&, float);
  9510. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9511. void SetInterceptNetworkUpdate(const String&, bool);
  9512. void SetPosition(float);
  9513. // Properties:
  9514. bool animationEnabled;
  9515. /* readonly */
  9516. Array<Variant> attributeDefaults;
  9517. /* readonly */
  9518. Array<AttributeInfo> attributeInfos;
  9519. Array<Variant> attributes;
  9520. /* readonly */
  9521. String category;
  9522. Node controlledNode;
  9523. bool enabled;
  9524. /* readonly */
  9525. bool enabledEffective;
  9526. /* readonly */
  9527. uint id;
  9528. InterpolationMode interpolationMode;
  9529. /* readonly */
  9530. bool isFinished;
  9531. /* readonly */
  9532. float length;
  9533. /* readonly */
  9534. Node node;
  9535. /* readonly */
  9536. uint numAttributes;
  9537. ObjectAnimation objectAnimation;
  9538. /* readonly */
  9539. int refs;
  9540. float speed;
  9541. bool temporary;
  9542. /* readonly */
  9543. StringHash type;
  9544. /* readonly */
  9545. String typeName;
  9546. /* readonly */
  9547. int weakRefs;
  9548. };
  9549. class Sprite
  9550. {
  9551. // Methods:
  9552. void AddChild(UIElement);
  9553. void ApplyAttributes();
  9554. void BringToFront();
  9555. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9556. uint FindChild(UIElement) const;
  9557. Variant GetAttribute(const String&) const;
  9558. ValueAnimation GetAttributeAnimation(const String&) const;
  9559. float GetAttributeAnimationSpeed(const String&) const;
  9560. float GetAttributeAnimationTime(const String&) const;
  9561. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9562. Variant GetAttributeDefault(const String&) const;
  9563. UIElement GetChild(const String&, bool = false) const;
  9564. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9565. Array<UIElement> GetChildren(bool = false) const;
  9566. UIElement GetElementEventSender() const;
  9567. bool GetInterceptNetworkUpdate(const String&) const;
  9568. uint GetNumChildren(bool) const;
  9569. void InsertChild(uint, UIElement);
  9570. bool Load(File, bool = false);
  9571. bool Load(VectorBuffer&, bool = false);
  9572. bool LoadChildXML(XMLFile, XMLFile = null);
  9573. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9574. bool LoadXML(File);
  9575. bool LoadXML(VectorBuffer&);
  9576. bool LoadXML(XMLFile, XMLFile);
  9577. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9578. bool LoadXML(const XMLElement&, bool = false);
  9579. void MarkNetworkUpdate() const;
  9580. void Remove();
  9581. void RemoveAllChildren();
  9582. void RemoveAttributeAnimation(const String&);
  9583. void RemoveChild(UIElement, uint = 0);
  9584. void RemoveChild(uint);
  9585. void RemoveInstanceDefault();
  9586. void RemoveObjectAnimation();
  9587. void ResetToDefault();
  9588. bool Save(File) const;
  9589. bool Save(VectorBuffer&) const;
  9590. bool SaveXML(File, const String& = "\t");
  9591. bool SaveXML(VectorBuffer&, const String& = "\t");
  9592. bool SaveXML(XMLElement&) const;
  9593. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9594. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9595. void SetAnimationTime(float);
  9596. bool SetAttribute(const String&, const Variant&);
  9597. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9598. void SetAttributeAnimationSpeed(const String&, float);
  9599. void SetAttributeAnimationTime(const String&, float);
  9600. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9601. void SetFixedHeight(int);
  9602. void SetFixedSize(int, int);
  9603. void SetFixedWidth(int);
  9604. void SetFullImageRect();
  9605. void SetHotSpot(int, int);
  9606. void SetInterceptNetworkUpdate(const String&, bool);
  9607. void SetMaxSize(int, int);
  9608. void SetMinSize(int, int);
  9609. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9610. void SetPosition(float, float);
  9611. void SetScale(float);
  9612. void SetScale(float, float);
  9613. void SetSize(int, int);
  9614. bool SetStyle(const String&, XMLFile = null);
  9615. bool SetStyle(const XMLElement&);
  9616. bool SetStyleAuto(XMLFile = null);
  9617. const Variant& GetVar(const StringHash&);
  9618. // Properties:
  9619. bool animationEnabled;
  9620. /* readonly */
  9621. Array<Variant> attributeDefaults;
  9622. /* readonly */
  9623. Array<AttributeInfo> attributeInfos;
  9624. Array<Variant> attributes;
  9625. BlendMode blendMode;
  9626. bool bringToBack;
  9627. bool bringToFront;
  9628. /* readonly */
  9629. String category;
  9630. /* readonly */
  9631. Array<UIElement> children;
  9632. /* writeonly */
  9633. Color color;
  9634. /* readonly */
  9635. bool colorGradient;
  9636. Array<Color> colors;
  9637. XMLFile defaultStyle;
  9638. /* readonly */
  9639. float derivedOpacity;
  9640. /* readonly */
  9641. uint dragButtonCombo;
  9642. /* readonly */
  9643. int dragButtonCount;
  9644. bool elementEventSender;
  9645. int height;
  9646. HorizontalAlignment horizontalAlignment;
  9647. IntVector2 hotSpot;
  9648. IntRect imageRect;
  9649. String name;
  9650. /* readonly */
  9651. uint numAllChildren;
  9652. /* readonly */
  9653. uint numAttributes;
  9654. /* readonly */
  9655. uint numChildren;
  9656. ObjectAnimation objectAnimation;
  9657. float opacity;
  9658. UIElement parent;
  9659. Vector2 position;
  9660. int priority;
  9661. /* readonly */
  9662. int refs;
  9663. /* readonly */
  9664. UIElement root;
  9665. float rotation;
  9666. Vector2 scale;
  9667. IntVector2 size;
  9668. bool sortChildren;
  9669. String style;
  9670. bool temporary;
  9671. Texture texture;
  9672. /* readonly */
  9673. StringHash type;
  9674. /* readonly */
  9675. String typeName;
  9676. bool useDerivedOpacity;
  9677. /* readonly */
  9678. VariantMap vars;
  9679. VerticalAlignment verticalAlignment;
  9680. bool visible;
  9681. /* readonly */
  9682. bool visibleEffective;
  9683. /* readonly */
  9684. int weakRefs;
  9685. int width;
  9686. };
  9687. class Sprite2D
  9688. {
  9689. // Methods:
  9690. bool Load(File);
  9691. bool Load(VectorBuffer&);
  9692. bool Save(File) const;
  9693. bool Save(VectorBuffer&) const;
  9694. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9695. // Properties:
  9696. /* readonly */
  9697. String category;
  9698. Vector2 hotSpot;
  9699. /* readonly */
  9700. uint memoryUse;
  9701. String name;
  9702. IntVector2 offset;
  9703. IntRect rectangle;
  9704. /* readonly */
  9705. int refs;
  9706. Texture2D texture;
  9707. /* readonly */
  9708. StringHash type;
  9709. /* readonly */
  9710. String typeName;
  9711. /* readonly */
  9712. uint useTimer;
  9713. /* readonly */
  9714. int weakRefs;
  9715. };
  9716. class SpriteSheet2D
  9717. {
  9718. // Methods:
  9719. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  9720. Sprite2D GetSprite(const String&);
  9721. bool Load(File);
  9722. bool Load(VectorBuffer&);
  9723. bool Save(File) const;
  9724. bool Save(VectorBuffer&) const;
  9725. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9726. // Properties:
  9727. /* readonly */
  9728. String category;
  9729. /* readonly */
  9730. uint memoryUse;
  9731. String name;
  9732. /* readonly */
  9733. int refs;
  9734. /* readonly */
  9735. Texture2D texture;
  9736. /* readonly */
  9737. StringHash type;
  9738. /* readonly */
  9739. String typeName;
  9740. /* readonly */
  9741. uint useTimer;
  9742. /* readonly */
  9743. int weakRefs;
  9744. };
  9745. class StaticModel
  9746. {
  9747. // Methods:
  9748. void ApplyAttributes();
  9749. void ApplyMaterialList(const String& = String ( ));
  9750. void DrawDebugGeometry(DebugRenderer, bool);
  9751. Variant GetAttribute(const String&) const;
  9752. ValueAnimation GetAttributeAnimation(const String&) const;
  9753. float GetAttributeAnimationSpeed(const String&) const;
  9754. float GetAttributeAnimationTime(const String&) const;
  9755. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9756. Variant GetAttributeDefault(const String&) const;
  9757. bool GetInterceptNetworkUpdate(const String&) const;
  9758. bool IsInView(Camera) const;
  9759. bool IsInside(const Vector3&) const;
  9760. bool IsInsideLocal(const Vector3&) const;
  9761. bool Load(File, bool = false);
  9762. bool Load(VectorBuffer&, bool = false);
  9763. bool LoadXML(const XMLElement&, bool = false);
  9764. void MarkNetworkUpdate() const;
  9765. void Remove();
  9766. void RemoveAttributeAnimation(const String&);
  9767. void RemoveInstanceDefault();
  9768. void RemoveObjectAnimation();
  9769. void ResetToDefault();
  9770. bool Save(File) const;
  9771. bool Save(VectorBuffer&) const;
  9772. bool SaveXML(XMLElement&) const;
  9773. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9774. void SetAnimationTime(float);
  9775. bool SetAttribute(const String&, const Variant&);
  9776. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9777. void SetAttributeAnimationSpeed(const String&, float);
  9778. void SetAttributeAnimationTime(const String&, float);
  9779. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9780. void SetInterceptNetworkUpdate(const String&, bool);
  9781. // Properties:
  9782. bool animationEnabled;
  9783. /* readonly */
  9784. Array<Variant> attributeDefaults;
  9785. /* readonly */
  9786. Array<AttributeInfo> attributeInfos;
  9787. Array<Variant> attributes;
  9788. /* readonly */
  9789. BoundingBox boundingBox;
  9790. bool castShadows;
  9791. /* readonly */
  9792. String category;
  9793. float drawDistance;
  9794. bool enabled;
  9795. /* readonly */
  9796. bool enabledEffective;
  9797. /* readonly */
  9798. uint id;
  9799. /* readonly */
  9800. bool inView;
  9801. uint lightMask;
  9802. float lodBias;
  9803. /* writeonly */
  9804. Material material;
  9805. Array<Material> materials;
  9806. uint maxLights;
  9807. Model model;
  9808. /* readonly */
  9809. Node node;
  9810. /* readonly */
  9811. uint numAttributes;
  9812. /* readonly */
  9813. uint numGeometries;
  9814. ObjectAnimation objectAnimation;
  9815. bool occludee;
  9816. bool occluder;
  9817. uint occlusionLodLevel;
  9818. /* readonly */
  9819. int refs;
  9820. float shadowDistance;
  9821. uint shadowMask;
  9822. bool temporary;
  9823. /* readonly */
  9824. StringHash type;
  9825. /* readonly */
  9826. String typeName;
  9827. uint viewMask;
  9828. /* readonly */
  9829. int weakRefs;
  9830. /* readonly */
  9831. BoundingBox worldBoundingBox;
  9832. uint zoneMask;
  9833. };
  9834. class StaticModelGroup
  9835. {
  9836. // Methods:
  9837. void AddInstanceNode(Node);
  9838. void ApplyAttributes();
  9839. void ApplyMaterialList(const String& = String ( ));
  9840. void DrawDebugGeometry(DebugRenderer, bool);
  9841. Variant GetAttribute(const String&) const;
  9842. ValueAnimation GetAttributeAnimation(const String&) const;
  9843. float GetAttributeAnimationSpeed(const String&) const;
  9844. float GetAttributeAnimationTime(const String&) const;
  9845. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9846. Variant GetAttributeDefault(const String&) const;
  9847. bool GetInterceptNetworkUpdate(const String&) const;
  9848. bool IsInView(Camera) const;
  9849. bool Load(File, bool = false);
  9850. bool Load(VectorBuffer&, bool = false);
  9851. bool LoadXML(const XMLElement&, bool = false);
  9852. void MarkNetworkUpdate() const;
  9853. void Remove();
  9854. void RemoveAllInstanceNodes();
  9855. void RemoveAttributeAnimation(const String&);
  9856. void RemoveInstanceDefault();
  9857. void RemoveInstanceNode(Node);
  9858. void RemoveObjectAnimation();
  9859. void ResetToDefault();
  9860. bool Save(File) const;
  9861. bool Save(VectorBuffer&) const;
  9862. bool SaveXML(XMLElement&) const;
  9863. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9864. void SetAnimationTime(float);
  9865. bool SetAttribute(const String&, const Variant&);
  9866. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9867. void SetAttributeAnimationSpeed(const String&, float);
  9868. void SetAttributeAnimationTime(const String&, float);
  9869. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9870. void SetInterceptNetworkUpdate(const String&, bool);
  9871. // Properties:
  9872. bool animationEnabled;
  9873. /* readonly */
  9874. Array<Variant> attributeDefaults;
  9875. /* readonly */
  9876. Array<AttributeInfo> attributeInfos;
  9877. Array<Variant> attributes;
  9878. /* readonly */
  9879. BoundingBox boundingBox;
  9880. bool castShadows;
  9881. /* readonly */
  9882. String category;
  9883. float drawDistance;
  9884. bool enabled;
  9885. /* readonly */
  9886. bool enabledEffective;
  9887. /* readonly */
  9888. uint id;
  9889. /* readonly */
  9890. bool inView;
  9891. /* readonly */
  9892. Array<Node> instanceNodes;
  9893. uint lightMask;
  9894. float lodBias;
  9895. /* writeonly */
  9896. Material material;
  9897. Array<Material> materials;
  9898. uint maxLights;
  9899. Model model;
  9900. /* readonly */
  9901. Node node;
  9902. /* readonly */
  9903. uint numAttributes;
  9904. /* readonly */
  9905. uint numGeometries;
  9906. /* readonly */
  9907. uint numInstanceNodes;
  9908. ObjectAnimation objectAnimation;
  9909. bool occludee;
  9910. bool occluder;
  9911. uint occlusionLodLevel;
  9912. /* readonly */
  9913. int refs;
  9914. float shadowDistance;
  9915. uint shadowMask;
  9916. bool temporary;
  9917. /* readonly */
  9918. StringHash type;
  9919. /* readonly */
  9920. String typeName;
  9921. uint viewMask;
  9922. /* readonly */
  9923. int weakRefs;
  9924. /* readonly */
  9925. BoundingBox worldBoundingBox;
  9926. /* readonly */
  9927. Zone zone;
  9928. uint zoneMask;
  9929. };
  9930. class StaticSprite2D
  9931. {
  9932. // Methods:
  9933. void ApplyAttributes();
  9934. void DrawDebugGeometry(DebugRenderer, bool);
  9935. Variant GetAttribute(const String&) const;
  9936. ValueAnimation GetAttributeAnimation(const String&) const;
  9937. float GetAttributeAnimationSpeed(const String&) const;
  9938. float GetAttributeAnimationTime(const String&) const;
  9939. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9940. Variant GetAttributeDefault(const String&) const;
  9941. bool GetInterceptNetworkUpdate(const String&) const;
  9942. bool IsInView(Camera) const;
  9943. bool Load(File, bool = false);
  9944. bool Load(VectorBuffer&, bool = false);
  9945. bool LoadXML(const XMLElement&, bool = false);
  9946. void MarkNetworkUpdate() const;
  9947. void Remove();
  9948. void RemoveAttributeAnimation(const String&);
  9949. void RemoveInstanceDefault();
  9950. void RemoveObjectAnimation();
  9951. void ResetToDefault();
  9952. bool Save(File) const;
  9953. bool Save(VectorBuffer&) const;
  9954. bool SaveXML(XMLElement&) const;
  9955. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9956. void SetAnimationTime(float);
  9957. bool SetAttribute(const String&, const Variant&);
  9958. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9959. void SetAttributeAnimationSpeed(const String&, float);
  9960. void SetAttributeAnimationTime(const String&, float);
  9961. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9962. void SetFlip(bool, bool);
  9963. void SetInterceptNetworkUpdate(const String&, bool);
  9964. // Properties:
  9965. float alpha;
  9966. bool animationEnabled;
  9967. /* readonly */
  9968. Array<Variant> attributeDefaults;
  9969. /* readonly */
  9970. Array<AttributeInfo> attributeInfos;
  9971. Array<Variant> attributes;
  9972. BlendMode blendMode;
  9973. /* readonly */
  9974. BoundingBox boundingBox;
  9975. bool castShadows;
  9976. /* readonly */
  9977. String category;
  9978. Color color;
  9979. Material customMaterial;
  9980. float drawDistance;
  9981. bool enabled;
  9982. /* readonly */
  9983. bool enabledEffective;
  9984. bool flipX;
  9985. bool flipY;
  9986. Vector2 hotSpot;
  9987. /* readonly */
  9988. uint id;
  9989. /* readonly */
  9990. bool inView;
  9991. int layer;
  9992. uint lightMask;
  9993. float lodBias;
  9994. uint maxLights;
  9995. /* readonly */
  9996. Node node;
  9997. /* readonly */
  9998. uint numAttributes;
  9999. ObjectAnimation objectAnimation;
  10000. bool occludee;
  10001. bool occluder;
  10002. int orderInLayer;
  10003. /* readonly */
  10004. int refs;
  10005. float shadowDistance;
  10006. uint shadowMask;
  10007. Sprite2D sprite;
  10008. bool temporary;
  10009. /* readonly */
  10010. StringHash type;
  10011. /* readonly */
  10012. String typeName;
  10013. bool useHotSpot;
  10014. uint viewMask;
  10015. /* readonly */
  10016. int weakRefs;
  10017. /* readonly */
  10018. BoundingBox worldBoundingBox;
  10019. uint zoneMask;
  10020. };
  10021. class String
  10022. {
  10023. // Methods:
  10024. void AppendUTF8(uint);
  10025. uint AtUTF8(uint) const;
  10026. uint ByteOffsetUTF8(uint) const;
  10027. void Clear();
  10028. int Compare(const String&, bool = true) const;
  10029. bool Contains(const String&, bool = true) const;
  10030. bool Contains(uint8, bool = true) const;
  10031. bool EndsWith(const String&, bool = true) const;
  10032. uint Find(const String&, uint = 0, bool = true) const;
  10033. uint Find(uint8, uint = 0, bool = true) const;
  10034. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10035. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10036. void Join(Array<String>&, const String&);
  10037. uint NextUTF8Char(uint&) const;
  10038. void Replace(const String&, const String&, bool = true);
  10039. void Replace(uint8, uint8, bool = true);
  10040. void ReplaceUTF8(uint, uint);
  10041. String Replaced(const String&, const String&, bool = true) const;
  10042. String Replaced(uint8, uint8, bool = true) const;
  10043. void Resize(uint);
  10044. void SetUTF8FromLatin1(const String&);
  10045. Array<String> Split(uint8, bool = false) const;
  10046. bool StartsWith(const String&, bool = true) const;
  10047. String Substring(uint) const;
  10048. String Substring(uint, uint) const;
  10049. String SubstringUTF8(uint) const;
  10050. String SubstringUTF8(uint, uint) const;
  10051. bool ToBool() const;
  10052. Color ToColor() const;
  10053. double ToDouble() const;
  10054. float ToFloat() const;
  10055. int ToInt() const;
  10056. IntRect ToIntRect() const;
  10057. IntVector2 ToIntVector2() const;
  10058. String ToLower() const;
  10059. Matrix3 ToMatrix3() const;
  10060. Matrix3x4 ToMatrix3x4() const;
  10061. Matrix4 ToMatrix4() const;
  10062. Quaternion ToQuaternion() const;
  10063. uint ToUInt() const;
  10064. String ToUpper() const;
  10065. Vector2 ToVector2() const;
  10066. Vector3 ToVector3() const;
  10067. Vector4 ToVector4(bool = false) const;
  10068. Variant ToVectorVariant() const;
  10069. String Trimmed() const;
  10070. // Properties:
  10071. /* readonly */
  10072. bool empty;
  10073. /* readonly */
  10074. uint length;
  10075. /* readonly */
  10076. uint utf8Length;
  10077. };
  10078. class StringHash
  10079. {
  10080. // Methods:
  10081. String ToString() const;
  10082. // Properties:
  10083. /* readonly */
  10084. uint value;
  10085. };
  10086. class Technique
  10087. {
  10088. // Methods:
  10089. Pass CreatePass(const String&);
  10090. Pass GetPass(const String&);
  10091. Pass GetSupportedPass(const String&);
  10092. bool HasPass(const String&) const;
  10093. bool Load(File);
  10094. bool Load(VectorBuffer&);
  10095. void RemovePass(const String&);
  10096. bool Save(File) const;
  10097. bool Save(VectorBuffer&) const;
  10098. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10099. // Properties:
  10100. /* readonly */
  10101. String category;
  10102. bool desktop;
  10103. /* readonly */
  10104. uint memoryUse;
  10105. String name;
  10106. /* readonly */
  10107. uint numPasses;
  10108. /* readonly */
  10109. Array<String> passNames;
  10110. /* readonly */
  10111. Array<Pass> passes;
  10112. /* readonly */
  10113. int refs;
  10114. /* readonly */
  10115. bool supported;
  10116. /* readonly */
  10117. StringHash type;
  10118. /* readonly */
  10119. String typeName;
  10120. /* readonly */
  10121. uint useTimer;
  10122. /* readonly */
  10123. int weakRefs;
  10124. };
  10125. class TechniqueEntry
  10126. {
  10127. // Properties:
  10128. float lodDistance;
  10129. int qualityLevel;
  10130. Technique technique;
  10131. };
  10132. class Terrain
  10133. {
  10134. // Methods:
  10135. void ApplyAttributes();
  10136. void ApplyHeightMap();
  10137. void DrawDebugGeometry(DebugRenderer, bool);
  10138. Variant GetAttribute(const String&) const;
  10139. ValueAnimation GetAttributeAnimation(const String&) const;
  10140. float GetAttributeAnimationSpeed(const String&) const;
  10141. float GetAttributeAnimationTime(const String&) const;
  10142. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10143. Variant GetAttributeDefault(const String&) const;
  10144. float GetHeight(const Vector3&) const;
  10145. bool GetInterceptNetworkUpdate(const String&) const;
  10146. Vector3 GetNormal(const Vector3&) const;
  10147. TerrainPatch GetPatch(int, int) const;
  10148. bool Load(File, bool = false);
  10149. bool Load(VectorBuffer&, bool = false);
  10150. bool LoadXML(const XMLElement&, bool = false);
  10151. void MarkNetworkUpdate() const;
  10152. void Remove();
  10153. void RemoveAttributeAnimation(const String&);
  10154. void RemoveInstanceDefault();
  10155. void RemoveObjectAnimation();
  10156. void ResetToDefault();
  10157. bool Save(File) const;
  10158. bool Save(VectorBuffer&) const;
  10159. bool SaveXML(XMLElement&) const;
  10160. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10161. void SetAnimationTime(float);
  10162. bool SetAttribute(const String&, const Variant&);
  10163. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10164. void SetAttributeAnimationSpeed(const String&, float);
  10165. void SetAttributeAnimationTime(const String&, float);
  10166. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10167. void SetInterceptNetworkUpdate(const String&, bool);
  10168. IntVector2 WorldToHeightMap(const Vector3&) const;
  10169. // Properties:
  10170. bool animationEnabled;
  10171. /* readonly */
  10172. Array<Variant> attributeDefaults;
  10173. /* readonly */
  10174. Array<AttributeInfo> attributeInfos;
  10175. Array<Variant> attributes;
  10176. bool castShadows;
  10177. /* readonly */
  10178. String category;
  10179. float drawDistance;
  10180. bool enabled;
  10181. /* readonly */
  10182. bool enabledEffective;
  10183. Image heightMap;
  10184. /* readonly */
  10185. uint id;
  10186. uint lightMask;
  10187. float lodBias;
  10188. Material material;
  10189. uint maxLights;
  10190. uint maxLodLevels;
  10191. /* readonly */
  10192. Node node;
  10193. /* readonly */
  10194. uint numAttributes;
  10195. /* readonly */
  10196. IntVector2 numPatches;
  10197. /* readonly */
  10198. IntVector2 numVertices;
  10199. ObjectAnimation objectAnimation;
  10200. bool occludee;
  10201. bool occluder;
  10202. uint occlusionLodLevel;
  10203. int patchSize;
  10204. /* readonly */
  10205. Array<TerrainPatch> patches;
  10206. /* readonly */
  10207. int refs;
  10208. float shadowDistance;
  10209. uint shadowMask;
  10210. bool smoothing;
  10211. Vector3 spacing;
  10212. bool temporary;
  10213. /* readonly */
  10214. StringHash type;
  10215. /* readonly */
  10216. String typeName;
  10217. uint viewMask;
  10218. /* readonly */
  10219. int weakRefs;
  10220. uint zoneMask;
  10221. };
  10222. class TerrainPatch
  10223. {
  10224. // Methods:
  10225. void ApplyAttributes();
  10226. void DrawDebugGeometry(DebugRenderer, bool);
  10227. Variant GetAttribute(const String&) const;
  10228. ValueAnimation GetAttributeAnimation(const String&) const;
  10229. float GetAttributeAnimationSpeed(const String&) const;
  10230. float GetAttributeAnimationTime(const String&) const;
  10231. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10232. Variant GetAttributeDefault(const String&) const;
  10233. bool GetInterceptNetworkUpdate(const String&) const;
  10234. bool IsInView(Camera) const;
  10235. bool Load(File, bool = false);
  10236. bool Load(VectorBuffer&, bool = false);
  10237. bool LoadXML(const XMLElement&, bool = false);
  10238. void MarkNetworkUpdate() const;
  10239. void Remove();
  10240. void RemoveAttributeAnimation(const String&);
  10241. void RemoveInstanceDefault();
  10242. void RemoveObjectAnimation();
  10243. void ResetToDefault();
  10244. bool Save(File) const;
  10245. bool Save(VectorBuffer&) const;
  10246. bool SaveXML(XMLElement&) const;
  10247. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10248. void SetAnimationTime(float);
  10249. bool SetAttribute(const String&, const Variant&);
  10250. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10251. void SetAttributeAnimationSpeed(const String&, float);
  10252. void SetAttributeAnimationTime(const String&, float);
  10253. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10254. void SetInterceptNetworkUpdate(const String&, bool);
  10255. // Properties:
  10256. bool animationEnabled;
  10257. /* readonly */
  10258. Array<Variant> attributeDefaults;
  10259. /* readonly */
  10260. Array<AttributeInfo> attributeInfos;
  10261. Array<Variant> attributes;
  10262. /* readonly */
  10263. BoundingBox boundingBox;
  10264. bool castShadows;
  10265. /* readonly */
  10266. String category;
  10267. float drawDistance;
  10268. bool enabled;
  10269. /* readonly */
  10270. bool enabledEffective;
  10271. /* readonly */
  10272. uint id;
  10273. /* readonly */
  10274. bool inView;
  10275. uint lightMask;
  10276. float lodBias;
  10277. uint maxLights;
  10278. /* readonly */
  10279. Node node;
  10280. /* readonly */
  10281. uint numAttributes;
  10282. ObjectAnimation objectAnimation;
  10283. bool occludee;
  10284. bool occluder;
  10285. /* readonly */
  10286. int refs;
  10287. float shadowDistance;
  10288. uint shadowMask;
  10289. bool temporary;
  10290. /* readonly */
  10291. StringHash type;
  10292. /* readonly */
  10293. String typeName;
  10294. uint viewMask;
  10295. /* readonly */
  10296. int weakRefs;
  10297. /* readonly */
  10298. BoundingBox worldBoundingBox;
  10299. uint zoneMask;
  10300. };
  10301. class Text
  10302. {
  10303. // Methods:
  10304. void AddChild(UIElement);
  10305. void ApplyAttributes();
  10306. void BringToFront();
  10307. void ClearSelection();
  10308. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10309. void DisableLayoutUpdate();
  10310. IntVector2 ElementToScreen(const IntVector2&);
  10311. void EnableLayoutUpdate();
  10312. uint FindChild(UIElement) const;
  10313. Variant GetAttribute(const String&) const;
  10314. ValueAnimation GetAttributeAnimation(const String&) const;
  10315. float GetAttributeAnimationSpeed(const String&) const;
  10316. float GetAttributeAnimationTime(const String&) const;
  10317. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10318. Variant GetAttributeDefault(const String&) const;
  10319. UIElement GetChild(const String&, bool = false) const;
  10320. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10321. Array<UIElement> GetChildren(bool = false) const;
  10322. UIElement GetElementEventSender() const;
  10323. bool GetInterceptNetworkUpdate(const String&) const;
  10324. uint GetNumChildren(bool) const;
  10325. void InsertChild(uint, UIElement);
  10326. bool IsInside(IntVector2, bool);
  10327. bool IsInsideCombined(IntVector2, bool);
  10328. bool Load(File, bool = false);
  10329. bool Load(VectorBuffer&, bool = false);
  10330. bool LoadChildXML(XMLFile, XMLFile = null);
  10331. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10332. bool LoadXML(File);
  10333. bool LoadXML(VectorBuffer&);
  10334. bool LoadXML(XMLFile, XMLFile);
  10335. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10336. bool LoadXML(const XMLElement&, bool = false);
  10337. void MarkNetworkUpdate() const;
  10338. void Remove();
  10339. void RemoveAllChildren();
  10340. void RemoveAttributeAnimation(const String&);
  10341. void RemoveChild(UIElement, uint = 0);
  10342. void RemoveChild(uint);
  10343. void RemoveInstanceDefault();
  10344. void RemoveObjectAnimation();
  10345. void ResetDeepEnabled();
  10346. void ResetToDefault();
  10347. bool Save(File) const;
  10348. bool Save(VectorBuffer&) const;
  10349. bool SaveXML(File, const String& = "\t");
  10350. bool SaveXML(VectorBuffer&, const String& = "\t");
  10351. bool SaveXML(XMLElement&) const;
  10352. IntVector2 ScreenToElement(const IntVector2&);
  10353. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10354. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10355. void SetAnimationTime(float);
  10356. bool SetAttribute(const String&, const Variant&);
  10357. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10358. void SetAttributeAnimationSpeed(const String&, float);
  10359. void SetAttributeAnimationTime(const String&, float);
  10360. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10361. void SetDeepEnabled(bool);
  10362. void SetEnabledRecursive(bool);
  10363. void SetFixedHeight(int);
  10364. void SetFixedSize(int, int);
  10365. void SetFixedWidth(int);
  10366. bool SetFont(Font, int);
  10367. bool SetFont(const String&, int);
  10368. void SetInterceptNetworkUpdate(const String&, bool);
  10369. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10370. void SetMaxSize(int, int);
  10371. void SetMinSize(int, int);
  10372. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10373. void SetPosition(int, int);
  10374. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10375. void SetSize(int, int);
  10376. bool SetStyle(const String&, XMLFile = null);
  10377. bool SetStyle(const XMLElement&);
  10378. bool SetStyleAuto(XMLFile = null);
  10379. void UpdateLayout();
  10380. const Variant& GetVar(const StringHash&);
  10381. // Properties:
  10382. bool animationEnabled;
  10383. /* readonly */
  10384. Array<Variant> attributeDefaults;
  10385. /* readonly */
  10386. Array<AttributeInfo> attributeInfos;
  10387. Array<Variant> attributes;
  10388. bool autoLocalizable;
  10389. bool bringToBack;
  10390. bool bringToFront;
  10391. /* readonly */
  10392. String category;
  10393. /* readonly */
  10394. Array<IntVector2> charPositions;
  10395. /* readonly */
  10396. Array<IntVector2> charSizes;
  10397. /* readonly */
  10398. IntVector2 childOffset;
  10399. /* readonly */
  10400. Array<UIElement> children;
  10401. IntRect clipBorder;
  10402. bool clipChildren;
  10403. /* writeonly */
  10404. Color color;
  10405. /* readonly */
  10406. bool colorGradient;
  10407. Array<Color> colors;
  10408. /* readonly */
  10409. IntRect combinedScreenRect;
  10410. XMLFile defaultStyle;
  10411. /* readonly */
  10412. float derivedOpacity;
  10413. /* readonly */
  10414. uint dragButtonCombo;
  10415. /* readonly */
  10416. int dragButtonCount;
  10417. uint dragDropMode;
  10418. bool editable;
  10419. Color effectColor;
  10420. bool elementEventSender;
  10421. bool enabled;
  10422. /* readonly */
  10423. bool enabledSelf;
  10424. /* readonly */
  10425. bool fixedHeight;
  10426. /* readonly */
  10427. bool fixedSize;
  10428. /* readonly */
  10429. bool fixedWidth;
  10430. bool focus;
  10431. FocusMode focusMode;
  10432. /* readonly */
  10433. Font font;
  10434. /* readonly */
  10435. int fontSize;
  10436. int height;
  10437. HorizontalAlignment horizontalAlignment;
  10438. Color hoverColor;
  10439. /* readonly */
  10440. bool hovering;
  10441. int indent;
  10442. int indentSpacing;
  10443. /* readonly */
  10444. int indentWidth;
  10445. bool internal;
  10446. IntRect layoutBorder;
  10447. Vector2 layoutFlexScale;
  10448. LayoutMode layoutMode;
  10449. int layoutSpacing;
  10450. int maxHeight;
  10451. IntVector2 maxSize;
  10452. int maxWidth;
  10453. int minHeight;
  10454. IntVector2 minSize;
  10455. int minWidth;
  10456. String name;
  10457. /* readonly */
  10458. uint numAllChildren;
  10459. /* readonly */
  10460. uint numAttributes;
  10461. /* readonly */
  10462. uint numChars;
  10463. /* readonly */
  10464. uint numChildren;
  10465. /* readonly */
  10466. uint numRows;
  10467. ObjectAnimation objectAnimation;
  10468. float opacity;
  10469. UIElement parent;
  10470. IntVector2 position;
  10471. int priority;
  10472. /* readonly */
  10473. int refs;
  10474. /* readonly */
  10475. UIElement root;
  10476. /* readonly */
  10477. int rowHeight;
  10478. float rowSpacing;
  10479. /* readonly */
  10480. Array<int> rowWidths;
  10481. /* readonly */
  10482. IntVector2 screenPosition;
  10483. bool selected;
  10484. Color selectionColor;
  10485. /* readonly */
  10486. uint selectionLength;
  10487. /* readonly */
  10488. uint selectionStart;
  10489. IntVector2 size;
  10490. bool sortChildren;
  10491. String style;
  10492. bool temporary;
  10493. String text;
  10494. HorizontalAlignment textAlignment;
  10495. TextEffect textEffect;
  10496. TraversalMode traversalMode;
  10497. /* readonly */
  10498. StringHash type;
  10499. /* readonly */
  10500. String typeName;
  10501. bool useDerivedOpacity;
  10502. /* readonly */
  10503. VariantMap vars;
  10504. VerticalAlignment verticalAlignment;
  10505. bool visible;
  10506. /* readonly */
  10507. bool visibleEffective;
  10508. /* readonly */
  10509. int weakRefs;
  10510. int width;
  10511. bool wordwrap;
  10512. };
  10513. class Text3D
  10514. {
  10515. // Methods:
  10516. void ApplyAttributes();
  10517. void DrawDebugGeometry(DebugRenderer, bool);
  10518. Variant GetAttribute(const String&) const;
  10519. ValueAnimation GetAttributeAnimation(const String&) const;
  10520. float GetAttributeAnimationSpeed(const String&) const;
  10521. float GetAttributeAnimationTime(const String&) const;
  10522. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10523. Variant GetAttributeDefault(const String&) const;
  10524. bool GetInterceptNetworkUpdate(const String&) const;
  10525. bool IsInView(Camera) const;
  10526. bool Load(File, bool = false);
  10527. bool Load(VectorBuffer&, bool = false);
  10528. bool LoadXML(const XMLElement&, bool = false);
  10529. void MarkNetworkUpdate() const;
  10530. void Remove();
  10531. void RemoveAttributeAnimation(const String&);
  10532. void RemoveInstanceDefault();
  10533. void RemoveObjectAnimation();
  10534. void ResetToDefault();
  10535. bool Save(File) const;
  10536. bool Save(VectorBuffer&) const;
  10537. bool SaveXML(XMLElement&) const;
  10538. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10539. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10540. void SetAnimationTime(float);
  10541. bool SetAttribute(const String&, const Variant&);
  10542. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10543. void SetAttributeAnimationSpeed(const String&, float);
  10544. void SetAttributeAnimationTime(const String&, float);
  10545. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10546. bool SetFont(Font, int);
  10547. bool SetFont(const String&, int);
  10548. void SetInterceptNetworkUpdate(const String&, bool);
  10549. // Properties:
  10550. bool animationEnabled;
  10551. /* readonly */
  10552. Array<Variant> attributeDefaults;
  10553. /* readonly */
  10554. Array<AttributeInfo> attributeInfos;
  10555. Array<Variant> attributes;
  10556. /* readonly */
  10557. BoundingBox boundingBox;
  10558. bool castShadows;
  10559. /* readonly */
  10560. String category;
  10561. /* readonly */
  10562. Array<IntVector2> charPositions;
  10563. /* readonly */
  10564. Array<IntVector2> charSizes;
  10565. /* writeonly */
  10566. Color color;
  10567. Array<Color> colors;
  10568. float drawDistance;
  10569. Color effectColor;
  10570. float effectDepthBias;
  10571. bool enabled;
  10572. /* readonly */
  10573. bool enabledEffective;
  10574. FaceCameraMode faceCameraMode;
  10575. /* readonly */
  10576. Font font;
  10577. /* readonly */
  10578. int fontSize;
  10579. HorizontalAlignment horizontalAlignment;
  10580. /* readonly */
  10581. uint id;
  10582. /* readonly */
  10583. bool inView;
  10584. uint lightMask;
  10585. float lodBias;
  10586. Material material;
  10587. uint maxLights;
  10588. /* readonly */
  10589. Node node;
  10590. /* readonly */
  10591. uint numAttributes;
  10592. /* readonly */
  10593. uint numChars;
  10594. /* readonly */
  10595. uint numRows;
  10596. ObjectAnimation objectAnimation;
  10597. bool occludee;
  10598. bool occluder;
  10599. float opacity;
  10600. /* readonly */
  10601. int refs;
  10602. /* readonly */
  10603. int rowHeight;
  10604. float rowSpacing;
  10605. /* readonly */
  10606. Array<int> rowWidths;
  10607. float shadowDistance;
  10608. uint shadowMask;
  10609. bool temporary;
  10610. String text;
  10611. HorizontalAlignment textAlignment;
  10612. TextEffect textEffect;
  10613. /* readonly */
  10614. StringHash type;
  10615. /* readonly */
  10616. String typeName;
  10617. VerticalAlignment verticalAlignment;
  10618. uint viewMask;
  10619. /* readonly */
  10620. int weakRefs;
  10621. int width;
  10622. bool wordwrap;
  10623. /* readonly */
  10624. BoundingBox worldBoundingBox;
  10625. uint zoneMask;
  10626. };
  10627. class Texture
  10628. {
  10629. // Methods:
  10630. void ClearDataLost();
  10631. bool Load(File);
  10632. bool Load(VectorBuffer&);
  10633. bool Save(File) const;
  10634. bool Save(VectorBuffer&) const;
  10635. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10636. void SetNumLevels(uint);
  10637. // Properties:
  10638. Array<TextureAddressMode> addressMode;
  10639. Texture backupTexture;
  10640. Color borderColor;
  10641. /* readonly */
  10642. String category;
  10643. /* readonly */
  10644. uint components;
  10645. /* readonly */
  10646. bool compressed;
  10647. /* readonly */
  10648. bool dataLost;
  10649. TextureFilterMode filterMode;
  10650. /* readonly */
  10651. uint format;
  10652. /* readonly */
  10653. int height;
  10654. /* readonly */
  10655. Array<int> levelHeight;
  10656. /* readonly */
  10657. Array<int> levelWidth;
  10658. /* readonly */
  10659. uint levels;
  10660. /* readonly */
  10661. uint memoryUse;
  10662. Array<int> mipsToSkip;
  10663. String name;
  10664. /* readonly */
  10665. int refs;
  10666. bool sRGB;
  10667. /* readonly */
  10668. StringHash type;
  10669. /* readonly */
  10670. String typeName;
  10671. /* readonly */
  10672. TextureUsage usage;
  10673. /* readonly */
  10674. uint useTimer;
  10675. /* readonly */
  10676. int weakRefs;
  10677. /* readonly */
  10678. int width;
  10679. };
  10680. class Texture2D
  10681. {
  10682. // Methods:
  10683. void ClearDataLost();
  10684. Image GetImage() const;
  10685. bool Load(File);
  10686. bool Load(VectorBuffer&);
  10687. bool Save(File) const;
  10688. bool Save(VectorBuffer&) const;
  10689. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10690. bool SetData(Image, bool = false);
  10691. void SetNumLevels(uint);
  10692. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10693. // Properties:
  10694. Array<TextureAddressMode> addressMode;
  10695. Texture backupTexture;
  10696. Color borderColor;
  10697. /* readonly */
  10698. String category;
  10699. /* readonly */
  10700. uint components;
  10701. /* readonly */
  10702. bool compressed;
  10703. /* readonly */
  10704. bool dataLost;
  10705. TextureFilterMode filterMode;
  10706. /* readonly */
  10707. uint format;
  10708. /* readonly */
  10709. int height;
  10710. /* readonly */
  10711. Array<int> levelHeight;
  10712. /* readonly */
  10713. Array<int> levelWidth;
  10714. /* readonly */
  10715. uint levels;
  10716. /* readonly */
  10717. uint memoryUse;
  10718. Array<int> mipsToSkip;
  10719. String name;
  10720. /* readonly */
  10721. int refs;
  10722. /* readonly */
  10723. RenderSurface renderSurface;
  10724. bool sRGB;
  10725. /* readonly */
  10726. StringHash type;
  10727. /* readonly */
  10728. String typeName;
  10729. /* readonly */
  10730. TextureUsage usage;
  10731. /* readonly */
  10732. uint useTimer;
  10733. /* readonly */
  10734. int weakRefs;
  10735. /* readonly */
  10736. int width;
  10737. };
  10738. class Texture3D
  10739. {
  10740. // Methods:
  10741. void ClearDataLost();
  10742. bool Load(File);
  10743. bool Load(VectorBuffer&);
  10744. bool Save(File) const;
  10745. bool Save(VectorBuffer&) const;
  10746. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10747. bool SetData(Image, bool = false);
  10748. void SetNumLevels(uint);
  10749. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10750. // Properties:
  10751. Array<TextureAddressMode> addressMode;
  10752. Texture backupTexture;
  10753. Color borderColor;
  10754. /* readonly */
  10755. String category;
  10756. /* readonly */
  10757. uint components;
  10758. /* readonly */
  10759. bool compressed;
  10760. /* readonly */
  10761. bool dataLost;
  10762. TextureFilterMode filterMode;
  10763. /* readonly */
  10764. uint format;
  10765. /* readonly */
  10766. int height;
  10767. /* readonly */
  10768. Array<int> levelHeight;
  10769. /* readonly */
  10770. Array<int> levelWidth;
  10771. /* readonly */
  10772. uint levels;
  10773. /* readonly */
  10774. uint memoryUse;
  10775. Array<int> mipsToSkip;
  10776. String name;
  10777. /* readonly */
  10778. int refs;
  10779. /* readonly */
  10780. RenderSurface renderSurface;
  10781. bool sRGB;
  10782. /* readonly */
  10783. StringHash type;
  10784. /* readonly */
  10785. String typeName;
  10786. /* readonly */
  10787. TextureUsage usage;
  10788. /* readonly */
  10789. uint useTimer;
  10790. /* readonly */
  10791. int weakRefs;
  10792. /* readonly */
  10793. int width;
  10794. };
  10795. class TextureCube
  10796. {
  10797. // Methods:
  10798. void ClearDataLost();
  10799. bool Load(File);
  10800. bool Load(VectorBuffer&);
  10801. bool Save(File) const;
  10802. bool Save(VectorBuffer&) const;
  10803. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10804. bool SetData(CubeMapFace, Image, bool = false);
  10805. void SetNumLevels(uint);
  10806. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  10807. // Properties:
  10808. Array<TextureAddressMode> addressMode;
  10809. Texture backupTexture;
  10810. Color borderColor;
  10811. /* readonly */
  10812. String category;
  10813. /* readonly */
  10814. uint components;
  10815. /* readonly */
  10816. bool compressed;
  10817. /* readonly */
  10818. bool dataLost;
  10819. TextureFilterMode filterMode;
  10820. /* readonly */
  10821. uint format;
  10822. /* readonly */
  10823. int height;
  10824. /* readonly */
  10825. Array<int> levelHeight;
  10826. /* readonly */
  10827. Array<int> levelWidth;
  10828. /* readonly */
  10829. uint levels;
  10830. /* readonly */
  10831. uint memoryUse;
  10832. Array<int> mipsToSkip;
  10833. String name;
  10834. /* readonly */
  10835. int refs;
  10836. /* readonly */
  10837. Array<RenderSurface> renderSurfaces;
  10838. bool sRGB;
  10839. /* readonly */
  10840. StringHash type;
  10841. /* readonly */
  10842. String typeName;
  10843. /* readonly */
  10844. TextureUsage usage;
  10845. /* readonly */
  10846. uint useTimer;
  10847. /* readonly */
  10848. int weakRefs;
  10849. /* readonly */
  10850. int width;
  10851. };
  10852. class TextureFrame
  10853. {
  10854. // Properties:
  10855. float time;
  10856. Rect uv;
  10857. };
  10858. class Tile2D
  10859. {
  10860. // Methods:
  10861. bool HasProperty(const String&) const;
  10862. const String& GetProperty(const String&) const;
  10863. // Properties:
  10864. /* readonly */
  10865. int gid;
  10866. /* readonly */
  10867. int refs;
  10868. /* readonly */
  10869. Sprite2D sprite;
  10870. /* readonly */
  10871. int weakRefs;
  10872. };
  10873. class TileMap2D
  10874. {
  10875. // Methods:
  10876. void ApplyAttributes();
  10877. void DrawDebugGeometry(DebugRenderer, bool);
  10878. Variant GetAttribute(const String&) const;
  10879. ValueAnimation GetAttributeAnimation(const String&) const;
  10880. float GetAttributeAnimationSpeed(const String&) const;
  10881. float GetAttributeAnimationTime(const String&) const;
  10882. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10883. Variant GetAttributeDefault(const String&) const;
  10884. bool GetInterceptNetworkUpdate(const String&) const;
  10885. TileMapLayer2D GetLayer(uint) const;
  10886. bool Load(File, bool = false);
  10887. bool Load(VectorBuffer&, bool = false);
  10888. bool LoadXML(const XMLElement&, bool = false);
  10889. void MarkNetworkUpdate() const;
  10890. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  10891. void Remove();
  10892. void RemoveAttributeAnimation(const String&);
  10893. void RemoveInstanceDefault();
  10894. void RemoveObjectAnimation();
  10895. void ResetToDefault();
  10896. bool Save(File) const;
  10897. bool Save(VectorBuffer&) const;
  10898. bool SaveXML(XMLElement&) const;
  10899. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10900. void SetAnimationTime(float);
  10901. bool SetAttribute(const String&, const Variant&);
  10902. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10903. void SetAttributeAnimationSpeed(const String&, float);
  10904. void SetAttributeAnimationTime(const String&, float);
  10905. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10906. void SetInterceptNetworkUpdate(const String&, bool);
  10907. Vector2 TileIndexToPosition(int, int) const;
  10908. // Properties:
  10909. bool animationEnabled;
  10910. /* readonly */
  10911. Array<Variant> attributeDefaults;
  10912. /* readonly */
  10913. Array<AttributeInfo> attributeInfos;
  10914. Array<Variant> attributes;
  10915. /* readonly */
  10916. String category;
  10917. bool enabled;
  10918. /* readonly */
  10919. bool enabledEffective;
  10920. /* readonly */
  10921. uint id;
  10922. /* readonly */
  10923. TileMapInfo2D info;
  10924. /* readonly */
  10925. Node node;
  10926. /* readonly */
  10927. uint numAttributes;
  10928. /* readonly */
  10929. uint numLayers;
  10930. ObjectAnimation objectAnimation;
  10931. /* readonly */
  10932. int refs;
  10933. bool temporary;
  10934. TmxFile2D tmxFile;
  10935. /* readonly */
  10936. StringHash type;
  10937. /* readonly */
  10938. String typeName;
  10939. /* readonly */
  10940. int weakRefs;
  10941. };
  10942. class TileMapInfo2D
  10943. {
  10944. // Properties:
  10945. int height;
  10946. /* readonly */
  10947. float mapHeight;
  10948. /* readonly */
  10949. float mapWidth;
  10950. Orientation2D orientation;
  10951. float tileHeight;
  10952. float tileWidth;
  10953. int width;
  10954. };
  10955. class TileMapLayer2D
  10956. {
  10957. // Methods:
  10958. void ApplyAttributes();
  10959. void DrawDebugGeometry(DebugRenderer, bool);
  10960. Variant GetAttribute(const String&) const;
  10961. ValueAnimation GetAttributeAnimation(const String&) const;
  10962. float GetAttributeAnimationSpeed(const String&) const;
  10963. float GetAttributeAnimationTime(const String&) const;
  10964. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10965. Variant GetAttributeDefault(const String&) const;
  10966. bool GetInterceptNetworkUpdate(const String&) const;
  10967. TileMapObject2D GetObject(uint) const;
  10968. Node GetObjectNode(uint) const;
  10969. Tile2D GetTile(int, int) const;
  10970. Node GetTileNode(int, int) const;
  10971. bool HasProperty(const String&) const;
  10972. bool Load(File, bool = false);
  10973. bool Load(VectorBuffer&, bool = false);
  10974. bool LoadXML(const XMLElement&, bool = false);
  10975. void MarkNetworkUpdate() const;
  10976. void Remove();
  10977. void RemoveAttributeAnimation(const String&);
  10978. void RemoveInstanceDefault();
  10979. void RemoveObjectAnimation();
  10980. void ResetToDefault();
  10981. bool Save(File) const;
  10982. bool Save(VectorBuffer&) const;
  10983. bool SaveXML(XMLElement&) const;
  10984. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10985. void SetAnimationTime(float);
  10986. bool SetAttribute(const String&, const Variant&);
  10987. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10988. void SetAttributeAnimationSpeed(const String&, float);
  10989. void SetAttributeAnimationTime(const String&, float);
  10990. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10991. void SetInterceptNetworkUpdate(const String&, bool);
  10992. const String& GetProperty(const String&) const;
  10993. // Properties:
  10994. bool animationEnabled;
  10995. /* readonly */
  10996. Array<Variant> attributeDefaults;
  10997. /* readonly */
  10998. Array<AttributeInfo> attributeInfos;
  10999. Array<Variant> attributes;
  11000. /* readonly */
  11001. String category;
  11002. int drawOrder;
  11003. bool enabled;
  11004. /* readonly */
  11005. bool enabledEffective;
  11006. /* readonly */
  11007. int height;
  11008. /* readonly */
  11009. uint id;
  11010. /* readonly */
  11011. Node imageNode;
  11012. /* readonly */
  11013. TileMapLayerType2D layerType;
  11014. /* readonly */
  11015. Node node;
  11016. /* readonly */
  11017. uint numAttributes;
  11018. /* readonly */
  11019. uint numObjects;
  11020. ObjectAnimation objectAnimation;
  11021. /* readonly */
  11022. int refs;
  11023. bool temporary;
  11024. /* readonly */
  11025. StringHash type;
  11026. /* readonly */
  11027. String typeName;
  11028. bool visible;
  11029. /* readonly */
  11030. int weakRefs;
  11031. /* readonly */
  11032. int width;
  11033. };
  11034. class TileMapObject2D
  11035. {
  11036. // Methods:
  11037. bool HasProperty(const String&) const;
  11038. const String& GetProperty(const String&) const;
  11039. const Vector2& GetPoint(uint) const;
  11040. // Properties:
  11041. /* readonly */
  11042. String name;
  11043. /* readonly */
  11044. uint numPoints;
  11045. /* readonly */
  11046. TileObjectType2D objectType;
  11047. /* readonly */
  11048. Vector2 position;
  11049. /* readonly */
  11050. int refs;
  11051. /* readonly */
  11052. Vector2 size;
  11053. /* readonly */
  11054. int tileGid;
  11055. /* readonly */
  11056. Sprite2D tileSprite;
  11057. /* readonly */
  11058. String type;
  11059. /* readonly */
  11060. int weakRefs;
  11061. };
  11062. class Time
  11063. {
  11064. // Methods:
  11065. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11066. // Properties:
  11067. /* readonly */
  11068. String category;
  11069. /* readonly */
  11070. float elapsedTime;
  11071. /* readonly */
  11072. uint frameNumber;
  11073. /* readonly */
  11074. int refs;
  11075. /* readonly */
  11076. uint systemTime;
  11077. /* readonly */
  11078. uint timeSinceEpoch;
  11079. /* readonly */
  11080. String timeStamp;
  11081. /* readonly */
  11082. float timeStep;
  11083. /* readonly */
  11084. StringHash type;
  11085. /* readonly */
  11086. String typeName;
  11087. /* readonly */
  11088. int weakRefs;
  11089. };
  11090. class Timer
  11091. {
  11092. // Methods:
  11093. uint GetMSec(bool);
  11094. void Reset();
  11095. };
  11096. class TmxFile2D
  11097. {
  11098. // Methods:
  11099. bool Load(File);
  11100. bool Load(VectorBuffer&);
  11101. bool Save(File) const;
  11102. bool Save(VectorBuffer&) const;
  11103. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11104. // Properties:
  11105. /* readonly */
  11106. String category;
  11107. /* readonly */
  11108. uint memoryUse;
  11109. String name;
  11110. /* readonly */
  11111. int refs;
  11112. /* readonly */
  11113. StringHash type;
  11114. /* readonly */
  11115. String typeName;
  11116. /* readonly */
  11117. uint useTimer;
  11118. /* readonly */
  11119. int weakRefs;
  11120. };
  11121. class ToolTip
  11122. {
  11123. // Methods:
  11124. void AddChild(UIElement);
  11125. void ApplyAttributes();
  11126. void BringToFront();
  11127. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11128. void DisableLayoutUpdate();
  11129. IntVector2 ElementToScreen(const IntVector2&);
  11130. void EnableLayoutUpdate();
  11131. uint FindChild(UIElement) const;
  11132. Variant GetAttribute(const String&) const;
  11133. ValueAnimation GetAttributeAnimation(const String&) const;
  11134. float GetAttributeAnimationSpeed(const String&) const;
  11135. float GetAttributeAnimationTime(const String&) const;
  11136. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11137. Variant GetAttributeDefault(const String&) const;
  11138. UIElement GetChild(const String&, bool = false) const;
  11139. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11140. Array<UIElement> GetChildren(bool = false) const;
  11141. UIElement GetElementEventSender() const;
  11142. bool GetInterceptNetworkUpdate(const String&) const;
  11143. uint GetNumChildren(bool) const;
  11144. void InsertChild(uint, UIElement);
  11145. bool IsInside(IntVector2, bool);
  11146. bool IsInsideCombined(IntVector2, bool);
  11147. bool Load(File, bool = false);
  11148. bool Load(VectorBuffer&, bool = false);
  11149. bool LoadChildXML(XMLFile, XMLFile = null);
  11150. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11151. bool LoadXML(File);
  11152. bool LoadXML(VectorBuffer&);
  11153. bool LoadXML(XMLFile, XMLFile);
  11154. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11155. bool LoadXML(const XMLElement&, bool = false);
  11156. void MarkNetworkUpdate() const;
  11157. void Remove();
  11158. void RemoveAllChildren();
  11159. void RemoveAttributeAnimation(const String&);
  11160. void RemoveChild(UIElement, uint = 0);
  11161. void RemoveChild(uint);
  11162. void RemoveInstanceDefault();
  11163. void RemoveObjectAnimation();
  11164. void ResetDeepEnabled();
  11165. void ResetToDefault();
  11166. bool Save(File) const;
  11167. bool Save(VectorBuffer&) const;
  11168. bool SaveXML(File, const String& = "\t");
  11169. bool SaveXML(VectorBuffer&, const String& = "\t");
  11170. bool SaveXML(XMLElement&) const;
  11171. IntVector2 ScreenToElement(const IntVector2&);
  11172. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11173. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11174. void SetAnimationTime(float);
  11175. bool SetAttribute(const String&, const Variant&);
  11176. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11177. void SetAttributeAnimationSpeed(const String&, float);
  11178. void SetAttributeAnimationTime(const String&, float);
  11179. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11180. void SetDeepEnabled(bool);
  11181. void SetEnabledRecursive(bool);
  11182. void SetFixedHeight(int);
  11183. void SetFixedSize(int, int);
  11184. void SetFixedWidth(int);
  11185. void SetInterceptNetworkUpdate(const String&, bool);
  11186. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11187. void SetMaxSize(int, int);
  11188. void SetMinSize(int, int);
  11189. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11190. void SetPosition(int, int);
  11191. void SetSize(int, int);
  11192. bool SetStyle(const String&, XMLFile = null);
  11193. bool SetStyle(const XMLElement&);
  11194. bool SetStyleAuto(XMLFile = null);
  11195. void UpdateLayout();
  11196. const Variant& GetVar(const StringHash&);
  11197. // Properties:
  11198. bool animationEnabled;
  11199. /* readonly */
  11200. Array<Variant> attributeDefaults;
  11201. /* readonly */
  11202. Array<AttributeInfo> attributeInfos;
  11203. Array<Variant> attributes;
  11204. bool bringToBack;
  11205. bool bringToFront;
  11206. /* readonly */
  11207. String category;
  11208. /* readonly */
  11209. IntVector2 childOffset;
  11210. /* readonly */
  11211. Array<UIElement> children;
  11212. IntRect clipBorder;
  11213. bool clipChildren;
  11214. /* writeonly */
  11215. Color color;
  11216. /* readonly */
  11217. bool colorGradient;
  11218. Array<Color> colors;
  11219. /* readonly */
  11220. IntRect combinedScreenRect;
  11221. XMLFile defaultStyle;
  11222. float delay;
  11223. /* readonly */
  11224. float derivedOpacity;
  11225. /* readonly */
  11226. uint dragButtonCombo;
  11227. /* readonly */
  11228. int dragButtonCount;
  11229. uint dragDropMode;
  11230. bool editable;
  11231. bool elementEventSender;
  11232. bool enabled;
  11233. /* readonly */
  11234. bool enabledSelf;
  11235. /* readonly */
  11236. bool fixedHeight;
  11237. /* readonly */
  11238. bool fixedSize;
  11239. /* readonly */
  11240. bool fixedWidth;
  11241. bool focus;
  11242. FocusMode focusMode;
  11243. int height;
  11244. HorizontalAlignment horizontalAlignment;
  11245. /* readonly */
  11246. bool hovering;
  11247. int indent;
  11248. int indentSpacing;
  11249. /* readonly */
  11250. int indentWidth;
  11251. bool internal;
  11252. IntRect layoutBorder;
  11253. Vector2 layoutFlexScale;
  11254. LayoutMode layoutMode;
  11255. int layoutSpacing;
  11256. int maxHeight;
  11257. IntVector2 maxSize;
  11258. int maxWidth;
  11259. int minHeight;
  11260. IntVector2 minSize;
  11261. int minWidth;
  11262. String name;
  11263. /* readonly */
  11264. uint numAllChildren;
  11265. /* readonly */
  11266. uint numAttributes;
  11267. /* readonly */
  11268. uint numChildren;
  11269. ObjectAnimation objectAnimation;
  11270. float opacity;
  11271. UIElement parent;
  11272. IntVector2 position;
  11273. int priority;
  11274. /* readonly */
  11275. int refs;
  11276. /* readonly */
  11277. UIElement root;
  11278. /* readonly */
  11279. IntVector2 screenPosition;
  11280. bool selected;
  11281. IntVector2 size;
  11282. bool sortChildren;
  11283. String style;
  11284. bool temporary;
  11285. TraversalMode traversalMode;
  11286. /* readonly */
  11287. StringHash type;
  11288. /* readonly */
  11289. String typeName;
  11290. bool useDerivedOpacity;
  11291. /* readonly */
  11292. VariantMap vars;
  11293. VerticalAlignment verticalAlignment;
  11294. bool visible;
  11295. /* readonly */
  11296. bool visibleEffective;
  11297. /* readonly */
  11298. int weakRefs;
  11299. int width;
  11300. };
  11301. class TouchState
  11302. {
  11303. // Properties:
  11304. IntVector2 delta;
  11305. IntVector2 lastPosition;
  11306. IntVector2 position;
  11307. float pressure;
  11308. int touchID;
  11309. /* readonly */
  11310. UIElement touchedElement;
  11311. };
  11312. class UI
  11313. {
  11314. // Methods:
  11315. void Clear();
  11316. void DebugDraw(UIElement);
  11317. UIElement GetElementAt(const IntVector2&, bool = true);
  11318. UIElement GetElementAt(int, int, bool = true);
  11319. bool HasModalElement() const;
  11320. bool IsDragging() const;
  11321. UIElement LoadLayout(File);
  11322. UIElement LoadLayout(File, XMLFile);
  11323. UIElement LoadLayout(VectorBuffer&);
  11324. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11325. UIElement LoadLayout(XMLFile);
  11326. UIElement LoadLayout(XMLFile, XMLFile);
  11327. bool SaveLayout(File, UIElement);
  11328. bool SaveLayout(VectorBuffer&, UIElement);
  11329. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11330. void SetFocusElement(UIElement, bool = false);
  11331. const Array<UIElement> GetDragElements();
  11332. // Properties:
  11333. /* readonly */
  11334. String category;
  11335. String clipBoardText;
  11336. Cursor cursor;
  11337. /* readonly */
  11338. IntVector2 cursorPosition;
  11339. float defaultToolTipDelay;
  11340. float doubleClickInterval;
  11341. int dragBeginDistance;
  11342. float dragBeginInterval;
  11343. UIElement focusElement;
  11344. bool forceAutoHint;
  11345. /* readonly */
  11346. UIElement frontElement;
  11347. int maxFontTextureSize;
  11348. /* readonly */
  11349. UIElement modalRoot;
  11350. bool nonFocusedMouseWheel;
  11351. /* readonly */
  11352. int refs;
  11353. /* readonly */
  11354. UIElement root;
  11355. /* readonly */
  11356. StringHash type;
  11357. /* readonly */
  11358. String typeName;
  11359. bool useMutableGlyphs;
  11360. bool useScreenKeyboard;
  11361. bool useSystemClipboard;
  11362. /* readonly */
  11363. int weakRefs;
  11364. };
  11365. class UIElement
  11366. {
  11367. // Methods:
  11368. void AddChild(UIElement);
  11369. void ApplyAttributes();
  11370. void BringToFront();
  11371. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11372. void DisableLayoutUpdate();
  11373. IntVector2 ElementToScreen(const IntVector2&);
  11374. void EnableLayoutUpdate();
  11375. uint FindChild(UIElement) const;
  11376. Variant GetAttribute(const String&) const;
  11377. ValueAnimation GetAttributeAnimation(const String&) const;
  11378. float GetAttributeAnimationSpeed(const String&) const;
  11379. float GetAttributeAnimationTime(const String&) const;
  11380. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11381. Variant GetAttributeDefault(const String&) const;
  11382. UIElement GetChild(const String&, bool = false) const;
  11383. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11384. Array<UIElement> GetChildren(bool = false) const;
  11385. UIElement GetElementEventSender() const;
  11386. bool GetInterceptNetworkUpdate(const String&) const;
  11387. uint GetNumChildren(bool) const;
  11388. void InsertChild(uint, UIElement);
  11389. bool IsInside(IntVector2, bool);
  11390. bool IsInsideCombined(IntVector2, bool);
  11391. bool Load(File, bool = false);
  11392. bool Load(VectorBuffer&, bool = false);
  11393. bool LoadChildXML(XMLFile, XMLFile = null);
  11394. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11395. bool LoadXML(File);
  11396. bool LoadXML(VectorBuffer&);
  11397. bool LoadXML(XMLFile, XMLFile);
  11398. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11399. bool LoadXML(const XMLElement&, bool = false);
  11400. void MarkNetworkUpdate() const;
  11401. void Remove();
  11402. void RemoveAllChildren();
  11403. void RemoveAttributeAnimation(const String&);
  11404. void RemoveChild(UIElement, uint = 0);
  11405. void RemoveChild(uint);
  11406. void RemoveInstanceDefault();
  11407. void RemoveObjectAnimation();
  11408. void ResetDeepEnabled();
  11409. void ResetToDefault();
  11410. bool Save(File) const;
  11411. bool Save(VectorBuffer&) const;
  11412. bool SaveXML(File, const String& = "\t");
  11413. bool SaveXML(VectorBuffer&, const String& = "\t");
  11414. bool SaveXML(XMLElement&) const;
  11415. IntVector2 ScreenToElement(const IntVector2&);
  11416. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11417. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11418. void SetAnimationTime(float);
  11419. bool SetAttribute(const String&, const Variant&);
  11420. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11421. void SetAttributeAnimationSpeed(const String&, float);
  11422. void SetAttributeAnimationTime(const String&, float);
  11423. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11424. void SetDeepEnabled(bool);
  11425. void SetEnabledRecursive(bool);
  11426. void SetFixedHeight(int);
  11427. void SetFixedSize(int, int);
  11428. void SetFixedWidth(int);
  11429. void SetInterceptNetworkUpdate(const String&, bool);
  11430. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11431. void SetMaxSize(int, int);
  11432. void SetMinSize(int, int);
  11433. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11434. void SetPosition(int, int);
  11435. void SetSize(int, int);
  11436. bool SetStyle(const String&, XMLFile = null);
  11437. bool SetStyle(const XMLElement&);
  11438. bool SetStyleAuto(XMLFile = null);
  11439. void UpdateLayout();
  11440. const Variant& GetVar(const StringHash&);
  11441. // Properties:
  11442. bool animationEnabled;
  11443. /* readonly */
  11444. Array<Variant> attributeDefaults;
  11445. /* readonly */
  11446. Array<AttributeInfo> attributeInfos;
  11447. Array<Variant> attributes;
  11448. bool bringToBack;
  11449. bool bringToFront;
  11450. /* readonly */
  11451. String category;
  11452. /* readonly */
  11453. IntVector2 childOffset;
  11454. /* readonly */
  11455. Array<UIElement> children;
  11456. IntRect clipBorder;
  11457. bool clipChildren;
  11458. /* writeonly */
  11459. Color color;
  11460. /* readonly */
  11461. bool colorGradient;
  11462. Array<Color> colors;
  11463. /* readonly */
  11464. IntRect combinedScreenRect;
  11465. XMLFile defaultStyle;
  11466. /* readonly */
  11467. float derivedOpacity;
  11468. /* readonly */
  11469. uint dragButtonCombo;
  11470. /* readonly */
  11471. int dragButtonCount;
  11472. uint dragDropMode;
  11473. bool editable;
  11474. bool elementEventSender;
  11475. bool enabled;
  11476. /* readonly */
  11477. bool enabledSelf;
  11478. /* readonly */
  11479. bool fixedHeight;
  11480. /* readonly */
  11481. bool fixedSize;
  11482. /* readonly */
  11483. bool fixedWidth;
  11484. bool focus;
  11485. FocusMode focusMode;
  11486. int height;
  11487. HorizontalAlignment horizontalAlignment;
  11488. /* readonly */
  11489. bool hovering;
  11490. int indent;
  11491. int indentSpacing;
  11492. /* readonly */
  11493. int indentWidth;
  11494. bool internal;
  11495. IntRect layoutBorder;
  11496. Vector2 layoutFlexScale;
  11497. LayoutMode layoutMode;
  11498. int layoutSpacing;
  11499. int maxHeight;
  11500. IntVector2 maxSize;
  11501. int maxWidth;
  11502. int minHeight;
  11503. IntVector2 minSize;
  11504. int minWidth;
  11505. String name;
  11506. /* readonly */
  11507. uint numAllChildren;
  11508. /* readonly */
  11509. uint numAttributes;
  11510. /* readonly */
  11511. uint numChildren;
  11512. ObjectAnimation objectAnimation;
  11513. float opacity;
  11514. UIElement parent;
  11515. IntVector2 position;
  11516. int priority;
  11517. /* readonly */
  11518. int refs;
  11519. /* readonly */
  11520. UIElement root;
  11521. /* readonly */
  11522. IntVector2 screenPosition;
  11523. bool selected;
  11524. IntVector2 size;
  11525. bool sortChildren;
  11526. String style;
  11527. bool temporary;
  11528. TraversalMode traversalMode;
  11529. /* readonly */
  11530. StringHash type;
  11531. /* readonly */
  11532. String typeName;
  11533. bool useDerivedOpacity;
  11534. /* readonly */
  11535. VariantMap vars;
  11536. VerticalAlignment verticalAlignment;
  11537. bool visible;
  11538. /* readonly */
  11539. bool visibleEffective;
  11540. /* readonly */
  11541. int weakRefs;
  11542. int width;
  11543. };
  11544. class ValueAnimation
  11545. {
  11546. // Methods:
  11547. bool Load(File);
  11548. bool Load(VectorBuffer&);
  11549. bool Save(File) const;
  11550. bool Save(VectorBuffer&) const;
  11551. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11552. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  11553. void SetKeyFrame(float, const Variant&);
  11554. // Properties:
  11555. /* readonly */
  11556. String category;
  11557. InterpMethod interpolationMethod;
  11558. /* readonly */
  11559. uint memoryUse;
  11560. String name;
  11561. /* readonly */
  11562. int refs;
  11563. float splineTension;
  11564. /* readonly */
  11565. StringHash type;
  11566. /* readonly */
  11567. String typeName;
  11568. /* readonly */
  11569. uint useTimer;
  11570. VariantType valueType;
  11571. /* readonly */
  11572. int weakRefs;
  11573. };
  11574. class Variant
  11575. {
  11576. // Methods:
  11577. void Clear();
  11578. const Color& GetColor() const;
  11579. void FromString(VariantType, const String&);
  11580. void FromString(const String&, const String&);
  11581. bool GetBool() const;
  11582. double GetDouble() const;
  11583. float GetFloat() const;
  11584. int GetInt() const;
  11585. RefCounted GetPtr() const;
  11586. ScriptObject GetScriptObject() const;
  11587. StringHash GetStringHash() const;
  11588. Array<String> GetStringVector() const;
  11589. uint GetUInt() const;
  11590. Array<Variant> GetVariantVector() const;
  11591. const IntRect& GetIntRect() const;
  11592. const IntVector2& GetIntVector2() const;
  11593. const Matrix3& GetMatrix3() const;
  11594. const Matrix3x4& GetMatrix3x4() const;
  11595. const Matrix4& GetMatrix4() const;
  11596. const Quaternion& GetQuaternion() const;
  11597. const ResourceRef& GetResourceRef() const;
  11598. const ResourceRefList& GetResourceRefList() const;
  11599. const String& GetString() const;
  11600. String ToString() const;
  11601. const VariantMap& GetVariantMap() const;
  11602. const Vector2& GetVector2() const;
  11603. const Vector3& GetVector3() const;
  11604. const Vector4& GetVector4() const;
  11605. const VectorBuffer GetBuffer() const;
  11606. // Properties:
  11607. /* readonly */
  11608. bool empty;
  11609. /* readonly */
  11610. VariantType type;
  11611. /* readonly */
  11612. String typeName;
  11613. /* readonly */
  11614. bool zero;
  11615. };
  11616. class VariantMap
  11617. {
  11618. // Methods:
  11619. void Clear();
  11620. bool Contains(StringHash) const;
  11621. bool Contains(const String&) const;
  11622. bool Erase(StringHash);
  11623. bool Erase(const String&);
  11624. // Properties:
  11625. /* readonly */
  11626. Array<StringHash> keys;
  11627. /* readonly */
  11628. uint length;
  11629. /* readonly */
  11630. Array<Variant> values;
  11631. };
  11632. class Vector2
  11633. {
  11634. // Methods:
  11635. Vector2 Abs() const;
  11636. float AbsDotProduct(const Vector2&) const;
  11637. float DotProduct(const Vector2&) const;
  11638. bool Equals(const Vector2&) const;
  11639. bool IsNaN() const;
  11640. Vector2 Lerp(const Vector2&, float) const;
  11641. void Normalize();
  11642. Vector2 Normalized() const;
  11643. String ToString() const;
  11644. // Properties:
  11645. /* readonly */
  11646. Array<float> data;
  11647. /* readonly */
  11648. float length;
  11649. /* readonly */
  11650. float lengthSquared;
  11651. float x;
  11652. float y;
  11653. };
  11654. class Vector3
  11655. {
  11656. // Methods:
  11657. Vector3 Abs() const;
  11658. float AbsDotProduct(const Vector3&) const;
  11659. float Angle(const Vector3&) const;
  11660. Vector3 CrossProduct(const Vector3&) const;
  11661. float DotProduct(const Vector3&) const;
  11662. bool Equals(const Vector3&) const;
  11663. bool IsNaN() const;
  11664. Vector3 Lerp(const Vector3&, float) const;
  11665. void Normalize();
  11666. Vector3 Normalized() const;
  11667. String ToString() const;
  11668. // Properties:
  11669. /* readonly */
  11670. Array<float> data;
  11671. /* readonly */
  11672. float length;
  11673. /* readonly */
  11674. float lengthSquared;
  11675. float x;
  11676. float y;
  11677. float z;
  11678. };
  11679. class Vector4
  11680. {
  11681. // Methods:
  11682. Vector4 Abs() const;
  11683. float AbsDotProduct(const Vector4&) const;
  11684. float DotProduct(const Vector4&) const;
  11685. bool Equals(const Vector4&) const;
  11686. bool IsNaN() const;
  11687. Vector4 Lerp(const Vector4&, float) const;
  11688. String ToString() const;
  11689. // Properties:
  11690. /* readonly */
  11691. Array<float> data;
  11692. float w;
  11693. float x;
  11694. float y;
  11695. float z;
  11696. };
  11697. class VectorBuffer
  11698. {
  11699. // Methods:
  11700. void Clear();
  11701. Array<uint8> Read(uint);
  11702. bool ReadBool();
  11703. BoundingBox ReadBoundingBox();
  11704. int8 ReadByte();
  11705. Color ReadColor();
  11706. double ReadDouble();
  11707. String ReadFileID();
  11708. float ReadFloat();
  11709. int ReadInt();
  11710. IntRect ReadIntRect();
  11711. IntVector2 ReadIntVector2();
  11712. String ReadLine();
  11713. Matrix3 ReadMatrix3();
  11714. Matrix3x4 ReadMatrix3x4();
  11715. Matrix4 ReadMatrix4();
  11716. uint ReadNetID();
  11717. Quaternion ReadPackedQuaternion();
  11718. Vector3 ReadPackedVector3(float);
  11719. Quaternion ReadQuaternion();
  11720. int16 ReadShort();
  11721. String ReadString();
  11722. StringHash ReadStringHash();
  11723. uint8 ReadUByte();
  11724. uint ReadUInt();
  11725. uint16 ReadUShort();
  11726. uint ReadVLE();
  11727. Variant ReadVariant();
  11728. VariantMap ReadVariantMap();
  11729. Vector2 ReadVector2();
  11730. Vector3 ReadVector3();
  11731. Vector4 ReadVector4();
  11732. VectorBuffer ReadVectorBuffer(uint);
  11733. void Resize(uint);
  11734. uint Seek(uint);
  11735. void SetData(Deserializer, uint);
  11736. uint Write(Array<uint8>);
  11737. bool WriteBool(bool);
  11738. bool WriteBoundingBox(const BoundingBox&);
  11739. bool WriteByte(int8);
  11740. bool WriteColor(const Color&);
  11741. bool WriteDouble(double);
  11742. bool WriteFileID(const String&);
  11743. bool WriteFloat(float);
  11744. bool WriteInt(int);
  11745. bool WriteIntRect(const IntRect&);
  11746. bool WriteIntVector2(const IntVector2&);
  11747. bool WriteLine(const String&);
  11748. bool WriteMatrix3(const Matrix3&);
  11749. bool WriteMatrix3x4(const Matrix3x4&);
  11750. bool WriteMatrix4(const Matrix4&);
  11751. bool WriteNetID(uint);
  11752. bool WritePackedQuaternion(const Quaternion&);
  11753. bool WritePackedVector3(const Vector3&, float);
  11754. bool WriteQuaternion(const Quaternion&);
  11755. bool WriteShort(int16);
  11756. bool WriteString(const String&);
  11757. bool WriteStringHash(const StringHash&);
  11758. bool WriteUByte(uint8);
  11759. bool WriteUInt(uint);
  11760. bool WriteUShort(uint16);
  11761. bool WriteVLE(uint);
  11762. bool WriteVariant(const Variant&);
  11763. bool WriteVariantMap(const VariantMap&);
  11764. bool WriteVector2(const Vector2&);
  11765. bool WriteVector3(const Vector3&);
  11766. bool WriteVector4(const Vector4&);
  11767. bool WriteVectorBuffer(const VectorBuffer&);
  11768. // Properties:
  11769. /* readonly */
  11770. uint checksum;
  11771. /* readonly */
  11772. bool eof;
  11773. /* readonly */
  11774. String name;
  11775. /* readonly */
  11776. uint position;
  11777. /* readonly */
  11778. uint size;
  11779. };
  11780. class VertexBuffer
  11781. {
  11782. // Methods:
  11783. VectorBuffer GetData();
  11784. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11785. bool SetData(VectorBuffer&);
  11786. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  11787. void SetSize(uint, uint, bool = false);
  11788. // Properties:
  11789. /* readonly */
  11790. String category;
  11791. /* readonly */
  11792. bool dynamic;
  11793. /* readonly */
  11794. uint elementMask;
  11795. /* readonly */
  11796. int refs;
  11797. bool shadowed;
  11798. /* readonly */
  11799. StringHash type;
  11800. /* readonly */
  11801. String typeName;
  11802. /* readonly */
  11803. uint vertexCount;
  11804. /* readonly */
  11805. uint vertexSize;
  11806. /* readonly */
  11807. int weakRefs;
  11808. };
  11809. class View3D
  11810. {
  11811. // Methods:
  11812. void AddChild(UIElement);
  11813. void ApplyAttributes();
  11814. void BringToFront();
  11815. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11816. void DisableLayoutUpdate();
  11817. IntVector2 ElementToScreen(const IntVector2&);
  11818. void EnableLayoutUpdate();
  11819. uint FindChild(UIElement) const;
  11820. Variant GetAttribute(const String&) const;
  11821. ValueAnimation GetAttributeAnimation(const String&) const;
  11822. float GetAttributeAnimationSpeed(const String&) const;
  11823. float GetAttributeAnimationTime(const String&) const;
  11824. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11825. Variant GetAttributeDefault(const String&) const;
  11826. UIElement GetChild(const String&, bool = false) const;
  11827. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11828. Array<UIElement> GetChildren(bool = false) const;
  11829. UIElement GetElementEventSender() const;
  11830. bool GetInterceptNetworkUpdate(const String&) const;
  11831. uint GetNumChildren(bool) const;
  11832. void InsertChild(uint, UIElement);
  11833. bool IsInside(IntVector2, bool);
  11834. bool IsInsideCombined(IntVector2, bool);
  11835. bool Load(File, bool = false);
  11836. bool Load(VectorBuffer&, bool = false);
  11837. bool LoadChildXML(XMLFile, XMLFile = null);
  11838. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11839. bool LoadXML(File);
  11840. bool LoadXML(VectorBuffer&);
  11841. bool LoadXML(XMLFile, XMLFile);
  11842. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11843. bool LoadXML(const XMLElement&, bool = false);
  11844. void MarkNetworkUpdate() const;
  11845. void QueueUpdate();
  11846. void Remove();
  11847. void RemoveAllChildren();
  11848. void RemoveAttributeAnimation(const String&);
  11849. void RemoveChild(UIElement, uint = 0);
  11850. void RemoveChild(uint);
  11851. void RemoveInstanceDefault();
  11852. void RemoveObjectAnimation();
  11853. void ResetDeepEnabled();
  11854. void ResetToDefault();
  11855. bool Save(File) const;
  11856. bool Save(VectorBuffer&) const;
  11857. bool SaveXML(File, const String& = "\t");
  11858. bool SaveXML(VectorBuffer&, const String& = "\t");
  11859. bool SaveXML(XMLElement&) const;
  11860. IntVector2 ScreenToElement(const IntVector2&);
  11861. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11862. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11863. void SetAnimationTime(float);
  11864. bool SetAttribute(const String&, const Variant&);
  11865. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11866. void SetAttributeAnimationSpeed(const String&, float);
  11867. void SetAttributeAnimationTime(const String&, float);
  11868. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11869. void SetDeepEnabled(bool);
  11870. void SetEnabledRecursive(bool);
  11871. void SetFixedHeight(int);
  11872. void SetFixedSize(int, int);
  11873. void SetFixedWidth(int);
  11874. void SetFullImageRect();
  11875. void SetHoverOffset(int, int);
  11876. void SetInterceptNetworkUpdate(const String&, bool);
  11877. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11878. void SetMaxSize(int, int);
  11879. void SetMinSize(int, int);
  11880. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11881. void SetPosition(int, int);
  11882. void SetSize(int, int);
  11883. bool SetStyle(const String&, XMLFile = null);
  11884. bool SetStyle(const XMLElement&);
  11885. bool SetStyleAuto(XMLFile = null);
  11886. void SetView(Scene, Camera, bool = true);
  11887. void UpdateLayout();
  11888. const Variant& GetVar(const StringHash&);
  11889. // Properties:
  11890. bool animationEnabled;
  11891. /* readonly */
  11892. Array<Variant> attributeDefaults;
  11893. /* readonly */
  11894. Array<AttributeInfo> attributeInfos;
  11895. Array<Variant> attributes;
  11896. bool autoUpdate;
  11897. BlendMode blendMode;
  11898. IntRect border;
  11899. bool bringToBack;
  11900. bool bringToFront;
  11901. /* readonly */
  11902. Node cameraNode;
  11903. /* readonly */
  11904. String category;
  11905. /* readonly */
  11906. IntVector2 childOffset;
  11907. /* readonly */
  11908. Array<UIElement> children;
  11909. IntRect clipBorder;
  11910. bool clipChildren;
  11911. /* writeonly */
  11912. Color color;
  11913. /* readonly */
  11914. bool colorGradient;
  11915. Array<Color> colors;
  11916. /* readonly */
  11917. IntRect combinedScreenRect;
  11918. XMLFile defaultStyle;
  11919. /* readonly */
  11920. Texture2D depthTexture;
  11921. /* readonly */
  11922. float derivedOpacity;
  11923. /* readonly */
  11924. uint dragButtonCombo;
  11925. /* readonly */
  11926. int dragButtonCount;
  11927. uint dragDropMode;
  11928. bool editable;
  11929. bool elementEventSender;
  11930. bool enabled;
  11931. /* readonly */
  11932. bool enabledSelf;
  11933. /* readonly */
  11934. bool fixedHeight;
  11935. bool fixedHeightResizing;
  11936. /* readonly */
  11937. bool fixedSize;
  11938. /* readonly */
  11939. bool fixedWidth;
  11940. bool fixedWidthResizing;
  11941. bool focus;
  11942. FocusMode focusMode;
  11943. uint format;
  11944. int height;
  11945. HorizontalAlignment horizontalAlignment;
  11946. IntVector2 hoverOffset;
  11947. /* readonly */
  11948. bool hovering;
  11949. IntRect imageBorder;
  11950. IntRect imageRect;
  11951. int indent;
  11952. int indentSpacing;
  11953. /* readonly */
  11954. int indentWidth;
  11955. bool internal;
  11956. IntRect layoutBorder;
  11957. Vector2 layoutFlexScale;
  11958. LayoutMode layoutMode;
  11959. int layoutSpacing;
  11960. int maxHeight;
  11961. IntVector2 maxSize;
  11962. int maxWidth;
  11963. int minHeight;
  11964. IntVector2 minSize;
  11965. int minWidth;
  11966. bool modal;
  11967. bool modalAutoDismiss;
  11968. Color modalFrameColor;
  11969. IntVector2 modalFrameSize;
  11970. Color modalShadeColor;
  11971. bool movable;
  11972. String name;
  11973. /* readonly */
  11974. uint numAllChildren;
  11975. /* readonly */
  11976. uint numAttributes;
  11977. /* readonly */
  11978. uint numChildren;
  11979. ObjectAnimation objectAnimation;
  11980. float opacity;
  11981. UIElement parent;
  11982. IntVector2 position;
  11983. int priority;
  11984. /* readonly */
  11985. int refs;
  11986. /* readonly */
  11987. Texture2D renderTexture;
  11988. bool resizable;
  11989. IntRect resizeBorder;
  11990. /* readonly */
  11991. UIElement root;
  11992. /* readonly */
  11993. Scene scene;
  11994. /* readonly */
  11995. IntVector2 screenPosition;
  11996. bool selected;
  11997. IntVector2 size;
  11998. bool sortChildren;
  11999. String style;
  12000. bool temporary;
  12001. Texture texture;
  12002. bool tiled;
  12003. TraversalMode traversalMode;
  12004. /* readonly */
  12005. StringHash type;
  12006. /* readonly */
  12007. String typeName;
  12008. bool useDerivedOpacity;
  12009. /* readonly */
  12010. VariantMap vars;
  12011. VerticalAlignment verticalAlignment;
  12012. /* readonly */
  12013. Viewport viewport;
  12014. bool visible;
  12015. /* readonly */
  12016. bool visibleEffective;
  12017. /* readonly */
  12018. int weakRefs;
  12019. int width;
  12020. };
  12021. class Viewport
  12022. {
  12023. // Methods:
  12024. Ray GetScreenRay(int, int) const;
  12025. Vector3 ScreenToWorldPoint(int, int, float) const;
  12026. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12027. void SetRenderPath(XMLFile);
  12028. Vector2 WorldToScreenPoint(const Vector3&) const;
  12029. // Properties:
  12030. Camera camera;
  12031. /* readonly */
  12032. String category;
  12033. Camera cullCamera;
  12034. bool drawDebug;
  12035. IntRect rect;
  12036. /* readonly */
  12037. int refs;
  12038. RenderPath renderPath;
  12039. Scene scene;
  12040. /* readonly */
  12041. StringHash type;
  12042. /* readonly */
  12043. String typeName;
  12044. /* readonly */
  12045. int weakRefs;
  12046. };
  12047. class WeakHandle
  12048. {
  12049. // Methods:
  12050. RefCounted Get() const;
  12051. // Properties:
  12052. /* readonly */
  12053. bool expired;
  12054. /* readonly */
  12055. int refs;
  12056. /* readonly */
  12057. int weakRefs;
  12058. };
  12059. class Window
  12060. {
  12061. // Methods:
  12062. void AddChild(UIElement);
  12063. void ApplyAttributes();
  12064. void BringToFront();
  12065. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12066. void DisableLayoutUpdate();
  12067. IntVector2 ElementToScreen(const IntVector2&);
  12068. void EnableLayoutUpdate();
  12069. uint FindChild(UIElement) const;
  12070. Variant GetAttribute(const String&) const;
  12071. ValueAnimation GetAttributeAnimation(const String&) const;
  12072. float GetAttributeAnimationSpeed(const String&) const;
  12073. float GetAttributeAnimationTime(const String&) const;
  12074. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12075. Variant GetAttributeDefault(const String&) const;
  12076. UIElement GetChild(const String&, bool = false) const;
  12077. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12078. Array<UIElement> GetChildren(bool = false) const;
  12079. UIElement GetElementEventSender() const;
  12080. bool GetInterceptNetworkUpdate(const String&) const;
  12081. uint GetNumChildren(bool) const;
  12082. void InsertChild(uint, UIElement);
  12083. bool IsInside(IntVector2, bool);
  12084. bool IsInsideCombined(IntVector2, bool);
  12085. bool Load(File, bool = false);
  12086. bool Load(VectorBuffer&, bool = false);
  12087. bool LoadChildXML(XMLFile, XMLFile = null);
  12088. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12089. bool LoadXML(File);
  12090. bool LoadXML(VectorBuffer&);
  12091. bool LoadXML(XMLFile, XMLFile);
  12092. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12093. bool LoadXML(const XMLElement&, bool = false);
  12094. void MarkNetworkUpdate() const;
  12095. void Remove();
  12096. void RemoveAllChildren();
  12097. void RemoveAttributeAnimation(const String&);
  12098. void RemoveChild(UIElement, uint = 0);
  12099. void RemoveChild(uint);
  12100. void RemoveInstanceDefault();
  12101. void RemoveObjectAnimation();
  12102. void ResetDeepEnabled();
  12103. void ResetToDefault();
  12104. bool Save(File) const;
  12105. bool Save(VectorBuffer&) const;
  12106. bool SaveXML(File, const String& = "\t");
  12107. bool SaveXML(VectorBuffer&, const String& = "\t");
  12108. bool SaveXML(XMLElement&) const;
  12109. IntVector2 ScreenToElement(const IntVector2&);
  12110. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12111. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12112. void SetAnimationTime(float);
  12113. bool SetAttribute(const String&, const Variant&);
  12114. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12115. void SetAttributeAnimationSpeed(const String&, float);
  12116. void SetAttributeAnimationTime(const String&, float);
  12117. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12118. void SetDeepEnabled(bool);
  12119. void SetEnabledRecursive(bool);
  12120. void SetFixedHeight(int);
  12121. void SetFixedSize(int, int);
  12122. void SetFixedWidth(int);
  12123. void SetFullImageRect();
  12124. void SetHoverOffset(int, int);
  12125. void SetInterceptNetworkUpdate(const String&, bool);
  12126. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12127. void SetMaxSize(int, int);
  12128. void SetMinSize(int, int);
  12129. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12130. void SetPosition(int, int);
  12131. void SetSize(int, int);
  12132. bool SetStyle(const String&, XMLFile = null);
  12133. bool SetStyle(const XMLElement&);
  12134. bool SetStyleAuto(XMLFile = null);
  12135. void UpdateLayout();
  12136. const Variant& GetVar(const StringHash&);
  12137. // Properties:
  12138. bool animationEnabled;
  12139. /* readonly */
  12140. Array<Variant> attributeDefaults;
  12141. /* readonly */
  12142. Array<AttributeInfo> attributeInfos;
  12143. Array<Variant> attributes;
  12144. BlendMode blendMode;
  12145. IntRect border;
  12146. bool bringToBack;
  12147. bool bringToFront;
  12148. /* readonly */
  12149. String category;
  12150. /* readonly */
  12151. IntVector2 childOffset;
  12152. /* readonly */
  12153. Array<UIElement> children;
  12154. IntRect clipBorder;
  12155. bool clipChildren;
  12156. /* writeonly */
  12157. Color color;
  12158. /* readonly */
  12159. bool colorGradient;
  12160. Array<Color> colors;
  12161. /* readonly */
  12162. IntRect combinedScreenRect;
  12163. XMLFile defaultStyle;
  12164. /* readonly */
  12165. float derivedOpacity;
  12166. /* readonly */
  12167. uint dragButtonCombo;
  12168. /* readonly */
  12169. int dragButtonCount;
  12170. uint dragDropMode;
  12171. bool editable;
  12172. bool elementEventSender;
  12173. bool enabled;
  12174. /* readonly */
  12175. bool enabledSelf;
  12176. /* readonly */
  12177. bool fixedHeight;
  12178. bool fixedHeightResizing;
  12179. /* readonly */
  12180. bool fixedSize;
  12181. /* readonly */
  12182. bool fixedWidth;
  12183. bool fixedWidthResizing;
  12184. bool focus;
  12185. FocusMode focusMode;
  12186. int height;
  12187. HorizontalAlignment horizontalAlignment;
  12188. IntVector2 hoverOffset;
  12189. /* readonly */
  12190. bool hovering;
  12191. IntRect imageBorder;
  12192. IntRect imageRect;
  12193. int indent;
  12194. int indentSpacing;
  12195. /* readonly */
  12196. int indentWidth;
  12197. bool internal;
  12198. IntRect layoutBorder;
  12199. Vector2 layoutFlexScale;
  12200. LayoutMode layoutMode;
  12201. int layoutSpacing;
  12202. int maxHeight;
  12203. IntVector2 maxSize;
  12204. int maxWidth;
  12205. int minHeight;
  12206. IntVector2 minSize;
  12207. int minWidth;
  12208. bool modal;
  12209. bool modalAutoDismiss;
  12210. Color modalFrameColor;
  12211. IntVector2 modalFrameSize;
  12212. Color modalShadeColor;
  12213. bool movable;
  12214. String name;
  12215. /* readonly */
  12216. uint numAllChildren;
  12217. /* readonly */
  12218. uint numAttributes;
  12219. /* readonly */
  12220. uint numChildren;
  12221. ObjectAnimation objectAnimation;
  12222. float opacity;
  12223. UIElement parent;
  12224. IntVector2 position;
  12225. int priority;
  12226. /* readonly */
  12227. int refs;
  12228. bool resizable;
  12229. IntRect resizeBorder;
  12230. /* readonly */
  12231. UIElement root;
  12232. /* readonly */
  12233. IntVector2 screenPosition;
  12234. bool selected;
  12235. IntVector2 size;
  12236. bool sortChildren;
  12237. String style;
  12238. bool temporary;
  12239. Texture texture;
  12240. bool tiled;
  12241. TraversalMode traversalMode;
  12242. /* readonly */
  12243. StringHash type;
  12244. /* readonly */
  12245. String typeName;
  12246. bool useDerivedOpacity;
  12247. /* readonly */
  12248. VariantMap vars;
  12249. VerticalAlignment verticalAlignment;
  12250. bool visible;
  12251. /* readonly */
  12252. bool visibleEffective;
  12253. /* readonly */
  12254. int weakRefs;
  12255. int width;
  12256. };
  12257. class XMLElement
  12258. {
  12259. // Methods:
  12260. XMLElement CreateChild(const String&);
  12261. String GetAttribute(const String& = String ( )) const;
  12262. String GetAttributeLower(const String&) const;
  12263. Array<String> GetAttributeNames() const;
  12264. String GetAttributeUpper(const String&) const;
  12265. bool GetBool(const String&) const;
  12266. BoundingBox GetBoundingBox() const;
  12267. XMLElement GetChild(const String& = String ( )) const;
  12268. Color GetColor(const String&) const;
  12269. double GetDouble(const String&) const;
  12270. float GetFloat(const String&) const;
  12271. int GetInt(const String&) const;
  12272. IntRect GetIntRect(const String&) const;
  12273. IntVector2 GetIntVector2(const String&) const;
  12274. Matrix3 GetMatrix3(const String&) const;
  12275. Matrix3x4 GetMatrix3x4(const String&) const;
  12276. Matrix4 GetMatrix4(const String&) const;
  12277. XMLElement GetNext(const String& = String ( )) const;
  12278. Quaternion GetQuaternion(const String&) const;
  12279. ResourceRef GetResourceRef() const;
  12280. ResourceRefList GetResourceRefList() const;
  12281. uint GetUInt(const String&) const;
  12282. String GetValue() const;
  12283. Variant GetVariant() const;
  12284. VariantMap GetVariantMap() const;
  12285. Array<Variant> GetVariantVector() const;
  12286. Vector2 GetVector2(const String&) const;
  12287. Vector3 GetVector3(const String&) const;
  12288. Vector4 GetVector4(const String&) const;
  12289. Variant GetVectorVariant(const String&) const;
  12290. bool HasAttribute(const String&) const;
  12291. bool HasChild(const String&) const;
  12292. bool RemoveAttribute(const String& = String ( ));
  12293. bool RemoveChild(const String&);
  12294. bool RemoveChild(const XMLElement&);
  12295. bool RemoveChildren(const String& = String ( ));
  12296. XPathResultSet Select(const String&);
  12297. XPathResultSet SelectPrepared(const XPathQuery&);
  12298. XMLElement SelectSingle(const String&);
  12299. XMLElement SelectSinglePrepared(const XPathQuery&);
  12300. bool SetAttribute(const String&);
  12301. bool SetAttribute(const String&, const String&);
  12302. bool SetBool(const String&, bool);
  12303. bool SetBoundingBox(const BoundingBox&);
  12304. bool SetColor(const String&, const Color&);
  12305. bool SetDouble(const String&, double);
  12306. bool SetFloat(const String&, float);
  12307. bool SetInt(const String&, int);
  12308. bool SetIntRect(const String&, const IntRect&);
  12309. bool SetIntVector2(const String&, const IntVector2&);
  12310. bool SetMatrix3(const String&, const Matrix3&);
  12311. bool SetMatrix3x4(const String&, const Matrix3x4&);
  12312. bool SetMatrix4(const String&, const Matrix4&);
  12313. bool SetQuaternion(const String&, const Quaternion&);
  12314. bool SetResourceRef(const String&, const ResourceRef&);
  12315. bool SetResourceRefList(const String&, const ResourceRefList&);
  12316. bool SetUInt(const String&, uint);
  12317. bool SetValue(const String&);
  12318. bool SetVariant(const Variant&);
  12319. bool SetVariantMap(const VariantMap&);
  12320. bool SetVariantVector(Array<Variant>);
  12321. bool SetVector2(const String&, const Vector2&);
  12322. bool SetVector3(const String&, const Vector3&);
  12323. bool SetVector4(const String&, const Vector4&);
  12324. bool SetVectorVariant(const String&, const Variant&);
  12325. // Properties:
  12326. /* readonly */
  12327. XMLFile file;
  12328. /* readonly */
  12329. bool isNull;
  12330. /* readonly */
  12331. String name;
  12332. /* readonly */
  12333. XMLElement nextResult;
  12334. /* readonly */
  12335. bool notNull;
  12336. /* readonly */
  12337. uint numAttributes;
  12338. /* readonly */
  12339. XMLElement parent;
  12340. String value;
  12341. };
  12342. class XMLFile
  12343. {
  12344. // Methods:
  12345. XMLElement CreateRoot(const String&);
  12346. bool FromString(const String&);
  12347. XMLElement GetRoot(const String& = String ( ));
  12348. bool Load(File);
  12349. bool Load(VectorBuffer&);
  12350. void Patch(XMLElement);
  12351. void Patch(XMLFile);
  12352. bool Save(File) const;
  12353. bool Save(File, const String&) const;
  12354. bool Save(VectorBuffer&) const;
  12355. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12356. String ToString(const String& = String ( "\t" )) const;
  12357. // Properties:
  12358. /* readonly */
  12359. String category;
  12360. /* readonly */
  12361. uint memoryUse;
  12362. String name;
  12363. /* readonly */
  12364. int refs;
  12365. /* readonly */
  12366. XMLElement root;
  12367. /* readonly */
  12368. StringHash type;
  12369. /* readonly */
  12370. String typeName;
  12371. /* readonly */
  12372. uint useTimer;
  12373. /* readonly */
  12374. int weakRefs;
  12375. };
  12376. class XPathQuery
  12377. {
  12378. // Methods:
  12379. void Bind();
  12380. void Clear();
  12381. XPathResultSet Evaluate(XMLElement);
  12382. bool EvaluateToBool(XMLElement);
  12383. float EvaluateToFloat(XMLElement);
  12384. String EvaluateToString(XMLElement);
  12385. bool SetQuery(const String&, const String& = String ( ), bool = true);
  12386. bool SetVariable(const String&, bool);
  12387. bool SetVariable(const String&, const String&);
  12388. bool SetVariable(const String&, const XPathResultSet&);
  12389. bool SetVariable(const String&, float);
  12390. // Properties:
  12391. String query;
  12392. };
  12393. class XPathResultSet
  12394. {
  12395. // Properties:
  12396. /* readonly */
  12397. bool empty;
  12398. /* readonly */
  12399. XMLElement firstResult;
  12400. /* readonly */
  12401. uint size;
  12402. };
  12403. class Zone
  12404. {
  12405. // Methods:
  12406. void ApplyAttributes();
  12407. void DrawDebugGeometry(DebugRenderer, bool);
  12408. Variant GetAttribute(const String&) const;
  12409. ValueAnimation GetAttributeAnimation(const String&) const;
  12410. float GetAttributeAnimationSpeed(const String&) const;
  12411. float GetAttributeAnimationTime(const String&) const;
  12412. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12413. Variant GetAttributeDefault(const String&) const;
  12414. bool GetInterceptNetworkUpdate(const String&) const;
  12415. bool IsInView(Camera) const;
  12416. bool Load(File, bool = false);
  12417. bool Load(VectorBuffer&, bool = false);
  12418. bool LoadXML(const XMLElement&, bool = false);
  12419. void MarkNetworkUpdate() const;
  12420. void Remove();
  12421. void RemoveAttributeAnimation(const String&);
  12422. void RemoveInstanceDefault();
  12423. void RemoveObjectAnimation();
  12424. void ResetToDefault();
  12425. bool Save(File) const;
  12426. bool Save(VectorBuffer&) const;
  12427. bool SaveXML(XMLElement&) const;
  12428. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12429. void SetAnimationTime(float);
  12430. bool SetAttribute(const String&, const Variant&);
  12431. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12432. void SetAttributeAnimationSpeed(const String&, float);
  12433. void SetAttributeAnimationTime(const String&, float);
  12434. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12435. void SetInterceptNetworkUpdate(const String&, bool);
  12436. // Properties:
  12437. Color ambientColor;
  12438. /* readonly */
  12439. Color ambientEndColor;
  12440. bool ambientGradient;
  12441. /* readonly */
  12442. Color ambientStartColor;
  12443. bool animationEnabled;
  12444. /* readonly */
  12445. Array<Variant> attributeDefaults;
  12446. /* readonly */
  12447. Array<AttributeInfo> attributeInfos;
  12448. Array<Variant> attributes;
  12449. BoundingBox boundingBox;
  12450. bool castShadows;
  12451. /* readonly */
  12452. String category;
  12453. float drawDistance;
  12454. bool enabled;
  12455. /* readonly */
  12456. bool enabledEffective;
  12457. Color fogColor;
  12458. float fogEnd;
  12459. float fogHeight;
  12460. float fogHeightScale;
  12461. float fogStart;
  12462. bool heightFog;
  12463. /* readonly */
  12464. uint id;
  12465. /* readonly */
  12466. bool inView;
  12467. /* readonly */
  12468. Matrix3x4 inverseWorldTransform;
  12469. uint lightMask;
  12470. float lodBias;
  12471. uint maxLights;
  12472. /* readonly */
  12473. Node node;
  12474. /* readonly */
  12475. uint numAttributes;
  12476. ObjectAnimation objectAnimation;
  12477. bool occludee;
  12478. bool occluder;
  12479. bool override;
  12480. int priority;
  12481. /* readonly */
  12482. int refs;
  12483. float shadowDistance;
  12484. uint shadowMask;
  12485. bool temporary;
  12486. /* readonly */
  12487. StringHash type;
  12488. /* readonly */
  12489. String typeName;
  12490. uint viewMask;
  12491. /* readonly */
  12492. int weakRefs;
  12493. /* readonly */
  12494. BoundingBox worldBoundingBox;
  12495. uint zoneMask;
  12496. Texture zoneTexture;
  12497. };
  12498. // Enumerations
  12499. enum BlendMode
  12500. {
  12501. BLEND_REPLACE,
  12502. BLEND_ADD,
  12503. BLEND_MULTIPLY,
  12504. BLEND_ALPHA,
  12505. BLEND_ADDALPHA,
  12506. BLEND_PREMULALPHA,
  12507. BLEND_INVDESTALPHA,
  12508. BLEND_SUBTRACT,
  12509. BLEND_SUBTRACTALPHA,
  12510. };
  12511. enum BodyType2D
  12512. {
  12513. BT_STATIC,
  12514. BT_KINEMATIC,
  12515. BT_DYNAMIC,
  12516. };
  12517. enum CollisionEventMode
  12518. {
  12519. COLLISION_NEVER,
  12520. COLLISION_ACTIVE,
  12521. COLLISION_ALWAYS,
  12522. };
  12523. enum CompareMode
  12524. {
  12525. CMP_ALWAYS,
  12526. CMP_EQUAL,
  12527. CMP_NOTEQUAL,
  12528. CMP_LESS,
  12529. CMP_LESSEQUAL,
  12530. CMP_GREATER,
  12531. CMP_GREATEREQUAL,
  12532. };
  12533. enum CompressedFormat
  12534. {
  12535. CF_NONE,
  12536. CF_RGBA,
  12537. CF_DXT1,
  12538. CF_DXT3,
  12539. CF_DXT5,
  12540. CF_ETC1,
  12541. CF_PVRTC_RGB_2BPP,
  12542. CF_PVRTC_RGBA_2BPP,
  12543. CF_PVRTC_RGB_4BPP,
  12544. CF_PVRTC_RGBA_4BPP,
  12545. };
  12546. enum ConstraintType
  12547. {
  12548. CONSTRAINT_POINT,
  12549. CONSTRAINT_HINGE,
  12550. CONSTRAINT_SLIDER,
  12551. CONSTRAINT_CONETWIST,
  12552. };
  12553. enum Corner
  12554. {
  12555. C_TOPLEFT,
  12556. C_TOPRIGHT,
  12557. C_BOTTOMLEFT,
  12558. C_BOTTOMRIGHT,
  12559. };
  12560. enum CreateMode
  12561. {
  12562. REPLICATED,
  12563. LOCAL,
  12564. };
  12565. enum CrowdAgentRequestedTarget
  12566. {
  12567. CA_REQUESTEDTARGET_NONE,
  12568. CA_REQUESTEDTARGET_POSITION,
  12569. CA_REQUESTEDTARGET_VELOCITY,
  12570. };
  12571. enum CrowdAgentState
  12572. {
  12573. CA_STATE_INVALID,
  12574. CA_STATE_WALKING,
  12575. CA_STATE_OFFMESH,
  12576. };
  12577. enum CrowdAgentTargetState
  12578. {
  12579. CA_TARGET_NONE,
  12580. CA_TARGET_FAILED,
  12581. CA_TARGET_VALID,
  12582. CA_TARGET_REQUESTING,
  12583. CA_TARGET_WAITINGFORQUEUE,
  12584. CA_TARGET_WAITINGFORPATH,
  12585. CA_TARGET_VELOCITY,
  12586. };
  12587. enum CubeMapFace
  12588. {
  12589. FACE_POSITIVE_X,
  12590. FACE_NEGATIVE_X,
  12591. FACE_POSITIVE_Y,
  12592. FACE_NEGATIVE_Y,
  12593. FACE_POSITIVE_Z,
  12594. FACE_NEGATIVE_Z,
  12595. };
  12596. enum CullMode
  12597. {
  12598. CULL_NONE,
  12599. CULL_CCW,
  12600. CULL_CW,
  12601. };
  12602. enum CursorShape
  12603. {
  12604. CS_NORMAL,
  12605. CS_IBEAM,
  12606. CS_CROSS,
  12607. CS_RESIZEVERTICAL,
  12608. CS_RESIZEDIAGONAL_TOPRIGHT,
  12609. CS_RESIZEHORIZONTAL,
  12610. CS_RESIZEDIAGONAL_TOPLEFT,
  12611. CS_RESIZE_ALL,
  12612. CS_ACCEPTDROP,
  12613. CS_REJECTDROP,
  12614. CS_BUSY,
  12615. CS_BUSY_ARROW,
  12616. };
  12617. enum DBAPI
  12618. {
  12619. DBAPI_SQLITE,
  12620. DBAPI_ODBC,
  12621. };
  12622. enum DumpMode
  12623. {
  12624. DOXYGEN,
  12625. C_HEADER,
  12626. };
  12627. enum EmitterType
  12628. {
  12629. EMITTER_SPHERE,
  12630. EMITTER_BOX,
  12631. };
  12632. enum EmitterType2D
  12633. {
  12634. EMITTER_TYPE_GRAVITY,
  12635. EMITTER_TYPE_RADIAL,
  12636. };
  12637. enum FaceCameraMode
  12638. {
  12639. FC_NONE,
  12640. FC_ROTATE_XYZ,
  12641. FC_ROTATE_Y,
  12642. FC_LOOKAT_XYZ,
  12643. FC_LOOKAT_Y,
  12644. };
  12645. enum FileMode
  12646. {
  12647. FILE_READ,
  12648. FILE_WRITE,
  12649. FILE_READWRITE,
  12650. };
  12651. enum FillMode
  12652. {
  12653. FILL_SOLID,
  12654. FILL_WIREFRAME,
  12655. FILL_POINT,
  12656. };
  12657. enum FocusMode
  12658. {
  12659. FM_NOTFOCUSABLE,
  12660. FM_RESETFOCUS,
  12661. FM_FOCUSABLE,
  12662. FM_FOCUSABLE_DEFOCUSABLE,
  12663. };
  12664. enum HighlightMode
  12665. {
  12666. HM_NEVER,
  12667. HM_FOCUS,
  12668. HM_ALWAYS,
  12669. };
  12670. enum HorizontalAlignment
  12671. {
  12672. HA_LEFT,
  12673. HA_CENTER,
  12674. HA_RIGHT,
  12675. };
  12676. enum HttpRequestState
  12677. {
  12678. HTTP_INITIALIZING,
  12679. HTTP_ERROR,
  12680. HTTP_OPEN,
  12681. HTTP_CLOSED,
  12682. };
  12683. enum InterpMethod
  12684. {
  12685. IM_LINEAR,
  12686. IM_SPLINE,
  12687. };
  12688. enum InterpolationMode
  12689. {
  12690. BEZIER_CURVE,
  12691. CATMULL_ROM_CURVE,
  12692. LINEAR_CURVE,
  12693. CATMULL_ROM_FULL_CURVE,
  12694. };
  12695. enum Intersection
  12696. {
  12697. OUTSIDE,
  12698. INTERSECTS,
  12699. INSIDE,
  12700. };
  12701. enum JSONValueType
  12702. {
  12703. JSON_NULL,
  12704. JSON_BOOL,
  12705. JSON_NUMBER,
  12706. JSON_STRING,
  12707. JSON_ARRAY,
  12708. JSON_OBJECT,
  12709. };
  12710. enum LayoutMode
  12711. {
  12712. LM_FREE,
  12713. LM_HORIZONTAL,
  12714. LM_VERTICAL,
  12715. };
  12716. enum LightType
  12717. {
  12718. LIGHT_DIRECTIONAL,
  12719. LIGHT_SPOT,
  12720. LIGHT_POINT,
  12721. };
  12722. enum LoadMode
  12723. {
  12724. LOAD_RESOURCES_ONLY,
  12725. LOAD_SCENE,
  12726. LOAD_SCENE_AND_RESOURCES,
  12727. };
  12728. enum LoopMode2D
  12729. {
  12730. LM_DEFAULT,
  12731. LM_FORCE_LOOPED,
  12732. LM_FORCE_CLAMPED,
  12733. };
  12734. enum MouseMode
  12735. {
  12736. MM_ABSOLUTE,
  12737. MM_RELATIVE,
  12738. MM_WRAP,
  12739. MM_FREE,
  12740. };
  12741. enum NavigationPushiness
  12742. {
  12743. NAVIGATIONPUSHINESS_LOW,
  12744. NAVIGATIONPUSHINESS_MEDIUM,
  12745. NAVIGATIONPUSHINESS_HIGH,
  12746. };
  12747. enum NavigationQuality
  12748. {
  12749. NAVIGATIONQUALITY_LOW,
  12750. NAVIGATIONQUALITY_MEDIUM,
  12751. NAVIGATIONQUALITY_HIGH,
  12752. };
  12753. enum NavmeshPartitionType
  12754. {
  12755. NAVMESH_PARTITION_WATERSHED,
  12756. NAVMESH_PARTITION_MONOTONE,
  12757. };
  12758. enum Orientation
  12759. {
  12760. O_HORIZONTAL,
  12761. O_VERTICAL,
  12762. };
  12763. enum Orientation2D
  12764. {
  12765. O_ORTHOGONAL,
  12766. O_ISOMETRIC,
  12767. O_STAGGERED,
  12768. };
  12769. enum PassLightingMode
  12770. {
  12771. LIGHTING_UNLIT,
  12772. LIGHTING_PERVERTEX,
  12773. LIGHTING_PERPIXEL,
  12774. };
  12775. enum PrimitiveType
  12776. {
  12777. TRIANGLE_LIST,
  12778. LINE_LIST,
  12779. POINT_LIST,
  12780. TRIANGLE_STRIP,
  12781. LINE_STRIP,
  12782. TRIANGLE_FAN,
  12783. };
  12784. enum RayQueryLevel
  12785. {
  12786. RAY_AABB,
  12787. RAY_OBB,
  12788. RAY_TRIANGLE,
  12789. RAY_TRIANGLE_UV,
  12790. };
  12791. enum RenderCommandSortMode
  12792. {
  12793. SORT_FRONTTOBACK,
  12794. SORT_BACKTOFRONT,
  12795. };
  12796. enum RenderCommandType
  12797. {
  12798. CMD_NONE,
  12799. CMD_CLEAR,
  12800. CMD_SCENEPASS,
  12801. CMD_QUAD,
  12802. CMD_FORWARDLIGHTS,
  12803. CMD_LIGHTVOLUMES,
  12804. CMD_RENDERUI,
  12805. };
  12806. enum RenderSurfaceUpdateMode
  12807. {
  12808. SURFACE_MANUALUPDATE,
  12809. SURFACE_UPDATEVISIBLE,
  12810. SURFACE_UPDATEALWAYS,
  12811. };
  12812. enum RenderTargetSizeMode
  12813. {
  12814. SIZE_ABSOLUTE,
  12815. SIZE_VIEWPORTDIVISOR,
  12816. SIZE_VIEWPORTMULTIPLIER,
  12817. };
  12818. enum ShapeType
  12819. {
  12820. SHAPE_BOX,
  12821. SHAPE_SPHERE,
  12822. SHAPE_STATICPLANE,
  12823. SHAPE_CYLINDER,
  12824. SHAPE_CAPSULE,
  12825. SHAPE_CONE,
  12826. SHAPE_TRIANGLEMESH,
  12827. SHAPE_CONVEXHULL,
  12828. SHAPE_TERRAIN,
  12829. };
  12830. enum TextEffect
  12831. {
  12832. TE_NONE,
  12833. TE_SHADOW,
  12834. TE_STROKE,
  12835. };
  12836. enum TextureAddressMode
  12837. {
  12838. ADDRESS_WRAP,
  12839. ADDRESS_MIRROR,
  12840. ADDRESS_CLAMP,
  12841. ADDRESS_BORDER,
  12842. };
  12843. enum TextureCoordinate
  12844. {
  12845. COORD_U,
  12846. COORD_V,
  12847. COORD_W,
  12848. };
  12849. enum TextureFilterMode
  12850. {
  12851. FILTER_NEAREST,
  12852. FILTER_BILINEAR,
  12853. FILTER_TRILINEAR,
  12854. FILTER_ANISOTROPIC,
  12855. FILTER_DEFAULT,
  12856. };
  12857. enum TextureUnit
  12858. {
  12859. TU_DIFFUSE,
  12860. TU_ALBEDOBUFFER,
  12861. TU_NORMAL,
  12862. TU_NORMALBUFFER,
  12863. TU_SPECULAR,
  12864. TU_EMISSIVE,
  12865. TU_ENVIRONMENT,
  12866. TU_LIGHTRAMP,
  12867. TU_LIGHTSHAPE,
  12868. TU_SHADOWMAP,
  12869. TU_CUSTOM1,
  12870. TU_CUSTOM2,
  12871. TU_VOLUMEMAP,
  12872. TU_FACESELECT,
  12873. TU_INDIRECTION,
  12874. TU_DEPTHBUFFER,
  12875. TU_LIGHTBUFFER,
  12876. TU_ZONE,
  12877. MAX_MATERIAL_TEXTURE_UNITS,
  12878. MAX_TEXTURE_UNITS,
  12879. };
  12880. enum TextureUsage
  12881. {
  12882. TEXTURE_STATIC,
  12883. TEXTURE_DYNAMIC,
  12884. TEXTURE_RENDERTARGET,
  12885. TEXTURE_DEPTHSTENCIL,
  12886. };
  12887. enum TileMapLayerType2D
  12888. {
  12889. LT_TILE_LAYER,
  12890. LT_OBJECT_GROUP,
  12891. LT_IMAGE_LAYER,
  12892. LT_INVALID,
  12893. };
  12894. enum TileObjectType2D
  12895. {
  12896. OT_RECTANGLE,
  12897. OT_ELLIPSE,
  12898. OT_POLYGON,
  12899. OT_POLYLINE,
  12900. OT_TILE,
  12901. OT_INVALID,
  12902. };
  12903. enum TransformSpace
  12904. {
  12905. TS_LOCAL,
  12906. TS_PARENT,
  12907. TS_WORLD,
  12908. };
  12909. enum TraversalMode
  12910. {
  12911. TM_BREADTH_FIRST,
  12912. TM_DEPTH_FIRST,
  12913. };
  12914. enum VariantType
  12915. {
  12916. VAR_NONE,
  12917. VAR_INT,
  12918. VAR_BOOL,
  12919. VAR_FLOAT,
  12920. VAR_VECTOR2,
  12921. VAR_VECTOR3,
  12922. VAR_VECTOR4,
  12923. VAR_QUATERNION,
  12924. VAR_COLOR,
  12925. VAR_STRING,
  12926. VAR_BUFFER,
  12927. VAR_VOIDPTR,
  12928. VAR_RESOURCEREF,
  12929. VAR_RESOURCEREFLIST,
  12930. VAR_VARIANTVECTOR,
  12931. VAR_VARIANTMAP,
  12932. VAR_INTRECT,
  12933. VAR_INTVECTOR2,
  12934. VAR_PTR,
  12935. VAR_MATRIX3,
  12936. VAR_MATRIX3X4,
  12937. VAR_MATRIX4,
  12938. VAR_DOUBLE,
  12939. VAR_STRINGVECTOR,
  12940. };
  12941. enum VerticalAlignment
  12942. {
  12943. VA_TOP,
  12944. VA_CENTER,
  12945. VA_BOTTOM,
  12946. };
  12947. enum WrapMode
  12948. {
  12949. WM_LOOP,
  12950. WM_ONCE,
  12951. WM_CLAMP,
  12952. };
  12953. // Global functions
  12954. float Abs(float);
  12955. float Acos(float);
  12956. String AddTrailingSlash(const String&);
  12957. float Asin(float);
  12958. float Atan(float);
  12959. float Atan2(float, float);
  12960. float Ceil(float);
  12961. float Clamp(float, float, float);
  12962. int Clamp(int, int, int);
  12963. void ClearDelayedExecute(const String& = String ( ));
  12964. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  12965. float Cos(float);
  12966. uint CountSetBits(uint);
  12967. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  12968. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  12969. bool Equals(float, float);
  12970. void ErrorDialog(const String&, const String&);
  12971. float Floor(float);
  12972. uint GetAlphaFormat();
  12973. Array<String> GetArguments();
  12974. String GetConsoleInput();
  12975. uint GetDepthStencilFormat();
  12976. Object GetEventSender();
  12977. String GetExtension(const String&, bool = true);
  12978. String GetFileName(const String&);
  12979. String GetFileNameAndExtension(const String&, bool = false);
  12980. String GetFileSizeString(uint64);
  12981. uint GetFloat16Format();
  12982. uint GetFloat32Format();
  12983. uint GetFormat(const String&);
  12984. String GetInternalPath(const String&);
  12985. uint GetLinearDepthFormat();
  12986. uint GetLuminanceAlphaFormat();
  12987. uint GetLuminanceFormat();
  12988. uint GetMaxBones();
  12989. uint GetNumLogicalCPUs();
  12990. uint GetNumPhysicalCPUs();
  12991. Array<String> GetObjectCategories();
  12992. Array<String> GetObjectsByCategory(const String&);
  12993. String GetParentPath(const String&);
  12994. String GetPath(const String&);
  12995. String GetPlatform();
  12996. uint GetRG16Format();
  12997. uint GetRGBA16Format();
  12998. uint GetRGBAFloat16Format();
  12999. uint GetRGBAFloat32Format();
  13000. uint GetRGBAFormat();
  13001. uint GetRGBFormat();
  13002. uint GetRGFloat16Format();
  13003. uint GetRGFloat32Format();
  13004. uint GetRandomSeed();
  13005. uint GetReadableDepthFormat();
  13006. String GetTextureUnitName(TextureUnit);
  13007. bool IsAbsolutePath(const String&);
  13008. bool IsAlpha(uint);
  13009. bool IsDigit(uint);
  13010. bool IsNaN(float);
  13011. bool IsPowerOfTwo(uint);
  13012. String Join(Array<String>&, const String&);
  13013. float Lerp(float, float, float);
  13014. void MarkNetworkUpdate();
  13015. float Max(float, float);
  13016. int Max(int, int);
  13017. float Min(float, float);
  13018. int Min(int, int);
  13019. float Mod(float, float);
  13020. uint NextPowerOfTwo(uint);
  13021. void OpenConsoleWindow();
  13022. float Pow(float, float);
  13023. void Print(bool, bool = false);
  13024. void Print(const String&, bool = false);
  13025. void Print(const Variant&, bool = false);
  13026. void Print(float, bool = false);
  13027. void Print(int, bool = false);
  13028. void Print(uint, bool = false);
  13029. void PrintCallStack(bool = false);
  13030. float Random();
  13031. float Random(float);
  13032. float Random(float, float);
  13033. int RandomInt();
  13034. int RandomInt(int);
  13035. int RandomInt(int, int);
  13036. float RandomNormal(float, float);
  13037. void Remove();
  13038. String RemoveTrailingSlash(const String&);
  13039. String ReplaceExtension(const String&, const String&);
  13040. uint SDBMHash(uint, uint8);
  13041. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13042. void SetRandomSeed(uint);
  13043. float Sign(float);
  13044. float Sin(float);
  13045. float SmoothStep(float, float, float);
  13046. float Sqrt(float);
  13047. const String& GetTypeName(StringHash);
  13048. void SubscribeToEvent(Object, const String&, const String&);
  13049. void SubscribeToEvent(const String&, const String&);
  13050. float Tan(float);
  13051. uint ToLower(uint);
  13052. String ToStringHex(int);
  13053. uint ToUpper(uint);
  13054. void UnsubscribeFromAllEvents();
  13055. void UnsubscribeFromAllEventsExcept(Array<String>);
  13056. void UnsubscribeFromEvent(Object, const String&);
  13057. void UnsubscribeFromEvent(const String&);
  13058. void UnsubscribeFromEvents(Object);
  13059. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13060. // Global properties
  13061. DBAPI DBAPI;
  13062. Audio audio;
  13063. ResourceCache cache;
  13064. Console console;
  13065. Database database;
  13066. DebugHud debugHud;
  13067. DebugRenderer debugRenderer;
  13068. Engine engine;
  13069. FileSystem fileSystem;
  13070. Graphics graphics;
  13071. Input input;
  13072. Localization localization;
  13073. Log log;
  13074. Network network;
  13075. Node node;
  13076. Octree octree;
  13077. PhysicsWorld physicsWorld;
  13078. PhysicsWorld2D physicsWorld2D;
  13079. Renderer renderer;
  13080. ResourceCache resourceCache;
  13081. Scene scene;
  13082. Script script;
  13083. ScriptFile scriptFile;
  13084. ScriptInstance self;
  13085. Time time;
  13086. UI ui;
  13087. // Global constants
  13088. uint AM_COMPONENTID;
  13089. uint AM_DEFAULT;
  13090. uint AM_FILE;
  13091. uint AM_LATESTDATA;
  13092. uint AM_NET;
  13093. uint AM_NODEID;
  13094. uint AM_NODEIDVECTOR;
  13095. uint AM_NOEDIT;
  13096. Color BLACK;
  13097. Color BLUE;
  13098. uint8 CHANNEL_POSITION;
  13099. uint8 CHANNEL_ROTATION;
  13100. uint8 CHANNEL_SCALE;
  13101. uint CLEAR_COLOR;
  13102. uint CLEAR_DEPTH;
  13103. uint CLEAR_STENCIL;
  13104. int CONTROLLER_AXIS_LEFTX;
  13105. int CONTROLLER_AXIS_LEFTY;
  13106. int CONTROLLER_AXIS_RIGHTX;
  13107. int CONTROLLER_AXIS_RIGHTY;
  13108. int CONTROLLER_AXIS_TRIGGERLEFT;
  13109. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13110. int CONTROLLER_BUTTON_A;
  13111. int CONTROLLER_BUTTON_B;
  13112. int CONTROLLER_BUTTON_BACK;
  13113. int CONTROLLER_BUTTON_DPAD_DOWN;
  13114. int CONTROLLER_BUTTON_DPAD_LEFT;
  13115. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13116. int CONTROLLER_BUTTON_DPAD_UP;
  13117. int CONTROLLER_BUTTON_GUIDE;
  13118. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13119. int CONTROLLER_BUTTON_LEFTSTICK;
  13120. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13121. int CONTROLLER_BUTTON_RIGHTSTICK;
  13122. int CONTROLLER_BUTTON_START;
  13123. int CONTROLLER_BUTTON_X;
  13124. int CONTROLLER_BUTTON_Y;
  13125. Color CYAN;
  13126. uint DD_DISABLED;
  13127. uint DD_SOURCE;
  13128. uint DD_SOURCE_AND_TARGET;
  13129. uint DD_TARGET;
  13130. uint DEBUGHUD_SHOW_ALL;
  13131. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13132. uint DEBUGHUD_SHOW_MEMORY;
  13133. uint DEBUGHUD_SHOW_MODE;
  13134. uint DEBUGHUD_SHOW_NONE;
  13135. uint DEBUGHUD_SHOW_PROFILER;
  13136. uint DEBUGHUD_SHOW_STATS;
  13137. uint DEFAULT_LIGHTMASK;
  13138. uint DEFAULT_VIEWMASK;
  13139. uint DRAWABLE_ANY;
  13140. uint DRAWABLE_GEOMETRY;
  13141. uint DRAWABLE_GEOMETRY2D;
  13142. uint DRAWABLE_LIGHT;
  13143. uint DRAWABLE_ZONE;
  13144. uint FIRST_LOCAL_ID;
  13145. uint FIRST_REPLICATED_ID;
  13146. Color GRAY;
  13147. Color GREEN;
  13148. int HAT_CENTER;
  13149. int HAT_DOWN;
  13150. int HAT_LEFT;
  13151. int HAT_RIGHT;
  13152. int HAT_UP;
  13153. int KEY_0;
  13154. int KEY_1;
  13155. int KEY_2;
  13156. int KEY_3;
  13157. int KEY_4;
  13158. int KEY_5;
  13159. int KEY_6;
  13160. int KEY_7;
  13161. int KEY_8;
  13162. int KEY_9;
  13163. int KEY_A;
  13164. int KEY_ALT;
  13165. int KEY_APPLICATION;
  13166. int KEY_B;
  13167. int KEY_BACKSPACE;
  13168. int KEY_C;
  13169. int KEY_CAPSLOCK;
  13170. int KEY_CTRL;
  13171. int KEY_D;
  13172. int KEY_DELETE;
  13173. int KEY_DOWN;
  13174. int KEY_E;
  13175. int KEY_END;
  13176. int KEY_ESC;
  13177. int KEY_F;
  13178. int KEY_F1;
  13179. int KEY_F10;
  13180. int KEY_F11;
  13181. int KEY_F12;
  13182. int KEY_F13;
  13183. int KEY_F14;
  13184. int KEY_F15;
  13185. int KEY_F16;
  13186. int KEY_F17;
  13187. int KEY_F18;
  13188. int KEY_F19;
  13189. int KEY_F2;
  13190. int KEY_F20;
  13191. int KEY_F21;
  13192. int KEY_F22;
  13193. int KEY_F23;
  13194. int KEY_F24;
  13195. int KEY_F3;
  13196. int KEY_F4;
  13197. int KEY_F5;
  13198. int KEY_F6;
  13199. int KEY_F7;
  13200. int KEY_F8;
  13201. int KEY_F9;
  13202. int KEY_G;
  13203. int KEY_GUI;
  13204. int KEY_H;
  13205. int KEY_HOME;
  13206. int KEY_I;
  13207. int KEY_INSERT;
  13208. int KEY_J;
  13209. int KEY_K;
  13210. int KEY_KP_0;
  13211. int KEY_KP_1;
  13212. int KEY_KP_2;
  13213. int KEY_KP_3;
  13214. int KEY_KP_4;
  13215. int KEY_KP_5;
  13216. int KEY_KP_6;
  13217. int KEY_KP_7;
  13218. int KEY_KP_8;
  13219. int KEY_KP_9;
  13220. int KEY_KP_DIVIDE;
  13221. int KEY_KP_ENTER;
  13222. int KEY_KP_MINUS;
  13223. int KEY_KP_MULTIPLY;
  13224. int KEY_KP_PERIOD;
  13225. int KEY_KP_PLUS;
  13226. int KEY_L;
  13227. int KEY_LALT;
  13228. int KEY_LCTRL;
  13229. int KEY_LEFT;
  13230. int KEY_LGUI;
  13231. int KEY_LSHIFT;
  13232. int KEY_M;
  13233. int KEY_N;
  13234. int KEY_NUMLOCKCLEAR;
  13235. int KEY_O;
  13236. int KEY_P;
  13237. int KEY_PAGEDOWN;
  13238. int KEY_PAGEUP;
  13239. int KEY_PAUSE;
  13240. int KEY_PRINTSCREEN;
  13241. int KEY_Q;
  13242. int KEY_R;
  13243. int KEY_RALT;
  13244. int KEY_RCTRL;
  13245. int KEY_RETURN;
  13246. int KEY_RETURN2;
  13247. int KEY_RGUI;
  13248. int KEY_RIGHT;
  13249. int KEY_RSHIFT;
  13250. int KEY_S;
  13251. int KEY_SCROLLLOCK;
  13252. int KEY_SELECT;
  13253. int KEY_SHIFT;
  13254. int KEY_SPACE;
  13255. int KEY_T;
  13256. int KEY_TAB;
  13257. int KEY_U;
  13258. int KEY_UP;
  13259. int KEY_V;
  13260. int KEY_W;
  13261. int KEY_X;
  13262. int KEY_Y;
  13263. int KEY_Z;
  13264. uint LAST_LOCAL_ID;
  13265. uint LAST_REPLICATED_ID;
  13266. int LOG_DEBUG;
  13267. int LOG_ERROR;
  13268. int LOG_INFO;
  13269. int LOG_NONE;
  13270. int LOG_WARNING;
  13271. Color MAGENTA;
  13272. uint MASK_BLENDINDICES;
  13273. uint MASK_BLENDWEIGHTS;
  13274. uint MASK_COLOR;
  13275. uint MASK_CUBETEXCOORD1;
  13276. uint MASK_CUBETEXCOORD2;
  13277. uint MASK_DEFAULT;
  13278. uint MASK_INSTANCEMATRIX1;
  13279. uint MASK_INSTANCEMATRIX2;
  13280. uint MASK_INSTANCEMATRIX3;
  13281. uint MASK_NONE;
  13282. uint MASK_NORMAL;
  13283. uint MASK_POSITION;
  13284. uint MASK_TANGENT;
  13285. uint MASK_TEXCOORD1;
  13286. uint MASK_TEXCOORD2;
  13287. int MOUSEB_LEFT;
  13288. int MOUSEB_MIDDLE;
  13289. int MOUSEB_RIGHT;
  13290. float M_DEGTORAD;
  13291. float M_DEGTORAD_2;
  13292. float M_EPSILON;
  13293. float M_HALF_PI;
  13294. float M_INFINITY;
  13295. float M_LARGE_EPSILON;
  13296. float M_LARGE_VALUE;
  13297. int M_MAX_INT;
  13298. uint M_MAX_UNSIGNED;
  13299. int M_MIN_INT;
  13300. uint M_MIN_UNSIGNED;
  13301. float M_PI;
  13302. float M_RADTODEG;
  13303. float PIXEL_SIZE;
  13304. int QUALITY_HIGH;
  13305. int QUALITY_LOW;
  13306. int QUALITY_MAX;
  13307. int QUALITY_MEDIUM;
  13308. int QUAL_ALT;
  13309. int QUAL_ANY;
  13310. int QUAL_CTRL;
  13311. int QUAL_SHIFT;
  13312. Color RED;
  13313. int SCANCODE_0;
  13314. int SCANCODE_1;
  13315. int SCANCODE_2;
  13316. int SCANCODE_3;
  13317. int SCANCODE_4;
  13318. int SCANCODE_5;
  13319. int SCANCODE_6;
  13320. int SCANCODE_7;
  13321. int SCANCODE_8;
  13322. int SCANCODE_9;
  13323. int SCANCODE_A;
  13324. int SCANCODE_AC_BACK;
  13325. int SCANCODE_AC_BOOKMARKS;
  13326. int SCANCODE_AC_FORWARD;
  13327. int SCANCODE_AC_HOME;
  13328. int SCANCODE_AC_REFRESH;
  13329. int SCANCODE_AC_SEARCH;
  13330. int SCANCODE_AC_STOP;
  13331. int SCANCODE_AGAIN;
  13332. int SCANCODE_ALT;
  13333. int SCANCODE_ALTERASE;
  13334. int SCANCODE_APOSTROPHE;
  13335. int SCANCODE_APP1;
  13336. int SCANCODE_APP2;
  13337. int SCANCODE_APPLICATION;
  13338. int SCANCODE_AUDIOMUTE;
  13339. int SCANCODE_AUDIONEXT;
  13340. int SCANCODE_AUDIOPLAY;
  13341. int SCANCODE_AUDIOPREV;
  13342. int SCANCODE_AUDIOSTOP;
  13343. int SCANCODE_B;
  13344. int SCANCODE_BACKSLASH;
  13345. int SCANCODE_BACKSPACE;
  13346. int SCANCODE_BRIGHTNESSDOWN;
  13347. int SCANCODE_BRIGHTNESSUP;
  13348. int SCANCODE_C;
  13349. int SCANCODE_CALCULATOR;
  13350. int SCANCODE_CANCEL;
  13351. int SCANCODE_CAPSLOCK;
  13352. int SCANCODE_CLEAR;
  13353. int SCANCODE_CLEARAGAIN;
  13354. int SCANCODE_COMMA;
  13355. int SCANCODE_COMPUTER;
  13356. int SCANCODE_COPY;
  13357. int SCANCODE_CRSEL;
  13358. int SCANCODE_CTRL;
  13359. int SCANCODE_CURRENCYSUBUNIT;
  13360. int SCANCODE_CURRENCYUNIT;
  13361. int SCANCODE_CUT;
  13362. int SCANCODE_D;
  13363. int SCANCODE_DECIMALSEPARATOR;
  13364. int SCANCODE_DELETE;
  13365. int SCANCODE_DISPLAYSWITCH;
  13366. int SCANCODE_DOWN;
  13367. int SCANCODE_E;
  13368. int SCANCODE_EJECT;
  13369. int SCANCODE_END;
  13370. int SCANCODE_EQUALS;
  13371. int SCANCODE_ESCAPE;
  13372. int SCANCODE_EXECUTE;
  13373. int SCANCODE_EXSEL;
  13374. int SCANCODE_F;
  13375. int SCANCODE_F1;
  13376. int SCANCODE_F10;
  13377. int SCANCODE_F11;
  13378. int SCANCODE_F12;
  13379. int SCANCODE_F13;
  13380. int SCANCODE_F14;
  13381. int SCANCODE_F15;
  13382. int SCANCODE_F16;
  13383. int SCANCODE_F17;
  13384. int SCANCODE_F18;
  13385. int SCANCODE_F19;
  13386. int SCANCODE_F2;
  13387. int SCANCODE_F20;
  13388. int SCANCODE_F21;
  13389. int SCANCODE_F22;
  13390. int SCANCODE_F23;
  13391. int SCANCODE_F24;
  13392. int SCANCODE_F3;
  13393. int SCANCODE_F4;
  13394. int SCANCODE_F5;
  13395. int SCANCODE_F6;
  13396. int SCANCODE_F7;
  13397. int SCANCODE_F8;
  13398. int SCANCODE_F9;
  13399. int SCANCODE_FIND;
  13400. int SCANCODE_G;
  13401. int SCANCODE_GRAVE;
  13402. int SCANCODE_GUI;
  13403. int SCANCODE_H;
  13404. int SCANCODE_HELP;
  13405. int SCANCODE_HOME;
  13406. int SCANCODE_I;
  13407. int SCANCODE_INSERT;
  13408. int SCANCODE_INTERNATIONAL1;
  13409. int SCANCODE_INTERNATIONAL2;
  13410. int SCANCODE_INTERNATIONAL3;
  13411. int SCANCODE_INTERNATIONAL4;
  13412. int SCANCODE_INTERNATIONAL5;
  13413. int SCANCODE_INTERNATIONAL6;
  13414. int SCANCODE_INTERNATIONAL7;
  13415. int SCANCODE_INTERNATIONAL8;
  13416. int SCANCODE_INTERNATIONAL9;
  13417. int SCANCODE_J;
  13418. int SCANCODE_K;
  13419. int SCANCODE_KBDILLUMDOWN;
  13420. int SCANCODE_KBDILLUMTOGGLE;
  13421. int SCANCODE_KBDILLUMUP;
  13422. int SCANCODE_KP_0;
  13423. int SCANCODE_KP_00;
  13424. int SCANCODE_KP_000;
  13425. int SCANCODE_KP_1;
  13426. int SCANCODE_KP_2;
  13427. int SCANCODE_KP_3;
  13428. int SCANCODE_KP_4;
  13429. int SCANCODE_KP_5;
  13430. int SCANCODE_KP_6;
  13431. int SCANCODE_KP_7;
  13432. int SCANCODE_KP_8;
  13433. int SCANCODE_KP_9;
  13434. int SCANCODE_KP_A;
  13435. int SCANCODE_KP_AMPERSAND;
  13436. int SCANCODE_KP_AT;
  13437. int SCANCODE_KP_B;
  13438. int SCANCODE_KP_BACKSPACE;
  13439. int SCANCODE_KP_BINARY;
  13440. int SCANCODE_KP_C;
  13441. int SCANCODE_KP_CLEAR;
  13442. int SCANCODE_KP_CLEARENTRY;
  13443. int SCANCODE_KP_COLON;
  13444. int SCANCODE_KP_COMMA;
  13445. int SCANCODE_KP_D;
  13446. int SCANCODE_KP_DBLAMPERSAND;
  13447. int SCANCODE_KP_DBLVERTICALBAR;
  13448. int SCANCODE_KP_DECIMAL;
  13449. int SCANCODE_KP_DIVIDE;
  13450. int SCANCODE_KP_E;
  13451. int SCANCODE_KP_ENTER;
  13452. int SCANCODE_KP_EQUALS;
  13453. int SCANCODE_KP_EQUALSAS400;
  13454. int SCANCODE_KP_EXCLAM;
  13455. int SCANCODE_KP_F;
  13456. int SCANCODE_KP_GREATER;
  13457. int SCANCODE_KP_HASH;
  13458. int SCANCODE_KP_HEXADECIMAL;
  13459. int SCANCODE_KP_LEFTBRACE;
  13460. int SCANCODE_KP_LEFTPAREN;
  13461. int SCANCODE_KP_LESS;
  13462. int SCANCODE_KP_MEMADD;
  13463. int SCANCODE_KP_MEMCLEAR;
  13464. int SCANCODE_KP_MEMDIVIDE;
  13465. int SCANCODE_KP_MEMMULTIPLY;
  13466. int SCANCODE_KP_MEMRECALL;
  13467. int SCANCODE_KP_MEMSTORE;
  13468. int SCANCODE_KP_MEMSUBTRACT;
  13469. int SCANCODE_KP_MINUS;
  13470. int SCANCODE_KP_MULTIPLY;
  13471. int SCANCODE_KP_OCTAL;
  13472. int SCANCODE_KP_PERCENT;
  13473. int SCANCODE_KP_PERIOD;
  13474. int SCANCODE_KP_PLUS;
  13475. int SCANCODE_KP_PLUSMINUS;
  13476. int SCANCODE_KP_POWER;
  13477. int SCANCODE_KP_RIGHTBRACE;
  13478. int SCANCODE_KP_RIGHTPAREN;
  13479. int SCANCODE_KP_SPACE;
  13480. int SCANCODE_KP_TAB;
  13481. int SCANCODE_KP_VERTICALBAR;
  13482. int SCANCODE_KP_XOR;
  13483. int SCANCODE_L;
  13484. int SCANCODE_LALT;
  13485. int SCANCODE_LANG1;
  13486. int SCANCODE_LANG2;
  13487. int SCANCODE_LANG3;
  13488. int SCANCODE_LANG4;
  13489. int SCANCODE_LANG5;
  13490. int SCANCODE_LANG6;
  13491. int SCANCODE_LANG7;
  13492. int SCANCODE_LANG8;
  13493. int SCANCODE_LANG9;
  13494. int SCANCODE_LCTRL;
  13495. int SCANCODE_LEFT;
  13496. int SCANCODE_LEFTBRACKET;
  13497. int SCANCODE_LGUI;
  13498. int SCANCODE_LSHIFT;
  13499. int SCANCODE_M;
  13500. int SCANCODE_MAIL;
  13501. int SCANCODE_MEDIASELECT;
  13502. int SCANCODE_MENU;
  13503. int SCANCODE_MINUS;
  13504. int SCANCODE_MODE;
  13505. int SCANCODE_MUTE;
  13506. int SCANCODE_N;
  13507. int SCANCODE_NONUSBACKSLASH;
  13508. int SCANCODE_NONUSHASH;
  13509. int SCANCODE_NUMLOCKCLEAR;
  13510. int SCANCODE_O;
  13511. int SCANCODE_OPER;
  13512. int SCANCODE_OUT;
  13513. int SCANCODE_P;
  13514. int SCANCODE_PAGEDOWN;
  13515. int SCANCODE_PAGEUP;
  13516. int SCANCODE_PASTE;
  13517. int SCANCODE_PAUSE;
  13518. int SCANCODE_PERIOD;
  13519. int SCANCODE_POWER;
  13520. int SCANCODE_PRINTSCREEN;
  13521. int SCANCODE_PRIOR;
  13522. int SCANCODE_Q;
  13523. int SCANCODE_R;
  13524. int SCANCODE_RALT;
  13525. int SCANCODE_RCTRL;
  13526. int SCANCODE_RETURN;
  13527. int SCANCODE_RETURN2;
  13528. int SCANCODE_RGUI;
  13529. int SCANCODE_RIGHT;
  13530. int SCANCODE_RIGHTBRACKET;
  13531. int SCANCODE_RSHIFT;
  13532. int SCANCODE_S;
  13533. int SCANCODE_SCROLLLOCK;
  13534. int SCANCODE_SELECT;
  13535. int SCANCODE_SEMICOLON;
  13536. int SCANCODE_SEPARATOR;
  13537. int SCANCODE_SHIFT;
  13538. int SCANCODE_SLASH;
  13539. int SCANCODE_SLEEP;
  13540. int SCANCODE_SPACE;
  13541. int SCANCODE_STOP;
  13542. int SCANCODE_SYSREQ;
  13543. int SCANCODE_T;
  13544. int SCANCODE_TAB;
  13545. int SCANCODE_THOUSANDSSEPARATOR;
  13546. int SCANCODE_U;
  13547. int SCANCODE_UNDO;
  13548. int SCANCODE_UNKNOWN;
  13549. int SCANCODE_UP;
  13550. int SCANCODE_V;
  13551. int SCANCODE_VOLUMEDOWN;
  13552. int SCANCODE_VOLUMEUP;
  13553. int SCANCODE_W;
  13554. int SCANCODE_WWW;
  13555. int SCANCODE_X;
  13556. int SCANCODE_Y;
  13557. int SCANCODE_Z;
  13558. uint SCAN_DIRS;
  13559. uint SCAN_FILES;
  13560. uint SCAN_HIDDEN;
  13561. int SHADOWQUALITY_HIGH_16BIT;
  13562. int SHADOWQUALITY_HIGH_24BIT;
  13563. int SHADOWQUALITY_LOW_16BIT;
  13564. int SHADOWQUALITY_LOW_24BIT;
  13565. String SOUND_AMBIENT;
  13566. String SOUND_EFFECT;
  13567. String SOUND_MASTER;
  13568. String SOUND_MUSIC;
  13569. String SOUND_VOICE;
  13570. Color TRANSPARENT;
  13571. uint VO_DISABLE_OCCLUSION;
  13572. uint VO_DISABLE_SHADOWS;
  13573. uint VO_LOW_MATERIAL_QUALITY;
  13574. uint VO_NONE;
  13575. Color WHITE;
  13576. Color YELLOW;
  13577. VariantMap globalVars;