AngelScriptAPI.h 323 KB

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