AngelScriptAPI.h 365 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705
  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. float GetFadeTarget(const String&) const;
  343. float GetFadeTime(const String&) const;
  344. bool GetInterceptNetworkUpdate(const String&) const;
  345. uint8 GetLayer(const String&) const;
  346. float GetLength(const String&) const;
  347. bool GetLooped(const String&) const;
  348. bool GetRemoveOnCompletion(const String&);
  349. float GetSpeed(const String&) const;
  350. float GetTime(const String&) const;
  351. float GetWeight(const String&) const;
  352. bool HasSubscribedToEvent(Object, const String&);
  353. bool HasSubscribedToEvent(const String&);
  354. bool IsAtEnd(const String&) const;
  355. bool IsFadingIn(const String&) const;
  356. bool IsFadingOut(const String&) const;
  357. bool IsPlaying(const String&) const;
  358. bool Load(File, bool = false);
  359. bool Load(VectorBuffer&, bool = false);
  360. bool LoadJSON(const JSONValue&, bool = false);
  361. bool LoadXML(const XMLElement&, bool = false);
  362. void MarkNetworkUpdate() const;
  363. bool Play(const String&, uint8, bool, float = 0.0f);
  364. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  365. void Remove();
  366. void RemoveAttributeAnimation(const String&);
  367. void RemoveInstanceDefault();
  368. void RemoveObjectAnimation();
  369. void ResetToDefault();
  370. bool Save(File) const;
  371. bool Save(VectorBuffer&) const;
  372. bool SaveJSON(JSONValue&) const;
  373. bool SaveXML(XMLElement&) const;
  374. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  375. void SetAnimationTime(float);
  376. bool SetAttribute(const String&, const Variant&);
  377. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  378. void SetAttributeAnimationSpeed(const String&, float);
  379. void SetAttributeAnimationTime(const String&, float);
  380. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  381. bool SetAutoFade(const String&, float);
  382. void SetInterceptNetworkUpdate(const String&, bool);
  383. bool SetLayer(const String&, uint8);
  384. bool SetLooped(const String&, bool);
  385. bool SetRemoveOnCompletion(const String&, bool);
  386. bool SetSpeed(const String&, float);
  387. bool SetStartBone(const String&, const String&);
  388. bool SetTime(const String&, float);
  389. bool SetWeight(const String&, float);
  390. void Stop(const String&, float = 0.0f);
  391. void StopAll(float = 0.0f);
  392. void StopLayer(uint8, float = 0.0f);
  393. const String& GetStartBone(const String&) const;
  394. // Properties:
  395. bool animationEnabled;
  396. /* readonly */
  397. Array<Variant> attributeDefaults;
  398. /* readonly */
  399. Array<AttributeInfo> attributeInfos;
  400. Array<Variant> attributes;
  401. /* readonly */
  402. String category;
  403. bool enabled;
  404. /* readonly */
  405. bool enabledEffective;
  406. /* readonly */
  407. uint id;
  408. /* readonly */
  409. Node node;
  410. /* readonly */
  411. uint numAttributes;
  412. ObjectAnimation objectAnimation;
  413. /* readonly */
  414. int refs;
  415. bool temporary;
  416. /* readonly */
  417. StringHash type;
  418. /* readonly */
  419. String typeName;
  420. /* readonly */
  421. int weakRefs;
  422. };
  423. class AnimationKeyFrame
  424. {
  425. // Properties:
  426. Vector3 position;
  427. Quaternion rotation;
  428. Vector3 scale;
  429. float time;
  430. };
  431. class AnimationSet2D
  432. {
  433. // Methods:
  434. String GetAnimation(uint) const;
  435. bool HasSubscribedToEvent(Object, const String&);
  436. bool HasSubscribedToEvent(const String&);
  437. bool Load(File);
  438. bool Load(VectorBuffer&);
  439. bool Save(File) const;
  440. bool Save(VectorBuffer&) const;
  441. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  442. // Properties:
  443. /* readonly */
  444. String category;
  445. /* readonly */
  446. uint memoryUse;
  447. String name;
  448. /* readonly */
  449. uint numAnimations;
  450. /* readonly */
  451. int refs;
  452. /* readonly */
  453. StringHash type;
  454. /* readonly */
  455. String typeName;
  456. /* readonly */
  457. uint useTimer;
  458. /* readonly */
  459. int weakRefs;
  460. };
  461. class AnimationState
  462. {
  463. // Methods:
  464. void AddTime(float);
  465. void AddWeight(float);
  466. void Apply();
  467. float GetBoneWeight(StringHash) const;
  468. float GetBoneWeight(uint) const;
  469. uint GetTrackIndex(StringHash) const;
  470. uint GetTrackIndex(const String&) const;
  471. void SetBoneWeight(StringHash, float, bool = false);
  472. void SetBoneWeight(const String&, float, bool = false);
  473. void SetBoneWeight(uint, float, bool = false);
  474. // Properties:
  475. /* readonly */
  476. Animation animation;
  477. Array<float> boneWeights;
  478. /* readonly */
  479. bool enabled;
  480. uint8 layer;
  481. /* readonly */
  482. float length;
  483. bool looped;
  484. /* readonly */
  485. AnimatedModel model;
  486. /* readonly */
  487. Node node;
  488. /* readonly */
  489. int refs;
  490. Bone startBone;
  491. float time;
  492. /* readonly */
  493. int weakRefs;
  494. float weight;
  495. };
  496. class AnimationTrack
  497. {
  498. // Methods:
  499. void AddKeyFrame(const AnimationKeyFrame&);
  500. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  501. void RemoveAllKeyFrames();
  502. void RemoveKeyFrame(uint);
  503. // Properties:
  504. uint8 channelMask;
  505. Array<AnimationKeyFrame> keyFrames;
  506. String name;
  507. StringHash nameHash;
  508. /* readonly */
  509. uint numKeyFrames;
  510. };
  511. class AnimationTriggerPoint
  512. {
  513. // Properties:
  514. Variant data;
  515. float time;
  516. };
  517. template <class T> class Array
  518. {
  519. // Methods:
  520. void Clear();
  521. void Erase(uint);
  522. int Find(const T&) const;
  523. int Find(uint, const T&) const;
  524. int FindByRef(const T&) const;
  525. int FindByRef(uint, const T&) const;
  526. void Insert(uint, const T&);
  527. void Pop();
  528. void Push(const T&);
  529. void Reserve(uint);
  530. void Resize(uint);
  531. void Reverse();
  532. void Sort();
  533. void Sort(uint, uint);
  534. void SortReverse();
  535. void SortReverse(uint, uint);
  536. // Properties:
  537. /* readonly */
  538. bool empty;
  539. uint length;
  540. };
  541. class AttributeInfo
  542. {
  543. // Properties:
  544. Variant defaultValue;
  545. /* readonly */
  546. Array<String> enumNames;
  547. uint mode;
  548. String name;
  549. VariantType type;
  550. };
  551. class Audio
  552. {
  553. // Methods:
  554. bool HasMasterGain(const String&) const;
  555. bool HasSubscribedToEvent(Object, const String&);
  556. bool HasSubscribedToEvent(const String&);
  557. bool Play();
  558. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  559. void SetMode(int, int, bool, bool = true);
  560. void Stop();
  561. // Properties:
  562. /* readonly */
  563. String category;
  564. /* readonly */
  565. bool initialized;
  566. /* readonly */
  567. bool interpolation;
  568. SoundListener listener;
  569. Array<float> masterGain;
  570. /* readonly */
  571. int mixRate;
  572. /* readonly */
  573. bool playing;
  574. /* readonly */
  575. int refs;
  576. /* readonly */
  577. uint sampleSize;
  578. /* readonly */
  579. bool stereo;
  580. /* readonly */
  581. StringHash type;
  582. /* readonly */
  583. String typeName;
  584. /* readonly */
  585. int weakRefs;
  586. };
  587. class BiasParameters
  588. {
  589. // Properties:
  590. float constantBias;
  591. float slopeScaledBias;
  592. };
  593. class Billboard
  594. {
  595. // Properties:
  596. Color color;
  597. Vector3 direction;
  598. bool enabled;
  599. Vector3 position;
  600. float rotation;
  601. Vector2 size;
  602. Rect uv;
  603. };
  604. class BillboardSet
  605. {
  606. // Methods:
  607. void ApplyAttributes();
  608. void Commit();
  609. void DrawDebugGeometry(DebugRenderer, bool);
  610. Variant GetAttribute(const String&) const;
  611. ValueAnimation GetAttributeAnimation(const String&) const;
  612. float GetAttributeAnimationSpeed(const String&) const;
  613. float GetAttributeAnimationTime(const String&) const;
  614. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  615. Variant GetAttributeDefault(const String&) const;
  616. bool GetInterceptNetworkUpdate(const String&) const;
  617. bool HasSubscribedToEvent(Object, const String&);
  618. bool HasSubscribedToEvent(const String&);
  619. bool IsInView(Camera) const;
  620. bool Load(File, bool = false);
  621. bool Load(VectorBuffer&, bool = false);
  622. bool LoadJSON(const JSONValue&, bool = false);
  623. bool LoadXML(const XMLElement&, bool = false);
  624. void MarkNetworkUpdate() const;
  625. void Remove();
  626. void RemoveAttributeAnimation(const String&);
  627. void RemoveInstanceDefault();
  628. void RemoveObjectAnimation();
  629. void ResetToDefault();
  630. bool Save(File) const;
  631. bool Save(VectorBuffer&) const;
  632. bool SaveJSON(JSONValue&) const;
  633. bool SaveXML(XMLElement&) const;
  634. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  635. void SetAnimationTime(float);
  636. bool SetAttribute(const String&, const Variant&);
  637. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  638. void SetAttributeAnimationSpeed(const String&, float);
  639. void SetAttributeAnimationTime(const String&, float);
  640. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  641. void SetInterceptNetworkUpdate(const String&, bool);
  642. // Properties:
  643. bool animationEnabled;
  644. float animationLodBias;
  645. /* readonly */
  646. Array<Variant> attributeDefaults;
  647. /* readonly */
  648. Array<AttributeInfo> attributeInfos;
  649. Array<Variant> attributes;
  650. /* readonly */
  651. Array<Billboard> billboards;
  652. /* readonly */
  653. BoundingBox boundingBox;
  654. bool castShadows;
  655. /* readonly */
  656. String category;
  657. float drawDistance;
  658. bool enabled;
  659. /* readonly */
  660. bool enabledEffective;
  661. FaceCameraMode faceCameraMode;
  662. /* readonly */
  663. uint id;
  664. /* readonly */
  665. bool inView;
  666. uint lightMask;
  667. float lodBias;
  668. Material material;
  669. uint maxLights;
  670. /* readonly */
  671. Node node;
  672. /* readonly */
  673. uint numAttributes;
  674. uint numBillboards;
  675. ObjectAnimation objectAnimation;
  676. bool occludee;
  677. bool occluder;
  678. /* readonly */
  679. int refs;
  680. bool relative;
  681. bool scaled;
  682. float shadowDistance;
  683. uint shadowMask;
  684. bool sorted;
  685. bool temporary;
  686. /* readonly */
  687. StringHash type;
  688. /* readonly */
  689. String typeName;
  690. uint viewMask;
  691. /* readonly */
  692. int weakRefs;
  693. /* readonly */
  694. BoundingBox worldBoundingBox;
  695. /* readonly */
  696. Zone zone;
  697. uint zoneMask;
  698. };
  699. class Bone
  700. {
  701. // Properties:
  702. bool animated;
  703. BoundingBox boundingBox;
  704. Vector3 initialPosition;
  705. Quaternion initialRotation;
  706. Vector3 initialScale;
  707. String name;
  708. Node node;
  709. float radius;
  710. };
  711. class BorderImage
  712. {
  713. // Methods:
  714. void AddChild(UIElement);
  715. void AddTag(const String&);
  716. void AddTags(const String&, int8 = ';');
  717. void ApplyAttributes();
  718. void BringToFront();
  719. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  720. void DisableLayoutUpdate();
  721. IntVector2 ElementToScreen(const IntVector2&);
  722. void EnableLayoutUpdate();
  723. uint FindChild(UIElement) const;
  724. Variant GetAttribute(const String&) const;
  725. ValueAnimation GetAttributeAnimation(const String&) const;
  726. float GetAttributeAnimationSpeed(const String&) const;
  727. float GetAttributeAnimationTime(const String&) const;
  728. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  729. Variant GetAttributeDefault(const String&) const;
  730. UIElement GetChild(const String&, bool = false) const;
  731. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  732. Array<UIElement> GetChildren(bool = false) const;
  733. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  734. UIElement GetElementEventSender() const;
  735. bool GetInterceptNetworkUpdate(const String&) const;
  736. uint GetNumChildren(bool) const;
  737. bool HasSubscribedToEvent(Object, const String&);
  738. bool HasSubscribedToEvent(const String&);
  739. bool HasTag(const String&) const;
  740. void InsertChild(uint, UIElement);
  741. bool IsInside(IntVector2, bool);
  742. bool IsInsideCombined(IntVector2, bool);
  743. bool Load(File, bool = false);
  744. bool Load(VectorBuffer&, bool = false);
  745. bool LoadChildXML(XMLFile, XMLFile = null);
  746. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  747. bool LoadJSON(const JSONValue&, bool = false);
  748. bool LoadXML(File);
  749. bool LoadXML(VectorBuffer&);
  750. bool LoadXML(XMLFile, XMLFile);
  751. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  752. bool LoadXML(const XMLElement&, bool = false);
  753. void MarkNetworkUpdate() const;
  754. void Remove();
  755. void RemoveAllChildren();
  756. void RemoveAllTags();
  757. void RemoveAttributeAnimation(const String&);
  758. void RemoveChild(UIElement, uint = 0);
  759. void RemoveChild(uint);
  760. void RemoveInstanceDefault();
  761. void RemoveObjectAnimation();
  762. bool RemoveTag(const String&);
  763. void ResetDeepEnabled();
  764. void ResetToDefault();
  765. bool Save(File) const;
  766. bool Save(VectorBuffer&) const;
  767. bool SaveJSON(JSONValue&) const;
  768. bool SaveXML(File, const String& = "\t");
  769. bool SaveXML(VectorBuffer&, const String& = "\t");
  770. bool SaveXML(XMLElement&) const;
  771. IntVector2 ScreenToElement(const IntVector2&);
  772. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  773. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  774. void SetAnimationTime(float);
  775. bool SetAttribute(const String&, const Variant&);
  776. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  777. void SetAttributeAnimationSpeed(const String&, float);
  778. void SetAttributeAnimationTime(const String&, float);
  779. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  780. void SetDeepEnabled(bool);
  781. void SetEnabledRecursive(bool);
  782. void SetFixedHeight(int);
  783. void SetFixedSize(int, int);
  784. void SetFixedWidth(int);
  785. void SetFullImageRect();
  786. void SetHoverOffset(int, int);
  787. void SetInterceptNetworkUpdate(const String&, bool);
  788. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  789. void SetMaxSize(int, int);
  790. void SetMinSize(int, int);
  791. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  792. void SetPosition(int, int);
  793. void SetSize(int, int);
  794. bool SetStyle(const String&, XMLFile = null);
  795. bool SetStyle(const XMLElement&);
  796. bool SetStyleAuto(XMLFile = null);
  797. void UpdateLayout();
  798. const Variant& GetVar(const StringHash&);
  799. // Properties:
  800. bool animationEnabled;
  801. /* readonly */
  802. Array<Variant> attributeDefaults;
  803. /* readonly */
  804. Array<AttributeInfo> attributeInfos;
  805. Array<Variant> attributes;
  806. BlendMode blendMode;
  807. IntRect border;
  808. bool bringToBack;
  809. bool bringToFront;
  810. /* readonly */
  811. String category;
  812. /* readonly */
  813. IntVector2 childOffset;
  814. /* readonly */
  815. Array<UIElement> children;
  816. IntRect clipBorder;
  817. bool clipChildren;
  818. /* writeonly */
  819. Color color;
  820. /* readonly */
  821. bool colorGradient;
  822. Array<Color> colors;
  823. /* readonly */
  824. IntRect combinedScreenRect;
  825. XMLFile defaultStyle;
  826. /* readonly */
  827. float derivedOpacity;
  828. /* readonly */
  829. uint dragButtonCombo;
  830. /* readonly */
  831. int dragButtonCount;
  832. uint dragDropMode;
  833. bool editable;
  834. bool elementEventSender;
  835. bool enabled;
  836. /* readonly */
  837. bool enabledSelf;
  838. /* readonly */
  839. bool fixedHeight;
  840. /* readonly */
  841. bool fixedSize;
  842. /* readonly */
  843. bool fixedWidth;
  844. bool focus;
  845. FocusMode focusMode;
  846. int height;
  847. HorizontalAlignment horizontalAlignment;
  848. IntVector2 hoverOffset;
  849. /* readonly */
  850. bool hovering;
  851. IntRect imageBorder;
  852. IntRect imageRect;
  853. int indent;
  854. int indentSpacing;
  855. /* readonly */
  856. int indentWidth;
  857. bool internal;
  858. IntRect layoutBorder;
  859. Vector2 layoutFlexScale;
  860. LayoutMode layoutMode;
  861. int layoutSpacing;
  862. int maxHeight;
  863. IntVector2 maxSize;
  864. int maxWidth;
  865. int minHeight;
  866. IntVector2 minSize;
  867. int minWidth;
  868. String name;
  869. /* readonly */
  870. uint numAllChildren;
  871. /* readonly */
  872. uint numAttributes;
  873. /* readonly */
  874. uint numChildren;
  875. ObjectAnimation objectAnimation;
  876. float opacity;
  877. UIElement parent;
  878. IntVector2 position;
  879. int priority;
  880. /* readonly */
  881. int refs;
  882. /* readonly */
  883. UIElement root;
  884. /* readonly */
  885. IntVector2 screenPosition;
  886. bool selected;
  887. IntVector2 size;
  888. bool sortChildren;
  889. String style;
  890. /* readonly */
  891. Array<String> tags;
  892. bool temporary;
  893. Texture texture;
  894. bool tiled;
  895. TraversalMode traversalMode;
  896. /* readonly */
  897. StringHash type;
  898. /* readonly */
  899. String typeName;
  900. bool useDerivedOpacity;
  901. /* readonly */
  902. VariantMap vars;
  903. VerticalAlignment verticalAlignment;
  904. bool visible;
  905. /* readonly */
  906. bool visibleEffective;
  907. /* readonly */
  908. int weakRefs;
  909. int width;
  910. };
  911. class BoundingBox
  912. {
  913. // Methods:
  914. void Clear();
  915. void Clip(const BoundingBox&);
  916. void Define(const BoundingBox&);
  917. void Define(const Frustum&);
  918. void Define(const Polyhedron&);
  919. void Define(const Sphere&);
  920. void Define(const Vector3&);
  921. void Define(const Vector3&, const Vector3&);
  922. void Define(float, float);
  923. bool Defined() const;
  924. Intersection IsInside(const BoundingBox&) const;
  925. Intersection IsInside(const Sphere&) const;
  926. Intersection IsInside(const Vector3&) const;
  927. Intersection IsInsideFast(const BoundingBox&) const;
  928. Intersection IsInsideFast(const Sphere&) const;
  929. void Merge(const BoundingBox&);
  930. void Merge(const Frustum&);
  931. void Merge(const Polyhedron&);
  932. void Merge(const Sphere&);
  933. void Merge(const Vector3&);
  934. Rect Projected(const Matrix4&) const;
  935. String ToString() const;
  936. void Transform(const Matrix3&);
  937. void Transform(const Matrix3x4&);
  938. BoundingBox Transformed(const Matrix3&) const;
  939. BoundingBox Transformed(const Matrix3x4&) const;
  940. // Properties:
  941. /* readonly */
  942. Vector3 center;
  943. /* readonly */
  944. Vector3 halfSize;
  945. Vector3 max;
  946. Vector3 min;
  947. /* readonly */
  948. Vector3 size;
  949. };
  950. class Button
  951. {
  952. // Methods:
  953. void AddChild(UIElement);
  954. void AddTag(const String&);
  955. void AddTags(const String&, int8 = ';');
  956. void ApplyAttributes();
  957. void BringToFront();
  958. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  959. void DisableLayoutUpdate();
  960. IntVector2 ElementToScreen(const IntVector2&);
  961. void EnableLayoutUpdate();
  962. uint FindChild(UIElement) const;
  963. Variant GetAttribute(const String&) const;
  964. ValueAnimation GetAttributeAnimation(const String&) const;
  965. float GetAttributeAnimationSpeed(const String&) const;
  966. float GetAttributeAnimationTime(const String&) const;
  967. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  968. Variant GetAttributeDefault(const String&) const;
  969. UIElement GetChild(const String&, bool = false) const;
  970. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  971. Array<UIElement> GetChildren(bool = false) const;
  972. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  973. UIElement GetElementEventSender() const;
  974. bool GetInterceptNetworkUpdate(const String&) const;
  975. uint GetNumChildren(bool) const;
  976. bool HasSubscribedToEvent(Object, const String&);
  977. bool HasSubscribedToEvent(const String&);
  978. bool HasTag(const String&) const;
  979. void InsertChild(uint, UIElement);
  980. bool IsInside(IntVector2, bool);
  981. bool IsInsideCombined(IntVector2, bool);
  982. bool Load(File, bool = false);
  983. bool Load(VectorBuffer&, bool = false);
  984. bool LoadChildXML(XMLFile, XMLFile = null);
  985. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  986. bool LoadJSON(const JSONValue&, bool = false);
  987. bool LoadXML(File);
  988. bool LoadXML(VectorBuffer&);
  989. bool LoadXML(XMLFile, XMLFile);
  990. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  991. bool LoadXML(const XMLElement&, bool = false);
  992. void MarkNetworkUpdate() const;
  993. void Remove();
  994. void RemoveAllChildren();
  995. void RemoveAllTags();
  996. void RemoveAttributeAnimation(const String&);
  997. void RemoveChild(UIElement, uint = 0);
  998. void RemoveChild(uint);
  999. void RemoveInstanceDefault();
  1000. void RemoveObjectAnimation();
  1001. bool RemoveTag(const String&);
  1002. void ResetDeepEnabled();
  1003. void ResetToDefault();
  1004. bool Save(File) const;
  1005. bool Save(VectorBuffer&) const;
  1006. bool SaveJSON(JSONValue&) const;
  1007. bool SaveXML(File, const String& = "\t");
  1008. bool SaveXML(VectorBuffer&, const String& = "\t");
  1009. bool SaveXML(XMLElement&) const;
  1010. IntVector2 ScreenToElement(const IntVector2&);
  1011. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1012. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1013. void SetAnimationTime(float);
  1014. bool SetAttribute(const String&, const Variant&);
  1015. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1016. void SetAttributeAnimationSpeed(const String&, float);
  1017. void SetAttributeAnimationTime(const String&, float);
  1018. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1019. void SetDeepEnabled(bool);
  1020. void SetEnabledRecursive(bool);
  1021. void SetFixedHeight(int);
  1022. void SetFixedSize(int, int);
  1023. void SetFixedWidth(int);
  1024. void SetFullImageRect();
  1025. void SetHoverOffset(int, int);
  1026. void SetInterceptNetworkUpdate(const String&, bool);
  1027. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1028. void SetMaxSize(int, int);
  1029. void SetMinSize(int, int);
  1030. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1031. void SetPosition(int, int);
  1032. void SetPressedChildOffset(int, int);
  1033. void SetPressedOffset(int, int);
  1034. void SetRepeat(float, float);
  1035. void SetSize(int, int);
  1036. bool SetStyle(const String&, XMLFile = null);
  1037. bool SetStyle(const XMLElement&);
  1038. bool SetStyleAuto(XMLFile = null);
  1039. void UpdateLayout();
  1040. const Variant& GetVar(const StringHash&);
  1041. // Properties:
  1042. bool animationEnabled;
  1043. /* readonly */
  1044. Array<Variant> attributeDefaults;
  1045. /* readonly */
  1046. Array<AttributeInfo> attributeInfos;
  1047. Array<Variant> attributes;
  1048. BlendMode blendMode;
  1049. IntRect border;
  1050. bool bringToBack;
  1051. bool bringToFront;
  1052. /* readonly */
  1053. String category;
  1054. /* readonly */
  1055. IntVector2 childOffset;
  1056. /* readonly */
  1057. Array<UIElement> children;
  1058. IntRect clipBorder;
  1059. bool clipChildren;
  1060. /* writeonly */
  1061. Color color;
  1062. /* readonly */
  1063. bool colorGradient;
  1064. Array<Color> colors;
  1065. /* readonly */
  1066. IntRect combinedScreenRect;
  1067. XMLFile defaultStyle;
  1068. /* readonly */
  1069. float derivedOpacity;
  1070. /* readonly */
  1071. uint dragButtonCombo;
  1072. /* readonly */
  1073. int dragButtonCount;
  1074. uint dragDropMode;
  1075. bool editable;
  1076. bool elementEventSender;
  1077. bool enabled;
  1078. /* readonly */
  1079. bool enabledSelf;
  1080. /* readonly */
  1081. bool fixedHeight;
  1082. /* readonly */
  1083. bool fixedSize;
  1084. /* readonly */
  1085. bool fixedWidth;
  1086. bool focus;
  1087. FocusMode focusMode;
  1088. int height;
  1089. HorizontalAlignment horizontalAlignment;
  1090. IntVector2 hoverOffset;
  1091. /* readonly */
  1092. bool hovering;
  1093. IntRect imageBorder;
  1094. IntRect imageRect;
  1095. int indent;
  1096. int indentSpacing;
  1097. /* readonly */
  1098. int indentWidth;
  1099. bool internal;
  1100. IntRect layoutBorder;
  1101. Vector2 layoutFlexScale;
  1102. LayoutMode layoutMode;
  1103. int layoutSpacing;
  1104. int maxHeight;
  1105. IntVector2 maxSize;
  1106. int maxWidth;
  1107. int minHeight;
  1108. IntVector2 minSize;
  1109. int minWidth;
  1110. String name;
  1111. /* readonly */
  1112. uint numAllChildren;
  1113. /* readonly */
  1114. uint numAttributes;
  1115. /* readonly */
  1116. uint numChildren;
  1117. ObjectAnimation objectAnimation;
  1118. float opacity;
  1119. UIElement parent;
  1120. IntVector2 position;
  1121. /* readonly */
  1122. bool pressed;
  1123. IntVector2 pressedChildOffset;
  1124. IntVector2 pressedOffset;
  1125. int priority;
  1126. /* readonly */
  1127. int refs;
  1128. float repeatDelay;
  1129. float repeatRate;
  1130. /* readonly */
  1131. UIElement root;
  1132. /* readonly */
  1133. IntVector2 screenPosition;
  1134. bool selected;
  1135. IntVector2 size;
  1136. bool sortChildren;
  1137. String style;
  1138. /* readonly */
  1139. Array<String> tags;
  1140. bool temporary;
  1141. Texture texture;
  1142. bool tiled;
  1143. TraversalMode traversalMode;
  1144. /* readonly */
  1145. StringHash type;
  1146. /* readonly */
  1147. String typeName;
  1148. bool useDerivedOpacity;
  1149. /* readonly */
  1150. VariantMap vars;
  1151. VerticalAlignment verticalAlignment;
  1152. bool visible;
  1153. /* readonly */
  1154. bool visibleEffective;
  1155. /* readonly */
  1156. int weakRefs;
  1157. int width;
  1158. };
  1159. class Camera
  1160. {
  1161. // Methods:
  1162. void ApplyAttributes();
  1163. void DrawDebugGeometry(DebugRenderer, bool);
  1164. Variant GetAttribute(const String&) const;
  1165. ValueAnimation GetAttributeAnimation(const String&) const;
  1166. float GetAttributeAnimationSpeed(const String&) const;
  1167. float GetAttributeAnimationTime(const String&) const;
  1168. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1169. Variant GetAttributeDefault(const String&) const;
  1170. float GetDistance(const Vector3&) const;
  1171. float GetDistanceSquared(const Vector3&) const;
  1172. bool GetInterceptNetworkUpdate(const String&) const;
  1173. Ray GetScreenRay(float, float) const;
  1174. Frustum GetSplitFrustum(float, float) const;
  1175. bool HasSubscribedToEvent(Object, const String&);
  1176. bool HasSubscribedToEvent(const String&);
  1177. bool Load(File, bool = false);
  1178. bool Load(VectorBuffer&, bool = false);
  1179. bool LoadJSON(const JSONValue&, bool = false);
  1180. bool LoadXML(const XMLElement&, bool = false);
  1181. void MarkNetworkUpdate() const;
  1182. void Remove();
  1183. void RemoveAttributeAnimation(const String&);
  1184. void RemoveInstanceDefault();
  1185. void RemoveObjectAnimation();
  1186. void ResetToDefault();
  1187. bool Save(File) const;
  1188. bool Save(VectorBuffer&) const;
  1189. bool SaveJSON(JSONValue&) const;
  1190. bool SaveXML(XMLElement&) const;
  1191. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1192. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1193. void SetAnimationTime(float);
  1194. bool SetAttribute(const String&, const Variant&);
  1195. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1196. void SetAttributeAnimationSpeed(const String&, float);
  1197. void SetAttributeAnimationTime(const String&, float);
  1198. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1199. void SetInterceptNetworkUpdate(const String&, bool);
  1200. void SetOrthoSize(const Vector2&);
  1201. Vector2 WorldToScreenPoint(const Vector3&) const;
  1202. // Properties:
  1203. bool animationEnabled;
  1204. float aspectRatio;
  1205. /* readonly */
  1206. Array<Variant> attributeDefaults;
  1207. /* readonly */
  1208. Array<AttributeInfo> attributeInfos;
  1209. Array<Variant> attributes;
  1210. bool autoAspectRatio;
  1211. /* readonly */
  1212. String category;
  1213. Plane clipPlane;
  1214. /* readonly */
  1215. Matrix3x4 effectiveWorldTransform;
  1216. bool enabled;
  1217. /* readonly */
  1218. bool enabledEffective;
  1219. float farClip;
  1220. FillMode fillMode;
  1221. float fov;
  1222. /* readonly */
  1223. Frustum frustum;
  1224. /* readonly */
  1225. float halfViewSize;
  1226. /* readonly */
  1227. uint id;
  1228. float lodBias;
  1229. float nearClip;
  1230. /* readonly */
  1231. Node node;
  1232. /* readonly */
  1233. uint numAttributes;
  1234. ObjectAnimation objectAnimation;
  1235. float orthoSize;
  1236. bool orthographic;
  1237. /* readonly */
  1238. Matrix4 projection;
  1239. Vector2 projectionOffset;
  1240. Plane reflectionPlane;
  1241. /* readonly */
  1242. int refs;
  1243. bool temporary;
  1244. /* readonly */
  1245. StringHash type;
  1246. /* readonly */
  1247. String typeName;
  1248. bool useClipping;
  1249. bool useReflection;
  1250. /* readonly */
  1251. Matrix3x4 view;
  1252. uint viewMask;
  1253. uint viewOverrideFlags;
  1254. /* readonly */
  1255. Frustum viewSpaceFrustum;
  1256. /* readonly */
  1257. int weakRefs;
  1258. float zoom;
  1259. };
  1260. class CascadeParameters
  1261. {
  1262. // Properties:
  1263. float biasAutoAdjust;
  1264. float fadeStart;
  1265. float split1;
  1266. float split2;
  1267. float split3;
  1268. float split4;
  1269. };
  1270. class CheckBox
  1271. {
  1272. // Methods:
  1273. void AddChild(UIElement);
  1274. void AddTag(const String&);
  1275. void AddTags(const String&, int8 = ';');
  1276. void ApplyAttributes();
  1277. void BringToFront();
  1278. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1279. void DisableLayoutUpdate();
  1280. IntVector2 ElementToScreen(const IntVector2&);
  1281. void EnableLayoutUpdate();
  1282. uint FindChild(UIElement) const;
  1283. Variant GetAttribute(const String&) const;
  1284. ValueAnimation GetAttributeAnimation(const String&) const;
  1285. float GetAttributeAnimationSpeed(const String&) const;
  1286. float GetAttributeAnimationTime(const String&) const;
  1287. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1288. Variant GetAttributeDefault(const String&) const;
  1289. UIElement GetChild(const String&, bool = false) const;
  1290. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1291. Array<UIElement> GetChildren(bool = false) const;
  1292. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1293. UIElement GetElementEventSender() const;
  1294. bool GetInterceptNetworkUpdate(const String&) const;
  1295. uint GetNumChildren(bool) const;
  1296. bool HasSubscribedToEvent(Object, const String&);
  1297. bool HasSubscribedToEvent(const String&);
  1298. bool HasTag(const String&) const;
  1299. void InsertChild(uint, UIElement);
  1300. bool IsInside(IntVector2, bool);
  1301. bool IsInsideCombined(IntVector2, bool);
  1302. bool Load(File, bool = false);
  1303. bool Load(VectorBuffer&, bool = false);
  1304. bool LoadChildXML(XMLFile, XMLFile = null);
  1305. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1306. bool LoadJSON(const JSONValue&, bool = false);
  1307. bool LoadXML(File);
  1308. bool LoadXML(VectorBuffer&);
  1309. bool LoadXML(XMLFile, XMLFile);
  1310. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1311. bool LoadXML(const XMLElement&, bool = false);
  1312. void MarkNetworkUpdate() const;
  1313. void Remove();
  1314. void RemoveAllChildren();
  1315. void RemoveAllTags();
  1316. void RemoveAttributeAnimation(const String&);
  1317. void RemoveChild(UIElement, uint = 0);
  1318. void RemoveChild(uint);
  1319. void RemoveInstanceDefault();
  1320. void RemoveObjectAnimation();
  1321. bool RemoveTag(const String&);
  1322. void ResetDeepEnabled();
  1323. void ResetToDefault();
  1324. bool Save(File) const;
  1325. bool Save(VectorBuffer&) const;
  1326. bool SaveJSON(JSONValue&) const;
  1327. bool SaveXML(File, const String& = "\t");
  1328. bool SaveXML(VectorBuffer&, const String& = "\t");
  1329. bool SaveXML(XMLElement&) const;
  1330. IntVector2 ScreenToElement(const IntVector2&);
  1331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1332. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1333. void SetAnimationTime(float);
  1334. bool SetAttribute(const String&, const Variant&);
  1335. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1336. void SetAttributeAnimationSpeed(const String&, float);
  1337. void SetAttributeAnimationTime(const String&, float);
  1338. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1339. void SetCheckedOffset(int, int);
  1340. void SetDeepEnabled(bool);
  1341. void SetEnabledRecursive(bool);
  1342. void SetFixedHeight(int);
  1343. void SetFixedSize(int, int);
  1344. void SetFixedWidth(int);
  1345. void SetFullImageRect();
  1346. void SetHoverOffset(int, int);
  1347. void SetInterceptNetworkUpdate(const String&, bool);
  1348. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1349. void SetMaxSize(int, int);
  1350. void SetMinSize(int, int);
  1351. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1352. void SetPosition(int, int);
  1353. void SetSize(int, int);
  1354. bool SetStyle(const String&, XMLFile = null);
  1355. bool SetStyle(const XMLElement&);
  1356. bool SetStyleAuto(XMLFile = null);
  1357. void UpdateLayout();
  1358. const Variant& GetVar(const StringHash&);
  1359. // Properties:
  1360. bool animationEnabled;
  1361. /* readonly */
  1362. Array<Variant> attributeDefaults;
  1363. /* readonly */
  1364. Array<AttributeInfo> attributeInfos;
  1365. Array<Variant> attributes;
  1366. BlendMode blendMode;
  1367. IntRect border;
  1368. bool bringToBack;
  1369. bool bringToFront;
  1370. /* readonly */
  1371. String category;
  1372. bool checked;
  1373. IntVector2 checkedOffset;
  1374. /* readonly */
  1375. IntVector2 childOffset;
  1376. /* readonly */
  1377. Array<UIElement> children;
  1378. IntRect clipBorder;
  1379. bool clipChildren;
  1380. /* writeonly */
  1381. Color color;
  1382. /* readonly */
  1383. bool colorGradient;
  1384. Array<Color> colors;
  1385. /* readonly */
  1386. IntRect combinedScreenRect;
  1387. XMLFile defaultStyle;
  1388. /* readonly */
  1389. float derivedOpacity;
  1390. /* readonly */
  1391. uint dragButtonCombo;
  1392. /* readonly */
  1393. int dragButtonCount;
  1394. uint dragDropMode;
  1395. bool editable;
  1396. bool elementEventSender;
  1397. bool enabled;
  1398. /* readonly */
  1399. bool enabledSelf;
  1400. /* readonly */
  1401. bool fixedHeight;
  1402. /* readonly */
  1403. bool fixedSize;
  1404. /* readonly */
  1405. bool fixedWidth;
  1406. bool focus;
  1407. FocusMode focusMode;
  1408. int height;
  1409. HorizontalAlignment horizontalAlignment;
  1410. IntVector2 hoverOffset;
  1411. /* readonly */
  1412. bool hovering;
  1413. IntRect imageBorder;
  1414. IntRect imageRect;
  1415. int indent;
  1416. int indentSpacing;
  1417. /* readonly */
  1418. int indentWidth;
  1419. bool internal;
  1420. IntRect layoutBorder;
  1421. Vector2 layoutFlexScale;
  1422. LayoutMode layoutMode;
  1423. int layoutSpacing;
  1424. int maxHeight;
  1425. IntVector2 maxSize;
  1426. int maxWidth;
  1427. int minHeight;
  1428. IntVector2 minSize;
  1429. int minWidth;
  1430. String name;
  1431. /* readonly */
  1432. uint numAllChildren;
  1433. /* readonly */
  1434. uint numAttributes;
  1435. /* readonly */
  1436. uint numChildren;
  1437. ObjectAnimation objectAnimation;
  1438. float opacity;
  1439. UIElement parent;
  1440. IntVector2 position;
  1441. int priority;
  1442. /* readonly */
  1443. int refs;
  1444. /* readonly */
  1445. UIElement root;
  1446. /* readonly */
  1447. IntVector2 screenPosition;
  1448. bool selected;
  1449. IntVector2 size;
  1450. bool sortChildren;
  1451. String style;
  1452. /* readonly */
  1453. Array<String> tags;
  1454. bool temporary;
  1455. Texture texture;
  1456. bool tiled;
  1457. TraversalMode traversalMode;
  1458. /* readonly */
  1459. StringHash type;
  1460. /* readonly */
  1461. String typeName;
  1462. bool useDerivedOpacity;
  1463. /* readonly */
  1464. VariantMap vars;
  1465. VerticalAlignment verticalAlignment;
  1466. bool visible;
  1467. /* readonly */
  1468. bool visibleEffective;
  1469. /* readonly */
  1470. int weakRefs;
  1471. int width;
  1472. };
  1473. class CollisionBox2D
  1474. {
  1475. // Methods:
  1476. void ApplyAttributes();
  1477. void DrawDebugGeometry(DebugRenderer, bool);
  1478. Variant GetAttribute(const String&) const;
  1479. ValueAnimation GetAttributeAnimation(const String&) const;
  1480. float GetAttributeAnimationSpeed(const String&) const;
  1481. float GetAttributeAnimationTime(const String&) const;
  1482. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1483. Variant GetAttributeDefault(const String&) const;
  1484. bool GetInterceptNetworkUpdate(const String&) const;
  1485. bool HasSubscribedToEvent(Object, const String&);
  1486. bool HasSubscribedToEvent(const String&);
  1487. bool Load(File, bool = false);
  1488. bool Load(VectorBuffer&, bool = false);
  1489. bool LoadJSON(const JSONValue&, bool = false);
  1490. bool LoadXML(const XMLElement&, bool = false);
  1491. void MarkNetworkUpdate() const;
  1492. void Remove();
  1493. void RemoveAttributeAnimation(const String&);
  1494. void RemoveInstanceDefault();
  1495. void RemoveObjectAnimation();
  1496. void ResetToDefault();
  1497. bool Save(File) const;
  1498. bool Save(VectorBuffer&) const;
  1499. bool SaveJSON(JSONValue&) const;
  1500. bool SaveXML(XMLElement&) const;
  1501. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1502. void SetAnimationTime(float);
  1503. bool SetAttribute(const String&, const Variant&);
  1504. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1505. void SetAttributeAnimationSpeed(const String&, float);
  1506. void SetAttributeAnimationTime(const String&, float);
  1507. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1508. void SetCenter(float, float);
  1509. void SetInterceptNetworkUpdate(const String&, bool);
  1510. void SetSize(float, float);
  1511. // Properties:
  1512. float angle;
  1513. bool animationEnabled;
  1514. /* readonly */
  1515. Array<Variant> attributeDefaults;
  1516. /* readonly */
  1517. Array<AttributeInfo> attributeInfos;
  1518. Array<Variant> attributes;
  1519. /* readonly */
  1520. String category;
  1521. int categoryBits;
  1522. Vector2 center;
  1523. float density;
  1524. bool enabled;
  1525. /* readonly */
  1526. bool enabledEffective;
  1527. float friction;
  1528. int groupIndex;
  1529. /* readonly */
  1530. uint id;
  1531. /* readonly */
  1532. float inertia;
  1533. int maskBits;
  1534. /* readonly */
  1535. float mass;
  1536. /* readonly */
  1537. Vector2 massCenter;
  1538. /* readonly */
  1539. Node node;
  1540. /* readonly */
  1541. uint numAttributes;
  1542. ObjectAnimation objectAnimation;
  1543. /* readonly */
  1544. int refs;
  1545. float restitution;
  1546. Vector2 size;
  1547. bool temporary;
  1548. bool trigger;
  1549. /* readonly */
  1550. StringHash type;
  1551. /* readonly */
  1552. String typeName;
  1553. /* readonly */
  1554. int weakRefs;
  1555. };
  1556. class CollisionChain2D
  1557. {
  1558. // Methods:
  1559. void ApplyAttributes();
  1560. void DrawDebugGeometry(DebugRenderer, bool);
  1561. Variant GetAttribute(const String&) const;
  1562. ValueAnimation GetAttributeAnimation(const String&) const;
  1563. float GetAttributeAnimationSpeed(const String&) const;
  1564. float GetAttributeAnimationTime(const String&) const;
  1565. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1566. Variant GetAttributeDefault(const String&) const;
  1567. bool GetInterceptNetworkUpdate(const String&) const;
  1568. Array<Vector2> GetVertices() const;
  1569. bool HasSubscribedToEvent(Object, const String&);
  1570. bool HasSubscribedToEvent(const String&);
  1571. bool Load(File, bool = false);
  1572. bool Load(VectorBuffer&, bool = false);
  1573. bool LoadJSON(const JSONValue&, bool = false);
  1574. bool LoadXML(const XMLElement&, bool = false);
  1575. void MarkNetworkUpdate() const;
  1576. void Remove();
  1577. void RemoveAttributeAnimation(const String&);
  1578. void RemoveInstanceDefault();
  1579. void RemoveObjectAnimation();
  1580. void ResetToDefault();
  1581. bool Save(File) const;
  1582. bool Save(VectorBuffer&) const;
  1583. bool SaveJSON(JSONValue&) const;
  1584. bool SaveXML(XMLElement&) const;
  1585. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1586. void SetAnimationTime(float);
  1587. bool SetAttribute(const String&, const Variant&);
  1588. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1589. void SetAttributeAnimationSpeed(const String&, float);
  1590. void SetAttributeAnimationTime(const String&, float);
  1591. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1592. void SetInterceptNetworkUpdate(const String&, bool);
  1593. void SetVertex(uint, const Vector2&);
  1594. void SetVertices(Array<Vector2>);
  1595. const Vector2& GetVertex(uint) const;
  1596. // Properties:
  1597. bool animationEnabled;
  1598. /* readonly */
  1599. Array<Variant> attributeDefaults;
  1600. /* readonly */
  1601. Array<AttributeInfo> attributeInfos;
  1602. Array<Variant> attributes;
  1603. /* readonly */
  1604. String category;
  1605. int categoryBits;
  1606. float density;
  1607. bool enabled;
  1608. /* readonly */
  1609. bool enabledEffective;
  1610. float friction;
  1611. int groupIndex;
  1612. /* readonly */
  1613. uint id;
  1614. /* readonly */
  1615. float inertia;
  1616. bool loop;
  1617. int maskBits;
  1618. /* readonly */
  1619. float mass;
  1620. /* readonly */
  1621. Vector2 massCenter;
  1622. /* readonly */
  1623. Node node;
  1624. /* readonly */
  1625. uint numAttributes;
  1626. ObjectAnimation objectAnimation;
  1627. /* readonly */
  1628. int refs;
  1629. float restitution;
  1630. bool temporary;
  1631. bool trigger;
  1632. /* readonly */
  1633. StringHash type;
  1634. /* readonly */
  1635. String typeName;
  1636. uint vertexCount;
  1637. /* readonly */
  1638. int weakRefs;
  1639. };
  1640. class CollisionCircle2D
  1641. {
  1642. // Methods:
  1643. void ApplyAttributes();
  1644. void DrawDebugGeometry(DebugRenderer, bool);
  1645. Variant GetAttribute(const String&) const;
  1646. ValueAnimation GetAttributeAnimation(const String&) const;
  1647. float GetAttributeAnimationSpeed(const String&) const;
  1648. float GetAttributeAnimationTime(const String&) const;
  1649. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1650. Variant GetAttributeDefault(const String&) const;
  1651. bool GetInterceptNetworkUpdate(const String&) const;
  1652. bool HasSubscribedToEvent(Object, const String&);
  1653. bool HasSubscribedToEvent(const String&);
  1654. bool Load(File, bool = false);
  1655. bool Load(VectorBuffer&, bool = false);
  1656. bool LoadJSON(const JSONValue&, bool = false);
  1657. bool LoadXML(const XMLElement&, bool = false);
  1658. void MarkNetworkUpdate() const;
  1659. void Remove();
  1660. void RemoveAttributeAnimation(const String&);
  1661. void RemoveInstanceDefault();
  1662. void RemoveObjectAnimation();
  1663. void ResetToDefault();
  1664. bool Save(File) const;
  1665. bool Save(VectorBuffer&) const;
  1666. bool SaveJSON(JSONValue&) const;
  1667. bool SaveXML(XMLElement&) const;
  1668. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1669. void SetAnimationTime(float);
  1670. bool SetAttribute(const String&, const Variant&);
  1671. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1672. void SetAttributeAnimationSpeed(const String&, float);
  1673. void SetAttributeAnimationTime(const String&, float);
  1674. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1675. void SetCenter(float, float);
  1676. void SetInterceptNetworkUpdate(const String&, bool);
  1677. // Properties:
  1678. bool animationEnabled;
  1679. /* readonly */
  1680. Array<Variant> attributeDefaults;
  1681. /* readonly */
  1682. Array<AttributeInfo> attributeInfos;
  1683. Array<Variant> attributes;
  1684. /* readonly */
  1685. String category;
  1686. int categoryBits;
  1687. Vector2 center;
  1688. float density;
  1689. bool enabled;
  1690. /* readonly */
  1691. bool enabledEffective;
  1692. float friction;
  1693. int groupIndex;
  1694. /* readonly */
  1695. uint id;
  1696. /* readonly */
  1697. float inertia;
  1698. int maskBits;
  1699. /* readonly */
  1700. float mass;
  1701. /* readonly */
  1702. Vector2 massCenter;
  1703. /* readonly */
  1704. Node node;
  1705. /* readonly */
  1706. uint numAttributes;
  1707. ObjectAnimation objectAnimation;
  1708. float radius;
  1709. /* readonly */
  1710. int refs;
  1711. float restitution;
  1712. bool temporary;
  1713. bool trigger;
  1714. /* readonly */
  1715. StringHash type;
  1716. /* readonly */
  1717. String typeName;
  1718. /* readonly */
  1719. int weakRefs;
  1720. };
  1721. class CollisionEdge2D
  1722. {
  1723. // Methods:
  1724. void ApplyAttributes();
  1725. void DrawDebugGeometry(DebugRenderer, bool);
  1726. Variant GetAttribute(const String&) const;
  1727. ValueAnimation GetAttributeAnimation(const String&) const;
  1728. float GetAttributeAnimationSpeed(const String&) const;
  1729. float GetAttributeAnimationTime(const String&) const;
  1730. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1731. Variant GetAttributeDefault(const String&) const;
  1732. bool GetInterceptNetworkUpdate(const String&) const;
  1733. bool HasSubscribedToEvent(Object, const String&);
  1734. bool HasSubscribedToEvent(const String&);
  1735. bool Load(File, bool = false);
  1736. bool Load(VectorBuffer&, bool = false);
  1737. bool LoadJSON(const JSONValue&, bool = false);
  1738. bool LoadXML(const XMLElement&, bool = false);
  1739. void MarkNetworkUpdate() const;
  1740. void Remove();
  1741. void RemoveAttributeAnimation(const String&);
  1742. void RemoveInstanceDefault();
  1743. void RemoveObjectAnimation();
  1744. void ResetToDefault();
  1745. bool Save(File) const;
  1746. bool Save(VectorBuffer&) const;
  1747. bool SaveJSON(JSONValue&) const;
  1748. bool SaveXML(XMLElement&) const;
  1749. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1750. void SetAnimationTime(float);
  1751. bool SetAttribute(const String&, const Variant&);
  1752. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1753. void SetAttributeAnimationSpeed(const String&, float);
  1754. void SetAttributeAnimationTime(const String&, float);
  1755. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1756. void SetInterceptNetworkUpdate(const String&, bool);
  1757. void SetVertices(const Vector2&, const Vector2&);
  1758. // Properties:
  1759. bool animationEnabled;
  1760. /* readonly */
  1761. Array<Variant> attributeDefaults;
  1762. /* readonly */
  1763. Array<AttributeInfo> attributeInfos;
  1764. Array<Variant> attributes;
  1765. /* readonly */
  1766. String category;
  1767. int categoryBits;
  1768. float density;
  1769. bool enabled;
  1770. /* readonly */
  1771. bool enabledEffective;
  1772. float friction;
  1773. int groupIndex;
  1774. /* readonly */
  1775. uint id;
  1776. /* readonly */
  1777. float inertia;
  1778. int maskBits;
  1779. /* readonly */
  1780. float mass;
  1781. /* readonly */
  1782. Vector2 massCenter;
  1783. /* readonly */
  1784. Node node;
  1785. /* readonly */
  1786. uint numAttributes;
  1787. ObjectAnimation objectAnimation;
  1788. /* readonly */
  1789. int refs;
  1790. float restitution;
  1791. bool temporary;
  1792. bool trigger;
  1793. /* readonly */
  1794. StringHash type;
  1795. /* readonly */
  1796. String typeName;
  1797. Vector2 vertex1;
  1798. Vector2 vertex2;
  1799. /* readonly */
  1800. int weakRefs;
  1801. };
  1802. class CollisionPolygon2D
  1803. {
  1804. // Methods:
  1805. void ApplyAttributes();
  1806. void DrawDebugGeometry(DebugRenderer, bool);
  1807. Variant GetAttribute(const String&) const;
  1808. ValueAnimation GetAttributeAnimation(const String&) const;
  1809. float GetAttributeAnimationSpeed(const String&) const;
  1810. float GetAttributeAnimationTime(const String&) const;
  1811. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1812. Variant GetAttributeDefault(const String&) const;
  1813. bool GetInterceptNetworkUpdate(const String&) const;
  1814. Array<Vector2> GetVertices() const;
  1815. bool HasSubscribedToEvent(Object, const String&);
  1816. bool HasSubscribedToEvent(const String&);
  1817. bool Load(File, bool = false);
  1818. bool Load(VectorBuffer&, bool = false);
  1819. bool LoadJSON(const JSONValue&, bool = false);
  1820. bool LoadXML(const XMLElement&, bool = false);
  1821. void MarkNetworkUpdate() const;
  1822. void Remove();
  1823. void RemoveAttributeAnimation(const String&);
  1824. void RemoveInstanceDefault();
  1825. void RemoveObjectAnimation();
  1826. void ResetToDefault();
  1827. bool Save(File) const;
  1828. bool Save(VectorBuffer&) const;
  1829. bool SaveJSON(JSONValue&) const;
  1830. bool SaveXML(XMLElement&) const;
  1831. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1832. void SetAnimationTime(float);
  1833. bool SetAttribute(const String&, const Variant&);
  1834. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1835. void SetAttributeAnimationSpeed(const String&, float);
  1836. void SetAttributeAnimationTime(const String&, float);
  1837. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1838. void SetInterceptNetworkUpdate(const String&, bool);
  1839. void SetVertex(uint, const Vector2&);
  1840. void SetVertices(Array<Vector2>);
  1841. const Vector2& GetVertex(uint) const;
  1842. // Properties:
  1843. bool animationEnabled;
  1844. /* readonly */
  1845. Array<Variant> attributeDefaults;
  1846. /* readonly */
  1847. Array<AttributeInfo> attributeInfos;
  1848. Array<Variant> attributes;
  1849. /* readonly */
  1850. String category;
  1851. int categoryBits;
  1852. float density;
  1853. bool enabled;
  1854. /* readonly */
  1855. bool enabledEffective;
  1856. float friction;
  1857. int groupIndex;
  1858. /* readonly */
  1859. uint id;
  1860. /* readonly */
  1861. float inertia;
  1862. int maskBits;
  1863. /* readonly */
  1864. float mass;
  1865. /* readonly */
  1866. Vector2 massCenter;
  1867. /* readonly */
  1868. Node node;
  1869. /* readonly */
  1870. uint numAttributes;
  1871. ObjectAnimation objectAnimation;
  1872. /* readonly */
  1873. int refs;
  1874. float restitution;
  1875. bool temporary;
  1876. bool trigger;
  1877. /* readonly */
  1878. StringHash type;
  1879. /* readonly */
  1880. String typeName;
  1881. uint vertexCount;
  1882. /* readonly */
  1883. int weakRefs;
  1884. };
  1885. class CollisionShape
  1886. {
  1887. // Methods:
  1888. void ApplyAttributes();
  1889. void DrawDebugGeometry(DebugRenderer, bool);
  1890. Variant GetAttribute(const String&) const;
  1891. ValueAnimation GetAttributeAnimation(const String&) const;
  1892. float GetAttributeAnimationSpeed(const String&) const;
  1893. float GetAttributeAnimationTime(const String&) const;
  1894. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1895. Variant GetAttributeDefault(const String&) const;
  1896. bool GetInterceptNetworkUpdate(const String&) const;
  1897. bool HasSubscribedToEvent(Object, const String&);
  1898. bool HasSubscribedToEvent(const String&);
  1899. bool Load(File, bool = false);
  1900. bool Load(VectorBuffer&, bool = false);
  1901. bool LoadJSON(const JSONValue&, bool = false);
  1902. bool LoadXML(const XMLElement&, bool = false);
  1903. void MarkNetworkUpdate() const;
  1904. void Remove();
  1905. void RemoveAttributeAnimation(const String&);
  1906. void RemoveInstanceDefault();
  1907. void RemoveObjectAnimation();
  1908. void ResetToDefault();
  1909. bool Save(File) const;
  1910. bool Save(VectorBuffer&) const;
  1911. bool SaveJSON(JSONValue&) const;
  1912. bool SaveXML(XMLElement&) const;
  1913. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1914. void SetAnimationTime(float);
  1915. bool SetAttribute(const String&, const Variant&);
  1916. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1917. void SetAttributeAnimationSpeed(const String&, float);
  1918. void SetAttributeAnimationTime(const String&, float);
  1919. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1920. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1921. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1922. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1923. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1924. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1925. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1926. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1927. void SetInterceptNetworkUpdate(const String&, bool);
  1928. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1929. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1930. void SetTerrain(uint = 0);
  1931. void SetTransform(const Vector3&, const Quaternion&);
  1932. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1933. // Properties:
  1934. bool animationEnabled;
  1935. /* readonly */
  1936. Array<Variant> attributeDefaults;
  1937. /* readonly */
  1938. Array<AttributeInfo> attributeInfos;
  1939. Array<Variant> attributes;
  1940. /* readonly */
  1941. String category;
  1942. bool enabled;
  1943. /* readonly */
  1944. bool enabledEffective;
  1945. /* readonly */
  1946. uint id;
  1947. uint lodLevel;
  1948. float margin;
  1949. Model model;
  1950. /* readonly */
  1951. Node node;
  1952. /* readonly */
  1953. uint numAttributes;
  1954. ObjectAnimation objectAnimation;
  1955. Vector3 position;
  1956. /* readonly */
  1957. int refs;
  1958. Quaternion rotation;
  1959. ShapeType shapeType;
  1960. Vector3 size;
  1961. bool temporary;
  1962. /* readonly */
  1963. StringHash type;
  1964. /* readonly */
  1965. String typeName;
  1966. /* readonly */
  1967. int weakRefs;
  1968. /* readonly */
  1969. BoundingBox worldBoundingBox;
  1970. };
  1971. class CollisionShape2D
  1972. {
  1973. // Methods:
  1974. void ApplyAttributes();
  1975. void DrawDebugGeometry(DebugRenderer, bool);
  1976. Variant GetAttribute(const String&) const;
  1977. ValueAnimation GetAttributeAnimation(const String&) const;
  1978. float GetAttributeAnimationSpeed(const String&) const;
  1979. float GetAttributeAnimationTime(const String&) const;
  1980. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1981. Variant GetAttributeDefault(const String&) const;
  1982. bool GetInterceptNetworkUpdate(const String&) const;
  1983. bool HasSubscribedToEvent(Object, const String&);
  1984. bool HasSubscribedToEvent(const String&);
  1985. bool Load(File, bool = false);
  1986. bool Load(VectorBuffer&, bool = false);
  1987. bool LoadJSON(const JSONValue&, bool = false);
  1988. bool LoadXML(const XMLElement&, bool = false);
  1989. void MarkNetworkUpdate() const;
  1990. void Remove();
  1991. void RemoveAttributeAnimation(const String&);
  1992. void RemoveInstanceDefault();
  1993. void RemoveObjectAnimation();
  1994. void ResetToDefault();
  1995. bool Save(File) const;
  1996. bool Save(VectorBuffer&) const;
  1997. bool SaveJSON(JSONValue&) const;
  1998. bool SaveXML(XMLElement&) const;
  1999. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2000. void SetAnimationTime(float);
  2001. bool SetAttribute(const String&, const Variant&);
  2002. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2003. void SetAttributeAnimationSpeed(const String&, float);
  2004. void SetAttributeAnimationTime(const String&, float);
  2005. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2006. void SetInterceptNetworkUpdate(const String&, bool);
  2007. // Properties:
  2008. bool animationEnabled;
  2009. /* readonly */
  2010. Array<Variant> attributeDefaults;
  2011. /* readonly */
  2012. Array<AttributeInfo> attributeInfos;
  2013. Array<Variant> attributes;
  2014. /* readonly */
  2015. String category;
  2016. int categoryBits;
  2017. float density;
  2018. bool enabled;
  2019. /* readonly */
  2020. bool enabledEffective;
  2021. float friction;
  2022. int groupIndex;
  2023. /* readonly */
  2024. uint id;
  2025. /* readonly */
  2026. float inertia;
  2027. int maskBits;
  2028. /* readonly */
  2029. float mass;
  2030. /* readonly */
  2031. Vector2 massCenter;
  2032. /* readonly */
  2033. Node node;
  2034. /* readonly */
  2035. uint numAttributes;
  2036. ObjectAnimation objectAnimation;
  2037. /* readonly */
  2038. int refs;
  2039. float restitution;
  2040. bool temporary;
  2041. bool trigger;
  2042. /* readonly */
  2043. StringHash type;
  2044. /* readonly */
  2045. String typeName;
  2046. /* readonly */
  2047. int weakRefs;
  2048. };
  2049. class Color
  2050. {
  2051. // Methods:
  2052. Color Abs() const;
  2053. float Average() const;
  2054. float Chroma() const;
  2055. void Clip(bool);
  2056. bool Equals() const;
  2057. void FromHSL(float, float, float, float);
  2058. void FromHSV(float, float, float, float);
  2059. float Hue() const;
  2060. void Invert(bool);
  2061. Color Lerp(const Color&, float) const;
  2062. float Lightness() const;
  2063. float Luma() const;
  2064. float MaxRGB() const;
  2065. float MinRGB() const;
  2066. float Range() const;
  2067. float SaturationHSL() const;
  2068. float SaturationHSV() const;
  2069. float SumRGB() const;
  2070. Vector3 ToHSL() const;
  2071. Vector3 ToHSV() const;
  2072. String ToString() const;
  2073. uint ToUInt() const;
  2074. float Value() const;
  2075. // Properties:
  2076. float a;
  2077. float b;
  2078. /* readonly */
  2079. Array<float> data;
  2080. float g;
  2081. float r;
  2082. /* readonly */
  2083. Vector3 rgb;
  2084. /* readonly */
  2085. Vector4 rgba;
  2086. };
  2087. class ColorFrame
  2088. {
  2089. // Properties:
  2090. Color color;
  2091. float time;
  2092. };
  2093. class Component
  2094. {
  2095. // Methods:
  2096. void ApplyAttributes();
  2097. void DrawDebugGeometry(DebugRenderer, bool);
  2098. Variant GetAttribute(const String&) const;
  2099. ValueAnimation GetAttributeAnimation(const String&) const;
  2100. float GetAttributeAnimationSpeed(const String&) const;
  2101. float GetAttributeAnimationTime(const String&) const;
  2102. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2103. Variant GetAttributeDefault(const String&) const;
  2104. bool GetInterceptNetworkUpdate(const String&) const;
  2105. bool HasSubscribedToEvent(Object, const String&);
  2106. bool HasSubscribedToEvent(const String&);
  2107. bool Load(File, bool = false);
  2108. bool Load(VectorBuffer&, bool = false);
  2109. bool LoadJSON(const JSONValue&, bool = false);
  2110. bool LoadXML(const XMLElement&, bool = false);
  2111. void MarkNetworkUpdate() const;
  2112. void Remove();
  2113. void RemoveAttributeAnimation(const String&);
  2114. void RemoveInstanceDefault();
  2115. void RemoveObjectAnimation();
  2116. void ResetToDefault();
  2117. bool Save(File) const;
  2118. bool Save(VectorBuffer&) const;
  2119. bool SaveJSON(JSONValue&) const;
  2120. bool SaveXML(XMLElement&) const;
  2121. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2122. void SetAnimationTime(float);
  2123. bool SetAttribute(const String&, const Variant&);
  2124. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2125. void SetAttributeAnimationSpeed(const String&, float);
  2126. void SetAttributeAnimationTime(const String&, float);
  2127. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2128. void SetInterceptNetworkUpdate(const String&, bool);
  2129. // Properties:
  2130. bool animationEnabled;
  2131. /* readonly */
  2132. Array<Variant> attributeDefaults;
  2133. /* readonly */
  2134. Array<AttributeInfo> attributeInfos;
  2135. Array<Variant> attributes;
  2136. /* readonly */
  2137. String category;
  2138. bool enabled;
  2139. /* readonly */
  2140. bool enabledEffective;
  2141. /* readonly */
  2142. uint id;
  2143. /* readonly */
  2144. Node node;
  2145. /* readonly */
  2146. uint numAttributes;
  2147. ObjectAnimation objectAnimation;
  2148. /* readonly */
  2149. int refs;
  2150. bool temporary;
  2151. /* readonly */
  2152. StringHash type;
  2153. /* readonly */
  2154. String typeName;
  2155. /* readonly */
  2156. int weakRefs;
  2157. };
  2158. class Connection
  2159. {
  2160. // Methods:
  2161. void Disconnect(int = 0);
  2162. bool HasSubscribedToEvent(Object, const String&);
  2163. bool HasSubscribedToEvent(const String&);
  2164. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2165. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2166. void SendPackageToClient(PackageFile);
  2167. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2168. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2169. String ToString() const;
  2170. // Properties:
  2171. /* readonly */
  2172. String address;
  2173. /* readonly */
  2174. float bytesInPerSec;
  2175. /* readonly */
  2176. float bytesOutPerSec;
  2177. /* readonly */
  2178. String category;
  2179. /* readonly */
  2180. bool client;
  2181. /* readonly */
  2182. bool connectPending;
  2183. /* readonly */
  2184. bool connected;
  2185. Controls controls;
  2186. /* readonly */
  2187. String downloadName;
  2188. /* readonly */
  2189. float downloadProgress;
  2190. VariantMap identity;
  2191. /* readonly */
  2192. float lastHeardTime;
  2193. bool logStatistics;
  2194. /* readonly */
  2195. uint numDownloads;
  2196. /* readonly */
  2197. float packetsInPerSec;
  2198. /* readonly */
  2199. float packetsOutPerSec;
  2200. /* readonly */
  2201. uint16 port;
  2202. Vector3 position;
  2203. /* readonly */
  2204. int refs;
  2205. Quaternion rotation;
  2206. /* readonly */
  2207. float roundTripTime;
  2208. Scene scene;
  2209. /* readonly */
  2210. bool sceneLoaded;
  2211. uint8 timeStamp;
  2212. /* readonly */
  2213. StringHash type;
  2214. /* readonly */
  2215. String typeName;
  2216. /* readonly */
  2217. int weakRefs;
  2218. };
  2219. class Console
  2220. {
  2221. // Methods:
  2222. void CopySelectedRows() const;
  2223. bool HasSubscribedToEvent(Object, const String&);
  2224. bool HasSubscribedToEvent(const String&);
  2225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2226. void Toggle();
  2227. void UpdateElements();
  2228. // Properties:
  2229. bool autoVisibleOnError;
  2230. /* readonly */
  2231. BorderImage background;
  2232. /* readonly */
  2233. String category;
  2234. /* readonly */
  2235. Button closeButton;
  2236. String commandInterpreter;
  2237. XMLFile defaultStyle;
  2238. bool focusOnShow;
  2239. /* readonly */
  2240. uint historyPosition;
  2241. /* readonly */
  2242. Array<String> historyRow;
  2243. /* readonly */
  2244. LineEdit lineEdit;
  2245. uint numBufferedRows;
  2246. uint numHistoryRows;
  2247. uint numRows;
  2248. /* readonly */
  2249. int refs;
  2250. /* readonly */
  2251. StringHash type;
  2252. /* readonly */
  2253. String typeName;
  2254. bool visible;
  2255. /* readonly */
  2256. int weakRefs;
  2257. };
  2258. class Constraint
  2259. {
  2260. // Methods:
  2261. void ApplyAttributes();
  2262. void DrawDebugGeometry(DebugRenderer, bool);
  2263. Variant GetAttribute(const String&) const;
  2264. ValueAnimation GetAttributeAnimation(const String&) const;
  2265. float GetAttributeAnimationSpeed(const String&) const;
  2266. float GetAttributeAnimationTime(const String&) const;
  2267. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2268. Variant GetAttributeDefault(const String&) const;
  2269. bool GetInterceptNetworkUpdate(const String&) const;
  2270. bool HasSubscribedToEvent(Object, const String&);
  2271. bool HasSubscribedToEvent(const String&);
  2272. bool Load(File, bool = false);
  2273. bool Load(VectorBuffer&, bool = false);
  2274. bool LoadJSON(const JSONValue&, bool = false);
  2275. bool LoadXML(const XMLElement&, bool = false);
  2276. void MarkNetworkUpdate() const;
  2277. void Remove();
  2278. void RemoveAttributeAnimation(const String&);
  2279. void RemoveInstanceDefault();
  2280. void RemoveObjectAnimation();
  2281. void ResetToDefault();
  2282. bool Save(File) const;
  2283. bool Save(VectorBuffer&) const;
  2284. bool SaveJSON(JSONValue&) const;
  2285. bool SaveXML(XMLElement&) const;
  2286. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2287. void SetAnimationTime(float);
  2288. bool SetAttribute(const String&, const Variant&);
  2289. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2290. void SetAttributeAnimationSpeed(const String&, float);
  2291. void SetAttributeAnimationTime(const String&, float);
  2292. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2293. void SetInterceptNetworkUpdate(const String&, bool);
  2294. // Properties:
  2295. bool animationEnabled;
  2296. /* readonly */
  2297. Array<Variant> attributeDefaults;
  2298. /* readonly */
  2299. Array<AttributeInfo> attributeInfos;
  2300. Array<Variant> attributes;
  2301. /* writeonly */
  2302. Vector3 axis;
  2303. /* readonly */
  2304. String category;
  2305. float cfm;
  2306. ConstraintType constraintType;
  2307. bool disableCollision;
  2308. bool enabled;
  2309. /* readonly */
  2310. bool enabledEffective;
  2311. float erp;
  2312. Vector2 highLimit;
  2313. /* readonly */
  2314. uint id;
  2315. Vector2 lowLimit;
  2316. /* readonly */
  2317. Node node;
  2318. /* readonly */
  2319. uint numAttributes;
  2320. ObjectAnimation objectAnimation;
  2321. /* writeonly */
  2322. Vector3 otherAxis;
  2323. RigidBody otherBody;
  2324. Vector3 otherPosition;
  2325. Quaternion otherRotation;
  2326. /* readonly */
  2327. RigidBody ownBody;
  2328. Vector3 position;
  2329. /* readonly */
  2330. int refs;
  2331. Quaternion rotation;
  2332. bool temporary;
  2333. /* readonly */
  2334. StringHash type;
  2335. /* readonly */
  2336. String typeName;
  2337. /* readonly */
  2338. int weakRefs;
  2339. Vector3 worldPosition;
  2340. };
  2341. class Constraint2D
  2342. {
  2343. // Methods:
  2344. void ApplyAttributes();
  2345. void DrawDebugGeometry(DebugRenderer, bool);
  2346. Variant GetAttribute(const String&) const;
  2347. ValueAnimation GetAttributeAnimation(const String&) const;
  2348. float GetAttributeAnimationSpeed(const String&) const;
  2349. float GetAttributeAnimationTime(const String&) const;
  2350. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2351. Variant GetAttributeDefault(const String&) const;
  2352. bool GetInterceptNetworkUpdate(const String&) const;
  2353. bool HasSubscribedToEvent(Object, const String&);
  2354. bool HasSubscribedToEvent(const String&);
  2355. bool Load(File, bool = false);
  2356. bool Load(VectorBuffer&, bool = false);
  2357. bool LoadJSON(const JSONValue&, bool = false);
  2358. bool LoadXML(const XMLElement&, bool = false);
  2359. void MarkNetworkUpdate() const;
  2360. void Remove();
  2361. void RemoveAttributeAnimation(const String&);
  2362. void RemoveInstanceDefault();
  2363. void RemoveObjectAnimation();
  2364. void ResetToDefault();
  2365. bool Save(File) const;
  2366. bool Save(VectorBuffer&) const;
  2367. bool SaveJSON(JSONValue&) const;
  2368. bool SaveXML(XMLElement&) const;
  2369. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2370. void SetAnimationTime(float);
  2371. bool SetAttribute(const String&, const Variant&);
  2372. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2373. void SetAttributeAnimationSpeed(const String&, float);
  2374. void SetAttributeAnimationTime(const String&, float);
  2375. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2376. void SetInterceptNetworkUpdate(const String&, bool);
  2377. // Properties:
  2378. bool animationEnabled;
  2379. /* readonly */
  2380. Array<Variant> attributeDefaults;
  2381. /* readonly */
  2382. Array<AttributeInfo> attributeInfos;
  2383. Array<Variant> attributes;
  2384. /* readonly */
  2385. String category;
  2386. bool collideConnected;
  2387. bool enabled;
  2388. /* readonly */
  2389. bool enabledEffective;
  2390. /* readonly */
  2391. uint id;
  2392. /* readonly */
  2393. Node node;
  2394. /* readonly */
  2395. uint numAttributes;
  2396. ObjectAnimation objectAnimation;
  2397. RigidBody2D otherBody;
  2398. /* readonly */
  2399. RigidBody2D ownerBody;
  2400. /* readonly */
  2401. int refs;
  2402. bool temporary;
  2403. /* readonly */
  2404. StringHash type;
  2405. /* readonly */
  2406. String typeName;
  2407. /* readonly */
  2408. int weakRefs;
  2409. };
  2410. class ConstraintDistance2D
  2411. {
  2412. // Methods:
  2413. void ApplyAttributes();
  2414. void DrawDebugGeometry(DebugRenderer, bool);
  2415. Variant GetAttribute(const String&) const;
  2416. ValueAnimation GetAttributeAnimation(const String&) const;
  2417. float GetAttributeAnimationSpeed(const String&) const;
  2418. float GetAttributeAnimationTime(const String&) const;
  2419. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2420. Variant GetAttributeDefault(const String&) const;
  2421. bool GetInterceptNetworkUpdate(const String&) const;
  2422. bool HasSubscribedToEvent(Object, const String&);
  2423. bool HasSubscribedToEvent(const String&);
  2424. bool Load(File, bool = false);
  2425. bool Load(VectorBuffer&, bool = false);
  2426. bool LoadJSON(const JSONValue&, bool = false);
  2427. bool LoadXML(const XMLElement&, bool = false);
  2428. void MarkNetworkUpdate() const;
  2429. void Remove();
  2430. void RemoveAttributeAnimation(const String&);
  2431. void RemoveInstanceDefault();
  2432. void RemoveObjectAnimation();
  2433. void ResetToDefault();
  2434. bool Save(File) const;
  2435. bool Save(VectorBuffer&) const;
  2436. bool SaveJSON(JSONValue&) const;
  2437. bool SaveXML(XMLElement&) const;
  2438. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2439. void SetAnimationTime(float);
  2440. bool SetAttribute(const String&, const Variant&);
  2441. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2442. void SetAttributeAnimationSpeed(const String&, float);
  2443. void SetAttributeAnimationTime(const String&, float);
  2444. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2445. void SetInterceptNetworkUpdate(const String&, bool);
  2446. // Properties:
  2447. bool animationEnabled;
  2448. /* readonly */
  2449. Array<Variant> attributeDefaults;
  2450. /* readonly */
  2451. Array<AttributeInfo> attributeInfos;
  2452. Array<Variant> attributes;
  2453. /* readonly */
  2454. String category;
  2455. bool collideConnected;
  2456. float dampingRatio;
  2457. bool enabled;
  2458. /* readonly */
  2459. bool enabledEffective;
  2460. float frequencyHz;
  2461. /* readonly */
  2462. uint id;
  2463. /* readonly */
  2464. Node node;
  2465. /* readonly */
  2466. uint numAttributes;
  2467. ObjectAnimation objectAnimation;
  2468. RigidBody2D otherBody;
  2469. Vector2 otherBodyAnchor;
  2470. /* readonly */
  2471. RigidBody2D ownerBody;
  2472. Vector2 ownerBodyAnchor;
  2473. /* readonly */
  2474. int refs;
  2475. bool temporary;
  2476. /* readonly */
  2477. StringHash type;
  2478. /* readonly */
  2479. String typeName;
  2480. /* readonly */
  2481. int weakRefs;
  2482. };
  2483. class ConstraintFriction2D
  2484. {
  2485. // Methods:
  2486. void ApplyAttributes();
  2487. void DrawDebugGeometry(DebugRenderer, bool);
  2488. Variant GetAttribute(const String&) const;
  2489. ValueAnimation GetAttributeAnimation(const String&) const;
  2490. float GetAttributeAnimationSpeed(const String&) const;
  2491. float GetAttributeAnimationTime(const String&) const;
  2492. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2493. Variant GetAttributeDefault(const String&) const;
  2494. bool GetInterceptNetworkUpdate(const String&) const;
  2495. bool HasSubscribedToEvent(Object, const String&);
  2496. bool HasSubscribedToEvent(const String&);
  2497. bool Load(File, bool = false);
  2498. bool Load(VectorBuffer&, bool = false);
  2499. bool LoadJSON(const JSONValue&, bool = false);
  2500. bool LoadXML(const XMLElement&, bool = false);
  2501. void MarkNetworkUpdate() const;
  2502. void Remove();
  2503. void RemoveAttributeAnimation(const String&);
  2504. void RemoveInstanceDefault();
  2505. void RemoveObjectAnimation();
  2506. void ResetToDefault();
  2507. bool Save(File) const;
  2508. bool Save(VectorBuffer&) const;
  2509. bool SaveJSON(JSONValue&) const;
  2510. bool SaveXML(XMLElement&) const;
  2511. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2512. void SetAnimationTime(float);
  2513. bool SetAttribute(const String&, const Variant&);
  2514. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2515. void SetAttributeAnimationSpeed(const String&, float);
  2516. void SetAttributeAnimationTime(const String&, float);
  2517. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2518. void SetInterceptNetworkUpdate(const String&, bool);
  2519. // Properties:
  2520. Vector2 anchor;
  2521. bool animationEnabled;
  2522. /* readonly */
  2523. Array<Variant> attributeDefaults;
  2524. /* readonly */
  2525. Array<AttributeInfo> attributeInfos;
  2526. Array<Variant> attributes;
  2527. /* readonly */
  2528. String category;
  2529. bool collideConnected;
  2530. bool enabled;
  2531. /* readonly */
  2532. bool enabledEffective;
  2533. /* readonly */
  2534. uint id;
  2535. float maxForce;
  2536. float maxTorque;
  2537. /* readonly */
  2538. Node node;
  2539. /* readonly */
  2540. uint numAttributes;
  2541. ObjectAnimation objectAnimation;
  2542. RigidBody2D otherBody;
  2543. /* readonly */
  2544. RigidBody2D ownerBody;
  2545. /* readonly */
  2546. int refs;
  2547. bool temporary;
  2548. /* readonly */
  2549. StringHash type;
  2550. /* readonly */
  2551. String typeName;
  2552. /* readonly */
  2553. int weakRefs;
  2554. };
  2555. class ConstraintGear2D
  2556. {
  2557. // Methods:
  2558. void ApplyAttributes();
  2559. void DrawDebugGeometry(DebugRenderer, bool);
  2560. Variant GetAttribute(const String&) const;
  2561. ValueAnimation GetAttributeAnimation(const String&) const;
  2562. float GetAttributeAnimationSpeed(const String&) const;
  2563. float GetAttributeAnimationTime(const String&) const;
  2564. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2565. Variant GetAttributeDefault(const String&) const;
  2566. bool GetInterceptNetworkUpdate(const String&) const;
  2567. bool HasSubscribedToEvent(Object, const String&);
  2568. bool HasSubscribedToEvent(const String&);
  2569. bool Load(File, bool = false);
  2570. bool Load(VectorBuffer&, bool = false);
  2571. bool LoadJSON(const JSONValue&, bool = false);
  2572. bool LoadXML(const XMLElement&, bool = false);
  2573. void MarkNetworkUpdate() const;
  2574. void Remove();
  2575. void RemoveAttributeAnimation(const String&);
  2576. void RemoveInstanceDefault();
  2577. void RemoveObjectAnimation();
  2578. void ResetToDefault();
  2579. bool Save(File) const;
  2580. bool Save(VectorBuffer&) const;
  2581. bool SaveJSON(JSONValue&) const;
  2582. bool SaveXML(XMLElement&) const;
  2583. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2584. void SetAnimationTime(float);
  2585. bool SetAttribute(const String&, const Variant&);
  2586. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2587. void SetAttributeAnimationSpeed(const String&, float);
  2588. void SetAttributeAnimationTime(const String&, float);
  2589. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2590. void SetInterceptNetworkUpdate(const String&, bool);
  2591. // Properties:
  2592. bool animationEnabled;
  2593. /* readonly */
  2594. Array<Variant> attributeDefaults;
  2595. /* readonly */
  2596. Array<AttributeInfo> attributeInfos;
  2597. Array<Variant> attributes;
  2598. /* readonly */
  2599. String category;
  2600. bool collideConnected;
  2601. bool enabled;
  2602. /* readonly */
  2603. bool enabledEffective;
  2604. /* readonly */
  2605. uint id;
  2606. /* readonly */
  2607. Node node;
  2608. /* readonly */
  2609. uint numAttributes;
  2610. ObjectAnimation objectAnimation;
  2611. RigidBody2D otherBody;
  2612. Constraint2D otherConstraint;
  2613. /* readonly */
  2614. RigidBody2D ownerBody;
  2615. Constraint2D ownerConstraint;
  2616. float ratio;
  2617. /* readonly */
  2618. int refs;
  2619. bool temporary;
  2620. /* readonly */
  2621. StringHash type;
  2622. /* readonly */
  2623. String typeName;
  2624. /* readonly */
  2625. int weakRefs;
  2626. };
  2627. class ConstraintMotor2D
  2628. {
  2629. // Methods:
  2630. void ApplyAttributes();
  2631. void DrawDebugGeometry(DebugRenderer, bool);
  2632. Variant GetAttribute(const String&) const;
  2633. ValueAnimation GetAttributeAnimation(const String&) const;
  2634. float GetAttributeAnimationSpeed(const String&) const;
  2635. float GetAttributeAnimationTime(const String&) const;
  2636. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2637. Variant GetAttributeDefault(const String&) const;
  2638. bool GetInterceptNetworkUpdate(const String&) const;
  2639. bool HasSubscribedToEvent(Object, const String&);
  2640. bool HasSubscribedToEvent(const String&);
  2641. bool Load(File, bool = false);
  2642. bool Load(VectorBuffer&, bool = false);
  2643. bool LoadJSON(const JSONValue&, bool = false);
  2644. bool LoadXML(const XMLElement&, bool = false);
  2645. void MarkNetworkUpdate() const;
  2646. void Remove();
  2647. void RemoveAttributeAnimation(const String&);
  2648. void RemoveInstanceDefault();
  2649. void RemoveObjectAnimation();
  2650. void ResetToDefault();
  2651. bool Save(File) const;
  2652. bool Save(VectorBuffer&) const;
  2653. bool SaveJSON(JSONValue&) const;
  2654. bool SaveXML(XMLElement&) const;
  2655. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2656. void SetAnimationTime(float);
  2657. bool SetAttribute(const String&, const Variant&);
  2658. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2659. void SetAttributeAnimationSpeed(const String&, float);
  2660. void SetAttributeAnimationTime(const String&, float);
  2661. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2662. void SetInterceptNetworkUpdate(const String&, bool);
  2663. // Properties:
  2664. float angularOffset;
  2665. bool animationEnabled;
  2666. /* readonly */
  2667. Array<Variant> attributeDefaults;
  2668. /* readonly */
  2669. Array<AttributeInfo> attributeInfos;
  2670. Array<Variant> attributes;
  2671. /* readonly */
  2672. String category;
  2673. bool collideConnected;
  2674. float correctionFactor;
  2675. bool enabled;
  2676. /* readonly */
  2677. bool enabledEffective;
  2678. /* readonly */
  2679. uint id;
  2680. Vector2 linearOffset;
  2681. float maxForce;
  2682. float maxTorque;
  2683. /* readonly */
  2684. Node node;
  2685. /* readonly */
  2686. uint numAttributes;
  2687. ObjectAnimation objectAnimation;
  2688. RigidBody2D otherBody;
  2689. /* readonly */
  2690. RigidBody2D ownerBody;
  2691. /* readonly */
  2692. int refs;
  2693. bool temporary;
  2694. /* readonly */
  2695. StringHash type;
  2696. /* readonly */
  2697. String typeName;
  2698. /* readonly */
  2699. int weakRefs;
  2700. };
  2701. class ConstraintMouse2D
  2702. {
  2703. // Methods:
  2704. void ApplyAttributes();
  2705. void DrawDebugGeometry(DebugRenderer, bool);
  2706. Variant GetAttribute(const String&) const;
  2707. ValueAnimation GetAttributeAnimation(const String&) const;
  2708. float GetAttributeAnimationSpeed(const String&) const;
  2709. float GetAttributeAnimationTime(const String&) const;
  2710. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2711. Variant GetAttributeDefault(const String&) const;
  2712. bool GetInterceptNetworkUpdate(const String&) const;
  2713. bool HasSubscribedToEvent(Object, const String&);
  2714. bool HasSubscribedToEvent(const String&);
  2715. bool Load(File, bool = false);
  2716. bool Load(VectorBuffer&, bool = false);
  2717. bool LoadJSON(const JSONValue&, bool = false);
  2718. bool LoadXML(const XMLElement&, bool = false);
  2719. void MarkNetworkUpdate() const;
  2720. void Remove();
  2721. void RemoveAttributeAnimation(const String&);
  2722. void RemoveInstanceDefault();
  2723. void RemoveObjectAnimation();
  2724. void ResetToDefault();
  2725. bool Save(File) const;
  2726. bool Save(VectorBuffer&) const;
  2727. bool SaveJSON(JSONValue&) const;
  2728. bool SaveXML(XMLElement&) const;
  2729. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2730. void SetAnimationTime(float);
  2731. bool SetAttribute(const String&, const Variant&);
  2732. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2733. void SetAttributeAnimationSpeed(const String&, float);
  2734. void SetAttributeAnimationTime(const String&, float);
  2735. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2736. void SetInterceptNetworkUpdate(const String&, bool);
  2737. // Properties:
  2738. bool animationEnabled;
  2739. /* readonly */
  2740. Array<Variant> attributeDefaults;
  2741. /* readonly */
  2742. Array<AttributeInfo> attributeInfos;
  2743. Array<Variant> attributes;
  2744. /* readonly */
  2745. String category;
  2746. bool collideConnected;
  2747. float dampingRatio;
  2748. bool enabled;
  2749. /* readonly */
  2750. bool enabledEffective;
  2751. float frequencyHz;
  2752. /* readonly */
  2753. uint id;
  2754. float maxForce;
  2755. /* readonly */
  2756. Node node;
  2757. /* readonly */
  2758. uint numAttributes;
  2759. ObjectAnimation objectAnimation;
  2760. RigidBody2D otherBody;
  2761. /* readonly */
  2762. RigidBody2D ownerBody;
  2763. /* readonly */
  2764. int refs;
  2765. Vector2 target;
  2766. bool temporary;
  2767. /* readonly */
  2768. StringHash type;
  2769. /* readonly */
  2770. String typeName;
  2771. /* readonly */
  2772. int weakRefs;
  2773. };
  2774. class ConstraintPrismatic2D
  2775. {
  2776. // Methods:
  2777. void ApplyAttributes();
  2778. void DrawDebugGeometry(DebugRenderer, bool);
  2779. Variant GetAttribute(const String&) const;
  2780. ValueAnimation GetAttributeAnimation(const String&) const;
  2781. float GetAttributeAnimationSpeed(const String&) const;
  2782. float GetAttributeAnimationTime(const String&) const;
  2783. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2784. Variant GetAttributeDefault(const String&) const;
  2785. bool GetInterceptNetworkUpdate(const String&) const;
  2786. bool HasSubscribedToEvent(Object, const String&);
  2787. bool HasSubscribedToEvent(const String&);
  2788. bool Load(File, bool = false);
  2789. bool Load(VectorBuffer&, bool = false);
  2790. bool LoadJSON(const JSONValue&, bool = false);
  2791. bool LoadXML(const XMLElement&, bool = false);
  2792. void MarkNetworkUpdate() const;
  2793. void Remove();
  2794. void RemoveAttributeAnimation(const String&);
  2795. void RemoveInstanceDefault();
  2796. void RemoveObjectAnimation();
  2797. void ResetToDefault();
  2798. bool Save(File) const;
  2799. bool Save(VectorBuffer&) const;
  2800. bool SaveJSON(JSONValue&) const;
  2801. bool SaveXML(XMLElement&) const;
  2802. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2803. void SetAnimationTime(float);
  2804. bool SetAttribute(const String&, const Variant&);
  2805. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2806. void SetAttributeAnimationSpeed(const String&, float);
  2807. void SetAttributeAnimationTime(const String&, float);
  2808. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2809. void SetInterceptNetworkUpdate(const String&, bool);
  2810. // Properties:
  2811. Vector2 anchor;
  2812. bool animationEnabled;
  2813. /* readonly */
  2814. Array<Variant> attributeDefaults;
  2815. /* readonly */
  2816. Array<AttributeInfo> attributeInfos;
  2817. Array<Variant> attributes;
  2818. Vector2 axis;
  2819. /* readonly */
  2820. String category;
  2821. bool collideConnected;
  2822. bool enableLimit;
  2823. bool enableMotor;
  2824. bool enabled;
  2825. /* readonly */
  2826. bool enabledEffective;
  2827. /* readonly */
  2828. uint id;
  2829. float lowerTranslation;
  2830. float maxMotorForce;
  2831. float motorSpeed;
  2832. /* readonly */
  2833. Node node;
  2834. /* readonly */
  2835. uint numAttributes;
  2836. ObjectAnimation objectAnimation;
  2837. RigidBody2D otherBody;
  2838. /* readonly */
  2839. RigidBody2D ownerBody;
  2840. /* readonly */
  2841. int refs;
  2842. bool temporary;
  2843. /* readonly */
  2844. StringHash type;
  2845. /* readonly */
  2846. String typeName;
  2847. float upperTranslation;
  2848. /* readonly */
  2849. int weakRefs;
  2850. };
  2851. class ConstraintPulley2D
  2852. {
  2853. // Methods:
  2854. void ApplyAttributes();
  2855. void DrawDebugGeometry(DebugRenderer, bool);
  2856. Variant GetAttribute(const String&) const;
  2857. ValueAnimation GetAttributeAnimation(const String&) const;
  2858. float GetAttributeAnimationSpeed(const String&) const;
  2859. float GetAttributeAnimationTime(const String&) const;
  2860. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2861. Variant GetAttributeDefault(const String&) const;
  2862. bool GetInterceptNetworkUpdate(const String&) const;
  2863. bool HasSubscribedToEvent(Object, const String&);
  2864. bool HasSubscribedToEvent(const String&);
  2865. bool Load(File, bool = false);
  2866. bool Load(VectorBuffer&, bool = false);
  2867. bool LoadJSON(const JSONValue&, bool = false);
  2868. bool LoadXML(const XMLElement&, bool = false);
  2869. void MarkNetworkUpdate() const;
  2870. void Remove();
  2871. void RemoveAttributeAnimation(const String&);
  2872. void RemoveInstanceDefault();
  2873. void RemoveObjectAnimation();
  2874. void ResetToDefault();
  2875. bool Save(File) const;
  2876. bool Save(VectorBuffer&) const;
  2877. bool SaveJSON(JSONValue&) const;
  2878. bool SaveXML(XMLElement&) const;
  2879. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2880. void SetAnimationTime(float);
  2881. bool SetAttribute(const String&, const Variant&);
  2882. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2883. void SetAttributeAnimationSpeed(const String&, float);
  2884. void SetAttributeAnimationTime(const String&, float);
  2885. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2886. void SetInterceptNetworkUpdate(const String&, bool);
  2887. // Properties:
  2888. bool animationEnabled;
  2889. /* readonly */
  2890. Array<Variant> attributeDefaults;
  2891. /* readonly */
  2892. Array<AttributeInfo> attributeInfos;
  2893. Array<Variant> attributes;
  2894. /* readonly */
  2895. String category;
  2896. bool collideConnected;
  2897. bool enabled;
  2898. /* readonly */
  2899. bool enabledEffective;
  2900. /* readonly */
  2901. uint id;
  2902. /* readonly */
  2903. Node node;
  2904. /* readonly */
  2905. uint numAttributes;
  2906. ObjectAnimation objectAnimation;
  2907. RigidBody2D otherBody;
  2908. Vector2 otherBodyAnchor;
  2909. Vector2 otherBodyGroundAnchor;
  2910. /* readonly */
  2911. RigidBody2D ownerBody;
  2912. Vector2 ownerBodyAnchor;
  2913. Vector2 ownerBodyGroundAnchor;
  2914. float ratio;
  2915. /* readonly */
  2916. int refs;
  2917. bool temporary;
  2918. /* readonly */
  2919. StringHash type;
  2920. /* readonly */
  2921. String typeName;
  2922. /* readonly */
  2923. int weakRefs;
  2924. };
  2925. class ConstraintRevolute2D
  2926. {
  2927. // Methods:
  2928. void ApplyAttributes();
  2929. void DrawDebugGeometry(DebugRenderer, bool);
  2930. Variant GetAttribute(const String&) const;
  2931. ValueAnimation GetAttributeAnimation(const String&) const;
  2932. float GetAttributeAnimationSpeed(const String&) const;
  2933. float GetAttributeAnimationTime(const String&) const;
  2934. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2935. Variant GetAttributeDefault(const String&) const;
  2936. bool GetInterceptNetworkUpdate(const String&) const;
  2937. bool HasSubscribedToEvent(Object, const String&);
  2938. bool HasSubscribedToEvent(const String&);
  2939. bool Load(File, bool = false);
  2940. bool Load(VectorBuffer&, bool = false);
  2941. bool LoadJSON(const JSONValue&, bool = false);
  2942. bool LoadXML(const XMLElement&, bool = false);
  2943. void MarkNetworkUpdate() const;
  2944. void Remove();
  2945. void RemoveAttributeAnimation(const String&);
  2946. void RemoveInstanceDefault();
  2947. void RemoveObjectAnimation();
  2948. void ResetToDefault();
  2949. bool Save(File) const;
  2950. bool Save(VectorBuffer&) const;
  2951. bool SaveJSON(JSONValue&) const;
  2952. bool SaveXML(XMLElement&) const;
  2953. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2954. void SetAnimationTime(float);
  2955. bool SetAttribute(const String&, const Variant&);
  2956. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2957. void SetAttributeAnimationSpeed(const String&, float);
  2958. void SetAttributeAnimationTime(const String&, float);
  2959. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2960. void SetInterceptNetworkUpdate(const String&, bool);
  2961. // Properties:
  2962. Vector2 anchor;
  2963. bool animationEnabled;
  2964. /* readonly */
  2965. Array<Variant> attributeDefaults;
  2966. /* readonly */
  2967. Array<AttributeInfo> attributeInfos;
  2968. Array<Variant> attributes;
  2969. /* readonly */
  2970. String category;
  2971. bool collideConnected;
  2972. bool enableLimit;
  2973. bool enableMotor;
  2974. bool enabled;
  2975. /* readonly */
  2976. bool enabledEffective;
  2977. /* readonly */
  2978. uint id;
  2979. float lowerAngle;
  2980. float maxMotorTorque;
  2981. float motorSpeed;
  2982. /* readonly */
  2983. Node node;
  2984. /* readonly */
  2985. uint numAttributes;
  2986. ObjectAnimation objectAnimation;
  2987. RigidBody2D otherBody;
  2988. /* readonly */
  2989. RigidBody2D ownerBody;
  2990. /* readonly */
  2991. int refs;
  2992. bool temporary;
  2993. /* readonly */
  2994. StringHash type;
  2995. /* readonly */
  2996. String typeName;
  2997. float upperAngle;
  2998. /* readonly */
  2999. int weakRefs;
  3000. };
  3001. class ConstraintRope2D
  3002. {
  3003. // Methods:
  3004. void ApplyAttributes();
  3005. void DrawDebugGeometry(DebugRenderer, bool);
  3006. Variant GetAttribute(const String&) const;
  3007. ValueAnimation GetAttributeAnimation(const String&) const;
  3008. float GetAttributeAnimationSpeed(const String&) const;
  3009. float GetAttributeAnimationTime(const String&) const;
  3010. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3011. Variant GetAttributeDefault(const String&) const;
  3012. bool GetInterceptNetworkUpdate(const String&) const;
  3013. bool HasSubscribedToEvent(Object, const String&);
  3014. bool HasSubscribedToEvent(const String&);
  3015. bool Load(File, bool = false);
  3016. bool Load(VectorBuffer&, bool = false);
  3017. bool LoadJSON(const JSONValue&, bool = false);
  3018. bool LoadXML(const XMLElement&, bool = false);
  3019. void MarkNetworkUpdate() const;
  3020. void Remove();
  3021. void RemoveAttributeAnimation(const String&);
  3022. void RemoveInstanceDefault();
  3023. void RemoveObjectAnimation();
  3024. void ResetToDefault();
  3025. bool Save(File) const;
  3026. bool Save(VectorBuffer&) const;
  3027. bool SaveJSON(JSONValue&) const;
  3028. bool SaveXML(XMLElement&) const;
  3029. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3030. void SetAnimationTime(float);
  3031. bool SetAttribute(const String&, const Variant&);
  3032. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3033. void SetAttributeAnimationSpeed(const String&, float);
  3034. void SetAttributeAnimationTime(const String&, float);
  3035. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3036. void SetInterceptNetworkUpdate(const String&, bool);
  3037. // Properties:
  3038. bool animationEnabled;
  3039. /* readonly */
  3040. Array<Variant> attributeDefaults;
  3041. /* readonly */
  3042. Array<AttributeInfo> attributeInfos;
  3043. Array<Variant> attributes;
  3044. /* readonly */
  3045. String category;
  3046. bool collideConnected;
  3047. bool enabled;
  3048. /* readonly */
  3049. bool enabledEffective;
  3050. /* readonly */
  3051. uint id;
  3052. float maxLength;
  3053. /* readonly */
  3054. Node node;
  3055. /* readonly */
  3056. uint numAttributes;
  3057. ObjectAnimation objectAnimation;
  3058. RigidBody2D otherBody;
  3059. Vector2 otherBodyAnchor;
  3060. /* readonly */
  3061. RigidBody2D ownerBody;
  3062. Vector2 ownerBodyAnchor;
  3063. /* readonly */
  3064. int refs;
  3065. bool temporary;
  3066. /* readonly */
  3067. StringHash type;
  3068. /* readonly */
  3069. String typeName;
  3070. /* readonly */
  3071. int weakRefs;
  3072. };
  3073. class ConstraintWeld2D
  3074. {
  3075. // Methods:
  3076. void ApplyAttributes();
  3077. void DrawDebugGeometry(DebugRenderer, bool);
  3078. Variant GetAttribute(const String&) const;
  3079. ValueAnimation GetAttributeAnimation(const String&) const;
  3080. float GetAttributeAnimationSpeed(const String&) const;
  3081. float GetAttributeAnimationTime(const String&) const;
  3082. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3083. Variant GetAttributeDefault(const String&) const;
  3084. bool GetInterceptNetworkUpdate(const String&) const;
  3085. bool HasSubscribedToEvent(Object, const String&);
  3086. bool HasSubscribedToEvent(const String&);
  3087. bool Load(File, bool = false);
  3088. bool Load(VectorBuffer&, bool = false);
  3089. bool LoadJSON(const JSONValue&, bool = false);
  3090. bool LoadXML(const XMLElement&, bool = false);
  3091. void MarkNetworkUpdate() const;
  3092. void Remove();
  3093. void RemoveAttributeAnimation(const String&);
  3094. void RemoveInstanceDefault();
  3095. void RemoveObjectAnimation();
  3096. void ResetToDefault();
  3097. bool Save(File) const;
  3098. bool Save(VectorBuffer&) const;
  3099. bool SaveJSON(JSONValue&) const;
  3100. bool SaveXML(XMLElement&) const;
  3101. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3102. void SetAnimationTime(float);
  3103. bool SetAttribute(const String&, const Variant&);
  3104. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3105. void SetAttributeAnimationSpeed(const String&, float);
  3106. void SetAttributeAnimationTime(const String&, float);
  3107. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3108. void SetInterceptNetworkUpdate(const String&, bool);
  3109. // Properties:
  3110. Vector2 anchor;
  3111. bool animationEnabled;
  3112. /* readonly */
  3113. Array<Variant> attributeDefaults;
  3114. /* readonly */
  3115. Array<AttributeInfo> attributeInfos;
  3116. Array<Variant> attributes;
  3117. /* readonly */
  3118. String category;
  3119. bool collideConnected;
  3120. float dampingRatio;
  3121. bool enabled;
  3122. /* readonly */
  3123. bool enabledEffective;
  3124. float frequencyHz;
  3125. /* readonly */
  3126. uint id;
  3127. /* readonly */
  3128. Node node;
  3129. /* readonly */
  3130. uint numAttributes;
  3131. ObjectAnimation objectAnimation;
  3132. RigidBody2D otherBody;
  3133. /* readonly */
  3134. RigidBody2D ownerBody;
  3135. /* readonly */
  3136. int refs;
  3137. bool temporary;
  3138. /* readonly */
  3139. StringHash type;
  3140. /* readonly */
  3141. String typeName;
  3142. /* readonly */
  3143. int weakRefs;
  3144. };
  3145. class ConstraintWheel2D
  3146. {
  3147. // Methods:
  3148. void ApplyAttributes();
  3149. void DrawDebugGeometry(DebugRenderer, bool);
  3150. Variant GetAttribute(const String&) const;
  3151. ValueAnimation GetAttributeAnimation(const String&) const;
  3152. float GetAttributeAnimationSpeed(const String&) const;
  3153. float GetAttributeAnimationTime(const String&) const;
  3154. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3155. Variant GetAttributeDefault(const String&) const;
  3156. bool GetInterceptNetworkUpdate(const String&) const;
  3157. bool HasSubscribedToEvent(Object, const String&);
  3158. bool HasSubscribedToEvent(const String&);
  3159. bool Load(File, bool = false);
  3160. bool Load(VectorBuffer&, bool = false);
  3161. bool LoadJSON(const JSONValue&, bool = false);
  3162. bool LoadXML(const XMLElement&, bool = false);
  3163. void MarkNetworkUpdate() const;
  3164. void Remove();
  3165. void RemoveAttributeAnimation(const String&);
  3166. void RemoveInstanceDefault();
  3167. void RemoveObjectAnimation();
  3168. void ResetToDefault();
  3169. bool Save(File) const;
  3170. bool Save(VectorBuffer&) const;
  3171. bool SaveJSON(JSONValue&) const;
  3172. bool SaveXML(XMLElement&) const;
  3173. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3174. void SetAnimationTime(float);
  3175. bool SetAttribute(const String&, const Variant&);
  3176. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3177. void SetAttributeAnimationSpeed(const String&, float);
  3178. void SetAttributeAnimationTime(const String&, float);
  3179. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3180. void SetInterceptNetworkUpdate(const String&, bool);
  3181. // Properties:
  3182. Vector2 anchor;
  3183. bool animationEnabled;
  3184. /* readonly */
  3185. Array<Variant> attributeDefaults;
  3186. /* readonly */
  3187. Array<AttributeInfo> attributeInfos;
  3188. Array<Variant> attributes;
  3189. Vector2 axis;
  3190. /* readonly */
  3191. String category;
  3192. bool collideConnected;
  3193. float dampingRatio;
  3194. bool enableMotor;
  3195. bool enabled;
  3196. /* readonly */
  3197. bool enabledEffective;
  3198. float frequencyHz;
  3199. /* readonly */
  3200. uint id;
  3201. float maxMotorTorque;
  3202. float motorSpeed;
  3203. /* readonly */
  3204. Node node;
  3205. /* readonly */
  3206. uint numAttributes;
  3207. ObjectAnimation objectAnimation;
  3208. RigidBody2D otherBody;
  3209. /* readonly */
  3210. RigidBody2D ownerBody;
  3211. /* readonly */
  3212. int refs;
  3213. bool temporary;
  3214. /* readonly */
  3215. StringHash type;
  3216. /* readonly */
  3217. String typeName;
  3218. /* readonly */
  3219. int weakRefs;
  3220. };
  3221. class Controls
  3222. {
  3223. // Methods:
  3224. bool IsDown(uint) const;
  3225. bool IsPressed(uint, const Controls&) const;
  3226. void Reset();
  3227. void Set(uint, bool);
  3228. // Properties:
  3229. uint buttons;
  3230. VariantMap extraData;
  3231. float pitch;
  3232. float yaw;
  3233. };
  3234. class CrowdAgent
  3235. {
  3236. // Methods:
  3237. void ApplyAttributes();
  3238. void DrawDebugGeometry(DebugRenderer, bool);
  3239. void DrawDebugGeometry(bool);
  3240. Variant GetAttribute(const String&) const;
  3241. ValueAnimation GetAttributeAnimation(const String&) const;
  3242. float GetAttributeAnimationSpeed(const String&) const;
  3243. float GetAttributeAnimationTime(const String&) const;
  3244. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3245. Variant GetAttributeDefault(const String&) const;
  3246. bool GetInterceptNetworkUpdate(const String&) const;
  3247. bool HasSubscribedToEvent(Object, const String&);
  3248. bool HasSubscribedToEvent(const String&);
  3249. bool Load(File, bool = false);
  3250. bool Load(VectorBuffer&, bool = false);
  3251. bool LoadJSON(const JSONValue&, bool = false);
  3252. bool LoadXML(const XMLElement&, bool = false);
  3253. void MarkNetworkUpdate() const;
  3254. void Remove();
  3255. void RemoveAttributeAnimation(const String&);
  3256. void RemoveInstanceDefault();
  3257. void RemoveObjectAnimation();
  3258. void ResetTarget();
  3259. void ResetToDefault();
  3260. bool Save(File) const;
  3261. bool Save(VectorBuffer&) const;
  3262. bool SaveJSON(JSONValue&) const;
  3263. bool SaveXML(XMLElement&) const;
  3264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3265. void SetAnimationTime(float);
  3266. bool SetAttribute(const String&, const Variant&);
  3267. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3268. void SetAttributeAnimationSpeed(const String&, float);
  3269. void SetAttributeAnimationTime(const String&, float);
  3270. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3271. void SetInterceptNetworkUpdate(const String&, bool);
  3272. // Properties:
  3273. /* readonly */
  3274. Vector3 actualVelocity;
  3275. /* readonly */
  3276. CrowdAgentState agentState;
  3277. bool animationEnabled;
  3278. /* readonly */
  3279. bool arrived;
  3280. /* readonly */
  3281. Array<Variant> attributeDefaults;
  3282. /* readonly */
  3283. Array<AttributeInfo> attributeInfos;
  3284. Array<Variant> attributes;
  3285. /* readonly */
  3286. String category;
  3287. /* readonly */
  3288. Vector3 desiredVelocity;
  3289. bool enabled;
  3290. /* readonly */
  3291. bool enabledEffective;
  3292. float height;
  3293. /* readonly */
  3294. uint id;
  3295. /* readonly */
  3296. bool inCrowd;
  3297. float maxAccel;
  3298. float maxSpeed;
  3299. NavigationPushiness navigationPushiness;
  3300. NavigationQuality navigationQuality;
  3301. /* readonly */
  3302. Node node;
  3303. /* readonly */
  3304. uint numAttributes;
  3305. ObjectAnimation objectAnimation;
  3306. uint obstacleAvoidanceType;
  3307. /* readonly */
  3308. Vector3 position;
  3309. uint queryFilterType;
  3310. float radius;
  3311. /* readonly */
  3312. int refs;
  3313. /* readonly */
  3314. bool requestedTarget;
  3315. /* readonly */
  3316. CrowdAgentRequestedTarget requestedTargetType;
  3317. Vector3 targetPosition;
  3318. /* readonly */
  3319. CrowdAgentTargetState targetState;
  3320. Vector3 targetVelocity;
  3321. bool temporary;
  3322. /* readonly */
  3323. StringHash type;
  3324. /* readonly */
  3325. String typeName;
  3326. bool updateNodePosition;
  3327. /* readonly */
  3328. int weakRefs;
  3329. };
  3330. class CrowdManager
  3331. {
  3332. // Methods:
  3333. void ApplyAttributes();
  3334. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3335. void DrawDebugGeometry(DebugRenderer, bool);
  3336. void DrawDebugGeometry(bool);
  3337. Vector3 FindNearestPoint(const Vector3&, int);
  3338. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3339. float GetAreaCost(uint, uint);
  3340. Variant GetAttribute(const String&) const;
  3341. ValueAnimation GetAttributeAnimation(const String&) const;
  3342. float GetAttributeAnimationSpeed(const String&) const;
  3343. float GetAttributeAnimationTime(const String&) const;
  3344. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3345. Variant GetAttributeDefault(const String&) const;
  3346. float GetDistanceToWall(const Vector3&, float, int);
  3347. uint16 GetExcludeFlags(uint);
  3348. uint16 GetIncludeFlags(uint);
  3349. bool GetInterceptNetworkUpdate(const String&) const;
  3350. Vector3 GetRandomPoint(int);
  3351. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3352. bool HasSubscribedToEvent(Object, const String&);
  3353. bool HasSubscribedToEvent(const String&);
  3354. bool Load(File, bool = false);
  3355. bool Load(VectorBuffer&, bool = false);
  3356. bool LoadJSON(const JSONValue&, bool = false);
  3357. bool LoadXML(const XMLElement&, bool = false);
  3358. void MarkNetworkUpdate() const;
  3359. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3360. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3361. void Remove();
  3362. void RemoveAttributeAnimation(const String&);
  3363. void RemoveInstanceDefault();
  3364. void RemoveObjectAnimation();
  3365. void ResetCrowdTarget(Node = null);
  3366. void ResetToDefault();
  3367. bool Save(File) const;
  3368. bool Save(VectorBuffer&) const;
  3369. bool SaveJSON(JSONValue&) const;
  3370. bool SaveXML(XMLElement&) const;
  3371. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3372. void SetAnimationTime(float);
  3373. void SetAreaCost(uint, uint, float);
  3374. bool SetAttribute(const String&, const Variant&);
  3375. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3376. void SetAttributeAnimationSpeed(const String&, float);
  3377. void SetAttributeAnimationTime(const String&, float);
  3378. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3379. void SetCrowdTarget(const Vector3&, Node = null);
  3380. void SetCrowdVelocity(const Vector3&, Node = null);
  3381. void SetExcludeFlags(uint, uint16);
  3382. void SetIncludeFlags(uint, uint16);
  3383. void SetInterceptNetworkUpdate(const String&, bool);
  3384. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3385. // Properties:
  3386. bool animationEnabled;
  3387. /* readonly */
  3388. Array<Variant> attributeDefaults;
  3389. /* readonly */
  3390. Array<AttributeInfo> attributeInfos;
  3391. Array<Variant> attributes;
  3392. /* readonly */
  3393. String category;
  3394. bool enabled;
  3395. /* readonly */
  3396. bool enabledEffective;
  3397. /* readonly */
  3398. uint id;
  3399. float maxAgentRadius;
  3400. int maxAgents;
  3401. NavigationMesh navMesh;
  3402. /* readonly */
  3403. Node node;
  3404. /* readonly */
  3405. Array<uint> numAreas;
  3406. /* readonly */
  3407. uint numAttributes;
  3408. /* readonly */
  3409. uint numObstacleAvoidanceTypes;
  3410. /* readonly */
  3411. uint numQueryFilterTypes;
  3412. ObjectAnimation objectAnimation;
  3413. /* readonly */
  3414. int refs;
  3415. bool temporary;
  3416. /* readonly */
  3417. StringHash type;
  3418. /* readonly */
  3419. String typeName;
  3420. /* readonly */
  3421. int weakRefs;
  3422. };
  3423. class CrowdObstacleAvoidanceParams
  3424. {
  3425. // Properties:
  3426. uint8 adaptiveDepth;
  3427. uint8 adaptiveDivs;
  3428. uint8 adaptiveRings;
  3429. uint8 gridSize;
  3430. float horizTime;
  3431. float velBias;
  3432. float weightCurVel;
  3433. float weightDesVel;
  3434. float weightSide;
  3435. float weightToi;
  3436. };
  3437. class Cursor
  3438. {
  3439. // Methods:
  3440. void AddChild(UIElement);
  3441. void AddTag(const String&);
  3442. void AddTags(const String&, int8 = ';');
  3443. void ApplyAttributes();
  3444. void BringToFront();
  3445. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3446. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3447. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3448. void DisableLayoutUpdate();
  3449. IntVector2 ElementToScreen(const IntVector2&);
  3450. void EnableLayoutUpdate();
  3451. uint FindChild(UIElement) const;
  3452. Variant GetAttribute(const String&) const;
  3453. ValueAnimation GetAttributeAnimation(const String&) const;
  3454. float GetAttributeAnimationSpeed(const String&) const;
  3455. float GetAttributeAnimationTime(const String&) const;
  3456. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3457. Variant GetAttributeDefault(const String&) const;
  3458. UIElement GetChild(const String&, bool = false) const;
  3459. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3460. Array<UIElement> GetChildren(bool = false) const;
  3461. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3462. UIElement GetElementEventSender() const;
  3463. bool GetInterceptNetworkUpdate(const String&) const;
  3464. uint GetNumChildren(bool) const;
  3465. bool HasSubscribedToEvent(Object, const String&);
  3466. bool HasSubscribedToEvent(const String&);
  3467. bool HasTag(const String&) const;
  3468. void InsertChild(uint, UIElement);
  3469. bool IsInside(IntVector2, bool);
  3470. bool IsInsideCombined(IntVector2, bool);
  3471. bool Load(File, bool = false);
  3472. bool Load(VectorBuffer&, bool = false);
  3473. bool LoadChildXML(XMLFile, XMLFile = null);
  3474. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3475. bool LoadJSON(const JSONValue&, bool = false);
  3476. bool LoadXML(File);
  3477. bool LoadXML(VectorBuffer&);
  3478. bool LoadXML(XMLFile, XMLFile);
  3479. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3480. bool LoadXML(const XMLElement&, bool = false);
  3481. void MarkNetworkUpdate() const;
  3482. void Remove();
  3483. void RemoveAllChildren();
  3484. void RemoveAllTags();
  3485. void RemoveAttributeAnimation(const String&);
  3486. void RemoveChild(UIElement, uint = 0);
  3487. void RemoveChild(uint);
  3488. void RemoveInstanceDefault();
  3489. void RemoveObjectAnimation();
  3490. bool RemoveTag(const String&);
  3491. void ResetDeepEnabled();
  3492. void ResetToDefault();
  3493. bool Save(File) const;
  3494. bool Save(VectorBuffer&) const;
  3495. bool SaveJSON(JSONValue&) const;
  3496. bool SaveXML(File, const String& = "\t");
  3497. bool SaveXML(VectorBuffer&, const String& = "\t");
  3498. bool SaveXML(XMLElement&) const;
  3499. IntVector2 ScreenToElement(const IntVector2&);
  3500. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3501. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3502. void SetAnimationTime(float);
  3503. bool SetAttribute(const String&, const Variant&);
  3504. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3505. void SetAttributeAnimationSpeed(const String&, float);
  3506. void SetAttributeAnimationTime(const String&, float);
  3507. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3508. void SetDeepEnabled(bool);
  3509. void SetEnabledRecursive(bool);
  3510. void SetFixedHeight(int);
  3511. void SetFixedSize(int, int);
  3512. void SetFixedWidth(int);
  3513. void SetFullImageRect();
  3514. void SetHoverOffset(int, int);
  3515. void SetInterceptNetworkUpdate(const String&, bool);
  3516. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3517. void SetMaxSize(int, int);
  3518. void SetMinSize(int, int);
  3519. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3520. void SetPosition(int, int);
  3521. void SetShape(CursorShape);
  3522. void SetShape(const String&);
  3523. void SetSize(int, int);
  3524. bool SetStyle(const String&, XMLFile = null);
  3525. bool SetStyle(const XMLElement&);
  3526. bool SetStyleAuto(XMLFile = null);
  3527. void UpdateLayout();
  3528. const Variant& GetVar(const StringHash&);
  3529. // Properties:
  3530. bool animationEnabled;
  3531. /* readonly */
  3532. Array<Variant> attributeDefaults;
  3533. /* readonly */
  3534. Array<AttributeInfo> attributeInfos;
  3535. Array<Variant> attributes;
  3536. BlendMode blendMode;
  3537. IntRect border;
  3538. bool bringToBack;
  3539. bool bringToFront;
  3540. /* readonly */
  3541. String category;
  3542. /* readonly */
  3543. IntVector2 childOffset;
  3544. /* readonly */
  3545. Array<UIElement> children;
  3546. IntRect clipBorder;
  3547. bool clipChildren;
  3548. /* writeonly */
  3549. Color color;
  3550. /* readonly */
  3551. bool colorGradient;
  3552. Array<Color> colors;
  3553. /* readonly */
  3554. IntRect combinedScreenRect;
  3555. XMLFile defaultStyle;
  3556. /* readonly */
  3557. float derivedOpacity;
  3558. /* readonly */
  3559. uint dragButtonCombo;
  3560. /* readonly */
  3561. int dragButtonCount;
  3562. uint dragDropMode;
  3563. bool editable;
  3564. bool elementEventSender;
  3565. bool enabled;
  3566. /* readonly */
  3567. bool enabledSelf;
  3568. /* readonly */
  3569. bool fixedHeight;
  3570. /* readonly */
  3571. bool fixedSize;
  3572. /* readonly */
  3573. bool fixedWidth;
  3574. bool focus;
  3575. FocusMode focusMode;
  3576. int height;
  3577. HorizontalAlignment horizontalAlignment;
  3578. IntVector2 hoverOffset;
  3579. /* readonly */
  3580. bool hovering;
  3581. IntRect imageBorder;
  3582. IntRect imageRect;
  3583. int indent;
  3584. int indentSpacing;
  3585. /* readonly */
  3586. int indentWidth;
  3587. bool internal;
  3588. IntRect layoutBorder;
  3589. Vector2 layoutFlexScale;
  3590. LayoutMode layoutMode;
  3591. int layoutSpacing;
  3592. int maxHeight;
  3593. IntVector2 maxSize;
  3594. int maxWidth;
  3595. int minHeight;
  3596. IntVector2 minSize;
  3597. int minWidth;
  3598. String name;
  3599. /* readonly */
  3600. uint numAllChildren;
  3601. /* readonly */
  3602. uint numAttributes;
  3603. /* readonly */
  3604. uint numChildren;
  3605. ObjectAnimation objectAnimation;
  3606. float opacity;
  3607. UIElement parent;
  3608. IntVector2 position;
  3609. int priority;
  3610. /* readonly */
  3611. int refs;
  3612. /* readonly */
  3613. UIElement root;
  3614. /* readonly */
  3615. IntVector2 screenPosition;
  3616. bool selected;
  3617. String shape;
  3618. IntVector2 size;
  3619. bool sortChildren;
  3620. String style;
  3621. /* readonly */
  3622. Array<String> tags;
  3623. bool temporary;
  3624. Texture texture;
  3625. bool tiled;
  3626. TraversalMode traversalMode;
  3627. /* readonly */
  3628. StringHash type;
  3629. /* readonly */
  3630. String typeName;
  3631. bool useDerivedOpacity;
  3632. bool useSystemShapes;
  3633. /* readonly */
  3634. VariantMap vars;
  3635. VerticalAlignment verticalAlignment;
  3636. bool visible;
  3637. /* readonly */
  3638. bool visibleEffective;
  3639. /* readonly */
  3640. int weakRefs;
  3641. int width;
  3642. };
  3643. class CustomGeometry
  3644. {
  3645. // Methods:
  3646. void ApplyAttributes();
  3647. void BeginGeometry(uint, PrimitiveType);
  3648. void Clear();
  3649. void Commit();
  3650. void DefineColor(const Color&);
  3651. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3652. void DefineNormal(const Vector3&);
  3653. void DefineTangent(const Vector4&);
  3654. void DefineTexCoord(const Vector2&);
  3655. void DefineVertex(const Vector3&);
  3656. void DrawDebugGeometry(DebugRenderer, bool);
  3657. Variant GetAttribute(const String&) const;
  3658. ValueAnimation GetAttributeAnimation(const String&) const;
  3659. float GetAttributeAnimationSpeed(const String&) const;
  3660. float GetAttributeAnimationTime(const String&) const;
  3661. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3662. Variant GetAttributeDefault(const String&) const;
  3663. bool GetInterceptNetworkUpdate(const String&) const;
  3664. CustomGeometryVertex GetVertex(uint, uint);
  3665. bool HasSubscribedToEvent(Object, const String&);
  3666. bool HasSubscribedToEvent(const String&);
  3667. bool IsInView(Camera) const;
  3668. bool Load(File, bool = false);
  3669. bool Load(VectorBuffer&, bool = false);
  3670. bool LoadJSON(const JSONValue&, bool = false);
  3671. bool LoadXML(const XMLElement&, bool = false);
  3672. void MarkNetworkUpdate() const;
  3673. void Remove();
  3674. void RemoveAttributeAnimation(const String&);
  3675. void RemoveInstanceDefault();
  3676. void RemoveObjectAnimation();
  3677. void ResetToDefault();
  3678. bool Save(File) const;
  3679. bool Save(VectorBuffer&) const;
  3680. bool SaveJSON(JSONValue&) const;
  3681. bool SaveXML(XMLElement&) const;
  3682. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3683. void SetAnimationTime(float);
  3684. bool SetAttribute(const String&, const Variant&);
  3685. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3686. void SetAttributeAnimationSpeed(const String&, float);
  3687. void SetAttributeAnimationTime(const String&, float);
  3688. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3689. void SetInterceptNetworkUpdate(const String&, bool);
  3690. // Properties:
  3691. bool animationEnabled;
  3692. /* readonly */
  3693. Array<Variant> attributeDefaults;
  3694. /* readonly */
  3695. Array<AttributeInfo> attributeInfos;
  3696. Array<Variant> attributes;
  3697. /* readonly */
  3698. BoundingBox boundingBox;
  3699. bool castShadows;
  3700. /* readonly */
  3701. String category;
  3702. float drawDistance;
  3703. bool dynamic;
  3704. bool enabled;
  3705. /* readonly */
  3706. bool enabledEffective;
  3707. /* readonly */
  3708. uint id;
  3709. /* readonly */
  3710. bool inView;
  3711. uint lightMask;
  3712. float lodBias;
  3713. /* writeonly */
  3714. Material material;
  3715. Array<Material> materials;
  3716. uint maxLights;
  3717. /* readonly */
  3718. Node node;
  3719. /* readonly */
  3720. uint numAttributes;
  3721. uint numGeometries;
  3722. /* readonly */
  3723. Array<uint> numVertices;
  3724. ObjectAnimation objectAnimation;
  3725. bool occludee;
  3726. bool occluder;
  3727. /* readonly */
  3728. int refs;
  3729. float shadowDistance;
  3730. uint shadowMask;
  3731. bool temporary;
  3732. /* readonly */
  3733. StringHash type;
  3734. /* readonly */
  3735. String typeName;
  3736. uint viewMask;
  3737. /* readonly */
  3738. int weakRefs;
  3739. /* readonly */
  3740. BoundingBox worldBoundingBox;
  3741. /* readonly */
  3742. Zone zone;
  3743. uint zoneMask;
  3744. };
  3745. class CustomGeometryVertex
  3746. {
  3747. // Properties:
  3748. uint color;
  3749. Vector3 normal;
  3750. Vector3 position;
  3751. Vector4 tangent;
  3752. Vector2 texCoord;
  3753. };
  3754. class Database
  3755. {
  3756. // Methods:
  3757. DbConnection Connect(const String&);
  3758. void Disconnect(DbConnection);
  3759. bool HasSubscribedToEvent(Object, const String&);
  3760. bool HasSubscribedToEvent(const String&);
  3761. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3762. // Properties:
  3763. /* readonly */
  3764. String category;
  3765. uint poolSize;
  3766. /* readonly */
  3767. bool pooling;
  3768. /* readonly */
  3769. int refs;
  3770. /* readonly */
  3771. StringHash type;
  3772. /* readonly */
  3773. String typeName;
  3774. /* readonly */
  3775. int weakRefs;
  3776. };
  3777. class DbConnection
  3778. {
  3779. // Methods:
  3780. DbResult Execute(const String&, bool = false);
  3781. bool HasSubscribedToEvent(Object, const String&);
  3782. bool HasSubscribedToEvent(const String&);
  3783. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3784. // Properties:
  3785. /* readonly */
  3786. String category;
  3787. /* readonly */
  3788. bool connected;
  3789. /* readonly */
  3790. String connectionString;
  3791. /* readonly */
  3792. int refs;
  3793. /* readonly */
  3794. StringHash type;
  3795. /* readonly */
  3796. String typeName;
  3797. /* readonly */
  3798. int weakRefs;
  3799. };
  3800. class DbResult
  3801. {
  3802. // Properties:
  3803. /* readonly */
  3804. Array<String> columns;
  3805. /* readonly */
  3806. int64 numAffectedRows;
  3807. /* readonly */
  3808. uint numColumns;
  3809. /* readonly */
  3810. uint numRows;
  3811. /* readonly */
  3812. Array<Array<Variant>> row;
  3813. };
  3814. class DebugHud
  3815. {
  3816. // Methods:
  3817. void ClearAppStats();
  3818. bool HasSubscribedToEvent(Object, const String&);
  3819. bool HasSubscribedToEvent(const String&);
  3820. void ResetAppStats(const String&);
  3821. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3822. void SetAppStats(const String&, const String&);
  3823. void SetAppStats(const String&, const Variant&);
  3824. void Toggle(uint);
  3825. void ToggleAll();
  3826. void Update();
  3827. // Properties:
  3828. /* readonly */
  3829. String category;
  3830. XMLFile defaultStyle;
  3831. /* readonly */
  3832. Text memoryText;
  3833. uint mode;
  3834. /* readonly */
  3835. Text modeText;
  3836. float profilerInterval;
  3837. uint profilerMaxDepth;
  3838. /* readonly */
  3839. Text profilerText;
  3840. /* readonly */
  3841. int refs;
  3842. /* readonly */
  3843. Text statsText;
  3844. /* readonly */
  3845. StringHash type;
  3846. /* readonly */
  3847. String typeName;
  3848. bool useRendererStats;
  3849. /* readonly */
  3850. int weakRefs;
  3851. };
  3852. class DebugRenderer
  3853. {
  3854. // Methods:
  3855. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3856. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3857. void AddCross(const Vector3&, float, const Color&, bool = true);
  3858. void AddFrustum(const Frustum&, const Color&, bool = true);
  3859. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3860. void AddNode(Node, float = 1.0, bool = true);
  3861. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3862. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3863. void AddSkeleton(Skeleton, const Color&, bool = true);
  3864. void AddSphere(const Sphere&, const Color&, bool = true);
  3865. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3866. void ApplyAttributes();
  3867. void DrawDebugGeometry(DebugRenderer, bool);
  3868. Variant GetAttribute(const String&) const;
  3869. ValueAnimation GetAttributeAnimation(const String&) const;
  3870. float GetAttributeAnimationSpeed(const String&) const;
  3871. float GetAttributeAnimationTime(const String&) const;
  3872. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3873. Variant GetAttributeDefault(const String&) const;
  3874. bool GetInterceptNetworkUpdate(const String&) const;
  3875. bool HasSubscribedToEvent(Object, const String&);
  3876. bool HasSubscribedToEvent(const String&);
  3877. bool Load(File, bool = false);
  3878. bool Load(VectorBuffer&, bool = false);
  3879. bool LoadJSON(const JSONValue&, bool = false);
  3880. bool LoadXML(const XMLElement&, bool = false);
  3881. void MarkNetworkUpdate() const;
  3882. void Remove();
  3883. void RemoveAttributeAnimation(const String&);
  3884. void RemoveInstanceDefault();
  3885. void RemoveObjectAnimation();
  3886. void ResetToDefault();
  3887. bool Save(File) const;
  3888. bool Save(VectorBuffer&) const;
  3889. bool SaveJSON(JSONValue&) const;
  3890. bool SaveXML(XMLElement&) const;
  3891. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3892. void SetAnimationTime(float);
  3893. bool SetAttribute(const String&, const Variant&);
  3894. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3895. void SetAttributeAnimationSpeed(const String&, float);
  3896. void SetAttributeAnimationTime(const String&, float);
  3897. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3898. void SetInterceptNetworkUpdate(const String&, bool);
  3899. // Properties:
  3900. bool animationEnabled;
  3901. /* readonly */
  3902. Array<Variant> attributeDefaults;
  3903. /* readonly */
  3904. Array<AttributeInfo> attributeInfos;
  3905. Array<Variant> attributes;
  3906. /* readonly */
  3907. String category;
  3908. bool enabled;
  3909. /* readonly */
  3910. bool enabledEffective;
  3911. /* readonly */
  3912. uint id;
  3913. /* readonly */
  3914. Node node;
  3915. /* readonly */
  3916. uint numAttributes;
  3917. ObjectAnimation objectAnimation;
  3918. /* readonly */
  3919. int refs;
  3920. bool temporary;
  3921. /* readonly */
  3922. StringHash type;
  3923. /* readonly */
  3924. String typeName;
  3925. /* readonly */
  3926. int weakRefs;
  3927. };
  3928. class DecalSet
  3929. {
  3930. // Methods:
  3931. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3932. void ApplyAttributes();
  3933. void DrawDebugGeometry(DebugRenderer, bool);
  3934. Variant GetAttribute(const String&) const;
  3935. ValueAnimation GetAttributeAnimation(const String&) const;
  3936. float GetAttributeAnimationSpeed(const String&) const;
  3937. float GetAttributeAnimationTime(const String&) const;
  3938. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3939. Variant GetAttributeDefault(const String&) const;
  3940. bool GetInterceptNetworkUpdate(const String&) const;
  3941. bool HasSubscribedToEvent(Object, const String&);
  3942. bool HasSubscribedToEvent(const String&);
  3943. bool IsInView(Camera) const;
  3944. bool Load(File, bool = false);
  3945. bool Load(VectorBuffer&, bool = false);
  3946. bool LoadJSON(const JSONValue&, bool = false);
  3947. bool LoadXML(const XMLElement&, bool = false);
  3948. void MarkNetworkUpdate() const;
  3949. void Remove();
  3950. void RemoveAllDecals();
  3951. void RemoveAttributeAnimation(const String&);
  3952. void RemoveDecals(uint);
  3953. void RemoveInstanceDefault();
  3954. void RemoveObjectAnimation();
  3955. void ResetToDefault();
  3956. bool Save(File) const;
  3957. bool Save(VectorBuffer&) const;
  3958. bool SaveJSON(JSONValue&) const;
  3959. bool SaveXML(XMLElement&) const;
  3960. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3961. void SetAnimationTime(float);
  3962. bool SetAttribute(const String&, const Variant&);
  3963. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3964. void SetAttributeAnimationSpeed(const String&, float);
  3965. void SetAttributeAnimationTime(const String&, float);
  3966. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3967. void SetInterceptNetworkUpdate(const String&, bool);
  3968. // Properties:
  3969. bool animationEnabled;
  3970. /* readonly */
  3971. Array<Variant> attributeDefaults;
  3972. /* readonly */
  3973. Array<AttributeInfo> attributeInfos;
  3974. Array<Variant> attributes;
  3975. /* readonly */
  3976. BoundingBox boundingBox;
  3977. bool castShadows;
  3978. /* readonly */
  3979. String category;
  3980. float drawDistance;
  3981. bool enabled;
  3982. /* readonly */
  3983. bool enabledEffective;
  3984. /* readonly */
  3985. uint id;
  3986. /* readonly */
  3987. bool inView;
  3988. uint lightMask;
  3989. float lodBias;
  3990. Material material;
  3991. uint maxIndices;
  3992. uint maxLights;
  3993. uint maxVertices;
  3994. /* readonly */
  3995. Node node;
  3996. /* readonly */
  3997. uint numAttributes;
  3998. /* readonly */
  3999. uint numDecals;
  4000. /* readonly */
  4001. uint numIndices;
  4002. /* readonly */
  4003. uint numVertices;
  4004. ObjectAnimation objectAnimation;
  4005. bool occludee;
  4006. bool occluder;
  4007. /* readonly */
  4008. int refs;
  4009. float shadowDistance;
  4010. uint shadowMask;
  4011. bool temporary;
  4012. /* readonly */
  4013. StringHash type;
  4014. /* readonly */
  4015. String typeName;
  4016. uint viewMask;
  4017. /* readonly */
  4018. int weakRefs;
  4019. /* readonly */
  4020. BoundingBox worldBoundingBox;
  4021. /* readonly */
  4022. Zone zone;
  4023. uint zoneMask;
  4024. };
  4025. class Deserializer
  4026. {
  4027. // Methods:
  4028. Array<uint8> Read(uint);
  4029. bool ReadBool();
  4030. BoundingBox ReadBoundingBox();
  4031. int8 ReadByte();
  4032. Color ReadColor();
  4033. double ReadDouble();
  4034. String ReadFileID();
  4035. float ReadFloat();
  4036. int ReadInt();
  4037. IntRect ReadIntRect();
  4038. IntVector2 ReadIntVector2();
  4039. String ReadLine();
  4040. Matrix3 ReadMatrix3();
  4041. Matrix3x4 ReadMatrix3x4();
  4042. Matrix4 ReadMatrix4();
  4043. uint ReadNetID();
  4044. Quaternion ReadPackedQuaternion();
  4045. Vector3 ReadPackedVector3(float);
  4046. Quaternion ReadQuaternion();
  4047. int16 ReadShort();
  4048. String ReadString();
  4049. StringHash ReadStringHash();
  4050. uint8 ReadUByte();
  4051. uint ReadUInt();
  4052. uint16 ReadUShort();
  4053. uint ReadVLE();
  4054. Variant ReadVariant();
  4055. VariantMap ReadVariantMap();
  4056. Vector2 ReadVector2();
  4057. Vector3 ReadVector3();
  4058. Vector4 ReadVector4();
  4059. VectorBuffer ReadVectorBuffer(uint);
  4060. uint Seek(uint);
  4061. // Properties:
  4062. /* readonly */
  4063. uint checksum;
  4064. /* readonly */
  4065. bool eof;
  4066. /* readonly */
  4067. String name;
  4068. /* readonly */
  4069. uint position;
  4070. /* readonly */
  4071. uint size;
  4072. };
  4073. class Dictionary
  4074. {
  4075. // Methods:
  4076. void Clear();
  4077. void Erase(const String&);
  4078. bool Exists(const String&) const;
  4079. bool Get(const String&, void*) const;
  4080. bool Get(const String&, double&) const;
  4081. bool Get(const String&, int64&) const;
  4082. void Set(const String&, const void*);
  4083. void Set(const String&, const double&);
  4084. void Set(const String&, const int64&);
  4085. // Properties:
  4086. /* readonly */
  4087. bool empty;
  4088. /* readonly */
  4089. Array<String> keys;
  4090. /* readonly */
  4091. uint length;
  4092. };
  4093. class DictionaryValue
  4094. {
  4095. };
  4096. class Drawable
  4097. {
  4098. // Methods:
  4099. void ApplyAttributes();
  4100. void DrawDebugGeometry(DebugRenderer, bool);
  4101. Variant GetAttribute(const String&) const;
  4102. ValueAnimation GetAttributeAnimation(const String&) const;
  4103. float GetAttributeAnimationSpeed(const String&) const;
  4104. float GetAttributeAnimationTime(const String&) const;
  4105. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4106. Variant GetAttributeDefault(const String&) const;
  4107. bool GetInterceptNetworkUpdate(const String&) const;
  4108. bool HasSubscribedToEvent(Object, const String&);
  4109. bool HasSubscribedToEvent(const String&);
  4110. bool IsInView(Camera) const;
  4111. bool Load(File, bool = false);
  4112. bool Load(VectorBuffer&, bool = false);
  4113. bool LoadJSON(const JSONValue&, bool = false);
  4114. bool LoadXML(const XMLElement&, bool = false);
  4115. void MarkNetworkUpdate() const;
  4116. void Remove();
  4117. void RemoveAttributeAnimation(const String&);
  4118. void RemoveInstanceDefault();
  4119. void RemoveObjectAnimation();
  4120. void ResetToDefault();
  4121. bool Save(File) const;
  4122. bool Save(VectorBuffer&) const;
  4123. bool SaveJSON(JSONValue&) const;
  4124. bool SaveXML(XMLElement&) const;
  4125. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4126. void SetAnimationTime(float);
  4127. bool SetAttribute(const String&, const Variant&);
  4128. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4129. void SetAttributeAnimationSpeed(const String&, float);
  4130. void SetAttributeAnimationTime(const String&, float);
  4131. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4132. void SetInterceptNetworkUpdate(const String&, bool);
  4133. // Properties:
  4134. bool animationEnabled;
  4135. /* readonly */
  4136. Array<Variant> attributeDefaults;
  4137. /* readonly */
  4138. Array<AttributeInfo> attributeInfos;
  4139. Array<Variant> attributes;
  4140. /* readonly */
  4141. BoundingBox boundingBox;
  4142. bool castShadows;
  4143. /* readonly */
  4144. String category;
  4145. float drawDistance;
  4146. bool enabled;
  4147. /* readonly */
  4148. bool enabledEffective;
  4149. /* readonly */
  4150. uint id;
  4151. /* readonly */
  4152. bool inView;
  4153. uint lightMask;
  4154. float lodBias;
  4155. uint maxLights;
  4156. /* readonly */
  4157. Node node;
  4158. /* readonly */
  4159. uint numAttributes;
  4160. ObjectAnimation objectAnimation;
  4161. bool occludee;
  4162. bool occluder;
  4163. /* readonly */
  4164. int refs;
  4165. float shadowDistance;
  4166. uint shadowMask;
  4167. bool temporary;
  4168. /* readonly */
  4169. StringHash type;
  4170. /* readonly */
  4171. String typeName;
  4172. uint viewMask;
  4173. /* readonly */
  4174. int weakRefs;
  4175. /* readonly */
  4176. BoundingBox worldBoundingBox;
  4177. uint zoneMask;
  4178. };
  4179. class Drawable2D
  4180. {
  4181. // Methods:
  4182. void ApplyAttributes();
  4183. void DrawDebugGeometry(DebugRenderer, bool);
  4184. Variant GetAttribute(const String&) const;
  4185. ValueAnimation GetAttributeAnimation(const String&) const;
  4186. float GetAttributeAnimationSpeed(const String&) const;
  4187. float GetAttributeAnimationTime(const String&) const;
  4188. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4189. Variant GetAttributeDefault(const String&) const;
  4190. bool GetInterceptNetworkUpdate(const String&) const;
  4191. bool HasSubscribedToEvent(Object, const String&);
  4192. bool HasSubscribedToEvent(const String&);
  4193. bool IsInView(Camera) const;
  4194. bool Load(File, bool = false);
  4195. bool Load(VectorBuffer&, bool = false);
  4196. bool LoadJSON(const JSONValue&, bool = false);
  4197. bool LoadXML(const XMLElement&, bool = false);
  4198. void MarkNetworkUpdate() const;
  4199. void Remove();
  4200. void RemoveAttributeAnimation(const String&);
  4201. void RemoveInstanceDefault();
  4202. void RemoveObjectAnimation();
  4203. void ResetToDefault();
  4204. bool Save(File) const;
  4205. bool Save(VectorBuffer&) const;
  4206. bool SaveJSON(JSONValue&) const;
  4207. bool SaveXML(XMLElement&) const;
  4208. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4209. void SetAnimationTime(float);
  4210. bool SetAttribute(const String&, const Variant&);
  4211. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4212. void SetAttributeAnimationSpeed(const String&, float);
  4213. void SetAttributeAnimationTime(const String&, float);
  4214. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4215. void SetInterceptNetworkUpdate(const String&, bool);
  4216. // Properties:
  4217. bool animationEnabled;
  4218. /* readonly */
  4219. Array<Variant> attributeDefaults;
  4220. /* readonly */
  4221. Array<AttributeInfo> attributeInfos;
  4222. Array<Variant> attributes;
  4223. /* readonly */
  4224. BoundingBox boundingBox;
  4225. bool castShadows;
  4226. /* readonly */
  4227. String category;
  4228. float drawDistance;
  4229. bool enabled;
  4230. /* readonly */
  4231. bool enabledEffective;
  4232. /* readonly */
  4233. uint id;
  4234. /* readonly */
  4235. bool inView;
  4236. int layer;
  4237. uint lightMask;
  4238. float lodBias;
  4239. uint maxLights;
  4240. /* readonly */
  4241. Node node;
  4242. /* readonly */
  4243. uint numAttributes;
  4244. ObjectAnimation objectAnimation;
  4245. bool occludee;
  4246. bool occluder;
  4247. int orderInLayer;
  4248. /* readonly */
  4249. int refs;
  4250. float shadowDistance;
  4251. uint shadowMask;
  4252. bool temporary;
  4253. /* readonly */
  4254. StringHash type;
  4255. /* readonly */
  4256. String typeName;
  4257. uint viewMask;
  4258. /* readonly */
  4259. int weakRefs;
  4260. /* readonly */
  4261. BoundingBox worldBoundingBox;
  4262. uint zoneMask;
  4263. };
  4264. class DropDownList
  4265. {
  4266. // Methods:
  4267. void AddChild(UIElement);
  4268. void AddItem(UIElement);
  4269. void AddTag(const String&);
  4270. void AddTags(const String&, int8 = ';');
  4271. void ApplyAttributes();
  4272. void BringToFront();
  4273. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4274. void DisableLayoutUpdate();
  4275. IntVector2 ElementToScreen(const IntVector2&);
  4276. void EnableLayoutUpdate();
  4277. uint FindChild(UIElement) const;
  4278. Variant GetAttribute(const String&) const;
  4279. ValueAnimation GetAttributeAnimation(const String&) const;
  4280. float GetAttributeAnimationSpeed(const String&) const;
  4281. float GetAttributeAnimationTime(const String&) const;
  4282. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4283. Variant GetAttributeDefault(const String&) const;
  4284. UIElement GetChild(const String&, bool = false) const;
  4285. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4286. Array<UIElement> GetChildren(bool = false) const;
  4287. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4288. UIElement GetElementEventSender() const;
  4289. bool GetInterceptNetworkUpdate(const String&) const;
  4290. Array<UIElement> GetItems() const;
  4291. uint GetNumChildren(bool) const;
  4292. bool HasSubscribedToEvent(Object, const String&);
  4293. bool HasSubscribedToEvent(const String&);
  4294. bool HasTag(const String&) const;
  4295. void InsertChild(uint, UIElement);
  4296. void InsertItem(uint, UIElement);
  4297. bool IsInside(IntVector2, bool);
  4298. bool IsInsideCombined(IntVector2, bool);
  4299. bool Load(File, bool = false);
  4300. bool Load(VectorBuffer&, bool = false);
  4301. bool LoadChildXML(XMLFile, XMLFile = null);
  4302. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4303. bool LoadJSON(const JSONValue&, bool = false);
  4304. bool LoadXML(File);
  4305. bool LoadXML(VectorBuffer&);
  4306. bool LoadXML(XMLFile, XMLFile);
  4307. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4308. bool LoadXML(const XMLElement&, bool = false);
  4309. void MarkNetworkUpdate() const;
  4310. void Remove();
  4311. void RemoveAllChildren();
  4312. void RemoveAllItems();
  4313. void RemoveAllTags();
  4314. void RemoveAttributeAnimation(const String&);
  4315. void RemoveChild(UIElement, uint = 0);
  4316. void RemoveChild(uint);
  4317. void RemoveInstanceDefault();
  4318. void RemoveItem(UIElement);
  4319. void RemoveItem(uint);
  4320. void RemoveObjectAnimation();
  4321. bool RemoveTag(const String&);
  4322. void ResetDeepEnabled();
  4323. void ResetToDefault();
  4324. bool Save(File) const;
  4325. bool Save(VectorBuffer&) const;
  4326. bool SaveJSON(JSONValue&) const;
  4327. bool SaveXML(File, const String& = "\t");
  4328. bool SaveXML(VectorBuffer&, const String& = "\t");
  4329. bool SaveXML(XMLElement&) const;
  4330. IntVector2 ScreenToElement(const IntVector2&);
  4331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4332. void SetAccelerator(int, int);
  4333. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4334. void SetAnimationTime(float);
  4335. bool SetAttribute(const String&, const Variant&);
  4336. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4337. void SetAttributeAnimationSpeed(const String&, float);
  4338. void SetAttributeAnimationTime(const String&, float);
  4339. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4340. void SetDeepEnabled(bool);
  4341. void SetEnabledRecursive(bool);
  4342. void SetFixedHeight(int);
  4343. void SetFixedSize(int, int);
  4344. void SetFixedWidth(int);
  4345. void SetFullImageRect();
  4346. void SetHoverOffset(int, int);
  4347. void SetInterceptNetworkUpdate(const String&, bool);
  4348. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4349. void SetMaxSize(int, int);
  4350. void SetMinSize(int, int);
  4351. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4352. void SetPosition(int, int);
  4353. void SetPressedChildOffset(int, int);
  4354. void SetPressedOffset(int, int);
  4355. void SetRepeat(float, float);
  4356. void SetSize(int, int);
  4357. bool SetStyle(const String&, XMLFile = null);
  4358. bool SetStyle(const XMLElement&);
  4359. bool SetStyleAuto(XMLFile = null);
  4360. void UpdateLayout();
  4361. const Variant& GetVar(const StringHash&);
  4362. UIElement getPopup() const;
  4363. // Properties:
  4364. /* readonly */
  4365. int acceleratorKey;
  4366. /* readonly */
  4367. int acceleratorQualifiers;
  4368. bool animationEnabled;
  4369. /* readonly */
  4370. Array<Variant> attributeDefaults;
  4371. /* readonly */
  4372. Array<AttributeInfo> attributeInfos;
  4373. Array<Variant> attributes;
  4374. BlendMode blendMode;
  4375. IntRect border;
  4376. bool bringToBack;
  4377. bool bringToFront;
  4378. /* readonly */
  4379. String category;
  4380. /* readonly */
  4381. IntVector2 childOffset;
  4382. /* readonly */
  4383. Array<UIElement> children;
  4384. IntRect clipBorder;
  4385. bool clipChildren;
  4386. /* writeonly */
  4387. Color color;
  4388. /* readonly */
  4389. bool colorGradient;
  4390. Array<Color> colors;
  4391. /* readonly */
  4392. IntRect combinedScreenRect;
  4393. XMLFile defaultStyle;
  4394. /* readonly */
  4395. float derivedOpacity;
  4396. /* readonly */
  4397. uint dragButtonCombo;
  4398. /* readonly */
  4399. int dragButtonCount;
  4400. uint dragDropMode;
  4401. bool editable;
  4402. bool elementEventSender;
  4403. bool enabled;
  4404. /* readonly */
  4405. bool enabledSelf;
  4406. /* readonly */
  4407. bool fixedHeight;
  4408. /* readonly */
  4409. bool fixedSize;
  4410. /* readonly */
  4411. bool fixedWidth;
  4412. bool focus;
  4413. FocusMode focusMode;
  4414. int height;
  4415. HorizontalAlignment horizontalAlignment;
  4416. IntVector2 hoverOffset;
  4417. /* readonly */
  4418. bool hovering;
  4419. IntRect imageBorder;
  4420. IntRect imageRect;
  4421. int indent;
  4422. int indentSpacing;
  4423. /* readonly */
  4424. int indentWidth;
  4425. bool internal;
  4426. /* readonly */
  4427. Array<UIElement> items;
  4428. IntRect layoutBorder;
  4429. Vector2 layoutFlexScale;
  4430. LayoutMode layoutMode;
  4431. int layoutSpacing;
  4432. /* readonly */
  4433. ListView listView;
  4434. int maxHeight;
  4435. IntVector2 maxSize;
  4436. int maxWidth;
  4437. int minHeight;
  4438. IntVector2 minSize;
  4439. int minWidth;
  4440. String name;
  4441. /* readonly */
  4442. uint numAllChildren;
  4443. /* readonly */
  4444. uint numAttributes;
  4445. /* readonly */
  4446. uint numChildren;
  4447. /* readonly */
  4448. uint numItems;
  4449. ObjectAnimation objectAnimation;
  4450. float opacity;
  4451. UIElement parent;
  4452. /* readonly */
  4453. UIElement placeholder;
  4454. String placeholderText;
  4455. IntVector2 position;
  4456. /* readonly */
  4457. bool pressed;
  4458. IntVector2 pressedChildOffset;
  4459. IntVector2 pressedOffset;
  4460. int priority;
  4461. /* readonly */
  4462. int refs;
  4463. float repeatDelay;
  4464. float repeatRate;
  4465. bool resizePopup;
  4466. /* readonly */
  4467. UIElement root;
  4468. /* readonly */
  4469. IntVector2 screenPosition;
  4470. bool selected;
  4471. /* readonly */
  4472. UIElement selectedItem;
  4473. uint selection;
  4474. bool showPopup;
  4475. IntVector2 size;
  4476. bool sortChildren;
  4477. String style;
  4478. /* readonly */
  4479. Array<String> tags;
  4480. bool temporary;
  4481. Texture texture;
  4482. bool tiled;
  4483. TraversalMode traversalMode;
  4484. /* readonly */
  4485. StringHash type;
  4486. /* readonly */
  4487. String typeName;
  4488. bool useDerivedOpacity;
  4489. /* readonly */
  4490. VariantMap vars;
  4491. VerticalAlignment verticalAlignment;
  4492. bool visible;
  4493. /* readonly */
  4494. bool visibleEffective;
  4495. /* readonly */
  4496. int weakRefs;
  4497. int width;
  4498. };
  4499. class DynamicNavigationMesh
  4500. {
  4501. // Methods:
  4502. void ApplyAttributes();
  4503. bool Build();
  4504. bool Build(const BoundingBox&);
  4505. void DrawDebugGeometry(DebugRenderer, bool);
  4506. void DrawDebugGeometry(bool);
  4507. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4508. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4509. float GetAreaCost(uint) const;
  4510. Variant GetAttribute(const String&) const;
  4511. ValueAnimation GetAttributeAnimation(const String&) const;
  4512. float GetAttributeAnimationSpeed(const String&) const;
  4513. float GetAttributeAnimationTime(const String&) const;
  4514. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4515. Variant GetAttributeDefault(const String&) const;
  4516. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4517. bool GetInterceptNetworkUpdate(const String&) const;
  4518. Vector3 GetRandomPoint();
  4519. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4520. bool HasSubscribedToEvent(Object, const String&);
  4521. bool HasSubscribedToEvent(const String&);
  4522. bool Load(File, bool = false);
  4523. bool Load(VectorBuffer&, bool = false);
  4524. bool LoadJSON(const JSONValue&, bool = false);
  4525. bool LoadXML(const XMLElement&, bool = false);
  4526. void MarkNetworkUpdate() const;
  4527. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4528. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4529. void Remove();
  4530. void RemoveAttributeAnimation(const String&);
  4531. void RemoveInstanceDefault();
  4532. void RemoveObjectAnimation();
  4533. void ResetToDefault();
  4534. bool Save(File) const;
  4535. bool Save(VectorBuffer&) const;
  4536. bool SaveJSON(JSONValue&) const;
  4537. bool SaveXML(XMLElement&) const;
  4538. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4539. void SetAnimationTime(float);
  4540. void SetAreaCost(uint, float);
  4541. bool SetAttribute(const String&, const Variant&);
  4542. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4543. void SetAttributeAnimationSpeed(const String&, float);
  4544. void SetAttributeAnimationTime(const String&, float);
  4545. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4546. void SetInterceptNetworkUpdate(const String&, bool);
  4547. // Properties:
  4548. float agentHeight;
  4549. float agentMaxClimb;
  4550. float agentMaxSlope;
  4551. float agentRadius;
  4552. bool animationEnabled;
  4553. /* readonly */
  4554. Array<Variant> attributeDefaults;
  4555. /* readonly */
  4556. Array<AttributeInfo> attributeInfos;
  4557. Array<Variant> attributes;
  4558. /* readonly */
  4559. BoundingBox boundingBox;
  4560. /* readonly */
  4561. String category;
  4562. float cellHeight;
  4563. float cellSize;
  4564. float detailSampleDistance;
  4565. float detailSampleMaxError;
  4566. bool drawNavAreas;
  4567. bool drawObstacles;
  4568. bool drawOffMeshConnections;
  4569. float edgeMaxError;
  4570. float edgeMaxLength;
  4571. bool enabled;
  4572. /* readonly */
  4573. bool enabledEffective;
  4574. /* readonly */
  4575. uint id;
  4576. /* readonly */
  4577. bool initialized;
  4578. bool maxLayers;
  4579. uint maxObstacles;
  4580. /* readonly */
  4581. Node node;
  4582. /* readonly */
  4583. uint numAttributes;
  4584. /* readonly */
  4585. IntVector2 numTiles;
  4586. ObjectAnimation objectAnimation;
  4587. Vector3 padding;
  4588. NavmeshPartitionType partitionType;
  4589. /* readonly */
  4590. int refs;
  4591. float regionMergeSize;
  4592. float regionMinSize;
  4593. bool temporary;
  4594. int tileSize;
  4595. /* readonly */
  4596. StringHash type;
  4597. /* readonly */
  4598. String typeName;
  4599. /* readonly */
  4600. int weakRefs;
  4601. /* readonly */
  4602. BoundingBox worldBoundingBox;
  4603. };
  4604. class Engine
  4605. {
  4606. // Methods:
  4607. Console CreateConsole();
  4608. DebugHud CreateDebugHud();
  4609. void DumpMemory();
  4610. void DumpProfiler();
  4611. void DumpResources(bool = false);
  4612. void Exit();
  4613. bool HasSubscribedToEvent(Object, const String&);
  4614. bool HasSubscribedToEvent(const String&);
  4615. void RunFrame();
  4616. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4617. // Properties:
  4618. bool autoExit;
  4619. /* readonly */
  4620. String category;
  4621. /* readonly */
  4622. bool exiting;
  4623. /* readonly */
  4624. bool headless;
  4625. /* readonly */
  4626. bool initialized;
  4627. int maxFps;
  4628. int maxInactiveFps;
  4629. int minFps;
  4630. bool pauseMinimized;
  4631. /* readonly */
  4632. int refs;
  4633. int timeStepSmoothing;
  4634. /* readonly */
  4635. StringHash type;
  4636. /* readonly */
  4637. String typeName;
  4638. /* readonly */
  4639. int weakRefs;
  4640. };
  4641. class File
  4642. {
  4643. // Methods:
  4644. void Close();
  4645. bool HasSubscribedToEvent(Object, const String&);
  4646. bool HasSubscribedToEvent(const String&);
  4647. bool Open(const String&, FileMode = FILE_READ);
  4648. Array<uint8> Read(uint);
  4649. bool ReadBool();
  4650. BoundingBox ReadBoundingBox();
  4651. int8 ReadByte();
  4652. Color ReadColor();
  4653. double ReadDouble();
  4654. String ReadFileID();
  4655. float ReadFloat();
  4656. int ReadInt();
  4657. IntRect ReadIntRect();
  4658. IntVector2 ReadIntVector2();
  4659. String ReadLine();
  4660. Matrix3 ReadMatrix3();
  4661. Matrix3x4 ReadMatrix3x4();
  4662. Matrix4 ReadMatrix4();
  4663. uint ReadNetID();
  4664. Quaternion ReadPackedQuaternion();
  4665. Vector3 ReadPackedVector3(float);
  4666. Quaternion ReadQuaternion();
  4667. int16 ReadShort();
  4668. String ReadString();
  4669. StringHash ReadStringHash();
  4670. uint8 ReadUByte();
  4671. uint ReadUInt();
  4672. uint16 ReadUShort();
  4673. uint ReadVLE();
  4674. Variant ReadVariant();
  4675. VariantMap ReadVariantMap();
  4676. Vector2 ReadVector2();
  4677. Vector3 ReadVector3();
  4678. Vector4 ReadVector4();
  4679. VectorBuffer ReadVectorBuffer(uint);
  4680. uint Seek(uint);
  4681. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4682. uint Write(Array<uint8>);
  4683. bool WriteBool(bool);
  4684. bool WriteBoundingBox(const BoundingBox&);
  4685. bool WriteByte(int8);
  4686. bool WriteColor(const Color&);
  4687. bool WriteDouble(double);
  4688. bool WriteFileID(const String&);
  4689. bool WriteFloat(float);
  4690. bool WriteInt(int);
  4691. bool WriteIntRect(const IntRect&);
  4692. bool WriteIntVector2(const IntVector2&);
  4693. bool WriteLine(const String&);
  4694. bool WriteMatrix3(const Matrix3&);
  4695. bool WriteMatrix3x4(const Matrix3x4&);
  4696. bool WriteMatrix4(const Matrix4&);
  4697. bool WriteNetID(uint);
  4698. bool WritePackedQuaternion(const Quaternion&);
  4699. bool WritePackedVector3(const Vector3&, float);
  4700. bool WriteQuaternion(const Quaternion&);
  4701. bool WriteShort(int16);
  4702. bool WriteString(const String&);
  4703. bool WriteStringHash(const StringHash&);
  4704. bool WriteUByte(uint8);
  4705. bool WriteUInt(uint);
  4706. bool WriteUShort(uint16);
  4707. bool WriteVLE(uint);
  4708. bool WriteVariant(const Variant&);
  4709. bool WriteVariantMap(const VariantMap&);
  4710. bool WriteVector2(const Vector2&);
  4711. bool WriteVector3(const Vector3&);
  4712. bool WriteVector4(const Vector4&);
  4713. bool WriteVectorBuffer(const VectorBuffer&);
  4714. // Properties:
  4715. /* readonly */
  4716. String category;
  4717. /* readonly */
  4718. uint checksum;
  4719. /* readonly */
  4720. bool eof;
  4721. /* readonly */
  4722. FileMode mode;
  4723. /* readonly */
  4724. String name;
  4725. /* readonly */
  4726. bool open;
  4727. /* readonly */
  4728. bool packaged;
  4729. /* readonly */
  4730. uint position;
  4731. /* readonly */
  4732. int refs;
  4733. /* readonly */
  4734. uint size;
  4735. /* readonly */
  4736. StringHash type;
  4737. /* readonly */
  4738. String typeName;
  4739. /* readonly */
  4740. int weakRefs;
  4741. };
  4742. class FileSelector
  4743. {
  4744. // Methods:
  4745. bool HasSubscribedToEvent(Object, const String&);
  4746. bool HasSubscribedToEvent(const String&);
  4747. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4748. void SetButtonTexts(const String&, const String&);
  4749. void SetFilters(Array<String>, uint);
  4750. void UpdateElements();
  4751. // Properties:
  4752. /* readonly */
  4753. Button cancelButton;
  4754. /* readonly */
  4755. String category;
  4756. XMLFile defaultStyle;
  4757. bool directoryMode;
  4758. /* readonly */
  4759. ListView fileList;
  4760. String fileName;
  4761. /* readonly */
  4762. LineEdit fileNameEdit;
  4763. /* readonly */
  4764. String filter;
  4765. /* readonly */
  4766. uint filterIndex;
  4767. /* readonly */
  4768. DropDownList filterList;
  4769. /* readonly */
  4770. Button okButton;
  4771. String path;
  4772. /* readonly */
  4773. LineEdit pathEdit;
  4774. /* readonly */
  4775. int refs;
  4776. String title;
  4777. /* readonly */
  4778. Text titleText;
  4779. /* readonly */
  4780. StringHash type;
  4781. /* readonly */
  4782. String typeName;
  4783. /* readonly */
  4784. int weakRefs;
  4785. /* readonly */
  4786. Window window;
  4787. };
  4788. class FileSystem
  4789. {
  4790. // Methods:
  4791. bool Copy(const String&, const String&);
  4792. bool CreateDir(const String&);
  4793. bool Delete(const String&);
  4794. bool DirExists(const String&) const;
  4795. bool FileExists(const String&) const;
  4796. String GetAppPreferencesDir(const String&, const String&) const;
  4797. uint GetLastModifiedTime(const String&) const;
  4798. bool HasSubscribedToEvent(Object, const String&);
  4799. bool HasSubscribedToEvent(const String&);
  4800. bool Rename(const String&, const String&);
  4801. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4802. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4803. bool SetLastModifiedTime(const String&, uint);
  4804. int SystemCommand(const String&, bool = false);
  4805. uint SystemCommandAsync(const String&);
  4806. bool SystemOpen(const String&, const String&);
  4807. int SystemRun(const String&, Array<String>);
  4808. uint SystemRunAsync(const String&, Array<String>);
  4809. // Properties:
  4810. /* readonly */
  4811. String category;
  4812. String currentDir;
  4813. bool executeConsoleCommands;
  4814. /* readonly */
  4815. String programDir;
  4816. /* readonly */
  4817. int refs;
  4818. /* readonly */
  4819. StringHash type;
  4820. /* readonly */
  4821. String typeName;
  4822. /* readonly */
  4823. String userDocumentsDir;
  4824. /* readonly */
  4825. int weakRefs;
  4826. };
  4827. class FocusParameters
  4828. {
  4829. // Properties:
  4830. bool autoSize;
  4831. bool focus;
  4832. float minView;
  4833. bool nonUniform;
  4834. float quantize;
  4835. };
  4836. class Font
  4837. {
  4838. // Methods:
  4839. IntVector2 GetTotalGlyphOffset(int) const;
  4840. bool HasSubscribedToEvent(Object, const String&);
  4841. bool HasSubscribedToEvent(const String&);
  4842. bool Load(File);
  4843. bool Load(VectorBuffer&);
  4844. bool Save(File) const;
  4845. bool Save(VectorBuffer&) const;
  4846. bool SaveXML(File, int, bool = false, const String& = "\t");
  4847. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4848. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4849. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4850. // Properties:
  4851. IntVector2 absoluteGlyphOffset;
  4852. /* readonly */
  4853. String category;
  4854. /* readonly */
  4855. uint memoryUse;
  4856. String name;
  4857. /* readonly */
  4858. int refs;
  4859. Vector2 scaledGlyphOffset;
  4860. /* readonly */
  4861. StringHash type;
  4862. /* readonly */
  4863. String typeName;
  4864. /* readonly */
  4865. uint useTimer;
  4866. /* readonly */
  4867. int weakRefs;
  4868. };
  4869. class Frustum
  4870. {
  4871. // Methods:
  4872. void Define(const BoundingBox&, const Matrix3x4&);
  4873. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4874. void Define(float, float, float, float, float, const Matrix3x4&);
  4875. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4876. float Distance(const Vector3&) const;
  4877. Intersection IsInside(const BoundingBox&);
  4878. Intersection IsInside(const Sphere&);
  4879. Intersection IsInside(const Vector3&);
  4880. Intersection IsInsideFast(const BoundingBox&) const;
  4881. Intersection IsInsideFast(const Sphere&) const;
  4882. void Transform(const Matrix3&);
  4883. void Transform(const Matrix3x4&);
  4884. Frustum Transformed(const Matrix3&) const;
  4885. Frustum Transformed(const Matrix3x4&) const;
  4886. // Properties:
  4887. /* readonly */
  4888. Array<Vector3> vertices;
  4889. };
  4890. class Geometry
  4891. {
  4892. // Methods:
  4893. bool HasSubscribedToEvent(Object, const String&);
  4894. bool HasSubscribedToEvent(const String&);
  4895. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4896. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4897. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4898. void SetIndexBuffer(IndexBuffer);
  4899. bool SetVertexBuffer(uint, VertexBuffer, uint = MASK_DEFAULT);
  4900. // Properties:
  4901. /* readonly */
  4902. String category;
  4903. /* readonly */
  4904. bool empty;
  4905. IndexBuffer indexBuffer;
  4906. /* readonly */
  4907. uint indexCount;
  4908. /* readonly */
  4909. uint indexStart;
  4910. float lodDistance;
  4911. uint numVertexBuffers;
  4912. /* readonly */
  4913. PrimitiveType primitiveType;
  4914. /* readonly */
  4915. int refs;
  4916. /* readonly */
  4917. StringHash type;
  4918. /* readonly */
  4919. String typeName;
  4920. /* readonly */
  4921. Array<VertexBuffer> vertexBuffers;
  4922. /* readonly */
  4923. uint vertexCount;
  4924. /* readonly */
  4925. Array<uint> vertexElementMasks;
  4926. /* readonly */
  4927. uint vertexStart;
  4928. /* readonly */
  4929. int weakRefs;
  4930. };
  4931. class Graphics
  4932. {
  4933. // Methods:
  4934. void BeginDumpShaders(const String&);
  4935. void Close();
  4936. void EndDumpShaders();
  4937. bool HasSubscribedToEvent(Object, const String&);
  4938. bool HasSubscribedToEvent(const String&);
  4939. void Maximize();
  4940. void Minimize();
  4941. void PrecacheShaders(File);
  4942. void PrecacheShaders(VectorBuffer&);
  4943. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4944. bool SetMode(int, int);
  4945. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4946. void SetWindowPosition(int, int);
  4947. bool TakeScreenShot(Image);
  4948. bool ToggleFullscreen();
  4949. // Properties:
  4950. /* readonly */
  4951. String apiName;
  4952. /* readonly */
  4953. bool borderless;
  4954. /* readonly */
  4955. String category;
  4956. /* readonly */
  4957. bool deferredSupport;
  4958. /* readonly */
  4959. IntVector2 desktopResolution;
  4960. /* readonly */
  4961. bool deviceLost;
  4962. bool flushGPU;
  4963. /* readonly */
  4964. bool fullscreen;
  4965. /* readonly */
  4966. bool hardwareShadowSupport;
  4967. /* readonly */
  4968. int height;
  4969. /* readonly */
  4970. bool initialized;
  4971. /* readonly */
  4972. bool instancingSupport;
  4973. /* readonly */
  4974. bool lightPrepassSupport;
  4975. /* readonly */
  4976. int multiSample;
  4977. /* readonly */
  4978. Array<int> multiSampleLevels;
  4979. /* readonly */
  4980. uint numBatches;
  4981. /* readonly */
  4982. uint numPrimitives;
  4983. String orientations;
  4984. /* readonly */
  4985. bool readableDepthSupport;
  4986. /* readonly */
  4987. int refs;
  4988. /* readonly */
  4989. bool resizable;
  4990. /* readonly */
  4991. Array<IntVector2> resolutions;
  4992. bool sRGB;
  4993. /* readonly */
  4994. bool sRGBSupport;
  4995. /* readonly */
  4996. bool sRGBWriteSupport;
  4997. /* readonly */
  4998. bool tripleBuffer;
  4999. /* readonly */
  5000. StringHash type;
  5001. /* readonly */
  5002. String typeName;
  5003. /* readonly */
  5004. bool vsync;
  5005. /* readonly */
  5006. int weakRefs;
  5007. /* readonly */
  5008. int width;
  5009. /* writeonly */
  5010. Image windowIcon;
  5011. IntVector2 windowPosition;
  5012. String windowTitle;
  5013. };
  5014. class HttpRequest
  5015. {
  5016. // Methods:
  5017. Array<uint8> Read(uint);
  5018. bool ReadBool();
  5019. BoundingBox ReadBoundingBox();
  5020. int8 ReadByte();
  5021. Color ReadColor();
  5022. double ReadDouble();
  5023. String ReadFileID();
  5024. float ReadFloat();
  5025. int ReadInt();
  5026. IntRect ReadIntRect();
  5027. IntVector2 ReadIntVector2();
  5028. String ReadLine();
  5029. Matrix3 ReadMatrix3();
  5030. Matrix3x4 ReadMatrix3x4();
  5031. Matrix4 ReadMatrix4();
  5032. uint ReadNetID();
  5033. Quaternion ReadPackedQuaternion();
  5034. Vector3 ReadPackedVector3(float);
  5035. Quaternion ReadQuaternion();
  5036. int16 ReadShort();
  5037. String ReadString();
  5038. StringHash ReadStringHash();
  5039. uint8 ReadUByte();
  5040. uint ReadUInt();
  5041. uint16 ReadUShort();
  5042. uint ReadVLE();
  5043. Variant ReadVariant();
  5044. VariantMap ReadVariantMap();
  5045. Vector2 ReadVector2();
  5046. Vector3 ReadVector3();
  5047. Vector4 ReadVector4();
  5048. VectorBuffer ReadVectorBuffer(uint);
  5049. uint Seek(uint);
  5050. // Properties:
  5051. /* readonly */
  5052. uint availableSize;
  5053. /* readonly */
  5054. uint checksum;
  5055. /* readonly */
  5056. bool eof;
  5057. /* readonly */
  5058. String error;
  5059. /* readonly */
  5060. String name;
  5061. /* readonly */
  5062. bool open;
  5063. /* readonly */
  5064. uint position;
  5065. /* readonly */
  5066. int refs;
  5067. /* readonly */
  5068. uint size;
  5069. /* readonly */
  5070. HttpRequestState state;
  5071. /* readonly */
  5072. String url;
  5073. /* readonly */
  5074. String verb;
  5075. /* readonly */
  5076. int weakRefs;
  5077. };
  5078. class Image
  5079. {
  5080. // Methods:
  5081. void Clear(const Color&);
  5082. void ClearInt(uint);
  5083. bool FlipHorizontal();
  5084. bool FlipVertical();
  5085. Color GetPixel(int, int) const;
  5086. Color GetPixel(int, int, int) const;
  5087. Color GetPixelBilinear(float, float) const;
  5088. uint GetPixelInt(int, int) const;
  5089. uint GetPixelInt(int, int, int) const;
  5090. Color GetPixelTrilinear(float, float, float) const;
  5091. Image GetSubimage(const IntRect&) const;
  5092. bool HasSubscribedToEvent(Object, const String&);
  5093. bool HasSubscribedToEvent(const String&);
  5094. bool Load(File);
  5095. bool Load(VectorBuffer&);
  5096. bool LoadColorLUT(File);
  5097. bool LoadColorLUT(VectorBuffer&);
  5098. bool Resize(int, int);
  5099. bool Save(File) const;
  5100. bool Save(VectorBuffer&) const;
  5101. bool SaveBMP(const String&) const;
  5102. bool SaveJPG(const String&, int) const;
  5103. bool SavePNG(const String&) const;
  5104. bool SaveTGA(const String&) const;
  5105. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5106. void SetPixel(int, int, const Color&);
  5107. void SetPixel(int, int, int, const Color&);
  5108. void SetPixelInt(int, int, int, uint);
  5109. void SetPixelInt(int, int, uint);
  5110. bool SetSize(int, int, int, uint);
  5111. bool SetSize(int, int, uint);
  5112. // Properties:
  5113. /* readonly */
  5114. bool array;
  5115. /* readonly */
  5116. String category;
  5117. /* readonly */
  5118. uint components;
  5119. /* readonly */
  5120. bool compressed;
  5121. /* readonly */
  5122. CompressedFormat compressedFormat;
  5123. /* readonly */
  5124. bool cubemap;
  5125. /* readonly */
  5126. int depth;
  5127. /* readonly */
  5128. int height;
  5129. /* readonly */
  5130. uint memoryUse;
  5131. String name;
  5132. /* readonly */
  5133. uint numCompressedLevels;
  5134. /* readonly */
  5135. int refs;
  5136. /* readonly */
  5137. bool sRGB;
  5138. /* readonly */
  5139. StringHash type;
  5140. /* readonly */
  5141. String typeName;
  5142. /* readonly */
  5143. uint useTimer;
  5144. /* readonly */
  5145. int weakRefs;
  5146. /* readonly */
  5147. int width;
  5148. };
  5149. class IndexBuffer
  5150. {
  5151. // Methods:
  5152. VectorBuffer GetData();
  5153. bool HasSubscribedToEvent(Object, const String&);
  5154. bool HasSubscribedToEvent(const String&);
  5155. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5156. bool SetData(VectorBuffer&);
  5157. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5158. void SetSize(uint, bool, bool = false);
  5159. // Properties:
  5160. /* readonly */
  5161. String category;
  5162. /* readonly */
  5163. bool dynamic;
  5164. /* readonly */
  5165. uint indexCount;
  5166. /* readonly */
  5167. uint indexSize;
  5168. /* readonly */
  5169. int refs;
  5170. bool shadowed;
  5171. /* readonly */
  5172. StringHash type;
  5173. /* readonly */
  5174. String typeName;
  5175. /* readonly */
  5176. int weakRefs;
  5177. };
  5178. class Input
  5179. {
  5180. // Methods:
  5181. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5182. int GetKeyFromName(const String&) const;
  5183. int GetKeyFromScancode(int) const;
  5184. String GetKeyName(int) const;
  5185. int GetScancodeFromKey(int) const;
  5186. int GetScancodeFromName(const String&) const;
  5187. String GetScancodeName(int) const;
  5188. bool HasSubscribedToEvent(Object, const String&);
  5189. bool HasSubscribedToEvent(const String&);
  5190. uint LoadGestures(File);
  5191. uint LoadGestures(VectorBuffer&);
  5192. bool RecordGesture();
  5193. void RemoveAllGestures();
  5194. bool RemoveGesture(uint);
  5195. bool RemoveScreenJoystick(int);
  5196. void ResetMouseVisible();
  5197. bool SaveGesture(File, uint);
  5198. bool SaveGesture(VectorBuffer&, uint);
  5199. bool SaveGestures(File);
  5200. bool SaveGestures(VectorBuffer&);
  5201. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5202. void SetMouseVisible(bool, bool = false);
  5203. // Properties:
  5204. /* readonly */
  5205. String category;
  5206. /* readonly */
  5207. bool focus;
  5208. /* readonly */
  5209. Array<JoystickState> joysticks;
  5210. /* readonly */
  5211. Array<JoystickState> joysticksByIndex;
  5212. /* readonly */
  5213. Array<bool> keyDown;
  5214. /* readonly */
  5215. Array<bool> keyPress;
  5216. /* readonly */
  5217. bool minimized;
  5218. /* readonly */
  5219. Array<bool> mouseButtonDown;
  5220. /* readonly */
  5221. Array<bool> mouseButtonPress;
  5222. bool mouseGrabbed;
  5223. MouseMode mouseMode;
  5224. /* readonly */
  5225. IntVector2 mouseMove;
  5226. /* readonly */
  5227. int mouseMoveWheel;
  5228. /* readonly */
  5229. int mouseMoveX;
  5230. /* readonly */
  5231. int mouseMoveY;
  5232. /* readonly */
  5233. IntVector2 mousePosition;
  5234. bool mouseVisible;
  5235. /* readonly */
  5236. uint numJoysticks;
  5237. /* readonly */
  5238. uint numTouches;
  5239. /* readonly */
  5240. Array<bool> qualifierDown;
  5241. /* readonly */
  5242. Array<bool> qualifierPress;
  5243. /* readonly */
  5244. int qualifiers;
  5245. /* readonly */
  5246. int refs;
  5247. /* readonly */
  5248. Array<bool> scancodeDown;
  5249. /* readonly */
  5250. Array<bool> scancodePress;
  5251. Array<bool> screenJoystickVisible;
  5252. /* readonly */
  5253. bool screenKeyboardSupport;
  5254. bool screenKeyboardVisible;
  5255. bool toggleFullscreen;
  5256. bool touchEmulation;
  5257. /* readonly */
  5258. Array<TouchState> touches;
  5259. /* readonly */
  5260. StringHash type;
  5261. /* readonly */
  5262. String typeName;
  5263. /* readonly */
  5264. int weakRefs;
  5265. };
  5266. class IntRect
  5267. {
  5268. // Methods:
  5269. Intersection IsInside(const IntVector2&) const;
  5270. // Properties:
  5271. int bottom;
  5272. /* readonly */
  5273. Array<int> data;
  5274. /* readonly */
  5275. int height;
  5276. int left;
  5277. int right;
  5278. /* readonly */
  5279. IntVector2 size;
  5280. int top;
  5281. /* readonly */
  5282. int width;
  5283. };
  5284. class IntVector2
  5285. {
  5286. // Methods:
  5287. String ToString() const;
  5288. // Properties:
  5289. /* readonly */
  5290. Array<int> data;
  5291. int x;
  5292. int y;
  5293. };
  5294. class JSONFile
  5295. {
  5296. // Methods:
  5297. JSONValue& GetRoot();
  5298. bool HasSubscribedToEvent(Object, const String&);
  5299. bool HasSubscribedToEvent(const String&);
  5300. bool Load(File);
  5301. bool Load(VectorBuffer&);
  5302. bool Save(File) const;
  5303. bool Save(File, const String&) const;
  5304. bool Save(VectorBuffer&) const;
  5305. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5306. // Properties:
  5307. /* readonly */
  5308. String category;
  5309. /* readonly */
  5310. uint memoryUse;
  5311. String name;
  5312. /* readonly */
  5313. int refs;
  5314. /* readonly */
  5315. JSONValue root;
  5316. /* readonly */
  5317. StringHash type;
  5318. /* readonly */
  5319. String typeName;
  5320. /* readonly */
  5321. uint useTimer;
  5322. /* readonly */
  5323. int weakRefs;
  5324. };
  5325. class JSONValue
  5326. {
  5327. // Methods:
  5328. void Clear();
  5329. bool Contains(const String&) const;
  5330. void Erase(const String&);
  5331. void Erase(uint, uint = 1);
  5332. bool GetBool() const;
  5333. double GetDouble() const;
  5334. float GetFloat() const;
  5335. int GetInt() const;
  5336. uint GetUInt() const;
  5337. void Insert(uint, const JSONValue&);
  5338. const JSONValue& Get(const String&) const;
  5339. void Pop();
  5340. void Push(const JSONValue&);
  5341. void Resize(uint);
  5342. void Set(const String&, const JSONValue&);
  5343. const String& GetString() const;
  5344. // Properties:
  5345. /* readonly */
  5346. bool isArray;
  5347. /* readonly */
  5348. bool isBool;
  5349. /* readonly */
  5350. bool isNull;
  5351. /* readonly */
  5352. bool isNumber;
  5353. /* readonly */
  5354. bool isObject;
  5355. /* readonly */
  5356. bool isString;
  5357. /* readonly */
  5358. uint size;
  5359. /* readonly */
  5360. JSONValueType valueType;
  5361. };
  5362. class JoystickState
  5363. {
  5364. // Properties:
  5365. /* readonly */
  5366. Array<float> axisPosition;
  5367. /* readonly */
  5368. Array<bool> buttonDown;
  5369. /* readonly */
  5370. Array<bool> buttonPress;
  5371. /* readonly */
  5372. bool controller;
  5373. /* readonly */
  5374. Array<int> hatPosition;
  5375. int joystickID;
  5376. String name;
  5377. /* readonly */
  5378. uint numAxes;
  5379. /* readonly */
  5380. uint numButtons;
  5381. /* readonly */
  5382. uint numHats;
  5383. };
  5384. class Light
  5385. {
  5386. // Methods:
  5387. void ApplyAttributes();
  5388. void DrawDebugGeometry(DebugRenderer, bool);
  5389. Variant GetAttribute(const String&) const;
  5390. ValueAnimation GetAttributeAnimation(const String&) const;
  5391. float GetAttributeAnimationSpeed(const String&) const;
  5392. float GetAttributeAnimationTime(const String&) const;
  5393. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5394. Variant GetAttributeDefault(const String&) const;
  5395. bool GetInterceptNetworkUpdate(const String&) const;
  5396. bool HasSubscribedToEvent(Object, const String&);
  5397. bool HasSubscribedToEvent(const String&);
  5398. bool IsInView(Camera) const;
  5399. bool Load(File, bool = false);
  5400. bool Load(VectorBuffer&, bool = false);
  5401. bool LoadJSON(const JSONValue&, bool = false);
  5402. bool LoadXML(const XMLElement&, bool = false);
  5403. void MarkNetworkUpdate() const;
  5404. void Remove();
  5405. void RemoveAttributeAnimation(const String&);
  5406. void RemoveInstanceDefault();
  5407. void RemoveObjectAnimation();
  5408. void ResetToDefault();
  5409. bool Save(File) const;
  5410. bool Save(VectorBuffer&) const;
  5411. bool SaveJSON(JSONValue&) const;
  5412. bool SaveXML(XMLElement&) const;
  5413. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5414. void SetAnimationTime(float);
  5415. bool SetAttribute(const String&, const Variant&);
  5416. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5417. void SetAttributeAnimationSpeed(const String&, float);
  5418. void SetAttributeAnimationTime(const String&, float);
  5419. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5420. void SetInterceptNetworkUpdate(const String&, bool);
  5421. // Properties:
  5422. bool animationEnabled;
  5423. float aspectRatio;
  5424. /* readonly */
  5425. Array<Variant> attributeDefaults;
  5426. /* readonly */
  5427. Array<AttributeInfo> attributeInfos;
  5428. Array<Variant> attributes;
  5429. /* readonly */
  5430. BoundingBox boundingBox;
  5431. float brightness;
  5432. bool castShadows;
  5433. /* readonly */
  5434. String category;
  5435. Color color;
  5436. float drawDistance;
  5437. /* readonly */
  5438. Color effectiveColor;
  5439. /* readonly */
  5440. float effectiveSpecularIntensity;
  5441. bool enabled;
  5442. /* readonly */
  5443. bool enabledEffective;
  5444. float fadeDistance;
  5445. float fov;
  5446. /* readonly */
  5447. Frustum frustum;
  5448. /* readonly */
  5449. uint id;
  5450. /* readonly */
  5451. bool inView;
  5452. uint lightMask;
  5453. LightType lightType;
  5454. float lodBias;
  5455. uint maxLights;
  5456. /* readonly */
  5457. bool negative;
  5458. /* readonly */
  5459. Node node;
  5460. /* readonly */
  5461. uint numAttributes;
  5462. /* readonly */
  5463. int numShadowSplits;
  5464. ObjectAnimation objectAnimation;
  5465. bool occludee;
  5466. bool occluder;
  5467. bool perVertex;
  5468. Texture rampTexture;
  5469. float range;
  5470. /* readonly */
  5471. int refs;
  5472. BiasParameters shadowBias;
  5473. CascadeParameters shadowCascade;
  5474. float shadowDistance;
  5475. float shadowFadeDistance;
  5476. FocusParameters shadowFocus;
  5477. float shadowIntensity;
  5478. uint shadowMask;
  5479. float shadowNearFarRatio;
  5480. float shadowResolution;
  5481. Texture shapeTexture;
  5482. float specularIntensity;
  5483. bool temporary;
  5484. /* readonly */
  5485. StringHash type;
  5486. /* readonly */
  5487. String typeName;
  5488. uint viewMask;
  5489. /* readonly */
  5490. int weakRefs;
  5491. /* readonly */
  5492. BoundingBox worldBoundingBox;
  5493. uint zoneMask;
  5494. };
  5495. class LineEdit
  5496. {
  5497. // Methods:
  5498. void AddChild(UIElement);
  5499. void AddTag(const String&);
  5500. void AddTags(const String&, int8 = ';');
  5501. void ApplyAttributes();
  5502. void BringToFront();
  5503. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5504. void DisableLayoutUpdate();
  5505. IntVector2 ElementToScreen(const IntVector2&);
  5506. void EnableLayoutUpdate();
  5507. uint FindChild(UIElement) const;
  5508. Variant GetAttribute(const String&) const;
  5509. ValueAnimation GetAttributeAnimation(const String&) const;
  5510. float GetAttributeAnimationSpeed(const String&) const;
  5511. float GetAttributeAnimationTime(const String&) const;
  5512. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5513. Variant GetAttributeDefault(const String&) const;
  5514. UIElement GetChild(const String&, bool = false) const;
  5515. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5516. Array<UIElement> GetChildren(bool = false) const;
  5517. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5518. UIElement GetElementEventSender() const;
  5519. bool GetInterceptNetworkUpdate(const String&) const;
  5520. uint GetNumChildren(bool) const;
  5521. bool HasSubscribedToEvent(Object, const String&);
  5522. bool HasSubscribedToEvent(const String&);
  5523. bool HasTag(const String&) const;
  5524. void InsertChild(uint, UIElement);
  5525. bool IsInside(IntVector2, bool);
  5526. bool IsInsideCombined(IntVector2, bool);
  5527. bool Load(File, bool = false);
  5528. bool Load(VectorBuffer&, bool = false);
  5529. bool LoadChildXML(XMLFile, XMLFile = null);
  5530. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5531. bool LoadJSON(const JSONValue&, bool = false);
  5532. bool LoadXML(File);
  5533. bool LoadXML(VectorBuffer&);
  5534. bool LoadXML(XMLFile, XMLFile);
  5535. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5536. bool LoadXML(const XMLElement&, bool = false);
  5537. void MarkNetworkUpdate() const;
  5538. void Remove();
  5539. void RemoveAllChildren();
  5540. void RemoveAllTags();
  5541. void RemoveAttributeAnimation(const String&);
  5542. void RemoveChild(UIElement, uint = 0);
  5543. void RemoveChild(uint);
  5544. void RemoveInstanceDefault();
  5545. void RemoveObjectAnimation();
  5546. bool RemoveTag(const String&);
  5547. void ResetDeepEnabled();
  5548. void ResetToDefault();
  5549. bool Save(File) const;
  5550. bool Save(VectorBuffer&) const;
  5551. bool SaveJSON(JSONValue&) const;
  5552. bool SaveXML(File, const String& = "\t");
  5553. bool SaveXML(VectorBuffer&, const String& = "\t");
  5554. bool SaveXML(XMLElement&) const;
  5555. IntVector2 ScreenToElement(const IntVector2&);
  5556. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5557. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5558. void SetAnimationTime(float);
  5559. bool SetAttribute(const String&, const Variant&);
  5560. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5561. void SetAttributeAnimationSpeed(const String&, float);
  5562. void SetAttributeAnimationTime(const String&, float);
  5563. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5564. void SetDeepEnabled(bool);
  5565. void SetEnabledRecursive(bool);
  5566. void SetFixedHeight(int);
  5567. void SetFixedSize(int, int);
  5568. void SetFixedWidth(int);
  5569. void SetFullImageRect();
  5570. void SetHoverOffset(int, int);
  5571. void SetInterceptNetworkUpdate(const String&, bool);
  5572. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5573. void SetMaxSize(int, int);
  5574. void SetMinSize(int, int);
  5575. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5576. void SetPosition(int, int);
  5577. void SetSize(int, int);
  5578. bool SetStyle(const String&, XMLFile = null);
  5579. bool SetStyle(const XMLElement&);
  5580. bool SetStyleAuto(XMLFile = null);
  5581. void UpdateLayout();
  5582. const Variant& GetVar(const StringHash&);
  5583. // Properties:
  5584. bool animationEnabled;
  5585. /* readonly */
  5586. Array<Variant> attributeDefaults;
  5587. /* readonly */
  5588. Array<AttributeInfo> attributeInfos;
  5589. Array<Variant> attributes;
  5590. BlendMode blendMode;
  5591. IntRect border;
  5592. bool bringToBack;
  5593. bool bringToFront;
  5594. /* readonly */
  5595. String category;
  5596. /* readonly */
  5597. IntVector2 childOffset;
  5598. /* readonly */
  5599. Array<UIElement> children;
  5600. IntRect clipBorder;
  5601. bool clipChildren;
  5602. /* writeonly */
  5603. Color color;
  5604. /* readonly */
  5605. bool colorGradient;
  5606. Array<Color> colors;
  5607. /* readonly */
  5608. IntRect combinedScreenRect;
  5609. /* readonly */
  5610. BorderImage cursor;
  5611. float cursorBlinkRate;
  5612. bool cursorMovable;
  5613. uint cursorPosition;
  5614. XMLFile defaultStyle;
  5615. /* readonly */
  5616. float derivedOpacity;
  5617. /* readonly */
  5618. uint dragButtonCombo;
  5619. /* readonly */
  5620. int dragButtonCount;
  5621. uint dragDropMode;
  5622. uint echoCharacter;
  5623. bool editable;
  5624. bool elementEventSender;
  5625. bool enabled;
  5626. /* readonly */
  5627. bool enabledSelf;
  5628. /* readonly */
  5629. bool fixedHeight;
  5630. /* readonly */
  5631. bool fixedSize;
  5632. /* readonly */
  5633. bool fixedWidth;
  5634. bool focus;
  5635. FocusMode focusMode;
  5636. int height;
  5637. HorizontalAlignment horizontalAlignment;
  5638. IntVector2 hoverOffset;
  5639. /* readonly */
  5640. bool hovering;
  5641. IntRect imageBorder;
  5642. IntRect imageRect;
  5643. int indent;
  5644. int indentSpacing;
  5645. /* readonly */
  5646. int indentWidth;
  5647. bool internal;
  5648. IntRect layoutBorder;
  5649. Vector2 layoutFlexScale;
  5650. LayoutMode layoutMode;
  5651. int layoutSpacing;
  5652. int maxHeight;
  5653. uint maxLength;
  5654. IntVector2 maxSize;
  5655. int maxWidth;
  5656. int minHeight;
  5657. IntVector2 minSize;
  5658. int minWidth;
  5659. String name;
  5660. /* readonly */
  5661. uint numAllChildren;
  5662. /* readonly */
  5663. uint numAttributes;
  5664. /* readonly */
  5665. uint numChildren;
  5666. ObjectAnimation objectAnimation;
  5667. float opacity;
  5668. UIElement parent;
  5669. IntVector2 position;
  5670. int priority;
  5671. /* readonly */
  5672. int refs;
  5673. /* readonly */
  5674. UIElement root;
  5675. /* readonly */
  5676. IntVector2 screenPosition;
  5677. bool selected;
  5678. IntVector2 size;
  5679. bool sortChildren;
  5680. String style;
  5681. /* readonly */
  5682. Array<String> tags;
  5683. bool temporary;
  5684. String text;
  5685. bool textCopyable;
  5686. /* readonly */
  5687. Text textElement;
  5688. bool textSelectable;
  5689. Texture texture;
  5690. bool tiled;
  5691. TraversalMode traversalMode;
  5692. /* readonly */
  5693. StringHash type;
  5694. /* readonly */
  5695. String typeName;
  5696. bool useDerivedOpacity;
  5697. /* readonly */
  5698. VariantMap vars;
  5699. VerticalAlignment verticalAlignment;
  5700. bool visible;
  5701. /* readonly */
  5702. bool visibleEffective;
  5703. /* readonly */
  5704. int weakRefs;
  5705. int width;
  5706. };
  5707. class ListView
  5708. {
  5709. // Methods:
  5710. void AddChild(UIElement);
  5711. void AddItem(UIElement);
  5712. void AddSelection(uint);
  5713. void AddTag(const String&);
  5714. void AddTags(const String&, int8 = ';');
  5715. void ApplyAttributes();
  5716. void BringToFront();
  5717. void ChangeSelection(int, bool);
  5718. void ClearSelection();
  5719. void CopySelectedItemsToClipboard();
  5720. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5721. void DisableLayoutUpdate();
  5722. IntVector2 ElementToScreen(const IntVector2&);
  5723. void EnableLayoutUpdate();
  5724. void Expand(uint, bool, bool = false);
  5725. uint FindChild(UIElement) const;
  5726. uint FindItem(UIElement);
  5727. Variant GetAttribute(const String&) const;
  5728. ValueAnimation GetAttributeAnimation(const String&) const;
  5729. float GetAttributeAnimationSpeed(const String&) const;
  5730. float GetAttributeAnimationTime(const String&) const;
  5731. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5732. Variant GetAttributeDefault(const String&) const;
  5733. UIElement GetChild(const String&, bool = false) const;
  5734. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5735. Array<UIElement> GetChildren(bool = false) const;
  5736. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5737. UIElement GetElementEventSender() const;
  5738. bool GetInterceptNetworkUpdate(const String&) const;
  5739. Array<UIElement> GetItems() const;
  5740. uint GetNumChildren(bool) const;
  5741. bool HasSubscribedToEvent(Object, const String&);
  5742. bool HasSubscribedToEvent(const String&);
  5743. bool HasTag(const String&) const;
  5744. void InsertChild(uint, UIElement);
  5745. void InsertItem(uint, UIElement, UIElement = null);
  5746. bool IsExpanded(uint) const;
  5747. bool IsInside(IntVector2, bool);
  5748. bool IsInsideCombined(IntVector2, bool);
  5749. bool IsSelected(uint) const;
  5750. bool Load(File, bool = false);
  5751. bool Load(VectorBuffer&, bool = false);
  5752. bool LoadChildXML(XMLFile, XMLFile = null);
  5753. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5754. bool LoadJSON(const JSONValue&, bool = false);
  5755. bool LoadXML(File);
  5756. bool LoadXML(VectorBuffer&);
  5757. bool LoadXML(XMLFile, XMLFile);
  5758. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5759. bool LoadXML(const XMLElement&, bool = false);
  5760. void MarkNetworkUpdate() const;
  5761. void Remove();
  5762. void RemoveAllChildren();
  5763. void RemoveAllItems();
  5764. void RemoveAllTags();
  5765. void RemoveAttributeAnimation(const String&);
  5766. void RemoveChild(UIElement, uint = 0);
  5767. void RemoveChild(uint);
  5768. void RemoveInstanceDefault();
  5769. void RemoveItem(UIElement, uint = 0);
  5770. void RemoveItem(uint);
  5771. void RemoveObjectAnimation();
  5772. void RemoveSelection(uint);
  5773. bool RemoveTag(const String&);
  5774. void ResetDeepEnabled();
  5775. void ResetToDefault();
  5776. bool Save(File) const;
  5777. bool Save(VectorBuffer&) const;
  5778. bool SaveJSON(JSONValue&) const;
  5779. bool SaveXML(File, const String& = "\t");
  5780. bool SaveXML(VectorBuffer&, const String& = "\t");
  5781. bool SaveXML(XMLElement&) const;
  5782. IntVector2 ScreenToElement(const IntVector2&);
  5783. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5784. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5785. void SetAnimationTime(float);
  5786. bool SetAttribute(const String&, const Variant&);
  5787. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5788. void SetAttributeAnimationSpeed(const String&, float);
  5789. void SetAttributeAnimationTime(const String&, float);
  5790. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5791. void SetDeepEnabled(bool);
  5792. void SetEnabledRecursive(bool);
  5793. void SetFixedHeight(int);
  5794. void SetFixedSize(int, int);
  5795. void SetFixedWidth(int);
  5796. void SetInterceptNetworkUpdate(const String&, bool);
  5797. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5798. void SetMaxSize(int, int);
  5799. void SetMinSize(int, int);
  5800. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5801. void SetPosition(int, int);
  5802. void SetScrollBarsVisible(bool, bool);
  5803. void SetSelections(Array<uint>);
  5804. void SetSize(int, int);
  5805. bool SetStyle(const String&, XMLFile = null);
  5806. bool SetStyle(const XMLElement&);
  5807. bool SetStyleAuto(XMLFile = null);
  5808. void SetViewPosition(int, int);
  5809. void ToggleExpand(uint, bool = false);
  5810. void ToggleSelection(uint);
  5811. void UpdateLayout();
  5812. const Variant& GetVar(const StringHash&);
  5813. // Properties:
  5814. bool animationEnabled;
  5815. /* readonly */
  5816. Array<Variant> attributeDefaults;
  5817. /* readonly */
  5818. Array<AttributeInfo> attributeInfos;
  5819. Array<Variant> attributes;
  5820. bool autoDisableChildren;
  5821. float autoDisableThreshold;
  5822. int baseIndent;
  5823. bool bringToBack;
  5824. bool bringToFront;
  5825. /* readonly */
  5826. String category;
  5827. /* readonly */
  5828. IntVector2 childOffset;
  5829. /* readonly */
  5830. Array<UIElement> children;
  5831. bool clearSelectionOnDefocus;
  5832. IntRect clipBorder;
  5833. bool clipChildren;
  5834. /* writeonly */
  5835. Color color;
  5836. /* readonly */
  5837. bool colorGradient;
  5838. Array<Color> colors;
  5839. /* readonly */
  5840. IntRect combinedScreenRect;
  5841. /* readonly */
  5842. UIElement contentElement;
  5843. XMLFile defaultStyle;
  5844. /* readonly */
  5845. float derivedOpacity;
  5846. /* readonly */
  5847. uint dragButtonCombo;
  5848. /* readonly */
  5849. int dragButtonCount;
  5850. uint dragDropMode;
  5851. bool editable;
  5852. bool elementEventSender;
  5853. bool enabled;
  5854. /* readonly */
  5855. bool enabledSelf;
  5856. /* readonly */
  5857. bool fixedHeight;
  5858. /* readonly */
  5859. bool fixedSize;
  5860. /* readonly */
  5861. bool fixedWidth;
  5862. bool focus;
  5863. FocusMode focusMode;
  5864. int height;
  5865. bool hierarchyMode;
  5866. HighlightMode highlightMode;
  5867. HorizontalAlignment horizontalAlignment;
  5868. /* readonly */
  5869. ScrollBar horizontalScrollBar;
  5870. /* readonly */
  5871. bool hovering;
  5872. int indent;
  5873. int indentSpacing;
  5874. /* readonly */
  5875. int indentWidth;
  5876. bool internal;
  5877. /* readonly */
  5878. Array<UIElement> items;
  5879. IntRect layoutBorder;
  5880. Vector2 layoutFlexScale;
  5881. LayoutMode layoutMode;
  5882. int layoutSpacing;
  5883. int maxHeight;
  5884. IntVector2 maxSize;
  5885. int maxWidth;
  5886. int minHeight;
  5887. IntVector2 minSize;
  5888. int minWidth;
  5889. bool multiselect;
  5890. String name;
  5891. /* readonly */
  5892. uint numAllChildren;
  5893. /* readonly */
  5894. uint numAttributes;
  5895. /* readonly */
  5896. uint numChildren;
  5897. /* readonly */
  5898. uint numItems;
  5899. ObjectAnimation objectAnimation;
  5900. float opacity;
  5901. float pageStep;
  5902. UIElement parent;
  5903. IntVector2 position;
  5904. int priority;
  5905. /* readonly */
  5906. int refs;
  5907. /* readonly */
  5908. UIElement root;
  5909. /* readonly */
  5910. IntVector2 screenPosition;
  5911. bool scrollBarsAutoVisible;
  5912. float scrollDeceleration;
  5913. /* readonly */
  5914. BorderImage scrollPanel;
  5915. float scrollSnapEpsilon;
  5916. float scrollStep;
  5917. bool selectOnClickEnd;
  5918. bool selected;
  5919. /* readonly */
  5920. UIElement selectedItem;
  5921. /* readonly */
  5922. Array<UIElement> selectedItems;
  5923. uint selection;
  5924. /* readonly */
  5925. Array<uint> selections;
  5926. IntVector2 size;
  5927. bool sortChildren;
  5928. String style;
  5929. /* readonly */
  5930. Array<String> tags;
  5931. bool temporary;
  5932. TraversalMode traversalMode;
  5933. /* readonly */
  5934. StringHash type;
  5935. /* readonly */
  5936. String typeName;
  5937. bool useDerivedOpacity;
  5938. /* readonly */
  5939. VariantMap vars;
  5940. VerticalAlignment verticalAlignment;
  5941. /* readonly */
  5942. ScrollBar verticalScrollBar;
  5943. IntVector2 viewPosition;
  5944. bool visible;
  5945. /* readonly */
  5946. bool visibleEffective;
  5947. /* readonly */
  5948. int weakRefs;
  5949. int width;
  5950. };
  5951. class Localization
  5952. {
  5953. // Methods:
  5954. String Get(const String&);
  5955. String GetLanguage(int);
  5956. int GetLanguageIndex(const String&);
  5957. bool HasSubscribedToEvent(Object, const String&);
  5958. bool HasSubscribedToEvent(const String&);
  5959. void LoadJSON(const JSONValue&);
  5960. void LoadJSONFile(const String&);
  5961. void Reset();
  5962. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5963. void SetLanguage(const String&);
  5964. void SetLanguage(int);
  5965. // Properties:
  5966. /* readonly */
  5967. String category;
  5968. /* readonly */
  5969. String language;
  5970. /* readonly */
  5971. int languageIndex;
  5972. /* readonly */
  5973. int numLanguages;
  5974. /* readonly */
  5975. int refs;
  5976. /* readonly */
  5977. StringHash type;
  5978. /* readonly */
  5979. String typeName;
  5980. /* readonly */
  5981. int weakRefs;
  5982. };
  5983. class Log
  5984. {
  5985. // Methods:
  5986. void Close();
  5987. void Debug(const String&);
  5988. void Error(const String&);
  5989. bool HasSubscribedToEvent(Object, const String&);
  5990. bool HasSubscribedToEvent(const String&);
  5991. void Info(const String&);
  5992. void Open(const String&);
  5993. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5994. void Warning(const String&);
  5995. void Write(const String&, bool = false);
  5996. // Properties:
  5997. /* readonly */
  5998. String category;
  5999. /* readonly */
  6000. String lastMessage;
  6001. int level;
  6002. bool quiet;
  6003. /* readonly */
  6004. int refs;
  6005. bool timeStamp;
  6006. /* readonly */
  6007. StringHash type;
  6008. /* readonly */
  6009. String typeName;
  6010. /* readonly */
  6011. int weakRefs;
  6012. };
  6013. class Material
  6014. {
  6015. // Methods:
  6016. Material Clone(const String& = String ( )) const;
  6017. Pass GetPass(uint, const String&);
  6018. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6019. float GetShaderParameterAnimationSpeed(const String&) const;
  6020. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6021. bool HasSubscribedToEvent(Object, const String&);
  6022. bool HasSubscribedToEvent(const String&);
  6023. bool Load(File);
  6024. bool Load(VectorBuffer&);
  6025. bool Load(const JSONValue&);
  6026. bool Load(const XMLElement&);
  6027. void RemoveShaderParameter(const String&);
  6028. bool Save(File) const;
  6029. bool Save(JSONValue&) const;
  6030. bool Save(VectorBuffer&) const;
  6031. bool Save(XMLElement&) const;
  6032. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6033. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6034. void SetShaderParameterAnimationSpeed(const String&, float);
  6035. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6036. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6037. void SetUVTransform(const Vector2&, float, const Vector2&);
  6038. void SetUVTransform(const Vector2&, float, float);
  6039. void SortTechniques();
  6040. // Properties:
  6041. /* readonly */
  6042. String category;
  6043. CullMode cullMode;
  6044. BiasParameters depthBias;
  6045. FillMode fillMode;
  6046. /* readonly */
  6047. uint memoryUse;
  6048. String name;
  6049. uint numTechniques;
  6050. /* readonly */
  6051. bool occlusion;
  6052. /* readonly */
  6053. int refs;
  6054. uint8 renderOrder;
  6055. Scene scene;
  6056. /* readonly */
  6057. Array<String> shaderParameterNames;
  6058. Array<Variant> shaderParameters;
  6059. CullMode shadowCullMode;
  6060. /* readonly */
  6061. Array<TechniqueEntry> techniqueEntries;
  6062. /* readonly */
  6063. Array<Technique> techniques;
  6064. Array<Texture> textures;
  6065. /* readonly */
  6066. StringHash type;
  6067. /* readonly */
  6068. String typeName;
  6069. /* readonly */
  6070. uint useTimer;
  6071. /* readonly */
  6072. int weakRefs;
  6073. };
  6074. class Matrix2
  6075. {
  6076. // Methods:
  6077. bool Equals(const Matrix2&) const;
  6078. Matrix2 Inverse() const;
  6079. Vector2 Scale() const;
  6080. Matrix2 Scaled(const Vector2&) const;
  6081. void SetScale(const Vector2&);
  6082. void SetScale(float);
  6083. String ToString() const;
  6084. Matrix2 Transpose() const;
  6085. // Properties:
  6086. float m00;
  6087. float m01;
  6088. float m10;
  6089. float m11;
  6090. };
  6091. class Matrix3
  6092. {
  6093. // Methods:
  6094. bool Equals(const Matrix3&) const;
  6095. Matrix3 Inverse() const;
  6096. Vector3 Scale() const;
  6097. Matrix3 Scaled(const Vector3&) const;
  6098. void SetScale(const Vector3&);
  6099. void SetScale(float);
  6100. String ToString() const;
  6101. Matrix3 Transpose() const;
  6102. // Properties:
  6103. float m00;
  6104. float m01;
  6105. float m02;
  6106. float m10;
  6107. float m11;
  6108. float m12;
  6109. float m20;
  6110. float m21;
  6111. float m22;
  6112. };
  6113. class Matrix3x4
  6114. {
  6115. // Methods:
  6116. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6117. bool Equals(const Matrix3x4&) const;
  6118. Matrix3x4 Inverse() const;
  6119. Quaternion Rotation() const;
  6120. Matrix3 RotationMatrix() const;
  6121. Vector3 Scale() const;
  6122. void SetRotation(const Matrix3&);
  6123. void SetScale(const Vector3&);
  6124. void SetScale(float);
  6125. void SetTranslation(const Vector3&);
  6126. Matrix3 ToMatrix3() const;
  6127. Matrix4 ToMatrix4() const;
  6128. String ToString() const;
  6129. Vector3 Translation() const;
  6130. // Properties:
  6131. float m00;
  6132. float m01;
  6133. float m02;
  6134. float m03;
  6135. float m10;
  6136. float m11;
  6137. float m12;
  6138. float m13;
  6139. float m20;
  6140. float m21;
  6141. float m22;
  6142. float m23;
  6143. };
  6144. class Matrix4
  6145. {
  6146. // Methods:
  6147. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6148. bool Equals(const Matrix4&) const;
  6149. Matrix4 Inverse() const;
  6150. Quaternion Rotation() const;
  6151. Matrix3 RotationMatrix() const;
  6152. Vector3 Scale() const;
  6153. void SetRotation(const Matrix3&);
  6154. void SetScale(const Vector3&);
  6155. void SetScale(float);
  6156. void SetTranslation(const Vector3&);
  6157. Matrix3 ToMatrix3() const;
  6158. String ToString() const;
  6159. Vector3 Translation() const;
  6160. Matrix4 Transpose() const;
  6161. // Properties:
  6162. float m00;
  6163. float m01;
  6164. float m02;
  6165. float m03;
  6166. float m10;
  6167. float m11;
  6168. float m12;
  6169. float m13;
  6170. float m20;
  6171. float m21;
  6172. float m22;
  6173. float m23;
  6174. float m30;
  6175. float m31;
  6176. float m32;
  6177. float m33;
  6178. };
  6179. class Menu
  6180. {
  6181. // Methods:
  6182. void AddChild(UIElement);
  6183. void AddTag(const String&);
  6184. void AddTags(const String&, int8 = ';');
  6185. void ApplyAttributes();
  6186. void BringToFront();
  6187. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6188. void DisableLayoutUpdate();
  6189. IntVector2 ElementToScreen(const IntVector2&);
  6190. void EnableLayoutUpdate();
  6191. uint FindChild(UIElement) const;
  6192. Variant GetAttribute(const String&) const;
  6193. ValueAnimation GetAttributeAnimation(const String&) const;
  6194. float GetAttributeAnimationSpeed(const String&) const;
  6195. float GetAttributeAnimationTime(const String&) const;
  6196. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6197. Variant GetAttributeDefault(const String&) const;
  6198. UIElement GetChild(const String&, bool = false) const;
  6199. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6200. Array<UIElement> GetChildren(bool = false) const;
  6201. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6202. UIElement GetElementEventSender() const;
  6203. bool GetInterceptNetworkUpdate(const String&) const;
  6204. uint GetNumChildren(bool) const;
  6205. bool HasSubscribedToEvent(Object, const String&);
  6206. bool HasSubscribedToEvent(const String&);
  6207. bool HasTag(const String&) const;
  6208. void InsertChild(uint, UIElement);
  6209. bool IsInside(IntVector2, bool);
  6210. bool IsInsideCombined(IntVector2, bool);
  6211. bool Load(File, bool = false);
  6212. bool Load(VectorBuffer&, bool = false);
  6213. bool LoadChildXML(XMLFile, XMLFile = null);
  6214. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6215. bool LoadJSON(const JSONValue&, bool = false);
  6216. bool LoadXML(File);
  6217. bool LoadXML(VectorBuffer&);
  6218. bool LoadXML(XMLFile, XMLFile);
  6219. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6220. bool LoadXML(const XMLElement&, bool = false);
  6221. void MarkNetworkUpdate() const;
  6222. void Remove();
  6223. void RemoveAllChildren();
  6224. void RemoveAllTags();
  6225. void RemoveAttributeAnimation(const String&);
  6226. void RemoveChild(UIElement, uint = 0);
  6227. void RemoveChild(uint);
  6228. void RemoveInstanceDefault();
  6229. void RemoveObjectAnimation();
  6230. bool RemoveTag(const String&);
  6231. void ResetDeepEnabled();
  6232. void ResetToDefault();
  6233. bool Save(File) const;
  6234. bool Save(VectorBuffer&) const;
  6235. bool SaveJSON(JSONValue&) const;
  6236. bool SaveXML(File, const String& = "\t");
  6237. bool SaveXML(VectorBuffer&, const String& = "\t");
  6238. bool SaveXML(XMLElement&) const;
  6239. IntVector2 ScreenToElement(const IntVector2&);
  6240. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6241. void SetAccelerator(int, int);
  6242. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6243. void SetAnimationTime(float);
  6244. bool SetAttribute(const String&, const Variant&);
  6245. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6246. void SetAttributeAnimationSpeed(const String&, float);
  6247. void SetAttributeAnimationTime(const String&, float);
  6248. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6249. void SetDeepEnabled(bool);
  6250. void SetEnabledRecursive(bool);
  6251. void SetFixedHeight(int);
  6252. void SetFixedSize(int, int);
  6253. void SetFixedWidth(int);
  6254. void SetFullImageRect();
  6255. void SetHoverOffset(int, int);
  6256. void SetInterceptNetworkUpdate(const String&, bool);
  6257. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6258. void SetMaxSize(int, int);
  6259. void SetMinSize(int, int);
  6260. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6261. void SetPopupOffset(int, int);
  6262. void SetPosition(int, int);
  6263. void SetPressedChildOffset(int, int);
  6264. void SetPressedOffset(int, int);
  6265. void SetRepeat(float, float);
  6266. void SetSize(int, int);
  6267. bool SetStyle(const String&, XMLFile = null);
  6268. bool SetStyle(const XMLElement&);
  6269. bool SetStyleAuto(XMLFile = null);
  6270. void UpdateLayout();
  6271. const Variant& GetVar(const StringHash&);
  6272. // Properties:
  6273. /* readonly */
  6274. int acceleratorKey;
  6275. /* readonly */
  6276. int acceleratorQualifiers;
  6277. bool animationEnabled;
  6278. /* readonly */
  6279. Array<Variant> attributeDefaults;
  6280. /* readonly */
  6281. Array<AttributeInfo> attributeInfos;
  6282. Array<Variant> attributes;
  6283. BlendMode blendMode;
  6284. IntRect border;
  6285. bool bringToBack;
  6286. bool bringToFront;
  6287. /* readonly */
  6288. String category;
  6289. /* readonly */
  6290. IntVector2 childOffset;
  6291. /* readonly */
  6292. Array<UIElement> children;
  6293. IntRect clipBorder;
  6294. bool clipChildren;
  6295. /* writeonly */
  6296. Color color;
  6297. /* readonly */
  6298. bool colorGradient;
  6299. Array<Color> colors;
  6300. /* readonly */
  6301. IntRect combinedScreenRect;
  6302. XMLFile defaultStyle;
  6303. /* readonly */
  6304. float derivedOpacity;
  6305. /* readonly */
  6306. uint dragButtonCombo;
  6307. /* readonly */
  6308. int dragButtonCount;
  6309. uint dragDropMode;
  6310. bool editable;
  6311. bool elementEventSender;
  6312. bool enabled;
  6313. /* readonly */
  6314. bool enabledSelf;
  6315. /* readonly */
  6316. bool fixedHeight;
  6317. /* readonly */
  6318. bool fixedSize;
  6319. /* readonly */
  6320. bool fixedWidth;
  6321. bool focus;
  6322. FocusMode focusMode;
  6323. int height;
  6324. HorizontalAlignment horizontalAlignment;
  6325. IntVector2 hoverOffset;
  6326. /* readonly */
  6327. bool hovering;
  6328. IntRect imageBorder;
  6329. IntRect imageRect;
  6330. int indent;
  6331. int indentSpacing;
  6332. /* readonly */
  6333. int indentWidth;
  6334. bool internal;
  6335. IntRect layoutBorder;
  6336. Vector2 layoutFlexScale;
  6337. LayoutMode layoutMode;
  6338. int layoutSpacing;
  6339. int maxHeight;
  6340. IntVector2 maxSize;
  6341. int maxWidth;
  6342. int minHeight;
  6343. IntVector2 minSize;
  6344. int minWidth;
  6345. String name;
  6346. /* readonly */
  6347. uint numAllChildren;
  6348. /* readonly */
  6349. uint numAttributes;
  6350. /* readonly */
  6351. uint numChildren;
  6352. ObjectAnimation objectAnimation;
  6353. float opacity;
  6354. UIElement parent;
  6355. UIElement popup;
  6356. IntVector2 popupOffset;
  6357. IntVector2 position;
  6358. /* readonly */
  6359. bool pressed;
  6360. IntVector2 pressedChildOffset;
  6361. IntVector2 pressedOffset;
  6362. int priority;
  6363. /* readonly */
  6364. int refs;
  6365. float repeatDelay;
  6366. float repeatRate;
  6367. /* readonly */
  6368. UIElement root;
  6369. /* readonly */
  6370. IntVector2 screenPosition;
  6371. bool selected;
  6372. bool showPopup;
  6373. IntVector2 size;
  6374. bool sortChildren;
  6375. String style;
  6376. /* readonly */
  6377. Array<String> tags;
  6378. bool temporary;
  6379. Texture texture;
  6380. bool tiled;
  6381. TraversalMode traversalMode;
  6382. /* readonly */
  6383. StringHash type;
  6384. /* readonly */
  6385. String typeName;
  6386. bool useDerivedOpacity;
  6387. /* readonly */
  6388. VariantMap vars;
  6389. VerticalAlignment verticalAlignment;
  6390. bool visible;
  6391. /* readonly */
  6392. bool visibleEffective;
  6393. /* readonly */
  6394. int weakRefs;
  6395. int width;
  6396. };
  6397. class MessageBox
  6398. {
  6399. // Methods:
  6400. bool HasSubscribedToEvent(Object, const String&);
  6401. bool HasSubscribedToEvent(const String&);
  6402. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6403. // Properties:
  6404. /* readonly */
  6405. String category;
  6406. String message;
  6407. /* readonly */
  6408. int refs;
  6409. String title;
  6410. /* readonly */
  6411. StringHash type;
  6412. /* readonly */
  6413. String typeName;
  6414. /* readonly */
  6415. int weakRefs;
  6416. /* readonly */
  6417. UIElement window;
  6418. };
  6419. class Model
  6420. {
  6421. // Methods:
  6422. Model Clone(const String& = String ( )) const;
  6423. Geometry GetGeometry(uint, uint) const;
  6424. bool HasSubscribedToEvent(Object, const String&);
  6425. bool HasSubscribedToEvent(const String&);
  6426. bool Load(File);
  6427. bool Load(VectorBuffer&);
  6428. bool Save(File) const;
  6429. bool Save(VectorBuffer&) const;
  6430. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6431. bool SetGeometry(uint, uint, Geometry);
  6432. // Properties:
  6433. BoundingBox boundingBox;
  6434. /* readonly */
  6435. String category;
  6436. Array<Vector3> geometryCenters;
  6437. /* readonly */
  6438. uint memoryUse;
  6439. String name;
  6440. uint numGeometries;
  6441. Array<uint> numGeometryLodLevels;
  6442. /* readonly */
  6443. uint numMorphs;
  6444. /* readonly */
  6445. int refs;
  6446. /* readonly */
  6447. Skeleton skeleton;
  6448. /* readonly */
  6449. StringHash type;
  6450. /* readonly */
  6451. String typeName;
  6452. /* readonly */
  6453. uint useTimer;
  6454. /* readonly */
  6455. int weakRefs;
  6456. };
  6457. class NavArea
  6458. {
  6459. // Methods:
  6460. void ApplyAttributes();
  6461. void DrawDebugGeometry(DebugRenderer, bool);
  6462. Variant GetAttribute(const String&) const;
  6463. ValueAnimation GetAttributeAnimation(const String&) const;
  6464. float GetAttributeAnimationSpeed(const String&) const;
  6465. float GetAttributeAnimationTime(const String&) const;
  6466. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6467. Variant GetAttributeDefault(const String&) const;
  6468. bool GetInterceptNetworkUpdate(const String&) const;
  6469. bool HasSubscribedToEvent(Object, const String&);
  6470. bool HasSubscribedToEvent(const String&);
  6471. bool Load(File, bool = false);
  6472. bool Load(VectorBuffer&, bool = false);
  6473. bool LoadJSON(const JSONValue&, bool = false);
  6474. bool LoadXML(const XMLElement&, bool = false);
  6475. void MarkNetworkUpdate() const;
  6476. void Remove();
  6477. void RemoveAttributeAnimation(const String&);
  6478. void RemoveInstanceDefault();
  6479. void RemoveObjectAnimation();
  6480. void ResetToDefault();
  6481. bool Save(File) const;
  6482. bool Save(VectorBuffer&) const;
  6483. bool SaveJSON(JSONValue&) const;
  6484. bool SaveXML(XMLElement&) const;
  6485. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6486. void SetAnimationTime(float);
  6487. bool SetAttribute(const String&, const Variant&);
  6488. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6489. void SetAttributeAnimationSpeed(const String&, float);
  6490. void SetAttributeAnimationTime(const String&, float);
  6491. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6492. void SetInterceptNetworkUpdate(const String&, bool);
  6493. // Properties:
  6494. bool animationEnabled;
  6495. uint areaID;
  6496. /* readonly */
  6497. Array<Variant> attributeDefaults;
  6498. /* readonly */
  6499. Array<AttributeInfo> attributeInfos;
  6500. Array<Variant> attributes;
  6501. BoundingBox boundingBox;
  6502. /* readonly */
  6503. String category;
  6504. bool enabled;
  6505. /* readonly */
  6506. bool enabledEffective;
  6507. /* readonly */
  6508. uint id;
  6509. /* readonly */
  6510. Node node;
  6511. /* readonly */
  6512. uint numAttributes;
  6513. ObjectAnimation objectAnimation;
  6514. /* readonly */
  6515. int refs;
  6516. bool temporary;
  6517. /* readonly */
  6518. StringHash type;
  6519. /* readonly */
  6520. String typeName;
  6521. /* readonly */
  6522. int weakRefs;
  6523. /* readonly */
  6524. BoundingBox worldBoundingBox;
  6525. };
  6526. class Navigable
  6527. {
  6528. // Methods:
  6529. void ApplyAttributes();
  6530. void DrawDebugGeometry(DebugRenderer, bool);
  6531. Variant GetAttribute(const String&) const;
  6532. ValueAnimation GetAttributeAnimation(const String&) const;
  6533. float GetAttributeAnimationSpeed(const String&) const;
  6534. float GetAttributeAnimationTime(const String&) const;
  6535. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6536. Variant GetAttributeDefault(const String&) const;
  6537. bool GetInterceptNetworkUpdate(const String&) const;
  6538. bool HasSubscribedToEvent(Object, const String&);
  6539. bool HasSubscribedToEvent(const String&);
  6540. bool Load(File, bool = false);
  6541. bool Load(VectorBuffer&, bool = false);
  6542. bool LoadJSON(const JSONValue&, bool = false);
  6543. bool LoadXML(const XMLElement&, bool = false);
  6544. void MarkNetworkUpdate() const;
  6545. void Remove();
  6546. void RemoveAttributeAnimation(const String&);
  6547. void RemoveInstanceDefault();
  6548. void RemoveObjectAnimation();
  6549. void ResetToDefault();
  6550. bool Save(File) const;
  6551. bool Save(VectorBuffer&) const;
  6552. bool SaveJSON(JSONValue&) const;
  6553. bool SaveXML(XMLElement&) const;
  6554. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6555. void SetAnimationTime(float);
  6556. bool SetAttribute(const String&, const Variant&);
  6557. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6558. void SetAttributeAnimationSpeed(const String&, float);
  6559. void SetAttributeAnimationTime(const String&, float);
  6560. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6561. void SetInterceptNetworkUpdate(const String&, bool);
  6562. // Properties:
  6563. bool animationEnabled;
  6564. /* readonly */
  6565. Array<Variant> attributeDefaults;
  6566. /* readonly */
  6567. Array<AttributeInfo> attributeInfos;
  6568. Array<Variant> attributes;
  6569. /* readonly */
  6570. String category;
  6571. bool enabled;
  6572. /* readonly */
  6573. bool enabledEffective;
  6574. /* readonly */
  6575. uint id;
  6576. /* readonly */
  6577. Node node;
  6578. /* readonly */
  6579. uint numAttributes;
  6580. ObjectAnimation objectAnimation;
  6581. bool recursive;
  6582. /* readonly */
  6583. int refs;
  6584. bool temporary;
  6585. /* readonly */
  6586. StringHash type;
  6587. /* readonly */
  6588. String typeName;
  6589. /* readonly */
  6590. int weakRefs;
  6591. };
  6592. class NavigationMesh
  6593. {
  6594. // Methods:
  6595. void ApplyAttributes();
  6596. bool Build();
  6597. bool Build(const BoundingBox&);
  6598. void DrawDebugGeometry(DebugRenderer, bool);
  6599. void DrawDebugGeometry(bool);
  6600. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6601. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6602. float GetAreaCost(uint) const;
  6603. Variant GetAttribute(const String&) const;
  6604. ValueAnimation GetAttributeAnimation(const String&) const;
  6605. float GetAttributeAnimationSpeed(const String&) const;
  6606. float GetAttributeAnimationTime(const String&) const;
  6607. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6608. Variant GetAttributeDefault(const String&) const;
  6609. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6610. bool GetInterceptNetworkUpdate(const String&) const;
  6611. Vector3 GetRandomPoint();
  6612. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6613. bool HasSubscribedToEvent(Object, const String&);
  6614. bool HasSubscribedToEvent(const String&);
  6615. bool Load(File, bool = false);
  6616. bool Load(VectorBuffer&, bool = false);
  6617. bool LoadJSON(const JSONValue&, bool = false);
  6618. bool LoadXML(const XMLElement&, bool = false);
  6619. void MarkNetworkUpdate() const;
  6620. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6621. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6622. void Remove();
  6623. void RemoveAttributeAnimation(const String&);
  6624. void RemoveInstanceDefault();
  6625. void RemoveObjectAnimation();
  6626. void ResetToDefault();
  6627. bool Save(File) const;
  6628. bool Save(VectorBuffer&) const;
  6629. bool SaveJSON(JSONValue&) const;
  6630. bool SaveXML(XMLElement&) const;
  6631. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6632. void SetAnimationTime(float);
  6633. void SetAreaCost(uint, float);
  6634. bool SetAttribute(const String&, const Variant&);
  6635. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6636. void SetAttributeAnimationSpeed(const String&, float);
  6637. void SetAttributeAnimationTime(const String&, float);
  6638. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6639. void SetInterceptNetworkUpdate(const String&, bool);
  6640. // Properties:
  6641. float agentHeight;
  6642. float agentMaxClimb;
  6643. float agentMaxSlope;
  6644. float agentRadius;
  6645. bool animationEnabled;
  6646. /* readonly */
  6647. Array<Variant> attributeDefaults;
  6648. /* readonly */
  6649. Array<AttributeInfo> attributeInfos;
  6650. Array<Variant> attributes;
  6651. /* readonly */
  6652. BoundingBox boundingBox;
  6653. /* readonly */
  6654. String category;
  6655. float cellHeight;
  6656. float cellSize;
  6657. float detailSampleDistance;
  6658. float detailSampleMaxError;
  6659. bool drawNavAreas;
  6660. bool drawOffMeshConnections;
  6661. float edgeMaxError;
  6662. float edgeMaxLength;
  6663. bool enabled;
  6664. /* readonly */
  6665. bool enabledEffective;
  6666. /* readonly */
  6667. uint id;
  6668. /* readonly */
  6669. bool initialized;
  6670. /* readonly */
  6671. Node node;
  6672. /* readonly */
  6673. uint numAttributes;
  6674. /* readonly */
  6675. IntVector2 numTiles;
  6676. ObjectAnimation objectAnimation;
  6677. Vector3 padding;
  6678. NavmeshPartitionType partitionType;
  6679. /* readonly */
  6680. int refs;
  6681. float regionMergeSize;
  6682. float regionMinSize;
  6683. bool temporary;
  6684. int tileSize;
  6685. /* readonly */
  6686. StringHash type;
  6687. /* readonly */
  6688. String typeName;
  6689. /* readonly */
  6690. int weakRefs;
  6691. /* readonly */
  6692. BoundingBox worldBoundingBox;
  6693. };
  6694. class Network
  6695. {
  6696. // Methods:
  6697. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6698. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6699. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6700. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6701. bool CheckRemoteEvent(const String&) const;
  6702. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6703. void Disconnect(int = 0);
  6704. bool HasSubscribedToEvent(Object, const String&);
  6705. bool HasSubscribedToEvent(const String&);
  6706. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6707. void RegisterRemoteEvent(const String&) const;
  6708. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6709. void SendPackageToClients(Scene, PackageFile);
  6710. bool StartServer(uint16);
  6711. void StopServer();
  6712. void UnregisterAllRemoteEvents();
  6713. void UnregisterRemoteEvent(const String&) const;
  6714. // Properties:
  6715. /* readonly */
  6716. String category;
  6717. /* readonly */
  6718. Array<Connection> clientConnections;
  6719. String packageCacheDir;
  6720. /* readonly */
  6721. int refs;
  6722. /* readonly */
  6723. Connection serverConnection;
  6724. /* readonly */
  6725. bool serverRunning;
  6726. int simulatedLatency;
  6727. float simulatedPacketLoss;
  6728. /* readonly */
  6729. StringHash type;
  6730. /* readonly */
  6731. String typeName;
  6732. int updateFps;
  6733. /* readonly */
  6734. int weakRefs;
  6735. };
  6736. class NetworkPriority
  6737. {
  6738. // Methods:
  6739. void ApplyAttributes();
  6740. void DrawDebugGeometry(DebugRenderer, bool);
  6741. Variant GetAttribute(const String&) const;
  6742. ValueAnimation GetAttributeAnimation(const String&) const;
  6743. float GetAttributeAnimationSpeed(const String&) const;
  6744. float GetAttributeAnimationTime(const String&) const;
  6745. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6746. Variant GetAttributeDefault(const String&) const;
  6747. bool GetInterceptNetworkUpdate(const String&) const;
  6748. bool HasSubscribedToEvent(Object, const String&);
  6749. bool HasSubscribedToEvent(const String&);
  6750. bool Load(File, bool = false);
  6751. bool Load(VectorBuffer&, bool = false);
  6752. bool LoadJSON(const JSONValue&, bool = false);
  6753. bool LoadXML(const XMLElement&, bool = false);
  6754. void MarkNetworkUpdate() const;
  6755. void Remove();
  6756. void RemoveAttributeAnimation(const String&);
  6757. void RemoveInstanceDefault();
  6758. void RemoveObjectAnimation();
  6759. void ResetToDefault();
  6760. bool Save(File) const;
  6761. bool Save(VectorBuffer&) const;
  6762. bool SaveJSON(JSONValue&) const;
  6763. bool SaveXML(XMLElement&) const;
  6764. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6765. void SetAnimationTime(float);
  6766. bool SetAttribute(const String&, const Variant&);
  6767. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6768. void SetAttributeAnimationSpeed(const String&, float);
  6769. void SetAttributeAnimationTime(const String&, float);
  6770. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6771. void SetInterceptNetworkUpdate(const String&, bool);
  6772. // Properties:
  6773. bool alwaysUpdateOwner;
  6774. bool animationEnabled;
  6775. /* readonly */
  6776. Array<Variant> attributeDefaults;
  6777. /* readonly */
  6778. Array<AttributeInfo> attributeInfos;
  6779. Array<Variant> attributes;
  6780. float basePriority;
  6781. /* readonly */
  6782. String category;
  6783. float distanceFactor;
  6784. bool enabled;
  6785. /* readonly */
  6786. bool enabledEffective;
  6787. /* readonly */
  6788. uint id;
  6789. float minPriority;
  6790. /* readonly */
  6791. Node node;
  6792. /* readonly */
  6793. uint numAttributes;
  6794. ObjectAnimation objectAnimation;
  6795. /* readonly */
  6796. int refs;
  6797. bool temporary;
  6798. /* readonly */
  6799. StringHash type;
  6800. /* readonly */
  6801. String typeName;
  6802. /* readonly */
  6803. int weakRefs;
  6804. };
  6805. class Node
  6806. {
  6807. // Methods:
  6808. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6809. void AddTag(const String&);
  6810. void AddTags(const String&, int8 = ';');
  6811. void ApplyAttributes();
  6812. Node Clone(CreateMode = REPLICATED);
  6813. Component CloneComponent(Component, CreateMode, uint = 0);
  6814. Component CloneComponent(Component, uint = 0);
  6815. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6816. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6817. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6818. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6819. Variant GetAttribute(const String&) const;
  6820. ValueAnimation GetAttributeAnimation(const String&) const;
  6821. float GetAttributeAnimationSpeed(const String&) const;
  6822. float GetAttributeAnimationTime(const String&) const;
  6823. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6824. Variant GetAttributeDefault(const String&) const;
  6825. Node GetChild(const String&, bool = false) const;
  6826. Array<Node> GetChildren(bool = false) const;
  6827. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6828. Array<Node> GetChildrenWithScript(bool = false) const;
  6829. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6830. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  6831. Component GetComponent(const String&, bool = false) const;
  6832. Array<Component> GetComponents() const;
  6833. Array<Component> GetComponents(const String&, bool = false) const;
  6834. bool GetInterceptNetworkUpdate(const String&) const;
  6835. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6836. Component GetParentComponent(const String&, bool = false) const;
  6837. ScriptObject GetScriptObject() const;
  6838. ScriptObject GetScriptObject(const String&) const;
  6839. bool HasComponent(const String&) const;
  6840. bool HasSubscribedToEvent(Object, const String&);
  6841. bool HasSubscribedToEvent(const String&);
  6842. bool HasTag(const String&);
  6843. bool Load(File, bool = false);
  6844. bool Load(VectorBuffer&, bool = false);
  6845. bool LoadJSON(const JSONValue&, bool = false);
  6846. bool LoadXML(const XMLElement&, bool = false);
  6847. Vector3 LocalToWorld(const Vector3&) const;
  6848. Vector3 LocalToWorld(const Vector4&) const;
  6849. Vector2 LocalToWorld2D(const Vector2&) const;
  6850. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6851. void MarkDirty();
  6852. void MarkNetworkUpdate() const;
  6853. void Pitch(float, TransformSpace = TS_LOCAL);
  6854. void Remove();
  6855. void RemoveAllChildren();
  6856. void RemoveAllComponents();
  6857. void RemoveAllTags();
  6858. void RemoveAttributeAnimation(const String&);
  6859. void RemoveChild(Node);
  6860. void RemoveChildren(bool, bool, bool);
  6861. void RemoveComponent(Component);
  6862. void RemoveComponent(const String&);
  6863. void RemoveComponents(bool, bool);
  6864. void RemoveComponents(const String&);
  6865. void RemoveInstanceDefault();
  6866. void RemoveObjectAnimation();
  6867. bool RemoveTag(const String&);
  6868. void ResetDeepEnabled();
  6869. void ResetToDefault();
  6870. void Roll(float, TransformSpace = TS_LOCAL);
  6871. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6872. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6873. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6874. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6875. bool Save(File) const;
  6876. bool Save(VectorBuffer&) const;
  6877. bool SaveJSON(File);
  6878. bool SaveJSON(JSONValue&) const;
  6879. bool SaveJSON(VectorBuffer&);
  6880. bool SaveXML(File, const String& = "\t");
  6881. bool SaveXML(VectorBuffer&, const String& = "\t");
  6882. bool SaveXML(XMLElement&) const;
  6883. void Scale(const Vector3&);
  6884. void Scale(float);
  6885. void Scale2D(const Vector2&);
  6886. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6887. void SetAnimationTime(float);
  6888. bool SetAttribute(const String&, const Variant&);
  6889. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6890. void SetAttributeAnimationSpeed(const String&, float);
  6891. void SetAttributeAnimationTime(const String&, float);
  6892. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6893. void SetDeepEnabled(bool);
  6894. void SetEnabledRecursive(bool);
  6895. void SetInterceptNetworkUpdate(const String&, bool);
  6896. void SetPosition2D(float, float);
  6897. void SetScale(float);
  6898. void SetScale2D(float, float);
  6899. void SetTransform(const Vector3&, const Quaternion&);
  6900. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6901. void SetTransform(const Vector3&, const Quaternion&, float);
  6902. void SetTransform2D(const Vector2&, float);
  6903. void SetTransform2D(const Vector2&, float, const Vector2&);
  6904. void SetTransform2D(const Vector2&, float, float);
  6905. void SetWorldTransform(const Vector3&, const Quaternion&);
  6906. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6907. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6908. void SetWorldTransform2D(const Vector2&, float);
  6909. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6910. void SetWorldTransform2D(const Vector2&, float, float);
  6911. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6912. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6913. Vector3 WorldToLocal(const Vector3&) const;
  6914. Vector3 WorldToLocal(const Vector4&) const;
  6915. Vector2 WorldToLocal2D(const Vector2&) const;
  6916. void Yaw(float, TransformSpace = TS_LOCAL);
  6917. // Properties:
  6918. bool animationEnabled;
  6919. /* readonly */
  6920. Array<Variant> attributeDefaults;
  6921. /* readonly */
  6922. Array<AttributeInfo> attributeInfos;
  6923. Array<Variant> attributes;
  6924. /* readonly */
  6925. String category;
  6926. /* readonly */
  6927. Array<Node> children;
  6928. /* readonly */
  6929. Array<Component> components;
  6930. Vector3 direction;
  6931. bool enabled;
  6932. /* readonly */
  6933. bool enabledSelf;
  6934. /* readonly */
  6935. uint id;
  6936. String name;
  6937. /* readonly */
  6938. uint numAllChildren;
  6939. /* readonly */
  6940. uint numAttributes;
  6941. /* readonly */
  6942. uint numChildren;
  6943. /* readonly */
  6944. uint numComponents;
  6945. ObjectAnimation objectAnimation;
  6946. Connection owner;
  6947. Node parent;
  6948. Vector3 position;
  6949. Vector2 position2D;
  6950. /* readonly */
  6951. int refs;
  6952. /* readonly */
  6953. Vector3 right;
  6954. Quaternion rotation;
  6955. float rotation2D;
  6956. Vector3 scale;
  6957. Vector2 scale2D;
  6958. /* readonly */
  6959. Scene scene;
  6960. /* readonly */
  6961. ScriptObject scriptObject;
  6962. /* readonly */
  6963. Array<String> tags;
  6964. bool temporary;
  6965. /* readonly */
  6966. Matrix3x4 transform;
  6967. /* readonly */
  6968. StringHash type;
  6969. /* readonly */
  6970. String typeName;
  6971. /* readonly */
  6972. Vector3 up;
  6973. /* readonly */
  6974. VariantMap vars;
  6975. /* readonly */
  6976. int weakRefs;
  6977. Vector3 worldDirection;
  6978. Vector3 worldPosition;
  6979. Vector2 worldPosition2D;
  6980. /* readonly */
  6981. Vector3 worldRight;
  6982. Quaternion worldRotation;
  6983. float worldRotation2D;
  6984. Vector3 worldScale;
  6985. Vector2 worldScale2D;
  6986. /* readonly */
  6987. Matrix3x4 worldTransform;
  6988. /* readonly */
  6989. Vector3 worldUp;
  6990. };
  6991. class Object
  6992. {
  6993. // Methods:
  6994. bool HasSubscribedToEvent(Object, const String&);
  6995. bool HasSubscribedToEvent(const String&);
  6996. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6997. // Properties:
  6998. /* readonly */
  6999. String category;
  7000. /* readonly */
  7001. int refs;
  7002. /* readonly */
  7003. StringHash type;
  7004. /* readonly */
  7005. String typeName;
  7006. /* readonly */
  7007. int weakRefs;
  7008. };
  7009. class ObjectAnimation
  7010. {
  7011. // Methods:
  7012. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7013. ValueAnimation GetAttributeAnimation(const String&) const;
  7014. float GetAttributeAnimationSpeed(const String&) const;
  7015. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7016. bool HasSubscribedToEvent(Object, const String&);
  7017. bool HasSubscribedToEvent(const String&);
  7018. bool Load(File);
  7019. bool Load(VectorBuffer&);
  7020. void RemoveAttributeAnimation(ValueAnimation);
  7021. void RemoveAttributeAnimation(const String&);
  7022. bool Save(File) const;
  7023. bool Save(VectorBuffer&) const;
  7024. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7025. // Properties:
  7026. /* readonly */
  7027. Array<Variant> attributeAnimations;
  7028. /* readonly */
  7029. String category;
  7030. /* readonly */
  7031. uint memoryUse;
  7032. String name;
  7033. /* readonly */
  7034. int refs;
  7035. /* readonly */
  7036. Array<Variant> speeds;
  7037. /* readonly */
  7038. StringHash type;
  7039. /* readonly */
  7040. String typeName;
  7041. /* readonly */
  7042. uint useTimer;
  7043. /* readonly */
  7044. int weakRefs;
  7045. /* readonly */
  7046. Array<Variant> wrapModes;
  7047. };
  7048. class Obstacle
  7049. {
  7050. // Methods:
  7051. void ApplyAttributes();
  7052. void DrawDebugGeometry(DebugRenderer, bool);
  7053. void DrawDebugGeometry(bool);
  7054. Variant GetAttribute(const String&) const;
  7055. ValueAnimation GetAttributeAnimation(const String&) const;
  7056. float GetAttributeAnimationSpeed(const String&) const;
  7057. float GetAttributeAnimationTime(const String&) const;
  7058. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7059. Variant GetAttributeDefault(const String&) const;
  7060. bool GetInterceptNetworkUpdate(const String&) const;
  7061. bool HasSubscribedToEvent(Object, const String&);
  7062. bool HasSubscribedToEvent(const String&);
  7063. bool Load(File, bool = false);
  7064. bool Load(VectorBuffer&, bool = false);
  7065. bool LoadJSON(const JSONValue&, bool = false);
  7066. bool LoadXML(const XMLElement&, bool = false);
  7067. void MarkNetworkUpdate() const;
  7068. void Remove();
  7069. void RemoveAttributeAnimation(const String&);
  7070. void RemoveInstanceDefault();
  7071. void RemoveObjectAnimation();
  7072. void ResetToDefault();
  7073. bool Save(File) const;
  7074. bool Save(VectorBuffer&) const;
  7075. bool SaveJSON(JSONValue&) const;
  7076. bool SaveXML(XMLElement&) const;
  7077. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7078. void SetAnimationTime(float);
  7079. bool SetAttribute(const String&, const Variant&);
  7080. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7081. void SetAttributeAnimationSpeed(const String&, float);
  7082. void SetAttributeAnimationTime(const String&, float);
  7083. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7084. void SetInterceptNetworkUpdate(const String&, bool);
  7085. // Properties:
  7086. bool animationEnabled;
  7087. /* readonly */
  7088. Array<Variant> attributeDefaults;
  7089. /* readonly */
  7090. Array<AttributeInfo> attributeInfos;
  7091. Array<Variant> attributes;
  7092. /* readonly */
  7093. String category;
  7094. bool enabled;
  7095. /* readonly */
  7096. bool enabledEffective;
  7097. float height;
  7098. /* readonly */
  7099. uint id;
  7100. /* readonly */
  7101. Node node;
  7102. /* readonly */
  7103. uint numAttributes;
  7104. ObjectAnimation objectAnimation;
  7105. /* readonly */
  7106. uint obstacleId;
  7107. float radius;
  7108. /* readonly */
  7109. int refs;
  7110. bool temporary;
  7111. /* readonly */
  7112. StringHash type;
  7113. /* readonly */
  7114. String typeName;
  7115. /* readonly */
  7116. int weakRefs;
  7117. };
  7118. class Octree
  7119. {
  7120. // Methods:
  7121. void AddManualDrawable(Drawable);
  7122. void ApplyAttributes();
  7123. void DrawDebugGeometry(DebugRenderer, bool);
  7124. void DrawDebugGeometry(bool) const;
  7125. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7126. Variant GetAttribute(const String&) const;
  7127. ValueAnimation GetAttributeAnimation(const String&) const;
  7128. float GetAttributeAnimationSpeed(const String&) const;
  7129. float GetAttributeAnimationTime(const String&) const;
  7130. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7131. Variant GetAttributeDefault(const String&) const;
  7132. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7133. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7134. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7135. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7136. bool GetInterceptNetworkUpdate(const String&) const;
  7137. bool HasSubscribedToEvent(Object, const String&);
  7138. bool HasSubscribedToEvent(const String&);
  7139. bool Load(File, bool = false);
  7140. bool Load(VectorBuffer&, bool = false);
  7141. bool LoadJSON(const JSONValue&, bool = false);
  7142. bool LoadXML(const XMLElement&, bool = false);
  7143. void MarkNetworkUpdate() const;
  7144. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7145. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7146. void Remove();
  7147. void RemoveAttributeAnimation(const String&);
  7148. void RemoveInstanceDefault();
  7149. void RemoveManualDrawable(Drawable);
  7150. void RemoveObjectAnimation();
  7151. void ResetToDefault();
  7152. bool Save(File) const;
  7153. bool Save(VectorBuffer&) const;
  7154. bool SaveJSON(JSONValue&) const;
  7155. bool SaveXML(XMLElement&) const;
  7156. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7157. void SetAnimationTime(float);
  7158. bool SetAttribute(const String&, const Variant&);
  7159. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7160. void SetAttributeAnimationSpeed(const String&, float);
  7161. void SetAttributeAnimationTime(const String&, float);
  7162. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7163. void SetInterceptNetworkUpdate(const String&, bool);
  7164. void SetSize(const BoundingBox&, uint);
  7165. // Properties:
  7166. bool animationEnabled;
  7167. /* readonly */
  7168. Array<Variant> attributeDefaults;
  7169. /* readonly */
  7170. Array<AttributeInfo> attributeInfos;
  7171. Array<Variant> attributes;
  7172. /* readonly */
  7173. String category;
  7174. bool enabled;
  7175. /* readonly */
  7176. bool enabledEffective;
  7177. /* readonly */
  7178. uint id;
  7179. /* readonly */
  7180. Node node;
  7181. /* readonly */
  7182. uint numAttributes;
  7183. /* readonly */
  7184. uint numLevels;
  7185. ObjectAnimation objectAnimation;
  7186. /* readonly */
  7187. int refs;
  7188. bool temporary;
  7189. /* readonly */
  7190. StringHash type;
  7191. /* readonly */
  7192. String typeName;
  7193. /* readonly */
  7194. int weakRefs;
  7195. /* readonly */
  7196. BoundingBox worldBoundingBox;
  7197. };
  7198. class OffMeshConnection
  7199. {
  7200. // Methods:
  7201. void ApplyAttributes();
  7202. void DrawDebugGeometry(DebugRenderer, bool);
  7203. Variant GetAttribute(const String&) const;
  7204. ValueAnimation GetAttributeAnimation(const String&) const;
  7205. float GetAttributeAnimationSpeed(const String&) const;
  7206. float GetAttributeAnimationTime(const String&) const;
  7207. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7208. Variant GetAttributeDefault(const String&) const;
  7209. bool GetInterceptNetworkUpdate(const String&) const;
  7210. bool HasSubscribedToEvent(Object, const String&);
  7211. bool HasSubscribedToEvent(const String&);
  7212. bool Load(File, bool = false);
  7213. bool Load(VectorBuffer&, bool = false);
  7214. bool LoadJSON(const JSONValue&, bool = false);
  7215. bool LoadXML(const XMLElement&, bool = false);
  7216. void MarkNetworkUpdate() const;
  7217. void Remove();
  7218. void RemoveAttributeAnimation(const String&);
  7219. void RemoveInstanceDefault();
  7220. void RemoveObjectAnimation();
  7221. void ResetToDefault();
  7222. bool Save(File) const;
  7223. bool Save(VectorBuffer&) const;
  7224. bool SaveJSON(JSONValue&) const;
  7225. bool SaveXML(XMLElement&) const;
  7226. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7227. void SetAnimationTime(float);
  7228. bool SetAttribute(const String&, const Variant&);
  7229. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7230. void SetAttributeAnimationSpeed(const String&, float);
  7231. void SetAttributeAnimationTime(const String&, float);
  7232. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7233. void SetInterceptNetworkUpdate(const String&, bool);
  7234. // Properties:
  7235. bool animationEnabled;
  7236. uint areaID;
  7237. /* readonly */
  7238. Array<Variant> attributeDefaults;
  7239. /* readonly */
  7240. Array<AttributeInfo> attributeInfos;
  7241. Array<Variant> attributes;
  7242. bool bidirectional;
  7243. /* readonly */
  7244. String category;
  7245. bool enabled;
  7246. /* readonly */
  7247. bool enabledEffective;
  7248. Node endPoint;
  7249. /* readonly */
  7250. uint id;
  7251. uint mask;
  7252. /* readonly */
  7253. Node node;
  7254. /* readonly */
  7255. uint numAttributes;
  7256. ObjectAnimation objectAnimation;
  7257. float radius;
  7258. /* readonly */
  7259. int refs;
  7260. bool temporary;
  7261. /* readonly */
  7262. StringHash type;
  7263. /* readonly */
  7264. String typeName;
  7265. /* readonly */
  7266. int weakRefs;
  7267. };
  7268. class PackageFile
  7269. {
  7270. // Methods:
  7271. bool Exists(const String&) const;
  7272. Array<String> GetEntryNames() const;
  7273. bool HasSubscribedToEvent(Object, const String&);
  7274. bool HasSubscribedToEvent(const String&);
  7275. bool Open(const String&, uint = 0) const;
  7276. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7277. bool compressed() const;
  7278. // Properties:
  7279. /* readonly */
  7280. String category;
  7281. /* readonly */
  7282. uint checksum;
  7283. /* readonly */
  7284. String name;
  7285. /* readonly */
  7286. uint numFiles;
  7287. /* readonly */
  7288. int refs;
  7289. /* readonly */
  7290. uint totalSize;
  7291. /* readonly */
  7292. StringHash type;
  7293. /* readonly */
  7294. String typeName;
  7295. /* readonly */
  7296. int weakRefs;
  7297. };
  7298. class ParticleEffect
  7299. {
  7300. // Methods:
  7301. void AddColorFrame(ColorFrame);
  7302. void AddColorTime(Color&, float);
  7303. void AddTextureFrame(TextureFrame);
  7304. void AddTextureTime(Rect&, float);
  7305. ColorFrame GetColorFrame(uint) const;
  7306. TextureFrame GetTextureFrame(uint) const;
  7307. bool HasSubscribedToEvent(Object, const String&);
  7308. bool HasSubscribedToEvent(const String&);
  7309. bool Load(File);
  7310. bool Load(VectorBuffer&);
  7311. bool Load(const XMLElement&);
  7312. void RemoveColorFrame(uint);
  7313. void RemoveTextureFrame(uint);
  7314. bool Save(File) const;
  7315. bool Save(VectorBuffer&) const;
  7316. bool Save(XMLElement&) const;
  7317. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7318. void SetColorFrame(uint, ColorFrame);
  7319. void SetTextureFrame(uint, TextureFrame);
  7320. void SortColorFrames();
  7321. void SortTextureFrames();
  7322. // Properties:
  7323. float activeTime;
  7324. float animationLodBias;
  7325. /* readonly */
  7326. String category;
  7327. Vector3 constantForce;
  7328. float dampingForce;
  7329. Vector3 emitterSize;
  7330. EmitterType emitterType;
  7331. FaceCameraMode faceCameraMode;
  7332. float inactiveTime;
  7333. Material material;
  7334. Vector3 maxDirection;
  7335. float maxEmissionRate;
  7336. Vector2 maxParticleSize;
  7337. float maxRotation;
  7338. float maxRotationSpeed;
  7339. float maxTimeToLive;
  7340. float maxVelocity;
  7341. /* readonly */
  7342. uint memoryUse;
  7343. Vector3 minDirection;
  7344. float minEmissionRate;
  7345. Vector2 minParticleSize;
  7346. float minRotation;
  7347. float minRotationSpeed;
  7348. float minTimeToLive;
  7349. float minVelocity;
  7350. String name;
  7351. uint numColorFrames;
  7352. uint numParticles;
  7353. uint numTextureFrames;
  7354. /* readonly */
  7355. int refs;
  7356. bool relative;
  7357. bool scaled;
  7358. float sizeAdd;
  7359. float sizeMul;
  7360. bool sorted;
  7361. /* readonly */
  7362. StringHash type;
  7363. /* readonly */
  7364. String typeName;
  7365. bool updateInvisible;
  7366. /* readonly */
  7367. uint useTimer;
  7368. /* readonly */
  7369. int weakRefs;
  7370. };
  7371. class ParticleEffect2D
  7372. {
  7373. // Methods:
  7374. bool HasSubscribedToEvent(Object, const String&);
  7375. bool HasSubscribedToEvent(const String&);
  7376. bool Load(File);
  7377. bool Load(VectorBuffer&);
  7378. bool Save(File) const;
  7379. bool Save(VectorBuffer&) const;
  7380. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7381. // Properties:
  7382. /* readonly */
  7383. String category;
  7384. /* readonly */
  7385. uint memoryUse;
  7386. String name;
  7387. /* readonly */
  7388. int refs;
  7389. /* readonly */
  7390. StringHash type;
  7391. /* readonly */
  7392. String typeName;
  7393. /* readonly */
  7394. uint useTimer;
  7395. /* readonly */
  7396. int weakRefs;
  7397. };
  7398. class ParticleEmitter
  7399. {
  7400. // Methods:
  7401. void ApplyAttributes();
  7402. void ApplyEffect();
  7403. void Commit();
  7404. void DrawDebugGeometry(DebugRenderer, bool);
  7405. Variant GetAttribute(const String&) const;
  7406. ValueAnimation GetAttributeAnimation(const String&) const;
  7407. float GetAttributeAnimationSpeed(const String&) const;
  7408. float GetAttributeAnimationTime(const String&) const;
  7409. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7410. Variant GetAttributeDefault(const String&) const;
  7411. bool GetInterceptNetworkUpdate(const String&) const;
  7412. bool HasSubscribedToEvent(Object, const String&);
  7413. bool HasSubscribedToEvent(const String&);
  7414. bool IsInView(Camera) const;
  7415. bool Load(File, bool = false);
  7416. bool Load(VectorBuffer&, bool = false);
  7417. bool LoadJSON(const JSONValue&, bool = false);
  7418. bool LoadXML(const XMLElement&, bool = false);
  7419. void MarkNetworkUpdate() const;
  7420. void Remove();
  7421. void RemoveAllParticles();
  7422. void RemoveAttributeAnimation(const String&);
  7423. void RemoveInstanceDefault();
  7424. void RemoveObjectAnimation();
  7425. void Reset();
  7426. void ResetEmissionTimer();
  7427. void ResetToDefault();
  7428. bool Save(File) const;
  7429. bool Save(VectorBuffer&) const;
  7430. bool SaveJSON(JSONValue&) const;
  7431. bool SaveXML(XMLElement&) const;
  7432. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7433. void SetAnimationTime(float);
  7434. bool SetAttribute(const String&, const Variant&);
  7435. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7436. void SetAttributeAnimationSpeed(const String&, float);
  7437. void SetAttributeAnimationTime(const String&, float);
  7438. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7439. void SetInterceptNetworkUpdate(const String&, bool);
  7440. // Properties:
  7441. bool animationEnabled;
  7442. float animationLodBias;
  7443. /* readonly */
  7444. Array<Variant> attributeDefaults;
  7445. /* readonly */
  7446. Array<AttributeInfo> attributeInfos;
  7447. Array<Variant> attributes;
  7448. /* readonly */
  7449. Array<Billboard> billboards;
  7450. /* readonly */
  7451. BoundingBox boundingBox;
  7452. bool castShadows;
  7453. /* readonly */
  7454. String category;
  7455. float drawDistance;
  7456. ParticleEffect effect;
  7457. bool emitting;
  7458. bool enabled;
  7459. /* readonly */
  7460. bool enabledEffective;
  7461. FaceCameraMode faceCameraMode;
  7462. /* readonly */
  7463. uint id;
  7464. /* readonly */
  7465. bool inView;
  7466. uint lightMask;
  7467. float lodBias;
  7468. Material material;
  7469. uint maxLights;
  7470. /* readonly */
  7471. Node node;
  7472. /* readonly */
  7473. uint numAttributes;
  7474. uint numBillboards;
  7475. uint numParticles;
  7476. ObjectAnimation objectAnimation;
  7477. bool occludee;
  7478. bool occluder;
  7479. /* readonly */
  7480. int refs;
  7481. bool relative;
  7482. bool scaled;
  7483. bool serializeParticles;
  7484. float shadowDistance;
  7485. uint shadowMask;
  7486. bool sorted;
  7487. bool temporary;
  7488. /* readonly */
  7489. StringHash type;
  7490. /* readonly */
  7491. String typeName;
  7492. uint viewMask;
  7493. /* readonly */
  7494. int weakRefs;
  7495. /* readonly */
  7496. BoundingBox worldBoundingBox;
  7497. /* readonly */
  7498. Zone zone;
  7499. uint zoneMask;
  7500. };
  7501. class ParticleEmitter2D
  7502. {
  7503. // Methods:
  7504. void ApplyAttributes();
  7505. void DrawDebugGeometry(DebugRenderer, bool);
  7506. Variant GetAttribute(const String&) const;
  7507. ValueAnimation GetAttributeAnimation(const String&) const;
  7508. float GetAttributeAnimationSpeed(const String&) const;
  7509. float GetAttributeAnimationTime(const String&) const;
  7510. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7511. Variant GetAttributeDefault(const String&) const;
  7512. bool GetInterceptNetworkUpdate(const String&) const;
  7513. bool HasSubscribedToEvent(Object, const String&);
  7514. bool HasSubscribedToEvent(const String&);
  7515. bool IsInView(Camera) const;
  7516. bool Load(File, bool = false);
  7517. bool Load(VectorBuffer&, bool = false);
  7518. bool LoadJSON(const JSONValue&, bool = false);
  7519. bool LoadXML(const XMLElement&, bool = false);
  7520. void MarkNetworkUpdate() const;
  7521. void Remove();
  7522. void RemoveAttributeAnimation(const String&);
  7523. void RemoveInstanceDefault();
  7524. void RemoveObjectAnimation();
  7525. void ResetToDefault();
  7526. bool Save(File) const;
  7527. bool Save(VectorBuffer&) const;
  7528. bool SaveJSON(JSONValue&) const;
  7529. bool SaveXML(XMLElement&) const;
  7530. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7531. void SetAnimationTime(float);
  7532. bool SetAttribute(const String&, const Variant&);
  7533. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7534. void SetAttributeAnimationSpeed(const String&, float);
  7535. void SetAttributeAnimationTime(const String&, float);
  7536. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7537. void SetInterceptNetworkUpdate(const String&, bool);
  7538. // Properties:
  7539. bool animationEnabled;
  7540. /* readonly */
  7541. Array<Variant> attributeDefaults;
  7542. /* readonly */
  7543. Array<AttributeInfo> attributeInfos;
  7544. Array<Variant> attributes;
  7545. BlendMode blendMode;
  7546. /* readonly */
  7547. BoundingBox boundingBox;
  7548. bool castShadows;
  7549. /* readonly */
  7550. String category;
  7551. float drawDistance;
  7552. ParticleEffect2D effect;
  7553. bool enabled;
  7554. /* readonly */
  7555. bool enabledEffective;
  7556. /* readonly */
  7557. uint id;
  7558. /* readonly */
  7559. bool inView;
  7560. int layer;
  7561. uint lightMask;
  7562. float lodBias;
  7563. uint maxLights;
  7564. /* readonly */
  7565. Node node;
  7566. /* readonly */
  7567. uint numAttributes;
  7568. ObjectAnimation objectAnimation;
  7569. bool occludee;
  7570. bool occluder;
  7571. int orderInLayer;
  7572. /* readonly */
  7573. int refs;
  7574. float shadowDistance;
  7575. uint shadowMask;
  7576. Sprite2D sprite;
  7577. bool temporary;
  7578. /* readonly */
  7579. StringHash type;
  7580. /* readonly */
  7581. String typeName;
  7582. uint viewMask;
  7583. /* readonly */
  7584. int weakRefs;
  7585. /* readonly */
  7586. BoundingBox worldBoundingBox;
  7587. uint zoneMask;
  7588. };
  7589. class Pass
  7590. {
  7591. // Properties:
  7592. bool alphaMask;
  7593. BlendMode blendMode;
  7594. CompareMode depthTestMode;
  7595. bool depthWrite;
  7596. bool desktop;
  7597. PassLightingMode lightingMode;
  7598. String pixelShader;
  7599. String pixelShaderDefines;
  7600. /* readonly */
  7601. int refs;
  7602. String vertexShader;
  7603. String vertexShaderDefines;
  7604. /* readonly */
  7605. int weakRefs;
  7606. };
  7607. class PhysicsRaycastResult
  7608. {
  7609. // Properties:
  7610. /* readonly */
  7611. RigidBody body;
  7612. float distance;
  7613. float hitFraction;
  7614. Vector3 normal;
  7615. Vector3 position;
  7616. };
  7617. class PhysicsRaycastResult2D
  7618. {
  7619. // Properties:
  7620. /* readonly */
  7621. RigidBody2D body;
  7622. float distance;
  7623. Vector2 normal;
  7624. Vector2 position;
  7625. };
  7626. class PhysicsWorld
  7627. {
  7628. // Methods:
  7629. void ApplyAttributes();
  7630. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7631. void DrawDebugGeometry(DebugRenderer, bool);
  7632. void DrawDebugGeometry(bool);
  7633. Variant GetAttribute(const String&) const;
  7634. ValueAnimation GetAttributeAnimation(const String&) const;
  7635. float GetAttributeAnimationSpeed(const String&) const;
  7636. float GetAttributeAnimationTime(const String&) const;
  7637. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7638. Variant GetAttributeDefault(const String&) const;
  7639. Array<RigidBody> GetCollidingBodies(RigidBody);
  7640. bool GetInterceptNetworkUpdate(const String&) const;
  7641. Array<RigidBody> GetRigidBodies(RigidBody);
  7642. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7643. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7644. bool HasSubscribedToEvent(Object, const String&);
  7645. bool HasSubscribedToEvent(const String&);
  7646. bool Load(File, bool = false);
  7647. bool Load(VectorBuffer&, bool = false);
  7648. bool LoadJSON(const JSONValue&, bool = false);
  7649. bool LoadXML(const XMLElement&, bool = false);
  7650. void MarkNetworkUpdate() const;
  7651. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7652. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7653. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7654. void Remove();
  7655. void RemoveAttributeAnimation(const String&);
  7656. void RemoveCachedGeometry(Model);
  7657. void RemoveInstanceDefault();
  7658. void RemoveObjectAnimation();
  7659. void ResetToDefault();
  7660. bool Save(File) const;
  7661. bool Save(VectorBuffer&) const;
  7662. bool SaveJSON(JSONValue&) const;
  7663. bool SaveXML(XMLElement&) const;
  7664. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7665. void SetAnimationTime(float);
  7666. bool SetAttribute(const String&, const Variant&);
  7667. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7668. void SetAttributeAnimationSpeed(const String&, float);
  7669. void SetAttributeAnimationTime(const String&, float);
  7670. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7671. void SetInterceptNetworkUpdate(const String&, bool);
  7672. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7673. void Update(float);
  7674. void UpdateCollisions();
  7675. // Properties:
  7676. bool animationEnabled;
  7677. /* readonly */
  7678. Array<Variant> attributeDefaults;
  7679. /* readonly */
  7680. Array<AttributeInfo> attributeInfos;
  7681. Array<Variant> attributes;
  7682. /* readonly */
  7683. String category;
  7684. bool enabled;
  7685. /* readonly */
  7686. bool enabledEffective;
  7687. int fps;
  7688. Vector3 gravity;
  7689. /* readonly */
  7690. uint id;
  7691. bool internalEdge;
  7692. bool interpolation;
  7693. int maxSubSteps;
  7694. /* readonly */
  7695. Node node;
  7696. /* readonly */
  7697. uint numAttributes;
  7698. int numIterations;
  7699. ObjectAnimation objectAnimation;
  7700. /* readonly */
  7701. int refs;
  7702. bool splitImpulse;
  7703. bool temporary;
  7704. /* readonly */
  7705. StringHash type;
  7706. /* readonly */
  7707. String typeName;
  7708. bool updateEnabled;
  7709. /* readonly */
  7710. int weakRefs;
  7711. };
  7712. class PhysicsWorld2D
  7713. {
  7714. // Methods:
  7715. void ApplyAttributes();
  7716. void DrawDebugGeometry() const;
  7717. void DrawDebugGeometry(DebugRenderer, bool);
  7718. Variant GetAttribute(const String&) const;
  7719. ValueAnimation GetAttributeAnimation(const String&) const;
  7720. float GetAttributeAnimationSpeed(const String&) const;
  7721. float GetAttributeAnimationTime(const String&) const;
  7722. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7723. Variant GetAttributeDefault(const String&) const;
  7724. bool GetInterceptNetworkUpdate(const String&) const;
  7725. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7726. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7727. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7728. bool HasSubscribedToEvent(Object, const String&);
  7729. bool HasSubscribedToEvent(const String&);
  7730. bool Load(File, bool = false);
  7731. bool Load(VectorBuffer&, bool = false);
  7732. bool LoadJSON(const JSONValue&, bool = false);
  7733. bool LoadXML(const XMLElement&, bool = false);
  7734. void MarkNetworkUpdate() const;
  7735. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7736. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7737. void Remove();
  7738. void RemoveAttributeAnimation(const String&);
  7739. void RemoveInstanceDefault();
  7740. void RemoveObjectAnimation();
  7741. void ResetToDefault();
  7742. bool Save(File) const;
  7743. bool Save(VectorBuffer&) const;
  7744. bool SaveJSON(JSONValue&) const;
  7745. bool SaveXML(XMLElement&) const;
  7746. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7747. void SetAnimationTime(float);
  7748. bool SetAttribute(const String&, const Variant&);
  7749. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7750. void SetAttributeAnimationSpeed(const String&, float);
  7751. void SetAttributeAnimationTime(const String&, float);
  7752. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7753. void SetInterceptNetworkUpdate(const String&, bool);
  7754. // Properties:
  7755. bool allowSleeping;
  7756. bool animationEnabled;
  7757. /* readonly */
  7758. Array<Variant> attributeDefaults;
  7759. /* readonly */
  7760. Array<AttributeInfo> attributeInfos;
  7761. Array<Variant> attributes;
  7762. bool autoClearForces;
  7763. /* readonly */
  7764. String category;
  7765. bool continuousPhysics;
  7766. bool drawAabb;
  7767. bool drawCenterOfMass;
  7768. bool drawJoint;
  7769. bool drawPair;
  7770. bool drawShape;
  7771. bool enabled;
  7772. /* readonly */
  7773. bool enabledEffective;
  7774. Vector2 gravity;
  7775. /* readonly */
  7776. uint id;
  7777. /* readonly */
  7778. Node node;
  7779. /* readonly */
  7780. uint numAttributes;
  7781. ObjectAnimation objectAnimation;
  7782. uint positionIterations;
  7783. /* readonly */
  7784. int refs;
  7785. bool subStepping;
  7786. bool temporary;
  7787. /* readonly */
  7788. StringHash type;
  7789. /* readonly */
  7790. String typeName;
  7791. bool updateEnabled;
  7792. uint velocityIterations;
  7793. bool warmStarting;
  7794. /* readonly */
  7795. int weakRefs;
  7796. };
  7797. class Plane
  7798. {
  7799. // Methods:
  7800. void Define(const Vector3&, const Vector3&);
  7801. void Define(const Vector3&, const Vector3&, const Vector3&);
  7802. void Define(const Vector4&);
  7803. float Distance(const Vector3&) const;
  7804. Vector3 Project(const Vector3&) const;
  7805. Vector3 Reflect(const Vector3&) const;
  7806. Vector4 ToVector4() const;
  7807. void Transform(const Matrix3&);
  7808. void Transform(const Matrix3x4&);
  7809. void Transform(const Matrix4&);
  7810. Plane Transformed(const Matrix3&) const;
  7811. Plane Transformed(const Matrix3x4&) const;
  7812. Plane Transformed(const Matrix4&) const;
  7813. // Properties:
  7814. Vector3 absNormal;
  7815. float d;
  7816. Vector3 normal;
  7817. /* readonly */
  7818. Matrix3x4 reflectionMatrix;
  7819. };
  7820. class Polyhedron
  7821. {
  7822. // Methods:
  7823. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7824. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7825. void AddFace(const Array<Vector3>);
  7826. void Clear();
  7827. void Clip(const BoundingBox&);
  7828. void Clip(const Frustum&);
  7829. void Define(const BoundingBox&);
  7830. void Define(const Frustum&);
  7831. void Transform(const Matrix3&);
  7832. void Transform(const Matrix3x4&);
  7833. Polyhedron Transformed(const Matrix3&) const;
  7834. Polyhedron Transformed(const Matrix3x4&) const;
  7835. // Properties:
  7836. /* readonly */
  7837. Array<Array<Vector3>> face;
  7838. /* readonly */
  7839. uint numFaces;
  7840. };
  7841. class PropertySet2D
  7842. {
  7843. // Methods:
  7844. bool HasProperty(const String&) const;
  7845. const String& GetProperty(const String&) const;
  7846. // Properties:
  7847. /* readonly */
  7848. int refs;
  7849. /* readonly */
  7850. int weakRefs;
  7851. };
  7852. class Quaternion
  7853. {
  7854. // Methods:
  7855. Quaternion Conjugate() const;
  7856. float DotProduct(const Quaternion&) const;
  7857. bool Equals(const Quaternion&) const;
  7858. void FromAngleAxis(float, const Vector3&);
  7859. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7860. void FromEulerAngles(float, float, float);
  7861. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  7862. void FromRotationMatrix(const Matrix3&);
  7863. void FromRotationTo(const Vector3&, const Vector3&);
  7864. Quaternion Inverse() const;
  7865. bool IsNaN() const;
  7866. float LengthSquared() const;
  7867. Quaternion Nlerp(Quaternion, float, bool) const;
  7868. void Normalize();
  7869. Quaternion Normalized() const;
  7870. Quaternion Slerp(Quaternion, float) const;
  7871. String ToString() const;
  7872. // Properties:
  7873. /* readonly */
  7874. Vector3 eulerAngles;
  7875. /* readonly */
  7876. float pitch;
  7877. /* readonly */
  7878. float roll;
  7879. /* readonly */
  7880. Matrix3 rotationMatrix;
  7881. float w;
  7882. float x;
  7883. float y;
  7884. /* readonly */
  7885. float yaw;
  7886. float z;
  7887. };
  7888. class Ray
  7889. {
  7890. // Methods:
  7891. Vector3 ClosestPoint(const Ray&) const;
  7892. void Define(const Vector3&, const Vector3&);
  7893. float Distance(const Vector3&) const;
  7894. float HitDistance(const BoundingBox&) const;
  7895. float HitDistance(const Frustum&, bool = true) const;
  7896. float HitDistance(const Plane&) const;
  7897. float HitDistance(const Sphere&) const;
  7898. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7899. Vector3 Project(const Vector3&) const;
  7900. Ray Transformed(const Matrix3x4&) const;
  7901. // Properties:
  7902. Vector3 direction;
  7903. Vector3 origin;
  7904. };
  7905. class RayQueryResult
  7906. {
  7907. // Properties:
  7908. float distance;
  7909. /* readonly */
  7910. Drawable drawable;
  7911. /* readonly */
  7912. Node node;
  7913. Vector3 normal;
  7914. Vector3 position;
  7915. uint subObject;
  7916. Vector2 textureUV;
  7917. };
  7918. class Rect
  7919. {
  7920. // Methods:
  7921. void Clear();
  7922. void Clip(const Rect&);
  7923. void Define(const Vector2&);
  7924. void Define(const Vector2&, const Vector2&);
  7925. bool Defined() const;
  7926. bool Equals(const Rect&) const;
  7927. Intersection IsInside(const Vector2&) const;
  7928. void Merge(const Rect&);
  7929. void Merge(const Vector2&);
  7930. Vector4 ToVector4() const;
  7931. // Properties:
  7932. float bottom;
  7933. /* readonly */
  7934. Vector2 center;
  7935. /* readonly */
  7936. Vector2 halfSize;
  7937. float left;
  7938. Vector2 max;
  7939. Vector2 min;
  7940. float right;
  7941. /* readonly */
  7942. Vector2 size;
  7943. float top;
  7944. };
  7945. class RefCounted
  7946. {
  7947. // Properties:
  7948. /* readonly */
  7949. int refs;
  7950. /* readonly */
  7951. int weakRefs;
  7952. };
  7953. class RenderPath
  7954. {
  7955. // Methods:
  7956. void AddCommand(const RenderPathCommand&);
  7957. void AddRenderTarget(const RenderTargetInfo&);
  7958. bool Append(XMLFile);
  7959. RenderPath Clone();
  7960. void InsertCommand(uint, const RenderPathCommand&);
  7961. bool Load(XMLFile);
  7962. void RemoveCommand(uint);
  7963. void RemoveCommands(const String&);
  7964. void RemoveRenderTarget(const String&);
  7965. void RemoveRenderTarget(uint);
  7966. void RemoveRenderTargts(const String&);
  7967. void SetEnabled(const String&, bool);
  7968. void ToggleEnabled(const String&);
  7969. // Properties:
  7970. Array<RenderPathCommand> commands;
  7971. /* readonly */
  7972. uint numCommands;
  7973. /* readonly */
  7974. uint numRenderTargets;
  7975. /* readonly */
  7976. int refs;
  7977. Array<RenderTargetInfo> renderTargets;
  7978. Array<Variant> shaderParameters;
  7979. /* readonly */
  7980. int weakRefs;
  7981. };
  7982. class RenderPathCommand
  7983. {
  7984. // Methods:
  7985. void RemoveShaderParameter(const String&);
  7986. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  7987. // Properties:
  7988. BlendMode blendMode;
  7989. Color clearColor;
  7990. float clearDepth;
  7991. uint clearFlags;
  7992. uint clearStencil;
  7993. String depthStencilName;
  7994. bool enabled;
  7995. bool markToStencil;
  7996. String metadata;
  7997. uint numOutputs;
  7998. Array<CubeMapFace> outputFaces;
  7999. Array<String> outputNames;
  8000. String pass;
  8001. String pixelShaderDefines;
  8002. String pixelShaderName;
  8003. Array<Variant> shaderParameters;
  8004. RenderCommandSortMode sortMode;
  8005. String tag;
  8006. Array<String> textureNames;
  8007. RenderCommandType type;
  8008. bool useFogColor;
  8009. bool useLitBase;
  8010. bool vertexLights;
  8011. String vertexShaderDefines;
  8012. String vertexShaderName;
  8013. };
  8014. class RenderSurface
  8015. {
  8016. // Methods:
  8017. void QueueUpdate();
  8018. // Properties:
  8019. /* readonly */
  8020. int height;
  8021. RenderSurface linkedDepthStencil;
  8022. RenderSurface linkedRenderTarget;
  8023. uint numViewports;
  8024. /* readonly */
  8025. Texture parentTexture;
  8026. RenderSurfaceUpdateMode updateMode;
  8027. /* readonly */
  8028. TextureUsage usage;
  8029. Array<Viewport> viewports;
  8030. /* readonly */
  8031. int width;
  8032. };
  8033. class RenderTargetInfo
  8034. {
  8035. // Properties:
  8036. bool cubemap;
  8037. bool enabled;
  8038. bool filtered;
  8039. uint format;
  8040. String name;
  8041. bool persistent;
  8042. bool sRGB;
  8043. Vector2 size;
  8044. RenderTargetSizeMode sizeMode;
  8045. String tag;
  8046. };
  8047. class Renderer
  8048. {
  8049. // Methods:
  8050. void DrawDebugGeometry(bool) const;
  8051. bool HasSubscribedToEvent(Object, const String&);
  8052. bool HasSubscribedToEvent(const String&);
  8053. void ReloadShaders() const;
  8054. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8055. void SetDefaultRenderPath(XMLFile);
  8056. void SetVSMShadowParameters(float, float);
  8057. // Properties:
  8058. /* readonly */
  8059. String category;
  8060. /* readonly */
  8061. Material defaultLightRamp;
  8062. /* readonly */
  8063. Material defaultLightSpot;
  8064. /* readonly */
  8065. Material defaultMaterial;
  8066. RenderPath defaultRenderPath;
  8067. /* readonly */
  8068. Zone defaultZone;
  8069. bool drawShadows;
  8070. bool dynamicInstancing;
  8071. bool hdrRendering;
  8072. int materialQuality;
  8073. int maxOccluderTriangles;
  8074. int maxShadowMaps;
  8075. int maxSortedInstances;
  8076. int minInstances;
  8077. float mobileShadowBiasAdd;
  8078. float mobileShadowBiasMul;
  8079. /* readonly */
  8080. uint numBatches;
  8081. /* readonly */
  8082. Array<uint> numGeometries;
  8083. /* readonly */
  8084. Array<uint> numLights;
  8085. /* readonly */
  8086. Array<uint> numOccluders;
  8087. /* readonly */
  8088. uint numPrimitives;
  8089. /* readonly */
  8090. Array<uint> numShadowMaps;
  8091. uint numViewports;
  8092. /* readonly */
  8093. uint numViews;
  8094. float occluderSizeThreshold;
  8095. int occlusionBufferSize;
  8096. /* readonly */
  8097. int refs;
  8098. bool reuseShadowMaps;
  8099. int shadowMapSize;
  8100. ShadowQuality shadowQuality;
  8101. float shadowSoftness;
  8102. bool specularLighting;
  8103. int textureAnisotropy;
  8104. TextureFilterMode textureFilterMode;
  8105. int textureQuality;
  8106. bool threadedOcclusion;
  8107. /* readonly */
  8108. StringHash type;
  8109. /* readonly */
  8110. String typeName;
  8111. Array<Viewport> viewports;
  8112. Vector2 vsmShadowParameters;
  8113. /* readonly */
  8114. int weakRefs;
  8115. };
  8116. class Resource
  8117. {
  8118. // Methods:
  8119. bool HasSubscribedToEvent(Object, const String&);
  8120. bool HasSubscribedToEvent(const String&);
  8121. bool Load(File);
  8122. bool Load(VectorBuffer&);
  8123. bool Save(File) const;
  8124. bool Save(VectorBuffer&) const;
  8125. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8126. // Properties:
  8127. /* readonly */
  8128. String category;
  8129. /* readonly */
  8130. uint memoryUse;
  8131. String name;
  8132. /* readonly */
  8133. int refs;
  8134. /* readonly */
  8135. StringHash type;
  8136. /* readonly */
  8137. String typeName;
  8138. /* readonly */
  8139. uint useTimer;
  8140. /* readonly */
  8141. int weakRefs;
  8142. };
  8143. class ResourceCache
  8144. {
  8145. // Methods:
  8146. bool AddManualResource(Resource);
  8147. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8148. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8149. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8150. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8151. bool Exists(const String&) const;
  8152. Resource GetExistingResource(StringHash, const String&);
  8153. Resource GetExistingResource(const String&, const String&);
  8154. File GetFile(const String&);
  8155. String GetPreferredResourceDir(const String&) const;
  8156. Resource GetResource(StringHash, const String&, bool = true);
  8157. Resource GetResource(const String&, const String&, bool = true);
  8158. String GetResourceFileName(const String&) const;
  8159. bool HasSubscribedToEvent(Object, const String&);
  8160. bool HasSubscribedToEvent(const String&);
  8161. void ReleaseAllResources(bool = false);
  8162. void ReleaseResource(const String&, const String&, bool = false);
  8163. void ReleaseResources(StringHash, bool = false);
  8164. void ReleaseResources(const String&, bool = false);
  8165. void ReleaseResources(const String&, const String&, bool = false);
  8166. bool ReloadResource(Resource);
  8167. void ReloadResourceWithDependencies(const String&);
  8168. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8169. void RemovePackageFile(const String&, bool = true, bool = false);
  8170. void RemoveResourceDir(const String&);
  8171. String SanitateResourceDirName(const String&) const;
  8172. String SanitateResourceName(const String&) const;
  8173. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8174. // Properties:
  8175. bool autoReloadResources;
  8176. /* readonly */
  8177. String category;
  8178. int finishBackgroundResourcesMs;
  8179. Array<uint64> memoryBudget;
  8180. /* readonly */
  8181. Array<uint64> memoryUse;
  8182. /* readonly */
  8183. uint numBackgroundLoadResources;
  8184. /* readonly */
  8185. Array<PackageFile> packageFiles;
  8186. /* readonly */
  8187. int refs;
  8188. /* readonly */
  8189. Array<String> resourceDirs;
  8190. bool returnFailedResources;
  8191. /* readonly */
  8192. bool seachPackagesFirst;
  8193. /* writeonly */
  8194. bool searchPackagesFirst;
  8195. /* readonly */
  8196. uint64 totalMemoryUse;
  8197. /* readonly */
  8198. StringHash type;
  8199. /* readonly */
  8200. String typeName;
  8201. /* readonly */
  8202. int weakRefs;
  8203. };
  8204. class ResourceRef
  8205. {
  8206. // Properties:
  8207. String name;
  8208. StringHash type;
  8209. };
  8210. class ResourceRefList
  8211. {
  8212. // Methods:
  8213. void Resize(uint);
  8214. // Properties:
  8215. /* readonly */
  8216. bool empty;
  8217. /* readonly */
  8218. uint length;
  8219. Array<String> names;
  8220. StringHash type;
  8221. };
  8222. class RigidBody
  8223. {
  8224. // Methods:
  8225. void Activate();
  8226. void ApplyAttributes();
  8227. void ApplyForce(const Vector3&);
  8228. void ApplyForce(const Vector3&, const Vector3&);
  8229. void ApplyImpulse(const Vector3&);
  8230. void ApplyImpulse(const Vector3&, const Vector3&);
  8231. void ApplyTorque(const Vector3&);
  8232. void ApplyTorqueImpulse(const Vector3&);
  8233. void DisableMassUpdate();
  8234. void DrawDebugGeometry(DebugRenderer, bool);
  8235. void EnableMassUpdate();
  8236. Variant GetAttribute(const String&) const;
  8237. ValueAnimation GetAttributeAnimation(const String&) const;
  8238. float GetAttributeAnimationSpeed(const String&) const;
  8239. float GetAttributeAnimationTime(const String&) const;
  8240. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8241. Variant GetAttributeDefault(const String&) const;
  8242. bool GetInterceptNetworkUpdate(const String&) const;
  8243. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8244. bool HasSubscribedToEvent(Object, const String&);
  8245. bool HasSubscribedToEvent(const String&);
  8246. bool Load(File, bool = false);
  8247. bool Load(VectorBuffer&, bool = false);
  8248. bool LoadJSON(const JSONValue&, bool = false);
  8249. bool LoadXML(const XMLElement&, bool = false);
  8250. void MarkNetworkUpdate() const;
  8251. void ReAddBodyToWorld();
  8252. void Remove();
  8253. void RemoveAttributeAnimation(const String&);
  8254. void RemoveInstanceDefault();
  8255. void RemoveObjectAnimation();
  8256. void ResetForces();
  8257. void ResetToDefault();
  8258. bool Save(File) const;
  8259. bool Save(VectorBuffer&) const;
  8260. bool SaveJSON(JSONValue&) const;
  8261. bool SaveXML(XMLElement&) const;
  8262. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8263. void SetAnimationTime(float);
  8264. bool SetAttribute(const String&, const Variant&);
  8265. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8266. void SetAttributeAnimationSpeed(const String&, float);
  8267. void SetAttributeAnimationTime(const String&, float);
  8268. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8269. void SetCollisionLayerAndMask(uint, uint);
  8270. void SetInterceptNetworkUpdate(const String&, bool);
  8271. void SetTransform(const Vector3&, const Quaternion&);
  8272. // Properties:
  8273. /* readonly */
  8274. bool active;
  8275. float angularDamping;
  8276. Vector3 angularFactor;
  8277. float angularRestThreshold;
  8278. Vector3 angularVelocity;
  8279. bool animationEnabled;
  8280. Vector3 anisotropicFriction;
  8281. /* readonly */
  8282. Array<Variant> attributeDefaults;
  8283. /* readonly */
  8284. Array<AttributeInfo> attributeInfos;
  8285. Array<Variant> attributes;
  8286. /* readonly */
  8287. String category;
  8288. float ccdMotionThreshold;
  8289. float ccdRadius;
  8290. /* readonly */
  8291. Vector3 centerOfMass;
  8292. /* readonly */
  8293. Array<RigidBody> collidingBodies;
  8294. CollisionEventMode collisionEventMode;
  8295. uint collisionLayer;
  8296. uint collisionMask;
  8297. float contactProcessingThreshold;
  8298. bool enabled;
  8299. /* readonly */
  8300. bool enabledEffective;
  8301. float friction;
  8302. Vector3 gravityOverride;
  8303. /* readonly */
  8304. uint id;
  8305. bool kinematic;
  8306. float linearDamping;
  8307. Vector3 linearFactor;
  8308. float linearRestThreshold;
  8309. Vector3 linearVelocity;
  8310. float mass;
  8311. /* readonly */
  8312. Node node;
  8313. /* readonly */
  8314. uint numAttributes;
  8315. ObjectAnimation objectAnimation;
  8316. Vector3 position;
  8317. /* readonly */
  8318. int refs;
  8319. float restitution;
  8320. float rollingFriction;
  8321. Quaternion rotation;
  8322. bool temporary;
  8323. bool trigger;
  8324. /* readonly */
  8325. StringHash type;
  8326. /* readonly */
  8327. String typeName;
  8328. bool useGravity;
  8329. /* readonly */
  8330. int weakRefs;
  8331. };
  8332. class RigidBody2D
  8333. {
  8334. // Methods:
  8335. void ApplyAngularImpulse(float, bool);
  8336. void ApplyAttributes();
  8337. void ApplyForce(const Vector2&, const Vector2&, bool);
  8338. void ApplyForceToCenter(const Vector2&, bool);
  8339. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8340. void ApplyTorque(float, bool);
  8341. void DrawDebugGeometry(DebugRenderer, bool);
  8342. Variant GetAttribute(const String&) const;
  8343. ValueAnimation GetAttributeAnimation(const String&) const;
  8344. float GetAttributeAnimationSpeed(const String&) const;
  8345. float GetAttributeAnimationTime(const String&) const;
  8346. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8347. Variant GetAttributeDefault(const String&) const;
  8348. bool GetInterceptNetworkUpdate(const String&) const;
  8349. bool HasSubscribedToEvent(Object, const String&);
  8350. bool HasSubscribedToEvent(const String&);
  8351. bool Load(File, bool = false);
  8352. bool Load(VectorBuffer&, bool = false);
  8353. bool LoadJSON(const JSONValue&, bool = false);
  8354. bool LoadXML(const XMLElement&, bool = false);
  8355. void MarkNetworkUpdate() const;
  8356. void Remove();
  8357. void RemoveAttributeAnimation(const String&);
  8358. void RemoveInstanceDefault();
  8359. void RemoveObjectAnimation();
  8360. void ResetToDefault();
  8361. bool Save(File) const;
  8362. bool Save(VectorBuffer&) const;
  8363. bool SaveJSON(JSONValue&) const;
  8364. bool SaveXML(XMLElement&) const;
  8365. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8366. void SetAnimationTime(float);
  8367. bool SetAttribute(const String&, const Variant&);
  8368. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8369. void SetAttributeAnimationSpeed(const String&, float);
  8370. void SetAttributeAnimationTime(const String&, float);
  8371. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8372. void SetInterceptNetworkUpdate(const String&, bool);
  8373. // Properties:
  8374. bool allowSleep;
  8375. float angularDamping;
  8376. bool animationEnabled;
  8377. /* readonly */
  8378. Array<Variant> attributeDefaults;
  8379. /* readonly */
  8380. Array<AttributeInfo> attributeInfos;
  8381. Array<Variant> attributes;
  8382. bool awake;
  8383. BodyType2D bodyType;
  8384. bool bullet;
  8385. /* readonly */
  8386. String category;
  8387. bool enabled;
  8388. /* readonly */
  8389. bool enabledEffective;
  8390. bool fixedRotation;
  8391. float gravityScale;
  8392. /* readonly */
  8393. uint id;
  8394. float inertia;
  8395. float linearDamping;
  8396. Vector2 linearVelocity;
  8397. float mass;
  8398. Vector2 massCenter;
  8399. /* readonly */
  8400. Node node;
  8401. /* readonly */
  8402. uint numAttributes;
  8403. ObjectAnimation objectAnimation;
  8404. /* readonly */
  8405. int refs;
  8406. bool temporary;
  8407. /* readonly */
  8408. StringHash type;
  8409. /* readonly */
  8410. String typeName;
  8411. bool useFixtureMass;
  8412. /* readonly */
  8413. int weakRefs;
  8414. };
  8415. class Scene
  8416. {
  8417. // Methods:
  8418. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8419. void AddRequiredPackageFile(PackageFile);
  8420. void AddTag(const String&);
  8421. void AddTags(const String&, int8 = ';');
  8422. void ApplyAttributes();
  8423. void Clear(bool = true, bool = true);
  8424. void ClearRequiredPackageFiles();
  8425. Component CloneComponent(Component, CreateMode, uint = 0);
  8426. Component CloneComponent(Component, uint = 0);
  8427. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8428. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8429. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8430. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8431. Variant GetAttribute(const String&) const;
  8432. ValueAnimation GetAttributeAnimation(const String&) const;
  8433. float GetAttributeAnimationSpeed(const String&) const;
  8434. float GetAttributeAnimationTime(const String&) const;
  8435. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8436. Variant GetAttributeDefault(const String&) const;
  8437. Node GetChild(const String&, bool = false) const;
  8438. Array<Node> GetChildren(bool = false) const;
  8439. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8440. Array<Node> GetChildrenWithScript(bool = false) const;
  8441. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8442. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8443. Component GetComponent(const String&, bool = false) const;
  8444. Component GetComponent(uint) const;
  8445. Array<Component> GetComponents() const;
  8446. Array<Component> GetComponents(const String&, bool = false) const;
  8447. bool GetInterceptNetworkUpdate(const String&) const;
  8448. Node GetNode(uint) const;
  8449. Array<Node> GetNodesWithTag(const String&) const;
  8450. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8451. Component GetParentComponent(const String&, bool = false) const;
  8452. ScriptObject GetScriptObject() const;
  8453. ScriptObject GetScriptObject(const String&) const;
  8454. bool HasComponent(const String&) const;
  8455. bool HasSubscribedToEvent(Object, const String&);
  8456. bool HasSubscribedToEvent(const String&);
  8457. bool HasTag(const String&);
  8458. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8459. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8460. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8461. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8462. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8463. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8464. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8465. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8466. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8467. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8468. bool Load(File, bool = false);
  8469. bool Load(VectorBuffer&, bool = false);
  8470. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8471. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8472. bool LoadJSON(File);
  8473. bool LoadJSON(VectorBuffer&);
  8474. bool LoadJSON(const JSONValue&, bool = false);
  8475. bool LoadXML(File);
  8476. bool LoadXML(VectorBuffer&);
  8477. bool LoadXML(const XMLElement&, bool = false);
  8478. Vector3 LocalToWorld(const Vector3&) const;
  8479. Vector3 LocalToWorld(const Vector4&) const;
  8480. Vector2 LocalToWorld2D(const Vector2&) const;
  8481. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8482. void MarkNetworkUpdate() const;
  8483. void Pitch(float, TransformSpace = TS_LOCAL);
  8484. void RegisterVar(const String&);
  8485. void Remove();
  8486. void RemoveAllChildren();
  8487. void RemoveAllComponents();
  8488. void RemoveAllTags();
  8489. void RemoveAttributeAnimation(const String&);
  8490. void RemoveChild(Node);
  8491. void RemoveChildren(bool, bool, bool);
  8492. void RemoveComponent(Component);
  8493. void RemoveComponent(const String&);
  8494. void RemoveComponents(bool, bool);
  8495. void RemoveComponents(const String&);
  8496. void RemoveInstanceDefault();
  8497. void RemoveObjectAnimation();
  8498. bool RemoveTag(const String&);
  8499. void ResetToDefault();
  8500. void Roll(float, TransformSpace = TS_LOCAL);
  8501. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8502. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8503. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8504. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8505. bool Save(File) const;
  8506. bool Save(VectorBuffer&) const;
  8507. bool SaveJSON(File, const String& = "\t");
  8508. bool SaveJSON(JSONValue&) const;
  8509. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8510. bool SaveXML(File, const String& = "\t");
  8511. bool SaveXML(VectorBuffer&, const String& = "\t");
  8512. bool SaveXML(XMLElement&) const;
  8513. void Scale(const Vector3&);
  8514. void Scale(float);
  8515. void Scale2D(const Vector2&);
  8516. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8517. void SetAnimationTime(float);
  8518. bool SetAttribute(const String&, const Variant&);
  8519. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8520. void SetAttributeAnimationSpeed(const String&, float);
  8521. void SetAttributeAnimationTime(const String&, float);
  8522. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8523. void SetInterceptNetworkUpdate(const String&, bool);
  8524. void SetPosition2D(float, float);
  8525. void SetScale(float);
  8526. void SetScale2D(float, float);
  8527. void SetTransform(const Vector3&, const Quaternion&);
  8528. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8529. void SetTransform(const Vector3&, const Quaternion&, float);
  8530. void SetTransform2D(const Vector2&, float);
  8531. void SetTransform2D(const Vector2&, float, const Vector2&);
  8532. void SetTransform2D(const Vector2&, float, float);
  8533. void SetWorldTransform(const Vector3&, const Quaternion&);
  8534. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8535. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8536. void SetWorldTransform2D(const Vector2&, float);
  8537. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8538. void SetWorldTransform2D(const Vector2&, float, float);
  8539. void StopAsyncLoading();
  8540. const String& GetVarName(StringHash) const;
  8541. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8542. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8543. void UnregisterAllVars(const String&);
  8544. void UnregisterVar(const String&);
  8545. void Update(float);
  8546. Vector3 WorldToLocal(const Vector3&) const;
  8547. Vector3 WorldToLocal(const Vector4&) const;
  8548. Vector2 WorldToLocal2D(const Vector2&) const;
  8549. void Yaw(float, TransformSpace = TS_LOCAL);
  8550. // Properties:
  8551. bool animationEnabled;
  8552. /* readonly */
  8553. LoadMode asyncLoadMode;
  8554. /* readonly */
  8555. bool asyncLoading;
  8556. int asyncLoadingMs;
  8557. /* readonly */
  8558. float asyncProgress;
  8559. /* readonly */
  8560. Array<Variant> attributeDefaults;
  8561. /* readonly */
  8562. Array<AttributeInfo> attributeInfos;
  8563. Array<Variant> attributes;
  8564. /* readonly */
  8565. String category;
  8566. /* readonly */
  8567. uint checksum;
  8568. /* readonly */
  8569. Array<Node> children;
  8570. /* readonly */
  8571. Array<Component> components;
  8572. /* readonly */
  8573. DebugRenderer debugRenderer;
  8574. Vector3 direction;
  8575. float elapsedTime;
  8576. /* readonly */
  8577. String fileName;
  8578. /* readonly */
  8579. uint id;
  8580. String name;
  8581. /* readonly */
  8582. uint numAllChildren;
  8583. /* readonly */
  8584. uint numAttributes;
  8585. /* readonly */
  8586. uint numChildren;
  8587. /* readonly */
  8588. uint numComponents;
  8589. ObjectAnimation objectAnimation;
  8590. /* readonly */
  8591. Octree octree;
  8592. Node parent;
  8593. /* readonly */
  8594. PhysicsWorld physicsWorld;
  8595. /* readonly */
  8596. PhysicsWorld2D physicsWorld2D;
  8597. Vector3 position;
  8598. Vector2 position2D;
  8599. /* readonly */
  8600. int refs;
  8601. /* readonly */
  8602. Array<PackageFile> requiredPackageFiles;
  8603. /* readonly */
  8604. Vector3 right;
  8605. Quaternion rotation;
  8606. float rotation2D;
  8607. Vector3 scale;
  8608. Vector2 scale2D;
  8609. /* readonly */
  8610. ScriptObject scriptObject;
  8611. float smoothingConstant;
  8612. float snapThreshold;
  8613. /* readonly */
  8614. Array<String> tags;
  8615. bool temporary;
  8616. float timeScale;
  8617. /* readonly */
  8618. Matrix3x4 transform;
  8619. /* readonly */
  8620. StringHash type;
  8621. /* readonly */
  8622. String typeName;
  8623. /* readonly */
  8624. Vector3 up;
  8625. bool updateEnabled;
  8626. /* readonly */
  8627. VariantMap vars;
  8628. /* readonly */
  8629. int weakRefs;
  8630. Vector3 worldDirection;
  8631. Vector3 worldPosition;
  8632. Vector2 worldPosition2D;
  8633. /* readonly */
  8634. Vector3 worldRight;
  8635. Quaternion worldRotation;
  8636. float worldRotation2D;
  8637. Vector3 worldScale;
  8638. Vector2 worldScale2D;
  8639. /* readonly */
  8640. Matrix3x4 worldTransform;
  8641. /* readonly */
  8642. Vector3 worldUp;
  8643. };
  8644. class Script
  8645. {
  8646. // Methods:
  8647. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8648. bool Execute(const String&);
  8649. bool HasSubscribedToEvent(Object, const String&);
  8650. bool HasSubscribedToEvent(const String&);
  8651. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8652. // Properties:
  8653. /* readonly */
  8654. String category;
  8655. Scene defaultScene;
  8656. ScriptFile defaultScriptFile;
  8657. bool executeConsoleCommands;
  8658. /* readonly */
  8659. int refs;
  8660. /* readonly */
  8661. StringHash type;
  8662. /* readonly */
  8663. String typeName;
  8664. /* readonly */
  8665. int weakRefs;
  8666. };
  8667. class ScriptFile
  8668. {
  8669. // Methods:
  8670. void ClearDelayedExecute(const String& = String ( ));
  8671. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8672. bool Execute(const String&, const Array<Variant> = null);
  8673. bool HasSubscribedToEvent(Object, const String&);
  8674. bool HasSubscribedToEvent(const String&);
  8675. bool Load(File);
  8676. bool Load(VectorBuffer&);
  8677. bool Save(File) const;
  8678. bool Save(VectorBuffer&) const;
  8679. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8680. // Properties:
  8681. /* readonly */
  8682. String category;
  8683. /* readonly */
  8684. bool compiled;
  8685. /* readonly */
  8686. uint memoryUse;
  8687. String name;
  8688. /* readonly */
  8689. int refs;
  8690. /* readonly */
  8691. StringHash type;
  8692. /* readonly */
  8693. String typeName;
  8694. /* readonly */
  8695. uint useTimer;
  8696. /* readonly */
  8697. int weakRefs;
  8698. };
  8699. class ScriptInstance
  8700. {
  8701. // Methods:
  8702. void ApplyAttributes();
  8703. void ClearDelayedExecute(const String& = String ( ));
  8704. bool CreateObject(ScriptFile, const String&);
  8705. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8706. void DrawDebugGeometry(DebugRenderer, bool);
  8707. bool Execute(const String&, const Array<Variant> = null);
  8708. Variant GetAttribute(const String&) const;
  8709. ValueAnimation GetAttributeAnimation(const String&) const;
  8710. float GetAttributeAnimationSpeed(const String&) const;
  8711. float GetAttributeAnimationTime(const String&) const;
  8712. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8713. Variant GetAttributeDefault(const String&) const;
  8714. bool GetInterceptNetworkUpdate(const String&) const;
  8715. bool HasMethod(const String&) const;
  8716. bool HasSubscribedToEvent(Object, const String&);
  8717. bool HasSubscribedToEvent(const String&);
  8718. bool IsA(const String&) const;
  8719. bool Load(File, bool = false);
  8720. bool Load(VectorBuffer&, bool = false);
  8721. bool LoadJSON(const JSONValue&, bool = false);
  8722. bool LoadXML(const XMLElement&, bool = false);
  8723. void MarkNetworkUpdate() const;
  8724. void Remove();
  8725. void RemoveAttributeAnimation(const String&);
  8726. void RemoveInstanceDefault();
  8727. void RemoveObjectAnimation();
  8728. void ResetToDefault();
  8729. bool Save(File) const;
  8730. bool Save(VectorBuffer&) const;
  8731. bool SaveJSON(JSONValue&) const;
  8732. bool SaveXML(XMLElement&) const;
  8733. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8734. void SetAnimationTime(float);
  8735. bool SetAttribute(const String&, const Variant&);
  8736. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8737. void SetAttributeAnimationSpeed(const String&, float);
  8738. void SetAttributeAnimationTime(const String&, float);
  8739. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8740. void SetInterceptNetworkUpdate(const String&, bool);
  8741. // Properties:
  8742. bool animationEnabled;
  8743. /* readonly */
  8744. Array<Variant> attributeDefaults;
  8745. /* readonly */
  8746. Array<AttributeInfo> attributeInfos;
  8747. Array<Variant> attributes;
  8748. /* readonly */
  8749. String category;
  8750. String className;
  8751. bool enabled;
  8752. /* readonly */
  8753. bool enabledEffective;
  8754. /* readonly */
  8755. uint id;
  8756. /* readonly */
  8757. Node node;
  8758. /* readonly */
  8759. uint numAttributes;
  8760. ObjectAnimation objectAnimation;
  8761. /* readonly */
  8762. int refs;
  8763. ScriptFile scriptFile;
  8764. /* readonly */
  8765. ScriptObject scriptObject;
  8766. bool temporary;
  8767. /* readonly */
  8768. StringHash type;
  8769. /* readonly */
  8770. String typeName;
  8771. /* readonly */
  8772. int weakRefs;
  8773. };
  8774. class ScriptObject
  8775. {
  8776. };
  8777. class ScrollBar
  8778. {
  8779. // Methods:
  8780. void AddChild(UIElement);
  8781. void AddTag(const String&);
  8782. void AddTags(const String&, int8 = ';');
  8783. void ApplyAttributes();
  8784. void BringToFront();
  8785. void ChangeValue(float);
  8786. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8787. void DisableLayoutUpdate();
  8788. IntVector2 ElementToScreen(const IntVector2&);
  8789. void EnableLayoutUpdate();
  8790. uint FindChild(UIElement) const;
  8791. Variant GetAttribute(const String&) const;
  8792. ValueAnimation GetAttributeAnimation(const String&) const;
  8793. float GetAttributeAnimationSpeed(const String&) const;
  8794. float GetAttributeAnimationTime(const String&) const;
  8795. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8796. Variant GetAttributeDefault(const String&) const;
  8797. UIElement GetChild(const String&, bool = false) const;
  8798. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8799. Array<UIElement> GetChildren(bool = false) const;
  8800. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8801. UIElement GetElementEventSender() const;
  8802. bool GetInterceptNetworkUpdate(const String&) const;
  8803. uint GetNumChildren(bool) const;
  8804. bool HasSubscribedToEvent(Object, const String&);
  8805. bool HasSubscribedToEvent(const String&);
  8806. bool HasTag(const String&) const;
  8807. void InsertChild(uint, UIElement);
  8808. bool IsInside(IntVector2, bool);
  8809. bool IsInsideCombined(IntVector2, bool);
  8810. bool Load(File, bool = false);
  8811. bool Load(VectorBuffer&, bool = false);
  8812. bool LoadChildXML(XMLFile, XMLFile = null);
  8813. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8814. bool LoadJSON(const JSONValue&, bool = false);
  8815. bool LoadXML(File);
  8816. bool LoadXML(VectorBuffer&);
  8817. bool LoadXML(XMLFile, XMLFile);
  8818. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8819. bool LoadXML(const XMLElement&, bool = false);
  8820. void MarkNetworkUpdate() const;
  8821. void Remove();
  8822. void RemoveAllChildren();
  8823. void RemoveAllTags();
  8824. void RemoveAttributeAnimation(const String&);
  8825. void RemoveChild(UIElement, uint = 0);
  8826. void RemoveChild(uint);
  8827. void RemoveInstanceDefault();
  8828. void RemoveObjectAnimation();
  8829. bool RemoveTag(const String&);
  8830. void ResetDeepEnabled();
  8831. void ResetToDefault();
  8832. bool Save(File) const;
  8833. bool Save(VectorBuffer&) const;
  8834. bool SaveJSON(JSONValue&) const;
  8835. bool SaveXML(File, const String& = "\t");
  8836. bool SaveXML(VectorBuffer&, const String& = "\t");
  8837. bool SaveXML(XMLElement&) const;
  8838. IntVector2 ScreenToElement(const IntVector2&);
  8839. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8840. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8841. void SetAnimationTime(float);
  8842. bool SetAttribute(const String&, const Variant&);
  8843. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8844. void SetAttributeAnimationSpeed(const String&, float);
  8845. void SetAttributeAnimationTime(const String&, float);
  8846. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8847. void SetDeepEnabled(bool);
  8848. void SetEnabledRecursive(bool);
  8849. void SetFixedHeight(int);
  8850. void SetFixedSize(int, int);
  8851. void SetFixedWidth(int);
  8852. void SetInterceptNetworkUpdate(const String&, bool);
  8853. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8854. void SetMaxSize(int, int);
  8855. void SetMinSize(int, int);
  8856. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8857. void SetPosition(int, int);
  8858. void SetSize(int, int);
  8859. bool SetStyle(const String&, XMLFile = null);
  8860. bool SetStyle(const XMLElement&);
  8861. bool SetStyleAuto(XMLFile = null);
  8862. void StepBack();
  8863. void StepForward();
  8864. void UpdateLayout();
  8865. const Variant& GetVar(const StringHash&);
  8866. // Properties:
  8867. bool animationEnabled;
  8868. /* readonly */
  8869. Array<Variant> attributeDefaults;
  8870. /* readonly */
  8871. Array<AttributeInfo> attributeInfos;
  8872. Array<Variant> attributes;
  8873. /* readonly */
  8874. Button backButton;
  8875. bool bringToBack;
  8876. bool bringToFront;
  8877. /* readonly */
  8878. String category;
  8879. /* readonly */
  8880. IntVector2 childOffset;
  8881. /* readonly */
  8882. Array<UIElement> children;
  8883. IntRect clipBorder;
  8884. bool clipChildren;
  8885. /* writeonly */
  8886. Color color;
  8887. /* readonly */
  8888. bool colorGradient;
  8889. Array<Color> colors;
  8890. /* readonly */
  8891. IntRect combinedScreenRect;
  8892. XMLFile defaultStyle;
  8893. /* readonly */
  8894. float derivedOpacity;
  8895. /* readonly */
  8896. uint dragButtonCombo;
  8897. /* readonly */
  8898. int dragButtonCount;
  8899. uint dragDropMode;
  8900. bool editable;
  8901. /* readonly */
  8902. float effectiveScrollStep;
  8903. bool elementEventSender;
  8904. bool enabled;
  8905. /* readonly */
  8906. bool enabledSelf;
  8907. /* readonly */
  8908. bool fixedHeight;
  8909. /* readonly */
  8910. bool fixedSize;
  8911. /* readonly */
  8912. bool fixedWidth;
  8913. bool focus;
  8914. FocusMode focusMode;
  8915. /* readonly */
  8916. Button forwardButton;
  8917. int height;
  8918. HorizontalAlignment horizontalAlignment;
  8919. /* readonly */
  8920. bool hovering;
  8921. int indent;
  8922. int indentSpacing;
  8923. /* readonly */
  8924. int indentWidth;
  8925. bool internal;
  8926. IntRect layoutBorder;
  8927. Vector2 layoutFlexScale;
  8928. LayoutMode layoutMode;
  8929. int layoutSpacing;
  8930. int maxHeight;
  8931. IntVector2 maxSize;
  8932. int maxWidth;
  8933. int minHeight;
  8934. IntVector2 minSize;
  8935. int minWidth;
  8936. String name;
  8937. /* readonly */
  8938. uint numAllChildren;
  8939. /* readonly */
  8940. uint numAttributes;
  8941. /* readonly */
  8942. uint numChildren;
  8943. ObjectAnimation objectAnimation;
  8944. float opacity;
  8945. Orientation orientation;
  8946. UIElement parent;
  8947. IntVector2 position;
  8948. int priority;
  8949. float range;
  8950. /* readonly */
  8951. int refs;
  8952. /* readonly */
  8953. UIElement root;
  8954. /* readonly */
  8955. IntVector2 screenPosition;
  8956. float scrollStep;
  8957. bool selected;
  8958. IntVector2 size;
  8959. /* readonly */
  8960. Slider slider;
  8961. bool sortChildren;
  8962. float stepFactor;
  8963. String style;
  8964. /* readonly */
  8965. Array<String> tags;
  8966. bool temporary;
  8967. TraversalMode traversalMode;
  8968. /* readonly */
  8969. StringHash type;
  8970. /* readonly */
  8971. String typeName;
  8972. bool useDerivedOpacity;
  8973. float value;
  8974. /* readonly */
  8975. VariantMap vars;
  8976. VerticalAlignment verticalAlignment;
  8977. bool visible;
  8978. /* readonly */
  8979. bool visibleEffective;
  8980. /* readonly */
  8981. int weakRefs;
  8982. int width;
  8983. };
  8984. class ScrollView
  8985. {
  8986. // Methods:
  8987. void AddChild(UIElement);
  8988. void AddTag(const String&);
  8989. void AddTags(const String&, int8 = ';');
  8990. void ApplyAttributes();
  8991. void BringToFront();
  8992. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8993. void DisableLayoutUpdate();
  8994. IntVector2 ElementToScreen(const IntVector2&);
  8995. void EnableLayoutUpdate();
  8996. uint FindChild(UIElement) const;
  8997. Variant GetAttribute(const String&) const;
  8998. ValueAnimation GetAttributeAnimation(const String&) const;
  8999. float GetAttributeAnimationSpeed(const String&) const;
  9000. float GetAttributeAnimationTime(const String&) const;
  9001. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9002. Variant GetAttributeDefault(const String&) const;
  9003. UIElement GetChild(const String&, bool = false) const;
  9004. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9005. Array<UIElement> GetChildren(bool = false) const;
  9006. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9007. UIElement GetElementEventSender() const;
  9008. bool GetInterceptNetworkUpdate(const String&) const;
  9009. uint GetNumChildren(bool) const;
  9010. bool HasSubscribedToEvent(Object, const String&);
  9011. bool HasSubscribedToEvent(const String&);
  9012. bool HasTag(const String&) const;
  9013. void InsertChild(uint, UIElement);
  9014. bool IsInside(IntVector2, bool);
  9015. bool IsInsideCombined(IntVector2, bool);
  9016. bool Load(File, bool = false);
  9017. bool Load(VectorBuffer&, bool = false);
  9018. bool LoadChildXML(XMLFile, XMLFile = null);
  9019. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9020. bool LoadJSON(const JSONValue&, bool = false);
  9021. bool LoadXML(File);
  9022. bool LoadXML(VectorBuffer&);
  9023. bool LoadXML(XMLFile, XMLFile);
  9024. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9025. bool LoadXML(const XMLElement&, bool = false);
  9026. void MarkNetworkUpdate() const;
  9027. void Remove();
  9028. void RemoveAllChildren();
  9029. void RemoveAllTags();
  9030. void RemoveAttributeAnimation(const String&);
  9031. void RemoveChild(UIElement, uint = 0);
  9032. void RemoveChild(uint);
  9033. void RemoveInstanceDefault();
  9034. void RemoveObjectAnimation();
  9035. bool RemoveTag(const String&);
  9036. void ResetDeepEnabled();
  9037. void ResetToDefault();
  9038. bool Save(File) const;
  9039. bool Save(VectorBuffer&) const;
  9040. bool SaveJSON(JSONValue&) const;
  9041. bool SaveXML(File, const String& = "\t");
  9042. bool SaveXML(VectorBuffer&, const String& = "\t");
  9043. bool SaveXML(XMLElement&) const;
  9044. IntVector2 ScreenToElement(const IntVector2&);
  9045. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9046. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9047. void SetAnimationTime(float);
  9048. bool SetAttribute(const String&, const Variant&);
  9049. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9050. void SetAttributeAnimationSpeed(const String&, float);
  9051. void SetAttributeAnimationTime(const String&, float);
  9052. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9053. void SetDeepEnabled(bool);
  9054. void SetEnabledRecursive(bool);
  9055. void SetFixedHeight(int);
  9056. void SetFixedSize(int, int);
  9057. void SetFixedWidth(int);
  9058. void SetInterceptNetworkUpdate(const String&, bool);
  9059. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9060. void SetMaxSize(int, int);
  9061. void SetMinSize(int, int);
  9062. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9063. void SetPosition(int, int);
  9064. void SetScrollBarsVisible(bool, bool);
  9065. void SetSize(int, int);
  9066. bool SetStyle(const String&, XMLFile = null);
  9067. bool SetStyle(const XMLElement&);
  9068. bool SetStyleAuto(XMLFile = null);
  9069. void SetViewPosition(int, int);
  9070. void UpdateLayout();
  9071. const Variant& GetVar(const StringHash&);
  9072. // Properties:
  9073. bool animationEnabled;
  9074. /* readonly */
  9075. Array<Variant> attributeDefaults;
  9076. /* readonly */
  9077. Array<AttributeInfo> attributeInfos;
  9078. Array<Variant> attributes;
  9079. bool autoDisableChildren;
  9080. float autoDisableThreshold;
  9081. bool bringToBack;
  9082. bool bringToFront;
  9083. /* readonly */
  9084. String category;
  9085. /* readonly */
  9086. IntVector2 childOffset;
  9087. /* readonly */
  9088. Array<UIElement> children;
  9089. IntRect clipBorder;
  9090. bool clipChildren;
  9091. /* writeonly */
  9092. Color color;
  9093. /* readonly */
  9094. bool colorGradient;
  9095. Array<Color> colors;
  9096. /* readonly */
  9097. IntRect combinedScreenRect;
  9098. UIElement contentElement;
  9099. XMLFile defaultStyle;
  9100. /* readonly */
  9101. float derivedOpacity;
  9102. /* readonly */
  9103. uint dragButtonCombo;
  9104. /* readonly */
  9105. int dragButtonCount;
  9106. uint dragDropMode;
  9107. bool editable;
  9108. bool elementEventSender;
  9109. bool enabled;
  9110. /* readonly */
  9111. bool enabledSelf;
  9112. /* readonly */
  9113. bool fixedHeight;
  9114. /* readonly */
  9115. bool fixedSize;
  9116. /* readonly */
  9117. bool fixedWidth;
  9118. bool focus;
  9119. FocusMode focusMode;
  9120. int height;
  9121. HorizontalAlignment horizontalAlignment;
  9122. /* readonly */
  9123. ScrollBar horizontalScrollBar;
  9124. /* readonly */
  9125. bool hovering;
  9126. int indent;
  9127. int indentSpacing;
  9128. /* readonly */
  9129. int indentWidth;
  9130. bool internal;
  9131. IntRect layoutBorder;
  9132. Vector2 layoutFlexScale;
  9133. LayoutMode layoutMode;
  9134. int layoutSpacing;
  9135. int maxHeight;
  9136. IntVector2 maxSize;
  9137. int maxWidth;
  9138. int minHeight;
  9139. IntVector2 minSize;
  9140. int minWidth;
  9141. String name;
  9142. /* readonly */
  9143. uint numAllChildren;
  9144. /* readonly */
  9145. uint numAttributes;
  9146. /* readonly */
  9147. uint numChildren;
  9148. ObjectAnimation objectAnimation;
  9149. float opacity;
  9150. float pageStep;
  9151. UIElement parent;
  9152. IntVector2 position;
  9153. int priority;
  9154. /* readonly */
  9155. int refs;
  9156. /* readonly */
  9157. UIElement root;
  9158. /* readonly */
  9159. IntVector2 screenPosition;
  9160. bool scrollBarsAutoVisible;
  9161. float scrollDeceleration;
  9162. /* readonly */
  9163. BorderImage scrollPanel;
  9164. float scrollSnapEpsilon;
  9165. float scrollStep;
  9166. bool selected;
  9167. IntVector2 size;
  9168. bool sortChildren;
  9169. String style;
  9170. /* readonly */
  9171. Array<String> tags;
  9172. bool temporary;
  9173. TraversalMode traversalMode;
  9174. /* readonly */
  9175. StringHash type;
  9176. /* readonly */
  9177. String typeName;
  9178. bool useDerivedOpacity;
  9179. /* readonly */
  9180. VariantMap vars;
  9181. VerticalAlignment verticalAlignment;
  9182. /* readonly */
  9183. ScrollBar verticalScrollBar;
  9184. IntVector2 viewPosition;
  9185. bool visible;
  9186. /* readonly */
  9187. bool visibleEffective;
  9188. /* readonly */
  9189. int weakRefs;
  9190. int width;
  9191. };
  9192. class Serializable
  9193. {
  9194. // Methods:
  9195. void ApplyAttributes();
  9196. Variant GetAttribute(const String&) const;
  9197. Variant GetAttributeDefault(const String&) const;
  9198. bool GetInterceptNetworkUpdate(const String&) const;
  9199. bool HasSubscribedToEvent(Object, const String&);
  9200. bool HasSubscribedToEvent(const String&);
  9201. bool Load(File, bool = false);
  9202. bool Load(VectorBuffer&, bool = false);
  9203. bool LoadJSON(const JSONValue&, bool = false);
  9204. bool LoadXML(const XMLElement&, bool = false);
  9205. void MarkNetworkUpdate() const;
  9206. void RemoveInstanceDefault();
  9207. void ResetToDefault();
  9208. bool Save(File) const;
  9209. bool Save(VectorBuffer&) const;
  9210. bool SaveJSON(JSONValue&) const;
  9211. bool SaveXML(XMLElement&) const;
  9212. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9213. bool SetAttribute(const String&, const Variant&);
  9214. void SetInterceptNetworkUpdate(const String&, bool);
  9215. // Properties:
  9216. /* readonly */
  9217. Array<Variant> attributeDefaults;
  9218. /* readonly */
  9219. Array<AttributeInfo> attributeInfos;
  9220. Array<Variant> attributes;
  9221. /* readonly */
  9222. String category;
  9223. /* readonly */
  9224. uint numAttributes;
  9225. /* readonly */
  9226. int refs;
  9227. bool temporary;
  9228. /* readonly */
  9229. StringHash type;
  9230. /* readonly */
  9231. String typeName;
  9232. /* readonly */
  9233. int weakRefs;
  9234. };
  9235. class Serializer
  9236. {
  9237. // Methods:
  9238. uint Write(Array<uint8>);
  9239. bool WriteBool(bool);
  9240. bool WriteBoundingBox(const BoundingBox&);
  9241. bool WriteByte(int8);
  9242. bool WriteColor(const Color&);
  9243. bool WriteDouble(double);
  9244. bool WriteFileID(const String&);
  9245. bool WriteFloat(float);
  9246. bool WriteInt(int);
  9247. bool WriteIntRect(const IntRect&);
  9248. bool WriteIntVector2(const IntVector2&);
  9249. bool WriteLine(const String&);
  9250. bool WriteMatrix3(const Matrix3&);
  9251. bool WriteMatrix3x4(const Matrix3x4&);
  9252. bool WriteMatrix4(const Matrix4&);
  9253. bool WriteNetID(uint);
  9254. bool WritePackedQuaternion(const Quaternion&);
  9255. bool WritePackedVector3(const Vector3&, float);
  9256. bool WriteQuaternion(const Quaternion&);
  9257. bool WriteShort(int16);
  9258. bool WriteString(const String&);
  9259. bool WriteStringHash(const StringHash&);
  9260. bool WriteUByte(uint8);
  9261. bool WriteUInt(uint);
  9262. bool WriteUShort(uint16);
  9263. bool WriteVLE(uint);
  9264. bool WriteVariant(const Variant&);
  9265. bool WriteVariantMap(const VariantMap&);
  9266. bool WriteVector2(const Vector2&);
  9267. bool WriteVector3(const Vector3&);
  9268. bool WriteVector4(const Vector4&);
  9269. bool WriteVectorBuffer(const VectorBuffer&);
  9270. };
  9271. class Skeleton
  9272. {
  9273. // Methods:
  9274. Bone GetBone(const String&) const;
  9275. void Reset();
  9276. // Properties:
  9277. /* readonly */
  9278. Array<Bone> bones;
  9279. /* readonly */
  9280. uint numBones;
  9281. /* readonly */
  9282. Bone rootBone;
  9283. };
  9284. class Skybox
  9285. {
  9286. // Methods:
  9287. void ApplyAttributes();
  9288. void ApplyMaterialList(const String& = String ( ));
  9289. void DrawDebugGeometry(DebugRenderer, bool);
  9290. Variant GetAttribute(const String&) const;
  9291. ValueAnimation GetAttributeAnimation(const String&) const;
  9292. float GetAttributeAnimationSpeed(const String&) const;
  9293. float GetAttributeAnimationTime(const String&) const;
  9294. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9295. Variant GetAttributeDefault(const String&) const;
  9296. bool GetInterceptNetworkUpdate(const String&) const;
  9297. bool HasSubscribedToEvent(Object, const String&);
  9298. bool HasSubscribedToEvent(const String&);
  9299. bool IsInView(Camera) const;
  9300. bool Load(File, bool = false);
  9301. bool Load(VectorBuffer&, bool = false);
  9302. bool LoadJSON(const JSONValue&, bool = false);
  9303. bool LoadXML(const XMLElement&, bool = false);
  9304. void MarkNetworkUpdate() const;
  9305. void Remove();
  9306. void RemoveAttributeAnimation(const String&);
  9307. void RemoveInstanceDefault();
  9308. void RemoveObjectAnimation();
  9309. void ResetToDefault();
  9310. bool Save(File) const;
  9311. bool Save(VectorBuffer&) const;
  9312. bool SaveJSON(JSONValue&) const;
  9313. bool SaveXML(XMLElement&) const;
  9314. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9315. void SetAnimationTime(float);
  9316. bool SetAttribute(const String&, const Variant&);
  9317. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9318. void SetAttributeAnimationSpeed(const String&, float);
  9319. void SetAttributeAnimationTime(const String&, float);
  9320. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9321. void SetInterceptNetworkUpdate(const String&, bool);
  9322. // Properties:
  9323. bool animationEnabled;
  9324. /* readonly */
  9325. Array<Variant> attributeDefaults;
  9326. /* readonly */
  9327. Array<AttributeInfo> attributeInfos;
  9328. Array<Variant> attributes;
  9329. /* readonly */
  9330. BoundingBox boundingBox;
  9331. bool castShadows;
  9332. /* readonly */
  9333. String category;
  9334. float drawDistance;
  9335. bool enabled;
  9336. /* readonly */
  9337. bool enabledEffective;
  9338. /* readonly */
  9339. uint id;
  9340. /* readonly */
  9341. bool inView;
  9342. uint lightMask;
  9343. float lodBias;
  9344. /* writeonly */
  9345. Material material;
  9346. Array<Material> materials;
  9347. uint maxLights;
  9348. Model model;
  9349. /* readonly */
  9350. Node node;
  9351. /* readonly */
  9352. uint numAttributes;
  9353. /* readonly */
  9354. uint numGeometries;
  9355. ObjectAnimation objectAnimation;
  9356. bool occludee;
  9357. bool occluder;
  9358. /* readonly */
  9359. int refs;
  9360. float shadowDistance;
  9361. uint shadowMask;
  9362. bool temporary;
  9363. /* readonly */
  9364. StringHash type;
  9365. /* readonly */
  9366. String typeName;
  9367. uint viewMask;
  9368. /* readonly */
  9369. int weakRefs;
  9370. /* readonly */
  9371. BoundingBox worldBoundingBox;
  9372. /* readonly */
  9373. Zone zone;
  9374. uint zoneMask;
  9375. };
  9376. class Slider
  9377. {
  9378. // Methods:
  9379. void AddChild(UIElement);
  9380. void AddTag(const String&);
  9381. void AddTags(const String&, int8 = ';');
  9382. void ApplyAttributes();
  9383. void BringToFront();
  9384. void ChangeValue(float);
  9385. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9386. void DisableLayoutUpdate();
  9387. IntVector2 ElementToScreen(const IntVector2&);
  9388. void EnableLayoutUpdate();
  9389. uint FindChild(UIElement) const;
  9390. Variant GetAttribute(const String&) const;
  9391. ValueAnimation GetAttributeAnimation(const String&) const;
  9392. float GetAttributeAnimationSpeed(const String&) const;
  9393. float GetAttributeAnimationTime(const String&) const;
  9394. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9395. Variant GetAttributeDefault(const String&) const;
  9396. UIElement GetChild(const String&, bool = false) const;
  9397. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9398. Array<UIElement> GetChildren(bool = false) const;
  9399. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9400. UIElement GetElementEventSender() const;
  9401. bool GetInterceptNetworkUpdate(const String&) const;
  9402. uint GetNumChildren(bool) const;
  9403. bool HasSubscribedToEvent(Object, const String&);
  9404. bool HasSubscribedToEvent(const String&);
  9405. bool HasTag(const String&) const;
  9406. void InsertChild(uint, UIElement);
  9407. bool IsInside(IntVector2, bool);
  9408. bool IsInsideCombined(IntVector2, bool);
  9409. bool Load(File, bool = false);
  9410. bool Load(VectorBuffer&, bool = false);
  9411. bool LoadChildXML(XMLFile, XMLFile = null);
  9412. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9413. bool LoadJSON(const JSONValue&, bool = false);
  9414. bool LoadXML(File);
  9415. bool LoadXML(VectorBuffer&);
  9416. bool LoadXML(XMLFile, XMLFile);
  9417. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9418. bool LoadXML(const XMLElement&, bool = false);
  9419. void MarkNetworkUpdate() const;
  9420. void Remove();
  9421. void RemoveAllChildren();
  9422. void RemoveAllTags();
  9423. void RemoveAttributeAnimation(const String&);
  9424. void RemoveChild(UIElement, uint = 0);
  9425. void RemoveChild(uint);
  9426. void RemoveInstanceDefault();
  9427. void RemoveObjectAnimation();
  9428. bool RemoveTag(const String&);
  9429. void ResetDeepEnabled();
  9430. void ResetToDefault();
  9431. bool Save(File) const;
  9432. bool Save(VectorBuffer&) const;
  9433. bool SaveJSON(JSONValue&) const;
  9434. bool SaveXML(File, const String& = "\t");
  9435. bool SaveXML(VectorBuffer&, const String& = "\t");
  9436. bool SaveXML(XMLElement&) const;
  9437. IntVector2 ScreenToElement(const IntVector2&);
  9438. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9439. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9440. void SetAnimationTime(float);
  9441. bool SetAttribute(const String&, const Variant&);
  9442. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9443. void SetAttributeAnimationSpeed(const String&, float);
  9444. void SetAttributeAnimationTime(const String&, float);
  9445. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9446. void SetDeepEnabled(bool);
  9447. void SetEnabledRecursive(bool);
  9448. void SetFixedHeight(int);
  9449. void SetFixedSize(int, int);
  9450. void SetFixedWidth(int);
  9451. void SetFullImageRect();
  9452. void SetHoverOffset(int, int);
  9453. void SetInterceptNetworkUpdate(const String&, bool);
  9454. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9455. void SetMaxSize(int, int);
  9456. void SetMinSize(int, int);
  9457. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9458. void SetPosition(int, int);
  9459. void SetSize(int, int);
  9460. bool SetStyle(const String&, XMLFile = null);
  9461. bool SetStyle(const XMLElement&);
  9462. bool SetStyleAuto(XMLFile = null);
  9463. void UpdateLayout();
  9464. const Variant& GetVar(const StringHash&);
  9465. // Properties:
  9466. bool animationEnabled;
  9467. /* readonly */
  9468. Array<Variant> attributeDefaults;
  9469. /* readonly */
  9470. Array<AttributeInfo> attributeInfos;
  9471. Array<Variant> attributes;
  9472. BlendMode blendMode;
  9473. IntRect border;
  9474. bool bringToBack;
  9475. bool bringToFront;
  9476. /* readonly */
  9477. String category;
  9478. /* readonly */
  9479. IntVector2 childOffset;
  9480. /* readonly */
  9481. Array<UIElement> children;
  9482. IntRect clipBorder;
  9483. bool clipChildren;
  9484. /* writeonly */
  9485. Color color;
  9486. /* readonly */
  9487. bool colorGradient;
  9488. Array<Color> colors;
  9489. /* readonly */
  9490. IntRect combinedScreenRect;
  9491. XMLFile defaultStyle;
  9492. /* readonly */
  9493. float derivedOpacity;
  9494. /* readonly */
  9495. uint dragButtonCombo;
  9496. /* readonly */
  9497. int dragButtonCount;
  9498. uint dragDropMode;
  9499. bool editable;
  9500. bool elementEventSender;
  9501. bool enabled;
  9502. /* readonly */
  9503. bool enabledSelf;
  9504. /* readonly */
  9505. bool fixedHeight;
  9506. /* readonly */
  9507. bool fixedSize;
  9508. /* readonly */
  9509. bool fixedWidth;
  9510. bool focus;
  9511. FocusMode focusMode;
  9512. int height;
  9513. HorizontalAlignment horizontalAlignment;
  9514. IntVector2 hoverOffset;
  9515. /* readonly */
  9516. bool hovering;
  9517. IntRect imageBorder;
  9518. IntRect imageRect;
  9519. int indent;
  9520. int indentSpacing;
  9521. /* readonly */
  9522. int indentWidth;
  9523. bool internal;
  9524. /* readonly */
  9525. BorderImage knob;
  9526. IntRect layoutBorder;
  9527. Vector2 layoutFlexScale;
  9528. LayoutMode layoutMode;
  9529. int layoutSpacing;
  9530. int maxHeight;
  9531. IntVector2 maxSize;
  9532. int maxWidth;
  9533. int minHeight;
  9534. IntVector2 minSize;
  9535. int minWidth;
  9536. String name;
  9537. /* readonly */
  9538. uint numAllChildren;
  9539. /* readonly */
  9540. uint numAttributes;
  9541. /* readonly */
  9542. uint numChildren;
  9543. ObjectAnimation objectAnimation;
  9544. float opacity;
  9545. Orientation orientation;
  9546. UIElement parent;
  9547. IntVector2 position;
  9548. int priority;
  9549. float range;
  9550. /* readonly */
  9551. int refs;
  9552. float repeatRate;
  9553. /* readonly */
  9554. UIElement root;
  9555. /* readonly */
  9556. IntVector2 screenPosition;
  9557. bool selected;
  9558. IntVector2 size;
  9559. bool sortChildren;
  9560. String style;
  9561. /* readonly */
  9562. Array<String> tags;
  9563. bool temporary;
  9564. Texture texture;
  9565. bool tiled;
  9566. TraversalMode traversalMode;
  9567. /* readonly */
  9568. StringHash type;
  9569. /* readonly */
  9570. String typeName;
  9571. bool useDerivedOpacity;
  9572. float value;
  9573. /* readonly */
  9574. VariantMap vars;
  9575. VerticalAlignment verticalAlignment;
  9576. bool visible;
  9577. /* readonly */
  9578. bool visibleEffective;
  9579. /* readonly */
  9580. int weakRefs;
  9581. int width;
  9582. };
  9583. class SmoothedTransform
  9584. {
  9585. // Methods:
  9586. void ApplyAttributes();
  9587. void DrawDebugGeometry(DebugRenderer, bool);
  9588. Variant GetAttribute(const String&) const;
  9589. ValueAnimation GetAttributeAnimation(const String&) const;
  9590. float GetAttributeAnimationSpeed(const String&) const;
  9591. float GetAttributeAnimationTime(const String&) const;
  9592. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9593. Variant GetAttributeDefault(const String&) const;
  9594. bool GetInterceptNetworkUpdate(const String&) const;
  9595. bool HasSubscribedToEvent(Object, const String&);
  9596. bool HasSubscribedToEvent(const String&);
  9597. bool Load(File, bool = false);
  9598. bool Load(VectorBuffer&, bool = false);
  9599. bool LoadJSON(const JSONValue&, bool = false);
  9600. bool LoadXML(const XMLElement&, bool = false);
  9601. void MarkNetworkUpdate() const;
  9602. void Remove();
  9603. void RemoveAttributeAnimation(const String&);
  9604. void RemoveInstanceDefault();
  9605. void RemoveObjectAnimation();
  9606. void ResetToDefault();
  9607. bool Save(File) const;
  9608. bool Save(VectorBuffer&) const;
  9609. bool SaveJSON(JSONValue&) const;
  9610. bool SaveXML(XMLElement&) const;
  9611. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9612. void SetAnimationTime(float);
  9613. bool SetAttribute(const String&, const Variant&);
  9614. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9615. void SetAttributeAnimationSpeed(const String&, float);
  9616. void SetAttributeAnimationTime(const String&, float);
  9617. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9618. void SetInterceptNetworkUpdate(const String&, bool);
  9619. void Update(float, float);
  9620. // Properties:
  9621. bool animationEnabled;
  9622. /* readonly */
  9623. Array<Variant> attributeDefaults;
  9624. /* readonly */
  9625. Array<AttributeInfo> attributeInfos;
  9626. Array<Variant> attributes;
  9627. /* readonly */
  9628. String category;
  9629. bool enabled;
  9630. /* readonly */
  9631. bool enabledEffective;
  9632. /* readonly */
  9633. uint id;
  9634. /* readonly */
  9635. bool inProgress;
  9636. /* readonly */
  9637. Node node;
  9638. /* readonly */
  9639. uint numAttributes;
  9640. ObjectAnimation objectAnimation;
  9641. /* readonly */
  9642. int refs;
  9643. Vector3 targetPosition;
  9644. Quaternion targetRotation;
  9645. Vector3 targetWorldPosition;
  9646. Quaternion targetWorldRotation;
  9647. bool temporary;
  9648. /* readonly */
  9649. StringHash type;
  9650. /* readonly */
  9651. String typeName;
  9652. /* readonly */
  9653. int weakRefs;
  9654. };
  9655. class Sound
  9656. {
  9657. // Methods:
  9658. bool HasSubscribedToEvent(Object, const String&);
  9659. bool HasSubscribedToEvent(const String&);
  9660. bool Load(File);
  9661. bool Load(VectorBuffer&);
  9662. bool Save(File) const;
  9663. bool Save(VectorBuffer&) const;
  9664. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9665. // Properties:
  9666. /* readonly */
  9667. String category;
  9668. /* readonly */
  9669. bool compressed;
  9670. /* readonly */
  9671. float frequency;
  9672. /* readonly */
  9673. float length;
  9674. bool looped;
  9675. /* readonly */
  9676. uint memoryUse;
  9677. String name;
  9678. /* readonly */
  9679. int refs;
  9680. /* readonly */
  9681. uint sampleSize;
  9682. /* readonly */
  9683. bool sixteenBit;
  9684. /* readonly */
  9685. bool stereo;
  9686. /* readonly */
  9687. StringHash type;
  9688. /* readonly */
  9689. String typeName;
  9690. /* readonly */
  9691. uint useTimer;
  9692. /* readonly */
  9693. int weakRefs;
  9694. };
  9695. class SoundListener
  9696. {
  9697. // Methods:
  9698. void ApplyAttributes();
  9699. void DrawDebugGeometry(DebugRenderer, bool);
  9700. Variant GetAttribute(const String&) const;
  9701. ValueAnimation GetAttributeAnimation(const String&) const;
  9702. float GetAttributeAnimationSpeed(const String&) const;
  9703. float GetAttributeAnimationTime(const String&) const;
  9704. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9705. Variant GetAttributeDefault(const String&) const;
  9706. bool GetInterceptNetworkUpdate(const String&) const;
  9707. bool HasSubscribedToEvent(Object, const String&);
  9708. bool HasSubscribedToEvent(const String&);
  9709. bool Load(File, bool = false);
  9710. bool Load(VectorBuffer&, bool = false);
  9711. bool LoadJSON(const JSONValue&, bool = false);
  9712. bool LoadXML(const XMLElement&, bool = false);
  9713. void MarkNetworkUpdate() const;
  9714. void Remove();
  9715. void RemoveAttributeAnimation(const String&);
  9716. void RemoveInstanceDefault();
  9717. void RemoveObjectAnimation();
  9718. void ResetToDefault();
  9719. bool Save(File) const;
  9720. bool Save(VectorBuffer&) const;
  9721. bool SaveJSON(JSONValue&) const;
  9722. bool SaveXML(XMLElement&) const;
  9723. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9724. void SetAnimationTime(float);
  9725. bool SetAttribute(const String&, const Variant&);
  9726. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9727. void SetAttributeAnimationSpeed(const String&, float);
  9728. void SetAttributeAnimationTime(const String&, float);
  9729. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9730. void SetInterceptNetworkUpdate(const String&, bool);
  9731. // Properties:
  9732. bool animationEnabled;
  9733. /* readonly */
  9734. Array<Variant> attributeDefaults;
  9735. /* readonly */
  9736. Array<AttributeInfo> attributeInfos;
  9737. Array<Variant> attributes;
  9738. /* readonly */
  9739. String category;
  9740. bool enabled;
  9741. /* readonly */
  9742. bool enabledEffective;
  9743. /* readonly */
  9744. uint id;
  9745. /* readonly */
  9746. Node node;
  9747. /* readonly */
  9748. uint numAttributes;
  9749. ObjectAnimation objectAnimation;
  9750. /* readonly */
  9751. int refs;
  9752. bool temporary;
  9753. /* readonly */
  9754. StringHash type;
  9755. /* readonly */
  9756. String typeName;
  9757. /* readonly */
  9758. int weakRefs;
  9759. };
  9760. class SoundSource
  9761. {
  9762. // Methods:
  9763. void ApplyAttributes();
  9764. void DrawDebugGeometry(DebugRenderer, bool);
  9765. Variant GetAttribute(const String&) const;
  9766. ValueAnimation GetAttributeAnimation(const String&) const;
  9767. float GetAttributeAnimationSpeed(const String&) const;
  9768. float GetAttributeAnimationTime(const String&) const;
  9769. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9770. Variant GetAttributeDefault(const String&) const;
  9771. bool GetInterceptNetworkUpdate(const String&) const;
  9772. bool HasSubscribedToEvent(Object, const String&);
  9773. bool HasSubscribedToEvent(const String&);
  9774. bool Load(File, bool = false);
  9775. bool Load(VectorBuffer&, bool = false);
  9776. bool LoadJSON(const JSONValue&, bool = false);
  9777. bool LoadXML(const XMLElement&, bool = false);
  9778. void MarkNetworkUpdate() const;
  9779. void Play(Sound);
  9780. void Play(Sound, float);
  9781. void Play(Sound, float, float);
  9782. void Play(Sound, float, float, float);
  9783. void Remove();
  9784. void RemoveAttributeAnimation(const String&);
  9785. void RemoveInstanceDefault();
  9786. void RemoveObjectAnimation();
  9787. void ResetToDefault();
  9788. bool Save(File) const;
  9789. bool Save(VectorBuffer&) const;
  9790. bool SaveJSON(JSONValue&) const;
  9791. bool SaveXML(XMLElement&) const;
  9792. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9793. void SetAnimationTime(float);
  9794. bool SetAttribute(const String&, const Variant&);
  9795. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9796. void SetAttributeAnimationSpeed(const String&, float);
  9797. void SetAttributeAnimationTime(const String&, float);
  9798. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9799. void SetInterceptNetworkUpdate(const String&, bool);
  9800. void Stop();
  9801. // Properties:
  9802. bool animationEnabled;
  9803. /* readonly */
  9804. float attenuation;
  9805. /* readonly */
  9806. Array<Variant> attributeDefaults;
  9807. /* readonly */
  9808. Array<AttributeInfo> attributeInfos;
  9809. Array<Variant> attributes;
  9810. bool autoRemove;
  9811. /* readonly */
  9812. String category;
  9813. bool enabled;
  9814. /* readonly */
  9815. bool enabledEffective;
  9816. float frequency;
  9817. float gain;
  9818. /* readonly */
  9819. uint id;
  9820. /* readonly */
  9821. Node node;
  9822. /* readonly */
  9823. uint numAttributes;
  9824. ObjectAnimation objectAnimation;
  9825. float panning;
  9826. /* readonly */
  9827. bool playing;
  9828. /* readonly */
  9829. int refs;
  9830. /* readonly */
  9831. Sound sound;
  9832. String soundType;
  9833. bool temporary;
  9834. /* readonly */
  9835. float timePosition;
  9836. /* readonly */
  9837. StringHash type;
  9838. /* readonly */
  9839. String typeName;
  9840. /* readonly */
  9841. int weakRefs;
  9842. };
  9843. class SoundSource3D
  9844. {
  9845. // Methods:
  9846. void ApplyAttributes();
  9847. void DrawDebugGeometry(DebugRenderer, bool);
  9848. Variant GetAttribute(const String&) const;
  9849. ValueAnimation GetAttributeAnimation(const String&) const;
  9850. float GetAttributeAnimationSpeed(const String&) const;
  9851. float GetAttributeAnimationTime(const String&) const;
  9852. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9853. Variant GetAttributeDefault(const String&) const;
  9854. bool GetInterceptNetworkUpdate(const String&) const;
  9855. bool HasSubscribedToEvent(Object, const String&);
  9856. bool HasSubscribedToEvent(const String&);
  9857. bool Load(File, bool = false);
  9858. bool Load(VectorBuffer&, bool = false);
  9859. bool LoadJSON(const JSONValue&, bool = false);
  9860. bool LoadXML(const XMLElement&, bool = false);
  9861. void MarkNetworkUpdate() const;
  9862. void Play(Sound);
  9863. void Play(Sound, float);
  9864. void Play(Sound, float, float);
  9865. void Play(Sound, float, float, float);
  9866. void Remove();
  9867. void RemoveAttributeAnimation(const String&);
  9868. void RemoveInstanceDefault();
  9869. void RemoveObjectAnimation();
  9870. void ResetToDefault();
  9871. bool Save(File) const;
  9872. bool Save(VectorBuffer&) const;
  9873. bool SaveJSON(JSONValue&) const;
  9874. bool SaveXML(XMLElement&) const;
  9875. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9876. void SetAngleAttenuation(float, float);
  9877. void SetAnimationTime(float);
  9878. bool SetAttribute(const String&, const Variant&);
  9879. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9880. void SetAttributeAnimationSpeed(const String&, float);
  9881. void SetAttributeAnimationTime(const String&, float);
  9882. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9883. void SetDistanceAttenuation(float, float, float);
  9884. void SetInterceptNetworkUpdate(const String&, bool);
  9885. void Stop();
  9886. // Properties:
  9887. bool animationEnabled;
  9888. /* readonly */
  9889. float attenuation;
  9890. /* readonly */
  9891. Array<Variant> attributeDefaults;
  9892. /* readonly */
  9893. Array<AttributeInfo> attributeInfos;
  9894. Array<Variant> attributes;
  9895. bool autoRemove;
  9896. /* readonly */
  9897. String category;
  9898. bool enabled;
  9899. /* readonly */
  9900. bool enabledEffective;
  9901. float farDistance;
  9902. float frequency;
  9903. float gain;
  9904. /* readonly */
  9905. uint id;
  9906. float innerAngle;
  9907. float nearDistance;
  9908. /* readonly */
  9909. Node node;
  9910. /* readonly */
  9911. uint numAttributes;
  9912. ObjectAnimation objectAnimation;
  9913. float outerAngle;
  9914. float panning;
  9915. /* readonly */
  9916. bool playing;
  9917. /* readonly */
  9918. int refs;
  9919. float rolloffFactor;
  9920. /* readonly */
  9921. Sound sound;
  9922. String soundType;
  9923. bool temporary;
  9924. /* readonly */
  9925. float timePosition;
  9926. /* readonly */
  9927. StringHash type;
  9928. /* readonly */
  9929. String typeName;
  9930. /* readonly */
  9931. int weakRefs;
  9932. };
  9933. class Sphere
  9934. {
  9935. // Methods:
  9936. void Clear();
  9937. void Define(const BoundingBox&);
  9938. void Define(const Frustum&);
  9939. void Define(const Polyhedron&);
  9940. void Define(const Sphere&);
  9941. void Define(const Vector3&, float);
  9942. bool Defined() const;
  9943. float Distance(const Vector3&) const;
  9944. Intersection IsInside(const BoundingBox&) const;
  9945. Intersection IsInside(const Sphere&) const;
  9946. Intersection IsInside(const Vector3&) const;
  9947. Intersection IsInsideFast(const BoundingBox&) const;
  9948. Intersection IsInsideFast(const Sphere&) const;
  9949. void Merge(const BoundingBox&);
  9950. void Merge(const Frustum&);
  9951. void Merge(const Sphere&);
  9952. void Merge(const Vector3&);
  9953. // Properties:
  9954. Vector3 center;
  9955. float radius;
  9956. };
  9957. class Spline
  9958. {
  9959. // Methods:
  9960. void AddKnot(const Variant&);
  9961. void AddKnot(const Variant&, uint);
  9962. void Clear();
  9963. Variant GetPoint(float);
  9964. void RemoveKnot();
  9965. void RemoveKnot(uint);
  9966. // Properties:
  9967. InterpolationMode interpolationMode;
  9968. Array<Variant> knot;
  9969. Array<Variant> knots;
  9970. };
  9971. class SplinePath
  9972. {
  9973. // Methods:
  9974. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9975. void ApplyAttributes();
  9976. void ClearControlPoints();
  9977. void DrawDebugGeometry(DebugRenderer, bool);
  9978. Variant GetAttribute(const String&) const;
  9979. ValueAnimation GetAttributeAnimation(const String&) const;
  9980. float GetAttributeAnimationSpeed(const String&) const;
  9981. float GetAttributeAnimationTime(const String&) const;
  9982. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9983. Variant GetAttributeDefault(const String&) const;
  9984. bool GetInterceptNetworkUpdate(const String&) const;
  9985. Vector3 GetPoint(float) const;
  9986. Vector3 GetPosition() const;
  9987. bool HasSubscribedToEvent(Object, const String&);
  9988. bool HasSubscribedToEvent(const String&);
  9989. bool Load(File, bool = false);
  9990. bool Load(VectorBuffer&, bool = false);
  9991. bool LoadJSON(const JSONValue&, bool = false);
  9992. bool LoadXML(const XMLElement&, bool = false);
  9993. void MarkNetworkUpdate() const;
  9994. void Move(float);
  9995. void Remove();
  9996. void RemoveAttributeAnimation(const String&);
  9997. void RemoveControlPoint(Node);
  9998. void RemoveInstanceDefault();
  9999. void RemoveObjectAnimation();
  10000. void Reset();
  10001. void ResetToDefault();
  10002. bool Save(File) const;
  10003. bool Save(VectorBuffer&) const;
  10004. bool SaveJSON(JSONValue&) const;
  10005. bool SaveXML(XMLElement&) const;
  10006. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10007. void SetAnimationTime(float);
  10008. bool SetAttribute(const String&, const Variant&);
  10009. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10010. void SetAttributeAnimationSpeed(const String&, float);
  10011. void SetAttributeAnimationTime(const String&, float);
  10012. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10013. void SetInterceptNetworkUpdate(const String&, bool);
  10014. void SetPosition(float);
  10015. // Properties:
  10016. bool animationEnabled;
  10017. /* readonly */
  10018. Array<Variant> attributeDefaults;
  10019. /* readonly */
  10020. Array<AttributeInfo> attributeInfos;
  10021. Array<Variant> attributes;
  10022. /* readonly */
  10023. String category;
  10024. Node controlledNode;
  10025. bool enabled;
  10026. /* readonly */
  10027. bool enabledEffective;
  10028. /* readonly */
  10029. uint id;
  10030. InterpolationMode interpolationMode;
  10031. /* readonly */
  10032. bool isFinished;
  10033. /* readonly */
  10034. float length;
  10035. /* readonly */
  10036. Node node;
  10037. /* readonly */
  10038. uint numAttributes;
  10039. ObjectAnimation objectAnimation;
  10040. /* readonly */
  10041. int refs;
  10042. float speed;
  10043. bool temporary;
  10044. /* readonly */
  10045. StringHash type;
  10046. /* readonly */
  10047. String typeName;
  10048. /* readonly */
  10049. int weakRefs;
  10050. };
  10051. class Sprite
  10052. {
  10053. // Methods:
  10054. void AddChild(UIElement);
  10055. void AddTag(const String&);
  10056. void AddTags(const String&, int8 = ';');
  10057. void ApplyAttributes();
  10058. void BringToFront();
  10059. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10060. uint FindChild(UIElement) const;
  10061. Variant GetAttribute(const String&) const;
  10062. ValueAnimation GetAttributeAnimation(const String&) const;
  10063. float GetAttributeAnimationSpeed(const String&) const;
  10064. float GetAttributeAnimationTime(const String&) const;
  10065. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10066. Variant GetAttributeDefault(const String&) const;
  10067. UIElement GetChild(const String&, bool = false) const;
  10068. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10069. Array<UIElement> GetChildren(bool = false) const;
  10070. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10071. UIElement GetElementEventSender() const;
  10072. bool GetInterceptNetworkUpdate(const String&) const;
  10073. uint GetNumChildren(bool) const;
  10074. bool HasSubscribedToEvent(Object, const String&);
  10075. bool HasSubscribedToEvent(const String&);
  10076. bool HasTag(const String&) const;
  10077. void InsertChild(uint, UIElement);
  10078. bool Load(File, bool = false);
  10079. bool Load(VectorBuffer&, bool = false);
  10080. bool LoadChildXML(XMLFile, XMLFile = null);
  10081. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10082. bool LoadJSON(const JSONValue&, bool = false);
  10083. bool LoadXML(File);
  10084. bool LoadXML(VectorBuffer&);
  10085. bool LoadXML(XMLFile, XMLFile);
  10086. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10087. bool LoadXML(const XMLElement&, bool = false);
  10088. void MarkNetworkUpdate() const;
  10089. void Remove();
  10090. void RemoveAllChildren();
  10091. void RemoveAllTags();
  10092. void RemoveAttributeAnimation(const String&);
  10093. void RemoveChild(UIElement, uint = 0);
  10094. void RemoveChild(uint);
  10095. void RemoveInstanceDefault();
  10096. void RemoveObjectAnimation();
  10097. bool RemoveTag(const String&);
  10098. void ResetToDefault();
  10099. bool Save(File) const;
  10100. bool Save(VectorBuffer&) const;
  10101. bool SaveJSON(JSONValue&) const;
  10102. bool SaveXML(File, const String& = "\t");
  10103. bool SaveXML(VectorBuffer&, const String& = "\t");
  10104. bool SaveXML(XMLElement&) const;
  10105. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10106. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10107. void SetAnimationTime(float);
  10108. bool SetAttribute(const String&, const Variant&);
  10109. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10110. void SetAttributeAnimationSpeed(const String&, float);
  10111. void SetAttributeAnimationTime(const String&, float);
  10112. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10113. void SetFixedHeight(int);
  10114. void SetFixedSize(int, int);
  10115. void SetFixedWidth(int);
  10116. void SetFullImageRect();
  10117. void SetHotSpot(int, int);
  10118. void SetInterceptNetworkUpdate(const String&, bool);
  10119. void SetMaxSize(int, int);
  10120. void SetMinSize(int, int);
  10121. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10122. void SetPosition(float, float);
  10123. void SetScale(float);
  10124. void SetScale(float, float);
  10125. void SetSize(int, int);
  10126. bool SetStyle(const String&, XMLFile = null);
  10127. bool SetStyle(const XMLElement&);
  10128. bool SetStyleAuto(XMLFile = null);
  10129. const Variant& GetVar(const StringHash&);
  10130. // Properties:
  10131. bool animationEnabled;
  10132. /* readonly */
  10133. Array<Variant> attributeDefaults;
  10134. /* readonly */
  10135. Array<AttributeInfo> attributeInfos;
  10136. Array<Variant> attributes;
  10137. BlendMode blendMode;
  10138. bool bringToBack;
  10139. bool bringToFront;
  10140. /* readonly */
  10141. String category;
  10142. /* readonly */
  10143. Array<UIElement> children;
  10144. /* writeonly */
  10145. Color color;
  10146. /* readonly */
  10147. bool colorGradient;
  10148. Array<Color> colors;
  10149. XMLFile defaultStyle;
  10150. /* readonly */
  10151. float derivedOpacity;
  10152. /* readonly */
  10153. uint dragButtonCombo;
  10154. /* readonly */
  10155. int dragButtonCount;
  10156. bool elementEventSender;
  10157. int height;
  10158. HorizontalAlignment horizontalAlignment;
  10159. IntVector2 hotSpot;
  10160. IntRect imageRect;
  10161. String name;
  10162. /* readonly */
  10163. uint numAllChildren;
  10164. /* readonly */
  10165. uint numAttributes;
  10166. /* readonly */
  10167. uint numChildren;
  10168. ObjectAnimation objectAnimation;
  10169. float opacity;
  10170. UIElement parent;
  10171. Vector2 position;
  10172. int priority;
  10173. /* readonly */
  10174. int refs;
  10175. /* readonly */
  10176. UIElement root;
  10177. float rotation;
  10178. Vector2 scale;
  10179. IntVector2 size;
  10180. bool sortChildren;
  10181. String style;
  10182. /* readonly */
  10183. Array<String> tags;
  10184. bool temporary;
  10185. Texture texture;
  10186. /* readonly */
  10187. StringHash type;
  10188. /* readonly */
  10189. String typeName;
  10190. bool useDerivedOpacity;
  10191. /* readonly */
  10192. VariantMap vars;
  10193. VerticalAlignment verticalAlignment;
  10194. bool visible;
  10195. /* readonly */
  10196. bool visibleEffective;
  10197. /* readonly */
  10198. int weakRefs;
  10199. int width;
  10200. };
  10201. class Sprite2D
  10202. {
  10203. // Methods:
  10204. bool HasSubscribedToEvent(Object, const String&);
  10205. bool HasSubscribedToEvent(const String&);
  10206. bool Load(File);
  10207. bool Load(VectorBuffer&);
  10208. bool Save(File) const;
  10209. bool Save(VectorBuffer&) const;
  10210. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10211. // Properties:
  10212. /* readonly */
  10213. String category;
  10214. Vector2 hotSpot;
  10215. /* readonly */
  10216. uint memoryUse;
  10217. String name;
  10218. IntVector2 offset;
  10219. IntRect rectangle;
  10220. /* readonly */
  10221. int refs;
  10222. Texture2D texture;
  10223. /* readonly */
  10224. StringHash type;
  10225. /* readonly */
  10226. String typeName;
  10227. /* readonly */
  10228. uint useTimer;
  10229. /* readonly */
  10230. int weakRefs;
  10231. };
  10232. class SpriteSheet2D
  10233. {
  10234. // Methods:
  10235. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10236. Sprite2D GetSprite(const String&);
  10237. bool HasSubscribedToEvent(Object, const String&);
  10238. bool HasSubscribedToEvent(const String&);
  10239. bool Load(File);
  10240. bool Load(VectorBuffer&);
  10241. bool Save(File) const;
  10242. bool Save(VectorBuffer&) const;
  10243. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10244. // Properties:
  10245. /* readonly */
  10246. String category;
  10247. /* readonly */
  10248. uint memoryUse;
  10249. String name;
  10250. /* readonly */
  10251. int refs;
  10252. /* readonly */
  10253. Texture2D texture;
  10254. /* readonly */
  10255. StringHash type;
  10256. /* readonly */
  10257. String typeName;
  10258. /* readonly */
  10259. uint useTimer;
  10260. /* readonly */
  10261. int weakRefs;
  10262. };
  10263. class StaticModel
  10264. {
  10265. // Methods:
  10266. void ApplyAttributes();
  10267. void ApplyMaterialList(const String& = String ( ));
  10268. void DrawDebugGeometry(DebugRenderer, bool);
  10269. Variant GetAttribute(const String&) const;
  10270. ValueAnimation GetAttributeAnimation(const String&) const;
  10271. float GetAttributeAnimationSpeed(const String&) const;
  10272. float GetAttributeAnimationTime(const String&) const;
  10273. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10274. Variant GetAttributeDefault(const String&) const;
  10275. bool GetInterceptNetworkUpdate(const String&) const;
  10276. bool HasSubscribedToEvent(Object, const String&);
  10277. bool HasSubscribedToEvent(const String&);
  10278. bool IsInView(Camera) const;
  10279. bool IsInside(const Vector3&) const;
  10280. bool IsInsideLocal(const Vector3&) const;
  10281. bool Load(File, bool = false);
  10282. bool Load(VectorBuffer&, bool = false);
  10283. bool LoadJSON(const JSONValue&, bool = false);
  10284. bool LoadXML(const XMLElement&, bool = false);
  10285. void MarkNetworkUpdate() const;
  10286. void Remove();
  10287. void RemoveAttributeAnimation(const String&);
  10288. void RemoveInstanceDefault();
  10289. void RemoveObjectAnimation();
  10290. void ResetToDefault();
  10291. bool Save(File) const;
  10292. bool Save(VectorBuffer&) const;
  10293. bool SaveJSON(JSONValue&) const;
  10294. bool SaveXML(XMLElement&) const;
  10295. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10296. void SetAnimationTime(float);
  10297. bool SetAttribute(const String&, const Variant&);
  10298. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10299. void SetAttributeAnimationSpeed(const String&, float);
  10300. void SetAttributeAnimationTime(const String&, float);
  10301. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10302. void SetInterceptNetworkUpdate(const String&, bool);
  10303. // Properties:
  10304. bool animationEnabled;
  10305. /* readonly */
  10306. Array<Variant> attributeDefaults;
  10307. /* readonly */
  10308. Array<AttributeInfo> attributeInfos;
  10309. Array<Variant> attributes;
  10310. /* readonly */
  10311. BoundingBox boundingBox;
  10312. bool castShadows;
  10313. /* readonly */
  10314. String category;
  10315. float drawDistance;
  10316. bool enabled;
  10317. /* readonly */
  10318. bool enabledEffective;
  10319. /* readonly */
  10320. uint id;
  10321. /* readonly */
  10322. bool inView;
  10323. uint lightMask;
  10324. float lodBias;
  10325. /* writeonly */
  10326. Material material;
  10327. Array<Material> materials;
  10328. uint maxLights;
  10329. Model model;
  10330. /* readonly */
  10331. Node node;
  10332. /* readonly */
  10333. uint numAttributes;
  10334. /* readonly */
  10335. uint numGeometries;
  10336. ObjectAnimation objectAnimation;
  10337. bool occludee;
  10338. bool occluder;
  10339. uint occlusionLodLevel;
  10340. /* readonly */
  10341. int refs;
  10342. float shadowDistance;
  10343. uint shadowMask;
  10344. bool temporary;
  10345. /* readonly */
  10346. StringHash type;
  10347. /* readonly */
  10348. String typeName;
  10349. uint viewMask;
  10350. /* readonly */
  10351. int weakRefs;
  10352. /* readonly */
  10353. BoundingBox worldBoundingBox;
  10354. uint zoneMask;
  10355. };
  10356. class StaticModelGroup
  10357. {
  10358. // Methods:
  10359. void AddInstanceNode(Node);
  10360. void ApplyAttributes();
  10361. void ApplyMaterialList(const String& = String ( ));
  10362. void DrawDebugGeometry(DebugRenderer, bool);
  10363. Variant GetAttribute(const String&) const;
  10364. ValueAnimation GetAttributeAnimation(const String&) const;
  10365. float GetAttributeAnimationSpeed(const String&) const;
  10366. float GetAttributeAnimationTime(const String&) const;
  10367. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10368. Variant GetAttributeDefault(const String&) const;
  10369. bool GetInterceptNetworkUpdate(const String&) const;
  10370. bool HasSubscribedToEvent(Object, const String&);
  10371. bool HasSubscribedToEvent(const String&);
  10372. bool IsInView(Camera) const;
  10373. bool Load(File, bool = false);
  10374. bool Load(VectorBuffer&, bool = false);
  10375. bool LoadJSON(const JSONValue&, bool = false);
  10376. bool LoadXML(const XMLElement&, bool = false);
  10377. void MarkNetworkUpdate() const;
  10378. void Remove();
  10379. void RemoveAllInstanceNodes();
  10380. void RemoveAttributeAnimation(const String&);
  10381. void RemoveInstanceDefault();
  10382. void RemoveInstanceNode(Node);
  10383. void RemoveObjectAnimation();
  10384. void ResetToDefault();
  10385. bool Save(File) const;
  10386. bool Save(VectorBuffer&) const;
  10387. bool SaveJSON(JSONValue&) const;
  10388. bool SaveXML(XMLElement&) const;
  10389. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10390. void SetAnimationTime(float);
  10391. bool SetAttribute(const String&, const Variant&);
  10392. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10393. void SetAttributeAnimationSpeed(const String&, float);
  10394. void SetAttributeAnimationTime(const String&, float);
  10395. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10396. void SetInterceptNetworkUpdate(const String&, bool);
  10397. // Properties:
  10398. bool animationEnabled;
  10399. /* readonly */
  10400. Array<Variant> attributeDefaults;
  10401. /* readonly */
  10402. Array<AttributeInfo> attributeInfos;
  10403. Array<Variant> attributes;
  10404. /* readonly */
  10405. BoundingBox boundingBox;
  10406. bool castShadows;
  10407. /* readonly */
  10408. String category;
  10409. float drawDistance;
  10410. bool enabled;
  10411. /* readonly */
  10412. bool enabledEffective;
  10413. /* readonly */
  10414. uint id;
  10415. /* readonly */
  10416. bool inView;
  10417. /* readonly */
  10418. Array<Node> instanceNodes;
  10419. uint lightMask;
  10420. float lodBias;
  10421. /* writeonly */
  10422. Material material;
  10423. Array<Material> materials;
  10424. uint maxLights;
  10425. Model model;
  10426. /* readonly */
  10427. Node node;
  10428. /* readonly */
  10429. uint numAttributes;
  10430. /* readonly */
  10431. uint numGeometries;
  10432. /* readonly */
  10433. uint numInstanceNodes;
  10434. ObjectAnimation objectAnimation;
  10435. bool occludee;
  10436. bool occluder;
  10437. uint occlusionLodLevel;
  10438. /* readonly */
  10439. int refs;
  10440. float shadowDistance;
  10441. uint shadowMask;
  10442. bool temporary;
  10443. /* readonly */
  10444. StringHash type;
  10445. /* readonly */
  10446. String typeName;
  10447. uint viewMask;
  10448. /* readonly */
  10449. int weakRefs;
  10450. /* readonly */
  10451. BoundingBox worldBoundingBox;
  10452. /* readonly */
  10453. Zone zone;
  10454. uint zoneMask;
  10455. };
  10456. class StaticSprite2D
  10457. {
  10458. // Methods:
  10459. void ApplyAttributes();
  10460. void DrawDebugGeometry(DebugRenderer, bool);
  10461. Variant GetAttribute(const String&) const;
  10462. ValueAnimation GetAttributeAnimation(const String&) const;
  10463. float GetAttributeAnimationSpeed(const String&) const;
  10464. float GetAttributeAnimationTime(const String&) const;
  10465. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10466. Variant GetAttributeDefault(const String&) const;
  10467. bool GetInterceptNetworkUpdate(const String&) const;
  10468. bool HasSubscribedToEvent(Object, const String&);
  10469. bool HasSubscribedToEvent(const String&);
  10470. bool IsInView(Camera) const;
  10471. bool Load(File, bool = false);
  10472. bool Load(VectorBuffer&, bool = false);
  10473. bool LoadJSON(const JSONValue&, bool = false);
  10474. bool LoadXML(const XMLElement&, bool = false);
  10475. void MarkNetworkUpdate() const;
  10476. void Remove();
  10477. void RemoveAttributeAnimation(const String&);
  10478. void RemoveInstanceDefault();
  10479. void RemoveObjectAnimation();
  10480. void ResetToDefault();
  10481. bool Save(File) const;
  10482. bool Save(VectorBuffer&) const;
  10483. bool SaveJSON(JSONValue&) const;
  10484. bool SaveXML(XMLElement&) const;
  10485. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10486. void SetAnimationTime(float);
  10487. bool SetAttribute(const String&, const Variant&);
  10488. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10489. void SetAttributeAnimationSpeed(const String&, float);
  10490. void SetAttributeAnimationTime(const String&, float);
  10491. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10492. void SetFlip(bool, bool);
  10493. void SetInterceptNetworkUpdate(const String&, bool);
  10494. // Properties:
  10495. float alpha;
  10496. bool animationEnabled;
  10497. /* readonly */
  10498. Array<Variant> attributeDefaults;
  10499. /* readonly */
  10500. Array<AttributeInfo> attributeInfos;
  10501. Array<Variant> attributes;
  10502. BlendMode blendMode;
  10503. /* readonly */
  10504. BoundingBox boundingBox;
  10505. bool castShadows;
  10506. /* readonly */
  10507. String category;
  10508. Color color;
  10509. Material customMaterial;
  10510. float drawDistance;
  10511. bool enabled;
  10512. /* readonly */
  10513. bool enabledEffective;
  10514. bool flipX;
  10515. bool flipY;
  10516. Vector2 hotSpot;
  10517. /* readonly */
  10518. uint id;
  10519. /* readonly */
  10520. bool inView;
  10521. int layer;
  10522. uint lightMask;
  10523. float lodBias;
  10524. uint maxLights;
  10525. /* readonly */
  10526. Node node;
  10527. /* readonly */
  10528. uint numAttributes;
  10529. ObjectAnimation objectAnimation;
  10530. bool occludee;
  10531. bool occluder;
  10532. int orderInLayer;
  10533. /* readonly */
  10534. int refs;
  10535. float shadowDistance;
  10536. uint shadowMask;
  10537. Sprite2D sprite;
  10538. bool temporary;
  10539. /* readonly */
  10540. StringHash type;
  10541. /* readonly */
  10542. String typeName;
  10543. bool useHotSpot;
  10544. uint viewMask;
  10545. /* readonly */
  10546. int weakRefs;
  10547. /* readonly */
  10548. BoundingBox worldBoundingBox;
  10549. uint zoneMask;
  10550. };
  10551. class String
  10552. {
  10553. // Methods:
  10554. void AppendUTF8(uint);
  10555. uint AtUTF8(uint) const;
  10556. uint ByteOffsetUTF8(uint) const;
  10557. void Clear();
  10558. int Compare(const String&, bool = true) const;
  10559. bool Contains(const String&, bool = true) const;
  10560. bool Contains(uint8, bool = true) const;
  10561. bool EndsWith(const String&, bool = true) const;
  10562. uint Find(const String&, uint = 0, bool = true) const;
  10563. uint Find(uint8, uint = 0, bool = true) const;
  10564. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10565. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10566. void Join(Array<String>&, const String&);
  10567. uint NextUTF8Char(uint&) const;
  10568. void Replace(const String&, const String&, bool = true);
  10569. void Replace(uint8, uint8, bool = true);
  10570. void ReplaceUTF8(uint, uint);
  10571. String Replaced(const String&, const String&, bool = true) const;
  10572. String Replaced(uint8, uint8, bool = true) const;
  10573. void Resize(uint);
  10574. void SetUTF8FromLatin1(const String&);
  10575. Array<String> Split(uint8, bool = false) const;
  10576. bool StartsWith(const String&, bool = true) const;
  10577. String Substring(uint) const;
  10578. String Substring(uint, uint) const;
  10579. String SubstringUTF8(uint) const;
  10580. String SubstringUTF8(uint, uint) const;
  10581. bool ToBool() const;
  10582. Color ToColor() const;
  10583. double ToDouble() const;
  10584. float ToFloat() const;
  10585. int ToInt() const;
  10586. IntRect ToIntRect() const;
  10587. IntVector2 ToIntVector2() const;
  10588. String ToLower() const;
  10589. Matrix3 ToMatrix3() const;
  10590. Matrix3x4 ToMatrix3x4() const;
  10591. Matrix4 ToMatrix4() const;
  10592. Quaternion ToQuaternion() const;
  10593. uint ToUInt() const;
  10594. String ToUpper() const;
  10595. Vector2 ToVector2() const;
  10596. Vector3 ToVector3() const;
  10597. Vector4 ToVector4(bool = false) const;
  10598. Variant ToVectorVariant() const;
  10599. String Trimmed() const;
  10600. // Properties:
  10601. /* readonly */
  10602. bool empty;
  10603. /* readonly */
  10604. uint length;
  10605. /* readonly */
  10606. uint utf8Length;
  10607. };
  10608. class StringHash
  10609. {
  10610. // Methods:
  10611. String ToString() const;
  10612. // Properties:
  10613. /* readonly */
  10614. uint value;
  10615. };
  10616. class Technique
  10617. {
  10618. // Methods:
  10619. Pass CreatePass(const String&);
  10620. Pass GetPass(const String&);
  10621. Pass GetSupportedPass(const String&);
  10622. bool HasPass(const String&) const;
  10623. bool HasSubscribedToEvent(Object, const String&);
  10624. bool HasSubscribedToEvent(const String&);
  10625. bool Load(File);
  10626. bool Load(VectorBuffer&);
  10627. void RemovePass(const String&);
  10628. bool Save(File) const;
  10629. bool Save(VectorBuffer&) const;
  10630. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10631. // Properties:
  10632. /* readonly */
  10633. String category;
  10634. bool desktop;
  10635. /* readonly */
  10636. uint memoryUse;
  10637. String name;
  10638. /* readonly */
  10639. uint numPasses;
  10640. /* readonly */
  10641. Array<String> passNames;
  10642. /* readonly */
  10643. Array<Pass> passes;
  10644. /* readonly */
  10645. int refs;
  10646. /* readonly */
  10647. bool supported;
  10648. /* readonly */
  10649. StringHash type;
  10650. /* readonly */
  10651. String typeName;
  10652. /* readonly */
  10653. uint useTimer;
  10654. /* readonly */
  10655. int weakRefs;
  10656. };
  10657. class TechniqueEntry
  10658. {
  10659. // Properties:
  10660. float lodDistance;
  10661. int qualityLevel;
  10662. Technique technique;
  10663. };
  10664. class Terrain
  10665. {
  10666. // Methods:
  10667. void ApplyAttributes();
  10668. void ApplyHeightMap();
  10669. void DrawDebugGeometry(DebugRenderer, bool);
  10670. Variant GetAttribute(const String&) const;
  10671. ValueAnimation GetAttributeAnimation(const String&) const;
  10672. float GetAttributeAnimationSpeed(const String&) const;
  10673. float GetAttributeAnimationTime(const String&) const;
  10674. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10675. Variant GetAttributeDefault(const String&) const;
  10676. float GetHeight(const Vector3&) const;
  10677. bool GetInterceptNetworkUpdate(const String&) const;
  10678. Vector3 GetNormal(const Vector3&) const;
  10679. TerrainPatch GetPatch(int, int) const;
  10680. bool HasSubscribedToEvent(Object, const String&);
  10681. bool HasSubscribedToEvent(const String&);
  10682. bool Load(File, bool = false);
  10683. bool Load(VectorBuffer&, bool = false);
  10684. bool LoadJSON(const JSONValue&, bool = false);
  10685. bool LoadXML(const XMLElement&, bool = false);
  10686. void MarkNetworkUpdate() const;
  10687. void Remove();
  10688. void RemoveAttributeAnimation(const String&);
  10689. void RemoveInstanceDefault();
  10690. void RemoveObjectAnimation();
  10691. void ResetToDefault();
  10692. bool Save(File) const;
  10693. bool Save(VectorBuffer&) const;
  10694. bool SaveJSON(JSONValue&) const;
  10695. bool SaveXML(XMLElement&) const;
  10696. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10697. void SetAnimationTime(float);
  10698. bool SetAttribute(const String&, const Variant&);
  10699. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10700. void SetAttributeAnimationSpeed(const String&, float);
  10701. void SetAttributeAnimationTime(const String&, float);
  10702. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10703. void SetInterceptNetworkUpdate(const String&, bool);
  10704. IntVector2 WorldToHeightMap(const Vector3&) const;
  10705. // Properties:
  10706. bool animationEnabled;
  10707. /* readonly */
  10708. Array<Variant> attributeDefaults;
  10709. /* readonly */
  10710. Array<AttributeInfo> attributeInfos;
  10711. Array<Variant> attributes;
  10712. bool castShadows;
  10713. /* readonly */
  10714. String category;
  10715. float drawDistance;
  10716. bool enabled;
  10717. /* readonly */
  10718. bool enabledEffective;
  10719. Image heightMap;
  10720. /* readonly */
  10721. uint id;
  10722. uint lightMask;
  10723. float lodBias;
  10724. Material material;
  10725. uint maxLights;
  10726. uint maxLodLevels;
  10727. /* readonly */
  10728. Node node;
  10729. /* readonly */
  10730. uint numAttributes;
  10731. /* readonly */
  10732. IntVector2 numPatches;
  10733. /* readonly */
  10734. IntVector2 numVertices;
  10735. ObjectAnimation objectAnimation;
  10736. bool occludee;
  10737. bool occluder;
  10738. uint occlusionLodLevel;
  10739. int patchSize;
  10740. /* readonly */
  10741. Array<TerrainPatch> patches;
  10742. /* readonly */
  10743. int refs;
  10744. float shadowDistance;
  10745. uint shadowMask;
  10746. bool smoothing;
  10747. Vector3 spacing;
  10748. bool temporary;
  10749. /* readonly */
  10750. StringHash type;
  10751. /* readonly */
  10752. String typeName;
  10753. uint viewMask;
  10754. /* readonly */
  10755. int weakRefs;
  10756. uint zoneMask;
  10757. };
  10758. class TerrainPatch
  10759. {
  10760. // Methods:
  10761. void ApplyAttributes();
  10762. void DrawDebugGeometry(DebugRenderer, bool);
  10763. Variant GetAttribute(const String&) const;
  10764. ValueAnimation GetAttributeAnimation(const String&) const;
  10765. float GetAttributeAnimationSpeed(const String&) const;
  10766. float GetAttributeAnimationTime(const String&) const;
  10767. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10768. Variant GetAttributeDefault(const String&) const;
  10769. bool GetInterceptNetworkUpdate(const String&) const;
  10770. bool HasSubscribedToEvent(Object, const String&);
  10771. bool HasSubscribedToEvent(const String&);
  10772. bool IsInView(Camera) const;
  10773. bool Load(File, bool = false);
  10774. bool Load(VectorBuffer&, bool = false);
  10775. bool LoadJSON(const JSONValue&, bool = false);
  10776. bool LoadXML(const XMLElement&, bool = false);
  10777. void MarkNetworkUpdate() const;
  10778. void Remove();
  10779. void RemoveAttributeAnimation(const String&);
  10780. void RemoveInstanceDefault();
  10781. void RemoveObjectAnimation();
  10782. void ResetToDefault();
  10783. bool Save(File) const;
  10784. bool Save(VectorBuffer&) const;
  10785. bool SaveJSON(JSONValue&) const;
  10786. bool SaveXML(XMLElement&) const;
  10787. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10788. void SetAnimationTime(float);
  10789. bool SetAttribute(const String&, const Variant&);
  10790. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10791. void SetAttributeAnimationSpeed(const String&, float);
  10792. void SetAttributeAnimationTime(const String&, float);
  10793. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10794. void SetInterceptNetworkUpdate(const String&, bool);
  10795. // Properties:
  10796. bool animationEnabled;
  10797. /* readonly */
  10798. Array<Variant> attributeDefaults;
  10799. /* readonly */
  10800. Array<AttributeInfo> attributeInfos;
  10801. Array<Variant> attributes;
  10802. /* readonly */
  10803. BoundingBox boundingBox;
  10804. bool castShadows;
  10805. /* readonly */
  10806. String category;
  10807. float drawDistance;
  10808. bool enabled;
  10809. /* readonly */
  10810. bool enabledEffective;
  10811. /* readonly */
  10812. uint id;
  10813. /* readonly */
  10814. bool inView;
  10815. uint lightMask;
  10816. float lodBias;
  10817. uint maxLights;
  10818. /* readonly */
  10819. Node node;
  10820. /* readonly */
  10821. uint numAttributes;
  10822. ObjectAnimation objectAnimation;
  10823. bool occludee;
  10824. bool occluder;
  10825. /* readonly */
  10826. int refs;
  10827. float shadowDistance;
  10828. uint shadowMask;
  10829. bool temporary;
  10830. /* readonly */
  10831. StringHash type;
  10832. /* readonly */
  10833. String typeName;
  10834. uint viewMask;
  10835. /* readonly */
  10836. int weakRefs;
  10837. /* readonly */
  10838. BoundingBox worldBoundingBox;
  10839. uint zoneMask;
  10840. };
  10841. class Text
  10842. {
  10843. // Methods:
  10844. void AddChild(UIElement);
  10845. void AddTag(const String&);
  10846. void AddTags(const String&, int8 = ';');
  10847. void ApplyAttributes();
  10848. void BringToFront();
  10849. void ClearSelection();
  10850. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10851. void DisableLayoutUpdate();
  10852. IntVector2 ElementToScreen(const IntVector2&);
  10853. void EnableLayoutUpdate();
  10854. uint FindChild(UIElement) const;
  10855. Variant GetAttribute(const String&) const;
  10856. ValueAnimation GetAttributeAnimation(const String&) const;
  10857. float GetAttributeAnimationSpeed(const String&) const;
  10858. float GetAttributeAnimationTime(const String&) const;
  10859. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10860. Variant GetAttributeDefault(const String&) const;
  10861. UIElement GetChild(const String&, bool = false) const;
  10862. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10863. Array<UIElement> GetChildren(bool = false) const;
  10864. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10865. UIElement GetElementEventSender() const;
  10866. bool GetInterceptNetworkUpdate(const String&) const;
  10867. uint GetNumChildren(bool) const;
  10868. bool HasSubscribedToEvent(Object, const String&);
  10869. bool HasSubscribedToEvent(const String&);
  10870. bool HasTag(const String&) const;
  10871. void InsertChild(uint, UIElement);
  10872. bool IsInside(IntVector2, bool);
  10873. bool IsInsideCombined(IntVector2, bool);
  10874. bool Load(File, bool = false);
  10875. bool Load(VectorBuffer&, bool = false);
  10876. bool LoadChildXML(XMLFile, XMLFile = null);
  10877. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10878. bool LoadJSON(const JSONValue&, bool = false);
  10879. bool LoadXML(File);
  10880. bool LoadXML(VectorBuffer&);
  10881. bool LoadXML(XMLFile, XMLFile);
  10882. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10883. bool LoadXML(const XMLElement&, bool = false);
  10884. void MarkNetworkUpdate() const;
  10885. void Remove();
  10886. void RemoveAllChildren();
  10887. void RemoveAllTags();
  10888. void RemoveAttributeAnimation(const String&);
  10889. void RemoveChild(UIElement, uint = 0);
  10890. void RemoveChild(uint);
  10891. void RemoveInstanceDefault();
  10892. void RemoveObjectAnimation();
  10893. bool RemoveTag(const String&);
  10894. void ResetDeepEnabled();
  10895. void ResetToDefault();
  10896. bool Save(File) const;
  10897. bool Save(VectorBuffer&) const;
  10898. bool SaveJSON(JSONValue&) const;
  10899. bool SaveXML(File, const String& = "\t");
  10900. bool SaveXML(VectorBuffer&, const String& = "\t");
  10901. bool SaveXML(XMLElement&) const;
  10902. IntVector2 ScreenToElement(const IntVector2&);
  10903. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10904. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10905. void SetAnimationTime(float);
  10906. bool SetAttribute(const String&, const Variant&);
  10907. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10908. void SetAttributeAnimationSpeed(const String&, float);
  10909. void SetAttributeAnimationTime(const String&, float);
  10910. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10911. void SetDeepEnabled(bool);
  10912. void SetEnabledRecursive(bool);
  10913. void SetFixedHeight(int);
  10914. void SetFixedSize(int, int);
  10915. void SetFixedWidth(int);
  10916. bool SetFont(Font, int);
  10917. bool SetFont(const String&, int);
  10918. void SetInterceptNetworkUpdate(const String&, bool);
  10919. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10920. void SetMaxSize(int, int);
  10921. void SetMinSize(int, int);
  10922. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10923. void SetPosition(int, int);
  10924. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10925. void SetSize(int, int);
  10926. bool SetStyle(const String&, XMLFile = null);
  10927. bool SetStyle(const XMLElement&);
  10928. bool SetStyleAuto(XMLFile = null);
  10929. void UpdateLayout();
  10930. const Variant& GetVar(const StringHash&);
  10931. // Properties:
  10932. bool animationEnabled;
  10933. /* readonly */
  10934. Array<Variant> attributeDefaults;
  10935. /* readonly */
  10936. Array<AttributeInfo> attributeInfos;
  10937. Array<Variant> attributes;
  10938. bool autoLocalizable;
  10939. bool bringToBack;
  10940. bool bringToFront;
  10941. /* readonly */
  10942. String category;
  10943. /* readonly */
  10944. Array<IntVector2> charPositions;
  10945. /* readonly */
  10946. Array<IntVector2> charSizes;
  10947. /* readonly */
  10948. IntVector2 childOffset;
  10949. /* readonly */
  10950. Array<UIElement> children;
  10951. IntRect clipBorder;
  10952. bool clipChildren;
  10953. /* writeonly */
  10954. Color color;
  10955. /* readonly */
  10956. bool colorGradient;
  10957. Array<Color> colors;
  10958. /* readonly */
  10959. IntRect combinedScreenRect;
  10960. XMLFile defaultStyle;
  10961. /* readonly */
  10962. float derivedOpacity;
  10963. /* readonly */
  10964. uint dragButtonCombo;
  10965. /* readonly */
  10966. int dragButtonCount;
  10967. uint dragDropMode;
  10968. bool editable;
  10969. Color effectColor;
  10970. bool elementEventSender;
  10971. bool enabled;
  10972. /* readonly */
  10973. bool enabledSelf;
  10974. /* readonly */
  10975. bool fixedHeight;
  10976. /* readonly */
  10977. bool fixedSize;
  10978. /* readonly */
  10979. bool fixedWidth;
  10980. bool focus;
  10981. FocusMode focusMode;
  10982. /* readonly */
  10983. Font font;
  10984. /* readonly */
  10985. int fontSize;
  10986. int height;
  10987. HorizontalAlignment horizontalAlignment;
  10988. Color hoverColor;
  10989. /* readonly */
  10990. bool hovering;
  10991. int indent;
  10992. int indentSpacing;
  10993. /* readonly */
  10994. int indentWidth;
  10995. bool internal;
  10996. IntRect layoutBorder;
  10997. Vector2 layoutFlexScale;
  10998. LayoutMode layoutMode;
  10999. int layoutSpacing;
  11000. int maxHeight;
  11001. IntVector2 maxSize;
  11002. int maxWidth;
  11003. int minHeight;
  11004. IntVector2 minSize;
  11005. int minWidth;
  11006. String name;
  11007. /* readonly */
  11008. uint numAllChildren;
  11009. /* readonly */
  11010. uint numAttributes;
  11011. /* readonly */
  11012. uint numChars;
  11013. /* readonly */
  11014. uint numChildren;
  11015. /* readonly */
  11016. uint numRows;
  11017. ObjectAnimation objectAnimation;
  11018. float opacity;
  11019. UIElement parent;
  11020. IntVector2 position;
  11021. int priority;
  11022. /* readonly */
  11023. int refs;
  11024. /* readonly */
  11025. UIElement root;
  11026. /* readonly */
  11027. int rowHeight;
  11028. float rowSpacing;
  11029. /* readonly */
  11030. Array<int> rowWidths;
  11031. /* readonly */
  11032. IntVector2 screenPosition;
  11033. bool selected;
  11034. Color selectionColor;
  11035. /* readonly */
  11036. uint selectionLength;
  11037. /* readonly */
  11038. uint selectionStart;
  11039. IntVector2 size;
  11040. bool sortChildren;
  11041. String style;
  11042. /* readonly */
  11043. Array<String> tags;
  11044. bool temporary;
  11045. String text;
  11046. HorizontalAlignment textAlignment;
  11047. TextEffect textEffect;
  11048. TraversalMode traversalMode;
  11049. /* readonly */
  11050. StringHash type;
  11051. /* readonly */
  11052. String typeName;
  11053. bool useDerivedOpacity;
  11054. /* readonly */
  11055. VariantMap vars;
  11056. VerticalAlignment verticalAlignment;
  11057. bool visible;
  11058. /* readonly */
  11059. bool visibleEffective;
  11060. /* readonly */
  11061. int weakRefs;
  11062. int width;
  11063. bool wordwrap;
  11064. };
  11065. class Text3D
  11066. {
  11067. // Methods:
  11068. void ApplyAttributes();
  11069. void DrawDebugGeometry(DebugRenderer, bool);
  11070. Variant GetAttribute(const String&) const;
  11071. ValueAnimation GetAttributeAnimation(const String&) const;
  11072. float GetAttributeAnimationSpeed(const String&) const;
  11073. float GetAttributeAnimationTime(const String&) const;
  11074. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11075. Variant GetAttributeDefault(const String&) const;
  11076. bool GetInterceptNetworkUpdate(const String&) const;
  11077. bool HasSubscribedToEvent(Object, const String&);
  11078. bool HasSubscribedToEvent(const String&);
  11079. bool IsInView(Camera) const;
  11080. bool Load(File, bool = false);
  11081. bool Load(VectorBuffer&, bool = false);
  11082. bool LoadJSON(const JSONValue&, bool = false);
  11083. bool LoadXML(const XMLElement&, bool = false);
  11084. void MarkNetworkUpdate() const;
  11085. void Remove();
  11086. void RemoveAttributeAnimation(const String&);
  11087. void RemoveInstanceDefault();
  11088. void RemoveObjectAnimation();
  11089. void ResetToDefault();
  11090. bool Save(File) const;
  11091. bool Save(VectorBuffer&) const;
  11092. bool SaveJSON(JSONValue&) const;
  11093. bool SaveXML(XMLElement&) const;
  11094. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11095. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11096. void SetAnimationTime(float);
  11097. bool SetAttribute(const String&, const Variant&);
  11098. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11099. void SetAttributeAnimationSpeed(const String&, float);
  11100. void SetAttributeAnimationTime(const String&, float);
  11101. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11102. bool SetFont(Font, int);
  11103. bool SetFont(const String&, int);
  11104. void SetInterceptNetworkUpdate(const String&, bool);
  11105. // Properties:
  11106. bool animationEnabled;
  11107. /* readonly */
  11108. Array<Variant> attributeDefaults;
  11109. /* readonly */
  11110. Array<AttributeInfo> attributeInfos;
  11111. Array<Variant> attributes;
  11112. /* readonly */
  11113. BoundingBox boundingBox;
  11114. bool castShadows;
  11115. /* readonly */
  11116. String category;
  11117. /* readonly */
  11118. Array<IntVector2> charPositions;
  11119. /* readonly */
  11120. Array<IntVector2> charSizes;
  11121. /* writeonly */
  11122. Color color;
  11123. Array<Color> colors;
  11124. float drawDistance;
  11125. Color effectColor;
  11126. float effectDepthBias;
  11127. bool enabled;
  11128. /* readonly */
  11129. bool enabledEffective;
  11130. FaceCameraMode faceCameraMode;
  11131. /* readonly */
  11132. Font font;
  11133. /* readonly */
  11134. int fontSize;
  11135. HorizontalAlignment horizontalAlignment;
  11136. /* readonly */
  11137. uint id;
  11138. /* readonly */
  11139. bool inView;
  11140. uint lightMask;
  11141. float lodBias;
  11142. Material material;
  11143. uint maxLights;
  11144. /* readonly */
  11145. Node node;
  11146. /* readonly */
  11147. uint numAttributes;
  11148. /* readonly */
  11149. uint numChars;
  11150. /* readonly */
  11151. uint numRows;
  11152. ObjectAnimation objectAnimation;
  11153. bool occludee;
  11154. bool occluder;
  11155. float opacity;
  11156. /* readonly */
  11157. int refs;
  11158. /* readonly */
  11159. int rowHeight;
  11160. float rowSpacing;
  11161. /* readonly */
  11162. Array<int> rowWidths;
  11163. float shadowDistance;
  11164. uint shadowMask;
  11165. bool temporary;
  11166. String text;
  11167. HorizontalAlignment textAlignment;
  11168. TextEffect textEffect;
  11169. /* readonly */
  11170. StringHash type;
  11171. /* readonly */
  11172. String typeName;
  11173. VerticalAlignment verticalAlignment;
  11174. uint viewMask;
  11175. /* readonly */
  11176. int weakRefs;
  11177. int width;
  11178. bool wordwrap;
  11179. /* readonly */
  11180. BoundingBox worldBoundingBox;
  11181. uint zoneMask;
  11182. };
  11183. class Texture
  11184. {
  11185. // Methods:
  11186. void ClearDataLost();
  11187. bool HasSubscribedToEvent(Object, const String&);
  11188. bool HasSubscribedToEvent(const String&);
  11189. bool Load(File);
  11190. bool Load(VectorBuffer&);
  11191. bool Save(File) const;
  11192. bool Save(VectorBuffer&) const;
  11193. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11194. void SetNumLevels(uint);
  11195. // Properties:
  11196. Array<TextureAddressMode> addressMode;
  11197. Texture backupTexture;
  11198. Color borderColor;
  11199. /* readonly */
  11200. String category;
  11201. /* readonly */
  11202. uint components;
  11203. /* readonly */
  11204. bool compressed;
  11205. /* readonly */
  11206. bool dataLost;
  11207. TextureFilterMode filterMode;
  11208. /* readonly */
  11209. uint format;
  11210. /* readonly */
  11211. int height;
  11212. /* readonly */
  11213. Array<int> levelHeight;
  11214. /* readonly */
  11215. Array<int> levelWidth;
  11216. /* readonly */
  11217. uint levels;
  11218. /* readonly */
  11219. uint memoryUse;
  11220. Array<int> mipsToSkip;
  11221. String name;
  11222. /* readonly */
  11223. int refs;
  11224. bool sRGB;
  11225. /* readonly */
  11226. StringHash type;
  11227. /* readonly */
  11228. String typeName;
  11229. /* readonly */
  11230. TextureUsage usage;
  11231. /* readonly */
  11232. uint useTimer;
  11233. /* readonly */
  11234. int weakRefs;
  11235. /* readonly */
  11236. int width;
  11237. };
  11238. class Texture2D
  11239. {
  11240. // Methods:
  11241. void ClearDataLost();
  11242. Image GetImage() const;
  11243. bool HasSubscribedToEvent(Object, const String&);
  11244. bool HasSubscribedToEvent(const String&);
  11245. bool Load(File);
  11246. bool Load(VectorBuffer&);
  11247. bool Save(File) const;
  11248. bool Save(VectorBuffer&) const;
  11249. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11250. bool SetData(Image, bool = false);
  11251. void SetNumLevels(uint);
  11252. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  11253. // Properties:
  11254. Array<TextureAddressMode> addressMode;
  11255. Texture backupTexture;
  11256. Color borderColor;
  11257. /* readonly */
  11258. String category;
  11259. /* readonly */
  11260. uint components;
  11261. /* readonly */
  11262. bool compressed;
  11263. /* readonly */
  11264. bool dataLost;
  11265. TextureFilterMode filterMode;
  11266. /* readonly */
  11267. uint format;
  11268. /* readonly */
  11269. int height;
  11270. /* readonly */
  11271. Array<int> levelHeight;
  11272. /* readonly */
  11273. Array<int> levelWidth;
  11274. /* readonly */
  11275. uint levels;
  11276. /* readonly */
  11277. uint memoryUse;
  11278. Array<int> mipsToSkip;
  11279. String name;
  11280. /* readonly */
  11281. int refs;
  11282. /* readonly */
  11283. RenderSurface renderSurface;
  11284. bool sRGB;
  11285. /* readonly */
  11286. StringHash type;
  11287. /* readonly */
  11288. String typeName;
  11289. /* readonly */
  11290. TextureUsage usage;
  11291. /* readonly */
  11292. uint useTimer;
  11293. /* readonly */
  11294. int weakRefs;
  11295. /* readonly */
  11296. int width;
  11297. };
  11298. class Texture3D
  11299. {
  11300. // Methods:
  11301. void ClearDataLost();
  11302. bool HasSubscribedToEvent(Object, const String&);
  11303. bool HasSubscribedToEvent(const String&);
  11304. bool Load(File);
  11305. bool Load(VectorBuffer&);
  11306. bool Save(File) const;
  11307. bool Save(VectorBuffer&) const;
  11308. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11309. bool SetData(Image, bool = false);
  11310. void SetNumLevels(uint);
  11311. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11312. // Properties:
  11313. Array<TextureAddressMode> addressMode;
  11314. Texture backupTexture;
  11315. Color borderColor;
  11316. /* readonly */
  11317. String category;
  11318. /* readonly */
  11319. uint components;
  11320. /* readonly */
  11321. bool compressed;
  11322. /* readonly */
  11323. bool dataLost;
  11324. TextureFilterMode filterMode;
  11325. /* readonly */
  11326. uint format;
  11327. /* readonly */
  11328. int height;
  11329. /* readonly */
  11330. Array<int> levelHeight;
  11331. /* readonly */
  11332. Array<int> levelWidth;
  11333. /* readonly */
  11334. uint levels;
  11335. /* readonly */
  11336. uint memoryUse;
  11337. Array<int> mipsToSkip;
  11338. String name;
  11339. /* readonly */
  11340. int refs;
  11341. bool sRGB;
  11342. /* readonly */
  11343. StringHash type;
  11344. /* readonly */
  11345. String typeName;
  11346. /* readonly */
  11347. TextureUsage usage;
  11348. /* readonly */
  11349. uint useTimer;
  11350. /* readonly */
  11351. int weakRefs;
  11352. /* readonly */
  11353. int width;
  11354. };
  11355. class TextureCube
  11356. {
  11357. // Methods:
  11358. void ClearDataLost();
  11359. bool HasSubscribedToEvent(Object, const String&);
  11360. bool HasSubscribedToEvent(const String&);
  11361. bool Load(File);
  11362. bool Load(VectorBuffer&);
  11363. bool Save(File) const;
  11364. bool Save(VectorBuffer&) const;
  11365. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11366. bool SetData(CubeMapFace, Image, bool = false);
  11367. void SetNumLevels(uint);
  11368. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  11369. // Properties:
  11370. Array<TextureAddressMode> addressMode;
  11371. Texture backupTexture;
  11372. Color borderColor;
  11373. /* readonly */
  11374. String category;
  11375. /* readonly */
  11376. uint components;
  11377. /* readonly */
  11378. bool compressed;
  11379. /* readonly */
  11380. bool dataLost;
  11381. TextureFilterMode filterMode;
  11382. /* readonly */
  11383. uint format;
  11384. /* readonly */
  11385. int height;
  11386. /* readonly */
  11387. Array<int> levelHeight;
  11388. /* readonly */
  11389. Array<int> levelWidth;
  11390. /* readonly */
  11391. uint levels;
  11392. /* readonly */
  11393. uint memoryUse;
  11394. Array<int> mipsToSkip;
  11395. String name;
  11396. /* readonly */
  11397. int refs;
  11398. /* readonly */
  11399. Array<RenderSurface> renderSurfaces;
  11400. bool sRGB;
  11401. /* readonly */
  11402. StringHash type;
  11403. /* readonly */
  11404. String typeName;
  11405. /* readonly */
  11406. TextureUsage usage;
  11407. /* readonly */
  11408. uint useTimer;
  11409. /* readonly */
  11410. int weakRefs;
  11411. /* readonly */
  11412. int width;
  11413. };
  11414. class TextureFrame
  11415. {
  11416. // Properties:
  11417. float time;
  11418. Rect uv;
  11419. };
  11420. class Tile2D
  11421. {
  11422. // Methods:
  11423. bool HasProperty(const String&) const;
  11424. const String& GetProperty(const String&) const;
  11425. // Properties:
  11426. /* readonly */
  11427. int gid;
  11428. /* readonly */
  11429. int refs;
  11430. /* readonly */
  11431. Sprite2D sprite;
  11432. /* readonly */
  11433. int weakRefs;
  11434. };
  11435. class TileMap2D
  11436. {
  11437. // Methods:
  11438. void ApplyAttributes();
  11439. void DrawDebugGeometry(DebugRenderer, bool);
  11440. Variant GetAttribute(const String&) const;
  11441. ValueAnimation GetAttributeAnimation(const String&) const;
  11442. float GetAttributeAnimationSpeed(const String&) const;
  11443. float GetAttributeAnimationTime(const String&) const;
  11444. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11445. Variant GetAttributeDefault(const String&) const;
  11446. bool GetInterceptNetworkUpdate(const String&) const;
  11447. TileMapLayer2D GetLayer(uint) const;
  11448. bool HasSubscribedToEvent(Object, const String&);
  11449. bool HasSubscribedToEvent(const String&);
  11450. bool Load(File, bool = false);
  11451. bool Load(VectorBuffer&, bool = false);
  11452. bool LoadJSON(const JSONValue&, bool = false);
  11453. bool LoadXML(const XMLElement&, bool = false);
  11454. void MarkNetworkUpdate() const;
  11455. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11456. void Remove();
  11457. void RemoveAttributeAnimation(const String&);
  11458. void RemoveInstanceDefault();
  11459. void RemoveObjectAnimation();
  11460. void ResetToDefault();
  11461. bool Save(File) const;
  11462. bool Save(VectorBuffer&) const;
  11463. bool SaveJSON(JSONValue&) const;
  11464. bool SaveXML(XMLElement&) const;
  11465. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11466. void SetAnimationTime(float);
  11467. bool SetAttribute(const String&, const Variant&);
  11468. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11469. void SetAttributeAnimationSpeed(const String&, float);
  11470. void SetAttributeAnimationTime(const String&, float);
  11471. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11472. void SetInterceptNetworkUpdate(const String&, bool);
  11473. Vector2 TileIndexToPosition(int, int) const;
  11474. // Properties:
  11475. bool animationEnabled;
  11476. /* readonly */
  11477. Array<Variant> attributeDefaults;
  11478. /* readonly */
  11479. Array<AttributeInfo> attributeInfos;
  11480. Array<Variant> attributes;
  11481. /* readonly */
  11482. String category;
  11483. bool enabled;
  11484. /* readonly */
  11485. bool enabledEffective;
  11486. /* readonly */
  11487. uint id;
  11488. /* readonly */
  11489. TileMapInfo2D info;
  11490. /* readonly */
  11491. Node node;
  11492. /* readonly */
  11493. uint numAttributes;
  11494. /* readonly */
  11495. uint numLayers;
  11496. ObjectAnimation objectAnimation;
  11497. /* readonly */
  11498. int refs;
  11499. bool temporary;
  11500. TmxFile2D tmxFile;
  11501. /* readonly */
  11502. StringHash type;
  11503. /* readonly */
  11504. String typeName;
  11505. /* readonly */
  11506. int weakRefs;
  11507. };
  11508. class TileMapInfo2D
  11509. {
  11510. // Properties:
  11511. int height;
  11512. /* readonly */
  11513. float mapHeight;
  11514. /* readonly */
  11515. float mapWidth;
  11516. Orientation2D orientation;
  11517. float tileHeight;
  11518. float tileWidth;
  11519. int width;
  11520. };
  11521. class TileMapLayer2D
  11522. {
  11523. // Methods:
  11524. void ApplyAttributes();
  11525. void DrawDebugGeometry(DebugRenderer, bool);
  11526. Variant GetAttribute(const String&) const;
  11527. ValueAnimation GetAttributeAnimation(const String&) const;
  11528. float GetAttributeAnimationSpeed(const String&) const;
  11529. float GetAttributeAnimationTime(const String&) const;
  11530. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11531. Variant GetAttributeDefault(const String&) const;
  11532. bool GetInterceptNetworkUpdate(const String&) const;
  11533. TileMapObject2D GetObject(uint) const;
  11534. Node GetObjectNode(uint) const;
  11535. Tile2D GetTile(int, int) const;
  11536. Node GetTileNode(int, int) const;
  11537. bool HasProperty(const String&) const;
  11538. bool HasSubscribedToEvent(Object, const String&);
  11539. bool HasSubscribedToEvent(const String&);
  11540. bool Load(File, bool = false);
  11541. bool Load(VectorBuffer&, bool = false);
  11542. bool LoadJSON(const JSONValue&, bool = false);
  11543. bool LoadXML(const XMLElement&, bool = false);
  11544. void MarkNetworkUpdate() const;
  11545. void Remove();
  11546. void RemoveAttributeAnimation(const String&);
  11547. void RemoveInstanceDefault();
  11548. void RemoveObjectAnimation();
  11549. void ResetToDefault();
  11550. bool Save(File) const;
  11551. bool Save(VectorBuffer&) const;
  11552. bool SaveJSON(JSONValue&) const;
  11553. bool SaveXML(XMLElement&) const;
  11554. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11555. void SetAnimationTime(float);
  11556. bool SetAttribute(const String&, const Variant&);
  11557. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11558. void SetAttributeAnimationSpeed(const String&, float);
  11559. void SetAttributeAnimationTime(const String&, float);
  11560. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11561. void SetInterceptNetworkUpdate(const String&, bool);
  11562. const String& GetProperty(const String&) const;
  11563. // Properties:
  11564. bool animationEnabled;
  11565. /* readonly */
  11566. Array<Variant> attributeDefaults;
  11567. /* readonly */
  11568. Array<AttributeInfo> attributeInfos;
  11569. Array<Variant> attributes;
  11570. /* readonly */
  11571. String category;
  11572. int drawOrder;
  11573. bool enabled;
  11574. /* readonly */
  11575. bool enabledEffective;
  11576. /* readonly */
  11577. int height;
  11578. /* readonly */
  11579. uint id;
  11580. /* readonly */
  11581. Node imageNode;
  11582. /* readonly */
  11583. TileMapLayerType2D layerType;
  11584. /* readonly */
  11585. Node node;
  11586. /* readonly */
  11587. uint numAttributes;
  11588. /* readonly */
  11589. uint numObjects;
  11590. ObjectAnimation objectAnimation;
  11591. /* readonly */
  11592. int refs;
  11593. bool temporary;
  11594. /* readonly */
  11595. StringHash type;
  11596. /* readonly */
  11597. String typeName;
  11598. bool visible;
  11599. /* readonly */
  11600. int weakRefs;
  11601. /* readonly */
  11602. int width;
  11603. };
  11604. class TileMapObject2D
  11605. {
  11606. // Methods:
  11607. bool HasProperty(const String&) const;
  11608. const String& GetProperty(const String&) const;
  11609. const Vector2& GetPoint(uint) const;
  11610. // Properties:
  11611. /* readonly */
  11612. String name;
  11613. /* readonly */
  11614. uint numPoints;
  11615. /* readonly */
  11616. TileObjectType2D objectType;
  11617. /* readonly */
  11618. Vector2 position;
  11619. /* readonly */
  11620. int refs;
  11621. /* readonly */
  11622. Vector2 size;
  11623. /* readonly */
  11624. int tileGid;
  11625. /* readonly */
  11626. Sprite2D tileSprite;
  11627. /* readonly */
  11628. String type;
  11629. /* readonly */
  11630. int weakRefs;
  11631. };
  11632. class Time
  11633. {
  11634. // Methods:
  11635. bool HasSubscribedToEvent(Object, const String&);
  11636. bool HasSubscribedToEvent(const String&);
  11637. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11638. // Properties:
  11639. /* readonly */
  11640. String category;
  11641. /* readonly */
  11642. float elapsedTime;
  11643. /* readonly */
  11644. uint frameNumber;
  11645. /* readonly */
  11646. int refs;
  11647. /* readonly */
  11648. uint systemTime;
  11649. /* readonly */
  11650. uint timeSinceEpoch;
  11651. /* readonly */
  11652. String timeStamp;
  11653. /* readonly */
  11654. float timeStep;
  11655. /* readonly */
  11656. StringHash type;
  11657. /* readonly */
  11658. String typeName;
  11659. /* readonly */
  11660. int weakRefs;
  11661. };
  11662. class Timer
  11663. {
  11664. // Methods:
  11665. uint GetMSec(bool);
  11666. void Reset();
  11667. };
  11668. class TmxFile2D
  11669. {
  11670. // Methods:
  11671. bool HasSubscribedToEvent(Object, const String&);
  11672. bool HasSubscribedToEvent(const String&);
  11673. bool Load(File);
  11674. bool Load(VectorBuffer&);
  11675. bool Save(File) const;
  11676. bool Save(VectorBuffer&) const;
  11677. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11678. // Properties:
  11679. /* readonly */
  11680. String category;
  11681. /* readonly */
  11682. uint memoryUse;
  11683. String name;
  11684. /* readonly */
  11685. int refs;
  11686. /* readonly */
  11687. StringHash type;
  11688. /* readonly */
  11689. String typeName;
  11690. /* readonly */
  11691. uint useTimer;
  11692. /* readonly */
  11693. int weakRefs;
  11694. };
  11695. class ToolTip
  11696. {
  11697. // Methods:
  11698. void AddChild(UIElement);
  11699. void AddTag(const String&);
  11700. void AddTags(const String&, int8 = ';');
  11701. void ApplyAttributes();
  11702. void BringToFront();
  11703. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11704. void DisableLayoutUpdate();
  11705. IntVector2 ElementToScreen(const IntVector2&);
  11706. void EnableLayoutUpdate();
  11707. uint FindChild(UIElement) const;
  11708. Variant GetAttribute(const String&) const;
  11709. ValueAnimation GetAttributeAnimation(const String&) const;
  11710. float GetAttributeAnimationSpeed(const String&) const;
  11711. float GetAttributeAnimationTime(const String&) const;
  11712. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11713. Variant GetAttributeDefault(const String&) const;
  11714. UIElement GetChild(const String&, bool = false) const;
  11715. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11716. Array<UIElement> GetChildren(bool = false) const;
  11717. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11718. UIElement GetElementEventSender() const;
  11719. bool GetInterceptNetworkUpdate(const String&) const;
  11720. uint GetNumChildren(bool) const;
  11721. bool HasSubscribedToEvent(Object, const String&);
  11722. bool HasSubscribedToEvent(const String&);
  11723. bool HasTag(const String&) const;
  11724. void InsertChild(uint, UIElement);
  11725. bool IsInside(IntVector2, bool);
  11726. bool IsInsideCombined(IntVector2, bool);
  11727. bool Load(File, bool = false);
  11728. bool Load(VectorBuffer&, bool = false);
  11729. bool LoadChildXML(XMLFile, XMLFile = null);
  11730. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11731. bool LoadJSON(const JSONValue&, bool = false);
  11732. bool LoadXML(File);
  11733. bool LoadXML(VectorBuffer&);
  11734. bool LoadXML(XMLFile, XMLFile);
  11735. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11736. bool LoadXML(const XMLElement&, bool = false);
  11737. void MarkNetworkUpdate() const;
  11738. void Remove();
  11739. void RemoveAllChildren();
  11740. void RemoveAllTags();
  11741. void RemoveAttributeAnimation(const String&);
  11742. void RemoveChild(UIElement, uint = 0);
  11743. void RemoveChild(uint);
  11744. void RemoveInstanceDefault();
  11745. void RemoveObjectAnimation();
  11746. bool RemoveTag(const String&);
  11747. void ResetDeepEnabled();
  11748. void ResetToDefault();
  11749. bool Save(File) const;
  11750. bool Save(VectorBuffer&) const;
  11751. bool SaveJSON(JSONValue&) const;
  11752. bool SaveXML(File, const String& = "\t");
  11753. bool SaveXML(VectorBuffer&, const String& = "\t");
  11754. bool SaveXML(XMLElement&) const;
  11755. IntVector2 ScreenToElement(const IntVector2&);
  11756. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11757. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11758. void SetAnimationTime(float);
  11759. bool SetAttribute(const String&, const Variant&);
  11760. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11761. void SetAttributeAnimationSpeed(const String&, float);
  11762. void SetAttributeAnimationTime(const String&, float);
  11763. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11764. void SetDeepEnabled(bool);
  11765. void SetEnabledRecursive(bool);
  11766. void SetFixedHeight(int);
  11767. void SetFixedSize(int, int);
  11768. void SetFixedWidth(int);
  11769. void SetInterceptNetworkUpdate(const String&, bool);
  11770. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11771. void SetMaxSize(int, int);
  11772. void SetMinSize(int, int);
  11773. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11774. void SetPosition(int, int);
  11775. void SetSize(int, int);
  11776. bool SetStyle(const String&, XMLFile = null);
  11777. bool SetStyle(const XMLElement&);
  11778. bool SetStyleAuto(XMLFile = null);
  11779. void UpdateLayout();
  11780. const Variant& GetVar(const StringHash&);
  11781. // Properties:
  11782. bool animationEnabled;
  11783. /* readonly */
  11784. Array<Variant> attributeDefaults;
  11785. /* readonly */
  11786. Array<AttributeInfo> attributeInfos;
  11787. Array<Variant> attributes;
  11788. bool bringToBack;
  11789. bool bringToFront;
  11790. /* readonly */
  11791. String category;
  11792. /* readonly */
  11793. IntVector2 childOffset;
  11794. /* readonly */
  11795. Array<UIElement> children;
  11796. IntRect clipBorder;
  11797. bool clipChildren;
  11798. /* writeonly */
  11799. Color color;
  11800. /* readonly */
  11801. bool colorGradient;
  11802. Array<Color> colors;
  11803. /* readonly */
  11804. IntRect combinedScreenRect;
  11805. XMLFile defaultStyle;
  11806. float delay;
  11807. /* readonly */
  11808. float derivedOpacity;
  11809. /* readonly */
  11810. uint dragButtonCombo;
  11811. /* readonly */
  11812. int dragButtonCount;
  11813. uint dragDropMode;
  11814. bool editable;
  11815. bool elementEventSender;
  11816. bool enabled;
  11817. /* readonly */
  11818. bool enabledSelf;
  11819. /* readonly */
  11820. bool fixedHeight;
  11821. /* readonly */
  11822. bool fixedSize;
  11823. /* readonly */
  11824. bool fixedWidth;
  11825. bool focus;
  11826. FocusMode focusMode;
  11827. int height;
  11828. HorizontalAlignment horizontalAlignment;
  11829. /* readonly */
  11830. bool hovering;
  11831. int indent;
  11832. int indentSpacing;
  11833. /* readonly */
  11834. int indentWidth;
  11835. bool internal;
  11836. IntRect layoutBorder;
  11837. Vector2 layoutFlexScale;
  11838. LayoutMode layoutMode;
  11839. int layoutSpacing;
  11840. int maxHeight;
  11841. IntVector2 maxSize;
  11842. int maxWidth;
  11843. int minHeight;
  11844. IntVector2 minSize;
  11845. int minWidth;
  11846. String name;
  11847. /* readonly */
  11848. uint numAllChildren;
  11849. /* readonly */
  11850. uint numAttributes;
  11851. /* readonly */
  11852. uint numChildren;
  11853. ObjectAnimation objectAnimation;
  11854. float opacity;
  11855. UIElement parent;
  11856. IntVector2 position;
  11857. int priority;
  11858. /* readonly */
  11859. int refs;
  11860. /* readonly */
  11861. UIElement root;
  11862. /* readonly */
  11863. IntVector2 screenPosition;
  11864. bool selected;
  11865. IntVector2 size;
  11866. bool sortChildren;
  11867. String style;
  11868. /* readonly */
  11869. Array<String> tags;
  11870. bool temporary;
  11871. TraversalMode traversalMode;
  11872. /* readonly */
  11873. StringHash type;
  11874. /* readonly */
  11875. String typeName;
  11876. bool useDerivedOpacity;
  11877. /* readonly */
  11878. VariantMap vars;
  11879. VerticalAlignment verticalAlignment;
  11880. bool visible;
  11881. /* readonly */
  11882. bool visibleEffective;
  11883. /* readonly */
  11884. int weakRefs;
  11885. int width;
  11886. };
  11887. class TouchState
  11888. {
  11889. // Properties:
  11890. IntVector2 delta;
  11891. IntVector2 lastPosition;
  11892. IntVector2 position;
  11893. float pressure;
  11894. int touchID;
  11895. /* readonly */
  11896. UIElement touchedElement;
  11897. };
  11898. class UI
  11899. {
  11900. // Methods:
  11901. void Clear();
  11902. void DebugDraw(UIElement);
  11903. UIElement GetElementAt(const IntVector2&, bool = true);
  11904. UIElement GetElementAt(int, int, bool = true);
  11905. bool HasModalElement() const;
  11906. bool HasSubscribedToEvent(Object, const String&);
  11907. bool HasSubscribedToEvent(const String&);
  11908. bool IsDragging() const;
  11909. UIElement LoadLayout(File);
  11910. UIElement LoadLayout(File, XMLFile);
  11911. UIElement LoadLayout(VectorBuffer&);
  11912. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11913. UIElement LoadLayout(XMLFile);
  11914. UIElement LoadLayout(XMLFile, XMLFile);
  11915. bool SaveLayout(File, UIElement);
  11916. bool SaveLayout(VectorBuffer&, UIElement);
  11917. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11918. void SetFocusElement(UIElement, bool = false);
  11919. void SetHeight(float);
  11920. void SetWidth(float);
  11921. const Array<UIElement> GetDragElements();
  11922. // Properties:
  11923. /* readonly */
  11924. String category;
  11925. String clipBoardText;
  11926. Cursor cursor;
  11927. /* readonly */
  11928. IntVector2 cursorPosition;
  11929. float defaultToolTipDelay;
  11930. float doubleClickInterval;
  11931. int dragBeginDistance;
  11932. float dragBeginInterval;
  11933. UIElement focusElement;
  11934. bool forceAutoHint;
  11935. /* readonly */
  11936. UIElement frontElement;
  11937. int maxFontTextureSize;
  11938. /* readonly */
  11939. UIElement modalRoot;
  11940. bool nonFocusedMouseWheel;
  11941. /* readonly */
  11942. int refs;
  11943. /* readonly */
  11944. UIElement root;
  11945. float scale;
  11946. /* readonly */
  11947. StringHash type;
  11948. /* readonly */
  11949. String typeName;
  11950. bool useMutableGlyphs;
  11951. bool useScreenKeyboard;
  11952. bool useSystemClipboard;
  11953. /* readonly */
  11954. int weakRefs;
  11955. };
  11956. class UIElement
  11957. {
  11958. // Methods:
  11959. void AddChild(UIElement);
  11960. void AddTag(const String&);
  11961. void AddTags(const String&, int8 = ';');
  11962. void ApplyAttributes();
  11963. void BringToFront();
  11964. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11965. void DisableLayoutUpdate();
  11966. IntVector2 ElementToScreen(const IntVector2&);
  11967. void EnableLayoutUpdate();
  11968. uint FindChild(UIElement) const;
  11969. Variant GetAttribute(const String&) const;
  11970. ValueAnimation GetAttributeAnimation(const String&) const;
  11971. float GetAttributeAnimationSpeed(const String&) const;
  11972. float GetAttributeAnimationTime(const String&) const;
  11973. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11974. Variant GetAttributeDefault(const String&) const;
  11975. UIElement GetChild(const String&, bool = false) const;
  11976. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11977. Array<UIElement> GetChildren(bool = false) const;
  11978. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11979. UIElement GetElementEventSender() const;
  11980. bool GetInterceptNetworkUpdate(const String&) const;
  11981. uint GetNumChildren(bool) const;
  11982. bool HasSubscribedToEvent(Object, const String&);
  11983. bool HasSubscribedToEvent(const String&);
  11984. bool HasTag(const String&) const;
  11985. void InsertChild(uint, UIElement);
  11986. bool IsInside(IntVector2, bool);
  11987. bool IsInsideCombined(IntVector2, bool);
  11988. bool Load(File, bool = false);
  11989. bool Load(VectorBuffer&, bool = false);
  11990. bool LoadChildXML(XMLFile, XMLFile = null);
  11991. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11992. bool LoadJSON(const JSONValue&, bool = false);
  11993. bool LoadXML(File);
  11994. bool LoadXML(VectorBuffer&);
  11995. bool LoadXML(XMLFile, XMLFile);
  11996. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11997. bool LoadXML(const XMLElement&, bool = false);
  11998. void MarkNetworkUpdate() const;
  11999. void Remove();
  12000. void RemoveAllChildren();
  12001. void RemoveAllTags();
  12002. void RemoveAttributeAnimation(const String&);
  12003. void RemoveChild(UIElement, uint = 0);
  12004. void RemoveChild(uint);
  12005. void RemoveInstanceDefault();
  12006. void RemoveObjectAnimation();
  12007. bool RemoveTag(const String&);
  12008. void ResetDeepEnabled();
  12009. void ResetToDefault();
  12010. bool Save(File) const;
  12011. bool Save(VectorBuffer&) const;
  12012. bool SaveJSON(JSONValue&) const;
  12013. bool SaveXML(File, const String& = "\t");
  12014. bool SaveXML(VectorBuffer&, const String& = "\t");
  12015. bool SaveXML(XMLElement&) const;
  12016. IntVector2 ScreenToElement(const IntVector2&);
  12017. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12018. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12019. void SetAnimationTime(float);
  12020. bool SetAttribute(const String&, const Variant&);
  12021. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12022. void SetAttributeAnimationSpeed(const String&, float);
  12023. void SetAttributeAnimationTime(const String&, float);
  12024. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12025. void SetDeepEnabled(bool);
  12026. void SetEnabledRecursive(bool);
  12027. void SetFixedHeight(int);
  12028. void SetFixedSize(int, int);
  12029. void SetFixedWidth(int);
  12030. void SetInterceptNetworkUpdate(const String&, bool);
  12031. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12032. void SetMaxSize(int, int);
  12033. void SetMinSize(int, int);
  12034. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12035. void SetPosition(int, int);
  12036. void SetSize(int, int);
  12037. bool SetStyle(const String&, XMLFile = null);
  12038. bool SetStyle(const XMLElement&);
  12039. bool SetStyleAuto(XMLFile = null);
  12040. void UpdateLayout();
  12041. const Variant& GetVar(const StringHash&);
  12042. // Properties:
  12043. bool animationEnabled;
  12044. /* readonly */
  12045. Array<Variant> attributeDefaults;
  12046. /* readonly */
  12047. Array<AttributeInfo> attributeInfos;
  12048. Array<Variant> attributes;
  12049. bool bringToBack;
  12050. bool bringToFront;
  12051. /* readonly */
  12052. String category;
  12053. /* readonly */
  12054. IntVector2 childOffset;
  12055. /* readonly */
  12056. Array<UIElement> children;
  12057. IntRect clipBorder;
  12058. bool clipChildren;
  12059. /* writeonly */
  12060. Color color;
  12061. /* readonly */
  12062. bool colorGradient;
  12063. Array<Color> colors;
  12064. /* readonly */
  12065. IntRect combinedScreenRect;
  12066. XMLFile defaultStyle;
  12067. /* readonly */
  12068. float derivedOpacity;
  12069. /* readonly */
  12070. uint dragButtonCombo;
  12071. /* readonly */
  12072. int dragButtonCount;
  12073. uint dragDropMode;
  12074. bool editable;
  12075. bool elementEventSender;
  12076. bool enabled;
  12077. /* readonly */
  12078. bool enabledSelf;
  12079. /* readonly */
  12080. bool fixedHeight;
  12081. /* readonly */
  12082. bool fixedSize;
  12083. /* readonly */
  12084. bool fixedWidth;
  12085. bool focus;
  12086. FocusMode focusMode;
  12087. int height;
  12088. HorizontalAlignment horizontalAlignment;
  12089. /* readonly */
  12090. bool hovering;
  12091. int indent;
  12092. int indentSpacing;
  12093. /* readonly */
  12094. int indentWidth;
  12095. bool internal;
  12096. IntRect layoutBorder;
  12097. Vector2 layoutFlexScale;
  12098. LayoutMode layoutMode;
  12099. int layoutSpacing;
  12100. int maxHeight;
  12101. IntVector2 maxSize;
  12102. int maxWidth;
  12103. int minHeight;
  12104. IntVector2 minSize;
  12105. int minWidth;
  12106. String name;
  12107. /* readonly */
  12108. uint numAllChildren;
  12109. /* readonly */
  12110. uint numAttributes;
  12111. /* readonly */
  12112. uint numChildren;
  12113. ObjectAnimation objectAnimation;
  12114. float opacity;
  12115. UIElement parent;
  12116. IntVector2 position;
  12117. int priority;
  12118. /* readonly */
  12119. int refs;
  12120. /* readonly */
  12121. UIElement root;
  12122. /* readonly */
  12123. IntVector2 screenPosition;
  12124. bool selected;
  12125. IntVector2 size;
  12126. bool sortChildren;
  12127. String style;
  12128. /* readonly */
  12129. Array<String> tags;
  12130. bool temporary;
  12131. TraversalMode traversalMode;
  12132. /* readonly */
  12133. StringHash type;
  12134. /* readonly */
  12135. String typeName;
  12136. bool useDerivedOpacity;
  12137. /* readonly */
  12138. VariantMap vars;
  12139. VerticalAlignment verticalAlignment;
  12140. bool visible;
  12141. /* readonly */
  12142. bool visibleEffective;
  12143. /* readonly */
  12144. int weakRefs;
  12145. int width;
  12146. };
  12147. class ValueAnimation
  12148. {
  12149. // Methods:
  12150. bool HasSubscribedToEvent(Object, const String&);
  12151. bool HasSubscribedToEvent(const String&);
  12152. bool Load(File);
  12153. bool Load(VectorBuffer&);
  12154. bool Save(File) const;
  12155. bool Save(VectorBuffer&) const;
  12156. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12157. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12158. void SetKeyFrame(float, const Variant&);
  12159. // Properties:
  12160. /* readonly */
  12161. String category;
  12162. InterpMethod interpolationMethod;
  12163. /* readonly */
  12164. uint memoryUse;
  12165. String name;
  12166. /* readonly */
  12167. int refs;
  12168. float splineTension;
  12169. /* readonly */
  12170. StringHash type;
  12171. /* readonly */
  12172. String typeName;
  12173. /* readonly */
  12174. uint useTimer;
  12175. VariantType valueType;
  12176. /* readonly */
  12177. int weakRefs;
  12178. };
  12179. class Variant
  12180. {
  12181. // Methods:
  12182. void Clear();
  12183. const Color& GetColor() const;
  12184. void FromString(VariantType, const String&);
  12185. void FromString(const String&, const String&);
  12186. bool GetBool() const;
  12187. double GetDouble() const;
  12188. float GetFloat() const;
  12189. int GetInt() const;
  12190. RefCounted GetPtr() const;
  12191. ScriptObject GetScriptObject() const;
  12192. StringHash GetStringHash() const;
  12193. Array<String> GetStringVector() const;
  12194. uint GetUInt() const;
  12195. Array<Variant> GetVariantVector() const;
  12196. const IntRect& GetIntRect() const;
  12197. const IntVector2& GetIntVector2() const;
  12198. const Matrix3& GetMatrix3() const;
  12199. const Matrix3x4& GetMatrix3x4() const;
  12200. const Matrix4& GetMatrix4() const;
  12201. const Quaternion& GetQuaternion() const;
  12202. const ResourceRef& GetResourceRef() const;
  12203. const ResourceRefList& GetResourceRefList() const;
  12204. const String& GetString() const;
  12205. String ToString() const;
  12206. const VariantMap& GetVariantMap() const;
  12207. const Vector2& GetVector2() const;
  12208. const Vector3& GetVector3() const;
  12209. const Vector4& GetVector4() const;
  12210. const VectorBuffer GetBuffer() const;
  12211. // Properties:
  12212. /* readonly */
  12213. bool empty;
  12214. /* readonly */
  12215. VariantType type;
  12216. /* readonly */
  12217. String typeName;
  12218. /* readonly */
  12219. bool zero;
  12220. };
  12221. class VariantMap
  12222. {
  12223. // Methods:
  12224. void Clear();
  12225. bool Contains(StringHash) const;
  12226. bool Contains(const String&) const;
  12227. bool Erase(StringHash);
  12228. bool Erase(const String&);
  12229. // Properties:
  12230. /* readonly */
  12231. Array<StringHash> keys;
  12232. /* readonly */
  12233. uint length;
  12234. /* readonly */
  12235. Array<Variant> values;
  12236. };
  12237. class Vector2
  12238. {
  12239. // Methods:
  12240. Vector2 Abs() const;
  12241. float AbsDotProduct(const Vector2&) const;
  12242. float Angle(const Vector2&) const;
  12243. float DotProduct(const Vector2&) const;
  12244. bool Equals(const Vector2&) const;
  12245. bool IsNaN() const;
  12246. Vector2 Lerp(const Vector2&, float) const;
  12247. void Normalize();
  12248. Vector2 Normalized() const;
  12249. String ToString() const;
  12250. // Properties:
  12251. /* readonly */
  12252. Array<float> data;
  12253. /* readonly */
  12254. float length;
  12255. /* readonly */
  12256. float lengthSquared;
  12257. float x;
  12258. float y;
  12259. };
  12260. class Vector3
  12261. {
  12262. // Methods:
  12263. Vector3 Abs() const;
  12264. float AbsDotProduct(const Vector3&) const;
  12265. float Angle(const Vector3&) const;
  12266. Vector3 CrossProduct(const Vector3&) const;
  12267. float DotProduct(const Vector3&) const;
  12268. bool Equals(const Vector3&) const;
  12269. bool IsNaN() const;
  12270. Vector3 Lerp(const Vector3&, float) const;
  12271. void Normalize();
  12272. Vector3 Normalized() const;
  12273. String ToString() const;
  12274. // Properties:
  12275. /* readonly */
  12276. Array<float> data;
  12277. /* readonly */
  12278. float length;
  12279. /* readonly */
  12280. float lengthSquared;
  12281. float x;
  12282. float y;
  12283. float z;
  12284. };
  12285. class Vector4
  12286. {
  12287. // Methods:
  12288. Vector4 Abs() const;
  12289. float AbsDotProduct(const Vector4&) const;
  12290. float DotProduct(const Vector4&) const;
  12291. bool Equals(const Vector4&) const;
  12292. bool IsNaN() const;
  12293. Vector4 Lerp(const Vector4&, float) const;
  12294. String ToString() const;
  12295. // Properties:
  12296. /* readonly */
  12297. Array<float> data;
  12298. float w;
  12299. float x;
  12300. float y;
  12301. float z;
  12302. };
  12303. class VectorBuffer
  12304. {
  12305. // Methods:
  12306. void Clear();
  12307. Array<uint8> Read(uint);
  12308. bool ReadBool();
  12309. BoundingBox ReadBoundingBox();
  12310. int8 ReadByte();
  12311. Color ReadColor();
  12312. double ReadDouble();
  12313. String ReadFileID();
  12314. float ReadFloat();
  12315. int ReadInt();
  12316. IntRect ReadIntRect();
  12317. IntVector2 ReadIntVector2();
  12318. String ReadLine();
  12319. Matrix3 ReadMatrix3();
  12320. Matrix3x4 ReadMatrix3x4();
  12321. Matrix4 ReadMatrix4();
  12322. uint ReadNetID();
  12323. Quaternion ReadPackedQuaternion();
  12324. Vector3 ReadPackedVector3(float);
  12325. Quaternion ReadQuaternion();
  12326. int16 ReadShort();
  12327. String ReadString();
  12328. StringHash ReadStringHash();
  12329. uint8 ReadUByte();
  12330. uint ReadUInt();
  12331. uint16 ReadUShort();
  12332. uint ReadVLE();
  12333. Variant ReadVariant();
  12334. VariantMap ReadVariantMap();
  12335. Vector2 ReadVector2();
  12336. Vector3 ReadVector3();
  12337. Vector4 ReadVector4();
  12338. VectorBuffer ReadVectorBuffer(uint);
  12339. void Resize(uint);
  12340. uint Seek(uint);
  12341. void SetData(Deserializer, uint);
  12342. uint Write(Array<uint8>);
  12343. bool WriteBool(bool);
  12344. bool WriteBoundingBox(const BoundingBox&);
  12345. bool WriteByte(int8);
  12346. bool WriteColor(const Color&);
  12347. bool WriteDouble(double);
  12348. bool WriteFileID(const String&);
  12349. bool WriteFloat(float);
  12350. bool WriteInt(int);
  12351. bool WriteIntRect(const IntRect&);
  12352. bool WriteIntVector2(const IntVector2&);
  12353. bool WriteLine(const String&);
  12354. bool WriteMatrix3(const Matrix3&);
  12355. bool WriteMatrix3x4(const Matrix3x4&);
  12356. bool WriteMatrix4(const Matrix4&);
  12357. bool WriteNetID(uint);
  12358. bool WritePackedQuaternion(const Quaternion&);
  12359. bool WritePackedVector3(const Vector3&, float);
  12360. bool WriteQuaternion(const Quaternion&);
  12361. bool WriteShort(int16);
  12362. bool WriteString(const String&);
  12363. bool WriteStringHash(const StringHash&);
  12364. bool WriteUByte(uint8);
  12365. bool WriteUInt(uint);
  12366. bool WriteUShort(uint16);
  12367. bool WriteVLE(uint);
  12368. bool WriteVariant(const Variant&);
  12369. bool WriteVariantMap(const VariantMap&);
  12370. bool WriteVector2(const Vector2&);
  12371. bool WriteVector3(const Vector3&);
  12372. bool WriteVector4(const Vector4&);
  12373. bool WriteVectorBuffer(const VectorBuffer&);
  12374. // Properties:
  12375. /* readonly */
  12376. uint checksum;
  12377. /* readonly */
  12378. bool eof;
  12379. /* readonly */
  12380. String name;
  12381. /* readonly */
  12382. uint position;
  12383. /* readonly */
  12384. uint size;
  12385. };
  12386. class VertexBuffer
  12387. {
  12388. // Methods:
  12389. VectorBuffer GetData();
  12390. bool HasSubscribedToEvent(Object, const String&);
  12391. bool HasSubscribedToEvent(const String&);
  12392. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12393. bool SetData(VectorBuffer&);
  12394. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12395. void SetSize(uint, uint, bool = false);
  12396. // Properties:
  12397. /* readonly */
  12398. String category;
  12399. /* readonly */
  12400. bool dynamic;
  12401. /* readonly */
  12402. uint elementMask;
  12403. /* readonly */
  12404. int refs;
  12405. bool shadowed;
  12406. /* readonly */
  12407. StringHash type;
  12408. /* readonly */
  12409. String typeName;
  12410. /* readonly */
  12411. uint vertexCount;
  12412. /* readonly */
  12413. uint vertexSize;
  12414. /* readonly */
  12415. int weakRefs;
  12416. };
  12417. class View3D
  12418. {
  12419. // Methods:
  12420. void AddChild(UIElement);
  12421. void AddTag(const String&);
  12422. void AddTags(const String&, int8 = ';');
  12423. void ApplyAttributes();
  12424. void BringToFront();
  12425. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12426. void DisableLayoutUpdate();
  12427. IntVector2 ElementToScreen(const IntVector2&);
  12428. void EnableLayoutUpdate();
  12429. uint FindChild(UIElement) const;
  12430. Variant GetAttribute(const String&) const;
  12431. ValueAnimation GetAttributeAnimation(const String&) const;
  12432. float GetAttributeAnimationSpeed(const String&) const;
  12433. float GetAttributeAnimationTime(const String&) const;
  12434. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12435. Variant GetAttributeDefault(const String&) const;
  12436. UIElement GetChild(const String&, bool = false) const;
  12437. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12438. Array<UIElement> GetChildren(bool = false) const;
  12439. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12440. UIElement GetElementEventSender() const;
  12441. bool GetInterceptNetworkUpdate(const String&) const;
  12442. uint GetNumChildren(bool) const;
  12443. bool HasSubscribedToEvent(Object, const String&);
  12444. bool HasSubscribedToEvent(const String&);
  12445. bool HasTag(const String&) const;
  12446. void InsertChild(uint, UIElement);
  12447. bool IsInside(IntVector2, bool);
  12448. bool IsInsideCombined(IntVector2, bool);
  12449. bool Load(File, bool = false);
  12450. bool Load(VectorBuffer&, bool = false);
  12451. bool LoadChildXML(XMLFile, XMLFile = null);
  12452. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12453. bool LoadJSON(const JSONValue&, bool = false);
  12454. bool LoadXML(File);
  12455. bool LoadXML(VectorBuffer&);
  12456. bool LoadXML(XMLFile, XMLFile);
  12457. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12458. bool LoadXML(const XMLElement&, bool = false);
  12459. void MarkNetworkUpdate() const;
  12460. void QueueUpdate();
  12461. void Remove();
  12462. void RemoveAllChildren();
  12463. void RemoveAllTags();
  12464. void RemoveAttributeAnimation(const String&);
  12465. void RemoveChild(UIElement, uint = 0);
  12466. void RemoveChild(uint);
  12467. void RemoveInstanceDefault();
  12468. void RemoveObjectAnimation();
  12469. bool RemoveTag(const String&);
  12470. void ResetDeepEnabled();
  12471. void ResetToDefault();
  12472. bool Save(File) const;
  12473. bool Save(VectorBuffer&) const;
  12474. bool SaveJSON(JSONValue&) const;
  12475. bool SaveXML(File, const String& = "\t");
  12476. bool SaveXML(VectorBuffer&, const String& = "\t");
  12477. bool SaveXML(XMLElement&) const;
  12478. IntVector2 ScreenToElement(const IntVector2&);
  12479. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12480. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12481. void SetAnimationTime(float);
  12482. bool SetAttribute(const String&, const Variant&);
  12483. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12484. void SetAttributeAnimationSpeed(const String&, float);
  12485. void SetAttributeAnimationTime(const String&, float);
  12486. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12487. void SetDeepEnabled(bool);
  12488. void SetEnabledRecursive(bool);
  12489. void SetFixedHeight(int);
  12490. void SetFixedSize(int, int);
  12491. void SetFixedWidth(int);
  12492. void SetFullImageRect();
  12493. void SetHoverOffset(int, int);
  12494. void SetInterceptNetworkUpdate(const String&, bool);
  12495. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12496. void SetMaxSize(int, int);
  12497. void SetMinSize(int, int);
  12498. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12499. void SetPosition(int, int);
  12500. void SetSize(int, int);
  12501. bool SetStyle(const String&, XMLFile = null);
  12502. bool SetStyle(const XMLElement&);
  12503. bool SetStyleAuto(XMLFile = null);
  12504. void SetView(Scene, Camera, bool = true);
  12505. void UpdateLayout();
  12506. const Variant& GetVar(const StringHash&);
  12507. // Properties:
  12508. bool animationEnabled;
  12509. /* readonly */
  12510. Array<Variant> attributeDefaults;
  12511. /* readonly */
  12512. Array<AttributeInfo> attributeInfos;
  12513. Array<Variant> attributes;
  12514. bool autoUpdate;
  12515. BlendMode blendMode;
  12516. IntRect border;
  12517. bool bringToBack;
  12518. bool bringToFront;
  12519. /* readonly */
  12520. Node cameraNode;
  12521. /* readonly */
  12522. String category;
  12523. /* readonly */
  12524. IntVector2 childOffset;
  12525. /* readonly */
  12526. Array<UIElement> children;
  12527. IntRect clipBorder;
  12528. bool clipChildren;
  12529. /* writeonly */
  12530. Color color;
  12531. /* readonly */
  12532. bool colorGradient;
  12533. Array<Color> colors;
  12534. /* readonly */
  12535. IntRect combinedScreenRect;
  12536. XMLFile defaultStyle;
  12537. /* readonly */
  12538. Texture2D depthTexture;
  12539. /* readonly */
  12540. float derivedOpacity;
  12541. /* readonly */
  12542. uint dragButtonCombo;
  12543. /* readonly */
  12544. int dragButtonCount;
  12545. uint dragDropMode;
  12546. bool editable;
  12547. bool elementEventSender;
  12548. bool enabled;
  12549. /* readonly */
  12550. bool enabledSelf;
  12551. /* readonly */
  12552. bool fixedHeight;
  12553. bool fixedHeightResizing;
  12554. /* readonly */
  12555. bool fixedSize;
  12556. /* readonly */
  12557. bool fixedWidth;
  12558. bool fixedWidthResizing;
  12559. bool focus;
  12560. FocusMode focusMode;
  12561. uint format;
  12562. int height;
  12563. HorizontalAlignment horizontalAlignment;
  12564. IntVector2 hoverOffset;
  12565. /* readonly */
  12566. bool hovering;
  12567. IntRect imageBorder;
  12568. IntRect imageRect;
  12569. int indent;
  12570. int indentSpacing;
  12571. /* readonly */
  12572. int indentWidth;
  12573. bool internal;
  12574. IntRect layoutBorder;
  12575. Vector2 layoutFlexScale;
  12576. LayoutMode layoutMode;
  12577. int layoutSpacing;
  12578. int maxHeight;
  12579. IntVector2 maxSize;
  12580. int maxWidth;
  12581. int minHeight;
  12582. IntVector2 minSize;
  12583. int minWidth;
  12584. bool modal;
  12585. bool modalAutoDismiss;
  12586. Color modalFrameColor;
  12587. IntVector2 modalFrameSize;
  12588. Color modalShadeColor;
  12589. bool movable;
  12590. String name;
  12591. /* readonly */
  12592. uint numAllChildren;
  12593. /* readonly */
  12594. uint numAttributes;
  12595. /* readonly */
  12596. uint numChildren;
  12597. ObjectAnimation objectAnimation;
  12598. float opacity;
  12599. UIElement parent;
  12600. IntVector2 position;
  12601. int priority;
  12602. /* readonly */
  12603. int refs;
  12604. /* readonly */
  12605. Texture2D renderTexture;
  12606. bool resizable;
  12607. IntRect resizeBorder;
  12608. /* readonly */
  12609. UIElement root;
  12610. /* readonly */
  12611. Scene scene;
  12612. /* readonly */
  12613. IntVector2 screenPosition;
  12614. bool selected;
  12615. IntVector2 size;
  12616. bool sortChildren;
  12617. String style;
  12618. /* readonly */
  12619. Array<String> tags;
  12620. bool temporary;
  12621. Texture texture;
  12622. bool tiled;
  12623. TraversalMode traversalMode;
  12624. /* readonly */
  12625. StringHash type;
  12626. /* readonly */
  12627. String typeName;
  12628. bool useDerivedOpacity;
  12629. /* readonly */
  12630. VariantMap vars;
  12631. VerticalAlignment verticalAlignment;
  12632. /* readonly */
  12633. Viewport viewport;
  12634. bool visible;
  12635. /* readonly */
  12636. bool visibleEffective;
  12637. /* readonly */
  12638. int weakRefs;
  12639. int width;
  12640. };
  12641. class Viewport
  12642. {
  12643. // Methods:
  12644. Ray GetScreenRay(int, int) const;
  12645. bool HasSubscribedToEvent(Object, const String&);
  12646. bool HasSubscribedToEvent(const String&);
  12647. Vector3 ScreenToWorldPoint(int, int, float) const;
  12648. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12649. void SetRenderPath(XMLFile);
  12650. Vector2 WorldToScreenPoint(const Vector3&) const;
  12651. // Properties:
  12652. Camera camera;
  12653. /* readonly */
  12654. String category;
  12655. Camera cullCamera;
  12656. bool drawDebug;
  12657. IntRect rect;
  12658. /* readonly */
  12659. int refs;
  12660. RenderPath renderPath;
  12661. Scene scene;
  12662. /* readonly */
  12663. StringHash type;
  12664. /* readonly */
  12665. String typeName;
  12666. /* readonly */
  12667. int weakRefs;
  12668. };
  12669. class WeakHandle
  12670. {
  12671. // Methods:
  12672. RefCounted Get() const;
  12673. // Properties:
  12674. /* readonly */
  12675. bool expired;
  12676. /* readonly */
  12677. int refs;
  12678. /* readonly */
  12679. int weakRefs;
  12680. };
  12681. class Window
  12682. {
  12683. // Methods:
  12684. void AddChild(UIElement);
  12685. void AddTag(const String&);
  12686. void AddTags(const String&, int8 = ';');
  12687. void ApplyAttributes();
  12688. void BringToFront();
  12689. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12690. void DisableLayoutUpdate();
  12691. IntVector2 ElementToScreen(const IntVector2&);
  12692. void EnableLayoutUpdate();
  12693. uint FindChild(UIElement) const;
  12694. Variant GetAttribute(const String&) const;
  12695. ValueAnimation GetAttributeAnimation(const String&) const;
  12696. float GetAttributeAnimationSpeed(const String&) const;
  12697. float GetAttributeAnimationTime(const String&) const;
  12698. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12699. Variant GetAttributeDefault(const String&) const;
  12700. UIElement GetChild(const String&, bool = false) const;
  12701. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12702. Array<UIElement> GetChildren(bool = false) const;
  12703. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12704. UIElement GetElementEventSender() const;
  12705. bool GetInterceptNetworkUpdate(const String&) const;
  12706. uint GetNumChildren(bool) const;
  12707. bool HasSubscribedToEvent(Object, const String&);
  12708. bool HasSubscribedToEvent(const String&);
  12709. bool HasTag(const String&) const;
  12710. void InsertChild(uint, UIElement);
  12711. bool IsInside(IntVector2, bool);
  12712. bool IsInsideCombined(IntVector2, bool);
  12713. bool Load(File, bool = false);
  12714. bool Load(VectorBuffer&, bool = false);
  12715. bool LoadChildXML(XMLFile, XMLFile = null);
  12716. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12717. bool LoadJSON(const JSONValue&, bool = false);
  12718. bool LoadXML(File);
  12719. bool LoadXML(VectorBuffer&);
  12720. bool LoadXML(XMLFile, XMLFile);
  12721. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12722. bool LoadXML(const XMLElement&, bool = false);
  12723. void MarkNetworkUpdate() const;
  12724. void Remove();
  12725. void RemoveAllChildren();
  12726. void RemoveAllTags();
  12727. void RemoveAttributeAnimation(const String&);
  12728. void RemoveChild(UIElement, uint = 0);
  12729. void RemoveChild(uint);
  12730. void RemoveInstanceDefault();
  12731. void RemoveObjectAnimation();
  12732. bool RemoveTag(const String&);
  12733. void ResetDeepEnabled();
  12734. void ResetToDefault();
  12735. bool Save(File) const;
  12736. bool Save(VectorBuffer&) const;
  12737. bool SaveJSON(JSONValue&) const;
  12738. bool SaveXML(File, const String& = "\t");
  12739. bool SaveXML(VectorBuffer&, const String& = "\t");
  12740. bool SaveXML(XMLElement&) const;
  12741. IntVector2 ScreenToElement(const IntVector2&);
  12742. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12743. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12744. void SetAnimationTime(float);
  12745. bool SetAttribute(const String&, const Variant&);
  12746. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12747. void SetAttributeAnimationSpeed(const String&, float);
  12748. void SetAttributeAnimationTime(const String&, float);
  12749. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12750. void SetDeepEnabled(bool);
  12751. void SetEnabledRecursive(bool);
  12752. void SetFixedHeight(int);
  12753. void SetFixedSize(int, int);
  12754. void SetFixedWidth(int);
  12755. void SetFullImageRect();
  12756. void SetHoverOffset(int, int);
  12757. void SetInterceptNetworkUpdate(const String&, bool);
  12758. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12759. void SetMaxSize(int, int);
  12760. void SetMinSize(int, int);
  12761. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12762. void SetPosition(int, int);
  12763. void SetSize(int, int);
  12764. bool SetStyle(const String&, XMLFile = null);
  12765. bool SetStyle(const XMLElement&);
  12766. bool SetStyleAuto(XMLFile = null);
  12767. void UpdateLayout();
  12768. const Variant& GetVar(const StringHash&);
  12769. // Properties:
  12770. bool animationEnabled;
  12771. /* readonly */
  12772. Array<Variant> attributeDefaults;
  12773. /* readonly */
  12774. Array<AttributeInfo> attributeInfos;
  12775. Array<Variant> attributes;
  12776. BlendMode blendMode;
  12777. IntRect border;
  12778. bool bringToBack;
  12779. bool bringToFront;
  12780. /* readonly */
  12781. String category;
  12782. /* readonly */
  12783. IntVector2 childOffset;
  12784. /* readonly */
  12785. Array<UIElement> children;
  12786. IntRect clipBorder;
  12787. bool clipChildren;
  12788. /* writeonly */
  12789. Color color;
  12790. /* readonly */
  12791. bool colorGradient;
  12792. Array<Color> colors;
  12793. /* readonly */
  12794. IntRect combinedScreenRect;
  12795. XMLFile defaultStyle;
  12796. /* readonly */
  12797. float derivedOpacity;
  12798. /* readonly */
  12799. uint dragButtonCombo;
  12800. /* readonly */
  12801. int dragButtonCount;
  12802. uint dragDropMode;
  12803. bool editable;
  12804. bool elementEventSender;
  12805. bool enabled;
  12806. /* readonly */
  12807. bool enabledSelf;
  12808. /* readonly */
  12809. bool fixedHeight;
  12810. bool fixedHeightResizing;
  12811. /* readonly */
  12812. bool fixedSize;
  12813. /* readonly */
  12814. bool fixedWidth;
  12815. bool fixedWidthResizing;
  12816. bool focus;
  12817. FocusMode focusMode;
  12818. int height;
  12819. HorizontalAlignment horizontalAlignment;
  12820. IntVector2 hoverOffset;
  12821. /* readonly */
  12822. bool hovering;
  12823. IntRect imageBorder;
  12824. IntRect imageRect;
  12825. int indent;
  12826. int indentSpacing;
  12827. /* readonly */
  12828. int indentWidth;
  12829. bool internal;
  12830. IntRect layoutBorder;
  12831. Vector2 layoutFlexScale;
  12832. LayoutMode layoutMode;
  12833. int layoutSpacing;
  12834. int maxHeight;
  12835. IntVector2 maxSize;
  12836. int maxWidth;
  12837. int minHeight;
  12838. IntVector2 minSize;
  12839. int minWidth;
  12840. bool modal;
  12841. bool modalAutoDismiss;
  12842. Color modalFrameColor;
  12843. IntVector2 modalFrameSize;
  12844. Color modalShadeColor;
  12845. bool movable;
  12846. String name;
  12847. /* readonly */
  12848. uint numAllChildren;
  12849. /* readonly */
  12850. uint numAttributes;
  12851. /* readonly */
  12852. uint numChildren;
  12853. ObjectAnimation objectAnimation;
  12854. float opacity;
  12855. UIElement parent;
  12856. IntVector2 position;
  12857. int priority;
  12858. /* readonly */
  12859. int refs;
  12860. bool resizable;
  12861. IntRect resizeBorder;
  12862. /* readonly */
  12863. UIElement root;
  12864. /* readonly */
  12865. IntVector2 screenPosition;
  12866. bool selected;
  12867. IntVector2 size;
  12868. bool sortChildren;
  12869. String style;
  12870. /* readonly */
  12871. Array<String> tags;
  12872. bool temporary;
  12873. Texture texture;
  12874. bool tiled;
  12875. TraversalMode traversalMode;
  12876. /* readonly */
  12877. StringHash type;
  12878. /* readonly */
  12879. String typeName;
  12880. bool useDerivedOpacity;
  12881. /* readonly */
  12882. VariantMap vars;
  12883. VerticalAlignment verticalAlignment;
  12884. bool visible;
  12885. /* readonly */
  12886. bool visibleEffective;
  12887. /* readonly */
  12888. int weakRefs;
  12889. int width;
  12890. };
  12891. class XMLElement
  12892. {
  12893. // Methods:
  12894. XMLElement CreateChild(const String&);
  12895. String GetAttribute(const String& = String ( )) const;
  12896. String GetAttributeLower(const String&) const;
  12897. Array<String> GetAttributeNames() const;
  12898. String GetAttributeUpper(const String&) const;
  12899. bool GetBool(const String&) const;
  12900. BoundingBox GetBoundingBox() const;
  12901. XMLElement GetChild(const String& = String ( )) const;
  12902. Color GetColor(const String&) const;
  12903. double GetDouble(const String&) const;
  12904. float GetFloat(const String&) const;
  12905. int GetInt(const String&) const;
  12906. IntRect GetIntRect(const String&) const;
  12907. IntVector2 GetIntVector2(const String&) const;
  12908. Matrix3 GetMatrix3(const String&) const;
  12909. Matrix3x4 GetMatrix3x4(const String&) const;
  12910. Matrix4 GetMatrix4(const String&) const;
  12911. XMLElement GetNext(const String& = String ( )) const;
  12912. Quaternion GetQuaternion(const String&) const;
  12913. ResourceRef GetResourceRef() const;
  12914. ResourceRefList GetResourceRefList() const;
  12915. uint GetUInt(const String&) const;
  12916. String GetValue() const;
  12917. Variant GetVariant() const;
  12918. VariantMap GetVariantMap() const;
  12919. Array<Variant> GetVariantVector() const;
  12920. Vector2 GetVector2(const String&) const;
  12921. Vector3 GetVector3(const String&) const;
  12922. Vector4 GetVector4(const String&) const;
  12923. Variant GetVectorVariant(const String&) const;
  12924. bool HasAttribute(const String&) const;
  12925. bool HasChild(const String&) const;
  12926. bool RemoveAttribute(const String& = String ( ));
  12927. bool RemoveChild(const String&);
  12928. bool RemoveChild(const XMLElement&);
  12929. bool RemoveChildren(const String& = String ( ));
  12930. XPathResultSet Select(const String&);
  12931. XPathResultSet SelectPrepared(const XPathQuery&);
  12932. XMLElement SelectSingle(const String&);
  12933. XMLElement SelectSinglePrepared(const XPathQuery&);
  12934. bool SetAttribute(const String&);
  12935. bool SetAttribute(const String&, const String&);
  12936. bool SetBool(const String&, bool);
  12937. bool SetBoundingBox(const BoundingBox&);
  12938. bool SetColor(const String&, const Color&);
  12939. bool SetDouble(const String&, double);
  12940. bool SetFloat(const String&, float);
  12941. bool SetInt(const String&, int);
  12942. bool SetIntRect(const String&, const IntRect&);
  12943. bool SetIntVector2(const String&, const IntVector2&);
  12944. bool SetMatrix3(const String&, const Matrix3&);
  12945. bool SetMatrix3x4(const String&, const Matrix3x4&);
  12946. bool SetMatrix4(const String&, const Matrix4&);
  12947. bool SetQuaternion(const String&, const Quaternion&);
  12948. bool SetResourceRef(const String&, const ResourceRef&);
  12949. bool SetResourceRefList(const String&, const ResourceRefList&);
  12950. bool SetUInt(const String&, uint);
  12951. bool SetValue(const String&);
  12952. bool SetVariant(const Variant&);
  12953. bool SetVariantMap(const VariantMap&);
  12954. bool SetVariantVector(Array<Variant>);
  12955. bool SetVector2(const String&, const Vector2&);
  12956. bool SetVector3(const String&, const Vector3&);
  12957. bool SetVector4(const String&, const Vector4&);
  12958. bool SetVectorVariant(const String&, const Variant&);
  12959. // Properties:
  12960. /* readonly */
  12961. XMLFile file;
  12962. /* readonly */
  12963. bool isNull;
  12964. /* readonly */
  12965. String name;
  12966. /* readonly */
  12967. XMLElement nextResult;
  12968. /* readonly */
  12969. bool notNull;
  12970. /* readonly */
  12971. uint numAttributes;
  12972. /* readonly */
  12973. XMLElement parent;
  12974. String value;
  12975. };
  12976. class XMLFile
  12977. {
  12978. // Methods:
  12979. XMLElement CreateRoot(const String&);
  12980. bool FromString(const String&);
  12981. XMLElement GetRoot(const String& = String ( ));
  12982. bool HasSubscribedToEvent(Object, const String&);
  12983. bool HasSubscribedToEvent(const String&);
  12984. bool Load(File);
  12985. bool Load(VectorBuffer&);
  12986. void Patch(XMLElement);
  12987. void Patch(XMLFile);
  12988. bool Save(File) const;
  12989. bool Save(File, const String&) const;
  12990. bool Save(VectorBuffer&) const;
  12991. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12992. String ToString(const String& = String ( "\t" )) const;
  12993. // Properties:
  12994. /* readonly */
  12995. String category;
  12996. /* readonly */
  12997. uint memoryUse;
  12998. String name;
  12999. /* readonly */
  13000. int refs;
  13001. /* readonly */
  13002. XMLElement root;
  13003. /* readonly */
  13004. StringHash type;
  13005. /* readonly */
  13006. String typeName;
  13007. /* readonly */
  13008. uint useTimer;
  13009. /* readonly */
  13010. int weakRefs;
  13011. };
  13012. class XPathQuery
  13013. {
  13014. // Methods:
  13015. void Bind();
  13016. void Clear();
  13017. XPathResultSet Evaluate(XMLElement);
  13018. bool EvaluateToBool(XMLElement);
  13019. float EvaluateToFloat(XMLElement);
  13020. String EvaluateToString(XMLElement);
  13021. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13022. bool SetVariable(const String&, bool);
  13023. bool SetVariable(const String&, const String&);
  13024. bool SetVariable(const String&, const XPathResultSet&);
  13025. bool SetVariable(const String&, float);
  13026. // Properties:
  13027. String query;
  13028. };
  13029. class XPathResultSet
  13030. {
  13031. // Properties:
  13032. /* readonly */
  13033. bool empty;
  13034. /* readonly */
  13035. XMLElement firstResult;
  13036. /* readonly */
  13037. uint size;
  13038. };
  13039. class Zone
  13040. {
  13041. // Methods:
  13042. void ApplyAttributes();
  13043. void DrawDebugGeometry(DebugRenderer, bool);
  13044. Variant GetAttribute(const String&) const;
  13045. ValueAnimation GetAttributeAnimation(const String&) const;
  13046. float GetAttributeAnimationSpeed(const String&) const;
  13047. float GetAttributeAnimationTime(const String&) const;
  13048. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13049. Variant GetAttributeDefault(const String&) const;
  13050. bool GetInterceptNetworkUpdate(const String&) const;
  13051. bool HasSubscribedToEvent(Object, const String&);
  13052. bool HasSubscribedToEvent(const String&);
  13053. bool IsInView(Camera) const;
  13054. bool Load(File, bool = false);
  13055. bool Load(VectorBuffer&, bool = false);
  13056. bool LoadJSON(const JSONValue&, bool = false);
  13057. bool LoadXML(const XMLElement&, bool = false);
  13058. void MarkNetworkUpdate() const;
  13059. void Remove();
  13060. void RemoveAttributeAnimation(const String&);
  13061. void RemoveInstanceDefault();
  13062. void RemoveObjectAnimation();
  13063. void ResetToDefault();
  13064. bool Save(File) const;
  13065. bool Save(VectorBuffer&) const;
  13066. bool SaveJSON(JSONValue&) const;
  13067. bool SaveXML(XMLElement&) const;
  13068. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13069. void SetAnimationTime(float);
  13070. bool SetAttribute(const String&, const Variant&);
  13071. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13072. void SetAttributeAnimationSpeed(const String&, float);
  13073. void SetAttributeAnimationTime(const String&, float);
  13074. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13075. void SetInterceptNetworkUpdate(const String&, bool);
  13076. // Properties:
  13077. Color ambientColor;
  13078. /* readonly */
  13079. Color ambientEndColor;
  13080. bool ambientGradient;
  13081. /* readonly */
  13082. Color ambientStartColor;
  13083. bool animationEnabled;
  13084. /* readonly */
  13085. Array<Variant> attributeDefaults;
  13086. /* readonly */
  13087. Array<AttributeInfo> attributeInfos;
  13088. Array<Variant> attributes;
  13089. BoundingBox boundingBox;
  13090. bool castShadows;
  13091. /* readonly */
  13092. String category;
  13093. float drawDistance;
  13094. bool enabled;
  13095. /* readonly */
  13096. bool enabledEffective;
  13097. Color fogColor;
  13098. float fogEnd;
  13099. float fogHeight;
  13100. float fogHeightScale;
  13101. float fogStart;
  13102. bool heightFog;
  13103. /* readonly */
  13104. uint id;
  13105. /* readonly */
  13106. bool inView;
  13107. /* readonly */
  13108. Matrix3x4 inverseWorldTransform;
  13109. uint lightMask;
  13110. float lodBias;
  13111. uint maxLights;
  13112. /* readonly */
  13113. Node node;
  13114. /* readonly */
  13115. uint numAttributes;
  13116. ObjectAnimation objectAnimation;
  13117. bool occludee;
  13118. bool occluder;
  13119. bool override;
  13120. int priority;
  13121. /* readonly */
  13122. int refs;
  13123. float shadowDistance;
  13124. uint shadowMask;
  13125. bool temporary;
  13126. /* readonly */
  13127. StringHash type;
  13128. /* readonly */
  13129. String typeName;
  13130. uint viewMask;
  13131. /* readonly */
  13132. int weakRefs;
  13133. /* readonly */
  13134. BoundingBox worldBoundingBox;
  13135. uint zoneMask;
  13136. Texture zoneTexture;
  13137. };
  13138. // Enumerations
  13139. enum BlendMode
  13140. {
  13141. BLEND_REPLACE,
  13142. BLEND_ADD,
  13143. BLEND_MULTIPLY,
  13144. BLEND_ALPHA,
  13145. BLEND_ADDALPHA,
  13146. BLEND_PREMULALPHA,
  13147. BLEND_INVDESTALPHA,
  13148. BLEND_SUBTRACT,
  13149. BLEND_SUBTRACTALPHA,
  13150. };
  13151. enum BodyType2D
  13152. {
  13153. BT_STATIC,
  13154. BT_KINEMATIC,
  13155. BT_DYNAMIC,
  13156. };
  13157. enum CollisionEventMode
  13158. {
  13159. COLLISION_NEVER,
  13160. COLLISION_ACTIVE,
  13161. COLLISION_ALWAYS,
  13162. };
  13163. enum CompareMode
  13164. {
  13165. CMP_ALWAYS,
  13166. CMP_EQUAL,
  13167. CMP_NOTEQUAL,
  13168. CMP_LESS,
  13169. CMP_LESSEQUAL,
  13170. CMP_GREATER,
  13171. CMP_GREATEREQUAL,
  13172. };
  13173. enum CompressedFormat
  13174. {
  13175. CF_NONE,
  13176. CF_RGBA,
  13177. CF_DXT1,
  13178. CF_DXT3,
  13179. CF_DXT5,
  13180. CF_ETC1,
  13181. CF_PVRTC_RGB_2BPP,
  13182. CF_PVRTC_RGBA_2BPP,
  13183. CF_PVRTC_RGB_4BPP,
  13184. CF_PVRTC_RGBA_4BPP,
  13185. };
  13186. enum ConstraintType
  13187. {
  13188. CONSTRAINT_POINT,
  13189. CONSTRAINT_HINGE,
  13190. CONSTRAINT_SLIDER,
  13191. CONSTRAINT_CONETWIST,
  13192. };
  13193. enum Corner
  13194. {
  13195. C_TOPLEFT,
  13196. C_TOPRIGHT,
  13197. C_BOTTOMLEFT,
  13198. C_BOTTOMRIGHT,
  13199. };
  13200. enum CreateMode
  13201. {
  13202. REPLICATED,
  13203. LOCAL,
  13204. };
  13205. enum CrowdAgentRequestedTarget
  13206. {
  13207. CA_REQUESTEDTARGET_NONE,
  13208. CA_REQUESTEDTARGET_POSITION,
  13209. CA_REQUESTEDTARGET_VELOCITY,
  13210. };
  13211. enum CrowdAgentState
  13212. {
  13213. CA_STATE_INVALID,
  13214. CA_STATE_WALKING,
  13215. CA_STATE_OFFMESH,
  13216. };
  13217. enum CrowdAgentTargetState
  13218. {
  13219. CA_TARGET_NONE,
  13220. CA_TARGET_FAILED,
  13221. CA_TARGET_VALID,
  13222. CA_TARGET_REQUESTING,
  13223. CA_TARGET_WAITINGFORQUEUE,
  13224. CA_TARGET_WAITINGFORPATH,
  13225. CA_TARGET_VELOCITY,
  13226. };
  13227. enum CubeMapFace
  13228. {
  13229. FACE_POSITIVE_X,
  13230. FACE_NEGATIVE_X,
  13231. FACE_POSITIVE_Y,
  13232. FACE_NEGATIVE_Y,
  13233. FACE_POSITIVE_Z,
  13234. FACE_NEGATIVE_Z,
  13235. };
  13236. enum CullMode
  13237. {
  13238. CULL_NONE,
  13239. CULL_CCW,
  13240. CULL_CW,
  13241. };
  13242. enum CursorShape
  13243. {
  13244. CS_NORMAL,
  13245. CS_IBEAM,
  13246. CS_CROSS,
  13247. CS_RESIZEVERTICAL,
  13248. CS_RESIZEDIAGONAL_TOPRIGHT,
  13249. CS_RESIZEHORIZONTAL,
  13250. CS_RESIZEDIAGONAL_TOPLEFT,
  13251. CS_RESIZE_ALL,
  13252. CS_ACCEPTDROP,
  13253. CS_REJECTDROP,
  13254. CS_BUSY,
  13255. CS_BUSY_ARROW,
  13256. };
  13257. enum DBAPI
  13258. {
  13259. DBAPI_SQLITE,
  13260. DBAPI_ODBC,
  13261. };
  13262. enum DumpMode
  13263. {
  13264. DOXYGEN,
  13265. C_HEADER,
  13266. };
  13267. enum EmitterType
  13268. {
  13269. EMITTER_SPHERE,
  13270. EMITTER_BOX,
  13271. };
  13272. enum EmitterType2D
  13273. {
  13274. EMITTER_TYPE_GRAVITY,
  13275. EMITTER_TYPE_RADIAL,
  13276. };
  13277. enum FaceCameraMode
  13278. {
  13279. FC_NONE,
  13280. FC_ROTATE_XYZ,
  13281. FC_ROTATE_Y,
  13282. FC_LOOKAT_XYZ,
  13283. FC_LOOKAT_Y,
  13284. FC_DIRECTION,
  13285. };
  13286. enum FileMode
  13287. {
  13288. FILE_READ,
  13289. FILE_WRITE,
  13290. FILE_READWRITE,
  13291. };
  13292. enum FillMode
  13293. {
  13294. FILL_SOLID,
  13295. FILL_WIREFRAME,
  13296. FILL_POINT,
  13297. };
  13298. enum FocusMode
  13299. {
  13300. FM_NOTFOCUSABLE,
  13301. FM_RESETFOCUS,
  13302. FM_FOCUSABLE,
  13303. FM_FOCUSABLE_DEFOCUSABLE,
  13304. };
  13305. enum HighlightMode
  13306. {
  13307. HM_NEVER,
  13308. HM_FOCUS,
  13309. HM_ALWAYS,
  13310. };
  13311. enum HorizontalAlignment
  13312. {
  13313. HA_LEFT,
  13314. HA_CENTER,
  13315. HA_RIGHT,
  13316. };
  13317. enum HttpRequestState
  13318. {
  13319. HTTP_INITIALIZING,
  13320. HTTP_ERROR,
  13321. HTTP_OPEN,
  13322. HTTP_CLOSED,
  13323. };
  13324. enum InterpMethod
  13325. {
  13326. IM_LINEAR,
  13327. IM_SPLINE,
  13328. };
  13329. enum InterpolationMode
  13330. {
  13331. BEZIER_CURVE,
  13332. CATMULL_ROM_CURVE,
  13333. LINEAR_CURVE,
  13334. CATMULL_ROM_FULL_CURVE,
  13335. };
  13336. enum Intersection
  13337. {
  13338. OUTSIDE,
  13339. INTERSECTS,
  13340. INSIDE,
  13341. };
  13342. enum JSONValueType
  13343. {
  13344. JSON_NULL,
  13345. JSON_BOOL,
  13346. JSON_NUMBER,
  13347. JSON_STRING,
  13348. JSON_ARRAY,
  13349. JSON_OBJECT,
  13350. };
  13351. enum LayoutMode
  13352. {
  13353. LM_FREE,
  13354. LM_HORIZONTAL,
  13355. LM_VERTICAL,
  13356. };
  13357. enum LightType
  13358. {
  13359. LIGHT_DIRECTIONAL,
  13360. LIGHT_SPOT,
  13361. LIGHT_POINT,
  13362. };
  13363. enum LoadMode
  13364. {
  13365. LOAD_RESOURCES_ONLY,
  13366. LOAD_SCENE,
  13367. LOAD_SCENE_AND_RESOURCES,
  13368. };
  13369. enum LoopMode2D
  13370. {
  13371. LM_DEFAULT,
  13372. LM_FORCE_LOOPED,
  13373. LM_FORCE_CLAMPED,
  13374. };
  13375. enum MouseMode
  13376. {
  13377. MM_ABSOLUTE,
  13378. MM_RELATIVE,
  13379. MM_WRAP,
  13380. MM_FREE,
  13381. };
  13382. enum NavigationPushiness
  13383. {
  13384. NAVIGATIONPUSHINESS_LOW,
  13385. NAVIGATIONPUSHINESS_MEDIUM,
  13386. NAVIGATIONPUSHINESS_HIGH,
  13387. };
  13388. enum NavigationQuality
  13389. {
  13390. NAVIGATIONQUALITY_LOW,
  13391. NAVIGATIONQUALITY_MEDIUM,
  13392. NAVIGATIONQUALITY_HIGH,
  13393. };
  13394. enum NavmeshPartitionType
  13395. {
  13396. NAVMESH_PARTITION_WATERSHED,
  13397. NAVMESH_PARTITION_MONOTONE,
  13398. };
  13399. enum Orientation
  13400. {
  13401. O_HORIZONTAL,
  13402. O_VERTICAL,
  13403. };
  13404. enum Orientation2D
  13405. {
  13406. O_ORTHOGONAL,
  13407. O_ISOMETRIC,
  13408. O_STAGGERED,
  13409. };
  13410. enum PassLightingMode
  13411. {
  13412. LIGHTING_UNLIT,
  13413. LIGHTING_PERVERTEX,
  13414. LIGHTING_PERPIXEL,
  13415. };
  13416. enum PrimitiveType
  13417. {
  13418. TRIANGLE_LIST,
  13419. LINE_LIST,
  13420. POINT_LIST,
  13421. TRIANGLE_STRIP,
  13422. LINE_STRIP,
  13423. TRIANGLE_FAN,
  13424. };
  13425. enum RayQueryLevel
  13426. {
  13427. RAY_AABB,
  13428. RAY_OBB,
  13429. RAY_TRIANGLE,
  13430. RAY_TRIANGLE_UV,
  13431. };
  13432. enum RenderCommandSortMode
  13433. {
  13434. SORT_FRONTTOBACK,
  13435. SORT_BACKTOFRONT,
  13436. };
  13437. enum RenderCommandType
  13438. {
  13439. CMD_NONE,
  13440. CMD_CLEAR,
  13441. CMD_SCENEPASS,
  13442. CMD_QUAD,
  13443. CMD_FORWARDLIGHTS,
  13444. CMD_LIGHTVOLUMES,
  13445. CMD_RENDERUI,
  13446. };
  13447. enum RenderSurfaceUpdateMode
  13448. {
  13449. SURFACE_MANUALUPDATE,
  13450. SURFACE_UPDATEVISIBLE,
  13451. SURFACE_UPDATEALWAYS,
  13452. };
  13453. enum RenderTargetSizeMode
  13454. {
  13455. SIZE_ABSOLUTE,
  13456. SIZE_VIEWPORTDIVISOR,
  13457. SIZE_VIEWPORTMULTIPLIER,
  13458. };
  13459. enum ShadowQuality
  13460. {
  13461. SHADOWQUALITY_SIMPLE_16BIT,
  13462. SHADOWQUALITY_SIMPLE_24BIT,
  13463. SHADOWQUALITY_PCF_16BIT,
  13464. SHADOWQUALITY_PCF_24BIT,
  13465. SHADOWQUALITY_VSM,
  13466. SHADOWQUALITY_BLUR_VSM,
  13467. };
  13468. enum ShapeType
  13469. {
  13470. SHAPE_BOX,
  13471. SHAPE_SPHERE,
  13472. SHAPE_STATICPLANE,
  13473. SHAPE_CYLINDER,
  13474. SHAPE_CAPSULE,
  13475. SHAPE_CONE,
  13476. SHAPE_TRIANGLEMESH,
  13477. SHAPE_CONVEXHULL,
  13478. SHAPE_TERRAIN,
  13479. };
  13480. enum TextEffect
  13481. {
  13482. TE_NONE,
  13483. TE_SHADOW,
  13484. TE_STROKE,
  13485. };
  13486. enum TextureAddressMode
  13487. {
  13488. ADDRESS_WRAP,
  13489. ADDRESS_MIRROR,
  13490. ADDRESS_CLAMP,
  13491. ADDRESS_BORDER,
  13492. };
  13493. enum TextureCoordinate
  13494. {
  13495. COORD_U,
  13496. COORD_V,
  13497. COORD_W,
  13498. };
  13499. enum TextureFilterMode
  13500. {
  13501. FILTER_NEAREST,
  13502. FILTER_BILINEAR,
  13503. FILTER_TRILINEAR,
  13504. FILTER_ANISOTROPIC,
  13505. FILTER_DEFAULT,
  13506. };
  13507. enum TextureUnit
  13508. {
  13509. TU_DIFFUSE,
  13510. TU_ALBEDOBUFFER,
  13511. TU_NORMAL,
  13512. TU_NORMALBUFFER,
  13513. TU_SPECULAR,
  13514. TU_EMISSIVE,
  13515. TU_ENVIRONMENT,
  13516. TU_LIGHTRAMP,
  13517. TU_LIGHTSHAPE,
  13518. TU_SHADOWMAP,
  13519. TU_CUSTOM1,
  13520. TU_CUSTOM2,
  13521. TU_VOLUMEMAP,
  13522. TU_FACESELECT,
  13523. TU_INDIRECTION,
  13524. TU_DEPTHBUFFER,
  13525. TU_LIGHTBUFFER,
  13526. TU_ZONE,
  13527. MAX_MATERIAL_TEXTURE_UNITS,
  13528. MAX_TEXTURE_UNITS,
  13529. };
  13530. enum TextureUsage
  13531. {
  13532. TEXTURE_STATIC,
  13533. TEXTURE_DYNAMIC,
  13534. TEXTURE_RENDERTARGET,
  13535. TEXTURE_DEPTHSTENCIL,
  13536. };
  13537. enum TileMapLayerType2D
  13538. {
  13539. LT_TILE_LAYER,
  13540. LT_OBJECT_GROUP,
  13541. LT_IMAGE_LAYER,
  13542. LT_INVALID,
  13543. };
  13544. enum TileObjectType2D
  13545. {
  13546. OT_RECTANGLE,
  13547. OT_ELLIPSE,
  13548. OT_POLYGON,
  13549. OT_POLYLINE,
  13550. OT_TILE,
  13551. OT_INVALID,
  13552. };
  13553. enum TransformSpace
  13554. {
  13555. TS_LOCAL,
  13556. TS_PARENT,
  13557. TS_WORLD,
  13558. };
  13559. enum TraversalMode
  13560. {
  13561. TM_BREADTH_FIRST,
  13562. TM_DEPTH_FIRST,
  13563. };
  13564. enum VariantType
  13565. {
  13566. VAR_NONE,
  13567. VAR_INT,
  13568. VAR_BOOL,
  13569. VAR_FLOAT,
  13570. VAR_VECTOR2,
  13571. VAR_VECTOR3,
  13572. VAR_VECTOR4,
  13573. VAR_QUATERNION,
  13574. VAR_COLOR,
  13575. VAR_STRING,
  13576. VAR_BUFFER,
  13577. VAR_VOIDPTR,
  13578. VAR_RESOURCEREF,
  13579. VAR_RESOURCEREFLIST,
  13580. VAR_VARIANTVECTOR,
  13581. VAR_VARIANTMAP,
  13582. VAR_INTRECT,
  13583. VAR_INTVECTOR2,
  13584. VAR_PTR,
  13585. VAR_MATRIX3,
  13586. VAR_MATRIX3X4,
  13587. VAR_MATRIX4,
  13588. VAR_DOUBLE,
  13589. VAR_STRINGVECTOR,
  13590. };
  13591. enum VerticalAlignment
  13592. {
  13593. VA_TOP,
  13594. VA_CENTER,
  13595. VA_BOTTOM,
  13596. };
  13597. enum WrapMode
  13598. {
  13599. WM_LOOP,
  13600. WM_ONCE,
  13601. WM_CLAMP,
  13602. };
  13603. // Global functions
  13604. float Abs(float);
  13605. float Acos(float);
  13606. String AddTrailingSlash(const String&);
  13607. float Asin(float);
  13608. float Atan(float);
  13609. float Atan2(float, float);
  13610. float Ceil(float);
  13611. float Clamp(float, float, float);
  13612. int Clamp(int, int, int);
  13613. void ClearDelayedExecute(const String& = String ( ));
  13614. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  13615. float Cos(float);
  13616. uint CountSetBits(uint);
  13617. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  13618. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  13619. bool Equals(float, float);
  13620. void ErrorDialog(const String&, const String&);
  13621. float Floor(float);
  13622. uint GetAlphaFormat();
  13623. Array<String> GetArguments();
  13624. String GetConsoleInput();
  13625. uint GetDepthStencilFormat();
  13626. Object GetEventSender();
  13627. String GetExtension(const String&, bool = true);
  13628. String GetFileName(const String&);
  13629. String GetFileNameAndExtension(const String&, bool = false);
  13630. String GetFileSizeString(uint64);
  13631. uint GetFloat16Format();
  13632. uint GetFloat32Format();
  13633. uint GetFormat(const String&);
  13634. String GetInternalPath(const String&);
  13635. uint GetLinearDepthFormat();
  13636. uint GetLuminanceAlphaFormat();
  13637. uint GetLuminanceFormat();
  13638. uint GetMaxBones();
  13639. String GetMiniDumpDir();
  13640. uint GetNumLogicalCPUs();
  13641. uint GetNumPhysicalCPUs();
  13642. Array<String> GetObjectCategories();
  13643. Array<String> GetObjectsByCategory(const String&);
  13644. String GetParentPath(const String&);
  13645. String GetPath(const String&);
  13646. String GetPlatform();
  13647. uint GetRG16Format();
  13648. uint GetRGBA16Format();
  13649. uint GetRGBAFloat16Format();
  13650. uint GetRGBAFloat32Format();
  13651. uint GetRGBAFormat();
  13652. uint GetRGBFormat();
  13653. uint GetRGFloat16Format();
  13654. uint GetRGFloat32Format();
  13655. uint GetRandomSeed();
  13656. uint GetReadableDepthFormat();
  13657. String GetTextureUnitName(TextureUnit);
  13658. bool HasSubscribedToEvent(Object, const String&);
  13659. bool HasSubscribedToEvent(const String&);
  13660. bool IsAbsolutePath(const String&);
  13661. bool IsAlpha(uint);
  13662. bool IsDigit(uint);
  13663. bool IsNaN(float);
  13664. bool IsPowerOfTwo(uint);
  13665. String Join(Array<String>&, const String&);
  13666. float Lerp(float, float, float);
  13667. void MarkNetworkUpdate();
  13668. float Max(float, float);
  13669. int Max(int, int);
  13670. float Min(float, float);
  13671. int Min(int, int);
  13672. float Mod(float, float);
  13673. uint NextPowerOfTwo(uint);
  13674. void OpenConsoleWindow();
  13675. float Pow(float, float);
  13676. void Print(bool, bool = false);
  13677. void Print(const String&, bool = false);
  13678. void Print(const Variant&, bool = false);
  13679. void Print(float, bool = false);
  13680. void Print(int, bool = false);
  13681. void Print(uint, bool = false);
  13682. void PrintCallStack(bool = false);
  13683. float Random();
  13684. float Random(float);
  13685. float Random(float, float);
  13686. int RandomInt();
  13687. int RandomInt(int);
  13688. int RandomInt(int, int);
  13689. float RandomNormal(float, float);
  13690. void Remove();
  13691. String RemoveTrailingSlash(const String&);
  13692. String ReplaceExtension(const String&, const String&);
  13693. uint SDBMHash(uint, uint8);
  13694. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13695. void SetMiniDumpDir(const String&);
  13696. void SetRandomSeed(uint);
  13697. float Sign(float);
  13698. float Sin(float);
  13699. float SmoothStep(float, float, float);
  13700. float Sqrt(float);
  13701. const String& GetTypeName(StringHash);
  13702. void SubscribeToEvent(Object, const String&, const String&);
  13703. void SubscribeToEvent(const String&, const String&);
  13704. float Tan(float);
  13705. uint ToLower(uint);
  13706. String ToStringHex(int);
  13707. uint ToUpper(uint);
  13708. void UnsubscribeFromAllEvents();
  13709. void UnsubscribeFromAllEventsExcept(Array<String>);
  13710. void UnsubscribeFromEvent(Object, const String&);
  13711. void UnsubscribeFromEvent(const String&);
  13712. void UnsubscribeFromEvents(Object);
  13713. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13714. // Global properties
  13715. DBAPI DBAPI;
  13716. Audio audio;
  13717. ResourceCache cache;
  13718. Console console;
  13719. Database database;
  13720. DebugHud debugHud;
  13721. DebugRenderer debugRenderer;
  13722. Engine engine;
  13723. FileSystem fileSystem;
  13724. Graphics graphics;
  13725. Input input;
  13726. Localization localization;
  13727. Log log;
  13728. Network network;
  13729. Node node;
  13730. Octree octree;
  13731. PhysicsWorld physicsWorld;
  13732. PhysicsWorld2D physicsWorld2D;
  13733. Renderer renderer;
  13734. ResourceCache resourceCache;
  13735. Scene scene;
  13736. Script script;
  13737. ScriptFile scriptFile;
  13738. ScriptInstance self;
  13739. Time time;
  13740. UI ui;
  13741. // Global constants
  13742. uint AM_COMPONENTID;
  13743. uint AM_DEFAULT;
  13744. uint AM_FILE;
  13745. uint AM_LATESTDATA;
  13746. uint AM_NET;
  13747. uint AM_NODEID;
  13748. uint AM_NODEIDVECTOR;
  13749. uint AM_NOEDIT;
  13750. Color BLACK;
  13751. Color BLUE;
  13752. uint8 CHANNEL_POSITION;
  13753. uint8 CHANNEL_ROTATION;
  13754. uint8 CHANNEL_SCALE;
  13755. uint CLEAR_COLOR;
  13756. uint CLEAR_DEPTH;
  13757. uint CLEAR_STENCIL;
  13758. int CONTROLLER_AXIS_LEFTX;
  13759. int CONTROLLER_AXIS_LEFTY;
  13760. int CONTROLLER_AXIS_RIGHTX;
  13761. int CONTROLLER_AXIS_RIGHTY;
  13762. int CONTROLLER_AXIS_TRIGGERLEFT;
  13763. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13764. int CONTROLLER_BUTTON_A;
  13765. int CONTROLLER_BUTTON_B;
  13766. int CONTROLLER_BUTTON_BACK;
  13767. int CONTROLLER_BUTTON_DPAD_DOWN;
  13768. int CONTROLLER_BUTTON_DPAD_LEFT;
  13769. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13770. int CONTROLLER_BUTTON_DPAD_UP;
  13771. int CONTROLLER_BUTTON_GUIDE;
  13772. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13773. int CONTROLLER_BUTTON_LEFTSTICK;
  13774. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13775. int CONTROLLER_BUTTON_RIGHTSTICK;
  13776. int CONTROLLER_BUTTON_START;
  13777. int CONTROLLER_BUTTON_X;
  13778. int CONTROLLER_BUTTON_Y;
  13779. Color CYAN;
  13780. uint DD_DISABLED;
  13781. uint DD_SOURCE;
  13782. uint DD_SOURCE_AND_TARGET;
  13783. uint DD_TARGET;
  13784. uint DEBUGHUD_SHOW_ALL;
  13785. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13786. uint DEBUGHUD_SHOW_MEMORY;
  13787. uint DEBUGHUD_SHOW_MODE;
  13788. uint DEBUGHUD_SHOW_NONE;
  13789. uint DEBUGHUD_SHOW_PROFILER;
  13790. uint DEBUGHUD_SHOW_STATS;
  13791. uint DEFAULT_LIGHTMASK;
  13792. uint DEFAULT_VIEWMASK;
  13793. uint DRAWABLE_ANY;
  13794. uint DRAWABLE_GEOMETRY;
  13795. uint DRAWABLE_GEOMETRY2D;
  13796. uint DRAWABLE_LIGHT;
  13797. uint DRAWABLE_ZONE;
  13798. uint FIRST_LOCAL_ID;
  13799. uint FIRST_REPLICATED_ID;
  13800. Color GRAY;
  13801. Color GREEN;
  13802. int HAT_CENTER;
  13803. int HAT_DOWN;
  13804. int HAT_LEFT;
  13805. int HAT_RIGHT;
  13806. int HAT_UP;
  13807. int KEY_0;
  13808. int KEY_1;
  13809. int KEY_2;
  13810. int KEY_3;
  13811. int KEY_4;
  13812. int KEY_5;
  13813. int KEY_6;
  13814. int KEY_7;
  13815. int KEY_8;
  13816. int KEY_9;
  13817. int KEY_A;
  13818. int KEY_ALT;
  13819. int KEY_APPLICATION;
  13820. int KEY_B;
  13821. int KEY_BACKSPACE;
  13822. int KEY_C;
  13823. int KEY_CAPSLOCK;
  13824. int KEY_CTRL;
  13825. int KEY_D;
  13826. int KEY_DELETE;
  13827. int KEY_DOWN;
  13828. int KEY_E;
  13829. int KEY_END;
  13830. int KEY_ESC;
  13831. int KEY_F;
  13832. int KEY_F1;
  13833. int KEY_F10;
  13834. int KEY_F11;
  13835. int KEY_F12;
  13836. int KEY_F13;
  13837. int KEY_F14;
  13838. int KEY_F15;
  13839. int KEY_F16;
  13840. int KEY_F17;
  13841. int KEY_F18;
  13842. int KEY_F19;
  13843. int KEY_F2;
  13844. int KEY_F20;
  13845. int KEY_F21;
  13846. int KEY_F22;
  13847. int KEY_F23;
  13848. int KEY_F24;
  13849. int KEY_F3;
  13850. int KEY_F4;
  13851. int KEY_F5;
  13852. int KEY_F6;
  13853. int KEY_F7;
  13854. int KEY_F8;
  13855. int KEY_F9;
  13856. int KEY_G;
  13857. int KEY_GUI;
  13858. int KEY_H;
  13859. int KEY_HOME;
  13860. int KEY_I;
  13861. int KEY_INSERT;
  13862. int KEY_J;
  13863. int KEY_K;
  13864. int KEY_KP_0;
  13865. int KEY_KP_1;
  13866. int KEY_KP_2;
  13867. int KEY_KP_3;
  13868. int KEY_KP_4;
  13869. int KEY_KP_5;
  13870. int KEY_KP_6;
  13871. int KEY_KP_7;
  13872. int KEY_KP_8;
  13873. int KEY_KP_9;
  13874. int KEY_KP_DIVIDE;
  13875. int KEY_KP_ENTER;
  13876. int KEY_KP_MINUS;
  13877. int KEY_KP_MULTIPLY;
  13878. int KEY_KP_PERIOD;
  13879. int KEY_KP_PLUS;
  13880. int KEY_L;
  13881. int KEY_LALT;
  13882. int KEY_LCTRL;
  13883. int KEY_LEFT;
  13884. int KEY_LGUI;
  13885. int KEY_LSHIFT;
  13886. int KEY_M;
  13887. int KEY_N;
  13888. int KEY_NUMLOCKCLEAR;
  13889. int KEY_O;
  13890. int KEY_P;
  13891. int KEY_PAGEDOWN;
  13892. int KEY_PAGEUP;
  13893. int KEY_PAUSE;
  13894. int KEY_PRINTSCREEN;
  13895. int KEY_Q;
  13896. int KEY_R;
  13897. int KEY_RALT;
  13898. int KEY_RCTRL;
  13899. int KEY_RETURN;
  13900. int KEY_RETURN2;
  13901. int KEY_RGUI;
  13902. int KEY_RIGHT;
  13903. int KEY_RSHIFT;
  13904. int KEY_S;
  13905. int KEY_SCROLLLOCK;
  13906. int KEY_SELECT;
  13907. int KEY_SHIFT;
  13908. int KEY_SPACE;
  13909. int KEY_T;
  13910. int KEY_TAB;
  13911. int KEY_U;
  13912. int KEY_UP;
  13913. int KEY_V;
  13914. int KEY_W;
  13915. int KEY_X;
  13916. int KEY_Y;
  13917. int KEY_Z;
  13918. uint LAST_LOCAL_ID;
  13919. uint LAST_REPLICATED_ID;
  13920. int LOG_DEBUG;
  13921. int LOG_ERROR;
  13922. int LOG_INFO;
  13923. int LOG_NONE;
  13924. int LOG_WARNING;
  13925. Color MAGENTA;
  13926. uint MASK_BLENDINDICES;
  13927. uint MASK_BLENDWEIGHTS;
  13928. uint MASK_COLOR;
  13929. uint MASK_CUBETEXCOORD1;
  13930. uint MASK_CUBETEXCOORD2;
  13931. uint MASK_DEFAULT;
  13932. uint MASK_INSTANCEMATRIX1;
  13933. uint MASK_INSTANCEMATRIX2;
  13934. uint MASK_INSTANCEMATRIX3;
  13935. uint MASK_NONE;
  13936. uint MASK_NORMAL;
  13937. uint MASK_OBJECTINDEX;
  13938. uint MASK_POSITION;
  13939. uint MASK_TANGENT;
  13940. uint MASK_TEXCOORD1;
  13941. uint MASK_TEXCOORD2;
  13942. int MOUSEB_LEFT;
  13943. int MOUSEB_MIDDLE;
  13944. int MOUSEB_RIGHT;
  13945. float M_DEGTORAD;
  13946. float M_DEGTORAD_2;
  13947. float M_EPSILON;
  13948. float M_HALF_PI;
  13949. float M_INFINITY;
  13950. float M_LARGE_EPSILON;
  13951. float M_LARGE_VALUE;
  13952. int M_MAX_INT;
  13953. uint M_MAX_UNSIGNED;
  13954. int M_MIN_INT;
  13955. uint M_MIN_UNSIGNED;
  13956. float M_PI;
  13957. float M_RADTODEG;
  13958. float PIXEL_SIZE;
  13959. int QUALITY_HIGH;
  13960. int QUALITY_LOW;
  13961. int QUALITY_MAX;
  13962. int QUALITY_MEDIUM;
  13963. int QUAL_ALT;
  13964. int QUAL_ANY;
  13965. int QUAL_CTRL;
  13966. int QUAL_SHIFT;
  13967. Color RED;
  13968. int SCANCODE_0;
  13969. int SCANCODE_1;
  13970. int SCANCODE_2;
  13971. int SCANCODE_3;
  13972. int SCANCODE_4;
  13973. int SCANCODE_5;
  13974. int SCANCODE_6;
  13975. int SCANCODE_7;
  13976. int SCANCODE_8;
  13977. int SCANCODE_9;
  13978. int SCANCODE_A;
  13979. int SCANCODE_AC_BACK;
  13980. int SCANCODE_AC_BOOKMARKS;
  13981. int SCANCODE_AC_FORWARD;
  13982. int SCANCODE_AC_HOME;
  13983. int SCANCODE_AC_REFRESH;
  13984. int SCANCODE_AC_SEARCH;
  13985. int SCANCODE_AC_STOP;
  13986. int SCANCODE_AGAIN;
  13987. int SCANCODE_ALT;
  13988. int SCANCODE_ALTERASE;
  13989. int SCANCODE_APOSTROPHE;
  13990. int SCANCODE_APP1;
  13991. int SCANCODE_APP2;
  13992. int SCANCODE_APPLICATION;
  13993. int SCANCODE_AUDIOMUTE;
  13994. int SCANCODE_AUDIONEXT;
  13995. int SCANCODE_AUDIOPLAY;
  13996. int SCANCODE_AUDIOPREV;
  13997. int SCANCODE_AUDIOSTOP;
  13998. int SCANCODE_B;
  13999. int SCANCODE_BACKSLASH;
  14000. int SCANCODE_BACKSPACE;
  14001. int SCANCODE_BRIGHTNESSDOWN;
  14002. int SCANCODE_BRIGHTNESSUP;
  14003. int SCANCODE_C;
  14004. int SCANCODE_CALCULATOR;
  14005. int SCANCODE_CANCEL;
  14006. int SCANCODE_CAPSLOCK;
  14007. int SCANCODE_CLEAR;
  14008. int SCANCODE_CLEARAGAIN;
  14009. int SCANCODE_COMMA;
  14010. int SCANCODE_COMPUTER;
  14011. int SCANCODE_COPY;
  14012. int SCANCODE_CRSEL;
  14013. int SCANCODE_CTRL;
  14014. int SCANCODE_CURRENCYSUBUNIT;
  14015. int SCANCODE_CURRENCYUNIT;
  14016. int SCANCODE_CUT;
  14017. int SCANCODE_D;
  14018. int SCANCODE_DECIMALSEPARATOR;
  14019. int SCANCODE_DELETE;
  14020. int SCANCODE_DISPLAYSWITCH;
  14021. int SCANCODE_DOWN;
  14022. int SCANCODE_E;
  14023. int SCANCODE_EJECT;
  14024. int SCANCODE_END;
  14025. int SCANCODE_EQUALS;
  14026. int SCANCODE_ESCAPE;
  14027. int SCANCODE_EXECUTE;
  14028. int SCANCODE_EXSEL;
  14029. int SCANCODE_F;
  14030. int SCANCODE_F1;
  14031. int SCANCODE_F10;
  14032. int SCANCODE_F11;
  14033. int SCANCODE_F12;
  14034. int SCANCODE_F13;
  14035. int SCANCODE_F14;
  14036. int SCANCODE_F15;
  14037. int SCANCODE_F16;
  14038. int SCANCODE_F17;
  14039. int SCANCODE_F18;
  14040. int SCANCODE_F19;
  14041. int SCANCODE_F2;
  14042. int SCANCODE_F20;
  14043. int SCANCODE_F21;
  14044. int SCANCODE_F22;
  14045. int SCANCODE_F23;
  14046. int SCANCODE_F24;
  14047. int SCANCODE_F3;
  14048. int SCANCODE_F4;
  14049. int SCANCODE_F5;
  14050. int SCANCODE_F6;
  14051. int SCANCODE_F7;
  14052. int SCANCODE_F8;
  14053. int SCANCODE_F9;
  14054. int SCANCODE_FIND;
  14055. int SCANCODE_G;
  14056. int SCANCODE_GRAVE;
  14057. int SCANCODE_GUI;
  14058. int SCANCODE_H;
  14059. int SCANCODE_HELP;
  14060. int SCANCODE_HOME;
  14061. int SCANCODE_I;
  14062. int SCANCODE_INSERT;
  14063. int SCANCODE_INTERNATIONAL1;
  14064. int SCANCODE_INTERNATIONAL2;
  14065. int SCANCODE_INTERNATIONAL3;
  14066. int SCANCODE_INTERNATIONAL4;
  14067. int SCANCODE_INTERNATIONAL5;
  14068. int SCANCODE_INTERNATIONAL6;
  14069. int SCANCODE_INTERNATIONAL7;
  14070. int SCANCODE_INTERNATIONAL8;
  14071. int SCANCODE_INTERNATIONAL9;
  14072. int SCANCODE_J;
  14073. int SCANCODE_K;
  14074. int SCANCODE_KBDILLUMDOWN;
  14075. int SCANCODE_KBDILLUMTOGGLE;
  14076. int SCANCODE_KBDILLUMUP;
  14077. int SCANCODE_KP_0;
  14078. int SCANCODE_KP_00;
  14079. int SCANCODE_KP_000;
  14080. int SCANCODE_KP_1;
  14081. int SCANCODE_KP_2;
  14082. int SCANCODE_KP_3;
  14083. int SCANCODE_KP_4;
  14084. int SCANCODE_KP_5;
  14085. int SCANCODE_KP_6;
  14086. int SCANCODE_KP_7;
  14087. int SCANCODE_KP_8;
  14088. int SCANCODE_KP_9;
  14089. int SCANCODE_KP_A;
  14090. int SCANCODE_KP_AMPERSAND;
  14091. int SCANCODE_KP_AT;
  14092. int SCANCODE_KP_B;
  14093. int SCANCODE_KP_BACKSPACE;
  14094. int SCANCODE_KP_BINARY;
  14095. int SCANCODE_KP_C;
  14096. int SCANCODE_KP_CLEAR;
  14097. int SCANCODE_KP_CLEARENTRY;
  14098. int SCANCODE_KP_COLON;
  14099. int SCANCODE_KP_COMMA;
  14100. int SCANCODE_KP_D;
  14101. int SCANCODE_KP_DBLAMPERSAND;
  14102. int SCANCODE_KP_DBLVERTICALBAR;
  14103. int SCANCODE_KP_DECIMAL;
  14104. int SCANCODE_KP_DIVIDE;
  14105. int SCANCODE_KP_E;
  14106. int SCANCODE_KP_ENTER;
  14107. int SCANCODE_KP_EQUALS;
  14108. int SCANCODE_KP_EQUALSAS400;
  14109. int SCANCODE_KP_EXCLAM;
  14110. int SCANCODE_KP_F;
  14111. int SCANCODE_KP_GREATER;
  14112. int SCANCODE_KP_HASH;
  14113. int SCANCODE_KP_HEXADECIMAL;
  14114. int SCANCODE_KP_LEFTBRACE;
  14115. int SCANCODE_KP_LEFTPAREN;
  14116. int SCANCODE_KP_LESS;
  14117. int SCANCODE_KP_MEMADD;
  14118. int SCANCODE_KP_MEMCLEAR;
  14119. int SCANCODE_KP_MEMDIVIDE;
  14120. int SCANCODE_KP_MEMMULTIPLY;
  14121. int SCANCODE_KP_MEMRECALL;
  14122. int SCANCODE_KP_MEMSTORE;
  14123. int SCANCODE_KP_MEMSUBTRACT;
  14124. int SCANCODE_KP_MINUS;
  14125. int SCANCODE_KP_MULTIPLY;
  14126. int SCANCODE_KP_OCTAL;
  14127. int SCANCODE_KP_PERCENT;
  14128. int SCANCODE_KP_PERIOD;
  14129. int SCANCODE_KP_PLUS;
  14130. int SCANCODE_KP_PLUSMINUS;
  14131. int SCANCODE_KP_POWER;
  14132. int SCANCODE_KP_RIGHTBRACE;
  14133. int SCANCODE_KP_RIGHTPAREN;
  14134. int SCANCODE_KP_SPACE;
  14135. int SCANCODE_KP_TAB;
  14136. int SCANCODE_KP_VERTICALBAR;
  14137. int SCANCODE_KP_XOR;
  14138. int SCANCODE_L;
  14139. int SCANCODE_LALT;
  14140. int SCANCODE_LANG1;
  14141. int SCANCODE_LANG2;
  14142. int SCANCODE_LANG3;
  14143. int SCANCODE_LANG4;
  14144. int SCANCODE_LANG5;
  14145. int SCANCODE_LANG6;
  14146. int SCANCODE_LANG7;
  14147. int SCANCODE_LANG8;
  14148. int SCANCODE_LANG9;
  14149. int SCANCODE_LCTRL;
  14150. int SCANCODE_LEFT;
  14151. int SCANCODE_LEFTBRACKET;
  14152. int SCANCODE_LGUI;
  14153. int SCANCODE_LSHIFT;
  14154. int SCANCODE_M;
  14155. int SCANCODE_MAIL;
  14156. int SCANCODE_MEDIASELECT;
  14157. int SCANCODE_MENU;
  14158. int SCANCODE_MINUS;
  14159. int SCANCODE_MODE;
  14160. int SCANCODE_MUTE;
  14161. int SCANCODE_N;
  14162. int SCANCODE_NONUSBACKSLASH;
  14163. int SCANCODE_NONUSHASH;
  14164. int SCANCODE_NUMLOCKCLEAR;
  14165. int SCANCODE_O;
  14166. int SCANCODE_OPER;
  14167. int SCANCODE_OUT;
  14168. int SCANCODE_P;
  14169. int SCANCODE_PAGEDOWN;
  14170. int SCANCODE_PAGEUP;
  14171. int SCANCODE_PASTE;
  14172. int SCANCODE_PAUSE;
  14173. int SCANCODE_PERIOD;
  14174. int SCANCODE_POWER;
  14175. int SCANCODE_PRINTSCREEN;
  14176. int SCANCODE_PRIOR;
  14177. int SCANCODE_Q;
  14178. int SCANCODE_R;
  14179. int SCANCODE_RALT;
  14180. int SCANCODE_RCTRL;
  14181. int SCANCODE_RETURN;
  14182. int SCANCODE_RETURN2;
  14183. int SCANCODE_RGUI;
  14184. int SCANCODE_RIGHT;
  14185. int SCANCODE_RIGHTBRACKET;
  14186. int SCANCODE_RSHIFT;
  14187. int SCANCODE_S;
  14188. int SCANCODE_SCROLLLOCK;
  14189. int SCANCODE_SELECT;
  14190. int SCANCODE_SEMICOLON;
  14191. int SCANCODE_SEPARATOR;
  14192. int SCANCODE_SHIFT;
  14193. int SCANCODE_SLASH;
  14194. int SCANCODE_SLEEP;
  14195. int SCANCODE_SPACE;
  14196. int SCANCODE_STOP;
  14197. int SCANCODE_SYSREQ;
  14198. int SCANCODE_T;
  14199. int SCANCODE_TAB;
  14200. int SCANCODE_THOUSANDSSEPARATOR;
  14201. int SCANCODE_U;
  14202. int SCANCODE_UNDO;
  14203. int SCANCODE_UNKNOWN;
  14204. int SCANCODE_UP;
  14205. int SCANCODE_V;
  14206. int SCANCODE_VOLUMEDOWN;
  14207. int SCANCODE_VOLUMEUP;
  14208. int SCANCODE_W;
  14209. int SCANCODE_WWW;
  14210. int SCANCODE_X;
  14211. int SCANCODE_Y;
  14212. int SCANCODE_Z;
  14213. uint SCAN_DIRS;
  14214. uint SCAN_FILES;
  14215. uint SCAN_HIDDEN;
  14216. String SOUND_AMBIENT;
  14217. String SOUND_EFFECT;
  14218. String SOUND_MASTER;
  14219. String SOUND_MUSIC;
  14220. String SOUND_VOICE;
  14221. Color TRANSPARENT;
  14222. uint VO_DISABLE_OCCLUSION;
  14223. uint VO_DISABLE_SHADOWS;
  14224. uint VO_LOW_MATERIAL_QUALITY;
  14225. uint VO_NONE;
  14226. Color WHITE;
  14227. Color YELLOW;
  14228. VariantMap globalVars;