AngelScriptAPI.h 300 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911
  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. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18. Variant GetAttributeDefault(const String&) const;
  19. bool Load(File, bool = false);
  20. bool Load(VectorBuffer&, bool = false);
  21. bool LoadXML(const XMLElement&, bool = false);
  22. void MarkNetworkUpdate() const;
  23. void RemoveInstanceDefault();
  24. void ResetToDefault();
  25. bool Save(File) const;
  26. bool Save(VectorBuffer&) const;
  27. bool SaveXML(XMLElement&) const;
  28. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  29. bool SetAttribute(const String&, const Variant&);
  30. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  31. void SetAttributeAnimationSpeed(const String&, float);
  32. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33. // Properties:
  34. bool animationEnabled;
  35. /* readonly */
  36. Array<Variant> attributeDefaults;
  37. /* readonly */
  38. Array<AttributeInfo> attributeInfos;
  39. Array<Variant> attributes;
  40. /* readonly */
  41. StringHash baseType;
  42. /* readonly */
  43. String category;
  44. /* readonly */
  45. uint numAttributes;
  46. ObjectAnimation objectAnimation;
  47. /* readonly */
  48. int refs;
  49. bool temporary;
  50. /* readonly */
  51. StringHash type;
  52. /* readonly */
  53. String typeName;
  54. /* readonly */
  55. int weakRefs;
  56. };
  57. class AnimatedModel
  58. {
  59. // Methods:
  60. AnimationState AddAnimationState(Animation);
  61. void ApplyAttributes();
  62. void ApplyMaterialList(const String& = String ( ));
  63. void DrawDebugGeometry(DebugRenderer, bool);
  64. AnimationState GetAnimationState(Animation) const;
  65. AnimationState GetAnimationState(uint) const;
  66. Variant GetAttribute(const String&) const;
  67. ValueAnimation GetAttributeAnimation(const String&) const;
  68. float GetAttributeAnimationSpeed(const String&) const;
  69. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  70. Variant GetAttributeDefault(const String&) const;
  71. float GetMorphWeight(uint) const;
  72. bool IsInView(Camera) const;
  73. bool Load(File, bool = false);
  74. bool Load(VectorBuffer&, bool = false);
  75. bool LoadXML(const XMLElement&, bool = false);
  76. void MarkNetworkUpdate() const;
  77. void Remove();
  78. void RemoveAllAnimationStates();
  79. void RemoveAnimationState(Animation);
  80. void RemoveAnimationState(AnimationState);
  81. void RemoveAnimationState(const String&);
  82. void RemoveAnimationState(uint);
  83. void RemoveInstanceDefault();
  84. void ResetMorphWeights();
  85. void ResetToDefault();
  86. bool Save(File) const;
  87. bool Save(VectorBuffer&) const;
  88. bool SaveXML(XMLElement&) const;
  89. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  90. bool SetAttribute(const String&, const Variant&);
  91. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  92. void SetAttributeAnimationSpeed(const String&, float);
  93. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  94. void SetMorphWeight(uint, float);
  95. // Properties:
  96. bool animationEnabled;
  97. float animationLodBias;
  98. /* readonly */
  99. Array<AnimationState> animationStates;
  100. /* readonly */
  101. Array<Variant> attributeDefaults;
  102. /* readonly */
  103. Array<AttributeInfo> attributeInfos;
  104. Array<Variant> attributes;
  105. /* readonly */
  106. StringHash baseType;
  107. /* readonly */
  108. BoundingBox boundingBox;
  109. bool castShadows;
  110. /* readonly */
  111. String category;
  112. float drawDistance;
  113. bool enabled;
  114. /* readonly */
  115. bool enabledEffective;
  116. /* readonly */
  117. uint id;
  118. /* readonly */
  119. bool inView;
  120. uint lightMask;
  121. float lodBias;
  122. /* writeonly */
  123. Material material;
  124. Array<Material> materials;
  125. uint maxLights;
  126. Model model;
  127. /* readonly */
  128. Array<String> morphNames;
  129. Array<float> morphWeights;
  130. /* readonly */
  131. Node node;
  132. /* readonly */
  133. uint numAnimationStates;
  134. /* readonly */
  135. uint numAttributes;
  136. /* readonly */
  137. uint numGeometries;
  138. /* readonly */
  139. uint numMorphs;
  140. ObjectAnimation objectAnimation;
  141. bool occludee;
  142. bool occluder;
  143. /* readonly */
  144. int refs;
  145. float shadowDistance;
  146. uint shadowMask;
  147. /* readonly */
  148. Skeleton skeleton;
  149. bool temporary;
  150. /* readonly */
  151. StringHash type;
  152. /* readonly */
  153. String typeName;
  154. bool updateInvisible;
  155. uint viewMask;
  156. /* readonly */
  157. int weakRefs;
  158. /* readonly */
  159. BoundingBox worldBoundingBox;
  160. /* readonly */
  161. Zone zone;
  162. uint zoneMask;
  163. };
  164. class AnimatedSprite2D
  165. {
  166. // Methods:
  167. void ApplyAttributes();
  168. void DrawDebugGeometry(DebugRenderer, bool);
  169. Variant GetAttribute(const String&) const;
  170. ValueAnimation GetAttributeAnimation(const String&) const;
  171. float GetAttributeAnimationSpeed(const String&) const;
  172. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  173. Variant GetAttributeDefault(const String&) const;
  174. bool IsInView(Camera) const;
  175. bool Load(File, bool = false);
  176. bool Load(VectorBuffer&, bool = false);
  177. bool LoadXML(const XMLElement&, bool = false);
  178. void MarkNetworkUpdate() const;
  179. void Remove();
  180. void RemoveInstanceDefault();
  181. void ResetToDefault();
  182. bool Save(File) const;
  183. bool Save(VectorBuffer&) const;
  184. bool SaveXML(XMLElement&) const;
  185. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  186. void SetAnimation(AnimationSet2D, const String&, LoopMode2D = LM_DEFAULT);
  187. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  188. bool SetAttribute(const String&, const Variant&);
  189. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  190. void SetAttributeAnimationSpeed(const String&, float);
  191. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  192. void SetFlip(bool, bool);
  193. // Properties:
  194. String animation;
  195. bool animationEnabled;
  196. AnimationSet2D animationSet;
  197. /* readonly */
  198. Array<Variant> attributeDefaults;
  199. /* readonly */
  200. Array<AttributeInfo> attributeInfos;
  201. Array<Variant> attributes;
  202. /* readonly */
  203. StringHash baseType;
  204. BlendMode blendMode;
  205. /* readonly */
  206. BoundingBox boundingBox;
  207. bool castShadows;
  208. /* readonly */
  209. String category;
  210. Color color;
  211. float drawDistance;
  212. bool enabled;
  213. /* readonly */
  214. bool enabledEffective;
  215. bool flipX;
  216. bool flipY;
  217. /* readonly */
  218. uint id;
  219. /* readonly */
  220. bool inView;
  221. int layer;
  222. uint lightMask;
  223. float lodBias;
  224. LoopMode2D loopMode;
  225. uint maxLights;
  226. /* readonly */
  227. Node node;
  228. /* readonly */
  229. uint numAttributes;
  230. ObjectAnimation objectAnimation;
  231. bool occludee;
  232. bool occluder;
  233. int orderInLayer;
  234. /* readonly */
  235. int refs;
  236. float shadowDistance;
  237. uint shadowMask;
  238. float speed;
  239. Sprite2D sprite;
  240. bool temporary;
  241. Texture2D texture;
  242. /* readonly */
  243. StringHash type;
  244. /* readonly */
  245. String typeName;
  246. uint viewMask;
  247. /* readonly */
  248. int weakRefs;
  249. /* readonly */
  250. BoundingBox worldBoundingBox;
  251. uint zoneMask;
  252. };
  253. class Animation
  254. {
  255. // Methods:
  256. void AddTrigger(float, bool, const Variant&);
  257. bool Load(File);
  258. bool Load(VectorBuffer&);
  259. void RemoveAllTriggers();
  260. void RemoveTrigger(uint);
  261. bool Save(File) const;
  262. bool Save(VectorBuffer&) const;
  263. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  264. // Properties:
  265. /* readonly */
  266. String animationName;
  267. /* readonly */
  268. StringHash baseType;
  269. /* readonly */
  270. String category;
  271. /* readonly */
  272. float length;
  273. /* readonly */
  274. uint memoryUse;
  275. String name;
  276. /* readonly */
  277. uint numTracks;
  278. uint numTriggers;
  279. /* readonly */
  280. int refs;
  281. /* readonly */
  282. Array<AnimationTriggerPoint> triggers;
  283. /* readonly */
  284. StringHash type;
  285. /* readonly */
  286. String typeName;
  287. /* readonly */
  288. uint useTimer;
  289. /* readonly */
  290. int weakRefs;
  291. };
  292. class Animation2D
  293. {
  294. // Properties:
  295. /* readonly */
  296. float length;
  297. /* readonly */
  298. bool looped;
  299. /* readonly */
  300. String name;
  301. /* readonly */
  302. int refs;
  303. /* readonly */
  304. int weakRefs;
  305. };
  306. class AnimationController
  307. {
  308. // Methods:
  309. void ApplyAttributes();
  310. void DrawDebugGeometry(DebugRenderer, bool);
  311. bool Fade(const String&, float, float);
  312. bool FadeOthers(const String&, float, float);
  313. AnimationState GetAnimationState(StringHash) const;
  314. AnimationState GetAnimationState(const String&) const;
  315. Variant GetAttribute(const String&) const;
  316. ValueAnimation GetAttributeAnimation(const String&) const;
  317. float GetAttributeAnimationSpeed(const String&) const;
  318. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  319. Variant GetAttributeDefault(const String&) const;
  320. float GetAutoFade(const String&) const;
  321. float GetFadeTarget(const String&) const;
  322. uint8 GetLayer(const String&) const;
  323. float GetLength(const String&) const;
  324. bool GetLooped(const String&) const;
  325. float GetSpeed(const String&) const;
  326. float GetTime(const String&) const;
  327. float GetWeight(const String&) const;
  328. bool IsFadingIn(const String&) const;
  329. bool IsFadingOut(const String&) const;
  330. bool IsPlaying(const String&) const;
  331. bool Load(File, bool = false);
  332. bool Load(VectorBuffer&, bool = false);
  333. bool LoadXML(const XMLElement&, bool = false);
  334. void MarkNetworkUpdate() const;
  335. bool Play(const String&, uint8, bool, float = 0.0f);
  336. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  337. void Remove();
  338. void RemoveInstanceDefault();
  339. void ResetToDefault();
  340. bool Save(File) const;
  341. bool Save(VectorBuffer&) const;
  342. bool SaveXML(XMLElement&) const;
  343. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  344. bool SetAttribute(const String&, const Variant&);
  345. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  346. void SetAttributeAnimationSpeed(const String&, float);
  347. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  348. bool SetAutoFade(const String&, float);
  349. bool SetLayer(const String&, uint8);
  350. bool SetLooped(const String&, bool);
  351. bool SetSpeed(const String&, float);
  352. bool SetStartBone(const String&, const String&);
  353. bool SetTime(const String&, float);
  354. bool SetWeight(const String&, float);
  355. void Stop(const String&, float = 0.0f);
  356. void StopAll(float = 0.0f);
  357. void StopLayer(uint8, float = 0.0f);
  358. const String& GetStartBone(const String&) const;
  359. // Properties:
  360. bool animationEnabled;
  361. /* readonly */
  362. Array<Variant> attributeDefaults;
  363. /* readonly */
  364. Array<AttributeInfo> attributeInfos;
  365. Array<Variant> attributes;
  366. /* readonly */
  367. StringHash baseType;
  368. /* readonly */
  369. String category;
  370. bool enabled;
  371. /* readonly */
  372. bool enabledEffective;
  373. /* readonly */
  374. uint id;
  375. /* readonly */
  376. Node node;
  377. /* readonly */
  378. uint numAttributes;
  379. ObjectAnimation objectAnimation;
  380. /* readonly */
  381. int refs;
  382. bool temporary;
  383. /* readonly */
  384. StringHash type;
  385. /* readonly */
  386. String typeName;
  387. /* readonly */
  388. int weakRefs;
  389. };
  390. class AnimationSet2D
  391. {
  392. // Methods:
  393. Animation2D GetAnimation(const String&) const;
  394. Animation2D GetAnimation(uint) const;
  395. bool Load(File);
  396. bool Load(VectorBuffer&);
  397. bool Save(File) const;
  398. bool Save(VectorBuffer&) const;
  399. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  400. // Properties:
  401. /* readonly */
  402. StringHash baseType;
  403. /* readonly */
  404. String category;
  405. /* readonly */
  406. uint memoryUse;
  407. String name;
  408. /* readonly */
  409. uint numAnimations;
  410. /* readonly */
  411. int refs;
  412. /* readonly */
  413. StringHash type;
  414. /* readonly */
  415. String typeName;
  416. /* readonly */
  417. uint useTimer;
  418. /* readonly */
  419. int weakRefs;
  420. };
  421. class AnimationState
  422. {
  423. // Methods:
  424. void AddTime(float);
  425. void AddWeight(float);
  426. void Apply();
  427. float GetBoneWeight(StringHash) const;
  428. float GetBoneWeight(uint) const;
  429. uint GetTrackIndex(StringHash) const;
  430. uint GetTrackIndex(const String&) const;
  431. void SetBoneWeight(StringHash, float, bool = false);
  432. void SetBoneWeight(const String&, float, bool = false);
  433. void SetBoneWeight(uint, float, bool = false);
  434. // Properties:
  435. /* readonly */
  436. Animation animation;
  437. Array<float> boneWeights;
  438. /* readonly */
  439. bool enabled;
  440. uint8 layer;
  441. /* readonly */
  442. float length;
  443. bool looped;
  444. /* readonly */
  445. AnimatedModel model;
  446. /* readonly */
  447. Node node;
  448. /* readonly */
  449. int refs;
  450. Bone startBone;
  451. float time;
  452. /* readonly */
  453. int weakRefs;
  454. float weight;
  455. };
  456. class AnimationTriggerPoint
  457. {
  458. // Properties:
  459. Variant data;
  460. float time;
  461. };
  462. template <class T> class Array
  463. {
  464. // Methods:
  465. void Clear();
  466. void Erase(uint);
  467. int Find(const T&) const;
  468. int Find(uint, const T&) const;
  469. int FindByRef(const T&) const;
  470. int FindByRef(uint, const T&) const;
  471. void Insert(uint, const T&);
  472. void Pop();
  473. void Push(const T&);
  474. void Reserve(uint);
  475. void Resize(uint);
  476. void Reverse();
  477. void Sort();
  478. void Sort(uint, uint);
  479. void SortReverse();
  480. void SortReverse(uint, uint);
  481. // Properties:
  482. /* readonly */
  483. bool empty;
  484. uint length;
  485. };
  486. class AttributeInfo
  487. {
  488. // Properties:
  489. Variant defaultValue;
  490. /* readonly */
  491. Array<String> enumNames;
  492. uint mode;
  493. String name;
  494. VariantType type;
  495. };
  496. class Audio
  497. {
  498. // Methods:
  499. bool HasMasterGain(const String&) const;
  500. bool Play();
  501. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  502. void SetMode(int, int, bool, bool = true);
  503. void Stop();
  504. // Properties:
  505. /* readonly */
  506. StringHash baseType;
  507. /* readonly */
  508. String category;
  509. /* readonly */
  510. bool initialized;
  511. /* readonly */
  512. bool interpolation;
  513. SoundListener listener;
  514. Array<float> masterGain;
  515. /* readonly */
  516. int mixRate;
  517. /* readonly */
  518. bool playing;
  519. /* readonly */
  520. int refs;
  521. /* readonly */
  522. uint sampleSize;
  523. /* readonly */
  524. bool stereo;
  525. /* readonly */
  526. StringHash type;
  527. /* readonly */
  528. String typeName;
  529. /* readonly */
  530. int weakRefs;
  531. };
  532. class BiasParameters
  533. {
  534. // Properties:
  535. float constantBias;
  536. float slopeScaledBias;
  537. };
  538. class Billboard
  539. {
  540. // Properties:
  541. Color color;
  542. bool enabled;
  543. Vector3 position;
  544. float rotation;
  545. Vector2 size;
  546. Rect uv;
  547. };
  548. class BillboardSet
  549. {
  550. // Methods:
  551. void ApplyAttributes();
  552. void Commit();
  553. void DrawDebugGeometry(DebugRenderer, bool);
  554. Variant GetAttribute(const String&) const;
  555. ValueAnimation GetAttributeAnimation(const String&) const;
  556. float GetAttributeAnimationSpeed(const String&) const;
  557. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  558. Variant GetAttributeDefault(const String&) const;
  559. bool IsInView(Camera) const;
  560. bool Load(File, bool = false);
  561. bool Load(VectorBuffer&, bool = false);
  562. bool LoadXML(const XMLElement&, bool = false);
  563. void MarkNetworkUpdate() const;
  564. void Remove();
  565. void RemoveInstanceDefault();
  566. void ResetToDefault();
  567. bool Save(File) const;
  568. bool Save(VectorBuffer&) const;
  569. bool SaveXML(XMLElement&) const;
  570. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  571. bool SetAttribute(const String&, const Variant&);
  572. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  573. void SetAttributeAnimationSpeed(const String&, float);
  574. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  575. // Properties:
  576. bool animationEnabled;
  577. float animationLodBias;
  578. /* readonly */
  579. Array<Variant> attributeDefaults;
  580. /* readonly */
  581. Array<AttributeInfo> attributeInfos;
  582. Array<Variant> attributes;
  583. /* readonly */
  584. StringHash baseType;
  585. /* readonly */
  586. Array<Billboard> billboards;
  587. /* readonly */
  588. BoundingBox boundingBox;
  589. bool castShadows;
  590. /* readonly */
  591. String category;
  592. float drawDistance;
  593. bool enabled;
  594. /* readonly */
  595. bool enabledEffective;
  596. FaceCameraMode faceCameraMode;
  597. /* readonly */
  598. uint id;
  599. /* readonly */
  600. bool inView;
  601. uint lightMask;
  602. float lodBias;
  603. Material material;
  604. uint maxLights;
  605. /* readonly */
  606. Node node;
  607. /* readonly */
  608. uint numAttributes;
  609. uint numBillboards;
  610. ObjectAnimation objectAnimation;
  611. bool occludee;
  612. bool occluder;
  613. /* readonly */
  614. int refs;
  615. bool relative;
  616. bool scaled;
  617. float shadowDistance;
  618. uint shadowMask;
  619. bool sorted;
  620. bool temporary;
  621. /* readonly */
  622. StringHash type;
  623. /* readonly */
  624. String typeName;
  625. uint viewMask;
  626. /* readonly */
  627. int weakRefs;
  628. /* readonly */
  629. BoundingBox worldBoundingBox;
  630. /* readonly */
  631. Zone zone;
  632. uint zoneMask;
  633. };
  634. class Bone
  635. {
  636. // Properties:
  637. bool animated;
  638. BoundingBox boundingBox;
  639. Vector3 initialPosition;
  640. Quaternion initialRotation;
  641. Vector3 initialScale;
  642. String name;
  643. Node node;
  644. float radius;
  645. };
  646. class BorderImage
  647. {
  648. // Methods:
  649. void AddChild(UIElement);
  650. void ApplyAttributes();
  651. void BringToFront();
  652. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  653. void DisableLayoutUpdate();
  654. IntVector2 ElementToScreen(const IntVector2&);
  655. void EnableLayoutUpdate();
  656. uint FindChild(UIElement) const;
  657. Variant GetAttribute(const String&) const;
  658. ValueAnimation GetAttributeAnimation(const String&) const;
  659. float GetAttributeAnimationSpeed(const String&) const;
  660. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  661. Variant GetAttributeDefault(const String&) const;
  662. UIElement GetChild(const String&, bool = false) const;
  663. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  664. Array<UIElement> GetChildren(bool = false) const;
  665. UIElement GetElementEventSender() const;
  666. uint GetNumChildren(bool) const;
  667. void InsertChild(uint, UIElement);
  668. bool IsInside(IntVector2, bool);
  669. bool IsInsideCombined(IntVector2, bool);
  670. bool Load(File, bool = false);
  671. bool Load(VectorBuffer&, bool = false);
  672. bool LoadChildXML(XMLFile, XMLFile = null);
  673. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  674. bool LoadXML(File);
  675. bool LoadXML(VectorBuffer&);
  676. bool LoadXML(XMLFile, XMLFile);
  677. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  678. bool LoadXML(const XMLElement&, bool = false);
  679. void MarkNetworkUpdate() const;
  680. void Remove();
  681. void RemoveAllChildren();
  682. void RemoveChild(UIElement, uint = 0);
  683. void RemoveChild(uint);
  684. void RemoveInstanceDefault();
  685. void ResetDeepEnabled();
  686. void ResetToDefault();
  687. bool Save(File) const;
  688. bool Save(VectorBuffer&) const;
  689. bool SaveXML(File);
  690. bool SaveXML(VectorBuffer&);
  691. bool SaveXML(XMLElement&) const;
  692. IntVector2 ScreenToElement(const IntVector2&);
  693. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  694. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  695. bool SetAttribute(const String&, const Variant&);
  696. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  697. void SetAttributeAnimationSpeed(const String&, float);
  698. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  699. void SetDeepEnabled(bool);
  700. void SetEnabledRecursive(bool);
  701. void SetFixedHeight(int);
  702. void SetFixedSize(int, int);
  703. void SetFixedWidth(int);
  704. void SetFullImageRect();
  705. void SetHoverOffset(int, int);
  706. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  707. void SetMaxSize(int, int);
  708. void SetMinSize(int, int);
  709. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  710. void SetPosition(int, int);
  711. void SetSize(int, int);
  712. bool SetStyle(const String&, XMLFile = null);
  713. bool SetStyle(const XMLElement&);
  714. bool SetStyleAuto(XMLFile = null);
  715. void UpdateLayout();
  716. const Variant& GetVar(const StringHash&);
  717. // Properties:
  718. bool animationEnabled;
  719. /* readonly */
  720. Array<Variant> attributeDefaults;
  721. /* readonly */
  722. Array<AttributeInfo> attributeInfos;
  723. Array<Variant> attributes;
  724. /* readonly */
  725. StringHash baseType;
  726. BlendMode blendMode;
  727. IntRect border;
  728. bool bringToBack;
  729. bool bringToFront;
  730. /* readonly */
  731. String category;
  732. /* readonly */
  733. IntVector2 childOffset;
  734. /* readonly */
  735. Array<UIElement> children;
  736. IntRect clipBorder;
  737. bool clipChildren;
  738. /* writeonly */
  739. Color color;
  740. /* readonly */
  741. bool colorGradient;
  742. Array<Color> colors;
  743. /* readonly */
  744. IntRect combinedScreenRect;
  745. XMLFile defaultStyle;
  746. /* readonly */
  747. float derivedOpacity;
  748. /* readonly */
  749. uint dragButtonCombo;
  750. /* readonly */
  751. int dragButtonCount;
  752. uint dragDropMode;
  753. bool editable;
  754. bool elementEventSender;
  755. bool enabled;
  756. /* readonly */
  757. bool enabledSelf;
  758. /* readonly */
  759. bool fixedHeight;
  760. /* readonly */
  761. bool fixedSize;
  762. /* readonly */
  763. bool fixedWidth;
  764. bool focus;
  765. FocusMode focusMode;
  766. int height;
  767. HorizontalAlignment horizontalAlignment;
  768. IntVector2 hoverOffset;
  769. /* readonly */
  770. bool hovering;
  771. IntRect imageBorder;
  772. IntRect imageRect;
  773. int indent;
  774. int indentSpacing;
  775. /* readonly */
  776. int indentWidth;
  777. bool internal;
  778. IntRect layoutBorder;
  779. Vector2 layoutFlexScale;
  780. LayoutMode layoutMode;
  781. int layoutSpacing;
  782. int maxHeight;
  783. IntVector2 maxSize;
  784. int maxWidth;
  785. int minHeight;
  786. IntVector2 minSize;
  787. int minWidth;
  788. String name;
  789. /* readonly */
  790. uint numAllChildren;
  791. /* readonly */
  792. uint numAttributes;
  793. /* readonly */
  794. uint numChildren;
  795. ObjectAnimation objectAnimation;
  796. float opacity;
  797. UIElement parent;
  798. IntVector2 position;
  799. int priority;
  800. /* readonly */
  801. int refs;
  802. /* readonly */
  803. UIElement root;
  804. /* readonly */
  805. IntVector2 screenPosition;
  806. bool selected;
  807. IntVector2 size;
  808. bool sortChildren;
  809. String style;
  810. bool temporary;
  811. Texture texture;
  812. bool tiled;
  813. TraversalMode traversalMode;
  814. /* readonly */
  815. StringHash type;
  816. /* readonly */
  817. String typeName;
  818. bool useDerivedOpacity;
  819. /* readonly */
  820. VariantMap vars;
  821. VerticalAlignment verticalAlignment;
  822. bool visible;
  823. /* readonly */
  824. int weakRefs;
  825. int width;
  826. };
  827. class BoundingBox
  828. {
  829. // Methods:
  830. void Clear();
  831. void Clip(const BoundingBox&);
  832. void Define(const BoundingBox&);
  833. void Define(const Frustum&);
  834. void Define(const Polyhedron&);
  835. void Define(const Sphere&);
  836. void Define(const Vector3&);
  837. void Define(const Vector3&, const Vector3&);
  838. void Define(float, float);
  839. Intersection IsInside(const BoundingBox&) const;
  840. Intersection IsInside(const Sphere&) const;
  841. Intersection IsInside(const Vector3&) const;
  842. void Merge(const BoundingBox&);
  843. void Merge(const Frustum&);
  844. void Merge(const Polyhedron&);
  845. void Merge(const Sphere&);
  846. void Merge(const Vector3&);
  847. Rect Projected(const Matrix4&) const;
  848. String ToString() const;
  849. void Transform(const Matrix3&);
  850. void Transform(const Matrix3x4&);
  851. BoundingBox Transformed(const Matrix3&) const;
  852. BoundingBox Transformed(const Matrix3x4&) const;
  853. // Properties:
  854. /* readonly */
  855. Vector3 center;
  856. bool defined;
  857. /* readonly */
  858. Vector3 halfSize;
  859. Vector3 max;
  860. Vector3 min;
  861. /* readonly */
  862. Vector3 size;
  863. };
  864. class Button
  865. {
  866. // Methods:
  867. void AddChild(UIElement);
  868. void ApplyAttributes();
  869. void BringToFront();
  870. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  871. void DisableLayoutUpdate();
  872. IntVector2 ElementToScreen(const IntVector2&);
  873. void EnableLayoutUpdate();
  874. uint FindChild(UIElement) const;
  875. Variant GetAttribute(const String&) const;
  876. ValueAnimation GetAttributeAnimation(const String&) const;
  877. float GetAttributeAnimationSpeed(const String&) const;
  878. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  879. Variant GetAttributeDefault(const String&) const;
  880. UIElement GetChild(const String&, bool = false) const;
  881. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  882. Array<UIElement> GetChildren(bool = false) const;
  883. UIElement GetElementEventSender() const;
  884. uint GetNumChildren(bool) const;
  885. void InsertChild(uint, UIElement);
  886. bool IsInside(IntVector2, bool);
  887. bool IsInsideCombined(IntVector2, bool);
  888. bool Load(File, bool = false);
  889. bool Load(VectorBuffer&, bool = false);
  890. bool LoadChildXML(XMLFile, XMLFile = null);
  891. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  892. bool LoadXML(File);
  893. bool LoadXML(VectorBuffer&);
  894. bool LoadXML(XMLFile, XMLFile);
  895. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  896. bool LoadXML(const XMLElement&, bool = false);
  897. void MarkNetworkUpdate() const;
  898. void Remove();
  899. void RemoveAllChildren();
  900. void RemoveChild(UIElement, uint = 0);
  901. void RemoveChild(uint);
  902. void RemoveInstanceDefault();
  903. void ResetDeepEnabled();
  904. void ResetToDefault();
  905. bool Save(File) const;
  906. bool Save(VectorBuffer&) const;
  907. bool SaveXML(File);
  908. bool SaveXML(VectorBuffer&);
  909. bool SaveXML(XMLElement&) const;
  910. IntVector2 ScreenToElement(const IntVector2&);
  911. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  912. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  913. bool SetAttribute(const String&, const Variant&);
  914. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  915. void SetAttributeAnimationSpeed(const String&, float);
  916. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  917. void SetDeepEnabled(bool);
  918. void SetEnabledRecursive(bool);
  919. void SetFixedHeight(int);
  920. void SetFixedSize(int, int);
  921. void SetFixedWidth(int);
  922. void SetFullImageRect();
  923. void SetHoverOffset(int, int);
  924. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  925. void SetMaxSize(int, int);
  926. void SetMinSize(int, int);
  927. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  928. void SetPosition(int, int);
  929. void SetPressedChildOffset(int, int);
  930. void SetPressedOffset(int, int);
  931. void SetRepeat(float, float);
  932. void SetSize(int, int);
  933. bool SetStyle(const String&, XMLFile = null);
  934. bool SetStyle(const XMLElement&);
  935. bool SetStyleAuto(XMLFile = null);
  936. void UpdateLayout();
  937. const Variant& GetVar(const StringHash&);
  938. // Properties:
  939. bool animationEnabled;
  940. /* readonly */
  941. Array<Variant> attributeDefaults;
  942. /* readonly */
  943. Array<AttributeInfo> attributeInfos;
  944. Array<Variant> attributes;
  945. /* readonly */
  946. StringHash baseType;
  947. BlendMode blendMode;
  948. IntRect border;
  949. bool bringToBack;
  950. bool bringToFront;
  951. /* readonly */
  952. String category;
  953. /* readonly */
  954. IntVector2 childOffset;
  955. /* readonly */
  956. Array<UIElement> children;
  957. IntRect clipBorder;
  958. bool clipChildren;
  959. /* writeonly */
  960. Color color;
  961. /* readonly */
  962. bool colorGradient;
  963. Array<Color> colors;
  964. /* readonly */
  965. IntRect combinedScreenRect;
  966. XMLFile defaultStyle;
  967. /* readonly */
  968. float derivedOpacity;
  969. /* readonly */
  970. uint dragButtonCombo;
  971. /* readonly */
  972. int dragButtonCount;
  973. uint dragDropMode;
  974. bool editable;
  975. bool elementEventSender;
  976. bool enabled;
  977. /* readonly */
  978. bool enabledSelf;
  979. /* readonly */
  980. bool fixedHeight;
  981. /* readonly */
  982. bool fixedSize;
  983. /* readonly */
  984. bool fixedWidth;
  985. bool focus;
  986. FocusMode focusMode;
  987. int height;
  988. HorizontalAlignment horizontalAlignment;
  989. IntVector2 hoverOffset;
  990. /* readonly */
  991. bool hovering;
  992. IntRect imageBorder;
  993. IntRect imageRect;
  994. int indent;
  995. int indentSpacing;
  996. /* readonly */
  997. int indentWidth;
  998. bool internal;
  999. IntRect layoutBorder;
  1000. Vector2 layoutFlexScale;
  1001. LayoutMode layoutMode;
  1002. int layoutSpacing;
  1003. int maxHeight;
  1004. IntVector2 maxSize;
  1005. int maxWidth;
  1006. int minHeight;
  1007. IntVector2 minSize;
  1008. int minWidth;
  1009. String name;
  1010. /* readonly */
  1011. uint numAllChildren;
  1012. /* readonly */
  1013. uint numAttributes;
  1014. /* readonly */
  1015. uint numChildren;
  1016. ObjectAnimation objectAnimation;
  1017. float opacity;
  1018. UIElement parent;
  1019. IntVector2 position;
  1020. /* readonly */
  1021. bool pressed;
  1022. IntVector2 pressedChildOffset;
  1023. IntVector2 pressedOffset;
  1024. int priority;
  1025. /* readonly */
  1026. int refs;
  1027. float repeatDelay;
  1028. float repeatRate;
  1029. /* readonly */
  1030. UIElement root;
  1031. /* readonly */
  1032. IntVector2 screenPosition;
  1033. bool selected;
  1034. IntVector2 size;
  1035. bool sortChildren;
  1036. String style;
  1037. bool temporary;
  1038. Texture texture;
  1039. bool tiled;
  1040. TraversalMode traversalMode;
  1041. /* readonly */
  1042. StringHash type;
  1043. /* readonly */
  1044. String typeName;
  1045. bool useDerivedOpacity;
  1046. /* readonly */
  1047. VariantMap vars;
  1048. VerticalAlignment verticalAlignment;
  1049. bool visible;
  1050. /* readonly */
  1051. int weakRefs;
  1052. int width;
  1053. };
  1054. class Camera
  1055. {
  1056. // Methods:
  1057. void ApplyAttributes();
  1058. void DrawDebugGeometry(DebugRenderer, bool);
  1059. Variant GetAttribute(const String&) const;
  1060. ValueAnimation GetAttributeAnimation(const String&) const;
  1061. float GetAttributeAnimationSpeed(const String&) const;
  1062. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1063. Variant GetAttributeDefault(const String&) const;
  1064. float GetDistance(const Vector3&) const;
  1065. float GetDistanceSquared(const Vector3&) const;
  1066. Ray GetScreenRay(float, float) const;
  1067. Frustum GetSplitFrustum(float, float) const;
  1068. bool Load(File, bool = false);
  1069. bool Load(VectorBuffer&, bool = false);
  1070. bool LoadXML(const XMLElement&, bool = false);
  1071. void MarkNetworkUpdate() const;
  1072. void Remove();
  1073. void RemoveInstanceDefault();
  1074. void ResetToDefault();
  1075. bool Save(File) const;
  1076. bool Save(VectorBuffer&) const;
  1077. bool SaveXML(XMLElement&) const;
  1078. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1079. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1080. bool SetAttribute(const String&, const Variant&);
  1081. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1082. void SetAttributeAnimationSpeed(const String&, float);
  1083. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1084. void SetOrthoSize(const Vector2&);
  1085. Vector2 WorldToScreenPoint(const Vector3&) const;
  1086. // Properties:
  1087. bool animationEnabled;
  1088. float aspectRatio;
  1089. /* readonly */
  1090. Array<Variant> attributeDefaults;
  1091. /* readonly */
  1092. Array<AttributeInfo> attributeInfos;
  1093. Array<Variant> attributes;
  1094. bool autoAspectRatio;
  1095. /* readonly */
  1096. StringHash baseType;
  1097. /* readonly */
  1098. String category;
  1099. Plane clipPlane;
  1100. /* readonly */
  1101. Matrix3x4 effectiveWorldTransform;
  1102. bool enabled;
  1103. /* readonly */
  1104. bool enabledEffective;
  1105. float farClip;
  1106. FillMode fillMode;
  1107. float fov;
  1108. /* readonly */
  1109. Frustum frustum;
  1110. /* readonly */
  1111. float halfViewSize;
  1112. /* readonly */
  1113. uint id;
  1114. float lodBias;
  1115. float nearClip;
  1116. /* readonly */
  1117. Node node;
  1118. /* readonly */
  1119. uint numAttributes;
  1120. ObjectAnimation objectAnimation;
  1121. float orthoSize;
  1122. bool orthographic;
  1123. /* readonly */
  1124. Matrix4 projection;
  1125. Vector2 projectionOffset;
  1126. Plane reflectionPlane;
  1127. /* readonly */
  1128. int refs;
  1129. bool temporary;
  1130. /* readonly */
  1131. StringHash type;
  1132. /* readonly */
  1133. String typeName;
  1134. bool useClipping;
  1135. bool useReflection;
  1136. /* readonly */
  1137. Matrix3x4 view;
  1138. uint viewMask;
  1139. uint viewOverrideFlags;
  1140. /* readonly */
  1141. Frustum viewSpaceFrustum;
  1142. /* readonly */
  1143. int weakRefs;
  1144. float zoom;
  1145. };
  1146. class CascadeParameters
  1147. {
  1148. // Properties:
  1149. float biasAutoAdjust;
  1150. float fadeStart;
  1151. float split1;
  1152. float split2;
  1153. float split3;
  1154. float split4;
  1155. };
  1156. class CheckBox
  1157. {
  1158. // Methods:
  1159. void AddChild(UIElement);
  1160. void ApplyAttributes();
  1161. void BringToFront();
  1162. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1163. void DisableLayoutUpdate();
  1164. IntVector2 ElementToScreen(const IntVector2&);
  1165. void EnableLayoutUpdate();
  1166. uint FindChild(UIElement) const;
  1167. Variant GetAttribute(const String&) const;
  1168. ValueAnimation GetAttributeAnimation(const String&) const;
  1169. float GetAttributeAnimationSpeed(const String&) const;
  1170. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1171. Variant GetAttributeDefault(const String&) const;
  1172. UIElement GetChild(const String&, bool = false) const;
  1173. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1174. Array<UIElement> GetChildren(bool = false) const;
  1175. UIElement GetElementEventSender() const;
  1176. uint GetNumChildren(bool) const;
  1177. void InsertChild(uint, UIElement);
  1178. bool IsInside(IntVector2, bool);
  1179. bool IsInsideCombined(IntVector2, bool);
  1180. bool Load(File, bool = false);
  1181. bool Load(VectorBuffer&, bool = false);
  1182. bool LoadChildXML(XMLFile, XMLFile = null);
  1183. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1184. bool LoadXML(File);
  1185. bool LoadXML(VectorBuffer&);
  1186. bool LoadXML(XMLFile, XMLFile);
  1187. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1188. bool LoadXML(const XMLElement&, bool = false);
  1189. void MarkNetworkUpdate() const;
  1190. void Remove();
  1191. void RemoveAllChildren();
  1192. void RemoveChild(UIElement, uint = 0);
  1193. void RemoveChild(uint);
  1194. void RemoveInstanceDefault();
  1195. void ResetDeepEnabled();
  1196. void ResetToDefault();
  1197. bool Save(File) const;
  1198. bool Save(VectorBuffer&) const;
  1199. bool SaveXML(File);
  1200. bool SaveXML(VectorBuffer&);
  1201. bool SaveXML(XMLElement&) const;
  1202. IntVector2 ScreenToElement(const IntVector2&);
  1203. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1204. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1205. bool SetAttribute(const String&, const Variant&);
  1206. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1207. void SetAttributeAnimationSpeed(const String&, float);
  1208. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1209. void SetCheckedOffset(int, int);
  1210. void SetDeepEnabled(bool);
  1211. void SetEnabledRecursive(bool);
  1212. void SetFixedHeight(int);
  1213. void SetFixedSize(int, int);
  1214. void SetFixedWidth(int);
  1215. void SetFullImageRect();
  1216. void SetHoverOffset(int, int);
  1217. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1218. void SetMaxSize(int, int);
  1219. void SetMinSize(int, int);
  1220. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1221. void SetPosition(int, int);
  1222. void SetSize(int, int);
  1223. bool SetStyle(const String&, XMLFile = null);
  1224. bool SetStyle(const XMLElement&);
  1225. bool SetStyleAuto(XMLFile = null);
  1226. void UpdateLayout();
  1227. const Variant& GetVar(const StringHash&);
  1228. // Properties:
  1229. bool animationEnabled;
  1230. /* readonly */
  1231. Array<Variant> attributeDefaults;
  1232. /* readonly */
  1233. Array<AttributeInfo> attributeInfos;
  1234. Array<Variant> attributes;
  1235. /* readonly */
  1236. StringHash baseType;
  1237. BlendMode blendMode;
  1238. IntRect border;
  1239. bool bringToBack;
  1240. bool bringToFront;
  1241. /* readonly */
  1242. String category;
  1243. bool checked;
  1244. IntVector2 checkedOffset;
  1245. /* readonly */
  1246. IntVector2 childOffset;
  1247. /* readonly */
  1248. Array<UIElement> children;
  1249. IntRect clipBorder;
  1250. bool clipChildren;
  1251. /* writeonly */
  1252. Color color;
  1253. /* readonly */
  1254. bool colorGradient;
  1255. Array<Color> colors;
  1256. /* readonly */
  1257. IntRect combinedScreenRect;
  1258. XMLFile defaultStyle;
  1259. /* readonly */
  1260. float derivedOpacity;
  1261. /* readonly */
  1262. uint dragButtonCombo;
  1263. /* readonly */
  1264. int dragButtonCount;
  1265. uint dragDropMode;
  1266. bool editable;
  1267. bool elementEventSender;
  1268. bool enabled;
  1269. /* readonly */
  1270. bool enabledSelf;
  1271. /* readonly */
  1272. bool fixedHeight;
  1273. /* readonly */
  1274. bool fixedSize;
  1275. /* readonly */
  1276. bool fixedWidth;
  1277. bool focus;
  1278. FocusMode focusMode;
  1279. int height;
  1280. HorizontalAlignment horizontalAlignment;
  1281. IntVector2 hoverOffset;
  1282. /* readonly */
  1283. bool hovering;
  1284. IntRect imageBorder;
  1285. IntRect imageRect;
  1286. int indent;
  1287. int indentSpacing;
  1288. /* readonly */
  1289. int indentWidth;
  1290. bool internal;
  1291. IntRect layoutBorder;
  1292. Vector2 layoutFlexScale;
  1293. LayoutMode layoutMode;
  1294. int layoutSpacing;
  1295. int maxHeight;
  1296. IntVector2 maxSize;
  1297. int maxWidth;
  1298. int minHeight;
  1299. IntVector2 minSize;
  1300. int minWidth;
  1301. String name;
  1302. /* readonly */
  1303. uint numAllChildren;
  1304. /* readonly */
  1305. uint numAttributes;
  1306. /* readonly */
  1307. uint numChildren;
  1308. ObjectAnimation objectAnimation;
  1309. float opacity;
  1310. UIElement parent;
  1311. IntVector2 position;
  1312. int priority;
  1313. /* readonly */
  1314. int refs;
  1315. /* readonly */
  1316. UIElement root;
  1317. /* readonly */
  1318. IntVector2 screenPosition;
  1319. bool selected;
  1320. IntVector2 size;
  1321. bool sortChildren;
  1322. String style;
  1323. bool temporary;
  1324. Texture texture;
  1325. bool tiled;
  1326. TraversalMode traversalMode;
  1327. /* readonly */
  1328. StringHash type;
  1329. /* readonly */
  1330. String typeName;
  1331. bool useDerivedOpacity;
  1332. /* readonly */
  1333. VariantMap vars;
  1334. VerticalAlignment verticalAlignment;
  1335. bool visible;
  1336. /* readonly */
  1337. int weakRefs;
  1338. int width;
  1339. };
  1340. class CollisionBox2D
  1341. {
  1342. // Methods:
  1343. void ApplyAttributes();
  1344. void DrawDebugGeometry(DebugRenderer, bool);
  1345. Variant GetAttribute(const String&) const;
  1346. ValueAnimation GetAttributeAnimation(const String&) const;
  1347. float GetAttributeAnimationSpeed(const String&) const;
  1348. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1349. Variant GetAttributeDefault(const String&) const;
  1350. bool Load(File, bool = false);
  1351. bool Load(VectorBuffer&, bool = false);
  1352. bool LoadXML(const XMLElement&, bool = false);
  1353. void MarkNetworkUpdate() const;
  1354. void Remove();
  1355. void RemoveInstanceDefault();
  1356. void ResetToDefault();
  1357. bool Save(File) const;
  1358. bool Save(VectorBuffer&) const;
  1359. bool SaveXML(XMLElement&) const;
  1360. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1361. bool SetAttribute(const String&, const Variant&);
  1362. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1363. void SetAttributeAnimationSpeed(const String&, float);
  1364. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1365. void SetCenter(float, float);
  1366. void SetSize(float, float);
  1367. // Properties:
  1368. float angle;
  1369. bool animationEnabled;
  1370. /* readonly */
  1371. Array<Variant> attributeDefaults;
  1372. /* readonly */
  1373. Array<AttributeInfo> attributeInfos;
  1374. Array<Variant> attributes;
  1375. /* readonly */
  1376. StringHash baseType;
  1377. /* readonly */
  1378. String category;
  1379. int categoryBits;
  1380. Vector2 center;
  1381. float density;
  1382. bool enabled;
  1383. /* readonly */
  1384. bool enabledEffective;
  1385. float friction;
  1386. int groupIndex;
  1387. /* readonly */
  1388. uint id;
  1389. /* readonly */
  1390. float inertia;
  1391. int maskBits;
  1392. /* readonly */
  1393. float mass;
  1394. /* readonly */
  1395. Vector2 massCenter;
  1396. /* readonly */
  1397. Node node;
  1398. /* readonly */
  1399. uint numAttributes;
  1400. ObjectAnimation objectAnimation;
  1401. /* readonly */
  1402. int refs;
  1403. float restitution;
  1404. Vector2 size;
  1405. bool temporary;
  1406. bool trigger;
  1407. /* readonly */
  1408. StringHash type;
  1409. /* readonly */
  1410. String typeName;
  1411. /* readonly */
  1412. int weakRefs;
  1413. };
  1414. class CollisionChain2D
  1415. {
  1416. // Methods:
  1417. void ApplyAttributes();
  1418. void DrawDebugGeometry(DebugRenderer, bool);
  1419. Variant GetAttribute(const String&) const;
  1420. ValueAnimation GetAttributeAnimation(const String&) const;
  1421. float GetAttributeAnimationSpeed(const String&) const;
  1422. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1423. Variant GetAttributeDefault(const String&) const;
  1424. Array<Vector2> GetVertices() const;
  1425. bool Load(File, bool = false);
  1426. bool Load(VectorBuffer&, bool = false);
  1427. bool LoadXML(const XMLElement&, bool = false);
  1428. void MarkNetworkUpdate() const;
  1429. void Remove();
  1430. void RemoveInstanceDefault();
  1431. void ResetToDefault();
  1432. bool Save(File) const;
  1433. bool Save(VectorBuffer&) const;
  1434. bool SaveXML(XMLElement&) const;
  1435. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1436. bool SetAttribute(const String&, const Variant&);
  1437. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1438. void SetAttributeAnimationSpeed(const String&, float);
  1439. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1440. void SetVertex(uint, const Vector2&);
  1441. void SetVertices(Array<Vector2>);
  1442. const Vector2& GetVertex(uint) const;
  1443. // Properties:
  1444. bool animationEnabled;
  1445. /* readonly */
  1446. Array<Variant> attributeDefaults;
  1447. /* readonly */
  1448. Array<AttributeInfo> attributeInfos;
  1449. Array<Variant> attributes;
  1450. /* readonly */
  1451. StringHash baseType;
  1452. /* readonly */
  1453. String category;
  1454. int categoryBits;
  1455. float density;
  1456. bool enabled;
  1457. /* readonly */
  1458. bool enabledEffective;
  1459. float friction;
  1460. int groupIndex;
  1461. /* readonly */
  1462. uint id;
  1463. /* readonly */
  1464. float inertia;
  1465. bool loop;
  1466. int maskBits;
  1467. /* readonly */
  1468. float mass;
  1469. /* readonly */
  1470. Vector2 massCenter;
  1471. /* readonly */
  1472. Node node;
  1473. /* readonly */
  1474. uint numAttributes;
  1475. ObjectAnimation objectAnimation;
  1476. /* readonly */
  1477. int refs;
  1478. float restitution;
  1479. bool temporary;
  1480. bool trigger;
  1481. /* readonly */
  1482. StringHash type;
  1483. /* readonly */
  1484. String typeName;
  1485. uint vertexCount;
  1486. /* readonly */
  1487. int weakRefs;
  1488. };
  1489. class CollisionCircle2D
  1490. {
  1491. // Methods:
  1492. void ApplyAttributes();
  1493. void DrawDebugGeometry(DebugRenderer, bool);
  1494. Variant GetAttribute(const String&) const;
  1495. ValueAnimation GetAttributeAnimation(const String&) const;
  1496. float GetAttributeAnimationSpeed(const String&) const;
  1497. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1498. Variant GetAttributeDefault(const String&) const;
  1499. bool Load(File, bool = false);
  1500. bool Load(VectorBuffer&, bool = false);
  1501. bool LoadXML(const XMLElement&, bool = false);
  1502. void MarkNetworkUpdate() const;
  1503. void Remove();
  1504. void RemoveInstanceDefault();
  1505. void ResetToDefault();
  1506. bool Save(File) const;
  1507. bool Save(VectorBuffer&) const;
  1508. bool SaveXML(XMLElement&) const;
  1509. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1510. bool SetAttribute(const String&, const Variant&);
  1511. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1512. void SetAttributeAnimationSpeed(const String&, float);
  1513. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1514. void SetCenter(float, float);
  1515. // Properties:
  1516. bool animationEnabled;
  1517. /* readonly */
  1518. Array<Variant> attributeDefaults;
  1519. /* readonly */
  1520. Array<AttributeInfo> attributeInfos;
  1521. Array<Variant> attributes;
  1522. /* readonly */
  1523. StringHash baseType;
  1524. /* readonly */
  1525. String category;
  1526. int categoryBits;
  1527. Vector2 center;
  1528. float density;
  1529. bool enabled;
  1530. /* readonly */
  1531. bool enabledEffective;
  1532. float friction;
  1533. int groupIndex;
  1534. /* readonly */
  1535. uint id;
  1536. /* readonly */
  1537. float inertia;
  1538. int maskBits;
  1539. /* readonly */
  1540. float mass;
  1541. /* readonly */
  1542. Vector2 massCenter;
  1543. /* readonly */
  1544. Node node;
  1545. /* readonly */
  1546. uint numAttributes;
  1547. ObjectAnimation objectAnimation;
  1548. float radius;
  1549. /* readonly */
  1550. int refs;
  1551. float restitution;
  1552. bool temporary;
  1553. bool trigger;
  1554. /* readonly */
  1555. StringHash type;
  1556. /* readonly */
  1557. String typeName;
  1558. /* readonly */
  1559. int weakRefs;
  1560. };
  1561. class CollisionEdge2D
  1562. {
  1563. // Methods:
  1564. void ApplyAttributes();
  1565. void DrawDebugGeometry(DebugRenderer, bool);
  1566. Variant GetAttribute(const String&) const;
  1567. ValueAnimation GetAttributeAnimation(const String&) const;
  1568. float GetAttributeAnimationSpeed(const String&) const;
  1569. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1570. Variant GetAttributeDefault(const String&) const;
  1571. bool Load(File, bool = false);
  1572. bool Load(VectorBuffer&, bool = false);
  1573. bool LoadXML(const XMLElement&, bool = false);
  1574. void MarkNetworkUpdate() const;
  1575. void Remove();
  1576. void RemoveInstanceDefault();
  1577. void ResetToDefault();
  1578. bool Save(File) const;
  1579. bool Save(VectorBuffer&) const;
  1580. bool SaveXML(XMLElement&) const;
  1581. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1582. bool SetAttribute(const String&, const Variant&);
  1583. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1584. void SetAttributeAnimationSpeed(const String&, float);
  1585. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1586. void SetVertices(const Vector2&, const Vector2&);
  1587. // Properties:
  1588. bool animationEnabled;
  1589. /* readonly */
  1590. Array<Variant> attributeDefaults;
  1591. /* readonly */
  1592. Array<AttributeInfo> attributeInfos;
  1593. Array<Variant> attributes;
  1594. /* readonly */
  1595. StringHash baseType;
  1596. /* readonly */
  1597. String category;
  1598. int categoryBits;
  1599. float density;
  1600. bool enabled;
  1601. /* readonly */
  1602. bool enabledEffective;
  1603. float friction;
  1604. int groupIndex;
  1605. /* readonly */
  1606. uint id;
  1607. /* readonly */
  1608. float inertia;
  1609. int maskBits;
  1610. /* readonly */
  1611. float mass;
  1612. /* readonly */
  1613. Vector2 massCenter;
  1614. /* readonly */
  1615. Node node;
  1616. /* readonly */
  1617. uint numAttributes;
  1618. ObjectAnimation objectAnimation;
  1619. /* readonly */
  1620. int refs;
  1621. float restitution;
  1622. bool temporary;
  1623. bool trigger;
  1624. /* readonly */
  1625. StringHash type;
  1626. /* readonly */
  1627. String typeName;
  1628. Vector2 vertex1;
  1629. Vector2 vertex2;
  1630. /* readonly */
  1631. int weakRefs;
  1632. };
  1633. class CollisionPolygon2D
  1634. {
  1635. // Methods:
  1636. void ApplyAttributes();
  1637. void DrawDebugGeometry(DebugRenderer, bool);
  1638. Variant GetAttribute(const String&) const;
  1639. ValueAnimation GetAttributeAnimation(const String&) const;
  1640. float GetAttributeAnimationSpeed(const String&) const;
  1641. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1642. Variant GetAttributeDefault(const String&) const;
  1643. Array<Vector2> GetVertices() const;
  1644. bool Load(File, bool = false);
  1645. bool Load(VectorBuffer&, bool = false);
  1646. bool LoadXML(const XMLElement&, bool = false);
  1647. void MarkNetworkUpdate() const;
  1648. void Remove();
  1649. void RemoveInstanceDefault();
  1650. void ResetToDefault();
  1651. bool Save(File) const;
  1652. bool Save(VectorBuffer&) const;
  1653. bool SaveXML(XMLElement&) const;
  1654. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1655. bool SetAttribute(const String&, const Variant&);
  1656. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1657. void SetAttributeAnimationSpeed(const String&, float);
  1658. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1659. void SetVertex(uint, const Vector2&);
  1660. void SetVertices(Array<Vector2>);
  1661. const Vector2& GetVertex(uint) const;
  1662. // Properties:
  1663. bool animationEnabled;
  1664. /* readonly */
  1665. Array<Variant> attributeDefaults;
  1666. /* readonly */
  1667. Array<AttributeInfo> attributeInfos;
  1668. Array<Variant> attributes;
  1669. /* readonly */
  1670. StringHash baseType;
  1671. /* readonly */
  1672. String category;
  1673. int categoryBits;
  1674. float density;
  1675. bool enabled;
  1676. /* readonly */
  1677. bool enabledEffective;
  1678. float friction;
  1679. int groupIndex;
  1680. /* readonly */
  1681. uint id;
  1682. /* readonly */
  1683. float inertia;
  1684. int maskBits;
  1685. /* readonly */
  1686. float mass;
  1687. /* readonly */
  1688. Vector2 massCenter;
  1689. /* readonly */
  1690. Node node;
  1691. /* readonly */
  1692. uint numAttributes;
  1693. ObjectAnimation objectAnimation;
  1694. /* readonly */
  1695. int refs;
  1696. float restitution;
  1697. bool temporary;
  1698. bool trigger;
  1699. /* readonly */
  1700. StringHash type;
  1701. /* readonly */
  1702. String typeName;
  1703. uint vertexCount;
  1704. /* readonly */
  1705. int weakRefs;
  1706. };
  1707. class CollisionShape
  1708. {
  1709. // Methods:
  1710. void ApplyAttributes();
  1711. void DrawDebugGeometry(DebugRenderer, bool);
  1712. Variant GetAttribute(const String&) const;
  1713. ValueAnimation GetAttributeAnimation(const String&) const;
  1714. float GetAttributeAnimationSpeed(const String&) const;
  1715. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1716. Variant GetAttributeDefault(const String&) const;
  1717. bool Load(File, bool = false);
  1718. bool Load(VectorBuffer&, bool = false);
  1719. bool LoadXML(const XMLElement&, bool = false);
  1720. void MarkNetworkUpdate() const;
  1721. void Remove();
  1722. void RemoveInstanceDefault();
  1723. void ResetToDefault();
  1724. bool Save(File) const;
  1725. bool Save(VectorBuffer&) const;
  1726. bool SaveXML(XMLElement&) const;
  1727. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1728. bool SetAttribute(const String&, const Variant&);
  1729. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1730. void SetAttributeAnimationSpeed(const String&, float);
  1731. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1732. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1733. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1734. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1735. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1736. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1737. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1738. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1739. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1740. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1741. void SetTerrain();
  1742. void SetTransform(const Vector3&, const Quaternion&);
  1743. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1744. // Properties:
  1745. bool animationEnabled;
  1746. /* readonly */
  1747. Array<Variant> attributeDefaults;
  1748. /* readonly */
  1749. Array<AttributeInfo> attributeInfos;
  1750. Array<Variant> attributes;
  1751. /* readonly */
  1752. StringHash baseType;
  1753. /* readonly */
  1754. String category;
  1755. bool enabled;
  1756. /* readonly */
  1757. bool enabledEffective;
  1758. /* readonly */
  1759. uint id;
  1760. uint lodLevel;
  1761. float margin;
  1762. Model model;
  1763. /* readonly */
  1764. Node node;
  1765. /* readonly */
  1766. uint numAttributes;
  1767. ObjectAnimation objectAnimation;
  1768. Vector3 position;
  1769. /* readonly */
  1770. int refs;
  1771. Quaternion rotation;
  1772. ShapeType shapeType;
  1773. Vector3 size;
  1774. bool temporary;
  1775. /* readonly */
  1776. StringHash type;
  1777. /* readonly */
  1778. String typeName;
  1779. /* readonly */
  1780. int weakRefs;
  1781. /* readonly */
  1782. BoundingBox worldBoundingBox;
  1783. };
  1784. class CollisionShape2D
  1785. {
  1786. // Methods:
  1787. void ApplyAttributes();
  1788. void DrawDebugGeometry(DebugRenderer, bool);
  1789. Variant GetAttribute(const String&) const;
  1790. ValueAnimation GetAttributeAnimation(const String&) const;
  1791. float GetAttributeAnimationSpeed(const String&) const;
  1792. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1793. Variant GetAttributeDefault(const String&) const;
  1794. bool Load(File, bool = false);
  1795. bool Load(VectorBuffer&, bool = false);
  1796. bool LoadXML(const XMLElement&, bool = false);
  1797. void MarkNetworkUpdate() const;
  1798. void Remove();
  1799. void RemoveInstanceDefault();
  1800. void ResetToDefault();
  1801. bool Save(File) const;
  1802. bool Save(VectorBuffer&) const;
  1803. bool SaveXML(XMLElement&) const;
  1804. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1805. bool SetAttribute(const String&, const Variant&);
  1806. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1807. void SetAttributeAnimationSpeed(const String&, float);
  1808. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1809. // Properties:
  1810. bool animationEnabled;
  1811. /* readonly */
  1812. Array<Variant> attributeDefaults;
  1813. /* readonly */
  1814. Array<AttributeInfo> attributeInfos;
  1815. Array<Variant> attributes;
  1816. /* readonly */
  1817. StringHash baseType;
  1818. /* readonly */
  1819. String category;
  1820. int categoryBits;
  1821. float density;
  1822. bool enabled;
  1823. /* readonly */
  1824. bool enabledEffective;
  1825. float friction;
  1826. int groupIndex;
  1827. /* readonly */
  1828. uint id;
  1829. /* readonly */
  1830. float inertia;
  1831. int maskBits;
  1832. /* readonly */
  1833. float mass;
  1834. /* readonly */
  1835. Vector2 massCenter;
  1836. /* readonly */
  1837. Node node;
  1838. /* readonly */
  1839. uint numAttributes;
  1840. ObjectAnimation objectAnimation;
  1841. /* readonly */
  1842. int refs;
  1843. float restitution;
  1844. bool temporary;
  1845. bool trigger;
  1846. /* readonly */
  1847. StringHash type;
  1848. /* readonly */
  1849. String typeName;
  1850. /* readonly */
  1851. int weakRefs;
  1852. };
  1853. class Color
  1854. {
  1855. // Methods:
  1856. Color Abs() const;
  1857. float Average() const;
  1858. float Chroma() const;
  1859. void Clip(bool);
  1860. bool Equals() const;
  1861. void FromHSL(float, float, float, float);
  1862. void FromHSV(float, float, float, float);
  1863. float Hue() const;
  1864. void Invert(bool);
  1865. Color Lerp(const Color&, float) const;
  1866. float Lightness() const;
  1867. float Luma() const;
  1868. float MaxRGB() const;
  1869. float MinRGB() const;
  1870. float Range() const;
  1871. float SaturationHSL() const;
  1872. float SaturationHSV() const;
  1873. float SumRGB() const;
  1874. Vector3 ToHSL() const;
  1875. Vector3 ToHSV() const;
  1876. String ToString() const;
  1877. uint ToUInt() const;
  1878. float Value() const;
  1879. // Properties:
  1880. float a;
  1881. float b;
  1882. /* readonly */
  1883. Array<float> data;
  1884. float g;
  1885. float r;
  1886. /* readonly */
  1887. Vector3 rgb;
  1888. /* readonly */
  1889. Vector4 rgba;
  1890. };
  1891. class ColorFrame
  1892. {
  1893. // Properties:
  1894. Color color;
  1895. float time;
  1896. };
  1897. class Component
  1898. {
  1899. // Methods:
  1900. void ApplyAttributes();
  1901. void DrawDebugGeometry(DebugRenderer, bool);
  1902. Variant GetAttribute(const String&) const;
  1903. ValueAnimation GetAttributeAnimation(const String&) const;
  1904. float GetAttributeAnimationSpeed(const String&) const;
  1905. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1906. Variant GetAttributeDefault(const String&) const;
  1907. bool Load(File, bool = false);
  1908. bool Load(VectorBuffer&, bool = false);
  1909. bool LoadXML(const XMLElement&, bool = false);
  1910. void MarkNetworkUpdate() const;
  1911. void Remove();
  1912. void RemoveInstanceDefault();
  1913. void ResetToDefault();
  1914. bool Save(File) const;
  1915. bool Save(VectorBuffer&) const;
  1916. bool SaveXML(XMLElement&) const;
  1917. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1918. bool SetAttribute(const String&, const Variant&);
  1919. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1920. void SetAttributeAnimationSpeed(const String&, float);
  1921. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1922. // Properties:
  1923. bool animationEnabled;
  1924. /* readonly */
  1925. Array<Variant> attributeDefaults;
  1926. /* readonly */
  1927. Array<AttributeInfo> attributeInfos;
  1928. Array<Variant> attributes;
  1929. /* readonly */
  1930. StringHash baseType;
  1931. /* readonly */
  1932. String category;
  1933. bool enabled;
  1934. /* readonly */
  1935. bool enabledEffective;
  1936. /* readonly */
  1937. uint id;
  1938. /* readonly */
  1939. Node node;
  1940. /* readonly */
  1941. uint numAttributes;
  1942. ObjectAnimation objectAnimation;
  1943. /* readonly */
  1944. int refs;
  1945. bool temporary;
  1946. /* readonly */
  1947. StringHash type;
  1948. /* readonly */
  1949. String typeName;
  1950. /* readonly */
  1951. int weakRefs;
  1952. };
  1953. class Connection
  1954. {
  1955. // Methods:
  1956. void Disconnect(int = 0);
  1957. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1958. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  1959. void SendPackageToClient(PackageFile);
  1960. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  1961. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  1962. String ToString() const;
  1963. // Properties:
  1964. /* readonly */
  1965. String address;
  1966. /* readonly */
  1967. StringHash baseType;
  1968. /* readonly */
  1969. String category;
  1970. /* readonly */
  1971. bool client;
  1972. /* readonly */
  1973. bool connectPending;
  1974. /* readonly */
  1975. bool connected;
  1976. Controls controls;
  1977. /* readonly */
  1978. String downloadName;
  1979. /* readonly */
  1980. float downloadProgress;
  1981. VariantMap identity;
  1982. bool logStatistics;
  1983. /* readonly */
  1984. uint numDownloads;
  1985. /* readonly */
  1986. uint16 port;
  1987. Vector3 position;
  1988. /* readonly */
  1989. int refs;
  1990. Quaternion rotation;
  1991. Scene scene;
  1992. /* readonly */
  1993. bool sceneLoaded;
  1994. /* readonly */
  1995. StringHash type;
  1996. /* readonly */
  1997. String typeName;
  1998. /* readonly */
  1999. int weakRefs;
  2000. };
  2001. class Console
  2002. {
  2003. // Methods:
  2004. void CopySelectedRows() const;
  2005. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2006. void Toggle();
  2007. void UpdateElements();
  2008. // Properties:
  2009. bool autoVisibleOnError;
  2010. /* readonly */
  2011. BorderImage background;
  2012. /* readonly */
  2013. StringHash baseType;
  2014. /* readonly */
  2015. String category;
  2016. /* readonly */
  2017. Button closeButton;
  2018. String commandInterpreter;
  2019. XMLFile defaultStyle;
  2020. bool focusOnShow;
  2021. /* readonly */
  2022. uint historyPosition;
  2023. /* readonly */
  2024. Array<String> historyRow;
  2025. /* readonly */
  2026. LineEdit lineEdit;
  2027. uint numBufferedRows;
  2028. uint numHistoryRows;
  2029. uint numRows;
  2030. /* readonly */
  2031. int refs;
  2032. /* readonly */
  2033. StringHash type;
  2034. /* readonly */
  2035. String typeName;
  2036. bool visible;
  2037. /* readonly */
  2038. int weakRefs;
  2039. };
  2040. class Constraint
  2041. {
  2042. // Methods:
  2043. void ApplyAttributes();
  2044. void DrawDebugGeometry(DebugRenderer, bool);
  2045. Variant GetAttribute(const String&) const;
  2046. ValueAnimation GetAttributeAnimation(const String&) const;
  2047. float GetAttributeAnimationSpeed(const String&) const;
  2048. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2049. Variant GetAttributeDefault(const String&) const;
  2050. bool Load(File, bool = false);
  2051. bool Load(VectorBuffer&, bool = false);
  2052. bool LoadXML(const XMLElement&, bool = false);
  2053. void MarkNetworkUpdate() const;
  2054. void Remove();
  2055. void RemoveInstanceDefault();
  2056. void ResetToDefault();
  2057. bool Save(File) const;
  2058. bool Save(VectorBuffer&) const;
  2059. bool SaveXML(XMLElement&) const;
  2060. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2061. bool SetAttribute(const String&, const Variant&);
  2062. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2063. void SetAttributeAnimationSpeed(const String&, float);
  2064. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2065. // Properties:
  2066. bool animationEnabled;
  2067. /* readonly */
  2068. Array<Variant> attributeDefaults;
  2069. /* readonly */
  2070. Array<AttributeInfo> attributeInfos;
  2071. Array<Variant> attributes;
  2072. /* writeonly */
  2073. Vector3 axis;
  2074. /* readonly */
  2075. StringHash baseType;
  2076. /* readonly */
  2077. String category;
  2078. float cfm;
  2079. ConstraintType constraintType;
  2080. bool disableCollision;
  2081. bool enabled;
  2082. /* readonly */
  2083. bool enabledEffective;
  2084. float erp;
  2085. Vector2 highLimit;
  2086. /* readonly */
  2087. uint id;
  2088. Vector2 lowLimit;
  2089. /* readonly */
  2090. Node node;
  2091. /* readonly */
  2092. uint numAttributes;
  2093. ObjectAnimation objectAnimation;
  2094. /* writeonly */
  2095. Vector3 otherAxis;
  2096. RigidBody otherBody;
  2097. Vector3 otherPosition;
  2098. Quaternion otherRotation;
  2099. /* readonly */
  2100. RigidBody ownBody;
  2101. Vector3 position;
  2102. /* readonly */
  2103. int refs;
  2104. Quaternion rotation;
  2105. bool temporary;
  2106. /* readonly */
  2107. StringHash type;
  2108. /* readonly */
  2109. String typeName;
  2110. /* readonly */
  2111. int weakRefs;
  2112. Vector3 worldPosition;
  2113. };
  2114. class Constraint2D
  2115. {
  2116. // Methods:
  2117. void ApplyAttributes();
  2118. void DrawDebugGeometry(DebugRenderer, bool);
  2119. Variant GetAttribute(const String&) const;
  2120. ValueAnimation GetAttributeAnimation(const String&) const;
  2121. float GetAttributeAnimationSpeed(const String&) const;
  2122. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2123. Variant GetAttributeDefault(const String&) const;
  2124. bool Load(File, bool = false);
  2125. bool Load(VectorBuffer&, bool = false);
  2126. bool LoadXML(const XMLElement&, bool = false);
  2127. void MarkNetworkUpdate() const;
  2128. void Remove();
  2129. void RemoveInstanceDefault();
  2130. void ResetToDefault();
  2131. bool Save(File) const;
  2132. bool Save(VectorBuffer&) const;
  2133. bool SaveXML(XMLElement&) const;
  2134. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2135. bool SetAttribute(const String&, const Variant&);
  2136. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2137. void SetAttributeAnimationSpeed(const String&, float);
  2138. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2139. // Properties:
  2140. bool animationEnabled;
  2141. /* readonly */
  2142. Array<Variant> attributeDefaults;
  2143. /* readonly */
  2144. Array<AttributeInfo> attributeInfos;
  2145. Array<Variant> attributes;
  2146. /* readonly */
  2147. StringHash baseType;
  2148. /* readonly */
  2149. String category;
  2150. bool collideConnected;
  2151. bool enabled;
  2152. /* readonly */
  2153. bool enabledEffective;
  2154. /* readonly */
  2155. uint id;
  2156. /* readonly */
  2157. Node node;
  2158. /* readonly */
  2159. uint numAttributes;
  2160. ObjectAnimation objectAnimation;
  2161. RigidBody2D otherBody;
  2162. /* readonly */
  2163. RigidBody2D ownerBody;
  2164. /* readonly */
  2165. int refs;
  2166. bool temporary;
  2167. /* readonly */
  2168. StringHash type;
  2169. /* readonly */
  2170. String typeName;
  2171. /* readonly */
  2172. int weakRefs;
  2173. };
  2174. class ConstraintDistance2D
  2175. {
  2176. // Methods:
  2177. void ApplyAttributes();
  2178. void DrawDebugGeometry(DebugRenderer, bool);
  2179. Variant GetAttribute(const String&) const;
  2180. ValueAnimation GetAttributeAnimation(const String&) const;
  2181. float GetAttributeAnimationSpeed(const String&) const;
  2182. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2183. Variant GetAttributeDefault(const String&) const;
  2184. bool Load(File, bool = false);
  2185. bool Load(VectorBuffer&, bool = false);
  2186. bool LoadXML(const XMLElement&, bool = false);
  2187. void MarkNetworkUpdate() const;
  2188. void Remove();
  2189. void RemoveInstanceDefault();
  2190. void ResetToDefault();
  2191. bool Save(File) const;
  2192. bool Save(VectorBuffer&) const;
  2193. bool SaveXML(XMLElement&) const;
  2194. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2195. bool SetAttribute(const String&, const Variant&);
  2196. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2197. void SetAttributeAnimationSpeed(const String&, float);
  2198. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2199. // Properties:
  2200. bool animationEnabled;
  2201. /* readonly */
  2202. Array<Variant> attributeDefaults;
  2203. /* readonly */
  2204. Array<AttributeInfo> attributeInfos;
  2205. Array<Variant> attributes;
  2206. /* readonly */
  2207. StringHash baseType;
  2208. /* readonly */
  2209. String category;
  2210. bool collideConnected;
  2211. float dampingRatio;
  2212. bool enabled;
  2213. /* readonly */
  2214. bool enabledEffective;
  2215. float frequencyHz;
  2216. /* readonly */
  2217. uint id;
  2218. /* readonly */
  2219. Node node;
  2220. /* readonly */
  2221. uint numAttributes;
  2222. ObjectAnimation objectAnimation;
  2223. RigidBody2D otherBody;
  2224. Vector2 otherBodyAnchor;
  2225. /* readonly */
  2226. RigidBody2D ownerBody;
  2227. Vector2 ownerBodyAnchor;
  2228. /* readonly */
  2229. int refs;
  2230. bool temporary;
  2231. /* readonly */
  2232. StringHash type;
  2233. /* readonly */
  2234. String typeName;
  2235. /* readonly */
  2236. int weakRefs;
  2237. };
  2238. class ConstraintFriction2D
  2239. {
  2240. // Methods:
  2241. void ApplyAttributes();
  2242. void DrawDebugGeometry(DebugRenderer, bool);
  2243. Variant GetAttribute(const String&) const;
  2244. ValueAnimation GetAttributeAnimation(const String&) const;
  2245. float GetAttributeAnimationSpeed(const String&) const;
  2246. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2247. Variant GetAttributeDefault(const String&) const;
  2248. bool Load(File, bool = false);
  2249. bool Load(VectorBuffer&, bool = false);
  2250. bool LoadXML(const XMLElement&, bool = false);
  2251. void MarkNetworkUpdate() const;
  2252. void Remove();
  2253. void RemoveInstanceDefault();
  2254. void ResetToDefault();
  2255. bool Save(File) const;
  2256. bool Save(VectorBuffer&) const;
  2257. bool SaveXML(XMLElement&) const;
  2258. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2259. bool SetAttribute(const String&, const Variant&);
  2260. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2261. void SetAttributeAnimationSpeed(const String&, float);
  2262. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2263. // Properties:
  2264. Vector2 anchor;
  2265. bool animationEnabled;
  2266. /* readonly */
  2267. Array<Variant> attributeDefaults;
  2268. /* readonly */
  2269. Array<AttributeInfo> attributeInfos;
  2270. Array<Variant> attributes;
  2271. /* readonly */
  2272. StringHash baseType;
  2273. /* readonly */
  2274. String category;
  2275. bool collideConnected;
  2276. bool enabled;
  2277. /* readonly */
  2278. bool enabledEffective;
  2279. /* readonly */
  2280. uint id;
  2281. float maxForce;
  2282. float maxTorque;
  2283. /* readonly */
  2284. Node node;
  2285. /* readonly */
  2286. uint numAttributes;
  2287. ObjectAnimation objectAnimation;
  2288. RigidBody2D otherBody;
  2289. /* readonly */
  2290. RigidBody2D ownerBody;
  2291. /* readonly */
  2292. int refs;
  2293. bool temporary;
  2294. /* readonly */
  2295. StringHash type;
  2296. /* readonly */
  2297. String typeName;
  2298. /* readonly */
  2299. int weakRefs;
  2300. };
  2301. class ConstraintGear2D
  2302. {
  2303. // Methods:
  2304. void ApplyAttributes();
  2305. void DrawDebugGeometry(DebugRenderer, bool);
  2306. Variant GetAttribute(const String&) const;
  2307. ValueAnimation GetAttributeAnimation(const String&) const;
  2308. float GetAttributeAnimationSpeed(const String&) const;
  2309. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2310. Variant GetAttributeDefault(const String&) const;
  2311. bool Load(File, bool = false);
  2312. bool Load(VectorBuffer&, bool = false);
  2313. bool LoadXML(const XMLElement&, bool = false);
  2314. void MarkNetworkUpdate() const;
  2315. void Remove();
  2316. void RemoveInstanceDefault();
  2317. void ResetToDefault();
  2318. bool Save(File) const;
  2319. bool Save(VectorBuffer&) const;
  2320. bool SaveXML(XMLElement&) const;
  2321. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2322. bool SetAttribute(const String&, const Variant&);
  2323. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2324. void SetAttributeAnimationSpeed(const String&, float);
  2325. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2326. // Properties:
  2327. bool animationEnabled;
  2328. /* readonly */
  2329. Array<Variant> attributeDefaults;
  2330. /* readonly */
  2331. Array<AttributeInfo> attributeInfos;
  2332. Array<Variant> attributes;
  2333. /* readonly */
  2334. StringHash baseType;
  2335. /* readonly */
  2336. String category;
  2337. bool collideConnected;
  2338. bool enabled;
  2339. /* readonly */
  2340. bool enabledEffective;
  2341. /* readonly */
  2342. uint id;
  2343. /* readonly */
  2344. Node node;
  2345. /* readonly */
  2346. uint numAttributes;
  2347. ObjectAnimation objectAnimation;
  2348. RigidBody2D otherBody;
  2349. Constraint2D otherConstraint;
  2350. /* readonly */
  2351. RigidBody2D ownerBody;
  2352. Constraint2D ownerConstraint;
  2353. float ratio;
  2354. /* readonly */
  2355. int refs;
  2356. bool temporary;
  2357. /* readonly */
  2358. StringHash type;
  2359. /* readonly */
  2360. String typeName;
  2361. /* readonly */
  2362. int weakRefs;
  2363. };
  2364. class ConstraintMotor2D
  2365. {
  2366. // Methods:
  2367. void ApplyAttributes();
  2368. void DrawDebugGeometry(DebugRenderer, bool);
  2369. Variant GetAttribute(const String&) const;
  2370. ValueAnimation GetAttributeAnimation(const String&) const;
  2371. float GetAttributeAnimationSpeed(const String&) const;
  2372. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2373. Variant GetAttributeDefault(const String&) const;
  2374. bool Load(File, bool = false);
  2375. bool Load(VectorBuffer&, bool = false);
  2376. bool LoadXML(const XMLElement&, bool = false);
  2377. void MarkNetworkUpdate() const;
  2378. void Remove();
  2379. void RemoveInstanceDefault();
  2380. void ResetToDefault();
  2381. bool Save(File) const;
  2382. bool Save(VectorBuffer&) const;
  2383. bool SaveXML(XMLElement&) const;
  2384. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2385. bool SetAttribute(const String&, const Variant&);
  2386. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2387. void SetAttributeAnimationSpeed(const String&, float);
  2388. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2389. // Properties:
  2390. float angularOffset;
  2391. bool animationEnabled;
  2392. /* readonly */
  2393. Array<Variant> attributeDefaults;
  2394. /* readonly */
  2395. Array<AttributeInfo> attributeInfos;
  2396. Array<Variant> attributes;
  2397. /* readonly */
  2398. StringHash baseType;
  2399. /* readonly */
  2400. String category;
  2401. bool collideConnected;
  2402. float correctionFactor;
  2403. bool enabled;
  2404. /* readonly */
  2405. bool enabledEffective;
  2406. /* readonly */
  2407. uint id;
  2408. Vector2 linearOffset;
  2409. float maxForce;
  2410. float maxTorque;
  2411. /* readonly */
  2412. Node node;
  2413. /* readonly */
  2414. uint numAttributes;
  2415. ObjectAnimation objectAnimation;
  2416. RigidBody2D otherBody;
  2417. /* readonly */
  2418. RigidBody2D ownerBody;
  2419. /* readonly */
  2420. int refs;
  2421. bool temporary;
  2422. /* readonly */
  2423. StringHash type;
  2424. /* readonly */
  2425. String typeName;
  2426. /* readonly */
  2427. int weakRefs;
  2428. };
  2429. class ConstraintMouse2D
  2430. {
  2431. // Methods:
  2432. void ApplyAttributes();
  2433. void DrawDebugGeometry(DebugRenderer, bool);
  2434. Variant GetAttribute(const String&) const;
  2435. ValueAnimation GetAttributeAnimation(const String&) const;
  2436. float GetAttributeAnimationSpeed(const String&) const;
  2437. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2438. Variant GetAttributeDefault(const String&) const;
  2439. bool Load(File, bool = false);
  2440. bool Load(VectorBuffer&, bool = false);
  2441. bool LoadXML(const XMLElement&, bool = false);
  2442. void MarkNetworkUpdate() const;
  2443. void Remove();
  2444. void RemoveInstanceDefault();
  2445. void ResetToDefault();
  2446. bool Save(File) const;
  2447. bool Save(VectorBuffer&) const;
  2448. bool SaveXML(XMLElement&) const;
  2449. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2450. bool SetAttribute(const String&, const Variant&);
  2451. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2452. void SetAttributeAnimationSpeed(const String&, float);
  2453. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2454. // Properties:
  2455. bool animationEnabled;
  2456. /* readonly */
  2457. Array<Variant> attributeDefaults;
  2458. /* readonly */
  2459. Array<AttributeInfo> attributeInfos;
  2460. Array<Variant> attributes;
  2461. /* readonly */
  2462. StringHash baseType;
  2463. /* readonly */
  2464. String category;
  2465. bool collideConnected;
  2466. float dampingRatio;
  2467. bool enabled;
  2468. /* readonly */
  2469. bool enabledEffective;
  2470. float frequencyHz;
  2471. /* readonly */
  2472. uint id;
  2473. float maxForce;
  2474. /* readonly */
  2475. Node node;
  2476. /* readonly */
  2477. uint numAttributes;
  2478. ObjectAnimation objectAnimation;
  2479. RigidBody2D otherBody;
  2480. /* readonly */
  2481. RigidBody2D ownerBody;
  2482. /* readonly */
  2483. int refs;
  2484. Vector2 target;
  2485. bool temporary;
  2486. /* readonly */
  2487. StringHash type;
  2488. /* readonly */
  2489. String typeName;
  2490. /* readonly */
  2491. int weakRefs;
  2492. };
  2493. class ConstraintPrismatic2D
  2494. {
  2495. // Methods:
  2496. void ApplyAttributes();
  2497. void DrawDebugGeometry(DebugRenderer, bool);
  2498. Variant GetAttribute(const String&) const;
  2499. ValueAnimation GetAttributeAnimation(const String&) const;
  2500. float GetAttributeAnimationSpeed(const String&) const;
  2501. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2502. Variant GetAttributeDefault(const String&) const;
  2503. bool Load(File, bool = false);
  2504. bool Load(VectorBuffer&, bool = false);
  2505. bool LoadXML(const XMLElement&, bool = false);
  2506. void MarkNetworkUpdate() const;
  2507. void Remove();
  2508. void RemoveInstanceDefault();
  2509. void ResetToDefault();
  2510. bool Save(File) const;
  2511. bool Save(VectorBuffer&) const;
  2512. bool SaveXML(XMLElement&) const;
  2513. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2514. bool SetAttribute(const String&, const Variant&);
  2515. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2516. void SetAttributeAnimationSpeed(const String&, float);
  2517. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2518. // Properties:
  2519. Vector2 anchor;
  2520. bool animationEnabled;
  2521. /* readonly */
  2522. Array<Variant> attributeDefaults;
  2523. /* readonly */
  2524. Array<AttributeInfo> attributeInfos;
  2525. Array<Variant> attributes;
  2526. Vector2 axis;
  2527. /* readonly */
  2528. StringHash baseType;
  2529. /* readonly */
  2530. String category;
  2531. bool collideConnected;
  2532. bool enableLimit;
  2533. bool enableMotor;
  2534. bool enabled;
  2535. /* readonly */
  2536. bool enabledEffective;
  2537. /* readonly */
  2538. uint id;
  2539. float lowerTranslation;
  2540. float maxMotorForce;
  2541. float motorSpeed;
  2542. /* readonly */
  2543. Node node;
  2544. /* readonly */
  2545. uint numAttributes;
  2546. ObjectAnimation objectAnimation;
  2547. RigidBody2D otherBody;
  2548. /* readonly */
  2549. RigidBody2D ownerBody;
  2550. /* readonly */
  2551. int refs;
  2552. bool temporary;
  2553. /* readonly */
  2554. StringHash type;
  2555. /* readonly */
  2556. String typeName;
  2557. float upperTranslation;
  2558. /* readonly */
  2559. int weakRefs;
  2560. };
  2561. class ConstraintPulley2D
  2562. {
  2563. // Methods:
  2564. void ApplyAttributes();
  2565. void DrawDebugGeometry(DebugRenderer, bool);
  2566. Variant GetAttribute(const String&) const;
  2567. ValueAnimation GetAttributeAnimation(const String&) const;
  2568. float GetAttributeAnimationSpeed(const String&) const;
  2569. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2570. Variant GetAttributeDefault(const String&) const;
  2571. bool Load(File, bool = false);
  2572. bool Load(VectorBuffer&, bool = false);
  2573. bool LoadXML(const XMLElement&, bool = false);
  2574. void MarkNetworkUpdate() const;
  2575. void Remove();
  2576. void RemoveInstanceDefault();
  2577. void ResetToDefault();
  2578. bool Save(File) const;
  2579. bool Save(VectorBuffer&) const;
  2580. bool SaveXML(XMLElement&) const;
  2581. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2582. bool SetAttribute(const String&, const Variant&);
  2583. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2584. void SetAttributeAnimationSpeed(const String&, float);
  2585. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2586. // Properties:
  2587. bool animationEnabled;
  2588. /* readonly */
  2589. Array<Variant> attributeDefaults;
  2590. /* readonly */
  2591. Array<AttributeInfo> attributeInfos;
  2592. Array<Variant> attributes;
  2593. /* readonly */
  2594. StringHash baseType;
  2595. /* readonly */
  2596. String category;
  2597. bool collideConnected;
  2598. bool enabled;
  2599. /* readonly */
  2600. bool enabledEffective;
  2601. /* readonly */
  2602. uint id;
  2603. /* readonly */
  2604. Node node;
  2605. /* readonly */
  2606. uint numAttributes;
  2607. ObjectAnimation objectAnimation;
  2608. RigidBody2D otherBody;
  2609. Vector2 otherBodyAnchor;
  2610. Vector2 otherBodyGroundAnchor;
  2611. /* readonly */
  2612. RigidBody2D ownerBody;
  2613. Vector2 ownerBodyAnchor;
  2614. Vector2 ownerBodyGroundAnchor;
  2615. float ratio;
  2616. /* readonly */
  2617. int refs;
  2618. bool temporary;
  2619. /* readonly */
  2620. StringHash type;
  2621. /* readonly */
  2622. String typeName;
  2623. /* readonly */
  2624. int weakRefs;
  2625. };
  2626. class ConstraintRevolute2D
  2627. {
  2628. // Methods:
  2629. void ApplyAttributes();
  2630. void DrawDebugGeometry(DebugRenderer, bool);
  2631. Variant GetAttribute(const String&) const;
  2632. ValueAnimation GetAttributeAnimation(const String&) const;
  2633. float GetAttributeAnimationSpeed(const String&) const;
  2634. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2635. Variant GetAttributeDefault(const String&) const;
  2636. bool Load(File, bool = false);
  2637. bool Load(VectorBuffer&, bool = false);
  2638. bool LoadXML(const XMLElement&, bool = false);
  2639. void MarkNetworkUpdate() const;
  2640. void Remove();
  2641. void RemoveInstanceDefault();
  2642. void ResetToDefault();
  2643. bool Save(File) const;
  2644. bool Save(VectorBuffer&) const;
  2645. bool SaveXML(XMLElement&) const;
  2646. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2647. bool SetAttribute(const String&, const Variant&);
  2648. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2649. void SetAttributeAnimationSpeed(const String&, float);
  2650. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2651. // Properties:
  2652. Vector2 anchor;
  2653. bool animationEnabled;
  2654. /* readonly */
  2655. Array<Variant> attributeDefaults;
  2656. /* readonly */
  2657. Array<AttributeInfo> attributeInfos;
  2658. Array<Variant> attributes;
  2659. /* readonly */
  2660. StringHash baseType;
  2661. /* readonly */
  2662. String category;
  2663. bool collideConnected;
  2664. bool enableLimit;
  2665. bool enableMotor;
  2666. bool enabled;
  2667. /* readonly */
  2668. bool enabledEffective;
  2669. /* readonly */
  2670. uint id;
  2671. float lowerAngle;
  2672. float maxMotorTorque;
  2673. float motorSpeed;
  2674. /* readonly */
  2675. Node node;
  2676. /* readonly */
  2677. uint numAttributes;
  2678. ObjectAnimation objectAnimation;
  2679. RigidBody2D otherBody;
  2680. /* readonly */
  2681. RigidBody2D ownerBody;
  2682. /* readonly */
  2683. int refs;
  2684. bool temporary;
  2685. /* readonly */
  2686. StringHash type;
  2687. /* readonly */
  2688. String typeName;
  2689. float upperAngle;
  2690. /* readonly */
  2691. int weakRefs;
  2692. };
  2693. class ConstraintRope2D
  2694. {
  2695. // Methods:
  2696. void ApplyAttributes();
  2697. void DrawDebugGeometry(DebugRenderer, bool);
  2698. Variant GetAttribute(const String&) const;
  2699. ValueAnimation GetAttributeAnimation(const String&) const;
  2700. float GetAttributeAnimationSpeed(const String&) const;
  2701. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2702. Variant GetAttributeDefault(const String&) const;
  2703. bool Load(File, bool = false);
  2704. bool Load(VectorBuffer&, bool = false);
  2705. bool LoadXML(const XMLElement&, bool = false);
  2706. void MarkNetworkUpdate() const;
  2707. void Remove();
  2708. void RemoveInstanceDefault();
  2709. void ResetToDefault();
  2710. bool Save(File) const;
  2711. bool Save(VectorBuffer&) const;
  2712. bool SaveXML(XMLElement&) const;
  2713. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2714. bool SetAttribute(const String&, const Variant&);
  2715. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2716. void SetAttributeAnimationSpeed(const String&, float);
  2717. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2718. // Properties:
  2719. bool animationEnabled;
  2720. /* readonly */
  2721. Array<Variant> attributeDefaults;
  2722. /* readonly */
  2723. Array<AttributeInfo> attributeInfos;
  2724. Array<Variant> attributes;
  2725. /* readonly */
  2726. StringHash baseType;
  2727. /* readonly */
  2728. String category;
  2729. bool collideConnected;
  2730. bool enabled;
  2731. /* readonly */
  2732. bool enabledEffective;
  2733. /* readonly */
  2734. uint id;
  2735. float maxLength;
  2736. /* readonly */
  2737. Node node;
  2738. /* readonly */
  2739. uint numAttributes;
  2740. ObjectAnimation objectAnimation;
  2741. RigidBody2D otherBody;
  2742. Vector2 otherBodyAnchor;
  2743. /* readonly */
  2744. RigidBody2D ownerBody;
  2745. Vector2 ownerBodyAnchor;
  2746. /* readonly */
  2747. int refs;
  2748. bool temporary;
  2749. /* readonly */
  2750. StringHash type;
  2751. /* readonly */
  2752. String typeName;
  2753. /* readonly */
  2754. int weakRefs;
  2755. };
  2756. class ConstraintWeld2D
  2757. {
  2758. // Methods:
  2759. void ApplyAttributes();
  2760. void DrawDebugGeometry(DebugRenderer, bool);
  2761. Variant GetAttribute(const String&) const;
  2762. ValueAnimation GetAttributeAnimation(const String&) const;
  2763. float GetAttributeAnimationSpeed(const String&) const;
  2764. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2765. Variant GetAttributeDefault(const String&) const;
  2766. bool Load(File, bool = false);
  2767. bool Load(VectorBuffer&, bool = false);
  2768. bool LoadXML(const XMLElement&, bool = false);
  2769. void MarkNetworkUpdate() const;
  2770. void Remove();
  2771. void RemoveInstanceDefault();
  2772. void ResetToDefault();
  2773. bool Save(File) const;
  2774. bool Save(VectorBuffer&) const;
  2775. bool SaveXML(XMLElement&) const;
  2776. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2777. bool SetAttribute(const String&, const Variant&);
  2778. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2779. void SetAttributeAnimationSpeed(const String&, float);
  2780. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2781. // Properties:
  2782. Vector2 anchor;
  2783. bool animationEnabled;
  2784. /* readonly */
  2785. Array<Variant> attributeDefaults;
  2786. /* readonly */
  2787. Array<AttributeInfo> attributeInfos;
  2788. Array<Variant> attributes;
  2789. /* readonly */
  2790. StringHash baseType;
  2791. /* readonly */
  2792. String category;
  2793. bool collideConnected;
  2794. float dampingRatio;
  2795. bool enabled;
  2796. /* readonly */
  2797. bool enabledEffective;
  2798. float frequencyHz;
  2799. /* readonly */
  2800. uint id;
  2801. /* readonly */
  2802. Node node;
  2803. /* readonly */
  2804. uint numAttributes;
  2805. ObjectAnimation objectAnimation;
  2806. RigidBody2D otherBody;
  2807. /* readonly */
  2808. RigidBody2D ownerBody;
  2809. /* readonly */
  2810. int refs;
  2811. bool temporary;
  2812. /* readonly */
  2813. StringHash type;
  2814. /* readonly */
  2815. String typeName;
  2816. /* readonly */
  2817. int weakRefs;
  2818. };
  2819. class ConstraintWheel2D
  2820. {
  2821. // Methods:
  2822. void ApplyAttributes();
  2823. void DrawDebugGeometry(DebugRenderer, bool);
  2824. Variant GetAttribute(const String&) const;
  2825. ValueAnimation GetAttributeAnimation(const String&) const;
  2826. float GetAttributeAnimationSpeed(const String&) const;
  2827. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2828. Variant GetAttributeDefault(const String&) const;
  2829. bool Load(File, bool = false);
  2830. bool Load(VectorBuffer&, bool = false);
  2831. bool LoadXML(const XMLElement&, bool = false);
  2832. void MarkNetworkUpdate() const;
  2833. void Remove();
  2834. void RemoveInstanceDefault();
  2835. void ResetToDefault();
  2836. bool Save(File) const;
  2837. bool Save(VectorBuffer&) const;
  2838. bool SaveXML(XMLElement&) const;
  2839. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2840. bool SetAttribute(const String&, const Variant&);
  2841. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2842. void SetAttributeAnimationSpeed(const String&, float);
  2843. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2844. // Properties:
  2845. Vector2 anchor;
  2846. bool animationEnabled;
  2847. /* readonly */
  2848. Array<Variant> attributeDefaults;
  2849. /* readonly */
  2850. Array<AttributeInfo> attributeInfos;
  2851. Array<Variant> attributes;
  2852. Vector2 axis;
  2853. /* readonly */
  2854. StringHash baseType;
  2855. /* readonly */
  2856. String category;
  2857. bool collideConnected;
  2858. float dampingRatio;
  2859. bool enableMotor;
  2860. bool enabled;
  2861. /* readonly */
  2862. bool enabledEffective;
  2863. float frequencyHz;
  2864. /* readonly */
  2865. uint id;
  2866. float maxMotorTorque;
  2867. float motorSpeed;
  2868. /* readonly */
  2869. Node node;
  2870. /* readonly */
  2871. uint numAttributes;
  2872. ObjectAnimation objectAnimation;
  2873. RigidBody2D otherBody;
  2874. /* readonly */
  2875. RigidBody2D ownerBody;
  2876. /* readonly */
  2877. int refs;
  2878. bool temporary;
  2879. /* readonly */
  2880. StringHash type;
  2881. /* readonly */
  2882. String typeName;
  2883. /* readonly */
  2884. int weakRefs;
  2885. };
  2886. class Controls
  2887. {
  2888. // Methods:
  2889. bool IsDown(uint) const;
  2890. bool IsPressed(uint, const Controls&) const;
  2891. void Reset();
  2892. void Set(uint, bool);
  2893. // Properties:
  2894. uint buttons;
  2895. VariantMap extraData;
  2896. float pitch;
  2897. float yaw;
  2898. };
  2899. class Cursor
  2900. {
  2901. // Methods:
  2902. void AddChild(UIElement);
  2903. void ApplyAttributes();
  2904. void BringToFront();
  2905. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  2906. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  2907. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  2908. void DisableLayoutUpdate();
  2909. IntVector2 ElementToScreen(const IntVector2&);
  2910. void EnableLayoutUpdate();
  2911. uint FindChild(UIElement) const;
  2912. Variant GetAttribute(const String&) const;
  2913. ValueAnimation GetAttributeAnimation(const String&) const;
  2914. float GetAttributeAnimationSpeed(const String&) const;
  2915. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2916. Variant GetAttributeDefault(const String&) const;
  2917. UIElement GetChild(const String&, bool = false) const;
  2918. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  2919. Array<UIElement> GetChildren(bool = false) const;
  2920. UIElement GetElementEventSender() const;
  2921. uint GetNumChildren(bool) const;
  2922. void InsertChild(uint, UIElement);
  2923. bool IsInside(IntVector2, bool);
  2924. bool IsInsideCombined(IntVector2, bool);
  2925. bool Load(File, bool = false);
  2926. bool Load(VectorBuffer&, bool = false);
  2927. bool LoadChildXML(XMLFile, XMLFile = null);
  2928. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  2929. bool LoadXML(File);
  2930. bool LoadXML(VectorBuffer&);
  2931. bool LoadXML(XMLFile, XMLFile);
  2932. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  2933. bool LoadXML(const XMLElement&, bool = false);
  2934. void MarkNetworkUpdate() const;
  2935. void Remove();
  2936. void RemoveAllChildren();
  2937. void RemoveChild(UIElement, uint = 0);
  2938. void RemoveChild(uint);
  2939. void RemoveInstanceDefault();
  2940. void ResetDeepEnabled();
  2941. void ResetToDefault();
  2942. bool Save(File) const;
  2943. bool Save(VectorBuffer&) const;
  2944. bool SaveXML(File);
  2945. bool SaveXML(VectorBuffer&);
  2946. bool SaveXML(XMLElement&) const;
  2947. IntVector2 ScreenToElement(const IntVector2&);
  2948. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2949. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  2950. bool SetAttribute(const String&, const Variant&);
  2951. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2952. void SetAttributeAnimationSpeed(const String&, float);
  2953. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2954. void SetDeepEnabled(bool);
  2955. void SetEnabledRecursive(bool);
  2956. void SetFixedHeight(int);
  2957. void SetFixedSize(int, int);
  2958. void SetFixedWidth(int);
  2959. void SetFullImageRect();
  2960. void SetHoverOffset(int, int);
  2961. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  2962. void SetMaxSize(int, int);
  2963. void SetMinSize(int, int);
  2964. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  2965. void SetPosition(int, int);
  2966. void SetShape(CursorShape);
  2967. void SetShape(const String&);
  2968. void SetSize(int, int);
  2969. bool SetStyle(const String&, XMLFile = null);
  2970. bool SetStyle(const XMLElement&);
  2971. bool SetStyleAuto(XMLFile = null);
  2972. void UpdateLayout();
  2973. const Variant& GetVar(const StringHash&);
  2974. // Properties:
  2975. bool animationEnabled;
  2976. /* readonly */
  2977. Array<Variant> attributeDefaults;
  2978. /* readonly */
  2979. Array<AttributeInfo> attributeInfos;
  2980. Array<Variant> attributes;
  2981. /* readonly */
  2982. StringHash baseType;
  2983. BlendMode blendMode;
  2984. IntRect border;
  2985. bool bringToBack;
  2986. bool bringToFront;
  2987. /* readonly */
  2988. String category;
  2989. /* readonly */
  2990. IntVector2 childOffset;
  2991. /* readonly */
  2992. Array<UIElement> children;
  2993. IntRect clipBorder;
  2994. bool clipChildren;
  2995. /* writeonly */
  2996. Color color;
  2997. /* readonly */
  2998. bool colorGradient;
  2999. Array<Color> colors;
  3000. /* readonly */
  3001. IntRect combinedScreenRect;
  3002. XMLFile defaultStyle;
  3003. /* readonly */
  3004. float derivedOpacity;
  3005. /* readonly */
  3006. uint dragButtonCombo;
  3007. /* readonly */
  3008. int dragButtonCount;
  3009. uint dragDropMode;
  3010. bool editable;
  3011. bool elementEventSender;
  3012. bool enabled;
  3013. /* readonly */
  3014. bool enabledSelf;
  3015. /* readonly */
  3016. bool fixedHeight;
  3017. /* readonly */
  3018. bool fixedSize;
  3019. /* readonly */
  3020. bool fixedWidth;
  3021. bool focus;
  3022. FocusMode focusMode;
  3023. int height;
  3024. HorizontalAlignment horizontalAlignment;
  3025. IntVector2 hoverOffset;
  3026. /* readonly */
  3027. bool hovering;
  3028. IntRect imageBorder;
  3029. IntRect imageRect;
  3030. int indent;
  3031. int indentSpacing;
  3032. /* readonly */
  3033. int indentWidth;
  3034. bool internal;
  3035. IntRect layoutBorder;
  3036. Vector2 layoutFlexScale;
  3037. LayoutMode layoutMode;
  3038. int layoutSpacing;
  3039. int maxHeight;
  3040. IntVector2 maxSize;
  3041. int maxWidth;
  3042. int minHeight;
  3043. IntVector2 minSize;
  3044. int minWidth;
  3045. String name;
  3046. /* readonly */
  3047. uint numAllChildren;
  3048. /* readonly */
  3049. uint numAttributes;
  3050. /* readonly */
  3051. uint numChildren;
  3052. ObjectAnimation objectAnimation;
  3053. float opacity;
  3054. UIElement parent;
  3055. IntVector2 position;
  3056. int priority;
  3057. /* readonly */
  3058. int refs;
  3059. /* readonly */
  3060. UIElement root;
  3061. /* readonly */
  3062. IntVector2 screenPosition;
  3063. bool selected;
  3064. String shape;
  3065. IntVector2 size;
  3066. bool sortChildren;
  3067. String style;
  3068. bool temporary;
  3069. Texture texture;
  3070. bool tiled;
  3071. TraversalMode traversalMode;
  3072. /* readonly */
  3073. StringHash type;
  3074. /* readonly */
  3075. String typeName;
  3076. bool useDerivedOpacity;
  3077. bool useSystemShapes;
  3078. /* readonly */
  3079. VariantMap vars;
  3080. VerticalAlignment verticalAlignment;
  3081. bool visible;
  3082. /* readonly */
  3083. int weakRefs;
  3084. int width;
  3085. };
  3086. class CustomGeometry
  3087. {
  3088. // Methods:
  3089. void ApplyAttributes();
  3090. void BeginGeometry(uint, PrimitiveType);
  3091. void Clear();
  3092. void Commit();
  3093. void DefineColor(const Color&);
  3094. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3095. void DefineNormal(const Vector3&);
  3096. void DefineTangent(const Vector4&);
  3097. void DefineTexCoord(const Vector2&);
  3098. void DefineVertex(const Vector3&);
  3099. void DrawDebugGeometry(DebugRenderer, bool);
  3100. Variant GetAttribute(const String&) const;
  3101. ValueAnimation GetAttributeAnimation(const String&) const;
  3102. float GetAttributeAnimationSpeed(const String&) const;
  3103. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3104. Variant GetAttributeDefault(const String&) const;
  3105. CustomGeometryVertex GetVertex(uint, uint);
  3106. bool IsInView(Camera) const;
  3107. bool Load(File, bool = false);
  3108. bool Load(VectorBuffer&, bool = false);
  3109. bool LoadXML(const XMLElement&, bool = false);
  3110. void MarkNetworkUpdate() const;
  3111. void Remove();
  3112. void RemoveInstanceDefault();
  3113. void ResetToDefault();
  3114. bool Save(File) const;
  3115. bool Save(VectorBuffer&) const;
  3116. bool SaveXML(XMLElement&) const;
  3117. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3118. bool SetAttribute(const String&, const Variant&);
  3119. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3120. void SetAttributeAnimationSpeed(const String&, float);
  3121. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3122. // Properties:
  3123. bool animationEnabled;
  3124. /* readonly */
  3125. Array<Variant> attributeDefaults;
  3126. /* readonly */
  3127. Array<AttributeInfo> attributeInfos;
  3128. Array<Variant> attributes;
  3129. /* readonly */
  3130. StringHash baseType;
  3131. /* readonly */
  3132. BoundingBox boundingBox;
  3133. bool castShadows;
  3134. /* readonly */
  3135. String category;
  3136. float drawDistance;
  3137. bool dynamic;
  3138. bool enabled;
  3139. /* readonly */
  3140. bool enabledEffective;
  3141. /* readonly */
  3142. uint id;
  3143. /* readonly */
  3144. bool inView;
  3145. uint lightMask;
  3146. float lodBias;
  3147. /* writeonly */
  3148. Material material;
  3149. Array<Material> materials;
  3150. uint maxLights;
  3151. /* readonly */
  3152. Node node;
  3153. /* readonly */
  3154. uint numAttributes;
  3155. uint numGeometries;
  3156. /* readonly */
  3157. Array<uint> numVertices;
  3158. ObjectAnimation objectAnimation;
  3159. bool occludee;
  3160. bool occluder;
  3161. /* readonly */
  3162. int refs;
  3163. float shadowDistance;
  3164. uint shadowMask;
  3165. bool temporary;
  3166. /* readonly */
  3167. StringHash type;
  3168. /* readonly */
  3169. String typeName;
  3170. uint viewMask;
  3171. /* readonly */
  3172. int weakRefs;
  3173. /* readonly */
  3174. BoundingBox worldBoundingBox;
  3175. /* readonly */
  3176. Zone zone;
  3177. uint zoneMask;
  3178. };
  3179. class CustomGeometryVertex
  3180. {
  3181. // Properties:
  3182. uint color;
  3183. Vector3 normal;
  3184. Vector3 position;
  3185. Vector4 tangent;
  3186. Vector2 texCoord;
  3187. };
  3188. class DebugHud
  3189. {
  3190. // Methods:
  3191. void ClearAppStats();
  3192. void ResetAppStats(const String&);
  3193. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3194. void SetAppStats(const String&, const String&);
  3195. void SetAppStats(const String&, const Variant&);
  3196. void Toggle(uint);
  3197. void ToggleAll();
  3198. void Update();
  3199. // Properties:
  3200. /* readonly */
  3201. StringHash baseType;
  3202. /* readonly */
  3203. String category;
  3204. XMLFile defaultStyle;
  3205. uint mode;
  3206. /* readonly */
  3207. Text modeText;
  3208. float profilerInterval;
  3209. uint profilerMaxDepth;
  3210. /* readonly */
  3211. Text profilerText;
  3212. /* readonly */
  3213. int refs;
  3214. /* readonly */
  3215. Text statsText;
  3216. /* readonly */
  3217. StringHash type;
  3218. /* readonly */
  3219. String typeName;
  3220. bool useRendererStats;
  3221. /* readonly */
  3222. int weakRefs;
  3223. };
  3224. class DebugRenderer
  3225. {
  3226. // Methods:
  3227. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3228. void AddFrustum(const Frustum&, const Color&, bool = true);
  3229. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3230. void AddNode(Node, float = 1.0, bool = true);
  3231. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3232. void AddSkeleton(Skeleton, const Color&, bool = true);
  3233. void AddSphere(const Sphere&, const Color&, bool = true);
  3234. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3235. void ApplyAttributes();
  3236. void DrawDebugGeometry(DebugRenderer, bool);
  3237. Variant GetAttribute(const String&) const;
  3238. ValueAnimation GetAttributeAnimation(const String&) const;
  3239. float GetAttributeAnimationSpeed(const String&) const;
  3240. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3241. Variant GetAttributeDefault(const String&) const;
  3242. bool Load(File, bool = false);
  3243. bool Load(VectorBuffer&, bool = false);
  3244. bool LoadXML(const XMLElement&, bool = false);
  3245. void MarkNetworkUpdate() const;
  3246. void Remove();
  3247. void RemoveInstanceDefault();
  3248. void ResetToDefault();
  3249. bool Save(File) const;
  3250. bool Save(VectorBuffer&) const;
  3251. bool SaveXML(XMLElement&) const;
  3252. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3253. bool SetAttribute(const String&, const Variant&);
  3254. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3255. void SetAttributeAnimationSpeed(const String&, float);
  3256. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3257. // Properties:
  3258. bool animationEnabled;
  3259. /* readonly */
  3260. Array<Variant> attributeDefaults;
  3261. /* readonly */
  3262. Array<AttributeInfo> attributeInfos;
  3263. Array<Variant> attributes;
  3264. /* readonly */
  3265. StringHash baseType;
  3266. /* readonly */
  3267. String category;
  3268. bool enabled;
  3269. /* readonly */
  3270. bool enabledEffective;
  3271. /* readonly */
  3272. uint id;
  3273. /* readonly */
  3274. Node node;
  3275. /* readonly */
  3276. uint numAttributes;
  3277. ObjectAnimation objectAnimation;
  3278. /* readonly */
  3279. int refs;
  3280. bool temporary;
  3281. /* readonly */
  3282. StringHash type;
  3283. /* readonly */
  3284. String typeName;
  3285. /* readonly */
  3286. int weakRefs;
  3287. };
  3288. class DecalSet
  3289. {
  3290. // Methods:
  3291. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3292. void ApplyAttributes();
  3293. void DrawDebugGeometry(DebugRenderer, bool);
  3294. Variant GetAttribute(const String&) const;
  3295. ValueAnimation GetAttributeAnimation(const String&) const;
  3296. float GetAttributeAnimationSpeed(const String&) const;
  3297. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3298. Variant GetAttributeDefault(const String&) const;
  3299. bool IsInView(Camera) const;
  3300. bool Load(File, bool = false);
  3301. bool Load(VectorBuffer&, bool = false);
  3302. bool LoadXML(const XMLElement&, bool = false);
  3303. void MarkNetworkUpdate() const;
  3304. void Remove();
  3305. void RemoveAllDecals();
  3306. void RemoveDecals(uint);
  3307. void RemoveInstanceDefault();
  3308. void ResetToDefault();
  3309. bool Save(File) const;
  3310. bool Save(VectorBuffer&) const;
  3311. bool SaveXML(XMLElement&) const;
  3312. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3313. bool SetAttribute(const String&, const Variant&);
  3314. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3315. void SetAttributeAnimationSpeed(const String&, float);
  3316. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3317. // Properties:
  3318. bool animationEnabled;
  3319. /* readonly */
  3320. Array<Variant> attributeDefaults;
  3321. /* readonly */
  3322. Array<AttributeInfo> attributeInfos;
  3323. Array<Variant> attributes;
  3324. /* readonly */
  3325. StringHash baseType;
  3326. /* readonly */
  3327. BoundingBox boundingBox;
  3328. bool castShadows;
  3329. /* readonly */
  3330. String category;
  3331. float drawDistance;
  3332. bool enabled;
  3333. /* readonly */
  3334. bool enabledEffective;
  3335. /* readonly */
  3336. uint id;
  3337. /* readonly */
  3338. bool inView;
  3339. uint lightMask;
  3340. float lodBias;
  3341. Material material;
  3342. uint maxIndices;
  3343. uint maxLights;
  3344. uint maxVertices;
  3345. /* readonly */
  3346. Node node;
  3347. /* readonly */
  3348. uint numAttributes;
  3349. /* readonly */
  3350. uint numDecals;
  3351. /* readonly */
  3352. uint numIndices;
  3353. /* readonly */
  3354. uint numVertices;
  3355. ObjectAnimation objectAnimation;
  3356. bool occludee;
  3357. bool occluder;
  3358. /* readonly */
  3359. int refs;
  3360. float shadowDistance;
  3361. uint shadowMask;
  3362. bool temporary;
  3363. /* readonly */
  3364. StringHash type;
  3365. /* readonly */
  3366. String typeName;
  3367. uint viewMask;
  3368. /* readonly */
  3369. int weakRefs;
  3370. /* readonly */
  3371. BoundingBox worldBoundingBox;
  3372. /* readonly */
  3373. Zone zone;
  3374. uint zoneMask;
  3375. };
  3376. class Deserializer
  3377. {
  3378. // Methods:
  3379. Array<uint8> Read(uint);
  3380. bool ReadBool();
  3381. BoundingBox ReadBoundingBox();
  3382. int8 ReadByte();
  3383. Color ReadColor();
  3384. String ReadFileID();
  3385. float ReadFloat();
  3386. int ReadInt();
  3387. IntRect ReadIntRect();
  3388. IntVector2 ReadIntVector2();
  3389. String ReadLine();
  3390. Matrix3 ReadMatrix3();
  3391. Matrix3x4 ReadMatrix3x4();
  3392. Matrix4 ReadMatrix4();
  3393. uint ReadNetID();
  3394. Quaternion ReadPackedQuaternion();
  3395. Vector3 ReadPackedVector3(float);
  3396. Quaternion ReadQuaternion();
  3397. int16 ReadShort();
  3398. String ReadString();
  3399. StringHash ReadStringHash();
  3400. uint8 ReadUByte();
  3401. uint ReadUInt();
  3402. uint16 ReadUShort();
  3403. uint ReadVLE();
  3404. Variant ReadVariant();
  3405. VariantMap ReadVariantMap();
  3406. Vector2 ReadVector2();
  3407. Vector3 ReadVector3();
  3408. Vector4 ReadVector4();
  3409. uint Seek(uint);
  3410. // Properties:
  3411. /* readonly */
  3412. uint checksum;
  3413. /* readonly */
  3414. bool eof;
  3415. /* readonly */
  3416. String name;
  3417. /* readonly */
  3418. uint position;
  3419. /* readonly */
  3420. uint size;
  3421. };
  3422. class Dictionary
  3423. {
  3424. // Methods:
  3425. void Clear();
  3426. void Erase(const String&);
  3427. bool Exists(const String&) const;
  3428. bool Get(const String&, void*) const;
  3429. bool Get(const String&, double&) const;
  3430. bool Get(const String&, int64&) const;
  3431. void Set(const String&, const void*);
  3432. void Set(const String&, const double&);
  3433. void Set(const String&, const int64&);
  3434. // Properties:
  3435. /* readonly */
  3436. bool empty;
  3437. /* readonly */
  3438. Array<String> keys;
  3439. /* readonly */
  3440. uint length;
  3441. };
  3442. class DictionaryValue
  3443. {
  3444. };
  3445. class Drawable
  3446. {
  3447. // Methods:
  3448. void ApplyAttributes();
  3449. void DrawDebugGeometry(DebugRenderer, bool);
  3450. Variant GetAttribute(const String&) const;
  3451. ValueAnimation GetAttributeAnimation(const String&) const;
  3452. float GetAttributeAnimationSpeed(const String&) const;
  3453. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3454. Variant GetAttributeDefault(const String&) const;
  3455. bool IsInView(Camera) const;
  3456. bool Load(File, bool = false);
  3457. bool Load(VectorBuffer&, bool = false);
  3458. bool LoadXML(const XMLElement&, bool = false);
  3459. void MarkNetworkUpdate() const;
  3460. void Remove();
  3461. void RemoveInstanceDefault();
  3462. void ResetToDefault();
  3463. bool Save(File) const;
  3464. bool Save(VectorBuffer&) const;
  3465. bool SaveXML(XMLElement&) const;
  3466. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3467. bool SetAttribute(const String&, const Variant&);
  3468. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3469. void SetAttributeAnimationSpeed(const String&, float);
  3470. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3471. // Properties:
  3472. bool animationEnabled;
  3473. /* readonly */
  3474. Array<Variant> attributeDefaults;
  3475. /* readonly */
  3476. Array<AttributeInfo> attributeInfos;
  3477. Array<Variant> attributes;
  3478. /* readonly */
  3479. StringHash baseType;
  3480. /* readonly */
  3481. BoundingBox boundingBox;
  3482. bool castShadows;
  3483. /* readonly */
  3484. String category;
  3485. float drawDistance;
  3486. bool enabled;
  3487. /* readonly */
  3488. bool enabledEffective;
  3489. /* readonly */
  3490. uint id;
  3491. /* readonly */
  3492. bool inView;
  3493. uint lightMask;
  3494. float lodBias;
  3495. uint maxLights;
  3496. /* readonly */
  3497. Node node;
  3498. /* readonly */
  3499. uint numAttributes;
  3500. ObjectAnimation objectAnimation;
  3501. bool occludee;
  3502. bool occluder;
  3503. /* readonly */
  3504. int refs;
  3505. float shadowDistance;
  3506. uint shadowMask;
  3507. bool temporary;
  3508. /* readonly */
  3509. StringHash type;
  3510. /* readonly */
  3511. String typeName;
  3512. uint viewMask;
  3513. /* readonly */
  3514. int weakRefs;
  3515. /* readonly */
  3516. BoundingBox worldBoundingBox;
  3517. uint zoneMask;
  3518. };
  3519. class Drawable2D
  3520. {
  3521. // Methods:
  3522. void ApplyAttributes();
  3523. void DrawDebugGeometry(DebugRenderer, bool);
  3524. Variant GetAttribute(const String&) const;
  3525. ValueAnimation GetAttributeAnimation(const String&) const;
  3526. float GetAttributeAnimationSpeed(const String&) const;
  3527. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3528. Variant GetAttributeDefault(const String&) const;
  3529. bool IsInView(Camera) const;
  3530. bool Load(File, bool = false);
  3531. bool Load(VectorBuffer&, bool = false);
  3532. bool LoadXML(const XMLElement&, bool = false);
  3533. void MarkNetworkUpdate() const;
  3534. void Remove();
  3535. void RemoveInstanceDefault();
  3536. void ResetToDefault();
  3537. bool Save(File) const;
  3538. bool Save(VectorBuffer&) const;
  3539. bool SaveXML(XMLElement&) const;
  3540. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3541. bool SetAttribute(const String&, const Variant&);
  3542. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3543. void SetAttributeAnimationSpeed(const String&, float);
  3544. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3545. // Properties:
  3546. bool animationEnabled;
  3547. /* readonly */
  3548. Array<Variant> attributeDefaults;
  3549. /* readonly */
  3550. Array<AttributeInfo> attributeInfos;
  3551. Array<Variant> attributes;
  3552. /* readonly */
  3553. StringHash baseType;
  3554. BlendMode blendMode;
  3555. /* readonly */
  3556. BoundingBox boundingBox;
  3557. bool castShadows;
  3558. /* readonly */
  3559. String category;
  3560. float drawDistance;
  3561. bool enabled;
  3562. /* readonly */
  3563. bool enabledEffective;
  3564. /* readonly */
  3565. uint id;
  3566. /* readonly */
  3567. bool inView;
  3568. int layer;
  3569. uint lightMask;
  3570. float lodBias;
  3571. uint maxLights;
  3572. /* readonly */
  3573. Node node;
  3574. /* readonly */
  3575. uint numAttributes;
  3576. ObjectAnimation objectAnimation;
  3577. bool occludee;
  3578. bool occluder;
  3579. int orderInLayer;
  3580. /* readonly */
  3581. int refs;
  3582. float shadowDistance;
  3583. uint shadowMask;
  3584. bool temporary;
  3585. Texture2D texture;
  3586. /* readonly */
  3587. StringHash type;
  3588. /* readonly */
  3589. String typeName;
  3590. uint viewMask;
  3591. /* readonly */
  3592. int weakRefs;
  3593. /* readonly */
  3594. BoundingBox worldBoundingBox;
  3595. uint zoneMask;
  3596. };
  3597. class DropDownList
  3598. {
  3599. // Methods:
  3600. void AddChild(UIElement);
  3601. void AddItem(UIElement);
  3602. void ApplyAttributes();
  3603. void BringToFront();
  3604. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3605. void DisableLayoutUpdate();
  3606. IntVector2 ElementToScreen(const IntVector2&);
  3607. void EnableLayoutUpdate();
  3608. uint FindChild(UIElement) const;
  3609. Variant GetAttribute(const String&) const;
  3610. ValueAnimation GetAttributeAnimation(const String&) const;
  3611. float GetAttributeAnimationSpeed(const String&) const;
  3612. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3613. Variant GetAttributeDefault(const String&) const;
  3614. UIElement GetChild(const String&, bool = false) const;
  3615. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3616. Array<UIElement> GetChildren(bool = false) const;
  3617. UIElement GetElementEventSender() const;
  3618. Array<UIElement> GetItems() const;
  3619. uint GetNumChildren(bool) const;
  3620. void InsertChild(uint, UIElement);
  3621. void InsertItem(uint, UIElement);
  3622. bool IsInside(IntVector2, bool);
  3623. bool IsInsideCombined(IntVector2, bool);
  3624. bool Load(File, bool = false);
  3625. bool Load(VectorBuffer&, bool = false);
  3626. bool LoadChildXML(XMLFile, XMLFile = null);
  3627. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3628. bool LoadXML(File);
  3629. bool LoadXML(VectorBuffer&);
  3630. bool LoadXML(XMLFile, XMLFile);
  3631. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3632. bool LoadXML(const XMLElement&, bool = false);
  3633. void MarkNetworkUpdate() const;
  3634. void Remove();
  3635. void RemoveAllChildren();
  3636. void RemoveAllItems();
  3637. void RemoveChild(UIElement, uint = 0);
  3638. void RemoveChild(uint);
  3639. void RemoveInstanceDefault();
  3640. void RemoveItem(UIElement);
  3641. void RemoveItem(uint);
  3642. void ResetDeepEnabled();
  3643. void ResetToDefault();
  3644. bool Save(File) const;
  3645. bool Save(VectorBuffer&) const;
  3646. bool SaveXML(File);
  3647. bool SaveXML(VectorBuffer&);
  3648. bool SaveXML(XMLElement&) const;
  3649. IntVector2 ScreenToElement(const IntVector2&);
  3650. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3651. void SetAccelerator(int, int);
  3652. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3653. bool SetAttribute(const String&, const Variant&);
  3654. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3655. void SetAttributeAnimationSpeed(const String&, float);
  3656. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3657. void SetDeepEnabled(bool);
  3658. void SetEnabledRecursive(bool);
  3659. void SetFixedHeight(int);
  3660. void SetFixedSize(int, int);
  3661. void SetFixedWidth(int);
  3662. void SetFullImageRect();
  3663. void SetHoverOffset(int, int);
  3664. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3665. void SetMaxSize(int, int);
  3666. void SetMinSize(int, int);
  3667. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3668. void SetPosition(int, int);
  3669. void SetPressedChildOffset(int, int);
  3670. void SetPressedOffset(int, int);
  3671. void SetRepeat(float, float);
  3672. void SetSize(int, int);
  3673. bool SetStyle(const String&, XMLFile = null);
  3674. bool SetStyle(const XMLElement&);
  3675. bool SetStyleAuto(XMLFile = null);
  3676. void UpdateLayout();
  3677. const Variant& GetVar(const StringHash&);
  3678. UIElement getPopup() const;
  3679. // Properties:
  3680. /* readonly */
  3681. int acceleratorKey;
  3682. /* readonly */
  3683. int acceleratorQualifiers;
  3684. bool animationEnabled;
  3685. /* readonly */
  3686. Array<Variant> attributeDefaults;
  3687. /* readonly */
  3688. Array<AttributeInfo> attributeInfos;
  3689. Array<Variant> attributes;
  3690. /* readonly */
  3691. StringHash baseType;
  3692. BlendMode blendMode;
  3693. IntRect border;
  3694. bool bringToBack;
  3695. bool bringToFront;
  3696. /* readonly */
  3697. String category;
  3698. /* readonly */
  3699. IntVector2 childOffset;
  3700. /* readonly */
  3701. Array<UIElement> children;
  3702. IntRect clipBorder;
  3703. bool clipChildren;
  3704. /* writeonly */
  3705. Color color;
  3706. /* readonly */
  3707. bool colorGradient;
  3708. Array<Color> colors;
  3709. /* readonly */
  3710. IntRect combinedScreenRect;
  3711. XMLFile defaultStyle;
  3712. /* readonly */
  3713. float derivedOpacity;
  3714. /* readonly */
  3715. uint dragButtonCombo;
  3716. /* readonly */
  3717. int dragButtonCount;
  3718. uint dragDropMode;
  3719. bool editable;
  3720. bool elementEventSender;
  3721. bool enabled;
  3722. /* readonly */
  3723. bool enabledSelf;
  3724. /* readonly */
  3725. bool fixedHeight;
  3726. /* readonly */
  3727. bool fixedSize;
  3728. /* readonly */
  3729. bool fixedWidth;
  3730. bool focus;
  3731. FocusMode focusMode;
  3732. int height;
  3733. HorizontalAlignment horizontalAlignment;
  3734. IntVector2 hoverOffset;
  3735. /* readonly */
  3736. bool hovering;
  3737. IntRect imageBorder;
  3738. IntRect imageRect;
  3739. int indent;
  3740. int indentSpacing;
  3741. /* readonly */
  3742. int indentWidth;
  3743. bool internal;
  3744. /* readonly */
  3745. Array<UIElement> items;
  3746. IntRect layoutBorder;
  3747. Vector2 layoutFlexScale;
  3748. LayoutMode layoutMode;
  3749. int layoutSpacing;
  3750. /* readonly */
  3751. ListView listView;
  3752. int maxHeight;
  3753. IntVector2 maxSize;
  3754. int maxWidth;
  3755. int minHeight;
  3756. IntVector2 minSize;
  3757. int minWidth;
  3758. String name;
  3759. /* readonly */
  3760. uint numAllChildren;
  3761. /* readonly */
  3762. uint numAttributes;
  3763. /* readonly */
  3764. uint numChildren;
  3765. /* readonly */
  3766. uint numItems;
  3767. ObjectAnimation objectAnimation;
  3768. float opacity;
  3769. UIElement parent;
  3770. /* readonly */
  3771. UIElement placeholder;
  3772. String placeholderText;
  3773. IntVector2 position;
  3774. /* readonly */
  3775. bool pressed;
  3776. IntVector2 pressedChildOffset;
  3777. IntVector2 pressedOffset;
  3778. int priority;
  3779. /* readonly */
  3780. int refs;
  3781. float repeatDelay;
  3782. float repeatRate;
  3783. bool resizePopup;
  3784. /* readonly */
  3785. UIElement root;
  3786. /* readonly */
  3787. IntVector2 screenPosition;
  3788. bool selected;
  3789. /* readonly */
  3790. UIElement selectedItem;
  3791. uint selection;
  3792. bool showPopup;
  3793. IntVector2 size;
  3794. bool sortChildren;
  3795. String style;
  3796. bool temporary;
  3797. Texture texture;
  3798. bool tiled;
  3799. TraversalMode traversalMode;
  3800. /* readonly */
  3801. StringHash type;
  3802. /* readonly */
  3803. String typeName;
  3804. bool useDerivedOpacity;
  3805. /* readonly */
  3806. VariantMap vars;
  3807. VerticalAlignment verticalAlignment;
  3808. bool visible;
  3809. /* readonly */
  3810. int weakRefs;
  3811. int width;
  3812. };
  3813. class Engine
  3814. {
  3815. // Methods:
  3816. Console CreateConsole();
  3817. DebugHud CreateDebugHud();
  3818. void DumpMemory();
  3819. void DumpProfiler();
  3820. void DumpResources(bool = false);
  3821. void Exit();
  3822. void RunFrame();
  3823. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3824. // Properties:
  3825. bool autoExit;
  3826. /* readonly */
  3827. StringHash baseType;
  3828. /* readonly */
  3829. String category;
  3830. /* readonly */
  3831. bool exiting;
  3832. /* readonly */
  3833. bool headless;
  3834. /* readonly */
  3835. bool initialized;
  3836. int maxFps;
  3837. int maxInactiveFps;
  3838. int minFps;
  3839. bool pauseMinimized;
  3840. /* readonly */
  3841. int refs;
  3842. int timeStepSmoothing;
  3843. /* readonly */
  3844. StringHash type;
  3845. /* readonly */
  3846. String typeName;
  3847. /* readonly */
  3848. int weakRefs;
  3849. };
  3850. class File
  3851. {
  3852. // Methods:
  3853. void Close();
  3854. bool Open(const String&, FileMode = FILE_READ);
  3855. Array<uint8> Read(uint);
  3856. bool ReadBool();
  3857. BoundingBox ReadBoundingBox();
  3858. int8 ReadByte();
  3859. Color ReadColor();
  3860. String ReadFileID();
  3861. float ReadFloat();
  3862. int ReadInt();
  3863. IntRect ReadIntRect();
  3864. IntVector2 ReadIntVector2();
  3865. String ReadLine();
  3866. Matrix3 ReadMatrix3();
  3867. Matrix3x4 ReadMatrix3x4();
  3868. Matrix4 ReadMatrix4();
  3869. uint ReadNetID();
  3870. Quaternion ReadPackedQuaternion();
  3871. Vector3 ReadPackedVector3(float);
  3872. Quaternion ReadQuaternion();
  3873. int16 ReadShort();
  3874. String ReadString();
  3875. StringHash ReadStringHash();
  3876. uint8 ReadUByte();
  3877. uint ReadUInt();
  3878. uint16 ReadUShort();
  3879. uint ReadVLE();
  3880. Variant ReadVariant();
  3881. VariantMap ReadVariantMap();
  3882. Vector2 ReadVector2();
  3883. Vector3 ReadVector3();
  3884. Vector4 ReadVector4();
  3885. uint Seek(uint);
  3886. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3887. uint Write(Array<uint8>);
  3888. bool WriteBool(bool);
  3889. bool WriteBoundingBox(const BoundingBox&);
  3890. bool WriteByte(int8);
  3891. bool WriteColor(const Color&);
  3892. bool WriteFileID(const String&);
  3893. bool WriteFloat(float);
  3894. bool WriteInt(int);
  3895. bool WriteIntRect(const IntRect&);
  3896. bool WriteIntVector2(const IntVector2&);
  3897. bool WriteLine(const String&);
  3898. bool WriteMatrix3(const Matrix3&);
  3899. bool WriteMatrix3x4(const Matrix3x4&);
  3900. bool WriteMatrix4(const Matrix4&);
  3901. bool WriteNetID(uint);
  3902. bool WritePackedQuaternion(const Quaternion&);
  3903. bool WritePackedVector3(const Vector3&, float);
  3904. bool WriteQuaternion(const Quaternion&);
  3905. bool WriteShort(int16);
  3906. bool WriteString(const String&);
  3907. bool WriteStringHash(const StringHash&);
  3908. bool WriteUByte(uint8);
  3909. bool WriteUInt(uint);
  3910. bool WriteUShort(uint16);
  3911. bool WriteVLE(uint);
  3912. bool WriteVariant(const Variant&);
  3913. bool WriteVariantMap(const VariantMap&);
  3914. bool WriteVector2(const Vector2&);
  3915. bool WriteVector3(const Vector3&);
  3916. bool WriteVector4(const Vector4&);
  3917. // Properties:
  3918. /* readonly */
  3919. StringHash baseType;
  3920. /* readonly */
  3921. String category;
  3922. /* readonly */
  3923. uint checksum;
  3924. /* readonly */
  3925. bool eof;
  3926. /* readonly */
  3927. FileMode mode;
  3928. /* readonly */
  3929. String name;
  3930. /* readonly */
  3931. bool open;
  3932. /* readonly */
  3933. bool packaged;
  3934. /* readonly */
  3935. uint position;
  3936. /* readonly */
  3937. int refs;
  3938. /* readonly */
  3939. uint size;
  3940. /* readonly */
  3941. StringHash type;
  3942. /* readonly */
  3943. String typeName;
  3944. /* readonly */
  3945. int weakRefs;
  3946. };
  3947. class FileSelector
  3948. {
  3949. // Methods:
  3950. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3951. void SetButtonTexts(const String&, const String&);
  3952. void SetFilters(Array<String>, uint);
  3953. void UpdateElements();
  3954. // Properties:
  3955. /* readonly */
  3956. StringHash baseType;
  3957. /* readonly */
  3958. Button cancelButton;
  3959. /* readonly */
  3960. String category;
  3961. XMLFile defaultStyle;
  3962. bool directoryMode;
  3963. /* readonly */
  3964. ListView fileList;
  3965. String fileName;
  3966. /* readonly */
  3967. LineEdit fileNameEdit;
  3968. /* readonly */
  3969. String filter;
  3970. /* readonly */
  3971. uint filterIndex;
  3972. /* readonly */
  3973. DropDownList filterList;
  3974. /* readonly */
  3975. Button okButton;
  3976. String path;
  3977. /* readonly */
  3978. LineEdit pathEdit;
  3979. /* readonly */
  3980. int refs;
  3981. String title;
  3982. /* readonly */
  3983. Text titleText;
  3984. /* readonly */
  3985. StringHash type;
  3986. /* readonly */
  3987. String typeName;
  3988. /* readonly */
  3989. int weakRefs;
  3990. /* readonly */
  3991. Window window;
  3992. };
  3993. class FileSystem
  3994. {
  3995. // Methods:
  3996. bool Copy(const String&, const String&);
  3997. bool CreateDir(const String&);
  3998. bool Delete(const String&);
  3999. bool DirExists(const String&) const;
  4000. bool FileExists(const String&) const;
  4001. String GetAppPreferencesDir(const String&, const String&) const;
  4002. uint GetLastModifiedTime(const String&) const;
  4003. bool Rename(const String&, const String&);
  4004. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4005. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4006. bool SetLastModifiedTime(const String&, uint);
  4007. int SystemCommand(const String&, bool = false);
  4008. uint SystemCommandAsync(const String&);
  4009. bool SystemOpen(const String&, const String&);
  4010. int SystemRun(const String&, Array<String>);
  4011. uint SystemRunAsync(const String&, Array<String>);
  4012. // Properties:
  4013. /* readonly */
  4014. StringHash baseType;
  4015. /* readonly */
  4016. String category;
  4017. String currentDir;
  4018. bool executeConsoleCommands;
  4019. /* readonly */
  4020. String programDir;
  4021. /* readonly */
  4022. int refs;
  4023. /* readonly */
  4024. StringHash type;
  4025. /* readonly */
  4026. String typeName;
  4027. /* readonly */
  4028. String userDocumentsDir;
  4029. /* readonly */
  4030. int weakRefs;
  4031. };
  4032. class FocusParameters
  4033. {
  4034. // Properties:
  4035. bool autoSize;
  4036. bool focus;
  4037. float minView;
  4038. bool nonUniform;
  4039. float quantize;
  4040. };
  4041. class Font
  4042. {
  4043. // Methods:
  4044. IntVector2 GetTotalGlyphOffset(int) const;
  4045. bool Load(File);
  4046. bool Load(VectorBuffer&);
  4047. bool Save(File) const;
  4048. bool Save(VectorBuffer&) const;
  4049. bool SaveXML(File, int, bool = false);
  4050. bool SaveXML(VectorBuffer&, int, bool = false);
  4051. bool SaveXML(const String&, int, bool = false);
  4052. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4053. // Properties:
  4054. IntVector2 absoluteGlyphOffset;
  4055. /* readonly */
  4056. StringHash baseType;
  4057. /* readonly */
  4058. String category;
  4059. /* readonly */
  4060. uint memoryUse;
  4061. String name;
  4062. /* readonly */
  4063. int refs;
  4064. Vector2 scaledGlyphOffset;
  4065. /* readonly */
  4066. StringHash type;
  4067. /* readonly */
  4068. String typeName;
  4069. /* readonly */
  4070. uint useTimer;
  4071. /* readonly */
  4072. int weakRefs;
  4073. };
  4074. class Frustum
  4075. {
  4076. // Methods:
  4077. void Define(const BoundingBox&, const Matrix3x4&);
  4078. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4079. void Define(float, float, float, float, float, const Matrix3x4&);
  4080. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4081. float Distance(const Vector3&) const;
  4082. Intersection IsInside(const BoundingBox&);
  4083. Intersection IsInside(const Sphere&);
  4084. Intersection IsInside(const Vector3&);
  4085. void Transform(const Matrix3&);
  4086. void Transform(const Matrix3x4&);
  4087. Frustum Transformed(const Matrix3&) const;
  4088. Frustum Transformed(const Matrix3x4&) const;
  4089. // Properties:
  4090. /* readonly */
  4091. Array<Vector3> vertices;
  4092. };
  4093. class Graphics
  4094. {
  4095. // Methods:
  4096. void BeginDumpShaders(const String&);
  4097. void Close();
  4098. void EndDumpShaders();
  4099. void Maximize();
  4100. void Minimize();
  4101. void PrecacheShaders(File);
  4102. void PrecacheShaders(VectorBuffer&);
  4103. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4104. bool SetMode(int, int);
  4105. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4106. void SetWindowPosition(int, int);
  4107. bool TakeScreenShot(Image);
  4108. bool ToggleFullscreen();
  4109. // Properties:
  4110. /* readonly */
  4111. StringHash baseType;
  4112. /* readonly */
  4113. bool borderless;
  4114. /* readonly */
  4115. String category;
  4116. /* readonly */
  4117. bool deferredSupport;
  4118. /* readonly */
  4119. IntVector2 desktopResolution;
  4120. /* readonly */
  4121. bool deviceLost;
  4122. bool flushGPU;
  4123. bool forceSM2;
  4124. /* readonly */
  4125. bool fullscreen;
  4126. /* readonly */
  4127. bool hardwareShadowSupport;
  4128. /* readonly */
  4129. int height;
  4130. /* readonly */
  4131. bool initialized;
  4132. /* readonly */
  4133. bool instancingSupport;
  4134. /* readonly */
  4135. bool lightPrepassSupport;
  4136. /* readonly */
  4137. int multiSample;
  4138. /* readonly */
  4139. Array<int> multiSampleLevels;
  4140. /* readonly */
  4141. uint numBatches;
  4142. /* readonly */
  4143. uint numPrimitives;
  4144. String orientations;
  4145. /* readonly */
  4146. bool readableDepthSupport;
  4147. /* readonly */
  4148. int refs;
  4149. /* readonly */
  4150. bool resizable;
  4151. /* readonly */
  4152. Array<IntVector2> resolutions;
  4153. bool sRGB;
  4154. /* readonly */
  4155. bool sRGBSupport;
  4156. /* readonly */
  4157. bool sRGBWriteSupport;
  4158. /* readonly */
  4159. bool sm3Support;
  4160. /* readonly */
  4161. bool tripleBuffer;
  4162. /* readonly */
  4163. StringHash type;
  4164. /* readonly */
  4165. String typeName;
  4166. /* readonly */
  4167. bool vsync;
  4168. /* readonly */
  4169. int weakRefs;
  4170. /* readonly */
  4171. int width;
  4172. /* writeonly */
  4173. Image windowIcon;
  4174. IntVector2 windowPosition;
  4175. String windowTitle;
  4176. };
  4177. class HttpRequest
  4178. {
  4179. // Methods:
  4180. Array<uint8> Read(uint);
  4181. bool ReadBool();
  4182. BoundingBox ReadBoundingBox();
  4183. int8 ReadByte();
  4184. Color ReadColor();
  4185. String ReadFileID();
  4186. float ReadFloat();
  4187. int ReadInt();
  4188. IntRect ReadIntRect();
  4189. IntVector2 ReadIntVector2();
  4190. String ReadLine();
  4191. Matrix3 ReadMatrix3();
  4192. Matrix3x4 ReadMatrix3x4();
  4193. Matrix4 ReadMatrix4();
  4194. uint ReadNetID();
  4195. Quaternion ReadPackedQuaternion();
  4196. Vector3 ReadPackedVector3(float);
  4197. Quaternion ReadQuaternion();
  4198. int16 ReadShort();
  4199. String ReadString();
  4200. StringHash ReadStringHash();
  4201. uint8 ReadUByte();
  4202. uint ReadUInt();
  4203. uint16 ReadUShort();
  4204. uint ReadVLE();
  4205. Variant ReadVariant();
  4206. VariantMap ReadVariantMap();
  4207. Vector2 ReadVector2();
  4208. Vector3 ReadVector3();
  4209. Vector4 ReadVector4();
  4210. uint Seek(uint);
  4211. // Properties:
  4212. /* readonly */
  4213. uint availableSize;
  4214. /* readonly */
  4215. uint checksum;
  4216. /* readonly */
  4217. bool eof;
  4218. /* readonly */
  4219. String error;
  4220. /* readonly */
  4221. String name;
  4222. /* readonly */
  4223. bool open;
  4224. /* readonly */
  4225. uint position;
  4226. /* readonly */
  4227. int refs;
  4228. /* readonly */
  4229. uint size;
  4230. /* readonly */
  4231. HttpRequestState state;
  4232. /* readonly */
  4233. String url;
  4234. /* readonly */
  4235. String verb;
  4236. /* readonly */
  4237. int weakRefs;
  4238. };
  4239. class Image
  4240. {
  4241. // Methods:
  4242. void Clear(const Color&);
  4243. void ClearInt(uint);
  4244. bool FlipHorizontal();
  4245. bool FlipVertical();
  4246. Color GetPixel(int, int) const;
  4247. Color GetPixel(int, int, int) const;
  4248. Color GetPixelBilinear(float, float) const;
  4249. uint GetPixelInt(int, int) const;
  4250. uint GetPixelInt(int, int, int) const;
  4251. Color GetPixelTrilinear(float, float, float) const;
  4252. Image GetSubimage(const IntRect&) const;
  4253. bool Load(File);
  4254. bool Load(VectorBuffer&);
  4255. bool LoadColorLUT(File);
  4256. bool LoadColorLUT(VectorBuffer&);
  4257. bool Resize(int, int);
  4258. bool Save(File) const;
  4259. bool Save(VectorBuffer&) const;
  4260. void SaveBMP(const String&) const;
  4261. void SaveJPG(const String&, int) const;
  4262. void SavePNG(const String&) const;
  4263. void SaveTGA(const String&) const;
  4264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4265. void SetPixel(int, int, const Color&);
  4266. void SetPixel(int, int, int, const Color&);
  4267. void SetPixelInt(int, int, int, uint);
  4268. void SetPixelInt(int, int, uint);
  4269. bool SetSize(int, int, int, uint);
  4270. bool SetSize(int, int, uint);
  4271. // Properties:
  4272. /* readonly */
  4273. StringHash baseType;
  4274. /* readonly */
  4275. String category;
  4276. /* readonly */
  4277. uint components;
  4278. /* readonly */
  4279. bool compressed;
  4280. /* readonly */
  4281. CompressedFormat compressedFormat;
  4282. /* readonly */
  4283. int depth;
  4284. /* readonly */
  4285. int height;
  4286. /* readonly */
  4287. uint memoryUse;
  4288. String name;
  4289. /* readonly */
  4290. uint numCompressedLevels;
  4291. /* readonly */
  4292. int refs;
  4293. /* readonly */
  4294. StringHash type;
  4295. /* readonly */
  4296. String typeName;
  4297. /* readonly */
  4298. uint useTimer;
  4299. /* readonly */
  4300. int weakRefs;
  4301. /* readonly */
  4302. int width;
  4303. };
  4304. class Input
  4305. {
  4306. // Methods:
  4307. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  4308. int GetKeyFromName(const String&) const;
  4309. int GetKeyFromScancode(int) const;
  4310. String GetKeyName(int) const;
  4311. int GetScancodeFromKey(int) const;
  4312. int GetScancodeFromName(const String&) const;
  4313. String GetScancodeName(int) const;
  4314. uint LoadGestures(File);
  4315. uint LoadGestures(VectorBuffer&);
  4316. bool RecordGesture();
  4317. void RemoveAllGestures();
  4318. bool RemoveGesture(uint);
  4319. bool RemoveScreenJoystick(int);
  4320. void ResetMouseVisible();
  4321. bool SaveGesture(File, uint);
  4322. bool SaveGesture(VectorBuffer&, uint);
  4323. bool SaveGestures(File);
  4324. bool SaveGestures(VectorBuffer&);
  4325. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4326. void SetMouseVisible(bool, bool = false);
  4327. // Properties:
  4328. /* readonly */
  4329. StringHash baseType;
  4330. /* readonly */
  4331. String category;
  4332. /* readonly */
  4333. bool focus;
  4334. /* readonly */
  4335. Array<JoystickState> joysticks;
  4336. /* readonly */
  4337. Array<JoystickState> joysticksByIndex;
  4338. /* readonly */
  4339. Array<bool> keyDown;
  4340. /* readonly */
  4341. Array<bool> keyPress;
  4342. /* readonly */
  4343. bool minimized;
  4344. /* readonly */
  4345. Array<bool> mouseButtonDown;
  4346. /* readonly */
  4347. Array<bool> mouseButtonPress;
  4348. bool mouseGrabbed;
  4349. MouseMode mouseMode;
  4350. /* readonly */
  4351. IntVector2 mouseMove;
  4352. /* readonly */
  4353. int mouseMoveWheel;
  4354. /* readonly */
  4355. int mouseMoveX;
  4356. /* readonly */
  4357. int mouseMoveY;
  4358. /* readonly */
  4359. IntVector2 mousePosition;
  4360. bool mouseVisible;
  4361. /* readonly */
  4362. uint numJoysticks;
  4363. /* readonly */
  4364. uint numTouches;
  4365. /* readonly */
  4366. Array<bool> qualifierDown;
  4367. /* readonly */
  4368. Array<bool> qualifierPress;
  4369. /* readonly */
  4370. int qualifiers;
  4371. /* readonly */
  4372. int refs;
  4373. /* readonly */
  4374. Array<bool> scancodeDown;
  4375. /* readonly */
  4376. Array<bool> scancodePress;
  4377. Array<bool> screenJoystickVisible;
  4378. /* readonly */
  4379. bool screenKeyboardSupport;
  4380. bool screenKeyboardVisible;
  4381. bool toggleFullscreen;
  4382. bool touchEmulation;
  4383. /* readonly */
  4384. Array<TouchState> touches;
  4385. /* readonly */
  4386. StringHash type;
  4387. /* readonly */
  4388. String typeName;
  4389. /* readonly */
  4390. int weakRefs;
  4391. };
  4392. class IntRect
  4393. {
  4394. // Methods:
  4395. Intersection IsInside(const IntVector2&) const;
  4396. // Properties:
  4397. int bottom;
  4398. /* readonly */
  4399. Array<int> data;
  4400. /* readonly */
  4401. int height;
  4402. int left;
  4403. int right;
  4404. /* readonly */
  4405. IntVector2 size;
  4406. int top;
  4407. /* readonly */
  4408. int width;
  4409. };
  4410. class IntVector2
  4411. {
  4412. // Methods:
  4413. String ToString() const;
  4414. // Properties:
  4415. /* readonly */
  4416. Array<int> data;
  4417. int x;
  4418. int y;
  4419. };
  4420. class JSONFile
  4421. {
  4422. // Methods:
  4423. JSONValue CreateRoot(JSONValueType = JSON_ANY);
  4424. JSONValue GetRoot(JSONValueType = JSON_ANY);
  4425. bool Load(File);
  4426. bool Load(VectorBuffer&);
  4427. bool Save(File) const;
  4428. bool Save(VectorBuffer&) const;
  4429. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4430. // Properties:
  4431. /* readonly */
  4432. StringHash baseType;
  4433. /* readonly */
  4434. String category;
  4435. /* readonly */
  4436. uint memoryUse;
  4437. String name;
  4438. /* readonly */
  4439. int refs;
  4440. /* readonly */
  4441. StringHash type;
  4442. /* readonly */
  4443. String typeName;
  4444. /* readonly */
  4445. uint useTimer;
  4446. /* readonly */
  4447. int weakRefs;
  4448. };
  4449. class JSONValue
  4450. {
  4451. // Methods:
  4452. void AddBool(bool);
  4453. void AddColor(const Color&);
  4454. void AddFloat(float);
  4455. void AddInt(int);
  4456. void AddIntRect(const IntRect&);
  4457. void AddIntVector2(const IntVector2&);
  4458. void AddMatrix3(const Matrix3&);
  4459. void AddMatrix3x4(const Matrix3x4&);
  4460. void AddMatrix4(const Matrix4&);
  4461. void AddQuaternion(const Quaternion&);
  4462. void AddResourceRef(const ResourceRef&);
  4463. void AddResourceRefList(const ResourceRefList&);
  4464. void AddString(const String);
  4465. void AddVariant(const Variant&);
  4466. void AddVariantValue(const Variant&);
  4467. void AddVector2(const Vector2&);
  4468. void AddVector3(const Vector3&);
  4469. void AddVector4(const Vector4&);
  4470. void AddVectorVariant(const Variant&);
  4471. JSONValue CreateChild(JSONValueType = JSON_OBJECT);
  4472. JSONValue CreateChild(const String&, JSONValueType = JSON_OBJECT);
  4473. bool GetBool(const String&) const;
  4474. bool GetBool(uint) const;
  4475. JSONValue GetChild(const String&, JSONValueType = JSON_ANY) const;
  4476. JSONValue GetChild(uint, JSONValueType = JSON_ANY) const;
  4477. Array<String> GetChildNames() const;
  4478. Color GetColor(const String&) const;
  4479. Color GetColor(uint) const;
  4480. float GetFloat(const String&) const;
  4481. float GetFloat(uint) const;
  4482. int GetInt(const String&) const;
  4483. int GetInt(uint) const;
  4484. IntRect GetIntRect(const String&) const;
  4485. IntRect GetIntRect(uint) const;
  4486. IntVector2 GetIntVector2(const String&) const;
  4487. IntVector2 GetIntVector2(uint) const;
  4488. Matrix3 GetMatrix3(const String&) const;
  4489. Matrix3 GetMatrix3(uint) const;
  4490. Matrix3x4 GetMatrix3x4(const String&) const;
  4491. Matrix3x4 GetMatrix3x4(uint) const;
  4492. Matrix4 GetMatrix4(const String&) const;
  4493. Matrix4 GetMatrix4(uint) const;
  4494. Quaternion GetQuaternion(const String&) const;
  4495. Quaternion GetQuaternion(uint) const;
  4496. ResourceRef GetResourceRef(const String&) const;
  4497. ResourceRef GetResourceRef(uint) const;
  4498. ResourceRefList GetResourceRefList(const String&) const;
  4499. ResourceRefList GetResourceRefList(uint) const;
  4500. String GetString(const String&) const;
  4501. String GetString(uint) const;
  4502. Array<String> GetValueNames() const;
  4503. Variant GetVariant(const String&) const;
  4504. Variant GetVariant(uint) const;
  4505. Variant GetVariantValue(const String&, VariantType) const;
  4506. Variant GetVariantValue(uint, VariantType) const;
  4507. Vector2 GetVector2(const String&) const;
  4508. Vector2 GetVector2(uint) const;
  4509. Vector3 GetVector3(const String&) const;
  4510. Vector3 GetVector3(uint) const;
  4511. Vector4 GetVector4(const String&) const;
  4512. Vector4 GetVector4(uint) const;
  4513. Variant GetVectorVariant(const String&) const;
  4514. Variant GetVectorVariant(uint) const;
  4515. void SetBool(const String&, bool);
  4516. void SetColor(const String&, const Color&);
  4517. void SetFloat(const String&, float);
  4518. void SetInt(const String&, int);
  4519. void SetIntRect(const String&, const IntRect&);
  4520. void SetIntVector2(const String&, const IntVector2&);
  4521. void SetMatrix3(const String&, const Matrix3&);
  4522. void SetMatrix3x4(const String&, const Matrix3x4&);
  4523. void SetMatrix4(const String&, const Matrix4&);
  4524. void SetQuaternion(const String&, const Quaternion&);
  4525. void SetResourceRef(const String&, const ResourceRef&);
  4526. void SetResourceRefList(const String&, const ResourceRefList&);
  4527. void SetString(const String&, const String);
  4528. void SetVariant(const String&, const Variant&);
  4529. void SetVariantValue(const String&, const Variant&);
  4530. void SetVector2(const String&, const Vector2&);
  4531. void SetVector3(const String&, const Vector3&);
  4532. void SetVector4(const String&, const Vector4&);
  4533. void SetVectorVariant(const String&, const Variant&);
  4534. // Properties:
  4535. /* readonly */
  4536. bool isArray;
  4537. /* readonly */
  4538. bool isNull;
  4539. /* readonly */
  4540. bool isObject;
  4541. /* readonly */
  4542. bool notNull;
  4543. /* readonly */
  4544. uint size;
  4545. };
  4546. class JoystickState
  4547. {
  4548. // Properties:
  4549. /* readonly */
  4550. Array<float> axisPosition;
  4551. /* readonly */
  4552. Array<bool> buttonDown;
  4553. /* readonly */
  4554. Array<bool> buttonPress;
  4555. /* readonly */
  4556. bool controller;
  4557. /* readonly */
  4558. Array<int> hatPosition;
  4559. int joystickID;
  4560. String name;
  4561. /* readonly */
  4562. uint numAxes;
  4563. /* readonly */
  4564. uint numButtons;
  4565. /* readonly */
  4566. uint numHats;
  4567. };
  4568. class Light
  4569. {
  4570. // Methods:
  4571. void ApplyAttributes();
  4572. void DrawDebugGeometry(DebugRenderer, bool);
  4573. Variant GetAttribute(const String&) const;
  4574. ValueAnimation GetAttributeAnimation(const String&) const;
  4575. float GetAttributeAnimationSpeed(const String&) const;
  4576. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4577. Variant GetAttributeDefault(const String&) const;
  4578. bool IsInView(Camera) const;
  4579. bool Load(File, bool = false);
  4580. bool Load(VectorBuffer&, bool = false);
  4581. bool LoadXML(const XMLElement&, bool = false);
  4582. void MarkNetworkUpdate() const;
  4583. void Remove();
  4584. void RemoveInstanceDefault();
  4585. void ResetToDefault();
  4586. bool Save(File) const;
  4587. bool Save(VectorBuffer&) const;
  4588. bool SaveXML(XMLElement&) const;
  4589. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4590. bool SetAttribute(const String&, const Variant&);
  4591. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4592. void SetAttributeAnimationSpeed(const String&, float);
  4593. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4594. // Properties:
  4595. bool animationEnabled;
  4596. float aspectRatio;
  4597. /* readonly */
  4598. Array<Variant> attributeDefaults;
  4599. /* readonly */
  4600. Array<AttributeInfo> attributeInfos;
  4601. Array<Variant> attributes;
  4602. /* readonly */
  4603. StringHash baseType;
  4604. /* readonly */
  4605. BoundingBox boundingBox;
  4606. float brightness;
  4607. bool castShadows;
  4608. /* readonly */
  4609. String category;
  4610. Color color;
  4611. float drawDistance;
  4612. /* readonly */
  4613. Color effectiveColor;
  4614. /* readonly */
  4615. float effectiveSpecularIntensity;
  4616. bool enabled;
  4617. /* readonly */
  4618. bool enabledEffective;
  4619. float fadeDistance;
  4620. float fov;
  4621. /* readonly */
  4622. Frustum frustum;
  4623. /* readonly */
  4624. uint id;
  4625. /* readonly */
  4626. bool inView;
  4627. uint lightMask;
  4628. LightType lightType;
  4629. float lodBias;
  4630. uint maxLights;
  4631. /* readonly */
  4632. bool negative;
  4633. /* readonly */
  4634. Node node;
  4635. /* readonly */
  4636. uint numAttributes;
  4637. /* readonly */
  4638. int numShadowSplits;
  4639. ObjectAnimation objectAnimation;
  4640. bool occludee;
  4641. bool occluder;
  4642. bool perVertex;
  4643. Texture rampTexture;
  4644. float range;
  4645. /* readonly */
  4646. int refs;
  4647. BiasParameters shadowBias;
  4648. CascadeParameters shadowCascade;
  4649. float shadowDistance;
  4650. float shadowFadeDistance;
  4651. FocusParameters shadowFocus;
  4652. float shadowIntensity;
  4653. uint shadowMask;
  4654. float shadowNearFarRatio;
  4655. float shadowResolution;
  4656. Texture shapeTexture;
  4657. float specularIntensity;
  4658. bool temporary;
  4659. /* readonly */
  4660. StringHash type;
  4661. /* readonly */
  4662. String typeName;
  4663. uint viewMask;
  4664. /* readonly */
  4665. int weakRefs;
  4666. /* readonly */
  4667. BoundingBox worldBoundingBox;
  4668. uint zoneMask;
  4669. };
  4670. class LineEdit
  4671. {
  4672. // Methods:
  4673. void AddChild(UIElement);
  4674. void ApplyAttributes();
  4675. void BringToFront();
  4676. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4677. void DisableLayoutUpdate();
  4678. IntVector2 ElementToScreen(const IntVector2&);
  4679. void EnableLayoutUpdate();
  4680. uint FindChild(UIElement) const;
  4681. Variant GetAttribute(const String&) const;
  4682. ValueAnimation GetAttributeAnimation(const String&) const;
  4683. float GetAttributeAnimationSpeed(const String&) const;
  4684. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4685. Variant GetAttributeDefault(const String&) const;
  4686. UIElement GetChild(const String&, bool = false) const;
  4687. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4688. Array<UIElement> GetChildren(bool = false) const;
  4689. UIElement GetElementEventSender() const;
  4690. uint GetNumChildren(bool) const;
  4691. void InsertChild(uint, UIElement);
  4692. bool IsInside(IntVector2, bool);
  4693. bool IsInsideCombined(IntVector2, bool);
  4694. bool Load(File, bool = false);
  4695. bool Load(VectorBuffer&, bool = false);
  4696. bool LoadChildXML(XMLFile, XMLFile = null);
  4697. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4698. bool LoadXML(File);
  4699. bool LoadXML(VectorBuffer&);
  4700. bool LoadXML(XMLFile, XMLFile);
  4701. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4702. bool LoadXML(const XMLElement&, bool = false);
  4703. void MarkNetworkUpdate() const;
  4704. void Remove();
  4705. void RemoveAllChildren();
  4706. void RemoveChild(UIElement, uint = 0);
  4707. void RemoveChild(uint);
  4708. void RemoveInstanceDefault();
  4709. void ResetDeepEnabled();
  4710. void ResetToDefault();
  4711. bool Save(File) const;
  4712. bool Save(VectorBuffer&) const;
  4713. bool SaveXML(File);
  4714. bool SaveXML(VectorBuffer&);
  4715. bool SaveXML(XMLElement&) const;
  4716. IntVector2 ScreenToElement(const IntVector2&);
  4717. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4718. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4719. bool SetAttribute(const String&, const Variant&);
  4720. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4721. void SetAttributeAnimationSpeed(const String&, float);
  4722. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4723. void SetDeepEnabled(bool);
  4724. void SetEnabledRecursive(bool);
  4725. void SetFixedHeight(int);
  4726. void SetFixedSize(int, int);
  4727. void SetFixedWidth(int);
  4728. void SetFullImageRect();
  4729. void SetHoverOffset(int, int);
  4730. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4731. void SetMaxSize(int, int);
  4732. void SetMinSize(int, int);
  4733. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4734. void SetPosition(int, int);
  4735. void SetSize(int, int);
  4736. bool SetStyle(const String&, XMLFile = null);
  4737. bool SetStyle(const XMLElement&);
  4738. bool SetStyleAuto(XMLFile = null);
  4739. void UpdateLayout();
  4740. const Variant& GetVar(const StringHash&);
  4741. // Properties:
  4742. bool animationEnabled;
  4743. /* readonly */
  4744. Array<Variant> attributeDefaults;
  4745. /* readonly */
  4746. Array<AttributeInfo> attributeInfos;
  4747. Array<Variant> attributes;
  4748. /* readonly */
  4749. StringHash baseType;
  4750. BlendMode blendMode;
  4751. IntRect border;
  4752. bool bringToBack;
  4753. bool bringToFront;
  4754. /* readonly */
  4755. String category;
  4756. /* readonly */
  4757. IntVector2 childOffset;
  4758. /* readonly */
  4759. Array<UIElement> children;
  4760. IntRect clipBorder;
  4761. bool clipChildren;
  4762. /* writeonly */
  4763. Color color;
  4764. /* readonly */
  4765. bool colorGradient;
  4766. Array<Color> colors;
  4767. /* readonly */
  4768. IntRect combinedScreenRect;
  4769. /* readonly */
  4770. BorderImage cursor;
  4771. float cursorBlinkRate;
  4772. bool cursorMovable;
  4773. uint cursorPosition;
  4774. XMLFile defaultStyle;
  4775. /* readonly */
  4776. float derivedOpacity;
  4777. /* readonly */
  4778. uint dragButtonCombo;
  4779. /* readonly */
  4780. int dragButtonCount;
  4781. uint dragDropMode;
  4782. uint echoCharacter;
  4783. bool editable;
  4784. bool elementEventSender;
  4785. bool enabled;
  4786. /* readonly */
  4787. bool enabledSelf;
  4788. /* readonly */
  4789. bool fixedHeight;
  4790. /* readonly */
  4791. bool fixedSize;
  4792. /* readonly */
  4793. bool fixedWidth;
  4794. bool focus;
  4795. FocusMode focusMode;
  4796. int height;
  4797. HorizontalAlignment horizontalAlignment;
  4798. IntVector2 hoverOffset;
  4799. /* readonly */
  4800. bool hovering;
  4801. IntRect imageBorder;
  4802. IntRect imageRect;
  4803. int indent;
  4804. int indentSpacing;
  4805. /* readonly */
  4806. int indentWidth;
  4807. bool internal;
  4808. IntRect layoutBorder;
  4809. Vector2 layoutFlexScale;
  4810. LayoutMode layoutMode;
  4811. int layoutSpacing;
  4812. int maxHeight;
  4813. uint maxLength;
  4814. IntVector2 maxSize;
  4815. int maxWidth;
  4816. int minHeight;
  4817. IntVector2 minSize;
  4818. int minWidth;
  4819. String name;
  4820. /* readonly */
  4821. uint numAllChildren;
  4822. /* readonly */
  4823. uint numAttributes;
  4824. /* readonly */
  4825. uint numChildren;
  4826. ObjectAnimation objectAnimation;
  4827. float opacity;
  4828. UIElement parent;
  4829. IntVector2 position;
  4830. int priority;
  4831. /* readonly */
  4832. int refs;
  4833. /* readonly */
  4834. UIElement root;
  4835. /* readonly */
  4836. IntVector2 screenPosition;
  4837. bool selected;
  4838. IntVector2 size;
  4839. bool sortChildren;
  4840. String style;
  4841. bool temporary;
  4842. String text;
  4843. bool textCopyable;
  4844. /* readonly */
  4845. Text textElement;
  4846. bool textSelectable;
  4847. Texture texture;
  4848. bool tiled;
  4849. TraversalMode traversalMode;
  4850. /* readonly */
  4851. StringHash type;
  4852. /* readonly */
  4853. String typeName;
  4854. bool useDerivedOpacity;
  4855. /* readonly */
  4856. VariantMap vars;
  4857. VerticalAlignment verticalAlignment;
  4858. bool visible;
  4859. /* readonly */
  4860. int weakRefs;
  4861. int width;
  4862. };
  4863. class ListView
  4864. {
  4865. // Methods:
  4866. void AddChild(UIElement);
  4867. void AddItem(UIElement);
  4868. void AddSelection(uint);
  4869. void ApplyAttributes();
  4870. void BringToFront();
  4871. void ChangeSelection(int, bool);
  4872. void ClearSelection();
  4873. void CopySelectedItemsToClipboard();
  4874. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4875. void DisableLayoutUpdate();
  4876. IntVector2 ElementToScreen(const IntVector2&);
  4877. void EnableLayoutUpdate();
  4878. void Expand(uint, bool, bool = false);
  4879. uint FindChild(UIElement) const;
  4880. uint FindItem(UIElement);
  4881. Variant GetAttribute(const String&) const;
  4882. ValueAnimation GetAttributeAnimation(const String&) const;
  4883. float GetAttributeAnimationSpeed(const String&) const;
  4884. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4885. Variant GetAttributeDefault(const String&) const;
  4886. UIElement GetChild(const String&, bool = false) const;
  4887. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4888. Array<UIElement> GetChildren(bool = false) const;
  4889. UIElement GetElementEventSender() const;
  4890. Array<UIElement> GetItems() const;
  4891. uint GetNumChildren(bool) const;
  4892. void InsertChild(uint, UIElement);
  4893. void InsertItem(uint, UIElement, UIElement = null);
  4894. bool IsExpanded(uint) const;
  4895. bool IsInside(IntVector2, bool);
  4896. bool IsInsideCombined(IntVector2, bool);
  4897. bool IsSelected(uint) const;
  4898. bool Load(File, bool = false);
  4899. bool Load(VectorBuffer&, bool = false);
  4900. bool LoadChildXML(XMLFile, XMLFile = null);
  4901. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4902. bool LoadXML(File);
  4903. bool LoadXML(VectorBuffer&);
  4904. bool LoadXML(XMLFile, XMLFile);
  4905. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4906. bool LoadXML(const XMLElement&, bool = false);
  4907. void MarkNetworkUpdate() const;
  4908. void Remove();
  4909. void RemoveAllChildren();
  4910. void RemoveAllItems();
  4911. void RemoveChild(UIElement, uint = 0);
  4912. void RemoveChild(uint);
  4913. void RemoveInstanceDefault();
  4914. void RemoveItem(UIElement, uint = 0);
  4915. void RemoveItem(uint);
  4916. void RemoveSelection(uint);
  4917. void ResetDeepEnabled();
  4918. void ResetToDefault();
  4919. bool Save(File) const;
  4920. bool Save(VectorBuffer&) const;
  4921. bool SaveXML(File);
  4922. bool SaveXML(VectorBuffer&);
  4923. bool SaveXML(XMLElement&) const;
  4924. IntVector2 ScreenToElement(const IntVector2&);
  4925. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4926. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4927. bool SetAttribute(const String&, const Variant&);
  4928. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4929. void SetAttributeAnimationSpeed(const String&, float);
  4930. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4931. void SetDeepEnabled(bool);
  4932. void SetEnabledRecursive(bool);
  4933. void SetFixedHeight(int);
  4934. void SetFixedSize(int, int);
  4935. void SetFixedWidth(int);
  4936. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4937. void SetMaxSize(int, int);
  4938. void SetMinSize(int, int);
  4939. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4940. void SetPosition(int, int);
  4941. void SetScrollBarsVisible(bool, bool);
  4942. void SetSelections(Array<uint>);
  4943. void SetSize(int, int);
  4944. bool SetStyle(const String&, XMLFile = null);
  4945. bool SetStyle(const XMLElement&);
  4946. bool SetStyleAuto(XMLFile = null);
  4947. void SetViewPosition(int, int);
  4948. void ToggleExpand(uint, bool = false);
  4949. void ToggleSelection(uint);
  4950. void UpdateLayout();
  4951. const Variant& GetVar(const StringHash&);
  4952. // Properties:
  4953. bool animationEnabled;
  4954. /* readonly */
  4955. Array<Variant> attributeDefaults;
  4956. /* readonly */
  4957. Array<AttributeInfo> attributeInfos;
  4958. Array<Variant> attributes;
  4959. bool autoDisableChildren;
  4960. float autoDisableThreshold;
  4961. int baseIndent;
  4962. /* readonly */
  4963. StringHash baseType;
  4964. bool bringToBack;
  4965. bool bringToFront;
  4966. /* readonly */
  4967. String category;
  4968. /* readonly */
  4969. IntVector2 childOffset;
  4970. /* readonly */
  4971. Array<UIElement> children;
  4972. bool clearSelectionOnDefocus;
  4973. IntRect clipBorder;
  4974. bool clipChildren;
  4975. /* writeonly */
  4976. Color color;
  4977. /* readonly */
  4978. bool colorGradient;
  4979. Array<Color> colors;
  4980. /* readonly */
  4981. IntRect combinedScreenRect;
  4982. /* readonly */
  4983. UIElement contentElement;
  4984. XMLFile defaultStyle;
  4985. /* readonly */
  4986. float derivedOpacity;
  4987. /* readonly */
  4988. uint dragButtonCombo;
  4989. /* readonly */
  4990. int dragButtonCount;
  4991. uint dragDropMode;
  4992. bool editable;
  4993. bool elementEventSender;
  4994. bool enabled;
  4995. /* readonly */
  4996. bool enabledSelf;
  4997. /* readonly */
  4998. bool fixedHeight;
  4999. /* readonly */
  5000. bool fixedSize;
  5001. /* readonly */
  5002. bool fixedWidth;
  5003. bool focus;
  5004. FocusMode focusMode;
  5005. int height;
  5006. bool hierarchyMode;
  5007. HighlightMode highlightMode;
  5008. HorizontalAlignment horizontalAlignment;
  5009. /* readonly */
  5010. ScrollBar horizontalScrollBar;
  5011. /* readonly */
  5012. bool hovering;
  5013. int indent;
  5014. int indentSpacing;
  5015. /* readonly */
  5016. int indentWidth;
  5017. bool internal;
  5018. /* readonly */
  5019. Array<UIElement> items;
  5020. IntRect layoutBorder;
  5021. Vector2 layoutFlexScale;
  5022. LayoutMode layoutMode;
  5023. int layoutSpacing;
  5024. int maxHeight;
  5025. IntVector2 maxSize;
  5026. int maxWidth;
  5027. int minHeight;
  5028. IntVector2 minSize;
  5029. int minWidth;
  5030. bool multiselect;
  5031. String name;
  5032. /* readonly */
  5033. uint numAllChildren;
  5034. /* readonly */
  5035. uint numAttributes;
  5036. /* readonly */
  5037. uint numChildren;
  5038. /* readonly */
  5039. uint numItems;
  5040. ObjectAnimation objectAnimation;
  5041. float opacity;
  5042. float pageStep;
  5043. UIElement parent;
  5044. IntVector2 position;
  5045. int priority;
  5046. /* readonly */
  5047. int refs;
  5048. /* readonly */
  5049. UIElement root;
  5050. /* readonly */
  5051. IntVector2 screenPosition;
  5052. bool scrollBarsAutoVisible;
  5053. float scrollDeceleration;
  5054. /* readonly */
  5055. BorderImage scrollPanel;
  5056. float scrollSnapEpsilon;
  5057. float scrollStep;
  5058. bool selectOnClickEnd;
  5059. bool selected;
  5060. /* readonly */
  5061. UIElement selectedItem;
  5062. /* readonly */
  5063. Array<UIElement> selectedItems;
  5064. uint selection;
  5065. /* readonly */
  5066. Array<uint> selections;
  5067. IntVector2 size;
  5068. bool sortChildren;
  5069. String style;
  5070. bool temporary;
  5071. TraversalMode traversalMode;
  5072. /* readonly */
  5073. StringHash type;
  5074. /* readonly */
  5075. String typeName;
  5076. bool useDerivedOpacity;
  5077. /* readonly */
  5078. VariantMap vars;
  5079. VerticalAlignment verticalAlignment;
  5080. /* readonly */
  5081. ScrollBar verticalScrollBar;
  5082. IntVector2 viewPosition;
  5083. bool visible;
  5084. /* readonly */
  5085. int weakRefs;
  5086. int width;
  5087. };
  5088. class Log
  5089. {
  5090. // Methods:
  5091. void Close();
  5092. void Debug(const String&);
  5093. void Error(const String&);
  5094. void Info(const String&);
  5095. void Open(const String&);
  5096. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5097. void Warning(const String&);
  5098. void Write(const String&, bool = false);
  5099. // Properties:
  5100. /* readonly */
  5101. StringHash baseType;
  5102. /* readonly */
  5103. String category;
  5104. /* readonly */
  5105. String lastMessage;
  5106. int level;
  5107. bool quiet;
  5108. /* readonly */
  5109. int refs;
  5110. bool timeStamp;
  5111. /* readonly */
  5112. StringHash type;
  5113. /* readonly */
  5114. String typeName;
  5115. /* readonly */
  5116. int weakRefs;
  5117. };
  5118. class Material
  5119. {
  5120. // Methods:
  5121. Material Clone(const String& = String ( )) const;
  5122. ValueAnimation GetShaderParameterAnimation(const String&) const;
  5123. float GetShaderParameterAnimationSpeed(const String&) const;
  5124. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  5125. bool Load(File);
  5126. bool Load(VectorBuffer&);
  5127. bool Load(const XMLElement&);
  5128. void RemoveShaderParameter(const String&);
  5129. bool Save(File) const;
  5130. bool Save(VectorBuffer&) const;
  5131. bool Save(XMLElement&) const;
  5132. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5133. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5134. void SetShaderParameterAnimationSpeed(const String&, float);
  5135. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  5136. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  5137. void SetUVTransform(const Vector2&, float, const Vector2&);
  5138. void SetUVTransform(const Vector2&, float, float);
  5139. void SortTechniques();
  5140. // Properties:
  5141. /* readonly */
  5142. StringHash baseType;
  5143. /* readonly */
  5144. String category;
  5145. CullMode cullMode;
  5146. BiasParameters depthBias;
  5147. /* readonly */
  5148. uint memoryUse;
  5149. String name;
  5150. uint numTechniques;
  5151. /* readonly */
  5152. uint numUsedTextureUnits;
  5153. /* readonly */
  5154. bool occlusion;
  5155. /* readonly */
  5156. int refs;
  5157. Scene scene;
  5158. /* readonly */
  5159. Array<String> shaderParameterNames;
  5160. Array<Variant> shaderParameters;
  5161. CullMode shadowCullMode;
  5162. /* readonly */
  5163. Array<TechniqueEntry> techniqueEntries;
  5164. /* readonly */
  5165. Array<Technique> techniques;
  5166. Array<Texture> textures;
  5167. /* readonly */
  5168. StringHash type;
  5169. /* readonly */
  5170. String typeName;
  5171. /* readonly */
  5172. uint useTimer;
  5173. /* readonly */
  5174. int weakRefs;
  5175. };
  5176. class Matrix3
  5177. {
  5178. // Methods:
  5179. bool Equals(const Matrix3&) const;
  5180. Matrix3 Inverse() const;
  5181. Vector3 Scale() const;
  5182. Matrix3 Scaled(const Vector3&) const;
  5183. void SetScale(const Vector3&);
  5184. void SetScale(float);
  5185. String ToString() const;
  5186. Matrix3 Transpose() const;
  5187. // Properties:
  5188. float m00;
  5189. float m01;
  5190. float m02;
  5191. float m10;
  5192. float m11;
  5193. float m12;
  5194. float m20;
  5195. float m21;
  5196. float m22;
  5197. };
  5198. class Matrix3x4
  5199. {
  5200. // Methods:
  5201. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5202. bool Equals(const Matrix3x4&) const;
  5203. Matrix3x4 Inverse() const;
  5204. Quaternion Rotation() const;
  5205. Matrix3 RotationMatrix() const;
  5206. Vector3 Scale() const;
  5207. void SetRotation(const Matrix3&);
  5208. void SetScale(const Vector3&);
  5209. void SetScale(float);
  5210. void SetTranslation(const Vector3&);
  5211. Matrix3 ToMatrix3() const;
  5212. Matrix4 ToMatrix4() const;
  5213. String ToString() const;
  5214. Vector3 Translation() const;
  5215. // Properties:
  5216. float m00;
  5217. float m01;
  5218. float m02;
  5219. float m03;
  5220. float m10;
  5221. float m11;
  5222. float m12;
  5223. float m13;
  5224. float m20;
  5225. float m21;
  5226. float m22;
  5227. float m23;
  5228. };
  5229. class Matrix4
  5230. {
  5231. // Methods:
  5232. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5233. bool Equals(const Matrix4&) const;
  5234. Matrix4 Inverse() const;
  5235. Quaternion Rotation() const;
  5236. Matrix3 RotationMatrix() const;
  5237. Vector3 Scale() const;
  5238. void SetRotation(const Matrix3&);
  5239. void SetScale(const Vector3&);
  5240. void SetScale(float);
  5241. void SetTranslation(const Vector3&);
  5242. Matrix3 ToMatrix3() const;
  5243. String ToString() const;
  5244. Vector3 Translation() const;
  5245. Matrix4 Transpose() const;
  5246. // Properties:
  5247. float m00;
  5248. float m01;
  5249. float m02;
  5250. float m03;
  5251. float m10;
  5252. float m11;
  5253. float m12;
  5254. float m13;
  5255. float m20;
  5256. float m21;
  5257. float m22;
  5258. float m23;
  5259. float m30;
  5260. float m31;
  5261. float m32;
  5262. float m33;
  5263. };
  5264. class Menu
  5265. {
  5266. // Methods:
  5267. void AddChild(UIElement);
  5268. void ApplyAttributes();
  5269. void BringToFront();
  5270. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5271. void DisableLayoutUpdate();
  5272. IntVector2 ElementToScreen(const IntVector2&);
  5273. void EnableLayoutUpdate();
  5274. uint FindChild(UIElement) const;
  5275. Variant GetAttribute(const String&) const;
  5276. ValueAnimation GetAttributeAnimation(const String&) const;
  5277. float GetAttributeAnimationSpeed(const String&) const;
  5278. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5279. Variant GetAttributeDefault(const String&) const;
  5280. UIElement GetChild(const String&, bool = false) const;
  5281. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5282. Array<UIElement> GetChildren(bool = false) const;
  5283. UIElement GetElementEventSender() const;
  5284. uint GetNumChildren(bool) const;
  5285. void InsertChild(uint, UIElement);
  5286. bool IsInside(IntVector2, bool);
  5287. bool IsInsideCombined(IntVector2, bool);
  5288. bool Load(File, bool = false);
  5289. bool Load(VectorBuffer&, bool = false);
  5290. bool LoadChildXML(XMLFile, XMLFile = null);
  5291. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5292. bool LoadXML(File);
  5293. bool LoadXML(VectorBuffer&);
  5294. bool LoadXML(XMLFile, XMLFile);
  5295. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5296. bool LoadXML(const XMLElement&, bool = false);
  5297. void MarkNetworkUpdate() const;
  5298. void Remove();
  5299. void RemoveAllChildren();
  5300. void RemoveChild(UIElement, uint = 0);
  5301. void RemoveChild(uint);
  5302. void RemoveInstanceDefault();
  5303. void ResetDeepEnabled();
  5304. void ResetToDefault();
  5305. bool Save(File) const;
  5306. bool Save(VectorBuffer&) const;
  5307. bool SaveXML(File);
  5308. bool SaveXML(VectorBuffer&);
  5309. bool SaveXML(XMLElement&) const;
  5310. IntVector2 ScreenToElement(const IntVector2&);
  5311. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5312. void SetAccelerator(int, int);
  5313. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5314. bool SetAttribute(const String&, const Variant&);
  5315. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5316. void SetAttributeAnimationSpeed(const String&, float);
  5317. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5318. void SetDeepEnabled(bool);
  5319. void SetEnabledRecursive(bool);
  5320. void SetFixedHeight(int);
  5321. void SetFixedSize(int, int);
  5322. void SetFixedWidth(int);
  5323. void SetFullImageRect();
  5324. void SetHoverOffset(int, int);
  5325. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5326. void SetMaxSize(int, int);
  5327. void SetMinSize(int, int);
  5328. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5329. void SetPopupOffset(int, int);
  5330. void SetPosition(int, int);
  5331. void SetPressedChildOffset(int, int);
  5332. void SetPressedOffset(int, int);
  5333. void SetRepeat(float, float);
  5334. void SetSize(int, int);
  5335. bool SetStyle(const String&, XMLFile = null);
  5336. bool SetStyle(const XMLElement&);
  5337. bool SetStyleAuto(XMLFile = null);
  5338. void UpdateLayout();
  5339. const Variant& GetVar(const StringHash&);
  5340. // Properties:
  5341. /* readonly */
  5342. int acceleratorKey;
  5343. /* readonly */
  5344. int acceleratorQualifiers;
  5345. bool animationEnabled;
  5346. /* readonly */
  5347. Array<Variant> attributeDefaults;
  5348. /* readonly */
  5349. Array<AttributeInfo> attributeInfos;
  5350. Array<Variant> attributes;
  5351. /* readonly */
  5352. StringHash baseType;
  5353. BlendMode blendMode;
  5354. IntRect border;
  5355. bool bringToBack;
  5356. bool bringToFront;
  5357. /* readonly */
  5358. String category;
  5359. /* readonly */
  5360. IntVector2 childOffset;
  5361. /* readonly */
  5362. Array<UIElement> children;
  5363. IntRect clipBorder;
  5364. bool clipChildren;
  5365. /* writeonly */
  5366. Color color;
  5367. /* readonly */
  5368. bool colorGradient;
  5369. Array<Color> colors;
  5370. /* readonly */
  5371. IntRect combinedScreenRect;
  5372. XMLFile defaultStyle;
  5373. /* readonly */
  5374. float derivedOpacity;
  5375. /* readonly */
  5376. uint dragButtonCombo;
  5377. /* readonly */
  5378. int dragButtonCount;
  5379. uint dragDropMode;
  5380. bool editable;
  5381. bool elementEventSender;
  5382. bool enabled;
  5383. /* readonly */
  5384. bool enabledSelf;
  5385. /* readonly */
  5386. bool fixedHeight;
  5387. /* readonly */
  5388. bool fixedSize;
  5389. /* readonly */
  5390. bool fixedWidth;
  5391. bool focus;
  5392. FocusMode focusMode;
  5393. int height;
  5394. HorizontalAlignment horizontalAlignment;
  5395. IntVector2 hoverOffset;
  5396. /* readonly */
  5397. bool hovering;
  5398. IntRect imageBorder;
  5399. IntRect imageRect;
  5400. int indent;
  5401. int indentSpacing;
  5402. /* readonly */
  5403. int indentWidth;
  5404. bool internal;
  5405. IntRect layoutBorder;
  5406. Vector2 layoutFlexScale;
  5407. LayoutMode layoutMode;
  5408. int layoutSpacing;
  5409. int maxHeight;
  5410. IntVector2 maxSize;
  5411. int maxWidth;
  5412. int minHeight;
  5413. IntVector2 minSize;
  5414. int minWidth;
  5415. String name;
  5416. /* readonly */
  5417. uint numAllChildren;
  5418. /* readonly */
  5419. uint numAttributes;
  5420. /* readonly */
  5421. uint numChildren;
  5422. ObjectAnimation objectAnimation;
  5423. float opacity;
  5424. UIElement parent;
  5425. UIElement popup;
  5426. IntVector2 popupOffset;
  5427. IntVector2 position;
  5428. /* readonly */
  5429. bool pressed;
  5430. IntVector2 pressedChildOffset;
  5431. IntVector2 pressedOffset;
  5432. int priority;
  5433. /* readonly */
  5434. int refs;
  5435. float repeatDelay;
  5436. float repeatRate;
  5437. /* readonly */
  5438. UIElement root;
  5439. /* readonly */
  5440. IntVector2 screenPosition;
  5441. bool selected;
  5442. bool showPopup;
  5443. IntVector2 size;
  5444. bool sortChildren;
  5445. String style;
  5446. bool temporary;
  5447. Texture texture;
  5448. bool tiled;
  5449. TraversalMode traversalMode;
  5450. /* readonly */
  5451. StringHash type;
  5452. /* readonly */
  5453. String typeName;
  5454. bool useDerivedOpacity;
  5455. /* readonly */
  5456. VariantMap vars;
  5457. VerticalAlignment verticalAlignment;
  5458. bool visible;
  5459. /* readonly */
  5460. int weakRefs;
  5461. int width;
  5462. };
  5463. class MessageBox
  5464. {
  5465. // Methods:
  5466. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5467. // Properties:
  5468. /* readonly */
  5469. StringHash baseType;
  5470. /* readonly */
  5471. String category;
  5472. String message;
  5473. /* readonly */
  5474. int refs;
  5475. String title;
  5476. /* readonly */
  5477. StringHash type;
  5478. /* readonly */
  5479. String typeName;
  5480. /* readonly */
  5481. int weakRefs;
  5482. /* readonly */
  5483. UIElement window;
  5484. };
  5485. class Model
  5486. {
  5487. // Methods:
  5488. Model Clone(const String& = String ( )) const;
  5489. bool Load(File);
  5490. bool Load(VectorBuffer&);
  5491. bool Save(File) const;
  5492. bool Save(VectorBuffer&) const;
  5493. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5494. // Properties:
  5495. /* readonly */
  5496. StringHash baseType;
  5497. /* readonly */
  5498. BoundingBox boundingBox;
  5499. /* readonly */
  5500. String category;
  5501. /* readonly */
  5502. uint memoryUse;
  5503. String name;
  5504. /* readonly */
  5505. uint numGeometries;
  5506. /* readonly */
  5507. Array<uint> numGeometryLodLevels;
  5508. /* readonly */
  5509. uint numMorphs;
  5510. /* readonly */
  5511. int refs;
  5512. /* readonly */
  5513. Skeleton skeleton;
  5514. /* readonly */
  5515. StringHash type;
  5516. /* readonly */
  5517. String typeName;
  5518. /* readonly */
  5519. uint useTimer;
  5520. /* readonly */
  5521. int weakRefs;
  5522. };
  5523. class Navigable
  5524. {
  5525. // Methods:
  5526. void ApplyAttributes();
  5527. void DrawDebugGeometry(DebugRenderer, bool);
  5528. Variant GetAttribute(const String&) const;
  5529. ValueAnimation GetAttributeAnimation(const String&) const;
  5530. float GetAttributeAnimationSpeed(const String&) const;
  5531. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5532. Variant GetAttributeDefault(const String&) const;
  5533. bool Load(File, bool = false);
  5534. bool Load(VectorBuffer&, bool = false);
  5535. bool LoadXML(const XMLElement&, bool = false);
  5536. void MarkNetworkUpdate() const;
  5537. void Remove();
  5538. void RemoveInstanceDefault();
  5539. void ResetToDefault();
  5540. bool Save(File) const;
  5541. bool Save(VectorBuffer&) const;
  5542. bool SaveXML(XMLElement&) const;
  5543. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5544. bool SetAttribute(const String&, const Variant&);
  5545. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5546. void SetAttributeAnimationSpeed(const String&, float);
  5547. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5548. // Properties:
  5549. bool animationEnabled;
  5550. /* readonly */
  5551. Array<Variant> attributeDefaults;
  5552. /* readonly */
  5553. Array<AttributeInfo> attributeInfos;
  5554. Array<Variant> attributes;
  5555. /* readonly */
  5556. StringHash baseType;
  5557. /* readonly */
  5558. String category;
  5559. bool enabled;
  5560. /* readonly */
  5561. bool enabledEffective;
  5562. /* readonly */
  5563. uint id;
  5564. /* readonly */
  5565. Node node;
  5566. /* readonly */
  5567. uint numAttributes;
  5568. ObjectAnimation objectAnimation;
  5569. bool recursive;
  5570. /* readonly */
  5571. int refs;
  5572. bool temporary;
  5573. /* readonly */
  5574. StringHash type;
  5575. /* readonly */
  5576. String typeName;
  5577. /* readonly */
  5578. int weakRefs;
  5579. };
  5580. class NavigationMesh
  5581. {
  5582. // Methods:
  5583. void ApplyAttributes();
  5584. bool Build();
  5585. bool Build(const BoundingBox&);
  5586. void DrawDebugGeometry(DebugRenderer, bool);
  5587. void DrawDebugGeometry(bool);
  5588. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5589. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5590. Variant GetAttribute(const String&) const;
  5591. ValueAnimation GetAttributeAnimation(const String&) const;
  5592. float GetAttributeAnimationSpeed(const String&) const;
  5593. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5594. Variant GetAttributeDefault(const String&) const;
  5595. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5596. Vector3 GetRandomPoint();
  5597. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5598. bool Load(File, bool = false);
  5599. bool Load(VectorBuffer&, bool = false);
  5600. bool LoadXML(const XMLElement&, bool = false);
  5601. void MarkNetworkUpdate() const;
  5602. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), uint = 3);
  5603. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5604. void Remove();
  5605. void RemoveInstanceDefault();
  5606. void ResetToDefault();
  5607. bool Save(File) const;
  5608. bool Save(VectorBuffer&) const;
  5609. bool SaveXML(XMLElement&) const;
  5610. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5611. bool SetAttribute(const String&, const Variant&);
  5612. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5613. void SetAttributeAnimationSpeed(const String&, float);
  5614. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5615. // Properties:
  5616. float agentHeight;
  5617. float agentMaxClimb;
  5618. float agentMaxSlope;
  5619. float agentRadius;
  5620. bool animationEnabled;
  5621. /* readonly */
  5622. Array<Variant> attributeDefaults;
  5623. /* readonly */
  5624. Array<AttributeInfo> attributeInfos;
  5625. Array<Variant> attributes;
  5626. /* readonly */
  5627. StringHash baseType;
  5628. /* readonly */
  5629. BoundingBox boundingBox;
  5630. /* readonly */
  5631. String category;
  5632. float cellHeight;
  5633. float cellSize;
  5634. float detailSampleDistance;
  5635. float detailSampleMaxError;
  5636. float edgeMaxError;
  5637. float edgeMaxLength;
  5638. bool enabled;
  5639. /* readonly */
  5640. bool enabledEffective;
  5641. /* readonly */
  5642. uint id;
  5643. /* readonly */
  5644. bool initialized;
  5645. /* readonly */
  5646. Node node;
  5647. /* readonly */
  5648. uint numAttributes;
  5649. /* readonly */
  5650. IntVector2 numTiles;
  5651. ObjectAnimation objectAnimation;
  5652. Vector3 padding;
  5653. /* readonly */
  5654. int refs;
  5655. float regionMergeSize;
  5656. float regionMinSize;
  5657. bool temporary;
  5658. int tileSize;
  5659. /* readonly */
  5660. StringHash type;
  5661. /* readonly */
  5662. String typeName;
  5663. /* readonly */
  5664. int weakRefs;
  5665. /* readonly */
  5666. BoundingBox worldBoundingBox;
  5667. };
  5668. class Network
  5669. {
  5670. // Methods:
  5671. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  5672. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  5673. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  5674. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  5675. bool CheckRemoteEvent(const String&) const;
  5676. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  5677. void Disconnect(int = 0);
  5678. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  5679. void RegisterRemoteEvent(const String&) const;
  5680. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5681. void SendPackageToClients(Scene, PackageFile);
  5682. bool StartServer(uint16);
  5683. void StopServer();
  5684. void UnregisterAllRemoteEvents();
  5685. void UnregisterRemoteEvent(const String&) const;
  5686. // Properties:
  5687. /* readonly */
  5688. StringHash baseType;
  5689. /* readonly */
  5690. String category;
  5691. /* readonly */
  5692. Array<Connection> clientConnections;
  5693. String packageCacheDir;
  5694. /* readonly */
  5695. int refs;
  5696. /* readonly */
  5697. Connection serverConnection;
  5698. /* readonly */
  5699. bool serverRunning;
  5700. /* readonly */
  5701. StringHash type;
  5702. /* readonly */
  5703. String typeName;
  5704. int updateFps;
  5705. /* readonly */
  5706. int weakRefs;
  5707. };
  5708. class NetworkPriority
  5709. {
  5710. // Methods:
  5711. void ApplyAttributes();
  5712. void DrawDebugGeometry(DebugRenderer, bool);
  5713. Variant GetAttribute(const String&) const;
  5714. ValueAnimation GetAttributeAnimation(const String&) const;
  5715. float GetAttributeAnimationSpeed(const String&) const;
  5716. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5717. Variant GetAttributeDefault(const String&) const;
  5718. bool Load(File, bool = false);
  5719. bool Load(VectorBuffer&, bool = false);
  5720. bool LoadXML(const XMLElement&, bool = false);
  5721. void MarkNetworkUpdate() const;
  5722. void Remove();
  5723. void RemoveInstanceDefault();
  5724. void ResetToDefault();
  5725. bool Save(File) const;
  5726. bool Save(VectorBuffer&) const;
  5727. bool SaveXML(XMLElement&) const;
  5728. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5729. bool SetAttribute(const String&, const Variant&);
  5730. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5731. void SetAttributeAnimationSpeed(const String&, float);
  5732. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5733. // Properties:
  5734. bool alwaysUpdateOwner;
  5735. bool animationEnabled;
  5736. /* readonly */
  5737. Array<Variant> attributeDefaults;
  5738. /* readonly */
  5739. Array<AttributeInfo> attributeInfos;
  5740. Array<Variant> attributes;
  5741. float basePriority;
  5742. /* readonly */
  5743. StringHash baseType;
  5744. /* readonly */
  5745. String category;
  5746. float distanceFactor;
  5747. bool enabled;
  5748. /* readonly */
  5749. bool enabledEffective;
  5750. /* readonly */
  5751. uint id;
  5752. float minPriority;
  5753. /* readonly */
  5754. Node node;
  5755. /* readonly */
  5756. uint numAttributes;
  5757. ObjectAnimation objectAnimation;
  5758. /* readonly */
  5759. int refs;
  5760. bool temporary;
  5761. /* readonly */
  5762. StringHash type;
  5763. /* readonly */
  5764. String typeName;
  5765. /* readonly */
  5766. int weakRefs;
  5767. };
  5768. class Node
  5769. {
  5770. // Methods:
  5771. void AddChild(Node, uint = M_MAX_UNSIGNED);
  5772. void ApplyAttributes();
  5773. Node Clone(CreateMode = REPLICATED);
  5774. Component CloneComponent(Component, CreateMode, uint = 0);
  5775. Component CloneComponent(Component, uint = 0);
  5776. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  5777. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  5778. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  5779. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  5780. Variant GetAttribute(const String&) const;
  5781. ValueAnimation GetAttributeAnimation(const String&) const;
  5782. float GetAttributeAnimationSpeed(const String&) const;
  5783. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5784. Variant GetAttributeDefault(const String&) const;
  5785. Node GetChild(const String&, bool = false) const;
  5786. Array<Node> GetChildren(bool = false) const;
  5787. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  5788. Array<Node> GetChildrenWithScript(bool = false) const;
  5789. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  5790. Component GetComponent(const String&) const;
  5791. Array<Component> GetComponents() const;
  5792. Array<Component> GetComponents(const String&, bool = false) const;
  5793. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  5794. ScriptObject GetScriptObject() const;
  5795. ScriptObject GetScriptObject(const String&) const;
  5796. bool HasComponent(const String&) const;
  5797. bool Load(File, bool = false);
  5798. bool Load(VectorBuffer&, bool = false);
  5799. bool LoadXML(const XMLElement&, bool = false);
  5800. Vector3 LocalToWorld(const Vector3&) const;
  5801. Vector3 LocalToWorld(const Vector4&) const;
  5802. Vector2 LocalToWorld2D(const Vector2&) const;
  5803. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  5804. void MarkNetworkUpdate() const;
  5805. void Pitch(float, TransformSpace = TS_LOCAL);
  5806. void Remove();
  5807. void RemoveAllChildren();
  5808. void RemoveAllComponents();
  5809. void RemoveChild(Node);
  5810. void RemoveChildren(bool, bool, bool);
  5811. void RemoveComponent(Component);
  5812. void RemoveComponent(const String&);
  5813. void RemoveComponents(bool, bool);
  5814. void RemoveInstanceDefault();
  5815. void ResetDeepEnabled();
  5816. void ResetToDefault();
  5817. void Roll(float, TransformSpace = TS_LOCAL);
  5818. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  5819. void Rotate2D(float, TransformSpace = TS_LOCAL);
  5820. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  5821. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  5822. bool Save(File) const;
  5823. bool Save(VectorBuffer&) const;
  5824. bool SaveXML(File);
  5825. bool SaveXML(VectorBuffer&);
  5826. bool SaveXML(XMLElement&) const;
  5827. void Scale(const Vector3&);
  5828. void Scale(float);
  5829. void Scale2D(const Vector2&);
  5830. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5831. bool SetAttribute(const String&, const Variant&);
  5832. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5833. void SetAttributeAnimationSpeed(const String&, float);
  5834. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5835. void SetDeepEnabled(bool);
  5836. void SetEnabledRecursive(bool);
  5837. void SetPosition2D(float, float);
  5838. void SetScale(float);
  5839. void SetScale2D(float, float);
  5840. void SetTransform(const Vector3&, const Quaternion&);
  5841. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  5842. void SetTransform(const Vector3&, const Quaternion&, float);
  5843. void SetTransform2D(const Vector2&, float);
  5844. void SetTransform2D(const Vector2&, float, const Vector2&);
  5845. void SetTransform2D(const Vector2&, float, float);
  5846. void SetWorldTransform(const Vector3&, const Quaternion&);
  5847. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  5848. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  5849. void SetWorldTransform2D(const Vector2&, float);
  5850. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  5851. void SetWorldTransform2D(const Vector2&, float, float);
  5852. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  5853. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  5854. Vector3 WorldToLocal(const Vector3&) const;
  5855. Vector3 WorldToLocal(const Vector4&) const;
  5856. Vector2 WorldToLocal2D(const Vector2&) const;
  5857. void Yaw(float, TransformSpace = TS_LOCAL);
  5858. // Properties:
  5859. bool animationEnabled;
  5860. /* readonly */
  5861. Array<Variant> attributeDefaults;
  5862. /* readonly */
  5863. Array<AttributeInfo> attributeInfos;
  5864. Array<Variant> attributes;
  5865. /* readonly */
  5866. StringHash baseType;
  5867. /* readonly */
  5868. String category;
  5869. /* readonly */
  5870. Array<Node> children;
  5871. /* readonly */
  5872. Array<Component> components;
  5873. Vector3 direction;
  5874. bool enabled;
  5875. /* readonly */
  5876. bool enabledSelf;
  5877. /* readonly */
  5878. uint id;
  5879. String name;
  5880. /* readonly */
  5881. uint numAllChildren;
  5882. /* readonly */
  5883. uint numAttributes;
  5884. /* readonly */
  5885. uint numChildren;
  5886. /* readonly */
  5887. uint numComponents;
  5888. ObjectAnimation objectAnimation;
  5889. Connection owner;
  5890. Node parent;
  5891. Vector3 position;
  5892. Vector2 position2D;
  5893. /* readonly */
  5894. int refs;
  5895. /* readonly */
  5896. Vector3 right;
  5897. Quaternion rotation;
  5898. float rotation2D;
  5899. Vector3 scale;
  5900. Vector2 scale2D;
  5901. /* readonly */
  5902. Scene scene;
  5903. /* readonly */
  5904. ScriptObject scriptObject;
  5905. bool temporary;
  5906. /* readonly */
  5907. Matrix3x4 transform;
  5908. /* readonly */
  5909. StringHash type;
  5910. /* readonly */
  5911. String typeName;
  5912. /* readonly */
  5913. Vector3 up;
  5914. /* readonly */
  5915. VariantMap vars;
  5916. /* readonly */
  5917. int weakRefs;
  5918. Vector3 worldDirection;
  5919. Vector3 worldPosition;
  5920. Vector2 worldPosition2D;
  5921. /* readonly */
  5922. Vector3 worldRight;
  5923. Quaternion worldRotation;
  5924. float worldRotation2D;
  5925. Vector3 worldScale;
  5926. Vector2 worldScale2D;
  5927. /* readonly */
  5928. Matrix3x4 worldTransform;
  5929. /* readonly */
  5930. Vector3 worldUp;
  5931. };
  5932. class Object
  5933. {
  5934. // Methods:
  5935. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5936. // Properties:
  5937. /* readonly */
  5938. StringHash baseType;
  5939. /* readonly */
  5940. String category;
  5941. /* readonly */
  5942. int refs;
  5943. /* readonly */
  5944. StringHash type;
  5945. /* readonly */
  5946. String typeName;
  5947. /* readonly */
  5948. int weakRefs;
  5949. };
  5950. class ObjectAnimation
  5951. {
  5952. // Methods:
  5953. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5954. ValueAnimation GetAttributeAnimation(const String&) const;
  5955. float GetAttributeAnimationSpeed(const String&) const;
  5956. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5957. bool Load(File);
  5958. bool Load(VectorBuffer&);
  5959. void RemoveAttributeAnimation(ValueAnimation);
  5960. void RemoveAttributeAnimation(const String&);
  5961. bool Save(File) const;
  5962. bool Save(VectorBuffer&) const;
  5963. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5964. // Properties:
  5965. /* readonly */
  5966. Array<Variant> attributeAnimations;
  5967. /* readonly */
  5968. StringHash baseType;
  5969. /* readonly */
  5970. String category;
  5971. /* readonly */
  5972. uint memoryUse;
  5973. String name;
  5974. /* readonly */
  5975. int refs;
  5976. /* readonly */
  5977. Array<Variant> speeds;
  5978. /* readonly */
  5979. StringHash type;
  5980. /* readonly */
  5981. String typeName;
  5982. /* readonly */
  5983. uint useTimer;
  5984. /* readonly */
  5985. int weakRefs;
  5986. /* readonly */
  5987. Array<Variant> wrapModes;
  5988. };
  5989. class Octree
  5990. {
  5991. // Methods:
  5992. void AddManualDrawable(Drawable);
  5993. void ApplyAttributes();
  5994. void DrawDebugGeometry(DebugRenderer, bool);
  5995. void DrawDebugGeometry(bool) const;
  5996. Variant GetAttribute(const String&) const;
  5997. ValueAnimation GetAttributeAnimation(const String&) const;
  5998. float GetAttributeAnimationSpeed(const String&) const;
  5999. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6000. Variant GetAttributeDefault(const String&) const;
  6001. Array<Node> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6002. Array<Node> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6003. Array<Node> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6004. Array<Node> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6005. bool Load(File, bool = false);
  6006. bool Load(VectorBuffer&, bool = false);
  6007. bool LoadXML(const XMLElement&, bool = false);
  6008. void MarkNetworkUpdate() const;
  6009. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6010. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6011. void Remove();
  6012. void RemoveInstanceDefault();
  6013. void RemoveManualDrawable(Drawable);
  6014. void ResetToDefault();
  6015. bool Save(File) const;
  6016. bool Save(VectorBuffer&) const;
  6017. bool SaveXML(XMLElement&) const;
  6018. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6019. bool SetAttribute(const String&, const Variant&);
  6020. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6021. void SetAttributeAnimationSpeed(const String&, float);
  6022. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6023. void SetSize(const BoundingBox&, uint);
  6024. // Properties:
  6025. bool animationEnabled;
  6026. /* readonly */
  6027. Array<Variant> attributeDefaults;
  6028. /* readonly */
  6029. Array<AttributeInfo> attributeInfos;
  6030. Array<Variant> attributes;
  6031. /* readonly */
  6032. StringHash baseType;
  6033. /* readonly */
  6034. String category;
  6035. bool enabled;
  6036. /* readonly */
  6037. bool enabledEffective;
  6038. /* readonly */
  6039. uint id;
  6040. /* readonly */
  6041. Node node;
  6042. /* readonly */
  6043. uint numAttributes;
  6044. /* readonly */
  6045. uint numLevels;
  6046. ObjectAnimation objectAnimation;
  6047. /* readonly */
  6048. int refs;
  6049. bool temporary;
  6050. /* readonly */
  6051. StringHash type;
  6052. /* readonly */
  6053. String typeName;
  6054. /* readonly */
  6055. int weakRefs;
  6056. /* readonly */
  6057. BoundingBox worldBoundingBox;
  6058. };
  6059. class OffMeshConnection
  6060. {
  6061. // Methods:
  6062. void ApplyAttributes();
  6063. void DrawDebugGeometry(DebugRenderer, bool);
  6064. Variant GetAttribute(const String&) const;
  6065. ValueAnimation GetAttributeAnimation(const String&) const;
  6066. float GetAttributeAnimationSpeed(const String&) const;
  6067. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6068. Variant GetAttributeDefault(const String&) const;
  6069. bool Load(File, bool = false);
  6070. bool Load(VectorBuffer&, bool = false);
  6071. bool LoadXML(const XMLElement&, bool = false);
  6072. void MarkNetworkUpdate() const;
  6073. void Remove();
  6074. void RemoveInstanceDefault();
  6075. void ResetToDefault();
  6076. bool Save(File) const;
  6077. bool Save(VectorBuffer&) const;
  6078. bool SaveXML(XMLElement&) const;
  6079. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6080. bool SetAttribute(const String&, const Variant&);
  6081. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6082. void SetAttributeAnimationSpeed(const String&, float);
  6083. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6084. // Properties:
  6085. bool animationEnabled;
  6086. /* readonly */
  6087. Array<Variant> attributeDefaults;
  6088. /* readonly */
  6089. Array<AttributeInfo> attributeInfos;
  6090. Array<Variant> attributes;
  6091. /* readonly */
  6092. StringHash baseType;
  6093. bool bidirectional;
  6094. /* readonly */
  6095. String category;
  6096. bool enabled;
  6097. /* readonly */
  6098. bool enabledEffective;
  6099. Node endPoint;
  6100. /* readonly */
  6101. uint id;
  6102. /* readonly */
  6103. Node node;
  6104. /* readonly */
  6105. uint numAttributes;
  6106. ObjectAnimation objectAnimation;
  6107. float radius;
  6108. /* readonly */
  6109. int refs;
  6110. bool temporary;
  6111. /* readonly */
  6112. StringHash type;
  6113. /* readonly */
  6114. String typeName;
  6115. /* readonly */
  6116. int weakRefs;
  6117. };
  6118. class PackageFile
  6119. {
  6120. // Methods:
  6121. bool Exists(const String&) const;
  6122. Array<String> GetEntryNames() const;
  6123. bool Open(const String&, uint = 0) const;
  6124. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6125. bool compressed() const;
  6126. // Properties:
  6127. /* readonly */
  6128. StringHash baseType;
  6129. /* readonly */
  6130. String category;
  6131. /* readonly */
  6132. uint checksum;
  6133. /* readonly */
  6134. String name;
  6135. /* readonly */
  6136. uint numFiles;
  6137. /* readonly */
  6138. int refs;
  6139. /* readonly */
  6140. uint totalSize;
  6141. /* readonly */
  6142. StringHash type;
  6143. /* readonly */
  6144. String typeName;
  6145. /* readonly */
  6146. int weakRefs;
  6147. };
  6148. class ParticleEffect
  6149. {
  6150. // Methods:
  6151. void AddColorFrame(ColorFrame);
  6152. void AddColorTime(Color&, float);
  6153. void AddTextureFrame(TextureFrame);
  6154. void AddTextureTime(Rect&, float);
  6155. ColorFrame GetColorFrame(uint) const;
  6156. TextureFrame GetTextureFrame(uint) const;
  6157. bool Load(File);
  6158. bool Load(VectorBuffer&);
  6159. bool Load(const XMLElement&);
  6160. void RemoveColorFrame(uint);
  6161. void RemoveTextureFrame(uint);
  6162. bool Save(File) const;
  6163. bool Save(VectorBuffer&) const;
  6164. bool Save(XMLElement&) const;
  6165. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6166. void SetColorFrame(uint, ColorFrame);
  6167. void SetTextureFrame(uint, TextureFrame);
  6168. void SortColorFrames();
  6169. void SortTextureFrames();
  6170. // Properties:
  6171. float activeTime;
  6172. float animationLodBias;
  6173. /* readonly */
  6174. StringHash baseType;
  6175. /* readonly */
  6176. String category;
  6177. Vector3 constantForce;
  6178. float dampingForce;
  6179. Vector3 emitterSize;
  6180. EmitterType emitterType;
  6181. float inactiveTime;
  6182. Material material;
  6183. Vector3 maxDirection;
  6184. float maxEmissionRate;
  6185. Vector2 maxParticleSize;
  6186. float maxRotation;
  6187. float maxRotationSpeed;
  6188. float maxTimeToLive;
  6189. float maxVelocity;
  6190. /* readonly */
  6191. uint memoryUse;
  6192. Vector3 minDirection;
  6193. float minEmissionRate;
  6194. Vector2 minParticleSize;
  6195. float minRotation;
  6196. float minRotationSpeed;
  6197. float minTimeToLive;
  6198. float minVelocity;
  6199. String name;
  6200. uint numColorFrames;
  6201. uint numParticles;
  6202. uint numTextureFrames;
  6203. /* readonly */
  6204. int refs;
  6205. bool relative;
  6206. bool scaled;
  6207. float sizeAdd;
  6208. float sizeMul;
  6209. bool sorted;
  6210. /* readonly */
  6211. StringHash type;
  6212. /* readonly */
  6213. String typeName;
  6214. bool updateInvisible;
  6215. /* readonly */
  6216. uint useTimer;
  6217. /* readonly */
  6218. int weakRefs;
  6219. };
  6220. class ParticleEffect2D
  6221. {
  6222. // Methods:
  6223. bool Load(File);
  6224. bool Load(VectorBuffer&);
  6225. bool Save(File) const;
  6226. bool Save(VectorBuffer&) const;
  6227. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6228. // Properties:
  6229. /* readonly */
  6230. StringHash baseType;
  6231. /* readonly */
  6232. String category;
  6233. /* readonly */
  6234. uint memoryUse;
  6235. String name;
  6236. /* readonly */
  6237. int refs;
  6238. /* readonly */
  6239. StringHash type;
  6240. /* readonly */
  6241. String typeName;
  6242. /* readonly */
  6243. uint useTimer;
  6244. /* readonly */
  6245. int weakRefs;
  6246. };
  6247. class ParticleEmitter
  6248. {
  6249. // Methods:
  6250. void ApplyAttributes();
  6251. void ApplyEffect();
  6252. void Commit();
  6253. void DrawDebugGeometry(DebugRenderer, bool);
  6254. Variant GetAttribute(const String&) const;
  6255. ValueAnimation GetAttributeAnimation(const String&) const;
  6256. float GetAttributeAnimationSpeed(const String&) const;
  6257. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6258. Variant GetAttributeDefault(const String&) const;
  6259. bool IsInView(Camera) const;
  6260. bool Load(File, bool = false);
  6261. bool Load(VectorBuffer&, bool = false);
  6262. bool LoadXML(const XMLElement&, bool = false);
  6263. void MarkNetworkUpdate() const;
  6264. void Remove();
  6265. void RemoveAllParticles();
  6266. void RemoveInstanceDefault();
  6267. void Reset();
  6268. void ResetEmissionTimer();
  6269. void ResetToDefault();
  6270. bool Save(File) const;
  6271. bool Save(VectorBuffer&) const;
  6272. bool SaveXML(XMLElement&) const;
  6273. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6274. bool SetAttribute(const String&, const Variant&);
  6275. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6276. void SetAttributeAnimationSpeed(const String&, float);
  6277. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6278. // Properties:
  6279. bool animationEnabled;
  6280. float animationLodBias;
  6281. /* readonly */
  6282. Array<Variant> attributeDefaults;
  6283. /* readonly */
  6284. Array<AttributeInfo> attributeInfos;
  6285. Array<Variant> attributes;
  6286. /* readonly */
  6287. StringHash baseType;
  6288. /* readonly */
  6289. Array<Billboard> billboards;
  6290. /* readonly */
  6291. BoundingBox boundingBox;
  6292. bool castShadows;
  6293. /* readonly */
  6294. String category;
  6295. float drawDistance;
  6296. ParticleEffect effect;
  6297. bool emitting;
  6298. bool enabled;
  6299. /* readonly */
  6300. bool enabledEffective;
  6301. FaceCameraMode faceCameraMode;
  6302. /* readonly */
  6303. uint id;
  6304. /* readonly */
  6305. bool inView;
  6306. uint lightMask;
  6307. float lodBias;
  6308. Material material;
  6309. uint maxLights;
  6310. /* readonly */
  6311. Node node;
  6312. /* readonly */
  6313. uint numAttributes;
  6314. uint numBillboards;
  6315. uint numParticles;
  6316. ObjectAnimation objectAnimation;
  6317. bool occludee;
  6318. bool occluder;
  6319. /* readonly */
  6320. int refs;
  6321. bool relative;
  6322. bool scaled;
  6323. bool serializeParticles;
  6324. float shadowDistance;
  6325. uint shadowMask;
  6326. bool sorted;
  6327. bool temporary;
  6328. /* readonly */
  6329. StringHash type;
  6330. /* readonly */
  6331. String typeName;
  6332. uint viewMask;
  6333. /* readonly */
  6334. int weakRefs;
  6335. /* readonly */
  6336. BoundingBox worldBoundingBox;
  6337. /* readonly */
  6338. Zone zone;
  6339. uint zoneMask;
  6340. };
  6341. class ParticleEmitter2D
  6342. {
  6343. // Methods:
  6344. void ApplyAttributes();
  6345. void DrawDebugGeometry(DebugRenderer, bool);
  6346. Variant GetAttribute(const String&) const;
  6347. ValueAnimation GetAttributeAnimation(const String&) const;
  6348. float GetAttributeAnimationSpeed(const String&) const;
  6349. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6350. Variant GetAttributeDefault(const String&) const;
  6351. bool IsInView(Camera) const;
  6352. bool Load(File, bool = false);
  6353. bool Load(VectorBuffer&, bool = false);
  6354. bool LoadXML(const XMLElement&, bool = false);
  6355. void MarkNetworkUpdate() const;
  6356. void Remove();
  6357. void RemoveInstanceDefault();
  6358. void ResetToDefault();
  6359. bool Save(File) const;
  6360. bool Save(VectorBuffer&) const;
  6361. bool SaveXML(XMLElement&) const;
  6362. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6363. bool SetAttribute(const String&, const Variant&);
  6364. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6365. void SetAttributeAnimationSpeed(const String&, float);
  6366. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6367. // Properties:
  6368. bool animationEnabled;
  6369. /* readonly */
  6370. Array<Variant> attributeDefaults;
  6371. /* readonly */
  6372. Array<AttributeInfo> attributeInfos;
  6373. Array<Variant> attributes;
  6374. /* readonly */
  6375. StringHash baseType;
  6376. BlendMode blendMode;
  6377. /* readonly */
  6378. BoundingBox boundingBox;
  6379. bool castShadows;
  6380. /* readonly */
  6381. String category;
  6382. float drawDistance;
  6383. ParticleEffect2D effect;
  6384. bool enabled;
  6385. /* readonly */
  6386. bool enabledEffective;
  6387. /* readonly */
  6388. uint id;
  6389. /* readonly */
  6390. bool inView;
  6391. int layer;
  6392. uint lightMask;
  6393. float lodBias;
  6394. uint maxLights;
  6395. /* readonly */
  6396. Node node;
  6397. /* readonly */
  6398. uint numAttributes;
  6399. ObjectAnimation objectAnimation;
  6400. bool occludee;
  6401. bool occluder;
  6402. int orderInLayer;
  6403. /* readonly */
  6404. int refs;
  6405. float shadowDistance;
  6406. uint shadowMask;
  6407. Sprite2D sprite;
  6408. bool temporary;
  6409. Texture2D texture;
  6410. /* readonly */
  6411. StringHash type;
  6412. /* readonly */
  6413. String typeName;
  6414. uint viewMask;
  6415. /* readonly */
  6416. int weakRefs;
  6417. /* readonly */
  6418. BoundingBox worldBoundingBox;
  6419. uint zoneMask;
  6420. };
  6421. class Pass
  6422. {
  6423. // Properties:
  6424. bool alphaMask;
  6425. BlendMode blendMode;
  6426. CompareMode depthTestMode;
  6427. bool depthWrite;
  6428. bool desktop;
  6429. PassLightingMode lightingMode;
  6430. String pixelShader;
  6431. String pixelShaderDefines;
  6432. /* readonly */
  6433. int refs;
  6434. bool sm3;
  6435. String vertexShader;
  6436. String vertexShaderDefines;
  6437. /* readonly */
  6438. int weakRefs;
  6439. };
  6440. class PhysicsRaycastResult
  6441. {
  6442. // Properties:
  6443. /* readonly */
  6444. RigidBody body;
  6445. float distance;
  6446. Vector3 normal;
  6447. Vector3 position;
  6448. };
  6449. class PhysicsRaycastResult2D
  6450. {
  6451. // Properties:
  6452. /* readonly */
  6453. RigidBody2D body;
  6454. float distance;
  6455. Vector2 normal;
  6456. Vector2 position;
  6457. };
  6458. class PhysicsWorld
  6459. {
  6460. // Methods:
  6461. void ApplyAttributes();
  6462. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  6463. void DrawDebugGeometry(DebugRenderer, bool);
  6464. void DrawDebugGeometry(bool);
  6465. Variant GetAttribute(const String&) const;
  6466. ValueAnimation GetAttributeAnimation(const String&) const;
  6467. float GetAttributeAnimationSpeed(const String&) const;
  6468. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6469. Variant GetAttributeDefault(const String&) const;
  6470. Array<RigidBody> GetRigidBodies(RigidBody);
  6471. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  6472. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  6473. bool Load(File, bool = false);
  6474. bool Load(VectorBuffer&, bool = false);
  6475. bool LoadXML(const XMLElement&, bool = false);
  6476. void MarkNetworkUpdate() const;
  6477. Array<PhysicsRaycastResult> Raycast(const Ray&, float = M_INFINITY, uint = 0xffff);
  6478. PhysicsRaycastResult RaycastSingle(const Ray&, float = M_INFINITY, uint = 0xffff);
  6479. void Remove();
  6480. void RemoveCachedGeometry(Model);
  6481. void RemoveInstanceDefault();
  6482. void ResetToDefault();
  6483. bool Save(File) const;
  6484. bool Save(VectorBuffer&) const;
  6485. bool SaveXML(XMLElement&) const;
  6486. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  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 SetAttributeAnimationWrapMode(const String&, WrapMode);
  6491. PhysicsRaycastResult SphereCast(const Ray&, float, float = M_INFINITY, uint = 0xffff);
  6492. void Update(float);
  6493. void UpdateCollisions();
  6494. // Properties:
  6495. bool animationEnabled;
  6496. /* readonly */
  6497. Array<Variant> attributeDefaults;
  6498. /* readonly */
  6499. Array<AttributeInfo> attributeInfos;
  6500. Array<Variant> attributes;
  6501. /* readonly */
  6502. StringHash baseType;
  6503. /* readonly */
  6504. String category;
  6505. bool enabled;
  6506. /* readonly */
  6507. bool enabledEffective;
  6508. int fps;
  6509. Vector3 gravity;
  6510. /* readonly */
  6511. uint id;
  6512. bool internalEdge;
  6513. bool interpolation;
  6514. int maxSubSteps;
  6515. /* readonly */
  6516. Node node;
  6517. /* readonly */
  6518. uint numAttributes;
  6519. int numIterations;
  6520. ObjectAnimation objectAnimation;
  6521. /* readonly */
  6522. int refs;
  6523. bool splitImpulse;
  6524. bool temporary;
  6525. /* readonly */
  6526. StringHash type;
  6527. /* readonly */
  6528. String typeName;
  6529. /* readonly */
  6530. int weakRefs;
  6531. };
  6532. class PhysicsWorld2D
  6533. {
  6534. // Methods:
  6535. void ApplyAttributes();
  6536. void DrawDebugGeometry() const;
  6537. void DrawDebugGeometry(DebugRenderer, bool);
  6538. Variant GetAttribute(const String&) const;
  6539. ValueAnimation GetAttributeAnimation(const String&) const;
  6540. float GetAttributeAnimationSpeed(const String&) const;
  6541. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6542. Variant GetAttributeDefault(const String&) const;
  6543. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  6544. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  6545. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  6546. bool Load(File, bool = false);
  6547. bool Load(VectorBuffer&, bool = false);
  6548. bool LoadXML(const XMLElement&, bool = false);
  6549. void MarkNetworkUpdate() const;
  6550. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  6551. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  6552. void Remove();
  6553. void RemoveInstanceDefault();
  6554. void ResetToDefault();
  6555. bool Save(File) const;
  6556. bool Save(VectorBuffer&) const;
  6557. bool SaveXML(XMLElement&) const;
  6558. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6559. bool SetAttribute(const String&, const Variant&);
  6560. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6561. void SetAttributeAnimationSpeed(const String&, float);
  6562. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6563. // Properties:
  6564. bool allowSleeping;
  6565. bool animationEnabled;
  6566. /* readonly */
  6567. Array<Variant> attributeDefaults;
  6568. /* readonly */
  6569. Array<AttributeInfo> attributeInfos;
  6570. Array<Variant> attributes;
  6571. bool autoClearForces;
  6572. /* readonly */
  6573. StringHash baseType;
  6574. /* readonly */
  6575. String category;
  6576. bool continuousPhysics;
  6577. bool drawAabb;
  6578. bool drawCenterOfMass;
  6579. bool drawJoint;
  6580. bool drawPair;
  6581. bool drawShape;
  6582. bool enabled;
  6583. /* readonly */
  6584. bool enabledEffective;
  6585. Vector2 gravity;
  6586. /* readonly */
  6587. uint id;
  6588. /* readonly */
  6589. Node node;
  6590. /* readonly */
  6591. uint numAttributes;
  6592. ObjectAnimation objectAnimation;
  6593. uint positionIterations;
  6594. /* readonly */
  6595. int refs;
  6596. bool subStepping;
  6597. bool temporary;
  6598. /* readonly */
  6599. StringHash type;
  6600. /* readonly */
  6601. String typeName;
  6602. uint velocityIterations;
  6603. bool warmStarting;
  6604. /* readonly */
  6605. int weakRefs;
  6606. };
  6607. class Plane
  6608. {
  6609. // Methods:
  6610. void Define(const Vector3&, const Vector3&);
  6611. void Define(const Vector3&, const Vector3&, const Vector3&);
  6612. void Define(const Vector4&);
  6613. float Distance(const Vector3&) const;
  6614. Vector3 Project(const Vector3&) const;
  6615. Vector3 Reflect(const Vector3&) const;
  6616. Vector4 ToVector4() const;
  6617. void Transform(const Matrix3&);
  6618. void Transform(const Matrix3x4&);
  6619. void Transform(const Matrix4&);
  6620. Plane Transformed(const Matrix3&) const;
  6621. Plane Transformed(const Matrix3x4&) const;
  6622. Plane Transformed(const Matrix4&) const;
  6623. // Properties:
  6624. Vector3 absNormal;
  6625. float d;
  6626. Vector3 normal;
  6627. /* readonly */
  6628. Matrix3x4 reflectionMatrix;
  6629. };
  6630. class Polyhedron
  6631. {
  6632. // Methods:
  6633. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  6634. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  6635. void AddFace(const Array<Vector3>);
  6636. void Clear();
  6637. void Clip(const BoundingBox&);
  6638. void Clip(const Frustum&);
  6639. void Define(const BoundingBox&);
  6640. void Define(const Frustum&);
  6641. void Transform(const Matrix3&);
  6642. void Transform(const Matrix3x4&);
  6643. Polyhedron Transformed(const Matrix3&) const;
  6644. Polyhedron Transformed(const Matrix3x4&) const;
  6645. // Properties:
  6646. /* readonly */
  6647. Array<Array<Vector3>> face;
  6648. /* readonly */
  6649. uint numFaces;
  6650. };
  6651. class PropertySet2D
  6652. {
  6653. // Methods:
  6654. bool HasProperty(const String&) const;
  6655. const String& GetProperty(const String&) const;
  6656. // Properties:
  6657. /* readonly */
  6658. int refs;
  6659. /* readonly */
  6660. int weakRefs;
  6661. };
  6662. class Quaternion
  6663. {
  6664. // Methods:
  6665. float DotProduct(const Quaternion&) const;
  6666. bool Equals(const Quaternion&) const;
  6667. void FromAngleAxis(float, const Vector3&);
  6668. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  6669. void FromEulerAngles(float, float, float);
  6670. bool FromLookRotation(const Vector3&, const Vector3&);
  6671. void FromRotationTo(const Vector3&, const Vector3&);
  6672. Quaternion Inverse() const;
  6673. bool IsNaN() const;
  6674. Quaternion Nlerp(Quaternion, float, bool) const;
  6675. void Normalize();
  6676. Quaternion Normalized() const;
  6677. Quaternion Slerp(Quaternion, float) const;
  6678. String ToString() const;
  6679. // Properties:
  6680. /* readonly */
  6681. Vector3 eulerAngles;
  6682. /* readonly */
  6683. float pitch;
  6684. /* readonly */
  6685. float roll;
  6686. float w;
  6687. float x;
  6688. float y;
  6689. /* readonly */
  6690. float yaw;
  6691. float z;
  6692. };
  6693. class Ray
  6694. {
  6695. // Methods:
  6696. Vector3 ClosestPoint(const Ray&) const;
  6697. void Define(const Vector3&, const Vector3&);
  6698. float Distance(const Vector3&) const;
  6699. float HitDistance(const BoundingBox&) const;
  6700. float HitDistance(const Frustum&, bool = true) const;
  6701. float HitDistance(const Plane&) const;
  6702. float HitDistance(const Sphere&) const;
  6703. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  6704. Vector3 Project(const Vector3&) const;
  6705. Ray Transformed(const Matrix3x4&) const;
  6706. // Properties:
  6707. Vector3 direction;
  6708. Vector3 origin;
  6709. };
  6710. class RayQueryResult
  6711. {
  6712. // Properties:
  6713. float distance;
  6714. /* readonly */
  6715. Drawable drawable;
  6716. /* readonly */
  6717. Node node;
  6718. Vector3 normal;
  6719. Vector3 position;
  6720. uint subObject;
  6721. };
  6722. class Rect
  6723. {
  6724. // Methods:
  6725. void Clear();
  6726. void Clip(const Rect&);
  6727. void Define(const Vector2&);
  6728. void Define(const Vector2&, const Vector2&);
  6729. bool Equals(const Rect&) const;
  6730. Intersection IsInside(const Vector2&) const;
  6731. void Merge(const Rect&);
  6732. void Merge(const Vector2&);
  6733. Vector4 ToVector4() const;
  6734. // Properties:
  6735. float bottom;
  6736. /* readonly */
  6737. Vector2 center;
  6738. bool defined;
  6739. /* readonly */
  6740. Vector2 halfSize;
  6741. float left;
  6742. Vector2 max;
  6743. Vector2 min;
  6744. float right;
  6745. /* readonly */
  6746. Vector2 size;
  6747. float top;
  6748. };
  6749. class RefCounted
  6750. {
  6751. // Properties:
  6752. /* readonly */
  6753. int refs;
  6754. /* readonly */
  6755. int weakRefs;
  6756. };
  6757. class RenderPath
  6758. {
  6759. // Methods:
  6760. void AddCommand(const RenderPathCommand&);
  6761. void AddRenderTarget(const RenderTargetInfo&);
  6762. bool Append(XMLFile);
  6763. RenderPath Clone();
  6764. void InsertCommand(uint, const RenderPathCommand&);
  6765. bool Load(XMLFile);
  6766. void RemoveCommand(uint);
  6767. void RemoveCommands(const String&);
  6768. void RemoveRenderTarget(const String&);
  6769. void RemoveRenderTarget(uint);
  6770. void RemoveRenderTargts(const String&);
  6771. void SetEnabled(const String&, bool);
  6772. void ToggleEnabled(const String&);
  6773. // Properties:
  6774. Array<RenderPathCommand> commands;
  6775. /* readonly */
  6776. uint numCommands;
  6777. /* readonly */
  6778. uint numRenderTargets;
  6779. /* readonly */
  6780. int refs;
  6781. Array<RenderTargetInfo> renderTargets;
  6782. Array<Variant> shaderParameters;
  6783. /* readonly */
  6784. int weakRefs;
  6785. };
  6786. class RenderPathCommand
  6787. {
  6788. // Methods:
  6789. void RemoveShaderParameter(const String&);
  6790. // Properties:
  6791. Color clearColor;
  6792. float clearDepth;
  6793. uint clearFlags;
  6794. uint clearStencil;
  6795. String depthStencilName;
  6796. bool enabled;
  6797. bool markToStencil;
  6798. String metadata;
  6799. uint numOutputs;
  6800. Array<String> outputNames;
  6801. String pass;
  6802. String pixelShaderDefines;
  6803. String pixelShaderName;
  6804. Array<Variant> shaderParameters;
  6805. RenderCommandSortMode sortMode;
  6806. String tag;
  6807. Array<String> textureNames;
  6808. RenderCommandType type;
  6809. bool useFogColor;
  6810. bool useLitBase;
  6811. bool vertexLights;
  6812. String vertexShaderDefines;
  6813. String vertexShaderName;
  6814. };
  6815. class RenderSurface
  6816. {
  6817. // Methods:
  6818. void QueueUpdate();
  6819. // Properties:
  6820. /* readonly */
  6821. int height;
  6822. RenderSurface linkedDepthStencil;
  6823. RenderSurface linkedRenderTarget;
  6824. uint numViewports;
  6825. /* readonly */
  6826. Texture parentTexture;
  6827. RenderSurfaceUpdateMode updateMode;
  6828. /* readonly */
  6829. TextureUsage usage;
  6830. Array<Viewport> viewports;
  6831. /* readonly */
  6832. int width;
  6833. };
  6834. class RenderTargetInfo
  6835. {
  6836. // Properties:
  6837. bool enabled;
  6838. bool filtered;
  6839. uint format;
  6840. String name;
  6841. bool persistent;
  6842. bool sRGB;
  6843. Vector2 size;
  6844. RenderTargetSizeMode sizeMode;
  6845. String tag;
  6846. };
  6847. class Renderer
  6848. {
  6849. // Methods:
  6850. void DrawDebugGeometry(bool) const;
  6851. void ReloadShaders() const;
  6852. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6853. void SetDefaultRenderPath(XMLFile);
  6854. // Properties:
  6855. /* readonly */
  6856. StringHash baseType;
  6857. /* readonly */
  6858. String category;
  6859. /* readonly */
  6860. Material defaultLightRamp;
  6861. /* readonly */
  6862. Material defaultLightSpot;
  6863. /* readonly */
  6864. Material defaultMaterial;
  6865. RenderPath defaultRenderPath;
  6866. /* readonly */
  6867. Zone defaultZone;
  6868. bool drawShadows;
  6869. bool dynamicInstancing;
  6870. bool hdrRendering;
  6871. int materialQuality;
  6872. int maxInstanceTriangles;
  6873. int maxOccluderTriangles;
  6874. int maxShadowMaps;
  6875. int maxSortedInstances;
  6876. int minInstances;
  6877. float mobileShadowBiasAdd;
  6878. float mobileShadowBiasMul;
  6879. /* readonly */
  6880. uint numBatches;
  6881. /* readonly */
  6882. Array<uint> numGeometries;
  6883. /* readonly */
  6884. Array<uint> numLights;
  6885. /* readonly */
  6886. Array<uint> numOccluders;
  6887. /* readonly */
  6888. uint numPrimitives;
  6889. /* readonly */
  6890. Array<uint> numShadowMaps;
  6891. uint numViewports;
  6892. /* readonly */
  6893. uint numViews;
  6894. float occluderSizeThreshold;
  6895. int occlusionBufferSize;
  6896. /* readonly */
  6897. int refs;
  6898. bool reuseShadowMaps;
  6899. int shadowMapSize;
  6900. int shadowQuality;
  6901. bool specularLighting;
  6902. int textureAnisotropy;
  6903. TextureFilterMode textureFilterMode;
  6904. int textureQuality;
  6905. /* readonly */
  6906. StringHash type;
  6907. /* readonly */
  6908. String typeName;
  6909. Array<Viewport> viewports;
  6910. /* readonly */
  6911. int weakRefs;
  6912. };
  6913. class Resource
  6914. {
  6915. // Methods:
  6916. bool Load(File);
  6917. bool Load(VectorBuffer&);
  6918. bool Save(File) const;
  6919. bool Save(VectorBuffer&) const;
  6920. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6921. // Properties:
  6922. /* readonly */
  6923. StringHash baseType;
  6924. /* readonly */
  6925. String category;
  6926. /* readonly */
  6927. uint memoryUse;
  6928. String name;
  6929. /* readonly */
  6930. int refs;
  6931. /* readonly */
  6932. StringHash type;
  6933. /* readonly */
  6934. String typeName;
  6935. /* readonly */
  6936. uint useTimer;
  6937. /* readonly */
  6938. int weakRefs;
  6939. };
  6940. class ResourceCache
  6941. {
  6942. // Methods:
  6943. bool AddManualResource(Resource);
  6944. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  6945. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  6946. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  6947. bool BackgroundLoadResource(const String&, const String&, bool = true);
  6948. bool Exists(const String&) const;
  6949. File GetFile(const String&);
  6950. String GetPreferredResourceDir(const String&) const;
  6951. Resource GetResource(StringHash, const String&, bool = true);
  6952. Resource GetResource(const String&, const String&, bool = true);
  6953. String GetResourceFileName(const String&) const;
  6954. void ReleaseAllResources(bool = false);
  6955. void ReleaseResource(const String&, const String&, bool = false);
  6956. void ReleaseResources(StringHash, bool = false);
  6957. void ReleaseResources(const String&, bool = false);
  6958. void ReleaseResources(const String&, const String&, bool = false);
  6959. bool ReloadResource(Resource);
  6960. void ReloadResourceWithDependencies(const String&);
  6961. void RemovePackageFile(PackageFile, bool = true, bool = false);
  6962. void RemovePackageFile(const String&, bool = true, bool = false);
  6963. void RemoveResourceDir(const String&);
  6964. String SanitateResourceDirName(const String&) const;
  6965. String SanitateResourceName(const String&) const;
  6966. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6967. // Properties:
  6968. bool autoReloadResources;
  6969. /* readonly */
  6970. StringHash baseType;
  6971. /* readonly */
  6972. String category;
  6973. int finishBackgroundResourcesMs;
  6974. Array<uint> memoryBudget;
  6975. /* readonly */
  6976. Array<uint> memoryUse;
  6977. /* readonly */
  6978. uint numBackgroundLoadResources;
  6979. /* readonly */
  6980. Array<PackageFile> packageFiles;
  6981. /* readonly */
  6982. int refs;
  6983. /* readonly */
  6984. Array<String> resourceDirs;
  6985. bool returnFailedResources;
  6986. /* readonly */
  6987. bool seachPackagesFirst;
  6988. /* writeonly */
  6989. bool searchPackagesFirst;
  6990. /* readonly */
  6991. uint totalMemoryUse;
  6992. /* readonly */
  6993. StringHash type;
  6994. /* readonly */
  6995. String typeName;
  6996. /* readonly */
  6997. int weakRefs;
  6998. };
  6999. class ResourceRef
  7000. {
  7001. // Properties:
  7002. String name;
  7003. StringHash type;
  7004. };
  7005. class ResourceRefList
  7006. {
  7007. // Methods:
  7008. void Resize(uint);
  7009. // Properties:
  7010. /* readonly */
  7011. bool empty;
  7012. /* readonly */
  7013. uint length;
  7014. Array<String> names;
  7015. StringHash type;
  7016. };
  7017. class RigidBody
  7018. {
  7019. // Methods:
  7020. void Activate();
  7021. void ApplyAttributes();
  7022. void ApplyForce(const Vector3&);
  7023. void ApplyForce(const Vector3&, const Vector3&);
  7024. void ApplyImpulse(const Vector3&);
  7025. void ApplyImpulse(const Vector3&, const Vector3&);
  7026. void ApplyTorque(const Vector3&);
  7027. void ApplyTorqueImpulse(const Vector3&);
  7028. void DisableMassUpdate();
  7029. void DrawDebugGeometry(DebugRenderer, bool);
  7030. void EnableMassUpdate();
  7031. Variant GetAttribute(const String&) const;
  7032. ValueAnimation GetAttributeAnimation(const String&) const;
  7033. float GetAttributeAnimationSpeed(const String&) const;
  7034. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7035. Variant GetAttributeDefault(const String&) const;
  7036. Vector3 GetVelocityAtPoint(const Vector3&) const;
  7037. bool Load(File, bool = false);
  7038. bool Load(VectorBuffer&, bool = false);
  7039. bool LoadXML(const XMLElement&, bool = false);
  7040. void MarkNetworkUpdate() const;
  7041. void ReAddBodyToWorld();
  7042. void Remove();
  7043. void RemoveInstanceDefault();
  7044. void ResetForces();
  7045. void ResetToDefault();
  7046. bool Save(File) const;
  7047. bool Save(VectorBuffer&) const;
  7048. bool SaveXML(XMLElement&) const;
  7049. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7050. bool SetAttribute(const String&, const Variant&);
  7051. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7052. void SetAttributeAnimationSpeed(const String&, float);
  7053. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7054. void SetCollisionLayerAndMask(uint, uint);
  7055. void SetTransform(const Vector3&, const Quaternion&);
  7056. // Properties:
  7057. /* readonly */
  7058. bool active;
  7059. float angularDamping;
  7060. Vector3 angularFactor;
  7061. float angularRestThreshold;
  7062. Vector3 angularVelocity;
  7063. bool animationEnabled;
  7064. Vector3 anisotropicFriction;
  7065. /* readonly */
  7066. Array<Variant> attributeDefaults;
  7067. /* readonly */
  7068. Array<AttributeInfo> attributeInfos;
  7069. Array<Variant> attributes;
  7070. /* readonly */
  7071. StringHash baseType;
  7072. /* readonly */
  7073. String category;
  7074. float ccdMotionThreshold;
  7075. float ccdRadius;
  7076. /* readonly */
  7077. Vector3 centerOfMass;
  7078. /* readonly */
  7079. Array<RigidBody> collidingBodies;
  7080. CollisionEventMode collisionEventMode;
  7081. uint collisionLayer;
  7082. uint collisionMask;
  7083. float contactProcessingThreshold;
  7084. bool enabled;
  7085. /* readonly */
  7086. bool enabledEffective;
  7087. float friction;
  7088. Vector3 gravityOverride;
  7089. /* readonly */
  7090. uint id;
  7091. bool kinematic;
  7092. float linearDamping;
  7093. Vector3 linearFactor;
  7094. float linearRestThreshold;
  7095. Vector3 linearVelocity;
  7096. float mass;
  7097. /* readonly */
  7098. Node node;
  7099. /* readonly */
  7100. uint numAttributes;
  7101. ObjectAnimation objectAnimation;
  7102. Vector3 position;
  7103. /* readonly */
  7104. int refs;
  7105. float restitution;
  7106. float rollingFriction;
  7107. Quaternion rotation;
  7108. bool temporary;
  7109. bool trigger;
  7110. /* readonly */
  7111. StringHash type;
  7112. /* readonly */
  7113. String typeName;
  7114. bool useGravity;
  7115. /* readonly */
  7116. int weakRefs;
  7117. };
  7118. class RigidBody2D
  7119. {
  7120. // Methods:
  7121. void ApplyAngularImpulse(float, bool);
  7122. void ApplyAttributes();
  7123. void ApplyForce(const Vector2&, const Vector2&, bool);
  7124. void ApplyForceToCenter(const Vector2&, bool);
  7125. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  7126. void ApplyTorque(float, bool);
  7127. void DrawDebugGeometry(DebugRenderer, bool);
  7128. Variant GetAttribute(const String&) const;
  7129. ValueAnimation GetAttributeAnimation(const String&) const;
  7130. float GetAttributeAnimationSpeed(const String&) const;
  7131. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7132. Variant GetAttributeDefault(const String&) const;
  7133. bool Load(File, bool = false);
  7134. bool Load(VectorBuffer&, bool = false);
  7135. bool LoadXML(const XMLElement&, bool = false);
  7136. void MarkNetworkUpdate() const;
  7137. void Remove();
  7138. void RemoveInstanceDefault();
  7139. void ResetToDefault();
  7140. bool Save(File) const;
  7141. bool Save(VectorBuffer&) const;
  7142. bool SaveXML(XMLElement&) const;
  7143. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7144. bool SetAttribute(const String&, const Variant&);
  7145. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7146. void SetAttributeAnimationSpeed(const String&, float);
  7147. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7148. // Properties:
  7149. bool allowSleep;
  7150. float angularDamping;
  7151. bool animationEnabled;
  7152. /* readonly */
  7153. Array<Variant> attributeDefaults;
  7154. /* readonly */
  7155. Array<AttributeInfo> attributeInfos;
  7156. Array<Variant> attributes;
  7157. bool awake;
  7158. /* readonly */
  7159. StringHash baseType;
  7160. BodyType2D bodyType;
  7161. bool bullet;
  7162. /* readonly */
  7163. String category;
  7164. bool enabled;
  7165. /* readonly */
  7166. bool enabledEffective;
  7167. bool fixedRotation;
  7168. float gravityScale;
  7169. /* readonly */
  7170. uint id;
  7171. float inertia;
  7172. float linearDamping;
  7173. Vector2 linearVelocity;
  7174. float mass;
  7175. Vector2 massCenter;
  7176. /* readonly */
  7177. Node node;
  7178. /* readonly */
  7179. uint numAttributes;
  7180. ObjectAnimation objectAnimation;
  7181. /* readonly */
  7182. int refs;
  7183. bool temporary;
  7184. /* readonly */
  7185. StringHash type;
  7186. /* readonly */
  7187. String typeName;
  7188. bool useFixtureMass;
  7189. /* readonly */
  7190. int weakRefs;
  7191. };
  7192. class Scene
  7193. {
  7194. // Methods:
  7195. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7196. void AddRequiredPackageFile(PackageFile);
  7197. void ApplyAttributes();
  7198. void Clear(bool = true, bool = true);
  7199. void ClearRequiredPackageFiles();
  7200. Component CloneComponent(Component, CreateMode, uint = 0);
  7201. Component CloneComponent(Component, uint = 0);
  7202. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7203. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7204. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7205. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7206. Variant GetAttribute(const String&) const;
  7207. ValueAnimation GetAttributeAnimation(const String&) const;
  7208. float GetAttributeAnimationSpeed(const String&) const;
  7209. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7210. Variant GetAttributeDefault(const String&) const;
  7211. Node GetChild(const String&, bool = false) const;
  7212. Array<Node> GetChildren(bool = false) const;
  7213. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7214. Array<Node> GetChildrenWithScript(bool = false) const;
  7215. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7216. Component GetComponent(const String&) const;
  7217. Component GetComponent(uint);
  7218. Array<Component> GetComponents() const;
  7219. Array<Component> GetComponents(const String&, bool = false) const;
  7220. Node GetNode(uint);
  7221. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7222. ScriptObject GetScriptObject() const;
  7223. ScriptObject GetScriptObject(const String&) const;
  7224. bool HasComponent(const String&) const;
  7225. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7226. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7227. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7228. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7229. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7230. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7231. bool Load(File, bool = false);
  7232. bool Load(VectorBuffer&, bool = false);
  7233. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  7234. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  7235. bool LoadXML(File);
  7236. bool LoadXML(VectorBuffer&);
  7237. bool LoadXML(const XMLElement&, bool = false);
  7238. Vector3 LocalToWorld(const Vector3&) const;
  7239. Vector3 LocalToWorld(const Vector4&) const;
  7240. Vector2 LocalToWorld2D(const Vector2&) const;
  7241. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7242. void MarkNetworkUpdate() const;
  7243. void Pitch(float, TransformSpace = TS_LOCAL);
  7244. void RegisterVar(const String&);
  7245. void Remove();
  7246. void RemoveAllChildren();
  7247. void RemoveAllComponents();
  7248. void RemoveChild(Node);
  7249. void RemoveChildren(bool, bool, bool);
  7250. void RemoveComponent(Component);
  7251. void RemoveComponent(const String&);
  7252. void RemoveComponents(bool, bool);
  7253. void RemoveInstanceDefault();
  7254. void ResetToDefault();
  7255. void Roll(float, TransformSpace = TS_LOCAL);
  7256. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7257. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7258. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7259. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7260. bool Save(File) const;
  7261. bool Save(VectorBuffer&) const;
  7262. bool SaveXML(File);
  7263. bool SaveXML(VectorBuffer&);
  7264. bool SaveXML(XMLElement&) const;
  7265. void Scale(const Vector3&);
  7266. void Scale(float);
  7267. void Scale2D(const Vector2&);
  7268. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7269. bool SetAttribute(const String&, const Variant&);
  7270. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7271. void SetAttributeAnimationSpeed(const String&, float);
  7272. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7273. void SetPosition2D(float, float);
  7274. void SetScale(float);
  7275. void SetScale2D(float, float);
  7276. void SetTransform(const Vector3&, const Quaternion&);
  7277. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7278. void SetTransform(const Vector3&, const Quaternion&, float);
  7279. void SetTransform2D(const Vector2&, float);
  7280. void SetTransform2D(const Vector2&, float, const Vector2&);
  7281. void SetTransform2D(const Vector2&, float, float);
  7282. void SetWorldTransform(const Vector3&, const Quaternion&);
  7283. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7284. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7285. void SetWorldTransform2D(const Vector2&, float);
  7286. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7287. void SetWorldTransform2D(const Vector2&, float, float);
  7288. void StopAsyncLoading();
  7289. const String& GetVarName(StringHash) const;
  7290. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7291. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7292. void UnregisterAllVars(const String&);
  7293. void UnregisterVar(const String&);
  7294. void Update(float);
  7295. Vector3 WorldToLocal(const Vector3&) const;
  7296. Vector3 WorldToLocal(const Vector4&) const;
  7297. Vector2 WorldToLocal2D(const Vector2&) const;
  7298. void Yaw(float, TransformSpace = TS_LOCAL);
  7299. // Properties:
  7300. bool animationEnabled;
  7301. /* readonly */
  7302. LoadMode asyncLoadMode;
  7303. /* readonly */
  7304. bool asyncLoading;
  7305. int asyncLoadingMs;
  7306. /* readonly */
  7307. float asyncProgress;
  7308. /* readonly */
  7309. Array<Variant> attributeDefaults;
  7310. /* readonly */
  7311. Array<AttributeInfo> attributeInfos;
  7312. Array<Variant> attributes;
  7313. /* readonly */
  7314. StringHash baseType;
  7315. /* readonly */
  7316. String category;
  7317. /* readonly */
  7318. uint checksum;
  7319. /* readonly */
  7320. Array<Node> children;
  7321. /* readonly */
  7322. Array<Component> components;
  7323. /* readonly */
  7324. DebugRenderer debugRenderer;
  7325. Vector3 direction;
  7326. float elapsedTime;
  7327. /* readonly */
  7328. String fileName;
  7329. /* readonly */
  7330. uint id;
  7331. String name;
  7332. /* readonly */
  7333. uint numAllChildren;
  7334. /* readonly */
  7335. uint numAttributes;
  7336. /* readonly */
  7337. uint numChildren;
  7338. /* readonly */
  7339. uint numComponents;
  7340. ObjectAnimation objectAnimation;
  7341. /* readonly */
  7342. Octree octree;
  7343. Node parent;
  7344. /* readonly */
  7345. PhysicsWorld physicsWorld;
  7346. /* readonly */
  7347. PhysicsWorld2D physicsWorld2D;
  7348. Vector3 position;
  7349. Vector2 position2D;
  7350. /* readonly */
  7351. int refs;
  7352. /* readonly */
  7353. Array<PackageFile> requiredPackageFiles;
  7354. /* readonly */
  7355. Vector3 right;
  7356. Quaternion rotation;
  7357. float rotation2D;
  7358. Vector3 scale;
  7359. Vector2 scale2D;
  7360. /* readonly */
  7361. ScriptObject scriptObject;
  7362. float smoothingConstant;
  7363. float snapThreshold;
  7364. bool temporary;
  7365. float timeScale;
  7366. /* readonly */
  7367. Matrix3x4 transform;
  7368. /* readonly */
  7369. StringHash type;
  7370. /* readonly */
  7371. String typeName;
  7372. /* readonly */
  7373. Vector3 up;
  7374. bool updateEnabled;
  7375. /* readonly */
  7376. VariantMap vars;
  7377. /* readonly */
  7378. int weakRefs;
  7379. Vector3 worldDirection;
  7380. Vector3 worldPosition;
  7381. Vector2 worldPosition2D;
  7382. /* readonly */
  7383. Vector3 worldRight;
  7384. Quaternion worldRotation;
  7385. float worldRotation2D;
  7386. Vector3 worldScale;
  7387. Vector2 worldScale2D;
  7388. /* readonly */
  7389. Matrix3x4 worldTransform;
  7390. /* readonly */
  7391. Vector3 worldUp;
  7392. };
  7393. class Script
  7394. {
  7395. // Methods:
  7396. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  7397. bool Execute(const String&);
  7398. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7399. // Properties:
  7400. /* readonly */
  7401. StringHash baseType;
  7402. /* readonly */
  7403. String category;
  7404. Scene defaultScene;
  7405. ScriptFile defaultScriptFile;
  7406. bool executeConsoleCommands;
  7407. /* readonly */
  7408. int refs;
  7409. /* readonly */
  7410. StringHash type;
  7411. /* readonly */
  7412. String typeName;
  7413. /* readonly */
  7414. int weakRefs;
  7415. };
  7416. class ScriptFile
  7417. {
  7418. // Methods:
  7419. void ClearDelayedExecute(const String& = String ( ));
  7420. void DelayedExecute(float, bool, const String&);
  7421. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  7422. bool Execute(const String&, const Array<Variant>);
  7423. bool Load(File);
  7424. bool Load(VectorBuffer&);
  7425. bool Save(File) const;
  7426. bool Save(VectorBuffer&) const;
  7427. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7428. // Properties:
  7429. /* readonly */
  7430. StringHash baseType;
  7431. /* readonly */
  7432. String category;
  7433. /* readonly */
  7434. bool compiled;
  7435. /* readonly */
  7436. uint memoryUse;
  7437. String name;
  7438. /* readonly */
  7439. int refs;
  7440. /* readonly */
  7441. StringHash type;
  7442. /* readonly */
  7443. String typeName;
  7444. /* readonly */
  7445. uint useTimer;
  7446. /* readonly */
  7447. int weakRefs;
  7448. };
  7449. class ScriptInstance
  7450. {
  7451. // Methods:
  7452. void ApplyAttributes();
  7453. void ClearDelayedExecute(const String& = String ( ));
  7454. bool CreateObject(ScriptFile, const String&);
  7455. void DelayedExecute(float, bool, const String&);
  7456. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  7457. void DrawDebugGeometry(DebugRenderer, bool);
  7458. bool Execute(const String&);
  7459. bool Execute(const String&, const Array<Variant>);
  7460. Variant GetAttribute(const String&) const;
  7461. ValueAnimation GetAttributeAnimation(const String&) const;
  7462. float GetAttributeAnimationSpeed(const String&) const;
  7463. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7464. Variant GetAttributeDefault(const String&) const;
  7465. bool Load(File, bool = false);
  7466. bool Load(VectorBuffer&, bool = false);
  7467. bool LoadXML(const XMLElement&, bool = false);
  7468. void MarkNetworkUpdate() const;
  7469. void Remove();
  7470. void RemoveInstanceDefault();
  7471. void ResetToDefault();
  7472. bool Save(File) const;
  7473. bool Save(VectorBuffer&) const;
  7474. bool SaveXML(XMLElement&) const;
  7475. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7476. bool SetAttribute(const String&, const Variant&);
  7477. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7478. void SetAttributeAnimationSpeed(const String&, float);
  7479. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7480. // Properties:
  7481. bool animationEnabled;
  7482. /* readonly */
  7483. Array<Variant> attributeDefaults;
  7484. /* readonly */
  7485. Array<AttributeInfo> attributeInfos;
  7486. Array<Variant> attributes;
  7487. /* readonly */
  7488. StringHash baseType;
  7489. /* readonly */
  7490. String category;
  7491. String className;
  7492. bool enabled;
  7493. /* readonly */
  7494. bool enabledEffective;
  7495. /* readonly */
  7496. uint id;
  7497. /* readonly */
  7498. Node node;
  7499. /* readonly */
  7500. uint numAttributes;
  7501. ObjectAnimation objectAnimation;
  7502. /* readonly */
  7503. int refs;
  7504. ScriptFile scriptFile;
  7505. /* readonly */
  7506. ScriptObject scriptObject;
  7507. bool temporary;
  7508. /* readonly */
  7509. StringHash type;
  7510. /* readonly */
  7511. String typeName;
  7512. /* readonly */
  7513. int weakRefs;
  7514. };
  7515. class ScriptObject
  7516. {
  7517. };
  7518. class ScrollBar
  7519. {
  7520. // Methods:
  7521. void AddChild(UIElement);
  7522. void ApplyAttributes();
  7523. void BringToFront();
  7524. void ChangeValue(float);
  7525. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7526. void DisableLayoutUpdate();
  7527. IntVector2 ElementToScreen(const IntVector2&);
  7528. void EnableLayoutUpdate();
  7529. uint FindChild(UIElement) const;
  7530. Variant GetAttribute(const String&) const;
  7531. ValueAnimation GetAttributeAnimation(const String&) const;
  7532. float GetAttributeAnimationSpeed(const String&) const;
  7533. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7534. Variant GetAttributeDefault(const String&) const;
  7535. UIElement GetChild(const String&, bool = false) const;
  7536. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  7537. Array<UIElement> GetChildren(bool = false) const;
  7538. UIElement GetElementEventSender() const;
  7539. uint GetNumChildren(bool) const;
  7540. void InsertChild(uint, UIElement);
  7541. bool IsInside(IntVector2, bool);
  7542. bool IsInsideCombined(IntVector2, bool);
  7543. bool Load(File, bool = false);
  7544. bool Load(VectorBuffer&, bool = false);
  7545. bool LoadChildXML(XMLFile, XMLFile = null);
  7546. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7547. bool LoadXML(File);
  7548. bool LoadXML(VectorBuffer&);
  7549. bool LoadXML(XMLFile, XMLFile);
  7550. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7551. bool LoadXML(const XMLElement&, bool = false);
  7552. void MarkNetworkUpdate() const;
  7553. void Remove();
  7554. void RemoveAllChildren();
  7555. void RemoveChild(UIElement, uint = 0);
  7556. void RemoveChild(uint);
  7557. void RemoveInstanceDefault();
  7558. void ResetDeepEnabled();
  7559. void ResetToDefault();
  7560. bool Save(File) const;
  7561. bool Save(VectorBuffer&) const;
  7562. bool SaveXML(File);
  7563. bool SaveXML(VectorBuffer&);
  7564. bool SaveXML(XMLElement&) const;
  7565. IntVector2 ScreenToElement(const IntVector2&);
  7566. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7567. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7568. bool SetAttribute(const String&, const Variant&);
  7569. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7570. void SetAttributeAnimationSpeed(const String&, float);
  7571. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7572. void SetDeepEnabled(bool);
  7573. void SetEnabledRecursive(bool);
  7574. void SetFixedHeight(int);
  7575. void SetFixedSize(int, int);
  7576. void SetFixedWidth(int);
  7577. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7578. void SetMaxSize(int, int);
  7579. void SetMinSize(int, int);
  7580. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7581. void SetPosition(int, int);
  7582. void SetSize(int, int);
  7583. bool SetStyle(const String&, XMLFile = null);
  7584. bool SetStyle(const XMLElement&);
  7585. bool SetStyleAuto(XMLFile = null);
  7586. void StepBack();
  7587. void StepForward();
  7588. void UpdateLayout();
  7589. const Variant& GetVar(const StringHash&);
  7590. // Properties:
  7591. bool animationEnabled;
  7592. /* readonly */
  7593. Array<Variant> attributeDefaults;
  7594. /* readonly */
  7595. Array<AttributeInfo> attributeInfos;
  7596. Array<Variant> attributes;
  7597. /* readonly */
  7598. Button backButton;
  7599. /* readonly */
  7600. StringHash baseType;
  7601. bool bringToBack;
  7602. bool bringToFront;
  7603. /* readonly */
  7604. String category;
  7605. /* readonly */
  7606. IntVector2 childOffset;
  7607. /* readonly */
  7608. Array<UIElement> children;
  7609. IntRect clipBorder;
  7610. bool clipChildren;
  7611. /* writeonly */
  7612. Color color;
  7613. /* readonly */
  7614. bool colorGradient;
  7615. Array<Color> colors;
  7616. /* readonly */
  7617. IntRect combinedScreenRect;
  7618. XMLFile defaultStyle;
  7619. /* readonly */
  7620. float derivedOpacity;
  7621. /* readonly */
  7622. uint dragButtonCombo;
  7623. /* readonly */
  7624. int dragButtonCount;
  7625. uint dragDropMode;
  7626. bool editable;
  7627. /* readonly */
  7628. float effectiveScrollStep;
  7629. bool elementEventSender;
  7630. bool enabled;
  7631. /* readonly */
  7632. bool enabledSelf;
  7633. /* readonly */
  7634. bool fixedHeight;
  7635. /* readonly */
  7636. bool fixedSize;
  7637. /* readonly */
  7638. bool fixedWidth;
  7639. bool focus;
  7640. FocusMode focusMode;
  7641. /* readonly */
  7642. Button forwardButton;
  7643. int height;
  7644. HorizontalAlignment horizontalAlignment;
  7645. /* readonly */
  7646. bool hovering;
  7647. int indent;
  7648. int indentSpacing;
  7649. /* readonly */
  7650. int indentWidth;
  7651. bool internal;
  7652. IntRect layoutBorder;
  7653. Vector2 layoutFlexScale;
  7654. LayoutMode layoutMode;
  7655. int layoutSpacing;
  7656. int maxHeight;
  7657. IntVector2 maxSize;
  7658. int maxWidth;
  7659. int minHeight;
  7660. IntVector2 minSize;
  7661. int minWidth;
  7662. String name;
  7663. /* readonly */
  7664. uint numAllChildren;
  7665. /* readonly */
  7666. uint numAttributes;
  7667. /* readonly */
  7668. uint numChildren;
  7669. ObjectAnimation objectAnimation;
  7670. float opacity;
  7671. Orientation orientation;
  7672. UIElement parent;
  7673. IntVector2 position;
  7674. int priority;
  7675. float range;
  7676. /* readonly */
  7677. int refs;
  7678. /* readonly */
  7679. UIElement root;
  7680. /* readonly */
  7681. IntVector2 screenPosition;
  7682. float scrollStep;
  7683. bool selected;
  7684. IntVector2 size;
  7685. /* readonly */
  7686. Slider slider;
  7687. bool sortChildren;
  7688. float stepFactor;
  7689. String style;
  7690. bool temporary;
  7691. TraversalMode traversalMode;
  7692. /* readonly */
  7693. StringHash type;
  7694. /* readonly */
  7695. String typeName;
  7696. bool useDerivedOpacity;
  7697. float value;
  7698. /* readonly */
  7699. VariantMap vars;
  7700. VerticalAlignment verticalAlignment;
  7701. bool visible;
  7702. /* readonly */
  7703. int weakRefs;
  7704. int width;
  7705. };
  7706. class ScrollView
  7707. {
  7708. // Methods:
  7709. void AddChild(UIElement);
  7710. void ApplyAttributes();
  7711. void BringToFront();
  7712. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7713. void DisableLayoutUpdate();
  7714. IntVector2 ElementToScreen(const IntVector2&);
  7715. void EnableLayoutUpdate();
  7716. uint FindChild(UIElement) const;
  7717. Variant GetAttribute(const String&) const;
  7718. ValueAnimation GetAttributeAnimation(const String&) const;
  7719. float GetAttributeAnimationSpeed(const String&) const;
  7720. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7721. Variant GetAttributeDefault(const String&) const;
  7722. UIElement GetChild(const String&, bool = false) const;
  7723. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  7724. Array<UIElement> GetChildren(bool = false) const;
  7725. UIElement GetElementEventSender() const;
  7726. uint GetNumChildren(bool) const;
  7727. void InsertChild(uint, UIElement);
  7728. bool IsInside(IntVector2, bool);
  7729. bool IsInsideCombined(IntVector2, bool);
  7730. bool Load(File, bool = false);
  7731. bool Load(VectorBuffer&, bool = false);
  7732. bool LoadChildXML(XMLFile, XMLFile = null);
  7733. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7734. bool LoadXML(File);
  7735. bool LoadXML(VectorBuffer&);
  7736. bool LoadXML(XMLFile, XMLFile);
  7737. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7738. bool LoadXML(const XMLElement&, bool = false);
  7739. void MarkNetworkUpdate() const;
  7740. void Remove();
  7741. void RemoveAllChildren();
  7742. void RemoveChild(UIElement, uint = 0);
  7743. void RemoveChild(uint);
  7744. void RemoveInstanceDefault();
  7745. void ResetDeepEnabled();
  7746. void ResetToDefault();
  7747. bool Save(File) const;
  7748. bool Save(VectorBuffer&) const;
  7749. bool SaveXML(File);
  7750. bool SaveXML(VectorBuffer&);
  7751. bool SaveXML(XMLElement&) const;
  7752. IntVector2 ScreenToElement(const IntVector2&);
  7753. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7754. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7755. bool SetAttribute(const String&, const Variant&);
  7756. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7757. void SetAttributeAnimationSpeed(const String&, float);
  7758. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7759. void SetDeepEnabled(bool);
  7760. void SetEnabledRecursive(bool);
  7761. void SetFixedHeight(int);
  7762. void SetFixedSize(int, int);
  7763. void SetFixedWidth(int);
  7764. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7765. void SetMaxSize(int, int);
  7766. void SetMinSize(int, int);
  7767. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7768. void SetPosition(int, int);
  7769. void SetScrollBarsVisible(bool, bool);
  7770. void SetSize(int, int);
  7771. bool SetStyle(const String&, XMLFile = null);
  7772. bool SetStyle(const XMLElement&);
  7773. bool SetStyleAuto(XMLFile = null);
  7774. void SetViewPosition(int, int);
  7775. void UpdateLayout();
  7776. const Variant& GetVar(const StringHash&);
  7777. // Properties:
  7778. bool animationEnabled;
  7779. /* readonly */
  7780. Array<Variant> attributeDefaults;
  7781. /* readonly */
  7782. Array<AttributeInfo> attributeInfos;
  7783. Array<Variant> attributes;
  7784. bool autoDisableChildren;
  7785. float autoDisableThreshold;
  7786. /* readonly */
  7787. StringHash baseType;
  7788. bool bringToBack;
  7789. bool bringToFront;
  7790. /* readonly */
  7791. String category;
  7792. /* readonly */
  7793. IntVector2 childOffset;
  7794. /* readonly */
  7795. Array<UIElement> children;
  7796. IntRect clipBorder;
  7797. bool clipChildren;
  7798. /* writeonly */
  7799. Color color;
  7800. /* readonly */
  7801. bool colorGradient;
  7802. Array<Color> colors;
  7803. /* readonly */
  7804. IntRect combinedScreenRect;
  7805. UIElement contentElement;
  7806. XMLFile defaultStyle;
  7807. /* readonly */
  7808. float derivedOpacity;
  7809. /* readonly */
  7810. uint dragButtonCombo;
  7811. /* readonly */
  7812. int dragButtonCount;
  7813. uint dragDropMode;
  7814. bool editable;
  7815. bool elementEventSender;
  7816. bool enabled;
  7817. /* readonly */
  7818. bool enabledSelf;
  7819. /* readonly */
  7820. bool fixedHeight;
  7821. /* readonly */
  7822. bool fixedSize;
  7823. /* readonly */
  7824. bool fixedWidth;
  7825. bool focus;
  7826. FocusMode focusMode;
  7827. int height;
  7828. HorizontalAlignment horizontalAlignment;
  7829. /* readonly */
  7830. ScrollBar horizontalScrollBar;
  7831. /* readonly */
  7832. bool hovering;
  7833. int indent;
  7834. int indentSpacing;
  7835. /* readonly */
  7836. int indentWidth;
  7837. bool internal;
  7838. IntRect layoutBorder;
  7839. Vector2 layoutFlexScale;
  7840. LayoutMode layoutMode;
  7841. int layoutSpacing;
  7842. int maxHeight;
  7843. IntVector2 maxSize;
  7844. int maxWidth;
  7845. int minHeight;
  7846. IntVector2 minSize;
  7847. int minWidth;
  7848. String name;
  7849. /* readonly */
  7850. uint numAllChildren;
  7851. /* readonly */
  7852. uint numAttributes;
  7853. /* readonly */
  7854. uint numChildren;
  7855. ObjectAnimation objectAnimation;
  7856. float opacity;
  7857. float pageStep;
  7858. UIElement parent;
  7859. IntVector2 position;
  7860. int priority;
  7861. /* readonly */
  7862. int refs;
  7863. /* readonly */
  7864. UIElement root;
  7865. /* readonly */
  7866. IntVector2 screenPosition;
  7867. bool scrollBarsAutoVisible;
  7868. float scrollDeceleration;
  7869. /* readonly */
  7870. BorderImage scrollPanel;
  7871. float scrollSnapEpsilon;
  7872. float scrollStep;
  7873. bool selected;
  7874. IntVector2 size;
  7875. bool sortChildren;
  7876. String style;
  7877. bool temporary;
  7878. TraversalMode traversalMode;
  7879. /* readonly */
  7880. StringHash type;
  7881. /* readonly */
  7882. String typeName;
  7883. bool useDerivedOpacity;
  7884. /* readonly */
  7885. VariantMap vars;
  7886. VerticalAlignment verticalAlignment;
  7887. /* readonly */
  7888. ScrollBar verticalScrollBar;
  7889. IntVector2 viewPosition;
  7890. bool visible;
  7891. /* readonly */
  7892. int weakRefs;
  7893. int width;
  7894. };
  7895. class Serializable
  7896. {
  7897. // Methods:
  7898. void ApplyAttributes();
  7899. Variant GetAttribute(const String&) const;
  7900. Variant GetAttributeDefault(const String&) const;
  7901. bool Load(File, bool = false);
  7902. bool Load(VectorBuffer&, bool = false);
  7903. bool LoadXML(const XMLElement&, bool = false);
  7904. void MarkNetworkUpdate() const;
  7905. void RemoveInstanceDefault();
  7906. void ResetToDefault();
  7907. bool Save(File) const;
  7908. bool Save(VectorBuffer&) const;
  7909. bool SaveXML(XMLElement&) const;
  7910. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7911. bool SetAttribute(const String&, const Variant&);
  7912. // Properties:
  7913. /* readonly */
  7914. Array<Variant> attributeDefaults;
  7915. /* readonly */
  7916. Array<AttributeInfo> attributeInfos;
  7917. Array<Variant> attributes;
  7918. /* readonly */
  7919. StringHash baseType;
  7920. /* readonly */
  7921. String category;
  7922. /* readonly */
  7923. uint numAttributes;
  7924. /* readonly */
  7925. int refs;
  7926. bool temporary;
  7927. /* readonly */
  7928. StringHash type;
  7929. /* readonly */
  7930. String typeName;
  7931. /* readonly */
  7932. int weakRefs;
  7933. };
  7934. class Serializer
  7935. {
  7936. // Methods:
  7937. uint Write(Array<uint8>);
  7938. bool WriteBool(bool);
  7939. bool WriteBoundingBox(const BoundingBox&);
  7940. bool WriteByte(int8);
  7941. bool WriteColor(const Color&);
  7942. bool WriteFileID(const String&);
  7943. bool WriteFloat(float);
  7944. bool WriteInt(int);
  7945. bool WriteIntRect(const IntRect&);
  7946. bool WriteIntVector2(const IntVector2&);
  7947. bool WriteLine(const String&);
  7948. bool WriteMatrix3(const Matrix3&);
  7949. bool WriteMatrix3x4(const Matrix3x4&);
  7950. bool WriteMatrix4(const Matrix4&);
  7951. bool WriteNetID(uint);
  7952. bool WritePackedQuaternion(const Quaternion&);
  7953. bool WritePackedVector3(const Vector3&, float);
  7954. bool WriteQuaternion(const Quaternion&);
  7955. bool WriteShort(int16);
  7956. bool WriteString(const String&);
  7957. bool WriteStringHash(const StringHash&);
  7958. bool WriteUByte(uint8);
  7959. bool WriteUInt(uint);
  7960. bool WriteUShort(uint16);
  7961. bool WriteVLE(uint);
  7962. bool WriteVariant(const Variant&);
  7963. bool WriteVariantMap(const VariantMap&);
  7964. bool WriteVector2(const Vector2&);
  7965. bool WriteVector3(const Vector3&);
  7966. bool WriteVector4(const Vector4&);
  7967. };
  7968. class Skeleton
  7969. {
  7970. // Methods:
  7971. Bone GetBone(const String&) const;
  7972. void Reset();
  7973. // Properties:
  7974. /* readonly */
  7975. Array<Bone> bones;
  7976. /* readonly */
  7977. uint numBones;
  7978. /* readonly */
  7979. Bone rootBone;
  7980. };
  7981. class Skybox
  7982. {
  7983. // Methods:
  7984. void ApplyAttributes();
  7985. void ApplyMaterialList(const String& = String ( ));
  7986. void DrawDebugGeometry(DebugRenderer, bool);
  7987. Variant GetAttribute(const String&) const;
  7988. ValueAnimation GetAttributeAnimation(const String&) const;
  7989. float GetAttributeAnimationSpeed(const String&) const;
  7990. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7991. Variant GetAttributeDefault(const String&) const;
  7992. bool IsInView(Camera) const;
  7993. bool Load(File, bool = false);
  7994. bool Load(VectorBuffer&, bool = false);
  7995. bool LoadXML(const XMLElement&, bool = false);
  7996. void MarkNetworkUpdate() const;
  7997. void Remove();
  7998. void RemoveInstanceDefault();
  7999. void ResetToDefault();
  8000. bool Save(File) const;
  8001. bool Save(VectorBuffer&) const;
  8002. bool SaveXML(XMLElement&) const;
  8003. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8004. bool SetAttribute(const String&, const Variant&);
  8005. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8006. void SetAttributeAnimationSpeed(const String&, float);
  8007. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8008. // Properties:
  8009. bool animationEnabled;
  8010. /* readonly */
  8011. Array<Variant> attributeDefaults;
  8012. /* readonly */
  8013. Array<AttributeInfo> attributeInfos;
  8014. Array<Variant> attributes;
  8015. /* readonly */
  8016. StringHash baseType;
  8017. /* readonly */
  8018. BoundingBox boundingBox;
  8019. bool castShadows;
  8020. /* readonly */
  8021. String category;
  8022. float drawDistance;
  8023. bool enabled;
  8024. /* readonly */
  8025. bool enabledEffective;
  8026. /* readonly */
  8027. uint id;
  8028. /* readonly */
  8029. bool inView;
  8030. uint lightMask;
  8031. float lodBias;
  8032. /* writeonly */
  8033. Material material;
  8034. Array<Material> materials;
  8035. uint maxLights;
  8036. Model model;
  8037. /* readonly */
  8038. Node node;
  8039. /* readonly */
  8040. uint numAttributes;
  8041. /* readonly */
  8042. uint numGeometries;
  8043. ObjectAnimation objectAnimation;
  8044. bool occludee;
  8045. bool occluder;
  8046. /* readonly */
  8047. int refs;
  8048. float shadowDistance;
  8049. uint shadowMask;
  8050. bool temporary;
  8051. /* readonly */
  8052. StringHash type;
  8053. /* readonly */
  8054. String typeName;
  8055. uint viewMask;
  8056. /* readonly */
  8057. int weakRefs;
  8058. /* readonly */
  8059. BoundingBox worldBoundingBox;
  8060. /* readonly */
  8061. Zone zone;
  8062. uint zoneMask;
  8063. };
  8064. class Slider
  8065. {
  8066. // Methods:
  8067. void AddChild(UIElement);
  8068. void ApplyAttributes();
  8069. void BringToFront();
  8070. void ChangeValue(float);
  8071. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8072. void DisableLayoutUpdate();
  8073. IntVector2 ElementToScreen(const IntVector2&);
  8074. void EnableLayoutUpdate();
  8075. uint FindChild(UIElement) const;
  8076. Variant GetAttribute(const String&) const;
  8077. ValueAnimation GetAttributeAnimation(const String&) const;
  8078. float GetAttributeAnimationSpeed(const String&) const;
  8079. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8080. Variant GetAttributeDefault(const String&) const;
  8081. UIElement GetChild(const String&, bool = false) const;
  8082. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8083. Array<UIElement> GetChildren(bool = false) const;
  8084. UIElement GetElementEventSender() const;
  8085. uint GetNumChildren(bool) const;
  8086. void InsertChild(uint, UIElement);
  8087. bool IsInside(IntVector2, bool);
  8088. bool IsInsideCombined(IntVector2, bool);
  8089. bool Load(File, bool = false);
  8090. bool Load(VectorBuffer&, bool = false);
  8091. bool LoadChildXML(XMLFile, XMLFile = null);
  8092. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8093. bool LoadXML(File);
  8094. bool LoadXML(VectorBuffer&);
  8095. bool LoadXML(XMLFile, XMLFile);
  8096. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8097. bool LoadXML(const XMLElement&, bool = false);
  8098. void MarkNetworkUpdate() const;
  8099. void Remove();
  8100. void RemoveAllChildren();
  8101. void RemoveChild(UIElement, uint = 0);
  8102. void RemoveChild(uint);
  8103. void RemoveInstanceDefault();
  8104. void ResetDeepEnabled();
  8105. void ResetToDefault();
  8106. bool Save(File) const;
  8107. bool Save(VectorBuffer&) const;
  8108. bool SaveXML(File);
  8109. bool SaveXML(VectorBuffer&);
  8110. bool SaveXML(XMLElement&) const;
  8111. IntVector2 ScreenToElement(const IntVector2&);
  8112. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8113. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8114. bool SetAttribute(const String&, const Variant&);
  8115. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8116. void SetAttributeAnimationSpeed(const String&, float);
  8117. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8118. void SetDeepEnabled(bool);
  8119. void SetEnabledRecursive(bool);
  8120. void SetFixedHeight(int);
  8121. void SetFixedSize(int, int);
  8122. void SetFixedWidth(int);
  8123. void SetFullImageRect();
  8124. void SetHoverOffset(int, int);
  8125. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8126. void SetMaxSize(int, int);
  8127. void SetMinSize(int, int);
  8128. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8129. void SetPosition(int, int);
  8130. void SetSize(int, int);
  8131. bool SetStyle(const String&, XMLFile = null);
  8132. bool SetStyle(const XMLElement&);
  8133. bool SetStyleAuto(XMLFile = null);
  8134. void UpdateLayout();
  8135. const Variant& GetVar(const StringHash&);
  8136. // Properties:
  8137. bool animationEnabled;
  8138. /* readonly */
  8139. Array<Variant> attributeDefaults;
  8140. /* readonly */
  8141. Array<AttributeInfo> attributeInfos;
  8142. Array<Variant> attributes;
  8143. /* readonly */
  8144. StringHash baseType;
  8145. BlendMode blendMode;
  8146. IntRect border;
  8147. bool bringToBack;
  8148. bool bringToFront;
  8149. /* readonly */
  8150. String category;
  8151. /* readonly */
  8152. IntVector2 childOffset;
  8153. /* readonly */
  8154. Array<UIElement> children;
  8155. IntRect clipBorder;
  8156. bool clipChildren;
  8157. /* writeonly */
  8158. Color color;
  8159. /* readonly */
  8160. bool colorGradient;
  8161. Array<Color> colors;
  8162. /* readonly */
  8163. IntRect combinedScreenRect;
  8164. XMLFile defaultStyle;
  8165. /* readonly */
  8166. float derivedOpacity;
  8167. /* readonly */
  8168. uint dragButtonCombo;
  8169. /* readonly */
  8170. int dragButtonCount;
  8171. uint dragDropMode;
  8172. bool editable;
  8173. bool elementEventSender;
  8174. bool enabled;
  8175. /* readonly */
  8176. bool enabledSelf;
  8177. /* readonly */
  8178. bool fixedHeight;
  8179. /* readonly */
  8180. bool fixedSize;
  8181. /* readonly */
  8182. bool fixedWidth;
  8183. bool focus;
  8184. FocusMode focusMode;
  8185. int height;
  8186. HorizontalAlignment horizontalAlignment;
  8187. IntVector2 hoverOffset;
  8188. /* readonly */
  8189. bool hovering;
  8190. IntRect imageBorder;
  8191. IntRect imageRect;
  8192. int indent;
  8193. int indentSpacing;
  8194. /* readonly */
  8195. int indentWidth;
  8196. bool internal;
  8197. /* readonly */
  8198. BorderImage knob;
  8199. IntRect layoutBorder;
  8200. Vector2 layoutFlexScale;
  8201. LayoutMode layoutMode;
  8202. int layoutSpacing;
  8203. int maxHeight;
  8204. IntVector2 maxSize;
  8205. int maxWidth;
  8206. int minHeight;
  8207. IntVector2 minSize;
  8208. int minWidth;
  8209. String name;
  8210. /* readonly */
  8211. uint numAllChildren;
  8212. /* readonly */
  8213. uint numAttributes;
  8214. /* readonly */
  8215. uint numChildren;
  8216. ObjectAnimation objectAnimation;
  8217. float opacity;
  8218. Orientation orientation;
  8219. UIElement parent;
  8220. IntVector2 position;
  8221. int priority;
  8222. float range;
  8223. /* readonly */
  8224. int refs;
  8225. float repeatRate;
  8226. /* readonly */
  8227. UIElement root;
  8228. /* readonly */
  8229. IntVector2 screenPosition;
  8230. bool selected;
  8231. IntVector2 size;
  8232. bool sortChildren;
  8233. String style;
  8234. bool temporary;
  8235. Texture texture;
  8236. bool tiled;
  8237. TraversalMode traversalMode;
  8238. /* readonly */
  8239. StringHash type;
  8240. /* readonly */
  8241. String typeName;
  8242. bool useDerivedOpacity;
  8243. float value;
  8244. /* readonly */
  8245. VariantMap vars;
  8246. VerticalAlignment verticalAlignment;
  8247. bool visible;
  8248. /* readonly */
  8249. int weakRefs;
  8250. int width;
  8251. };
  8252. class SmoothedTransform
  8253. {
  8254. // Methods:
  8255. void ApplyAttributes();
  8256. void DrawDebugGeometry(DebugRenderer, bool);
  8257. Variant GetAttribute(const String&) const;
  8258. ValueAnimation GetAttributeAnimation(const String&) const;
  8259. float GetAttributeAnimationSpeed(const String&) const;
  8260. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8261. Variant GetAttributeDefault(const String&) const;
  8262. bool Load(File, bool = false);
  8263. bool Load(VectorBuffer&, bool = false);
  8264. bool LoadXML(const XMLElement&, bool = false);
  8265. void MarkNetworkUpdate() const;
  8266. void Remove();
  8267. void RemoveInstanceDefault();
  8268. void ResetToDefault();
  8269. bool Save(File) const;
  8270. bool Save(VectorBuffer&) const;
  8271. bool SaveXML(XMLElement&) const;
  8272. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8273. bool SetAttribute(const String&, const Variant&);
  8274. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8275. void SetAttributeAnimationSpeed(const String&, float);
  8276. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8277. void Update(float, float);
  8278. // Properties:
  8279. bool animationEnabled;
  8280. /* readonly */
  8281. Array<Variant> attributeDefaults;
  8282. /* readonly */
  8283. Array<AttributeInfo> attributeInfos;
  8284. Array<Variant> attributes;
  8285. /* readonly */
  8286. StringHash baseType;
  8287. /* readonly */
  8288. String category;
  8289. bool enabled;
  8290. /* readonly */
  8291. bool enabledEffective;
  8292. /* readonly */
  8293. uint id;
  8294. /* readonly */
  8295. bool inProgress;
  8296. /* readonly */
  8297. Node node;
  8298. /* readonly */
  8299. uint numAttributes;
  8300. ObjectAnimation objectAnimation;
  8301. /* readonly */
  8302. int refs;
  8303. Vector3 targetPosition;
  8304. Quaternion targetRotation;
  8305. Vector3 targetWorldPosition;
  8306. Quaternion targetWorldRotation;
  8307. bool temporary;
  8308. /* readonly */
  8309. StringHash type;
  8310. /* readonly */
  8311. String typeName;
  8312. /* readonly */
  8313. int weakRefs;
  8314. };
  8315. class Sound
  8316. {
  8317. // Methods:
  8318. bool Load(File);
  8319. bool Load(VectorBuffer&);
  8320. bool Save(File) const;
  8321. bool Save(VectorBuffer&) const;
  8322. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8323. // Properties:
  8324. /* readonly */
  8325. StringHash baseType;
  8326. /* readonly */
  8327. String category;
  8328. /* readonly */
  8329. bool compressed;
  8330. /* readonly */
  8331. float frequency;
  8332. /* readonly */
  8333. float length;
  8334. bool looped;
  8335. /* readonly */
  8336. uint memoryUse;
  8337. String name;
  8338. /* readonly */
  8339. int refs;
  8340. /* readonly */
  8341. uint sampleSize;
  8342. /* readonly */
  8343. bool sixteenBit;
  8344. /* readonly */
  8345. bool stereo;
  8346. /* readonly */
  8347. StringHash type;
  8348. /* readonly */
  8349. String typeName;
  8350. /* readonly */
  8351. uint useTimer;
  8352. /* readonly */
  8353. int weakRefs;
  8354. };
  8355. class SoundListener
  8356. {
  8357. // Methods:
  8358. void ApplyAttributes();
  8359. void DrawDebugGeometry(DebugRenderer, bool);
  8360. Variant GetAttribute(const String&) const;
  8361. ValueAnimation GetAttributeAnimation(const String&) const;
  8362. float GetAttributeAnimationSpeed(const String&) const;
  8363. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8364. Variant GetAttributeDefault(const String&) const;
  8365. bool Load(File, bool = false);
  8366. bool Load(VectorBuffer&, bool = false);
  8367. bool LoadXML(const XMLElement&, bool = false);
  8368. void MarkNetworkUpdate() const;
  8369. void Remove();
  8370. void RemoveInstanceDefault();
  8371. void ResetToDefault();
  8372. bool Save(File) const;
  8373. bool Save(VectorBuffer&) const;
  8374. bool SaveXML(XMLElement&) const;
  8375. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8376. bool SetAttribute(const String&, const Variant&);
  8377. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8378. void SetAttributeAnimationSpeed(const String&, float);
  8379. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8380. // Properties:
  8381. bool animationEnabled;
  8382. /* readonly */
  8383. Array<Variant> attributeDefaults;
  8384. /* readonly */
  8385. Array<AttributeInfo> attributeInfos;
  8386. Array<Variant> attributes;
  8387. /* readonly */
  8388. StringHash baseType;
  8389. /* readonly */
  8390. String category;
  8391. bool enabled;
  8392. /* readonly */
  8393. bool enabledEffective;
  8394. /* readonly */
  8395. uint id;
  8396. /* readonly */
  8397. Node node;
  8398. /* readonly */
  8399. uint numAttributes;
  8400. ObjectAnimation objectAnimation;
  8401. /* readonly */
  8402. int refs;
  8403. bool temporary;
  8404. /* readonly */
  8405. StringHash type;
  8406. /* readonly */
  8407. String typeName;
  8408. /* readonly */
  8409. int weakRefs;
  8410. };
  8411. class SoundSource
  8412. {
  8413. // Methods:
  8414. void ApplyAttributes();
  8415. void DrawDebugGeometry(DebugRenderer, bool);
  8416. Variant GetAttribute(const String&) const;
  8417. ValueAnimation GetAttributeAnimation(const String&) const;
  8418. float GetAttributeAnimationSpeed(const String&) const;
  8419. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8420. Variant GetAttributeDefault(const String&) const;
  8421. bool Load(File, bool = false);
  8422. bool Load(VectorBuffer&, bool = false);
  8423. bool LoadXML(const XMLElement&, bool = false);
  8424. void MarkNetworkUpdate() const;
  8425. void Play(Sound);
  8426. void Play(Sound, float);
  8427. void Play(Sound, float, float);
  8428. void Play(Sound, float, float, float);
  8429. void Remove();
  8430. void RemoveInstanceDefault();
  8431. void ResetToDefault();
  8432. bool Save(File) const;
  8433. bool Save(VectorBuffer&) const;
  8434. bool SaveXML(XMLElement&) const;
  8435. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8436. bool SetAttribute(const String&, const Variant&);
  8437. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8438. void SetAttributeAnimationSpeed(const String&, float);
  8439. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8440. void Stop();
  8441. // Properties:
  8442. bool animationEnabled;
  8443. /* readonly */
  8444. float attenuation;
  8445. /* readonly */
  8446. Array<Variant> attributeDefaults;
  8447. /* readonly */
  8448. Array<AttributeInfo> attributeInfos;
  8449. Array<Variant> attributes;
  8450. bool autoRemove;
  8451. /* readonly */
  8452. StringHash baseType;
  8453. /* readonly */
  8454. String category;
  8455. bool enabled;
  8456. /* readonly */
  8457. bool enabledEffective;
  8458. float frequency;
  8459. float gain;
  8460. /* readonly */
  8461. uint id;
  8462. /* readonly */
  8463. Node node;
  8464. /* readonly */
  8465. uint numAttributes;
  8466. ObjectAnimation objectAnimation;
  8467. float panning;
  8468. /* readonly */
  8469. bool playing;
  8470. /* readonly */
  8471. int refs;
  8472. /* readonly */
  8473. Sound sound;
  8474. String soundType;
  8475. bool temporary;
  8476. /* readonly */
  8477. float timePosition;
  8478. /* readonly */
  8479. StringHash type;
  8480. /* readonly */
  8481. String typeName;
  8482. /* readonly */
  8483. int weakRefs;
  8484. };
  8485. class SoundSource3D
  8486. {
  8487. // Methods:
  8488. void ApplyAttributes();
  8489. void DrawDebugGeometry(DebugRenderer, bool);
  8490. Variant GetAttribute(const String&) const;
  8491. ValueAnimation GetAttributeAnimation(const String&) const;
  8492. float GetAttributeAnimationSpeed(const String&) const;
  8493. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8494. Variant GetAttributeDefault(const String&) const;
  8495. bool Load(File, bool = false);
  8496. bool Load(VectorBuffer&, bool = false);
  8497. bool LoadXML(const XMLElement&, bool = false);
  8498. void MarkNetworkUpdate() const;
  8499. void Play(Sound);
  8500. void Play(Sound, float);
  8501. void Play(Sound, float, float);
  8502. void Play(Sound, float, float, float);
  8503. void Remove();
  8504. void RemoveInstanceDefault();
  8505. void ResetToDefault();
  8506. bool Save(File) const;
  8507. bool Save(VectorBuffer&) const;
  8508. bool SaveXML(XMLElement&) const;
  8509. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8510. void SetAngleAttenuation(float, float);
  8511. bool SetAttribute(const String&, const Variant&);
  8512. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8513. void SetAttributeAnimationSpeed(const String&, float);
  8514. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8515. void SetDistanceAttenuation(float, float, float);
  8516. void Stop();
  8517. // Properties:
  8518. bool animationEnabled;
  8519. /* readonly */
  8520. float attenuation;
  8521. /* readonly */
  8522. Array<Variant> attributeDefaults;
  8523. /* readonly */
  8524. Array<AttributeInfo> attributeInfos;
  8525. Array<Variant> attributes;
  8526. bool autoRemove;
  8527. /* readonly */
  8528. StringHash baseType;
  8529. /* readonly */
  8530. String category;
  8531. bool enabled;
  8532. /* readonly */
  8533. bool enabledEffective;
  8534. float farDistance;
  8535. float frequency;
  8536. float gain;
  8537. /* readonly */
  8538. uint id;
  8539. float innerAngle;
  8540. float nearDistance;
  8541. /* readonly */
  8542. Node node;
  8543. /* readonly */
  8544. uint numAttributes;
  8545. ObjectAnimation objectAnimation;
  8546. float outerAngle;
  8547. float panning;
  8548. /* readonly */
  8549. bool playing;
  8550. /* readonly */
  8551. int refs;
  8552. float rolloffFactor;
  8553. /* readonly */
  8554. Sound sound;
  8555. String soundType;
  8556. bool temporary;
  8557. /* readonly */
  8558. float timePosition;
  8559. /* readonly */
  8560. StringHash type;
  8561. /* readonly */
  8562. String typeName;
  8563. /* readonly */
  8564. int weakRefs;
  8565. };
  8566. class Sphere
  8567. {
  8568. // Methods:
  8569. void Clear();
  8570. void Define(const BoundingBox&);
  8571. void Define(const Frustum&);
  8572. void Define(const Polyhedron&);
  8573. void Define(const Sphere&);
  8574. void Define(const Vector3&, float);
  8575. float Distance(const Vector3&) const;
  8576. Intersection IsInside(const BoundingBox&) const;
  8577. Intersection IsInside(const Sphere&) const;
  8578. Intersection IsInside(const Vector3&) const;
  8579. void Merge(const BoundingBox&);
  8580. void Merge(const Frustum&);
  8581. void Merge(const Sphere&);
  8582. void Merge(const Vector3&);
  8583. // Properties:
  8584. Vector3 center;
  8585. bool defined;
  8586. float radius;
  8587. };
  8588. class Spline
  8589. {
  8590. // Methods:
  8591. void AddKnot(const Variant&);
  8592. void AddKnot(const Variant&, uint);
  8593. void Clear();
  8594. Variant GetPoint(float);
  8595. void RemoveKnot();
  8596. void RemoveKnot(uint);
  8597. // Properties:
  8598. InterpolationMode interpolationMode;
  8599. Array<Variant> knot;
  8600. Array<Variant> knots;
  8601. };
  8602. class SplinePath
  8603. {
  8604. // Methods:
  8605. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  8606. void ApplyAttributes();
  8607. void ClearControlPoints();
  8608. void DrawDebugGeometry(DebugRenderer, bool);
  8609. Variant GetAttribute(const String&) const;
  8610. ValueAnimation GetAttributeAnimation(const String&) const;
  8611. float GetAttributeAnimationSpeed(const String&) const;
  8612. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8613. Variant GetAttributeDefault(const String&) const;
  8614. Vector3 GetPoint(float) const;
  8615. bool Load(File, bool = false);
  8616. bool Load(VectorBuffer&, bool = false);
  8617. bool LoadXML(const XMLElement&, bool = false);
  8618. void MarkNetworkUpdate() const;
  8619. void Move(float);
  8620. void Remove();
  8621. void RemoveControlPoint(Node);
  8622. void RemoveInstanceDefault();
  8623. void Reset();
  8624. void ResetToDefault();
  8625. bool Save(File) const;
  8626. bool Save(VectorBuffer&) const;
  8627. bool SaveXML(XMLElement&) const;
  8628. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8629. bool SetAttribute(const String&, const Variant&);
  8630. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8631. void SetAttributeAnimationSpeed(const String&, float);
  8632. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8633. // Properties:
  8634. bool animationEnabled;
  8635. /* readonly */
  8636. Array<Variant> attributeDefaults;
  8637. /* readonly */
  8638. Array<AttributeInfo> attributeInfos;
  8639. Array<Variant> attributes;
  8640. /* readonly */
  8641. StringHash baseType;
  8642. /* readonly */
  8643. String category;
  8644. Node controlledNode;
  8645. bool enabled;
  8646. /* readonly */
  8647. bool enabledEffective;
  8648. /* readonly */
  8649. uint id;
  8650. InterpolationMode interpolationMode;
  8651. /* readonly */
  8652. bool isFinished;
  8653. /* readonly */
  8654. Node node;
  8655. /* readonly */
  8656. uint numAttributes;
  8657. ObjectAnimation objectAnimation;
  8658. Vector3 position;
  8659. /* readonly */
  8660. int refs;
  8661. float speed;
  8662. bool temporary;
  8663. /* readonly */
  8664. StringHash type;
  8665. /* readonly */
  8666. String typeName;
  8667. /* readonly */
  8668. int weakRefs;
  8669. };
  8670. class Sprite
  8671. {
  8672. // Methods:
  8673. void AddChild(UIElement);
  8674. void ApplyAttributes();
  8675. void BringToFront();
  8676. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8677. uint FindChild(UIElement) const;
  8678. Variant GetAttribute(const String&) const;
  8679. ValueAnimation GetAttributeAnimation(const String&) const;
  8680. float GetAttributeAnimationSpeed(const String&) const;
  8681. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8682. Variant GetAttributeDefault(const String&) const;
  8683. UIElement GetChild(const String&, bool = false) const;
  8684. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8685. Array<UIElement> GetChildren(bool = false) const;
  8686. UIElement GetElementEventSender() const;
  8687. uint GetNumChildren(bool) const;
  8688. void InsertChild(uint, UIElement);
  8689. bool Load(File, bool = false);
  8690. bool Load(VectorBuffer&, bool = false);
  8691. bool LoadChildXML(XMLFile, XMLFile = null);
  8692. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8693. bool LoadXML(File);
  8694. bool LoadXML(VectorBuffer&);
  8695. bool LoadXML(XMLFile, XMLFile);
  8696. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8697. bool LoadXML(const XMLElement&, bool = false);
  8698. void MarkNetworkUpdate() const;
  8699. void Remove();
  8700. void RemoveAllChildren();
  8701. void RemoveChild(UIElement, uint = 0);
  8702. void RemoveChild(uint);
  8703. void RemoveInstanceDefault();
  8704. void ResetToDefault();
  8705. bool Save(File) const;
  8706. bool Save(VectorBuffer&) const;
  8707. bool SaveXML(File);
  8708. bool SaveXML(VectorBuffer&);
  8709. bool SaveXML(XMLElement&) const;
  8710. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8711. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8712. bool SetAttribute(const String&, const Variant&);
  8713. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8714. void SetAttributeAnimationSpeed(const String&, float);
  8715. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8716. void SetFixedHeight(int);
  8717. void SetFixedSize(int, int);
  8718. void SetFixedWidth(int);
  8719. void SetFullImageRect();
  8720. void SetHotSpot(int, int);
  8721. void SetMaxSize(int, int);
  8722. void SetMinSize(int, int);
  8723. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8724. void SetPosition(float, float);
  8725. void SetScale(float);
  8726. void SetScale(float, float);
  8727. void SetSize(int, int);
  8728. bool SetStyle(const String&, XMLFile = null);
  8729. bool SetStyle(const XMLElement&);
  8730. bool SetStyleAuto(XMLFile = null);
  8731. const Variant& GetVar(const StringHash&);
  8732. // Properties:
  8733. bool animationEnabled;
  8734. /* readonly */
  8735. Array<Variant> attributeDefaults;
  8736. /* readonly */
  8737. Array<AttributeInfo> attributeInfos;
  8738. Array<Variant> attributes;
  8739. /* readonly */
  8740. StringHash baseType;
  8741. BlendMode blendMode;
  8742. bool bringToBack;
  8743. bool bringToFront;
  8744. /* readonly */
  8745. String category;
  8746. /* readonly */
  8747. Array<UIElement> children;
  8748. /* writeonly */
  8749. Color color;
  8750. /* readonly */
  8751. bool colorGradient;
  8752. Array<Color> colors;
  8753. XMLFile defaultStyle;
  8754. /* readonly */
  8755. float derivedOpacity;
  8756. /* readonly */
  8757. uint dragButtonCombo;
  8758. /* readonly */
  8759. int dragButtonCount;
  8760. bool elementEventSender;
  8761. int height;
  8762. HorizontalAlignment horizontalAlignment;
  8763. IntVector2 hotSpot;
  8764. IntRect imageRect;
  8765. String name;
  8766. /* readonly */
  8767. uint numAllChildren;
  8768. /* readonly */
  8769. uint numAttributes;
  8770. /* readonly */
  8771. uint numChildren;
  8772. ObjectAnimation objectAnimation;
  8773. float opacity;
  8774. UIElement parent;
  8775. Vector2 position;
  8776. int priority;
  8777. /* readonly */
  8778. int refs;
  8779. /* readonly */
  8780. UIElement root;
  8781. float rotation;
  8782. Vector2 scale;
  8783. IntVector2 size;
  8784. bool sortChildren;
  8785. String style;
  8786. bool temporary;
  8787. Texture texture;
  8788. /* readonly */
  8789. StringHash type;
  8790. /* readonly */
  8791. String typeName;
  8792. bool useDerivedOpacity;
  8793. /* readonly */
  8794. VariantMap vars;
  8795. VerticalAlignment verticalAlignment;
  8796. bool visible;
  8797. /* readonly */
  8798. int weakRefs;
  8799. int width;
  8800. };
  8801. class Sprite2D
  8802. {
  8803. // Methods:
  8804. bool Load(File);
  8805. bool Load(VectorBuffer&);
  8806. bool Save(File) const;
  8807. bool Save(VectorBuffer&) const;
  8808. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8809. // Properties:
  8810. /* readonly */
  8811. StringHash baseType;
  8812. /* readonly */
  8813. String category;
  8814. Vector2 hotSpot;
  8815. /* readonly */
  8816. uint memoryUse;
  8817. String name;
  8818. IntVector2 offset;
  8819. IntRect rectangle;
  8820. /* readonly */
  8821. int refs;
  8822. Texture2D texture;
  8823. /* readonly */
  8824. StringHash type;
  8825. /* readonly */
  8826. String typeName;
  8827. /* readonly */
  8828. uint useTimer;
  8829. /* readonly */
  8830. int weakRefs;
  8831. };
  8832. class SpriteSheet2D
  8833. {
  8834. // Methods:
  8835. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  8836. Sprite2D GetSprite(const String&);
  8837. bool Load(File);
  8838. bool Load(VectorBuffer&);
  8839. bool Save(File) const;
  8840. bool Save(VectorBuffer&) const;
  8841. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8842. // Properties:
  8843. /* readonly */
  8844. StringHash baseType;
  8845. /* readonly */
  8846. String category;
  8847. /* readonly */
  8848. uint memoryUse;
  8849. String name;
  8850. /* readonly */
  8851. int refs;
  8852. /* readonly */
  8853. Texture2D texture;
  8854. /* readonly */
  8855. StringHash type;
  8856. /* readonly */
  8857. String typeName;
  8858. /* readonly */
  8859. uint useTimer;
  8860. /* readonly */
  8861. int weakRefs;
  8862. };
  8863. class StaticModel
  8864. {
  8865. // Methods:
  8866. void ApplyAttributes();
  8867. void ApplyMaterialList(const String& = String ( ));
  8868. void DrawDebugGeometry(DebugRenderer, bool);
  8869. Variant GetAttribute(const String&) const;
  8870. ValueAnimation GetAttributeAnimation(const String&) const;
  8871. float GetAttributeAnimationSpeed(const String&) const;
  8872. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8873. Variant GetAttributeDefault(const String&) const;
  8874. bool IsInView(Camera) const;
  8875. bool IsInside(const Vector3&) const;
  8876. bool IsInsideLocal(const Vector3&) const;
  8877. bool Load(File, bool = false);
  8878. bool Load(VectorBuffer&, bool = false);
  8879. bool LoadXML(const XMLElement&, bool = false);
  8880. void MarkNetworkUpdate() const;
  8881. void Remove();
  8882. void RemoveInstanceDefault();
  8883. void ResetToDefault();
  8884. bool Save(File) const;
  8885. bool Save(VectorBuffer&) const;
  8886. bool SaveXML(XMLElement&) const;
  8887. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8888. bool SetAttribute(const String&, const Variant&);
  8889. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8890. void SetAttributeAnimationSpeed(const String&, float);
  8891. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8892. // Properties:
  8893. bool animationEnabled;
  8894. /* readonly */
  8895. Array<Variant> attributeDefaults;
  8896. /* readonly */
  8897. Array<AttributeInfo> attributeInfos;
  8898. Array<Variant> attributes;
  8899. /* readonly */
  8900. StringHash baseType;
  8901. /* readonly */
  8902. BoundingBox boundingBox;
  8903. bool castShadows;
  8904. /* readonly */
  8905. String category;
  8906. float drawDistance;
  8907. bool enabled;
  8908. /* readonly */
  8909. bool enabledEffective;
  8910. /* readonly */
  8911. uint id;
  8912. /* readonly */
  8913. bool inView;
  8914. uint lightMask;
  8915. float lodBias;
  8916. /* writeonly */
  8917. Material material;
  8918. Array<Material> materials;
  8919. uint maxLights;
  8920. Model model;
  8921. /* readonly */
  8922. Node node;
  8923. /* readonly */
  8924. uint numAttributes;
  8925. /* readonly */
  8926. uint numGeometries;
  8927. ObjectAnimation objectAnimation;
  8928. bool occludee;
  8929. bool occluder;
  8930. uint occlusionLodLevel;
  8931. /* readonly */
  8932. int refs;
  8933. float shadowDistance;
  8934. uint shadowMask;
  8935. bool temporary;
  8936. /* readonly */
  8937. StringHash type;
  8938. /* readonly */
  8939. String typeName;
  8940. uint viewMask;
  8941. /* readonly */
  8942. int weakRefs;
  8943. /* readonly */
  8944. BoundingBox worldBoundingBox;
  8945. uint zoneMask;
  8946. };
  8947. class StaticModelGroup
  8948. {
  8949. // Methods:
  8950. void AddInstanceNode(Node);
  8951. void ApplyAttributes();
  8952. void ApplyMaterialList(const String& = String ( ));
  8953. void DrawDebugGeometry(DebugRenderer, bool);
  8954. Variant GetAttribute(const String&) const;
  8955. ValueAnimation GetAttributeAnimation(const String&) const;
  8956. float GetAttributeAnimationSpeed(const String&) const;
  8957. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8958. Variant GetAttributeDefault(const String&) const;
  8959. bool IsInView(Camera) const;
  8960. bool Load(File, bool = false);
  8961. bool Load(VectorBuffer&, bool = false);
  8962. bool LoadXML(const XMLElement&, bool = false);
  8963. void MarkNetworkUpdate() const;
  8964. void Remove();
  8965. void RemoveAllInstanceNodes();
  8966. void RemoveInstanceDefault();
  8967. void RemoveInstanceNode(Node);
  8968. void ResetToDefault();
  8969. bool Save(File) const;
  8970. bool Save(VectorBuffer&) const;
  8971. bool SaveXML(XMLElement&) const;
  8972. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8973. bool SetAttribute(const String&, const Variant&);
  8974. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8975. void SetAttributeAnimationSpeed(const String&, float);
  8976. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8977. // Properties:
  8978. bool animationEnabled;
  8979. /* readonly */
  8980. Array<Variant> attributeDefaults;
  8981. /* readonly */
  8982. Array<AttributeInfo> attributeInfos;
  8983. Array<Variant> attributes;
  8984. /* readonly */
  8985. StringHash baseType;
  8986. /* readonly */
  8987. BoundingBox boundingBox;
  8988. bool castShadows;
  8989. /* readonly */
  8990. String category;
  8991. float drawDistance;
  8992. bool enabled;
  8993. /* readonly */
  8994. bool enabledEffective;
  8995. /* readonly */
  8996. uint id;
  8997. /* readonly */
  8998. bool inView;
  8999. /* readonly */
  9000. Array<Node> instanceNodes;
  9001. uint lightMask;
  9002. float lodBias;
  9003. /* writeonly */
  9004. Material material;
  9005. Array<Material> materials;
  9006. uint maxLights;
  9007. Model model;
  9008. /* readonly */
  9009. Node node;
  9010. /* readonly */
  9011. uint numAttributes;
  9012. /* readonly */
  9013. uint numGeometries;
  9014. /* readonly */
  9015. uint numInstanceNodes;
  9016. ObjectAnimation objectAnimation;
  9017. bool occludee;
  9018. bool occluder;
  9019. uint occlusionLodLevel;
  9020. /* readonly */
  9021. int refs;
  9022. float shadowDistance;
  9023. uint shadowMask;
  9024. bool temporary;
  9025. /* readonly */
  9026. StringHash type;
  9027. /* readonly */
  9028. String typeName;
  9029. uint viewMask;
  9030. /* readonly */
  9031. int weakRefs;
  9032. /* readonly */
  9033. BoundingBox worldBoundingBox;
  9034. /* readonly */
  9035. Zone zone;
  9036. uint zoneMask;
  9037. };
  9038. class StaticSprite2D
  9039. {
  9040. // Methods:
  9041. void ApplyAttributes();
  9042. void DrawDebugGeometry(DebugRenderer, bool);
  9043. Variant GetAttribute(const String&) const;
  9044. ValueAnimation GetAttributeAnimation(const String&) const;
  9045. float GetAttributeAnimationSpeed(const String&) const;
  9046. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9047. Variant GetAttributeDefault(const String&) const;
  9048. bool IsInView(Camera) const;
  9049. bool Load(File, bool = false);
  9050. bool Load(VectorBuffer&, bool = false);
  9051. bool LoadXML(const XMLElement&, bool = false);
  9052. void MarkNetworkUpdate() const;
  9053. void Remove();
  9054. void RemoveInstanceDefault();
  9055. void ResetToDefault();
  9056. bool Save(File) const;
  9057. bool Save(VectorBuffer&) const;
  9058. bool SaveXML(XMLElement&) const;
  9059. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9060. bool SetAttribute(const String&, const Variant&);
  9061. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9062. void SetAttributeAnimationSpeed(const String&, float);
  9063. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9064. void SetFlip(bool, bool);
  9065. // Properties:
  9066. bool animationEnabled;
  9067. /* readonly */
  9068. Array<Variant> attributeDefaults;
  9069. /* readonly */
  9070. Array<AttributeInfo> attributeInfos;
  9071. Array<Variant> attributes;
  9072. /* readonly */
  9073. StringHash baseType;
  9074. BlendMode blendMode;
  9075. /* readonly */
  9076. BoundingBox boundingBox;
  9077. bool castShadows;
  9078. /* readonly */
  9079. String category;
  9080. Color color;
  9081. float drawDistance;
  9082. bool enabled;
  9083. /* readonly */
  9084. bool enabledEffective;
  9085. bool flipX;
  9086. bool flipY;
  9087. /* readonly */
  9088. uint id;
  9089. /* readonly */
  9090. bool inView;
  9091. int layer;
  9092. uint lightMask;
  9093. float lodBias;
  9094. uint maxLights;
  9095. /* readonly */
  9096. Node node;
  9097. /* readonly */
  9098. uint numAttributes;
  9099. ObjectAnimation objectAnimation;
  9100. bool occludee;
  9101. bool occluder;
  9102. int orderInLayer;
  9103. /* readonly */
  9104. int refs;
  9105. float shadowDistance;
  9106. uint shadowMask;
  9107. Sprite2D sprite;
  9108. bool temporary;
  9109. Texture2D texture;
  9110. /* readonly */
  9111. StringHash type;
  9112. /* readonly */
  9113. String typeName;
  9114. uint viewMask;
  9115. /* readonly */
  9116. int weakRefs;
  9117. /* readonly */
  9118. BoundingBox worldBoundingBox;
  9119. uint zoneMask;
  9120. };
  9121. class String
  9122. {
  9123. // Methods:
  9124. void AppendUTF8(uint);
  9125. uint AtUTF8(uint) const;
  9126. uint ByteOffsetUTF8(uint) const;
  9127. void Clear();
  9128. int Compare(const String&, bool = true) const;
  9129. bool Contains(const String&, bool = true) const;
  9130. bool Contains(uint8, bool = true) const;
  9131. bool EndsWith(const String&, bool = true) const;
  9132. uint Find(const String&, uint = 0, bool = true) const;
  9133. uint Find(uint8, uint = 0, bool = true) const;
  9134. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  9135. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  9136. void Join(Array<String>&, const String&);
  9137. uint NextUTF8Char(uint&) const;
  9138. void Replace(const String&, const String&, bool = true);
  9139. void Replace(uint8, uint8, bool = true);
  9140. void ReplaceUTF8(uint, uint);
  9141. String Replaced(const String&, const String&, bool = true) const;
  9142. String Replaced(uint8, uint8, bool = true) const;
  9143. void Resize(uint);
  9144. void SetUTF8FromLatin1(const String&);
  9145. Array<String> Split(uint8) const;
  9146. bool StartsWith(const String&, bool = true) const;
  9147. String Substring(uint) const;
  9148. String Substring(uint, uint) const;
  9149. String SubstringUTF8(uint) const;
  9150. String SubstringUTF8(uint, uint) const;
  9151. bool ToBool() const;
  9152. Color ToColor() const;
  9153. float ToFloat() const;
  9154. int ToInt() const;
  9155. IntRect ToIntRect() const;
  9156. IntVector2 ToIntVector2() const;
  9157. String ToLower() const;
  9158. Matrix3 ToMatrix3() const;
  9159. Matrix3x4 ToMatrix3x4() const;
  9160. Matrix4 ToMatrix4() const;
  9161. Quaternion ToQuaternion() const;
  9162. uint ToUInt() const;
  9163. String ToUpper() const;
  9164. Vector2 ToVector2() const;
  9165. Vector3 ToVector3() const;
  9166. Vector4 ToVector4(bool = false) const;
  9167. Variant ToVectorVariant() const;
  9168. String Trimmed() const;
  9169. // Properties:
  9170. /* readonly */
  9171. bool empty;
  9172. /* readonly */
  9173. uint length;
  9174. /* readonly */
  9175. uint utf8Length;
  9176. };
  9177. class StringHash
  9178. {
  9179. // Methods:
  9180. String ToString() const;
  9181. // Properties:
  9182. /* readonly */
  9183. uint value;
  9184. };
  9185. class Technique
  9186. {
  9187. // Methods:
  9188. Pass CreatePass(StringHash);
  9189. Pass GetPass(StringHash);
  9190. Pass GetSupportedPass(StringHash);
  9191. bool HasPass(StringHash) const;
  9192. bool Load(File);
  9193. bool Load(VectorBuffer&);
  9194. void RemovePass(StringHash);
  9195. bool Save(File) const;
  9196. bool Save(VectorBuffer&) const;
  9197. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9198. // Properties:
  9199. /* readonly */
  9200. StringHash baseType;
  9201. /* readonly */
  9202. String category;
  9203. bool desktop;
  9204. /* readonly */
  9205. uint memoryUse;
  9206. String name;
  9207. /* readonly */
  9208. uint numPasses;
  9209. /* readonly */
  9210. Array<StringHash> passTypes;
  9211. /* readonly */
  9212. Array<Pass> passes;
  9213. /* readonly */
  9214. int refs;
  9215. bool sm3;
  9216. /* readonly */
  9217. bool supported;
  9218. /* readonly */
  9219. StringHash type;
  9220. /* readonly */
  9221. String typeName;
  9222. /* readonly */
  9223. uint useTimer;
  9224. /* readonly */
  9225. int weakRefs;
  9226. };
  9227. class TechniqueEntry
  9228. {
  9229. // Properties:
  9230. float lodDistance;
  9231. int qualityLevel;
  9232. Technique technique;
  9233. };
  9234. class Terrain
  9235. {
  9236. // Methods:
  9237. void ApplyAttributes();
  9238. void ApplyHeightMap();
  9239. void DrawDebugGeometry(DebugRenderer, bool);
  9240. Variant GetAttribute(const String&) const;
  9241. ValueAnimation GetAttributeAnimation(const String&) const;
  9242. float GetAttributeAnimationSpeed(const String&) const;
  9243. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9244. Variant GetAttributeDefault(const String&) const;
  9245. float GetHeight(const Vector3&) const;
  9246. Vector3 GetNormal(const Vector3&) const;
  9247. TerrainPatch GetPatch(int, int) const;
  9248. bool Load(File, bool = false);
  9249. bool Load(VectorBuffer&, bool = false);
  9250. bool LoadXML(const XMLElement&, bool = false);
  9251. void MarkNetworkUpdate() const;
  9252. void Remove();
  9253. void RemoveInstanceDefault();
  9254. void ResetToDefault();
  9255. bool Save(File) const;
  9256. bool Save(VectorBuffer&) const;
  9257. bool SaveXML(XMLElement&) const;
  9258. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9259. bool SetAttribute(const String&, const Variant&);
  9260. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9261. void SetAttributeAnimationSpeed(const String&, float);
  9262. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9263. IntVector2 WorldToHeightMap(const Vector3&) const;
  9264. // Properties:
  9265. bool animationEnabled;
  9266. /* readonly */
  9267. Array<Variant> attributeDefaults;
  9268. /* readonly */
  9269. Array<AttributeInfo> attributeInfos;
  9270. Array<Variant> attributes;
  9271. /* readonly */
  9272. StringHash baseType;
  9273. bool castShadows;
  9274. /* readonly */
  9275. String category;
  9276. float drawDistance;
  9277. bool enabled;
  9278. /* readonly */
  9279. bool enabledEffective;
  9280. Image heightMap;
  9281. /* readonly */
  9282. uint id;
  9283. uint lightMask;
  9284. float lodBias;
  9285. Material material;
  9286. uint maxLights;
  9287. /* readonly */
  9288. Node node;
  9289. /* readonly */
  9290. uint numAttributes;
  9291. /* readonly */
  9292. IntVector2 numPatches;
  9293. /* readonly */
  9294. IntVector2 numVertices;
  9295. ObjectAnimation objectAnimation;
  9296. bool occludee;
  9297. bool occluder;
  9298. int patchSize;
  9299. /* readonly */
  9300. Array<TerrainPatch> patches;
  9301. /* readonly */
  9302. int refs;
  9303. float shadowDistance;
  9304. uint shadowMask;
  9305. bool smoothing;
  9306. Vector3 spacing;
  9307. bool temporary;
  9308. /* readonly */
  9309. StringHash type;
  9310. /* readonly */
  9311. String typeName;
  9312. uint viewMask;
  9313. /* readonly */
  9314. int weakRefs;
  9315. uint zoneMask;
  9316. };
  9317. class TerrainPatch
  9318. {
  9319. // Methods:
  9320. void ApplyAttributes();
  9321. void DrawDebugGeometry(DebugRenderer, bool);
  9322. Variant GetAttribute(const String&) const;
  9323. ValueAnimation GetAttributeAnimation(const String&) const;
  9324. float GetAttributeAnimationSpeed(const String&) const;
  9325. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9326. Variant GetAttributeDefault(const String&) const;
  9327. bool IsInView(Camera) const;
  9328. bool Load(File, bool = false);
  9329. bool Load(VectorBuffer&, bool = false);
  9330. bool LoadXML(const XMLElement&, bool = false);
  9331. void MarkNetworkUpdate() const;
  9332. void Remove();
  9333. void RemoveInstanceDefault();
  9334. void ResetToDefault();
  9335. bool Save(File) const;
  9336. bool Save(VectorBuffer&) const;
  9337. bool SaveXML(XMLElement&) const;
  9338. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9339. bool SetAttribute(const String&, const Variant&);
  9340. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9341. void SetAttributeAnimationSpeed(const String&, float);
  9342. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9343. // Properties:
  9344. bool animationEnabled;
  9345. /* readonly */
  9346. Array<Variant> attributeDefaults;
  9347. /* readonly */
  9348. Array<AttributeInfo> attributeInfos;
  9349. Array<Variant> attributes;
  9350. /* readonly */
  9351. StringHash baseType;
  9352. /* readonly */
  9353. BoundingBox boundingBox;
  9354. bool castShadows;
  9355. /* readonly */
  9356. String category;
  9357. float drawDistance;
  9358. bool enabled;
  9359. /* readonly */
  9360. bool enabledEffective;
  9361. /* readonly */
  9362. uint id;
  9363. /* readonly */
  9364. bool inView;
  9365. uint lightMask;
  9366. float lodBias;
  9367. uint maxLights;
  9368. /* readonly */
  9369. Node node;
  9370. /* readonly */
  9371. uint numAttributes;
  9372. ObjectAnimation objectAnimation;
  9373. bool occludee;
  9374. bool occluder;
  9375. /* readonly */
  9376. int refs;
  9377. float shadowDistance;
  9378. uint shadowMask;
  9379. bool temporary;
  9380. /* readonly */
  9381. StringHash type;
  9382. /* readonly */
  9383. String typeName;
  9384. uint viewMask;
  9385. /* readonly */
  9386. int weakRefs;
  9387. /* readonly */
  9388. BoundingBox worldBoundingBox;
  9389. uint zoneMask;
  9390. };
  9391. class Text
  9392. {
  9393. // Methods:
  9394. void AddChild(UIElement);
  9395. void ApplyAttributes();
  9396. void BringToFront();
  9397. void ClearSelection();
  9398. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9399. void DisableLayoutUpdate();
  9400. IntVector2 ElementToScreen(const IntVector2&);
  9401. void EnableLayoutUpdate();
  9402. uint FindChild(UIElement) const;
  9403. Variant GetAttribute(const String&) const;
  9404. ValueAnimation GetAttributeAnimation(const String&) const;
  9405. float GetAttributeAnimationSpeed(const String&) const;
  9406. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9407. Variant GetAttributeDefault(const String&) const;
  9408. UIElement GetChild(const String&, bool = false) const;
  9409. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9410. Array<UIElement> GetChildren(bool = false) const;
  9411. UIElement GetElementEventSender() const;
  9412. uint GetNumChildren(bool) const;
  9413. void InsertChild(uint, UIElement);
  9414. bool IsInside(IntVector2, bool);
  9415. bool IsInsideCombined(IntVector2, bool);
  9416. bool Load(File, bool = false);
  9417. bool Load(VectorBuffer&, bool = false);
  9418. bool LoadChildXML(XMLFile, XMLFile = null);
  9419. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9420. bool LoadXML(File);
  9421. bool LoadXML(VectorBuffer&);
  9422. bool LoadXML(XMLFile, XMLFile);
  9423. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9424. bool LoadXML(const XMLElement&, bool = false);
  9425. void MarkNetworkUpdate() const;
  9426. void Remove();
  9427. void RemoveAllChildren();
  9428. void RemoveChild(UIElement, uint = 0);
  9429. void RemoveChild(uint);
  9430. void RemoveInstanceDefault();
  9431. void ResetDeepEnabled();
  9432. void ResetToDefault();
  9433. bool Save(File) const;
  9434. bool Save(VectorBuffer&) const;
  9435. bool SaveXML(File);
  9436. bool SaveXML(VectorBuffer&);
  9437. bool SaveXML(XMLElement&) const;
  9438. IntVector2 ScreenToElement(const IntVector2&);
  9439. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9440. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  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 SetAttributeAnimationWrapMode(const String&, WrapMode);
  9445. void SetDeepEnabled(bool);
  9446. void SetEnabledRecursive(bool);
  9447. void SetFixedHeight(int);
  9448. void SetFixedSize(int, int);
  9449. void SetFixedWidth(int);
  9450. bool SetFont(Font, int);
  9451. bool SetFont(const String&, int);
  9452. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9453. void SetMaxSize(int, int);
  9454. void SetMinSize(int, int);
  9455. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9456. void SetPosition(int, int);
  9457. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  9458. void SetSize(int, int);
  9459. bool SetStyle(const String&, XMLFile = null);
  9460. bool SetStyle(const XMLElement&);
  9461. bool SetStyleAuto(XMLFile = null);
  9462. void UpdateLayout();
  9463. const Variant& GetVar(const StringHash&);
  9464. // Properties:
  9465. bool animationEnabled;
  9466. /* readonly */
  9467. Array<Variant> attributeDefaults;
  9468. /* readonly */
  9469. Array<AttributeInfo> attributeInfos;
  9470. Array<Variant> attributes;
  9471. /* readonly */
  9472. StringHash baseType;
  9473. bool bringToBack;
  9474. bool bringToFront;
  9475. /* readonly */
  9476. String category;
  9477. /* readonly */
  9478. Array<IntVector2> charPositions;
  9479. /* readonly */
  9480. Array<IntVector2> charSizes;
  9481. /* readonly */
  9482. IntVector2 childOffset;
  9483. /* readonly */
  9484. Array<UIElement> children;
  9485. IntRect clipBorder;
  9486. bool clipChildren;
  9487. /* writeonly */
  9488. Color color;
  9489. /* readonly */
  9490. bool colorGradient;
  9491. Array<Color> colors;
  9492. /* readonly */
  9493. IntRect combinedScreenRect;
  9494. XMLFile defaultStyle;
  9495. /* readonly */
  9496. float derivedOpacity;
  9497. /* readonly */
  9498. uint dragButtonCombo;
  9499. /* readonly */
  9500. int dragButtonCount;
  9501. uint dragDropMode;
  9502. bool editable;
  9503. Color effectColor;
  9504. bool elementEventSender;
  9505. bool enabled;
  9506. /* readonly */
  9507. bool enabledSelf;
  9508. /* readonly */
  9509. bool fixedHeight;
  9510. /* readonly */
  9511. bool fixedSize;
  9512. /* readonly */
  9513. bool fixedWidth;
  9514. bool focus;
  9515. FocusMode focusMode;
  9516. /* readonly */
  9517. Font font;
  9518. /* readonly */
  9519. int fontSize;
  9520. int height;
  9521. HorizontalAlignment horizontalAlignment;
  9522. Color hoverColor;
  9523. /* readonly */
  9524. bool hovering;
  9525. int indent;
  9526. int indentSpacing;
  9527. /* readonly */
  9528. int indentWidth;
  9529. bool internal;
  9530. IntRect layoutBorder;
  9531. Vector2 layoutFlexScale;
  9532. LayoutMode layoutMode;
  9533. int layoutSpacing;
  9534. int maxHeight;
  9535. IntVector2 maxSize;
  9536. int maxWidth;
  9537. int minHeight;
  9538. IntVector2 minSize;
  9539. int minWidth;
  9540. String name;
  9541. /* readonly */
  9542. uint numAllChildren;
  9543. /* readonly */
  9544. uint numAttributes;
  9545. /* readonly */
  9546. uint numChars;
  9547. /* readonly */
  9548. uint numChildren;
  9549. /* readonly */
  9550. uint numRows;
  9551. ObjectAnimation objectAnimation;
  9552. float opacity;
  9553. UIElement parent;
  9554. IntVector2 position;
  9555. int priority;
  9556. /* readonly */
  9557. int refs;
  9558. /* readonly */
  9559. UIElement root;
  9560. /* readonly */
  9561. int rowHeight;
  9562. float rowSpacing;
  9563. /* readonly */
  9564. Array<int> rowWidths;
  9565. /* readonly */
  9566. IntVector2 screenPosition;
  9567. bool selected;
  9568. Color selectionColor;
  9569. /* readonly */
  9570. uint selectionLength;
  9571. /* readonly */
  9572. uint selectionStart;
  9573. IntVector2 size;
  9574. bool sortChildren;
  9575. String style;
  9576. bool temporary;
  9577. String text;
  9578. HorizontalAlignment textAlignment;
  9579. TextEffect textEffect;
  9580. TraversalMode traversalMode;
  9581. /* readonly */
  9582. StringHash type;
  9583. /* readonly */
  9584. String typeName;
  9585. bool useDerivedOpacity;
  9586. /* readonly */
  9587. VariantMap vars;
  9588. VerticalAlignment verticalAlignment;
  9589. bool visible;
  9590. /* readonly */
  9591. int weakRefs;
  9592. int width;
  9593. bool wordwrap;
  9594. };
  9595. class Text3D
  9596. {
  9597. // Methods:
  9598. void ApplyAttributes();
  9599. void DrawDebugGeometry(DebugRenderer, bool);
  9600. Variant GetAttribute(const String&) const;
  9601. ValueAnimation GetAttributeAnimation(const String&) const;
  9602. float GetAttributeAnimationSpeed(const String&) const;
  9603. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9604. Variant GetAttributeDefault(const String&) const;
  9605. bool IsInView(Camera) const;
  9606. bool Load(File, bool = false);
  9607. bool Load(VectorBuffer&, bool = false);
  9608. bool LoadXML(const XMLElement&, bool = false);
  9609. void MarkNetworkUpdate() const;
  9610. void Remove();
  9611. void RemoveInstanceDefault();
  9612. void ResetToDefault();
  9613. bool Save(File) const;
  9614. bool Save(VectorBuffer&) const;
  9615. bool SaveXML(XMLElement&) const;
  9616. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9617. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9618. bool SetAttribute(const String&, const Variant&);
  9619. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9620. void SetAttributeAnimationSpeed(const String&, float);
  9621. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9622. bool SetFont(Font, int);
  9623. bool SetFont(const String&, int);
  9624. // Properties:
  9625. bool animationEnabled;
  9626. /* readonly */
  9627. Array<Variant> attributeDefaults;
  9628. /* readonly */
  9629. Array<AttributeInfo> attributeInfos;
  9630. Array<Variant> attributes;
  9631. /* readonly */
  9632. StringHash baseType;
  9633. /* readonly */
  9634. BoundingBox boundingBox;
  9635. bool castShadows;
  9636. /* readonly */
  9637. String category;
  9638. /* readonly */
  9639. Array<IntVector2> charPositions;
  9640. /* readonly */
  9641. Array<IntVector2> charSizes;
  9642. /* writeonly */
  9643. Color color;
  9644. Array<Color> colors;
  9645. float drawDistance;
  9646. Color effectColor;
  9647. float effectDepthBias;
  9648. bool enabled;
  9649. /* readonly */
  9650. bool enabledEffective;
  9651. FaceCameraMode faceCameraMode;
  9652. /* readonly */
  9653. Font font;
  9654. /* readonly */
  9655. int fontSize;
  9656. HorizontalAlignment horizontalAlignment;
  9657. /* readonly */
  9658. uint id;
  9659. /* readonly */
  9660. bool inView;
  9661. uint lightMask;
  9662. float lodBias;
  9663. Material material;
  9664. uint maxLights;
  9665. /* readonly */
  9666. Node node;
  9667. /* readonly */
  9668. uint numAttributes;
  9669. /* readonly */
  9670. uint numChars;
  9671. /* readonly */
  9672. uint numRows;
  9673. ObjectAnimation objectAnimation;
  9674. bool occludee;
  9675. bool occluder;
  9676. float opacity;
  9677. /* readonly */
  9678. int refs;
  9679. /* readonly */
  9680. int rowHeight;
  9681. float rowSpacing;
  9682. /* readonly */
  9683. Array<int> rowWidths;
  9684. float shadowDistance;
  9685. uint shadowMask;
  9686. bool temporary;
  9687. String text;
  9688. HorizontalAlignment textAlignment;
  9689. TextEffect textEffect;
  9690. /* readonly */
  9691. StringHash type;
  9692. /* readonly */
  9693. String typeName;
  9694. VerticalAlignment verticalAlignment;
  9695. uint viewMask;
  9696. /* readonly */
  9697. int weakRefs;
  9698. int width;
  9699. bool wordwrap;
  9700. /* readonly */
  9701. BoundingBox worldBoundingBox;
  9702. uint zoneMask;
  9703. };
  9704. class Texture
  9705. {
  9706. // Methods:
  9707. void ClearDataLost();
  9708. bool Load(File);
  9709. bool Load(VectorBuffer&);
  9710. bool Save(File) const;
  9711. bool Save(VectorBuffer&) const;
  9712. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9713. void SetNumLevels(uint);
  9714. // Properties:
  9715. Array<TextureAddressMode> addressMode;
  9716. Texture backupTexture;
  9717. /* readonly */
  9718. StringHash baseType;
  9719. Color borderColor;
  9720. /* readonly */
  9721. String category;
  9722. /* readonly */
  9723. bool compressed;
  9724. /* readonly */
  9725. bool dataLost;
  9726. TextureFilterMode filterMode;
  9727. /* readonly */
  9728. uint format;
  9729. /* readonly */
  9730. int height;
  9731. /* readonly */
  9732. Array<int> levelHeight;
  9733. /* readonly */
  9734. Array<int> levelWidth;
  9735. /* readonly */
  9736. uint levels;
  9737. /* readonly */
  9738. uint memoryUse;
  9739. Array<int> mipsToSkip;
  9740. String name;
  9741. /* readonly */
  9742. int refs;
  9743. bool sRGB;
  9744. /* readonly */
  9745. StringHash type;
  9746. /* readonly */
  9747. String typeName;
  9748. /* readonly */
  9749. TextureUsage usage;
  9750. /* readonly */
  9751. uint useTimer;
  9752. /* readonly */
  9753. int weakRefs;
  9754. /* readonly */
  9755. int width;
  9756. };
  9757. class Texture2D
  9758. {
  9759. // Methods:
  9760. void ClearDataLost();
  9761. bool Load(File);
  9762. bool Load(VectorBuffer&);
  9763. bool Save(File) const;
  9764. bool Save(VectorBuffer&) const;
  9765. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9766. bool SetData(Image, bool = false);
  9767. void SetNumLevels(uint);
  9768. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  9769. // Properties:
  9770. Array<TextureAddressMode> addressMode;
  9771. Texture backupTexture;
  9772. /* readonly */
  9773. StringHash baseType;
  9774. Color borderColor;
  9775. /* readonly */
  9776. String category;
  9777. /* readonly */
  9778. bool compressed;
  9779. /* readonly */
  9780. bool dataLost;
  9781. TextureFilterMode filterMode;
  9782. /* readonly */
  9783. uint format;
  9784. /* readonly */
  9785. int height;
  9786. /* readonly */
  9787. Array<int> levelHeight;
  9788. /* readonly */
  9789. Array<int> levelWidth;
  9790. /* readonly */
  9791. uint levels;
  9792. /* readonly */
  9793. uint memoryUse;
  9794. Array<int> mipsToSkip;
  9795. String name;
  9796. /* readonly */
  9797. int refs;
  9798. /* readonly */
  9799. RenderSurface renderSurface;
  9800. bool sRGB;
  9801. /* readonly */
  9802. StringHash type;
  9803. /* readonly */
  9804. String typeName;
  9805. /* readonly */
  9806. TextureUsage usage;
  9807. /* readonly */
  9808. uint useTimer;
  9809. /* readonly */
  9810. int weakRefs;
  9811. /* readonly */
  9812. int width;
  9813. };
  9814. class Texture3D
  9815. {
  9816. // Methods:
  9817. void ClearDataLost();
  9818. bool Load(File);
  9819. bool Load(VectorBuffer&);
  9820. bool Save(File) const;
  9821. bool Save(VectorBuffer&) const;
  9822. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9823. bool SetData(Image, bool = false);
  9824. void SetNumLevels(uint);
  9825. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  9826. // Properties:
  9827. Array<TextureAddressMode> addressMode;
  9828. Texture backupTexture;
  9829. /* readonly */
  9830. StringHash baseType;
  9831. Color borderColor;
  9832. /* readonly */
  9833. String category;
  9834. /* readonly */
  9835. bool compressed;
  9836. /* readonly */
  9837. bool dataLost;
  9838. TextureFilterMode filterMode;
  9839. /* readonly */
  9840. uint format;
  9841. /* readonly */
  9842. int height;
  9843. /* readonly */
  9844. Array<int> levelHeight;
  9845. /* readonly */
  9846. Array<int> levelWidth;
  9847. /* readonly */
  9848. uint levels;
  9849. /* readonly */
  9850. uint memoryUse;
  9851. Array<int> mipsToSkip;
  9852. String name;
  9853. /* readonly */
  9854. int refs;
  9855. /* readonly */
  9856. RenderSurface renderSurface;
  9857. bool sRGB;
  9858. /* readonly */
  9859. StringHash type;
  9860. /* readonly */
  9861. String typeName;
  9862. /* readonly */
  9863. TextureUsage usage;
  9864. /* readonly */
  9865. uint useTimer;
  9866. /* readonly */
  9867. int weakRefs;
  9868. /* readonly */
  9869. int width;
  9870. };
  9871. class TextureCube
  9872. {
  9873. // Methods:
  9874. void ClearDataLost();
  9875. bool Load(File);
  9876. bool Load(VectorBuffer&);
  9877. bool Save(File) const;
  9878. bool Save(VectorBuffer&) const;
  9879. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9880. bool SetData(CubeMapFace, Image, bool = false);
  9881. void SetNumLevels(uint);
  9882. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  9883. // Properties:
  9884. Array<TextureAddressMode> addressMode;
  9885. Texture backupTexture;
  9886. /* readonly */
  9887. StringHash baseType;
  9888. Color borderColor;
  9889. /* readonly */
  9890. String category;
  9891. /* readonly */
  9892. bool compressed;
  9893. /* readonly */
  9894. bool dataLost;
  9895. TextureFilterMode filterMode;
  9896. /* readonly */
  9897. uint format;
  9898. /* readonly */
  9899. int height;
  9900. /* readonly */
  9901. Array<int> levelHeight;
  9902. /* readonly */
  9903. Array<int> levelWidth;
  9904. /* readonly */
  9905. uint levels;
  9906. /* readonly */
  9907. uint memoryUse;
  9908. Array<int> mipsToSkip;
  9909. String name;
  9910. /* readonly */
  9911. int refs;
  9912. /* readonly */
  9913. Array<RenderSurface> renderSurfaces;
  9914. bool sRGB;
  9915. /* readonly */
  9916. StringHash type;
  9917. /* readonly */
  9918. String typeName;
  9919. /* readonly */
  9920. TextureUsage usage;
  9921. /* readonly */
  9922. uint useTimer;
  9923. /* readonly */
  9924. int weakRefs;
  9925. /* readonly */
  9926. int width;
  9927. };
  9928. class TextureFrame
  9929. {
  9930. // Properties:
  9931. float time;
  9932. Rect uv;
  9933. };
  9934. class Tile2D
  9935. {
  9936. // Methods:
  9937. bool HasProperty(const String&) const;
  9938. const String& GetProperty(const String&) const;
  9939. // Properties:
  9940. /* readonly */
  9941. int gid;
  9942. /* readonly */
  9943. int refs;
  9944. /* readonly */
  9945. Sprite2D sprite;
  9946. /* readonly */
  9947. int weakRefs;
  9948. };
  9949. class TileMap2D
  9950. {
  9951. // Methods:
  9952. void ApplyAttributes();
  9953. void DrawDebugGeometry(DebugRenderer, bool);
  9954. Variant GetAttribute(const String&) const;
  9955. ValueAnimation GetAttributeAnimation(const String&) const;
  9956. float GetAttributeAnimationSpeed(const String&) const;
  9957. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9958. Variant GetAttributeDefault(const String&) const;
  9959. TileMapLayer2D GetLayer(uint) const;
  9960. bool Load(File, bool = false);
  9961. bool Load(VectorBuffer&, bool = false);
  9962. bool LoadXML(const XMLElement&, bool = false);
  9963. void MarkNetworkUpdate() const;
  9964. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  9965. void Remove();
  9966. void RemoveInstanceDefault();
  9967. void ResetToDefault();
  9968. bool Save(File) const;
  9969. bool Save(VectorBuffer&) const;
  9970. bool SaveXML(XMLElement&) const;
  9971. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9972. bool SetAttribute(const String&, const Variant&);
  9973. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9974. void SetAttributeAnimationSpeed(const String&, float);
  9975. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9976. Vector2 TileIndexToPosition(int, int) const;
  9977. // Properties:
  9978. bool animationEnabled;
  9979. /* readonly */
  9980. Array<Variant> attributeDefaults;
  9981. /* readonly */
  9982. Array<AttributeInfo> attributeInfos;
  9983. Array<Variant> attributes;
  9984. /* readonly */
  9985. StringHash baseType;
  9986. /* readonly */
  9987. String category;
  9988. bool enabled;
  9989. /* readonly */
  9990. bool enabledEffective;
  9991. /* readonly */
  9992. uint id;
  9993. /* readonly */
  9994. TileMapInfo2D info;
  9995. /* readonly */
  9996. Node node;
  9997. /* readonly */
  9998. uint numAttributes;
  9999. /* readonly */
  10000. uint numLayers;
  10001. ObjectAnimation objectAnimation;
  10002. /* readonly */
  10003. int refs;
  10004. bool temporary;
  10005. TmxFile2D tmxFile;
  10006. /* readonly */
  10007. StringHash type;
  10008. /* readonly */
  10009. String typeName;
  10010. /* readonly */
  10011. int weakRefs;
  10012. };
  10013. class TileMapInfo2D
  10014. {
  10015. // Properties:
  10016. int height;
  10017. /* readonly */
  10018. float mapHeight;
  10019. /* readonly */
  10020. float mapWidth;
  10021. Orientation2D orientation;
  10022. float tileHeight;
  10023. float tileWidth;
  10024. int width;
  10025. };
  10026. class TileMapLayer2D
  10027. {
  10028. // Methods:
  10029. void ApplyAttributes();
  10030. void DrawDebugGeometry(DebugRenderer, bool);
  10031. Variant GetAttribute(const String&) const;
  10032. ValueAnimation GetAttributeAnimation(const String&) const;
  10033. float GetAttributeAnimationSpeed(const String&) const;
  10034. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10035. Variant GetAttributeDefault(const String&) const;
  10036. TileMapObject2D GetObject(uint) const;
  10037. Node GetObjectNode(uint) const;
  10038. Tile2D GetTile(int, int) const;
  10039. Node GetTileNode(int, int) const;
  10040. bool HasProperty(const String&) const;
  10041. bool Load(File, bool = false);
  10042. bool Load(VectorBuffer&, bool = false);
  10043. bool LoadXML(const XMLElement&, bool = false);
  10044. void MarkNetworkUpdate() const;
  10045. void Remove();
  10046. void RemoveInstanceDefault();
  10047. void ResetToDefault();
  10048. bool Save(File) const;
  10049. bool Save(VectorBuffer&) const;
  10050. bool SaveXML(XMLElement&) const;
  10051. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10052. bool SetAttribute(const String&, const Variant&);
  10053. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10054. void SetAttributeAnimationSpeed(const String&, float);
  10055. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10056. const String& GetProperty(const String&) const;
  10057. // Properties:
  10058. bool animationEnabled;
  10059. /* readonly */
  10060. Array<Variant> attributeDefaults;
  10061. /* readonly */
  10062. Array<AttributeInfo> attributeInfos;
  10063. Array<Variant> attributes;
  10064. /* readonly */
  10065. StringHash baseType;
  10066. /* readonly */
  10067. String category;
  10068. int drawOrder;
  10069. bool enabled;
  10070. /* readonly */
  10071. bool enabledEffective;
  10072. /* readonly */
  10073. int height;
  10074. /* readonly */
  10075. uint id;
  10076. /* readonly */
  10077. Node imageNode;
  10078. /* readonly */
  10079. TileMapLayerType2D layerType;
  10080. /* readonly */
  10081. Node node;
  10082. /* readonly */
  10083. uint numAttributes;
  10084. /* readonly */
  10085. uint numObjects;
  10086. ObjectAnimation objectAnimation;
  10087. /* readonly */
  10088. int refs;
  10089. bool temporary;
  10090. /* readonly */
  10091. StringHash type;
  10092. /* readonly */
  10093. String typeName;
  10094. bool visible;
  10095. /* readonly */
  10096. int weakRefs;
  10097. /* readonly */
  10098. int width;
  10099. };
  10100. class TileMapObject2D
  10101. {
  10102. // Methods:
  10103. bool HasProperty(const String&) const;
  10104. const String& GetProperty(const String&) const;
  10105. const Vector2& GetPoint(uint) const;
  10106. // Properties:
  10107. /* readonly */
  10108. String name;
  10109. /* readonly */
  10110. uint numPoints;
  10111. /* readonly */
  10112. TileObjectType2D objectType;
  10113. /* readonly */
  10114. Vector2 position;
  10115. /* readonly */
  10116. int refs;
  10117. /* readonly */
  10118. Vector2 size;
  10119. /* readonly */
  10120. int tileGid;
  10121. /* readonly */
  10122. Sprite2D tileSprite;
  10123. /* readonly */
  10124. String type;
  10125. /* readonly */
  10126. int weakRefs;
  10127. };
  10128. class Time
  10129. {
  10130. // Methods:
  10131. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10132. // Properties:
  10133. /* readonly */
  10134. StringHash baseType;
  10135. /* readonly */
  10136. String category;
  10137. /* readonly */
  10138. float elapsedTime;
  10139. /* readonly */
  10140. uint frameNumber;
  10141. /* readonly */
  10142. int refs;
  10143. /* readonly */
  10144. uint systemTime;
  10145. /* readonly */
  10146. uint timeSinceEpoch;
  10147. /* readonly */
  10148. String timeStamp;
  10149. /* readonly */
  10150. float timeStep;
  10151. /* readonly */
  10152. StringHash type;
  10153. /* readonly */
  10154. String typeName;
  10155. /* readonly */
  10156. int weakRefs;
  10157. };
  10158. class Timer
  10159. {
  10160. // Methods:
  10161. uint GetMSec(bool);
  10162. void Reset();
  10163. };
  10164. class TmxFile2D
  10165. {
  10166. // Methods:
  10167. bool Load(File);
  10168. bool Load(VectorBuffer&);
  10169. bool Save(File) const;
  10170. bool Save(VectorBuffer&) const;
  10171. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10172. // Properties:
  10173. /* readonly */
  10174. StringHash baseType;
  10175. /* readonly */
  10176. String category;
  10177. /* readonly */
  10178. uint memoryUse;
  10179. String name;
  10180. /* readonly */
  10181. int refs;
  10182. /* readonly */
  10183. StringHash type;
  10184. /* readonly */
  10185. String typeName;
  10186. /* readonly */
  10187. uint useTimer;
  10188. /* readonly */
  10189. int weakRefs;
  10190. };
  10191. class ToolTip
  10192. {
  10193. // Methods:
  10194. void AddChild(UIElement);
  10195. void ApplyAttributes();
  10196. void BringToFront();
  10197. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10198. void DisableLayoutUpdate();
  10199. IntVector2 ElementToScreen(const IntVector2&);
  10200. void EnableLayoutUpdate();
  10201. uint FindChild(UIElement) const;
  10202. Variant GetAttribute(const String&) const;
  10203. ValueAnimation GetAttributeAnimation(const String&) const;
  10204. float GetAttributeAnimationSpeed(const String&) const;
  10205. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10206. Variant GetAttributeDefault(const String&) const;
  10207. UIElement GetChild(const String&, bool = false) const;
  10208. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10209. Array<UIElement> GetChildren(bool = false) const;
  10210. UIElement GetElementEventSender() const;
  10211. uint GetNumChildren(bool) const;
  10212. void InsertChild(uint, UIElement);
  10213. bool IsInside(IntVector2, bool);
  10214. bool IsInsideCombined(IntVector2, bool);
  10215. bool Load(File, bool = false);
  10216. bool Load(VectorBuffer&, bool = false);
  10217. bool LoadChildXML(XMLFile, XMLFile = null);
  10218. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10219. bool LoadXML(File);
  10220. bool LoadXML(VectorBuffer&);
  10221. bool LoadXML(XMLFile, XMLFile);
  10222. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10223. bool LoadXML(const XMLElement&, bool = false);
  10224. void MarkNetworkUpdate() const;
  10225. void Remove();
  10226. void RemoveAllChildren();
  10227. void RemoveChild(UIElement, uint = 0);
  10228. void RemoveChild(uint);
  10229. void RemoveInstanceDefault();
  10230. void ResetDeepEnabled();
  10231. void ResetToDefault();
  10232. bool Save(File) const;
  10233. bool Save(VectorBuffer&) const;
  10234. bool SaveXML(File);
  10235. bool SaveXML(VectorBuffer&);
  10236. bool SaveXML(XMLElement&) const;
  10237. IntVector2 ScreenToElement(const IntVector2&);
  10238. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10239. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10240. bool SetAttribute(const String&, const Variant&);
  10241. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10242. void SetAttributeAnimationSpeed(const String&, float);
  10243. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10244. void SetDeepEnabled(bool);
  10245. void SetEnabledRecursive(bool);
  10246. void SetFixedHeight(int);
  10247. void SetFixedSize(int, int);
  10248. void SetFixedWidth(int);
  10249. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10250. void SetMaxSize(int, int);
  10251. void SetMinSize(int, int);
  10252. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10253. void SetPosition(int, int);
  10254. void SetSize(int, int);
  10255. bool SetStyle(const String&, XMLFile = null);
  10256. bool SetStyle(const XMLElement&);
  10257. bool SetStyleAuto(XMLFile = null);
  10258. void UpdateLayout();
  10259. const Variant& GetVar(const StringHash&);
  10260. // Properties:
  10261. bool animationEnabled;
  10262. /* readonly */
  10263. Array<Variant> attributeDefaults;
  10264. /* readonly */
  10265. Array<AttributeInfo> attributeInfos;
  10266. Array<Variant> attributes;
  10267. /* readonly */
  10268. StringHash baseType;
  10269. bool bringToBack;
  10270. bool bringToFront;
  10271. /* readonly */
  10272. String category;
  10273. /* readonly */
  10274. IntVector2 childOffset;
  10275. /* readonly */
  10276. Array<UIElement> children;
  10277. IntRect clipBorder;
  10278. bool clipChildren;
  10279. /* writeonly */
  10280. Color color;
  10281. /* readonly */
  10282. bool colorGradient;
  10283. Array<Color> colors;
  10284. /* readonly */
  10285. IntRect combinedScreenRect;
  10286. XMLFile defaultStyle;
  10287. float delay;
  10288. /* readonly */
  10289. float derivedOpacity;
  10290. /* readonly */
  10291. uint dragButtonCombo;
  10292. /* readonly */
  10293. int dragButtonCount;
  10294. uint dragDropMode;
  10295. bool editable;
  10296. bool elementEventSender;
  10297. bool enabled;
  10298. /* readonly */
  10299. bool enabledSelf;
  10300. /* readonly */
  10301. bool fixedHeight;
  10302. /* readonly */
  10303. bool fixedSize;
  10304. /* readonly */
  10305. bool fixedWidth;
  10306. bool focus;
  10307. FocusMode focusMode;
  10308. int height;
  10309. HorizontalAlignment horizontalAlignment;
  10310. /* readonly */
  10311. bool hovering;
  10312. int indent;
  10313. int indentSpacing;
  10314. /* readonly */
  10315. int indentWidth;
  10316. bool internal;
  10317. IntRect layoutBorder;
  10318. Vector2 layoutFlexScale;
  10319. LayoutMode layoutMode;
  10320. int layoutSpacing;
  10321. int maxHeight;
  10322. IntVector2 maxSize;
  10323. int maxWidth;
  10324. int minHeight;
  10325. IntVector2 minSize;
  10326. int minWidth;
  10327. String name;
  10328. /* readonly */
  10329. uint numAllChildren;
  10330. /* readonly */
  10331. uint numAttributes;
  10332. /* readonly */
  10333. uint numChildren;
  10334. ObjectAnimation objectAnimation;
  10335. float opacity;
  10336. UIElement parent;
  10337. IntVector2 position;
  10338. int priority;
  10339. /* readonly */
  10340. int refs;
  10341. /* readonly */
  10342. UIElement root;
  10343. /* readonly */
  10344. IntVector2 screenPosition;
  10345. bool selected;
  10346. IntVector2 size;
  10347. bool sortChildren;
  10348. String style;
  10349. bool temporary;
  10350. TraversalMode traversalMode;
  10351. /* readonly */
  10352. StringHash type;
  10353. /* readonly */
  10354. String typeName;
  10355. bool useDerivedOpacity;
  10356. /* readonly */
  10357. VariantMap vars;
  10358. VerticalAlignment verticalAlignment;
  10359. bool visible;
  10360. /* readonly */
  10361. int weakRefs;
  10362. int width;
  10363. };
  10364. class TouchState
  10365. {
  10366. // Properties:
  10367. IntVector2 delta;
  10368. IntVector2 lastPosition;
  10369. IntVector2 position;
  10370. float pressure;
  10371. int touchID;
  10372. /* readonly */
  10373. UIElement touchedElement;
  10374. };
  10375. class UI
  10376. {
  10377. // Methods:
  10378. void Clear();
  10379. void DebugDraw(UIElement);
  10380. UIElement GetElementAt(const IntVector2&, bool = true);
  10381. UIElement GetElementAt(int, int, bool = true);
  10382. bool HasModalElement() const;
  10383. bool IsDragging() const;
  10384. UIElement LoadLayout(File);
  10385. UIElement LoadLayout(File, XMLFile);
  10386. UIElement LoadLayout(VectorBuffer&);
  10387. UIElement LoadLayout(VectorBuffer&, XMLFile);
  10388. UIElement LoadLayout(XMLFile);
  10389. UIElement LoadLayout(XMLFile, XMLFile);
  10390. bool SaveLayout(File, UIElement);
  10391. bool SaveLayout(VectorBuffer&, UIElement);
  10392. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10393. void SetFocusElement(UIElement, bool = false);
  10394. const Array<UIElement> GetDragElements();
  10395. // Properties:
  10396. /* readonly */
  10397. StringHash baseType;
  10398. /* readonly */
  10399. String category;
  10400. String clipBoardText;
  10401. Cursor cursor;
  10402. /* readonly */
  10403. IntVector2 cursorPosition;
  10404. float defaultToolTipDelay;
  10405. float doubleClickInterval;
  10406. int dragBeginDistance;
  10407. float dragBeginInterval;
  10408. UIElement focusElement;
  10409. bool forceAutoHint;
  10410. /* readonly */
  10411. UIElement frontElement;
  10412. int maxFontTextureSize;
  10413. /* readonly */
  10414. UIElement modalRoot;
  10415. bool nonFocusedMouseWheel;
  10416. /* readonly */
  10417. int refs;
  10418. /* readonly */
  10419. UIElement root;
  10420. /* readonly */
  10421. StringHash type;
  10422. /* readonly */
  10423. String typeName;
  10424. bool useMutableGlyphs;
  10425. bool useScreenKeyboard;
  10426. bool useSystemClipboard;
  10427. /* readonly */
  10428. int weakRefs;
  10429. };
  10430. class UIElement
  10431. {
  10432. // Methods:
  10433. void AddChild(UIElement);
  10434. void ApplyAttributes();
  10435. void BringToFront();
  10436. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10437. void DisableLayoutUpdate();
  10438. IntVector2 ElementToScreen(const IntVector2&);
  10439. void EnableLayoutUpdate();
  10440. uint FindChild(UIElement) const;
  10441. Variant GetAttribute(const String&) const;
  10442. ValueAnimation GetAttributeAnimation(const String&) const;
  10443. float GetAttributeAnimationSpeed(const String&) const;
  10444. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10445. Variant GetAttributeDefault(const String&) const;
  10446. UIElement GetChild(const String&, bool = false) const;
  10447. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10448. Array<UIElement> GetChildren(bool = false) const;
  10449. UIElement GetElementEventSender() const;
  10450. uint GetNumChildren(bool) const;
  10451. void InsertChild(uint, UIElement);
  10452. bool IsInside(IntVector2, bool);
  10453. bool IsInsideCombined(IntVector2, bool);
  10454. bool Load(File, bool = false);
  10455. bool Load(VectorBuffer&, bool = false);
  10456. bool LoadChildXML(XMLFile, XMLFile = null);
  10457. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10458. bool LoadXML(File);
  10459. bool LoadXML(VectorBuffer&);
  10460. bool LoadXML(XMLFile, XMLFile);
  10461. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10462. bool LoadXML(const XMLElement&, bool = false);
  10463. void MarkNetworkUpdate() const;
  10464. void Remove();
  10465. void RemoveAllChildren();
  10466. void RemoveChild(UIElement, uint = 0);
  10467. void RemoveChild(uint);
  10468. void RemoveInstanceDefault();
  10469. void ResetDeepEnabled();
  10470. void ResetToDefault();
  10471. bool Save(File) const;
  10472. bool Save(VectorBuffer&) const;
  10473. bool SaveXML(File);
  10474. bool SaveXML(VectorBuffer&);
  10475. bool SaveXML(XMLElement&) const;
  10476. IntVector2 ScreenToElement(const IntVector2&);
  10477. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10478. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10479. bool SetAttribute(const String&, const Variant&);
  10480. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10481. void SetAttributeAnimationSpeed(const String&, float);
  10482. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10483. void SetDeepEnabled(bool);
  10484. void SetEnabledRecursive(bool);
  10485. void SetFixedHeight(int);
  10486. void SetFixedSize(int, int);
  10487. void SetFixedWidth(int);
  10488. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10489. void SetMaxSize(int, int);
  10490. void SetMinSize(int, int);
  10491. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10492. void SetPosition(int, int);
  10493. void SetSize(int, int);
  10494. bool SetStyle(const String&, XMLFile = null);
  10495. bool SetStyle(const XMLElement&);
  10496. bool SetStyleAuto(XMLFile = null);
  10497. void UpdateLayout();
  10498. const Variant& GetVar(const StringHash&);
  10499. // Properties:
  10500. bool animationEnabled;
  10501. /* readonly */
  10502. Array<Variant> attributeDefaults;
  10503. /* readonly */
  10504. Array<AttributeInfo> attributeInfos;
  10505. Array<Variant> attributes;
  10506. /* readonly */
  10507. StringHash baseType;
  10508. bool bringToBack;
  10509. bool bringToFront;
  10510. /* readonly */
  10511. String category;
  10512. /* readonly */
  10513. IntVector2 childOffset;
  10514. /* readonly */
  10515. Array<UIElement> children;
  10516. IntRect clipBorder;
  10517. bool clipChildren;
  10518. /* writeonly */
  10519. Color color;
  10520. /* readonly */
  10521. bool colorGradient;
  10522. Array<Color> colors;
  10523. /* readonly */
  10524. IntRect combinedScreenRect;
  10525. XMLFile defaultStyle;
  10526. /* readonly */
  10527. float derivedOpacity;
  10528. /* readonly */
  10529. uint dragButtonCombo;
  10530. /* readonly */
  10531. int dragButtonCount;
  10532. uint dragDropMode;
  10533. bool editable;
  10534. bool elementEventSender;
  10535. bool enabled;
  10536. /* readonly */
  10537. bool enabledSelf;
  10538. /* readonly */
  10539. bool fixedHeight;
  10540. /* readonly */
  10541. bool fixedSize;
  10542. /* readonly */
  10543. bool fixedWidth;
  10544. bool focus;
  10545. FocusMode focusMode;
  10546. int height;
  10547. HorizontalAlignment horizontalAlignment;
  10548. /* readonly */
  10549. bool hovering;
  10550. int indent;
  10551. int indentSpacing;
  10552. /* readonly */
  10553. int indentWidth;
  10554. bool internal;
  10555. IntRect layoutBorder;
  10556. Vector2 layoutFlexScale;
  10557. LayoutMode layoutMode;
  10558. int layoutSpacing;
  10559. int maxHeight;
  10560. IntVector2 maxSize;
  10561. int maxWidth;
  10562. int minHeight;
  10563. IntVector2 minSize;
  10564. int minWidth;
  10565. String name;
  10566. /* readonly */
  10567. uint numAllChildren;
  10568. /* readonly */
  10569. uint numAttributes;
  10570. /* readonly */
  10571. uint numChildren;
  10572. ObjectAnimation objectAnimation;
  10573. float opacity;
  10574. UIElement parent;
  10575. IntVector2 position;
  10576. int priority;
  10577. /* readonly */
  10578. int refs;
  10579. /* readonly */
  10580. UIElement root;
  10581. /* readonly */
  10582. IntVector2 screenPosition;
  10583. bool selected;
  10584. IntVector2 size;
  10585. bool sortChildren;
  10586. String style;
  10587. bool temporary;
  10588. TraversalMode traversalMode;
  10589. /* readonly */
  10590. StringHash type;
  10591. /* readonly */
  10592. String typeName;
  10593. bool useDerivedOpacity;
  10594. /* readonly */
  10595. VariantMap vars;
  10596. VerticalAlignment verticalAlignment;
  10597. bool visible;
  10598. /* readonly */
  10599. int weakRefs;
  10600. int width;
  10601. };
  10602. class ValueAnimation
  10603. {
  10604. // Methods:
  10605. bool Load(File);
  10606. bool Load(VectorBuffer&);
  10607. bool Save(File) const;
  10608. bool Save(VectorBuffer&) const;
  10609. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10610. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  10611. void SetKeyFrame(float, const Variant&);
  10612. // Properties:
  10613. /* readonly */
  10614. StringHash baseType;
  10615. /* readonly */
  10616. String category;
  10617. InterpMethod interpolationMethod;
  10618. /* readonly */
  10619. uint memoryUse;
  10620. String name;
  10621. /* readonly */
  10622. int refs;
  10623. float splineTension;
  10624. /* readonly */
  10625. StringHash type;
  10626. /* readonly */
  10627. String typeName;
  10628. /* readonly */
  10629. uint useTimer;
  10630. VariantType valueType;
  10631. /* readonly */
  10632. int weakRefs;
  10633. };
  10634. class Variant
  10635. {
  10636. // Methods:
  10637. void Clear();
  10638. const Color& GetColor() const;
  10639. void FromString(VariantType, const String&);
  10640. void FromString(const String&, const String&);
  10641. bool GetBool() const;
  10642. VectorBuffer GetBuffer() const;
  10643. float GetFloat() const;
  10644. int GetInt() const;
  10645. RefCounted GetPtr() const;
  10646. ScriptObject GetScriptObject() const;
  10647. StringHash GetStringHash() const;
  10648. uint GetUInt() const;
  10649. Array<Variant> GetVariantVector() const;
  10650. const IntRect& GetIntRect() const;
  10651. const IntVector2& GetIntVector2() const;
  10652. const Matrix3& GetMatrix3() const;
  10653. const Matrix3x4& GetMatrix3x4() const;
  10654. const Matrix4& GetMatrix4() const;
  10655. const Quaternion& GetQuaternion() const;
  10656. const ResourceRef& GetResourceRef() const;
  10657. const ResourceRefList& GetResourceRefList() const;
  10658. const String& GetString() const;
  10659. String ToString() const;
  10660. const VariantMap& GetVariantMap() const;
  10661. const Vector2& GetVector2() const;
  10662. const Vector3& GetVector3() const;
  10663. const Vector4& GetVector4() const;
  10664. // Properties:
  10665. /* readonly */
  10666. bool empty;
  10667. /* readonly */
  10668. VariantType type;
  10669. /* readonly */
  10670. String typeName;
  10671. /* readonly */
  10672. bool zero;
  10673. };
  10674. class VariantMap
  10675. {
  10676. // Methods:
  10677. void Clear();
  10678. bool Contains(StringHash) const;
  10679. bool Contains(const String&) const;
  10680. bool Erase(StringHash);
  10681. bool Erase(const String&);
  10682. // Properties:
  10683. /* readonly */
  10684. Array<StringHash> keys;
  10685. /* readonly */
  10686. uint length;
  10687. /* readonly */
  10688. Array<Variant> values;
  10689. };
  10690. class Vector2
  10691. {
  10692. // Methods:
  10693. float AbsDotProduct(const Vector2&) const;
  10694. float DotProduct(const Vector2&) const;
  10695. bool Equals(const Vector2&) const;
  10696. bool IsNaN() const;
  10697. Vector2 Lerp(const Vector2&, float) const;
  10698. void Normalize();
  10699. Vector2 Normalized() const;
  10700. String ToString() const;
  10701. // Properties:
  10702. /* readonly */
  10703. Array<float> data;
  10704. /* readonly */
  10705. float length;
  10706. /* readonly */
  10707. float lengthSquared;
  10708. float x;
  10709. float y;
  10710. };
  10711. class Vector3
  10712. {
  10713. // Methods:
  10714. float AbsDotProduct(const Vector3&) const;
  10715. float Angle(const Vector3&) const;
  10716. Vector3 CrossProduct(const Vector3&) const;
  10717. float DotProduct(const Vector3&) const;
  10718. bool Equals(const Vector3&) const;
  10719. bool IsNaN() const;
  10720. Vector3 Lerp(const Vector3&, float) const;
  10721. void Normalize();
  10722. Vector3 Normalized() const;
  10723. String ToString() const;
  10724. // Properties:
  10725. /* readonly */
  10726. Array<float> data;
  10727. /* readonly */
  10728. float length;
  10729. /* readonly */
  10730. float lengthSquared;
  10731. float x;
  10732. float y;
  10733. float z;
  10734. };
  10735. class Vector4
  10736. {
  10737. // Methods:
  10738. float AbsDotProduct(const Vector4&) const;
  10739. float DotProduct(const Vector4&) const;
  10740. bool Equals(const Vector4&) const;
  10741. bool IsNaN() const;
  10742. Vector4 Lerp(const Vector4&, float) const;
  10743. String ToString() const;
  10744. // Properties:
  10745. /* readonly */
  10746. Array<float> data;
  10747. float w;
  10748. float x;
  10749. float y;
  10750. float z;
  10751. };
  10752. class VectorBuffer
  10753. {
  10754. // Methods:
  10755. void Clear();
  10756. Array<uint8> Read(uint);
  10757. bool ReadBool();
  10758. BoundingBox ReadBoundingBox();
  10759. int8 ReadByte();
  10760. Color ReadColor();
  10761. String ReadFileID();
  10762. float ReadFloat();
  10763. int ReadInt();
  10764. IntRect ReadIntRect();
  10765. IntVector2 ReadIntVector2();
  10766. String ReadLine();
  10767. Matrix3 ReadMatrix3();
  10768. Matrix3x4 ReadMatrix3x4();
  10769. Matrix4 ReadMatrix4();
  10770. uint ReadNetID();
  10771. Quaternion ReadPackedQuaternion();
  10772. Vector3 ReadPackedVector3(float);
  10773. Quaternion ReadQuaternion();
  10774. int16 ReadShort();
  10775. String ReadString();
  10776. StringHash ReadStringHash();
  10777. uint8 ReadUByte();
  10778. uint ReadUInt();
  10779. uint16 ReadUShort();
  10780. uint ReadVLE();
  10781. Variant ReadVariant();
  10782. VariantMap ReadVariantMap();
  10783. Vector2 ReadVector2();
  10784. Vector3 ReadVector3();
  10785. Vector4 ReadVector4();
  10786. void Resize(uint);
  10787. uint Seek(uint);
  10788. void SetData(Deserializer, uint);
  10789. uint Write(Array<uint8>);
  10790. bool WriteBool(bool);
  10791. bool WriteBoundingBox(const BoundingBox&);
  10792. bool WriteByte(int8);
  10793. bool WriteColor(const Color&);
  10794. bool WriteFileID(const String&);
  10795. bool WriteFloat(float);
  10796. bool WriteInt(int);
  10797. bool WriteIntRect(const IntRect&);
  10798. bool WriteIntVector2(const IntVector2&);
  10799. bool WriteLine(const String&);
  10800. bool WriteMatrix3(const Matrix3&);
  10801. bool WriteMatrix3x4(const Matrix3x4&);
  10802. bool WriteMatrix4(const Matrix4&);
  10803. bool WriteNetID(uint);
  10804. bool WritePackedQuaternion(const Quaternion&);
  10805. bool WritePackedVector3(const Vector3&, float);
  10806. bool WriteQuaternion(const Quaternion&);
  10807. bool WriteShort(int16);
  10808. bool WriteString(const String&);
  10809. bool WriteStringHash(const StringHash&);
  10810. bool WriteUByte(uint8);
  10811. bool WriteUInt(uint);
  10812. bool WriteUShort(uint16);
  10813. bool WriteVLE(uint);
  10814. bool WriteVariant(const Variant&);
  10815. bool WriteVariantMap(const VariantMap&);
  10816. bool WriteVector2(const Vector2&);
  10817. bool WriteVector3(const Vector3&);
  10818. bool WriteVector4(const Vector4&);
  10819. // Properties:
  10820. /* readonly */
  10821. uint checksum;
  10822. /* readonly */
  10823. bool eof;
  10824. /* readonly */
  10825. String name;
  10826. /* readonly */
  10827. uint position;
  10828. /* readonly */
  10829. uint size;
  10830. };
  10831. class View3D
  10832. {
  10833. // Methods:
  10834. void AddChild(UIElement);
  10835. void ApplyAttributes();
  10836. void BringToFront();
  10837. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10838. void DisableLayoutUpdate();
  10839. IntVector2 ElementToScreen(const IntVector2&);
  10840. void EnableLayoutUpdate();
  10841. uint FindChild(UIElement) const;
  10842. Variant GetAttribute(const String&) const;
  10843. ValueAnimation GetAttributeAnimation(const String&) const;
  10844. float GetAttributeAnimationSpeed(const String&) const;
  10845. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10846. Variant GetAttributeDefault(const String&) const;
  10847. UIElement GetChild(const String&, bool = false) const;
  10848. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10849. Array<UIElement> GetChildren(bool = false) const;
  10850. UIElement GetElementEventSender() const;
  10851. uint GetNumChildren(bool) const;
  10852. void InsertChild(uint, UIElement);
  10853. bool IsInside(IntVector2, bool);
  10854. bool IsInsideCombined(IntVector2, bool);
  10855. bool Load(File, bool = false);
  10856. bool Load(VectorBuffer&, bool = false);
  10857. bool LoadChildXML(XMLFile, XMLFile = null);
  10858. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10859. bool LoadXML(File);
  10860. bool LoadXML(VectorBuffer&);
  10861. bool LoadXML(XMLFile, XMLFile);
  10862. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10863. bool LoadXML(const XMLElement&, bool = false);
  10864. void MarkNetworkUpdate() const;
  10865. void QueueUpdate();
  10866. void Remove();
  10867. void RemoveAllChildren();
  10868. void RemoveChild(UIElement, uint = 0);
  10869. void RemoveChild(uint);
  10870. void RemoveInstanceDefault();
  10871. void ResetDeepEnabled();
  10872. void ResetToDefault();
  10873. bool Save(File) const;
  10874. bool Save(VectorBuffer&) const;
  10875. bool SaveXML(File);
  10876. bool SaveXML(VectorBuffer&);
  10877. bool SaveXML(XMLElement&) const;
  10878. IntVector2 ScreenToElement(const IntVector2&);
  10879. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10880. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10881. bool SetAttribute(const String&, const Variant&);
  10882. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10883. void SetAttributeAnimationSpeed(const String&, float);
  10884. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10885. void SetDeepEnabled(bool);
  10886. void SetEnabledRecursive(bool);
  10887. void SetFixedHeight(int);
  10888. void SetFixedSize(int, int);
  10889. void SetFixedWidth(int);
  10890. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10891. void SetMaxSize(int, int);
  10892. void SetMinSize(int, int);
  10893. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10894. void SetPosition(int, int);
  10895. void SetSize(int, int);
  10896. bool SetStyle(const String&, XMLFile = null);
  10897. bool SetStyle(const XMLElement&);
  10898. bool SetStyleAuto(XMLFile = null);
  10899. void SetView(Scene, Camera, bool = true);
  10900. void UpdateLayout();
  10901. const Variant& GetVar(const StringHash&);
  10902. // Properties:
  10903. bool animationEnabled;
  10904. /* readonly */
  10905. Array<Variant> attributeDefaults;
  10906. /* readonly */
  10907. Array<AttributeInfo> attributeInfos;
  10908. Array<Variant> attributes;
  10909. bool autoUpdate;
  10910. /* readonly */
  10911. StringHash baseType;
  10912. bool bringToBack;
  10913. bool bringToFront;
  10914. /* readonly */
  10915. Node cameraNode;
  10916. /* readonly */
  10917. String category;
  10918. /* readonly */
  10919. IntVector2 childOffset;
  10920. /* readonly */
  10921. Array<UIElement> children;
  10922. IntRect clipBorder;
  10923. bool clipChildren;
  10924. /* writeonly */
  10925. Color color;
  10926. /* readonly */
  10927. bool colorGradient;
  10928. Array<Color> colors;
  10929. /* readonly */
  10930. IntRect combinedScreenRect;
  10931. XMLFile defaultStyle;
  10932. /* readonly */
  10933. Texture2D depthTexture;
  10934. /* readonly */
  10935. float derivedOpacity;
  10936. /* readonly */
  10937. uint dragButtonCombo;
  10938. /* readonly */
  10939. int dragButtonCount;
  10940. uint dragDropMode;
  10941. bool editable;
  10942. bool elementEventSender;
  10943. bool enabled;
  10944. /* readonly */
  10945. bool enabledSelf;
  10946. /* readonly */
  10947. bool fixedHeight;
  10948. bool fixedHeightResizing;
  10949. /* readonly */
  10950. bool fixedSize;
  10951. /* readonly */
  10952. bool fixedWidth;
  10953. bool fixedWidthResizing;
  10954. bool focus;
  10955. FocusMode focusMode;
  10956. uint format;
  10957. int height;
  10958. HorizontalAlignment horizontalAlignment;
  10959. /* readonly */
  10960. bool hovering;
  10961. int indent;
  10962. int indentSpacing;
  10963. /* readonly */
  10964. int indentWidth;
  10965. bool internal;
  10966. IntRect layoutBorder;
  10967. Vector2 layoutFlexScale;
  10968. LayoutMode layoutMode;
  10969. int layoutSpacing;
  10970. int maxHeight;
  10971. IntVector2 maxSize;
  10972. int maxWidth;
  10973. int minHeight;
  10974. IntVector2 minSize;
  10975. int minWidth;
  10976. bool modal;
  10977. bool modalAutoDismiss;
  10978. Color modalFrameColor;
  10979. IntVector2 modalFrameSize;
  10980. Color modalShadeColor;
  10981. bool movable;
  10982. String name;
  10983. /* readonly */
  10984. uint numAllChildren;
  10985. /* readonly */
  10986. uint numAttributes;
  10987. /* readonly */
  10988. uint numChildren;
  10989. ObjectAnimation objectAnimation;
  10990. float opacity;
  10991. UIElement parent;
  10992. IntVector2 position;
  10993. int priority;
  10994. /* readonly */
  10995. int refs;
  10996. /* readonly */
  10997. Texture2D renderTexture;
  10998. bool resizable;
  10999. IntRect resizeBorder;
  11000. /* readonly */
  11001. UIElement root;
  11002. /* readonly */
  11003. Scene scene;
  11004. /* readonly */
  11005. IntVector2 screenPosition;
  11006. bool selected;
  11007. IntVector2 size;
  11008. bool sortChildren;
  11009. String style;
  11010. bool temporary;
  11011. TraversalMode traversalMode;
  11012. /* readonly */
  11013. StringHash type;
  11014. /* readonly */
  11015. String typeName;
  11016. bool useDerivedOpacity;
  11017. /* readonly */
  11018. VariantMap vars;
  11019. VerticalAlignment verticalAlignment;
  11020. /* readonly */
  11021. Viewport viewport;
  11022. bool visible;
  11023. /* readonly */
  11024. int weakRefs;
  11025. int width;
  11026. };
  11027. class Viewport
  11028. {
  11029. // Methods:
  11030. Ray GetScreenRay(int, int) const;
  11031. Vector3 ScreenToWorldPoint(int, int, float) const;
  11032. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11033. void SetRenderPath(XMLFile);
  11034. Vector2 WorldToScreenPoint(const Vector3&) const;
  11035. // Properties:
  11036. /* readonly */
  11037. StringHash baseType;
  11038. Camera camera;
  11039. /* readonly */
  11040. String category;
  11041. bool drawDebug;
  11042. IntRect rect;
  11043. /* readonly */
  11044. int refs;
  11045. RenderPath renderPath;
  11046. Scene scene;
  11047. /* readonly */
  11048. StringHash type;
  11049. /* readonly */
  11050. String typeName;
  11051. /* readonly */
  11052. int weakRefs;
  11053. };
  11054. class WeakHandle
  11055. {
  11056. // Methods:
  11057. RefCounted Get() const;
  11058. // Properties:
  11059. /* readonly */
  11060. bool expired;
  11061. /* readonly */
  11062. int refs;
  11063. /* readonly */
  11064. int weakRefs;
  11065. };
  11066. class Window
  11067. {
  11068. // Methods:
  11069. void AddChild(UIElement);
  11070. void ApplyAttributes();
  11071. void BringToFront();
  11072. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11073. void DisableLayoutUpdate();
  11074. IntVector2 ElementToScreen(const IntVector2&);
  11075. void EnableLayoutUpdate();
  11076. uint FindChild(UIElement) const;
  11077. Variant GetAttribute(const String&) const;
  11078. ValueAnimation GetAttributeAnimation(const String&) const;
  11079. float GetAttributeAnimationSpeed(const String&) const;
  11080. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11081. Variant GetAttributeDefault(const String&) const;
  11082. UIElement GetChild(const String&, bool = false) const;
  11083. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11084. Array<UIElement> GetChildren(bool = false) const;
  11085. UIElement GetElementEventSender() const;
  11086. uint GetNumChildren(bool) const;
  11087. void InsertChild(uint, UIElement);
  11088. bool IsInside(IntVector2, bool);
  11089. bool IsInsideCombined(IntVector2, bool);
  11090. bool Load(File, bool = false);
  11091. bool Load(VectorBuffer&, bool = false);
  11092. bool LoadChildXML(XMLFile, XMLFile = null);
  11093. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11094. bool LoadXML(File);
  11095. bool LoadXML(VectorBuffer&);
  11096. bool LoadXML(XMLFile, XMLFile);
  11097. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11098. bool LoadXML(const XMLElement&, bool = false);
  11099. void MarkNetworkUpdate() const;
  11100. void Remove();
  11101. void RemoveAllChildren();
  11102. void RemoveChild(UIElement, uint = 0);
  11103. void RemoveChild(uint);
  11104. void RemoveInstanceDefault();
  11105. void ResetDeepEnabled();
  11106. void ResetToDefault();
  11107. bool Save(File) const;
  11108. bool Save(VectorBuffer&) const;
  11109. bool SaveXML(File);
  11110. bool SaveXML(VectorBuffer&);
  11111. bool SaveXML(XMLElement&) const;
  11112. IntVector2 ScreenToElement(const IntVector2&);
  11113. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11114. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11115. bool SetAttribute(const String&, const Variant&);
  11116. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11117. void SetAttributeAnimationSpeed(const String&, float);
  11118. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11119. void SetDeepEnabled(bool);
  11120. void SetEnabledRecursive(bool);
  11121. void SetFixedHeight(int);
  11122. void SetFixedSize(int, int);
  11123. void SetFixedWidth(int);
  11124. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11125. void SetMaxSize(int, int);
  11126. void SetMinSize(int, int);
  11127. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11128. void SetPosition(int, int);
  11129. void SetSize(int, int);
  11130. bool SetStyle(const String&, XMLFile = null);
  11131. bool SetStyle(const XMLElement&);
  11132. bool SetStyleAuto(XMLFile = null);
  11133. void UpdateLayout();
  11134. const Variant& GetVar(const StringHash&);
  11135. // Properties:
  11136. bool animationEnabled;
  11137. /* readonly */
  11138. Array<Variant> attributeDefaults;
  11139. /* readonly */
  11140. Array<AttributeInfo> attributeInfos;
  11141. Array<Variant> attributes;
  11142. /* readonly */
  11143. StringHash baseType;
  11144. bool bringToBack;
  11145. bool bringToFront;
  11146. /* readonly */
  11147. String category;
  11148. /* readonly */
  11149. IntVector2 childOffset;
  11150. /* readonly */
  11151. Array<UIElement> children;
  11152. IntRect clipBorder;
  11153. bool clipChildren;
  11154. /* writeonly */
  11155. Color color;
  11156. /* readonly */
  11157. bool colorGradient;
  11158. Array<Color> colors;
  11159. /* readonly */
  11160. IntRect combinedScreenRect;
  11161. XMLFile defaultStyle;
  11162. /* readonly */
  11163. float derivedOpacity;
  11164. /* readonly */
  11165. uint dragButtonCombo;
  11166. /* readonly */
  11167. int dragButtonCount;
  11168. uint dragDropMode;
  11169. bool editable;
  11170. bool elementEventSender;
  11171. bool enabled;
  11172. /* readonly */
  11173. bool enabledSelf;
  11174. /* readonly */
  11175. bool fixedHeight;
  11176. bool fixedHeightResizing;
  11177. /* readonly */
  11178. bool fixedSize;
  11179. /* readonly */
  11180. bool fixedWidth;
  11181. bool fixedWidthResizing;
  11182. bool focus;
  11183. FocusMode focusMode;
  11184. int height;
  11185. HorizontalAlignment horizontalAlignment;
  11186. /* readonly */
  11187. bool hovering;
  11188. int indent;
  11189. int indentSpacing;
  11190. /* readonly */
  11191. int indentWidth;
  11192. bool internal;
  11193. IntRect layoutBorder;
  11194. Vector2 layoutFlexScale;
  11195. LayoutMode layoutMode;
  11196. int layoutSpacing;
  11197. int maxHeight;
  11198. IntVector2 maxSize;
  11199. int maxWidth;
  11200. int minHeight;
  11201. IntVector2 minSize;
  11202. int minWidth;
  11203. bool modal;
  11204. bool modalAutoDismiss;
  11205. Color modalFrameColor;
  11206. IntVector2 modalFrameSize;
  11207. Color modalShadeColor;
  11208. bool movable;
  11209. String name;
  11210. /* readonly */
  11211. uint numAllChildren;
  11212. /* readonly */
  11213. uint numAttributes;
  11214. /* readonly */
  11215. uint numChildren;
  11216. ObjectAnimation objectAnimation;
  11217. float opacity;
  11218. UIElement parent;
  11219. IntVector2 position;
  11220. int priority;
  11221. /* readonly */
  11222. int refs;
  11223. bool resizable;
  11224. IntRect resizeBorder;
  11225. /* readonly */
  11226. UIElement root;
  11227. /* readonly */
  11228. IntVector2 screenPosition;
  11229. bool selected;
  11230. IntVector2 size;
  11231. bool sortChildren;
  11232. String style;
  11233. bool temporary;
  11234. TraversalMode traversalMode;
  11235. /* readonly */
  11236. StringHash type;
  11237. /* readonly */
  11238. String typeName;
  11239. bool useDerivedOpacity;
  11240. /* readonly */
  11241. VariantMap vars;
  11242. VerticalAlignment verticalAlignment;
  11243. bool visible;
  11244. /* readonly */
  11245. int weakRefs;
  11246. int width;
  11247. };
  11248. class XMLElement
  11249. {
  11250. // Methods:
  11251. XMLElement CreateChild(const String&);
  11252. String GetAttribute(const String& = String ( )) const;
  11253. String GetAttributeLower(const String&) const;
  11254. Array<String> GetAttributeNames() const;
  11255. String GetAttributeUpper(const String&) const;
  11256. bool GetBool(const String&) const;
  11257. BoundingBox GetBoundingBox() const;
  11258. XMLElement GetChild(const String& = String ( )) const;
  11259. Color GetColor(const String&) const;
  11260. float GetFloat(const String&) const;
  11261. int GetInt(const String&) const;
  11262. Matrix3 GetMatrix3(const String&) const;
  11263. Matrix3x4 GetMatrix3x4(const String&) const;
  11264. Matrix4 GetMatrix4(const String&) const;
  11265. XMLElement GetNext(const String& = String ( )) const;
  11266. Quaternion GetQuaternion(const String&) const;
  11267. ResourceRef GetResourceRef() const;
  11268. ResourceRefList GetResourceRefList() const;
  11269. uint GetUInt(const String&) const;
  11270. String GetValue() const;
  11271. Variant GetVariant() const;
  11272. VariantMap GetVariantMap() const;
  11273. Array<Variant> GetVariantVector() const;
  11274. Vector2 GetVector2(const String&) const;
  11275. Vector3 GetVector3(const String&) const;
  11276. Vector4 GetVector4(const String&) const;
  11277. Variant GetVectorVariant(const String&) const;
  11278. bool HasAttribute(const String&) const;
  11279. bool HasChild(const String&) const;
  11280. bool RemoveAttribute(const String& = String ( ));
  11281. bool RemoveChild(const String&);
  11282. bool RemoveChild(const XMLElement&);
  11283. bool RemoveChildren(const String& = String ( ));
  11284. XPathResultSet Select(const String&);
  11285. XPathResultSet SelectPrepared(const XPathQuery&);
  11286. XMLElement SelectSingle(const String&);
  11287. XMLElement SelectSinglePrepared(const XPathQuery&);
  11288. bool SetAttribute(const String&);
  11289. bool SetAttribute(const String&, const String&);
  11290. bool SetBool(const String&, bool);
  11291. bool SetBoundingBox(const BoundingBox&);
  11292. bool SetColor(const String&, const Color&);
  11293. bool SetFloat(const String&, float);
  11294. bool SetInt(const String&, int);
  11295. bool SetMatrix3(const String&, const Matrix3&);
  11296. bool SetMatrix3x4(const String&, const Matrix3x4&);
  11297. bool SetMatrix4(const String&, const Matrix4&);
  11298. bool SetQuaternion(const String&, const Quaternion&);
  11299. bool SetResourceRef(const String&, const ResourceRef&);
  11300. bool SetResourceRefList(const String&, const ResourceRefList&);
  11301. bool SetUInt(const String&, uint);
  11302. bool SetValue(const String&);
  11303. bool SetVariant(const Variant&);
  11304. bool SetVariantMap(const VariantMap&);
  11305. bool SetVariantVector(Array<Variant>);
  11306. bool SetVector2(const String&, const Vector2&);
  11307. bool SetVector3(const String&, const Vector3&);
  11308. bool SetVector4(const String&, const Vector4&);
  11309. bool SetVectorVariant(const String&, const Variant&);
  11310. // Properties:
  11311. /* readonly */
  11312. XMLFile file;
  11313. /* readonly */
  11314. bool isNull;
  11315. /* readonly */
  11316. String name;
  11317. /* readonly */
  11318. XMLElement nextResult;
  11319. /* readonly */
  11320. bool notNull;
  11321. /* readonly */
  11322. uint numAttributes;
  11323. /* readonly */
  11324. XMLElement parent;
  11325. String value;
  11326. };
  11327. class XMLFile
  11328. {
  11329. // Methods:
  11330. XMLElement CreateRoot(const String&);
  11331. bool FromString(const String&);
  11332. XMLElement GetRoot(const String& = String ( ));
  11333. bool Load(File);
  11334. bool Load(VectorBuffer&);
  11335. void Patch(XMLElement);
  11336. void Patch(XMLFile);
  11337. bool Save(File) const;
  11338. bool Save(VectorBuffer&) const;
  11339. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11340. String ToString() const;
  11341. // Properties:
  11342. /* readonly */
  11343. StringHash baseType;
  11344. /* readonly */
  11345. String category;
  11346. /* readonly */
  11347. uint memoryUse;
  11348. String name;
  11349. /* readonly */
  11350. int refs;
  11351. /* readonly */
  11352. XMLElement root;
  11353. /* readonly */
  11354. StringHash type;
  11355. /* readonly */
  11356. String typeName;
  11357. /* readonly */
  11358. uint useTimer;
  11359. /* readonly */
  11360. int weakRefs;
  11361. };
  11362. class XPathQuery
  11363. {
  11364. // Methods:
  11365. void Bind();
  11366. void Clear();
  11367. XPathResultSet Evaluate(XMLElement);
  11368. bool EvaluateToBool(XMLElement);
  11369. float EvaluateToFloat(XMLElement);
  11370. String EvaluateToString(XMLElement);
  11371. bool SetQuery(const String&, const String& = String ( ), bool = true);
  11372. bool SetVariable(const String&, bool);
  11373. bool SetVariable(const String&, const String&);
  11374. bool SetVariable(const String&, const XPathResultSet&);
  11375. bool SetVariable(const String&, float);
  11376. // Properties:
  11377. String query;
  11378. };
  11379. class XPathResultSet
  11380. {
  11381. // Properties:
  11382. /* readonly */
  11383. bool empty;
  11384. /* readonly */
  11385. XMLElement firstResult;
  11386. /* readonly */
  11387. uint size;
  11388. };
  11389. class Zone
  11390. {
  11391. // Methods:
  11392. void ApplyAttributes();
  11393. void DrawDebugGeometry(DebugRenderer, bool);
  11394. Variant GetAttribute(const String&) const;
  11395. ValueAnimation GetAttributeAnimation(const String&) const;
  11396. float GetAttributeAnimationSpeed(const String&) const;
  11397. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11398. Variant GetAttributeDefault(const String&) const;
  11399. bool IsInView(Camera) const;
  11400. bool Load(File, bool = false);
  11401. bool Load(VectorBuffer&, bool = false);
  11402. bool LoadXML(const XMLElement&, bool = false);
  11403. void MarkNetworkUpdate() const;
  11404. void Remove();
  11405. void RemoveInstanceDefault();
  11406. void ResetToDefault();
  11407. bool Save(File) const;
  11408. bool Save(VectorBuffer&) const;
  11409. bool SaveXML(XMLElement&) const;
  11410. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11411. bool SetAttribute(const String&, const Variant&);
  11412. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11413. void SetAttributeAnimationSpeed(const String&, float);
  11414. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11415. // Properties:
  11416. Color ambientColor;
  11417. /* readonly */
  11418. Color ambientEndColor;
  11419. bool ambientGradient;
  11420. /* readonly */
  11421. Color ambientStartColor;
  11422. bool animationEnabled;
  11423. /* readonly */
  11424. Array<Variant> attributeDefaults;
  11425. /* readonly */
  11426. Array<AttributeInfo> attributeInfos;
  11427. Array<Variant> attributes;
  11428. /* readonly */
  11429. StringHash baseType;
  11430. BoundingBox boundingBox;
  11431. bool castShadows;
  11432. /* readonly */
  11433. String category;
  11434. float drawDistance;
  11435. bool enabled;
  11436. /* readonly */
  11437. bool enabledEffective;
  11438. Color fogColor;
  11439. float fogEnd;
  11440. float fogHeight;
  11441. float fogHeightScale;
  11442. float fogStart;
  11443. bool heightFog;
  11444. /* readonly */
  11445. uint id;
  11446. /* readonly */
  11447. bool inView;
  11448. /* readonly */
  11449. Matrix3x4 inverseWorldTransform;
  11450. uint lightMask;
  11451. float lodBias;
  11452. uint maxLights;
  11453. /* readonly */
  11454. Node node;
  11455. /* readonly */
  11456. uint numAttributes;
  11457. ObjectAnimation objectAnimation;
  11458. bool occludee;
  11459. bool occluder;
  11460. bool override;
  11461. int priority;
  11462. /* readonly */
  11463. int refs;
  11464. float shadowDistance;
  11465. uint shadowMask;
  11466. bool temporary;
  11467. /* readonly */
  11468. StringHash type;
  11469. /* readonly */
  11470. String typeName;
  11471. uint viewMask;
  11472. /* readonly */
  11473. int weakRefs;
  11474. /* readonly */
  11475. BoundingBox worldBoundingBox;
  11476. uint zoneMask;
  11477. Texture zoneTexture;
  11478. };
  11479. // Enumerations
  11480. enum BlendMode
  11481. {
  11482. BLEND_REPLACE,
  11483. BLEND_ADD,
  11484. BLEND_MULTIPLY,
  11485. BLEND_ALPHA,
  11486. BLEND_ADDALPHA,
  11487. BLEND_PREMULALPHA,
  11488. BLEND_INVDESTALPHA,
  11489. BLEND_SUBTRACT,
  11490. BLEND_SUBTRACTALPHA,
  11491. };
  11492. enum BodyType2D
  11493. {
  11494. BT_STATIC,
  11495. BT_DYNAMIC,
  11496. BT_KINEMATIC,
  11497. };
  11498. enum CollisionEventMode
  11499. {
  11500. COLLISION_NEVER,
  11501. COLLISION_ACTIVE,
  11502. COLLISION_ALWAYS,
  11503. };
  11504. enum CompareMode
  11505. {
  11506. CMP_ALWAYS,
  11507. CMP_EQUAL,
  11508. CMP_NOTEQUAL,
  11509. CMP_LESS,
  11510. CMP_LESSEQUAL,
  11511. CMP_GREATER,
  11512. CMP_GREATEREQUAL,
  11513. };
  11514. enum CompressedFormat
  11515. {
  11516. CF_NONE,
  11517. CF_RGBA,
  11518. CF_DXT1,
  11519. CF_DXT3,
  11520. CF_DXT5,
  11521. CF_ETC1,
  11522. CF_PVRTC_RGB_2BPP,
  11523. CF_PVRTC_RGBA_2BPP,
  11524. CF_PVRTC_RGB_4BPP,
  11525. CF_PVRTC_RGBA_4BPP,
  11526. };
  11527. enum ConstraintType
  11528. {
  11529. CONSTRAINT_POINT,
  11530. CONSTRAINT_HINGE,
  11531. CONSTRAINT_SLIDER,
  11532. CONSTRAINT_CONETWIST,
  11533. };
  11534. enum Corner
  11535. {
  11536. C_TOPLEFT,
  11537. C_TOPRIGHT,
  11538. C_BOTTOMLEFT,
  11539. C_BOTTOMRIGHT,
  11540. };
  11541. enum CreateMode
  11542. {
  11543. REPLICATED,
  11544. LOCAL,
  11545. };
  11546. enum CubeMapFace
  11547. {
  11548. FACE_POSITIVE_X,
  11549. FACE_NEGATIVE_X,
  11550. FACE_POSITIVE_Y,
  11551. FACE_NEGATIVE_Y,
  11552. FACE_POSITIVE_Z,
  11553. FACE_NEGATIVE_Z,
  11554. };
  11555. enum CullMode
  11556. {
  11557. CULL_NONE,
  11558. CULL_CCW,
  11559. CULL_CW,
  11560. };
  11561. enum CursorShape
  11562. {
  11563. CS_NORMAL,
  11564. CS_IBEAM,
  11565. CS_CROSS,
  11566. CS_RESIZEVERTICAL,
  11567. CS_RESIZEDIAGONAL_TOPRIGHT,
  11568. CS_RESIZEHORIZONTAL,
  11569. CS_RESIZEDIAGONAL_TOPLEFT,
  11570. CS_RESIZE_ALL,
  11571. CS_ACCEPTDROP,
  11572. CS_REJECTDROP,
  11573. CS_BUSY,
  11574. CS_BUSY_ARROW,
  11575. };
  11576. enum DumpMode
  11577. {
  11578. DOXYGEN,
  11579. C_HEADER,
  11580. };
  11581. enum EmitterType
  11582. {
  11583. EMITTER_SPHERE,
  11584. EMITTER_BOX,
  11585. };
  11586. enum EmitterType2D
  11587. {
  11588. EMITTER_TYPE_GRAVITY,
  11589. EMITTER_TYPE_RADIAL,
  11590. };
  11591. enum FaceCameraMode
  11592. {
  11593. FC_NONE,
  11594. FC_ROTATE_XYZ,
  11595. FC_ROTATE_Y,
  11596. FC_LOOKAT_XYZ,
  11597. FC_LOOKAT_Y,
  11598. };
  11599. enum FileMode
  11600. {
  11601. FILE_READ,
  11602. FILE_WRITE,
  11603. FILE_READWRITE,
  11604. };
  11605. enum FillMode
  11606. {
  11607. FILL_SOLID,
  11608. FILL_WIREFRAME,
  11609. FILL_POINT,
  11610. };
  11611. enum FocusMode
  11612. {
  11613. FM_NOTFOCUSABLE,
  11614. FM_RESETFOCUS,
  11615. FM_FOCUSABLE,
  11616. FM_FOCUSABLE_DEFOCUSABLE,
  11617. };
  11618. enum HighlightMode
  11619. {
  11620. HM_NEVER,
  11621. HM_FOCUS,
  11622. HM_ALWAYS,
  11623. };
  11624. enum HorizontalAlignment
  11625. {
  11626. HA_LEFT,
  11627. HA_CENTER,
  11628. HA_RIGHT,
  11629. };
  11630. enum HttpRequestState
  11631. {
  11632. HTTP_INITIALIZING,
  11633. HTTP_ERROR,
  11634. HTTP_OPEN,
  11635. HTTP_CLOSED,
  11636. };
  11637. enum InterpMethod
  11638. {
  11639. IM_LINEAR,
  11640. IM_SPLINE,
  11641. };
  11642. enum InterpolationMode
  11643. {
  11644. BEZIER_CURVE,
  11645. };
  11646. enum Intersection
  11647. {
  11648. OUTSIDE,
  11649. INTERSECTS,
  11650. INSIDE,
  11651. };
  11652. enum JSONValueType
  11653. {
  11654. JSON_ANY,
  11655. JSON_OBJECT,
  11656. JSON_ARRAY,
  11657. };
  11658. enum LayoutMode
  11659. {
  11660. LM_FREE,
  11661. LM_HORIZONTAL,
  11662. LM_VERTICAL,
  11663. };
  11664. enum LightType
  11665. {
  11666. LIGHT_DIRECTIONAL,
  11667. LIGHT_SPOT,
  11668. LIGHT_POINT,
  11669. };
  11670. enum LoadMode
  11671. {
  11672. LOAD_RESOURCES_ONLY,
  11673. LOAD_SCENE,
  11674. LOAD_SCENE_AND_RESOURCES,
  11675. };
  11676. enum LoopMode2D
  11677. {
  11678. LM_DEFAULT,
  11679. LM_FORCE_LOOPED,
  11680. LM_FORCE_CLAMPED,
  11681. };
  11682. enum MouseMode
  11683. {
  11684. MM_ABSOLUTE,
  11685. MM_RELATIVE,
  11686. MM_WRAP,
  11687. };
  11688. enum Orientation
  11689. {
  11690. O_HORIZONTAL,
  11691. O_VERTICAL,
  11692. };
  11693. enum Orientation2D
  11694. {
  11695. O_ORTHOGONAL,
  11696. O_ISOMETRIC,
  11697. O_STAGGERED,
  11698. };
  11699. enum PassLightingMode
  11700. {
  11701. LIGHTING_UNLIT,
  11702. LIGHTING_PERVERTEX,
  11703. LIGHTING_PERPIXEL,
  11704. };
  11705. enum PrimitiveType
  11706. {
  11707. TRIANGLE_LIST,
  11708. LINE_LIST,
  11709. POINT_LIST,
  11710. TRIANGLE_STRIP,
  11711. LINE_STRIP,
  11712. TRIANGLE_FAN,
  11713. };
  11714. enum RayQueryLevel
  11715. {
  11716. RAY_AABB,
  11717. RAY_OBB,
  11718. RAY_TRIANGLE,
  11719. };
  11720. enum RenderCommandSortMode
  11721. {
  11722. SORT_FRONTTOBACK,
  11723. SORT_BACKTOFRONT,
  11724. };
  11725. enum RenderCommandType
  11726. {
  11727. CMD_NONE,
  11728. CMD_CLEAR,
  11729. CMD_SCENEPASS,
  11730. CMD_QUAD,
  11731. CMD_FORWARDLIGHTS,
  11732. CMD_LIGHTVOLUMES,
  11733. };
  11734. enum RenderSurfaceUpdateMode
  11735. {
  11736. SURFACE_MANUALUPDATE,
  11737. SURFACE_UPDATEVISIBLE,
  11738. SURFACE_UPDATEALWAYS,
  11739. };
  11740. enum RenderTargetSizeMode
  11741. {
  11742. SIZE_ABSOLUTE,
  11743. SIZE_VIEWPORTDIVISOR,
  11744. SIZE_VIEWPORTMULTIPLIER,
  11745. };
  11746. enum ShapeType
  11747. {
  11748. SHAPE_BOX,
  11749. SHAPE_SPHERE,
  11750. SHAPE_STATICPLANE,
  11751. SHAPE_CYLINDER,
  11752. SHAPE_CAPSULE,
  11753. SHAPE_CONE,
  11754. SHAPE_TRIANGLEMESH,
  11755. SHAPE_CONVEXHULL,
  11756. SHAPE_TERRAIN,
  11757. };
  11758. enum TextEffect
  11759. {
  11760. TE_NONE,
  11761. TE_SHADOW,
  11762. TE_STROKE,
  11763. };
  11764. enum TextureAddressMode
  11765. {
  11766. ADDRESS_WRAP,
  11767. ADDRESS_MIRROR,
  11768. ADDRESS_CLAMP,
  11769. ADDRESS_BORDER,
  11770. };
  11771. enum TextureCoordinate
  11772. {
  11773. COORD_U,
  11774. COORD_V,
  11775. COORD_W,
  11776. };
  11777. enum TextureFilterMode
  11778. {
  11779. FILTER_NEAREST,
  11780. FILTER_BILINEAR,
  11781. FILTER_TRILINEAR,
  11782. FILTER_ANISOTROPIC,
  11783. FILTER_DEFAULT,
  11784. };
  11785. enum TextureUnit
  11786. {
  11787. TU_DIFFUSE,
  11788. TU_NORMAL,
  11789. TU_SPECULAR,
  11790. TU_EMISSIVE,
  11791. TU_ENVIRONMENT,
  11792. TU_LIGHTRAMP,
  11793. TU_LIGHTSHAPE,
  11794. TU_SHADOWMAP,
  11795. TU_FACESELECT,
  11796. TU_INDIRECTION,
  11797. TU_ALBEDOBUFFER,
  11798. TU_NORMALBUFFER,
  11799. TU_DEPTHBUFFER,
  11800. TU_LIGHTBUFFER,
  11801. TU_VOLUMEMAP,
  11802. TU_ZONE,
  11803. MAX_MATERIAL_TEXTURE_UNITS,
  11804. MAX_NAMED_TEXTURE_UNITS,
  11805. MAX_TEXTURE_UNITS,
  11806. };
  11807. enum TextureUsage
  11808. {
  11809. TEXTURE_STATIC,
  11810. TEXTURE_DYNAMIC,
  11811. TEXTURE_RENDERTARGET,
  11812. TEXTURE_DEPTHSTENCIL,
  11813. };
  11814. enum TileMapLayerType2D
  11815. {
  11816. LT_TILE_LAYER,
  11817. LT_OBJECT_GROUP,
  11818. LT_IMAGE_LAYER,
  11819. LT_INVALID,
  11820. };
  11821. enum TileObjectType2D
  11822. {
  11823. OT_RECTANGLE,
  11824. OT_ELLIPSE,
  11825. OT_POLYGON,
  11826. OT_POLYLINE,
  11827. OT_TILE,
  11828. OT_INVALID,
  11829. };
  11830. enum TransformSpace
  11831. {
  11832. TS_LOCAL,
  11833. TS_PARENT,
  11834. TS_WORLD,
  11835. };
  11836. enum TraversalMode
  11837. {
  11838. TM_BREADTH_FIRST,
  11839. TM_DEPTH_FIRST,
  11840. };
  11841. enum VariantType
  11842. {
  11843. VAR_NONE,
  11844. VAR_INT,
  11845. VAR_BOOL,
  11846. VAR_FLOAT,
  11847. VAR_VECTOR2,
  11848. VAR_VECTOR3,
  11849. VAR_VECTOR4,
  11850. VAR_QUATERNION,
  11851. VAR_COLOR,
  11852. VAR_STRING,
  11853. VAR_BUFFER,
  11854. VAR_VOIDPTR,
  11855. VAR_RESOURCEREF,
  11856. VAR_RESOURCEREFLIST,
  11857. VAR_VARIANTVECTOR,
  11858. VAR_VARIANTMAP,
  11859. VAR_INTRECT,
  11860. VAR_INTVECTOR2,
  11861. VAR_PTR,
  11862. VAR_MATRIX3,
  11863. VAR_MATRIX3X4,
  11864. VAR_MATRIX4,
  11865. };
  11866. enum VerticalAlignment
  11867. {
  11868. VA_TOP,
  11869. VA_CENTER,
  11870. VA_BOTTOM,
  11871. };
  11872. enum WrapMode
  11873. {
  11874. WM_LOOP,
  11875. WM_ONCE,
  11876. WM_CLAMP,
  11877. };
  11878. // Global functions
  11879. float Abs(float);
  11880. float Acos(float);
  11881. String AddTrailingSlash(const String&);
  11882. float Asin(float);
  11883. float Atan(float);
  11884. float Atan2(float, float);
  11885. float Ceil(float);
  11886. float Clamp(float, float, float);
  11887. int Clamp(int, int, int);
  11888. void ClearDelayedExecute(const String& = String ( ));
  11889. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  11890. float Cos(float);
  11891. uint CountSetBits(uint);
  11892. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  11893. void DelayedExecute(float, bool, const String&);
  11894. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  11895. bool Equals(float, float);
  11896. void ErrorDialog(const String&, const String&);
  11897. float Floor(float);
  11898. uint GetAlphaFormat();
  11899. Array<String> GetArguments();
  11900. String GetConsoleInput();
  11901. uint GetDepthStencilFormat();
  11902. Object GetEventSender();
  11903. String GetExtension(const String&, bool = true);
  11904. String GetFileName(const String&);
  11905. String GetFileNameAndExtension(const String&, bool = false);
  11906. uint GetFloat16Format();
  11907. uint GetFloat32Format();
  11908. uint GetFormat(const String&);
  11909. String GetInternalPath(const String&);
  11910. uint GetLuminanceAlphaFormat();
  11911. uint GetLuminanceFormat();
  11912. uint GetNumLogicalCPUs();
  11913. uint GetNumPhysicalCPUs();
  11914. Array<String> GetObjectCategories();
  11915. Array<String> GetObjectsByCategory(const String&);
  11916. String GetParentPath(const String&);
  11917. String GetPath(const String&);
  11918. String GetPlatform();
  11919. uint GetRG16Format();
  11920. uint GetRGBA16Format();
  11921. uint GetRGBAFloat16Format();
  11922. uint GetRGBAFloat32Format();
  11923. uint GetRGBAFormat();
  11924. uint GetRGBFormat();
  11925. uint GetRGFloat16Format();
  11926. uint GetRGFloat32Format();
  11927. uint GetRandomSeed();
  11928. uint GetReadableDepthFormat();
  11929. String GetTextureUnitName(TextureUnit);
  11930. bool IsAbsolutePath(const String&);
  11931. bool IsAlpha(uint);
  11932. bool IsDigit(uint);
  11933. bool IsNaN(float);
  11934. bool IsPowerOfTwo(uint);
  11935. String Join(Array<String>&, const String&);
  11936. float Lerp(float, float, float);
  11937. void MarkNetworkUpdate();
  11938. float Max(float, float);
  11939. int Max(int, int);
  11940. float Min(float, float);
  11941. int Min(int, int);
  11942. float Mod(float, float);
  11943. uint NextPowerOfTwo(uint);
  11944. void OpenConsoleWindow();
  11945. float Pow(float, float);
  11946. void Print(bool, bool = false);
  11947. void Print(const String&, bool = false);
  11948. void Print(const Variant&, bool = false);
  11949. void Print(float, bool = false);
  11950. void Print(int, bool = false);
  11951. void Print(uint, bool = false);
  11952. void PrintCallStack(bool = false);
  11953. float Random();
  11954. float Random(float);
  11955. float Random(float, float);
  11956. int RandomInt();
  11957. int RandomInt(int);
  11958. int RandomInt(int, int);
  11959. float RandomNormal(float, float);
  11960. void Remove();
  11961. String RemoveTrailingSlash(const String&);
  11962. String ReplaceExtension(const String&, const String&);
  11963. uint SDBMHash(uint, uint8);
  11964. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11965. void SetRandomSeed(uint);
  11966. float Sign(float);
  11967. float Sin(float);
  11968. float SmoothStep(float, float, float);
  11969. float Sqrt(float);
  11970. const String& GetTypeName(StringHash);
  11971. void SubscribeToEvent(Object, const String&, const String&);
  11972. void SubscribeToEvent(const String&, const String&);
  11973. float Tan(float);
  11974. uint ToLower(uint);
  11975. String ToStringHex(int);
  11976. uint ToUpper(uint);
  11977. void UnsubscribeFromAllEvents();
  11978. void UnsubscribeFromAllEventsExcept(Array<String>);
  11979. void UnsubscribeFromEvent(Object, const String&);
  11980. void UnsubscribeFromEvent(const String&);
  11981. void UnsubscribeFromEvents(Object);
  11982. // Global properties
  11983. Audio audio;
  11984. ResourceCache cache;
  11985. Console console;
  11986. DebugHud debugHud;
  11987. DebugRenderer debugRenderer;
  11988. Engine engine;
  11989. FileSystem fileSystem;
  11990. Graphics graphics;
  11991. Input input;
  11992. Log log;
  11993. Network network;
  11994. Node node;
  11995. Octree octree;
  11996. PhysicsWorld physicsWorld;
  11997. PhysicsWorld2D physicsWorld2D;
  11998. Renderer renderer;
  11999. ResourceCache resourceCache;
  12000. Scene scene;
  12001. Script script;
  12002. ScriptFile scriptFile;
  12003. ScriptInstance self;
  12004. Time time;
  12005. UI ui;
  12006. // Global constants
  12007. uint AM_COMPONENTID;
  12008. uint AM_DEFAULT;
  12009. uint AM_FILE;
  12010. uint AM_LATESTDATA;
  12011. uint AM_NET;
  12012. uint AM_NODEID;
  12013. uint AM_NODEIDVECTOR;
  12014. uint AM_NOEDIT;
  12015. Color BLACK;
  12016. Color BLUE;
  12017. int CONTROLLER_AXIS_LEFTX;
  12018. int CONTROLLER_AXIS_LEFTY;
  12019. int CONTROLLER_AXIS_RIGHTX;
  12020. int CONTROLLER_AXIS_RIGHTY;
  12021. int CONTROLLER_AXIS_TRIGGERLEFT;
  12022. int CONTROLLER_AXIS_TRIGGERRIGHT;
  12023. int CONTROLLER_BUTTON_A;
  12024. int CONTROLLER_BUTTON_B;
  12025. int CONTROLLER_BUTTON_BACK;
  12026. int CONTROLLER_BUTTON_DPAD_DOWN;
  12027. int CONTROLLER_BUTTON_DPAD_LEFT;
  12028. int CONTROLLER_BUTTON_DPAD_RIGHT;
  12029. int CONTROLLER_BUTTON_DPAD_UP;
  12030. int CONTROLLER_BUTTON_GUIDE;
  12031. int CONTROLLER_BUTTON_LEFTSHOULDER;
  12032. int CONTROLLER_BUTTON_LEFTSTICK;
  12033. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  12034. int CONTROLLER_BUTTON_RIGHTSTICK;
  12035. int CONTROLLER_BUTTON_START;
  12036. int CONTROLLER_BUTTON_X;
  12037. int CONTROLLER_BUTTON_Y;
  12038. Color CYAN;
  12039. uint DD_DISABLED;
  12040. uint DD_SOURCE;
  12041. uint DD_SOURCE_AND_TARGET;
  12042. uint DD_TARGET;
  12043. uint DEBUGHUD_SHOW_ALL;
  12044. uint DEBUGHUD_SHOW_MODE;
  12045. uint DEBUGHUD_SHOW_NONE;
  12046. uint DEBUGHUD_SHOW_PROFILER;
  12047. uint DEBUGHUD_SHOW_STATS;
  12048. uint DEFAULT_LIGHTMASK;
  12049. uint DEFAULT_VIEWMASK;
  12050. uint DRAWABLE_ANY;
  12051. uint DRAWABLE_GEOMETRY;
  12052. uint DRAWABLE_GEOMETRY2D;
  12053. uint DRAWABLE_LIGHT;
  12054. uint DRAWABLE_ZONE;
  12055. uint FIRST_LOCAL_ID;
  12056. uint FIRST_REPLICATED_ID;
  12057. Color GRAY;
  12058. Color GREEN;
  12059. int HAT_CENTER;
  12060. int HAT_DOWN;
  12061. int HAT_LEFT;
  12062. int HAT_RIGHT;
  12063. int HAT_UP;
  12064. int KEY_0;
  12065. int KEY_1;
  12066. int KEY_2;
  12067. int KEY_3;
  12068. int KEY_4;
  12069. int KEY_5;
  12070. int KEY_6;
  12071. int KEY_7;
  12072. int KEY_8;
  12073. int KEY_9;
  12074. int KEY_A;
  12075. int KEY_ALT;
  12076. int KEY_APPLICATION;
  12077. int KEY_B;
  12078. int KEY_BACKSPACE;
  12079. int KEY_C;
  12080. int KEY_CAPSLOCK;
  12081. int KEY_CTRL;
  12082. int KEY_D;
  12083. int KEY_DELETE;
  12084. int KEY_DOWN;
  12085. int KEY_E;
  12086. int KEY_END;
  12087. int KEY_ESC;
  12088. int KEY_F;
  12089. int KEY_F1;
  12090. int KEY_F10;
  12091. int KEY_F11;
  12092. int KEY_F12;
  12093. int KEY_F13;
  12094. int KEY_F14;
  12095. int KEY_F15;
  12096. int KEY_F16;
  12097. int KEY_F17;
  12098. int KEY_F18;
  12099. int KEY_F19;
  12100. int KEY_F2;
  12101. int KEY_F20;
  12102. int KEY_F21;
  12103. int KEY_F22;
  12104. int KEY_F23;
  12105. int KEY_F24;
  12106. int KEY_F3;
  12107. int KEY_F4;
  12108. int KEY_F5;
  12109. int KEY_F6;
  12110. int KEY_F7;
  12111. int KEY_F8;
  12112. int KEY_F9;
  12113. int KEY_G;
  12114. int KEY_GUI;
  12115. int KEY_H;
  12116. int KEY_HOME;
  12117. int KEY_I;
  12118. int KEY_INSERT;
  12119. int KEY_J;
  12120. int KEY_K;
  12121. int KEY_KP_0;
  12122. int KEY_KP_1;
  12123. int KEY_KP_2;
  12124. int KEY_KP_3;
  12125. int KEY_KP_4;
  12126. int KEY_KP_5;
  12127. int KEY_KP_6;
  12128. int KEY_KP_7;
  12129. int KEY_KP_8;
  12130. int KEY_KP_9;
  12131. int KEY_KP_DIVIDE;
  12132. int KEY_KP_ENTER;
  12133. int KEY_KP_MINUS;
  12134. int KEY_KP_MULTIPLY;
  12135. int KEY_KP_PERIOD;
  12136. int KEY_KP_PLUS;
  12137. int KEY_L;
  12138. int KEY_LALT;
  12139. int KEY_LCTRL;
  12140. int KEY_LEFT;
  12141. int KEY_LGUI;
  12142. int KEY_LSHIFT;
  12143. int KEY_M;
  12144. int KEY_N;
  12145. int KEY_NUMLOCKCLEAR;
  12146. int KEY_O;
  12147. int KEY_P;
  12148. int KEY_PAGEDOWN;
  12149. int KEY_PAGEUP;
  12150. int KEY_PAUSE;
  12151. int KEY_PRINTSCREEN;
  12152. int KEY_Q;
  12153. int KEY_R;
  12154. int KEY_RALT;
  12155. int KEY_RCTRL;
  12156. int KEY_RETURN;
  12157. int KEY_RETURN2;
  12158. int KEY_RGUI;
  12159. int KEY_RIGHT;
  12160. int KEY_RSHIFT;
  12161. int KEY_S;
  12162. int KEY_SCROLLLOCK;
  12163. int KEY_SELECT;
  12164. int KEY_SHIFT;
  12165. int KEY_SPACE;
  12166. int KEY_T;
  12167. int KEY_TAB;
  12168. int KEY_U;
  12169. int KEY_UP;
  12170. int KEY_V;
  12171. int KEY_W;
  12172. int KEY_X;
  12173. int KEY_Y;
  12174. int KEY_Z;
  12175. uint LAST_LOCAL_ID;
  12176. uint LAST_REPLICATED_ID;
  12177. int LOG_DEBUG;
  12178. int LOG_ERROR;
  12179. int LOG_INFO;
  12180. int LOG_NONE;
  12181. int LOG_WARNING;
  12182. Color MAGENTA;
  12183. int MOUSEB_LEFT;
  12184. int MOUSEB_MIDDLE;
  12185. int MOUSEB_RIGHT;
  12186. float M_DEGTORAD;
  12187. float M_DEGTORAD_2;
  12188. float M_EPSILON;
  12189. float M_HALF_PI;
  12190. float M_INFINITY;
  12191. float M_LARGE_EPSILON;
  12192. float M_LARGE_VALUE;
  12193. int M_MAX_INT;
  12194. uint M_MAX_UNSIGNED;
  12195. int M_MIN_INT;
  12196. uint M_MIN_UNSIGNED;
  12197. float M_PI;
  12198. float M_RADTODEG;
  12199. float PIXEL_SIZE;
  12200. int QUALITY_HIGH;
  12201. int QUALITY_LOW;
  12202. int QUALITY_MAX;
  12203. int QUALITY_MEDIUM;
  12204. int QUAL_ALT;
  12205. int QUAL_ANY;
  12206. int QUAL_CTRL;
  12207. int QUAL_SHIFT;
  12208. Color RED;
  12209. int SCANCODE_0;
  12210. int SCANCODE_1;
  12211. int SCANCODE_2;
  12212. int SCANCODE_3;
  12213. int SCANCODE_4;
  12214. int SCANCODE_5;
  12215. int SCANCODE_6;
  12216. int SCANCODE_7;
  12217. int SCANCODE_8;
  12218. int SCANCODE_9;
  12219. int SCANCODE_A;
  12220. int SCANCODE_AC_BACK;
  12221. int SCANCODE_AC_BOOKMARKS;
  12222. int SCANCODE_AC_FORWARD;
  12223. int SCANCODE_AC_HOME;
  12224. int SCANCODE_AC_REFRESH;
  12225. int SCANCODE_AC_SEARCH;
  12226. int SCANCODE_AC_STOP;
  12227. int SCANCODE_AGAIN;
  12228. int SCANCODE_ALT;
  12229. int SCANCODE_ALTERASE;
  12230. int SCANCODE_APOSTROPHE;
  12231. int SCANCODE_APP1;
  12232. int SCANCODE_APP2;
  12233. int SCANCODE_APPLICATION;
  12234. int SCANCODE_AUDIOMUTE;
  12235. int SCANCODE_AUDIONEXT;
  12236. int SCANCODE_AUDIOPLAY;
  12237. int SCANCODE_AUDIOPREV;
  12238. int SCANCODE_AUDIOSTOP;
  12239. int SCANCODE_B;
  12240. int SCANCODE_BACKSLASH;
  12241. int SCANCODE_BACKSPACE;
  12242. int SCANCODE_BRIGHTNESSDOWN;
  12243. int SCANCODE_BRIGHTNESSUP;
  12244. int SCANCODE_C;
  12245. int SCANCODE_CALCULATOR;
  12246. int SCANCODE_CANCEL;
  12247. int SCANCODE_CAPSLOCK;
  12248. int SCANCODE_CLEAR;
  12249. int SCANCODE_CLEARAGAIN;
  12250. int SCANCODE_COMMA;
  12251. int SCANCODE_COMPUTER;
  12252. int SCANCODE_COPY;
  12253. int SCANCODE_CRSEL;
  12254. int SCANCODE_CTRL;
  12255. int SCANCODE_CURRENCYSUBUNIT;
  12256. int SCANCODE_CURRENCYUNIT;
  12257. int SCANCODE_CUT;
  12258. int SCANCODE_D;
  12259. int SCANCODE_DECIMALSEPARATOR;
  12260. int SCANCODE_DELETE;
  12261. int SCANCODE_DISPLAYSWITCH;
  12262. int SCANCODE_DOWN;
  12263. int SCANCODE_E;
  12264. int SCANCODE_EJECT;
  12265. int SCANCODE_END;
  12266. int SCANCODE_EQUALS;
  12267. int SCANCODE_ESCAPE;
  12268. int SCANCODE_EXECUTE;
  12269. int SCANCODE_EXSEL;
  12270. int SCANCODE_F;
  12271. int SCANCODE_F1;
  12272. int SCANCODE_F10;
  12273. int SCANCODE_F11;
  12274. int SCANCODE_F12;
  12275. int SCANCODE_F13;
  12276. int SCANCODE_F14;
  12277. int SCANCODE_F15;
  12278. int SCANCODE_F16;
  12279. int SCANCODE_F17;
  12280. int SCANCODE_F18;
  12281. int SCANCODE_F19;
  12282. int SCANCODE_F2;
  12283. int SCANCODE_F20;
  12284. int SCANCODE_F21;
  12285. int SCANCODE_F22;
  12286. int SCANCODE_F23;
  12287. int SCANCODE_F24;
  12288. int SCANCODE_F3;
  12289. int SCANCODE_F4;
  12290. int SCANCODE_F5;
  12291. int SCANCODE_F6;
  12292. int SCANCODE_F7;
  12293. int SCANCODE_F8;
  12294. int SCANCODE_F9;
  12295. int SCANCODE_FIND;
  12296. int SCANCODE_G;
  12297. int SCANCODE_GRAVE;
  12298. int SCANCODE_GUI;
  12299. int SCANCODE_H;
  12300. int SCANCODE_HELP;
  12301. int SCANCODE_HOME;
  12302. int SCANCODE_I;
  12303. int SCANCODE_INSERT;
  12304. int SCANCODE_INTERNATIONAL1;
  12305. int SCANCODE_INTERNATIONAL2;
  12306. int SCANCODE_INTERNATIONAL3;
  12307. int SCANCODE_INTERNATIONAL4;
  12308. int SCANCODE_INTERNATIONAL5;
  12309. int SCANCODE_INTERNATIONAL6;
  12310. int SCANCODE_INTERNATIONAL7;
  12311. int SCANCODE_INTERNATIONAL8;
  12312. int SCANCODE_INTERNATIONAL9;
  12313. int SCANCODE_J;
  12314. int SCANCODE_K;
  12315. int SCANCODE_KBDILLUMDOWN;
  12316. int SCANCODE_KBDILLUMTOGGLE;
  12317. int SCANCODE_KBDILLUMUP;
  12318. int SCANCODE_KP_0;
  12319. int SCANCODE_KP_00;
  12320. int SCANCODE_KP_000;
  12321. int SCANCODE_KP_1;
  12322. int SCANCODE_KP_2;
  12323. int SCANCODE_KP_3;
  12324. int SCANCODE_KP_4;
  12325. int SCANCODE_KP_5;
  12326. int SCANCODE_KP_6;
  12327. int SCANCODE_KP_7;
  12328. int SCANCODE_KP_8;
  12329. int SCANCODE_KP_9;
  12330. int SCANCODE_KP_A;
  12331. int SCANCODE_KP_AMPERSAND;
  12332. int SCANCODE_KP_AT;
  12333. int SCANCODE_KP_B;
  12334. int SCANCODE_KP_BACKSPACE;
  12335. int SCANCODE_KP_BINARY;
  12336. int SCANCODE_KP_C;
  12337. int SCANCODE_KP_CLEAR;
  12338. int SCANCODE_KP_CLEARENTRY;
  12339. int SCANCODE_KP_COLON;
  12340. int SCANCODE_KP_COMMA;
  12341. int SCANCODE_KP_D;
  12342. int SCANCODE_KP_DBLAMPERSAND;
  12343. int SCANCODE_KP_DBLVERTICALBAR;
  12344. int SCANCODE_KP_DECIMAL;
  12345. int SCANCODE_KP_DIVIDE;
  12346. int SCANCODE_KP_E;
  12347. int SCANCODE_KP_ENTER;
  12348. int SCANCODE_KP_EQUALS;
  12349. int SCANCODE_KP_EQUALSAS400;
  12350. int SCANCODE_KP_EXCLAM;
  12351. int SCANCODE_KP_F;
  12352. int SCANCODE_KP_GREATER;
  12353. int SCANCODE_KP_HASH;
  12354. int SCANCODE_KP_HEXADECIMAL;
  12355. int SCANCODE_KP_LEFTBRACE;
  12356. int SCANCODE_KP_LEFTPAREN;
  12357. int SCANCODE_KP_LESS;
  12358. int SCANCODE_KP_MEMADD;
  12359. int SCANCODE_KP_MEMCLEAR;
  12360. int SCANCODE_KP_MEMDIVIDE;
  12361. int SCANCODE_KP_MEMMULTIPLY;
  12362. int SCANCODE_KP_MEMRECALL;
  12363. int SCANCODE_KP_MEMSTORE;
  12364. int SCANCODE_KP_MEMSUBTRACT;
  12365. int SCANCODE_KP_MINUS;
  12366. int SCANCODE_KP_MULTIPLY;
  12367. int SCANCODE_KP_OCTAL;
  12368. int SCANCODE_KP_PERCENT;
  12369. int SCANCODE_KP_PERIOD;
  12370. int SCANCODE_KP_PLUS;
  12371. int SCANCODE_KP_PLUSMINUS;
  12372. int SCANCODE_KP_POWER;
  12373. int SCANCODE_KP_RIGHTBRACE;
  12374. int SCANCODE_KP_RIGHTPAREN;
  12375. int SCANCODE_KP_SPACE;
  12376. int SCANCODE_KP_TAB;
  12377. int SCANCODE_KP_VERTICALBAR;
  12378. int SCANCODE_KP_XOR;
  12379. int SCANCODE_L;
  12380. int SCANCODE_LALT;
  12381. int SCANCODE_LANG1;
  12382. int SCANCODE_LANG2;
  12383. int SCANCODE_LANG3;
  12384. int SCANCODE_LANG4;
  12385. int SCANCODE_LANG5;
  12386. int SCANCODE_LANG6;
  12387. int SCANCODE_LANG7;
  12388. int SCANCODE_LANG8;
  12389. int SCANCODE_LANG9;
  12390. int SCANCODE_LCTRL;
  12391. int SCANCODE_LEFT;
  12392. int SCANCODE_LEFTBRACKET;
  12393. int SCANCODE_LGUI;
  12394. int SCANCODE_LSHIFT;
  12395. int SCANCODE_M;
  12396. int SCANCODE_MAIL;
  12397. int SCANCODE_MEDIASELECT;
  12398. int SCANCODE_MENU;
  12399. int SCANCODE_MINUS;
  12400. int SCANCODE_MODE;
  12401. int SCANCODE_MUTE;
  12402. int SCANCODE_N;
  12403. int SCANCODE_NONUSBACKSLASH;
  12404. int SCANCODE_NONUSHASH;
  12405. int SCANCODE_NUMLOCKCLEAR;
  12406. int SCANCODE_O;
  12407. int SCANCODE_OPER;
  12408. int SCANCODE_OUT;
  12409. int SCANCODE_P;
  12410. int SCANCODE_PAGEDOWN;
  12411. int SCANCODE_PAGEUP;
  12412. int SCANCODE_PASTE;
  12413. int SCANCODE_PAUSE;
  12414. int SCANCODE_PERIOD;
  12415. int SCANCODE_POWER;
  12416. int SCANCODE_PRINTSCREEN;
  12417. int SCANCODE_PRIOR;
  12418. int SCANCODE_Q;
  12419. int SCANCODE_R;
  12420. int SCANCODE_RALT;
  12421. int SCANCODE_RCTRL;
  12422. int SCANCODE_RETURN;
  12423. int SCANCODE_RETURN2;
  12424. int SCANCODE_RGUI;
  12425. int SCANCODE_RIGHT;
  12426. int SCANCODE_RIGHTBRACKET;
  12427. int SCANCODE_RSHIFT;
  12428. int SCANCODE_S;
  12429. int SCANCODE_SCROLLLOCK;
  12430. int SCANCODE_SELECT;
  12431. int SCANCODE_SEMICOLON;
  12432. int SCANCODE_SEPARATOR;
  12433. int SCANCODE_SHIFT;
  12434. int SCANCODE_SLASH;
  12435. int SCANCODE_SLEEP;
  12436. int SCANCODE_SPACE;
  12437. int SCANCODE_STOP;
  12438. int SCANCODE_SYSREQ;
  12439. int SCANCODE_T;
  12440. int SCANCODE_TAB;
  12441. int SCANCODE_THOUSANDSSEPARATOR;
  12442. int SCANCODE_U;
  12443. int SCANCODE_UNDO;
  12444. int SCANCODE_UNKNOWN;
  12445. int SCANCODE_UP;
  12446. int SCANCODE_V;
  12447. int SCANCODE_VOLUMEDOWN;
  12448. int SCANCODE_VOLUMEUP;
  12449. int SCANCODE_W;
  12450. int SCANCODE_WWW;
  12451. int SCANCODE_X;
  12452. int SCANCODE_Y;
  12453. int SCANCODE_Z;
  12454. uint SCAN_DIRS;
  12455. uint SCAN_FILES;
  12456. uint SCAN_HIDDEN;
  12457. int SHADOWQUALITY_HIGH_16BIT;
  12458. int SHADOWQUALITY_HIGH_24BIT;
  12459. int SHADOWQUALITY_LOW_16BIT;
  12460. int SHADOWQUALITY_LOW_24BIT;
  12461. String SOUND_AMBIENT;
  12462. String SOUND_EFFECT;
  12463. String SOUND_MASTER;
  12464. String SOUND_MUSIC;
  12465. String SOUND_VOICE;
  12466. Color TRANSPARENT;
  12467. uint VO_DISABLE_OCCLUSION;
  12468. uint VO_DISABLE_SHADOWS;
  12469. uint VO_LOW_MATERIAL_QUALITY;
  12470. uint VO_NONE;
  12471. Color WHITE;
  12472. Color YELLOW;