AngelScriptAPI.h 339 KB

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