AngelScriptAPI.h 296 KB

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