AngelScriptAPI.h 372 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008
  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 HasSubscribedToEvent(Object, const String&);
  22. bool HasSubscribedToEvent(const String&);
  23. bool Load(File, bool = false);
  24. bool Load(VectorBuffer&, bool = false);
  25. bool LoadJSON(const JSONValue&, bool = false);
  26. bool LoadXML(const XMLElement&, bool = false);
  27. void MarkNetworkUpdate() const;
  28. void RemoveAttributeAnimation(const String&);
  29. void RemoveInstanceDefault();
  30. void RemoveObjectAnimation();
  31. void ResetToDefault();
  32. bool Save(File) const;
  33. bool Save(VectorBuffer&) const;
  34. bool SaveJSON(JSONValue&) const;
  35. bool SaveXML(XMLElement&) const;
  36. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  37. void SetAnimationTime(float);
  38. bool SetAttribute(const String&, const Variant&);
  39. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  40. void SetAttributeAnimationSpeed(const String&, float);
  41. void SetAttributeAnimationTime(const String&, float);
  42. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  43. void SetInterceptNetworkUpdate(const String&, bool);
  44. // Properties:
  45. bool animationEnabled;
  46. /* readonly */
  47. Array<Variant> attributeDefaults;
  48. /* readonly */
  49. Array<AttributeInfo> attributeInfos;
  50. Array<Variant> attributes;
  51. /* readonly */
  52. String category;
  53. /* readonly */
  54. uint numAttributes;
  55. ObjectAnimation objectAnimation;
  56. /* readonly */
  57. int refs;
  58. bool temporary;
  59. /* readonly */
  60. StringHash type;
  61. /* readonly */
  62. String typeName;
  63. /* readonly */
  64. int weakRefs;
  65. };
  66. class AnimatedModel
  67. {
  68. // Methods:
  69. AnimationState AddAnimationState(Animation);
  70. void ApplyAttributes();
  71. void ApplyMaterialList(const String& = String ( ));
  72. void DrawDebugGeometry(DebugRenderer, bool);
  73. AnimationState GetAnimationState(Animation) const;
  74. AnimationState GetAnimationState(uint) const;
  75. Variant GetAttribute(const String&) const;
  76. ValueAnimation GetAttributeAnimation(const String&) const;
  77. float GetAttributeAnimationSpeed(const String&) const;
  78. float GetAttributeAnimationTime(const String&) const;
  79. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  80. Variant GetAttributeDefault(const String&) const;
  81. bool GetInterceptNetworkUpdate(const String&) const;
  82. float GetMorphWeight(uint) const;
  83. bool HasSubscribedToEvent(Object, const String&);
  84. bool HasSubscribedToEvent(const String&);
  85. bool IsInView(Camera) const;
  86. bool Load(File, bool = false);
  87. bool Load(VectorBuffer&, bool = false);
  88. bool LoadJSON(const JSONValue&, bool = false);
  89. bool LoadXML(const XMLElement&, bool = false);
  90. void MarkNetworkUpdate() const;
  91. void Remove();
  92. void RemoveAllAnimationStates();
  93. void RemoveAnimationState(Animation);
  94. void RemoveAnimationState(AnimationState);
  95. void RemoveAnimationState(const String&);
  96. void RemoveAnimationState(uint);
  97. void RemoveAttributeAnimation(const String&);
  98. void RemoveInstanceDefault();
  99. void RemoveObjectAnimation();
  100. void ResetMorphWeights();
  101. void ResetToDefault();
  102. bool Save(File) const;
  103. bool Save(VectorBuffer&) const;
  104. bool SaveJSON(JSONValue&) const;
  105. bool SaveXML(XMLElement&) const;
  106. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  107. void SetAnimationTime(float);
  108. bool SetAttribute(const String&, const Variant&);
  109. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  110. void SetAttributeAnimationSpeed(const String&, float);
  111. void SetAttributeAnimationTime(const String&, float);
  112. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  113. void SetInterceptNetworkUpdate(const String&, bool);
  114. void SetMorphWeight(uint, float);
  115. void UpdateBoneBoundingBox();
  116. // Properties:
  117. bool animationEnabled;
  118. float animationLodBias;
  119. /* readonly */
  120. Array<AnimationState> animationStates;
  121. /* readonly */
  122. Array<Variant> attributeDefaults;
  123. /* readonly */
  124. Array<AttributeInfo> attributeInfos;
  125. Array<Variant> attributes;
  126. /* readonly */
  127. BoundingBox boundingBox;
  128. bool castShadows;
  129. /* readonly */
  130. String category;
  131. float drawDistance;
  132. bool enabled;
  133. /* readonly */
  134. bool enabledEffective;
  135. /* readonly */
  136. uint id;
  137. /* readonly */
  138. bool inView;
  139. uint lightMask;
  140. float lodBias;
  141. /* writeonly */
  142. Material material;
  143. Array<Material> materials;
  144. uint maxLights;
  145. Model model;
  146. /* readonly */
  147. Array<String> morphNames;
  148. Array<float> morphWeights;
  149. /* readonly */
  150. Node node;
  151. /* readonly */
  152. uint numAnimationStates;
  153. /* readonly */
  154. uint numAttributes;
  155. /* readonly */
  156. uint numGeometries;
  157. /* readonly */
  158. uint numMorphs;
  159. ObjectAnimation objectAnimation;
  160. bool occludee;
  161. bool occluder;
  162. /* readonly */
  163. int refs;
  164. float shadowDistance;
  165. uint shadowMask;
  166. /* readonly */
  167. Skeleton skeleton;
  168. bool temporary;
  169. /* readonly */
  170. StringHash type;
  171. /* readonly */
  172. String typeName;
  173. bool updateInvisible;
  174. uint viewMask;
  175. /* readonly */
  176. int weakRefs;
  177. /* readonly */
  178. BoundingBox worldBoundingBox;
  179. /* readonly */
  180. Zone zone;
  181. uint zoneMask;
  182. };
  183. class AnimatedSprite2D
  184. {
  185. // Methods:
  186. void ApplyAttributes();
  187. void DrawDebugGeometry(DebugRenderer, bool);
  188. Variant GetAttribute(const String&) const;
  189. ValueAnimation GetAttributeAnimation(const String&) const;
  190. float GetAttributeAnimationSpeed(const String&) const;
  191. float GetAttributeAnimationTime(const String&) const;
  192. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  193. Variant GetAttributeDefault(const String&) const;
  194. bool GetInterceptNetworkUpdate(const String&) const;
  195. bool HasSubscribedToEvent(Object, const String&);
  196. bool HasSubscribedToEvent(const String&);
  197. bool IsInView(Camera) const;
  198. bool Load(File, bool = false);
  199. bool Load(VectorBuffer&, bool = false);
  200. bool LoadJSON(const JSONValue&, bool = false);
  201. bool LoadXML(const XMLElement&, bool = false);
  202. void MarkNetworkUpdate() const;
  203. void Remove();
  204. void RemoveAttributeAnimation(const String&);
  205. void RemoveInstanceDefault();
  206. void RemoveObjectAnimation();
  207. void ResetToDefault();
  208. bool Save(File) const;
  209. bool Save(VectorBuffer&) const;
  210. bool SaveJSON(JSONValue&) const;
  211. bool SaveXML(XMLElement&) const;
  212. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  213. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  214. void SetAnimationTime(float);
  215. bool SetAttribute(const String&, const Variant&);
  216. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  217. void SetAttributeAnimationSpeed(const String&, float);
  218. void SetAttributeAnimationTime(const String&, float);
  219. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  220. void SetFlip(bool, bool);
  221. void SetInterceptNetworkUpdate(const String&, bool);
  222. // Properties:
  223. float alpha;
  224. String animation;
  225. bool animationEnabled;
  226. AnimationSet2D animationSet;
  227. /* readonly */
  228. Array<Variant> attributeDefaults;
  229. /* readonly */
  230. Array<AttributeInfo> attributeInfos;
  231. Array<Variant> attributes;
  232. BlendMode blendMode;
  233. /* readonly */
  234. BoundingBox boundingBox;
  235. bool castShadows;
  236. /* readonly */
  237. String category;
  238. Color color;
  239. Material customMaterial;
  240. float drawDistance;
  241. bool enabled;
  242. /* readonly */
  243. bool enabledEffective;
  244. String entity;
  245. bool flipX;
  246. bool flipY;
  247. Vector2 hotSpot;
  248. /* readonly */
  249. uint id;
  250. /* readonly */
  251. bool inView;
  252. int layer;
  253. uint lightMask;
  254. float lodBias;
  255. LoopMode2D loopMode;
  256. uint maxLights;
  257. /* readonly */
  258. Node node;
  259. /* readonly */
  260. uint numAttributes;
  261. ObjectAnimation objectAnimation;
  262. bool occludee;
  263. bool occluder;
  264. int orderInLayer;
  265. /* readonly */
  266. int refs;
  267. float shadowDistance;
  268. uint shadowMask;
  269. float speed;
  270. Sprite2D sprite;
  271. bool temporary;
  272. /* readonly */
  273. StringHash type;
  274. /* readonly */
  275. String typeName;
  276. bool useHotSpot;
  277. uint viewMask;
  278. /* readonly */
  279. int weakRefs;
  280. /* readonly */
  281. BoundingBox worldBoundingBox;
  282. uint zoneMask;
  283. };
  284. class Animation
  285. {
  286. // Methods:
  287. void AddTrigger(const AnimationTriggerPoint&);
  288. void AddTrigger(float, bool, const Variant&);
  289. Animation Clone(const String& = String ( )) const;
  290. AnimationTrack CreateTrack(const String&);
  291. bool HasSubscribedToEvent(Object, const String&);
  292. bool HasSubscribedToEvent(const String&);
  293. bool Load(File);
  294. bool Load(VectorBuffer&);
  295. bool RemoveAllTracks();
  296. void RemoveAllTriggers();
  297. bool RemoveTrack(const String&);
  298. void RemoveTrigger(uint);
  299. bool Save(File) const;
  300. bool Save(VectorBuffer&) const;
  301. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  302. // Properties:
  303. String animationName;
  304. /* readonly */
  305. String category;
  306. float length;
  307. /* readonly */
  308. uint memoryUse;
  309. String name;
  310. /* readonly */
  311. uint numTracks;
  312. uint numTriggers;
  313. /* readonly */
  314. int refs;
  315. /* readonly */
  316. Array<AnimationTrack> tracks;
  317. Array<AnimationTriggerPoint> triggers;
  318. /* readonly */
  319. StringHash type;
  320. /* readonly */
  321. String typeName;
  322. /* readonly */
  323. uint useTimer;
  324. /* readonly */
  325. int weakRefs;
  326. };
  327. class AnimationController
  328. {
  329. // Methods:
  330. void ApplyAttributes();
  331. void DrawDebugGeometry(DebugRenderer, bool);
  332. bool Fade(const String&, float, float);
  333. bool FadeOthers(const String&, float, float);
  334. AnimationState GetAnimationState(StringHash) const;
  335. AnimationState GetAnimationState(const String&) const;
  336. Variant GetAttribute(const String&) const;
  337. ValueAnimation GetAttributeAnimation(const String&) const;
  338. float GetAttributeAnimationSpeed(const String&) const;
  339. float GetAttributeAnimationTime(const String&) const;
  340. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  341. Variant GetAttributeDefault(const String&) const;
  342. float GetAutoFade(const String&) const;
  343. AnimationBlendMode GetBlendMode(const String&) const;
  344. float GetFadeTarget(const String&) const;
  345. float GetFadeTime(const String&) const;
  346. bool GetInterceptNetworkUpdate(const String&) const;
  347. uint8 GetLayer(const String&) const;
  348. float GetLength(const String&) const;
  349. bool GetLooped(const String&) const;
  350. bool GetRemoveOnCompletion(const String&);
  351. float GetSpeed(const String&) const;
  352. float GetTime(const String&) const;
  353. float GetWeight(const String&) const;
  354. bool HasSubscribedToEvent(Object, const String&);
  355. bool HasSubscribedToEvent(const String&);
  356. bool IsAtEnd(const String&) const;
  357. bool IsFadingIn(const String&) const;
  358. bool IsFadingOut(const String&) const;
  359. bool IsPlaying(const String&) const;
  360. bool Load(File, bool = false);
  361. bool Load(VectorBuffer&, bool = false);
  362. bool LoadJSON(const JSONValue&, bool = false);
  363. bool LoadXML(const XMLElement&, bool = false);
  364. void MarkNetworkUpdate() const;
  365. bool Play(const String&, uint8, bool, float = 0.0f);
  366. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  367. void Remove();
  368. void RemoveAttributeAnimation(const String&);
  369. void RemoveInstanceDefault();
  370. void RemoveObjectAnimation();
  371. void ResetToDefault();
  372. bool Save(File) const;
  373. bool Save(VectorBuffer&) const;
  374. bool SaveJSON(JSONValue&) const;
  375. bool SaveXML(XMLElement&) const;
  376. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  377. void SetAnimationTime(float);
  378. bool SetAttribute(const String&, const Variant&);
  379. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  380. void SetAttributeAnimationSpeed(const String&, float);
  381. void SetAttributeAnimationTime(const String&, float);
  382. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  383. bool SetAutoFade(const String&, float);
  384. bool SetBlendMode(const String&, AnimationBlendMode);
  385. void SetInterceptNetworkUpdate(const String&, bool);
  386. bool SetLayer(const String&, uint8);
  387. bool SetLooped(const String&, bool);
  388. bool SetRemoveOnCompletion(const String&, bool);
  389. bool SetSpeed(const String&, float);
  390. bool SetStartBone(const String&, const String&);
  391. bool SetTime(const String&, float);
  392. bool SetWeight(const String&, float);
  393. void Stop(const String&, float = 0.0f);
  394. void StopAll(float = 0.0f);
  395. void StopLayer(uint8, float = 0.0f);
  396. const String& GetStartBone(const String&) const;
  397. // Properties:
  398. bool animationEnabled;
  399. /* readonly */
  400. Array<Variant> attributeDefaults;
  401. /* readonly */
  402. Array<AttributeInfo> attributeInfos;
  403. Array<Variant> attributes;
  404. /* readonly */
  405. String category;
  406. bool enabled;
  407. /* readonly */
  408. bool enabledEffective;
  409. /* readonly */
  410. uint id;
  411. /* readonly */
  412. Node node;
  413. /* readonly */
  414. uint numAttributes;
  415. ObjectAnimation objectAnimation;
  416. /* readonly */
  417. int refs;
  418. bool temporary;
  419. /* readonly */
  420. StringHash type;
  421. /* readonly */
  422. String typeName;
  423. /* readonly */
  424. int weakRefs;
  425. };
  426. class AnimationKeyFrame
  427. {
  428. // Properties:
  429. Vector3 position;
  430. Quaternion rotation;
  431. Vector3 scale;
  432. float time;
  433. };
  434. class AnimationSet2D
  435. {
  436. // Methods:
  437. String GetAnimation(uint) const;
  438. bool HasSubscribedToEvent(Object, const String&);
  439. bool HasSubscribedToEvent(const String&);
  440. bool Load(File);
  441. bool Load(VectorBuffer&);
  442. bool Save(File) const;
  443. bool Save(VectorBuffer&) const;
  444. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  445. // Properties:
  446. /* readonly */
  447. String category;
  448. /* readonly */
  449. uint memoryUse;
  450. String name;
  451. /* readonly */
  452. uint numAnimations;
  453. /* readonly */
  454. int refs;
  455. /* readonly */
  456. StringHash type;
  457. /* readonly */
  458. String typeName;
  459. /* readonly */
  460. uint useTimer;
  461. /* readonly */
  462. int weakRefs;
  463. };
  464. class AnimationState
  465. {
  466. // Methods:
  467. void AddTime(float);
  468. void AddWeight(float);
  469. void Apply();
  470. float GetBoneWeight(StringHash) const;
  471. float GetBoneWeight(uint) const;
  472. uint GetTrackIndex(StringHash) const;
  473. uint GetTrackIndex(const String&) const;
  474. void SetBoneWeight(StringHash, float, bool = false);
  475. void SetBoneWeight(const String&, float, bool = false);
  476. void SetBoneWeight(uint, float, bool = false);
  477. // Properties:
  478. /* readonly */
  479. Animation animation;
  480. AnimationBlendMode blendMode;
  481. Array<float> boneWeights;
  482. /* readonly */
  483. bool enabled;
  484. uint8 layer;
  485. /* readonly */
  486. float length;
  487. bool looped;
  488. /* readonly */
  489. AnimatedModel model;
  490. /* readonly */
  491. Node node;
  492. /* readonly */
  493. int refs;
  494. Bone startBone;
  495. float time;
  496. /* readonly */
  497. int weakRefs;
  498. float weight;
  499. };
  500. class AnimationTrack
  501. {
  502. // Methods:
  503. void AddKeyFrame(const AnimationKeyFrame&);
  504. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  505. void RemoveAllKeyFrames();
  506. void RemoveKeyFrame(uint);
  507. // Properties:
  508. uint8 channelMask;
  509. Array<AnimationKeyFrame> keyFrames;
  510. String name;
  511. StringHash nameHash;
  512. /* readonly */
  513. uint numKeyFrames;
  514. };
  515. class AnimationTriggerPoint
  516. {
  517. // Properties:
  518. Variant data;
  519. float time;
  520. };
  521. template <class T> class Array
  522. {
  523. // Methods:
  524. void Clear();
  525. void Erase(uint);
  526. int Find(const T&) const;
  527. int Find(uint, const T&) const;
  528. int FindByRef(const T&) const;
  529. int FindByRef(uint, const T&) const;
  530. void Insert(uint, const T&);
  531. void Pop();
  532. void Push(const T&);
  533. void Reserve(uint);
  534. void Resize(uint);
  535. void Reverse();
  536. void Sort();
  537. void Sort(uint, uint);
  538. void SortReverse();
  539. void SortReverse(uint, uint);
  540. // Properties:
  541. /* readonly */
  542. bool empty;
  543. uint length;
  544. };
  545. class AttributeInfo
  546. {
  547. // Properties:
  548. Variant defaultValue;
  549. /* readonly */
  550. Array<String> enumNames;
  551. uint mode;
  552. String name;
  553. VariantType type;
  554. };
  555. class Audio
  556. {
  557. // Methods:
  558. bool HasMasterGain(const String&) const;
  559. bool HasSubscribedToEvent(Object, const String&);
  560. bool HasSubscribedToEvent(const String&);
  561. bool IsSoundTypePaused(const String&);
  562. void PauseSoundType(const String&);
  563. bool Play();
  564. void ResumeAll();
  565. void ResumeSoundType(const String&);
  566. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  567. void SetMode(int, int, bool, bool = true);
  568. void Stop();
  569. // Properties:
  570. /* readonly */
  571. String category;
  572. /* readonly */
  573. bool initialized;
  574. /* readonly */
  575. bool interpolation;
  576. SoundListener listener;
  577. Array<float> masterGain;
  578. /* readonly */
  579. int mixRate;
  580. /* readonly */
  581. bool playing;
  582. /* readonly */
  583. int refs;
  584. /* readonly */
  585. uint sampleSize;
  586. /* readonly */
  587. bool stereo;
  588. /* readonly */
  589. StringHash type;
  590. /* readonly */
  591. String typeName;
  592. /* readonly */
  593. int weakRefs;
  594. };
  595. class BiasParameters
  596. {
  597. // Properties:
  598. float constantBias;
  599. float normalOffset;
  600. float slopeScaledBias;
  601. };
  602. class Billboard
  603. {
  604. // Properties:
  605. Color color;
  606. Vector3 direction;
  607. bool enabled;
  608. Vector3 position;
  609. float rotation;
  610. Vector2 size;
  611. Rect uv;
  612. };
  613. class BillboardSet
  614. {
  615. // Methods:
  616. void ApplyAttributes();
  617. void Commit();
  618. void DrawDebugGeometry(DebugRenderer, bool);
  619. Variant GetAttribute(const String&) const;
  620. ValueAnimation GetAttributeAnimation(const String&) const;
  621. float GetAttributeAnimationSpeed(const String&) const;
  622. float GetAttributeAnimationTime(const String&) const;
  623. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  624. Variant GetAttributeDefault(const String&) const;
  625. bool GetInterceptNetworkUpdate(const String&) const;
  626. bool HasSubscribedToEvent(Object, const String&);
  627. bool HasSubscribedToEvent(const String&);
  628. bool IsInView(Camera) const;
  629. bool Load(File, bool = false);
  630. bool Load(VectorBuffer&, bool = false);
  631. bool LoadJSON(const JSONValue&, bool = false);
  632. bool LoadXML(const XMLElement&, bool = false);
  633. void MarkNetworkUpdate() const;
  634. void Remove();
  635. void RemoveAttributeAnimation(const String&);
  636. void RemoveInstanceDefault();
  637. void RemoveObjectAnimation();
  638. void ResetToDefault();
  639. bool Save(File) const;
  640. bool Save(VectorBuffer&) const;
  641. bool SaveJSON(JSONValue&) const;
  642. bool SaveXML(XMLElement&) const;
  643. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  644. void SetAnimationTime(float);
  645. bool SetAttribute(const String&, const Variant&);
  646. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  647. void SetAttributeAnimationSpeed(const String&, float);
  648. void SetAttributeAnimationTime(const String&, float);
  649. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  650. void SetInterceptNetworkUpdate(const String&, bool);
  651. // Properties:
  652. bool animationEnabled;
  653. float animationLodBias;
  654. /* readonly */
  655. Array<Variant> attributeDefaults;
  656. /* readonly */
  657. Array<AttributeInfo> attributeInfos;
  658. Array<Variant> attributes;
  659. /* readonly */
  660. Array<Billboard> billboards;
  661. /* readonly */
  662. BoundingBox boundingBox;
  663. bool castShadows;
  664. /* readonly */
  665. String category;
  666. float drawDistance;
  667. bool enabled;
  668. /* readonly */
  669. bool enabledEffective;
  670. FaceCameraMode faceCameraMode;
  671. bool fixedScreenSize;
  672. /* readonly */
  673. uint id;
  674. /* readonly */
  675. bool inView;
  676. uint lightMask;
  677. float lodBias;
  678. Material material;
  679. uint maxLights;
  680. /* readonly */
  681. Node node;
  682. /* readonly */
  683. uint numAttributes;
  684. uint numBillboards;
  685. ObjectAnimation objectAnimation;
  686. bool occludee;
  687. bool occluder;
  688. /* readonly */
  689. int refs;
  690. bool relative;
  691. bool scaled;
  692. float shadowDistance;
  693. uint shadowMask;
  694. bool sorted;
  695. bool temporary;
  696. /* readonly */
  697. StringHash type;
  698. /* readonly */
  699. String typeName;
  700. uint viewMask;
  701. /* readonly */
  702. int weakRefs;
  703. /* readonly */
  704. BoundingBox worldBoundingBox;
  705. /* readonly */
  706. Zone zone;
  707. uint zoneMask;
  708. };
  709. class Bone
  710. {
  711. // Properties:
  712. bool animated;
  713. BoundingBox boundingBox;
  714. Vector3 initialPosition;
  715. Quaternion initialRotation;
  716. Vector3 initialScale;
  717. String name;
  718. Node node;
  719. float radius;
  720. };
  721. class BorderImage
  722. {
  723. // Methods:
  724. void AddChild(UIElement);
  725. void AddTag(const String&);
  726. void AddTags(const String&, int8 = ';');
  727. void ApplyAttributes();
  728. void BringToFront();
  729. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  730. void DisableLayoutUpdate();
  731. IntVector2 ElementToScreen(const IntVector2&);
  732. void EnableLayoutUpdate();
  733. uint FindChild(UIElement) const;
  734. Variant GetAttribute(const String&) const;
  735. ValueAnimation GetAttributeAnimation(const String&) const;
  736. float GetAttributeAnimationSpeed(const String&) const;
  737. float GetAttributeAnimationTime(const String&) const;
  738. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  739. Variant GetAttributeDefault(const String&) const;
  740. UIElement GetChild(const String&, bool = false) const;
  741. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  742. Array<UIElement> GetChildren(bool = false) const;
  743. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  744. UIElement GetElementEventSender() const;
  745. bool GetInterceptNetworkUpdate(const String&) const;
  746. uint GetNumChildren(bool) const;
  747. bool HasSubscribedToEvent(Object, const String&);
  748. bool HasSubscribedToEvent(const String&);
  749. bool HasTag(const String&) const;
  750. void InsertChild(uint, UIElement);
  751. bool IsInside(IntVector2, bool);
  752. bool IsInsideCombined(IntVector2, bool);
  753. bool Load(File, bool = false);
  754. bool Load(VectorBuffer&, bool = false);
  755. bool LoadChildXML(XMLFile, XMLFile = null);
  756. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  757. bool LoadJSON(const JSONValue&, bool = false);
  758. bool LoadXML(File);
  759. bool LoadXML(VectorBuffer&);
  760. bool LoadXML(XMLFile, XMLFile);
  761. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  762. bool LoadXML(const XMLElement&, bool = false);
  763. void MarkNetworkUpdate() const;
  764. void Remove();
  765. void RemoveAllChildren();
  766. void RemoveAllTags();
  767. void RemoveAttributeAnimation(const String&);
  768. void RemoveChild(UIElement, uint = 0);
  769. void RemoveChild(uint);
  770. void RemoveInstanceDefault();
  771. void RemoveObjectAnimation();
  772. bool RemoveTag(const String&);
  773. void ResetDeepEnabled();
  774. void ResetToDefault();
  775. bool Save(File) const;
  776. bool Save(VectorBuffer&) const;
  777. bool SaveJSON(JSONValue&) const;
  778. bool SaveXML(File, const String& = "\t");
  779. bool SaveXML(VectorBuffer&, const String& = "\t");
  780. bool SaveXML(XMLElement&) const;
  781. IntVector2 ScreenToElement(const IntVector2&);
  782. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  783. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  784. void SetAnimationTime(float);
  785. bool SetAttribute(const String&, const Variant&);
  786. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  787. void SetAttributeAnimationSpeed(const String&, float);
  788. void SetAttributeAnimationTime(const String&, float);
  789. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  790. void SetDeepEnabled(bool);
  791. void SetEnabledRecursive(bool);
  792. void SetFixedHeight(int);
  793. void SetFixedSize(int, int);
  794. void SetFixedWidth(int);
  795. void SetFullImageRect();
  796. void SetHoverOffset(int, int);
  797. void SetInterceptNetworkUpdate(const String&, bool);
  798. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  799. void SetMaxSize(int, int);
  800. void SetMinSize(int, int);
  801. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  802. void SetPosition(int, int);
  803. void SetSize(int, int);
  804. bool SetStyle(const String&, XMLFile = null);
  805. bool SetStyle(const XMLElement&);
  806. bool SetStyleAuto(XMLFile = null);
  807. void UpdateLayout();
  808. const Variant& GetVar(const StringHash&);
  809. // Properties:
  810. bool animationEnabled;
  811. /* readonly */
  812. Array<Variant> attributeDefaults;
  813. /* readonly */
  814. Array<AttributeInfo> attributeInfos;
  815. Array<Variant> attributes;
  816. BlendMode blendMode;
  817. IntRect border;
  818. bool bringToBack;
  819. bool bringToFront;
  820. /* readonly */
  821. String category;
  822. /* readonly */
  823. IntVector2 childOffset;
  824. /* readonly */
  825. Array<UIElement> children;
  826. IntRect clipBorder;
  827. bool clipChildren;
  828. /* writeonly */
  829. Color color;
  830. /* readonly */
  831. bool colorGradient;
  832. Array<Color> colors;
  833. /* readonly */
  834. IntRect combinedScreenRect;
  835. XMLFile defaultStyle;
  836. /* readonly */
  837. float derivedOpacity;
  838. /* readonly */
  839. uint dragButtonCombo;
  840. /* readonly */
  841. int dragButtonCount;
  842. uint dragDropMode;
  843. bool editable;
  844. bool elementEventSender;
  845. bool enabled;
  846. /* readonly */
  847. bool enabledSelf;
  848. /* readonly */
  849. bool fixedHeight;
  850. /* readonly */
  851. bool fixedSize;
  852. /* readonly */
  853. bool fixedWidth;
  854. bool focus;
  855. FocusMode focusMode;
  856. int height;
  857. HorizontalAlignment horizontalAlignment;
  858. IntVector2 hoverOffset;
  859. /* readonly */
  860. bool hovering;
  861. IntRect imageBorder;
  862. IntRect imageRect;
  863. int indent;
  864. int indentSpacing;
  865. /* readonly */
  866. int indentWidth;
  867. bool internal;
  868. IntRect layoutBorder;
  869. Vector2 layoutFlexScale;
  870. LayoutMode layoutMode;
  871. int layoutSpacing;
  872. int maxHeight;
  873. IntVector2 maxSize;
  874. int maxWidth;
  875. int minHeight;
  876. IntVector2 minSize;
  877. int minWidth;
  878. String name;
  879. /* readonly */
  880. uint numAllChildren;
  881. /* readonly */
  882. uint numAttributes;
  883. /* readonly */
  884. uint numChildren;
  885. ObjectAnimation objectAnimation;
  886. float opacity;
  887. UIElement parent;
  888. IntVector2 position;
  889. int priority;
  890. /* readonly */
  891. int refs;
  892. /* readonly */
  893. UIElement root;
  894. /* readonly */
  895. IntVector2 screenPosition;
  896. bool selected;
  897. IntVector2 size;
  898. bool sortChildren;
  899. String style;
  900. /* readonly */
  901. Array<String> tags;
  902. bool temporary;
  903. Texture texture;
  904. bool tiled;
  905. TraversalMode traversalMode;
  906. /* readonly */
  907. StringHash type;
  908. /* readonly */
  909. String typeName;
  910. bool useDerivedOpacity;
  911. /* readonly */
  912. VariantMap vars;
  913. VerticalAlignment verticalAlignment;
  914. bool visible;
  915. /* readonly */
  916. bool visibleEffective;
  917. /* readonly */
  918. int weakRefs;
  919. int width;
  920. };
  921. class BoundingBox
  922. {
  923. // Methods:
  924. void Clear();
  925. void Clip(const BoundingBox&);
  926. void Define(const BoundingBox&);
  927. void Define(const Frustum&);
  928. void Define(const Polyhedron&);
  929. void Define(const Sphere&);
  930. void Define(const Vector3&);
  931. void Define(const Vector3&, const Vector3&);
  932. void Define(float, float);
  933. bool Defined() const;
  934. Intersection IsInside(const BoundingBox&) const;
  935. Intersection IsInside(const Sphere&) const;
  936. Intersection IsInside(const Vector3&) const;
  937. Intersection IsInsideFast(const BoundingBox&) const;
  938. Intersection IsInsideFast(const Sphere&) const;
  939. void Merge(const BoundingBox&);
  940. void Merge(const Frustum&);
  941. void Merge(const Polyhedron&);
  942. void Merge(const Sphere&);
  943. void Merge(const Vector3&);
  944. Rect Projected(const Matrix4&) const;
  945. String ToString() const;
  946. void Transform(const Matrix3&);
  947. void Transform(const Matrix3x4&);
  948. BoundingBox Transformed(const Matrix3&) const;
  949. BoundingBox Transformed(const Matrix3x4&) const;
  950. // Properties:
  951. /* readonly */
  952. Vector3 center;
  953. /* readonly */
  954. Vector3 halfSize;
  955. Vector3 max;
  956. Vector3 min;
  957. /* readonly */
  958. Vector3 size;
  959. };
  960. class Button
  961. {
  962. // Methods:
  963. void AddChild(UIElement);
  964. void AddTag(const String&);
  965. void AddTags(const String&, int8 = ';');
  966. void ApplyAttributes();
  967. void BringToFront();
  968. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  969. void DisableLayoutUpdate();
  970. IntVector2 ElementToScreen(const IntVector2&);
  971. void EnableLayoutUpdate();
  972. uint FindChild(UIElement) const;
  973. Variant GetAttribute(const String&) const;
  974. ValueAnimation GetAttributeAnimation(const String&) const;
  975. float GetAttributeAnimationSpeed(const String&) const;
  976. float GetAttributeAnimationTime(const String&) const;
  977. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  978. Variant GetAttributeDefault(const String&) const;
  979. UIElement GetChild(const String&, bool = false) const;
  980. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  981. Array<UIElement> GetChildren(bool = false) const;
  982. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  983. UIElement GetElementEventSender() const;
  984. bool GetInterceptNetworkUpdate(const String&) const;
  985. uint GetNumChildren(bool) const;
  986. bool HasSubscribedToEvent(Object, const String&);
  987. bool HasSubscribedToEvent(const String&);
  988. bool HasTag(const String&) const;
  989. void InsertChild(uint, UIElement);
  990. bool IsInside(IntVector2, bool);
  991. bool IsInsideCombined(IntVector2, bool);
  992. bool Load(File, bool = false);
  993. bool Load(VectorBuffer&, bool = false);
  994. bool LoadChildXML(XMLFile, XMLFile = null);
  995. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  996. bool LoadJSON(const JSONValue&, bool = false);
  997. bool LoadXML(File);
  998. bool LoadXML(VectorBuffer&);
  999. bool LoadXML(XMLFile, XMLFile);
  1000. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1001. bool LoadXML(const XMLElement&, bool = false);
  1002. void MarkNetworkUpdate() const;
  1003. void Remove();
  1004. void RemoveAllChildren();
  1005. void RemoveAllTags();
  1006. void RemoveAttributeAnimation(const String&);
  1007. void RemoveChild(UIElement, uint = 0);
  1008. void RemoveChild(uint);
  1009. void RemoveInstanceDefault();
  1010. void RemoveObjectAnimation();
  1011. bool RemoveTag(const String&);
  1012. void ResetDeepEnabled();
  1013. void ResetToDefault();
  1014. bool Save(File) const;
  1015. bool Save(VectorBuffer&) const;
  1016. bool SaveJSON(JSONValue&) const;
  1017. bool SaveXML(File, const String& = "\t");
  1018. bool SaveXML(VectorBuffer&, const String& = "\t");
  1019. bool SaveXML(XMLElement&) const;
  1020. IntVector2 ScreenToElement(const IntVector2&);
  1021. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1022. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1023. void SetAnimationTime(float);
  1024. bool SetAttribute(const String&, const Variant&);
  1025. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1026. void SetAttributeAnimationSpeed(const String&, float);
  1027. void SetAttributeAnimationTime(const String&, float);
  1028. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1029. void SetDeepEnabled(bool);
  1030. void SetEnabledRecursive(bool);
  1031. void SetFixedHeight(int);
  1032. void SetFixedSize(int, int);
  1033. void SetFixedWidth(int);
  1034. void SetFullImageRect();
  1035. void SetHoverOffset(int, int);
  1036. void SetInterceptNetworkUpdate(const String&, bool);
  1037. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1038. void SetMaxSize(int, int);
  1039. void SetMinSize(int, int);
  1040. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1041. void SetPosition(int, int);
  1042. void SetPressedChildOffset(int, int);
  1043. void SetPressedOffset(int, int);
  1044. void SetRepeat(float, float);
  1045. void SetSize(int, int);
  1046. bool SetStyle(const String&, XMLFile = null);
  1047. bool SetStyle(const XMLElement&);
  1048. bool SetStyleAuto(XMLFile = null);
  1049. void UpdateLayout();
  1050. const Variant& GetVar(const StringHash&);
  1051. // Properties:
  1052. bool animationEnabled;
  1053. /* readonly */
  1054. Array<Variant> attributeDefaults;
  1055. /* readonly */
  1056. Array<AttributeInfo> attributeInfos;
  1057. Array<Variant> attributes;
  1058. BlendMode blendMode;
  1059. IntRect border;
  1060. bool bringToBack;
  1061. bool bringToFront;
  1062. /* readonly */
  1063. String category;
  1064. /* readonly */
  1065. IntVector2 childOffset;
  1066. /* readonly */
  1067. Array<UIElement> children;
  1068. IntRect clipBorder;
  1069. bool clipChildren;
  1070. /* writeonly */
  1071. Color color;
  1072. /* readonly */
  1073. bool colorGradient;
  1074. Array<Color> colors;
  1075. /* readonly */
  1076. IntRect combinedScreenRect;
  1077. XMLFile defaultStyle;
  1078. /* readonly */
  1079. float derivedOpacity;
  1080. /* readonly */
  1081. uint dragButtonCombo;
  1082. /* readonly */
  1083. int dragButtonCount;
  1084. uint dragDropMode;
  1085. bool editable;
  1086. bool elementEventSender;
  1087. bool enabled;
  1088. /* readonly */
  1089. bool enabledSelf;
  1090. /* readonly */
  1091. bool fixedHeight;
  1092. /* readonly */
  1093. bool fixedSize;
  1094. /* readonly */
  1095. bool fixedWidth;
  1096. bool focus;
  1097. FocusMode focusMode;
  1098. int height;
  1099. HorizontalAlignment horizontalAlignment;
  1100. IntVector2 hoverOffset;
  1101. /* readonly */
  1102. bool hovering;
  1103. IntRect imageBorder;
  1104. IntRect imageRect;
  1105. int indent;
  1106. int indentSpacing;
  1107. /* readonly */
  1108. int indentWidth;
  1109. bool internal;
  1110. IntRect layoutBorder;
  1111. Vector2 layoutFlexScale;
  1112. LayoutMode layoutMode;
  1113. int layoutSpacing;
  1114. int maxHeight;
  1115. IntVector2 maxSize;
  1116. int maxWidth;
  1117. int minHeight;
  1118. IntVector2 minSize;
  1119. int minWidth;
  1120. String name;
  1121. /* readonly */
  1122. uint numAllChildren;
  1123. /* readonly */
  1124. uint numAttributes;
  1125. /* readonly */
  1126. uint numChildren;
  1127. ObjectAnimation objectAnimation;
  1128. float opacity;
  1129. UIElement parent;
  1130. IntVector2 position;
  1131. /* readonly */
  1132. bool pressed;
  1133. IntVector2 pressedChildOffset;
  1134. IntVector2 pressedOffset;
  1135. int priority;
  1136. /* readonly */
  1137. int refs;
  1138. float repeatDelay;
  1139. float repeatRate;
  1140. /* readonly */
  1141. UIElement root;
  1142. /* readonly */
  1143. IntVector2 screenPosition;
  1144. bool selected;
  1145. IntVector2 size;
  1146. bool sortChildren;
  1147. String style;
  1148. /* readonly */
  1149. Array<String> tags;
  1150. bool temporary;
  1151. Texture texture;
  1152. bool tiled;
  1153. TraversalMode traversalMode;
  1154. /* readonly */
  1155. StringHash type;
  1156. /* readonly */
  1157. String typeName;
  1158. bool useDerivedOpacity;
  1159. /* readonly */
  1160. VariantMap vars;
  1161. VerticalAlignment verticalAlignment;
  1162. bool visible;
  1163. /* readonly */
  1164. bool visibleEffective;
  1165. /* readonly */
  1166. int weakRefs;
  1167. int width;
  1168. };
  1169. class Camera
  1170. {
  1171. // Methods:
  1172. void ApplyAttributes();
  1173. void DrawDebugGeometry(DebugRenderer, bool);
  1174. Variant GetAttribute(const String&) const;
  1175. ValueAnimation GetAttributeAnimation(const String&) const;
  1176. float GetAttributeAnimationSpeed(const String&) const;
  1177. float GetAttributeAnimationTime(const String&) const;
  1178. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1179. Variant GetAttributeDefault(const String&) const;
  1180. float GetDistance(const Vector3&) const;
  1181. float GetDistanceSquared(const Vector3&) const;
  1182. bool GetInterceptNetworkUpdate(const String&) const;
  1183. Ray GetScreenRay(float, float) const;
  1184. Frustum GetSplitFrustum(float, float) const;
  1185. bool HasSubscribedToEvent(Object, const String&);
  1186. bool HasSubscribedToEvent(const String&);
  1187. bool Load(File, bool = false);
  1188. bool Load(VectorBuffer&, bool = false);
  1189. bool LoadJSON(const JSONValue&, bool = false);
  1190. bool LoadXML(const XMLElement&, bool = false);
  1191. void MarkNetworkUpdate() const;
  1192. void Remove();
  1193. void RemoveAttributeAnimation(const String&);
  1194. void RemoveInstanceDefault();
  1195. void RemoveObjectAnimation();
  1196. void ResetToDefault();
  1197. bool Save(File) const;
  1198. bool Save(VectorBuffer&) const;
  1199. bool SaveJSON(JSONValue&) const;
  1200. bool SaveXML(XMLElement&) const;
  1201. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1202. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1203. void SetAnimationTime(float);
  1204. bool SetAttribute(const String&, const Variant&);
  1205. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1206. void SetAttributeAnimationSpeed(const String&, float);
  1207. void SetAttributeAnimationTime(const String&, float);
  1208. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1209. void SetInterceptNetworkUpdate(const String&, bool);
  1210. void SetOrthoSize(const Vector2&);
  1211. Vector2 WorldToScreenPoint(const Vector3&) const;
  1212. // Properties:
  1213. bool animationEnabled;
  1214. float aspectRatio;
  1215. /* readonly */
  1216. Array<Variant> attributeDefaults;
  1217. /* readonly */
  1218. Array<AttributeInfo> attributeInfos;
  1219. Array<Variant> attributes;
  1220. bool autoAspectRatio;
  1221. /* readonly */
  1222. String category;
  1223. Plane clipPlane;
  1224. /* readonly */
  1225. Matrix3x4 effectiveWorldTransform;
  1226. bool enabled;
  1227. /* readonly */
  1228. bool enabledEffective;
  1229. float farClip;
  1230. FillMode fillMode;
  1231. float fov;
  1232. /* readonly */
  1233. Frustum frustum;
  1234. /* readonly */
  1235. float halfViewSize;
  1236. /* readonly */
  1237. uint id;
  1238. float lodBias;
  1239. float nearClip;
  1240. /* readonly */
  1241. Node node;
  1242. /* readonly */
  1243. uint numAttributes;
  1244. ObjectAnimation objectAnimation;
  1245. float orthoSize;
  1246. bool orthographic;
  1247. /* readonly */
  1248. Matrix4 projection;
  1249. Vector2 projectionOffset;
  1250. Plane reflectionPlane;
  1251. /* readonly */
  1252. int refs;
  1253. bool temporary;
  1254. /* readonly */
  1255. StringHash type;
  1256. /* readonly */
  1257. String typeName;
  1258. bool useClipping;
  1259. bool useReflection;
  1260. /* readonly */
  1261. Matrix3x4 view;
  1262. uint viewMask;
  1263. uint viewOverrideFlags;
  1264. /* readonly */
  1265. Frustum viewSpaceFrustum;
  1266. /* readonly */
  1267. int weakRefs;
  1268. float zoom;
  1269. };
  1270. class CascadeParameters
  1271. {
  1272. // Properties:
  1273. float biasAutoAdjust;
  1274. float fadeStart;
  1275. float split1;
  1276. float split2;
  1277. float split3;
  1278. float split4;
  1279. };
  1280. class CheckBox
  1281. {
  1282. // Methods:
  1283. void AddChild(UIElement);
  1284. void AddTag(const String&);
  1285. void AddTags(const String&, int8 = ';');
  1286. void ApplyAttributes();
  1287. void BringToFront();
  1288. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1289. void DisableLayoutUpdate();
  1290. IntVector2 ElementToScreen(const IntVector2&);
  1291. void EnableLayoutUpdate();
  1292. uint FindChild(UIElement) const;
  1293. Variant GetAttribute(const String&) const;
  1294. ValueAnimation GetAttributeAnimation(const String&) const;
  1295. float GetAttributeAnimationSpeed(const String&) const;
  1296. float GetAttributeAnimationTime(const String&) const;
  1297. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1298. Variant GetAttributeDefault(const String&) const;
  1299. UIElement GetChild(const String&, bool = false) const;
  1300. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1301. Array<UIElement> GetChildren(bool = false) const;
  1302. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1303. UIElement GetElementEventSender() const;
  1304. bool GetInterceptNetworkUpdate(const String&) const;
  1305. uint GetNumChildren(bool) const;
  1306. bool HasSubscribedToEvent(Object, const String&);
  1307. bool HasSubscribedToEvent(const String&);
  1308. bool HasTag(const String&) const;
  1309. void InsertChild(uint, UIElement);
  1310. bool IsInside(IntVector2, bool);
  1311. bool IsInsideCombined(IntVector2, bool);
  1312. bool Load(File, bool = false);
  1313. bool Load(VectorBuffer&, bool = false);
  1314. bool LoadChildXML(XMLFile, XMLFile = null);
  1315. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1316. bool LoadJSON(const JSONValue&, bool = false);
  1317. bool LoadXML(File);
  1318. bool LoadXML(VectorBuffer&);
  1319. bool LoadXML(XMLFile, XMLFile);
  1320. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1321. bool LoadXML(const XMLElement&, bool = false);
  1322. void MarkNetworkUpdate() const;
  1323. void Remove();
  1324. void RemoveAllChildren();
  1325. void RemoveAllTags();
  1326. void RemoveAttributeAnimation(const String&);
  1327. void RemoveChild(UIElement, uint = 0);
  1328. void RemoveChild(uint);
  1329. void RemoveInstanceDefault();
  1330. void RemoveObjectAnimation();
  1331. bool RemoveTag(const String&);
  1332. void ResetDeepEnabled();
  1333. void ResetToDefault();
  1334. bool Save(File) const;
  1335. bool Save(VectorBuffer&) const;
  1336. bool SaveJSON(JSONValue&) const;
  1337. bool SaveXML(File, const String& = "\t");
  1338. bool SaveXML(VectorBuffer&, const String& = "\t");
  1339. bool SaveXML(XMLElement&) const;
  1340. IntVector2 ScreenToElement(const IntVector2&);
  1341. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1342. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1343. void SetAnimationTime(float);
  1344. bool SetAttribute(const String&, const Variant&);
  1345. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1346. void SetAttributeAnimationSpeed(const String&, float);
  1347. void SetAttributeAnimationTime(const String&, float);
  1348. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1349. void SetCheckedOffset(int, int);
  1350. void SetDeepEnabled(bool);
  1351. void SetEnabledRecursive(bool);
  1352. void SetFixedHeight(int);
  1353. void SetFixedSize(int, int);
  1354. void SetFixedWidth(int);
  1355. void SetFullImageRect();
  1356. void SetHoverOffset(int, int);
  1357. void SetInterceptNetworkUpdate(const String&, bool);
  1358. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1359. void SetMaxSize(int, int);
  1360. void SetMinSize(int, int);
  1361. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1362. void SetPosition(int, int);
  1363. void SetSize(int, int);
  1364. bool SetStyle(const String&, XMLFile = null);
  1365. bool SetStyle(const XMLElement&);
  1366. bool SetStyleAuto(XMLFile = null);
  1367. void UpdateLayout();
  1368. const Variant& GetVar(const StringHash&);
  1369. // Properties:
  1370. bool animationEnabled;
  1371. /* readonly */
  1372. Array<Variant> attributeDefaults;
  1373. /* readonly */
  1374. Array<AttributeInfo> attributeInfos;
  1375. Array<Variant> attributes;
  1376. BlendMode blendMode;
  1377. IntRect border;
  1378. bool bringToBack;
  1379. bool bringToFront;
  1380. /* readonly */
  1381. String category;
  1382. bool checked;
  1383. IntVector2 checkedOffset;
  1384. /* readonly */
  1385. IntVector2 childOffset;
  1386. /* readonly */
  1387. Array<UIElement> children;
  1388. IntRect clipBorder;
  1389. bool clipChildren;
  1390. /* writeonly */
  1391. Color color;
  1392. /* readonly */
  1393. bool colorGradient;
  1394. Array<Color> colors;
  1395. /* readonly */
  1396. IntRect combinedScreenRect;
  1397. XMLFile defaultStyle;
  1398. /* readonly */
  1399. float derivedOpacity;
  1400. /* readonly */
  1401. uint dragButtonCombo;
  1402. /* readonly */
  1403. int dragButtonCount;
  1404. uint dragDropMode;
  1405. bool editable;
  1406. bool elementEventSender;
  1407. bool enabled;
  1408. /* readonly */
  1409. bool enabledSelf;
  1410. /* readonly */
  1411. bool fixedHeight;
  1412. /* readonly */
  1413. bool fixedSize;
  1414. /* readonly */
  1415. bool fixedWidth;
  1416. bool focus;
  1417. FocusMode focusMode;
  1418. int height;
  1419. HorizontalAlignment horizontalAlignment;
  1420. IntVector2 hoverOffset;
  1421. /* readonly */
  1422. bool hovering;
  1423. IntRect imageBorder;
  1424. IntRect imageRect;
  1425. int indent;
  1426. int indentSpacing;
  1427. /* readonly */
  1428. int indentWidth;
  1429. bool internal;
  1430. IntRect layoutBorder;
  1431. Vector2 layoutFlexScale;
  1432. LayoutMode layoutMode;
  1433. int layoutSpacing;
  1434. int maxHeight;
  1435. IntVector2 maxSize;
  1436. int maxWidth;
  1437. int minHeight;
  1438. IntVector2 minSize;
  1439. int minWidth;
  1440. String name;
  1441. /* readonly */
  1442. uint numAllChildren;
  1443. /* readonly */
  1444. uint numAttributes;
  1445. /* readonly */
  1446. uint numChildren;
  1447. ObjectAnimation objectAnimation;
  1448. float opacity;
  1449. UIElement parent;
  1450. IntVector2 position;
  1451. int priority;
  1452. /* readonly */
  1453. int refs;
  1454. /* readonly */
  1455. UIElement root;
  1456. /* readonly */
  1457. IntVector2 screenPosition;
  1458. bool selected;
  1459. IntVector2 size;
  1460. bool sortChildren;
  1461. String style;
  1462. /* readonly */
  1463. Array<String> tags;
  1464. bool temporary;
  1465. Texture texture;
  1466. bool tiled;
  1467. TraversalMode traversalMode;
  1468. /* readonly */
  1469. StringHash type;
  1470. /* readonly */
  1471. String typeName;
  1472. bool useDerivedOpacity;
  1473. /* readonly */
  1474. VariantMap vars;
  1475. VerticalAlignment verticalAlignment;
  1476. bool visible;
  1477. /* readonly */
  1478. bool visibleEffective;
  1479. /* readonly */
  1480. int weakRefs;
  1481. int width;
  1482. };
  1483. class CollisionBox2D
  1484. {
  1485. // Methods:
  1486. void ApplyAttributes();
  1487. void DrawDebugGeometry(DebugRenderer, bool);
  1488. Variant GetAttribute(const String&) const;
  1489. ValueAnimation GetAttributeAnimation(const String&) const;
  1490. float GetAttributeAnimationSpeed(const String&) const;
  1491. float GetAttributeAnimationTime(const String&) const;
  1492. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1493. Variant GetAttributeDefault(const String&) const;
  1494. bool GetInterceptNetworkUpdate(const String&) const;
  1495. bool HasSubscribedToEvent(Object, const String&);
  1496. bool HasSubscribedToEvent(const String&);
  1497. bool Load(File, bool = false);
  1498. bool Load(VectorBuffer&, bool = false);
  1499. bool LoadJSON(const JSONValue&, bool = false);
  1500. bool LoadXML(const XMLElement&, bool = false);
  1501. void MarkNetworkUpdate() const;
  1502. void Remove();
  1503. void RemoveAttributeAnimation(const String&);
  1504. void RemoveInstanceDefault();
  1505. void RemoveObjectAnimation();
  1506. void ResetToDefault();
  1507. bool Save(File) const;
  1508. bool Save(VectorBuffer&) const;
  1509. bool SaveJSON(JSONValue&) const;
  1510. bool SaveXML(XMLElement&) const;
  1511. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1512. void SetAnimationTime(float);
  1513. bool SetAttribute(const String&, const Variant&);
  1514. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1515. void SetAttributeAnimationSpeed(const String&, float);
  1516. void SetAttributeAnimationTime(const String&, float);
  1517. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1518. void SetCenter(float, float);
  1519. void SetInterceptNetworkUpdate(const String&, bool);
  1520. void SetSize(float, float);
  1521. // Properties:
  1522. float angle;
  1523. bool animationEnabled;
  1524. /* readonly */
  1525. Array<Variant> attributeDefaults;
  1526. /* readonly */
  1527. Array<AttributeInfo> attributeInfos;
  1528. Array<Variant> attributes;
  1529. /* readonly */
  1530. String category;
  1531. int categoryBits;
  1532. Vector2 center;
  1533. float density;
  1534. bool enabled;
  1535. /* readonly */
  1536. bool enabledEffective;
  1537. float friction;
  1538. int groupIndex;
  1539. /* readonly */
  1540. uint id;
  1541. /* readonly */
  1542. float inertia;
  1543. int maskBits;
  1544. /* readonly */
  1545. float mass;
  1546. /* readonly */
  1547. Vector2 massCenter;
  1548. /* readonly */
  1549. Node node;
  1550. /* readonly */
  1551. uint numAttributes;
  1552. ObjectAnimation objectAnimation;
  1553. /* readonly */
  1554. int refs;
  1555. float restitution;
  1556. Vector2 size;
  1557. bool temporary;
  1558. bool trigger;
  1559. /* readonly */
  1560. StringHash type;
  1561. /* readonly */
  1562. String typeName;
  1563. /* readonly */
  1564. int weakRefs;
  1565. };
  1566. class CollisionChain2D
  1567. {
  1568. // Methods:
  1569. void ApplyAttributes();
  1570. void DrawDebugGeometry(DebugRenderer, bool);
  1571. Variant GetAttribute(const String&) const;
  1572. ValueAnimation GetAttributeAnimation(const String&) const;
  1573. float GetAttributeAnimationSpeed(const String&) const;
  1574. float GetAttributeAnimationTime(const String&) const;
  1575. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1576. Variant GetAttributeDefault(const String&) const;
  1577. bool GetInterceptNetworkUpdate(const String&) const;
  1578. Array<Vector2> GetVertices() const;
  1579. bool HasSubscribedToEvent(Object, const String&);
  1580. bool HasSubscribedToEvent(const String&);
  1581. bool Load(File, bool = false);
  1582. bool Load(VectorBuffer&, bool = false);
  1583. bool LoadJSON(const JSONValue&, bool = false);
  1584. bool LoadXML(const XMLElement&, bool = false);
  1585. void MarkNetworkUpdate() const;
  1586. void Remove();
  1587. void RemoveAttributeAnimation(const String&);
  1588. void RemoveInstanceDefault();
  1589. void RemoveObjectAnimation();
  1590. void ResetToDefault();
  1591. bool Save(File) const;
  1592. bool Save(VectorBuffer&) const;
  1593. bool SaveJSON(JSONValue&) const;
  1594. bool SaveXML(XMLElement&) const;
  1595. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1596. void SetAnimationTime(float);
  1597. bool SetAttribute(const String&, const Variant&);
  1598. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1599. void SetAttributeAnimationSpeed(const String&, float);
  1600. void SetAttributeAnimationTime(const String&, float);
  1601. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1602. void SetInterceptNetworkUpdate(const String&, bool);
  1603. void SetVertex(uint, const Vector2&);
  1604. void SetVertices(Array<Vector2>);
  1605. const Vector2& GetVertex(uint) const;
  1606. // Properties:
  1607. bool animationEnabled;
  1608. /* readonly */
  1609. Array<Variant> attributeDefaults;
  1610. /* readonly */
  1611. Array<AttributeInfo> attributeInfos;
  1612. Array<Variant> attributes;
  1613. /* readonly */
  1614. String category;
  1615. int categoryBits;
  1616. float density;
  1617. bool enabled;
  1618. /* readonly */
  1619. bool enabledEffective;
  1620. float friction;
  1621. int groupIndex;
  1622. /* readonly */
  1623. uint id;
  1624. /* readonly */
  1625. float inertia;
  1626. bool loop;
  1627. int maskBits;
  1628. /* readonly */
  1629. float mass;
  1630. /* readonly */
  1631. Vector2 massCenter;
  1632. /* readonly */
  1633. Node node;
  1634. /* readonly */
  1635. uint numAttributes;
  1636. ObjectAnimation objectAnimation;
  1637. /* readonly */
  1638. int refs;
  1639. float restitution;
  1640. bool temporary;
  1641. bool trigger;
  1642. /* readonly */
  1643. StringHash type;
  1644. /* readonly */
  1645. String typeName;
  1646. uint vertexCount;
  1647. /* readonly */
  1648. int weakRefs;
  1649. };
  1650. class CollisionCircle2D
  1651. {
  1652. // Methods:
  1653. void ApplyAttributes();
  1654. void DrawDebugGeometry(DebugRenderer, bool);
  1655. Variant GetAttribute(const String&) const;
  1656. ValueAnimation GetAttributeAnimation(const String&) const;
  1657. float GetAttributeAnimationSpeed(const String&) const;
  1658. float GetAttributeAnimationTime(const String&) const;
  1659. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1660. Variant GetAttributeDefault(const String&) const;
  1661. bool GetInterceptNetworkUpdate(const String&) const;
  1662. bool HasSubscribedToEvent(Object, const String&);
  1663. bool HasSubscribedToEvent(const String&);
  1664. bool Load(File, bool = false);
  1665. bool Load(VectorBuffer&, bool = false);
  1666. bool LoadJSON(const JSONValue&, bool = false);
  1667. bool LoadXML(const XMLElement&, bool = false);
  1668. void MarkNetworkUpdate() const;
  1669. void Remove();
  1670. void RemoveAttributeAnimation(const String&);
  1671. void RemoveInstanceDefault();
  1672. void RemoveObjectAnimation();
  1673. void ResetToDefault();
  1674. bool Save(File) const;
  1675. bool Save(VectorBuffer&) const;
  1676. bool SaveJSON(JSONValue&) const;
  1677. bool SaveXML(XMLElement&) const;
  1678. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1679. void SetAnimationTime(float);
  1680. bool SetAttribute(const String&, const Variant&);
  1681. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1682. void SetAttributeAnimationSpeed(const String&, float);
  1683. void SetAttributeAnimationTime(const String&, float);
  1684. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1685. void SetCenter(float, float);
  1686. void SetInterceptNetworkUpdate(const String&, bool);
  1687. // Properties:
  1688. bool animationEnabled;
  1689. /* readonly */
  1690. Array<Variant> attributeDefaults;
  1691. /* readonly */
  1692. Array<AttributeInfo> attributeInfos;
  1693. Array<Variant> attributes;
  1694. /* readonly */
  1695. String category;
  1696. int categoryBits;
  1697. Vector2 center;
  1698. float density;
  1699. bool enabled;
  1700. /* readonly */
  1701. bool enabledEffective;
  1702. float friction;
  1703. int groupIndex;
  1704. /* readonly */
  1705. uint id;
  1706. /* readonly */
  1707. float inertia;
  1708. int maskBits;
  1709. /* readonly */
  1710. float mass;
  1711. /* readonly */
  1712. Vector2 massCenter;
  1713. /* readonly */
  1714. Node node;
  1715. /* readonly */
  1716. uint numAttributes;
  1717. ObjectAnimation objectAnimation;
  1718. float radius;
  1719. /* readonly */
  1720. int refs;
  1721. float restitution;
  1722. bool temporary;
  1723. bool trigger;
  1724. /* readonly */
  1725. StringHash type;
  1726. /* readonly */
  1727. String typeName;
  1728. /* readonly */
  1729. int weakRefs;
  1730. };
  1731. class CollisionEdge2D
  1732. {
  1733. // Methods:
  1734. void ApplyAttributes();
  1735. void DrawDebugGeometry(DebugRenderer, bool);
  1736. Variant GetAttribute(const String&) const;
  1737. ValueAnimation GetAttributeAnimation(const String&) const;
  1738. float GetAttributeAnimationSpeed(const String&) const;
  1739. float GetAttributeAnimationTime(const String&) const;
  1740. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1741. Variant GetAttributeDefault(const String&) const;
  1742. bool GetInterceptNetworkUpdate(const String&) const;
  1743. bool HasSubscribedToEvent(Object, const String&);
  1744. bool HasSubscribedToEvent(const String&);
  1745. bool Load(File, bool = false);
  1746. bool Load(VectorBuffer&, bool = false);
  1747. bool LoadJSON(const JSONValue&, bool = false);
  1748. bool LoadXML(const XMLElement&, bool = false);
  1749. void MarkNetworkUpdate() const;
  1750. void Remove();
  1751. void RemoveAttributeAnimation(const String&);
  1752. void RemoveInstanceDefault();
  1753. void RemoveObjectAnimation();
  1754. void ResetToDefault();
  1755. bool Save(File) const;
  1756. bool Save(VectorBuffer&) const;
  1757. bool SaveJSON(JSONValue&) const;
  1758. bool SaveXML(XMLElement&) const;
  1759. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1760. void SetAnimationTime(float);
  1761. bool SetAttribute(const String&, const Variant&);
  1762. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1763. void SetAttributeAnimationSpeed(const String&, float);
  1764. void SetAttributeAnimationTime(const String&, float);
  1765. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1766. void SetInterceptNetworkUpdate(const String&, bool);
  1767. void SetVertices(const Vector2&, const Vector2&);
  1768. // Properties:
  1769. bool animationEnabled;
  1770. /* readonly */
  1771. Array<Variant> attributeDefaults;
  1772. /* readonly */
  1773. Array<AttributeInfo> attributeInfos;
  1774. Array<Variant> attributes;
  1775. /* readonly */
  1776. String category;
  1777. int categoryBits;
  1778. float density;
  1779. bool enabled;
  1780. /* readonly */
  1781. bool enabledEffective;
  1782. float friction;
  1783. int groupIndex;
  1784. /* readonly */
  1785. uint id;
  1786. /* readonly */
  1787. float inertia;
  1788. int maskBits;
  1789. /* readonly */
  1790. float mass;
  1791. /* readonly */
  1792. Vector2 massCenter;
  1793. /* readonly */
  1794. Node node;
  1795. /* readonly */
  1796. uint numAttributes;
  1797. ObjectAnimation objectAnimation;
  1798. /* readonly */
  1799. int refs;
  1800. float restitution;
  1801. bool temporary;
  1802. bool trigger;
  1803. /* readonly */
  1804. StringHash type;
  1805. /* readonly */
  1806. String typeName;
  1807. Vector2 vertex1;
  1808. Vector2 vertex2;
  1809. /* readonly */
  1810. int weakRefs;
  1811. };
  1812. class CollisionPolygon2D
  1813. {
  1814. // Methods:
  1815. void ApplyAttributes();
  1816. void DrawDebugGeometry(DebugRenderer, bool);
  1817. Variant GetAttribute(const String&) const;
  1818. ValueAnimation GetAttributeAnimation(const String&) const;
  1819. float GetAttributeAnimationSpeed(const String&) const;
  1820. float GetAttributeAnimationTime(const String&) const;
  1821. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1822. Variant GetAttributeDefault(const String&) const;
  1823. bool GetInterceptNetworkUpdate(const String&) const;
  1824. Array<Vector2> GetVertices() const;
  1825. bool HasSubscribedToEvent(Object, const String&);
  1826. bool HasSubscribedToEvent(const String&);
  1827. bool Load(File, bool = false);
  1828. bool Load(VectorBuffer&, bool = false);
  1829. bool LoadJSON(const JSONValue&, bool = false);
  1830. bool LoadXML(const XMLElement&, bool = false);
  1831. void MarkNetworkUpdate() const;
  1832. void Remove();
  1833. void RemoveAttributeAnimation(const String&);
  1834. void RemoveInstanceDefault();
  1835. void RemoveObjectAnimation();
  1836. void ResetToDefault();
  1837. bool Save(File) const;
  1838. bool Save(VectorBuffer&) const;
  1839. bool SaveJSON(JSONValue&) const;
  1840. bool SaveXML(XMLElement&) const;
  1841. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1842. void SetAnimationTime(float);
  1843. bool SetAttribute(const String&, const Variant&);
  1844. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1845. void SetAttributeAnimationSpeed(const String&, float);
  1846. void SetAttributeAnimationTime(const String&, float);
  1847. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1848. void SetInterceptNetworkUpdate(const String&, bool);
  1849. void SetVertex(uint, const Vector2&);
  1850. void SetVertices(Array<Vector2>);
  1851. const Vector2& GetVertex(uint) const;
  1852. // Properties:
  1853. bool animationEnabled;
  1854. /* readonly */
  1855. Array<Variant> attributeDefaults;
  1856. /* readonly */
  1857. Array<AttributeInfo> attributeInfos;
  1858. Array<Variant> attributes;
  1859. /* readonly */
  1860. String category;
  1861. int categoryBits;
  1862. float density;
  1863. bool enabled;
  1864. /* readonly */
  1865. bool enabledEffective;
  1866. float friction;
  1867. int groupIndex;
  1868. /* readonly */
  1869. uint id;
  1870. /* readonly */
  1871. float inertia;
  1872. int maskBits;
  1873. /* readonly */
  1874. float mass;
  1875. /* readonly */
  1876. Vector2 massCenter;
  1877. /* readonly */
  1878. Node node;
  1879. /* readonly */
  1880. uint numAttributes;
  1881. ObjectAnimation objectAnimation;
  1882. /* readonly */
  1883. int refs;
  1884. float restitution;
  1885. bool temporary;
  1886. bool trigger;
  1887. /* readonly */
  1888. StringHash type;
  1889. /* readonly */
  1890. String typeName;
  1891. uint vertexCount;
  1892. /* readonly */
  1893. int weakRefs;
  1894. };
  1895. class CollisionShape
  1896. {
  1897. // Methods:
  1898. void ApplyAttributes();
  1899. void DrawDebugGeometry(DebugRenderer, bool);
  1900. Variant GetAttribute(const String&) const;
  1901. ValueAnimation GetAttributeAnimation(const String&) const;
  1902. float GetAttributeAnimationSpeed(const String&) const;
  1903. float GetAttributeAnimationTime(const String&) const;
  1904. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1905. Variant GetAttributeDefault(const String&) const;
  1906. bool GetInterceptNetworkUpdate(const String&) const;
  1907. bool HasSubscribedToEvent(Object, const String&);
  1908. bool HasSubscribedToEvent(const String&);
  1909. bool Load(File, bool = false);
  1910. bool Load(VectorBuffer&, bool = false);
  1911. bool LoadJSON(const JSONValue&, bool = false);
  1912. bool LoadXML(const XMLElement&, bool = false);
  1913. void MarkNetworkUpdate() const;
  1914. void Remove();
  1915. void RemoveAttributeAnimation(const String&);
  1916. void RemoveInstanceDefault();
  1917. void RemoveObjectAnimation();
  1918. void ResetToDefault();
  1919. bool Save(File) const;
  1920. bool Save(VectorBuffer&) const;
  1921. bool SaveJSON(JSONValue&) const;
  1922. bool SaveXML(XMLElement&) const;
  1923. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1924. void SetAnimationTime(float);
  1925. bool SetAttribute(const String&, const Variant&);
  1926. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1927. void SetAttributeAnimationSpeed(const String&, float);
  1928. void SetAttributeAnimationTime(const String&, float);
  1929. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1930. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1931. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1932. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1933. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1934. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1935. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1936. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1937. void SetInterceptNetworkUpdate(const String&, bool);
  1938. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1939. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1940. void SetTerrain(uint = 0);
  1941. void SetTransform(const Vector3&, const Quaternion&);
  1942. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1943. // Properties:
  1944. bool animationEnabled;
  1945. /* readonly */
  1946. Array<Variant> attributeDefaults;
  1947. /* readonly */
  1948. Array<AttributeInfo> attributeInfos;
  1949. Array<Variant> attributes;
  1950. /* readonly */
  1951. String category;
  1952. bool enabled;
  1953. /* readonly */
  1954. bool enabledEffective;
  1955. /* readonly */
  1956. uint id;
  1957. uint lodLevel;
  1958. float margin;
  1959. Model model;
  1960. /* readonly */
  1961. Node node;
  1962. /* readonly */
  1963. uint numAttributes;
  1964. ObjectAnimation objectAnimation;
  1965. Vector3 position;
  1966. /* readonly */
  1967. int refs;
  1968. Quaternion rotation;
  1969. ShapeType shapeType;
  1970. Vector3 size;
  1971. bool temporary;
  1972. /* readonly */
  1973. StringHash type;
  1974. /* readonly */
  1975. String typeName;
  1976. /* readonly */
  1977. int weakRefs;
  1978. /* readonly */
  1979. BoundingBox worldBoundingBox;
  1980. };
  1981. class CollisionShape2D
  1982. {
  1983. // Methods:
  1984. void ApplyAttributes();
  1985. void DrawDebugGeometry(DebugRenderer, bool);
  1986. Variant GetAttribute(const String&) const;
  1987. ValueAnimation GetAttributeAnimation(const String&) const;
  1988. float GetAttributeAnimationSpeed(const String&) const;
  1989. float GetAttributeAnimationTime(const String&) const;
  1990. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1991. Variant GetAttributeDefault(const String&) const;
  1992. bool GetInterceptNetworkUpdate(const String&) const;
  1993. bool HasSubscribedToEvent(Object, const String&);
  1994. bool HasSubscribedToEvent(const String&);
  1995. bool Load(File, bool = false);
  1996. bool Load(VectorBuffer&, bool = false);
  1997. bool LoadJSON(const JSONValue&, bool = false);
  1998. bool LoadXML(const XMLElement&, bool = false);
  1999. void MarkNetworkUpdate() const;
  2000. void Remove();
  2001. void RemoveAttributeAnimation(const String&);
  2002. void RemoveInstanceDefault();
  2003. void RemoveObjectAnimation();
  2004. void ResetToDefault();
  2005. bool Save(File) const;
  2006. bool Save(VectorBuffer&) const;
  2007. bool SaveJSON(JSONValue&) const;
  2008. bool SaveXML(XMLElement&) const;
  2009. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2010. void SetAnimationTime(float);
  2011. bool SetAttribute(const String&, const Variant&);
  2012. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2013. void SetAttributeAnimationSpeed(const String&, float);
  2014. void SetAttributeAnimationTime(const String&, float);
  2015. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2016. void SetInterceptNetworkUpdate(const String&, bool);
  2017. // Properties:
  2018. bool animationEnabled;
  2019. /* readonly */
  2020. Array<Variant> attributeDefaults;
  2021. /* readonly */
  2022. Array<AttributeInfo> attributeInfos;
  2023. Array<Variant> attributes;
  2024. /* readonly */
  2025. String category;
  2026. int categoryBits;
  2027. float density;
  2028. bool enabled;
  2029. /* readonly */
  2030. bool enabledEffective;
  2031. float friction;
  2032. int groupIndex;
  2033. /* readonly */
  2034. uint id;
  2035. /* readonly */
  2036. float inertia;
  2037. int maskBits;
  2038. /* readonly */
  2039. float mass;
  2040. /* readonly */
  2041. Vector2 massCenter;
  2042. /* readonly */
  2043. Node node;
  2044. /* readonly */
  2045. uint numAttributes;
  2046. ObjectAnimation objectAnimation;
  2047. /* readonly */
  2048. int refs;
  2049. float restitution;
  2050. bool temporary;
  2051. bool trigger;
  2052. /* readonly */
  2053. StringHash type;
  2054. /* readonly */
  2055. String typeName;
  2056. /* readonly */
  2057. int weakRefs;
  2058. };
  2059. class Color
  2060. {
  2061. // Methods:
  2062. Color Abs() const;
  2063. float Average() const;
  2064. float Chroma() const;
  2065. void Clip(bool);
  2066. bool Equals() const;
  2067. void FromHSL(float, float, float, float);
  2068. void FromHSV(float, float, float, float);
  2069. float Hue() const;
  2070. void Invert(bool);
  2071. Color Lerp(const Color&, float) const;
  2072. float Lightness() const;
  2073. float Luma() const;
  2074. float MaxRGB() const;
  2075. float MinRGB() const;
  2076. float Range() const;
  2077. float SaturationHSL() const;
  2078. float SaturationHSV() const;
  2079. float SumRGB() const;
  2080. Vector3 ToHSL() const;
  2081. Vector3 ToHSV() const;
  2082. String ToString() const;
  2083. uint ToUInt() const;
  2084. float Value() const;
  2085. // Properties:
  2086. float a;
  2087. float b;
  2088. /* readonly */
  2089. Array<float> data;
  2090. float g;
  2091. float r;
  2092. /* readonly */
  2093. Vector3 rgb;
  2094. /* readonly */
  2095. Vector4 rgba;
  2096. };
  2097. class ColorFrame
  2098. {
  2099. // Properties:
  2100. Color color;
  2101. float time;
  2102. };
  2103. class Component
  2104. {
  2105. // Methods:
  2106. void ApplyAttributes();
  2107. void DrawDebugGeometry(DebugRenderer, bool);
  2108. Variant GetAttribute(const String&) const;
  2109. ValueAnimation GetAttributeAnimation(const String&) const;
  2110. float GetAttributeAnimationSpeed(const String&) const;
  2111. float GetAttributeAnimationTime(const String&) const;
  2112. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2113. Variant GetAttributeDefault(const String&) const;
  2114. bool GetInterceptNetworkUpdate(const String&) const;
  2115. bool HasSubscribedToEvent(Object, const String&);
  2116. bool HasSubscribedToEvent(const String&);
  2117. bool Load(File, bool = false);
  2118. bool Load(VectorBuffer&, bool = false);
  2119. bool LoadJSON(const JSONValue&, bool = false);
  2120. bool LoadXML(const XMLElement&, bool = false);
  2121. void MarkNetworkUpdate() const;
  2122. void Remove();
  2123. void RemoveAttributeAnimation(const String&);
  2124. void RemoveInstanceDefault();
  2125. void RemoveObjectAnimation();
  2126. void ResetToDefault();
  2127. bool Save(File) const;
  2128. bool Save(VectorBuffer&) const;
  2129. bool SaveJSON(JSONValue&) const;
  2130. bool SaveXML(XMLElement&) const;
  2131. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2132. void SetAnimationTime(float);
  2133. bool SetAttribute(const String&, const Variant&);
  2134. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2135. void SetAttributeAnimationSpeed(const String&, float);
  2136. void SetAttributeAnimationTime(const String&, float);
  2137. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2138. void SetInterceptNetworkUpdate(const String&, bool);
  2139. // Properties:
  2140. bool animationEnabled;
  2141. /* readonly */
  2142. Array<Variant> attributeDefaults;
  2143. /* readonly */
  2144. Array<AttributeInfo> attributeInfos;
  2145. Array<Variant> attributes;
  2146. /* readonly */
  2147. String category;
  2148. bool enabled;
  2149. /* readonly */
  2150. bool enabledEffective;
  2151. /* readonly */
  2152. uint id;
  2153. /* readonly */
  2154. Node node;
  2155. /* readonly */
  2156. uint numAttributes;
  2157. ObjectAnimation objectAnimation;
  2158. /* readonly */
  2159. int refs;
  2160. bool temporary;
  2161. /* readonly */
  2162. StringHash type;
  2163. /* readonly */
  2164. String typeName;
  2165. /* readonly */
  2166. int weakRefs;
  2167. };
  2168. class Connection
  2169. {
  2170. // Methods:
  2171. void Disconnect(int = 0);
  2172. bool HasSubscribedToEvent(Object, const String&);
  2173. bool HasSubscribedToEvent(const String&);
  2174. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2175. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2176. void SendPackageToClient(PackageFile);
  2177. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2178. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2179. String ToString() const;
  2180. // Properties:
  2181. /* readonly */
  2182. String address;
  2183. /* readonly */
  2184. float bytesInPerSec;
  2185. /* readonly */
  2186. float bytesOutPerSec;
  2187. /* readonly */
  2188. String category;
  2189. /* readonly */
  2190. bool client;
  2191. /* readonly */
  2192. bool connectPending;
  2193. /* readonly */
  2194. bool connected;
  2195. Controls controls;
  2196. /* readonly */
  2197. String downloadName;
  2198. /* readonly */
  2199. float downloadProgress;
  2200. VariantMap identity;
  2201. /* readonly */
  2202. float lastHeardTime;
  2203. bool logStatistics;
  2204. /* readonly */
  2205. uint numDownloads;
  2206. /* readonly */
  2207. float packetsInPerSec;
  2208. /* readonly */
  2209. float packetsOutPerSec;
  2210. /* readonly */
  2211. uint16 port;
  2212. Vector3 position;
  2213. /* readonly */
  2214. int refs;
  2215. Quaternion rotation;
  2216. /* readonly */
  2217. float roundTripTime;
  2218. Scene scene;
  2219. /* readonly */
  2220. bool sceneLoaded;
  2221. uint8 timeStamp;
  2222. /* readonly */
  2223. StringHash type;
  2224. /* readonly */
  2225. String typeName;
  2226. /* readonly */
  2227. int weakRefs;
  2228. };
  2229. class Console
  2230. {
  2231. // Methods:
  2232. void CopySelectedRows() const;
  2233. bool HasSubscribedToEvent(Object, const String&);
  2234. bool HasSubscribedToEvent(const String&);
  2235. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2236. void Toggle();
  2237. void UpdateElements();
  2238. // Properties:
  2239. bool autoVisibleOnError;
  2240. /* readonly */
  2241. BorderImage background;
  2242. /* readonly */
  2243. String category;
  2244. /* readonly */
  2245. Button closeButton;
  2246. String commandInterpreter;
  2247. XMLFile defaultStyle;
  2248. bool focusOnShow;
  2249. /* readonly */
  2250. uint historyPosition;
  2251. /* readonly */
  2252. Array<String> historyRow;
  2253. /* readonly */
  2254. LineEdit lineEdit;
  2255. uint numBufferedRows;
  2256. uint numHistoryRows;
  2257. uint numRows;
  2258. /* readonly */
  2259. int refs;
  2260. /* readonly */
  2261. StringHash type;
  2262. /* readonly */
  2263. String typeName;
  2264. bool visible;
  2265. /* readonly */
  2266. int weakRefs;
  2267. };
  2268. class Constraint
  2269. {
  2270. // Methods:
  2271. void ApplyAttributes();
  2272. void DrawDebugGeometry(DebugRenderer, bool);
  2273. Variant GetAttribute(const String&) const;
  2274. ValueAnimation GetAttributeAnimation(const String&) const;
  2275. float GetAttributeAnimationSpeed(const String&) const;
  2276. float GetAttributeAnimationTime(const String&) const;
  2277. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2278. Variant GetAttributeDefault(const String&) const;
  2279. bool GetInterceptNetworkUpdate(const String&) const;
  2280. bool HasSubscribedToEvent(Object, const String&);
  2281. bool HasSubscribedToEvent(const String&);
  2282. bool Load(File, bool = false);
  2283. bool Load(VectorBuffer&, bool = false);
  2284. bool LoadJSON(const JSONValue&, bool = false);
  2285. bool LoadXML(const XMLElement&, bool = false);
  2286. void MarkNetworkUpdate() const;
  2287. void Remove();
  2288. void RemoveAttributeAnimation(const String&);
  2289. void RemoveInstanceDefault();
  2290. void RemoveObjectAnimation();
  2291. void ResetToDefault();
  2292. bool Save(File) const;
  2293. bool Save(VectorBuffer&) const;
  2294. bool SaveJSON(JSONValue&) const;
  2295. bool SaveXML(XMLElement&) const;
  2296. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2297. void SetAnimationTime(float);
  2298. bool SetAttribute(const String&, const Variant&);
  2299. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2300. void SetAttributeAnimationSpeed(const String&, float);
  2301. void SetAttributeAnimationTime(const String&, float);
  2302. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2303. void SetInterceptNetworkUpdate(const String&, bool);
  2304. // Properties:
  2305. bool animationEnabled;
  2306. /* readonly */
  2307. Array<Variant> attributeDefaults;
  2308. /* readonly */
  2309. Array<AttributeInfo> attributeInfos;
  2310. Array<Variant> attributes;
  2311. /* writeonly */
  2312. Vector3 axis;
  2313. /* readonly */
  2314. String category;
  2315. float cfm;
  2316. ConstraintType constraintType;
  2317. bool disableCollision;
  2318. bool enabled;
  2319. /* readonly */
  2320. bool enabledEffective;
  2321. float erp;
  2322. Vector2 highLimit;
  2323. /* readonly */
  2324. uint id;
  2325. Vector2 lowLimit;
  2326. /* readonly */
  2327. Node node;
  2328. /* readonly */
  2329. uint numAttributes;
  2330. ObjectAnimation objectAnimation;
  2331. /* writeonly */
  2332. Vector3 otherAxis;
  2333. RigidBody otherBody;
  2334. Vector3 otherPosition;
  2335. Quaternion otherRotation;
  2336. /* readonly */
  2337. RigidBody ownBody;
  2338. Vector3 position;
  2339. /* readonly */
  2340. int refs;
  2341. Quaternion rotation;
  2342. bool temporary;
  2343. /* readonly */
  2344. StringHash type;
  2345. /* readonly */
  2346. String typeName;
  2347. /* readonly */
  2348. int weakRefs;
  2349. Vector3 worldPosition;
  2350. };
  2351. class Constraint2D
  2352. {
  2353. // Methods:
  2354. void ApplyAttributes();
  2355. void DrawDebugGeometry(DebugRenderer, bool);
  2356. Variant GetAttribute(const String&) const;
  2357. ValueAnimation GetAttributeAnimation(const String&) const;
  2358. float GetAttributeAnimationSpeed(const String&) const;
  2359. float GetAttributeAnimationTime(const String&) const;
  2360. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2361. Variant GetAttributeDefault(const String&) const;
  2362. bool GetInterceptNetworkUpdate(const String&) const;
  2363. bool HasSubscribedToEvent(Object, const String&);
  2364. bool HasSubscribedToEvent(const String&);
  2365. bool Load(File, bool = false);
  2366. bool Load(VectorBuffer&, bool = false);
  2367. bool LoadJSON(const JSONValue&, bool = false);
  2368. bool LoadXML(const XMLElement&, bool = false);
  2369. void MarkNetworkUpdate() const;
  2370. void Remove();
  2371. void RemoveAttributeAnimation(const String&);
  2372. void RemoveInstanceDefault();
  2373. void RemoveObjectAnimation();
  2374. void ResetToDefault();
  2375. bool Save(File) const;
  2376. bool Save(VectorBuffer&) const;
  2377. bool SaveJSON(JSONValue&) const;
  2378. bool SaveXML(XMLElement&) const;
  2379. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2380. void SetAnimationTime(float);
  2381. bool SetAttribute(const String&, const Variant&);
  2382. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2383. void SetAttributeAnimationSpeed(const String&, float);
  2384. void SetAttributeAnimationTime(const String&, float);
  2385. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2386. void SetInterceptNetworkUpdate(const String&, bool);
  2387. // Properties:
  2388. bool animationEnabled;
  2389. /* readonly */
  2390. Array<Variant> attributeDefaults;
  2391. /* readonly */
  2392. Array<AttributeInfo> attributeInfos;
  2393. Array<Variant> attributes;
  2394. /* readonly */
  2395. String category;
  2396. bool collideConnected;
  2397. bool enabled;
  2398. /* readonly */
  2399. bool enabledEffective;
  2400. /* readonly */
  2401. uint id;
  2402. /* readonly */
  2403. Node node;
  2404. /* readonly */
  2405. uint numAttributes;
  2406. ObjectAnimation objectAnimation;
  2407. RigidBody2D otherBody;
  2408. /* readonly */
  2409. RigidBody2D ownerBody;
  2410. /* readonly */
  2411. int refs;
  2412. bool temporary;
  2413. /* readonly */
  2414. StringHash type;
  2415. /* readonly */
  2416. String typeName;
  2417. /* readonly */
  2418. int weakRefs;
  2419. };
  2420. class ConstraintDistance2D
  2421. {
  2422. // Methods:
  2423. void ApplyAttributes();
  2424. void DrawDebugGeometry(DebugRenderer, bool);
  2425. Variant GetAttribute(const String&) const;
  2426. ValueAnimation GetAttributeAnimation(const String&) const;
  2427. float GetAttributeAnimationSpeed(const String&) const;
  2428. float GetAttributeAnimationTime(const String&) const;
  2429. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2430. Variant GetAttributeDefault(const String&) const;
  2431. bool GetInterceptNetworkUpdate(const String&) const;
  2432. bool HasSubscribedToEvent(Object, const String&);
  2433. bool HasSubscribedToEvent(const String&);
  2434. bool Load(File, bool = false);
  2435. bool Load(VectorBuffer&, bool = false);
  2436. bool LoadJSON(const JSONValue&, bool = false);
  2437. bool LoadXML(const XMLElement&, bool = false);
  2438. void MarkNetworkUpdate() const;
  2439. void Remove();
  2440. void RemoveAttributeAnimation(const String&);
  2441. void RemoveInstanceDefault();
  2442. void RemoveObjectAnimation();
  2443. void ResetToDefault();
  2444. bool Save(File) const;
  2445. bool Save(VectorBuffer&) const;
  2446. bool SaveJSON(JSONValue&) const;
  2447. bool SaveXML(XMLElement&) const;
  2448. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2449. void SetAnimationTime(float);
  2450. bool SetAttribute(const String&, const Variant&);
  2451. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2452. void SetAttributeAnimationSpeed(const String&, float);
  2453. void SetAttributeAnimationTime(const String&, float);
  2454. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2455. void SetInterceptNetworkUpdate(const String&, bool);
  2456. // Properties:
  2457. bool animationEnabled;
  2458. /* readonly */
  2459. Array<Variant> attributeDefaults;
  2460. /* readonly */
  2461. Array<AttributeInfo> attributeInfos;
  2462. Array<Variant> attributes;
  2463. /* readonly */
  2464. String category;
  2465. bool collideConnected;
  2466. float dampingRatio;
  2467. bool enabled;
  2468. /* readonly */
  2469. bool enabledEffective;
  2470. float frequencyHz;
  2471. /* readonly */
  2472. uint id;
  2473. /* readonly */
  2474. Node node;
  2475. /* readonly */
  2476. uint numAttributes;
  2477. ObjectAnimation objectAnimation;
  2478. RigidBody2D otherBody;
  2479. Vector2 otherBodyAnchor;
  2480. /* readonly */
  2481. RigidBody2D ownerBody;
  2482. Vector2 ownerBodyAnchor;
  2483. /* readonly */
  2484. int refs;
  2485. bool temporary;
  2486. /* readonly */
  2487. StringHash type;
  2488. /* readonly */
  2489. String typeName;
  2490. /* readonly */
  2491. int weakRefs;
  2492. };
  2493. class ConstraintFriction2D
  2494. {
  2495. // Methods:
  2496. void ApplyAttributes();
  2497. void DrawDebugGeometry(DebugRenderer, bool);
  2498. Variant GetAttribute(const String&) const;
  2499. ValueAnimation GetAttributeAnimation(const String&) const;
  2500. float GetAttributeAnimationSpeed(const String&) const;
  2501. float GetAttributeAnimationTime(const String&) const;
  2502. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2503. Variant GetAttributeDefault(const String&) const;
  2504. bool GetInterceptNetworkUpdate(const String&) const;
  2505. bool HasSubscribedToEvent(Object, const String&);
  2506. bool HasSubscribedToEvent(const String&);
  2507. bool Load(File, bool = false);
  2508. bool Load(VectorBuffer&, bool = false);
  2509. bool LoadJSON(const JSONValue&, bool = false);
  2510. bool LoadXML(const XMLElement&, bool = false);
  2511. void MarkNetworkUpdate() const;
  2512. void Remove();
  2513. void RemoveAttributeAnimation(const String&);
  2514. void RemoveInstanceDefault();
  2515. void RemoveObjectAnimation();
  2516. void ResetToDefault();
  2517. bool Save(File) const;
  2518. bool Save(VectorBuffer&) const;
  2519. bool SaveJSON(JSONValue&) const;
  2520. bool SaveXML(XMLElement&) const;
  2521. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2522. void SetAnimationTime(float);
  2523. bool SetAttribute(const String&, const Variant&);
  2524. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2525. void SetAttributeAnimationSpeed(const String&, float);
  2526. void SetAttributeAnimationTime(const String&, float);
  2527. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2528. void SetInterceptNetworkUpdate(const String&, bool);
  2529. // Properties:
  2530. Vector2 anchor;
  2531. bool animationEnabled;
  2532. /* readonly */
  2533. Array<Variant> attributeDefaults;
  2534. /* readonly */
  2535. Array<AttributeInfo> attributeInfos;
  2536. Array<Variant> attributes;
  2537. /* readonly */
  2538. String category;
  2539. bool collideConnected;
  2540. bool enabled;
  2541. /* readonly */
  2542. bool enabledEffective;
  2543. /* readonly */
  2544. uint id;
  2545. float maxForce;
  2546. float maxTorque;
  2547. /* readonly */
  2548. Node node;
  2549. /* readonly */
  2550. uint numAttributes;
  2551. ObjectAnimation objectAnimation;
  2552. RigidBody2D otherBody;
  2553. /* readonly */
  2554. RigidBody2D ownerBody;
  2555. /* readonly */
  2556. int refs;
  2557. bool temporary;
  2558. /* readonly */
  2559. StringHash type;
  2560. /* readonly */
  2561. String typeName;
  2562. /* readonly */
  2563. int weakRefs;
  2564. };
  2565. class ConstraintGear2D
  2566. {
  2567. // Methods:
  2568. void ApplyAttributes();
  2569. void DrawDebugGeometry(DebugRenderer, bool);
  2570. Variant GetAttribute(const String&) const;
  2571. ValueAnimation GetAttributeAnimation(const String&) const;
  2572. float GetAttributeAnimationSpeed(const String&) const;
  2573. float GetAttributeAnimationTime(const String&) const;
  2574. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2575. Variant GetAttributeDefault(const String&) const;
  2576. bool GetInterceptNetworkUpdate(const String&) const;
  2577. bool HasSubscribedToEvent(Object, const String&);
  2578. bool HasSubscribedToEvent(const String&);
  2579. bool Load(File, bool = false);
  2580. bool Load(VectorBuffer&, bool = false);
  2581. bool LoadJSON(const JSONValue&, bool = false);
  2582. bool LoadXML(const XMLElement&, bool = false);
  2583. void MarkNetworkUpdate() const;
  2584. void Remove();
  2585. void RemoveAttributeAnimation(const String&);
  2586. void RemoveInstanceDefault();
  2587. void RemoveObjectAnimation();
  2588. void ResetToDefault();
  2589. bool Save(File) const;
  2590. bool Save(VectorBuffer&) const;
  2591. bool SaveJSON(JSONValue&) const;
  2592. bool SaveXML(XMLElement&) const;
  2593. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2594. void SetAnimationTime(float);
  2595. bool SetAttribute(const String&, const Variant&);
  2596. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2597. void SetAttributeAnimationSpeed(const String&, float);
  2598. void SetAttributeAnimationTime(const String&, float);
  2599. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2600. void SetInterceptNetworkUpdate(const String&, bool);
  2601. // Properties:
  2602. bool animationEnabled;
  2603. /* readonly */
  2604. Array<Variant> attributeDefaults;
  2605. /* readonly */
  2606. Array<AttributeInfo> attributeInfos;
  2607. Array<Variant> attributes;
  2608. /* readonly */
  2609. String category;
  2610. bool collideConnected;
  2611. bool enabled;
  2612. /* readonly */
  2613. bool enabledEffective;
  2614. /* readonly */
  2615. uint id;
  2616. /* readonly */
  2617. Node node;
  2618. /* readonly */
  2619. uint numAttributes;
  2620. ObjectAnimation objectAnimation;
  2621. RigidBody2D otherBody;
  2622. Constraint2D otherConstraint;
  2623. /* readonly */
  2624. RigidBody2D ownerBody;
  2625. Constraint2D ownerConstraint;
  2626. float ratio;
  2627. /* readonly */
  2628. int refs;
  2629. bool temporary;
  2630. /* readonly */
  2631. StringHash type;
  2632. /* readonly */
  2633. String typeName;
  2634. /* readonly */
  2635. int weakRefs;
  2636. };
  2637. class ConstraintMotor2D
  2638. {
  2639. // Methods:
  2640. void ApplyAttributes();
  2641. void DrawDebugGeometry(DebugRenderer, bool);
  2642. Variant GetAttribute(const String&) const;
  2643. ValueAnimation GetAttributeAnimation(const String&) const;
  2644. float GetAttributeAnimationSpeed(const String&) const;
  2645. float GetAttributeAnimationTime(const String&) const;
  2646. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2647. Variant GetAttributeDefault(const String&) const;
  2648. bool GetInterceptNetworkUpdate(const String&) const;
  2649. bool HasSubscribedToEvent(Object, const String&);
  2650. bool HasSubscribedToEvent(const String&);
  2651. bool Load(File, bool = false);
  2652. bool Load(VectorBuffer&, bool = false);
  2653. bool LoadJSON(const JSONValue&, bool = false);
  2654. bool LoadXML(const XMLElement&, bool = false);
  2655. void MarkNetworkUpdate() const;
  2656. void Remove();
  2657. void RemoveAttributeAnimation(const String&);
  2658. void RemoveInstanceDefault();
  2659. void RemoveObjectAnimation();
  2660. void ResetToDefault();
  2661. bool Save(File) const;
  2662. bool Save(VectorBuffer&) const;
  2663. bool SaveJSON(JSONValue&) const;
  2664. bool SaveXML(XMLElement&) const;
  2665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2666. void SetAnimationTime(float);
  2667. bool SetAttribute(const String&, const Variant&);
  2668. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2669. void SetAttributeAnimationSpeed(const String&, float);
  2670. void SetAttributeAnimationTime(const String&, float);
  2671. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2672. void SetInterceptNetworkUpdate(const String&, bool);
  2673. // Properties:
  2674. float angularOffset;
  2675. bool animationEnabled;
  2676. /* readonly */
  2677. Array<Variant> attributeDefaults;
  2678. /* readonly */
  2679. Array<AttributeInfo> attributeInfos;
  2680. Array<Variant> attributes;
  2681. /* readonly */
  2682. String category;
  2683. bool collideConnected;
  2684. float correctionFactor;
  2685. bool enabled;
  2686. /* readonly */
  2687. bool enabledEffective;
  2688. /* readonly */
  2689. uint id;
  2690. Vector2 linearOffset;
  2691. float maxForce;
  2692. float maxTorque;
  2693. /* readonly */
  2694. Node node;
  2695. /* readonly */
  2696. uint numAttributes;
  2697. ObjectAnimation objectAnimation;
  2698. RigidBody2D otherBody;
  2699. /* readonly */
  2700. RigidBody2D ownerBody;
  2701. /* readonly */
  2702. int refs;
  2703. bool temporary;
  2704. /* readonly */
  2705. StringHash type;
  2706. /* readonly */
  2707. String typeName;
  2708. /* readonly */
  2709. int weakRefs;
  2710. };
  2711. class ConstraintMouse2D
  2712. {
  2713. // Methods:
  2714. void ApplyAttributes();
  2715. void DrawDebugGeometry(DebugRenderer, bool);
  2716. Variant GetAttribute(const String&) const;
  2717. ValueAnimation GetAttributeAnimation(const String&) const;
  2718. float GetAttributeAnimationSpeed(const String&) const;
  2719. float GetAttributeAnimationTime(const String&) const;
  2720. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2721. Variant GetAttributeDefault(const String&) const;
  2722. bool GetInterceptNetworkUpdate(const String&) const;
  2723. bool HasSubscribedToEvent(Object, const String&);
  2724. bool HasSubscribedToEvent(const String&);
  2725. bool Load(File, bool = false);
  2726. bool Load(VectorBuffer&, bool = false);
  2727. bool LoadJSON(const JSONValue&, bool = false);
  2728. bool LoadXML(const XMLElement&, bool = false);
  2729. void MarkNetworkUpdate() const;
  2730. void Remove();
  2731. void RemoveAttributeAnimation(const String&);
  2732. void RemoveInstanceDefault();
  2733. void RemoveObjectAnimation();
  2734. void ResetToDefault();
  2735. bool Save(File) const;
  2736. bool Save(VectorBuffer&) const;
  2737. bool SaveJSON(JSONValue&) 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. float dampingRatio;
  2758. bool enabled;
  2759. /* readonly */
  2760. bool enabledEffective;
  2761. float frequencyHz;
  2762. /* readonly */
  2763. uint id;
  2764. float maxForce;
  2765. /* readonly */
  2766. Node node;
  2767. /* readonly */
  2768. uint numAttributes;
  2769. ObjectAnimation objectAnimation;
  2770. RigidBody2D otherBody;
  2771. /* readonly */
  2772. RigidBody2D ownerBody;
  2773. /* readonly */
  2774. int refs;
  2775. Vector2 target;
  2776. bool temporary;
  2777. /* readonly */
  2778. StringHash type;
  2779. /* readonly */
  2780. String typeName;
  2781. /* readonly */
  2782. int weakRefs;
  2783. };
  2784. class ConstraintPrismatic2D
  2785. {
  2786. // Methods:
  2787. void ApplyAttributes();
  2788. void DrawDebugGeometry(DebugRenderer, bool);
  2789. Variant GetAttribute(const String&) const;
  2790. ValueAnimation GetAttributeAnimation(const String&) const;
  2791. float GetAttributeAnimationSpeed(const String&) const;
  2792. float GetAttributeAnimationTime(const String&) const;
  2793. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2794. Variant GetAttributeDefault(const String&) const;
  2795. bool GetInterceptNetworkUpdate(const String&) const;
  2796. bool HasSubscribedToEvent(Object, const String&);
  2797. bool HasSubscribedToEvent(const String&);
  2798. bool Load(File, bool = false);
  2799. bool Load(VectorBuffer&, bool = false);
  2800. bool LoadJSON(const JSONValue&, bool = false);
  2801. bool LoadXML(const XMLElement&, bool = false);
  2802. void MarkNetworkUpdate() const;
  2803. void Remove();
  2804. void RemoveAttributeAnimation(const String&);
  2805. void RemoveInstanceDefault();
  2806. void RemoveObjectAnimation();
  2807. void ResetToDefault();
  2808. bool Save(File) const;
  2809. bool Save(VectorBuffer&) const;
  2810. bool SaveJSON(JSONValue&) const;
  2811. bool SaveXML(XMLElement&) const;
  2812. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2813. void SetAnimationTime(float);
  2814. bool SetAttribute(const String&, const Variant&);
  2815. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2816. void SetAttributeAnimationSpeed(const String&, float);
  2817. void SetAttributeAnimationTime(const String&, float);
  2818. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2819. void SetInterceptNetworkUpdate(const String&, bool);
  2820. // Properties:
  2821. Vector2 anchor;
  2822. bool animationEnabled;
  2823. /* readonly */
  2824. Array<Variant> attributeDefaults;
  2825. /* readonly */
  2826. Array<AttributeInfo> attributeInfos;
  2827. Array<Variant> attributes;
  2828. Vector2 axis;
  2829. /* readonly */
  2830. String category;
  2831. bool collideConnected;
  2832. bool enableLimit;
  2833. bool enableMotor;
  2834. bool enabled;
  2835. /* readonly */
  2836. bool enabledEffective;
  2837. /* readonly */
  2838. uint id;
  2839. float lowerTranslation;
  2840. float maxMotorForce;
  2841. float motorSpeed;
  2842. /* readonly */
  2843. Node node;
  2844. /* readonly */
  2845. uint numAttributes;
  2846. ObjectAnimation objectAnimation;
  2847. RigidBody2D otherBody;
  2848. /* readonly */
  2849. RigidBody2D ownerBody;
  2850. /* readonly */
  2851. int refs;
  2852. bool temporary;
  2853. /* readonly */
  2854. StringHash type;
  2855. /* readonly */
  2856. String typeName;
  2857. float upperTranslation;
  2858. /* readonly */
  2859. int weakRefs;
  2860. };
  2861. class ConstraintPulley2D
  2862. {
  2863. // Methods:
  2864. void ApplyAttributes();
  2865. void DrawDebugGeometry(DebugRenderer, bool);
  2866. Variant GetAttribute(const String&) const;
  2867. ValueAnimation GetAttributeAnimation(const String&) const;
  2868. float GetAttributeAnimationSpeed(const String&) const;
  2869. float GetAttributeAnimationTime(const String&) const;
  2870. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2871. Variant GetAttributeDefault(const String&) const;
  2872. bool GetInterceptNetworkUpdate(const String&) const;
  2873. bool HasSubscribedToEvent(Object, const String&);
  2874. bool HasSubscribedToEvent(const String&);
  2875. bool Load(File, bool = false);
  2876. bool Load(VectorBuffer&, bool = false);
  2877. bool LoadJSON(const JSONValue&, bool = false);
  2878. bool LoadXML(const XMLElement&, bool = false);
  2879. void MarkNetworkUpdate() const;
  2880. void Remove();
  2881. void RemoveAttributeAnimation(const String&);
  2882. void RemoveInstanceDefault();
  2883. void RemoveObjectAnimation();
  2884. void ResetToDefault();
  2885. bool Save(File) const;
  2886. bool Save(VectorBuffer&) const;
  2887. bool SaveJSON(JSONValue&) const;
  2888. bool SaveXML(XMLElement&) const;
  2889. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2890. void SetAnimationTime(float);
  2891. bool SetAttribute(const String&, const Variant&);
  2892. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2893. void SetAttributeAnimationSpeed(const String&, float);
  2894. void SetAttributeAnimationTime(const String&, float);
  2895. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2896. void SetInterceptNetworkUpdate(const String&, bool);
  2897. // Properties:
  2898. bool animationEnabled;
  2899. /* readonly */
  2900. Array<Variant> attributeDefaults;
  2901. /* readonly */
  2902. Array<AttributeInfo> attributeInfos;
  2903. Array<Variant> attributes;
  2904. /* readonly */
  2905. String category;
  2906. bool collideConnected;
  2907. bool enabled;
  2908. /* readonly */
  2909. bool enabledEffective;
  2910. /* readonly */
  2911. uint id;
  2912. /* readonly */
  2913. Node node;
  2914. /* readonly */
  2915. uint numAttributes;
  2916. ObjectAnimation objectAnimation;
  2917. RigidBody2D otherBody;
  2918. Vector2 otherBodyAnchor;
  2919. Vector2 otherBodyGroundAnchor;
  2920. /* readonly */
  2921. RigidBody2D ownerBody;
  2922. Vector2 ownerBodyAnchor;
  2923. Vector2 ownerBodyGroundAnchor;
  2924. float ratio;
  2925. /* readonly */
  2926. int refs;
  2927. bool temporary;
  2928. /* readonly */
  2929. StringHash type;
  2930. /* readonly */
  2931. String typeName;
  2932. /* readonly */
  2933. int weakRefs;
  2934. };
  2935. class ConstraintRevolute2D
  2936. {
  2937. // Methods:
  2938. void ApplyAttributes();
  2939. void DrawDebugGeometry(DebugRenderer, bool);
  2940. Variant GetAttribute(const String&) const;
  2941. ValueAnimation GetAttributeAnimation(const String&) const;
  2942. float GetAttributeAnimationSpeed(const String&) const;
  2943. float GetAttributeAnimationTime(const String&) const;
  2944. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2945. Variant GetAttributeDefault(const String&) const;
  2946. bool GetInterceptNetworkUpdate(const String&) const;
  2947. bool HasSubscribedToEvent(Object, const String&);
  2948. bool HasSubscribedToEvent(const String&);
  2949. bool Load(File, bool = false);
  2950. bool Load(VectorBuffer&, bool = false);
  2951. bool LoadJSON(const JSONValue&, bool = false);
  2952. bool LoadXML(const XMLElement&, bool = false);
  2953. void MarkNetworkUpdate() const;
  2954. void Remove();
  2955. void RemoveAttributeAnimation(const String&);
  2956. void RemoveInstanceDefault();
  2957. void RemoveObjectAnimation();
  2958. void ResetToDefault();
  2959. bool Save(File) const;
  2960. bool Save(VectorBuffer&) const;
  2961. bool SaveJSON(JSONValue&) const;
  2962. bool SaveXML(XMLElement&) const;
  2963. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2964. void SetAnimationTime(float);
  2965. bool SetAttribute(const String&, const Variant&);
  2966. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2967. void SetAttributeAnimationSpeed(const String&, float);
  2968. void SetAttributeAnimationTime(const String&, float);
  2969. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2970. void SetInterceptNetworkUpdate(const String&, bool);
  2971. // Properties:
  2972. Vector2 anchor;
  2973. bool animationEnabled;
  2974. /* readonly */
  2975. Array<Variant> attributeDefaults;
  2976. /* readonly */
  2977. Array<AttributeInfo> attributeInfos;
  2978. Array<Variant> attributes;
  2979. /* readonly */
  2980. String category;
  2981. bool collideConnected;
  2982. bool enableLimit;
  2983. bool enableMotor;
  2984. bool enabled;
  2985. /* readonly */
  2986. bool enabledEffective;
  2987. /* readonly */
  2988. uint id;
  2989. float lowerAngle;
  2990. float maxMotorTorque;
  2991. float motorSpeed;
  2992. /* readonly */
  2993. Node node;
  2994. /* readonly */
  2995. uint numAttributes;
  2996. ObjectAnimation objectAnimation;
  2997. RigidBody2D otherBody;
  2998. /* readonly */
  2999. RigidBody2D ownerBody;
  3000. /* readonly */
  3001. int refs;
  3002. bool temporary;
  3003. /* readonly */
  3004. StringHash type;
  3005. /* readonly */
  3006. String typeName;
  3007. float upperAngle;
  3008. /* readonly */
  3009. int weakRefs;
  3010. };
  3011. class ConstraintRope2D
  3012. {
  3013. // Methods:
  3014. void ApplyAttributes();
  3015. void DrawDebugGeometry(DebugRenderer, bool);
  3016. Variant GetAttribute(const String&) const;
  3017. ValueAnimation GetAttributeAnimation(const String&) const;
  3018. float GetAttributeAnimationSpeed(const String&) const;
  3019. float GetAttributeAnimationTime(const String&) const;
  3020. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3021. Variant GetAttributeDefault(const String&) const;
  3022. bool GetInterceptNetworkUpdate(const String&) const;
  3023. bool HasSubscribedToEvent(Object, const String&);
  3024. bool HasSubscribedToEvent(const String&);
  3025. bool Load(File, bool = false);
  3026. bool Load(VectorBuffer&, bool = false);
  3027. bool LoadJSON(const JSONValue&, bool = false);
  3028. bool LoadXML(const XMLElement&, bool = false);
  3029. void MarkNetworkUpdate() const;
  3030. void Remove();
  3031. void RemoveAttributeAnimation(const String&);
  3032. void RemoveInstanceDefault();
  3033. void RemoveObjectAnimation();
  3034. void ResetToDefault();
  3035. bool Save(File) const;
  3036. bool Save(VectorBuffer&) const;
  3037. bool SaveJSON(JSONValue&) const;
  3038. bool SaveXML(XMLElement&) const;
  3039. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3040. void SetAnimationTime(float);
  3041. bool SetAttribute(const String&, const Variant&);
  3042. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3043. void SetAttributeAnimationSpeed(const String&, float);
  3044. void SetAttributeAnimationTime(const String&, float);
  3045. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3046. void SetInterceptNetworkUpdate(const String&, bool);
  3047. // Properties:
  3048. bool animationEnabled;
  3049. /* readonly */
  3050. Array<Variant> attributeDefaults;
  3051. /* readonly */
  3052. Array<AttributeInfo> attributeInfos;
  3053. Array<Variant> attributes;
  3054. /* readonly */
  3055. String category;
  3056. bool collideConnected;
  3057. bool enabled;
  3058. /* readonly */
  3059. bool enabledEffective;
  3060. /* readonly */
  3061. uint id;
  3062. float maxLength;
  3063. /* readonly */
  3064. Node node;
  3065. /* readonly */
  3066. uint numAttributes;
  3067. ObjectAnimation objectAnimation;
  3068. RigidBody2D otherBody;
  3069. Vector2 otherBodyAnchor;
  3070. /* readonly */
  3071. RigidBody2D ownerBody;
  3072. Vector2 ownerBodyAnchor;
  3073. /* readonly */
  3074. int refs;
  3075. bool temporary;
  3076. /* readonly */
  3077. StringHash type;
  3078. /* readonly */
  3079. String typeName;
  3080. /* readonly */
  3081. int weakRefs;
  3082. };
  3083. class ConstraintWeld2D
  3084. {
  3085. // Methods:
  3086. void ApplyAttributes();
  3087. void DrawDebugGeometry(DebugRenderer, bool);
  3088. Variant GetAttribute(const String&) const;
  3089. ValueAnimation GetAttributeAnimation(const String&) const;
  3090. float GetAttributeAnimationSpeed(const String&) const;
  3091. float GetAttributeAnimationTime(const String&) const;
  3092. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3093. Variant GetAttributeDefault(const String&) const;
  3094. bool GetInterceptNetworkUpdate(const String&) const;
  3095. bool HasSubscribedToEvent(Object, const String&);
  3096. bool HasSubscribedToEvent(const String&);
  3097. bool Load(File, bool = false);
  3098. bool Load(VectorBuffer&, bool = false);
  3099. bool LoadJSON(const JSONValue&, bool = false);
  3100. bool LoadXML(const XMLElement&, bool = false);
  3101. void MarkNetworkUpdate() const;
  3102. void Remove();
  3103. void RemoveAttributeAnimation(const String&);
  3104. void RemoveInstanceDefault();
  3105. void RemoveObjectAnimation();
  3106. void ResetToDefault();
  3107. bool Save(File) const;
  3108. bool Save(VectorBuffer&) const;
  3109. bool SaveJSON(JSONValue&) const;
  3110. bool SaveXML(XMLElement&) const;
  3111. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3112. void SetAnimationTime(float);
  3113. bool SetAttribute(const String&, const Variant&);
  3114. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3115. void SetAttributeAnimationSpeed(const String&, float);
  3116. void SetAttributeAnimationTime(const String&, float);
  3117. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3118. void SetInterceptNetworkUpdate(const String&, bool);
  3119. // Properties:
  3120. Vector2 anchor;
  3121. bool animationEnabled;
  3122. /* readonly */
  3123. Array<Variant> attributeDefaults;
  3124. /* readonly */
  3125. Array<AttributeInfo> attributeInfos;
  3126. Array<Variant> attributes;
  3127. /* readonly */
  3128. String category;
  3129. bool collideConnected;
  3130. float dampingRatio;
  3131. bool enabled;
  3132. /* readonly */
  3133. bool enabledEffective;
  3134. float frequencyHz;
  3135. /* readonly */
  3136. uint id;
  3137. /* readonly */
  3138. Node node;
  3139. /* readonly */
  3140. uint numAttributes;
  3141. ObjectAnimation objectAnimation;
  3142. RigidBody2D otherBody;
  3143. /* readonly */
  3144. RigidBody2D ownerBody;
  3145. /* readonly */
  3146. int refs;
  3147. bool temporary;
  3148. /* readonly */
  3149. StringHash type;
  3150. /* readonly */
  3151. String typeName;
  3152. /* readonly */
  3153. int weakRefs;
  3154. };
  3155. class ConstraintWheel2D
  3156. {
  3157. // Methods:
  3158. void ApplyAttributes();
  3159. void DrawDebugGeometry(DebugRenderer, bool);
  3160. Variant GetAttribute(const String&) const;
  3161. ValueAnimation GetAttributeAnimation(const String&) const;
  3162. float GetAttributeAnimationSpeed(const String&) const;
  3163. float GetAttributeAnimationTime(const String&) const;
  3164. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3165. Variant GetAttributeDefault(const String&) const;
  3166. bool GetInterceptNetworkUpdate(const String&) const;
  3167. bool HasSubscribedToEvent(Object, const String&);
  3168. bool HasSubscribedToEvent(const String&);
  3169. bool Load(File, bool = false);
  3170. bool Load(VectorBuffer&, bool = false);
  3171. bool LoadJSON(const JSONValue&, bool = false);
  3172. bool LoadXML(const XMLElement&, bool = false);
  3173. void MarkNetworkUpdate() const;
  3174. void Remove();
  3175. void RemoveAttributeAnimation(const String&);
  3176. void RemoveInstanceDefault();
  3177. void RemoveObjectAnimation();
  3178. void ResetToDefault();
  3179. bool Save(File) const;
  3180. bool Save(VectorBuffer&) const;
  3181. bool SaveJSON(JSONValue&) const;
  3182. bool SaveXML(XMLElement&) const;
  3183. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3184. void SetAnimationTime(float);
  3185. bool SetAttribute(const String&, const Variant&);
  3186. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3187. void SetAttributeAnimationSpeed(const String&, float);
  3188. void SetAttributeAnimationTime(const String&, float);
  3189. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3190. void SetInterceptNetworkUpdate(const String&, bool);
  3191. // Properties:
  3192. Vector2 anchor;
  3193. bool animationEnabled;
  3194. /* readonly */
  3195. Array<Variant> attributeDefaults;
  3196. /* readonly */
  3197. Array<AttributeInfo> attributeInfos;
  3198. Array<Variant> attributes;
  3199. Vector2 axis;
  3200. /* readonly */
  3201. String category;
  3202. bool collideConnected;
  3203. float dampingRatio;
  3204. bool enableMotor;
  3205. bool enabled;
  3206. /* readonly */
  3207. bool enabledEffective;
  3208. float frequencyHz;
  3209. /* readonly */
  3210. uint id;
  3211. float maxMotorTorque;
  3212. float motorSpeed;
  3213. /* readonly */
  3214. Node node;
  3215. /* readonly */
  3216. uint numAttributes;
  3217. ObjectAnimation objectAnimation;
  3218. RigidBody2D otherBody;
  3219. /* readonly */
  3220. RigidBody2D ownerBody;
  3221. /* readonly */
  3222. int refs;
  3223. bool temporary;
  3224. /* readonly */
  3225. StringHash type;
  3226. /* readonly */
  3227. String typeName;
  3228. /* readonly */
  3229. int weakRefs;
  3230. };
  3231. class Controls
  3232. {
  3233. // Methods:
  3234. bool IsDown(uint) const;
  3235. bool IsPressed(uint, const Controls&) const;
  3236. void Reset();
  3237. void Set(uint, bool);
  3238. // Properties:
  3239. uint buttons;
  3240. VariantMap extraData;
  3241. float pitch;
  3242. float yaw;
  3243. };
  3244. class CrowdAgent
  3245. {
  3246. // Methods:
  3247. void ApplyAttributes();
  3248. void DrawDebugGeometry(DebugRenderer, bool);
  3249. void DrawDebugGeometry(bool);
  3250. Variant GetAttribute(const String&) const;
  3251. ValueAnimation GetAttributeAnimation(const String&) const;
  3252. float GetAttributeAnimationSpeed(const String&) const;
  3253. float GetAttributeAnimationTime(const String&) const;
  3254. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3255. Variant GetAttributeDefault(const String&) const;
  3256. bool GetInterceptNetworkUpdate(const String&) const;
  3257. bool HasSubscribedToEvent(Object, const String&);
  3258. bool HasSubscribedToEvent(const String&);
  3259. bool Load(File, bool = false);
  3260. bool Load(VectorBuffer&, bool = false);
  3261. bool LoadJSON(const JSONValue&, bool = false);
  3262. bool LoadXML(const XMLElement&, bool = false);
  3263. void MarkNetworkUpdate() const;
  3264. void Remove();
  3265. void RemoveAttributeAnimation(const String&);
  3266. void RemoveInstanceDefault();
  3267. void RemoveObjectAnimation();
  3268. void ResetTarget();
  3269. void ResetToDefault();
  3270. bool Save(File) const;
  3271. bool Save(VectorBuffer&) const;
  3272. bool SaveJSON(JSONValue&) const;
  3273. bool SaveXML(XMLElement&) const;
  3274. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3275. void SetAnimationTime(float);
  3276. bool SetAttribute(const String&, const Variant&);
  3277. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3278. void SetAttributeAnimationSpeed(const String&, float);
  3279. void SetAttributeAnimationTime(const String&, float);
  3280. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3281. void SetInterceptNetworkUpdate(const String&, bool);
  3282. // Properties:
  3283. /* readonly */
  3284. Vector3 actualVelocity;
  3285. /* readonly */
  3286. CrowdAgentState agentState;
  3287. bool animationEnabled;
  3288. /* readonly */
  3289. bool arrived;
  3290. /* readonly */
  3291. Array<Variant> attributeDefaults;
  3292. /* readonly */
  3293. Array<AttributeInfo> attributeInfos;
  3294. Array<Variant> attributes;
  3295. /* readonly */
  3296. String category;
  3297. /* readonly */
  3298. Vector3 desiredVelocity;
  3299. bool enabled;
  3300. /* readonly */
  3301. bool enabledEffective;
  3302. float height;
  3303. /* readonly */
  3304. uint id;
  3305. /* readonly */
  3306. bool inCrowd;
  3307. float maxAccel;
  3308. float maxSpeed;
  3309. NavigationPushiness navigationPushiness;
  3310. NavigationQuality navigationQuality;
  3311. /* readonly */
  3312. Node node;
  3313. /* readonly */
  3314. uint numAttributes;
  3315. ObjectAnimation objectAnimation;
  3316. uint obstacleAvoidanceType;
  3317. /* readonly */
  3318. Vector3 position;
  3319. uint queryFilterType;
  3320. float radius;
  3321. /* readonly */
  3322. int refs;
  3323. /* readonly */
  3324. bool requestedTarget;
  3325. /* readonly */
  3326. CrowdAgentRequestedTarget requestedTargetType;
  3327. Vector3 targetPosition;
  3328. /* readonly */
  3329. CrowdAgentTargetState targetState;
  3330. Vector3 targetVelocity;
  3331. bool temporary;
  3332. /* readonly */
  3333. StringHash type;
  3334. /* readonly */
  3335. String typeName;
  3336. bool updateNodePosition;
  3337. /* readonly */
  3338. int weakRefs;
  3339. };
  3340. class CrowdManager
  3341. {
  3342. // Methods:
  3343. void ApplyAttributes();
  3344. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3345. void DrawDebugGeometry(DebugRenderer, bool);
  3346. void DrawDebugGeometry(bool);
  3347. Vector3 FindNearestPoint(const Vector3&, int);
  3348. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3349. float GetAreaCost(uint, uint);
  3350. Variant GetAttribute(const String&) const;
  3351. ValueAnimation GetAttributeAnimation(const String&) const;
  3352. float GetAttributeAnimationSpeed(const String&) const;
  3353. float GetAttributeAnimationTime(const String&) const;
  3354. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3355. Variant GetAttributeDefault(const String&) const;
  3356. float GetDistanceToWall(const Vector3&, float, int);
  3357. uint16 GetExcludeFlags(uint);
  3358. uint16 GetIncludeFlags(uint);
  3359. bool GetInterceptNetworkUpdate(const String&) const;
  3360. Vector3 GetRandomPoint(int);
  3361. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3362. bool HasSubscribedToEvent(Object, const String&);
  3363. bool HasSubscribedToEvent(const String&);
  3364. bool Load(File, bool = false);
  3365. bool Load(VectorBuffer&, bool = false);
  3366. bool LoadJSON(const JSONValue&, bool = false);
  3367. bool LoadXML(const XMLElement&, bool = false);
  3368. void MarkNetworkUpdate() const;
  3369. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3370. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3371. void Remove();
  3372. void RemoveAttributeAnimation(const String&);
  3373. void RemoveInstanceDefault();
  3374. void RemoveObjectAnimation();
  3375. void ResetCrowdTarget(Node = null);
  3376. void ResetToDefault();
  3377. bool Save(File) const;
  3378. bool Save(VectorBuffer&) const;
  3379. bool SaveJSON(JSONValue&) const;
  3380. bool SaveXML(XMLElement&) const;
  3381. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3382. void SetAnimationTime(float);
  3383. void SetAreaCost(uint, uint, float);
  3384. bool SetAttribute(const String&, const Variant&);
  3385. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3386. void SetAttributeAnimationSpeed(const String&, float);
  3387. void SetAttributeAnimationTime(const String&, float);
  3388. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3389. void SetCrowdTarget(const Vector3&, Node = null);
  3390. void SetCrowdVelocity(const Vector3&, Node = null);
  3391. void SetExcludeFlags(uint, uint16);
  3392. void SetIncludeFlags(uint, uint16);
  3393. void SetInterceptNetworkUpdate(const String&, bool);
  3394. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3395. // Properties:
  3396. bool animationEnabled;
  3397. /* readonly */
  3398. Array<Variant> attributeDefaults;
  3399. /* readonly */
  3400. Array<AttributeInfo> attributeInfos;
  3401. Array<Variant> attributes;
  3402. /* readonly */
  3403. String category;
  3404. bool enabled;
  3405. /* readonly */
  3406. bool enabledEffective;
  3407. /* readonly */
  3408. uint id;
  3409. float maxAgentRadius;
  3410. int maxAgents;
  3411. NavigationMesh navMesh;
  3412. /* readonly */
  3413. Node node;
  3414. /* readonly */
  3415. Array<uint> numAreas;
  3416. /* readonly */
  3417. uint numAttributes;
  3418. /* readonly */
  3419. uint numObstacleAvoidanceTypes;
  3420. /* readonly */
  3421. uint numQueryFilterTypes;
  3422. ObjectAnimation objectAnimation;
  3423. /* readonly */
  3424. int refs;
  3425. bool temporary;
  3426. /* readonly */
  3427. StringHash type;
  3428. /* readonly */
  3429. String typeName;
  3430. /* readonly */
  3431. int weakRefs;
  3432. };
  3433. class CrowdObstacleAvoidanceParams
  3434. {
  3435. // Properties:
  3436. uint8 adaptiveDepth;
  3437. uint8 adaptiveDivs;
  3438. uint8 adaptiveRings;
  3439. uint8 gridSize;
  3440. float horizTime;
  3441. float velBias;
  3442. float weightCurVel;
  3443. float weightDesVel;
  3444. float weightSide;
  3445. float weightToi;
  3446. };
  3447. class Cursor
  3448. {
  3449. // Methods:
  3450. void AddChild(UIElement);
  3451. void AddTag(const String&);
  3452. void AddTags(const String&, int8 = ';');
  3453. void ApplyAttributes();
  3454. void BringToFront();
  3455. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3456. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3457. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3458. void DisableLayoutUpdate();
  3459. IntVector2 ElementToScreen(const IntVector2&);
  3460. void EnableLayoutUpdate();
  3461. uint FindChild(UIElement) const;
  3462. Variant GetAttribute(const String&) const;
  3463. ValueAnimation GetAttributeAnimation(const String&) const;
  3464. float GetAttributeAnimationSpeed(const String&) const;
  3465. float GetAttributeAnimationTime(const String&) const;
  3466. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3467. Variant GetAttributeDefault(const String&) const;
  3468. UIElement GetChild(const String&, bool = false) const;
  3469. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3470. Array<UIElement> GetChildren(bool = false) const;
  3471. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3472. UIElement GetElementEventSender() const;
  3473. bool GetInterceptNetworkUpdate(const String&) const;
  3474. uint GetNumChildren(bool) const;
  3475. bool HasSubscribedToEvent(Object, const String&);
  3476. bool HasSubscribedToEvent(const String&);
  3477. bool HasTag(const String&) const;
  3478. void InsertChild(uint, UIElement);
  3479. bool IsInside(IntVector2, bool);
  3480. bool IsInsideCombined(IntVector2, bool);
  3481. bool Load(File, bool = false);
  3482. bool Load(VectorBuffer&, bool = false);
  3483. bool LoadChildXML(XMLFile, XMLFile = null);
  3484. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3485. bool LoadJSON(const JSONValue&, bool = false);
  3486. bool LoadXML(File);
  3487. bool LoadXML(VectorBuffer&);
  3488. bool LoadXML(XMLFile, XMLFile);
  3489. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3490. bool LoadXML(const XMLElement&, bool = false);
  3491. void MarkNetworkUpdate() const;
  3492. void Remove();
  3493. void RemoveAllChildren();
  3494. void RemoveAllTags();
  3495. void RemoveAttributeAnimation(const String&);
  3496. void RemoveChild(UIElement, uint = 0);
  3497. void RemoveChild(uint);
  3498. void RemoveInstanceDefault();
  3499. void RemoveObjectAnimation();
  3500. bool RemoveTag(const String&);
  3501. void ResetDeepEnabled();
  3502. void ResetToDefault();
  3503. bool Save(File) const;
  3504. bool Save(VectorBuffer&) const;
  3505. bool SaveJSON(JSONValue&) const;
  3506. bool SaveXML(File, const String& = "\t");
  3507. bool SaveXML(VectorBuffer&, const String& = "\t");
  3508. bool SaveXML(XMLElement&) const;
  3509. IntVector2 ScreenToElement(const IntVector2&);
  3510. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3511. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3512. void SetAnimationTime(float);
  3513. bool SetAttribute(const String&, const Variant&);
  3514. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3515. void SetAttributeAnimationSpeed(const String&, float);
  3516. void SetAttributeAnimationTime(const String&, float);
  3517. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3518. void SetDeepEnabled(bool);
  3519. void SetEnabledRecursive(bool);
  3520. void SetFixedHeight(int);
  3521. void SetFixedSize(int, int);
  3522. void SetFixedWidth(int);
  3523. void SetFullImageRect();
  3524. void SetHoverOffset(int, int);
  3525. void SetInterceptNetworkUpdate(const String&, bool);
  3526. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3527. void SetMaxSize(int, int);
  3528. void SetMinSize(int, int);
  3529. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3530. void SetPosition(int, int);
  3531. void SetShape(CursorShape);
  3532. void SetShape(const String&);
  3533. void SetSize(int, int);
  3534. bool SetStyle(const String&, XMLFile = null);
  3535. bool SetStyle(const XMLElement&);
  3536. bool SetStyleAuto(XMLFile = null);
  3537. void UpdateLayout();
  3538. const Variant& GetVar(const StringHash&);
  3539. // Properties:
  3540. bool animationEnabled;
  3541. /* readonly */
  3542. Array<Variant> attributeDefaults;
  3543. /* readonly */
  3544. Array<AttributeInfo> attributeInfos;
  3545. Array<Variant> attributes;
  3546. BlendMode blendMode;
  3547. IntRect border;
  3548. bool bringToBack;
  3549. bool bringToFront;
  3550. /* readonly */
  3551. String category;
  3552. /* readonly */
  3553. IntVector2 childOffset;
  3554. /* readonly */
  3555. Array<UIElement> children;
  3556. IntRect clipBorder;
  3557. bool clipChildren;
  3558. /* writeonly */
  3559. Color color;
  3560. /* readonly */
  3561. bool colorGradient;
  3562. Array<Color> colors;
  3563. /* readonly */
  3564. IntRect combinedScreenRect;
  3565. XMLFile defaultStyle;
  3566. /* readonly */
  3567. float derivedOpacity;
  3568. /* readonly */
  3569. uint dragButtonCombo;
  3570. /* readonly */
  3571. int dragButtonCount;
  3572. uint dragDropMode;
  3573. bool editable;
  3574. bool elementEventSender;
  3575. bool enabled;
  3576. /* readonly */
  3577. bool enabledSelf;
  3578. /* readonly */
  3579. bool fixedHeight;
  3580. /* readonly */
  3581. bool fixedSize;
  3582. /* readonly */
  3583. bool fixedWidth;
  3584. bool focus;
  3585. FocusMode focusMode;
  3586. int height;
  3587. HorizontalAlignment horizontalAlignment;
  3588. IntVector2 hoverOffset;
  3589. /* readonly */
  3590. bool hovering;
  3591. IntRect imageBorder;
  3592. IntRect imageRect;
  3593. int indent;
  3594. int indentSpacing;
  3595. /* readonly */
  3596. int indentWidth;
  3597. bool internal;
  3598. IntRect layoutBorder;
  3599. Vector2 layoutFlexScale;
  3600. LayoutMode layoutMode;
  3601. int layoutSpacing;
  3602. int maxHeight;
  3603. IntVector2 maxSize;
  3604. int maxWidth;
  3605. int minHeight;
  3606. IntVector2 minSize;
  3607. int minWidth;
  3608. String name;
  3609. /* readonly */
  3610. uint numAllChildren;
  3611. /* readonly */
  3612. uint numAttributes;
  3613. /* readonly */
  3614. uint numChildren;
  3615. ObjectAnimation objectAnimation;
  3616. float opacity;
  3617. UIElement parent;
  3618. IntVector2 position;
  3619. int priority;
  3620. /* readonly */
  3621. int refs;
  3622. /* readonly */
  3623. UIElement root;
  3624. /* readonly */
  3625. IntVector2 screenPosition;
  3626. bool selected;
  3627. String shape;
  3628. IntVector2 size;
  3629. bool sortChildren;
  3630. String style;
  3631. /* readonly */
  3632. Array<String> tags;
  3633. bool temporary;
  3634. Texture texture;
  3635. bool tiled;
  3636. TraversalMode traversalMode;
  3637. /* readonly */
  3638. StringHash type;
  3639. /* readonly */
  3640. String typeName;
  3641. bool useDerivedOpacity;
  3642. bool useSystemShapes;
  3643. /* readonly */
  3644. VariantMap vars;
  3645. VerticalAlignment verticalAlignment;
  3646. bool visible;
  3647. /* readonly */
  3648. bool visibleEffective;
  3649. /* readonly */
  3650. int weakRefs;
  3651. int width;
  3652. };
  3653. class CustomGeometry
  3654. {
  3655. // Methods:
  3656. void ApplyAttributes();
  3657. void BeginGeometry(uint, PrimitiveType);
  3658. void Clear();
  3659. void Commit();
  3660. void DefineColor(const Color&);
  3661. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3662. void DefineNormal(const Vector3&);
  3663. void DefineTangent(const Vector4&);
  3664. void DefineTexCoord(const Vector2&);
  3665. void DefineVertex(const Vector3&);
  3666. void DrawDebugGeometry(DebugRenderer, bool);
  3667. Variant GetAttribute(const String&) const;
  3668. ValueAnimation GetAttributeAnimation(const String&) const;
  3669. float GetAttributeAnimationSpeed(const String&) const;
  3670. float GetAttributeAnimationTime(const String&) const;
  3671. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3672. Variant GetAttributeDefault(const String&) const;
  3673. bool GetInterceptNetworkUpdate(const String&) const;
  3674. CustomGeometryVertex GetVertex(uint, uint);
  3675. bool HasSubscribedToEvent(Object, const String&);
  3676. bool HasSubscribedToEvent(const String&);
  3677. bool IsInView(Camera) const;
  3678. bool Load(File, bool = false);
  3679. bool Load(VectorBuffer&, bool = false);
  3680. bool LoadJSON(const JSONValue&, bool = false);
  3681. bool LoadXML(const XMLElement&, bool = false);
  3682. void MarkNetworkUpdate() const;
  3683. void Remove();
  3684. void RemoveAttributeAnimation(const String&);
  3685. void RemoveInstanceDefault();
  3686. void RemoveObjectAnimation();
  3687. void ResetToDefault();
  3688. bool Save(File) const;
  3689. bool Save(VectorBuffer&) const;
  3690. bool SaveJSON(JSONValue&) const;
  3691. bool SaveXML(XMLElement&) const;
  3692. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3693. void SetAnimationTime(float);
  3694. bool SetAttribute(const String&, const Variant&);
  3695. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3696. void SetAttributeAnimationSpeed(const String&, float);
  3697. void SetAttributeAnimationTime(const String&, float);
  3698. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3699. void SetInterceptNetworkUpdate(const String&, bool);
  3700. // Properties:
  3701. bool animationEnabled;
  3702. /* readonly */
  3703. Array<Variant> attributeDefaults;
  3704. /* readonly */
  3705. Array<AttributeInfo> attributeInfos;
  3706. Array<Variant> attributes;
  3707. /* readonly */
  3708. BoundingBox boundingBox;
  3709. bool castShadows;
  3710. /* readonly */
  3711. String category;
  3712. float drawDistance;
  3713. bool dynamic;
  3714. bool enabled;
  3715. /* readonly */
  3716. bool enabledEffective;
  3717. /* readonly */
  3718. uint id;
  3719. /* readonly */
  3720. bool inView;
  3721. uint lightMask;
  3722. float lodBias;
  3723. /* writeonly */
  3724. Material material;
  3725. Array<Material> materials;
  3726. uint maxLights;
  3727. /* readonly */
  3728. Node node;
  3729. /* readonly */
  3730. uint numAttributes;
  3731. uint numGeometries;
  3732. /* readonly */
  3733. Array<uint> numVertices;
  3734. ObjectAnimation objectAnimation;
  3735. bool occludee;
  3736. bool occluder;
  3737. /* readonly */
  3738. int refs;
  3739. float shadowDistance;
  3740. uint shadowMask;
  3741. bool temporary;
  3742. /* readonly */
  3743. StringHash type;
  3744. /* readonly */
  3745. String typeName;
  3746. uint viewMask;
  3747. /* readonly */
  3748. int weakRefs;
  3749. /* readonly */
  3750. BoundingBox worldBoundingBox;
  3751. /* readonly */
  3752. Zone zone;
  3753. uint zoneMask;
  3754. };
  3755. class CustomGeometryVertex
  3756. {
  3757. // Properties:
  3758. uint color;
  3759. Vector3 normal;
  3760. Vector3 position;
  3761. Vector4 tangent;
  3762. Vector2 texCoord;
  3763. };
  3764. class Database
  3765. {
  3766. // Methods:
  3767. DbConnection Connect(const String&);
  3768. void Disconnect(DbConnection);
  3769. bool HasSubscribedToEvent(Object, const String&);
  3770. bool HasSubscribedToEvent(const String&);
  3771. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3772. // Properties:
  3773. /* readonly */
  3774. String category;
  3775. uint poolSize;
  3776. /* readonly */
  3777. bool pooling;
  3778. /* readonly */
  3779. int refs;
  3780. /* readonly */
  3781. StringHash type;
  3782. /* readonly */
  3783. String typeName;
  3784. /* readonly */
  3785. int weakRefs;
  3786. };
  3787. class DbConnection
  3788. {
  3789. // Methods:
  3790. DbResult Execute(const String&, bool = false);
  3791. bool HasSubscribedToEvent(Object, const String&);
  3792. bool HasSubscribedToEvent(const String&);
  3793. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3794. // Properties:
  3795. /* readonly */
  3796. String category;
  3797. /* readonly */
  3798. bool connected;
  3799. /* readonly */
  3800. String connectionString;
  3801. /* readonly */
  3802. int refs;
  3803. /* readonly */
  3804. StringHash type;
  3805. /* readonly */
  3806. String typeName;
  3807. /* readonly */
  3808. int weakRefs;
  3809. };
  3810. class DbResult
  3811. {
  3812. // Properties:
  3813. /* readonly */
  3814. Array<String> columns;
  3815. /* readonly */
  3816. int64 numAffectedRows;
  3817. /* readonly */
  3818. uint numColumns;
  3819. /* readonly */
  3820. uint numRows;
  3821. /* readonly */
  3822. Array<Array<Variant>> row;
  3823. };
  3824. class DebugHud
  3825. {
  3826. // Methods:
  3827. void ClearAppStats();
  3828. bool HasSubscribedToEvent(Object, const String&);
  3829. bool HasSubscribedToEvent(const String&);
  3830. void ResetAppStats(const String&);
  3831. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3832. void SetAppStats(const String&, const String&);
  3833. void SetAppStats(const String&, const Variant&);
  3834. void Toggle(uint);
  3835. void ToggleAll();
  3836. void Update();
  3837. // Properties:
  3838. /* readonly */
  3839. String category;
  3840. XMLFile defaultStyle;
  3841. /* readonly */
  3842. Text memoryText;
  3843. uint mode;
  3844. /* readonly */
  3845. Text modeText;
  3846. float profilerInterval;
  3847. uint profilerMaxDepth;
  3848. /* readonly */
  3849. Text profilerText;
  3850. /* readonly */
  3851. int refs;
  3852. /* readonly */
  3853. Text statsText;
  3854. /* readonly */
  3855. StringHash type;
  3856. /* readonly */
  3857. String typeName;
  3858. bool useRendererStats;
  3859. /* readonly */
  3860. int weakRefs;
  3861. };
  3862. class DebugRenderer
  3863. {
  3864. // Methods:
  3865. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3866. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3867. void AddCross(const Vector3&, float, const Color&, bool = true);
  3868. void AddFrustum(const Frustum&, const Color&, bool = true);
  3869. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3870. void AddNode(Node, float = 1.0, bool = true);
  3871. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3872. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3873. void AddSkeleton(Skeleton, const Color&, bool = true);
  3874. void AddSphere(const Sphere&, const Color&, bool = true);
  3875. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3876. void ApplyAttributes();
  3877. void DrawDebugGeometry(DebugRenderer, bool);
  3878. Variant GetAttribute(const String&) const;
  3879. ValueAnimation GetAttributeAnimation(const String&) const;
  3880. float GetAttributeAnimationSpeed(const String&) const;
  3881. float GetAttributeAnimationTime(const String&) const;
  3882. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3883. Variant GetAttributeDefault(const String&) const;
  3884. bool GetInterceptNetworkUpdate(const String&) const;
  3885. bool HasSubscribedToEvent(Object, const String&);
  3886. bool HasSubscribedToEvent(const String&);
  3887. bool Load(File, bool = false);
  3888. bool Load(VectorBuffer&, bool = false);
  3889. bool LoadJSON(const JSONValue&, bool = false);
  3890. bool LoadXML(const XMLElement&, bool = false);
  3891. void MarkNetworkUpdate() const;
  3892. void Remove();
  3893. void RemoveAttributeAnimation(const String&);
  3894. void RemoveInstanceDefault();
  3895. void RemoveObjectAnimation();
  3896. void ResetToDefault();
  3897. bool Save(File) const;
  3898. bool Save(VectorBuffer&) const;
  3899. bool SaveJSON(JSONValue&) const;
  3900. bool SaveXML(XMLElement&) const;
  3901. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3902. void SetAnimationTime(float);
  3903. bool SetAttribute(const String&, const Variant&);
  3904. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3905. void SetAttributeAnimationSpeed(const String&, float);
  3906. void SetAttributeAnimationTime(const String&, float);
  3907. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3908. void SetInterceptNetworkUpdate(const String&, bool);
  3909. // Properties:
  3910. bool animationEnabled;
  3911. /* readonly */
  3912. Array<Variant> attributeDefaults;
  3913. /* readonly */
  3914. Array<AttributeInfo> attributeInfos;
  3915. Array<Variant> attributes;
  3916. /* readonly */
  3917. String category;
  3918. bool enabled;
  3919. /* readonly */
  3920. bool enabledEffective;
  3921. /* readonly */
  3922. uint id;
  3923. /* readonly */
  3924. Node node;
  3925. /* readonly */
  3926. uint numAttributes;
  3927. ObjectAnimation objectAnimation;
  3928. /* readonly */
  3929. int refs;
  3930. bool temporary;
  3931. /* readonly */
  3932. StringHash type;
  3933. /* readonly */
  3934. String typeName;
  3935. /* readonly */
  3936. int weakRefs;
  3937. };
  3938. class DecalSet
  3939. {
  3940. // Methods:
  3941. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3942. void ApplyAttributes();
  3943. void DrawDebugGeometry(DebugRenderer, bool);
  3944. Variant GetAttribute(const String&) const;
  3945. ValueAnimation GetAttributeAnimation(const String&) const;
  3946. float GetAttributeAnimationSpeed(const String&) const;
  3947. float GetAttributeAnimationTime(const String&) const;
  3948. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3949. Variant GetAttributeDefault(const String&) const;
  3950. bool GetInterceptNetworkUpdate(const String&) const;
  3951. bool HasSubscribedToEvent(Object, const String&);
  3952. bool HasSubscribedToEvent(const String&);
  3953. bool IsInView(Camera) const;
  3954. bool Load(File, bool = false);
  3955. bool Load(VectorBuffer&, bool = false);
  3956. bool LoadJSON(const JSONValue&, bool = false);
  3957. bool LoadXML(const XMLElement&, bool = false);
  3958. void MarkNetworkUpdate() const;
  3959. void Remove();
  3960. void RemoveAllDecals();
  3961. void RemoveAttributeAnimation(const String&);
  3962. void RemoveDecals(uint);
  3963. void RemoveInstanceDefault();
  3964. void RemoveObjectAnimation();
  3965. void ResetToDefault();
  3966. bool Save(File) const;
  3967. bool Save(VectorBuffer&) const;
  3968. bool SaveJSON(JSONValue&) const;
  3969. bool SaveXML(XMLElement&) const;
  3970. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3971. void SetAnimationTime(float);
  3972. bool SetAttribute(const String&, const Variant&);
  3973. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3974. void SetAttributeAnimationSpeed(const String&, float);
  3975. void SetAttributeAnimationTime(const String&, float);
  3976. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3977. void SetInterceptNetworkUpdate(const String&, bool);
  3978. // Properties:
  3979. bool animationEnabled;
  3980. /* readonly */
  3981. Array<Variant> attributeDefaults;
  3982. /* readonly */
  3983. Array<AttributeInfo> attributeInfos;
  3984. Array<Variant> attributes;
  3985. /* readonly */
  3986. BoundingBox boundingBox;
  3987. bool castShadows;
  3988. /* readonly */
  3989. String category;
  3990. float drawDistance;
  3991. bool enabled;
  3992. /* readonly */
  3993. bool enabledEffective;
  3994. /* readonly */
  3995. uint id;
  3996. /* readonly */
  3997. bool inView;
  3998. uint lightMask;
  3999. float lodBias;
  4000. Material material;
  4001. uint maxIndices;
  4002. uint maxLights;
  4003. uint maxVertices;
  4004. /* readonly */
  4005. Node node;
  4006. /* readonly */
  4007. uint numAttributes;
  4008. /* readonly */
  4009. uint numDecals;
  4010. /* readonly */
  4011. uint numIndices;
  4012. /* readonly */
  4013. uint numVertices;
  4014. ObjectAnimation objectAnimation;
  4015. bool occludee;
  4016. bool occluder;
  4017. /* readonly */
  4018. int refs;
  4019. float shadowDistance;
  4020. uint shadowMask;
  4021. bool temporary;
  4022. /* readonly */
  4023. StringHash type;
  4024. /* readonly */
  4025. String typeName;
  4026. uint viewMask;
  4027. /* readonly */
  4028. int weakRefs;
  4029. /* readonly */
  4030. BoundingBox worldBoundingBox;
  4031. /* readonly */
  4032. Zone zone;
  4033. uint zoneMask;
  4034. };
  4035. class Deserializer
  4036. {
  4037. // Methods:
  4038. Array<uint8> Read(uint);
  4039. bool ReadBool();
  4040. BoundingBox ReadBoundingBox();
  4041. int8 ReadByte();
  4042. Color ReadColor();
  4043. double ReadDouble();
  4044. String ReadFileID();
  4045. float ReadFloat();
  4046. int ReadInt();
  4047. IntRect ReadIntRect();
  4048. IntVector2 ReadIntVector2();
  4049. String ReadLine();
  4050. Matrix3 ReadMatrix3();
  4051. Matrix3x4 ReadMatrix3x4();
  4052. Matrix4 ReadMatrix4();
  4053. uint ReadNetID();
  4054. Quaternion ReadPackedQuaternion();
  4055. Vector3 ReadPackedVector3(float);
  4056. Quaternion ReadQuaternion();
  4057. int16 ReadShort();
  4058. String ReadString();
  4059. StringHash ReadStringHash();
  4060. uint8 ReadUByte();
  4061. uint ReadUInt();
  4062. uint16 ReadUShort();
  4063. uint ReadVLE();
  4064. Variant ReadVariant();
  4065. VariantMap ReadVariantMap();
  4066. Vector2 ReadVector2();
  4067. Vector3 ReadVector3();
  4068. Vector4 ReadVector4();
  4069. VectorBuffer ReadVectorBuffer(uint);
  4070. uint Seek(uint);
  4071. // Properties:
  4072. /* readonly */
  4073. uint checksum;
  4074. /* readonly */
  4075. bool eof;
  4076. /* readonly */
  4077. String name;
  4078. /* readonly */
  4079. uint position;
  4080. /* readonly */
  4081. uint size;
  4082. };
  4083. class Dictionary
  4084. {
  4085. // Methods:
  4086. void Clear();
  4087. void Erase(const String&);
  4088. bool Exists(const String&) const;
  4089. bool Get(const String&, void*) const;
  4090. bool Get(const String&, double&) const;
  4091. bool Get(const String&, int64&) const;
  4092. void Set(const String&, const void*);
  4093. void Set(const String&, const double&);
  4094. void Set(const String&, const int64&);
  4095. // Properties:
  4096. /* readonly */
  4097. bool empty;
  4098. /* readonly */
  4099. Array<String> keys;
  4100. /* readonly */
  4101. uint length;
  4102. };
  4103. class DictionaryValue
  4104. {
  4105. };
  4106. class Drawable
  4107. {
  4108. // Methods:
  4109. void ApplyAttributes();
  4110. void DrawDebugGeometry(DebugRenderer, bool);
  4111. Variant GetAttribute(const String&) const;
  4112. ValueAnimation GetAttributeAnimation(const String&) const;
  4113. float GetAttributeAnimationSpeed(const String&) const;
  4114. float GetAttributeAnimationTime(const String&) const;
  4115. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4116. Variant GetAttributeDefault(const String&) const;
  4117. bool GetInterceptNetworkUpdate(const String&) const;
  4118. bool HasSubscribedToEvent(Object, const String&);
  4119. bool HasSubscribedToEvent(const String&);
  4120. bool IsInView(Camera) const;
  4121. bool Load(File, bool = false);
  4122. bool Load(VectorBuffer&, bool = false);
  4123. bool LoadJSON(const JSONValue&, bool = false);
  4124. bool LoadXML(const XMLElement&, bool = false);
  4125. void MarkNetworkUpdate() const;
  4126. void Remove();
  4127. void RemoveAttributeAnimation(const String&);
  4128. void RemoveInstanceDefault();
  4129. void RemoveObjectAnimation();
  4130. void ResetToDefault();
  4131. bool Save(File) const;
  4132. bool Save(VectorBuffer&) const;
  4133. bool SaveJSON(JSONValue&) const;
  4134. bool SaveXML(XMLElement&) const;
  4135. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4136. void SetAnimationTime(float);
  4137. bool SetAttribute(const String&, const Variant&);
  4138. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4139. void SetAttributeAnimationSpeed(const String&, float);
  4140. void SetAttributeAnimationTime(const String&, float);
  4141. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4142. void SetInterceptNetworkUpdate(const String&, bool);
  4143. // Properties:
  4144. bool animationEnabled;
  4145. /* readonly */
  4146. Array<Variant> attributeDefaults;
  4147. /* readonly */
  4148. Array<AttributeInfo> attributeInfos;
  4149. Array<Variant> attributes;
  4150. /* readonly */
  4151. BoundingBox boundingBox;
  4152. bool castShadows;
  4153. /* readonly */
  4154. String category;
  4155. float drawDistance;
  4156. bool enabled;
  4157. /* readonly */
  4158. bool enabledEffective;
  4159. /* readonly */
  4160. uint id;
  4161. /* readonly */
  4162. bool inView;
  4163. uint lightMask;
  4164. float lodBias;
  4165. uint maxLights;
  4166. /* readonly */
  4167. Node node;
  4168. /* readonly */
  4169. uint numAttributes;
  4170. ObjectAnimation objectAnimation;
  4171. bool occludee;
  4172. bool occluder;
  4173. /* readonly */
  4174. int refs;
  4175. float shadowDistance;
  4176. uint shadowMask;
  4177. bool temporary;
  4178. /* readonly */
  4179. StringHash type;
  4180. /* readonly */
  4181. String typeName;
  4182. uint viewMask;
  4183. /* readonly */
  4184. int weakRefs;
  4185. /* readonly */
  4186. BoundingBox worldBoundingBox;
  4187. uint zoneMask;
  4188. };
  4189. class Drawable2D
  4190. {
  4191. // Methods:
  4192. void ApplyAttributes();
  4193. void DrawDebugGeometry(DebugRenderer, bool);
  4194. Variant GetAttribute(const String&) const;
  4195. ValueAnimation GetAttributeAnimation(const String&) const;
  4196. float GetAttributeAnimationSpeed(const String&) const;
  4197. float GetAttributeAnimationTime(const String&) const;
  4198. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4199. Variant GetAttributeDefault(const String&) const;
  4200. bool GetInterceptNetworkUpdate(const String&) const;
  4201. bool HasSubscribedToEvent(Object, const String&);
  4202. bool HasSubscribedToEvent(const String&);
  4203. bool IsInView(Camera) const;
  4204. bool Load(File, bool = false);
  4205. bool Load(VectorBuffer&, bool = false);
  4206. bool LoadJSON(const JSONValue&, bool = false);
  4207. bool LoadXML(const XMLElement&, bool = false);
  4208. void MarkNetworkUpdate() const;
  4209. void Remove();
  4210. void RemoveAttributeAnimation(const String&);
  4211. void RemoveInstanceDefault();
  4212. void RemoveObjectAnimation();
  4213. void ResetToDefault();
  4214. bool Save(File) const;
  4215. bool Save(VectorBuffer&) const;
  4216. bool SaveJSON(JSONValue&) const;
  4217. bool SaveXML(XMLElement&) const;
  4218. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4219. void SetAnimationTime(float);
  4220. bool SetAttribute(const String&, const Variant&);
  4221. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4222. void SetAttributeAnimationSpeed(const String&, float);
  4223. void SetAttributeAnimationTime(const String&, float);
  4224. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4225. void SetInterceptNetworkUpdate(const String&, bool);
  4226. // Properties:
  4227. bool animationEnabled;
  4228. /* readonly */
  4229. Array<Variant> attributeDefaults;
  4230. /* readonly */
  4231. Array<AttributeInfo> attributeInfos;
  4232. Array<Variant> attributes;
  4233. /* readonly */
  4234. BoundingBox boundingBox;
  4235. bool castShadows;
  4236. /* readonly */
  4237. String category;
  4238. float drawDistance;
  4239. bool enabled;
  4240. /* readonly */
  4241. bool enabledEffective;
  4242. /* readonly */
  4243. uint id;
  4244. /* readonly */
  4245. bool inView;
  4246. int layer;
  4247. uint lightMask;
  4248. float lodBias;
  4249. uint maxLights;
  4250. /* readonly */
  4251. Node node;
  4252. /* readonly */
  4253. uint numAttributes;
  4254. ObjectAnimation objectAnimation;
  4255. bool occludee;
  4256. bool occluder;
  4257. int orderInLayer;
  4258. /* readonly */
  4259. int refs;
  4260. float shadowDistance;
  4261. uint shadowMask;
  4262. bool temporary;
  4263. /* readonly */
  4264. StringHash type;
  4265. /* readonly */
  4266. String typeName;
  4267. uint viewMask;
  4268. /* readonly */
  4269. int weakRefs;
  4270. /* readonly */
  4271. BoundingBox worldBoundingBox;
  4272. uint zoneMask;
  4273. };
  4274. class DropDownList
  4275. {
  4276. // Methods:
  4277. void AddChild(UIElement);
  4278. void AddItem(UIElement);
  4279. void AddTag(const String&);
  4280. void AddTags(const String&, int8 = ';');
  4281. void ApplyAttributes();
  4282. void BringToFront();
  4283. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4284. void DisableLayoutUpdate();
  4285. IntVector2 ElementToScreen(const IntVector2&);
  4286. void EnableLayoutUpdate();
  4287. uint FindChild(UIElement) const;
  4288. Variant GetAttribute(const String&) const;
  4289. ValueAnimation GetAttributeAnimation(const String&) const;
  4290. float GetAttributeAnimationSpeed(const String&) const;
  4291. float GetAttributeAnimationTime(const String&) const;
  4292. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4293. Variant GetAttributeDefault(const String&) const;
  4294. UIElement GetChild(const String&, bool = false) const;
  4295. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4296. Array<UIElement> GetChildren(bool = false) const;
  4297. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4298. UIElement GetElementEventSender() const;
  4299. bool GetInterceptNetworkUpdate(const String&) const;
  4300. Array<UIElement> GetItems() const;
  4301. uint GetNumChildren(bool) const;
  4302. bool HasSubscribedToEvent(Object, const String&);
  4303. bool HasSubscribedToEvent(const String&);
  4304. bool HasTag(const String&) const;
  4305. void InsertChild(uint, UIElement);
  4306. void InsertItem(uint, UIElement);
  4307. bool IsInside(IntVector2, bool);
  4308. bool IsInsideCombined(IntVector2, bool);
  4309. bool Load(File, bool = false);
  4310. bool Load(VectorBuffer&, bool = false);
  4311. bool LoadChildXML(XMLFile, XMLFile = null);
  4312. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4313. bool LoadJSON(const JSONValue&, bool = false);
  4314. bool LoadXML(File);
  4315. bool LoadXML(VectorBuffer&);
  4316. bool LoadXML(XMLFile, XMLFile);
  4317. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4318. bool LoadXML(const XMLElement&, bool = false);
  4319. void MarkNetworkUpdate() const;
  4320. void Remove();
  4321. void RemoveAllChildren();
  4322. void RemoveAllItems();
  4323. void RemoveAllTags();
  4324. void RemoveAttributeAnimation(const String&);
  4325. void RemoveChild(UIElement, uint = 0);
  4326. void RemoveChild(uint);
  4327. void RemoveInstanceDefault();
  4328. void RemoveItem(UIElement);
  4329. void RemoveItem(uint);
  4330. void RemoveObjectAnimation();
  4331. bool RemoveTag(const String&);
  4332. void ResetDeepEnabled();
  4333. void ResetToDefault();
  4334. bool Save(File) const;
  4335. bool Save(VectorBuffer&) const;
  4336. bool SaveJSON(JSONValue&) const;
  4337. bool SaveXML(File, const String& = "\t");
  4338. bool SaveXML(VectorBuffer&, const String& = "\t");
  4339. bool SaveXML(XMLElement&) const;
  4340. IntVector2 ScreenToElement(const IntVector2&);
  4341. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4342. void SetAccelerator(int, int);
  4343. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4344. void SetAnimationTime(float);
  4345. bool SetAttribute(const String&, const Variant&);
  4346. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4347. void SetAttributeAnimationSpeed(const String&, float);
  4348. void SetAttributeAnimationTime(const String&, float);
  4349. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4350. void SetDeepEnabled(bool);
  4351. void SetEnabledRecursive(bool);
  4352. void SetFixedHeight(int);
  4353. void SetFixedSize(int, int);
  4354. void SetFixedWidth(int);
  4355. void SetFullImageRect();
  4356. void SetHoverOffset(int, int);
  4357. void SetInterceptNetworkUpdate(const String&, bool);
  4358. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4359. void SetMaxSize(int, int);
  4360. void SetMinSize(int, int);
  4361. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4362. void SetPosition(int, int);
  4363. void SetPressedChildOffset(int, int);
  4364. void SetPressedOffset(int, int);
  4365. void SetRepeat(float, float);
  4366. void SetSize(int, int);
  4367. bool SetStyle(const String&, XMLFile = null);
  4368. bool SetStyle(const XMLElement&);
  4369. bool SetStyleAuto(XMLFile = null);
  4370. void UpdateLayout();
  4371. const Variant& GetVar(const StringHash&);
  4372. UIElement getPopup() const;
  4373. // Properties:
  4374. /* readonly */
  4375. int acceleratorKey;
  4376. /* readonly */
  4377. int acceleratorQualifiers;
  4378. bool animationEnabled;
  4379. /* readonly */
  4380. Array<Variant> attributeDefaults;
  4381. /* readonly */
  4382. Array<AttributeInfo> attributeInfos;
  4383. Array<Variant> attributes;
  4384. BlendMode blendMode;
  4385. IntRect border;
  4386. bool bringToBack;
  4387. bool bringToFront;
  4388. /* readonly */
  4389. String category;
  4390. /* readonly */
  4391. IntVector2 childOffset;
  4392. /* readonly */
  4393. Array<UIElement> children;
  4394. IntRect clipBorder;
  4395. bool clipChildren;
  4396. /* writeonly */
  4397. Color color;
  4398. /* readonly */
  4399. bool colorGradient;
  4400. Array<Color> colors;
  4401. /* readonly */
  4402. IntRect combinedScreenRect;
  4403. XMLFile defaultStyle;
  4404. /* readonly */
  4405. float derivedOpacity;
  4406. /* readonly */
  4407. uint dragButtonCombo;
  4408. /* readonly */
  4409. int dragButtonCount;
  4410. uint dragDropMode;
  4411. bool editable;
  4412. bool elementEventSender;
  4413. bool enabled;
  4414. /* readonly */
  4415. bool enabledSelf;
  4416. /* readonly */
  4417. bool fixedHeight;
  4418. /* readonly */
  4419. bool fixedSize;
  4420. /* readonly */
  4421. bool fixedWidth;
  4422. bool focus;
  4423. FocusMode focusMode;
  4424. int height;
  4425. HorizontalAlignment horizontalAlignment;
  4426. IntVector2 hoverOffset;
  4427. /* readonly */
  4428. bool hovering;
  4429. IntRect imageBorder;
  4430. IntRect imageRect;
  4431. int indent;
  4432. int indentSpacing;
  4433. /* readonly */
  4434. int indentWidth;
  4435. bool internal;
  4436. /* readonly */
  4437. Array<UIElement> items;
  4438. IntRect layoutBorder;
  4439. Vector2 layoutFlexScale;
  4440. LayoutMode layoutMode;
  4441. int layoutSpacing;
  4442. /* readonly */
  4443. ListView listView;
  4444. int maxHeight;
  4445. IntVector2 maxSize;
  4446. int maxWidth;
  4447. int minHeight;
  4448. IntVector2 minSize;
  4449. int minWidth;
  4450. String name;
  4451. /* readonly */
  4452. uint numAllChildren;
  4453. /* readonly */
  4454. uint numAttributes;
  4455. /* readonly */
  4456. uint numChildren;
  4457. /* readonly */
  4458. uint numItems;
  4459. ObjectAnimation objectAnimation;
  4460. float opacity;
  4461. UIElement parent;
  4462. /* readonly */
  4463. UIElement placeholder;
  4464. String placeholderText;
  4465. IntVector2 position;
  4466. /* readonly */
  4467. bool pressed;
  4468. IntVector2 pressedChildOffset;
  4469. IntVector2 pressedOffset;
  4470. int priority;
  4471. /* readonly */
  4472. int refs;
  4473. float repeatDelay;
  4474. float repeatRate;
  4475. bool resizePopup;
  4476. /* readonly */
  4477. UIElement root;
  4478. /* readonly */
  4479. IntVector2 screenPosition;
  4480. bool selected;
  4481. /* readonly */
  4482. UIElement selectedItem;
  4483. uint selection;
  4484. bool showPopup;
  4485. IntVector2 size;
  4486. bool sortChildren;
  4487. String style;
  4488. /* readonly */
  4489. Array<String> tags;
  4490. bool temporary;
  4491. Texture texture;
  4492. bool tiled;
  4493. TraversalMode traversalMode;
  4494. /* readonly */
  4495. StringHash type;
  4496. /* readonly */
  4497. String typeName;
  4498. bool useDerivedOpacity;
  4499. /* readonly */
  4500. VariantMap vars;
  4501. VerticalAlignment verticalAlignment;
  4502. bool visible;
  4503. /* readonly */
  4504. bool visibleEffective;
  4505. /* readonly */
  4506. int weakRefs;
  4507. int width;
  4508. };
  4509. class DynamicNavigationMesh
  4510. {
  4511. // Methods:
  4512. void ApplyAttributes();
  4513. bool Build();
  4514. bool Build(const BoundingBox&);
  4515. void DrawDebugGeometry(DebugRenderer, bool);
  4516. void DrawDebugGeometry(bool);
  4517. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4518. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4519. float GetAreaCost(uint) const;
  4520. Variant GetAttribute(const String&) const;
  4521. ValueAnimation GetAttributeAnimation(const String&) const;
  4522. float GetAttributeAnimationSpeed(const String&) const;
  4523. float GetAttributeAnimationTime(const String&) const;
  4524. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4525. Variant GetAttributeDefault(const String&) const;
  4526. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4527. bool GetInterceptNetworkUpdate(const String&) const;
  4528. Vector3 GetRandomPoint();
  4529. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4530. bool HasSubscribedToEvent(Object, const String&);
  4531. bool HasSubscribedToEvent(const String&);
  4532. bool Load(File, bool = false);
  4533. bool Load(VectorBuffer&, bool = false);
  4534. bool LoadJSON(const JSONValue&, bool = false);
  4535. bool LoadXML(const XMLElement&, bool = false);
  4536. void MarkNetworkUpdate() const;
  4537. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4538. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4539. void Remove();
  4540. void RemoveAttributeAnimation(const String&);
  4541. void RemoveInstanceDefault();
  4542. void RemoveObjectAnimation();
  4543. void ResetToDefault();
  4544. bool Save(File) const;
  4545. bool Save(VectorBuffer&) const;
  4546. bool SaveJSON(JSONValue&) const;
  4547. bool SaveXML(XMLElement&) const;
  4548. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4549. void SetAnimationTime(float);
  4550. void SetAreaCost(uint, float);
  4551. bool SetAttribute(const String&, const Variant&);
  4552. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4553. void SetAttributeAnimationSpeed(const String&, float);
  4554. void SetAttributeAnimationTime(const String&, float);
  4555. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4556. void SetInterceptNetworkUpdate(const String&, bool);
  4557. // Properties:
  4558. float agentHeight;
  4559. float agentMaxClimb;
  4560. float agentMaxSlope;
  4561. float agentRadius;
  4562. bool animationEnabled;
  4563. /* readonly */
  4564. Array<Variant> attributeDefaults;
  4565. /* readonly */
  4566. Array<AttributeInfo> attributeInfos;
  4567. Array<Variant> attributes;
  4568. /* readonly */
  4569. BoundingBox boundingBox;
  4570. /* readonly */
  4571. String category;
  4572. float cellHeight;
  4573. float cellSize;
  4574. float detailSampleDistance;
  4575. float detailSampleMaxError;
  4576. bool drawNavAreas;
  4577. bool drawObstacles;
  4578. bool drawOffMeshConnections;
  4579. float edgeMaxError;
  4580. float edgeMaxLength;
  4581. bool enabled;
  4582. /* readonly */
  4583. bool enabledEffective;
  4584. /* readonly */
  4585. uint id;
  4586. /* readonly */
  4587. bool initialized;
  4588. bool maxLayers;
  4589. uint maxObstacles;
  4590. /* readonly */
  4591. Node node;
  4592. /* readonly */
  4593. uint numAttributes;
  4594. /* readonly */
  4595. IntVector2 numTiles;
  4596. ObjectAnimation objectAnimation;
  4597. Vector3 padding;
  4598. NavmeshPartitionType partitionType;
  4599. /* readonly */
  4600. int refs;
  4601. float regionMergeSize;
  4602. float regionMinSize;
  4603. bool temporary;
  4604. int tileSize;
  4605. /* readonly */
  4606. StringHash type;
  4607. /* readonly */
  4608. String typeName;
  4609. /* readonly */
  4610. int weakRefs;
  4611. /* readonly */
  4612. BoundingBox worldBoundingBox;
  4613. };
  4614. class Engine
  4615. {
  4616. // Methods:
  4617. Console CreateConsole();
  4618. DebugHud CreateDebugHud();
  4619. void DumpMemory();
  4620. void DumpProfiler();
  4621. void DumpResources(bool = false);
  4622. void Exit();
  4623. bool HasSubscribedToEvent(Object, const String&);
  4624. bool HasSubscribedToEvent(const String&);
  4625. void RunFrame();
  4626. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4627. // Properties:
  4628. bool autoExit;
  4629. /* readonly */
  4630. String category;
  4631. /* readonly */
  4632. bool exiting;
  4633. /* readonly */
  4634. bool headless;
  4635. /* readonly */
  4636. bool initialized;
  4637. int maxFps;
  4638. int maxInactiveFps;
  4639. int minFps;
  4640. bool pauseMinimized;
  4641. /* readonly */
  4642. int refs;
  4643. int timeStepSmoothing;
  4644. /* readonly */
  4645. StringHash type;
  4646. /* readonly */
  4647. String typeName;
  4648. /* readonly */
  4649. int weakRefs;
  4650. };
  4651. class File
  4652. {
  4653. // Methods:
  4654. void Close();
  4655. bool HasSubscribedToEvent(Object, const String&);
  4656. bool HasSubscribedToEvent(const String&);
  4657. bool Open(const String&, FileMode = FILE_READ);
  4658. Array<uint8> Read(uint);
  4659. bool ReadBool();
  4660. BoundingBox ReadBoundingBox();
  4661. int8 ReadByte();
  4662. Color ReadColor();
  4663. double ReadDouble();
  4664. String ReadFileID();
  4665. float ReadFloat();
  4666. int ReadInt();
  4667. IntRect ReadIntRect();
  4668. IntVector2 ReadIntVector2();
  4669. String ReadLine();
  4670. Matrix3 ReadMatrix3();
  4671. Matrix3x4 ReadMatrix3x4();
  4672. Matrix4 ReadMatrix4();
  4673. uint ReadNetID();
  4674. Quaternion ReadPackedQuaternion();
  4675. Vector3 ReadPackedVector3(float);
  4676. Quaternion ReadQuaternion();
  4677. int16 ReadShort();
  4678. String ReadString();
  4679. StringHash ReadStringHash();
  4680. uint8 ReadUByte();
  4681. uint ReadUInt();
  4682. uint16 ReadUShort();
  4683. uint ReadVLE();
  4684. Variant ReadVariant();
  4685. VariantMap ReadVariantMap();
  4686. Vector2 ReadVector2();
  4687. Vector3 ReadVector3();
  4688. Vector4 ReadVector4();
  4689. VectorBuffer ReadVectorBuffer(uint);
  4690. uint Seek(uint);
  4691. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4692. uint Write(Array<uint8>);
  4693. bool WriteBool(bool);
  4694. bool WriteBoundingBox(const BoundingBox&);
  4695. bool WriteByte(int8);
  4696. bool WriteColor(const Color&);
  4697. bool WriteDouble(double);
  4698. bool WriteFileID(const String&);
  4699. bool WriteFloat(float);
  4700. bool WriteInt(int);
  4701. bool WriteIntRect(const IntRect&);
  4702. bool WriteIntVector2(const IntVector2&);
  4703. bool WriteLine(const String&);
  4704. bool WriteMatrix3(const Matrix3&);
  4705. bool WriteMatrix3x4(const Matrix3x4&);
  4706. bool WriteMatrix4(const Matrix4&);
  4707. bool WriteNetID(uint);
  4708. bool WritePackedQuaternion(const Quaternion&);
  4709. bool WritePackedVector3(const Vector3&, float);
  4710. bool WriteQuaternion(const Quaternion&);
  4711. bool WriteShort(int16);
  4712. bool WriteString(const String&);
  4713. bool WriteStringHash(const StringHash&);
  4714. bool WriteUByte(uint8);
  4715. bool WriteUInt(uint);
  4716. bool WriteUShort(uint16);
  4717. bool WriteVLE(uint);
  4718. bool WriteVariant(const Variant&);
  4719. bool WriteVariantMap(const VariantMap&);
  4720. bool WriteVector2(const Vector2&);
  4721. bool WriteVector3(const Vector3&);
  4722. bool WriteVector4(const Vector4&);
  4723. bool WriteVectorBuffer(const VectorBuffer&);
  4724. // Properties:
  4725. /* readonly */
  4726. String category;
  4727. /* readonly */
  4728. uint checksum;
  4729. /* readonly */
  4730. bool eof;
  4731. /* readonly */
  4732. FileMode mode;
  4733. /* readonly */
  4734. String name;
  4735. /* readonly */
  4736. bool open;
  4737. /* readonly */
  4738. bool packaged;
  4739. /* readonly */
  4740. uint position;
  4741. /* readonly */
  4742. int refs;
  4743. /* readonly */
  4744. uint size;
  4745. /* readonly */
  4746. StringHash type;
  4747. /* readonly */
  4748. String typeName;
  4749. /* readonly */
  4750. int weakRefs;
  4751. };
  4752. class FileSelector
  4753. {
  4754. // Methods:
  4755. bool HasSubscribedToEvent(Object, const String&);
  4756. bool HasSubscribedToEvent(const String&);
  4757. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4758. void SetButtonTexts(const String&, const String&);
  4759. void SetFilters(Array<String>, uint);
  4760. void UpdateElements();
  4761. // Properties:
  4762. /* readonly */
  4763. Button cancelButton;
  4764. /* readonly */
  4765. String category;
  4766. XMLFile defaultStyle;
  4767. bool directoryMode;
  4768. /* readonly */
  4769. ListView fileList;
  4770. String fileName;
  4771. /* readonly */
  4772. LineEdit fileNameEdit;
  4773. /* readonly */
  4774. String filter;
  4775. /* readonly */
  4776. uint filterIndex;
  4777. /* readonly */
  4778. DropDownList filterList;
  4779. /* readonly */
  4780. Button okButton;
  4781. String path;
  4782. /* readonly */
  4783. LineEdit pathEdit;
  4784. /* readonly */
  4785. int refs;
  4786. String title;
  4787. /* readonly */
  4788. Text titleText;
  4789. /* readonly */
  4790. StringHash type;
  4791. /* readonly */
  4792. String typeName;
  4793. /* readonly */
  4794. int weakRefs;
  4795. /* readonly */
  4796. Window window;
  4797. };
  4798. class FileSystem
  4799. {
  4800. // Methods:
  4801. bool Copy(const String&, const String&);
  4802. bool CreateDir(const String&);
  4803. bool Delete(const String&);
  4804. bool DirExists(const String&) const;
  4805. bool FileExists(const String&) const;
  4806. String GetAppPreferencesDir(const String&, const String&) const;
  4807. uint GetLastModifiedTime(const String&) const;
  4808. bool HasSubscribedToEvent(Object, const String&);
  4809. bool HasSubscribedToEvent(const String&);
  4810. bool Rename(const String&, const String&);
  4811. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4812. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4813. bool SetLastModifiedTime(const String&, uint);
  4814. int SystemCommand(const String&, bool = false);
  4815. uint SystemCommandAsync(const String&);
  4816. bool SystemOpen(const String&, const String&);
  4817. int SystemRun(const String&, Array<String>);
  4818. uint SystemRunAsync(const String&, Array<String>);
  4819. // Properties:
  4820. /* readonly */
  4821. String category;
  4822. String currentDir;
  4823. bool executeConsoleCommands;
  4824. /* readonly */
  4825. String programDir;
  4826. /* readonly */
  4827. int refs;
  4828. /* readonly */
  4829. StringHash type;
  4830. /* readonly */
  4831. String typeName;
  4832. /* readonly */
  4833. String userDocumentsDir;
  4834. /* readonly */
  4835. int weakRefs;
  4836. };
  4837. class FocusParameters
  4838. {
  4839. // Properties:
  4840. bool autoSize;
  4841. bool focus;
  4842. float minView;
  4843. bool nonUniform;
  4844. float quantize;
  4845. };
  4846. class Font
  4847. {
  4848. // Methods:
  4849. IntVector2 GetTotalGlyphOffset(int) const;
  4850. bool HasSubscribedToEvent(Object, const String&);
  4851. bool HasSubscribedToEvent(const String&);
  4852. bool Load(File);
  4853. bool Load(VectorBuffer&);
  4854. bool Save(File) const;
  4855. bool Save(VectorBuffer&) const;
  4856. bool SaveXML(File, int, bool = false, const String& = "\t");
  4857. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4858. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4859. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4860. // Properties:
  4861. IntVector2 absoluteGlyphOffset;
  4862. /* readonly */
  4863. String category;
  4864. /* readonly */
  4865. uint memoryUse;
  4866. String name;
  4867. /* readonly */
  4868. int refs;
  4869. Vector2 scaledGlyphOffset;
  4870. /* readonly */
  4871. StringHash type;
  4872. /* readonly */
  4873. String typeName;
  4874. /* readonly */
  4875. uint useTimer;
  4876. /* readonly */
  4877. int weakRefs;
  4878. };
  4879. class Frustum
  4880. {
  4881. // Methods:
  4882. void Define(const BoundingBox&, const Matrix3x4&);
  4883. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4884. void Define(float, float, float, float, float, const Matrix3x4&);
  4885. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4886. float Distance(const Vector3&) const;
  4887. Intersection IsInside(const BoundingBox&);
  4888. Intersection IsInside(const Sphere&);
  4889. Intersection IsInside(const Vector3&);
  4890. Intersection IsInsideFast(const BoundingBox&) const;
  4891. Intersection IsInsideFast(const Sphere&) const;
  4892. void Transform(const Matrix3&);
  4893. void Transform(const Matrix3x4&);
  4894. Frustum Transformed(const Matrix3&) const;
  4895. Frustum Transformed(const Matrix3x4&) const;
  4896. // Properties:
  4897. /* readonly */
  4898. Array<Vector3> vertices;
  4899. };
  4900. class Geometry
  4901. {
  4902. // Methods:
  4903. bool HasSubscribedToEvent(Object, const String&);
  4904. bool HasSubscribedToEvent(const String&);
  4905. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4906. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4907. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4908. void SetIndexBuffer(IndexBuffer);
  4909. bool SetVertexBuffer(uint, VertexBuffer);
  4910. // Properties:
  4911. /* readonly */
  4912. String category;
  4913. /* readonly */
  4914. bool empty;
  4915. IndexBuffer indexBuffer;
  4916. /* readonly */
  4917. uint indexCount;
  4918. /* readonly */
  4919. uint indexStart;
  4920. float lodDistance;
  4921. uint numVertexBuffers;
  4922. /* readonly */
  4923. PrimitiveType primitiveType;
  4924. /* readonly */
  4925. int refs;
  4926. /* readonly */
  4927. StringHash type;
  4928. /* readonly */
  4929. String typeName;
  4930. /* readonly */
  4931. Array<VertexBuffer> vertexBuffers;
  4932. /* readonly */
  4933. uint vertexCount;
  4934. /* readonly */
  4935. uint vertexStart;
  4936. /* readonly */
  4937. int weakRefs;
  4938. };
  4939. class Graphics
  4940. {
  4941. // Methods:
  4942. void BeginDumpShaders(const String&);
  4943. void Close();
  4944. void EndDumpShaders();
  4945. bool HasSubscribedToEvent(Object, const String&);
  4946. bool HasSubscribedToEvent(const String&);
  4947. void Maximize();
  4948. void Minimize();
  4949. void PrecacheShaders(File);
  4950. void PrecacheShaders(VectorBuffer&);
  4951. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4952. bool SetMode(int, int);
  4953. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int);
  4954. void SetWindowPosition(int, int);
  4955. bool TakeScreenShot(Image);
  4956. bool ToggleFullscreen();
  4957. // Properties:
  4958. /* readonly */
  4959. String apiName;
  4960. /* readonly */
  4961. bool borderless;
  4962. /* readonly */
  4963. String category;
  4964. /* readonly */
  4965. bool deferredSupport;
  4966. /* readonly */
  4967. IntVector2 desktopResolution;
  4968. /* readonly */
  4969. bool deviceLost;
  4970. bool flushGPU;
  4971. /* readonly */
  4972. bool fullscreen;
  4973. /* readonly */
  4974. bool hardwareShadowSupport;
  4975. /* readonly */
  4976. int height;
  4977. /* readonly */
  4978. bool initialized;
  4979. /* readonly */
  4980. bool instancingSupport;
  4981. /* readonly */
  4982. bool lightPrepassSupport;
  4983. /* readonly */
  4984. int multiSample;
  4985. /* readonly */
  4986. Array<int> multiSampleLevels;
  4987. /* readonly */
  4988. uint numBatches;
  4989. /* readonly */
  4990. uint numPrimitives;
  4991. String orientations;
  4992. /* readonly */
  4993. bool readableDepthSupport;
  4994. /* readonly */
  4995. int refs;
  4996. /* readonly */
  4997. bool resizable;
  4998. /* readonly */
  4999. Array<IntVector2> resolutions;
  5000. bool sRGB;
  5001. /* readonly */
  5002. bool sRGBSupport;
  5003. /* readonly */
  5004. bool sRGBWriteSupport;
  5005. /* readonly */
  5006. bool tripleBuffer;
  5007. /* readonly */
  5008. StringHash type;
  5009. /* readonly */
  5010. String typeName;
  5011. /* readonly */
  5012. bool vsync;
  5013. /* readonly */
  5014. int weakRefs;
  5015. /* readonly */
  5016. int width;
  5017. /* writeonly */
  5018. Image windowIcon;
  5019. IntVector2 windowPosition;
  5020. String windowTitle;
  5021. };
  5022. class HttpRequest
  5023. {
  5024. // Methods:
  5025. Array<uint8> Read(uint);
  5026. bool ReadBool();
  5027. BoundingBox ReadBoundingBox();
  5028. int8 ReadByte();
  5029. Color ReadColor();
  5030. double ReadDouble();
  5031. String ReadFileID();
  5032. float ReadFloat();
  5033. int ReadInt();
  5034. IntRect ReadIntRect();
  5035. IntVector2 ReadIntVector2();
  5036. String ReadLine();
  5037. Matrix3 ReadMatrix3();
  5038. Matrix3x4 ReadMatrix3x4();
  5039. Matrix4 ReadMatrix4();
  5040. uint ReadNetID();
  5041. Quaternion ReadPackedQuaternion();
  5042. Vector3 ReadPackedVector3(float);
  5043. Quaternion ReadQuaternion();
  5044. int16 ReadShort();
  5045. String ReadString();
  5046. StringHash ReadStringHash();
  5047. uint8 ReadUByte();
  5048. uint ReadUInt();
  5049. uint16 ReadUShort();
  5050. uint ReadVLE();
  5051. Variant ReadVariant();
  5052. VariantMap ReadVariantMap();
  5053. Vector2 ReadVector2();
  5054. Vector3 ReadVector3();
  5055. Vector4 ReadVector4();
  5056. VectorBuffer ReadVectorBuffer(uint);
  5057. uint Seek(uint);
  5058. // Properties:
  5059. /* readonly */
  5060. uint availableSize;
  5061. /* readonly */
  5062. uint checksum;
  5063. /* readonly */
  5064. bool eof;
  5065. /* readonly */
  5066. String error;
  5067. /* readonly */
  5068. String name;
  5069. /* readonly */
  5070. bool open;
  5071. /* readonly */
  5072. uint position;
  5073. /* readonly */
  5074. int refs;
  5075. /* readonly */
  5076. uint size;
  5077. /* readonly */
  5078. HttpRequestState state;
  5079. /* readonly */
  5080. String url;
  5081. /* readonly */
  5082. String verb;
  5083. /* readonly */
  5084. int weakRefs;
  5085. };
  5086. class Image
  5087. {
  5088. // Methods:
  5089. void Clear(const Color&);
  5090. void ClearInt(uint);
  5091. bool FlipHorizontal();
  5092. bool FlipVertical();
  5093. Color GetPixel(int, int) const;
  5094. Color GetPixel(int, int, int) const;
  5095. Color GetPixelBilinear(float, float) const;
  5096. uint GetPixelInt(int, int) const;
  5097. uint GetPixelInt(int, int, int) const;
  5098. Color GetPixelTrilinear(float, float, float) const;
  5099. Image GetSubimage(const IntRect&) const;
  5100. bool HasSubscribedToEvent(Object, const String&);
  5101. bool HasSubscribedToEvent(const String&);
  5102. bool Load(File);
  5103. bool Load(VectorBuffer&);
  5104. bool LoadColorLUT(File);
  5105. bool LoadColorLUT(VectorBuffer&);
  5106. bool Resize(int, int);
  5107. bool Save(File) const;
  5108. bool Save(VectorBuffer&) const;
  5109. bool SaveBMP(const String&) const;
  5110. bool SaveJPG(const String&, int) const;
  5111. bool SavePNG(const String&) const;
  5112. bool SaveTGA(const String&) const;
  5113. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5114. void SetPixel(int, int, const Color&);
  5115. void SetPixel(int, int, int, const Color&);
  5116. void SetPixelInt(int, int, int, uint);
  5117. void SetPixelInt(int, int, uint);
  5118. bool SetSize(int, int, int, uint);
  5119. bool SetSize(int, int, uint);
  5120. // Properties:
  5121. /* readonly */
  5122. bool array;
  5123. /* readonly */
  5124. String category;
  5125. /* readonly */
  5126. uint components;
  5127. /* readonly */
  5128. bool compressed;
  5129. /* readonly */
  5130. CompressedFormat compressedFormat;
  5131. /* readonly */
  5132. bool cubemap;
  5133. /* readonly */
  5134. int depth;
  5135. /* readonly */
  5136. int height;
  5137. /* readonly */
  5138. uint memoryUse;
  5139. String name;
  5140. /* readonly */
  5141. uint numCompressedLevels;
  5142. /* readonly */
  5143. int refs;
  5144. /* readonly */
  5145. bool sRGB;
  5146. /* readonly */
  5147. StringHash type;
  5148. /* readonly */
  5149. String typeName;
  5150. /* readonly */
  5151. uint useTimer;
  5152. /* readonly */
  5153. int weakRefs;
  5154. /* readonly */
  5155. int width;
  5156. };
  5157. class IndexBuffer
  5158. {
  5159. // Methods:
  5160. VectorBuffer GetData();
  5161. bool HasSubscribedToEvent(Object, const String&);
  5162. bool HasSubscribedToEvent(const String&);
  5163. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5164. bool SetData(VectorBuffer&);
  5165. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5166. void SetSize(uint, bool, bool = false);
  5167. // Properties:
  5168. /* readonly */
  5169. String category;
  5170. /* readonly */
  5171. bool dynamic;
  5172. /* readonly */
  5173. uint indexCount;
  5174. /* readonly */
  5175. uint indexSize;
  5176. /* readonly */
  5177. int refs;
  5178. bool shadowed;
  5179. /* readonly */
  5180. StringHash type;
  5181. /* readonly */
  5182. String typeName;
  5183. /* readonly */
  5184. int weakRefs;
  5185. };
  5186. class Input
  5187. {
  5188. // Methods:
  5189. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5190. int GetKeyFromName(const String&) const;
  5191. int GetKeyFromScancode(int) const;
  5192. String GetKeyName(int) const;
  5193. int GetScancodeFromKey(int) const;
  5194. int GetScancodeFromName(const String&) const;
  5195. String GetScancodeName(int) const;
  5196. bool HasSubscribedToEvent(Object, const String&);
  5197. bool HasSubscribedToEvent(const String&);
  5198. uint LoadGestures(File);
  5199. uint LoadGestures(VectorBuffer&);
  5200. bool RecordGesture();
  5201. void RemoveAllGestures();
  5202. bool RemoveGesture(uint);
  5203. bool RemoveScreenJoystick(int);
  5204. void ResetMouseGrabbed();
  5205. void ResetMouseMode();
  5206. void ResetMouseVisible();
  5207. bool SaveGesture(File, uint);
  5208. bool SaveGesture(VectorBuffer&, uint);
  5209. bool SaveGestures(File);
  5210. bool SaveGestures(VectorBuffer&);
  5211. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5212. void SetMouseGrabbed(bool, bool = false);
  5213. void SetMouseMode(MouseMode, bool = false);
  5214. void SetMouseVisible(bool, bool = false);
  5215. // Properties:
  5216. /* readonly */
  5217. String category;
  5218. /* readonly */
  5219. bool focus;
  5220. /* readonly */
  5221. Array<JoystickState> joysticks;
  5222. /* readonly */
  5223. Array<JoystickState> joysticksByIndex;
  5224. /* readonly */
  5225. Array<JoystickState> joysticksByName;
  5226. /* readonly */
  5227. Array<bool> keyDown;
  5228. /* readonly */
  5229. Array<bool> keyPress;
  5230. /* readonly */
  5231. bool minimized;
  5232. /* readonly */
  5233. Array<bool> mouseButtonDown;
  5234. /* readonly */
  5235. Array<bool> mouseButtonPress;
  5236. bool mouseGrabbed;
  5237. /* readonly */
  5238. bool mouseLocked;
  5239. MouseMode mouseMode;
  5240. /* readonly */
  5241. IntVector2 mouseMove;
  5242. /* readonly */
  5243. int mouseMoveWheel;
  5244. /* readonly */
  5245. int mouseMoveX;
  5246. /* readonly */
  5247. int mouseMoveY;
  5248. /* readonly */
  5249. IntVector2 mousePosition;
  5250. bool mouseVisible;
  5251. /* readonly */
  5252. uint numJoysticks;
  5253. /* readonly */
  5254. uint numTouches;
  5255. /* readonly */
  5256. Array<bool> qualifierDown;
  5257. /* readonly */
  5258. Array<bool> qualifierPress;
  5259. /* readonly */
  5260. int qualifiers;
  5261. /* readonly */
  5262. int refs;
  5263. /* readonly */
  5264. Array<bool> scancodeDown;
  5265. /* readonly */
  5266. Array<bool> scancodePress;
  5267. Array<bool> screenJoystickVisible;
  5268. /* readonly */
  5269. bool screenKeyboardSupport;
  5270. bool screenKeyboardVisible;
  5271. bool toggleFullscreen;
  5272. bool touchEmulation;
  5273. /* readonly */
  5274. Array<TouchState> touches;
  5275. /* readonly */
  5276. StringHash type;
  5277. /* readonly */
  5278. String typeName;
  5279. /* readonly */
  5280. int weakRefs;
  5281. };
  5282. class IntRect
  5283. {
  5284. // Methods:
  5285. Intersection IsInside(const IntVector2&) const;
  5286. // Properties:
  5287. int bottom;
  5288. /* readonly */
  5289. Array<int> data;
  5290. /* readonly */
  5291. int height;
  5292. int left;
  5293. int right;
  5294. /* readonly */
  5295. IntVector2 size;
  5296. int top;
  5297. /* readonly */
  5298. int width;
  5299. };
  5300. class IntVector2
  5301. {
  5302. // Methods:
  5303. String ToString() const;
  5304. // Properties:
  5305. /* readonly */
  5306. Array<int> data;
  5307. int x;
  5308. int y;
  5309. };
  5310. class JSONFile
  5311. {
  5312. // Methods:
  5313. bool FromString(const String&);
  5314. JSONValue& GetRoot();
  5315. bool HasSubscribedToEvent(Object, const String&);
  5316. bool HasSubscribedToEvent(const String&);
  5317. bool Load(File);
  5318. bool Load(VectorBuffer&);
  5319. bool Save(File) const;
  5320. bool Save(File, const String&) const;
  5321. bool Save(VectorBuffer&) const;
  5322. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5323. // Properties:
  5324. /* readonly */
  5325. String category;
  5326. /* readonly */
  5327. uint memoryUse;
  5328. String name;
  5329. /* readonly */
  5330. int refs;
  5331. /* readonly */
  5332. JSONValue root;
  5333. /* readonly */
  5334. StringHash type;
  5335. /* readonly */
  5336. String typeName;
  5337. /* readonly */
  5338. uint useTimer;
  5339. /* readonly */
  5340. int weakRefs;
  5341. };
  5342. class JSONValue
  5343. {
  5344. // Methods:
  5345. void Clear();
  5346. bool Contains(const String&) const;
  5347. void Erase(const String&);
  5348. void Erase(uint, uint = 1);
  5349. bool GetBool() const;
  5350. double GetDouble() const;
  5351. float GetFloat() const;
  5352. int GetInt() const;
  5353. uint GetUInt() const;
  5354. void Insert(uint, const JSONValue&);
  5355. const JSONValue& Get(const String&) const;
  5356. void Pop();
  5357. void Push(const JSONValue&);
  5358. void Resize(uint);
  5359. void Set(const String&, const JSONValue&);
  5360. const String& GetString() const;
  5361. // Properties:
  5362. /* readonly */
  5363. bool isArray;
  5364. /* readonly */
  5365. bool isBool;
  5366. /* readonly */
  5367. bool isNull;
  5368. /* readonly */
  5369. bool isNumber;
  5370. /* readonly */
  5371. bool isObject;
  5372. /* readonly */
  5373. bool isString;
  5374. /* readonly */
  5375. uint size;
  5376. /* readonly */
  5377. JSONValueType valueType;
  5378. };
  5379. class JoystickState
  5380. {
  5381. // Properties:
  5382. /* readonly */
  5383. Array<float> axisPosition;
  5384. /* readonly */
  5385. Array<bool> buttonDown;
  5386. /* readonly */
  5387. Array<bool> buttonPress;
  5388. /* readonly */
  5389. bool controller;
  5390. /* readonly */
  5391. Array<int> hatPosition;
  5392. int joystickID;
  5393. String name;
  5394. /* readonly */
  5395. uint numAxes;
  5396. /* readonly */
  5397. uint numButtons;
  5398. /* readonly */
  5399. uint numHats;
  5400. };
  5401. class Light
  5402. {
  5403. // Methods:
  5404. void ApplyAttributes();
  5405. void DrawDebugGeometry(DebugRenderer, bool);
  5406. Variant GetAttribute(const String&) const;
  5407. ValueAnimation GetAttributeAnimation(const String&) const;
  5408. float GetAttributeAnimationSpeed(const String&) const;
  5409. float GetAttributeAnimationTime(const String&) const;
  5410. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5411. Variant GetAttributeDefault(const String&) const;
  5412. bool GetInterceptNetworkUpdate(const String&) const;
  5413. bool HasSubscribedToEvent(Object, const String&);
  5414. bool HasSubscribedToEvent(const String&);
  5415. bool IsInView(Camera) const;
  5416. bool Load(File, bool = false);
  5417. bool Load(VectorBuffer&, bool = false);
  5418. bool LoadJSON(const JSONValue&, bool = false);
  5419. bool LoadXML(const XMLElement&, bool = false);
  5420. void MarkNetworkUpdate() const;
  5421. void Remove();
  5422. void RemoveAttributeAnimation(const String&);
  5423. void RemoveInstanceDefault();
  5424. void RemoveObjectAnimation();
  5425. void ResetToDefault();
  5426. bool Save(File) const;
  5427. bool Save(VectorBuffer&) const;
  5428. bool SaveJSON(JSONValue&) const;
  5429. bool SaveXML(XMLElement&) const;
  5430. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5431. void SetAnimationTime(float);
  5432. bool SetAttribute(const String&, const Variant&);
  5433. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5434. void SetAttributeAnimationSpeed(const String&, float);
  5435. void SetAttributeAnimationTime(const String&, float);
  5436. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5437. void SetInterceptNetworkUpdate(const String&, bool);
  5438. // Properties:
  5439. bool animationEnabled;
  5440. float aspectRatio;
  5441. /* readonly */
  5442. Array<Variant> attributeDefaults;
  5443. /* readonly */
  5444. Array<AttributeInfo> attributeInfos;
  5445. Array<Variant> attributes;
  5446. /* readonly */
  5447. BoundingBox boundingBox;
  5448. float brightness;
  5449. bool castShadows;
  5450. /* readonly */
  5451. String category;
  5452. Color color;
  5453. float drawDistance;
  5454. /* readonly */
  5455. Color effectiveColor;
  5456. /* readonly */
  5457. float effectiveSpecularIntensity;
  5458. bool enabled;
  5459. /* readonly */
  5460. bool enabledEffective;
  5461. float fadeDistance;
  5462. float fov;
  5463. /* readonly */
  5464. Frustum frustum;
  5465. /* readonly */
  5466. uint id;
  5467. /* readonly */
  5468. bool inView;
  5469. uint lightMask;
  5470. LightType lightType;
  5471. float lodBias;
  5472. uint maxLights;
  5473. /* readonly */
  5474. bool negative;
  5475. /* readonly */
  5476. Node node;
  5477. /* readonly */
  5478. uint numAttributes;
  5479. /* readonly */
  5480. int numShadowSplits;
  5481. ObjectAnimation objectAnimation;
  5482. bool occludee;
  5483. bool occluder;
  5484. bool perVertex;
  5485. Texture rampTexture;
  5486. float range;
  5487. /* readonly */
  5488. int refs;
  5489. BiasParameters shadowBias;
  5490. CascadeParameters shadowCascade;
  5491. float shadowDistance;
  5492. float shadowFadeDistance;
  5493. FocusParameters shadowFocus;
  5494. float shadowIntensity;
  5495. uint shadowMask;
  5496. float shadowNearFarRatio;
  5497. float shadowResolution;
  5498. Texture shapeTexture;
  5499. float specularIntensity;
  5500. bool temporary;
  5501. /* readonly */
  5502. StringHash type;
  5503. /* readonly */
  5504. String typeName;
  5505. uint viewMask;
  5506. /* readonly */
  5507. int weakRefs;
  5508. /* readonly */
  5509. BoundingBox worldBoundingBox;
  5510. uint zoneMask;
  5511. };
  5512. class LineEdit
  5513. {
  5514. // Methods:
  5515. void AddChild(UIElement);
  5516. void AddTag(const String&);
  5517. void AddTags(const String&, int8 = ';');
  5518. void ApplyAttributes();
  5519. void BringToFront();
  5520. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5521. void DisableLayoutUpdate();
  5522. IntVector2 ElementToScreen(const IntVector2&);
  5523. void EnableLayoutUpdate();
  5524. uint FindChild(UIElement) const;
  5525. Variant GetAttribute(const String&) const;
  5526. ValueAnimation GetAttributeAnimation(const String&) const;
  5527. float GetAttributeAnimationSpeed(const String&) const;
  5528. float GetAttributeAnimationTime(const String&) const;
  5529. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5530. Variant GetAttributeDefault(const String&) const;
  5531. UIElement GetChild(const String&, bool = false) const;
  5532. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5533. Array<UIElement> GetChildren(bool = false) const;
  5534. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5535. UIElement GetElementEventSender() const;
  5536. bool GetInterceptNetworkUpdate(const String&) const;
  5537. uint GetNumChildren(bool) const;
  5538. bool HasSubscribedToEvent(Object, const String&);
  5539. bool HasSubscribedToEvent(const String&);
  5540. bool HasTag(const String&) const;
  5541. void InsertChild(uint, UIElement);
  5542. bool IsInside(IntVector2, bool);
  5543. bool IsInsideCombined(IntVector2, bool);
  5544. bool Load(File, bool = false);
  5545. bool Load(VectorBuffer&, bool = false);
  5546. bool LoadChildXML(XMLFile, XMLFile = null);
  5547. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5548. bool LoadJSON(const JSONValue&, bool = false);
  5549. bool LoadXML(File);
  5550. bool LoadXML(VectorBuffer&);
  5551. bool LoadXML(XMLFile, XMLFile);
  5552. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5553. bool LoadXML(const XMLElement&, bool = false);
  5554. void MarkNetworkUpdate() const;
  5555. void Remove();
  5556. void RemoveAllChildren();
  5557. void RemoveAllTags();
  5558. void RemoveAttributeAnimation(const String&);
  5559. void RemoveChild(UIElement, uint = 0);
  5560. void RemoveChild(uint);
  5561. void RemoveInstanceDefault();
  5562. void RemoveObjectAnimation();
  5563. bool RemoveTag(const String&);
  5564. void ResetDeepEnabled();
  5565. void ResetToDefault();
  5566. bool Save(File) const;
  5567. bool Save(VectorBuffer&) const;
  5568. bool SaveJSON(JSONValue&) const;
  5569. bool SaveXML(File, const String& = "\t");
  5570. bool SaveXML(VectorBuffer&, const String& = "\t");
  5571. bool SaveXML(XMLElement&) const;
  5572. IntVector2 ScreenToElement(const IntVector2&);
  5573. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5574. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5575. void SetAnimationTime(float);
  5576. bool SetAttribute(const String&, const Variant&);
  5577. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5578. void SetAttributeAnimationSpeed(const String&, float);
  5579. void SetAttributeAnimationTime(const String&, float);
  5580. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5581. void SetDeepEnabled(bool);
  5582. void SetEnabledRecursive(bool);
  5583. void SetFixedHeight(int);
  5584. void SetFixedSize(int, int);
  5585. void SetFixedWidth(int);
  5586. void SetFullImageRect();
  5587. void SetHoverOffset(int, int);
  5588. void SetInterceptNetworkUpdate(const String&, bool);
  5589. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5590. void SetMaxSize(int, int);
  5591. void SetMinSize(int, int);
  5592. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5593. void SetPosition(int, int);
  5594. void SetSize(int, int);
  5595. bool SetStyle(const String&, XMLFile = null);
  5596. bool SetStyle(const XMLElement&);
  5597. bool SetStyleAuto(XMLFile = null);
  5598. void UpdateLayout();
  5599. const Variant& GetVar(const StringHash&);
  5600. // Properties:
  5601. bool animationEnabled;
  5602. /* readonly */
  5603. Array<Variant> attributeDefaults;
  5604. /* readonly */
  5605. Array<AttributeInfo> attributeInfos;
  5606. Array<Variant> attributes;
  5607. BlendMode blendMode;
  5608. IntRect border;
  5609. bool bringToBack;
  5610. bool bringToFront;
  5611. /* readonly */
  5612. String category;
  5613. /* readonly */
  5614. IntVector2 childOffset;
  5615. /* readonly */
  5616. Array<UIElement> children;
  5617. IntRect clipBorder;
  5618. bool clipChildren;
  5619. /* writeonly */
  5620. Color color;
  5621. /* readonly */
  5622. bool colorGradient;
  5623. Array<Color> colors;
  5624. /* readonly */
  5625. IntRect combinedScreenRect;
  5626. /* readonly */
  5627. BorderImage cursor;
  5628. float cursorBlinkRate;
  5629. bool cursorMovable;
  5630. uint cursorPosition;
  5631. XMLFile defaultStyle;
  5632. /* readonly */
  5633. float derivedOpacity;
  5634. /* readonly */
  5635. uint dragButtonCombo;
  5636. /* readonly */
  5637. int dragButtonCount;
  5638. uint dragDropMode;
  5639. uint echoCharacter;
  5640. bool editable;
  5641. bool elementEventSender;
  5642. bool enabled;
  5643. /* readonly */
  5644. bool enabledSelf;
  5645. /* readonly */
  5646. bool fixedHeight;
  5647. /* readonly */
  5648. bool fixedSize;
  5649. /* readonly */
  5650. bool fixedWidth;
  5651. bool focus;
  5652. FocusMode focusMode;
  5653. int height;
  5654. HorizontalAlignment horizontalAlignment;
  5655. IntVector2 hoverOffset;
  5656. /* readonly */
  5657. bool hovering;
  5658. IntRect imageBorder;
  5659. IntRect imageRect;
  5660. int indent;
  5661. int indentSpacing;
  5662. /* readonly */
  5663. int indentWidth;
  5664. bool internal;
  5665. IntRect layoutBorder;
  5666. Vector2 layoutFlexScale;
  5667. LayoutMode layoutMode;
  5668. int layoutSpacing;
  5669. int maxHeight;
  5670. uint maxLength;
  5671. IntVector2 maxSize;
  5672. int maxWidth;
  5673. int minHeight;
  5674. IntVector2 minSize;
  5675. int minWidth;
  5676. String name;
  5677. /* readonly */
  5678. uint numAllChildren;
  5679. /* readonly */
  5680. uint numAttributes;
  5681. /* readonly */
  5682. uint numChildren;
  5683. ObjectAnimation objectAnimation;
  5684. float opacity;
  5685. UIElement parent;
  5686. IntVector2 position;
  5687. int priority;
  5688. /* readonly */
  5689. int refs;
  5690. /* readonly */
  5691. UIElement root;
  5692. /* readonly */
  5693. IntVector2 screenPosition;
  5694. bool selected;
  5695. IntVector2 size;
  5696. bool sortChildren;
  5697. String style;
  5698. /* readonly */
  5699. Array<String> tags;
  5700. bool temporary;
  5701. String text;
  5702. bool textCopyable;
  5703. /* readonly */
  5704. Text textElement;
  5705. bool textSelectable;
  5706. Texture texture;
  5707. bool tiled;
  5708. TraversalMode traversalMode;
  5709. /* readonly */
  5710. StringHash type;
  5711. /* readonly */
  5712. String typeName;
  5713. bool useDerivedOpacity;
  5714. /* readonly */
  5715. VariantMap vars;
  5716. VerticalAlignment verticalAlignment;
  5717. bool visible;
  5718. /* readonly */
  5719. bool visibleEffective;
  5720. /* readonly */
  5721. int weakRefs;
  5722. int width;
  5723. };
  5724. class ListView
  5725. {
  5726. // Methods:
  5727. void AddChild(UIElement);
  5728. void AddItem(UIElement);
  5729. void AddSelection(uint);
  5730. void AddTag(const String&);
  5731. void AddTags(const String&, int8 = ';');
  5732. void ApplyAttributes();
  5733. void BringToFront();
  5734. void ChangeSelection(int, bool);
  5735. void ClearSelection();
  5736. void CopySelectedItemsToClipboard();
  5737. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5738. void DisableLayoutUpdate();
  5739. IntVector2 ElementToScreen(const IntVector2&);
  5740. void EnableLayoutUpdate();
  5741. void Expand(uint, bool, bool = false);
  5742. uint FindChild(UIElement) const;
  5743. uint FindItem(UIElement);
  5744. Variant GetAttribute(const String&) const;
  5745. ValueAnimation GetAttributeAnimation(const String&) const;
  5746. float GetAttributeAnimationSpeed(const String&) const;
  5747. float GetAttributeAnimationTime(const String&) const;
  5748. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5749. Variant GetAttributeDefault(const String&) const;
  5750. UIElement GetChild(const String&, bool = false) const;
  5751. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5752. Array<UIElement> GetChildren(bool = false) const;
  5753. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5754. UIElement GetElementEventSender() const;
  5755. bool GetInterceptNetworkUpdate(const String&) const;
  5756. Array<UIElement> GetItems() const;
  5757. uint GetNumChildren(bool) const;
  5758. bool HasSubscribedToEvent(Object, const String&);
  5759. bool HasSubscribedToEvent(const String&);
  5760. bool HasTag(const String&) const;
  5761. void InsertChild(uint, UIElement);
  5762. void InsertItem(uint, UIElement, UIElement = null);
  5763. bool IsExpanded(uint) const;
  5764. bool IsInside(IntVector2, bool);
  5765. bool IsInsideCombined(IntVector2, bool);
  5766. bool IsSelected(uint) const;
  5767. bool Load(File, bool = false);
  5768. bool Load(VectorBuffer&, bool = false);
  5769. bool LoadChildXML(XMLFile, XMLFile = null);
  5770. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5771. bool LoadJSON(const JSONValue&, bool = false);
  5772. bool LoadXML(File);
  5773. bool LoadXML(VectorBuffer&);
  5774. bool LoadXML(XMLFile, XMLFile);
  5775. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5776. bool LoadXML(const XMLElement&, bool = false);
  5777. void MarkNetworkUpdate() const;
  5778. void Remove();
  5779. void RemoveAllChildren();
  5780. void RemoveAllItems();
  5781. void RemoveAllTags();
  5782. void RemoveAttributeAnimation(const String&);
  5783. void RemoveChild(UIElement, uint = 0);
  5784. void RemoveChild(uint);
  5785. void RemoveInstanceDefault();
  5786. void RemoveItem(UIElement, uint = 0);
  5787. void RemoveItem(uint);
  5788. void RemoveObjectAnimation();
  5789. void RemoveSelection(uint);
  5790. bool RemoveTag(const String&);
  5791. void ResetDeepEnabled();
  5792. void ResetToDefault();
  5793. bool Save(File) const;
  5794. bool Save(VectorBuffer&) const;
  5795. bool SaveJSON(JSONValue&) const;
  5796. bool SaveXML(File, const String& = "\t");
  5797. bool SaveXML(VectorBuffer&, const String& = "\t");
  5798. bool SaveXML(XMLElement&) const;
  5799. IntVector2 ScreenToElement(const IntVector2&);
  5800. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5801. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5802. void SetAnimationTime(float);
  5803. bool SetAttribute(const String&, const Variant&);
  5804. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5805. void SetAttributeAnimationSpeed(const String&, float);
  5806. void SetAttributeAnimationTime(const String&, float);
  5807. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5808. void SetDeepEnabled(bool);
  5809. void SetEnabledRecursive(bool);
  5810. void SetFixedHeight(int);
  5811. void SetFixedSize(int, int);
  5812. void SetFixedWidth(int);
  5813. void SetInterceptNetworkUpdate(const String&, bool);
  5814. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5815. void SetMaxSize(int, int);
  5816. void SetMinSize(int, int);
  5817. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5818. void SetPosition(int, int);
  5819. void SetScrollBarsVisible(bool, bool);
  5820. void SetSelections(Array<uint>);
  5821. void SetSize(int, int);
  5822. bool SetStyle(const String&, XMLFile = null);
  5823. bool SetStyle(const XMLElement&);
  5824. bool SetStyleAuto(XMLFile = null);
  5825. void SetViewPosition(int, int);
  5826. void ToggleExpand(uint, bool = false);
  5827. void ToggleSelection(uint);
  5828. void UpdateLayout();
  5829. const Variant& GetVar(const StringHash&);
  5830. // Properties:
  5831. bool animationEnabled;
  5832. /* readonly */
  5833. Array<Variant> attributeDefaults;
  5834. /* readonly */
  5835. Array<AttributeInfo> attributeInfos;
  5836. Array<Variant> attributes;
  5837. bool autoDisableChildren;
  5838. float autoDisableThreshold;
  5839. int baseIndent;
  5840. bool bringToBack;
  5841. bool bringToFront;
  5842. /* readonly */
  5843. String category;
  5844. /* readonly */
  5845. IntVector2 childOffset;
  5846. /* readonly */
  5847. Array<UIElement> children;
  5848. bool clearSelectionOnDefocus;
  5849. IntRect clipBorder;
  5850. bool clipChildren;
  5851. /* writeonly */
  5852. Color color;
  5853. /* readonly */
  5854. bool colorGradient;
  5855. Array<Color> colors;
  5856. /* readonly */
  5857. IntRect combinedScreenRect;
  5858. /* readonly */
  5859. UIElement contentElement;
  5860. XMLFile defaultStyle;
  5861. /* readonly */
  5862. float derivedOpacity;
  5863. /* readonly */
  5864. uint dragButtonCombo;
  5865. /* readonly */
  5866. int dragButtonCount;
  5867. uint dragDropMode;
  5868. bool editable;
  5869. bool elementEventSender;
  5870. bool enabled;
  5871. /* readonly */
  5872. bool enabledSelf;
  5873. /* readonly */
  5874. bool fixedHeight;
  5875. /* readonly */
  5876. bool fixedSize;
  5877. /* readonly */
  5878. bool fixedWidth;
  5879. bool focus;
  5880. FocusMode focusMode;
  5881. int height;
  5882. bool hierarchyMode;
  5883. HighlightMode highlightMode;
  5884. HorizontalAlignment horizontalAlignment;
  5885. /* readonly */
  5886. ScrollBar horizontalScrollBar;
  5887. /* readonly */
  5888. bool hovering;
  5889. int indent;
  5890. int indentSpacing;
  5891. /* readonly */
  5892. int indentWidth;
  5893. bool internal;
  5894. /* readonly */
  5895. Array<UIElement> items;
  5896. IntRect layoutBorder;
  5897. Vector2 layoutFlexScale;
  5898. LayoutMode layoutMode;
  5899. int layoutSpacing;
  5900. int maxHeight;
  5901. IntVector2 maxSize;
  5902. int maxWidth;
  5903. int minHeight;
  5904. IntVector2 minSize;
  5905. int minWidth;
  5906. bool multiselect;
  5907. String name;
  5908. /* readonly */
  5909. uint numAllChildren;
  5910. /* readonly */
  5911. uint numAttributes;
  5912. /* readonly */
  5913. uint numChildren;
  5914. /* readonly */
  5915. uint numItems;
  5916. ObjectAnimation objectAnimation;
  5917. float opacity;
  5918. float pageStep;
  5919. UIElement parent;
  5920. IntVector2 position;
  5921. int priority;
  5922. /* readonly */
  5923. int refs;
  5924. /* readonly */
  5925. UIElement root;
  5926. /* readonly */
  5927. IntVector2 screenPosition;
  5928. bool scrollBarsAutoVisible;
  5929. float scrollDeceleration;
  5930. /* readonly */
  5931. BorderImage scrollPanel;
  5932. float scrollSnapEpsilon;
  5933. float scrollStep;
  5934. bool selectOnClickEnd;
  5935. bool selected;
  5936. /* readonly */
  5937. UIElement selectedItem;
  5938. /* readonly */
  5939. Array<UIElement> selectedItems;
  5940. uint selection;
  5941. /* readonly */
  5942. Array<uint> selections;
  5943. IntVector2 size;
  5944. bool sortChildren;
  5945. String style;
  5946. /* readonly */
  5947. Array<String> tags;
  5948. bool temporary;
  5949. TraversalMode traversalMode;
  5950. /* readonly */
  5951. StringHash type;
  5952. /* readonly */
  5953. String typeName;
  5954. bool useDerivedOpacity;
  5955. /* readonly */
  5956. VariantMap vars;
  5957. VerticalAlignment verticalAlignment;
  5958. /* readonly */
  5959. ScrollBar verticalScrollBar;
  5960. IntVector2 viewPosition;
  5961. bool visible;
  5962. /* readonly */
  5963. bool visibleEffective;
  5964. /* readonly */
  5965. int weakRefs;
  5966. int width;
  5967. };
  5968. class Localization
  5969. {
  5970. // Methods:
  5971. String Get(const String&);
  5972. String GetLanguage(int);
  5973. int GetLanguageIndex(const String&);
  5974. bool HasSubscribedToEvent(Object, const String&);
  5975. bool HasSubscribedToEvent(const String&);
  5976. void LoadJSON(const JSONValue&);
  5977. void LoadJSONFile(const String&);
  5978. void Reset();
  5979. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5980. void SetLanguage(const String&);
  5981. void SetLanguage(int);
  5982. // Properties:
  5983. /* readonly */
  5984. String category;
  5985. /* readonly */
  5986. String language;
  5987. /* readonly */
  5988. int languageIndex;
  5989. /* readonly */
  5990. int numLanguages;
  5991. /* readonly */
  5992. int refs;
  5993. /* readonly */
  5994. StringHash type;
  5995. /* readonly */
  5996. String typeName;
  5997. /* readonly */
  5998. int weakRefs;
  5999. };
  6000. class Log
  6001. {
  6002. // Methods:
  6003. void Close();
  6004. void Debug(const String&);
  6005. void Error(const String&);
  6006. bool HasSubscribedToEvent(Object, const String&);
  6007. bool HasSubscribedToEvent(const String&);
  6008. void Info(const String&);
  6009. void Open(const String&);
  6010. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6011. void Warning(const String&);
  6012. void Write(const String&, bool = false);
  6013. // Properties:
  6014. /* readonly */
  6015. String category;
  6016. /* readonly */
  6017. String lastMessage;
  6018. int level;
  6019. bool quiet;
  6020. /* readonly */
  6021. int refs;
  6022. bool timeStamp;
  6023. /* readonly */
  6024. StringHash type;
  6025. /* readonly */
  6026. String typeName;
  6027. /* readonly */
  6028. int weakRefs;
  6029. };
  6030. class Material
  6031. {
  6032. // Methods:
  6033. Material Clone(const String& = String ( )) const;
  6034. Pass GetPass(uint, const String&);
  6035. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6036. float GetShaderParameterAnimationSpeed(const String&) const;
  6037. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6038. bool HasSubscribedToEvent(Object, const String&);
  6039. bool HasSubscribedToEvent(const String&);
  6040. bool Load(File);
  6041. bool Load(VectorBuffer&);
  6042. bool Load(const JSONValue&);
  6043. bool Load(const XMLElement&);
  6044. void RemoveShaderParameter(const String&);
  6045. bool Save(File) const;
  6046. bool Save(JSONValue&) const;
  6047. bool Save(VectorBuffer&) const;
  6048. bool Save(XMLElement&) const;
  6049. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6050. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6051. void SetShaderParameterAnimationSpeed(const String&, float);
  6052. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6053. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6054. void SetUVTransform(const Vector2&, float, const Vector2&);
  6055. void SetUVTransform(const Vector2&, float, float);
  6056. void SortTechniques();
  6057. // Properties:
  6058. /* readonly */
  6059. String category;
  6060. CullMode cullMode;
  6061. BiasParameters depthBias;
  6062. FillMode fillMode;
  6063. /* readonly */
  6064. uint memoryUse;
  6065. String name;
  6066. uint numTechniques;
  6067. /* readonly */
  6068. bool occlusion;
  6069. /* readonly */
  6070. int refs;
  6071. uint8 renderOrder;
  6072. Scene scene;
  6073. /* readonly */
  6074. Array<String> shaderParameterNames;
  6075. Array<Variant> shaderParameters;
  6076. CullMode shadowCullMode;
  6077. /* readonly */
  6078. Array<TechniqueEntry> techniqueEntries;
  6079. /* readonly */
  6080. Array<Technique> techniques;
  6081. Array<Texture> textures;
  6082. /* readonly */
  6083. StringHash type;
  6084. /* readonly */
  6085. String typeName;
  6086. /* readonly */
  6087. uint useTimer;
  6088. /* readonly */
  6089. int weakRefs;
  6090. };
  6091. class Matrix2
  6092. {
  6093. // Methods:
  6094. bool Equals(const Matrix2&) const;
  6095. Matrix2 Inverse() const;
  6096. Vector2 Scale() const;
  6097. Matrix2 Scaled(const Vector2&) const;
  6098. void SetScale(const Vector2&);
  6099. void SetScale(float);
  6100. String ToString() const;
  6101. Matrix2 Transpose() const;
  6102. // Properties:
  6103. float m00;
  6104. float m01;
  6105. float m10;
  6106. float m11;
  6107. };
  6108. class Matrix3
  6109. {
  6110. // Methods:
  6111. bool Equals(const Matrix3&) const;
  6112. Matrix3 Inverse() const;
  6113. Vector3 Scale() const;
  6114. Matrix3 Scaled(const Vector3&) const;
  6115. void SetScale(const Vector3&);
  6116. void SetScale(float);
  6117. String ToString() const;
  6118. Matrix3 Transpose() const;
  6119. // Properties:
  6120. float m00;
  6121. float m01;
  6122. float m02;
  6123. float m10;
  6124. float m11;
  6125. float m12;
  6126. float m20;
  6127. float m21;
  6128. float m22;
  6129. };
  6130. class Matrix3x4
  6131. {
  6132. // Methods:
  6133. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6134. bool Equals(const Matrix3x4&) const;
  6135. Matrix3x4 Inverse() const;
  6136. Quaternion Rotation() const;
  6137. Matrix3 RotationMatrix() const;
  6138. Vector3 Scale() const;
  6139. void SetRotation(const Matrix3&);
  6140. void SetScale(const Vector3&);
  6141. void SetScale(float);
  6142. void SetTranslation(const Vector3&);
  6143. Matrix3 ToMatrix3() const;
  6144. Matrix4 ToMatrix4() const;
  6145. String ToString() const;
  6146. Vector3 Translation() const;
  6147. // Properties:
  6148. float m00;
  6149. float m01;
  6150. float m02;
  6151. float m03;
  6152. float m10;
  6153. float m11;
  6154. float m12;
  6155. float m13;
  6156. float m20;
  6157. float m21;
  6158. float m22;
  6159. float m23;
  6160. };
  6161. class Matrix4
  6162. {
  6163. // Methods:
  6164. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6165. bool Equals(const Matrix4&) const;
  6166. Matrix4 Inverse() const;
  6167. Quaternion Rotation() const;
  6168. Matrix3 RotationMatrix() const;
  6169. Vector3 Scale() const;
  6170. void SetRotation(const Matrix3&);
  6171. void SetScale(const Vector3&);
  6172. void SetScale(float);
  6173. void SetTranslation(const Vector3&);
  6174. Matrix3 ToMatrix3() const;
  6175. String ToString() const;
  6176. Vector3 Translation() const;
  6177. Matrix4 Transpose() const;
  6178. // Properties:
  6179. float m00;
  6180. float m01;
  6181. float m02;
  6182. float m03;
  6183. float m10;
  6184. float m11;
  6185. float m12;
  6186. float m13;
  6187. float m20;
  6188. float m21;
  6189. float m22;
  6190. float m23;
  6191. float m30;
  6192. float m31;
  6193. float m32;
  6194. float m33;
  6195. };
  6196. class Menu
  6197. {
  6198. // Methods:
  6199. void AddChild(UIElement);
  6200. void AddTag(const String&);
  6201. void AddTags(const String&, int8 = ';');
  6202. void ApplyAttributes();
  6203. void BringToFront();
  6204. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6205. void DisableLayoutUpdate();
  6206. IntVector2 ElementToScreen(const IntVector2&);
  6207. void EnableLayoutUpdate();
  6208. uint FindChild(UIElement) const;
  6209. Variant GetAttribute(const String&) const;
  6210. ValueAnimation GetAttributeAnimation(const String&) const;
  6211. float GetAttributeAnimationSpeed(const String&) const;
  6212. float GetAttributeAnimationTime(const String&) const;
  6213. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6214. Variant GetAttributeDefault(const String&) const;
  6215. UIElement GetChild(const String&, bool = false) const;
  6216. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6217. Array<UIElement> GetChildren(bool = false) const;
  6218. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6219. UIElement GetElementEventSender() const;
  6220. bool GetInterceptNetworkUpdate(const String&) const;
  6221. uint GetNumChildren(bool) const;
  6222. bool HasSubscribedToEvent(Object, const String&);
  6223. bool HasSubscribedToEvent(const String&);
  6224. bool HasTag(const String&) const;
  6225. void InsertChild(uint, UIElement);
  6226. bool IsInside(IntVector2, bool);
  6227. bool IsInsideCombined(IntVector2, bool);
  6228. bool Load(File, bool = false);
  6229. bool Load(VectorBuffer&, bool = false);
  6230. bool LoadChildXML(XMLFile, XMLFile = null);
  6231. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6232. bool LoadJSON(const JSONValue&, bool = false);
  6233. bool LoadXML(File);
  6234. bool LoadXML(VectorBuffer&);
  6235. bool LoadXML(XMLFile, XMLFile);
  6236. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6237. bool LoadXML(const XMLElement&, bool = false);
  6238. void MarkNetworkUpdate() const;
  6239. void Remove();
  6240. void RemoveAllChildren();
  6241. void RemoveAllTags();
  6242. void RemoveAttributeAnimation(const String&);
  6243. void RemoveChild(UIElement, uint = 0);
  6244. void RemoveChild(uint);
  6245. void RemoveInstanceDefault();
  6246. void RemoveObjectAnimation();
  6247. bool RemoveTag(const String&);
  6248. void ResetDeepEnabled();
  6249. void ResetToDefault();
  6250. bool Save(File) const;
  6251. bool Save(VectorBuffer&) const;
  6252. bool SaveJSON(JSONValue&) const;
  6253. bool SaveXML(File, const String& = "\t");
  6254. bool SaveXML(VectorBuffer&, const String& = "\t");
  6255. bool SaveXML(XMLElement&) const;
  6256. IntVector2 ScreenToElement(const IntVector2&);
  6257. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6258. void SetAccelerator(int, int);
  6259. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6260. void SetAnimationTime(float);
  6261. bool SetAttribute(const String&, const Variant&);
  6262. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6263. void SetAttributeAnimationSpeed(const String&, float);
  6264. void SetAttributeAnimationTime(const String&, float);
  6265. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6266. void SetDeepEnabled(bool);
  6267. void SetEnabledRecursive(bool);
  6268. void SetFixedHeight(int);
  6269. void SetFixedSize(int, int);
  6270. void SetFixedWidth(int);
  6271. void SetFullImageRect();
  6272. void SetHoverOffset(int, int);
  6273. void SetInterceptNetworkUpdate(const String&, bool);
  6274. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6275. void SetMaxSize(int, int);
  6276. void SetMinSize(int, int);
  6277. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6278. void SetPopupOffset(int, int);
  6279. void SetPosition(int, int);
  6280. void SetPressedChildOffset(int, int);
  6281. void SetPressedOffset(int, int);
  6282. void SetRepeat(float, float);
  6283. void SetSize(int, int);
  6284. bool SetStyle(const String&, XMLFile = null);
  6285. bool SetStyle(const XMLElement&);
  6286. bool SetStyleAuto(XMLFile = null);
  6287. void UpdateLayout();
  6288. const Variant& GetVar(const StringHash&);
  6289. // Properties:
  6290. /* readonly */
  6291. int acceleratorKey;
  6292. /* readonly */
  6293. int acceleratorQualifiers;
  6294. bool animationEnabled;
  6295. /* readonly */
  6296. Array<Variant> attributeDefaults;
  6297. /* readonly */
  6298. Array<AttributeInfo> attributeInfos;
  6299. Array<Variant> attributes;
  6300. BlendMode blendMode;
  6301. IntRect border;
  6302. bool bringToBack;
  6303. bool bringToFront;
  6304. /* readonly */
  6305. String category;
  6306. /* readonly */
  6307. IntVector2 childOffset;
  6308. /* readonly */
  6309. Array<UIElement> children;
  6310. IntRect clipBorder;
  6311. bool clipChildren;
  6312. /* writeonly */
  6313. Color color;
  6314. /* readonly */
  6315. bool colorGradient;
  6316. Array<Color> colors;
  6317. /* readonly */
  6318. IntRect combinedScreenRect;
  6319. XMLFile defaultStyle;
  6320. /* readonly */
  6321. float derivedOpacity;
  6322. /* readonly */
  6323. uint dragButtonCombo;
  6324. /* readonly */
  6325. int dragButtonCount;
  6326. uint dragDropMode;
  6327. bool editable;
  6328. bool elementEventSender;
  6329. bool enabled;
  6330. /* readonly */
  6331. bool enabledSelf;
  6332. /* readonly */
  6333. bool fixedHeight;
  6334. /* readonly */
  6335. bool fixedSize;
  6336. /* readonly */
  6337. bool fixedWidth;
  6338. bool focus;
  6339. FocusMode focusMode;
  6340. int height;
  6341. HorizontalAlignment horizontalAlignment;
  6342. IntVector2 hoverOffset;
  6343. /* readonly */
  6344. bool hovering;
  6345. IntRect imageBorder;
  6346. IntRect imageRect;
  6347. int indent;
  6348. int indentSpacing;
  6349. /* readonly */
  6350. int indentWidth;
  6351. bool internal;
  6352. IntRect layoutBorder;
  6353. Vector2 layoutFlexScale;
  6354. LayoutMode layoutMode;
  6355. int layoutSpacing;
  6356. int maxHeight;
  6357. IntVector2 maxSize;
  6358. int maxWidth;
  6359. int minHeight;
  6360. IntVector2 minSize;
  6361. int minWidth;
  6362. String name;
  6363. /* readonly */
  6364. uint numAllChildren;
  6365. /* readonly */
  6366. uint numAttributes;
  6367. /* readonly */
  6368. uint numChildren;
  6369. ObjectAnimation objectAnimation;
  6370. float opacity;
  6371. UIElement parent;
  6372. UIElement popup;
  6373. IntVector2 popupOffset;
  6374. IntVector2 position;
  6375. /* readonly */
  6376. bool pressed;
  6377. IntVector2 pressedChildOffset;
  6378. IntVector2 pressedOffset;
  6379. int priority;
  6380. /* readonly */
  6381. int refs;
  6382. float repeatDelay;
  6383. float repeatRate;
  6384. /* readonly */
  6385. UIElement root;
  6386. /* readonly */
  6387. IntVector2 screenPosition;
  6388. bool selected;
  6389. bool showPopup;
  6390. IntVector2 size;
  6391. bool sortChildren;
  6392. String style;
  6393. /* readonly */
  6394. Array<String> tags;
  6395. bool temporary;
  6396. Texture texture;
  6397. bool tiled;
  6398. TraversalMode traversalMode;
  6399. /* readonly */
  6400. StringHash type;
  6401. /* readonly */
  6402. String typeName;
  6403. bool useDerivedOpacity;
  6404. /* readonly */
  6405. VariantMap vars;
  6406. VerticalAlignment verticalAlignment;
  6407. bool visible;
  6408. /* readonly */
  6409. bool visibleEffective;
  6410. /* readonly */
  6411. int weakRefs;
  6412. int width;
  6413. };
  6414. class MessageBox
  6415. {
  6416. // Methods:
  6417. bool HasSubscribedToEvent(Object, const String&);
  6418. bool HasSubscribedToEvent(const String&);
  6419. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6420. // Properties:
  6421. /* readonly */
  6422. String category;
  6423. String message;
  6424. /* readonly */
  6425. int refs;
  6426. String title;
  6427. /* readonly */
  6428. StringHash type;
  6429. /* readonly */
  6430. String typeName;
  6431. /* readonly */
  6432. int weakRefs;
  6433. /* readonly */
  6434. UIElement window;
  6435. };
  6436. class Model
  6437. {
  6438. // Methods:
  6439. Model Clone(const String& = String ( )) const;
  6440. Geometry GetGeometry(uint, uint) const;
  6441. bool HasSubscribedToEvent(Object, const String&);
  6442. bool HasSubscribedToEvent(const String&);
  6443. bool Load(File);
  6444. bool Load(VectorBuffer&);
  6445. bool Save(File) const;
  6446. bool Save(VectorBuffer&) const;
  6447. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6448. bool SetGeometry(uint, uint, Geometry);
  6449. // Properties:
  6450. BoundingBox boundingBox;
  6451. /* readonly */
  6452. String category;
  6453. Array<Vector3> geometryCenters;
  6454. /* readonly */
  6455. uint memoryUse;
  6456. String name;
  6457. uint numGeometries;
  6458. Array<uint> numGeometryLodLevels;
  6459. /* readonly */
  6460. uint numMorphs;
  6461. /* readonly */
  6462. int refs;
  6463. /* readonly */
  6464. Skeleton skeleton;
  6465. /* readonly */
  6466. StringHash type;
  6467. /* readonly */
  6468. String typeName;
  6469. /* readonly */
  6470. uint useTimer;
  6471. /* readonly */
  6472. int weakRefs;
  6473. };
  6474. class NamedPipe
  6475. {
  6476. // Methods:
  6477. void Close();
  6478. bool HasSubscribedToEvent(Object, const String&);
  6479. bool HasSubscribedToEvent(const String&);
  6480. bool Open(const String&, bool);
  6481. Array<uint8> Read(uint);
  6482. bool ReadBool();
  6483. BoundingBox ReadBoundingBox();
  6484. int8 ReadByte();
  6485. Color ReadColor();
  6486. double ReadDouble();
  6487. String ReadFileID();
  6488. float ReadFloat();
  6489. int ReadInt();
  6490. IntRect ReadIntRect();
  6491. IntVector2 ReadIntVector2();
  6492. String ReadLine();
  6493. Matrix3 ReadMatrix3();
  6494. Matrix3x4 ReadMatrix3x4();
  6495. Matrix4 ReadMatrix4();
  6496. uint ReadNetID();
  6497. Quaternion ReadPackedQuaternion();
  6498. Vector3 ReadPackedVector3(float);
  6499. Quaternion ReadQuaternion();
  6500. int16 ReadShort();
  6501. String ReadString();
  6502. StringHash ReadStringHash();
  6503. uint8 ReadUByte();
  6504. uint ReadUInt();
  6505. uint16 ReadUShort();
  6506. uint ReadVLE();
  6507. Variant ReadVariant();
  6508. VariantMap ReadVariantMap();
  6509. Vector2 ReadVector2();
  6510. Vector3 ReadVector3();
  6511. Vector4 ReadVector4();
  6512. VectorBuffer ReadVectorBuffer(uint);
  6513. uint Seek(uint);
  6514. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6515. uint Write(Array<uint8>);
  6516. bool WriteBool(bool);
  6517. bool WriteBoundingBox(const BoundingBox&);
  6518. bool WriteByte(int8);
  6519. bool WriteColor(const Color&);
  6520. bool WriteDouble(double);
  6521. bool WriteFileID(const String&);
  6522. bool WriteFloat(float);
  6523. bool WriteInt(int);
  6524. bool WriteIntRect(const IntRect&);
  6525. bool WriteIntVector2(const IntVector2&);
  6526. bool WriteLine(const String&);
  6527. bool WriteMatrix3(const Matrix3&);
  6528. bool WriteMatrix3x4(const Matrix3x4&);
  6529. bool WriteMatrix4(const Matrix4&);
  6530. bool WriteNetID(uint);
  6531. bool WritePackedQuaternion(const Quaternion&);
  6532. bool WritePackedVector3(const Vector3&, float);
  6533. bool WriteQuaternion(const Quaternion&);
  6534. bool WriteShort(int16);
  6535. bool WriteString(const String&);
  6536. bool WriteStringHash(const StringHash&);
  6537. bool WriteUByte(uint8);
  6538. bool WriteUInt(uint);
  6539. bool WriteUShort(uint16);
  6540. bool WriteVLE(uint);
  6541. bool WriteVariant(const Variant&);
  6542. bool WriteVariantMap(const VariantMap&);
  6543. bool WriteVector2(const Vector2&);
  6544. bool WriteVector3(const Vector3&);
  6545. bool WriteVector4(const Vector4&);
  6546. bool WriteVectorBuffer(const VectorBuffer&);
  6547. // Properties:
  6548. /* readonly */
  6549. String category;
  6550. /* readonly */
  6551. uint checksum;
  6552. /* readonly */
  6553. bool eof;
  6554. /* readonly */
  6555. String name;
  6556. /* readonly */
  6557. bool open;
  6558. /* readonly */
  6559. uint position;
  6560. /* readonly */
  6561. int refs;
  6562. /* readonly */
  6563. bool server;
  6564. /* readonly */
  6565. uint size;
  6566. /* readonly */
  6567. StringHash type;
  6568. /* readonly */
  6569. String typeName;
  6570. /* readonly */
  6571. int weakRefs;
  6572. };
  6573. class NavArea
  6574. {
  6575. // Methods:
  6576. void ApplyAttributes();
  6577. void DrawDebugGeometry(DebugRenderer, bool);
  6578. Variant GetAttribute(const String&) const;
  6579. ValueAnimation GetAttributeAnimation(const String&) const;
  6580. float GetAttributeAnimationSpeed(const String&) const;
  6581. float GetAttributeAnimationTime(const String&) const;
  6582. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6583. Variant GetAttributeDefault(const String&) const;
  6584. bool GetInterceptNetworkUpdate(const String&) const;
  6585. bool HasSubscribedToEvent(Object, const String&);
  6586. bool HasSubscribedToEvent(const String&);
  6587. bool Load(File, bool = false);
  6588. bool Load(VectorBuffer&, bool = false);
  6589. bool LoadJSON(const JSONValue&, bool = false);
  6590. bool LoadXML(const XMLElement&, bool = false);
  6591. void MarkNetworkUpdate() const;
  6592. void Remove();
  6593. void RemoveAttributeAnimation(const String&);
  6594. void RemoveInstanceDefault();
  6595. void RemoveObjectAnimation();
  6596. void ResetToDefault();
  6597. bool Save(File) const;
  6598. bool Save(VectorBuffer&) const;
  6599. bool SaveJSON(JSONValue&) const;
  6600. bool SaveXML(XMLElement&) const;
  6601. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6602. void SetAnimationTime(float);
  6603. bool SetAttribute(const String&, const Variant&);
  6604. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6605. void SetAttributeAnimationSpeed(const String&, float);
  6606. void SetAttributeAnimationTime(const String&, float);
  6607. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6608. void SetInterceptNetworkUpdate(const String&, bool);
  6609. // Properties:
  6610. bool animationEnabled;
  6611. uint areaID;
  6612. /* readonly */
  6613. Array<Variant> attributeDefaults;
  6614. /* readonly */
  6615. Array<AttributeInfo> attributeInfos;
  6616. Array<Variant> attributes;
  6617. BoundingBox boundingBox;
  6618. /* readonly */
  6619. String category;
  6620. bool enabled;
  6621. /* readonly */
  6622. bool enabledEffective;
  6623. /* readonly */
  6624. uint id;
  6625. /* readonly */
  6626. Node node;
  6627. /* readonly */
  6628. uint numAttributes;
  6629. ObjectAnimation objectAnimation;
  6630. /* readonly */
  6631. int refs;
  6632. bool temporary;
  6633. /* readonly */
  6634. StringHash type;
  6635. /* readonly */
  6636. String typeName;
  6637. /* readonly */
  6638. int weakRefs;
  6639. /* readonly */
  6640. BoundingBox worldBoundingBox;
  6641. };
  6642. class Navigable
  6643. {
  6644. // Methods:
  6645. void ApplyAttributes();
  6646. void DrawDebugGeometry(DebugRenderer, bool);
  6647. Variant GetAttribute(const String&) const;
  6648. ValueAnimation GetAttributeAnimation(const String&) const;
  6649. float GetAttributeAnimationSpeed(const String&) const;
  6650. float GetAttributeAnimationTime(const String&) const;
  6651. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6652. Variant GetAttributeDefault(const String&) const;
  6653. bool GetInterceptNetworkUpdate(const String&) const;
  6654. bool HasSubscribedToEvent(Object, const String&);
  6655. bool HasSubscribedToEvent(const String&);
  6656. bool Load(File, bool = false);
  6657. bool Load(VectorBuffer&, bool = false);
  6658. bool LoadJSON(const JSONValue&, bool = false);
  6659. bool LoadXML(const XMLElement&, bool = false);
  6660. void MarkNetworkUpdate() const;
  6661. void Remove();
  6662. void RemoveAttributeAnimation(const String&);
  6663. void RemoveInstanceDefault();
  6664. void RemoveObjectAnimation();
  6665. void ResetToDefault();
  6666. bool Save(File) const;
  6667. bool Save(VectorBuffer&) const;
  6668. bool SaveJSON(JSONValue&) const;
  6669. bool SaveXML(XMLElement&) const;
  6670. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6671. void SetAnimationTime(float);
  6672. bool SetAttribute(const String&, const Variant&);
  6673. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6674. void SetAttributeAnimationSpeed(const String&, float);
  6675. void SetAttributeAnimationTime(const String&, float);
  6676. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6677. void SetInterceptNetworkUpdate(const String&, bool);
  6678. // Properties:
  6679. bool animationEnabled;
  6680. /* readonly */
  6681. Array<Variant> attributeDefaults;
  6682. /* readonly */
  6683. Array<AttributeInfo> attributeInfos;
  6684. Array<Variant> attributes;
  6685. /* readonly */
  6686. String category;
  6687. bool enabled;
  6688. /* readonly */
  6689. bool enabledEffective;
  6690. /* readonly */
  6691. uint id;
  6692. /* readonly */
  6693. Node node;
  6694. /* readonly */
  6695. uint numAttributes;
  6696. ObjectAnimation objectAnimation;
  6697. bool recursive;
  6698. /* readonly */
  6699. int refs;
  6700. bool temporary;
  6701. /* readonly */
  6702. StringHash type;
  6703. /* readonly */
  6704. String typeName;
  6705. /* readonly */
  6706. int weakRefs;
  6707. };
  6708. class NavigationMesh
  6709. {
  6710. // Methods:
  6711. void ApplyAttributes();
  6712. bool Build();
  6713. bool Build(const BoundingBox&);
  6714. void DrawDebugGeometry(DebugRenderer, bool);
  6715. void DrawDebugGeometry(bool);
  6716. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6717. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6718. float GetAreaCost(uint) const;
  6719. Variant GetAttribute(const String&) const;
  6720. ValueAnimation GetAttributeAnimation(const String&) const;
  6721. float GetAttributeAnimationSpeed(const String&) const;
  6722. float GetAttributeAnimationTime(const String&) const;
  6723. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6724. Variant GetAttributeDefault(const String&) const;
  6725. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6726. bool GetInterceptNetworkUpdate(const String&) const;
  6727. Vector3 GetRandomPoint();
  6728. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6729. bool HasSubscribedToEvent(Object, const String&);
  6730. bool HasSubscribedToEvent(const String&);
  6731. bool Load(File, bool = false);
  6732. bool Load(VectorBuffer&, bool = false);
  6733. bool LoadJSON(const JSONValue&, bool = false);
  6734. bool LoadXML(const XMLElement&, bool = false);
  6735. void MarkNetworkUpdate() const;
  6736. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6737. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6738. void Remove();
  6739. void RemoveAttributeAnimation(const String&);
  6740. void RemoveInstanceDefault();
  6741. void RemoveObjectAnimation();
  6742. void ResetToDefault();
  6743. bool Save(File) const;
  6744. bool Save(VectorBuffer&) const;
  6745. bool SaveJSON(JSONValue&) const;
  6746. bool SaveXML(XMLElement&) const;
  6747. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6748. void SetAnimationTime(float);
  6749. void SetAreaCost(uint, float);
  6750. bool SetAttribute(const String&, const Variant&);
  6751. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6752. void SetAttributeAnimationSpeed(const String&, float);
  6753. void SetAttributeAnimationTime(const String&, float);
  6754. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6755. void SetInterceptNetworkUpdate(const String&, bool);
  6756. // Properties:
  6757. float agentHeight;
  6758. float agentMaxClimb;
  6759. float agentMaxSlope;
  6760. float agentRadius;
  6761. bool animationEnabled;
  6762. /* readonly */
  6763. Array<Variant> attributeDefaults;
  6764. /* readonly */
  6765. Array<AttributeInfo> attributeInfos;
  6766. Array<Variant> attributes;
  6767. /* readonly */
  6768. BoundingBox boundingBox;
  6769. /* readonly */
  6770. String category;
  6771. float cellHeight;
  6772. float cellSize;
  6773. float detailSampleDistance;
  6774. float detailSampleMaxError;
  6775. bool drawNavAreas;
  6776. bool drawOffMeshConnections;
  6777. float edgeMaxError;
  6778. float edgeMaxLength;
  6779. bool enabled;
  6780. /* readonly */
  6781. bool enabledEffective;
  6782. /* readonly */
  6783. uint id;
  6784. /* readonly */
  6785. bool initialized;
  6786. /* readonly */
  6787. Node node;
  6788. /* readonly */
  6789. uint numAttributes;
  6790. /* readonly */
  6791. IntVector2 numTiles;
  6792. ObjectAnimation objectAnimation;
  6793. Vector3 padding;
  6794. NavmeshPartitionType partitionType;
  6795. /* readonly */
  6796. int refs;
  6797. float regionMergeSize;
  6798. float regionMinSize;
  6799. bool temporary;
  6800. int tileSize;
  6801. /* readonly */
  6802. StringHash type;
  6803. /* readonly */
  6804. String typeName;
  6805. /* readonly */
  6806. int weakRefs;
  6807. /* readonly */
  6808. BoundingBox worldBoundingBox;
  6809. };
  6810. class Network
  6811. {
  6812. // Methods:
  6813. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6814. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6815. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6816. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6817. bool CheckRemoteEvent(const String&) const;
  6818. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6819. void Disconnect(int = 0);
  6820. bool HasSubscribedToEvent(Object, const String&);
  6821. bool HasSubscribedToEvent(const String&);
  6822. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6823. void RegisterRemoteEvent(const String&) const;
  6824. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6825. void SendPackageToClients(Scene, PackageFile);
  6826. bool StartServer(uint16);
  6827. void StopServer();
  6828. void UnregisterAllRemoteEvents();
  6829. void UnregisterRemoteEvent(const String&) const;
  6830. // Properties:
  6831. /* readonly */
  6832. String category;
  6833. /* readonly */
  6834. Array<Connection> clientConnections;
  6835. String packageCacheDir;
  6836. /* readonly */
  6837. int refs;
  6838. /* readonly */
  6839. Connection serverConnection;
  6840. /* readonly */
  6841. bool serverRunning;
  6842. int simulatedLatency;
  6843. float simulatedPacketLoss;
  6844. /* readonly */
  6845. StringHash type;
  6846. /* readonly */
  6847. String typeName;
  6848. int updateFps;
  6849. /* readonly */
  6850. int weakRefs;
  6851. };
  6852. class NetworkPriority
  6853. {
  6854. // Methods:
  6855. void ApplyAttributes();
  6856. void DrawDebugGeometry(DebugRenderer, bool);
  6857. Variant GetAttribute(const String&) const;
  6858. ValueAnimation GetAttributeAnimation(const String&) const;
  6859. float GetAttributeAnimationSpeed(const String&) const;
  6860. float GetAttributeAnimationTime(const String&) const;
  6861. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6862. Variant GetAttributeDefault(const String&) const;
  6863. bool GetInterceptNetworkUpdate(const String&) const;
  6864. bool HasSubscribedToEvent(Object, const String&);
  6865. bool HasSubscribedToEvent(const String&);
  6866. bool Load(File, bool = false);
  6867. bool Load(VectorBuffer&, bool = false);
  6868. bool LoadJSON(const JSONValue&, bool = false);
  6869. bool LoadXML(const XMLElement&, bool = false);
  6870. void MarkNetworkUpdate() const;
  6871. void Remove();
  6872. void RemoveAttributeAnimation(const String&);
  6873. void RemoveInstanceDefault();
  6874. void RemoveObjectAnimation();
  6875. void ResetToDefault();
  6876. bool Save(File) const;
  6877. bool Save(VectorBuffer&) const;
  6878. bool SaveJSON(JSONValue&) const;
  6879. bool SaveXML(XMLElement&) const;
  6880. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6881. void SetAnimationTime(float);
  6882. bool SetAttribute(const String&, const Variant&);
  6883. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6884. void SetAttributeAnimationSpeed(const String&, float);
  6885. void SetAttributeAnimationTime(const String&, float);
  6886. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6887. void SetInterceptNetworkUpdate(const String&, bool);
  6888. // Properties:
  6889. bool alwaysUpdateOwner;
  6890. bool animationEnabled;
  6891. /* readonly */
  6892. Array<Variant> attributeDefaults;
  6893. /* readonly */
  6894. Array<AttributeInfo> attributeInfos;
  6895. Array<Variant> attributes;
  6896. float basePriority;
  6897. /* readonly */
  6898. String category;
  6899. float distanceFactor;
  6900. bool enabled;
  6901. /* readonly */
  6902. bool enabledEffective;
  6903. /* readonly */
  6904. uint id;
  6905. float minPriority;
  6906. /* readonly */
  6907. Node node;
  6908. /* readonly */
  6909. uint numAttributes;
  6910. ObjectAnimation objectAnimation;
  6911. /* readonly */
  6912. int refs;
  6913. bool temporary;
  6914. /* readonly */
  6915. StringHash type;
  6916. /* readonly */
  6917. String typeName;
  6918. /* readonly */
  6919. int weakRefs;
  6920. };
  6921. class Node
  6922. {
  6923. // Methods:
  6924. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6925. void AddTag(const String&);
  6926. void AddTags(const String&, int8 = ';');
  6927. void ApplyAttributes();
  6928. Node Clone(CreateMode = REPLICATED);
  6929. Component CloneComponent(Component, CreateMode, uint = 0);
  6930. Component CloneComponent(Component, uint = 0);
  6931. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6932. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6933. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6934. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6935. Variant GetAttribute(const String&) const;
  6936. ValueAnimation GetAttributeAnimation(const String&) const;
  6937. float GetAttributeAnimationSpeed(const String&) const;
  6938. float GetAttributeAnimationTime(const String&) const;
  6939. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6940. Variant GetAttributeDefault(const String&) const;
  6941. Node GetChild(const String&, bool = false) const;
  6942. Array<Node> GetChildren(bool = false) const;
  6943. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6944. Array<Node> GetChildrenWithScript(bool = false) const;
  6945. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6946. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  6947. Component GetComponent(const String&, bool = false) const;
  6948. Array<Component> GetComponents() const;
  6949. Array<Component> GetComponents(const String&, bool = false) const;
  6950. bool GetInterceptNetworkUpdate(const String&) const;
  6951. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6952. Component GetParentComponent(const String&, bool = false) const;
  6953. ScriptObject GetScriptObject() const;
  6954. ScriptObject GetScriptObject(const String&) const;
  6955. bool HasComponent(const String&) const;
  6956. bool HasSubscribedToEvent(Object, const String&);
  6957. bool HasSubscribedToEvent(const String&);
  6958. bool HasTag(const String&);
  6959. bool Load(File, bool = false);
  6960. bool Load(VectorBuffer&, bool = false);
  6961. bool LoadJSON(const JSONValue&, bool = false);
  6962. bool LoadXML(const XMLElement&, bool = false);
  6963. Vector3 LocalToWorld(const Vector3&) const;
  6964. Vector3 LocalToWorld(const Vector4&) const;
  6965. Vector2 LocalToWorld2D(const Vector2&) const;
  6966. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6967. void MarkDirty();
  6968. void MarkNetworkUpdate() const;
  6969. void Pitch(float, TransformSpace = TS_LOCAL);
  6970. void Remove();
  6971. void RemoveAllChildren();
  6972. void RemoveAllComponents();
  6973. void RemoveAllTags();
  6974. void RemoveAttributeAnimation(const String&);
  6975. void RemoveChild(Node);
  6976. void RemoveChildren(bool, bool, bool);
  6977. void RemoveComponent(Component);
  6978. void RemoveComponent(const String&);
  6979. void RemoveComponents(bool, bool);
  6980. void RemoveComponents(const String&);
  6981. void RemoveInstanceDefault();
  6982. void RemoveObjectAnimation();
  6983. bool RemoveTag(const String&);
  6984. void ResetDeepEnabled();
  6985. void ResetToDefault();
  6986. void Roll(float, TransformSpace = TS_LOCAL);
  6987. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6988. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6989. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6990. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6991. bool Save(File) const;
  6992. bool Save(VectorBuffer&) const;
  6993. bool SaveJSON(File);
  6994. bool SaveJSON(JSONValue&) const;
  6995. bool SaveJSON(VectorBuffer&);
  6996. bool SaveXML(File, const String& = "\t");
  6997. bool SaveXML(VectorBuffer&, const String& = "\t");
  6998. bool SaveXML(XMLElement&) const;
  6999. void Scale(const Vector3&);
  7000. void Scale(float);
  7001. void Scale2D(const Vector2&);
  7002. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7003. void SetAnimationTime(float);
  7004. bool SetAttribute(const String&, const Variant&);
  7005. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7006. void SetAttributeAnimationSpeed(const String&, float);
  7007. void SetAttributeAnimationTime(const String&, float);
  7008. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7009. void SetDeepEnabled(bool);
  7010. void SetEnabledRecursive(bool);
  7011. void SetInterceptNetworkUpdate(const String&, bool);
  7012. void SetPosition2D(float, float);
  7013. void SetScale(float);
  7014. void SetScale2D(float, float);
  7015. void SetTransform(const Vector3&, const Quaternion&);
  7016. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7017. void SetTransform(const Vector3&, const Quaternion&, float);
  7018. void SetTransform2D(const Vector2&, float);
  7019. void SetTransform2D(const Vector2&, float, const Vector2&);
  7020. void SetTransform2D(const Vector2&, float, float);
  7021. void SetWorldTransform(const Vector3&, const Quaternion&);
  7022. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7023. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7024. void SetWorldTransform2D(const Vector2&, float);
  7025. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7026. void SetWorldTransform2D(const Vector2&, float, float);
  7027. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7028. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7029. Vector3 WorldToLocal(const Vector3&) const;
  7030. Vector3 WorldToLocal(const Vector4&) const;
  7031. Vector2 WorldToLocal2D(const Vector2&) const;
  7032. void Yaw(float, TransformSpace = TS_LOCAL);
  7033. // Properties:
  7034. bool animationEnabled;
  7035. /* readonly */
  7036. Array<Variant> attributeDefaults;
  7037. /* readonly */
  7038. Array<AttributeInfo> attributeInfos;
  7039. Array<Variant> attributes;
  7040. /* readonly */
  7041. String category;
  7042. /* readonly */
  7043. Array<Node> children;
  7044. /* readonly */
  7045. Array<Component> components;
  7046. Vector3 direction;
  7047. bool enabled;
  7048. /* readonly */
  7049. bool enabledSelf;
  7050. /* readonly */
  7051. uint id;
  7052. String name;
  7053. /* readonly */
  7054. uint numAllChildren;
  7055. /* readonly */
  7056. uint numAttributes;
  7057. /* readonly */
  7058. uint numChildren;
  7059. /* readonly */
  7060. uint numComponents;
  7061. ObjectAnimation objectAnimation;
  7062. Connection owner;
  7063. Node parent;
  7064. Vector3 position;
  7065. Vector2 position2D;
  7066. /* readonly */
  7067. int refs;
  7068. /* readonly */
  7069. Vector3 right;
  7070. Quaternion rotation;
  7071. float rotation2D;
  7072. Vector3 scale;
  7073. Vector2 scale2D;
  7074. /* readonly */
  7075. Scene scene;
  7076. /* readonly */
  7077. ScriptObject scriptObject;
  7078. /* readonly */
  7079. Array<String> tags;
  7080. bool temporary;
  7081. /* readonly */
  7082. Matrix3x4 transform;
  7083. /* readonly */
  7084. StringHash type;
  7085. /* readonly */
  7086. String typeName;
  7087. /* readonly */
  7088. Vector3 up;
  7089. /* readonly */
  7090. VariantMap vars;
  7091. /* readonly */
  7092. int weakRefs;
  7093. Vector3 worldDirection;
  7094. Vector3 worldPosition;
  7095. Vector2 worldPosition2D;
  7096. /* readonly */
  7097. Vector3 worldRight;
  7098. Quaternion worldRotation;
  7099. float worldRotation2D;
  7100. Vector3 worldScale;
  7101. Vector2 worldScale2D;
  7102. /* readonly */
  7103. Matrix3x4 worldTransform;
  7104. /* readonly */
  7105. Vector3 worldUp;
  7106. };
  7107. class Object
  7108. {
  7109. // Methods:
  7110. bool HasSubscribedToEvent(Object, const String&);
  7111. bool HasSubscribedToEvent(const String&);
  7112. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7113. // Properties:
  7114. /* readonly */
  7115. String category;
  7116. /* readonly */
  7117. int refs;
  7118. /* readonly */
  7119. StringHash type;
  7120. /* readonly */
  7121. String typeName;
  7122. /* readonly */
  7123. int weakRefs;
  7124. };
  7125. class ObjectAnimation
  7126. {
  7127. // Methods:
  7128. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7129. ValueAnimation GetAttributeAnimation(const String&) const;
  7130. float GetAttributeAnimationSpeed(const String&) const;
  7131. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7132. bool HasSubscribedToEvent(Object, const String&);
  7133. bool HasSubscribedToEvent(const String&);
  7134. bool Load(File);
  7135. bool Load(VectorBuffer&);
  7136. void RemoveAttributeAnimation(ValueAnimation);
  7137. void RemoveAttributeAnimation(const String&);
  7138. bool Save(File) const;
  7139. bool Save(VectorBuffer&) const;
  7140. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7141. // Properties:
  7142. /* readonly */
  7143. Array<Variant> attributeAnimations;
  7144. /* readonly */
  7145. String category;
  7146. /* readonly */
  7147. uint memoryUse;
  7148. String name;
  7149. /* readonly */
  7150. int refs;
  7151. /* readonly */
  7152. Array<Variant> speeds;
  7153. /* readonly */
  7154. StringHash type;
  7155. /* readonly */
  7156. String typeName;
  7157. /* readonly */
  7158. uint useTimer;
  7159. /* readonly */
  7160. int weakRefs;
  7161. /* readonly */
  7162. Array<Variant> wrapModes;
  7163. };
  7164. class Obstacle
  7165. {
  7166. // Methods:
  7167. void ApplyAttributes();
  7168. void DrawDebugGeometry(DebugRenderer, bool);
  7169. void DrawDebugGeometry(bool);
  7170. Variant GetAttribute(const String&) const;
  7171. ValueAnimation GetAttributeAnimation(const String&) const;
  7172. float GetAttributeAnimationSpeed(const String&) const;
  7173. float GetAttributeAnimationTime(const String&) const;
  7174. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7175. Variant GetAttributeDefault(const String&) const;
  7176. bool GetInterceptNetworkUpdate(const String&) const;
  7177. bool HasSubscribedToEvent(Object, const String&);
  7178. bool HasSubscribedToEvent(const String&);
  7179. bool Load(File, bool = false);
  7180. bool Load(VectorBuffer&, bool = false);
  7181. bool LoadJSON(const JSONValue&, bool = false);
  7182. bool LoadXML(const XMLElement&, bool = false);
  7183. void MarkNetworkUpdate() const;
  7184. void Remove();
  7185. void RemoveAttributeAnimation(const String&);
  7186. void RemoveInstanceDefault();
  7187. void RemoveObjectAnimation();
  7188. void ResetToDefault();
  7189. bool Save(File) const;
  7190. bool Save(VectorBuffer&) const;
  7191. bool SaveJSON(JSONValue&) const;
  7192. bool SaveXML(XMLElement&) const;
  7193. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7194. void SetAnimationTime(float);
  7195. bool SetAttribute(const String&, const Variant&);
  7196. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7197. void SetAttributeAnimationSpeed(const String&, float);
  7198. void SetAttributeAnimationTime(const String&, float);
  7199. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7200. void SetInterceptNetworkUpdate(const String&, bool);
  7201. // Properties:
  7202. bool animationEnabled;
  7203. /* readonly */
  7204. Array<Variant> attributeDefaults;
  7205. /* readonly */
  7206. Array<AttributeInfo> attributeInfos;
  7207. Array<Variant> attributes;
  7208. /* readonly */
  7209. String category;
  7210. bool enabled;
  7211. /* readonly */
  7212. bool enabledEffective;
  7213. float height;
  7214. /* readonly */
  7215. uint id;
  7216. /* readonly */
  7217. Node node;
  7218. /* readonly */
  7219. uint numAttributes;
  7220. ObjectAnimation objectAnimation;
  7221. /* readonly */
  7222. uint obstacleId;
  7223. float radius;
  7224. /* readonly */
  7225. int refs;
  7226. bool temporary;
  7227. /* readonly */
  7228. StringHash type;
  7229. /* readonly */
  7230. String typeName;
  7231. /* readonly */
  7232. int weakRefs;
  7233. };
  7234. class Octree
  7235. {
  7236. // Methods:
  7237. void AddManualDrawable(Drawable);
  7238. void ApplyAttributes();
  7239. void DrawDebugGeometry(DebugRenderer, bool);
  7240. void DrawDebugGeometry(bool) const;
  7241. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7242. Variant GetAttribute(const String&) const;
  7243. ValueAnimation GetAttributeAnimation(const String&) const;
  7244. float GetAttributeAnimationSpeed(const String&) const;
  7245. float GetAttributeAnimationTime(const String&) const;
  7246. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7247. Variant GetAttributeDefault(const String&) const;
  7248. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7249. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7250. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7251. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7252. bool GetInterceptNetworkUpdate(const String&) const;
  7253. bool HasSubscribedToEvent(Object, const String&);
  7254. bool HasSubscribedToEvent(const String&);
  7255. bool Load(File, bool = false);
  7256. bool Load(VectorBuffer&, bool = false);
  7257. bool LoadJSON(const JSONValue&, bool = false);
  7258. bool LoadXML(const XMLElement&, bool = false);
  7259. void MarkNetworkUpdate() const;
  7260. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7261. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7262. void Remove();
  7263. void RemoveAttributeAnimation(const String&);
  7264. void RemoveInstanceDefault();
  7265. void RemoveManualDrawable(Drawable);
  7266. void RemoveObjectAnimation();
  7267. void ResetToDefault();
  7268. bool Save(File) const;
  7269. bool Save(VectorBuffer&) const;
  7270. bool SaveJSON(JSONValue&) const;
  7271. bool SaveXML(XMLElement&) const;
  7272. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7273. void SetAnimationTime(float);
  7274. bool SetAttribute(const String&, const Variant&);
  7275. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7276. void SetAttributeAnimationSpeed(const String&, float);
  7277. void SetAttributeAnimationTime(const String&, float);
  7278. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7279. void SetInterceptNetworkUpdate(const String&, bool);
  7280. void SetSize(const BoundingBox&, uint);
  7281. // Properties:
  7282. bool animationEnabled;
  7283. /* readonly */
  7284. Array<Variant> attributeDefaults;
  7285. /* readonly */
  7286. Array<AttributeInfo> attributeInfos;
  7287. Array<Variant> attributes;
  7288. /* readonly */
  7289. String category;
  7290. bool enabled;
  7291. /* readonly */
  7292. bool enabledEffective;
  7293. /* readonly */
  7294. uint id;
  7295. /* readonly */
  7296. Node node;
  7297. /* readonly */
  7298. uint numAttributes;
  7299. /* readonly */
  7300. uint numLevels;
  7301. ObjectAnimation objectAnimation;
  7302. /* readonly */
  7303. int refs;
  7304. bool temporary;
  7305. /* readonly */
  7306. StringHash type;
  7307. /* readonly */
  7308. String typeName;
  7309. /* readonly */
  7310. int weakRefs;
  7311. /* readonly */
  7312. BoundingBox worldBoundingBox;
  7313. };
  7314. class OffMeshConnection
  7315. {
  7316. // Methods:
  7317. void ApplyAttributes();
  7318. void DrawDebugGeometry(DebugRenderer, bool);
  7319. Variant GetAttribute(const String&) const;
  7320. ValueAnimation GetAttributeAnimation(const String&) const;
  7321. float GetAttributeAnimationSpeed(const String&) const;
  7322. float GetAttributeAnimationTime(const String&) const;
  7323. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7324. Variant GetAttributeDefault(const String&) const;
  7325. bool GetInterceptNetworkUpdate(const String&) const;
  7326. bool HasSubscribedToEvent(Object, const String&);
  7327. bool HasSubscribedToEvent(const String&);
  7328. bool Load(File, bool = false);
  7329. bool Load(VectorBuffer&, bool = false);
  7330. bool LoadJSON(const JSONValue&, bool = false);
  7331. bool LoadXML(const XMLElement&, bool = false);
  7332. void MarkNetworkUpdate() const;
  7333. void Remove();
  7334. void RemoveAttributeAnimation(const String&);
  7335. void RemoveInstanceDefault();
  7336. void RemoveObjectAnimation();
  7337. void ResetToDefault();
  7338. bool Save(File) const;
  7339. bool Save(VectorBuffer&) const;
  7340. bool SaveJSON(JSONValue&) const;
  7341. bool SaveXML(XMLElement&) const;
  7342. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7343. void SetAnimationTime(float);
  7344. bool SetAttribute(const String&, const Variant&);
  7345. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7346. void SetAttributeAnimationSpeed(const String&, float);
  7347. void SetAttributeAnimationTime(const String&, float);
  7348. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7349. void SetInterceptNetworkUpdate(const String&, bool);
  7350. // Properties:
  7351. bool animationEnabled;
  7352. uint areaID;
  7353. /* readonly */
  7354. Array<Variant> attributeDefaults;
  7355. /* readonly */
  7356. Array<AttributeInfo> attributeInfos;
  7357. Array<Variant> attributes;
  7358. bool bidirectional;
  7359. /* readonly */
  7360. String category;
  7361. bool enabled;
  7362. /* readonly */
  7363. bool enabledEffective;
  7364. Node endPoint;
  7365. /* readonly */
  7366. uint id;
  7367. uint mask;
  7368. /* readonly */
  7369. Node node;
  7370. /* readonly */
  7371. uint numAttributes;
  7372. ObjectAnimation objectAnimation;
  7373. float radius;
  7374. /* readonly */
  7375. int refs;
  7376. bool temporary;
  7377. /* readonly */
  7378. StringHash type;
  7379. /* readonly */
  7380. String typeName;
  7381. /* readonly */
  7382. int weakRefs;
  7383. };
  7384. class PackageFile
  7385. {
  7386. // Methods:
  7387. bool Exists(const String&) const;
  7388. Array<String> GetEntryNames() const;
  7389. bool HasSubscribedToEvent(Object, const String&);
  7390. bool HasSubscribedToEvent(const String&);
  7391. bool Open(const String&, uint = 0) const;
  7392. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7393. bool compressed() const;
  7394. // Properties:
  7395. /* readonly */
  7396. String category;
  7397. /* readonly */
  7398. uint checksum;
  7399. /* readonly */
  7400. String name;
  7401. /* readonly */
  7402. uint numFiles;
  7403. /* readonly */
  7404. int refs;
  7405. /* readonly */
  7406. uint totalDataSize;
  7407. /* readonly */
  7408. uint totalSize;
  7409. /* readonly */
  7410. StringHash type;
  7411. /* readonly */
  7412. String typeName;
  7413. /* readonly */
  7414. int weakRefs;
  7415. };
  7416. class ParticleEffect
  7417. {
  7418. // Methods:
  7419. void AddColorFrame(ColorFrame);
  7420. void AddColorTime(Color&, float);
  7421. void AddTextureFrame(TextureFrame);
  7422. void AddTextureTime(Rect&, float);
  7423. ColorFrame GetColorFrame(uint) const;
  7424. TextureFrame GetTextureFrame(uint) const;
  7425. bool HasSubscribedToEvent(Object, const String&);
  7426. bool HasSubscribedToEvent(const String&);
  7427. bool Load(File);
  7428. bool Load(VectorBuffer&);
  7429. bool Load(const XMLElement&);
  7430. void RemoveColorFrame(uint);
  7431. void RemoveTextureFrame(uint);
  7432. bool Save(File) const;
  7433. bool Save(VectorBuffer&) const;
  7434. bool Save(XMLElement&) const;
  7435. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7436. void SetColorFrame(uint, ColorFrame);
  7437. void SetTextureFrame(uint, TextureFrame);
  7438. void SortColorFrames();
  7439. void SortTextureFrames();
  7440. // Properties:
  7441. float activeTime;
  7442. float animationLodBias;
  7443. /* readonly */
  7444. String category;
  7445. Vector3 constantForce;
  7446. float dampingForce;
  7447. Vector3 emitterSize;
  7448. EmitterType emitterType;
  7449. FaceCameraMode faceCameraMode;
  7450. bool fixedScreenSize;
  7451. float inactiveTime;
  7452. Material material;
  7453. Vector3 maxDirection;
  7454. float maxEmissionRate;
  7455. Vector2 maxParticleSize;
  7456. float maxRotation;
  7457. float maxRotationSpeed;
  7458. float maxTimeToLive;
  7459. float maxVelocity;
  7460. /* readonly */
  7461. uint memoryUse;
  7462. Vector3 minDirection;
  7463. float minEmissionRate;
  7464. Vector2 minParticleSize;
  7465. float minRotation;
  7466. float minRotationSpeed;
  7467. float minTimeToLive;
  7468. float minVelocity;
  7469. String name;
  7470. uint numColorFrames;
  7471. uint numParticles;
  7472. uint numTextureFrames;
  7473. /* readonly */
  7474. int refs;
  7475. bool relative;
  7476. bool scaled;
  7477. float sizeAdd;
  7478. float sizeMul;
  7479. bool sorted;
  7480. /* readonly */
  7481. StringHash type;
  7482. /* readonly */
  7483. String typeName;
  7484. bool updateInvisible;
  7485. /* readonly */
  7486. uint useTimer;
  7487. /* readonly */
  7488. int weakRefs;
  7489. };
  7490. class ParticleEffect2D
  7491. {
  7492. // Methods:
  7493. bool HasSubscribedToEvent(Object, const String&);
  7494. bool HasSubscribedToEvent(const String&);
  7495. bool Load(File);
  7496. bool Load(VectorBuffer&);
  7497. bool Save(File) const;
  7498. bool Save(VectorBuffer&) const;
  7499. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7500. // Properties:
  7501. /* readonly */
  7502. String category;
  7503. /* readonly */
  7504. uint memoryUse;
  7505. String name;
  7506. /* readonly */
  7507. int refs;
  7508. /* readonly */
  7509. StringHash type;
  7510. /* readonly */
  7511. String typeName;
  7512. /* readonly */
  7513. uint useTimer;
  7514. /* readonly */
  7515. int weakRefs;
  7516. };
  7517. class ParticleEmitter
  7518. {
  7519. // Methods:
  7520. void ApplyAttributes();
  7521. void ApplyEffect();
  7522. void Commit();
  7523. void DrawDebugGeometry(DebugRenderer, bool);
  7524. Variant GetAttribute(const String&) const;
  7525. ValueAnimation GetAttributeAnimation(const String&) const;
  7526. float GetAttributeAnimationSpeed(const String&) const;
  7527. float GetAttributeAnimationTime(const String&) const;
  7528. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7529. Variant GetAttributeDefault(const String&) const;
  7530. bool GetInterceptNetworkUpdate(const String&) const;
  7531. bool HasSubscribedToEvent(Object, const String&);
  7532. bool HasSubscribedToEvent(const String&);
  7533. bool IsInView(Camera) const;
  7534. bool Load(File, bool = false);
  7535. bool Load(VectorBuffer&, bool = false);
  7536. bool LoadJSON(const JSONValue&, bool = false);
  7537. bool LoadXML(const XMLElement&, bool = false);
  7538. void MarkNetworkUpdate() const;
  7539. void Remove();
  7540. void RemoveAllParticles();
  7541. void RemoveAttributeAnimation(const String&);
  7542. void RemoveInstanceDefault();
  7543. void RemoveObjectAnimation();
  7544. void Reset();
  7545. void ResetEmissionTimer();
  7546. void ResetToDefault();
  7547. bool Save(File) const;
  7548. bool Save(VectorBuffer&) const;
  7549. bool SaveJSON(JSONValue&) const;
  7550. bool SaveXML(XMLElement&) const;
  7551. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7552. void SetAnimationTime(float);
  7553. bool SetAttribute(const String&, const Variant&);
  7554. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7555. void SetAttributeAnimationSpeed(const String&, float);
  7556. void SetAttributeAnimationTime(const String&, float);
  7557. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7558. void SetInterceptNetworkUpdate(const String&, bool);
  7559. // Properties:
  7560. bool animationEnabled;
  7561. float animationLodBias;
  7562. /* readonly */
  7563. Array<Variant> attributeDefaults;
  7564. /* readonly */
  7565. Array<AttributeInfo> attributeInfos;
  7566. Array<Variant> attributes;
  7567. /* readonly */
  7568. Array<Billboard> billboards;
  7569. /* readonly */
  7570. BoundingBox boundingBox;
  7571. bool castShadows;
  7572. /* readonly */
  7573. String category;
  7574. float drawDistance;
  7575. ParticleEffect effect;
  7576. bool emitting;
  7577. bool enabled;
  7578. /* readonly */
  7579. bool enabledEffective;
  7580. FaceCameraMode faceCameraMode;
  7581. bool fixedScreenSize;
  7582. /* readonly */
  7583. uint id;
  7584. /* readonly */
  7585. bool inView;
  7586. uint lightMask;
  7587. float lodBias;
  7588. Material material;
  7589. uint maxLights;
  7590. /* readonly */
  7591. Node node;
  7592. /* readonly */
  7593. uint numAttributes;
  7594. uint numBillboards;
  7595. uint numParticles;
  7596. ObjectAnimation objectAnimation;
  7597. bool occludee;
  7598. bool occluder;
  7599. /* readonly */
  7600. int refs;
  7601. bool relative;
  7602. bool scaled;
  7603. bool serializeParticles;
  7604. float shadowDistance;
  7605. uint shadowMask;
  7606. bool sorted;
  7607. bool temporary;
  7608. /* readonly */
  7609. StringHash type;
  7610. /* readonly */
  7611. String typeName;
  7612. uint viewMask;
  7613. /* readonly */
  7614. int weakRefs;
  7615. /* readonly */
  7616. BoundingBox worldBoundingBox;
  7617. /* readonly */
  7618. Zone zone;
  7619. uint zoneMask;
  7620. };
  7621. class ParticleEmitter2D
  7622. {
  7623. // Methods:
  7624. void ApplyAttributes();
  7625. void DrawDebugGeometry(DebugRenderer, bool);
  7626. Variant GetAttribute(const String&) const;
  7627. ValueAnimation GetAttributeAnimation(const String&) const;
  7628. float GetAttributeAnimationSpeed(const String&) const;
  7629. float GetAttributeAnimationTime(const String&) const;
  7630. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7631. Variant GetAttributeDefault(const String&) const;
  7632. bool GetInterceptNetworkUpdate(const String&) const;
  7633. bool HasSubscribedToEvent(Object, const String&);
  7634. bool HasSubscribedToEvent(const String&);
  7635. bool IsInView(Camera) const;
  7636. bool Load(File, bool = false);
  7637. bool Load(VectorBuffer&, bool = false);
  7638. bool LoadJSON(const JSONValue&, bool = false);
  7639. bool LoadXML(const XMLElement&, bool = false);
  7640. void MarkNetworkUpdate() const;
  7641. void Remove();
  7642. void RemoveAttributeAnimation(const String&);
  7643. void RemoveInstanceDefault();
  7644. void RemoveObjectAnimation();
  7645. void ResetToDefault();
  7646. bool Save(File) const;
  7647. bool Save(VectorBuffer&) const;
  7648. bool SaveJSON(JSONValue&) const;
  7649. bool SaveXML(XMLElement&) const;
  7650. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7651. void SetAnimationTime(float);
  7652. bool SetAttribute(const String&, const Variant&);
  7653. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7654. void SetAttributeAnimationSpeed(const String&, float);
  7655. void SetAttributeAnimationTime(const String&, float);
  7656. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7657. void SetInterceptNetworkUpdate(const String&, bool);
  7658. // Properties:
  7659. bool animationEnabled;
  7660. /* readonly */
  7661. Array<Variant> attributeDefaults;
  7662. /* readonly */
  7663. Array<AttributeInfo> attributeInfos;
  7664. Array<Variant> attributes;
  7665. BlendMode blendMode;
  7666. /* readonly */
  7667. BoundingBox boundingBox;
  7668. bool castShadows;
  7669. /* readonly */
  7670. String category;
  7671. float drawDistance;
  7672. ParticleEffect2D effect;
  7673. bool enabled;
  7674. /* readonly */
  7675. bool enabledEffective;
  7676. /* readonly */
  7677. uint id;
  7678. /* readonly */
  7679. bool inView;
  7680. int layer;
  7681. uint lightMask;
  7682. float lodBias;
  7683. uint maxLights;
  7684. /* readonly */
  7685. Node node;
  7686. /* readonly */
  7687. uint numAttributes;
  7688. ObjectAnimation objectAnimation;
  7689. bool occludee;
  7690. bool occluder;
  7691. int orderInLayer;
  7692. /* readonly */
  7693. int refs;
  7694. float shadowDistance;
  7695. uint shadowMask;
  7696. Sprite2D sprite;
  7697. bool temporary;
  7698. /* readonly */
  7699. StringHash type;
  7700. /* readonly */
  7701. String typeName;
  7702. uint viewMask;
  7703. /* readonly */
  7704. int weakRefs;
  7705. /* readonly */
  7706. BoundingBox worldBoundingBox;
  7707. uint zoneMask;
  7708. };
  7709. class Pass
  7710. {
  7711. // Properties:
  7712. bool alphaMask;
  7713. BlendMode blendMode;
  7714. CullMode cullMode;
  7715. CompareMode depthTestMode;
  7716. bool depthWrite;
  7717. bool desktop;
  7718. PassLightingMode lightingMode;
  7719. String pixelShader;
  7720. String pixelShaderDefines;
  7721. /* readonly */
  7722. int refs;
  7723. String vertexShader;
  7724. String vertexShaderDefines;
  7725. /* readonly */
  7726. int weakRefs;
  7727. };
  7728. class PhysicsRaycastResult
  7729. {
  7730. // Properties:
  7731. /* readonly */
  7732. RigidBody body;
  7733. float distance;
  7734. float hitFraction;
  7735. Vector3 normal;
  7736. Vector3 position;
  7737. };
  7738. class PhysicsRaycastResult2D
  7739. {
  7740. // Properties:
  7741. /* readonly */
  7742. RigidBody2D body;
  7743. float distance;
  7744. Vector2 normal;
  7745. Vector2 position;
  7746. };
  7747. class PhysicsWorld
  7748. {
  7749. // Methods:
  7750. void ApplyAttributes();
  7751. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7752. void DrawDebugGeometry(DebugRenderer, bool);
  7753. void DrawDebugGeometry(bool);
  7754. Variant GetAttribute(const String&) const;
  7755. ValueAnimation GetAttributeAnimation(const String&) const;
  7756. float GetAttributeAnimationSpeed(const String&) const;
  7757. float GetAttributeAnimationTime(const String&) const;
  7758. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7759. Variant GetAttributeDefault(const String&) const;
  7760. Array<RigidBody> GetCollidingBodies(RigidBody);
  7761. bool GetInterceptNetworkUpdate(const String&) const;
  7762. Array<RigidBody> GetRigidBodies(RigidBody);
  7763. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7764. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7765. bool HasSubscribedToEvent(Object, const String&);
  7766. bool HasSubscribedToEvent(const String&);
  7767. bool Load(File, bool = false);
  7768. bool Load(VectorBuffer&, bool = false);
  7769. bool LoadJSON(const JSONValue&, bool = false);
  7770. bool LoadXML(const XMLElement&, bool = false);
  7771. void MarkNetworkUpdate() const;
  7772. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7773. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7774. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7775. void Remove();
  7776. void RemoveAttributeAnimation(const String&);
  7777. void RemoveCachedGeometry(Model);
  7778. void RemoveInstanceDefault();
  7779. void RemoveObjectAnimation();
  7780. void ResetToDefault();
  7781. bool Save(File) const;
  7782. bool Save(VectorBuffer&) const;
  7783. bool SaveJSON(JSONValue&) const;
  7784. bool SaveXML(XMLElement&) const;
  7785. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7786. void SetAnimationTime(float);
  7787. bool SetAttribute(const String&, const Variant&);
  7788. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7789. void SetAttributeAnimationSpeed(const String&, float);
  7790. void SetAttributeAnimationTime(const String&, float);
  7791. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7792. void SetInterceptNetworkUpdate(const String&, bool);
  7793. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7794. void Update(float);
  7795. void UpdateCollisions();
  7796. // Properties:
  7797. bool animationEnabled;
  7798. /* readonly */
  7799. Array<Variant> attributeDefaults;
  7800. /* readonly */
  7801. Array<AttributeInfo> attributeInfos;
  7802. Array<Variant> attributes;
  7803. /* readonly */
  7804. String category;
  7805. bool enabled;
  7806. /* readonly */
  7807. bool enabledEffective;
  7808. int fps;
  7809. Vector3 gravity;
  7810. /* readonly */
  7811. uint id;
  7812. bool internalEdge;
  7813. bool interpolation;
  7814. int maxSubSteps;
  7815. /* readonly */
  7816. Node node;
  7817. /* readonly */
  7818. uint numAttributes;
  7819. int numIterations;
  7820. ObjectAnimation objectAnimation;
  7821. /* readonly */
  7822. int refs;
  7823. bool splitImpulse;
  7824. bool temporary;
  7825. /* readonly */
  7826. StringHash type;
  7827. /* readonly */
  7828. String typeName;
  7829. bool updateEnabled;
  7830. /* readonly */
  7831. int weakRefs;
  7832. };
  7833. class PhysicsWorld2D
  7834. {
  7835. // Methods:
  7836. void ApplyAttributes();
  7837. void DrawDebugGeometry() const;
  7838. void DrawDebugGeometry(DebugRenderer, bool);
  7839. Variant GetAttribute(const String&) const;
  7840. ValueAnimation GetAttributeAnimation(const String&) const;
  7841. float GetAttributeAnimationSpeed(const String&) const;
  7842. float GetAttributeAnimationTime(const String&) const;
  7843. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7844. Variant GetAttributeDefault(const String&) const;
  7845. bool GetInterceptNetworkUpdate(const String&) const;
  7846. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7847. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7848. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7849. bool HasSubscribedToEvent(Object, const String&);
  7850. bool HasSubscribedToEvent(const String&);
  7851. bool Load(File, bool = false);
  7852. bool Load(VectorBuffer&, bool = false);
  7853. bool LoadJSON(const JSONValue&, bool = false);
  7854. bool LoadXML(const XMLElement&, bool = false);
  7855. void MarkNetworkUpdate() const;
  7856. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7857. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7858. void Remove();
  7859. void RemoveAttributeAnimation(const String&);
  7860. void RemoveInstanceDefault();
  7861. void RemoveObjectAnimation();
  7862. void ResetToDefault();
  7863. bool Save(File) const;
  7864. bool Save(VectorBuffer&) const;
  7865. bool SaveJSON(JSONValue&) const;
  7866. bool SaveXML(XMLElement&) const;
  7867. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7868. void SetAnimationTime(float);
  7869. bool SetAttribute(const String&, const Variant&);
  7870. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7871. void SetAttributeAnimationSpeed(const String&, float);
  7872. void SetAttributeAnimationTime(const String&, float);
  7873. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7874. void SetInterceptNetworkUpdate(const String&, bool);
  7875. // Properties:
  7876. bool allowSleeping;
  7877. bool animationEnabled;
  7878. /* readonly */
  7879. Array<Variant> attributeDefaults;
  7880. /* readonly */
  7881. Array<AttributeInfo> attributeInfos;
  7882. Array<Variant> attributes;
  7883. bool autoClearForces;
  7884. /* readonly */
  7885. String category;
  7886. bool continuousPhysics;
  7887. bool drawAabb;
  7888. bool drawCenterOfMass;
  7889. bool drawJoint;
  7890. bool drawPair;
  7891. bool drawShape;
  7892. bool enabled;
  7893. /* readonly */
  7894. bool enabledEffective;
  7895. Vector2 gravity;
  7896. /* readonly */
  7897. uint id;
  7898. /* readonly */
  7899. Node node;
  7900. /* readonly */
  7901. uint numAttributes;
  7902. ObjectAnimation objectAnimation;
  7903. uint positionIterations;
  7904. /* readonly */
  7905. int refs;
  7906. bool subStepping;
  7907. bool temporary;
  7908. /* readonly */
  7909. StringHash type;
  7910. /* readonly */
  7911. String typeName;
  7912. bool updateEnabled;
  7913. uint velocityIterations;
  7914. bool warmStarting;
  7915. /* readonly */
  7916. int weakRefs;
  7917. };
  7918. class Plane
  7919. {
  7920. // Methods:
  7921. void Define(const Vector3&, const Vector3&);
  7922. void Define(const Vector3&, const Vector3&, const Vector3&);
  7923. void Define(const Vector4&);
  7924. float Distance(const Vector3&) const;
  7925. Vector3 Project(const Vector3&) const;
  7926. Vector3 Reflect(const Vector3&) const;
  7927. Vector4 ToVector4() const;
  7928. void Transform(const Matrix3&);
  7929. void Transform(const Matrix3x4&);
  7930. void Transform(const Matrix4&);
  7931. Plane Transformed(const Matrix3&) const;
  7932. Plane Transformed(const Matrix3x4&) const;
  7933. Plane Transformed(const Matrix4&) const;
  7934. // Properties:
  7935. Vector3 absNormal;
  7936. float d;
  7937. Vector3 normal;
  7938. /* readonly */
  7939. Matrix3x4 reflectionMatrix;
  7940. };
  7941. class Polyhedron
  7942. {
  7943. // Methods:
  7944. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7945. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7946. void AddFace(const Array<Vector3>);
  7947. void Clear();
  7948. void Clip(const BoundingBox&);
  7949. void Clip(const Frustum&);
  7950. void Define(const BoundingBox&);
  7951. void Define(const Frustum&);
  7952. void Transform(const Matrix3&);
  7953. void Transform(const Matrix3x4&);
  7954. Polyhedron Transformed(const Matrix3&) const;
  7955. Polyhedron Transformed(const Matrix3x4&) const;
  7956. // Properties:
  7957. /* readonly */
  7958. Array<Array<Vector3>> face;
  7959. /* readonly */
  7960. uint numFaces;
  7961. };
  7962. class PropertySet2D
  7963. {
  7964. // Methods:
  7965. bool HasProperty(const String&) const;
  7966. const String& GetProperty(const String&) const;
  7967. // Properties:
  7968. /* readonly */
  7969. int refs;
  7970. /* readonly */
  7971. int weakRefs;
  7972. };
  7973. class Quaternion
  7974. {
  7975. // Methods:
  7976. Quaternion Conjugate() const;
  7977. float DotProduct(const Quaternion&) const;
  7978. bool Equals(const Quaternion&) const;
  7979. void FromAngleAxis(float, const Vector3&);
  7980. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7981. void FromEulerAngles(float, float, float);
  7982. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  7983. void FromRotationMatrix(const Matrix3&);
  7984. void FromRotationTo(const Vector3&, const Vector3&);
  7985. Quaternion Inverse() const;
  7986. bool IsNaN() const;
  7987. float LengthSquared() const;
  7988. Quaternion Nlerp(Quaternion, float, bool) const;
  7989. void Normalize();
  7990. Quaternion Normalized() const;
  7991. Quaternion Slerp(Quaternion, float) const;
  7992. String ToString() const;
  7993. // Properties:
  7994. /* readonly */
  7995. Vector3 eulerAngles;
  7996. /* readonly */
  7997. float pitch;
  7998. /* readonly */
  7999. float roll;
  8000. /* readonly */
  8001. Matrix3 rotationMatrix;
  8002. float w;
  8003. float x;
  8004. float y;
  8005. /* readonly */
  8006. float yaw;
  8007. float z;
  8008. };
  8009. class Ray
  8010. {
  8011. // Methods:
  8012. Vector3 ClosestPoint(const Ray&) const;
  8013. void Define(const Vector3&, const Vector3&);
  8014. float Distance(const Vector3&) const;
  8015. float HitDistance(const BoundingBox&) const;
  8016. float HitDistance(const Frustum&, bool = true) const;
  8017. float HitDistance(const Plane&) const;
  8018. float HitDistance(const Sphere&) const;
  8019. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8020. Vector3 Project(const Vector3&) const;
  8021. Ray Transformed(const Matrix3x4&) const;
  8022. // Properties:
  8023. Vector3 direction;
  8024. Vector3 origin;
  8025. };
  8026. class RayQueryResult
  8027. {
  8028. // Properties:
  8029. float distance;
  8030. /* readonly */
  8031. Drawable drawable;
  8032. /* readonly */
  8033. Node node;
  8034. Vector3 normal;
  8035. Vector3 position;
  8036. uint subObject;
  8037. Vector2 textureUV;
  8038. };
  8039. class Rect
  8040. {
  8041. // Methods:
  8042. void Clear();
  8043. void Clip(const Rect&);
  8044. void Define(const Vector2&);
  8045. void Define(const Vector2&, const Vector2&);
  8046. bool Defined() const;
  8047. bool Equals(const Rect&) const;
  8048. Intersection IsInside(const Vector2&) const;
  8049. void Merge(const Rect&);
  8050. void Merge(const Vector2&);
  8051. Vector4 ToVector4() const;
  8052. // Properties:
  8053. float bottom;
  8054. /* readonly */
  8055. Vector2 center;
  8056. /* readonly */
  8057. Vector2 halfSize;
  8058. float left;
  8059. Vector2 max;
  8060. Vector2 min;
  8061. float right;
  8062. /* readonly */
  8063. Vector2 size;
  8064. float top;
  8065. };
  8066. class RefCounted
  8067. {
  8068. // Properties:
  8069. /* readonly */
  8070. int refs;
  8071. /* readonly */
  8072. int weakRefs;
  8073. };
  8074. class RenderPath
  8075. {
  8076. // Methods:
  8077. void AddCommand(const RenderPathCommand&);
  8078. void AddRenderTarget(const RenderTargetInfo&);
  8079. bool Append(XMLFile);
  8080. RenderPath Clone();
  8081. void InsertCommand(uint, const RenderPathCommand&);
  8082. bool Load(XMLFile);
  8083. void RemoveCommand(uint);
  8084. void RemoveCommands(const String&);
  8085. void RemoveRenderTarget(const String&);
  8086. void RemoveRenderTarget(uint);
  8087. void RemoveRenderTargts(const String&);
  8088. void SetEnabled(const String&, bool);
  8089. void ToggleEnabled(const String&);
  8090. // Properties:
  8091. Array<RenderPathCommand> commands;
  8092. /* readonly */
  8093. uint numCommands;
  8094. /* readonly */
  8095. uint numRenderTargets;
  8096. /* readonly */
  8097. int refs;
  8098. Array<RenderTargetInfo> renderTargets;
  8099. Array<Variant> shaderParameters;
  8100. /* readonly */
  8101. int weakRefs;
  8102. };
  8103. class RenderPathCommand
  8104. {
  8105. // Methods:
  8106. void RemoveShaderParameter(const String&);
  8107. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8108. // Properties:
  8109. BlendMode blendMode;
  8110. Color clearColor;
  8111. float clearDepth;
  8112. uint clearFlags;
  8113. uint clearStencil;
  8114. String depthStencilName;
  8115. bool enabled;
  8116. bool markToStencil;
  8117. String metadata;
  8118. uint numOutputs;
  8119. Array<CubeMapFace> outputFaces;
  8120. Array<String> outputNames;
  8121. String pass;
  8122. String pixelShaderDefines;
  8123. String pixelShaderName;
  8124. Array<Variant> shaderParameters;
  8125. RenderCommandSortMode sortMode;
  8126. String tag;
  8127. Array<String> textureNames;
  8128. RenderCommandType type;
  8129. bool useFogColor;
  8130. bool useLitBase;
  8131. bool vertexLights;
  8132. String vertexShaderDefines;
  8133. String vertexShaderName;
  8134. };
  8135. class RenderSurface
  8136. {
  8137. // Methods:
  8138. void QueueUpdate();
  8139. // Properties:
  8140. /* readonly */
  8141. int height;
  8142. RenderSurface linkedDepthStencil;
  8143. RenderSurface linkedRenderTarget;
  8144. uint numViewports;
  8145. /* readonly */
  8146. Texture parentTexture;
  8147. RenderSurfaceUpdateMode updateMode;
  8148. /* readonly */
  8149. TextureUsage usage;
  8150. Array<Viewport> viewports;
  8151. /* readonly */
  8152. int width;
  8153. };
  8154. class RenderTargetInfo
  8155. {
  8156. // Properties:
  8157. bool cubemap;
  8158. bool enabled;
  8159. bool filtered;
  8160. uint format;
  8161. String name;
  8162. bool persistent;
  8163. bool sRGB;
  8164. Vector2 size;
  8165. RenderTargetSizeMode sizeMode;
  8166. String tag;
  8167. };
  8168. class Renderer
  8169. {
  8170. // Methods:
  8171. void DrawDebugGeometry(bool) const;
  8172. bool HasSubscribedToEvent(Object, const String&);
  8173. bool HasSubscribedToEvent(const String&);
  8174. void ReloadShaders() const;
  8175. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8176. void SetDefaultRenderPath(XMLFile);
  8177. void SetVSMShadowParameters(float, float);
  8178. // Properties:
  8179. /* readonly */
  8180. String category;
  8181. /* readonly */
  8182. Material defaultLightRamp;
  8183. /* readonly */
  8184. Material defaultLightSpot;
  8185. /* readonly */
  8186. Material defaultMaterial;
  8187. RenderPath defaultRenderPath;
  8188. Technique defaultTechnique;
  8189. /* readonly */
  8190. Zone defaultZone;
  8191. bool drawShadows;
  8192. bool dynamicInstancing;
  8193. bool hdrRendering;
  8194. int materialQuality;
  8195. int maxOccluderTriangles;
  8196. int maxShadowMaps;
  8197. int maxSortedInstances;
  8198. int minInstances;
  8199. float mobileNormalOffsetMul;
  8200. float mobileShadowBiasAdd;
  8201. float mobileShadowBiasMul;
  8202. /* readonly */
  8203. uint numBatches;
  8204. /* readonly */
  8205. Array<uint> numGeometries;
  8206. /* readonly */
  8207. Array<uint> numLights;
  8208. /* readonly */
  8209. Array<uint> numOccluders;
  8210. /* readonly */
  8211. uint numPrimitives;
  8212. /* readonly */
  8213. Array<uint> numShadowMaps;
  8214. uint numViewports;
  8215. /* readonly */
  8216. uint numViews;
  8217. float occluderSizeThreshold;
  8218. int occlusionBufferSize;
  8219. /* readonly */
  8220. int refs;
  8221. bool reuseShadowMaps;
  8222. int shadowMapSize;
  8223. ShadowQuality shadowQuality;
  8224. float shadowSoftness;
  8225. bool specularLighting;
  8226. int textureAnisotropy;
  8227. TextureFilterMode textureFilterMode;
  8228. int textureQuality;
  8229. bool threadedOcclusion;
  8230. /* readonly */
  8231. StringHash type;
  8232. /* readonly */
  8233. String typeName;
  8234. Array<Viewport> viewports;
  8235. Vector2 vsmShadowParameters;
  8236. /* readonly */
  8237. int weakRefs;
  8238. };
  8239. class Resource
  8240. {
  8241. // Methods:
  8242. bool HasSubscribedToEvent(Object, const String&);
  8243. bool HasSubscribedToEvent(const String&);
  8244. bool Load(File);
  8245. bool Load(VectorBuffer&);
  8246. bool Save(File) const;
  8247. bool Save(VectorBuffer&) const;
  8248. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8249. // Properties:
  8250. /* readonly */
  8251. String category;
  8252. /* readonly */
  8253. uint memoryUse;
  8254. String name;
  8255. /* readonly */
  8256. int refs;
  8257. /* readonly */
  8258. StringHash type;
  8259. /* readonly */
  8260. String typeName;
  8261. /* readonly */
  8262. uint useTimer;
  8263. /* readonly */
  8264. int weakRefs;
  8265. };
  8266. class ResourceCache
  8267. {
  8268. // Methods:
  8269. bool AddManualResource(Resource);
  8270. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8271. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8272. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8273. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8274. bool Exists(const String&) const;
  8275. Resource GetExistingResource(StringHash, const String&);
  8276. Resource GetExistingResource(const String&, const String&);
  8277. File GetFile(const String&);
  8278. String GetPreferredResourceDir(const String&) const;
  8279. Resource GetResource(StringHash, const String&, bool = true);
  8280. Resource GetResource(const String&, const String&, bool = true);
  8281. String GetResourceFileName(const String&) const;
  8282. bool HasSubscribedToEvent(Object, const String&);
  8283. bool HasSubscribedToEvent(const String&);
  8284. void ReleaseAllResources(bool = false);
  8285. void ReleaseResource(const String&, const String&, bool = false);
  8286. void ReleaseResources(StringHash, bool = false);
  8287. void ReleaseResources(const String&, bool = false);
  8288. void ReleaseResources(const String&, const String&, bool = false);
  8289. bool ReloadResource(Resource);
  8290. void ReloadResourceWithDependencies(const String&);
  8291. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8292. void RemovePackageFile(const String&, bool = true, bool = false);
  8293. void RemoveResourceDir(const String&);
  8294. String SanitateResourceDirName(const String&) const;
  8295. String SanitateResourceName(const String&) const;
  8296. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8297. // Properties:
  8298. bool autoReloadResources;
  8299. /* readonly */
  8300. String category;
  8301. int finishBackgroundResourcesMs;
  8302. Array<uint64> memoryBudget;
  8303. /* readonly */
  8304. Array<uint64> memoryUse;
  8305. /* readonly */
  8306. uint numBackgroundLoadResources;
  8307. /* readonly */
  8308. Array<PackageFile> packageFiles;
  8309. /* readonly */
  8310. int refs;
  8311. /* readonly */
  8312. Array<String> resourceDirs;
  8313. bool returnFailedResources;
  8314. /* readonly */
  8315. bool seachPackagesFirst;
  8316. /* writeonly */
  8317. bool searchPackagesFirst;
  8318. /* readonly */
  8319. uint64 totalMemoryUse;
  8320. /* readonly */
  8321. StringHash type;
  8322. /* readonly */
  8323. String typeName;
  8324. /* readonly */
  8325. int weakRefs;
  8326. };
  8327. class ResourceRef
  8328. {
  8329. // Properties:
  8330. String name;
  8331. StringHash type;
  8332. };
  8333. class ResourceRefList
  8334. {
  8335. // Methods:
  8336. void Resize(uint);
  8337. // Properties:
  8338. /* readonly */
  8339. bool empty;
  8340. /* readonly */
  8341. uint length;
  8342. Array<String> names;
  8343. StringHash type;
  8344. };
  8345. class RigidBody
  8346. {
  8347. // Methods:
  8348. void Activate();
  8349. void ApplyAttributes();
  8350. void ApplyForce(const Vector3&);
  8351. void ApplyForce(const Vector3&, const Vector3&);
  8352. void ApplyImpulse(const Vector3&);
  8353. void ApplyImpulse(const Vector3&, const Vector3&);
  8354. void ApplyTorque(const Vector3&);
  8355. void ApplyTorqueImpulse(const Vector3&);
  8356. void DisableMassUpdate();
  8357. void DrawDebugGeometry(DebugRenderer, bool);
  8358. void EnableMassUpdate();
  8359. Variant GetAttribute(const String&) const;
  8360. ValueAnimation GetAttributeAnimation(const String&) const;
  8361. float GetAttributeAnimationSpeed(const String&) const;
  8362. float GetAttributeAnimationTime(const String&) const;
  8363. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8364. Variant GetAttributeDefault(const String&) const;
  8365. bool GetInterceptNetworkUpdate(const String&) const;
  8366. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8367. bool HasSubscribedToEvent(Object, const String&);
  8368. bool HasSubscribedToEvent(const String&);
  8369. bool Load(File, bool = false);
  8370. bool Load(VectorBuffer&, bool = false);
  8371. bool LoadJSON(const JSONValue&, bool = false);
  8372. bool LoadXML(const XMLElement&, bool = false);
  8373. void MarkNetworkUpdate() const;
  8374. void ReAddBodyToWorld();
  8375. void Remove();
  8376. void RemoveAttributeAnimation(const String&);
  8377. void RemoveInstanceDefault();
  8378. void RemoveObjectAnimation();
  8379. void ResetForces();
  8380. void ResetToDefault();
  8381. bool Save(File) const;
  8382. bool Save(VectorBuffer&) const;
  8383. bool SaveJSON(JSONValue&) const;
  8384. bool SaveXML(XMLElement&) const;
  8385. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8386. void SetAnimationTime(float);
  8387. bool SetAttribute(const String&, const Variant&);
  8388. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8389. void SetAttributeAnimationSpeed(const String&, float);
  8390. void SetAttributeAnimationTime(const String&, float);
  8391. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8392. void SetCollisionLayerAndMask(uint, uint);
  8393. void SetInterceptNetworkUpdate(const String&, bool);
  8394. void SetTransform(const Vector3&, const Quaternion&);
  8395. // Properties:
  8396. /* readonly */
  8397. bool active;
  8398. float angularDamping;
  8399. Vector3 angularFactor;
  8400. float angularRestThreshold;
  8401. Vector3 angularVelocity;
  8402. bool animationEnabled;
  8403. Vector3 anisotropicFriction;
  8404. /* readonly */
  8405. Array<Variant> attributeDefaults;
  8406. /* readonly */
  8407. Array<AttributeInfo> attributeInfos;
  8408. Array<Variant> attributes;
  8409. /* readonly */
  8410. String category;
  8411. float ccdMotionThreshold;
  8412. float ccdRadius;
  8413. /* readonly */
  8414. Vector3 centerOfMass;
  8415. /* readonly */
  8416. Array<RigidBody> collidingBodies;
  8417. CollisionEventMode collisionEventMode;
  8418. uint collisionLayer;
  8419. uint collisionMask;
  8420. float contactProcessingThreshold;
  8421. bool enabled;
  8422. /* readonly */
  8423. bool enabledEffective;
  8424. float friction;
  8425. Vector3 gravityOverride;
  8426. /* readonly */
  8427. uint id;
  8428. bool kinematic;
  8429. float linearDamping;
  8430. Vector3 linearFactor;
  8431. float linearRestThreshold;
  8432. Vector3 linearVelocity;
  8433. float mass;
  8434. /* readonly */
  8435. Node node;
  8436. /* readonly */
  8437. uint numAttributes;
  8438. ObjectAnimation objectAnimation;
  8439. Vector3 position;
  8440. /* readonly */
  8441. int refs;
  8442. float restitution;
  8443. float rollingFriction;
  8444. Quaternion rotation;
  8445. bool temporary;
  8446. bool trigger;
  8447. /* readonly */
  8448. StringHash type;
  8449. /* readonly */
  8450. String typeName;
  8451. bool useGravity;
  8452. /* readonly */
  8453. int weakRefs;
  8454. };
  8455. class RigidBody2D
  8456. {
  8457. // Methods:
  8458. void ApplyAngularImpulse(float, bool);
  8459. void ApplyAttributes();
  8460. void ApplyForce(const Vector2&, const Vector2&, bool);
  8461. void ApplyForceToCenter(const Vector2&, bool);
  8462. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8463. void ApplyTorque(float, bool);
  8464. void DrawDebugGeometry(DebugRenderer, bool);
  8465. Variant GetAttribute(const String&) const;
  8466. ValueAnimation GetAttributeAnimation(const String&) const;
  8467. float GetAttributeAnimationSpeed(const String&) const;
  8468. float GetAttributeAnimationTime(const String&) const;
  8469. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8470. Variant GetAttributeDefault(const String&) const;
  8471. bool GetInterceptNetworkUpdate(const String&) const;
  8472. bool HasSubscribedToEvent(Object, const String&);
  8473. bool HasSubscribedToEvent(const String&);
  8474. bool Load(File, bool = false);
  8475. bool Load(VectorBuffer&, bool = false);
  8476. bool LoadJSON(const JSONValue&, bool = false);
  8477. bool LoadXML(const XMLElement&, bool = false);
  8478. void MarkNetworkUpdate() const;
  8479. void Remove();
  8480. void RemoveAttributeAnimation(const String&);
  8481. void RemoveInstanceDefault();
  8482. void RemoveObjectAnimation();
  8483. void ResetToDefault();
  8484. bool Save(File) const;
  8485. bool Save(VectorBuffer&) const;
  8486. bool SaveJSON(JSONValue&) const;
  8487. bool SaveXML(XMLElement&) const;
  8488. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8489. void SetAnimationTime(float);
  8490. bool SetAttribute(const String&, const Variant&);
  8491. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8492. void SetAttributeAnimationSpeed(const String&, float);
  8493. void SetAttributeAnimationTime(const String&, float);
  8494. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8495. void SetInterceptNetworkUpdate(const String&, bool);
  8496. // Properties:
  8497. bool allowSleep;
  8498. float angularDamping;
  8499. bool animationEnabled;
  8500. /* readonly */
  8501. Array<Variant> attributeDefaults;
  8502. /* readonly */
  8503. Array<AttributeInfo> attributeInfos;
  8504. Array<Variant> attributes;
  8505. bool awake;
  8506. BodyType2D bodyType;
  8507. bool bullet;
  8508. /* readonly */
  8509. String category;
  8510. bool enabled;
  8511. /* readonly */
  8512. bool enabledEffective;
  8513. bool fixedRotation;
  8514. float gravityScale;
  8515. /* readonly */
  8516. uint id;
  8517. float inertia;
  8518. float linearDamping;
  8519. Vector2 linearVelocity;
  8520. float mass;
  8521. Vector2 massCenter;
  8522. /* readonly */
  8523. Node node;
  8524. /* readonly */
  8525. uint numAttributes;
  8526. ObjectAnimation objectAnimation;
  8527. /* readonly */
  8528. int refs;
  8529. bool temporary;
  8530. /* readonly */
  8531. StringHash type;
  8532. /* readonly */
  8533. String typeName;
  8534. bool useFixtureMass;
  8535. /* readonly */
  8536. int weakRefs;
  8537. };
  8538. class Scene
  8539. {
  8540. // Methods:
  8541. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8542. void AddRequiredPackageFile(PackageFile);
  8543. void AddTag(const String&);
  8544. void AddTags(const String&, int8 = ';');
  8545. void ApplyAttributes();
  8546. void Clear(bool = true, bool = true);
  8547. void ClearRequiredPackageFiles();
  8548. Component CloneComponent(Component, CreateMode, uint = 0);
  8549. Component CloneComponent(Component, uint = 0);
  8550. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8551. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8552. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8553. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8554. Variant GetAttribute(const String&) const;
  8555. ValueAnimation GetAttributeAnimation(const String&) const;
  8556. float GetAttributeAnimationSpeed(const String&) const;
  8557. float GetAttributeAnimationTime(const String&) const;
  8558. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8559. Variant GetAttributeDefault(const String&) const;
  8560. Node GetChild(const String&, bool = false) const;
  8561. Array<Node> GetChildren(bool = false) const;
  8562. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8563. Array<Node> GetChildrenWithScript(bool = false) const;
  8564. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8565. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8566. Component GetComponent(const String&, bool = false) const;
  8567. Component GetComponent(uint) const;
  8568. Array<Component> GetComponents() const;
  8569. Array<Component> GetComponents(const String&, bool = false) const;
  8570. bool GetInterceptNetworkUpdate(const String&) const;
  8571. Node GetNode(uint) const;
  8572. Array<Node> GetNodesWithTag(const String&) const;
  8573. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8574. Component GetParentComponent(const String&, bool = false) const;
  8575. ScriptObject GetScriptObject() const;
  8576. ScriptObject GetScriptObject(const String&) const;
  8577. bool HasComponent(const String&) const;
  8578. bool HasSubscribedToEvent(Object, const String&);
  8579. bool HasSubscribedToEvent(const String&);
  8580. bool HasTag(const String&);
  8581. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8582. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8583. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8584. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8585. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8586. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8587. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8588. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8589. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8590. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8591. bool Load(File, bool = false);
  8592. bool Load(VectorBuffer&, bool = false);
  8593. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8594. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8595. bool LoadJSON(File);
  8596. bool LoadJSON(VectorBuffer&);
  8597. bool LoadJSON(const JSONValue&, bool = false);
  8598. bool LoadXML(File);
  8599. bool LoadXML(VectorBuffer&);
  8600. bool LoadXML(const XMLElement&, bool = false);
  8601. Vector3 LocalToWorld(const Vector3&) const;
  8602. Vector3 LocalToWorld(const Vector4&) const;
  8603. Vector2 LocalToWorld2D(const Vector2&) const;
  8604. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8605. void MarkNetworkUpdate() const;
  8606. void Pitch(float, TransformSpace = TS_LOCAL);
  8607. void RegisterVar(const String&);
  8608. void Remove();
  8609. void RemoveAllChildren();
  8610. void RemoveAllComponents();
  8611. void RemoveAllTags();
  8612. void RemoveAttributeAnimation(const String&);
  8613. void RemoveChild(Node);
  8614. void RemoveChildren(bool, bool, bool);
  8615. void RemoveComponent(Component);
  8616. void RemoveComponent(const String&);
  8617. void RemoveComponents(bool, bool);
  8618. void RemoveComponents(const String&);
  8619. void RemoveInstanceDefault();
  8620. void RemoveObjectAnimation();
  8621. bool RemoveTag(const String&);
  8622. void ResetToDefault();
  8623. void Roll(float, TransformSpace = TS_LOCAL);
  8624. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8625. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8626. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8627. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8628. bool Save(File) const;
  8629. bool Save(VectorBuffer&) const;
  8630. bool SaveJSON(File, const String& = "\t");
  8631. bool SaveJSON(JSONValue&) const;
  8632. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8633. bool SaveXML(File, const String& = "\t");
  8634. bool SaveXML(VectorBuffer&, const String& = "\t");
  8635. bool SaveXML(XMLElement&) const;
  8636. void Scale(const Vector3&);
  8637. void Scale(float);
  8638. void Scale2D(const Vector2&);
  8639. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8640. void SetAnimationTime(float);
  8641. bool SetAttribute(const String&, const Variant&);
  8642. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8643. void SetAttributeAnimationSpeed(const String&, float);
  8644. void SetAttributeAnimationTime(const String&, float);
  8645. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8646. void SetInterceptNetworkUpdate(const String&, bool);
  8647. void SetPosition2D(float, float);
  8648. void SetScale(float);
  8649. void SetScale2D(float, float);
  8650. void SetTransform(const Vector3&, const Quaternion&);
  8651. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8652. void SetTransform(const Vector3&, const Quaternion&, float);
  8653. void SetTransform2D(const Vector2&, float);
  8654. void SetTransform2D(const Vector2&, float, const Vector2&);
  8655. void SetTransform2D(const Vector2&, float, float);
  8656. void SetWorldTransform(const Vector3&, const Quaternion&);
  8657. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8658. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8659. void SetWorldTransform2D(const Vector2&, float);
  8660. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8661. void SetWorldTransform2D(const Vector2&, float, float);
  8662. void StopAsyncLoading();
  8663. const String& GetVarName(StringHash) const;
  8664. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8665. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8666. void UnregisterAllVars(const String&);
  8667. void UnregisterVar(const String&);
  8668. void Update(float);
  8669. Vector3 WorldToLocal(const Vector3&) const;
  8670. Vector3 WorldToLocal(const Vector4&) const;
  8671. Vector2 WorldToLocal2D(const Vector2&) const;
  8672. void Yaw(float, TransformSpace = TS_LOCAL);
  8673. // Properties:
  8674. bool animationEnabled;
  8675. /* readonly */
  8676. LoadMode asyncLoadMode;
  8677. /* readonly */
  8678. bool asyncLoading;
  8679. int asyncLoadingMs;
  8680. /* readonly */
  8681. float asyncProgress;
  8682. /* readonly */
  8683. Array<Variant> attributeDefaults;
  8684. /* readonly */
  8685. Array<AttributeInfo> attributeInfos;
  8686. Array<Variant> attributes;
  8687. /* readonly */
  8688. String category;
  8689. /* readonly */
  8690. uint checksum;
  8691. /* readonly */
  8692. Array<Node> children;
  8693. /* readonly */
  8694. Array<Component> components;
  8695. /* readonly */
  8696. DebugRenderer debugRenderer;
  8697. Vector3 direction;
  8698. float elapsedTime;
  8699. /* readonly */
  8700. String fileName;
  8701. /* readonly */
  8702. uint id;
  8703. String name;
  8704. /* readonly */
  8705. uint numAllChildren;
  8706. /* readonly */
  8707. uint numAttributes;
  8708. /* readonly */
  8709. uint numChildren;
  8710. /* readonly */
  8711. uint numComponents;
  8712. ObjectAnimation objectAnimation;
  8713. /* readonly */
  8714. Octree octree;
  8715. Node parent;
  8716. /* readonly */
  8717. PhysicsWorld physicsWorld;
  8718. /* readonly */
  8719. PhysicsWorld2D physicsWorld2D;
  8720. Vector3 position;
  8721. Vector2 position2D;
  8722. /* readonly */
  8723. int refs;
  8724. /* readonly */
  8725. Array<PackageFile> requiredPackageFiles;
  8726. /* readonly */
  8727. Vector3 right;
  8728. Quaternion rotation;
  8729. float rotation2D;
  8730. Vector3 scale;
  8731. Vector2 scale2D;
  8732. /* readonly */
  8733. ScriptObject scriptObject;
  8734. float smoothingConstant;
  8735. float snapThreshold;
  8736. /* readonly */
  8737. Array<String> tags;
  8738. bool temporary;
  8739. float timeScale;
  8740. /* readonly */
  8741. Matrix3x4 transform;
  8742. /* readonly */
  8743. StringHash type;
  8744. /* readonly */
  8745. String typeName;
  8746. /* readonly */
  8747. Vector3 up;
  8748. bool updateEnabled;
  8749. /* readonly */
  8750. VariantMap vars;
  8751. /* readonly */
  8752. int weakRefs;
  8753. Vector3 worldDirection;
  8754. Vector3 worldPosition;
  8755. Vector2 worldPosition2D;
  8756. /* readonly */
  8757. Vector3 worldRight;
  8758. Quaternion worldRotation;
  8759. float worldRotation2D;
  8760. Vector3 worldScale;
  8761. Vector2 worldScale2D;
  8762. /* readonly */
  8763. Matrix3x4 worldTransform;
  8764. /* readonly */
  8765. Vector3 worldUp;
  8766. };
  8767. class Script
  8768. {
  8769. // Methods:
  8770. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8771. bool Execute(const String&);
  8772. bool HasSubscribedToEvent(Object, const String&);
  8773. bool HasSubscribedToEvent(const String&);
  8774. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8775. // Properties:
  8776. /* readonly */
  8777. String category;
  8778. Scene defaultScene;
  8779. ScriptFile defaultScriptFile;
  8780. bool executeConsoleCommands;
  8781. /* readonly */
  8782. int refs;
  8783. /* readonly */
  8784. StringHash type;
  8785. /* readonly */
  8786. String typeName;
  8787. /* readonly */
  8788. int weakRefs;
  8789. };
  8790. class ScriptFile
  8791. {
  8792. // Methods:
  8793. void ClearDelayedExecute(const String& = String ( ));
  8794. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8795. bool Execute(const String&, const Array<Variant> = null);
  8796. bool HasSubscribedToEvent(Object, const String&);
  8797. bool HasSubscribedToEvent(const String&);
  8798. bool Load(File);
  8799. bool Load(VectorBuffer&);
  8800. bool Save(File) const;
  8801. bool Save(VectorBuffer&) const;
  8802. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8803. // Properties:
  8804. /* readonly */
  8805. String category;
  8806. /* readonly */
  8807. bool compiled;
  8808. /* readonly */
  8809. uint memoryUse;
  8810. String name;
  8811. /* readonly */
  8812. int refs;
  8813. /* readonly */
  8814. StringHash type;
  8815. /* readonly */
  8816. String typeName;
  8817. /* readonly */
  8818. uint useTimer;
  8819. /* readonly */
  8820. int weakRefs;
  8821. };
  8822. class ScriptInstance
  8823. {
  8824. // Methods:
  8825. void ApplyAttributes();
  8826. void ClearDelayedExecute(const String& = String ( ));
  8827. bool CreateObject(ScriptFile, const String&);
  8828. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8829. void DrawDebugGeometry(DebugRenderer, bool);
  8830. bool Execute(const String&, const Array<Variant> = null);
  8831. Variant GetAttribute(const String&) const;
  8832. ValueAnimation GetAttributeAnimation(const String&) const;
  8833. float GetAttributeAnimationSpeed(const String&) const;
  8834. float GetAttributeAnimationTime(const String&) const;
  8835. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8836. Variant GetAttributeDefault(const String&) const;
  8837. bool GetInterceptNetworkUpdate(const String&) const;
  8838. bool HasMethod(const String&) const;
  8839. bool HasSubscribedToEvent(Object, const String&);
  8840. bool HasSubscribedToEvent(const String&);
  8841. bool IsA(const String&) const;
  8842. bool Load(File, bool = false);
  8843. bool Load(VectorBuffer&, bool = false);
  8844. bool LoadJSON(const JSONValue&, bool = false);
  8845. bool LoadXML(const XMLElement&, bool = false);
  8846. void MarkNetworkUpdate() const;
  8847. void Remove();
  8848. void RemoveAttributeAnimation(const String&);
  8849. void RemoveInstanceDefault();
  8850. void RemoveObjectAnimation();
  8851. void ResetToDefault();
  8852. bool Save(File) const;
  8853. bool Save(VectorBuffer&) const;
  8854. bool SaveJSON(JSONValue&) const;
  8855. bool SaveXML(XMLElement&) const;
  8856. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8857. void SetAnimationTime(float);
  8858. bool SetAttribute(const String&, const Variant&);
  8859. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8860. void SetAttributeAnimationSpeed(const String&, float);
  8861. void SetAttributeAnimationTime(const String&, float);
  8862. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8863. void SetInterceptNetworkUpdate(const String&, bool);
  8864. // Properties:
  8865. bool animationEnabled;
  8866. /* readonly */
  8867. Array<Variant> attributeDefaults;
  8868. /* readonly */
  8869. Array<AttributeInfo> attributeInfos;
  8870. Array<Variant> attributes;
  8871. /* readonly */
  8872. String category;
  8873. String className;
  8874. bool enabled;
  8875. /* readonly */
  8876. bool enabledEffective;
  8877. /* readonly */
  8878. uint id;
  8879. /* readonly */
  8880. Node node;
  8881. /* readonly */
  8882. uint numAttributes;
  8883. ObjectAnimation objectAnimation;
  8884. /* readonly */
  8885. int refs;
  8886. ScriptFile scriptFile;
  8887. /* readonly */
  8888. ScriptObject scriptObject;
  8889. bool temporary;
  8890. /* readonly */
  8891. StringHash type;
  8892. /* readonly */
  8893. String typeName;
  8894. /* readonly */
  8895. int weakRefs;
  8896. };
  8897. class ScriptObject
  8898. {
  8899. };
  8900. class ScrollBar
  8901. {
  8902. // Methods:
  8903. void AddChild(UIElement);
  8904. void AddTag(const String&);
  8905. void AddTags(const String&, int8 = ';');
  8906. void ApplyAttributes();
  8907. void BringToFront();
  8908. void ChangeValue(float);
  8909. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8910. void DisableLayoutUpdate();
  8911. IntVector2 ElementToScreen(const IntVector2&);
  8912. void EnableLayoutUpdate();
  8913. uint FindChild(UIElement) const;
  8914. Variant GetAttribute(const String&) const;
  8915. ValueAnimation GetAttributeAnimation(const String&) const;
  8916. float GetAttributeAnimationSpeed(const String&) const;
  8917. float GetAttributeAnimationTime(const String&) const;
  8918. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8919. Variant GetAttributeDefault(const String&) const;
  8920. UIElement GetChild(const String&, bool = false) const;
  8921. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8922. Array<UIElement> GetChildren(bool = false) const;
  8923. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8924. UIElement GetElementEventSender() const;
  8925. bool GetInterceptNetworkUpdate(const String&) const;
  8926. uint GetNumChildren(bool) const;
  8927. bool HasSubscribedToEvent(Object, const String&);
  8928. bool HasSubscribedToEvent(const String&);
  8929. bool HasTag(const String&) const;
  8930. void InsertChild(uint, UIElement);
  8931. bool IsInside(IntVector2, bool);
  8932. bool IsInsideCombined(IntVector2, bool);
  8933. bool Load(File, bool = false);
  8934. bool Load(VectorBuffer&, bool = false);
  8935. bool LoadChildXML(XMLFile, XMLFile = null);
  8936. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8937. bool LoadJSON(const JSONValue&, bool = false);
  8938. bool LoadXML(File);
  8939. bool LoadXML(VectorBuffer&);
  8940. bool LoadXML(XMLFile, XMLFile);
  8941. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8942. bool LoadXML(const XMLElement&, bool = false);
  8943. void MarkNetworkUpdate() const;
  8944. void Remove();
  8945. void RemoveAllChildren();
  8946. void RemoveAllTags();
  8947. void RemoveAttributeAnimation(const String&);
  8948. void RemoveChild(UIElement, uint = 0);
  8949. void RemoveChild(uint);
  8950. void RemoveInstanceDefault();
  8951. void RemoveObjectAnimation();
  8952. bool RemoveTag(const String&);
  8953. void ResetDeepEnabled();
  8954. void ResetToDefault();
  8955. bool Save(File) const;
  8956. bool Save(VectorBuffer&) const;
  8957. bool SaveJSON(JSONValue&) const;
  8958. bool SaveXML(File, const String& = "\t");
  8959. bool SaveXML(VectorBuffer&, const String& = "\t");
  8960. bool SaveXML(XMLElement&) const;
  8961. IntVector2 ScreenToElement(const IntVector2&);
  8962. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8963. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8964. void SetAnimationTime(float);
  8965. bool SetAttribute(const String&, const Variant&);
  8966. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8967. void SetAttributeAnimationSpeed(const String&, float);
  8968. void SetAttributeAnimationTime(const String&, float);
  8969. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8970. void SetDeepEnabled(bool);
  8971. void SetEnabledRecursive(bool);
  8972. void SetFixedHeight(int);
  8973. void SetFixedSize(int, int);
  8974. void SetFixedWidth(int);
  8975. void SetInterceptNetworkUpdate(const String&, bool);
  8976. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8977. void SetMaxSize(int, int);
  8978. void SetMinSize(int, int);
  8979. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8980. void SetPosition(int, int);
  8981. void SetSize(int, int);
  8982. bool SetStyle(const String&, XMLFile = null);
  8983. bool SetStyle(const XMLElement&);
  8984. bool SetStyleAuto(XMLFile = null);
  8985. void StepBack();
  8986. void StepForward();
  8987. void UpdateLayout();
  8988. const Variant& GetVar(const StringHash&);
  8989. // Properties:
  8990. bool animationEnabled;
  8991. /* readonly */
  8992. Array<Variant> attributeDefaults;
  8993. /* readonly */
  8994. Array<AttributeInfo> attributeInfos;
  8995. Array<Variant> attributes;
  8996. /* readonly */
  8997. Button backButton;
  8998. bool bringToBack;
  8999. bool bringToFront;
  9000. /* readonly */
  9001. String category;
  9002. /* readonly */
  9003. IntVector2 childOffset;
  9004. /* readonly */
  9005. Array<UIElement> children;
  9006. IntRect clipBorder;
  9007. bool clipChildren;
  9008. /* writeonly */
  9009. Color color;
  9010. /* readonly */
  9011. bool colorGradient;
  9012. Array<Color> colors;
  9013. /* readonly */
  9014. IntRect combinedScreenRect;
  9015. XMLFile defaultStyle;
  9016. /* readonly */
  9017. float derivedOpacity;
  9018. /* readonly */
  9019. uint dragButtonCombo;
  9020. /* readonly */
  9021. int dragButtonCount;
  9022. uint dragDropMode;
  9023. bool editable;
  9024. /* readonly */
  9025. float effectiveScrollStep;
  9026. bool elementEventSender;
  9027. bool enabled;
  9028. /* readonly */
  9029. bool enabledSelf;
  9030. /* readonly */
  9031. bool fixedHeight;
  9032. /* readonly */
  9033. bool fixedSize;
  9034. /* readonly */
  9035. bool fixedWidth;
  9036. bool focus;
  9037. FocusMode focusMode;
  9038. /* readonly */
  9039. Button forwardButton;
  9040. int height;
  9041. HorizontalAlignment horizontalAlignment;
  9042. /* readonly */
  9043. bool hovering;
  9044. int indent;
  9045. int indentSpacing;
  9046. /* readonly */
  9047. int indentWidth;
  9048. bool internal;
  9049. IntRect layoutBorder;
  9050. Vector2 layoutFlexScale;
  9051. LayoutMode layoutMode;
  9052. int layoutSpacing;
  9053. int maxHeight;
  9054. IntVector2 maxSize;
  9055. int maxWidth;
  9056. int minHeight;
  9057. IntVector2 minSize;
  9058. int minWidth;
  9059. String name;
  9060. /* readonly */
  9061. uint numAllChildren;
  9062. /* readonly */
  9063. uint numAttributes;
  9064. /* readonly */
  9065. uint numChildren;
  9066. ObjectAnimation objectAnimation;
  9067. float opacity;
  9068. Orientation orientation;
  9069. UIElement parent;
  9070. IntVector2 position;
  9071. int priority;
  9072. float range;
  9073. /* readonly */
  9074. int refs;
  9075. /* readonly */
  9076. UIElement root;
  9077. /* readonly */
  9078. IntVector2 screenPosition;
  9079. float scrollStep;
  9080. bool selected;
  9081. IntVector2 size;
  9082. /* readonly */
  9083. Slider slider;
  9084. bool sortChildren;
  9085. float stepFactor;
  9086. String style;
  9087. /* readonly */
  9088. Array<String> tags;
  9089. bool temporary;
  9090. TraversalMode traversalMode;
  9091. /* readonly */
  9092. StringHash type;
  9093. /* readonly */
  9094. String typeName;
  9095. bool useDerivedOpacity;
  9096. float value;
  9097. /* readonly */
  9098. VariantMap vars;
  9099. VerticalAlignment verticalAlignment;
  9100. bool visible;
  9101. /* readonly */
  9102. bool visibleEffective;
  9103. /* readonly */
  9104. int weakRefs;
  9105. int width;
  9106. };
  9107. class ScrollView
  9108. {
  9109. // Methods:
  9110. void AddChild(UIElement);
  9111. void AddTag(const String&);
  9112. void AddTags(const String&, int8 = ';');
  9113. void ApplyAttributes();
  9114. void BringToFront();
  9115. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9116. void DisableLayoutUpdate();
  9117. IntVector2 ElementToScreen(const IntVector2&);
  9118. void EnableLayoutUpdate();
  9119. uint FindChild(UIElement) const;
  9120. Variant GetAttribute(const String&) const;
  9121. ValueAnimation GetAttributeAnimation(const String&) const;
  9122. float GetAttributeAnimationSpeed(const String&) const;
  9123. float GetAttributeAnimationTime(const String&) const;
  9124. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9125. Variant GetAttributeDefault(const String&) const;
  9126. UIElement GetChild(const String&, bool = false) const;
  9127. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9128. Array<UIElement> GetChildren(bool = false) const;
  9129. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9130. UIElement GetElementEventSender() const;
  9131. bool GetInterceptNetworkUpdate(const String&) const;
  9132. uint GetNumChildren(bool) const;
  9133. bool HasSubscribedToEvent(Object, const String&);
  9134. bool HasSubscribedToEvent(const String&);
  9135. bool HasTag(const String&) const;
  9136. void InsertChild(uint, UIElement);
  9137. bool IsInside(IntVector2, bool);
  9138. bool IsInsideCombined(IntVector2, bool);
  9139. bool Load(File, bool = false);
  9140. bool Load(VectorBuffer&, bool = false);
  9141. bool LoadChildXML(XMLFile, XMLFile = null);
  9142. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9143. bool LoadJSON(const JSONValue&, bool = false);
  9144. bool LoadXML(File);
  9145. bool LoadXML(VectorBuffer&);
  9146. bool LoadXML(XMLFile, XMLFile);
  9147. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9148. bool LoadXML(const XMLElement&, bool = false);
  9149. void MarkNetworkUpdate() const;
  9150. void Remove();
  9151. void RemoveAllChildren();
  9152. void RemoveAllTags();
  9153. void RemoveAttributeAnimation(const String&);
  9154. void RemoveChild(UIElement, uint = 0);
  9155. void RemoveChild(uint);
  9156. void RemoveInstanceDefault();
  9157. void RemoveObjectAnimation();
  9158. bool RemoveTag(const String&);
  9159. void ResetDeepEnabled();
  9160. void ResetToDefault();
  9161. bool Save(File) const;
  9162. bool Save(VectorBuffer&) const;
  9163. bool SaveJSON(JSONValue&) const;
  9164. bool SaveXML(File, const String& = "\t");
  9165. bool SaveXML(VectorBuffer&, const String& = "\t");
  9166. bool SaveXML(XMLElement&) const;
  9167. IntVector2 ScreenToElement(const IntVector2&);
  9168. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9169. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9170. void SetAnimationTime(float);
  9171. bool SetAttribute(const String&, const Variant&);
  9172. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9173. void SetAttributeAnimationSpeed(const String&, float);
  9174. void SetAttributeAnimationTime(const String&, float);
  9175. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9176. void SetDeepEnabled(bool);
  9177. void SetEnabledRecursive(bool);
  9178. void SetFixedHeight(int);
  9179. void SetFixedSize(int, int);
  9180. void SetFixedWidth(int);
  9181. void SetInterceptNetworkUpdate(const String&, bool);
  9182. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9183. void SetMaxSize(int, int);
  9184. void SetMinSize(int, int);
  9185. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9186. void SetPosition(int, int);
  9187. void SetScrollBarsVisible(bool, bool);
  9188. void SetSize(int, int);
  9189. bool SetStyle(const String&, XMLFile = null);
  9190. bool SetStyle(const XMLElement&);
  9191. bool SetStyleAuto(XMLFile = null);
  9192. void SetViewPosition(int, int);
  9193. void UpdateLayout();
  9194. const Variant& GetVar(const StringHash&);
  9195. // Properties:
  9196. bool animationEnabled;
  9197. /* readonly */
  9198. Array<Variant> attributeDefaults;
  9199. /* readonly */
  9200. Array<AttributeInfo> attributeInfos;
  9201. Array<Variant> attributes;
  9202. bool autoDisableChildren;
  9203. float autoDisableThreshold;
  9204. bool bringToBack;
  9205. bool bringToFront;
  9206. /* readonly */
  9207. String category;
  9208. /* readonly */
  9209. IntVector2 childOffset;
  9210. /* readonly */
  9211. Array<UIElement> children;
  9212. IntRect clipBorder;
  9213. bool clipChildren;
  9214. /* writeonly */
  9215. Color color;
  9216. /* readonly */
  9217. bool colorGradient;
  9218. Array<Color> colors;
  9219. /* readonly */
  9220. IntRect combinedScreenRect;
  9221. UIElement contentElement;
  9222. XMLFile defaultStyle;
  9223. /* readonly */
  9224. float derivedOpacity;
  9225. /* readonly */
  9226. uint dragButtonCombo;
  9227. /* readonly */
  9228. int dragButtonCount;
  9229. uint dragDropMode;
  9230. bool editable;
  9231. bool elementEventSender;
  9232. bool enabled;
  9233. /* readonly */
  9234. bool enabledSelf;
  9235. /* readonly */
  9236. bool fixedHeight;
  9237. /* readonly */
  9238. bool fixedSize;
  9239. /* readonly */
  9240. bool fixedWidth;
  9241. bool focus;
  9242. FocusMode focusMode;
  9243. int height;
  9244. HorizontalAlignment horizontalAlignment;
  9245. /* readonly */
  9246. ScrollBar horizontalScrollBar;
  9247. /* readonly */
  9248. bool hovering;
  9249. int indent;
  9250. int indentSpacing;
  9251. /* readonly */
  9252. int indentWidth;
  9253. bool internal;
  9254. IntRect layoutBorder;
  9255. Vector2 layoutFlexScale;
  9256. LayoutMode layoutMode;
  9257. int layoutSpacing;
  9258. int maxHeight;
  9259. IntVector2 maxSize;
  9260. int maxWidth;
  9261. int minHeight;
  9262. IntVector2 minSize;
  9263. int minWidth;
  9264. String name;
  9265. /* readonly */
  9266. uint numAllChildren;
  9267. /* readonly */
  9268. uint numAttributes;
  9269. /* readonly */
  9270. uint numChildren;
  9271. ObjectAnimation objectAnimation;
  9272. float opacity;
  9273. float pageStep;
  9274. UIElement parent;
  9275. IntVector2 position;
  9276. int priority;
  9277. /* readonly */
  9278. int refs;
  9279. /* readonly */
  9280. UIElement root;
  9281. /* readonly */
  9282. IntVector2 screenPosition;
  9283. bool scrollBarsAutoVisible;
  9284. float scrollDeceleration;
  9285. /* readonly */
  9286. BorderImage scrollPanel;
  9287. float scrollSnapEpsilon;
  9288. float scrollStep;
  9289. bool selected;
  9290. IntVector2 size;
  9291. bool sortChildren;
  9292. String style;
  9293. /* readonly */
  9294. Array<String> tags;
  9295. bool temporary;
  9296. TraversalMode traversalMode;
  9297. /* readonly */
  9298. StringHash type;
  9299. /* readonly */
  9300. String typeName;
  9301. bool useDerivedOpacity;
  9302. /* readonly */
  9303. VariantMap vars;
  9304. VerticalAlignment verticalAlignment;
  9305. /* readonly */
  9306. ScrollBar verticalScrollBar;
  9307. IntVector2 viewPosition;
  9308. bool visible;
  9309. /* readonly */
  9310. bool visibleEffective;
  9311. /* readonly */
  9312. int weakRefs;
  9313. int width;
  9314. };
  9315. class Serializable
  9316. {
  9317. // Methods:
  9318. void ApplyAttributes();
  9319. Variant GetAttribute(const String&) const;
  9320. Variant GetAttributeDefault(const String&) const;
  9321. bool GetInterceptNetworkUpdate(const String&) const;
  9322. bool HasSubscribedToEvent(Object, const String&);
  9323. bool HasSubscribedToEvent(const String&);
  9324. bool Load(File, bool = false);
  9325. bool Load(VectorBuffer&, bool = false);
  9326. bool LoadJSON(const JSONValue&, bool = false);
  9327. bool LoadXML(const XMLElement&, bool = false);
  9328. void MarkNetworkUpdate() const;
  9329. void RemoveInstanceDefault();
  9330. void ResetToDefault();
  9331. bool Save(File) const;
  9332. bool Save(VectorBuffer&) const;
  9333. bool SaveJSON(JSONValue&) const;
  9334. bool SaveXML(XMLElement&) const;
  9335. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9336. bool SetAttribute(const String&, const Variant&);
  9337. void SetInterceptNetworkUpdate(const String&, bool);
  9338. // Properties:
  9339. /* readonly */
  9340. Array<Variant> attributeDefaults;
  9341. /* readonly */
  9342. Array<AttributeInfo> attributeInfos;
  9343. Array<Variant> attributes;
  9344. /* readonly */
  9345. String category;
  9346. /* readonly */
  9347. uint numAttributes;
  9348. /* readonly */
  9349. int refs;
  9350. bool temporary;
  9351. /* readonly */
  9352. StringHash type;
  9353. /* readonly */
  9354. String typeName;
  9355. /* readonly */
  9356. int weakRefs;
  9357. };
  9358. class Serializer
  9359. {
  9360. // Methods:
  9361. uint Write(Array<uint8>);
  9362. bool WriteBool(bool);
  9363. bool WriteBoundingBox(const BoundingBox&);
  9364. bool WriteByte(int8);
  9365. bool WriteColor(const Color&);
  9366. bool WriteDouble(double);
  9367. bool WriteFileID(const String&);
  9368. bool WriteFloat(float);
  9369. bool WriteInt(int);
  9370. bool WriteIntRect(const IntRect&);
  9371. bool WriteIntVector2(const IntVector2&);
  9372. bool WriteLine(const String&);
  9373. bool WriteMatrix3(const Matrix3&);
  9374. bool WriteMatrix3x4(const Matrix3x4&);
  9375. bool WriteMatrix4(const Matrix4&);
  9376. bool WriteNetID(uint);
  9377. bool WritePackedQuaternion(const Quaternion&);
  9378. bool WritePackedVector3(const Vector3&, float);
  9379. bool WriteQuaternion(const Quaternion&);
  9380. bool WriteShort(int16);
  9381. bool WriteString(const String&);
  9382. bool WriteStringHash(const StringHash&);
  9383. bool WriteUByte(uint8);
  9384. bool WriteUInt(uint);
  9385. bool WriteUShort(uint16);
  9386. bool WriteVLE(uint);
  9387. bool WriteVariant(const Variant&);
  9388. bool WriteVariantMap(const VariantMap&);
  9389. bool WriteVector2(const Vector2&);
  9390. bool WriteVector3(const Vector3&);
  9391. bool WriteVector4(const Vector4&);
  9392. bool WriteVectorBuffer(const VectorBuffer&);
  9393. };
  9394. class Skeleton
  9395. {
  9396. // Methods:
  9397. Bone GetBone(const String&) const;
  9398. void Reset();
  9399. // Properties:
  9400. /* readonly */
  9401. Array<Bone> bones;
  9402. /* readonly */
  9403. uint numBones;
  9404. /* readonly */
  9405. Bone rootBone;
  9406. };
  9407. class Skybox
  9408. {
  9409. // Methods:
  9410. void ApplyAttributes();
  9411. void ApplyMaterialList(const String& = String ( ));
  9412. void DrawDebugGeometry(DebugRenderer, bool);
  9413. Variant GetAttribute(const String&) const;
  9414. ValueAnimation GetAttributeAnimation(const String&) const;
  9415. float GetAttributeAnimationSpeed(const String&) const;
  9416. float GetAttributeAnimationTime(const String&) const;
  9417. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9418. Variant GetAttributeDefault(const String&) const;
  9419. bool GetInterceptNetworkUpdate(const String&) const;
  9420. bool HasSubscribedToEvent(Object, const String&);
  9421. bool HasSubscribedToEvent(const String&);
  9422. bool IsInView(Camera) const;
  9423. bool Load(File, bool = false);
  9424. bool Load(VectorBuffer&, bool = false);
  9425. bool LoadJSON(const JSONValue&, bool = false);
  9426. bool LoadXML(const XMLElement&, bool = false);
  9427. void MarkNetworkUpdate() const;
  9428. void Remove();
  9429. void RemoveAttributeAnimation(const String&);
  9430. void RemoveInstanceDefault();
  9431. void RemoveObjectAnimation();
  9432. void ResetToDefault();
  9433. bool Save(File) const;
  9434. bool Save(VectorBuffer&) const;
  9435. bool SaveJSON(JSONValue&) const;
  9436. bool SaveXML(XMLElement&) const;
  9437. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9438. void SetAnimationTime(float);
  9439. bool SetAttribute(const String&, const Variant&);
  9440. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9441. void SetAttributeAnimationSpeed(const String&, float);
  9442. void SetAttributeAnimationTime(const String&, float);
  9443. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9444. void SetInterceptNetworkUpdate(const String&, bool);
  9445. // Properties:
  9446. bool animationEnabled;
  9447. /* readonly */
  9448. Array<Variant> attributeDefaults;
  9449. /* readonly */
  9450. Array<AttributeInfo> attributeInfos;
  9451. Array<Variant> attributes;
  9452. /* readonly */
  9453. BoundingBox boundingBox;
  9454. bool castShadows;
  9455. /* readonly */
  9456. String category;
  9457. float drawDistance;
  9458. bool enabled;
  9459. /* readonly */
  9460. bool enabledEffective;
  9461. /* readonly */
  9462. uint id;
  9463. /* readonly */
  9464. bool inView;
  9465. uint lightMask;
  9466. float lodBias;
  9467. /* writeonly */
  9468. Material material;
  9469. Array<Material> materials;
  9470. uint maxLights;
  9471. Model model;
  9472. /* readonly */
  9473. Node node;
  9474. /* readonly */
  9475. uint numAttributes;
  9476. /* readonly */
  9477. uint numGeometries;
  9478. ObjectAnimation objectAnimation;
  9479. bool occludee;
  9480. bool occluder;
  9481. /* readonly */
  9482. int refs;
  9483. float shadowDistance;
  9484. uint shadowMask;
  9485. bool temporary;
  9486. /* readonly */
  9487. StringHash type;
  9488. /* readonly */
  9489. String typeName;
  9490. uint viewMask;
  9491. /* readonly */
  9492. int weakRefs;
  9493. /* readonly */
  9494. BoundingBox worldBoundingBox;
  9495. /* readonly */
  9496. Zone zone;
  9497. uint zoneMask;
  9498. };
  9499. class Slider
  9500. {
  9501. // Methods:
  9502. void AddChild(UIElement);
  9503. void AddTag(const String&);
  9504. void AddTags(const String&, int8 = ';');
  9505. void ApplyAttributes();
  9506. void BringToFront();
  9507. void ChangeValue(float);
  9508. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9509. void DisableLayoutUpdate();
  9510. IntVector2 ElementToScreen(const IntVector2&);
  9511. void EnableLayoutUpdate();
  9512. uint FindChild(UIElement) const;
  9513. Variant GetAttribute(const String&) const;
  9514. ValueAnimation GetAttributeAnimation(const String&) const;
  9515. float GetAttributeAnimationSpeed(const String&) const;
  9516. float GetAttributeAnimationTime(const String&) const;
  9517. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9518. Variant GetAttributeDefault(const String&) const;
  9519. UIElement GetChild(const String&, bool = false) const;
  9520. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9521. Array<UIElement> GetChildren(bool = false) const;
  9522. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9523. UIElement GetElementEventSender() const;
  9524. bool GetInterceptNetworkUpdate(const String&) const;
  9525. uint GetNumChildren(bool) const;
  9526. bool HasSubscribedToEvent(Object, const String&);
  9527. bool HasSubscribedToEvent(const String&);
  9528. bool HasTag(const String&) const;
  9529. void InsertChild(uint, UIElement);
  9530. bool IsInside(IntVector2, bool);
  9531. bool IsInsideCombined(IntVector2, bool);
  9532. bool Load(File, bool = false);
  9533. bool Load(VectorBuffer&, bool = false);
  9534. bool LoadChildXML(XMLFile, XMLFile = null);
  9535. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9536. bool LoadJSON(const JSONValue&, bool = false);
  9537. bool LoadXML(File);
  9538. bool LoadXML(VectorBuffer&);
  9539. bool LoadXML(XMLFile, XMLFile);
  9540. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9541. bool LoadXML(const XMLElement&, bool = false);
  9542. void MarkNetworkUpdate() const;
  9543. void Remove();
  9544. void RemoveAllChildren();
  9545. void RemoveAllTags();
  9546. void RemoveAttributeAnimation(const String&);
  9547. void RemoveChild(UIElement, uint = 0);
  9548. void RemoveChild(uint);
  9549. void RemoveInstanceDefault();
  9550. void RemoveObjectAnimation();
  9551. bool RemoveTag(const String&);
  9552. void ResetDeepEnabled();
  9553. void ResetToDefault();
  9554. bool Save(File) const;
  9555. bool Save(VectorBuffer&) const;
  9556. bool SaveJSON(JSONValue&) const;
  9557. bool SaveXML(File, const String& = "\t");
  9558. bool SaveXML(VectorBuffer&, const String& = "\t");
  9559. bool SaveXML(XMLElement&) const;
  9560. IntVector2 ScreenToElement(const IntVector2&);
  9561. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9562. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9563. void SetAnimationTime(float);
  9564. bool SetAttribute(const String&, const Variant&);
  9565. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9566. void SetAttributeAnimationSpeed(const String&, float);
  9567. void SetAttributeAnimationTime(const String&, float);
  9568. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9569. void SetDeepEnabled(bool);
  9570. void SetEnabledRecursive(bool);
  9571. void SetFixedHeight(int);
  9572. void SetFixedSize(int, int);
  9573. void SetFixedWidth(int);
  9574. void SetFullImageRect();
  9575. void SetHoverOffset(int, int);
  9576. void SetInterceptNetworkUpdate(const String&, bool);
  9577. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9578. void SetMaxSize(int, int);
  9579. void SetMinSize(int, int);
  9580. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9581. void SetPosition(int, int);
  9582. void SetSize(int, int);
  9583. bool SetStyle(const String&, XMLFile = null);
  9584. bool SetStyle(const XMLElement&);
  9585. bool SetStyleAuto(XMLFile = null);
  9586. void UpdateLayout();
  9587. const Variant& GetVar(const StringHash&);
  9588. // Properties:
  9589. bool animationEnabled;
  9590. /* readonly */
  9591. Array<Variant> attributeDefaults;
  9592. /* readonly */
  9593. Array<AttributeInfo> attributeInfos;
  9594. Array<Variant> attributes;
  9595. BlendMode blendMode;
  9596. IntRect border;
  9597. bool bringToBack;
  9598. bool bringToFront;
  9599. /* readonly */
  9600. String category;
  9601. /* readonly */
  9602. IntVector2 childOffset;
  9603. /* readonly */
  9604. Array<UIElement> children;
  9605. IntRect clipBorder;
  9606. bool clipChildren;
  9607. /* writeonly */
  9608. Color color;
  9609. /* readonly */
  9610. bool colorGradient;
  9611. Array<Color> colors;
  9612. /* readonly */
  9613. IntRect combinedScreenRect;
  9614. XMLFile defaultStyle;
  9615. /* readonly */
  9616. float derivedOpacity;
  9617. /* readonly */
  9618. uint dragButtonCombo;
  9619. /* readonly */
  9620. int dragButtonCount;
  9621. uint dragDropMode;
  9622. bool editable;
  9623. bool elementEventSender;
  9624. bool enabled;
  9625. /* readonly */
  9626. bool enabledSelf;
  9627. /* readonly */
  9628. bool fixedHeight;
  9629. /* readonly */
  9630. bool fixedSize;
  9631. /* readonly */
  9632. bool fixedWidth;
  9633. bool focus;
  9634. FocusMode focusMode;
  9635. int height;
  9636. HorizontalAlignment horizontalAlignment;
  9637. IntVector2 hoverOffset;
  9638. /* readonly */
  9639. bool hovering;
  9640. IntRect imageBorder;
  9641. IntRect imageRect;
  9642. int indent;
  9643. int indentSpacing;
  9644. /* readonly */
  9645. int indentWidth;
  9646. bool internal;
  9647. /* readonly */
  9648. BorderImage knob;
  9649. IntRect layoutBorder;
  9650. Vector2 layoutFlexScale;
  9651. LayoutMode layoutMode;
  9652. int layoutSpacing;
  9653. int maxHeight;
  9654. IntVector2 maxSize;
  9655. int maxWidth;
  9656. int minHeight;
  9657. IntVector2 minSize;
  9658. int minWidth;
  9659. String name;
  9660. /* readonly */
  9661. uint numAllChildren;
  9662. /* readonly */
  9663. uint numAttributes;
  9664. /* readonly */
  9665. uint numChildren;
  9666. ObjectAnimation objectAnimation;
  9667. float opacity;
  9668. Orientation orientation;
  9669. UIElement parent;
  9670. IntVector2 position;
  9671. int priority;
  9672. float range;
  9673. /* readonly */
  9674. int refs;
  9675. float repeatRate;
  9676. /* readonly */
  9677. UIElement root;
  9678. /* readonly */
  9679. IntVector2 screenPosition;
  9680. bool selected;
  9681. IntVector2 size;
  9682. bool sortChildren;
  9683. String style;
  9684. /* readonly */
  9685. Array<String> tags;
  9686. bool temporary;
  9687. Texture texture;
  9688. bool tiled;
  9689. TraversalMode traversalMode;
  9690. /* readonly */
  9691. StringHash type;
  9692. /* readonly */
  9693. String typeName;
  9694. bool useDerivedOpacity;
  9695. float value;
  9696. /* readonly */
  9697. VariantMap vars;
  9698. VerticalAlignment verticalAlignment;
  9699. bool visible;
  9700. /* readonly */
  9701. bool visibleEffective;
  9702. /* readonly */
  9703. int weakRefs;
  9704. int width;
  9705. };
  9706. class SmoothedTransform
  9707. {
  9708. // Methods:
  9709. void ApplyAttributes();
  9710. void DrawDebugGeometry(DebugRenderer, bool);
  9711. Variant GetAttribute(const String&) const;
  9712. ValueAnimation GetAttributeAnimation(const String&) const;
  9713. float GetAttributeAnimationSpeed(const String&) const;
  9714. float GetAttributeAnimationTime(const String&) const;
  9715. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9716. Variant GetAttributeDefault(const String&) const;
  9717. bool GetInterceptNetworkUpdate(const String&) const;
  9718. bool HasSubscribedToEvent(Object, const String&);
  9719. bool HasSubscribedToEvent(const String&);
  9720. bool Load(File, bool = false);
  9721. bool Load(VectorBuffer&, bool = false);
  9722. bool LoadJSON(const JSONValue&, bool = false);
  9723. bool LoadXML(const XMLElement&, bool = false);
  9724. void MarkNetworkUpdate() const;
  9725. void Remove();
  9726. void RemoveAttributeAnimation(const String&);
  9727. void RemoveInstanceDefault();
  9728. void RemoveObjectAnimation();
  9729. void ResetToDefault();
  9730. bool Save(File) const;
  9731. bool Save(VectorBuffer&) const;
  9732. bool SaveJSON(JSONValue&) const;
  9733. bool SaveXML(XMLElement&) const;
  9734. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9735. void SetAnimationTime(float);
  9736. bool SetAttribute(const String&, const Variant&);
  9737. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9738. void SetAttributeAnimationSpeed(const String&, float);
  9739. void SetAttributeAnimationTime(const String&, float);
  9740. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9741. void SetInterceptNetworkUpdate(const String&, bool);
  9742. void Update(float, float);
  9743. // Properties:
  9744. bool animationEnabled;
  9745. /* readonly */
  9746. Array<Variant> attributeDefaults;
  9747. /* readonly */
  9748. Array<AttributeInfo> attributeInfos;
  9749. Array<Variant> attributes;
  9750. /* readonly */
  9751. String category;
  9752. bool enabled;
  9753. /* readonly */
  9754. bool enabledEffective;
  9755. /* readonly */
  9756. uint id;
  9757. /* readonly */
  9758. bool inProgress;
  9759. /* readonly */
  9760. Node node;
  9761. /* readonly */
  9762. uint numAttributes;
  9763. ObjectAnimation objectAnimation;
  9764. /* readonly */
  9765. int refs;
  9766. Vector3 targetPosition;
  9767. Quaternion targetRotation;
  9768. Vector3 targetWorldPosition;
  9769. Quaternion targetWorldRotation;
  9770. bool temporary;
  9771. /* readonly */
  9772. StringHash type;
  9773. /* readonly */
  9774. String typeName;
  9775. /* readonly */
  9776. int weakRefs;
  9777. };
  9778. class Sound
  9779. {
  9780. // Methods:
  9781. bool HasSubscribedToEvent(Object, const String&);
  9782. bool HasSubscribedToEvent(const String&);
  9783. bool Load(File);
  9784. bool Load(VectorBuffer&);
  9785. bool Save(File) const;
  9786. bool Save(VectorBuffer&) const;
  9787. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9788. // Properties:
  9789. /* readonly */
  9790. String category;
  9791. /* readonly */
  9792. bool compressed;
  9793. /* readonly */
  9794. float frequency;
  9795. /* readonly */
  9796. float length;
  9797. bool looped;
  9798. /* readonly */
  9799. uint memoryUse;
  9800. String name;
  9801. /* readonly */
  9802. int refs;
  9803. /* readonly */
  9804. uint sampleSize;
  9805. /* readonly */
  9806. bool sixteenBit;
  9807. /* readonly */
  9808. bool stereo;
  9809. /* readonly */
  9810. StringHash type;
  9811. /* readonly */
  9812. String typeName;
  9813. /* readonly */
  9814. uint useTimer;
  9815. /* readonly */
  9816. int weakRefs;
  9817. };
  9818. class SoundListener
  9819. {
  9820. // Methods:
  9821. void ApplyAttributes();
  9822. void DrawDebugGeometry(DebugRenderer, bool);
  9823. Variant GetAttribute(const String&) const;
  9824. ValueAnimation GetAttributeAnimation(const String&) const;
  9825. float GetAttributeAnimationSpeed(const String&) const;
  9826. float GetAttributeAnimationTime(const String&) const;
  9827. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9828. Variant GetAttributeDefault(const String&) const;
  9829. bool GetInterceptNetworkUpdate(const String&) const;
  9830. bool HasSubscribedToEvent(Object, const String&);
  9831. bool HasSubscribedToEvent(const String&);
  9832. bool Load(File, bool = false);
  9833. bool Load(VectorBuffer&, bool = false);
  9834. bool LoadJSON(const JSONValue&, bool = false);
  9835. bool LoadXML(const XMLElement&, bool = false);
  9836. void MarkNetworkUpdate() const;
  9837. void Remove();
  9838. void RemoveAttributeAnimation(const String&);
  9839. void RemoveInstanceDefault();
  9840. void RemoveObjectAnimation();
  9841. void ResetToDefault();
  9842. bool Save(File) const;
  9843. bool Save(VectorBuffer&) const;
  9844. bool SaveJSON(JSONValue&) const;
  9845. bool SaveXML(XMLElement&) const;
  9846. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9847. void SetAnimationTime(float);
  9848. bool SetAttribute(const String&, const Variant&);
  9849. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9850. void SetAttributeAnimationSpeed(const String&, float);
  9851. void SetAttributeAnimationTime(const String&, float);
  9852. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9853. void SetInterceptNetworkUpdate(const String&, bool);
  9854. // Properties:
  9855. bool animationEnabled;
  9856. /* readonly */
  9857. Array<Variant> attributeDefaults;
  9858. /* readonly */
  9859. Array<AttributeInfo> attributeInfos;
  9860. Array<Variant> attributes;
  9861. /* readonly */
  9862. String category;
  9863. bool enabled;
  9864. /* readonly */
  9865. bool enabledEffective;
  9866. /* readonly */
  9867. uint id;
  9868. /* readonly */
  9869. Node node;
  9870. /* readonly */
  9871. uint numAttributes;
  9872. ObjectAnimation objectAnimation;
  9873. /* readonly */
  9874. int refs;
  9875. bool temporary;
  9876. /* readonly */
  9877. StringHash type;
  9878. /* readonly */
  9879. String typeName;
  9880. /* readonly */
  9881. int weakRefs;
  9882. };
  9883. class SoundSource
  9884. {
  9885. // Methods:
  9886. void ApplyAttributes();
  9887. void DrawDebugGeometry(DebugRenderer, bool);
  9888. Variant GetAttribute(const String&) const;
  9889. ValueAnimation GetAttributeAnimation(const String&) const;
  9890. float GetAttributeAnimationSpeed(const String&) const;
  9891. float GetAttributeAnimationTime(const String&) const;
  9892. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9893. Variant GetAttributeDefault(const String&) const;
  9894. bool GetInterceptNetworkUpdate(const String&) const;
  9895. bool HasSubscribedToEvent(Object, const String&);
  9896. bool HasSubscribedToEvent(const String&);
  9897. bool Load(File, bool = false);
  9898. bool Load(VectorBuffer&, bool = false);
  9899. bool LoadJSON(const JSONValue&, bool = false);
  9900. bool LoadXML(const XMLElement&, bool = false);
  9901. void MarkNetworkUpdate() const;
  9902. void Play(Sound);
  9903. void Play(Sound, float);
  9904. void Play(Sound, float, float);
  9905. void Play(Sound, float, float, float);
  9906. void Remove();
  9907. void RemoveAttributeAnimation(const String&);
  9908. void RemoveInstanceDefault();
  9909. void RemoveObjectAnimation();
  9910. void ResetToDefault();
  9911. bool Save(File) const;
  9912. bool Save(VectorBuffer&) const;
  9913. bool SaveJSON(JSONValue&) const;
  9914. bool SaveXML(XMLElement&) const;
  9915. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9916. void SetAnimationTime(float);
  9917. bool SetAttribute(const String&, const Variant&);
  9918. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9919. void SetAttributeAnimationSpeed(const String&, float);
  9920. void SetAttributeAnimationTime(const String&, float);
  9921. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9922. void SetInterceptNetworkUpdate(const String&, bool);
  9923. void Stop();
  9924. // Properties:
  9925. bool animationEnabled;
  9926. /* readonly */
  9927. float attenuation;
  9928. /* readonly */
  9929. Array<Variant> attributeDefaults;
  9930. /* readonly */
  9931. Array<AttributeInfo> attributeInfos;
  9932. Array<Variant> attributes;
  9933. bool autoRemove;
  9934. /* readonly */
  9935. String category;
  9936. bool enabled;
  9937. /* readonly */
  9938. bool enabledEffective;
  9939. float frequency;
  9940. float gain;
  9941. /* readonly */
  9942. uint id;
  9943. /* readonly */
  9944. Node node;
  9945. /* readonly */
  9946. uint numAttributes;
  9947. ObjectAnimation objectAnimation;
  9948. float panning;
  9949. /* readonly */
  9950. bool playing;
  9951. /* readonly */
  9952. int refs;
  9953. /* readonly */
  9954. Sound sound;
  9955. String soundType;
  9956. bool temporary;
  9957. /* readonly */
  9958. float timePosition;
  9959. /* readonly */
  9960. StringHash type;
  9961. /* readonly */
  9962. String typeName;
  9963. /* readonly */
  9964. int weakRefs;
  9965. };
  9966. class SoundSource3D
  9967. {
  9968. // Methods:
  9969. void ApplyAttributes();
  9970. void DrawDebugGeometry(DebugRenderer, bool);
  9971. Variant GetAttribute(const String&) const;
  9972. ValueAnimation GetAttributeAnimation(const String&) const;
  9973. float GetAttributeAnimationSpeed(const String&) const;
  9974. float GetAttributeAnimationTime(const String&) const;
  9975. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9976. Variant GetAttributeDefault(const String&) const;
  9977. bool GetInterceptNetworkUpdate(const String&) const;
  9978. bool HasSubscribedToEvent(Object, const String&);
  9979. bool HasSubscribedToEvent(const String&);
  9980. bool Load(File, bool = false);
  9981. bool Load(VectorBuffer&, bool = false);
  9982. bool LoadJSON(const JSONValue&, bool = false);
  9983. bool LoadXML(const XMLElement&, bool = false);
  9984. void MarkNetworkUpdate() const;
  9985. void Play(Sound);
  9986. void Play(Sound, float);
  9987. void Play(Sound, float, float);
  9988. void Play(Sound, float, float, float);
  9989. void Remove();
  9990. void RemoveAttributeAnimation(const String&);
  9991. void RemoveInstanceDefault();
  9992. void RemoveObjectAnimation();
  9993. void ResetToDefault();
  9994. bool Save(File) const;
  9995. bool Save(VectorBuffer&) const;
  9996. bool SaveJSON(JSONValue&) const;
  9997. bool SaveXML(XMLElement&) const;
  9998. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9999. void SetAngleAttenuation(float, float);
  10000. void SetAnimationTime(float);
  10001. bool SetAttribute(const String&, const Variant&);
  10002. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10003. void SetAttributeAnimationSpeed(const String&, float);
  10004. void SetAttributeAnimationTime(const String&, float);
  10005. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10006. void SetDistanceAttenuation(float, float, float);
  10007. void SetInterceptNetworkUpdate(const String&, bool);
  10008. void Stop();
  10009. // Properties:
  10010. bool animationEnabled;
  10011. /* readonly */
  10012. float attenuation;
  10013. /* readonly */
  10014. Array<Variant> attributeDefaults;
  10015. /* readonly */
  10016. Array<AttributeInfo> attributeInfos;
  10017. Array<Variant> attributes;
  10018. bool autoRemove;
  10019. /* readonly */
  10020. String category;
  10021. bool enabled;
  10022. /* readonly */
  10023. bool enabledEffective;
  10024. float farDistance;
  10025. float frequency;
  10026. float gain;
  10027. /* readonly */
  10028. uint id;
  10029. float innerAngle;
  10030. float nearDistance;
  10031. /* readonly */
  10032. Node node;
  10033. /* readonly */
  10034. uint numAttributes;
  10035. ObjectAnimation objectAnimation;
  10036. float outerAngle;
  10037. float panning;
  10038. /* readonly */
  10039. bool playing;
  10040. /* readonly */
  10041. int refs;
  10042. float rolloffFactor;
  10043. /* readonly */
  10044. Sound sound;
  10045. String soundType;
  10046. bool temporary;
  10047. /* readonly */
  10048. float timePosition;
  10049. /* readonly */
  10050. StringHash type;
  10051. /* readonly */
  10052. String typeName;
  10053. /* readonly */
  10054. int weakRefs;
  10055. };
  10056. class Sphere
  10057. {
  10058. // Methods:
  10059. void Clear();
  10060. void Define(const BoundingBox&);
  10061. void Define(const Frustum&);
  10062. void Define(const Polyhedron&);
  10063. void Define(const Sphere&);
  10064. void Define(const Vector3&, float);
  10065. bool Defined() const;
  10066. float Distance(const Vector3&) const;
  10067. Intersection IsInside(const BoundingBox&) const;
  10068. Intersection IsInside(const Sphere&) const;
  10069. Intersection IsInside(const Vector3&) const;
  10070. Intersection IsInsideFast(const BoundingBox&) const;
  10071. Intersection IsInsideFast(const Sphere&) const;
  10072. void Merge(const BoundingBox&);
  10073. void Merge(const Frustum&);
  10074. void Merge(const Sphere&);
  10075. void Merge(const Vector3&);
  10076. // Properties:
  10077. Vector3 center;
  10078. float radius;
  10079. };
  10080. class Spline
  10081. {
  10082. // Methods:
  10083. void AddKnot(const Variant&);
  10084. void AddKnot(const Variant&, uint);
  10085. void Clear();
  10086. Variant GetPoint(float);
  10087. void RemoveKnot();
  10088. void RemoveKnot(uint);
  10089. // Properties:
  10090. InterpolationMode interpolationMode;
  10091. Array<Variant> knot;
  10092. Array<Variant> knots;
  10093. };
  10094. class SplinePath
  10095. {
  10096. // Methods:
  10097. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  10098. void ApplyAttributes();
  10099. void ClearControlPoints();
  10100. void DrawDebugGeometry(DebugRenderer, bool);
  10101. Variant GetAttribute(const String&) const;
  10102. ValueAnimation GetAttributeAnimation(const String&) const;
  10103. float GetAttributeAnimationSpeed(const String&) const;
  10104. float GetAttributeAnimationTime(const String&) const;
  10105. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10106. Variant GetAttributeDefault(const String&) const;
  10107. bool GetInterceptNetworkUpdate(const String&) const;
  10108. Vector3 GetPoint(float) const;
  10109. Vector3 GetPosition() const;
  10110. bool HasSubscribedToEvent(Object, const String&);
  10111. bool HasSubscribedToEvent(const String&);
  10112. bool Load(File, bool = false);
  10113. bool Load(VectorBuffer&, bool = false);
  10114. bool LoadJSON(const JSONValue&, bool = false);
  10115. bool LoadXML(const XMLElement&, bool = false);
  10116. void MarkNetworkUpdate() const;
  10117. void Move(float);
  10118. void Remove();
  10119. void RemoveAttributeAnimation(const String&);
  10120. void RemoveControlPoint(Node);
  10121. void RemoveInstanceDefault();
  10122. void RemoveObjectAnimation();
  10123. void Reset();
  10124. void ResetToDefault();
  10125. bool Save(File) const;
  10126. bool Save(VectorBuffer&) const;
  10127. bool SaveJSON(JSONValue&) const;
  10128. bool SaveXML(XMLElement&) const;
  10129. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10130. void SetAnimationTime(float);
  10131. bool SetAttribute(const String&, const Variant&);
  10132. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10133. void SetAttributeAnimationSpeed(const String&, float);
  10134. void SetAttributeAnimationTime(const String&, float);
  10135. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10136. void SetInterceptNetworkUpdate(const String&, bool);
  10137. void SetPosition(float);
  10138. // Properties:
  10139. bool animationEnabled;
  10140. /* readonly */
  10141. Array<Variant> attributeDefaults;
  10142. /* readonly */
  10143. Array<AttributeInfo> attributeInfos;
  10144. Array<Variant> attributes;
  10145. /* readonly */
  10146. String category;
  10147. Node controlledNode;
  10148. bool enabled;
  10149. /* readonly */
  10150. bool enabledEffective;
  10151. /* readonly */
  10152. uint id;
  10153. InterpolationMode interpolationMode;
  10154. /* readonly */
  10155. bool isFinished;
  10156. /* readonly */
  10157. float length;
  10158. /* readonly */
  10159. Node node;
  10160. /* readonly */
  10161. uint numAttributes;
  10162. ObjectAnimation objectAnimation;
  10163. /* readonly */
  10164. int refs;
  10165. float speed;
  10166. bool temporary;
  10167. /* readonly */
  10168. StringHash type;
  10169. /* readonly */
  10170. String typeName;
  10171. /* readonly */
  10172. int weakRefs;
  10173. };
  10174. class Sprite
  10175. {
  10176. // Methods:
  10177. void AddChild(UIElement);
  10178. void AddTag(const String&);
  10179. void AddTags(const String&, int8 = ';');
  10180. void ApplyAttributes();
  10181. void BringToFront();
  10182. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10183. void DisableLayoutUpdate();
  10184. IntVector2 ElementToScreen(const IntVector2&);
  10185. void EnableLayoutUpdate();
  10186. uint FindChild(UIElement) const;
  10187. Variant GetAttribute(const String&) const;
  10188. ValueAnimation GetAttributeAnimation(const String&) const;
  10189. float GetAttributeAnimationSpeed(const String&) const;
  10190. float GetAttributeAnimationTime(const String&) const;
  10191. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10192. Variant GetAttributeDefault(const String&) const;
  10193. UIElement GetChild(const String&, bool = false) const;
  10194. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10195. Array<UIElement> GetChildren(bool = false) const;
  10196. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10197. UIElement GetElementEventSender() const;
  10198. bool GetInterceptNetworkUpdate(const String&) const;
  10199. uint GetNumChildren(bool) const;
  10200. bool HasSubscribedToEvent(Object, const String&);
  10201. bool HasSubscribedToEvent(const String&);
  10202. bool HasTag(const String&) const;
  10203. void InsertChild(uint, UIElement);
  10204. bool IsInside(IntVector2, bool);
  10205. bool IsInsideCombined(IntVector2, bool);
  10206. bool Load(File, bool = false);
  10207. bool Load(VectorBuffer&, bool = false);
  10208. bool LoadChildXML(XMLFile, XMLFile = null);
  10209. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10210. bool LoadJSON(const JSONValue&, bool = false);
  10211. bool LoadXML(File);
  10212. bool LoadXML(VectorBuffer&);
  10213. bool LoadXML(XMLFile, XMLFile);
  10214. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10215. bool LoadXML(const XMLElement&, bool = false);
  10216. void MarkNetworkUpdate() const;
  10217. void Remove();
  10218. void RemoveAllChildren();
  10219. void RemoveAllTags();
  10220. void RemoveAttributeAnimation(const String&);
  10221. void RemoveChild(UIElement, uint = 0);
  10222. void RemoveChild(uint);
  10223. void RemoveInstanceDefault();
  10224. void RemoveObjectAnimation();
  10225. bool RemoveTag(const String&);
  10226. void ResetDeepEnabled();
  10227. void ResetToDefault();
  10228. bool Save(File) const;
  10229. bool Save(VectorBuffer&) const;
  10230. bool SaveJSON(JSONValue&) const;
  10231. bool SaveXML(File, const String& = "\t");
  10232. bool SaveXML(VectorBuffer&, const String& = "\t");
  10233. bool SaveXML(XMLElement&) const;
  10234. IntVector2 ScreenToElement(const IntVector2&);
  10235. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10236. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10237. void SetAnimationTime(float);
  10238. bool SetAttribute(const String&, const Variant&);
  10239. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10240. void SetAttributeAnimationSpeed(const String&, float);
  10241. void SetAttributeAnimationTime(const String&, float);
  10242. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10243. void SetDeepEnabled(bool);
  10244. void SetEnabledRecursive(bool);
  10245. void SetFixedHeight(int);
  10246. void SetFixedSize(int, int);
  10247. void SetFixedWidth(int);
  10248. void SetFullImageRect();
  10249. void SetHotSpot(int, int);
  10250. void SetInterceptNetworkUpdate(const String&, bool);
  10251. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10252. void SetMaxSize(int, int);
  10253. void SetMinSize(int, int);
  10254. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10255. void SetPosition(float, float);
  10256. void SetScale(float);
  10257. void SetScale(float, float);
  10258. void SetSize(int, int);
  10259. bool SetStyle(const String&, XMLFile = null);
  10260. bool SetStyle(const XMLElement&);
  10261. bool SetStyleAuto(XMLFile = null);
  10262. void UpdateLayout();
  10263. const Variant& GetVar(const StringHash&);
  10264. // Properties:
  10265. bool animationEnabled;
  10266. /* readonly */
  10267. Array<Variant> attributeDefaults;
  10268. /* readonly */
  10269. Array<AttributeInfo> attributeInfos;
  10270. Array<Variant> attributes;
  10271. BlendMode blendMode;
  10272. bool bringToBack;
  10273. bool bringToFront;
  10274. /* readonly */
  10275. String category;
  10276. /* readonly */
  10277. IntVector2 childOffset;
  10278. /* readonly */
  10279. Array<UIElement> children;
  10280. IntRect clipBorder;
  10281. bool clipChildren;
  10282. /* writeonly */
  10283. Color color;
  10284. /* readonly */
  10285. bool colorGradient;
  10286. Array<Color> colors;
  10287. /* readonly */
  10288. IntRect combinedScreenRect;
  10289. XMLFile defaultStyle;
  10290. /* readonly */
  10291. float derivedOpacity;
  10292. /* readonly */
  10293. uint dragButtonCombo;
  10294. /* readonly */
  10295. int dragButtonCount;
  10296. uint dragDropMode;
  10297. bool editable;
  10298. bool elementEventSender;
  10299. bool enabled;
  10300. /* readonly */
  10301. bool enabledSelf;
  10302. /* readonly */
  10303. bool fixedHeight;
  10304. /* readonly */
  10305. bool fixedSize;
  10306. /* readonly */
  10307. bool fixedWidth;
  10308. bool focus;
  10309. FocusMode focusMode;
  10310. int height;
  10311. HorizontalAlignment horizontalAlignment;
  10312. IntVector2 hotSpot;
  10313. /* readonly */
  10314. bool hovering;
  10315. IntRect imageRect;
  10316. int indent;
  10317. int indentSpacing;
  10318. /* readonly */
  10319. int indentWidth;
  10320. bool internal;
  10321. IntRect layoutBorder;
  10322. Vector2 layoutFlexScale;
  10323. LayoutMode layoutMode;
  10324. int layoutSpacing;
  10325. int maxHeight;
  10326. IntVector2 maxSize;
  10327. int maxWidth;
  10328. int minHeight;
  10329. IntVector2 minSize;
  10330. int minWidth;
  10331. String name;
  10332. /* readonly */
  10333. uint numAllChildren;
  10334. /* readonly */
  10335. uint numAttributes;
  10336. /* readonly */
  10337. uint numChildren;
  10338. ObjectAnimation objectAnimation;
  10339. float opacity;
  10340. UIElement parent;
  10341. Vector2 position;
  10342. int priority;
  10343. /* readonly */
  10344. int refs;
  10345. /* readonly */
  10346. UIElement root;
  10347. float rotation;
  10348. Vector2 scale;
  10349. /* readonly */
  10350. IntVector2 screenPosition;
  10351. bool selected;
  10352. IntVector2 size;
  10353. bool sortChildren;
  10354. String style;
  10355. /* readonly */
  10356. Array<String> tags;
  10357. bool temporary;
  10358. Texture texture;
  10359. TraversalMode traversalMode;
  10360. /* readonly */
  10361. StringHash type;
  10362. /* readonly */
  10363. String typeName;
  10364. bool useDerivedOpacity;
  10365. /* readonly */
  10366. VariantMap vars;
  10367. VerticalAlignment verticalAlignment;
  10368. bool visible;
  10369. /* readonly */
  10370. bool visibleEffective;
  10371. /* readonly */
  10372. int weakRefs;
  10373. int width;
  10374. };
  10375. class Sprite2D
  10376. {
  10377. // Methods:
  10378. bool HasSubscribedToEvent(Object, const String&);
  10379. bool HasSubscribedToEvent(const String&);
  10380. bool Load(File);
  10381. bool Load(VectorBuffer&);
  10382. bool Save(File) const;
  10383. bool Save(VectorBuffer&) const;
  10384. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10385. // Properties:
  10386. /* readonly */
  10387. String category;
  10388. Vector2 hotSpot;
  10389. /* readonly */
  10390. uint memoryUse;
  10391. String name;
  10392. IntVector2 offset;
  10393. IntRect rectangle;
  10394. /* readonly */
  10395. int refs;
  10396. Texture2D texture;
  10397. float textureEdgeOffset;
  10398. /* readonly */
  10399. StringHash type;
  10400. /* readonly */
  10401. String typeName;
  10402. /* readonly */
  10403. uint useTimer;
  10404. /* readonly */
  10405. int weakRefs;
  10406. };
  10407. class SpriteSheet2D
  10408. {
  10409. // Methods:
  10410. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10411. Sprite2D GetSprite(const String&);
  10412. bool HasSubscribedToEvent(Object, const String&);
  10413. bool HasSubscribedToEvent(const String&);
  10414. bool Load(File);
  10415. bool Load(VectorBuffer&);
  10416. bool Save(File) const;
  10417. bool Save(VectorBuffer&) const;
  10418. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10419. // Properties:
  10420. /* readonly */
  10421. String category;
  10422. /* readonly */
  10423. uint memoryUse;
  10424. String name;
  10425. /* readonly */
  10426. int refs;
  10427. Texture2D texture;
  10428. /* readonly */
  10429. StringHash type;
  10430. /* readonly */
  10431. String typeName;
  10432. /* readonly */
  10433. uint useTimer;
  10434. /* readonly */
  10435. int weakRefs;
  10436. };
  10437. class StaticModel
  10438. {
  10439. // Methods:
  10440. void ApplyAttributes();
  10441. void ApplyMaterialList(const String& = String ( ));
  10442. void DrawDebugGeometry(DebugRenderer, bool);
  10443. Variant GetAttribute(const String&) const;
  10444. ValueAnimation GetAttributeAnimation(const String&) const;
  10445. float GetAttributeAnimationSpeed(const String&) const;
  10446. float GetAttributeAnimationTime(const String&) const;
  10447. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10448. Variant GetAttributeDefault(const String&) const;
  10449. bool GetInterceptNetworkUpdate(const String&) const;
  10450. bool HasSubscribedToEvent(Object, const String&);
  10451. bool HasSubscribedToEvent(const String&);
  10452. bool IsInView(Camera) const;
  10453. bool IsInside(const Vector3&) const;
  10454. bool IsInsideLocal(const Vector3&) const;
  10455. bool Load(File, bool = false);
  10456. bool Load(VectorBuffer&, bool = false);
  10457. bool LoadJSON(const JSONValue&, bool = false);
  10458. bool LoadXML(const XMLElement&, bool = false);
  10459. void MarkNetworkUpdate() const;
  10460. void Remove();
  10461. void RemoveAttributeAnimation(const String&);
  10462. void RemoveInstanceDefault();
  10463. void RemoveObjectAnimation();
  10464. void ResetToDefault();
  10465. bool Save(File) const;
  10466. bool Save(VectorBuffer&) const;
  10467. bool SaveJSON(JSONValue&) const;
  10468. bool SaveXML(XMLElement&) const;
  10469. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10470. void SetAnimationTime(float);
  10471. bool SetAttribute(const String&, const Variant&);
  10472. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10473. void SetAttributeAnimationSpeed(const String&, float);
  10474. void SetAttributeAnimationTime(const String&, float);
  10475. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10476. void SetInterceptNetworkUpdate(const String&, bool);
  10477. // Properties:
  10478. bool animationEnabled;
  10479. /* readonly */
  10480. Array<Variant> attributeDefaults;
  10481. /* readonly */
  10482. Array<AttributeInfo> attributeInfos;
  10483. Array<Variant> attributes;
  10484. /* readonly */
  10485. BoundingBox boundingBox;
  10486. bool castShadows;
  10487. /* readonly */
  10488. String category;
  10489. float drawDistance;
  10490. bool enabled;
  10491. /* readonly */
  10492. bool enabledEffective;
  10493. /* readonly */
  10494. uint id;
  10495. /* readonly */
  10496. bool inView;
  10497. uint lightMask;
  10498. float lodBias;
  10499. /* writeonly */
  10500. Material material;
  10501. Array<Material> materials;
  10502. uint maxLights;
  10503. Model model;
  10504. /* readonly */
  10505. Node node;
  10506. /* readonly */
  10507. uint numAttributes;
  10508. /* readonly */
  10509. uint numGeometries;
  10510. ObjectAnimation objectAnimation;
  10511. bool occludee;
  10512. bool occluder;
  10513. uint occlusionLodLevel;
  10514. /* readonly */
  10515. int refs;
  10516. float shadowDistance;
  10517. uint shadowMask;
  10518. bool temporary;
  10519. /* readonly */
  10520. StringHash type;
  10521. /* readonly */
  10522. String typeName;
  10523. uint viewMask;
  10524. /* readonly */
  10525. int weakRefs;
  10526. /* readonly */
  10527. BoundingBox worldBoundingBox;
  10528. uint zoneMask;
  10529. };
  10530. class StaticModelGroup
  10531. {
  10532. // Methods:
  10533. void AddInstanceNode(Node);
  10534. void ApplyAttributes();
  10535. void ApplyMaterialList(const String& = String ( ));
  10536. void DrawDebugGeometry(DebugRenderer, bool);
  10537. Variant GetAttribute(const String&) const;
  10538. ValueAnimation GetAttributeAnimation(const String&) const;
  10539. float GetAttributeAnimationSpeed(const String&) const;
  10540. float GetAttributeAnimationTime(const String&) const;
  10541. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10542. Variant GetAttributeDefault(const String&) const;
  10543. bool GetInterceptNetworkUpdate(const String&) const;
  10544. bool HasSubscribedToEvent(Object, const String&);
  10545. bool HasSubscribedToEvent(const String&);
  10546. bool IsInView(Camera) const;
  10547. bool Load(File, bool = false);
  10548. bool Load(VectorBuffer&, bool = false);
  10549. bool LoadJSON(const JSONValue&, bool = false);
  10550. bool LoadXML(const XMLElement&, bool = false);
  10551. void MarkNetworkUpdate() const;
  10552. void Remove();
  10553. void RemoveAllInstanceNodes();
  10554. void RemoveAttributeAnimation(const String&);
  10555. void RemoveInstanceDefault();
  10556. void RemoveInstanceNode(Node);
  10557. void RemoveObjectAnimation();
  10558. void ResetToDefault();
  10559. bool Save(File) const;
  10560. bool Save(VectorBuffer&) const;
  10561. bool SaveJSON(JSONValue&) const;
  10562. bool SaveXML(XMLElement&) const;
  10563. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10564. void SetAnimationTime(float);
  10565. bool SetAttribute(const String&, const Variant&);
  10566. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10567. void SetAttributeAnimationSpeed(const String&, float);
  10568. void SetAttributeAnimationTime(const String&, float);
  10569. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10570. void SetInterceptNetworkUpdate(const String&, bool);
  10571. // Properties:
  10572. bool animationEnabled;
  10573. /* readonly */
  10574. Array<Variant> attributeDefaults;
  10575. /* readonly */
  10576. Array<AttributeInfo> attributeInfos;
  10577. Array<Variant> attributes;
  10578. /* readonly */
  10579. BoundingBox boundingBox;
  10580. bool castShadows;
  10581. /* readonly */
  10582. String category;
  10583. float drawDistance;
  10584. bool enabled;
  10585. /* readonly */
  10586. bool enabledEffective;
  10587. /* readonly */
  10588. uint id;
  10589. /* readonly */
  10590. bool inView;
  10591. /* readonly */
  10592. Array<Node> instanceNodes;
  10593. uint lightMask;
  10594. float lodBias;
  10595. /* writeonly */
  10596. Material material;
  10597. Array<Material> materials;
  10598. uint maxLights;
  10599. Model model;
  10600. /* readonly */
  10601. Node node;
  10602. /* readonly */
  10603. uint numAttributes;
  10604. /* readonly */
  10605. uint numGeometries;
  10606. /* readonly */
  10607. uint numInstanceNodes;
  10608. ObjectAnimation objectAnimation;
  10609. bool occludee;
  10610. bool occluder;
  10611. uint occlusionLodLevel;
  10612. /* readonly */
  10613. int refs;
  10614. float shadowDistance;
  10615. uint shadowMask;
  10616. bool temporary;
  10617. /* readonly */
  10618. StringHash type;
  10619. /* readonly */
  10620. String typeName;
  10621. uint viewMask;
  10622. /* readonly */
  10623. int weakRefs;
  10624. /* readonly */
  10625. BoundingBox worldBoundingBox;
  10626. /* readonly */
  10627. Zone zone;
  10628. uint zoneMask;
  10629. };
  10630. class StaticSprite2D
  10631. {
  10632. // Methods:
  10633. void ApplyAttributes();
  10634. void DrawDebugGeometry(DebugRenderer, bool);
  10635. Variant GetAttribute(const String&) const;
  10636. ValueAnimation GetAttributeAnimation(const String&) const;
  10637. float GetAttributeAnimationSpeed(const String&) const;
  10638. float GetAttributeAnimationTime(const String&) const;
  10639. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10640. Variant GetAttributeDefault(const String&) const;
  10641. bool GetInterceptNetworkUpdate(const String&) const;
  10642. bool HasSubscribedToEvent(Object, const String&);
  10643. bool HasSubscribedToEvent(const String&);
  10644. bool IsInView(Camera) const;
  10645. bool Load(File, bool = false);
  10646. bool Load(VectorBuffer&, bool = false);
  10647. bool LoadJSON(const JSONValue&, bool = false);
  10648. bool LoadXML(const XMLElement&, bool = false);
  10649. void MarkNetworkUpdate() const;
  10650. void Remove();
  10651. void RemoveAttributeAnimation(const String&);
  10652. void RemoveInstanceDefault();
  10653. void RemoveObjectAnimation();
  10654. void ResetToDefault();
  10655. bool Save(File) const;
  10656. bool Save(VectorBuffer&) const;
  10657. bool SaveJSON(JSONValue&) const;
  10658. bool SaveXML(XMLElement&) const;
  10659. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10660. void SetAnimationTime(float);
  10661. bool SetAttribute(const String&, const Variant&);
  10662. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10663. void SetAttributeAnimationSpeed(const String&, float);
  10664. void SetAttributeAnimationTime(const String&, float);
  10665. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10666. void SetFlip(bool, bool);
  10667. void SetInterceptNetworkUpdate(const String&, bool);
  10668. // Properties:
  10669. float alpha;
  10670. bool animationEnabled;
  10671. /* readonly */
  10672. Array<Variant> attributeDefaults;
  10673. /* readonly */
  10674. Array<AttributeInfo> attributeInfos;
  10675. Array<Variant> attributes;
  10676. BlendMode blendMode;
  10677. /* readonly */
  10678. BoundingBox boundingBox;
  10679. bool castShadows;
  10680. /* readonly */
  10681. String category;
  10682. Color color;
  10683. Material customMaterial;
  10684. float drawDistance;
  10685. bool enabled;
  10686. /* readonly */
  10687. bool enabledEffective;
  10688. bool flipX;
  10689. bool flipY;
  10690. Vector2 hotSpot;
  10691. /* readonly */
  10692. uint id;
  10693. /* readonly */
  10694. bool inView;
  10695. int layer;
  10696. uint lightMask;
  10697. float lodBias;
  10698. uint maxLights;
  10699. /* readonly */
  10700. Node node;
  10701. /* readonly */
  10702. uint numAttributes;
  10703. ObjectAnimation objectAnimation;
  10704. bool occludee;
  10705. bool occluder;
  10706. int orderInLayer;
  10707. /* readonly */
  10708. int refs;
  10709. float shadowDistance;
  10710. uint shadowMask;
  10711. Sprite2D sprite;
  10712. bool temporary;
  10713. /* readonly */
  10714. StringHash type;
  10715. /* readonly */
  10716. String typeName;
  10717. bool useHotSpot;
  10718. uint viewMask;
  10719. /* readonly */
  10720. int weakRefs;
  10721. /* readonly */
  10722. BoundingBox worldBoundingBox;
  10723. uint zoneMask;
  10724. };
  10725. class String
  10726. {
  10727. // Methods:
  10728. void AppendUTF8(uint);
  10729. uint AtUTF8(uint) const;
  10730. uint ByteOffsetUTF8(uint) const;
  10731. void Clear();
  10732. int Compare(const String&, bool = true) const;
  10733. bool Contains(const String&, bool = true) const;
  10734. bool Contains(uint8, bool = true) const;
  10735. bool EndsWith(const String&, bool = true) const;
  10736. uint Find(const String&, uint = 0, bool = true) const;
  10737. uint Find(uint8, uint = 0, bool = true) const;
  10738. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10739. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10740. void Join(Array<String>&, const String&);
  10741. uint NextUTF8Char(uint&) const;
  10742. void Replace(const String&, const String&, bool = true);
  10743. void Replace(uint8, uint8, bool = true);
  10744. void ReplaceUTF8(uint, uint);
  10745. String Replaced(const String&, const String&, bool = true) const;
  10746. String Replaced(uint8, uint8, bool = true) const;
  10747. void Resize(uint);
  10748. void SetUTF8FromLatin1(const String&);
  10749. Array<String> Split(uint8, bool = false) const;
  10750. bool StartsWith(const String&, bool = true) const;
  10751. String Substring(uint) const;
  10752. String Substring(uint, uint) const;
  10753. String SubstringUTF8(uint) const;
  10754. String SubstringUTF8(uint, uint) const;
  10755. bool ToBool() const;
  10756. Color ToColor() const;
  10757. double ToDouble() const;
  10758. float ToFloat() const;
  10759. int ToInt() const;
  10760. IntRect ToIntRect() const;
  10761. IntVector2 ToIntVector2() const;
  10762. String ToLower() const;
  10763. Matrix3 ToMatrix3() const;
  10764. Matrix3x4 ToMatrix3x4() const;
  10765. Matrix4 ToMatrix4() const;
  10766. Quaternion ToQuaternion() const;
  10767. uint ToUInt() const;
  10768. String ToUpper() const;
  10769. Vector2 ToVector2() const;
  10770. Vector3 ToVector3() const;
  10771. Vector4 ToVector4(bool = false) const;
  10772. Variant ToVectorVariant() const;
  10773. String Trimmed() const;
  10774. // Properties:
  10775. /* readonly */
  10776. bool empty;
  10777. /* readonly */
  10778. uint length;
  10779. /* readonly */
  10780. uint utf8Length;
  10781. };
  10782. class StringHash
  10783. {
  10784. // Methods:
  10785. String ToString() const;
  10786. // Properties:
  10787. /* readonly */
  10788. uint value;
  10789. };
  10790. class Technique
  10791. {
  10792. // Methods:
  10793. Technique Clone(const String& = String ( )) const;
  10794. Pass CreatePass(const String&);
  10795. Pass GetPass(const String&);
  10796. Pass GetSupportedPass(const String&);
  10797. bool HasPass(const String&) const;
  10798. bool HasSubscribedToEvent(Object, const String&);
  10799. bool HasSubscribedToEvent(const String&);
  10800. bool Load(File);
  10801. bool Load(VectorBuffer&);
  10802. void RemovePass(const String&);
  10803. bool Save(File) const;
  10804. bool Save(VectorBuffer&) const;
  10805. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10806. // Properties:
  10807. /* readonly */
  10808. String category;
  10809. bool desktop;
  10810. /* readonly */
  10811. uint memoryUse;
  10812. String name;
  10813. /* readonly */
  10814. uint numPasses;
  10815. /* readonly */
  10816. Array<String> passNames;
  10817. /* readonly */
  10818. Array<Pass> passes;
  10819. /* readonly */
  10820. int refs;
  10821. /* readonly */
  10822. bool supported;
  10823. /* readonly */
  10824. StringHash type;
  10825. /* readonly */
  10826. String typeName;
  10827. /* readonly */
  10828. uint useTimer;
  10829. /* readonly */
  10830. int weakRefs;
  10831. };
  10832. class TechniqueEntry
  10833. {
  10834. // Properties:
  10835. float lodDistance;
  10836. int qualityLevel;
  10837. Technique technique;
  10838. };
  10839. class Terrain
  10840. {
  10841. // Methods:
  10842. void ApplyAttributes();
  10843. void ApplyHeightMap();
  10844. void DrawDebugGeometry(DebugRenderer, bool);
  10845. Variant GetAttribute(const String&) const;
  10846. ValueAnimation GetAttributeAnimation(const String&) const;
  10847. float GetAttributeAnimationSpeed(const String&) const;
  10848. float GetAttributeAnimationTime(const String&) const;
  10849. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10850. Variant GetAttributeDefault(const String&) const;
  10851. float GetHeight(const Vector3&) const;
  10852. bool GetInterceptNetworkUpdate(const String&) const;
  10853. Vector3 GetNormal(const Vector3&) const;
  10854. TerrainPatch GetPatch(int, int) const;
  10855. bool HasSubscribedToEvent(Object, const String&);
  10856. bool HasSubscribedToEvent(const String&);
  10857. bool Load(File, bool = false);
  10858. bool Load(VectorBuffer&, bool = false);
  10859. bool LoadJSON(const JSONValue&, bool = false);
  10860. bool LoadXML(const XMLElement&, bool = false);
  10861. void MarkNetworkUpdate() const;
  10862. void Remove();
  10863. void RemoveAttributeAnimation(const String&);
  10864. void RemoveInstanceDefault();
  10865. void RemoveObjectAnimation();
  10866. void ResetToDefault();
  10867. bool Save(File) const;
  10868. bool Save(VectorBuffer&) const;
  10869. bool SaveJSON(JSONValue&) const;
  10870. bool SaveXML(XMLElement&) const;
  10871. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10872. void SetAnimationTime(float);
  10873. bool SetAttribute(const String&, const Variant&);
  10874. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10875. void SetAttributeAnimationSpeed(const String&, float);
  10876. void SetAttributeAnimationTime(const String&, float);
  10877. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10878. void SetInterceptNetworkUpdate(const String&, bool);
  10879. IntVector2 WorldToHeightMap(const Vector3&) const;
  10880. // Properties:
  10881. bool animationEnabled;
  10882. /* readonly */
  10883. Array<Variant> attributeDefaults;
  10884. /* readonly */
  10885. Array<AttributeInfo> attributeInfos;
  10886. Array<Variant> attributes;
  10887. bool castShadows;
  10888. /* readonly */
  10889. String category;
  10890. float drawDistance;
  10891. bool enabled;
  10892. /* readonly */
  10893. bool enabledEffective;
  10894. Image heightMap;
  10895. /* readonly */
  10896. uint id;
  10897. uint lightMask;
  10898. float lodBias;
  10899. Material material;
  10900. uint maxLights;
  10901. uint maxLodLevels;
  10902. /* readonly */
  10903. Node node;
  10904. /* readonly */
  10905. uint numAttributes;
  10906. /* readonly */
  10907. IntVector2 numPatches;
  10908. /* readonly */
  10909. IntVector2 numVertices;
  10910. ObjectAnimation objectAnimation;
  10911. bool occludee;
  10912. bool occluder;
  10913. uint occlusionLodLevel;
  10914. int patchSize;
  10915. /* readonly */
  10916. Array<TerrainPatch> patches;
  10917. /* readonly */
  10918. int refs;
  10919. float shadowDistance;
  10920. uint shadowMask;
  10921. bool smoothing;
  10922. Vector3 spacing;
  10923. bool temporary;
  10924. /* readonly */
  10925. StringHash type;
  10926. /* readonly */
  10927. String typeName;
  10928. uint viewMask;
  10929. /* readonly */
  10930. int weakRefs;
  10931. uint zoneMask;
  10932. };
  10933. class TerrainPatch
  10934. {
  10935. // Methods:
  10936. void ApplyAttributes();
  10937. void DrawDebugGeometry(DebugRenderer, bool);
  10938. Variant GetAttribute(const String&) const;
  10939. ValueAnimation GetAttributeAnimation(const String&) const;
  10940. float GetAttributeAnimationSpeed(const String&) const;
  10941. float GetAttributeAnimationTime(const String&) const;
  10942. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10943. Variant GetAttributeDefault(const String&) const;
  10944. bool GetInterceptNetworkUpdate(const String&) const;
  10945. bool HasSubscribedToEvent(Object, const String&);
  10946. bool HasSubscribedToEvent(const String&);
  10947. bool IsInView(Camera) const;
  10948. bool Load(File, bool = false);
  10949. bool Load(VectorBuffer&, bool = false);
  10950. bool LoadJSON(const JSONValue&, bool = false);
  10951. bool LoadXML(const XMLElement&, bool = false);
  10952. void MarkNetworkUpdate() const;
  10953. void Remove();
  10954. void RemoveAttributeAnimation(const String&);
  10955. void RemoveInstanceDefault();
  10956. void RemoveObjectAnimation();
  10957. void ResetToDefault();
  10958. bool Save(File) const;
  10959. bool Save(VectorBuffer&) const;
  10960. bool SaveJSON(JSONValue&) const;
  10961. bool SaveXML(XMLElement&) const;
  10962. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10963. void SetAnimationTime(float);
  10964. bool SetAttribute(const String&, const Variant&);
  10965. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10966. void SetAttributeAnimationSpeed(const String&, float);
  10967. void SetAttributeAnimationTime(const String&, float);
  10968. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10969. void SetInterceptNetworkUpdate(const String&, bool);
  10970. // Properties:
  10971. bool animationEnabled;
  10972. /* readonly */
  10973. Array<Variant> attributeDefaults;
  10974. /* readonly */
  10975. Array<AttributeInfo> attributeInfos;
  10976. Array<Variant> attributes;
  10977. /* readonly */
  10978. BoundingBox boundingBox;
  10979. bool castShadows;
  10980. /* readonly */
  10981. String category;
  10982. float drawDistance;
  10983. bool enabled;
  10984. /* readonly */
  10985. bool enabledEffective;
  10986. /* readonly */
  10987. uint id;
  10988. /* readonly */
  10989. bool inView;
  10990. uint lightMask;
  10991. float lodBias;
  10992. uint maxLights;
  10993. /* readonly */
  10994. Node node;
  10995. /* readonly */
  10996. uint numAttributes;
  10997. ObjectAnimation objectAnimation;
  10998. bool occludee;
  10999. bool occluder;
  11000. /* readonly */
  11001. int refs;
  11002. float shadowDistance;
  11003. uint shadowMask;
  11004. bool temporary;
  11005. /* readonly */
  11006. StringHash type;
  11007. /* readonly */
  11008. String typeName;
  11009. uint viewMask;
  11010. /* readonly */
  11011. int weakRefs;
  11012. /* readonly */
  11013. BoundingBox worldBoundingBox;
  11014. uint zoneMask;
  11015. };
  11016. class Text
  11017. {
  11018. // Methods:
  11019. void AddChild(UIElement);
  11020. void AddTag(const String&);
  11021. void AddTags(const String&, int8 = ';');
  11022. void ApplyAttributes();
  11023. void BringToFront();
  11024. void ClearSelection();
  11025. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11026. void DisableLayoutUpdate();
  11027. IntVector2 ElementToScreen(const IntVector2&);
  11028. void EnableLayoutUpdate();
  11029. uint FindChild(UIElement) const;
  11030. Variant GetAttribute(const String&) const;
  11031. ValueAnimation GetAttributeAnimation(const String&) const;
  11032. float GetAttributeAnimationSpeed(const String&) const;
  11033. float GetAttributeAnimationTime(const String&) const;
  11034. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11035. Variant GetAttributeDefault(const String&) const;
  11036. UIElement GetChild(const String&, bool = false) const;
  11037. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11038. Array<UIElement> GetChildren(bool = false) const;
  11039. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11040. UIElement GetElementEventSender() const;
  11041. bool GetInterceptNetworkUpdate(const String&) const;
  11042. uint GetNumChildren(bool) const;
  11043. bool HasSubscribedToEvent(Object, const String&);
  11044. bool HasSubscribedToEvent(const String&);
  11045. bool HasTag(const String&) const;
  11046. void InsertChild(uint, UIElement);
  11047. bool IsInside(IntVector2, bool);
  11048. bool IsInsideCombined(IntVector2, bool);
  11049. bool Load(File, bool = false);
  11050. bool Load(VectorBuffer&, bool = false);
  11051. bool LoadChildXML(XMLFile, XMLFile = null);
  11052. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11053. bool LoadJSON(const JSONValue&, bool = false);
  11054. bool LoadXML(File);
  11055. bool LoadXML(VectorBuffer&);
  11056. bool LoadXML(XMLFile, XMLFile);
  11057. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11058. bool LoadXML(const XMLElement&, bool = false);
  11059. void MarkNetworkUpdate() const;
  11060. void Remove();
  11061. void RemoveAllChildren();
  11062. void RemoveAllTags();
  11063. void RemoveAttributeAnimation(const String&);
  11064. void RemoveChild(UIElement, uint = 0);
  11065. void RemoveChild(uint);
  11066. void RemoveInstanceDefault();
  11067. void RemoveObjectAnimation();
  11068. bool RemoveTag(const String&);
  11069. void ResetDeepEnabled();
  11070. void ResetToDefault();
  11071. bool Save(File) const;
  11072. bool Save(VectorBuffer&) const;
  11073. bool SaveJSON(JSONValue&) const;
  11074. bool SaveXML(File, const String& = "\t");
  11075. bool SaveXML(VectorBuffer&, const String& = "\t");
  11076. bool SaveXML(XMLElement&) const;
  11077. IntVector2 ScreenToElement(const IntVector2&);
  11078. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11079. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11080. void SetAnimationTime(float);
  11081. bool SetAttribute(const String&, const Variant&);
  11082. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11083. void SetAttributeAnimationSpeed(const String&, float);
  11084. void SetAttributeAnimationTime(const String&, float);
  11085. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11086. void SetDeepEnabled(bool);
  11087. void SetEnabledRecursive(bool);
  11088. void SetFixedHeight(int);
  11089. void SetFixedSize(int, int);
  11090. void SetFixedWidth(int);
  11091. bool SetFont(Font, int);
  11092. bool SetFont(const String&, int);
  11093. void SetInterceptNetworkUpdate(const String&, bool);
  11094. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11095. void SetMaxSize(int, int);
  11096. void SetMinSize(int, int);
  11097. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11098. void SetPosition(int, int);
  11099. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  11100. void SetSize(int, int);
  11101. bool SetStyle(const String&, XMLFile = null);
  11102. bool SetStyle(const XMLElement&);
  11103. bool SetStyleAuto(XMLFile = null);
  11104. void UpdateLayout();
  11105. const Variant& GetVar(const StringHash&);
  11106. // Properties:
  11107. bool animationEnabled;
  11108. /* readonly */
  11109. Array<Variant> attributeDefaults;
  11110. /* readonly */
  11111. Array<AttributeInfo> attributeInfos;
  11112. Array<Variant> attributes;
  11113. bool autoLocalizable;
  11114. bool bringToBack;
  11115. bool bringToFront;
  11116. /* readonly */
  11117. String category;
  11118. /* readonly */
  11119. Array<IntVector2> charPositions;
  11120. /* readonly */
  11121. Array<IntVector2> charSizes;
  11122. /* readonly */
  11123. IntVector2 childOffset;
  11124. /* readonly */
  11125. Array<UIElement> children;
  11126. IntRect clipBorder;
  11127. bool clipChildren;
  11128. /* writeonly */
  11129. Color color;
  11130. /* readonly */
  11131. bool colorGradient;
  11132. Array<Color> colors;
  11133. /* readonly */
  11134. IntRect combinedScreenRect;
  11135. XMLFile defaultStyle;
  11136. /* readonly */
  11137. float derivedOpacity;
  11138. /* readonly */
  11139. uint dragButtonCombo;
  11140. /* readonly */
  11141. int dragButtonCount;
  11142. uint dragDropMode;
  11143. bool editable;
  11144. Color effectColor;
  11145. bool effectRoundStroke;
  11146. IntVector2 effectShadowOffset;
  11147. int effectStrokeThickness;
  11148. bool elementEventSender;
  11149. bool enabled;
  11150. /* readonly */
  11151. bool enabledSelf;
  11152. /* readonly */
  11153. bool fixedHeight;
  11154. /* readonly */
  11155. bool fixedSize;
  11156. /* readonly */
  11157. bool fixedWidth;
  11158. bool focus;
  11159. FocusMode focusMode;
  11160. /* readonly */
  11161. Font font;
  11162. /* readonly */
  11163. int fontSize;
  11164. int height;
  11165. HorizontalAlignment horizontalAlignment;
  11166. Color hoverColor;
  11167. /* readonly */
  11168. bool hovering;
  11169. int indent;
  11170. int indentSpacing;
  11171. /* readonly */
  11172. int indentWidth;
  11173. bool internal;
  11174. IntRect layoutBorder;
  11175. Vector2 layoutFlexScale;
  11176. LayoutMode layoutMode;
  11177. int layoutSpacing;
  11178. int maxHeight;
  11179. IntVector2 maxSize;
  11180. int maxWidth;
  11181. int minHeight;
  11182. IntVector2 minSize;
  11183. int minWidth;
  11184. String name;
  11185. /* readonly */
  11186. uint numAllChildren;
  11187. /* readonly */
  11188. uint numAttributes;
  11189. /* readonly */
  11190. uint numChars;
  11191. /* readonly */
  11192. uint numChildren;
  11193. /* readonly */
  11194. uint numRows;
  11195. ObjectAnimation objectAnimation;
  11196. float opacity;
  11197. UIElement parent;
  11198. IntVector2 position;
  11199. int priority;
  11200. /* readonly */
  11201. int refs;
  11202. /* readonly */
  11203. UIElement root;
  11204. /* readonly */
  11205. int rowHeight;
  11206. float rowSpacing;
  11207. /* readonly */
  11208. Array<int> rowWidths;
  11209. /* readonly */
  11210. IntVector2 screenPosition;
  11211. bool selected;
  11212. Color selectionColor;
  11213. /* readonly */
  11214. uint selectionLength;
  11215. /* readonly */
  11216. uint selectionStart;
  11217. IntVector2 size;
  11218. bool sortChildren;
  11219. String style;
  11220. /* readonly */
  11221. Array<String> tags;
  11222. bool temporary;
  11223. String text;
  11224. HorizontalAlignment textAlignment;
  11225. TextEffect textEffect;
  11226. TraversalMode traversalMode;
  11227. /* readonly */
  11228. StringHash type;
  11229. /* readonly */
  11230. String typeName;
  11231. bool useDerivedOpacity;
  11232. /* readonly */
  11233. VariantMap vars;
  11234. VerticalAlignment verticalAlignment;
  11235. bool visible;
  11236. /* readonly */
  11237. bool visibleEffective;
  11238. /* readonly */
  11239. int weakRefs;
  11240. int width;
  11241. bool wordwrap;
  11242. };
  11243. class Text3D
  11244. {
  11245. // Methods:
  11246. void ApplyAttributes();
  11247. void DrawDebugGeometry(DebugRenderer, bool);
  11248. Variant GetAttribute(const String&) const;
  11249. ValueAnimation GetAttributeAnimation(const String&) const;
  11250. float GetAttributeAnimationSpeed(const String&) const;
  11251. float GetAttributeAnimationTime(const String&) const;
  11252. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11253. Variant GetAttributeDefault(const String&) const;
  11254. bool GetInterceptNetworkUpdate(const String&) const;
  11255. bool HasSubscribedToEvent(Object, const String&);
  11256. bool HasSubscribedToEvent(const String&);
  11257. bool IsInView(Camera) const;
  11258. bool Load(File, bool = false);
  11259. bool Load(VectorBuffer&, bool = false);
  11260. bool LoadJSON(const JSONValue&, bool = false);
  11261. bool LoadXML(const XMLElement&, bool = false);
  11262. void MarkNetworkUpdate() const;
  11263. void Remove();
  11264. void RemoveAttributeAnimation(const String&);
  11265. void RemoveInstanceDefault();
  11266. void RemoveObjectAnimation();
  11267. void ResetToDefault();
  11268. bool Save(File) const;
  11269. bool Save(VectorBuffer&) const;
  11270. bool SaveJSON(JSONValue&) const;
  11271. bool SaveXML(XMLElement&) const;
  11272. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11273. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11274. void SetAnimationTime(float);
  11275. bool SetAttribute(const String&, const Variant&);
  11276. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11277. void SetAttributeAnimationSpeed(const String&, float);
  11278. void SetAttributeAnimationTime(const String&, float);
  11279. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11280. bool SetFont(Font, int);
  11281. bool SetFont(const String&, int);
  11282. void SetInterceptNetworkUpdate(const String&, bool);
  11283. // Properties:
  11284. bool animationEnabled;
  11285. /* readonly */
  11286. Array<Variant> attributeDefaults;
  11287. /* readonly */
  11288. Array<AttributeInfo> attributeInfos;
  11289. Array<Variant> attributes;
  11290. /* readonly */
  11291. BoundingBox boundingBox;
  11292. bool castShadows;
  11293. /* readonly */
  11294. String category;
  11295. /* readonly */
  11296. Array<IntVector2> charPositions;
  11297. /* readonly */
  11298. Array<IntVector2> charSizes;
  11299. /* writeonly */
  11300. Color color;
  11301. Array<Color> colors;
  11302. float drawDistance;
  11303. Color effectColor;
  11304. float effectDepthBias;
  11305. bool effectRoundStroke;
  11306. IntVector2 effectShadowOffset;
  11307. int effectStrokeThickness;
  11308. bool enabled;
  11309. /* readonly */
  11310. bool enabledEffective;
  11311. FaceCameraMode faceCameraMode;
  11312. bool fixedScreenSize;
  11313. /* readonly */
  11314. Font font;
  11315. /* readonly */
  11316. int fontSize;
  11317. HorizontalAlignment horizontalAlignment;
  11318. /* readonly */
  11319. uint id;
  11320. /* readonly */
  11321. bool inView;
  11322. uint lightMask;
  11323. float lodBias;
  11324. Material material;
  11325. uint maxLights;
  11326. /* readonly */
  11327. Node node;
  11328. /* readonly */
  11329. uint numAttributes;
  11330. /* readonly */
  11331. uint numChars;
  11332. /* readonly */
  11333. uint numRows;
  11334. ObjectAnimation objectAnimation;
  11335. bool occludee;
  11336. bool occluder;
  11337. float opacity;
  11338. /* readonly */
  11339. int refs;
  11340. /* readonly */
  11341. int rowHeight;
  11342. float rowSpacing;
  11343. /* readonly */
  11344. Array<int> rowWidths;
  11345. float shadowDistance;
  11346. uint shadowMask;
  11347. bool temporary;
  11348. String text;
  11349. HorizontalAlignment textAlignment;
  11350. TextEffect textEffect;
  11351. /* readonly */
  11352. StringHash type;
  11353. /* readonly */
  11354. String typeName;
  11355. VerticalAlignment verticalAlignment;
  11356. uint viewMask;
  11357. /* readonly */
  11358. int weakRefs;
  11359. int width;
  11360. bool wordwrap;
  11361. /* readonly */
  11362. BoundingBox worldBoundingBox;
  11363. uint zoneMask;
  11364. };
  11365. class Texture
  11366. {
  11367. // Methods:
  11368. void ClearDataLost();
  11369. bool HasSubscribedToEvent(Object, const String&);
  11370. bool HasSubscribedToEvent(const String&);
  11371. bool Load(File);
  11372. bool Load(VectorBuffer&);
  11373. bool Save(File) const;
  11374. bool Save(VectorBuffer&) const;
  11375. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11376. void SetNumLevels(uint);
  11377. // Properties:
  11378. Array<TextureAddressMode> addressMode;
  11379. Texture backupTexture;
  11380. Color borderColor;
  11381. /* readonly */
  11382. String category;
  11383. /* readonly */
  11384. uint components;
  11385. /* readonly */
  11386. bool compressed;
  11387. /* readonly */
  11388. bool dataLost;
  11389. TextureFilterMode filterMode;
  11390. /* readonly */
  11391. uint format;
  11392. /* readonly */
  11393. int height;
  11394. /* readonly */
  11395. Array<int> levelHeight;
  11396. /* readonly */
  11397. Array<int> levelWidth;
  11398. /* readonly */
  11399. uint levels;
  11400. /* readonly */
  11401. uint memoryUse;
  11402. Array<int> mipsToSkip;
  11403. String name;
  11404. /* readonly */
  11405. int refs;
  11406. bool sRGB;
  11407. /* readonly */
  11408. StringHash type;
  11409. /* readonly */
  11410. String typeName;
  11411. /* readonly */
  11412. TextureUsage usage;
  11413. /* readonly */
  11414. uint useTimer;
  11415. /* readonly */
  11416. int weakRefs;
  11417. /* readonly */
  11418. int width;
  11419. };
  11420. class Texture2D
  11421. {
  11422. // Methods:
  11423. void ClearDataLost();
  11424. Image GetImage() const;
  11425. bool HasSubscribedToEvent(Object, const String&);
  11426. bool HasSubscribedToEvent(const String&);
  11427. bool Load(File);
  11428. bool Load(VectorBuffer&);
  11429. bool Save(File) const;
  11430. bool Save(VectorBuffer&) const;
  11431. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11432. bool SetData(Image, bool = false);
  11433. void SetNumLevels(uint);
  11434. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  11435. // Properties:
  11436. Array<TextureAddressMode> addressMode;
  11437. Texture backupTexture;
  11438. Color borderColor;
  11439. /* readonly */
  11440. String category;
  11441. /* readonly */
  11442. uint components;
  11443. /* readonly */
  11444. bool compressed;
  11445. /* readonly */
  11446. bool dataLost;
  11447. TextureFilterMode filterMode;
  11448. /* readonly */
  11449. uint format;
  11450. /* readonly */
  11451. int height;
  11452. /* readonly */
  11453. Array<int> levelHeight;
  11454. /* readonly */
  11455. Array<int> levelWidth;
  11456. /* readonly */
  11457. uint levels;
  11458. /* readonly */
  11459. uint memoryUse;
  11460. Array<int> mipsToSkip;
  11461. String name;
  11462. /* readonly */
  11463. int refs;
  11464. /* readonly */
  11465. RenderSurface renderSurface;
  11466. bool sRGB;
  11467. /* readonly */
  11468. StringHash type;
  11469. /* readonly */
  11470. String typeName;
  11471. /* readonly */
  11472. TextureUsage usage;
  11473. /* readonly */
  11474. uint useTimer;
  11475. /* readonly */
  11476. int weakRefs;
  11477. /* readonly */
  11478. int width;
  11479. };
  11480. class Texture2DArray
  11481. {
  11482. // Methods:
  11483. void ClearDataLost();
  11484. bool HasSubscribedToEvent(Object, const String&);
  11485. bool HasSubscribedToEvent(const String&);
  11486. bool Load(File);
  11487. bool Load(VectorBuffer&);
  11488. bool Save(File) const;
  11489. bool Save(VectorBuffer&) const;
  11490. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11491. bool SetData(uint, Image, bool = false);
  11492. void SetNumLevels(uint);
  11493. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11494. // Properties:
  11495. Array<TextureAddressMode> addressMode;
  11496. Texture backupTexture;
  11497. Color borderColor;
  11498. /* readonly */
  11499. String category;
  11500. /* readonly */
  11501. uint components;
  11502. /* readonly */
  11503. bool compressed;
  11504. /* readonly */
  11505. bool dataLost;
  11506. TextureFilterMode filterMode;
  11507. /* readonly */
  11508. uint format;
  11509. /* readonly */
  11510. int height;
  11511. uint layers;
  11512. /* readonly */
  11513. Array<int> levelHeight;
  11514. /* readonly */
  11515. Array<int> levelWidth;
  11516. /* readonly */
  11517. uint levels;
  11518. /* readonly */
  11519. uint memoryUse;
  11520. Array<int> mipsToSkip;
  11521. String name;
  11522. /* readonly */
  11523. int refs;
  11524. /* readonly */
  11525. RenderSurface renderSurface;
  11526. bool sRGB;
  11527. /* readonly */
  11528. StringHash type;
  11529. /* readonly */
  11530. String typeName;
  11531. /* readonly */
  11532. TextureUsage usage;
  11533. /* readonly */
  11534. uint useTimer;
  11535. /* readonly */
  11536. int weakRefs;
  11537. /* readonly */
  11538. int width;
  11539. };
  11540. class Texture3D
  11541. {
  11542. // Methods:
  11543. void ClearDataLost();
  11544. bool HasSubscribedToEvent(Object, const String&);
  11545. bool HasSubscribedToEvent(const String&);
  11546. bool Load(File);
  11547. bool Load(VectorBuffer&);
  11548. bool Save(File) const;
  11549. bool Save(VectorBuffer&) const;
  11550. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11551. bool SetData(Image, bool = false);
  11552. void SetNumLevels(uint);
  11553. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11554. // Properties:
  11555. Array<TextureAddressMode> addressMode;
  11556. Texture backupTexture;
  11557. Color borderColor;
  11558. /* readonly */
  11559. String category;
  11560. /* readonly */
  11561. uint components;
  11562. /* readonly */
  11563. bool compressed;
  11564. /* readonly */
  11565. bool dataLost;
  11566. TextureFilterMode filterMode;
  11567. /* readonly */
  11568. uint format;
  11569. /* readonly */
  11570. int height;
  11571. /* readonly */
  11572. Array<int> levelHeight;
  11573. /* readonly */
  11574. Array<int> levelWidth;
  11575. /* readonly */
  11576. uint levels;
  11577. /* readonly */
  11578. uint memoryUse;
  11579. Array<int> mipsToSkip;
  11580. String name;
  11581. /* readonly */
  11582. int refs;
  11583. bool sRGB;
  11584. /* readonly */
  11585. StringHash type;
  11586. /* readonly */
  11587. String typeName;
  11588. /* readonly */
  11589. TextureUsage usage;
  11590. /* readonly */
  11591. uint useTimer;
  11592. /* readonly */
  11593. int weakRefs;
  11594. /* readonly */
  11595. int width;
  11596. };
  11597. class TextureCube
  11598. {
  11599. // Methods:
  11600. void ClearDataLost();
  11601. Image GetImage(CubeMapFace) const;
  11602. bool HasSubscribedToEvent(Object, const String&);
  11603. bool HasSubscribedToEvent(const String&);
  11604. bool Load(File);
  11605. bool Load(VectorBuffer&);
  11606. bool Save(File) const;
  11607. bool Save(VectorBuffer&) const;
  11608. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11609. bool SetData(CubeMapFace, Image, bool = false);
  11610. void SetNumLevels(uint);
  11611. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  11612. // Properties:
  11613. Array<TextureAddressMode> addressMode;
  11614. Texture backupTexture;
  11615. Color borderColor;
  11616. /* readonly */
  11617. String category;
  11618. /* readonly */
  11619. uint components;
  11620. /* readonly */
  11621. bool compressed;
  11622. /* readonly */
  11623. bool dataLost;
  11624. TextureFilterMode filterMode;
  11625. /* readonly */
  11626. uint format;
  11627. /* readonly */
  11628. int height;
  11629. /* readonly */
  11630. Array<int> levelHeight;
  11631. /* readonly */
  11632. Array<int> levelWidth;
  11633. /* readonly */
  11634. uint levels;
  11635. /* readonly */
  11636. uint memoryUse;
  11637. Array<int> mipsToSkip;
  11638. String name;
  11639. /* readonly */
  11640. int refs;
  11641. /* readonly */
  11642. Array<RenderSurface> renderSurfaces;
  11643. bool sRGB;
  11644. /* readonly */
  11645. StringHash type;
  11646. /* readonly */
  11647. String typeName;
  11648. /* readonly */
  11649. TextureUsage usage;
  11650. /* readonly */
  11651. uint useTimer;
  11652. /* readonly */
  11653. int weakRefs;
  11654. /* readonly */
  11655. int width;
  11656. };
  11657. class TextureFrame
  11658. {
  11659. // Properties:
  11660. float time;
  11661. Rect uv;
  11662. };
  11663. class Tile2D
  11664. {
  11665. // Methods:
  11666. bool HasProperty(const String&) const;
  11667. const String& GetProperty(const String&) const;
  11668. // Properties:
  11669. /* readonly */
  11670. int gid;
  11671. /* readonly */
  11672. int refs;
  11673. /* readonly */
  11674. Sprite2D sprite;
  11675. /* readonly */
  11676. int weakRefs;
  11677. };
  11678. class TileMap2D
  11679. {
  11680. // Methods:
  11681. void ApplyAttributes();
  11682. void DrawDebugGeometry(DebugRenderer, bool);
  11683. Variant GetAttribute(const String&) const;
  11684. ValueAnimation GetAttributeAnimation(const String&) const;
  11685. float GetAttributeAnimationSpeed(const String&) const;
  11686. float GetAttributeAnimationTime(const String&) const;
  11687. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11688. Variant GetAttributeDefault(const String&) const;
  11689. bool GetInterceptNetworkUpdate(const String&) const;
  11690. TileMapLayer2D GetLayer(uint) const;
  11691. bool HasSubscribedToEvent(Object, const String&);
  11692. bool HasSubscribedToEvent(const String&);
  11693. bool Load(File, bool = false);
  11694. bool Load(VectorBuffer&, bool = false);
  11695. bool LoadJSON(const JSONValue&, bool = false);
  11696. bool LoadXML(const XMLElement&, bool = false);
  11697. void MarkNetworkUpdate() const;
  11698. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11699. void Remove();
  11700. void RemoveAttributeAnimation(const String&);
  11701. void RemoveInstanceDefault();
  11702. void RemoveObjectAnimation();
  11703. void ResetToDefault();
  11704. bool Save(File) const;
  11705. bool Save(VectorBuffer&) const;
  11706. bool SaveJSON(JSONValue&) const;
  11707. bool SaveXML(XMLElement&) const;
  11708. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11709. void SetAnimationTime(float);
  11710. bool SetAttribute(const String&, const Variant&);
  11711. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11712. void SetAttributeAnimationSpeed(const String&, float);
  11713. void SetAttributeAnimationTime(const String&, float);
  11714. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11715. void SetInterceptNetworkUpdate(const String&, bool);
  11716. Vector2 TileIndexToPosition(int, int) const;
  11717. // Properties:
  11718. bool animationEnabled;
  11719. /* readonly */
  11720. Array<Variant> attributeDefaults;
  11721. /* readonly */
  11722. Array<AttributeInfo> attributeInfos;
  11723. Array<Variant> attributes;
  11724. /* readonly */
  11725. String category;
  11726. bool enabled;
  11727. /* readonly */
  11728. bool enabledEffective;
  11729. /* readonly */
  11730. uint id;
  11731. /* readonly */
  11732. TileMapInfo2D info;
  11733. /* readonly */
  11734. Node node;
  11735. /* readonly */
  11736. uint numAttributes;
  11737. /* readonly */
  11738. uint numLayers;
  11739. ObjectAnimation objectAnimation;
  11740. /* readonly */
  11741. int refs;
  11742. bool temporary;
  11743. TmxFile2D tmxFile;
  11744. /* readonly */
  11745. StringHash type;
  11746. /* readonly */
  11747. String typeName;
  11748. /* readonly */
  11749. int weakRefs;
  11750. };
  11751. class TileMapInfo2D
  11752. {
  11753. // Properties:
  11754. int height;
  11755. /* readonly */
  11756. float mapHeight;
  11757. /* readonly */
  11758. float mapWidth;
  11759. Orientation2D orientation;
  11760. float tileHeight;
  11761. float tileWidth;
  11762. int width;
  11763. };
  11764. class TileMapLayer2D
  11765. {
  11766. // Methods:
  11767. void ApplyAttributes();
  11768. void DrawDebugGeometry(DebugRenderer, bool);
  11769. Variant GetAttribute(const String&) const;
  11770. ValueAnimation GetAttributeAnimation(const String&) const;
  11771. float GetAttributeAnimationSpeed(const String&) const;
  11772. float GetAttributeAnimationTime(const String&) const;
  11773. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11774. Variant GetAttributeDefault(const String&) const;
  11775. bool GetInterceptNetworkUpdate(const String&) const;
  11776. TileMapObject2D GetObject(uint) const;
  11777. Node GetObjectNode(uint) const;
  11778. Tile2D GetTile(int, int) const;
  11779. Node GetTileNode(int, int) const;
  11780. bool HasProperty(const String&) const;
  11781. bool HasSubscribedToEvent(Object, const String&);
  11782. bool HasSubscribedToEvent(const String&);
  11783. bool Load(File, bool = false);
  11784. bool Load(VectorBuffer&, bool = false);
  11785. bool LoadJSON(const JSONValue&, bool = false);
  11786. bool LoadXML(const XMLElement&, bool = false);
  11787. void MarkNetworkUpdate() const;
  11788. void Remove();
  11789. void RemoveAttributeAnimation(const String&);
  11790. void RemoveInstanceDefault();
  11791. void RemoveObjectAnimation();
  11792. void ResetToDefault();
  11793. bool Save(File) const;
  11794. bool Save(VectorBuffer&) const;
  11795. bool SaveJSON(JSONValue&) const;
  11796. bool SaveXML(XMLElement&) const;
  11797. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11798. void SetAnimationTime(float);
  11799. bool SetAttribute(const String&, const Variant&);
  11800. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11801. void SetAttributeAnimationSpeed(const String&, float);
  11802. void SetAttributeAnimationTime(const String&, float);
  11803. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11804. void SetInterceptNetworkUpdate(const String&, bool);
  11805. const String& GetProperty(const String&) const;
  11806. // Properties:
  11807. bool animationEnabled;
  11808. /* readonly */
  11809. Array<Variant> attributeDefaults;
  11810. /* readonly */
  11811. Array<AttributeInfo> attributeInfos;
  11812. Array<Variant> attributes;
  11813. /* readonly */
  11814. String category;
  11815. int drawOrder;
  11816. bool enabled;
  11817. /* readonly */
  11818. bool enabledEffective;
  11819. /* readonly */
  11820. int height;
  11821. /* readonly */
  11822. uint id;
  11823. /* readonly */
  11824. Node imageNode;
  11825. /* readonly */
  11826. TileMapLayerType2D layerType;
  11827. /* readonly */
  11828. Node node;
  11829. /* readonly */
  11830. uint numAttributes;
  11831. /* readonly */
  11832. uint numObjects;
  11833. ObjectAnimation objectAnimation;
  11834. /* readonly */
  11835. int refs;
  11836. bool temporary;
  11837. /* readonly */
  11838. StringHash type;
  11839. /* readonly */
  11840. String typeName;
  11841. bool visible;
  11842. /* readonly */
  11843. int weakRefs;
  11844. /* readonly */
  11845. int width;
  11846. };
  11847. class TileMapObject2D
  11848. {
  11849. // Methods:
  11850. bool HasProperty(const String&) const;
  11851. const String& GetProperty(const String&) const;
  11852. const Vector2& GetPoint(uint) const;
  11853. // Properties:
  11854. /* readonly */
  11855. String name;
  11856. /* readonly */
  11857. uint numPoints;
  11858. /* readonly */
  11859. TileObjectType2D objectType;
  11860. /* readonly */
  11861. Vector2 position;
  11862. /* readonly */
  11863. int refs;
  11864. /* readonly */
  11865. Vector2 size;
  11866. /* readonly */
  11867. int tileGid;
  11868. /* readonly */
  11869. Sprite2D tileSprite;
  11870. /* readonly */
  11871. String type;
  11872. /* readonly */
  11873. int weakRefs;
  11874. };
  11875. class Time
  11876. {
  11877. // Methods:
  11878. bool HasSubscribedToEvent(Object, const String&);
  11879. bool HasSubscribedToEvent(const String&);
  11880. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11881. // Properties:
  11882. /* readonly */
  11883. String category;
  11884. /* readonly */
  11885. float elapsedTime;
  11886. /* readonly */
  11887. uint frameNumber;
  11888. /* readonly */
  11889. int refs;
  11890. /* readonly */
  11891. uint systemTime;
  11892. /* readonly */
  11893. uint timeSinceEpoch;
  11894. /* readonly */
  11895. String timeStamp;
  11896. /* readonly */
  11897. float timeStep;
  11898. /* readonly */
  11899. StringHash type;
  11900. /* readonly */
  11901. String typeName;
  11902. /* readonly */
  11903. int weakRefs;
  11904. };
  11905. class Timer
  11906. {
  11907. // Methods:
  11908. uint GetMSec(bool);
  11909. void Reset();
  11910. };
  11911. class TmxFile2D
  11912. {
  11913. // Methods:
  11914. bool HasSubscribedToEvent(Object, const String&);
  11915. bool HasSubscribedToEvent(const String&);
  11916. bool Load(File);
  11917. bool Load(VectorBuffer&);
  11918. bool Save(File) const;
  11919. bool Save(VectorBuffer&) const;
  11920. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11921. // Properties:
  11922. /* readonly */
  11923. String category;
  11924. /* readonly */
  11925. uint memoryUse;
  11926. String name;
  11927. /* readonly */
  11928. int refs;
  11929. /* readonly */
  11930. StringHash type;
  11931. /* readonly */
  11932. String typeName;
  11933. /* readonly */
  11934. uint useTimer;
  11935. /* readonly */
  11936. int weakRefs;
  11937. };
  11938. class ToolTip
  11939. {
  11940. // Methods:
  11941. void AddChild(UIElement);
  11942. void AddTag(const String&);
  11943. void AddTags(const String&, int8 = ';');
  11944. void ApplyAttributes();
  11945. void BringToFront();
  11946. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11947. void DisableLayoutUpdate();
  11948. IntVector2 ElementToScreen(const IntVector2&);
  11949. void EnableLayoutUpdate();
  11950. uint FindChild(UIElement) const;
  11951. Variant GetAttribute(const String&) const;
  11952. ValueAnimation GetAttributeAnimation(const String&) const;
  11953. float GetAttributeAnimationSpeed(const String&) const;
  11954. float GetAttributeAnimationTime(const String&) const;
  11955. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11956. Variant GetAttributeDefault(const String&) const;
  11957. UIElement GetChild(const String&, bool = false) const;
  11958. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11959. Array<UIElement> GetChildren(bool = false) const;
  11960. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11961. UIElement GetElementEventSender() const;
  11962. bool GetInterceptNetworkUpdate(const String&) const;
  11963. uint GetNumChildren(bool) const;
  11964. bool HasSubscribedToEvent(Object, const String&);
  11965. bool HasSubscribedToEvent(const String&);
  11966. bool HasTag(const String&) const;
  11967. void InsertChild(uint, UIElement);
  11968. bool IsInside(IntVector2, bool);
  11969. bool IsInsideCombined(IntVector2, bool);
  11970. bool Load(File, bool = false);
  11971. bool Load(VectorBuffer&, bool = false);
  11972. bool LoadChildXML(XMLFile, XMLFile = null);
  11973. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11974. bool LoadJSON(const JSONValue&, bool = false);
  11975. bool LoadXML(File);
  11976. bool LoadXML(VectorBuffer&);
  11977. bool LoadXML(XMLFile, XMLFile);
  11978. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11979. bool LoadXML(const XMLElement&, bool = false);
  11980. void MarkNetworkUpdate() const;
  11981. void Remove();
  11982. void RemoveAllChildren();
  11983. void RemoveAllTags();
  11984. void RemoveAttributeAnimation(const String&);
  11985. void RemoveChild(UIElement, uint = 0);
  11986. void RemoveChild(uint);
  11987. void RemoveInstanceDefault();
  11988. void RemoveObjectAnimation();
  11989. bool RemoveTag(const String&);
  11990. void ResetDeepEnabled();
  11991. void ResetToDefault();
  11992. bool Save(File) const;
  11993. bool Save(VectorBuffer&) const;
  11994. bool SaveJSON(JSONValue&) const;
  11995. bool SaveXML(File, const String& = "\t");
  11996. bool SaveXML(VectorBuffer&, const String& = "\t");
  11997. bool SaveXML(XMLElement&) const;
  11998. IntVector2 ScreenToElement(const IntVector2&);
  11999. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12000. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12001. void SetAnimationTime(float);
  12002. bool SetAttribute(const String&, const Variant&);
  12003. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12004. void SetAttributeAnimationSpeed(const String&, float);
  12005. void SetAttributeAnimationTime(const String&, float);
  12006. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12007. void SetDeepEnabled(bool);
  12008. void SetEnabledRecursive(bool);
  12009. void SetFixedHeight(int);
  12010. void SetFixedSize(int, int);
  12011. void SetFixedWidth(int);
  12012. void SetInterceptNetworkUpdate(const String&, bool);
  12013. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12014. void SetMaxSize(int, int);
  12015. void SetMinSize(int, int);
  12016. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12017. void SetPosition(int, int);
  12018. void SetSize(int, int);
  12019. bool SetStyle(const String&, XMLFile = null);
  12020. bool SetStyle(const XMLElement&);
  12021. bool SetStyleAuto(XMLFile = null);
  12022. void UpdateLayout();
  12023. const Variant& GetVar(const StringHash&);
  12024. // Properties:
  12025. bool animationEnabled;
  12026. /* readonly */
  12027. Array<Variant> attributeDefaults;
  12028. /* readonly */
  12029. Array<AttributeInfo> attributeInfos;
  12030. Array<Variant> attributes;
  12031. bool bringToBack;
  12032. bool bringToFront;
  12033. /* readonly */
  12034. String category;
  12035. /* readonly */
  12036. IntVector2 childOffset;
  12037. /* readonly */
  12038. Array<UIElement> children;
  12039. IntRect clipBorder;
  12040. bool clipChildren;
  12041. /* writeonly */
  12042. Color color;
  12043. /* readonly */
  12044. bool colorGradient;
  12045. Array<Color> colors;
  12046. /* readonly */
  12047. IntRect combinedScreenRect;
  12048. XMLFile defaultStyle;
  12049. float delay;
  12050. /* readonly */
  12051. float derivedOpacity;
  12052. /* readonly */
  12053. uint dragButtonCombo;
  12054. /* readonly */
  12055. int dragButtonCount;
  12056. uint dragDropMode;
  12057. bool editable;
  12058. bool elementEventSender;
  12059. bool enabled;
  12060. /* readonly */
  12061. bool enabledSelf;
  12062. /* readonly */
  12063. bool fixedHeight;
  12064. /* readonly */
  12065. bool fixedSize;
  12066. /* readonly */
  12067. bool fixedWidth;
  12068. bool focus;
  12069. FocusMode focusMode;
  12070. int height;
  12071. HorizontalAlignment horizontalAlignment;
  12072. /* readonly */
  12073. bool hovering;
  12074. int indent;
  12075. int indentSpacing;
  12076. /* readonly */
  12077. int indentWidth;
  12078. bool internal;
  12079. IntRect layoutBorder;
  12080. Vector2 layoutFlexScale;
  12081. LayoutMode layoutMode;
  12082. int layoutSpacing;
  12083. int maxHeight;
  12084. IntVector2 maxSize;
  12085. int maxWidth;
  12086. int minHeight;
  12087. IntVector2 minSize;
  12088. int minWidth;
  12089. String name;
  12090. /* readonly */
  12091. uint numAllChildren;
  12092. /* readonly */
  12093. uint numAttributes;
  12094. /* readonly */
  12095. uint numChildren;
  12096. ObjectAnimation objectAnimation;
  12097. float opacity;
  12098. UIElement parent;
  12099. IntVector2 position;
  12100. int priority;
  12101. /* readonly */
  12102. int refs;
  12103. /* readonly */
  12104. UIElement root;
  12105. /* readonly */
  12106. IntVector2 screenPosition;
  12107. bool selected;
  12108. IntVector2 size;
  12109. bool sortChildren;
  12110. String style;
  12111. /* readonly */
  12112. Array<String> tags;
  12113. bool temporary;
  12114. TraversalMode traversalMode;
  12115. /* readonly */
  12116. StringHash type;
  12117. /* readonly */
  12118. String typeName;
  12119. bool useDerivedOpacity;
  12120. /* readonly */
  12121. VariantMap vars;
  12122. VerticalAlignment verticalAlignment;
  12123. bool visible;
  12124. /* readonly */
  12125. bool visibleEffective;
  12126. /* readonly */
  12127. int weakRefs;
  12128. int width;
  12129. };
  12130. class TouchState
  12131. {
  12132. // Properties:
  12133. IntVector2 delta;
  12134. IntVector2 lastPosition;
  12135. IntVector2 position;
  12136. float pressure;
  12137. int touchID;
  12138. /* readonly */
  12139. UIElement touchedElement;
  12140. };
  12141. class UI
  12142. {
  12143. // Methods:
  12144. void Clear();
  12145. void DebugDraw(UIElement);
  12146. UIElement GetElementAt(const IntVector2&, bool = true);
  12147. UIElement GetElementAt(int, int, bool = true);
  12148. bool HasModalElement() const;
  12149. bool HasSubscribedToEvent(Object, const String&);
  12150. bool HasSubscribedToEvent(const String&);
  12151. bool IsDragging() const;
  12152. UIElement LoadLayout(File);
  12153. UIElement LoadLayout(File, XMLFile);
  12154. UIElement LoadLayout(VectorBuffer&);
  12155. UIElement LoadLayout(VectorBuffer&, XMLFile);
  12156. UIElement LoadLayout(XMLFile);
  12157. UIElement LoadLayout(XMLFile, XMLFile);
  12158. bool SaveLayout(File, UIElement);
  12159. bool SaveLayout(VectorBuffer&, UIElement);
  12160. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12161. void SetFocusElement(UIElement, bool = false);
  12162. void SetHeight(float);
  12163. void SetWidth(float);
  12164. const Array<UIElement> GetDragElements();
  12165. // Properties:
  12166. /* readonly */
  12167. String category;
  12168. String clipBoardText;
  12169. Cursor cursor;
  12170. /* readonly */
  12171. IntVector2 cursorPosition;
  12172. float defaultToolTipDelay;
  12173. float doubleClickInterval;
  12174. int dragBeginDistance;
  12175. float dragBeginInterval;
  12176. UIElement focusElement;
  12177. bool forceAutoHint;
  12178. /* readonly */
  12179. UIElement frontElement;
  12180. int maxFontTextureSize;
  12181. /* readonly */
  12182. UIElement modalRoot;
  12183. bool nonFocusedMouseWheel;
  12184. /* readonly */
  12185. int refs;
  12186. /* readonly */
  12187. UIElement root;
  12188. float scale;
  12189. /* readonly */
  12190. StringHash type;
  12191. /* readonly */
  12192. String typeName;
  12193. bool useMutableGlyphs;
  12194. bool useScreenKeyboard;
  12195. bool useSystemClipboard;
  12196. /* readonly */
  12197. int weakRefs;
  12198. };
  12199. class UIElement
  12200. {
  12201. // Methods:
  12202. void AddChild(UIElement);
  12203. void AddTag(const String&);
  12204. void AddTags(const String&, int8 = ';');
  12205. void ApplyAttributes();
  12206. void BringToFront();
  12207. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12208. void DisableLayoutUpdate();
  12209. IntVector2 ElementToScreen(const IntVector2&);
  12210. void EnableLayoutUpdate();
  12211. uint FindChild(UIElement) const;
  12212. Variant GetAttribute(const String&) const;
  12213. ValueAnimation GetAttributeAnimation(const String&) const;
  12214. float GetAttributeAnimationSpeed(const String&) const;
  12215. float GetAttributeAnimationTime(const String&) const;
  12216. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12217. Variant GetAttributeDefault(const String&) const;
  12218. UIElement GetChild(const String&, bool = false) const;
  12219. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12220. Array<UIElement> GetChildren(bool = false) const;
  12221. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12222. UIElement GetElementEventSender() const;
  12223. bool GetInterceptNetworkUpdate(const String&) const;
  12224. uint GetNumChildren(bool) const;
  12225. bool HasSubscribedToEvent(Object, const String&);
  12226. bool HasSubscribedToEvent(const String&);
  12227. bool HasTag(const String&) const;
  12228. void InsertChild(uint, UIElement);
  12229. bool IsInside(IntVector2, bool);
  12230. bool IsInsideCombined(IntVector2, bool);
  12231. bool Load(File, bool = false);
  12232. bool Load(VectorBuffer&, bool = false);
  12233. bool LoadChildXML(XMLFile, XMLFile = null);
  12234. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12235. bool LoadJSON(const JSONValue&, bool = false);
  12236. bool LoadXML(File);
  12237. bool LoadXML(VectorBuffer&);
  12238. bool LoadXML(XMLFile, XMLFile);
  12239. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12240. bool LoadXML(const XMLElement&, bool = false);
  12241. void MarkNetworkUpdate() const;
  12242. void Remove();
  12243. void RemoveAllChildren();
  12244. void RemoveAllTags();
  12245. void RemoveAttributeAnimation(const String&);
  12246. void RemoveChild(UIElement, uint = 0);
  12247. void RemoveChild(uint);
  12248. void RemoveInstanceDefault();
  12249. void RemoveObjectAnimation();
  12250. bool RemoveTag(const String&);
  12251. void ResetDeepEnabled();
  12252. void ResetToDefault();
  12253. bool Save(File) const;
  12254. bool Save(VectorBuffer&) const;
  12255. bool SaveJSON(JSONValue&) const;
  12256. bool SaveXML(File, const String& = "\t");
  12257. bool SaveXML(VectorBuffer&, const String& = "\t");
  12258. bool SaveXML(XMLElement&) const;
  12259. IntVector2 ScreenToElement(const IntVector2&);
  12260. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12261. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12262. void SetAnimationTime(float);
  12263. bool SetAttribute(const String&, const Variant&);
  12264. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12265. void SetAttributeAnimationSpeed(const String&, float);
  12266. void SetAttributeAnimationTime(const String&, float);
  12267. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12268. void SetDeepEnabled(bool);
  12269. void SetEnabledRecursive(bool);
  12270. void SetFixedHeight(int);
  12271. void SetFixedSize(int, int);
  12272. void SetFixedWidth(int);
  12273. void SetInterceptNetworkUpdate(const String&, bool);
  12274. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12275. void SetMaxSize(int, int);
  12276. void SetMinSize(int, int);
  12277. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12278. void SetPosition(int, int);
  12279. void SetSize(int, int);
  12280. bool SetStyle(const String&, XMLFile = null);
  12281. bool SetStyle(const XMLElement&);
  12282. bool SetStyleAuto(XMLFile = null);
  12283. void UpdateLayout();
  12284. const Variant& GetVar(const StringHash&);
  12285. // Properties:
  12286. bool animationEnabled;
  12287. /* readonly */
  12288. Array<Variant> attributeDefaults;
  12289. /* readonly */
  12290. Array<AttributeInfo> attributeInfos;
  12291. Array<Variant> attributes;
  12292. bool bringToBack;
  12293. bool bringToFront;
  12294. /* readonly */
  12295. String category;
  12296. /* readonly */
  12297. IntVector2 childOffset;
  12298. /* readonly */
  12299. Array<UIElement> children;
  12300. IntRect clipBorder;
  12301. bool clipChildren;
  12302. /* writeonly */
  12303. Color color;
  12304. /* readonly */
  12305. bool colorGradient;
  12306. Array<Color> colors;
  12307. /* readonly */
  12308. IntRect combinedScreenRect;
  12309. XMLFile defaultStyle;
  12310. /* readonly */
  12311. float derivedOpacity;
  12312. /* readonly */
  12313. uint dragButtonCombo;
  12314. /* readonly */
  12315. int dragButtonCount;
  12316. uint dragDropMode;
  12317. bool editable;
  12318. bool elementEventSender;
  12319. bool enabled;
  12320. /* readonly */
  12321. bool enabledSelf;
  12322. /* readonly */
  12323. bool fixedHeight;
  12324. /* readonly */
  12325. bool fixedSize;
  12326. /* readonly */
  12327. bool fixedWidth;
  12328. bool focus;
  12329. FocusMode focusMode;
  12330. int height;
  12331. HorizontalAlignment horizontalAlignment;
  12332. /* readonly */
  12333. bool hovering;
  12334. int indent;
  12335. int indentSpacing;
  12336. /* readonly */
  12337. int indentWidth;
  12338. bool internal;
  12339. IntRect layoutBorder;
  12340. Vector2 layoutFlexScale;
  12341. LayoutMode layoutMode;
  12342. int layoutSpacing;
  12343. int maxHeight;
  12344. IntVector2 maxSize;
  12345. int maxWidth;
  12346. int minHeight;
  12347. IntVector2 minSize;
  12348. int minWidth;
  12349. String name;
  12350. /* readonly */
  12351. uint numAllChildren;
  12352. /* readonly */
  12353. uint numAttributes;
  12354. /* readonly */
  12355. uint numChildren;
  12356. ObjectAnimation objectAnimation;
  12357. float opacity;
  12358. UIElement parent;
  12359. IntVector2 position;
  12360. int priority;
  12361. /* readonly */
  12362. int refs;
  12363. /* readonly */
  12364. UIElement root;
  12365. /* readonly */
  12366. IntVector2 screenPosition;
  12367. bool selected;
  12368. IntVector2 size;
  12369. bool sortChildren;
  12370. String style;
  12371. /* readonly */
  12372. Array<String> tags;
  12373. bool temporary;
  12374. TraversalMode traversalMode;
  12375. /* readonly */
  12376. StringHash type;
  12377. /* readonly */
  12378. String typeName;
  12379. bool useDerivedOpacity;
  12380. /* readonly */
  12381. VariantMap vars;
  12382. VerticalAlignment verticalAlignment;
  12383. bool visible;
  12384. /* readonly */
  12385. bool visibleEffective;
  12386. /* readonly */
  12387. int weakRefs;
  12388. int width;
  12389. };
  12390. class ValueAnimation
  12391. {
  12392. // Methods:
  12393. bool HasSubscribedToEvent(Object, const String&);
  12394. bool HasSubscribedToEvent(const String&);
  12395. bool Load(File);
  12396. bool Load(VectorBuffer&);
  12397. bool Save(File) const;
  12398. bool Save(VectorBuffer&) const;
  12399. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12400. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12401. void SetKeyFrame(float, const Variant&);
  12402. // Properties:
  12403. /* readonly */
  12404. String category;
  12405. InterpMethod interpolationMethod;
  12406. /* readonly */
  12407. uint memoryUse;
  12408. String name;
  12409. /* readonly */
  12410. int refs;
  12411. float splineTension;
  12412. /* readonly */
  12413. StringHash type;
  12414. /* readonly */
  12415. String typeName;
  12416. /* readonly */
  12417. uint useTimer;
  12418. VariantType valueType;
  12419. /* readonly */
  12420. int weakRefs;
  12421. };
  12422. class Variant
  12423. {
  12424. // Methods:
  12425. void Clear();
  12426. const Color& GetColor() const;
  12427. void FromString(VariantType, const String&);
  12428. void FromString(const String&, const String&);
  12429. bool GetBool() const;
  12430. VectorBuffer GetBuffer() const;
  12431. double GetDouble() const;
  12432. float GetFloat() const;
  12433. int GetInt() const;
  12434. RefCounted GetPtr() const;
  12435. ScriptObject GetScriptObject() const;
  12436. StringHash GetStringHash() const;
  12437. Array<String> GetStringVector() const;
  12438. uint GetUInt() const;
  12439. Array<Variant> GetVariantVector() const;
  12440. const IntRect& GetIntRect() const;
  12441. const IntVector2& GetIntVector2() const;
  12442. const Matrix3& GetMatrix3() const;
  12443. const Matrix3x4& GetMatrix3x4() const;
  12444. const Matrix4& GetMatrix4() const;
  12445. const Quaternion& GetQuaternion() const;
  12446. const ResourceRef& GetResourceRef() const;
  12447. const ResourceRefList& GetResourceRefList() const;
  12448. const String& GetString() const;
  12449. String ToString() const;
  12450. const VariantMap& GetVariantMap() const;
  12451. const Vector2& GetVector2() const;
  12452. const Vector3& GetVector3() const;
  12453. const Vector4& GetVector4() const;
  12454. // Properties:
  12455. /* readonly */
  12456. bool empty;
  12457. /* readonly */
  12458. VariantType type;
  12459. /* readonly */
  12460. String typeName;
  12461. /* readonly */
  12462. bool zero;
  12463. };
  12464. class VariantMap
  12465. {
  12466. // Methods:
  12467. void Clear();
  12468. bool Contains(StringHash) const;
  12469. bool Contains(const String&) const;
  12470. bool Erase(StringHash);
  12471. bool Erase(const String&);
  12472. // Properties:
  12473. /* readonly */
  12474. Array<StringHash> keys;
  12475. /* readonly */
  12476. uint length;
  12477. /* readonly */
  12478. Array<Variant> values;
  12479. };
  12480. class Vector2
  12481. {
  12482. // Methods:
  12483. Vector2 Abs() const;
  12484. float AbsDotProduct(const Vector2&) const;
  12485. float Angle(const Vector2&) const;
  12486. float DotProduct(const Vector2&) const;
  12487. bool Equals(const Vector2&) const;
  12488. bool IsNaN() const;
  12489. Vector2 Lerp(const Vector2&, float) const;
  12490. void Normalize();
  12491. Vector2 Normalized() const;
  12492. String ToString() const;
  12493. // Properties:
  12494. /* readonly */
  12495. Array<float> data;
  12496. /* readonly */
  12497. float length;
  12498. /* readonly */
  12499. float lengthSquared;
  12500. float x;
  12501. float y;
  12502. };
  12503. class Vector3
  12504. {
  12505. // Methods:
  12506. Vector3 Abs() const;
  12507. float AbsDotProduct(const Vector3&) const;
  12508. float Angle(const Vector3&) const;
  12509. Vector3 CrossProduct(const Vector3&) const;
  12510. float DotProduct(const Vector3&) const;
  12511. bool Equals(const Vector3&) const;
  12512. bool IsNaN() const;
  12513. Vector3 Lerp(const Vector3&, float) const;
  12514. void Normalize();
  12515. Vector3 Normalized() const;
  12516. String ToString() const;
  12517. // Properties:
  12518. /* readonly */
  12519. Array<float> data;
  12520. /* readonly */
  12521. float length;
  12522. /* readonly */
  12523. float lengthSquared;
  12524. float x;
  12525. float y;
  12526. float z;
  12527. };
  12528. class Vector4
  12529. {
  12530. // Methods:
  12531. Vector4 Abs() const;
  12532. float AbsDotProduct(const Vector4&) const;
  12533. float DotProduct(const Vector4&) const;
  12534. bool Equals(const Vector4&) const;
  12535. bool IsNaN() const;
  12536. Vector4 Lerp(const Vector4&, float) const;
  12537. String ToString() const;
  12538. // Properties:
  12539. /* readonly */
  12540. Array<float> data;
  12541. float w;
  12542. float x;
  12543. float y;
  12544. float z;
  12545. };
  12546. class VectorBuffer
  12547. {
  12548. // Methods:
  12549. void Clear();
  12550. Array<uint8> Read(uint);
  12551. bool ReadBool();
  12552. BoundingBox ReadBoundingBox();
  12553. int8 ReadByte();
  12554. Color ReadColor();
  12555. double ReadDouble();
  12556. String ReadFileID();
  12557. float ReadFloat();
  12558. int ReadInt();
  12559. IntRect ReadIntRect();
  12560. IntVector2 ReadIntVector2();
  12561. String ReadLine();
  12562. Matrix3 ReadMatrix3();
  12563. Matrix3x4 ReadMatrix3x4();
  12564. Matrix4 ReadMatrix4();
  12565. uint ReadNetID();
  12566. Quaternion ReadPackedQuaternion();
  12567. Vector3 ReadPackedVector3(float);
  12568. Quaternion ReadQuaternion();
  12569. int16 ReadShort();
  12570. String ReadString();
  12571. StringHash ReadStringHash();
  12572. uint8 ReadUByte();
  12573. uint ReadUInt();
  12574. uint16 ReadUShort();
  12575. uint ReadVLE();
  12576. Variant ReadVariant();
  12577. VariantMap ReadVariantMap();
  12578. Vector2 ReadVector2();
  12579. Vector3 ReadVector3();
  12580. Vector4 ReadVector4();
  12581. VectorBuffer ReadVectorBuffer(uint);
  12582. void Resize(uint);
  12583. uint Seek(uint);
  12584. void SetData(Deserializer, uint);
  12585. uint Write(Array<uint8>);
  12586. bool WriteBool(bool);
  12587. bool WriteBoundingBox(const BoundingBox&);
  12588. bool WriteByte(int8);
  12589. bool WriteColor(const Color&);
  12590. bool WriteDouble(double);
  12591. bool WriteFileID(const String&);
  12592. bool WriteFloat(float);
  12593. bool WriteInt(int);
  12594. bool WriteIntRect(const IntRect&);
  12595. bool WriteIntVector2(const IntVector2&);
  12596. bool WriteLine(const String&);
  12597. bool WriteMatrix3(const Matrix3&);
  12598. bool WriteMatrix3x4(const Matrix3x4&);
  12599. bool WriteMatrix4(const Matrix4&);
  12600. bool WriteNetID(uint);
  12601. bool WritePackedQuaternion(const Quaternion&);
  12602. bool WritePackedVector3(const Vector3&, float);
  12603. bool WriteQuaternion(const Quaternion&);
  12604. bool WriteShort(int16);
  12605. bool WriteString(const String&);
  12606. bool WriteStringHash(const StringHash&);
  12607. bool WriteUByte(uint8);
  12608. bool WriteUInt(uint);
  12609. bool WriteUShort(uint16);
  12610. bool WriteVLE(uint);
  12611. bool WriteVariant(const Variant&);
  12612. bool WriteVariantMap(const VariantMap&);
  12613. bool WriteVector2(const Vector2&);
  12614. bool WriteVector3(const Vector3&);
  12615. bool WriteVector4(const Vector4&);
  12616. bool WriteVectorBuffer(const VectorBuffer&);
  12617. // Properties:
  12618. /* readonly */
  12619. uint checksum;
  12620. /* readonly */
  12621. bool eof;
  12622. /* readonly */
  12623. String name;
  12624. /* readonly */
  12625. uint position;
  12626. /* readonly */
  12627. uint size;
  12628. };
  12629. class VertexBuffer
  12630. {
  12631. // Methods:
  12632. VectorBuffer GetData() const;
  12633. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  12634. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12635. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  12636. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12637. bool HasSubscribedToEvent(Object, const String&);
  12638. bool HasSubscribedToEvent(const String&);
  12639. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12640. bool SetData(VectorBuffer&);
  12641. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12642. void SetSize(uint, Array<VertexElement>, bool = false);
  12643. void SetSize(uint, uint, bool = false);
  12644. // Properties:
  12645. /* readonly */
  12646. String category;
  12647. /* readonly */
  12648. bool dynamic;
  12649. /* readonly */
  12650. uint elementMask;
  12651. /* readonly */
  12652. Array<VertexElement> elements;
  12653. /* readonly */
  12654. int refs;
  12655. bool shadowed;
  12656. /* readonly */
  12657. StringHash type;
  12658. /* readonly */
  12659. String typeName;
  12660. /* readonly */
  12661. uint vertexCount;
  12662. /* readonly */
  12663. uint vertexSize;
  12664. /* readonly */
  12665. int weakRefs;
  12666. };
  12667. class VertexElement
  12668. {
  12669. // Properties:
  12670. uint8 index;
  12671. uint offset;
  12672. bool perInstance;
  12673. VertexElementSemantic semantic;
  12674. VertexElementType type;
  12675. };
  12676. class View3D
  12677. {
  12678. // Methods:
  12679. void AddChild(UIElement);
  12680. void AddTag(const String&);
  12681. void AddTags(const String&, int8 = ';');
  12682. void ApplyAttributes();
  12683. void BringToFront();
  12684. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12685. void DisableLayoutUpdate();
  12686. IntVector2 ElementToScreen(const IntVector2&);
  12687. void EnableLayoutUpdate();
  12688. uint FindChild(UIElement) const;
  12689. Variant GetAttribute(const String&) const;
  12690. ValueAnimation GetAttributeAnimation(const String&) const;
  12691. float GetAttributeAnimationSpeed(const String&) const;
  12692. float GetAttributeAnimationTime(const String&) const;
  12693. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12694. Variant GetAttributeDefault(const String&) const;
  12695. UIElement GetChild(const String&, bool = false) const;
  12696. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12697. Array<UIElement> GetChildren(bool = false) const;
  12698. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12699. UIElement GetElementEventSender() const;
  12700. bool GetInterceptNetworkUpdate(const String&) const;
  12701. uint GetNumChildren(bool) const;
  12702. bool HasSubscribedToEvent(Object, const String&);
  12703. bool HasSubscribedToEvent(const String&);
  12704. bool HasTag(const String&) const;
  12705. void InsertChild(uint, UIElement);
  12706. bool IsInside(IntVector2, bool);
  12707. bool IsInsideCombined(IntVector2, bool);
  12708. bool Load(File, bool = false);
  12709. bool Load(VectorBuffer&, bool = false);
  12710. bool LoadChildXML(XMLFile, XMLFile = null);
  12711. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12712. bool LoadJSON(const JSONValue&, bool = false);
  12713. bool LoadXML(File);
  12714. bool LoadXML(VectorBuffer&);
  12715. bool LoadXML(XMLFile, XMLFile);
  12716. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12717. bool LoadXML(const XMLElement&, bool = false);
  12718. void MarkNetworkUpdate() const;
  12719. void QueueUpdate();
  12720. void Remove();
  12721. void RemoveAllChildren();
  12722. void RemoveAllTags();
  12723. void RemoveAttributeAnimation(const String&);
  12724. void RemoveChild(UIElement, uint = 0);
  12725. void RemoveChild(uint);
  12726. void RemoveInstanceDefault();
  12727. void RemoveObjectAnimation();
  12728. bool RemoveTag(const String&);
  12729. void ResetDeepEnabled();
  12730. void ResetToDefault();
  12731. bool Save(File) const;
  12732. bool Save(VectorBuffer&) const;
  12733. bool SaveJSON(JSONValue&) const;
  12734. bool SaveXML(File, const String& = "\t");
  12735. bool SaveXML(VectorBuffer&, const String& = "\t");
  12736. bool SaveXML(XMLElement&) const;
  12737. IntVector2 ScreenToElement(const IntVector2&);
  12738. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12739. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12740. void SetAnimationTime(float);
  12741. bool SetAttribute(const String&, const Variant&);
  12742. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12743. void SetAttributeAnimationSpeed(const String&, float);
  12744. void SetAttributeAnimationTime(const String&, float);
  12745. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12746. void SetDeepEnabled(bool);
  12747. void SetEnabledRecursive(bool);
  12748. void SetFixedHeight(int);
  12749. void SetFixedSize(int, int);
  12750. void SetFixedWidth(int);
  12751. void SetFullImageRect();
  12752. void SetHoverOffset(int, int);
  12753. void SetInterceptNetworkUpdate(const String&, bool);
  12754. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12755. void SetMaxSize(int, int);
  12756. void SetMinSize(int, int);
  12757. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12758. void SetPosition(int, int);
  12759. void SetSize(int, int);
  12760. bool SetStyle(const String&, XMLFile = null);
  12761. bool SetStyle(const XMLElement&);
  12762. bool SetStyleAuto(XMLFile = null);
  12763. void SetView(Scene, Camera, bool = true);
  12764. void UpdateLayout();
  12765. const Variant& GetVar(const StringHash&);
  12766. // Properties:
  12767. bool animationEnabled;
  12768. /* readonly */
  12769. Array<Variant> attributeDefaults;
  12770. /* readonly */
  12771. Array<AttributeInfo> attributeInfos;
  12772. Array<Variant> attributes;
  12773. bool autoUpdate;
  12774. BlendMode blendMode;
  12775. IntRect border;
  12776. bool bringToBack;
  12777. bool bringToFront;
  12778. /* readonly */
  12779. Node cameraNode;
  12780. /* readonly */
  12781. String category;
  12782. /* readonly */
  12783. IntVector2 childOffset;
  12784. /* readonly */
  12785. Array<UIElement> children;
  12786. IntRect clipBorder;
  12787. bool clipChildren;
  12788. /* writeonly */
  12789. Color color;
  12790. /* readonly */
  12791. bool colorGradient;
  12792. Array<Color> colors;
  12793. /* readonly */
  12794. IntRect combinedScreenRect;
  12795. XMLFile defaultStyle;
  12796. /* readonly */
  12797. Texture2D depthTexture;
  12798. /* readonly */
  12799. float derivedOpacity;
  12800. /* readonly */
  12801. uint dragButtonCombo;
  12802. /* readonly */
  12803. int dragButtonCount;
  12804. uint dragDropMode;
  12805. bool editable;
  12806. bool elementEventSender;
  12807. bool enabled;
  12808. /* readonly */
  12809. bool enabledSelf;
  12810. /* readonly */
  12811. bool fixedHeight;
  12812. bool fixedHeightResizing;
  12813. /* readonly */
  12814. bool fixedSize;
  12815. /* readonly */
  12816. bool fixedWidth;
  12817. bool fixedWidthResizing;
  12818. bool focus;
  12819. FocusMode focusMode;
  12820. uint format;
  12821. int height;
  12822. HorizontalAlignment horizontalAlignment;
  12823. IntVector2 hoverOffset;
  12824. /* readonly */
  12825. bool hovering;
  12826. IntRect imageBorder;
  12827. IntRect imageRect;
  12828. int indent;
  12829. int indentSpacing;
  12830. /* readonly */
  12831. int indentWidth;
  12832. bool internal;
  12833. IntRect layoutBorder;
  12834. Vector2 layoutFlexScale;
  12835. LayoutMode layoutMode;
  12836. int layoutSpacing;
  12837. int maxHeight;
  12838. IntVector2 maxSize;
  12839. int maxWidth;
  12840. int minHeight;
  12841. IntVector2 minSize;
  12842. int minWidth;
  12843. bool modal;
  12844. bool modalAutoDismiss;
  12845. Color modalFrameColor;
  12846. IntVector2 modalFrameSize;
  12847. Color modalShadeColor;
  12848. bool movable;
  12849. String name;
  12850. /* readonly */
  12851. uint numAllChildren;
  12852. /* readonly */
  12853. uint numAttributes;
  12854. /* readonly */
  12855. uint numChildren;
  12856. ObjectAnimation objectAnimation;
  12857. float opacity;
  12858. UIElement parent;
  12859. IntVector2 position;
  12860. int priority;
  12861. /* readonly */
  12862. int refs;
  12863. /* readonly */
  12864. Texture2D renderTexture;
  12865. bool resizable;
  12866. IntRect resizeBorder;
  12867. /* readonly */
  12868. UIElement root;
  12869. /* readonly */
  12870. Scene scene;
  12871. /* readonly */
  12872. IntVector2 screenPosition;
  12873. bool selected;
  12874. IntVector2 size;
  12875. bool sortChildren;
  12876. String style;
  12877. /* readonly */
  12878. Array<String> tags;
  12879. bool temporary;
  12880. Texture texture;
  12881. bool tiled;
  12882. TraversalMode traversalMode;
  12883. /* readonly */
  12884. StringHash type;
  12885. /* readonly */
  12886. String typeName;
  12887. bool useDerivedOpacity;
  12888. /* readonly */
  12889. VariantMap vars;
  12890. VerticalAlignment verticalAlignment;
  12891. /* readonly */
  12892. Viewport viewport;
  12893. bool visible;
  12894. /* readonly */
  12895. bool visibleEffective;
  12896. /* readonly */
  12897. int weakRefs;
  12898. int width;
  12899. };
  12900. class Viewport
  12901. {
  12902. // Methods:
  12903. Ray GetScreenRay(int, int) const;
  12904. bool HasSubscribedToEvent(Object, const String&);
  12905. bool HasSubscribedToEvent(const String&);
  12906. Vector3 ScreenToWorldPoint(int, int, float) const;
  12907. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12908. void SetRenderPath(XMLFile);
  12909. Vector2 WorldToScreenPoint(const Vector3&) const;
  12910. // Properties:
  12911. Camera camera;
  12912. /* readonly */
  12913. String category;
  12914. Camera cullCamera;
  12915. bool drawDebug;
  12916. IntRect rect;
  12917. /* readonly */
  12918. int refs;
  12919. RenderPath renderPath;
  12920. Scene scene;
  12921. /* readonly */
  12922. StringHash type;
  12923. /* readonly */
  12924. String typeName;
  12925. /* readonly */
  12926. int weakRefs;
  12927. };
  12928. class WeakHandle
  12929. {
  12930. // Methods:
  12931. RefCounted Get() const;
  12932. // Properties:
  12933. /* readonly */
  12934. bool expired;
  12935. /* readonly */
  12936. int refs;
  12937. /* readonly */
  12938. int weakRefs;
  12939. };
  12940. class Window
  12941. {
  12942. // Methods:
  12943. void AddChild(UIElement);
  12944. void AddTag(const String&);
  12945. void AddTags(const String&, int8 = ';');
  12946. void ApplyAttributes();
  12947. void BringToFront();
  12948. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12949. void DisableLayoutUpdate();
  12950. IntVector2 ElementToScreen(const IntVector2&);
  12951. void EnableLayoutUpdate();
  12952. uint FindChild(UIElement) const;
  12953. Variant GetAttribute(const String&) const;
  12954. ValueAnimation GetAttributeAnimation(const String&) const;
  12955. float GetAttributeAnimationSpeed(const String&) const;
  12956. float GetAttributeAnimationTime(const String&) const;
  12957. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12958. Variant GetAttributeDefault(const String&) const;
  12959. UIElement GetChild(const String&, bool = false) const;
  12960. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12961. Array<UIElement> GetChildren(bool = false) const;
  12962. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12963. UIElement GetElementEventSender() const;
  12964. bool GetInterceptNetworkUpdate(const String&) const;
  12965. uint GetNumChildren(bool) const;
  12966. bool HasSubscribedToEvent(Object, const String&);
  12967. bool HasSubscribedToEvent(const String&);
  12968. bool HasTag(const String&) const;
  12969. void InsertChild(uint, UIElement);
  12970. bool IsInside(IntVector2, bool);
  12971. bool IsInsideCombined(IntVector2, bool);
  12972. bool Load(File, bool = false);
  12973. bool Load(VectorBuffer&, bool = false);
  12974. bool LoadChildXML(XMLFile, XMLFile = null);
  12975. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12976. bool LoadJSON(const JSONValue&, bool = false);
  12977. bool LoadXML(File);
  12978. bool LoadXML(VectorBuffer&);
  12979. bool LoadXML(XMLFile, XMLFile);
  12980. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12981. bool LoadXML(const XMLElement&, bool = false);
  12982. void MarkNetworkUpdate() const;
  12983. void Remove();
  12984. void RemoveAllChildren();
  12985. void RemoveAllTags();
  12986. void RemoveAttributeAnimation(const String&);
  12987. void RemoveChild(UIElement, uint = 0);
  12988. void RemoveChild(uint);
  12989. void RemoveInstanceDefault();
  12990. void RemoveObjectAnimation();
  12991. bool RemoveTag(const String&);
  12992. void ResetDeepEnabled();
  12993. void ResetToDefault();
  12994. bool Save(File) const;
  12995. bool Save(VectorBuffer&) const;
  12996. bool SaveJSON(JSONValue&) const;
  12997. bool SaveXML(File, const String& = "\t");
  12998. bool SaveXML(VectorBuffer&, const String& = "\t");
  12999. bool SaveXML(XMLElement&) const;
  13000. IntVector2 ScreenToElement(const IntVector2&);
  13001. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13002. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13003. void SetAnimationTime(float);
  13004. bool SetAttribute(const String&, const Variant&);
  13005. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13006. void SetAttributeAnimationSpeed(const String&, float);
  13007. void SetAttributeAnimationTime(const String&, float);
  13008. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13009. void SetDeepEnabled(bool);
  13010. void SetEnabledRecursive(bool);
  13011. void SetFixedHeight(int);
  13012. void SetFixedSize(int, int);
  13013. void SetFixedWidth(int);
  13014. void SetFullImageRect();
  13015. void SetHoverOffset(int, int);
  13016. void SetInterceptNetworkUpdate(const String&, bool);
  13017. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13018. void SetMaxSize(int, int);
  13019. void SetMinSize(int, int);
  13020. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13021. void SetPosition(int, int);
  13022. void SetSize(int, int);
  13023. bool SetStyle(const String&, XMLFile = null);
  13024. bool SetStyle(const XMLElement&);
  13025. bool SetStyleAuto(XMLFile = null);
  13026. void UpdateLayout();
  13027. const Variant& GetVar(const StringHash&);
  13028. // Properties:
  13029. bool animationEnabled;
  13030. /* readonly */
  13031. Array<Variant> attributeDefaults;
  13032. /* readonly */
  13033. Array<AttributeInfo> attributeInfos;
  13034. Array<Variant> attributes;
  13035. BlendMode blendMode;
  13036. IntRect border;
  13037. bool bringToBack;
  13038. bool bringToFront;
  13039. /* readonly */
  13040. String category;
  13041. /* readonly */
  13042. IntVector2 childOffset;
  13043. /* readonly */
  13044. Array<UIElement> children;
  13045. IntRect clipBorder;
  13046. bool clipChildren;
  13047. /* writeonly */
  13048. Color color;
  13049. /* readonly */
  13050. bool colorGradient;
  13051. Array<Color> colors;
  13052. /* readonly */
  13053. IntRect combinedScreenRect;
  13054. XMLFile defaultStyle;
  13055. /* readonly */
  13056. float derivedOpacity;
  13057. /* readonly */
  13058. uint dragButtonCombo;
  13059. /* readonly */
  13060. int dragButtonCount;
  13061. uint dragDropMode;
  13062. bool editable;
  13063. bool elementEventSender;
  13064. bool enabled;
  13065. /* readonly */
  13066. bool enabledSelf;
  13067. /* readonly */
  13068. bool fixedHeight;
  13069. bool fixedHeightResizing;
  13070. /* readonly */
  13071. bool fixedSize;
  13072. /* readonly */
  13073. bool fixedWidth;
  13074. bool fixedWidthResizing;
  13075. bool focus;
  13076. FocusMode focusMode;
  13077. int height;
  13078. HorizontalAlignment horizontalAlignment;
  13079. IntVector2 hoverOffset;
  13080. /* readonly */
  13081. bool hovering;
  13082. IntRect imageBorder;
  13083. IntRect imageRect;
  13084. int indent;
  13085. int indentSpacing;
  13086. /* readonly */
  13087. int indentWidth;
  13088. bool internal;
  13089. IntRect layoutBorder;
  13090. Vector2 layoutFlexScale;
  13091. LayoutMode layoutMode;
  13092. int layoutSpacing;
  13093. int maxHeight;
  13094. IntVector2 maxSize;
  13095. int maxWidth;
  13096. int minHeight;
  13097. IntVector2 minSize;
  13098. int minWidth;
  13099. bool modal;
  13100. bool modalAutoDismiss;
  13101. Color modalFrameColor;
  13102. IntVector2 modalFrameSize;
  13103. Color modalShadeColor;
  13104. bool movable;
  13105. String name;
  13106. /* readonly */
  13107. uint numAllChildren;
  13108. /* readonly */
  13109. uint numAttributes;
  13110. /* readonly */
  13111. uint numChildren;
  13112. ObjectAnimation objectAnimation;
  13113. float opacity;
  13114. UIElement parent;
  13115. IntVector2 position;
  13116. int priority;
  13117. /* readonly */
  13118. int refs;
  13119. bool resizable;
  13120. IntRect resizeBorder;
  13121. /* readonly */
  13122. UIElement root;
  13123. /* readonly */
  13124. IntVector2 screenPosition;
  13125. bool selected;
  13126. IntVector2 size;
  13127. bool sortChildren;
  13128. String style;
  13129. /* readonly */
  13130. Array<String> tags;
  13131. bool temporary;
  13132. Texture texture;
  13133. bool tiled;
  13134. TraversalMode traversalMode;
  13135. /* readonly */
  13136. StringHash type;
  13137. /* readonly */
  13138. String typeName;
  13139. bool useDerivedOpacity;
  13140. /* readonly */
  13141. VariantMap vars;
  13142. VerticalAlignment verticalAlignment;
  13143. bool visible;
  13144. /* readonly */
  13145. bool visibleEffective;
  13146. /* readonly */
  13147. int weakRefs;
  13148. int width;
  13149. };
  13150. class XMLElement
  13151. {
  13152. // Methods:
  13153. XMLElement CreateChild(const String&);
  13154. String GetAttribute(const String& = String ( )) const;
  13155. String GetAttributeLower(const String&) const;
  13156. Array<String> GetAttributeNames() const;
  13157. String GetAttributeUpper(const String&) const;
  13158. bool GetBool(const String&) const;
  13159. BoundingBox GetBoundingBox() const;
  13160. XMLElement GetChild(const String& = String ( )) const;
  13161. Color GetColor(const String&) const;
  13162. double GetDouble(const String&) const;
  13163. float GetFloat(const String&) const;
  13164. int GetInt(const String&) const;
  13165. IntRect GetIntRect(const String&) const;
  13166. IntVector2 GetIntVector2(const String&) const;
  13167. Matrix3 GetMatrix3(const String&) const;
  13168. Matrix3x4 GetMatrix3x4(const String&) const;
  13169. Matrix4 GetMatrix4(const String&) const;
  13170. XMLElement GetNext(const String& = String ( )) const;
  13171. Quaternion GetQuaternion(const String&) const;
  13172. ResourceRef GetResourceRef() const;
  13173. ResourceRefList GetResourceRefList() const;
  13174. uint GetUInt(const String&) const;
  13175. String GetValue() const;
  13176. Variant GetVariant() const;
  13177. VariantMap GetVariantMap() const;
  13178. Array<Variant> GetVariantVector() const;
  13179. Vector2 GetVector2(const String&) const;
  13180. Vector3 GetVector3(const String&) const;
  13181. Vector4 GetVector4(const String&) const;
  13182. Variant GetVectorVariant(const String&) const;
  13183. bool HasAttribute(const String&) const;
  13184. bool HasChild(const String&) const;
  13185. bool RemoveAttribute(const String& = String ( ));
  13186. bool RemoveChild(const String&);
  13187. bool RemoveChild(const XMLElement&);
  13188. bool RemoveChildren(const String& = String ( ));
  13189. XPathResultSet Select(const String&);
  13190. XPathResultSet SelectPrepared(const XPathQuery&);
  13191. XMLElement SelectSingle(const String&);
  13192. XMLElement SelectSinglePrepared(const XPathQuery&);
  13193. bool SetAttribute(const String&);
  13194. bool SetAttribute(const String&, const String&);
  13195. bool SetBool(const String&, bool);
  13196. bool SetBoundingBox(const BoundingBox&);
  13197. bool SetColor(const String&, const Color&);
  13198. bool SetDouble(const String&, double);
  13199. bool SetFloat(const String&, float);
  13200. bool SetInt(const String&, int);
  13201. bool SetIntRect(const String&, const IntRect&);
  13202. bool SetIntVector2(const String&, const IntVector2&);
  13203. bool SetMatrix3(const String&, const Matrix3&);
  13204. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13205. bool SetMatrix4(const String&, const Matrix4&);
  13206. bool SetQuaternion(const String&, const Quaternion&);
  13207. bool SetResourceRef(const String&, const ResourceRef&);
  13208. bool SetResourceRefList(const String&, const ResourceRefList&);
  13209. bool SetUInt(const String&, uint);
  13210. bool SetValue(const String&);
  13211. bool SetVariant(const Variant&);
  13212. bool SetVariantMap(const VariantMap&);
  13213. bool SetVariantVector(Array<Variant>);
  13214. bool SetVector2(const String&, const Vector2&);
  13215. bool SetVector3(const String&, const Vector3&);
  13216. bool SetVector4(const String&, const Vector4&);
  13217. bool SetVectorVariant(const String&, const Variant&);
  13218. // Properties:
  13219. /* readonly */
  13220. XMLFile file;
  13221. /* readonly */
  13222. bool isNull;
  13223. /* readonly */
  13224. String name;
  13225. /* readonly */
  13226. XMLElement nextResult;
  13227. /* readonly */
  13228. bool notNull;
  13229. /* readonly */
  13230. uint numAttributes;
  13231. /* readonly */
  13232. XMLElement parent;
  13233. String value;
  13234. };
  13235. class XMLFile
  13236. {
  13237. // Methods:
  13238. XMLElement CreateRoot(const String&);
  13239. bool FromString(const String&);
  13240. XMLElement GetRoot(const String& = String ( ));
  13241. bool HasSubscribedToEvent(Object, const String&);
  13242. bool HasSubscribedToEvent(const String&);
  13243. bool Load(File);
  13244. bool Load(VectorBuffer&);
  13245. void Patch(XMLElement);
  13246. void Patch(XMLFile);
  13247. bool Save(File) const;
  13248. bool Save(File, const String&) const;
  13249. bool Save(VectorBuffer&) const;
  13250. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13251. String ToString(const String& = String ( "\t" )) const;
  13252. // Properties:
  13253. /* readonly */
  13254. String category;
  13255. /* readonly */
  13256. uint memoryUse;
  13257. String name;
  13258. /* readonly */
  13259. int refs;
  13260. /* readonly */
  13261. XMLElement root;
  13262. /* readonly */
  13263. StringHash type;
  13264. /* readonly */
  13265. String typeName;
  13266. /* readonly */
  13267. uint useTimer;
  13268. /* readonly */
  13269. int weakRefs;
  13270. };
  13271. class XPathQuery
  13272. {
  13273. // Methods:
  13274. void Bind();
  13275. void Clear();
  13276. XPathResultSet Evaluate(XMLElement);
  13277. bool EvaluateToBool(XMLElement);
  13278. float EvaluateToFloat(XMLElement);
  13279. String EvaluateToString(XMLElement);
  13280. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13281. bool SetVariable(const String&, bool);
  13282. bool SetVariable(const String&, const String&);
  13283. bool SetVariable(const String&, const XPathResultSet&);
  13284. bool SetVariable(const String&, float);
  13285. // Properties:
  13286. String query;
  13287. };
  13288. class XPathResultSet
  13289. {
  13290. // Properties:
  13291. /* readonly */
  13292. bool empty;
  13293. /* readonly */
  13294. XMLElement firstResult;
  13295. /* readonly */
  13296. uint size;
  13297. };
  13298. class Zone
  13299. {
  13300. // Methods:
  13301. void ApplyAttributes();
  13302. void DrawDebugGeometry(DebugRenderer, bool);
  13303. Variant GetAttribute(const String&) const;
  13304. ValueAnimation GetAttributeAnimation(const String&) const;
  13305. float GetAttributeAnimationSpeed(const String&) const;
  13306. float GetAttributeAnimationTime(const String&) const;
  13307. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13308. Variant GetAttributeDefault(const String&) const;
  13309. bool GetInterceptNetworkUpdate(const String&) const;
  13310. bool HasSubscribedToEvent(Object, const String&);
  13311. bool HasSubscribedToEvent(const String&);
  13312. bool IsInView(Camera) const;
  13313. bool Load(File, bool = false);
  13314. bool Load(VectorBuffer&, bool = false);
  13315. bool LoadJSON(const JSONValue&, bool = false);
  13316. bool LoadXML(const XMLElement&, bool = false);
  13317. void MarkNetworkUpdate() const;
  13318. void Remove();
  13319. void RemoveAttributeAnimation(const String&);
  13320. void RemoveInstanceDefault();
  13321. void RemoveObjectAnimation();
  13322. void ResetToDefault();
  13323. bool Save(File) const;
  13324. bool Save(VectorBuffer&) const;
  13325. bool SaveJSON(JSONValue&) const;
  13326. bool SaveXML(XMLElement&) const;
  13327. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13328. void SetAnimationTime(float);
  13329. bool SetAttribute(const String&, const Variant&);
  13330. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13331. void SetAttributeAnimationSpeed(const String&, float);
  13332. void SetAttributeAnimationTime(const String&, float);
  13333. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13334. void SetInterceptNetworkUpdate(const String&, bool);
  13335. // Properties:
  13336. Color ambientColor;
  13337. /* readonly */
  13338. Color ambientEndColor;
  13339. bool ambientGradient;
  13340. /* readonly */
  13341. Color ambientStartColor;
  13342. bool animationEnabled;
  13343. /* readonly */
  13344. Array<Variant> attributeDefaults;
  13345. /* readonly */
  13346. Array<AttributeInfo> attributeInfos;
  13347. Array<Variant> attributes;
  13348. BoundingBox boundingBox;
  13349. bool castShadows;
  13350. /* readonly */
  13351. String category;
  13352. float drawDistance;
  13353. bool enabled;
  13354. /* readonly */
  13355. bool enabledEffective;
  13356. Color fogColor;
  13357. float fogEnd;
  13358. float fogHeight;
  13359. float fogHeightScale;
  13360. float fogStart;
  13361. bool heightFog;
  13362. /* readonly */
  13363. uint id;
  13364. /* readonly */
  13365. bool inView;
  13366. /* readonly */
  13367. Matrix3x4 inverseWorldTransform;
  13368. uint lightMask;
  13369. float lodBias;
  13370. uint maxLights;
  13371. /* readonly */
  13372. Node node;
  13373. /* readonly */
  13374. uint numAttributes;
  13375. ObjectAnimation objectAnimation;
  13376. bool occludee;
  13377. bool occluder;
  13378. bool override;
  13379. int priority;
  13380. /* readonly */
  13381. int refs;
  13382. float shadowDistance;
  13383. uint shadowMask;
  13384. bool temporary;
  13385. /* readonly */
  13386. StringHash type;
  13387. /* readonly */
  13388. String typeName;
  13389. uint viewMask;
  13390. /* readonly */
  13391. int weakRefs;
  13392. /* readonly */
  13393. BoundingBox worldBoundingBox;
  13394. uint zoneMask;
  13395. Texture zoneTexture;
  13396. };
  13397. // Enumerations
  13398. enum AnimationBlendMode
  13399. {
  13400. ABM_LERP,
  13401. ABM_ADDITIVE,
  13402. };
  13403. enum BlendMode
  13404. {
  13405. BLEND_REPLACE,
  13406. BLEND_ADD,
  13407. BLEND_MULTIPLY,
  13408. BLEND_ALPHA,
  13409. BLEND_ADDALPHA,
  13410. BLEND_PREMULALPHA,
  13411. BLEND_INVDESTALPHA,
  13412. BLEND_SUBTRACT,
  13413. BLEND_SUBTRACTALPHA,
  13414. };
  13415. enum BodyType2D
  13416. {
  13417. BT_STATIC,
  13418. BT_KINEMATIC,
  13419. BT_DYNAMIC,
  13420. };
  13421. enum CollisionEventMode
  13422. {
  13423. COLLISION_NEVER,
  13424. COLLISION_ACTIVE,
  13425. COLLISION_ALWAYS,
  13426. };
  13427. enum CompareMode
  13428. {
  13429. CMP_ALWAYS,
  13430. CMP_EQUAL,
  13431. CMP_NOTEQUAL,
  13432. CMP_LESS,
  13433. CMP_LESSEQUAL,
  13434. CMP_GREATER,
  13435. CMP_GREATEREQUAL,
  13436. };
  13437. enum CompressedFormat
  13438. {
  13439. CF_NONE,
  13440. CF_RGBA,
  13441. CF_DXT1,
  13442. CF_DXT3,
  13443. CF_DXT5,
  13444. CF_ETC1,
  13445. CF_PVRTC_RGB_2BPP,
  13446. CF_PVRTC_RGBA_2BPP,
  13447. CF_PVRTC_RGB_4BPP,
  13448. CF_PVRTC_RGBA_4BPP,
  13449. };
  13450. enum ConstraintType
  13451. {
  13452. CONSTRAINT_POINT,
  13453. CONSTRAINT_HINGE,
  13454. CONSTRAINT_SLIDER,
  13455. CONSTRAINT_CONETWIST,
  13456. };
  13457. enum Corner
  13458. {
  13459. C_TOPLEFT,
  13460. C_TOPRIGHT,
  13461. C_BOTTOMLEFT,
  13462. C_BOTTOMRIGHT,
  13463. };
  13464. enum CreateMode
  13465. {
  13466. REPLICATED,
  13467. LOCAL,
  13468. };
  13469. enum CrowdAgentRequestedTarget
  13470. {
  13471. CA_REQUESTEDTARGET_NONE,
  13472. CA_REQUESTEDTARGET_POSITION,
  13473. CA_REQUESTEDTARGET_VELOCITY,
  13474. };
  13475. enum CrowdAgentState
  13476. {
  13477. CA_STATE_INVALID,
  13478. CA_STATE_WALKING,
  13479. CA_STATE_OFFMESH,
  13480. };
  13481. enum CrowdAgentTargetState
  13482. {
  13483. CA_TARGET_NONE,
  13484. CA_TARGET_FAILED,
  13485. CA_TARGET_VALID,
  13486. CA_TARGET_REQUESTING,
  13487. CA_TARGET_WAITINGFORQUEUE,
  13488. CA_TARGET_WAITINGFORPATH,
  13489. CA_TARGET_VELOCITY,
  13490. };
  13491. enum CubeMapFace
  13492. {
  13493. FACE_POSITIVE_X,
  13494. FACE_NEGATIVE_X,
  13495. FACE_POSITIVE_Y,
  13496. FACE_NEGATIVE_Y,
  13497. FACE_POSITIVE_Z,
  13498. FACE_NEGATIVE_Z,
  13499. };
  13500. enum CullMode
  13501. {
  13502. CULL_NONE,
  13503. CULL_CCW,
  13504. CULL_CW,
  13505. };
  13506. enum CursorShape
  13507. {
  13508. CS_NORMAL,
  13509. CS_IBEAM,
  13510. CS_CROSS,
  13511. CS_RESIZEVERTICAL,
  13512. CS_RESIZEDIAGONAL_TOPRIGHT,
  13513. CS_RESIZEHORIZONTAL,
  13514. CS_RESIZEDIAGONAL_TOPLEFT,
  13515. CS_RESIZE_ALL,
  13516. CS_ACCEPTDROP,
  13517. CS_REJECTDROP,
  13518. CS_BUSY,
  13519. CS_BUSY_ARROW,
  13520. };
  13521. enum DBAPI
  13522. {
  13523. DBAPI_SQLITE,
  13524. DBAPI_ODBC,
  13525. };
  13526. enum DumpMode
  13527. {
  13528. DOXYGEN,
  13529. C_HEADER,
  13530. };
  13531. enum EmitterType
  13532. {
  13533. EMITTER_SPHERE,
  13534. EMITTER_BOX,
  13535. };
  13536. enum EmitterType2D
  13537. {
  13538. EMITTER_TYPE_GRAVITY,
  13539. EMITTER_TYPE_RADIAL,
  13540. };
  13541. enum FaceCameraMode
  13542. {
  13543. FC_NONE,
  13544. FC_ROTATE_XYZ,
  13545. FC_ROTATE_Y,
  13546. FC_LOOKAT_XYZ,
  13547. FC_LOOKAT_Y,
  13548. FC_DIRECTION,
  13549. };
  13550. enum FileMode
  13551. {
  13552. FILE_READ,
  13553. FILE_WRITE,
  13554. FILE_READWRITE,
  13555. };
  13556. enum FillMode
  13557. {
  13558. FILL_SOLID,
  13559. FILL_WIREFRAME,
  13560. FILL_POINT,
  13561. };
  13562. enum FocusMode
  13563. {
  13564. FM_NOTFOCUSABLE,
  13565. FM_RESETFOCUS,
  13566. FM_FOCUSABLE,
  13567. FM_FOCUSABLE_DEFOCUSABLE,
  13568. };
  13569. enum HighlightMode
  13570. {
  13571. HM_NEVER,
  13572. HM_FOCUS,
  13573. HM_ALWAYS,
  13574. };
  13575. enum HorizontalAlignment
  13576. {
  13577. HA_LEFT,
  13578. HA_CENTER,
  13579. HA_RIGHT,
  13580. };
  13581. enum HttpRequestState
  13582. {
  13583. HTTP_INITIALIZING,
  13584. HTTP_ERROR,
  13585. HTTP_OPEN,
  13586. HTTP_CLOSED,
  13587. };
  13588. enum InterpMethod
  13589. {
  13590. IM_NONE,
  13591. IM_LINEAR,
  13592. IM_SPLINE,
  13593. };
  13594. enum InterpolationMode
  13595. {
  13596. BEZIER_CURVE,
  13597. CATMULL_ROM_CURVE,
  13598. LINEAR_CURVE,
  13599. CATMULL_ROM_FULL_CURVE,
  13600. };
  13601. enum Intersection
  13602. {
  13603. OUTSIDE,
  13604. INTERSECTS,
  13605. INSIDE,
  13606. };
  13607. enum JSONValueType
  13608. {
  13609. JSON_NULL,
  13610. JSON_BOOL,
  13611. JSON_NUMBER,
  13612. JSON_STRING,
  13613. JSON_ARRAY,
  13614. JSON_OBJECT,
  13615. };
  13616. enum LayoutMode
  13617. {
  13618. LM_FREE,
  13619. LM_HORIZONTAL,
  13620. LM_VERTICAL,
  13621. };
  13622. enum LightType
  13623. {
  13624. LIGHT_DIRECTIONAL,
  13625. LIGHT_SPOT,
  13626. LIGHT_POINT,
  13627. };
  13628. enum LoadMode
  13629. {
  13630. LOAD_RESOURCES_ONLY,
  13631. LOAD_SCENE,
  13632. LOAD_SCENE_AND_RESOURCES,
  13633. };
  13634. enum LoopMode2D
  13635. {
  13636. LM_DEFAULT,
  13637. LM_FORCE_LOOPED,
  13638. LM_FORCE_CLAMPED,
  13639. };
  13640. enum MouseMode
  13641. {
  13642. MM_ABSOLUTE,
  13643. MM_RELATIVE,
  13644. MM_WRAP,
  13645. MM_FREE,
  13646. };
  13647. enum NavigationPushiness
  13648. {
  13649. NAVIGATIONPUSHINESS_LOW,
  13650. NAVIGATIONPUSHINESS_MEDIUM,
  13651. NAVIGATIONPUSHINESS_HIGH,
  13652. };
  13653. enum NavigationQuality
  13654. {
  13655. NAVIGATIONQUALITY_LOW,
  13656. NAVIGATIONQUALITY_MEDIUM,
  13657. NAVIGATIONQUALITY_HIGH,
  13658. };
  13659. enum NavmeshPartitionType
  13660. {
  13661. NAVMESH_PARTITION_WATERSHED,
  13662. NAVMESH_PARTITION_MONOTONE,
  13663. };
  13664. enum Orientation
  13665. {
  13666. O_HORIZONTAL,
  13667. O_VERTICAL,
  13668. };
  13669. enum Orientation2D
  13670. {
  13671. O_ORTHOGONAL,
  13672. O_ISOMETRIC,
  13673. O_STAGGERED,
  13674. O_HEXAGONAL,
  13675. };
  13676. enum PassLightingMode
  13677. {
  13678. LIGHTING_UNLIT,
  13679. LIGHTING_PERVERTEX,
  13680. LIGHTING_PERPIXEL,
  13681. };
  13682. enum PrimitiveType
  13683. {
  13684. TRIANGLE_LIST,
  13685. LINE_LIST,
  13686. POINT_LIST,
  13687. TRIANGLE_STRIP,
  13688. LINE_STRIP,
  13689. TRIANGLE_FAN,
  13690. };
  13691. enum RayQueryLevel
  13692. {
  13693. RAY_AABB,
  13694. RAY_OBB,
  13695. RAY_TRIANGLE,
  13696. RAY_TRIANGLE_UV,
  13697. };
  13698. enum RenderCommandSortMode
  13699. {
  13700. SORT_FRONTTOBACK,
  13701. SORT_BACKTOFRONT,
  13702. };
  13703. enum RenderCommandType
  13704. {
  13705. CMD_NONE,
  13706. CMD_CLEAR,
  13707. CMD_SCENEPASS,
  13708. CMD_QUAD,
  13709. CMD_FORWARDLIGHTS,
  13710. CMD_LIGHTVOLUMES,
  13711. CMD_RENDERUI,
  13712. };
  13713. enum RenderSurfaceUpdateMode
  13714. {
  13715. SURFACE_MANUALUPDATE,
  13716. SURFACE_UPDATEVISIBLE,
  13717. SURFACE_UPDATEALWAYS,
  13718. };
  13719. enum RenderTargetSizeMode
  13720. {
  13721. SIZE_ABSOLUTE,
  13722. SIZE_VIEWPORTDIVISOR,
  13723. SIZE_VIEWPORTMULTIPLIER,
  13724. };
  13725. enum ShadowQuality
  13726. {
  13727. SHADOWQUALITY_SIMPLE_16BIT,
  13728. SHADOWQUALITY_SIMPLE_24BIT,
  13729. SHADOWQUALITY_PCF_16BIT,
  13730. SHADOWQUALITY_PCF_24BIT,
  13731. SHADOWQUALITY_VSM,
  13732. SHADOWQUALITY_BLUR_VSM,
  13733. };
  13734. enum ShapeType
  13735. {
  13736. SHAPE_BOX,
  13737. SHAPE_SPHERE,
  13738. SHAPE_STATICPLANE,
  13739. SHAPE_CYLINDER,
  13740. SHAPE_CAPSULE,
  13741. SHAPE_CONE,
  13742. SHAPE_TRIANGLEMESH,
  13743. SHAPE_CONVEXHULL,
  13744. SHAPE_TERRAIN,
  13745. };
  13746. enum TextEffect
  13747. {
  13748. TE_NONE,
  13749. TE_SHADOW,
  13750. TE_STROKE,
  13751. };
  13752. enum TextureAddressMode
  13753. {
  13754. ADDRESS_WRAP,
  13755. ADDRESS_MIRROR,
  13756. ADDRESS_CLAMP,
  13757. ADDRESS_BORDER,
  13758. };
  13759. enum TextureCoordinate
  13760. {
  13761. COORD_U,
  13762. COORD_V,
  13763. COORD_W,
  13764. };
  13765. enum TextureFilterMode
  13766. {
  13767. FILTER_NEAREST,
  13768. FILTER_BILINEAR,
  13769. FILTER_TRILINEAR,
  13770. FILTER_ANISOTROPIC,
  13771. FILTER_DEFAULT,
  13772. };
  13773. enum TextureUnit
  13774. {
  13775. TU_DIFFUSE,
  13776. TU_ALBEDOBUFFER,
  13777. TU_NORMAL,
  13778. TU_NORMALBUFFER,
  13779. TU_SPECULAR,
  13780. TU_EMISSIVE,
  13781. TU_ENVIRONMENT,
  13782. TU_LIGHTRAMP,
  13783. TU_LIGHTSHAPE,
  13784. TU_SHADOWMAP,
  13785. TU_CUSTOM1,
  13786. TU_CUSTOM2,
  13787. TU_VOLUMEMAP,
  13788. TU_FACESELECT,
  13789. TU_INDIRECTION,
  13790. TU_DEPTHBUFFER,
  13791. TU_LIGHTBUFFER,
  13792. TU_ZONE,
  13793. MAX_MATERIAL_TEXTURE_UNITS,
  13794. MAX_TEXTURE_UNITS,
  13795. };
  13796. enum TextureUsage
  13797. {
  13798. TEXTURE_STATIC,
  13799. TEXTURE_DYNAMIC,
  13800. TEXTURE_RENDERTARGET,
  13801. TEXTURE_DEPTHSTENCIL,
  13802. };
  13803. enum TileMapLayerType2D
  13804. {
  13805. LT_TILE_LAYER,
  13806. LT_OBJECT_GROUP,
  13807. LT_IMAGE_LAYER,
  13808. LT_INVALID,
  13809. };
  13810. enum TileObjectType2D
  13811. {
  13812. OT_RECTANGLE,
  13813. OT_ELLIPSE,
  13814. OT_POLYGON,
  13815. OT_POLYLINE,
  13816. OT_TILE,
  13817. OT_INVALID,
  13818. };
  13819. enum TransformSpace
  13820. {
  13821. TS_LOCAL,
  13822. TS_PARENT,
  13823. TS_WORLD,
  13824. };
  13825. enum TraversalMode
  13826. {
  13827. TM_BREADTH_FIRST,
  13828. TM_DEPTH_FIRST,
  13829. };
  13830. enum VariantType
  13831. {
  13832. VAR_NONE,
  13833. VAR_INT,
  13834. VAR_BOOL,
  13835. VAR_FLOAT,
  13836. VAR_VECTOR2,
  13837. VAR_VECTOR3,
  13838. VAR_VECTOR4,
  13839. VAR_QUATERNION,
  13840. VAR_COLOR,
  13841. VAR_STRING,
  13842. VAR_BUFFER,
  13843. VAR_VOIDPTR,
  13844. VAR_RESOURCEREF,
  13845. VAR_RESOURCEREFLIST,
  13846. VAR_VARIANTVECTOR,
  13847. VAR_VARIANTMAP,
  13848. VAR_INTRECT,
  13849. VAR_INTVECTOR2,
  13850. VAR_PTR,
  13851. VAR_MATRIX3,
  13852. VAR_MATRIX3X4,
  13853. VAR_MATRIX4,
  13854. VAR_DOUBLE,
  13855. VAR_STRINGVECTOR,
  13856. };
  13857. enum VertexElementSemantic
  13858. {
  13859. SEM_POSITION,
  13860. SEM_NORMAL,
  13861. SEM_BINORMAL,
  13862. SEM_TANGENT,
  13863. SEM_TEXCOORD,
  13864. SEM_COLOR,
  13865. SEM_BLENDWEIGHTS,
  13866. SEM_BLENDINDICES,
  13867. SEM_OBJECTINDEX,
  13868. MAX_VERTEX_ELEMENT_SEMANTICS,
  13869. };
  13870. enum VertexElementType
  13871. {
  13872. TYPE_INT,
  13873. TYPE_FLOAT,
  13874. TYPE_VECTOR2,
  13875. TYPE_VECTOR3,
  13876. TYPE_VECTOR4,
  13877. TYPE_UBYTE4,
  13878. TYPE_UBYTE4_NORM,
  13879. MAX_VERTEX_ELEMENT_TYPES,
  13880. };
  13881. enum VerticalAlignment
  13882. {
  13883. VA_TOP,
  13884. VA_CENTER,
  13885. VA_BOTTOM,
  13886. };
  13887. enum WrapMode
  13888. {
  13889. WM_LOOP,
  13890. WM_ONCE,
  13891. WM_CLAMP,
  13892. };
  13893. // Global functions
  13894. float Abs(float);
  13895. float Acos(float);
  13896. String AddTrailingSlash(const String&);
  13897. float Asin(float);
  13898. float Atan(float);
  13899. float Atan2(float, float);
  13900. float Ceil(float);
  13901. float Clamp(float, float, float);
  13902. int Clamp(int, int, int);
  13903. void ClearDelayedExecute(const String& = String ( ));
  13904. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  13905. float Cos(float);
  13906. uint CountSetBits(uint);
  13907. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  13908. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  13909. bool Equals(float, float);
  13910. void ErrorDialog(const String&, const String&);
  13911. float Floor(float);
  13912. uint GetAlphaFormat();
  13913. Array<String> GetArguments();
  13914. String GetConsoleInput();
  13915. uint GetDepthStencilFormat();
  13916. Object GetEventSender();
  13917. String GetExtension(const String&, bool = true);
  13918. String GetFileName(const String&);
  13919. String GetFileNameAndExtension(const String&, bool = false);
  13920. String GetFileSizeString(uint64);
  13921. uint GetFloat16Format();
  13922. uint GetFloat32Format();
  13923. uint GetFormat(const String&);
  13924. Variant GetGlobalVar(const String&);
  13925. String GetInternalPath(const String&);
  13926. uint GetLinearDepthFormat();
  13927. uint GetLuminanceAlphaFormat();
  13928. uint GetLuminanceFormat();
  13929. uint GetMaxBones();
  13930. String GetMiniDumpDir();
  13931. uint GetNumLogicalCPUs();
  13932. uint GetNumPhysicalCPUs();
  13933. Array<String> GetObjectCategories();
  13934. Array<String> GetObjectsByCategory(const String&);
  13935. String GetParentPath(const String&);
  13936. String GetPath(const String&);
  13937. String GetPlatform();
  13938. uint GetRG16Format();
  13939. uint GetRGBA16Format();
  13940. uint GetRGBAFloat16Format();
  13941. uint GetRGBAFloat32Format();
  13942. uint GetRGBAFormat();
  13943. uint GetRGBFormat();
  13944. uint GetRGFloat16Format();
  13945. uint GetRGFloat32Format();
  13946. uint GetRandomSeed();
  13947. uint GetReadableDepthFormat();
  13948. String GetTextureUnitName(TextureUnit);
  13949. bool HasSubscribedToEvent(Object, const String&);
  13950. bool HasSubscribedToEvent(const String&);
  13951. bool IsAbsolutePath(const String&);
  13952. bool IsAlpha(uint);
  13953. bool IsDigit(uint);
  13954. bool IsNaN(float);
  13955. bool IsPowerOfTwo(uint);
  13956. String Join(Array<String>&, const String&);
  13957. float Lerp(float, float, float);
  13958. void MarkNetworkUpdate();
  13959. float Max(float, float);
  13960. int Max(int, int);
  13961. float Min(float, float);
  13962. int Min(int, int);
  13963. float Mod(float, float);
  13964. uint NextPowerOfTwo(uint);
  13965. void OpenConsoleWindow();
  13966. float Pow(float, float);
  13967. void Print(bool, bool = false);
  13968. void Print(const String&, bool = false);
  13969. void Print(const Variant&, bool = false);
  13970. void Print(float, bool = false);
  13971. void Print(int, bool = false);
  13972. void Print(uint, bool = false);
  13973. void PrintCallStack(bool = false);
  13974. float Random();
  13975. float Random(float);
  13976. float Random(float, float);
  13977. int RandomInt();
  13978. int RandomInt(int);
  13979. int RandomInt(int, int);
  13980. float RandomNormal(float, float);
  13981. void RegisterEventName(const String&);
  13982. void Remove();
  13983. String RemoveTrailingSlash(const String&);
  13984. String ReplaceExtension(const String&, const String&);
  13985. uint SDBMHash(uint, uint8);
  13986. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13987. void SetGlobalVar(const String&, Variant&);
  13988. void SetMiniDumpDir(const String&);
  13989. void SetRandomSeed(uint);
  13990. float Sign(float);
  13991. float Sin(float);
  13992. float SmoothStep(float, float, float);
  13993. float Sqrt(float);
  13994. const String& GetTypeName(StringHash);
  13995. void SubscribeToEvent(Object, const String&, const String&);
  13996. void SubscribeToEvent(const String&, const String&);
  13997. float Tan(float);
  13998. uint ToLower(uint);
  13999. String ToStringHex(int);
  14000. uint ToUpper(uint);
  14001. void UnsubscribeFromAllEvents();
  14002. void UnsubscribeFromAllEventsExcept(Array<String>);
  14003. void UnsubscribeFromEvent(Object, const String&);
  14004. void UnsubscribeFromEvent(const String&);
  14005. void UnsubscribeFromEvents(Object);
  14006. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  14007. // Global properties
  14008. DBAPI DBAPI;
  14009. Audio audio;
  14010. ResourceCache cache;
  14011. Console console;
  14012. Database database;
  14013. DebugHud debugHud;
  14014. DebugRenderer debugRenderer;
  14015. Engine engine;
  14016. FileSystem fileSystem;
  14017. VariantMap globalVars;
  14018. Graphics graphics;
  14019. Input input;
  14020. Localization localization;
  14021. Log log;
  14022. Network network;
  14023. Node node;
  14024. Octree octree;
  14025. PhysicsWorld physicsWorld;
  14026. PhysicsWorld2D physicsWorld2D;
  14027. Renderer renderer;
  14028. ResourceCache resourceCache;
  14029. Scene scene;
  14030. Script script;
  14031. ScriptFile scriptFile;
  14032. ScriptInstance self;
  14033. Time time;
  14034. UI ui;
  14035. // Global constants
  14036. uint AM_COMPONENTID;
  14037. uint AM_DEFAULT;
  14038. uint AM_FILE;
  14039. uint AM_LATESTDATA;
  14040. uint AM_NET;
  14041. uint AM_NODEID;
  14042. uint AM_NODEIDVECTOR;
  14043. uint AM_NOEDIT;
  14044. Color BLACK;
  14045. Color BLUE;
  14046. uint8 CHANNEL_POSITION;
  14047. uint8 CHANNEL_ROTATION;
  14048. uint8 CHANNEL_SCALE;
  14049. uint CLEAR_COLOR;
  14050. uint CLEAR_DEPTH;
  14051. uint CLEAR_STENCIL;
  14052. int CONTROLLER_AXIS_LEFTX;
  14053. int CONTROLLER_AXIS_LEFTY;
  14054. int CONTROLLER_AXIS_RIGHTX;
  14055. int CONTROLLER_AXIS_RIGHTY;
  14056. int CONTROLLER_AXIS_TRIGGERLEFT;
  14057. int CONTROLLER_AXIS_TRIGGERRIGHT;
  14058. int CONTROLLER_BUTTON_A;
  14059. int CONTROLLER_BUTTON_B;
  14060. int CONTROLLER_BUTTON_BACK;
  14061. int CONTROLLER_BUTTON_DPAD_DOWN;
  14062. int CONTROLLER_BUTTON_DPAD_LEFT;
  14063. int CONTROLLER_BUTTON_DPAD_RIGHT;
  14064. int CONTROLLER_BUTTON_DPAD_UP;
  14065. int CONTROLLER_BUTTON_GUIDE;
  14066. int CONTROLLER_BUTTON_LEFTSHOULDER;
  14067. int CONTROLLER_BUTTON_LEFTSTICK;
  14068. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  14069. int CONTROLLER_BUTTON_RIGHTSTICK;
  14070. int CONTROLLER_BUTTON_START;
  14071. int CONTROLLER_BUTTON_X;
  14072. int CONTROLLER_BUTTON_Y;
  14073. Color CYAN;
  14074. uint DD_DISABLED;
  14075. uint DD_SOURCE;
  14076. uint DD_SOURCE_AND_TARGET;
  14077. uint DD_TARGET;
  14078. uint DEBUGHUD_SHOW_ALL;
  14079. uint DEBUGHUD_SHOW_ALL_MEMORY;
  14080. uint DEBUGHUD_SHOW_EVENTPROFILER;
  14081. uint DEBUGHUD_SHOW_MEMORY;
  14082. uint DEBUGHUD_SHOW_MODE;
  14083. uint DEBUGHUD_SHOW_NONE;
  14084. uint DEBUGHUD_SHOW_PROFILER;
  14085. uint DEBUGHUD_SHOW_STATS;
  14086. uint DEFAULT_LIGHTMASK;
  14087. uint DEFAULT_VIEWMASK;
  14088. uint DRAWABLE_ANY;
  14089. uint DRAWABLE_GEOMETRY;
  14090. uint DRAWABLE_GEOMETRY2D;
  14091. uint DRAWABLE_LIGHT;
  14092. uint DRAWABLE_ZONE;
  14093. uint FIRST_LOCAL_ID;
  14094. uint FIRST_REPLICATED_ID;
  14095. Color GRAY;
  14096. Color GREEN;
  14097. int HAT_CENTER;
  14098. int HAT_DOWN;
  14099. int HAT_LEFT;
  14100. int HAT_RIGHT;
  14101. int HAT_UP;
  14102. int KEY_0;
  14103. int KEY_1;
  14104. int KEY_2;
  14105. int KEY_3;
  14106. int KEY_4;
  14107. int KEY_5;
  14108. int KEY_6;
  14109. int KEY_7;
  14110. int KEY_8;
  14111. int KEY_9;
  14112. int KEY_A;
  14113. int KEY_ALT;
  14114. int KEY_APPLICATION;
  14115. int KEY_B;
  14116. int KEY_BACKSPACE;
  14117. int KEY_C;
  14118. int KEY_CAPSLOCK;
  14119. int KEY_CTRL;
  14120. int KEY_D;
  14121. int KEY_DELETE;
  14122. int KEY_DOWN;
  14123. int KEY_E;
  14124. int KEY_END;
  14125. int KEY_ESCAPE;
  14126. int KEY_F;
  14127. int KEY_F1;
  14128. int KEY_F10;
  14129. int KEY_F11;
  14130. int KEY_F12;
  14131. int KEY_F13;
  14132. int KEY_F14;
  14133. int KEY_F15;
  14134. int KEY_F16;
  14135. int KEY_F17;
  14136. int KEY_F18;
  14137. int KEY_F19;
  14138. int KEY_F2;
  14139. int KEY_F20;
  14140. int KEY_F21;
  14141. int KEY_F22;
  14142. int KEY_F23;
  14143. int KEY_F24;
  14144. int KEY_F3;
  14145. int KEY_F4;
  14146. int KEY_F5;
  14147. int KEY_F6;
  14148. int KEY_F7;
  14149. int KEY_F8;
  14150. int KEY_F9;
  14151. int KEY_G;
  14152. int KEY_GUI;
  14153. int KEY_H;
  14154. int KEY_HOME;
  14155. int KEY_I;
  14156. int KEY_INSERT;
  14157. int KEY_J;
  14158. int KEY_K;
  14159. int KEY_KP_0;
  14160. int KEY_KP_1;
  14161. int KEY_KP_2;
  14162. int KEY_KP_3;
  14163. int KEY_KP_4;
  14164. int KEY_KP_5;
  14165. int KEY_KP_6;
  14166. int KEY_KP_7;
  14167. int KEY_KP_8;
  14168. int KEY_KP_9;
  14169. int KEY_KP_DIVIDE;
  14170. int KEY_KP_ENTER;
  14171. int KEY_KP_MINUS;
  14172. int KEY_KP_MULTIPLY;
  14173. int KEY_KP_PERIOD;
  14174. int KEY_KP_PLUS;
  14175. int KEY_L;
  14176. int KEY_LALT;
  14177. int KEY_LCTRL;
  14178. int KEY_LEFT;
  14179. int KEY_LGUI;
  14180. int KEY_LSHIFT;
  14181. int KEY_M;
  14182. int KEY_N;
  14183. int KEY_NUMLOCKCLEAR;
  14184. int KEY_O;
  14185. int KEY_P;
  14186. int KEY_PAGEDOWN;
  14187. int KEY_PAGEUP;
  14188. int KEY_PAUSE;
  14189. int KEY_PRINTSCREEN;
  14190. int KEY_Q;
  14191. int KEY_R;
  14192. int KEY_RALT;
  14193. int KEY_RCTRL;
  14194. int KEY_RETURN;
  14195. int KEY_RETURN2;
  14196. int KEY_RGUI;
  14197. int KEY_RIGHT;
  14198. int KEY_RSHIFT;
  14199. int KEY_S;
  14200. int KEY_SCROLLLOCK;
  14201. int KEY_SELECT;
  14202. int KEY_SHIFT;
  14203. int KEY_SPACE;
  14204. int KEY_T;
  14205. int KEY_TAB;
  14206. int KEY_U;
  14207. int KEY_UP;
  14208. int KEY_V;
  14209. int KEY_W;
  14210. int KEY_X;
  14211. int KEY_Y;
  14212. int KEY_Z;
  14213. uint LAST_LOCAL_ID;
  14214. uint LAST_REPLICATED_ID;
  14215. int LOG_DEBUG;
  14216. int LOG_ERROR;
  14217. int LOG_INFO;
  14218. int LOG_NONE;
  14219. int LOG_WARNING;
  14220. Color MAGENTA;
  14221. uint MASK_BLENDINDICES;
  14222. uint MASK_BLENDWEIGHTS;
  14223. uint MASK_COLOR;
  14224. uint MASK_CUBETEXCOORD1;
  14225. uint MASK_CUBETEXCOORD2;
  14226. uint MASK_INSTANCEMATRIX1;
  14227. uint MASK_INSTANCEMATRIX2;
  14228. uint MASK_INSTANCEMATRIX3;
  14229. uint MASK_NONE;
  14230. uint MASK_NORMAL;
  14231. uint MASK_OBJECTINDEX;
  14232. uint MASK_POSITION;
  14233. uint MASK_TANGENT;
  14234. uint MASK_TEXCOORD1;
  14235. uint MASK_TEXCOORD2;
  14236. int MOUSEB_LEFT;
  14237. int MOUSEB_MIDDLE;
  14238. int MOUSEB_RIGHT;
  14239. float M_DEGTORAD;
  14240. float M_DEGTORAD_2;
  14241. float M_EPSILON;
  14242. float M_HALF_PI;
  14243. float M_INFINITY;
  14244. float M_LARGE_EPSILON;
  14245. float M_LARGE_VALUE;
  14246. int M_MAX_INT;
  14247. uint M_MAX_UNSIGNED;
  14248. int M_MIN_INT;
  14249. uint M_MIN_UNSIGNED;
  14250. float M_PI;
  14251. float M_RADTODEG;
  14252. uint NPOS;
  14253. float PIXEL_SIZE;
  14254. int QUALITY_HIGH;
  14255. int QUALITY_LOW;
  14256. int QUALITY_MAX;
  14257. int QUALITY_MEDIUM;
  14258. int QUAL_ALT;
  14259. int QUAL_ANY;
  14260. int QUAL_CTRL;
  14261. int QUAL_SHIFT;
  14262. Color RED;
  14263. int SCANCODE_0;
  14264. int SCANCODE_1;
  14265. int SCANCODE_2;
  14266. int SCANCODE_3;
  14267. int SCANCODE_4;
  14268. int SCANCODE_5;
  14269. int SCANCODE_6;
  14270. int SCANCODE_7;
  14271. int SCANCODE_8;
  14272. int SCANCODE_9;
  14273. int SCANCODE_A;
  14274. int SCANCODE_AC_BACK;
  14275. int SCANCODE_AC_BOOKMARKS;
  14276. int SCANCODE_AC_FORWARD;
  14277. int SCANCODE_AC_HOME;
  14278. int SCANCODE_AC_REFRESH;
  14279. int SCANCODE_AC_SEARCH;
  14280. int SCANCODE_AC_STOP;
  14281. int SCANCODE_AGAIN;
  14282. int SCANCODE_ALT;
  14283. int SCANCODE_ALTERASE;
  14284. int SCANCODE_APOSTROPHE;
  14285. int SCANCODE_APP1;
  14286. int SCANCODE_APP2;
  14287. int SCANCODE_APPLICATION;
  14288. int SCANCODE_AUDIOMUTE;
  14289. int SCANCODE_AUDIONEXT;
  14290. int SCANCODE_AUDIOPLAY;
  14291. int SCANCODE_AUDIOPREV;
  14292. int SCANCODE_AUDIOSTOP;
  14293. int SCANCODE_B;
  14294. int SCANCODE_BACKSLASH;
  14295. int SCANCODE_BACKSPACE;
  14296. int SCANCODE_BRIGHTNESSDOWN;
  14297. int SCANCODE_BRIGHTNESSUP;
  14298. int SCANCODE_C;
  14299. int SCANCODE_CALCULATOR;
  14300. int SCANCODE_CANCEL;
  14301. int SCANCODE_CAPSLOCK;
  14302. int SCANCODE_CLEAR;
  14303. int SCANCODE_CLEARAGAIN;
  14304. int SCANCODE_COMMA;
  14305. int SCANCODE_COMPUTER;
  14306. int SCANCODE_COPY;
  14307. int SCANCODE_CRSEL;
  14308. int SCANCODE_CTRL;
  14309. int SCANCODE_CURRENCYSUBUNIT;
  14310. int SCANCODE_CURRENCYUNIT;
  14311. int SCANCODE_CUT;
  14312. int SCANCODE_D;
  14313. int SCANCODE_DECIMALSEPARATOR;
  14314. int SCANCODE_DELETE;
  14315. int SCANCODE_DISPLAYSWITCH;
  14316. int SCANCODE_DOWN;
  14317. int SCANCODE_E;
  14318. int SCANCODE_EJECT;
  14319. int SCANCODE_END;
  14320. int SCANCODE_EQUALS;
  14321. int SCANCODE_ESCAPE;
  14322. int SCANCODE_EXECUTE;
  14323. int SCANCODE_EXSEL;
  14324. int SCANCODE_F;
  14325. int SCANCODE_F1;
  14326. int SCANCODE_F10;
  14327. int SCANCODE_F11;
  14328. int SCANCODE_F12;
  14329. int SCANCODE_F13;
  14330. int SCANCODE_F14;
  14331. int SCANCODE_F15;
  14332. int SCANCODE_F16;
  14333. int SCANCODE_F17;
  14334. int SCANCODE_F18;
  14335. int SCANCODE_F19;
  14336. int SCANCODE_F2;
  14337. int SCANCODE_F20;
  14338. int SCANCODE_F21;
  14339. int SCANCODE_F22;
  14340. int SCANCODE_F23;
  14341. int SCANCODE_F24;
  14342. int SCANCODE_F3;
  14343. int SCANCODE_F4;
  14344. int SCANCODE_F5;
  14345. int SCANCODE_F6;
  14346. int SCANCODE_F7;
  14347. int SCANCODE_F8;
  14348. int SCANCODE_F9;
  14349. int SCANCODE_FIND;
  14350. int SCANCODE_G;
  14351. int SCANCODE_GRAVE;
  14352. int SCANCODE_GUI;
  14353. int SCANCODE_H;
  14354. int SCANCODE_HELP;
  14355. int SCANCODE_HOME;
  14356. int SCANCODE_I;
  14357. int SCANCODE_INSERT;
  14358. int SCANCODE_INTERNATIONAL1;
  14359. int SCANCODE_INTERNATIONAL2;
  14360. int SCANCODE_INTERNATIONAL3;
  14361. int SCANCODE_INTERNATIONAL4;
  14362. int SCANCODE_INTERNATIONAL5;
  14363. int SCANCODE_INTERNATIONAL6;
  14364. int SCANCODE_INTERNATIONAL7;
  14365. int SCANCODE_INTERNATIONAL8;
  14366. int SCANCODE_INTERNATIONAL9;
  14367. int SCANCODE_J;
  14368. int SCANCODE_K;
  14369. int SCANCODE_KBDILLUMDOWN;
  14370. int SCANCODE_KBDILLUMTOGGLE;
  14371. int SCANCODE_KBDILLUMUP;
  14372. int SCANCODE_KP_0;
  14373. int SCANCODE_KP_00;
  14374. int SCANCODE_KP_000;
  14375. int SCANCODE_KP_1;
  14376. int SCANCODE_KP_2;
  14377. int SCANCODE_KP_3;
  14378. int SCANCODE_KP_4;
  14379. int SCANCODE_KP_5;
  14380. int SCANCODE_KP_6;
  14381. int SCANCODE_KP_7;
  14382. int SCANCODE_KP_8;
  14383. int SCANCODE_KP_9;
  14384. int SCANCODE_KP_A;
  14385. int SCANCODE_KP_AMPERSAND;
  14386. int SCANCODE_KP_AT;
  14387. int SCANCODE_KP_B;
  14388. int SCANCODE_KP_BACKSPACE;
  14389. int SCANCODE_KP_BINARY;
  14390. int SCANCODE_KP_C;
  14391. int SCANCODE_KP_CLEAR;
  14392. int SCANCODE_KP_CLEARENTRY;
  14393. int SCANCODE_KP_COLON;
  14394. int SCANCODE_KP_COMMA;
  14395. int SCANCODE_KP_D;
  14396. int SCANCODE_KP_DBLAMPERSAND;
  14397. int SCANCODE_KP_DBLVERTICALBAR;
  14398. int SCANCODE_KP_DECIMAL;
  14399. int SCANCODE_KP_DIVIDE;
  14400. int SCANCODE_KP_E;
  14401. int SCANCODE_KP_ENTER;
  14402. int SCANCODE_KP_EQUALS;
  14403. int SCANCODE_KP_EQUALSAS400;
  14404. int SCANCODE_KP_EXCLAM;
  14405. int SCANCODE_KP_F;
  14406. int SCANCODE_KP_GREATER;
  14407. int SCANCODE_KP_HASH;
  14408. int SCANCODE_KP_HEXADECIMAL;
  14409. int SCANCODE_KP_LEFTBRACE;
  14410. int SCANCODE_KP_LEFTPAREN;
  14411. int SCANCODE_KP_LESS;
  14412. int SCANCODE_KP_MEMADD;
  14413. int SCANCODE_KP_MEMCLEAR;
  14414. int SCANCODE_KP_MEMDIVIDE;
  14415. int SCANCODE_KP_MEMMULTIPLY;
  14416. int SCANCODE_KP_MEMRECALL;
  14417. int SCANCODE_KP_MEMSTORE;
  14418. int SCANCODE_KP_MEMSUBTRACT;
  14419. int SCANCODE_KP_MINUS;
  14420. int SCANCODE_KP_MULTIPLY;
  14421. int SCANCODE_KP_OCTAL;
  14422. int SCANCODE_KP_PERCENT;
  14423. int SCANCODE_KP_PERIOD;
  14424. int SCANCODE_KP_PLUS;
  14425. int SCANCODE_KP_PLUSMINUS;
  14426. int SCANCODE_KP_POWER;
  14427. int SCANCODE_KP_RIGHTBRACE;
  14428. int SCANCODE_KP_RIGHTPAREN;
  14429. int SCANCODE_KP_SPACE;
  14430. int SCANCODE_KP_TAB;
  14431. int SCANCODE_KP_VERTICALBAR;
  14432. int SCANCODE_KP_XOR;
  14433. int SCANCODE_L;
  14434. int SCANCODE_LALT;
  14435. int SCANCODE_LANG1;
  14436. int SCANCODE_LANG2;
  14437. int SCANCODE_LANG3;
  14438. int SCANCODE_LANG4;
  14439. int SCANCODE_LANG5;
  14440. int SCANCODE_LANG6;
  14441. int SCANCODE_LANG7;
  14442. int SCANCODE_LANG8;
  14443. int SCANCODE_LANG9;
  14444. int SCANCODE_LCTRL;
  14445. int SCANCODE_LEFT;
  14446. int SCANCODE_LEFTBRACKET;
  14447. int SCANCODE_LGUI;
  14448. int SCANCODE_LSHIFT;
  14449. int SCANCODE_M;
  14450. int SCANCODE_MAIL;
  14451. int SCANCODE_MEDIASELECT;
  14452. int SCANCODE_MENU;
  14453. int SCANCODE_MINUS;
  14454. int SCANCODE_MODE;
  14455. int SCANCODE_MUTE;
  14456. int SCANCODE_N;
  14457. int SCANCODE_NONUSBACKSLASH;
  14458. int SCANCODE_NONUSHASH;
  14459. int SCANCODE_NUMLOCKCLEAR;
  14460. int SCANCODE_O;
  14461. int SCANCODE_OPER;
  14462. int SCANCODE_OUT;
  14463. int SCANCODE_P;
  14464. int SCANCODE_PAGEDOWN;
  14465. int SCANCODE_PAGEUP;
  14466. int SCANCODE_PASTE;
  14467. int SCANCODE_PAUSE;
  14468. int SCANCODE_PERIOD;
  14469. int SCANCODE_POWER;
  14470. int SCANCODE_PRINTSCREEN;
  14471. int SCANCODE_PRIOR;
  14472. int SCANCODE_Q;
  14473. int SCANCODE_R;
  14474. int SCANCODE_RALT;
  14475. int SCANCODE_RCTRL;
  14476. int SCANCODE_RETURN;
  14477. int SCANCODE_RETURN2;
  14478. int SCANCODE_RGUI;
  14479. int SCANCODE_RIGHT;
  14480. int SCANCODE_RIGHTBRACKET;
  14481. int SCANCODE_RSHIFT;
  14482. int SCANCODE_S;
  14483. int SCANCODE_SCROLLLOCK;
  14484. int SCANCODE_SELECT;
  14485. int SCANCODE_SEMICOLON;
  14486. int SCANCODE_SEPARATOR;
  14487. int SCANCODE_SHIFT;
  14488. int SCANCODE_SLASH;
  14489. int SCANCODE_SLEEP;
  14490. int SCANCODE_SPACE;
  14491. int SCANCODE_STOP;
  14492. int SCANCODE_SYSREQ;
  14493. int SCANCODE_T;
  14494. int SCANCODE_TAB;
  14495. int SCANCODE_THOUSANDSSEPARATOR;
  14496. int SCANCODE_U;
  14497. int SCANCODE_UNDO;
  14498. int SCANCODE_UNKNOWN;
  14499. int SCANCODE_UP;
  14500. int SCANCODE_V;
  14501. int SCANCODE_VOLUMEDOWN;
  14502. int SCANCODE_VOLUMEUP;
  14503. int SCANCODE_W;
  14504. int SCANCODE_WWW;
  14505. int SCANCODE_X;
  14506. int SCANCODE_Y;
  14507. int SCANCODE_Z;
  14508. uint SCAN_DIRS;
  14509. uint SCAN_FILES;
  14510. uint SCAN_HIDDEN;
  14511. String SOUND_AMBIENT;
  14512. String SOUND_EFFECT;
  14513. String SOUND_MASTER;
  14514. String SOUND_MUSIC;
  14515. String SOUND_VOICE;
  14516. Color TRANSPARENT;
  14517. uint VO_DISABLE_OCCLUSION;
  14518. uint VO_DISABLE_SHADOWS;
  14519. uint VO_LOW_MATERIAL_QUALITY;
  14520. uint VO_NONE;
  14521. Color WHITE;
  14522. Color YELLOW;