AngelScriptAPI.h 326 KB

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