AngelScriptAPI.h 366 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729
  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. AnimationTrack CreateTrack(const String&);
  290. bool HasSubscribedToEvent(Object, const String&);
  291. bool HasSubscribedToEvent(const String&);
  292. bool Load(File);
  293. bool Load(VectorBuffer&);
  294. bool RemoveAllTracks();
  295. void RemoveAllTriggers();
  296. bool RemoveTrack(const String&);
  297. void RemoveTrigger(uint);
  298. bool Save(File) const;
  299. bool Save(VectorBuffer&) const;
  300. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  301. // Properties:
  302. String animationName;
  303. /* readonly */
  304. String category;
  305. float length;
  306. /* readonly */
  307. uint memoryUse;
  308. String name;
  309. /* readonly */
  310. uint numTracks;
  311. uint numTriggers;
  312. /* readonly */
  313. int refs;
  314. /* readonly */
  315. Array<AnimationTrack> tracks;
  316. Array<AnimationTriggerPoint> triggers;
  317. /* readonly */
  318. StringHash type;
  319. /* readonly */
  320. String typeName;
  321. /* readonly */
  322. uint useTimer;
  323. /* readonly */
  324. int weakRefs;
  325. };
  326. class AnimationController
  327. {
  328. // Methods:
  329. void ApplyAttributes();
  330. void DrawDebugGeometry(DebugRenderer, bool);
  331. bool Fade(const String&, float, float);
  332. bool FadeOthers(const String&, float, float);
  333. AnimationState GetAnimationState(StringHash) const;
  334. AnimationState GetAnimationState(const String&) const;
  335. Variant GetAttribute(const String&) const;
  336. ValueAnimation GetAttributeAnimation(const String&) const;
  337. float GetAttributeAnimationSpeed(const String&) const;
  338. float GetAttributeAnimationTime(const String&) const;
  339. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  340. Variant GetAttributeDefault(const String&) const;
  341. float GetAutoFade(const String&) const;
  342. AnimationBlendMode GetBlendMode(const String&) const;
  343. float GetFadeTarget(const String&) const;
  344. float GetFadeTime(const String&) const;
  345. bool GetInterceptNetworkUpdate(const String&) const;
  346. uint8 GetLayer(const String&) const;
  347. float GetLength(const String&) const;
  348. bool GetLooped(const String&) const;
  349. bool GetRemoveOnCompletion(const String&);
  350. float GetSpeed(const String&) const;
  351. float GetTime(const String&) const;
  352. float GetWeight(const String&) const;
  353. bool HasSubscribedToEvent(Object, const String&);
  354. bool HasSubscribedToEvent(const String&);
  355. bool IsAtEnd(const String&) const;
  356. bool IsFadingIn(const String&) const;
  357. bool IsFadingOut(const String&) const;
  358. bool IsPlaying(const String&) const;
  359. bool Load(File, bool = false);
  360. bool Load(VectorBuffer&, bool = false);
  361. bool LoadJSON(const JSONValue&, bool = false);
  362. bool LoadXML(const XMLElement&, bool = false);
  363. void MarkNetworkUpdate() const;
  364. bool Play(const String&, uint8, bool, float = 0.0f);
  365. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  366. void Remove();
  367. void RemoveAttributeAnimation(const String&);
  368. void RemoveInstanceDefault();
  369. void RemoveObjectAnimation();
  370. void ResetToDefault();
  371. bool Save(File) const;
  372. bool Save(VectorBuffer&) const;
  373. bool SaveJSON(JSONValue&) const;
  374. bool SaveXML(XMLElement&) const;
  375. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  376. void SetAnimationTime(float);
  377. bool SetAttribute(const String&, const Variant&);
  378. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  379. void SetAttributeAnimationSpeed(const String&, float);
  380. void SetAttributeAnimationTime(const String&, float);
  381. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  382. bool SetAutoFade(const String&, float);
  383. bool SetBlendMode(const String&, AnimationBlendMode);
  384. void SetInterceptNetworkUpdate(const String&, bool);
  385. bool SetLayer(const String&, uint8);
  386. bool SetLooped(const String&, bool);
  387. bool SetRemoveOnCompletion(const String&, bool);
  388. bool SetSpeed(const String&, float);
  389. bool SetStartBone(const String&, const String&);
  390. bool SetTime(const String&, float);
  391. bool SetWeight(const String&, float);
  392. void Stop(const String&, float = 0.0f);
  393. void StopAll(float = 0.0f);
  394. void StopLayer(uint8, float = 0.0f);
  395. const String& GetStartBone(const String&) const;
  396. // Properties:
  397. bool animationEnabled;
  398. /* readonly */
  399. Array<Variant> attributeDefaults;
  400. /* readonly */
  401. Array<AttributeInfo> attributeInfos;
  402. Array<Variant> attributes;
  403. /* readonly */
  404. String category;
  405. bool enabled;
  406. /* readonly */
  407. bool enabledEffective;
  408. /* readonly */
  409. uint id;
  410. /* readonly */
  411. Node node;
  412. /* readonly */
  413. uint numAttributes;
  414. ObjectAnimation objectAnimation;
  415. /* readonly */
  416. int refs;
  417. bool temporary;
  418. /* readonly */
  419. StringHash type;
  420. /* readonly */
  421. String typeName;
  422. /* readonly */
  423. int weakRefs;
  424. };
  425. class AnimationKeyFrame
  426. {
  427. // Properties:
  428. Vector3 position;
  429. Quaternion rotation;
  430. Vector3 scale;
  431. float time;
  432. };
  433. class AnimationSet2D
  434. {
  435. // Methods:
  436. String GetAnimation(uint) const;
  437. bool HasSubscribedToEvent(Object, const String&);
  438. bool HasSubscribedToEvent(const String&);
  439. bool Load(File);
  440. bool Load(VectorBuffer&);
  441. bool Save(File) const;
  442. bool Save(VectorBuffer&) const;
  443. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  444. // Properties:
  445. /* readonly */
  446. String category;
  447. /* readonly */
  448. uint memoryUse;
  449. String name;
  450. /* readonly */
  451. uint numAnimations;
  452. /* readonly */
  453. int refs;
  454. /* readonly */
  455. StringHash type;
  456. /* readonly */
  457. String typeName;
  458. /* readonly */
  459. uint useTimer;
  460. /* readonly */
  461. int weakRefs;
  462. };
  463. class AnimationState
  464. {
  465. // Methods:
  466. void AddTime(float);
  467. void AddWeight(float);
  468. void Apply();
  469. float GetBoneWeight(StringHash) const;
  470. float GetBoneWeight(uint) const;
  471. uint GetTrackIndex(StringHash) const;
  472. uint GetTrackIndex(const String&) const;
  473. void SetBoneWeight(StringHash, float, bool = false);
  474. void SetBoneWeight(const String&, float, bool = false);
  475. void SetBoneWeight(uint, float, bool = false);
  476. // Properties:
  477. /* readonly */
  478. Animation animation;
  479. AnimationBlendMode blendMode;
  480. Array<float> boneWeights;
  481. /* readonly */
  482. bool enabled;
  483. uint8 layer;
  484. /* readonly */
  485. float length;
  486. bool looped;
  487. /* readonly */
  488. AnimatedModel model;
  489. /* readonly */
  490. Node node;
  491. /* readonly */
  492. int refs;
  493. Bone startBone;
  494. float time;
  495. /* readonly */
  496. int weakRefs;
  497. float weight;
  498. };
  499. class AnimationTrack
  500. {
  501. // Methods:
  502. void AddKeyFrame(const AnimationKeyFrame&);
  503. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  504. void RemoveAllKeyFrames();
  505. void RemoveKeyFrame(uint);
  506. // Properties:
  507. uint8 channelMask;
  508. Array<AnimationKeyFrame> keyFrames;
  509. String name;
  510. StringHash nameHash;
  511. /* readonly */
  512. uint numKeyFrames;
  513. };
  514. class AnimationTriggerPoint
  515. {
  516. // Properties:
  517. Variant data;
  518. float time;
  519. };
  520. template <class T> class Array
  521. {
  522. // Methods:
  523. void Clear();
  524. void Erase(uint);
  525. int Find(const T&) const;
  526. int Find(uint, const T&) const;
  527. int FindByRef(const T&) const;
  528. int FindByRef(uint, const T&) const;
  529. void Insert(uint, const T&);
  530. void Pop();
  531. void Push(const T&);
  532. void Reserve(uint);
  533. void Resize(uint);
  534. void Reverse();
  535. void Sort();
  536. void Sort(uint, uint);
  537. void SortReverse();
  538. void SortReverse(uint, uint);
  539. // Properties:
  540. /* readonly */
  541. bool empty;
  542. uint length;
  543. };
  544. class AttributeInfo
  545. {
  546. // Properties:
  547. Variant defaultValue;
  548. /* readonly */
  549. Array<String> enumNames;
  550. uint mode;
  551. String name;
  552. VariantType type;
  553. };
  554. class Audio
  555. {
  556. // Methods:
  557. bool HasMasterGain(const String&) const;
  558. bool HasSubscribedToEvent(Object, const String&);
  559. bool HasSubscribedToEvent(const String&);
  560. bool IsSoundTypePaused(const String&);
  561. void PauseSoundType(const String&);
  562. bool Play();
  563. void ResumeAll();
  564. void ResumeSoundType(const String&);
  565. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  566. void SetMode(int, int, bool, bool = true);
  567. void Stop();
  568. // Properties:
  569. /* readonly */
  570. String category;
  571. /* readonly */
  572. bool initialized;
  573. /* readonly */
  574. bool interpolation;
  575. SoundListener listener;
  576. Array<float> masterGain;
  577. /* readonly */
  578. int mixRate;
  579. /* readonly */
  580. bool playing;
  581. /* readonly */
  582. int refs;
  583. /* readonly */
  584. uint sampleSize;
  585. /* readonly */
  586. bool stereo;
  587. /* readonly */
  588. StringHash type;
  589. /* readonly */
  590. String typeName;
  591. /* readonly */
  592. int weakRefs;
  593. };
  594. class BiasParameters
  595. {
  596. // Properties:
  597. float constantBias;
  598. float slopeScaledBias;
  599. };
  600. class Billboard
  601. {
  602. // Properties:
  603. Color color;
  604. Vector3 direction;
  605. bool enabled;
  606. Vector3 position;
  607. float rotation;
  608. Vector2 size;
  609. Rect uv;
  610. };
  611. class BillboardSet
  612. {
  613. // Methods:
  614. void ApplyAttributes();
  615. void Commit();
  616. void DrawDebugGeometry(DebugRenderer, bool);
  617. Variant GetAttribute(const String&) const;
  618. ValueAnimation GetAttributeAnimation(const String&) const;
  619. float GetAttributeAnimationSpeed(const String&) const;
  620. float GetAttributeAnimationTime(const String&) const;
  621. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  622. Variant GetAttributeDefault(const String&) const;
  623. bool GetInterceptNetworkUpdate(const String&) const;
  624. bool HasSubscribedToEvent(Object, const String&);
  625. bool HasSubscribedToEvent(const String&);
  626. bool IsInView(Camera) const;
  627. bool Load(File, bool = false);
  628. bool Load(VectorBuffer&, bool = false);
  629. bool LoadJSON(const JSONValue&, bool = false);
  630. bool LoadXML(const XMLElement&, bool = false);
  631. void MarkNetworkUpdate() const;
  632. void Remove();
  633. void RemoveAttributeAnimation(const String&);
  634. void RemoveInstanceDefault();
  635. void RemoveObjectAnimation();
  636. void ResetToDefault();
  637. bool Save(File) const;
  638. bool Save(VectorBuffer&) const;
  639. bool SaveJSON(JSONValue&) const;
  640. bool SaveXML(XMLElement&) const;
  641. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  642. void SetAnimationTime(float);
  643. bool SetAttribute(const String&, const Variant&);
  644. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  645. void SetAttributeAnimationSpeed(const String&, float);
  646. void SetAttributeAnimationTime(const String&, float);
  647. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  648. void SetInterceptNetworkUpdate(const String&, bool);
  649. // Properties:
  650. bool animationEnabled;
  651. float animationLodBias;
  652. /* readonly */
  653. Array<Variant> attributeDefaults;
  654. /* readonly */
  655. Array<AttributeInfo> attributeInfos;
  656. Array<Variant> attributes;
  657. /* readonly */
  658. Array<Billboard> billboards;
  659. /* readonly */
  660. BoundingBox boundingBox;
  661. bool castShadows;
  662. /* readonly */
  663. String category;
  664. float drawDistance;
  665. bool enabled;
  666. /* readonly */
  667. bool enabledEffective;
  668. FaceCameraMode faceCameraMode;
  669. /* readonly */
  670. uint id;
  671. /* readonly */
  672. bool inView;
  673. uint lightMask;
  674. float lodBias;
  675. Material material;
  676. uint maxLights;
  677. /* readonly */
  678. Node node;
  679. /* readonly */
  680. uint numAttributes;
  681. uint numBillboards;
  682. ObjectAnimation objectAnimation;
  683. bool occludee;
  684. bool occluder;
  685. /* readonly */
  686. int refs;
  687. bool relative;
  688. bool scaled;
  689. float shadowDistance;
  690. uint shadowMask;
  691. bool sorted;
  692. bool temporary;
  693. /* readonly */
  694. StringHash type;
  695. /* readonly */
  696. String typeName;
  697. uint viewMask;
  698. /* readonly */
  699. int weakRefs;
  700. /* readonly */
  701. BoundingBox worldBoundingBox;
  702. /* readonly */
  703. Zone zone;
  704. uint zoneMask;
  705. };
  706. class Bone
  707. {
  708. // Properties:
  709. bool animated;
  710. BoundingBox boundingBox;
  711. Vector3 initialPosition;
  712. Quaternion initialRotation;
  713. Vector3 initialScale;
  714. String name;
  715. Node node;
  716. float radius;
  717. };
  718. class BorderImage
  719. {
  720. // Methods:
  721. void AddChild(UIElement);
  722. void AddTag(const String&);
  723. void AddTags(const String&, int8 = ';');
  724. void ApplyAttributes();
  725. void BringToFront();
  726. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  727. void DisableLayoutUpdate();
  728. IntVector2 ElementToScreen(const IntVector2&);
  729. void EnableLayoutUpdate();
  730. uint FindChild(UIElement) const;
  731. Variant GetAttribute(const String&) const;
  732. ValueAnimation GetAttributeAnimation(const String&) const;
  733. float GetAttributeAnimationSpeed(const String&) const;
  734. float GetAttributeAnimationTime(const String&) const;
  735. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  736. Variant GetAttributeDefault(const String&) const;
  737. UIElement GetChild(const String&, bool = false) const;
  738. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  739. Array<UIElement> GetChildren(bool = false) const;
  740. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  741. UIElement GetElementEventSender() const;
  742. bool GetInterceptNetworkUpdate(const String&) const;
  743. uint GetNumChildren(bool) const;
  744. bool HasSubscribedToEvent(Object, const String&);
  745. bool HasSubscribedToEvent(const String&);
  746. bool HasTag(const String&) const;
  747. void InsertChild(uint, UIElement);
  748. bool IsInside(IntVector2, bool);
  749. bool IsInsideCombined(IntVector2, bool);
  750. bool Load(File, bool = false);
  751. bool Load(VectorBuffer&, bool = false);
  752. bool LoadChildXML(XMLFile, XMLFile = null);
  753. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  754. bool LoadJSON(const JSONValue&, bool = false);
  755. bool LoadXML(File);
  756. bool LoadXML(VectorBuffer&);
  757. bool LoadXML(XMLFile, XMLFile);
  758. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  759. bool LoadXML(const XMLElement&, bool = false);
  760. void MarkNetworkUpdate() const;
  761. void Remove();
  762. void RemoveAllChildren();
  763. void RemoveAllTags();
  764. void RemoveAttributeAnimation(const String&);
  765. void RemoveChild(UIElement, uint = 0);
  766. void RemoveChild(uint);
  767. void RemoveInstanceDefault();
  768. void RemoveObjectAnimation();
  769. bool RemoveTag(const String&);
  770. void ResetDeepEnabled();
  771. void ResetToDefault();
  772. bool Save(File) const;
  773. bool Save(VectorBuffer&) const;
  774. bool SaveJSON(JSONValue&) const;
  775. bool SaveXML(File, const String& = "\t");
  776. bool SaveXML(VectorBuffer&, const String& = "\t");
  777. bool SaveXML(XMLElement&) const;
  778. IntVector2 ScreenToElement(const IntVector2&);
  779. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  780. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  781. void SetAnimationTime(float);
  782. bool SetAttribute(const String&, const Variant&);
  783. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  784. void SetAttributeAnimationSpeed(const String&, float);
  785. void SetAttributeAnimationTime(const String&, float);
  786. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  787. void SetDeepEnabled(bool);
  788. void SetEnabledRecursive(bool);
  789. void SetFixedHeight(int);
  790. void SetFixedSize(int, int);
  791. void SetFixedWidth(int);
  792. void SetFullImageRect();
  793. void SetHoverOffset(int, int);
  794. void SetInterceptNetworkUpdate(const String&, bool);
  795. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  796. void SetMaxSize(int, int);
  797. void SetMinSize(int, int);
  798. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  799. void SetPosition(int, int);
  800. void SetSize(int, int);
  801. bool SetStyle(const String&, XMLFile = null);
  802. bool SetStyle(const XMLElement&);
  803. bool SetStyleAuto(XMLFile = null);
  804. void UpdateLayout();
  805. const Variant& GetVar(const StringHash&);
  806. // Properties:
  807. bool animationEnabled;
  808. /* readonly */
  809. Array<Variant> attributeDefaults;
  810. /* readonly */
  811. Array<AttributeInfo> attributeInfos;
  812. Array<Variant> attributes;
  813. BlendMode blendMode;
  814. IntRect border;
  815. bool bringToBack;
  816. bool bringToFront;
  817. /* readonly */
  818. String category;
  819. /* readonly */
  820. IntVector2 childOffset;
  821. /* readonly */
  822. Array<UIElement> children;
  823. IntRect clipBorder;
  824. bool clipChildren;
  825. /* writeonly */
  826. Color color;
  827. /* readonly */
  828. bool colorGradient;
  829. Array<Color> colors;
  830. /* readonly */
  831. IntRect combinedScreenRect;
  832. XMLFile defaultStyle;
  833. /* readonly */
  834. float derivedOpacity;
  835. /* readonly */
  836. uint dragButtonCombo;
  837. /* readonly */
  838. int dragButtonCount;
  839. uint dragDropMode;
  840. bool editable;
  841. bool elementEventSender;
  842. bool enabled;
  843. /* readonly */
  844. bool enabledSelf;
  845. /* readonly */
  846. bool fixedHeight;
  847. /* readonly */
  848. bool fixedSize;
  849. /* readonly */
  850. bool fixedWidth;
  851. bool focus;
  852. FocusMode focusMode;
  853. int height;
  854. HorizontalAlignment horizontalAlignment;
  855. IntVector2 hoverOffset;
  856. /* readonly */
  857. bool hovering;
  858. IntRect imageBorder;
  859. IntRect imageRect;
  860. int indent;
  861. int indentSpacing;
  862. /* readonly */
  863. int indentWidth;
  864. bool internal;
  865. IntRect layoutBorder;
  866. Vector2 layoutFlexScale;
  867. LayoutMode layoutMode;
  868. int layoutSpacing;
  869. int maxHeight;
  870. IntVector2 maxSize;
  871. int maxWidth;
  872. int minHeight;
  873. IntVector2 minSize;
  874. int minWidth;
  875. String name;
  876. /* readonly */
  877. uint numAllChildren;
  878. /* readonly */
  879. uint numAttributes;
  880. /* readonly */
  881. uint numChildren;
  882. ObjectAnimation objectAnimation;
  883. float opacity;
  884. UIElement parent;
  885. IntVector2 position;
  886. int priority;
  887. /* readonly */
  888. int refs;
  889. /* readonly */
  890. UIElement root;
  891. /* readonly */
  892. IntVector2 screenPosition;
  893. bool selected;
  894. IntVector2 size;
  895. bool sortChildren;
  896. String style;
  897. /* readonly */
  898. Array<String> tags;
  899. bool temporary;
  900. Texture texture;
  901. bool tiled;
  902. TraversalMode traversalMode;
  903. /* readonly */
  904. StringHash type;
  905. /* readonly */
  906. String typeName;
  907. bool useDerivedOpacity;
  908. /* readonly */
  909. VariantMap vars;
  910. VerticalAlignment verticalAlignment;
  911. bool visible;
  912. /* readonly */
  913. bool visibleEffective;
  914. /* readonly */
  915. int weakRefs;
  916. int width;
  917. };
  918. class BoundingBox
  919. {
  920. // Methods:
  921. void Clear();
  922. void Clip(const BoundingBox&);
  923. void Define(const BoundingBox&);
  924. void Define(const Frustum&);
  925. void Define(const Polyhedron&);
  926. void Define(const Sphere&);
  927. void Define(const Vector3&);
  928. void Define(const Vector3&, const Vector3&);
  929. void Define(float, float);
  930. bool Defined() const;
  931. Intersection IsInside(const BoundingBox&) const;
  932. Intersection IsInside(const Sphere&) const;
  933. Intersection IsInside(const Vector3&) const;
  934. Intersection IsInsideFast(const BoundingBox&) const;
  935. Intersection IsInsideFast(const Sphere&) const;
  936. void Merge(const BoundingBox&);
  937. void Merge(const Frustum&);
  938. void Merge(const Polyhedron&);
  939. void Merge(const Sphere&);
  940. void Merge(const Vector3&);
  941. Rect Projected(const Matrix4&) const;
  942. String ToString() const;
  943. void Transform(const Matrix3&);
  944. void Transform(const Matrix3x4&);
  945. BoundingBox Transformed(const Matrix3&) const;
  946. BoundingBox Transformed(const Matrix3x4&) const;
  947. // Properties:
  948. /* readonly */
  949. Vector3 center;
  950. /* readonly */
  951. Vector3 halfSize;
  952. Vector3 max;
  953. Vector3 min;
  954. /* readonly */
  955. Vector3 size;
  956. };
  957. class Button
  958. {
  959. // Methods:
  960. void AddChild(UIElement);
  961. void AddTag(const String&);
  962. void AddTags(const String&, int8 = ';');
  963. void ApplyAttributes();
  964. void BringToFront();
  965. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  966. void DisableLayoutUpdate();
  967. IntVector2 ElementToScreen(const IntVector2&);
  968. void EnableLayoutUpdate();
  969. uint FindChild(UIElement) const;
  970. Variant GetAttribute(const String&) const;
  971. ValueAnimation GetAttributeAnimation(const String&) const;
  972. float GetAttributeAnimationSpeed(const String&) const;
  973. float GetAttributeAnimationTime(const String&) const;
  974. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  975. Variant GetAttributeDefault(const String&) const;
  976. UIElement GetChild(const String&, bool = false) const;
  977. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  978. Array<UIElement> GetChildren(bool = false) const;
  979. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  980. UIElement GetElementEventSender() const;
  981. bool GetInterceptNetworkUpdate(const String&) const;
  982. uint GetNumChildren(bool) const;
  983. bool HasSubscribedToEvent(Object, const String&);
  984. bool HasSubscribedToEvent(const String&);
  985. bool HasTag(const String&) const;
  986. void InsertChild(uint, UIElement);
  987. bool IsInside(IntVector2, bool);
  988. bool IsInsideCombined(IntVector2, bool);
  989. bool Load(File, bool = false);
  990. bool Load(VectorBuffer&, bool = false);
  991. bool LoadChildXML(XMLFile, XMLFile = null);
  992. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  993. bool LoadJSON(const JSONValue&, bool = false);
  994. bool LoadXML(File);
  995. bool LoadXML(VectorBuffer&);
  996. bool LoadXML(XMLFile, XMLFile);
  997. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  998. bool LoadXML(const XMLElement&, bool = false);
  999. void MarkNetworkUpdate() const;
  1000. void Remove();
  1001. void RemoveAllChildren();
  1002. void RemoveAllTags();
  1003. void RemoveAttributeAnimation(const String&);
  1004. void RemoveChild(UIElement, uint = 0);
  1005. void RemoveChild(uint);
  1006. void RemoveInstanceDefault();
  1007. void RemoveObjectAnimation();
  1008. bool RemoveTag(const String&);
  1009. void ResetDeepEnabled();
  1010. void ResetToDefault();
  1011. bool Save(File) const;
  1012. bool Save(VectorBuffer&) const;
  1013. bool SaveJSON(JSONValue&) const;
  1014. bool SaveXML(File, const String& = "\t");
  1015. bool SaveXML(VectorBuffer&, const String& = "\t");
  1016. bool SaveXML(XMLElement&) const;
  1017. IntVector2 ScreenToElement(const IntVector2&);
  1018. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1019. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1020. void SetAnimationTime(float);
  1021. bool SetAttribute(const String&, const Variant&);
  1022. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1023. void SetAttributeAnimationSpeed(const String&, float);
  1024. void SetAttributeAnimationTime(const String&, float);
  1025. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1026. void SetDeepEnabled(bool);
  1027. void SetEnabledRecursive(bool);
  1028. void SetFixedHeight(int);
  1029. void SetFixedSize(int, int);
  1030. void SetFixedWidth(int);
  1031. void SetFullImageRect();
  1032. void SetHoverOffset(int, int);
  1033. void SetInterceptNetworkUpdate(const String&, bool);
  1034. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1035. void SetMaxSize(int, int);
  1036. void SetMinSize(int, int);
  1037. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1038. void SetPosition(int, int);
  1039. void SetPressedChildOffset(int, int);
  1040. void SetPressedOffset(int, int);
  1041. void SetRepeat(float, float);
  1042. void SetSize(int, int);
  1043. bool SetStyle(const String&, XMLFile = null);
  1044. bool SetStyle(const XMLElement&);
  1045. bool SetStyleAuto(XMLFile = null);
  1046. void UpdateLayout();
  1047. const Variant& GetVar(const StringHash&);
  1048. // Properties:
  1049. bool animationEnabled;
  1050. /* readonly */
  1051. Array<Variant> attributeDefaults;
  1052. /* readonly */
  1053. Array<AttributeInfo> attributeInfos;
  1054. Array<Variant> attributes;
  1055. BlendMode blendMode;
  1056. IntRect border;
  1057. bool bringToBack;
  1058. bool bringToFront;
  1059. /* readonly */
  1060. String category;
  1061. /* readonly */
  1062. IntVector2 childOffset;
  1063. /* readonly */
  1064. Array<UIElement> children;
  1065. IntRect clipBorder;
  1066. bool clipChildren;
  1067. /* writeonly */
  1068. Color color;
  1069. /* readonly */
  1070. bool colorGradient;
  1071. Array<Color> colors;
  1072. /* readonly */
  1073. IntRect combinedScreenRect;
  1074. XMLFile defaultStyle;
  1075. /* readonly */
  1076. float derivedOpacity;
  1077. /* readonly */
  1078. uint dragButtonCombo;
  1079. /* readonly */
  1080. int dragButtonCount;
  1081. uint dragDropMode;
  1082. bool editable;
  1083. bool elementEventSender;
  1084. bool enabled;
  1085. /* readonly */
  1086. bool enabledSelf;
  1087. /* readonly */
  1088. bool fixedHeight;
  1089. /* readonly */
  1090. bool fixedSize;
  1091. /* readonly */
  1092. bool fixedWidth;
  1093. bool focus;
  1094. FocusMode focusMode;
  1095. int height;
  1096. HorizontalAlignment horizontalAlignment;
  1097. IntVector2 hoverOffset;
  1098. /* readonly */
  1099. bool hovering;
  1100. IntRect imageBorder;
  1101. IntRect imageRect;
  1102. int indent;
  1103. int indentSpacing;
  1104. /* readonly */
  1105. int indentWidth;
  1106. bool internal;
  1107. IntRect layoutBorder;
  1108. Vector2 layoutFlexScale;
  1109. LayoutMode layoutMode;
  1110. int layoutSpacing;
  1111. int maxHeight;
  1112. IntVector2 maxSize;
  1113. int maxWidth;
  1114. int minHeight;
  1115. IntVector2 minSize;
  1116. int minWidth;
  1117. String name;
  1118. /* readonly */
  1119. uint numAllChildren;
  1120. /* readonly */
  1121. uint numAttributes;
  1122. /* readonly */
  1123. uint numChildren;
  1124. ObjectAnimation objectAnimation;
  1125. float opacity;
  1126. UIElement parent;
  1127. IntVector2 position;
  1128. /* readonly */
  1129. bool pressed;
  1130. IntVector2 pressedChildOffset;
  1131. IntVector2 pressedOffset;
  1132. int priority;
  1133. /* readonly */
  1134. int refs;
  1135. float repeatDelay;
  1136. float repeatRate;
  1137. /* readonly */
  1138. UIElement root;
  1139. /* readonly */
  1140. IntVector2 screenPosition;
  1141. bool selected;
  1142. IntVector2 size;
  1143. bool sortChildren;
  1144. String style;
  1145. /* readonly */
  1146. Array<String> tags;
  1147. bool temporary;
  1148. Texture texture;
  1149. bool tiled;
  1150. TraversalMode traversalMode;
  1151. /* readonly */
  1152. StringHash type;
  1153. /* readonly */
  1154. String typeName;
  1155. bool useDerivedOpacity;
  1156. /* readonly */
  1157. VariantMap vars;
  1158. VerticalAlignment verticalAlignment;
  1159. bool visible;
  1160. /* readonly */
  1161. bool visibleEffective;
  1162. /* readonly */
  1163. int weakRefs;
  1164. int width;
  1165. };
  1166. class Camera
  1167. {
  1168. // Methods:
  1169. void ApplyAttributes();
  1170. void DrawDebugGeometry(DebugRenderer, bool);
  1171. Variant GetAttribute(const String&) const;
  1172. ValueAnimation GetAttributeAnimation(const String&) const;
  1173. float GetAttributeAnimationSpeed(const String&) const;
  1174. float GetAttributeAnimationTime(const String&) const;
  1175. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1176. Variant GetAttributeDefault(const String&) const;
  1177. float GetDistance(const Vector3&) const;
  1178. float GetDistanceSquared(const Vector3&) const;
  1179. bool GetInterceptNetworkUpdate(const String&) const;
  1180. Ray GetScreenRay(float, float) const;
  1181. Frustum GetSplitFrustum(float, float) const;
  1182. bool HasSubscribedToEvent(Object, const String&);
  1183. bool HasSubscribedToEvent(const String&);
  1184. bool Load(File, bool = false);
  1185. bool Load(VectorBuffer&, bool = false);
  1186. bool LoadJSON(const JSONValue&, bool = false);
  1187. bool LoadXML(const XMLElement&, bool = false);
  1188. void MarkNetworkUpdate() const;
  1189. void Remove();
  1190. void RemoveAttributeAnimation(const String&);
  1191. void RemoveInstanceDefault();
  1192. void RemoveObjectAnimation();
  1193. void ResetToDefault();
  1194. bool Save(File) const;
  1195. bool Save(VectorBuffer&) const;
  1196. bool SaveJSON(JSONValue&) const;
  1197. bool SaveXML(XMLElement&) const;
  1198. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1199. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1200. void SetAnimationTime(float);
  1201. bool SetAttribute(const String&, const Variant&);
  1202. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1203. void SetAttributeAnimationSpeed(const String&, float);
  1204. void SetAttributeAnimationTime(const String&, float);
  1205. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1206. void SetInterceptNetworkUpdate(const String&, bool);
  1207. void SetOrthoSize(const Vector2&);
  1208. Vector2 WorldToScreenPoint(const Vector3&) const;
  1209. // Properties:
  1210. bool animationEnabled;
  1211. float aspectRatio;
  1212. /* readonly */
  1213. Array<Variant> attributeDefaults;
  1214. /* readonly */
  1215. Array<AttributeInfo> attributeInfos;
  1216. Array<Variant> attributes;
  1217. bool autoAspectRatio;
  1218. /* readonly */
  1219. String category;
  1220. Plane clipPlane;
  1221. /* readonly */
  1222. Matrix3x4 effectiveWorldTransform;
  1223. bool enabled;
  1224. /* readonly */
  1225. bool enabledEffective;
  1226. float farClip;
  1227. FillMode fillMode;
  1228. float fov;
  1229. /* readonly */
  1230. Frustum frustum;
  1231. /* readonly */
  1232. float halfViewSize;
  1233. /* readonly */
  1234. uint id;
  1235. float lodBias;
  1236. float nearClip;
  1237. /* readonly */
  1238. Node node;
  1239. /* readonly */
  1240. uint numAttributes;
  1241. ObjectAnimation objectAnimation;
  1242. float orthoSize;
  1243. bool orthographic;
  1244. /* readonly */
  1245. Matrix4 projection;
  1246. Vector2 projectionOffset;
  1247. Plane reflectionPlane;
  1248. /* readonly */
  1249. int refs;
  1250. bool temporary;
  1251. /* readonly */
  1252. StringHash type;
  1253. /* readonly */
  1254. String typeName;
  1255. bool useClipping;
  1256. bool useReflection;
  1257. /* readonly */
  1258. Matrix3x4 view;
  1259. uint viewMask;
  1260. uint viewOverrideFlags;
  1261. /* readonly */
  1262. Frustum viewSpaceFrustum;
  1263. /* readonly */
  1264. int weakRefs;
  1265. float zoom;
  1266. };
  1267. class CascadeParameters
  1268. {
  1269. // Properties:
  1270. float biasAutoAdjust;
  1271. float fadeStart;
  1272. float split1;
  1273. float split2;
  1274. float split3;
  1275. float split4;
  1276. };
  1277. class CheckBox
  1278. {
  1279. // Methods:
  1280. void AddChild(UIElement);
  1281. void AddTag(const String&);
  1282. void AddTags(const String&, int8 = ';');
  1283. void ApplyAttributes();
  1284. void BringToFront();
  1285. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1286. void DisableLayoutUpdate();
  1287. IntVector2 ElementToScreen(const IntVector2&);
  1288. void EnableLayoutUpdate();
  1289. uint FindChild(UIElement) const;
  1290. Variant GetAttribute(const String&) const;
  1291. ValueAnimation GetAttributeAnimation(const String&) const;
  1292. float GetAttributeAnimationSpeed(const String&) const;
  1293. float GetAttributeAnimationTime(const String&) const;
  1294. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1295. Variant GetAttributeDefault(const String&) const;
  1296. UIElement GetChild(const String&, bool = false) const;
  1297. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1298. Array<UIElement> GetChildren(bool = false) const;
  1299. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1300. UIElement GetElementEventSender() const;
  1301. bool GetInterceptNetworkUpdate(const String&) const;
  1302. uint GetNumChildren(bool) const;
  1303. bool HasSubscribedToEvent(Object, const String&);
  1304. bool HasSubscribedToEvent(const String&);
  1305. bool HasTag(const String&) const;
  1306. void InsertChild(uint, UIElement);
  1307. bool IsInside(IntVector2, bool);
  1308. bool IsInsideCombined(IntVector2, bool);
  1309. bool Load(File, bool = false);
  1310. bool Load(VectorBuffer&, bool = false);
  1311. bool LoadChildXML(XMLFile, XMLFile = null);
  1312. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1313. bool LoadJSON(const JSONValue&, bool = false);
  1314. bool LoadXML(File);
  1315. bool LoadXML(VectorBuffer&);
  1316. bool LoadXML(XMLFile, XMLFile);
  1317. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1318. bool LoadXML(const XMLElement&, bool = false);
  1319. void MarkNetworkUpdate() const;
  1320. void Remove();
  1321. void RemoveAllChildren();
  1322. void RemoveAllTags();
  1323. void RemoveAttributeAnimation(const String&);
  1324. void RemoveChild(UIElement, uint = 0);
  1325. void RemoveChild(uint);
  1326. void RemoveInstanceDefault();
  1327. void RemoveObjectAnimation();
  1328. bool RemoveTag(const String&);
  1329. void ResetDeepEnabled();
  1330. void ResetToDefault();
  1331. bool Save(File) const;
  1332. bool Save(VectorBuffer&) const;
  1333. bool SaveJSON(JSONValue&) const;
  1334. bool SaveXML(File, const String& = "\t");
  1335. bool SaveXML(VectorBuffer&, const String& = "\t");
  1336. bool SaveXML(XMLElement&) const;
  1337. IntVector2 ScreenToElement(const IntVector2&);
  1338. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1339. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1340. void SetAnimationTime(float);
  1341. bool SetAttribute(const String&, const Variant&);
  1342. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1343. void SetAttributeAnimationSpeed(const String&, float);
  1344. void SetAttributeAnimationTime(const String&, float);
  1345. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1346. void SetCheckedOffset(int, int);
  1347. void SetDeepEnabled(bool);
  1348. void SetEnabledRecursive(bool);
  1349. void SetFixedHeight(int);
  1350. void SetFixedSize(int, int);
  1351. void SetFixedWidth(int);
  1352. void SetFullImageRect();
  1353. void SetHoverOffset(int, int);
  1354. void SetInterceptNetworkUpdate(const String&, bool);
  1355. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1356. void SetMaxSize(int, int);
  1357. void SetMinSize(int, int);
  1358. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1359. void SetPosition(int, int);
  1360. void SetSize(int, int);
  1361. bool SetStyle(const String&, XMLFile = null);
  1362. bool SetStyle(const XMLElement&);
  1363. bool SetStyleAuto(XMLFile = null);
  1364. void UpdateLayout();
  1365. const Variant& GetVar(const StringHash&);
  1366. // Properties:
  1367. bool animationEnabled;
  1368. /* readonly */
  1369. Array<Variant> attributeDefaults;
  1370. /* readonly */
  1371. Array<AttributeInfo> attributeInfos;
  1372. Array<Variant> attributes;
  1373. BlendMode blendMode;
  1374. IntRect border;
  1375. bool bringToBack;
  1376. bool bringToFront;
  1377. /* readonly */
  1378. String category;
  1379. bool checked;
  1380. IntVector2 checkedOffset;
  1381. /* readonly */
  1382. IntVector2 childOffset;
  1383. /* readonly */
  1384. Array<UIElement> children;
  1385. IntRect clipBorder;
  1386. bool clipChildren;
  1387. /* writeonly */
  1388. Color color;
  1389. /* readonly */
  1390. bool colorGradient;
  1391. Array<Color> colors;
  1392. /* readonly */
  1393. IntRect combinedScreenRect;
  1394. XMLFile defaultStyle;
  1395. /* readonly */
  1396. float derivedOpacity;
  1397. /* readonly */
  1398. uint dragButtonCombo;
  1399. /* readonly */
  1400. int dragButtonCount;
  1401. uint dragDropMode;
  1402. bool editable;
  1403. bool elementEventSender;
  1404. bool enabled;
  1405. /* readonly */
  1406. bool enabledSelf;
  1407. /* readonly */
  1408. bool fixedHeight;
  1409. /* readonly */
  1410. bool fixedSize;
  1411. /* readonly */
  1412. bool fixedWidth;
  1413. bool focus;
  1414. FocusMode focusMode;
  1415. int height;
  1416. HorizontalAlignment horizontalAlignment;
  1417. IntVector2 hoverOffset;
  1418. /* readonly */
  1419. bool hovering;
  1420. IntRect imageBorder;
  1421. IntRect imageRect;
  1422. int indent;
  1423. int indentSpacing;
  1424. /* readonly */
  1425. int indentWidth;
  1426. bool internal;
  1427. IntRect layoutBorder;
  1428. Vector2 layoutFlexScale;
  1429. LayoutMode layoutMode;
  1430. int layoutSpacing;
  1431. int maxHeight;
  1432. IntVector2 maxSize;
  1433. int maxWidth;
  1434. int minHeight;
  1435. IntVector2 minSize;
  1436. int minWidth;
  1437. String name;
  1438. /* readonly */
  1439. uint numAllChildren;
  1440. /* readonly */
  1441. uint numAttributes;
  1442. /* readonly */
  1443. uint numChildren;
  1444. ObjectAnimation objectAnimation;
  1445. float opacity;
  1446. UIElement parent;
  1447. IntVector2 position;
  1448. int priority;
  1449. /* readonly */
  1450. int refs;
  1451. /* readonly */
  1452. UIElement root;
  1453. /* readonly */
  1454. IntVector2 screenPosition;
  1455. bool selected;
  1456. IntVector2 size;
  1457. bool sortChildren;
  1458. String style;
  1459. /* readonly */
  1460. Array<String> tags;
  1461. bool temporary;
  1462. Texture texture;
  1463. bool tiled;
  1464. TraversalMode traversalMode;
  1465. /* readonly */
  1466. StringHash type;
  1467. /* readonly */
  1468. String typeName;
  1469. bool useDerivedOpacity;
  1470. /* readonly */
  1471. VariantMap vars;
  1472. VerticalAlignment verticalAlignment;
  1473. bool visible;
  1474. /* readonly */
  1475. bool visibleEffective;
  1476. /* readonly */
  1477. int weakRefs;
  1478. int width;
  1479. };
  1480. class CollisionBox2D
  1481. {
  1482. // Methods:
  1483. void ApplyAttributes();
  1484. void DrawDebugGeometry(DebugRenderer, bool);
  1485. Variant GetAttribute(const String&) const;
  1486. ValueAnimation GetAttributeAnimation(const String&) const;
  1487. float GetAttributeAnimationSpeed(const String&) const;
  1488. float GetAttributeAnimationTime(const String&) const;
  1489. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1490. Variant GetAttributeDefault(const String&) const;
  1491. bool GetInterceptNetworkUpdate(const String&) const;
  1492. bool HasSubscribedToEvent(Object, const String&);
  1493. bool HasSubscribedToEvent(const String&);
  1494. bool Load(File, bool = false);
  1495. bool Load(VectorBuffer&, bool = false);
  1496. bool LoadJSON(const JSONValue&, bool = false);
  1497. bool LoadXML(const XMLElement&, bool = false);
  1498. void MarkNetworkUpdate() const;
  1499. void Remove();
  1500. void RemoveAttributeAnimation(const String&);
  1501. void RemoveInstanceDefault();
  1502. void RemoveObjectAnimation();
  1503. void ResetToDefault();
  1504. bool Save(File) const;
  1505. bool Save(VectorBuffer&) const;
  1506. bool SaveJSON(JSONValue&) const;
  1507. bool SaveXML(XMLElement&) const;
  1508. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1509. void SetAnimationTime(float);
  1510. bool SetAttribute(const String&, const Variant&);
  1511. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1512. void SetAttributeAnimationSpeed(const String&, float);
  1513. void SetAttributeAnimationTime(const String&, float);
  1514. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1515. void SetCenter(float, float);
  1516. void SetInterceptNetworkUpdate(const String&, bool);
  1517. void SetSize(float, float);
  1518. // Properties:
  1519. float angle;
  1520. bool animationEnabled;
  1521. /* readonly */
  1522. Array<Variant> attributeDefaults;
  1523. /* readonly */
  1524. Array<AttributeInfo> attributeInfos;
  1525. Array<Variant> attributes;
  1526. /* readonly */
  1527. String category;
  1528. int categoryBits;
  1529. Vector2 center;
  1530. float density;
  1531. bool enabled;
  1532. /* readonly */
  1533. bool enabledEffective;
  1534. float friction;
  1535. int groupIndex;
  1536. /* readonly */
  1537. uint id;
  1538. /* readonly */
  1539. float inertia;
  1540. int maskBits;
  1541. /* readonly */
  1542. float mass;
  1543. /* readonly */
  1544. Vector2 massCenter;
  1545. /* readonly */
  1546. Node node;
  1547. /* readonly */
  1548. uint numAttributes;
  1549. ObjectAnimation objectAnimation;
  1550. /* readonly */
  1551. int refs;
  1552. float restitution;
  1553. Vector2 size;
  1554. bool temporary;
  1555. bool trigger;
  1556. /* readonly */
  1557. StringHash type;
  1558. /* readonly */
  1559. String typeName;
  1560. /* readonly */
  1561. int weakRefs;
  1562. };
  1563. class CollisionChain2D
  1564. {
  1565. // Methods:
  1566. void ApplyAttributes();
  1567. void DrawDebugGeometry(DebugRenderer, bool);
  1568. Variant GetAttribute(const String&) const;
  1569. ValueAnimation GetAttributeAnimation(const String&) const;
  1570. float GetAttributeAnimationSpeed(const String&) const;
  1571. float GetAttributeAnimationTime(const String&) const;
  1572. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1573. Variant GetAttributeDefault(const String&) const;
  1574. bool GetInterceptNetworkUpdate(const String&) const;
  1575. Array<Vector2> GetVertices() const;
  1576. bool HasSubscribedToEvent(Object, const String&);
  1577. bool HasSubscribedToEvent(const String&);
  1578. bool Load(File, bool = false);
  1579. bool Load(VectorBuffer&, bool = false);
  1580. bool LoadJSON(const JSONValue&, bool = false);
  1581. bool LoadXML(const XMLElement&, bool = false);
  1582. void MarkNetworkUpdate() const;
  1583. void Remove();
  1584. void RemoveAttributeAnimation(const String&);
  1585. void RemoveInstanceDefault();
  1586. void RemoveObjectAnimation();
  1587. void ResetToDefault();
  1588. bool Save(File) const;
  1589. bool Save(VectorBuffer&) const;
  1590. bool SaveJSON(JSONValue&) const;
  1591. bool SaveXML(XMLElement&) const;
  1592. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1593. void SetAnimationTime(float);
  1594. bool SetAttribute(const String&, const Variant&);
  1595. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1596. void SetAttributeAnimationSpeed(const String&, float);
  1597. void SetAttributeAnimationTime(const String&, float);
  1598. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1599. void SetInterceptNetworkUpdate(const String&, bool);
  1600. void SetVertex(uint, const Vector2&);
  1601. void SetVertices(Array<Vector2>);
  1602. const Vector2& GetVertex(uint) const;
  1603. // Properties:
  1604. bool animationEnabled;
  1605. /* readonly */
  1606. Array<Variant> attributeDefaults;
  1607. /* readonly */
  1608. Array<AttributeInfo> attributeInfos;
  1609. Array<Variant> attributes;
  1610. /* readonly */
  1611. String category;
  1612. int categoryBits;
  1613. float density;
  1614. bool enabled;
  1615. /* readonly */
  1616. bool enabledEffective;
  1617. float friction;
  1618. int groupIndex;
  1619. /* readonly */
  1620. uint id;
  1621. /* readonly */
  1622. float inertia;
  1623. bool loop;
  1624. int maskBits;
  1625. /* readonly */
  1626. float mass;
  1627. /* readonly */
  1628. Vector2 massCenter;
  1629. /* readonly */
  1630. Node node;
  1631. /* readonly */
  1632. uint numAttributes;
  1633. ObjectAnimation objectAnimation;
  1634. /* readonly */
  1635. int refs;
  1636. float restitution;
  1637. bool temporary;
  1638. bool trigger;
  1639. /* readonly */
  1640. StringHash type;
  1641. /* readonly */
  1642. String typeName;
  1643. uint vertexCount;
  1644. /* readonly */
  1645. int weakRefs;
  1646. };
  1647. class CollisionCircle2D
  1648. {
  1649. // Methods:
  1650. void ApplyAttributes();
  1651. void DrawDebugGeometry(DebugRenderer, bool);
  1652. Variant GetAttribute(const String&) const;
  1653. ValueAnimation GetAttributeAnimation(const String&) const;
  1654. float GetAttributeAnimationSpeed(const String&) const;
  1655. float GetAttributeAnimationTime(const String&) const;
  1656. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1657. Variant GetAttributeDefault(const String&) const;
  1658. bool GetInterceptNetworkUpdate(const String&) const;
  1659. bool HasSubscribedToEvent(Object, const String&);
  1660. bool HasSubscribedToEvent(const String&);
  1661. bool Load(File, bool = false);
  1662. bool Load(VectorBuffer&, bool = false);
  1663. bool LoadJSON(const JSONValue&, bool = false);
  1664. bool LoadXML(const XMLElement&, bool = false);
  1665. void MarkNetworkUpdate() const;
  1666. void Remove();
  1667. void RemoveAttributeAnimation(const String&);
  1668. void RemoveInstanceDefault();
  1669. void RemoveObjectAnimation();
  1670. void ResetToDefault();
  1671. bool Save(File) const;
  1672. bool Save(VectorBuffer&) const;
  1673. bool SaveJSON(JSONValue&) const;
  1674. bool SaveXML(XMLElement&) const;
  1675. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1676. void SetAnimationTime(float);
  1677. bool SetAttribute(const String&, const Variant&);
  1678. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1679. void SetAttributeAnimationSpeed(const String&, float);
  1680. void SetAttributeAnimationTime(const String&, float);
  1681. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1682. void SetCenter(float, float);
  1683. void SetInterceptNetworkUpdate(const String&, bool);
  1684. // Properties:
  1685. bool animationEnabled;
  1686. /* readonly */
  1687. Array<Variant> attributeDefaults;
  1688. /* readonly */
  1689. Array<AttributeInfo> attributeInfos;
  1690. Array<Variant> attributes;
  1691. /* readonly */
  1692. String category;
  1693. int categoryBits;
  1694. Vector2 center;
  1695. float density;
  1696. bool enabled;
  1697. /* readonly */
  1698. bool enabledEffective;
  1699. float friction;
  1700. int groupIndex;
  1701. /* readonly */
  1702. uint id;
  1703. /* readonly */
  1704. float inertia;
  1705. int maskBits;
  1706. /* readonly */
  1707. float mass;
  1708. /* readonly */
  1709. Vector2 massCenter;
  1710. /* readonly */
  1711. Node node;
  1712. /* readonly */
  1713. uint numAttributes;
  1714. ObjectAnimation objectAnimation;
  1715. float radius;
  1716. /* readonly */
  1717. int refs;
  1718. float restitution;
  1719. bool temporary;
  1720. bool trigger;
  1721. /* readonly */
  1722. StringHash type;
  1723. /* readonly */
  1724. String typeName;
  1725. /* readonly */
  1726. int weakRefs;
  1727. };
  1728. class CollisionEdge2D
  1729. {
  1730. // Methods:
  1731. void ApplyAttributes();
  1732. void DrawDebugGeometry(DebugRenderer, bool);
  1733. Variant GetAttribute(const String&) const;
  1734. ValueAnimation GetAttributeAnimation(const String&) const;
  1735. float GetAttributeAnimationSpeed(const String&) const;
  1736. float GetAttributeAnimationTime(const String&) const;
  1737. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1738. Variant GetAttributeDefault(const String&) const;
  1739. bool GetInterceptNetworkUpdate(const String&) const;
  1740. bool HasSubscribedToEvent(Object, const String&);
  1741. bool HasSubscribedToEvent(const String&);
  1742. bool Load(File, bool = false);
  1743. bool Load(VectorBuffer&, bool = false);
  1744. bool LoadJSON(const JSONValue&, bool = false);
  1745. bool LoadXML(const XMLElement&, bool = false);
  1746. void MarkNetworkUpdate() const;
  1747. void Remove();
  1748. void RemoveAttributeAnimation(const String&);
  1749. void RemoveInstanceDefault();
  1750. void RemoveObjectAnimation();
  1751. void ResetToDefault();
  1752. bool Save(File) const;
  1753. bool Save(VectorBuffer&) const;
  1754. bool SaveJSON(JSONValue&) const;
  1755. bool SaveXML(XMLElement&) const;
  1756. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1757. void SetAnimationTime(float);
  1758. bool SetAttribute(const String&, const Variant&);
  1759. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1760. void SetAttributeAnimationSpeed(const String&, float);
  1761. void SetAttributeAnimationTime(const String&, float);
  1762. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1763. void SetInterceptNetworkUpdate(const String&, bool);
  1764. void SetVertices(const Vector2&, const Vector2&);
  1765. // Properties:
  1766. bool animationEnabled;
  1767. /* readonly */
  1768. Array<Variant> attributeDefaults;
  1769. /* readonly */
  1770. Array<AttributeInfo> attributeInfos;
  1771. Array<Variant> attributes;
  1772. /* readonly */
  1773. String category;
  1774. int categoryBits;
  1775. float density;
  1776. bool enabled;
  1777. /* readonly */
  1778. bool enabledEffective;
  1779. float friction;
  1780. int groupIndex;
  1781. /* readonly */
  1782. uint id;
  1783. /* readonly */
  1784. float inertia;
  1785. int maskBits;
  1786. /* readonly */
  1787. float mass;
  1788. /* readonly */
  1789. Vector2 massCenter;
  1790. /* readonly */
  1791. Node node;
  1792. /* readonly */
  1793. uint numAttributes;
  1794. ObjectAnimation objectAnimation;
  1795. /* readonly */
  1796. int refs;
  1797. float restitution;
  1798. bool temporary;
  1799. bool trigger;
  1800. /* readonly */
  1801. StringHash type;
  1802. /* readonly */
  1803. String typeName;
  1804. Vector2 vertex1;
  1805. Vector2 vertex2;
  1806. /* readonly */
  1807. int weakRefs;
  1808. };
  1809. class CollisionPolygon2D
  1810. {
  1811. // Methods:
  1812. void ApplyAttributes();
  1813. void DrawDebugGeometry(DebugRenderer, bool);
  1814. Variant GetAttribute(const String&) const;
  1815. ValueAnimation GetAttributeAnimation(const String&) const;
  1816. float GetAttributeAnimationSpeed(const String&) const;
  1817. float GetAttributeAnimationTime(const String&) const;
  1818. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1819. Variant GetAttributeDefault(const String&) const;
  1820. bool GetInterceptNetworkUpdate(const String&) const;
  1821. Array<Vector2> GetVertices() const;
  1822. bool HasSubscribedToEvent(Object, const String&);
  1823. bool HasSubscribedToEvent(const String&);
  1824. bool Load(File, bool = false);
  1825. bool Load(VectorBuffer&, bool = false);
  1826. bool LoadJSON(const JSONValue&, bool = false);
  1827. bool LoadXML(const XMLElement&, bool = false);
  1828. void MarkNetworkUpdate() const;
  1829. void Remove();
  1830. void RemoveAttributeAnimation(const String&);
  1831. void RemoveInstanceDefault();
  1832. void RemoveObjectAnimation();
  1833. void ResetToDefault();
  1834. bool Save(File) const;
  1835. bool Save(VectorBuffer&) const;
  1836. bool SaveJSON(JSONValue&) const;
  1837. bool SaveXML(XMLElement&) const;
  1838. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1839. void SetAnimationTime(float);
  1840. bool SetAttribute(const String&, const Variant&);
  1841. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1842. void SetAttributeAnimationSpeed(const String&, float);
  1843. void SetAttributeAnimationTime(const String&, float);
  1844. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1845. void SetInterceptNetworkUpdate(const String&, bool);
  1846. void SetVertex(uint, const Vector2&);
  1847. void SetVertices(Array<Vector2>);
  1848. const Vector2& GetVertex(uint) const;
  1849. // Properties:
  1850. bool animationEnabled;
  1851. /* readonly */
  1852. Array<Variant> attributeDefaults;
  1853. /* readonly */
  1854. Array<AttributeInfo> attributeInfos;
  1855. Array<Variant> attributes;
  1856. /* readonly */
  1857. String category;
  1858. int categoryBits;
  1859. float density;
  1860. bool enabled;
  1861. /* readonly */
  1862. bool enabledEffective;
  1863. float friction;
  1864. int groupIndex;
  1865. /* readonly */
  1866. uint id;
  1867. /* readonly */
  1868. float inertia;
  1869. int maskBits;
  1870. /* readonly */
  1871. float mass;
  1872. /* readonly */
  1873. Vector2 massCenter;
  1874. /* readonly */
  1875. Node node;
  1876. /* readonly */
  1877. uint numAttributes;
  1878. ObjectAnimation objectAnimation;
  1879. /* readonly */
  1880. int refs;
  1881. float restitution;
  1882. bool temporary;
  1883. bool trigger;
  1884. /* readonly */
  1885. StringHash type;
  1886. /* readonly */
  1887. String typeName;
  1888. uint vertexCount;
  1889. /* readonly */
  1890. int weakRefs;
  1891. };
  1892. class CollisionShape
  1893. {
  1894. // Methods:
  1895. void ApplyAttributes();
  1896. void DrawDebugGeometry(DebugRenderer, bool);
  1897. Variant GetAttribute(const String&) const;
  1898. ValueAnimation GetAttributeAnimation(const String&) const;
  1899. float GetAttributeAnimationSpeed(const String&) const;
  1900. float GetAttributeAnimationTime(const String&) const;
  1901. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1902. Variant GetAttributeDefault(const String&) const;
  1903. bool GetInterceptNetworkUpdate(const String&) const;
  1904. bool HasSubscribedToEvent(Object, const String&);
  1905. bool HasSubscribedToEvent(const String&);
  1906. bool Load(File, bool = false);
  1907. bool Load(VectorBuffer&, bool = false);
  1908. bool LoadJSON(const JSONValue&, bool = false);
  1909. bool LoadXML(const XMLElement&, bool = false);
  1910. void MarkNetworkUpdate() const;
  1911. void Remove();
  1912. void RemoveAttributeAnimation(const String&);
  1913. void RemoveInstanceDefault();
  1914. void RemoveObjectAnimation();
  1915. void ResetToDefault();
  1916. bool Save(File) const;
  1917. bool Save(VectorBuffer&) const;
  1918. bool SaveJSON(JSONValue&) const;
  1919. bool SaveXML(XMLElement&) const;
  1920. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1921. void SetAnimationTime(float);
  1922. bool SetAttribute(const String&, const Variant&);
  1923. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1924. void SetAttributeAnimationSpeed(const String&, float);
  1925. void SetAttributeAnimationTime(const String&, float);
  1926. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1927. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1928. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1929. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1930. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1931. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1932. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1933. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1934. void SetInterceptNetworkUpdate(const String&, bool);
  1935. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1936. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1937. void SetTerrain(uint = 0);
  1938. void SetTransform(const Vector3&, const Quaternion&);
  1939. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1940. // Properties:
  1941. bool animationEnabled;
  1942. /* readonly */
  1943. Array<Variant> attributeDefaults;
  1944. /* readonly */
  1945. Array<AttributeInfo> attributeInfos;
  1946. Array<Variant> attributes;
  1947. /* readonly */
  1948. String category;
  1949. bool enabled;
  1950. /* readonly */
  1951. bool enabledEffective;
  1952. /* readonly */
  1953. uint id;
  1954. uint lodLevel;
  1955. float margin;
  1956. Model model;
  1957. /* readonly */
  1958. Node node;
  1959. /* readonly */
  1960. uint numAttributes;
  1961. ObjectAnimation objectAnimation;
  1962. Vector3 position;
  1963. /* readonly */
  1964. int refs;
  1965. Quaternion rotation;
  1966. ShapeType shapeType;
  1967. Vector3 size;
  1968. bool temporary;
  1969. /* readonly */
  1970. StringHash type;
  1971. /* readonly */
  1972. String typeName;
  1973. /* readonly */
  1974. int weakRefs;
  1975. /* readonly */
  1976. BoundingBox worldBoundingBox;
  1977. };
  1978. class CollisionShape2D
  1979. {
  1980. // Methods:
  1981. void ApplyAttributes();
  1982. void DrawDebugGeometry(DebugRenderer, bool);
  1983. Variant GetAttribute(const String&) const;
  1984. ValueAnimation GetAttributeAnimation(const String&) const;
  1985. float GetAttributeAnimationSpeed(const String&) const;
  1986. float GetAttributeAnimationTime(const String&) const;
  1987. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1988. Variant GetAttributeDefault(const String&) const;
  1989. bool GetInterceptNetworkUpdate(const String&) const;
  1990. bool HasSubscribedToEvent(Object, const String&);
  1991. bool HasSubscribedToEvent(const String&);
  1992. bool Load(File, bool = false);
  1993. bool Load(VectorBuffer&, bool = false);
  1994. bool LoadJSON(const JSONValue&, bool = false);
  1995. bool LoadXML(const XMLElement&, bool = false);
  1996. void MarkNetworkUpdate() const;
  1997. void Remove();
  1998. void RemoveAttributeAnimation(const String&);
  1999. void RemoveInstanceDefault();
  2000. void RemoveObjectAnimation();
  2001. void ResetToDefault();
  2002. bool Save(File) const;
  2003. bool Save(VectorBuffer&) const;
  2004. bool SaveJSON(JSONValue&) const;
  2005. bool SaveXML(XMLElement&) const;
  2006. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2007. void SetAnimationTime(float);
  2008. bool SetAttribute(const String&, const Variant&);
  2009. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2010. void SetAttributeAnimationSpeed(const String&, float);
  2011. void SetAttributeAnimationTime(const String&, float);
  2012. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2013. void SetInterceptNetworkUpdate(const String&, bool);
  2014. // Properties:
  2015. bool animationEnabled;
  2016. /* readonly */
  2017. Array<Variant> attributeDefaults;
  2018. /* readonly */
  2019. Array<AttributeInfo> attributeInfos;
  2020. Array<Variant> attributes;
  2021. /* readonly */
  2022. String category;
  2023. int categoryBits;
  2024. float density;
  2025. bool enabled;
  2026. /* readonly */
  2027. bool enabledEffective;
  2028. float friction;
  2029. int groupIndex;
  2030. /* readonly */
  2031. uint id;
  2032. /* readonly */
  2033. float inertia;
  2034. int maskBits;
  2035. /* readonly */
  2036. float mass;
  2037. /* readonly */
  2038. Vector2 massCenter;
  2039. /* readonly */
  2040. Node node;
  2041. /* readonly */
  2042. uint numAttributes;
  2043. ObjectAnimation objectAnimation;
  2044. /* readonly */
  2045. int refs;
  2046. float restitution;
  2047. bool temporary;
  2048. bool trigger;
  2049. /* readonly */
  2050. StringHash type;
  2051. /* readonly */
  2052. String typeName;
  2053. /* readonly */
  2054. int weakRefs;
  2055. };
  2056. class Color
  2057. {
  2058. // Methods:
  2059. Color Abs() const;
  2060. float Average() const;
  2061. float Chroma() const;
  2062. void Clip(bool);
  2063. bool Equals() const;
  2064. void FromHSL(float, float, float, float);
  2065. void FromHSV(float, float, float, float);
  2066. float Hue() const;
  2067. void Invert(bool);
  2068. Color Lerp(const Color&, float) const;
  2069. float Lightness() const;
  2070. float Luma() const;
  2071. float MaxRGB() const;
  2072. float MinRGB() const;
  2073. float Range() const;
  2074. float SaturationHSL() const;
  2075. float SaturationHSV() const;
  2076. float SumRGB() const;
  2077. Vector3 ToHSL() const;
  2078. Vector3 ToHSV() const;
  2079. String ToString() const;
  2080. uint ToUInt() const;
  2081. float Value() const;
  2082. // Properties:
  2083. float a;
  2084. float b;
  2085. /* readonly */
  2086. Array<float> data;
  2087. float g;
  2088. float r;
  2089. /* readonly */
  2090. Vector3 rgb;
  2091. /* readonly */
  2092. Vector4 rgba;
  2093. };
  2094. class ColorFrame
  2095. {
  2096. // Properties:
  2097. Color color;
  2098. float time;
  2099. };
  2100. class Component
  2101. {
  2102. // Methods:
  2103. void ApplyAttributes();
  2104. void DrawDebugGeometry(DebugRenderer, bool);
  2105. Variant GetAttribute(const String&) const;
  2106. ValueAnimation GetAttributeAnimation(const String&) const;
  2107. float GetAttributeAnimationSpeed(const String&) const;
  2108. float GetAttributeAnimationTime(const String&) const;
  2109. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2110. Variant GetAttributeDefault(const String&) const;
  2111. bool GetInterceptNetworkUpdate(const String&) const;
  2112. bool HasSubscribedToEvent(Object, const String&);
  2113. bool HasSubscribedToEvent(const String&);
  2114. bool Load(File, bool = false);
  2115. bool Load(VectorBuffer&, bool = false);
  2116. bool LoadJSON(const JSONValue&, bool = false);
  2117. bool LoadXML(const XMLElement&, bool = false);
  2118. void MarkNetworkUpdate() const;
  2119. void Remove();
  2120. void RemoveAttributeAnimation(const String&);
  2121. void RemoveInstanceDefault();
  2122. void RemoveObjectAnimation();
  2123. void ResetToDefault();
  2124. bool Save(File) const;
  2125. bool Save(VectorBuffer&) const;
  2126. bool SaveJSON(JSONValue&) const;
  2127. bool SaveXML(XMLElement&) const;
  2128. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2129. void SetAnimationTime(float);
  2130. bool SetAttribute(const String&, const Variant&);
  2131. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2132. void SetAttributeAnimationSpeed(const String&, float);
  2133. void SetAttributeAnimationTime(const String&, float);
  2134. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2135. void SetInterceptNetworkUpdate(const String&, bool);
  2136. // Properties:
  2137. bool animationEnabled;
  2138. /* readonly */
  2139. Array<Variant> attributeDefaults;
  2140. /* readonly */
  2141. Array<AttributeInfo> attributeInfos;
  2142. Array<Variant> attributes;
  2143. /* readonly */
  2144. String category;
  2145. bool enabled;
  2146. /* readonly */
  2147. bool enabledEffective;
  2148. /* readonly */
  2149. uint id;
  2150. /* readonly */
  2151. Node node;
  2152. /* readonly */
  2153. uint numAttributes;
  2154. ObjectAnimation objectAnimation;
  2155. /* readonly */
  2156. int refs;
  2157. bool temporary;
  2158. /* readonly */
  2159. StringHash type;
  2160. /* readonly */
  2161. String typeName;
  2162. /* readonly */
  2163. int weakRefs;
  2164. };
  2165. class Connection
  2166. {
  2167. // Methods:
  2168. void Disconnect(int = 0);
  2169. bool HasSubscribedToEvent(Object, const String&);
  2170. bool HasSubscribedToEvent(const String&);
  2171. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2172. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2173. void SendPackageToClient(PackageFile);
  2174. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2175. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2176. String ToString() const;
  2177. // Properties:
  2178. /* readonly */
  2179. String address;
  2180. /* readonly */
  2181. float bytesInPerSec;
  2182. /* readonly */
  2183. float bytesOutPerSec;
  2184. /* readonly */
  2185. String category;
  2186. /* readonly */
  2187. bool client;
  2188. /* readonly */
  2189. bool connectPending;
  2190. /* readonly */
  2191. bool connected;
  2192. Controls controls;
  2193. /* readonly */
  2194. String downloadName;
  2195. /* readonly */
  2196. float downloadProgress;
  2197. VariantMap identity;
  2198. /* readonly */
  2199. float lastHeardTime;
  2200. bool logStatistics;
  2201. /* readonly */
  2202. uint numDownloads;
  2203. /* readonly */
  2204. float packetsInPerSec;
  2205. /* readonly */
  2206. float packetsOutPerSec;
  2207. /* readonly */
  2208. uint16 port;
  2209. Vector3 position;
  2210. /* readonly */
  2211. int refs;
  2212. Quaternion rotation;
  2213. /* readonly */
  2214. float roundTripTime;
  2215. Scene scene;
  2216. /* readonly */
  2217. bool sceneLoaded;
  2218. uint8 timeStamp;
  2219. /* readonly */
  2220. StringHash type;
  2221. /* readonly */
  2222. String typeName;
  2223. /* readonly */
  2224. int weakRefs;
  2225. };
  2226. class Console
  2227. {
  2228. // Methods:
  2229. void CopySelectedRows() const;
  2230. bool HasSubscribedToEvent(Object, const String&);
  2231. bool HasSubscribedToEvent(const String&);
  2232. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2233. void Toggle();
  2234. void UpdateElements();
  2235. // Properties:
  2236. bool autoVisibleOnError;
  2237. /* readonly */
  2238. BorderImage background;
  2239. /* readonly */
  2240. String category;
  2241. /* readonly */
  2242. Button closeButton;
  2243. String commandInterpreter;
  2244. XMLFile defaultStyle;
  2245. bool focusOnShow;
  2246. /* readonly */
  2247. uint historyPosition;
  2248. /* readonly */
  2249. Array<String> historyRow;
  2250. /* readonly */
  2251. LineEdit lineEdit;
  2252. uint numBufferedRows;
  2253. uint numHistoryRows;
  2254. uint numRows;
  2255. /* readonly */
  2256. int refs;
  2257. /* readonly */
  2258. StringHash type;
  2259. /* readonly */
  2260. String typeName;
  2261. bool visible;
  2262. /* readonly */
  2263. int weakRefs;
  2264. };
  2265. class Constraint
  2266. {
  2267. // Methods:
  2268. void ApplyAttributes();
  2269. void DrawDebugGeometry(DebugRenderer, bool);
  2270. Variant GetAttribute(const String&) const;
  2271. ValueAnimation GetAttributeAnimation(const String&) const;
  2272. float GetAttributeAnimationSpeed(const String&) const;
  2273. float GetAttributeAnimationTime(const String&) const;
  2274. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2275. Variant GetAttributeDefault(const String&) const;
  2276. bool GetInterceptNetworkUpdate(const String&) const;
  2277. bool HasSubscribedToEvent(Object, const String&);
  2278. bool HasSubscribedToEvent(const String&);
  2279. bool Load(File, bool = false);
  2280. bool Load(VectorBuffer&, bool = false);
  2281. bool LoadJSON(const JSONValue&, bool = false);
  2282. bool LoadXML(const XMLElement&, bool = false);
  2283. void MarkNetworkUpdate() const;
  2284. void Remove();
  2285. void RemoveAttributeAnimation(const String&);
  2286. void RemoveInstanceDefault();
  2287. void RemoveObjectAnimation();
  2288. void ResetToDefault();
  2289. bool Save(File) const;
  2290. bool Save(VectorBuffer&) const;
  2291. bool SaveJSON(JSONValue&) const;
  2292. bool SaveXML(XMLElement&) const;
  2293. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2294. void SetAnimationTime(float);
  2295. bool SetAttribute(const String&, const Variant&);
  2296. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2297. void SetAttributeAnimationSpeed(const String&, float);
  2298. void SetAttributeAnimationTime(const String&, float);
  2299. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2300. void SetInterceptNetworkUpdate(const String&, bool);
  2301. // Properties:
  2302. bool animationEnabled;
  2303. /* readonly */
  2304. Array<Variant> attributeDefaults;
  2305. /* readonly */
  2306. Array<AttributeInfo> attributeInfos;
  2307. Array<Variant> attributes;
  2308. /* writeonly */
  2309. Vector3 axis;
  2310. /* readonly */
  2311. String category;
  2312. float cfm;
  2313. ConstraintType constraintType;
  2314. bool disableCollision;
  2315. bool enabled;
  2316. /* readonly */
  2317. bool enabledEffective;
  2318. float erp;
  2319. Vector2 highLimit;
  2320. /* readonly */
  2321. uint id;
  2322. Vector2 lowLimit;
  2323. /* readonly */
  2324. Node node;
  2325. /* readonly */
  2326. uint numAttributes;
  2327. ObjectAnimation objectAnimation;
  2328. /* writeonly */
  2329. Vector3 otherAxis;
  2330. RigidBody otherBody;
  2331. Vector3 otherPosition;
  2332. Quaternion otherRotation;
  2333. /* readonly */
  2334. RigidBody ownBody;
  2335. Vector3 position;
  2336. /* readonly */
  2337. int refs;
  2338. Quaternion rotation;
  2339. bool temporary;
  2340. /* readonly */
  2341. StringHash type;
  2342. /* readonly */
  2343. String typeName;
  2344. /* readonly */
  2345. int weakRefs;
  2346. Vector3 worldPosition;
  2347. };
  2348. class Constraint2D
  2349. {
  2350. // Methods:
  2351. void ApplyAttributes();
  2352. void DrawDebugGeometry(DebugRenderer, bool);
  2353. Variant GetAttribute(const String&) const;
  2354. ValueAnimation GetAttributeAnimation(const String&) const;
  2355. float GetAttributeAnimationSpeed(const String&) const;
  2356. float GetAttributeAnimationTime(const String&) const;
  2357. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2358. Variant GetAttributeDefault(const String&) const;
  2359. bool GetInterceptNetworkUpdate(const String&) const;
  2360. bool HasSubscribedToEvent(Object, const String&);
  2361. bool HasSubscribedToEvent(const String&);
  2362. bool Load(File, bool = false);
  2363. bool Load(VectorBuffer&, bool = false);
  2364. bool LoadJSON(const JSONValue&, bool = false);
  2365. bool LoadXML(const XMLElement&, bool = false);
  2366. void MarkNetworkUpdate() const;
  2367. void Remove();
  2368. void RemoveAttributeAnimation(const String&);
  2369. void RemoveInstanceDefault();
  2370. void RemoveObjectAnimation();
  2371. void ResetToDefault();
  2372. bool Save(File) const;
  2373. bool Save(VectorBuffer&) const;
  2374. bool SaveJSON(JSONValue&) const;
  2375. bool SaveXML(XMLElement&) const;
  2376. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2377. void SetAnimationTime(float);
  2378. bool SetAttribute(const String&, const Variant&);
  2379. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2380. void SetAttributeAnimationSpeed(const String&, float);
  2381. void SetAttributeAnimationTime(const String&, float);
  2382. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2383. void SetInterceptNetworkUpdate(const String&, bool);
  2384. // Properties:
  2385. bool animationEnabled;
  2386. /* readonly */
  2387. Array<Variant> attributeDefaults;
  2388. /* readonly */
  2389. Array<AttributeInfo> attributeInfos;
  2390. Array<Variant> attributes;
  2391. /* readonly */
  2392. String category;
  2393. bool collideConnected;
  2394. bool enabled;
  2395. /* readonly */
  2396. bool enabledEffective;
  2397. /* readonly */
  2398. uint id;
  2399. /* readonly */
  2400. Node node;
  2401. /* readonly */
  2402. uint numAttributes;
  2403. ObjectAnimation objectAnimation;
  2404. RigidBody2D otherBody;
  2405. /* readonly */
  2406. RigidBody2D ownerBody;
  2407. /* readonly */
  2408. int refs;
  2409. bool temporary;
  2410. /* readonly */
  2411. StringHash type;
  2412. /* readonly */
  2413. String typeName;
  2414. /* readonly */
  2415. int weakRefs;
  2416. };
  2417. class ConstraintDistance2D
  2418. {
  2419. // Methods:
  2420. void ApplyAttributes();
  2421. void DrawDebugGeometry(DebugRenderer, bool);
  2422. Variant GetAttribute(const String&) const;
  2423. ValueAnimation GetAttributeAnimation(const String&) const;
  2424. float GetAttributeAnimationSpeed(const String&) const;
  2425. float GetAttributeAnimationTime(const String&) const;
  2426. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2427. Variant GetAttributeDefault(const String&) const;
  2428. bool GetInterceptNetworkUpdate(const String&) const;
  2429. bool HasSubscribedToEvent(Object, const String&);
  2430. bool HasSubscribedToEvent(const String&);
  2431. bool Load(File, bool = false);
  2432. bool Load(VectorBuffer&, bool = false);
  2433. bool LoadJSON(const JSONValue&, bool = false);
  2434. bool LoadXML(const XMLElement&, bool = false);
  2435. void MarkNetworkUpdate() const;
  2436. void Remove();
  2437. void RemoveAttributeAnimation(const String&);
  2438. void RemoveInstanceDefault();
  2439. void RemoveObjectAnimation();
  2440. void ResetToDefault();
  2441. bool Save(File) const;
  2442. bool Save(VectorBuffer&) const;
  2443. bool SaveJSON(JSONValue&) const;
  2444. bool SaveXML(XMLElement&) const;
  2445. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2446. void SetAnimationTime(float);
  2447. bool SetAttribute(const String&, const Variant&);
  2448. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2449. void SetAttributeAnimationSpeed(const String&, float);
  2450. void SetAttributeAnimationTime(const String&, float);
  2451. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2452. void SetInterceptNetworkUpdate(const String&, bool);
  2453. // Properties:
  2454. bool animationEnabled;
  2455. /* readonly */
  2456. Array<Variant> attributeDefaults;
  2457. /* readonly */
  2458. Array<AttributeInfo> attributeInfos;
  2459. Array<Variant> attributes;
  2460. /* readonly */
  2461. String category;
  2462. bool collideConnected;
  2463. float dampingRatio;
  2464. bool enabled;
  2465. /* readonly */
  2466. bool enabledEffective;
  2467. float frequencyHz;
  2468. /* readonly */
  2469. uint id;
  2470. /* readonly */
  2471. Node node;
  2472. /* readonly */
  2473. uint numAttributes;
  2474. ObjectAnimation objectAnimation;
  2475. RigidBody2D otherBody;
  2476. Vector2 otherBodyAnchor;
  2477. /* readonly */
  2478. RigidBody2D ownerBody;
  2479. Vector2 ownerBodyAnchor;
  2480. /* readonly */
  2481. int refs;
  2482. bool temporary;
  2483. /* readonly */
  2484. StringHash type;
  2485. /* readonly */
  2486. String typeName;
  2487. /* readonly */
  2488. int weakRefs;
  2489. };
  2490. class ConstraintFriction2D
  2491. {
  2492. // Methods:
  2493. void ApplyAttributes();
  2494. void DrawDebugGeometry(DebugRenderer, bool);
  2495. Variant GetAttribute(const String&) const;
  2496. ValueAnimation GetAttributeAnimation(const String&) const;
  2497. float GetAttributeAnimationSpeed(const String&) const;
  2498. float GetAttributeAnimationTime(const String&) const;
  2499. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2500. Variant GetAttributeDefault(const String&) const;
  2501. bool GetInterceptNetworkUpdate(const String&) const;
  2502. bool HasSubscribedToEvent(Object, const String&);
  2503. bool HasSubscribedToEvent(const String&);
  2504. bool Load(File, bool = false);
  2505. bool Load(VectorBuffer&, bool = false);
  2506. bool LoadJSON(const JSONValue&, bool = false);
  2507. bool LoadXML(const XMLElement&, bool = false);
  2508. void MarkNetworkUpdate() const;
  2509. void Remove();
  2510. void RemoveAttributeAnimation(const String&);
  2511. void RemoveInstanceDefault();
  2512. void RemoveObjectAnimation();
  2513. void ResetToDefault();
  2514. bool Save(File) const;
  2515. bool Save(VectorBuffer&) const;
  2516. bool SaveJSON(JSONValue&) const;
  2517. bool SaveXML(XMLElement&) const;
  2518. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2519. void SetAnimationTime(float);
  2520. bool SetAttribute(const String&, const Variant&);
  2521. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2522. void SetAttributeAnimationSpeed(const String&, float);
  2523. void SetAttributeAnimationTime(const String&, float);
  2524. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2525. void SetInterceptNetworkUpdate(const String&, bool);
  2526. // Properties:
  2527. Vector2 anchor;
  2528. bool animationEnabled;
  2529. /* readonly */
  2530. Array<Variant> attributeDefaults;
  2531. /* readonly */
  2532. Array<AttributeInfo> attributeInfos;
  2533. Array<Variant> attributes;
  2534. /* readonly */
  2535. String category;
  2536. bool collideConnected;
  2537. bool enabled;
  2538. /* readonly */
  2539. bool enabledEffective;
  2540. /* readonly */
  2541. uint id;
  2542. float maxForce;
  2543. float maxTorque;
  2544. /* readonly */
  2545. Node node;
  2546. /* readonly */
  2547. uint numAttributes;
  2548. ObjectAnimation objectAnimation;
  2549. RigidBody2D otherBody;
  2550. /* readonly */
  2551. RigidBody2D ownerBody;
  2552. /* readonly */
  2553. int refs;
  2554. bool temporary;
  2555. /* readonly */
  2556. StringHash type;
  2557. /* readonly */
  2558. String typeName;
  2559. /* readonly */
  2560. int weakRefs;
  2561. };
  2562. class ConstraintGear2D
  2563. {
  2564. // Methods:
  2565. void ApplyAttributes();
  2566. void DrawDebugGeometry(DebugRenderer, bool);
  2567. Variant GetAttribute(const String&) const;
  2568. ValueAnimation GetAttributeAnimation(const String&) const;
  2569. float GetAttributeAnimationSpeed(const String&) const;
  2570. float GetAttributeAnimationTime(const String&) const;
  2571. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2572. Variant GetAttributeDefault(const String&) const;
  2573. bool GetInterceptNetworkUpdate(const String&) const;
  2574. bool HasSubscribedToEvent(Object, const String&);
  2575. bool HasSubscribedToEvent(const String&);
  2576. bool Load(File, bool = false);
  2577. bool Load(VectorBuffer&, bool = false);
  2578. bool LoadJSON(const JSONValue&, bool = false);
  2579. bool LoadXML(const XMLElement&, bool = false);
  2580. void MarkNetworkUpdate() const;
  2581. void Remove();
  2582. void RemoveAttributeAnimation(const String&);
  2583. void RemoveInstanceDefault();
  2584. void RemoveObjectAnimation();
  2585. void ResetToDefault();
  2586. bool Save(File) const;
  2587. bool Save(VectorBuffer&) const;
  2588. bool SaveJSON(JSONValue&) const;
  2589. bool SaveXML(XMLElement&) const;
  2590. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2591. void SetAnimationTime(float);
  2592. bool SetAttribute(const String&, const Variant&);
  2593. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2594. void SetAttributeAnimationSpeed(const String&, float);
  2595. void SetAttributeAnimationTime(const String&, float);
  2596. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2597. void SetInterceptNetworkUpdate(const String&, bool);
  2598. // Properties:
  2599. bool animationEnabled;
  2600. /* readonly */
  2601. Array<Variant> attributeDefaults;
  2602. /* readonly */
  2603. Array<AttributeInfo> attributeInfos;
  2604. Array<Variant> attributes;
  2605. /* readonly */
  2606. String category;
  2607. bool collideConnected;
  2608. bool enabled;
  2609. /* readonly */
  2610. bool enabledEffective;
  2611. /* readonly */
  2612. uint id;
  2613. /* readonly */
  2614. Node node;
  2615. /* readonly */
  2616. uint numAttributes;
  2617. ObjectAnimation objectAnimation;
  2618. RigidBody2D otherBody;
  2619. Constraint2D otherConstraint;
  2620. /* readonly */
  2621. RigidBody2D ownerBody;
  2622. Constraint2D ownerConstraint;
  2623. float ratio;
  2624. /* readonly */
  2625. int refs;
  2626. bool temporary;
  2627. /* readonly */
  2628. StringHash type;
  2629. /* readonly */
  2630. String typeName;
  2631. /* readonly */
  2632. int weakRefs;
  2633. };
  2634. class ConstraintMotor2D
  2635. {
  2636. // Methods:
  2637. void ApplyAttributes();
  2638. void DrawDebugGeometry(DebugRenderer, bool);
  2639. Variant GetAttribute(const String&) const;
  2640. ValueAnimation GetAttributeAnimation(const String&) const;
  2641. float GetAttributeAnimationSpeed(const String&) const;
  2642. float GetAttributeAnimationTime(const String&) const;
  2643. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2644. Variant GetAttributeDefault(const String&) const;
  2645. bool GetInterceptNetworkUpdate(const String&) const;
  2646. bool HasSubscribedToEvent(Object, const String&);
  2647. bool HasSubscribedToEvent(const String&);
  2648. bool Load(File, bool = false);
  2649. bool Load(VectorBuffer&, bool = false);
  2650. bool LoadJSON(const JSONValue&, bool = false);
  2651. bool LoadXML(const XMLElement&, bool = false);
  2652. void MarkNetworkUpdate() const;
  2653. void Remove();
  2654. void RemoveAttributeAnimation(const String&);
  2655. void RemoveInstanceDefault();
  2656. void RemoveObjectAnimation();
  2657. void ResetToDefault();
  2658. bool Save(File) const;
  2659. bool Save(VectorBuffer&) const;
  2660. bool SaveJSON(JSONValue&) const;
  2661. bool SaveXML(XMLElement&) const;
  2662. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2663. void SetAnimationTime(float);
  2664. bool SetAttribute(const String&, const Variant&);
  2665. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2666. void SetAttributeAnimationSpeed(const String&, float);
  2667. void SetAttributeAnimationTime(const String&, float);
  2668. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2669. void SetInterceptNetworkUpdate(const String&, bool);
  2670. // Properties:
  2671. float angularOffset;
  2672. bool animationEnabled;
  2673. /* readonly */
  2674. Array<Variant> attributeDefaults;
  2675. /* readonly */
  2676. Array<AttributeInfo> attributeInfos;
  2677. Array<Variant> attributes;
  2678. /* readonly */
  2679. String category;
  2680. bool collideConnected;
  2681. float correctionFactor;
  2682. bool enabled;
  2683. /* readonly */
  2684. bool enabledEffective;
  2685. /* readonly */
  2686. uint id;
  2687. Vector2 linearOffset;
  2688. float maxForce;
  2689. float maxTorque;
  2690. /* readonly */
  2691. Node node;
  2692. /* readonly */
  2693. uint numAttributes;
  2694. ObjectAnimation objectAnimation;
  2695. RigidBody2D otherBody;
  2696. /* readonly */
  2697. RigidBody2D ownerBody;
  2698. /* readonly */
  2699. int refs;
  2700. bool temporary;
  2701. /* readonly */
  2702. StringHash type;
  2703. /* readonly */
  2704. String typeName;
  2705. /* readonly */
  2706. int weakRefs;
  2707. };
  2708. class ConstraintMouse2D
  2709. {
  2710. // Methods:
  2711. void ApplyAttributes();
  2712. void DrawDebugGeometry(DebugRenderer, bool);
  2713. Variant GetAttribute(const String&) const;
  2714. ValueAnimation GetAttributeAnimation(const String&) const;
  2715. float GetAttributeAnimationSpeed(const String&) const;
  2716. float GetAttributeAnimationTime(const String&) const;
  2717. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2718. Variant GetAttributeDefault(const String&) const;
  2719. bool GetInterceptNetworkUpdate(const String&) const;
  2720. bool HasSubscribedToEvent(Object, const String&);
  2721. bool HasSubscribedToEvent(const String&);
  2722. bool Load(File, bool = false);
  2723. bool Load(VectorBuffer&, bool = false);
  2724. bool LoadJSON(const JSONValue&, bool = false);
  2725. bool LoadXML(const XMLElement&, bool = false);
  2726. void MarkNetworkUpdate() const;
  2727. void Remove();
  2728. void RemoveAttributeAnimation(const String&);
  2729. void RemoveInstanceDefault();
  2730. void RemoveObjectAnimation();
  2731. void ResetToDefault();
  2732. bool Save(File) const;
  2733. bool Save(VectorBuffer&) const;
  2734. bool SaveJSON(JSONValue&) const;
  2735. bool SaveXML(XMLElement&) const;
  2736. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2737. void SetAnimationTime(float);
  2738. bool SetAttribute(const String&, const Variant&);
  2739. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2740. void SetAttributeAnimationSpeed(const String&, float);
  2741. void SetAttributeAnimationTime(const String&, float);
  2742. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2743. void SetInterceptNetworkUpdate(const String&, bool);
  2744. // Properties:
  2745. bool animationEnabled;
  2746. /* readonly */
  2747. Array<Variant> attributeDefaults;
  2748. /* readonly */
  2749. Array<AttributeInfo> attributeInfos;
  2750. Array<Variant> attributes;
  2751. /* readonly */
  2752. String category;
  2753. bool collideConnected;
  2754. float dampingRatio;
  2755. bool enabled;
  2756. /* readonly */
  2757. bool enabledEffective;
  2758. float frequencyHz;
  2759. /* readonly */
  2760. uint id;
  2761. float maxForce;
  2762. /* readonly */
  2763. Node node;
  2764. /* readonly */
  2765. uint numAttributes;
  2766. ObjectAnimation objectAnimation;
  2767. RigidBody2D otherBody;
  2768. /* readonly */
  2769. RigidBody2D ownerBody;
  2770. /* readonly */
  2771. int refs;
  2772. Vector2 target;
  2773. bool temporary;
  2774. /* readonly */
  2775. StringHash type;
  2776. /* readonly */
  2777. String typeName;
  2778. /* readonly */
  2779. int weakRefs;
  2780. };
  2781. class ConstraintPrismatic2D
  2782. {
  2783. // Methods:
  2784. void ApplyAttributes();
  2785. void DrawDebugGeometry(DebugRenderer, bool);
  2786. Variant GetAttribute(const String&) const;
  2787. ValueAnimation GetAttributeAnimation(const String&) const;
  2788. float GetAttributeAnimationSpeed(const String&) const;
  2789. float GetAttributeAnimationTime(const String&) const;
  2790. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2791. Variant GetAttributeDefault(const String&) const;
  2792. bool GetInterceptNetworkUpdate(const String&) const;
  2793. bool HasSubscribedToEvent(Object, const String&);
  2794. bool HasSubscribedToEvent(const String&);
  2795. bool Load(File, bool = false);
  2796. bool Load(VectorBuffer&, bool = false);
  2797. bool LoadJSON(const JSONValue&, bool = false);
  2798. bool LoadXML(const XMLElement&, bool = false);
  2799. void MarkNetworkUpdate() const;
  2800. void Remove();
  2801. void RemoveAttributeAnimation(const String&);
  2802. void RemoveInstanceDefault();
  2803. void RemoveObjectAnimation();
  2804. void ResetToDefault();
  2805. bool Save(File) const;
  2806. bool Save(VectorBuffer&) const;
  2807. bool SaveJSON(JSONValue&) const;
  2808. bool SaveXML(XMLElement&) const;
  2809. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2810. void SetAnimationTime(float);
  2811. bool SetAttribute(const String&, const Variant&);
  2812. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2813. void SetAttributeAnimationSpeed(const String&, float);
  2814. void SetAttributeAnimationTime(const String&, float);
  2815. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2816. void SetInterceptNetworkUpdate(const String&, bool);
  2817. // Properties:
  2818. Vector2 anchor;
  2819. bool animationEnabled;
  2820. /* readonly */
  2821. Array<Variant> attributeDefaults;
  2822. /* readonly */
  2823. Array<AttributeInfo> attributeInfos;
  2824. Array<Variant> attributes;
  2825. Vector2 axis;
  2826. /* readonly */
  2827. String category;
  2828. bool collideConnected;
  2829. bool enableLimit;
  2830. bool enableMotor;
  2831. bool enabled;
  2832. /* readonly */
  2833. bool enabledEffective;
  2834. /* readonly */
  2835. uint id;
  2836. float lowerTranslation;
  2837. float maxMotorForce;
  2838. float motorSpeed;
  2839. /* readonly */
  2840. Node node;
  2841. /* readonly */
  2842. uint numAttributes;
  2843. ObjectAnimation objectAnimation;
  2844. RigidBody2D otherBody;
  2845. /* readonly */
  2846. RigidBody2D ownerBody;
  2847. /* readonly */
  2848. int refs;
  2849. bool temporary;
  2850. /* readonly */
  2851. StringHash type;
  2852. /* readonly */
  2853. String typeName;
  2854. float upperTranslation;
  2855. /* readonly */
  2856. int weakRefs;
  2857. };
  2858. class ConstraintPulley2D
  2859. {
  2860. // Methods:
  2861. void ApplyAttributes();
  2862. void DrawDebugGeometry(DebugRenderer, bool);
  2863. Variant GetAttribute(const String&) const;
  2864. ValueAnimation GetAttributeAnimation(const String&) const;
  2865. float GetAttributeAnimationSpeed(const String&) const;
  2866. float GetAttributeAnimationTime(const String&) const;
  2867. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2868. Variant GetAttributeDefault(const String&) const;
  2869. bool GetInterceptNetworkUpdate(const String&) const;
  2870. bool HasSubscribedToEvent(Object, const String&);
  2871. bool HasSubscribedToEvent(const String&);
  2872. bool Load(File, bool = false);
  2873. bool Load(VectorBuffer&, bool = false);
  2874. bool LoadJSON(const JSONValue&, bool = false);
  2875. bool LoadXML(const XMLElement&, bool = false);
  2876. void MarkNetworkUpdate() const;
  2877. void Remove();
  2878. void RemoveAttributeAnimation(const String&);
  2879. void RemoveInstanceDefault();
  2880. void RemoveObjectAnimation();
  2881. void ResetToDefault();
  2882. bool Save(File) const;
  2883. bool Save(VectorBuffer&) const;
  2884. bool SaveJSON(JSONValue&) const;
  2885. bool SaveXML(XMLElement&) const;
  2886. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2887. void SetAnimationTime(float);
  2888. bool SetAttribute(const String&, const Variant&);
  2889. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2890. void SetAttributeAnimationSpeed(const String&, float);
  2891. void SetAttributeAnimationTime(const String&, float);
  2892. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2893. void SetInterceptNetworkUpdate(const String&, bool);
  2894. // Properties:
  2895. bool animationEnabled;
  2896. /* readonly */
  2897. Array<Variant> attributeDefaults;
  2898. /* readonly */
  2899. Array<AttributeInfo> attributeInfos;
  2900. Array<Variant> attributes;
  2901. /* readonly */
  2902. String category;
  2903. bool collideConnected;
  2904. bool enabled;
  2905. /* readonly */
  2906. bool enabledEffective;
  2907. /* readonly */
  2908. uint id;
  2909. /* readonly */
  2910. Node node;
  2911. /* readonly */
  2912. uint numAttributes;
  2913. ObjectAnimation objectAnimation;
  2914. RigidBody2D otherBody;
  2915. Vector2 otherBodyAnchor;
  2916. Vector2 otherBodyGroundAnchor;
  2917. /* readonly */
  2918. RigidBody2D ownerBody;
  2919. Vector2 ownerBodyAnchor;
  2920. Vector2 ownerBodyGroundAnchor;
  2921. float ratio;
  2922. /* readonly */
  2923. int refs;
  2924. bool temporary;
  2925. /* readonly */
  2926. StringHash type;
  2927. /* readonly */
  2928. String typeName;
  2929. /* readonly */
  2930. int weakRefs;
  2931. };
  2932. class ConstraintRevolute2D
  2933. {
  2934. // Methods:
  2935. void ApplyAttributes();
  2936. void DrawDebugGeometry(DebugRenderer, bool);
  2937. Variant GetAttribute(const String&) const;
  2938. ValueAnimation GetAttributeAnimation(const String&) const;
  2939. float GetAttributeAnimationSpeed(const String&) const;
  2940. float GetAttributeAnimationTime(const String&) const;
  2941. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2942. Variant GetAttributeDefault(const String&) const;
  2943. bool GetInterceptNetworkUpdate(const String&) const;
  2944. bool HasSubscribedToEvent(Object, const String&);
  2945. bool HasSubscribedToEvent(const String&);
  2946. bool Load(File, bool = false);
  2947. bool Load(VectorBuffer&, bool = false);
  2948. bool LoadJSON(const JSONValue&, bool = false);
  2949. bool LoadXML(const XMLElement&, bool = false);
  2950. void MarkNetworkUpdate() const;
  2951. void Remove();
  2952. void RemoveAttributeAnimation(const String&);
  2953. void RemoveInstanceDefault();
  2954. void RemoveObjectAnimation();
  2955. void ResetToDefault();
  2956. bool Save(File) const;
  2957. bool Save(VectorBuffer&) const;
  2958. bool SaveJSON(JSONValue&) const;
  2959. bool SaveXML(XMLElement&) const;
  2960. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2961. void SetAnimationTime(float);
  2962. bool SetAttribute(const String&, const Variant&);
  2963. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2964. void SetAttributeAnimationSpeed(const String&, float);
  2965. void SetAttributeAnimationTime(const String&, float);
  2966. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2967. void SetInterceptNetworkUpdate(const String&, bool);
  2968. // Properties:
  2969. Vector2 anchor;
  2970. bool animationEnabled;
  2971. /* readonly */
  2972. Array<Variant> attributeDefaults;
  2973. /* readonly */
  2974. Array<AttributeInfo> attributeInfos;
  2975. Array<Variant> attributes;
  2976. /* readonly */
  2977. String category;
  2978. bool collideConnected;
  2979. bool enableLimit;
  2980. bool enableMotor;
  2981. bool enabled;
  2982. /* readonly */
  2983. bool enabledEffective;
  2984. /* readonly */
  2985. uint id;
  2986. float lowerAngle;
  2987. float maxMotorTorque;
  2988. float motorSpeed;
  2989. /* readonly */
  2990. Node node;
  2991. /* readonly */
  2992. uint numAttributes;
  2993. ObjectAnimation objectAnimation;
  2994. RigidBody2D otherBody;
  2995. /* readonly */
  2996. RigidBody2D ownerBody;
  2997. /* readonly */
  2998. int refs;
  2999. bool temporary;
  3000. /* readonly */
  3001. StringHash type;
  3002. /* readonly */
  3003. String typeName;
  3004. float upperAngle;
  3005. /* readonly */
  3006. int weakRefs;
  3007. };
  3008. class ConstraintRope2D
  3009. {
  3010. // Methods:
  3011. void ApplyAttributes();
  3012. void DrawDebugGeometry(DebugRenderer, bool);
  3013. Variant GetAttribute(const String&) const;
  3014. ValueAnimation GetAttributeAnimation(const String&) const;
  3015. float GetAttributeAnimationSpeed(const String&) const;
  3016. float GetAttributeAnimationTime(const String&) const;
  3017. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3018. Variant GetAttributeDefault(const String&) const;
  3019. bool GetInterceptNetworkUpdate(const String&) const;
  3020. bool HasSubscribedToEvent(Object, const String&);
  3021. bool HasSubscribedToEvent(const String&);
  3022. bool Load(File, bool = false);
  3023. bool Load(VectorBuffer&, bool = false);
  3024. bool LoadJSON(const JSONValue&, bool = false);
  3025. bool LoadXML(const XMLElement&, bool = false);
  3026. void MarkNetworkUpdate() const;
  3027. void Remove();
  3028. void RemoveAttributeAnimation(const String&);
  3029. void RemoveInstanceDefault();
  3030. void RemoveObjectAnimation();
  3031. void ResetToDefault();
  3032. bool Save(File) const;
  3033. bool Save(VectorBuffer&) const;
  3034. bool SaveJSON(JSONValue&) const;
  3035. bool SaveXML(XMLElement&) const;
  3036. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3037. void SetAnimationTime(float);
  3038. bool SetAttribute(const String&, const Variant&);
  3039. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3040. void SetAttributeAnimationSpeed(const String&, float);
  3041. void SetAttributeAnimationTime(const String&, float);
  3042. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3043. void SetInterceptNetworkUpdate(const String&, bool);
  3044. // Properties:
  3045. bool animationEnabled;
  3046. /* readonly */
  3047. Array<Variant> attributeDefaults;
  3048. /* readonly */
  3049. Array<AttributeInfo> attributeInfos;
  3050. Array<Variant> attributes;
  3051. /* readonly */
  3052. String category;
  3053. bool collideConnected;
  3054. bool enabled;
  3055. /* readonly */
  3056. bool enabledEffective;
  3057. /* readonly */
  3058. uint id;
  3059. float maxLength;
  3060. /* readonly */
  3061. Node node;
  3062. /* readonly */
  3063. uint numAttributes;
  3064. ObjectAnimation objectAnimation;
  3065. RigidBody2D otherBody;
  3066. Vector2 otherBodyAnchor;
  3067. /* readonly */
  3068. RigidBody2D ownerBody;
  3069. Vector2 ownerBodyAnchor;
  3070. /* readonly */
  3071. int refs;
  3072. bool temporary;
  3073. /* readonly */
  3074. StringHash type;
  3075. /* readonly */
  3076. String typeName;
  3077. /* readonly */
  3078. int weakRefs;
  3079. };
  3080. class ConstraintWeld2D
  3081. {
  3082. // Methods:
  3083. void ApplyAttributes();
  3084. void DrawDebugGeometry(DebugRenderer, bool);
  3085. Variant GetAttribute(const String&) const;
  3086. ValueAnimation GetAttributeAnimation(const String&) const;
  3087. float GetAttributeAnimationSpeed(const String&) const;
  3088. float GetAttributeAnimationTime(const String&) const;
  3089. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3090. Variant GetAttributeDefault(const String&) const;
  3091. bool GetInterceptNetworkUpdate(const String&) const;
  3092. bool HasSubscribedToEvent(Object, const String&);
  3093. bool HasSubscribedToEvent(const String&);
  3094. bool Load(File, bool = false);
  3095. bool Load(VectorBuffer&, bool = false);
  3096. bool LoadJSON(const JSONValue&, bool = false);
  3097. bool LoadXML(const XMLElement&, bool = false);
  3098. void MarkNetworkUpdate() const;
  3099. void Remove();
  3100. void RemoveAttributeAnimation(const String&);
  3101. void RemoveInstanceDefault();
  3102. void RemoveObjectAnimation();
  3103. void ResetToDefault();
  3104. bool Save(File) const;
  3105. bool Save(VectorBuffer&) const;
  3106. bool SaveJSON(JSONValue&) const;
  3107. bool SaveXML(XMLElement&) const;
  3108. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3109. void SetAnimationTime(float);
  3110. bool SetAttribute(const String&, const Variant&);
  3111. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3112. void SetAttributeAnimationSpeed(const String&, float);
  3113. void SetAttributeAnimationTime(const String&, float);
  3114. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3115. void SetInterceptNetworkUpdate(const String&, bool);
  3116. // Properties:
  3117. Vector2 anchor;
  3118. bool animationEnabled;
  3119. /* readonly */
  3120. Array<Variant> attributeDefaults;
  3121. /* readonly */
  3122. Array<AttributeInfo> attributeInfos;
  3123. Array<Variant> attributes;
  3124. /* readonly */
  3125. String category;
  3126. bool collideConnected;
  3127. float dampingRatio;
  3128. bool enabled;
  3129. /* readonly */
  3130. bool enabledEffective;
  3131. float frequencyHz;
  3132. /* readonly */
  3133. uint id;
  3134. /* readonly */
  3135. Node node;
  3136. /* readonly */
  3137. uint numAttributes;
  3138. ObjectAnimation objectAnimation;
  3139. RigidBody2D otherBody;
  3140. /* readonly */
  3141. RigidBody2D ownerBody;
  3142. /* readonly */
  3143. int refs;
  3144. bool temporary;
  3145. /* readonly */
  3146. StringHash type;
  3147. /* readonly */
  3148. String typeName;
  3149. /* readonly */
  3150. int weakRefs;
  3151. };
  3152. class ConstraintWheel2D
  3153. {
  3154. // Methods:
  3155. void ApplyAttributes();
  3156. void DrawDebugGeometry(DebugRenderer, bool);
  3157. Variant GetAttribute(const String&) const;
  3158. ValueAnimation GetAttributeAnimation(const String&) const;
  3159. float GetAttributeAnimationSpeed(const String&) const;
  3160. float GetAttributeAnimationTime(const String&) const;
  3161. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3162. Variant GetAttributeDefault(const String&) const;
  3163. bool GetInterceptNetworkUpdate(const String&) const;
  3164. bool HasSubscribedToEvent(Object, const String&);
  3165. bool HasSubscribedToEvent(const String&);
  3166. bool Load(File, bool = false);
  3167. bool Load(VectorBuffer&, bool = false);
  3168. bool LoadJSON(const JSONValue&, bool = false);
  3169. bool LoadXML(const XMLElement&, bool = false);
  3170. void MarkNetworkUpdate() const;
  3171. void Remove();
  3172. void RemoveAttributeAnimation(const String&);
  3173. void RemoveInstanceDefault();
  3174. void RemoveObjectAnimation();
  3175. void ResetToDefault();
  3176. bool Save(File) const;
  3177. bool Save(VectorBuffer&) const;
  3178. bool SaveJSON(JSONValue&) const;
  3179. bool SaveXML(XMLElement&) const;
  3180. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3181. void SetAnimationTime(float);
  3182. bool SetAttribute(const String&, const Variant&);
  3183. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3184. void SetAttributeAnimationSpeed(const String&, float);
  3185. void SetAttributeAnimationTime(const String&, float);
  3186. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3187. void SetInterceptNetworkUpdate(const String&, bool);
  3188. // Properties:
  3189. Vector2 anchor;
  3190. bool animationEnabled;
  3191. /* readonly */
  3192. Array<Variant> attributeDefaults;
  3193. /* readonly */
  3194. Array<AttributeInfo> attributeInfos;
  3195. Array<Variant> attributes;
  3196. Vector2 axis;
  3197. /* readonly */
  3198. String category;
  3199. bool collideConnected;
  3200. float dampingRatio;
  3201. bool enableMotor;
  3202. bool enabled;
  3203. /* readonly */
  3204. bool enabledEffective;
  3205. float frequencyHz;
  3206. /* readonly */
  3207. uint id;
  3208. float maxMotorTorque;
  3209. float motorSpeed;
  3210. /* readonly */
  3211. Node node;
  3212. /* readonly */
  3213. uint numAttributes;
  3214. ObjectAnimation objectAnimation;
  3215. RigidBody2D otherBody;
  3216. /* readonly */
  3217. RigidBody2D ownerBody;
  3218. /* readonly */
  3219. int refs;
  3220. bool temporary;
  3221. /* readonly */
  3222. StringHash type;
  3223. /* readonly */
  3224. String typeName;
  3225. /* readonly */
  3226. int weakRefs;
  3227. };
  3228. class Controls
  3229. {
  3230. // Methods:
  3231. bool IsDown(uint) const;
  3232. bool IsPressed(uint, const Controls&) const;
  3233. void Reset();
  3234. void Set(uint, bool);
  3235. // Properties:
  3236. uint buttons;
  3237. VariantMap extraData;
  3238. float pitch;
  3239. float yaw;
  3240. };
  3241. class CrowdAgent
  3242. {
  3243. // Methods:
  3244. void ApplyAttributes();
  3245. void DrawDebugGeometry(DebugRenderer, bool);
  3246. void DrawDebugGeometry(bool);
  3247. Variant GetAttribute(const String&) const;
  3248. ValueAnimation GetAttributeAnimation(const String&) const;
  3249. float GetAttributeAnimationSpeed(const String&) const;
  3250. float GetAttributeAnimationTime(const String&) const;
  3251. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3252. Variant GetAttributeDefault(const String&) const;
  3253. bool GetInterceptNetworkUpdate(const String&) const;
  3254. bool HasSubscribedToEvent(Object, const String&);
  3255. bool HasSubscribedToEvent(const String&);
  3256. bool Load(File, bool = false);
  3257. bool Load(VectorBuffer&, bool = false);
  3258. bool LoadJSON(const JSONValue&, bool = false);
  3259. bool LoadXML(const XMLElement&, bool = false);
  3260. void MarkNetworkUpdate() const;
  3261. void Remove();
  3262. void RemoveAttributeAnimation(const String&);
  3263. void RemoveInstanceDefault();
  3264. void RemoveObjectAnimation();
  3265. void ResetTarget();
  3266. void ResetToDefault();
  3267. bool Save(File) const;
  3268. bool Save(VectorBuffer&) const;
  3269. bool SaveJSON(JSONValue&) const;
  3270. bool SaveXML(XMLElement&) const;
  3271. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3272. void SetAnimationTime(float);
  3273. bool SetAttribute(const String&, const Variant&);
  3274. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3275. void SetAttributeAnimationSpeed(const String&, float);
  3276. void SetAttributeAnimationTime(const String&, float);
  3277. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3278. void SetInterceptNetworkUpdate(const String&, bool);
  3279. // Properties:
  3280. /* readonly */
  3281. Vector3 actualVelocity;
  3282. /* readonly */
  3283. CrowdAgentState agentState;
  3284. bool animationEnabled;
  3285. /* readonly */
  3286. bool arrived;
  3287. /* readonly */
  3288. Array<Variant> attributeDefaults;
  3289. /* readonly */
  3290. Array<AttributeInfo> attributeInfos;
  3291. Array<Variant> attributes;
  3292. /* readonly */
  3293. String category;
  3294. /* readonly */
  3295. Vector3 desiredVelocity;
  3296. bool enabled;
  3297. /* readonly */
  3298. bool enabledEffective;
  3299. float height;
  3300. /* readonly */
  3301. uint id;
  3302. /* readonly */
  3303. bool inCrowd;
  3304. float maxAccel;
  3305. float maxSpeed;
  3306. NavigationPushiness navigationPushiness;
  3307. NavigationQuality navigationQuality;
  3308. /* readonly */
  3309. Node node;
  3310. /* readonly */
  3311. uint numAttributes;
  3312. ObjectAnimation objectAnimation;
  3313. uint obstacleAvoidanceType;
  3314. /* readonly */
  3315. Vector3 position;
  3316. uint queryFilterType;
  3317. float radius;
  3318. /* readonly */
  3319. int refs;
  3320. /* readonly */
  3321. bool requestedTarget;
  3322. /* readonly */
  3323. CrowdAgentRequestedTarget requestedTargetType;
  3324. Vector3 targetPosition;
  3325. /* readonly */
  3326. CrowdAgentTargetState targetState;
  3327. Vector3 targetVelocity;
  3328. bool temporary;
  3329. /* readonly */
  3330. StringHash type;
  3331. /* readonly */
  3332. String typeName;
  3333. bool updateNodePosition;
  3334. /* readonly */
  3335. int weakRefs;
  3336. };
  3337. class CrowdManager
  3338. {
  3339. // Methods:
  3340. void ApplyAttributes();
  3341. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3342. void DrawDebugGeometry(DebugRenderer, bool);
  3343. void DrawDebugGeometry(bool);
  3344. Vector3 FindNearestPoint(const Vector3&, int);
  3345. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3346. float GetAreaCost(uint, uint);
  3347. Variant GetAttribute(const String&) const;
  3348. ValueAnimation GetAttributeAnimation(const String&) const;
  3349. float GetAttributeAnimationSpeed(const String&) const;
  3350. float GetAttributeAnimationTime(const String&) const;
  3351. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3352. Variant GetAttributeDefault(const String&) const;
  3353. float GetDistanceToWall(const Vector3&, float, int);
  3354. uint16 GetExcludeFlags(uint);
  3355. uint16 GetIncludeFlags(uint);
  3356. bool GetInterceptNetworkUpdate(const String&) const;
  3357. Vector3 GetRandomPoint(int);
  3358. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3359. bool HasSubscribedToEvent(Object, const String&);
  3360. bool HasSubscribedToEvent(const String&);
  3361. bool Load(File, bool = false);
  3362. bool Load(VectorBuffer&, bool = false);
  3363. bool LoadJSON(const JSONValue&, bool = false);
  3364. bool LoadXML(const XMLElement&, bool = false);
  3365. void MarkNetworkUpdate() const;
  3366. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3367. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3368. void Remove();
  3369. void RemoveAttributeAnimation(const String&);
  3370. void RemoveInstanceDefault();
  3371. void RemoveObjectAnimation();
  3372. void ResetCrowdTarget(Node = null);
  3373. void ResetToDefault();
  3374. bool Save(File) const;
  3375. bool Save(VectorBuffer&) const;
  3376. bool SaveJSON(JSONValue&) const;
  3377. bool SaveXML(XMLElement&) const;
  3378. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3379. void SetAnimationTime(float);
  3380. void SetAreaCost(uint, uint, float);
  3381. bool SetAttribute(const String&, const Variant&);
  3382. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3383. void SetAttributeAnimationSpeed(const String&, float);
  3384. void SetAttributeAnimationTime(const String&, float);
  3385. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3386. void SetCrowdTarget(const Vector3&, Node = null);
  3387. void SetCrowdVelocity(const Vector3&, Node = null);
  3388. void SetExcludeFlags(uint, uint16);
  3389. void SetIncludeFlags(uint, uint16);
  3390. void SetInterceptNetworkUpdate(const String&, bool);
  3391. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3392. // Properties:
  3393. bool animationEnabled;
  3394. /* readonly */
  3395. Array<Variant> attributeDefaults;
  3396. /* readonly */
  3397. Array<AttributeInfo> attributeInfos;
  3398. Array<Variant> attributes;
  3399. /* readonly */
  3400. String category;
  3401. bool enabled;
  3402. /* readonly */
  3403. bool enabledEffective;
  3404. /* readonly */
  3405. uint id;
  3406. float maxAgentRadius;
  3407. int maxAgents;
  3408. NavigationMesh navMesh;
  3409. /* readonly */
  3410. Node node;
  3411. /* readonly */
  3412. Array<uint> numAreas;
  3413. /* readonly */
  3414. uint numAttributes;
  3415. /* readonly */
  3416. uint numObstacleAvoidanceTypes;
  3417. /* readonly */
  3418. uint numQueryFilterTypes;
  3419. ObjectAnimation objectAnimation;
  3420. /* readonly */
  3421. int refs;
  3422. bool temporary;
  3423. /* readonly */
  3424. StringHash type;
  3425. /* readonly */
  3426. String typeName;
  3427. /* readonly */
  3428. int weakRefs;
  3429. };
  3430. class CrowdObstacleAvoidanceParams
  3431. {
  3432. // Properties:
  3433. uint8 adaptiveDepth;
  3434. uint8 adaptiveDivs;
  3435. uint8 adaptiveRings;
  3436. uint8 gridSize;
  3437. float horizTime;
  3438. float velBias;
  3439. float weightCurVel;
  3440. float weightDesVel;
  3441. float weightSide;
  3442. float weightToi;
  3443. };
  3444. class Cursor
  3445. {
  3446. // Methods:
  3447. void AddChild(UIElement);
  3448. void AddTag(const String&);
  3449. void AddTags(const String&, int8 = ';');
  3450. void ApplyAttributes();
  3451. void BringToFront();
  3452. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3453. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3454. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3455. void DisableLayoutUpdate();
  3456. IntVector2 ElementToScreen(const IntVector2&);
  3457. void EnableLayoutUpdate();
  3458. uint FindChild(UIElement) const;
  3459. Variant GetAttribute(const String&) const;
  3460. ValueAnimation GetAttributeAnimation(const String&) const;
  3461. float GetAttributeAnimationSpeed(const String&) const;
  3462. float GetAttributeAnimationTime(const String&) const;
  3463. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3464. Variant GetAttributeDefault(const String&) const;
  3465. UIElement GetChild(const String&, bool = false) const;
  3466. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3467. Array<UIElement> GetChildren(bool = false) const;
  3468. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3469. UIElement GetElementEventSender() const;
  3470. bool GetInterceptNetworkUpdate(const String&) const;
  3471. uint GetNumChildren(bool) const;
  3472. bool HasSubscribedToEvent(Object, const String&);
  3473. bool HasSubscribedToEvent(const String&);
  3474. bool HasTag(const String&) const;
  3475. void InsertChild(uint, UIElement);
  3476. bool IsInside(IntVector2, bool);
  3477. bool IsInsideCombined(IntVector2, bool);
  3478. bool Load(File, bool = false);
  3479. bool Load(VectorBuffer&, bool = false);
  3480. bool LoadChildXML(XMLFile, XMLFile = null);
  3481. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3482. bool LoadJSON(const JSONValue&, bool = false);
  3483. bool LoadXML(File);
  3484. bool LoadXML(VectorBuffer&);
  3485. bool LoadXML(XMLFile, XMLFile);
  3486. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3487. bool LoadXML(const XMLElement&, bool = false);
  3488. void MarkNetworkUpdate() const;
  3489. void Remove();
  3490. void RemoveAllChildren();
  3491. void RemoveAllTags();
  3492. void RemoveAttributeAnimation(const String&);
  3493. void RemoveChild(UIElement, uint = 0);
  3494. void RemoveChild(uint);
  3495. void RemoveInstanceDefault();
  3496. void RemoveObjectAnimation();
  3497. bool RemoveTag(const String&);
  3498. void ResetDeepEnabled();
  3499. void ResetToDefault();
  3500. bool Save(File) const;
  3501. bool Save(VectorBuffer&) const;
  3502. bool SaveJSON(JSONValue&) const;
  3503. bool SaveXML(File, const String& = "\t");
  3504. bool SaveXML(VectorBuffer&, const String& = "\t");
  3505. bool SaveXML(XMLElement&) const;
  3506. IntVector2 ScreenToElement(const IntVector2&);
  3507. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3508. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3509. void SetAnimationTime(float);
  3510. bool SetAttribute(const String&, const Variant&);
  3511. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3512. void SetAttributeAnimationSpeed(const String&, float);
  3513. void SetAttributeAnimationTime(const String&, float);
  3514. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3515. void SetDeepEnabled(bool);
  3516. void SetEnabledRecursive(bool);
  3517. void SetFixedHeight(int);
  3518. void SetFixedSize(int, int);
  3519. void SetFixedWidth(int);
  3520. void SetFullImageRect();
  3521. void SetHoverOffset(int, int);
  3522. void SetInterceptNetworkUpdate(const String&, bool);
  3523. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3524. void SetMaxSize(int, int);
  3525. void SetMinSize(int, int);
  3526. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3527. void SetPosition(int, int);
  3528. void SetShape(CursorShape);
  3529. void SetShape(const String&);
  3530. void SetSize(int, int);
  3531. bool SetStyle(const String&, XMLFile = null);
  3532. bool SetStyle(const XMLElement&);
  3533. bool SetStyleAuto(XMLFile = null);
  3534. void UpdateLayout();
  3535. const Variant& GetVar(const StringHash&);
  3536. // Properties:
  3537. bool animationEnabled;
  3538. /* readonly */
  3539. Array<Variant> attributeDefaults;
  3540. /* readonly */
  3541. Array<AttributeInfo> attributeInfos;
  3542. Array<Variant> attributes;
  3543. BlendMode blendMode;
  3544. IntRect border;
  3545. bool bringToBack;
  3546. bool bringToFront;
  3547. /* readonly */
  3548. String category;
  3549. /* readonly */
  3550. IntVector2 childOffset;
  3551. /* readonly */
  3552. Array<UIElement> children;
  3553. IntRect clipBorder;
  3554. bool clipChildren;
  3555. /* writeonly */
  3556. Color color;
  3557. /* readonly */
  3558. bool colorGradient;
  3559. Array<Color> colors;
  3560. /* readonly */
  3561. IntRect combinedScreenRect;
  3562. XMLFile defaultStyle;
  3563. /* readonly */
  3564. float derivedOpacity;
  3565. /* readonly */
  3566. uint dragButtonCombo;
  3567. /* readonly */
  3568. int dragButtonCount;
  3569. uint dragDropMode;
  3570. bool editable;
  3571. bool elementEventSender;
  3572. bool enabled;
  3573. /* readonly */
  3574. bool enabledSelf;
  3575. /* readonly */
  3576. bool fixedHeight;
  3577. /* readonly */
  3578. bool fixedSize;
  3579. /* readonly */
  3580. bool fixedWidth;
  3581. bool focus;
  3582. FocusMode focusMode;
  3583. int height;
  3584. HorizontalAlignment horizontalAlignment;
  3585. IntVector2 hoverOffset;
  3586. /* readonly */
  3587. bool hovering;
  3588. IntRect imageBorder;
  3589. IntRect imageRect;
  3590. int indent;
  3591. int indentSpacing;
  3592. /* readonly */
  3593. int indentWidth;
  3594. bool internal;
  3595. IntRect layoutBorder;
  3596. Vector2 layoutFlexScale;
  3597. LayoutMode layoutMode;
  3598. int layoutSpacing;
  3599. int maxHeight;
  3600. IntVector2 maxSize;
  3601. int maxWidth;
  3602. int minHeight;
  3603. IntVector2 minSize;
  3604. int minWidth;
  3605. String name;
  3606. /* readonly */
  3607. uint numAllChildren;
  3608. /* readonly */
  3609. uint numAttributes;
  3610. /* readonly */
  3611. uint numChildren;
  3612. ObjectAnimation objectAnimation;
  3613. float opacity;
  3614. UIElement parent;
  3615. IntVector2 position;
  3616. int priority;
  3617. /* readonly */
  3618. int refs;
  3619. /* readonly */
  3620. UIElement root;
  3621. /* readonly */
  3622. IntVector2 screenPosition;
  3623. bool selected;
  3624. String shape;
  3625. IntVector2 size;
  3626. bool sortChildren;
  3627. String style;
  3628. /* readonly */
  3629. Array<String> tags;
  3630. bool temporary;
  3631. Texture texture;
  3632. bool tiled;
  3633. TraversalMode traversalMode;
  3634. /* readonly */
  3635. StringHash type;
  3636. /* readonly */
  3637. String typeName;
  3638. bool useDerivedOpacity;
  3639. bool useSystemShapes;
  3640. /* readonly */
  3641. VariantMap vars;
  3642. VerticalAlignment verticalAlignment;
  3643. bool visible;
  3644. /* readonly */
  3645. bool visibleEffective;
  3646. /* readonly */
  3647. int weakRefs;
  3648. int width;
  3649. };
  3650. class CustomGeometry
  3651. {
  3652. // Methods:
  3653. void ApplyAttributes();
  3654. void BeginGeometry(uint, PrimitiveType);
  3655. void Clear();
  3656. void Commit();
  3657. void DefineColor(const Color&);
  3658. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3659. void DefineNormal(const Vector3&);
  3660. void DefineTangent(const Vector4&);
  3661. void DefineTexCoord(const Vector2&);
  3662. void DefineVertex(const Vector3&);
  3663. void DrawDebugGeometry(DebugRenderer, bool);
  3664. Variant GetAttribute(const String&) const;
  3665. ValueAnimation GetAttributeAnimation(const String&) const;
  3666. float GetAttributeAnimationSpeed(const String&) const;
  3667. float GetAttributeAnimationTime(const String&) const;
  3668. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3669. Variant GetAttributeDefault(const String&) const;
  3670. bool GetInterceptNetworkUpdate(const String&) const;
  3671. CustomGeometryVertex GetVertex(uint, uint);
  3672. bool HasSubscribedToEvent(Object, const String&);
  3673. bool HasSubscribedToEvent(const String&);
  3674. bool IsInView(Camera) const;
  3675. bool Load(File, bool = false);
  3676. bool Load(VectorBuffer&, bool = false);
  3677. bool LoadJSON(const JSONValue&, bool = false);
  3678. bool LoadXML(const XMLElement&, bool = false);
  3679. void MarkNetworkUpdate() const;
  3680. void Remove();
  3681. void RemoveAttributeAnimation(const String&);
  3682. void RemoveInstanceDefault();
  3683. void RemoveObjectAnimation();
  3684. void ResetToDefault();
  3685. bool Save(File) const;
  3686. bool Save(VectorBuffer&) const;
  3687. bool SaveJSON(JSONValue&) const;
  3688. bool SaveXML(XMLElement&) const;
  3689. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3690. void SetAnimationTime(float);
  3691. bool SetAttribute(const String&, const Variant&);
  3692. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3693. void SetAttributeAnimationSpeed(const String&, float);
  3694. void SetAttributeAnimationTime(const String&, float);
  3695. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3696. void SetInterceptNetworkUpdate(const String&, bool);
  3697. // Properties:
  3698. bool animationEnabled;
  3699. /* readonly */
  3700. Array<Variant> attributeDefaults;
  3701. /* readonly */
  3702. Array<AttributeInfo> attributeInfos;
  3703. Array<Variant> attributes;
  3704. /* readonly */
  3705. BoundingBox boundingBox;
  3706. bool castShadows;
  3707. /* readonly */
  3708. String category;
  3709. float drawDistance;
  3710. bool dynamic;
  3711. bool enabled;
  3712. /* readonly */
  3713. bool enabledEffective;
  3714. /* readonly */
  3715. uint id;
  3716. /* readonly */
  3717. bool inView;
  3718. uint lightMask;
  3719. float lodBias;
  3720. /* writeonly */
  3721. Material material;
  3722. Array<Material> materials;
  3723. uint maxLights;
  3724. /* readonly */
  3725. Node node;
  3726. /* readonly */
  3727. uint numAttributes;
  3728. uint numGeometries;
  3729. /* readonly */
  3730. Array<uint> numVertices;
  3731. ObjectAnimation objectAnimation;
  3732. bool occludee;
  3733. bool occluder;
  3734. /* readonly */
  3735. int refs;
  3736. float shadowDistance;
  3737. uint shadowMask;
  3738. bool temporary;
  3739. /* readonly */
  3740. StringHash type;
  3741. /* readonly */
  3742. String typeName;
  3743. uint viewMask;
  3744. /* readonly */
  3745. int weakRefs;
  3746. /* readonly */
  3747. BoundingBox worldBoundingBox;
  3748. /* readonly */
  3749. Zone zone;
  3750. uint zoneMask;
  3751. };
  3752. class CustomGeometryVertex
  3753. {
  3754. // Properties:
  3755. uint color;
  3756. Vector3 normal;
  3757. Vector3 position;
  3758. Vector4 tangent;
  3759. Vector2 texCoord;
  3760. };
  3761. class Database
  3762. {
  3763. // Methods:
  3764. DbConnection Connect(const String&);
  3765. void Disconnect(DbConnection);
  3766. bool HasSubscribedToEvent(Object, const String&);
  3767. bool HasSubscribedToEvent(const String&);
  3768. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3769. // Properties:
  3770. /* readonly */
  3771. String category;
  3772. uint poolSize;
  3773. /* readonly */
  3774. bool pooling;
  3775. /* readonly */
  3776. int refs;
  3777. /* readonly */
  3778. StringHash type;
  3779. /* readonly */
  3780. String typeName;
  3781. /* readonly */
  3782. int weakRefs;
  3783. };
  3784. class DbConnection
  3785. {
  3786. // Methods:
  3787. DbResult Execute(const String&, bool = false);
  3788. bool HasSubscribedToEvent(Object, const String&);
  3789. bool HasSubscribedToEvent(const String&);
  3790. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3791. // Properties:
  3792. /* readonly */
  3793. String category;
  3794. /* readonly */
  3795. bool connected;
  3796. /* readonly */
  3797. String connectionString;
  3798. /* readonly */
  3799. int refs;
  3800. /* readonly */
  3801. StringHash type;
  3802. /* readonly */
  3803. String typeName;
  3804. /* readonly */
  3805. int weakRefs;
  3806. };
  3807. class DbResult
  3808. {
  3809. // Properties:
  3810. /* readonly */
  3811. Array<String> columns;
  3812. /* readonly */
  3813. int64 numAffectedRows;
  3814. /* readonly */
  3815. uint numColumns;
  3816. /* readonly */
  3817. uint numRows;
  3818. /* readonly */
  3819. Array<Array<Variant>> row;
  3820. };
  3821. class DebugHud
  3822. {
  3823. // Methods:
  3824. void ClearAppStats();
  3825. bool HasSubscribedToEvent(Object, const String&);
  3826. bool HasSubscribedToEvent(const String&);
  3827. void ResetAppStats(const String&);
  3828. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3829. void SetAppStats(const String&, const String&);
  3830. void SetAppStats(const String&, const Variant&);
  3831. void Toggle(uint);
  3832. void ToggleAll();
  3833. void Update();
  3834. // Properties:
  3835. /* readonly */
  3836. String category;
  3837. XMLFile defaultStyle;
  3838. /* readonly */
  3839. Text memoryText;
  3840. uint mode;
  3841. /* readonly */
  3842. Text modeText;
  3843. float profilerInterval;
  3844. uint profilerMaxDepth;
  3845. /* readonly */
  3846. Text profilerText;
  3847. /* readonly */
  3848. int refs;
  3849. /* readonly */
  3850. Text statsText;
  3851. /* readonly */
  3852. StringHash type;
  3853. /* readonly */
  3854. String typeName;
  3855. bool useRendererStats;
  3856. /* readonly */
  3857. int weakRefs;
  3858. };
  3859. class DebugRenderer
  3860. {
  3861. // Methods:
  3862. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3863. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3864. void AddCross(const Vector3&, float, const Color&, bool = true);
  3865. void AddFrustum(const Frustum&, const Color&, bool = true);
  3866. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3867. void AddNode(Node, float = 1.0, bool = true);
  3868. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3869. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3870. void AddSkeleton(Skeleton, const Color&, bool = true);
  3871. void AddSphere(const Sphere&, const Color&, bool = true);
  3872. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3873. void ApplyAttributes();
  3874. void DrawDebugGeometry(DebugRenderer, bool);
  3875. Variant GetAttribute(const String&) const;
  3876. ValueAnimation GetAttributeAnimation(const String&) const;
  3877. float GetAttributeAnimationSpeed(const String&) const;
  3878. float GetAttributeAnimationTime(const String&) const;
  3879. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3880. Variant GetAttributeDefault(const String&) const;
  3881. bool GetInterceptNetworkUpdate(const String&) const;
  3882. bool HasSubscribedToEvent(Object, const String&);
  3883. bool HasSubscribedToEvent(const String&);
  3884. bool Load(File, bool = false);
  3885. bool Load(VectorBuffer&, bool = false);
  3886. bool LoadJSON(const JSONValue&, bool = false);
  3887. bool LoadXML(const XMLElement&, bool = false);
  3888. void MarkNetworkUpdate() const;
  3889. void Remove();
  3890. void RemoveAttributeAnimation(const String&);
  3891. void RemoveInstanceDefault();
  3892. void RemoveObjectAnimation();
  3893. void ResetToDefault();
  3894. bool Save(File) const;
  3895. bool Save(VectorBuffer&) const;
  3896. bool SaveJSON(JSONValue&) const;
  3897. bool SaveXML(XMLElement&) const;
  3898. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3899. void SetAnimationTime(float);
  3900. bool SetAttribute(const String&, const Variant&);
  3901. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3902. void SetAttributeAnimationSpeed(const String&, float);
  3903. void SetAttributeAnimationTime(const String&, float);
  3904. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3905. void SetInterceptNetworkUpdate(const String&, bool);
  3906. // Properties:
  3907. bool animationEnabled;
  3908. /* readonly */
  3909. Array<Variant> attributeDefaults;
  3910. /* readonly */
  3911. Array<AttributeInfo> attributeInfos;
  3912. Array<Variant> attributes;
  3913. /* readonly */
  3914. String category;
  3915. bool enabled;
  3916. /* readonly */
  3917. bool enabledEffective;
  3918. /* readonly */
  3919. uint id;
  3920. /* readonly */
  3921. Node node;
  3922. /* readonly */
  3923. uint numAttributes;
  3924. ObjectAnimation objectAnimation;
  3925. /* readonly */
  3926. int refs;
  3927. bool temporary;
  3928. /* readonly */
  3929. StringHash type;
  3930. /* readonly */
  3931. String typeName;
  3932. /* readonly */
  3933. int weakRefs;
  3934. };
  3935. class DecalSet
  3936. {
  3937. // Methods:
  3938. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3939. void ApplyAttributes();
  3940. void DrawDebugGeometry(DebugRenderer, bool);
  3941. Variant GetAttribute(const String&) const;
  3942. ValueAnimation GetAttributeAnimation(const String&) const;
  3943. float GetAttributeAnimationSpeed(const String&) const;
  3944. float GetAttributeAnimationTime(const String&) const;
  3945. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3946. Variant GetAttributeDefault(const String&) const;
  3947. bool GetInterceptNetworkUpdate(const String&) const;
  3948. bool HasSubscribedToEvent(Object, const String&);
  3949. bool HasSubscribedToEvent(const String&);
  3950. bool IsInView(Camera) const;
  3951. bool Load(File, bool = false);
  3952. bool Load(VectorBuffer&, bool = false);
  3953. bool LoadJSON(const JSONValue&, bool = false);
  3954. bool LoadXML(const XMLElement&, bool = false);
  3955. void MarkNetworkUpdate() const;
  3956. void Remove();
  3957. void RemoveAllDecals();
  3958. void RemoveAttributeAnimation(const String&);
  3959. void RemoveDecals(uint);
  3960. void RemoveInstanceDefault();
  3961. void RemoveObjectAnimation();
  3962. void ResetToDefault();
  3963. bool Save(File) const;
  3964. bool Save(VectorBuffer&) const;
  3965. bool SaveJSON(JSONValue&) const;
  3966. bool SaveXML(XMLElement&) const;
  3967. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3968. void SetAnimationTime(float);
  3969. bool SetAttribute(const String&, const Variant&);
  3970. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3971. void SetAttributeAnimationSpeed(const String&, float);
  3972. void SetAttributeAnimationTime(const String&, float);
  3973. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3974. void SetInterceptNetworkUpdate(const String&, bool);
  3975. // Properties:
  3976. bool animationEnabled;
  3977. /* readonly */
  3978. Array<Variant> attributeDefaults;
  3979. /* readonly */
  3980. Array<AttributeInfo> attributeInfos;
  3981. Array<Variant> attributes;
  3982. /* readonly */
  3983. BoundingBox boundingBox;
  3984. bool castShadows;
  3985. /* readonly */
  3986. String category;
  3987. float drawDistance;
  3988. bool enabled;
  3989. /* readonly */
  3990. bool enabledEffective;
  3991. /* readonly */
  3992. uint id;
  3993. /* readonly */
  3994. bool inView;
  3995. uint lightMask;
  3996. float lodBias;
  3997. Material material;
  3998. uint maxIndices;
  3999. uint maxLights;
  4000. uint maxVertices;
  4001. /* readonly */
  4002. Node node;
  4003. /* readonly */
  4004. uint numAttributes;
  4005. /* readonly */
  4006. uint numDecals;
  4007. /* readonly */
  4008. uint numIndices;
  4009. /* readonly */
  4010. uint numVertices;
  4011. ObjectAnimation objectAnimation;
  4012. bool occludee;
  4013. bool occluder;
  4014. /* readonly */
  4015. int refs;
  4016. float shadowDistance;
  4017. uint shadowMask;
  4018. bool temporary;
  4019. /* readonly */
  4020. StringHash type;
  4021. /* readonly */
  4022. String typeName;
  4023. uint viewMask;
  4024. /* readonly */
  4025. int weakRefs;
  4026. /* readonly */
  4027. BoundingBox worldBoundingBox;
  4028. /* readonly */
  4029. Zone zone;
  4030. uint zoneMask;
  4031. };
  4032. class Deserializer
  4033. {
  4034. // Methods:
  4035. Array<uint8> Read(uint);
  4036. bool ReadBool();
  4037. BoundingBox ReadBoundingBox();
  4038. int8 ReadByte();
  4039. Color ReadColor();
  4040. double ReadDouble();
  4041. String ReadFileID();
  4042. float ReadFloat();
  4043. int ReadInt();
  4044. IntRect ReadIntRect();
  4045. IntVector2 ReadIntVector2();
  4046. String ReadLine();
  4047. Matrix3 ReadMatrix3();
  4048. Matrix3x4 ReadMatrix3x4();
  4049. Matrix4 ReadMatrix4();
  4050. uint ReadNetID();
  4051. Quaternion ReadPackedQuaternion();
  4052. Vector3 ReadPackedVector3(float);
  4053. Quaternion ReadQuaternion();
  4054. int16 ReadShort();
  4055. String ReadString();
  4056. StringHash ReadStringHash();
  4057. uint8 ReadUByte();
  4058. uint ReadUInt();
  4059. uint16 ReadUShort();
  4060. uint ReadVLE();
  4061. Variant ReadVariant();
  4062. VariantMap ReadVariantMap();
  4063. Vector2 ReadVector2();
  4064. Vector3 ReadVector3();
  4065. Vector4 ReadVector4();
  4066. VectorBuffer ReadVectorBuffer(uint);
  4067. uint Seek(uint);
  4068. // Properties:
  4069. /* readonly */
  4070. uint checksum;
  4071. /* readonly */
  4072. bool eof;
  4073. /* readonly */
  4074. String name;
  4075. /* readonly */
  4076. uint position;
  4077. /* readonly */
  4078. uint size;
  4079. };
  4080. class Dictionary
  4081. {
  4082. // Methods:
  4083. void Clear();
  4084. void Erase(const String&);
  4085. bool Exists(const String&) const;
  4086. bool Get(const String&, void*) const;
  4087. bool Get(const String&, double&) const;
  4088. bool Get(const String&, int64&) const;
  4089. void Set(const String&, const void*);
  4090. void Set(const String&, const double&);
  4091. void Set(const String&, const int64&);
  4092. // Properties:
  4093. /* readonly */
  4094. bool empty;
  4095. /* readonly */
  4096. Array<String> keys;
  4097. /* readonly */
  4098. uint length;
  4099. };
  4100. class DictionaryValue
  4101. {
  4102. };
  4103. class Drawable
  4104. {
  4105. // Methods:
  4106. void ApplyAttributes();
  4107. void DrawDebugGeometry(DebugRenderer, bool);
  4108. Variant GetAttribute(const String&) const;
  4109. ValueAnimation GetAttributeAnimation(const String&) const;
  4110. float GetAttributeAnimationSpeed(const String&) const;
  4111. float GetAttributeAnimationTime(const String&) const;
  4112. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4113. Variant GetAttributeDefault(const String&) const;
  4114. bool GetInterceptNetworkUpdate(const String&) const;
  4115. bool HasSubscribedToEvent(Object, const String&);
  4116. bool HasSubscribedToEvent(const String&);
  4117. bool IsInView(Camera) const;
  4118. bool Load(File, bool = false);
  4119. bool Load(VectorBuffer&, bool = false);
  4120. bool LoadJSON(const JSONValue&, bool = false);
  4121. bool LoadXML(const XMLElement&, bool = false);
  4122. void MarkNetworkUpdate() const;
  4123. void Remove();
  4124. void RemoveAttributeAnimation(const String&);
  4125. void RemoveInstanceDefault();
  4126. void RemoveObjectAnimation();
  4127. void ResetToDefault();
  4128. bool Save(File) const;
  4129. bool Save(VectorBuffer&) const;
  4130. bool SaveJSON(JSONValue&) const;
  4131. bool SaveXML(XMLElement&) const;
  4132. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4133. void SetAnimationTime(float);
  4134. bool SetAttribute(const String&, const Variant&);
  4135. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4136. void SetAttributeAnimationSpeed(const String&, float);
  4137. void SetAttributeAnimationTime(const String&, float);
  4138. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4139. void SetInterceptNetworkUpdate(const String&, bool);
  4140. // Properties:
  4141. bool animationEnabled;
  4142. /* readonly */
  4143. Array<Variant> attributeDefaults;
  4144. /* readonly */
  4145. Array<AttributeInfo> attributeInfos;
  4146. Array<Variant> attributes;
  4147. /* readonly */
  4148. BoundingBox boundingBox;
  4149. bool castShadows;
  4150. /* readonly */
  4151. String category;
  4152. float drawDistance;
  4153. bool enabled;
  4154. /* readonly */
  4155. bool enabledEffective;
  4156. /* readonly */
  4157. uint id;
  4158. /* readonly */
  4159. bool inView;
  4160. uint lightMask;
  4161. float lodBias;
  4162. uint maxLights;
  4163. /* readonly */
  4164. Node node;
  4165. /* readonly */
  4166. uint numAttributes;
  4167. ObjectAnimation objectAnimation;
  4168. bool occludee;
  4169. bool occluder;
  4170. /* readonly */
  4171. int refs;
  4172. float shadowDistance;
  4173. uint shadowMask;
  4174. bool temporary;
  4175. /* readonly */
  4176. StringHash type;
  4177. /* readonly */
  4178. String typeName;
  4179. uint viewMask;
  4180. /* readonly */
  4181. int weakRefs;
  4182. /* readonly */
  4183. BoundingBox worldBoundingBox;
  4184. uint zoneMask;
  4185. };
  4186. class Drawable2D
  4187. {
  4188. // Methods:
  4189. void ApplyAttributes();
  4190. void DrawDebugGeometry(DebugRenderer, bool);
  4191. Variant GetAttribute(const String&) const;
  4192. ValueAnimation GetAttributeAnimation(const String&) const;
  4193. float GetAttributeAnimationSpeed(const String&) const;
  4194. float GetAttributeAnimationTime(const String&) const;
  4195. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4196. Variant GetAttributeDefault(const String&) const;
  4197. bool GetInterceptNetworkUpdate(const String&) const;
  4198. bool HasSubscribedToEvent(Object, const String&);
  4199. bool HasSubscribedToEvent(const String&);
  4200. bool IsInView(Camera) const;
  4201. bool Load(File, bool = false);
  4202. bool Load(VectorBuffer&, bool = false);
  4203. bool LoadJSON(const JSONValue&, bool = false);
  4204. bool LoadXML(const XMLElement&, bool = false);
  4205. void MarkNetworkUpdate() const;
  4206. void Remove();
  4207. void RemoveAttributeAnimation(const String&);
  4208. void RemoveInstanceDefault();
  4209. void RemoveObjectAnimation();
  4210. void ResetToDefault();
  4211. bool Save(File) const;
  4212. bool Save(VectorBuffer&) const;
  4213. bool SaveJSON(JSONValue&) const;
  4214. bool SaveXML(XMLElement&) const;
  4215. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4216. void SetAnimationTime(float);
  4217. bool SetAttribute(const String&, const Variant&);
  4218. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4219. void SetAttributeAnimationSpeed(const String&, float);
  4220. void SetAttributeAnimationTime(const String&, float);
  4221. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4222. void SetInterceptNetworkUpdate(const String&, bool);
  4223. // Properties:
  4224. bool animationEnabled;
  4225. /* readonly */
  4226. Array<Variant> attributeDefaults;
  4227. /* readonly */
  4228. Array<AttributeInfo> attributeInfos;
  4229. Array<Variant> attributes;
  4230. /* readonly */
  4231. BoundingBox boundingBox;
  4232. bool castShadows;
  4233. /* readonly */
  4234. String category;
  4235. float drawDistance;
  4236. bool enabled;
  4237. /* readonly */
  4238. bool enabledEffective;
  4239. /* readonly */
  4240. uint id;
  4241. /* readonly */
  4242. bool inView;
  4243. int layer;
  4244. uint lightMask;
  4245. float lodBias;
  4246. uint maxLights;
  4247. /* readonly */
  4248. Node node;
  4249. /* readonly */
  4250. uint numAttributes;
  4251. ObjectAnimation objectAnimation;
  4252. bool occludee;
  4253. bool occluder;
  4254. int orderInLayer;
  4255. /* readonly */
  4256. int refs;
  4257. float shadowDistance;
  4258. uint shadowMask;
  4259. bool temporary;
  4260. /* readonly */
  4261. StringHash type;
  4262. /* readonly */
  4263. String typeName;
  4264. uint viewMask;
  4265. /* readonly */
  4266. int weakRefs;
  4267. /* readonly */
  4268. BoundingBox worldBoundingBox;
  4269. uint zoneMask;
  4270. };
  4271. class DropDownList
  4272. {
  4273. // Methods:
  4274. void AddChild(UIElement);
  4275. void AddItem(UIElement);
  4276. void AddTag(const String&);
  4277. void AddTags(const String&, int8 = ';');
  4278. void ApplyAttributes();
  4279. void BringToFront();
  4280. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4281. void DisableLayoutUpdate();
  4282. IntVector2 ElementToScreen(const IntVector2&);
  4283. void EnableLayoutUpdate();
  4284. uint FindChild(UIElement) const;
  4285. Variant GetAttribute(const String&) const;
  4286. ValueAnimation GetAttributeAnimation(const String&) const;
  4287. float GetAttributeAnimationSpeed(const String&) const;
  4288. float GetAttributeAnimationTime(const String&) const;
  4289. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4290. Variant GetAttributeDefault(const String&) const;
  4291. UIElement GetChild(const String&, bool = false) const;
  4292. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4293. Array<UIElement> GetChildren(bool = false) const;
  4294. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4295. UIElement GetElementEventSender() const;
  4296. bool GetInterceptNetworkUpdate(const String&) const;
  4297. Array<UIElement> GetItems() const;
  4298. uint GetNumChildren(bool) const;
  4299. bool HasSubscribedToEvent(Object, const String&);
  4300. bool HasSubscribedToEvent(const String&);
  4301. bool HasTag(const String&) const;
  4302. void InsertChild(uint, UIElement);
  4303. void InsertItem(uint, UIElement);
  4304. bool IsInside(IntVector2, bool);
  4305. bool IsInsideCombined(IntVector2, bool);
  4306. bool Load(File, bool = false);
  4307. bool Load(VectorBuffer&, bool = false);
  4308. bool LoadChildXML(XMLFile, XMLFile = null);
  4309. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4310. bool LoadJSON(const JSONValue&, bool = false);
  4311. bool LoadXML(File);
  4312. bool LoadXML(VectorBuffer&);
  4313. bool LoadXML(XMLFile, XMLFile);
  4314. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4315. bool LoadXML(const XMLElement&, bool = false);
  4316. void MarkNetworkUpdate() const;
  4317. void Remove();
  4318. void RemoveAllChildren();
  4319. void RemoveAllItems();
  4320. void RemoveAllTags();
  4321. void RemoveAttributeAnimation(const String&);
  4322. void RemoveChild(UIElement, uint = 0);
  4323. void RemoveChild(uint);
  4324. void RemoveInstanceDefault();
  4325. void RemoveItem(UIElement);
  4326. void RemoveItem(uint);
  4327. void RemoveObjectAnimation();
  4328. bool RemoveTag(const String&);
  4329. void ResetDeepEnabled();
  4330. void ResetToDefault();
  4331. bool Save(File) const;
  4332. bool Save(VectorBuffer&) const;
  4333. bool SaveJSON(JSONValue&) const;
  4334. bool SaveXML(File, const String& = "\t");
  4335. bool SaveXML(VectorBuffer&, const String& = "\t");
  4336. bool SaveXML(XMLElement&) const;
  4337. IntVector2 ScreenToElement(const IntVector2&);
  4338. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4339. void SetAccelerator(int, int);
  4340. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4341. void SetAnimationTime(float);
  4342. bool SetAttribute(const String&, const Variant&);
  4343. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4344. void SetAttributeAnimationSpeed(const String&, float);
  4345. void SetAttributeAnimationTime(const String&, float);
  4346. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4347. void SetDeepEnabled(bool);
  4348. void SetEnabledRecursive(bool);
  4349. void SetFixedHeight(int);
  4350. void SetFixedSize(int, int);
  4351. void SetFixedWidth(int);
  4352. void SetFullImageRect();
  4353. void SetHoverOffset(int, int);
  4354. void SetInterceptNetworkUpdate(const String&, bool);
  4355. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4356. void SetMaxSize(int, int);
  4357. void SetMinSize(int, int);
  4358. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4359. void SetPosition(int, int);
  4360. void SetPressedChildOffset(int, int);
  4361. void SetPressedOffset(int, int);
  4362. void SetRepeat(float, float);
  4363. void SetSize(int, int);
  4364. bool SetStyle(const String&, XMLFile = null);
  4365. bool SetStyle(const XMLElement&);
  4366. bool SetStyleAuto(XMLFile = null);
  4367. void UpdateLayout();
  4368. const Variant& GetVar(const StringHash&);
  4369. UIElement getPopup() const;
  4370. // Properties:
  4371. /* readonly */
  4372. int acceleratorKey;
  4373. /* readonly */
  4374. int acceleratorQualifiers;
  4375. bool animationEnabled;
  4376. /* readonly */
  4377. Array<Variant> attributeDefaults;
  4378. /* readonly */
  4379. Array<AttributeInfo> attributeInfos;
  4380. Array<Variant> attributes;
  4381. BlendMode blendMode;
  4382. IntRect border;
  4383. bool bringToBack;
  4384. bool bringToFront;
  4385. /* readonly */
  4386. String category;
  4387. /* readonly */
  4388. IntVector2 childOffset;
  4389. /* readonly */
  4390. Array<UIElement> children;
  4391. IntRect clipBorder;
  4392. bool clipChildren;
  4393. /* writeonly */
  4394. Color color;
  4395. /* readonly */
  4396. bool colorGradient;
  4397. Array<Color> colors;
  4398. /* readonly */
  4399. IntRect combinedScreenRect;
  4400. XMLFile defaultStyle;
  4401. /* readonly */
  4402. float derivedOpacity;
  4403. /* readonly */
  4404. uint dragButtonCombo;
  4405. /* readonly */
  4406. int dragButtonCount;
  4407. uint dragDropMode;
  4408. bool editable;
  4409. bool elementEventSender;
  4410. bool enabled;
  4411. /* readonly */
  4412. bool enabledSelf;
  4413. /* readonly */
  4414. bool fixedHeight;
  4415. /* readonly */
  4416. bool fixedSize;
  4417. /* readonly */
  4418. bool fixedWidth;
  4419. bool focus;
  4420. FocusMode focusMode;
  4421. int height;
  4422. HorizontalAlignment horizontalAlignment;
  4423. IntVector2 hoverOffset;
  4424. /* readonly */
  4425. bool hovering;
  4426. IntRect imageBorder;
  4427. IntRect imageRect;
  4428. int indent;
  4429. int indentSpacing;
  4430. /* readonly */
  4431. int indentWidth;
  4432. bool internal;
  4433. /* readonly */
  4434. Array<UIElement> items;
  4435. IntRect layoutBorder;
  4436. Vector2 layoutFlexScale;
  4437. LayoutMode layoutMode;
  4438. int layoutSpacing;
  4439. /* readonly */
  4440. ListView listView;
  4441. int maxHeight;
  4442. IntVector2 maxSize;
  4443. int maxWidth;
  4444. int minHeight;
  4445. IntVector2 minSize;
  4446. int minWidth;
  4447. String name;
  4448. /* readonly */
  4449. uint numAllChildren;
  4450. /* readonly */
  4451. uint numAttributes;
  4452. /* readonly */
  4453. uint numChildren;
  4454. /* readonly */
  4455. uint numItems;
  4456. ObjectAnimation objectAnimation;
  4457. float opacity;
  4458. UIElement parent;
  4459. /* readonly */
  4460. UIElement placeholder;
  4461. String placeholderText;
  4462. IntVector2 position;
  4463. /* readonly */
  4464. bool pressed;
  4465. IntVector2 pressedChildOffset;
  4466. IntVector2 pressedOffset;
  4467. int priority;
  4468. /* readonly */
  4469. int refs;
  4470. float repeatDelay;
  4471. float repeatRate;
  4472. bool resizePopup;
  4473. /* readonly */
  4474. UIElement root;
  4475. /* readonly */
  4476. IntVector2 screenPosition;
  4477. bool selected;
  4478. /* readonly */
  4479. UIElement selectedItem;
  4480. uint selection;
  4481. bool showPopup;
  4482. IntVector2 size;
  4483. bool sortChildren;
  4484. String style;
  4485. /* readonly */
  4486. Array<String> tags;
  4487. bool temporary;
  4488. Texture texture;
  4489. bool tiled;
  4490. TraversalMode traversalMode;
  4491. /* readonly */
  4492. StringHash type;
  4493. /* readonly */
  4494. String typeName;
  4495. bool useDerivedOpacity;
  4496. /* readonly */
  4497. VariantMap vars;
  4498. VerticalAlignment verticalAlignment;
  4499. bool visible;
  4500. /* readonly */
  4501. bool visibleEffective;
  4502. /* readonly */
  4503. int weakRefs;
  4504. int width;
  4505. };
  4506. class DynamicNavigationMesh
  4507. {
  4508. // Methods:
  4509. void ApplyAttributes();
  4510. bool Build();
  4511. bool Build(const BoundingBox&);
  4512. void DrawDebugGeometry(DebugRenderer, bool);
  4513. void DrawDebugGeometry(bool);
  4514. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4515. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4516. float GetAreaCost(uint) const;
  4517. Variant GetAttribute(const String&) const;
  4518. ValueAnimation GetAttributeAnimation(const String&) const;
  4519. float GetAttributeAnimationSpeed(const String&) const;
  4520. float GetAttributeAnimationTime(const String&) const;
  4521. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4522. Variant GetAttributeDefault(const String&) const;
  4523. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4524. bool GetInterceptNetworkUpdate(const String&) const;
  4525. Vector3 GetRandomPoint();
  4526. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4527. bool HasSubscribedToEvent(Object, const String&);
  4528. bool HasSubscribedToEvent(const String&);
  4529. bool Load(File, bool = false);
  4530. bool Load(VectorBuffer&, bool = false);
  4531. bool LoadJSON(const JSONValue&, bool = false);
  4532. bool LoadXML(const XMLElement&, bool = false);
  4533. void MarkNetworkUpdate() const;
  4534. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4535. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4536. void Remove();
  4537. void RemoveAttributeAnimation(const String&);
  4538. void RemoveInstanceDefault();
  4539. void RemoveObjectAnimation();
  4540. void ResetToDefault();
  4541. bool Save(File) const;
  4542. bool Save(VectorBuffer&) const;
  4543. bool SaveJSON(JSONValue&) const;
  4544. bool SaveXML(XMLElement&) const;
  4545. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4546. void SetAnimationTime(float);
  4547. void SetAreaCost(uint, float);
  4548. bool SetAttribute(const String&, const Variant&);
  4549. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4550. void SetAttributeAnimationSpeed(const String&, float);
  4551. void SetAttributeAnimationTime(const String&, float);
  4552. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4553. void SetInterceptNetworkUpdate(const String&, bool);
  4554. // Properties:
  4555. float agentHeight;
  4556. float agentMaxClimb;
  4557. float agentMaxSlope;
  4558. float agentRadius;
  4559. bool animationEnabled;
  4560. /* readonly */
  4561. Array<Variant> attributeDefaults;
  4562. /* readonly */
  4563. Array<AttributeInfo> attributeInfos;
  4564. Array<Variant> attributes;
  4565. /* readonly */
  4566. BoundingBox boundingBox;
  4567. /* readonly */
  4568. String category;
  4569. float cellHeight;
  4570. float cellSize;
  4571. float detailSampleDistance;
  4572. float detailSampleMaxError;
  4573. bool drawNavAreas;
  4574. bool drawObstacles;
  4575. bool drawOffMeshConnections;
  4576. float edgeMaxError;
  4577. float edgeMaxLength;
  4578. bool enabled;
  4579. /* readonly */
  4580. bool enabledEffective;
  4581. /* readonly */
  4582. uint id;
  4583. /* readonly */
  4584. bool initialized;
  4585. bool maxLayers;
  4586. uint maxObstacles;
  4587. /* readonly */
  4588. Node node;
  4589. /* readonly */
  4590. uint numAttributes;
  4591. /* readonly */
  4592. IntVector2 numTiles;
  4593. ObjectAnimation objectAnimation;
  4594. Vector3 padding;
  4595. NavmeshPartitionType partitionType;
  4596. /* readonly */
  4597. int refs;
  4598. float regionMergeSize;
  4599. float regionMinSize;
  4600. bool temporary;
  4601. int tileSize;
  4602. /* readonly */
  4603. StringHash type;
  4604. /* readonly */
  4605. String typeName;
  4606. /* readonly */
  4607. int weakRefs;
  4608. /* readonly */
  4609. BoundingBox worldBoundingBox;
  4610. };
  4611. class Engine
  4612. {
  4613. // Methods:
  4614. Console CreateConsole();
  4615. DebugHud CreateDebugHud();
  4616. void DumpMemory();
  4617. void DumpProfiler();
  4618. void DumpResources(bool = false);
  4619. void Exit();
  4620. bool HasSubscribedToEvent(Object, const String&);
  4621. bool HasSubscribedToEvent(const String&);
  4622. void RunFrame();
  4623. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4624. // Properties:
  4625. bool autoExit;
  4626. /* readonly */
  4627. String category;
  4628. /* readonly */
  4629. bool exiting;
  4630. /* readonly */
  4631. bool headless;
  4632. /* readonly */
  4633. bool initialized;
  4634. int maxFps;
  4635. int maxInactiveFps;
  4636. int minFps;
  4637. bool pauseMinimized;
  4638. /* readonly */
  4639. int refs;
  4640. int timeStepSmoothing;
  4641. /* readonly */
  4642. StringHash type;
  4643. /* readonly */
  4644. String typeName;
  4645. /* readonly */
  4646. int weakRefs;
  4647. };
  4648. class File
  4649. {
  4650. // Methods:
  4651. void Close();
  4652. bool HasSubscribedToEvent(Object, const String&);
  4653. bool HasSubscribedToEvent(const String&);
  4654. bool Open(const String&, FileMode = FILE_READ);
  4655. Array<uint8> Read(uint);
  4656. bool ReadBool();
  4657. BoundingBox ReadBoundingBox();
  4658. int8 ReadByte();
  4659. Color ReadColor();
  4660. double ReadDouble();
  4661. String ReadFileID();
  4662. float ReadFloat();
  4663. int ReadInt();
  4664. IntRect ReadIntRect();
  4665. IntVector2 ReadIntVector2();
  4666. String ReadLine();
  4667. Matrix3 ReadMatrix3();
  4668. Matrix3x4 ReadMatrix3x4();
  4669. Matrix4 ReadMatrix4();
  4670. uint ReadNetID();
  4671. Quaternion ReadPackedQuaternion();
  4672. Vector3 ReadPackedVector3(float);
  4673. Quaternion ReadQuaternion();
  4674. int16 ReadShort();
  4675. String ReadString();
  4676. StringHash ReadStringHash();
  4677. uint8 ReadUByte();
  4678. uint ReadUInt();
  4679. uint16 ReadUShort();
  4680. uint ReadVLE();
  4681. Variant ReadVariant();
  4682. VariantMap ReadVariantMap();
  4683. Vector2 ReadVector2();
  4684. Vector3 ReadVector3();
  4685. Vector4 ReadVector4();
  4686. VectorBuffer ReadVectorBuffer(uint);
  4687. uint Seek(uint);
  4688. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4689. uint Write(Array<uint8>);
  4690. bool WriteBool(bool);
  4691. bool WriteBoundingBox(const BoundingBox&);
  4692. bool WriteByte(int8);
  4693. bool WriteColor(const Color&);
  4694. bool WriteDouble(double);
  4695. bool WriteFileID(const String&);
  4696. bool WriteFloat(float);
  4697. bool WriteInt(int);
  4698. bool WriteIntRect(const IntRect&);
  4699. bool WriteIntVector2(const IntVector2&);
  4700. bool WriteLine(const String&);
  4701. bool WriteMatrix3(const Matrix3&);
  4702. bool WriteMatrix3x4(const Matrix3x4&);
  4703. bool WriteMatrix4(const Matrix4&);
  4704. bool WriteNetID(uint);
  4705. bool WritePackedQuaternion(const Quaternion&);
  4706. bool WritePackedVector3(const Vector3&, float);
  4707. bool WriteQuaternion(const Quaternion&);
  4708. bool WriteShort(int16);
  4709. bool WriteString(const String&);
  4710. bool WriteStringHash(const StringHash&);
  4711. bool WriteUByte(uint8);
  4712. bool WriteUInt(uint);
  4713. bool WriteUShort(uint16);
  4714. bool WriteVLE(uint);
  4715. bool WriteVariant(const Variant&);
  4716. bool WriteVariantMap(const VariantMap&);
  4717. bool WriteVector2(const Vector2&);
  4718. bool WriteVector3(const Vector3&);
  4719. bool WriteVector4(const Vector4&);
  4720. bool WriteVectorBuffer(const VectorBuffer&);
  4721. // Properties:
  4722. /* readonly */
  4723. String category;
  4724. /* readonly */
  4725. uint checksum;
  4726. /* readonly */
  4727. bool eof;
  4728. /* readonly */
  4729. FileMode mode;
  4730. /* readonly */
  4731. String name;
  4732. /* readonly */
  4733. bool open;
  4734. /* readonly */
  4735. bool packaged;
  4736. /* readonly */
  4737. uint position;
  4738. /* readonly */
  4739. int refs;
  4740. /* readonly */
  4741. uint size;
  4742. /* readonly */
  4743. StringHash type;
  4744. /* readonly */
  4745. String typeName;
  4746. /* readonly */
  4747. int weakRefs;
  4748. };
  4749. class FileSelector
  4750. {
  4751. // Methods:
  4752. bool HasSubscribedToEvent(Object, const String&);
  4753. bool HasSubscribedToEvent(const String&);
  4754. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4755. void SetButtonTexts(const String&, const String&);
  4756. void SetFilters(Array<String>, uint);
  4757. void UpdateElements();
  4758. // Properties:
  4759. /* readonly */
  4760. Button cancelButton;
  4761. /* readonly */
  4762. String category;
  4763. XMLFile defaultStyle;
  4764. bool directoryMode;
  4765. /* readonly */
  4766. ListView fileList;
  4767. String fileName;
  4768. /* readonly */
  4769. LineEdit fileNameEdit;
  4770. /* readonly */
  4771. String filter;
  4772. /* readonly */
  4773. uint filterIndex;
  4774. /* readonly */
  4775. DropDownList filterList;
  4776. /* readonly */
  4777. Button okButton;
  4778. String path;
  4779. /* readonly */
  4780. LineEdit pathEdit;
  4781. /* readonly */
  4782. int refs;
  4783. String title;
  4784. /* readonly */
  4785. Text titleText;
  4786. /* readonly */
  4787. StringHash type;
  4788. /* readonly */
  4789. String typeName;
  4790. /* readonly */
  4791. int weakRefs;
  4792. /* readonly */
  4793. Window window;
  4794. };
  4795. class FileSystem
  4796. {
  4797. // Methods:
  4798. bool Copy(const String&, const String&);
  4799. bool CreateDir(const String&);
  4800. bool Delete(const String&);
  4801. bool DirExists(const String&) const;
  4802. bool FileExists(const String&) const;
  4803. String GetAppPreferencesDir(const String&, const String&) const;
  4804. uint GetLastModifiedTime(const String&) const;
  4805. bool HasSubscribedToEvent(Object, const String&);
  4806. bool HasSubscribedToEvent(const String&);
  4807. bool Rename(const String&, const String&);
  4808. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4809. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4810. bool SetLastModifiedTime(const String&, uint);
  4811. int SystemCommand(const String&, bool = false);
  4812. uint SystemCommandAsync(const String&);
  4813. bool SystemOpen(const String&, const String&);
  4814. int SystemRun(const String&, Array<String>);
  4815. uint SystemRunAsync(const String&, Array<String>);
  4816. // Properties:
  4817. /* readonly */
  4818. String category;
  4819. String currentDir;
  4820. bool executeConsoleCommands;
  4821. /* readonly */
  4822. String programDir;
  4823. /* readonly */
  4824. int refs;
  4825. /* readonly */
  4826. StringHash type;
  4827. /* readonly */
  4828. String typeName;
  4829. /* readonly */
  4830. String userDocumentsDir;
  4831. /* readonly */
  4832. int weakRefs;
  4833. };
  4834. class FocusParameters
  4835. {
  4836. // Properties:
  4837. bool autoSize;
  4838. bool focus;
  4839. float minView;
  4840. bool nonUniform;
  4841. float quantize;
  4842. };
  4843. class Font
  4844. {
  4845. // Methods:
  4846. IntVector2 GetTotalGlyphOffset(int) const;
  4847. bool HasSubscribedToEvent(Object, const String&);
  4848. bool HasSubscribedToEvent(const String&);
  4849. bool Load(File);
  4850. bool Load(VectorBuffer&);
  4851. bool Save(File) const;
  4852. bool Save(VectorBuffer&) const;
  4853. bool SaveXML(File, int, bool = false, const String& = "\t");
  4854. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4855. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4856. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4857. // Properties:
  4858. IntVector2 absoluteGlyphOffset;
  4859. /* readonly */
  4860. String category;
  4861. /* readonly */
  4862. uint memoryUse;
  4863. String name;
  4864. /* readonly */
  4865. int refs;
  4866. Vector2 scaledGlyphOffset;
  4867. /* readonly */
  4868. StringHash type;
  4869. /* readonly */
  4870. String typeName;
  4871. /* readonly */
  4872. uint useTimer;
  4873. /* readonly */
  4874. int weakRefs;
  4875. };
  4876. class Frustum
  4877. {
  4878. // Methods:
  4879. void Define(const BoundingBox&, const Matrix3x4&);
  4880. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4881. void Define(float, float, float, float, float, const Matrix3x4&);
  4882. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4883. float Distance(const Vector3&) const;
  4884. Intersection IsInside(const BoundingBox&);
  4885. Intersection IsInside(const Sphere&);
  4886. Intersection IsInside(const Vector3&);
  4887. Intersection IsInsideFast(const BoundingBox&) const;
  4888. Intersection IsInsideFast(const Sphere&) const;
  4889. void Transform(const Matrix3&);
  4890. void Transform(const Matrix3x4&);
  4891. Frustum Transformed(const Matrix3&) const;
  4892. Frustum Transformed(const Matrix3x4&) const;
  4893. // Properties:
  4894. /* readonly */
  4895. Array<Vector3> vertices;
  4896. };
  4897. class Geometry
  4898. {
  4899. // Methods:
  4900. bool HasSubscribedToEvent(Object, const String&);
  4901. bool HasSubscribedToEvent(const String&);
  4902. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4903. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4904. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4905. void SetIndexBuffer(IndexBuffer);
  4906. bool SetVertexBuffer(uint, VertexBuffer, uint = MASK_DEFAULT);
  4907. // Properties:
  4908. /* readonly */
  4909. String category;
  4910. /* readonly */
  4911. bool empty;
  4912. IndexBuffer indexBuffer;
  4913. /* readonly */
  4914. uint indexCount;
  4915. /* readonly */
  4916. uint indexStart;
  4917. float lodDistance;
  4918. uint numVertexBuffers;
  4919. /* readonly */
  4920. PrimitiveType primitiveType;
  4921. /* readonly */
  4922. int refs;
  4923. /* readonly */
  4924. StringHash type;
  4925. /* readonly */
  4926. String typeName;
  4927. /* readonly */
  4928. Array<VertexBuffer> vertexBuffers;
  4929. /* readonly */
  4930. uint vertexCount;
  4931. /* readonly */
  4932. Array<uint> vertexElementMasks;
  4933. /* readonly */
  4934. uint vertexStart;
  4935. /* readonly */
  4936. int weakRefs;
  4937. };
  4938. class Graphics
  4939. {
  4940. // Methods:
  4941. void BeginDumpShaders(const String&);
  4942. void Close();
  4943. void EndDumpShaders();
  4944. bool HasSubscribedToEvent(Object, const String&);
  4945. bool HasSubscribedToEvent(const String&);
  4946. void Maximize();
  4947. void Minimize();
  4948. void PrecacheShaders(File);
  4949. void PrecacheShaders(VectorBuffer&);
  4950. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4951. bool SetMode(int, int);
  4952. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4953. void SetWindowPosition(int, int);
  4954. bool TakeScreenShot(Image);
  4955. bool ToggleFullscreen();
  4956. // Properties:
  4957. /* readonly */
  4958. String apiName;
  4959. /* readonly */
  4960. bool borderless;
  4961. /* readonly */
  4962. String category;
  4963. /* readonly */
  4964. bool deferredSupport;
  4965. /* readonly */
  4966. IntVector2 desktopResolution;
  4967. /* readonly */
  4968. bool deviceLost;
  4969. bool flushGPU;
  4970. /* readonly */
  4971. bool fullscreen;
  4972. /* readonly */
  4973. bool hardwareShadowSupport;
  4974. /* readonly */
  4975. int height;
  4976. /* readonly */
  4977. bool initialized;
  4978. /* readonly */
  4979. bool instancingSupport;
  4980. /* readonly */
  4981. bool lightPrepassSupport;
  4982. /* readonly */
  4983. int multiSample;
  4984. /* readonly */
  4985. Array<int> multiSampleLevels;
  4986. /* readonly */
  4987. uint numBatches;
  4988. /* readonly */
  4989. uint numPrimitives;
  4990. String orientations;
  4991. /* readonly */
  4992. bool readableDepthSupport;
  4993. /* readonly */
  4994. int refs;
  4995. /* readonly */
  4996. bool resizable;
  4997. /* readonly */
  4998. Array<IntVector2> resolutions;
  4999. bool sRGB;
  5000. /* readonly */
  5001. bool sRGBSupport;
  5002. /* readonly */
  5003. bool sRGBWriteSupport;
  5004. /* readonly */
  5005. bool tripleBuffer;
  5006. /* readonly */
  5007. StringHash type;
  5008. /* readonly */
  5009. String typeName;
  5010. /* readonly */
  5011. bool vsync;
  5012. /* readonly */
  5013. int weakRefs;
  5014. /* readonly */
  5015. int width;
  5016. /* writeonly */
  5017. Image windowIcon;
  5018. IntVector2 windowPosition;
  5019. String windowTitle;
  5020. };
  5021. class HttpRequest
  5022. {
  5023. // Methods:
  5024. Array<uint8> Read(uint);
  5025. bool ReadBool();
  5026. BoundingBox ReadBoundingBox();
  5027. int8 ReadByte();
  5028. Color ReadColor();
  5029. double ReadDouble();
  5030. String ReadFileID();
  5031. float ReadFloat();
  5032. int ReadInt();
  5033. IntRect ReadIntRect();
  5034. IntVector2 ReadIntVector2();
  5035. String ReadLine();
  5036. Matrix3 ReadMatrix3();
  5037. Matrix3x4 ReadMatrix3x4();
  5038. Matrix4 ReadMatrix4();
  5039. uint ReadNetID();
  5040. Quaternion ReadPackedQuaternion();
  5041. Vector3 ReadPackedVector3(float);
  5042. Quaternion ReadQuaternion();
  5043. int16 ReadShort();
  5044. String ReadString();
  5045. StringHash ReadStringHash();
  5046. uint8 ReadUByte();
  5047. uint ReadUInt();
  5048. uint16 ReadUShort();
  5049. uint ReadVLE();
  5050. Variant ReadVariant();
  5051. VariantMap ReadVariantMap();
  5052. Vector2 ReadVector2();
  5053. Vector3 ReadVector3();
  5054. Vector4 ReadVector4();
  5055. VectorBuffer ReadVectorBuffer(uint);
  5056. uint Seek(uint);
  5057. // Properties:
  5058. /* readonly */
  5059. uint availableSize;
  5060. /* readonly */
  5061. uint checksum;
  5062. /* readonly */
  5063. bool eof;
  5064. /* readonly */
  5065. String error;
  5066. /* readonly */
  5067. String name;
  5068. /* readonly */
  5069. bool open;
  5070. /* readonly */
  5071. uint position;
  5072. /* readonly */
  5073. int refs;
  5074. /* readonly */
  5075. uint size;
  5076. /* readonly */
  5077. HttpRequestState state;
  5078. /* readonly */
  5079. String url;
  5080. /* readonly */
  5081. String verb;
  5082. /* readonly */
  5083. int weakRefs;
  5084. };
  5085. class Image
  5086. {
  5087. // Methods:
  5088. void Clear(const Color&);
  5089. void ClearInt(uint);
  5090. bool FlipHorizontal();
  5091. bool FlipVertical();
  5092. Color GetPixel(int, int) const;
  5093. Color GetPixel(int, int, int) const;
  5094. Color GetPixelBilinear(float, float) const;
  5095. uint GetPixelInt(int, int) const;
  5096. uint GetPixelInt(int, int, int) const;
  5097. Color GetPixelTrilinear(float, float, float) const;
  5098. Image GetSubimage(const IntRect&) const;
  5099. bool HasSubscribedToEvent(Object, const String&);
  5100. bool HasSubscribedToEvent(const String&);
  5101. bool Load(File);
  5102. bool Load(VectorBuffer&);
  5103. bool LoadColorLUT(File);
  5104. bool LoadColorLUT(VectorBuffer&);
  5105. bool Resize(int, int);
  5106. bool Save(File) const;
  5107. bool Save(VectorBuffer&) const;
  5108. bool SaveBMP(const String&) const;
  5109. bool SaveJPG(const String&, int) const;
  5110. bool SavePNG(const String&) const;
  5111. bool SaveTGA(const String&) const;
  5112. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5113. void SetPixel(int, int, const Color&);
  5114. void SetPixel(int, int, int, const Color&);
  5115. void SetPixelInt(int, int, int, uint);
  5116. void SetPixelInt(int, int, uint);
  5117. bool SetSize(int, int, int, uint);
  5118. bool SetSize(int, int, uint);
  5119. // Properties:
  5120. /* readonly */
  5121. bool array;
  5122. /* readonly */
  5123. String category;
  5124. /* readonly */
  5125. uint components;
  5126. /* readonly */
  5127. bool compressed;
  5128. /* readonly */
  5129. CompressedFormat compressedFormat;
  5130. /* readonly */
  5131. bool cubemap;
  5132. /* readonly */
  5133. int depth;
  5134. /* readonly */
  5135. int height;
  5136. /* readonly */
  5137. uint memoryUse;
  5138. String name;
  5139. /* readonly */
  5140. uint numCompressedLevels;
  5141. /* readonly */
  5142. int refs;
  5143. /* readonly */
  5144. bool sRGB;
  5145. /* readonly */
  5146. StringHash type;
  5147. /* readonly */
  5148. String typeName;
  5149. /* readonly */
  5150. uint useTimer;
  5151. /* readonly */
  5152. int weakRefs;
  5153. /* readonly */
  5154. int width;
  5155. };
  5156. class IndexBuffer
  5157. {
  5158. // Methods:
  5159. VectorBuffer GetData();
  5160. bool HasSubscribedToEvent(Object, const String&);
  5161. bool HasSubscribedToEvent(const String&);
  5162. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5163. bool SetData(VectorBuffer&);
  5164. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5165. void SetSize(uint, bool, bool = false);
  5166. // Properties:
  5167. /* readonly */
  5168. String category;
  5169. /* readonly */
  5170. bool dynamic;
  5171. /* readonly */
  5172. uint indexCount;
  5173. /* readonly */
  5174. uint indexSize;
  5175. /* readonly */
  5176. int refs;
  5177. bool shadowed;
  5178. /* readonly */
  5179. StringHash type;
  5180. /* readonly */
  5181. String typeName;
  5182. /* readonly */
  5183. int weakRefs;
  5184. };
  5185. class Input
  5186. {
  5187. // Methods:
  5188. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5189. int GetKeyFromName(const String&) const;
  5190. int GetKeyFromScancode(int) const;
  5191. String GetKeyName(int) const;
  5192. int GetScancodeFromKey(int) const;
  5193. int GetScancodeFromName(const String&) const;
  5194. String GetScancodeName(int) const;
  5195. bool HasSubscribedToEvent(Object, const String&);
  5196. bool HasSubscribedToEvent(const String&);
  5197. uint LoadGestures(File);
  5198. uint LoadGestures(VectorBuffer&);
  5199. bool RecordGesture();
  5200. void RemoveAllGestures();
  5201. bool RemoveGesture(uint);
  5202. bool RemoveScreenJoystick(int);
  5203. void ResetMouseGrabbed();
  5204. void ResetMouseMode();
  5205. void ResetMouseVisible();
  5206. bool SaveGesture(File, uint);
  5207. bool SaveGesture(VectorBuffer&, uint);
  5208. bool SaveGestures(File);
  5209. bool SaveGestures(VectorBuffer&);
  5210. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5211. void SetMouseGrabbed(bool, bool = false);
  5212. void SetMouseMode(MouseMode, bool = false);
  5213. void SetMouseVisible(bool, bool = false);
  5214. // Properties:
  5215. /* readonly */
  5216. String category;
  5217. /* readonly */
  5218. bool focus;
  5219. /* readonly */
  5220. Array<JoystickState> joysticks;
  5221. /* readonly */
  5222. Array<JoystickState> joysticksByIndex;
  5223. /* readonly */
  5224. Array<bool> keyDown;
  5225. /* readonly */
  5226. Array<bool> keyPress;
  5227. /* readonly */
  5228. bool minimized;
  5229. /* readonly */
  5230. Array<bool> mouseButtonDown;
  5231. /* readonly */
  5232. Array<bool> mouseButtonPress;
  5233. bool mouseGrabbed;
  5234. /* readonly */
  5235. bool mouseLocked;
  5236. MouseMode mouseMode;
  5237. /* readonly */
  5238. IntVector2 mouseMove;
  5239. /* readonly */
  5240. int mouseMoveWheel;
  5241. /* readonly */
  5242. int mouseMoveX;
  5243. /* readonly */
  5244. int mouseMoveY;
  5245. /* readonly */
  5246. IntVector2 mousePosition;
  5247. bool mouseVisible;
  5248. /* readonly */
  5249. uint numJoysticks;
  5250. /* readonly */
  5251. uint numTouches;
  5252. /* readonly */
  5253. Array<bool> qualifierDown;
  5254. /* readonly */
  5255. Array<bool> qualifierPress;
  5256. /* readonly */
  5257. int qualifiers;
  5258. /* readonly */
  5259. int refs;
  5260. /* readonly */
  5261. Array<bool> scancodeDown;
  5262. /* readonly */
  5263. Array<bool> scancodePress;
  5264. Array<bool> screenJoystickVisible;
  5265. /* readonly */
  5266. bool screenKeyboardSupport;
  5267. bool screenKeyboardVisible;
  5268. bool toggleFullscreen;
  5269. bool touchEmulation;
  5270. /* readonly */
  5271. Array<TouchState> touches;
  5272. /* readonly */
  5273. StringHash type;
  5274. /* readonly */
  5275. String typeName;
  5276. /* readonly */
  5277. int weakRefs;
  5278. };
  5279. class IntRect
  5280. {
  5281. // Methods:
  5282. Intersection IsInside(const IntVector2&) const;
  5283. // Properties:
  5284. int bottom;
  5285. /* readonly */
  5286. Array<int> data;
  5287. /* readonly */
  5288. int height;
  5289. int left;
  5290. int right;
  5291. /* readonly */
  5292. IntVector2 size;
  5293. int top;
  5294. /* readonly */
  5295. int width;
  5296. };
  5297. class IntVector2
  5298. {
  5299. // Methods:
  5300. String ToString() const;
  5301. // Properties:
  5302. /* readonly */
  5303. Array<int> data;
  5304. int x;
  5305. int y;
  5306. };
  5307. class JSONFile
  5308. {
  5309. // Methods:
  5310. JSONValue& GetRoot();
  5311. bool HasSubscribedToEvent(Object, const String&);
  5312. bool HasSubscribedToEvent(const String&);
  5313. bool Load(File);
  5314. bool Load(VectorBuffer&);
  5315. bool Save(File) const;
  5316. bool Save(File, const String&) const;
  5317. bool Save(VectorBuffer&) const;
  5318. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5319. // Properties:
  5320. /* readonly */
  5321. String category;
  5322. /* readonly */
  5323. uint memoryUse;
  5324. String name;
  5325. /* readonly */
  5326. int refs;
  5327. /* readonly */
  5328. JSONValue root;
  5329. /* readonly */
  5330. StringHash type;
  5331. /* readonly */
  5332. String typeName;
  5333. /* readonly */
  5334. uint useTimer;
  5335. /* readonly */
  5336. int weakRefs;
  5337. };
  5338. class JSONValue
  5339. {
  5340. // Methods:
  5341. void Clear();
  5342. bool Contains(const String&) const;
  5343. void Erase(const String&);
  5344. void Erase(uint, uint = 1);
  5345. bool GetBool() const;
  5346. double GetDouble() const;
  5347. float GetFloat() const;
  5348. int GetInt() const;
  5349. uint GetUInt() const;
  5350. void Insert(uint, const JSONValue&);
  5351. const JSONValue& Get(const String&) const;
  5352. void Pop();
  5353. void Push(const JSONValue&);
  5354. void Resize(uint);
  5355. void Set(const String&, const JSONValue&);
  5356. const String& GetString() const;
  5357. // Properties:
  5358. /* readonly */
  5359. bool isArray;
  5360. /* readonly */
  5361. bool isBool;
  5362. /* readonly */
  5363. bool isNull;
  5364. /* readonly */
  5365. bool isNumber;
  5366. /* readonly */
  5367. bool isObject;
  5368. /* readonly */
  5369. bool isString;
  5370. /* readonly */
  5371. uint size;
  5372. /* readonly */
  5373. JSONValueType valueType;
  5374. };
  5375. class JoystickState
  5376. {
  5377. // Properties:
  5378. /* readonly */
  5379. Array<float> axisPosition;
  5380. /* readonly */
  5381. Array<bool> buttonDown;
  5382. /* readonly */
  5383. Array<bool> buttonPress;
  5384. /* readonly */
  5385. bool controller;
  5386. /* readonly */
  5387. Array<int> hatPosition;
  5388. int joystickID;
  5389. String name;
  5390. /* readonly */
  5391. uint numAxes;
  5392. /* readonly */
  5393. uint numButtons;
  5394. /* readonly */
  5395. uint numHats;
  5396. };
  5397. class Light
  5398. {
  5399. // Methods:
  5400. void ApplyAttributes();
  5401. void DrawDebugGeometry(DebugRenderer, bool);
  5402. Variant GetAttribute(const String&) const;
  5403. ValueAnimation GetAttributeAnimation(const String&) const;
  5404. float GetAttributeAnimationSpeed(const String&) const;
  5405. float GetAttributeAnimationTime(const String&) const;
  5406. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5407. Variant GetAttributeDefault(const String&) const;
  5408. bool GetInterceptNetworkUpdate(const String&) const;
  5409. bool HasSubscribedToEvent(Object, const String&);
  5410. bool HasSubscribedToEvent(const String&);
  5411. bool IsInView(Camera) const;
  5412. bool Load(File, bool = false);
  5413. bool Load(VectorBuffer&, bool = false);
  5414. bool LoadJSON(const JSONValue&, bool = false);
  5415. bool LoadXML(const XMLElement&, bool = false);
  5416. void MarkNetworkUpdate() const;
  5417. void Remove();
  5418. void RemoveAttributeAnimation(const String&);
  5419. void RemoveInstanceDefault();
  5420. void RemoveObjectAnimation();
  5421. void ResetToDefault();
  5422. bool Save(File) const;
  5423. bool Save(VectorBuffer&) const;
  5424. bool SaveJSON(JSONValue&) const;
  5425. bool SaveXML(XMLElement&) const;
  5426. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5427. void SetAnimationTime(float);
  5428. bool SetAttribute(const String&, const Variant&);
  5429. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5430. void SetAttributeAnimationSpeed(const String&, float);
  5431. void SetAttributeAnimationTime(const String&, float);
  5432. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5433. void SetInterceptNetworkUpdate(const String&, bool);
  5434. // Properties:
  5435. bool animationEnabled;
  5436. float aspectRatio;
  5437. /* readonly */
  5438. Array<Variant> attributeDefaults;
  5439. /* readonly */
  5440. Array<AttributeInfo> attributeInfos;
  5441. Array<Variant> attributes;
  5442. /* readonly */
  5443. BoundingBox boundingBox;
  5444. float brightness;
  5445. bool castShadows;
  5446. /* readonly */
  5447. String category;
  5448. Color color;
  5449. float drawDistance;
  5450. /* readonly */
  5451. Color effectiveColor;
  5452. /* readonly */
  5453. float effectiveSpecularIntensity;
  5454. bool enabled;
  5455. /* readonly */
  5456. bool enabledEffective;
  5457. float fadeDistance;
  5458. float fov;
  5459. /* readonly */
  5460. Frustum frustum;
  5461. /* readonly */
  5462. uint id;
  5463. /* readonly */
  5464. bool inView;
  5465. uint lightMask;
  5466. LightType lightType;
  5467. float lodBias;
  5468. uint maxLights;
  5469. /* readonly */
  5470. bool negative;
  5471. /* readonly */
  5472. Node node;
  5473. /* readonly */
  5474. uint numAttributes;
  5475. /* readonly */
  5476. int numShadowSplits;
  5477. ObjectAnimation objectAnimation;
  5478. bool occludee;
  5479. bool occluder;
  5480. bool perVertex;
  5481. Texture rampTexture;
  5482. float range;
  5483. /* readonly */
  5484. int refs;
  5485. BiasParameters shadowBias;
  5486. CascadeParameters shadowCascade;
  5487. float shadowDistance;
  5488. float shadowFadeDistance;
  5489. FocusParameters shadowFocus;
  5490. float shadowIntensity;
  5491. uint shadowMask;
  5492. float shadowNearFarRatio;
  5493. float shadowResolution;
  5494. Texture shapeTexture;
  5495. float specularIntensity;
  5496. bool temporary;
  5497. /* readonly */
  5498. StringHash type;
  5499. /* readonly */
  5500. String typeName;
  5501. uint viewMask;
  5502. /* readonly */
  5503. int weakRefs;
  5504. /* readonly */
  5505. BoundingBox worldBoundingBox;
  5506. uint zoneMask;
  5507. };
  5508. class LineEdit
  5509. {
  5510. // Methods:
  5511. void AddChild(UIElement);
  5512. void AddTag(const String&);
  5513. void AddTags(const String&, int8 = ';');
  5514. void ApplyAttributes();
  5515. void BringToFront();
  5516. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5517. void DisableLayoutUpdate();
  5518. IntVector2 ElementToScreen(const IntVector2&);
  5519. void EnableLayoutUpdate();
  5520. uint FindChild(UIElement) const;
  5521. Variant GetAttribute(const String&) const;
  5522. ValueAnimation GetAttributeAnimation(const String&) const;
  5523. float GetAttributeAnimationSpeed(const String&) const;
  5524. float GetAttributeAnimationTime(const String&) const;
  5525. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5526. Variant GetAttributeDefault(const String&) const;
  5527. UIElement GetChild(const String&, bool = false) const;
  5528. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5529. Array<UIElement> GetChildren(bool = false) const;
  5530. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5531. UIElement GetElementEventSender() const;
  5532. bool GetInterceptNetworkUpdate(const String&) const;
  5533. uint GetNumChildren(bool) const;
  5534. bool HasSubscribedToEvent(Object, const String&);
  5535. bool HasSubscribedToEvent(const String&);
  5536. bool HasTag(const String&) const;
  5537. void InsertChild(uint, UIElement);
  5538. bool IsInside(IntVector2, bool);
  5539. bool IsInsideCombined(IntVector2, bool);
  5540. bool Load(File, bool = false);
  5541. bool Load(VectorBuffer&, bool = false);
  5542. bool LoadChildXML(XMLFile, XMLFile = null);
  5543. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5544. bool LoadJSON(const JSONValue&, bool = false);
  5545. bool LoadXML(File);
  5546. bool LoadXML(VectorBuffer&);
  5547. bool LoadXML(XMLFile, XMLFile);
  5548. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5549. bool LoadXML(const XMLElement&, bool = false);
  5550. void MarkNetworkUpdate() const;
  5551. void Remove();
  5552. void RemoveAllChildren();
  5553. void RemoveAllTags();
  5554. void RemoveAttributeAnimation(const String&);
  5555. void RemoveChild(UIElement, uint = 0);
  5556. void RemoveChild(uint);
  5557. void RemoveInstanceDefault();
  5558. void RemoveObjectAnimation();
  5559. bool RemoveTag(const String&);
  5560. void ResetDeepEnabled();
  5561. void ResetToDefault();
  5562. bool Save(File) const;
  5563. bool Save(VectorBuffer&) const;
  5564. bool SaveJSON(JSONValue&) const;
  5565. bool SaveXML(File, const String& = "\t");
  5566. bool SaveXML(VectorBuffer&, const String& = "\t");
  5567. bool SaveXML(XMLElement&) const;
  5568. IntVector2 ScreenToElement(const IntVector2&);
  5569. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5570. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5571. void SetAnimationTime(float);
  5572. bool SetAttribute(const String&, const Variant&);
  5573. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5574. void SetAttributeAnimationSpeed(const String&, float);
  5575. void SetAttributeAnimationTime(const String&, float);
  5576. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5577. void SetDeepEnabled(bool);
  5578. void SetEnabledRecursive(bool);
  5579. void SetFixedHeight(int);
  5580. void SetFixedSize(int, int);
  5581. void SetFixedWidth(int);
  5582. void SetFullImageRect();
  5583. void SetHoverOffset(int, int);
  5584. void SetInterceptNetworkUpdate(const String&, bool);
  5585. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5586. void SetMaxSize(int, int);
  5587. void SetMinSize(int, int);
  5588. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5589. void SetPosition(int, int);
  5590. void SetSize(int, int);
  5591. bool SetStyle(const String&, XMLFile = null);
  5592. bool SetStyle(const XMLElement&);
  5593. bool SetStyleAuto(XMLFile = null);
  5594. void UpdateLayout();
  5595. const Variant& GetVar(const StringHash&);
  5596. // Properties:
  5597. bool animationEnabled;
  5598. /* readonly */
  5599. Array<Variant> attributeDefaults;
  5600. /* readonly */
  5601. Array<AttributeInfo> attributeInfos;
  5602. Array<Variant> attributes;
  5603. BlendMode blendMode;
  5604. IntRect border;
  5605. bool bringToBack;
  5606. bool bringToFront;
  5607. /* readonly */
  5608. String category;
  5609. /* readonly */
  5610. IntVector2 childOffset;
  5611. /* readonly */
  5612. Array<UIElement> children;
  5613. IntRect clipBorder;
  5614. bool clipChildren;
  5615. /* writeonly */
  5616. Color color;
  5617. /* readonly */
  5618. bool colorGradient;
  5619. Array<Color> colors;
  5620. /* readonly */
  5621. IntRect combinedScreenRect;
  5622. /* readonly */
  5623. BorderImage cursor;
  5624. float cursorBlinkRate;
  5625. bool cursorMovable;
  5626. uint cursorPosition;
  5627. XMLFile defaultStyle;
  5628. /* readonly */
  5629. float derivedOpacity;
  5630. /* readonly */
  5631. uint dragButtonCombo;
  5632. /* readonly */
  5633. int dragButtonCount;
  5634. uint dragDropMode;
  5635. uint echoCharacter;
  5636. bool editable;
  5637. bool elementEventSender;
  5638. bool enabled;
  5639. /* readonly */
  5640. bool enabledSelf;
  5641. /* readonly */
  5642. bool fixedHeight;
  5643. /* readonly */
  5644. bool fixedSize;
  5645. /* readonly */
  5646. bool fixedWidth;
  5647. bool focus;
  5648. FocusMode focusMode;
  5649. int height;
  5650. HorizontalAlignment horizontalAlignment;
  5651. IntVector2 hoverOffset;
  5652. /* readonly */
  5653. bool hovering;
  5654. IntRect imageBorder;
  5655. IntRect imageRect;
  5656. int indent;
  5657. int indentSpacing;
  5658. /* readonly */
  5659. int indentWidth;
  5660. bool internal;
  5661. IntRect layoutBorder;
  5662. Vector2 layoutFlexScale;
  5663. LayoutMode layoutMode;
  5664. int layoutSpacing;
  5665. int maxHeight;
  5666. uint maxLength;
  5667. IntVector2 maxSize;
  5668. int maxWidth;
  5669. int minHeight;
  5670. IntVector2 minSize;
  5671. int minWidth;
  5672. String name;
  5673. /* readonly */
  5674. uint numAllChildren;
  5675. /* readonly */
  5676. uint numAttributes;
  5677. /* readonly */
  5678. uint numChildren;
  5679. ObjectAnimation objectAnimation;
  5680. float opacity;
  5681. UIElement parent;
  5682. IntVector2 position;
  5683. int priority;
  5684. /* readonly */
  5685. int refs;
  5686. /* readonly */
  5687. UIElement root;
  5688. /* readonly */
  5689. IntVector2 screenPosition;
  5690. bool selected;
  5691. IntVector2 size;
  5692. bool sortChildren;
  5693. String style;
  5694. /* readonly */
  5695. Array<String> tags;
  5696. bool temporary;
  5697. String text;
  5698. bool textCopyable;
  5699. /* readonly */
  5700. Text textElement;
  5701. bool textSelectable;
  5702. Texture texture;
  5703. bool tiled;
  5704. TraversalMode traversalMode;
  5705. /* readonly */
  5706. StringHash type;
  5707. /* readonly */
  5708. String typeName;
  5709. bool useDerivedOpacity;
  5710. /* readonly */
  5711. VariantMap vars;
  5712. VerticalAlignment verticalAlignment;
  5713. bool visible;
  5714. /* readonly */
  5715. bool visibleEffective;
  5716. /* readonly */
  5717. int weakRefs;
  5718. int width;
  5719. };
  5720. class ListView
  5721. {
  5722. // Methods:
  5723. void AddChild(UIElement);
  5724. void AddItem(UIElement);
  5725. void AddSelection(uint);
  5726. void AddTag(const String&);
  5727. void AddTags(const String&, int8 = ';');
  5728. void ApplyAttributes();
  5729. void BringToFront();
  5730. void ChangeSelection(int, bool);
  5731. void ClearSelection();
  5732. void CopySelectedItemsToClipboard();
  5733. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5734. void DisableLayoutUpdate();
  5735. IntVector2 ElementToScreen(const IntVector2&);
  5736. void EnableLayoutUpdate();
  5737. void Expand(uint, bool, bool = false);
  5738. uint FindChild(UIElement) const;
  5739. uint FindItem(UIElement);
  5740. Variant GetAttribute(const String&) const;
  5741. ValueAnimation GetAttributeAnimation(const String&) const;
  5742. float GetAttributeAnimationSpeed(const String&) const;
  5743. float GetAttributeAnimationTime(const String&) const;
  5744. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5745. Variant GetAttributeDefault(const String&) const;
  5746. UIElement GetChild(const String&, bool = false) const;
  5747. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5748. Array<UIElement> GetChildren(bool = false) const;
  5749. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5750. UIElement GetElementEventSender() const;
  5751. bool GetInterceptNetworkUpdate(const String&) const;
  5752. Array<UIElement> GetItems() const;
  5753. uint GetNumChildren(bool) const;
  5754. bool HasSubscribedToEvent(Object, const String&);
  5755. bool HasSubscribedToEvent(const String&);
  5756. bool HasTag(const String&) const;
  5757. void InsertChild(uint, UIElement);
  5758. void InsertItem(uint, UIElement, UIElement = null);
  5759. bool IsExpanded(uint) const;
  5760. bool IsInside(IntVector2, bool);
  5761. bool IsInsideCombined(IntVector2, bool);
  5762. bool IsSelected(uint) const;
  5763. bool Load(File, bool = false);
  5764. bool Load(VectorBuffer&, bool = false);
  5765. bool LoadChildXML(XMLFile, XMLFile = null);
  5766. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5767. bool LoadJSON(const JSONValue&, bool = false);
  5768. bool LoadXML(File);
  5769. bool LoadXML(VectorBuffer&);
  5770. bool LoadXML(XMLFile, XMLFile);
  5771. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5772. bool LoadXML(const XMLElement&, bool = false);
  5773. void MarkNetworkUpdate() const;
  5774. void Remove();
  5775. void RemoveAllChildren();
  5776. void RemoveAllItems();
  5777. void RemoveAllTags();
  5778. void RemoveAttributeAnimation(const String&);
  5779. void RemoveChild(UIElement, uint = 0);
  5780. void RemoveChild(uint);
  5781. void RemoveInstanceDefault();
  5782. void RemoveItem(UIElement, uint = 0);
  5783. void RemoveItem(uint);
  5784. void RemoveObjectAnimation();
  5785. void RemoveSelection(uint);
  5786. bool RemoveTag(const String&);
  5787. void ResetDeepEnabled();
  5788. void ResetToDefault();
  5789. bool Save(File) const;
  5790. bool Save(VectorBuffer&) const;
  5791. bool SaveJSON(JSONValue&) const;
  5792. bool SaveXML(File, const String& = "\t");
  5793. bool SaveXML(VectorBuffer&, const String& = "\t");
  5794. bool SaveXML(XMLElement&) const;
  5795. IntVector2 ScreenToElement(const IntVector2&);
  5796. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5797. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5798. void SetAnimationTime(float);
  5799. bool SetAttribute(const String&, const Variant&);
  5800. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5801. void SetAttributeAnimationSpeed(const String&, float);
  5802. void SetAttributeAnimationTime(const String&, float);
  5803. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5804. void SetDeepEnabled(bool);
  5805. void SetEnabledRecursive(bool);
  5806. void SetFixedHeight(int);
  5807. void SetFixedSize(int, int);
  5808. void SetFixedWidth(int);
  5809. void SetInterceptNetworkUpdate(const String&, bool);
  5810. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5811. void SetMaxSize(int, int);
  5812. void SetMinSize(int, int);
  5813. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5814. void SetPosition(int, int);
  5815. void SetScrollBarsVisible(bool, bool);
  5816. void SetSelections(Array<uint>);
  5817. void SetSize(int, int);
  5818. bool SetStyle(const String&, XMLFile = null);
  5819. bool SetStyle(const XMLElement&);
  5820. bool SetStyleAuto(XMLFile = null);
  5821. void SetViewPosition(int, int);
  5822. void ToggleExpand(uint, bool = false);
  5823. void ToggleSelection(uint);
  5824. void UpdateLayout();
  5825. const Variant& GetVar(const StringHash&);
  5826. // Properties:
  5827. bool animationEnabled;
  5828. /* readonly */
  5829. Array<Variant> attributeDefaults;
  5830. /* readonly */
  5831. Array<AttributeInfo> attributeInfos;
  5832. Array<Variant> attributes;
  5833. bool autoDisableChildren;
  5834. float autoDisableThreshold;
  5835. int baseIndent;
  5836. bool bringToBack;
  5837. bool bringToFront;
  5838. /* readonly */
  5839. String category;
  5840. /* readonly */
  5841. IntVector2 childOffset;
  5842. /* readonly */
  5843. Array<UIElement> children;
  5844. bool clearSelectionOnDefocus;
  5845. IntRect clipBorder;
  5846. bool clipChildren;
  5847. /* writeonly */
  5848. Color color;
  5849. /* readonly */
  5850. bool colorGradient;
  5851. Array<Color> colors;
  5852. /* readonly */
  5853. IntRect combinedScreenRect;
  5854. /* readonly */
  5855. UIElement contentElement;
  5856. XMLFile defaultStyle;
  5857. /* readonly */
  5858. float derivedOpacity;
  5859. /* readonly */
  5860. uint dragButtonCombo;
  5861. /* readonly */
  5862. int dragButtonCount;
  5863. uint dragDropMode;
  5864. bool editable;
  5865. bool elementEventSender;
  5866. bool enabled;
  5867. /* readonly */
  5868. bool enabledSelf;
  5869. /* readonly */
  5870. bool fixedHeight;
  5871. /* readonly */
  5872. bool fixedSize;
  5873. /* readonly */
  5874. bool fixedWidth;
  5875. bool focus;
  5876. FocusMode focusMode;
  5877. int height;
  5878. bool hierarchyMode;
  5879. HighlightMode highlightMode;
  5880. HorizontalAlignment horizontalAlignment;
  5881. /* readonly */
  5882. ScrollBar horizontalScrollBar;
  5883. /* readonly */
  5884. bool hovering;
  5885. int indent;
  5886. int indentSpacing;
  5887. /* readonly */
  5888. int indentWidth;
  5889. bool internal;
  5890. /* readonly */
  5891. Array<UIElement> items;
  5892. IntRect layoutBorder;
  5893. Vector2 layoutFlexScale;
  5894. LayoutMode layoutMode;
  5895. int layoutSpacing;
  5896. int maxHeight;
  5897. IntVector2 maxSize;
  5898. int maxWidth;
  5899. int minHeight;
  5900. IntVector2 minSize;
  5901. int minWidth;
  5902. bool multiselect;
  5903. String name;
  5904. /* readonly */
  5905. uint numAllChildren;
  5906. /* readonly */
  5907. uint numAttributes;
  5908. /* readonly */
  5909. uint numChildren;
  5910. /* readonly */
  5911. uint numItems;
  5912. ObjectAnimation objectAnimation;
  5913. float opacity;
  5914. float pageStep;
  5915. UIElement parent;
  5916. IntVector2 position;
  5917. int priority;
  5918. /* readonly */
  5919. int refs;
  5920. /* readonly */
  5921. UIElement root;
  5922. /* readonly */
  5923. IntVector2 screenPosition;
  5924. bool scrollBarsAutoVisible;
  5925. float scrollDeceleration;
  5926. /* readonly */
  5927. BorderImage scrollPanel;
  5928. float scrollSnapEpsilon;
  5929. float scrollStep;
  5930. bool selectOnClickEnd;
  5931. bool selected;
  5932. /* readonly */
  5933. UIElement selectedItem;
  5934. /* readonly */
  5935. Array<UIElement> selectedItems;
  5936. uint selection;
  5937. /* readonly */
  5938. Array<uint> selections;
  5939. IntVector2 size;
  5940. bool sortChildren;
  5941. String style;
  5942. /* readonly */
  5943. Array<String> tags;
  5944. bool temporary;
  5945. TraversalMode traversalMode;
  5946. /* readonly */
  5947. StringHash type;
  5948. /* readonly */
  5949. String typeName;
  5950. bool useDerivedOpacity;
  5951. /* readonly */
  5952. VariantMap vars;
  5953. VerticalAlignment verticalAlignment;
  5954. /* readonly */
  5955. ScrollBar verticalScrollBar;
  5956. IntVector2 viewPosition;
  5957. bool visible;
  5958. /* readonly */
  5959. bool visibleEffective;
  5960. /* readonly */
  5961. int weakRefs;
  5962. int width;
  5963. };
  5964. class Localization
  5965. {
  5966. // Methods:
  5967. String Get(const String&);
  5968. String GetLanguage(int);
  5969. int GetLanguageIndex(const String&);
  5970. bool HasSubscribedToEvent(Object, const String&);
  5971. bool HasSubscribedToEvent(const String&);
  5972. void LoadJSON(const JSONValue&);
  5973. void LoadJSONFile(const String&);
  5974. void Reset();
  5975. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5976. void SetLanguage(const String&);
  5977. void SetLanguage(int);
  5978. // Properties:
  5979. /* readonly */
  5980. String category;
  5981. /* readonly */
  5982. String language;
  5983. /* readonly */
  5984. int languageIndex;
  5985. /* readonly */
  5986. int numLanguages;
  5987. /* readonly */
  5988. int refs;
  5989. /* readonly */
  5990. StringHash type;
  5991. /* readonly */
  5992. String typeName;
  5993. /* readonly */
  5994. int weakRefs;
  5995. };
  5996. class Log
  5997. {
  5998. // Methods:
  5999. void Close();
  6000. void Debug(const String&);
  6001. void Error(const String&);
  6002. bool HasSubscribedToEvent(Object, const String&);
  6003. bool HasSubscribedToEvent(const String&);
  6004. void Info(const String&);
  6005. void Open(const String&);
  6006. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6007. void Warning(const String&);
  6008. void Write(const String&, bool = false);
  6009. // Properties:
  6010. /* readonly */
  6011. String category;
  6012. /* readonly */
  6013. String lastMessage;
  6014. int level;
  6015. bool quiet;
  6016. /* readonly */
  6017. int refs;
  6018. bool timeStamp;
  6019. /* readonly */
  6020. StringHash type;
  6021. /* readonly */
  6022. String typeName;
  6023. /* readonly */
  6024. int weakRefs;
  6025. };
  6026. class Material
  6027. {
  6028. // Methods:
  6029. Material Clone(const String& = String ( )) const;
  6030. Pass GetPass(uint, const String&);
  6031. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6032. float GetShaderParameterAnimationSpeed(const String&) const;
  6033. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6034. bool HasSubscribedToEvent(Object, const String&);
  6035. bool HasSubscribedToEvent(const String&);
  6036. bool Load(File);
  6037. bool Load(VectorBuffer&);
  6038. bool Load(const JSONValue&);
  6039. bool Load(const XMLElement&);
  6040. void RemoveShaderParameter(const String&);
  6041. bool Save(File) const;
  6042. bool Save(JSONValue&) const;
  6043. bool Save(VectorBuffer&) const;
  6044. bool Save(XMLElement&) const;
  6045. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6046. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6047. void SetShaderParameterAnimationSpeed(const String&, float);
  6048. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6049. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6050. void SetUVTransform(const Vector2&, float, const Vector2&);
  6051. void SetUVTransform(const Vector2&, float, float);
  6052. void SortTechniques();
  6053. // Properties:
  6054. /* readonly */
  6055. String category;
  6056. CullMode cullMode;
  6057. BiasParameters depthBias;
  6058. FillMode fillMode;
  6059. /* readonly */
  6060. uint memoryUse;
  6061. String name;
  6062. uint numTechniques;
  6063. /* readonly */
  6064. bool occlusion;
  6065. /* readonly */
  6066. int refs;
  6067. uint8 renderOrder;
  6068. Scene scene;
  6069. /* readonly */
  6070. Array<String> shaderParameterNames;
  6071. Array<Variant> shaderParameters;
  6072. CullMode shadowCullMode;
  6073. /* readonly */
  6074. Array<TechniqueEntry> techniqueEntries;
  6075. /* readonly */
  6076. Array<Technique> techniques;
  6077. Array<Texture> textures;
  6078. /* readonly */
  6079. StringHash type;
  6080. /* readonly */
  6081. String typeName;
  6082. /* readonly */
  6083. uint useTimer;
  6084. /* readonly */
  6085. int weakRefs;
  6086. };
  6087. class Matrix2
  6088. {
  6089. // Methods:
  6090. bool Equals(const Matrix2&) const;
  6091. Matrix2 Inverse() const;
  6092. Vector2 Scale() const;
  6093. Matrix2 Scaled(const Vector2&) const;
  6094. void SetScale(const Vector2&);
  6095. void SetScale(float);
  6096. String ToString() const;
  6097. Matrix2 Transpose() const;
  6098. // Properties:
  6099. float m00;
  6100. float m01;
  6101. float m10;
  6102. float m11;
  6103. };
  6104. class Matrix3
  6105. {
  6106. // Methods:
  6107. bool Equals(const Matrix3&) const;
  6108. Matrix3 Inverse() const;
  6109. Vector3 Scale() const;
  6110. Matrix3 Scaled(const Vector3&) const;
  6111. void SetScale(const Vector3&);
  6112. void SetScale(float);
  6113. String ToString() const;
  6114. Matrix3 Transpose() const;
  6115. // Properties:
  6116. float m00;
  6117. float m01;
  6118. float m02;
  6119. float m10;
  6120. float m11;
  6121. float m12;
  6122. float m20;
  6123. float m21;
  6124. float m22;
  6125. };
  6126. class Matrix3x4
  6127. {
  6128. // Methods:
  6129. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6130. bool Equals(const Matrix3x4&) const;
  6131. Matrix3x4 Inverse() const;
  6132. Quaternion Rotation() const;
  6133. Matrix3 RotationMatrix() const;
  6134. Vector3 Scale() const;
  6135. void SetRotation(const Matrix3&);
  6136. void SetScale(const Vector3&);
  6137. void SetScale(float);
  6138. void SetTranslation(const Vector3&);
  6139. Matrix3 ToMatrix3() const;
  6140. Matrix4 ToMatrix4() const;
  6141. String ToString() const;
  6142. Vector3 Translation() const;
  6143. // Properties:
  6144. float m00;
  6145. float m01;
  6146. float m02;
  6147. float m03;
  6148. float m10;
  6149. float m11;
  6150. float m12;
  6151. float m13;
  6152. float m20;
  6153. float m21;
  6154. float m22;
  6155. float m23;
  6156. };
  6157. class Matrix4
  6158. {
  6159. // Methods:
  6160. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6161. bool Equals(const Matrix4&) const;
  6162. Matrix4 Inverse() const;
  6163. Quaternion Rotation() const;
  6164. Matrix3 RotationMatrix() const;
  6165. Vector3 Scale() const;
  6166. void SetRotation(const Matrix3&);
  6167. void SetScale(const Vector3&);
  6168. void SetScale(float);
  6169. void SetTranslation(const Vector3&);
  6170. Matrix3 ToMatrix3() const;
  6171. String ToString() const;
  6172. Vector3 Translation() const;
  6173. Matrix4 Transpose() const;
  6174. // Properties:
  6175. float m00;
  6176. float m01;
  6177. float m02;
  6178. float m03;
  6179. float m10;
  6180. float m11;
  6181. float m12;
  6182. float m13;
  6183. float m20;
  6184. float m21;
  6185. float m22;
  6186. float m23;
  6187. float m30;
  6188. float m31;
  6189. float m32;
  6190. float m33;
  6191. };
  6192. class Menu
  6193. {
  6194. // Methods:
  6195. void AddChild(UIElement);
  6196. void AddTag(const String&);
  6197. void AddTags(const String&, int8 = ';');
  6198. void ApplyAttributes();
  6199. void BringToFront();
  6200. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6201. void DisableLayoutUpdate();
  6202. IntVector2 ElementToScreen(const IntVector2&);
  6203. void EnableLayoutUpdate();
  6204. uint FindChild(UIElement) const;
  6205. Variant GetAttribute(const String&) const;
  6206. ValueAnimation GetAttributeAnimation(const String&) const;
  6207. float GetAttributeAnimationSpeed(const String&) const;
  6208. float GetAttributeAnimationTime(const String&) const;
  6209. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6210. Variant GetAttributeDefault(const String&) const;
  6211. UIElement GetChild(const String&, bool = false) const;
  6212. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6213. Array<UIElement> GetChildren(bool = false) const;
  6214. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6215. UIElement GetElementEventSender() const;
  6216. bool GetInterceptNetworkUpdate(const String&) const;
  6217. uint GetNumChildren(bool) const;
  6218. bool HasSubscribedToEvent(Object, const String&);
  6219. bool HasSubscribedToEvent(const String&);
  6220. bool HasTag(const String&) const;
  6221. void InsertChild(uint, UIElement);
  6222. bool IsInside(IntVector2, bool);
  6223. bool IsInsideCombined(IntVector2, bool);
  6224. bool Load(File, bool = false);
  6225. bool Load(VectorBuffer&, bool = false);
  6226. bool LoadChildXML(XMLFile, XMLFile = null);
  6227. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6228. bool LoadJSON(const JSONValue&, bool = false);
  6229. bool LoadXML(File);
  6230. bool LoadXML(VectorBuffer&);
  6231. bool LoadXML(XMLFile, XMLFile);
  6232. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6233. bool LoadXML(const XMLElement&, bool = false);
  6234. void MarkNetworkUpdate() const;
  6235. void Remove();
  6236. void RemoveAllChildren();
  6237. void RemoveAllTags();
  6238. void RemoveAttributeAnimation(const String&);
  6239. void RemoveChild(UIElement, uint = 0);
  6240. void RemoveChild(uint);
  6241. void RemoveInstanceDefault();
  6242. void RemoveObjectAnimation();
  6243. bool RemoveTag(const String&);
  6244. void ResetDeepEnabled();
  6245. void ResetToDefault();
  6246. bool Save(File) const;
  6247. bool Save(VectorBuffer&) const;
  6248. bool SaveJSON(JSONValue&) const;
  6249. bool SaveXML(File, const String& = "\t");
  6250. bool SaveXML(VectorBuffer&, const String& = "\t");
  6251. bool SaveXML(XMLElement&) const;
  6252. IntVector2 ScreenToElement(const IntVector2&);
  6253. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6254. void SetAccelerator(int, int);
  6255. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6256. void SetAnimationTime(float);
  6257. bool SetAttribute(const String&, const Variant&);
  6258. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6259. void SetAttributeAnimationSpeed(const String&, float);
  6260. void SetAttributeAnimationTime(const String&, float);
  6261. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6262. void SetDeepEnabled(bool);
  6263. void SetEnabledRecursive(bool);
  6264. void SetFixedHeight(int);
  6265. void SetFixedSize(int, int);
  6266. void SetFixedWidth(int);
  6267. void SetFullImageRect();
  6268. void SetHoverOffset(int, int);
  6269. void SetInterceptNetworkUpdate(const String&, bool);
  6270. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6271. void SetMaxSize(int, int);
  6272. void SetMinSize(int, int);
  6273. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6274. void SetPopupOffset(int, int);
  6275. void SetPosition(int, int);
  6276. void SetPressedChildOffset(int, int);
  6277. void SetPressedOffset(int, int);
  6278. void SetRepeat(float, float);
  6279. void SetSize(int, int);
  6280. bool SetStyle(const String&, XMLFile = null);
  6281. bool SetStyle(const XMLElement&);
  6282. bool SetStyleAuto(XMLFile = null);
  6283. void UpdateLayout();
  6284. const Variant& GetVar(const StringHash&);
  6285. // Properties:
  6286. /* readonly */
  6287. int acceleratorKey;
  6288. /* readonly */
  6289. int acceleratorQualifiers;
  6290. bool animationEnabled;
  6291. /* readonly */
  6292. Array<Variant> attributeDefaults;
  6293. /* readonly */
  6294. Array<AttributeInfo> attributeInfos;
  6295. Array<Variant> attributes;
  6296. BlendMode blendMode;
  6297. IntRect border;
  6298. bool bringToBack;
  6299. bool bringToFront;
  6300. /* readonly */
  6301. String category;
  6302. /* readonly */
  6303. IntVector2 childOffset;
  6304. /* readonly */
  6305. Array<UIElement> children;
  6306. IntRect clipBorder;
  6307. bool clipChildren;
  6308. /* writeonly */
  6309. Color color;
  6310. /* readonly */
  6311. bool colorGradient;
  6312. Array<Color> colors;
  6313. /* readonly */
  6314. IntRect combinedScreenRect;
  6315. XMLFile defaultStyle;
  6316. /* readonly */
  6317. float derivedOpacity;
  6318. /* readonly */
  6319. uint dragButtonCombo;
  6320. /* readonly */
  6321. int dragButtonCount;
  6322. uint dragDropMode;
  6323. bool editable;
  6324. bool elementEventSender;
  6325. bool enabled;
  6326. /* readonly */
  6327. bool enabledSelf;
  6328. /* readonly */
  6329. bool fixedHeight;
  6330. /* readonly */
  6331. bool fixedSize;
  6332. /* readonly */
  6333. bool fixedWidth;
  6334. bool focus;
  6335. FocusMode focusMode;
  6336. int height;
  6337. HorizontalAlignment horizontalAlignment;
  6338. IntVector2 hoverOffset;
  6339. /* readonly */
  6340. bool hovering;
  6341. IntRect imageBorder;
  6342. IntRect imageRect;
  6343. int indent;
  6344. int indentSpacing;
  6345. /* readonly */
  6346. int indentWidth;
  6347. bool internal;
  6348. IntRect layoutBorder;
  6349. Vector2 layoutFlexScale;
  6350. LayoutMode layoutMode;
  6351. int layoutSpacing;
  6352. int maxHeight;
  6353. IntVector2 maxSize;
  6354. int maxWidth;
  6355. int minHeight;
  6356. IntVector2 minSize;
  6357. int minWidth;
  6358. String name;
  6359. /* readonly */
  6360. uint numAllChildren;
  6361. /* readonly */
  6362. uint numAttributes;
  6363. /* readonly */
  6364. uint numChildren;
  6365. ObjectAnimation objectAnimation;
  6366. float opacity;
  6367. UIElement parent;
  6368. UIElement popup;
  6369. IntVector2 popupOffset;
  6370. IntVector2 position;
  6371. /* readonly */
  6372. bool pressed;
  6373. IntVector2 pressedChildOffset;
  6374. IntVector2 pressedOffset;
  6375. int priority;
  6376. /* readonly */
  6377. int refs;
  6378. float repeatDelay;
  6379. float repeatRate;
  6380. /* readonly */
  6381. UIElement root;
  6382. /* readonly */
  6383. IntVector2 screenPosition;
  6384. bool selected;
  6385. bool showPopup;
  6386. IntVector2 size;
  6387. bool sortChildren;
  6388. String style;
  6389. /* readonly */
  6390. Array<String> tags;
  6391. bool temporary;
  6392. Texture texture;
  6393. bool tiled;
  6394. TraversalMode traversalMode;
  6395. /* readonly */
  6396. StringHash type;
  6397. /* readonly */
  6398. String typeName;
  6399. bool useDerivedOpacity;
  6400. /* readonly */
  6401. VariantMap vars;
  6402. VerticalAlignment verticalAlignment;
  6403. bool visible;
  6404. /* readonly */
  6405. bool visibleEffective;
  6406. /* readonly */
  6407. int weakRefs;
  6408. int width;
  6409. };
  6410. class MessageBox
  6411. {
  6412. // Methods:
  6413. bool HasSubscribedToEvent(Object, const String&);
  6414. bool HasSubscribedToEvent(const String&);
  6415. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6416. // Properties:
  6417. /* readonly */
  6418. String category;
  6419. String message;
  6420. /* readonly */
  6421. int refs;
  6422. String title;
  6423. /* readonly */
  6424. StringHash type;
  6425. /* readonly */
  6426. String typeName;
  6427. /* readonly */
  6428. int weakRefs;
  6429. /* readonly */
  6430. UIElement window;
  6431. };
  6432. class Model
  6433. {
  6434. // Methods:
  6435. Model Clone(const String& = String ( )) const;
  6436. Geometry GetGeometry(uint, uint) const;
  6437. bool HasSubscribedToEvent(Object, const String&);
  6438. bool HasSubscribedToEvent(const String&);
  6439. bool Load(File);
  6440. bool Load(VectorBuffer&);
  6441. bool Save(File) const;
  6442. bool Save(VectorBuffer&) const;
  6443. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6444. bool SetGeometry(uint, uint, Geometry);
  6445. // Properties:
  6446. BoundingBox boundingBox;
  6447. /* readonly */
  6448. String category;
  6449. Array<Vector3> geometryCenters;
  6450. /* readonly */
  6451. uint memoryUse;
  6452. String name;
  6453. uint numGeometries;
  6454. Array<uint> numGeometryLodLevels;
  6455. /* readonly */
  6456. uint numMorphs;
  6457. /* readonly */
  6458. int refs;
  6459. /* readonly */
  6460. Skeleton skeleton;
  6461. /* readonly */
  6462. StringHash type;
  6463. /* readonly */
  6464. String typeName;
  6465. /* readonly */
  6466. uint useTimer;
  6467. /* readonly */
  6468. int weakRefs;
  6469. };
  6470. class NavArea
  6471. {
  6472. // Methods:
  6473. void ApplyAttributes();
  6474. void DrawDebugGeometry(DebugRenderer, bool);
  6475. Variant GetAttribute(const String&) const;
  6476. ValueAnimation GetAttributeAnimation(const String&) const;
  6477. float GetAttributeAnimationSpeed(const String&) const;
  6478. float GetAttributeAnimationTime(const String&) const;
  6479. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6480. Variant GetAttributeDefault(const String&) const;
  6481. bool GetInterceptNetworkUpdate(const String&) const;
  6482. bool HasSubscribedToEvent(Object, const String&);
  6483. bool HasSubscribedToEvent(const String&);
  6484. bool Load(File, bool = false);
  6485. bool Load(VectorBuffer&, bool = false);
  6486. bool LoadJSON(const JSONValue&, bool = false);
  6487. bool LoadXML(const XMLElement&, bool = false);
  6488. void MarkNetworkUpdate() const;
  6489. void Remove();
  6490. void RemoveAttributeAnimation(const String&);
  6491. void RemoveInstanceDefault();
  6492. void RemoveObjectAnimation();
  6493. void ResetToDefault();
  6494. bool Save(File) const;
  6495. bool Save(VectorBuffer&) const;
  6496. bool SaveJSON(JSONValue&) const;
  6497. bool SaveXML(XMLElement&) const;
  6498. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6499. void SetAnimationTime(float);
  6500. bool SetAttribute(const String&, const Variant&);
  6501. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6502. void SetAttributeAnimationSpeed(const String&, float);
  6503. void SetAttributeAnimationTime(const String&, float);
  6504. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6505. void SetInterceptNetworkUpdate(const String&, bool);
  6506. // Properties:
  6507. bool animationEnabled;
  6508. uint areaID;
  6509. /* readonly */
  6510. Array<Variant> attributeDefaults;
  6511. /* readonly */
  6512. Array<AttributeInfo> attributeInfos;
  6513. Array<Variant> attributes;
  6514. BoundingBox boundingBox;
  6515. /* readonly */
  6516. String category;
  6517. bool enabled;
  6518. /* readonly */
  6519. bool enabledEffective;
  6520. /* readonly */
  6521. uint id;
  6522. /* readonly */
  6523. Node node;
  6524. /* readonly */
  6525. uint numAttributes;
  6526. ObjectAnimation objectAnimation;
  6527. /* readonly */
  6528. int refs;
  6529. bool temporary;
  6530. /* readonly */
  6531. StringHash type;
  6532. /* readonly */
  6533. String typeName;
  6534. /* readonly */
  6535. int weakRefs;
  6536. /* readonly */
  6537. BoundingBox worldBoundingBox;
  6538. };
  6539. class Navigable
  6540. {
  6541. // Methods:
  6542. void ApplyAttributes();
  6543. void DrawDebugGeometry(DebugRenderer, bool);
  6544. Variant GetAttribute(const String&) const;
  6545. ValueAnimation GetAttributeAnimation(const String&) const;
  6546. float GetAttributeAnimationSpeed(const String&) const;
  6547. float GetAttributeAnimationTime(const String&) const;
  6548. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6549. Variant GetAttributeDefault(const String&) const;
  6550. bool GetInterceptNetworkUpdate(const String&) const;
  6551. bool HasSubscribedToEvent(Object, const String&);
  6552. bool HasSubscribedToEvent(const String&);
  6553. bool Load(File, bool = false);
  6554. bool Load(VectorBuffer&, bool = false);
  6555. bool LoadJSON(const JSONValue&, bool = false);
  6556. bool LoadXML(const XMLElement&, bool = false);
  6557. void MarkNetworkUpdate() const;
  6558. void Remove();
  6559. void RemoveAttributeAnimation(const String&);
  6560. void RemoveInstanceDefault();
  6561. void RemoveObjectAnimation();
  6562. void ResetToDefault();
  6563. bool Save(File) const;
  6564. bool Save(VectorBuffer&) const;
  6565. bool SaveJSON(JSONValue&) const;
  6566. bool SaveXML(XMLElement&) const;
  6567. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6568. void SetAnimationTime(float);
  6569. bool SetAttribute(const String&, const Variant&);
  6570. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6571. void SetAttributeAnimationSpeed(const String&, float);
  6572. void SetAttributeAnimationTime(const String&, float);
  6573. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6574. void SetInterceptNetworkUpdate(const String&, bool);
  6575. // Properties:
  6576. bool animationEnabled;
  6577. /* readonly */
  6578. Array<Variant> attributeDefaults;
  6579. /* readonly */
  6580. Array<AttributeInfo> attributeInfos;
  6581. Array<Variant> attributes;
  6582. /* readonly */
  6583. String category;
  6584. bool enabled;
  6585. /* readonly */
  6586. bool enabledEffective;
  6587. /* readonly */
  6588. uint id;
  6589. /* readonly */
  6590. Node node;
  6591. /* readonly */
  6592. uint numAttributes;
  6593. ObjectAnimation objectAnimation;
  6594. bool recursive;
  6595. /* readonly */
  6596. int refs;
  6597. bool temporary;
  6598. /* readonly */
  6599. StringHash type;
  6600. /* readonly */
  6601. String typeName;
  6602. /* readonly */
  6603. int weakRefs;
  6604. };
  6605. class NavigationMesh
  6606. {
  6607. // Methods:
  6608. void ApplyAttributes();
  6609. bool Build();
  6610. bool Build(const BoundingBox&);
  6611. void DrawDebugGeometry(DebugRenderer, bool);
  6612. void DrawDebugGeometry(bool);
  6613. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6614. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6615. float GetAreaCost(uint) const;
  6616. Variant GetAttribute(const String&) const;
  6617. ValueAnimation GetAttributeAnimation(const String&) const;
  6618. float GetAttributeAnimationSpeed(const String&) const;
  6619. float GetAttributeAnimationTime(const String&) const;
  6620. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6621. Variant GetAttributeDefault(const String&) const;
  6622. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6623. bool GetInterceptNetworkUpdate(const String&) const;
  6624. Vector3 GetRandomPoint();
  6625. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6626. bool HasSubscribedToEvent(Object, const String&);
  6627. bool HasSubscribedToEvent(const String&);
  6628. bool Load(File, bool = false);
  6629. bool Load(VectorBuffer&, bool = false);
  6630. bool LoadJSON(const JSONValue&, bool = false);
  6631. bool LoadXML(const XMLElement&, bool = false);
  6632. void MarkNetworkUpdate() const;
  6633. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6634. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6635. void Remove();
  6636. void RemoveAttributeAnimation(const String&);
  6637. void RemoveInstanceDefault();
  6638. void RemoveObjectAnimation();
  6639. void ResetToDefault();
  6640. bool Save(File) const;
  6641. bool Save(VectorBuffer&) const;
  6642. bool SaveJSON(JSONValue&) const;
  6643. bool SaveXML(XMLElement&) const;
  6644. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6645. void SetAnimationTime(float);
  6646. void SetAreaCost(uint, float);
  6647. bool SetAttribute(const String&, const Variant&);
  6648. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6649. void SetAttributeAnimationSpeed(const String&, float);
  6650. void SetAttributeAnimationTime(const String&, float);
  6651. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6652. void SetInterceptNetworkUpdate(const String&, bool);
  6653. // Properties:
  6654. float agentHeight;
  6655. float agentMaxClimb;
  6656. float agentMaxSlope;
  6657. float agentRadius;
  6658. bool animationEnabled;
  6659. /* readonly */
  6660. Array<Variant> attributeDefaults;
  6661. /* readonly */
  6662. Array<AttributeInfo> attributeInfos;
  6663. Array<Variant> attributes;
  6664. /* readonly */
  6665. BoundingBox boundingBox;
  6666. /* readonly */
  6667. String category;
  6668. float cellHeight;
  6669. float cellSize;
  6670. float detailSampleDistance;
  6671. float detailSampleMaxError;
  6672. bool drawNavAreas;
  6673. bool drawOffMeshConnections;
  6674. float edgeMaxError;
  6675. float edgeMaxLength;
  6676. bool enabled;
  6677. /* readonly */
  6678. bool enabledEffective;
  6679. /* readonly */
  6680. uint id;
  6681. /* readonly */
  6682. bool initialized;
  6683. /* readonly */
  6684. Node node;
  6685. /* readonly */
  6686. uint numAttributes;
  6687. /* readonly */
  6688. IntVector2 numTiles;
  6689. ObjectAnimation objectAnimation;
  6690. Vector3 padding;
  6691. NavmeshPartitionType partitionType;
  6692. /* readonly */
  6693. int refs;
  6694. float regionMergeSize;
  6695. float regionMinSize;
  6696. bool temporary;
  6697. int tileSize;
  6698. /* readonly */
  6699. StringHash type;
  6700. /* readonly */
  6701. String typeName;
  6702. /* readonly */
  6703. int weakRefs;
  6704. /* readonly */
  6705. BoundingBox worldBoundingBox;
  6706. };
  6707. class Network
  6708. {
  6709. // Methods:
  6710. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6711. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6712. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6713. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6714. bool CheckRemoteEvent(const String&) const;
  6715. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6716. void Disconnect(int = 0);
  6717. bool HasSubscribedToEvent(Object, const String&);
  6718. bool HasSubscribedToEvent(const String&);
  6719. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6720. void RegisterRemoteEvent(const String&) const;
  6721. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6722. void SendPackageToClients(Scene, PackageFile);
  6723. bool StartServer(uint16);
  6724. void StopServer();
  6725. void UnregisterAllRemoteEvents();
  6726. void UnregisterRemoteEvent(const String&) const;
  6727. // Properties:
  6728. /* readonly */
  6729. String category;
  6730. /* readonly */
  6731. Array<Connection> clientConnections;
  6732. String packageCacheDir;
  6733. /* readonly */
  6734. int refs;
  6735. /* readonly */
  6736. Connection serverConnection;
  6737. /* readonly */
  6738. bool serverRunning;
  6739. int simulatedLatency;
  6740. float simulatedPacketLoss;
  6741. /* readonly */
  6742. StringHash type;
  6743. /* readonly */
  6744. String typeName;
  6745. int updateFps;
  6746. /* readonly */
  6747. int weakRefs;
  6748. };
  6749. class NetworkPriority
  6750. {
  6751. // Methods:
  6752. void ApplyAttributes();
  6753. void DrawDebugGeometry(DebugRenderer, bool);
  6754. Variant GetAttribute(const String&) const;
  6755. ValueAnimation GetAttributeAnimation(const String&) const;
  6756. float GetAttributeAnimationSpeed(const String&) const;
  6757. float GetAttributeAnimationTime(const String&) const;
  6758. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6759. Variant GetAttributeDefault(const String&) const;
  6760. bool GetInterceptNetworkUpdate(const String&) const;
  6761. bool HasSubscribedToEvent(Object, const String&);
  6762. bool HasSubscribedToEvent(const String&);
  6763. bool Load(File, bool = false);
  6764. bool Load(VectorBuffer&, bool = false);
  6765. bool LoadJSON(const JSONValue&, bool = false);
  6766. bool LoadXML(const XMLElement&, bool = false);
  6767. void MarkNetworkUpdate() const;
  6768. void Remove();
  6769. void RemoveAttributeAnimation(const String&);
  6770. void RemoveInstanceDefault();
  6771. void RemoveObjectAnimation();
  6772. void ResetToDefault();
  6773. bool Save(File) const;
  6774. bool Save(VectorBuffer&) const;
  6775. bool SaveJSON(JSONValue&) const;
  6776. bool SaveXML(XMLElement&) const;
  6777. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6778. void SetAnimationTime(float);
  6779. bool SetAttribute(const String&, const Variant&);
  6780. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6781. void SetAttributeAnimationSpeed(const String&, float);
  6782. void SetAttributeAnimationTime(const String&, float);
  6783. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6784. void SetInterceptNetworkUpdate(const String&, bool);
  6785. // Properties:
  6786. bool alwaysUpdateOwner;
  6787. bool animationEnabled;
  6788. /* readonly */
  6789. Array<Variant> attributeDefaults;
  6790. /* readonly */
  6791. Array<AttributeInfo> attributeInfos;
  6792. Array<Variant> attributes;
  6793. float basePriority;
  6794. /* readonly */
  6795. String category;
  6796. float distanceFactor;
  6797. bool enabled;
  6798. /* readonly */
  6799. bool enabledEffective;
  6800. /* readonly */
  6801. uint id;
  6802. float minPriority;
  6803. /* readonly */
  6804. Node node;
  6805. /* readonly */
  6806. uint numAttributes;
  6807. ObjectAnimation objectAnimation;
  6808. /* readonly */
  6809. int refs;
  6810. bool temporary;
  6811. /* readonly */
  6812. StringHash type;
  6813. /* readonly */
  6814. String typeName;
  6815. /* readonly */
  6816. int weakRefs;
  6817. };
  6818. class Node
  6819. {
  6820. // Methods:
  6821. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6822. void AddTag(const String&);
  6823. void AddTags(const String&, int8 = ';');
  6824. void ApplyAttributes();
  6825. Node Clone(CreateMode = REPLICATED);
  6826. Component CloneComponent(Component, CreateMode, uint = 0);
  6827. Component CloneComponent(Component, uint = 0);
  6828. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6829. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6830. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6831. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6832. Variant GetAttribute(const String&) const;
  6833. ValueAnimation GetAttributeAnimation(const String&) const;
  6834. float GetAttributeAnimationSpeed(const String&) const;
  6835. float GetAttributeAnimationTime(const String&) const;
  6836. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6837. Variant GetAttributeDefault(const String&) const;
  6838. Node GetChild(const String&, bool = false) const;
  6839. Array<Node> GetChildren(bool = false) const;
  6840. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6841. Array<Node> GetChildrenWithScript(bool = false) const;
  6842. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6843. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  6844. Component GetComponent(const String&, bool = false) const;
  6845. Array<Component> GetComponents() const;
  6846. Array<Component> GetComponents(const String&, bool = false) const;
  6847. bool GetInterceptNetworkUpdate(const String&) const;
  6848. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6849. Component GetParentComponent(const String&, bool = false) const;
  6850. ScriptObject GetScriptObject() const;
  6851. ScriptObject GetScriptObject(const String&) const;
  6852. bool HasComponent(const String&) const;
  6853. bool HasSubscribedToEvent(Object, const String&);
  6854. bool HasSubscribedToEvent(const String&);
  6855. bool HasTag(const String&);
  6856. bool Load(File, bool = false);
  6857. bool Load(VectorBuffer&, bool = false);
  6858. bool LoadJSON(const JSONValue&, bool = false);
  6859. bool LoadXML(const XMLElement&, bool = false);
  6860. Vector3 LocalToWorld(const Vector3&) const;
  6861. Vector3 LocalToWorld(const Vector4&) const;
  6862. Vector2 LocalToWorld2D(const Vector2&) const;
  6863. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6864. void MarkDirty();
  6865. void MarkNetworkUpdate() const;
  6866. void Pitch(float, TransformSpace = TS_LOCAL);
  6867. void Remove();
  6868. void RemoveAllChildren();
  6869. void RemoveAllComponents();
  6870. void RemoveAllTags();
  6871. void RemoveAttributeAnimation(const String&);
  6872. void RemoveChild(Node);
  6873. void RemoveChildren(bool, bool, bool);
  6874. void RemoveComponent(Component);
  6875. void RemoveComponent(const String&);
  6876. void RemoveComponents(bool, bool);
  6877. void RemoveComponents(const String&);
  6878. void RemoveInstanceDefault();
  6879. void RemoveObjectAnimation();
  6880. bool RemoveTag(const String&);
  6881. void ResetDeepEnabled();
  6882. void ResetToDefault();
  6883. void Roll(float, TransformSpace = TS_LOCAL);
  6884. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6885. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6886. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6887. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6888. bool Save(File) const;
  6889. bool Save(VectorBuffer&) const;
  6890. bool SaveJSON(File);
  6891. bool SaveJSON(JSONValue&) const;
  6892. bool SaveJSON(VectorBuffer&);
  6893. bool SaveXML(File, const String& = "\t");
  6894. bool SaveXML(VectorBuffer&, const String& = "\t");
  6895. bool SaveXML(XMLElement&) const;
  6896. void Scale(const Vector3&);
  6897. void Scale(float);
  6898. void Scale2D(const Vector2&);
  6899. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6900. void SetAnimationTime(float);
  6901. bool SetAttribute(const String&, const Variant&);
  6902. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6903. void SetAttributeAnimationSpeed(const String&, float);
  6904. void SetAttributeAnimationTime(const String&, float);
  6905. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6906. void SetDeepEnabled(bool);
  6907. void SetEnabledRecursive(bool);
  6908. void SetInterceptNetworkUpdate(const String&, bool);
  6909. void SetPosition2D(float, float);
  6910. void SetScale(float);
  6911. void SetScale2D(float, float);
  6912. void SetTransform(const Vector3&, const Quaternion&);
  6913. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6914. void SetTransform(const Vector3&, const Quaternion&, float);
  6915. void SetTransform2D(const Vector2&, float);
  6916. void SetTransform2D(const Vector2&, float, const Vector2&);
  6917. void SetTransform2D(const Vector2&, float, float);
  6918. void SetWorldTransform(const Vector3&, const Quaternion&);
  6919. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6920. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6921. void SetWorldTransform2D(const Vector2&, float);
  6922. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6923. void SetWorldTransform2D(const Vector2&, float, float);
  6924. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6925. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6926. Vector3 WorldToLocal(const Vector3&) const;
  6927. Vector3 WorldToLocal(const Vector4&) const;
  6928. Vector2 WorldToLocal2D(const Vector2&) const;
  6929. void Yaw(float, TransformSpace = TS_LOCAL);
  6930. // Properties:
  6931. bool animationEnabled;
  6932. /* readonly */
  6933. Array<Variant> attributeDefaults;
  6934. /* readonly */
  6935. Array<AttributeInfo> attributeInfos;
  6936. Array<Variant> attributes;
  6937. /* readonly */
  6938. String category;
  6939. /* readonly */
  6940. Array<Node> children;
  6941. /* readonly */
  6942. Array<Component> components;
  6943. Vector3 direction;
  6944. bool enabled;
  6945. /* readonly */
  6946. bool enabledSelf;
  6947. /* readonly */
  6948. uint id;
  6949. String name;
  6950. /* readonly */
  6951. uint numAllChildren;
  6952. /* readonly */
  6953. uint numAttributes;
  6954. /* readonly */
  6955. uint numChildren;
  6956. /* readonly */
  6957. uint numComponents;
  6958. ObjectAnimation objectAnimation;
  6959. Connection owner;
  6960. Node parent;
  6961. Vector3 position;
  6962. Vector2 position2D;
  6963. /* readonly */
  6964. int refs;
  6965. /* readonly */
  6966. Vector3 right;
  6967. Quaternion rotation;
  6968. float rotation2D;
  6969. Vector3 scale;
  6970. Vector2 scale2D;
  6971. /* readonly */
  6972. Scene scene;
  6973. /* readonly */
  6974. ScriptObject scriptObject;
  6975. /* readonly */
  6976. Array<String> tags;
  6977. bool temporary;
  6978. /* readonly */
  6979. Matrix3x4 transform;
  6980. /* readonly */
  6981. StringHash type;
  6982. /* readonly */
  6983. String typeName;
  6984. /* readonly */
  6985. Vector3 up;
  6986. /* readonly */
  6987. VariantMap vars;
  6988. /* readonly */
  6989. int weakRefs;
  6990. Vector3 worldDirection;
  6991. Vector3 worldPosition;
  6992. Vector2 worldPosition2D;
  6993. /* readonly */
  6994. Vector3 worldRight;
  6995. Quaternion worldRotation;
  6996. float worldRotation2D;
  6997. Vector3 worldScale;
  6998. Vector2 worldScale2D;
  6999. /* readonly */
  7000. Matrix3x4 worldTransform;
  7001. /* readonly */
  7002. Vector3 worldUp;
  7003. };
  7004. class Object
  7005. {
  7006. // Methods:
  7007. bool HasSubscribedToEvent(Object, const String&);
  7008. bool HasSubscribedToEvent(const String&);
  7009. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7010. // Properties:
  7011. /* readonly */
  7012. String category;
  7013. /* readonly */
  7014. int refs;
  7015. /* readonly */
  7016. StringHash type;
  7017. /* readonly */
  7018. String typeName;
  7019. /* readonly */
  7020. int weakRefs;
  7021. };
  7022. class ObjectAnimation
  7023. {
  7024. // Methods:
  7025. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7026. ValueAnimation GetAttributeAnimation(const String&) const;
  7027. float GetAttributeAnimationSpeed(const String&) const;
  7028. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7029. bool HasSubscribedToEvent(Object, const String&);
  7030. bool HasSubscribedToEvent(const String&);
  7031. bool Load(File);
  7032. bool Load(VectorBuffer&);
  7033. void RemoveAttributeAnimation(ValueAnimation);
  7034. void RemoveAttributeAnimation(const String&);
  7035. bool Save(File) const;
  7036. bool Save(VectorBuffer&) const;
  7037. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7038. // Properties:
  7039. /* readonly */
  7040. Array<Variant> attributeAnimations;
  7041. /* readonly */
  7042. String category;
  7043. /* readonly */
  7044. uint memoryUse;
  7045. String name;
  7046. /* readonly */
  7047. int refs;
  7048. /* readonly */
  7049. Array<Variant> speeds;
  7050. /* readonly */
  7051. StringHash type;
  7052. /* readonly */
  7053. String typeName;
  7054. /* readonly */
  7055. uint useTimer;
  7056. /* readonly */
  7057. int weakRefs;
  7058. /* readonly */
  7059. Array<Variant> wrapModes;
  7060. };
  7061. class Obstacle
  7062. {
  7063. // Methods:
  7064. void ApplyAttributes();
  7065. void DrawDebugGeometry(DebugRenderer, bool);
  7066. void DrawDebugGeometry(bool);
  7067. Variant GetAttribute(const String&) const;
  7068. ValueAnimation GetAttributeAnimation(const String&) const;
  7069. float GetAttributeAnimationSpeed(const String&) const;
  7070. float GetAttributeAnimationTime(const String&) const;
  7071. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7072. Variant GetAttributeDefault(const String&) const;
  7073. bool GetInterceptNetworkUpdate(const String&) const;
  7074. bool HasSubscribedToEvent(Object, const String&);
  7075. bool HasSubscribedToEvent(const String&);
  7076. bool Load(File, bool = false);
  7077. bool Load(VectorBuffer&, bool = false);
  7078. bool LoadJSON(const JSONValue&, bool = false);
  7079. bool LoadXML(const XMLElement&, bool = false);
  7080. void MarkNetworkUpdate() const;
  7081. void Remove();
  7082. void RemoveAttributeAnimation(const String&);
  7083. void RemoveInstanceDefault();
  7084. void RemoveObjectAnimation();
  7085. void ResetToDefault();
  7086. bool Save(File) const;
  7087. bool Save(VectorBuffer&) const;
  7088. bool SaveJSON(JSONValue&) const;
  7089. bool SaveXML(XMLElement&) const;
  7090. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7091. void SetAnimationTime(float);
  7092. bool SetAttribute(const String&, const Variant&);
  7093. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7094. void SetAttributeAnimationSpeed(const String&, float);
  7095. void SetAttributeAnimationTime(const String&, float);
  7096. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7097. void SetInterceptNetworkUpdate(const String&, bool);
  7098. // Properties:
  7099. bool animationEnabled;
  7100. /* readonly */
  7101. Array<Variant> attributeDefaults;
  7102. /* readonly */
  7103. Array<AttributeInfo> attributeInfos;
  7104. Array<Variant> attributes;
  7105. /* readonly */
  7106. String category;
  7107. bool enabled;
  7108. /* readonly */
  7109. bool enabledEffective;
  7110. float height;
  7111. /* readonly */
  7112. uint id;
  7113. /* readonly */
  7114. Node node;
  7115. /* readonly */
  7116. uint numAttributes;
  7117. ObjectAnimation objectAnimation;
  7118. /* readonly */
  7119. uint obstacleId;
  7120. float radius;
  7121. /* readonly */
  7122. int refs;
  7123. bool temporary;
  7124. /* readonly */
  7125. StringHash type;
  7126. /* readonly */
  7127. String typeName;
  7128. /* readonly */
  7129. int weakRefs;
  7130. };
  7131. class Octree
  7132. {
  7133. // Methods:
  7134. void AddManualDrawable(Drawable);
  7135. void ApplyAttributes();
  7136. void DrawDebugGeometry(DebugRenderer, bool);
  7137. void DrawDebugGeometry(bool) const;
  7138. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7139. Variant GetAttribute(const String&) const;
  7140. ValueAnimation GetAttributeAnimation(const String&) const;
  7141. float GetAttributeAnimationSpeed(const String&) const;
  7142. float GetAttributeAnimationTime(const String&) const;
  7143. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7144. Variant GetAttributeDefault(const String&) const;
  7145. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7146. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7147. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7148. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7149. bool GetInterceptNetworkUpdate(const String&) const;
  7150. bool HasSubscribedToEvent(Object, const String&);
  7151. bool HasSubscribedToEvent(const String&);
  7152. bool Load(File, bool = false);
  7153. bool Load(VectorBuffer&, bool = false);
  7154. bool LoadJSON(const JSONValue&, bool = false);
  7155. bool LoadXML(const XMLElement&, bool = false);
  7156. void MarkNetworkUpdate() const;
  7157. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7158. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7159. void Remove();
  7160. void RemoveAttributeAnimation(const String&);
  7161. void RemoveInstanceDefault();
  7162. void RemoveManualDrawable(Drawable);
  7163. void RemoveObjectAnimation();
  7164. void ResetToDefault();
  7165. bool Save(File) const;
  7166. bool Save(VectorBuffer&) const;
  7167. bool SaveJSON(JSONValue&) const;
  7168. bool SaveXML(XMLElement&) const;
  7169. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7170. void SetAnimationTime(float);
  7171. bool SetAttribute(const String&, const Variant&);
  7172. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7173. void SetAttributeAnimationSpeed(const String&, float);
  7174. void SetAttributeAnimationTime(const String&, float);
  7175. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7176. void SetInterceptNetworkUpdate(const String&, bool);
  7177. void SetSize(const BoundingBox&, uint);
  7178. // Properties:
  7179. bool animationEnabled;
  7180. /* readonly */
  7181. Array<Variant> attributeDefaults;
  7182. /* readonly */
  7183. Array<AttributeInfo> attributeInfos;
  7184. Array<Variant> attributes;
  7185. /* readonly */
  7186. String category;
  7187. bool enabled;
  7188. /* readonly */
  7189. bool enabledEffective;
  7190. /* readonly */
  7191. uint id;
  7192. /* readonly */
  7193. Node node;
  7194. /* readonly */
  7195. uint numAttributes;
  7196. /* readonly */
  7197. uint numLevels;
  7198. ObjectAnimation objectAnimation;
  7199. /* readonly */
  7200. int refs;
  7201. bool temporary;
  7202. /* readonly */
  7203. StringHash type;
  7204. /* readonly */
  7205. String typeName;
  7206. /* readonly */
  7207. int weakRefs;
  7208. /* readonly */
  7209. BoundingBox worldBoundingBox;
  7210. };
  7211. class OffMeshConnection
  7212. {
  7213. // Methods:
  7214. void ApplyAttributes();
  7215. void DrawDebugGeometry(DebugRenderer, bool);
  7216. Variant GetAttribute(const String&) const;
  7217. ValueAnimation GetAttributeAnimation(const String&) const;
  7218. float GetAttributeAnimationSpeed(const String&) const;
  7219. float GetAttributeAnimationTime(const String&) const;
  7220. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7221. Variant GetAttributeDefault(const String&) const;
  7222. bool GetInterceptNetworkUpdate(const String&) const;
  7223. bool HasSubscribedToEvent(Object, const String&);
  7224. bool HasSubscribedToEvent(const String&);
  7225. bool Load(File, bool = false);
  7226. bool Load(VectorBuffer&, bool = false);
  7227. bool LoadJSON(const JSONValue&, bool = false);
  7228. bool LoadXML(const XMLElement&, bool = false);
  7229. void MarkNetworkUpdate() const;
  7230. void Remove();
  7231. void RemoveAttributeAnimation(const String&);
  7232. void RemoveInstanceDefault();
  7233. void RemoveObjectAnimation();
  7234. void ResetToDefault();
  7235. bool Save(File) const;
  7236. bool Save(VectorBuffer&) const;
  7237. bool SaveJSON(JSONValue&) const;
  7238. bool SaveXML(XMLElement&) const;
  7239. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7240. void SetAnimationTime(float);
  7241. bool SetAttribute(const String&, const Variant&);
  7242. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7243. void SetAttributeAnimationSpeed(const String&, float);
  7244. void SetAttributeAnimationTime(const String&, float);
  7245. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7246. void SetInterceptNetworkUpdate(const String&, bool);
  7247. // Properties:
  7248. bool animationEnabled;
  7249. uint areaID;
  7250. /* readonly */
  7251. Array<Variant> attributeDefaults;
  7252. /* readonly */
  7253. Array<AttributeInfo> attributeInfos;
  7254. Array<Variant> attributes;
  7255. bool bidirectional;
  7256. /* readonly */
  7257. String category;
  7258. bool enabled;
  7259. /* readonly */
  7260. bool enabledEffective;
  7261. Node endPoint;
  7262. /* readonly */
  7263. uint id;
  7264. uint mask;
  7265. /* readonly */
  7266. Node node;
  7267. /* readonly */
  7268. uint numAttributes;
  7269. ObjectAnimation objectAnimation;
  7270. float radius;
  7271. /* readonly */
  7272. int refs;
  7273. bool temporary;
  7274. /* readonly */
  7275. StringHash type;
  7276. /* readonly */
  7277. String typeName;
  7278. /* readonly */
  7279. int weakRefs;
  7280. };
  7281. class PackageFile
  7282. {
  7283. // Methods:
  7284. bool Exists(const String&) const;
  7285. Array<String> GetEntryNames() const;
  7286. bool HasSubscribedToEvent(Object, const String&);
  7287. bool HasSubscribedToEvent(const String&);
  7288. bool Open(const String&, uint = 0) const;
  7289. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7290. bool compressed() const;
  7291. // Properties:
  7292. /* readonly */
  7293. String category;
  7294. /* readonly */
  7295. uint checksum;
  7296. /* readonly */
  7297. String name;
  7298. /* readonly */
  7299. uint numFiles;
  7300. /* readonly */
  7301. int refs;
  7302. /* readonly */
  7303. uint totalSize;
  7304. /* readonly */
  7305. StringHash type;
  7306. /* readonly */
  7307. String typeName;
  7308. /* readonly */
  7309. int weakRefs;
  7310. };
  7311. class ParticleEffect
  7312. {
  7313. // Methods:
  7314. void AddColorFrame(ColorFrame);
  7315. void AddColorTime(Color&, float);
  7316. void AddTextureFrame(TextureFrame);
  7317. void AddTextureTime(Rect&, float);
  7318. ColorFrame GetColorFrame(uint) const;
  7319. TextureFrame GetTextureFrame(uint) const;
  7320. bool HasSubscribedToEvent(Object, const String&);
  7321. bool HasSubscribedToEvent(const String&);
  7322. bool Load(File);
  7323. bool Load(VectorBuffer&);
  7324. bool Load(const XMLElement&);
  7325. void RemoveColorFrame(uint);
  7326. void RemoveTextureFrame(uint);
  7327. bool Save(File) const;
  7328. bool Save(VectorBuffer&) const;
  7329. bool Save(XMLElement&) const;
  7330. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7331. void SetColorFrame(uint, ColorFrame);
  7332. void SetTextureFrame(uint, TextureFrame);
  7333. void SortColorFrames();
  7334. void SortTextureFrames();
  7335. // Properties:
  7336. float activeTime;
  7337. float animationLodBias;
  7338. /* readonly */
  7339. String category;
  7340. Vector3 constantForce;
  7341. float dampingForce;
  7342. Vector3 emitterSize;
  7343. EmitterType emitterType;
  7344. FaceCameraMode faceCameraMode;
  7345. float inactiveTime;
  7346. Material material;
  7347. Vector3 maxDirection;
  7348. float maxEmissionRate;
  7349. Vector2 maxParticleSize;
  7350. float maxRotation;
  7351. float maxRotationSpeed;
  7352. float maxTimeToLive;
  7353. float maxVelocity;
  7354. /* readonly */
  7355. uint memoryUse;
  7356. Vector3 minDirection;
  7357. float minEmissionRate;
  7358. Vector2 minParticleSize;
  7359. float minRotation;
  7360. float minRotationSpeed;
  7361. float minTimeToLive;
  7362. float minVelocity;
  7363. String name;
  7364. uint numColorFrames;
  7365. uint numParticles;
  7366. uint numTextureFrames;
  7367. /* readonly */
  7368. int refs;
  7369. bool relative;
  7370. bool scaled;
  7371. float sizeAdd;
  7372. float sizeMul;
  7373. bool sorted;
  7374. /* readonly */
  7375. StringHash type;
  7376. /* readonly */
  7377. String typeName;
  7378. bool updateInvisible;
  7379. /* readonly */
  7380. uint useTimer;
  7381. /* readonly */
  7382. int weakRefs;
  7383. };
  7384. class ParticleEffect2D
  7385. {
  7386. // Methods:
  7387. bool HasSubscribedToEvent(Object, const String&);
  7388. bool HasSubscribedToEvent(const String&);
  7389. bool Load(File);
  7390. bool Load(VectorBuffer&);
  7391. bool Save(File) const;
  7392. bool Save(VectorBuffer&) const;
  7393. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7394. // Properties:
  7395. /* readonly */
  7396. String category;
  7397. /* readonly */
  7398. uint memoryUse;
  7399. String name;
  7400. /* readonly */
  7401. int refs;
  7402. /* readonly */
  7403. StringHash type;
  7404. /* readonly */
  7405. String typeName;
  7406. /* readonly */
  7407. uint useTimer;
  7408. /* readonly */
  7409. int weakRefs;
  7410. };
  7411. class ParticleEmitter
  7412. {
  7413. // Methods:
  7414. void ApplyAttributes();
  7415. void ApplyEffect();
  7416. void Commit();
  7417. void DrawDebugGeometry(DebugRenderer, bool);
  7418. Variant GetAttribute(const String&) const;
  7419. ValueAnimation GetAttributeAnimation(const String&) const;
  7420. float GetAttributeAnimationSpeed(const String&) const;
  7421. float GetAttributeAnimationTime(const String&) const;
  7422. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7423. Variant GetAttributeDefault(const String&) const;
  7424. bool GetInterceptNetworkUpdate(const String&) const;
  7425. bool HasSubscribedToEvent(Object, const String&);
  7426. bool HasSubscribedToEvent(const String&);
  7427. bool IsInView(Camera) const;
  7428. bool Load(File, bool = false);
  7429. bool Load(VectorBuffer&, bool = false);
  7430. bool LoadJSON(const JSONValue&, bool = false);
  7431. bool LoadXML(const XMLElement&, bool = false);
  7432. void MarkNetworkUpdate() const;
  7433. void Remove();
  7434. void RemoveAllParticles();
  7435. void RemoveAttributeAnimation(const String&);
  7436. void RemoveInstanceDefault();
  7437. void RemoveObjectAnimation();
  7438. void Reset();
  7439. void ResetEmissionTimer();
  7440. void ResetToDefault();
  7441. bool Save(File) const;
  7442. bool Save(VectorBuffer&) const;
  7443. bool SaveJSON(JSONValue&) const;
  7444. bool SaveXML(XMLElement&) const;
  7445. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7446. void SetAnimationTime(float);
  7447. bool SetAttribute(const String&, const Variant&);
  7448. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7449. void SetAttributeAnimationSpeed(const String&, float);
  7450. void SetAttributeAnimationTime(const String&, float);
  7451. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7452. void SetInterceptNetworkUpdate(const String&, bool);
  7453. // Properties:
  7454. bool animationEnabled;
  7455. float animationLodBias;
  7456. /* readonly */
  7457. Array<Variant> attributeDefaults;
  7458. /* readonly */
  7459. Array<AttributeInfo> attributeInfos;
  7460. Array<Variant> attributes;
  7461. /* readonly */
  7462. Array<Billboard> billboards;
  7463. /* readonly */
  7464. BoundingBox boundingBox;
  7465. bool castShadows;
  7466. /* readonly */
  7467. String category;
  7468. float drawDistance;
  7469. ParticleEffect effect;
  7470. bool emitting;
  7471. bool enabled;
  7472. /* readonly */
  7473. bool enabledEffective;
  7474. FaceCameraMode faceCameraMode;
  7475. /* readonly */
  7476. uint id;
  7477. /* readonly */
  7478. bool inView;
  7479. uint lightMask;
  7480. float lodBias;
  7481. Material material;
  7482. uint maxLights;
  7483. /* readonly */
  7484. Node node;
  7485. /* readonly */
  7486. uint numAttributes;
  7487. uint numBillboards;
  7488. uint numParticles;
  7489. ObjectAnimation objectAnimation;
  7490. bool occludee;
  7491. bool occluder;
  7492. /* readonly */
  7493. int refs;
  7494. bool relative;
  7495. bool scaled;
  7496. bool serializeParticles;
  7497. float shadowDistance;
  7498. uint shadowMask;
  7499. bool sorted;
  7500. bool temporary;
  7501. /* readonly */
  7502. StringHash type;
  7503. /* readonly */
  7504. String typeName;
  7505. uint viewMask;
  7506. /* readonly */
  7507. int weakRefs;
  7508. /* readonly */
  7509. BoundingBox worldBoundingBox;
  7510. /* readonly */
  7511. Zone zone;
  7512. uint zoneMask;
  7513. };
  7514. class ParticleEmitter2D
  7515. {
  7516. // Methods:
  7517. void ApplyAttributes();
  7518. void DrawDebugGeometry(DebugRenderer, bool);
  7519. Variant GetAttribute(const String&) const;
  7520. ValueAnimation GetAttributeAnimation(const String&) const;
  7521. float GetAttributeAnimationSpeed(const String&) const;
  7522. float GetAttributeAnimationTime(const String&) const;
  7523. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7524. Variant GetAttributeDefault(const String&) const;
  7525. bool GetInterceptNetworkUpdate(const String&) const;
  7526. bool HasSubscribedToEvent(Object, const String&);
  7527. bool HasSubscribedToEvent(const String&);
  7528. bool IsInView(Camera) const;
  7529. bool Load(File, bool = false);
  7530. bool Load(VectorBuffer&, bool = false);
  7531. bool LoadJSON(const JSONValue&, bool = false);
  7532. bool LoadXML(const XMLElement&, bool = false);
  7533. void MarkNetworkUpdate() const;
  7534. void Remove();
  7535. void RemoveAttributeAnimation(const String&);
  7536. void RemoveInstanceDefault();
  7537. void RemoveObjectAnimation();
  7538. void ResetToDefault();
  7539. bool Save(File) const;
  7540. bool Save(VectorBuffer&) const;
  7541. bool SaveJSON(JSONValue&) const;
  7542. bool SaveXML(XMLElement&) const;
  7543. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7544. void SetAnimationTime(float);
  7545. bool SetAttribute(const String&, const Variant&);
  7546. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7547. void SetAttributeAnimationSpeed(const String&, float);
  7548. void SetAttributeAnimationTime(const String&, float);
  7549. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7550. void SetInterceptNetworkUpdate(const String&, bool);
  7551. // Properties:
  7552. bool animationEnabled;
  7553. /* readonly */
  7554. Array<Variant> attributeDefaults;
  7555. /* readonly */
  7556. Array<AttributeInfo> attributeInfos;
  7557. Array<Variant> attributes;
  7558. BlendMode blendMode;
  7559. /* readonly */
  7560. BoundingBox boundingBox;
  7561. bool castShadows;
  7562. /* readonly */
  7563. String category;
  7564. float drawDistance;
  7565. ParticleEffect2D effect;
  7566. bool enabled;
  7567. /* readonly */
  7568. bool enabledEffective;
  7569. /* readonly */
  7570. uint id;
  7571. /* readonly */
  7572. bool inView;
  7573. int layer;
  7574. uint lightMask;
  7575. float lodBias;
  7576. uint maxLights;
  7577. /* readonly */
  7578. Node node;
  7579. /* readonly */
  7580. uint numAttributes;
  7581. ObjectAnimation objectAnimation;
  7582. bool occludee;
  7583. bool occluder;
  7584. int orderInLayer;
  7585. /* readonly */
  7586. int refs;
  7587. float shadowDistance;
  7588. uint shadowMask;
  7589. Sprite2D sprite;
  7590. bool temporary;
  7591. /* readonly */
  7592. StringHash type;
  7593. /* readonly */
  7594. String typeName;
  7595. uint viewMask;
  7596. /* readonly */
  7597. int weakRefs;
  7598. /* readonly */
  7599. BoundingBox worldBoundingBox;
  7600. uint zoneMask;
  7601. };
  7602. class Pass
  7603. {
  7604. // Properties:
  7605. bool alphaMask;
  7606. BlendMode blendMode;
  7607. CompareMode depthTestMode;
  7608. bool depthWrite;
  7609. bool desktop;
  7610. PassLightingMode lightingMode;
  7611. String pixelShader;
  7612. String pixelShaderDefines;
  7613. /* readonly */
  7614. int refs;
  7615. String vertexShader;
  7616. String vertexShaderDefines;
  7617. /* readonly */
  7618. int weakRefs;
  7619. };
  7620. class PhysicsRaycastResult
  7621. {
  7622. // Properties:
  7623. /* readonly */
  7624. RigidBody body;
  7625. float distance;
  7626. float hitFraction;
  7627. Vector3 normal;
  7628. Vector3 position;
  7629. };
  7630. class PhysicsRaycastResult2D
  7631. {
  7632. // Properties:
  7633. /* readonly */
  7634. RigidBody2D body;
  7635. float distance;
  7636. Vector2 normal;
  7637. Vector2 position;
  7638. };
  7639. class PhysicsWorld
  7640. {
  7641. // Methods:
  7642. void ApplyAttributes();
  7643. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7644. void DrawDebugGeometry(DebugRenderer, bool);
  7645. void DrawDebugGeometry(bool);
  7646. Variant GetAttribute(const String&) const;
  7647. ValueAnimation GetAttributeAnimation(const String&) const;
  7648. float GetAttributeAnimationSpeed(const String&) const;
  7649. float GetAttributeAnimationTime(const String&) const;
  7650. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7651. Variant GetAttributeDefault(const String&) const;
  7652. Array<RigidBody> GetCollidingBodies(RigidBody);
  7653. bool GetInterceptNetworkUpdate(const String&) const;
  7654. Array<RigidBody> GetRigidBodies(RigidBody);
  7655. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7656. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7657. bool HasSubscribedToEvent(Object, const String&);
  7658. bool HasSubscribedToEvent(const String&);
  7659. bool Load(File, bool = false);
  7660. bool Load(VectorBuffer&, bool = false);
  7661. bool LoadJSON(const JSONValue&, bool = false);
  7662. bool LoadXML(const XMLElement&, bool = false);
  7663. void MarkNetworkUpdate() const;
  7664. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7665. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7666. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7667. void Remove();
  7668. void RemoveAttributeAnimation(const String&);
  7669. void RemoveCachedGeometry(Model);
  7670. void RemoveInstanceDefault();
  7671. void RemoveObjectAnimation();
  7672. void ResetToDefault();
  7673. bool Save(File) const;
  7674. bool Save(VectorBuffer&) const;
  7675. bool SaveJSON(JSONValue&) const;
  7676. bool SaveXML(XMLElement&) const;
  7677. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7678. void SetAnimationTime(float);
  7679. bool SetAttribute(const String&, const Variant&);
  7680. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7681. void SetAttributeAnimationSpeed(const String&, float);
  7682. void SetAttributeAnimationTime(const String&, float);
  7683. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7684. void SetInterceptNetworkUpdate(const String&, bool);
  7685. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7686. void Update(float);
  7687. void UpdateCollisions();
  7688. // Properties:
  7689. bool animationEnabled;
  7690. /* readonly */
  7691. Array<Variant> attributeDefaults;
  7692. /* readonly */
  7693. Array<AttributeInfo> attributeInfos;
  7694. Array<Variant> attributes;
  7695. /* readonly */
  7696. String category;
  7697. bool enabled;
  7698. /* readonly */
  7699. bool enabledEffective;
  7700. int fps;
  7701. Vector3 gravity;
  7702. /* readonly */
  7703. uint id;
  7704. bool internalEdge;
  7705. bool interpolation;
  7706. int maxSubSteps;
  7707. /* readonly */
  7708. Node node;
  7709. /* readonly */
  7710. uint numAttributes;
  7711. int numIterations;
  7712. ObjectAnimation objectAnimation;
  7713. /* readonly */
  7714. int refs;
  7715. bool splitImpulse;
  7716. bool temporary;
  7717. /* readonly */
  7718. StringHash type;
  7719. /* readonly */
  7720. String typeName;
  7721. bool updateEnabled;
  7722. /* readonly */
  7723. int weakRefs;
  7724. };
  7725. class PhysicsWorld2D
  7726. {
  7727. // Methods:
  7728. void ApplyAttributes();
  7729. void DrawDebugGeometry() const;
  7730. void DrawDebugGeometry(DebugRenderer, bool);
  7731. Variant GetAttribute(const String&) const;
  7732. ValueAnimation GetAttributeAnimation(const String&) const;
  7733. float GetAttributeAnimationSpeed(const String&) const;
  7734. float GetAttributeAnimationTime(const String&) const;
  7735. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7736. Variant GetAttributeDefault(const String&) const;
  7737. bool GetInterceptNetworkUpdate(const String&) const;
  7738. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7739. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7740. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7741. bool HasSubscribedToEvent(Object, const String&);
  7742. bool HasSubscribedToEvent(const String&);
  7743. bool Load(File, bool = false);
  7744. bool Load(VectorBuffer&, bool = false);
  7745. bool LoadJSON(const JSONValue&, bool = false);
  7746. bool LoadXML(const XMLElement&, bool = false);
  7747. void MarkNetworkUpdate() const;
  7748. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7749. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7750. void Remove();
  7751. void RemoveAttributeAnimation(const String&);
  7752. void RemoveInstanceDefault();
  7753. void RemoveObjectAnimation();
  7754. void ResetToDefault();
  7755. bool Save(File) const;
  7756. bool Save(VectorBuffer&) const;
  7757. bool SaveJSON(JSONValue&) const;
  7758. bool SaveXML(XMLElement&) const;
  7759. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7760. void SetAnimationTime(float);
  7761. bool SetAttribute(const String&, const Variant&);
  7762. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7763. void SetAttributeAnimationSpeed(const String&, float);
  7764. void SetAttributeAnimationTime(const String&, float);
  7765. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7766. void SetInterceptNetworkUpdate(const String&, bool);
  7767. // Properties:
  7768. bool allowSleeping;
  7769. bool animationEnabled;
  7770. /* readonly */
  7771. Array<Variant> attributeDefaults;
  7772. /* readonly */
  7773. Array<AttributeInfo> attributeInfos;
  7774. Array<Variant> attributes;
  7775. bool autoClearForces;
  7776. /* readonly */
  7777. String category;
  7778. bool continuousPhysics;
  7779. bool drawAabb;
  7780. bool drawCenterOfMass;
  7781. bool drawJoint;
  7782. bool drawPair;
  7783. bool drawShape;
  7784. bool enabled;
  7785. /* readonly */
  7786. bool enabledEffective;
  7787. Vector2 gravity;
  7788. /* readonly */
  7789. uint id;
  7790. /* readonly */
  7791. Node node;
  7792. /* readonly */
  7793. uint numAttributes;
  7794. ObjectAnimation objectAnimation;
  7795. uint positionIterations;
  7796. /* readonly */
  7797. int refs;
  7798. bool subStepping;
  7799. bool temporary;
  7800. /* readonly */
  7801. StringHash type;
  7802. /* readonly */
  7803. String typeName;
  7804. bool updateEnabled;
  7805. uint velocityIterations;
  7806. bool warmStarting;
  7807. /* readonly */
  7808. int weakRefs;
  7809. };
  7810. class Plane
  7811. {
  7812. // Methods:
  7813. void Define(const Vector3&, const Vector3&);
  7814. void Define(const Vector3&, const Vector3&, const Vector3&);
  7815. void Define(const Vector4&);
  7816. float Distance(const Vector3&) const;
  7817. Vector3 Project(const Vector3&) const;
  7818. Vector3 Reflect(const Vector3&) const;
  7819. Vector4 ToVector4() const;
  7820. void Transform(const Matrix3&);
  7821. void Transform(const Matrix3x4&);
  7822. void Transform(const Matrix4&);
  7823. Plane Transformed(const Matrix3&) const;
  7824. Plane Transformed(const Matrix3x4&) const;
  7825. Plane Transformed(const Matrix4&) const;
  7826. // Properties:
  7827. Vector3 absNormal;
  7828. float d;
  7829. Vector3 normal;
  7830. /* readonly */
  7831. Matrix3x4 reflectionMatrix;
  7832. };
  7833. class Polyhedron
  7834. {
  7835. // Methods:
  7836. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7837. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7838. void AddFace(const Array<Vector3>);
  7839. void Clear();
  7840. void Clip(const BoundingBox&);
  7841. void Clip(const Frustum&);
  7842. void Define(const BoundingBox&);
  7843. void Define(const Frustum&);
  7844. void Transform(const Matrix3&);
  7845. void Transform(const Matrix3x4&);
  7846. Polyhedron Transformed(const Matrix3&) const;
  7847. Polyhedron Transformed(const Matrix3x4&) const;
  7848. // Properties:
  7849. /* readonly */
  7850. Array<Array<Vector3>> face;
  7851. /* readonly */
  7852. uint numFaces;
  7853. };
  7854. class PropertySet2D
  7855. {
  7856. // Methods:
  7857. bool HasProperty(const String&) const;
  7858. const String& GetProperty(const String&) const;
  7859. // Properties:
  7860. /* readonly */
  7861. int refs;
  7862. /* readonly */
  7863. int weakRefs;
  7864. };
  7865. class Quaternion
  7866. {
  7867. // Methods:
  7868. Quaternion Conjugate() const;
  7869. float DotProduct(const Quaternion&) const;
  7870. bool Equals(const Quaternion&) const;
  7871. void FromAngleAxis(float, const Vector3&);
  7872. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7873. void FromEulerAngles(float, float, float);
  7874. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  7875. void FromRotationMatrix(const Matrix3&);
  7876. void FromRotationTo(const Vector3&, const Vector3&);
  7877. Quaternion Inverse() const;
  7878. bool IsNaN() const;
  7879. float LengthSquared() const;
  7880. Quaternion Nlerp(Quaternion, float, bool) const;
  7881. void Normalize();
  7882. Quaternion Normalized() const;
  7883. Quaternion Slerp(Quaternion, float) const;
  7884. String ToString() const;
  7885. // Properties:
  7886. /* readonly */
  7887. Vector3 eulerAngles;
  7888. /* readonly */
  7889. float pitch;
  7890. /* readonly */
  7891. float roll;
  7892. /* readonly */
  7893. Matrix3 rotationMatrix;
  7894. float w;
  7895. float x;
  7896. float y;
  7897. /* readonly */
  7898. float yaw;
  7899. float z;
  7900. };
  7901. class Ray
  7902. {
  7903. // Methods:
  7904. Vector3 ClosestPoint(const Ray&) const;
  7905. void Define(const Vector3&, const Vector3&);
  7906. float Distance(const Vector3&) const;
  7907. float HitDistance(const BoundingBox&) const;
  7908. float HitDistance(const Frustum&, bool = true) const;
  7909. float HitDistance(const Plane&) const;
  7910. float HitDistance(const Sphere&) const;
  7911. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7912. Vector3 Project(const Vector3&) const;
  7913. Ray Transformed(const Matrix3x4&) const;
  7914. // Properties:
  7915. Vector3 direction;
  7916. Vector3 origin;
  7917. };
  7918. class RayQueryResult
  7919. {
  7920. // Properties:
  7921. float distance;
  7922. /* readonly */
  7923. Drawable drawable;
  7924. /* readonly */
  7925. Node node;
  7926. Vector3 normal;
  7927. Vector3 position;
  7928. uint subObject;
  7929. Vector2 textureUV;
  7930. };
  7931. class Rect
  7932. {
  7933. // Methods:
  7934. void Clear();
  7935. void Clip(const Rect&);
  7936. void Define(const Vector2&);
  7937. void Define(const Vector2&, const Vector2&);
  7938. bool Defined() const;
  7939. bool Equals(const Rect&) const;
  7940. Intersection IsInside(const Vector2&) const;
  7941. void Merge(const Rect&);
  7942. void Merge(const Vector2&);
  7943. Vector4 ToVector4() const;
  7944. // Properties:
  7945. float bottom;
  7946. /* readonly */
  7947. Vector2 center;
  7948. /* readonly */
  7949. Vector2 halfSize;
  7950. float left;
  7951. Vector2 max;
  7952. Vector2 min;
  7953. float right;
  7954. /* readonly */
  7955. Vector2 size;
  7956. float top;
  7957. };
  7958. class RefCounted
  7959. {
  7960. // Properties:
  7961. /* readonly */
  7962. int refs;
  7963. /* readonly */
  7964. int weakRefs;
  7965. };
  7966. class RenderPath
  7967. {
  7968. // Methods:
  7969. void AddCommand(const RenderPathCommand&);
  7970. void AddRenderTarget(const RenderTargetInfo&);
  7971. bool Append(XMLFile);
  7972. RenderPath Clone();
  7973. void InsertCommand(uint, const RenderPathCommand&);
  7974. bool Load(XMLFile);
  7975. void RemoveCommand(uint);
  7976. void RemoveCommands(const String&);
  7977. void RemoveRenderTarget(const String&);
  7978. void RemoveRenderTarget(uint);
  7979. void RemoveRenderTargts(const String&);
  7980. void SetEnabled(const String&, bool);
  7981. void ToggleEnabled(const String&);
  7982. // Properties:
  7983. Array<RenderPathCommand> commands;
  7984. /* readonly */
  7985. uint numCommands;
  7986. /* readonly */
  7987. uint numRenderTargets;
  7988. /* readonly */
  7989. int refs;
  7990. Array<RenderTargetInfo> renderTargets;
  7991. Array<Variant> shaderParameters;
  7992. /* readonly */
  7993. int weakRefs;
  7994. };
  7995. class RenderPathCommand
  7996. {
  7997. // Methods:
  7998. void RemoveShaderParameter(const String&);
  7999. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8000. // Properties:
  8001. BlendMode blendMode;
  8002. Color clearColor;
  8003. float clearDepth;
  8004. uint clearFlags;
  8005. uint clearStencil;
  8006. String depthStencilName;
  8007. bool enabled;
  8008. bool markToStencil;
  8009. String metadata;
  8010. uint numOutputs;
  8011. Array<CubeMapFace> outputFaces;
  8012. Array<String> outputNames;
  8013. String pass;
  8014. String pixelShaderDefines;
  8015. String pixelShaderName;
  8016. Array<Variant> shaderParameters;
  8017. RenderCommandSortMode sortMode;
  8018. String tag;
  8019. Array<String> textureNames;
  8020. RenderCommandType type;
  8021. bool useFogColor;
  8022. bool useLitBase;
  8023. bool vertexLights;
  8024. String vertexShaderDefines;
  8025. String vertexShaderName;
  8026. };
  8027. class RenderSurface
  8028. {
  8029. // Methods:
  8030. void QueueUpdate();
  8031. // Properties:
  8032. /* readonly */
  8033. int height;
  8034. RenderSurface linkedDepthStencil;
  8035. RenderSurface linkedRenderTarget;
  8036. uint numViewports;
  8037. /* readonly */
  8038. Texture parentTexture;
  8039. RenderSurfaceUpdateMode updateMode;
  8040. /* readonly */
  8041. TextureUsage usage;
  8042. Array<Viewport> viewports;
  8043. /* readonly */
  8044. int width;
  8045. };
  8046. class RenderTargetInfo
  8047. {
  8048. // Properties:
  8049. bool cubemap;
  8050. bool enabled;
  8051. bool filtered;
  8052. uint format;
  8053. String name;
  8054. bool persistent;
  8055. bool sRGB;
  8056. Vector2 size;
  8057. RenderTargetSizeMode sizeMode;
  8058. String tag;
  8059. };
  8060. class Renderer
  8061. {
  8062. // Methods:
  8063. void DrawDebugGeometry(bool) const;
  8064. bool HasSubscribedToEvent(Object, const String&);
  8065. bool HasSubscribedToEvent(const String&);
  8066. void ReloadShaders() const;
  8067. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8068. void SetDefaultRenderPath(XMLFile);
  8069. void SetVSMShadowParameters(float, float);
  8070. // Properties:
  8071. /* readonly */
  8072. String category;
  8073. /* readonly */
  8074. Material defaultLightRamp;
  8075. /* readonly */
  8076. Material defaultLightSpot;
  8077. /* readonly */
  8078. Material defaultMaterial;
  8079. RenderPath defaultRenderPath;
  8080. /* readonly */
  8081. Zone defaultZone;
  8082. bool drawShadows;
  8083. bool dynamicInstancing;
  8084. bool hdrRendering;
  8085. int materialQuality;
  8086. int maxOccluderTriangles;
  8087. int maxShadowMaps;
  8088. int maxSortedInstances;
  8089. int minInstances;
  8090. float mobileShadowBiasAdd;
  8091. float mobileShadowBiasMul;
  8092. /* readonly */
  8093. uint numBatches;
  8094. /* readonly */
  8095. Array<uint> numGeometries;
  8096. /* readonly */
  8097. Array<uint> numLights;
  8098. /* readonly */
  8099. Array<uint> numOccluders;
  8100. /* readonly */
  8101. uint numPrimitives;
  8102. /* readonly */
  8103. Array<uint> numShadowMaps;
  8104. uint numViewports;
  8105. /* readonly */
  8106. uint numViews;
  8107. float occluderSizeThreshold;
  8108. int occlusionBufferSize;
  8109. /* readonly */
  8110. int refs;
  8111. bool reuseShadowMaps;
  8112. int shadowMapSize;
  8113. ShadowQuality shadowQuality;
  8114. float shadowSoftness;
  8115. bool specularLighting;
  8116. int textureAnisotropy;
  8117. TextureFilterMode textureFilterMode;
  8118. int textureQuality;
  8119. bool threadedOcclusion;
  8120. /* readonly */
  8121. StringHash type;
  8122. /* readonly */
  8123. String typeName;
  8124. Array<Viewport> viewports;
  8125. Vector2 vsmShadowParameters;
  8126. /* readonly */
  8127. int weakRefs;
  8128. };
  8129. class Resource
  8130. {
  8131. // Methods:
  8132. bool HasSubscribedToEvent(Object, const String&);
  8133. bool HasSubscribedToEvent(const String&);
  8134. bool Load(File);
  8135. bool Load(VectorBuffer&);
  8136. bool Save(File) const;
  8137. bool Save(VectorBuffer&) const;
  8138. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8139. // Properties:
  8140. /* readonly */
  8141. String category;
  8142. /* readonly */
  8143. uint memoryUse;
  8144. String name;
  8145. /* readonly */
  8146. int refs;
  8147. /* readonly */
  8148. StringHash type;
  8149. /* readonly */
  8150. String typeName;
  8151. /* readonly */
  8152. uint useTimer;
  8153. /* readonly */
  8154. int weakRefs;
  8155. };
  8156. class ResourceCache
  8157. {
  8158. // Methods:
  8159. bool AddManualResource(Resource);
  8160. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8161. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8162. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8163. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8164. bool Exists(const String&) const;
  8165. Resource GetExistingResource(StringHash, const String&);
  8166. Resource GetExistingResource(const String&, const String&);
  8167. File GetFile(const String&);
  8168. String GetPreferredResourceDir(const String&) const;
  8169. Resource GetResource(StringHash, const String&, bool = true);
  8170. Resource GetResource(const String&, const String&, bool = true);
  8171. String GetResourceFileName(const String&) const;
  8172. bool HasSubscribedToEvent(Object, const String&);
  8173. bool HasSubscribedToEvent(const String&);
  8174. void ReleaseAllResources(bool = false);
  8175. void ReleaseResource(const String&, const String&, bool = false);
  8176. void ReleaseResources(StringHash, bool = false);
  8177. void ReleaseResources(const String&, bool = false);
  8178. void ReleaseResources(const String&, const String&, bool = false);
  8179. bool ReloadResource(Resource);
  8180. void ReloadResourceWithDependencies(const String&);
  8181. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8182. void RemovePackageFile(const String&, bool = true, bool = false);
  8183. void RemoveResourceDir(const String&);
  8184. String SanitateResourceDirName(const String&) const;
  8185. String SanitateResourceName(const String&) const;
  8186. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8187. // Properties:
  8188. bool autoReloadResources;
  8189. /* readonly */
  8190. String category;
  8191. int finishBackgroundResourcesMs;
  8192. Array<uint64> memoryBudget;
  8193. /* readonly */
  8194. Array<uint64> memoryUse;
  8195. /* readonly */
  8196. uint numBackgroundLoadResources;
  8197. /* readonly */
  8198. Array<PackageFile> packageFiles;
  8199. /* readonly */
  8200. int refs;
  8201. /* readonly */
  8202. Array<String> resourceDirs;
  8203. bool returnFailedResources;
  8204. /* readonly */
  8205. bool seachPackagesFirst;
  8206. /* writeonly */
  8207. bool searchPackagesFirst;
  8208. /* readonly */
  8209. uint64 totalMemoryUse;
  8210. /* readonly */
  8211. StringHash type;
  8212. /* readonly */
  8213. String typeName;
  8214. /* readonly */
  8215. int weakRefs;
  8216. };
  8217. class ResourceRef
  8218. {
  8219. // Properties:
  8220. String name;
  8221. StringHash type;
  8222. };
  8223. class ResourceRefList
  8224. {
  8225. // Methods:
  8226. void Resize(uint);
  8227. // Properties:
  8228. /* readonly */
  8229. bool empty;
  8230. /* readonly */
  8231. uint length;
  8232. Array<String> names;
  8233. StringHash type;
  8234. };
  8235. class RigidBody
  8236. {
  8237. // Methods:
  8238. void Activate();
  8239. void ApplyAttributes();
  8240. void ApplyForce(const Vector3&);
  8241. void ApplyForce(const Vector3&, const Vector3&);
  8242. void ApplyImpulse(const Vector3&);
  8243. void ApplyImpulse(const Vector3&, const Vector3&);
  8244. void ApplyTorque(const Vector3&);
  8245. void ApplyTorqueImpulse(const Vector3&);
  8246. void DisableMassUpdate();
  8247. void DrawDebugGeometry(DebugRenderer, bool);
  8248. void EnableMassUpdate();
  8249. Variant GetAttribute(const String&) const;
  8250. ValueAnimation GetAttributeAnimation(const String&) const;
  8251. float GetAttributeAnimationSpeed(const String&) const;
  8252. float GetAttributeAnimationTime(const String&) const;
  8253. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8254. Variant GetAttributeDefault(const String&) const;
  8255. bool GetInterceptNetworkUpdate(const String&) const;
  8256. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8257. bool HasSubscribedToEvent(Object, const String&);
  8258. bool HasSubscribedToEvent(const String&);
  8259. bool Load(File, bool = false);
  8260. bool Load(VectorBuffer&, bool = false);
  8261. bool LoadJSON(const JSONValue&, bool = false);
  8262. bool LoadXML(const XMLElement&, bool = false);
  8263. void MarkNetworkUpdate() const;
  8264. void ReAddBodyToWorld();
  8265. void Remove();
  8266. void RemoveAttributeAnimation(const String&);
  8267. void RemoveInstanceDefault();
  8268. void RemoveObjectAnimation();
  8269. void ResetForces();
  8270. void ResetToDefault();
  8271. bool Save(File) const;
  8272. bool Save(VectorBuffer&) const;
  8273. bool SaveJSON(JSONValue&) const;
  8274. bool SaveXML(XMLElement&) const;
  8275. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8276. void SetAnimationTime(float);
  8277. bool SetAttribute(const String&, const Variant&);
  8278. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8279. void SetAttributeAnimationSpeed(const String&, float);
  8280. void SetAttributeAnimationTime(const String&, float);
  8281. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8282. void SetCollisionLayerAndMask(uint, uint);
  8283. void SetInterceptNetworkUpdate(const String&, bool);
  8284. void SetTransform(const Vector3&, const Quaternion&);
  8285. // Properties:
  8286. /* readonly */
  8287. bool active;
  8288. float angularDamping;
  8289. Vector3 angularFactor;
  8290. float angularRestThreshold;
  8291. Vector3 angularVelocity;
  8292. bool animationEnabled;
  8293. Vector3 anisotropicFriction;
  8294. /* readonly */
  8295. Array<Variant> attributeDefaults;
  8296. /* readonly */
  8297. Array<AttributeInfo> attributeInfos;
  8298. Array<Variant> attributes;
  8299. /* readonly */
  8300. String category;
  8301. float ccdMotionThreshold;
  8302. float ccdRadius;
  8303. /* readonly */
  8304. Vector3 centerOfMass;
  8305. /* readonly */
  8306. Array<RigidBody> collidingBodies;
  8307. CollisionEventMode collisionEventMode;
  8308. uint collisionLayer;
  8309. uint collisionMask;
  8310. float contactProcessingThreshold;
  8311. bool enabled;
  8312. /* readonly */
  8313. bool enabledEffective;
  8314. float friction;
  8315. Vector3 gravityOverride;
  8316. /* readonly */
  8317. uint id;
  8318. bool kinematic;
  8319. float linearDamping;
  8320. Vector3 linearFactor;
  8321. float linearRestThreshold;
  8322. Vector3 linearVelocity;
  8323. float mass;
  8324. /* readonly */
  8325. Node node;
  8326. /* readonly */
  8327. uint numAttributes;
  8328. ObjectAnimation objectAnimation;
  8329. Vector3 position;
  8330. /* readonly */
  8331. int refs;
  8332. float restitution;
  8333. float rollingFriction;
  8334. Quaternion rotation;
  8335. bool temporary;
  8336. bool trigger;
  8337. /* readonly */
  8338. StringHash type;
  8339. /* readonly */
  8340. String typeName;
  8341. bool useGravity;
  8342. /* readonly */
  8343. int weakRefs;
  8344. };
  8345. class RigidBody2D
  8346. {
  8347. // Methods:
  8348. void ApplyAngularImpulse(float, bool);
  8349. void ApplyAttributes();
  8350. void ApplyForce(const Vector2&, const Vector2&, bool);
  8351. void ApplyForceToCenter(const Vector2&, bool);
  8352. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8353. void ApplyTorque(float, bool);
  8354. void DrawDebugGeometry(DebugRenderer, bool);
  8355. Variant GetAttribute(const String&) const;
  8356. ValueAnimation GetAttributeAnimation(const String&) const;
  8357. float GetAttributeAnimationSpeed(const String&) const;
  8358. float GetAttributeAnimationTime(const String&) const;
  8359. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8360. Variant GetAttributeDefault(const String&) const;
  8361. bool GetInterceptNetworkUpdate(const String&) const;
  8362. bool HasSubscribedToEvent(Object, const String&);
  8363. bool HasSubscribedToEvent(const String&);
  8364. bool Load(File, bool = false);
  8365. bool Load(VectorBuffer&, bool = false);
  8366. bool LoadJSON(const JSONValue&, bool = false);
  8367. bool LoadXML(const XMLElement&, bool = false);
  8368. void MarkNetworkUpdate() const;
  8369. void Remove();
  8370. void RemoveAttributeAnimation(const String&);
  8371. void RemoveInstanceDefault();
  8372. void RemoveObjectAnimation();
  8373. void ResetToDefault();
  8374. bool Save(File) const;
  8375. bool Save(VectorBuffer&) const;
  8376. bool SaveJSON(JSONValue&) const;
  8377. bool SaveXML(XMLElement&) const;
  8378. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8379. void SetAnimationTime(float);
  8380. bool SetAttribute(const String&, const Variant&);
  8381. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8382. void SetAttributeAnimationSpeed(const String&, float);
  8383. void SetAttributeAnimationTime(const String&, float);
  8384. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8385. void SetInterceptNetworkUpdate(const String&, bool);
  8386. // Properties:
  8387. bool allowSleep;
  8388. float angularDamping;
  8389. bool animationEnabled;
  8390. /* readonly */
  8391. Array<Variant> attributeDefaults;
  8392. /* readonly */
  8393. Array<AttributeInfo> attributeInfos;
  8394. Array<Variant> attributes;
  8395. bool awake;
  8396. BodyType2D bodyType;
  8397. bool bullet;
  8398. /* readonly */
  8399. String category;
  8400. bool enabled;
  8401. /* readonly */
  8402. bool enabledEffective;
  8403. bool fixedRotation;
  8404. float gravityScale;
  8405. /* readonly */
  8406. uint id;
  8407. float inertia;
  8408. float linearDamping;
  8409. Vector2 linearVelocity;
  8410. float mass;
  8411. Vector2 massCenter;
  8412. /* readonly */
  8413. Node node;
  8414. /* readonly */
  8415. uint numAttributes;
  8416. ObjectAnimation objectAnimation;
  8417. /* readonly */
  8418. int refs;
  8419. bool temporary;
  8420. /* readonly */
  8421. StringHash type;
  8422. /* readonly */
  8423. String typeName;
  8424. bool useFixtureMass;
  8425. /* readonly */
  8426. int weakRefs;
  8427. };
  8428. class Scene
  8429. {
  8430. // Methods:
  8431. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8432. void AddRequiredPackageFile(PackageFile);
  8433. void AddTag(const String&);
  8434. void AddTags(const String&, int8 = ';');
  8435. void ApplyAttributes();
  8436. void Clear(bool = true, bool = true);
  8437. void ClearRequiredPackageFiles();
  8438. Component CloneComponent(Component, CreateMode, uint = 0);
  8439. Component CloneComponent(Component, uint = 0);
  8440. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8441. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8442. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8443. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8444. Variant GetAttribute(const String&) const;
  8445. ValueAnimation GetAttributeAnimation(const String&) const;
  8446. float GetAttributeAnimationSpeed(const String&) const;
  8447. float GetAttributeAnimationTime(const String&) const;
  8448. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8449. Variant GetAttributeDefault(const String&) const;
  8450. Node GetChild(const String&, bool = false) const;
  8451. Array<Node> GetChildren(bool = false) const;
  8452. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8453. Array<Node> GetChildrenWithScript(bool = false) const;
  8454. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8455. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8456. Component GetComponent(const String&, bool = false) const;
  8457. Component GetComponent(uint) const;
  8458. Array<Component> GetComponents() const;
  8459. Array<Component> GetComponents(const String&, bool = false) const;
  8460. bool GetInterceptNetworkUpdate(const String&) const;
  8461. Node GetNode(uint) const;
  8462. Array<Node> GetNodesWithTag(const String&) const;
  8463. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8464. Component GetParentComponent(const String&, bool = false) const;
  8465. ScriptObject GetScriptObject() const;
  8466. ScriptObject GetScriptObject(const String&) const;
  8467. bool HasComponent(const String&) const;
  8468. bool HasSubscribedToEvent(Object, const String&);
  8469. bool HasSubscribedToEvent(const String&);
  8470. bool HasTag(const String&);
  8471. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8472. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8473. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8474. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8475. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8476. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8477. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8478. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8479. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8480. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8481. bool Load(File, bool = false);
  8482. bool Load(VectorBuffer&, bool = false);
  8483. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8484. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8485. bool LoadJSON(File);
  8486. bool LoadJSON(VectorBuffer&);
  8487. bool LoadJSON(const JSONValue&, bool = false);
  8488. bool LoadXML(File);
  8489. bool LoadXML(VectorBuffer&);
  8490. bool LoadXML(const XMLElement&, bool = false);
  8491. Vector3 LocalToWorld(const Vector3&) const;
  8492. Vector3 LocalToWorld(const Vector4&) const;
  8493. Vector2 LocalToWorld2D(const Vector2&) const;
  8494. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8495. void MarkNetworkUpdate() const;
  8496. void Pitch(float, TransformSpace = TS_LOCAL);
  8497. void RegisterVar(const String&);
  8498. void Remove();
  8499. void RemoveAllChildren();
  8500. void RemoveAllComponents();
  8501. void RemoveAllTags();
  8502. void RemoveAttributeAnimation(const String&);
  8503. void RemoveChild(Node);
  8504. void RemoveChildren(bool, bool, bool);
  8505. void RemoveComponent(Component);
  8506. void RemoveComponent(const String&);
  8507. void RemoveComponents(bool, bool);
  8508. void RemoveComponents(const String&);
  8509. void RemoveInstanceDefault();
  8510. void RemoveObjectAnimation();
  8511. bool RemoveTag(const String&);
  8512. void ResetToDefault();
  8513. void Roll(float, TransformSpace = TS_LOCAL);
  8514. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8515. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8516. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8517. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8518. bool Save(File) const;
  8519. bool Save(VectorBuffer&) const;
  8520. bool SaveJSON(File, const String& = "\t");
  8521. bool SaveJSON(JSONValue&) const;
  8522. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8523. bool SaveXML(File, const String& = "\t");
  8524. bool SaveXML(VectorBuffer&, const String& = "\t");
  8525. bool SaveXML(XMLElement&) const;
  8526. void Scale(const Vector3&);
  8527. void Scale(float);
  8528. void Scale2D(const Vector2&);
  8529. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8530. void SetAnimationTime(float);
  8531. bool SetAttribute(const String&, const Variant&);
  8532. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8533. void SetAttributeAnimationSpeed(const String&, float);
  8534. void SetAttributeAnimationTime(const String&, float);
  8535. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8536. void SetInterceptNetworkUpdate(const String&, bool);
  8537. void SetPosition2D(float, float);
  8538. void SetScale(float);
  8539. void SetScale2D(float, float);
  8540. void SetTransform(const Vector3&, const Quaternion&);
  8541. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8542. void SetTransform(const Vector3&, const Quaternion&, float);
  8543. void SetTransform2D(const Vector2&, float);
  8544. void SetTransform2D(const Vector2&, float, const Vector2&);
  8545. void SetTransform2D(const Vector2&, float, float);
  8546. void SetWorldTransform(const Vector3&, const Quaternion&);
  8547. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8548. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8549. void SetWorldTransform2D(const Vector2&, float);
  8550. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8551. void SetWorldTransform2D(const Vector2&, float, float);
  8552. void StopAsyncLoading();
  8553. const String& GetVarName(StringHash) const;
  8554. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8555. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8556. void UnregisterAllVars(const String&);
  8557. void UnregisterVar(const String&);
  8558. void Update(float);
  8559. Vector3 WorldToLocal(const Vector3&) const;
  8560. Vector3 WorldToLocal(const Vector4&) const;
  8561. Vector2 WorldToLocal2D(const Vector2&) const;
  8562. void Yaw(float, TransformSpace = TS_LOCAL);
  8563. // Properties:
  8564. bool animationEnabled;
  8565. /* readonly */
  8566. LoadMode asyncLoadMode;
  8567. /* readonly */
  8568. bool asyncLoading;
  8569. int asyncLoadingMs;
  8570. /* readonly */
  8571. float asyncProgress;
  8572. /* readonly */
  8573. Array<Variant> attributeDefaults;
  8574. /* readonly */
  8575. Array<AttributeInfo> attributeInfos;
  8576. Array<Variant> attributes;
  8577. /* readonly */
  8578. String category;
  8579. /* readonly */
  8580. uint checksum;
  8581. /* readonly */
  8582. Array<Node> children;
  8583. /* readonly */
  8584. Array<Component> components;
  8585. /* readonly */
  8586. DebugRenderer debugRenderer;
  8587. Vector3 direction;
  8588. float elapsedTime;
  8589. /* readonly */
  8590. String fileName;
  8591. /* readonly */
  8592. uint id;
  8593. String name;
  8594. /* readonly */
  8595. uint numAllChildren;
  8596. /* readonly */
  8597. uint numAttributes;
  8598. /* readonly */
  8599. uint numChildren;
  8600. /* readonly */
  8601. uint numComponents;
  8602. ObjectAnimation objectAnimation;
  8603. /* readonly */
  8604. Octree octree;
  8605. Node parent;
  8606. /* readonly */
  8607. PhysicsWorld physicsWorld;
  8608. /* readonly */
  8609. PhysicsWorld2D physicsWorld2D;
  8610. Vector3 position;
  8611. Vector2 position2D;
  8612. /* readonly */
  8613. int refs;
  8614. /* readonly */
  8615. Array<PackageFile> requiredPackageFiles;
  8616. /* readonly */
  8617. Vector3 right;
  8618. Quaternion rotation;
  8619. float rotation2D;
  8620. Vector3 scale;
  8621. Vector2 scale2D;
  8622. /* readonly */
  8623. ScriptObject scriptObject;
  8624. float smoothingConstant;
  8625. float snapThreshold;
  8626. /* readonly */
  8627. Array<String> tags;
  8628. bool temporary;
  8629. float timeScale;
  8630. /* readonly */
  8631. Matrix3x4 transform;
  8632. /* readonly */
  8633. StringHash type;
  8634. /* readonly */
  8635. String typeName;
  8636. /* readonly */
  8637. Vector3 up;
  8638. bool updateEnabled;
  8639. /* readonly */
  8640. VariantMap vars;
  8641. /* readonly */
  8642. int weakRefs;
  8643. Vector3 worldDirection;
  8644. Vector3 worldPosition;
  8645. Vector2 worldPosition2D;
  8646. /* readonly */
  8647. Vector3 worldRight;
  8648. Quaternion worldRotation;
  8649. float worldRotation2D;
  8650. Vector3 worldScale;
  8651. Vector2 worldScale2D;
  8652. /* readonly */
  8653. Matrix3x4 worldTransform;
  8654. /* readonly */
  8655. Vector3 worldUp;
  8656. };
  8657. class Script
  8658. {
  8659. // Methods:
  8660. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8661. bool Execute(const String&);
  8662. bool HasSubscribedToEvent(Object, const String&);
  8663. bool HasSubscribedToEvent(const String&);
  8664. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8665. // Properties:
  8666. /* readonly */
  8667. String category;
  8668. Scene defaultScene;
  8669. ScriptFile defaultScriptFile;
  8670. bool executeConsoleCommands;
  8671. /* readonly */
  8672. int refs;
  8673. /* readonly */
  8674. StringHash type;
  8675. /* readonly */
  8676. String typeName;
  8677. /* readonly */
  8678. int weakRefs;
  8679. };
  8680. class ScriptFile
  8681. {
  8682. // Methods:
  8683. void ClearDelayedExecute(const String& = String ( ));
  8684. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8685. bool Execute(const String&, const Array<Variant> = null);
  8686. bool HasSubscribedToEvent(Object, const String&);
  8687. bool HasSubscribedToEvent(const String&);
  8688. bool Load(File);
  8689. bool Load(VectorBuffer&);
  8690. bool Save(File) const;
  8691. bool Save(VectorBuffer&) const;
  8692. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8693. // Properties:
  8694. /* readonly */
  8695. String category;
  8696. /* readonly */
  8697. bool compiled;
  8698. /* readonly */
  8699. uint memoryUse;
  8700. String name;
  8701. /* readonly */
  8702. int refs;
  8703. /* readonly */
  8704. StringHash type;
  8705. /* readonly */
  8706. String typeName;
  8707. /* readonly */
  8708. uint useTimer;
  8709. /* readonly */
  8710. int weakRefs;
  8711. };
  8712. class ScriptInstance
  8713. {
  8714. // Methods:
  8715. void ApplyAttributes();
  8716. void ClearDelayedExecute(const String& = String ( ));
  8717. bool CreateObject(ScriptFile, const String&);
  8718. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8719. void DrawDebugGeometry(DebugRenderer, bool);
  8720. bool Execute(const String&, const Array<Variant> = null);
  8721. Variant GetAttribute(const String&) const;
  8722. ValueAnimation GetAttributeAnimation(const String&) const;
  8723. float GetAttributeAnimationSpeed(const String&) const;
  8724. float GetAttributeAnimationTime(const String&) const;
  8725. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8726. Variant GetAttributeDefault(const String&) const;
  8727. bool GetInterceptNetworkUpdate(const String&) const;
  8728. bool HasMethod(const String&) const;
  8729. bool HasSubscribedToEvent(Object, const String&);
  8730. bool HasSubscribedToEvent(const String&);
  8731. bool IsA(const String&) const;
  8732. bool Load(File, bool = false);
  8733. bool Load(VectorBuffer&, bool = false);
  8734. bool LoadJSON(const JSONValue&, bool = false);
  8735. bool LoadXML(const XMLElement&, bool = false);
  8736. void MarkNetworkUpdate() const;
  8737. void Remove();
  8738. void RemoveAttributeAnimation(const String&);
  8739. void RemoveInstanceDefault();
  8740. void RemoveObjectAnimation();
  8741. void ResetToDefault();
  8742. bool Save(File) const;
  8743. bool Save(VectorBuffer&) const;
  8744. bool SaveJSON(JSONValue&) const;
  8745. bool SaveXML(XMLElement&) const;
  8746. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8747. void SetAnimationTime(float);
  8748. bool SetAttribute(const String&, const Variant&);
  8749. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8750. void SetAttributeAnimationSpeed(const String&, float);
  8751. void SetAttributeAnimationTime(const String&, float);
  8752. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8753. void SetInterceptNetworkUpdate(const String&, bool);
  8754. // Properties:
  8755. bool animationEnabled;
  8756. /* readonly */
  8757. Array<Variant> attributeDefaults;
  8758. /* readonly */
  8759. Array<AttributeInfo> attributeInfos;
  8760. Array<Variant> attributes;
  8761. /* readonly */
  8762. String category;
  8763. String className;
  8764. bool enabled;
  8765. /* readonly */
  8766. bool enabledEffective;
  8767. /* readonly */
  8768. uint id;
  8769. /* readonly */
  8770. Node node;
  8771. /* readonly */
  8772. uint numAttributes;
  8773. ObjectAnimation objectAnimation;
  8774. /* readonly */
  8775. int refs;
  8776. ScriptFile scriptFile;
  8777. /* readonly */
  8778. ScriptObject scriptObject;
  8779. bool temporary;
  8780. /* readonly */
  8781. StringHash type;
  8782. /* readonly */
  8783. String typeName;
  8784. /* readonly */
  8785. int weakRefs;
  8786. };
  8787. class ScriptObject
  8788. {
  8789. };
  8790. class ScrollBar
  8791. {
  8792. // Methods:
  8793. void AddChild(UIElement);
  8794. void AddTag(const String&);
  8795. void AddTags(const String&, int8 = ';');
  8796. void ApplyAttributes();
  8797. void BringToFront();
  8798. void ChangeValue(float);
  8799. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8800. void DisableLayoutUpdate();
  8801. IntVector2 ElementToScreen(const IntVector2&);
  8802. void EnableLayoutUpdate();
  8803. uint FindChild(UIElement) const;
  8804. Variant GetAttribute(const String&) const;
  8805. ValueAnimation GetAttributeAnimation(const String&) const;
  8806. float GetAttributeAnimationSpeed(const String&) const;
  8807. float GetAttributeAnimationTime(const String&) const;
  8808. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8809. Variant GetAttributeDefault(const String&) const;
  8810. UIElement GetChild(const String&, bool = false) const;
  8811. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8812. Array<UIElement> GetChildren(bool = false) const;
  8813. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8814. UIElement GetElementEventSender() const;
  8815. bool GetInterceptNetworkUpdate(const String&) const;
  8816. uint GetNumChildren(bool) const;
  8817. bool HasSubscribedToEvent(Object, const String&);
  8818. bool HasSubscribedToEvent(const String&);
  8819. bool HasTag(const String&) const;
  8820. void InsertChild(uint, UIElement);
  8821. bool IsInside(IntVector2, bool);
  8822. bool IsInsideCombined(IntVector2, bool);
  8823. bool Load(File, bool = false);
  8824. bool Load(VectorBuffer&, bool = false);
  8825. bool LoadChildXML(XMLFile, XMLFile = null);
  8826. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8827. bool LoadJSON(const JSONValue&, bool = false);
  8828. bool LoadXML(File);
  8829. bool LoadXML(VectorBuffer&);
  8830. bool LoadXML(XMLFile, XMLFile);
  8831. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8832. bool LoadXML(const XMLElement&, bool = false);
  8833. void MarkNetworkUpdate() const;
  8834. void Remove();
  8835. void RemoveAllChildren();
  8836. void RemoveAllTags();
  8837. void RemoveAttributeAnimation(const String&);
  8838. void RemoveChild(UIElement, uint = 0);
  8839. void RemoveChild(uint);
  8840. void RemoveInstanceDefault();
  8841. void RemoveObjectAnimation();
  8842. bool RemoveTag(const String&);
  8843. void ResetDeepEnabled();
  8844. void ResetToDefault();
  8845. bool Save(File) const;
  8846. bool Save(VectorBuffer&) const;
  8847. bool SaveJSON(JSONValue&) const;
  8848. bool SaveXML(File, const String& = "\t");
  8849. bool SaveXML(VectorBuffer&, const String& = "\t");
  8850. bool SaveXML(XMLElement&) const;
  8851. IntVector2 ScreenToElement(const IntVector2&);
  8852. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8853. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8854. void SetAnimationTime(float);
  8855. bool SetAttribute(const String&, const Variant&);
  8856. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8857. void SetAttributeAnimationSpeed(const String&, float);
  8858. void SetAttributeAnimationTime(const String&, float);
  8859. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8860. void SetDeepEnabled(bool);
  8861. void SetEnabledRecursive(bool);
  8862. void SetFixedHeight(int);
  8863. void SetFixedSize(int, int);
  8864. void SetFixedWidth(int);
  8865. void SetInterceptNetworkUpdate(const String&, bool);
  8866. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8867. void SetMaxSize(int, int);
  8868. void SetMinSize(int, int);
  8869. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8870. void SetPosition(int, int);
  8871. void SetSize(int, int);
  8872. bool SetStyle(const String&, XMLFile = null);
  8873. bool SetStyle(const XMLElement&);
  8874. bool SetStyleAuto(XMLFile = null);
  8875. void StepBack();
  8876. void StepForward();
  8877. void UpdateLayout();
  8878. const Variant& GetVar(const StringHash&);
  8879. // Properties:
  8880. bool animationEnabled;
  8881. /* readonly */
  8882. Array<Variant> attributeDefaults;
  8883. /* readonly */
  8884. Array<AttributeInfo> attributeInfos;
  8885. Array<Variant> attributes;
  8886. /* readonly */
  8887. Button backButton;
  8888. bool bringToBack;
  8889. bool bringToFront;
  8890. /* readonly */
  8891. String category;
  8892. /* readonly */
  8893. IntVector2 childOffset;
  8894. /* readonly */
  8895. Array<UIElement> children;
  8896. IntRect clipBorder;
  8897. bool clipChildren;
  8898. /* writeonly */
  8899. Color color;
  8900. /* readonly */
  8901. bool colorGradient;
  8902. Array<Color> colors;
  8903. /* readonly */
  8904. IntRect combinedScreenRect;
  8905. XMLFile defaultStyle;
  8906. /* readonly */
  8907. float derivedOpacity;
  8908. /* readonly */
  8909. uint dragButtonCombo;
  8910. /* readonly */
  8911. int dragButtonCount;
  8912. uint dragDropMode;
  8913. bool editable;
  8914. /* readonly */
  8915. float effectiveScrollStep;
  8916. bool elementEventSender;
  8917. bool enabled;
  8918. /* readonly */
  8919. bool enabledSelf;
  8920. /* readonly */
  8921. bool fixedHeight;
  8922. /* readonly */
  8923. bool fixedSize;
  8924. /* readonly */
  8925. bool fixedWidth;
  8926. bool focus;
  8927. FocusMode focusMode;
  8928. /* readonly */
  8929. Button forwardButton;
  8930. int height;
  8931. HorizontalAlignment horizontalAlignment;
  8932. /* readonly */
  8933. bool hovering;
  8934. int indent;
  8935. int indentSpacing;
  8936. /* readonly */
  8937. int indentWidth;
  8938. bool internal;
  8939. IntRect layoutBorder;
  8940. Vector2 layoutFlexScale;
  8941. LayoutMode layoutMode;
  8942. int layoutSpacing;
  8943. int maxHeight;
  8944. IntVector2 maxSize;
  8945. int maxWidth;
  8946. int minHeight;
  8947. IntVector2 minSize;
  8948. int minWidth;
  8949. String name;
  8950. /* readonly */
  8951. uint numAllChildren;
  8952. /* readonly */
  8953. uint numAttributes;
  8954. /* readonly */
  8955. uint numChildren;
  8956. ObjectAnimation objectAnimation;
  8957. float opacity;
  8958. Orientation orientation;
  8959. UIElement parent;
  8960. IntVector2 position;
  8961. int priority;
  8962. float range;
  8963. /* readonly */
  8964. int refs;
  8965. /* readonly */
  8966. UIElement root;
  8967. /* readonly */
  8968. IntVector2 screenPosition;
  8969. float scrollStep;
  8970. bool selected;
  8971. IntVector2 size;
  8972. /* readonly */
  8973. Slider slider;
  8974. bool sortChildren;
  8975. float stepFactor;
  8976. String style;
  8977. /* readonly */
  8978. Array<String> tags;
  8979. bool temporary;
  8980. TraversalMode traversalMode;
  8981. /* readonly */
  8982. StringHash type;
  8983. /* readonly */
  8984. String typeName;
  8985. bool useDerivedOpacity;
  8986. float value;
  8987. /* readonly */
  8988. VariantMap vars;
  8989. VerticalAlignment verticalAlignment;
  8990. bool visible;
  8991. /* readonly */
  8992. bool visibleEffective;
  8993. /* readonly */
  8994. int weakRefs;
  8995. int width;
  8996. };
  8997. class ScrollView
  8998. {
  8999. // Methods:
  9000. void AddChild(UIElement);
  9001. void AddTag(const String&);
  9002. void AddTags(const String&, int8 = ';');
  9003. void ApplyAttributes();
  9004. void BringToFront();
  9005. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9006. void DisableLayoutUpdate();
  9007. IntVector2 ElementToScreen(const IntVector2&);
  9008. void EnableLayoutUpdate();
  9009. uint FindChild(UIElement) const;
  9010. Variant GetAttribute(const String&) const;
  9011. ValueAnimation GetAttributeAnimation(const String&) const;
  9012. float GetAttributeAnimationSpeed(const String&) const;
  9013. float GetAttributeAnimationTime(const String&) const;
  9014. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9015. Variant GetAttributeDefault(const String&) const;
  9016. UIElement GetChild(const String&, bool = false) const;
  9017. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9018. Array<UIElement> GetChildren(bool = false) const;
  9019. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9020. UIElement GetElementEventSender() const;
  9021. bool GetInterceptNetworkUpdate(const String&) const;
  9022. uint GetNumChildren(bool) const;
  9023. bool HasSubscribedToEvent(Object, const String&);
  9024. bool HasSubscribedToEvent(const String&);
  9025. bool HasTag(const String&) const;
  9026. void InsertChild(uint, UIElement);
  9027. bool IsInside(IntVector2, bool);
  9028. bool IsInsideCombined(IntVector2, bool);
  9029. bool Load(File, bool = false);
  9030. bool Load(VectorBuffer&, bool = false);
  9031. bool LoadChildXML(XMLFile, XMLFile = null);
  9032. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9033. bool LoadJSON(const JSONValue&, bool = false);
  9034. bool LoadXML(File);
  9035. bool LoadXML(VectorBuffer&);
  9036. bool LoadXML(XMLFile, XMLFile);
  9037. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9038. bool LoadXML(const XMLElement&, bool = false);
  9039. void MarkNetworkUpdate() const;
  9040. void Remove();
  9041. void RemoveAllChildren();
  9042. void RemoveAllTags();
  9043. void RemoveAttributeAnimation(const String&);
  9044. void RemoveChild(UIElement, uint = 0);
  9045. void RemoveChild(uint);
  9046. void RemoveInstanceDefault();
  9047. void RemoveObjectAnimation();
  9048. bool RemoveTag(const String&);
  9049. void ResetDeepEnabled();
  9050. void ResetToDefault();
  9051. bool Save(File) const;
  9052. bool Save(VectorBuffer&) const;
  9053. bool SaveJSON(JSONValue&) const;
  9054. bool SaveXML(File, const String& = "\t");
  9055. bool SaveXML(VectorBuffer&, const String& = "\t");
  9056. bool SaveXML(XMLElement&) const;
  9057. IntVector2 ScreenToElement(const IntVector2&);
  9058. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9059. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9060. void SetAnimationTime(float);
  9061. bool SetAttribute(const String&, const Variant&);
  9062. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9063. void SetAttributeAnimationSpeed(const String&, float);
  9064. void SetAttributeAnimationTime(const String&, float);
  9065. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9066. void SetDeepEnabled(bool);
  9067. void SetEnabledRecursive(bool);
  9068. void SetFixedHeight(int);
  9069. void SetFixedSize(int, int);
  9070. void SetFixedWidth(int);
  9071. void SetInterceptNetworkUpdate(const String&, bool);
  9072. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9073. void SetMaxSize(int, int);
  9074. void SetMinSize(int, int);
  9075. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9076. void SetPosition(int, int);
  9077. void SetScrollBarsVisible(bool, bool);
  9078. void SetSize(int, int);
  9079. bool SetStyle(const String&, XMLFile = null);
  9080. bool SetStyle(const XMLElement&);
  9081. bool SetStyleAuto(XMLFile = null);
  9082. void SetViewPosition(int, int);
  9083. void UpdateLayout();
  9084. const Variant& GetVar(const StringHash&);
  9085. // Properties:
  9086. bool animationEnabled;
  9087. /* readonly */
  9088. Array<Variant> attributeDefaults;
  9089. /* readonly */
  9090. Array<AttributeInfo> attributeInfos;
  9091. Array<Variant> attributes;
  9092. bool autoDisableChildren;
  9093. float autoDisableThreshold;
  9094. bool bringToBack;
  9095. bool bringToFront;
  9096. /* readonly */
  9097. String category;
  9098. /* readonly */
  9099. IntVector2 childOffset;
  9100. /* readonly */
  9101. Array<UIElement> children;
  9102. IntRect clipBorder;
  9103. bool clipChildren;
  9104. /* writeonly */
  9105. Color color;
  9106. /* readonly */
  9107. bool colorGradient;
  9108. Array<Color> colors;
  9109. /* readonly */
  9110. IntRect combinedScreenRect;
  9111. UIElement contentElement;
  9112. XMLFile defaultStyle;
  9113. /* readonly */
  9114. float derivedOpacity;
  9115. /* readonly */
  9116. uint dragButtonCombo;
  9117. /* readonly */
  9118. int dragButtonCount;
  9119. uint dragDropMode;
  9120. bool editable;
  9121. bool elementEventSender;
  9122. bool enabled;
  9123. /* readonly */
  9124. bool enabledSelf;
  9125. /* readonly */
  9126. bool fixedHeight;
  9127. /* readonly */
  9128. bool fixedSize;
  9129. /* readonly */
  9130. bool fixedWidth;
  9131. bool focus;
  9132. FocusMode focusMode;
  9133. int height;
  9134. HorizontalAlignment horizontalAlignment;
  9135. /* readonly */
  9136. ScrollBar horizontalScrollBar;
  9137. /* readonly */
  9138. bool hovering;
  9139. int indent;
  9140. int indentSpacing;
  9141. /* readonly */
  9142. int indentWidth;
  9143. bool internal;
  9144. IntRect layoutBorder;
  9145. Vector2 layoutFlexScale;
  9146. LayoutMode layoutMode;
  9147. int layoutSpacing;
  9148. int maxHeight;
  9149. IntVector2 maxSize;
  9150. int maxWidth;
  9151. int minHeight;
  9152. IntVector2 minSize;
  9153. int minWidth;
  9154. String name;
  9155. /* readonly */
  9156. uint numAllChildren;
  9157. /* readonly */
  9158. uint numAttributes;
  9159. /* readonly */
  9160. uint numChildren;
  9161. ObjectAnimation objectAnimation;
  9162. float opacity;
  9163. float pageStep;
  9164. UIElement parent;
  9165. IntVector2 position;
  9166. int priority;
  9167. /* readonly */
  9168. int refs;
  9169. /* readonly */
  9170. UIElement root;
  9171. /* readonly */
  9172. IntVector2 screenPosition;
  9173. bool scrollBarsAutoVisible;
  9174. float scrollDeceleration;
  9175. /* readonly */
  9176. BorderImage scrollPanel;
  9177. float scrollSnapEpsilon;
  9178. float scrollStep;
  9179. bool selected;
  9180. IntVector2 size;
  9181. bool sortChildren;
  9182. String style;
  9183. /* readonly */
  9184. Array<String> tags;
  9185. bool temporary;
  9186. TraversalMode traversalMode;
  9187. /* readonly */
  9188. StringHash type;
  9189. /* readonly */
  9190. String typeName;
  9191. bool useDerivedOpacity;
  9192. /* readonly */
  9193. VariantMap vars;
  9194. VerticalAlignment verticalAlignment;
  9195. /* readonly */
  9196. ScrollBar verticalScrollBar;
  9197. IntVector2 viewPosition;
  9198. bool visible;
  9199. /* readonly */
  9200. bool visibleEffective;
  9201. /* readonly */
  9202. int weakRefs;
  9203. int width;
  9204. };
  9205. class Serializable
  9206. {
  9207. // Methods:
  9208. void ApplyAttributes();
  9209. Variant GetAttribute(const String&) const;
  9210. Variant GetAttributeDefault(const String&) const;
  9211. bool GetInterceptNetworkUpdate(const String&) const;
  9212. bool HasSubscribedToEvent(Object, const String&);
  9213. bool HasSubscribedToEvent(const String&);
  9214. bool Load(File, bool = false);
  9215. bool Load(VectorBuffer&, bool = false);
  9216. bool LoadJSON(const JSONValue&, bool = false);
  9217. bool LoadXML(const XMLElement&, bool = false);
  9218. void MarkNetworkUpdate() const;
  9219. void RemoveInstanceDefault();
  9220. void ResetToDefault();
  9221. bool Save(File) const;
  9222. bool Save(VectorBuffer&) const;
  9223. bool SaveJSON(JSONValue&) const;
  9224. bool SaveXML(XMLElement&) const;
  9225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9226. bool SetAttribute(const String&, const Variant&);
  9227. void SetInterceptNetworkUpdate(const String&, bool);
  9228. // Properties:
  9229. /* readonly */
  9230. Array<Variant> attributeDefaults;
  9231. /* readonly */
  9232. Array<AttributeInfo> attributeInfos;
  9233. Array<Variant> attributes;
  9234. /* readonly */
  9235. String category;
  9236. /* readonly */
  9237. uint numAttributes;
  9238. /* readonly */
  9239. int refs;
  9240. bool temporary;
  9241. /* readonly */
  9242. StringHash type;
  9243. /* readonly */
  9244. String typeName;
  9245. /* readonly */
  9246. int weakRefs;
  9247. };
  9248. class Serializer
  9249. {
  9250. // Methods:
  9251. uint Write(Array<uint8>);
  9252. bool WriteBool(bool);
  9253. bool WriteBoundingBox(const BoundingBox&);
  9254. bool WriteByte(int8);
  9255. bool WriteColor(const Color&);
  9256. bool WriteDouble(double);
  9257. bool WriteFileID(const String&);
  9258. bool WriteFloat(float);
  9259. bool WriteInt(int);
  9260. bool WriteIntRect(const IntRect&);
  9261. bool WriteIntVector2(const IntVector2&);
  9262. bool WriteLine(const String&);
  9263. bool WriteMatrix3(const Matrix3&);
  9264. bool WriteMatrix3x4(const Matrix3x4&);
  9265. bool WriteMatrix4(const Matrix4&);
  9266. bool WriteNetID(uint);
  9267. bool WritePackedQuaternion(const Quaternion&);
  9268. bool WritePackedVector3(const Vector3&, float);
  9269. bool WriteQuaternion(const Quaternion&);
  9270. bool WriteShort(int16);
  9271. bool WriteString(const String&);
  9272. bool WriteStringHash(const StringHash&);
  9273. bool WriteUByte(uint8);
  9274. bool WriteUInt(uint);
  9275. bool WriteUShort(uint16);
  9276. bool WriteVLE(uint);
  9277. bool WriteVariant(const Variant&);
  9278. bool WriteVariantMap(const VariantMap&);
  9279. bool WriteVector2(const Vector2&);
  9280. bool WriteVector3(const Vector3&);
  9281. bool WriteVector4(const Vector4&);
  9282. bool WriteVectorBuffer(const VectorBuffer&);
  9283. };
  9284. class Skeleton
  9285. {
  9286. // Methods:
  9287. Bone GetBone(const String&) const;
  9288. void Reset();
  9289. // Properties:
  9290. /* readonly */
  9291. Array<Bone> bones;
  9292. /* readonly */
  9293. uint numBones;
  9294. /* readonly */
  9295. Bone rootBone;
  9296. };
  9297. class Skybox
  9298. {
  9299. // Methods:
  9300. void ApplyAttributes();
  9301. void ApplyMaterialList(const String& = String ( ));
  9302. void DrawDebugGeometry(DebugRenderer, bool);
  9303. Variant GetAttribute(const String&) const;
  9304. ValueAnimation GetAttributeAnimation(const String&) const;
  9305. float GetAttributeAnimationSpeed(const String&) const;
  9306. float GetAttributeAnimationTime(const String&) const;
  9307. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9308. Variant GetAttributeDefault(const String&) const;
  9309. bool GetInterceptNetworkUpdate(const String&) const;
  9310. bool HasSubscribedToEvent(Object, const String&);
  9311. bool HasSubscribedToEvent(const String&);
  9312. bool IsInView(Camera) const;
  9313. bool Load(File, bool = false);
  9314. bool Load(VectorBuffer&, bool = false);
  9315. bool LoadJSON(const JSONValue&, bool = false);
  9316. bool LoadXML(const XMLElement&, bool = false);
  9317. void MarkNetworkUpdate() const;
  9318. void Remove();
  9319. void RemoveAttributeAnimation(const String&);
  9320. void RemoveInstanceDefault();
  9321. void RemoveObjectAnimation();
  9322. void ResetToDefault();
  9323. bool Save(File) const;
  9324. bool Save(VectorBuffer&) const;
  9325. bool SaveJSON(JSONValue&) const;
  9326. bool SaveXML(XMLElement&) const;
  9327. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9328. void SetAnimationTime(float);
  9329. bool SetAttribute(const String&, const Variant&);
  9330. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9331. void SetAttributeAnimationSpeed(const String&, float);
  9332. void SetAttributeAnimationTime(const String&, float);
  9333. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9334. void SetInterceptNetworkUpdate(const String&, bool);
  9335. // Properties:
  9336. bool animationEnabled;
  9337. /* readonly */
  9338. Array<Variant> attributeDefaults;
  9339. /* readonly */
  9340. Array<AttributeInfo> attributeInfos;
  9341. Array<Variant> attributes;
  9342. /* readonly */
  9343. BoundingBox boundingBox;
  9344. bool castShadows;
  9345. /* readonly */
  9346. String category;
  9347. float drawDistance;
  9348. bool enabled;
  9349. /* readonly */
  9350. bool enabledEffective;
  9351. /* readonly */
  9352. uint id;
  9353. /* readonly */
  9354. bool inView;
  9355. uint lightMask;
  9356. float lodBias;
  9357. /* writeonly */
  9358. Material material;
  9359. Array<Material> materials;
  9360. uint maxLights;
  9361. Model model;
  9362. /* readonly */
  9363. Node node;
  9364. /* readonly */
  9365. uint numAttributes;
  9366. /* readonly */
  9367. uint numGeometries;
  9368. ObjectAnimation objectAnimation;
  9369. bool occludee;
  9370. bool occluder;
  9371. /* readonly */
  9372. int refs;
  9373. float shadowDistance;
  9374. uint shadowMask;
  9375. bool temporary;
  9376. /* readonly */
  9377. StringHash type;
  9378. /* readonly */
  9379. String typeName;
  9380. uint viewMask;
  9381. /* readonly */
  9382. int weakRefs;
  9383. /* readonly */
  9384. BoundingBox worldBoundingBox;
  9385. /* readonly */
  9386. Zone zone;
  9387. uint zoneMask;
  9388. };
  9389. class Slider
  9390. {
  9391. // Methods:
  9392. void AddChild(UIElement);
  9393. void AddTag(const String&);
  9394. void AddTags(const String&, int8 = ';');
  9395. void ApplyAttributes();
  9396. void BringToFront();
  9397. void ChangeValue(float);
  9398. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9399. void DisableLayoutUpdate();
  9400. IntVector2 ElementToScreen(const IntVector2&);
  9401. void EnableLayoutUpdate();
  9402. uint FindChild(UIElement) const;
  9403. Variant GetAttribute(const String&) const;
  9404. ValueAnimation GetAttributeAnimation(const String&) const;
  9405. float GetAttributeAnimationSpeed(const String&) const;
  9406. float GetAttributeAnimationTime(const String&) const;
  9407. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9408. Variant GetAttributeDefault(const String&) const;
  9409. UIElement GetChild(const String&, bool = false) const;
  9410. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9411. Array<UIElement> GetChildren(bool = false) const;
  9412. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9413. UIElement GetElementEventSender() const;
  9414. bool GetInterceptNetworkUpdate(const String&) const;
  9415. uint GetNumChildren(bool) const;
  9416. bool HasSubscribedToEvent(Object, const String&);
  9417. bool HasSubscribedToEvent(const String&);
  9418. bool HasTag(const String&) const;
  9419. void InsertChild(uint, UIElement);
  9420. bool IsInside(IntVector2, bool);
  9421. bool IsInsideCombined(IntVector2, bool);
  9422. bool Load(File, bool = false);
  9423. bool Load(VectorBuffer&, bool = false);
  9424. bool LoadChildXML(XMLFile, XMLFile = null);
  9425. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9426. bool LoadJSON(const JSONValue&, bool = false);
  9427. bool LoadXML(File);
  9428. bool LoadXML(VectorBuffer&);
  9429. bool LoadXML(XMLFile, XMLFile);
  9430. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9431. bool LoadXML(const XMLElement&, bool = false);
  9432. void MarkNetworkUpdate() const;
  9433. void Remove();
  9434. void RemoveAllChildren();
  9435. void RemoveAllTags();
  9436. void RemoveAttributeAnimation(const String&);
  9437. void RemoveChild(UIElement, uint = 0);
  9438. void RemoveChild(uint);
  9439. void RemoveInstanceDefault();
  9440. void RemoveObjectAnimation();
  9441. bool RemoveTag(const String&);
  9442. void ResetDeepEnabled();
  9443. void ResetToDefault();
  9444. bool Save(File) const;
  9445. bool Save(VectorBuffer&) const;
  9446. bool SaveJSON(JSONValue&) const;
  9447. bool SaveXML(File, const String& = "\t");
  9448. bool SaveXML(VectorBuffer&, const String& = "\t");
  9449. bool SaveXML(XMLElement&) const;
  9450. IntVector2 ScreenToElement(const IntVector2&);
  9451. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9452. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9453. void SetAnimationTime(float);
  9454. bool SetAttribute(const String&, const Variant&);
  9455. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9456. void SetAttributeAnimationSpeed(const String&, float);
  9457. void SetAttributeAnimationTime(const String&, float);
  9458. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9459. void SetDeepEnabled(bool);
  9460. void SetEnabledRecursive(bool);
  9461. void SetFixedHeight(int);
  9462. void SetFixedSize(int, int);
  9463. void SetFixedWidth(int);
  9464. void SetFullImageRect();
  9465. void SetHoverOffset(int, int);
  9466. void SetInterceptNetworkUpdate(const String&, bool);
  9467. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9468. void SetMaxSize(int, int);
  9469. void SetMinSize(int, int);
  9470. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9471. void SetPosition(int, int);
  9472. void SetSize(int, int);
  9473. bool SetStyle(const String&, XMLFile = null);
  9474. bool SetStyle(const XMLElement&);
  9475. bool SetStyleAuto(XMLFile = null);
  9476. void UpdateLayout();
  9477. const Variant& GetVar(const StringHash&);
  9478. // Properties:
  9479. bool animationEnabled;
  9480. /* readonly */
  9481. Array<Variant> attributeDefaults;
  9482. /* readonly */
  9483. Array<AttributeInfo> attributeInfos;
  9484. Array<Variant> attributes;
  9485. BlendMode blendMode;
  9486. IntRect border;
  9487. bool bringToBack;
  9488. bool bringToFront;
  9489. /* readonly */
  9490. String category;
  9491. /* readonly */
  9492. IntVector2 childOffset;
  9493. /* readonly */
  9494. Array<UIElement> children;
  9495. IntRect clipBorder;
  9496. bool clipChildren;
  9497. /* writeonly */
  9498. Color color;
  9499. /* readonly */
  9500. bool colorGradient;
  9501. Array<Color> colors;
  9502. /* readonly */
  9503. IntRect combinedScreenRect;
  9504. XMLFile defaultStyle;
  9505. /* readonly */
  9506. float derivedOpacity;
  9507. /* readonly */
  9508. uint dragButtonCombo;
  9509. /* readonly */
  9510. int dragButtonCount;
  9511. uint dragDropMode;
  9512. bool editable;
  9513. bool elementEventSender;
  9514. bool enabled;
  9515. /* readonly */
  9516. bool enabledSelf;
  9517. /* readonly */
  9518. bool fixedHeight;
  9519. /* readonly */
  9520. bool fixedSize;
  9521. /* readonly */
  9522. bool fixedWidth;
  9523. bool focus;
  9524. FocusMode focusMode;
  9525. int height;
  9526. HorizontalAlignment horizontalAlignment;
  9527. IntVector2 hoverOffset;
  9528. /* readonly */
  9529. bool hovering;
  9530. IntRect imageBorder;
  9531. IntRect imageRect;
  9532. int indent;
  9533. int indentSpacing;
  9534. /* readonly */
  9535. int indentWidth;
  9536. bool internal;
  9537. /* readonly */
  9538. BorderImage knob;
  9539. IntRect layoutBorder;
  9540. Vector2 layoutFlexScale;
  9541. LayoutMode layoutMode;
  9542. int layoutSpacing;
  9543. int maxHeight;
  9544. IntVector2 maxSize;
  9545. int maxWidth;
  9546. int minHeight;
  9547. IntVector2 minSize;
  9548. int minWidth;
  9549. String name;
  9550. /* readonly */
  9551. uint numAllChildren;
  9552. /* readonly */
  9553. uint numAttributes;
  9554. /* readonly */
  9555. uint numChildren;
  9556. ObjectAnimation objectAnimation;
  9557. float opacity;
  9558. Orientation orientation;
  9559. UIElement parent;
  9560. IntVector2 position;
  9561. int priority;
  9562. float range;
  9563. /* readonly */
  9564. int refs;
  9565. float repeatRate;
  9566. /* readonly */
  9567. UIElement root;
  9568. /* readonly */
  9569. IntVector2 screenPosition;
  9570. bool selected;
  9571. IntVector2 size;
  9572. bool sortChildren;
  9573. String style;
  9574. /* readonly */
  9575. Array<String> tags;
  9576. bool temporary;
  9577. Texture texture;
  9578. bool tiled;
  9579. TraversalMode traversalMode;
  9580. /* readonly */
  9581. StringHash type;
  9582. /* readonly */
  9583. String typeName;
  9584. bool useDerivedOpacity;
  9585. float value;
  9586. /* readonly */
  9587. VariantMap vars;
  9588. VerticalAlignment verticalAlignment;
  9589. bool visible;
  9590. /* readonly */
  9591. bool visibleEffective;
  9592. /* readonly */
  9593. int weakRefs;
  9594. int width;
  9595. };
  9596. class SmoothedTransform
  9597. {
  9598. // Methods:
  9599. void ApplyAttributes();
  9600. void DrawDebugGeometry(DebugRenderer, bool);
  9601. Variant GetAttribute(const String&) const;
  9602. ValueAnimation GetAttributeAnimation(const String&) const;
  9603. float GetAttributeAnimationSpeed(const String&) const;
  9604. float GetAttributeAnimationTime(const String&) const;
  9605. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9606. Variant GetAttributeDefault(const String&) const;
  9607. bool GetInterceptNetworkUpdate(const String&) const;
  9608. bool HasSubscribedToEvent(Object, const String&);
  9609. bool HasSubscribedToEvent(const String&);
  9610. bool Load(File, bool = false);
  9611. bool Load(VectorBuffer&, bool = false);
  9612. bool LoadJSON(const JSONValue&, bool = false);
  9613. bool LoadXML(const XMLElement&, bool = false);
  9614. void MarkNetworkUpdate() const;
  9615. void Remove();
  9616. void RemoveAttributeAnimation(const String&);
  9617. void RemoveInstanceDefault();
  9618. void RemoveObjectAnimation();
  9619. void ResetToDefault();
  9620. bool Save(File) const;
  9621. bool Save(VectorBuffer&) const;
  9622. bool SaveJSON(JSONValue&) const;
  9623. bool SaveXML(XMLElement&) const;
  9624. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9625. void SetAnimationTime(float);
  9626. bool SetAttribute(const String&, const Variant&);
  9627. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9628. void SetAttributeAnimationSpeed(const String&, float);
  9629. void SetAttributeAnimationTime(const String&, float);
  9630. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9631. void SetInterceptNetworkUpdate(const String&, bool);
  9632. void Update(float, float);
  9633. // Properties:
  9634. bool animationEnabled;
  9635. /* readonly */
  9636. Array<Variant> attributeDefaults;
  9637. /* readonly */
  9638. Array<AttributeInfo> attributeInfos;
  9639. Array<Variant> attributes;
  9640. /* readonly */
  9641. String category;
  9642. bool enabled;
  9643. /* readonly */
  9644. bool enabledEffective;
  9645. /* readonly */
  9646. uint id;
  9647. /* readonly */
  9648. bool inProgress;
  9649. /* readonly */
  9650. Node node;
  9651. /* readonly */
  9652. uint numAttributes;
  9653. ObjectAnimation objectAnimation;
  9654. /* readonly */
  9655. int refs;
  9656. Vector3 targetPosition;
  9657. Quaternion targetRotation;
  9658. Vector3 targetWorldPosition;
  9659. Quaternion targetWorldRotation;
  9660. bool temporary;
  9661. /* readonly */
  9662. StringHash type;
  9663. /* readonly */
  9664. String typeName;
  9665. /* readonly */
  9666. int weakRefs;
  9667. };
  9668. class Sound
  9669. {
  9670. // Methods:
  9671. bool HasSubscribedToEvent(Object, const String&);
  9672. bool HasSubscribedToEvent(const String&);
  9673. bool Load(File);
  9674. bool Load(VectorBuffer&);
  9675. bool Save(File) const;
  9676. bool Save(VectorBuffer&) const;
  9677. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9678. // Properties:
  9679. /* readonly */
  9680. String category;
  9681. /* readonly */
  9682. bool compressed;
  9683. /* readonly */
  9684. float frequency;
  9685. /* readonly */
  9686. float length;
  9687. bool looped;
  9688. /* readonly */
  9689. uint memoryUse;
  9690. String name;
  9691. /* readonly */
  9692. int refs;
  9693. /* readonly */
  9694. uint sampleSize;
  9695. /* readonly */
  9696. bool sixteenBit;
  9697. /* readonly */
  9698. bool stereo;
  9699. /* readonly */
  9700. StringHash type;
  9701. /* readonly */
  9702. String typeName;
  9703. /* readonly */
  9704. uint useTimer;
  9705. /* readonly */
  9706. int weakRefs;
  9707. };
  9708. class SoundListener
  9709. {
  9710. // Methods:
  9711. void ApplyAttributes();
  9712. void DrawDebugGeometry(DebugRenderer, bool);
  9713. Variant GetAttribute(const String&) const;
  9714. ValueAnimation GetAttributeAnimation(const String&) const;
  9715. float GetAttributeAnimationSpeed(const String&) const;
  9716. float GetAttributeAnimationTime(const String&) const;
  9717. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9718. Variant GetAttributeDefault(const String&) const;
  9719. bool GetInterceptNetworkUpdate(const String&) const;
  9720. bool HasSubscribedToEvent(Object, const String&);
  9721. bool HasSubscribedToEvent(const String&);
  9722. bool Load(File, bool = false);
  9723. bool Load(VectorBuffer&, bool = false);
  9724. bool LoadJSON(const JSONValue&, bool = false);
  9725. bool LoadXML(const XMLElement&, bool = false);
  9726. void MarkNetworkUpdate() const;
  9727. void Remove();
  9728. void RemoveAttributeAnimation(const String&);
  9729. void RemoveInstanceDefault();
  9730. void RemoveObjectAnimation();
  9731. void ResetToDefault();
  9732. bool Save(File) const;
  9733. bool Save(VectorBuffer&) const;
  9734. bool SaveJSON(JSONValue&) const;
  9735. bool SaveXML(XMLElement&) const;
  9736. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9737. void SetAnimationTime(float);
  9738. bool SetAttribute(const String&, const Variant&);
  9739. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9740. void SetAttributeAnimationSpeed(const String&, float);
  9741. void SetAttributeAnimationTime(const String&, float);
  9742. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9743. void SetInterceptNetworkUpdate(const String&, bool);
  9744. // Properties:
  9745. bool animationEnabled;
  9746. /* readonly */
  9747. Array<Variant> attributeDefaults;
  9748. /* readonly */
  9749. Array<AttributeInfo> attributeInfos;
  9750. Array<Variant> attributes;
  9751. /* readonly */
  9752. String category;
  9753. bool enabled;
  9754. /* readonly */
  9755. bool enabledEffective;
  9756. /* readonly */
  9757. uint id;
  9758. /* readonly */
  9759. Node node;
  9760. /* readonly */
  9761. uint numAttributes;
  9762. ObjectAnimation objectAnimation;
  9763. /* readonly */
  9764. int refs;
  9765. bool temporary;
  9766. /* readonly */
  9767. StringHash type;
  9768. /* readonly */
  9769. String typeName;
  9770. /* readonly */
  9771. int weakRefs;
  9772. };
  9773. class SoundSource
  9774. {
  9775. // Methods:
  9776. void ApplyAttributes();
  9777. void DrawDebugGeometry(DebugRenderer, bool);
  9778. Variant GetAttribute(const String&) const;
  9779. ValueAnimation GetAttributeAnimation(const String&) const;
  9780. float GetAttributeAnimationSpeed(const String&) const;
  9781. float GetAttributeAnimationTime(const String&) const;
  9782. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9783. Variant GetAttributeDefault(const String&) const;
  9784. bool GetInterceptNetworkUpdate(const String&) const;
  9785. bool HasSubscribedToEvent(Object, const String&);
  9786. bool HasSubscribedToEvent(const String&);
  9787. bool Load(File, bool = false);
  9788. bool Load(VectorBuffer&, bool = false);
  9789. bool LoadJSON(const JSONValue&, bool = false);
  9790. bool LoadXML(const XMLElement&, bool = false);
  9791. void MarkNetworkUpdate() const;
  9792. void Play(Sound);
  9793. void Play(Sound, float);
  9794. void Play(Sound, float, float);
  9795. void Play(Sound, float, float, float);
  9796. void Remove();
  9797. void RemoveAttributeAnimation(const String&);
  9798. void RemoveInstanceDefault();
  9799. void RemoveObjectAnimation();
  9800. void ResetToDefault();
  9801. bool Save(File) const;
  9802. bool Save(VectorBuffer&) const;
  9803. bool SaveJSON(JSONValue&) const;
  9804. bool SaveXML(XMLElement&) const;
  9805. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9806. void SetAnimationTime(float);
  9807. bool SetAttribute(const String&, const Variant&);
  9808. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9809. void SetAttributeAnimationSpeed(const String&, float);
  9810. void SetAttributeAnimationTime(const String&, float);
  9811. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9812. void SetInterceptNetworkUpdate(const String&, bool);
  9813. void Stop();
  9814. // Properties:
  9815. bool animationEnabled;
  9816. /* readonly */
  9817. float attenuation;
  9818. /* readonly */
  9819. Array<Variant> attributeDefaults;
  9820. /* readonly */
  9821. Array<AttributeInfo> attributeInfos;
  9822. Array<Variant> attributes;
  9823. bool autoRemove;
  9824. /* readonly */
  9825. String category;
  9826. bool enabled;
  9827. /* readonly */
  9828. bool enabledEffective;
  9829. float frequency;
  9830. float gain;
  9831. /* readonly */
  9832. uint id;
  9833. /* readonly */
  9834. Node node;
  9835. /* readonly */
  9836. uint numAttributes;
  9837. ObjectAnimation objectAnimation;
  9838. float panning;
  9839. /* readonly */
  9840. bool playing;
  9841. /* readonly */
  9842. int refs;
  9843. /* readonly */
  9844. Sound sound;
  9845. String soundType;
  9846. bool temporary;
  9847. /* readonly */
  9848. float timePosition;
  9849. /* readonly */
  9850. StringHash type;
  9851. /* readonly */
  9852. String typeName;
  9853. /* readonly */
  9854. int weakRefs;
  9855. };
  9856. class SoundSource3D
  9857. {
  9858. // Methods:
  9859. void ApplyAttributes();
  9860. void DrawDebugGeometry(DebugRenderer, bool);
  9861. Variant GetAttribute(const String&) const;
  9862. ValueAnimation GetAttributeAnimation(const String&) const;
  9863. float GetAttributeAnimationSpeed(const String&) const;
  9864. float GetAttributeAnimationTime(const String&) const;
  9865. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9866. Variant GetAttributeDefault(const String&) const;
  9867. bool GetInterceptNetworkUpdate(const String&) const;
  9868. bool HasSubscribedToEvent(Object, const String&);
  9869. bool HasSubscribedToEvent(const String&);
  9870. bool Load(File, bool = false);
  9871. bool Load(VectorBuffer&, bool = false);
  9872. bool LoadJSON(const JSONValue&, bool = false);
  9873. bool LoadXML(const XMLElement&, bool = false);
  9874. void MarkNetworkUpdate() const;
  9875. void Play(Sound);
  9876. void Play(Sound, float);
  9877. void Play(Sound, float, float);
  9878. void Play(Sound, float, float, float);
  9879. void Remove();
  9880. void RemoveAttributeAnimation(const String&);
  9881. void RemoveInstanceDefault();
  9882. void RemoveObjectAnimation();
  9883. void ResetToDefault();
  9884. bool Save(File) const;
  9885. bool Save(VectorBuffer&) const;
  9886. bool SaveJSON(JSONValue&) const;
  9887. bool SaveXML(XMLElement&) const;
  9888. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9889. void SetAngleAttenuation(float, float);
  9890. void SetAnimationTime(float);
  9891. bool SetAttribute(const String&, const Variant&);
  9892. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9893. void SetAttributeAnimationSpeed(const String&, float);
  9894. void SetAttributeAnimationTime(const String&, float);
  9895. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9896. void SetDistanceAttenuation(float, float, float);
  9897. void SetInterceptNetworkUpdate(const String&, bool);
  9898. void Stop();
  9899. // Properties:
  9900. bool animationEnabled;
  9901. /* readonly */
  9902. float attenuation;
  9903. /* readonly */
  9904. Array<Variant> attributeDefaults;
  9905. /* readonly */
  9906. Array<AttributeInfo> attributeInfos;
  9907. Array<Variant> attributes;
  9908. bool autoRemove;
  9909. /* readonly */
  9910. String category;
  9911. bool enabled;
  9912. /* readonly */
  9913. bool enabledEffective;
  9914. float farDistance;
  9915. float frequency;
  9916. float gain;
  9917. /* readonly */
  9918. uint id;
  9919. float innerAngle;
  9920. float nearDistance;
  9921. /* readonly */
  9922. Node node;
  9923. /* readonly */
  9924. uint numAttributes;
  9925. ObjectAnimation objectAnimation;
  9926. float outerAngle;
  9927. float panning;
  9928. /* readonly */
  9929. bool playing;
  9930. /* readonly */
  9931. int refs;
  9932. float rolloffFactor;
  9933. /* readonly */
  9934. Sound sound;
  9935. String soundType;
  9936. bool temporary;
  9937. /* readonly */
  9938. float timePosition;
  9939. /* readonly */
  9940. StringHash type;
  9941. /* readonly */
  9942. String typeName;
  9943. /* readonly */
  9944. int weakRefs;
  9945. };
  9946. class Sphere
  9947. {
  9948. // Methods:
  9949. void Clear();
  9950. void Define(const BoundingBox&);
  9951. void Define(const Frustum&);
  9952. void Define(const Polyhedron&);
  9953. void Define(const Sphere&);
  9954. void Define(const Vector3&, float);
  9955. bool Defined() const;
  9956. float Distance(const Vector3&) const;
  9957. Intersection IsInside(const BoundingBox&) const;
  9958. Intersection IsInside(const Sphere&) const;
  9959. Intersection IsInside(const Vector3&) const;
  9960. Intersection IsInsideFast(const BoundingBox&) const;
  9961. Intersection IsInsideFast(const Sphere&) const;
  9962. void Merge(const BoundingBox&);
  9963. void Merge(const Frustum&);
  9964. void Merge(const Sphere&);
  9965. void Merge(const Vector3&);
  9966. // Properties:
  9967. Vector3 center;
  9968. float radius;
  9969. };
  9970. class Spline
  9971. {
  9972. // Methods:
  9973. void AddKnot(const Variant&);
  9974. void AddKnot(const Variant&, uint);
  9975. void Clear();
  9976. Variant GetPoint(float);
  9977. void RemoveKnot();
  9978. void RemoveKnot(uint);
  9979. // Properties:
  9980. InterpolationMode interpolationMode;
  9981. Array<Variant> knot;
  9982. Array<Variant> knots;
  9983. };
  9984. class SplinePath
  9985. {
  9986. // Methods:
  9987. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9988. void ApplyAttributes();
  9989. void ClearControlPoints();
  9990. void DrawDebugGeometry(DebugRenderer, bool);
  9991. Variant GetAttribute(const String&) const;
  9992. ValueAnimation GetAttributeAnimation(const String&) const;
  9993. float GetAttributeAnimationSpeed(const String&) const;
  9994. float GetAttributeAnimationTime(const String&) const;
  9995. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9996. Variant GetAttributeDefault(const String&) const;
  9997. bool GetInterceptNetworkUpdate(const String&) const;
  9998. Vector3 GetPoint(float) const;
  9999. Vector3 GetPosition() const;
  10000. bool HasSubscribedToEvent(Object, const String&);
  10001. bool HasSubscribedToEvent(const String&);
  10002. bool Load(File, bool = false);
  10003. bool Load(VectorBuffer&, bool = false);
  10004. bool LoadJSON(const JSONValue&, bool = false);
  10005. bool LoadXML(const XMLElement&, bool = false);
  10006. void MarkNetworkUpdate() const;
  10007. void Move(float);
  10008. void Remove();
  10009. void RemoveAttributeAnimation(const String&);
  10010. void RemoveControlPoint(Node);
  10011. void RemoveInstanceDefault();
  10012. void RemoveObjectAnimation();
  10013. void Reset();
  10014. void ResetToDefault();
  10015. bool Save(File) const;
  10016. bool Save(VectorBuffer&) const;
  10017. bool SaveJSON(JSONValue&) const;
  10018. bool SaveXML(XMLElement&) const;
  10019. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10020. void SetAnimationTime(float);
  10021. bool SetAttribute(const String&, const Variant&);
  10022. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10023. void SetAttributeAnimationSpeed(const String&, float);
  10024. void SetAttributeAnimationTime(const String&, float);
  10025. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10026. void SetInterceptNetworkUpdate(const String&, bool);
  10027. void SetPosition(float);
  10028. // Properties:
  10029. bool animationEnabled;
  10030. /* readonly */
  10031. Array<Variant> attributeDefaults;
  10032. /* readonly */
  10033. Array<AttributeInfo> attributeInfos;
  10034. Array<Variant> attributes;
  10035. /* readonly */
  10036. String category;
  10037. Node controlledNode;
  10038. bool enabled;
  10039. /* readonly */
  10040. bool enabledEffective;
  10041. /* readonly */
  10042. uint id;
  10043. InterpolationMode interpolationMode;
  10044. /* readonly */
  10045. bool isFinished;
  10046. /* readonly */
  10047. float length;
  10048. /* readonly */
  10049. Node node;
  10050. /* readonly */
  10051. uint numAttributes;
  10052. ObjectAnimation objectAnimation;
  10053. /* readonly */
  10054. int refs;
  10055. float speed;
  10056. bool temporary;
  10057. /* readonly */
  10058. StringHash type;
  10059. /* readonly */
  10060. String typeName;
  10061. /* readonly */
  10062. int weakRefs;
  10063. };
  10064. class Sprite
  10065. {
  10066. // Methods:
  10067. void AddChild(UIElement);
  10068. void AddTag(const String&);
  10069. void AddTags(const String&, int8 = ';');
  10070. void ApplyAttributes();
  10071. void BringToFront();
  10072. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10073. uint FindChild(UIElement) const;
  10074. Variant GetAttribute(const String&) const;
  10075. ValueAnimation GetAttributeAnimation(const String&) const;
  10076. float GetAttributeAnimationSpeed(const String&) const;
  10077. float GetAttributeAnimationTime(const String&) const;
  10078. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10079. Variant GetAttributeDefault(const String&) const;
  10080. UIElement GetChild(const String&, bool = false) const;
  10081. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10082. Array<UIElement> GetChildren(bool = false) const;
  10083. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10084. UIElement GetElementEventSender() const;
  10085. bool GetInterceptNetworkUpdate(const String&) const;
  10086. uint GetNumChildren(bool) const;
  10087. bool HasSubscribedToEvent(Object, const String&);
  10088. bool HasSubscribedToEvent(const String&);
  10089. bool HasTag(const String&) const;
  10090. void InsertChild(uint, UIElement);
  10091. bool Load(File, bool = false);
  10092. bool Load(VectorBuffer&, bool = false);
  10093. bool LoadChildXML(XMLFile, XMLFile = null);
  10094. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10095. bool LoadJSON(const JSONValue&, bool = false);
  10096. bool LoadXML(File);
  10097. bool LoadXML(VectorBuffer&);
  10098. bool LoadXML(XMLFile, XMLFile);
  10099. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10100. bool LoadXML(const XMLElement&, bool = false);
  10101. void MarkNetworkUpdate() const;
  10102. void Remove();
  10103. void RemoveAllChildren();
  10104. void RemoveAllTags();
  10105. void RemoveAttributeAnimation(const String&);
  10106. void RemoveChild(UIElement, uint = 0);
  10107. void RemoveChild(uint);
  10108. void RemoveInstanceDefault();
  10109. void RemoveObjectAnimation();
  10110. bool RemoveTag(const String&);
  10111. void ResetToDefault();
  10112. bool Save(File) const;
  10113. bool Save(VectorBuffer&) const;
  10114. bool SaveJSON(JSONValue&) const;
  10115. bool SaveXML(File, const String& = "\t");
  10116. bool SaveXML(VectorBuffer&, const String& = "\t");
  10117. bool SaveXML(XMLElement&) const;
  10118. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10119. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10120. void SetAnimationTime(float);
  10121. bool SetAttribute(const String&, const Variant&);
  10122. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10123. void SetAttributeAnimationSpeed(const String&, float);
  10124. void SetAttributeAnimationTime(const String&, float);
  10125. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10126. void SetFixedHeight(int);
  10127. void SetFixedSize(int, int);
  10128. void SetFixedWidth(int);
  10129. void SetFullImageRect();
  10130. void SetHotSpot(int, int);
  10131. void SetInterceptNetworkUpdate(const String&, bool);
  10132. void SetMaxSize(int, int);
  10133. void SetMinSize(int, int);
  10134. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10135. void SetPosition(float, float);
  10136. void SetScale(float);
  10137. void SetScale(float, float);
  10138. void SetSize(int, int);
  10139. bool SetStyle(const String&, XMLFile = null);
  10140. bool SetStyle(const XMLElement&);
  10141. bool SetStyleAuto(XMLFile = null);
  10142. const Variant& GetVar(const StringHash&);
  10143. // Properties:
  10144. bool animationEnabled;
  10145. /* readonly */
  10146. Array<Variant> attributeDefaults;
  10147. /* readonly */
  10148. Array<AttributeInfo> attributeInfos;
  10149. Array<Variant> attributes;
  10150. BlendMode blendMode;
  10151. bool bringToBack;
  10152. bool bringToFront;
  10153. /* readonly */
  10154. String category;
  10155. /* readonly */
  10156. Array<UIElement> children;
  10157. /* writeonly */
  10158. Color color;
  10159. /* readonly */
  10160. bool colorGradient;
  10161. Array<Color> colors;
  10162. XMLFile defaultStyle;
  10163. /* readonly */
  10164. float derivedOpacity;
  10165. /* readonly */
  10166. uint dragButtonCombo;
  10167. /* readonly */
  10168. int dragButtonCount;
  10169. bool elementEventSender;
  10170. int height;
  10171. HorizontalAlignment horizontalAlignment;
  10172. IntVector2 hotSpot;
  10173. IntRect imageRect;
  10174. String name;
  10175. /* readonly */
  10176. uint numAllChildren;
  10177. /* readonly */
  10178. uint numAttributes;
  10179. /* readonly */
  10180. uint numChildren;
  10181. ObjectAnimation objectAnimation;
  10182. float opacity;
  10183. UIElement parent;
  10184. Vector2 position;
  10185. int priority;
  10186. /* readonly */
  10187. int refs;
  10188. /* readonly */
  10189. UIElement root;
  10190. float rotation;
  10191. Vector2 scale;
  10192. IntVector2 size;
  10193. bool sortChildren;
  10194. String style;
  10195. /* readonly */
  10196. Array<String> tags;
  10197. bool temporary;
  10198. Texture texture;
  10199. /* readonly */
  10200. StringHash type;
  10201. /* readonly */
  10202. String typeName;
  10203. bool useDerivedOpacity;
  10204. /* readonly */
  10205. VariantMap vars;
  10206. VerticalAlignment verticalAlignment;
  10207. bool visible;
  10208. /* readonly */
  10209. bool visibleEffective;
  10210. /* readonly */
  10211. int weakRefs;
  10212. int width;
  10213. };
  10214. class Sprite2D
  10215. {
  10216. // Methods:
  10217. bool HasSubscribedToEvent(Object, const String&);
  10218. bool HasSubscribedToEvent(const String&);
  10219. bool Load(File);
  10220. bool Load(VectorBuffer&);
  10221. bool Save(File) const;
  10222. bool Save(VectorBuffer&) const;
  10223. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10224. // Properties:
  10225. /* readonly */
  10226. String category;
  10227. Vector2 hotSpot;
  10228. /* readonly */
  10229. uint memoryUse;
  10230. String name;
  10231. IntVector2 offset;
  10232. IntRect rectangle;
  10233. /* readonly */
  10234. int refs;
  10235. Texture2D texture;
  10236. float textureEdgeOffset;
  10237. /* readonly */
  10238. StringHash type;
  10239. /* readonly */
  10240. String typeName;
  10241. /* readonly */
  10242. uint useTimer;
  10243. /* readonly */
  10244. int weakRefs;
  10245. };
  10246. class SpriteSheet2D
  10247. {
  10248. // Methods:
  10249. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10250. Sprite2D GetSprite(const String&);
  10251. bool HasSubscribedToEvent(Object, const String&);
  10252. bool HasSubscribedToEvent(const String&);
  10253. bool Load(File);
  10254. bool Load(VectorBuffer&);
  10255. bool Save(File) const;
  10256. bool Save(VectorBuffer&) const;
  10257. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10258. // Properties:
  10259. /* readonly */
  10260. String category;
  10261. /* readonly */
  10262. uint memoryUse;
  10263. String name;
  10264. /* readonly */
  10265. int refs;
  10266. Texture2D texture;
  10267. /* readonly */
  10268. StringHash type;
  10269. /* readonly */
  10270. String typeName;
  10271. /* readonly */
  10272. uint useTimer;
  10273. /* readonly */
  10274. int weakRefs;
  10275. };
  10276. class StaticModel
  10277. {
  10278. // Methods:
  10279. void ApplyAttributes();
  10280. void ApplyMaterialList(const String& = String ( ));
  10281. void DrawDebugGeometry(DebugRenderer, bool);
  10282. Variant GetAttribute(const String&) const;
  10283. ValueAnimation GetAttributeAnimation(const String&) const;
  10284. float GetAttributeAnimationSpeed(const String&) const;
  10285. float GetAttributeAnimationTime(const String&) const;
  10286. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10287. Variant GetAttributeDefault(const String&) const;
  10288. bool GetInterceptNetworkUpdate(const String&) const;
  10289. bool HasSubscribedToEvent(Object, const String&);
  10290. bool HasSubscribedToEvent(const String&);
  10291. bool IsInView(Camera) const;
  10292. bool IsInside(const Vector3&) const;
  10293. bool IsInsideLocal(const Vector3&) const;
  10294. bool Load(File, bool = false);
  10295. bool Load(VectorBuffer&, bool = false);
  10296. bool LoadJSON(const JSONValue&, bool = false);
  10297. bool LoadXML(const XMLElement&, bool = false);
  10298. void MarkNetworkUpdate() const;
  10299. void Remove();
  10300. void RemoveAttributeAnimation(const String&);
  10301. void RemoveInstanceDefault();
  10302. void RemoveObjectAnimation();
  10303. void ResetToDefault();
  10304. bool Save(File) const;
  10305. bool Save(VectorBuffer&) const;
  10306. bool SaveJSON(JSONValue&) const;
  10307. bool SaveXML(XMLElement&) const;
  10308. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10309. void SetAnimationTime(float);
  10310. bool SetAttribute(const String&, const Variant&);
  10311. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10312. void SetAttributeAnimationSpeed(const String&, float);
  10313. void SetAttributeAnimationTime(const String&, float);
  10314. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10315. void SetInterceptNetworkUpdate(const String&, bool);
  10316. // Properties:
  10317. bool animationEnabled;
  10318. /* readonly */
  10319. Array<Variant> attributeDefaults;
  10320. /* readonly */
  10321. Array<AttributeInfo> attributeInfos;
  10322. Array<Variant> attributes;
  10323. /* readonly */
  10324. BoundingBox boundingBox;
  10325. bool castShadows;
  10326. /* readonly */
  10327. String category;
  10328. float drawDistance;
  10329. bool enabled;
  10330. /* readonly */
  10331. bool enabledEffective;
  10332. /* readonly */
  10333. uint id;
  10334. /* readonly */
  10335. bool inView;
  10336. uint lightMask;
  10337. float lodBias;
  10338. /* writeonly */
  10339. Material material;
  10340. Array<Material> materials;
  10341. uint maxLights;
  10342. Model model;
  10343. /* readonly */
  10344. Node node;
  10345. /* readonly */
  10346. uint numAttributes;
  10347. /* readonly */
  10348. uint numGeometries;
  10349. ObjectAnimation objectAnimation;
  10350. bool occludee;
  10351. bool occluder;
  10352. uint occlusionLodLevel;
  10353. /* readonly */
  10354. int refs;
  10355. float shadowDistance;
  10356. uint shadowMask;
  10357. bool temporary;
  10358. /* readonly */
  10359. StringHash type;
  10360. /* readonly */
  10361. String typeName;
  10362. uint viewMask;
  10363. /* readonly */
  10364. int weakRefs;
  10365. /* readonly */
  10366. BoundingBox worldBoundingBox;
  10367. uint zoneMask;
  10368. };
  10369. class StaticModelGroup
  10370. {
  10371. // Methods:
  10372. void AddInstanceNode(Node);
  10373. void ApplyAttributes();
  10374. void ApplyMaterialList(const String& = String ( ));
  10375. void DrawDebugGeometry(DebugRenderer, bool);
  10376. Variant GetAttribute(const String&) const;
  10377. ValueAnimation GetAttributeAnimation(const String&) const;
  10378. float GetAttributeAnimationSpeed(const String&) const;
  10379. float GetAttributeAnimationTime(const String&) const;
  10380. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10381. Variant GetAttributeDefault(const String&) const;
  10382. bool GetInterceptNetworkUpdate(const String&) const;
  10383. bool HasSubscribedToEvent(Object, const String&);
  10384. bool HasSubscribedToEvent(const String&);
  10385. bool IsInView(Camera) const;
  10386. bool Load(File, bool = false);
  10387. bool Load(VectorBuffer&, bool = false);
  10388. bool LoadJSON(const JSONValue&, bool = false);
  10389. bool LoadXML(const XMLElement&, bool = false);
  10390. void MarkNetworkUpdate() const;
  10391. void Remove();
  10392. void RemoveAllInstanceNodes();
  10393. void RemoveAttributeAnimation(const String&);
  10394. void RemoveInstanceDefault();
  10395. void RemoveInstanceNode(Node);
  10396. void RemoveObjectAnimation();
  10397. void ResetToDefault();
  10398. bool Save(File) const;
  10399. bool Save(VectorBuffer&) const;
  10400. bool SaveJSON(JSONValue&) const;
  10401. bool SaveXML(XMLElement&) const;
  10402. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10403. void SetAnimationTime(float);
  10404. bool SetAttribute(const String&, const Variant&);
  10405. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10406. void SetAttributeAnimationSpeed(const String&, float);
  10407. void SetAttributeAnimationTime(const String&, float);
  10408. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10409. void SetInterceptNetworkUpdate(const String&, bool);
  10410. // Properties:
  10411. bool animationEnabled;
  10412. /* readonly */
  10413. Array<Variant> attributeDefaults;
  10414. /* readonly */
  10415. Array<AttributeInfo> attributeInfos;
  10416. Array<Variant> attributes;
  10417. /* readonly */
  10418. BoundingBox boundingBox;
  10419. bool castShadows;
  10420. /* readonly */
  10421. String category;
  10422. float drawDistance;
  10423. bool enabled;
  10424. /* readonly */
  10425. bool enabledEffective;
  10426. /* readonly */
  10427. uint id;
  10428. /* readonly */
  10429. bool inView;
  10430. /* readonly */
  10431. Array<Node> instanceNodes;
  10432. uint lightMask;
  10433. float lodBias;
  10434. /* writeonly */
  10435. Material material;
  10436. Array<Material> materials;
  10437. uint maxLights;
  10438. Model model;
  10439. /* readonly */
  10440. Node node;
  10441. /* readonly */
  10442. uint numAttributes;
  10443. /* readonly */
  10444. uint numGeometries;
  10445. /* readonly */
  10446. uint numInstanceNodes;
  10447. ObjectAnimation objectAnimation;
  10448. bool occludee;
  10449. bool occluder;
  10450. uint occlusionLodLevel;
  10451. /* readonly */
  10452. int refs;
  10453. float shadowDistance;
  10454. uint shadowMask;
  10455. bool temporary;
  10456. /* readonly */
  10457. StringHash type;
  10458. /* readonly */
  10459. String typeName;
  10460. uint viewMask;
  10461. /* readonly */
  10462. int weakRefs;
  10463. /* readonly */
  10464. BoundingBox worldBoundingBox;
  10465. /* readonly */
  10466. Zone zone;
  10467. uint zoneMask;
  10468. };
  10469. class StaticSprite2D
  10470. {
  10471. // Methods:
  10472. void ApplyAttributes();
  10473. void DrawDebugGeometry(DebugRenderer, bool);
  10474. Variant GetAttribute(const String&) const;
  10475. ValueAnimation GetAttributeAnimation(const String&) const;
  10476. float GetAttributeAnimationSpeed(const String&) const;
  10477. float GetAttributeAnimationTime(const String&) const;
  10478. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10479. Variant GetAttributeDefault(const String&) const;
  10480. bool GetInterceptNetworkUpdate(const String&) const;
  10481. bool HasSubscribedToEvent(Object, const String&);
  10482. bool HasSubscribedToEvent(const String&);
  10483. bool IsInView(Camera) const;
  10484. bool Load(File, bool = false);
  10485. bool Load(VectorBuffer&, bool = false);
  10486. bool LoadJSON(const JSONValue&, bool = false);
  10487. bool LoadXML(const XMLElement&, bool = false);
  10488. void MarkNetworkUpdate() const;
  10489. void Remove();
  10490. void RemoveAttributeAnimation(const String&);
  10491. void RemoveInstanceDefault();
  10492. void RemoveObjectAnimation();
  10493. void ResetToDefault();
  10494. bool Save(File) const;
  10495. bool Save(VectorBuffer&) const;
  10496. bool SaveJSON(JSONValue&) const;
  10497. bool SaveXML(XMLElement&) const;
  10498. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10499. void SetAnimationTime(float);
  10500. bool SetAttribute(const String&, const Variant&);
  10501. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10502. void SetAttributeAnimationSpeed(const String&, float);
  10503. void SetAttributeAnimationTime(const String&, float);
  10504. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10505. void SetFlip(bool, bool);
  10506. void SetInterceptNetworkUpdate(const String&, bool);
  10507. // Properties:
  10508. float alpha;
  10509. bool animationEnabled;
  10510. /* readonly */
  10511. Array<Variant> attributeDefaults;
  10512. /* readonly */
  10513. Array<AttributeInfo> attributeInfos;
  10514. Array<Variant> attributes;
  10515. BlendMode blendMode;
  10516. /* readonly */
  10517. BoundingBox boundingBox;
  10518. bool castShadows;
  10519. /* readonly */
  10520. String category;
  10521. Color color;
  10522. Material customMaterial;
  10523. float drawDistance;
  10524. bool enabled;
  10525. /* readonly */
  10526. bool enabledEffective;
  10527. bool flipX;
  10528. bool flipY;
  10529. Vector2 hotSpot;
  10530. /* readonly */
  10531. uint id;
  10532. /* readonly */
  10533. bool inView;
  10534. int layer;
  10535. uint lightMask;
  10536. float lodBias;
  10537. uint maxLights;
  10538. /* readonly */
  10539. Node node;
  10540. /* readonly */
  10541. uint numAttributes;
  10542. ObjectAnimation objectAnimation;
  10543. bool occludee;
  10544. bool occluder;
  10545. int orderInLayer;
  10546. /* readonly */
  10547. int refs;
  10548. float shadowDistance;
  10549. uint shadowMask;
  10550. Sprite2D sprite;
  10551. bool temporary;
  10552. /* readonly */
  10553. StringHash type;
  10554. /* readonly */
  10555. String typeName;
  10556. bool useHotSpot;
  10557. uint viewMask;
  10558. /* readonly */
  10559. int weakRefs;
  10560. /* readonly */
  10561. BoundingBox worldBoundingBox;
  10562. uint zoneMask;
  10563. };
  10564. class String
  10565. {
  10566. // Methods:
  10567. void AppendUTF8(uint);
  10568. uint AtUTF8(uint) const;
  10569. uint ByteOffsetUTF8(uint) const;
  10570. void Clear();
  10571. int Compare(const String&, bool = true) const;
  10572. bool Contains(const String&, bool = true) const;
  10573. bool Contains(uint8, bool = true) const;
  10574. bool EndsWith(const String&, bool = true) const;
  10575. uint Find(const String&, uint = 0, bool = true) const;
  10576. uint Find(uint8, uint = 0, bool = true) const;
  10577. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10578. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10579. void Join(Array<String>&, const String&);
  10580. uint NextUTF8Char(uint&) const;
  10581. void Replace(const String&, const String&, bool = true);
  10582. void Replace(uint8, uint8, bool = true);
  10583. void ReplaceUTF8(uint, uint);
  10584. String Replaced(const String&, const String&, bool = true) const;
  10585. String Replaced(uint8, uint8, bool = true) const;
  10586. void Resize(uint);
  10587. void SetUTF8FromLatin1(const String&);
  10588. Array<String> Split(uint8, bool = false) const;
  10589. bool StartsWith(const String&, bool = true) const;
  10590. String Substring(uint) const;
  10591. String Substring(uint, uint) const;
  10592. String SubstringUTF8(uint) const;
  10593. String SubstringUTF8(uint, uint) const;
  10594. bool ToBool() const;
  10595. Color ToColor() const;
  10596. double ToDouble() const;
  10597. float ToFloat() const;
  10598. int ToInt() const;
  10599. IntRect ToIntRect() const;
  10600. IntVector2 ToIntVector2() const;
  10601. String ToLower() const;
  10602. Matrix3 ToMatrix3() const;
  10603. Matrix3x4 ToMatrix3x4() const;
  10604. Matrix4 ToMatrix4() const;
  10605. Quaternion ToQuaternion() const;
  10606. uint ToUInt() const;
  10607. String ToUpper() const;
  10608. Vector2 ToVector2() const;
  10609. Vector3 ToVector3() const;
  10610. Vector4 ToVector4(bool = false) const;
  10611. Variant ToVectorVariant() const;
  10612. String Trimmed() const;
  10613. // Properties:
  10614. /* readonly */
  10615. bool empty;
  10616. /* readonly */
  10617. uint length;
  10618. /* readonly */
  10619. uint utf8Length;
  10620. };
  10621. class StringHash
  10622. {
  10623. // Methods:
  10624. String ToString() const;
  10625. // Properties:
  10626. /* readonly */
  10627. uint value;
  10628. };
  10629. class Technique
  10630. {
  10631. // Methods:
  10632. Technique Clone(const String& = String ( )) const;
  10633. Pass CreatePass(const String&);
  10634. Pass GetPass(const String&);
  10635. Pass GetSupportedPass(const String&);
  10636. bool HasPass(const String&) const;
  10637. bool HasSubscribedToEvent(Object, const String&);
  10638. bool HasSubscribedToEvent(const String&);
  10639. bool Load(File);
  10640. bool Load(VectorBuffer&);
  10641. void RemovePass(const String&);
  10642. bool Save(File) const;
  10643. bool Save(VectorBuffer&) const;
  10644. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10645. // Properties:
  10646. /* readonly */
  10647. String category;
  10648. bool desktop;
  10649. /* readonly */
  10650. uint memoryUse;
  10651. String name;
  10652. /* readonly */
  10653. uint numPasses;
  10654. /* readonly */
  10655. Array<String> passNames;
  10656. /* readonly */
  10657. Array<Pass> passes;
  10658. /* readonly */
  10659. int refs;
  10660. /* readonly */
  10661. bool supported;
  10662. /* readonly */
  10663. StringHash type;
  10664. /* readonly */
  10665. String typeName;
  10666. /* readonly */
  10667. uint useTimer;
  10668. /* readonly */
  10669. int weakRefs;
  10670. };
  10671. class TechniqueEntry
  10672. {
  10673. // Properties:
  10674. float lodDistance;
  10675. int qualityLevel;
  10676. Technique technique;
  10677. };
  10678. class Terrain
  10679. {
  10680. // Methods:
  10681. void ApplyAttributes();
  10682. void ApplyHeightMap();
  10683. void DrawDebugGeometry(DebugRenderer, bool);
  10684. Variant GetAttribute(const String&) const;
  10685. ValueAnimation GetAttributeAnimation(const String&) const;
  10686. float GetAttributeAnimationSpeed(const String&) const;
  10687. float GetAttributeAnimationTime(const String&) const;
  10688. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10689. Variant GetAttributeDefault(const String&) const;
  10690. float GetHeight(const Vector3&) const;
  10691. bool GetInterceptNetworkUpdate(const String&) const;
  10692. Vector3 GetNormal(const Vector3&) const;
  10693. TerrainPatch GetPatch(int, int) const;
  10694. bool HasSubscribedToEvent(Object, const String&);
  10695. bool HasSubscribedToEvent(const String&);
  10696. bool Load(File, bool = false);
  10697. bool Load(VectorBuffer&, bool = false);
  10698. bool LoadJSON(const JSONValue&, bool = false);
  10699. bool LoadXML(const XMLElement&, bool = false);
  10700. void MarkNetworkUpdate() const;
  10701. void Remove();
  10702. void RemoveAttributeAnimation(const String&);
  10703. void RemoveInstanceDefault();
  10704. void RemoveObjectAnimation();
  10705. void ResetToDefault();
  10706. bool Save(File) const;
  10707. bool Save(VectorBuffer&) const;
  10708. bool SaveJSON(JSONValue&) const;
  10709. bool SaveXML(XMLElement&) const;
  10710. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10711. void SetAnimationTime(float);
  10712. bool SetAttribute(const String&, const Variant&);
  10713. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10714. void SetAttributeAnimationSpeed(const String&, float);
  10715. void SetAttributeAnimationTime(const String&, float);
  10716. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10717. void SetInterceptNetworkUpdate(const String&, bool);
  10718. IntVector2 WorldToHeightMap(const Vector3&) const;
  10719. // Properties:
  10720. bool animationEnabled;
  10721. /* readonly */
  10722. Array<Variant> attributeDefaults;
  10723. /* readonly */
  10724. Array<AttributeInfo> attributeInfos;
  10725. Array<Variant> attributes;
  10726. bool castShadows;
  10727. /* readonly */
  10728. String category;
  10729. float drawDistance;
  10730. bool enabled;
  10731. /* readonly */
  10732. bool enabledEffective;
  10733. Image heightMap;
  10734. /* readonly */
  10735. uint id;
  10736. uint lightMask;
  10737. float lodBias;
  10738. Material material;
  10739. uint maxLights;
  10740. uint maxLodLevels;
  10741. /* readonly */
  10742. Node node;
  10743. /* readonly */
  10744. uint numAttributes;
  10745. /* readonly */
  10746. IntVector2 numPatches;
  10747. /* readonly */
  10748. IntVector2 numVertices;
  10749. ObjectAnimation objectAnimation;
  10750. bool occludee;
  10751. bool occluder;
  10752. uint occlusionLodLevel;
  10753. int patchSize;
  10754. /* readonly */
  10755. Array<TerrainPatch> patches;
  10756. /* readonly */
  10757. int refs;
  10758. float shadowDistance;
  10759. uint shadowMask;
  10760. bool smoothing;
  10761. Vector3 spacing;
  10762. bool temporary;
  10763. /* readonly */
  10764. StringHash type;
  10765. /* readonly */
  10766. String typeName;
  10767. uint viewMask;
  10768. /* readonly */
  10769. int weakRefs;
  10770. uint zoneMask;
  10771. };
  10772. class TerrainPatch
  10773. {
  10774. // Methods:
  10775. void ApplyAttributes();
  10776. void DrawDebugGeometry(DebugRenderer, bool);
  10777. Variant GetAttribute(const String&) const;
  10778. ValueAnimation GetAttributeAnimation(const String&) const;
  10779. float GetAttributeAnimationSpeed(const String&) const;
  10780. float GetAttributeAnimationTime(const String&) const;
  10781. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10782. Variant GetAttributeDefault(const String&) const;
  10783. bool GetInterceptNetworkUpdate(const String&) const;
  10784. bool HasSubscribedToEvent(Object, const String&);
  10785. bool HasSubscribedToEvent(const String&);
  10786. bool IsInView(Camera) const;
  10787. bool Load(File, bool = false);
  10788. bool Load(VectorBuffer&, bool = false);
  10789. bool LoadJSON(const JSONValue&, bool = false);
  10790. bool LoadXML(const XMLElement&, bool = false);
  10791. void MarkNetworkUpdate() const;
  10792. void Remove();
  10793. void RemoveAttributeAnimation(const String&);
  10794. void RemoveInstanceDefault();
  10795. void RemoveObjectAnimation();
  10796. void ResetToDefault();
  10797. bool Save(File) const;
  10798. bool Save(VectorBuffer&) const;
  10799. bool SaveJSON(JSONValue&) const;
  10800. bool SaveXML(XMLElement&) const;
  10801. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10802. void SetAnimationTime(float);
  10803. bool SetAttribute(const String&, const Variant&);
  10804. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10805. void SetAttributeAnimationSpeed(const String&, float);
  10806. void SetAttributeAnimationTime(const String&, float);
  10807. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10808. void SetInterceptNetworkUpdate(const String&, bool);
  10809. // Properties:
  10810. bool animationEnabled;
  10811. /* readonly */
  10812. Array<Variant> attributeDefaults;
  10813. /* readonly */
  10814. Array<AttributeInfo> attributeInfos;
  10815. Array<Variant> attributes;
  10816. /* readonly */
  10817. BoundingBox boundingBox;
  10818. bool castShadows;
  10819. /* readonly */
  10820. String category;
  10821. float drawDistance;
  10822. bool enabled;
  10823. /* readonly */
  10824. bool enabledEffective;
  10825. /* readonly */
  10826. uint id;
  10827. /* readonly */
  10828. bool inView;
  10829. uint lightMask;
  10830. float lodBias;
  10831. uint maxLights;
  10832. /* readonly */
  10833. Node node;
  10834. /* readonly */
  10835. uint numAttributes;
  10836. ObjectAnimation objectAnimation;
  10837. bool occludee;
  10838. bool occluder;
  10839. /* readonly */
  10840. int refs;
  10841. float shadowDistance;
  10842. uint shadowMask;
  10843. bool temporary;
  10844. /* readonly */
  10845. StringHash type;
  10846. /* readonly */
  10847. String typeName;
  10848. uint viewMask;
  10849. /* readonly */
  10850. int weakRefs;
  10851. /* readonly */
  10852. BoundingBox worldBoundingBox;
  10853. uint zoneMask;
  10854. };
  10855. class Text
  10856. {
  10857. // Methods:
  10858. void AddChild(UIElement);
  10859. void AddTag(const String&);
  10860. void AddTags(const String&, int8 = ';');
  10861. void ApplyAttributes();
  10862. void BringToFront();
  10863. void ClearSelection();
  10864. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10865. void DisableLayoutUpdate();
  10866. IntVector2 ElementToScreen(const IntVector2&);
  10867. void EnableLayoutUpdate();
  10868. uint FindChild(UIElement) const;
  10869. Variant GetAttribute(const String&) const;
  10870. ValueAnimation GetAttributeAnimation(const String&) const;
  10871. float GetAttributeAnimationSpeed(const String&) const;
  10872. float GetAttributeAnimationTime(const String&) const;
  10873. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10874. Variant GetAttributeDefault(const String&) const;
  10875. UIElement GetChild(const String&, bool = false) const;
  10876. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10877. Array<UIElement> GetChildren(bool = false) const;
  10878. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10879. UIElement GetElementEventSender() const;
  10880. bool GetInterceptNetworkUpdate(const String&) const;
  10881. uint GetNumChildren(bool) const;
  10882. bool HasSubscribedToEvent(Object, const String&);
  10883. bool HasSubscribedToEvent(const String&);
  10884. bool HasTag(const String&) const;
  10885. void InsertChild(uint, UIElement);
  10886. bool IsInside(IntVector2, bool);
  10887. bool IsInsideCombined(IntVector2, bool);
  10888. bool Load(File, bool = false);
  10889. bool Load(VectorBuffer&, bool = false);
  10890. bool LoadChildXML(XMLFile, XMLFile = null);
  10891. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10892. bool LoadJSON(const JSONValue&, bool = false);
  10893. bool LoadXML(File);
  10894. bool LoadXML(VectorBuffer&);
  10895. bool LoadXML(XMLFile, XMLFile);
  10896. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10897. bool LoadXML(const XMLElement&, bool = false);
  10898. void MarkNetworkUpdate() const;
  10899. void Remove();
  10900. void RemoveAllChildren();
  10901. void RemoveAllTags();
  10902. void RemoveAttributeAnimation(const String&);
  10903. void RemoveChild(UIElement, uint = 0);
  10904. void RemoveChild(uint);
  10905. void RemoveInstanceDefault();
  10906. void RemoveObjectAnimation();
  10907. bool RemoveTag(const String&);
  10908. void ResetDeepEnabled();
  10909. void ResetToDefault();
  10910. bool Save(File) const;
  10911. bool Save(VectorBuffer&) const;
  10912. bool SaveJSON(JSONValue&) const;
  10913. bool SaveXML(File, const String& = "\t");
  10914. bool SaveXML(VectorBuffer&, const String& = "\t");
  10915. bool SaveXML(XMLElement&) const;
  10916. IntVector2 ScreenToElement(const IntVector2&);
  10917. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10918. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10919. void SetAnimationTime(float);
  10920. bool SetAttribute(const String&, const Variant&);
  10921. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10922. void SetAttributeAnimationSpeed(const String&, float);
  10923. void SetAttributeAnimationTime(const String&, float);
  10924. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10925. void SetDeepEnabled(bool);
  10926. void SetEnabledRecursive(bool);
  10927. void SetFixedHeight(int);
  10928. void SetFixedSize(int, int);
  10929. void SetFixedWidth(int);
  10930. bool SetFont(Font, int);
  10931. bool SetFont(const String&, int);
  10932. void SetInterceptNetworkUpdate(const String&, bool);
  10933. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10934. void SetMaxSize(int, int);
  10935. void SetMinSize(int, int);
  10936. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10937. void SetPosition(int, int);
  10938. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10939. void SetSize(int, int);
  10940. bool SetStyle(const String&, XMLFile = null);
  10941. bool SetStyle(const XMLElement&);
  10942. bool SetStyleAuto(XMLFile = null);
  10943. void UpdateLayout();
  10944. const Variant& GetVar(const StringHash&);
  10945. // Properties:
  10946. bool animationEnabled;
  10947. /* readonly */
  10948. Array<Variant> attributeDefaults;
  10949. /* readonly */
  10950. Array<AttributeInfo> attributeInfos;
  10951. Array<Variant> attributes;
  10952. bool autoLocalizable;
  10953. bool bringToBack;
  10954. bool bringToFront;
  10955. /* readonly */
  10956. String category;
  10957. /* readonly */
  10958. Array<IntVector2> charPositions;
  10959. /* readonly */
  10960. Array<IntVector2> charSizes;
  10961. /* readonly */
  10962. IntVector2 childOffset;
  10963. /* readonly */
  10964. Array<UIElement> children;
  10965. IntRect clipBorder;
  10966. bool clipChildren;
  10967. /* writeonly */
  10968. Color color;
  10969. /* readonly */
  10970. bool colorGradient;
  10971. Array<Color> colors;
  10972. /* readonly */
  10973. IntRect combinedScreenRect;
  10974. XMLFile defaultStyle;
  10975. /* readonly */
  10976. float derivedOpacity;
  10977. /* readonly */
  10978. uint dragButtonCombo;
  10979. /* readonly */
  10980. int dragButtonCount;
  10981. uint dragDropMode;
  10982. bool editable;
  10983. Color effectColor;
  10984. bool elementEventSender;
  10985. bool enabled;
  10986. /* readonly */
  10987. bool enabledSelf;
  10988. /* readonly */
  10989. bool fixedHeight;
  10990. /* readonly */
  10991. bool fixedSize;
  10992. /* readonly */
  10993. bool fixedWidth;
  10994. bool focus;
  10995. FocusMode focusMode;
  10996. /* readonly */
  10997. Font font;
  10998. /* readonly */
  10999. int fontSize;
  11000. int height;
  11001. HorizontalAlignment horizontalAlignment;
  11002. Color hoverColor;
  11003. /* readonly */
  11004. bool hovering;
  11005. int indent;
  11006. int indentSpacing;
  11007. /* readonly */
  11008. int indentWidth;
  11009. bool internal;
  11010. IntRect layoutBorder;
  11011. Vector2 layoutFlexScale;
  11012. LayoutMode layoutMode;
  11013. int layoutSpacing;
  11014. int maxHeight;
  11015. IntVector2 maxSize;
  11016. int maxWidth;
  11017. int minHeight;
  11018. IntVector2 minSize;
  11019. int minWidth;
  11020. String name;
  11021. /* readonly */
  11022. uint numAllChildren;
  11023. /* readonly */
  11024. uint numAttributes;
  11025. /* readonly */
  11026. uint numChars;
  11027. /* readonly */
  11028. uint numChildren;
  11029. /* readonly */
  11030. uint numRows;
  11031. ObjectAnimation objectAnimation;
  11032. float opacity;
  11033. UIElement parent;
  11034. IntVector2 position;
  11035. int priority;
  11036. /* readonly */
  11037. int refs;
  11038. /* readonly */
  11039. UIElement root;
  11040. /* readonly */
  11041. int rowHeight;
  11042. float rowSpacing;
  11043. /* readonly */
  11044. Array<int> rowWidths;
  11045. /* readonly */
  11046. IntVector2 screenPosition;
  11047. bool selected;
  11048. Color selectionColor;
  11049. /* readonly */
  11050. uint selectionLength;
  11051. /* readonly */
  11052. uint selectionStart;
  11053. IntVector2 size;
  11054. bool sortChildren;
  11055. String style;
  11056. /* readonly */
  11057. Array<String> tags;
  11058. bool temporary;
  11059. String text;
  11060. HorizontalAlignment textAlignment;
  11061. TextEffect textEffect;
  11062. TraversalMode traversalMode;
  11063. /* readonly */
  11064. StringHash type;
  11065. /* readonly */
  11066. String typeName;
  11067. bool useDerivedOpacity;
  11068. /* readonly */
  11069. VariantMap vars;
  11070. VerticalAlignment verticalAlignment;
  11071. bool visible;
  11072. /* readonly */
  11073. bool visibleEffective;
  11074. /* readonly */
  11075. int weakRefs;
  11076. int width;
  11077. bool wordwrap;
  11078. };
  11079. class Text3D
  11080. {
  11081. // Methods:
  11082. void ApplyAttributes();
  11083. void DrawDebugGeometry(DebugRenderer, bool);
  11084. Variant GetAttribute(const String&) const;
  11085. ValueAnimation GetAttributeAnimation(const String&) const;
  11086. float GetAttributeAnimationSpeed(const String&) const;
  11087. float GetAttributeAnimationTime(const String&) const;
  11088. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11089. Variant GetAttributeDefault(const String&) const;
  11090. bool GetInterceptNetworkUpdate(const String&) const;
  11091. bool HasSubscribedToEvent(Object, const String&);
  11092. bool HasSubscribedToEvent(const String&);
  11093. bool IsInView(Camera) const;
  11094. bool Load(File, bool = false);
  11095. bool Load(VectorBuffer&, bool = false);
  11096. bool LoadJSON(const JSONValue&, bool = false);
  11097. bool LoadXML(const XMLElement&, bool = false);
  11098. void MarkNetworkUpdate() const;
  11099. void Remove();
  11100. void RemoveAttributeAnimation(const String&);
  11101. void RemoveInstanceDefault();
  11102. void RemoveObjectAnimation();
  11103. void ResetToDefault();
  11104. bool Save(File) const;
  11105. bool Save(VectorBuffer&) const;
  11106. bool SaveJSON(JSONValue&) const;
  11107. bool SaveXML(XMLElement&) const;
  11108. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11109. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11110. void SetAnimationTime(float);
  11111. bool SetAttribute(const String&, const Variant&);
  11112. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11113. void SetAttributeAnimationSpeed(const String&, float);
  11114. void SetAttributeAnimationTime(const String&, float);
  11115. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11116. bool SetFont(Font, int);
  11117. bool SetFont(const String&, int);
  11118. void SetInterceptNetworkUpdate(const String&, bool);
  11119. // Properties:
  11120. bool animationEnabled;
  11121. /* readonly */
  11122. Array<Variant> attributeDefaults;
  11123. /* readonly */
  11124. Array<AttributeInfo> attributeInfos;
  11125. Array<Variant> attributes;
  11126. /* readonly */
  11127. BoundingBox boundingBox;
  11128. bool castShadows;
  11129. /* readonly */
  11130. String category;
  11131. /* readonly */
  11132. Array<IntVector2> charPositions;
  11133. /* readonly */
  11134. Array<IntVector2> charSizes;
  11135. /* writeonly */
  11136. Color color;
  11137. Array<Color> colors;
  11138. float drawDistance;
  11139. Color effectColor;
  11140. float effectDepthBias;
  11141. bool enabled;
  11142. /* readonly */
  11143. bool enabledEffective;
  11144. FaceCameraMode faceCameraMode;
  11145. /* readonly */
  11146. Font font;
  11147. /* readonly */
  11148. int fontSize;
  11149. HorizontalAlignment horizontalAlignment;
  11150. /* readonly */
  11151. uint id;
  11152. /* readonly */
  11153. bool inView;
  11154. uint lightMask;
  11155. float lodBias;
  11156. Material material;
  11157. uint maxLights;
  11158. /* readonly */
  11159. Node node;
  11160. /* readonly */
  11161. uint numAttributes;
  11162. /* readonly */
  11163. uint numChars;
  11164. /* readonly */
  11165. uint numRows;
  11166. ObjectAnimation objectAnimation;
  11167. bool occludee;
  11168. bool occluder;
  11169. float opacity;
  11170. /* readonly */
  11171. int refs;
  11172. /* readonly */
  11173. int rowHeight;
  11174. float rowSpacing;
  11175. /* readonly */
  11176. Array<int> rowWidths;
  11177. float shadowDistance;
  11178. uint shadowMask;
  11179. bool temporary;
  11180. String text;
  11181. HorizontalAlignment textAlignment;
  11182. TextEffect textEffect;
  11183. /* readonly */
  11184. StringHash type;
  11185. /* readonly */
  11186. String typeName;
  11187. VerticalAlignment verticalAlignment;
  11188. uint viewMask;
  11189. /* readonly */
  11190. int weakRefs;
  11191. int width;
  11192. bool wordwrap;
  11193. /* readonly */
  11194. BoundingBox worldBoundingBox;
  11195. uint zoneMask;
  11196. };
  11197. class Texture
  11198. {
  11199. // Methods:
  11200. void ClearDataLost();
  11201. bool HasSubscribedToEvent(Object, const String&);
  11202. bool HasSubscribedToEvent(const String&);
  11203. bool Load(File);
  11204. bool Load(VectorBuffer&);
  11205. bool Save(File) const;
  11206. bool Save(VectorBuffer&) const;
  11207. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11208. void SetNumLevels(uint);
  11209. // Properties:
  11210. Array<TextureAddressMode> addressMode;
  11211. Texture backupTexture;
  11212. Color borderColor;
  11213. /* readonly */
  11214. String category;
  11215. /* readonly */
  11216. uint components;
  11217. /* readonly */
  11218. bool compressed;
  11219. /* readonly */
  11220. bool dataLost;
  11221. TextureFilterMode filterMode;
  11222. /* readonly */
  11223. uint format;
  11224. /* readonly */
  11225. int height;
  11226. /* readonly */
  11227. Array<int> levelHeight;
  11228. /* readonly */
  11229. Array<int> levelWidth;
  11230. /* readonly */
  11231. uint levels;
  11232. /* readonly */
  11233. uint memoryUse;
  11234. Array<int> mipsToSkip;
  11235. String name;
  11236. /* readonly */
  11237. int refs;
  11238. bool sRGB;
  11239. /* readonly */
  11240. StringHash type;
  11241. /* readonly */
  11242. String typeName;
  11243. /* readonly */
  11244. TextureUsage usage;
  11245. /* readonly */
  11246. uint useTimer;
  11247. /* readonly */
  11248. int weakRefs;
  11249. /* readonly */
  11250. int width;
  11251. };
  11252. class Texture2D
  11253. {
  11254. // Methods:
  11255. void ClearDataLost();
  11256. Image GetImage() const;
  11257. bool HasSubscribedToEvent(Object, const String&);
  11258. bool HasSubscribedToEvent(const String&);
  11259. bool Load(File);
  11260. bool Load(VectorBuffer&);
  11261. bool Save(File) const;
  11262. bool Save(VectorBuffer&) const;
  11263. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11264. bool SetData(Image, bool = false);
  11265. void SetNumLevels(uint);
  11266. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  11267. // Properties:
  11268. Array<TextureAddressMode> addressMode;
  11269. Texture backupTexture;
  11270. Color borderColor;
  11271. /* readonly */
  11272. String category;
  11273. /* readonly */
  11274. uint components;
  11275. /* readonly */
  11276. bool compressed;
  11277. /* readonly */
  11278. bool dataLost;
  11279. TextureFilterMode filterMode;
  11280. /* readonly */
  11281. uint format;
  11282. /* readonly */
  11283. int height;
  11284. /* readonly */
  11285. Array<int> levelHeight;
  11286. /* readonly */
  11287. Array<int> levelWidth;
  11288. /* readonly */
  11289. uint levels;
  11290. /* readonly */
  11291. uint memoryUse;
  11292. Array<int> mipsToSkip;
  11293. String name;
  11294. /* readonly */
  11295. int refs;
  11296. /* readonly */
  11297. RenderSurface renderSurface;
  11298. bool sRGB;
  11299. /* readonly */
  11300. StringHash type;
  11301. /* readonly */
  11302. String typeName;
  11303. /* readonly */
  11304. TextureUsage usage;
  11305. /* readonly */
  11306. uint useTimer;
  11307. /* readonly */
  11308. int weakRefs;
  11309. /* readonly */
  11310. int width;
  11311. };
  11312. class Texture3D
  11313. {
  11314. // Methods:
  11315. void ClearDataLost();
  11316. bool HasSubscribedToEvent(Object, const String&);
  11317. bool HasSubscribedToEvent(const String&);
  11318. bool Load(File);
  11319. bool Load(VectorBuffer&);
  11320. bool Save(File) const;
  11321. bool Save(VectorBuffer&) const;
  11322. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11323. bool SetData(Image, bool = false);
  11324. void SetNumLevels(uint);
  11325. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11326. // Properties:
  11327. Array<TextureAddressMode> addressMode;
  11328. Texture backupTexture;
  11329. Color borderColor;
  11330. /* readonly */
  11331. String category;
  11332. /* readonly */
  11333. uint components;
  11334. /* readonly */
  11335. bool compressed;
  11336. /* readonly */
  11337. bool dataLost;
  11338. TextureFilterMode filterMode;
  11339. /* readonly */
  11340. uint format;
  11341. /* readonly */
  11342. int height;
  11343. /* readonly */
  11344. Array<int> levelHeight;
  11345. /* readonly */
  11346. Array<int> levelWidth;
  11347. /* readonly */
  11348. uint levels;
  11349. /* readonly */
  11350. uint memoryUse;
  11351. Array<int> mipsToSkip;
  11352. String name;
  11353. /* readonly */
  11354. int refs;
  11355. bool sRGB;
  11356. /* readonly */
  11357. StringHash type;
  11358. /* readonly */
  11359. String typeName;
  11360. /* readonly */
  11361. TextureUsage usage;
  11362. /* readonly */
  11363. uint useTimer;
  11364. /* readonly */
  11365. int weakRefs;
  11366. /* readonly */
  11367. int width;
  11368. };
  11369. class TextureCube
  11370. {
  11371. // Methods:
  11372. void ClearDataLost();
  11373. Image GetImage(CubeMapFace) const;
  11374. bool HasSubscribedToEvent(Object, const String&);
  11375. bool HasSubscribedToEvent(const String&);
  11376. bool Load(File);
  11377. bool Load(VectorBuffer&);
  11378. bool Save(File) const;
  11379. bool Save(VectorBuffer&) const;
  11380. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11381. bool SetData(CubeMapFace, Image, bool = false);
  11382. void SetNumLevels(uint);
  11383. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  11384. // Properties:
  11385. Array<TextureAddressMode> addressMode;
  11386. Texture backupTexture;
  11387. Color borderColor;
  11388. /* readonly */
  11389. String category;
  11390. /* readonly */
  11391. uint components;
  11392. /* readonly */
  11393. bool compressed;
  11394. /* readonly */
  11395. bool dataLost;
  11396. TextureFilterMode filterMode;
  11397. /* readonly */
  11398. uint format;
  11399. /* readonly */
  11400. int height;
  11401. /* readonly */
  11402. Array<int> levelHeight;
  11403. /* readonly */
  11404. Array<int> levelWidth;
  11405. /* readonly */
  11406. uint levels;
  11407. /* readonly */
  11408. uint memoryUse;
  11409. Array<int> mipsToSkip;
  11410. String name;
  11411. /* readonly */
  11412. int refs;
  11413. /* readonly */
  11414. Array<RenderSurface> renderSurfaces;
  11415. bool sRGB;
  11416. /* readonly */
  11417. StringHash type;
  11418. /* readonly */
  11419. String typeName;
  11420. /* readonly */
  11421. TextureUsage usage;
  11422. /* readonly */
  11423. uint useTimer;
  11424. /* readonly */
  11425. int weakRefs;
  11426. /* readonly */
  11427. int width;
  11428. };
  11429. class TextureFrame
  11430. {
  11431. // Properties:
  11432. float time;
  11433. Rect uv;
  11434. };
  11435. class Tile2D
  11436. {
  11437. // Methods:
  11438. bool HasProperty(const String&) const;
  11439. const String& GetProperty(const String&) const;
  11440. // Properties:
  11441. /* readonly */
  11442. int gid;
  11443. /* readonly */
  11444. int refs;
  11445. /* readonly */
  11446. Sprite2D sprite;
  11447. /* readonly */
  11448. int weakRefs;
  11449. };
  11450. class TileMap2D
  11451. {
  11452. // Methods:
  11453. void ApplyAttributes();
  11454. void DrawDebugGeometry(DebugRenderer, bool);
  11455. Variant GetAttribute(const String&) const;
  11456. ValueAnimation GetAttributeAnimation(const String&) const;
  11457. float GetAttributeAnimationSpeed(const String&) const;
  11458. float GetAttributeAnimationTime(const String&) const;
  11459. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11460. Variant GetAttributeDefault(const String&) const;
  11461. bool GetInterceptNetworkUpdate(const String&) const;
  11462. TileMapLayer2D GetLayer(uint) const;
  11463. bool HasSubscribedToEvent(Object, const String&);
  11464. bool HasSubscribedToEvent(const String&);
  11465. bool Load(File, bool = false);
  11466. bool Load(VectorBuffer&, bool = false);
  11467. bool LoadJSON(const JSONValue&, bool = false);
  11468. bool LoadXML(const XMLElement&, bool = false);
  11469. void MarkNetworkUpdate() const;
  11470. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11471. void Remove();
  11472. void RemoveAttributeAnimation(const String&);
  11473. void RemoveInstanceDefault();
  11474. void RemoveObjectAnimation();
  11475. void ResetToDefault();
  11476. bool Save(File) const;
  11477. bool Save(VectorBuffer&) const;
  11478. bool SaveJSON(JSONValue&) const;
  11479. bool SaveXML(XMLElement&) const;
  11480. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11481. void SetAnimationTime(float);
  11482. bool SetAttribute(const String&, const Variant&);
  11483. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11484. void SetAttributeAnimationSpeed(const String&, float);
  11485. void SetAttributeAnimationTime(const String&, float);
  11486. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11487. void SetInterceptNetworkUpdate(const String&, bool);
  11488. Vector2 TileIndexToPosition(int, int) const;
  11489. // Properties:
  11490. bool animationEnabled;
  11491. /* readonly */
  11492. Array<Variant> attributeDefaults;
  11493. /* readonly */
  11494. Array<AttributeInfo> attributeInfos;
  11495. Array<Variant> attributes;
  11496. /* readonly */
  11497. String category;
  11498. bool enabled;
  11499. /* readonly */
  11500. bool enabledEffective;
  11501. /* readonly */
  11502. uint id;
  11503. /* readonly */
  11504. TileMapInfo2D info;
  11505. /* readonly */
  11506. Node node;
  11507. /* readonly */
  11508. uint numAttributes;
  11509. /* readonly */
  11510. uint numLayers;
  11511. ObjectAnimation objectAnimation;
  11512. /* readonly */
  11513. int refs;
  11514. bool temporary;
  11515. TmxFile2D tmxFile;
  11516. /* readonly */
  11517. StringHash type;
  11518. /* readonly */
  11519. String typeName;
  11520. /* readonly */
  11521. int weakRefs;
  11522. };
  11523. class TileMapInfo2D
  11524. {
  11525. // Properties:
  11526. int height;
  11527. /* readonly */
  11528. float mapHeight;
  11529. /* readonly */
  11530. float mapWidth;
  11531. Orientation2D orientation;
  11532. float tileHeight;
  11533. float tileWidth;
  11534. int width;
  11535. };
  11536. class TileMapLayer2D
  11537. {
  11538. // Methods:
  11539. void ApplyAttributes();
  11540. void DrawDebugGeometry(DebugRenderer, bool);
  11541. Variant GetAttribute(const String&) const;
  11542. ValueAnimation GetAttributeAnimation(const String&) const;
  11543. float GetAttributeAnimationSpeed(const String&) const;
  11544. float GetAttributeAnimationTime(const String&) const;
  11545. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11546. Variant GetAttributeDefault(const String&) const;
  11547. bool GetInterceptNetworkUpdate(const String&) const;
  11548. TileMapObject2D GetObject(uint) const;
  11549. Node GetObjectNode(uint) const;
  11550. Tile2D GetTile(int, int) const;
  11551. Node GetTileNode(int, int) const;
  11552. bool HasProperty(const String&) const;
  11553. bool HasSubscribedToEvent(Object, const String&);
  11554. bool HasSubscribedToEvent(const String&);
  11555. bool Load(File, bool = false);
  11556. bool Load(VectorBuffer&, bool = false);
  11557. bool LoadJSON(const JSONValue&, bool = false);
  11558. bool LoadXML(const XMLElement&, bool = false);
  11559. void MarkNetworkUpdate() const;
  11560. void Remove();
  11561. void RemoveAttributeAnimation(const String&);
  11562. void RemoveInstanceDefault();
  11563. void RemoveObjectAnimation();
  11564. void ResetToDefault();
  11565. bool Save(File) const;
  11566. bool Save(VectorBuffer&) const;
  11567. bool SaveJSON(JSONValue&) const;
  11568. bool SaveXML(XMLElement&) const;
  11569. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11570. void SetAnimationTime(float);
  11571. bool SetAttribute(const String&, const Variant&);
  11572. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11573. void SetAttributeAnimationSpeed(const String&, float);
  11574. void SetAttributeAnimationTime(const String&, float);
  11575. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11576. void SetInterceptNetworkUpdate(const String&, bool);
  11577. const String& GetProperty(const String&) const;
  11578. // Properties:
  11579. bool animationEnabled;
  11580. /* readonly */
  11581. Array<Variant> attributeDefaults;
  11582. /* readonly */
  11583. Array<AttributeInfo> attributeInfos;
  11584. Array<Variant> attributes;
  11585. /* readonly */
  11586. String category;
  11587. int drawOrder;
  11588. bool enabled;
  11589. /* readonly */
  11590. bool enabledEffective;
  11591. /* readonly */
  11592. int height;
  11593. /* readonly */
  11594. uint id;
  11595. /* readonly */
  11596. Node imageNode;
  11597. /* readonly */
  11598. TileMapLayerType2D layerType;
  11599. /* readonly */
  11600. Node node;
  11601. /* readonly */
  11602. uint numAttributes;
  11603. /* readonly */
  11604. uint numObjects;
  11605. ObjectAnimation objectAnimation;
  11606. /* readonly */
  11607. int refs;
  11608. bool temporary;
  11609. /* readonly */
  11610. StringHash type;
  11611. /* readonly */
  11612. String typeName;
  11613. bool visible;
  11614. /* readonly */
  11615. int weakRefs;
  11616. /* readonly */
  11617. int width;
  11618. };
  11619. class TileMapObject2D
  11620. {
  11621. // Methods:
  11622. bool HasProperty(const String&) const;
  11623. const String& GetProperty(const String&) const;
  11624. const Vector2& GetPoint(uint) const;
  11625. // Properties:
  11626. /* readonly */
  11627. String name;
  11628. /* readonly */
  11629. uint numPoints;
  11630. /* readonly */
  11631. TileObjectType2D objectType;
  11632. /* readonly */
  11633. Vector2 position;
  11634. /* readonly */
  11635. int refs;
  11636. /* readonly */
  11637. Vector2 size;
  11638. /* readonly */
  11639. int tileGid;
  11640. /* readonly */
  11641. Sprite2D tileSprite;
  11642. /* readonly */
  11643. String type;
  11644. /* readonly */
  11645. int weakRefs;
  11646. };
  11647. class Time
  11648. {
  11649. // Methods:
  11650. bool HasSubscribedToEvent(Object, const String&);
  11651. bool HasSubscribedToEvent(const String&);
  11652. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11653. // Properties:
  11654. /* readonly */
  11655. String category;
  11656. /* readonly */
  11657. float elapsedTime;
  11658. /* readonly */
  11659. uint frameNumber;
  11660. /* readonly */
  11661. int refs;
  11662. /* readonly */
  11663. uint systemTime;
  11664. /* readonly */
  11665. uint timeSinceEpoch;
  11666. /* readonly */
  11667. String timeStamp;
  11668. /* readonly */
  11669. float timeStep;
  11670. /* readonly */
  11671. StringHash type;
  11672. /* readonly */
  11673. String typeName;
  11674. /* readonly */
  11675. int weakRefs;
  11676. };
  11677. class Timer
  11678. {
  11679. // Methods:
  11680. uint GetMSec(bool);
  11681. void Reset();
  11682. };
  11683. class TmxFile2D
  11684. {
  11685. // Methods:
  11686. bool HasSubscribedToEvent(Object, const String&);
  11687. bool HasSubscribedToEvent(const String&);
  11688. bool Load(File);
  11689. bool Load(VectorBuffer&);
  11690. bool Save(File) const;
  11691. bool Save(VectorBuffer&) const;
  11692. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11693. // Properties:
  11694. /* readonly */
  11695. String category;
  11696. /* readonly */
  11697. uint memoryUse;
  11698. String name;
  11699. /* readonly */
  11700. int refs;
  11701. /* readonly */
  11702. StringHash type;
  11703. /* readonly */
  11704. String typeName;
  11705. /* readonly */
  11706. uint useTimer;
  11707. /* readonly */
  11708. int weakRefs;
  11709. };
  11710. class ToolTip
  11711. {
  11712. // Methods:
  11713. void AddChild(UIElement);
  11714. void AddTag(const String&);
  11715. void AddTags(const String&, int8 = ';');
  11716. void ApplyAttributes();
  11717. void BringToFront();
  11718. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11719. void DisableLayoutUpdate();
  11720. IntVector2 ElementToScreen(const IntVector2&);
  11721. void EnableLayoutUpdate();
  11722. uint FindChild(UIElement) const;
  11723. Variant GetAttribute(const String&) const;
  11724. ValueAnimation GetAttributeAnimation(const String&) const;
  11725. float GetAttributeAnimationSpeed(const String&) const;
  11726. float GetAttributeAnimationTime(const String&) const;
  11727. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11728. Variant GetAttributeDefault(const String&) const;
  11729. UIElement GetChild(const String&, bool = false) const;
  11730. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11731. Array<UIElement> GetChildren(bool = false) const;
  11732. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11733. UIElement GetElementEventSender() const;
  11734. bool GetInterceptNetworkUpdate(const String&) const;
  11735. uint GetNumChildren(bool) const;
  11736. bool HasSubscribedToEvent(Object, const String&);
  11737. bool HasSubscribedToEvent(const String&);
  11738. bool HasTag(const String&) const;
  11739. void InsertChild(uint, UIElement);
  11740. bool IsInside(IntVector2, bool);
  11741. bool IsInsideCombined(IntVector2, bool);
  11742. bool Load(File, bool = false);
  11743. bool Load(VectorBuffer&, bool = false);
  11744. bool LoadChildXML(XMLFile, XMLFile = null);
  11745. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11746. bool LoadJSON(const JSONValue&, bool = false);
  11747. bool LoadXML(File);
  11748. bool LoadXML(VectorBuffer&);
  11749. bool LoadXML(XMLFile, XMLFile);
  11750. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11751. bool LoadXML(const XMLElement&, bool = false);
  11752. void MarkNetworkUpdate() const;
  11753. void Remove();
  11754. void RemoveAllChildren();
  11755. void RemoveAllTags();
  11756. void RemoveAttributeAnimation(const String&);
  11757. void RemoveChild(UIElement, uint = 0);
  11758. void RemoveChild(uint);
  11759. void RemoveInstanceDefault();
  11760. void RemoveObjectAnimation();
  11761. bool RemoveTag(const String&);
  11762. void ResetDeepEnabled();
  11763. void ResetToDefault();
  11764. bool Save(File) const;
  11765. bool Save(VectorBuffer&) const;
  11766. bool SaveJSON(JSONValue&) const;
  11767. bool SaveXML(File, const String& = "\t");
  11768. bool SaveXML(VectorBuffer&, const String& = "\t");
  11769. bool SaveXML(XMLElement&) const;
  11770. IntVector2 ScreenToElement(const IntVector2&);
  11771. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11772. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11773. void SetAnimationTime(float);
  11774. bool SetAttribute(const String&, const Variant&);
  11775. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11776. void SetAttributeAnimationSpeed(const String&, float);
  11777. void SetAttributeAnimationTime(const String&, float);
  11778. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11779. void SetDeepEnabled(bool);
  11780. void SetEnabledRecursive(bool);
  11781. void SetFixedHeight(int);
  11782. void SetFixedSize(int, int);
  11783. void SetFixedWidth(int);
  11784. void SetInterceptNetworkUpdate(const String&, bool);
  11785. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11786. void SetMaxSize(int, int);
  11787. void SetMinSize(int, int);
  11788. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11789. void SetPosition(int, int);
  11790. void SetSize(int, int);
  11791. bool SetStyle(const String&, XMLFile = null);
  11792. bool SetStyle(const XMLElement&);
  11793. bool SetStyleAuto(XMLFile = null);
  11794. void UpdateLayout();
  11795. const Variant& GetVar(const StringHash&);
  11796. // Properties:
  11797. bool animationEnabled;
  11798. /* readonly */
  11799. Array<Variant> attributeDefaults;
  11800. /* readonly */
  11801. Array<AttributeInfo> attributeInfos;
  11802. Array<Variant> attributes;
  11803. bool bringToBack;
  11804. bool bringToFront;
  11805. /* readonly */
  11806. String category;
  11807. /* readonly */
  11808. IntVector2 childOffset;
  11809. /* readonly */
  11810. Array<UIElement> children;
  11811. IntRect clipBorder;
  11812. bool clipChildren;
  11813. /* writeonly */
  11814. Color color;
  11815. /* readonly */
  11816. bool colorGradient;
  11817. Array<Color> colors;
  11818. /* readonly */
  11819. IntRect combinedScreenRect;
  11820. XMLFile defaultStyle;
  11821. float delay;
  11822. /* readonly */
  11823. float derivedOpacity;
  11824. /* readonly */
  11825. uint dragButtonCombo;
  11826. /* readonly */
  11827. int dragButtonCount;
  11828. uint dragDropMode;
  11829. bool editable;
  11830. bool elementEventSender;
  11831. bool enabled;
  11832. /* readonly */
  11833. bool enabledSelf;
  11834. /* readonly */
  11835. bool fixedHeight;
  11836. /* readonly */
  11837. bool fixedSize;
  11838. /* readonly */
  11839. bool fixedWidth;
  11840. bool focus;
  11841. FocusMode focusMode;
  11842. int height;
  11843. HorizontalAlignment horizontalAlignment;
  11844. /* readonly */
  11845. bool hovering;
  11846. int indent;
  11847. int indentSpacing;
  11848. /* readonly */
  11849. int indentWidth;
  11850. bool internal;
  11851. IntRect layoutBorder;
  11852. Vector2 layoutFlexScale;
  11853. LayoutMode layoutMode;
  11854. int layoutSpacing;
  11855. int maxHeight;
  11856. IntVector2 maxSize;
  11857. int maxWidth;
  11858. int minHeight;
  11859. IntVector2 minSize;
  11860. int minWidth;
  11861. String name;
  11862. /* readonly */
  11863. uint numAllChildren;
  11864. /* readonly */
  11865. uint numAttributes;
  11866. /* readonly */
  11867. uint numChildren;
  11868. ObjectAnimation objectAnimation;
  11869. float opacity;
  11870. UIElement parent;
  11871. IntVector2 position;
  11872. int priority;
  11873. /* readonly */
  11874. int refs;
  11875. /* readonly */
  11876. UIElement root;
  11877. /* readonly */
  11878. IntVector2 screenPosition;
  11879. bool selected;
  11880. IntVector2 size;
  11881. bool sortChildren;
  11882. String style;
  11883. /* readonly */
  11884. Array<String> tags;
  11885. bool temporary;
  11886. TraversalMode traversalMode;
  11887. /* readonly */
  11888. StringHash type;
  11889. /* readonly */
  11890. String typeName;
  11891. bool useDerivedOpacity;
  11892. /* readonly */
  11893. VariantMap vars;
  11894. VerticalAlignment verticalAlignment;
  11895. bool visible;
  11896. /* readonly */
  11897. bool visibleEffective;
  11898. /* readonly */
  11899. int weakRefs;
  11900. int width;
  11901. };
  11902. class TouchState
  11903. {
  11904. // Properties:
  11905. IntVector2 delta;
  11906. IntVector2 lastPosition;
  11907. IntVector2 position;
  11908. float pressure;
  11909. int touchID;
  11910. /* readonly */
  11911. UIElement touchedElement;
  11912. };
  11913. class UI
  11914. {
  11915. // Methods:
  11916. void Clear();
  11917. void DebugDraw(UIElement);
  11918. UIElement GetElementAt(const IntVector2&, bool = true);
  11919. UIElement GetElementAt(int, int, bool = true);
  11920. bool HasModalElement() const;
  11921. bool HasSubscribedToEvent(Object, const String&);
  11922. bool HasSubscribedToEvent(const String&);
  11923. bool IsDragging() const;
  11924. UIElement LoadLayout(File);
  11925. UIElement LoadLayout(File, XMLFile);
  11926. UIElement LoadLayout(VectorBuffer&);
  11927. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11928. UIElement LoadLayout(XMLFile);
  11929. UIElement LoadLayout(XMLFile, XMLFile);
  11930. bool SaveLayout(File, UIElement);
  11931. bool SaveLayout(VectorBuffer&, UIElement);
  11932. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11933. void SetFocusElement(UIElement, bool = false);
  11934. void SetHeight(float);
  11935. void SetWidth(float);
  11936. const Array<UIElement> GetDragElements();
  11937. // Properties:
  11938. /* readonly */
  11939. String category;
  11940. String clipBoardText;
  11941. Cursor cursor;
  11942. /* readonly */
  11943. IntVector2 cursorPosition;
  11944. float defaultToolTipDelay;
  11945. float doubleClickInterval;
  11946. int dragBeginDistance;
  11947. float dragBeginInterval;
  11948. UIElement focusElement;
  11949. bool forceAutoHint;
  11950. /* readonly */
  11951. UIElement frontElement;
  11952. int maxFontTextureSize;
  11953. /* readonly */
  11954. UIElement modalRoot;
  11955. bool nonFocusedMouseWheel;
  11956. /* readonly */
  11957. int refs;
  11958. /* readonly */
  11959. UIElement root;
  11960. float scale;
  11961. /* readonly */
  11962. StringHash type;
  11963. /* readonly */
  11964. String typeName;
  11965. bool useMutableGlyphs;
  11966. bool useScreenKeyboard;
  11967. bool useSystemClipboard;
  11968. /* readonly */
  11969. int weakRefs;
  11970. };
  11971. class UIElement
  11972. {
  11973. // Methods:
  11974. void AddChild(UIElement);
  11975. void AddTag(const String&);
  11976. void AddTags(const String&, int8 = ';');
  11977. void ApplyAttributes();
  11978. void BringToFront();
  11979. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11980. void DisableLayoutUpdate();
  11981. IntVector2 ElementToScreen(const IntVector2&);
  11982. void EnableLayoutUpdate();
  11983. uint FindChild(UIElement) const;
  11984. Variant GetAttribute(const String&) const;
  11985. ValueAnimation GetAttributeAnimation(const String&) const;
  11986. float GetAttributeAnimationSpeed(const String&) const;
  11987. float GetAttributeAnimationTime(const String&) const;
  11988. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11989. Variant GetAttributeDefault(const String&) const;
  11990. UIElement GetChild(const String&, bool = false) const;
  11991. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11992. Array<UIElement> GetChildren(bool = false) const;
  11993. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11994. UIElement GetElementEventSender() const;
  11995. bool GetInterceptNetworkUpdate(const String&) const;
  11996. uint GetNumChildren(bool) const;
  11997. bool HasSubscribedToEvent(Object, const String&);
  11998. bool HasSubscribedToEvent(const String&);
  11999. bool HasTag(const String&) const;
  12000. void InsertChild(uint, UIElement);
  12001. bool IsInside(IntVector2, bool);
  12002. bool IsInsideCombined(IntVector2, bool);
  12003. bool Load(File, bool = false);
  12004. bool Load(VectorBuffer&, bool = false);
  12005. bool LoadChildXML(XMLFile, XMLFile = null);
  12006. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12007. bool LoadJSON(const JSONValue&, bool = false);
  12008. bool LoadXML(File);
  12009. bool LoadXML(VectorBuffer&);
  12010. bool LoadXML(XMLFile, XMLFile);
  12011. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12012. bool LoadXML(const XMLElement&, bool = false);
  12013. void MarkNetworkUpdate() const;
  12014. void Remove();
  12015. void RemoveAllChildren();
  12016. void RemoveAllTags();
  12017. void RemoveAttributeAnimation(const String&);
  12018. void RemoveChild(UIElement, uint = 0);
  12019. void RemoveChild(uint);
  12020. void RemoveInstanceDefault();
  12021. void RemoveObjectAnimation();
  12022. bool RemoveTag(const String&);
  12023. void ResetDeepEnabled();
  12024. void ResetToDefault();
  12025. bool Save(File) const;
  12026. bool Save(VectorBuffer&) const;
  12027. bool SaveJSON(JSONValue&) const;
  12028. bool SaveXML(File, const String& = "\t");
  12029. bool SaveXML(VectorBuffer&, const String& = "\t");
  12030. bool SaveXML(XMLElement&) const;
  12031. IntVector2 ScreenToElement(const IntVector2&);
  12032. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12033. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12034. void SetAnimationTime(float);
  12035. bool SetAttribute(const String&, const Variant&);
  12036. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12037. void SetAttributeAnimationSpeed(const String&, float);
  12038. void SetAttributeAnimationTime(const String&, float);
  12039. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12040. void SetDeepEnabled(bool);
  12041. void SetEnabledRecursive(bool);
  12042. void SetFixedHeight(int);
  12043. void SetFixedSize(int, int);
  12044. void SetFixedWidth(int);
  12045. void SetInterceptNetworkUpdate(const String&, bool);
  12046. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12047. void SetMaxSize(int, int);
  12048. void SetMinSize(int, int);
  12049. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12050. void SetPosition(int, int);
  12051. void SetSize(int, int);
  12052. bool SetStyle(const String&, XMLFile = null);
  12053. bool SetStyle(const XMLElement&);
  12054. bool SetStyleAuto(XMLFile = null);
  12055. void UpdateLayout();
  12056. const Variant& GetVar(const StringHash&);
  12057. // Properties:
  12058. bool animationEnabled;
  12059. /* readonly */
  12060. Array<Variant> attributeDefaults;
  12061. /* readonly */
  12062. Array<AttributeInfo> attributeInfos;
  12063. Array<Variant> attributes;
  12064. bool bringToBack;
  12065. bool bringToFront;
  12066. /* readonly */
  12067. String category;
  12068. /* readonly */
  12069. IntVector2 childOffset;
  12070. /* readonly */
  12071. Array<UIElement> children;
  12072. IntRect clipBorder;
  12073. bool clipChildren;
  12074. /* writeonly */
  12075. Color color;
  12076. /* readonly */
  12077. bool colorGradient;
  12078. Array<Color> colors;
  12079. /* readonly */
  12080. IntRect combinedScreenRect;
  12081. XMLFile defaultStyle;
  12082. /* readonly */
  12083. float derivedOpacity;
  12084. /* readonly */
  12085. uint dragButtonCombo;
  12086. /* readonly */
  12087. int dragButtonCount;
  12088. uint dragDropMode;
  12089. bool editable;
  12090. bool elementEventSender;
  12091. bool enabled;
  12092. /* readonly */
  12093. bool enabledSelf;
  12094. /* readonly */
  12095. bool fixedHeight;
  12096. /* readonly */
  12097. bool fixedSize;
  12098. /* readonly */
  12099. bool fixedWidth;
  12100. bool focus;
  12101. FocusMode focusMode;
  12102. int height;
  12103. HorizontalAlignment horizontalAlignment;
  12104. /* readonly */
  12105. bool hovering;
  12106. int indent;
  12107. int indentSpacing;
  12108. /* readonly */
  12109. int indentWidth;
  12110. bool internal;
  12111. IntRect layoutBorder;
  12112. Vector2 layoutFlexScale;
  12113. LayoutMode layoutMode;
  12114. int layoutSpacing;
  12115. int maxHeight;
  12116. IntVector2 maxSize;
  12117. int maxWidth;
  12118. int minHeight;
  12119. IntVector2 minSize;
  12120. int minWidth;
  12121. String name;
  12122. /* readonly */
  12123. uint numAllChildren;
  12124. /* readonly */
  12125. uint numAttributes;
  12126. /* readonly */
  12127. uint numChildren;
  12128. ObjectAnimation objectAnimation;
  12129. float opacity;
  12130. UIElement parent;
  12131. IntVector2 position;
  12132. int priority;
  12133. /* readonly */
  12134. int refs;
  12135. /* readonly */
  12136. UIElement root;
  12137. /* readonly */
  12138. IntVector2 screenPosition;
  12139. bool selected;
  12140. IntVector2 size;
  12141. bool sortChildren;
  12142. String style;
  12143. /* readonly */
  12144. Array<String> tags;
  12145. bool temporary;
  12146. TraversalMode traversalMode;
  12147. /* readonly */
  12148. StringHash type;
  12149. /* readonly */
  12150. String typeName;
  12151. bool useDerivedOpacity;
  12152. /* readonly */
  12153. VariantMap vars;
  12154. VerticalAlignment verticalAlignment;
  12155. bool visible;
  12156. /* readonly */
  12157. bool visibleEffective;
  12158. /* readonly */
  12159. int weakRefs;
  12160. int width;
  12161. };
  12162. class ValueAnimation
  12163. {
  12164. // Methods:
  12165. bool HasSubscribedToEvent(Object, const String&);
  12166. bool HasSubscribedToEvent(const String&);
  12167. bool Load(File);
  12168. bool Load(VectorBuffer&);
  12169. bool Save(File) const;
  12170. bool Save(VectorBuffer&) const;
  12171. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12172. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12173. void SetKeyFrame(float, const Variant&);
  12174. // Properties:
  12175. /* readonly */
  12176. String category;
  12177. InterpMethod interpolationMethod;
  12178. /* readonly */
  12179. uint memoryUse;
  12180. String name;
  12181. /* readonly */
  12182. int refs;
  12183. float splineTension;
  12184. /* readonly */
  12185. StringHash type;
  12186. /* readonly */
  12187. String typeName;
  12188. /* readonly */
  12189. uint useTimer;
  12190. VariantType valueType;
  12191. /* readonly */
  12192. int weakRefs;
  12193. };
  12194. class Variant
  12195. {
  12196. // Methods:
  12197. void Clear();
  12198. const Color& GetColor() const;
  12199. void FromString(VariantType, const String&);
  12200. void FromString(const String&, const String&);
  12201. bool GetBool() const;
  12202. VectorBuffer GetBuffer() const;
  12203. double GetDouble() const;
  12204. float GetFloat() const;
  12205. int GetInt() const;
  12206. RefCounted GetPtr() const;
  12207. ScriptObject GetScriptObject() const;
  12208. StringHash GetStringHash() const;
  12209. Array<String> GetStringVector() const;
  12210. uint GetUInt() const;
  12211. Array<Variant> GetVariantVector() const;
  12212. const IntRect& GetIntRect() const;
  12213. const IntVector2& GetIntVector2() const;
  12214. const Matrix3& GetMatrix3() const;
  12215. const Matrix3x4& GetMatrix3x4() const;
  12216. const Matrix4& GetMatrix4() const;
  12217. const Quaternion& GetQuaternion() const;
  12218. const ResourceRef& GetResourceRef() const;
  12219. const ResourceRefList& GetResourceRefList() const;
  12220. const String& GetString() const;
  12221. String ToString() const;
  12222. const VariantMap& GetVariantMap() const;
  12223. const Vector2& GetVector2() const;
  12224. const Vector3& GetVector3() const;
  12225. const Vector4& GetVector4() const;
  12226. // Properties:
  12227. /* readonly */
  12228. bool empty;
  12229. /* readonly */
  12230. VariantType type;
  12231. /* readonly */
  12232. String typeName;
  12233. /* readonly */
  12234. bool zero;
  12235. };
  12236. class VariantMap
  12237. {
  12238. // Methods:
  12239. void Clear();
  12240. bool Contains(StringHash) const;
  12241. bool Contains(const String&) const;
  12242. bool Erase(StringHash);
  12243. bool Erase(const String&);
  12244. // Properties:
  12245. /* readonly */
  12246. Array<StringHash> keys;
  12247. /* readonly */
  12248. uint length;
  12249. /* readonly */
  12250. Array<Variant> values;
  12251. };
  12252. class Vector2
  12253. {
  12254. // Methods:
  12255. Vector2 Abs() const;
  12256. float AbsDotProduct(const Vector2&) const;
  12257. float Angle(const Vector2&) const;
  12258. float DotProduct(const Vector2&) const;
  12259. bool Equals(const Vector2&) const;
  12260. bool IsNaN() const;
  12261. Vector2 Lerp(const Vector2&, float) const;
  12262. void Normalize();
  12263. Vector2 Normalized() const;
  12264. String ToString() const;
  12265. // Properties:
  12266. /* readonly */
  12267. Array<float> data;
  12268. /* readonly */
  12269. float length;
  12270. /* readonly */
  12271. float lengthSquared;
  12272. float x;
  12273. float y;
  12274. };
  12275. class Vector3
  12276. {
  12277. // Methods:
  12278. Vector3 Abs() const;
  12279. float AbsDotProduct(const Vector3&) const;
  12280. float Angle(const Vector3&) const;
  12281. Vector3 CrossProduct(const Vector3&) const;
  12282. float DotProduct(const Vector3&) const;
  12283. bool Equals(const Vector3&) const;
  12284. bool IsNaN() const;
  12285. Vector3 Lerp(const Vector3&, float) const;
  12286. void Normalize();
  12287. Vector3 Normalized() const;
  12288. String ToString() const;
  12289. // Properties:
  12290. /* readonly */
  12291. Array<float> data;
  12292. /* readonly */
  12293. float length;
  12294. /* readonly */
  12295. float lengthSquared;
  12296. float x;
  12297. float y;
  12298. float z;
  12299. };
  12300. class Vector4
  12301. {
  12302. // Methods:
  12303. Vector4 Abs() const;
  12304. float AbsDotProduct(const Vector4&) const;
  12305. float DotProduct(const Vector4&) const;
  12306. bool Equals(const Vector4&) const;
  12307. bool IsNaN() const;
  12308. Vector4 Lerp(const Vector4&, float) const;
  12309. String ToString() const;
  12310. // Properties:
  12311. /* readonly */
  12312. Array<float> data;
  12313. float w;
  12314. float x;
  12315. float y;
  12316. float z;
  12317. };
  12318. class VectorBuffer
  12319. {
  12320. // Methods:
  12321. void Clear();
  12322. Array<uint8> Read(uint);
  12323. bool ReadBool();
  12324. BoundingBox ReadBoundingBox();
  12325. int8 ReadByte();
  12326. Color ReadColor();
  12327. double ReadDouble();
  12328. String ReadFileID();
  12329. float ReadFloat();
  12330. int ReadInt();
  12331. IntRect ReadIntRect();
  12332. IntVector2 ReadIntVector2();
  12333. String ReadLine();
  12334. Matrix3 ReadMatrix3();
  12335. Matrix3x4 ReadMatrix3x4();
  12336. Matrix4 ReadMatrix4();
  12337. uint ReadNetID();
  12338. Quaternion ReadPackedQuaternion();
  12339. Vector3 ReadPackedVector3(float);
  12340. Quaternion ReadQuaternion();
  12341. int16 ReadShort();
  12342. String ReadString();
  12343. StringHash ReadStringHash();
  12344. uint8 ReadUByte();
  12345. uint ReadUInt();
  12346. uint16 ReadUShort();
  12347. uint ReadVLE();
  12348. Variant ReadVariant();
  12349. VariantMap ReadVariantMap();
  12350. Vector2 ReadVector2();
  12351. Vector3 ReadVector3();
  12352. Vector4 ReadVector4();
  12353. VectorBuffer ReadVectorBuffer(uint);
  12354. void Resize(uint);
  12355. uint Seek(uint);
  12356. void SetData(Deserializer, uint);
  12357. uint Write(Array<uint8>);
  12358. bool WriteBool(bool);
  12359. bool WriteBoundingBox(const BoundingBox&);
  12360. bool WriteByte(int8);
  12361. bool WriteColor(const Color&);
  12362. bool WriteDouble(double);
  12363. bool WriteFileID(const String&);
  12364. bool WriteFloat(float);
  12365. bool WriteInt(int);
  12366. bool WriteIntRect(const IntRect&);
  12367. bool WriteIntVector2(const IntVector2&);
  12368. bool WriteLine(const String&);
  12369. bool WriteMatrix3(const Matrix3&);
  12370. bool WriteMatrix3x4(const Matrix3x4&);
  12371. bool WriteMatrix4(const Matrix4&);
  12372. bool WriteNetID(uint);
  12373. bool WritePackedQuaternion(const Quaternion&);
  12374. bool WritePackedVector3(const Vector3&, float);
  12375. bool WriteQuaternion(const Quaternion&);
  12376. bool WriteShort(int16);
  12377. bool WriteString(const String&);
  12378. bool WriteStringHash(const StringHash&);
  12379. bool WriteUByte(uint8);
  12380. bool WriteUInt(uint);
  12381. bool WriteUShort(uint16);
  12382. bool WriteVLE(uint);
  12383. bool WriteVariant(const Variant&);
  12384. bool WriteVariantMap(const VariantMap&);
  12385. bool WriteVector2(const Vector2&);
  12386. bool WriteVector3(const Vector3&);
  12387. bool WriteVector4(const Vector4&);
  12388. bool WriteVectorBuffer(const VectorBuffer&);
  12389. // Properties:
  12390. /* readonly */
  12391. uint checksum;
  12392. /* readonly */
  12393. bool eof;
  12394. /* readonly */
  12395. String name;
  12396. /* readonly */
  12397. uint position;
  12398. /* readonly */
  12399. uint size;
  12400. };
  12401. class VertexBuffer
  12402. {
  12403. // Methods:
  12404. VectorBuffer GetData();
  12405. bool HasSubscribedToEvent(Object, const String&);
  12406. bool HasSubscribedToEvent(const String&);
  12407. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12408. bool SetData(VectorBuffer&);
  12409. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12410. void SetSize(uint, uint, bool = false);
  12411. // Properties:
  12412. /* readonly */
  12413. String category;
  12414. /* readonly */
  12415. bool dynamic;
  12416. /* readonly */
  12417. uint elementMask;
  12418. /* readonly */
  12419. int refs;
  12420. bool shadowed;
  12421. /* readonly */
  12422. StringHash type;
  12423. /* readonly */
  12424. String typeName;
  12425. /* readonly */
  12426. uint vertexCount;
  12427. /* readonly */
  12428. uint vertexSize;
  12429. /* readonly */
  12430. int weakRefs;
  12431. };
  12432. class View3D
  12433. {
  12434. // Methods:
  12435. void AddChild(UIElement);
  12436. void AddTag(const String&);
  12437. void AddTags(const String&, int8 = ';');
  12438. void ApplyAttributes();
  12439. void BringToFront();
  12440. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12441. void DisableLayoutUpdate();
  12442. IntVector2 ElementToScreen(const IntVector2&);
  12443. void EnableLayoutUpdate();
  12444. uint FindChild(UIElement) const;
  12445. Variant GetAttribute(const String&) const;
  12446. ValueAnimation GetAttributeAnimation(const String&) const;
  12447. float GetAttributeAnimationSpeed(const String&) const;
  12448. float GetAttributeAnimationTime(const String&) const;
  12449. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12450. Variant GetAttributeDefault(const String&) const;
  12451. UIElement GetChild(const String&, bool = false) const;
  12452. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12453. Array<UIElement> GetChildren(bool = false) const;
  12454. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12455. UIElement GetElementEventSender() const;
  12456. bool GetInterceptNetworkUpdate(const String&) const;
  12457. uint GetNumChildren(bool) const;
  12458. bool HasSubscribedToEvent(Object, const String&);
  12459. bool HasSubscribedToEvent(const String&);
  12460. bool HasTag(const String&) const;
  12461. void InsertChild(uint, UIElement);
  12462. bool IsInside(IntVector2, bool);
  12463. bool IsInsideCombined(IntVector2, bool);
  12464. bool Load(File, bool = false);
  12465. bool Load(VectorBuffer&, bool = false);
  12466. bool LoadChildXML(XMLFile, XMLFile = null);
  12467. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12468. bool LoadJSON(const JSONValue&, bool = false);
  12469. bool LoadXML(File);
  12470. bool LoadXML(VectorBuffer&);
  12471. bool LoadXML(XMLFile, XMLFile);
  12472. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12473. bool LoadXML(const XMLElement&, bool = false);
  12474. void MarkNetworkUpdate() const;
  12475. void QueueUpdate();
  12476. void Remove();
  12477. void RemoveAllChildren();
  12478. void RemoveAllTags();
  12479. void RemoveAttributeAnimation(const String&);
  12480. void RemoveChild(UIElement, uint = 0);
  12481. void RemoveChild(uint);
  12482. void RemoveInstanceDefault();
  12483. void RemoveObjectAnimation();
  12484. bool RemoveTag(const String&);
  12485. void ResetDeepEnabled();
  12486. void ResetToDefault();
  12487. bool Save(File) const;
  12488. bool Save(VectorBuffer&) const;
  12489. bool SaveJSON(JSONValue&) const;
  12490. bool SaveXML(File, const String& = "\t");
  12491. bool SaveXML(VectorBuffer&, const String& = "\t");
  12492. bool SaveXML(XMLElement&) const;
  12493. IntVector2 ScreenToElement(const IntVector2&);
  12494. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12495. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12496. void SetAnimationTime(float);
  12497. bool SetAttribute(const String&, const Variant&);
  12498. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12499. void SetAttributeAnimationSpeed(const String&, float);
  12500. void SetAttributeAnimationTime(const String&, float);
  12501. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12502. void SetDeepEnabled(bool);
  12503. void SetEnabledRecursive(bool);
  12504. void SetFixedHeight(int);
  12505. void SetFixedSize(int, int);
  12506. void SetFixedWidth(int);
  12507. void SetFullImageRect();
  12508. void SetHoverOffset(int, int);
  12509. void SetInterceptNetworkUpdate(const String&, bool);
  12510. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12511. void SetMaxSize(int, int);
  12512. void SetMinSize(int, int);
  12513. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12514. void SetPosition(int, int);
  12515. void SetSize(int, int);
  12516. bool SetStyle(const String&, XMLFile = null);
  12517. bool SetStyle(const XMLElement&);
  12518. bool SetStyleAuto(XMLFile = null);
  12519. void SetView(Scene, Camera, bool = true);
  12520. void UpdateLayout();
  12521. const Variant& GetVar(const StringHash&);
  12522. // Properties:
  12523. bool animationEnabled;
  12524. /* readonly */
  12525. Array<Variant> attributeDefaults;
  12526. /* readonly */
  12527. Array<AttributeInfo> attributeInfos;
  12528. Array<Variant> attributes;
  12529. bool autoUpdate;
  12530. BlendMode blendMode;
  12531. IntRect border;
  12532. bool bringToBack;
  12533. bool bringToFront;
  12534. /* readonly */
  12535. Node cameraNode;
  12536. /* readonly */
  12537. String category;
  12538. /* readonly */
  12539. IntVector2 childOffset;
  12540. /* readonly */
  12541. Array<UIElement> children;
  12542. IntRect clipBorder;
  12543. bool clipChildren;
  12544. /* writeonly */
  12545. Color color;
  12546. /* readonly */
  12547. bool colorGradient;
  12548. Array<Color> colors;
  12549. /* readonly */
  12550. IntRect combinedScreenRect;
  12551. XMLFile defaultStyle;
  12552. /* readonly */
  12553. Texture2D depthTexture;
  12554. /* readonly */
  12555. float derivedOpacity;
  12556. /* readonly */
  12557. uint dragButtonCombo;
  12558. /* readonly */
  12559. int dragButtonCount;
  12560. uint dragDropMode;
  12561. bool editable;
  12562. bool elementEventSender;
  12563. bool enabled;
  12564. /* readonly */
  12565. bool enabledSelf;
  12566. /* readonly */
  12567. bool fixedHeight;
  12568. bool fixedHeightResizing;
  12569. /* readonly */
  12570. bool fixedSize;
  12571. /* readonly */
  12572. bool fixedWidth;
  12573. bool fixedWidthResizing;
  12574. bool focus;
  12575. FocusMode focusMode;
  12576. uint format;
  12577. int height;
  12578. HorizontalAlignment horizontalAlignment;
  12579. IntVector2 hoverOffset;
  12580. /* readonly */
  12581. bool hovering;
  12582. IntRect imageBorder;
  12583. IntRect imageRect;
  12584. int indent;
  12585. int indentSpacing;
  12586. /* readonly */
  12587. int indentWidth;
  12588. bool internal;
  12589. IntRect layoutBorder;
  12590. Vector2 layoutFlexScale;
  12591. LayoutMode layoutMode;
  12592. int layoutSpacing;
  12593. int maxHeight;
  12594. IntVector2 maxSize;
  12595. int maxWidth;
  12596. int minHeight;
  12597. IntVector2 minSize;
  12598. int minWidth;
  12599. bool modal;
  12600. bool modalAutoDismiss;
  12601. Color modalFrameColor;
  12602. IntVector2 modalFrameSize;
  12603. Color modalShadeColor;
  12604. bool movable;
  12605. String name;
  12606. /* readonly */
  12607. uint numAllChildren;
  12608. /* readonly */
  12609. uint numAttributes;
  12610. /* readonly */
  12611. uint numChildren;
  12612. ObjectAnimation objectAnimation;
  12613. float opacity;
  12614. UIElement parent;
  12615. IntVector2 position;
  12616. int priority;
  12617. /* readonly */
  12618. int refs;
  12619. /* readonly */
  12620. Texture2D renderTexture;
  12621. bool resizable;
  12622. IntRect resizeBorder;
  12623. /* readonly */
  12624. UIElement root;
  12625. /* readonly */
  12626. Scene scene;
  12627. /* readonly */
  12628. IntVector2 screenPosition;
  12629. bool selected;
  12630. IntVector2 size;
  12631. bool sortChildren;
  12632. String style;
  12633. /* readonly */
  12634. Array<String> tags;
  12635. bool temporary;
  12636. Texture texture;
  12637. bool tiled;
  12638. TraversalMode traversalMode;
  12639. /* readonly */
  12640. StringHash type;
  12641. /* readonly */
  12642. String typeName;
  12643. bool useDerivedOpacity;
  12644. /* readonly */
  12645. VariantMap vars;
  12646. VerticalAlignment verticalAlignment;
  12647. /* readonly */
  12648. Viewport viewport;
  12649. bool visible;
  12650. /* readonly */
  12651. bool visibleEffective;
  12652. /* readonly */
  12653. int weakRefs;
  12654. int width;
  12655. };
  12656. class Viewport
  12657. {
  12658. // Methods:
  12659. Ray GetScreenRay(int, int) const;
  12660. bool HasSubscribedToEvent(Object, const String&);
  12661. bool HasSubscribedToEvent(const String&);
  12662. Vector3 ScreenToWorldPoint(int, int, float) const;
  12663. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12664. void SetRenderPath(XMLFile);
  12665. Vector2 WorldToScreenPoint(const Vector3&) const;
  12666. // Properties:
  12667. Camera camera;
  12668. /* readonly */
  12669. String category;
  12670. Camera cullCamera;
  12671. bool drawDebug;
  12672. IntRect rect;
  12673. /* readonly */
  12674. int refs;
  12675. RenderPath renderPath;
  12676. Scene scene;
  12677. /* readonly */
  12678. StringHash type;
  12679. /* readonly */
  12680. String typeName;
  12681. /* readonly */
  12682. int weakRefs;
  12683. };
  12684. class WeakHandle
  12685. {
  12686. // Methods:
  12687. RefCounted Get() const;
  12688. // Properties:
  12689. /* readonly */
  12690. bool expired;
  12691. /* readonly */
  12692. int refs;
  12693. /* readonly */
  12694. int weakRefs;
  12695. };
  12696. class Window
  12697. {
  12698. // Methods:
  12699. void AddChild(UIElement);
  12700. void AddTag(const String&);
  12701. void AddTags(const String&, int8 = ';');
  12702. void ApplyAttributes();
  12703. void BringToFront();
  12704. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12705. void DisableLayoutUpdate();
  12706. IntVector2 ElementToScreen(const IntVector2&);
  12707. void EnableLayoutUpdate();
  12708. uint FindChild(UIElement) const;
  12709. Variant GetAttribute(const String&) const;
  12710. ValueAnimation GetAttributeAnimation(const String&) const;
  12711. float GetAttributeAnimationSpeed(const String&) const;
  12712. float GetAttributeAnimationTime(const String&) const;
  12713. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12714. Variant GetAttributeDefault(const String&) const;
  12715. UIElement GetChild(const String&, bool = false) const;
  12716. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12717. Array<UIElement> GetChildren(bool = false) const;
  12718. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12719. UIElement GetElementEventSender() const;
  12720. bool GetInterceptNetworkUpdate(const String&) const;
  12721. uint GetNumChildren(bool) const;
  12722. bool HasSubscribedToEvent(Object, const String&);
  12723. bool HasSubscribedToEvent(const String&);
  12724. bool HasTag(const String&) const;
  12725. void InsertChild(uint, UIElement);
  12726. bool IsInside(IntVector2, bool);
  12727. bool IsInsideCombined(IntVector2, bool);
  12728. bool Load(File, bool = false);
  12729. bool Load(VectorBuffer&, bool = false);
  12730. bool LoadChildXML(XMLFile, XMLFile = null);
  12731. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12732. bool LoadJSON(const JSONValue&, bool = false);
  12733. bool LoadXML(File);
  12734. bool LoadXML(VectorBuffer&);
  12735. bool LoadXML(XMLFile, XMLFile);
  12736. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12737. bool LoadXML(const XMLElement&, bool = false);
  12738. void MarkNetworkUpdate() const;
  12739. void Remove();
  12740. void RemoveAllChildren();
  12741. void RemoveAllTags();
  12742. void RemoveAttributeAnimation(const String&);
  12743. void RemoveChild(UIElement, uint = 0);
  12744. void RemoveChild(uint);
  12745. void RemoveInstanceDefault();
  12746. void RemoveObjectAnimation();
  12747. bool RemoveTag(const String&);
  12748. void ResetDeepEnabled();
  12749. void ResetToDefault();
  12750. bool Save(File) const;
  12751. bool Save(VectorBuffer&) const;
  12752. bool SaveJSON(JSONValue&) const;
  12753. bool SaveXML(File, const String& = "\t");
  12754. bool SaveXML(VectorBuffer&, const String& = "\t");
  12755. bool SaveXML(XMLElement&) const;
  12756. IntVector2 ScreenToElement(const IntVector2&);
  12757. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12758. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12759. void SetAnimationTime(float);
  12760. bool SetAttribute(const String&, const Variant&);
  12761. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12762. void SetAttributeAnimationSpeed(const String&, float);
  12763. void SetAttributeAnimationTime(const String&, float);
  12764. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12765. void SetDeepEnabled(bool);
  12766. void SetEnabledRecursive(bool);
  12767. void SetFixedHeight(int);
  12768. void SetFixedSize(int, int);
  12769. void SetFixedWidth(int);
  12770. void SetFullImageRect();
  12771. void SetHoverOffset(int, int);
  12772. void SetInterceptNetworkUpdate(const String&, bool);
  12773. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12774. void SetMaxSize(int, int);
  12775. void SetMinSize(int, int);
  12776. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12777. void SetPosition(int, int);
  12778. void SetSize(int, int);
  12779. bool SetStyle(const String&, XMLFile = null);
  12780. bool SetStyle(const XMLElement&);
  12781. bool SetStyleAuto(XMLFile = null);
  12782. void UpdateLayout();
  12783. const Variant& GetVar(const StringHash&);
  12784. // Properties:
  12785. bool animationEnabled;
  12786. /* readonly */
  12787. Array<Variant> attributeDefaults;
  12788. /* readonly */
  12789. Array<AttributeInfo> attributeInfos;
  12790. Array<Variant> attributes;
  12791. BlendMode blendMode;
  12792. IntRect border;
  12793. bool bringToBack;
  12794. bool bringToFront;
  12795. /* readonly */
  12796. String category;
  12797. /* readonly */
  12798. IntVector2 childOffset;
  12799. /* readonly */
  12800. Array<UIElement> children;
  12801. IntRect clipBorder;
  12802. bool clipChildren;
  12803. /* writeonly */
  12804. Color color;
  12805. /* readonly */
  12806. bool colorGradient;
  12807. Array<Color> colors;
  12808. /* readonly */
  12809. IntRect combinedScreenRect;
  12810. XMLFile defaultStyle;
  12811. /* readonly */
  12812. float derivedOpacity;
  12813. /* readonly */
  12814. uint dragButtonCombo;
  12815. /* readonly */
  12816. int dragButtonCount;
  12817. uint dragDropMode;
  12818. bool editable;
  12819. bool elementEventSender;
  12820. bool enabled;
  12821. /* readonly */
  12822. bool enabledSelf;
  12823. /* readonly */
  12824. bool fixedHeight;
  12825. bool fixedHeightResizing;
  12826. /* readonly */
  12827. bool fixedSize;
  12828. /* readonly */
  12829. bool fixedWidth;
  12830. bool fixedWidthResizing;
  12831. bool focus;
  12832. FocusMode focusMode;
  12833. int height;
  12834. HorizontalAlignment horizontalAlignment;
  12835. IntVector2 hoverOffset;
  12836. /* readonly */
  12837. bool hovering;
  12838. IntRect imageBorder;
  12839. IntRect imageRect;
  12840. int indent;
  12841. int indentSpacing;
  12842. /* readonly */
  12843. int indentWidth;
  12844. bool internal;
  12845. IntRect layoutBorder;
  12846. Vector2 layoutFlexScale;
  12847. LayoutMode layoutMode;
  12848. int layoutSpacing;
  12849. int maxHeight;
  12850. IntVector2 maxSize;
  12851. int maxWidth;
  12852. int minHeight;
  12853. IntVector2 minSize;
  12854. int minWidth;
  12855. bool modal;
  12856. bool modalAutoDismiss;
  12857. Color modalFrameColor;
  12858. IntVector2 modalFrameSize;
  12859. Color modalShadeColor;
  12860. bool movable;
  12861. String name;
  12862. /* readonly */
  12863. uint numAllChildren;
  12864. /* readonly */
  12865. uint numAttributes;
  12866. /* readonly */
  12867. uint numChildren;
  12868. ObjectAnimation objectAnimation;
  12869. float opacity;
  12870. UIElement parent;
  12871. IntVector2 position;
  12872. int priority;
  12873. /* readonly */
  12874. int refs;
  12875. bool resizable;
  12876. IntRect resizeBorder;
  12877. /* readonly */
  12878. UIElement root;
  12879. /* readonly */
  12880. IntVector2 screenPosition;
  12881. bool selected;
  12882. IntVector2 size;
  12883. bool sortChildren;
  12884. String style;
  12885. /* readonly */
  12886. Array<String> tags;
  12887. bool temporary;
  12888. Texture texture;
  12889. bool tiled;
  12890. TraversalMode traversalMode;
  12891. /* readonly */
  12892. StringHash type;
  12893. /* readonly */
  12894. String typeName;
  12895. bool useDerivedOpacity;
  12896. /* readonly */
  12897. VariantMap vars;
  12898. VerticalAlignment verticalAlignment;
  12899. bool visible;
  12900. /* readonly */
  12901. bool visibleEffective;
  12902. /* readonly */
  12903. int weakRefs;
  12904. int width;
  12905. };
  12906. class XMLElement
  12907. {
  12908. // Methods:
  12909. XMLElement CreateChild(const String&);
  12910. String GetAttribute(const String& = String ( )) const;
  12911. String GetAttributeLower(const String&) const;
  12912. Array<String> GetAttributeNames() const;
  12913. String GetAttributeUpper(const String&) const;
  12914. bool GetBool(const String&) const;
  12915. BoundingBox GetBoundingBox() const;
  12916. XMLElement GetChild(const String& = String ( )) const;
  12917. Color GetColor(const String&) const;
  12918. double GetDouble(const String&) const;
  12919. float GetFloat(const String&) const;
  12920. int GetInt(const String&) const;
  12921. IntRect GetIntRect(const String&) const;
  12922. IntVector2 GetIntVector2(const String&) const;
  12923. Matrix3 GetMatrix3(const String&) const;
  12924. Matrix3x4 GetMatrix3x4(const String&) const;
  12925. Matrix4 GetMatrix4(const String&) const;
  12926. XMLElement GetNext(const String& = String ( )) const;
  12927. Quaternion GetQuaternion(const String&) const;
  12928. ResourceRef GetResourceRef() const;
  12929. ResourceRefList GetResourceRefList() const;
  12930. uint GetUInt(const String&) const;
  12931. String GetValue() const;
  12932. Variant GetVariant() const;
  12933. VariantMap GetVariantMap() const;
  12934. Array<Variant> GetVariantVector() const;
  12935. Vector2 GetVector2(const String&) const;
  12936. Vector3 GetVector3(const String&) const;
  12937. Vector4 GetVector4(const String&) const;
  12938. Variant GetVectorVariant(const String&) const;
  12939. bool HasAttribute(const String&) const;
  12940. bool HasChild(const String&) const;
  12941. bool RemoveAttribute(const String& = String ( ));
  12942. bool RemoveChild(const String&);
  12943. bool RemoveChild(const XMLElement&);
  12944. bool RemoveChildren(const String& = String ( ));
  12945. XPathResultSet Select(const String&);
  12946. XPathResultSet SelectPrepared(const XPathQuery&);
  12947. XMLElement SelectSingle(const String&);
  12948. XMLElement SelectSinglePrepared(const XPathQuery&);
  12949. bool SetAttribute(const String&);
  12950. bool SetAttribute(const String&, const String&);
  12951. bool SetBool(const String&, bool);
  12952. bool SetBoundingBox(const BoundingBox&);
  12953. bool SetColor(const String&, const Color&);
  12954. bool SetDouble(const String&, double);
  12955. bool SetFloat(const String&, float);
  12956. bool SetInt(const String&, int);
  12957. bool SetIntRect(const String&, const IntRect&);
  12958. bool SetIntVector2(const String&, const IntVector2&);
  12959. bool SetMatrix3(const String&, const Matrix3&);
  12960. bool SetMatrix3x4(const String&, const Matrix3x4&);
  12961. bool SetMatrix4(const String&, const Matrix4&);
  12962. bool SetQuaternion(const String&, const Quaternion&);
  12963. bool SetResourceRef(const String&, const ResourceRef&);
  12964. bool SetResourceRefList(const String&, const ResourceRefList&);
  12965. bool SetUInt(const String&, uint);
  12966. bool SetValue(const String&);
  12967. bool SetVariant(const Variant&);
  12968. bool SetVariantMap(const VariantMap&);
  12969. bool SetVariantVector(Array<Variant>);
  12970. bool SetVector2(const String&, const Vector2&);
  12971. bool SetVector3(const String&, const Vector3&);
  12972. bool SetVector4(const String&, const Vector4&);
  12973. bool SetVectorVariant(const String&, const Variant&);
  12974. // Properties:
  12975. /* readonly */
  12976. XMLFile file;
  12977. /* readonly */
  12978. bool isNull;
  12979. /* readonly */
  12980. String name;
  12981. /* readonly */
  12982. XMLElement nextResult;
  12983. /* readonly */
  12984. bool notNull;
  12985. /* readonly */
  12986. uint numAttributes;
  12987. /* readonly */
  12988. XMLElement parent;
  12989. String value;
  12990. };
  12991. class XMLFile
  12992. {
  12993. // Methods:
  12994. XMLElement CreateRoot(const String&);
  12995. bool FromString(const String&);
  12996. XMLElement GetRoot(const String& = String ( ));
  12997. bool HasSubscribedToEvent(Object, const String&);
  12998. bool HasSubscribedToEvent(const String&);
  12999. bool Load(File);
  13000. bool Load(VectorBuffer&);
  13001. void Patch(XMLElement);
  13002. void Patch(XMLFile);
  13003. bool Save(File) const;
  13004. bool Save(File, const String&) const;
  13005. bool Save(VectorBuffer&) const;
  13006. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13007. String ToString(const String& = String ( "\t" )) const;
  13008. // Properties:
  13009. /* readonly */
  13010. String category;
  13011. /* readonly */
  13012. uint memoryUse;
  13013. String name;
  13014. /* readonly */
  13015. int refs;
  13016. /* readonly */
  13017. XMLElement root;
  13018. /* readonly */
  13019. StringHash type;
  13020. /* readonly */
  13021. String typeName;
  13022. /* readonly */
  13023. uint useTimer;
  13024. /* readonly */
  13025. int weakRefs;
  13026. };
  13027. class XPathQuery
  13028. {
  13029. // Methods:
  13030. void Bind();
  13031. void Clear();
  13032. XPathResultSet Evaluate(XMLElement);
  13033. bool EvaluateToBool(XMLElement);
  13034. float EvaluateToFloat(XMLElement);
  13035. String EvaluateToString(XMLElement);
  13036. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13037. bool SetVariable(const String&, bool);
  13038. bool SetVariable(const String&, const String&);
  13039. bool SetVariable(const String&, const XPathResultSet&);
  13040. bool SetVariable(const String&, float);
  13041. // Properties:
  13042. String query;
  13043. };
  13044. class XPathResultSet
  13045. {
  13046. // Properties:
  13047. /* readonly */
  13048. bool empty;
  13049. /* readonly */
  13050. XMLElement firstResult;
  13051. /* readonly */
  13052. uint size;
  13053. };
  13054. class Zone
  13055. {
  13056. // Methods:
  13057. void ApplyAttributes();
  13058. void DrawDebugGeometry(DebugRenderer, bool);
  13059. Variant GetAttribute(const String&) const;
  13060. ValueAnimation GetAttributeAnimation(const String&) const;
  13061. float GetAttributeAnimationSpeed(const String&) const;
  13062. float GetAttributeAnimationTime(const String&) const;
  13063. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13064. Variant GetAttributeDefault(const String&) const;
  13065. bool GetInterceptNetworkUpdate(const String&) const;
  13066. bool HasSubscribedToEvent(Object, const String&);
  13067. bool HasSubscribedToEvent(const String&);
  13068. bool IsInView(Camera) const;
  13069. bool Load(File, bool = false);
  13070. bool Load(VectorBuffer&, bool = false);
  13071. bool LoadJSON(const JSONValue&, bool = false);
  13072. bool LoadXML(const XMLElement&, bool = false);
  13073. void MarkNetworkUpdate() const;
  13074. void Remove();
  13075. void RemoveAttributeAnimation(const String&);
  13076. void RemoveInstanceDefault();
  13077. void RemoveObjectAnimation();
  13078. void ResetToDefault();
  13079. bool Save(File) const;
  13080. bool Save(VectorBuffer&) const;
  13081. bool SaveJSON(JSONValue&) const;
  13082. bool SaveXML(XMLElement&) const;
  13083. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13084. void SetAnimationTime(float);
  13085. bool SetAttribute(const String&, const Variant&);
  13086. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13087. void SetAttributeAnimationSpeed(const String&, float);
  13088. void SetAttributeAnimationTime(const String&, float);
  13089. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13090. void SetInterceptNetworkUpdate(const String&, bool);
  13091. // Properties:
  13092. Color ambientColor;
  13093. /* readonly */
  13094. Color ambientEndColor;
  13095. bool ambientGradient;
  13096. /* readonly */
  13097. Color ambientStartColor;
  13098. bool animationEnabled;
  13099. /* readonly */
  13100. Array<Variant> attributeDefaults;
  13101. /* readonly */
  13102. Array<AttributeInfo> attributeInfos;
  13103. Array<Variant> attributes;
  13104. BoundingBox boundingBox;
  13105. bool castShadows;
  13106. /* readonly */
  13107. String category;
  13108. float drawDistance;
  13109. bool enabled;
  13110. /* readonly */
  13111. bool enabledEffective;
  13112. Color fogColor;
  13113. float fogEnd;
  13114. float fogHeight;
  13115. float fogHeightScale;
  13116. float fogStart;
  13117. bool heightFog;
  13118. /* readonly */
  13119. uint id;
  13120. /* readonly */
  13121. bool inView;
  13122. /* readonly */
  13123. Matrix3x4 inverseWorldTransform;
  13124. uint lightMask;
  13125. float lodBias;
  13126. uint maxLights;
  13127. /* readonly */
  13128. Node node;
  13129. /* readonly */
  13130. uint numAttributes;
  13131. ObjectAnimation objectAnimation;
  13132. bool occludee;
  13133. bool occluder;
  13134. bool override;
  13135. int priority;
  13136. /* readonly */
  13137. int refs;
  13138. float shadowDistance;
  13139. uint shadowMask;
  13140. bool temporary;
  13141. /* readonly */
  13142. StringHash type;
  13143. /* readonly */
  13144. String typeName;
  13145. uint viewMask;
  13146. /* readonly */
  13147. int weakRefs;
  13148. /* readonly */
  13149. BoundingBox worldBoundingBox;
  13150. uint zoneMask;
  13151. Texture zoneTexture;
  13152. };
  13153. // Enumerations
  13154. enum AnimationBlendMode
  13155. {
  13156. ABM_LERP,
  13157. ABM_ADDITIVE,
  13158. };
  13159. enum BlendMode
  13160. {
  13161. BLEND_REPLACE,
  13162. BLEND_ADD,
  13163. BLEND_MULTIPLY,
  13164. BLEND_ALPHA,
  13165. BLEND_ADDALPHA,
  13166. BLEND_PREMULALPHA,
  13167. BLEND_INVDESTALPHA,
  13168. BLEND_SUBTRACT,
  13169. BLEND_SUBTRACTALPHA,
  13170. };
  13171. enum BodyType2D
  13172. {
  13173. BT_STATIC,
  13174. BT_KINEMATIC,
  13175. BT_DYNAMIC,
  13176. };
  13177. enum CollisionEventMode
  13178. {
  13179. COLLISION_NEVER,
  13180. COLLISION_ACTIVE,
  13181. COLLISION_ALWAYS,
  13182. };
  13183. enum CompareMode
  13184. {
  13185. CMP_ALWAYS,
  13186. CMP_EQUAL,
  13187. CMP_NOTEQUAL,
  13188. CMP_LESS,
  13189. CMP_LESSEQUAL,
  13190. CMP_GREATER,
  13191. CMP_GREATEREQUAL,
  13192. };
  13193. enum CompressedFormat
  13194. {
  13195. CF_NONE,
  13196. CF_RGBA,
  13197. CF_DXT1,
  13198. CF_DXT3,
  13199. CF_DXT5,
  13200. CF_ETC1,
  13201. CF_PVRTC_RGB_2BPP,
  13202. CF_PVRTC_RGBA_2BPP,
  13203. CF_PVRTC_RGB_4BPP,
  13204. CF_PVRTC_RGBA_4BPP,
  13205. };
  13206. enum ConstraintType
  13207. {
  13208. CONSTRAINT_POINT,
  13209. CONSTRAINT_HINGE,
  13210. CONSTRAINT_SLIDER,
  13211. CONSTRAINT_CONETWIST,
  13212. };
  13213. enum Corner
  13214. {
  13215. C_TOPLEFT,
  13216. C_TOPRIGHT,
  13217. C_BOTTOMLEFT,
  13218. C_BOTTOMRIGHT,
  13219. };
  13220. enum CreateMode
  13221. {
  13222. REPLICATED,
  13223. LOCAL,
  13224. };
  13225. enum CrowdAgentRequestedTarget
  13226. {
  13227. CA_REQUESTEDTARGET_NONE,
  13228. CA_REQUESTEDTARGET_POSITION,
  13229. CA_REQUESTEDTARGET_VELOCITY,
  13230. };
  13231. enum CrowdAgentState
  13232. {
  13233. CA_STATE_INVALID,
  13234. CA_STATE_WALKING,
  13235. CA_STATE_OFFMESH,
  13236. };
  13237. enum CrowdAgentTargetState
  13238. {
  13239. CA_TARGET_NONE,
  13240. CA_TARGET_FAILED,
  13241. CA_TARGET_VALID,
  13242. CA_TARGET_REQUESTING,
  13243. CA_TARGET_WAITINGFORQUEUE,
  13244. CA_TARGET_WAITINGFORPATH,
  13245. CA_TARGET_VELOCITY,
  13246. };
  13247. enum CubeMapFace
  13248. {
  13249. FACE_POSITIVE_X,
  13250. FACE_NEGATIVE_X,
  13251. FACE_POSITIVE_Y,
  13252. FACE_NEGATIVE_Y,
  13253. FACE_POSITIVE_Z,
  13254. FACE_NEGATIVE_Z,
  13255. };
  13256. enum CullMode
  13257. {
  13258. CULL_NONE,
  13259. CULL_CCW,
  13260. CULL_CW,
  13261. };
  13262. enum CursorShape
  13263. {
  13264. CS_NORMAL,
  13265. CS_IBEAM,
  13266. CS_CROSS,
  13267. CS_RESIZEVERTICAL,
  13268. CS_RESIZEDIAGONAL_TOPRIGHT,
  13269. CS_RESIZEHORIZONTAL,
  13270. CS_RESIZEDIAGONAL_TOPLEFT,
  13271. CS_RESIZE_ALL,
  13272. CS_ACCEPTDROP,
  13273. CS_REJECTDROP,
  13274. CS_BUSY,
  13275. CS_BUSY_ARROW,
  13276. };
  13277. enum DBAPI
  13278. {
  13279. DBAPI_SQLITE,
  13280. DBAPI_ODBC,
  13281. };
  13282. enum DumpMode
  13283. {
  13284. DOXYGEN,
  13285. C_HEADER,
  13286. };
  13287. enum EmitterType
  13288. {
  13289. EMITTER_SPHERE,
  13290. EMITTER_BOX,
  13291. };
  13292. enum EmitterType2D
  13293. {
  13294. EMITTER_TYPE_GRAVITY,
  13295. EMITTER_TYPE_RADIAL,
  13296. };
  13297. enum FaceCameraMode
  13298. {
  13299. FC_NONE,
  13300. FC_ROTATE_XYZ,
  13301. FC_ROTATE_Y,
  13302. FC_LOOKAT_XYZ,
  13303. FC_LOOKAT_Y,
  13304. FC_DIRECTION,
  13305. };
  13306. enum FileMode
  13307. {
  13308. FILE_READ,
  13309. FILE_WRITE,
  13310. FILE_READWRITE,
  13311. };
  13312. enum FillMode
  13313. {
  13314. FILL_SOLID,
  13315. FILL_WIREFRAME,
  13316. FILL_POINT,
  13317. };
  13318. enum FocusMode
  13319. {
  13320. FM_NOTFOCUSABLE,
  13321. FM_RESETFOCUS,
  13322. FM_FOCUSABLE,
  13323. FM_FOCUSABLE_DEFOCUSABLE,
  13324. };
  13325. enum HighlightMode
  13326. {
  13327. HM_NEVER,
  13328. HM_FOCUS,
  13329. HM_ALWAYS,
  13330. };
  13331. enum HorizontalAlignment
  13332. {
  13333. HA_LEFT,
  13334. HA_CENTER,
  13335. HA_RIGHT,
  13336. };
  13337. enum HttpRequestState
  13338. {
  13339. HTTP_INITIALIZING,
  13340. HTTP_ERROR,
  13341. HTTP_OPEN,
  13342. HTTP_CLOSED,
  13343. };
  13344. enum InterpMethod
  13345. {
  13346. IM_LINEAR,
  13347. IM_SPLINE,
  13348. };
  13349. enum InterpolationMode
  13350. {
  13351. BEZIER_CURVE,
  13352. CATMULL_ROM_CURVE,
  13353. LINEAR_CURVE,
  13354. CATMULL_ROM_FULL_CURVE,
  13355. };
  13356. enum Intersection
  13357. {
  13358. OUTSIDE,
  13359. INTERSECTS,
  13360. INSIDE,
  13361. };
  13362. enum JSONValueType
  13363. {
  13364. JSON_NULL,
  13365. JSON_BOOL,
  13366. JSON_NUMBER,
  13367. JSON_STRING,
  13368. JSON_ARRAY,
  13369. JSON_OBJECT,
  13370. };
  13371. enum LayoutMode
  13372. {
  13373. LM_FREE,
  13374. LM_HORIZONTAL,
  13375. LM_VERTICAL,
  13376. };
  13377. enum LightType
  13378. {
  13379. LIGHT_DIRECTIONAL,
  13380. LIGHT_SPOT,
  13381. LIGHT_POINT,
  13382. };
  13383. enum LoadMode
  13384. {
  13385. LOAD_RESOURCES_ONLY,
  13386. LOAD_SCENE,
  13387. LOAD_SCENE_AND_RESOURCES,
  13388. };
  13389. enum LoopMode2D
  13390. {
  13391. LM_DEFAULT,
  13392. LM_FORCE_LOOPED,
  13393. LM_FORCE_CLAMPED,
  13394. };
  13395. enum MouseMode
  13396. {
  13397. MM_ABSOLUTE,
  13398. MM_RELATIVE,
  13399. MM_WRAP,
  13400. MM_FREE,
  13401. };
  13402. enum NavigationPushiness
  13403. {
  13404. NAVIGATIONPUSHINESS_LOW,
  13405. NAVIGATIONPUSHINESS_MEDIUM,
  13406. NAVIGATIONPUSHINESS_HIGH,
  13407. };
  13408. enum NavigationQuality
  13409. {
  13410. NAVIGATIONQUALITY_LOW,
  13411. NAVIGATIONQUALITY_MEDIUM,
  13412. NAVIGATIONQUALITY_HIGH,
  13413. };
  13414. enum NavmeshPartitionType
  13415. {
  13416. NAVMESH_PARTITION_WATERSHED,
  13417. NAVMESH_PARTITION_MONOTONE,
  13418. };
  13419. enum Orientation
  13420. {
  13421. O_HORIZONTAL,
  13422. O_VERTICAL,
  13423. };
  13424. enum Orientation2D
  13425. {
  13426. O_ORTHOGONAL,
  13427. O_ISOMETRIC,
  13428. O_STAGGERED,
  13429. };
  13430. enum PassLightingMode
  13431. {
  13432. LIGHTING_UNLIT,
  13433. LIGHTING_PERVERTEX,
  13434. LIGHTING_PERPIXEL,
  13435. };
  13436. enum PrimitiveType
  13437. {
  13438. TRIANGLE_LIST,
  13439. LINE_LIST,
  13440. POINT_LIST,
  13441. TRIANGLE_STRIP,
  13442. LINE_STRIP,
  13443. TRIANGLE_FAN,
  13444. };
  13445. enum RayQueryLevel
  13446. {
  13447. RAY_AABB,
  13448. RAY_OBB,
  13449. RAY_TRIANGLE,
  13450. RAY_TRIANGLE_UV,
  13451. };
  13452. enum RenderCommandSortMode
  13453. {
  13454. SORT_FRONTTOBACK,
  13455. SORT_BACKTOFRONT,
  13456. };
  13457. enum RenderCommandType
  13458. {
  13459. CMD_NONE,
  13460. CMD_CLEAR,
  13461. CMD_SCENEPASS,
  13462. CMD_QUAD,
  13463. CMD_FORWARDLIGHTS,
  13464. CMD_LIGHTVOLUMES,
  13465. CMD_RENDERUI,
  13466. };
  13467. enum RenderSurfaceUpdateMode
  13468. {
  13469. SURFACE_MANUALUPDATE,
  13470. SURFACE_UPDATEVISIBLE,
  13471. SURFACE_UPDATEALWAYS,
  13472. };
  13473. enum RenderTargetSizeMode
  13474. {
  13475. SIZE_ABSOLUTE,
  13476. SIZE_VIEWPORTDIVISOR,
  13477. SIZE_VIEWPORTMULTIPLIER,
  13478. };
  13479. enum ShadowQuality
  13480. {
  13481. SHADOWQUALITY_SIMPLE_16BIT,
  13482. SHADOWQUALITY_SIMPLE_24BIT,
  13483. SHADOWQUALITY_PCF_16BIT,
  13484. SHADOWQUALITY_PCF_24BIT,
  13485. SHADOWQUALITY_VSM,
  13486. SHADOWQUALITY_BLUR_VSM,
  13487. };
  13488. enum ShapeType
  13489. {
  13490. SHAPE_BOX,
  13491. SHAPE_SPHERE,
  13492. SHAPE_STATICPLANE,
  13493. SHAPE_CYLINDER,
  13494. SHAPE_CAPSULE,
  13495. SHAPE_CONE,
  13496. SHAPE_TRIANGLEMESH,
  13497. SHAPE_CONVEXHULL,
  13498. SHAPE_TERRAIN,
  13499. };
  13500. enum TextEffect
  13501. {
  13502. TE_NONE,
  13503. TE_SHADOW,
  13504. TE_STROKE,
  13505. };
  13506. enum TextureAddressMode
  13507. {
  13508. ADDRESS_WRAP,
  13509. ADDRESS_MIRROR,
  13510. ADDRESS_CLAMP,
  13511. ADDRESS_BORDER,
  13512. };
  13513. enum TextureCoordinate
  13514. {
  13515. COORD_U,
  13516. COORD_V,
  13517. COORD_W,
  13518. };
  13519. enum TextureFilterMode
  13520. {
  13521. FILTER_NEAREST,
  13522. FILTER_BILINEAR,
  13523. FILTER_TRILINEAR,
  13524. FILTER_ANISOTROPIC,
  13525. FILTER_DEFAULT,
  13526. };
  13527. enum TextureUnit
  13528. {
  13529. TU_DIFFUSE,
  13530. TU_ALBEDOBUFFER,
  13531. TU_NORMAL,
  13532. TU_NORMALBUFFER,
  13533. TU_SPECULAR,
  13534. TU_EMISSIVE,
  13535. TU_ENVIRONMENT,
  13536. TU_LIGHTRAMP,
  13537. TU_LIGHTSHAPE,
  13538. TU_SHADOWMAP,
  13539. TU_CUSTOM1,
  13540. TU_CUSTOM2,
  13541. TU_VOLUMEMAP,
  13542. TU_FACESELECT,
  13543. TU_INDIRECTION,
  13544. TU_DEPTHBUFFER,
  13545. TU_LIGHTBUFFER,
  13546. TU_ZONE,
  13547. MAX_MATERIAL_TEXTURE_UNITS,
  13548. MAX_TEXTURE_UNITS,
  13549. };
  13550. enum TextureUsage
  13551. {
  13552. TEXTURE_STATIC,
  13553. TEXTURE_DYNAMIC,
  13554. TEXTURE_RENDERTARGET,
  13555. TEXTURE_DEPTHSTENCIL,
  13556. };
  13557. enum TileMapLayerType2D
  13558. {
  13559. LT_TILE_LAYER,
  13560. LT_OBJECT_GROUP,
  13561. LT_IMAGE_LAYER,
  13562. LT_INVALID,
  13563. };
  13564. enum TileObjectType2D
  13565. {
  13566. OT_RECTANGLE,
  13567. OT_ELLIPSE,
  13568. OT_POLYGON,
  13569. OT_POLYLINE,
  13570. OT_TILE,
  13571. OT_INVALID,
  13572. };
  13573. enum TransformSpace
  13574. {
  13575. TS_LOCAL,
  13576. TS_PARENT,
  13577. TS_WORLD,
  13578. };
  13579. enum TraversalMode
  13580. {
  13581. TM_BREADTH_FIRST,
  13582. TM_DEPTH_FIRST,
  13583. };
  13584. enum VariantType
  13585. {
  13586. VAR_NONE,
  13587. VAR_INT,
  13588. VAR_BOOL,
  13589. VAR_FLOAT,
  13590. VAR_VECTOR2,
  13591. VAR_VECTOR3,
  13592. VAR_VECTOR4,
  13593. VAR_QUATERNION,
  13594. VAR_COLOR,
  13595. VAR_STRING,
  13596. VAR_BUFFER,
  13597. VAR_VOIDPTR,
  13598. VAR_RESOURCEREF,
  13599. VAR_RESOURCEREFLIST,
  13600. VAR_VARIANTVECTOR,
  13601. VAR_VARIANTMAP,
  13602. VAR_INTRECT,
  13603. VAR_INTVECTOR2,
  13604. VAR_PTR,
  13605. VAR_MATRIX3,
  13606. VAR_MATRIX3X4,
  13607. VAR_MATRIX4,
  13608. VAR_DOUBLE,
  13609. VAR_STRINGVECTOR,
  13610. };
  13611. enum VerticalAlignment
  13612. {
  13613. VA_TOP,
  13614. VA_CENTER,
  13615. VA_BOTTOM,
  13616. };
  13617. enum WrapMode
  13618. {
  13619. WM_LOOP,
  13620. WM_ONCE,
  13621. WM_CLAMP,
  13622. };
  13623. // Global functions
  13624. float Abs(float);
  13625. float Acos(float);
  13626. String AddTrailingSlash(const String&);
  13627. float Asin(float);
  13628. float Atan(float);
  13629. float Atan2(float, float);
  13630. float Ceil(float);
  13631. float Clamp(float, float, float);
  13632. int Clamp(int, int, int);
  13633. void ClearDelayedExecute(const String& = String ( ));
  13634. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  13635. float Cos(float);
  13636. uint CountSetBits(uint);
  13637. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  13638. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  13639. bool Equals(float, float);
  13640. void ErrorDialog(const String&, const String&);
  13641. float Floor(float);
  13642. uint GetAlphaFormat();
  13643. Array<String> GetArguments();
  13644. String GetConsoleInput();
  13645. uint GetDepthStencilFormat();
  13646. Object GetEventSender();
  13647. String GetExtension(const String&, bool = true);
  13648. String GetFileName(const String&);
  13649. String GetFileNameAndExtension(const String&, bool = false);
  13650. String GetFileSizeString(uint64);
  13651. uint GetFloat16Format();
  13652. uint GetFloat32Format();
  13653. uint GetFormat(const String&);
  13654. Variant GetGlobalVar(const String&);
  13655. String GetInternalPath(const String&);
  13656. uint GetLinearDepthFormat();
  13657. uint GetLuminanceAlphaFormat();
  13658. uint GetLuminanceFormat();
  13659. uint GetMaxBones();
  13660. String GetMiniDumpDir();
  13661. uint GetNumLogicalCPUs();
  13662. uint GetNumPhysicalCPUs();
  13663. Array<String> GetObjectCategories();
  13664. Array<String> GetObjectsByCategory(const String&);
  13665. String GetParentPath(const String&);
  13666. String GetPath(const String&);
  13667. String GetPlatform();
  13668. uint GetRG16Format();
  13669. uint GetRGBA16Format();
  13670. uint GetRGBAFloat16Format();
  13671. uint GetRGBAFloat32Format();
  13672. uint GetRGBAFormat();
  13673. uint GetRGBFormat();
  13674. uint GetRGFloat16Format();
  13675. uint GetRGFloat32Format();
  13676. uint GetRandomSeed();
  13677. uint GetReadableDepthFormat();
  13678. String GetTextureUnitName(TextureUnit);
  13679. bool HasSubscribedToEvent(Object, const String&);
  13680. bool HasSubscribedToEvent(const String&);
  13681. bool IsAbsolutePath(const String&);
  13682. bool IsAlpha(uint);
  13683. bool IsDigit(uint);
  13684. bool IsNaN(float);
  13685. bool IsPowerOfTwo(uint);
  13686. String Join(Array<String>&, const String&);
  13687. float Lerp(float, float, float);
  13688. void MarkNetworkUpdate();
  13689. float Max(float, float);
  13690. int Max(int, int);
  13691. float Min(float, float);
  13692. int Min(int, int);
  13693. float Mod(float, float);
  13694. uint NextPowerOfTwo(uint);
  13695. void OpenConsoleWindow();
  13696. float Pow(float, float);
  13697. void Print(bool, bool = false);
  13698. void Print(const String&, bool = false);
  13699. void Print(const Variant&, bool = false);
  13700. void Print(float, bool = false);
  13701. void Print(int, bool = false);
  13702. void Print(uint, bool = false);
  13703. void PrintCallStack(bool = false);
  13704. float Random();
  13705. float Random(float);
  13706. float Random(float, float);
  13707. int RandomInt();
  13708. int RandomInt(int);
  13709. int RandomInt(int, int);
  13710. float RandomNormal(float, float);
  13711. void Remove();
  13712. String RemoveTrailingSlash(const String&);
  13713. String ReplaceExtension(const String&, const String&);
  13714. uint SDBMHash(uint, uint8);
  13715. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13716. void SetGlobalVar(const String&, Variant&);
  13717. void SetMiniDumpDir(const String&);
  13718. void SetRandomSeed(uint);
  13719. float Sign(float);
  13720. float Sin(float);
  13721. float SmoothStep(float, float, float);
  13722. float Sqrt(float);
  13723. const String& GetTypeName(StringHash);
  13724. void SubscribeToEvent(Object, const String&, const String&);
  13725. void SubscribeToEvent(const String&, const String&);
  13726. float Tan(float);
  13727. uint ToLower(uint);
  13728. String ToStringHex(int);
  13729. uint ToUpper(uint);
  13730. void UnsubscribeFromAllEvents();
  13731. void UnsubscribeFromAllEventsExcept(Array<String>);
  13732. void UnsubscribeFromEvent(Object, const String&);
  13733. void UnsubscribeFromEvent(const String&);
  13734. void UnsubscribeFromEvents(Object);
  13735. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13736. // Global properties
  13737. DBAPI DBAPI;
  13738. Audio audio;
  13739. ResourceCache cache;
  13740. Console console;
  13741. Database database;
  13742. DebugHud debugHud;
  13743. DebugRenderer debugRenderer;
  13744. Engine engine;
  13745. FileSystem fileSystem;
  13746. VariantMap globalVars;
  13747. Graphics graphics;
  13748. Input input;
  13749. Localization localization;
  13750. Log log;
  13751. Network network;
  13752. Node node;
  13753. Octree octree;
  13754. PhysicsWorld physicsWorld;
  13755. PhysicsWorld2D physicsWorld2D;
  13756. Renderer renderer;
  13757. ResourceCache resourceCache;
  13758. Scene scene;
  13759. Script script;
  13760. ScriptFile scriptFile;
  13761. ScriptInstance self;
  13762. Time time;
  13763. UI ui;
  13764. // Global constants
  13765. uint AM_COMPONENTID;
  13766. uint AM_DEFAULT;
  13767. uint AM_FILE;
  13768. uint AM_LATESTDATA;
  13769. uint AM_NET;
  13770. uint AM_NODEID;
  13771. uint AM_NODEIDVECTOR;
  13772. uint AM_NOEDIT;
  13773. Color BLACK;
  13774. Color BLUE;
  13775. uint8 CHANNEL_POSITION;
  13776. uint8 CHANNEL_ROTATION;
  13777. uint8 CHANNEL_SCALE;
  13778. uint CLEAR_COLOR;
  13779. uint CLEAR_DEPTH;
  13780. uint CLEAR_STENCIL;
  13781. int CONTROLLER_AXIS_LEFTX;
  13782. int CONTROLLER_AXIS_LEFTY;
  13783. int CONTROLLER_AXIS_RIGHTX;
  13784. int CONTROLLER_AXIS_RIGHTY;
  13785. int CONTROLLER_AXIS_TRIGGERLEFT;
  13786. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13787. int CONTROLLER_BUTTON_A;
  13788. int CONTROLLER_BUTTON_B;
  13789. int CONTROLLER_BUTTON_BACK;
  13790. int CONTROLLER_BUTTON_DPAD_DOWN;
  13791. int CONTROLLER_BUTTON_DPAD_LEFT;
  13792. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13793. int CONTROLLER_BUTTON_DPAD_UP;
  13794. int CONTROLLER_BUTTON_GUIDE;
  13795. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13796. int CONTROLLER_BUTTON_LEFTSTICK;
  13797. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13798. int CONTROLLER_BUTTON_RIGHTSTICK;
  13799. int CONTROLLER_BUTTON_START;
  13800. int CONTROLLER_BUTTON_X;
  13801. int CONTROLLER_BUTTON_Y;
  13802. Color CYAN;
  13803. uint DD_DISABLED;
  13804. uint DD_SOURCE;
  13805. uint DD_SOURCE_AND_TARGET;
  13806. uint DD_TARGET;
  13807. uint DEBUGHUD_SHOW_ALL;
  13808. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13809. uint DEBUGHUD_SHOW_MEMORY;
  13810. uint DEBUGHUD_SHOW_MODE;
  13811. uint DEBUGHUD_SHOW_NONE;
  13812. uint DEBUGHUD_SHOW_PROFILER;
  13813. uint DEBUGHUD_SHOW_STATS;
  13814. uint DEFAULT_LIGHTMASK;
  13815. uint DEFAULT_VIEWMASK;
  13816. uint DRAWABLE_ANY;
  13817. uint DRAWABLE_GEOMETRY;
  13818. uint DRAWABLE_GEOMETRY2D;
  13819. uint DRAWABLE_LIGHT;
  13820. uint DRAWABLE_ZONE;
  13821. uint FIRST_LOCAL_ID;
  13822. uint FIRST_REPLICATED_ID;
  13823. Color GRAY;
  13824. Color GREEN;
  13825. int HAT_CENTER;
  13826. int HAT_DOWN;
  13827. int HAT_LEFT;
  13828. int HAT_RIGHT;
  13829. int HAT_UP;
  13830. int KEY_0;
  13831. int KEY_1;
  13832. int KEY_2;
  13833. int KEY_3;
  13834. int KEY_4;
  13835. int KEY_5;
  13836. int KEY_6;
  13837. int KEY_7;
  13838. int KEY_8;
  13839. int KEY_9;
  13840. int KEY_A;
  13841. int KEY_ALT;
  13842. int KEY_APPLICATION;
  13843. int KEY_B;
  13844. int KEY_BACKSPACE;
  13845. int KEY_C;
  13846. int KEY_CAPSLOCK;
  13847. int KEY_CTRL;
  13848. int KEY_D;
  13849. int KEY_DELETE;
  13850. int KEY_DOWN;
  13851. int KEY_E;
  13852. int KEY_END;
  13853. int KEY_ESC;
  13854. int KEY_F;
  13855. int KEY_F1;
  13856. int KEY_F10;
  13857. int KEY_F11;
  13858. int KEY_F12;
  13859. int KEY_F13;
  13860. int KEY_F14;
  13861. int KEY_F15;
  13862. int KEY_F16;
  13863. int KEY_F17;
  13864. int KEY_F18;
  13865. int KEY_F19;
  13866. int KEY_F2;
  13867. int KEY_F20;
  13868. int KEY_F21;
  13869. int KEY_F22;
  13870. int KEY_F23;
  13871. int KEY_F24;
  13872. int KEY_F3;
  13873. int KEY_F4;
  13874. int KEY_F5;
  13875. int KEY_F6;
  13876. int KEY_F7;
  13877. int KEY_F8;
  13878. int KEY_F9;
  13879. int KEY_G;
  13880. int KEY_GUI;
  13881. int KEY_H;
  13882. int KEY_HOME;
  13883. int KEY_I;
  13884. int KEY_INSERT;
  13885. int KEY_J;
  13886. int KEY_K;
  13887. int KEY_KP_0;
  13888. int KEY_KP_1;
  13889. int KEY_KP_2;
  13890. int KEY_KP_3;
  13891. int KEY_KP_4;
  13892. int KEY_KP_5;
  13893. int KEY_KP_6;
  13894. int KEY_KP_7;
  13895. int KEY_KP_8;
  13896. int KEY_KP_9;
  13897. int KEY_KP_DIVIDE;
  13898. int KEY_KP_ENTER;
  13899. int KEY_KP_MINUS;
  13900. int KEY_KP_MULTIPLY;
  13901. int KEY_KP_PERIOD;
  13902. int KEY_KP_PLUS;
  13903. int KEY_L;
  13904. int KEY_LALT;
  13905. int KEY_LCTRL;
  13906. int KEY_LEFT;
  13907. int KEY_LGUI;
  13908. int KEY_LSHIFT;
  13909. int KEY_M;
  13910. int KEY_N;
  13911. int KEY_NUMLOCKCLEAR;
  13912. int KEY_O;
  13913. int KEY_P;
  13914. int KEY_PAGEDOWN;
  13915. int KEY_PAGEUP;
  13916. int KEY_PAUSE;
  13917. int KEY_PRINTSCREEN;
  13918. int KEY_Q;
  13919. int KEY_R;
  13920. int KEY_RALT;
  13921. int KEY_RCTRL;
  13922. int KEY_RETURN;
  13923. int KEY_RETURN2;
  13924. int KEY_RGUI;
  13925. int KEY_RIGHT;
  13926. int KEY_RSHIFT;
  13927. int KEY_S;
  13928. int KEY_SCROLLLOCK;
  13929. int KEY_SELECT;
  13930. int KEY_SHIFT;
  13931. int KEY_SPACE;
  13932. int KEY_T;
  13933. int KEY_TAB;
  13934. int KEY_U;
  13935. int KEY_UP;
  13936. int KEY_V;
  13937. int KEY_W;
  13938. int KEY_X;
  13939. int KEY_Y;
  13940. int KEY_Z;
  13941. uint LAST_LOCAL_ID;
  13942. uint LAST_REPLICATED_ID;
  13943. int LOG_DEBUG;
  13944. int LOG_ERROR;
  13945. int LOG_INFO;
  13946. int LOG_NONE;
  13947. int LOG_WARNING;
  13948. Color MAGENTA;
  13949. uint MASK_BLENDINDICES;
  13950. uint MASK_BLENDWEIGHTS;
  13951. uint MASK_COLOR;
  13952. uint MASK_CUBETEXCOORD1;
  13953. uint MASK_CUBETEXCOORD2;
  13954. uint MASK_DEFAULT;
  13955. uint MASK_INSTANCEMATRIX1;
  13956. uint MASK_INSTANCEMATRIX2;
  13957. uint MASK_INSTANCEMATRIX3;
  13958. uint MASK_NONE;
  13959. uint MASK_NORMAL;
  13960. uint MASK_OBJECTINDEX;
  13961. uint MASK_POSITION;
  13962. uint MASK_TANGENT;
  13963. uint MASK_TEXCOORD1;
  13964. uint MASK_TEXCOORD2;
  13965. int MOUSEB_LEFT;
  13966. int MOUSEB_MIDDLE;
  13967. int MOUSEB_RIGHT;
  13968. float M_DEGTORAD;
  13969. float M_DEGTORAD_2;
  13970. float M_EPSILON;
  13971. float M_HALF_PI;
  13972. float M_INFINITY;
  13973. float M_LARGE_EPSILON;
  13974. float M_LARGE_VALUE;
  13975. int M_MAX_INT;
  13976. uint M_MAX_UNSIGNED;
  13977. int M_MIN_INT;
  13978. uint M_MIN_UNSIGNED;
  13979. float M_PI;
  13980. float M_RADTODEG;
  13981. uint NPOS;
  13982. float PIXEL_SIZE;
  13983. int QUALITY_HIGH;
  13984. int QUALITY_LOW;
  13985. int QUALITY_MAX;
  13986. int QUALITY_MEDIUM;
  13987. int QUAL_ALT;
  13988. int QUAL_ANY;
  13989. int QUAL_CTRL;
  13990. int QUAL_SHIFT;
  13991. Color RED;
  13992. int SCANCODE_0;
  13993. int SCANCODE_1;
  13994. int SCANCODE_2;
  13995. int SCANCODE_3;
  13996. int SCANCODE_4;
  13997. int SCANCODE_5;
  13998. int SCANCODE_6;
  13999. int SCANCODE_7;
  14000. int SCANCODE_8;
  14001. int SCANCODE_9;
  14002. int SCANCODE_A;
  14003. int SCANCODE_AC_BACK;
  14004. int SCANCODE_AC_BOOKMARKS;
  14005. int SCANCODE_AC_FORWARD;
  14006. int SCANCODE_AC_HOME;
  14007. int SCANCODE_AC_REFRESH;
  14008. int SCANCODE_AC_SEARCH;
  14009. int SCANCODE_AC_STOP;
  14010. int SCANCODE_AGAIN;
  14011. int SCANCODE_ALT;
  14012. int SCANCODE_ALTERASE;
  14013. int SCANCODE_APOSTROPHE;
  14014. int SCANCODE_APP1;
  14015. int SCANCODE_APP2;
  14016. int SCANCODE_APPLICATION;
  14017. int SCANCODE_AUDIOMUTE;
  14018. int SCANCODE_AUDIONEXT;
  14019. int SCANCODE_AUDIOPLAY;
  14020. int SCANCODE_AUDIOPREV;
  14021. int SCANCODE_AUDIOSTOP;
  14022. int SCANCODE_B;
  14023. int SCANCODE_BACKSLASH;
  14024. int SCANCODE_BACKSPACE;
  14025. int SCANCODE_BRIGHTNESSDOWN;
  14026. int SCANCODE_BRIGHTNESSUP;
  14027. int SCANCODE_C;
  14028. int SCANCODE_CALCULATOR;
  14029. int SCANCODE_CANCEL;
  14030. int SCANCODE_CAPSLOCK;
  14031. int SCANCODE_CLEAR;
  14032. int SCANCODE_CLEARAGAIN;
  14033. int SCANCODE_COMMA;
  14034. int SCANCODE_COMPUTER;
  14035. int SCANCODE_COPY;
  14036. int SCANCODE_CRSEL;
  14037. int SCANCODE_CTRL;
  14038. int SCANCODE_CURRENCYSUBUNIT;
  14039. int SCANCODE_CURRENCYUNIT;
  14040. int SCANCODE_CUT;
  14041. int SCANCODE_D;
  14042. int SCANCODE_DECIMALSEPARATOR;
  14043. int SCANCODE_DELETE;
  14044. int SCANCODE_DISPLAYSWITCH;
  14045. int SCANCODE_DOWN;
  14046. int SCANCODE_E;
  14047. int SCANCODE_EJECT;
  14048. int SCANCODE_END;
  14049. int SCANCODE_EQUALS;
  14050. int SCANCODE_ESCAPE;
  14051. int SCANCODE_EXECUTE;
  14052. int SCANCODE_EXSEL;
  14053. int SCANCODE_F;
  14054. int SCANCODE_F1;
  14055. int SCANCODE_F10;
  14056. int SCANCODE_F11;
  14057. int SCANCODE_F12;
  14058. int SCANCODE_F13;
  14059. int SCANCODE_F14;
  14060. int SCANCODE_F15;
  14061. int SCANCODE_F16;
  14062. int SCANCODE_F17;
  14063. int SCANCODE_F18;
  14064. int SCANCODE_F19;
  14065. int SCANCODE_F2;
  14066. int SCANCODE_F20;
  14067. int SCANCODE_F21;
  14068. int SCANCODE_F22;
  14069. int SCANCODE_F23;
  14070. int SCANCODE_F24;
  14071. int SCANCODE_F3;
  14072. int SCANCODE_F4;
  14073. int SCANCODE_F5;
  14074. int SCANCODE_F6;
  14075. int SCANCODE_F7;
  14076. int SCANCODE_F8;
  14077. int SCANCODE_F9;
  14078. int SCANCODE_FIND;
  14079. int SCANCODE_G;
  14080. int SCANCODE_GRAVE;
  14081. int SCANCODE_GUI;
  14082. int SCANCODE_H;
  14083. int SCANCODE_HELP;
  14084. int SCANCODE_HOME;
  14085. int SCANCODE_I;
  14086. int SCANCODE_INSERT;
  14087. int SCANCODE_INTERNATIONAL1;
  14088. int SCANCODE_INTERNATIONAL2;
  14089. int SCANCODE_INTERNATIONAL3;
  14090. int SCANCODE_INTERNATIONAL4;
  14091. int SCANCODE_INTERNATIONAL5;
  14092. int SCANCODE_INTERNATIONAL6;
  14093. int SCANCODE_INTERNATIONAL7;
  14094. int SCANCODE_INTERNATIONAL8;
  14095. int SCANCODE_INTERNATIONAL9;
  14096. int SCANCODE_J;
  14097. int SCANCODE_K;
  14098. int SCANCODE_KBDILLUMDOWN;
  14099. int SCANCODE_KBDILLUMTOGGLE;
  14100. int SCANCODE_KBDILLUMUP;
  14101. int SCANCODE_KP_0;
  14102. int SCANCODE_KP_00;
  14103. int SCANCODE_KP_000;
  14104. int SCANCODE_KP_1;
  14105. int SCANCODE_KP_2;
  14106. int SCANCODE_KP_3;
  14107. int SCANCODE_KP_4;
  14108. int SCANCODE_KP_5;
  14109. int SCANCODE_KP_6;
  14110. int SCANCODE_KP_7;
  14111. int SCANCODE_KP_8;
  14112. int SCANCODE_KP_9;
  14113. int SCANCODE_KP_A;
  14114. int SCANCODE_KP_AMPERSAND;
  14115. int SCANCODE_KP_AT;
  14116. int SCANCODE_KP_B;
  14117. int SCANCODE_KP_BACKSPACE;
  14118. int SCANCODE_KP_BINARY;
  14119. int SCANCODE_KP_C;
  14120. int SCANCODE_KP_CLEAR;
  14121. int SCANCODE_KP_CLEARENTRY;
  14122. int SCANCODE_KP_COLON;
  14123. int SCANCODE_KP_COMMA;
  14124. int SCANCODE_KP_D;
  14125. int SCANCODE_KP_DBLAMPERSAND;
  14126. int SCANCODE_KP_DBLVERTICALBAR;
  14127. int SCANCODE_KP_DECIMAL;
  14128. int SCANCODE_KP_DIVIDE;
  14129. int SCANCODE_KP_E;
  14130. int SCANCODE_KP_ENTER;
  14131. int SCANCODE_KP_EQUALS;
  14132. int SCANCODE_KP_EQUALSAS400;
  14133. int SCANCODE_KP_EXCLAM;
  14134. int SCANCODE_KP_F;
  14135. int SCANCODE_KP_GREATER;
  14136. int SCANCODE_KP_HASH;
  14137. int SCANCODE_KP_HEXADECIMAL;
  14138. int SCANCODE_KP_LEFTBRACE;
  14139. int SCANCODE_KP_LEFTPAREN;
  14140. int SCANCODE_KP_LESS;
  14141. int SCANCODE_KP_MEMADD;
  14142. int SCANCODE_KP_MEMCLEAR;
  14143. int SCANCODE_KP_MEMDIVIDE;
  14144. int SCANCODE_KP_MEMMULTIPLY;
  14145. int SCANCODE_KP_MEMRECALL;
  14146. int SCANCODE_KP_MEMSTORE;
  14147. int SCANCODE_KP_MEMSUBTRACT;
  14148. int SCANCODE_KP_MINUS;
  14149. int SCANCODE_KP_MULTIPLY;
  14150. int SCANCODE_KP_OCTAL;
  14151. int SCANCODE_KP_PERCENT;
  14152. int SCANCODE_KP_PERIOD;
  14153. int SCANCODE_KP_PLUS;
  14154. int SCANCODE_KP_PLUSMINUS;
  14155. int SCANCODE_KP_POWER;
  14156. int SCANCODE_KP_RIGHTBRACE;
  14157. int SCANCODE_KP_RIGHTPAREN;
  14158. int SCANCODE_KP_SPACE;
  14159. int SCANCODE_KP_TAB;
  14160. int SCANCODE_KP_VERTICALBAR;
  14161. int SCANCODE_KP_XOR;
  14162. int SCANCODE_L;
  14163. int SCANCODE_LALT;
  14164. int SCANCODE_LANG1;
  14165. int SCANCODE_LANG2;
  14166. int SCANCODE_LANG3;
  14167. int SCANCODE_LANG4;
  14168. int SCANCODE_LANG5;
  14169. int SCANCODE_LANG6;
  14170. int SCANCODE_LANG7;
  14171. int SCANCODE_LANG8;
  14172. int SCANCODE_LANG9;
  14173. int SCANCODE_LCTRL;
  14174. int SCANCODE_LEFT;
  14175. int SCANCODE_LEFTBRACKET;
  14176. int SCANCODE_LGUI;
  14177. int SCANCODE_LSHIFT;
  14178. int SCANCODE_M;
  14179. int SCANCODE_MAIL;
  14180. int SCANCODE_MEDIASELECT;
  14181. int SCANCODE_MENU;
  14182. int SCANCODE_MINUS;
  14183. int SCANCODE_MODE;
  14184. int SCANCODE_MUTE;
  14185. int SCANCODE_N;
  14186. int SCANCODE_NONUSBACKSLASH;
  14187. int SCANCODE_NONUSHASH;
  14188. int SCANCODE_NUMLOCKCLEAR;
  14189. int SCANCODE_O;
  14190. int SCANCODE_OPER;
  14191. int SCANCODE_OUT;
  14192. int SCANCODE_P;
  14193. int SCANCODE_PAGEDOWN;
  14194. int SCANCODE_PAGEUP;
  14195. int SCANCODE_PASTE;
  14196. int SCANCODE_PAUSE;
  14197. int SCANCODE_PERIOD;
  14198. int SCANCODE_POWER;
  14199. int SCANCODE_PRINTSCREEN;
  14200. int SCANCODE_PRIOR;
  14201. int SCANCODE_Q;
  14202. int SCANCODE_R;
  14203. int SCANCODE_RALT;
  14204. int SCANCODE_RCTRL;
  14205. int SCANCODE_RETURN;
  14206. int SCANCODE_RETURN2;
  14207. int SCANCODE_RGUI;
  14208. int SCANCODE_RIGHT;
  14209. int SCANCODE_RIGHTBRACKET;
  14210. int SCANCODE_RSHIFT;
  14211. int SCANCODE_S;
  14212. int SCANCODE_SCROLLLOCK;
  14213. int SCANCODE_SELECT;
  14214. int SCANCODE_SEMICOLON;
  14215. int SCANCODE_SEPARATOR;
  14216. int SCANCODE_SHIFT;
  14217. int SCANCODE_SLASH;
  14218. int SCANCODE_SLEEP;
  14219. int SCANCODE_SPACE;
  14220. int SCANCODE_STOP;
  14221. int SCANCODE_SYSREQ;
  14222. int SCANCODE_T;
  14223. int SCANCODE_TAB;
  14224. int SCANCODE_THOUSANDSSEPARATOR;
  14225. int SCANCODE_U;
  14226. int SCANCODE_UNDO;
  14227. int SCANCODE_UNKNOWN;
  14228. int SCANCODE_UP;
  14229. int SCANCODE_V;
  14230. int SCANCODE_VOLUMEDOWN;
  14231. int SCANCODE_VOLUMEUP;
  14232. int SCANCODE_W;
  14233. int SCANCODE_WWW;
  14234. int SCANCODE_X;
  14235. int SCANCODE_Y;
  14236. int SCANCODE_Z;
  14237. uint SCAN_DIRS;
  14238. uint SCAN_FILES;
  14239. uint SCAN_HIDDEN;
  14240. String SOUND_AMBIENT;
  14241. String SOUND_EFFECT;
  14242. String SOUND_MASTER;
  14243. String SOUND_MUSIC;
  14244. String SOUND_VOICE;
  14245. Color TRANSPARENT;
  14246. uint VO_DISABLE_OCCLUSION;
  14247. uint VO_DISABLE_SHADOWS;
  14248. uint VO_LOW_MATERIAL_QUALITY;
  14249. uint VO_NONE;
  14250. Color WHITE;
  14251. Color YELLOW;