AngelScriptAPI.h 366 KB

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